@parasutcom/fds 0.1.34 → 0.1.36

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.
Files changed (2) hide show
  1. package/dist/index.js +579 -577
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as x, jsxs as oe, Fragment as ln } from "react/jsx-runtime";
2
2
  import * as u from "react";
3
- import ae, { createElement as Gh, useLayoutEffect as Rw, createContext as Ow, useContext as Pw, useCallback as at, useRef as Un, useState as Dt, useEffect as Ns, useMemo as At, isValidElement as Z0, PureComponent as Ts, forwardRef as Q0, useImperativeHandle as J0, cloneElement as eP, Fragment as tP, Children as nP } from "react";
3
+ import ae, { createElement as Gh, useLayoutEffect as Rw, createContext as Ow, useContext as Pw, useCallback as at, useRef as Mn, useState as Dt, useEffect as Ns, useMemo as At, isValidElement as Z0, PureComponent as Ts, forwardRef as Q0, useImperativeHandle as J0, cloneElement as eP, Fragment as tP, Children as nP } from "react";
4
4
  import * as Ot from "react-dom";
5
5
  import rP from "react-dom";
6
6
  import { ChevronRightIcon as Bi, MoreHorizontalIcon as Mw, ChevronLeftIcon as Cp, ChevronDownIcon as ks, MinusIcon as Nw, CheckIcon as Ho, XIcon as zi, SearchIcon as oP, CircleIcon as iP, ChevronUpIcon as aP, PanelLeftIcon as sP, Loader2Icon as Tw, OctagonXIcon as lP, TriangleAlertIcon as cP, InfoIcon as br, CircleCheckIcon as uP, TriangleAlert as Ep, Search as kw, MoreHorizontal as dP, ArrowDown as fP, ArrowUp as pP, ArrowUpDown as mP, Settings2 as hP, AlertTriangle as gP, PlusCircle as bP, X as Sp, ChevronDown as vP, CalendarIcon as yP, FilterIcon as xP } from "lucide-react";
