react-lib-tools 0.0.49 → 0.0.51

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 (27) hide show
  1. package/dist/{CommonQuestionsRoute-CRSNF0Pf.js → CommonQuestionsRoute-DlV7QVyq.js} +2 -2
  2. package/dist/{CommonQuestionsRoute-CRSNF0Pf.js.map → CommonQuestionsRoute-DlV7QVyq.js.map} +1 -1
  3. package/dist/{CommonQuestionsRoute-C7Dvx_8D.cjs → CommonQuestionsRoute-JhQJm385.cjs} +2 -2
  4. package/dist/{CommonQuestionsRoute-C7Dvx_8D.cjs.map → CommonQuestionsRoute-JhQJm385.cjs.map} +1 -1
  5. package/dist/{GettingStartedRoute-CnQSytXZ.js → GettingStartedRoute-Dz8oT3qR.js} +2 -2
  6. package/dist/{GettingStartedRoute-CnQSytXZ.js.map → GettingStartedRoute-Dz8oT3qR.js.map} +1 -1
  7. package/dist/{GettingStartedRoute-BKH20xPD.cjs → GettingStartedRoute-kXFkpZch.cjs} +2 -2
  8. package/dist/{GettingStartedRoute-BKH20xPD.cjs.map → GettingStartedRoute-kXFkpZch.cjs.map} +1 -1
  9. package/dist/{PageNotFound-BP1q3mAm.cjs → PageNotFound-C-2lJPrM.cjs} +2 -2
  10. package/dist/{PageNotFound-BP1q3mAm.cjs.map → PageNotFound-C-2lJPrM.cjs.map} +1 -1
  11. package/dist/{PageNotFound-0sTGJQpW.js → PageNotFound-C95TqXFO.js} +2 -2
  12. package/dist/{PageNotFound-0sTGJQpW.js.map → PageNotFound-C95TqXFO.js.map} +1 -1
  13. package/dist/{SupportRoute-B70W0nGt.js → SupportRoute-CLa48ZM-.js} +2 -2
  14. package/dist/{SupportRoute-B70W0nGt.js.map → SupportRoute-CLa48ZM-.js.map} +1 -1
  15. package/dist/{SupportRoute-DJ8l10dE.cjs → SupportRoute-kVgm6bnU.cjs} +2 -2
  16. package/dist/{SupportRoute-DJ8l10dE.cjs.map → SupportRoute-kVgm6bnU.cjs.map} +1 -1
  17. package/dist/{VersionsRoute-BDTmCVHk.js → VersionsRoute-qW1sbYlY.js} +2 -2
  18. package/dist/{VersionsRoute-BDTmCVHk.js.map → VersionsRoute-qW1sbYlY.js.map} +1 -1
  19. package/dist/{VersionsRoute-B9OjVQl5.cjs → VersionsRoute-ujHJONUW.cjs} +2 -2
  20. package/dist/{VersionsRoute-B9OjVQl5.cjs.map → VersionsRoute-ujHJONUW.cjs.map} +1 -1
  21. package/dist/{index-DjmISh76.js → index-CffrZIvy.js} +190 -189
  22. package/dist/{index-DjmISh76.js.map → index-CffrZIvy.js.map} +1 -1
  23. package/dist/{index-D8_W9HHv.cjs → index-_OmnYlM7.cjs} +2 -2
  24. package/dist/{index-D8_W9HHv.cjs.map → index-_OmnYlM7.cjs.map} +1 -1
  25. package/dist/react-lib-tools.cjs +1 -1
  26. package/dist/react-lib-tools.js +1 -1
  27. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as R, jsxs as Y, Fragment as Rt } from "react/jsx-runtime";
3
3
  import * as m from "react";
4
- import j, { createContext as le, useContext as te, Component as Ya, createElement as vn, useRef as U, useCallback as Z, useEffect as re, useState as J, useMemo as ce, useLayoutEffect as Gt, forwardRef as Xa, Fragment as _e, isValidElement as Hr, cloneElement as Li, useId as qe, useSyncExternalStore as Za, useReducer as Ja, useTransition as Qa, lazy as Mt, startTransition as Eo, use as es } from "react";
4
+ import j, { createContext as le, useContext as te, Component as Ya, createElement as vn, useRef as U, useCallback as Z, useEffect as re, useState as J, useMemo as ce, useLayoutEffect as Gt, forwardRef as Xa, Fragment as _e, isValidElement as Hr, cloneElement as Li, useId as Ke, useSyncExternalStore as Za, useReducer as Ja, useTransition as Qa, lazy as Mt, startTransition as Eo, use as es } from "react";
5
5
  import * as bn from "react-dom";
6
6
  import { flushSync as wn, createPortal as Vr } from "react-dom";
