react-lib-tools 0.0.26 → 0.0.27

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 (25) hide show
  1. package/dist/{GettingStartedRoute-eHXI8kXM.cjs → GettingStartedRoute-RHOZQuHV.cjs} +2 -2
  2. package/dist/{GettingStartedRoute-eHXI8kXM.cjs.map → GettingStartedRoute-RHOZQuHV.cjs.map} +1 -1
  3. package/dist/{GettingStartedRoute-DdNa0GEu.js → GettingStartedRoute-n-O_44X3.js} +2 -2
  4. package/dist/{GettingStartedRoute-DdNa0GEu.js.map → GettingStartedRoute-n-O_44X3.js.map} +1 -1
  5. package/dist/{PageNotFound-k-Qhjbpf.js → PageNotFound-CIaTnSUD.js} +2 -2
  6. package/dist/{PageNotFound-k-Qhjbpf.js.map → PageNotFound-CIaTnSUD.js.map} +1 -1
  7. package/dist/{PageNotFound-Ds3IquRU.cjs → PageNotFound-D_jrycmQ.cjs} +2 -2
  8. package/dist/{PageNotFound-Ds3IquRU.cjs.map → PageNotFound-D_jrycmQ.cjs.map} +1 -1
  9. package/dist/{SupportRoute-gybxWRSQ.cjs → SupportRoute-B12GB6Nv.cjs} +2 -2
  10. package/dist/{SupportRoute-gybxWRSQ.cjs.map → SupportRoute-B12GB6Nv.cjs.map} +1 -1
  11. package/dist/{SupportRoute-CodOYgT1.js → SupportRoute-DAwPlROy.js} +2 -2
  12. package/dist/{SupportRoute-CodOYgT1.js.map → SupportRoute-DAwPlROy.js.map} +1 -1
  13. package/dist/{VersionsRoute-D-MGMVvr.cjs → VersionsRoute-Iss3PSr3.cjs} +2 -2
  14. package/dist/{VersionsRoute-D-MGMVvr.cjs.map → VersionsRoute-Iss3PSr3.cjs.map} +1 -1
  15. package/dist/{VersionsRoute-CWPitZ1W.js → VersionsRoute-eEmeVHtt.js} +2 -2
  16. package/dist/{VersionsRoute-CWPitZ1W.js.map → VersionsRoute-eEmeVHtt.js.map} +1 -1
  17. package/dist/{index-fDoQ6OQ9.cjs → index-CQs-galX.cjs} +5 -5
  18. package/dist/index-CQs-galX.cjs.map +1 -0
  19. package/dist/{index-BGq8Vw-C.js → index-Cog7KERk.js} +638 -626
  20. package/dist/index-Cog7KERk.js.map +1 -0
  21. package/dist/react-lib-tools.cjs +1 -1
  22. package/dist/react-lib-tools.js +1 -1
  23. package/package.json +1 -1
  24. package/dist/index-BGq8Vw-C.js.map +0 -1
  25. package/dist/index-fDoQ6OQ9.cjs.map +0 -1
@@ -1803,7 +1803,7 @@ function Sc(e, { relative: t } = {}) {
1803
1803
  let i = je(n.currentLocation.pathname, r) || n.currentLocation.pathname, l = je(n.nextLocation.pathname, r) || n.nextLocation.pathname;
1804
1804
  return Ft(o.pathname, l) != null || Ft(o.pathname, i) != null;
1805
1805
  }
1806
- const Cc = (e) => /* @__PURE__ */ p.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__ */ p.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" })), kc = (e) => /* @__PURE__ */ p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 128 128", ...e }, /* @__PURE__ */ p.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" })), Tc = (e) => /* @__PURE__ */ p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 640 640", width: "24px", fill: "currentColor", ...e }, /* @__PURE__ */ p.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" })), ji = re(null), wo = (e) => {
1806
+ const Cc = (e) => /* @__PURE__ */ p.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__ */ p.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" })), kc = (e) => /* @__PURE__ */ p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 128 128", ...e }, /* @__PURE__ */ p.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" })), Tc = (e) => /* @__PURE__ */ p.createElement("svg", { width: 50, height: 50, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ p.createElement("rect", { x: 0, y: 0, height: 20, width: 20, fill: "transparent" }), /* @__PURE__ */ p.createElement("circle", { cx: 10, cy: 10, r: 2, fill: "white" }), /* @__PURE__ */ p.createElement("g", { stroke: "white", strokeWidth: 2, fill: "none" }, /* @__PURE__ */ p.createElement("ellipse", { cx: 10, cy: 10, rx: 11, ry: 5, transform: "rotate(45, 10, 10)" }), /* @__PURE__ */ p.createElement("ellipse", { cx: 10, cy: 10, rx: 11, ry: 5, transform: "rotate(-45, 10, 10)" }))), Oc = (e) => /* @__PURE__ */ p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 640 640", width: "24px", fill: "currentColor", ...e }, /* @__PURE__ */ p.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" })), ji = re(null), wo = (e) => {
1807
1807
  let t;
