@memoreco/ui 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  import { jsx as b, Fragment as et, jsxs as le } from "react/jsx-runtime";
2
2
  import * as f from "react";
3
- import S, { useRef as Dr, useEffect as cl, useState as dl, forwardRef as Ko, createElement as In, useLayoutEffect as ul } from "react";
3
+ import S, { useRef as Dr, useEffect as cl, useState as dl, forwardRef as Ko, createElement as Mn, useLayoutEffect as ul } from "react";
4
4
  import * as nn from "react-dom";
5
5
  import Xo from "react-dom";
6
- function Mr(e, t) {
6
+ function Ir(e, t) {
7
7
  if (typeof e == "function")
8
8
  return e(t);
9
9
  e != null && (e.current = t);
@@ -12,14 +12,14 @@ function Zo(...e) {
12
12
  return (t) => {
13
13
  let n = !1;
14
14
  const r = e.map((o) => {
15
- const i = Mr(o, t);
15
+ const i = Ir(o, t);
16
16
  return !n && typeof i == "function" && (n = !0), i;
17
17
  });
18
18
  if (n)
19
19
  return () => {
20
20
  for (let o = 0; o < r.length; o++) {
21
21
  const i = r[o];
22
- typeof i == "function" ? i() : Mr(e[o], null);
22
+ typeof i == "function" ? i() : Ir(e[o], null);
23
23
  }
24
24
  };
25
25
  };
@@ -90,13 +90,13 @@ function Yn() {
90
90
  for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = Qo(e)) && (r && (r += " "), r += t);
91
91
  return r;
92
92
  }
93
- const Ir = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Or = Yn, It = (e, t) => (n) => {
93
+ const Mr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Or = Yn, Mt = (e, t) => (n) => {
94
94
  var r;
95
95
  if ((t == null ? void 0 : t.variants) == null) return Or(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
96
96
  const { variants: o, defaultVariants: i } = t, s = Object.keys(o).map((l) => {
97
97
  const u = n == null ? void 0 : n[l], d = i == null ? void 0 : i[l];
98
98
  if (u === null) return null;
99
- const h = Ir(u) || Ir(d);
99
+ const h = Mr(u) || Mr(d);
100
100
  return o[l][h];
101
101
  }), a = n && Object.entries(n).reduce((l, u) => {
102
102
  let [d, h] = u;
@@ -339,7 +339,7 @@ function kl(e, ...t) {
339
339
  const te = (e) => {
340
340
  const t = (n) => n[e] || [];
341
341
  return t.isThemeGetter = !0, t;
342
- }, ns = /^\[(?:([a-z-]+):)?(.+)\]$/i, Dl = /^\d+\/\d+$/, Ml = /* @__PURE__ */ new Set(["px", "full", "screen"]), Il = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ol = /\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$/, _l = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Ll = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, zl = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, _e = (e) => gt(e) || Ml.has(e) || Dl.test(e), We = (e) => Ct(e, "length", Ul), gt = (e) => !!e && !Number.isNaN(Number(e)), Sn = (e) => Ct(e, "number", gt), Pt = (e) => !!e && Number.isInteger(Number(e)), $l = (e) => e.endsWith("%") && gt(e.slice(0, -1)), G = (e) => ns.test(e), He = (e) => Il.test(e), Bl = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Fl = (e) => Ct(e, Bl, rs), Vl = (e) => Ct(e, "position", rs), Wl = /* @__PURE__ */ new Set(["image", "url"]), Hl = (e) => Ct(e, Wl, Yl), Gl = (e) => Ct(e, "", jl), Tt = () => !0, Ct = (e, t, n) => {
342
+ }, ns = /^\[(?:([a-z-]+):)?(.+)\]$/i, Dl = /^\d+\/\d+$/, Il = /* @__PURE__ */ new Set(["px", "full", "screen"]), Ml = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ol = /\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$/, _l = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Ll = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, zl = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, _e = (e) => gt(e) || Il.has(e) || Dl.test(e), We = (e) => Ct(e, "length", Ul), gt = (e) => !!e && !Number.isNaN(Number(e)), Sn = (e) => Ct(e, "number", gt), Pt = (e) => !!e && Number.isInteger(Number(e)), $l = (e) => e.endsWith("%") && gt(e.slice(0, -1)), G = (e) => ns.test(e), He = (e) => Ml.test(e), Bl = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Fl = (e) => Ct(e, Bl, rs), Vl = (e) => Ct(e, "position", rs), Wl = /* @__PURE__ */ new Set(["image", "url"]), Hl = (e) => Ct(e, Wl, Yl), Gl = (e) => Ct(e, "", jl), Tt = () => !0, Ct = (e, t, n) => {
343
343
  const r = ns.exec(e);
344
344
  return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
345
345
  }, Ul = (e) => (
@@ -348,7 +348,7 @@ const te = (e) => {
348
348
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
349
349
  Ol.test(e) && !_l.test(e)
350
350
  ), rs = () => !1, jl = (e) => Ll.test(e), Yl = (e) => zl.test(e), Kl = () => {
351
- const e = te("colors"), t = te("spacing"), n = te("blur"), r = te("brightness"), o = te("borderColor"), i = te("borderRadius"), s = te("borderSpacing"), a = te("borderWidth"), c = te("contrast"), l = te("grayscale"), u = te("hueRotate"), d = te("invert"), h = te("gap"), m = te("gradientColorStops"), g = te("gradientColorStopPositions"), p = te("inset"), v = te("margin"), y = te("opacity"), w = te("padding"), x = te("saturate"), C = te("scale"), E = te("sepia"), N = te("skew"), R = te("space"), O = te("translate"), F = () => ["auto", "contain", "none"], V = () => ["auto", "hidden", "clip", "visible", "scroll"], P = () => ["auto", G, t], D = () => [G, t], I = () => ["", _e, We], M = () => ["auto", gt, G], _ = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], A = () => ["solid", "dashed", "dotted", "double", "none"], T = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], k = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], L = () => ["", "0", G], U = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], W = () => [gt, G];
351
+ const e = te("colors"), t = te("spacing"), n = te("blur"), r = te("brightness"), o = te("borderColor"), i = te("borderRadius"), s = te("borderSpacing"), a = te("borderWidth"), c = te("contrast"), l = te("grayscale"), u = te("hueRotate"), d = te("invert"), h = te("gap"), m = te("gradientColorStops"), g = te("gradientColorStopPositions"), p = te("inset"), v = te("margin"), y = te("opacity"), w = te("padding"), x = te("saturate"), C = te("scale"), E = te("sepia"), N = te("skew"), R = te("space"), O = te("translate"), F = () => ["auto", "contain", "none"], V = () => ["auto", "hidden", "clip", "visible", "scroll"], P = () => ["auto", G, t], D = () => [G, t], M = () => ["", _e, We], I = () => ["auto", gt, G], _ = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], A = () => ["solid", "dashed", "dotted", "double", "none"], T = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], k = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], L = () => ["", "0", G], U = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], W = () => [gt, G];
352
352
  return {
353
353
  cacheSize: 500,
354
354
  separator: ":",
@@ -360,7 +360,7 @@ const te = (e) => {
360
360
  borderColor: [e],
361
361
  borderRadius: ["none", "", "full", He, G],
362
362
  borderSpacing: D(),
363
- borderWidth: I(),
363
+ borderWidth: M(),
364
364
  contrast: W(),
365
365
  grayscale: L(),
366
366
  hueRotate: W(),
@@ -666,14 +666,14 @@ const te = (e) => {
666
666
  * @see https://tailwindcss.com/docs/grid-column
667
667
  */
668
668
  "col-start": [{
669
- "col-start": M()
669
+ "col-start": I()
670
670
  }],
671
671
  /**
672
672
  * Grid Column End
673
673
  * @see https://tailwindcss.com/docs/grid-column
674
674
  */
675
675
  "col-end": [{
676
- "col-end": M()
676
+ "col-end": I()
677
677
  }],
678
678
  /**
679
679
  * Grid Template Rows
@@ -696,14 +696,14 @@ const te = (e) => {
696
696
  * @see https://tailwindcss.com/docs/grid-row
697
697
  */
698
698
  "row-start": [{
699
- "row-start": M()
699
+ "row-start": I()
700
700
  }],
701
701
  /**
702
702
  * Grid Row End
703
703
  * @see https://tailwindcss.com/docs/grid-row
704
704
  */
705
705
  "row-end": [{
706
- "row-end": M()
706
+ "row-end": I()
707
707
  }],
708
708
  /**
709
709
  * Grid Auto Flow
@@ -1680,7 +1680,7 @@ const te = (e) => {
1680
1680
  * @see https://tailwindcss.com/docs/ring-width
1681
1681
  */
1682
1682
  "ring-w": [{
1683
- ring: I()
1683
+ ring: M()
1684
1684
  }],
1685
1685
  /**
1686
1686
  * Ring Width Inset
@@ -2506,7 +2506,7 @@ var oe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2506
2506
  * Copyright 2020 Metafizzy
2507
2507
  */
2508
2508
  var $r;
2509
- function Ie() {
2509
+ function Me() {
2510
2510
  return $r || ($r = 1, function(e) {
2511
2511
  (function(t, n) {
2512
2512
  e.exports ? e.exports = n() : t.Zdog = n();
@@ -2622,7 +2622,7 @@ function St() {
2622
2622
  return Gr || (Gr = 1, function(e) {
2623
2623
  (function(t, n) {
2624
2624
  if (e.exports)
2625
- e.exports = n(Ie());
2625
+ e.exports = n(Me());
2626
2626
  else {
2627
2627
  var r = t.Zdog;
2628
2628
  r.Vector = n(r);
@@ -2686,7 +2686,7 @@ function lt() {
2686
2686
  (function(t, n) {
2687
2687
  if (e.exports)
2688
2688
  e.exports = n(
2689
- Ie(),
2689
+ Me(),
2690
2690
  St(),
2691
2691
  as(),
2692
2692
  ls()
@@ -2850,7 +2850,7 @@ function Ql() {
2850
2850
  (function(t, n) {
2851
2851
  if (e.exports)
2852
2852
  e.exports = n(
2853
- Ie(),
2853
+ Me(),
2854
2854
  lt(),
2855
2855
  cs()
2856
2856
  );
@@ -3002,7 +3002,7 @@ function ct() {
3002
3002
  (function(t, n) {
3003
3003
  if (e.exports)
3004
3004
  e.exports = n(
3005
- Ie(),
3005
+ Me(),
3006
3006
  St(),
3007
3007
  rn(),
3008
3008
  lt()
@@ -3242,7 +3242,7 @@ function ec() {
3242
3242
  return uo || (uo = 1, function(e) {
3243
3243
  (function(t, n) {
3244
3244
  if (e.exports)
3245
- e.exports = n(Ie(), ct());
3245
+ e.exports = n(Me(), ct());
3246
3246
  else {
3247
3247
  var r = t.Zdog;
3248
3248
  r.Polygon = n(r, r.Shape);
@@ -3268,7 +3268,7 @@ function tc() {
3268
3268
  (function(t, n) {
3269
3269
  if (e.exports)
3270
3270
  e.exports = n(
3271
- Ie(),
3271
+ Me(),
3272
3272
  St(),
3273
3273
  lt(),
3274
3274
  on()
@@ -3317,7 +3317,7 @@ function nc() {
3317
3317
  (function(t, n) {
3318
3318
  if (e.exports)
3319
3319
  e.exports = n(
3320
- Ie(),
3320
+ Me(),
3321
3321
  rn(),
3322
3322
  ct(),
3323
3323
  ds(),
@@ -3411,7 +3411,7 @@ function rc() {
3411
3411
  (function(t, n) {
3412
3412
  if (e.exports)
3413
3413
  e.exports = n(
3414
- Ie(),
3414
+ Me(),
3415
3415
  St(),
3416
3416
  rn(),
3417
3417
  lt(),
@@ -3475,7 +3475,7 @@ function oc() {
3475
3475
  (function(t, n) {
3476
3476
  if (e.exports)
3477
3477
  e.exports = n(
3478
- Ie(),
3478
+ Me(),
3479
3479
  lt(),
3480
3480
  ct(),
3481
3481
  us()
@@ -3596,7 +3596,7 @@ function oc() {
3596
3596
  (function(e) {
3597
3597
  (function(t, n) {
3598
3598
  e.exports && (e.exports = n(
3599
- Ie(),
3599
+ Me(),
3600
3600
  as(),
3601
3601
  ls(),
3602
3602
  St(),
@@ -3650,8 +3650,8 @@ function sc(e = {}) {
3650
3650
  zoom: 1,
3651
3651
  rotate: { y: 0 }
3652
3652
  });
3653
- const y = (P, D, I) => {
3654
- const M = new wo.Ellipse({
3653
+ const y = (P, D, M) => {
3654
+ const I = new wo.Ellipse({
3655
3655
  addTo: d,
3656
3656
  diameter: a,
3657
3657
  stroke: !1,
@@ -3659,51 +3659,51 @@ function sc(e = {}) {
3659
3659
  color: "#5e0f1a"
3660
3660
  // Start with dark red
3661
3661
  });
3662
- h.push({ shape: M, id: I, group: P, offset: D });
3662
+ h.push({ shape: I, id: M, group: P, offset: D });
3663
3663
  };
3664
3664
  let w = 0;
3665
3665
  for (let P = 0; P < 6; P++) y("left", P / 6, w++);
3666
3666
  for (let P = 0; P < 6; P++) y("right", P / 6, w++);
3667
- const x = (P) => 1 - Math.pow(1 - P, 2), C = (P, D, I) => P + (D - P) * I, E = (P) => ({
3667
+ const x = (P) => 1 - Math.pow(1 - P, 2), C = (P, D, M) => P + (D - P) * M, E = (P) => ({
3668
3668
  r: parseInt(P.slice(1, 3), 16),
3669
3669
  g: parseInt(P.slice(3, 5), 16),
3670
3670
  b: parseInt(P.slice(5, 7), 16)
3671
3671
  }), N = ["#5e0f1a", "#c22a2f", "#e0392b", "#f05a24", "#f39c12", "#fde68a"].map(E), R = [...N].reverse(), O = (P, D) => {
3672
3672
  if (D <= 0) return P[0];
3673
3673
  if (D >= 1) return P[P.length - 1];
3674
- const I = D * (P.length - 1), M = Math.floor(I), _ = I - M, A = P[M], T = P[M + 1];
3674
+ const M = D * (P.length - 1), I = Math.floor(M), _ = M - I, A = P[I], T = P[I + 1];
3675
3675
  return {
3676
3676
  r: Math.round(C(A.r, T.r, _)),
3677
3677
  g: Math.round(C(A.g, T.g, _)),
3678
3678
  b: Math.round(C(A.b, T.b, _))
3679
3679
  };
3680
3680
  };
3681
- h.forEach(({ shape: P, group: D, offset: I, id: M }) => {
3681
+ h.forEach(({ shape: P, group: D, offset: M, id: I }) => {
3682
3682
  let _, A, T, k = 1;
3683
3683
  if (D === "left") {
3684
- const L = I, U = x(L);
3685
- _ = -c + c * U, A = Math.PI / 2 * U, T = 300 + (100 - Math.abs(_)) - M * 0.01;
3684
+ const L = M, U = x(L);
3685
+ _ = -c + c * U, A = Math.PI / 2 * U, T = 300 + (100 - Math.abs(_)) - I * 0.01;
3686
3686
  const { r: W, g: se, b: B } = O(N, L);
3687
3687
  P.color = `rgba(${W}, ${se}, ${B}, ${k})`;
3688
3688
  } else {
3689
- const L = I, U = x(L);
3690
- _ = 0 + c * U, A = Math.PI / 2 + Math.PI / 2 * U, T = 300 + (100 - Math.abs(_)) - M * 0.01;
3689
+ const L = M, U = x(L);
3690
+ _ = 0 + c * U, A = Math.PI / 2 + Math.PI / 2 * U, T = 300 + (100 - Math.abs(_)) - I * 0.01;
3691
3691
  const { r: W, g: se, b: B } = O(R, L);
3692
3692
  P.color = `rgba(${W}, ${se}, ${B}, ${k})`;
3693
3693
  }
3694
3694
  P.translate.x = _, P.translate.z = T, P.rotate.y = A;
3695
3695
  }), d.updateRenderGraph();
3696
- const F = (P, D, I, M) => {
3696
+ const F = (P, D, M, I) => {
3697
3697
  let _, A, T, k;
3698
- const L = Math.min(I, 1), U = (W) => W < 0.5 ? 2 * W * W : 1 - Math.pow(-2 * W + 2, 2) / 2;
3698
+ const L = Math.min(M, 1), U = (W) => W < 0.5 ? 2 * W * W : 1 - Math.pow(-2 * W + 2, 2) / 2;
3699
3699
  if (D === "left") {
3700
3700
  const W = U(L);
3701
- _ = -c + c * W, A = Math.PI / 2 * W, T = 1, k = 300 + (100 - Math.abs(_)) - M * 0.01;
3701
+ _ = -c + c * W, A = Math.PI / 2 * W, T = 1, k = 300 + (100 - Math.abs(_)) - I * 0.01;
3702
3702
  const { r: se, g: B, b: X } = O(N, L);
3703
3703
  P.color = `rgba(${se}, ${B}, ${X}, ${T})`;
3704
3704
  } else {
3705
3705
  const W = U(L);
3706
- _ = 0 + c * W, A = Math.PI / 2 + Math.PI / 2 * W, T = 1, k = 300 + (100 - Math.abs(_)) - M * 0.01;
3706
+ _ = 0 + c * W, A = Math.PI / 2 + Math.PI / 2 * W, T = 1, k = 300 + (100 - Math.abs(_)) - I * 0.01;
3707
3707
  const { r: se, g: B, b: X } = O(R, L);
3708
3708
  P.color = `rgba(${se}, ${B}, ${X}, ${T})`;
3709
3709
  }
@@ -3711,29 +3711,29 @@ function sc(e = {}) {
3711
3711
  }, V = (P) => {
3712
3712
  if (g || !d || !h.length) return;
3713
3713
  const D = P % n / n;
3714
- for (let I = 0; I < h.length; I++) {
3715
- const M = h[I];
3716
- let _ = (D + M.offset) % 1;
3714
+ for (let M = 0; M < h.length; M++) {
3715
+ const I = h[M];
3716
+ let _ = (D + I.offset) % 1;
3717
3717
  if (_ < 0.02) {
3718
3718
  const A = _ / 0.02;
3719
- F(M.shape, M.group, 0, M.id);
3720
- const T = M.shape.color.match(/rgba?\((\d+),\s*(\d+),\s*(\d+),\s*([^)]+)\)/);
3719
+ F(I.shape, I.group, 0, I.id);
3720
+ const T = I.shape.color.match(/rgba?\((\d+),\s*(\d+),\s*(\d+),\s*([^)]+)\)/);
3721
3721
  if (T) {
3722
3722
  const k = parseFloat(T[4]);
3723
- M.shape.color = `rgba(${T[1]}, ${T[2]}, ${T[3]}, ${k * A})`;
3723
+ I.shape.color = `rgba(${T[1]}, ${T[2]}, ${T[3]}, ${k * A})`;
3724
3724
  }
3725
- M.shape.translate.z = 100 - M.id * 0.01;
3725
+ I.shape.translate.z = 100 - I.id * 0.01;
3726
3726
  } else if (_ > 0.98) {
3727
3727
  const A = (1 - _) / 0.02, T = (0.98 - 0.02) / 0.96;
3728
- F(M.shape, M.group, T, M.id);
3729
- const k = M.shape.color.match(/rgba?\((\d+),\s*(\d+),\s*(\d+),\s*([^)]+)\)/);
3728
+ F(I.shape, I.group, T, I.id);
3729
+ const k = I.shape.color.match(/rgba?\((\d+),\s*(\d+),\s*(\d+),\s*([^)]+)\)/);
3730
3730
  if (k) {
3731
3731
  const L = parseFloat(k[4]);
3732
- M.shape.color = `rgba(${k[1]}, ${k[2]}, ${k[3]}, ${L * A})`;
3732
+ I.shape.color = `rgba(${k[1]}, ${k[2]}, ${k[3]}, ${L * A})`;
3733
3733
  }
3734
3734
  } else {
3735
3735
  const A = (_ - 0.02) / 0.96;
3736
- F(M.shape, M.group, A, M.id);
3736
+ F(I.shape, I.group, A, I.id);
3737
3737
  }
3738
3738
  }
3739
3739
  d.updateRenderGraph(), g || (m = requestAnimationFrame(V));
@@ -3747,7 +3747,7 @@ function sc(e = {}) {
3747
3747
  destroy: v
3748
3748
  };
3749
3749
  }
3750
- const Xn = It(
3750
+ const Xn = Mt(
3751
3751
  "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
3752
3752
  {
3753
3753
  variants: {
@@ -3879,7 +3879,7 @@ var mc = "Label", fs = f.forwardRef((e, t) => /* @__PURE__ */ b(
3879
3879
  ));
3880
3880
  fs.displayName = mc;
3881
3881
  var ps = fs;
3882
- const gc = It(
3882
+ const gc = Mt(
3883
3883
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
3884
3884
  ), vc = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ b(
3885
3885
  ps,
@@ -3890,7 +3890,7 @@ const gc = It(
3890
3890
  }
3891
3891
  ));
3892
3892
  vc.displayName = ps.displayName;
3893
- const yc = It(
3893
+ const yc = Mt(
3894
3894
  "relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
3895
3895
  {
3896
3896
  variants: {
@@ -3948,7 +3948,7 @@ const Cc = f.forwardRef(
3948
3948
  )
3949
3949
  );
3950
3950
  Cc.displayName = "Textarea";
3951
- const Sc = It(
3951
+ const Sc = Mt(
3952
3952
  "animate-spin rounded-full border-2 border-current border-t-transparent",
3953
3953
  {
3954
3954
  variants: {
@@ -3974,7 +3974,7 @@ const Sc = It(
3974
3974
  )
3975
3975
  );
3976
3976
  Ec.displayName = "Spinner";
3977
- const Rc = It(
3977
+ const Rc = Mt(
3978
3978
  "relative",
3979
3979
  // Base styles
3980
3980
  {
@@ -4030,9 +4030,9 @@ const Pc = (e) => {
4030
4030
  case "success":
4031
4031
  return Dc;
4032
4032
  case "info":
4033
- return Ic;
4034
- case "warning":
4035
4033
  return Mc;
4034
+ case "warning":
4035
+ return Ic;
4036
4036
  case "error":
4037
4037
  return Oc;
4038
4038
  default:
@@ -4059,7 +4059,7 @@ const Pc = (e) => {
4059
4059
  fillRule: "evenodd",
4060
4060
  d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
4061
4061
  clipRule: "evenodd"
4062
- })), Mc = /* @__PURE__ */ S.createElement("svg", {
4062
+ })), Ic = /* @__PURE__ */ S.createElement("svg", {
4063
4063
  xmlns: "http://www.w3.org/2000/svg",
4064
4064
  viewBox: "0 0 24 24",
4065
4065
  fill: "currentColor",
@@ -4069,7 +4069,7 @@ const Pc = (e) => {
4069
4069
  fillRule: "evenodd",
4070
4070
  d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
4071
4071
  clipRule: "evenodd"
4072
- })), Ic = /* @__PURE__ */ S.createElement("svg", {
4072
+ })), Mc = /* @__PURE__ */ S.createElement("svg", {
4073
4073
  xmlns: "http://www.w3.org/2000/svg",
4074
4074
  viewBox: "0 0 20 20",
4075
4075
  fill: "currentColor",
@@ -4308,7 +4308,7 @@ function Zc(e) {
4308
4308
  }
4309
4309
  const qc = (e) => {
4310
4310
  var t, n, r, o, i, s, a, c, l;
4311
- const { invert: u, toast: d, unstyled: h, interacting: m, setHeights: g, visibleToasts: p, heights: v, index: y, toasts: w, expanded: x, removeToast: C, defaultRichColors: E, closeButton: N, style: R, cancelButtonStyle: O, actionButtonStyle: F, className: V = "", descriptionClassName: P = "", duration: D, position: I, gap: M, expandByDefault: _, classNames: A, icons: T, closeButtonAriaLabel: k = "Close toast" } = e, [L, U] = S.useState(null), [W, se] = S.useState(null), [B, X] = S.useState(!1), [J, re] = S.useState(!1), [z, $] = S.useState(!1), [ne, q] = S.useState(!1), [Z, Y] = S.useState(!1), [ue, fe] = S.useState(0), [Qe, Fe] = S.useState(0), we = S.useRef(d.duration || D || xo), _t = S.useRef(null), pe = S.useRef(null), Ja = y === 0, el = y + 1 <= p, me = d.type, dt = d.dismissible !== !1, tl = d.className || "", nl = d.descriptionClassName || "", Lt = S.useMemo(() => v.findIndex((H) => H.toastId === d.id) || 0, [
4311
+ const { invert: u, toast: d, unstyled: h, interacting: m, setHeights: g, visibleToasts: p, heights: v, index: y, toasts: w, expanded: x, removeToast: C, defaultRichColors: E, closeButton: N, style: R, cancelButtonStyle: O, actionButtonStyle: F, className: V = "", descriptionClassName: P = "", duration: D, position: M, gap: I, expandByDefault: _, classNames: A, icons: T, closeButtonAriaLabel: k = "Close toast" } = e, [L, U] = S.useState(null), [W, se] = S.useState(null), [B, X] = S.useState(!1), [J, re] = S.useState(!1), [z, $] = S.useState(!1), [ne, q] = S.useState(!1), [Z, Y] = S.useState(!1), [ue, fe] = S.useState(0), [Qe, Fe] = S.useState(0), we = S.useRef(d.duration || D || xo), _t = S.useRef(null), pe = S.useRef(null), Ja = y === 0, el = y + 1 <= p, me = d.type, dt = d.dismissible !== !1, tl = d.className || "", nl = d.descriptionClassName || "", Lt = S.useMemo(() => v.findIndex((H) => H.toastId === d.id) || 0, [
4312
4312
  v,
4313
4313
  d.id
4314
4314
  ]), rl = S.useMemo(() => {
@@ -4320,11 +4320,11 @@ const qc = (e) => {
4320
4320
  ]), Er = S.useMemo(() => d.duration || D || xo, [
4321
4321
  d.duration,
4322
4322
  D
4323
- ]), xn = S.useRef(0), ut = S.useRef(0), Rr = S.useRef(0), ft = S.useRef(null), [ol, sl] = I.split("-"), Ar = S.useMemo(() => v.reduce((H, ie, de) => de >= Lt ? H : H + ie.height, 0), [
4323
+ ]), xn = S.useRef(0), ut = S.useRef(0), Rr = S.useRef(0), ft = S.useRef(null), [ol, sl] = M.split("-"), Ar = S.useMemo(() => v.reduce((H, ie, de) => de >= Lt ? H : H + ie.height, 0), [
4324
4324
  v,
4325
4325
  Lt
4326
4326
  ]), Nr = Lc(), il = d.invert || u, Cn = me === "loading";
4327
- ut.current = S.useMemo(() => Lt * M + Ar, [
4327
+ ut.current = S.useMemo(() => Lt * I + Ar, [
4328
4328
  Lt,
4329
4329
  Ar
4330
4330
  ]), S.useEffect(() => {
@@ -4489,7 +4489,7 @@ const qc = (e) => {
4489
4489
  if (!ft.current || !dt || ((ie = window.getSelection()) == null ? void 0 : ie.toString().length) > 0) return;
4490
4490
  const ae = H.clientY - ft.current.y, be = H.clientX - ft.current.x;
4491
4491
  var $t;
4492
- const xe = ($t = e.swipeDirections) != null ? $t : Zc(I);
4492
+ const xe = ($t = e.swipeDirections) != null ? $t : Zc(M);
4493
4493
  !L && (Math.abs(be) > 1 || Math.abs(ae) > 1) && U(Math.abs(be) > Math.abs(ae) ? "x" : "y");
4494
4494
  let Ce = {
4495
4495
  x: 0,
@@ -4596,7 +4596,7 @@ const Jc = /* @__PURE__ */ S.forwardRef(function(t, n) {
4596
4596
  ].concat(O.filter((B) => B.position).map((B) => B.position)))), [
4597
4597
  O,
4598
4598
  i
4599
- ]), [V, P] = S.useState([]), [D, I] = S.useState(!1), [M, _] = S.useState(!1), [A, T] = S.useState(h !== "system" ? h : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), k = S.useRef(null), L = s.join("+").replace(/Key/g, "").replace(/Digit/g, ""), U = S.useRef(null), W = S.useRef(!1), se = S.useCallback((B) => {
4599
+ ]), [V, P] = S.useState([]), [D, M] = S.useState(!1), [I, _] = S.useState(!1), [A, T] = S.useState(h !== "system" ? h : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), k = S.useRef(null), L = s.join("+").replace(/Key/g, "").replace(/Digit/g, ""), U = S.useRef(null), W = S.useRef(!1), se = S.useCallback((B) => {
4600
4600
  R((X) => {
4601
4601
  var J;
4602
4602
  return (J = X.find((re) => re.id === B.id)) != null && J.delete || he.dismiss(B.id), X.filter(({ id: re }) => re !== B.id);
@@ -4655,7 +4655,7 @@ const Jc = /* @__PURE__ */ S.forwardRef(function(t, n) {
4655
4655
  }, [
4656
4656
  h
4657
4657
  ]), S.useEffect(() => {
4658
- N.length <= 1 && I(!1);
4658
+ N.length <= 1 && M(!1);
4659
4659
  }, [
4660
4660
  N
4661
4661
  ]), S.useEffect(() => {
@@ -4663,9 +4663,9 @@ const Jc = /* @__PURE__ */ S.forwardRef(function(t, n) {
4663
4663
  var J;
4664
4664
  if (s.every(($) => X[$] || X.code === $)) {
4665
4665
  var z;
4666
- I(!0), (z = k.current) == null || z.focus();
4666
+ M(!0), (z = k.current) == null || z.focus();
4667
4667
  }
4668
- X.code === "Escape" && (document.activeElement === k.current || (J = k.current) != null && J.contains(document.activeElement)) && I(!1);
4668
+ X.code === "Escape" && (document.activeElement === k.current || (J = k.current) != null && J.contains(document.activeElement)) && M(!1);
4669
4669
  };
4670
4670
  return document.addEventListener("keydown", B), () => document.removeEventListener("keydown", B);
4671
4671
  }, [
@@ -4716,12 +4716,12 @@ const Jc = /* @__PURE__ */ S.forwardRef(function(t, n) {
4716
4716
  onFocus: ($) => {
4717
4717
  $.target instanceof HTMLElement && $.target.dataset.dismissible === "false" || W.current || (W.current = !0, U.current = $.relatedTarget);
4718
4718
  },
4719
- onMouseEnter: () => I(!0),
4720
- onMouseMove: () => I(!0),
4719
+ onMouseEnter: () => M(!0),
4720
+ onMouseMove: () => M(!0),
4721
4721
  onMouseLeave: () => {
4722
- M || I(!1);
4722
+ I || M(!1);
4723
4723
  },
4724
- onDragEnd: () => I(!1),
4724
+ onDragEnd: () => M(!1),
4725
4725
  onPointerDown: ($) => {
4726
4726
  $.target instanceof HTMLElement && $.target.dataset.dismissible === "false" || _(!0);
4727
4727
  },
@@ -4740,7 +4740,7 @@ const Jc = /* @__PURE__ */ S.forwardRef(function(t, n) {
4740
4740
  invert: o,
4741
4741
  visibleToasts: v,
4742
4742
  closeButton: (Z = y == null ? void 0 : y.closeButton) != null ? Z : c,
4743
- interacting: M,
4743
+ interacting: I,
4744
4744
  position: B,
4745
4745
  style: y == null ? void 0 : y.style,
4746
4746
  unstyled: y == null ? void 0 : y.unstyled,
@@ -5066,7 +5066,7 @@ function Ue(e) {
5066
5066
  const [t, n] = f.useState(fd());
5067
5067
  return ce(() => {
5068
5068
  n((r) => r ?? String(pd++));
5069
- }, [e]), t ? `radix-${t}` : "";
5069
+ }, [e]), e || (t ? `radix-${t}` : "");
5070
5070
  }
5071
5071
  var sn = "Collapsible", [hd, ms] = Xe(sn), [md, Zn] = hd(sn), gs = f.forwardRef(
5072
5072
  (e, t) => {
@@ -5388,11 +5388,11 @@ ks.displayName = Ts;
5388
5388
  function Ds(e) {
5389
5389
  return e ? "open" : "closed";
5390
5390
  }
5391
- var kd = xs, Dd = Rs, Md = Ns, Ms = Ps, Is = ks;
5392
- const Uh = kd, Id = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ b(Dd, { ref: n, className: j("border rounded-lg", e), ...t }));
5393
- Id.displayName = "AccordionItem";
5394
- const Od = f.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ b(Md, { className: "flex", children: /* @__PURE__ */ le(
5395
- Ms,
5391
+ var kd = xs, Dd = Rs, Id = Ns, Is = Ps, Ms = ks;
5392
+ const Uh = kd, Md = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ b(Dd, { ref: n, className: j("border rounded-lg", e), ...t }));
5393
+ Md.displayName = "AccordionItem";
5394
+ const Od = f.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ b(Id, { className: "flex", children: /* @__PURE__ */ le(
5395
+ Is,
5396
5396
  {
5397
5397
  ref: r,
5398
5398
  className: j(
@@ -5406,9 +5406,9 @@ const Od = f.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
5406
5406
  ]
5407
5407
  }
5408
5408
  ) }));
5409
- Od.displayName = Ms.displayName;
5409
+ Od.displayName = Is.displayName;
5410
5410
  const _d = f.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ b(
5411
- Is,
5411
+ Ms,
5412
5412
  {
5413
5413
  ref: r,
5414
5414
  className: j("px-4 pb-4 text-sm text-muted-foreground", e),
@@ -5416,7 +5416,7 @@ const _d = f.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
5416
5416
  children: t
5417
5417
  }
5418
5418
  ));
5419
- _d.displayName = Is.displayName;
5419
+ _d.displayName = Ms.displayName;
5420
5420
  function nt(e) {
5421
5421
  const t = f.useRef(e);
5422
5422
  return f.useEffect(() => {
@@ -6019,7 +6019,7 @@ var pt = $n ? { passive: !1 } : !1, xu = function(e) {
6019
6019
  return Ws(e, "overflowY");
6020
6020
  }, Su = function(e) {
6021
6021
  return Ws(e, "overflowX");
6022
- }, Mo = function(e, t) {
6022
+ }, Io = function(e, t) {
6023
6023
  var n = t.ownerDocument, r = t;
6024
6024
  do {
6025
6025
  typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
@@ -6069,7 +6069,7 @@ var pt = $n ? { passive: !1 } : !1, xu = function(e) {
6069
6069
  return (u && Math.abs(d) < 1 || !u && Math.abs(h) < 1) && (l = !0), l;
6070
6070
  }, Wt = function(e) {
6071
6071
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
6072
- }, Io = function(e) {
6072
+ }, Mo = function(e) {
6073
6073
  return [e.deltaX, e.deltaY];
6074
6074
  }, Oo = function(e) {
6075
6075
  return e && "current" in e ? e.current : e;
@@ -6104,10 +6104,10 @@ function Du(e) {
6104
6104
  var y = Wt(p), w = n.current, x = "deltaX" in p ? p.deltaX : w[0] - y[0], C = "deltaY" in p ? p.deltaY : w[1] - y[1], E, N = p.target, R = Math.abs(x) > Math.abs(C) ? "h" : "v";
6105
6105
  if ("touches" in p && R === "h" && N.type === "range")
6106
6106
  return !1;
6107
- var O = Mo(R, N);
6107
+ var O = Io(R, N);
6108
6108
  if (!O)
6109
6109
  return !0;
6110
- if (O ? E = R : (E = R === "v" ? "h" : "v", O = Mo(R, N)), !O)
6110
+ if (O ? E = R : (E = R === "v" ? "h" : "v", O = Io(R, N)), !O)
6111
6111
  return !1;
6112
6112
  if (!r.current && "changedTouches" in p && (x || C) && (r.current = E), !E)
6113
6113
  return !0;
@@ -6116,7 +6116,7 @@ function Du(e) {
6116
6116
  }, []), c = f.useCallback(function(p) {
6117
6117
  var v = p;
6118
6118
  if (!(!ht.length || ht[ht.length - 1] !== i)) {
6119
- var y = "deltaY" in v ? Io(v) : Wt(v), w = t.current.filter(function(E) {
6119
+ var y = "deltaY" in v ? Mo(v) : Wt(v), w = t.current.filter(function(E) {
6120
6120
  return E.name === v.type && (E.target === v.target || v.target === E.shadowParent) && Pu(E.delta, y);
6121
6121
  })[0];
6122
6122
  if (w && w.should) {
@@ -6131,7 +6131,7 @@ function Du(e) {
6131
6131
  }
6132
6132
  }
6133
6133
  }, []), l = f.useCallback(function(p, v, y, w) {
6134
- var x = { name: p, delta: v, target: y, should: w, shadowParent: Mu(y) };
6134
+ var x = { name: p, delta: v, target: y, should: w, shadowParent: Iu(y) };
6135
6135
  t.current.push(x), setTimeout(function() {
6136
6136
  t.current = t.current.filter(function(C) {
6137
6137
  return C !== x;
@@ -6140,7 +6140,7 @@ function Du(e) {
6140
6140
  }, []), u = f.useCallback(function(p) {
6141
6141
  n.current = Wt(p), r.current = void 0;
6142
6142
  }, []), d = f.useCallback(function(p) {
6143
- l(p.type, Io(p), p.target, a(p, e.lockRef.current));
6143
+ l(p.type, Mo(p), p.target, a(p, e.lockRef.current));
6144
6144
  }, []), h = f.useCallback(function(p) {
6145
6145
  l(p.type, Wt(p), p.target, a(p, e.lockRef.current));
6146
6146
  }, []);
@@ -6163,14 +6163,14 @@ function Du(e) {
6163
6163
  m ? f.createElement(wu, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
6164
6164
  );
6165
6165
  }
6166
- function Mu(e) {
6166
+ function Iu(e) {
6167
6167
  for (var t = null; e !== null; )
6168
6168
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
6169
6169
  return t;
6170
6170
  }
6171
- const Iu = au(Fs, Du);
6171
+ const Mu = au(Fs, Du);
6172
6172
  var sr = f.forwardRef(function(e, t) {
6173
- return f.createElement(cn, Te({}, e, { ref: t, sideCar: Iu }));
6173
+ return f.createElement(cn, Te({}, e, { ref: t, sideCar: Mu }));
6174
6174
  });
6175
6175
  sr.classNames = cn.classNames;
6176
6176
  var Ou = function(e) {
@@ -6497,7 +6497,7 @@ const qu = Ko(
6497
6497
  children: i,
6498
6498
  iconNode: s,
6499
6499
  ...a
6500
- }, c) => In(
6500
+ }, c) => Mn(
6501
6501
  "svg",
6502
6502
  {
6503
6503
  ref: c,
@@ -6511,7 +6511,7 @@ const qu = Ko(
6511
6511
  ...a
6512
6512
  },
6513
6513
  [
6514
- ...s.map(([l, u]) => In(l, u)),
6514
+ ...s.map(([l, u]) => Mn(l, u)),
6515
6515
  ...Array.isArray(i) ? i : [i]
6516
6516
  ]
6517
6517
  )
@@ -6524,7 +6524,7 @@ const qu = Ko(
6524
6524
  */
6525
6525
  const fn = (e, t) => {
6526
6526
  const n = Ko(
6527
- ({ className: r, ...o }, i) => In(qu, {
6527
+ ({ className: r, ...o }, i) => Mn(qu, {
6528
6528
  ref: i,
6529
6529
  iconNode: t,
6530
6530
  className: pi(
@@ -6937,12 +6937,12 @@ const Sf = (e) => ({
6937
6937
  }, m = mr(o), g = hr(m), p = await s.getDimensions(l), v = m === "y", y = v ? "top" : "left", w = v ? "bottom" : "right", x = v ? "clientHeight" : "clientWidth", C = i.reference[g] + i.reference[m] - h[m] - i.floating[g], E = h[m] - i.reference[m], N = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
6938
6938
  let R = N ? N[x] : 0;
6939
6939
  (!R || !await (s.isElement == null ? void 0 : s.isElement(N))) && (R = a.floating[x] || i.floating[g]);
6940
- const O = C / 2 - E / 2, F = R / 2 - p[g] / 2 - 1, V = Ye(d[y], F), P = Ye(d[w], F), D = V, I = R - p[g] - P, M = R / 2 - p[g] / 2 + O, _ = Bn(D, M, I), A = !c.arrow && Rt(o) != null && M !== _ && i.reference[g] / 2 - (M < D ? V : P) - p[g] / 2 < 0, T = A ? M < D ? M - D : M - I : 0;
6940
+ const O = C / 2 - E / 2, F = R / 2 - p[g] / 2 - 1, V = Ye(d[y], F), P = Ye(d[w], F), D = V, M = R - p[g] - P, I = R / 2 - p[g] / 2 + O, _ = Bn(D, I, M), A = !c.arrow && Rt(o) != null && I !== _ && i.reference[g] / 2 - (I < D ? V : P) - p[g] / 2 < 0, T = A ? I < D ? I - D : I - M : 0;
6941
6941
  return {
6942
6942
  [m]: h[m] + T,
6943
6943
  data: {
6944
6944
  [m]: _,
6945
- centerOffset: M - _ - T,
6945
+ centerOffset: I - _ - T,
6946
6946
  ...A && {
6947
6947
  alignmentOffset: T
6948
6948
  }
@@ -6979,21 +6979,21 @@ const Sf = (e) => ({
6979
6979
  const R = [a, ...E], O = await Dt(t, v), F = [];
6980
6980
  let V = ((r = i.flip) == null ? void 0 : r.overflows) || [];
6981
6981
  if (u && F.push(O[y]), d) {
6982
- const M = mf(o, s, C);
6983
- F.push(O[M[0]], O[M[1]]);
6982
+ const I = mf(o, s, C);
6983
+ F.push(O[I[0]], O[I[1]]);
6984
6984
  }
6985
6985
  if (V = [...V, {
6986
6986
  placement: o,
6987
6987
  overflows: F
6988
- }], !F.every((M) => M <= 0)) {
6988
+ }], !F.every((I) => I <= 0)) {
6989
6989
  var P, D;
6990
- const M = (((P = i.flip) == null ? void 0 : P.index) || 0) + 1, _ = R[M];
6990
+ const I = (((P = i.flip) == null ? void 0 : P.index) || 0) + 1, _ = R[I];
6991
6991
  if (_ && (!(d === "alignment" ? w !== ke(_) : !1) || // We leave the current main axis only if every placement on that axis
6992
6992
  // overflows the main axis.
6993
6993
  V.every((k) => ke(k.placement) === w ? k.overflows[0] > 0 : !0)))
6994
6994
  return {
6995
6995
  data: {
6996
- index: M,
6996
+ index: I,
6997
6997
  overflows: V
6998
6998
  },
6999
6999
  reset: {
@@ -7004,8 +7004,8 @@ const Sf = (e) => ({
7004
7004
  if (!A)
7005
7005
  switch (m) {
7006
7006
  case "bestFit": {
7007
- var I;
7008
- const T = (I = V.filter((k) => {
7007
+ var M;
7008
+ const T = (M = V.filter((k) => {
7009
7009
  if (N) {
7010
7010
  const L = ke(k.placement);
7011
7011
  return L === w || // Create a bias to the `y` side axis due to horizontal
@@ -7013,7 +7013,7 @@ const Sf = (e) => ({
7013
7013
  L === "y";
7014
7014
  }
7015
7015
  return !0;
7016
- }).map((k) => [k.placement, k.overflows.filter((L) => L > 0).reduce((L, U) => L + U, 0)]).sort((k, L) => k[1] - L[1])[0]) == null ? void 0 : I[0];
7016
+ }).map((k) => [k.placement, k.overflows.filter((L) => L > 0).reduce((L, U) => L + U, 0)]).sort((k, L) => k[1] - L[1])[0]) == null ? void 0 : M[0];
7017
7017
  T && (A = T);
7018
7018
  break;
7019
7019
  }
@@ -7256,8 +7256,8 @@ const Nf = function(e) {
7256
7256
  const w = p - u.top - u.bottom, x = g - u.left - u.right, C = Ye(p - u[v], w), E = Ye(g - u[y], x), N = !t.middlewareData.shift;
7257
7257
  let R = C, O = E;
7258
7258
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (O = x), (r = t.middlewareData.shift) != null && r.enabled.y && (R = w), N && !h) {
7259
- const V = ve(u.left, 0), P = ve(u.right, 0), D = ve(u.top, 0), I = ve(u.bottom, 0);
7260
- m ? O = g - 2 * (V !== 0 || P !== 0 ? V + P : ve(u.left, u.right)) : R = p - 2 * (D !== 0 || I !== 0 ? D + I : ve(u.top, u.bottom));
7259
+ const V = ve(u.left, 0), P = ve(u.right, 0), D = ve(u.top, 0), M = ve(u.bottom, 0);
7260
+ m ? O = g - 2 * (V !== 0 || P !== 0 ? V + P : ve(u.left, u.right)) : R = p - 2 * (D !== 0 || M !== 0 ? D + M : ve(u.top, u.bottom));
7261
7261
  }
7262
7262
  await c({
7263
7263
  ...t,
@@ -7293,7 +7293,7 @@ function bi(e) {
7293
7293
  function Ee(e) {
7294
7294
  return pn() ? e instanceof Element || e instanceof ye(e).Element : !1;
7295
7295
  }
7296
- function Me(e) {
7296
+ function Ie(e) {
7297
7297
  return pn() ? e instanceof HTMLElement || e instanceof ye(e).HTMLElement : !1;
7298
7298
  }
7299
7299
  function Wo(e) {
@@ -7309,9 +7309,9 @@ function Ot(e) {
7309
7309
  } = Re(e);
7310
7310
  return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !Df.has(o);
7311
7311
  }
7312
- const Mf = /* @__PURE__ */ new Set(["table", "td", "th"]);
7313
- function If(e) {
7314
- return Mf.has(At(e));
7312
+ const If = /* @__PURE__ */ new Set(["table", "td", "th"]);
7313
+ function Mf(e) {
7314
+ return If.has(At(e));
7315
7315
  }
7316
7316
  const Of = [":popover-open", ":modal"];
7317
7317
  function hn(e) {
@@ -7330,7 +7330,7 @@ function gr(e) {
7330
7330
  }
7331
7331
  function $f(e) {
7332
7332
  let t = Ke(e);
7333
- for (; Me(t) && !xt(t); ) {
7333
+ for (; Ie(t) && !xt(t); ) {
7334
7334
  if (gr(t))
7335
7335
  return t;
7336
7336
  if (hn(t))
@@ -7372,17 +7372,17 @@ function Ke(e) {
7372
7372
  }
7373
7373
  function wi(e) {
7374
7374
  const t = Ke(e);
7375
- return xt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Me(t) && Ot(t) ? t : wi(t);
7375
+ return xt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ie(t) && Ot(t) ? t : wi(t);
7376
7376
  }
7377
- function Mt(e, t, n) {
7377
+ function It(e, t, n) {
7378
7378
  var r;
7379
7379
  t === void 0 && (t = []), n === void 0 && (n = !0);
7380
7380
  const o = wi(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = ye(o);
7381
7381
  if (i) {
7382
7382
  const a = Vn(s);
7383
- return t.concat(s, s.visualViewport || [], Ot(o) ? o : [], a && n ? Mt(a) : []);
7383
+ return t.concat(s, s.visualViewport || [], Ot(o) ? o : [], a && n ? It(a) : []);
7384
7384
  }
7385
- return t.concat(o, Mt(o, [], n));
7385
+ return t.concat(o, It(o, [], n));
7386
7386
  }
7387
7387
  function Vn(e) {
7388
7388
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
@@ -7390,7 +7390,7 @@ function Vn(e) {
7390
7390
  function xi(e) {
7391
7391
  const t = Re(e);
7392
7392
  let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
7393
- const o = Me(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, a = qt(n) !== i || qt(r) !== s;
7393
+ const o = Ie(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, a = qt(n) !== i || qt(r) !== s;
7394
7394
  return a && (n = i, r = s), {
7395
7395
  width: n,
7396
7396
  height: r,
@@ -7402,7 +7402,7 @@ function yr(e) {
7402
7402
  }
7403
7403
  function yt(e) {
7404
7404
  const t = yr(e);
7405
- if (!Me(t))
7405
+ if (!Ie(t))
7406
7406
  return De(1);
7407
7407
  const n = t.getBoundingClientRect(), {
7408
7408
  width: r,
@@ -7473,8 +7473,8 @@ function Wf(e) {
7473
7473
  scrollLeft: 0,
7474
7474
  scrollTop: 0
7475
7475
  }, l = De(1);
7476
- const u = De(0), d = Me(r);
7477
- if ((d || !d && !i) && ((At(r) !== "body" || Ot(s)) && (c = mn(r)), Me(r))) {
7476
+ const u = De(0), d = Ie(r);
7477
+ if ((d || !d && !i) && ((At(r) !== "body" || Ot(s)) && (c = mn(r)), Ie(r))) {
7478
7478
  const m = ot(r);
7479
7479
  l = yt(r), u.x = m.x + r.clientLeft, u.y = m.y + r.clientTop;
7480
7480
  }
@@ -7523,7 +7523,7 @@ function Uf(e, t) {
7523
7523
  }
7524
7524
  const jf = /* @__PURE__ */ new Set(["absolute", "fixed"]);
7525
7525
  function Yf(e, t) {
7526
- const n = ot(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = Me(e) ? yt(e) : De(1), s = e.clientWidth * i.x, a = e.clientHeight * i.y, c = o * i.x, l = r * i.y;
7526
+ const n = ot(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = Ie(e) ? yt(e) : De(1), s = e.clientWidth * i.x, a = e.clientHeight * i.y, c = o * i.x, l = r * i.y;
7527
7527
  return {
7528
7528
  width: s,
7529
7529
  height: a,
@@ -7558,7 +7558,7 @@ function Kf(e, t) {
7558
7558
  const n = t.get(e);
7559
7559
  if (n)
7560
7560
  return n;
7561
- let r = Mt(e, [], !1).filter((a) => Ee(a) && At(a) !== "body"), o = null;
7561
+ let r = It(e, [], !1).filter((a) => Ee(a) && At(a) !== "body"), o = null;
7562
7562
  const i = Re(e).position === "fixed";
7563
7563
  let s = i ? Ke(e) : e;
7564
7564
  for (; Ee(s) && !xt(s); ) {
@@ -7596,7 +7596,7 @@ function Zf(e) {
7596
7596
  };
7597
7597
  }
7598
7598
  function qf(e, t, n) {
7599
- const r = Me(t), o = Oe(t), i = n === "fixed", s = ot(e, !0, i, t);
7599
+ const r = Ie(t), o = Oe(t), i = n === "fixed", s = ot(e, !0, i, t);
7600
7600
  let a = {
7601
7601
  scrollLeft: 0,
7602
7602
  scrollTop: 0
@@ -7623,7 +7623,7 @@ function Dn(e) {
7623
7623
  return Re(e).position === "static";
7624
7624
  }
7625
7625
  function Uo(e, t) {
7626
- if (!Me(e) || Re(e).position === "fixed")
7626
+ if (!Ie(e) || Re(e).position === "fixed")
7627
7627
  return null;
7628
7628
  if (t)
7629
7629
  return t(e);
@@ -7634,7 +7634,7 @@ function Ri(e, t) {
7634
7634
  const n = ye(e);
7635
7635
  if (hn(e))
7636
7636
  return n;
7637
- if (!Me(e)) {
7637
+ if (!Ie(e)) {
7638
7638
  let o = Ke(e);
7639
7639
  for (; o && !xt(o); ) {
7640
7640
  if (Ee(o) && !Dn(o))
@@ -7644,7 +7644,7 @@ function Ri(e, t) {
7644
7644
  return n;
7645
7645
  }
7646
7646
  let r = Uo(e, t);
7647
- for (; r && If(r) && Dn(r); )
7647
+ for (; r && Mf(r) && Dn(r); )
7648
7648
  r = Uo(r, t);
7649
7649
  return r && xt(r) && Dn(r) && !gr(r) ? n : r || $f(e) || n;
7650
7650
  }
@@ -7732,7 +7732,7 @@ function np(e, t, n, r) {
7732
7732
  elementResize: s = typeof ResizeObserver == "function",
7733
7733
  layoutShift: a = typeof IntersectionObserver == "function",
7734
7734
  animationFrame: c = !1
7735
- } = r, l = yr(e), u = o || i ? [...l ? Mt(l) : [], ...Mt(t)] : [];
7735
+ } = r, l = yr(e), u = o || i ? [...l ? It(l) : [], ...It(t)] : [];
7736
7736
  u.forEach((y) => {
7737
7737
  o && y.addEventListener("scroll", n, {
7738
7738
  passive: !0
@@ -7812,7 +7812,7 @@ function Yo(e, t) {
7812
7812
  const n = Ni(e);
7813
7813
  return Math.round(t * n) / n;
7814
7814
  }
7815
- function Mn(e) {
7815
+ function In(e) {
7816
7816
  const t = f.useRef(e);
7817
7817
  return Kt(() => {
7818
7818
  t.current = e;
@@ -7845,7 +7845,7 @@ function fp(e) {
7845
7845
  k !== N.current && (N.current = k, p(k));
7846
7846
  }, []), x = f.useCallback((k) => {
7847
7847
  k !== R.current && (R.current = k, y(k));
7848
- }, []), C = i || g, E = s || v, N = f.useRef(null), R = f.useRef(null), O = f.useRef(u), F = c != null, V = Mn(c), P = Mn(o), D = Mn(l), I = f.useCallback(() => {
7848
+ }, []), C = i || g, E = s || v, N = f.useRef(null), R = f.useRef(null), O = f.useRef(u), F = c != null, V = In(c), P = In(o), D = In(l), M = f.useCallback(() => {
7849
7849
  if (!N.current || !R.current)
7850
7850
  return;
7851
7851
  const k = {
@@ -7862,7 +7862,7 @@ function fp(e) {
7862
7862
  // setting it to `true` when `open === false` (must be specified).
7863
7863
  isPositioned: D.current !== !1
7864
7864
  };
7865
- M.current && !en(O.current, U) && (O.current = U, nn.flushSync(() => {
7865
+ I.current && !en(O.current, U) && (O.current = U, nn.flushSync(() => {
7866
7866
  d(U);
7867
7867
  }));
7868
7868
  });
@@ -7873,16 +7873,16 @@ function fp(e) {
7873
7873
  isPositioned: !1
7874
7874
  })));
7875
7875
  }, [l]);
7876
- const M = f.useRef(!1);
7877
- Kt(() => (M.current = !0, () => {
7878
- M.current = !1;
7876
+ const I = f.useRef(!1);
7877
+ Kt(() => (I.current = !0, () => {
7878
+ I.current = !1;
7879
7879
  }), []), Kt(() => {
7880
7880
  if (C && (N.current = C), E && (R.current = E), C && E) {
7881
7881
  if (V.current)
7882
- return V.current(C, E, I);
7883
- I();
7882
+ return V.current(C, E, M);
7883
+ M();
7884
7884
  }
7885
- }, [C, E, I, V, F]);
7885
+ }, [C, E, M, V, F]);
7886
7886
  const _ = f.useMemo(() => ({
7887
7887
  reference: N,
7888
7888
  floating: R,
@@ -7914,11 +7914,11 @@ function fp(e) {
7914
7914
  }, [n, a, A.floating, u.x, u.y]);
7915
7915
  return f.useMemo(() => ({
7916
7916
  ...u,
7917
- update: I,
7917
+ update: M,
7918
7918
  refs: _,
7919
7919
  elements: A,
7920
7920
  floatingStyles: T
7921
- }), [u, I, _, A, T]);
7921
+ }), [u, M, _, A, T]);
7922
7922
  }
7923
7923
  const pp = (e) => {
7924
7924
  function t(n) {
@@ -8002,14 +8002,14 @@ function Ti(e) {
8002
8002
  n(void 0);
8003
8003
  }, [e]), t;
8004
8004
  }
8005
- var br = "Popper", [ki, Di] = Xe(br), [Sp, Mi] = ki(br), Ii = (e) => {
8005
+ var br = "Popper", [ki, Di] = Xe(br), [Sp, Ii] = ki(br), Mi = (e) => {
8006
8006
  const { __scopePopper: t, children: n } = e, [r, o] = f.useState(null);
8007
8007
  return /* @__PURE__ */ b(Sp, { scope: t, anchor: r, onAnchorChange: o, children: n });
8008
8008
  };
8009
- Ii.displayName = br;
8009
+ Mi.displayName = br;
8010
8010
  var Oi = "PopperAnchor", _i = f.forwardRef(
8011
8011
  (e, t) => {
8012
- const { __scopePopper: n, virtualRef: r, ...o } = e, i = Mi(Oi, n), s = f.useRef(null), a = ee(t, s), c = f.useRef(null);
8012
+ const { __scopePopper: n, virtualRef: r, ...o } = e, i = Ii(Oi, n), s = f.useRef(null), a = ee(t, s), c = f.useRef(null);
8013
8013
  return f.useEffect(() => {
8014
8014
  const l = c.current;
8015
8015
  c.current = (r == null ? void 0 : r.current) || s.current, l !== c.current && i.onAnchorChange(c.current);
@@ -8035,12 +8035,12 @@ var wr = "PopperContent", [Ep, Rp] = ki(wr), Li = f.forwardRef(
8035
8035
  updatePositionStrategy: m = "optimized",
8036
8036
  onPlaced: g,
8037
8037
  ...p
8038
- } = e, v = Mi(wr, n), [y, w] = f.useState(null), x = ee(t, (ue) => w(ue)), [C, E] = f.useState(null), N = Ti(C), R = (N == null ? void 0 : N.width) ?? 0, O = (N == null ? void 0 : N.height) ?? 0, F = r + (i !== "center" ? "-" + i : ""), V = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, P = Array.isArray(l) ? l : [l], D = P.length > 0, I = {
8038
+ } = e, v = Ii(wr, n), [y, w] = f.useState(null), x = ee(t, (ue) => w(ue)), [C, E] = f.useState(null), N = Ti(C), R = (N == null ? void 0 : N.width) ?? 0, O = (N == null ? void 0 : N.height) ?? 0, F = r + (i !== "center" ? "-" + i : ""), V = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, P = Array.isArray(l) ? l : [l], D = P.length > 0, M = {
8039
8039
  padding: V,
8040
8040
  boundary: P.filter(Np),
8041
8041
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
8042
8042
  altBoundary: D
8043
- }, { refs: M, floatingStyles: _, placement: A, isPositioned: T, middlewareData: k } = fp({
8043
+ }, { refs: I, floatingStyles: _, placement: A, isPositioned: T, middlewareData: k } = fp({
8044
8044
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
8045
8045
  strategy: "fixed",
8046
8046
  placement: F,
@@ -8056,11 +8056,11 @@ var wr = "PopperContent", [Ep, Rp] = ki(wr), Li = f.forwardRef(
8056
8056
  mainAxis: !0,
8057
8057
  crossAxis: !1,
8058
8058
  limiter: d === "partial" ? gp() : void 0,
8059
- ...I
8059
+ ...M
8060
8060
  }),
8061
- c && vp({ ...I }),
8061
+ c && vp({ ...M }),
8062
8062
  yp({
8063
- ...I,
8063
+ ...M,
8064
8064
  apply: ({ elements: ue, rects: fe, availableWidth: Qe, availableHeight: Fe }) => {
8065
8065
  const { width: we, height: _t } = fe.reference, pe = ue.floating.style;
8066
8066
  pe.setProperty("--radix-popper-available-width", `${Qe}px`), pe.setProperty("--radix-popper-available-height", `${Fe}px`), pe.setProperty("--radix-popper-anchor-width", `${we}px`), pe.setProperty("--radix-popper-anchor-height", `${_t}px`);
@@ -8068,7 +8068,7 @@ var wr = "PopperContent", [Ep, Rp] = ki(wr), Li = f.forwardRef(
8068
8068
  }),
8069
8069
  C && wp({ element: C, padding: a }),
8070
8070
  Pp({ arrowWidth: R, arrowHeight: O }),
8071
- h && bp({ strategy: "referenceHidden", ...I })
8071
+ h && bp({ strategy: "referenceHidden", ...M })
8072
8072
  ]
8073
8073
  }), [L, U] = Bi(A), W = nt(g);
8074
8074
  ce(() => {
@@ -8080,7 +8080,7 @@ var wr = "PopperContent", [Ep, Rp] = ki(wr), Li = f.forwardRef(
8080
8080
  }, [y]), /* @__PURE__ */ b(
8081
8081
  "div",
8082
8082
  {
8083
- ref: M.setFloating,
8083
+ ref: I.setFloating,
8084
8084
  "data-radix-popper-content-wrapper": "",
8085
8085
  style: {
8086
8086
  ..._,
@@ -8200,7 +8200,7 @@ function Bi(e) {
8200
8200
  const [t, n = "center"] = e.split("-");
8201
8201
  return [t, n];
8202
8202
  }
8203
- var Tp = Ii, kp = _i, Dp = Li, Mp = $i;
8203
+ var Tp = Mi, kp = _i, Dp = Li, Ip = $i;
8204
8204
  function Fi(e) {
8205
8205
  const t = f.useRef({ value: e, previous: e });
8206
8206
  return f.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
@@ -8217,7 +8217,7 @@ var Vi = Object.freeze({
8217
8217
  clip: "rect(0, 0, 0, 0)",
8218
8218
  whiteSpace: "nowrap",
8219
8219
  wordWrap: "normal"
8220
- }), Ip = "VisuallyHidden", Op = f.forwardRef(
8220
+ }), Mp = "VisuallyHidden", Op = f.forwardRef(
8221
8221
  (e, t) => /* @__PURE__ */ b(
8222
8222
  K.span,
8223
8223
  {
@@ -8227,7 +8227,7 @@ var Vi = Object.freeze({
8227
8227
  }
8228
8228
  )
8229
8229
  );
8230
- Op.displayName = Ip;
8230
+ Op.displayName = Mp;
8231
8231
  var _p = [" ", "Enter", "ArrowUp", "ArrowDown"], Lp = [" ", "Enter"], st = "Select", [vn, yn, zp] = hs(st), [Nt] = Xe(st, [
8232
8232
  zp,
8233
8233
  Di
@@ -8257,7 +8257,7 @@ var _p = [" ", "Enter", "ArrowUp", "ArrowDown"], Lp = [" ", "Enter"], st = "Sele
8257
8257
  defaultProp: a,
8258
8258
  onChange: c,
8259
8259
  caller: st
8260
- }), P = f.useRef(null), D = v ? g || !!v.closest("form") : !0, [I, M] = f.useState(/* @__PURE__ */ new Set()), _ = Array.from(I).map((A) => A.props.value).join(";");
8260
+ }), P = f.useRef(null), D = v ? g || !!v.closest("form") : !0, [M, I] = f.useState(/* @__PURE__ */ new Set()), _ = Array.from(M).map((A) => A.props.value).join(";");
8261
8261
  return /* @__PURE__ */ b(Tp, { ...p, children: /* @__PURE__ */ le(
8262
8262
  $p,
8263
8263
  {
@@ -8283,10 +8283,10 @@ var _p = [" ", "Enter", "ArrowUp", "ArrowDown"], Lp = [" ", "Enter"], st = "Sele
8283
8283
  {
8284
8284
  scope: e.__scopeSelect,
8285
8285
  onNativeOptionAdd: f.useCallback((A) => {
8286
- M((T) => new Set(T).add(A));
8286
+ I((T) => new Set(T).add(A));
8287
8287
  }, []),
8288
8288
  onNativeOptionRemove: f.useCallback((A) => {
8289
- M((T) => {
8289
+ I((T) => {
8290
8290
  const k = new Set(T);
8291
8291
  return k.delete(A), k;
8292
8292
  });
@@ -8308,7 +8308,7 @@ var _p = [" ", "Enter", "ArrowUp", "ArrowDown"], Lp = [" ", "Enter"], st = "Sele
8308
8308
  form: g,
8309
8309
  children: [
8310
8310
  F === void 0 ? /* @__PURE__ */ b("option", { value: "" }) : null,
8311
- Array.from(I)
8311
+ Array.from(M)
8312
8312
  ]
8313
8313
  },
8314
8314
  _
@@ -8428,7 +8428,7 @@ var Se = 10, [Zi, qe] = Nt(it), Hp = "SelectContentImpl", Gp = /* @__PURE__ */ w
8428
8428
  ...y
8429
8429
  } = e, w = Ze(it, n), [x, C] = f.useState(null), [E, N] = f.useState(null), R = ee(t, (z) => C(z)), [O, F] = f.useState(null), [V, P] = f.useState(
8430
8430
  null
8431
- ), D = yn(n), [I, M] = f.useState(!1), _ = f.useRef(!1);
8431
+ ), D = yn(n), [M, I] = f.useState(!1), _ = f.useRef(!1);
8432
8432
  f.useEffect(() => {
8433
8433
  if (x) return js(x);
8434
8434
  }, [x]), zs();
@@ -8444,8 +8444,8 @@ var Se = 10, [Zi, qe] = Nt(it), Hp = "SelectContentImpl", Gp = /* @__PURE__ */ w
8444
8444
  [A, O, x]
8445
8445
  );
8446
8446
  f.useEffect(() => {
8447
- I && T();
8448
- }, [I, T]);
8447
+ M && T();
8448
+ }, [M, T]);
8449
8449
  const { onOpenChange: k, triggerPointerDownPosRef: L } = w;
8450
8450
  f.useEffect(() => {
8451
8451
  if (x) {
@@ -8510,7 +8510,7 @@ var Se = 10, [Zi, qe] = Nt(it), Hp = "SelectContentImpl", Gp = /* @__PURE__ */ w
8510
8510
  focusSelectedItem: T,
8511
8511
  selectedItemText: V,
8512
8512
  position: r,
8513
- isPositioned: I,
8513
+ isPositioned: M,
8514
8514
  searchRef: U,
8515
8515
  children: /* @__PURE__ */ b(sr, { as: Gp, allowPinchZoom: !0, children: /* @__PURE__ */ b(
8516
8516
  rr,
@@ -8543,7 +8543,7 @@ var Se = 10, [Zi, qe] = Nt(it), Hp = "SelectContentImpl", Gp = /* @__PURE__ */ w
8543
8543
  onContextMenu: (z) => z.preventDefault(),
8544
8544
  ...y,
8545
8545
  ...re,
8546
- onPlaced: () => M(!0),
8546
+ onPlaced: () => I(!0),
8547
8547
  ref: R,
8548
8548
  style: {
8549
8549
  // flex layout so we can place the scroll buttons properly
@@ -8597,7 +8597,7 @@ var Up = "SelectItemAlignedPosition", Qi = f.forwardRef((e, t) => {
8597
8597
  ]);
8598
8598
  a.style.minWidth = fe + "px", a.style.right = we + "px";
8599
8599
  }
8600
- const P = h(), D = window.innerHeight - Se * 2, I = p.scrollHeight, M = window.getComputedStyle(l), _ = parseInt(M.borderTopWidth, 10), A = parseInt(M.paddingTop, 10), T = parseInt(M.borderBottomWidth, 10), k = parseInt(M.paddingBottom, 10), L = _ + A + I + k + T, U = Math.min(v.offsetHeight * 5, L), W = window.getComputedStyle(p), se = parseInt(W.paddingTop, 10), B = parseInt(W.paddingBottom, 10), X = R.top + R.height / 2 - Se, J = D - X, re = v.offsetHeight / 2, z = v.offsetTop + re, $ = _ + A + z, ne = L - $;
8600
+ const P = h(), D = window.innerHeight - Se * 2, M = p.scrollHeight, I = window.getComputedStyle(l), _ = parseInt(I.borderTopWidth, 10), A = parseInt(I.paddingTop, 10), T = parseInt(I.borderBottomWidth, 10), k = parseInt(I.paddingBottom, 10), L = _ + A + M + k + T, U = Math.min(v.offsetHeight * 5, L), W = window.getComputedStyle(p), se = parseInt(W.paddingTop, 10), B = parseInt(W.paddingBottom, 10), X = R.top + R.height / 2 - Se, J = D - X, re = v.offsetHeight / 2, z = v.offsetTop + re, $ = _ + A + z, ne = L - $;
8601
8601
  if ($ <= X) {
8602
8602
  const Z = P.length > 0 && v === P[P.length - 1].ref.current;
8603
8603
  a.style.bottom = "0px";
@@ -8973,7 +8973,7 @@ fa.displayName = qp;
8973
8973
  var jn = "SelectArrow", Qp = f.forwardRef(
8974
8974
  (e, t) => {
8975
8975
  const { __scopeSelect: n, ...r } = e, o = bn(n), i = Ze(jn, n), s = qe(jn, n);
8976
- return i.open && s.position === "popper" ? /* @__PURE__ */ b(Mp, { ...o, ...r, ref: t }) : null;
8976
+ return i.open && s.position === "popper" ? /* @__PURE__ */ b(Ip, { ...o, ...r, ref: t }) : null;
8977
8977
  }
8978
8978
  );
8979
8979
  Qp.displayName = jn;
@@ -9212,7 +9212,7 @@ var Aa = "CheckboxTrigger", Na = f.forwardRef(
9212
9212
  role: "checkbox",
9213
9213
  "aria-checked": je(c) ? "mixed" : c,
9214
9214
  "aria-required": l,
9215
- "data-state": Ma(c),
9215
+ "data-state": Ia(c),
9216
9216
  "data-disabled": a ? "" : void 0,
9217
9217
  disabled: a,
9218
9218
  value: s,
@@ -9286,7 +9286,7 @@ var Pa = "CheckboxIndicator", Ta = f.forwardRef(
9286
9286
  children: /* @__PURE__ */ b(
9287
9287
  K.span,
9288
9288
  {
9289
- "data-state": Ma(i.checked),
9289
+ "data-state": Ia(i.checked),
9290
9290
  "data-disabled": i.disabled ? "" : void 0,
9291
9291
  ...o,
9292
9292
  ref: t,
@@ -9363,7 +9363,7 @@ function vh(e) {
9363
9363
  function je(e) {
9364
9364
  return e === "indeterminate";
9365
9365
  }
9366
- function Ma(e) {
9366
+ function Ia(e) {
9367
9367
  return je(e) ? "indeterminate" : e ? "checked" : "unchecked";
9368
9368
  }
9369
9369
  const yh = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ b(
@@ -9385,13 +9385,13 @@ const yh = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ b(
9385
9385
  }
9386
9386
  ));
9387
9387
  yh.displayName = Sr.displayName;
9388
- var Ia = "AlertDialog", [bh] = Xe(Ia, [
9388
+ var Ma = "AlertDialog", [bh] = Xe(Ma, [
9389
9389
  Ks
9390
9390
  ]), Be = Ks(), Oa = (e) => {
9391
9391
  const { __scopeAlertDialog: t, ...n } = e, r = Be(t);
9392
9392
  return /* @__PURE__ */ b(di, { ...r, ...n, modal: !0 });
9393
9393
  };
9394
- Oa.displayName = Ia;
9394
+ Oa.displayName = Ma;
9395
9395
  var wh = "AlertDialogTrigger", _a = f.forwardRef(
9396
9396
  (e, t) => {
9397
9397
  const { __scopeAlertDialog: n, ...r } = e, o = Be(n);
@@ -9497,7 +9497,7 @@ const Qh = Ph, Jh = Th, Dh = kh, Qa = f.forwardRef(({ className: e, ...t }, n) =
9497
9497
  }
9498
9498
  ));
9499
9499
  Qa.displayName = ja.displayName;
9500
- const Mh = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ le(Dh, { children: [
9500
+ const Ih = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ le(Dh, { children: [
9501
9501
  /* @__PURE__ */ b(Qa, {}),
9502
9502
  /* @__PURE__ */ b(
9503
9503
  Ya,
@@ -9511,8 +9511,8 @@ const Mh = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ le(Dh, {
9511
9511
  }
9512
9512
  )
9513
9513
  ] }));
9514
- Mh.displayName = Ya.displayName;
9515
- const Ih = ({
9514
+ Ih.displayName = Ya.displayName;
9515
+ const Mh = ({
9516
9516
  className: e,
9517
9517
  ...t
9518
9518
  }) => /* @__PURE__ */ b(
@@ -9525,7 +9525,7 @@ const Ih = ({
9525
9525
  ...t
9526
9526
  }
9527
9527
  );
9528
- Ih.displayName = "AlertDialogHeader";
9528
+ Mh.displayName = "AlertDialogHeader";
9529
9529
  const Oh = ({
9530
9530
  className: e,
9531
9531
  ...t
@@ -9580,20 +9580,21 @@ const $h = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ b(
9580
9580
  }
9581
9581
  ));
9582
9582
  $h.displayName = Xa.displayName;
9583
+ const em = "0.2.3";
9583
9584
  export {
9584
9585
  Uh as Accordion,
9585
9586
  _d as AccordionContent,
9586
- Id as AccordionItem,
9587
+ Md as AccordionItem,
9587
9588
  Od as AccordionTrigger,
9588
9589
  bc as Alert,
9589
9590
  wc as AlertDescription,
9590
9591
  Qh as AlertDialog,
9591
9592
  zh as AlertDialogAction,
9592
9593
  $h as AlertDialogCancel,
9593
- Mh as AlertDialogContent,
9594
+ Ih as AlertDialogContent,
9594
9595
  Lh as AlertDialogDescription,
9595
9596
  Oh as AlertDialogFooter,
9596
- Ih as AlertDialogHeader,
9597
+ Mh as AlertDialogHeader,
9597
9598
  Qa as AlertDialogOverlay,
9598
9599
  Dh as AlertDialogPortal,
9599
9600
  _h as AlertDialogTitle,
@@ -9634,6 +9635,7 @@ export {
9634
9635
  Ec as Spinner,
9635
9636
  Cc as Textarea,
9636
9637
  Gh as Toaster,
9638
+ em as UI_LIBRARY_VERSION,
9637
9639
  j as cn,
9638
9640
  Hh as toast
9639
9641
  };