7
7
  function ts({
@@ -684,10 +684,10 @@ var Ae = m.createContext(
684
684
  null
685
685
  );
686
686
  Ae.displayName = "Navigation";
687
- var Kt = m.createContext(
687
+ var qt = m.createContext(
688
688
  null
689
689
  );
690
- Kt.displayName = "Location";
690
+ qt.displayName = "Location";
691
691
  var Ye = m.createContext({
692
692
  outlet: null,
693
693
  matches: [],
@@ -696,18 +696,18 @@ var Ye = m.createContext({
696
696
  Ye.displayName = "Route";
697
697
  var Wr = m.createContext(null);
698
698
  Wr.displayName = "RouteError";
699
- function Ks(e, { relative: t } = {}) {
699
+ function qs(e, { relative: t } = {}) {
700
700
  ne(
701
701
  kt(),
702
702
  // TODO: This error is probably because they somehow have 2 versions of the
703
703
  // router loaded. We can help them understand how to avoid that.
704
704
  "useHref() may be used only in the context of a <Router> component."
705
705
  );
706
- let { basename: n, navigator: r } = m.useContext(Ae), { hash: o, pathname: i, search: l } = qt(e, { relative: t }), a = i;
706
+ let { basename: n, navigator: r } = m.useContext(Ae), { hash: o, pathname: i, search: l } = Kt(e, { relative: t }), a = i;
707
707
  return n !== "/" && (a = i === "/" ? n : We([n, i])), r.createHref({ pathname: a, search: l, hash: o });
708
708
  }
709
709
  function kt() {
710
- return m.useContext(Kt) != null;
710
+ return m.useContext(qt) != null;
711
711
  }
712
712
  function Xe() {
713
713
  return ne(
@@ -715,9 +715,9 @@ function Xe() {
715
715
  // TODO: This error is probably because they somehow have 2 versions of the
716
716
  // router loaded. We can help them understand how to avoid that.
717
717
  "useLocation() may be used only in the context of a <Router> component."
718
- ), m.useContext(Kt).location;
718
+ ), m.useContext(qt).location;
719
719
  }
720
- function qs(e) {
720
+ function Ks(e) {
721
721
  ne(
722
722
  kt(),
723
723
  // TODO: This error is probably because they somehow have 2 versions of the
@@ -777,7 +777,7 @@ function Ys() {
777
777
  );
778
778
  }
779
779
  m.createContext(null);
780
- function qt(e, { relative: t } = {}) {
780
+ function Kt(e, { relative: t } = {}) {
781
781
  let { matches: n } = m.useContext(Ye), { pathname: r } = Xe(), o = JSON.stringify(Di(n));
782
782
  return m.useMemo(
783
783
  () => _i(
@@ -864,7 +864,7 @@ Please change the parent <Route path="${y}"> to <Route path="${y === "/" ? "*" :
864
864
  o
865
865
  );
866
866
  return t && b ? /* @__PURE__ */ m.createElement(
867
- Kt.Provider,
867
+ qt.Provider,
868
868
  {
869
869
  value: {
870
870
  location: {
@@ -1136,7 +1136,7 @@ function cc({
1136
1136
  return Le(
1137
1137
  h != null,
1138
1138
  `<Router basename="${a}"> is not able to match the URL "${c}${u}${f}" because it does not start with the basename, so the <Router> won't render anything.`
1139
- ), h == null ? null : /* @__PURE__ */ m.createElement(Ae.Provider, { value: s }, /* @__PURE__ */ m.createElement(Kt.Provider, { children: t, value: h }));
1139
+ ), h == null ? null : /* @__PURE__ */ m.createElement(Ae.Provider, { value: s }, /* @__PURE__ */ m.createElement(qt.Provider, { children: t, value: h }));
1140
1140
  }
1141
1141
  function uc({
1142
1142
  children: e,
@@ -1372,7 +1372,7 @@ function Cc(e, t) {
1372
1372
  return n.has(i) || (n.add(i), r.push({ key: i, link: o })), r;
1373
1373
  }, []);
1374
1374
  }
1375
- function Ki() {
1375
+ function qi() {
1376
1376
  let e = m.useContext(Ct);
1377
1377
  return Gr(
1378
1378
  e,
@@ -1386,17 +1386,17 @@ function kc() {
1386
1386
  "You must render this element inside a <DataRouterStateContext.Provider> element"
1387
1387
  ), e;
1388
1388
  }
1389
- var Kr = m.createContext(void 0);
1390
- Kr.displayName = "FrameworkContext";
1391
- function qi() {
1392
- let e = m.useContext(Kr);
1389
+ var qr = m.createContext(void 0);
1390
+ qr.displayName = "FrameworkContext";
1391
+ function Ki() {
1392
+ let e = m.useContext(qr);
1393
1393
  return Gr(
1394
1394
  e,
1395
1395
  "You must render this element inside a <HydratedRouter> element"
1396
1396
  ), e;
1397
1397
  }
1398
1398
  function Pc(e, t) {
1399
- let n = m.useContext(Kr), [r, o] = m.useState(!1), [i, l] = m.useState(!1), { onFocus: a, onBlur: s, onMouseEnter: c, onMouseLeave: u, onTouchStart: f } = t, p = m.useRef(null);
1399
+ let n = m.useContext(qr), [r, o] = m.useState(!1), [i, l] = m.useState(!1), { onFocus: a, onBlur: s, onMouseEnter: c, onMouseLeave: u, onTouchStart: f } = t, p = m.useRef(null);
1400
1400
  m.useEffect(() => {
1401
1401
  if (e === "render" && l(!0), e === "viewport") {
1402
1402
  let g = (b) => {
@@ -1441,14 +1441,14 @@ function Nt(e, t) {
1441
1441
  };
1442
1442
  }
1443
1443
  function Tc({ page: e, ...t }) {
1444
- let { router: n } = Ki(), r = m.useMemo(
1444
+ let { router: n } = qi(), r = m.useMemo(
1445
1445
  () => Mi(n.routes, e, n.basename),
1446
1446
  [n.routes, e, n.basename]
1447
1447
  );
1448
1448
  return r ? /* @__PURE__ */ m.createElement(Lc, { page: e, matches: r, ...t }) : null;
1449
1449
  }
1450
1450
  function Oc(e) {
1451
- let { manifest: t, routeModules: n } = qi(), [r, o] = m.useState([]);
1451
+ let { manifest: t, routeModules: n } = Ki(), [r, o] = m.useState([]);
1452
1452
  return m.useEffect(() => {
1453
1453
  let i = !1;
1454
1454
  return Ec(e, t, n).then(
@@ -1465,7 +1465,7 @@ function Lc({
1465
1465
  matches: t,
1466
1466
  ...n
1467
1467
  }) {
1468
- let r = Xe(), { manifest: o, routeModules: i } = qi(), { basename: l } = Ki(), { loaderData: a, matches: s } = kc(), c = m.useMemo(
1468
+ let r = Xe(), { manifest: o, routeModules: i } = Ki(), { basename: l } = qi(), { loaderData: a, matches: s } = kc(), c = m.useMemo(
1469
1469
  () => Po(
1470
1470
  e,
1471
1471
  t,
@@ -1586,7 +1586,7 @@ var Xi = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Zi = m.forwardRef(
1586
1586
  `<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
1587
1587
  );
1588
1588
  }
1589
- let w = Ks(c, { relative: o }), [$, E, k] = Pc(
1589
+ let w = qs(c, { relative: o }), [$, E, k] = Pc(
1590
1590
  r,
1591
1591
  p
1592
1592
  ), P = Dc(c, {
@@ -1632,7 +1632,7 @@ var Nc = m.forwardRef(
1632
1632
  children: s,
1633
1633
  ...c
1634
1634
  }, u) {
1635
- let f = qt(l, { relative: c.relative }), p = Xe(), d = m.useContext(Pn), { navigator: h, basename: g } = m.useContext(Ae), v = d != null && // Conditional usage is OK here because the usage of a data router is static
1635
+ let f = Kt(l, { relative: c.relative }), p = Xe(), d = m.useContext(Pn), { navigator: h, basename: g } = m.useContext(Ae), v = d != null && // Conditional usage is OK here because the usage of a data router is static
1636
1636
  // eslint-disable-next-line react-hooks/rules-of-hooks
1637
1637
  jc(f) && a === !0, b = h.encodeLocation ? h.encodeLocation(f).pathname : f.pathname, y = p.pathname, w = d && d.navigation && d.navigation.location ? d.navigation.location.pathname : null;
1638
1638
  n || (y = y.toLowerCase(), w = w ? w.toLowerCase() : null, b = b.toLowerCase()), w && g && (w = Ge(w, g) || w);
@@ -1726,7 +1726,7 @@ function Dc(e, {
1726
1726
  viewTransition: l,
1727
1727
  unstable_useTransitions: a
1728
1728
  } = {}) {
1729
- let s = Wi(), c = Xe(), u = qt(e, { relative: i });
1729
+ let s = Wi(), c = Xe(), u = Kt(e, { relative: i });
1730
1730
  return m.useCallback(
1731
1731
  (f) => {
1732
1732
  if (hc(f, t)) {
@@ -1798,7 +1798,7 @@ function Hc() {
1798
1798
  function Vc(e, { relative: t } = {}) {
1799
1799
  let { basename: n } = m.useContext(Ae), r = m.useContext(Ye);
1800
1800
  ne(r, "useFormAction must be used inside a RouteContext");
1801
- let [o] = r.matches.slice(-1), i = { ...qt(e || ".", { relative: t }) }, l = Xe();
1801
+ let [o] = r.matches.slice(-1), i = { ...Kt(e || ".", { relative: t }) }, l = Xe();
1802
1802
  if (e == null) {
1803
1803
  i.search = l.search;
1804
1804
  let a = new URLSearchParams(i.search), s = a.getAll("index");
@@ -1819,20 +1819,20 @@ function jc(e, { relative: t } = {}) {
1819
1819
  let { basename: r } = Ji(
1820
1820
  "useViewTransitionState"
1821
1821
  /* useViewTransitionState */
1822
- ), o = qt(e, { relative: t });
1822
+ ), o = Kt(e, { relative: t });
1823
1823
  if (!n.isTransitioning)
1824
1824
  return !1;
1825
1825
  let i = Ge(n.currentLocation.pathname, r) || n.currentLocation.pathname, l = Ge(n.nextLocation.pathname, r) || n.nextLocation.pathname;
1826
1826
  return Vt(o.pathname, l) != null || Vt(o.pathname, i) != null;
1827
1827
  }
1828
1828
  const Wc = (e) => /* @__PURE__ */ m.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "currentColor", className: "bi bi-github", viewBox: "0 0 16 16", ...e }, /* @__PURE__ */ m.createElement("path", { d: "M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8" })), zc = (e) => /* @__PURE__ */ m.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 128 128", ...e }, /* @__PURE__ */ m.createElement("path", { fill: "currentColor", d: "M2 38.5h124v43.71H64v7.29H36.44v-7.29H2zm6.89 36.43h13.78V53.07h6.89v21.86h6.89V45.79H8.89zm34.44-29.14v36.42h13.78v-7.28h13.78V45.79zm13.78 7.29H64v14.56h-6.89zm20.67-7.29v29.14h13.78V53.07h6.89v21.86h6.89V53.07h6.89v21.86h6.89V45.79z" })), Uc = (e) => /* @__PURE__ */ m.createElement("svg", { width: 50, height: 50, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ m.createElement("rect", { x: 0, y: 0, height: 20, width: 20, fill: "transparent" }), /* @__PURE__ */ m.createElement("circle", { cx: 10, cy: 10, r: 2, fill: "white" }), /* @__PURE__ */ m.createElement("g", { stroke: "white", strokeWidth: 2, fill: "none" }, /* @__PURE__ */ m.createElement("ellipse", { cx: 10, cy: 10, rx: 11, ry: 5, transform: "rotate(45, 10, 10)" }), /* @__PURE__ */ m.createElement("ellipse", { cx: 10, cy: 10, rx: 11, ry: 5, transform: "rotate(-45, 10, 10)" }))), Gc = (e) => /* @__PURE__ */ m.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 640 640", width: "24px", fill: "currentColor", ...e }, /* @__PURE__ */ m.createElement("path", { d: "M433.2 103.1L581.4 253.4C609.1 281.5 609.1 326.5 581.4 354.6L425 512.9C415.7 522.3 400.5 522.4 391.1 513.1C381.7 503.8 381.6 488.6 390.9 479.2L547.3 320.8C556.5 311.5 556.5 296.4 547.3 287.1L399 136.9C389.7 127.5 389.8 112.3 399.2 103C408.6 93.7 423.8 93.8 433.1 103.2zM64.1 293.5L64.1 160C64.1 124.7 92.8 96 128.1 96L261.6 96C278.6 96 294.9 102.7 306.9 114.7L450.9 258.7C475.9 283.7 475.9 324.2 450.9 349.2L317.4 482.7C292.4 507.7 251.9 507.7 226.9 482.7L82.9 338.7C70.9 326.7 64.2 310.4 64.2 293.4zM208.1 208C208.1 190.3 193.8 176 176.1 176C158.4 176 144.1 190.3 144.1 208C144.1 225.7 158.4 240 176.1 240C193.8 240 208.1 225.7 208.1 208z" })), Qi = le(null);
1829
- function Kc(e, t = "Assertion error") {
1829
+ function qc(e, t = "Assertion error") {
1830
1830
  if (!e)
1831
1831
  throw Error(t);
1832
1832
  }
1833
1833
  function On() {
1834
1834
  const e = te(Qi);
1835
- return Kc(e, "App must be rendered within a LibraryContextProvider"), e;
1835
+ return qc(e, "App must be rendered within a LibraryContextProvider"), e;
1836
1836
  }
1837
1837
  function el(e) {
1838
1838
  var t, n, r = "";
@@ -1843,7 +1843,7 @@ function el(e) {
1843
1843
  } else for (n in e) e[n] && (r && (r += " "), r += n);
1844
1844
  return r;
1845
1845
  }
1846
- function qc() {
1846
+ function Kc() {
1847
1847
  for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = el(e)) && (r && (r += " "), r += t);
1848
1848
  return r;
1849
1849
  }
@@ -1911,10 +1911,10 @@ const Yc = (e, t) => {
1911
1911
  const n = tl();
1912
1912
  for (const r in e) {
1913
1913
  const o = e[r];
1914
- qr(o, n, r, t);
1914
+ Kr(o, n, r, t);
1915
1915
  }
1916
1916
  return n;
1917
- }, qr = (e, t, n, r) => {
1917
+ }, Kr = (e, t, n, r) => {
1918
1918
  const o = e.length;
1919
1919
  for (let i = 0; i < o; i++) {
1920
1920
  const l = e[i];
@@ -1935,7 +1935,7 @@ const Yc = (e, t) => {
1935
1935
  r.classGroupId = n;
1936
1936
  }, ou = (e, t, n, r) => {
1937
1937
  if (lu(e)) {
1938
- qr(e(r), t, n, r);
1938
+ Kr(e(r), t, n, r);
1939
1939
  return;
1940
1940
  }
1941
1941
  t.validators === null && (t.validators = []), t.validators.push(Xc(n, e));
@@ -1943,7 +1943,7 @@ const Yc = (e, t) => {
1943
1943
  const o = Object.entries(e), i = o.length;
1944
1944
  for (let l = 0; l < i; l++) {
1945
1945
  const [a, s] = o[l];
1946
- qr(s, rl(t, a), n, r);
1946
+ Kr(s, rl(t, a), n, r);
1947
1947
  }
1948
1948
  }, rl = (e, t) => {
1949
1949
  let n = e;
@@ -2167,7 +2167,7 @@ const Yc = (e, t) => {
2167
2167
  c,
2168
2168
  F,
2169
2169
  N
2170
- ], ae = () => ["", G, Ft, lt], Q = () => ["solid", "dashed", "dotted", "double"], H = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], q = () => [G, Zn, Mo, Ao], Ee = () => [
2170
+ ], ae = () => ["", G, Ft, lt], Q = () => ["solid", "dashed", "dotted", "double"], H = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], K = () => [G, Zn, Mo, Ao], Ee = () => [
2171
2171
  // Deprecated since Tailwind CSS v4.0.0
2172
2172
  "",
2173
2173
  "none",
@@ -3659,10 +3659,10 @@ const Yc = (e, t) => {
3659
3659
  "mask-linear": [G]
3660
3660
  }],
3661
3661
  "mask-image-linear-from-pos": [{
3662
- "mask-linear-from": q()
3662
+ "mask-linear-from": K()
3663
3663
  }],
3664
3664
  "mask-image-linear-to-pos": [{
3665
- "mask-linear-to": q()
3665
+ "mask-linear-to": K()
3666
3666
  }],
3667
3667
  "mask-image-linear-from-color": [{
3668
3668
  "mask-linear-from": x()
@@ -3671,10 +3671,10 @@ const Yc = (e, t) => {
3671
3671
  "mask-linear-to": x()
3672
3672
  }],
3673
3673
  "mask-image-t-from-pos": [{
3674
- "mask-t-from": q()
3674
+ "mask-t-from": K()
3675
3675
  }],
3676
3676
  "mask-image-t-to-pos": [{
3677
- "mask-t-to": q()
3677
+ "mask-t-to": K()
3678
3678
  }],
3679
3679
  "mask-image-t-from-color": [{
3680
3680
  "mask-t-from": x()
@@ -3683,10 +3683,10 @@ const Yc = (e, t) => {
3683
3683
  "mask-t-to": x()
3684
3684
  }],
3685
3685
  "mask-image-r-from-pos": [{
3686
- "mask-r-from": q()
3686
+ "mask-r-from": K()
3687
3687
  }],
3688
3688
  "mask-image-r-to-pos": [{
3689
- "mask-r-to": q()
3689
+ "mask-r-to": K()
3690
3690
  }],
3691
3691
  "mask-image-r-from-color": [{
3692
3692
  "mask-r-from": x()
@@ -3695,10 +3695,10 @@ const Yc = (e, t) => {
3695
3695
  "mask-r-to": x()
3696
3696
  }],
3697
3697
  "mask-image-b-from-pos": [{
3698
- "mask-b-from": q()
3698
+ "mask-b-from": K()
3699
3699
  }],
3700
3700
  "mask-image-b-to-pos": [{
3701
- "mask-b-to": q()
3701
+ "mask-b-to": K()
3702
3702
  }],
3703
3703
  "mask-image-b-from-color": [{
3704
3704
  "mask-b-from": x()
@@ -3707,10 +3707,10 @@ const Yc = (e, t) => {
3707
3707
  "mask-b-to": x()
3708
3708
  }],
3709
3709
  "mask-image-l-from-pos": [{
3710
- "mask-l-from": q()
3710
+ "mask-l-from": K()
3711
3711
  }],
3712
3712
  "mask-image-l-to-pos": [{
3713
- "mask-l-to": q()
3713
+ "mask-l-to": K()
3714
3714
  }],
3715
3715
  "mask-image-l-from-color": [{
3716
3716
  "mask-l-from": x()
@@ -3719,10 +3719,10 @@ const Yc = (e, t) => {
3719
3719
  "mask-l-to": x()
3720
3720
  }],
3721
3721
  "mask-image-x-from-pos": [{
3722
- "mask-x-from": q()
3722
+ "mask-x-from": K()
3723
3723
  }],
3724
3724
  "mask-image-x-to-pos": [{
3725
- "mask-x-to": q()
3725
+ "mask-x-to": K()
3726
3726
  }],
3727
3727
  "mask-image-x-from-color": [{
3728
3728
  "mask-x-from": x()
@@ -3731,10 +3731,10 @@ const Yc = (e, t) => {
3731
3731
  "mask-x-to": x()
3732
3732
  }],
3733
3733
  "mask-image-y-from-pos": [{
3734
- "mask-y-from": q()
3734
+ "mask-y-from": K()
3735
3735
  }],
3736
3736
  "mask-image-y-to-pos": [{
3737
- "mask-y-to": q()
3737
+ "mask-y-to": K()
3738
3738
  }],
3739
3739
  "mask-image-y-from-color": [{
3740
3740
  "mask-y-from": x()
@@ -3746,10 +3746,10 @@ const Yc = (e, t) => {
3746
3746
  "mask-radial": [F, N]
3747
3747
  }],
3748
3748
  "mask-image-radial-from-pos": [{
3749
- "mask-radial-from": q()
3749
+ "mask-radial-from": K()
3750
3750
  }],
3751
3751
  "mask-image-radial-to-pos": [{
3752
- "mask-radial-to": q()
3752
+ "mask-radial-to": K()
3753
3753
  }],
3754
3754
  "mask-image-radial-from-color": [{
3755
3755
  "mask-radial-from": x()
@@ -3773,10 +3773,10 @@ const Yc = (e, t) => {
3773
3773
  "mask-conic": [G]
3774
3774
  }],
3775
3775
  "mask-image-conic-from-pos": [{
3776
- "mask-conic-from": q()
3776
+ "mask-conic-from": K()
3777
3777
  }],
3778
3778
  "mask-image-conic-to-pos": [{
3779
- "mask-conic-to": q()
3779
+ "mask-conic-to": K()
3780
3780
  }],
3781
3781
  "mask-image-conic-from-color": [{
3782
3782
  "mask-conic-from": x()
@@ -4604,7 +4604,7 @@ const Yc = (e, t) => {
4604
4604
  };
4605
4605
  }, Iu = /* @__PURE__ */ hu(Fu);
4606
4606
  function fe(...e) {
4607
- return Iu(qc(e));
4607
+ return Iu(Kc(e));
4608
4608
  }
4609
4609
  function Pe({
4610
4610
  align: e,
@@ -4866,14 +4866,14 @@ const Zr = Ze(function() {
4866
4866
  return Xr(/^Mac/i);
4867
4867
  }), Gu = Ze(function() {
4868
4868
  return Xr(/^iPhone/i);
4869
- }), Ku = Ze(function() {
4869
+ }), qu = Ze(function() {
4870
4870
  return Xr(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
4871
4871
  Zr() && navigator.maxTouchPoints > 1;
4872
- }), qu = Ze(function() {
4873
- return Gu() || Ku();
4872
+ }), Ku = Ze(function() {
4873
+ return Gu() || qu();
4874
4874
  });
4875
4875
  Ze(function() {
4876
- return Zr() || qu();
4876
+ return Zr() || Ku();
4877
4877
  });
4878
4878
  Ze(function() {
4879
4879
  return Ln(/AppleWebKit/i) && !Yu();
@@ -5338,7 +5338,7 @@ function pt(e) {
5338
5338
  t.current = e;
5339
5339
  }, [e]), t;
5340
5340
  }
5341
- let K = function(e) {
5341
+ let q = function(e) {
5342
5342
  let t = pt(e);
5343
5343
  return j.useCallback((...n) => t.current(...n), [t]);
5344
5344
  };
@@ -5350,9 +5350,9 @@ function pd(e, t) {
5350
5350
  return !(!e || !t || e.right < t.left || e.left > t.right || e.bottom < t.top || e.top > t.bottom);
5351
5351
  }
5352
5352
  function to({ disabled: e = !1 } = {}) {
5353
- let t = U(null), [n, r] = J(!1), o = mt(), i = K(() => {
5353
+ let t = U(null), [n, r] = J(!1), o = mt(), i = q(() => {
5354
5354
  t.current = null, r(!1), o.dispose();
5355
- }), l = K((a) => {
5355
+ }), l = q((a) => {
5356
5356
  if (o.dispose(), t.current === null) {
5357
5357
  t.current = a.currentTarget, r(!0);
5358
5358
  {
@@ -5508,7 +5508,7 @@ function Ed(e, t) {
5508
5508
  let Rd = de(Ed);
5509
5509
  function $d(e, t, n) {
5510
5510
  let [r, o] = J(n), i = e !== void 0, l = U(i), a = U(!1), s = U(!1);
5511
- return i && !l.current && !a.current ? (a.current = !0, l.current = i, console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")) : !i && l.current && !s.current && (s.current = !0, l.current = i, console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")), [i ? e : r, K((c) => (i || wn(() => o(c)), t?.(c)))];
5511
+ return i && !l.current && !a.current ? (a.current = !0, l.current = i, console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")) : !i && l.current && !s.current && (s.current = !0, l.current = i, console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")), [i ? e : r, q((c) => (i || wn(() => o(c)), t?.(c)))];
5512
5512
  }
5513
5513
  function Sd(e) {
5514
5514
  let [t] = J(e);
@@ -5634,7 +5634,7 @@ function be(...e) {
5634
5634
  re(() => {
5635
5635
  t.current = e;
5636
5636
  }, [e]);
5637
- let n = K((r) => {
5637
+ let n = q((r) => {
5638
5638
  for (let o of t.current) o != null && (typeof o == "function" ? o(r) : o.current = r);
5639
5639
  });
5640
5640
  return e.every((r) => r == null || r?.[Il]) ? void 0 : n;
@@ -5655,7 +5655,7 @@ function Hd() {
5655
5655
  }
5656
5656
  let Vd = "p";
5657
5657
  function jd(e, t) {
5658
- let n = qe(), r = An(), { id: o = `headlessui-description-${n}`, ...i } = e, l = _l(), a = be(t);
5658
+ let n = Ke(), r = An(), { id: o = `headlessui-description-${n}`, ...i } = e, l = _l(), a = be(t);
5659
5659
  se(() => l.register(o), [o, l.register]);
5660
5660
  let s = Te({ ...l.slot, disabled: r || !1 }), c = { ref: a, ...l.props, id: o };
5661
5661
  return me()({ ourProps: c, theirProps: i, slot: s, defaultTag: Vd, name: l.name || "Description" });
@@ -5681,7 +5681,7 @@ function Hl(e) {
5681
5681
  function zd({ inherit: e = !1 } = {}) {
5682
5682
  let t = Hl(), [n, r] = J([]), o = e ? [t, ...n].filter(Boolean) : n;
5683
5683
  return [o.length > 0 ? o.join(" ") : void 0, ce(() => function(i) {
5684
- let l = K((s) => (r((c) => [...c, s]), () => r((c) => {
5684
+ let l = q((s) => (r((c) => [...c, s]), () => r((c) => {
5685
5685
  let u = c.slice(), f = u.indexOf(s);
5686
5686
  return f !== -1 && u.splice(f, 1), u;
5687
5687
  }))), a = ce(() => ({ register: l, slot: i.slot, name: i.name, props: i.props, value: i.value }), [l, i.slot, i.name, i.props, i.value]);
@@ -5691,9 +5691,9 @@ function zd({ inherit: e = !1 } = {}) {
5691
5691
  let Ud = "label";
5692
5692
  function Gd(e, t) {
5693
5693
  var n;
5694
- let r = qe(), o = Bl(), i = Al(), l = An(), { id: a = `headlessui-label-${r}`, htmlFor: s = i ?? ((n = o.props) == null ? void 0 : n.htmlFor), passive: c = !1, ...u } = e, f = be(t);
5694
+ let r = Ke(), o = Bl(), i = Al(), l = An(), { id: a = `headlessui-label-${r}`, htmlFor: s = i ?? ((n = o.props) == null ? void 0 : n.htmlFor), passive: c = !1, ...u } = e, f = be(t);
5695
5695
  se(() => o.register(a), [a, o.register]);
5696
- let p = K((g) => {
5696
+ let p = q((g) => {
5697
5697
  let v = g.currentTarget;
5698
5698
  if (!(g.target !== g.currentTarget && _d(g.target)) && (Fo(v) && g.preventDefault(), o.props && "onClick" in o.props && typeof o.props.onClick == "function" && o.props.onClick(g), Fo(v))) {
5699
5699
  let b = document.getElementById(v.htmlFor);
@@ -5708,7 +5708,7 @@ function Gd(e, t) {
5708
5708
  }), d = Te({ ...o.slot, disabled: l || !1 }), h = { ref: f, ...o.props, id: a, htmlFor: s, onClick: p };
5709
5709
  return c && ("onClick" in h && (delete h.htmlFor, delete h.onClick), "onClick" in u && delete u.onClick), me()({ ourProps: h, theirProps: u, slot: d, defaultTag: s ? Ud : "div", name: o.name || "Label" });
5710
5710
  }
5711
- let Kd = de(Gd), qd = Object.assign(Kd, {}), Yd = le(() => {
5711
+ let qd = de(Gd), Kd = Object.assign(qd, {}), Yd = le(() => {
5712
5712
  });
5713
5713
  function Xd({ value: e, children: t }) {
5714
5714
  return j.createElement(Yd.Provider, { value: e }, t);
@@ -5747,9 +5747,9 @@ function Qd(e, t, n = !1) {
5747
5747
  }
5748
5748
  var Vl = ((e) => (e[e.Left = 0] = "Left", e[e.Right = 2] = "Right", e))(Vl || {});
5749
5749
  function ef(e) {
5750
- let t = U(null), n = K((o) => {
5750
+ let t = U(null), n = q((o) => {
5751
5751
  t.current = o.pointerType, !Tr(o.currentTarget) && o.pointerType === "mouse" && o.button === Vl.Left && (o.preventDefault(), e(o));
5752
- }), r = K((o) => {
5752
+ }), r = q((o) => {
5753
5753
  t.current !== "mouse" && (Tr(o.currentTarget) || e(o));
5754
5754
  });
5755
5755
  return { onPointerDown: n, onClick: r };
@@ -5842,12 +5842,12 @@ let af = { 0(e, t) {
5842
5842
  if (r === -1) return e;
5843
5843
  let o = e.stack.slice();
5844
5844
  return o.splice(r, 1), { ...e, stack: o };
5845
- } }, sf = class Kl extends zl {
5845
+ } }, sf = class ql extends zl {
5846
5846
  constructor() {
5847
5847
  super(...arguments), Bo(this, "actions", { push: (t) => this.send({ type: 0, id: t }), pop: (t) => this.send({ type: 1, id: t }) }), Bo(this, "selectors", { isTop: (t, n) => t.stack[t.stack.length - 1] === n, inStack: (t, n) => t.stack.includes(n) });
5848
5848
  }
5849
5849
  static new() {
5850
- return new Kl({ stack: [] });
5850
+ return new ql({ stack: [] });
5851
5851
  }
5852
5852
  reduce(t, n) {
5853
5853
  return ve(n.type, af, t, n);
@@ -5965,13 +5965,13 @@ function df() {
5965
5965
  }
5966
5966
  var ff = df();
5967
5967
  function ye(e, t, n = Ul) {
5968
- return ff.useSyncExternalStoreWithSelector(K((r) => e.subscribe(mf, r)), K(() => e.state), K(() => e.state), K(t), n);
5968
+ return ff.useSyncExternalStoreWithSelector(q((r) => e.subscribe(mf, r)), q(() => e.state), q(() => e.state), q(t), n);
5969
5969
  }
5970
5970
  function mf(e) {
5971
5971
  return e;
5972
5972
  }
5973
- function ql(e, t) {
5974
- let n = qe(), r = oo.get(t), [o, i] = ye(r, Z((l) => [r.selectors.isTop(l, n), r.selectors.inStack(l, n)], [r, n]));
5973
+ function Kl(e, t) {
5974
+ let n = Ke(), r = oo.get(t), [o, i] = ye(r, Z((l) => [r.selectors.isTop(l, n), r.selectors.inStack(l, n)], [r, n]));
5975
5975
  return se(() => {
5976
5976
  if (e) return r.actions.push(n), () => r.actions.pop(n);
5977
5977
  }, [r, e, n]), e ? i ? o : !0 : !1;
@@ -5990,7 +5990,7 @@ function zo(e) {
5990
5990
  r && (r["aria-hidden"] === null ? e.removeAttribute("aria-hidden") : e.setAttribute("aria-hidden", r["aria-hidden"]), e.inert = r.inert, Or.delete(e));
5991
5991
  }
5992
5992
  function pf(e, { allowed: t, disallowed: n } = {}) {
5993
- let r = ql(e, "inert-others");
5993
+ let r = Kl(e, "inert-others");
5994
5994
  se(() => {
5995
5995
  var o, i;
5996
5996
  if (!r) return;
@@ -6162,7 +6162,7 @@ function Mr(...e) {
6162
6162
  return ce(() => Xt(...e), [...e]);
6163
6163
  }
6164
6164
  var Pf = ((e) => (e[e.Ignore = 0] = "Ignore", e[e.Select = 1] = "Select", e[e.Close = 2] = "Close", e))(Pf || {});
6165
- const an = { Ignore: { kind: 0 }, Select: (e) => ({ kind: 1, target: e }), Close: { kind: 2 } }, Tf = 200, Ko = 5;
6165
+ const an = { Ignore: { kind: 0 }, Select: (e) => ({ kind: 1, target: e }), Close: { kind: 2 } }, Tf = 200, qo = 5;
6166
6166
  function Of(e, { trigger: t, action: n, close: r, select: o }) {
6167
6167
  let i = U(null), l = U(null), a = U(null);
6168
6168
  yt(e && t !== null, "pointerdown", (s) => {
@@ -6170,7 +6170,7 @@ function Of(e, { trigger: t, action: n, close: r, select: o }) {
6170
6170
  }), yt(e && t !== null, "pointerup", (s) => {
6171
6171
  var c, u;
6172
6172
  let f = i.current;
6173
- if (f === null || (i.current = null, !nt(s.target)) || Math.abs(s.x - ((c = l.current) != null ? c : s.x)) < Ko && Math.abs(s.y - ((u = a.current) != null ? u : s.y)) < Ko) return;
6173
+ if (f === null || (i.current = null, !nt(s.target)) || Math.abs(s.x - ((c = l.current) != null ? c : s.x)) < qo && Math.abs(s.y - ((u = a.current) != null ? u : s.y)) < qo) return;
6174
6174
  let p = n(s);
6175
6175
  switch (p.kind) {
6176
6176
  case 0:
@@ -6270,7 +6270,7 @@ function Ff() {
6270
6270
  t.style(e.documentElement, "overflow", "hidden");
6271
6271
  } };
6272
6272
  }
6273
- function qo(e) {
6273
+ function Ko(e) {
6274
6274
  let t = {};
6275
6275
  for (let n of e) Object.assign(t, n(t));
6276
6276
  return t;
@@ -6278,10 +6278,10 @@ function qo(e) {
6278
6278
  let st = Af(() => /* @__PURE__ */ new Map(), { PUSH(e, t) {
6279
6279
  var n;
6280
6280
  let r = (n = this.get(e)) != null ? n : { doc: e, count: 0, d: $e(), meta: /* @__PURE__ */ new Set(), computedMeta: {} };
6281
- return r.count++, r.meta.add(t), r.computedMeta = qo(r.meta), this.set(e, r), this;
6281
+ return r.count++, r.meta.add(t), r.computedMeta = Ko(r.meta), this.set(e, r), this;
6282
6282
  }, POP(e, t) {
6283
6283
  let n = this.get(e);
6284
- return n && (n.count--, n.meta.delete(t), n.computedMeta = qo(n.meta)), this;
6284
+ return n && (n.count--, n.meta.delete(t), n.computedMeta = Ko(n.meta)), this;
6285
6285
  }, SCROLL_PREVENT(e) {
6286
6286
  let t = { doc: e.doc, d: e.d, meta() {
6287
6287
  return e.computedMeta;
@@ -6307,7 +6307,7 @@ function If(e, t, n = () => ({ containers: [] })) {
6307
6307
  }, [e, t]), i;
6308
6308
  }
6309
6309
  function Df(e, t, n = () => [document.body]) {
6310
- let r = ql(e, "scroll-lock");
6310
+ let r = Kl(e, "scroll-lock");
6311
6311
  If(r, t, (o) => {
6312
6312
  var i;
6313
6313
  return { containers: [...(i = o.containers) != null ? i : [], n] };
@@ -6430,12 +6430,12 @@ function Zt(e) {
6430
6430
  return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !Uf.has(o);
6431
6431
  }
6432
6432
  const Gf = /* @__PURE__ */ new Set(["table", "td", "th"]);
6433
- function Kf(e) {
6433
+ function qf(e) {
6434
6434
  return Gf.has(Ot(e));
6435
6435
  }
6436
- const qf = [":popover-open", ":modal"];
6436
+ const Kf = [":popover-open", ":modal"];
6437
6437
  function In(e) {
6438
- return qf.some((t) => {
6438
+ return Kf.some((t) => {
6439
6439
  try {
6440
6440
  return e.matches(t);
6441
6441
  } catch {
@@ -6449,13 +6449,13 @@ function co(e) {
6449
6449
  return Yf.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) || Xf.some((r) => (n.willChange || "").includes(r)) || Zf.some((r) => (n.contain || "").includes(r));
6450
6450
  }
6451
6451
  function Jf(e) {
6452
- let t = Ke(e);
6452
+ let t = qe(e);
6453
6453
  for (; Re(t) && !ze(t); ) {
6454
6454
  if (co(t))
6455
6455
  return t;
6456
6456
  if (In(t))
6457
6457
  return null;
6458
- t = Ke(t);
6458
+ t = qe(t);
6459
6459
  }
6460
6460
  return null;
6461
6461
  }
@@ -6478,7 +6478,7 @@ function _n(e) {
6478
6478
  scrollTop: e.scrollY
6479
6479
  };
6480
6480
  }
6481
- function Ke(e) {
6481
+ function qe(e) {
6482
6482
  if (Ot(e) === "html")
6483
6483
  return e;
6484
6484
  const t = (
@@ -6491,7 +6491,7 @@ function Ke(e) {
6491
6491
  return Nr(t) ? t.host : t;
6492
6492
  }
6493
6493
  function ea(e) {
6494
- const t = Ke(e);
6494
+ const t = qe(e);
6495
6495
  return ze(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Re(t) && Zt(t) ? t : ea(t);
6496
6496
  }
6497
6497
  function ot(e, t, n) {
@@ -7240,7 +7240,7 @@ function ii(e, t, n) {
7240
7240
  return Cn(r);
7241
7241
  }
7242
7242
  function sa(e, t) {
7243
- const n = Ke(e);
7243
+ const n = qe(e);
7244
7244
  return n === t || !X(n) || ze(n) ? !1 : Oe(n).position === "fixed" || sa(n, t);
7245
7245
  }
7246
7246
  function Tm(e, t) {
@@ -7249,10 +7249,10 @@ function Tm(e, t) {
7249
7249
  return n;
7250
7250
  let r = ot(e, [], !1).filter((a) => X(a) && Ot(a) !== "body"), o = null;
7251
7251
  const i = Oe(e).position === "fixed";
7252
- let l = i ? Ke(e) : e;
7252
+ let l = i ? qe(e) : e;
7253
7253
  for (; X(l) && !ze(l); ) {
7254
7254
  const a = Oe(l), s = co(l);
7255
- !s && a.position === "fixed" && (o = null), (i ? !s && !o : !s && a.position === "static" && !!o && km.has(o.position) || Zt(l) && !s && sa(e, l)) ? r = r.filter((u) => u !== l) : o = a, l = Ke(l);
7255
+ !s && a.position === "fixed" && (o = null), (i ? !s && !o : !s && a.position === "static" && !!o && km.has(o.position) || Zt(l) && !s && sa(e, l)) ? r = r.filter((u) => u !== l) : o = a, l = qe(l);
7256
7256
  }
7257
7257
  return t.set(e, r), r;
7258
7258
  }
@@ -7324,16 +7324,16 @@ function ca(e, t) {
7324
7324
  if (In(e))
7325
7325
  return n;
7326
7326
  if (!Re(e)) {
7327
- let o = Ke(e);
7327
+ let o = qe(e);
7328
7328
  for (; o && !ze(o); ) {
7329
7329
  if (X(o) && !sr(o))
7330
7330
  return o;
7331
- o = Ke(o);
7331
+ o = qe(o);
7332
7332
  }
7333
7333
  return n;
7334
7334
  }
7335
7335
  let r = li(e, t);
7336
- for (; r && Kf(r) && sr(r); )
7336
+ for (; r && qf(r) && sr(r); )
7337
7337
  r = li(r, t);
7338
7338
  return r && ze(r) && sr(r) && !co(r) ? n : r || Jf(e) || n;
7339
7339
  }
@@ -7618,10 +7618,10 @@ const fo = (e, t) => ({
7618
7618
  }), Gm = (e, t) => ({
7619
7619
  ...Vm(e),
7620
7620
  options: [e, t]
7621
- }), Km = (e, t) => ({
7621
+ }), qm = (e, t) => ({
7622
7622
  ...jm(e),
7623
7623
  options: [e, t]
7624
- }), qm = (e, t) => ({
7624
+ }), Km = (e, t) => ({
7625
7625
  ...Bm(e),
7626
7626
  options: [e, t]
7627
7627
  }), pa = {
@@ -8016,11 +8016,11 @@ function wp({ children: e, enabled: t = !0 }) {
8016
8016
  let V = O * _ - x + A;
8017
8017
  return L >= V ? L : V;
8018
8018
  });
8019
- } }) : null, Km({ padding: d, apply({ availableWidth: I, availableHeight: W, elements: z }) {
8019
+ } }) : null, qm({ padding: d, apply({ availableWidth: I, availableHeight: W, elements: z }) {
8020
8020
  Object.assign(z.floating.style, { overflow: "auto", maxWidth: `${I}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${W}px)` });
8021
8021
  } })].filter(Boolean), whileElementsMounted: Dm }), [$ = g, E = v] = w.placement.split("-");
8022
8022
  g === "selection" && ($ = "selection");
8023
- let k = ce(() => ({ anchor: [$, E].filter(Boolean).join(" ") }), [$, E]), P = mp(w, { overflowRef: l, onChange: i }), { getReferenceProps: C, getFloatingProps: M } = dp([P]), S = K((I) => {
8023
+ let k = ce(() => ({ anchor: [$, E].filter(Boolean).join(" ") }), [$, E]), P = mp(w, { overflowRef: l, onChange: i }), { getReferenceProps: C, getFloatingProps: M } = dp([P]), S = q((I) => {
8024
8024
  s(I), b.setFloating(I);
8025
8025
  });
8026
8026
  return m.createElement(mo.Provider, { value: r }, m.createElement(Lt.Provider, { value: { setFloating: S, setReference: b.setReference, styles: y, getReferenceProps: C, getFloatingProps: M, slot: k } }, e));
@@ -8045,7 +8045,7 @@ function xp(e, t) {
8045
8045
  return { ...e, gap: i, offset: l, padding: a };
8046
8046
  }
8047
8047
  function fr(e, t, n = void 0) {
8048
- let r = mt(), o = K((s, c) => {
8048
+ let r = mt(), o = q((s, c) => {
8049
8049
  if (s == null) return [n, null];
8050
8050
  if (typeof s == "number") return [s, null];
8051
8051
  if (typeof s == "string") {
@@ -8154,7 +8154,7 @@ function cn(e, t) {
8154
8154
  }
8155
8155
  }
8156
8156
  function ba(e) {
8157
- let t = K(e), n = U(!1);
8157
+ let t = q(e), n = U(!1);
8158
8158
  re(() => (n.current = !1, () => {
8159
8159
  n.current = !0, Cl(() => {
8160
8160
  n.current && t();
@@ -8258,7 +8258,7 @@ function zn(e) {
8258
8258
  return "children" in e ? zn(e.children) : e.current.filter(({ el: t }) => t.current !== null).filter(({ state: t }) => t === "visible").length > 0;
8259
8259
  }
8260
8260
  function $a(e, t) {
8261
- let n = pt(e), r = U([]), o = _p(), i = mt(), l = K((d, h = tt.Hidden) => {
8261
+ let n = pt(e), r = U([]), o = _p(), i = mt(), l = q((d, h = tt.Hidden) => {
8262
8262
  let g = r.current.findIndex(({ el: v }) => v === d);
8263
8263
  g !== -1 && (ve(h, { [tt.Unmount]() {
8264
8264
  r.current.splice(g, 1);
@@ -8268,16 +8268,16 @@ function $a(e, t) {
8268
8268
  var v;
8269
8269
  !zn(r) && o.current && ((v = n.current) == null || v.call(n));
8270
8270
  }));
8271
- }), a = K((d) => {
8271
+ }), a = q((d) => {
8272
8272
  let h = r.current.find(({ el: g }) => g === d);
8273
8273
  return h ? h.state !== "visible" && (h.state = "visible") : r.current.push({ el: d, state: "visible" }), () => l(d, tt.Unmount);
8274
- }), s = U([]), c = U(Promise.resolve()), u = U({ enter: [], leave: [] }), f = K((d, h, g) => {
8274
+ }), s = U([]), c = U(Promise.resolve()), u = U({ enter: [], leave: [] }), f = q((d, h, g) => {
8275
8275
  s.current.splice(0), t && (t.chains.current[h] = t.chains.current[h].filter(([v]) => v !== d)), t?.chains.current[h].push([d, new Promise((v) => {
8276
8276
  s.current.push(v);
8277
8277
  })]), t?.chains.current[h].push([d, new Promise((v) => {
8278
8278
  Promise.all(u.current[h].map(([b, y]) => y)).then(() => v());
8279
8279
  })]), h === "enter" ? c.current = c.current.then(() => t?.wait.current).then(() => g(h)) : g(h);
8280
- }), p = K((d, h, g) => {
8280
+ }), p = q((d, h, g) => {
8281
8281
  Promise.all(u.current[h].splice(0).map(([v, b]) => b)).then(() => {
8282
8282
  var v;
8283
8283
  (v = s.current.shift()) == null || v();
@@ -8304,14 +8304,14 @@ function jp(e, t) {
8304
8304
  }, [w, S, A, $]);
8305
8305
  let _ = M && !C, O = C && P && M, x = U(!1), L = $a(() => {
8306
8306
  x.current || (I("hidden"), T(w));
8307
- }, W), V = K((q) => {
8307
+ }, W), V = q((K) => {
8308
8308
  x.current = !0;
8309
- let Ee = q ? "enter" : "leave";
8309
+ let Ee = K ? "enter" : "leave";
8310
8310
  L.onStart(w, Ee, (we) => {
8311
8311
  we === "enter" ? i?.() : we === "leave" && a?.();
8312
8312
  });
8313
- }), ee = K((q) => {
8314
- let Ee = q ? "enter" : "leave";
8313
+ }), ee = q((K) => {
8314
+ let Ee = K ? "enter" : "leave";
8315
8315
  x.current = !1, L.onStop(w, Ee, (we) => {
8316
8316
  we === "enter" ? l?.() : we === "leave" && s?.();
8317
8317
  }), Ee === "leave" && !zn(L) && (I("hidden"), T(w));
@@ -8339,10 +8339,10 @@ function Wp(e, t) {
8339
8339
  se(() => {
8340
8340
  n ? f("visible") : !zn(p) && l.current !== null && f("hidden");
8341
8341
  }, [n, p]);
8342
- let b = { unmount: o }, y = K(() => {
8342
+ let b = { unmount: o }, y = q(() => {
8343
8343
  var E;
8344
8344
  d && h(!1), (E = e.beforeEnter) == null || E.call(e);
8345
- }), w = K(() => {
8345
+ }), w = q(() => {
8346
8346
  var E;
8347
8347
  d && h(!1), (E = e.beforeLeave) == null || E.call(e);
8348
8348
  }), $ = me();
@@ -8354,10 +8354,10 @@ function zp(e, t) {
8354
8354
  }
8355
8355
  let Dr = de(Wp), ka = de(jp), Up = de(zp), Gp = Object.assign(Dr, { Child: Up, Root: Dr });
8356
8356
  var hi;
8357
- let Kp = (hi = j.startTransition) != null ? hi : function(e) {
8357
+ let qp = (hi = j.startTransition) != null ? hi : function(e) {
8358
8358
  e();
8359
8359
  };
8360
- var qp = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(qp || {}), Yp = ((e) => (e[e.ToggleDisclosure = 0] = "ToggleDisclosure", e[e.CloseDisclosure = 1] = "CloseDisclosure", e[e.SetButtonId = 2] = "SetButtonId", e[e.SetPanelId = 3] = "SetPanelId", e[e.SetButtonElement = 4] = "SetButtonElement", e[e.SetPanelElement = 5] = "SetPanelElement", e))(Yp || {});
8360
+ var Kp = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Kp || {}), Yp = ((e) => (e[e.ToggleDisclosure = 0] = "ToggleDisclosure", e[e.CloseDisclosure = 1] = "CloseDisclosure", e[e.SetButtonId = 2] = "SetButtonId", e[e.SetPanelId = 3] = "SetPanelId", e[e.SetButtonElement = 4] = "SetButtonElement", e[e.SetPanelElement = 5] = "SetPanelElement", e))(Yp || {});
8361
8361
  let Xp = { 0: (e) => ({ ...e, disclosureState: ve(e.disclosureState, { 0: 1, 1: 0 }) }), 1: (e) => e.disclosureState === 1 ? e : { ...e, disclosureState: 1 }, 2(e, t) {
8362
8362
  return e.buttonId === t.buttonId ? e : { ...e, buttonId: t.buttonId };
8363
8363
  }, 3(e, t) {
@@ -8398,7 +8398,7 @@ let Qp = _e;
8398
8398
  function eh(e, t) {
8399
8399
  let { defaultOpen: n = !1, ...r } = e, o = U(null), i = be(t, Dl((g) => {
8400
8400
  o.current = g;
8401
- }, e.as === void 0 || xt(e.as))), l = Ja(Jp, { disclosureState: n ? 0 : 1, buttonElement: null, panelElement: null, buttonId: null, panelId: null }), [{ disclosureState: a, buttonId: s }, c] = l, u = K((g) => {
8401
+ }, e.as === void 0 || xt(e.as))), l = Ja(Jp, { disclosureState: n ? 0 : 1, buttonElement: null, panelElement: null, buttonId: null, panelId: null }), [{ disclosureState: a, buttonId: s }, c] = l, u = q((g) => {
8402
8402
  c({ type: 1 });
8403
8403
  let v = Xt(o.current);
8404
8404
  if (!v || !s) return;
@@ -8409,7 +8409,7 @@ function eh(e, t) {
8409
8409
  }
8410
8410
  let th = "button";
8411
8411
  function nh(e, t) {
8412
- let n = qe(), { id: r = `headlessui-disclosure-button-${n}`, disabled: o = !1, autoFocus: i = !1, ...l } = e, [a, s] = go("Disclosure.Button"), c = Zp(), u = c === null ? !1 : c === a.panelId, f = U(null), p = be(f, t, K((M) => {
8412
+ let n = Ke(), { id: r = `headlessui-disclosure-button-${n}`, disabled: o = !1, autoFocus: i = !1, ...l } = e, [a, s] = go("Disclosure.Button"), c = Zp(), u = c === null ? !1 : c === a.panelId, f = U(null), p = be(f, t, q((M) => {
8413
8413
  if (!u) return s({ type: 4, element: M });
8414
8414
  }));
8415
8415
  re(() => {
@@ -8417,7 +8417,7 @@ function nh(e, t) {
8417
8417
  s({ type: 2, buttonId: null });
8418
8418
  };
8419
8419
  }, [r, s, u]);
8420
- let d = K((M) => {
8420
+ let d = q((M) => {
8421
8421
  var S;
8422
8422
  if (u) {
8423
8423
  if (a.disclosureState === 1) return;
@@ -8433,9 +8433,9 @@ function nh(e, t) {
8433
8433
  M.preventDefault(), M.stopPropagation(), s({ type: 0 });
8434
8434
  break;
8435
8435
  }
8436
- }), h = K((M) => {
8436
+ }), h = q((M) => {
8437
8437
  M.key === oe.Space && M.preventDefault();
8438
- }), g = K((M) => {
8438
+ }), g = q((M) => {
8439
8439
  var S;
8440
8440
  Tr(M.currentTarget) || o || (u ? (s({ type: 0 }), (S = a.buttonElement) == null || S.focus()) : s({ type: 0 }));
8441
8441
  }), { isFocusVisible: v, focusProps: b } = eo({ autoFocus: i }), { isHovered: y, hoverProps: w } = Qr({ isDisabled: o }), { pressed: $, pressProps: E } = to({ disabled: o }), k = Te({ open: a.disclosureState === 0, hover: y, active: $, disabled: o, focus: v, autofocus: i }), P = Ql(e, a.buttonElement), C = jt(u ? { ref: p, type: P, disabled: o || void 0, autoFocus: i, onKeyDown: d, onClick: g } : { ref: p, id: r, type: P, "aria-expanded": a.disclosureState === 0, "aria-controls": a.panelElement ? a.panelId : void 0, disabled: o || void 0, autoFocus: i, onKeyDown: d, onKeyUp: h, onClick: g }, b, w, E);
@@ -8443,8 +8443,8 @@ function nh(e, t) {
8443
8443
  }
8444
8444
  let rh = "div", oh = $t.RenderStrategy | $t.Static;
8445
8445
  function ih(e, t) {
8446
- let n = qe(), { id: r = `headlessui-disclosure-panel-${n}`, transition: o = !1, ...i } = e, [l, a] = go("Disclosure.Panel"), { close: s } = Pa("Disclosure.Panel"), [c, u] = J(null), f = be(t, K((y) => {
8447
- Kp(() => a({ type: 5, element: y }));
8446
+ let n = Ke(), { id: r = `headlessui-disclosure-panel-${n}`, transition: o = !1, ...i } = e, [l, a] = go("Disclosure.Panel"), { close: s } = Pa("Disclosure.Panel"), [c, u] = J(null), f = be(t, q((y) => {
8447
+ qp(() => a({ type: 5, element: y }));
8448
8448
  }), u);
8449
8449
  re(() => (a({ type: 3, panelId: r }), () => {
8450
8450
  a({ type: 3, panelId: null });
@@ -8481,7 +8481,7 @@ function sh(e) {
8481
8481
  }
8482
8482
  function ch(e) {
8483
8483
  let t = U(""), n = U("");
8484
- return K(() => {
8484
+ return q(() => {
8485
8485
  let r = e.current;
8486
8486
  if (!r) return "";
8487
8487
  let o = r.innerText;
@@ -8673,7 +8673,7 @@ function Qt(e) {
8673
8673
  }
8674
8674
  let mh = _e;
8675
8675
  function ph(e, t) {
8676
- let n = qe(), r = An(), { value: o, defaultValue: i, form: l, name: a, onChange: s, by: c, invalid: u = !1, disabled: f = r || !1, horizontal: p = !1, multiple: d = !1, __demoMode: h = !1, ...g } = e;
8676
+ let n = Ke(), r = An(), { value: o, defaultValue: i, form: l, name: a, onChange: s, by: c, invalid: u = !1, disabled: f = r || !1, horizontal: p = !1, multiple: d = !1, __demoMode: h = !1, ...g } = e;
8677
8677
  const v = p ? "horizontal" : "vertical";
8678
8678
  let b = be(t), y = Sd(i), [w = d ? [] : void 0, $] = $d(o, s, y), E = Ma({ id: n, __demoMode: h }), k = U({ static: !1, hold: !1 }), P = U(/* @__PURE__ */ new Map()), C = Jd(c), M = Z((B) => ve(S.mode, { [rt.Multi]: () => w.some((D) => C(D, B)), [rt.Single]: () => C(w, B) }), [w]), S = Te({ value: w, disabled: f, invalid: u, mode: d ? rt.Multi : rt.Single, orientation: v, onChange: $, compare: C, isSelected: M, optionsPropsRef: k, listRef: P });
8679
8679
  se(() => {
@@ -8690,13 +8690,13 @@ function ph(e, t) {
8690
8690
  }
8691
8691
  let hh = "button";
8692
8692
  function gh(e, t) {
8693
- let n = qe(), r = Al(), o = Qt("Listbox.Button"), i = yo("Listbox.Button"), { id: l = r || `headlessui-listbox-button-${n}`, disabled: a = o.disabled || !1, autoFocus: s = !1, ...c } = e, u = be(t, hp(), i.actions.setButtonElement), f = gp(), [p, d, h] = ye(i, (A) => [A.listboxState, A.buttonElement, A.optionsElement]), g = p === he.Open;
8693
+ let n = Ke(), r = Al(), o = Qt("Listbox.Button"), i = yo("Listbox.Button"), { id: l = r || `headlessui-listbox-button-${n}`, disabled: a = o.disabled || !1, autoFocus: s = !1, ...c } = e, u = be(t, hp(), i.actions.setButtonElement), f = gp(), [p, d, h] = ye(i, (A) => [A.listboxState, A.buttonElement, A.optionsElement]), g = p === he.Open;
8694
8694
  Of(g, { trigger: d, action: Z((A) => {
8695
8695
  if (d != null && d.contains(A.target)) return an.Ignore;
8696
8696
  let _ = A.target.closest('[role="option"]:not([data-disabled])');
8697
8697
  return Je(_) ? an.Select(_) : h != null && h.contains(A.target) ? an.Ignore : an.Close;
8698
8698
  }, [d, h]), close: i.actions.closeListbox, select: i.actions.selectActiveOption });
8699
- let v = K((A) => {
8699
+ let v = q((A) => {
8700
8700
  switch (A.key) {
8701
8701
  case oe.Enter:
8702
8702
  Cd(A.currentTarget);
@@ -8709,17 +8709,17 @@ function gh(e, t) {
8709
8709
  A.preventDefault(), i.actions.openListbox({ focus: o.value ? ie.Nothing : ie.Last });
8710
8710
  break;
8711
8711
  }
8712
- }), b = K((A) => {
8712
+ }), b = q((A) => {
8713
8713
  A.key === oe.Space && A.preventDefault();
8714
8714
  }), y = ef((A) => {
8715
8715
  var _;
8716
8716
  i.state.listboxState === he.Open ? (wn(() => i.actions.closeListbox()), (_ = i.state.buttonElement) == null || _.focus({ preventScroll: !0 })) : (A.preventDefault(), i.actions.openListbox({ focus: ie.Nothing }));
8717
- }), w = K((A) => A.preventDefault()), $ = Hl([l]), E = Hd(), { isFocusVisible: k, focusProps: P } = eo({ autoFocus: s }), { isHovered: C, hoverProps: M } = Qr({ isDisabled: a }), { pressed: S, pressProps: I } = to({ disabled: a }), W = Te({ open: p === he.Open, active: S || p === he.Open, disabled: a, invalid: o.invalid, value: o.value, hover: C, focus: k, autofocus: s }), z = ye(i, (A) => A.listboxState === he.Open), T = jt(f(), { ref: u, id: l, type: Ql(e, d), "aria-haspopup": "listbox", "aria-controls": h?.id, "aria-expanded": z, "aria-labelledby": $, "aria-describedby": E, disabled: a || void 0, autoFocus: s, onKeyDown: v, onKeyUp: b, onKeyPress: w }, y, P, M, I);
8717
+ }), w = q((A) => A.preventDefault()), $ = Hl([l]), E = Hd(), { isFocusVisible: k, focusProps: P } = eo({ autoFocus: s }), { isHovered: C, hoverProps: M } = Qr({ isDisabled: a }), { pressed: S, pressProps: I } = to({ disabled: a }), W = Te({ open: p === he.Open, active: S || p === he.Open, disabled: a, invalid: o.invalid, value: o.value, hover: C, focus: k, autofocus: s }), z = ye(i, (A) => A.listboxState === he.Open), T = jt(f(), { ref: u, id: l, type: Ql(e, d), "aria-haspopup": "listbox", "aria-controls": h?.id, "aria-expanded": z, "aria-labelledby": $, "aria-describedby": E, disabled: a || void 0, autoFocus: s, onKeyDown: v, onKeyUp: b, onKeyPress: w }, y, P, M, I);
8718
8718
  return me()({ ourProps: T, theirProps: c, slot: W, defaultTag: hh, name: "Listbox.Button" });
8719
8719
  }
8720
8720
  let Na = le(!1), vh = "div", bh = $t.RenderStrategy | $t.Static;
8721
8721
  function wh(e, t) {
8722
- let n = qe(), { id: r = `headlessui-listbox-options-${n}`, anchor: o, portal: i = !1, modal: l = !0, transition: a = !1, ...s } = e, c = pp(o), [u, f] = J(null);
8722
+ let n = Ke(), { id: r = `headlessui-listbox-options-${n}`, anchor: o, portal: i = !1, modal: l = !0, transition: a = !1, ...s } = e, c = pp(o), [u, f] = J(null);
8723
8723
  c && (i = !0);
8724
8724
  let p = Qt("Listbox.Options"), d = yo("Listbox.Options"), [h, g, v, b] = ye(d, (H) => [H.listboxState, H.buttonElement, H.optionsElement, H.__demoMode]), y = Mr(g), w = Mr(v), $ = Vn(), [E, k] = ao(a, u, $ !== null ? ($ & ge.Open) === ge.Open : h === he.Open);
8725
8725
  hf(E, g, d.actions.closeListbox);
@@ -8728,8 +8728,8 @@ function wh(e, t) {
8728
8728
  let C = b ? !1 : l && h === he.Open;
8729
8729
  pf(C, { allowed: Z(() => [g, v], [g, v]) });
8730
8730
  let M = ye(d, d.selectors.didButtonMove) ? !1 : E, S = ye(d, d.selectors.hasFrozenValue) && !e.static, I = va(S, p.value), W = Z((H) => p.compare(I, H), [p.compare, I]), z = ye(d, (H) => {
8731
- var q;
8732
- if (c == null || !((q = c?.to) != null && q.includes("selection"))) return null;
8731
+ var K;
8732
+ if (c == null || !((K = c?.to) != null && K.includes("selection"))) return null;
8733
8733
  let Ee = H.options.findIndex((we) => W(we.dataRef.current.value));
8734
8734
  return Ee === -1 && (Ee = 0), Ee;
8735
8735
  }), T = (() => {
@@ -8742,8 +8742,8 @@ function wh(e, t) {
8742
8742
  let H = v;
8743
8743
  H && h === he.Open && (fd(H) || H == null || H.focus({ preventScroll: !0 }));
8744
8744
  }, [h, v]);
8745
- let V = K((H) => {
8746
- var q;
8745
+ let V = q((H) => {
8746
+ var K;
8747
8747
  switch (L.dispose(), H.key) {
8748
8748
  case oe.Space:
8749
8749
  if (d.state.searchQuery !== "") return H.preventDefault(), H.stopPropagation(), d.actions.search(H.key);
@@ -8761,7 +8761,7 @@ function wh(e, t) {
8761
8761
  case oe.PageDown:
8762
8762
  return H.preventDefault(), H.stopPropagation(), d.actions.goToOption({ focus: ie.Last });
8763
8763
  case oe.Escape:
8764
- H.preventDefault(), H.stopPropagation(), wn(() => d.actions.closeListbox()), (q = d.state.buttonElement) == null || q.focus({ preventScroll: !0 });
8764
+ H.preventDefault(), H.stopPropagation(), wn(() => d.actions.closeListbox()), (K = d.state.buttonElement) == null || K.focus({ preventScroll: !0 });
8765
8765
  return;
8766
8766
  case oe.Tab:
8767
8767
  H.preventDefault(), H.stopPropagation(), wn(() => d.actions.closeListbox()), Rf(d.state.buttonElement, H.shiftKey ? Ar.Previous : Ar.Next);
@@ -8771,14 +8771,14 @@ function wh(e, t) {
8771
8771
  break;
8772
8772
  }
8773
8773
  }), ee = ye(d, (H) => {
8774
- var q;
8775
- return (q = H.buttonElement) == null ? void 0 : q.id;
8774
+ var K;
8775
+ return (K = H.buttonElement) == null ? void 0 : K.id;
8776
8776
  }), B = Te({ open: h === he.Open }), D = jt(c ? O() : {}, { id: r, ref: x, "aria-activedescendant": ye(d, d.selectors.activeDescendantId), "aria-multiselectable": p.mode === rt.Multi ? !0 : void 0, "aria-labelledby": ee, "aria-orientation": p.orientation, onKeyDown: V, role: "listbox", tabIndex: h === he.Open ? 0 : void 0, style: { ...s.style, ..._, "--button-width": Qd(E, g, !0).width }, ...lo(k) }), ae = me(), Q = ce(() => p.mode === rt.Multi ? p : { ...p, isSelected: W }, [p, W]);
8777
8777
  return j.createElement(Fp, { enabled: i ? e.static || E : !1, ownerDocument: y }, j.createElement(Un.Provider, { value: Q }, ae({ ourProps: D, theirProps: s, slot: B, defaultTag: vh, features: bh, visible: M, name: "Listbox.Options" })));
8778
8778
  }
8779
8779
  let yh = "div";
8780
8780
  function xh(e, t) {
8781
- let n = qe(), { id: r = `headlessui-listbox-option-${n}`, disabled: o = !1, value: i, ...l } = e, a = te(Na) === !0, s = Qt("Listbox.Option"), c = yo("Listbox.Option"), u = ye(c, (S) => c.selectors.isActive(S, r)), f = s.isSelected(i), p = U(null), d = ch(p), h = pt({ disabled: o, value: i, domRef: p, get textValue() {
8781
+ let n = Ke(), { id: r = `headlessui-listbox-option-${n}`, disabled: o = !1, value: i, ...l } = e, a = te(Na) === !0, s = Qt("Listbox.Option"), c = yo("Listbox.Option"), u = ye(c, (S) => c.selectors.isActive(S, r)), f = s.isSelected(i), p = U(null), d = ch(p), h = pt({ disabled: o, value: i, domRef: p, get textValue() {
8782
8782
  return d();
8783
8783
  } }), g = be(t, p, (S) => {
8784
8784
  S ? s.listRef.current.set(r, S) : s.listRef.current.delete(r);
@@ -8791,15 +8791,15 @@ function xh(e, t) {
8791
8791
  }, [v, p]), se(() => {
8792
8792
  if (!a) return c.actions.registerOption(r, h), () => c.actions.unregisterOption(r);
8793
8793
  }, [h, r, a]);
8794
- let b = K((S) => {
8794
+ let b = q((S) => {
8795
8795
  if (o) return S.preventDefault();
8796
8796
  c.actions.selectOption(i);
8797
- }), y = K(() => {
8797
+ }), y = q(() => {
8798
8798
  if (o) return c.actions.goToOption({ focus: ie.Nothing });
8799
8799
  c.actions.goToOption({ focus: ie.Specific, id: r });
8800
- }), w = _f(), $ = K((S) => w.update(S)), E = K((S) => {
8800
+ }), w = _f(), $ = q((S) => w.update(S)), E = q((S) => {
8801
8801
  w.wasMoved(S) && (o || u && c.state.activationTrigger === hn.Pointer || c.actions.goToOption({ focus: ie.Specific, id: r }, hn.Pointer));
8802
- }), k = K((S) => {
8802
+ }), k = q((S) => {
8803
8803
  w.wasMoved(S) && (o || u && c.state.activationTrigger === hn.Pointer && c.actions.goToOption({ focus: ie.Nothing }));
8804
8804
  }), P = Te({ active: u, focus: u, selected: f, disabled: o, selectedOption: f && a }), C = a ? {} : { id: r, ref: g, role: "option", tabIndex: o === !0 ? void 0 : -1, "aria-disabled": o === !0 ? !0 : void 0, "aria-selected": f, disabled: void 0, onClick: b, onFocus: y, onPointerEnter: $, onMouseEnter: $, onPointerMove: E, onMouseMove: E, onPointerLeave: k, onMouseLeave: k }, M = me();
8805
8805
  return !f && a ? null : M({ ourProps: C, theirProps: l, slot: P, defaultTag: yh, name: "Listbox.Option" });
@@ -8809,7 +8809,7 @@ function Rh(e, t) {
8809
8809
  let { options: n, placeholder: r, ...o } = e, i = { ref: be(t) }, l = Qt("ListboxSelectedOption"), a = Te({}), s = l.value === void 0 || l.value === null || l.mode === rt.Multi && Array.isArray(l.value) && l.value.length === 0, c = me();
8810
8810
  return j.createElement(Na.Provider, { value: !0 }, c({ ourProps: i, theirProps: { ...o, children: j.createElement(j.Fragment, null, r && s ? r : n) }, slot: a, defaultTag: Eh, name: "ListboxSelectedOption" }));
8811
8811
  }
8812
- let $h = de(ph), Fa = de(gh), Sh = qd, Ia = de(wh), Da = de(xh), Ch = de(Rh), kh = Object.assign($h, { Button: Fa, Label: Sh, Options: Ia, Option: Da, SelectedOption: Ch });
8812
+ let $h = de(ph), Fa = de(gh), Sh = Kd, Ia = de(wh), Da = de(xh), Ch = de(Rh), kh = Object.assign($h, { Button: Fa, Label: Sh, Options: Ia, Option: Da, SelectedOption: Ch });
8813
8813
  function Ph({
8814
8814
  children: e,
8815
8815
  className: t,
@@ -8875,7 +8875,7 @@ function Gn({
8875
8875
  to: n,
8876
8876
  ...r
8877
8877
  }) {
8878
- const o = !!qs(n), [i, l] = Qa(), a = Wi();
8878
+ const o = !!Ks(n), [i, l] = Qa(), a = Wi();
8879
8879
  return /* @__PURE__ */ R(
8880
8880
  "a",
8881
8881
  {
@@ -9004,14 +9004,14 @@ function Ne(e) {
9004
9004
  return t.current == null ? void 0 : t.current(...r);
9005
9005
  }, []);
9006
9006
  }
9007
- const Gh = "data-floating-ui-focusable", xi = "active", Ei = "selected", Kh = {
9007
+ const Gh = "data-floating-ui-focusable", xi = "active", Ei = "selected", qh = {
9008
9008
  ...m
9009
9009
  };
9010
- let Ri = !1, qh = 0;
9010
+ let Ri = !1, Kh = 0;
9011
9011
  const $i = () => (
9012
9012
  // Ensure the id is unique with multiple independent versions of Floating UI
9013
9013
  // on <React 18
9014
- "floating-ui-" + Math.random().toString(36).slice(2, 6) + qh++
9014
+ "floating-ui-" + Math.random().toString(36).slice(2, 6) + Kh++
9015
9015
  );
9016
9016
  function Yh() {
9017
9017
  const [e, t] = m.useState(() => Ri ? $i() : void 0);
@@ -9021,7 +9021,7 @@ function Yh() {
9021
9021
  Ri = !0;
9022
9022
  }, []), e;
9023
9023
  }
9024
- const Xh = Kh.useId, Ba = Xh || Yh;
9024
+ const Xh = qh.useId, Ba = Xh || Yh;
9025
9025
  let Br;
9026
9026
  process.env.NODE_ENV !== "production" && (Br = /* @__PURE__ */ new Set());
9027
9027
  function Zh() {
@@ -9053,13 +9053,13 @@ const Qh = /* @__PURE__ */ m.createContext(null), eg = /* @__PURE__ */ m.createC
9053
9053
  var e;
9054
9054
  return ((e = m.useContext(Qh)) == null ? void 0 : e.id) || null;
9055
9055
  }, xo = () => m.useContext(eg);
9056
- function Kn(e) {
9056
+ function qn(e) {
9057
9057
  return "data-floating-ui-" + e;
9058
9058
  }
9059
9059
  function Ce(e) {
9060
9060
  e.current !== -1 && (clearTimeout(e.current), e.current = -1);
9061
9061
  }
9062
- const Si = /* @__PURE__ */ Kn("safe-polygon");
9062
+ const Si = /* @__PURE__ */ qn("safe-polygon");
9063
9063
  function pr(e, t, n) {
9064
9064
  if (n && !_r(n))
9065
9065
  return 0;
@@ -9230,7 +9230,7 @@ function tg(e, t) {
9230
9230
  reference: _
9231
9231
  } : {}, [a, _]);
9232
9232
  }
9233
- const ng = /* @__PURE__ */ m.createContext(null), Ci = /* @__PURE__ */ Kn("portal");
9233
+ const ng = /* @__PURE__ */ m.createContext(null), Ci = /* @__PURE__ */ qn("portal");
9234
9234
  function rg(e) {
9235
9235
  e === void 0 && (e = {});
9236
9236
  const {
@@ -9326,10 +9326,10 @@ function ag(e, t) {
9326
9326
  const O = y.current;
9327
9327
  if (y.current = !1, c === "click" && O || _ || typeof b == "function" && !b(T))
9328
9328
  return;
9329
- const x = wt(T), L = "[" + Kn("inert") + "]", V = ct(o.floating).querySelectorAll(L);
9329
+ const x = wt(T), L = "[" + qn("inert") + "]", V = ct(o.floating).querySelectorAll(L);
9330
9330
  let ee = X(x) ? x : null;
9331
9331
  for (; ee && !ze(ee); ) {
9332
- const Q = Ke(ee);
9332
+ const Q = qe(ee);
9333
9333
  if (ze(Q) || !X(Q))
9334
9334
  break;
9335
9335
  ee = Q;
@@ -9340,8 +9340,8 @@ function ag(e, t) {
9340
9340
  Array.from(V).every((Q) => !Ut(ee, Q)))
9341
9341
  return;
9342
9342
  if (Re(x) && z) {
9343
- const Q = ze(x), H = Oe(x), q = /auto|scroll/, Ee = Q || q.test(H.overflowX), we = Q || q.test(H.overflowY), gt = Ee && x.clientWidth > 0 && x.scrollWidth > x.clientWidth, At = we && x.clientHeight > 0 && x.scrollHeight > x.clientHeight, vt = H.direction === "rtl", Ka = At && (vt ? T.offsetX <= x.offsetWidth - x.clientWidth : T.offsetX > x.clientWidth), qa = gt && T.offsetY > x.clientHeight;
9344
- if (Ka || qa)
9343
+ const Q = ze(x), H = Oe(x), K = /auto|scroll/, Ee = Q || K.test(H.overflowX), we = Q || K.test(H.overflowY), gt = Ee && x.clientWidth > 0 && x.scrollWidth > x.clientWidth, At = we && x.clientHeight > 0 && x.scrollHeight > x.clientHeight, vt = H.direction === "rtl", qa = At && (vt ? T.offsetX <= x.offsetWidth - x.clientWidth : T.offsetX > x.clientWidth), Ka = gt && T.offsetY > x.clientHeight;
9344
+ if (qa || Ka)
9345
9345
  return;
9346
9346
  }
9347
9347
  const B = (A = i.current.floatingContext) == null ? void 0 : A.nodeId, D = g && gn(g.nodesRef.current, B).some((Q) => {
@@ -9354,8 +9354,8 @@ function ag(e, t) {
9354
9354
  if (ae.length > 0) {
9355
9355
  let Q = !0;
9356
9356
  if (ae.forEach((H) => {
9357
- var q;
9358
- if ((q = H.context) != null && q.open && !H.context.dataRef.current.__outsidePressBubbles) {
9357
+ var K;
9358
+ if ((K = H.context) != null && K.open && !H.context.dataRef.current.__outsidePressBubbles) {
9359
9359
  Q = !1;
9360
9360
  return;
9361
9361
  }
@@ -9596,7 +9596,7 @@ function ug(e, t) {
9596
9596
  },
9597
9597
  onBlur(d) {
9598
9598
  c.current = !1;
9599
- const h = d.relatedTarget, g = d.nativeEvent, v = X(h) && h.hasAttribute(Kn("focus-guard")) && h.getAttribute("data-type") === "outside";
9599
+ const h = d.relatedTarget, g = d.nativeEvent, v = X(h) && h.hasAttribute(qn("focus-guard")) && h.getAttribute("data-type") === "outside";
9600
9600
  u.current = window.setTimeout(() => {
9601
9601
  var b;
9602
9602
  const y = yi(l.domReference ? l.domReference.ownerDocument : document);
@@ -9683,7 +9683,7 @@ function Va({
9683
9683
  middleware: [
9684
9684
  fo(4),
9685
9685
  ma(),
9686
- qm(r ? { allowedPlacements: r } : {})
9686
+ Km(r ? { allowedPlacements: r } : {})
9687
9687
  ]
9688
9688
  }), d = tg(p, { enabled: i }), h = ug(p, { enabled: o }), g = ag(p), { getReferenceProps: v, getFloatingProps: b } = dg([
9689
9689
  g,
@@ -9868,11 +9868,11 @@ function mg() {
9868
9868
  }, [n, e, t]), null;
9869
9869
  }
9870
9870
  const pg = {
9871
- "*": Mt(() => import("./PageNotFound-0sTGJQpW.js")),
9872
- "/": Mt(() => import("./GettingStartedRoute-CnQSytXZ.js")),
9873
- "/common-questions": Mt(() => import("./CommonQuestionsRoute-CRSNF0Pf.js")),
9874
- "/support": Mt(() => import("./SupportRoute-B70W0nGt.js")),
9875
- "/versions": Mt(() => import("./VersionsRoute-BDTmCVHk.js"))
9871
+ "*": Mt(() => import("./PageNotFound-C95TqXFO.js")),
9872
+ "/": Mt(() => import("./GettingStartedRoute-Dz8oT3qR.js")),
9873
+ "/common-questions": Mt(() => import("./CommonQuestionsRoute-DlV7QVyq.js")),
9874
+ "/support": Mt(() => import("./SupportRoute-CLa48ZM-.js")),
9875
+ "/versions": Mt(() => import("./VersionsRoute-qW1sbYlY.js"))
9876
9876
  };
9877
9877
  function hg(e, t = 250) {
9878
9878
  const [n, r] = J(e);
@@ -9897,37 +9897,38 @@ function gg() {
9897
9897
  }
9898
9898
  function Ti(e, t, n) {
9899
9899
  const { maxLength: r = 250, leading: o = 0 } = n ?? {};
9900
- if (t = t.toLowerCase(), r && e.length > r) {
9901
- const c = e.toLowerCase().indexOf(t), u = Math.max(0, c - o), f = Math.min(e.length, u + r);
9902
- e = e.substring(u, f), u > 0 && (e = "…" + e);
9900
+ t = t.trim().toLowerCase();
9901
+ const i = t.split(" ").filter(Boolean);
9902
+ if (i.length === 0)
9903
+ return e;
9904
+ if (r && e.length > r) {
9905
+ const u = e.toLowerCase().indexOf(i[0]), f = Math.max(0, u - o), p = Math.min(e.length, f + r);
9906
+ e = e.substring(f, p), f > 0 && (e = "…" + e);
9903
9907
  }
9904
- let i = e;
9905
- t && t.split(" ").forEach((c) => {
9906
- i = i.replaceAll(
9907
- new RegExp(`(${c})`, "gi"),
9908
- "├$1┤"
9909
- );
9908
+ let l = e;
9909
+ t && i.forEach((u) => {
9910
+ l = l.replaceAll(new RegExp(`(${u})`, "gi"), "├$1┤");
9910
9911
  });
9911
- const l = [];
9912
- let a = "", s = 0;
9913
- for (let c = 0; c < i.length; c++) {
9914
- const u = i.charAt(c);
9915
- switch (u) {
9912
+ const a = [];
9913
+ let s = "", c = 0;
9914
+ for (let u = 0; u < l.length; u++) {
9915
+ const f = l.charAt(u);
9916
+ switch (f) {
9916
9917
  case "├": {
9917
- s++, s === 1 && a && (l.push(a), a = "");
9918
+ c++, c === 1 && s && (a.push(s), s = "");
9918
9919
  break;
9919
9920
  }
9920
9921
  case "┤": {
9921
- s--, s === 0 && a && (l.push(bg(a)), a = "");
9922
+ c--, c === 0 && s && (a.push(bg(s)), s = "");
9922
9923
  break;
9923
9924
  }
9924
9925
  default: {
9925
- a += u;
9926
+ s += f;
9926
9927
  break;
9927
9928
  }
9928
9929
  }
9929
9930
  }
9930
- return a && l.push(a), l;
9931
+ return s && a.push(s), a;
9931
9932
  }
9932
9933
  let vg = 0;
9933
9934
  function bg(e) {
@@ -10345,7 +10346,7 @@ function za({
10345
10346
  }
10346
10347
  ) });
10347
10348
  }
10348
- function qn({
10349
+ function Kn({
10349
10350
  className: e,
10350
10351
  sections: t
10351
10352
  }) {
@@ -10392,7 +10393,7 @@ function Pg({
10392
10393
  return /* @__PURE__ */ Y(Rt, { children: [
10393
10394
  /* @__PURE__ */ R("dd", { className: "[&_code]:text-sky-300 text-lg font-bold", children: e.name }),
10394
10395
  /* @__PURE__ */ Y("dt", { className: "mb-2", children: [
10395
- /* @__PURE__ */ R(qn, { sections: e.description }),
10396
+ /* @__PURE__ */ R(Kn, { sections: e.description }),
10396
10397
  /* @__PURE__ */ R(za, { className: "mt-2 p-2 flex flex-col", html: e.html })
10397
10398
  ] })
10398
10399
  ] });
@@ -10410,7 +10411,7 @@ function Wg({
10410
10411
  title: `${e.name}`
10411
10412
  }
10412
10413
  ),
10413
- /* @__PURE__ */ R(qn, { sections: e.description }),
10414
+ /* @__PURE__ */ R(Kn, { sections: e.description }),
10414
10415
  /* @__PURE__ */ R(Pe, { direction: "column", children: /* @__PURE__ */ R("dl", { className: "flex flex-col gap-2", children: e.methods.map((n, r) => /* @__PURE__ */ R(Pg, { method: n }, r)) }) })
10415
10416
  ] });
10416
10417
  }
@@ -10482,7 +10483,7 @@ function Gg({
10482
10483
  }
10483
10484
  ) });
10484
10485
  }
10485
- function Kg({
10486
+ function qg({
10486
10487
  children: e,
10487
10488
  label: t
10488
10489
  }) {
@@ -10510,7 +10511,7 @@ function Og({ prop: e }) {
10510
10511
  html: e.html
10511
10512
  }
10512
10513
  ) }),
10513
- /* @__PURE__ */ R("dd", { className: "mt-2 pl-4 [&_code]:text-sky-300", children: /* @__PURE__ */ R(qn, { sections: e.description }) })
10514
+ /* @__PURE__ */ R("dd", { className: "mt-2 pl-4 [&_code]:text-sky-300", children: /* @__PURE__ */ R(Kn, { sections: e.description }) })
10514
10515
  ] });
10515
10516
  }
10516
10517
  function Oi({
@@ -10522,7 +10523,7 @@ function Oi({
10522
10523
  /* @__PURE__ */ R("dl", { children: t.map((n) => /* @__PURE__ */ R(Og, { prop: n }, n.name)) })
10523
10524
  ] });
10524
10525
  }
10525
- function qg({
10526
+ function Kg({
10526
10527
  json: e,
10527
10528
  section: t
10528
10529
  }) {
@@ -10539,7 +10540,7 @@ function qg({
10539
10540
  title: `${e.name} component props`
10540
10541
  }
10541
10542
  ),
10542
- /* @__PURE__ */ R(qn, { sections: e.description }),
10543
+ /* @__PURE__ */ R(Kn, { sections: e.description }),
10543
10544
  /* @__PURE__ */ R(Oi, { header: "Required props", props: r }),
10544
10545
  /* @__PURE__ */ R(Oi, { header: "Optional props", props: n })
10545
10546
  ] });
@@ -10651,7 +10652,7 @@ export {
10651
10652
  Hg as A,
10652
10653
  Pe as B,
10653
10654
  ml as C,
10654
- qn as D,
10655
+ Kn as D,
10655
10656
  ja as E,
10656
10657
  Ua as H,
10657
10658
  Wg as I,
@@ -10667,13 +10668,13 @@ export {
10667
10668
  _a as e,
10668
10669
  zg as f,
10669
10670
  Ug as g,
10670
- Kg as h,
10671
- qg as i,
10671
+ qg as h,
10672
+ Kg as i,
10672
10673
  Oi as j,
10673
10674
  Xg as k,
10674
- Kc as l,
10675
+ qc as l,
10675
10676
  fe as m,
10676
10677
  Zg as n,
10677
10678
  On as u
10678
10679
  };
10679
- //# sourceMappingURL=index-DjmISh76.js.map
10680
+ //# sourceMappingURL=index-CffrZIvy.js.map