1808
1808
  const n = /* @__PURE__ */ new Set(), r = (c, u) => {
1809
1809
  const f = typeof c == "function" ? c(t) : c;
@@ -1813,8 +1813,8 @@ const Cc = (e) => /* @__PURE__ */ p.createElement("svg", { xmlns: "http://www.w3
1813
1813
  }
1814
1814
  }, o = () => t, a = { setState: r, getState: o, getInitialState: () => s, subscribe: (c) => (n.add(c), () => n.delete(c)) }, s = t = e(r, o, a);
1815
1815
  return a;
1816
- }, Oc = ((e) => e ? wo(e) : wo), Pc = (e) => e;
1817
- function Lc(e, t = Pc) {
1816
+ }, Pc = ((e) => e ? wo(e) : wo), Lc = (e) => e;
1817
+ function Ac(e, t = Lc) {
1818
1818
  const n = M.useSyncExternalStore(
1819
1819
  e.subscribe,
1820
1820
  M.useCallback(() => t(e.getState()), [e, t]),
@@ -1823,9 +1823,9 @@ function Lc(e, t = Pc) {
1823
1823
  return M.useDebugValue(n), n;
1824
1824
  }
1825
1825
  const yo = (e) => {
1826
- const t = Oc(e), n = (r) => Lc(t, r);
1826
+ const t = Pc(e), n = (r) => Ac(t, r);
1827
1827
  return Object.assign(n, t), n;
1828
- }, Ac = ((e) => e ? yo(e) : yo), Vi = Ac((e) => ({
1828
+ }, Mc = ((e) => e ? yo(e) : yo), Vi = Mc((e) => ({
1829
1829
  visible: !1,
1830
1830
  hide: () => e({ visible: !1 }),
1831
1831
  show: () => e({ visible: !0 }),
@@ -1840,40 +1840,40 @@ function Wi(e) {
1840
1840
  } else for (n in e) e[n] && (r && (r += " "), r += n);
1841
1841
  return r;
1842
1842
  }
1843
- function Mc() {
1843
+ function Fc() {
1844
1844
  for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = Wi(e)) && (r && (r += " "), r += t);
1845
1845
  return r;
1846
1846
  }
1847
- const Fc = (e, t) => {
1847
+ const Nc = (e, t) => {
1848
1848
  const n = new Array(e.length + t.length);
1849
1849
  for (let r = 0; r < e.length; r++)
1850
1850
  n[r] = e[r];
1851
1851
  for (let r = 0; r < t.length; r++)
1852
1852
  n[e.length + r] = t[r];
1853
1853
  return n;
1854
- }, Nc = (e, t) => ({
1854
+ }, Ic = (e, t) => ({
1855
1855
  classGroupId: e,
1856
1856
  validator: t
1857
1857
  }), zi = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
1858
1858
  nextPart: e,
1859
1859
  validators: t,
1860
1860
  classGroupId: n
1861
- }), hn = "-", xo = [], Ic = "arbitrary..", Dc = (e) => {
1862
- const t = Bc(e), {
1861
+ }), hn = "-", xo = [], Dc = "arbitrary..", _c = (e) => {
1862
+ const t = Hc(e), {
1863
1863
  conflictingClassGroups: n,
1864
1864
  conflictingClassGroupModifiers: r
1865
1865
  } = e;
1866
1866
  return {
1867
1867
  getClassGroupId: (l) => {
1868
1868
  if (l.startsWith("[") && l.endsWith("]"))
1869
- return _c(l);
1869
+ return Bc(l);
1870
1870
  const a = l.split(hn), s = a[0] === "" && a.length > 1 ? 1 : 0;
1871
1871
  return Ui(a, s, t);
1872
1872
  },
1873
1873
  getConflictingClassGroupIds: (l, a) => {
1874
1874
  if (a) {
1875
1875
  const s = r[l], c = n[l];
1876
- return s ? c ? Fc(c, s) : s : c || xo;
1876
+ return s ? c ? Nc(c, s) : s : c || xo;
1877
1877
  }
1878
1878
  return n[l] || xo;
1879
1879
  }
@@ -1895,16 +1895,16 @@ const Fc = (e, t) => {
1895
1895
  if (u.validator(a))
1896
1896
  return u.classGroupId;
1897
1897
  }
1898
- }, _c = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
1898
+ }, Bc = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
1899
1899
  const t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
1900
- return r ? Ic + r : void 0;
1901
- })(), Bc = (e) => {
1900
+ return r ? Dc + r : void 0;
1901
+ })(), Hc = (e) => {
1902
1902
  const {
1903
1903
  theme: t,
1904
1904
  classGroups: n
1905
1905
  } = e;
1906
- return Hc(n, t);
1907
- }, Hc = (e, t) => {
1906
+ return jc(n, t);
1907
+ }, jc = (e, t) => {
1908
1908
  const n = zi();
1909
1909
  for (const r in e) {
1910
1910
  const o = e[r];
@@ -1915,28 +1915,28 @@ const Fc = (e, t) => {
1915
1915
  const o = e.length;
1916
1916
  for (let i = 0; i < o; i++) {
1917
1917
  const l = e[i];
1918
- jc(l, t, n, r);
1918
+ Vc(l, t, n, r);
1919
1919
  }
1920
- }, jc = (e, t, n, r) => {
1920
+ }, Vc = (e, t, n, r) => {
1921
1921
  if (typeof e == "string") {
1922
- Vc(e, t, n);
1922
+ Wc(e, t, n);
1923
1923
  return;
1924
1924
  }
1925
1925
  if (typeof e == "function") {
1926
- Wc(e, t, n, r);
1926
+ zc(e, t, n, r);
1927
1927
  return;
1928
1928
  }
1929
- zc(e, t, n, r);
1930
- }, Vc = (e, t, n) => {
1929
+ Uc(e, t, n, r);
1930
+ }, Wc = (e, t, n) => {
1931
1931
  const r = e === "" ? t : Gi(t, e);
1932
1932
  r.classGroupId = n;
1933
- }, Wc = (e, t, n, r) => {
1934
- if (Uc(e)) {
1933
+ }, zc = (e, t, n, r) => {
1934
+ if (Gc(e)) {
1935
1935
  Hr(e(r), t, n, r);
1936
1936
  return;
1937
1937
  }
1938
- t.validators === null && (t.validators = []), t.validators.push(Nc(n, e));
1939
- }, zc = (e, t, n, r) => {
1938
+ t.validators === null && (t.validators = []), t.validators.push(Ic(n, e));
1939
+ }, Uc = (e, t, n, r) => {
1940
1940
  const o = Object.entries(e), i = o.length;
1941
1941
  for (let l = 0; l < i; l++) {
1942
1942
  const [a, s] = o[l];
@@ -1951,7 +1951,7 @@ const Fc = (e, t) => {
1951
1951
  a || (a = zi(), n.nextPart.set(l, a)), n = a;
1952
1952
  }
1953
1953
  return n;
1954
- }, Uc = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Gc = (e) => {
1954
+ }, Gc = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, qc = (e) => {
1955
1955
  if (e < 1)
1956
1956
  return {
1957
1957
  get: () => {
@@ -1975,13 +1975,13 @@ const Fc = (e, t) => {
1975
1975
  i in n ? n[i] = l : o(i, l);
1976
1976
  }
1977
1977
  };
1978
- }, pr = "!", Eo = ":", qc = [], $o = (e, t, n, r, o) => ({
1978
+ }, pr = "!", Eo = ":", Kc = [], $o = (e, t, n, r, o) => ({
1979
1979
  modifiers: e,
1980
1980
  hasImportantModifier: t,
1981
1981
  baseClassName: n,
1982
1982
  maybePostfixModifierPosition: r,
1983
1983
  isExternal: o
1984
- }), Kc = (e) => {
1984
+ }), Yc = (e) => {
1985
1985
  const {
1986
1986
  prefix: t,
1987
1987
  experimentalParseClassName: n
@@ -2018,7 +2018,7 @@ const Fc = (e, t) => {
2018
2018
  };
2019
2019
  if (t) {
2020
2020
  const o = t + Eo, i = r;
2021
- r = (l) => l.startsWith(o) ? i(l.slice(o.length)) : $o(qc, !1, l, void 0, !0);
2021
+ r = (l) => l.startsWith(o) ? i(l.slice(o.length)) : $o(Kc, !1, l, void 0, !0);
2022
2022
  }
2023
2023
  if (n) {
2024
2024
  const o = r;
@@ -2028,7 +2028,7 @@ const Fc = (e, t) => {
2028
2028
  });
2029
2029
  }
2030
2030
  return r;
2031
- }, Yc = (e) => {
2031
+ }, Zc = (e) => {
2032
2032
  const t = /* @__PURE__ */ new Map();
2033
2033
  return e.orderSensitiveModifiers.forEach((n, r) => {
2034
2034
  t.set(n, 1e6 + r);
@@ -2041,18 +2041,18 @@ const Fc = (e, t) => {
2041
2041
  }
2042
2042
  return o.length > 0 && (o.sort(), r.push(...o)), r;
2043
2043
  };
2044
- }, Zc = (e) => ({
2045
- cache: Gc(e.cacheSize),
2046
- parseClassName: Kc(e),
2047
- sortModifiers: Yc(e),
2048
- ...Dc(e)
2049
- }), Xc = /\s+/, Jc = (e, t) => {
2044
+ }, Xc = (e) => ({
2045
+ cache: qc(e.cacheSize),
2046
+ parseClassName: Yc(e),
2047
+ sortModifiers: Zc(e),
2048
+ ..._c(e)
2049
+ }), Jc = /\s+/, Qc = (e, t) => {
2050
2050
  const {
2051
2051
  parseClassName: n,
2052
2052
  getClassGroupId: r,
2053
2053
  getConflictingClassGroupIds: o,
2054
2054
  sortModifiers: i
2055
- } = t, l = [], a = e.trim().split(Xc);
2055
+ } = t, l = [], a = e.trim().split(Jc);
2056
2056
  let s = "";
2057
2057
  for (let c = a.length - 1; c >= 0; c -= 1) {
2058
2058
  const u = a[c], {
@@ -2090,7 +2090,7 @@ const Fc = (e, t) => {
2090
2090
  s = u + (s.length > 0 ? " " + s : s);
2091
2091
  }
2092
2092
  return s;
2093
- }, Qc = (...e) => {
2093
+ }, eu = (...e) => {
2094
2094
  let t = 0, n, r, o = "";
2095
2095
  for (; t < e.length; )
2096
2096
  (n = e[t++]) && (r = qi(n)) && (o && (o += " "), o += r);
@@ -2102,34 +2102,34 @@ const Fc = (e, t) => {
2102
2102
  for (let r = 0; r < e.length; r++)
2103
2103
  e[r] && (t = qi(e[r])) && (n && (n += " "), n += t);
2104
2104
  return n;
2105
- }, eu = (e, ...t) => {
2105
+ }, tu = (e, ...t) => {
2106
2106
  let n, r, o, i;
2107
2107
  const l = (s) => {
2108
2108
  const c = t.reduce((u, f) => f(u), e());
2109
- return n = Zc(c), r = n.cache.get, o = n.cache.set, i = a, a(s);
2109
+ return n = Xc(c), r = n.cache.get, o = n.cache.set, i = a, a(s);
2110
2110
  }, a = (s) => {
2111
2111
  const c = r(s);
2112
2112
  if (c)
2113
2113
  return c;
2114
- const u = Jc(s, n);
2114
+ const u = Qc(s, n);
2115
2115
  return o(s, u), u;
2116
2116
  };
2117
- return i = l, (...s) => i(Qc(...s));
2118
- }, tu = [], le = (e) => {
2119
- const t = (n) => n[e] || tu;
2117
+ return i = l, (...s) => i(eu(...s));
2118
+ }, nu = [], le = (e) => {
2119
+ const t = (n) => n[e] || nu;
2120
2120
  return t.isThemeGetter = !0, t;
2121
- }, Ki = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Yi = /^\((?:(\w[\w-]*):)?(.+)\)$/i, nu = /^\d+\/\d+$/, ru = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ou = /\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$/, iu = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, lu = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, au = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ct = (e) => nu.test(e), U = (e) => !!e && !Number.isNaN(Number(e)), qe = (e) => !!e && Number.isInteger(Number(e)), zn = (e) => e.endsWith("%") && U(e.slice(0, -1)), _e = (e) => ru.test(e), su = () => !0, cu = (e) => (
2121
+ }, Ki = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Yi = /^\((?:(\w[\w-]*):)?(.+)\)$/i, ru = /^\d+\/\d+$/, ou = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, iu = /\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$/, lu = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, au = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, su = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ct = (e) => ru.test(e), U = (e) => !!e && !Number.isNaN(Number(e)), qe = (e) => !!e && Number.isInteger(Number(e)), zn = (e) => e.endsWith("%") && U(e.slice(0, -1)), _e = (e) => ou.test(e), cu = () => !0, uu = (e) => (
2122
2122
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
2123
2123
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
2124
2124
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
2125
- ou.test(e) && !iu.test(e)
2126
- ), Zi = () => !1, uu = (e) => lu.test(e), du = (e) => au.test(e), fu = (e) => !O(e) && !P(e), pu = (e) => yt(e, Qi, Zi), O = (e) => Ki.test(e), tt = (e) => yt(e, el, cu), Un = (e) => yt(e, bu, U), Ro = (e) => yt(e, Xi, Zi), mu = (e) => yt(e, Ji, du), Xt = (e) => yt(e, tl, uu), P = (e) => Yi.test(e), Ct = (e) => xt(e, el), hu = (e) => xt(e, wu), So = (e) => xt(e, Xi), gu = (e) => xt(e, Qi), vu = (e) => xt(e, Ji), Jt = (e) => xt(e, tl, !0), yt = (e, t, n) => {
2125
+ iu.test(e) && !lu.test(e)
2126
+ ), Zi = () => !1, du = (e) => au.test(e), fu = (e) => su.test(e), pu = (e) => !O(e) && !P(e), mu = (e) => yt(e, Qi, Zi), O = (e) => Ki.test(e), tt = (e) => yt(e, el, uu), Un = (e) => yt(e, wu, U), Ro = (e) => yt(e, Xi, Zi), hu = (e) => yt(e, Ji, fu), Xt = (e) => yt(e, tl, du), P = (e) => Yi.test(e), Ct = (e) => xt(e, el), gu = (e) => xt(e, yu), So = (e) => xt(e, Xi), vu = (e) => xt(e, Qi), bu = (e) => xt(e, Ji), Jt = (e) => xt(e, tl, !0), yt = (e, t, n) => {
2127
2127
  const r = Ki.exec(e);
2128
2128
  return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
2129
2129
  }, xt = (e, t, n = !1) => {
2130
2130
  const r = Yi.exec(e);
2131
2131
  return r ? r[1] ? t(r[1]) : n : !1;
2132
- }, Xi = (e) => e === "position" || e === "percentage", Ji = (e) => e === "image" || e === "url", Qi = (e) => e === "length" || e === "size" || e === "bg-size", el = (e) => e === "length", bu = (e) => e === "number", wu = (e) => e === "family-name", tl = (e) => e === "shadow", yu = () => {
2132
+ }, Xi = (e) => e === "position" || e === "percentage", Ji = (e) => e === "image" || e === "url", Qi = (e) => e === "length" || e === "size" || e === "bg-size", el = (e) => e === "length", wu = (e) => e === "number", yu = (e) => e === "family-name", tl = (e) => e === "shadow", xu = () => {
2133
2133
  const e = le("color"), t = le("font"), n = le("text"), r = le("font-weight"), o = le("tracking"), i = le("leading"), l = le("breakpoint"), a = le("container"), s = le("spacing"), c = le("radius"), u = le("shadow"), f = le("inset-shadow"), m = le("text-shadow"), d = le("drop-shadow"), h = le("blur"), g = le("perspective"), v = le("aspect"), b = le("ease"), y = le("animate"), w = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], $ = () => [
2134
2134
  "center",
2135
2135
  "top",
@@ -2154,7 +2154,7 @@ const Fc = (e, t) => {
2154
2154
  position: [P, O]
2155
2155
  }], q = () => ["no-repeat", {
2156
2156
  repeat: ["", "x", "y", "space", "round"]
2157
- }], ae = () => ["auto", "cover", "contain", gu, pu, {
2157
+ }], ae = () => ["auto", "cover", "contain", vu, mu, {
2158
2158
  size: [P, O]
2159
2159
  }], D = () => [zn, Ct, tt], N = () => [
2160
2160
  // Deprecated since Tailwind CSS v4.0.0
@@ -2164,7 +2164,7 @@ const Fc = (e, t) => {
2164
2164
  c,
2165
2165
  P,
2166
2166
  O
2167
- ], se = () => ["", U, Ct, tt], me = () => ["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 = () => [U, zn, So, Ro], Oe = () => [
2167
+ ], se = () => ["", U, Ct, tt], he = () => ["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 = () => [U, zn, So, Ro], Oe = () => [
2168
2168
  // Deprecated since Tailwind CSS v4.0.0
2169
2169
  "",
2170
2170
  "none",
@@ -2179,11 +2179,11 @@ const Fc = (e, t) => {
2179
2179
  aspect: ["video"],
2180
2180
  blur: [_e],
2181
2181
  breakpoint: [_e],
2182
- color: [su],
2182
+ color: [cu],
2183
2183
  container: [_e],
2184
2184
  "drop-shadow": [_e],
2185
2185
  ease: ["in", "out", "in-out"],
2186
- font: [fu],
2186
+ font: [pu],
2187
2187
  "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
2188
2188
  "inset-shadow": [_e],
2189
2189
  leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
@@ -2895,7 +2895,7 @@ const Fc = (e, t) => {
2895
2895
  * @see https://tailwindcss.com/docs/font-family
2896
2896
  */
2897
2897
  "font-family": [{
2898
- font: [hu, O, t]
2898
+ font: [gu, O, t]
2899
2899
  }],
2900
2900
  /**
2901
2901
  * Font Variant Numeric
@@ -3005,7 +3005,7 @@ const Fc = (e, t) => {
3005
3005
  * @see https://tailwindcss.com/docs/text-decoration-style
3006
3006
  */
3007
3007
  "text-decoration-style": [{
3008
- decoration: [...me(), "wavy"]
3008
+ decoration: [...he(), "wavy"]
3009
3009
  }],
3010
3010
  /**
3011
3011
  * Text Decoration Thickness
@@ -3150,7 +3150,7 @@ const Fc = (e, t) => {
3150
3150
  }, qe, P, O],
3151
3151
  radial: ["", P, O],
3152
3152
  conic: [qe, P, O]
3153
- }, vu, mu]
3153
+ }, bu, hu]
3154
3154
  }],
3155
3155
  /**
3156
3156
  * Background Color
@@ -3401,14 +3401,14 @@ const Fc = (e, t) => {
3401
3401
  * @see https://tailwindcss.com/docs/border-style
3402
3402
  */
3403
3403
  "border-style": [{
3404
- border: [...me(), "hidden", "none"]
3404
+ border: [...he(), "hidden", "none"]
3405
3405
  }],
3406
3406
  /**
3407
3407
  * Divide Style
3408
3408
  * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
3409
3409
  */
3410
3410
  "divide-style": [{
3411
- divide: [...me(), "hidden", "none"]
3411
+ divide: [...he(), "hidden", "none"]
3412
3412
  }],
3413
3413
  /**
3414
3414
  * Border Color
@@ -3485,7 +3485,7 @@ const Fc = (e, t) => {
3485
3485
  * @see https://tailwindcss.com/docs/outline-style
3486
3486
  */
3487
3487
  "outline-style": [{
3488
- outline: [...me(), "none", "hidden"]
3488
+ outline: [...he(), "none", "hidden"]
3489
3489
  }],
3490
3490
  /**
3491
3491
  * Outline Offset
@@ -4599,9 +4599,9 @@ const Fc = (e, t) => {
4599
4599
  },
4600
4600
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
4601
4601
  };
4602
- }, xu = /* @__PURE__ */ eu(yu);
4603
- function he(...e) {
4604
- return xu(Mc(e));
4602
+ }, Eu = /* @__PURE__ */ tu(xu);
4603
+ function me(...e) {
4604
+ return Eu(Fc(e));
4605
4605
  }
4606
4606
  function ye({
4607
4607
  align: e,
@@ -4619,7 +4619,7 @@ function ye({
4619
4619
  return /* @__PURE__ */ R(
4620
4620
  "div",
4621
4621
  {
4622
- className: he(
4622
+ className: me(
4623
4623
  "flex",
4624
4624
  {
4625
4625
  // align
@@ -4663,11 +4663,11 @@ function ye({
4663
4663
  }
4664
4664
  );
4665
4665
  }
4666
- const Eu = re(null), Gn = {
4666
+ const $u = re(null), Gn = {
4667
4667
  didCatch: !1,
4668
4668
  error: null
4669
4669
  };
4670
- let $u = class extends Na {
4670
+ let Ru = class extends Na {
4671
4671
  constructor(t) {
4672
4672
  super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Gn;
4673
4673
  }
@@ -4700,7 +4700,7 @@ let $u = class extends Na {
4700
4700
  } = this.state, {
4701
4701
  resetKeys: o
4702
4702
  } = this.props;
4703
- if (r && n.error !== null && Ru(t.resetKeys, o)) {
4703
+ if (r && n.error !== null && Su(t.resetKeys, o)) {
4704
4704
  var i, l;
4705
4705
  (i = (l = this.props).onReset) === null || i === void 0 || i.call(l, {
4706
4706
  next: o,
@@ -4734,7 +4734,7 @@ let $u = class extends Na {
4734
4734
  else
4735
4735
  throw l;
4736
4736
  }
4737
- return ur(Eu.Provider, {
4737
+ return ur($u.Provider, {
4738
4738
  value: {
4739
4739
  didCatch: i,
4740
4740
  error: l,
@@ -4743,7 +4743,7 @@ let $u = class extends Na {
4743
4743
  }, a);
4744
4744
  }
4745
4745
  };
4746
- function Ru() {
4746
+ function Su() {
4747
4747
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
4748
4748
  return e.length !== t.length || e.some((n, r) => !Object.is(n, t[r]));
4749
4749
  }
@@ -4771,7 +4771,7 @@ function nl({
4771
4771
  return /* @__PURE__ */ R(
4772
4772
  "div",
4773
4773
  {
4774
- className: `${r ? "w-fit" : "w-full"} rounded-md p-2 px-3 ${Su(o, !!i)} ${t}`,
4774
+ className: `${r ? "w-fit" : "w-full"} rounded-md p-2 px-3 ${Cu(o, !!i)} ${t}`,
4775
4775
  role: "alert",
4776
4776
  ...l,
4777
4777
  children: /* @__PURE__ */ Y("div", { className: "flex flex-row gap-2", children: [
@@ -4781,7 +4781,7 @@ function nl({
4781
4781
  }
4782
4782
  );
4783
4783
  }
4784
- function Su(e, t) {
4784
+ function Cu(e, t) {
4785
4785
  switch (e) {
4786
4786
  case "danger":
4787
4787
  return t ? "bg-red-950 text-red-300 [&_svg]:text-red-500" : "bg-black/10 bg-border border-2 border-red-500 text-white [&_svg]:text-red-500 [&_a]:text-red-400!";
@@ -4798,10 +4798,10 @@ function Su(e, t) {
4798
4798
  const rl = typeof document < "u" ? M.useLayoutEffect : () => {
4799
4799
  };
4800
4800
  var qn;
4801
- const Cu = (qn = M.useInsertionEffect) !== null && qn !== void 0 ? qn : rl;
4802
- function ku(e) {
4801
+ const ku = (qn = M.useInsertionEffect) !== null && qn !== void 0 ? qn : rl;
4802
+ function Tu(e) {
4803
4803
  const t = V(null);
4804
- return Cu(() => {
4804
+ return ku(() => {
4805
4805
  t.current = e;
4806
4806
  }, [
4807
4807
  e
@@ -4814,15 +4814,15 @@ const et = (e) => {
4814
4814
  var t;
4815
4815
  return (t = e?.ownerDocument) !== null && t !== void 0 ? t : document;
4816
4816
  }, nt = (e) => e && "window" in e && e.window === e ? e : et(e).defaultView || window;
4817
- function Tu(e) {
4817
+ function Ou(e) {
4818
4818
  return e !== null && typeof e == "object" && "nodeType" in e && typeof e.nodeType == "number";
4819
4819
  }
4820
- function Ou(e) {
4821
- return Tu(e) && e.nodeType === Node.DOCUMENT_FRAGMENT_NODE && "host" in e;
4820
+ function Pu(e) {
4821
+ return Ou(e) && e.nodeType === Node.DOCUMENT_FRAGMENT_NODE && "host" in e;
4822
4822
  }
4823
- let Pu = !1;
4823
+ let Lu = !1;
4824
4824
  function jr() {
4825
- return Pu;
4825
+ return Lu;
4826
4826
  }
4827
4827
  function ol(e, t) {
4828
4828
  if (!jr()) return t && e ? e.contains(t) : !1;
@@ -4830,7 +4830,7 @@ function ol(e, t) {
4830
4830
  let n = t;
4831
4831
  for (; n !== null; ) {
4832
4832
  if (n === e) return !0;
4833
- n.tagName === "SLOT" && n.assignedSlot ? n = n.assignedSlot.parentNode : Ou(n) ? n = n.host : n = n.parentNode;
4833
+ n.tagName === "SLOT" && n.assignedSlot ? n = n.assignedSlot.parentNode : Pu(n) ? n = n.host : n = n.parentNode;
4834
4834
  }
4835
4835
  return !1;
4836
4836
  }
@@ -4861,23 +4861,23 @@ function Ue(e) {
4861
4861
  }
4862
4862
  const Wr = Ue(function() {
4863
4863
  return Vr(/^Mac/i);
4864
- }), Lu = Ue(function() {
4865
- return Vr(/^iPhone/i);
4866
4864
  }), Au = Ue(function() {
4865
+ return Vr(/^iPhone/i);
4866
+ }), Mu = Ue(function() {
4867
4867
  return Vr(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
4868
4868
  Wr() && navigator.maxTouchPoints > 1;
4869
- }), Mu = Ue(function() {
4870
- return Lu() || Au();
4869
+ }), Fu = Ue(function() {
4870
+ return Au() || Mu();
4871
4871
  });
4872
4872
  Ue(function() {
4873
- return Wr() || Mu();
4873
+ return Wr() || Fu();
4874
4874
  });
4875
4875
  Ue(function() {
4876
- return Sn(/AppleWebKit/i) && !Fu();
4876
+ return Sn(/AppleWebKit/i) && !Nu();
4877
4877
  });
4878
- const Fu = Ue(function() {
4878
+ const Nu = Ue(function() {
4879
4879
  return Sn(/Chrome/i);
4880
- }), Nu = Ue(function() {
4880
+ }), Iu = Ue(function() {
4881
4881
  return Sn(/Android/i);
4882
4882
  });
4883
4883
  Ue(function() {
@@ -4913,15 +4913,15 @@ function ll() {
4913
4913
  removeAllGlobalListeners: r
4914
4914
  };
4915
4915
  }
4916
- function Iu(e) {
4917
- return e.pointerType === "" && e.isTrusted ? !0 : Nu() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
4916
+ function Du(e) {
4917
+ return e.pointerType === "" && e.isTrusted ? !0 : Iu() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
4918
4918
  }
4919
4919
  function al(e) {
4920
4920
  let t = e;
4921
4921
  return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {
4922
4922
  }, t;
4923
4923
  }
4924
- function Du(e, t) {
4924
+ function _u(e, t) {
4925
4925
  Object.defineProperty(e, "target", {
4926
4926
  value: t
4927
4927
  }), Object.defineProperty(e, "currentTarget", {
@@ -4939,7 +4939,7 @@ function sl(e) {
4939
4939
  r.observer && (r.observer.disconnect(), r.observer = null);
4940
4940
  };
4941
4941
  }, []);
4942
- let n = ku((r) => {
4942
+ let n = Tu((r) => {
4943
4943
  e?.(r);
4944
4944
  });
4945
4945
  return Z((r) => {
@@ -4977,28 +4977,28 @@ function sl(e) {
4977
4977
  n
4978
4978
  ]);
4979
4979
  }
4980
- let _u = !1, Vt = null, hr = /* @__PURE__ */ new Set(), Lt = /* @__PURE__ */ new Map(), ot = !1, gr = !1;
4981
- const Bu = {
4980
+ let Bu = !1, Vt = null, hr = /* @__PURE__ */ new Set(), Lt = /* @__PURE__ */ new Map(), ot = !1, gr = !1;
4981
+ const Hu = {
4982
4982
  Tab: !0,
4983
4983
  Escape: !0
4984
4984
  };
4985
4985
  function zr(e, t) {
4986
4986
  for (let n of hr) n(e, t);
4987
4987
  }
4988
- function Hu(e) {
4988
+ function ju(e) {
4989
4989
  return !(e.metaKey || !Wr() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
4990
4990
  }
4991
4991
  function gn(e) {
4992
- ot = !0, Hu(e) && (Vt = "keyboard", zr("keyboard", e));
4992
+ ot = !0, ju(e) && (Vt = "keyboard", zr("keyboard", e));
4993
4993
  }
4994
4994
  function Ce(e) {
4995
4995
  Vt = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (ot = !0, zr("pointer", e));
4996
4996
  }
4997
4997
  function cl(e) {
4998
- Iu(e) && (ot = !0, Vt = "virtual");
4998
+ Du(e) && (ot = !0, Vt = "virtual");
4999
4999
  }
5000
5000
  function ul(e) {
5001
- e.target === window || e.target === document || _u || !e.isTrusted || (!ot && !gr && (Vt = "virtual", zr("virtual", e)), ot = !1, gr = !1);
5001
+ e.target === window || e.target === document || Bu || !e.isTrusted || (!ot && !gr && (Vt = "virtual", zr("virtual", e)), ot = !1, gr = !1);
5002
5002
  }
5003
5003
  function dl() {
5004
5004
  ot = !1, gr = !0;
@@ -5021,18 +5021,18 @@ const fl = (e, t) => {
5021
5021
  const n = nt(e), r = et(e);
5022
5022
  t && r.removeEventListener("DOMContentLoaded", t), Lt.has(n) && (n.HTMLElement.prototype.focus = Lt.get(n).focus, r.removeEventListener("keydown", gn, !0), r.removeEventListener("keyup", gn, !0), r.removeEventListener("click", cl, !0), n.removeEventListener("focus", ul, !0), n.removeEventListener("blur", dl, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", Ce, !0), r.removeEventListener("pointermove", Ce, !0), r.removeEventListener("pointerup", Ce, !0)) : process.env.NODE_ENV === "test" && (r.removeEventListener("mousedown", Ce, !0), r.removeEventListener("mousemove", Ce, !0), r.removeEventListener("mouseup", Ce, !0)), Lt.delete(n));
5023
5023
  };
5024
- function ju(e) {
5024
+ function Vu(e) {
5025
5025
  const t = et(e);
5026
5026
  let n;
5027
5027
  return t.readyState !== "loading" ? vr(e) : (n = () => {
5028
5028
  vr(e);
5029
5029
  }, t.addEventListener("DOMContentLoaded", n)), () => fl(e, n);
5030
5030
  }
5031
- typeof document < "u" && ju();
5031
+ typeof document < "u" && Vu();
5032
5032
  function pl() {
5033
5033
  return Vt !== "pointer";
5034
5034
  }
5035
- const Vu = /* @__PURE__ */ new Set([
5035
+ const Wu = /* @__PURE__ */ new Set([
5036
5036
  "checkbox",
5037
5037
  "radio",
5038
5038
  "range",
@@ -5043,22 +5043,22 @@ const Vu = /* @__PURE__ */ new Set([
5043
5043
  "submit",
5044
5044
  "reset"
5045
5045
  ]);
5046
- function Wu(e, t, n) {
5046
+ function zu(e, t, n) {
5047
5047
  let r = et(n?.target);
5048
5048
  const o = typeof window < "u" ? nt(n?.target).HTMLInputElement : HTMLInputElement, i = typeof window < "u" ? nt(n?.target).HTMLTextAreaElement : HTMLTextAreaElement, l = typeof window < "u" ? nt(n?.target).HTMLElement : HTMLElement, a = typeof window < "u" ? nt(n?.target).KeyboardEvent : KeyboardEvent;
5049
- return e = e || r.activeElement instanceof o && !Vu.has(r.activeElement.type) || r.activeElement instanceof i || r.activeElement instanceof l && r.activeElement.isContentEditable, !(e && t === "keyboard" && n instanceof a && !Bu[n.key]);
5049
+ return e = e || r.activeElement instanceof o && !Wu.has(r.activeElement.type) || r.activeElement instanceof i || r.activeElement instanceof l && r.activeElement.isContentEditable, !(e && t === "keyboard" && n instanceof a && !Hu[n.key]);
5050
5050
  }
5051
- function zu(e, t, n) {
5051
+ function Uu(e, t, n) {
5052
5052
  vr(), ie(() => {
5053
5053
  let r = (o, i) => {
5054
- Wu(!!n?.isTextInput, o, i) && e(pl());
5054
+ zu(!!n?.isTextInput, o, i) && e(pl());
5055
5055
  };
5056
5056
  return hr.add(r), () => {
5057
5057
  hr.delete(r);
5058
5058
  };
5059
5059
  }, t);
5060
5060
  }
5061
- function Uu(e) {
5061
+ function Gu(e) {
5062
5062
  let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: o } = e;
5063
5063
  const i = Z((s) => {
5064
5064
  if (s.target === s.currentTarget)
@@ -5081,7 +5081,7 @@ function Uu(e) {
5081
5081
  }
5082
5082
  };
5083
5083
  }
5084
- function Gu(e) {
5084
+ function qu(e) {
5085
5085
  let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: o } = e, i = V({
5086
5086
  isFocusWithin: !1
5087
5087
  }), { addGlobalListener: l, removeAllGlobalListeners: a } = ll(), s = Z((f) => {
@@ -5102,7 +5102,7 @@ function Gu(e) {
5102
5102
  let v = new m.defaultView.FocusEvent("blur", {
5103
5103
  relatedTarget: g.target
5104
5104
  });
5105
- Du(v, h);
5105
+ _u(v, h);
5106
5106
  let b = al(v);
5107
5107
  s(b);
5108
5108
  }
@@ -5139,7 +5139,7 @@ function br() {
5139
5139
  function Co(e) {
5140
5140
  e.pointerType === "touch" && br();
5141
5141
  }
5142
- function qu() {
5142
+ function Ku() {
5143
5143
  if (!(typeof document > "u"))
5144
5144
  return Qt === 0 && (typeof PointerEvent < "u" ? document.addEventListener("pointerup", Co) : process.env.NODE_ENV === "test" && document.addEventListener("touchend", br)), Qt++, () => {
5145
5145
  Qt--, !(Qt > 0) && (typeof PointerEvent < "u" ? document.removeEventListener("pointerup", Co) : process.env.NODE_ENV === "test" && document.removeEventListener("touchend", br));
@@ -5152,7 +5152,7 @@ function Ur(e) {
5152
5152
  pointerType: "",
5153
5153
  target: null
5154
5154
  }).current;
5155
- ie(qu, []);
5155
+ ie(Ku, []);
5156
5156
  let { addGlobalListener: s, removeAllGlobalListeners: c } = ll(), { hoverProps: u, triggerHoverEnd: f } = ce(() => {
5157
5157
  let m = (g, v) => {
5158
5158
  if (a.pointerType = v, o || v === "touch" || a.isHovered || !g.currentTarget.contains(g.target)) return;
@@ -5218,15 +5218,15 @@ function Gr(e = {}) {
5218
5218
  }, [
5219
5219
  c
5220
5220
  ]);
5221
- zu((d) => {
5221
+ Uu((d) => {
5222
5222
  o.current.isFocusVisible = d, c();
5223
5223
  }, [], {
5224
5224
  isTextInput: n
5225
5225
  });
5226
- let { focusProps: f } = Uu({
5226
+ let { focusProps: f } = Gu({
5227
5227
  isDisabled: r,
5228
5228
  onFocusChange: u
5229
- }), { focusWithinProps: m } = Gu({
5229
+ }), { focusWithinProps: m } = qu({
5230
5230
  isDisabled: !r,
5231
5231
  onFocusWithinChange: u
5232
5232
  });
@@ -5236,8 +5236,8 @@ function Gr(e = {}) {
5236
5236
  focusProps: r ? m : f
5237
5237
  };
5238
5238
  }
5239
- var Ku = Object.defineProperty, Yu = (e, t, n) => t in e ? Ku(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Kn = (e, t, n) => (Yu(e, typeof t != "symbol" ? t + "" : t, n), n);
5240
- let Zu = class {
5239
+ var Yu = Object.defineProperty, Zu = (e, t, n) => t in e ? Yu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Kn = (e, t, n) => (Zu(e, typeof t != "symbol" ? t + "" : t, n), n);
5240
+ let Xu = class {
5241
5241
  constructor() {
5242
5242
  Kn(this, "current", this.detect()), Kn(this, "handoffState", "pending"), Kn(this, "currentId", 0);
5243
5243
  }
@@ -5265,7 +5265,7 @@ let Zu = class {
5265
5265
  get isHandoffComplete() {
5266
5266
  return this.handoffState === "complete";
5267
5267
  }
5268
- }, Fe = new Zu();
5268
+ }, Fe = new Xu();
5269
5269
  function Wt(e) {
5270
5270
  var t;
5271
5271
  return Fe.isServer ? null : e == null ? document : (t = e?.ownerDocument) != null ? t : document;
@@ -5278,7 +5278,7 @@ function ml(e) {
5278
5278
  var t, n;
5279
5279
  return (n = (t = bn(e)) == null ? void 0 : t.activeElement) != null ? n : null;
5280
5280
  }
5281
- function Xu(e) {
5281
+ function Ju(e) {
5282
5282
  return ml(e) === e;
5283
5283
  }
5284
5284
  function hl(e) {
@@ -5339,11 +5339,11 @@ let G = function(e) {
5339
5339
  let t = st(e);
5340
5340
  return M.useCallback((...n) => t.current(...n), [t]);
5341
5341
  };
5342
- function Ju(e) {
5342
+ function Qu(e) {
5343
5343
  let t = e.width / 2, n = e.height / 2;
5344
5344
  return { top: e.clientY - n, right: e.clientX + t, bottom: e.clientY + n, left: e.clientX - t };
5345
5345
  }
5346
- function Qu(e, t) {
5346
+ function ed(e, t) {
5347
5347
  return !(!e || !t || e.right < t.left || e.left > t.right || e.bottom < t.top || e.top > t.bottom);
5348
5348
  }
5349
5349
  function qr({ disabled: e = !1 } = {}) {
@@ -5356,8 +5356,8 @@ function qr({ disabled: e = !1 } = {}) {
5356
5356
  let s = Wt(a.currentTarget);
5357
5357
  o.addEventListener(s, "pointerup", i, !1), o.addEventListener(s, "pointermove", (c) => {
5358
5358
  if (t.current) {
5359
- let u = Ju(c);
5360
- r(Qu(u, t.current.getBoundingClientRect()));
5359
+ let u = Qu(c);
5360
+ r(ed(u, t.current.getBoundingClientRect()));
5361
5361
  }
5362
5362
  }, !1), o.addEventListener(s, "pointercancel", i, !1);
5363
5363
  }
@@ -5368,9 +5368,9 @@ function qr({ disabled: e = !1 } = {}) {
5368
5368
  function ke(e) {
5369
5369
  return ce(() => e, Object.values(e));
5370
5370
  }
5371
- let ed = re(void 0);
5371
+ let td = re(void 0);
5372
5372
  function Cn() {
5373
- return X(ed);
5373
+ return X(td);
5374
5374
  }
5375
5375
  function wr(...e) {
5376
5376
  return Array.from(new Set(e.flatMap((t) => typeof t == "string" ? t.split(" ") : []))).filter(Boolean).join(" ");
@@ -5385,11 +5385,11 @@ function ve(e, t, ...n) {
5385
5385
  }
5386
5386
  var mt = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(mt || {}), Ye = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(Ye || {});
5387
5387
  function de() {
5388
- let e = nd();
5389
- return Z((t) => td({ mergeRefs: e, ...t }), [e]);
5388
+ let e = rd();
5389
+ return Z((t) => nd({ mergeRefs: e, ...t }), [e]);
5390
5390
  }
5391
- function td({ ourProps: e, theirProps: t, slot: n, defaultTag: r, features: o, visible: i = !0, name: l, mergeRefs: a }) {
5392
- a = a ?? rd;
5391
+ function nd({ ourProps: e, theirProps: t, slot: n, defaultTag: r, features: o, visible: i = !0, name: l, mergeRefs: a }) {
5392
+ a = a ?? od;
5393
5393
  let s = gl(t, e);
5394
5394
  if (i) return en(s, n, r, l, a);
5395
5395
  let c = o ?? 0;
@@ -5419,7 +5419,7 @@ function en(e, t = {}, n, r, o) {
5419
5419
  for (let h of d) f[`data-${h}`] = "";
5420
5420
  }
5421
5421
  }
5422
- if (dt(i) && (Object.keys(Ke(s)).length > 0 || Object.keys(Ke(f)).length > 0)) if (!Fr(u) || Array.isArray(u) && u.length > 1 || id(u)) {
5422
+ if (dt(i) && (Object.keys(Ke(s)).length > 0 || Object.keys(Ke(f)).length > 0)) if (!Fr(u) || Array.isArray(u) && u.length > 1 || ld(u)) {
5423
5423
  if (Object.keys(Ke(s)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${r} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(Ke(s)).concat(Object.keys(Ke(f))).map((m) => ` - ${m}`).join(`
5424
5424
  `), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((m) => ` - ${m}`).join(`
5425
5425
  `)].join(`
@@ -5427,11 +5427,11 @@ function en(e, t = {}, n, r, o) {
5427
5427
  } else {
5428
5428
  let m = u.props, d = m?.className, h = typeof d == "function" ? (...b) => wr(d(...b), s.className) : wr(d, s.className), g = h ? { className: h } : {}, v = gl(u.props, Ke(Yn(s, ["ref"])));
5429
5429
  for (let b in f) b in v && delete f[b];
5430
- return vi(u, Object.assign({}, v, f, c, { ref: o(od(u), c.ref) }, g));
5430
+ return vi(u, Object.assign({}, v, f, c, { ref: o(id(u), c.ref) }, g));
5431
5431
  }
5432
5432
  return ur(i, Object.assign({}, Yn(s, ["ref"]), !dt(i) && c, !dt(i) && f), u);
5433
5433
  }
5434
- function nd() {
5434
+ function rd() {
5435
5435
  let e = V([]), t = Z((n) => {
5436
5436
  for (let r of e.current) r != null && (typeof r == "function" ? r(n) : r.current = n);
5437
5437
  }, []);
@@ -5439,7 +5439,7 @@ function nd() {
5439
5439
  if (!n.every((r) => r == null)) return e.current = n, t;
5440
5440
  };
5441
5441
  }
5442
- function rd(...e) {
5442
+ function od(...e) {
5443
5443
  return e.every((t) => t == null) ? void 0 : (t) => {
5444
5444
  for (let n of e) n != null && (typeof n == "function" ? n(t) : n.current = t);
5445
5445
  };
@@ -5487,27 +5487,27 @@ function Yn(e, t = []) {
5487
5487
  for (let r of t) r in n && delete n[r];
5488
5488
  return n;
5489
5489
  }
5490
- function od(e) {
5490
+ function id(e) {
5491
5491
  return M.version.split(".")[0] >= "19" ? e.props.ref : e.ref;
5492
5492
  }
5493
5493
  function dt(e) {
5494
5494
  return e === Ie || e === /* @__PURE__ */ Symbol.for("react.fragment");
5495
5495
  }
5496
- function id(e) {
5496
+ function ld(e) {
5497
5497
  return dt(e.type);
5498
5498
  }
5499
- let ld = "button";
5500
- function ad(e, t) {
5499
+ let ad = "button";
5500
+ function sd(e, t) {
5501
5501
  var n;
5502
5502
  let r = Cn(), { disabled: o = r || !1, autoFocus: i = !1, ...l } = e, { isFocusVisible: a, focusProps: s } = Gr({ autoFocus: i }), { isHovered: c, hoverProps: u } = Ur({ isDisabled: o }), { pressed: f, pressProps: m } = qr({ disabled: o }), d = Nt({ ref: t, type: (n = l.type) != null ? n : "button", disabled: o || void 0, autoFocus: i }, s, u, m), h = ke({ disabled: o, hover: c, focus: a, active: f, autofocus: i });
5503
- return de()({ ourProps: d, theirProps: l, slot: h, defaultTag: ld, name: "Button" });
5503
+ return de()({ ourProps: d, theirProps: l, slot: h, defaultTag: ad, name: "Button" });
5504
5504
  }
5505
- let sd = ue(ad);
5506
- function cd(e, t, n) {
5505
+ let cd = ue(sd);
5506
+ function ud(e, t, n) {
5507
5507
  let [r, o] = Q(n), i = e !== void 0, l = V(i), a = V(!1), s = V(!1);
5508
5508
  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, G((c) => (i || mn(() => o(c)), t?.(c)))];
5509
5509
  }
5510
- function ud(e) {
5510
+ function dd(e) {
5511
5511
  let [t] = Q(e);
5512
5512
  return t;
5513
5513
  }
@@ -5520,9 +5520,9 @@ function bl(e, t) {
5520
5520
  }
5521
5521
  function wl(e, t, n) {
5522
5522
  if (Array.isArray(n)) for (let [r, o] of n.entries()) wl(e, bl(t, r.toString()), o);
5523
- else n instanceof Date ? e.push([t, n.toISOString()]) : typeof n == "boolean" ? e.push([t, n ? "1" : "0"]) : typeof n == "string" ? e.push([t, n]) : typeof n == "number" ? e.push([t, `${n}`]) : n == null ? e.push([t, ""]) : fd(n) && !Fr(n) && vl(n, t, e);
5523
+ else n instanceof Date ? e.push([t, n.toISOString()]) : typeof n == "boolean" ? e.push([t, n ? "1" : "0"]) : typeof n == "string" ? e.push([t, n]) : typeof n == "number" ? e.push([t, `${n}`]) : n == null ? e.push([t, ""]) : pd(n) && !Fr(n) && vl(n, t, e);
5524
5524
  }
5525
- function dd(e) {
5525
+ function fd(e) {
5526
5526
  var t, n;
5527
5527
  let r = (t = e?.form) != null ? t : e.closest("form");
5528
5528
  if (r) {
@@ -5533,32 +5533,32 @@ function dd(e) {
5533
5533
  (n = r.requestSubmit) == null || n.call(r);
5534
5534
  }
5535
5535
  }
5536
- function fd(e) {
5536
+ function pd(e) {
5537
5537
  if (Object.prototype.toString.call(e) !== "[object Object]") return !1;
5538
5538
  let t = Object.getPrototypeOf(e);
5539
5539
  return t === null || Object.getPrototypeOf(t) === null;
5540
5540
  }
5541
- let pd = "span";
5541
+ let md = "span";
5542
5542
  var Kr = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(Kr || {});
5543
- function md(e, t) {
5543
+ function hd(e, t) {
5544
5544
  var n;
5545
5545
  let { features: r = 1, ...o } = e, i = { ref: t, "aria-hidden": (r & 2) === 2 ? !0 : (n = o["aria-hidden"]) != null ? n : void 0, hidden: (r & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(r & 4) === 4 && (r & 2) !== 2 && { display: "none" } } };
5546
- return de()({ ourProps: i, theirProps: o, slot: {}, defaultTag: pd, name: "Hidden" });
5546
+ return de()({ ourProps: i, theirProps: o, slot: {}, defaultTag: md, name: "Hidden" });
5547
5547
  }
5548
- let yl = ue(md), hd = re(null);
5549
- function gd({ children: e }) {
5550
- let t = X(hd);
5548
+ let yl = ue(hd), gd = re(null);
5549
+ function vd({ children: e }) {
5550
+ let t = X(gd);
5551
5551
  if (!t) return M.createElement(M.Fragment, null, e);
5552
5552
  let { target: n } = t;
5553
5553
  return n ? bi(M.createElement(M.Fragment, null, e), n) : null;
5554
5554
  }
5555
- function vd({ data: e, form: t, disabled: n, onReset: r, overrides: o }) {
5555
+ function bd({ data: e, form: t, disabled: n, onReset: r, overrides: o }) {
5556
5556
  let [i, l] = Q(null), a = at();
5557
5557
  return ie(() => {
5558
5558
  if (r && i) return a.addEventListener(i, "reset", r);
5559
- }, [i, t, r]), M.createElement(gd, null, M.createElement(bd, { setForm: l, formId: t }), vl(e).map(([s, c]) => M.createElement(yl, { features: Kr.Hidden, ...Ke({ key: s, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: t, disabled: n, name: s, value: c, ...o }) })));
5559
+ }, [i, t, r]), M.createElement(vd, null, M.createElement(wd, { setForm: l, formId: t }), vl(e).map(([s, c]) => M.createElement(yl, { features: Kr.Hidden, ...Ke({ key: s, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: t, disabled: n, name: s, value: c, ...o }) })));
5560
5560
  }
5561
- function bd({ setForm: e, formId: t }) {
5561
+ function wd({ setForm: e, formId: t }) {
5562
5562
  return ie(() => {
5563
5563
  if (t) {
5564
5564
  let n = document.getElementById(t);
@@ -5570,9 +5570,9 @@ function bd({ setForm: e, formId: t }) {
5570
5570
  r && e(r);
5571
5571
  } });
5572
5572
  }
5573
- let wd = re(void 0);
5573
+ let yd = re(void 0);
5574
5574
  function xl() {
5575
- return X(wd);
5575
+ return X(yd);
5576
5576
  }
5577
5577
  function El(e) {
5578
5578
  return typeof e != "object" || e === null ? !1 : "nodeType" in e;
@@ -5586,10 +5586,10 @@ function Ge(e) {
5586
5586
  function Ze(e) {
5587
5587
  return kn(e) && "tabIndex" in e;
5588
5588
  }
5589
- function yd(e) {
5589
+ function xd(e) {
5590
5590
  return kn(e) && "style" in e;
5591
5591
  }
5592
- function xd(e) {
5592
+ function Ed(e) {
5593
5593
  return Ge(e) && e.nodeName === "IFRAME";
5594
5594
  }
5595
5595
  function $l(e) {
@@ -5598,22 +5598,22 @@ function $l(e) {
5598
5598
  function ko(e) {
5599
5599
  return Ge(e) && e.nodeName === "LABEL";
5600
5600
  }
5601
- function Ed(e) {
5601
+ function $d(e) {
5602
5602
  return Ge(e) && e.nodeName === "FIELDSET";
5603
5603
  }
5604
5604
  function Rl(e) {
5605
5605
  return Ge(e) && e.nodeName === "LEGEND";
5606
5606
  }
5607
- function $d(e) {
5607
+ function Rd(e) {
5608
5608
  return kn(e) ? e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]') : !1;
5609
5609
  }
5610
5610
  function yr(e) {
5611
5611
  let t = e.parentElement, n = null;
5612
- for (; t && !Ed(t); ) Rl(t) && (n = t), t = t.parentElement;
5612
+ for (; t && !$d(t); ) Rl(t) && (n = t), t = t.parentElement;
5613
5613
  let r = t?.getAttribute("disabled") === "";
5614
- return r && Rd(n) ? !1 : r;
5614
+ return r && Sd(n) ? !1 : r;
5615
5615
  }
5616
- function Rd(e) {
5616
+ function Sd(e) {
5617
5617
  if (!e) return !1;
5618
5618
  let t = e.previousElementSibling;
5619
5619
  for (; t !== null; ) {
@@ -5646,19 +5646,19 @@ function kl() {
5646
5646
  }
5647
5647
  return e;
5648
5648
  }
5649
- function Sd() {
5649
+ function Cd() {
5650
5650
  var e, t;
5651
5651
  return (t = (e = X(Yr)) == null ? void 0 : e.value) != null ? t : void 0;
5652
5652
  }
5653
- let Cd = "p";
5654
- function kd(e, t) {
5653
+ let kd = "p";
5654
+ function Td(e, t) {
5655
5655
  let n = Ve(), r = Cn(), { id: o = `headlessui-description-${n}`, ...i } = e, l = kl(), a = be(t);
5656
5656
  oe(() => l.register(o), [o, l.register]);
5657
5657
  let s = ke({ ...l.slot, disabled: r || !1 }), c = { ref: a, ...l.props, id: o };
5658
- return de()({ ourProps: c, theirProps: i, slot: s, defaultTag: Cd, name: l.name || "Description" });
5658
+ return de()({ ourProps: c, theirProps: i, slot: s, defaultTag: kd, name: l.name || "Description" });
5659
5659
  }
5660
- let Td = ue(kd);
5661
- Object.assign(Td, {});
5660
+ let Od = ue(Td);
5661
+ Object.assign(Od, {});
5662
5662
  var te = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(te || {});
5663
5663
  let Tn = re(null);
5664
5664
  Tn.displayName = "LabelContext";
@@ -5675,7 +5675,7 @@ function Ol(e) {
5675
5675
  let o = (n = (t = X(Tn)) == null ? void 0 : t.value) != null ? n : void 0;
5676
5676
  return ((r = e?.length) != null ? r : 0) > 0 ? [o, ...e].filter(Boolean).join(" ") : o;
5677
5677
  }
5678
- function Od({ inherit: e = !1 } = {}) {
5678
+ function Pd({ inherit: e = !1 } = {}) {
5679
5679
  let t = Ol(), [n, r] = Q([]), o = e ? [t, ...n].filter(Boolean) : n;
5680
5680
  return [o.length > 0 ? o.join(" ") : void 0, ce(() => function(i) {
5681
5681
  let l = G((s) => (r((c) => [...c, s]), () => r((c) => {
@@ -5685,14 +5685,14 @@ function Od({ inherit: e = !1 } = {}) {
5685
5685
  return M.createElement(Tn.Provider, { value: a }, i.children);
5686
5686
  }, [r])];
5687
5687
  }
5688
- let Pd = "label";
5689
- function Ld(e, t) {
5688
+ let Ld = "label";
5689
+ function Ad(e, t) {
5690
5690
  var n;
5691
5691
  let r = Ve(), o = Tl(), i = xl(), l = Cn(), { id: a = `headlessui-label-${r}`, htmlFor: s = i ?? ((n = o.props) == null ? void 0 : n.htmlFor), passive: c = !1, ...u } = e, f = be(t);
5692
5692
  oe(() => o.register(a), [a, o.register]);
5693
5693
  let m = G((g) => {
5694
5694
  let v = g.currentTarget;
5695
- if (!(g.target !== g.currentTarget && $d(g.target)) && (ko(v) && g.preventDefault(), o.props && "onClick" in o.props && typeof o.props.onClick == "function" && o.props.onClick(g), ko(v))) {
5695
+ if (!(g.target !== g.currentTarget && Rd(g.target)) && (ko(v) && g.preventDefault(), o.props && "onClick" in o.props && typeof o.props.onClick == "function" && o.props.onClick(g), ko(v))) {
5696
5696
  let b = document.getElementById(v.htmlFor);
5697
5697
  if (b) {
5698
5698
  let y = b.getAttribute("disabled");
@@ -5703,17 +5703,17 @@ function Ld(e, t) {
5703
5703
  }
5704
5704
  }
5705
5705
  }), d = ke({ ...o.slot, disabled: l || !1 }), h = { ref: f, ...o.props, id: a, htmlFor: s, onClick: m };
5706
- return c && ("onClick" in h && (delete h.htmlFor, delete h.onClick), "onClick" in u && delete u.onClick), de()({ ourProps: h, theirProps: u, slot: d, defaultTag: s ? Pd : "div", name: o.name || "Label" });
5706
+ return c && ("onClick" in h && (delete h.htmlFor, delete h.onClick), "onClick" in u && delete u.onClick), de()({ ourProps: h, theirProps: u, slot: d, defaultTag: s ? Ld : "div", name: o.name || "Label" });
5707
5707
  }
5708
- let Ad = ue(Ld), Md = Object.assign(Ad, {}), Fd = re(() => {
5708
+ let Md = ue(Ad), Fd = Object.assign(Md, {}), Nd = re(() => {
5709
5709
  });
5710
- function Nd({ value: e, children: t }) {
5711
- return M.createElement(Fd.Provider, { value: e }, t);
5710
+ function Id({ value: e, children: t }) {
5711
+ return M.createElement(Nd.Provider, { value: e }, t);
5712
5712
  }
5713
- function Id(e, t) {
5713
+ function Dd(e, t) {
5714
5714
  return e !== null && t !== null && typeof e == "object" && typeof t == "object" && "id" in e && "id" in t ? e.id === t.id : e === t;
5715
5715
  }
5716
- function Dd(e = Id) {
5716
+ function _d(e = Dd) {
5717
5717
  return Z((t, n) => {
5718
5718
  if (typeof e == "string") {
5719
5719
  let r = e;
@@ -5727,7 +5727,7 @@ function To(e) {
5727
5727
  let { width: t, height: n } = e.getBoundingClientRect();
5728
5728
  return { width: t, height: n };
5729
5729
  }
5730
- function _d(e, t, n = !1) {
5730
+ function Bd(e, t, n = !1) {
5731
5731
  let [r, o] = Q(() => To(t));
5732
5732
  return oe(() => {
5733
5733
  if (!t || !e) return;
@@ -5743,7 +5743,7 @@ function _d(e, t, n = !1) {
5743
5743
  }, [t, e]), n ? { width: `${r.width}px`, height: `${r.height}px` } : r;
5744
5744
  }
5745
5745
  var Pl = ((e) => (e[e.Left = 0] = "Left", e[e.Right = 2] = "Right", e))(Pl || {});
5746
- function Bd(e) {
5746
+ function Hd(e) {
5747
5747
  let t = V(null), n = G((o) => {
5748
5748
  t.current = o.pointerType, !yr(o.currentTarget) && o.pointerType === "mouse" && o.button === Pl.Left && (o.preventDefault(), e(o));
5749
5749
  }), r = G((o) => {
@@ -5760,7 +5760,7 @@ let Ll = class extends Map {
5760
5760
  return n === void 0 && (n = this.factory(t), this.set(t, n)), n;
5761
5761
  }
5762
5762
  };
5763
- var Hd = Object.defineProperty, jd = (e, t, n) => t in e ? Hd(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Vd = (e, t, n) => (jd(e, t + "", n), n), Al = (e, t, n) => {
5763
+ var jd = Object.defineProperty, Vd = (e, t, n) => t in e ? jd(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Wd = (e, t, n) => (Vd(e, t + "", n), n), Al = (e, t, n) => {
5764
5764
  if (!t.has(e)) throw TypeError("Cannot " + n);
5765
5765
  }, Re = (e, t, n) => (Al(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Zn = (e, t, n) => {
5766
5766
  if (t.has(e)) throw TypeError("Cannot add the same private member more than once");
@@ -5768,7 +5768,7 @@ var Hd = Object.defineProperty, jd = (e, t, n) => t in e ? Hd(e, t, { enumerable
5768
5768
  }, Oo = (e, t, n, r) => (Al(e, t, "write to private field"), t.set(e, n), n), Me, kt, Tt;
5769
5769
  let Ml = class {
5770
5770
  constructor(t) {
5771
- Zn(this, Me, {}), Zn(this, kt, new Ll(() => /* @__PURE__ */ new Set())), Zn(this, Tt, /* @__PURE__ */ new Set()), Vd(this, "disposables", Ee()), Oo(this, Me, t), Fe.isServer && this.disposables.microTask(() => {
5771
+ Zn(this, Me, {}), Zn(this, kt, new Ll(() => /* @__PURE__ */ new Set())), Zn(this, Tt, /* @__PURE__ */ new Set()), Wd(this, "disposables", Ee()), Oo(this, Me, t), Fe.isServer && this.disposables.microTask(() => {
5772
5772
  this.dispose();
5773
5773
  });
5774
5774
  }
@@ -5826,8 +5826,8 @@ function Jn(e) {
5826
5826
  t(...o), r.dispose(), r.microTask(n);
5827
5827
  };
5828
5828
  }
5829
- var Wd = Object.defineProperty, zd = (e, t, n) => t in e ? Wd(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Lo = (e, t, n) => (zd(e, typeof t != "symbol" ? t + "" : t, n), n), Nl = ((e) => (e[e.Push = 0] = "Push", e[e.Pop = 1] = "Pop", e))(Nl || {});
5830
- let Ud = { 0(e, t) {
5829
+ var zd = Object.defineProperty, Ud = (e, t, n) => t in e ? zd(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Lo = (e, t, n) => (Ud(e, typeof t != "symbol" ? t + "" : t, n), n), Nl = ((e) => (e[e.Push = 0] = "Push", e[e.Pop = 1] = "Pop", e))(Nl || {});
5830
+ let Gd = { 0(e, t) {
5831
5831
  let n = t.id, r = e.stack, o = e.stack.indexOf(n);
5832
5832
  if (o !== -1) {
5833
5833
  let i = e.stack.slice();
@@ -5839,7 +5839,7 @@ let Ud = { 0(e, t) {
5839
5839
  if (r === -1) return e;
5840
5840
  let o = e.stack.slice();
5841
5841
  return o.splice(r, 1), { ...e, stack: o };
5842
- } }, Gd = class Il extends Ml {
5842
+ } }, qd = class Il extends Ml {
5843
5843
  constructor() {
5844
5844
  super(...arguments), Lo(this, "actions", { push: (t) => this.send({ type: 0, id: t }), pop: (t) => this.send({ type: 1, id: t }) }), Lo(this, "selectors", { isTop: (t, n) => t.stack[t.stack.length - 1] === n, inStack: (t, n) => t.stack.includes(n) });
5845
5845
  }
@@ -5847,13 +5847,13 @@ let Ud = { 0(e, t) {
5847
5847
  return new Il({ stack: [] });
5848
5848
  }
5849
5849
  reduce(t, n) {
5850
- return ve(n.type, Ud, t, n);
5850
+ return ve(n.type, Gd, t, n);
5851
5851
  }
5852
5852
  };
5853
- const Zr = new Ll(() => Gd.new());
5853
+ const Zr = new Ll(() => qd.new());
5854
5854
  var tn = { exports: {} }, Qn = {};
5855
5855
  var Ao;
5856
- function qd() {
5856
+ function Kd() {
5857
5857
  if (Ao) return Qn;
5858
5858
  Ao = 1;
5859
5859
  var e = M;
@@ -5905,7 +5905,7 @@ function qd() {
5905
5905
  }
5906
5906
  var er = {};
5907
5907
  var Mo;
5908
- function Kd() {
5908
+ function Yd() {
5909
5909
  return Mo || (Mo = 1, process.env.NODE_ENV !== "production" && (function() {
5910
5910
  function e(s, c) {
5911
5911
  return s === c && (s !== 0 || 1 / s === 1 / c) || s !== s && c !== c;
@@ -5957,14 +5957,14 @@ function Kd() {
5957
5957
  })()), er;
5958
5958
  }
5959
5959
  var Fo;
5960
- function Yd() {
5961
- return Fo || (Fo = 1, process.env.NODE_ENV === "production" ? tn.exports = qd() : tn.exports = Kd()), tn.exports;
5960
+ function Zd() {
5961
+ return Fo || (Fo = 1, process.env.NODE_ENV === "production" ? tn.exports = Kd() : tn.exports = Yd()), tn.exports;
5962
5962
  }
5963
- var Zd = Yd();
5963
+ var Xd = Zd();
5964
5964
  function we(e, t, n = Fl) {
5965
- return Zd.useSyncExternalStoreWithSelector(G((r) => e.subscribe(Xd, r)), G(() => e.state), G(() => e.state), G(t), n);
5965
+ return Xd.useSyncExternalStoreWithSelector(G((r) => e.subscribe(Jd, r)), G(() => e.state), G(() => e.state), G(t), n);
5966
5966
  }
5967
- function Xd(e) {
5967
+ function Jd(e) {
5968
5968
  return e;
5969
5969
  }
5970
5970
  function Dl(e, t) {
@@ -5986,7 +5986,7 @@ function Io(e) {
5986
5986
  let r = xr.get(e);
5987
5987
  r && (r["aria-hidden"] === null ? e.removeAttribute("aria-hidden") : e.setAttribute("aria-hidden", r["aria-hidden"]), e.inert = r.inert, xr.delete(e));
5988
5988
  }
5989
- function Jd(e, { allowed: t, disallowed: n } = {}) {
5989
+ function Qd(e, { allowed: t, disallowed: n } = {}) {
5990
5990
  let r = Dl(e, "inert-others");
5991
5991
  oe(() => {
5992
5992
  var o, i;
@@ -6007,7 +6007,7 @@ function Jd(e, { allowed: t, disallowed: n } = {}) {
6007
6007
  return l.dispose;
6008
6008
  }, [r, t, n]);
6009
6009
  }
6010
- function Qd(e, t, n) {
6010
+ function ef(e, t, n) {
6011
6011
  let r = st((o) => {
6012
6012
  let i = o.getBoundingClientRect();
6013
6013
  i.x === 0 && i.y === 0 && i.width === 0 && i.height === 0 && n();
@@ -6028,13 +6028,13 @@ function Qd(e, t, n) {
6028
6028
  return () => i.dispose();
6029
6029
  }, [t, r, e]);
6030
6030
  }
6031
- let Er = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "details>summary", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(","), ef = ["[data-autofocus]"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
6032
- var $r = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e[e.AutoFocus = 64] = "AutoFocus", e))($r || {}), tf = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(tf || {}), nf = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(nf || {});
6031
+ let Er = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "details>summary", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(","), tf = ["[data-autofocus]"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
6032
+ var $r = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e[e.AutoFocus = 64] = "AutoFocus", e))($r || {}), nf = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(nf || {}), rf = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(rf || {});
6033
6033
  function _l(e = document.body) {
6034
6034
  return e == null ? [] : Array.from(e.querySelectorAll(Er)).sort((t, n) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
6035
6035
  }
6036
- function rf(e = document.body) {
6037
- return e == null ? [] : Array.from(e.querySelectorAll(ef)).sort((t, n) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
6036
+ function of(e = document.body) {
6037
+ return e == null ? [] : Array.from(e.querySelectorAll(tf)).sort((t, n) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
6038
6038
  }
6039
6039
  var Xr = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(Xr || {});
6040
6040
  function Bl(e, t = 0) {
@@ -6050,16 +6050,16 @@ function Bl(e, t = 0) {
6050
6050
  return !1;
6051
6051
  } });
6052
6052
  }
6053
- var of = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(of || {});
6053
+ var lf = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(lf || {});
6054
6054
  typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (e) => {
6055
6055
  e.metaKey || e.altKey || e.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
6056
6056
  }, !0), document.addEventListener("click", (e) => {
6057
6057
  e.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : e.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
6058
6058
  }, !0));
6059
- let lf = ["textarea", "input"].join(",");
6060
- function af(e) {
6059
+ let af = ["textarea", "input"].join(",");
6060
+ function sf(e) {
6061
6061
  var t, n;
6062
- return (n = (t = e?.matches) == null ? void 0 : t.call(e, lf)) != null ? n : !1;
6062
+ return (n = (t = e?.matches) == null ? void 0 : t.call(e, af)) != null ? n : !1;
6063
6063
  }
6064
6064
  function Hl(e, t = (n) => n) {
6065
6065
  return e.slice().sort((n, r) => {
@@ -6069,11 +6069,11 @@ function Hl(e, t = (n) => n) {
6069
6069
  return l & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : l & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
6070
6070
  });
6071
6071
  }
6072
- function sf(e, t, n = e === null ? document.body : bn(e)) {
6073
- return cf(_l(n), t, { relativeTo: e });
6072
+ function cf(e, t, n = e === null ? document.body : bn(e)) {
6073
+ return uf(_l(n), t, { relativeTo: e });
6074
6074
  }
6075
- function cf(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: o = [] } = {}) {
6076
- let i = Array.isArray(e) ? e.length > 0 ? bn(e[0]) : document : bn(e), l = Array.isArray(e) ? n ? Hl(e) : e : t & 64 ? rf(e) : _l(e);
6075
+ function uf(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: o = [] } = {}) {
6076
+ let i = Array.isArray(e) ? e.length > 0 ? bn(e[0]) : document : bn(e), l = Array.isArray(e) ? n ? Hl(e) : e : t & 64 ? of(e) : _l(e);
6077
6077
  o.length > 0 && l.length > 1 && (l = l.filter((d) => !o.some((h) => h != null && "current" in h ? h?.current === d : h === d))), r = r ?? i?.activeElement;
6078
6078
  let a = (() => {
6079
6079
  if (t & 5) return 1;
@@ -6096,16 +6096,16 @@ function cf(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: o = [] }
6096
6096
  }
6097
6097
  m = l[d], m?.focus(c), u += a;
6098
6098
  } while (m !== ml(m));
6099
- return t & 6 && af(m) && m.select(), 2;
6099
+ return t & 6 && sf(m) && m.select(), 2;
6100
6100
  }
6101
6101
  function jl() {
6102
6102
  return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
6103
6103
  }
6104
- function uf() {
6104
+ function df() {
6105
6105
  return /Android/gi.test(window.navigator.userAgent);
6106
6106
  }
6107
6107
  function Do() {
6108
- return jl() || uf();
6108
+ return jl() || df();
6109
6109
  }
6110
6110
  function ut(e, t, n, r) {
6111
6111
  let o = st(n);
@@ -6117,7 +6117,7 @@ function ut(e, t, n, r) {
6117
6117
  return document.addEventListener(t, i, r), () => document.removeEventListener(t, i, r);
6118
6118
  }, [e, t, r]);
6119
6119
  }
6120
- function df(e, t, n, r) {
6120
+ function ff(e, t, n, r) {
6121
6121
  let o = st(n);
6122
6122
  ie(() => {
6123
6123
  if (!e) return;
@@ -6128,7 +6128,7 @@ function df(e, t, n, r) {
6128
6128
  }, [e, t, r]);
6129
6129
  }
6130
6130
  const _o = 30;
6131
- function ff(e, t, n) {
6131
+ function pf(e, t, n) {
6132
6132
  let r = st(n), o = Z(function(a, s) {
6133
6133
  if (a.defaultPrevented) return;
6134
6134
  let c = s(a);
@@ -6153,14 +6153,14 @@ function ff(e, t, n) {
6153
6153
  }, !0), ut(e, "touchend", (a) => {
6154
6154
  let s = { x: a.changedTouches[0].clientX, y: a.changedTouches[0].clientY };
6155
6155
  if (!(Math.abs(s.x - l.current.x) >= _o || Math.abs(s.y - l.current.y) >= _o)) return o(a, () => Ze(a.target) ? a.target : null);
6156
- }, !0), df(e, "blur", (a) => o(a, () => xd(window.document.activeElement) ? window.document.activeElement : null), !0);
6156
+ }, !0), ff(e, "blur", (a) => o(a, () => Ed(window.document.activeElement) ? window.document.activeElement : null), !0);
6157
6157
  }
6158
6158
  function Rr(...e) {
6159
6159
  return ce(() => Wt(...e), [...e]);
6160
6160
  }
6161
- var pf = ((e) => (e[e.Ignore = 0] = "Ignore", e[e.Select = 1] = "Select", e[e.Close = 2] = "Close", e))(pf || {});
6162
- const nn = { Ignore: { kind: 0 }, Select: (e) => ({ kind: 1, target: e }), Close: { kind: 2 } }, mf = 200, Bo = 5;
6163
- function hf(e, { trigger: t, action: n, close: r, select: o }) {
6161
+ var mf = ((e) => (e[e.Ignore = 0] = "Ignore", e[e.Select = 1] = "Select", e[e.Close = 2] = "Close", e))(mf || {});
6162
+ const nn = { Ignore: { kind: 0 }, Select: (e) => ({ kind: 1, target: e }), Close: { kind: 2 } }, hf = 200, Bo = 5;
6163
+ function gf(e, { trigger: t, action: n, close: r, select: o }) {
6164
6164
  let i = V(null), l = V(null), a = V(null);
6165
6165
  ut(e && t !== null, "pointerdown", (s) => {
6166
6166
  El(s?.target) && t != null && t.contains(s.target) && (l.current = s.x, a.current = s.y, i.current = s.timeStamp);
@@ -6173,7 +6173,7 @@ function hf(e, { trigger: t, action: n, close: r, select: o }) {
6173
6173
  case 0:
6174
6174
  return;
6175
6175
  case 1: {
6176
- s.timeStamp - f > mf && (o(m.target), r());
6176
+ s.timeStamp - f > hf && (o(m.target), r());
6177
6177
  break;
6178
6178
  }
6179
6179
  case 2: {
@@ -6191,10 +6191,10 @@ function Vl(e, t) {
6191
6191
  if (typeof r == "string" && r.toLowerCase() === "button" || t?.tagName === "BUTTON" && !t.hasAttribute("type")) return "button";
6192
6192
  }, [e.type, e.as, t]);
6193
6193
  }
6194
- function gf(e) {
6194
+ function vf(e) {
6195
6195
  return Da(e.subscribe, e.getSnapshot, e.getSnapshot);
6196
6196
  }
6197
- function vf(e, t) {
6197
+ function bf(e, t) {
6198
6198
  let n = e(), r = /* @__PURE__ */ new Set();
6199
6199
  return { getSnapshot() {
6200
6200
  return n;
@@ -6205,7 +6205,7 @@ function vf(e, t) {
6205
6205
  l && (n = l, r.forEach((a) => a()));
6206
6206
  } };
6207
6207
  }
6208
- function bf() {
6208
+ function wf() {
6209
6209
  let e;
6210
6210
  return { before({ doc: t }) {
6211
6211
  var n;
@@ -6216,7 +6216,7 @@ function bf() {
6216
6216
  n.style(r, "paddingRight", `${i}px`);
6217
6217
  } };
6218
6218
  }
6219
- function wf() {
6219
+ function yf() {
6220
6220
  return jl() ? { before({ doc: e, d: t, meta: n }) {
6221
6221
  function r(o) {
6222
6222
  for (let i of n().containers) for (let l of i()) if (l.contains(o)) return !0;
@@ -6239,7 +6239,7 @@ function wf() {
6239
6239
  }
6240
6240
  }, !0), t.group((a) => {
6241
6241
  t.addEventListener(e, "touchstart", (s) => {
6242
- if (a.dispose(), Ze(s.target) && yd(s.target)) if (r(s.target)) {
6242
+ if (a.dispose(), Ze(s.target) && xd(s.target)) if (r(s.target)) {
6243
6243
  let c = s.target;
6244
6244
  for (; c.parentElement && r(c.parentElement); ) c = c.parentElement;
6245
6245
  a.style(c, "overscrollBehavior", "contain");
@@ -6262,7 +6262,7 @@ function wf() {
6262
6262
  });
6263
6263
  } } : {};
6264
6264
  }
6265
- function yf() {
6265
+ function xf() {
6266
6266
  return { before({ doc: e, d: t }) {
6267
6267
  t.style(e.documentElement, "overflow", "hidden");
6268
6268
  } };
@@ -6272,7 +6272,7 @@ function Ho(e) {
6272
6272
  for (let n of e) Object.assign(t, n(t));
6273
6273
  return t;
6274
6274
  }
6275
- let rt = vf(() => /* @__PURE__ */ new Map(), { PUSH(e, t) {
6275
+ let rt = bf(() => /* @__PURE__ */ new Map(), { PUSH(e, t) {
6276
6276
  var n;
6277
6277
  let r = (n = this.get(e)) != null ? n : { doc: e, count: 0, d: Ee(), meta: /* @__PURE__ */ new Set(), computedMeta: {} };
6278
6278
  return r.count++, r.meta.add(t), r.computedMeta = Ho(r.meta), this.set(e, r), this;
@@ -6282,7 +6282,7 @@ let rt = vf(() => /* @__PURE__ */ new Map(), { PUSH(e, t) {
6282
6282
  }, SCROLL_PREVENT(e) {
6283
6283
  let t = { doc: e.doc, d: e.d, meta() {
6284
6284
  return e.computedMeta;
6285
- } }, n = [wf(), bf(), yf()];
6285
+ } }, n = [yf(), wf(), xf()];
6286
6286
  n.forEach(({ before: r }) => r?.(t)), n.forEach(({ after: r }) => r?.(t));
6287
6287
  }, SCROLL_ALLOW({ d: e }) {
6288
6288
  e.dispose();
@@ -6297,15 +6297,15 @@ rt.subscribe(() => {
6297
6297
  (o && !r || !o && r) && rt.dispatch(n.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", n), n.count === 0 && rt.dispatch("TEARDOWN", n);
6298
6298
  }
6299
6299
  });
6300
- function xf(e, t, n = () => ({ containers: [] })) {
6301
- let r = gf(rt), o = t ? r.get(t) : void 0, i = o ? o.count > 0 : !1;
6300
+ function Ef(e, t, n = () => ({ containers: [] })) {
6301
+ let r = vf(rt), o = t ? r.get(t) : void 0, i = o ? o.count > 0 : !1;
6302
6302
  return oe(() => {
6303
6303
  if (!(!t || !e)) return rt.dispatch("PUSH", t, n), () => rt.dispatch("POP", t, n);
6304
6304
  }, [e, t]), i;
6305
6305
  }
6306
- function Ef(e, t, n = () => [document.body]) {
6306
+ function $f(e, t, n = () => [document.body]) {
6307
6307
  let r = Dl(e, "scroll-lock");
6308
- xf(r, t, (o) => {
6308
+ Ef(r, t, (o) => {
6309
6309
  var i;
6310
6310
  return { containers: [...(i = o.containers) != null ? i : [], n] };
6311
6311
  });
@@ -6313,7 +6313,7 @@ function Ef(e, t, n = () => [document.body]) {
6313
6313
  function jo(e) {
6314
6314
  return [e.screenX, e.screenY];
6315
6315
  }
6316
- function $f() {
6316
+ function Rf() {
6317
6317
  let e = V([-1, -1]);
6318
6318
  return { wasMoved(t) {
6319
6319
  let n = jo(t);
@@ -6322,7 +6322,7 @@ function $f() {
6322
6322
  e.current = jo(t);
6323
6323
  } };
6324
6324
  }
6325
- function Rf(e = 0) {
6325
+ function Sf(e = 0) {
6326
6326
  let [t, n] = Q(e), r = Z((s) => n(s), []), o = Z((s) => n((c) => c | s), []), i = Z((s) => (t & s) === s, [t]), l = Z((s) => n((c) => c & ~s), []), a = Z((s) => n((c) => c ^ s), []);
6327
6327
  return { flags: t, setFlag: r, addFlag: o, hasFlag: i, removeFlag: l, toggleFlag: a };
6328
6328
  }
@@ -6331,14 +6331,14 @@ typeof process < "u" && typeof globalThis < "u" && typeof Element < "u" && ((Vo
6331
6331
  return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.", "Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.", "", "Example usage:", "```js", "import { mockAnimationsApi } from 'jsdom-testing-mocks'", "mockAnimationsApi()", "```"].join(`
6332
6332
  `)), [];
6333
6333
  });
6334
- var Sf = ((e) => (e[e.None = 0] = "None", e[e.Closed = 1] = "Closed", e[e.Enter = 2] = "Enter", e[e.Leave = 4] = "Leave", e))(Sf || {});
6334
+ var Cf = ((e) => (e[e.None = 0] = "None", e[e.Closed = 1] = "Closed", e[e.Enter = 2] = "Enter", e[e.Leave = 4] = "Leave", e))(Cf || {});
6335
6335
  function Jr(e) {
6336
6336
  let t = {};
6337
6337
  for (let n in e) e[n] === !0 && (t[`data-${n}`] = "");
6338
6338
  return t;
6339
6339
  }
6340
6340
  function Qr(e, t, n, r) {
6341
- let [o, i] = Q(n), { hasFlag: l, addFlag: a, removeFlag: s } = Rf(e && o ? 3 : 0), c = V(!1), u = V(!1), f = at();
6341
+ let [o, i] = Q(n), { hasFlag: l, addFlag: a, removeFlag: s } = Sf(e && o ? 3 : 0), c = V(!1), u = V(!1), f = at();
6342
6342
  return oe(() => {
6343
6343
  var m;
6344
6344
  if (e) {
@@ -6346,26 +6346,26 @@ function Qr(e, t, n, r) {
6346
6346
  n && a(3);
6347
6347
  return;
6348
6348
  }
6349
- return (m = r?.start) == null || m.call(r, n), Cf(t, { inFlight: c, prepare() {
6349
+ return (m = r?.start) == null || m.call(r, n), kf(t, { inFlight: c, prepare() {
6350
6350
  u.current ? u.current = !1 : u.current = c.current, c.current = !0, !u.current && (n ? (a(3), s(4)) : (a(4), s(2)));
6351
6351
  }, run() {
6352
6352
  u.current ? n ? (s(3), a(4)) : (s(4), a(3)) : n ? s(1) : a(1);
6353
6353
  }, done() {
6354
6354
  var d;
6355
- u.current && Of(t) || (c.current = !1, s(7), n || i(!1), (d = r?.end) == null || d.call(r, n));
6355
+ u.current && Pf(t) || (c.current = !1, s(7), n || i(!1), (d = r?.end) == null || d.call(r, n));
6356
6356
  } });
6357
6357
  }
6358
6358
  }, [e, n, t, f]), e ? [o, { closed: l(1), enter: l(2), leave: l(4), transition: l(2) || l(4) }] : [n, { closed: void 0, enter: void 0, leave: void 0, transition: void 0 }];
6359
6359
  }
6360
- function Cf(e, { prepare: t, run: n, done: r, inFlight: o }) {
6360
+ function kf(e, { prepare: t, run: n, done: r, inFlight: o }) {
6361
6361
  let i = Ee();
6362
- return Tf(e, { prepare: t, inFlight: o }), i.nextFrame(() => {
6362
+ return Of(e, { prepare: t, inFlight: o }), i.nextFrame(() => {
6363
6363
  n(), i.requestAnimationFrame(() => {
6364
- i.add(kf(e, r));
6364
+ i.add(Tf(e, r));
6365
6365
  });
6366
6366
  }), i.dispose;
6367
6367
  }
6368
- function kf(e, t) {
6368
+ function Tf(e, t) {
6369
6369
  var n, r;
6370
6370
  let o = Ee();
6371
6371
  if (!e) return o.dispose;
@@ -6378,7 +6378,7 @@ function kf(e, t) {
6378
6378
  i || t();
6379
6379
  }), o.dispose);
6380
6380
  }
6381
- function Tf(e, { inFlight: t, prepare: n }) {
6381
+ function Of(e, { inFlight: t, prepare: n }) {
6382
6382
  if (t != null && t.current) {
6383
6383
  n();
6384
6384
  return;
@@ -6386,7 +6386,7 @@ function Tf(e, { inFlight: t, prepare: n }) {
6386
6386
  let r = e.style.transition;
6387
6387
  e.style.transition = "none", n(), e.offsetHeight, e.style.transition = r;
6388
6388
  }
6389
- function Of(e) {
6389
+ function Pf(e) {
6390
6390
  var t, n;
6391
6391
  return ((n = (t = e.getAnimations) == null ? void 0 : t.call(e)) != null ? n : []).some((r) => r instanceof CSSTransition && r.playState !== "finished");
6392
6392
  }
@@ -6416,7 +6416,7 @@ function Te(e) {
6416
6416
  function Sr(e) {
6417
6417
  return !On() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof xe(e).ShadowRoot;
6418
6418
  }
6419
- const Pf = /* @__PURE__ */ new Set(["inline", "contents"]);
6419
+ const Lf = /* @__PURE__ */ new Set(["inline", "contents"]);
6420
6420
  function zt(e) {
6421
6421
  const {
6422
6422
  overflow: t,
@@ -6424,15 +6424,15 @@ function zt(e) {
6424
6424
  overflowY: r,
6425
6425
  display: o
6426
6426
  } = Le(e);
6427
- return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !Pf.has(o);
6427
+ return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !Lf.has(o);
6428
6428
  }
6429
- const Lf = /* @__PURE__ */ new Set(["table", "td", "th"]);
6430
- function Af(e) {
6431
- return Lf.has(Et(e));
6429
+ const Af = /* @__PURE__ */ new Set(["table", "td", "th"]);
6430
+ function Mf(e) {
6431
+ return Af.has(Et(e));
6432
6432
  }
6433
- const Mf = [":popover-open", ":modal"];
6433
+ const Ff = [":popover-open", ":modal"];
6434
6434
  function Pn(e) {
6435
- return Mf.some((t) => {
6435
+ return Ff.some((t) => {
6436
6436
  try {
6437
6437
  return e.matches(t);
6438
6438
  } catch {
@@ -6440,12 +6440,12 @@ function Pn(e) {
6440
6440
  }
6441
6441
  });
6442
6442
  }
6443
- const Ff = ["transform", "translate", "scale", "rotate", "perspective"], Nf = ["transform", "translate", "scale", "rotate", "perspective", "filter"], If = ["paint", "layout", "strict", "content"];
6443
+ const Nf = ["transform", "translate", "scale", "rotate", "perspective"], If = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Df = ["paint", "layout", "strict", "content"];
6444
6444
  function eo(e) {
6445
6445
  const t = to(), n = J(e) ? Le(e) : e;
6446
- return Ff.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) || Nf.some((r) => (n.willChange || "").includes(r)) || If.some((r) => (n.contain || "").includes(r));
6446
+ return Nf.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) || If.some((r) => (n.willChange || "").includes(r)) || Df.some((r) => (n.contain || "").includes(r));
6447
6447
  }
6448
- function Df(e) {
6448
+ function _f(e) {
6449
6449
  let t = Je(e);
6450
6450
  for (; Te(t) && !ht(t); ) {
6451
6451
  if (eo(t))
@@ -6459,9 +6459,9 @@ function Df(e) {
6459
6459
  function to() {
6460
6460
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
6461
6461
  }
6462
- const _f = /* @__PURE__ */ new Set(["html", "body", "#document"]);
6462
+ const Bf = /* @__PURE__ */ new Set(["html", "body", "#document"]);
6463
6463
  function ht(e) {
6464
- return _f.has(Et(e));
6464
+ return Bf.has(Et(e));
6465
6465
  }
6466
6466
  function Le(e) {
6467
6467
  return xe(e).getComputedStyle(e);
@@ -6504,7 +6504,7 @@ function It(e, t, n) {
6504
6504
  function Cr(e) {
6505
6505
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
6506
6506
  }
6507
- function Bf() {
6507
+ function Hf() {
6508
6508
  const e = navigator.userAgentData;
6509
6509
  return e && Array.isArray(e.brands) ? e.brands.map((t) => {
6510
6510
  let {
@@ -6517,12 +6517,12 @@ function Bf() {
6517
6517
  const it = Math.min, fe = Math.max, Dt = Math.round, rn = Math.floor, Ne = (e) => ({
6518
6518
  x: e,
6519
6519
  y: e
6520
- }), Hf = {
6520
+ }), jf = {
6521
6521
  left: "right",
6522
6522
  right: "left",
6523
6523
  bottom: "top",
6524
6524
  top: "bottom"
6525
- }, jf = {
6525
+ }, Vf = {
6526
6526
  start: "end",
6527
6527
  end: "start"
6528
6528
  };
@@ -6544,48 +6544,48 @@ function Ul(e) {
6544
6544
  function Gl(e) {
6545
6545
  return e === "y" ? "height" : "width";
6546
6546
  }
6547
- const Vf = /* @__PURE__ */ new Set(["top", "bottom"]);
6547
+ const Wf = /* @__PURE__ */ new Set(["top", "bottom"]);
6548
6548
  function Be(e) {
6549
- return Vf.has(Qe(e)) ? "y" : "x";
6549
+ return Wf.has(Qe(e)) ? "y" : "x";
6550
6550
  }
6551
6551
  function ql(e) {
6552
6552
  return Ul(Be(e));
6553
6553
  }
6554
- function Wf(e, t, n) {
6554
+ function zf(e, t, n) {
6555
6555
  n === void 0 && (n = !1);
6556
6556
  const r = Ut(e), o = ql(e), i = Gl(o);
6557
6557
  let l = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
6558
6558
  return t.reference[i] > t.floating[i] && (l = wn(l)), [l, wn(l)];
6559
6559
  }
6560
- function zf(e) {
6560
+ function Uf(e) {
6561
6561
  const t = wn(e);
6562
6562
  return [kr(e), t, kr(t)];
6563
6563
  }
6564
6564
  function kr(e) {
6565
- return e.replace(/start|end/g, (t) => jf[t]);
6565
+ return e.replace(/start|end/g, (t) => Vf[t]);
6566
6566
  }
6567
- const Uo = ["left", "right"], Go = ["right", "left"], Uf = ["top", "bottom"], Gf = ["bottom", "top"];
6568
- function qf(e, t, n) {
6567
+ const Uo = ["left", "right"], Go = ["right", "left"], Gf = ["top", "bottom"], qf = ["bottom", "top"];
6568
+ function Kf(e, t, n) {
6569
6569
  switch (e) {
6570
6570
  case "top":
6571
6571
  case "bottom":
6572
6572
  return n ? t ? Go : Uo : t ? Uo : Go;
6573
6573
  case "left":
6574
6574
  case "right":
6575
- return t ? Uf : Gf;
6575
+ return t ? Gf : qf;
6576
6576
  default:
6577
6577
  return [];
6578
6578
  }
6579
6579
  }
6580
- function Kf(e, t, n, r) {
6580
+ function Yf(e, t, n, r) {
6581
6581
  const o = Ut(e);
6582
- let i = qf(Qe(e), n === "start", r);
6582
+ let i = Kf(Qe(e), n === "start", r);
6583
6583
  return o && (i = i.map((l) => l + "-" + o), t && (i = i.concat(i.map(kr)))), i;
6584
6584
  }
6585
6585
  function wn(e) {
6586
- return e.replace(/left|right|bottom|top/g, (t) => Hf[t]);
6586
+ return e.replace(/left|right|bottom|top/g, (t) => jf[t]);
6587
6587
  }
6588
- function Yf(e) {
6588
+ function Zf(e) {
6589
6589
  return {
6590
6590
  top: 0,
6591
6591
  right: 0,
@@ -6594,8 +6594,8 @@ function Yf(e) {
6594
6594
  ...e
6595
6595
  };
6596
6596
  }
6597
- function Zf(e) {
6598
- return typeof e != "number" ? Yf(e) : {
6597
+ function Xf(e) {
6598
+ return typeof e != "number" ? Zf(e) : {
6599
6599
  top: e,
6600
6600
  right: e,
6601
6601
  bottom: e,
@@ -6668,7 +6668,7 @@ function qo(e, t, n) {
6668
6668
  }
6669
6669
  return d;
6670
6670
  }
6671
- const Xf = async (e, t, n) => {
6671
+ const Jf = async (e, t, n) => {
6672
6672
  const {
6673
6673
  placement: r = "bottom",
6674
6674
  strategy: o = "absolute",
@@ -6745,7 +6745,7 @@ async function An(e, t) {
6745
6745
  elementContext: f = "floating",
6746
6746
  altBoundary: m = !1,
6747
6747
  padding: d = 0
6748
- } = $t(t, e), h = Zf(d), v = a[m ? f === "floating" ? "reference" : "floating" : f], b = yn(await i.getClippingRect({
6748
+ } = $t(t, e), h = Xf(d), v = a[m ? f === "floating" ? "reference" : "floating" : f], b = yn(await i.getClippingRect({
6749
6749
  element: (n = await (i.isElement == null ? void 0 : i.isElement(v))) == null || n ? v : v.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
6750
6750
  boundary: c,
6751
6751
  rootBoundary: u,
@@ -6774,7 +6774,7 @@ async function An(e, t) {
6774
6774
  right: (E.right - b.right + h.right) / $.x
6775
6775
  };
6776
6776
  }
6777
- const Jf = function(e) {
6777
+ const Qf = function(e) {
6778
6778
  return e === void 0 && (e = {}), {
6779
6779
  name: "flip",
6780
6780
  options: e,
@@ -6798,12 +6798,12 @@ const Jf = function(e) {
6798
6798
  } = $t(e, t);
6799
6799
  if ((n = i.arrow) != null && n.alignmentOffset)
6800
6800
  return {};
6801
- const b = Qe(o), y = Be(a), w = Qe(a) === a, $ = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), E = m || (w || !g ? [wn(a)] : zf(a)), k = h !== "none";
6802
- !m && k && E.push(...Kf(a, g, h, $));
6801
+ const b = Qe(o), y = Be(a), w = Qe(a) === a, $ = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), E = m || (w || !g ? [wn(a)] : Uf(a)), k = h !== "none";
6802
+ !m && k && E.push(...Yf(a, g, h, $));
6803
6803
  const T = [a, ...E], S = await An(t, v), L = [];
6804
6804
  let C = ((r = i.flip) == null ? void 0 : r.overflows) || [];
6805
6805
  if (u && L.push(S[b]), f) {
6806
- const B = Wf(o, l, $);
6806
+ const B = zf(o, l, $);
6807
6807
  L.push(S[B[0]], S[B[1]]);
6808
6808
  }
6809
6809
  if (C = [...C, {
@@ -6855,13 +6855,13 @@ const Jf = function(e) {
6855
6855
  return {};
6856
6856
  }
6857
6857
  };
6858
- }, Qf = /* @__PURE__ */ new Set(["left", "top"]);
6859
- async function ep(e, t) {
6858
+ }, ep = /* @__PURE__ */ new Set(["left", "top"]);
6859
+ async function tp(e, t) {
6860
6860
  const {
6861
6861
  placement: n,
6862
6862
  platform: r,
6863
6863
  elements: o
6864
- } = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), l = Qe(n), a = Ut(n), s = Be(n) === "y", c = Qf.has(l) ? -1 : 1, u = i && s ? -1 : 1, f = $t(t, e);
6864
+ } = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), l = Qe(n), a = Ut(n), s = Be(n) === "y", c = ep.has(l) ? -1 : 1, u = i && s ? -1 : 1, f = $t(t, e);
6865
6865
  let {
6866
6866
  mainAxis: m,
6867
6867
  crossAxis: d,
@@ -6883,7 +6883,7 @@ async function ep(e, t) {
6883
6883
  y: d * u
6884
6884
  };
6885
6885
  }
6886
- const tp = function(e) {
6886
+ const np = function(e) {
6887
6887
  return e === void 0 && (e = 0), {
6888
6888
  name: "offset",
6889
6889
  options: e,
@@ -6894,7 +6894,7 @@ const tp = function(e) {
6894
6894
  y: i,
6895
6895
  placement: l,
6896
6896
  middlewareData: a
6897
- } = t, s = await ep(t, e);
6897
+ } = t, s = await tp(t, e);
6898
6898
  return l === ((n = a.offset) == null ? void 0 : n.placement) && (r = a.arrow) != null && r.alignmentOffset ? {} : {
6899
6899
  x: o + s.x,
6900
6900
  y: i + s.y,
@@ -6905,7 +6905,7 @@ const tp = function(e) {
6905
6905
  };
6906
6906
  }
6907
6907
  };
6908
- }, np = function(e) {
6908
+ }, rp = function(e) {
6909
6909
  return e === void 0 && (e = {}), {
6910
6910
  name: "shift",
6911
6911
  options: e,
@@ -6961,7 +6961,7 @@ const tp = function(e) {
6961
6961
  };
6962
6962
  }
6963
6963
  };
6964
- }, rp = function(e) {
6964
+ }, op = function(e) {
6965
6965
  return e === void 0 && (e = {}), {
6966
6966
  name: "size",
6967
6967
  options: e,
@@ -7030,15 +7030,15 @@ function ft(e) {
7030
7030
  y: a
7031
7031
  };
7032
7032
  }
7033
- const op = /* @__PURE__ */ Ne(0);
7033
+ const ip = /* @__PURE__ */ Ne(0);
7034
7034
  function Yl(e) {
7035
7035
  const t = xe(e);
7036
- return !to() || !t.visualViewport ? op : {
7036
+ return !to() || !t.visualViewport ? ip : {
7037
7037
  x: t.visualViewport.offsetLeft,
7038
7038
  y: t.visualViewport.offsetTop
7039
7039
  };
7040
7040
  }
7041
- function ip(e, t, n) {
7041
+ function lp(e, t, n) {
7042
7042
  return t === void 0 && (t = !1), !n || t && n !== xe(e) ? !1 : t;
7043
7043
  }
7044
7044
  function lt(e, t, n, r) {
@@ -7046,7 +7046,7 @@ function lt(e, t, n, r) {
7046
7046
  const o = e.getBoundingClientRect(), i = no(e);
7047
7047
  let l = Ne(1);
7048
7048
  t && (r ? J(r) && (l = ft(r)) : l = ft(e));
7049
- const a = ip(i, n, r) ? Yl(i) : Ne(0);
7049
+ const a = lp(i, n, r) ? Yl(i) : Ne(0);
7050
7050
  let s = (o.left + a.x) / l.x, c = (o.top + a.y) / l.y, u = o.width / l.x, f = o.height / l.y;
7051
7051
  if (i) {
7052
7052
  const m = xe(i), d = r && J(r) ? xe(r) : r;
@@ -7074,7 +7074,7 @@ function Zl(e, t) {
7074
7074
  y: o
7075
7075
  };
7076
7076
  }
7077
- function lp(e) {
7077
+ function ap(e) {
7078
7078
  let {
7079
7079
  elements: t,
7080
7080
  rect: n,
@@ -7101,10 +7101,10 @@ function lp(e) {
7101
7101
  y: n.y * c.y - s.scrollTop * c.y + u.y + m.y
7102
7102
  };
7103
7103
  }
7104
- function ap(e) {
7104
+ function sp(e) {
7105
7105
  return Array.from(e.getClientRects());
7106
7106
  }
7107
- function sp(e) {
7107
+ function cp(e) {
7108
7108
  const t = De(e), n = Ln(e), r = e.ownerDocument.body, o = fe(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = fe(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
7109
7109
  let l = -n.scrollLeft + Mn(e);
7110
7110
  const a = -n.scrollTop;
@@ -7116,7 +7116,7 @@ function sp(e) {
7116
7116
  };
7117
7117
  }
7118
7118
  const Ko = 25;
7119
- function cp(e, t) {
7119
+ function up(e, t) {
7120
7120
  const n = xe(e), r = De(e), o = n.visualViewport;
7121
7121
  let i = r.clientWidth, l = r.clientHeight, a = 0, s = 0;
7122
7122
  if (o) {
@@ -7136,8 +7136,8 @@ function cp(e, t) {
7136
7136
  y: s
7137
7137
  };
7138
7138
  }
7139
- const up = /* @__PURE__ */ new Set(["absolute", "fixed"]);
7140
- function dp(e, t) {
7139
+ const dp = /* @__PURE__ */ new Set(["absolute", "fixed"]);
7140
+ function fp(e, t) {
7141
7141
  const n = lt(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = Te(e) ? ft(e) : Ne(1), l = e.clientWidth * i.x, a = e.clientHeight * i.y, s = o * i.x, c = r * i.y;
7142
7142
  return {
7143
7143
  width: l,
@@ -7149,11 +7149,11 @@ function dp(e, t) {
7149
7149
  function Yo(e, t, n) {
7150
7150
  let r;
7151
7151
  if (t === "viewport")
7152
- r = cp(e, n);
7152
+ r = up(e, n);
7153
7153
  else if (t === "document")
7154
- r = sp(De(e));
7154
+ r = cp(De(e));
7155
7155
  else if (J(t))
7156
- r = dp(t, n);
7156
+ r = fp(t, n);
7157
7157
  else {
7158
7158
  const o = Yl(e);
7159
7159
  r = {
@@ -7169,7 +7169,7 @@ function Xl(e, t) {
7169
7169
  const n = Je(e);
7170
7170
  return n === t || !J(n) || ht(n) ? !1 : Le(n).position === "fixed" || Xl(n, t);
7171
7171
  }
7172
- function fp(e, t) {
7172
+ function pp(e, t) {
7173
7173
  const n = t.get(e);
7174
7174
  if (n)
7175
7175
  return n;
@@ -7178,18 +7178,18 @@ function fp(e, t) {
7178
7178
  let l = i ? Je(e) : e;
7179
7179
  for (; J(l) && !ht(l); ) {
7180
7180
  const a = Le(l), s = eo(l);
7181
- !s && a.position === "fixed" && (o = null), (i ? !s && !o : !s && a.position === "static" && !!o && up.has(o.position) || zt(l) && !s && Xl(e, l)) ? r = r.filter((u) => u !== l) : o = a, l = Je(l);
7181
+ !s && a.position === "fixed" && (o = null), (i ? !s && !o : !s && a.position === "static" && !!o && dp.has(o.position) || zt(l) && !s && Xl(e, l)) ? r = r.filter((u) => u !== l) : o = a, l = Je(l);
7182
7182
  }
7183
7183
  return t.set(e, r), r;
7184
7184
  }
7185
- function pp(e) {
7185
+ function mp(e) {
7186
7186
  let {
7187
7187
  element: t,
7188
7188
  boundary: n,
7189
7189
  rootBoundary: r,
7190
7190
  strategy: o
7191
7191
  } = e;
7192
- const l = [...n === "clippingAncestors" ? Pn(t) ? [] : fp(t, this._c) : [].concat(n), r], a = l[0], s = l.reduce((c, u) => {
7192
+ const l = [...n === "clippingAncestors" ? Pn(t) ? [] : pp(t, this._c) : [].concat(n), r], a = l[0], s = l.reduce((c, u) => {
7193
7193
  const f = Yo(t, u, o);
7194
7194
  return c.top = fe(f.top, c.top), c.right = it(f.right, c.right), c.bottom = it(f.bottom, c.bottom), c.left = fe(f.left, c.left), c;
7195
7195
  }, Yo(t, a, o));
@@ -7200,7 +7200,7 @@ function pp(e) {
7200
7200
  y: s.top
7201
7201
  };
7202
7202
  }
7203
- function mp(e) {
7203
+ function hp(e) {
7204
7204
  const {
7205
7205
  width: t,
7206
7206
  height: n
@@ -7210,7 +7210,7 @@ function mp(e) {
7210
7210
  height: n
7211
7211
  };
7212
7212
  }
7213
- function hp(e, t, n) {
7213
+ function gp(e, t, n) {
7214
7214
  const r = Te(t), o = De(t), i = n === "fixed", l = lt(e, !0, i, t);
7215
7215
  let a = {
7216
7216
  scrollLeft: 0,
@@ -7259,14 +7259,14 @@ function Jl(e, t) {
7259
7259
  return n;
7260
7260
  }
7261
7261
  let r = Zo(e, t);
7262
- for (; r && Af(r) && tr(r); )
7262
+ for (; r && Mf(r) && tr(r); )
7263
7263
  r = Zo(r, t);
7264
- return r && ht(r) && tr(r) && !eo(r) ? n : r || Df(e) || n;
7264
+ return r && ht(r) && tr(r) && !eo(r) ? n : r || _f(e) || n;
7265
7265
  }
7266
- const gp = async function(e) {
7266
+ const vp = async function(e) {
7267
7267
  const t = this.getOffsetParent || Jl, n = this.getDimensions, r = await n(e.floating);
7268
7268
  return {
7269
- reference: hp(e.reference, await t(e.floating), e.strategy),
7269
+ reference: gp(e.reference, await t(e.floating), e.strategy),
7270
7270
  floating: {
7271
7271
  x: 0,
7272
7272
  y: 0,
@@ -7275,25 +7275,25 @@ const gp = async function(e) {
7275
7275
  }
7276
7276
  };
7277
7277
  };
7278
- function vp(e) {
7278
+ function bp(e) {
7279
7279
  return Le(e).direction === "rtl";
7280
7280
  }
7281
- const bp = {
7282
- convertOffsetParentRelativeRectToViewportRelativeRect: lp,
7281
+ const wp = {
7282
+ convertOffsetParentRelativeRectToViewportRelativeRect: ap,
7283
7283
  getDocumentElement: De,
7284
- getClippingRect: pp,
7284
+ getClippingRect: mp,
7285
7285
  getOffsetParent: Jl,
7286
- getElementRects: gp,
7287
- getClientRects: ap,
7288
- getDimensions: mp,
7286
+ getElementRects: vp,
7287
+ getClientRects: sp,
7288
+ getDimensions: hp,
7289
7289
  getScale: ft,
7290
7290
  isElement: J,
7291
- isRTL: vp
7291
+ isRTL: bp
7292
7292
  };
7293
7293
  function Ql(e, t) {
7294
7294
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
7295
7295
  }
7296
- function wp(e, t) {
7296
+ function yp(e, t) {
7297
7297
  let n = null, r;
7298
7298
  const o = De(e);
7299
7299
  function i() {
@@ -7339,7 +7339,7 @@ function wp(e, t) {
7339
7339
  }
7340
7340
  return l(!0), i;
7341
7341
  }
7342
- function yp(e, t, n, r) {
7342
+ function xp(e, t, n, r) {
7343
7343
  r === void 0 && (r = {});
7344
7344
  const {
7345
7345
  ancestorScroll: o = !0,
@@ -7353,7 +7353,7 @@ function yp(e, t, n, r) {
7353
7353
  passive: !0
7354
7354
  }), i && b.addEventListener("resize", n);
7355
7355
  });
7356
- const f = c && a ? wp(c, n) : null;
7356
+ const f = c && a ? yp(c, n) : null;
7357
7357
  let m = -1, d = null;
7358
7358
  l && (d = new ResizeObserver((b) => {
7359
7359
  let [y] = b;
@@ -7375,21 +7375,21 @@ function yp(e, t, n, r) {
7375
7375
  }), f?.(), (b = d) == null || b.disconnect(), d = null, s && cancelAnimationFrame(h);
7376
7376
  };
7377
7377
  }
7378
- const nr = An, xp = tp, Ep = np, $p = Jf, Rp = rp, Sp = (e, t, n) => {
7378
+ const nr = An, Ep = np, $p = rp, Rp = Qf, Sp = op, Cp = (e, t, n) => {
7379
7379
  const r = /* @__PURE__ */ new Map(), o = {
7380
- platform: bp,
7380
+ platform: wp,
7381
7381
  ...n
7382
7382
  }, i = {
7383
7383
  ...o.platform,
7384
7384
  _c: r
7385
7385
  };
7386
- return Xf(e, t, {
7386
+ return Jf(e, t, {
7387
7387
  ...o,
7388
7388
  platform: i
7389
7389
  });
7390
7390
  };
7391
- var Cp = typeof document < "u", kp = function() {
7392
- }, un = Cp ? Bt : kp;
7391
+ var kp = typeof document < "u", Tp = function() {
7392
+ }, un = kp ? Bt : Tp;
7393
7393
  function xn(e, t) {
7394
7394
  if (e === t)
7395
7395
  return !0;
@@ -7468,7 +7468,7 @@ function ta(e) {
7468
7468
  strategy: n,
7469
7469
  middleware: m
7470
7470
  };
7471
- _.current && (x.platform = _.current), Sp(k.current, T.current, x).then((F) => {
7471
+ _.current && (x.platform = _.current), Cp(k.current, T.current, x).then((F) => {
7472
7472
  const q = {
7473
7473
  ...F,
7474
7474
  // The floating element's position may be recomputed while it's closed
@@ -7536,26 +7536,26 @@ function ta(e) {
7536
7536
  }), [u, z, I, j, A]);
7537
7537
  }
7538
7538
  const ro = (e, t) => ({
7539
- ...xp(e),
7540
- options: [e, t]
7541
- }), na = (e, t) => ({
7542
7539
  ...Ep(e),
7543
7540
  options: [e, t]
7544
- }), Tp = (e, t) => ({
7541
+ }), na = (e, t) => ({
7545
7542
  ...$p(e),
7546
7543
  options: [e, t]
7547
7544
  }), Op = (e, t) => ({
7548
7545
  ...Rp(e),
7549
7546
  options: [e, t]
7547
+ }), Pp = (e, t) => ({
7548
+ ...Sp(e),
7549
+ options: [e, t]
7550
7550
  }), ra = {
7551
7551
  ...p
7552
- }, Pp = ra.useInsertionEffect, Lp = Pp || ((e) => e());
7552
+ }, Lp = ra.useInsertionEffect, Ap = Lp || ((e) => e());
7553
7553
  function oa(e) {
7554
7554
  const t = p.useRef(() => {
7555
7555
  if (process.env.NODE_ENV !== "production")
7556
7556
  throw new Error("Cannot call an event handler while rendering.");
7557
7557
  });
7558
- return Lp(() => {
7558
+ return Ap(() => {
7559
7559
  t.current = e;
7560
7560
  }), p.useCallback(function() {
7561
7561
  for (var n = arguments.length, r = new Array(n), o = 0; o < n; o++)
@@ -7564,13 +7564,13 @@ function oa(e) {
7564
7564
  }, []);
7565
7565
  }
7566
7566
  var Tr = typeof document < "u" ? Bt : ie;
7567
- let Jo = !1, Ap = 0;
7567
+ let Jo = !1, Mp = 0;
7568
7568
  const Qo = () => (
7569
7569
  // Ensure the id is unique with multiple independent versions of Floating UI
7570
7570
  // on <React 18
7571
- "floating-ui-" + Math.random().toString(36).slice(2, 6) + Ap++
7571
+ "floating-ui-" + Math.random().toString(36).slice(2, 6) + Mp++
7572
7572
  );
7573
- function Mp() {
7573
+ function Fp() {
7574
7574
  const [e, t] = p.useState(() => Jo ? Qo() : void 0);
7575
7575
  return Tr(() => {
7576
7576
  e == null && t(Qo());
@@ -7578,10 +7578,10 @@ function Mp() {
7578
7578
  Jo = !0;
7579
7579
  }, []), e;
7580
7580
  }
7581
- const Fp = ra.useId, Np = Fp || Mp;
7581
+ const Np = ra.useId, Ip = Np || Fp;
7582
7582
  let _t;
7583
7583
  process.env.NODE_ENV !== "production" && (_t = /* @__PURE__ */ new Set());
7584
- function Ip() {
7584
+ function Dp() {
7585
7585
  for (var e, t = arguments.length, n = new Array(t), r = 0; r < t; r++)
7586
7586
  n[r] = arguments[r];
7587
7587
  const o = "Floating UI: " + n.join(" ");
@@ -7590,7 +7590,7 @@ function Ip() {
7590
7590
  (i = _t) == null || i.add(o), console.warn(o);
7591
7591
  }
7592
7592
  }
7593
- function Dp() {
7593
+ function _p() {
7594
7594
  for (var e, t = arguments.length, n = new Array(t), r = 0; r < t; r++)
7595
7595
  n[r] = arguments[r];
7596
7596
  const o = "Floating UI: " + n.join(" ");
@@ -7599,7 +7599,7 @@ function Dp() {
7599
7599
  (i = _t) == null || i.add(o), console.error(o);
7600
7600
  }
7601
7601
  }
7602
- function _p() {
7602
+ function Bp() {
7603
7603
  const e = /* @__PURE__ */ new Map();
7604
7604
  return {
7605
7605
  emit(t, n) {
@@ -7615,19 +7615,19 @@ function _p() {
7615
7615
  }
7616
7616
  };
7617
7617
  }
7618
- const Bp = /* @__PURE__ */ p.createContext(null), Hp = /* @__PURE__ */ p.createContext(null), jp = () => {
7618
+ const Hp = /* @__PURE__ */ p.createContext(null), jp = /* @__PURE__ */ p.createContext(null), Vp = () => {
7619
7619
  var e;
7620
- return ((e = p.useContext(Bp)) == null ? void 0 : e.id) || null;
7621
- }, Vp = () => p.useContext(Hp), Wp = "data-floating-ui-focusable";
7622
- function zp(e) {
7620
+ return ((e = p.useContext(Hp)) == null ? void 0 : e.id) || null;
7621
+ }, Wp = () => p.useContext(jp), zp = "data-floating-ui-focusable";
7622
+ function Up(e) {
7623
7623
  const {
7624
7624
  open: t = !1,
7625
7625
  onOpenChange: n,
7626
7626
  elements: r
7627
- } = e, o = Np(), i = p.useRef({}), [l] = p.useState(() => _p()), a = jp() != null;
7627
+ } = e, o = Ip(), i = p.useRef({}), [l] = p.useState(() => Bp()), a = Vp() != null;
7628
7628
  if (process.env.NODE_ENV !== "production") {
7629
7629
  const d = r.reference;
7630
- d && !J(d) && Dp("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
7630
+ d && !J(d) && _p("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
7631
7631
  }
7632
7632
  const [s, c] = p.useState(r.reference), u = oa((d, h, g) => {
7633
7633
  i.current.openEvent = d ? h : void 0, l.emit("openchange", {
@@ -7653,18 +7653,18 @@ function zp(e) {
7653
7653
  refs: f
7654
7654
  }), [t, u, m, l, o, f]);
7655
7655
  }
7656
- function Up(e) {
7656
+ function Gp(e) {
7657
7657
  e === void 0 && (e = {});
7658
7658
  const {
7659
7659
  nodeId: t
7660
- } = e, n = zp({
7660
+ } = e, n = Up({
7661
7661
  ...e,
7662
7662
  elements: {
7663
7663
  reference: null,
7664
7664
  floating: null,
7665
7665
  ...e.elements
7666
7666
  }
7667
- }), r = e.rootContext || n, o = r.elements, [i, l] = p.useState(null), [a, s] = p.useState(null), u = o?.domReference || i, f = p.useRef(null), m = Vp();
7667
+ }), r = e.rootContext || n, o = r.elements, [i, l] = p.useState(null), [a, s] = p.useState(null), u = o?.domReference || i, f = p.useRef(null), m = Wp();
7668
7668
  Tr(() => {
7669
7669
  u && (f.current = u);
7670
7670
  }, [u]);
@@ -7728,7 +7728,7 @@ function or(e, t, n) {
7728
7728
  return {
7729
7729
  ...n === "floating" && {
7730
7730
  tabIndex: -1,
7731
- [Wp]: ""
7731
+ [zp]: ""
7732
7732
  },
7733
7733
  ...i,
7734
7734
  ...t.map((l) => {
@@ -7751,7 +7751,7 @@ function or(e, t, n) {
7751
7751
  }), l), {})
7752
7752
  };
7753
7753
  }
7754
- function Gp(e) {
7754
+ function qp(e) {
7755
7755
  e === void 0 && (e = []);
7756
7756
  const t = e.map((a) => a?.reference), n = e.map((a) => a?.floating), r = e.map((a) => a?.item), o = p.useCallback(
7757
7757
  (a) => or(a, e, "reference"),
@@ -7784,7 +7784,7 @@ function ni(e, t) {
7784
7784
  }
7785
7785
  };
7786
7786
  }
7787
- const qp = (e) => ({
7787
+ const Kp = (e) => ({
7788
7788
  name: "inner",
7789
7789
  options: e,
7790
7790
  async fn(t) {
@@ -7804,7 +7804,7 @@ const qp = (e) => ({
7804
7804
  floating: m
7805
7805
  }
7806
7806
  } = t, d = n.current[l], h = c?.current || m, g = m.clientTop || h.clientTop, v = m.clientTop !== 0, b = h.clientTop !== 0, y = m === h;
7807
- if (process.env.NODE_ENV !== "production" && (t.placement.startsWith("bottom") || Ip('`placement` side must be "bottom" when using the `inner`', "middleware.")), !d)
7807
+ if (process.env.NODE_ENV !== "production" && (t.placement.startsWith("bottom") || Dp('`placement` side must be "bottom" when using the `inner`', "middleware.")), !d)
7808
7808
  return {};
7809
7809
  const w = {
7810
7810
  ...t,
@@ -7825,7 +7825,7 @@ const qp = (e) => ({
7825
7825
  };
7826
7826
  }
7827
7827
  });
7828
- function Kp(e, t) {
7828
+ function Yp(e, t) {
7829
7829
  const {
7830
7830
  open: n,
7831
7831
  elements: r
@@ -7843,7 +7843,7 @@ function Kp(e, t) {
7843
7843
  const v = g.deltaY, b = i.current.top >= -0.5, y = i.current.bottom >= -0.5, w = h.scrollHeight - h.clientHeight, $ = v < 0 ? -1 : 1, E = v < 0 ? "max" : "min";
7844
7844
  h.scrollHeight <= h.clientHeight || (!b && v > 0 || !y && v < 0 ? (g.preventDefault(), pn.flushSync(() => {
7845
7845
  s((k) => k + Math[E](v, w * $));
7846
- })) : /firefox/i.test(Bf()) && (h.scrollTop += v));
7846
+ })) : /firefox/i.test(Hf()) && (h.scrollTop += v));
7847
7847
  }
7848
7848
  const h = l?.current || r.floating;
7849
7849
  if (n && h)
@@ -7888,20 +7888,20 @@ let Rt = re({ styles: void 0, setReference: () => {
7888
7888
  Rt.displayName = "FloatingContext";
7889
7889
  let oo = re(null);
7890
7890
  oo.displayName = "PlacementContext";
7891
- function Yp(e) {
7891
+ function Zp(e) {
7892
7892
  return ce(() => e ? typeof e == "string" ? { to: e } : e : null, [e]);
7893
7893
  }
7894
- function Zp() {
7894
+ function Xp() {
7895
7895
  return X(Rt).setReference;
7896
7896
  }
7897
- function Xp() {
7897
+ function Jp() {
7898
7898
  return X(Rt).getReferenceProps;
7899
7899
  }
7900
- function Jp() {
7900
+ function Qp() {
7901
7901
  let { getFloatingProps: e, slot: t } = X(Rt);
7902
7902
  return Z((...n) => Object.assign({}, e(...n), { "data-anchor": t.anchor }), [e, t]);
7903
7903
  }
7904
- function Qp(e = null) {
7904
+ function em(e = null) {
7905
7905
  e === !1 && (e = null), typeof e == "string" && (e = { to: e });
7906
7906
  let t = X(oo), n = ce(() => e, [JSON.stringify(e, (o, i) => {
7907
7907
  var l;
@@ -7914,14 +7914,14 @@ function Qp(e = null) {
7914
7914
  return ce(() => [r.setFloating, e ? r.styles : {}], [r.setFloating, e, r.styles]);
7915
7915
  }
7916
7916
  let ri = 4;
7917
- function em({ children: e, enabled: t = !0 }) {
7917
+ function tm({ children: e, enabled: t = !0 }) {
7918
7918
  let [n, r] = Q(null), [o, i] = Q(0), l = V(null), [a, s] = Q(null);
7919
- tm(a);
7920
- let c = t && n !== null && a !== null, { to: u = "bottom", gap: f = 0, offset: m = 0, padding: d = 0, inner: h } = nm(n, a), [g, v = "center"] = u.split(" ");
7919
+ nm(a);
7920
+ let c = t && n !== null && a !== null, { to: u = "bottom", gap: f = 0, offset: m = 0, padding: d = 0, inner: h } = rm(n, a), [g, v = "center"] = u.split(" ");
7921
7921
  oe(() => {
7922
7922
  c && i(0);
7923
7923
  }, [c]);
7924
- let { refs: b, floatingStyles: y, context: w } = Up({ open: c, placement: g === "selection" ? v === "center" ? "bottom" : `bottom-${v}` : v === "center" ? `${g}` : `${g}-${v}`, strategy: "absolute", transform: !1, middleware: [ro({ mainAxis: g === "selection" ? 0 : f, crossAxis: m }), na({ padding: d }), g !== "selection" && Tp({ padding: d }), g === "selection" && h ? qp({ ...h, padding: d, overflowRef: l, offset: o, minItemsVisible: ri, referenceOverflowThreshold: d, onFallbackChange(_) {
7924
+ let { refs: b, floatingStyles: y, context: w } = Gp({ open: c, placement: g === "selection" ? v === "center" ? "bottom" : `bottom-${v}` : v === "center" ? `${g}` : `${g}-${v}`, strategy: "absolute", transform: !1, middleware: [ro({ mainAxis: g === "selection" ? 0 : f, crossAxis: m }), na({ padding: d }), g !== "selection" && Op({ padding: d }), g === "selection" && h ? Kp({ ...h, padding: d, overflowRef: l, offset: o, minItemsVisible: ri, referenceOverflowThreshold: d, onFallbackChange(_) {
7925
7925
  var W, z;
7926
7926
  if (!_) return;
7927
7927
  let B = w.elements.floating;
@@ -7939,16 +7939,16 @@ function em({ children: e, enabled: t = !0 }) {
7939
7939
  let q = A * j - x + I;
7940
7940
  return F >= q ? F : q;
7941
7941
  });
7942
- } }) : null, Op({ padding: d, apply({ availableWidth: _, availableHeight: W, elements: z }) {
7942
+ } }) : null, Pp({ padding: d, apply({ availableWidth: _, availableHeight: W, elements: z }) {
7943
7943
  Object.assign(z.floating.style, { overflow: "auto", maxWidth: `${_}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${W}px)` });
7944
- } })].filter(Boolean), whileElementsMounted: yp }), [$ = g, E = v] = w.placement.split("-");
7944
+ } })].filter(Boolean), whileElementsMounted: xp }), [$ = g, E = v] = w.placement.split("-");
7945
7945
  g === "selection" && ($ = "selection");
7946
- let k = ce(() => ({ anchor: [$, E].filter(Boolean).join(" ") }), [$, E]), T = Kp(w, { overflowRef: l, onChange: i }), { getReferenceProps: S, getFloatingProps: L } = Gp([T]), C = G((_) => {
7946
+ let k = ce(() => ({ anchor: [$, E].filter(Boolean).join(" ") }), [$, E]), T = Yp(w, { overflowRef: l, onChange: i }), { getReferenceProps: S, getFloatingProps: L } = qp([T]), C = G((_) => {
7947
7947
  s(_), b.setFloating(_);
7948
7948
  });
7949
7949
  return p.createElement(oo.Provider, { value: r }, p.createElement(Rt.Provider, { value: { setFloating: C, setReference: b.setReference, styles: y, getReferenceProps: S, getFloatingProps: L, slot: k } }, e));
7950
7950
  }
7951
- function tm(e) {
7951
+ function nm(e) {
7952
7952
  oe(() => {
7953
7953
  if (!e) return;
7954
7954
  let t = new MutationObserver(() => {
@@ -7962,7 +7962,7 @@ function tm(e) {
7962
7962
  };
7963
7963
  }, [e]);
7964
7964
  }
7965
- function nm(e, t) {
7965
+ function rm(e, t) {
7966
7966
  var n, r, o;
7967
7967
  let i = ir((n = e?.gap) != null ? n : "var(--anchor-gap, 0)", t), l = ir((r = e?.offset) != null ? r : "var(--anchor-offset, 0)", t), a = ir((o = e?.padding) != null ? o : "var(--anchor-padding, 0)", t);
7968
7968
  return { ...e, gap: i, offset: l, padding: a };
@@ -8019,11 +8019,11 @@ function oi(e, t) {
8019
8019
  let r = parseFloat(window.getComputedStyle(n).marginTop) || 0;
8020
8020
  return t.removeChild(n), r;
8021
8021
  }
8022
- function rm({ children: e, freeze: t }, n) {
8022
+ function om({ children: e, freeze: t }, n) {
8023
8023
  let r = la(t, e);
8024
8024
  return Fr(r) ? vi(r, { ref: n }) : M.createElement(M.Fragment, null, r);
8025
8025
  }
8026
- M.forwardRef(rm);
8026
+ M.forwardRef(om);
8027
8027
  function la(e, t) {
8028
8028
  let [n, r] = Q(t);
8029
8029
  return !e && n !== t && r(t), e ? n : t;
@@ -8037,10 +8037,10 @@ function Nn() {
8037
8037
  function io({ value: e, children: t }) {
8038
8038
  return M.createElement(Fn.Provider, { value: e }, t);
8039
8039
  }
8040
- function om({ children: e }) {
8040
+ function im({ children: e }) {
8041
8041
  return M.createElement(Fn.Provider, { value: null }, e);
8042
8042
  }
8043
- function im(e) {
8043
+ function lm(e) {
8044
8044
  throw new Error("Unexpected object: " + e);
8045
8045
  }
8046
8046
  var ne = ((e) => (e[e.First = 0] = "First", e[e.Previous = 1] = "Previous", e[e.Next = 2] = "Next", e[e.Last = 3] = "Last", e[e.Specific = 4] = "Specific", e[e.Nothing = 5] = "Nothing", e))(ne || {});
@@ -8073,7 +8073,7 @@ function on(e, t) {
8073
8073
  case 5:
8074
8074
  return null;
8075
8075
  default:
8076
- im(e);
8076
+ lm(e);
8077
8077
  }
8078
8078
  }
8079
8079
  function aa(e) {
@@ -8084,12 +8084,12 @@ function aa(e) {
8084
8084
  });
8085
8085
  }), [t]);
8086
8086
  }
8087
- let lm = re(!1);
8088
- function am() {
8089
- return X(lm);
8087
+ let am = re(!1);
8088
+ function sm() {
8089
+ return X(am);
8090
8090
  }
8091
- function sm(e) {
8092
- let t = am(), n = X(ca), [r, o] = Q(() => {
8091
+ function cm(e) {
8092
+ let t = sm(), n = X(ca), [r, o] = Q(() => {
8093
8093
  var i;
8094
8094
  if (!t && n !== null) return (i = n.current) != null ? i : null;
8095
8095
  if (Fe.isServer) return null;
@@ -8105,10 +8105,10 @@ function sm(e) {
8105
8105
  t || n !== null && o(n.current);
8106
8106
  }, [n, o, t]), r;
8107
8107
  }
8108
- let sa = Ie, cm = ue(function(e, t) {
8108
+ let sa = Ie, um = ue(function(e, t) {
8109
8109
  let { ownerDocument: n = null, ...r } = e, o = V(null), i = be(Cl((m) => {
8110
8110
  o.current = m;
8111
- }), t), l = Rr(o.current), a = n ?? l, s = sm(a), c = X(pm), u = at(), f = de();
8111
+ }), t), l = Rr(o.current), a = n ?? l, s = cm(a), c = X(mm), u = at(), f = de();
8112
8112
  return aa(() => {
8113
8113
  var m;
8114
8114
  s && s.childNodes.length <= 0 && ((m = s.parentElement) == null || m.removeChild(s));
@@ -8116,22 +8116,22 @@ let sa = Ie, cm = ue(function(e, t) {
8116
8116
  u.dispose(), c && m && u.add(c.register(m));
8117
8117
  } }, f({ ourProps: { ref: i }, theirProps: r, slot: {}, defaultTag: sa, name: "Portal" })), s) : null;
8118
8118
  });
8119
- function um(e, t) {
8119
+ function dm(e, t) {
8120
8120
  let n = be(t), { enabled: r = !0, ownerDocument: o, ...i } = e, l = de();
8121
- return r ? M.createElement(cm, { ...i, ownerDocument: o, ref: n }) : l({ ourProps: { ref: n }, theirProps: i, slot: {}, defaultTag: sa, name: "Portal" });
8121
+ return r ? M.createElement(um, { ...i, ownerDocument: o, ref: n }) : l({ ourProps: { ref: n }, theirProps: i, slot: {}, defaultTag: sa, name: "Portal" });
8122
8122
  }
8123
- let dm = Ie, ca = re(null);
8124
- function fm(e, t) {
8123
+ let fm = Ie, ca = re(null);
8124
+ function pm(e, t) {
8125
8125
  let { target: n, ...r } = e, o = { ref: be(t) }, i = de();
8126
- return M.createElement(ca.Provider, { value: n }, i({ ourProps: o, theirProps: r, defaultTag: dm, name: "Popover.Group" }));
8126
+ return M.createElement(ca.Provider, { value: n }, i({ ourProps: o, theirProps: r, defaultTag: fm, name: "Popover.Group" }));
8127
8127
  }
8128
- let pm = re(null), mm = ue(um), hm = ue(fm), gm = Object.assign(mm, { Group: hm });
8128
+ let mm = re(null), hm = ue(dm), gm = ue(pm), vm = Object.assign(hm, { Group: gm });
8129
8129
  const dn = { Idle: { kind: "Idle" }, Tracked: (e) => ({ kind: "Tracked", position: e }), Moved: { kind: "Moved" } };
8130
8130
  function ua(e) {
8131
8131
  let t = e.getBoundingClientRect();
8132
8132
  return `${t.x},${t.y}`;
8133
8133
  }
8134
- function vm(e, t, n) {
8134
+ function bm(e, t, n) {
8135
8135
  let r = Ee();
8136
8136
  if (t.kind === "Tracked") {
8137
8137
  let o = function() {
@@ -8141,18 +8141,18 @@ function vm(e, t, n) {
8141
8141
  }
8142
8142
  return () => r.dispose();
8143
8143
  }
8144
- function bm() {
8144
+ function wm() {
8145
8145
  let e = typeof document > "u";
8146
8146
  return "useSyncExternalStore" in p ? ((t) => t.useSyncExternalStore)(p)(() => () => {
8147
8147
  }, () => !1, () => !e) : !1;
8148
8148
  }
8149
8149
  function da() {
8150
- let e = bm(), [t, n] = p.useState(Fe.isHandoffComplete);
8150
+ let e = wm(), [t, n] = p.useState(Fe.isHandoffComplete);
8151
8151
  return t && Fe.isHandoffComplete === !1 && n(!1), p.useEffect(() => {
8152
8152
  t !== !0 && n(!0);
8153
8153
  }, [t]), p.useEffect(() => Fe.handoff(), []), e ? !1 : t;
8154
8154
  }
8155
- function wm() {
8155
+ function ym() {
8156
8156
  let e = V(!1);
8157
8157
  return oe(() => (e.current = !0, () => {
8158
8158
  e.current = !1;
@@ -8164,13 +8164,13 @@ function fa(e) {
8164
8164
  }
8165
8165
  let In = re(null);
8166
8166
  In.displayName = "TransitionContext";
8167
- var ym = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(ym || {});
8168
- function xm() {
8167
+ var xm = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(xm || {});
8168
+ function Em() {
8169
8169
  let e = X(In);
8170
8170
  if (e === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
8171
8171
  return e;
8172
8172
  }
8173
- function Em() {
8173
+ function $m() {
8174
8174
  let e = X(Dn);
8175
8175
  if (e === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
8176
8176
  return e;
@@ -8181,7 +8181,7 @@ function _n(e) {
8181
8181
  return "children" in e ? _n(e.children) : e.current.filter(({ el: t }) => t.current !== null).filter(({ state: t }) => t === "visible").length > 0;
8182
8182
  }
8183
8183
  function pa(e, t) {
8184
- let n = st(e), r = V([]), o = wm(), i = at(), l = G((d, h = Ye.Hidden) => {
8184
+ let n = st(e), r = V([]), o = ym(), i = at(), l = G((d, h = Ye.Hidden) => {
8185
8185
  let g = r.current.findIndex(({ el: v }) => v === d);
8186
8186
  g !== -1 && (ve(h, { [Ye.Unmount]() {
8187
8187
  r.current.splice(g, 1);
@@ -8209,9 +8209,9 @@ function pa(e, t) {
8209
8209
  return ce(() => ({ children: r, register: a, unregister: l, onStart: f, onStop: m, wait: c, chains: u }), [a, l, r, f, m, u, c]);
8210
8210
  }
8211
8211
  let ma = Ie, ha = mt.RenderStrategy;
8212
- function $m(e, t) {
8212
+ function Rm(e, t) {
8213
8213
  var n, r;
8214
- let { transition: o = !0, beforeEnter: i, afterEnter: l, beforeLeave: a, afterLeave: s, enter: c, enterFrom: u, enterTo: f, entered: m, leave: d, leaveFrom: h, leaveTo: g, ...v } = e, [b, y] = Q(null), w = V(null), $ = fa(e), E = be(...$ ? [w, t, y] : t === null ? [] : [t]), k = (n = v.unmount) == null || n ? Ye.Unmount : Ye.Hidden, { show: T, appear: S, initial: L } = xm(), [C, _] = Q(T ? "visible" : "hidden"), W = Em(), { register: z, unregister: B } = W;
8214
+ let { transition: o = !0, beforeEnter: i, afterEnter: l, beforeLeave: a, afterLeave: s, enter: c, enterFrom: u, enterTo: f, entered: m, leave: d, leaveFrom: h, leaveTo: g, ...v } = e, [b, y] = Q(null), w = V(null), $ = fa(e), E = be(...$ ? [w, t, y] : t === null ? [] : [t]), k = (n = v.unmount) == null || n ? Ye.Unmount : Ye.Hidden, { show: T, appear: S, initial: L } = Em(), [C, _] = Q(T ? "visible" : "hidden"), W = $m(), { register: z, unregister: B } = W;
8215
8215
  oe(() => z(w), [z, w]), oe(() => {
8216
8216
  if (k === Ye.Hidden && w.current) {
8217
8217
  if (T && C !== "visible") {
@@ -8242,12 +8242,12 @@ function $m(e, t) {
8242
8242
  ie(() => {
8243
8243
  $ && o || (q(T), ae(T));
8244
8244
  }, [T, $, o]);
8245
- let D = !(!o || !$ || !I || j), [, N] = Qr(D, b, T, { start: q, end: ae }), se = Ke({ ref: E, className: ((r = wr(v.className, A && c, A && u, N.enter && c, N.enter && N.closed && u, N.enter && !N.closed && f, N.leave && d, N.leave && !N.closed && h, N.leave && N.closed && g, !N.transition && T && m)) == null ? void 0 : r.trim()) || void 0, ...Jr(N) }), me = 0;
8246
- C === "visible" && (me |= ge.Open), C === "hidden" && (me |= ge.Closed), T && C === "hidden" && (me |= ge.Opening), !T && C === "visible" && (me |= ge.Closing);
8245
+ let D = !(!o || !$ || !I || j), [, N] = Qr(D, b, T, { start: q, end: ae }), se = Ke({ ref: E, className: ((r = wr(v.className, A && c, A && u, N.enter && c, N.enter && N.closed && u, N.enter && !N.closed && f, N.leave && d, N.leave && !N.closed && h, N.leave && N.closed && g, !N.transition && T && m)) == null ? void 0 : r.trim()) || void 0, ...Jr(N) }), he = 0;
8246
+ C === "visible" && (he |= ge.Open), C === "hidden" && (he |= ge.Closed), T && C === "hidden" && (he |= ge.Opening), !T && C === "visible" && (he |= ge.Closing);
8247
8247
  let H = de();
8248
- return M.createElement(Dn.Provider, { value: F }, M.createElement(io, { value: me }, H({ ourProps: se, theirProps: v, defaultTag: ma, features: ha, visible: C === "visible", name: "Transition.Child" })));
8248
+ return M.createElement(Dn.Provider, { value: F }, M.createElement(io, { value: he }, H({ ourProps: se, theirProps: v, defaultTag: ma, features: ha, visible: C === "visible", name: "Transition.Child" })));
8249
8249
  }
8250
- function Rm(e, t) {
8250
+ function Sm(e, t) {
8251
8251
  let { show: n, appear: r = !1, unmount: o = !0, ...i } = e, l = V(null), a = fa(e), s = be(...a ? [l, t] : t === null ? [] : [t]);
8252
8252
  da();
8253
8253
  let c = Nn();
@@ -8271,17 +8271,17 @@ function Rm(e, t) {
8271
8271
  }), $ = de();
8272
8272
  return M.createElement(Dn.Provider, { value: m }, M.createElement(In.Provider, { value: v }, $({ ourProps: { ...b, as: Ie, children: M.createElement(ga, { ref: s, ...b, ...i, beforeEnter: y, beforeLeave: w }) }, theirProps: {}, defaultTag: Ie, features: ha, visible: u === "visible", name: "Transition" })));
8273
8273
  }
8274
- function Sm(e, t) {
8274
+ function Cm(e, t) {
8275
8275
  let n = X(In) !== null, r = Nn() !== null;
8276
8276
  return M.createElement(M.Fragment, null, !n && r ? M.createElement(Or, { ref: t, ...e }) : M.createElement(ga, { ref: t, ...e }));
8277
8277
  }
8278
- let Or = ue(Rm), ga = ue($m), Cm = ue(Sm), km = Object.assign(Or, { Child: Cm, Root: Or });
8278
+ let Or = ue(Sm), ga = ue(Rm), km = ue(Cm), Tm = Object.assign(Or, { Child: km, Root: Or });
8279
8279
  var ii;
8280
- let Tm = (ii = M.startTransition) != null ? ii : function(e) {
8280
+ let Om = (ii = M.startTransition) != null ? ii : function(e) {
8281
8281
  e();
8282
8282
  };
8283
- var Om = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Om || {}), Pm = ((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))(Pm || {});
8284
- let Lm = { 0: (e) => ({ ...e, disclosureState: ve(e.disclosureState, { 0: 1, 1: 0 }) }), 1: (e) => e.disclosureState === 1 ? e : { ...e, disclosureState: 1 }, 2(e, t) {
8283
+ var Pm = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Pm || {}), Lm = ((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))(Lm || {});
8284
+ let Am = { 0: (e) => ({ ...e, disclosureState: ve(e.disclosureState, { 0: 1, 1: 0 }) }), 1: (e) => e.disclosureState === 1 ? e : { ...e, disclosureState: 1 }, 2(e, t) {
8285
8285
  return e.buttonId === t.buttonId ? e : { ...e, buttonId: t.buttonId };
8286
8286
  }, 3(e, t) {
8287
8287
  return e.panelId === t.panelId ? e : { ...e, panelId: t.panelId };
@@ -8311,28 +8311,28 @@ function va(e) {
8311
8311
  }
8312
8312
  let co = re(null);
8313
8313
  co.displayName = "DisclosurePanelContext";
8314
- function Am() {
8314
+ function Mm() {
8315
8315
  return X(co);
8316
8316
  }
8317
- function Mm(e, t) {
8318
- return ve(t.type, Lm, e, t);
8317
+ function Fm(e, t) {
8318
+ return ve(t.type, Am, e, t);
8319
8319
  }
8320
- let Fm = Ie;
8321
- function Nm(e, t) {
8320
+ let Nm = Ie;
8321
+ function Im(e, t) {
8322
8322
  let { defaultOpen: n = !1, ...r } = e, o = V(null), i = be(t, Cl((g) => {
8323
8323
  o.current = g;
8324
- }, e.as === void 0 || dt(e.as))), l = _a(Mm, { disclosureState: n ? 0 : 1, buttonElement: null, panelElement: null, buttonId: null, panelId: null }), [{ disclosureState: a, buttonId: s }, c] = l, u = G((g) => {
8324
+ }, e.as === void 0 || dt(e.as))), l = _a(Fm, { disclosureState: n ? 0 : 1, buttonElement: null, panelElement: null, buttonId: null, panelId: null }), [{ disclosureState: a, buttonId: s }, c] = l, u = G((g) => {
8325
8325
  c({ type: 1 });
8326
8326
  let v = Wt(o.current);
8327
8327
  if (!v || !s) return;
8328
8328
  let b = g ? Ze(g) ? g : "current" in g && Ze(g.current) ? g.current : v.getElementById(s) : v.getElementById(s);
8329
8329
  b?.focus();
8330
8330
  }), f = ce(() => ({ close: u }), [u]), m = ke({ open: a === 0, close: u }), d = { ref: i }, h = de();
8331
- return M.createElement(lo.Provider, { value: l }, M.createElement(so.Provider, { value: f }, M.createElement(Nd, { value: u }, M.createElement(io, { value: ve(a, { 0: ge.Open, 1: ge.Closed }) }, h({ ourProps: d, theirProps: r, slot: m, defaultTag: Fm, name: "Disclosure" })))));
8331
+ return M.createElement(lo.Provider, { value: l }, M.createElement(so.Provider, { value: f }, M.createElement(Id, { value: u }, M.createElement(io, { value: ve(a, { 0: ge.Open, 1: ge.Closed }) }, h({ ourProps: d, theirProps: r, slot: m, defaultTag: Nm, name: "Disclosure" })))));
8332
8332
  }
8333
- let Im = "button";
8334
- function Dm(e, t) {
8335
- let n = Ve(), { id: r = `headlessui-disclosure-button-${n}`, disabled: o = !1, autoFocus: i = !1, ...l } = e, [a, s] = ao("Disclosure.Button"), c = Am(), u = c === null ? !1 : c === a.panelId, f = V(null), m = be(f, t, G((L) => {
8333
+ let Dm = "button";
8334
+ function _m(e, t) {
8335
+ let n = Ve(), { id: r = `headlessui-disclosure-button-${n}`, disabled: o = !1, autoFocus: i = !1, ...l } = e, [a, s] = ao("Disclosure.Button"), c = Mm(), u = c === null ? !1 : c === a.panelId, f = V(null), m = be(f, t, G((L) => {
8336
8336
  if (!u) return s({ type: 4, element: L });
8337
8337
  }));
8338
8338
  ie(() => {
@@ -8362,20 +8362,20 @@ function Dm(e, t) {
8362
8362
  var C;
8363
8363
  yr(L.currentTarget) || o || (u ? (s({ type: 0 }), (C = a.buttonElement) == null || C.focus()) : s({ type: 0 }));
8364
8364
  }), { isFocusVisible: v, focusProps: b } = Gr({ autoFocus: i }), { isHovered: y, hoverProps: w } = Ur({ isDisabled: o }), { pressed: $, pressProps: E } = qr({ disabled: o }), k = ke({ open: a.disclosureState === 0, hover: y, active: $, disabled: o, focus: v, autofocus: i }), T = Vl(e, a.buttonElement), S = Nt(u ? { ref: m, type: T, disabled: o || void 0, autoFocus: i, onKeyDown: d, onClick: g } : { ref: m, id: r, type: T, "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);
8365
- return de()({ ourProps: S, theirProps: l, slot: k, defaultTag: Im, name: "Disclosure.Button" });
8365
+ return de()({ ourProps: S, theirProps: l, slot: k, defaultTag: Dm, name: "Disclosure.Button" });
8366
8366
  }
8367
- let _m = "div", Bm = mt.RenderStrategy | mt.Static;
8368
- function Hm(e, t) {
8367
+ let Bm = "div", Hm = mt.RenderStrategy | mt.Static;
8368
+ function jm(e, t) {
8369
8369
  let n = Ve(), { id: r = `headlessui-disclosure-panel-${n}`, transition: o = !1, ...i } = e, [l, a] = ao("Disclosure.Panel"), { close: s } = va("Disclosure.Panel"), [c, u] = Q(null), f = be(t, G((y) => {
8370
- Tm(() => a({ type: 5, element: y }));
8370
+ Om(() => a({ type: 5, element: y }));
8371
8371
  }), u);
8372
8372
  ie(() => (a({ type: 3, panelId: r }), () => {
8373
8373
  a({ type: 3, panelId: null });
8374
8374
  }), [r, a]);
8375
8375
  let m = Nn(), [d, h] = Qr(o, c, m !== null ? (m & ge.Open) === ge.Open : l.disclosureState === 0), g = ke({ open: l.disclosureState === 0, close: s }), v = { ref: f, id: r, ...Jr(h) }, b = de();
8376
- return M.createElement(om, null, M.createElement(co.Provider, { value: l.panelId }, b({ ourProps: v, theirProps: i, slot: g, defaultTag: _m, features: Bm, visible: d, name: "Disclosure.Panel" })));
8376
+ return M.createElement(im, null, M.createElement(co.Provider, { value: l.panelId }, b({ ourProps: v, theirProps: i, slot: g, defaultTag: Bm, features: Hm, visible: d, name: "Disclosure.Panel" })));
8377
8377
  }
8378
- let jm = ue(Nm), ba = ue(Dm), wa = ue(Hm), Vm = Object.assign(jm, { Button: ba, Panel: wa }), li = /([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;
8378
+ let Vm = ue(Im), ba = ue(_m), wa = ue(jm), Wm = Object.assign(Vm, { Button: ba, Panel: wa }), li = /([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;
8379
8379
  function ai(e) {
8380
8380
  var t, n;
8381
8381
  let r = (t = e.innerText) != null ? t : "", o = e.cloneNode(!0);
@@ -8385,7 +8385,7 @@ function ai(e) {
8385
8385
  let l = i ? (n = o.innerText) != null ? n : "" : r;
8386
8386
  return li.test(l) && (l = l.replace(li, "")), l;
8387
8387
  }
8388
- function Wm(e) {
8388
+ function zm(e) {
8389
8389
  let t = e.getAttribute("aria-label");
8390
8390
  if (typeof t == "string") return t.trim();
8391
8391
  let n = e.getAttribute("aria-labelledby");
@@ -8402,23 +8402,23 @@ function Wm(e) {
8402
8402
  }
8403
8403
  return ai(e).trim();
8404
8404
  }
8405
- function zm(e) {
8405
+ function Um(e) {
8406
8406
  let t = V(""), n = V("");
8407
8407
  return G(() => {
8408
8408
  let r = e.current;
8409
8409
  if (!r) return "";
8410
8410
  let o = r.innerText;
8411
8411
  if (t.current === o) return n.current;
8412
- let i = Wm(r).trim().toLowerCase();
8412
+ let i = zm(r).trim().toLowerCase();
8413
8413
  return t.current = o, n.current = i, i;
8414
8414
  });
8415
8415
  }
8416
- var Um = Object.defineProperty, Gm = (e, t, n) => t in e ? Um(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, si = (e, t, n) => (Gm(e, typeof t != "symbol" ? t + "" : t, n), n), pe = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(pe || {}), Xe = ((e) => (e[e.Single = 0] = "Single", e[e.Multi = 1] = "Multi", e))(Xe || {}), fn = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Other = 1] = "Other", e))(fn || {}), ya = ((e) => (e[e.OpenListbox = 0] = "OpenListbox", e[e.CloseListbox = 1] = "CloseListbox", e[e.GoToOption = 2] = "GoToOption", e[e.Search = 3] = "Search", e[e.ClearSearch = 4] = "ClearSearch", e[e.SelectOption = 5] = "SelectOption", e[e.RegisterOptions = 6] = "RegisterOptions", e[e.UnregisterOptions = 7] = "UnregisterOptions", e[e.SetButtonElement = 8] = "SetButtonElement", e[e.SetOptionsElement = 9] = "SetOptionsElement", e[e.SortOptions = 10] = "SortOptions", e[e.MarkButtonAsMoved = 11] = "MarkButtonAsMoved", e))(ya || {});
8416
+ var Gm = Object.defineProperty, qm = (e, t, n) => t in e ? Gm(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, si = (e, t, n) => (qm(e, typeof t != "symbol" ? t + "" : t, n), n), pe = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(pe || {}), Xe = ((e) => (e[e.Single = 0] = "Single", e[e.Multi = 1] = "Multi", e))(Xe || {}), fn = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Other = 1] = "Other", e))(fn || {}), ya = ((e) => (e[e.OpenListbox = 0] = "OpenListbox", e[e.CloseListbox = 1] = "CloseListbox", e[e.GoToOption = 2] = "GoToOption", e[e.Search = 3] = "Search", e[e.ClearSearch = 4] = "ClearSearch", e[e.SelectOption = 5] = "SelectOption", e[e.RegisterOptions = 6] = "RegisterOptions", e[e.UnregisterOptions = 7] = "UnregisterOptions", e[e.SetButtonElement = 8] = "SetButtonElement", e[e.SetOptionsElement = 9] = "SetOptionsElement", e[e.SortOptions = 10] = "SortOptions", e[e.MarkButtonAsMoved = 11] = "MarkButtonAsMoved", e))(ya || {});
8417
8417
  function ci(e, t = (n) => n) {
8418
8418
  let n = e.activeOptionIndex !== null ? e.options[e.activeOptionIndex] : null, r = Hl(t(e.options.slice()), (i) => i.dataRef.current.domRef.current), o = n ? r.indexOf(n) : null;
8419
8419
  return o === -1 && (o = null), { options: r, activeOptionIndex: o };
8420
8420
  }
8421
- let qm = { 1(e) {
8421
+ let Km = { 1(e) {
8422
8422
  if (e.dataRef.current.disabled || e.listboxState === 1) return e;
8423
8423
  let t = e.buttonElement ? dn.Tracked(ua(e.buttonElement)) : e.buttonPositionState;
8424
8424
  return { ...e, activeOptionIndex: null, pendingFocus: { focus: ne.Nothing }, listboxState: 1, __demoMode: !1, buttonPositionState: t };
@@ -8555,7 +8555,7 @@ class uo extends Ml {
8555
8555
  }
8556
8556
  this.disposables.group((n) => {
8557
8557
  this.on(1, (r) => {
8558
- r.buttonElement && (n.dispose(), n.add(vm(r.buttonElement, r.buttonPositionState, () => {
8558
+ r.buttonElement && (n.dispose(), n.add(bm(r.buttonElement, r.buttonPositionState, () => {
8559
8559
  this.send({ type: 11 });
8560
8560
  })));
8561
8561
  });
@@ -8568,7 +8568,7 @@ class uo extends Ml {
8568
8568
  return new uo({ id: t, dataRef: { current: {} }, listboxState: n ? 0 : 1, options: [], searchQuery: "", activeOptionIndex: null, activationTrigger: 1, buttonElement: null, optionsElement: null, pendingShouldSort: !1, pendingFocus: { focus: ne.Nothing }, frozenValue: !1, __demoMode: n, buttonPositionState: dn.Idle });
8569
8569
  }
8570
8570
  reduce(t, n) {
8571
- return ve(n.type, qm, t, n);
8571
+ return ve(n.type, Km, t, n);
8572
8572
  }
8573
8573
  }
8574
8574
  const xa = re(null);
@@ -8594,27 +8594,27 @@ function Gt(e) {
8594
8594
  }
8595
8595
  return t;
8596
8596
  }
8597
- let Km = Ie;
8598
- function Ym(e, t) {
8597
+ let Ym = Ie;
8598
+ function Zm(e, t) {
8599
8599
  let n = Ve(), r = Cn(), { value: o, defaultValue: i, form: l, name: a, onChange: s, by: c, invalid: u = !1, disabled: f = r || !1, horizontal: m = !1, multiple: d = !1, __demoMode: h = !1, ...g } = e;
8600
8600
  const v = m ? "horizontal" : "vertical";
8601
- let b = be(t), y = ud(i), [w = d ? [] : void 0, $] = cd(o, s, y), E = Ea({ id: n, __demoMode: h }), k = V({ static: !1, hold: !1 }), T = V(/* @__PURE__ */ new Map()), S = Dd(c), L = Z((D) => ve(C.mode, { [Xe.Multi]: () => w.some((N) => S(N, D)), [Xe.Single]: () => S(w, D) }), [w]), C = ke({ value: w, disabled: f, invalid: u, mode: d ? Xe.Multi : Xe.Single, orientation: v, onChange: $, compare: S, isSelected: L, optionsPropsRef: k, listRef: T });
8601
+ let b = be(t), y = dd(i), [w = d ? [] : void 0, $] = ud(o, s, y), E = Ea({ id: n, __demoMode: h }), k = V({ static: !1, hold: !1 }), T = V(/* @__PURE__ */ new Map()), S = _d(c), L = Z((D) => ve(C.mode, { [Xe.Multi]: () => w.some((N) => S(N, D)), [Xe.Single]: () => S(w, D) }), [w]), C = ke({ value: w, disabled: f, invalid: u, mode: d ? Xe.Multi : Xe.Single, orientation: v, onChange: $, compare: S, isSelected: L, optionsPropsRef: k, listRef: T });
8602
8602
  oe(() => {
8603
8603
  E.state.dataRef.current = C;
8604
8604
  }, [C]);
8605
8605
  let _ = we(E, (D) => D.listboxState), W = Zr.get(null), z = we(W, Z((D) => W.selectors.isTop(D, n), [W, n])), [B, I] = we(E, (D) => [D.buttonElement, D.optionsElement]);
8606
- ff(z, [B, I], (D, N) => {
8606
+ pf(z, [B, I], (D, N) => {
8607
8607
  E.send({ type: ya.CloseListbox }), Bl(N, Xr.Loose) || (D.preventDefault(), B?.focus());
8608
8608
  });
8609
- let j = ke({ open: _ === pe.Open, disabled: f, invalid: u, value: w }), [A, x] = Od({ inherit: !0 }), F = { ref: b }, q = Z(() => {
8609
+ let j = ke({ open: _ === pe.Open, disabled: f, invalid: u, value: w }), [A, x] = Pd({ inherit: !0 }), F = { ref: b }, q = Z(() => {
8610
8610
  if (y !== void 0) return $?.(y);
8611
8611
  }, [$, y]), ae = de();
8612
- return M.createElement(x, { value: A, props: { htmlFor: B?.id }, slot: { open: _ === pe.Open, disabled: f } }, M.createElement(em, null, M.createElement(xa.Provider, { value: E }, M.createElement(Bn.Provider, { value: C }, M.createElement(io, { value: ve(_, { [pe.Open]: ge.Open, [pe.Closed]: ge.Closed }) }, a != null && w != null && M.createElement(vd, { disabled: f, data: { [a]: w }, form: l, onReset: q }), ae({ ourProps: F, theirProps: g, slot: j, defaultTag: Km, name: "Listbox" }))))));
8612
+ return M.createElement(x, { value: A, props: { htmlFor: B?.id }, slot: { open: _ === pe.Open, disabled: f } }, M.createElement(tm, null, M.createElement(xa.Provider, { value: E }, M.createElement(Bn.Provider, { value: C }, M.createElement(io, { value: ve(_, { [pe.Open]: ge.Open, [pe.Closed]: ge.Closed }) }, a != null && w != null && M.createElement(bd, { disabled: f, data: { [a]: w }, form: l, onReset: q }), ae({ ourProps: F, theirProps: g, slot: j, defaultTag: Ym, name: "Listbox" }))))));
8613
8613
  }
8614
- let Zm = "button";
8615
- function Xm(e, t) {
8616
- let n = Ve(), r = xl(), o = Gt("Listbox.Button"), i = fo("Listbox.Button"), { id: l = r || `headlessui-listbox-button-${n}`, disabled: a = o.disabled || !1, autoFocus: s = !1, ...c } = e, u = be(t, Zp(), i.actions.setButtonElement), f = Xp(), [m, d, h] = we(i, (I) => [I.listboxState, I.buttonElement, I.optionsElement]), g = m === pe.Open;
8617
- hf(g, { trigger: d, action: Z((I) => {
8614
+ let Xm = "button";
8615
+ function Jm(e, t) {
8616
+ let n = Ve(), r = xl(), o = Gt("Listbox.Button"), i = fo("Listbox.Button"), { id: l = r || `headlessui-listbox-button-${n}`, disabled: a = o.disabled || !1, autoFocus: s = !1, ...c } = e, u = be(t, Xp(), i.actions.setButtonElement), f = Jp(), [m, d, h] = we(i, (I) => [I.listboxState, I.buttonElement, I.optionsElement]), g = m === pe.Open;
8617
+ gf(g, { trigger: d, action: Z((I) => {
8618
8618
  if (d != null && d.contains(I.target)) return nn.Ignore;
8619
8619
  let j = I.target.closest('[role="option"]:not([data-disabled])');
8620
8620
  return Ge(j) ? nn.Select(j) : h != null && h.contains(I.target) ? nn.Ignore : nn.Close;
@@ -8622,7 +8622,7 @@ function Xm(e, t) {
8622
8622
  let v = G((I) => {
8623
8623
  switch (I.key) {
8624
8624
  case te.Enter:
8625
- dd(I.currentTarget);
8625
+ fd(I.currentTarget);
8626
8626
  break;
8627
8627
  case te.Space:
8628
8628
  case te.ArrowDown:
@@ -8634,22 +8634,22 @@ function Xm(e, t) {
8634
8634
  }
8635
8635
  }), b = G((I) => {
8636
8636
  I.key === te.Space && I.preventDefault();
8637
- }), y = Bd((I) => {
8637
+ }), y = Hd((I) => {
8638
8638
  var j;
8639
8639
  i.state.listboxState === pe.Open ? (mn(() => i.actions.closeListbox()), (j = i.state.buttonElement) == null || j.focus({ preventScroll: !0 })) : (I.preventDefault(), i.actions.openListbox({ focus: ne.Nothing }));
8640
- }), w = G((I) => I.preventDefault()), $ = Ol([l]), E = Sd(), { isFocusVisible: k, focusProps: T } = Gr({ autoFocus: s }), { isHovered: S, hoverProps: L } = Ur({ isDisabled: a }), { pressed: C, pressProps: _ } = qr({ disabled: a }), W = ke({ open: m === pe.Open, active: C || m === pe.Open, disabled: a, invalid: o.invalid, value: o.value, hover: S, focus: k, autofocus: s }), z = we(i, (I) => I.listboxState === pe.Open), B = Nt(f(), { ref: u, id: l, type: Vl(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, T, L, _);
8641
- return de()({ ourProps: B, theirProps: c, slot: W, defaultTag: Zm, name: "Listbox.Button" });
8640
+ }), w = G((I) => I.preventDefault()), $ = Ol([l]), E = Cd(), { isFocusVisible: k, focusProps: T } = Gr({ autoFocus: s }), { isHovered: S, hoverProps: L } = Ur({ isDisabled: a }), { pressed: C, pressProps: _ } = qr({ disabled: a }), W = ke({ open: m === pe.Open, active: C || m === pe.Open, disabled: a, invalid: o.invalid, value: o.value, hover: S, focus: k, autofocus: s }), z = we(i, (I) => I.listboxState === pe.Open), B = Nt(f(), { ref: u, id: l, type: Vl(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, T, L, _);
8641
+ return de()({ ourProps: B, theirProps: c, slot: W, defaultTag: Xm, name: "Listbox.Button" });
8642
8642
  }
8643
- let $a = re(!1), Jm = "div", Qm = mt.RenderStrategy | mt.Static;
8644
- function eh(e, t) {
8645
- let n = Ve(), { id: r = `headlessui-listbox-options-${n}`, anchor: o, portal: i = !1, modal: l = !0, transition: a = !1, ...s } = e, c = Yp(o), [u, f] = Q(null);
8643
+ let $a = re(!1), Qm = "div", eh = mt.RenderStrategy | mt.Static;
8644
+ function th(e, t) {
8645
+ let n = Ve(), { id: r = `headlessui-listbox-options-${n}`, anchor: o, portal: i = !1, modal: l = !0, transition: a = !1, ...s } = e, c = Zp(o), [u, f] = Q(null);
8646
8646
  c && (i = !0);
8647
8647
  let m = Gt("Listbox.Options"), d = fo("Listbox.Options"), [h, g, v, b] = we(d, (H) => [H.listboxState, H.buttonElement, H.optionsElement, H.__demoMode]), y = Rr(g), w = Rr(v), $ = Nn(), [E, k] = Qr(a, u, $ !== null ? ($ & ge.Open) === ge.Open : h === pe.Open);
8648
- Qd(E, g, d.actions.closeListbox);
8648
+ ef(E, g, d.actions.closeListbox);
8649
8649
  let T = b ? !1 : l && h === pe.Open;
8650
- Ef(T, w);
8650
+ $f(T, w);
8651
8651
  let S = b ? !1 : l && h === pe.Open;
8652
- Jd(S, { allowed: Z(() => [g, v], [g, v]) });
8652
+ Qd(S, { allowed: Z(() => [g, v], [g, v]) });
8653
8653
  let L = we(d, d.selectors.didButtonMove) ? !1 : E, C = we(d, d.selectors.hasFrozenValue) && !e.static, _ = la(C, m.value), W = Z((H) => m.compare(_, H), [m.compare, _]), z = we(d, (H) => {
8654
8654
  var K;
8655
8655
  if (c == null || !((K = c?.to) != null && K.includes("selection"))) return null;
@@ -8660,10 +8660,10 @@ function eh(e, t) {
8660
8660
  if (z === null) return { ...c, inner: void 0 };
8661
8661
  let H = Array.from(m.listRef.current.values());
8662
8662
  return { ...c, inner: { listRef: { current: H }, index: z } };
8663
- })(), [I, j] = Qp(B), A = Jp(), x = be(t, c ? I : null, d.actions.setOptionsElement, f), F = at();
8663
+ })(), [I, j] = em(B), A = Qp(), x = be(t, c ? I : null, d.actions.setOptionsElement, f), F = at();
8664
8664
  ie(() => {
8665
8665
  let H = v;
8666
- H && h === pe.Open && (Xu(H) || H == null || H.focus({ preventScroll: !0 }));
8666
+ H && h === pe.Open && (Ju(H) || H == null || H.focus({ preventScroll: !0 }));
8667
8667
  }, [h, v]);
8668
8668
  let q = G((H) => {
8669
8669
  var K;
@@ -8687,7 +8687,7 @@ function eh(e, t) {
8687
8687
  H.preventDefault(), H.stopPropagation(), mn(() => d.actions.closeListbox()), (K = d.state.buttonElement) == null || K.focus({ preventScroll: !0 });
8688
8688
  return;
8689
8689
  case te.Tab:
8690
- H.preventDefault(), H.stopPropagation(), mn(() => d.actions.closeListbox()), sf(d.state.buttonElement, H.shiftKey ? $r.Previous : $r.Next);
8690
+ H.preventDefault(), H.stopPropagation(), mn(() => d.actions.closeListbox()), cf(d.state.buttonElement, H.shiftKey ? $r.Previous : $r.Next);
8691
8691
  break;
8692
8692
  default:
8693
8693
  H.key.length === 1 && (d.actions.search(H.key), F.setTimeout(() => d.actions.clearSearch(), 350));
@@ -8696,12 +8696,12 @@ function eh(e, t) {
8696
8696
  }), ae = we(d, (H) => {
8697
8697
  var K;
8698
8698
  return (K = H.buttonElement) == null ? void 0 : K.id;
8699
- }), D = ke({ open: h === pe.Open }), N = Nt(c ? A() : {}, { id: r, ref: x, "aria-activedescendant": we(d, d.selectors.activeDescendantId), "aria-multiselectable": m.mode === Xe.Multi ? !0 : void 0, "aria-labelledby": ae, "aria-orientation": m.orientation, onKeyDown: q, role: "listbox", tabIndex: h === pe.Open ? 0 : void 0, style: { ...s.style, ...j, "--button-width": _d(E, g, !0).width }, ...Jr(k) }), se = de(), me = ce(() => m.mode === Xe.Multi ? m : { ...m, isSelected: W }, [m, W]);
8700
- return M.createElement(gm, { enabled: i ? e.static || E : !1, ownerDocument: y }, M.createElement(Bn.Provider, { value: me }, se({ ourProps: N, theirProps: s, slot: D, defaultTag: Jm, features: Qm, visible: L, name: "Listbox.Options" })));
8699
+ }), D = ke({ open: h === pe.Open }), N = Nt(c ? A() : {}, { id: r, ref: x, "aria-activedescendant": we(d, d.selectors.activeDescendantId), "aria-multiselectable": m.mode === Xe.Multi ? !0 : void 0, "aria-labelledby": ae, "aria-orientation": m.orientation, onKeyDown: q, role: "listbox", tabIndex: h === pe.Open ? 0 : void 0, style: { ...s.style, ...j, "--button-width": Bd(E, g, !0).width }, ...Jr(k) }), se = de(), he = ce(() => m.mode === Xe.Multi ? m : { ...m, isSelected: W }, [m, W]);
8700
+ return M.createElement(vm, { enabled: i ? e.static || E : !1, ownerDocument: y }, M.createElement(Bn.Provider, { value: he }, se({ ourProps: N, theirProps: s, slot: D, defaultTag: Qm, features: eh, visible: L, name: "Listbox.Options" })));
8701
8701
  }
8702
- let th = "div";
8703
- function nh(e, t) {
8704
- let n = Ve(), { id: r = `headlessui-listbox-option-${n}`, disabled: o = !1, value: i, ...l } = e, a = X($a) === !0, s = Gt("Listbox.Option"), c = fo("Listbox.Option"), u = we(c, (C) => c.selectors.isActive(C, r)), f = s.isSelected(i), m = V(null), d = zm(m), h = st({ disabled: o, value: i, domRef: m, get textValue() {
8702
+ let nh = "div";
8703
+ function rh(e, t) {
8704
+ let n = Ve(), { id: r = `headlessui-listbox-option-${n}`, disabled: o = !1, value: i, ...l } = e, a = X($a) === !0, s = Gt("Listbox.Option"), c = fo("Listbox.Option"), u = we(c, (C) => c.selectors.isActive(C, r)), f = s.isSelected(i), m = V(null), d = Um(m), h = st({ disabled: o, value: i, domRef: m, get textValue() {
8705
8705
  return d();
8706
8706
  } }), g = be(t, m, (C) => {
8707
8707
  C ? s.listRef.current.set(r, C) : s.listRef.current.delete(r);
@@ -8720,20 +8720,20 @@ function nh(e, t) {
8720
8720
  }), y = G(() => {
8721
8721
  if (o) return c.actions.goToOption({ focus: ne.Nothing });
8722
8722
  c.actions.goToOption({ focus: ne.Specific, id: r });
8723
- }), w = $f(), $ = G((C) => w.update(C)), E = G((C) => {
8723
+ }), w = Rf(), $ = G((C) => w.update(C)), E = G((C) => {
8724
8724
  w.wasMoved(C) && (o || u && c.state.activationTrigger === fn.Pointer || c.actions.goToOption({ focus: ne.Specific, id: r }, fn.Pointer));
8725
8725
  }), k = G((C) => {
8726
8726
  w.wasMoved(C) && (o || u && c.state.activationTrigger === fn.Pointer && c.actions.goToOption({ focus: ne.Nothing }));
8727
8727
  }), T = ke({ active: u, focus: u, selected: f, disabled: o, selectedOption: f && a }), S = 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 }, L = de();
8728
- return !f && a ? null : L({ ourProps: S, theirProps: l, slot: T, defaultTag: th, name: "Listbox.Option" });
8728
+ return !f && a ? null : L({ ourProps: S, theirProps: l, slot: T, defaultTag: nh, name: "Listbox.Option" });
8729
8729
  }
8730
- let rh = Ie;
8731
- function oh(e, t) {
8730
+ let oh = Ie;
8731
+ function ih(e, t) {
8732
8732
  let { options: n, placeholder: r, ...o } = e, i = { ref: be(t) }, l = Gt("ListboxSelectedOption"), a = ke({}), s = l.value === void 0 || l.value === null || l.mode === Xe.Multi && Array.isArray(l.value) && l.value.length === 0, c = de();
8733
- return M.createElement($a.Provider, { value: !0 }, c({ ourProps: i, theirProps: { ...o, children: M.createElement(M.Fragment, null, r && s ? r : n) }, slot: a, defaultTag: rh, name: "ListboxSelectedOption" }));
8733
+ return M.createElement($a.Provider, { value: !0 }, c({ ourProps: i, theirProps: { ...o, children: M.createElement(M.Fragment, null, r && s ? r : n) }, slot: a, defaultTag: oh, name: "ListboxSelectedOption" }));
8734
8734
  }
8735
- let ih = ue(Ym), Ra = ue(Xm), lh = Md, Sa = ue(eh), Ca = ue(nh), ah = ue(oh), sh = Object.assign(ih, { Button: Ra, Label: lh, Options: Sa, Option: Ca, SelectedOption: ah });
8736
- function ch({
8735
+ let lh = ue(Zm), Ra = ue(Jm), ah = Fd, Sa = ue(th), Ca = ue(rh), sh = ue(ih), ch = Object.assign(lh, { Button: Ra, Label: ah, Options: Sa, Option: Ca, SelectedOption: sh });
8736
+ function uh({
8737
8737
  children: e,
8738
8738
  className: t,
8739
8739
  disabled: n = !1,
@@ -8741,11 +8741,11 @@ function ch({
8741
8741
  ...o
8742
8742
  }) {
8743
8743
  return /* @__PURE__ */ R(
8744
- sd,
8744
+ cd,
8745
8745
  {
8746
- className: he(
8746
+ className: me(
8747
8747
  "rounded-md font-bold cursor-pointer px-2",
8748
- uh(r, !!n),
8748
+ dh(r, !!n),
8749
8749
  {
8750
8750
  "opacity-50 cursor-default": n
8751
8751
  },
@@ -8758,38 +8758,38 @@ function ch({
8758
8758
  }
8759
8759
  );
8760
8760
  }
8761
- function uh(e, t) {
8761
+ function dh(e, t) {
8762
8762
  switch (e) {
8763
8763
  case "danger":
8764
- return he("bg-red-400 text-red-950 focus:text-black", {
8764
+ return me("bg-red-400 text-red-950 focus:text-black", {
8765
8765
  "hover:bg-red-500 focus:text-black": !t
8766
8766
  });
8767
8767
  case "none":
8768
- return he("bg-white/20 text-slate-300 focus:text-white", {
8768
+ return me("bg-white/20 text-slate-300 focus:text-white", {
8769
8769
  "hover:bg-white/10 focus:text-white": !t
8770
8770
  });
8771
8771
  case "success":
8772
- return he("bg-emerald-400 text-emerald-950 focus:text-black", {
8772
+ return me("bg-emerald-400 text-emerald-950 focus:text-black", {
8773
8773
  "hover:bg-emerald-500 focus:text-black": !t
8774
8774
  });
8775
8775
  case "primary":
8776
- return he("bg-sky-400 text-sky-950 focus:text-black", {
8776
+ return me("bg-sky-400 text-sky-950 focus:text-black", {
8777
8777
  "hover:bg-sky-500 focus:text-black": !t
8778
8778
  });
8779
8779
  case "warning":
8780
- return he("bg-amber-400 text-amber-950 focus:text-black", {
8780
+ return me("bg-amber-400 text-amber-950 focus:text-black", {
8781
8781
  "hover:bg-amber-500 focus:text-black": !t
8782
8782
  });
8783
8783
  }
8784
8784
  }
8785
8785
  function ka({ children: e }) {
8786
- return /* @__PURE__ */ R($u, { FallbackComponent: dh, children: e });
8786
+ return /* @__PURE__ */ R(Ru, { FallbackComponent: fh, children: e });
8787
8787
  }
8788
- function dh({ error: e, resetErrorBoundary: t }) {
8788
+ function fh({ error: e, resetErrorBoundary: t }) {
8789
8789
  return /* @__PURE__ */ R(nl, { intent: "danger", children: /* @__PURE__ */ Y(ye, { align: "start", direction: "column", gap: 2, children: [
8790
8790
  /* @__PURE__ */ R("div", { className: "font-bold", children: "Something went wrong!" }),
8791
8791
  /* @__PURE__ */ R("pre", { className: "text-sm font-monospace text-red-300", children: e.message }),
8792
- /* @__PURE__ */ R(ch, { intent: "danger", onClick: t, children: "Retry" })
8792
+ /* @__PURE__ */ R(uh, { intent: "danger", onClick: t, children: "Retry" })
8793
8793
  ] }) });
8794
8794
  }
8795
8795
  function En({
@@ -8832,35 +8832,14 @@ function Pr({
8832
8832
  }
8833
8833
  );
8834
8834
  }
8835
- function fh({ children: e }) {
8835
+ function ph({ children: e }) {
8836
8836
  return /* @__PURE__ */ R("div", { className: "w-full shrink-0 flex flex-col gap-4 py-4 overflow-y-auto", children: e });
8837
8837
  }
8838
- function ph() {
8839
- const { hide: e } = Vi(), { pathname: t } = ze();
8840
- return Bt(() => {
8841
- e();
8842
- const n = document.body.querySelector("[data-main-scrollable]");
8843
- if (n) {
8844
- const r = setTimeout(() => {
8845
- n.scrollTo(0, 0);
8846
- }, 1);
8847
- return () => {
8848
- clearTimeout(r);
8849
- };
8850
- }
8851
- }, [e, t]), null;
8852
- }
8853
- const mh = {
8854
- "*": Yt(() => import("./PageNotFound-k-Qhjbpf.js")),
8855
- "/": Yt(() => import("./GettingStartedRoute-DdNa0GEu.js")),
8856
- "/support": Yt(() => import("./SupportRoute-CodOYgT1.js")),
8857
- "/versions": Yt(() => import("./VersionsRoute-CWPitZ1W.js"))
8858
- };
8859
- function hh() {
8838
+ function mh() {
8860
8839
  const e = navigator.userAgentData;
8861
8840
  return e != null && e.platform ? e.platform : navigator.platform;
8862
8841
  }
8863
- function gh() {
8842
+ function hh() {
8864
8843
  const e = navigator.userAgentData;
8865
8844
  return e && Array.isArray(e.brands) ? e.brands.map((t) => {
8866
8845
  let {
@@ -8870,16 +8849,16 @@ function gh() {
8870
8849
  return n + "/" + r;
8871
8850
  }).join(" ") : navigator.userAgent;
8872
8851
  }
8873
- function vh() {
8852
+ function gh() {
8874
8853
  return /apple/i.test(navigator.vendor);
8875
8854
  }
8876
- function bh() {
8877
- return hh().toLowerCase().startsWith("mac") && !navigator.maxTouchPoints;
8855
+ function vh() {
8856
+ return mh().toLowerCase().startsWith("mac") && !navigator.maxTouchPoints;
8878
8857
  }
8879
- function wh() {
8880
- return gh().includes("jsdom/");
8858
+ function bh() {
8859
+ return hh().includes("jsdom/");
8881
8860
  }
8882
- const yh = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
8861
+ const wh = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
8883
8862
  function ui(e) {
8884
8863
  let t = e.activeElement;
8885
8864
  for (; ((n = t) == null || (n = n.shadowRoot) == null ? void 0 : n.activeElement) != null; ) {
@@ -8904,17 +8883,17 @@ function Lr(e, t) {
8904
8883
  }
8905
8884
  return !1;
8906
8885
  }
8907
- function xh(e) {
8886
+ function yh(e) {
8908
8887
  return "composedPath" in e ? e.composedPath()[0] : e.target;
8909
8888
  }
8910
8889
  function Ot(e) {
8911
8890
  return e?.ownerDocument || document;
8912
8891
  }
8913
- function Eh(e) {
8914
- return Te(e) && e.matches(yh);
8892
+ function xh(e) {
8893
+ return Te(e) && e.matches(wh);
8915
8894
  }
8916
- function $h(e) {
8917
- if (!e || wh()) return !0;
8895
+ function Eh(e) {
8896
+ if (!e || bh()) return !0;
8918
8897
  try {
8919
8898
  return e.matches(":focus-visible");
8920
8899
  } catch {
@@ -8925,9 +8904,9 @@ function Ar(e, t) {
8925
8904
  const n = ["mouse", "pen"];
8926
8905
  return n.push("", void 0), n.includes(e);
8927
8906
  }
8928
- var Rh = typeof document < "u", Sh = function() {
8929
- }, gt = Rh ? Bt : Sh;
8930
- const Ch = {
8907
+ var $h = typeof document < "u", Rh = function() {
8908
+ }, gt = $h ? Bt : Rh;
8909
+ const Sh = {
8931
8910
  ...p
8932
8911
  };
8933
8912
  function ln(e) {
@@ -8936,13 +8915,13 @@ function ln(e) {
8936
8915
  t.current = e;
8937
8916
  }), t;
8938
8917
  }
8939
- const kh = Ch.useInsertionEffect, Th = kh || ((e) => e());
8918
+ const Ch = Sh.useInsertionEffect, kh = Ch || ((e) => e());
8940
8919
  function Pt(e) {
8941
8920
  const t = p.useRef(() => {
8942
8921
  if (process.env.NODE_ENV !== "production")
8943
8922
  throw new Error("Cannot call an event handler while rendering.");
8944
8923
  });
8945
- return Th(() => {
8924
+ return kh(() => {
8946
8925
  t.current = e;
8947
8926
  }), p.useCallback(function() {
8948
8927
  for (var n = arguments.length, r = new Array(n), o = 0; o < n; o++)
@@ -8950,16 +8929,16 @@ function Pt(e) {
8950
8929
  return t.current == null ? void 0 : t.current(...r);
8951
8930
  }, []);
8952
8931
  }
8953
- const Oh = "data-floating-ui-focusable", di = "active", fi = "selected", Ph = {
8932
+ const Th = "data-floating-ui-focusable", di = "active", fi = "selected", Oh = {
8954
8933
  ...p
8955
8934
  };
8956
- let pi = !1, Lh = 0;
8935
+ let pi = !1, Ph = 0;
8957
8936
  const mi = () => (
8958
8937
  // Ensure the id is unique with multiple independent versions of Floating UI
8959
8938
  // on <React 18
8960
- "floating-ui-" + Math.random().toString(36).slice(2, 6) + Lh++
8939
+ "floating-ui-" + Math.random().toString(36).slice(2, 6) + Ph++
8961
8940
  );
8962
- function Ah() {
8941
+ function Lh() {
8963
8942
  const [e, t] = p.useState(() => pi ? mi() : void 0);
8964
8943
  return gt(() => {
8965
8944
  e == null && t(mi());
@@ -8967,10 +8946,10 @@ function Ah() {
8967
8946
  pi = !0;
8968
8947
  }, []), e;
8969
8948
  }
8970
- const Mh = Ph.useId, Fh = Mh || Ah;
8949
+ const Ah = Oh.useId, Mh = Ah || Lh;
8971
8950
  let Mr;
8972
8951
  process.env.NODE_ENV !== "production" && (Mr = /* @__PURE__ */ new Set());
8973
- function Nh() {
8952
+ function Fh() {
8974
8953
  for (var e, t = arguments.length, n = new Array(t), r = 0; r < t; r++)
8975
8954
  n[r] = arguments[r];
8976
8955
  const o = "Floating UI: " + n.join(" ");
@@ -8979,7 +8958,7 @@ function Nh() {
8979
8958
  (i = Mr) == null || i.add(o), console.error(o);
8980
8959
  }
8981
8960
  }
8982
- function Ih() {
8961
+ function Nh() {
8983
8962
  const e = /* @__PURE__ */ new Map();
8984
8963
  return {
8985
8964
  emit(t, n) {
@@ -8995,10 +8974,10 @@ function Ih() {
8995
8974
  }
8996
8975
  };
8997
8976
  }
8998
- const Dh = /* @__PURE__ */ p.createContext(null), _h = /* @__PURE__ */ p.createContext(null), Ta = () => {
8977
+ const Ih = /* @__PURE__ */ p.createContext(null), Dh = /* @__PURE__ */ p.createContext(null), Ta = () => {
8999
8978
  var e;
9000
- return ((e = p.useContext(Dh)) == null ? void 0 : e.id) || null;
9001
- }, Oa = () => p.useContext(_h);
8979
+ return ((e = p.useContext(Ih)) == null ? void 0 : e.id) || null;
8980
+ }, Oa = () => p.useContext(Dh);
9002
8981
  function Pa(e) {
9003
8982
  return "data-floating-ui-" + e;
9004
8983
  }
@@ -9020,7 +8999,7 @@ function lr(e, t, n) {
9020
8999
  function ar(e) {
9021
9000
  return typeof e == "function" ? e() : e;
9022
9001
  }
9023
- function Bh(e, t) {
9002
+ function _h(e, t) {
9024
9003
  t === void 0 && (t = {});
9025
9004
  const {
9026
9005
  open: n,
@@ -9101,9 +9080,9 @@ function Bh(e, t) {
9101
9080
  B(), z(), I() || W(D, !0, "safe-polygon");
9102
9081
  }
9103
9082
  });
9104
- const me = E.current;
9105
- N.addEventListener("mousemove", me), L.current = () => {
9106
- N.removeEventListener("mousemove", me);
9083
+ const he = E.current;
9084
+ N.addEventListener("mousemove", he), L.current = () => {
9085
+ N.removeEventListener("mousemove", he);
9107
9086
  };
9108
9087
  return;
9109
9088
  }
@@ -9176,15 +9155,15 @@ function Bh(e, t) {
9176
9155
  reference: j
9177
9156
  } : {}, [a, j]);
9178
9157
  }
9179
- function Hh(e) {
9158
+ function Bh(e) {
9180
9159
  const {
9181
9160
  open: t = !1,
9182
9161
  onOpenChange: n,
9183
9162
  elements: r
9184
- } = e, o = Fh(), i = p.useRef({}), [l] = p.useState(() => Ih()), a = Ta() != null;
9163
+ } = e, o = Mh(), i = p.useRef({}), [l] = p.useState(() => Nh()), a = Ta() != null;
9185
9164
  if (process.env.NODE_ENV !== "production") {
9186
9165
  const d = r.reference;
9187
- d && !J(d) && Nh("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
9166
+ d && !J(d) && Fh("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
9188
9167
  }
9189
9168
  const [s, c] = p.useState(r.reference), u = Pt((d, h, g) => {
9190
9169
  i.current.openEvent = d ? h : void 0, l.emit("openchange", {
@@ -9210,11 +9189,11 @@ function Hh(e) {
9210
9189
  refs: f
9211
9190
  }), [t, u, m, l, o, f]);
9212
9191
  }
9213
- function jh(e) {
9192
+ function Hh(e) {
9214
9193
  e === void 0 && (e = {});
9215
9194
  const {
9216
9195
  nodeId: t
9217
- } = e, n = Hh({
9196
+ } = e, n = Bh({
9218
9197
  ...e,
9219
9198
  elements: {
9220
9199
  reference: null,
@@ -9272,9 +9251,9 @@ function jh(e) {
9272
9251
  }), [d, v, b, y]);
9273
9252
  }
9274
9253
  function sr() {
9275
- return bh() && vh();
9254
+ return vh() && gh();
9276
9255
  }
9277
- function Vh(e, t) {
9256
+ function jh(e, t) {
9278
9257
  t === void 0 && (t = {});
9279
9258
  const {
9280
9259
  open: n,
@@ -9321,12 +9300,12 @@ function Vh(e, t) {
9321
9300
  },
9322
9301
  onFocus(d) {
9323
9302
  if (c.current) return;
9324
- const h = xh(d.nativeEvent);
9303
+ const h = yh(d.nativeEvent);
9325
9304
  if (s && J(h)) {
9326
9305
  if (sr() && !d.relatedTarget) {
9327
- if (!f.current && !Eh(h))
9306
+ if (!f.current && !xh(h))
9328
9307
  return;
9329
- } else if (!$h(h))
9308
+ } else if (!Eh(h))
9330
9309
  return;
9331
9310
  }
9332
9311
  r(!0, d.nativeEvent, "focus");
@@ -9359,7 +9338,7 @@ function cr(e, t, n) {
9359
9338
  return {
9360
9339
  ...n === "floating" && {
9361
9340
  tabIndex: -1,
9362
- [Oh]: ""
9341
+ [Th]: ""
9363
9342
  },
9364
9343
  ...i,
9365
9344
  ...t.map((l) => {
@@ -9382,7 +9361,7 @@ function cr(e, t, n) {
9382
9361
  }), l), {})
9383
9362
  };
9384
9363
  }
9385
- function Wh(e) {
9364
+ function Vh(e) {
9386
9365
  e === void 0 && (e = []);
9387
9366
  const t = e.map((a) => a?.reference), n = e.map((a) => a?.floating), r = e.map((a) => a?.item), o = p.useCallback(
9388
9367
  (a) => cr(a, e, "reference"),
@@ -9410,15 +9389,14 @@ function an({
9410
9389
  showOnFocus: r = !1,
9411
9390
  showOnHover: o = !0
9412
9391
  }) {
9413
- const [i, l] = Q(!1), { refs: a, floatingStyles: s, context: c } = jh({
9392
+ const [i, l] = Q(!1), { refs: a, floatingStyles: s, context: c } = Hh({
9414
9393
  onOpenChange: l,
9415
9394
  open: i,
9416
9395
  middleware: [ro(4), na()]
9417
- }), u = Bh(c, { enabled: o }), f = Vh(c, { enabled: r }), { getReferenceProps: m, getFloatingProps: d } = Wh([
9396
+ }), u = _h(c, { enabled: o }), f = jh(c, { enabled: r }), { getReferenceProps: m, getFloatingProps: d } = Vh([
9418
9397
  f,
9419
9398
  u
9420
- ]);
9421
- return /* @__PURE__ */ Y("div", { className: "group relative flex justify-center", onKeyDown: (g) => {
9399
+ ]), h = (g) => {
9422
9400
  if (r)
9423
9401
  switch (g.key) {
9424
9402
  case "Escape": {
@@ -9430,24 +9408,53 @@ function an({
9430
9408
  break;
9431
9409
  }
9432
9410
  }
9433
- }, children: [
9434
- /* @__PURE__ */ R("div", { ref: a.setReference, ...m(), children: e }),
9435
- i && /* @__PURE__ */ R(
9436
- "div",
9437
- {
9438
- className: he(
9439
- "bg-white/80 text-black rounded-md px-2 py-1 shadow-md whitespace-nowrap z-40",
9440
- t
9441
- ),
9442
- ref: a.setFloating,
9443
- style: s,
9444
- ...d(),
9445
- children: n
9446
- }
9447
- )
9448
- ] });
9411
+ };
9412
+ return /* @__PURE__ */ Y(
9413
+ "div",
9414
+ {
9415
+ className: me("group relative flex justify-center", t),
9416
+ onKeyDown: h,
9417
+ children: [
9418
+ /* @__PURE__ */ R("div", { ref: a.setReference, ...m(), children: e }),
9419
+ i && /* @__PURE__ */ R(
9420
+ "div",
9421
+ {
9422
+ className: me(
9423
+ "bg-white/80 text-black rounded-md px-2 py-1 shadow-md whitespace-nowrap z-40",
9424
+ t
9425
+ ),
9426
+ ref: a.setFloating,
9427
+ style: s,
9428
+ ...d(),
9429
+ children: n
9430
+ }
9431
+ )
9432
+ ]
9433
+ }
9434
+ );
9449
9435
  }
9450
- function ag({
9436
+ function Wh() {
9437
+ const { hide: e } = Vi(), { pathname: t } = ze();
9438
+ return Bt(() => {
9439
+ e();
9440
+ const n = document.body.querySelector("[data-main-scrollable]");
9441
+ if (n) {
9442
+ const r = setTimeout(() => {
9443
+ n.scrollTo(0, 0);
9444
+ }, 1);
9445
+ return () => {
9446
+ clearTimeout(r);
9447
+ };
9448
+ }
9449
+ }, [e, t]), null;
9450
+ }
9451
+ const zh = {
9452
+ "*": Yt(() => import("./PageNotFound-CIaTnSUD.js")),
9453
+ "/": Yt(() => import("./GettingStartedRoute-n-O_44X3.js")),
9454
+ "/support": Yt(() => import("./SupportRoute-DAwPlROy.js")),
9455
+ "/versions": Yt(() => import("./VersionsRoute-eEmeVHtt.js"))
9456
+ };
9457
+ function sg({
9451
9458
  navLinks: e,
9452
9459
  overview: t,
9453
9460
  packageDescription: n,
@@ -9467,7 +9474,7 @@ function ag({
9467
9474
  [t, n, r, i, l]
9468
9475
  );
9469
9476
  return /* @__PURE__ */ R(ji.Provider, { value: c, children: /* @__PURE__ */ Y(gc, { children: [
9470
- /* @__PURE__ */ R(ph, {}),
9477
+ /* @__PURE__ */ R(Wh, {}),
9471
9478
  /* @__PURE__ */ Y("div", { className: "h-full w-full max-w-350 mx-auto flex flex-col", children: [
9472
9479
  /* @__PURE__ */ Y(
9473
9480
  ye,
@@ -9475,9 +9482,9 @@ function ag({
9475
9482
  align: "center",
9476
9483
  className: "h-12 w-full p-4",
9477
9484
  direction: "row",
9478
- justify: "between",
9479
9485
  gap: 4,
9480
9486
  children: [
9487
+ /* @__PURE__ */ R(Tc, { className: "w-8 h-8" }),
9481
9488
  /* @__PURE__ */ Y(
9482
9489
  ye,
9483
9490
  {
@@ -9498,6 +9505,7 @@ function ag({
9498
9505
  ]
9499
9506
  }
9500
9507
  ),
9508
+ /* @__PURE__ */ R("div", { className: "grow" }),
9501
9509
  /* @__PURE__ */ Y(ye, { align: "center", direction: "row", gap: 4, children: [
9502
9510
  l !== void 0 && /* @__PURE__ */ R(an, { content: "Previous versions", children: /* @__PURE__ */ R(
9503
9511
  Pr,
@@ -9505,7 +9513,7 @@ function ag({
9505
9513
  "aria-label": "Documentation for other versions",
9506
9514
  className: "text-xs font-bold text-header-icons! cursor-pointer",
9507
9515
  to: "/versions",
9508
- children: /* @__PURE__ */ R(Tc, { className: "w-6 h-6" })
9516
+ children: /* @__PURE__ */ R(Oc, { className: "w-6 h-6" })
9509
9517
  }
9510
9518
  ) }),
9511
9519
  /* @__PURE__ */ R(an, { content: "NPM package", children: /* @__PURE__ */ R(
@@ -9526,21 +9534,25 @@ function ag({
9526
9534
  children: /* @__PURE__ */ R(Cc, { className: "w-6 h-6" })
9527
9535
  }
9528
9536
  ) }),
9529
- /* @__PURE__ */ R(an, { content: s ? "Hide menu" : "Show menu", children: /* @__PURE__ */ R(
9530
- "button",
9537
+ /* @__PURE__ */ R(
9538
+ an,
9531
9539
  {
9532
- "aria-label": "Site navigation menu",
9533
- className: he(
9534
- "block md:hidden cursor-pointer rounded-lg p-1",
9540
+ className: "block md:hidden",
9541
+ content: s ? "Hide menu" : "Show menu",
9542
+ children: /* @__PURE__ */ R(
9543
+ "button",
9535
9544
  {
9536
- "bg-black/40": !s,
9537
- "bg-black/50 text-white": s
9545
+ "aria-label": "Site navigation menu",
9546
+ className: me("cursor-pointer rounded-lg p-1", {
9547
+ "bg-black/40": !s,
9548
+ "bg-black/50 text-white": s
9549
+ }),
9550
+ onClick: a,
9551
+ children: s ? /* @__PURE__ */ R(ts, { className: "w-6 h-6 fill-current drop-shadow-black/20 drop-shadow-xs" }) : /* @__PURE__ */ R(za, { className: "w-6 h-6 fill-current drop-shadow-black/20 drop-shadow-xs" })
9538
9552
  }
9539
- ),
9540
- onClick: a,
9541
- children: s ? /* @__PURE__ */ R(ts, { className: "w-6 h-6 fill-current drop-shadow-black/20 drop-shadow-xs" }) : /* @__PURE__ */ R(za, { className: "w-6 h-6 fill-current drop-shadow-black/20 drop-shadow-xs" })
9553
+ )
9542
9554
  }
9543
- ) })
9555
+ )
9544
9556
  ] })
9545
9557
  ]
9546
9558
  }
@@ -9549,19 +9561,19 @@ function ag({
9549
9561
  /* @__PURE__ */ R(
9550
9562
  "section",
9551
9563
  {
9552
- className: he(
9564
+ className: me(
9553
9565
  "w-full bg-black/90 md:block md:w-80 md:bg-black/80 overflow-auto",
9554
9566
  {
9555
9567
  hidden: !s
9556
9568
  }
9557
9569
  ),
9558
- children: /* @__PURE__ */ R(fh, { children: e })
9570
+ children: /* @__PURE__ */ R(ph, { children: e })
9559
9571
  }
9560
9572
  ),
9561
9573
  /* @__PURE__ */ R(
9562
9574
  "main",
9563
9575
  {
9564
- className: he("w-full bg-black/90 relative overflow-auto", {
9576
+ className: me("w-full bg-black/90 relative overflow-auto", {
9565
9577
  hidden: s
9566
9578
  }),
9567
9579
  children: /* @__PURE__ */ R(
@@ -9570,7 +9582,7 @@ function ag({
9570
9582
  className: "h-full p-4 py-4 overflow-auto [mask-image:linear-gradient(to_bottom,transparent,black_1.5rem)]",
9571
9583
  "data-main-scrollable": !0,
9572
9584
  children: /* @__PURE__ */ R(qs, { children: Object.entries({
9573
- ...mh,
9585
+ ...zh,
9574
9586
  ...o
9575
9587
  }).map(([u, f]) => /* @__PURE__ */ R(
9576
9588
  Fi,
@@ -9588,7 +9600,7 @@ function ag({
9588
9600
  ] })
9589
9601
  ] }) });
9590
9602
  }
9591
- function sg({
9603
+ function cg({
9592
9604
  children: e,
9593
9605
  className: t,
9594
9606
  ...n
@@ -9602,8 +9614,8 @@ function sg({
9602
9614
  }
9603
9615
  ) });
9604
9616
  }
9605
- const zh = (e) => /* @__PURE__ */ p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 -960 960 960", width: "24px", fill: "currentColor", ...e }, /* @__PURE__ */ p.createElement("path", { d: "m424-424-86-86q-11-11-28-11t-28 11q-11 11-11 28t11 28l114 114q12 12 28 12t28-12l226-226q11-11 11-28t-11-28q-11-11-28-11t-28 11L424-424ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Z" })), Uh = (e) => /* @__PURE__ */ p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 -960 960 960", width: "24px", fill: "currentColor", ...e }, /* @__PURE__ */ p.createElement("path", { d: "M320-440h320q17 0 28.5-11.5T680-480q0-17-11.5-28.5T640-520H320q-17 0-28.5 11.5T280-480q0 17 11.5 28.5T320-440ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Z" })), Gh = (e) => /* @__PURE__ */ p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 -960 960 960", width: "24px", fill: "currentColor", ...e }, /* @__PURE__ */ p.createElement("path", { d: "M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Z" }));
9606
- function cg({
9617
+ const Uh = (e) => /* @__PURE__ */ p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 -960 960 960", width: "24px", fill: "currentColor", ...e }, /* @__PURE__ */ p.createElement("path", { d: "m424-424-86-86q-11-11-28-11t-28 11q-11 11-11 28t11 28l114 114q12 12 28 12t28-12l226-226q11-11 11-28t-11-28q-11-11-28-11t-28 11L424-424ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Z" })), Gh = (e) => /* @__PURE__ */ p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 -960 960 960", width: "24px", fill: "currentColor", ...e }, /* @__PURE__ */ p.createElement("path", { d: "M320-440h320q17 0 28.5-11.5T680-480q0-17-11.5-28.5T640-520H320q-17 0-28.5 11.5T280-480q0 17 11.5 28.5T320-440ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Z" })), qh = (e) => /* @__PURE__ */ p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 -960 960 960", width: "24px", fill: "currentColor", ...e }, /* @__PURE__ */ p.createElement("path", { d: "M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Z" }));
9618
+ function ug({
9607
9619
  checked: e,
9608
9620
  children: t,
9609
9621
  className: n,
@@ -9612,7 +9624,7 @@ function cg({
9612
9624
  ...i
9613
9625
  }) {
9614
9626
  let l, a;
9615
- return r ? (l = Uh, a = "fill-white") : e ? (l = zh, a = "fill-blue-600") : (l = Gh, a = "fill-slate-600"), /* @__PURE__ */ Y(
9627
+ return r ? (l = Gh, a = "fill-white") : e ? (l = Uh, a = "fill-blue-600") : (l = qh, a = "fill-slate-600"), /* @__PURE__ */ Y(
9616
9628
  "label",
9617
9629
  {
9618
9630
  className: `cursor-pointer rounded-lg flex flex-row items-center outline-none group ${n}`,
@@ -9646,7 +9658,7 @@ function La({
9646
9658
  return /* @__PURE__ */ R("div", { className: "relative", children: /* @__PURE__ */ R(
9647
9659
  "code",
9648
9660
  {
9649
- className: he(
9661
+ className: me(
9650
9662
  "text-sm md:text-base block text-left whitespace-pre-wrap break-normal text-white! rounded-md p-3 bg-black",
9651
9663
  "flex flex-col",
9652
9664
  e
@@ -9670,19 +9682,19 @@ function Hn({
9670
9682
  )) });
9671
9683
  }
9672
9684
  const Aa = { url: "https://github.com/bvaughn/react-lib-tools.git" };
9673
- function qh(e, t = "Assertion error") {
9685
+ function Kh(e, t = "Assertion error") {
9674
9686
  if (!e)
9675
9687
  throw Error(t);
9676
9688
  }
9677
- function Kh() {
9689
+ function Yh() {
9678
9690
  const e = X(ji);
9679
- return qh(e, "App must be rendered within a LibraryContextProvider"), e;
9691
+ return Kh(e, "App must be rendered within a LibraryContextProvider"), e;
9680
9692
  }
9681
9693
  function Ma({
9682
9694
  section: e,
9683
9695
  title: t
9684
9696
  }) {
9685
- const { packageName: n } = Kh();
9697
+ const { packageName: n } = Yh();
9686
9698
  return /* @__PURE__ */ Y(pt, { children: [
9687
9699
  /* @__PURE__ */ Y("div", { className: "text-xl", children: [
9688
9700
  e && /* @__PURE__ */ Y(pt, { children: [
@@ -9696,7 +9708,7 @@ function Ma({
9696
9708
  /* @__PURE__ */ R("title", { children: `${n}: ${e ? `${e}: ${t}` : t}` })
9697
9709
  ] });
9698
9710
  }
9699
- function Yh({
9711
+ function Zh({
9700
9712
  method: e
9701
9713
  }) {
9702
9714
  return /* @__PURE__ */ Y(pt, { children: [
@@ -9707,7 +9719,7 @@ function Yh({
9707
9719
  ] })
9708
9720
  ] });
9709
9721
  }
9710
- function ug({
9722
+ function dg({
9711
9723
  json: e,
9712
9724
  section: t
9713
9725
  }) {
@@ -9724,10 +9736,10 @@ function ug({
9724
9736
  )
9725
9737
  ] }),
9726
9738
  /* @__PURE__ */ R(Hn, { sections: e.description }),
9727
- /* @__PURE__ */ R(ye, { direction: "column", children: /* @__PURE__ */ R("dl", { className: "flex flex-col gap-2", children: e.methods.map((n, r) => /* @__PURE__ */ R(Yh, { method: n }, r)) }) })
9739
+ /* @__PURE__ */ R(ye, { direction: "column", children: /* @__PURE__ */ R("dl", { className: "flex flex-col gap-2", children: e.methods.map((n, r) => /* @__PURE__ */ R(Zh, { method: n }, r)) }) })
9728
9740
  ] });
9729
9741
  }
9730
- function dg({
9742
+ function fg({
9731
9743
  children: e,
9732
9744
  className: t,
9733
9745
  onChange: n,
@@ -9748,7 +9760,7 @@ function dg({
9748
9760
  }
9749
9761
  );
9750
9762
  }
9751
- function fg() {
9763
+ function pg() {
9752
9764
  return /* @__PURE__ */ Y(ye, { align: "center", className: "text-slate-300", direction: "row", gap: 2, children: [
9753
9765
  /* @__PURE__ */ R(ja, { className: "size-4 animate-spin" }),
9754
9766
  "Loading..."
@@ -9763,7 +9775,7 @@ function Fa({
9763
9775
  ye,
9764
9776
  {
9765
9777
  align: "center",
9766
- className: he(
9778
+ className: me(
9767
9779
  "px-4 h-8 cursor-pointer text-white/90 hover:text-white focus:bg-white/10 focus-within:bg-white/10",
9768
9780
  { "pointer-events-none text-white/50": n },
9769
9781
  t
@@ -9774,7 +9786,7 @@ function Fa({
9774
9786
  }
9775
9787
  );
9776
9788
  }
9777
- function pg({
9789
+ function mg({
9778
9790
  children: e,
9779
9791
  className: t,
9780
9792
  path: n
@@ -9782,7 +9794,7 @@ function pg({
9782
9794
  return /* @__PURE__ */ R(Pr, { to: n, children: ({ isActive: r, isPending: o }) => /* @__PURE__ */ R(
9783
9795
  Fa,
9784
9796
  {
9785
- className: he(
9797
+ className: me(
9786
9798
  "px-4 cursor-pointer",
9787
9799
  {
9788
9800
  "font-bold text-nav-active hover:text-nav-hover": r,
@@ -9794,11 +9806,11 @@ function pg({
9794
9806
  }
9795
9807
  ) });
9796
9808
  }
9797
- function mg({
9809
+ function hg({
9798
9810
  children: e,
9799
9811
  label: t
9800
9812
  }) {
9801
- return /* @__PURE__ */ Y(Vm, { as: "section", defaultOpen: !0, children: [
9813
+ return /* @__PURE__ */ Y(Wm, { as: "section", defaultOpen: !0, children: [
9802
9814
  /* @__PURE__ */ R(ba, { className: "w-full group border-none! data-focus:bg-white/10", children: /* @__PURE__ */ Y(Fa, { children: [
9803
9815
  /* @__PURE__ */ R("div", { className: "uppercase text-sm font-bold text-white/50", children: t }),
9804
9816
  /* @__PURE__ */ R("div", { className: "grow" }),
@@ -9807,13 +9819,13 @@ function mg({
9807
9819
  /* @__PURE__ */ R(wa, { className: "pl-4", children: e })
9808
9820
  ] });
9809
9821
  }
9810
- function Zh(e) {
9822
+ function Xh(e) {
9811
9823
  const t = [], n = [];
9812
9824
  return Object.values(e.props).forEach((r) => {
9813
9825
  r.required ? n.push(r) : t.push(r);
9814
9826
  }), t.sort((r, o) => r.name.localeCompare(o.name)), n.sort((r, o) => r.name.localeCompare(o.name)), { optionalProps: t, requiredProps: n };
9815
9827
  }
9816
- function Xh({ prop: e }) {
9828
+ function Jh({ prop: e }) {
9817
9829
  return /* @__PURE__ */ Y(pt, { children: [
9818
9830
  /* @__PURE__ */ R("dt", { className: "mt-6 pl-8 indent-[-1rem]", children: /* @__PURE__ */ R(
9819
9831
  La,
@@ -9831,15 +9843,15 @@ function gi({
9831
9843
  }) {
9832
9844
  return t.length === 0 ? null : /* @__PURE__ */ Y(ye, { direction: "column", children: [
9833
9845
  /* @__PURE__ */ R("div", { className: "text-lg font-bold", children: e }),
9834
- /* @__PURE__ */ R("dl", { children: t.map((n) => /* @__PURE__ */ R(Xh, { prop: n }, n.name)) })
9846
+ /* @__PURE__ */ R("dl", { children: t.map((n) => /* @__PURE__ */ R(Jh, { prop: n }, n.name)) })
9835
9847
  ] });
9836
9848
  }
9837
- function hg({
9849
+ function gg({
9838
9850
  json: e,
9839
9851
  section: t
9840
9852
  }) {
9841
9853
  const { optionalProps: n, requiredProps: r } = ce(
9842
- () => Zh(e),
9854
+ () => Xh(e),
9843
9855
  [e]
9844
9856
  );
9845
9857
  return /* @__PURE__ */ Y(ye, { direction: "column", gap: 4, children: [
@@ -9859,8 +9871,8 @@ function hg({
9859
9871
  /* @__PURE__ */ R(gi, { header: "Optional props", props: n })
9860
9872
  ] });
9861
9873
  }
9862
- const Jh = (e) => /* @__PURE__ */ p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 -960 960 960", width: "24px", fill: "currentColor", ...e }, /* @__PURE__ */ p.createElement("path", { d: "m424-408-86-86q-11-11-28-11t-28 11q-11 11-11 28t11 28l114 114q12 12 28 12t28-12l226-226q11-11 11-28t-11-28q-11-11-28-11t-28 11L424-408Zm56 328q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z" })), Qh = (e) => /* @__PURE__ */ p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 -960 960 960", width: "24px", fill: "currentColor", ...e }, /* @__PURE__ */ p.createElement("path", { d: "M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z" }));
9863
- function gg({
9874
+ const Qh = (e) => /* @__PURE__ */ p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 -960 960 960", width: "24px", fill: "currentColor", ...e }, /* @__PURE__ */ p.createElement("path", { d: "m424-408-86-86q-11-11-28-11t-28 11q-11 11-11 28t11 28l114 114q12 12 28 12t28-12l226-226q11-11 11-28t-11-28q-11-11-28-11t-28 11L424-408Zm56 328q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z" })), eg = (e) => /* @__PURE__ */ p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 -960 960 960", width: "24px", fill: "currentColor", ...e }, /* @__PURE__ */ p.createElement("path", { d: "M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z" }));
9875
+ function vg({
9864
9876
  checked: e,
9865
9877
  children: t,
9866
9878
  className: n,
@@ -9870,7 +9882,7 @@ function gg({
9870
9882
  ...l
9871
9883
  }) {
9872
9884
  let a, s;
9873
- return e ? (a = Jh, s = "fill-blue-600") : (a = Qh, s = "fill-slate-600"), /* @__PURE__ */ Y(
9885
+ return e ? (a = Qh, s = "fill-blue-600") : (a = eg, s = "fill-slate-600"), /* @__PURE__ */ Y(
9874
9886
  "label",
9875
9887
  {
9876
9888
  className: `cursor-pointer rounded-full flex flex-row items-center outline-none group ${n}`,
@@ -9899,7 +9911,7 @@ function gg({
9899
9911
  }
9900
9912
  );
9901
9913
  }
9902
- function vg({
9914
+ function bg({
9903
9915
  className: e,
9904
9916
  defaultValue: t,
9905
9917
  onChange: n,
@@ -9907,7 +9919,7 @@ function vg({
9907
9919
  placeholder: o = "",
9908
9920
  value: i
9909
9921
  }) {
9910
- return /* @__PURE__ */ R(sh, { value: i ?? t, onChange: n, children: /* @__PURE__ */ Y("div", { className: `relative ${e}`, children: [
9922
+ return /* @__PURE__ */ R(ch, { value: i ?? t, onChange: n, children: /* @__PURE__ */ Y("div", { className: `relative ${e}`, children: [
9911
9923
  /* @__PURE__ */ Y(
9912
9924
  Ra,
9913
9925
  {
@@ -9925,7 +9937,7 @@ function vg({
9925
9937
  ]
9926
9938
  }
9927
9939
  ),
9928
- /* @__PURE__ */ R(km, { as: Ie, leaveFrom: "opacity-100", leaveTo: "opacity-0", children: /* @__PURE__ */ R(
9940
+ /* @__PURE__ */ R(Tm, { as: Ie, leaveFrom: "opacity-100", leaveTo: "opacity-0", children: /* @__PURE__ */ R(
9929
9941
  Sa,
9930
9942
  {
9931
9943
  className: "absolute z-10 mt-1 max-h-50 w-full overflow-auto rounded-md py-1 bg-black/90",
@@ -9933,7 +9945,7 @@ function vg({
9933
9945
  children: r.map((l, a) => /* @__PURE__ */ R(
9934
9946
  Ca,
9935
9947
  {
9936
- className: he(
9948
+ className: me(
9937
9949
  "relative cursor-pointer select-none h-7 py-1 px-2 text-slate-300 border-none!",
9938
9950
  "data-focus:text-teal-300 data-focus:bg-black",
9939
9951
  "data-active:text-teal-300 data-active:bg-black",
@@ -9948,7 +9960,7 @@ function vg({
9948
9960
  ) })
9949
9961
  ] }) });
9950
9962
  }
9951
- function bg(e, t) {
9963
+ function wg(e, t) {
9952
9964
  switch (e) {
9953
9965
  case "danger":
9954
9966
  return t ? "bg-red-950 text-red-300 [&_svg]:text-red-500" : "bg-black/10 bg-border border-2 border-red-500 text-white [&_svg]:text-red-500 [&_a]:text-red-400!";
@@ -9963,32 +9975,32 @@ function bg(e, t) {
9963
9975
  }
9964
9976
  }
9965
9977
  export {
9966
- ag as A,
9978
+ sg as A,
9967
9979
  ye as B,
9968
9980
  nl as C,
9969
9981
  Hn as D,
9970
9982
  En as E,
9971
9983
  Ma as H,
9972
- ug as I,
9984
+ dg as I,
9973
9985
  Pr as L,
9974
- pg as N,
9975
- gg as R,
9976
- Tc as S,
9986
+ mg as N,
9987
+ vg as R,
9988
+ Oc as S,
9977
9989
  an as T,
9978
- sg as a,
9979
- ch as b,
9980
- cg as c,
9990
+ cg as a,
9991
+ uh as b,
9992
+ ug as c,
9981
9993
  La as d,
9982
9994
  ka as e,
9983
- dg as f,
9984
- fg as g,
9985
- mg as h,
9986
- hg as i,
9995
+ fg as f,
9996
+ pg as g,
9997
+ hg as h,
9998
+ gg as i,
9987
9999
  gi as j,
9988
- vg as k,
9989
- qh as l,
9990
- he as m,
9991
- bg as n,
9992
- Kh as u
10000
+ bg as k,
10001
+ Kh as l,
10002
+ me as m,
10003
+ wg as n,
10004
+ Yh as u
9993
10005
  };
9994
- //# sourceMappingURL=index-BGq8Vw-C.js.map
10006
+ //# sourceMappingURL=index-Cog7KERk.js.map