@clicktap/ui 0.2.13 → 0.3.0

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/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsxs as Q, jsx as g, Fragment as sr } from "react/jsx-runtime";
2
2
  import * as ot from "react";
3
- import ce, { useRef as U, useImperativeHandle as Un, useState as fe, useEffect as ie, useCallback as le, useContext as Oe, useMemo as Ce, useLayoutEffect as Kn, forwardRef as we, cloneElement as Ir, useId as fo, createContext as gr, Children as or, isValidElement as _r, createElement as Y, Fragment as Nt, useReducer as bi } from "react";
3
+ import ce, { useRef as U, useImperativeHandle as Un, useCallback as ie, useContext as Oe, useState as fe, useEffect as le, useMemo as Ce, useLayoutEffect as Kn, forwardRef as $e, cloneElement as Ir, useId as fo, createContext as vr, Children as or, isValidElement as _r, createElement as Y, Fragment as Nt, useReducer as bi } from "react";
4
4
  import { styled as C, keyframes as ke, createGlobalStyle as Yn, css as Ke } from "styled-components";
5
- import { AnimatePresence as Xn, motion as yr, LazyMotion as gi, domAnimation as vi, m as $i } from "framer-motion";
5
+ import { AnimatePresence as Xn, motion as wr, LazyMotion as gi, domAnimation as vi, m as $i } from "framer-motion";
6
6
  import { Breadcrumbs as yi, Breadcrumb as qn, Link as ft, Button as Zn, Checkbox as wi, Provider as xi, Popover as Jn, Menu as mi, DateField as hi, DateInput as Qn, DateSegment as ea, Label as Xe, FieldError as Ar, Text as Lr, Input as pt, TextField as bt, Meter as Ci, Modal as Ei, ModalOverlay as Si, Dialog as ra, NumberField as ki, Group as ta, ProgressBar as oa, ComboBox as Ti, ListBoxItem as Pi, ListBox as Oi, Slider as _i, SliderOutput as Ri, SliderThumb as Mi, SliderTrack as Ii, Switch as Ai, Tabs as Li, TabList as Ni, Tab as Di, TabPanel as Fi, TimeField as zi, ToggleButton as ji } from "react-aria-components";
7
7
  import { useSeparator as Vi } from "react-aria";
8
8
  import na, { flushSync as aa } from "react-dom";
@@ -76,7 +76,7 @@ function sa(e) {
76
76
  e[r] && (o && (o += " "), o += r);
77
77
  return o;
78
78
  }
79
- function vr(...e) {
79
+ function $r(...e) {
80
80
  for (var r = 0, t, o, n = ""; r < e.length; )
81
81
  (t = e[r++]) && (o = sa(t)) && (n && (n += " "), n += o);
82
82
  return n;
@@ -644,9 +644,9 @@ var Zi = Object.create, la = Object.defineProperty, Ji = Object.getOwnPropertyDe
644
644
  Object.freeze && Object.freeze(ge), P.children = ge;
645
645
  }
646
646
  if (a && a.defaultProps) {
647
- var $e = a.defaultProps;
648
- for (m in $e)
649
- P[m] === void 0 && (P[m] = $e[m]);
647
+ var ye = a.defaultProps;
648
+ for (m in ye)
649
+ P[m] === void 0 && (P[m] = ye[m]);
650
650
  }
651
651
  if (G || j) {
652
652
  var me = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
@@ -673,13 +673,13 @@ var Zi = Object.create, la = Object.defineProperty, Ji = Object.getOwnPropertyDe
673
673
  if (ve === 1)
674
674
  P.children = w;
675
675
  else if (ve > 1) {
676
- for (var $e = Array(ve), me = 0; me < ve; me++)
677
- $e[me] = arguments[me + 2];
678
- P.children = $e;
676
+ for (var ye = Array(ve), me = 0; me < ve; me++)
677
+ ye[me] = arguments[me + 2];
678
+ P.children = ye;
679
679
  }
680
680
  return yt(a.type, G, j, X, ne, pe, P);
681
681
  }
682
- function lr(a) {
682
+ function cr(a) {
683
683
  return typeof a == "object" && a !== null && a.$$typeof === o;
684
684
  }
685
685
  var Ao = ".", ys = ":";
@@ -726,23 +726,23 @@ var Zi = Object.create, la = Object.defineProperty, Ji = Object.getOwnPropertyDe
726
726
  return pi;
727
727
  });
728
728
  } else
729
- ne != null && (lr(ne) && (ne.key && (!X || X.key !== ne.key) && zr(ne.key), ne = vs(
729
+ ne != null && (cr(ne) && (ne.key && (!X || X.key !== ne.key) && zr(ne.key), ne = vs(
730
730
  ne,
731
731
  w + (ne.key && (!X || X.key !== ne.key) ? No("" + ne.key) + "/" : "") + pe
732
732
  )), u.push(ne));
733
733
  return 1;
734
734
  }
735
- var ve, $e, me = 0, Se = m === "" ? Ao : m + ys;
735
+ var ve, ye, me = 0, Se = m === "" ? Ao : m + ys;
736
736
  if (He(a))
737
737
  for (var Yr = 0; Yr < a.length; Yr++)
738
- ve = a[Yr], $e = Se + wt(ve, Yr), me += jr(ve, u, w, $e, P);
738
+ ve = a[Yr], ye = Se + wt(ve, Yr), me += jr(ve, u, w, ye, P);
739
739
  else {
740
740
  var Pt = R(a);
741
741
  if (typeof Pt == "function") {
742
742
  var sn = a;
743
743
  Pt === sn.entries && (Lo || B("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), Lo = !0);
744
744
  for (var ui = Pt.call(sn), ln, fi = 0; !(ln = ui.next()).done; )
745
- ve = ln.value, $e = Se + wt(ve, fi++), me += jr(ve, u, w, $e, P);
745
+ ve = ln.value, ye = Se + wt(ve, fi++), me += jr(ve, u, w, ye, P);
746
746
  } else if (G === "object") {
747
747
  var cn = String(a);
748
748
  throw new Error("Objects are not valid as a React child (found: " + (cn === "[object Object]" ? "object with keys {" + Object.keys(a).join(", ") + "}" : cn) + "). If you meant to render a collection of children, use an array instead.");
@@ -775,7 +775,7 @@ var Zi = Object.create, la = Object.defineProperty, Ji = Object.getOwnPropertyDe
775
775
  }) || [];
776
776
  }
777
777
  function Es(a) {
778
- if (!lr(a))
778
+ if (!cr(a))
779
779
  throw new Error("React.Children.only expected to receive a single React element child.");
780
780
  return a;
781
781
  }
@@ -1192,7 +1192,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
1192
1192
  } finally {
1193
1193
  Ct = !1, mt.current = G, Ks(), Error.prepareStackTrace = P;
1194
1194
  }
1195
- var $e = a ? a.displayName || a.name : "", me = $e ? Br($e) : "";
1195
+ var ye = a ? a.displayName || a.name : "", me = ye ? Br(ye) : "";
1196
1196
  return typeof a == "function" && Hr.set(a, me), me;
1197
1197
  }
1198
1198
  function Xs(a, u, w) {
@@ -1258,7 +1258,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
1258
1258
  }
1259
1259
  }
1260
1260
  }
1261
- function cr(a) {
1261
+ function dr(a) {
1262
1262
  if (a) {
1263
1263
  var u = a._owner, w = Wr(a.type, a._source, u ? u.type : null);
1264
1264
  N(w);
@@ -1307,7 +1307,7 @@ Check the top-level render call using <` + w + ">.");
1307
1307
  if (!Jo[w]) {
1308
1308
  Jo[w] = !0;
1309
1309
  var m = "";
1310
- a && a._owner && a._owner !== T.current && (m = " It was passed a child from " + qe(a._owner.type) + "."), cr(a), A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', w, m), cr(null);
1310
+ a && a._owner && a._owner !== T.current && (m = " It was passed a child from " + qe(a._owner.type) + "."), dr(a), A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', w, m), dr(null);
1311
1311
  }
1312
1312
  }
1313
1313
  }
@@ -1316,15 +1316,15 @@ Check the top-level render call using <` + w + ">.");
1316
1316
  if (He(a))
1317
1317
  for (var w = 0; w < a.length; w++) {
1318
1318
  var m = a[w];
1319
- lr(m) && Qo(m, u);
1319
+ cr(m) && Qo(m, u);
1320
1320
  }
1321
- else if (lr(a))
1321
+ else if (cr(a))
1322
1322
  a._store && (a._store.validated = !0);
1323
1323
  else if (a) {
1324
1324
  var P = R(a);
1325
1325
  if (typeof P == "function" && P !== a.entries)
1326
1326
  for (var G = P.call(a), j; !(j = G.next()).done; )
1327
- lr(j.value) && Qo(j.value, u);
1327
+ cr(j.value) && Qo(j.value, u);
1328
1328
  }
1329
1329
  }
1330
1330
  }
@@ -1356,11 +1356,11 @@ Check the top-level render call using <` + w + ">.");
1356
1356
  for (var u = Object.keys(a.props), w = 0; w < u.length; w++) {
1357
1357
  var m = u[w];
1358
1358
  if (m !== "children" && m !== "key") {
1359
- cr(a), A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", m), cr(null);
1359
+ dr(a), A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", m), dr(null);
1360
1360
  break;
1361
1361
  }
1362
1362
  }
1363
- a.ref !== null && (cr(a), A("Invalid attribute `ref` supplied to `React.Fragment`."), cr(null));
1363
+ a.ref !== null && (dr(a), A("Invalid attribute `ref` supplied to `React.Fragment`."), dr(null));
1364
1364
  }
1365
1365
  }
1366
1366
  function tn(a, u, w) {
@@ -1427,27 +1427,27 @@ Check the top-level render call using <` + w + ">.");
1427
1427
  }
1428
1428
  return Ur(a);
1429
1429
  }
