boottent-design 0.1.48 → 0.1.49

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.
@@ -1790,14 +1790,14 @@ function xe(e, t = []) {
1790
1790
  n = [...n, s];
1791
1791
  const u = (f) => {
1792
1792
  var C;
1793
- const { scope: h, children: m, ...g } = f, v = ((C = h == null ? void 0 : h[e]) == null ? void 0 : C[d]) || c, w = l.useMemo(() => g, Object.values(g));
1794
- return /* @__PURE__ */ i(v.Provider, { value: w, children: m });
1793
+ const { scope: h, children: m, ...v } = f, g = ((C = h == null ? void 0 : h[e]) == null ? void 0 : C[d]) || c, w = l.useMemo(() => v, Object.values(v));
1794
+ return /* @__PURE__ */ i(g.Provider, { value: w, children: m });
1795
1795
  };
1796
1796
  u.displayName = a + "Provider";
1797
1797
  function p(f, h) {
1798
- var v;
1799
- const m = ((v = h == null ? void 0 : h[e]) == null ? void 0 : v[d]) || c, g = l.useContext(m);
1800
- if (g) return g;
1798
+ var g;
1799
+ const m = ((g = h == null ? void 0 : h[e]) == null ? void 0 : g[d]) || c, v = l.useContext(m);
1800
+ if (v) return v;
1801
1801
  if (s !== void 0) return s;
1802
1802
  throw new Error(`\`${f}\` must be used within \`${a}\``);
1803
1803
  }
@@ -1839,12 +1839,12 @@ function cl(e, t = []) {
1839
1839
  const c = l.createContext(s), d = n.length;
1840
1840
  n = [...n, s];
1841
1841
  function u(f) {
1842
- const { scope: h, children: m, ...g } = f, v = (h == null ? void 0 : h[e][d]) || c, w = l.useMemo(() => g, Object.values(g));
1843
- return /* @__PURE__ */ i(v.Provider, { value: w, children: m });
1842
+ const { scope: h, children: m, ...v } = f, g = (h == null ? void 0 : h[e][d]) || c, w = l.useMemo(() => v, Object.values(v));
1843
+ return /* @__PURE__ */ i(g.Provider, { value: w, children: m });
1844
1844
  }
1845
1845
  function p(f, h) {
1846
- const m = (h == null ? void 0 : h[e][d]) || c, g = l.useContext(m);
1847
- if (g) return g;
1846
+ const m = (h == null ? void 0 : h[e][d]) || c, v = l.useContext(m);
1847
+ if (v) return v;
1848
1848
  if (s !== void 0) return s;
1849
1849
  throw new Error(`\`${f}\` must be used within \`${a}\``);
1850
1850
  }
@@ -1935,34 +1935,34 @@ function Tt(e) {
1935
1935
  t,
1936
1936
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
1937
1937
  ), s = (m) => {
1938
- const { scope: g, children: v } = m, w = I.useRef(null), C = I.useRef(/* @__PURE__ */ new Map()).current;
1939
- return /* @__PURE__ */ i(r, { scope: g, itemMap: C, collectionRef: w, children: v });
1938
+ const { scope: v, children: g } = m, w = I.useRef(null), C = I.useRef(/* @__PURE__ */ new Map()).current;
1939
+ return /* @__PURE__ */ i(r, { scope: v, itemMap: C, collectionRef: w, children: g });
1940
1940
  };
1941
1941
  s.displayName = t;
1942
1942
  const c = e + "CollectionSlot", d = I.forwardRef(
1943
- (m, g) => {
1944
- const { scope: v, children: w } = m, C = a(c, v), y = W(g, C.collectionRef);
1943
+ (m, v) => {
1944
+ const { scope: g, children: w } = m, C = a(c, g), y = W(v, C.collectionRef);
1945
1945
  return /* @__PURE__ */ i(Me, { ref: y, children: w });
1946
1946
  }
1947
1947
  );
1948
1948
  d.displayName = c;
1949
1949
  const u = e + "CollectionItemSlot", p = "data-radix-collection-item", f = I.forwardRef(
1950
- (m, g) => {
1951
- const { scope: v, children: w, ...C } = m, y = I.useRef(null), x = W(g, y), b = a(u, v);
1950
+ (m, v) => {
1951
+ const { scope: g, children: w, ...C } = m, y = I.useRef(null), x = W(v, y), b = a(u, g);
1952
1952
  return I.useEffect(() => (b.itemMap.set(y, { ref: y, ...C }), () => void b.itemMap.delete(y))), /* @__PURE__ */ i(Me, { [p]: "", ref: x, children: w });
1953
1953
  }
1954
1954
  );
1955
1955
  f.displayName = u;
1956
1956
  function h(m) {
1957
- const g = a(e + "CollectionConsumer", m);
1957
+ const v = a(e + "CollectionConsumer", m);
1958
1958
  return I.useCallback(() => {
1959
- const w = g.collectionRef.current;
1959
+ const w = v.collectionRef.current;
1960
1960
  if (!w) return [];
1961
1961
  const C = Array.from(w.querySelectorAll(`[${p}]`));
1962
- return Array.from(g.itemMap.values()).sort(
1962
+ return Array.from(v.itemMap.values()).sort(
1963
1963
  (b, R) => C.indexOf(b.ref.current) - C.indexOf(R.ref.current)
1964
1964
  );
1965
- }, [g.collectionRef, g.itemMap]);
1965
+ }, [v.collectionRef, v.itemMap]);
1966
1966
  }
1967
1967
  return [
1968
1968
  { Provider: s, Slot: d, ItemSlot: f },
@@ -2076,8 +2076,8 @@ function vl(e) {
2076
2076
  if (t) {
2077
2077
  let u;
2078
2078
  const p = t.ownerDocument.defaultView ?? window, f = (m) => {
2079
- const v = rt(o.current).includes(m.animationName);
2080
- if (m.target === t && v && (d("ANIMATION_END"), !r.current)) {
2079
+ const g = rt(o.current).includes(m.animationName);
2080
+ if (m.target === t && g && (d("ANIMATION_END"), !r.current)) {
2081
2081
  const w = t.style.animationFillMode;
2082
2082
  t.style.animationFillMode = "forwards", u = p.setTimeout(() => {
2083
2083
  t.style.animationFillMode === "forwards" && (t.style.animationFillMode = w);
@@ -2178,7 +2178,7 @@ var Nn = "CollapsibleContent", lr = l.forwardRef(
2178
2178
  );
2179
2179
  lr.displayName = Nn;
2180
2180
  var Rl = l.forwardRef((e, t) => {
2181
- const { __scopeCollapsible: n, present: o, children: r, ...a } = e, s = Tn(Nn, n), [c, d] = l.useState(o), u = l.useRef(null), p = W(t, u), f = l.useRef(0), h = f.current, m = l.useRef(0), g = m.current, v = s.open || c, w = l.useRef(v), C = l.useRef();
2181
+ const { __scopeCollapsible: n, present: o, children: r, ...a } = e, s = Tn(Nn, n), [c, d] = l.useState(o), u = l.useRef(null), p = W(t, u), f = l.useRef(0), h = f.current, m = l.useRef(0), v = m.current, g = s.open || c, w = l.useRef(g), C = l.useRef();
2182
2182
  return l.useEffect(() => {
2183
2183
  const y = requestAnimationFrame(() => w.current = !1);
2184
2184
  return () => cancelAnimationFrame(y);
@@ -2198,15 +2198,15 @@ var Rl = l.forwardRef((e, t) => {
2198
2198
  "data-state": Sn(s.open),
2199
2199
  "data-disabled": s.disabled ? "" : void 0,
2200
2200
  id: s.contentId,
2201
- hidden: !v,
2201
+ hidden: !g,
2202
2202
  ...a,
2203
2203
  ref: p,
2204
2204
  style: {
2205
2205
  "--radix-collapsible-content-height": h ? `${h}px` : void 0,
2206
- "--radix-collapsible-content-width": g ? `${g}px` : void 0,
2206
+ "--radix-collapsible-content-width": v ? `${v}px` : void 0,
2207
2207
  ...e.style
2208
2208
  },
2209
- children: v && r
2209
+ children: g && r
2210
2210
  }
2211
2211
  );
2212
2212
  });
@@ -2289,10 +2289,10 @@ var [dr, _l] = St(me), [fr, Dl] = St(
2289
2289
  const { __scopeAccordion: n, disabled: o, dir: r, orientation: a = "vertical", ...s } = e, c = I.useRef(null), d = W(c, t), u = Nl(n), f = Nt(r) === "ltr", h = N(e.onKeyDown, (m) => {
2290
2290
  var S;
2291
2291
  if (!Tl.includes(m.key)) return;
2292
- const g = m.target, v = u().filter((O) => {
2292
+ const v = m.target, g = u().filter((O) => {
2293
2293
  var k;
2294
2294
  return !((k = O.ref.current) != null && k.disabled);
2295
- }), w = v.findIndex((O) => O.ref.current === g), C = v.length;
2295
+ }), w = g.findIndex((O) => O.ref.current === v), C = g.length;
2296
2296
  if (w === -1) return;
2297
2297
  m.preventDefault();
2298
2298
  let y = w;
@@ -2322,7 +2322,7 @@ var [dr, _l] = St(me), [fr, Dl] = St(
2322
2322
  break;
2323
2323
  }
2324
2324
  const A = y % C;
2325
- (S = v[A].ref.current) == null || S.focus();
2325
+ (S = g[A].ref.current) == null || S.focus();
2326
2326
  });
2327
2327
  return /* @__PURE__ */ i(
2328
2328
  Il,
@@ -2498,15 +2498,15 @@ const No = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, So =
2498
2498
  return h === void 0 || (u[f] = h), u;
2499
2499
  }, {}), d = t == null || (o = t.compoundVariants) === null || o === void 0 ? void 0 : o.reduce((u, p) => {
2500
2500
  let { class: f, className: h, ...m } = p;
2501
- return Object.entries(m).every((g) => {
2502
- let [v, w] = g;
2501
+ return Object.entries(m).every((v) => {
2502
+ let [g, w] = v;
2503
2503
  return Array.isArray(w) ? w.includes({
2504
2504
  ...a,
2505
2505
  ...c
2506
- }[v]) : {
2506
+ }[g]) : {
2507
2507
  ...a,
2508
2508
  ...c
2509
- }[v] === w;
2509
+ }[g] === w;
2510
2510
  }) ? [
2511
2511
  ...u,
2512
2512
  f,
@@ -2646,7 +2646,7 @@ var Kl = "DismissableLayer", ln = "dismissableLayer.update", Ul = "dismissableLa
2646
2646
  onInteractOutside: s,
2647
2647
  onDismiss: c,
2648
2648
  ...d
2649
- } = e, u = l.useContext(Ar), [p, f] = l.useState(null), h = (p == null ? void 0 : p.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = l.useState({}), g = W(t, (A) => f(A)), v = Array.from(u.layers), [w] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), C = v.indexOf(w), y = p ? v.indexOf(p) : -1, x = u.layersWithOutsidePointerEventsDisabled.size > 0, b = y >= C, R = zl((A) => {
2649
+ } = e, u = l.useContext(Ar), [p, f] = l.useState(null), h = (p == null ? void 0 : p.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = l.useState({}), v = W(t, (A) => f(A)), g = Array.from(u.layers), [w] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), C = g.indexOf(w), y = p ? g.indexOf(p) : -1, x = u.layersWithOutsidePointerEventsDisabled.size > 0, b = y >= C, R = zl((A) => {
2650
2650
  const S = A.target, O = [...u.branches].some((k) => k.contains(S));
2651
2651
  !b || O || (r == null || r(A), s == null || s(A), A.defaultPrevented || c == null || c());
2652
2652
  }, h), M = Xl((A) => {
@@ -2669,7 +2669,7 @@ var Kl = "DismissableLayer", ln = "dismissableLayer.update", Ul = "dismissableLa
2669
2669
  F.div,
2670
2670
  {
2671
2671
  ...d,
2672
- ref: g,
2672
+ ref: v,
2673
2673
  style: {
2674
2674
  pointerEvents: x ? b ? "auto" : "none" : void 0,
2675
2675
  ...e.style
@@ -2768,7 +2768,7 @@ var Xt = "focusScope.autoFocusOnMount", qt = "focusScope.autoFocusOnUnmount", Lo
2768
2768
  onMountAutoFocus: r,
2769
2769
  onUnmountAutoFocus: a,
2770
2770
  ...s
2771
- } = e, [c, d] = l.useState(null), u = U(r), p = U(a), f = l.useRef(null), h = W(t, (v) => d(v)), m = l.useRef({
2771
+ } = e, [c, d] = l.useState(null), u = U(r), p = U(a), f = l.useRef(null), h = W(t, (g) => d(g)), m = l.useRef({
2772
2772
  paused: !1,
2773
2773
  pause() {
2774
2774
  this.paused = !0;
@@ -2779,7 +2779,7 @@ var Xt = "focusScope.autoFocusOnMount", qt = "focusScope.autoFocusOnUnmount", Lo
2779
2779
  }).current;
2780
2780
  l.useEffect(() => {
2781
2781
  if (o) {
2782
- let v = function(x) {
2782
+ let g = function(x) {
2783
2783
  if (m.paused || !c) return;
2784
2784
  const b = x.target;
2785
2785
  c.contains(b) ? f.current = b : ve(f.current, { select: !0 });
@@ -2792,40 +2792,40 @@ var Xt = "focusScope.autoFocusOnMount", qt = "focusScope.autoFocusOnUnmount", Lo
2792
2792
  for (const R of x)
2793
2793
  R.removedNodes.length > 0 && ve(c);
2794
2794
  };
2795
- document.addEventListener("focusin", v), document.addEventListener("focusout", w);
2795
+ document.addEventListener("focusin", g), document.addEventListener("focusout", w);
2796
2796
  const y = new MutationObserver(C);
2797
2797
  return c && y.observe(c, { childList: !0, subtree: !0 }), () => {
2798
- document.removeEventListener("focusin", v), document.removeEventListener("focusout", w), y.disconnect();
2798
+ document.removeEventListener("focusin", g), document.removeEventListener("focusout", w), y.disconnect();
2799
2799
  };
2800
2800
  }
2801
2801
  }, [o, c, m.paused]), l.useEffect(() => {
2802
2802
  if (c) {
2803
2803
  ko.add(m);
2804
- const v = document.activeElement;
2805
- if (!c.contains(v)) {
2804
+ const g = document.activeElement;
2805
+ if (!c.contains(g)) {
2806
2806
  const C = new CustomEvent(Xt, Lo);
2807
- c.addEventListener(Xt, u), c.dispatchEvent(C), C.defaultPrevented || (eu(au(Nr(c)), { select: !0 }), document.activeElement === v && ve(c));
2807
+ c.addEventListener(Xt, u), c.dispatchEvent(C), C.defaultPrevented || (eu(au(Nr(c)), { select: !0 }), document.activeElement === g && ve(c));
2808
2808
  }
2809
2809
  return () => {
2810
2810
  c.removeEventListener(Xt, u), setTimeout(() => {
2811
2811
  const C = new CustomEvent(qt, Lo);
2812
- c.addEventListener(qt, p), c.dispatchEvent(C), C.defaultPrevented || ve(v ?? document.body, { select: !0 }), c.removeEventListener(qt, p), ko.remove(m);
2812
+ c.addEventListener(qt, p), c.dispatchEvent(C), C.defaultPrevented || ve(g ?? document.body, { select: !0 }), c.removeEventListener(qt, p), ko.remove(m);
2813
2813
  }, 0);
2814
2814
  };
2815
2815
  }
2816
2816
  }, [c, u, p, m]);
2817
- const g = l.useCallback(
2818
- (v) => {
2817
+ const v = l.useCallback(
2818
+ (g) => {
2819
2819
  if (!n && !o || m.paused) return;
2820
- const w = v.key === "Tab" && !v.altKey && !v.ctrlKey && !v.metaKey, C = document.activeElement;
2820
+ const w = g.key === "Tab" && !g.altKey && !g.ctrlKey && !g.metaKey, C = document.activeElement;
2821
2821
  if (w && C) {
2822
- const y = v.currentTarget, [x, b] = tu(y);
2823
- x && b ? !v.shiftKey && C === b ? (v.preventDefault(), n && ve(x, { select: !0 })) : v.shiftKey && C === x && (v.preventDefault(), n && ve(b, { select: !0 })) : C === y && v.preventDefault();
2822
+ const y = g.currentTarget, [x, b] = tu(y);
2823
+ x && b ? !g.shiftKey && C === b ? (g.preventDefault(), n && ve(x, { select: !0 })) : g.shiftKey && C === x && (g.preventDefault(), n && ve(b, { select: !0 })) : C === y && g.preventDefault();
2824
2824
  }
2825
2825
  },
2826
2826
  [n, o, m.paused]
2827
2827
  );
2828
- return /* @__PURE__ */ i(F.div, { tabIndex: -1, ...s, ref: h, onKeyDown: g });
2828
+ return /* @__PURE__ */ i(F.div, { tabIndex: -1, ...s, ref: h, onKeyDown: v });
2829
2829
  });
2830
2830
  In.displayName = Jl;
2831
2831
  function eu(e, { select: t = !1 } = {}) {
@@ -3057,12 +3057,12 @@ const mu = async (e, t, n) => {
3057
3057
  }), {
3058
3058
  x: p,
3059
3059
  y: f
3060
- } = $o(u, o, d), h = o, m = {}, g = 0;
3061
- for (let v = 0; v < c.length; v++) {
3060
+ } = $o(u, o, d), h = o, m = {}, v = 0;
3061
+ for (let g = 0; g < c.length; g++) {
3062
3062
  const {
3063
3063
  name: w,
3064
3064
  fn: C
3065
- } = c[v], {
3065
+ } = c[g], {
3066
3066
  x: y,
3067
3067
  y: x,
3068
3068
  data: b,
@@ -3087,14 +3087,14 @@ const mu = async (e, t, n) => {
3087
3087
  ...m[w],
3088
3088
  ...b
3089
3089
  }
3090
- }, R && g <= 50 && (g++, typeof R == "object" && (R.placement && (h = R.placement), R.rects && (u = R.rects === !0 ? await s.getElementRects({
3090
+ }, R && v <= 50 && (v++, typeof R == "object" && (R.placement && (h = R.placement), R.rects && (u = R.rects === !0 ? await s.getElementRects({
3091
3091
  reference: e,
3092
3092
  floating: t,
3093
3093
  strategy: r
3094
3094
  }) : R.rects), {
3095
3095
  x: p,
3096
3096
  y: f
3097
- } = $o(u, h, d)), v = -1);
3097
+ } = $o(u, h, d)), g = -1);
3098
3098
  }
3099
3099
  return {
3100
3100
  x: p,
@@ -3120,7 +3120,7 @@ async function Ue(e, t) {
3120
3120
  elementContext: f = "floating",
3121
3121
  altBoundary: h = !1,
3122
3122
  padding: m = 0
3123
- } = fe(t, e), g = Sr(m), w = c[h ? f === "floating" ? "reference" : "floating" : f], C = Ct(await a.getClippingRect({
3123
+ } = fe(t, e), v = Sr(m), w = c[h ? f === "floating" ? "reference" : "floating" : f], C = Ct(await a.getClippingRect({
3124
3124
  element: (n = await (a.isElement == null ? void 0 : a.isElement(w))) == null || n ? w : w.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(c.floating)),
3125
3125
  boundary: u,
3126
3126
  rootBoundary: p,
@@ -3143,10 +3143,10 @@ async function Ue(e, t) {
3143
3143
  strategy: d
3144
3144
  }) : y);
3145
3145
  return {
3146
- top: (C.top - R.top + g.top) / b.y,
3147
- bottom: (R.bottom - C.bottom + g.bottom) / b.y,
3148
- left: (C.left - R.left + g.left) / b.x,
3149
- right: (R.right - C.right + g.right) / b.x
3146
+ top: (C.top - R.top + v.top) / b.y,
3147
+ bottom: (R.bottom - C.bottom + v.bottom) / b.y,
3148
+ left: (C.left - R.left + v.left) / b.x,
3149
+ right: (R.right - C.right + v.right) / b.x
3150
3150
  };
3151
3151
  }
3152
3152
  const hu = (e) => ({
@@ -3170,10 +3170,10 @@ const hu = (e) => ({
3170
3170
  const f = Sr(p), h = {
3171
3171
  x: n,
3172
3172
  y: o
3173
- }, m = $n(r), g = Fn(m), v = await s.getDimensions(u), w = m === "y", C = w ? "top" : "left", y = w ? "bottom" : "right", x = w ? "clientHeight" : "clientWidth", b = a.reference[g] + a.reference[m] - h[m] - a.floating[g], R = h[m] - a.reference[m], M = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
3173
+ }, m = $n(r), v = Fn(m), g = await s.getDimensions(u), w = m === "y", C = w ? "top" : "left", y = w ? "bottom" : "right", x = w ? "clientHeight" : "clientWidth", b = a.reference[v] + a.reference[m] - h[m] - a.floating[v], R = h[m] - a.reference[m], M = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
3174
3174
  let A = M ? M[x] : 0;
3175
- (!A || !await (s.isElement == null ? void 0 : s.isElement(M))) && (A = c.floating[x] || a.floating[g]);
3176
- const S = b / 2 - R / 2, O = A / 2 - v[g] / 2 - 1, k = we(f[C], O), B = we(f[y], O), $ = k, V = A - v[g] - B, P = A / 2 - v[g] / 2 + S, H = un($, P, V), L = !d.arrow && $e(r) != null && P !== H && a.reference[g] / 2 - (P < $ ? k : B) - v[g] / 2 < 0, Z = L ? P < $ ? P - $ : P - V : 0;
3175
+ (!A || !await (s.isElement == null ? void 0 : s.isElement(M))) && (A = c.floating[x] || a.floating[v]);
3176
+ const S = b / 2 - R / 2, O = A / 2 - g[v] / 2 - 1, k = we(f[C], O), B = we(f[y], O), $ = k, V = A - g[v] - B, P = A / 2 - g[v] / 2 + S, H = un($, P, V), L = !d.arrow && $e(r) != null && P !== H && a.reference[v] / 2 - (P < $ ? k : B) - g[v] / 2 < 0, Z = L ? P < $ ? P - $ : P - V : 0;
3177
3177
  return {
3178
3178
  [m]: h[m] + Z,
3179
3179
  data: {
@@ -3204,14 +3204,14 @@ const hu = (e) => ({
3204
3204
  crossAxis: f = !0,
3205
3205
  fallbackPlacements: h,
3206
3206
  fallbackStrategy: m = "bestFit",
3207
- fallbackAxisSideDirection: g = "none",
3208
- flipAlignment: v = !0,
3207
+ fallbackAxisSideDirection: v = "none",
3208
+ flipAlignment: g = !0,
3209
3209
  ...w
3210
3210
  } = fe(e, t);
3211
3211
  if ((n = a.arrow) != null && n.alignmentOffset)
3212
3212
  return {};
3213
- const C = pe(r), y = Ce(c), x = pe(c) === c, b = await (d.isRTL == null ? void 0 : d.isRTL(u.floating)), R = h || (x || !v ? [wt(c)] : uu(c)), M = g !== "none";
3214
- !h && M && R.push(...fu(c, v, g, b));
3213
+ const C = pe(r), y = Ce(c), x = pe(c) === c, b = await (d.isRTL == null ? void 0 : d.isRTL(u.floating)), R = h || (x || !g ? [wt(c)] : uu(c)), M = v !== "none";
3214
+ !h && M && R.push(...fu(c, g, v, b));
3215
3215
  const A = [c, ...R], S = await Ue(t, w), O = [];
3216
3216
  let k = ((o = a.flip) == null ? void 0 : o.overflows) || [];
3217
3217
  if (p && O.push(S[C]), f) {
@@ -3328,7 +3328,7 @@ async function wu(e, t) {
3328
3328
  let {
3329
3329
  mainAxis: h,
3330
3330
  crossAxis: m,
3331
- alignmentAxis: g
3331
+ alignmentAxis: v
3332
3332
  } = typeof f == "number" ? {
3333
3333
  mainAxis: f,
3334
3334
  crossAxis: 0,
@@ -3338,7 +3338,7 @@ async function wu(e, t) {
3338
3338
  crossAxis: f.crossAxis || 0,
3339
3339
  alignmentAxis: f.alignmentAxis
3340
3340
  };
3341
- return c && typeof g == "number" && (m = c === "end" ? g * -1 : g), d ? {
3341
+ return c && typeof v == "number" && (m = c === "end" ? v * -1 : v), d ? {
3342
3342
  x: m * p,
3343
3343
  y: h * u
3344
3344
  } : {
@@ -3397,25 +3397,25 @@ const Cu = function(e) {
3397
3397
  x: n,
3398
3398
  y: o
3399
3399
  }, p = await Ue(t, d), f = Ce(pe(r)), h = kn(f);
3400
- let m = u[h], g = u[f];
3400
+ let m = u[h], v = u[f];
3401
3401
  if (a) {
3402
3402
  const w = h === "y" ? "top" : "left", C = h === "y" ? "bottom" : "right", y = m + p[w], x = m - p[C];
3403
3403
  m = un(y, m, x);
3404
3404
  }
3405
3405
  if (s) {
3406
- const w = f === "y" ? "top" : "left", C = f === "y" ? "bottom" : "right", y = g + p[w], x = g - p[C];
3407
- g = un(y, g, x);
3406
+ const w = f === "y" ? "top" : "left", C = f === "y" ? "bottom" : "right", y = v + p[w], x = v - p[C];
3407
+ v = un(y, v, x);
3408
3408
  }
3409
- const v = c.fn({
3409
+ const g = c.fn({
3410
3410
  ...t,
3411
3411
  [h]: m,
3412
- [f]: g
3412
+ [f]: v
3413
3413
  });
3414
3414
  return {
3415
- ...v,
3415
+ ...g,
3416
3416
  data: {
3417
- x: v.x - n,
3418
- y: v.y - o,
3417
+ x: g.x - n,
3418
+ y: g.y - o,
3419
3419
  enabled: {
3420
3420
  [h]: a,
3421
3421
  [f]: s
@@ -3442,14 +3442,14 @@ const Cu = function(e) {
3442
3442
  x: n,
3443
3443
  y: o
3444
3444
  }, f = Ce(r), h = kn(f);
3445
- let m = p[h], g = p[f];
3446
- const v = fe(c, t), w = typeof v == "number" ? {
3447
- mainAxis: v,
3445
+ let m = p[h], v = p[f];
3446
+ const g = fe(c, t), w = typeof g == "number" ? {
3447
+ mainAxis: g,
3448
3448
  crossAxis: 0
3449
3449
  } : {
3450
3450
  mainAxis: 0,
3451
3451
  crossAxis: 0,
3452
- ...v
3452
+ ...g
3453
3453
  };
3454
3454
  if (d) {
3455
3455
  const x = h === "y" ? "height" : "width", b = a.reference[h] - a.floating[x] + w.mainAxis, R = a.reference[h] + a.reference[x] - w.mainAxis;
@@ -3458,11 +3458,11 @@ const Cu = function(e) {
3458
3458
  if (u) {
3459
3459
  var C, y;
3460
3460
  const x = h === "y" ? "width" : "height", b = ["top", "left"].includes(pe(r)), R = a.reference[f] - a.floating[x] + (b && ((C = s.offset) == null ? void 0 : C[f]) || 0) + (b ? 0 : w.crossAxis), M = a.reference[f] + a.reference[x] + (b ? 0 : ((y = s.offset) == null ? void 0 : y[f]) || 0) - (b ? w.crossAxis : 0);
3461
- g < R ? g = R : g > M && (g = M);
3461
+ v < R ? v = R : v > M && (v = M);
3462
3462
  }
3463
3463
  return {
3464
3464
  [h]: m,
3465
- [f]: g
3465
+ [f]: v
3466
3466
  };
3467
3467
  }
3468
3468
  };
@@ -3482,16 +3482,16 @@ const Cu = function(e) {
3482
3482
  },
3483
3483
  ...u
3484
3484
  } = fe(e, t), p = await Ue(t, u), f = pe(r), h = $e(r), m = Ce(r) === "y", {
3485
- width: g,
3486
- height: v
3485
+ width: v,
3486
+ height: g
3487
3487
  } = a.floating;
3488
3488
  let w, C;
3489
3489
  f === "top" || f === "bottom" ? (w = f, C = h === (await (s.isRTL == null ? void 0 : s.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (C = f, w = h === "end" ? "top" : "bottom");
3490
- const y = v - p.top - p.bottom, x = g - p.left - p.right, b = we(v - p[w], y), R = we(g - p[C], x), M = !t.middlewareData.shift;
3490
+ const y = g - p.top - p.bottom, x = v - p.left - p.right, b = we(g - p[w], y), R = we(v - p[C], x), M = !t.middlewareData.shift;
3491
3491
  let A = b, S = R;
3492
3492
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (S = x), (o = t.middlewareData.shift) != null && o.enabled.y && (A = y), M && !h) {
3493
3493
  const k = z(p.left, 0), B = z(p.right, 0), $ = z(p.top, 0), V = z(p.bottom, 0);
3494
- m ? S = g - 2 * (k !== 0 || B !== 0 ? k + B : z(p.left, p.right)) : A = v - 2 * ($ !== 0 || V !== 0 ? $ + V : z(p.top, p.bottom));
3494
+ m ? S = v - 2 * (k !== 0 || B !== 0 ? k + B : z(p.left, p.right)) : A = g - 2 * ($ !== 0 || V !== 0 ? $ + V : z(p.top, p.bottom));
3495
3495
  }
3496
3496
  await d({
3497
3497
  ...t,
@@ -3499,7 +3499,7 @@ const Cu = function(e) {
3499
3499
  availableHeight: A
3500
3500
  });
3501
3501
  const O = await s.getDimensions(c.floating);
3502
- return g !== O.width || v !== O.height ? {
3502
+ return v !== O.width || g !== O.height ? {
3503
3503
  reset: {
3504
3504
  rects: !0
3505
3505
  }
@@ -3664,10 +3664,10 @@ function Pe(e, t, n, o) {
3664
3664
  let d = (r.left + c.x) / s.x, u = (r.top + c.y) / s.y, p = r.width / s.x, f = r.height / s.y;
3665
3665
  if (a) {
3666
3666
  const h = X(a), m = o && te(o) ? X(o) : o;
3667
- let g = h, v = fn(g);
3668
- for (; v && o && m !== g; ) {
3669
- const w = Oe(v), C = v.getBoundingClientRect(), y = ne(v), x = C.left + (v.clientLeft + parseFloat(y.paddingLeft)) * w.x, b = C.top + (v.clientTop + parseFloat(y.paddingTop)) * w.y;
3670
- d *= w.x, u *= w.y, p *= w.x, f *= w.y, d += x, u += b, g = X(v), v = fn(g);
3667
+ let v = h, g = fn(v);
3668
+ for (; g && o && m !== v; ) {
3669
+ const w = Oe(g), C = g.getBoundingClientRect(), y = ne(g), x = C.left + (g.clientLeft + parseFloat(y.paddingLeft)) * w.x, b = C.top + (g.clientTop + parseFloat(y.paddingTop)) * w.y;
3670
+ d *= w.x, u *= w.y, p *= w.x, f *= w.y, d += x, u += b, v = X(g), g = fn(v);
3671
3671
  }
3672
3672
  }
3673
3673
  return Ct({
@@ -3914,8 +3914,8 @@ function Vu(e, t) {
3914
3914
  } = e.getBoundingClientRect();
3915
3915
  if (c || t(), !f || !h)
3916
3916
  return;
3917
- const m = at(p), g = at(r.clientWidth - (u + f)), v = at(r.clientHeight - (p + h)), w = at(u), y = {
3918
- rootMargin: -m + "px " + -g + "px " + -v + "px " + -w + "px",
3917
+ const m = at(p), v = at(r.clientWidth - (u + f)), g = at(r.clientHeight - (p + h)), w = at(u), y = {
3918
+ rootMargin: -m + "px " + -v + "px " + -g + "px " + -w + "px",
3919
3919
  threshold: z(0, we(1, d)) || 1
3920
3920
  };
3921
3921
  let x = !0;
@@ -3966,17 +3966,17 @@ function Hu(e, t, n, o) {
3966
3966
  (x = m) == null || x.observe(t);
3967
3967
  })), n();
3968
3968
  }), u && !d && m.observe(u), m.observe(t));
3969
- let g, v = d ? Pe(e) : null;
3969
+ let v, g = d ? Pe(e) : null;
3970
3970
  d && w();
3971
3971
  function w() {
3972
3972
  const C = Pe(e);
3973
- v && (C.x !== v.x || C.y !== v.y || C.width !== v.width || C.height !== v.height) && n(), v = C, g = requestAnimationFrame(w);
3973
+ g && (C.x !== g.x || C.y !== g.y || C.width !== g.width || C.height !== g.height) && n(), g = C, v = requestAnimationFrame(w);
3974
3974
  }
3975
3975
  return n(), () => {
3976
3976
  var C;
3977
3977
  p.forEach((y) => {
3978
3978
  r && y.removeEventListener("scroll", n), a && y.removeEventListener("resize", n);
3979
- }), f == null || f(), (C = m) == null || C.disconnect(), m = null, d && cancelAnimationFrame(g);
3979
+ }), f == null || f(), (C = m) == null || C.disconnect(), m = null, d && cancelAnimationFrame(v);
3980
3980
  };
3981
3981
  }
3982
3982
  const Bu = Cu, Zu = yu, Gu = gu, Wu = bu, Ku = vu, Wo = hu, Uu = xu, ju = (e, t, n) => {
@@ -4059,11 +4059,11 @@ function Yu(e) {
4059
4059
  isPositioned: !1
4060
4060
  }), [h, m] = l.useState(o);
4061
4061
  yt(h, o) || m(o);
4062
- const [g, v] = l.useState(null), [w, C] = l.useState(null), y = l.useCallback((_) => {
4063
- _ !== M.current && (M.current = _, v(_));
4062
+ const [v, g] = l.useState(null), [w, C] = l.useState(null), y = l.useCallback((_) => {
4063
+ _ !== M.current && (M.current = _, g(_));
4064
4064
  }, []), x = l.useCallback((_) => {
4065
4065
  _ !== A.current && (A.current = _, C(_));
4066
- }, []), b = a || g, R = s || w, M = l.useRef(null), A = l.useRef(null), S = l.useRef(p), O = d != null, k = Jt(d), B = Jt(r), $ = Jt(u), V = l.useCallback(() => {
4066
+ }, []), b = a || v, R = s || w, M = l.useRef(null), A = l.useRef(null), S = l.useRef(p), O = d != null, k = Jt(d), B = Jt(r), $ = Jt(u), V = l.useCallback(() => {
4067
4067
  if (!M.current || !A.current)
4068
4068
  return;
4069
4069
  const _ = {
@@ -4204,12 +4204,12 @@ function a1(e, t = []) {
4204
4204
  const c = l.createContext(s), d = n.length;
4205
4205
  n = [...n, s];
4206
4206
  function u(f) {
4207
- const { scope: h, children: m, ...g } = f, v = (h == null ? void 0 : h[e][d]) || c, w = l.useMemo(() => g, Object.values(g));
4208
- return /* @__PURE__ */ i(v.Provider, { value: w, children: m });
4207
+ const { scope: h, children: m, ...v } = f, g = (h == null ? void 0 : h[e][d]) || c, w = l.useMemo(() => v, Object.values(v));
4208
+ return /* @__PURE__ */ i(g.Provider, { value: w, children: m });
4209
4209
  }
4210
4210
  function p(f, h) {
4211
- const m = (h == null ? void 0 : h[e][d]) || c, g = l.useContext(m);
4212
- if (g) return g;
4211
+ const m = (h == null ? void 0 : h[e][d]) || c, v = l.useContext(m);
4212
+ if (v) return v;
4213
4213
  if (s !== void 0) return s;
4214
4214
  throw new Error(`\`${f}\` must be used within \`${a}\``);
4215
4215
  }
@@ -4297,8 +4297,8 @@ var Wn = "PopperContent", [l1, u1] = Hr(Wn), Kr = l.forwardRef(
4297
4297
  sticky: f = "partial",
4298
4298
  hideWhenDetached: h = !1,
4299
4299
  updatePositionStrategy: m = "optimized",
4300
- onPlaced: g,
4301
- ...v
4300
+ onPlaced: v,
4301
+ ...g
4302
4302
  } = e, w = Br(Wn, n), [C, y] = l.useState(null), x = W(t, (Ge) => y(Ge)), [b, R] = l.useState(null), M = s1(b), A = (M == null ? void 0 : M.width) ?? 0, S = (M == null ? void 0 : M.height) ?? 0, O = o + (a !== "center" ? "-" + a : ""), k = typeof p == "number" ? p : { top: 0, right: 0, bottom: 0, left: 0, ...p }, B = Array.isArray(u) ? u : [u], $ = B.length > 0, V = {
4303
4303
  padding: k,
4304
4304
  boundary: B.filter(f1),
@@ -4334,7 +4334,7 @@ var Wn = "PopperContent", [l1, u1] = Hr(Wn), Kr = l.forwardRef(
4334
4334
  p1({ arrowWidth: A, arrowHeight: S }),
4335
4335
  h && t1({ strategy: "referenceHidden", ...V })
4336
4336
  ]
4337
- }), [T, G] = Yr(L), K = U(g);
4337
+ }), [T, G] = Yr(L), K = U(v);
4338
4338
  de(() => {
4339
4339
  Z && (K == null || K());
4340
4340
  }, [Z, K]);
@@ -4379,10 +4379,10 @@ var Wn = "PopperContent", [l1, u1] = Hr(Wn), Kr = l.forwardRef(
4379
4379
  {
4380
4380
  "data-side": T,
4381
4381
  "data-align": G,
4382
- ...v,
4382
+ ...g,
4383
4383
  ref: x,
4384
4384
  style: {
4385
- ...v.style,
4385
+ ...g.style,
4386
4386
  // if the PopperContent hasn't been placed yet (not all measurements done)
4387
4387
  // we prevent animations so that users's animation don't kick in too early referring wrong sides
4388
4388
  animation: Z ? void 0 : "none"
@@ -4456,8 +4456,8 @@ var p1 = (e) => ({
4456
4456
  fn(t) {
4457
4457
  var w, C, y;
4458
4458
  const { placement: n, rects: o, middlewareData: r } = t, s = ((w = r.arrow) == null ? void 0 : w.centerOffset) !== 0, c = s ? 0 : e.arrowWidth, d = s ? 0 : e.arrowHeight, [u, p] = Yr(n), f = { start: "0%", center: "50%", end: "100%" }[p], h = (((C = r.arrow) == null ? void 0 : C.x) ?? 0) + c / 2, m = (((y = r.arrow) == null ? void 0 : y.y) ?? 0) + d / 2;
4459
- let g = "", v = "";
4460
- return u === "bottom" ? (g = s ? f : `${h}px`, v = `${-d}px`) : u === "top" ? (g = s ? f : `${h}px`, v = `${o.floating.height + d}px`) : u === "right" ? (g = `${-d}px`, v = s ? f : `${m}px`) : u === "left" && (g = `${o.floating.width + d}px`, v = s ? f : `${m}px`), { data: { x: g, y: v } };
4459
+ let v = "", g = "";
4460
+ return u === "bottom" ? (v = s ? f : `${h}px`, g = `${-d}px`) : u === "top" ? (v = s ? f : `${h}px`, g = `${o.floating.height + d}px`) : u === "right" ? (v = `${-d}px`, g = s ? f : `${m}px`) : u === "left" && (v = `${o.floating.width + d}px`, g = s ? f : `${m}px`), { data: { x: v, y: g } };
4461
4461
  }
4462
4462
  });
4463
4463
  function Yr(e) {
@@ -4478,12 +4478,12 @@ function h1(e, t = []) {
4478
4478
  const c = l.createContext(s), d = n.length;
4479
4479
  n = [...n, s];
4480
4480
  function u(f) {
4481
- const { scope: h, children: m, ...g } = f, v = (h == null ? void 0 : h[e][d]) || c, w = l.useMemo(() => g, Object.values(g));
4482
- return /* @__PURE__ */ i(v.Provider, { value: w, children: m });
4481
+ const { scope: h, children: m, ...v } = f, g = (h == null ? void 0 : h[e][d]) || c, w = l.useMemo(() => v, Object.values(v));
4482
+ return /* @__PURE__ */ i(g.Provider, { value: w, children: m });
4483
4483
  }
4484
4484
  function p(f, h) {
4485
- const m = (h == null ? void 0 : h[e][d]) || c, g = l.useContext(m);
4486
- if (g) return g;
4485
+ const m = (h == null ? void 0 : h[e][d]) || c, v = l.useContext(m);
4486
+ if (v) return v;
4487
4487
  if (s !== void 0) return s;
4488
4488
  throw new Error(`\`${f}\` must be used within \`${a}\``);
4489
4489
  }
@@ -4538,7 +4538,7 @@ var b1 = l.forwardRef((e, t) => {
4538
4538
  onEntryFocus: u,
4539
4539
  preventScrollOnEntryFocus: p = !1,
4540
4540
  ...f
4541
- } = e, h = l.useRef(null), m = W(t, h), g = Nt(a), [v = null, w] = J({
4541
+ } = e, h = l.useRef(null), m = W(t, h), v = Nt(a), [g = null, w] = J({
4542
4542
  prop: s,
4543
4543
  defaultProp: c,
4544
4544
  onChange: d
@@ -4552,9 +4552,9 @@ var b1 = l.forwardRef((e, t) => {
4552
4552
  {
4553
4553
  scope: n,
4554
4554
  orientation: o,
4555
- dir: g,
4555
+ dir: v,
4556
4556
  loop: r,
4557
- currentTabStopId: v,
4557
+ currentTabStopId: g,
4558
4558
  onItemFocus: l.useCallback(
4559
4559
  (S) => w(S),
4560
4560
  [w]
@@ -4584,7 +4584,7 @@ var b1 = l.forwardRef((e, t) => {
4584
4584
  if (S.target === S.currentTarget && O && !C) {
4585
4585
  const k = new CustomEvent(en, v1);
4586
4586
  if (S.currentTarget.dispatchEvent(k), !k.defaultPrevented) {
4587
- const B = b().filter((L) => L.focusable), $ = B.find((L) => L.active), V = B.find((L) => L.id === v), H = [$, V, ...B].filter(
4587
+ const B = b().filter((L) => L.focusable), $ = B.find((L) => L.active), V = B.find((L) => L.id === g), H = [$, V, ...B].filter(
4588
4588
  Boolean
4589
4589
  ).map((L) => L.ref.current);
4590
4590
  na(H, p);
@@ -4623,25 +4623,25 @@ var b1 = l.forwardRef((e, t) => {
4623
4623
  "data-orientation": u.orientation,
4624
4624
  ...s,
4625
4625
  ref: t,
4626
- onMouseDown: N(e.onMouseDown, (g) => {
4627
- o ? u.onItemFocus(d) : g.preventDefault();
4626
+ onMouseDown: N(e.onMouseDown, (v) => {
4627
+ o ? u.onItemFocus(d) : v.preventDefault();
4628
4628
  }),
4629
4629
  onFocus: N(e.onFocus, () => u.onItemFocus(d)),
4630
- onKeyDown: N(e.onKeyDown, (g) => {
4631
- if (g.key === "Tab" && g.shiftKey) {
4630
+ onKeyDown: N(e.onKeyDown, (v) => {
4631
+ if (v.key === "Tab" && v.shiftKey) {
4632
4632
  u.onItemShiftTab();
4633
4633
  return;
4634
4634
  }
4635
- if (g.target !== g.currentTarget) return;
4636
- const v = A1(g, u.orientation, u.dir);
4637
- if (v !== void 0) {
4638
- if (g.metaKey || g.ctrlKey || g.altKey || g.shiftKey) return;
4639
- g.preventDefault();
4635
+ if (v.target !== v.currentTarget) return;
4636
+ const g = A1(v, u.orientation, u.dir);
4637
+ if (g !== void 0) {
4638
+ if (v.metaKey || v.ctrlKey || v.altKey || v.shiftKey) return;
4639
+ v.preventDefault();
4640
4640
  let C = f().filter((y) => y.focusable).map((y) => y.ref.current);
4641
- if (v === "last") C.reverse();
4642
- else if (v === "prev" || v === "next") {
4643
- v === "prev" && C.reverse();
4644
- const y = C.indexOf(g.currentTarget);
4641
+ if (g === "last") C.reverse();
4642
+ else if (g === "prev" || g === "next") {
4643
+ g === "prev" && C.reverse();
4644
+ const y = C.indexOf(v.currentTarget);
4645
4645
  C = u.loop ? M1(C, y + 1) : C.slice(y + 1);
4646
4646
  }
4647
4647
  setTimeout(() => na(C));
@@ -4709,8 +4709,8 @@ var oa = Jr, ra = ta, P1 = function(e) {
4709
4709
  p(h);
4710
4710
  else
4711
4711
  try {
4712
- var m = h.getAttribute(o), g = m !== null && m !== "false", v = (Se.get(h) || 0) + 1, w = (a.get(h) || 0) + 1;
4713
- Se.set(h, v), a.set(h, w), s.push(h), v === 1 && g && it.set(h, !0), w === 1 && h.setAttribute(n, "true"), g || h.setAttribute(o, "true");
4712
+ var m = h.getAttribute(o), v = m !== null && m !== "false", g = (Se.get(h) || 0) + 1, w = (a.get(h) || 0) + 1;
4713
+ Se.set(h, g), a.set(h, w), s.push(h), g === 1 && v && it.set(h, !0), w === 1 && h.setAttribute(n, "true"), v || h.setAttribute(o, "true");
4714
4714
  } catch (C) {
4715
4715
  console.error("aria-hidden: cannot operate on ", h, C);
4716
4716
  }
@@ -4877,11 +4877,11 @@ var la = $1(), on = function() {
4877
4877
  onScrollCapture: on,
4878
4878
  onWheelCapture: on,
4879
4879
  onTouchMoveCapture: on
4880
- }), r = o[0], a = o[1], s = e.forwardProps, c = e.children, d = e.className, u = e.removeScrollBar, p = e.enabled, f = e.shards, h = e.sideCar, m = e.noIsolation, g = e.inert, v = e.allowPinchZoom, w = e.as, C = w === void 0 ? "div" : w, y = e.gapMode, x = sa(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), b = h, R = I1([n, t]), M = ie(ie({}, x), r);
4880
+ }), r = o[0], a = o[1], s = e.forwardProps, c = e.children, d = e.className, u = e.removeScrollBar, p = e.enabled, f = e.shards, h = e.sideCar, m = e.noIsolation, v = e.inert, g = e.allowPinchZoom, w = e.as, C = w === void 0 ? "div" : w, y = e.gapMode, x = sa(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), b = h, R = I1([n, t]), M = ie(ie({}, x), r);
4881
4881
  return l.createElement(
4882
4882
  l.Fragment,
4883
4883
  null,
4884
- p && l.createElement(b, { sideCar: la, removeScrollBar: u, shards: f, noIsolation: m, inert: g, setCallbacks: a, allowPinchZoom: !!v, lockRef: n, gapMode: y }),
4884
+ p && l.createElement(b, { sideCar: la, removeScrollBar: u, shards: f, noIsolation: m, inert: v, setCallbacks: a, allowPinchZoom: !!g, lockRef: n, gapMode: y }),
4885
4885
  s ? l.cloneElement(l.Children.only(c), ie(ie({}, M), { ref: R })) : l.createElement(C, ie({}, M, { className: d, ref: R }), c)
4886
4886
  );
4887
4887
  });
@@ -5082,8 +5082,8 @@ var _e = mn ? { passive: !1 } : !1, J1 = function(e) {
5082
5082
  }, ad = function(e, t, n, o, r) {
5083
5083
  var a = rd(e, window.getComputedStyle(t).direction), s = a * o, c = n.target, d = t.contains(c), u = !1, p = s > 0, f = 0, h = 0;
5084
5084
  do {
5085
- var m = pa(e, c), g = m[0], v = m[1], w = m[2], C = v - w - a * g;
5086
- (g || C) && fa(e, c) && (f += C, h += g), c instanceof ShadowRoot ? c = c.host : c = c.parentNode;
5085
+ var m = pa(e, c), v = m[0], g = m[1], w = m[2], C = g - w - a * v;
5086
+ (v || C) && fa(e, c) && (f += C, h += v), c instanceof ShadowRoot ? c = c.host : c = c.parentNode;
5087
5087
  } while (
5088
5088
  // portaled content
5089
5089
  !d && c !== document.body || // self content
@@ -5111,33 +5111,33 @@ function ld(e) {
5111
5111
  }, [e]), l.useEffect(function() {
5112
5112
  if (e.inert) {
5113
5113
  document.body.classList.add("block-interactivity-".concat(r));
5114
- var v = S1([e.lockRef.current], (e.shards || []).map(Xo), !0).filter(Boolean);
5115
- return v.forEach(function(w) {
5114
+ var g = S1([e.lockRef.current], (e.shards || []).map(Xo), !0).filter(Boolean);
5115
+ return g.forEach(function(w) {
5116
5116
  return w.classList.add("allow-interactivity-".concat(r));
5117
5117
  }), function() {
5118
- document.body.classList.remove("block-interactivity-".concat(r)), v.forEach(function(w) {
5118
+ document.body.classList.remove("block-interactivity-".concat(r)), g.forEach(function(w) {
5119
5119
  return w.classList.remove("allow-interactivity-".concat(r));
5120
5120
  });
5121
5121
  };
5122
5122
  }
5123
5123
  }, [e.inert, e.lockRef.current, e.shards]);
5124
- var c = l.useCallback(function(v, w) {
5125
- if ("touches" in v && v.touches.length === 2 || v.type === "wheel" && v.ctrlKey)
5124
+ var c = l.useCallback(function(g, w) {
5125
+ if ("touches" in g && g.touches.length === 2 || g.type === "wheel" && g.ctrlKey)
5126
5126
  return !s.current.allowPinchZoom;
5127
- var C = lt(v), y = n.current, x = "deltaX" in v ? v.deltaX : y[0] - C[0], b = "deltaY" in v ? v.deltaY : y[1] - C[1], R, M = v.target, A = Math.abs(x) > Math.abs(b) ? "h" : "v";
5128
- if ("touches" in v && A === "h" && M.type === "range")
5127
+ var C = lt(g), y = n.current, x = "deltaX" in g ? g.deltaX : y[0] - C[0], b = "deltaY" in g ? g.deltaY : y[1] - C[1], R, M = g.target, A = Math.abs(x) > Math.abs(b) ? "h" : "v";
5128
+ if ("touches" in g && A === "h" && M.type === "range")
5129
5129
  return !1;
5130
5130
  var S = Yo(A, M);
5131
5131
  if (!S)
5132
5132
  return !0;
5133
5133
  if (S ? R = A : (R = A === "v" ? "h" : "v", S = Yo(A, M)), !S)
5134
5134
  return !1;
5135
- if (!o.current && "changedTouches" in v && (x || b) && (o.current = R), !R)
5135
+ if (!o.current && "changedTouches" in g && (x || b) && (o.current = R), !R)
5136
5136
  return !0;
5137
5137
  var O = o.current || R;
5138
- return ad(O, w, v, O === "h" ? x : b, !0);
5139
- }, []), d = l.useCallback(function(v) {
5140
- var w = v;
5138
+ return ad(O, w, g, O === "h" ? x : b, !0);
5139
+ }, []), d = l.useCallback(function(g) {
5140
+ var w = g;
5141
5141
  if (!(!De.length || De[De.length - 1] !== a)) {
5142
5142
  var C = "deltaY" in w ? zo(w) : lt(w), y = t.current.filter(function(R) {
5143
5143
  return R.name === w.type && (R.target === w.target || w.target === R.shadowParent) && id(R.delta, C);
@@ -5153,19 +5153,19 @@ function ld(e) {
5153
5153
  b && w.cancelable && w.preventDefault();
5154
5154
  }
5155
5155
  }
5156
- }, []), u = l.useCallback(function(v, w, C, y) {
5157
- var x = { name: v, delta: w, target: C, should: y, shadowParent: ud(C) };
5156
+ }, []), u = l.useCallback(function(g, w, C, y) {
5157
+ var x = { name: g, delta: w, target: C, should: y, shadowParent: ud(C) };
5158
5158
  t.current.push(x), setTimeout(function() {
5159
5159
  t.current = t.current.filter(function(b) {
5160
5160
  return b !== x;
5161
5161
  });
5162
5162
  }, 1);
5163
- }, []), p = l.useCallback(function(v) {
5164
- n.current = lt(v), o.current = void 0;
5165
- }, []), f = l.useCallback(function(v) {
5166
- u(v.type, zo(v), v.target, c(v, e.lockRef.current));
5167
- }, []), h = l.useCallback(function(v) {
5168
- u(v.type, lt(v), v.target, c(v, e.lockRef.current));
5163
+ }, []), p = l.useCallback(function(g) {
5164
+ n.current = lt(g), o.current = void 0;
5165
+ }, []), f = l.useCallback(function(g) {
5166
+ u(g.type, zo(g), g.target, c(g, e.lockRef.current));
5167
+ }, []), h = l.useCallback(function(g) {
5168
+ u(g.type, lt(g), g.target, c(g, e.lockRef.current));
5169
5169
  }, []);
5170
5170
  l.useEffect(function() {
5171
5171
  return De.push(a), e.setCallbacks({
@@ -5173,16 +5173,16 @@ function ld(e) {
5173
5173
  onWheelCapture: f,
5174
5174
  onTouchMoveCapture: h
5175
5175
  }), document.addEventListener("wheel", d, _e), document.addEventListener("touchmove", d, _e), document.addEventListener("touchstart", p, _e), function() {
5176
- De = De.filter(function(v) {
5177
- return v !== a;
5176
+ De = De.filter(function(g) {
5177
+ return g !== a;
5178
5178
  }), document.removeEventListener("wheel", d, _e), document.removeEventListener("touchmove", d, _e), document.removeEventListener("touchstart", p, _e);
5179
5179
  };
5180
5180
  }, []);
5181
- var m = e.removeScrollBar, g = e.inert;
5181
+ var m = e.removeScrollBar, v = e.inert;
5182
5182
  return l.createElement(
5183
5183
  l.Fragment,
5184
5184
  null,
5185
- g ? l.createElement(a, { styles: sd(r) }) : null,
5185
+ v ? l.createElement(a, { styles: sd(r) }) : null,
5186
5186
  m ? l.createElement(Q1, { gapMode: e.gapMode }) : null
5187
5187
  );
5188
5188
  }
@@ -5210,10 +5210,10 @@ var hn = ["Enter", " "], fd = ["ArrowDown", "PageUp", "Home"], ma = ["ArrowUp",
5210
5210
  const { __scopeMenu: t, open: n = !1, children: o, dir: r, onOpenChange: a, modal: s = !0 } = e, c = et(t), [d, u] = l.useState(null), p = l.useRef(!1), f = U(a), h = Nt(r);
5211
5211
  return l.useEffect(() => {
5212
5212
  const m = () => {
5213
- p.current = !0, document.addEventListener("pointerdown", g, { capture: !0, once: !0 }), document.addEventListener("pointermove", g, { capture: !0, once: !0 });
5214
- }, g = () => p.current = !1;
5213
+ p.current = !0, document.addEventListener("pointerdown", v, { capture: !0, once: !0 }), document.addEventListener("pointermove", v, { capture: !0, once: !0 });
5214
+ }, v = () => p.current = !1;
5215
5215
  return document.addEventListener("keydown", m, { capture: !0 }), () => {
5216
- document.removeEventListener("keydown", m, { capture: !0 }), document.removeEventListener("pointerdown", g, { capture: !0 }), document.removeEventListener("pointermove", g, { capture: !0 });
5216
+ document.removeEventListener("keydown", m, { capture: !0 }), document.removeEventListener("pointerdown", v, { capture: !0 }), document.removeEventListener("pointermove", v, { capture: !0 });
5217
5217
  };
5218
5218
  }, []), /* @__PURE__ */ i(Kn, { ...c, children: /* @__PURE__ */ i(
5219
5219
  va,
@@ -5308,9 +5308,9 @@ var Q = "MenuContent", [xd, zn] = Ne(Q), xa = l.forwardRef(
5308
5308
  onFocusOutside: f,
5309
5309
  onInteractOutside: h,
5310
5310
  onDismiss: m,
5311
- disableOutsideScroll: g,
5312
- ...v
5313
- } = e, w = be(Q, n), C = tt(Q, n), y = et(n), x = ga(n), b = gd(n), [R, M] = l.useState(null), A = l.useRef(null), S = W(t, A, w.onContentChange), O = l.useRef(0), k = l.useRef(""), B = l.useRef(0), $ = l.useRef(null), V = l.useRef("right"), P = l.useRef(0), H = g ? Un : l.Fragment, L = g ? { as: Me, allowPinchZoom: !0 } : void 0, Z = (T) => {
5311
+ disableOutsideScroll: v,
5312
+ ...g
5313
+ } = e, w = be(Q, n), C = tt(Q, n), y = et(n), x = ga(n), b = gd(n), [R, M] = l.useState(null), A = l.useRef(null), S = W(t, A, w.onContentChange), O = l.useRef(0), k = l.useRef(""), B = l.useRef(0), $ = l.useRef(null), V = l.useRef("right"), P = l.useRef(0), H = v ? Un : l.Fragment, L = v ? { as: Me, allowPinchZoom: !0 } : void 0, Z = (T) => {
5314
5314
  var ue, Be;
5315
5315
  const G = k.current + T, K = b().filter((q) => !q.disabled), Y = document.activeElement, ae = (ue = K.find((q) => q.ref.current === Y)) == null ? void 0 : ue.textValue, ge = K.map((q) => q.textValue), nt = Id(ge, G, ae), Re = (Be = K.find((q) => q.textValue === nt)) == null ? void 0 : Be.ref.current;
5316
5316
  (function q(Ze) {
@@ -5393,10 +5393,10 @@ var Q = "MenuContent", [xd, zn] = Ne(Q), xa = l.forwardRef(
5393
5393
  "data-radix-menu-content": "",
5394
5394
  dir: C.dir,
5395
5395
  ...y,
5396
- ...v,
5396
+ ...g,
5397
5397
  ref: S,
5398
- style: { outline: "none", ...v.style },
5399
- onKeyDown: N(v.onKeyDown, (T) => {
5398
+ style: { outline: "none", ...g.style },
5399
+ onKeyDown: N(g.onKeyDown, (T) => {
5400
5400
  const K = T.target.closest("[data-radix-menu-content]") === T.currentTarget, Y = T.ctrlKey || T.altKey || T.metaKey, ae = T.key.length === 1;
5401
5401
  K && (T.key === "Tab" && T.preventDefault(), !Y && ae && Z(T.key));
5402
5402
  const ge = A.current;
@@ -5482,8 +5482,8 @@ var Ra = l.forwardRef(
5482
5482
  (e, t) => {
5483
5483
  const { __scopeMenu: n, disabled: o = !1, textValue: r, ...a } = e, s = zn(xt, n), c = ga(n), d = l.useRef(null), u = W(t, d), [p, f] = l.useState(!1), [h, m] = l.useState("");
5484
5484
  return l.useEffect(() => {
5485
- const g = d.current;
5486
- g && m((g.textContent ?? "").trim());
5485
+ const v = d.current;
5486
+ v && m((v.textContent ?? "").trim());
5487
5487
  }, [a.children]), /* @__PURE__ */ i(
5488
5488
  Ye.ItemSlot,
5489
5489
  {
@@ -5501,13 +5501,13 @@ var Ra = l.forwardRef(
5501
5501
  ref: u,
5502
5502
  onPointerMove: N(
5503
5503
  e.onPointerMove,
5504
- ze((g) => {
5505
- o ? s.onItemLeave(g) : (s.onItemEnter(g), g.defaultPrevented || g.currentTarget.focus({ preventScroll: !0 }));
5504
+ ze((v) => {
5505
+ o ? s.onItemLeave(v) : (s.onItemEnter(v), v.defaultPrevented || v.currentTarget.focus({ preventScroll: !0 }));
5506
5506
  })
5507
5507
  ),
5508
5508
  onPointerLeave: N(
5509
5509
  e.onPointerLeave,
5510
- ze((g) => s.onItemLeave(g))
5510
+ ze((v) => s.onItemLeave(v))
5511
5511
  ),
5512
5512
  onFocus: N(e.onFocus, () => f(!0)),
5513
5513
  onBlur: N(e.onBlur, () => f(!1))
@@ -5677,11 +5677,11 @@ var We = "MenuSubTrigger", Ia = l.forwardRef(
5677
5677
  onPointerLeave: N(
5678
5678
  e.onPointerLeave,
5679
5679
  ze((f) => {
5680
- var m, g;
5680
+ var m, v;
5681
5681
  p();
5682
5682
  const h = (m = n.content) == null ? void 0 : m.getBoundingClientRect();
5683
5683
  if (h) {
5684
- const v = (g = n.content) == null ? void 0 : g.dataset.side, w = v === "right", C = w ? -5 : 5, y = h[w ? "left" : "right"], x = h[w ? "right" : "left"];
5684
+ const g = (v = n.content) == null ? void 0 : v.dataset.side, w = g === "right", C = w ? -5 : 5, y = h[w ? "left" : "right"], x = h[w ? "right" : "left"];
5685
5685
  a.onPointerGraceIntentChange({
5686
5686
  area: [
5687
5687
  // Apply a bleed on clientX to ensure that our exit point is
@@ -5692,7 +5692,7 @@ var We = "MenuSubTrigger", Ia = l.forwardRef(
5692
5692
  { x, y: h.bottom },
5693
5693
  { x: y, y: h.bottom }
5694
5694
  ],
5695
- side: v
5695
+ side: g
5696
5696
  }), window.clearTimeout(c.current), c.current = window.setTimeout(
5697
5697
  () => a.onPointerGraceIntentChange(null),
5698
5698
  300
@@ -6047,7 +6047,7 @@ const fi = l.forwardRef(({ className: e, inset: t, ...n }, o) => /* @__PURE__ */
6047
6047
  {
6048
6048
  ref: o,
6049
6049
  className: D(
6050
- "relative flex cursor-default select-none items-center gap-2 rounded-lg py-1 px-2 text-sm outline-none transition-colors focus:bg-grey-100 focus:text-grey-800 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
6050
+ "relative flex cursor-pointer select-none items-center gap-2 rounded-lg py-1 px-2 text-sm outline-none transition-colors focus:bg-grey-100 focus:text-grey-800 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
6051
6051
  t && "pl-8",
6052
6052
  e
6053
6053
  ),
@@ -6131,15 +6131,15 @@ const _f = ({
6131
6131
  u((m) => {
6132
6132
  switch (h.containerType) {
6133
6133
  case "checkbox":
6134
- return m.some((g) => g.value === h.value && g.containerKey === h.containerKey) ? m.filter((g) => !(g.value === h.value && g.containerKey === h.containerKey)) : [...m, h];
6134
+ return m.some((v) => v.value === h.value && v.containerKey === h.containerKey) ? m.filter((v) => !(v.value === h.value && v.containerKey === h.containerKey)) : [...m, h];
6135
6135
  case "radio":
6136
6136
  return [
6137
- ...m.filter((g) => !(g.containerType === "radio" && g.containerKey === h.containerKey)),
6137
+ ...m.filter((v) => !(v.containerType === "radio" && v.containerKey === h.containerKey)),
6138
6138
  h
6139
6139
  ];
6140
6140
  case "default":
6141
- return m.some((g) => g.containerType === "default" && g.value === h.value && g.containerKey === h.containerKey) ? m.filter((g) => !(g.containerType === "default" && g.value === h.value && g.containerKey === h.containerKey)) : [
6142
- ...m.filter((g) => g.containerType !== "default"),
6141
+ return [
6142
+ ...m.filter((v) => !(v.containerType === "default" && v.containerKey === h.containerKey)),
6143
6143
  h
6144
6144
  ];
6145
6145
  default:
@@ -6149,7 +6149,7 @@ const _f = ({
6149
6149
  }, f = (h) => {
6150
6150
  u(
6151
6151
  (m) => m.filter(
6152
- (g) => !(g.value === h.value && g.containerKey === h.containerKey)
6152
+ (v) => !(v.value === h.value && v.containerKey === h.containerKey)
6153
6153
  )
6154
6154
  );
6155
6155
  };
@@ -6181,9 +6181,9 @@ const hi = ({
6181
6181
  column: r = 1
6182
6182
  }) => {
6183
6183
  var h;
6184
- const { containerType: a, containerKey: s, containerTitle: c, isShowTitle: d, isShowSeparator: u, items: p } = e, f = (m) => m.some((g) => g.items.some((v) => v.type === "default" || v.type === "checkbox" || v.type === "radio" ? o.some(
6185
- (w) => w.value === v.value && w.containerKey === g.containerKey && w.containerType === g.containerType
6186
- ) : v.type === "sub" ? f(v.items) : !1));
6184
+ const { containerType: a, containerKey: s, containerTitle: c, isShowTitle: d, isShowSeparator: u, items: p } = e, f = (m) => m.some((v) => v.items.some((g) => g.type === "default" || g.type === "checkbox" || g.type === "radio" ? o.some(
6185
+ (w) => w.value === g.value && w.containerKey === v.containerKey && w.containerType === v.containerType
6186
+ ) : g.type === "sub" ? f(g.items) : !1));
6187
6187
  return /* @__PURE__ */ E(l.Fragment, { children: [
6188
6188
  d && /* @__PURE__ */ i(gn, { inset: !1, children: c }),
6189
6189
  a === "radio" ? /* @__PURE__ */ i(
@@ -6193,24 +6193,24 @@ const hi = ({
6193
6193
  (m) => m.containerType === "radio" && m.containerKey === s
6194
6194
  )) == null ? void 0 : h.value,
6195
6195
  onValueChange: (m) => {
6196
- var v;
6197
- const g = p.find(
6196
+ var g;
6197
+ const v = p.find(
6198
6198
  (w) => w.type === "radio" && w.value === m
6199
6199
  );
6200
- g && (t == null || t({
6200
+ v && (t == null || t({
6201
6201
  containerType: e.containerType,
6202
6202
  containerKey: e.containerKey,
6203
- label: g.label,
6204
- value: g.value
6205
- }), (v = g.onSelect) == null || v.call(g));
6203
+ label: v.label,
6204
+ value: v.value
6205
+ }), (g = v.onSelect) == null || g.call(v));
6206
6206
  },
6207
6207
  style: {
6208
6208
  display: "grid",
6209
6209
  gridTemplateColumns: `repeat(${r}, 1fr)`
6210
6210
  },
6211
- children: p.map((m, g) => {
6211
+ children: p.map((m, v) => {
6212
6212
  if (m.type !== "radio") return null;
6213
- const v = o.some(
6213
+ const g = o.some(
6214
6214
  (w) => w.containerType === "radio" && w.value === m.value && w.containerKey === s
6215
6215
  );
6216
6216
  return /* @__PURE__ */ E(
@@ -6218,7 +6218,7 @@ const hi = ({
6218
6218
  {
6219
6219
  value: m.value,
6220
6220
  disabled: m.disabled,
6221
- className: `${v ? "bg-grey-200/50" : ""}`,
6221
+ className: `${g ? "bg-grey-200/50" : ""}`,
6222
6222
  onSelect: (w) => w.preventDefault(),
6223
6223
  children: [
6224
6224
  m.icLeft && /* @__PURE__ */ i("span", { children: m.icLeft }),
@@ -6226,7 +6226,7 @@ const hi = ({
6226
6226
  m.icRight && /* @__PURE__ */ i("span", { className: "ml-auto", children: m.icRight })
6227
6227
  ]
6228
6228
  },
6229
- g
6229
+ v
6230
6230
  );
6231
6231
  })
6232
6232
  }
@@ -6235,10 +6235,10 @@ const hi = ({
6235
6235
  gridTemplateColumns: `repeat(${r}, 1fr)`,
6236
6236
  gap: "4px"
6237
6237
  }, children: [
6238
- p.map((m, g) => {
6239
- const v = (m.type === "default" || m.type === "checkbox") && o.some(
6238
+ p.map((m, v) => {
6239
+ const g = (m.type === "default" || m.type === "checkbox") && o.some(
6240
6240
  (C) => C.value === m.value && C.containerKey === s && C.containerType === a
6241
- ), w = "bg-grey-100";
6241
+ ), w = "bg-grey-100 text-main-600";
6242
6242
  switch (m.type) {
6243
6243
  case "default":
6244
6244
  return /* @__PURE__ */ E(
@@ -6254,17 +6254,17 @@ const hi = ({
6254
6254
  }), (y = m.onSelect) == null || y.call(m);
6255
6255
  },
6256
6256
  disabled: m.disabled,
6257
- className: `${v ? w : ""}`,
6257
+ className: `${g ? w : ""}`,
6258
6258
  children: [
6259
6259
  m.icLeft && /* @__PURE__ */ i("span", { children: m.icLeft }),
6260
6260
  /* @__PURE__ */ i("span", { children: m.label }),
6261
6261
  m.icRight && /* @__PURE__ */ i("span", { className: "ml-auto", children: m.icRight })
6262
6262
  ]
6263
6263
  },
6264
- g
6264
+ v
6265
6265
  );
6266
6266
  case "checkbox":
6267
- const C = v;
6267
+ const C = g;
6268
6268
  return /* @__PURE__ */ E(
6269
6269
  pi,
6270
6270
  {
@@ -6292,12 +6292,12 @@ const hi = ({
6292
6292
  m.icRight && /* @__PURE__ */ i("span", { className: "ml-auto", children: m.icRight })
6293
6293
  ]
6294
6294
  },
6295
- g
6295
+ v
6296
6296
  );
6297
6297
  case "separator":
6298
- return /* @__PURE__ */ i("div", { className: "px-2", style: { gridColumn: `span ${r}` }, children: /* @__PURE__ */ i(vn, { className: "bg-grey-200" }, g) }, g);
6298
+ return /* @__PURE__ */ i("div", { className: "px-2", style: { gridColumn: `span ${r}` }, children: /* @__PURE__ */ i(vn, { className: "bg-grey-200" }, v) }, v);
6299
6299
  case "title":
6300
- return /* @__PURE__ */ i(gn, { inset: m.inset, children: m.label }, g);
6300
+ return /* @__PURE__ */ i(gn, { inset: m.inset, children: m.label }, v);
6301
6301
  case "action":
6302
6302
  return /* @__PURE__ */ i(
6303
6303
  "div",
@@ -6318,7 +6318,7 @@ const hi = ({
6318
6318
  }
6319
6319
  )
6320
6320
  },
6321
- g
6321
+ v
6322
6322
  );
6323
6323
  case "sub":
6324
6324
  return /* @__PURE__ */ E(Nf, { children: [
@@ -6344,7 +6344,7 @@ const hi = ({
6344
6344
  },
6345
6345
  x
6346
6346
  )) })
6347
- ] }, g);
6347
+ ] }, v);
6348
6348
  default:
6349
6349
  return null;
6350
6350
  }
@@ -7091,7 +7091,7 @@ var us = "ToastViewport", p0 = ["F8"], wn = "toast.viewportPause", Cn = "toast.v
7091
7091
  hotkey: o = p0,
7092
7092
  label: r = "Notifications ({hotkey})",
7093
7093
  ...a
7094
- } = e, s = Gt(us, n), c = u0(n), d = l.useRef(null), u = l.useRef(null), p = l.useRef(null), f = l.useRef(null), h = W(t, f, s.onViewportChange), m = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), g = s.toastCount > 0;
7094
+ } = e, s = Gt(us, n), c = u0(n), d = l.useRef(null), u = l.useRef(null), p = l.useRef(null), f = l.useRef(null), h = W(t, f, s.onViewportChange), m = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), v = s.toastCount > 0;
7095
7095
  l.useEffect(() => {
7096
7096
  const w = (C) => {
7097
7097
  var x;
@@ -7100,7 +7100,7 @@ var us = "ToastViewport", p0 = ["F8"], wn = "toast.viewportPause", Cn = "toast.v
7100
7100
  return document.addEventListener("keydown", w), () => document.removeEventListener("keydown", w);
7101
7101
  }, [o]), l.useEffect(() => {
7102
7102
  const w = d.current, C = f.current;
7103
- if (g && w && C) {
7103
+ if (v && w && C) {
7104
7104
  const y = () => {
7105
7105
  if (!s.isClosePausedRef.current) {
7106
7106
  const M = new CustomEvent(wn);
@@ -7120,8 +7120,8 @@ var us = "ToastViewport", p0 = ["F8"], wn = "toast.viewportPause", Cn = "toast.v
7120
7120
  w.removeEventListener("focusin", y), w.removeEventListener("focusout", b), w.removeEventListener("pointermove", y), w.removeEventListener("pointerleave", R), window.removeEventListener("blur", y), window.removeEventListener("focus", x);
7121
7121
  };
7122
7122
  }
7123
- }, [g, s.isClosePausedRef]);
7124
- const v = l.useCallback(
7123
+ }, [v, s.isClosePausedRef]);
7124
+ const g = l.useCallback(
7125
7125
  ({ tabbingDirection: w }) => {
7126
7126
  const y = c().map((x) => {
7127
7127
  const b = x.ref.current, R = [b, ...M0(b)];
@@ -7143,27 +7143,27 @@ var us = "ToastViewport", p0 = ["F8"], wn = "toast.viewportPause", Cn = "toast.v
7143
7143
  (R = u.current) == null || R.focus();
7144
7144
  return;
7145
7145
  }
7146
- const $ = v({ tabbingDirection: O ? "backwards" : "forwards" }), V = $.findIndex((P) => P === S);
7146
+ const $ = g({ tabbingDirection: O ? "backwards" : "forwards" }), V = $.findIndex((P) => P === S);
7147
7147
  an($.slice(V + 1)) ? y.preventDefault() : O ? (M = u.current) == null || M.focus() : (A = p.current) == null || A.focus();
7148
7148
  }
7149
7149
  };
7150
7150
  return w.addEventListener("keydown", C), () => w.removeEventListener("keydown", C);
7151
7151
  }
7152
- }, [c, v]), /* @__PURE__ */ E(
7152
+ }, [c, g]), /* @__PURE__ */ E(
7153
7153
  Ql,
7154
7154
  {
7155
7155
  ref: d,
7156
7156
  role: "region",
7157
7157
  "aria-label": r.replace("{hotkey}", m),
7158
7158
  tabIndex: -1,
7159
- style: { pointerEvents: g ? void 0 : "none" },
7159
+ style: { pointerEvents: v ? void 0 : "none" },
7160
7160
  children: [
7161
- g && /* @__PURE__ */ i(
7161
+ v && /* @__PURE__ */ i(
7162
7162
  yn,
7163
7163
  {
7164
7164
  ref: u,
7165
7165
  onFocusFromOutsideViewport: () => {
7166
- const w = v({
7166
+ const w = g({
7167
7167
  tabbingDirection: "forwards"
7168
7168
  });
7169
7169
  an(w);
@@ -7171,12 +7171,12 @@ var us = "ToastViewport", p0 = ["F8"], wn = "toast.viewportPause", Cn = "toast.v
7171
7171
  }
7172
7172
  ),
7173
7173
  /* @__PURE__ */ i(vo.Slot, { scope: n, children: /* @__PURE__ */ i(F.ol, { tabIndex: -1, ...a, ref: h }) }),
7174
- g && /* @__PURE__ */ i(
7174
+ v && /* @__PURE__ */ i(
7175
7175
  yn,
7176
7176
  {
7177
7177
  ref: p,
7178
7178
  onFocusFromOutsideViewport: () => {
7179
- const w = v({
7179
+ const w = g({
7180
7180
  tabbingDirection: "backwards"
7181
7181
  });
7182
7182
  an(w);
@@ -7263,10 +7263,10 @@ var [w0, C0] = cs(Wt, {
7263
7263
  onSwipeMove: f,
7264
7264
  onSwipeCancel: h,
7265
7265
  onSwipeEnd: m,
7266
- ...g
7267
- } = e, v = Gt(Wt, n), [w, C] = l.useState(null), y = W(t, (P) => C(P)), x = l.useRef(null), b = l.useRef(null), R = r || v.duration, M = l.useRef(0), A = l.useRef(R), S = l.useRef(0), { onToastAdd: O, onToastRemove: k } = v, B = U(() => {
7266
+ ...v
7267
+ } = e, g = Gt(Wt, n), [w, C] = l.useState(null), y = W(t, (P) => C(P)), x = l.useRef(null), b = l.useRef(null), R = r || g.duration, M = l.useRef(0), A = l.useRef(R), S = l.useRef(0), { onToastAdd: O, onToastRemove: k } = g, B = U(() => {
7268
7268
  var H;
7269
- (w == null ? void 0 : w.contains(document.activeElement)) && ((H = v.viewport) == null || H.focus()), s();
7269
+ (w == null ? void 0 : w.contains(document.activeElement)) && ((H = g.viewport) == null || H.focus()), s();
7270
7270
  }), $ = l.useCallback(
7271
7271
  (P) => {
7272
7272
  !P || P === 1 / 0 || (window.clearTimeout(S.current), M.current = (/* @__PURE__ */ new Date()).getTime(), S.current = window.setTimeout(B, P));
@@ -7274,7 +7274,7 @@ var [w0, C0] = cs(Wt, {
7274
7274
  [B]
7275
7275
  );
7276
7276
  l.useEffect(() => {
7277
- const P = v.viewport;
7277
+ const P = g.viewport;
7278
7278
  if (P) {
7279
7279
  const H = () => {
7280
7280
  $(A.current), u == null || u();
@@ -7286,11 +7286,11 @@ var [w0, C0] = cs(Wt, {
7286
7286
  P.removeEventListener(wn, L), P.removeEventListener(Cn, H);
7287
7287
  };
7288
7288
  }
7289
- }, [v.viewport, R, d, u, $]), l.useEffect(() => {
7290
- a && !v.isClosePausedRef.current && $(R);
7291
- }, [a, R, v.isClosePausedRef, $]), l.useEffect(() => (O(), () => k()), [O, k]);
7289
+ }, [g.viewport, R, d, u, $]), l.useEffect(() => {
7290
+ a && !g.isClosePausedRef.current && $(R);
7291
+ }, [a, R, g.isClosePausedRef, $]), l.useEffect(() => (O(), () => k()), [O, k]);
7292
7292
  const V = l.useMemo(() => w ? ys(w) : null, [w]);
7293
- return v.viewport ? /* @__PURE__ */ E(Ke, { children: [
7293
+ return g.viewport ? /* @__PURE__ */ E(Ke, { children: [
7294
7294
  V && /* @__PURE__ */ i(
7295
7295
  x0,
7296
7296
  {
@@ -7307,7 +7307,7 @@ var [w0, C0] = cs(Wt, {
7307
7307
  {
7308
7308
  asChild: !0,
7309
7309
  onEscapeKeyDown: N(c, () => {
7310
- v.isFocusedToastEscapeKeyDownRef.current || B(), v.isFocusedToastEscapeKeyDownRef.current = !1;
7310
+ g.isFocusedToastEscapeKeyDownRef.current || B(), g.isFocusedToastEscapeKeyDownRef.current = !1;
7311
7311
  }),
7312
7312
  children: /* @__PURE__ */ i(
7313
7313
  F.li,
@@ -7317,22 +7317,22 @@ var [w0, C0] = cs(Wt, {
7317
7317
  "aria-atomic": !0,
7318
7318
  tabIndex: 0,
7319
7319
  "data-state": a ? "open" : "closed",
7320
- "data-swipe-direction": v.swipeDirection,
7321
- ...g,
7320
+ "data-swipe-direction": g.swipeDirection,
7321
+ ...v,
7322
7322
  ref: y,
7323
7323
  style: { userSelect: "none", touchAction: "none", ...e.style },
7324
7324
  onKeyDown: N(e.onKeyDown, (P) => {
7325
- P.key === "Escape" && (c == null || c(P.nativeEvent), P.nativeEvent.defaultPrevented || (v.isFocusedToastEscapeKeyDownRef.current = !0, B()));
7325
+ P.key === "Escape" && (c == null || c(P.nativeEvent), P.nativeEvent.defaultPrevented || (g.isFocusedToastEscapeKeyDownRef.current = !0, B()));
7326
7326
  }),
7327
7327
  onPointerDown: N(e.onPointerDown, (P) => {
7328
7328
  P.button === 0 && (x.current = { x: P.clientX, y: P.clientY });
7329
7329
  }),
7330
7330
  onPointerMove: N(e.onPointerMove, (P) => {
7331
7331
  if (!x.current) return;
7332
- const H = P.clientX - x.current.x, L = P.clientY - x.current.y, Z = !!b.current, _ = ["left", "right"].includes(v.swipeDirection), T = ["left", "up"].includes(v.swipeDirection) ? Math.min : Math.max, G = _ ? T(0, H) : 0, K = _ ? 0 : T(0, L), Y = P.pointerType === "touch" ? 10 : 2, ae = { x: G, y: K }, ge = { originalEvent: P, delta: ae };
7332
+ const H = P.clientX - x.current.x, L = P.clientY - x.current.y, Z = !!b.current, _ = ["left", "right"].includes(g.swipeDirection), T = ["left", "up"].includes(g.swipeDirection) ? Math.min : Math.max, G = _ ? T(0, H) : 0, K = _ ? 0 : T(0, L), Y = P.pointerType === "touch" ? 10 : 2, ae = { x: G, y: K }, ge = { originalEvent: P, delta: ae };
7333
7333
  Z ? (b.current = ae, ut(h0, f, ge, {
7334
7334
  discrete: !1
7335
- })) : Qo(ae, v.swipeDirection, Y) ? (b.current = ae, ut(m0, p, ge, {
7335
+ })) : Qo(ae, g.swipeDirection, Y) ? (b.current = ae, ut(m0, p, ge, {
7336
7336
  discrete: !1
7337
7337
  }), P.target.setPointerCapture(P.pointerId)) : (Math.abs(H) > Y || Math.abs(L) > Y) && (x.current = null);
7338
7338
  }),
@@ -7340,7 +7340,7 @@ var [w0, C0] = cs(Wt, {
7340
7340
  const H = b.current, L = P.target;
7341
7341
  if (L.hasPointerCapture(P.pointerId) && L.releasePointerCapture(P.pointerId), b.current = null, x.current = null, H) {
7342
7342
  const Z = P.currentTarget, _ = { originalEvent: P, delta: H };
7343
- Qo(H, v.swipeDirection, v.swipeThreshold) ? ut(v0, m, _, {
7343
+ Qo(H, g.swipeDirection, g.swipeThreshold) ? ut(v0, m, _, {
7344
7344
  discrete: !0
7345
7345
  }) : ut(
7346
7346
  g0,
@@ -7358,7 +7358,7 @@ var [w0, C0] = cs(Wt, {
7358
7358
  )
7359
7359
  }
7360
7360
  ) }),
7361
- v.viewport
7361
+ g.viewport
7362
7362
  ) })
7363
7363
  ] }) : null;
7364
7364
  }
@@ -7621,12 +7621,12 @@ function _0(e, t = []) {
7621
7621
  const c = l.createContext(s), d = n.length;
7622
7622
  n = [...n, s];
7623
7623
  function u(f) {
7624
- const { scope: h, children: m, ...g } = f, v = (h == null ? void 0 : h[e][d]) || c, w = l.useMemo(() => g, Object.values(g));
7625
- return /* @__PURE__ */ i(v.Provider, { value: w, children: m });
7624
+ const { scope: h, children: m, ...v } = f, g = (h == null ? void 0 : h[e][d]) || c, w = l.useMemo(() => v, Object.values(v));
7625
+ return /* @__PURE__ */ i(g.Provider, { value: w, children: m });
7626
7626
  }
7627
7627
  function p(f, h) {
7628
- const m = (h == null ? void 0 : h[e][d]) || c, g = l.useContext(m);
7629
- if (g) return g;
7628
+ const m = (h == null ? void 0 : h[e][d]) || c, v = l.useContext(m);
7629
+ if (v) return v;
7630
7630
  if (s !== void 0) return s;
7631
7631
  throw new Error(`\`${f}\` must be used within \`${a}\``);
7632
7632
  }
@@ -7932,7 +7932,7 @@ var jt = "Tooltip", [G0, Yt] = Kt(jt), Ws = (e) => {
7932
7932
  onOpenChange: a,
7933
7933
  disableHoverableContent: s,
7934
7934
  delayDuration: c
7935
- } = e, d = xo(jt, e.__scopeTooltip), u = Ut(t), [p, f] = l.useState(null), h = ee(), m = l.useRef(0), g = s ?? d.disableHoverableContent, v = c ?? d.delayDuration, w = l.useRef(!1), [C = !1, y] = J({
7935
+ } = e, d = xo(jt, e.__scopeTooltip), u = Ut(t), [p, f] = l.useState(null), h = ee(), m = l.useRef(0), v = s ?? d.disableHoverableContent, g = c ?? d.delayDuration, w = l.useRef(!1), [C = !1, y] = J({
7936
7936
  prop: o,
7937
7937
  defaultProp: r,
7938
7938
  onChange: (A) => {
@@ -7945,8 +7945,8 @@ var jt = "Tooltip", [G0, Yt] = Kt(jt), Ws = (e) => {
7945
7945
  }, [y]), M = l.useCallback(() => {
7946
7946
  window.clearTimeout(m.current), m.current = window.setTimeout(() => {
7947
7947
  w.current = !0, y(!0);
7948
- }, v);
7949
- }, [v, y]);
7948
+ }, g);
7949
+ }, [g, y]);
7950
7950
  return l.useEffect(() => () => window.clearTimeout(m.current), []), /* @__PURE__ */ i(Kn, { ...u, children: /* @__PURE__ */ i(
7951
7951
  G0,
7952
7952
  {
@@ -7960,11 +7960,11 @@ var jt = "Tooltip", [G0, Yt] = Kt(jt), Ws = (e) => {
7960
7960
  d.isOpenDelayed ? M() : b();
7961
7961
  }, [d.isOpenDelayed, M, b]),
7962
7962
  onTriggerLeave: l.useCallback(() => {
7963
- g ? R() : window.clearTimeout(m.current);
7964
- }, [R, g]),
7963
+ v ? R() : window.clearTimeout(m.current);
7964
+ }, [R, v]),
7965
7965
  onOpen: b,
7966
7966
  onClose: R,
7967
- disableHoverableContent: g,
7967
+ disableHoverableContent: v,
7968
7968
  children: n
7969
7969
  }
7970
7970
  ) });
@@ -8010,26 +8010,26 @@ var W0 = "TooltipPortal", [b2, K0] = Kt(W0, {
8010
8010
  const n = Yt(Fe, e.__scopeTooltip), o = xo(Fe, e.__scopeTooltip), r = l.useRef(null), a = W(t, r), [s, c] = l.useState(null), { trigger: d, onClose: u } = n, p = r.current, { onPointerInTransitChange: f } = o, h = l.useCallback(() => {
8011
8011
  c(null), f(!1);
8012
8012
  }, [f]), m = l.useCallback(
8013
- (g, v) => {
8014
- const w = g.currentTarget, C = { x: g.clientX, y: g.clientY }, y = X0(C, w.getBoundingClientRect()), x = q0(C, y), b = Q0(v.getBoundingClientRect()), R = e2([...x, ...b]);
8013
+ (v, g) => {
8014
+ const w = v.currentTarget, C = { x: v.clientX, y: v.clientY }, y = X0(C, w.getBoundingClientRect()), x = q0(C, y), b = Q0(g.getBoundingClientRect()), R = e2([...x, ...b]);
8015
8015
  c(R), f(!0);
8016
8016
  },
8017
8017
  [f]
8018
8018
  );
8019
8019
  return l.useEffect(() => () => h(), [h]), l.useEffect(() => {
8020
8020
  if (d && p) {
8021
- const g = (w) => m(w, p), v = (w) => m(w, d);
8022
- return d.addEventListener("pointerleave", g), p.addEventListener("pointerleave", v), () => {
8023
- d.removeEventListener("pointerleave", g), p.removeEventListener("pointerleave", v);
8021
+ const v = (w) => m(w, p), g = (w) => m(w, d);
8022
+ return d.addEventListener("pointerleave", v), p.addEventListener("pointerleave", g), () => {
8023
+ d.removeEventListener("pointerleave", v), p.removeEventListener("pointerleave", g);
8024
8024
  };
8025
8025
  }
8026
8026
  }, [d, p, m, h]), l.useEffect(() => {
8027
8027
  if (s) {
8028
- const g = (v) => {
8029
- const w = v.target, C = { x: v.clientX, y: v.clientY }, y = (d == null ? void 0 : d.contains(w)) || (p == null ? void 0 : p.contains(w)), x = !J0(C, s);
8028
+ const v = (g) => {
8029
+ const w = g.target, C = { x: g.clientX, y: g.clientY }, y = (d == null ? void 0 : d.contains(w)) || (p == null ? void 0 : p.contains(w)), x = !J0(C, s);
8030
8030
  y ? h() : x && (h(), u());
8031
8031
  };
8032
- return document.addEventListener("pointermove", g), () => document.removeEventListener("pointermove", g);
8032
+ return document.addEventListener("pointermove", v), () => document.removeEventListener("pointermove", v);
8033
8033
  }
8034
8034
  }, [d, p, s, u, h]), /* @__PURE__ */ i(js, { ...e, ref: a });
8035
8035
  }), [j0, Y0] = Kt(jt, { isInside: !1 }), js = l.forwardRef(