@@ -323,7 +323,7 @@ const Kh = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Xh = Yn, L
323
323
  }, YP = [], Et = (e) => {
324
324
  const t = (n) => n[e] || YP;
325
325
  return t.isThemeGetter = !0, t;
326
- }, Fw = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Lw = /^\((?:(\w[\w-]*):)?(.+)\)$/i, KP = /^\d+\/\d+$/, XP = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ZP = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, QP = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, JP = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, eM = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, po = (e) => KP.test(e), qe = (e) => !!e && !Number.isNaN(Number(e)), rr = (e) => !!e && Number.isInteger(Number(e)), ql = (e) => e.endsWith("%") && qe(e.slice(0, -1)), Wn = (e) => XP.test(e), tM = () => !0, nM = (e) => (
326
+ }, Fw = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Lw = /^\((?:(\w[\w-]*):)?(.+)\)$/i, KP = /^\d+\/\d+$/, XP = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ZP = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, QP = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, JP = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, eM = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, po = (e) => KP.test(e), qe = (e) => !!e && !Number.isNaN(Number(e)), rr = (e) => !!e && Number.isInteger(Number(e)), ql = (e) => e.endsWith("%") && qe(e.slice(0, -1)), qn = (e) => XP.test(e), tM = () => !0, nM = (e) => (
327
327
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
328
328
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
329
329
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
@@ -355,13 +355,13 @@ const Kh = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Xh = Yn, L
355
355
  "left-bottom"
356
356
  ], w = () => [...E(), Se, Ee], S = () => ["auto", "hidden", "clip", "visible", "scroll"], R = () => ["auto", "contain", "none"], O = () => [Se, Ee, l], P = () => [po, "full", "auto", ...O()], D = () => [rr, "none", "subgrid", Se, Ee], T = () => ["auto", {
357
357
  span: ["full", rr, Se, Ee]
358
- }, rr, Se, Ee], _ = () => [rr, "auto", Se, Ee], M = () => ["auto", "min", "max", "fr", Se, Ee], k = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], N = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], A = () => ["auto", ...O()], F = () => [po, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...O()], I = () => [e, Se, Ee], B = () => [...E(), tg, eg, {
358
+ }, rr, Se, Ee], _ = () => [rr, "auto", Se, Ee], M = () => ["auto", "min", "max", "fr", Se, Ee], k = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], N = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], A = () => ["auto", ...O()], F = () => [po, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...O()], I = () => [e, Se, Ee], z = () => [...E(), tg, eg, {
359
359
  position: [Se, Ee]
360
360
  }], $ = () => ["no-repeat", {
361
361
  repeat: ["", "x", "y", "space", "round"]
362
362
  }], W = () => ["auto", "cover", "contain", cM, aM, {
363
363
  size: [Se, Ee]
364
- }], V = () => [ql, li, Ir], z = () => [
364
+ }], V = () => [ql, li, Ir], B = () => [
365
365
  // Deprecated since Tailwind CSS v4.0.0
366
366
  "",
367
367
  "none",
@@ -382,22 +382,22 @@ const Kh = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Xh = Yn, L
382
382
  theme: {
383
383
  animate: ["spin", "ping", "pulse", "bounce"],
384
384
  aspect: ["video"],
385
- blur: [Wn],
386
- breakpoint: [Wn],
385
+ blur: [qn],
386
+ breakpoint: [qn],
387
387
  color: [tM],
388
- container: [Wn],
389
- "drop-shadow": [Wn],
388
+ container: [qn],
389
+ "drop-shadow": [qn],
390
390
  ease: ["in", "out", "in-out"],
391
391
  font: [iM],
392
392
  "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
393
- "inset-shadow": [Wn],
393
+ "inset-shadow": [qn],
394
394
  leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
395
395
  perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
396
- radius: [Wn],
397
- shadow: [Wn],
396
+ radius: [qn],
397
+ shadow: [qn],
398
398
  spacing: ["px", qe],
399
- text: [Wn],
400
- "text-shadow": [Wn],
399
+ text: [qn],
400
+ "text-shadow": [qn],
401
401
  tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
402
402
  },
403
403
  classGroups: {
@@ -1328,7 +1328,7 @@ const Kh = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Xh = Yn, L
1328
1328
  * @see https://tailwindcss.com/docs/background-position
1329
1329
  */
1330
1330
  "bg-position": [{
1331
- bg: B()
1331
+ bg: z()
1332
1332
  }],
1333
1333
  /**
1334
1334
  * Background Repeat
@@ -1414,105 +1414,105 @@ const Kh = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Xh = Yn, L
1414
1414
  * @see https://tailwindcss.com/docs/border-radius
1415
1415
  */
1416
1416
  rounded: [{
1417
- rounded: z()
1417
+ rounded: B()
1418
1418
  }],
1419
1419
  /**
1420
1420
  * Border Radius Start
1421
1421
  * @see https://tailwindcss.com/docs/border-radius
1422
1422
  */
1423
1423
  "rounded-s": [{
1424
- "rounded-s": z()
1424
+ "rounded-s": B()
1425
1425
  }],
1426
1426
  /**
1427
1427
  * Border Radius End
1428
1428
  * @see https://tailwindcss.com/docs/border-radius
1429
1429
  */
1430
1430
  "rounded-e": [{
1431
- "rounded-e": z()
1431
+ "rounded-e": B()
1432
1432
  }],
1433
1433
  /**
1434
1434
  * Border Radius Top
1435
1435
  * @see https://tailwindcss.com/docs/border-radius
1436
1436
  */
1437
1437
  "rounded-t": [{
1438
- "rounded-t": z()
1438
+ "rounded-t": B()
1439
1439
  }],
1440
1440
  /**
1441
1441
  * Border Radius Right
1442
1442
  * @see https://tailwindcss.com/docs/border-radius
1443
1443
  */
1444
1444
  "rounded-r": [{
1445
- "rounded-r": z()
1445
+ "rounded-r": B()
1446
1446
  }],
1447
1447
  /**
1448
1448
  * Border Radius Bottom
1449
1449
  * @see https://tailwindcss.com/docs/border-radius
1450
1450
  */
1451
1451
  "rounded-b": [{
1452
- "rounded-b": z()
1452
+ "rounded-b": B()
1453
1453
  }],
1454
1454
  /**
1455
1455
  * Border Radius Left
1456
1456
  * @see https://tailwindcss.com/docs/border-radius
1457
1457
  */
1458
1458
  "rounded-l": [{
1459
- "rounded-l": z()
1459
+ "rounded-l": B()
1460
1460
  }],
1461
1461
  /**
1462
1462
  * Border Radius Start Start
1463
1463
  * @see https://tailwindcss.com/docs/border-radius
1464
1464
  */
1465
1465
  "rounded-ss": [{
1466
- "rounded-ss": z()
1466
+ "rounded-ss": B()
1467
1467
  }],
1468
1468
  /**
1469
1469
  * Border Radius Start End
1470
1470
  * @see https://tailwindcss.com/docs/border-radius
1471
1471
  */
1472
1472
  "rounded-se": [{
1473
- "rounded-se": z()
1473
+ "rounded-se": B()
1474
1474
  }],
1475
1475
  /**
1476
1476
  * Border Radius End End
1477
1477
  * @see https://tailwindcss.com/docs/border-radius
1478
1478
  */
1479
1479
  "rounded-ee": [{
1480
- "rounded-ee": z()
1480
+ "rounded-ee": B()
1481
1481
  }],
1482
1482
  /**
1483
1483
  * Border Radius End Start
1484
1484
  * @see https://tailwindcss.com/docs/border-radius
1485
1485
  */
1486
1486
  "rounded-es": [{
1487
- "rounded-es": z()
1487
+ "rounded-es": B()
1488
1488
  }],
1489
1489
  /**
1490
1490
  * Border Radius Top Left
1491
1491
  * @see https://tailwindcss.com/docs/border-radius
1492
1492
  */
1493
1493
  "rounded-tl": [{
1494
- "rounded-tl": z()
1494
+ "rounded-tl": B()
1495
1495
  }],
1496
1496
  /**
1497
1497
  * Border Radius Top Right
1498
1498
  * @see https://tailwindcss.com/docs/border-radius
1499
1499
  */
1500
1500
  "rounded-tr": [{
1501
- "rounded-tr": z()
1501
+ "rounded-tr": B()
1502
1502
  }],
1503
1503
  /**
1504
1504
  * Border Radius Bottom Right
1505
1505
  * @see https://tailwindcss.com/docs/border-radius
1506
1506
  */
1507
1507
  "rounded-br": [{
1508
- "rounded-br": z()
1508
+ "rounded-br": B()
1509
1509
  }],
1510
1510
  /**
1511
1511
  * Border Radius Bottom Left
1512
1512
  * @see https://tailwindcss.com/docs/border-radius
1513
1513
  */
1514
1514
  "rounded-bl": [{
1515
- "rounded-bl": z()
1515
+ "rounded-bl": B()
1516
1516
  }],
1517
1517
  /**
1518
1518
  * Border Width
@@ -2005,7 +2005,7 @@ const Kh = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Xh = Yn, L
2005
2005
  * @see https://tailwindcss.com/docs/mask-position
2006
2006
  */
2007
2007
  "mask-position": [{
2008
- mask: B()
2008
+ mask: z()
2009
2009
  }],
2010
2010
  /**
2011
2011
  * Mask Repeat
@@ -2915,7 +2915,7 @@ function bt(e) {
2915
2915
  var t;
2916
2916
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
2917
2917
  }
2918
- function In(e) {
2918
+ function _n(e) {
2919
2919
  var t;
2920
2920
  return (t = (Op(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
2921
2921
  }
@@ -2961,13 +2961,13 @@ function Pp(e) {
2961
2961
  return EM.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || SM.some((r) => (n.willChange || "").includes(r)) || RM.some((r) => (n.contain || "").includes(r));
2962
2962
  }
2963
2963
  function OM(e) {
2964
- let t = Tn(e);
2965
- for (; st(t) && !Mn(t); ) {
2964
+ let t = kn(e);
2965
+ for (; st(t) && !Nn(t); ) {
2966
2966
  if (Pp(t))
2967
2967
  return t;
2968
2968
  if (_s(t))
2969
2969
  return null;
2970
- t = Tn(t);
2970
+ t = kn(t);
2971
2971
  }
2972
2972
  return null;
2973
2973
  }
@@ -2975,7 +2975,7 @@ function Ds() {
2975
2975
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
2976
2976
  }
2977
2977
  const PM = /* @__PURE__ */ new Set(["html", "body", "#document"]);
2978
- function Mn(e) {
2978
+ function Nn(e) {
2979
2979
  return PM.has(wr(e));
2980
2980
  }
2981
2981
  function qt(e) {
@@ -2990,7 +2990,7 @@ function As(e) {
2990
2990
  scrollTop: e.scrollY
2991
2991
  };
2992
2992
  }
2993
- function Tn(e) {
2993
+ function kn(e) {
2994
2994
  if (wr(e) === "html")
2995
2995
  return e;
2996
2996
  const t = (
@@ -2998,13 +2998,13 @@ function Tn(e) {
2998
2998
  e.assignedSlot || // DOM Element detected.
2999
2999
  e.parentNode || // ShadowRoot detected.
3000
3000
  _f(e) && e.host || // Fallback.
3001
- In(e)
3001
+ _n(e)
3002
3002
  );
3003
3003
  return _f(t) ? t.host : t;
3004
3004
  }
3005
3005
  function jw(e) {
3006
- const t = Tn(e);
3007
- return Mn(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : st(t) && Kr(t) ? t : jw(t);
3006
+ const t = kn(e);
3007
+ return Nn(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : st(t) && Kr(t) ? t : jw(t);
3008
3008
  }
3009
3009
  function ur(e, t, n) {
3010
3010
  var r;
@@ -3356,7 +3356,7 @@ function Ae(e, ...t) {
3356
3356
  const n = new URL(`https://base-ui.com/production-error/${e}`);
3357
3357
  return t.forEach((r) => n.searchParams.append("args[]", r)), `Base UI error #${e}; visit ${n} for the full message.`;
3358
3358
  }
3359
- const jM = ["top", "right", "bottom", "left"], Io = Math.min, Yt = Math.max, _o = Math.round, Co = Math.floor, Nn = (e) => ({
3359
+ const jM = ["top", "right", "bottom", "left"], Io = Math.min, Yt = Math.max, _o = Math.round, Co = Math.floor, Tn = (e) => ({
3360
3360
  x: e,
3361
3361
  y: e
3362
3362
  }), UM = {
@@ -3964,12 +3964,12 @@ const Ap = /* @__PURE__ */ u.createContext(null);
3964
3964
  process.env.NODE_ENV !== "production" && (Ap.displayName = "FloatingNodeContext");
3965
3965
  const Vp = /* @__PURE__ */ u.createContext(null);
3966
3966
  process.env.NODE_ENV !== "production" && (Vp.displayName = "FloatingTreeContext");
3967
- const _n = () => u.useContext(Ap)?.id || null, Er = (e) => {
3967
+ const Dn = () => u.useContext(Ap)?.id || null, Er = (e) => {
3968
3968
  const t = u.useContext(Vp);
3969
3969
  return e ?? t;
3970
3970
  };
3971
3971
  function Fp(e) {
3972
- const t = Qr(), n = Er(e), r = _n();
3972
+ const t = Qr(), n = Er(e), r = Dn();
3973
3973
  return se(() => {
3974
3974
  if (!t)
3975
3975
  return;
@@ -3986,7 +3986,7 @@ function xC(e) {
3986
3986
  const {
3987
3987
  children: t,
3988
3988
  id: n
3989
- } = e, r = _n();
3989
+ } = e, r = Dn();
3990
3990
  return /* @__PURE__ */ x(Ap.Provider, {
3991
3991
  value: u.useMemo(() => ({
3992
3992
  id: n,
@@ -4018,7 +4018,7 @@ const xN = 500, CC = 500, wN = {
4018
4018
  position: "fixed",
4019
4019
  top: 0,
4020
4020
  left: 0
4021
- }, dt = "none", sn = "trigger-press", Rt = "trigger-hover", Ri = "trigger-focus", $p = "outside-press", mr = "item-press", EN = "close-press", hg = "clear-press", gg = "chip-remove-press", Fr = "input-change", sr = "input-clear", kn = "focus-out", Yo = "escape-key", Ro = "list-navigation", EC = "cancel-open", gi = "sibling-open", SN = "disabled", Ls = "imperative-action", RN = "window-resize";
4021
+ }, dt = "none", sn = "trigger-press", Rt = "trigger-hover", Ri = "trigger-focus", $p = "outside-press", mr = "item-press", EN = "close-press", hg = "clear-press", gg = "chip-remove-press", Fr = "input-change", sr = "input-clear", In = "focus-out", Yo = "escape-key", Ro = "list-navigation", EC = "cancel-open", gi = "sibling-open", SN = "disabled", Ls = "imperative-action", RN = "window-resize";
4022
4022
  function he(e, t, n, r) {
4023
4023
  let o = !1, i = !1;
4024
4024
  const a = r ?? lt;
@@ -4559,7 +4559,7 @@ const Ko = /* @__PURE__ */ u.forwardRef(function(t, n) {
4559
4559
  v.current?.focus();
4560
4560
  else {
4561
4561
  const S = h ? h.domReference : null;
4562
- Fs(S)?.focus(), h?.closeOnFocusOut && h?.onOpenChange(!1, he(kn, w.nativeEvent));
4562
+ Fs(S)?.focus(), h?.closeOnFocusOut && h?.onOpenChange(!1, he(In, w.nativeEvent));
4563
4563
  }
4564
4564
  }
4565
4565
  })]
@@ -4623,7 +4623,7 @@ function Hi(e) {
4623
4623
  } = e, g = "rootStore" in t ? t.rootStore : t, y = g.useState("open"), b = g.useState("domReferenceElement"), C = g.useState("floatingElement"), {
4624
4624
  events: E,
4625
4625
  dataRef: w
4626
- } = g.context, S = le(() => w.current.floatingContext?.nodeId), R = le(f), O = i === !1, P = Vf(b) && O, D = gt(o), T = gt(i), _ = gt(a), M = gt(d), k = Er(h), N = NC(), A = u.useRef(null), F = u.useRef(null), I = u.useRef(!1), B = u.useRef(!1), $ = u.useRef(!1), W = u.useRef(-1), V = u.useRef(""), z = u.useRef(""), H = mt(), q = mt(), G = Zr(), U = N != null, Z = Ei(C), ie = le((J = Z) => J ? qi(J, Go()) : []), K = le((J) => {
4626
+ } = g.context, S = le(() => w.current.floatingContext?.nodeId), R = le(f), O = i === !1, P = Vf(b) && O, D = gt(o), T = gt(i), _ = gt(a), M = gt(d), k = Er(h), N = NC(), A = u.useRef(null), F = u.useRef(null), I = u.useRef(!1), z = u.useRef(!1), $ = u.useRef(!1), W = u.useRef(-1), V = u.useRef(""), B = u.useRef(""), H = mt(), q = mt(), G = Zr(), U = N != null, Z = Ei(C), ie = le((J = Z) => J ? qi(J, Go()) : []), K = le((J) => {
4627
4627
  const re = ie(J);
4628
4628
  return D.current.map(() => re).filter(Boolean).flat();
4629
4629
  });
@@ -4656,10 +4656,10 @@ function Hi(e) {
4656
4656
  }
4657
4657
  function xe(ye) {
4658
4658
  const ne = Ct(ye), me = Le(C, ne) || Le(b, ne) || Le(N?.portalNode, ne);
4659
- $.current = !me, z.current = ye.pointerType || "keyboard";
4659
+ $.current = !me, B.current = ye.pointerType || "keyboard";
4660
4660
  }
4661
4661
  function de() {
4662
- z.current = "keyboard";
4662
+ B.current = "keyboard";
4663
4663
  }
4664
4664
  return J.addEventListener("pointerdown", xe, !0), J.addEventListener("pointerup", re, !0), J.addEventListener("pointercancel", re, !0), J.addEventListener("keydown", de, !0), () => {
4665
4665
  J.removeEventListener("pointerdown", xe, !0), J.removeEventListener("pointerup", re, !0), J.removeEventListener("pointercancel", re, !0), J.removeEventListener("keydown", de, !0);
@@ -4668,8 +4668,8 @@ function Hi(e) {
4668
4668
  if (r || !c)
4669
4669
  return;
4670
4670
  function J() {
4671
- B.current = !0, q.start(0, () => {
4672
- B.current = !1;
4671
+ z.current = !0, q.start(0, () => {
4672
+ z.current = !1;
4673
4673
  });
4674
4674
  }
4675
4675
  function re(ne) {
@@ -4690,14 +4690,14 @@ function Hi(e) {
4690
4690
  w.current.insideReactTree = !1;
4691
4691
  return;
4692
4692
  }
4693
- (P || !l) && me && Ie && !B.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
4693
+ (P || !l) && me && Ie && !z.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
4694
4694
  // For an "untrapped" typeable combobox (input role=combobox with
4695
4695
  // initialFocus=false), re-opening the popup and tabbing out should still close it even
4696
4696
  // when the previously focused element (e.g. the next tabbable outside the popup) is
4697
4697
  // focused again. Otherwise, the popup remains open on the second Tab sequence:
4698
4698
  // click input -> Tab (closes) -> click input -> Tab.
4699
4699
  // Allow closing when `isUntrappedTypeableCombobox` regardless of the previously focused element.
4700
- (P || me !== Yl()) && (I.current = !0, g.setOpen(!1, he(kn, ne)));
4700
+ (P || me !== Yl()) && (I.current = !0, g.setOpen(!1, he(In, ne)));
4701
4701
  });
4702
4702
  }
4703
4703
  function xe() {
@@ -4746,7 +4746,7 @@ function Hi(e) {
4746
4746
  const J = vt(Z), re = mn(J);
4747
4747
  YN(re);
4748
4748
  function xe(ne) {
4749
- if (ne.open || (V.current = GN(ne.nativeEvent, z.current)), ne.reason === Rt && ne.nativeEvent.type === "mouseleave" && (I.current = !0), ne.reason === $p)
4749
+ if (ne.open || (V.current = GN(ne.nativeEvent, B.current)), ne.reason === Rt && ne.nativeEvent.type === "mouseleave" && (I.current = !0), ne.reason === $p)
4750
4750
  if (ne.nested)
4751
4751
  I.current = !1;
4752
4752
  else if (Jw(ne.nativeEvent) || eC(ne.nativeEvent))
@@ -4797,7 +4797,7 @@ function Hi(e) {
4797
4797
  if (r || !y)
4798
4798
  return;
4799
4799
  function J(xe) {
4800
- Ct(xe)?.closest(`[${Lp}]`) && (B.current = !0);
4800
+ Ct(xe)?.closest(`[${Lp}]`) && (z.current = !0);
4801
4801
  }
4802
4802
  const re = vt(Z);
4803
4803
  return re.addEventListener("pointerdown", J, !0), () => {
@@ -5189,13 +5189,13 @@ const eT = function(e) {
5189
5189
  var M;
5190
5190
  const F = (M = D.filter((I) => {
5191
5191
  if (S) {
5192
- const B = an(I.placement);
5193
- return B === b || // Create a bias to the `y` side axis due to horizontal
5192
+ const z = an(I.placement);
5193
+ return z === b || // Create a bias to the `y` side axis due to horizontal
5194
5194
  // reading directions favoring greater width.
5195
- B === "y";
5195
+ z === "y";
5196
5196
  }
5197
5197
  return !0;
5198
- }).map((I) => [I.placement, I.overflows.filter((B) => B > 0).reduce((B, $) => B + $, 0)]).sort((I, B) => I[1] - B[1])[0]) == null ? void 0 : M[0];
5198
+ }).map((I) => [I.placement, I.overflows.filter((z) => z > 0).reduce((z, $) => z + $, 0)]).sort((I, z) => I[1] - z[1])[0]) == null ? void 0 : M[0];
5199
5199
  F && (A = F);
5200
5200
  break;
5201
5201
  }
@@ -5471,7 +5471,7 @@ function Up(e) {
5471
5471
  function Po(e) {
5472
5472
  const t = Up(e);
5473
5473
  if (!st(t))
5474
- return Nn(1);
5474
+ return Tn(1);
5475
5475
  const n = t.getBoundingClientRect(), {
5476
5476
  width: r,
5477
5477
  height: o,
@@ -5483,7 +5483,7 @@ function Po(e) {
5483
5483
  y: s
5484
5484
  };
5485
5485
  }
5486
- const sT = /* @__PURE__ */ Nn(0);
5486
+ const sT = /* @__PURE__ */ Tn(0);
5487
5487
  function _C(e) {
5488
5488
  const t = bt(e);
5489
5489
  return !Ds() || !t.visualViewport ? sT : {
@@ -5497,9 +5497,9 @@ function lT(e, t, n) {
5497
5497
  function Ur(e, t, n, r) {
5498
5498
  t === void 0 && (t = !1), n === void 0 && (n = !1);
5499
5499
  const o = e.getBoundingClientRect(), i = Up(e);
5500
- let a = Nn(1);
5500
+ let a = Tn(1);
5501
5501
  t && (r ? Je(r) && (a = Po(r)) : a = Po(e));
5502
- const s = lT(i, n, r) ? _C(i) : Nn(0);
5502
+ const s = lT(i, n, r) ? _C(i) : Tn(0);
5503
5503
  let l = (o.left + s.x) / a.x, c = (o.top + s.y) / a.y, d = o.width / a.x, f = o.height / a.y;
5504
5504
  if (i) {
5505
5505
  const p = bt(i), m = r && Je(r) ? bt(r) : r;
@@ -5518,7 +5518,7 @@ function Ur(e, t, n, r) {
5518
5518
  }
5519
5519
  function Bs(e, t) {
5520
5520
  const n = As(e).scrollLeft;
5521
- return t ? t.left + n : Ur(In(e)).left + n;
5521
+ return t ? t.left + n : Ur(_n(e)).left + n;
5522
5522
  }
5523
5523
  function DC(e, t) {
5524
5524
  const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft - Bs(e, n), o = n.top + t.scrollTop;
@@ -5534,19 +5534,19 @@ function cT(e) {
5534
5534
  offsetParent: r,
5535
5535
  strategy: o
5536
5536
  } = e;
5537
- const i = o === "fixed", a = In(r), s = t ? _s(t.floating) : !1;
5537
+ const i = o === "fixed", a = _n(r), s = t ? _s(t.floating) : !1;
5538
5538
  if (r === a || s && i)
5539
5539
  return n;
5540
5540
  let l = {
5541
5541
  scrollLeft: 0,
5542
5542
  scrollTop: 0
5543
- }, c = Nn(1);
5544
- const d = Nn(0), f = st(r);
5543
+ }, c = Tn(1);
5544
+ const d = Tn(0), f = st(r);
5545
5545
  if ((f || !f && !i) && ((wr(r) !== "body" || Kr(a)) && (l = As(r)), st(r))) {
5546
5546
  const m = Ur(r);
5547
5547
  c = Po(r), d.x = m.x + r.clientLeft, d.y = m.y + r.clientTop;
5548
5548
  }
5549
- const p = a && !f && !i ? DC(a, l) : Nn(0);
5549
+ const p = a && !f && !i ? DC(a, l) : Tn(0);
5550
5550
  return {
5551
5551
  width: n.width * c.x,
5552
5552
  height: n.height * c.y,
@@ -5558,7 +5558,7 @@ function uT(e) {
5558
5558
  return Array.from(e.getClientRects());
5559
5559
  }
5560
5560
  function dT(e) {
5561
- const t = In(e), n = As(e), r = e.ownerDocument.body, o = Yt(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = Yt(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
5561
+ const t = _n(e), n = As(e), r = e.ownerDocument.body, o = Yt(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = Yt(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
5562
5562
  let a = -n.scrollLeft + Bs(e);
5563
5563
  const s = -n.scrollTop;
5564
5564
  return qt(r).direction === "rtl" && (a += Yt(t.clientWidth, r.clientWidth) - o), {
@@ -5570,7 +5570,7 @@ function dT(e) {
5570
5570
  }
5571
5571
  const Og = 25;
5572
5572
  function fT(e, t) {
5573
- const n = bt(e), r = In(e), o = n.visualViewport;
5573
+ const n = bt(e), r = _n(e), o = n.visualViewport;
5574
5574
  let i = r.clientWidth, a = r.clientHeight, s = 0, l = 0;
5575
5575
  if (o) {
5576
5576
  i = o.width, a = o.height;
@@ -5591,7 +5591,7 @@ function fT(e, t) {
5591
5591
  }
5592
5592
  const pT = /* @__PURE__ */ new Set(["absolute", "fixed"]);
5593
5593
  function mT(e, t) {
5594
- const n = Ur(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = st(e) ? Po(e) : Nn(1), a = e.clientWidth * i.x, s = e.clientHeight * i.y, l = o * i.x, c = r * i.y;
5594
+ const n = Ur(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = st(e) ? Po(e) : Tn(1), a = e.clientWidth * i.x, s = e.clientHeight * i.y, l = o * i.x, c = r * i.y;
5595
5595
  return {
5596
5596
  width: a,
5597
5597
  height: s,
@@ -5604,7 +5604,7 @@ function Pg(e, t, n) {
5604
5604
  if (t === "viewport")
5605
5605
  r = fT(e, n);
5606
5606
  else if (t === "document")
5607
- r = dT(In(e));
5607
+ r = dT(_n(e));
5608
5608
  else if (Je(t))
5609
5609
  r = mT(t, n);
5610
5610
  else {
@@ -5619,8 +5619,8 @@ function Pg(e, t, n) {
5619
5619
  return ss(r);
5620
5620
  }
5621
5621
  function AC(e, t) {
5622
- const n = Tn(e);
5623
- return n === t || !Je(n) || Mn(n) ? !1 : qt(n).position === "fixed" || AC(n, t);
5622
+ const n = kn(e);
5623
+ return n === t || !Je(n) || Nn(n) ? !1 : qt(n).position === "fixed" || AC(n, t);
5624
5624
  }
5625
5625
  function hT(e, t) {
5626
5626
  const n = t.get(e);
@@ -5628,10 +5628,10 @@ function hT(e, t) {
5628
5628
  return n;
5629
5629
  let r = ur(e, [], !1).filter((s) => Je(s) && wr(s) !== "body"), o = null;
5630
5630
  const i = qt(e).position === "fixed";
5631
- let a = i ? Tn(e) : e;
5632
- for (; Je(a) && !Mn(a); ) {
5631
+ let a = i ? kn(e) : e;
5632
+ for (; Je(a) && !Nn(a); ) {
5633
5633
  const s = qt(a), l = Pp(a);
5634
- !l && s.position === "fixed" && (o = null), (i ? !l && !o : !l && s.position === "static" && !!o && pT.has(o.position) || Kr(a) && !l && AC(e, a)) ? r = r.filter((d) => d !== a) : o = s, a = Tn(a);
5634
+ !l && s.position === "fixed" && (o = null), (i ? !l && !o : !l && s.position === "static" && !!o && pT.has(o.position) || Kr(a) && !l && AC(e, a)) ? r = r.filter((d) => d !== a) : o = s, a = kn(a);
5635
5635
  }
5636
5636
  return t.set(e, r), r;
5637
5637
  }
@@ -5664,12 +5664,12 @@ function bT(e) {
5664
5664
  };
5665
5665
  }
5666
5666
  function vT(e, t, n) {
5667
- const r = st(t), o = In(t), i = n === "fixed", a = Ur(e, !0, i, t);
5667
+ const r = st(t), o = _n(t), i = n === "fixed", a = Ur(e, !0, i, t);
5668
5668
  let s = {
5669
5669
  scrollLeft: 0,
5670
5670
  scrollTop: 0
5671
5671
  };
5672
- const l = Nn(0);
5672
+ const l = Tn(0);
5673
5673
  function c() {
5674
5674
  l.x = Bs(o);
5675
5675
  }
@@ -5679,7 +5679,7 @@ function vT(e, t, n) {
5679
5679
  l.x = m.x + t.clientLeft, l.y = m.y + t.clientTop;
5680
5680
  } else o && c();
5681
5681
  i && !r && o && c();
5682
- const d = o && !r && !i ? DC(o, s) : Nn(0), f = a.left + s.scrollLeft - l.x - d.x, p = a.top + s.scrollTop - l.y - d.y;
5682
+ const d = o && !r && !i ? DC(o, s) : Tn(0), f = a.left + s.scrollLeft - l.x - d.x, p = a.top + s.scrollTop - l.y - d.y;
5683
5683
  return {
5684
5684
  x: f,
5685
5685
  y: p,
@@ -5696,25 +5696,25 @@ function Mg(e, t) {
5696
5696
  if (t)
5697
5697
  return t(e);
5698
5698
  let n = e.offsetParent;
5699
- return In(e) === n && (n = n.ownerDocument.body), n;
5699
+ return _n(e) === n && (n = n.ownerDocument.body), n;
5700
5700
  }
5701
5701
  function VC(e, t) {
5702
5702
  const n = bt(e);
5703
5703
  if (_s(e))
5704
5704
  return n;
5705
5705
  if (!st(e)) {
5706
- let o = Tn(e);
5707
- for (; o && !Mn(o); ) {
5706
+ let o = kn(e);
5707
+ for (; o && !Nn(o); ) {
5708
5708
  if (Je(o) && !Kl(o))
5709
5709
  return o;
5710
- o = Tn(o);
5710
+ o = kn(o);
5711
5711
  }
5712
5712
  return n;
5713
5713
  }
5714
5714
  let r = Mg(e, t);
5715
5715
  for (; r && wM(r) && Kl(r); )
5716
5716
  r = Mg(r, t);
5717
- return r && Mn(r) && Kl(r) && !Pp(r) ? n : r || OM(e) || n;
5717
+ return r && Nn(r) && Kl(r) && !Pp(r) ? n : r || OM(e) || n;
5718
5718
  }
5719
5719
  const yT = async function(e) {
5720
5720
  const t = this.getOffsetParent || VC, n = this.getDimensions, r = await n(e.floating);
@@ -5733,7 +5733,7 @@ function xT(e) {
5733
5733
  }
5734
5734
  const wT = {
5735
5735
  convertOffsetParentRelativeRectToViewportRelativeRect: cT,
5736
- getDocumentElement: In,
5736
+ getDocumentElement: _n,
5737
5737
  getClippingRect: gT,
5738
5738
  getOffsetParent: VC,
5739
5739
  getElementRects: yT,
@@ -5748,7 +5748,7 @@ function FC(e, t) {
5748
5748
  }
5749
5749
  function CT(e, t) {
5750
5750
  let n = null, r;
5751
- const o = In(e);
5751
+ const o = _n(e);
5752
5752
  function i() {
5753
5753
  var s;
5754
5754
  clearTimeout(r), (s = n) == null || s.disconnect(), n = null;
@@ -5921,9 +5921,9 @@ function IT(e) {
5921
5921
  strategy: n,
5922
5922
  middleware: p
5923
5923
  };
5924
- T.current && (I.platform = T.current), NT(S.current, R.current, I).then((B) => {
5924
+ T.current && (I.platform = T.current), NT(S.current, R.current, I).then((z) => {
5925
5925
  const $ = {
5926
- ...B,
5926
+ ...z,
5927
5927
  // The floating element's position may be recomputed while it's closed
5928
5928
  // but still mounted (such as when transitioning out). To ensure
5929
5929
  // `isPositioned` will be `false` initially on the next open, avoid
@@ -5967,16 +5967,16 @@ function IT(e) {
5967
5967
  };
5968
5968
  if (!A.floating)
5969
5969
  return I;
5970
- const B = Tg(A.floating, d.x), $ = Tg(A.floating, d.y);
5970
+ const z = Tg(A.floating, d.x), $ = Tg(A.floating, d.y);
5971
5971
  return s ? {
5972
5972
  ...I,
5973
- transform: "translate(" + B + "px, " + $ + "px)",
5973
+ transform: "translate(" + z + "px, " + $ + "px)",
5974
5974
  ...LC(A.floating) >= 1.5 && {
5975
5975
  willChange: "transform"
5976
5976
  }
5977
5977
  } : {
5978
5978
  position: n,
5979
- left: B,
5979
+ left: z,
5980
5980
  top: $
5981
5981
  };
5982
5982
  }, [n, s, A.floating, d.x, d.y]);
@@ -6058,7 +6058,7 @@ function Xo(e, t = {}) {
6058
6058
  return te === "intentional" && j.type !== "click" || te === "sloppy" && j.type === "click";
6059
6059
  }), I = le(() => {
6060
6060
  l.current.insideReactTree = !0, D.start(0, T);
6061
- }), B = le((j, te = !1) => {
6061
+ }), z = le((j, te = !1) => {
6062
6062
  if (F(j)) {
6063
6063
  T();
6064
6064
  return;
@@ -6073,9 +6073,9 @@ function Xo(e, t = {}) {
6073
6073
  if (ue && (J.hasElement(ue) || J.hasMatchingElement((ne) => Le(ne, ue))))
6074
6074
  return;
6075
6075
  let re = Je(ue) ? ue : null;
6076
- for (; re && !Mn(re); ) {
6077
- const ne = Tn(re);
6078
- if (Mn(ne) || !Je(ne))
6076
+ for (; re && !Nn(re); ) {
6077
+ const ne = kn(re);
6078
+ if (Nn(ne) || !Je(ne))
6079
6079
  break;
6080
6080
  re = ne;
6081
6081
  }
@@ -6085,7 +6085,7 @@ function Xo(e, t = {}) {
6085
6085
  Array.from(X).every((ne) => !Le(re, ne)))
6086
6086
  return;
6087
6087
  if (st(ue) && !("touches" in j)) {
6088
- const ne = Mn(ue), me = qt(ue), ce = /auto|scroll/, ge = ne || ce.test(me.overflowX), pe = ne || ce.test(me.overflowY), Ne = ge && ue.clientWidth > 0 && ue.scrollWidth > ue.clientWidth, Ie = pe && ue.clientHeight > 0 && ue.scrollHeight > ue.clientHeight, Pe = me.direction === "rtl", $e = Ie && (Pe ? j.offsetX <= ue.offsetWidth - ue.clientWidth : j.offsetX > ue.clientWidth), Ue = Ne && j.offsetY > ue.clientHeight;
6088
+ const ne = Nn(ue), me = qt(ue), ce = /auto|scroll/, ge = ne || ce.test(me.overflowX), pe = ne || ce.test(me.overflowY), Ne = ge && ue.clientWidth > 0 && ue.scrollWidth > ue.clientWidth, Ie = pe && ue.clientHeight > 0 && ue.scrollHeight > ue.clientHeight, Pe = me.direction === "rtl", $e = Ie && (Pe ? j.offsetX <= ue.offsetWidth - ue.clientWidth : j.offsetX > ue.clientWidth), Ue = Ne && j.offsetY > ue.clientHeight;
6089
6089
  if ($e || Ue)
6090
6090
  return;
6091
6091
  }
@@ -6102,7 +6102,7 @@ function Xo(e, t = {}) {
6102
6102
  }
6103
6103
  n.setOpen(!1, he($p, j)), T();
6104
6104
  }), $ = le((j) => {
6105
- N() !== "sloppy" || j.pointerType === "touch" || !n.select("open") || !c || dn(j, n.select("floatingElement")) || dn(j, n.select("domReferenceElement")) || B(j);
6105
+ N() !== "sloppy" || j.pointerType === "touch" || !n.select("open") || !c || dn(j, n.select("floatingElement")) || dn(j, n.select("domReferenceElement")) || z(j);
6106
6106
  }), W = le((j) => {
6107
6107
  if (N() !== "sloppy" || !n.select("open") || !c || dn(j, n.select("floatingElement")) || dn(j, n.select("domReferenceElement")))
6108
6108
  return;
@@ -6122,13 +6122,13 @@ function Xo(e, t = {}) {
6122
6122
  W(j), te?.removeEventListener(j.type, ue);
6123
6123
  }
6124
6124
  te?.addEventListener(j.type, ue);
6125
- }), z = le((j) => {
6125
+ }), B = le((j) => {
6126
6126
  const te = w.current;
6127
6127
  if (w.current = !1, P.clear(), j.type === "mousedown" && O.current && !O.current.dismissOnMouseDown)
6128
6128
  return;
6129
6129
  const ue = Ct(j);
6130
6130
  function Y() {
6131
- j.type === "pointerdown" ? $(j) : B(j, te), ue?.removeEventListener(j.type, Y);
6131
+ j.type === "pointerdown" ? $(j) : z(j, te), ue?.removeEventListener(j.type, Y);
6132
6132
  }
6133
6133
  ue?.addEventListener(j.type, Y);
6134
6134
  }), H = le((j) => {
@@ -6138,7 +6138,7 @@ function Xo(e, t = {}) {
6138
6138
  if (!te)
6139
6139
  return;
6140
6140
  const ue = Math.abs(te.clientX - O.current.startX), Y = Math.abs(te.clientY - O.current.startY), X = Math.sqrt(ue * ue + Y * Y);
6141
- X > 5 && (O.current.dismissOnTouchEnd = !0), X > 10 && (B(j), P.clear(), O.current = null);
6141
+ X > 5 && (O.current.dismissOnTouchEnd = !0), X > 10 && (z(j), P.clear(), O.current = null);
6142
6142
  }), q = le((j) => {
6143
6143
  const te = Ct(j);
6144
6144
  function ue() {
@@ -6146,7 +6146,7 @@ function Xo(e, t = {}) {
6146
6146
  }
6147
6147
  te?.addEventListener(j.type, ue);
6148
6148
  }), G = le((j) => {
6149
- N() !== "sloppy" || !O.current || dn(j, n.select("floatingElement")) || dn(j, n.select("domReferenceElement")) || (O.current.dismissOnTouchEnd && B(j), P.clear(), O.current = null);
6149
+ N() !== "sloppy" || !O.current || dn(j, n.select("floatingElement")) || dn(j, n.select("domReferenceElement")) || (O.current.dismissOnTouchEnd && z(j), P.clear(), O.current = null);
6150
6150
  }), U = le((j) => {
6151
6151
  const te = Ct(j);
6152
6152
  function ue() {
@@ -6176,18 +6176,18 @@ function Xo(e, t = {}) {
6176
6176
  );
6177
6177
  }
6178
6178
  const X = vt(o);
6179
- X.addEventListener("pointerdown", k, !0), d && (X.addEventListener("keydown", A), X.addEventListener("compositionstart", ue), X.addEventListener("compositionend", Y)), E && (X.addEventListener("click", z, !0), X.addEventListener("pointerdown", z, !0), X.addEventListener("touchstart", V, !0), X.addEventListener("touchmove", q, !0), X.addEventListener("touchend", U, !0), X.addEventListener("mousedown", z, !0));
6179
+ X.addEventListener("pointerdown", k, !0), d && (X.addEventListener("keydown", A), X.addEventListener("compositionstart", ue), X.addEventListener("compositionend", Y)), E && (X.addEventListener("click", B, !0), X.addEventListener("pointerdown", B, !0), X.addEventListener("touchstart", V, !0), X.addEventListener("touchmove", q, !0), X.addEventListener("touchend", U, !0), X.addEventListener("mousedown", B, !0));
6180
6180
  let J = [];
6181
6181
  return h && (Je(a) && (J = ur(a)), Je(o) && (J = J.concat(ur(o))), !Je(i) && i && i.contextElement && (J = J.concat(ur(i.contextElement)))), J = J.filter((re) => re !== X.defaultView?.visualViewport), J.forEach((re) => {
6182
6182
  re.addEventListener("scroll", te, {
6183
6183
  passive: !0
6184
6184
  });
6185
6185
  }), () => {
6186
- X.removeEventListener("pointerdown", k, !0), d && (X.removeEventListener("keydown", A), X.removeEventListener("compositionstart", ue), X.removeEventListener("compositionend", Y)), E && (X.removeEventListener("click", z, !0), X.removeEventListener("pointerdown", z, !0), X.removeEventListener("touchstart", V, !0), X.removeEventListener("touchmove", q, !0), X.removeEventListener("touchend", U, !0), X.removeEventListener("mousedown", z, !0)), J.forEach((re) => {
6186
+ X.removeEventListener("pointerdown", k, !0), d && (X.removeEventListener("keydown", A), X.removeEventListener("compositionstart", ue), X.removeEventListener("compositionend", Y)), E && (X.removeEventListener("click", B, !0), X.removeEventListener("pointerdown", B, !0), X.removeEventListener("touchstart", V, !0), X.removeEventListener("touchmove", q, !0), X.removeEventListener("touchend", U, !0), X.removeEventListener("mousedown", B, !0)), J.forEach((re) => {
6187
6187
  re.removeEventListener("scroll", te);
6188
6188
  }), j.clear();
6189
6189
  };
6190
- }, [l, o, i, a, d, E, r, s, h, c, S, R, A, B, z, $, V, q, U, k, n]), u.useEffect(T, [E, T]);
6190
+ }, [l, o, i, a, d, E, r, s, h, c, S, R, A, z, B, $, V, q, U, k, n]), u.useEffect(T, [E, T]);
6191
6191
  const Z = u.useMemo(() => ({
6192
6192
  onKeyDown: A,
6193
6193
  ...m && {
@@ -6558,7 +6558,7 @@ const Q = (e, t, n, r, o, i, ...a) => {
6558
6558
  return s;
6559
6559
  };
6560
6560
  var Ra = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
6561
- function Dn(e) {
6561
+ function An(e) {
6562
6562
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
6563
6563
  }
6564
6564
  var Oa = { exports: {} }, Zl = {};
@@ -7351,7 +7351,7 @@ function Kp(e) {
7351
7351
  open: t = !1,
7352
7352
  onOpenChange: n,
7353
7353
  elements: r = {}
7354
- } = e, o = Qr(), i = _n() != null;
7354
+ } = e, o = Qr(), i = Dn() != null;
7355
7355
  if (process.env.NODE_ENV !== "production") {
7356
7356
  const s = r.reference;
7357
7357
  s && !Je(s) && console.error("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `context.setPositionReference()`", "instead.");
@@ -7449,7 +7449,7 @@ function Us(e) {
7449
7449
  noEmit: n = !1,
7450
7450
  treatPopupAsFloatingElement: r = !1,
7451
7451
  onOpenChange: o
7452
- } = e, i = Qr(), a = _n() != null, s = t.useState("open"), l = t.useState("activeTriggerElement"), c = t.useState(r ? "popupElement" : "positionerElement"), d = t.context.triggerElements, f = Pt(() => new Yp({
7452
+ } = e, i = Qr(), a = Dn() != null, s = t.useState("open"), l = t.useState("activeTriggerElement"), c = t.useState(r ? "popupElement" : "positionerElement"), d = t.context.triggerElements, f = Pt(() => new Yp({
7453
7453
  open: s,
7454
7454
  referenceElement: l,
7455
7455
  floatingElement: c,
@@ -7576,7 +7576,7 @@ function Xp(e, t = {}) {
7576
7576
  restTimeoutPendingRef: h,
7577
7577
  openChangeTimeout: g,
7578
7578
  handleCloseOptionsRef: y
7579
- } = qC(n), b = Er(c), C = _n(), E = le(() => f.current ? !0 : a.current.openEvent ? wk.has(a.current.openEvent.type) : !1), w = le(() => {
7579
+ } = qC(n), b = Er(c), C = Dn(), E = le(() => f.current ? !0 : a.current.openEvent ? wk.has(a.current.openEvent.type) : !1), w = le(() => {
7580
7580
  const D = a.current.openEvent?.type;
7581
7581
  return D?.includes("mouse") && D !== "mousedown";
7582
7582
  }), S = u.useCallback((D, T = !0) => {
@@ -7669,8 +7669,8 @@ function Gs(e, t = {}) {
7669
7669
  } = qC(n), P = gt(s), D = gt(a), T = gt(c);
7670
7670
  m && (O.current = P.current?.__options);
7671
7671
  const _ = le(() => g.current ? !0 : r.current.openEvent ? ["click", "mousedown"].includes(r.current.openEvent.type) : !1), M = u.useCallback((F, I = !0) => {
7672
- const B = Xa(D.current, "close", h.current);
7673
- B && !y.current ? S.start(B, () => n.setOpen(!1, he(Rt, F))) : I && (S.clear(), n.setOpen(!1, he(Rt, F)));
7672
+ const z = Xa(D.current, "close", h.current);
7673
+ z && !y.current ? S.start(z, () => n.setOpen(!1, he(Rt, F))) : I && (S.clear(), n.setOpen(!1, he(Rt, F)));
7674
7674
  }, [D, y, n, h, S]), k = le(() => {
7675
7675
  E.current(), y.current = void 0;
7676
7676
  }), N = le(() => {
@@ -7695,14 +7695,14 @@ function Gs(e, t = {}) {
7695
7695
  const I = n.context.triggerElements;
7696
7696
  if (F.relatedTarget && I.hasElement(F.relatedTarget))
7697
7697
  return;
7698
- const B = f.current;
7698
+ const z = f.current;
7699
7699
  P.current?.({
7700
7700
  ...r.current.floatingContext,
7701
7701
  tree: v,
7702
7702
  x: F.clientX,
7703
7703
  y: F.clientY,
7704
7704
  onClose() {
7705
- N(), k(), !_() && B === n.select("domReferenceElement") && M(F);
7705
+ N(), k(), !_() && z === n.select("domReferenceElement") && M(F);
7706
7706
  }
7707
7707
  })(F);
7708
7708
  });
@@ -7715,18 +7715,18 @@ function Gs(e, t = {}) {
7715
7715
  function I(W) {
7716
7716
  if (S.clear(), b.current = !1, l && !jr(h.current) || nc(T.current) > 0 && !Xa(D.current, "open"))
7717
7717
  return;
7718
- const V = Xa(D.current, "open", h.current), z = n.select("domReferenceElement"), H = n.context.triggerElements, q = (H.hasElement(W.target) || H.hasMatchingElement((Z) => Le(Z, W.target))) && (!z || !Le(z, W.target)), G = W.currentTarget ?? null, U = !n.select("open") || q;
7718
+ const V = Xa(D.current, "open", h.current), B = n.select("domReferenceElement"), H = n.context.triggerElements, q = (H.hasElement(W.target) || H.hasMatchingElement((Z) => Le(Z, W.target))) && (!B || !Le(B, W.target)), G = W.currentTarget ?? null, U = !n.select("open") || q;
7719
7719
  V ? S.start(V, () => {
7720
7720
  U && n.setOpen(!0, he(Rt, W, G));
7721
7721
  }) : U && n.setOpen(!0, he(Rt, W, G));
7722
7722
  }
7723
- function B(W) {
7723
+ function z(W) {
7724
7724
  if (_()) {
7725
7725
  N();
7726
7726
  return;
7727
7727
  }
7728
7728
  E.current();
7729
- const V = n.select("domReferenceElement"), z = vt(V);
7729
+ const V = n.select("domReferenceElement"), B = vt(V);
7730
7730
  R.clear(), w.current = !1;
7731
7731
  const H = n.context.triggerElements;
7732
7732
  if (W.relatedTarget && H.hasElement(W.relatedTarget))
@@ -7744,8 +7744,8 @@ function Gs(e, t = {}) {
7744
7744
  }
7745
7745
  });
7746
7746
  const U = y.current;
7747
- U(W), z.addEventListener("mousemove", U), E.current = () => {
7748
- z.removeEventListener("mousemove", U);
7747
+ U(W), B.addEventListener("mousemove", U), E.current = () => {
7748
+ B.removeEventListener("mousemove", U);
7749
7749
  };
7750
7750
  return;
7751
7751
  }
@@ -7756,8 +7756,8 @@ function Gs(e, t = {}) {
7756
7756
  }
7757
7757
  return n.select("open") && F.addEventListener("mouseleave", $), d && F.addEventListener("mousemove", I, {
7758
7758
  once: !0
7759
- }), F.addEventListener("mouseenter", I), F.addEventListener("mouseleave", B), () => {
7760
- F.removeEventListener("mouseleave", $), d && F.removeEventListener("mousemove", I), F.removeEventListener("mouseenter", I), F.removeEventListener("mouseleave", B);
7759
+ }), F.addEventListener("mouseenter", I), F.addEventListener("mouseleave", z), () => {
7760
+ F.removeEventListener("mouseleave", $), d && F.removeEventListener("mousemove", I), F.removeEventListener("mouseenter", I), F.removeEventListener("mouseleave", z);
7761
7761
  };
7762
7762
  }, [k, N, b, r, D, M, n, i, P, A, m, _, l, d, h, T, R, w, S, f, v, E, y]), u.useMemo(() => {
7763
7763
  function F(I) {
@@ -7768,22 +7768,22 @@ function Gs(e, t = {}) {
7768
7768
  onPointerEnter: F,
7769
7769
  onMouseMove(I) {
7770
7770
  const {
7771
- nativeEvent: B
7772
- } = I, $ = I.currentTarget, W = n.select("domReferenceElement"), V = n.context.triggerElements, z = n.select("open"), H = (V.hasElement(I.target) || V.hasMatchingElement((G) => Le(G, I.target))) && (!W || !Le(W, I.target));
7773
- if (l && !jr(h.current) || z && !H || nc(T.current) === 0 || !H && w.current && I.movementX ** 2 + I.movementY ** 2 < 2)
7771
+ nativeEvent: z
7772
+ } = I, $ = I.currentTarget, W = n.select("domReferenceElement"), V = n.context.triggerElements, B = n.select("open"), H = (V.hasElement(I.target) || V.hasMatchingElement((G) => Le(G, I.target))) && (!W || !Le(W, I.target));
7773
+ if (l && !jr(h.current) || B && !H || nc(T.current) === 0 || !H && w.current && I.movementX ** 2 + I.movementY ** 2 < 2)
7774
7774
  return;
7775
7775
  R.clear();
7776
7776
  function q() {
7777
- !b.current && (!z || H) && n.setOpen(!0, he(Rt, B, $));
7777
+ !b.current && (!B || H) && n.setOpen(!0, he(Rt, z, $));
7778
7778
  }
7779
7779
  h.current === "touch" ? Ot.flushSync(() => {
7780
7780
  q();
7781
- }) : H && z ? q() : (w.current = !0, R.start(nc(T.current), q));
7781
+ }) : H && B ? q() : (w.current = !0, R.start(nc(T.current), q));
7782
7782
  }
7783
7783
  };
7784
7784
  }, [b, l, n, h, T, R, w]);
7785
7785
  }
7786
- function An(e = []) {
7786
+ function Vn(e = []) {
7787
7787
  const t = e.map((c) => c?.reference), n = e.map((c) => c?.floating), r = e.map((c) => c?.item), o = e.map((c) => c?.trigger), i = u.useCallback(
7788
7788
  (c) => Ma(c, e, "reference"),
7789
7789
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -7878,13 +7878,13 @@ function Zp(e, t) {
7878
7878
  externalTree: M
7879
7879
  } = t;
7880
7880
  process.env.NODE_ENV !== "production" && (p && (m || console.warn("`useListNavigation` looping must be enabled to allow escaping."), g || console.warn("`useListNavigation` must be virtual to allow escaping.")), w === "vertical" && R > 1 && console.warn("In grid list navigation mode (`cols` > 1), the `orientation` should", 'be either "horizontal" or "both".'));
7881
- const k = Ei(o), N = gt(k), A = _n(), F = Er(M);
7881
+ const k = Ei(o), N = gt(k), A = Dn(), F = Er(M);
7882
7882
  se(() => {
7883
7883
  a.current.orientation = w;
7884
7884
  }, [a, w]);
7885
- const I = Vf(i), B = u.useRef(y), $ = u.useRef(f ?? -1), W = u.useRef(null), V = u.useRef(!0), z = le((ce) => {
7885
+ const I = Vf(i), z = u.useRef(y), $ = u.useRef(f ?? -1), W = u.useRef(null), V = u.useRef(!0), B = le((ce) => {
7886
7886
  c($.current === -1 ? null : $.current, ce);
7887
- }), H = u.useRef(z), q = u.useRef(!!o), G = u.useRef(r), U = u.useRef(!1), Z = u.useRef(!1), ie = gt(E), K = gt(r), j = gt(O), te = gt(f), ue = gt(_), Y = le(() => {
7887
+ }), H = u.useRef(B), q = u.useRef(!!o), G = u.useRef(r), U = u.useRef(!1), Z = u.useRef(!1), ie = gt(E), K = gt(r), j = gt(O), te = gt(f), ue = gt(_), Y = le(() => {
7888
7888
  function ce(Ie) {
7889
7889
  g ? F?.events.emit("virtualfocus", Ie) : Za(Ie, {
7890
7890
  sync: U.current,
@@ -7906,8 +7906,8 @@ function Zp(e, t) {
7906
7906
  });
7907
7907
  });
7908
7908
  se(() => {
7909
- d && (r && o ? ($.current = f ?? -1, B.current && f != null && (Z.current = !0, z())) : q.current && ($.current = -1, H.current()));
7910
- }, [d, r, o, f, z]), se(() => {
7909
+ d && (r && o ? ($.current = f ?? -1, z.current && f != null && (Z.current = !0, B())) : q.current && ($.current = -1, H.current()));
7910
+ }, [d, r, o, f, B]), se(() => {
7911
7911
  if (d) {
7912
7912
  if (!r) {
7913
7913
  U.current = !1;
@@ -7917,16 +7917,16 @@ function Zp(e, t) {
7917
7917
  if (l == null) {
7918
7918
  if (U.current = !1, te.current != null)
7919
7919
  return;
7920
- if (q.current && ($.current = -1, Y()), (!G.current || !q.current) && B.current && (W.current != null || B.current === !0 && W.current == null)) {
7920
+ if (q.current && ($.current = -1, Y()), (!G.current || !q.current) && z.current && (W.current != null || z.current === !0 && W.current == null)) {
7921
7921
  let ce = 0;
7922
7922
  const ge = () => {
7923
- s.current[0] == null ? (ce < 2 && (ce ? requestAnimationFrame : queueMicrotask)(ge), ce += 1) : ($.current = W.current == null || rc(W.current, w, h) || v ? Ka(s) : Bf(s), W.current = null, z());
7923
+ s.current[0] == null ? (ce < 2 && (ce ? requestAnimationFrame : queueMicrotask)(ge), ce += 1) : ($.current = W.current == null || rc(W.current, w, h) || v ? Ka(s) : Bf(s), W.current = null, B());
7924
7924
  };
7925
7925
  ge();
7926
7926
  }
7927
7927
  } else So(s, l) || ($.current = l, Y(), Z.current = !1);
7928
7928
  }
7929
- }, [d, r, o, l, te, v, s, w, h, z, Y, ie]), se(() => {
7929
+ }, [d, r, o, l, te, v, s, w, h, B, Y, ie]), se(() => {
7930
7930
  if (!d || o || !F || g || !q.current)
7931
7931
  return;
7932
7932
  const ce = F.nodesRef.current, ge = ce.find((Ie) => Ie.id === A)?.context?.elements.floating, pe = mn(vt(o)), Ne = ce.some((Ie) => Ie.context && Le(Ie.context.elements.floating, pe));
@@ -7934,16 +7934,16 @@ function Zp(e, t) {
7934
7934
  preventScroll: !0
7935
7935
  });
7936
7936
  }, [d, o, F, A, g]), se(() => {
7937
- H.current = z, G.current = r, q.current = !!o;
7937
+ H.current = B, G.current = r, q.current = !!o;
7938
7938
  }), se(() => {
7939
- r || (W.current = null, B.current = y);
7939
+ r || (W.current = null, z.current = y);
7940
7940
  }, [r, y]);
7941
7941
  const X = l != null, J = u.useMemo(() => {
7942
7942
  function ce(pe) {
7943
7943
  if (!K.current)
7944
7944
  return;
7945
7945
  const Ne = s.current.indexOf(pe.currentTarget);
7946
- Ne !== -1 && $.current !== Ne && ($.current = Ne, z(pe));
7946
+ Ne !== -1 && $.current !== Ne && ($.current = Ne, B(pe));
7947
7947
  }
7948
7948
  return {
7949
7949
  onFocus(pe) {
@@ -7963,12 +7963,12 @@ function Zp(e, t) {
7963
7963
  return;
7964
7964
  U.current = !0;
7965
7965
  const Ne = pe.relatedTarget;
7966
- !b || s.current.includes(Ne) || ue.current && ($.current = -1, z(pe), g || N.current?.focus({
7966
+ !b || s.current.includes(Ne) || ue.current && ($.current = -1, B(pe), g || N.current?.focus({
7967
7967
  preventScroll: !0
7968
7968
  }));
7969
7969
  }
7970
7970
  };
7971
- }, [K, N, b, s, z, ue, g]), re = u.useCallback(() => S ?? F?.nodesRef.current.find((ce) => ce.id === A)?.context?.dataRef?.current.orientation, [A, F, S]), xe = le((ce) => {
7971
+ }, [K, N, b, s, B, ue, g]), re = u.useCallback(() => S ?? F?.nodesRef.current.find((ce) => ce.id === A)?.context?.dataRef?.current.orientation, [A, F, S]), xe = le((ce) => {
7972
7972
  if (V.current = !1, U.current = !0, ce.which === 229 || !K.current && ce.currentTarget === N.current)
7973
7973
  return;
7974
7974
  if (v && Ok(ce.key, w, h, R)) {
@@ -7976,7 +7976,7 @@ function Zp(e, t) {
7976
7976
  return;
7977
7977
  }
7978
7978
  const ge = $.current, pe = Ka(s, E), Ne = Bf(s, E);
7979
- if (I || (ce.key === "Home" && (ct(ce), $.current = pe, z(ce)), ce.key === "End" && (ct(ce), $.current = Ne, z(ce))), R > 1) {
7979
+ if (I || (ce.key === "Home" && (ct(ce), $.current = pe, B(ce)), ce.key === "End" && (ct(ce), $.current = Ne, B(ce))), R > 1) {
7980
7980
  const Ie = P || Array.from({
7981
7981
  length: s.current.length
7982
7982
  }, () => ({
@@ -8008,12 +8008,12 @@ function Zp(e, t) {
8008
8008
  ),
8009
8009
  stopEvent: !0
8010
8010
  })];
8011
- if (Ye != null && ($.current = Ye, z(ce)), w === "both")
8011
+ if (Ye != null && ($.current = Ye, B(ce)), w === "both")
8012
8012
  return;
8013
8013
  }
8014
8014
  if (Na(ce.key, w)) {
8015
8015
  if (ct(ce), r && !g && mn(ce.currentTarget.ownerDocument) === ce.currentTarget) {
8016
- $.current = rc(ce.key, w, h) ? pe : Ne, z(ce);
8016
+ $.current = rc(ce.key, w, h) ? pe : Ne, B(ce);
8017
8017
  return;
8018
8018
  }
8019
8019
  rc(ce.key, w, h) ? m ? ge >= Ne ? p && ge !== s.current.length ? $.current = -1 : (U.current = !1, $.current = pe) : $.current = kt(s, {
@@ -8030,7 +8030,7 @@ function Zp(e, t) {
8030
8030
  startingIndex: ge,
8031
8031
  decrement: !0,
8032
8032
  disabledIndices: E
8033
- })), So(s, $.current) && ($.current = -1), z(ce);
8033
+ })), So(s, $.current) && ($.current = -1), B(ce);
8034
8034
  }
8035
8035
  }), de = u.useMemo(() => g && r && X && {
8036
8036
  "aria-activedescendant": `${T}-${l}`
@@ -8042,7 +8042,7 @@ function Zp(e, t) {
8042
8042
  const ge = Ct(ce.nativeEvent);
8043
8043
  if (ge && !Le(N.current, ge))
8044
8044
  return;
8045
- ct(ce), n.setOpen(!1, he(kn, ce.nativeEvent)), st(i) && i.focus();
8045
+ ct(ce), n.setOpen(!1, he(In, ce.nativeEvent)), st(i) && i.focus();
8046
8046
  return;
8047
8047
  }
8048
8048
  xe(ce);
@@ -8052,10 +8052,10 @@ function Zp(e, t) {
8052
8052
  }
8053
8053
  }), [de, xe, N, w, I, n, r, g, i]), ne = u.useMemo(() => {
8054
8054
  function ce(pe) {
8055
- y === "auto" && Jw(pe.nativeEvent) && (B.current = !g);
8055
+ y === "auto" && Jw(pe.nativeEvent) && (z.current = !g);
8056
8056
  }
8057
8057
  function ge(pe) {
8058
- B.current = y, y === "auto" && eC(pe.nativeEvent) && (B.current = !0);
8058
+ z.current = y, y === "auto" && eC(pe.nativeEvent) && (z.current = !0);
8059
8059
  }
8060
8060
  return {
8061
8061
  onKeyDown(pe) {
@@ -8070,21 +8070,21 @@ function Zp(e, t) {
8070
8070
  W.current = v && Ye ? null : pe.key;
8071
8071
  }
8072
8072
  if (v) {
8073
- Pe && (ct(pe), Ne ? ($.current = Ka(s, ie.current), z(pe)) : n.setOpen(!0, he(Ro, pe.nativeEvent, pe.currentTarget)));
8073
+ Pe && (ct(pe), Ne ? ($.current = Ka(s, ie.current), B(pe)) : n.setOpen(!0, he(Ro, pe.nativeEvent, pe.currentTarget)));
8074
8074
  return;
8075
8075
  }
8076
- $e && (te.current != null && ($.current = te.current), ct(pe), !Ne && C ? n.setOpen(!0, he(Ro, pe.nativeEvent, pe.currentTarget)) : xe(pe), Ne && z(pe));
8076
+ $e && (te.current != null && ($.current = te.current), ct(pe), !Ne && C ? n.setOpen(!0, he(Ro, pe.nativeEvent, pe.currentTarget)) : xe(pe), Ne && B(pe));
8077
8077
  }
8078
8078
  },
8079
8079
  onFocus(pe) {
8080
- n.select("open") && !g && ($.current = -1, z(pe));
8080
+ n.select("open") && !g && ($.current = -1, B(pe));
8081
8081
  },
8082
8082
  onPointerDown: ge,
8083
8083
  onPointerEnter: ge,
8084
8084
  onMouseDown: ce,
8085
8085
  onClick: ce
8086
8086
  };
8087
- }, [xe, ie, y, s, v, z, n, C, w, re, h, te, g]), me = u.useMemo(() => ({
8087
+ }, [xe, ie, y, s, v, B, n, C, w, re, h, te, g]), me = u.useMemo(() => ({
8088
8088
  ...de,
8089
8089
  ...ne
8090
8090
  }), [de, ne]);
@@ -8100,7 +8100,7 @@ function Qp(e, t = {}) {
8100
8100
  const n = "rootStore" in e ? e.rootStore : e, r = n.useState("open"), o = n.useState("floatingId"), i = n.useState("domReferenceElement"), a = n.useState("floatingElement"), {
8101
8101
  enabled: s = !0,
8102
8102
  role: l = "dialog"
8103
- } = t, c = Qr(), d = i?.id || c, f = u.useMemo(() => Ei(a)?.id || o, [a, o]), p = Pk.get(l) ?? l, v = _n() != null, h = u.useMemo(() => p === "tooltip" || l === "label" ? lt : {
8103
+ } = t, c = Qr(), d = i?.id || c, f = u.useMemo(() => Ei(a)?.id || o, [a, o]), p = Pk.get(l) ?? l, v = Dn() != null, h = u.useMemo(() => p === "tooltip" || l === "label" ? lt : {
8104
8104
  "aria-haspopup": p === "alertdialog" ? "dialog" : p,
8105
8105
  "aria-expanded": "false",
8106
8106
  ...p === "listbox" && {
@@ -8255,7 +8255,7 @@ function Ks(e = {}) {
8255
8255
  const {
8256
8256
  clientX: w,
8257
8257
  clientY: S
8258
- } = C, R = [w, S], O = Ct(C), P = C.type === "mouseleave", D = Le(v.floating, O), T = Le(v.domReference, O), _ = v.domReference.getBoundingClientRect(), M = v.floating.getBoundingClientRect(), k = m.split("-")[0], N = f > M.right - M.width / 2, A = p > M.bottom - M.height / 2, F = Mk(R, _), I = M.width > _.width, B = M.height > _.height, $ = (I ? _ : M).left, W = (I ? _ : M).right, V = (B ? _ : M).top, z = (B ? _ : M).bottom;
8258
+ } = C, R = [w, S], O = Ct(C), P = C.type === "mouseleave", D = Le(v.floating, O), T = Le(v.domReference, O), _ = v.domReference.getBoundingClientRect(), M = v.floating.getBoundingClientRect(), k = m.split("-")[0], N = f > M.right - M.width / 2, A = p > M.bottom - M.height / 2, F = Mk(R, _), I = M.width > _.width, z = M.height > _.height, $ = (I ? _ : M).left, W = (I ? _ : M).right, V = (z ? _ : M).top, B = (z ? _ : M).bottom;
8259
8259
  if (D && (i = !0, !P))
8260
8260
  return;
8261
8261
  if (T && (i = !1), T && !P) {
@@ -8277,10 +8277,10 @@ function Ks(e = {}) {
8277
8277
  H = [[$, M.top + 1], [$, _.bottom - 1], [W, _.bottom - 1], [W, M.top + 1]];
8278
8278
  break;
8279
8279
  case "left":
8280
- H = [[M.right - 1, z], [M.right - 1, V], [_.left + 1, V], [_.left + 1, z]];
8280
+ H = [[M.right - 1, B], [M.right - 1, V], [_.left + 1, V], [_.left + 1, B]];
8281
8281
  break;
8282
8282
  case "right":
8283
- H = [[_.right - 1, z], [_.right - 1, V], [M.left + 1, V], [M.left + 1, z]];
8283
+ H = [[_.right - 1, B], [_.right - 1, V], [M.left + 1, V], [M.left + 1, B]];
8284
8284
  break;
8285
8285
  }
8286
8286
  function q([G, U]) {
@@ -8294,11 +8294,11 @@ function Ks(e = {}) {
8294
8294
  return [Z, ie, ...K];
8295
8295
  }
8296
8296
  case "left": {
8297
- const Z = [G + t + 1, B ? U + t / 2 : A ? U + t * 4 : U - t * 4], ie = [G + t + 1, B ? U - t / 2 : A ? U + t * 4 : U - t * 4];
8298
- return [...[[A || B ? M.right - t : M.left, M.top], [A ? B ? M.right - t : M.left : M.right - t, M.bottom]], Z, ie];
8297
+ const Z = [G + t + 1, z ? U + t / 2 : A ? U + t * 4 : U - t * 4], ie = [G + t + 1, z ? U - t / 2 : A ? U + t * 4 : U - t * 4];
8298
+ return [...[[A || z ? M.right - t : M.left, M.top], [A ? z ? M.right - t : M.left : M.right - t, M.bottom]], Z, ie];
8299
8299
  }
8300
8300
  case "right": {
8301
- const Z = [G - t, B ? U + t / 2 : A ? U + t * 4 : U - t * 4], ie = [G - t, B ? U - t / 2 : A ? U + t * 4 : U - t * 4], K = [[A || B ? M.left + t : M.right, M.top], [A ? B ? M.left + t : M.right : M.left + t, M.bottom]];
8301
+ const Z = [G - t, z ? U + t / 2 : A ? U + t * 4 : U - t * 4], ie = [G - t, z ? U - t / 2 : A ? U + t * 4 : U - t * 4], K = [[A || z ? M.left + t : M.right, M.top], [A ? z ? M.left + t : M.right : M.left + t, M.bottom]];
8302
8302
  return [Z, ie, ...K];
8303
8303
  }
8304
8304
  default:
@@ -8409,7 +8409,7 @@ function HC(e) {
8409
8409
  getReferenceProps: E,
8410
8410
  getFloatingProps: w,
8411
8411
  getTriggerProps: S
8412
- } = An([b, C]);
8412
+ } = Vn([b, C]);
8413
8413
  t.useContextCallback("onNestedDialogOpen", (D) => {
8414
8414
  g(D + 1);
8415
8415
  }), t.useContextCallback("onNestedDialogClose", () => {
@@ -8994,7 +8994,7 @@ const rl = /* @__PURE__ */ u.forwardRef(function(t, n) {
8994
8994
  native: a
8995
8995
  }), w = Jr(v, {
8996
8996
  enabled: v != null
8997
- }), S = An([w]), R = u.useMemo(() => ({
8997
+ }), S = Vn([w]), R = u.useMemo(() => ({
8998
8998
  disabled: i,
8999
8999
  open: h
9000
9000
  }), [i, h]), O = p.useState("triggerProps", b);
@@ -11885,9 +11885,9 @@ Kt.yearFirstLocales = /* @__PURE__ */ new Set([
11885
11885
  "zh-HK",
11886
11886
  "zh-TW"
11887
11887
  ]);
11888
- const Vn = new Kt();
11888
+ const Fn = new Kt();
11889
11889
  class bE {
11890
- constructor(t, n, r = Vn) {
11890
+ constructor(t, n, r = Fn) {
11891
11891
  this.date = t, this.displayMonth = n, this.outside = !!(n && !r.isSameMonth(t, n)), this.dateLib = r, this.isoDate = r.format(t, "yyyy-MM-dd"), this.displayMonthId = r.format(n, "yyyy-MM"), this.dateMonthId = r.format(t, "yyyy-MM");
11892
11892
  }
11893
11893
  /**
@@ -12098,7 +12098,7 @@ const eD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12098
12098
  Weeks: Q1,
12099
12099
  YearsDropdown: J1
12100
12100
  }, Symbol.toStringTag, { value: "Module" }));
12101
- function Hn(e, t, n = !1, r = Vn) {
12101
+ function jn(e, t, n = !1, r = Fn) {
12102
12102
  let { from: o, to: i } = e;
12103
12103
  const { differenceInCalendarDays: a, isSameDay: s } = r;
12104
12104
  return o && i ? (a(i, o) < 0 && ([o, i] = [i, o]), a(t, o) >= (n ? 1 : 0) && a(i, t) >= (n ? 1 : 0)) : !n && i ? s(i, t) : !n && o ? s(o, t) : !1;
@@ -12121,7 +12121,7 @@ function yE(e) {
12121
12121
  function xE(e, t) {
12122
12122
  return Array.isArray(e) && e.every(t.isDate);
12123
12123
  }
12124
- function jn(e, t, n = Vn) {
12124
+ function Un(e, t, n = Fn) {
12125
12125
  const r = Array.isArray(t) ? t : [t], { isSameDay: o, differenceInCalendarDays: i, isAfter: a } = n;
12126
12126
  return r.some((s) => {
12127
12127
  if (typeof s == "boolean")
@@ -12131,7 +12131,7 @@ function jn(e, t, n = Vn) {
12131
12131
  if (xE(s, n))
12132
12132
  return s.some((l) => o(e, l));
12133
12133
  if (sl(s))
12134
- return Hn(s, e, !1, n);
12134
+ return jn(s, e, !1, n);
12135
12135
  if (yE(s))
12136
12136
  return Array.isArray(s.dayOfWeek) ? s.dayOfWeek.includes(e.getDay()) : s.dayOfWeek === e.getDay();
12137
12137
  if (lm(s)) {
@@ -12150,11 +12150,11 @@ function tD(e, t, n, r, o) {
12150
12150
  [pt.today]: []
12151
12151
  }, E = {};
12152
12152
  for (const w of e) {
12153
- const { date: S, displayMonth: R } = w, O = !!(R && !p(S, R)), P = !!(y && v(S, y)), D = !!(b && g(S, b)), T = !!(i && jn(S, i, o)), _ = !!(a && jn(S, a, o)) || P || D || // Broadcast calendar will show outside days as default
12153
+ const { date: S, displayMonth: R } = w, O = !!(R && !p(S, R)), P = !!(y && v(S, y)), D = !!(b && g(S, b)), T = !!(i && Un(S, i, o)), _ = !!(a && Un(S, a, o)) || P || D || // Broadcast calendar will show outside days as default
12154
12154
  !c && !l && O || c && l === !1 && O, M = f(S, d);
12155
12155
  O && C.outside.push(w), T && C.disabled.push(w), _ && C.hidden.push(w), M && C.today.push(w), s && Object.keys(s).forEach((k) => {
12156
12156
  const N = s?.[k];
12157
- N && jn(S, N, o) && (E[k] ? E[k].push(w) : E[k] = [w]);
12157
+ N && Un(S, N, o) && (E[k] ? E[k].push(w) : E[k] = [w]);
12158
12158
  });
12159
12159
  }
12160
12160
  return (w) => {
@@ -12219,19 +12219,19 @@ const iD = wE;
12219
12219
  function aD(e, t, n) {
12220
12220
  return (n ?? new Kt(t)).format(e, "d");
12221
12221
  }
12222
- function sD(e, t = Vn) {
12222
+ function sD(e, t = Fn) {
12223
12223
  return t.format(e, "LLLL");
12224
12224
  }
12225
12225
  function lD(e, t, n) {
12226
12226
  return (n ?? new Kt(t)).format(e, "cccccc");
12227
12227
  }
12228
- function cD(e, t = Vn) {
12228
+ function cD(e, t = Fn) {
12229
12229
  return e < 10 ? t.formatNumber(`0${e.toLocaleString()}`) : t.formatNumber(`${e.toLocaleString()}`);
12230
12230
  }
12231
12231
  function uD() {
12232
12232
  return "";
12233
12233
  }
12234
- function CE(e, t = Vn) {
12234
+ function CE(e, t = Fn) {
12235
12235
  return t.format(e, "yyyy");
12236
12236
  }
12237
12237
  const dD = CE, fD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -12463,7 +12463,7 @@ const ea = (e) => e instanceof HTMLElement ? e : null, ic = (e) => [
12463
12463
  ...e.querySelectorAll("[data-animated-month]") ?? []
12464
12464
  ], SD = (e) => ea(e.querySelector("[data-animated-month]")), ac = (e) => ea(e.querySelector("[data-animated-caption]")), sc = (e) => ea(e.querySelector("[data-animated-weeks]")), RD = (e) => ea(e.querySelector("[data-animated-nav]")), OD = (e) => ea(e.querySelector("[data-animated-weekdays]"));
12465
12465
  function PD(e, t, { classNames: n, months: r, focused: o, dateLib: i }) {
12466
- const a = Un(null), s = Un(r), l = Un(!1);
12466
+ const a = Mn(null), s = Mn(r), l = Mn(!1);
12467
12467
  Rw(() => {
12468
12468
  const c = s.current;
12469
12469
  if (s.current = r, !t || !e.current || // safety check because the ref can be set to anything by consumers
@@ -12698,7 +12698,7 @@ function LD(e, t, n, r, o, i, a) {
12698
12698
  function IE(e, t, n, r, o, i, a, s = 0) {
12699
12699
  if (s > 365)
12700
12700
  return;
12701
- const l = LD(e, t, n.date, r, o, i, a), c = !!(i.disabled && jn(l, i.disabled, a)), d = !!(i.hidden && jn(l, i.hidden, a)), f = l, p = new bE(l, f, a);
12701
+ const l = LD(e, t, n.date, r, o, i, a), c = !!(i.disabled && Un(l, i.disabled, a)), d = !!(i.hidden && Un(l, i.hidden, a)), f = l, p = new bE(l, f, a);
12702
12702
  return !c && !d ? p : IE(e, t, p, r, o, i, a, s + 1);
12703
12703
  }
12704
12704
  function BD(e, t, n, r, o) {
@@ -12735,7 +12735,7 @@ function zD(e, t) {
12735
12735
  isSelected: c
12736
12736
  };
12737
12737
  }
12738
- function $D(e, t, n = 0, r = 0, o = !1, i = Vn) {
12738
+ function $D(e, t, n = 0, r = 0, o = !1, i = Fn) {
12739
12739
  const { from: a, to: s } = t || {}, { isSameDay: l, isAfter: c, isBefore: d } = i;
12740
12740
  let f;
12741
12741
  if (!a && !s)
@@ -12763,7 +12763,7 @@ function $D(e, t, n = 0, r = 0, o = !1, i = Vn) {
12763
12763
  }
12764
12764
  return f;
12765
12765
  }
12766
- function WD(e, t, n = Vn) {
12766
+ function WD(e, t, n = Fn) {
12767
12767
  const r = Array.isArray(t) ? t : [t];
12768
12768
  let o = e.from;
12769
12769
  const i = n.differenceInCalendarDays(e.to, e.from), a = Math.min(i, 6);
@@ -12774,15 +12774,15 @@ function WD(e, t, n = Vn) {
12774
12774
  }
12775
12775
  return !1;
12776
12776
  }
12777
- function ib(e, t, n = Vn) {
12778
- return Hn(e, t.from, !1, n) || Hn(e, t.to, !1, n) || Hn(t, e.from, !1, n) || Hn(t, e.to, !1, n);
12777
+ function ib(e, t, n = Fn) {
12778
+ return jn(e, t.from, !1, n) || jn(e, t.to, !1, n) || jn(t, e.from, !1, n) || jn(t, e.to, !1, n);
12779
12779
  }
12780
- function qD(e, t, n = Vn) {
12780
+ function qD(e, t, n = Fn) {
12781
12781
  const r = Array.isArray(t) ? t : [t];
12782
- if (r.filter((s) => typeof s != "function").some((s) => typeof s == "boolean" ? s : n.isDate(s) ? Hn(e, s, !1, n) : xE(s, n) ? s.some((l) => Hn(e, l, !1, n)) : sl(s) ? s.from && s.to ? ib(e, { from: s.from, to: s.to }, n) : !1 : yE(s) ? WD(e, s.dayOfWeek, n) : lm(s) ? n.isAfter(s.before, s.after) ? ib(e, {
12782
+ if (r.filter((s) => typeof s != "function").some((s) => typeof s == "boolean" ? s : n.isDate(s) ? jn(e, s, !1, n) : xE(s, n) ? s.some((l) => jn(e, l, !1, n)) : sl(s) ? s.from && s.to ? ib(e, { from: s.from, to: s.to }, n) : !1 : yE(s) ? WD(e, s.dayOfWeek, n) : lm(s) ? n.isAfter(s.before, s.after) ? ib(e, {
12783
12783
  from: n.addDays(s.after, 1),
12784
12784
  to: n.addDays(s.before, -1)
12785
- }, n) : jn(e.from, s, n) || jn(e.to, s, n) : cm(s) || um(s) ? jn(e.from, s, n) || jn(e.to, s, n) : !1))
12785
+ }, n) : Un(e.from, s, n) || Un(e.to, s, n) : cm(s) || um(s) ? Un(e.from, s, n) || Un(e.to, s, n) : !1))
12786
12786
  return !0;
12787
12787
  const a = r.filter((s) => typeof s == "function");
12788
12788
  if (a.length) {
@@ -12804,7 +12804,7 @@ function HD(e, t) {
12804
12804
  const { min: h, max: g } = e, y = p ? $D(p, c, h, g, i, t) : void 0;
12805
12805
  return r && n && y?.from && y.to && qD({ from: y.from, to: y.to }, n, t) && (y.from = p, y.to = void 0), a || l(y), a?.(y, p, m, v), y;
12806
12806
  },
12807
- isSelected: (p) => c && Hn(c, p, !1, t)
12807
+ isSelected: (p) => c && jn(c, p, !1, t)
12808
12808
  };
12809
12809
  }
12810
12810
  function jD(e, t) {
@@ -12907,9 +12907,9 @@ function GD(e) {
12907
12907
  t.classNames
12908
12908
  ]);
12909
12909
  t.today || (t = { ...t, today: a.today() });
12910
- const { captionLayout: c, mode: d, navLayout: f, numberOfMonths: p = 1, onDayBlur: m, onDayClick: v, onDayFocus: h, onDayKeyDown: g, onDayMouseEnter: y, onDayMouseLeave: b, onNextClick: C, onPrevClick: E, showWeekNumber: w, styles: S } = t, { formatCaption: R, formatDay: O, formatMonthDropdown: P, formatWeekNumber: D, formatWeekNumberHeader: T, formatWeekdayName: _, formatYearDropdown: M } = o, k = VD(t, a), { days: N, months: A, navStart: F, navEnd: I, previousMonth: B, nextMonth: $, goToMonth: W } = k, V = tD(N, t, F, I, a), { isSelected: z, select: H, selected: q } = UD(t, a) ?? {}, { blur: G, focused: U, isFocusTarget: Z, moveFocus: ie, setFocused: K } = BD(t, k, V, z ?? (() => !1), a), { labelDayButton: j, labelGridcell: te, labelGrid: ue, labelMonthDropdown: Y, labelNav: X, labelPrevious: J, labelNext: re, labelWeekday: xe, labelWeekNumber: de, labelWeekNumberHeader: ye, labelYearDropdown: ne } = i, me = At(() => wD(a, t.ISOWeek, t.broadcastCalendar, t.today), [a, t.ISOWeek, t.broadcastCalendar, t.today]), ce = d !== void 0 || v !== void 0, ge = at(() => {
12911
- B && (W(B), E?.(B));
12912
- }, [B, W, E]), pe = at(() => {
12910
+ const { captionLayout: c, mode: d, navLayout: f, numberOfMonths: p = 1, onDayBlur: m, onDayClick: v, onDayFocus: h, onDayKeyDown: g, onDayMouseEnter: y, onDayMouseLeave: b, onNextClick: C, onPrevClick: E, showWeekNumber: w, styles: S } = t, { formatCaption: R, formatDay: O, formatMonthDropdown: P, formatWeekNumber: D, formatWeekNumberHeader: T, formatWeekdayName: _, formatYearDropdown: M } = o, k = VD(t, a), { days: N, months: A, navStart: F, navEnd: I, previousMonth: z, nextMonth: $, goToMonth: W } = k, V = tD(N, t, F, I, a), { isSelected: B, select: H, selected: q } = UD(t, a) ?? {}, { blur: G, focused: U, isFocusTarget: Z, moveFocus: ie, setFocused: K } = BD(t, k, V, B ?? (() => !1), a), { labelDayButton: j, labelGridcell: te, labelGrid: ue, labelMonthDropdown: Y, labelNav: X, labelPrevious: J, labelNext: re, labelWeekday: xe, labelWeekNumber: de, labelWeekNumberHeader: ye, labelYearDropdown: ne } = i, me = At(() => wD(a, t.ISOWeek, t.broadcastCalendar, t.today), [a, t.ISOWeek, t.broadcastCalendar, t.today]), ce = d !== void 0 || v !== void 0, ge = at(() => {
12911
+ z && (W(z), E?.(z));
12912
+ }, [z, W, E]), pe = at(() => {
12913
12913
  $ && (W($), C?.($));
12914
12914
  }, [W, $, C]), Ne = at((Re, we) => (Oe) => {
12915
12915
  Oe.preventDefault(), Oe.stopPropagation(), K(Re), !we.disabled && (H?.(Re.date, we, Oe), v?.(Re.date, we, Oe));
@@ -12953,7 +12953,7 @@ function GD(e) {
12953
12953
  }, [a, W]), { className: fe, style: Ve } = At(() => ({
12954
12954
  className: [l[ke.Root], t.className].filter(Boolean).join(" "),
12955
12955
  style: { ...S?.[ke.Root], ...t.style }
12956
- }), [l, t.className, t.style, S]), Qe = oD(t), Ge = Un(null);
12956
+ }), [l, t.className, t.style, S]), Qe = oD(t), Ge = Mn(null);
12957
12957
  PD(Ge, !!t.animate, {
12958
12958
  classNames: l,
12959
12959
  months: A,
@@ -12964,10 +12964,10 @@ function GD(e) {
12964
12964
  dayPickerProps: t,
12965
12965
  selected: q,
12966
12966
  select: H,
12967
- isSelected: z,
12967
+ isSelected: B,
12968
12968
  months: A,
12969
12969
  nextMonth: $,
12970
- previousMonth: B,
12970
+ previousMonth: z,
12971
12971
  goToMonth: W,
12972
12972
  getModifiers: V,
12973
12973
  components: r,
@@ -12985,7 +12985,7 @@ function GD(e) {
12985
12985
  ae.createElement(
12986
12986
  r.Months,
12987
12987
  { className: l[ke.Months], style: S?.[ke.Months] },
12988
- !t.hideNavigation && !f && ae.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: l[ke.Nav], style: S?.[ke.Nav], "aria-label": X(), onPreviousClick: ge, onNextClick: pe, previousMonth: B, nextMonth: $ }),
12988
+ !t.hideNavigation && !f && ae.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: l[ke.Nav], style: S?.[ke.Nav], "aria-label": X(), onPreviousClick: ge, onNextClick: pe, previousMonth: z, nextMonth: $ }),
12989
12989
  A.map((Re, we) => ae.createElement(
12990
12990
  r.Month,
12991
12991
  {
@@ -12999,8 +12999,8 @@ function GD(e) {
12999
12999
  },
13000
13000
  f === "around" && !t.hideNavigation && we === 0 && ae.createElement(
13001
13001
  r.PreviousMonthButton,
13002
- { type: "button", className: l[ke.PreviousMonthButton], tabIndex: B ? void 0 : -1, "aria-disabled": B ? void 0 : !0, "aria-label": J(B), onClick: ge, "data-animated-button": t.animate ? "true" : void 0 },
13003
- ae.createElement(r.Chevron, { disabled: B ? void 0 : !0, className: l[ke.Chevron], orientation: t.dir === "rtl" ? "right" : "left" })
13002
+ { type: "button", className: l[ke.PreviousMonthButton], tabIndex: z ? void 0 : -1, "aria-disabled": z ? void 0 : !0, "aria-label": J(z), onClick: ge, "data-animated-button": t.animate ? "true" : void 0 },
13003
+ ae.createElement(r.Chevron, { disabled: z ? void 0 : !0, className: l[ke.Chevron], orientation: t.dir === "rtl" ? "right" : "left" })
13004
13004
  ),
13005
13005
  ae.createElement(r.MonthCaption, { "data-animated-caption": t.animate ? "true" : void 0, className: l[ke.MonthCaption], style: S?.[ke.MonthCaption], calendarMonth: Re, displayIndex: we }, c?.startsWith("dropdown") ? ae.createElement(
13006
13006
  r.DropdownNav,
@@ -13027,7 +13027,7 @@ function GD(e) {
13027
13027
  { type: "button", className: l[ke.NextMonthButton], tabIndex: $ ? void 0 : -1, "aria-disabled": $ ? void 0 : !0, "aria-label": re($), onClick: pe, "data-animated-button": t.animate ? "true" : void 0 },
13028
13028
  ae.createElement(r.Chevron, { disabled: $ ? void 0 : !0, className: l[ke.Chevron], orientation: t.dir === "rtl" ? "left" : "right" })
13029
13029
  ),
13030
- we === p - 1 && f === "after" && !t.hideNavigation && ae.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: l[ke.Nav], style: S?.[ke.Nav], "aria-label": X(), onPreviousClick: ge, onNextClick: pe, previousMonth: B, nextMonth: $ }),
13030
+ we === p - 1 && f === "after" && !t.hideNavigation && ae.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: l[ke.Nav], style: S?.[ke.Nav], "aria-label": X(), onPreviousClick: ge, onNextClick: pe, previousMonth: z, nextMonth: $ }),
13031
13031
  ae.createElement(
13032
13032
  r.MonthGrid,
13033
13033
  { role: "grid", "aria-multiselectable": d === "multiple" || d === "range", "aria-label": ue(Re.date, a.options, a) || void 0, className: l[ke.MonthGrid], style: S?.[ke.MonthGrid] },
@@ -13045,9 +13045,9 @@ function GD(e) {
13045
13045
  }), className: l[ke.WeekNumber], scope: "row", role: "rowheader" }, D(Oe.weekNumber, a)),
13046
13046
  Oe.days.map((Me) => {
13047
13047
  const { date: ze } = Me, Fe = V(Me);
13048
- if (Fe[pt.focused] = !Fe.hidden && !!U?.isEqualTo(Me), Fe[gn.selected] = z?.(ze) || Fe.selected, sl(q)) {
13048
+ if (Fe[pt.focused] = !Fe.hidden && !!U?.isEqualTo(Me), Fe[gn.selected] = B?.(ze) || Fe.selected, sl(q)) {
13049
13049
  const { from: Xe, to: xt } = q;
13050
- Fe[gn.range_start] = !!(Xe && xt && a.isSameDay(ze, Xe)), Fe[gn.range_end] = !!(Xe && xt && a.isSameDay(ze, xt)), Fe[gn.range_middle] = Hn(q, ze, !0, a);
13050
+ Fe[gn.range_start] = !!(Xe && xt && a.isSameDay(ze, Xe)), Fe[gn.range_end] = !!(Xe && xt && a.isSameDay(ze, xt)), Fe[gn.range_middle] = jn(q, ze, !0, a);
13051
13051
  }
13052
13052
  const un = xD(Fe, S, t.modifiersStyles), jt = nD(Fe, l, t.modifiersClassNames), je = !ce && !Fe.hidden ? te(ze, Fe, a.options, a) : void 0;
13053
13053
  return ae.createElement(r.Day, { key: `${Me.isoDate}_${Me.displayMonthId}`, day: Me, modifiers: Fe, className: jt.join(" "), style: un, role: "gridcell", "aria-selected": Fe.selected || void 0, "aria-label": je, "data-day": Me.isoDate, "data-month": Me.outside ? Me.dateMonthId : void 0, "data-selected": Fe.selected || void 0, "data-disabled": Fe.disabled || void 0, "data-hidden": Fe.hidden || void 0, "data-outside": Me.outside || void 0, "data-focused": Fe.focused || void 0, "data-today": Fe.today || void 0 }, !Fe.hidden && ce ? ae.createElement(r.DayButton, { className: l[ke.DayButton], style: S?.[ke.DayButton], type: "button", day: Me, modifiers: Fe, disabled: !Fe.focused && Fe.disabled || void 0, "aria-disabled": Fe.focused && Fe.disabled || void 0, tabIndex: Z(Me) ? 0 : -1, "aria-label": j(ze, Fe, a.options, a), onClick: Ne(Me, Fe), onBlur: Pe(Me, Fe), onFocus: Ie(Me, Fe), onKeyDown: $e(Me, Fe), onMouseEnter: Ue(Me, Fe), onMouseLeave: Ye(Me, Fe) }, O(ze, a.options, a)) : !Fe.hidden && O(Me.date, a.options, a));
@@ -13321,7 +13321,7 @@ function _E() {
13321
13321
  return uc = e, uc;
13322
13322
  }
13323
13323
  var dc, cb;
13324
- function Fn() {
13324
+ function Ln() {
13325
13325
  if (cb) return dc;
13326
13326
  cb = 1;
13327
13327
  var e = _E(), t = typeof self == "object" && self && self.Object === Object && self, n = e || t || Function("return this")();
@@ -13331,7 +13331,7 @@ var fc, ub;
13331
13331
  function ta() {
13332
13332
  if (ub) return fc;
13333
13333
  ub = 1;
13334
- var e = Fn(), t = e.Symbol;
13334
+ var e = Ln(), t = e.Symbol;
13335
13335
  return fc = t, fc;
13336
13336
  }
13337
13337
  var pc, db;
@@ -13430,7 +13430,7 @@ var wc, yb;
13430
13430
  function QD() {
13431
13431
  if (yb) return wc;
13432
13432
  yb = 1;
13433
- var e = Fn(), t = e["__core-js_shared__"];
13433
+ var e = Ln(), t = e["__core-js_shared__"];
13434
13434
  return wc = t, wc;
13435
13435
  }
13436
13436
  var Cc, xb;
@@ -13674,7 +13674,7 @@ var Wc, zb;
13674
13674
  function bm() {
13675
13675
  if (zb) return Wc;
13676
13676
  zb = 1;
13677
- var e = no(), t = Fn(), n = e(t, "Map");
13677
+ var e = no(), t = Ln(), n = e(t, "Map");
13678
13678
  return Wc = n, Wc;
13679
13679
  }
13680
13680
  var qc, $b;
@@ -13908,7 +13908,7 @@ function EA() {
13908
13908
  return su = e, su;
13909
13909
  }
13910
13910
  var SA = EA();
13911
- const RA = /* @__PURE__ */ Dn(SA);
13911
+ const RA = /* @__PURE__ */ An(SA);
13912
13912
  var lu, av;
13913
13913
  function OA() {
13914
13914
  if (av) return lu;
@@ -13920,11 +13920,11 @@ function OA() {
13920
13920
  return lu = o, lu;
13921
13921
  }
13922
13922
  var PA = OA();
13923
- const BE = /* @__PURE__ */ Dn(PA);
13923
+ const BE = /* @__PURE__ */ An(PA);
13924
13924
  var MA = hm();
13925
- const hs = /* @__PURE__ */ Dn(MA);
13925
+ const hs = /* @__PURE__ */ An(MA);
13926
13926
  var NA = Or();
13927
- const zE = /* @__PURE__ */ Dn(NA);
13927
+ const zE = /* @__PURE__ */ An(NA);
13928
13928
  var Ia = { exports: {} }, et = {};
13929
13929
  var sv;
13930
13930
  function TA() {
@@ -14039,17 +14039,17 @@ function kA() {
14039
14039
  }
14040
14040
  }
14041
14041
  }
14042
- var S = a, R = i, O = e, P = l, D = n, T = p, _ = f, M = t, k = o, N = r, A = c, F = d, I = !1, B = !1;
14042
+ var S = a, R = i, O = e, P = l, D = n, T = p, _ = f, M = t, k = o, N = r, A = c, F = d, I = !1, z = !1;
14043
14043
  function $(Y) {
14044
14044
  return I || (I = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
14045
14045
  }
14046
14046
  function W(Y) {
14047
- return B || (B = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
14047
+ return z || (z = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
14048
14048
  }
14049
14049
  function V(Y) {
14050
14050
  return w(Y) === a;
14051
14051
  }
14052
- function z(Y) {
14052
+ function B(Y) {
14053
14053
  return w(Y) === i;
14054
14054
  }
14055
14055
  function H(Y) {
@@ -14082,7 +14082,7 @@ function kA() {
14082
14082
  function ue(Y) {
14083
14083
  return w(Y) === d;
14084
14084
  }
14085
- tt.ContextConsumer = S, tt.ContextProvider = R, tt.Element = O, tt.ForwardRef = P, tt.Fragment = D, tt.Lazy = T, tt.Memo = _, tt.Portal = M, tt.Profiler = k, tt.StrictMode = N, tt.Suspense = A, tt.SuspenseList = F, tt.isAsyncMode = $, tt.isConcurrentMode = W, tt.isContextConsumer = V, tt.isContextProvider = z, tt.isElement = H, tt.isForwardRef = q, tt.isFragment = G, tt.isLazy = U, tt.isMemo = Z, tt.isPortal = ie, tt.isProfiler = K, tt.isStrictMode = j, tt.isSuspense = te, tt.isSuspenseList = ue, tt.isValidElementType = E, tt.typeOf = w;
14085
+ tt.ContextConsumer = S, tt.ContextProvider = R, tt.Element = O, tt.ForwardRef = P, tt.Fragment = D, tt.Lazy = T, tt.Memo = _, tt.Portal = M, tt.Profiler = k, tt.StrictMode = N, tt.Suspense = A, tt.SuspenseList = F, tt.isAsyncMode = $, tt.isConcurrentMode = W, tt.isContextConsumer = V, tt.isContextProvider = B, tt.isElement = H, tt.isForwardRef = q, tt.isFragment = G, tt.isLazy = U, tt.isMemo = Z, tt.isPortal = ie, tt.isProfiler = K, tt.isStrictMode = j, tt.isSuspense = te, tt.isSuspenseList = ue, tt.isValidElementType = E, tt.typeOf = w;
14086
14086
  })()), tt;
14087
14087
  }
14088
14088
  var cv;
@@ -14111,9 +14111,9 @@ function _A() {
14111
14111
  return uu = t, uu;
14112
14112
  }
14113
14113
  var DA = _A();
14114
- const AA = /* @__PURE__ */ Dn(DA);
14114
+ const AA = /* @__PURE__ */ An(DA);
14115
14115
  var VA = $E();
14116
- const FA = /* @__PURE__ */ Dn(VA);
14116
+ const FA = /* @__PURE__ */ An(VA);
14117
14117
  var _a = function(t) {
14118
14118
  return BE(t) && t.indexOf("%") === t.length - 1;
14119
14119
  }, pn = function(t) {
@@ -14613,7 +14613,7 @@ function tV() {
14613
14613
  return yu = t, yu;
14614
14614
  }
14615
14615
  var nV = tV();
14616
- const jE = /* @__PURE__ */ Dn(nV);
14616
+ const jE = /* @__PURE__ */ An(nV);
14617
14617
  function Da(e) {
14618
14618
  return function() {
14619
14619
  return e;
@@ -15282,7 +15282,7 @@ var _u, Vv;
15282
15282
  function UV() {
15283
15283
  if (Vv) return _u;
15284
15284
  Vv = 1;
15285
- var e = Fn(), t = e.Uint8Array;
15285
+ var e = Ln(), t = e.Uint8Array;
15286
15286
  return _u = t, _u;
15287
15287
  }
15288
15288
  var Du, Fv;
@@ -15451,7 +15451,7 @@ yi.exports;
15451
15451
  var Kv;
15452
15452
  function iS() {
15453
15453
  return Kv || (Kv = 1, (function(e, t) {
15454
- var n = Fn(), r = tF(), o = t && !t.nodeType && t, i = o && !0 && e && !e.nodeType && e, a = i && i.exports === o, s = a ? n.Buffer : void 0, l = s ? s.isBuffer : void 0, c = l || r;
15454
+ var n = Ln(), r = tF(), o = t && !t.nodeType && t, i = o && !0 && e && !e.nodeType && e, a = i && i.exports === o, s = a ? n.Buffer : void 0, l = s ? s.isBuffer : void 0, c = l || r;
15455
15455
  e.exports = c;
15456
15456
  })(yi, yi.exports)), yi.exports;
15457
15457
  }
@@ -15653,28 +15653,28 @@ var ad, dy;
15653
15653
  function dF() {
15654
15654
  if (dy) return ad;
15655
15655
  dy = 1;
15656
- var e = no(), t = Fn(), n = e(t, "DataView");
15656
+ var e = no(), t = Ln(), n = e(t, "DataView");
15657
15657
  return ad = n, ad;
15658
15658
  }
15659
15659
  var sd, fy;
15660
15660
  function fF() {
15661
15661
  if (fy) return sd;
15662
15662
  fy = 1;
15663
- var e = no(), t = Fn(), n = e(t, "Promise");
15663
+ var e = no(), t = Ln(), n = e(t, "Promise");
15664
15664
  return sd = n, sd;
15665
15665
  }
15666
15666
  var ld, py;
15667
15667
  function lS() {
15668
15668
  if (py) return ld;
15669
15669
  py = 1;
15670
- var e = no(), t = Fn(), n = e(t, "Set");
15670
+ var e = no(), t = Ln(), n = e(t, "Set");
15671
15671
  return ld = n, ld;
15672
15672
  }
15673
15673
  var cd, my;
15674
15674
  function pF() {
15675
15675
  if (my) return cd;
15676
15676
  my = 1;
15677
- var e = no(), t = Fn(), n = e(t, "WeakMap");
15677
+ var e = no(), t = Ln(), n = e(t, "WeakMap");
15678
15678
  return cd = n, cd;
15679
15679
  }
15680
15680
  var ud, hy;
@@ -16042,7 +16042,7 @@ function AF() {
16042
16042
  return Vd = n, Vd;
16043
16043
  }
16044
16044
  var VF = AF();
16045
- const Wy = /* @__PURE__ */ Dn(VF);
16045
+ const Wy = /* @__PURE__ */ An(VF);
16046
16046
  function pS(e, t, n) {
16047
16047
  return t === !0 ? Wy(e, n) : hs(t) ? Wy(e, t) : e;
16048
16048
  }
@@ -16065,7 +16065,7 @@ function qy(e, t) {
16065
16065
  }
16066
16066
  return n;
16067
16067
  }
16068
- function qn(e) {
16068
+ function Hn(e) {
16069
16069
  for (var t = 1; t < arguments.length; t++) {
16070
16070
  var n = arguments[t] != null ? arguments[t] : {};
16071
16071
  t % 2 ? qy(Object(n), !0).forEach(function(r) {
@@ -16217,7 +16217,7 @@ var jy = 1, Pm = /* @__PURE__ */ (function(e) {
16217
16217
  }, {
16218
16218
  key: "getBBoxSnapshot",
16219
16219
  value: function() {
16220
- return this.lastBoundingBox.width >= 0 && this.lastBoundingBox.height >= 0 ? qn({}, this.lastBoundingBox) : {
16220
+ return this.lastBoundingBox.width >= 0 && this.lastBoundingBox.height >= 0 ? Hn({}, this.lastBoundingBox) : {
16221
16221
  width: 0,
16222
16222
  height: 0
16223
16223
  };
@@ -16250,12 +16250,12 @@ var jy = 1, Pm = /* @__PURE__ */ (function(e) {
16250
16250
  } : {
16251
16251
  top: l && l.top || 0
16252
16252
  };
16253
- return qn(qn({}, f), p);
16253
+ return Hn(Hn({}, f), p);
16254
16254
  }
16255
16255
  }, {
16256
16256
  key: "render",
16257
16257
  value: function() {
16258
- var r = this, o = this.props, i = o.content, a = o.width, s = o.height, l = o.wrapperStyle, c = o.payloadUniqBy, d = o.payload, f = qn(qn({
16258
+ var r = this, o = this.props, i = o.content, a = o.width, s = o.height, l = o.wrapperStyle, c = o.payloadUniqBy, d = o.payload, f = Hn(Hn({
16259
16259
  position: "absolute",
16260
16260
  width: a || "auto",
16261
16261
  height: s || "auto"
@@ -16266,14 +16266,14 @@ var jy = 1, Pm = /* @__PURE__ */ (function(e) {
16266
16266
  ref: function(m) {
16267
16267
  r.wrapperNode = m;
16268
16268
  }
16269
- }, YF(i, qn(qn({}, this.props), {}, {
16269
+ }, YF(i, Hn(Hn({}, this.props), {}, {
16270
16270
  payload: pS(d, c, GF)
16271
16271
  })));
16272
16272
  }
16273
16273
  }], [{
16274
16274
  key: "getWithHeight",
16275
16275
  value: function(r, o) {
16276
- var i = qn(qn({}, this.defaultProps), r.props), a = i.layout;
16276
+ var i = Hn(Hn({}, this.defaultProps), r.props), a = i.layout;
16277
16277
  return a === "vertical" && pn(r.props.height) ? {
16278
16278
  height: r.props.height
16279
16279
  } : a === "horizontal" ? {
@@ -16594,7 +16594,7 @@ function gL() {
16594
16594
  return of = o, of;
16595
16595
  }
16596
16596
  var bL = gL();
16597
- const vL = /* @__PURE__ */ Dn(bL);
16597
+ const vL = /* @__PURE__ */ An(bL);
16598
16598
  function _i(e) {
16599
16599
  "@babel/helpers - typeof";
16600
16600
  return _i = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
@@ -16709,12 +16709,12 @@ var ML = function(t) {
16709
16709
  paddingTop: 4,
16710
16710
  paddingBottom: 4,
16711
16711
  color: k.color || "#000"
16712
- }, s), F = k.formatter || f || PL, I = k.value, B = k.name, $ = I, W = B;
16712
+ }, s), F = k.formatter || f || PL, I = k.value, z = k.name, $ = I, W = z;
16713
16713
  if (F && $ != null && W != null) {
16714
- var V = F(I, B, k, N, d);
16714
+ var V = F(I, z, k, N, d);
16715
16715
  if (Array.isArray(V)) {
16716
- var z = yL(V, 2);
16717
- $ = z[0], W = z[1];
16716
+ var B = yL(V, 2);
16717
+ $ = B[0], W = B[1];
16718
16718
  } else
16719
16719
  $ = V;
16720
16720
  }
@@ -17229,7 +17229,7 @@ var sf, Cx;
17229
17229
  function nB() {
17230
17230
  if (Cx) return sf;
17231
17231
  Cx = 1;
17232
- var e = Fn(), t = function() {
17232
+ var e = Ln(), t = function() {
17233
17233
  return e.Date.now();
17234
17234
  };
17235
17235
  return sf = t, sf;
@@ -17350,7 +17350,7 @@ function sB() {
17350
17350
  return ff = r, ff;
17351
17351
  }
17352
17352
  var lB = sB();
17353
- const cB = /* @__PURE__ */ Dn(lB);
17353
+ const cB = /* @__PURE__ */ An(lB);
17354
17354
  function Ai(e) {
17355
17355
  "@babel/helpers - typeof";
17356
17356
  return Ai = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
@@ -17442,7 +17442,7 @@ var vB = /* @__PURE__ */ Q0(function(e, t) {
17442
17442
  var n = e.aspect, r = e.initialDimension, o = r === void 0 ? {
17443
17443
  width: -1,
17444
17444
  height: -1
17445
- } : r, i = e.width, a = i === void 0 ? "100%" : i, s = e.height, l = s === void 0 ? "100%" : s, c = e.minWidth, d = c === void 0 ? 0 : c, f = e.minHeight, p = e.maxHeight, m = e.children, v = e.debounce, h = v === void 0 ? 0 : v, g = e.id, y = e.className, b = e.onResize, C = e.style, E = C === void 0 ? {} : C, w = Un(null), S = Un();
17445
+ } : r, i = e.width, a = i === void 0 ? "100%" : i, s = e.height, l = s === void 0 ? "100%" : s, c = e.minWidth, d = c === void 0 ? 0 : c, f = e.minHeight, p = e.maxHeight, m = e.children, v = e.debounce, h = v === void 0 ? 0 : v, g = e.id, y = e.className, b = e.onResize, C = e.style, E = C === void 0 ? {} : C, w = Mn(null), S = Mn();
17446
17446
  S.current = b, J0(t, function() {
17447
17447
  return Object.defineProperty(w.current, "current", {
17448
17448
  get: function() {
@@ -17464,9 +17464,9 @@ var vB = /* @__PURE__ */ Q0(function(e, t) {
17464
17464
  });
17465
17465
  }, []);
17466
17466
  Ns(function() {
17467
- var M = function(B) {
17468
- var $, W = B[0].contentRect, V = W.width, z = W.height;
17469
- T(V, z), ($ = S.current) === null || $ === void 0 || $.call(S, V, z);
17467
+ var M = function(z) {
17468
+ var $, W = z[0].contentRect, V = W.width, B = W.height;
17469
+ T(V, B), ($ = S.current) === null || $ === void 0 || $.call(S, V, B);
17470
17470
  };
17471
17471
  h > 0 && (M = cB(M, h, {
17472
17472
  trailing: !0,
@@ -17919,7 +17919,7 @@ const PS = /* @__PURE__ */ u.createContext({
17919
17919
  getDescriptionProps: (e) => e
17920
17920
  });
17921
17921
  process.env.NODE_ENV !== "production" && (PS.displayName = "LabelableContext");
17922
- function Ln() {
17922
+ function Bn() {
17923
17923
  return u.useContext(PS);
17924
17924
  }
17925
17925
  const MS = /* @__PURE__ */ u.createContext(void 0);
@@ -17982,13 +17982,13 @@ const RB = "data-parent", NS = /* @__PURE__ */ u.forwardRef(function(t, n) {
17982
17982
  } = Ht(), A = RS(), {
17983
17983
  labelId: F,
17984
17984
  controlId: I,
17985
- setControlId: B,
17985
+ setControlId: z,
17986
17986
  getDescriptionProps: $
17987
- } = Ln(), W = EB(), V = W?.parent, z = V && W.allValues, H = w || A.disabled || W?.disabled || a, q = S ?? d, G = y ?? q, U = it(), Z = it();
17987
+ } = Bn(), W = EB(), V = W?.parent, B = V && W.allValues, H = w || A.disabled || W?.disabled || a, q = S ?? d, G = y ?? q, U = it(), Z = it();
17988
17988
  let ie = I;
17989
- z ? ie = p ? Z : `${V.id}-${G}` : s && (ie = s);
17989
+ B ? ie = p ? Z : `${V.id}-${G}` : s && (ie = s);
17990
17990
  let K = {};
17991
- z && (p ? K = W.parent.getParentProps() : G && (K = W.parent.getChildProps(G)));
17991
+ B && (p ? K = W.parent.getParentProps() : G && (K = W.parent.getChildProps(G)));
17992
17992
  const j = le(f), {
17993
17993
  checked: te = r,
17994
17994
  indeterminate: ue = l,
@@ -18007,11 +18007,11 @@ const RB = "data-parent", NS = /* @__PURE__ */ u.forwardRef(function(t, n) {
18007
18007
  state: "checked"
18008
18008
  });
18009
18009
  se(() => {
18010
- if (B !== nt)
18011
- return B(ie), () => {
18012
- B(void 0);
18010
+ if (z !== nt)
18011
+ return z(ie), () => {
18012
+ z(void 0);
18013
18013
  };
18014
- }, [ie, W, B, p]), ni({
18014
+ }, [ie, W, z, p]), ni({
18015
18015
  enabled: !W,
18016
18016
  id: U,
18017
18017
  commit: me.commit,
@@ -18060,7 +18060,7 @@ const RB = "data-parent", NS = /* @__PURE__ */ u.forwardRef(function(t, n) {
18060
18060
  } : lt,
18061
18061
  $,
18062
18062
  W ? me.getValidationProps : me.getInputValidationProps
18063
- ), Pe = z ? !!te : ce, $e = z && ue || l;
18063
+ ), Pe = B ? !!te : ce, $e = B && ue || l;
18064
18064
  u.useEffect(() => {
18065
18065
  V && G && V.disabledStatesRef.current.set(G, H);
18066
18066
  }, [V, H, G]);
@@ -18663,7 +18663,7 @@ function ra(e = {}) {
18663
18663
  } = e, {
18664
18664
  controlId: o,
18665
18665
  setControlId: i
18666
- } = Ln(), a = it(t);
18666
+ } = Bn(), a = it(t);
18667
18667
  return se(() => {
18668
18668
  if (!(!n && !t || i === nt)) {
18669
18669
  if (n) {
@@ -18830,18 +18830,18 @@ function HB(e) {
18830
18830
  } = e, {
18831
18831
  clearErrors: I
18832
18832
  } = ti(), {
18833
- setDirty: B,
18833
+ setDirty: z,
18834
18834
  validityData: $,
18835
18835
  shouldValidateOnChange: W,
18836
18836
  setFilled: V,
18837
- name: z,
18837
+ name: B,
18838
18838
  disabled: H,
18839
18839
  validation: q
18840
18840
  } = Ht(), G = ra({
18841
18841
  id: t
18842
18842
  }), U = qB({
18843
18843
  locale: A
18844
- }), [Z, ie] = u.useState(!1), [K, j] = u.useState(null), te = u.useRef([]), ue = u.useRef([]), Y = u.useRef(null), X = u.useRef(null), J = u.useRef(null), re = u.useRef(!0), xe = u.useRef(!1), de = u.useRef(null), ye = u.useRef(null), ne = u.useRef(null), me = u.useRef(_r), ce = u.useRef(null), ge = u.useRef([]), pe = u.useRef([]), Ne = H || f, Ie = z ?? d, Pe = l === "multiple", $e = l === "single", Ue = s !== void 0 || a !== void 0, Ye = g !== void 0, Ke = y !== void 0;
18844
+ }), [Z, ie] = u.useState(!1), [K, j] = u.useState(null), te = u.useRef([]), ue = u.useRef([]), Y = u.useRef(null), X = u.useRef(null), J = u.useRef(null), re = u.useRef(!0), xe = u.useRef(!1), de = u.useRef(null), ye = u.useRef(null), ne = u.useRef(null), me = u.useRef(_r), ce = u.useRef(null), ge = u.useRef([]), pe = u.useRef([]), Ne = H || f, Ie = B ?? d, Pe = l === "multiple", $e = l === "single", Ue = s !== void 0 || a !== void 0, Ye = g !== void 0, Ke = y !== void 0;
18845
18845
  let Te;
18846
18846
  E === "always" ? Te = "always" : Te = E ? "input-change" : !1;
18847
18847
  const [fe, Ve] = Wt({
@@ -18961,7 +18961,7 @@ function HB(e) {
18961
18961
  getItemProps: () => lt,
18962
18962
  forceMount: nt,
18963
18963
  requestSubmit: nt
18964
- })).current, Ut = l === "none" ? He : fe, da = u.useMemo(() => l === "none" ? Ut : Array.isArray(fe) ? fe.map((Ce) => hn(Ce, O)) : hn(fe, O), [Ut, O, l, fe]), zn = le(c), ii = le(n), fo = ee(_e, be.activeIndex), Il = ee(_e, be.selectedIndex), fa = ee(_e, be.positionerElement), Hh = ee(_e, be.listElement), ai = ee(_e, be.triggerElement), _l = ee(_e, be.inputElement), $n = ee(_e, be.inline), Nr = ee(_e, be.inputInsidePopup), D0 = gt(ai), {
18964
+ })).current, Ut = l === "none" ? He : fe, da = u.useMemo(() => l === "none" ? Ut : Array.isArray(fe) ? fe.map((Ce) => hn(Ce, O)) : hn(fe, O), [Ut, O, l, fe]), $n = le(c), ii = le(n), fo = ee(_e, be.activeIndex), Il = ee(_e, be.selectedIndex), fa = ee(_e, be.positionerElement), Hh = ee(_e, be.listElement), ai = ee(_e, be.triggerElement), _l = ee(_e, be.inputElement), Wn = ee(_e, be.inline), Nr = ee(_e, be.inputInsidePopup), D0 = gt(ai), {
18965
18965
  mounted: jh,
18966
18966
  setMounted: A0,
18967
18967
  transitionStatus: Dl
@@ -18989,7 +18989,7 @@ function HB(e) {
18989
18989
  const De = Ce.type || "none";
18990
18990
  if (Ce.activeIndex !== void 0)
18991
18991
  if (Ce.activeIndex === null)
18992
- me.current !== _r && (me.current = _r, zn(void 0, ui(De, void 0, {
18992
+ me.current !== _r && (me.current = _r, $n(void 0, ui(De, void 0, {
18993
18993
  index: -1
18994
18994
  })));
18995
18995
  else {
@@ -18997,7 +18997,7 @@ function HB(e) {
18997
18997
  me.current = {
18998
18998
  value: We,
18999
18999
  index: Ce.activeIndex
19000
- }, zn(We, ui(De, void 0, {
19000
+ }, $n(We, ui(De, void 0, {
19001
19001
  index: Ce.activeIndex
19002
19002
  }));
19003
19003
  }
@@ -19012,7 +19012,7 @@ function HB(e) {
19012
19012
  Re(Ce);
19013
19013
  }
19014
19014
  }), si = le((Ce, De) => {
19015
- we !== Ce && (De.reason === "escape-key" && Ye && ut.length === 0 && !_e.state.emptyRef.current && De.allowPropagation(), e.onOpenChange?.(Ce, De), !De.isCanceled && (!Ce && Z && ($e ? (j(ze), ze === "" && ie(!1)) : Pe && ($n || Nr ? Qt({
19015
+ we !== Ce && (De.reason === "escape-key" && Ye && ut.length === 0 && !_e.state.emptyRef.current && De.allowPropagation(), e.onOpenChange?.(Ce, De), !De.isCanceled && (!Ce && Z && ($e ? (j(ze), ze === "" && ie(!1)) : Pe && (Wn || Nr ? Qt({
19016
19016
  activeIndex: null
19017
19017
  }) : j(ze), Jt("", he(sr, De.event)))), Oe(Ce)));
19018
19018
  }), ma = le((Ce, De) => {
@@ -19058,9 +19058,9 @@ function HB(e) {
19058
19058
  const Ce = St(fe, R);
19059
19059
  X.current && X.current.value !== Ce && Jt(Ce, he(Ce === "" ? sr : dt));
19060
19060
  }
19061
- }), B0 = u.useMemo(() => $n && fa ? {
19061
+ }), B0 = u.useMemo(() => Wn && fa ? {
19062
19062
  current: fa.closest('[role="dialog"]')
19063
- } : Y, [$n, fa]);
19063
+ } : Y, [Wn, fa]);
19064
19064
  Nt({
19065
19065
  enabled: !e.actionsRef,
19066
19066
  open: we,
@@ -19089,7 +19089,7 @@ function HB(e) {
19089
19089
  g && (ge.current = ut, te.current.length = ut.length);
19090
19090
  }, [g, ut]), se(() => {
19091
19091
  const Ce = ce.current;
19092
- if (Ce && (Ce.hasQuery ? Te && _e.set("activeIndex", 0) : Te === "always" && _e.set("activeIndex", 0), ce.current = null), !we && !$n)
19092
+ if (Ce && (Ce.hasQuery ? Te && _e.set("activeIndex", 0) : Te === "always" && _e.set("activeIndex", 0), ce.current = null), !we && !Wn)
19093
19093
  return;
19094
19094
  const We = Ye || Ke ? ut : ge.current, ft = _e.state.activeIndex;
19095
19095
  if (ft == null) {
@@ -19115,7 +19115,7 @@ function HB(e) {
19115
19115
  }, _e.state.onItemHighlighted(wt, ui(dt, void 0, {
19116
19116
  index: ft
19117
19117
  })));
19118
- }, [fo, Te, Ke, Ye, ut, $n, we, _e]), se(() => {
19118
+ }, [fo, Te, Ke, Ye, ut, Wn, we, _e]), se(() => {
19119
19119
  if (!g || l === "none")
19120
19120
  return;
19121
19121
  const Ce = Xe;
@@ -19144,7 +19144,7 @@ function HB(e) {
19144
19144
  }, [Ye, Te, ut.length, Qt]), cr(ze, () => {
19145
19145
  !we || ze === "" || ze === String(Ge) || ie(!0);
19146
19146
  }), cr(fe, () => {
19147
- if (l !== "none" && (I(Ie), B(fe !== $.initialValue), W() ? q.commit(fe) : q.commit(fe, !0), Pe && _e.state.selectedIndex !== null && (!Array.isArray(fe) || fe.length === 0) && Qt({
19147
+ if (l !== "none" && (I(Ie), z(fe !== $.initialValue), W() ? q.commit(fe) : q.commit(fe, !0), Pe && _e.state.selectedIndex !== null && (!Array.isArray(fe) || fe.length === 0) && Qt({
19148
19148
  activeIndex: null,
19149
19149
  selectedIndex: null
19150
19150
  }), $e && !Ue && !Nr)) {
@@ -19152,7 +19152,7 @@ function HB(e) {
19152
19152
  He !== Ce && Jt(Ce, he(dt));
19153
19153
  }
19154
19154
  }), cr(He, () => {
19155
- l === "none" && (I(Ie), B(He !== $.initialValue), W() ? q.commit(He) : q.commit(He, !0));
19155
+ l === "none" && (I(Ie), z(He !== $.initialValue), W() ? q.commit(He) : q.commit(He, !0));
19156
19156
  }), cr(g, () => {
19157
19157
  if (!$e || Ue || Nr || Z)
19158
19158
  return;
@@ -19160,7 +19160,7 @@ function HB(e) {
19160
19160
  He !== Ce && Jt(Ce, he(dt));
19161
19161
  });
19162
19162
  const ha = Kp({
19163
- open: $n ? !0 : we,
19163
+ open: Wn ? !0 : we,
19164
19164
  onOpenChange: si,
19165
19165
  elements: {
19166
19166
  reference: Nr ? ai : _l,
@@ -19168,7 +19168,7 @@ function HB(e) {
19168
19168
  }
19169
19169
  });
19170
19170
  let Ll, Bl;
19171
- $n || (Ll = h ? "grid" : "listbox", Bl = we ? "true" : "false");
19171
+ Wn || (Ll = h ? "grid" : "listbox", Bl = we ? "true" : "false");
19172
19172
  const z0 = u.useMemo(() => {
19173
19173
  const Ce = _l?.tagName === "INPUT", De = Ce || we, We = Ce ? {
19174
19174
  autoComplete: "off",
@@ -19190,7 +19190,7 @@ function HB(e) {
19190
19190
  // This avoids top-bottom flip flickers if the preferred position is "top" when first tapping.
19191
19191
  touchOpenDelay: Nr ? 0 : 50
19192
19192
  }), W0 = Xo(ha, {
19193
- enabled: !p && !Ne && !$n,
19193
+ enabled: !p && !Ne && !Wn,
19194
19194
  outsidePressEvent: {
19195
19195
  mouse: "sloppy",
19196
19196
  // The visual viewport (affected by the mobile software keyboard) can be
@@ -19199,7 +19199,7 @@ function HB(e) {
19199
19199
  touch: "intentional"
19200
19200
  },
19201
19201
  // Without a popup, let the Escape key bubble the event up to other popups' handlers.
19202
- bubbles: $n ? !0 : void 0,
19202
+ bubbles: Wn ? !0 : void 0,
19203
19203
  outsidePress(Ce) {
19204
19204
  const De = Ct(Ce);
19205
19205
  return !Le(ai, De) && !Le(ye.current, De) && !Le(de.current, De);
@@ -19235,7 +19235,7 @@ function HB(e) {
19235
19235
  getReferenceProps: zl,
19236
19236
  getFloatingProps: $l,
19237
19237
  getItemProps: Wl
19238
- } = An([z0, $0, W0, q0]);
19238
+ } = Vn([z0, $0, W0, q0]);
19239
19239
  DS(() => {
19240
19240
  _e.update({
19241
19241
  inline: T,
@@ -19247,7 +19247,7 @@ function HB(e) {
19247
19247
  setInputValue: Jt,
19248
19248
  setSelectedValue: ma,
19249
19249
  setIndices: Qt,
19250
- onItemHighlighted: zn,
19250
+ onItemHighlighted: $n,
19251
19251
  handleSelection: L0,
19252
19252
  forceMount: pa,
19253
19253
  requestSubmit: Vl
@@ -19316,11 +19316,11 @@ function HB(e) {
19316
19316
  if (Pe)
19317
19317
  return;
19318
19318
  if (l === "none") {
19319
- B(De !== $.initialValue), Jt(De, We), W() && q.commit(De);
19319
+ z(De !== $.initialValue), Jt(De, We), W() && q.commit(De);
19320
19320
  return;
19321
19321
  }
19322
19322
  const wt = ge.current.find((It) => hn(It, O).toLowerCase() === De.toLowerCase());
19323
- wt != null && (B(wt !== $.initialValue), ma?.(wt, We), W() && q.commit(wt));
19323
+ wt != null && (z(wt !== $.initialValue), ma?.(wt, We), W() && q.commit(wt));
19324
19324
  }
19325
19325
  g ? ft() : (pa(), queueMicrotask(ft));
19326
19326
  }
@@ -19385,7 +19385,7 @@ const Fa = 2, jB = {
19385
19385
  validation: m
19386
19386
  } = Ht(), {
19387
19387
  labelId: v
19388
- } = Ln(), h = Zt(), g = ee(h, be.selectionMode), y = ee(h, be.disabled), b = ee(h, be.readOnly), C = ee(h, be.listElement), E = ee(h, be.triggerProps), w = ee(h, be.triggerElement), S = ee(h, be.inputInsidePopup), R = ee(h, be.open), O = ee(h, be.selectedValue), P = ee(h, be.activeIndex), D = ee(h, be.selectedIndex), T = vl(), _ = Lm(), M = mt(), k = c || y || a, N = u.useRef("");
19388
+ } = Bn(), h = Zt(), g = ee(h, be.selectionMode), y = ee(h, be.disabled), b = ee(h, be.readOnly), C = ee(h, be.listElement), E = ee(h, be.triggerProps), w = ee(h, be.triggerElement), S = ee(h, be.inputInsidePopup), R = ee(h, be.open), O = ee(h, be.selectedValue), P = ee(h, be.activeIndex), D = ee(h, be.selectedIndex), T = vl(), _ = Lm(), M = mt(), k = c || y || a, N = u.useRef("");
19389
19389
  function A(q) {
19390
19390
  N.current = q.pointerType;
19391
19391
  }
@@ -19405,7 +19405,7 @@ const Fa = 2, jB = {
19405
19405
  G !== void 0 && h.state.setSelectedValue(G, he("none"));
19406
19406
  }
19407
19407
  }), {
19408
- reference: B
19408
+ reference: z
19409
19409
  } = Jr(T, {
19410
19410
  enabled: !b && !y,
19411
19411
  event: "mousedown"
@@ -19419,13 +19419,13 @@ const Fa = 2, jB = {
19419
19419
  ...l,
19420
19420
  open: R,
19421
19421
  disabled: k
19422
- }), [l, R, k]), z = le((q) => {
19422
+ }), [l, R, k]), B = le((q) => {
19423
19423
  h.set("triggerElement", q);
19424
19424
  });
19425
19425
  return ve("button", t, {
19426
- ref: [n, $, z],
19426
+ ref: [n, $, B],
19427
19427
  state: V,
19428
- props: [E, B, I, {
19428
+ props: [E, z, I, {
19429
19429
  tabIndex: S ? 0 : -1,
19430
19430
  disabled: k,
19431
19431
  role: S ? "combobox" : void 0,
@@ -19508,9 +19508,9 @@ const UB = {
19508
19508
  validation: m
19509
19509
  } = Ht(), {
19510
19510
  labelId: v
19511
- } = Ln(), h = WS(), y = !!Wm(!0), b = Zt(), {
19511
+ } = Bn(), h = WS(), y = !!Wm(!0), b = Zt(), {
19512
19512
  filteredItems: C
19513
- } = oo(), E = Lm(), w = it(a), S = ro(), R = ee(b, be.disabled), O = ee(b, be.readOnly), P = ee(b, be.name), D = ee(b, be.selectionMode), T = ee(b, be.autoHighlight), _ = ee(b, be.inputProps), M = ee(b, be.triggerProps), k = ee(b, be.open), N = ee(b, be.mounted), A = ee(b, be.selectedValue), F = ee(b, be.popupSide), I = ee(b, be.positionerElement), B = !!T, $ = N && I ? F : null, W = c || R || i, V = C.length === 0, [z, H] = u.useState(null), q = u.useRef(!1), G = le((K) => {
19513
+ } = oo(), E = Lm(), w = it(a), S = ro(), R = ee(b, be.disabled), O = ee(b, be.readOnly), P = ee(b, be.name), D = ee(b, be.selectionMode), T = ee(b, be.autoHighlight), _ = ee(b, be.inputProps), M = ee(b, be.triggerProps), k = ee(b, be.open), N = ee(b, be.mounted), A = ee(b, be.selectedValue), F = ee(b, be.popupSide), I = ee(b, be.positionerElement), z = !!T, $ = N && I ? F : null, W = c || R || i, V = C.length === 0, [B, H] = u.useState(null), q = u.useRef(!1), G = le((K) => {
19514
19514
  const j = y || b.state.inline;
19515
19515
  j && !b.state.hasInputValue && b.state.setInputValue("", he(dt)), b.update({
19516
19516
  inputElement: K,
@@ -19558,7 +19558,7 @@ const UB = {
19558
19558
  ref: [n, b.state.inputRef, G],
19559
19559
  props: [_, M, {
19560
19560
  type: "text",
19561
- value: t.value ?? z ?? E,
19561
+ value: t.value ?? B ?? E,
19562
19562
  "aria-readonly": O || void 0,
19563
19563
  "aria-labelledby": v,
19564
19564
  disabled: W,
@@ -19588,8 +19588,8 @@ const UB = {
19588
19588
  if (q.current) {
19589
19589
  const Y = K.currentTarget.value;
19590
19590
  H(Y), Y === "" && !b.state.openOnInputClick && !b.state.inputInsidePopup && b.state.setOpen(!1, he(sr, K.nativeEvent));
19591
- const X = Y.trim(), J = B && X !== "";
19592
- !O && !W && X !== "" && (b.state.setOpen(!0, he(Fr, K.nativeEvent)), B || b.state.setIndices({
19591
+ const X = Y.trim(), J = z && X !== "";
19592
+ !O && !W && X !== "" && (b.state.setOpen(!0, he(Fr, K.nativeEvent)), z || b.state.setIndices({
19593
19593
  activeIndex: null,
19594
19594
  selectedIndex: null,
19595
19595
  type: b.state.keyboardActiveRef.current ? "keyboard" : "pointer"
@@ -19604,11 +19604,11 @@ const UB = {
19604
19604
  const j = K.currentTarget.value === "", te = he(sr, K.nativeEvent);
19605
19605
  j && !b.state.inputInsidePopup && (D === "single" && b.state.setSelectedValue(null, te), b.state.openOnInputClick || b.state.setOpen(!1, te));
19606
19606
  const ue = K.currentTarget.value.trim();
19607
- !O && !W && ue !== "" && (b.state.setOpen(!0, he(Fr, K.nativeEvent)), B || b.state.setIndices({
19607
+ !O && !W && ue !== "" && (b.state.setOpen(!0, he(Fr, K.nativeEvent)), z || b.state.setIndices({
19608
19608
  activeIndex: null,
19609
19609
  selectedIndex: null,
19610
19610
  type: b.state.keyboardActiveRef.current ? "keyboard" : "pointer"
19611
- })), k && b.state.activeIndex !== null && !B && b.state.setIndices({
19611
+ })), k && b.state.activeIndex !== null && !z && b.state.setIndices({
19612
19612
  activeIndex: null,
19613
19613
  selectedIndex: null,
19614
19614
  type: b.state.keyboardActiveRef.current ? "keyboard" : "pointer"
@@ -20011,15 +20011,15 @@ function oa(e) {
20011
20011
  "inline-start": N ? "right" : "left"
20012
20012
  }[r], F = i === "center" ? A : `${A}-${i}`;
20013
20013
  let I = l;
20014
- const B = 1, $ = r === "bottom" ? B : 0, W = r === "top" ? B : 0, V = r === "right" ? B : 0, z = r === "left" ? B : 0;
20014
+ const z = 1, $ = r === "bottom" ? z : 0, W = r === "top" ? z : 0, V = r === "right" ? z : 0, B = r === "left" ? z : 0;
20015
20015
  typeof I == "number" ? I = {
20016
20016
  top: I + $,
20017
- right: I + z,
20017
+ right: I + B,
20018
20018
  bottom: I + W,
20019
20019
  left: I + V
20020
20020
  } : I && (I = {
20021
20021
  top: (I.top || 0) + $,
20022
- right: (I.right || 0) + z,
20022
+ right: (I.right || 0) + B,
20023
20023
  bottom: (I.bottom || 0) + W,
20024
20024
  left: (I.left || 0) + V
20025
20025
  });
@@ -20038,10 +20038,10 @@ function oa(e) {
20038
20038
  // Ensure the popup flips if it's been limited by its --available-height and it resizes.
20039
20039
  // Since the size() padding is smaller than the flip() padding, flip() will take precedence.
20040
20040
  padding: {
20041
- top: I.top + B,
20042
- right: I.right + B,
20043
- bottom: I.bottom + B,
20044
- left: I.left + B
20041
+ top: I.top + z,
20042
+ right: I.right + z,
20043
+ bottom: I.bottom + z,
20044
+ left: I.left + z
20045
20045
  },
20046
20046
  mainAxis: !g && R === "flip",
20047
20047
  crossAxis: O === "flip" ? "alignment" : !1,
@@ -20109,11 +20109,11 @@ function oa(e) {
20109
20109
  placement: we,
20110
20110
  rects: Oe,
20111
20111
  y: Me
20112
- } = Ge, ze = $t(we), Fe = an(ze), un = q.current, jt = Re.arrow?.x || 0, je = Re.arrow?.y || 0, Xe = un?.clientWidth || 0, xt = un?.clientHeight || 0, ut = jt + Xe / 2, _e = je + xt / 2, Ut = Math.abs(Re.shift?.y || 0), da = Oe.reference.height / 2, zn = typeof o == "function" ? o(Dx(Ge, r, N)) : o, ii = Ut > zn, fo = {
20113
- top: `${ut}px calc(100% + ${zn}px)`,
20114
- bottom: `${ut}px ${-zn}px`,
20115
- left: `calc(100% + ${zn}px) ${_e}px`,
20116
- right: `${-zn}px ${_e}px`
20112
+ } = Ge, ze = $t(we), Fe = an(ze), un = q.current, jt = Re.arrow?.x || 0, je = Re.arrow?.y || 0, Xe = un?.clientWidth || 0, xt = un?.clientHeight || 0, ut = jt + Xe / 2, _e = je + xt / 2, Ut = Math.abs(Re.shift?.y || 0), da = Oe.reference.height / 2, $n = typeof o == "function" ? o(Dx(Ge, r, N)) : o, ii = Ut > $n, fo = {
20113
+ top: `${ut}px calc(100% + ${$n}px)`,
20114
+ bottom: `${ut}px ${-$n}px`,
20115
+ left: `calc(100% + ${$n}px) ${_e}px`,
20116
+ right: `${-$n}px ${_e}px`
20117
20117
  }[ze], Il = `${ut}px ${Oe.reference.y + da - Me}px`;
20118
20118
  return He.floating.style.setProperty("--transform-origin", te && Fe === "y" && ii ? Il : fo), {};
20119
20119
  }
@@ -20263,11 +20263,11 @@ const YS = /* @__PURE__ */ u.forwardRef(function(t, n) {
20263
20263
  arrowStyles: N.arrowStyles,
20264
20264
  anchorHidden: N.anchorHidden,
20265
20265
  isPositioned: N.isPositioned
20266
- }), [N.side, N.align, N.arrowRef, N.arrowUncentered, N.arrowStyles, N.anchorHidden, N.isPositioned]), B = le((W) => {
20266
+ }), [N.side, N.align, N.arrowRef, N.arrowUncentered, N.arrowStyles, N.anchorHidden, N.isPositioned]), z = le((W) => {
20267
20267
  b.set("positionerElement", W);
20268
20268
  }), $ = ve("div", t, {
20269
20269
  state: F,
20270
- ref: [n, B],
20270
+ ref: [n, z],
20271
20271
  props: [A, y],
20272
20272
  stateAttributesMapping: Xt
20273
20273
  });
@@ -20452,7 +20452,7 @@ const eR = /* @__PURE__ */ u.memo(/* @__PURE__ */ u.forwardRef(function(t, n) {
20452
20452
  F.id = void 0, F.onFocus = void 0;
20453
20453
  const {
20454
20454
  getButtonProps: I,
20455
- buttonRef: B
20455
+ buttonRef: z
20456
20456
  } = Tt({
20457
20457
  disabled: s,
20458
20458
  focusableWhenDisabled: !0,
@@ -20484,15 +20484,15 @@ const eR = /* @__PURE__ */ u.memo(/* @__PURE__ */ u.forwardRef(function(t, n) {
20484
20484
  d.current = !1, !(s || b || H.button !== 0 || q || !P) && $(H.nativeEvent);
20485
20485
  }
20486
20486
  }, V = ve("div", t, {
20487
- ref: [B, n, p.ref, M],
20487
+ ref: [z, n, p.ref, M],
20488
20488
  state: A,
20489
20489
  props: [F, W, c, I]
20490
- }), z = u.useMemo(() => ({
20490
+ }), B = u.useMemo(() => ({
20491
20491
  selected: N,
20492
20492
  textRef: f
20493
20493
  }), [N, f]);
20494
20494
  return /* @__PURE__ */ x(Gm.Provider, {
20495
- value: z,
20495
+ value: B,
20496
20496
  children: V
20497
20497
  });
20498
20498
  }));
@@ -21303,11 +21303,11 @@ const yR = /* @__PURE__ */ u.forwardRef(function(t, n) {
21303
21303
  } = t, {
21304
21304
  store: b
21305
21305
  } = xn(), C = uz(), E = xl(!0), w = b.useState("parent"), S = b.useState("floatingRootContext"), R = b.useState("floatingTreeRoot"), O = b.useState("mounted"), P = b.useState("open"), D = b.useState("modal"), T = b.useState("activeTriggerElement"), _ = b.useState("lastOpenChangeReason"), M = b.useState("floatingNodeId"), k = b.useState("floatingParentNodeId");
21306
- let N = r, A = c, F = d, I = l, B = g;
21306
+ let N = r, A = c, F = d, I = l, z = g;
21307
21307
  w.type === "context-menu" && (N = r ?? w.context?.anchor, I = I ?? "start", !s && I !== "center" && (F = t.alignOffset ?? 2, A = t.sideOffset ?? -5));
21308
21308
  let $ = s, W = I;
21309
- w.type === "menu" ? ($ = $ ?? "inline-end", W = W ?? "start", B = t.collisionAvoidance ?? zp) : w.type === "menubar" && ($ = $ ?? "bottom", W = W ?? "start");
21310
- const V = w.type === "context-menu", z = oa({
21309
+ w.type === "menu" ? ($ = $ ?? "inline-end", W = W ?? "start", z = t.collisionAvoidance ?? zp) : w.type === "menubar" && ($ = $ ?? "bottom", W = W ?? "start");
21310
+ const V = w.type === "context-menu", B = oa({
21311
21311
  anchor: N,
21312
21312
  floatingRootContext: S,
21313
21313
  positionMethod: E ? "fixed" : o,
@@ -21323,7 +21323,7 @@ const yR = /* @__PURE__ */ u.forwardRef(function(t, n) {
21323
21323
  nodeId: M,
21324
21324
  keepMounted: C,
21325
21325
  disableAnchorTracking: h,
21326
- collisionAvoidance: B,
21326
+ collisionAvoidance: z,
21327
21327
  shiftCrossAxis: V,
21328
21328
  externalTree: R
21329
21329
  }), H = u.useMemo(() => {
@@ -21332,11 +21332,11 @@ const yR = /* @__PURE__ */ u.forwardRef(function(t, n) {
21332
21332
  role: "presentation",
21333
21333
  hidden: !O,
21334
21334
  style: {
21335
- ...z.positionerStyles,
21335
+ ...B.positionerStyles,
21336
21336
  ...K
21337
21337
  }
21338
21338
  };
21339
- }, [P, O, z.positionerStyles]);
21339
+ }, [P, O, B.positionerStyles]);
21340
21340
  u.useEffect(() => {
21341
21341
  function K(j) {
21342
21342
  j.open ? (j.parentNodeId === M && b.set("hoverEnabled", !1), j.nodeId !== M && j.parentNodeId === b.select("floatingParentNodeId") && b.setOpen(!1, he(gi))) : j.parentNodeId === M && j.reason !== gi && b.set("hoverEnabled", !0);
@@ -21374,18 +21374,18 @@ const yR = /* @__PURE__ */ u.forwardRef(function(t, n) {
21374
21374
  }, [R.events, P, b, M, k]);
21375
21375
  const q = u.useMemo(() => ({
21376
21376
  open: P,
21377
- side: z.side,
21378
- align: z.align,
21379
- anchorHidden: z.anchorHidden,
21377
+ side: B.side,
21378
+ align: B.align,
21379
+ anchorHidden: B.anchorHidden,
21380
21380
  nested: w.type === "menu"
21381
- }), [P, z.side, z.align, z.anchorHidden, w.type]), G = u.useMemo(() => ({
21382
- side: z.side,
21383
- align: z.align,
21384
- arrowRef: z.arrowRef,
21385
- arrowUncentered: z.arrowUncentered,
21386
- arrowStyles: z.arrowStyles,
21387
- nodeId: z.context.nodeId
21388
- }), [z.side, z.align, z.arrowRef, z.arrowUncentered, z.arrowStyles, z.context.nodeId]), U = ve("div", t, {
21381
+ }), [P, B.side, B.align, B.anchorHidden, w.type]), G = u.useMemo(() => ({
21382
+ side: B.side,
21383
+ align: B.align,
21384
+ arrowRef: B.arrowRef,
21385
+ arrowUncentered: B.arrowUncentered,
21386
+ arrowStyles: B.arrowStyles,
21387
+ nodeId: B.context.nodeId
21388
+ }), [B.side, B.align, B.arrowRef, B.arrowUncentered, B.arrowStyles, B.context.nodeId]), U = ve("div", t, {
21389
21389
  state: q,
21390
21390
  stateAttributesMapping: Xt,
21391
21391
  ref: [n, b.useStateSetter("positionerElement")],
@@ -21689,7 +21689,7 @@ function OR(e) {
21689
21689
  type: void 0
21690
21690
  }, [g, y, b, C]), w = ih.useStore(p?.store, {
21691
21691
  parent: E
21692
- }), S = w.useState("floatingTreeRoot"), R = Fp(S), O = _n();
21692
+ }), S = w.useState("floatingTreeRoot"), R = Fp(S), O = Dn();
21693
21693
  se(() => {
21694
21694
  g && !y ? w.update({
21695
21695
  parent: {
@@ -21703,7 +21703,7 @@ function OR(e) {
21703
21703
  floatingParentNodeId: O
21704
21704
  });
21705
21705
  }, [g, y, R, O, w]), w.useControlledProp("open", n, i), w.useControlledProp("activeTriggerId", m, v), w.useContextCallback("onOpenChangeComplete", o);
21706
- const P = w.useState("open"), D = w.useState("activeTriggerElement"), T = w.useState("positionerElement"), _ = w.useState("hoverEnabled"), M = w.useState("modal"), k = w.useState("disabled"), N = w.useState("lastOpenChangeReason"), A = w.useState("parent"), F = w.useState("activeIndex"), I = w.useState("payload"), B = w.useState("floatingParentNodeId"), $ = u.useRef(null), W = B != null;
21706
+ const P = w.useState("open"), D = w.useState("activeTriggerElement"), T = w.useState("positionerElement"), _ = w.useState("hoverEnabled"), M = w.useState("modal"), k = w.useState("disabled"), N = w.useState("lastOpenChangeReason"), A = w.useState("parent"), F = w.useState("activeIndex"), I = w.useState("payload"), z = w.useState("floatingParentNodeId"), $ = u.useRef(null), W = z != null;
21707
21707
  let V;
21708
21708
  process.env.NODE_ENV !== "production" && A.type !== void 0 && s !== void 0 && console.warn("Base UI: The `modal` prop is not supported on nested menus. It will be ignored."), w.useSyncedValues({
21709
21709
  disabled: a,
@@ -21711,7 +21711,7 @@ function OR(e) {
21711
21711
  rootId: Qr()
21712
21712
  });
21713
21713
  const {
21714
- openMethod: z,
21714
+ openMethod: B,
21715
21715
  triggerProps: H,
21716
21716
  reset: q
21717
21717
  } = Ui(P);
@@ -21734,7 +21734,7 @@ function OR(e) {
21734
21734
  U.current = !0;
21735
21735
  });
21736
21736
  }
21737
- }, [Z, P, A.type]), $i(P && M && N !== Rt && z !== "touch", T), se(() => {
21737
+ }, [Z, P, A.type]), $i(P && M && N !== Rt && B !== "touch", T), se(() => {
21738
21738
  !P && !_ && w.set("hoverEnabled", !0);
21739
21739
  }, [P, _, w]);
21740
21740
  const ie = u.useRef(!0), K = mt(), j = le((fe, Ve) => {
@@ -21772,7 +21772,7 @@ function OR(e) {
21772
21772
  const ze = Ve.trigger?.id ?? null;
21773
21773
  (ze || fe) && (Me.activeTriggerId = ze, Me.activeTriggerElement = Ve.trigger ?? null), w.update(Me);
21774
21774
  }
21775
- Qe === Rt ? Ot.flushSync(Oe) : Oe(), A.type === "menubar" && (Qe === Ri || Qe === kn || Qe === Rt || Qe === Ro || Qe === gi) ? w.set("instantType", "group") : Re || we ? w.set("instantType", Re ? "click" : "dismiss") : w.set("instantType", void 0);
21775
+ Qe === Rt ? Ot.flushSync(Oe) : Oe(), A.type === "menubar" && (Qe === Ri || Qe === In || Qe === Rt || Qe === Ro || Qe === gi) ? w.set("instantType", "group") : Re || we ? w.set("instantType", Re ? "click" : "dismiss") : w.set("instantType", void 0);
21776
21776
  }), te = u.useCallback((fe) => {
21777
21777
  const Ve = he(fe);
21778
21778
  return Ve.preventUnmountOnClose = () => {
@@ -21842,7 +21842,7 @@ function OR(e) {
21842
21842
  getFloatingProps: ge,
21843
21843
  getItemProps: pe,
21844
21844
  getTriggerProps: Ne
21845
- } = An([J, re, ye, me]), Ie = u.useMemo(() => {
21845
+ } = Vn([J, re, ye, me]), Ie = u.useMemo(() => {
21846
21846
  const fe = Mt(ce(), {
21847
21847
  onMouseEnter() {
21848
21848
  w.set("hoverEnabled", !0);
@@ -21959,8 +21959,8 @@ function sh(e) {
21959
21959
  function MR(e) {
21960
21960
  if (st(e) && e.hasAttribute("data-rootownerid"))
21961
21961
  return e.getAttribute("data-rootownerid") ?? void 0;
21962
- if (!Mn(e))
21963
- return MR(Tn(e));
21962
+ if (!Nn(e))
21963
+ return MR(kn(e));
21964
21964
  }
21965
21965
  function gz(e) {
21966
21966
  const {
@@ -21997,7 +21997,7 @@ const La = 2, NR = /* @__PURE__ */ u.forwardRef(function(t, n) {
21997
21997
  } = t, v = xn(!0), h = f?.store ?? v?.store;
21998
21998
  if (!h)
21999
21999
  throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Menu.Trigger> must be either used within a <Menu.Root> component or provided with a handle." : Ae(85));
22000
- const g = it(s), y = h.useState("isTriggerActive", g), b = h.useState("floatingRootContext"), C = h.useState("isOpenedByTrigger", g), E = u.useRef(null), w = vz(), S = tm(!0), R = Er(), O = u.useMemo(() => R ?? new Dp(), [R]), P = Fp(O), D = _n(), {
22000
+ const g = it(s), y = h.useState("isTriggerActive", g), b = h.useState("floatingRootContext"), C = h.useState("isOpenedByTrigger", g), E = u.useRef(null), w = vz(), S = tm(!0), R = Er(), O = u.useMemo(() => R ?? new Dp(), [R]), P = Fp(O), D = Dn(), {
22001
22001
  registerTrigger: T,
22002
22002
  isMountedByThisTrigger: _
22003
22003
  } = $s(g, E, h, {
@@ -22018,7 +22018,7 @@ const La = 2, NR = /* @__PURE__ */ u.forwardRef(function(t, n) {
22018
22018
  u.useEffect(() => {
22019
22019
  !C && w.type === void 0 && (h.context.allowMouseUpTriggerRef.current = !1);
22020
22020
  }, [h, C, w.type]);
22021
- const F = u.useRef(null), I = mt(), B = le((re) => {
22021
+ const F = u.useRef(null), I = mt(), z = le((re) => {
22022
22022
  if (!F.current)
22023
22023
  return;
22024
22024
  I.clear(), h.context.allowMouseUpTriggerRef.current = !1;
@@ -22032,10 +22032,10 @@ const La = 2, NR = /* @__PURE__ */ u.forwardRef(function(t, n) {
22032
22032
  });
22033
22033
  });
22034
22034
  u.useEffect(() => {
22035
- C && h.select("lastOpenChangeReason") === Rt && Vt(F.current).addEventListener("mouseup", B, {
22035
+ C && h.select("lastOpenChangeReason") === Rt && Vt(F.current).addEventListener("mouseup", z, {
22036
22036
  once: !0
22037
22037
  });
22038
- }, [C, B, h]);
22038
+ }, [C, z, h]);
22039
22039
  const $ = w.type === "menubar" && w.context.hasSubmenuOpen, V = Gs(b, {
22040
22040
  enabled: (l ?? $ ?? !1) && !k && w.type !== "context-menu" && (w.type !== "menubar" || $ && !_),
22041
22041
  handleClose: Ks({
@@ -22050,19 +22050,19 @@ const La = 2, NR = /* @__PURE__ */ u.forwardRef(function(t, n) {
22050
22050
  triggerElementRef: E,
22051
22051
  externalTree: O,
22052
22052
  isActiveTrigger: y
22053
- }), z = bz(C, h.select("lastOpenChangeReason")), H = Jr(b, {
22053
+ }), B = bz(C, h.select("lastOpenChangeReason")), H = Jr(b, {
22054
22054
  enabled: !k && w.type !== "context-menu",
22055
22055
  event: C && w.type === "menubar" ? "click" : "mousedown",
22056
22056
  toggle: !0,
22057
22057
  ignoreMouse: !1,
22058
- stickIfOpen: w.type === void 0 ? z : !1
22058
+ stickIfOpen: w.type === void 0 ? B : !1
22059
22059
  }), q = WC(b, {
22060
22060
  enabled: !k && (w.type !== "menubar" && C || $)
22061
22061
  }), G = gz({
22062
22062
  open: C,
22063
22063
  enabled: w.type === "menubar",
22064
22064
  mouseDownAction: "open"
22065
- }), U = An([H, q]), Z = w.type === "menubar", ie = u.useMemo(() => ({
22065
+ }), U = Vn([H, q]), Z = w.type === "menubar", ie = u.useMemo(() => ({
22066
22066
  disabled: k,
22067
22067
  open: C
22068
22068
  }), [k, C]), K = h.useState("triggerProps", _), j = [F, n, A, T, E], te = [U.getReferenceProps(), V ?? lt, K, {
@@ -22073,7 +22073,7 @@ const La = 2, NR = /* @__PURE__ */ u.forwardRef(function(t, n) {
22073
22073
  return;
22074
22074
  I.start(200, () => {
22075
22075
  h.context.allowMouseUpTriggerRef.current = !0;
22076
- }), Vt(re.currentTarget).addEventListener("mouseup", B, {
22076
+ }), Vt(re.currentTarget).addEventListener("mouseup", z, {
22077
22077
  once: !0
22078
22078
  });
22079
22079
  }
@@ -22081,7 +22081,7 @@ const La = 2, NR = /* @__PURE__ */ u.forwardRef(function(t, n) {
22081
22081
  role: "menuitem"
22082
22082
  } : {}, G, m, N], ue = u.useRef(null), Y = le((re) => {
22083
22083
  Ot.flushSync(() => {
22084
- h.setOpen(!1, he(kn, re.nativeEvent, re.currentTarget));
22084
+ h.setOpen(!1, he(In, re.nativeEvent, re.currentTarget));
22085
22085
  }), vC(ue.current)?.focus();
22086
22086
  }), X = le((re) => {
22087
22087
  const xe = h.select("positionerElement");
@@ -22089,7 +22089,7 @@ const La = 2, NR = /* @__PURE__ */ u.forwardRef(function(t, n) {
22089
22089
  h.context.beforeContentFocusGuardRef.current?.focus();
22090
22090
  else {
22091
22091
  Ot.flushSync(() => {
22092
- h.setOpen(!1, he(kn, re.nativeEvent, re.currentTarget));
22092
+ h.setOpen(!1, he(In, re.nativeEvent, re.currentTarget));
22093
22093
  });
22094
22094
  let de = bC(E.current);
22095
22095
  for (; de !== null && Le(xe, de) || de?.hasAttribute("aria-hidden"); ) {
@@ -22191,7 +22191,7 @@ const TR = /* @__PURE__ */ u.forwardRef(function(t, n) {
22191
22191
  nativeButton: s,
22192
22192
  itemMetadata: _,
22193
22193
  nodeId: v?.nodeId
22194
- }), F = h.useState("hoverEnabled"), I = h.useState("allowMouseEnter"), B = Gs(b, {
22194
+ }), F = h.useState("hoverEnabled"), I = h.useState("allowMouseEnter"), z = Gs(b, {
22195
22195
  enabled: F && l && !k && I,
22196
22196
  handleClose: Ks({
22197
22197
  blockPointerEvents: !0
@@ -22211,17 +22211,17 @@ const TR = /* @__PURE__ */ u.forwardRef(function(t, n) {
22211
22211
  toggle: !l,
22212
22212
  ignoreMouse: l,
22213
22213
  stickIfOpen: !1
22214
- }), W = An([$]), V = h.useState("triggerProps", !0);
22214
+ }), W = Vn([$]), V = h.useState("triggerProps", !0);
22215
22215
  delete V.id;
22216
- const z = u.useMemo(() => ({
22216
+ const B = u.useMemo(() => ({
22217
22217
  disabled: k,
22218
22218
  highlighted: T,
22219
22219
  open: y
22220
22220
  }), [k, T, y]);
22221
22221
  return ve("div", t, {
22222
- state: z,
22222
+ state: B,
22223
22223
  stateAttributesMapping: Qo,
22224
- props: [W.getReferenceProps(), B, V, D, {
22224
+ props: [W.getReferenceProps(), z, V, D, {
22225
22225
  tabIndex: y || T ? 0 : -1,
22226
22226
  onBlur() {
22227
22227
  T && P.set("activeIndex", null);
@@ -22313,7 +22313,7 @@ const _R = /* @__PURE__ */ u.forwardRef(function(t, n) {
22313
22313
  validation: O
22314
22314
  } = Ht(), {
22315
22315
  labelId: P
22316
- } = Ln(), D = ra({
22316
+ } = Bn(), D = ra({
22317
22317
  id: i
22318
22318
  });
22319
22319
  se(() => {
@@ -22421,19 +22421,19 @@ function wz(e) {
22421
22421
  both: N
22422
22422
  }[i];
22423
22423
  if (qg(P.target) && !VB(P.target)) {
22424
- const z = P.target.selectionStart, H = P.target.selectionEnd, q = P.target.value ?? "";
22425
- if (z == null || P.shiftKey || z !== H || P.key !== A && z < q.length || P.key !== k && z > 0)
22424
+ const B = P.target.selectionStart, H = P.target.selectionEnd, q = P.target.value ?? "";
22425
+ if (B == null || P.shiftKey || B !== H || P.key !== A && B < q.length || P.key !== k && B > 0)
22426
22426
  return;
22427
22427
  }
22428
22428
  let F = w;
22429
- const I = Ka(C, p), B = Bf(C, p);
22429
+ const I = Ka(C, p), z = Bf(C, p);
22430
22430
  if (g) {
22431
- const z = t || Array.from({
22431
+ const B = t || Array.from({
22432
22432
  length: C.current.length
22433
22433
  }, () => ({
22434
22434
  width: 1,
22435
22435
  height: 1
22436
- })), H = oC(z, n, o), q = H.findIndex((U) => U != null && !pr(C, U, p)), G = H.reduce((U, Z, ie) => Z != null && !pr(C, Z, p) ? ie : U, -1);
22436
+ })), H = oC(B, n, o), q = H.findIndex((U) => U != null && !pr(C, U, p)), G = H.reduce((U, Z, ie) => Z != null && !pr(C, Z, p) ? ie : U, -1);
22437
22437
  F = H[rC({
22438
22438
  current: H.map((U) => U ? C.current[U] : null)
22439
22439
  }, {
@@ -22447,8 +22447,8 @@ function wz(e) {
22447
22447
  minIndex: q,
22448
22448
  maxIndex: G,
22449
22449
  prevIndex: iC(
22450
- w > B ? I : w,
22451
- z,
22450
+ w > z ? I : w,
22451
+ B,
22452
22452
  H,
22453
22453
  n,
22454
22454
  // use a corner matching the edge closest to the direction we're
@@ -22473,7 +22473,7 @@ function wz(e) {
22473
22473
  vertical: d ? Gk : GC,
22474
22474
  both: D
22475
22475
  }[i];
22476
- d && (P.key === Gi ? F = I : P.key === Yi && (F = B)), F === w && ($.includes(P.key) || W.includes(P.key)) && (r && F === B && $.includes(P.key) ? F = I : r && F === I && W.includes(P.key) ? F = B : F = kt(C, {
22476
+ d && (P.key === Gi ? F = I : P.key === Yi && (F = z)), F === w && ($.includes(P.key) || W.includes(P.key)) && (r && F === z && $.includes(P.key) ? F = I : r && F === I && W.includes(P.key) ? F = z : F = kt(C, {
22477
22477
  startingIndex: F,
22478
22478
  decrement: W.includes(P.key),
22479
22479
  disabledIndices: p
@@ -22669,7 +22669,7 @@ class uh extends ji {
22669
22669
  };
22670
22670
  r ? (this.set("stickIfOpen", !0), this.context.stickIfOpenTimeout.start(CC, () => {
22671
22671
  this.set("stickIfOpen", !1);
22672
- }), Ot.flushSync(l)) : l(), o || i ? this.set("instantType", o ? "click" : "dismiss") : n.reason === kn ? this.set("instantType", "focus") : this.set("instantType", void 0);
22672
+ }), Ot.flushSync(l)) : l(), o || i ? this.set("instantType", o ? "click" : "dismiss") : n.reason === In ? this.set("instantType", "focus") : this.set("instantType", void 0);
22673
22673
  };
22674
22674
  static useStore(t, n) {
22675
22675
  const r = Pt(() => t ?? new uh(n)).current;
@@ -22741,7 +22741,7 @@ function $x({
22741
22741
  getReferenceProps: O,
22742
22742
  getFloatingProps: P,
22743
22743
  getTriggerProps: D
22744
- } = An([S, R]), T = u.useMemo(() => O(g), [O, g]), _ = u.useMemo(() => D(g), [D, g]), M = u.useMemo(() => P(), [P]);
22744
+ } = Vn([S, R]), T = u.useMemo(() => O(g), [O, g]), _ = u.useMemo(() => D(g), [D, g]), M = u.useMemo(() => P(), [P]);
22745
22745
  d.useSyncedValues({
22746
22746
  modal: a,
22747
22747
  openMethod: h,
@@ -22749,7 +22749,7 @@ function $x({
22749
22749
  inactiveTriggerProps: _,
22750
22750
  popupProps: M,
22751
22751
  floatingRootContext: w,
22752
- nested: _n() != null
22752
+ nested: Dn() != null
22753
22753
  });
22754
22754
  const k = u.useMemo(() => ({
22755
22755
  store: d
@@ -22808,7 +22808,7 @@ const Mz = 300, VR = /* @__PURE__ */ u.forwardRef(function(t, n) {
22808
22808
  }), T = Jr(b, {
22809
22809
  enabled: b != null,
22810
22810
  stickIfOpen: O
22811
- }), _ = An([T]), M = h.useState("triggerProps", S), k = u.useMemo(() => ({
22811
+ }), _ = Vn([T]), M = h.useState("triggerProps", S), k = u.useMemo(() => ({
22812
22812
  disabled: i,
22813
22813
  open: C
22814
22814
  }), [i, C]), {
@@ -22829,20 +22829,20 @@ const Mz = 300, VR = /* @__PURE__ */ u.forwardRef(function(t, n) {
22829
22829
  id: g
22830
22830
  }, m, N],
22831
22831
  stateAttributesMapping: F
22832
- }), B = u.useRef(null), $ = le((V) => {
22832
+ }), z = u.useRef(null), $ = le((V) => {
22833
22833
  Ot.flushSync(() => {
22834
- h.setOpen(!1, he(kn, V.nativeEvent, V.currentTarget));
22835
- }), vC(B.current)?.focus();
22834
+ h.setOpen(!1, he(In, V.nativeEvent, V.currentTarget));
22835
+ }), vC(z.current)?.focus();
22836
22836
  }), W = le((V) => {
22837
- const z = h.select("positionerElement");
22838
- if (z && qr(V, z))
22837
+ const B = h.select("positionerElement");
22838
+ if (B && qr(V, B))
22839
22839
  h.context.beforeContentFocusGuardRef.current?.focus();
22840
22840
  else {
22841
22841
  Ot.flushSync(() => {
22842
- h.setOpen(!1, he(kn, V.nativeEvent, V.currentTarget));
22842
+ h.setOpen(!1, he(In, V.nativeEvent, V.currentTarget));
22843
22843
  });
22844
22844
  let H = bC(E.current);
22845
- for (; H !== null && Le(z, H) || H?.hasAttribute("aria-hidden"); ) {
22845
+ for (; H !== null && Le(B, H) || H?.hasAttribute("aria-hidden"); ) {
22846
22846
  const q = H;
22847
22847
  if (H = Fs(H), H === q)
22848
22848
  break;
@@ -22852,7 +22852,7 @@ const Mz = 300, VR = /* @__PURE__ */ u.forwardRef(function(t, n) {
22852
22852
  });
22853
22853
  return y ? /* @__PURE__ */ oe(u.Fragment, {
22854
22854
  children: [/* @__PURE__ */ x(Zn, {
22855
- ref: B,
22855
+ ref: z,
22856
22856
  onFocus: $
22857
22857
  }), /* @__PURE__ */ x(u.Fragment, {
22858
22858
  children: I
@@ -22936,22 +22936,22 @@ const LR = /* @__PURE__ */ u.forwardRef(function(t, n) {
22936
22936
  collisionAvoidance: g,
22937
22937
  adaptiveOrigin: US
22938
22938
  }), F = u.useMemo(() => {
22939
- const z = {};
22940
- return R || (z.pointerEvents = "none"), {
22939
+ const B = {};
22940
+ return R || (B.pointerEvents = "none"), {
22941
22941
  role: "presentation",
22942
22942
  hidden: !S,
22943
22943
  style: {
22944
22944
  ...A.positionerStyles,
22945
- ...z
22945
+ ...B
22946
22946
  }
22947
22947
  };
22948
22948
  }, [R, S, A.positionerStyles]), I = u.useMemo(() => ({
22949
22949
  props: F,
22950
22950
  ...A
22951
- }), [F, A]), B = w?.select("domReferenceElement");
22951
+ }), [F, A]), z = w?.select("domReferenceElement");
22952
22952
  se(() => {
22953
- const z = B, H = k.current;
22954
- if (z && (k.current = z), H && z && z !== H) {
22953
+ const B = z, H = k.current;
22954
+ if (B && (k.current = B), H && B && B !== H) {
22955
22955
  b.set("instantType", void 0);
22956
22956
  const q = new AbortController();
22957
22957
  return N(() => {
@@ -22960,15 +22960,15 @@ const LR = /* @__PURE__ */ u.forwardRef(function(t, n) {
22960
22960
  q.abort();
22961
22961
  };
22962
22962
  }
22963
- }, [B, N, b]);
22963
+ }, [z, N, b]);
22964
22964
  const $ = u.useMemo(() => ({
22965
22965
  open: R,
22966
22966
  side: I.side,
22967
22967
  align: I.align,
22968
22968
  anchorHidden: I.anchorHidden,
22969
22969
  instant: _
22970
- }), [R, I.side, I.align, I.anchorHidden, _]), W = u.useCallback((z) => {
22971
- b.set("positionerElement", z);
22970
+ }), [R, I.side, I.align, I.anchorHidden, _]), W = u.useCallback((B) => {
22971
+ b.set("positionerElement", B);
22972
22972
  }, [b]), V = ve("div", t, {
22973
22973
  state: $,
22974
22974
  props: [I.props, io(M), y],
@@ -23093,10 +23093,10 @@ const _z = {
23093
23093
  function I() {
23094
23094
  D.context.events.emit("measure-layout");
23095
23095
  }
23096
- function B(V, z) {
23096
+ function z(V, B) {
23097
23097
  D.context.events.emit("measure-layout-complete", {
23098
23098
  previousDimensions: V,
23099
- nextDimensions: z
23099
+ nextDimensions: B
23100
23100
  });
23101
23101
  }
23102
23102
  const $ = u.useCallback(() => l.context.triggerElements.size > 1, [l]);
@@ -23107,7 +23107,7 @@ const _z = {
23107
23107
  content: R,
23108
23108
  enabled: $,
23109
23109
  onMeasureLayout: I,
23110
- onMeasureLayoutComplete: B,
23110
+ onMeasureLayoutComplete: z,
23111
23111
  side: c.side,
23112
23112
  direction: f
23113
23113
  });
@@ -23420,14 +23420,14 @@ const KR = /* @__PURE__ */ u.forwardRef(function(t, n) {
23420
23420
  } = Ht(), _ = RS(), {
23421
23421
  labelId: M,
23422
23422
  getDescriptionProps: k
23423
- } = Ln(), N = T || _.disabled || m || i, A = v || a, F = h || s, I = g === l, B = u.useRef(null), $ = u.useRef(null), W = Ft(c, $);
23423
+ } = Bn(), N = T || _.disabled || m || i, A = v || a, F = h || s, I = g === l, z = u.useRef(null), $ = u.useRef(null), W = Ft(c, $);
23424
23424
  se(() => {
23425
23425
  $.current?.checked && P(!0);
23426
23426
  }, [P]);
23427
- const V = it(), z = ra({
23427
+ const V = it(), B = ra({
23428
23428
  id: f,
23429
23429
  implicit: !1,
23430
- controlRef: B
23430
+ controlRef: z
23431
23431
  }), H = {
23432
23432
  role: "radio",
23433
23433
  "aria-checked": I,
@@ -23456,7 +23456,7 @@ const KR = /* @__PURE__ */ u.forwardRef(function(t, n) {
23456
23456
  }), U = u.useMemo(() => ({
23457
23457
  type: "radio",
23458
23458
  ref: W,
23459
- id: z,
23459
+ id: B,
23460
23460
  tabIndex: -1,
23461
23461
  style: Sr,
23462
23462
  "aria-hidden": !0,
@@ -23471,15 +23471,15 @@ const KR = /* @__PURE__ */ u.forwardRef(function(t, n) {
23471
23471
  X.isCanceled || (O(!0), S(l !== R.initialValue), P(!0), y(l, X));
23472
23472
  },
23473
23473
  onFocus() {
23474
- B.current?.focus();
23474
+ z.current?.focus();
23475
23475
  }
23476
- }), [I, N, z, W, A, F, y, S, O, P, R.initialValue, l]), Z = u.useMemo(() => ({
23476
+ }), [I, N, B, W, A, F, y, S, O, P, R.initialValue, l]), Z = u.useMemo(() => ({
23477
23477
  ...D,
23478
23478
  required: F,
23479
23479
  disabled: N,
23480
23480
  readOnly: A,
23481
23481
  checked: I
23482
- }), [D, N, A, I, F]), ie = u.useMemo(() => Z, [Z]), K = y !== nt, j = [n, w, B, G], te = [H, k, E?.getValidationProps ?? lt, p, q], ue = ve("span", t, {
23482
+ }), [D, N, A, I, F]), ie = u.useMemo(() => Z, [Z]), K = y !== nt, j = [n, w, z, G], te = [H, k, E?.getValidationProps ?? lt, p, q], ue = ve("span", t, {
23483
23483
  enabled: !K,
23484
23484
  state: Z,
23485
23485
  ref: j,
@@ -23558,14 +23558,14 @@ const Lz = [KC], ZR = /* @__PURE__ */ u.forwardRef(function(t, n) {
23558
23558
  validityData: P
23559
23559
  } = Ht(), {
23560
23560
  labelId: D
23561
- } = Ln(), {
23561
+ } = Bn(), {
23562
23562
  clearErrors: T
23563
23563
  } = ti(), _ = yz(!0), M = E || i, k = C ?? f, N = it(m), [A, F] = Wt({
23564
23564
  controlled: c,
23565
23565
  default: d,
23566
23566
  name: "RadioGroup",
23567
23567
  state: "value"
23568
- }), I = le(l), B = le((te, ue) => {
23568
+ }), I = le(l), z = le((te, ue) => {
23569
23569
  I(te, ue), !ue.isCanceled && F(te);
23570
23570
  }), $ = u.useRef(null), W = le((te) => {
23571
23571
  $.current == null && te != null && ($.current = te);
@@ -23580,10 +23580,10 @@ const Lz = [KC], ZR = /* @__PURE__ */ u.forwardRef(function(t, n) {
23580
23580
  }), cr(A, () => {
23581
23581
  T(k), R(A !== P.initialValue), O(A != null), y() ? S.commit(A) : S.commit(A, !0);
23582
23582
  });
23583
- const [V, z] = u.useState(!1), H = le((te) => {
23583
+ const [V, B] = u.useState(!1), H = le((te) => {
23584
23584
  Le(te.currentTarget, te.relatedTarget) || (h(!0), g(!1), b === "onBlur" && S.commit(A));
23585
23585
  }), q = le((te) => {
23586
- te.key.startsWith("Arrow") && (h(!0), z(!0), g(!0));
23586
+ te.key.startsWith("Arrow") && (h(!0), B(!0), g(!0));
23587
23587
  }), G = u.useMemo(() => A == null ? "" : typeof A == "string" ? A : JSON.stringify(A), [A]), U = Ft(S.inputRef, p), Z = Mt({
23588
23588
  value: G,
23589
23589
  ref: U,
@@ -23616,10 +23616,10 @@ const Lz = [KC], ZR = /* @__PURE__ */ u.forwardRef(function(t, n) {
23616
23616
  readOnly: a,
23617
23617
  registerControlRef: W,
23618
23618
  required: s,
23619
- setCheckedValue: B,
23620
- setTouched: z,
23619
+ setCheckedValue: z,
23620
+ setTouched: B,
23621
23621
  touched: V
23622
- }), [A, M, S, w, k, I, a, W, s, B, z, V]), j = {
23622
+ }), [A, M, S, w, k, I, a, W, s, z, B, V]), j = {
23623
23623
  role: "radiogroup",
23624
23624
  "aria-required": s || void 0,
23625
23625
  "aria-disabled": M || void 0,
@@ -23659,7 +23659,7 @@ const Ba = "base-ui-disable-scrollbar", mp = {
23659
23659
  process.env.NODE_ENV !== "production" && (gh.displayName = "SelectRootContext");
23660
23660
  const bh = /* @__PURE__ */ u.createContext(null);
23661
23661
  process.env.NODE_ENV !== "production" && (bh.displayName = "SelectFloatingContext");
23662
- function Bn() {
23662
+ function zn() {
23663
23663
  const e = u.useContext(gh);
23664
23664
  if (e === null)
23665
23665
  throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectRootContext is missing. Select parts must be placed within <Select.Root>." : Ae(60));
@@ -23746,9 +23746,9 @@ function Bz(e) {
23746
23746
  validation: k
23747
23747
  } = Ht(), {
23748
23748
  controlId: N
23749
- } = Ln(), A = ra({
23749
+ } = Bn(), A = ra({
23750
23750
  id: t
23751
- }), F = M || c, I = _ ?? l, [B, $] = Wt({
23751
+ }), F = M || c, I = _ ?? l, [z, $] = Wt({
23752
23752
  controlled: n,
23753
23753
  default: y ? r ?? zt : r,
23754
23754
  name: "Select",
@@ -23758,7 +23758,7 @@ function Bz(e) {
23758
23758
  default: a,
23759
23759
  name: "Select",
23760
23760
  state: "open"
23761
- }), z = u.useRef([]), H = u.useRef([]), q = u.useRef(null), G = u.useRef(null), U = u.useRef(0), Z = u.useRef(null), ie = u.useRef([]), K = u.useRef(!1), j = u.useRef(!1), te = u.useRef(null), ue = u.useRef({
23761
+ }), B = u.useRef([]), H = u.useRef([]), q = u.useRef(null), G = u.useRef(null), U = u.useRef(0), Z = u.useRef(null), ie = u.useRef([]), K = u.useRef(!1), j = u.useRef(!1), te = u.useRef(null), ue = u.useRef({
23762
23762
  allowSelectedMouseUp: !1,
23763
23763
  allowUnselectedMouseUp: !1
23764
23764
  }), Y = u.useRef(!1), {
@@ -23776,7 +23776,7 @@ function Bz(e) {
23776
23776
  itemToStringLabel: b,
23777
23777
  itemToStringValue: C,
23778
23778
  isItemEqualToValue: E,
23779
- value: B,
23779
+ value: z,
23780
23780
  open: W,
23781
23781
  mounted: X,
23782
23782
  transitionStatus: re,
@@ -23793,26 +23793,26 @@ function Bz(e) {
23793
23793
  scrollUpArrowVisible: !1,
23794
23794
  scrollDownArrowVisible: !1,
23795
23795
  hasScrollArrows: !1
23796
- })).current, me = ee(ne, Be.activeIndex), ce = ee(ne, Be.selectedIndex), ge = ee(ne, Be.triggerElement), pe = ee(ne, Be.positionerElement), Ne = u.useMemo(() => y && Array.isArray(B) && B.length === 0 ? "" : hn(B, C), [y, B, C]), Ie = u.useMemo(() => y && Array.isArray(B) ? B.map((je) => hn(je, C)) : hn(B, C), [y, B, C]), Pe = gt(ne.state.triggerElement);
23796
+ })).current, me = ee(ne, Be.activeIndex), ce = ee(ne, Be.selectedIndex), ge = ee(ne, Be.triggerElement), pe = ee(ne, Be.positionerElement), Ne = u.useMemo(() => y && Array.isArray(z) && z.length === 0 ? "" : hn(z, C), [y, z, C]), Ie = u.useMemo(() => y && Array.isArray(z) ? z.map((je) => hn(je, C)) : hn(z, C), [y, z, C]), Pe = gt(ne.state.triggerElement);
23797
23797
  ni({
23798
23798
  id: A,
23799
23799
  commit: k.commit,
23800
- value: B,
23800
+ value: z,
23801
23801
  controlRef: Pe,
23802
23802
  name: I,
23803
23803
  getValue: () => Ie
23804
23804
  });
23805
- const $e = u.useRef(B);
23805
+ const $e = u.useRef(z);
23806
23806
  se(() => {
23807
- B !== $e.current && ne.set("forceMount", !0);
23808
- }, [ne, B]), se(() => {
23809
- T(B !== null);
23810
- }, [B, T]), se(function() {
23807
+ z !== $e.current && ne.set("forceMount", !0);
23808
+ }, [ne, z]), se(() => {
23809
+ T(z !== null);
23810
+ }, [z, T]), se(function() {
23811
23811
  if (W)
23812
23812
  return;
23813
23813
  const Xe = ie.current;
23814
23814
  if (y) {
23815
- const ut = Array.isArray(B) ? B : [];
23815
+ const ut = Array.isArray(z) ? z : [];
23816
23816
  if (ut.length === 0) {
23817
23817
  ne.set("selectedIndex", null);
23818
23818
  return;
@@ -23821,14 +23821,14 @@ function Bz(e) {
23821
23821
  ne.set("selectedIndex", Ut === -1 ? null : Ut);
23822
23822
  return;
23823
23823
  }
23824
- const xt = vr(Xe, B, E);
23824
+ const xt = vr(Xe, z, E);
23825
23825
  ne.set("selectedIndex", xt === -1 ? null : xt);
23826
- }, [y, W, B, ie, E, ne]), cr(B, () => {
23827
- R(I), O(B !== D.initialValue), P() ? k.commit(B) : k.commit(B, !0);
23826
+ }, [y, W, z, ie, E, ne]), cr(z, () => {
23827
+ R(I), O(z !== D.initialValue), P() ? k.commit(z) : k.commit(z, !0);
23828
23828
  });
23829
23829
  const Ue = le((je, Xe) => {
23830
23830
  if (s?.(je, Xe), !Xe.isCanceled && (V(je), !je && ne.state.activeIndex !== null)) {
23831
- const xt = z.current[ne.state.activeIndex];
23831
+ const xt = B.current[ne.state.activeIndex];
23832
23832
  queueMicrotask(() => {
23833
23833
  xt?.setAttribute("tabindex", "-1");
23834
23834
  });
@@ -23868,7 +23868,7 @@ function Bz(e) {
23868
23868
  bubbles: !1
23869
23869
  }), Ge = Zp(fe, {
23870
23870
  enabled: !d && !F,
23871
- listRef: z,
23871
+ listRef: B,
23872
23872
  activeIndex: me,
23873
23873
  selectedIndex: ce,
23874
23874
  disabledIndices: zt,
@@ -23893,7 +23893,7 @@ function Bz(e) {
23893
23893
  getReferenceProps: Re,
23894
23894
  getFloatingProps: we,
23895
23895
  getItemProps: Oe
23896
- } = An([Ve, Qe, Ge, He]), Me = u.useMemo(() => Mt(Re(), de), [Re, de]);
23896
+ } = Vn([Ve, Qe, Ge, He]), Me = u.useMemo(() => Mt(Re(), de), [Re, de]);
23897
23897
  DS(() => {
23898
23898
  ne.update({
23899
23899
  popupProps: we(),
@@ -23904,7 +23904,7 @@ function Bz(e) {
23904
23904
  id: A,
23905
23905
  modal: p,
23906
23906
  multiple: y,
23907
- value: B,
23907
+ value: z,
23908
23908
  open: W,
23909
23909
  mounted: X,
23910
23910
  transitionStatus: re,
@@ -23916,7 +23916,7 @@ function Bz(e) {
23916
23916
  isItemEqualToValue: E,
23917
23917
  openMethod: xe
23918
23918
  });
23919
- }, [ne, A, p, y, B, W, X, re, we, Me, g, b, C, E, xe]);
23919
+ }, [ne, A, p, y, z, W, X, re, we, Me, g, b, C, E, xe]);
23920
23920
  const ze = u.useMemo(() => ({
23921
23921
  store: ne,
23922
23922
  name: I,
@@ -23929,7 +23929,7 @@ function Bz(e) {
23929
23929
  highlightItemOnHover: w,
23930
23930
  setValue: Ke,
23931
23931
  setOpen: Ue,
23932
- listRef: z,
23932
+ listRef: B,
23933
23933
  popupRef: q,
23934
23934
  scrollHandlerRef: G,
23935
23935
  handleScrollArrowVisibility: Te,
@@ -23947,14 +23947,14 @@ function Bz(e) {
23947
23947
  keyboardActiveRef: j,
23948
23948
  alignItemWithTriggerActiveRef: Y,
23949
23949
  initialValueRef: $e
23950
- }), [ne, I, f, F, d, y, b, C, w, Ke, Ue, Oe, fe.context.events, k, h, Te]), Fe = Ft(v, k.inputRef), un = y && Array.isArray(B) && B.length > 0, jt = u.useMemo(() => !y || !Array.isArray(B) || !I ? null : B.map((je) => {
23950
+ }), [ne, I, f, F, d, y, b, C, w, Ke, Ue, Oe, fe.context.events, k, h, Te]), Fe = Ft(v, k.inputRef), un = y && Array.isArray(z) && z.length > 0, jt = u.useMemo(() => !y || !Array.isArray(z) || !I ? null : z.map((je) => {
23951
23951
  const Xe = hn(je, C);
23952
23952
  return /* @__PURE__ */ x("input", {
23953
23953
  type: "hidden",
23954
23954
  name: I,
23955
23955
  value: Xe
23956
23956
  }, Xe);
23957
- }), [y, B, I, C]);
23957
+ }), [y, z, I, C]);
23958
23958
  return /* @__PURE__ */ x(gh.Provider, {
23959
23959
  value: ze,
23960
23960
  children: /* @__PURE__ */ oe(bh.Provider, {
@@ -24011,7 +24011,7 @@ const za = 2, zz = {
24011
24011
  disabled: p
24012
24012
  } = Ht(), {
24013
24013
  labelId: m
24014
- } = Ln(), {
24014
+ } = Bn(), {
24015
24015
  store: v,
24016
24016
  setOpen: h,
24017
24017
  selectionRef: g,
@@ -24020,15 +24020,15 @@ const za = 2, zz = {
24020
24020
  alignItemWithTriggerActiveRef: C,
24021
24021
  disabled: E,
24022
24022
  keyboardActiveRef: w
24023
- } = Bn(), S = p || E || i, R = ee(v, Be.open), O = ee(v, Be.value), P = ee(v, Be.triggerProps), D = ee(v, Be.positionerElement), T = ee(v, Be.listElement), _ = ee(v, Be.serializedValue), M = gt(D), k = u.useRef(null), N = mt(), A = mt(), {
24023
+ } = zn(), S = p || E || i, R = ee(v, Be.open), O = ee(v, Be.value), P = ee(v, Be.triggerProps), D = ee(v, Be.positionerElement), T = ee(v, Be.listElement), _ = ee(v, Be.serializedValue), M = gt(D), k = u.useRef(null), N = mt(), A = mt(), {
24024
24024
  getButtonProps: F,
24025
24025
  buttonRef: I
24026
24026
  } = Tt({
24027
24027
  disabled: S,
24028
24028
  native: a
24029
- }), B = le((G) => {
24029
+ }), z = le((G) => {
24030
24030
  v.set("triggerElement", G);
24031
- }), $ = Ft(n, k, I, B), W = mt(), V = mt();
24031
+ }), $ = Ft(n, k, I, z), W = mt(), V = mt();
24032
24032
  u.useEffect(() => {
24033
24033
  if (R)
24034
24034
  return V.start(200, () => {
@@ -24043,17 +24043,17 @@ const za = 2, zz = {
24043
24043
  allowUnselectedMouseUp: !1
24044
24044
  }, A.clear();
24045
24045
  }, [R, g, A, W, V]);
24046
- const z = u.useMemo(() => T?.id ?? Ei(D)?.id, [T, D]), H = Mt(P, {
24046
+ const B = u.useMemo(() => T?.id ?? Ei(D)?.id, [T, D]), H = Mt(P, {
24047
24047
  role: "combobox",
24048
24048
  "aria-expanded": R ? "true" : "false",
24049
24049
  "aria-haspopup": "listbox",
24050
- "aria-controls": R ? z : void 0,
24050
+ "aria-controls": R ? B : void 0,
24051
24051
  "aria-labelledby": m,
24052
24052
  "aria-readonly": b || void 0,
24053
24053
  tabIndex: S ? -1 : 0,
24054
24054
  ref: $,
24055
24055
  onFocus(G) {
24056
- c(!0), R && C.current && h(!1, he(kn, G.nativeEvent)), N.start(0, () => {
24056
+ c(!0), R && C.current && h(!1, he(In, G.nativeEvent)), N.start(0, () => {
24057
24057
  v.set("forceMount", !0);
24058
24058
  });
24059
24059
  },
@@ -24114,7 +24114,7 @@ const $z = {
24114
24114
  } = t, {
24115
24115
  store: s,
24116
24116
  valueRef: l
24117
- } = Bn(), c = ee(s, Be.value), d = ee(s, Be.items), f = ee(s, Be.itemToStringLabel), p = ee(s, Be.serializedValue), m = u.useMemo(() => ({
24117
+ } = zn(), c = ee(s, Be.value), d = ee(s, Be.items), f = ee(s, Be.itemToStringLabel), p = ee(s, Be.serializedValue), m = u.useMemo(() => ({
24118
24118
  value: c,
24119
24119
  placeholder: !p
24120
24120
  }), [c, p]), v = typeof i == "function" ? i(c) : i ?? (Array.isArray(c) ? BB(c, f) : LS(c, d, f));
@@ -24135,7 +24135,7 @@ const tO = /* @__PURE__ */ u.forwardRef(function(t, n) {
24135
24135
  ...i
24136
24136
  } = t, {
24137
24137
  store: a
24138
- } = Bn(), s = ee(a, Be.open), l = u.useMemo(() => ({
24138
+ } = zn(), s = ee(a, Be.open), l = u.useMemo(() => ({
24139
24139
  open: s
24140
24140
  }), [s]);
24141
24141
  return ve("span", t, {
@@ -24154,7 +24154,7 @@ process.env.NODE_ENV !== "production" && (nO.displayName = "SelectPortalContext"
24154
24154
  const rO = /* @__PURE__ */ u.forwardRef(function(t, n) {
24155
24155
  const {
24156
24156
  store: r
24157
- } = Bn(), o = ee(r, Be.mounted), i = ee(r, Be.forceMount);
24157
+ } = zn(), o = ee(r, Be.mounted), i = ee(r, Be.forceMount);
24158
24158
  return o || i ? /* @__PURE__ */ x(nO.Provider, {
24159
24159
  value: !0,
24160
24160
  children: /* @__PURE__ */ x(Ko, {
@@ -24210,10 +24210,10 @@ const oO = {
24210
24210
  initialValueRef: P,
24211
24211
  popupRef: D,
24212
24212
  setValue: T
24213
- } = Bn(), _ = QR(), M = ee(C, Be.open), k = ee(C, Be.mounted), N = ee(C, Be.modal), A = ee(C, Be.value), F = ee(C, Be.openMethod), I = ee(C, Be.positionerElement), B = ee(C, Be.triggerElement), $ = ee(C, Be.isItemEqualToValue), W = u.useRef(null), V = u.useRef(null), [z, H] = u.useState(g), q = k && z && F !== "touch";
24214
- !k && z !== g && H(g), se(() => {
24213
+ } = zn(), _ = QR(), M = ee(C, Be.open), k = ee(C, Be.mounted), N = ee(C, Be.modal), A = ee(C, Be.value), F = ee(C, Be.openMethod), I = ee(C, Be.positionerElement), z = ee(C, Be.triggerElement), $ = ee(C, Be.isItemEqualToValue), W = u.useRef(null), V = u.useRef(null), [B, H] = u.useState(g), q = k && B && F !== "touch";
24214
+ !k && B !== g && H(g), se(() => {
24215
24215
  k || (Be.scrollUpArrowVisible(C.state) && C.set("scrollUpArrowVisible", !1), Be.scrollDownArrowVisible(C.state) && C.set("scrollDownArrowVisible", !1));
24216
- }, [C, k]), u.useImperativeHandle(S, () => q), $i((q || N) && M && F !== "touch", B);
24216
+ }, [C, k]), u.useImperativeHandle(S, () => q), $i((q || N) && M && F !== "touch", z);
24217
24217
  const G = oa({
24218
24218
  anchor: r,
24219
24219
  floatingRootContext: _,
@@ -24293,7 +24293,7 @@ const oO = {
24293
24293
  value: X,
24294
24294
  children: [k && N && /* @__PURE__ */ x(Jo, {
24295
24295
  inert: Ki(!M),
24296
- cutout: B
24296
+ cutout: z
24297
24297
  }), te]
24298
24298
  })
24299
24299
  });
@@ -24322,14 +24322,14 @@ const qz = {
24322
24322
  multiple: m,
24323
24323
  handleScrollArrowVisibility: v,
24324
24324
  scrollHandlerRef: h
24325
- } = Bn(), {
24325
+ } = zn(), {
24326
24326
  side: g,
24327
24327
  align: y,
24328
24328
  alignItemWithTriggerActive: b,
24329
24329
  setControlledAlignItemWithTrigger: C,
24330
24330
  scrollDownArrowRef: E,
24331
24331
  scrollUpArrowRef: w
24332
- } = yh(), S = eh() != null, R = QR(), O = mt(), P = ee(a, Be.id), D = ee(a, Be.open), T = ee(a, Be.mounted), _ = ee(a, Be.popupProps), M = ee(a, Be.transitionStatus), k = ee(a, Be.triggerElement), N = ee(a, Be.positionerElement), A = ee(a, Be.listElement), F = u.useRef(0), I = u.useRef(!1), B = u.useRef(0), $ = u.useRef(!1), W = u.useRef({}), V = Zr(), z = le((U) => {
24332
+ } = yh(), S = eh() != null, R = QR(), O = mt(), P = ee(a, Be.id), D = ee(a, Be.open), T = ee(a, Be.mounted), _ = ee(a, Be.popupProps), M = ee(a, Be.transitionStatus), k = ee(a, Be.triggerElement), N = ee(a, Be.positionerElement), A = ee(a, Be.listElement), F = u.useRef(0), I = u.useRef(!1), z = u.useRef(0), $ = u.useRef(!1), W = u.useRef({}), V = Zr(), B = le((U) => {
24333
24333
  if (!N || !s.current || !$.current)
24334
24334
  return;
24335
24335
  if (I.current || !b) {
@@ -24347,7 +24347,7 @@ const qz = {
24347
24347
  }
24348
24348
  ye != null && (N.style.height = `${ye}px`), ne != null && (U.scrollTop = ne), me && (I.current = !0), v();
24349
24349
  });
24350
- u.useImperativeHandle(h, () => z, [z]), Nt({
24350
+ u.useImperativeHandle(h, () => B, [B]), Nt({
24351
24351
  open: D,
24352
24352
  ref: s,
24353
24353
  onComplete() {
@@ -24373,7 +24373,7 @@ const qz = {
24373
24373
  marginBottom: N.style.marginBottom
24374
24374
  });
24375
24375
  }, [s, N]), se(() => {
24376
- T || b || ($.current = !1, I.current = !1, F.current = 0, B.current = 0, Es(N, W.current));
24376
+ T || b || ($.current = !1, I.current = !1, F.current = 0, z.current = 0, Es(N, W.current));
24377
24377
  }, [T, b, N, s]), se(() => {
24378
24378
  const U = s.current;
24379
24379
  if (!(!T || !k || !N || !U)) {
@@ -24480,7 +24480,7 @@ const lO = /* @__PURE__ */ u.forwardRef(function(t, n) {
24480
24480
  } = t, {
24481
24481
  store: a,
24482
24482
  scrollHandlerRef: s
24483
- } = Bn(), {
24483
+ } = zn(), {
24484
24484
  alignItemWithTriggerActive: l
24485
24485
  } = yh(), c = ee(a, Be.hasScrollArrows), d = ee(a, Be.openMethod), f = ee(a, Be.multiple), m = {
24486
24486
  id: `${ee(a, Be.id)}-list`,
@@ -24534,7 +24534,7 @@ const cO = /* @__PURE__ */ u.memo(/* @__PURE__ */ u.forwardRef(function(t, n) {
24534
24534
  keyboardActiveRef: C,
24535
24535
  multiple: E,
24536
24536
  highlightItemOnHover: w
24537
- } = Bn(), S = mt(), R = ee(p, Be.isActive, f.index), O = ee(p, Be.isSelected, f.index, i), P = ee(p, Be.isSelectedByFocus, f.index), D = ee(p, Be.isItemEqualToValue), T = f.index, _ = T !== -1, M = u.useRef(null), k = gt(T);
24537
+ } = zn(), S = mt(), R = ee(p, Be.isActive, f.index), O = ee(p, Be.isSelected, f.index, i), P = ee(p, Be.isSelectedByFocus, f.index), D = ee(p, Be.isItemEqualToValue), T = f.index, _ = T !== -1, M = u.useRef(null), k = gt(T);
24538
24538
  se(() => {
24539
24539
  if (!_)
24540
24540
  return;
@@ -24558,7 +24558,7 @@ const cO = /* @__PURE__ */ u.memo(/* @__PURE__ */ u.forwardRef(function(t, n) {
24558
24558
  selected: O
24559
24559
  });
24560
24560
  A.onFocus = void 0, A.id = void 0;
24561
- const F = u.useRef(null), I = u.useRef("mouse"), B = u.useRef(!1), {
24561
+ const F = u.useRef(null), I = u.useRef("mouse"), z = u.useRef(!1), {
24562
24562
  getButtonProps: $,
24563
24563
  buttonRef: W
24564
24564
  } = Tt({
@@ -24574,7 +24574,7 @@ const cO = /* @__PURE__ */ u.memo(/* @__PURE__ */ u.forwardRef(function(t, n) {
24574
24574
  } else
24575
24575
  h(i, he(mr, G)), v(!1, he(mr, G));
24576
24576
  }
24577
- const z = {
24577
+ const B = {
24578
24578
  role: "option",
24579
24579
  "aria-selected": O,
24580
24580
  "aria-disabled": s || void 0,
@@ -24603,19 +24603,19 @@ const cO = /* @__PURE__ */ u.memo(/* @__PURE__ */ u.forwardRef(function(t, n) {
24603
24603
  F.current = G.key, p.set("activeIndex", T);
24604
24604
  },
24605
24605
  onClick(G) {
24606
- B.current = !1, !(G.type === "keydown" && F.current === null) && (s || F.current === " " && y.current || I.current !== "touch" && !R || (F.current = null, V(G.nativeEvent)));
24606
+ z.current = !1, !(G.type === "keydown" && F.current === null) && (s || F.current === " " && y.current || I.current !== "touch" && !R || (F.current = null, V(G.nativeEvent)));
24607
24607
  },
24608
24608
  onPointerEnter(G) {
24609
24609
  I.current = G.pointerType;
24610
24610
  },
24611
24611
  onPointerDown(G) {
24612
- I.current = G.pointerType, B.current = !0;
24612
+ I.current = G.pointerType, z.current = !0;
24613
24613
  },
24614
24614
  onMouseUp(G) {
24615
24615
  if (s)
24616
24616
  return;
24617
- if (B.current) {
24618
- B.current = !1;
24617
+ if (z.current) {
24618
+ z.current = !1;
24619
24619
  return;
24620
24620
  }
24621
24621
  const U = !g.current.allowSelectedMouseUp && O, Z = !g.current.allowUnselectedMouseUp && !O;
@@ -24624,7 +24624,7 @@ const cO = /* @__PURE__ */ u.memo(/* @__PURE__ */ u.forwardRef(function(t, n) {
24624
24624
  }, H = ve("div", t, {
24625
24625
  ref: [W, n, f.ref, M],
24626
24626
  state: N,
24627
- props: [A, z, c, $]
24627
+ props: [A, B, c, $]
24628
24628
  }), q = u.useMemo(() => ({
24629
24629
  selected: O,
24630
24630
  indexRef: k,
@@ -24688,7 +24688,7 @@ const fO = /* @__PURE__ */ u.memo(/* @__PURE__ */ u.forwardRef(function(t, n) {
24688
24688
  hasRegistered: a
24689
24689
  } = wh(), {
24690
24690
  selectedItemTextRef: s
24691
- } = Bn(), {
24691
+ } = zn(), {
24692
24692
  className: l,
24693
24693
  render: c,
24694
24694
  ...d
@@ -24717,7 +24717,7 @@ const Ch = /* @__PURE__ */ u.forwardRef(function(t, n) {
24717
24717
  listRef: d,
24718
24718
  handleScrollArrowVisibility: f,
24719
24719
  scrollArrowsMountedCountRef: p
24720
- } = Bn(), {
24720
+ } = zn(), {
24721
24721
  side: m,
24722
24722
  scrollDownArrowRef: v,
24723
24723
  scrollUpArrowRef: h
@@ -24763,37 +24763,37 @@ const Ch = /* @__PURE__ */ u.forwardRef(function(t, n) {
24763
24763
  return;
24764
24764
  }
24765
24765
  if ((l.state.listElement || c.current) && d.current && d.current.length > 0) {
24766
- const I = d.current, B = w.current?.offsetHeight || 0;
24766
+ const I = d.current, z = w.current?.offsetHeight || 0;
24767
24767
  if (i === "up") {
24768
24768
  let $ = 0;
24769
- const W = k.scrollTop + B;
24770
- for (let z = 0; z < I.length; z += 1) {
24771
- const H = I[z];
24769
+ const W = k.scrollTop + z;
24770
+ for (let B = 0; B < I.length; B += 1) {
24771
+ const H = I[B];
24772
24772
  if (H && H.offsetTop >= W) {
24773
- $ = z;
24773
+ $ = B;
24774
24774
  break;
24775
24775
  }
24776
24776
  }
24777
24777
  const V = Math.max(0, $ - 1);
24778
24778
  if (V < $) {
24779
- const z = I[V];
24780
- z && (k.scrollTop = Math.max(0, z.offsetTop - B));
24779
+ const B = I[V];
24780
+ B && (k.scrollTop = Math.max(0, B.offsetTop - z));
24781
24781
  } else
24782
24782
  k.scrollTop = 0;
24783
24783
  } else {
24784
24784
  let $ = I.length - 1;
24785
- const W = k.scrollTop + k.clientHeight - B;
24786
- for (let z = 0; z < I.length; z += 1) {
24787
- const H = I[z];
24785
+ const W = k.scrollTop + k.clientHeight - z;
24786
+ for (let B = 0; B < I.length; B += 1) {
24787
+ const H = I[B];
24788
24788
  if (H && H.offsetTop + H.offsetHeight > W) {
24789
- $ = Math.max(0, z - 1);
24789
+ $ = Math.max(0, B - 1);
24790
24790
  break;
24791
24791
  }
24792
24792
  }
24793
24793
  const V = Math.min(I.length - 1, $ + 1);
24794
24794
  if (V > $) {
24795
- const z = I[V];
24796
- z && (k.scrollTop = z.offsetTop + z.offsetHeight - k.clientHeight + B);
24795
+ const B = I[V];
24796
+ B && (k.scrollTop = B.offsetTop + B.offsetHeight - k.clientHeight + z);
24797
24797
  } else
24798
24798
  k.scrollTop = k.scrollHeight - k.clientHeight;
24799
24799
  }
@@ -24926,11 +24926,11 @@ const bO = {
24926
24926
  validation: _
24927
24927
  } = Ht(), {
24928
24928
  labelId: M
24929
- } = Ln(), k = D || m, N = T ?? l, A = le(d), F = u.useRef(null), I = Ft(F, s, _.inputRef), B = u.useRef(null), $ = it(), W = ra({
24929
+ } = Bn(), k = D || m, N = T ?? l, A = le(d), F = u.useRef(null), I = Ft(F, s, _.inputRef), z = u.useRef(null), $ = it(), W = ra({
24930
24930
  id: a,
24931
24931
  implicit: !1,
24932
- controlRef: B
24933
- }), [V, z] = Wt({
24932
+ controlRef: z
24933
+ }), [V, B] = Wt({
24934
24934
  controlled: r,
24935
24935
  default: !!i,
24936
24936
  name: "Switch",
@@ -24940,7 +24940,7 @@ const bO = {
24940
24940
  id: $,
24941
24941
  commit: _.commit,
24942
24942
  value: V,
24943
- controlRef: B,
24943
+ controlRef: z,
24944
24944
  name: N,
24945
24945
  getValue: () => V
24946
24946
  }), se(() => {
@@ -24985,12 +24985,12 @@ const bO = {
24985
24985
  if (K.nativeEvent.defaultPrevented)
24986
24986
  return;
24987
24987
  const j = K.target.checked, te = he(dt, K.nativeEvent);
24988
- A?.(j, te), !te.isCanceled && z(j);
24988
+ A?.(j, te), !te.isCanceled && B(j);
24989
24989
  },
24990
24990
  onFocus() {
24991
- B.current?.focus();
24991
+ z.current?.focus();
24992
24992
  }
24993
- }, _.getInputValidationProps), [V, k, I, W, N, A, p, z, _]), Z = u.useMemo(() => ({
24993
+ }, _.getInputValidationProps), [V, k, I, W, N, A, p, B, _]), Z = u.useMemo(() => ({
24994
24994
  ...b,
24995
24995
  checked: V,
24996
24996
  disabled: k,
@@ -24998,7 +24998,7 @@ const bO = {
24998
24998
  required: p
24999
24999
  }), [b, V, k, f, p]), ie = ve("span", t, {
25000
25000
  state: Z,
25001
- ref: [n, B, q],
25001
+ ref: [n, z, q],
25002
25002
  props: [G, _.getValidationProps, g, H],
25003
25003
  stateAttributesMapping: bO
25004
25004
  });
@@ -25065,17 +25065,17 @@ const Ph = {
25065
25065
  }), y = l !== void 0, [b, C] = u.useState(() => /* @__PURE__ */ new Map()), [E, w] = u.useState("none"), S = le((F, I) => {
25066
25066
  i?.(F, I), !I.isCanceled && (g(F), w(I.activationDirection));
25067
25067
  }), R = le((F, I) => {
25068
- v((B) => {
25069
- if (B.get(F) === I)
25070
- return B;
25071
- const $ = new Map(B);
25068
+ v((z) => {
25069
+ if (z.get(F) === I)
25070
+ return z;
25071
+ const $ = new Map(z);
25072
25072
  return $.set(F, I), $;
25073
25073
  });
25074
25074
  }), O = le((F, I) => {
25075
- v((B) => {
25076
- if (!B.has(F) || B.get(F) !== I)
25077
- return B;
25078
- const $ = new Map(B);
25075
+ v((z) => {
25076
+ if (!z.has(F) || z.get(F) !== I)
25077
+ return z;
25078
+ const $ = new Map(z);
25079
25079
  return $.delete(F), $;
25080
25080
  });
25081
25081
  }), P = u.useCallback((F) => m.get(F), [m]), D = u.useCallback((F) => {
@@ -25085,8 +25085,8 @@ const Ph = {
25085
25085
  }, [b]), T = u.useCallback((F) => {
25086
25086
  if (F === void 0)
25087
25087
  return null;
25088
- for (const [I, B] of b.entries())
25089
- if (B != null && F === (B.value ?? B.index))
25088
+ for (const [I, z] of b.entries())
25089
+ if (z != null && F === (z.value ?? z.index))
25090
25090
  return I;
25091
25091
  return null;
25092
25092
  }, [b]), _ = u.useMemo(() => ({
@@ -25184,10 +25184,10 @@ const wO = /* @__PURE__ */ u.forwardRef(function(t, n) {
25184
25184
  }
25185
25185
  if (!(R && S > -1 && v !== S))
25186
25186
  return;
25187
- const B = y;
25188
- if (B != null) {
25189
- const $ = mn(Vt(B));
25190
- if ($ && Le(B, $))
25187
+ const z = y;
25188
+ if (z != null) {
25189
+ const $ = mn(Vt(z));
25190
+ if ($ && Le(z, $))
25191
25191
  return;
25192
25192
  }
25193
25193
  o || g(S);
@@ -25200,25 +25200,25 @@ const wO = /* @__PURE__ */ u.forwardRef(function(t, n) {
25200
25200
  native: l,
25201
25201
  focusableWhenDisabled: !0
25202
25202
  }), T = f(a), _ = u.useRef(!1), M = u.useRef(!1);
25203
- function k(B) {
25204
- R || o || h(a, he(dt, B.nativeEvent, void 0, {
25203
+ function k(z) {
25204
+ R || o || h(a, he(dt, z.nativeEvent, void 0, {
25205
25205
  activationDirection: "none"
25206
25206
  }));
25207
25207
  }
25208
- function N(B) {
25208
+ function N(z) {
25209
25209
  R || (S > -1 && !o && g(S), !o && m && (!_.current || // keyboard or touch focus
25210
- _.current && M.current) && h(a, he(dt, B.nativeEvent, void 0, {
25210
+ _.current && M.current) && h(a, he(dt, z.nativeEvent, void 0, {
25211
25211
  activationDirection: "none"
25212
25212
  })));
25213
25213
  }
25214
- function A(B) {
25214
+ function A(z) {
25215
25215
  if (R || o)
25216
25216
  return;
25217
25217
  _.current = !0;
25218
25218
  function $() {
25219
25219
  _.current = !1, M.current = !1;
25220
25220
  }
25221
- (!B.button || B.button === 0) && (M.current = !0, Vt(B.currentTarget).addEventListener("pointerup", $, {
25221
+ (!z.button || z.button === 0) && (M.current = !0, Vt(z.currentTarget).addEventListener("pointerup", $, {
25222
25222
  once: !0
25223
25223
  }));
25224
25224
  }
@@ -25599,7 +25599,7 @@ function Jz(e) {
25599
25599
  getReferenceProps: M,
25600
25600
  getFloatingProps: k,
25601
25601
  getTriggerProps: N
25602
- } = An([D, T, _]), A = u.useMemo(() => M(), [M]), F = u.useMemo(() => N(), [N]), I = u.useMemo(() => k(), [k]);
25602
+ } = Vn([D, T, _]), A = u.useMemo(() => M(), [M]), F = u.useMemo(() => N(), [N]), I = u.useMemo(() => k(), [k]);
25603
25603
  return m.useSyncedValues({
25604
25604
  floatingRootContext: P,
25605
25605
  activeTriggerProps: A,
@@ -25657,14 +25657,14 @@ const n$ = 600, OO = /* @__PURE__ */ u.forwardRef(function(t, n) {
25657
25657
  move: !1,
25658
25658
  handleClose: !k && M !== "both" ? Ks() : null,
25659
25659
  restMs() {
25660
- const B = R?.delay, $ = typeof O.current == "object" ? O.current.open : void 0;
25660
+ const z = R?.delay, $ = typeof O.current == "object" ? O.current.open : void 0;
25661
25661
  let W = C;
25662
- return D && ($ !== 0 ? W = l ?? B ?? C : W = 0), W;
25662
+ return D && ($ !== 0 ? W = l ?? z ?? C : W = 0), W;
25663
25663
  },
25664
25664
  delay() {
25665
- const B = typeof O.current == "object" ? O.current.close : void 0;
25665
+ const z = typeof O.current == "object" ? O.current.close : void 0;
25666
25666
  let $ = E;
25667
- return c == null && D && ($ = B), {
25667
+ return c == null && D && ($ = z), {
25668
25668
  close: $
25669
25669
  };
25670
25670
  },
@@ -27806,8 +27806,8 @@ var wq = [
27806
27806
  return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
27807
27807
  }, {}), mi = '[cmdk-group=""]', Ef = '[cmdk-group-items=""]', Cq = '[cmdk-group-heading=""]', d0 = '[cmdk-item=""]', aw = `${d0}:not([aria-disabled="true"])`, vp = "cmdk-item-select", xo = "data-value", Eq = (e, t, n) => C$(e, t, n), f0 = u.createContext(void 0), ua = () => u.useContext(f0), p0 = u.createContext(void 0), $h = () => u.useContext(p0), m0 = u.createContext(void 0), h0 = u.forwardRef((e, t) => {
27808
27808
  let n = wo(() => {
27809
- var V, z;
27810
- return { search: "", value: (z = (V = e.value) != null ? V : e.defaultValue) != null ? z : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
27809
+ var V, B;
27810
+ return { search: "", value: (B = (V = e.value) != null ? V : e.defaultValue) != null ? B : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
27811
27811
  }), r = wo(() => /* @__PURE__ */ new Set()), o = wo(() => /* @__PURE__ */ new Map()), i = wo(() => /* @__PURE__ */ new Map()), a = wo(() => /* @__PURE__ */ new Set()), s = g0(e), { label: l, children: c, value: d, onValueChange: f, filter: p, shouldFilter: m, loop: v, disablePointerSelection: h = !1, vimBindings: g = !0, ...y } = e, b = Gn(), C = Gn(), E = Gn(), w = u.useRef(null), S = Dq();
27812
27812
  Yr(() => {
27813
27813
  if (d !== void 0) {
@@ -27817,10 +27817,10 @@ var wq = [
27817
27817
  }, [d]), Yr(() => {
27818
27818
  S(6, M);
27819
27819
  }, []);
27820
- let R = u.useMemo(() => ({ subscribe: (V) => (a.current.add(V), () => a.current.delete(V)), snapshot: () => n.current, setState: (V, z, H) => {
27820
+ let R = u.useMemo(() => ({ subscribe: (V) => (a.current.add(V), () => a.current.delete(V)), snapshot: () => n.current, setState: (V, B, H) => {
27821
27821
  var q, G, U, Z;
27822
- if (!Object.is(n.current[V], z)) {
27823
- if (n.current[V] = z, V === "search") _(), D(), S(1, T);
27822
+ if (!Object.is(n.current[V], B)) {
27823
+ if (n.current[V] = B, V === "search") _(), D(), S(1, T);
27824
27824
  else if (V === "value") {
27825
27825
  if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
27826
27826
  let ie = document.getElementById(E);
@@ -27830,7 +27830,7 @@ var wq = [
27830
27830
  var ie;
27831
27831
  n.current.selectedItemId = (ie = k()) == null ? void 0 : ie.id, R.emit();
27832
27832
  }), H || S(5, M), ((G = s.current) == null ? void 0 : G.value) !== void 0) {
27833
- let ie = z ?? "";
27833
+ let ie = B ?? "";
27834
27834
  (Z = (U = s.current).onValueChange) == null || Z.call(U, ie);
27835
27835
  return;
27836
27836
  }
@@ -27839,12 +27839,12 @@ var wq = [
27839
27839
  }
27840
27840
  }, emit: () => {
27841
27841
  a.current.forEach((V) => V());
27842
- } }), []), O = u.useMemo(() => ({ value: (V, z, H) => {
27842
+ } }), []), O = u.useMemo(() => ({ value: (V, B, H) => {
27843
27843
  var q;
27844
- z !== ((q = i.current.get(V)) == null ? void 0 : q.value) && (i.current.set(V, { value: z, keywords: H }), n.current.filtered.items.set(V, P(z, H)), S(2, () => {
27844
+ B !== ((q = i.current.get(V)) == null ? void 0 : q.value) && (i.current.set(V, { value: B, keywords: H }), n.current.filtered.items.set(V, P(B, H)), S(2, () => {
27845
27845
  D(), R.emit();
27846
27846
  }));
27847
- }, item: (V, z) => (r.current.add(V), z && (o.current.has(z) ? o.current.get(z).add(V) : o.current.set(z, /* @__PURE__ */ new Set([V]))), S(3, () => {
27847
+ }, item: (V, B) => (r.current.add(V), B && (o.current.has(B) ? o.current.get(B).add(V) : o.current.set(B, /* @__PURE__ */ new Set([V]))), S(3, () => {
27848
27848
  _(), D(), n.current.value || T(), R.emit();
27849
27849
  }), () => {
27850
27850
  i.current.delete(V), r.current.delete(V), n.current.filtered.items.delete(V);
@@ -27855,20 +27855,20 @@ var wq = [
27855
27855
  }), group: (V) => (o.current.has(V) || o.current.set(V, /* @__PURE__ */ new Set()), () => {
27856
27856
  i.current.delete(V), o.current.delete(V);
27857
27857
  }), filter: () => s.current.shouldFilter, label: l || e["aria-label"], getDisablePointerSelection: () => s.current.disablePointerSelection, listId: b, inputId: E, labelId: C, listInnerRef: w }), []);
27858
- function P(V, z) {
27858
+ function P(V, B) {
27859
27859
  var H, q;
27860
27860
  let G = (q = (H = s.current) == null ? void 0 : H.filter) != null ? q : Eq;
27861
- return V ? G(V, n.current.search, z) : 0;
27861
+ return V ? G(V, n.current.search, B) : 0;
27862
27862
  }
27863
27863
  function D() {
27864
27864
  if (!n.current.search || s.current.shouldFilter === !1) return;
27865
- let V = n.current.filtered.items, z = [];
27865
+ let V = n.current.filtered.items, B = [];
27866
27866
  n.current.filtered.groups.forEach((q) => {
27867
27867
  let G = o.current.get(q), U = 0;
27868
27868
  G.forEach((Z) => {
27869
27869
  let ie = V.get(Z);
27870
27870
  U = Math.max(ie, U);
27871
- }), z.push([q, U]);
27871
+ }), B.push([q, U]);
27872
27872
  });
27873
27873
  let H = w.current;
27874
27874
  N().sort((q, G) => {
@@ -27878,18 +27878,18 @@ var wq = [
27878
27878
  }).forEach((q) => {
27879
27879
  let G = q.closest(Ef);
27880
27880
  G ? G.appendChild(q.parentElement === G ? q : q.closest(`${Ef} > *`)) : H.appendChild(q.parentElement === H ? q : q.closest(`${Ef} > *`));
27881
- }), z.sort((q, G) => G[1] - q[1]).forEach((q) => {
27881
+ }), B.sort((q, G) => G[1] - q[1]).forEach((q) => {
27882
27882
  var G;
27883
27883
  let U = (G = w.current) == null ? void 0 : G.querySelector(`${mi}[${xo}="${encodeURIComponent(q[0])}"]`);
27884
27884
  U?.parentElement.appendChild(U);
27885
27885
  });
27886
27886
  }
27887
27887
  function T() {
27888
- let V = N().find((H) => H.getAttribute("aria-disabled") !== "true"), z = V?.getAttribute(xo);
27889
- R.setState("value", z || void 0);
27888
+ let V = N().find((H) => H.getAttribute("aria-disabled") !== "true"), B = V?.getAttribute(xo);
27889
+ R.setState("value", B || void 0);
27890
27890
  }
27891
27891
  function _() {
27892
- var V, z, H, q;
27892
+ var V, B, H, q;
27893
27893
  if (!n.current.search || s.current.shouldFilter === !1) {
27894
27894
  n.current.filtered.count = r.current.size;
27895
27895
  return;
@@ -27897,7 +27897,7 @@ var wq = [
27897
27897
  n.current.filtered.groups = /* @__PURE__ */ new Set();
27898
27898
  let G = 0;
27899
27899
  for (let U of r.current) {
27900
- let Z = (z = (V = i.current.get(U)) == null ? void 0 : V.value) != null ? z : "", ie = (q = (H = i.current.get(U)) == null ? void 0 : H.keywords) != null ? q : [], K = P(Z, ie);
27900
+ let Z = (B = (V = i.current.get(U)) == null ? void 0 : V.value) != null ? B : "", ie = (q = (H = i.current.get(U)) == null ? void 0 : H.keywords) != null ? q : [], K = P(Z, ie);
27901
27901
  n.current.filtered.items.set(U, K), K > 0 && G++;
27902
27902
  }
27903
27903
  for (let [U, Z] of o.current) for (let ie of Z) if (n.current.filtered.items.get(ie) > 0) {
@@ -27907,9 +27907,9 @@ var wq = [
27907
27907
  n.current.filtered.count = G;
27908
27908
  }
27909
27909
  function M() {
27910
- var V, z, H;
27910
+ var V, B, H;
27911
27911
  let q = k();
27912
- q && (((V = q.parentElement) == null ? void 0 : V.firstChild) === q && ((H = (z = q.closest(mi)) == null ? void 0 : z.querySelector(Cq)) == null || H.scrollIntoView({ block: "nearest" })), q.scrollIntoView({ block: "nearest" }));
27912
+ q && (((V = q.parentElement) == null ? void 0 : V.firstChild) === q && ((H = (B = q.closest(mi)) == null ? void 0 : B.querySelector(Cq)) == null || H.scrollIntoView({ block: "nearest" })), q.scrollIntoView({ block: "nearest" }));
27913
27913
  }
27914
27914
  function k() {
27915
27915
  var V;
@@ -27920,27 +27920,27 @@ var wq = [
27920
27920
  return Array.from(((V = w.current) == null ? void 0 : V.querySelectorAll(aw)) || []);
27921
27921
  }
27922
27922
  function A(V) {
27923
- let z = N()[V];
27924
- z && R.setState("value", z.getAttribute(xo));
27923
+ let B = N()[V];
27924
+ B && R.setState("value", B.getAttribute(xo));
27925
27925
  }
27926
27926
  function F(V) {
27927
- var z;
27927
+ var B;
27928
27928
  let H = k(), q = N(), G = q.findIndex((Z) => Z === H), U = q[G + V];
27929
- (z = s.current) != null && z.loop && (U = G + V < 0 ? q[q.length - 1] : G + V === q.length ? q[0] : q[G + V]), U && R.setState("value", U.getAttribute(xo));
27929
+ (B = s.current) != null && B.loop && (U = G + V < 0 ? q[q.length - 1] : G + V === q.length ? q[0] : q[G + V]), U && R.setState("value", U.getAttribute(xo));
27930
27930
  }
27931
27931
  function I(V) {
27932
- let z = k(), H = z?.closest(mi), q;
27932
+ let B = k(), H = B?.closest(mi), q;
27933
27933
  for (; H && !q; ) H = V > 0 ? Iq(H, mi) : _q(H, mi), q = H?.querySelector(aw);
27934
27934
  q ? R.setState("value", q.getAttribute(xo)) : F(V);
27935
27935
  }
27936
- let B = () => A(N().length - 1), $ = (V) => {
27937
- V.preventDefault(), V.metaKey ? B() : V.altKey ? I(1) : F(1);
27936
+ let z = () => A(N().length - 1), $ = (V) => {
27937
+ V.preventDefault(), V.metaKey ? z() : V.altKey ? I(1) : F(1);
27938
27938
  }, W = (V) => {
27939
27939
  V.preventDefault(), V.metaKey ? A(0) : V.altKey ? I(-1) : F(-1);
27940
27940
  };
27941
27941
  return u.createElement(Pr.div, { ref: t, tabIndex: -1, ...y, "cmdk-root": "", onKeyDown: (V) => {
27942
- var z;
27943
- (z = y.onKeyDown) == null || z.call(y, V);
27942
+ var B;
27943
+ (B = y.onKeyDown) == null || B.call(y, V);
27944
27944
  let H = V.nativeEvent.isComposing || V.keyCode === 229;
27945
27945
  if (!(V.defaultPrevented || H)) switch (V.key) {
27946
27946
  case "n":
@@ -27966,7 +27966,7 @@ var wq = [
27966
27966
  break;
27967
27967
  }
27968
27968
  case "End": {
27969
- V.preventDefault(), B();
27969
+ V.preventDefault(), z();
27970
27970
  break;
27971
27971
  }
27972
27972
  case "Enter": {
@@ -28984,7 +28984,7 @@ var C0 = u.createContext({}), E0 = u.forwardRef((e, t) => {
28984
28984
  document.removeEventListener("selectionchange", J, { capture: !0 }), xe.disconnect();
28985
28985
  };
28986
28986
  }, []);
28987
- let [F, I] = u.useState(!1), [B, $] = u.useState(!1), [W, V] = u.useState(null), [z, H] = u.useState(null);
28987
+ let [F, I] = u.useState(!1), [z, $] = u.useState(!1), [W, V] = u.useState(null), [B, H] = u.useState(null);
28988
28988
  u.useEffect(() => {
28989
28989
  a2(() => {
28990
28990
  var Y, X, J, re;
@@ -28992,10 +28992,10 @@ var C0 = u.createContext({}), E0 = u.forwardRef((e, t) => {
28992
28992
  let xe = (X = M.current) == null ? void 0 : X.selectionStart, de = (J = M.current) == null ? void 0 : J.selectionEnd, ye = (re = M.current) == null ? void 0 : re.selectionDirection;
28993
28993
  xe !== null && de !== null && (V(xe), H(de), A.current.prev = [xe, de, ye]);
28994
28994
  });
28995
- }, [P, B]), u.useEffect(() => {
28995
+ }, [P, z]), u.useEffect(() => {
28996
28996
  D !== void 0 && P !== D && D.length < i && P.length === i && d?.(P);
28997
28997
  }, [i, d, D, P]);
28998
- let q = d2({ containerRef: k, inputRef: M, pushPasswordManagerStrategy: f, isFocused: B }), G = u.useCallback((Y) => {
28998
+ let q = d2({ containerRef: k, inputRef: M, pushPasswordManagerStrategy: f, isFocused: z }), G = u.useCallback((Y) => {
28999
28999
  let X = Y.currentTarget.value.slice(0, i);
29000
29000
  if (X.length > 0 && _ && !_.test(X)) {
29001
29001
  Y.preventDefault();
@@ -29020,7 +29020,7 @@ var C0 = u.createContext({}), E0 = u.forwardRef((e, t) => {
29020
29020
  re.value = me, T(me);
29021
29021
  let ce = Math.min(me.length, i - 1), ge = me.length;
29022
29022
  re.setSelectionRange(ce, ge), V(ce), H(ge);
29023
- }, [i, T, _, P]), ie = u.useMemo(() => ({ position: "relative", cursor: y.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [y.disabled]), K = u.useMemo(() => ({ position: "absolute", inset: 0, width: q.willPushPWMBadge ? `calc(100% + ${q.PWM_BADGE_SPACE_WIDTH})` : "100%", clipPath: q.willPushPWMBadge ? `inset(0 ${q.PWM_BADGE_SPACE_WIDTH} 0 0)` : void 0, height: "100%", display: "flex", textAlign: a, opacity: "1", color: "transparent", pointerEvents: "all", background: "transparent", caretColor: "transparent", border: "0 solid transparent", outline: "0 solid transparent", boxShadow: "none", lineHeight: "1", letterSpacing: "-.5em", fontSize: "var(--root-height)", fontFamily: "monospace", fontVariantNumeric: "tabular-nums" }), [q.PWM_BADGE_SPACE_WIDTH, q.willPushPWMBadge, a]), j = u.useMemo(() => u.createElement("input", o2(r2({ autoComplete: y.autoComplete || "one-time-code" }, y), { "data-input-otp": !0, "data-input-otp-placeholder-shown": P.length === 0 || void 0, "data-input-otp-mss": W, "data-input-otp-mse": z, inputMode: c, pattern: _?.source, "aria-placeholder": l, style: K, maxLength: i, value: P, ref: M, onPaste: (Y) => {
29023
+ }, [i, T, _, P]), ie = u.useMemo(() => ({ position: "relative", cursor: y.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [y.disabled]), K = u.useMemo(() => ({ position: "absolute", inset: 0, width: q.willPushPWMBadge ? `calc(100% + ${q.PWM_BADGE_SPACE_WIDTH})` : "100%", clipPath: q.willPushPWMBadge ? `inset(0 ${q.PWM_BADGE_SPACE_WIDTH} 0 0)` : void 0, height: "100%", display: "flex", textAlign: a, opacity: "1", color: "transparent", pointerEvents: "all", background: "transparent", caretColor: "transparent", border: "0 solid transparent", outline: "0 solid transparent", boxShadow: "none", lineHeight: "1", letterSpacing: "-.5em", fontSize: "var(--root-height)", fontFamily: "monospace", fontVariantNumeric: "tabular-nums" }), [q.PWM_BADGE_SPACE_WIDTH, q.willPushPWMBadge, a]), j = u.useMemo(() => u.createElement("input", o2(r2({ autoComplete: y.autoComplete || "one-time-code" }, y), { "data-input-otp": !0, "data-input-otp-placeholder-shown": P.length === 0 || void 0, "data-input-otp-mss": W, "data-input-otp-mse": B, inputMode: c, pattern: _?.source, "aria-placeholder": l, style: K, maxLength: i, value: P, ref: M, onPaste: (Y) => {
29024
29024
  var X;
29025
29025
  Z(Y), (X = y.onPaste) == null || X.call(y, Y);
29026
29026
  }, onChange: G, onMouseOver: (Y) => {
@@ -29035,11 +29035,11 @@ var C0 = u.createContext({}), E0 = u.forwardRef((e, t) => {
29035
29035
  }, onBlur: (Y) => {
29036
29036
  var X;
29037
29037
  $(!1), (X = y.onBlur) == null || X.call(y, Y);
29038
- } })), [G, U, Z, c, K, i, z, W, y, _?.source, P]), te = u.useMemo(() => ({ slots: Array.from({ length: i }).map((Y, X) => {
29038
+ } })), [G, U, Z, c, K, i, B, W, y, _?.source, P]), te = u.useMemo(() => ({ slots: Array.from({ length: i }).map((Y, X) => {
29039
29039
  var J;
29040
- let re = B && W !== null && z !== null && (W === z && X === W || X >= W && X < z), xe = P[X] !== void 0 ? P[X] : null, de = P[0] !== void 0 ? null : (J = l?.[X]) != null ? J : null;
29040
+ let re = z && W !== null && B !== null && (W === B && X === W || X >= W && X < B), xe = P[X] !== void 0 ? P[X] : null, de = P[0] !== void 0 ? null : (J = l?.[X]) != null ? J : null;
29041
29041
  return { char: xe, placeholderChar: de, isActive: re, hasFakeCaret: re && xe === null };
29042
- }), isFocused: B, isHovering: !y.disabled && F }), [B, F, i, z, W, y.disabled, P]), ue = u.useMemo(() => h ? h(te) : u.createElement(C0.Provider, { value: te }, g), [g, te, h]);
29042
+ }), isFocused: z, isHovering: !y.disabled && F }), [z, F, i, B, W, y.disabled, P]), ue = u.useMemo(() => h ? h(te) : u.createElement(C0.Provider, { value: te }, g), [g, te, h]);
29043
29043
  return u.createElement(u.Fragment, null, v !== null && u.createElement("noscript", null, u.createElement("style", null, v)), u.createElement("div", { ref: k, "data-input-otp-container": !0, style: ie, className: m }, ue, u.createElement("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" } }, j)));
29044
29044
  });
29045
29045
  E0.displayName = "Input";
@@ -30904,11 +30904,11 @@ function FG({
30904
30904
  const W = S.trim();
30905
30905
  if (!W || _.current) return;
30906
30906
  $.preventDefault();
30907
- const V = e.find((z) => O0.compare(z.label, W) === 0);
30907
+ const V = e.find((B) => O0.compare(B.label, W) === 0);
30908
30908
  F(V ?? m?.(W) ?? { value: W, label: W }), P(!1);
30909
30909
  },
30910
30910
  [p, S, e, m, F]
30911
- ), B = y ? Tl : Nl;
30911
+ ), z = y ? Tl : Nl;
30912
30912
  return /* @__PURE__ */ oe(ln, { children: [
30913
30913
  /* @__PURE__ */ oe(
30914
30914
  Rs,
@@ -30975,7 +30975,7 @@ function FG({
30975
30975
  ]
30976
30976
  }
30977
30977
  ),
30978
- b && /* @__PURE__ */ oe(B, { id: C, className: "flex items-center gap-1", children: [
30978
+ b && /* @__PURE__ */ oe(z, { id: C, className: "flex items-center gap-1", children: [
30979
30979
  /* @__PURE__ */ x(br, { size: Rf }),
30980
30980
  /* @__PURE__ */ x("span", { children: b })
30981
30981
  ] })
@@ -31539,7 +31539,7 @@ function gw(e) {
31539
31539
  autoOpen: i = !1,
31540
31540
  searchable: a = !1,
31541
31541
  searchPlaceholder: s = "Ara..."
31542
- } = e, l = e.multiple ?? !1, [c, d] = Dt(!1), f = Un(!1), p = Un(!1);
31542
+ } = e, l = e.multiple ?? !1, [c, d] = Dt(!1), f = Mn(!1), p = Mn(!1);
31543
31543
  Ns(() => {
31544
31544
  i && !f.current && (setTimeout(() => d(!0), 0), f.current = !0);
31545
31545
  }, [i]);
@@ -31665,61 +31665,61 @@ function LH({
31665
31665
  autoOpen: i = !1,
31666
31666
  quickPresets: a
31667
31667
  }) {
31668
- const [s, l] = Dt("months"), [c, d] = Dt(!1), [f, p] = Dt(!1), [m, v] = Dt(bw), [h, g] = Dt(vw), [y, b] = Dt(void 0), C = Un(!1);
31668
+ const [s, l] = Dt("months"), [c, d] = Dt(!1), [f, p] = Dt(!1), [m, v] = Dt(bw), [h, g] = Dt(vw), [y, b] = Dt(void 0), C = Mn(!1), E = Mn(!1);
31669
31669
  Ns(() => {
31670
31670
  i && !C.current && (setTimeout(() => d(!0), 0), C.current = !0);
31671
31671
  }, [i]);
31672
- const E = At(
31672
+ const w = At(
31673
31673
  () => _H(m, h),
31674
31674
  [m, h]
31675
- ), w = At(() => (/* @__PURE__ */ new Date()).getFullYear(), []), S = At(
31676
- () => E.map((W) => ({
31677
- value: Pn(W, "yyyy-MM"),
31678
- label: DH(W, w),
31679
- date: W
31675
+ ), S = At(() => (/* @__PURE__ */ new Date()).getFullYear(), []), R = At(
31676
+ () => w.map((V) => ({
31677
+ value: Pn(V, "yyyy-MM"),
31678
+ label: DH(V, S),
31679
+ date: V
31680
31680
  })),
31681
- [E, w]
31682
- ), R = At(() => {
31681
+ [w, S]
31682
+ ), O = At(() => {
31683
31683
  if (!e.from || !e.to) return null;
31684
- const W = Eo(e.from), V = Eo(e.to);
31685
- return k0(W, V) ? S.find((z) => il(z.date, W)) ?? null : null;
31686
- }, [e, S]), O = At(
31684
+ const V = Eo(e.from), B = Eo(e.to);
31685
+ return k0(V, B) ? R.find((H) => il(H.date, V)) ?? null : null;
31686
+ }, [e, R]), P = At(
31687
31687
  () => a ?? VH(),
31688
31688
  [a]
31689
- ), P = AH(e, n), D = at((W) => {
31690
- d(W), W || (v(bw), g(vw), !e.from && !e.to && r());
31691
- }, [e, r]), T = at(
31692
- (W) => {
31693
- W && t({
31694
- from: Ya(Bo(W.date)),
31695
- to: Ya(Ti(W.date))
31696
- });
31689
+ ), D = AH(e, n), T = at((V) => {
31690
+ V && (E.current = !1), d(V), V || (v(bw), g(vw), E.current ? E.current = !1 : !e.from && !e.to && r());
31691
+ }, [e, r]), _ = at(
31692
+ (V) => {
31693
+ V && (E.current = !0, t({
31694
+ from: Ya(Bo(V.date)),
31695
+ to: Ya(Ti(V.date))
31696
+ }));
31697
31697
  },
31698
31698
  [t]
31699
- ), _ = at((W) => {
31700
- W.preventDefault(), v((V) => V + yw);
31701
- }, []), M = at((W) => {
31702
- W.preventDefault(), g((V) => V + yw);
31703
- }, []), k = at(() => {
31704
- d(!1), e.from && e.to ? b({ from: Eo(e.from), to: Eo(e.to) }) : b(void 0), l("range"), setTimeout(() => p(!0), 0);
31705
- }, [e]), N = at(() => {
31706
- p(!1), l("months"), b(void 0), !e.from && !e.to && r();
31707
- }, [e, r]), A = at((W) => {
31708
- W ? p(!0) : N();
31709
- }, [N]), F = at(() => {
31710
- y?.from && y?.to && t({
31699
+ ), M = at((V) => {
31700
+ V.preventDefault(), v((B) => B + yw);
31701
+ }, []), k = at((V) => {
31702
+ V.preventDefault(), g((B) => B + yw);
31703
+ }, []), N = at(() => {
31704
+ E.current = !0, d(!1), e.from && e.to ? b({ from: Eo(e.from), to: Eo(e.to) }) : b(void 0), l("range"), setTimeout(() => p(!0), 0);
31705
+ }, [e]), A = at(() => {
31706
+ p(!1), l("months"), b(void 0), E.current ? E.current = !1 : !e.from && !e.to && r();
31707
+ }, [e, r]), F = at((V) => {
31708
+ V ? p(!0) : A();
31709
+ }, [A]), I = at(() => {
31710
+ y?.from && y?.to && (E.current = !0, t({
31711
31711
  from: Ya(y.from),
31712
31712
  to: Ya(y.to)
31713
- }), N();
31714
- }, [y, t, N]), I = at(
31715
- (W) => {
31716
- W.preventDefault(), W.stopPropagation(), r();
31713
+ })), A();
31714
+ }, [y, t, A]), z = at(
31715
+ (V) => {
31716
+ V.preventDefault(), V.stopPropagation(), r();
31717
31717
  },
31718
31718
  [r]
31719
- ), B = /* @__PURE__ */ oe(ln, { children: [
31719
+ ), $ = /* @__PURE__ */ oe(ln, { children: [
31720
31720
  /* @__PURE__ */ x(yP, { className: "h-4 w-4 shrink-0 opacity-60" }),
31721
- /* @__PURE__ */ x("span", { className: "truncate", children: P })
31722
- ] }), $ = "rounded-none border-0 pr-11! shadow-none";
31721
+ /* @__PURE__ */ x("span", { className: "truncate", children: D })
31722
+ ] }), W = "rounded-none border-0 pr-11! shadow-none";
31723
31723
  return /* @__PURE__ */ oe("div", { className: "relative flex items-center", children: [
31724
31724
  s === "months" ? (
31725
31725
  /* ── Month Quick-Select (Combobox) ──────────────────────── */
@@ -31727,10 +31727,10 @@ function LH({
31727
31727
  Rs,
31728
31728
  {
31729
31729
  open: c,
31730
- onOpenChange: D,
31731
- value: R,
31732
- onValueChange: T,
31733
- items: S,
31730
+ onOpenChange: T,
31731
+ value: O,
31732
+ onValueChange: _,
31733
+ items: R,
31734
31734
  disabled: o,
31735
31735
  ...FH,
31736
31736
  children: [
@@ -31742,18 +31742,18 @@ function LH({
31742
31742
  {
31743
31743
  variant: "outline",
31744
31744
  disabled: o,
31745
- className: $
31745
+ className: W
31746
31746
  }
31747
31747
  ),
31748
- children: B
31748
+ children: $
31749
31749
  }
31750
31750
  ),
31751
31751
  /* @__PURE__ */ x(
31752
31752
  BH,
31753
31753
  {
31754
- onLoadEarlier: _,
31755
- onLoadLater: M,
31756
- onOpenDateRange: k
31754
+ onLoadEarlier: M,
31755
+ onLoadLater: k,
31756
+ onOpenDateRange: N
31757
31757
  }
31758
31758
  )
31759
31759
  ]
@@ -31761,7 +31761,7 @@ function LH({
31761
31761
  )
31762
31762
  ) : (
31763
31763
  /* ── Custom Date Range (Popover) ────────────────────────── */
31764
- /* @__PURE__ */ oe(x2, { open: f, onOpenChange: A, children: [
31764
+ /* @__PURE__ */ oe(x2, { open: f, onOpenChange: F, children: [
31765
31765
  /* @__PURE__ */ oe(
31766
31766
  w2,
31767
31767
  {
@@ -31770,11 +31770,11 @@ function LH({
31770
31770
  {
31771
31771
  variant: "outline",
31772
31772
  disabled: o,
31773
- className: $
31773
+ className: W
31774
31774
  }
31775
31775
  ),
31776
31776
  children: [
31777
- B,
31777
+ $,
31778
31778
  /* @__PURE__ */ x(vP, { className: "text-muted-foreground size-4 pointer-events-none" })
31779
31779
  ]
31780
31780
  }
@@ -31784,9 +31784,9 @@ function LH({
31784
31784
  {
31785
31785
  pendingRange: y,
31786
31786
  onRangeChange: b,
31787
- quickPresets: O,
31788
- onApply: F,
31789
- onCancel: N
31787
+ quickPresets: P,
31788
+ onApply: I,
31789
+ onCancel: A
31790
31790
  }
31791
31791
  ) })
31792
31792
  ] })
@@ -31798,7 +31798,7 @@ function LH({
31798
31798
  variant: "ghost",
31799
31799
  isIcon: !0,
31800
31800
  size: "sm",
31801
- onClick: I,
31801
+ onClick: z,
31802
31802
  disabled: o,
31803
31803
  className: "absolute right-1 z-10",
31804
31804
  children: /* @__PURE__ */ x(Sp, { className: "h-4 w-4" })
@@ -31995,7 +31995,6 @@ function WH({
31995
31995
  const y = h(g.category);
31996
31996
  if (!y) return null;
31997
31997
  const b = {
31998
- key: g.id,
31999
31998
  placeholder: y.label,
32000
31999
  onRemove: () => m(g.id),
32001
32000
  disabled: i,
@@ -32010,7 +32009,8 @@ function WH({
32010
32009
  value: E,
32011
32010
  onValueChange: (w) => p(g.id, w),
32012
32011
  quickPresets: y.quickPresets
32013
- }
32012
+ },
32013
+ g.id
32014
32014
  );
32015
32015
  }
32016
32016
  const C = {
@@ -32025,14 +32025,16 @@ function WH({
32025
32025
  multiple: !0,
32026
32026
  value: Array.isArray(g.value) ? g.value : [],
32027
32027
  onValueChange: (E) => p(g.id, E)
32028
- }
32028
+ },
32029
+ g.id
32029
32030
  ) : /* @__PURE__ */ x(
32030
32031
  gw,
32031
32032
  {
32032
32033
  ...C,
32033
32034
  value: typeof g.value == "string" ? g.value : "",
32034
32035
  onValueChange: (E) => p(g.id, E)
32035
- }
32036
+ },
32037
+ g.id
32036
32038
  );
32037
32039
  })
32038
32040
  ] });