1430
- var dr = 0, an = !1;
1430
+ var ur = 0, an = !1;
1431
1431
  function si(a) {
1432
1432
  {
1433
- var u = dr;
1434
- dr++, O.current === null && (O.current = []);
1433
+ var u = ur;
1434
+ ur++, O.current === null && (O.current = []);
1435
1435
  var w = O.isBatchingLegacy, m;
1436
1436
  try {
1437
1437
  if (O.isBatchingLegacy = !0, m = a(), !w && O.didScheduleLegacyUpdate) {
1438
1438
  var P = O.current;
1439
1439
  P !== null && (O.didScheduleLegacyUpdate = !1, Tt(P));
1440
1440
  }
1441
- } catch ($e) {
1442
- throw Kr(u), $e;
1441
+ } catch (ye) {
1442
+ throw Kr(u), ye;
1443
1443
  } finally {
1444
1444
  O.isBatchingLegacy = w;
1445
1445
  }
1446
1446
  if (m !== null && typeof m == "object" && typeof m.then == "function") {
1447
1447
  var G = m, j = !1, X = {
1448
- then: function($e, me) {
1448
+ then: function(ye, me) {
1449
1449
  j = !0, G.then(function(Se) {
1450
- Kr(u), dr === 0 ? St(Se, $e, me) : $e(Se);
1450
+ Kr(u), ur === 0 ? St(Se, ye, me) : ye(Se);
1451
1451
  }, function(Se) {
1452
1452
  Kr(u), me(Se);
1453
1453
  });
@@ -1459,19 +1459,19 @@ Check the top-level render call using <` + w + ">.");
1459
1459
  }), X;
1460
1460
  } else {
1461
1461
  var ne = m;
1462
- if (Kr(u), dr === 0) {
1462
+ if (Kr(u), ur === 0) {
1463
1463
  var pe = O.current;
1464
1464
  pe !== null && (Tt(pe), O.current = null);
1465
1465
  var ge = {
1466
- then: function($e, me) {
1467
- O.current === null ? (O.current = [], St(ne, $e, me)) : $e(ne);
1466
+ then: function(ye, me) {
1467
+ O.current === null ? (O.current = [], St(ne, ye, me)) : ye(ne);
1468
1468
  }
1469
1469
  };
1470
1470
  return ge;
1471
1471
  } else {
1472
1472
  var ve = {
1473
- then: function($e, me) {
1474
- $e(ne);
1473
+ then: function(ye, me) {
1474
+ ye(ne);
1475
1475
  }
1476
1476
  };
1477
1477
  return ve;
@@ -1480,7 +1480,7 @@ Check the top-level render call using <` + w + ">.");
1480
1480
  }
1481
1481
  }
1482
1482
  function Kr(a) {
1483
- a !== dr - 1 && A("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), dr = a;
1483
+ a !== ur - 1 && A("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), ur = a;
1484
1484
  }
1485
1485
  function St(a, u, w) {
1486
1486
  {
@@ -1524,7 +1524,7 @@ Check the top-level render call using <` + w + ">.");
1524
1524
  toArray: Cs,
1525
1525
  only: Es
1526
1526
  };
1527
- e.Children = di, e.Component = K, e.Fragment = s, e.Profiler = l, e.PureComponent = ue, e.StrictMode = i, e.Suspense = v, e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = z, e.cloneElement = li, e.createContext = Ss, e.createElement = ii, e.createFactory = ci, e.createRef = Ne, e.forwardRef = Os, e.isValidElement = lr, e.lazy = Ps, e.memo = _s, e.startTransition = ni, e.unstable_act = si, e.useCallback = Fs, e.useContext = Rs, e.useDebugValue = Vs, e.useDeferredValue = Hs, e.useEffect = Ls, e.useId = Ws, e.useImperativeHandle = js, e.useInsertionEffect = Ns, e.useLayoutEffect = Ds, e.useMemo = zs, e.useReducer = Is, e.useRef = As, e.useState = Ms, e.useSyncExternalStore = Gs, e.useTransition = Bs, e.version = t, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
1527
+ e.Children = di, e.Component = K, e.Fragment = s, e.Profiler = l, e.PureComponent = ue, e.StrictMode = i, e.Suspense = v, e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = z, e.cloneElement = li, e.createContext = Ss, e.createElement = ii, e.createFactory = ci, e.createRef = Ne, e.forwardRef = Os, e.isValidElement = cr, e.lazy = Ps, e.memo = _s, e.startTransition = ni, e.unstable_act = si, e.useCallback = Fs, e.useContext = Rs, e.useDebugValue = Vs, e.useDeferredValue = Hs, e.useEffect = Ls, e.useId = Ws, e.useImperativeHandle = js, e.useInsertionEffect = Ns, e.useLayoutEffect = Ds, e.useMemo = zs, e.useReducer = Is, e.useRef = As, e.useState = Ms, e.useSyncExternalStore = Gs, e.useTransition = Bs, e.version = t, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
1528
1528
  }();
1529
1529
  }
1530
1530
  }), al = po({
@@ -4842,42 +4842,26 @@ var Gl = /* @__PURE__ */ zt(Vt), Ul = { twMerge: !0, twMergeConfig: {}, responsi
4842
4842
  }
4843
4843
  ]
4844
4844
  });
4845
- function Ca(e, r, t) {
4846
- let [o, n] = fe(e || r), s = U(e !== void 0), i = e !== void 0;
4847
- ie(() => {
4848
- let p = s.current;
4849
- p !== i && console.warn(`WARN: A component changed from ${p ? "controlled" : "uncontrolled"} to ${i ? "controlled" : "uncontrolled"}.`), s.current = i;
4850
- }, [
4851
- i
4852
- ]);
4853
- let l = i ? e : o, d = le((p, ...f) => {
4854
- let v = (x, ...b) => {
4855
- t && (Object.is(l, x) || t(x, ...b)), i || (l = x);
4856
- };
4857
- typeof p == "function" ? (console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"), n((b, ...y) => {
4858
- let h = p(i ? l : b, ...y);
4859
- return v(h, ...f), i ? b : h;
4860
- })) : (i || n(p), v(p, ...f));
4845
+ const nr = typeof document < "u" ? ce.useLayoutEffect : () => {
4846
+ };
4847
+ function Ht(e) {
4848
+ const r = U(null);
4849
+ return nr(() => {
4850
+ r.current = e;
4861
4851
  }, [
4862
- i,
4863
- l,
4864
- t
4865
- ]);
4866
- return [
4867
- l,
4868
- d
4869
- ];
4870
- }
4871
- function Ht(e, r = -1 / 0, t = 1 / 0) {
4872
- return Math.min(Math.max(e, r), t);
4852
+ e
4853
+ ]), ie((...t) => {
4854
+ const o = r.current;
4855
+ return o == null ? void 0 : o(...t);
4856
+ }, []);
4873
4857
  }
4874
4858
  const at = {
4875
4859
  prefix: String(Math.round(Math.random() * 1e10)),
4876
4860
  current: 0
4877
- }, Ea = /* @__PURE__ */ ce.createContext(at), ql = /* @__PURE__ */ ce.createContext(!1);
4861
+ }, Ca = /* @__PURE__ */ ce.createContext(at), ql = /* @__PURE__ */ ce.createContext(!1);
4878
4862
  let Zl = !!(typeof window < "u" && window.document && window.document.createElement), Rt = /* @__PURE__ */ new WeakMap();
4879
4863
  function Jl(e = !1) {
4880
- let r = Oe(Ea), t = U(null);
4864
+ let r = Oe(Ca), t = U(null);
4881
4865
  if (t.current === null && !e) {
4882
4866
  var o, n;
4883
4867
  let s = (n = ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || n === void 0 || (o = n.ReactCurrentOwner) === null || o === void 0 ? void 0 : o.current;
@@ -4893,7 +4877,7 @@ function Jl(e = !1) {
4893
4877
  return t.current;
4894
4878
  }
4895
4879
  function Ql(e) {
4896
- let r = Oe(Ea);
4880
+ let r = Oe(Ca);
4897
4881
  r === at && !Zl && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
4898
4882
  let t = Jl(!!e), o = r === at && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${r.prefix}`;
4899
4883
  return e || `${o}-${t}`;
@@ -4916,56 +4900,24 @@ function nc(e) {
4916
4900
  function go() {
4917
4901
  return typeof ce.useSyncExternalStore == "function" ? ce.useSyncExternalStore(nc, tc, oc) : Oe(ql);
4918
4902
  }
4919
- function Sa(e) {
4920
- var r, t, o = "";
4921
- if (typeof e == "string" || typeof e == "number")
4922
- o += e;
4923
- else if (typeof e == "object")
4924
- if (Array.isArray(e)) {
4925
- var n = e.length;
4926
- for (r = 0; r < n; r++)
4927
- e[r] && (t = Sa(e[r])) && (o && (o += " "), o += t);
4928
- } else
4929
- for (t in e)
4930
- e[t] && (o && (o += " "), o += t);
4931
- return o;
4932
- }
4933
- function ac() {
4934
- for (var e, r, t = 0, o = "", n = arguments.length; t < n; t++)
4935
- (e = arguments[t]) && (r = Sa(e)) && (o && (o += " "), o += r);
4936
- return o;
4937
- }
4938
- const nr = typeof document < "u" ? ce.useLayoutEffect : () => {
4939
- };
4940
- function Wt(e) {
4941
- const r = U(null);
4942
- return nr(() => {
4943
- r.current = e;
4944
- }, [
4945
- e
4946
- ]), le((...t) => {
4947
- const o = r.current;
4948
- return o == null ? void 0 : o(...t);
4949
- }, []);
4950
- }
4951
- let sc = !!(typeof window < "u" && window.document && window.document.createElement), st = /* @__PURE__ */ new Map();
4952
- function ic(e) {
4953
- let [r, t] = fe(e), o = U(null), n = rc(r), s = le((i) => {
4903
+ let ac = !!(typeof window < "u" && window.document && window.document.createElement), st = /* @__PURE__ */ new Map();
4904
+ function sc(e) {
4905
+ let [r, t] = fe(e), o = U(null), n = rc(r), s = ie((i) => {
4954
4906
  o.current = i;
4955
4907
  }, []);
4956
- return sc && st.set(n, s), nr(() => {
4908
+ return ac && st.set(n, s), nr(() => {
4957
4909
  let i = n;
4958
4910
  return () => {
4959
4911
  st.delete(i);
4960
4912
  };
4961
4913
  }, [
4962
4914
  n
4963
- ]), ie(() => {
4915
+ ]), le(() => {
4964
4916
  let i = o.current;
4965
4917
  i && (o.current = null, t(i));
4966
4918
  }), n;
4967
4919
  }
4968
- function lc(e, r) {
4920
+ function ic(e, r) {
4969
4921
  if (e === r)
4970
4922
  return e;
4971
4923
  let t = st.get(e);
@@ -4974,16 +4926,35 @@ function lc(e, r) {
4974
4926
  let o = st.get(r);
4975
4927
  return o ? (o(e), e) : r;
4976
4928
  }
4977
- function cc(...e) {
4929
+ function lc(...e) {
4978
4930
  return (...r) => {
4979
4931
  for (let t of e)
4980
4932
  typeof t == "function" && t(...r);
4981
4933
  };
4982
4934
  }
4983
- const wr = (e) => {
4935
+ const lr = (e) => {
4984
4936
  var r;
4985
4937
  return (r = e == null ? void 0 : e.ownerDocument) !== null && r !== void 0 ? r : document;
4986
- }, tr = (e) => e && "window" in e && e.window === e ? e : wr(e).defaultView || window;
4938
+ }, tr = (e) => e && "window" in e && e.window === e ? e : lr(e).defaultView || window;
4939
+ function Ea(e) {
4940
+ var r, t, o = "";
4941
+ if (typeof e == "string" || typeof e == "number")
4942
+ o += e;
4943
+ else if (typeof e == "object")
4944
+ if (Array.isArray(e)) {
4945
+ var n = e.length;
4946
+ for (r = 0; r < n; r++)
4947
+ e[r] && (t = Ea(e[r])) && (o && (o += " "), o += t);
4948
+ } else
4949
+ for (t in e)
4950
+ e[t] && (o && (o += " "), o += t);
4951
+ return o;
4952
+ }
4953
+ function cc() {
4954
+ for (var e, r, t = 0, o = "", n = arguments.length; t < n; t++)
4955
+ (e = arguments[t]) && (r = Ea(e)) && (o && (o += " "), o += r);
4956
+ return o;
4957
+ }
4987
4958
  function Ae(...e) {
4988
4959
  let r = {
4989
4960
  ...e[0]
@@ -4995,7 +4966,7 @@ function Ae(...e) {
4995
4966
  typeof s == "function" && typeof i == "function" && // This is a lot faster than a regex.
4996
4967
  n[0] === "o" && n[1] === "n" && n.charCodeAt(2) >= /* 'A' */
4997
4968
  65 && n.charCodeAt(2) <= /* 'Z' */
4998
- 90 ? r[n] = cc(s, i) : (n === "className" || n === "UNSAFE_className") && typeof s == "string" && typeof i == "string" ? r[n] = ac(s, i) : n === "id" && s && i ? r.id = lc(s, i) : r[n] = i !== void 0 ? i : s;
4969
+ 90 ? r[n] = lc(s, i) : (n === "className" || n === "UNSAFE_className") && typeof s == "string" && typeof i == "string" ? r[n] = cc(s, i) : n === "id" && s && i ? r.id = ic(s, i) : r[n] = i !== void 0 ? i : s;
4999
4970
  }
5000
4971
  }
5001
4972
  return r;
@@ -5009,6 +4980,7 @@ const dc = /* @__PURE__ */ new Set([
5009
4980
  "aria-details"
5010
4981
  ]), fc = /* @__PURE__ */ new Set([
5011
4982
  "href",
4983
+ "hrefLang",
5012
4984
  "target",
5013
4985
  "rel",
5014
4986
  "download",
@@ -5084,7 +5056,7 @@ function mc() {
5084
5056
  function hc() {
5085
5057
  return vo(/Android/i);
5086
5058
  }
5087
- let fr = /* @__PURE__ */ new Map(), Gt = /* @__PURE__ */ new Set();
5059
+ let pr = /* @__PURE__ */ new Map(), Wt = /* @__PURE__ */ new Set();
5088
5060
  function mn() {
5089
5061
  if (typeof window > "u")
5090
5062
  return;
@@ -5094,18 +5066,18 @@ function mn() {
5094
5066
  let r = (o) => {
5095
5067
  if (!e(o) || !o.target)
5096
5068
  return;
5097
- let n = fr.get(o.target);
5098
- n || (n = /* @__PURE__ */ new Set(), fr.set(o.target, n), o.target.addEventListener("transitioncancel", t, {
5069
+ let n = pr.get(o.target);
5070
+ n || (n = /* @__PURE__ */ new Set(), pr.set(o.target, n), o.target.addEventListener("transitioncancel", t, {
5099
5071
  once: !0
5100
5072
  })), n.add(o.propertyName);
5101
5073
  }, t = (o) => {
5102
5074
  if (!e(o) || !o.target)
5103
5075
  return;
5104
- let n = fr.get(o.target);
5105
- if (n && (n.delete(o.propertyName), n.size === 0 && (o.target.removeEventListener("transitioncancel", t), fr.delete(o.target)), fr.size === 0)) {
5106
- for (let s of Gt)
5076
+ let n = pr.get(o.target);
5077
+ if (n && (n.delete(o.propertyName), n.size === 0 && (o.target.removeEventListener("transitioncancel", t), pr.delete(o.target)), pr.size === 0)) {
5078
+ for (let s of Wt)
5107
5079
  s();
5108
- Gt.clear();
5080
+ Wt.clear();
5109
5081
  }
5110
5082
  };
5111
5083
  document.body.addEventListener("transitionrun", r), document.body.addEventListener("transitionend", t);
@@ -5113,7 +5085,7 @@ function mn() {
5113
5085
  typeof document < "u" && (document.readyState !== "loading" ? mn() : document.addEventListener("DOMContentLoaded", mn));
5114
5086
  function Cc(e) {
5115
5087
  requestAnimationFrame(() => {
5116
- fr.size === 0 ? e() : Gt.add(e);
5088
+ pr.size === 0 ? e() : Wt.add(e);
5117
5089
  });
5118
5090
  }
5119
5091
  function Ec(e) {
@@ -5134,7 +5106,7 @@ function Sc() {
5134
5106
  }
5135
5107
  function kc(e) {
5136
5108
  const { ref: r, onResize: t } = e;
5137
- ie(() => {
5109
+ le(() => {
5138
5110
  let o = r == null ? void 0 : r.current;
5139
5111
  if (o)
5140
5112
  if (Sc()) {
@@ -5153,7 +5125,7 @@ function kc(e) {
5153
5125
  r
5154
5126
  ]);
5155
5127
  }
5156
- function ka(e, r) {
5128
+ function Sa(e, r) {
5157
5129
  nr(() => {
5158
5130
  if (e && e.ref && r)
5159
5131
  return e.ref.current = r.current, () => {
@@ -5164,6 +5136,35 @@ function ka(e, r) {
5164
5136
  function Tc(e) {
5165
5137
  return e.mozInputSource === 0 && e.isTrusted ? !0 : hc() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
5166
5138
  }
5139
+ function ka(e, r, t) {
5140
+ let [o, n] = fe(e || r), s = U(e !== void 0), i = e !== void 0;
5141
+ le(() => {
5142
+ let p = s.current;
5143
+ p !== i && console.warn(`WARN: A component changed from ${p ? "controlled" : "uncontrolled"} to ${i ? "controlled" : "uncontrolled"}.`), s.current = i;
5144
+ }, [
5145
+ i
5146
+ ]);
5147
+ let l = i ? e : o, d = ie((p, ...f) => {
5148
+ let v = (x, ...b) => {
5149
+ t && (Object.is(l, x) || t(x, ...b)), i || (l = x);
5150
+ };
5151
+ typeof p == "function" ? (console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"), n((b, ...y) => {
5152
+ let h = p(i ? l : b, ...y);
5153
+ return v(h, ...f), i ? b : h;
5154
+ })) : (i || n(p), v(p, ...f));
5155
+ }, [
5156
+ i,
5157
+ l,
5158
+ t
5159
+ ]);
5160
+ return [
5161
+ l,
5162
+ d
5163
+ ];
5164
+ }
5165
+ function Gt(e, r = -1 / 0, t = 1 / 0) {
5166
+ return Math.min(Math.max(e, r), t);
5167
+ }
5167
5168
  const Ut = ce.createContext({
5168
5169
  register: () => {
5169
5170
  }
@@ -5179,7 +5180,7 @@ const Pc = /* @__PURE__ */ ce.forwardRef(({ children: e, ...r }, t) => {
5179
5180
  o.current = !0, n && n.register();
5180
5181
  }
5181
5182
  });
5182
- return ka(n, t), ie(() => {
5183
+ return Sa(n, t), le(() => {
5183
5184
  o.current || (console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."), o.current = !0);
5184
5185
  }, []), /* @__PURE__ */ ce.createElement(Ut.Provider, {
5185
5186
  value: s
@@ -5215,10 +5216,10 @@ function Ta(e) {
5215
5216
  o.observer && (o.observer.disconnect(), o.observer = null);
5216
5217
  };
5217
5218
  }, []);
5218
- let t = Wt((o) => {
5219
+ let t = Ht((o) => {
5219
5220
  e == null || e(o);
5220
5221
  });
5221
- return le((o) => {
5222
+ return ie((o) => {
5222
5223
  if (o.target instanceof HTMLButtonElement || o.target instanceof HTMLInputElement || o.target instanceof HTMLTextAreaElement || o.target instanceof HTMLSelectElement) {
5223
5224
  r.current.isFocused = !0;
5224
5225
  let n = o.target, s = (i) => {
@@ -5251,14 +5252,15 @@ function Ta(e) {
5251
5252
  }
5252
5253
  function Pa(e) {
5253
5254
  let { isDisabled: r, onFocus: t, onBlur: o, onFocusChange: n } = e;
5254
- const s = le((d) => {
5255
+ const s = ie((d) => {
5255
5256
  if (d.target === d.currentTarget)
5256
5257
  return o && o(d), n && n(!1), !0;
5257
5258
  }, [
5258
5259
  o,
5259
5260
  n
5260
- ]), i = Ta(s), l = le((d) => {
5261
- d.target === d.currentTarget && document.activeElement === d.target && (t && t(d), n && n(!0), i(d));
5261
+ ]), i = Ta(s), l = ie((d) => {
5262
+ const p = lr(d.target);
5263
+ d.target === d.currentTarget && p.activeElement === d.target && (t && t(d), n && n(!0), i(d));
5262
5264
  }, [
5263
5265
  n,
5264
5266
  t,
@@ -5301,7 +5303,7 @@ function Ra() {
5301
5303
  function Xt(e) {
5302
5304
  if (typeof window > "u" || Or.get(tr(e)))
5303
5305
  return;
5304
- const r = tr(e), t = wr(e);
5306
+ const r = tr(e), t = lr(e);
5305
5307
  let o = r.HTMLElement.prototype.focus;
5306
5308
  r.HTMLElement.prototype.focus = function() {
5307
5309
  ar = !0, o.apply(this, arguments);
@@ -5314,11 +5316,11 @@ function Xt(e) {
5314
5316
  });
5315
5317
  }
5316
5318
  const Ma = (e, r) => {
5317
- const t = tr(e), o = wr(e);
5319
+ const t = tr(e), o = lr(e);
5318
5320
  r && o.removeEventListener("DOMContentLoaded", r), Or.has(t) && (t.HTMLElement.prototype.focus = Or.get(t).focus, o.removeEventListener("keydown", it, !0), o.removeEventListener("keyup", it, !0), o.removeEventListener("click", Oa, !0), t.removeEventListener("focus", _a, !0), t.removeEventListener("blur", Ra, !1), typeof PointerEvent < "u" ? (o.removeEventListener("pointerdown", Me, !0), o.removeEventListener("pointermove", Me, !0), o.removeEventListener("pointerup", Me, !0)) : (o.removeEventListener("mousedown", Me, !0), o.removeEventListener("mousemove", Me, !0), o.removeEventListener("mouseup", Me, !0)), Or.delete(t));
5319
5321
  };
5320
5322
  function Mc(e) {
5321
- const r = wr(e);
5323
+ const r = lr(e);
5322
5324
  let t;
5323
5325
  return r.readyState !== "loading" ? Xt(e) : (t = () => {
5324
5326
  Xt(e);
@@ -5348,7 +5350,7 @@ function Ac(e, r, t) {
5348
5350
  return e = e || (t == null ? void 0 : t.target) instanceof n && !Ic.has(t == null || (o = t.target) === null || o === void 0 ? void 0 : o.type) || (t == null ? void 0 : t.target) instanceof s || (t == null ? void 0 : t.target) instanceof i && (t == null ? void 0 : t.target.isContentEditable), !(e && r === "keyboard" && t instanceof l && !_c[t.key]);
5349
5351
  }
5350
5352
  function Lc(e, r, t) {
5351
- Xt(), ie(() => {
5353
+ Xt(), le(() => {
5352
5354
  let o = (n, s) => {
5353
5355
  Ac(!!(t != null && t.isTextInput), n, s) && e(yo());
5354
5356
  };
@@ -5360,13 +5362,13 @@ function Lc(e, r, t) {
5360
5362
  function Aa(e) {
5361
5363
  let { isDisabled: r, onBlurWithin: t, onFocusWithin: o, onFocusWithinChange: n } = e, s = U({
5362
5364
  isFocusWithin: !1
5363
- }), i = le((p) => {
5365
+ }), i = ie((p) => {
5364
5366
  s.current.isFocusWithin && !p.currentTarget.contains(p.relatedTarget) && (s.current.isFocusWithin = !1, t && t(p), n && n(!1));
5365
5367
  }, [
5366
5368
  t,
5367
5369
  n,
5368
5370
  s
5369
- ]), l = Ta(i), d = le((p) => {
5371
+ ]), l = Ta(i), d = ie((p) => {
5370
5372
  !s.current.isFocusWithin && document.activeElement === p.target && (o && o(p), n && n(!0), s.current.isFocusWithin = !0, l(p));
5371
5373
  }, [
5372
5374
  o,
@@ -5408,7 +5410,7 @@ function wo(e) {
5408
5410
  pointerType: "",
5409
5411
  target: null
5410
5412
  }).current;
5411
- ie(Nc, []);
5413
+ le(Nc, []);
5412
5414
  let { hoverProps: d, triggerHoverEnd: p } = Ce(() => {
5413
5415
  let f = (b, y) => {
5414
5416
  if (l.pointerType = y, n || y === "touch" || l.isHovered || !b.currentTarget.contains(b.target))
@@ -5452,7 +5454,7 @@ function wo(e) {
5452
5454
  n,
5453
5455
  l
5454
5456
  ]);
5455
- return ie(() => {
5457
+ return le(() => {
5456
5458
  n && p({
5457
5459
  currentTarget: l.target
5458
5460
  }, l.pointerType);
@@ -5467,16 +5469,16 @@ function Dc(e) {
5467
5469
  let { ref: r, onInteractOutside: t, isDisabled: o, onInteractOutsideStart: n } = e, s = U({
5468
5470
  isPointerDown: !1,
5469
5471
  ignoreEmulatedMouseEvents: !1
5470
- }), i = Wt((d) => {
5472
+ }), i = Ht((d) => {
5471
5473
  t && Jr(d, r) && (n && n(d), s.current.isPointerDown = !0);
5472
- }), l = Wt((d) => {
5474
+ }), l = Ht((d) => {
5473
5475
  t && t(d);
5474
5476
  });
5475
- ie(() => {
5477
+ le(() => {
5476
5478
  let d = s.current;
5477
5479
  if (o)
5478
5480
  return;
5479
- const p = r.current, f = wr(p);
5481
+ const p = r.current, f = lr(p);
5480
5482
  if (typeof PointerEvent < "u") {
5481
5483
  let v = (x) => {
5482
5484
  d.isPointerDown && Jr(x, r) && l(x), d.isPointerDown = !1;
@@ -5543,7 +5545,7 @@ function Fc(e) {
5543
5545
  };
5544
5546
  }
5545
5547
  function zc(e) {
5546
- const r = wr(e);
5548
+ const r = lr(e);
5547
5549
  if (Ia() === "virtual") {
5548
5550
  let t = r.activeElement;
5549
5551
  Cc(() => {
@@ -5634,7 +5636,7 @@ function Hc(e = {}) {
5634
5636
  let { autoFocus: r = !1, isTextInput: t, within: o } = e, n = U({
5635
5637
  isFocused: !1,
5636
5638
  isFocusVisible: r || yo()
5637
- }), [s, i] = fe(!1), [l, d] = fe(() => n.current.isFocused && n.current.isFocusVisible), p = le(() => d(n.current.isFocused && n.current.isFocusVisible), []), f = le((b) => {
5639
+ }), [s, i] = fe(!1), [l, d] = fe(() => n.current.isFocused && n.current.isFocusVisible), p = ie(() => d(n.current.isFocused && n.current.isFocusVisible), []), f = ie((b) => {
5638
5640
  n.current.isFocused = b, i(b), p();
5639
5641
  }, [
5640
5642
  p
@@ -5660,13 +5662,13 @@ function Hc(e = {}) {
5660
5662
  let Wc = /* @__PURE__ */ ce.createContext(null);
5661
5663
  function Gc(e) {
5662
5664
  let r = Oe(Wc) || {};
5663
- ka(r, e);
5665
+ Sa(r, e);
5664
5666
  let { ref: t, ...o } = r;
5665
5667
  return o;
5666
5668
  }
5667
5669
  function Uc(e, r) {
5668
5670
  let { focusProps: t } = Pa(e), { keyboardProps: o } = Fc(e), n = Ae(t, o), s = Gc(r), i = e.isDisabled ? {} : s, l = U(e.autoFocus);
5669
- return ie(() => {
5671
+ return le(() => {
5670
5672
  l.current && r.current && zc(r.current), l.current = !1;
5671
5673
  }, [
5672
5674
  r
@@ -5677,13 +5679,13 @@ function Uc(e, r) {
5677
5679
  }, i)
5678
5680
  };
5679
5681
  }
5680
- var Na = globalThis != null && globalThis.document ? Kn : ie;
5682
+ var Na = globalThis != null && globalThis.document ? Kn : le;
5681
5683
  function Kc(e = {}) {
5682
5684
  const { loading: r, src: t, srcSet: o, onLoad: n, onError: s, crossOrigin: i, sizes: l, ignoreFallback: d } = e, [p, f] = fe("pending");
5683
- ie(() => {
5685
+ le(() => {
5684
5686
  f(t ? "loading" : "pending");
5685
5687
  }, [t]);
5686
- const v = U(), x = le(() => {
5688
+ const v = U(), x = ie(() => {
5687
5689
  if (!t)
5688
5690
  return;
5689
5691
  b();
@@ -5743,7 +5745,7 @@ function Yc(e = {}) {
5743
5745
  });
5744
5746
  },
5745
5747
  [k, R, M, I, O, l, i == null ? void 0 : i.isGrid]
5746
- ), de = vr(b == null ? void 0 : b.base, _), se = Ce(() => T || d === "button", [T, d]), ue = le(
5748
+ ), de = $r(b == null ? void 0 : b.base, _), se = Ce(() => T || d === "button", [T, d]), ue = ie(
5747
5749
  (Ne = {}) => ({
5748
5750
  ref: B,
5749
5751
  tabIndex: se ? 0 : -1,
@@ -5751,12 +5753,12 @@ function Yc(e = {}) {
5751
5753
  "data-focus": Ve(Z),
5752
5754
  "data-focus-visible": Ve(W),
5753
5755
  className: ae.base({
5754
- class: vr(de, Ne == null ? void 0 : Ne.className)
5756
+ class: $r(de, Ne == null ? void 0 : Ne.className)
5755
5757
  }),
5756
5758
  ...Ae(F, S, se ? ee : {})
5757
5759
  }),
5758
5760
  [se, ae, de, ee, F]
5759
- ), he = le(
5761
+ ), he = ie(
5760
5762
  (Ne = {}) => ({
5761
5763
  ref: A,
5762
5764
  src: f,
@@ -5851,7 +5853,7 @@ function kn() {
5851
5853
  }
5852
5854
  function Qc() {
5853
5855
  let e = go(), [r, t] = fe(Zt);
5854
- return ie(() => (Pr.size === 0 && window.addEventListener("languagechange", kn), Pr.add(t), () => {
5856
+ return le(() => (Pr.size === 0 && window.addEventListener("languagechange", kn), Pr.add(t), () => {
5855
5857
  Pr.delete(t), Pr.size === 0 && window.removeEventListener("languagechange", kn);
5856
5858
  }), []), e ? {
5857
5859
  locale: "en-US",
@@ -5863,7 +5865,7 @@ function rd() {
5863
5865
  let e = Qc();
5864
5866
  return Oe(ed) || e;
5865
5867
  }
5866
- const pr = {
5868
+ const br = {
5867
5869
  top: "top",
5868
5870
  bottom: "top",
5869
5871
  left: "left",
@@ -5894,7 +5896,7 @@ function Tn(e) {
5894
5896
  var f;
5895
5897
  t = (f = Pe == null ? void 0 : Pe.height) !== null && f !== void 0 ? f : n, l.top = v.scrollTop || e.scrollTop, l.left = v.scrollLeft || e.scrollLeft, Pe && (s = Pe.offsetTop, i = Pe.offsetLeft);
5896
5898
  } else
5897
- ({ width: r, height: t, top: s, left: i } = br(e)), l.top = e.scrollTop, l.left = e.scrollLeft, o = r, n = t;
5899
+ ({ width: r, height: t, top: s, left: i } = gr(e)), l.top = e.scrollTop, l.left = e.scrollLeft, o = r, n = t;
5898
5900
  return xc() && (e.tagName === "BODY" || e.tagName === "HTML") && d && (l.top = 0, l.left = 0, s = Pe.pageTop, i = Pe.pageLeft), {
5899
5901
  width: r,
5900
5902
  height: t,
@@ -5914,7 +5916,7 @@ function od(e) {
5914
5916
  };
5915
5917
  }
5916
5918
  function Pn(e, r, t, o, n, s, i) {
5917
- let l = n.scroll[e], d = o[Jt[e]], p = o.scroll[pr[e]] + s, f = d + o.scroll[pr[e]] - s, v = r - l + i[e] - o[pr[e]], x = r - l + t + i[e] - o[pr[e]];
5919
+ let l = n.scroll[e], d = o[Jt[e]], p = o.scroll[br[e]] + s, f = d + o.scroll[br[e]] - s, v = r - l + i[e] - o[br[e]], x = r - l + t + i[e] - o[br[e]];
5918
5920
  return v < p ? p - v : x > f ? Math.max(f - x, p - v) : 0;
5919
5921
  }
5920
5922
  function nd(e) {
@@ -5929,8 +5931,8 @@ function nd(e) {
5929
5931
  function On(e) {
5930
5932
  if (Qr[e])
5931
5933
  return Qr[e];
5932
- let [r, t] = e.split(" "), o = pr[r] || "right", n = td[o];
5933
- pr[t] || (t = "center");
5934
+ let [r, t] = e.split(" "), o = br[r] || "right", n = td[o];
5935
+ br[t] || (t = "center");
5934
5936
  let s = Jt[o], i = Jt[n];
5935
5937
  return Qr[e] = {
5936
5938
  placement: r,
@@ -5945,7 +5947,7 @@ function It(e, r, t, o, n, s, i, l, d, p) {
5945
5947
  let { placement: f, crossPlacement: v, axis: x, crossAxis: b, size: y, crossSize: h } = o, E = {};
5946
5948
  E[b] = e[b], v === "center" ? E[b] += (e[h] - t[h]) / 2 : v !== b && (E[b] += e[h] - t[h]), E[b] += s;
5947
5949
  const k = e[b] - t[h] + d + p, R = e[b] + e[h] - d - p;
5948
- if (E[b] = Ht(E[b], k, R), f === x) {
5950
+ if (E[b] = Gt(E[b], k, R), f === x) {
5949
5951
  const M = l ? i[y] : r[Fa[y]];
5950
5952
  E[ct[x]] = Math.floor(M - e[x] + n);
5951
5953
  } else
@@ -5977,8 +5979,8 @@ function sd(e, r, t, o, n, s, i, l, d, p, f, v, x, b, y, h) {
5977
5979
  let q = ad(T, l, p, x, n, s, t.height, N);
5978
5980
  b && b < q && (q = b), t.height = Math.min(t.height, q), T = It(r, l, t, E, D, v, p, x, y, h), J = Pn(R, T[R], t[M], l, d, s, p), T[R] += J;
5979
5981
  let _ = {}, V = r[R] + 0.5 * r[M] - t[R];
5980
- const F = y / 2 + h, z = t[M] - y / 2 - h, B = r[R] - t[R] + y / 2, A = r[R] + r[M] - t[R] - y / 2, W = Ht(V, B, A);
5981
- return _[R] = Ht(W, F, z), {
5982
+ const F = y / 2 + h, z = t[M] - y / 2 - h, B = r[R] - t[R] + y / 2, A = r[R] + r[M] - t[R] - y / 2, W = Gt(V, B, A);
5983
+ return _[R] = Gt(W, F, z), {
5982
5984
  position: T,
5983
5985
  maxHeight: q,
5984
5986
  arrowOffsetLeft: _.left,
@@ -5989,17 +5991,17 @@ function sd(e, r, t, o, n, s, i, l, d, p, f, v, x, b, y, h) {
5989
5991
  function id(e) {
5990
5992
  let { placement: r, targetNode: t, overlayNode: o, scrollNode: n, padding: s, shouldFlip: i, boundaryElement: l, offset: d, crossOffset: p, maxHeight: f, arrowSize: v = 0, arrowBoundaryOffset: x = 0 } = e, b = o instanceof HTMLElement ? ld(o) : document.documentElement, y = b === document.documentElement;
5991
5993
  const h = window.getComputedStyle(b).position;
5992
- let E = !!h && h !== "static", k = y ? br(t) : Rn(t, b);
5994
+ let E = !!h && h !== "static", k = y ? gr(t) : Rn(t, b);
5993
5995
  if (!y) {
5994
5996
  let { marginTop: L, marginLeft: N } = window.getComputedStyle(t);
5995
5997
  k.top += parseInt(L, 10) || 0, k.left += parseInt(N, 10) || 0;
5996
5998
  }
5997
- let R = br(o), M = nd(o);
5999
+ let R = gr(o), M = nd(o);
5998
6000
  R.width += M.left + M.right, R.height += M.top + M.bottom;
5999
- let I = od(n), O = Tn(l), T = Tn(b), D = l.tagName === "BODY" ? br(b) : Rn(b, l);
6001
+ let I = od(n), O = Tn(l), T = Tn(b), D = l.tagName === "BODY" ? gr(b) : Rn(b, l);
6000
6002
  return b.tagName === "HTML" && l.tagName === "BODY" && (T.scroll.top = 0, T.scroll.left = 0), sd(r, k, R, I, M, s, i, O, T, D, d, p, E, f, v, x);
6001
6003
  }
6002
- function br(e) {
6004
+ function gr(e) {
6003
6005
  let { top: r, left: t, width: o, height: n } = e.getBoundingClientRect(), { scrollTop: s, scrollLeft: i, clientTop: l, clientLeft: d } = document.documentElement;
6004
6006
  return {
6005
6007
  top: r + s - l,
@@ -6019,8 +6021,8 @@ function Rn(e, r) {
6019
6021
  height: l
6020
6022
  };
6021
6023
  } else {
6022
- o = br(e);
6023
- let n = br(r), s = window.getComputedStyle(r);
6024
+ o = gr(e);
6025
+ let n = gr(r), s = window.getComputedStyle(r);
6024
6026
  n.top += (parseInt(s.borderTopWidth, 10) || 0) - r.scrollTop, n.left += (parseInt(s.borderLeftWidth, 10) || 0) - r.scrollLeft, o.top -= n.top, o.left -= n.left;
6025
6027
  }
6026
6028
  return o.top -= parseInt(t.marginTop, 10) || 0, o.left -= parseInt(t.marginLeft, 10) || 0, o;
@@ -6041,7 +6043,7 @@ function Mn(e) {
6041
6043
  const cd = /* @__PURE__ */ new WeakMap();
6042
6044
  function dd(e) {
6043
6045
  let { triggerRef: r, isOpen: t, onClose: o } = e;
6044
- ie(() => {
6046
+ le(() => {
6045
6047
  if (!t || o === null)
6046
6048
  return;
6047
6049
  let n = (s) => {
@@ -6085,12 +6087,12 @@ function ud(e) {
6085
6087
  E,
6086
6088
  t
6087
6089
  ], I = U(xe == null ? void 0 : xe.scale);
6088
- ie(() => {
6090
+ le(() => {
6089
6091
  b && (I.current = xe == null ? void 0 : xe.scale);
6090
6092
  }, [
6091
6093
  b
6092
6094
  ]);
6093
- let O = le(() => {
6095
+ let O = ie(() => {
6094
6096
  if (x === !1 || !b || !n.current || !o.current || !s.current || !p || (xe == null ? void 0 : xe.scale) !== I.current)
6095
6097
  return;
6096
6098
  !h && n.current && (n.current.style.maxHeight = "none");
@@ -6129,7 +6131,7 @@ function ud(e) {
6129
6131
  }, [
6130
6132
  O
6131
6133
  ]);
6132
- let D = le(() => {
6134
+ let D = ie(() => {
6133
6135
  T.current || y();
6134
6136
  }, [
6135
6137
  y,
@@ -6173,7 +6175,7 @@ function pd(e, r) {
6173
6175
  const We = [];
6174
6176
  function bd(e, r) {
6175
6177
  let { onClose: t, shouldCloseOnBlur: o, isOpen: n, isDismissable: s = !1, isKeyboardDismissDisabled: i = !1, shouldCloseOnInteractOutside: l } = e;
6176
- ie(() => (n && We.push(r), () => {
6178
+ le(() => (n && We.push(r), () => {
6177
6179
  let y = We.indexOf(r);
6178
6180
  y >= 0 && We.splice(y, 1);
6179
6181
  }), [
@@ -6187,7 +6189,7 @@ function bd(e, r) {
6187
6189
  }, f = (y) => {
6188
6190
  (!l || l(y.target)) && (We[We.length - 1] === r && (y.stopPropagation(), y.preventDefault()), d());
6189
6191
  }, v = (y) => {
6190
- y.key === "Escape" && !i && (y.stopPropagation(), y.preventDefault(), d());
6192
+ y.key === "Escape" && !i && !y.nativeEvent.isComposing && (y.stopPropagation(), y.preventDefault(), d());
6191
6193
  };
6192
6194
  Dc({
6193
6195
  ref: r,
@@ -6263,7 +6265,7 @@ function In(e) {
6263
6265
  return /* @__PURE__ */ na.createPortal(n, t);
6264
6266
  }
6265
6267
  function vt(e) {
6266
- return we(e);
6268
+ return $e(e);
6267
6269
  }
6268
6270
  var za = (e, r, t = !0) => {
6269
6271
  if (!r)
@@ -6325,7 +6327,7 @@ function wd(e = {}) {
6325
6327
  [s, i, l, v, p, f]
6326
6328
  ), M = Ce(() => Xl({ className: b, isGrid: v }), [b, v]), I = sl(d), O = o ? I.slice(0, o) : I, T = n || (o != null ? I.length - o : -1), D = O.map((J, q) => {
6327
6329
  const _ = q === 0, V = q === O.length - 1, F = {
6328
- className: vr(
6330
+ className: $r(
6329
6331
  _ ? "ms-0" : v ? "" : "-ms-2",
6330
6332
  V && T < 1 ? "hover:-translate-x-0" : ""
6331
6333
  )
@@ -6341,7 +6343,7 @@ function wd(e = {}) {
6341
6343
  getAvatarGroupProps: () => ({
6342
6344
  ref: E,
6343
6345
  className: M.base({
6344
- class: vr(y == null ? void 0 : y.base, b)
6346
+ class: $r(y == null ? void 0 : y.base, b)
6345
6347
  }),
6346
6348
  role: "group",
6347
6349
  ...h
@@ -7090,7 +7092,7 @@ function Sd(e) {
7090
7092
  ), v = Ce(() => {
7091
7093
  var h;
7092
7094
  return ((h = String(i)) == null ? void 0 : h.length) === 0;
7093
- }, [i]), x = vr(l == null ? void 0 : l.badge, s), b = Ce(
7095
+ }, [i]), x = $r(l == null ? void 0 : l.badge, s), b = Ce(
7094
7096
  () => wn({
7095
7097
  ...t,
7096
7098
  showOutline: e != null && e.disableOutline ? !(e != null && e.disableOutline) : e == null ? void 0 : e.showOutline,
@@ -7276,7 +7278,7 @@ function fp({
7276
7278
  return /* @__PURE__ */ Q(Td, { children: [
7277
7279
  e,
7278
7280
  /* @__PURE__ */ g(Pd, { placement: o, shape: n, children: /* @__PURE__ */ g(Xn, { children: !r && /* @__PURE__ */ g(
7279
- yr.div,
7281
+ wr.div,
7280
7282
  {
7281
7283
  variants: _d,
7282
7284
  initial: t ? "show" : "hidden",
@@ -7609,28 +7611,27 @@ const je = C(Zn)`
7609
7611
  }
7610
7612
  }};
7611
7613
  }
7612
- `;
7613
- function yp({
7614
- children: e,
7615
- isDisabled: r = !1,
7616
- isLoading: t = !1,
7617
- size: o = "md",
7618
- variant: n = "solid",
7619
- ...s
7620
- }) {
7621
- return /* @__PURE__ */ g(
7622
- je,
7623
- {
7624
- isDisabled: r || t,
7625
- isLoading: t,
7626
- size: o,
7627
- variant: n,
7628
- ...s,
7629
- children: e
7630
- }
7631
- );
7632
- }
7633
- const Ld = C.div`
7614
+ `, yp = $e(
7615
+ function({
7616
+ isDisabled: r = !1,
7617
+ isLoading: t = !1,
7618
+ size: o = "md",
7619
+ variant: n = "solid",
7620
+ ...s
7621
+ }, i) {
7622
+ return /* @__PURE__ */ g(
7623
+ je,
7624
+ {
7625
+ isDisabled: r || t,
7626
+ isLoading: t,
7627
+ size: o,
7628
+ variant: n,
7629
+ ...s,
7630
+ ref: i
7631
+ }
7632
+ );
7633
+ }
7634
+ ), Ld = C.div`
7634
7635
  display: flex;
7635
7636
  flex-direction: column;
7636
7637
  `;
@@ -7851,19 +7852,19 @@ function xp({ children: e, ...r }) {
7851
7852
  }
7852
7853
  const Dd = C.div`
7853
7854
  width: 100%;
7854
- `, Fd = C(yr.div)`
7855
+ `, Fd = C(wr.div)`
7855
7856
  width: 100%;
7856
7857
  overflow: hidden;
7857
- `, Wa = gr({});
7858
+ `, Wa = vr({});
7858
7859
  function mp({
7859
7860
  children: e,
7860
7861
  ...r
7861
7862
  }) {
7862
- const t = fo(), [o, n] = Ca(
7863
+ const t = fo(), [o, n] = ka(
7863
7864
  r.isOpen,
7864
7865
  r.defaultOpen || !1,
7865
7866
  r.onOpenChange
7866
- ), s = U(null), i = le(() => {
7867
+ ), s = U(null), i = ie(() => {
7867
7868
  n(!o);
7868
7869
  }, [n, o]);
7869
7870
  return /* @__PURE__ */ g(
@@ -7926,12 +7927,12 @@ const zd = (e) => {
7926
7927
  padding: 0 1rem;
7927
7928
 
7928
7929
  ${({ theme: e }) => zd((e == null ? void 0 : e.screens) ?? c.screens)}
7929
- `, Cp = we(
7930
+ `, Cp = $e(
7930
7931
  ({ children: e, ...r }, t) => (
7931
7932
  // eslint-disable-next-line react/jsx-props-no-spreading
7932
7933
  /* @__PURE__ */ g(jd, { ...r, ref: t, children: e })
7933
7934
  )
7934
- ), Vd = C(yr(Jn))`
7935
+ ), Vd = C(wr(Jn))`
7935
7936
  padding: 0.4rem 0;
7936
7937
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
7937
7938
  border-radius: 0.375rem;
@@ -8414,7 +8415,7 @@ const eu = C(Ci)`
8414
8415
  }};
8415
8416
  forced-color-adjust: none;
8416
8417
  overflow: hidden;
8417
- `, au = C(yr.div)`
8418
+ `, au = C(wr.div)`
8418
8419
  height: 100%;
8419
8420
  background-color: ${({ theme: e }) => {
8420
8421
  var r, t;
@@ -9024,9 +9025,9 @@ function Tu({
9024
9025
  }) {
9025
9026
  fe(-1);
9026
9027
  const [y, h] = fe(f), [E, k] = fe(Array(l).fill("")), R = U([]);
9027
- ie(() => {
9028
+ le(() => {
9028
9029
  R.current = R.current.slice(0, l);
9029
- }, [l]), ie(() => {
9030
+ }, [l]), le(() => {
9030
9031
  const T = E.join("");
9031
9032
  h(T), p && p(T);
9032
9033
  }, [p, E]);
@@ -9316,7 +9317,7 @@ const ju = C(Ti)`
9316
9317
  display: flex;
9317
9318
  position: relative;
9318
9319
  width: 100%;
9319
- `, Bu = C(yr(Jn))`
9320
+ `, Bu = C(wr(Jn))`
9320
9321
  padding: 0.4rem 0;
9321
9322
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
9322
9323
  border-radius: 0.375rem;
@@ -9910,11 +9911,12 @@ function df({
9910
9911
  children: [
9911
9912
  /* @__PURE__ */ g(sf, { children: e }),
9912
9913
  r && /* @__PURE__ */ g(lf, { children: ({ state: n }) => n.values.map((s, i) => n.getThumbValueLabel(i)).join(" – ") }),
9913
- /* @__PURE__ */ g(cf, { children: ({ state: n }) => n.values.map((s, i) => /* @__PURE__ */ g(
9914
+ /* @__PURE__ */ g(cf, { "data-track": !0, children: ({ state: n }) => n.values.map((s, i) => /* @__PURE__ */ g(
9914
9915
  to,
9915
9916
  {
9916
9917
  index: i,
9917
- "aria-label": t == null ? void 0 : t[i]
9918
+ "aria-label": t == null ? void 0 : t[i],
9919
+ "data-thumb": !0
9918
9920
  },
9919
9921
  i
9920
9922
  )) })
@@ -10203,7 +10205,7 @@ const ff = C(Li)`
10203
10205
  &[data-disabled] {
10204
10206
  opacity: 0.5;
10205
10207
  }
10206
- `, bf = C(yr.span).attrs({
10208
+ `, bf = C(wr.span).attrs({
10207
10209
  className: "tab-overlay"
10208
10210
  })`
10209
10211
  position: absolute;
@@ -10266,7 +10268,7 @@ const ff = C(Li)`
10266
10268
  display: flex;
10267
10269
  flex-grow: 1;
10268
10270
  padding: 1rem 0;
10269
- `, mo = gr("horizontal");
10271
+ `, mo = vr("horizontal");
10270
10272
  function Lp({ children: e, ...r }) {
10271
10273
  return /* @__PURE__ */ g(mo.Provider, { value: r.orientation ?? "horizontal", children: /* @__PURE__ */ g(ff, { ...r, children: e }) });
10272
10274
  }
@@ -10676,16 +10678,16 @@ function zp({
10676
10678
  );
10677
10679
  }
10678
10680
  function Ef(e) {
10679
- let [r, t] = Ca(e.isOpen, e.defaultOpen || !1, e.onOpenChange);
10680
- const o = le(() => {
10681
+ let [r, t] = ka(e.isOpen, e.defaultOpen || !1, e.onOpenChange);
10682
+ const o = ie(() => {
10681
10683
  t(!0);
10682
10684
  }, [
10683
10685
  t
10684
- ]), n = le(() => {
10686
+ ]), n = ie(() => {
10685
10687
  t(!1);
10686
10688
  }, [
10687
10689
  t
10688
- ]), s = le(() => {
10690
+ ]), s = ie(() => {
10689
10691
  t(!r);
10690
10692
  }, [
10691
10693
  t,
@@ -10720,7 +10722,7 @@ function Tf(e = {}) {
10720
10722
  Ge = null, Tr = !0, f();
10721
10723
  }, r) : o || f();
10722
10724
  };
10723
- return ie(() => () => {
10725
+ return le(() => () => {
10724
10726
  clearTimeout(l.current), Je[i] && delete Je[i];
10725
10727
  }, [
10726
10728
  i
@@ -10746,12 +10748,12 @@ function Pf(e, r) {
10746
10748
  };
10747
10749
  }
10748
10750
  function Of(e, r, t) {
10749
- let { isDisabled: o, trigger: n } = e, s = ic(), i = U(!1), l = U(!1), d = () => {
10751
+ let { isDisabled: o, trigger: n } = e, s = sc(), i = U(!1), l = U(!1), d = () => {
10750
10752
  (i.current || l.current) && r.open(l.current);
10751
10753
  }, p = (k) => {
10752
10754
  !i.current && !l.current && r.close(k);
10753
10755
  };
10754
- ie(() => {
10756
+ le(() => {
10755
10757
  let k = (R) => {
10756
10758
  t && t.current && R.key === "Escape" && (R.stopPropagation(), r.close(!0));
10757
10759
  };
@@ -10958,14 +10960,14 @@ function Mf(e) {
10958
10960
  });
10959
10961
  },
10960
10962
  [ia(t), e == null ? void 0 : e.radius, e == null ? void 0 : e.size, e == null ? void 0 : e.shadow]
10961
- ), ue = le(
10963
+ ), ue = ie(
10962
10964
  (Be = {}, He = null) => ({
10963
10965
  ...Ae($, Be),
10964
10966
  ref: qi(He, A),
10965
10967
  "aria-describedby": ee ? Z : void 0
10966
10968
  }),
10967
10969
  [$, ee, Z, B]
10968
- ), he = le(
10970
+ ), he = ie(
10969
10971
  () => ({
10970
10972
  ref: W,
10971
10973
  "data-slot": "base",
@@ -10992,14 +10994,14 @@ function Mf(e) {
10992
10994
  r,
10993
10995
  Z
10994
10996
  ]
10995
- ), Ne = le(
10997
+ ), Ne = ie(
10996
10998
  () => ({
10997
10999
  "data-slot": "content",
10998
11000
  "data-open": Ve(ee),
10999
11001
  "data-arrow": Ve(k),
11000
11002
  "data-disabled": Ve(f),
11001
11003
  "data-placement": Dn(re, y),
11002
- className: se.content({ class: vr(V == null ? void 0 : V.content, J) })
11004
+ className: se.content({ class: $r(V == null ? void 0 : V.content, J) })
11003
11005
  }),
11004
11006
  [se, ee, k, f, re, y, V]
11005
11007
  );
@@ -11020,7 +11022,7 @@ function Mf(e) {
11020
11022
  getTooltipProps: he
11021
11023
  };
11022
11024
  }
11023
- var ur = {
11025
+ var fr = {
11024
11026
  ease: [0.36, 0.66, 0.4, 1],
11025
11027
  easeIn: [0.4, 0, 1, 1],
11026
11028
  easeOut: [0, 0, 0.2, 1],
@@ -11082,7 +11084,7 @@ var ur = {
11082
11084
  opacity: 1,
11083
11085
  transition: {
11084
11086
  duration: 0.25,
11085
- ease: ur.easeIn
11087
+ ease: fr.easeIn
11086
11088
  }
11087
11089
  },
11088
11090
  exit: {
@@ -11090,7 +11092,7 @@ var ur = {
11090
11092
  opacity: 0,
11091
11093
  transition: {
11092
11094
  duration: 0.2,
11093
- ease: ur.easeOut
11095
+ ease: fr.easeOut
11094
11096
  }
11095
11097
  }
11096
11098
  },
@@ -11100,7 +11102,7 @@ var ur = {
11100
11102
  opacity: 1,
11101
11103
  transition: {
11102
11104
  duration: 0.4,
11103
- ease: ur.ease
11105
+ ease: fr.ease
11104
11106
  }
11105
11107
  },
11106
11108
  exit: {
@@ -11108,7 +11110,7 @@ var ur = {
11108
11110
  opacity: 0,
11109
11111
  transition: {
11110
11112
  duration: 0.3,
11111
- ease: ur.ease
11113
+ ease: fr.ease
11112
11114
  }
11113
11115
  }
11114
11116
  },
@@ -11117,14 +11119,14 @@ var ur = {
11117
11119
  opacity: 1,
11118
11120
  transition: {
11119
11121
  duration: 0.4,
11120
- ease: ur.ease
11122
+ ease: fr.ease
11121
11123
  }
11122
11124
  },
11123
11125
  exit: {
11124
11126
  opacity: 0,
11125
11127
  transition: {
11126
11128
  duration: 0.3,
11127
- ease: ur.ease
11129
+ ease: fr.ease
11128
11130
  }
11129
11131
  }
11130
11132
  },
@@ -11339,31 +11341,32 @@ const Lf = C(Af).attrs({
11339
11341
  border-radius: 0.375rem;
11340
11342
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
11341
11343
  }
11342
- `;
11343
- function jp({ children: e, ...r }) {
11344
- return /* @__PURE__ */ g(
11345
- Lf,
11346
- {
11347
- classNames: { base: ["tooltip"], content: ["tooltip-content"] },
11348
- ...r,
11349
- children: e
11350
- }
11351
- );
11352
- }
11353
- function ye() {
11354
- return ye = Object.assign ? Object.assign.bind() : function(e) {
11344
+ `, jp = $e(
11345
+ function(r, t) {
11346
+ return /* @__PURE__ */ g(
11347
+ Lf,
11348
+ {
11349
+ classNames: { base: ["tooltip"], content: ["tooltip-content"] },
11350
+ ...r,
11351
+ ref: t
11352
+ }
11353
+ );
11354
+ }
11355
+ );
11356
+ function we() {
11357
+ return we = Object.assign ? Object.assign.bind() : function(e) {
11355
11358
  for (var r = 1; r < arguments.length; r++) {
11356
11359
  var t = arguments[r];
11357
11360
  for (var o in t)
11358
11361
  Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
11359
11362
  }
11360
11363
  return e;
11361
- }, ye.apply(this, arguments);
11364
+ }, we.apply(this, arguments);
11362
11365
  }
11363
11366
  function qa(e, r = []) {
11364
11367
  let t = [];
11365
11368
  function o(s, i) {
11366
- const l = /* @__PURE__ */ gr(i), d = t.length;
11369
+ const l = /* @__PURE__ */ vr(i), d = t.length;
11367
11370
  t = [
11368
11371
  ...t,
11369
11372
  i
@@ -11391,7 +11394,7 @@ function qa(e, r = []) {
11391
11394
  ];
11392
11395
  }
11393
11396
  const n = () => {
11394
- const s = t.map((i) => /* @__PURE__ */ gr(i));
11397
+ const s = t.map((i) => /* @__PURE__ */ vr(i));
11395
11398
  return function(l) {
11396
11399
  const d = (l == null ? void 0 : l[e]) || s;
11397
11400
  return Ce(
@@ -11459,22 +11462,22 @@ function ho(...e) {
11459
11462
  );
11460
11463
  }
11461
11464
  function Ye(...e) {
11462
- return le(ho(...e), e);
11465
+ return ie(ho(...e), e);
11463
11466
  }
11464
- const dt = /* @__PURE__ */ we((e, r) => {
11467
+ const dt = /* @__PURE__ */ $e((e, r) => {
11465
11468
  const { children: t, ...o } = e, n = or.toArray(t), s = n.find(zf);
11466
11469
  if (s) {
11467
11470
  const i = s.props.children, l = n.map((d) => d === s ? or.count(i) > 1 ? or.only(null) : /* @__PURE__ */ _r(i) ? i.props.children : null : d);
11468
- return /* @__PURE__ */ Y(oo, ye({}, o, {
11471
+ return /* @__PURE__ */ Y(oo, we({}, o, {
11469
11472
  ref: r
11470
11473
  }), /* @__PURE__ */ _r(i) ? /* @__PURE__ */ Ir(i, void 0, l) : null);
11471
11474
  }
11472
- return /* @__PURE__ */ Y(oo, ye({}, o, {
11475
+ return /* @__PURE__ */ Y(oo, we({}, o, {
11473
11476
  ref: r
11474
11477
  }), t);
11475
11478
  });
11476
11479
  dt.displayName = "Slot";
11477
- const oo = /* @__PURE__ */ we((e, r) => {
11480
+ const oo = /* @__PURE__ */ $e((e, r) => {
11478
11481
  const { children: t, ...o } = e;
11479
11482
  return /* @__PURE__ */ _r(t) ? /* @__PURE__ */ Ir(t, {
11480
11483
  ...jf(o, t.props),
@@ -11525,11 +11528,11 @@ const Vf = [
11525
11528
  "svg",
11526
11529
  "ul"
11527
11530
  ], Le = Vf.reduce((e, r) => {
11528
- const t = /* @__PURE__ */ we((o, n) => {
11531
+ const t = /* @__PURE__ */ $e((o, n) => {
11529
11532
  const { asChild: s, ...i } = o, l = s ? dt : r;
11530
- return ie(() => {
11533
+ return le(() => {
11531
11534
  window[Symbol.for("radix-ui")] = !0;
11532
- }, []), /* @__PURE__ */ Y(l, ye({}, i, {
11535
+ }, []), /* @__PURE__ */ Y(l, we({}, i, {
11533
11536
  ref: n
11534
11537
  }));
11535
11538
  });
@@ -11545,7 +11548,7 @@ function no(e, r) {
11545
11548
  }
11546
11549
  function Ie(e) {
11547
11550
  const r = U(e);
11548
- return ie(() => {
11551
+ return le(() => {
11549
11552
  r.current = e;
11550
11553
  }), Ce(
11551
11554
  () => (...t) => {
@@ -11560,7 +11563,7 @@ function Bf({ prop: e, defaultProp: r, onChange: t = () => {
11560
11563
  const [o, n] = Hf({
11561
11564
  defaultProp: r,
11562
11565
  onChange: t
11563
- }), s = e !== void 0, i = s ? e : o, l = Ie(t), d = le((p) => {
11566
+ }), s = e !== void 0, i = s ? e : o, l = Ie(t), d = ie((p) => {
11564
11567
  if (s) {
11565
11568
  const v = typeof p == "function" ? p(e) : p;
11566
11569
  v !== e && l(v);
@@ -11579,7 +11582,7 @@ function Bf({ prop: e, defaultProp: r, onChange: t = () => {
11579
11582
  }
11580
11583
  function Hf({ defaultProp: e, onChange: r }) {
11581
11584
  const t = fe(e), [o] = t, n = U(o), s = Ie(r);
11582
- return ie(() => {
11585
+ return le(() => {
11583
11586
  n.current !== o && (s(o), n.current = o);
11584
11587
  }, [
11585
11588
  o,
@@ -11587,12 +11590,12 @@ function Hf({ defaultProp: e, onChange: r }) {
11587
11590
  s
11588
11591
  ]), t;
11589
11592
  }
11590
- const Wf = /* @__PURE__ */ gr(void 0);
11593
+ const Wf = /* @__PURE__ */ vr(void 0);
11591
11594
  function Gf(e) {
11592
11595
  const r = Oe(Wf);
11593
11596
  return e || r || "ltr";
11594
11597
  }
11595
- const $r = globalThis != null && globalThis.document ? Kn : () => {
11598
+ const yr = globalThis != null && globalThis.document ? Kn : () => {
11596
11599
  };
11597
11600
  function Uf(e, r) {
11598
11601
  return bi((t, o) => {
@@ -11623,12 +11626,12 @@ function Kf(e) {
11623
11626
  MOUNT: "mounted"
11624
11627
  }
11625
11628
  });
11626
- return ie(() => {
11629
+ return le(() => {
11627
11630
  const p = et(o.current);
11628
11631
  s.current = l === "mounted" ? p : "none";
11629
11632
  }, [
11630
11633
  l
11631
- ]), $r(() => {
11634
+ ]), yr(() => {
11632
11635
  const p = o.current, f = n.current;
11633
11636
  if (f !== e) {
11634
11637
  const x = s.current, b = et(p);
@@ -11637,7 +11640,7 @@ function Kf(e) {
11637
11640
  }, [
11638
11641
  e,
11639
11642
  d
11640
- ]), $r(() => {
11643
+ ]), yr(() => {
11641
11644
  if (r) {
11642
11645
  const p = (v) => {
11643
11646
  const b = et(o.current).includes(v.animationName);
@@ -11660,7 +11663,7 @@ function Kf(e) {
11660
11663
  "mounted",
11661
11664
  "unmountSuspended"
11662
11665
  ].includes(l),
11663
- ref: le((p) => {
11666
+ ref: ie((p) => {
11664
11667
  p && (o.current = getComputedStyle(p)), t(p);
11665
11668
  }, [])
11666
11669
  };
@@ -11673,7 +11676,7 @@ const Yf = ot["useId".toString()] || (() => {
11673
11676
  let Xf = 0;
11674
11677
  function Za(e) {
11675
11678
  const [r, t] = ot.useState(Yf());
11676
- return $r(() => {
11679
+ return yr(() => {
11677
11680
  e || t(
11678
11681
  (o) => o ?? String(Xf++)
11679
11682
  );
@@ -11736,7 +11739,7 @@ function Ja(e) {
11736
11739
  }
11737
11740
  function qf(e, r = globalThis == null ? void 0 : globalThis.document) {
11738
11741
  const t = Ie(e);
11739
- ie(() => {
11742
+ le(() => {
11740
11743
  const o = (n) => {
11741
11744
  n.key === "Escape" && t(n);
11742
11745
  };
@@ -11748,11 +11751,11 @@ function qf(e, r = globalThis == null ? void 0 : globalThis.document) {
11748
11751
  }
11749
11752
  const ao = "dismissableLayer.update", Zf = "dismissableLayer.pointerDownOutside", Jf = "dismissableLayer.focusOutside";
11750
11753
  let Fn;
11751
- const Qf = /* @__PURE__ */ gr({
11754
+ const Qf = /* @__PURE__ */ vr({
11752
11755
  layers: /* @__PURE__ */ new Set(),
11753
11756
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
11754
11757
  branches: /* @__PURE__ */ new Set()
11755
- }), e0 = /* @__PURE__ */ we((e, r) => {
11758
+ }), e0 = /* @__PURE__ */ $e((e, r) => {
11756
11759
  var t;
11757
11760
  const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: n, onPointerDownOutside: s, onFocusOutside: i, onInteractOutside: l, onDismiss: d, ...p } = e, f = Oe(Qf), [v, x] = fe(null), b = (t = v == null ? void 0 : v.ownerDocument) !== null && t !== void 0 ? t : globalThis == null ? void 0 : globalThis.document, [, y] = fe({}), h = Ye(
11758
11761
  r,
@@ -11776,7 +11779,7 @@ const Qf = /* @__PURE__ */ gr({
11776
11779
  }, b);
11777
11780
  return qf((L) => {
11778
11781
  M === f.layers.size - 1 && (n == null || n(L), !L.defaultPrevented && d && (L.preventDefault(), d()));
11779
- }, b), ie(() => {
11782
+ }, b), le(() => {
11780
11783
  if (v)
11781
11784
  return o && (f.layersWithOutsidePointerEventsDisabled.size === 0 && (Fn = b.body.style.pointerEvents, b.body.style.pointerEvents = "none"), f.layersWithOutsidePointerEventsDisabled.add(v)), f.layers.add(v), zn(), () => {
11782
11785
  o && f.layersWithOutsidePointerEventsDisabled.size === 1 && (b.body.style.pointerEvents = Fn);
@@ -11786,15 +11789,15 @@ const Qf = /* @__PURE__ */ gr({
11786
11789
  b,
11787
11790
  o,
11788
11791
  f
11789
- ]), ie(() => () => {
11792
+ ]), le(() => () => {
11790
11793
  v && (f.layers.delete(v), f.layersWithOutsidePointerEventsDisabled.delete(v), zn());
11791
11794
  }, [
11792
11795
  v,
11793
11796
  f
11794
- ]), ie(() => {
11797
+ ]), le(() => {
11795
11798
  const L = () => y({});
11796
11799
  return document.addEventListener(ao, L), () => document.removeEventListener(ao, L);
11797
- }, []), /* @__PURE__ */ Y(Le.div, ye({}, p, {
11800
+ }, []), /* @__PURE__ */ Y(Le.div, we({}, p, {
11798
11801
  ref: h,
11799
11802
  style: {
11800
11803
  pointerEvents: I ? O ? "auto" : "none" : void 0,
@@ -11808,7 +11811,7 @@ const Qf = /* @__PURE__ */ gr({
11808
11811
  function r0(e, r = globalThis == null ? void 0 : globalThis.document) {
11809
11812
  const t = Ie(e), o = U(!1), n = U(() => {
11810
11813
  });
11811
- return ie(() => {
11814
+ return le(() => {
11812
11815
  const s = (l) => {
11813
11816
  if (l.target && !o.current) {
11814
11817
  let p = function() {
@@ -11841,7 +11844,7 @@ function r0(e, r = globalThis == null ? void 0 : globalThis.document) {
11841
11844
  }
11842
11845
  function t0(e, r = globalThis == null ? void 0 : globalThis.document) {
11843
11846
  const t = Ie(e), o = U(!1);
11844
- return ie(() => {
11847
+ return le(() => {
11845
11848
  const n = (s) => {
11846
11849
  s.target && !o.current && Qa(Jf, t, {
11847
11850
  originalEvent: s
@@ -11881,7 +11884,7 @@ function o0(e) {
11881
11884
  e
11882
11885
  ]);
11883
11886
  }
11884
- const n0 = /* @__PURE__ */ we((e, r) => /* @__PURE__ */ Y(Le.span, ye({}, e, {
11887
+ const n0 = /* @__PURE__ */ $e((e, r) => /* @__PURE__ */ Y(Le.span, we({}, e, {
11885
11888
  ref: r,
11886
11889
  style: {
11887
11890
  // See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
@@ -11900,7 +11903,7 @@ const n0 = /* @__PURE__ */ we((e, r) => /* @__PURE__ */ Y(Le.span, ye({}, e, {
11900
11903
  }))), a0 = n0, Dr = "NavigationMenu", [Co, es, s0] = Ja(Dr), [so, i0, l0] = Ja(Dr), [Eo, Vp] = qa(Dr, [
11901
11904
  s0,
11902
11905
  l0
11903
- ]), [c0, Fe] = Eo(Dr), [d0, u0] = Eo(Dr), f0 = /* @__PURE__ */ we((e, r) => {
11906
+ ]), [c0, Fe] = Eo(Dr), [d0, u0] = Eo(Dr), f0 = /* @__PURE__ */ $e((e, r) => {
11904
11907
  const { __scopeNavigationMenu: t, value: o, onValueChange: n, defaultValue: s, delayDuration: i = 200, skipDelayDuration: l = 300, orientation: d = "horizontal", dir: p, ...f } = e, [v, x] = fe(null), b = Ye(
11905
11908
  r,
11906
11909
  (N) => x(N)
@@ -11914,18 +11917,18 @@ const n0 = /* @__PURE__ */ we((e, r) => /* @__PURE__ */ Y(Le.span, ye({}, e, {
11914
11917
  )), n == null || n(N);
11915
11918
  },
11916
11919
  defaultProp: s
11917
- }), T = le(() => {
11920
+ }), T = ie(() => {
11918
11921
  window.clearTimeout(E.current), E.current = window.setTimeout(
11919
11922
  () => O(""),
11920
11923
  150
11921
11924
  );
11922
11925
  }, [
11923
11926
  O
11924
- ]), D = le((N) => {
11927
+ ]), D = ie((N) => {
11925
11928
  window.clearTimeout(E.current), O(N);
11926
11929
  }, [
11927
11930
  O
11928
- ]), L = le((N) => {
11931
+ ]), L = ie((N) => {
11929
11932
  I === N ? window.clearTimeout(E.current) : h.current = window.setTimeout(() => {
11930
11933
  window.clearTimeout(E.current), O(N);
11931
11934
  }, i);
@@ -11934,7 +11937,7 @@ const n0 = /* @__PURE__ */ we((e, r) => /* @__PURE__ */ Y(Le.span, ye({}, e, {
11934
11937
  O,
11935
11938
  i
11936
11939
  ]);
11937
- return ie(() => () => {
11940
+ return le(() => () => {
11938
11941
  window.clearTimeout(h.current), window.clearTimeout(E.current), window.clearTimeout(k.current);
11939
11942
  }, []), /* @__PURE__ */ Y(p0, {
11940
11943
  scope: t,
@@ -11957,7 +11960,7 @@ const n0 = /* @__PURE__ */ we((e, r) => /* @__PURE__ */ Y(Le.span, ye({}, e, {
11957
11960
  );
11958
11961
  },
11959
11962
  onItemDismiss: () => O("")
11960
- }, /* @__PURE__ */ Y(Le.nav, ye({
11963
+ }, /* @__PURE__ */ Y(Le.nav, we({
11961
11964
  "aria-label": "Main",
11962
11965
  "data-orientation": d,
11963
11966
  dir: y
@@ -11985,10 +11988,10 @@ const n0 = /* @__PURE__ */ we((e, r) => /* @__PURE__ */ Y(Le.span, ye({}, e, {
11985
11988
  onContentLeave: Ie(b),
11986
11989
  onItemSelect: Ie(d),
11987
11990
  onItemDismiss: Ie(p),
11988
- onViewportContentChange: le((I, O) => {
11991
+ onViewportContentChange: ie((I, O) => {
11989
11992
  k((T) => (T.set(I, O), new Map(T)));
11990
11993
  }, []),
11991
- onViewportContentRemove: le((I) => {
11994
+ onViewportContentRemove: ie((I) => {
11992
11995
  k((O) => O.has(I) ? (O.delete(I), new Map(O)) : O);
11993
11996
  }, [])
11994
11997
  }, /* @__PURE__ */ Y(Co.Provider, {
@@ -11997,8 +12000,8 @@ const n0 = /* @__PURE__ */ we((e, r) => /* @__PURE__ */ Y(Le.span, ye({}, e, {
11997
12000
  scope: r,
11998
12001
  items: E
11999
12002
  }, i)));
12000
- }, b0 = "NavigationMenuList", g0 = /* @__PURE__ */ we((e, r) => {
12001
- const { __scopeNavigationMenu: t, ...o } = e, n = Fe(b0, t), s = /* @__PURE__ */ Y(Le.ul, ye({
12003
+ }, b0 = "NavigationMenuList", g0 = /* @__PURE__ */ $e((e, r) => {
12004
+ const { __scopeNavigationMenu: t, ...o } = e, n = Fe(b0, t), s = /* @__PURE__ */ Y(Le.ul, we({
12002
12005
  "data-orientation": n.orientation
12003
12006
  }, o, {
12004
12007
  ref: r
@@ -12013,15 +12016,15 @@ const n0 = /* @__PURE__ */ we((e, r) => /* @__PURE__ */ Y(Le.span, ye({}, e, {
12013
12016
  }, n.isRootMenu ? /* @__PURE__ */ Y(as, {
12014
12017
  asChild: !0
12015
12018
  }, s) : s));
12016
- }), v0 = "NavigationMenuItem", [$0, rs] = Eo(v0), y0 = /* @__PURE__ */ we((e, r) => {
12019
+ }), v0 = "NavigationMenuItem", [$0, rs] = Eo(v0), y0 = /* @__PURE__ */ $e((e, r) => {
12017
12020
  const { __scopeNavigationMenu: t, value: o, ...n } = e, s = Za(), i = o || s || "LEGACY_REACT_AUTO_VALUE", l = U(null), d = U(null), p = U(null), f = U(() => {
12018
- }), v = U(!1), x = le((y = "start") => {
12021
+ }), v = U(!1), x = ie((y = "start") => {
12019
12022
  if (l.current) {
12020
12023
  f.current();
12021
12024
  const h = io(l.current);
12022
12025
  h.length && So(y === "start" ? h : h.reverse());
12023
12026
  }
12024
- }, []), b = le(() => {
12027
+ }, []), b = ie(() => {
12025
12028
  if (l.current) {
12026
12029
  const y = io(l.current);
12027
12030
  y.length && (f.current = O0(y));
@@ -12038,17 +12041,17 @@ const n0 = /* @__PURE__ */ we((e, r) => /* @__PURE__ */ Y(Le.span, ye({}, e, {
12038
12041
  onFocusProxyEnter: x,
12039
12042
  onRootContentClose: b,
12040
12043
  onContentFocusOutside: b
12041
- }, /* @__PURE__ */ Y(Le.li, ye({}, n, {
12044
+ }, /* @__PURE__ */ Y(Le.li, we({}, n, {
12042
12045
  ref: r
12043
12046
  })));
12044
- }), jn = "NavigationMenuTrigger", w0 = /* @__PURE__ */ we((e, r) => {
12047
+ }), jn = "NavigationMenuTrigger", w0 = /* @__PURE__ */ $e((e, r) => {
12045
12048
  const { __scopeNavigationMenu: t, disabled: o, ...n } = e, s = Fe(jn, e.__scopeNavigationMenu), i = rs(jn, e.__scopeNavigationMenu), l = U(null), d = Ye(l, i.triggerRef, r), p = is(s.baseId, i.value), f = ls(s.baseId, i.value), v = U(!1), x = U(!1), b = i.value === s.value;
12046
12049
  return /* @__PURE__ */ Y(Nt, null, /* @__PURE__ */ Y(Co.ItemSlot, {
12047
12050
  scope: t,
12048
12051
  value: i.value
12049
12052
  }, /* @__PURE__ */ Y(ss, {
12050
12053
  asChild: !0
12051
- }, /* @__PURE__ */ Y(Le.button, ye({
12054
+ }, /* @__PURE__ */ Y(Le.button, we({
12052
12055
  id: p,
12053
12056
  disabled: o,
12054
12057
  "data-disabled": o ? "" : void 0,
@@ -12087,11 +12090,11 @@ const n0 = /* @__PURE__ */ we((e, r) => /* @__PURE__ */ Y(Le.span, ye({}, e, {
12087
12090
  }), s.viewport && /* @__PURE__ */ Y("span", {
12088
12091
  "aria-owns": f
12089
12092
  })));
12090
- }), Vn = "navigationMenu.linkSelect", x0 = /* @__PURE__ */ we((e, r) => {
12093
+ }), Vn = "navigationMenu.linkSelect", x0 = /* @__PURE__ */ $e((e, r) => {
12091
12094
  const { __scopeNavigationMenu: t, active: o, onSelect: n, ...s } = e;
12092
12095
  return /* @__PURE__ */ Y(ss, {
12093
12096
  asChild: !0
12094
- }, /* @__PURE__ */ Y(Le.a, ye({
12097
+ }, /* @__PURE__ */ Y(Le.a, we({
12095
12098
  "data-active": o ? "" : void 0,
12096
12099
  "aria-current": o ? "page" : void 0
12097
12100
  }, s, {
@@ -12118,16 +12121,16 @@ const n0 = /* @__PURE__ */ we((e, r) => /* @__PURE__ */ Y(Le.span, ye({}, e, {
12118
12121
  checkForDefaultPrevented: !1
12119
12122
  })
12120
12123
  })));
12121
- }), ts = "NavigationMenuIndicator", m0 = /* @__PURE__ */ we((e, r) => {
12124
+ }), ts = "NavigationMenuIndicator", m0 = /* @__PURE__ */ $e((e, r) => {
12122
12125
  const { forceMount: t, ...o } = e, n = Fe(ts, e.__scopeNavigationMenu), s = !!n.value;
12123
12126
  return n.indicatorTrack ? /* @__PURE__ */ na.createPortal(/* @__PURE__ */ Y(Nr, {
12124
12127
  present: t || s
12125
- }, /* @__PURE__ */ Y(h0, ye({}, o, {
12128
+ }, /* @__PURE__ */ Y(h0, we({}, o, {
12126
12129
  ref: r
12127
12130
  }))), n.indicatorTrack) : null;
12128
- }), h0 = /* @__PURE__ */ we((e, r) => {
12131
+ }), h0 = /* @__PURE__ */ $e((e, r) => {
12129
12132
  const { __scopeNavigationMenu: t, ...o } = e, n = Fe(ts, t), s = es(t), [i, l] = fe(null), [d, p] = fe(null), f = n.orientation === "horizontal", v = !!n.value;
12130
- ie(() => {
12133
+ le(() => {
12131
12134
  var b;
12132
12135
  const h = (b = s().find(
12133
12136
  (E) => E.value === n.value
@@ -12143,7 +12146,7 @@ const n0 = /* @__PURE__ */ we((e, r) => /* @__PURE__ */ Y(Le.span, ye({}, e, {
12143
12146
  offset: f ? i.offsetLeft : i.offsetTop
12144
12147
  });
12145
12148
  };
12146
- return lo(i, x), lo(n.indicatorTrack, x), d ? /* @__PURE__ */ Y(Le.div, ye({
12149
+ return lo(i, x), lo(n.indicatorTrack, x), d ? /* @__PURE__ */ Y(Le.div, we({
12147
12150
  "aria-hidden": !0,
12148
12151
  "data-state": v ? "visible" : "hidden",
12149
12152
  "data-orientation": n.orientation
@@ -12163,7 +12166,7 @@ const n0 = /* @__PURE__ */ we((e, r) => /* @__PURE__ */ Y(Le.span, ye({}, e, {
12163
12166
  ...o.style
12164
12167
  }
12165
12168
  })) : null;
12166
- }), Mr = "NavigationMenuContent", C0 = /* @__PURE__ */ we((e, r) => {
12169
+ }), Mr = "NavigationMenuContent", C0 = /* @__PURE__ */ $e((e, r) => {
12167
12170
  const { forceMount: t, ...o } = e, n = Fe(Mr, e.__scopeNavigationMenu), s = rs(Mr, e.__scopeNavigationMenu), i = Ye(s.contentRef, r), l = s.value === n.value, d = {
12168
12171
  value: s.value,
12169
12172
  triggerRef: s.triggerRef,
@@ -12173,13 +12176,13 @@ const n0 = /* @__PURE__ */ we((e, r) => /* @__PURE__ */ Y(Le.span, ye({}, e, {
12173
12176
  onRootContentClose: s.onRootContentClose,
12174
12177
  ...o
12175
12178
  };
12176
- return n.viewport ? /* @__PURE__ */ Y(E0, ye({
12179
+ return n.viewport ? /* @__PURE__ */ Y(E0, we({
12177
12180
  forceMount: t
12178
12181
  }, d, {
12179
12182
  ref: i
12180
12183
  })) : /* @__PURE__ */ Y(Nr, {
12181
12184
  present: t || l
12182
- }, /* @__PURE__ */ Y(os, ye({
12185
+ }, /* @__PURE__ */ Y(os, we({
12183
12186
  "data-state": ko(l)
12184
12187
  }, d, {
12185
12188
  ref: i,
@@ -12191,9 +12194,9 @@ const n0 = /* @__PURE__ */ we((e, r) => /* @__PURE__ */ Y(Le.span, ye({}, e, {
12191
12194
  ...d.style
12192
12195
  }
12193
12196
  })));
12194
- }), E0 = /* @__PURE__ */ we((e, r) => {
12197
+ }), E0 = /* @__PURE__ */ $e((e, r) => {
12195
12198
  const t = Fe(Mr, e.__scopeNavigationMenu), { onViewportContentChange: o, onViewportContentRemove: n } = t;
12196
- return $r(() => {
12199
+ return yr(() => {
12197
12200
  o(e.value, {
12198
12201
  ref: r,
12199
12202
  ...e
@@ -12202,13 +12205,13 @@ const n0 = /* @__PURE__ */ we((e, r) => /* @__PURE__ */ Y(Le.span, ye({}, e, {
12202
12205
  e,
12203
12206
  r,
12204
12207
  o
12205
- ]), $r(() => () => n(e.value), [
12208
+ ]), yr(() => () => n(e.value), [
12206
12209
  e.value,
12207
12210
  n
12208
12211
  ]), null;
12209
- }), tt = "navigationMenu.rootContentDismiss", os = /* @__PURE__ */ we((e, r) => {
12212
+ }), tt = "navigationMenu.rootContentDismiss", os = /* @__PURE__ */ $e((e, r) => {
12210
12213
  const { __scopeNavigationMenu: t, value: o, triggerRef: n, focusProxyRef: s, wasEscapeCloseRef: i, onRootContentClose: l, onContentFocusOutside: d, ...p } = e, f = Fe(Mr, t), v = U(null), x = Ye(v, r), b = is(f.baseId, o), y = ls(f.baseId, o), h = es(t), E = U(null), { onItemDismiss: k } = f;
12211
- ie(() => {
12214
+ le(() => {
12212
12215
  const M = v.current;
12213
12216
  if (f.isRootMenu && M) {
12214
12217
  const I = () => {
@@ -12251,7 +12254,7 @@ const n0 = /* @__PURE__ */ we((e, r) => /* @__PURE__ */ Y(Le.span, ye({}, e, {
12251
12254
  ]);
12252
12255
  return /* @__PURE__ */ Y(as, {
12253
12256
  asChild: !0
12254
- }, /* @__PURE__ */ Y(e0, ye({
12257
+ }, /* @__PURE__ */ Y(e0, we({
12255
12258
  id: y,
12256
12259
  "aria-labelledby": b,
12257
12260
  "data-motion": R,
@@ -12298,21 +12301,21 @@ const n0 = /* @__PURE__ */ we((e, r) => /* @__PURE__ */ Y(Le.span, ye({}, e, {
12298
12301
  i.current = !0;
12299
12302
  })
12300
12303
  })));
12301
- }), ns = "NavigationMenuViewport", S0 = /* @__PURE__ */ we((e, r) => {
12304
+ }), ns = "NavigationMenuViewport", S0 = /* @__PURE__ */ $e((e, r) => {
12302
12305
  const { forceMount: t, ...o } = e, s = !!Fe(ns, e.__scopeNavigationMenu).value;
12303
12306
  return /* @__PURE__ */ Y(Nr, {
12304
12307
  present: t || s
12305
- }, /* @__PURE__ */ Y(k0, ye({}, o, {
12308
+ }, /* @__PURE__ */ Y(k0, we({}, o, {
12306
12309
  ref: r
12307
12310
  })));
12308
- }), k0 = /* @__PURE__ */ we((e, r) => {
12311
+ }), k0 = /* @__PURE__ */ $e((e, r) => {
12309
12312
  const { __scopeNavigationMenu: t, children: o, ...n } = e, s = Fe(ns, t), i = Ye(r, s.onViewportChange), l = u0(Mr, e.__scopeNavigationMenu), [d, p] = fe(null), [f, v] = fe(null), x = d ? (d == null ? void 0 : d.width) + "px" : void 0, b = d ? (d == null ? void 0 : d.height) + "px" : void 0, y = !!s.value, h = y ? s.value : s.previousValue;
12310
12313
  return lo(f, () => {
12311
12314
  f && p({
12312
12315
  width: f.offsetWidth,
12313
12316
  height: f.offsetHeight
12314
12317
  });
12315
- }), /* @__PURE__ */ Y(Le.div, ye({
12318
+ }), /* @__PURE__ */ Y(Le.div, we({
12316
12319
  "data-state": ko(y),
12317
12320
  "data-orientation": s.orientation
12318
12321
  }, n, {
@@ -12331,19 +12334,19 @@ const n0 = /* @__PURE__ */ we((e, r) => /* @__PURE__ */ Y(Le.span, ye({}, e, {
12331
12334
  return /* @__PURE__ */ Y(Nr, {
12332
12335
  key: k,
12333
12336
  present: M || O
12334
- }, /* @__PURE__ */ Y(os, ye({}, I, {
12337
+ }, /* @__PURE__ */ Y(os, we({}, I, {
12335
12338
  ref: ho(R, (T) => {
12336
12339
  O && T && v(T);
12337
12340
  })
12338
12341
  })));
12339
12342
  }));
12340
- }), T0 = "FocusGroup", as = /* @__PURE__ */ we((e, r) => {
12343
+ }), T0 = "FocusGroup", as = /* @__PURE__ */ $e((e, r) => {
12341
12344
  const { __scopeNavigationMenu: t, ...o } = e, n = Fe(T0, t);
12342
12345
  return /* @__PURE__ */ Y(so.Provider, {
12343
12346
  scope: t
12344
12347
  }, /* @__PURE__ */ Y(so.Slot, {
12345
12348
  scope: t
12346
- }, /* @__PURE__ */ Y(Le.div, ye({
12349
+ }, /* @__PURE__ */ Y(Le.div, we({
12347
12350
  dir: n.dir
12348
12351
  }, o, {
12349
12352
  ref: r
@@ -12353,11 +12356,11 @@ const n0 = /* @__PURE__ */ we((e, r) => /* @__PURE__ */ Y(Le.span, ye({}, e, {
12353
12356
  "ArrowLeft",
12354
12357
  "ArrowUp",
12355
12358
  "ArrowDown"
12356
- ], P0 = "FocusGroupItem", ss = /* @__PURE__ */ we((e, r) => {
12359
+ ], P0 = "FocusGroupItem", ss = /* @__PURE__ */ $e((e, r) => {
12357
12360
  const { __scopeNavigationMenu: t, ...o } = e, n = i0(t), s = Fe(P0, t);
12358
12361
  return /* @__PURE__ */ Y(so.ItemSlot, {
12359
12362
  scope: t
12360
- }, /* @__PURE__ */ Y(Le.button, ye({}, o, {
12363
+ }, /* @__PURE__ */ Y(Le.button, we({}, o, {
12361
12364
  ref: r,
12362
12365
  onKeyDown: Ee(e.onKeyDown, (i) => {
12363
12366
  if ([
@@ -12410,7 +12413,7 @@ function O0(e) {
12410
12413
  }
12411
12414
  function lo(e, r) {
12412
12415
  const t = Ie(r);
12413
- $r(() => {
12416
+ yr(() => {
12414
12417
  let o = 0;
12415
12418
  if (e) {
12416
12419
  const n = new ResizeObserver(() => {
@@ -12814,7 +12817,7 @@ function uo({
12814
12817
  uo.defaultProps = {
12815
12818
  className: void 0
12816
12819
  };
12817
- const ze = we(
12820
+ const ze = $e(
12818
12821
  ({ className: e, children: r, title: t, ...o }, n) => /* @__PURE__ */ g("li", { children: /* @__PURE__ */ g(co, { asChild: !0, children: /* @__PURE__ */ Q(
12819
12822
  X0,
12820
12823
  {