@sheetxl/utils-react 0.8.0-beta.20 → 0.8.0-beta.21

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.20
2
+ * @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.21
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: MIT
@@ -1308,7 +1308,7 @@ function gt({ tracker: e, debounce: t, keyBindings: n, root: o, elementRef: r, c
1308
1308
  }, [u, e]), R(pt.Provider, l ? {
1309
1309
  value: a,
1310
1310
  children: R("div", {
1311
- className: "command-key-seam",
1311
+ className: "sxl-command-key-seam",
1312
1312
  style: { display: "contents" },
1313
1313
  ref: c,
1314
1314
  onKeyDown: (e) => {
@@ -1612,21 +1612,21 @@ function tn(e = {}) {
1612
1612
  toggleFullscreen: f
1613
1613
  };
1614
1614
  }
1615
- var nn = "_portal-root_105xh_14", on = "_fullscreen_105xh_31", rn = 0, sn = () => {
1615
+ var nn = "_portal-root_105xh_14", on = "_fullscreen_105xh_31", rn = 0, sn = "sxl-portal-root", ln = () => {
1616
1616
  const e = document.fullscreenElement, t = e ?? document.body;
1617
- let n = document.querySelector(".portal-root");
1618
- n || (n = document.createElement("div"), n.className = `portal-root ${nn}`), n.parentElement !== t && t.appendChild(n);
1617
+ let n = document.querySelector("." + sn);
1618
+ n || (n = document.createElement("div"), n.className = `${sn} ${nn}`), n.parentElement !== t && t.appendChild(n);
1619
1619
  const o = !!e;
1620
- return n.classList.toggle("fullscreen", o), n.classList.toggle(on, o), n;
1620
+ return n.classList.toggle("sxl-fullscreen", o), n.classList.toggle(on, o), n;
1621
1621
  };
1622
- function ln() {
1623
- const [e, t] = A(!!document.fullscreenElement), n = x(() => sn(), []);
1622
+ function an() {
1623
+ const [e, t] = A(!!document.fullscreenElement), n = x(() => ln(), []);
1624
1624
  return M(() => {
1625
1625
  const e = () => {
1626
- t(!!document.fullscreenElement), sn();
1626
+ t(!!document.fullscreenElement), ln();
1627
1627
  };
1628
- return rn++, sn(), document.addEventListener("fullscreenchange", e), () => {
1629
- document.removeEventListener("fullscreenchange", e), --rn <= 0 && (rn = 0, document.querySelectorAll(".portal-root").forEach((e) => {
1628
+ return rn++, ln(), document.addEventListener("fullscreenchange", e), () => {
1629
+ document.removeEventListener("fullscreenchange", e), --rn <= 0 && (rn = 0, document.querySelectorAll("." + sn).forEach((e) => {
1630
1630
  e.parentNode?.removeChild(e);
1631
1631
  }));
1632
1632
  };
@@ -1635,21 +1635,21 @@ function ln() {
1635
1635
  isFullscreen: e
1636
1636
  };
1637
1637
  }
1638
- var an, cn = "_dragging_at5p4_10", un = /* @__PURE__ */ new Set([
1638
+ var cn, un = "_dragging_at5p4_10", hn = /* @__PURE__ */ new Set([
1639
1639
  "text",
1640
1640
  "search",
1641
1641
  "url",
1642
1642
  "tel",
1643
1643
  "password",
1644
1644
  ""
1645
- ]), hn = (e, t, n) => {
1645
+ ]), dn = (e, t, n) => {
1646
1646
  const o = e.getBoundingClientRect();
1647
1647
  if (!o.width || !o.height) return null;
1648
1648
  const r = Math.min(Math.max(t, o.left + 1), o.right - 1), i = Math.min(Math.max(n, o.top + 1), o.bottom - 1), s = e.ownerDocument, l = s.caretPositionFromPoint?.(r, i);
1649
1649
  if (l) return l.offset;
1650
1650
  const a = s.caretRangeFromPoint?.(r, i);
1651
1651
  return a ? a.startOffset : null;
1652
- }, dn = () => {
1652
+ }, fn = () => {
1653
1653
  const e = z(null);
1654
1654
  return M(() => () => {
1655
1655
  e.current?.();
@@ -1657,13 +1657,13 @@ var an, cn = "_dragging_at5p4_10", un = /* @__PURE__ */ new Set([
1657
1657
  onPointerDown: (t) => {
1658
1658
  if (void 0 !== t?.button && 0 !== t.button) return;
1659
1659
  if (e.current) return;
1660
- const n = t?.shiftKey ? null : (o = t?.target, o instanceof HTMLTextAreaElement ? o.disabled ? null : o : o instanceof HTMLInputElement && !o.disabled && un.has(o.type) ? o : null);
1660
+ const n = t?.shiftKey ? null : (o = t?.target, o instanceof HTMLTextAreaElement ? o.disabled ? null : o : o instanceof HTMLInputElement && !o.disabled && hn.has(o.type) ? o : null);
1661
1661
  var o;
1662
- const r = n && void 0 !== t?.clientX && void 0 !== t?.clientY ? hn(n, t.clientX, t.clientY) : null;
1662
+ const r = n && void 0 !== t?.clientX && void 0 !== t?.clientY ? dn(n, t.clientX, t.clientY) : null;
1663
1663
  let i = null !== n && null !== r, s = t?.clientX ?? 0, l = t?.clientY ?? 0;
1664
1664
  const a = (e, t) => {
1665
1665
  if (!i || !n || null === r) return;
1666
- const o = hn(n, e, t);
1666
+ const o = dn(n, e, t);
1667
1667
  null !== o && n.setSelectionRange(Math.min(r, o), Math.max(r, o), o < r ? "backward" : "forward");
1668
1668
  }, c = (e) => {
1669
1669
  s = e.clientX, l = e.clientY, a(s, l);
@@ -1680,9 +1680,9 @@ var an, cn = "_dragging_at5p4_10", un = /* @__PURE__ */ new Set([
1680
1680
  const r = (e) => Math.max(-24, Math.min(24, e));
1681
1681
  n.scrollLeft += r(t), n.scrollTop += r(o), a(s, l);
1682
1682
  }, 50) : 0, f = () => {
1683
- e.current = null, h.classList.remove(cn), d && window.clearInterval(d), window.removeEventListener("mousedown", u, !0), window.removeEventListener("pointermove", c, !0), window.removeEventListener("pointerup", f, !0), window.removeEventListener("pointercancel", f, !0);
1683
+ e.current = null, h.classList.remove(un), d && window.clearInterval(d), window.removeEventListener("mousedown", u, !0), window.removeEventListener("pointermove", c, !0), window.removeEventListener("pointerup", f, !0), window.removeEventListener("pointercancel", f, !0);
1684
1684
  };
1685
- e.current = f, h.classList.add(cn), i && window.addEventListener("mousedown", u, {
1685
+ e.current = f, h.classList.add(un), i && window.addEventListener("mousedown", u, {
1686
1686
  capture: !0,
1687
1687
  once: !0
1688
1688
  }), window.addEventListener("pointermove", c, !0), window.addEventListener("pointerup", f, !0), window.addEventListener("pointercancel", f, !0);
@@ -1692,15 +1692,15 @@ var an, cn = "_dragging_at5p4_10", un = /* @__PURE__ */ new Set([
1692
1692
  }
1693
1693
  }), []);
1694
1694
  };
1695
- function fn(e, t) {
1695
+ function pn(e, t) {
1696
1696
  const n = (() => {
1697
- if (void 0 !== an) return an;
1697
+ if (void 0 !== cn) return cn;
1698
1698
  try {
1699
- an = "undefined" == typeof document ? null : document.createElement("canvas").getContext("2d") ?? null;
1699
+ cn = "undefined" == typeof document ? null : document.createElement("canvas").getContext("2d") ?? null;
1700
1700
  } catch {
1701
- an = null;
1701
+ cn = null;
1702
1702
  }
1703
- return an;
1703
+ return cn;
1704
1704
  })();
1705
1705
  return n ? (n.font = `${t.style ?? "normal"} ${t.weight ?? "normal"} ${t.size}px ${o = t.family || "sans-serif", o.split(",").map((e) => {
1706
1706
  const t = e.trim();
@@ -1708,7 +1708,7 @@ function fn(e, t) {
1708
1708
  }).join(", ")}`, n.measureText(e).width) : e.length * t.size * .6;
1709
1709
  var o;
1710
1710
  }
1711
- function pn(e) {
1711
+ function mn(e) {
1712
1712
  if (!e) throw new Error("must have a PointerHandlerOptions");
1713
1713
  const { onPointerDown: t, onPointerUp: n, onPointerMoveOrWait: o, processTouch: r = !1 } = e, i = Yt(t, [t]), s = Yt(n, [n]), l = Yt(o, [o]), a = z(!1), c = e?.timerInitial ?? 230, u = e?.timerContinuous ?? c / 2, h = z(null), d = z(null), f = z(null), p = z(null), m = x(() => {
1714
1714
  p.current && (clearTimeout(p.current), p.current = null);
@@ -1769,8 +1769,8 @@ function pn(e) {
1769
1769
  }, !1 !== i(e, f.current) && (h.current = e, d.current = e.nativeEvent, document.addEventListener(`${_}up`, v, { passive: !1 }), document.addEventListener(`${_}move`, w, { passive: !1 }), document.addEventListener("pointercancel", v, { passive: !1 }), document.addEventListener("keydown", S, { passive: !1 }), document.addEventListener("keyup", E, { passive: !1 }), window.addEventListener("blur", y, { passive: !0 }), a.current = !0, g(c)));
1770
1770
  }, [c, r]);
1771
1771
  }
1772
- function mn(e, t) {
1773
- return pn({
1772
+ function gn(e, t) {
1773
+ return mn({
1774
1774
  onPointerDown: e,
1775
1775
  onPointerMoveOrWait: (t, n, o) => {
1776
1776
  e?.(o);
@@ -1778,63 +1778,63 @@ function mn(e, t) {
1778
1778
  ...t
1779
1779
  });
1780
1780
  }
1781
- var gn = null, _n = /* @__PURE__ */ new Set(), vn = !1, yn = () => "touch" == ("touch" === Fe().primaryInput ? "touch" : "mouse") ? "touch" : gn ?? "mouse", bn = (e) => {
1781
+ var _n = null, vn = /* @__PURE__ */ new Set(), yn = !1, bn = () => "touch" == ("touch" === Fe().primaryInput ? "touch" : "mouse") ? "touch" : _n ?? "mouse", wn = (e) => {
1782
1782
  const t = "touch" === e.pointerType ? "touch" : "mouse";
1783
- if (t === gn) return;
1784
- const n = yn();
1785
- gn = t, yn() !== n && _n.forEach((e) => e());
1786
- }, wn = (e) => (_n.add(e), vn || "undefined" == typeof document || (document.addEventListener("pointerdown", bn, {
1783
+ if (t === _n) return;
1784
+ const n = bn();
1785
+ _n = t, bn() !== n && vn.forEach((e) => e());
1786
+ }, xn = (e) => (vn.add(e), yn || "undefined" == typeof document || (document.addEventListener("pointerdown", wn, {
1787
1787
  capture: !0,
1788
1788
  passive: !0
1789
- }), vn = !0), () => {
1790
- _n.delete(e), 0 === _n.size && vn && (document.removeEventListener("pointerdown", bn, { capture: !0 }), vn = !1);
1791
- }), xn = () => "mouse", Sn = () => D(wn, yn, xn), Mn = ({ initValue: e, useHookBody: t, applyStateChange: n }) => {
1789
+ }), yn = !0), () => {
1790
+ vn.delete(e), 0 === vn.size && yn && (document.removeEventListener("pointerdown", wn, { capture: !0 }), yn = !1);
1791
+ }), Sn = () => "mouse", Mn = () => D(xn, bn, Sn), En = ({ initValue: e, useHookBody: t, applyStateChange: n }) => {
1792
1792
  const o = z(e);
1793
1793
  if ("function" != typeof t) throw new Error("function expected as hook body parameter. got " + typeof t);
1794
1794
  const r = t();
1795
1795
  return L(() => {
1796
1796
  o.current !== r && (o.current = r, n(r));
1797
1797
  }, [n, r]), null;
1798
- }, En = (e) => {
1798
+ }, Cn = (e) => {
1799
1799
  console && console.warn && console.warn(e);
1800
- }, Cn = globalThis, Ln = 1, Tn = !1, kn = !1, zn = [], An = [], Dn = () => {
1801
- An.forEach((e) => e());
1802
- }, Pn = ({ automaticContainerInternalUseOnly: e }) => {
1800
+ }, Ln = globalThis, Tn = 1, kn = !1, zn = !1, An = [], Dn = [], Pn = () => {
1801
+ Dn.forEach((e) => e());
1802
+ }, Rn = ({ automaticContainerInternalUseOnly: e }) => {
1803
1803
  const [t, n] = A([]), o = z([]);
1804
- return o.current = t, e || !1 !== Tn || (kn = !0), M(() => {
1804
+ return o.current = t, e || !1 !== kn || (zn = !0), M(() => {
1805
1805
  let t = !0;
1806
1806
  function r() {
1807
- if (t) return An[0] !== r ? (e || !0 !== Tn || En("SingletonHooksContainer is mounted after some singleton hook has been used.Your SingletonHooksContainer will not be used in favor of internal one."), void n((e) => [])) : void n([...zn]);
1807
+ if (t) return Dn[0] !== r ? (e || !0 !== kn || Cn("SingletonHooksContainer is mounted after some singleton hook has been used.Your SingletonHooksContainer will not be used in favor of internal one."), void n((e) => [])) : void n([...An]);
1808
1808
  }
1809
- return An.push(r), Dn(), () => {
1810
- t = !1, o.current?.length > 0 && En("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"), An.splice(An.indexOf(r), 1), Dn();
1809
+ return Dn.push(r), Pn(), () => {
1810
+ t = !1, o.current?.length > 0 && Cn("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"), Dn.splice(Dn.indexOf(r), 1), Pn();
1811
1811
  };
1812
- }, [e]), R(P, { children: t.map(({ hook: e, key: t }) => _(Mn, {
1812
+ }, [e]), R(P, { children: t.map(({ hook: e, key: t }) => _(En, {
1813
1813
  ...e,
1814
1814
  key: t
1815
1815
  })) });
1816
- }, Rn = (e) => {
1817
- const t = Ln++;
1818
- return zn.push({
1816
+ }, $n = (e) => {
1817
+ const t = Tn++;
1818
+ return An.push({
1819
1819
  hook: e,
1820
1820
  key: t
1821
- }), 0 === An.length && !1 === kn && (Tn = !0, ((e) => {
1822
- if (Cn.document && Cn.document.createElement) {
1823
- const t = Cn.document.createElement("div");
1821
+ }), 0 === Dn.length && !1 === zn && (kn = !0, ((e) => {
1822
+ if (Ln.document && Ln.document.createElement) {
1823
+ const t = Ln.document.createElement("div");
1824
1824
  O(t).render(R(e, { automaticContainerInternalUseOnly: !0 }));
1825
- } else En("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.");
1826
- })(Pn)), Dn(), () => {
1827
- zn.splice(zn.findIndex((e) => e.key === t), 1), Dn();
1825
+ } else Cn("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.");
1826
+ })(Rn)), Pn(), () => {
1827
+ An.splice(An.findIndex((e) => e.key === t), 1), Pn();
1828
1828
  };
1829
- }, $n = null;
1830
- $n || ($n = (e, t, n = {}) => {
1829
+ }, Bn = null;
1830
+ Bn || (Bn = (e, t, n = {}) => {
1831
1831
  let o, r, i = !1, s = !1, l = [], { unmountIfNoConsumers: a = !1 } = n;
1832
1832
  const c = (e) => {
1833
1833
  r = e, I(() => l.forEach((t) => t(e)));
1834
1834
  }, u = () => (s || (r = "function" == typeof e ? e() : e, s = !0), r);
1835
1835
  return () => {
1836
1836
  const [n, s] = A(u);
1837
- return M(() => (i || (i = !0, o = Rn({
1837
+ return M(() => (i || (i = !0, o = $n({
1838
1838
  initValue: e,
1839
1839
  useHookBody: t,
1840
1840
  applyStateChange: c
@@ -1843,32 +1843,32 @@ $n || ($n = (e, t, n = {}) => {
1843
1843
  }), []), n;
1844
1844
  };
1845
1845
  });
1846
- var Bn = $n, On = () => {
1846
+ var On = Bn, Hn = () => {
1847
1847
  console.warn("You must call useEditMode before setting its state.");
1848
- }, Hn = Bn(null, () => {
1848
+ }, In = On(null, () => {
1849
1849
  const [e, t] = A(null);
1850
- return On = t, e;
1851
- }), In = (e) => {
1852
- On((t) => ("function" == typeof e && (e = e(t)), t?.onModeChange?.(e ?? null), e));
1853
- }, Nn = /* @__PURE__ */ new Set(), Fn = (e, t) => {
1854
- Nn.forEach((n) => n(e, t)), "done" === t ? e.done?.() : e.cancel?.();
1855
- }, Wn = (e) => (Nn.add(e), () => {
1856
- Nn.delete(e);
1857
- }), Kn = () => {
1858
- const e = Hn();
1850
+ return Hn = t, e;
1851
+ }), Nn = (e) => {
1852
+ Hn((t) => ("function" == typeof e && (e = e(t)), t?.onModeChange?.(e ?? null), e));
1853
+ }, Fn = /* @__PURE__ */ new Set(), Wn = (e, t) => {
1854
+ Fn.forEach((n) => n(e, t)), "done" === t ? e.done?.() : e.cancel?.();
1855
+ }, Kn = (e) => (Fn.add(e), () => {
1856
+ Fn.delete(e);
1857
+ }), Vn = () => {
1858
+ const e = In();
1859
1859
  return T(() => ({
1860
- setMode: In,
1860
+ setMode: Nn,
1861
1861
  getMode: () => e
1862
1862
  }), [e]);
1863
- }, Vn = { Active: "language" };
1864
- function jn() {
1863
+ }, jn = { Active: "language" };
1864
+ function Yn() {
1865
1865
  return D((e) => t.addChangeListener(e), () => t.getActive(), () => t.getActive());
1866
1866
  }
1867
- function Yn() {
1867
+ function Xn() {
1868
1868
  const e = D((e) => t.addChangeListener(e), () => t.getRevision(), () => t.getRevision());
1869
1869
  return T(() => (e, n) => t.lookup(e, n) ?? e, [e]);
1870
1870
  }
1871
- var Xn = (e, t, n, o) => ({
1871
+ var Zn = (e, t, n, o) => ({
1872
1872
  x: e,
1873
1873
  y: t,
1874
1874
  width: n,
@@ -1887,9 +1887,9 @@ var Xn = (e, t, n, o) => ({
1887
1887
  right: e + n,
1888
1888
  bottom: t + o
1889
1889
  })
1890
- }), Zn = (e) => {
1891
- return Xn(e.textareaRect.left + (e.markerRect.left - e.mirrorRect.left) - e.scrollLeft, e.textareaRect.top + (e.markerRect.top - e.mirrorRect.top) - e.scrollTop, 0, e.markerRect.height);
1892
- }, qn = [
1890
+ }), qn = (e) => {
1891
+ return Zn(e.textareaRect.left + (e.markerRect.left - e.mirrorRect.left) - e.scrollLeft, e.textareaRect.top + (e.markerRect.top - e.mirrorRect.top) - e.scrollTop, 0, e.markerRect.height);
1892
+ }, Un = [
1893
1893
  "paddingTop",
1894
1894
  "paddingRight",
1895
1895
  "paddingBottom",
@@ -1919,18 +1919,18 @@ var Xn = (e, t, n, o) => ({
1919
1919
  "wordBreak",
1920
1920
  "overflowWrap",
1921
1921
  "tabSize"
1922
- ], Un = (e, t, n, o = 0) => {
1923
- if (!e || "undefined" == typeof document) return Xn(0, 0, 0, 0);
1922
+ ], Gn = (e, t, n, o = 0) => {
1923
+ if (!e || "undefined" == typeof document) return Zn(0, 0, 0, 0);
1924
1924
  const r = e.value, i = Math.max(0, Math.min(t ?? e.selectionStart ?? r.length, r.length)), s = !n, l = n ?? document.createElement("div");
1925
1925
  l.setAttribute("aria-hidden", "true"), ((e, t) => {
1926
1926
  const n = getComputedStyle(t), o = e.style;
1927
- for (const e of qn) o[e] = n[e];
1927
+ for (const e of Un) o[e] = n[e];
1928
1928
  o.position = "absolute", o.top = "0", o.left = "0", o.visibility = "hidden", o.pointerEvents = "none", o.overflow = "hidden", o.boxSizing = "border-box", o.height = "auto", o.width = `${t.offsetWidth}px`;
1929
1929
  })(l, e), l.textContent = r.slice(0, i);
1930
1930
  const a = document.createElement("span");
1931
1931
  a.textContent = r.slice(i) || "​", l.appendChild(a), s && document.body.appendChild(l);
1932
1932
  try {
1933
- const t = getComputedStyle(e), n = a.getBoundingClientRect(), r = l.getBoundingClientRect(), i = n.height || parseFloat(t.lineHeight) || 1.2 * parseFloat(t.fontSize) || 0, s = Zn({
1933
+ const t = getComputedStyle(e), n = a.getBoundingClientRect(), r = l.getBoundingClientRect(), i = n.height || parseFloat(t.lineHeight) || 1.2 * parseFloat(t.fontSize) || 0, s = qn({
1934
1934
  textareaRect: e.getBoundingClientRect(),
1935
1935
  mirrorRect: r,
1936
1936
  markerRect: {
@@ -1941,11 +1941,11 @@ var Xn = (e, t, n, o) => ({
1941
1941
  scrollLeft: e.scrollLeft,
1942
1942
  scrollTop: e.scrollTop
1943
1943
  });
1944
- return o ? Xn(s.left - o, s.top, 0, s.height) : s;
1944
+ return o ? Zn(s.left - o, s.top, 0, s.height) : s;
1945
1945
  } finally {
1946
1946
  s ? l.remove() : l.textContent = "";
1947
1947
  }
1948
- }, Gn = (e) => {
1948
+ }, Jn = (e) => {
1949
1949
  const t = z(null);
1950
1950
  M(() => {
1951
1951
  if ("undefined" == typeof document) return;
@@ -1954,12 +1954,12 @@ var Xn = (e, t, n, o) => ({
1954
1954
  e.remove(), t.current = null;
1955
1955
  };
1956
1956
  }, []);
1957
- const n = x((n, o) => Un(e.current, n, t.current ?? void 0, o), [e]);
1957
+ const n = x((n, o) => Gn(e.current, n, t.current ?? void 0, o), [e]);
1958
1958
  return {
1959
1959
  getCaretRect: n,
1960
1960
  caretAnchor: x((e, t) => ({ getBoundingClientRect: () => n("function" == typeof e ? e() : e, "function" == typeof t ? t() : t) }), [n])
1961
1961
  };
1962
- }, Jn = Bn({
1962
+ }, Qn = On({
1963
1963
  setClipboard: (e) => {
1964
1964
  throw new Error("This is only available via the useClipboard.");
1965
1965
  },
@@ -1975,7 +1975,7 @@ var Xn = (e, t, n, o) => ({
1975
1975
  refNativeLastKey: z(null)
1976
1976
  };
1977
1977
  });
1978
- function Qn(e, t = !0) {
1978
+ function eo(e, t = !0) {
1979
1979
  const n = z(e);
1980
1980
  M(() => {
1981
1981
  if (t) {
@@ -1985,16 +1985,16 @@ function Qn(e, t = !0) {
1985
1985
  n.current = e;
1986
1986
  });
1987
1987
  }
1988
- var eo = !1, to = 0, no = "undefined" != typeof document ? L : M, oo = () => "sheetxl-ui-" + to++;
1989
- var ro = f["useId".toString()], io = null != ro ? ro : function() {
1990
- const [e, t] = A(() => eo ? oo() : void 0);
1991
- return no(() => {
1992
- null == e && t(oo());
1988
+ var to = !1, no = 0, oo = "undefined" != typeof document ? L : M, ro = () => "sheetxl-ui-" + no++;
1989
+ var io = f["useId".toString()], so = null != io ? io : function() {
1990
+ const [e, t] = A(() => to ? ro() : void 0);
1991
+ return oo(() => {
1992
+ null == e && t(ro());
1993
1993
  }, []), M(() => {
1994
- eo || (eo = !0);
1994
+ to || (to = !0);
1995
1995
  }, []), e;
1996
- }, so = [];
1997
- function lo(e, t, n = so, o) {
1996
+ }, lo = [];
1997
+ function ao(e, t, n = lo, o) {
1998
1998
  const r = z(null), i = z(null);
1999
1999
  return C(e ?? i, () => {
2000
2000
  const e = void 0 === o ? r.current : o;
@@ -2014,20 +2014,20 @@ function lo(e, t, n = so, o) {
2014
2014
  return e;
2015
2015
  }, void 0 === o ? n : [...n, o]), r;
2016
2016
  }
2017
- var ao = () => "undefined" == typeof navigator ? null : navigator.virtualKeyboard ?? null, co = null, uo = () => "undefined" != typeof window ? window.visualViewport ?? null : null, ho = () => {
2018
- const e = uo();
2019
- return e ? co && co.width === e.width && co.height === e.height && co.offsetTop === e.offsetTop && co.offsetLeft === e.offsetLeft ? co : co = {
2017
+ var co = () => "undefined" == typeof navigator ? null : navigator.virtualKeyboard ?? null, uo = null, ho = () => "undefined" != typeof window ? window.visualViewport ?? null : null, fo = () => {
2018
+ const e = ho();
2019
+ return e ? uo && uo.width === e.width && uo.height === e.height && uo.offsetTop === e.offsetTop && uo.offsetLeft === e.offsetLeft ? uo : uo = {
2020
2020
  width: e.width,
2021
2021
  height: e.height,
2022
2022
  offsetTop: e.offsetTop,
2023
2023
  offsetLeft: e.offsetLeft
2024
2024
  } : null;
2025
- }, fo = (e) => {
2026
- const t = uo(), n = ao();
2025
+ }, po = (e) => {
2026
+ const t = ho(), n = co();
2027
2027
  return t || n ? (t?.addEventListener("resize", e), t?.addEventListener("scroll", e), n?.addEventListener("geometrychange", e), () => {
2028
2028
  t?.removeEventListener("resize", e), t?.removeEventListener("scroll", e), n?.removeEventListener("geometrychange", e);
2029
2029
  }) : () => {};
2030
- }, po = () => () => {}, mo = () => null, go = (e = !0) => D(e ? fo : po, e ? ho : mo, mo), _o = "undefined" != typeof window ? L : M, vo = Object.freeze({
2030
+ }, mo = () => () => {}, go = () => null, _o = (e = !0) => D(e ? po : mo, e ? fo : go, go), vo = "undefined" != typeof window ? L : M, yo = Object.freeze({
2031
2031
  x: 0,
2032
2032
  y: 0,
2033
2033
  width: 0,
@@ -2037,9 +2037,9 @@ var ao = () => "undefined" == typeof navigator ? null : navigator.virtualKeyboar
2037
2037
  bottom: 0,
2038
2038
  right: 0
2039
2039
  });
2040
- function yo() {
2041
- const [e, t] = A(null), [n, o] = A(vo), r = z(n), i = x((e) => t(e), []);
2042
- return _o(() => {
2040
+ function bo() {
2041
+ const [e, t] = A(null), [n, o] = A(yo), r = z(n), i = x((e) => t(e), []);
2042
+ return vo(() => {
2043
2043
  if (!e || "undefined" == typeof ResizeObserver) return;
2044
2044
  const t = (e) => {
2045
2045
  var t, n;
@@ -2079,24 +2079,24 @@ function yo() {
2079
2079
  return i.observe(e), () => i.disconnect();
2080
2080
  }, [e]), [i, n];
2081
2081
  }
2082
- var bo = "sxl-history-change", wo = !1, xo = () => {
2083
- if (wo) return;
2084
- wo = !0;
2082
+ var wo = "sxl-history-change", xo = !1, So = () => {
2083
+ if (xo) return;
2084
+ xo = !0;
2085
2085
  const e = window.history;
2086
2086
  for (const t of ["pushState", "replaceState"]) {
2087
2087
  const n = e[t];
2088
2088
  e[t] = function(...e) {
2089
2089
  const t = n.apply(this, e);
2090
- return window.dispatchEvent(new Event(bo)), t;
2090
+ return window.dispatchEvent(new Event(wo)), t;
2091
2091
  };
2092
2092
  }
2093
- }, So = (e) => (xo(), window.addEventListener("popstate", e), window.addEventListener(bo, e), () => {
2094
- window.removeEventListener("popstate", e), window.removeEventListener(bo, e);
2095
- }), Mo = () => window.location.search, Eo = () => "";
2096
- function Co() {
2097
- return D(So, Mo, Eo);
2093
+ }, Mo = (e) => (So(), window.addEventListener("popstate", e), window.addEventListener(wo, e), () => {
2094
+ window.removeEventListener("popstate", e), window.removeEventListener(wo, e);
2095
+ }), Eo = () => window.location.search, Co = () => "";
2096
+ function Lo() {
2097
+ return D(Mo, Eo, Co);
2098
2098
  }
2099
- var Lo = 3, To = .5, ko = 50, zo = (e) => ({
2099
+ var To = 3, ko = .5, zo = 50, Ao = (e) => ({
2100
2100
  x: e.x,
2101
2101
  y: e.y,
2102
2102
  width: e.width,
@@ -2106,8 +2106,8 @@ var Lo = 3, To = .5, ko = 50, zo = (e) => ({
2106
2106
  right: e.right,
2107
2107
  bottom: e.bottom
2108
2108
  });
2109
- function Ao(e = {}) {
2110
- const { threshold: t = To, stillnessThreshold: n = Lo, maxHierarchyDepth: o = ko } = e, [r, i] = yo(), s = z(null), [l, a] = k((e) => e + 1, 0), c = z(void 0), u = z({
2109
+ function Do(e = {}) {
2110
+ const { threshold: t = ko, stillnessThreshold: n = To, maxHierarchyDepth: o = zo } = e, [r, i] = bo(), s = z(null), [l, a] = k((e) => e + 1, 0), c = z(void 0), u = z({
2111
2111
  x: 0,
2112
2112
  y: 0,
2113
2113
  width: 0,
@@ -2128,7 +2128,7 @@ function Ao(e = {}) {
2128
2128
  const l = () => {
2129
2129
  if (!e) return;
2130
2130
  const o = e.getBoundingClientRect(), s = u.current;
2131
- Math.abs(o.x - s.x) > t || Math.abs(o.y - s.y) > t || Math.abs(o.width - s.width) > t || Math.abs(o.height - s.height) > t ? (r || (r = !0, f(zo(o)), a()), i = 0) : i++, r && i >= n && (r = !1, f(zo(o)), a()), u.current = zo(o), c.current = requestAnimationFrame(l);
2131
+ Math.abs(o.x - s.x) > t || Math.abs(o.y - s.y) > t || Math.abs(o.width - s.width) > t || Math.abs(o.height - s.height) > t ? (r || (r = !0, f(Ao(o)), a()), i = 0) : i++, r && i >= n && (r = !1, f(Ao(o)), a()), u.current = Ao(o), c.current = requestAnimationFrame(l);
2132
2132
  };
2133
2133
  c.current = requestAnimationFrame(l);
2134
2134
  const h = (e) => {
@@ -2152,7 +2152,7 @@ function Ao(e = {}) {
2152
2152
  o
2153
2153
  ]), [h, d];
2154
2154
  }
2155
- var Do = w(v((e, t) => {
2155
+ var Po = w(v((e, t) => {
2156
2156
  const { refFocusStart: n, ...o } = e, r = z(null), i = x(() => {
2157
2157
  if (n) return void n?.current?.focus();
2158
2158
  const e = r.current?.parentElement;
@@ -2177,11 +2177,11 @@ var Do = w(v((e, t) => {
2177
2177
  onFocus: i,
2178
2178
  ...o
2179
2179
  });
2180
- })), Po = (e) => {
2180
+ })), Ro = (e) => {
2181
2181
  const { render: t, props: n } = e;
2182
2182
  return t ? t(n) : null;
2183
2183
  };
2184
- function Ro(e, t, n = !1) {
2184
+ function $o(e, t, n = !1) {
2185
2185
  if (0 === t) return e;
2186
2186
  function o(e, t, n) {
2187
2187
  let o = t.x - e.x, i = t.y - e.y, s = Math.sqrt(o * o + i * i);
@@ -2241,10 +2241,10 @@ function Ro(e, t, n = !1) {
2241
2241
  return e + t.join(" ") + " ";
2242
2242
  }, "");
2243
2243
  }
2244
- var $o = w(v((e, t) => {
2245
- const { className: n, style: o, children: r, radius: i = 4, strokeWidth: s = 1, strokeColor: l = "grey", variant: a = "tab", clipInset: c, ...u } = e, [h, { width: d, height: f }] = yo(), p = z(null), g = c?.top ?? 0, _ = c?.right ?? 0, v = c?.bottom ?? 0, b = c?.left ?? 0, w = T(() => {
2244
+ var Bo = w(v((e, t) => {
2245
+ const { className: n, style: o, children: r, radius: i = 4, strokeWidth: s = 1, strokeColor: l = "grey", variant: a = "tab", clipInset: c, ...u } = e, [h, { width: d, height: f }] = bo(), p = z(null), g = c?.top ?? 0, _ = c?.right ?? 0, v = c?.bottom ?? 0, b = c?.left ?? 0, w = T(() => {
2246
2246
  const e = d - _, t = f - v;
2247
- return Ro(`M ${b} ${g} L ${e} ${g} L ${e} ${t} L ${b} ${t} Z`, i);
2247
+ return $o(`M ${b} ${g} L ${e} ${g} L ${e} ${t} L ${b} ${t} Z`, i);
2248
2248
  }, [
2249
2249
  d,
2250
2250
  f,
@@ -2255,7 +2255,7 @@ var $o = w(v((e, t) => {
2255
2255
  b
2256
2256
  ]), x = T(() => "rounded" === a ? w : ((e, t = 0) => {
2257
2257
  const n = e / 2, o = f - n + t;
2258
- return Ro(`M 0 ${n} L ${i} ${n} L ${i} ${o} L ${2 * i} ${o} L ${d - 2 * i} ${o} M ${d - 2 * i} ${o} L ${d - i} ${o} L ${d - i} ${n} L ${d} ${n}`, i);
2258
+ return $o(`M 0 ${n} L ${i} ${n} L ${i} ${o} L ${2 * i} ${o} L ${d - 2 * i} ${o} M ${d - 2 * i} ${o} L ${d - i} ${o} L ${d - i} ${n} L ${d} ${n}`, i);
2259
2259
  })(s), [
2260
2260
  a,
2261
2261
  w,
@@ -2267,7 +2267,7 @@ var $o = w(v((e, t) => {
2267
2267
  if (0 === i) return;
2268
2268
  if ("rounded" === a) return w;
2269
2269
  const e = f - s / 2;
2270
- return Ro(`M 0 0 L ${i} 0 L ${i} ${e} L ${d - i} ${e} L ${d - i} 0 L ${d} 0`, i);
2270
+ return $o(`M 0 0 L ${i} 0 L ${i} ${e} L ${d - i} ${e} L ${d - i} 0 L ${d} 0`, i);
2271
2271
  }, [
2272
2272
  d,
2273
2273
  f,
@@ -2311,11 +2311,11 @@ var $o = w(v((e, t) => {
2311
2311
  })
2312
2312
  })]
2313
2313
  });
2314
- })), Bo = g(null);
2315
- function Oo() {
2316
- return S(Bo);
2314
+ })), Oo = g(null);
2315
+ function Ho() {
2316
+ return S(Oo);
2317
2317
  }
2318
- function Ho(e, t) {
2318
+ function Io(e, t) {
2319
2319
  const n = t?.renderError;
2320
2320
  let o = null;
2321
2321
  const r = () => {
@@ -2343,13 +2343,13 @@ function Ho(e, t) {
2343
2343
  const [t, n] = A(i), s = x(() => {
2344
2344
  n(() => (o && !o.failed || (o = r()), o.component));
2345
2345
  }, []);
2346
- return R(Bo.Provider, {
2346
+ return R(Oo.Provider, {
2347
2347
  value: s,
2348
2348
  children: R(t, { ...e })
2349
2349
  });
2350
2350
  };
2351
2351
  }
2352
- var Io = class extends p {
2352
+ var No = class extends p {
2353
2353
  constructor(...e) {
2354
2354
  super(...e), this.state = { error: null }, this._reportedMessage = null;
2355
2355
  }
@@ -2365,27 +2365,27 @@ var Io = class extends p {
2365
2365
  render() {
2366
2366
  return this.state.error ? this.props.fallback ?? null : this.props.children;
2367
2367
  }
2368
- }, No = ({ children: e, fallback: t }) => {
2368
+ }, Fo = ({ children: e, fallback: t }) => {
2369
2369
  const n = jt(), o = x((e) => {
2370
2370
  n.showError(e);
2371
2371
  }, [n]);
2372
- return R(Io, {
2372
+ return R(No, {
2373
2373
  fallback: t,
2374
2374
  onError: o,
2375
2375
  children: e
2376
2376
  });
2377
- }, Fo = /\b(?:chrome|moz|safari-web|ms-browser)-extension:\/\//, Wo = /\breact_devtools_backend/;
2378
- function Ko(e, t) {
2377
+ }, Wo = /\b(?:chrome|moz|safari-web|ms-browser)-extension:\/\//, Ko = /\breact_devtools_backend/;
2378
+ function Vo(e, t) {
2379
2379
  const n = `${e ?? ""}\n${t instanceof Error ? t.stack ?? "" : ""}`;
2380
- return Fo.test(n) || Wo.test(n);
2380
+ return Wo.test(n) || Ko.test(n);
2381
2381
  }
2382
- var Vo = class {
2382
+ var jo = class {
2383
2383
  constructor(e) {
2384
2384
  this.notifier = e, this.handleUnhandledRejection = (e) => {
2385
2385
  const t = e.reason;
2386
- t instanceof Error && t.message && t.message.startsWith("Maximum update depth exceeded") ? console.warn(t) : t instanceof DOMException && "AbortError" === t.name || Ko(void 0, t) || (this.notifier.showError(t), t instanceof n && e.preventDefault());
2386
+ t instanceof Error && t.message && t.message.startsWith("Maximum update depth exceeded") ? console.warn(t) : t instanceof DOMException && "AbortError" === t.name || Vo(void 0, t) || (this.notifier.showError(t), t instanceof n && e.preventDefault());
2387
2387
  }, this.handleGlobalError = (e) => {
2388
- "string" == typeof e.message && e.message.includes("ResizeObserver loop") || Ko(e.filename, e.error) || this.notifier.showError(e.error ?? e.message);
2388
+ "string" == typeof e.message && e.message.includes("ResizeObserver loop") || Vo(e.filename, e.error) || this.notifier.showError(e.error ?? e.message);
2389
2389
  }, this.setupGlobalHandlers();
2390
2390
  }
2391
2391
  setupGlobalHandlers() {
@@ -2394,19 +2394,19 @@ var Vo = class {
2394
2394
  cleanup() {
2395
2395
  window.removeEventListener("unhandledrejection", this.handleUnhandledRejection), window.removeEventListener("error", this.handleGlobalError);
2396
2396
  }
2397
- }, jo = ({ children: e }) => {
2397
+ }, Yo = ({ children: e }) => {
2398
2398
  const t = jt();
2399
2399
  return M(() => {
2400
- const e = new Vo(t);
2400
+ const e = new jo(t);
2401
2401
  return () => {
2402
2402
  e.cleanup();
2403
2403
  };
2404
2404
  }, [t]), R(P, { children: e });
2405
- }, Yo = {
2405
+ }, Xo = {
2406
2406
  grid: 1250,
2407
2407
  popup: 1300,
2408
2408
  tooltip: 1500
2409
- }, Xo = (e, t = 0) => Zo(`var(--sxl-z-${e}, ${Yo[e]})`, t), Zo = (e, t) => t ? "number" == typeof e ? e + t : `calc(${e} ${t < 0 ? "-" : "+"} ${Math.abs(t)})` : e, qo = 7, Uo = {
2409
+ }, Zo = (e, t = 0) => qo(`var(--sxl-z-${e}, ${Xo[e]})`, t), qo = (e, t) => t ? "number" == typeof e ? e + t : `calc(${e} ${t < 0 ? "-" : "+"} ${Math.abs(t)})` : e, Uo = 7, Go = {
2410
2410
  light: {
2411
2411
  "color-base-100": "#ffffff",
2412
2412
  "color-base-200": "#f5f5f5",
@@ -2453,9 +2453,9 @@ var Vo = class {
2453
2453
  "radius-field": "4px",
2454
2454
  "radius-box": "6px",
2455
2455
  border: "1px",
2456
- "z-grid": String(Yo.grid),
2457
- "z-popup": String(Yo.popup),
2458
- "z-tooltip": String(Yo.tooltip),
2456
+ "z-grid": String(Xo.grid),
2457
+ "z-popup": String(Xo.popup),
2458
+ "z-tooltip": String(Xo.tooltip),
2459
2459
  "image-background": "none"
2460
2460
  },
2461
2461
  dark: {
@@ -2504,31 +2504,31 @@ var Vo = class {
2504
2504
  "radius-field": "4px",
2505
2505
  "radius-box": "6px",
2506
2506
  border: "1px",
2507
- "z-grid": String(Yo.grid),
2508
- "z-popup": String(Yo.popup),
2509
- "z-tooltip": String(Yo.tooltip),
2507
+ "z-grid": String(Xo.grid),
2508
+ "z-popup": String(Xo.popup),
2509
+ "z-tooltip": String(Xo.tooltip),
2510
2510
  "image-background": "linear-gradient(rgba(255,255,255,0.10), rgba(255,255,255,0.10))"
2511
2511
  }
2512
- }, Go = "--sxl-";
2513
- function Jo(e) {
2512
+ }, Jo = "--sxl-";
2513
+ function Qo(e) {
2514
2514
  const t = {};
2515
2515
  for (const n in e) {
2516
2516
  const o = e[n];
2517
2517
  null != o && (Array.isArray(o) ? o.forEach((e, o) => {
2518
- null != e && (t[`${Go}${n}-${o + 1}`] = String(e));
2519
- }) : t[`${Go}${n}`] = String(o));
2518
+ null != e && (t[`${Jo}${n}-${o + 1}`] = String(e));
2519
+ }) : t[`${Jo}${n}`] = String(o));
2520
2520
  }
2521
2521
  return t;
2522
2522
  }
2523
- function Qo(e, ...t) {
2524
- return Jo(Object.assign({}, Uo[e], ...t.filter(Boolean)));
2523
+ function er(e, ...t) {
2524
+ return Qo(Object.assign({}, Go[e], ...t.filter(Boolean)));
2525
2525
  }
2526
- var er = ["light", "dark"], tr = "--sxl-input-selection", nr = "color-mix(in srgb, var(--sxl-color-primary, rgb(0, 120, 215)) 20%, transparent)", or = `:where(input,textarea,[contenteditable]:not([contenteditable="false"]))::selection{background-color:var(${tr},${nr});}`, rr = [
2526
+ var tr = ["light", "dark"], nr = "--sxl-input-selection", or = "color-mix(in srgb, var(--sxl-color-primary, rgb(0, 120, 215)) 20%, transparent)", rr = `:where(input,textarea,[contenteditable]:not([contenteditable="false"]))::selection{background-color:var(${nr},${or});}`, ir = [
2527
2527
  "sxl-defaults",
2528
2528
  "sxl-app",
2529
2529
  "sxl-overrides"
2530
- ], ir = `@layer ${rr.join(", ")};`;
2531
- function sr(e) {
2530
+ ], sr = `@layer ${ir.join(", ")};`;
2531
+ function lr(e) {
2532
2532
  let t = "";
2533
2533
  for (const n in e) {
2534
2534
  const o = e[n];
@@ -2538,52 +2538,52 @@ function sr(e) {
2538
2538
  }
2539
2539
  return t;
2540
2540
  }
2541
- function lr(e = {}) {
2542
- const { app: t = Uo, surfaces: n = {}, hc: o, modeAttr: r = "data-sxl-theme-mode", surfaceAttr: i = "data-sxl-theme-surface", layer: s, scope: l } = e, a = [], c = {
2541
+ function ar(e = {}) {
2542
+ const { app: t = Go, surfaces: n = {}, hc: o, modeAttr: r = "data-sxl-theme-mode", surfaceAttr: i = "data-sxl-theme-surface", layer: s, scope: l } = e, a = [], c = {
2543
2543
  app: {
2544
2544
  light: t.light,
2545
2545
  dark: t.dark
2546
2546
  },
2547
2547
  ...n
2548
2548
  }, u = l ? ":scope" : ":root", h = (e) => l ? `:scope${e},${e}` : e, d = (e) => l ? `:where(:scope[${i}="${e}"],[${i}="${e}"])` : `:where([${i}="${e}"])`, f = (e, t) => `${e} ${t}`;
2549
- a.push(`:where(${u}){color-scheme:light;${sr(t.light)}}`);
2549
+ a.push(`:where(${u}){color-scheme:light;${lr(t.light)}}`);
2550
2550
  for (const [e, t] of Object.entries(c)) {
2551
2551
  const n = t?.light;
2552
- n && Object.keys(n).length && a.push(`${d(e)}{${sr(n)}}`);
2552
+ n && Object.keys(n).length && a.push(`${d(e)}{${lr(n)}}`);
2553
2553
  }
2554
- for (const e of er) {
2555
- a.push(`${h(`[${r}="${e}"]`)}{color-scheme:${e};${sr(t[e])}}`);
2554
+ for (const e of tr) {
2555
+ a.push(`${h(`[${r}="${e}"]`)}{color-scheme:${e};${lr(t[e])}}`);
2556
2556
  for (const [t, n] of Object.entries(c)) {
2557
2557
  const o = n?.[e];
2558
- o && Object.keys(o).length && a.push(`${f(`[${r}="${e}"]`, `[${i}="${t}"]`)}{${sr(o)}}`);
2558
+ o && Object.keys(o).length && a.push(`${f(`[${r}="${e}"]`, `[${i}="${t}"]`)}{${lr(o)}}`);
2559
2559
  }
2560
2560
  }
2561
- for (const e of er) for (const [t, n] of Object.entries(c)) {
2561
+ for (const e of tr) for (const [t, n] of Object.entries(c)) {
2562
2562
  const o = n?.[e];
2563
- o && Object.keys(o).length && a.push(`${h(`[${r}="${e}"][${i}="${t}"]`)}{${sr(o)}}`);
2563
+ o && Object.keys(o).length && a.push(`${h(`[${r}="${e}"][${i}="${t}"]`)}{${lr(o)}}`);
2564
2564
  }
2565
- o && Object.keys(o).length && a.push(`${h(`[${r}="hc"]`)}{${sr(o)}}`), a.push(or);
2565
+ o && Object.keys(o).length && a.push(`${h(`[${r}="hc"]`)}{${lr(o)}}`), a.push(rr);
2566
2566
  let p = a.join("\n");
2567
- return l && (p = `@scope (${l}){\n${p}\n}`), s && (p = `${ir}\n@layer ${s}{\n${p}\n}`), p;
2567
+ return l && (p = `@scope (${l}){\n${p}\n}`), s && (p = `${sr}\n@layer ${s}{\n${p}\n}`), p;
2568
2568
  }
2569
- var ar = "data-sxl-theme-mode", cr = "data-sxl-theme-surface", ur = (e, t) => {
2570
- const n = { [cr]: e };
2571
- return t && (n[ar] = t), n;
2572
- }, hr = (e, t) => `sheetxl-${e}-${t.replace(/[^A-Za-z0-9_-]/g, "")}`, dr = g("light");
2573
- function fr(e) {
2574
- const { mode: t, fallback: n } = e || {}, o = S(dr), r = n ?? o, [i, s] = A(() => {
2569
+ var cr = "data-sxl-theme-mode", ur = "data-sxl-theme-surface", hr = (e, t) => {
2570
+ const n = { [ur]: e };
2571
+ return t && (n[cr] = t), n;
2572
+ }, dr = (e, t) => `sheetxl-${e}-${t.replace(/[^A-Za-z0-9_-]/g, "")}`, fr = g("light");
2573
+ function pr(e) {
2574
+ const { mode: t, fallback: n } = e || {}, o = S(fr), r = n ?? o, [i, s] = A(() => {
2575
2575
  if ("light" === t || "dark" === t) return {
2576
2576
  themeMode: t,
2577
2577
  source: "prop"
2578
2578
  };
2579
2579
  if ("undefined" != typeof document) {
2580
- const e = mr();
2580
+ const e = gr();
2581
2581
  if (e) return {
2582
2582
  themeMode: e,
2583
2583
  source: "class"
2584
2584
  };
2585
2585
  }
2586
- return pr(r);
2586
+ return mr(r);
2587
2587
  });
2588
2588
  return M(() => {
2589
2589
  const e = () => {
@@ -2592,11 +2592,11 @@ function fr(e) {
2592
2592
  themeMode: t,
2593
2593
  source: "prop"
2594
2594
  })));
2595
- const e = mr();
2595
+ const e = gr();
2596
2596
  s(e ? {
2597
2597
  themeMode: e,
2598
2598
  source: "class"
2599
- } : pr(r));
2599
+ } : mr(r));
2600
2600
  }, n = new MutationObserver(e), o = [document.documentElement, document.body].filter(Boolean);
2601
2601
  for (const e of o) n.observe(e, {
2602
2602
  attributes: !0,
@@ -2608,25 +2608,25 @@ function fr(e) {
2608
2608
  };
2609
2609
  }, [t, r]), i;
2610
2610
  }
2611
- function pr(e) {
2611
+ function mr(e) {
2612
2612
  return "system" === e ? {
2613
- themeMode: gr(),
2613
+ themeMode: _r(),
2614
2614
  source: "media"
2615
2615
  } : {
2616
2616
  themeMode: e,
2617
2617
  source: "fallback"
2618
2618
  };
2619
2619
  }
2620
- function mr() {
2620
+ function gr() {
2621
2621
  if ("undefined" == typeof document) return null;
2622
2622
  const e = [...Array.from(document.body.classList), ...document.documentElement ? Array.from(document.documentElement.classList) : []];
2623
2623
  return e.includes("dark") ? "dark" : e.includes("light") ? "light" : null;
2624
2624
  }
2625
- function gr() {
2625
+ function _r() {
2626
2626
  return "undefined" == typeof window ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
2627
2627
  }
2628
- var _r = g(null), vr = () => S(_r), yr = (e) => {
2629
- const { light: t, dark: n, base: o, surfaces: r, mode: i, surface: s, isolate: l = !1, layer: a = "sxl-overrides", children: c } = e, u = vr(), h = T(() => ({
2628
+ var vr = g(null), yr = () => S(vr), br = (e) => {
2629
+ const { light: t, dark: n, base: o, surfaces: r, mode: i, surface: s, isolate: l = !1, layer: a = "sxl-overrides", children: c } = e, u = yr(), h = T(() => ({
2630
2630
  ...o?.light ?? {},
2631
2631
  ...u?.light ?? {},
2632
2632
  ...t ?? {}
@@ -2642,7 +2642,7 @@ var _r = g(null), vr = () => S(_r), yr = (e) => {
2642
2642
  o?.dark,
2643
2643
  u?.dark,
2644
2644
  n
2645
- ]), p = hr("token", E()), { themeMode: m } = fr("light" === i || "dark" === i ? { mode: i } : { fallback: "system" }), g = void 0 === i ? void 0 : "auto" === i ? m : i, _ = g ?? u?.mode, v = T(() => lr({
2645
+ ]), p = dr("token", E()), { themeMode: m } = pr("light" === i || "dark" === i ? { mode: i } : { fallback: "system" }), g = void 0 === i ? void 0 : "auto" === i ? m : i, _ = g ?? u?.mode, v = T(() => ar({
2646
2646
  app: {
2647
2647
  light: h,
2648
2648
  dark: d
@@ -2669,37 +2669,37 @@ var _r = g(null), vr = () => S(_r), yr = (e) => {
2669
2669
  h,
2670
2670
  d
2671
2671
  ]), b = R("style", { children: v }), w = {};
2672
- g && (w[ar] = g), s && (w[cr] = s);
2672
+ g && (w[cr] = g), s && (w[ur] = s);
2673
2673
  let x = c;
2674
2674
  if (l || Object.keys(w).length > 0) {
2675
2675
  const e = f.Children.only(c);
2676
2676
  l && (w.className = [p, e.props?.className].filter(Boolean).join(" ") || void 0), x = f.cloneElement(e, w);
2677
2677
  }
2678
- return $(_r.Provider, {
2678
+ return $(vr.Provider, {
2679
2679
  value: y,
2680
2680
  children: [b, x]
2681
2681
  });
2682
2682
  };
2683
- function br(e, t) {
2683
+ function wr(e, t) {
2684
2684
  if (!e || "undefined" == typeof getComputedStyle) return;
2685
- const n = getComputedStyle(e).getPropertyValue(xr(t)).trim();
2685
+ const n = getComputedStyle(e).getPropertyValue(Sr(t)).trim();
2686
2686
  return "" === n ? void 0 : n;
2687
2687
  }
2688
- function wr(e, t) {
2688
+ function xr(e, t) {
2689
2689
  const n = {};
2690
2690
  if (!e || "undefined" == typeof getComputedStyle) return n;
2691
2691
  const o = getComputedStyle(e);
2692
2692
  for (const e of t) {
2693
- const t = o.getPropertyValue(xr(e)).trim();
2693
+ const t = o.getPropertyValue(Sr(e)).trim();
2694
2694
  "" !== t && (n[e] = t);
2695
2695
  }
2696
2696
  return n;
2697
2697
  }
2698
- function xr(e) {
2698
+ function Sr(e) {
2699
2699
  return e.startsWith("--") ? e : `--sxl-${e}`;
2700
2700
  }
2701
- yr.displayName = "TokenThemeProvider";
2702
- var Sr = g(null), Mr = () => {
2701
+ br.displayName = "TokenThemeProvider";
2702
+ var Mr = g(null), Er = () => {
2703
2703
  const e = (t, n) => {
2704
2704
  if (null === n) return;
2705
2705
  t.add(n);
@@ -2762,25 +2762,25 @@ var Sr = g(null), Mr = () => {
2762
2762
  })
2763
2763
  };
2764
2764
  return r;
2765
- }, Er = () => S(Sr), Cr = (e) => {
2765
+ }, Cr = () => S(Mr), Lr = (e) => {
2766
2766
  const t = {};
2767
- return e ? (e.mode && (t[ar] = e.mode), e.surface && (t[cr] = e.surface), {
2767
+ return e ? (e.mode && (t[cr] = e.mode), e.surface && (t[ur] = e.surface), {
2768
2768
  className: e.classes?.length ? e.classes.join(" ") : void 0,
2769
2769
  attrs: t
2770
2770
  }) : { attrs: t };
2771
- }, Lr = (e) => {
2771
+ }, Tr = (e) => {
2772
2772
  const t = e?.ownerDocument, n = x((e) => {
2773
2773
  if (!t || "undefined" == typeof MutationObserver) return () => {};
2774
2774
  const n = new MutationObserver(e);
2775
2775
  return n.observe(t.documentElement, {
2776
2776
  attributes: !0,
2777
2777
  subtree: !0,
2778
- attributeFilter: [ar, cr]
2778
+ attributeFilter: [cr, ur]
2779
2779
  }), () => n.disconnect();
2780
2780
  }, [t]), o = () => `${e?.closest("[data-sxl-theme-mode]")?.getAttribute("data-sxl-theme-mode") ?? ""}\n${e?.closest("[data-sxl-theme-surface]")?.getAttribute("data-sxl-theme-surface") ?? ""}`, [r, i] = D(n, o, o).split("\n"), s = {};
2781
- return r && (s[ar] = r), i && (s[cr] = i), s;
2782
- }, Tr = () => {
2783
- const e = S(Sr), t = vr();
2781
+ return r && (s[cr] = r), i && (s[ur] = i), s;
2782
+ }, kr = () => {
2783
+ const e = S(Mr), t = yr();
2784
2784
  return T(() => {
2785
2785
  const n = e?.themeScope;
2786
2786
  return t?.scopeClass || t?.mode ? {
@@ -2793,16 +2793,16 @@ var Sr = g(null), Mr = () => {
2793
2793
  t?.scopeClass,
2794
2794
  t?.mode
2795
2795
  ]);
2796
- }, kr = "_float-popper_1z06c_1", zr = "_float-popper-grow_1z06c_14", Ar = "_entered_1z06c_22", Dr = [0, 2], Pr = (e) => {
2796
+ }, zr = "_float-popper_1z06c_1", Ar = "_float-popper-grow_1z06c_14", Dr = "_entered_1z06c_22", Pr = [0, 2], Rr = (e) => {
2797
2797
  const t = "function" == typeof e ? e() : e;
2798
2798
  if (!t) return null;
2799
2799
  if (1 === t.nodeType) return t;
2800
2800
  const n = t.contextElement;
2801
2801
  return n && 1 === n.nodeType ? n : null;
2802
- }, Rr = w(v((t, n) => {
2803
- const { open: o, children: r, label: i, offsets: s = Dr, anchorEl: l, anchorPosition: a, placement: c = "bottom-start", resizeOnOverflow: u = !0, boundary: h, shift: d = !1, transition: f = !0, container: p, zIndex: m, strategy: g = "absolute", themeFrom: _ = "provider", followAnchor: v = !1, style: y, className: b, onMount: w, onOpening: S, onOpen: E, onClosing: L, onClose: k, ...D } = t;
2802
+ }, $r = w(v((t, n) => {
2803
+ const { open: o, children: r, label: i, offsets: s = Pr, anchorEl: l, anchorPosition: a, placement: c = "bottom-start", resizeOnOverflow: u = !0, boundary: h, shift: d = !1, transition: f = !0, container: p, zIndex: m, strategy: g = "absolute", themeFrom: _ = "provider", followAnchor: v = !1, style: y, className: b, onMount: w, onOpening: S, onOpen: E, onClosing: L, onClose: k, ...D } = t;
2804
2804
  if (Array.isArray(r)) throw new Error("children can not be an array");
2805
- const P = Yt(w ?? (() => {}), [w]), $ = Yt(S ?? (() => {}), [S]), B = Yt(E ?? (() => {}), [E]), O = Yt(L ?? (() => {}), [L]), I = Yt(k ?? (() => {}), [k]), [N, Z] = A(!1), [q, U] = A(!1), [G, J] = A(!1), [Q, ee] = A(), [te, ne] = A(), oe = z(null), re = z(null), { getPortalContainer: ie } = ln(), se = Tr(), le = Lr(a ? null : Pr(l)), ae = z(h);
2805
+ const P = Yt(w ?? (() => {}), [w]), $ = Yt(S ?? (() => {}), [S]), B = Yt(E ?? (() => {}), [E]), O = Yt(L ?? (() => {}), [L]), I = Yt(k ?? (() => {}), [k]), [N, Z] = A(!1), [q, U] = A(!1), [G, J] = A(!1), [Q, ee] = A(), [te, ne] = A(), oe = z(null), re = z(null), { getPortalContainer: ie } = an(), se = kr(), le = Tr(a ? null : Rr(l)), ae = z(h);
2806
2806
  ae.current = h;
2807
2807
  const ce = !!h, ue = d ? "object" == typeof d ? d.padding ?? 0 : 0 : null, { mainAxis: he, crossAxis: de, alignmentAxis: fe } = Array.isArray(s) ? {
2808
2808
  mainAxis: s[1] ?? 0,
@@ -2851,7 +2851,7 @@ var Sr = g(null), Mr = () => {
2851
2851
  return e && (e.width || e.height || e.x || e.y) ? (re.current = e, e) : re.current ?? new DOMRect(0, 0, 0, 0);
2852
2852
  },
2853
2853
  get contextElement() {
2854
- if (!a) return Pr(l) ?? void 0;
2854
+ if (!a) return Rr(l) ?? void 0;
2855
2855
  }
2856
2856
  }), [a, l]), ge = T(() => v ? (e, t, n) => W(e, t, n, { animationFrame: !0 }) : W, [v]), { refs: _e, floatingStyles: ve, isPositioned: ye, placement: be, update: we } = X({
2857
2857
  placement: c,
@@ -2893,16 +2893,16 @@ var Sr = g(null), Mr = () => {
2893
2893
  e.target === e.currentTarget && o && G && B?.();
2894
2894
  }, [o, G]);
2895
2895
  if (!N) return null;
2896
- const Me = (be ?? c).startsWith("bottom") ? "left top" : "center bottom", { className: Ee, attrs: Ce } = Cr(se);
2896
+ const Me = (be ?? c).startsWith("bottom") ? "left top" : "center bottom", { className: Ee, attrs: Ce } = Lr(se);
2897
2897
  let Le;
2898
2898
  Le = "anchor" === _ ? {
2899
2899
  ...Ce,
2900
2900
  ...le
2901
2901
  } : Ee || Ce["data-sxl-theme-mode"] || Ce["data-sxl-theme-surface"] ? Ce : le;
2902
- const Te = m ?? Xo("popup"), ke = r || e.EmptyArray;
2902
+ const Te = m ?? Zo("popup"), ke = r || e.EmptyArray;
2903
2903
  return H(R("div", {
2904
2904
  ref: xe,
2905
- className: F(kr, b, Ee),
2905
+ className: F(zr, b, Ee),
2906
2906
  role: void 0,
2907
2907
  "data-placement": be ?? c,
2908
2908
  ...Le,
@@ -2910,29 +2910,29 @@ var Sr = g(null), Mr = () => {
2910
2910
  ...ve,
2911
2911
  maxHeight: u ? Q : void 0,
2912
2912
  maxWidth: u ? te : void 0,
2913
- zIndex: o ? Te : Zo(Te, -1),
2913
+ zIndex: o ? Te : qo(Te, -1),
2914
2914
  pointerEvents: N && o ? void 0 : "none",
2915
2915
  ...y
2916
2916
  },
2917
2917
  ...D,
2918
2918
  children: f ? R("div", {
2919
- className: F(zr, { [Ar]: G }),
2919
+ className: F(Ar, { [Dr]: G }),
2920
2920
  style: { transformOrigin: Me },
2921
2921
  onTransitionEnd: Se,
2922
2922
  children: ke
2923
2923
  }) : ke
2924
2924
  }), p ?? ie());
2925
2925
  }));
2926
- Rr.displayName = "FloatPopper";
2927
- var $r = "_float-popup_juap7_1", Br = (e) => {
2926
+ $r.displayName = "FloatPopper";
2927
+ var Br = "_float-popup_juap7_1", Or = (e) => {
2928
2928
  const { closeFloat: t, closeFloatAll: n, floatReference: o, popupContainer: r, children: i, className: s, ...l } = e;
2929
2929
  return R("div", {
2930
- className: F("menu", $r, s),
2930
+ className: F("sxl-menu", Br, s),
2931
2931
  ...l,
2932
2932
  children: i
2933
2933
  });
2934
- }, Or = "_float-panel_qj0za_1", Hr = w(v((e, t) => {
2935
- const { floatReference: n, popupContainer: o, renderPopupPanel: r = Br, children: i, className: s, ...l } = e, a = {
2934
+ }, Hr = "_float-panel_qj0za_1", Ir = w(v((e, t) => {
2935
+ const { floatReference: n, popupContainer: o, renderPopupPanel: r = Or, children: i, className: s, ...l } = e, a = {
2936
2936
  popupContainer: o,
2937
2937
  floatReference: n,
2938
2938
  children: i,
@@ -2940,19 +2940,19 @@ var $r = "_float-popup_juap7_1", Br = (e) => {
2940
2940
  };
2941
2941
  return R("div", {
2942
2942
  ref: t,
2943
- className: F(Or, s),
2943
+ className: F(Hr, s),
2944
2944
  tabIndex: 0,
2945
- children: R(Po, {
2945
+ children: R(Ro, {
2946
2946
  render: r,
2947
2947
  props: a
2948
2948
  })
2949
2949
  });
2950
2950
  }));
2951
- Hr.displayName = "FloatPanelSurface";
2952
- var Ir = w(v((e, t) => {
2953
- const { open: n, anchorEl: o, anchorPosition: r, label: i, floatReference: s, renderPopupPanel: l = Br, propsPopper: a, onMount: c, onClosing: u, onClose: h, onOpening: d, onOpen: f, children: p, className: m, ...g } = e, _ = Yt(u ?? (() => {}), [u]), v = Yt(h ?? (() => {}), [h]), y = Yt(d ?? (() => {}), [d]), b = Yt(f ?? (() => {}), [f]), [w, x] = A(), S = z(null), M = Yt((e, t) => {
2951
+ Ir.displayName = "FloatPanelSurface";
2952
+ var Nr = w(v((e, t) => {
2953
+ const { open: n, anchorEl: o, anchorPosition: r, label: i, floatReference: s, renderPopupPanel: l = Or, propsPopper: a, onMount: c, onClosing: u, onClose: h, onOpening: d, onOpen: f, children: p, className: m, ...g } = e, _ = Yt(u ?? (() => {}), [u]), v = Yt(h ?? (() => {}), [h]), y = Yt(d ?? (() => {}), [d]), b = Yt(f ?? (() => {}), [f]), [w, x] = A(), S = z(null), M = Yt((e, t) => {
2954
2954
  x(e), c?.(S.current, t);
2955
- }, [c]), E = T(() => R(Hr, {
2955
+ }, [c]), E = T(() => R(Ir, {
2956
2956
  ref: S,
2957
2957
  className: m,
2958
2958
  floatReference: s,
@@ -2966,7 +2966,7 @@ var Ir = w(v((e, t) => {
2966
2966
  w,
2967
2967
  s
2968
2968
  ]);
2969
- return R(Rr, {
2969
+ return R($r, {
2970
2970
  ref: t,
2971
2971
  anchorEl: o,
2972
2972
  anchorPosition: r,
@@ -2981,9 +2981,9 @@ var Ir = w(v((e, t) => {
2981
2981
  children: E
2982
2982
  });
2983
2983
  }));
2984
- Ir.displayName = "FloatPanel";
2985
- var Nr = (e) => R(Ir, { ...e }), Fr = (e) => {
2986
- const { renderFloatPanel: t, renderPopupPanel: n, propsFloatPanel: o, themeScopeClass: r, themeSurface: i, themeMode: s, isolate: l, rootRef: a, children: c } = e, u = S(Sr), h = T(() => {
2984
+ Nr.displayName = "FloatPanel";
2985
+ var Fr = (e) => R(Nr, { ...e }), Wr = (e) => {
2986
+ const { renderFloatPanel: t, renderPopupPanel: n, propsFloatPanel: o, themeScopeClass: r, themeSurface: i, themeMode: s, isolate: l, rootRef: a, children: c } = e, u = S(Mr), h = T(() => {
2987
2987
  const e = u?.themeScope, l = r ? [...e?.classes ?? [], r] : e?.classes, a = i ?? e?.surface, c = s ?? e?.mode, h = l?.length || a || c ? {
2988
2988
  classes: l,
2989
2989
  surface: a,
@@ -3004,12 +3004,12 @@ var Nr = (e) => R(Ir, { ...e }), Fr = (e) => {
3004
3004
  s,
3005
3005
  u
3006
3006
  ]), d = Lt();
3007
- let f = R(Sr.Provider, {
3007
+ let f = R(Mr.Provider, {
3008
3008
  value: h,
3009
3009
  children: c
3010
3010
  });
3011
3011
  const p = l || !d, m = z(null);
3012
- p && null === m.current && (m.current = Mr());
3012
+ p && null === m.current && (m.current = Er());
3013
3013
  const g = p ? m.current : null;
3014
3014
  g && (f = R(Ct, {
3015
3015
  value: g,
@@ -3023,8 +3023,8 @@ var Nr = (e) => R(Ir, { ...e }), Fr = (e) => {
3023
3023
  a.current = null;
3024
3024
  });
3025
3025
  }, [a, _]), f;
3026
- }, Wr = (e) => {
3027
- const { anchor: t, autoFocus: n = !0, disableClickAway: o = !1, label: r = null, parentFloat: i = null, onOpen: s, onClose: l, propsPopper: a, renderPopupPanel: c, renderFloatPanel: u } = e ?? {}, h = Yt(s ?? (() => {}), [s]), d = Yt(l ?? (() => {}), [l]), f = Er(), p = u ?? f?.renderFloatPanel ?? Nr, m = void 0 === c ? f?.renderPopupPanel ?? Br : c, g = Lt(), [_, v] = A(null), [y, b] = A(!1), [w, S] = A(!1), E = T(() => i ?? g ?? Mr(), []), C = T(() => E.getRoot(), []), L = T(() => ({ label: r }), []), D = z(null), P = z(t);
3026
+ }, Kr = (e) => {
3027
+ const { anchor: t, autoFocus: n = !0, disableClickAway: o = !1, label: r = null, parentFloat: i = null, onOpen: s, onClose: l, propsPopper: a, renderPopupPanel: c, renderFloatPanel: u } = e ?? {}, h = Yt(s ?? (() => {}), [s]), d = Yt(l ?? (() => {}), [l]), f = Cr(), p = u ?? f?.renderFloatPanel ?? Fr, m = void 0 === c ? f?.renderPopupPanel ?? Or : c, g = Lt(), [_, v] = A(null), [y, b] = A(!1), [w, S] = A(!1), E = T(() => i ?? g ?? Er(), []), C = T(() => E.getRoot(), []), L = T(() => ({ label: r }), []), D = z(null), P = z(t);
3028
3028
  M(() => {
3029
3029
  P.current = t;
3030
3030
  }, [t]);
@@ -3117,7 +3117,7 @@ var Nr = (e) => R(Ir, { ...e }), Fr = (e) => {
3117
3117
  M(() => {
3118
3118
  Y && (_ ? h?.() : !1 === _ && d?.()), oe(y ? R(Ct, {
3119
3119
  value: G,
3120
- children: R(Po, {
3120
+ children: R(Ro, {
3121
3121
  render: p,
3122
3122
  props: {
3123
3123
  ...f?.propsFloatPanel,
@@ -3181,8 +3181,8 @@ var Nr = (e) => R(Ir, { ...e }), Fr = (e) => {
3181
3181
  reference: G,
3182
3182
  isOpen: !0 === _
3183
3183
  };
3184
- }, Kr = {}, Vr = (e) => {
3185
- const { onPointerDown: t, style: n, splitDirection: o, paddingBefore: r = 0, paddingAfter: i = 0, disabled: s, key: l, propsHitArea: a = Kr, ...c } = e, u = "row" === o, { style: h, className: d, ...f } = a;
3184
+ }, Vr = {}, jr = (e) => {
3185
+ const { onPointerDown: t, style: n, splitDirection: o, paddingBefore: r = 0, paddingAfter: i = 0, disabled: s, key: l, propsHitArea: a = Vr, ...c } = e, u = "row" === o, { style: h, className: d, ...f } = a;
3186
3186
  return R("div", {
3187
3187
  style: {
3188
3188
  ...n,
@@ -3190,7 +3190,7 @@ var Nr = (e) => R(Ir, { ...e }), Fr = (e) => {
3190
3190
  },
3191
3191
  ...c,
3192
3192
  children: R("div", {
3193
- className: F("hit-box", d),
3193
+ className: F("sxl-hit-box", d),
3194
3194
  style: {
3195
3195
  left: (u ? -r : 0) + "px",
3196
3196
  width: `calc(100% + ${u ? r + i : 0}px)`,
@@ -3203,7 +3203,7 @@ var Nr = (e) => R(Ir, { ...e }), Fr = (e) => {
3203
3203
  ...f
3204
3204
  })
3205
3205
  }, l);
3206
- }, jr = {}, Yr = (e, t, n = !0) => null === e ? null : null !== e.pixels ? n ? e.pixels : t - e.pixels : (n ? e.percent : 100 - e.percent) / 100 * t, Xr = (e, t = !0) => e?.percent ? `${t ? e.percent : 100 - e.percent}%` : e?.pixels ? `${e.pixels}px` : void 0, Zr = (e, t) => {
3206
+ }, Yr = {}, Xr = (e, t, n = !0) => null === e ? null : null !== e.pixels ? n ? e.pixels : t - e.pixels : (n ? e.percent : 100 - e.percent) / 100 * t, Zr = (e, t = !0) => e?.percent ? `${t ? e.percent : 100 - e.percent}%` : e?.pixels ? `${e.pixels}px` : void 0, qr = (e, t) => {
3207
3207
  if (null == e) return null;
3208
3208
  const n = {
3209
3209
  percent: null,
@@ -3211,8 +3211,8 @@ var Nr = (e) => R(Ir, { ...e }), Fr = (e) => {
3211
3211
  };
3212
3212
  let o = t;
3213
3213
  return "string" == typeof e && ((e = e.trim().toLowerCase()).endsWith("px") ? (e = e.substring(0, e.length - 2), o = !1) : e.endsWith("%") && (e = e.substring(0, e.length - 1), o = !0), e = parseFloat(e)), o ? n.percent = e : n.pixels = e, Object.freeze(n);
3214
- }, qr = w(v((e, t) => {
3215
- const { elementBefore: n, elementAfter: o, splitDirection: r = "row", fixedPane: i = null, position: s, onPositionChange: l, minBefore: a, maxBefore: c, minAfter: u, maxAfter: h, children: d, className: f, style: p, disabled: m = !1, onDragStart: g, onDragResize: _, onDragFinish: v, propsResizer: b = jr, propsPane: w = jr, propsPaneBefore: x = jr, propsPaneAfter: S = jr, renderResizer: E = Vr } = e;
3214
+ }, Ur = w(v((e, t) => {
3215
+ const { elementBefore: n, elementAfter: o, splitDirection: r = "row", fixedPane: i = null, position: s, onPositionChange: l, minBefore: a, maxBefore: c, minAfter: u, maxAfter: h, children: d, className: f, style: p, disabled: m = !1, onDragStart: g, onDragResize: _, onDragFinish: v, propsResizer: b = Yr, propsPane: w = Yr, propsPaneBefore: x = Yr, propsPaneAfter: S = Yr, renderResizer: E = jr } = e;
3216
3216
  if (d) throw new Error("Use elementBefore and elementAfter instead of children.");
3217
3217
  const C = T(() => y(o) && y(n), [o, n]), L = T(() => {
3218
3218
  let e = null;
@@ -3221,21 +3221,21 @@ var Nr = (e) => R(Ir, { ...e }), Fr = (e) => {
3221
3221
  return {
3222
3222
  fixedPaneOffset: e,
3223
3223
  isPercent: t,
3224
- minBefore: Zr(a, t),
3225
- maxBefore: Zr(c, t),
3226
- minAfter: Zr(u, t),
3227
- maxAfter: Zr(h, t)
3224
+ minBefore: qr(a, t),
3225
+ maxBefore: qr(c, t),
3226
+ minAfter: qr(u, t),
3227
+ maxAfter: qr(h, t)
3228
3228
  };
3229
3229
  }, [
3230
3230
  a,
3231
3231
  c,
3232
3232
  u,
3233
3233
  h
3234
- ]), k = Yt(l ?? (() => {}), [l]), [D, P] = A(() => Zr(s, null === i));
3234
+ ]), k = Yt(l ?? (() => {}), [l]), [D, P] = A(() => qr(s, null === i));
3235
3235
  M(() => {
3236
- P(Zr(s, null === i));
3236
+ P(qr(s, null === i));
3237
3237
  }, [s, i]);
3238
- const [B, { width: O, height: H }] = yo(), [I, { width: W, height: K }] = yo(), V = "row" === r ? W : K, j = "row" === r ? O : H, Y = T(() => ((e, t, n, o) => {
3238
+ const [B, { width: O, height: H }] = bo(), [I, { width: W, height: K }] = bo(), V = "row" === r ? W : K, j = "row" === r ? O : H, Y = T(() => ((e, t, n, o) => {
3239
3239
  const r = [null, null], i = [null, null];
3240
3240
  if (e || (e = {
3241
3241
  percent: null === o.fixedPaneOffset ? 50 : null,
@@ -3243,13 +3243,13 @@ var Nr = (e) => R(Ir, { ...e }), Fr = (e) => {
3243
3243
  }), 0 === t) return void 0 !== e.pixels && null !== e.pixels ? 1 !== o.fixedPaneOffset ? (r[0] = e.pixels, i[1] = 100) : (r[1] = e.pixels - n, i[0] = 100) : void 0 !== e.percent && null !== e.percent && (1 !== o.fixedPaneOffset ? (i[0] = e.percent, i[1] = 100 - e.percent) : (i[1] = e.percent, i[0] = 100 - e.percent)), {
3244
3244
  percents: i,
3245
3245
  pixels: r,
3246
- minBefore: Xr(o.minBefore, !0),
3247
- maxBefore: Xr(o.maxBefore, !0),
3248
- minAfter: Xr(o.minAfter),
3249
- maxAfter: Xr(o.maxAfter)
3246
+ minBefore: Zr(o.minBefore, !0),
3247
+ maxBefore: Zr(o.maxBefore, !0),
3248
+ minAfter: Zr(o.minAfter),
3249
+ maxAfter: Zr(o.maxAfter)
3250
3250
  };
3251
- let s = Yr(e, t, 1 !== o.fixedPaneOffset) ?? 0, l = t - n, a = Yr(o.minBefore, l, !0) ?? 0, c = Yr(o.maxBefore, l, !0) ?? l, u = 0, h = 0, d = 0, f = l;
3252
- u = (Yr(o.maxAfter, t, !1) ?? n) - n, h = Yr(o.minAfter, t, !1) ?? t, d = Math.max(a, u), f = Math.min(c, h), s = Math.max(d, Math.min(s, f)), h = Math.min(l - s, Yr(o.maxAfter, l - s, !0) ?? l), u = Math.min(l - s, Yr(o.minAfter, l - s, !0) ?? l), r[0] = s, r[1] = l - s;
3251
+ let s = Xr(e, t, 1 !== o.fixedPaneOffset) ?? 0, l = t - n, a = Xr(o.minBefore, l, !0) ?? 0, c = Xr(o.maxBefore, l, !0) ?? l, u = 0, h = 0, d = 0, f = l;
3252
+ u = (Xr(o.maxAfter, t, !1) ?? n) - n, h = Xr(o.minAfter, t, !1) ?? t, d = Math.max(a, u), f = Math.min(c, h), s = Math.max(d, Math.min(s, f)), h = Math.min(l - s, Xr(o.maxAfter, l - s, !0) ?? l), u = Math.min(l - s, Xr(o.minAfter, l - s, !0) ?? l), r[0] = s, r[1] = l - s;
3253
3253
  const p = Math.max(0, Math.min(100, s / l * 100));
3254
3254
  return i[0] = p, i[1] = 100 - p, {
3255
3255
  percents: i,
@@ -3283,7 +3283,7 @@ var Nr = (e) => R(Ir, { ...e }), Fr = (e) => {
3283
3283
  flexDirection: r,
3284
3284
  display: "flex"
3285
3285
  }, { className: de, style: fe, onPointerDown: pe, ...me } = b, ge = Yt((e) => {
3286
- const t = Zr(e, null === i);
3286
+ const t = qr(e, null === i);
3287
3287
  P(t);
3288
3288
  }, [i]), _e = Yt((e) => {
3289
3289
  if (m || !X) return;
@@ -3302,7 +3302,7 @@ var Nr = (e) => R(Ir, { ...e }), Fr = (e) => {
3302
3302
  j
3303
3303
  ]), ve = Yt((e) => {
3304
3304
  if (document.removeEventListener("pointermove", _e), document.removeEventListener("touchmove", _e), document.removeEventListener("pointerup", ve), X && (Z(!1), D)) {
3305
- if (G(D.pixels ?? 0), !Zr(s, null === i) || D.pixels !== s) {
3305
+ if (G(D.pixels ?? 0), !qr(s, null === i) || D.pixels !== s) {
3306
3306
  const e = D.pixels ?? 0, t = {
3307
3307
  pixels: e,
3308
3308
  percent: D.percent ?? e / j * 100
@@ -3319,14 +3319,14 @@ var Nr = (e) => R(Ir, { ...e }), Fr = (e) => {
3319
3319
  j
3320
3320
  ]), ye = Yt((e) => {
3321
3321
  pe?.(e), e.defaultPrevented || m || X || (Z(!0), q(), document.addEventListener("pointermove", _e, { passive: !1 }), document.addEventListener("touchmove", _e, { passive: !1 }), document.addEventListener("pointerup", ve, { passive: !1 }));
3322
- }, [pe]), be = lo(t, () => ({
3322
+ }, [pe]), be = ao(t, () => ({
3323
3323
  setPosition: ge,
3324
3324
  isSplitPane: () => !0
3325
- }), []), we = N([I, Q]), xe = T(() => C ? R(Po, {
3325
+ }), []), we = N([I, Q]), xe = T(() => C ? R(Ro, {
3326
3326
  render: E,
3327
3327
  props: {
3328
3328
  ref: we,
3329
- className: F("resizer", de),
3329
+ className: F("sxl-resizer", de),
3330
3330
  onPointerDownCapture: ye,
3331
3331
  style: {
3332
3332
  cursor: m ? void 0 : "row" === r ? "ew-resize" : "ns-resize",
@@ -3360,7 +3360,7 @@ var Nr = (e) => R(Ir, { ...e }), Fr = (e) => {
3360
3360
  };
3361
3361
  return R("div", {
3362
3362
  ref: J,
3363
- className: F("before", ne, ie),
3363
+ className: F("sxl-before", ne, ie),
3364
3364
  style: e,
3365
3365
  ...oe,
3366
3366
  ...le,
@@ -3383,7 +3383,7 @@ var Nr = (e) => R(Ir, { ...e }), Fr = (e) => {
3383
3383
  };
3384
3384
  return R("div", {
3385
3385
  ref: ee,
3386
- className: F("after", ne, ae),
3386
+ className: F("sxl-after", ne, ae),
3387
3387
  style: e,
3388
3388
  ...oe,
3389
3389
  ...ue,
@@ -3398,7 +3398,7 @@ var Nr = (e) => R(Ir, { ...e }), Fr = (e) => {
3398
3398
  ]), Ce = N([B, be]);
3399
3399
  return $("div", {
3400
3400
  ref: Ce,
3401
- className: F("splitPane", "row" === r ? "vertical" : "horizontal", { dragging: X }, f),
3401
+ className: F("sxl-splitPane", "row" === r ? "sxl-vertical" : "sxl-horizontal", { "sxl-dragging": X }, f),
3402
3402
  style: he,
3403
3403
  children: [
3404
3404
  Me,
@@ -3407,7 +3407,7 @@ var Nr = (e) => R(Ir, { ...e }), Fr = (e) => {
3407
3407
  ]
3408
3408
  });
3409
3409
  }));
3410
- function Ur(e) {
3410
+ function Gr(e) {
3411
3411
  if ("function" == typeof e) return e;
3412
3412
  if ("string" == typeof e) {
3413
3413
  const t = e.trim();
@@ -3440,12 +3440,12 @@ function Ur(e) {
3440
3440
  return null;
3441
3441
  }
3442
3442
  }(t);
3443
- if (e) return Qr(e);
3443
+ if (e) return ei(e);
3444
3444
  }
3445
3445
  if (t.startsWith("<")) {
3446
- if (/^<\s*svg\b/i.test(t)) return Qr(t);
3446
+ if (/^<\s*svg\b/i.test(t)) return ei(t);
3447
3447
  if (/^<\s*path\b/i.test(t)) {
3448
- const e = Gr(t);
3448
+ const e = Jr(t);
3449
3449
  if (e) return { paths: [{ d: e }] };
3450
3450
  }
3451
3451
  return { paths: [{ d: t }] };
@@ -3457,7 +3457,7 @@ function Ur(e) {
3457
3457
  for (const n of e) if ("string" == typeof n) {
3458
3458
  const e = String(n).trim();
3459
3459
  if (e.startsWith("<path")) {
3460
- const n = Gr(e);
3460
+ const n = Jr(e);
3461
3461
  n && t.push({ d: n });
3462
3462
  } else t.push({ d: e });
3463
3463
  } else n && "object" == typeof n && "d" in n && "string" == typeof n.d && t.push({ ...n });
@@ -3465,14 +3465,14 @@ function Ur(e) {
3465
3465
  }
3466
3466
  return e;
3467
3467
  }
3468
- function Gr(e) {
3468
+ function Jr(e) {
3469
3469
  const t = /\bd\s*=\s*(?:"([^"]+)"|'([^']+)')/i.exec(e);
3470
3470
  return t ? t[1] ?? t[2] ?? null : null;
3471
3471
  }
3472
- function Jr(e) {
3472
+ function Qr(e) {
3473
3473
  if ("svg" in e) return {
3474
3474
  ...e,
3475
- svg: Ur(e.svg)
3475
+ svg: Gr(e.svg)
3476
3476
  };
3477
3477
  if ("url" in e) {
3478
3478
  const t = "string" == typeof e.url ? { src: e.url } : e.url;
@@ -3490,7 +3490,7 @@ function Jr(e) {
3490
3490
  }
3491
3491
  return e;
3492
3492
  }
3493
- function Qr(e) {
3493
+ function ei(e) {
3494
3494
  try {
3495
3495
  if ("undefined" != typeof DOMParser) {
3496
3496
  const t = new DOMParser().parseFromString(e, "image/svg+xml"), n = t.querySelector("svg")?.getAttribute("viewBox") ?? void 0, o = [];
@@ -3523,9 +3523,9 @@ function Qr(e) {
3523
3523
  paths: o
3524
3524
  };
3525
3525
  }
3526
- function ei(e) {
3526
+ function ti(e) {
3527
3527
  const t = {};
3528
- for (const [n, o] of Object.entries(e.icons)) t[n] = Jr(o);
3528
+ for (const [n, o] of Object.entries(e.icons)) t[n] = Qr(o);
3529
3529
  const n = {
3530
3530
  label: e.meta?.label ?? "Unnamed",
3531
3531
  version: e.meta?.version ?? "1.0.0",
@@ -3542,14 +3542,14 @@ function ei(e) {
3542
3542
  const e = {};
3543
3543
  for (const [t, n] of Object.entries(r)) {
3544
3544
  const o = {};
3545
- for (const [e, t] of Object.entries(n)) o[e] = Jr(t);
3545
+ for (const [e, t] of Object.entries(n)) o[e] = Qr(t);
3546
3546
  e[t] = o;
3547
3547
  }
3548
3548
  o.__overrides = e;
3549
3549
  }
3550
3550
  return o;
3551
3551
  }
3552
- function ti() {
3552
+ function ni() {
3553
3553
  const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
3554
3554
  let n = "base", o = /* @__PURE__ */ new Map();
3555
3555
  async function r(t) {
@@ -3560,7 +3560,7 @@ function ti() {
3560
3560
  if (!o.loader) throw new Error(`No loader for icon pack: ${t}`);
3561
3561
  o.loading = o.loader().then((e) => {
3562
3562
  const t = e && "object" == typeof e && "default" in e ? e.default : e;
3563
- o.pack = ei(t);
3563
+ o.pack = ti(t);
3564
3564
  }).catch((e) => {
3565
3565
  throw o.loading = void 0, e;
3566
3566
  });
@@ -3615,7 +3615,7 @@ function ti() {
3615
3615
  return {
3616
3616
  register: function(t, o) {
3617
3617
  const r = e.get(t) ?? {};
3618
- "function" == typeof o ? r.loader = o : r.pack = ei(o), e.set(t, r), n || (n = t);
3618
+ "function" == typeof o ? r.loader = o : r.pack = ti(o), e.set(t, r), n || (n = t);
3619
3619
  },
3620
3620
  prefetch: async function(e = n) {
3621
3621
  const t = Array.isArray(e) ? e : [e];
@@ -3678,25 +3678,25 @@ function ti() {
3678
3678
  }
3679
3679
  };
3680
3680
  }
3681
- qr.displayName = "SplitPane";
3682
- var ni = ti();
3683
- ni.register("base", () => import("./Dmps0ZIoLh14qvGI.mjs")), ni.register("cf", () => import("./BILf4bRupmxScC5R.mjs"));
3684
- var oi = (e) => R("svg", {
3681
+ Ur.displayName = "SplitPane";
3682
+ var oi = ni();
3683
+ oi.register("base", () => import("./CZoJwu33P3QdiHsu.mjs")), oi.register("cf", () => import("./BRFcIf1L6jIUdzP7.mjs"));
3684
+ var ri = (e) => R("svg", {
3685
3685
  ...e,
3686
3686
  children: R("path", {})
3687
- }), ri = {
3687
+ }), ii = {
3688
3688
  Icon: "_Icon_16f7r_10",
3689
3689
  "sxl-walk": "_sxl-walk_16f7r_1"
3690
- }, ii = w((t) => {
3690
+ }, si = w((t) => {
3691
3691
  const { iconKey: n, packKey: o, className: r, style: i, role: s, title: l, size: a, ariaHidden: c, propsSource: u, children: h, ...d } = t, [f, p] = A(null);
3692
3692
  M(() => {
3693
3693
  let t = !0, r = o, i = n;
3694
3694
  if (!i) {
3695
- const t = ni.getPack(r);
3695
+ const t = oi.getPack(r);
3696
3696
  p({
3697
3697
  glyph: t ? { svg: e.EmptyArray } : void 0,
3698
3698
  pack: t ?? void 0,
3699
- packKey: r ?? ni.getActive()
3699
+ packKey: r ?? oi.getActive()
3700
3700
  });
3701
3701
  return;
3702
3702
  }
@@ -3704,7 +3704,7 @@ var oi = (e) => R("svg", {
3704
3704
  const [e, t] = i.split(":");
3705
3705
  r = e, i = t;
3706
3706
  }
3707
- return ni.resolve(i, { packKey: r }).then((e) => {
3707
+ return oi.resolve(i, { packKey: r }).then((e) => {
3708
3708
  t && p(e);
3709
3709
  }).catch(() => {}), () => {
3710
3710
  t = !1;
@@ -3713,7 +3713,7 @@ var oi = (e) => R("svg", {
3713
3713
  const m = f?.pack, g = f?.glyph, _ = f?.packKey;
3714
3714
  let v = g ? g.svg : void 0;
3715
3715
  const y = g && !v ? g.url : void 0, b = !g || v || y ? void 0 : g.emoji, w = null != a ? "number" == typeof a ? `${a}px` : a : void 0, x = T(() => [
3716
- ri.Icon,
3716
+ ii.Icon,
3717
3717
  "icon",
3718
3718
  r
3719
3719
  ].filter(Boolean).join(" "), [r]), S = T(() => {
@@ -3749,8 +3749,8 @@ var oi = (e) => R("svg", {
3749
3749
  return L(R(e, { ...t }));
3750
3750
  }
3751
3751
  const k = { viewBox: v?.viewBox ?? m?.meta.defaultViewBox ?? "0 0 24 24" };
3752
- if ("function" == typeof v) return L(v(k) ?? R(oi, { ...k }));
3753
- if (!v) return L(R(oi, { ...k }));
3752
+ if ("function" == typeof v) return L(v(k) ?? R(ri, { ...k }));
3753
+ if (!v) return L(R(ri, { ...k }));
3754
3754
  const z = v.paths;
3755
3755
  return L(R("svg", {
3756
3756
  ...k,
@@ -3765,7 +3765,7 @@ var oi = (e) => R("svg", {
3765
3765
  }, t)) : null
3766
3766
  }));
3767
3767
  });
3768
- function si(e) {
3768
+ function li(e) {
3769
3769
  const { isWalking: t = !1, themedType: n = "primary", speed: o = 120, dashGap: r = 3, dashLength: i = 5, iconKey: s, packKey: l, style: a, className: c, ...u } = e, h = T(() => {
3770
3770
  if (!t) return;
3771
3771
  const e = {
@@ -3781,7 +3781,7 @@ function si(e) {
3781
3781
  i,
3782
3782
  n
3783
3783
  ]), d = T(() => t ? c + " walking" : c, [t, c]);
3784
- return R(ii, {
3784
+ return R(si, {
3785
3785
  iconKey: s,
3786
3786
  packKey: l,
3787
3787
  className: d,
@@ -3792,7 +3792,7 @@ function si(e) {
3792
3792
  ...u
3793
3793
  });
3794
3794
  }
3795
- var li = class {
3795
+ var ai = class {
3796
3796
  constructor() {
3797
3797
  this.store = /* @__PURE__ */ new Map();
3798
3798
  }
@@ -3805,32 +3805,32 @@ var li = class {
3805
3805
  removeItem(e) {
3806
3806
  this.store.delete(e);
3807
3807
  }
3808
- }, ai = g(null), ci = Object.freeze({}), ui = {
3808
+ }, ci = g(null), ui = Object.freeze({}), hi = {
3809
3809
  parse: (e) => e ? JSON.parse(e) : null,
3810
3810
  stringify: JSON.stringify
3811
- }, hi = /* @__PURE__ */ new Map(), di = {
3812
- store: new li(),
3811
+ }, di = /* @__PURE__ */ new Map(), fi = {
3812
+ store: new ai(),
3813
3813
  namespace: "",
3814
- serializer: ui,
3814
+ serializer: hi,
3815
3815
  onReady: (e) => {
3816
3816
  e();
3817
3817
  },
3818
3818
  debounceMs: 0,
3819
- defaultValues: ci,
3819
+ defaultValues: ui,
3820
3820
  notify: (e, t) => {
3821
- const n = hi.get(e);
3821
+ const n = di.get(e);
3822
3822
  n && n.forEach((e) => e(t));
3823
3823
  },
3824
3824
  subscribeKey: (e, t) => {
3825
- const n = hi.get(e) ?? /* @__PURE__ */ new Set();
3826
- return n.add(t), hi.set(e, n), () => {
3827
- const n = hi.get(e);
3828
- n && (n.delete(t), 0 === n.size && hi.delete(e));
3825
+ const n = di.get(e) ?? /* @__PURE__ */ new Set();
3826
+ return n.add(t), di.set(e, n), () => {
3827
+ const n = di.get(e);
3828
+ n && (n.delete(t), 0 === n.size && di.delete(e));
3829
3829
  };
3830
3830
  }
3831
3831
  };
3832
- function fi(e, t, n = pi) {
3833
- const { store: o, namespace: r, serializer: i, debounceMs: s, subscribeKey: l, notify: a, defaultValues: c } = S(ai) || di, u = n.serializer ?? i ?? ui, h = z(null), d = T(() => null == e ? null : `${r}:${e}`, [r, e]), f = d ? `${d}::v` : null, p = () => {
3832
+ function pi(e, t, n = mi) {
3833
+ const { store: o, namespace: r, serializer: i, debounceMs: s, subscribeKey: l, notify: a, defaultValues: c } = S(ci) || fi, u = n.serializer ?? i ?? hi, h = z(null), d = T(() => null == e ? null : `${r}:${e}`, [r, e]), f = d ? `${d}::v` : null, p = () => {
3834
3834
  if (null != e && Object.prototype.hasOwnProperty.call(c, e)) return c[e];
3835
3835
  const n = t;
3836
3836
  return "function" == typeof n ? n() : n;
@@ -3910,11 +3910,11 @@ function fi(e, t, n = pi) {
3910
3910
  x(() => C.current(), [])
3911
3911
  ];
3912
3912
  }
3913
- var pi = {};
3914
- function mi(e) {
3915
- const { store: t, namespace: n = "", serializer: o = vi, debounceMs: r = 150, defaultValues: i = ci, children: s } = e, l = z(i);
3916
- yi(l.current, i) || (l.current = i);
3917
- const a = l.current, c = T(() => "undefined" == typeof window ? new li() : t ?? new li(), [t]), u = z(/* @__PURE__ */ new Map()), h = T(() => ({
3913
+ var mi = {};
3914
+ function gi(e) {
3915
+ const { store: t, namespace: n = "", serializer: o = yi, debounceMs: r = 150, defaultValues: i = ui, children: s } = e, l = z(i);
3916
+ bi(l.current, i) || (l.current = i);
3917
+ const a = l.current, c = T(() => "undefined" == typeof window ? new ai() : t ?? new ai(), [t]), u = z(/* @__PURE__ */ new Map()), h = T(() => ({
3918
3918
  store: c,
3919
3919
  namespace: n,
3920
3920
  serializer: o,
@@ -3947,19 +3947,19 @@ function mi(e) {
3947
3947
  const t = e.slice(h.namespace.length + 1);
3948
3948
  h.notify(t);
3949
3949
  });
3950
- }, [h]), R(ai.Provider, {
3950
+ }, [h]), R(ci.Provider, {
3951
3951
  value: h,
3952
3952
  children: s
3953
3953
  });
3954
3954
  }
3955
- var gi, _i, vi = {
3955
+ var _i, vi, yi = {
3956
3956
  parse: (e) => null == e ? null : JSON.parse(e),
3957
3957
  stringify: JSON.stringify
3958
- }, yi = (e, t) => {
3958
+ }, bi = (e, t) => {
3959
3959
  if (e === t) return !0;
3960
3960
  const n = Object.keys(e);
3961
3961
  return n.length === Object.keys(t).length && n.every((n) => Object.prototype.hasOwnProperty.call(t, n) && Object.is(e[n], t[n]));
3962
- }, bi = class {
3962
+ }, wi = class {
3963
3963
  constructor(e = window.localStorage) {
3964
3964
  this.storage = e;
3965
3965
  }
@@ -3986,10 +3986,10 @@ var gi, _i, vi = {
3986
3986
  };
3987
3987
  return window.addEventListener("storage", t), () => window.removeEventListener("storage", t);
3988
3988
  }
3989
- }, wi = /* @__PURE__ */ new WeakMap();
3990
- (_i = gi || (gi = {})).begin = function(e) {
3991
- let t = wi.get(e);
3992
- t || (t = /* @__PURE__ */ new Set(), wi.set(e, t));
3989
+ }, xi = /* @__PURE__ */ new WeakMap();
3990
+ (vi = _i || (_i = {})).begin = function(e) {
3991
+ let t = xi.get(e);
3992
+ t || (t = /* @__PURE__ */ new Set(), xi.set(e, t));
3993
3993
  let n = () => {};
3994
3994
  const o = new Promise((e) => {
3995
3995
  n = e;
@@ -4000,25 +4000,25 @@ var gi, _i, vi = {
4000
4000
  return () => {
4001
4001
  r || (r = !0, i.delete(o), n());
4002
4002
  };
4003
- }, _i.isPending = function(e) {
4004
- return (wi.get(e)?.size ?? 0) > 0;
4003
+ }, vi.isPending = function(e) {
4004
+ return (xi.get(e)?.size ?? 0) > 0;
4005
4005
  };
4006
- var xi = async (e) => {
4007
- const t = wi.get(e);
4006
+ var Si = async (e) => {
4007
+ const t = xi.get(e);
4008
4008
  for (; t && t.size > 0;) await Promise.allSettled([...t]);
4009
- }, Si = g(null), Mi = (e) => f.createElement(Si.Provider, { value: e.scope }, e.children), Ei = (e, t) => {
4010
- const n = S(Si), o = void 0 === t ? n : t;
4009
+ }, Mi = g(null), Ei = (e) => f.createElement(Mi.Provider, { value: e.scope }, e.children), Ci = (e, t) => {
4010
+ const n = S(Mi), o = void 0 === t ? n : t;
4011
4011
  M(() => {
4012
- if (o && e) return gi.begin(o);
4012
+ if (o && e) return _i.begin(o);
4013
4013
  }, [o, e]);
4014
- }, Ci = {
4014
+ }, Li = {
4015
4015
  Horizontal: "horizontal",
4016
4016
  Vertical: "vertical"
4017
- }, Li = "_scrollbar_2chse_24", Ti = "_track_2chse_35", ki = "_thumb_2chse_47", zi = "_scrollbar-button_2chse_96", Ai = "_touch-thumb_2chse_131", Di = "M 5.4951012,0.62494002 7.1746358,3.4734472 8.8557603,6.3226744 c 0.13425,0.2277477 0.18228,0.4945506 0.1356,0.7535218 -0.04665,0.2589712 -0.18504,0.4935661 -0.3908099,0.6625402 C 8.3948254,7.9076371 8.1348905,8.0001761 7.8664506,7.9999997 H 1.1503225 c -0.30278993,0 -0.59312985,-0.117841 -0.80720983,-0.3275159 -0.2140799,-0.2097042 -0.3343649,-0.4941244 -0.3343649,-0.7907107 -4.5e-4,-0.1955399 0.05205,-0.3876855 0.152205,-0.55688 L 1.8390472,3.4734031 3.5178618,0.62488125 C 3.7217717,0.27898385 4.0986166,0.0658413 4.5064365,0.0658413 c 0.4078199,0 0.7846648,0.21314255 0.9885747,0.55903995 z", Pi = "M 0.6632643,3.5136438 3.5117715,1.8341092 6.3609987,0.15298466 c 0.2277477,-0.13425 0.4945506,-0.18228 0.7535218,-0.1356 0.2589712,0.04665 0.4935661,0.18504 0.6625402,0.3908099 0.1689007,0.205725 0.2614397,0.4656599 0.2612633,0.73409984 v 6.7161281 c 0,0.3027899 -0.117841,0.5931298 -0.3275159,0.8072098 -0.2097042,0.2140799 -0.4941244,0.3343649 -0.7907107,0.3343649 -0.1955399,4.5e-4 -0.3876855,-0.05205 -0.55688,-0.152205 L 3.5117274,7.1696978 0.6632056,5.4908832 C 0.31730817,5.2869733 0.10416562,4.9101284 0.10416562,4.5023085 c 0,-0.4078199 0.21314255,-0.7846648 0.55903998,-0.9885747 z", Ri = { transform: "rotate(180deg)" }, $i = (e) => {
4018
- const { style: t, orientation: n = Ci.Vertical, isBefore: o, disabled: r, ...i } = e, s = n === Ci.Vertical ? Di : Pi;
4017
+ }, Ti = "_scrollbar_1kbpg_24", ki = "_track_1kbpg_35", zi = "_thumb_1kbpg_47", Ai = "_scrollbar-button_1kbpg_96", Di = "_touch-thumb_1kbpg_131", Pi = "M 5.4951012,0.62494002 7.1746358,3.4734472 8.8557603,6.3226744 c 0.13425,0.2277477 0.18228,0.4945506 0.1356,0.7535218 -0.04665,0.2589712 -0.18504,0.4935661 -0.3908099,0.6625402 C 8.3948254,7.9076371 8.1348905,8.0001761 7.8664506,7.9999997 H 1.1503225 c -0.30278993,0 -0.59312985,-0.117841 -0.80720983,-0.3275159 -0.2140799,-0.2097042 -0.3343649,-0.4941244 -0.3343649,-0.7907107 -4.5e-4,-0.1955399 0.05205,-0.3876855 0.152205,-0.55688 L 1.8390472,3.4734031 3.5178618,0.62488125 C 3.7217717,0.27898385 4.0986166,0.0658413 4.5064365,0.0658413 c 0.4078199,0 0.7846648,0.21314255 0.9885747,0.55903995 z", Ri = "M 0.6632643,3.5136438 3.5117715,1.8341092 6.3609987,0.15298466 c 0.2277477,-0.13425 0.4945506,-0.18228 0.7535218,-0.1356 0.2589712,0.04665 0.4935661,0.18504 0.6625402,0.3908099 0.1689007,0.205725 0.2614397,0.4656599 0.2612633,0.73409984 v 6.7161281 c 0,0.3027899 -0.117841,0.5931298 -0.3275159,0.8072098 -0.2097042,0.2140799 -0.4941244,0.3343649 -0.7907107,0.3343649 -0.1955399,4.5e-4 -0.3876855,-0.05205 -0.55688,-0.152205 L 3.5117274,7.1696978 0.6632056,5.4908832 C 0.31730817,5.2869733 0.10416562,4.9101284 0.10416562,4.5023085 c 0,-0.4078199 0.21314255,-0.7846648 0.55903998,-0.9885747 z", $i = { transform: "rotate(180deg)" }, Bi = (e) => {
4018
+ const { style: t, orientation: n = Li.Vertical, isBefore: o, disabled: r, ...i } = e, s = n === Li.Vertical ? Pi : Ri;
4019
4019
  return R("button", {
4020
4020
  style: t,
4021
- className: F(zi, n, "scroll-button"),
4021
+ className: F(Ai, `sxl-${n}`, "sxl-scroll-button"),
4022
4022
  disabled: r,
4023
4023
  ...i,
4024
4024
  children: R("svg", {
@@ -4028,23 +4028,23 @@ var xi = async (e) => {
4028
4028
  children: R("path", { d: s })
4029
4029
  })
4030
4030
  });
4031
- }, Bi = (e) => {
4032
- const { style: t, orientation: n = Ci.Vertical, isBefore: o, disabled: r, ...i } = e, s = n === Ci.Vertical ? Di : Pi;
4031
+ }, Oi = (e) => {
4032
+ const { style: t, orientation: n = Li.Vertical, isBefore: o, disabled: r, ...i } = e, s = n === Li.Vertical ? Pi : Ri;
4033
4033
  return R("button", {
4034
4034
  style: t,
4035
- className: F(zi, n, "scroll-button"),
4035
+ className: F(Ai, `sxl-${n}`, "sxl-scroll-button"),
4036
4036
  disabled: r,
4037
4037
  ...i,
4038
4038
  children: R("svg", {
4039
4039
  width: "9",
4040
4040
  height: "9",
4041
4041
  viewBox: "0 0 9 9",
4042
- style: Ri,
4042
+ style: $i,
4043
4043
  children: R("path", { d: s })
4044
4044
  })
4045
4045
  });
4046
- }, Oi = (e) => {
4047
- const { style: t, orientation: n = Ci.Vertical, isBefore: o, ...r } = e, i = n === Ci.Vertical;
4046
+ }, Hi = (e) => {
4047
+ const { style: t, orientation: n = Li.Vertical, isBefore: o, ...r } = e, i = n === Li.Vertical;
4048
4048
  return R("div", {
4049
4049
  style: {
4050
4050
  display: "flex",
@@ -4056,9 +4056,9 @@ var xi = async (e) => {
4056
4056
  height: "24px",
4057
4057
  ...t
4058
4058
  },
4059
- className: `scrollbar-button ${i ? "vertical" : "horizontal"} edge`,
4059
+ className: `sxl-scrollbar-button ${i ? "sxl-vertical" : "sxl-horizontal"} sxl-edge`,
4060
4060
  ...r,
4061
- children: R(ii, {
4061
+ children: R(si, {
4062
4062
  style: {
4063
4063
  transition: "opacity 240ms ease 0s",
4064
4064
  opacity: e.disabled ? 0 : 1,
@@ -4068,7 +4068,7 @@ var xi = async (e) => {
4068
4068
  iconKey: "MoreHorizontal"
4069
4069
  })
4070
4070
  });
4071
- }, Hi = 60, Ii = 260, Ni = 120, Fi = (e) => {
4071
+ }, Ii = 60, Ni = 260, Fi = 120, Wi = (e) => {
4072
4072
  const { vertical: t, getTrackRect: n, getThumb: o, onStart: r, onDragModeChange: i, edgeHoldIntervalMs: s = 60, pageInitialDelayMs: l = 260, pageRepeatDelayMs: a = 120 } = e;
4073
4073
  let c = null, u = null, h = 0, d = 0, f = 1, p = 0, m = 0, g = 0, _ = null;
4074
4074
  const v = () => {
@@ -4118,10 +4118,10 @@ var xi = async (e) => {
4118
4118
  },
4119
4119
  dispose: () => v()
4120
4120
  };
4121
- }, Wi = (e) => {
4121
+ }, Ki = (e) => {
4122
4122
  const [t, n] = A(null), o = z(e);
4123
4123
  o.current = e;
4124
- const r = T(() => Fi({
4124
+ const r = T(() => Wi({
4125
4125
  vertical: o.current.vertical,
4126
4126
  getTrackRect: () => o.current.getTrackRect(),
4127
4127
  getThumb: () => o.current.getThumb(),
@@ -4137,16 +4137,16 @@ var xi = async (e) => {
4137
4137
  onPointerUp: r.onPointerUp,
4138
4138
  dragMode: t
4139
4139
  };
4140
- }, Ki = 22, Vi = 1.8, ji = 8, Yi = 4, Xi = 8, Zi = -2, qi = (e = 22) => e / 2 + 8, Ui = (e = 22) => e + 16, Gi = g(null), Ji = (e) => {
4140
+ }, Vi = 22, ji = 1.8, Yi = 8, Xi = 4, Zi = 8, qi = -2, Ui = (e = 22) => e / 2 + 8, Gi = (e = 22) => e + 16, Ji = g(null), Qi = (e) => {
4141
4141
  const { value: t, children: n } = e;
4142
- return R(Gi.Provider, {
4142
+ return R(Ji.Provider, {
4143
4143
  value: t,
4144
4144
  children: n
4145
4145
  });
4146
- }, Qi = () => S(Gi), es = Fe().supportsTouchEvents, ts = (e) => e < 0 ? 0 : e > 1 ? 1 : e, ns = w(v((e, t) => {
4147
- const { borderColor: n = "var(--sxl-color-primary, rgb(33, 115, 70))", backgroundColor: o = "var(--sxl-color-base-100, white)", fillColor: r = "var(--sxl-color-neutral, grey)", borderWidth: i = 3, size: s = 22, style: l, className: a, orientation: c = Ci.Vertical, fraction: u = 0, onScrollToFraction: h, onEdgeHold: d, onDraggingChange: f, currentTouchAnchor: p, key: m, ...g } = e;
4148
- if (!es) return null;
4149
- const _ = c === Ci.Vertical, v = Qi(), y = Yt(h ?? (() => {}), [h]), b = Yt(d ?? (() => {}), [d]), w = Yt(f ?? (() => {}), [f]), x = z(null), S = N([x, t]), E = Yt((e) => ({
4146
+ }, es = () => S(Ji), ts = Fe().supportsTouchEvents, ns = (e) => e < 0 ? 0 : e > 1 ? 1 : e, os = w(v((e, t) => {
4147
+ const { borderColor: n = "var(--sxl-color-primary, rgb(33, 115, 70))", backgroundColor: o = "var(--sxl-color-base-100, white)", fillColor: r = "var(--sxl-color-neutral, grey)", borderWidth: i = 3, size: s = 22, style: l, className: a, orientation: c = Li.Vertical, fraction: u = 0, onScrollToFraction: h, onEdgeHold: d, onDraggingChange: f, currentTouchAnchor: p, key: m, ...g } = e;
4148
+ if (!ts) return null;
4149
+ const _ = c === Li.Vertical, v = es(), y = Yt(h ?? (() => {}), [h]), b = Yt(d ?? (() => {}), [d]), w = Yt(f ?? (() => {}), [f]), x = z(null), S = N([x, t]), E = Yt((e) => ({
4150
4150
  dragging: e,
4151
4151
  element: x.current,
4152
4152
  source: "touch"
@@ -4164,7 +4164,7 @@ var xi = async (e) => {
4164
4164
  count: 0,
4165
4165
  timer: null
4166
4166
  });
4167
- k.current.isVertical = _, k.current.fraction = ts(u), k.current.hasEdgeHold = !!d;
4167
+ k.current.isVertical = _, k.current.fraction = ns(u), k.current.hasEdgeHold = !!d;
4168
4168
  const D = Yt(() => {
4169
4169
  const e = k.current;
4170
4170
  e.timer && clearTimeout(e.timer), e.timer = null;
@@ -4183,7 +4183,7 @@ var xi = async (e) => {
4183
4183
  if (!e.hasEdgeHold) return;
4184
4184
  const t = e.rawFraction < 0 ? -1 : e.rawFraction > 1 ? 1 : 0;
4185
4185
  t !== e.edge && (e.edge = t, D(), t && (e.engagedAt = Date.now(), e.count = 0, e.timer = setTimeout(P, 60)));
4186
- }, []), B = pn(T(() => ({
4186
+ }, []), B = mn(T(() => ({
4187
4187
  processTouch: !0,
4188
4188
  onPointerDown: (e, t) => {
4189
4189
  const n = k.current;
@@ -4191,7 +4191,7 @@ var xi = async (e) => {
4191
4191
  },
4192
4192
  onPointerMoveOrWait: (e) => {
4193
4193
  const t = k.current, n = (t.isVertical ? e.clientY : e.clientX) - t.startAlong;
4194
- t.rawFraction = t.startFraction + (t.travel > 0 ? n / t.travel : 0), y?.(ts(t.rawFraction)), $();
4194
+ t.rawFraction = t.startFraction + (t.travel > 0 ? n / t.travel : 0), y?.(ns(t.rawFraction)), $();
4195
4195
  },
4196
4196
  onPointerUp: (e) => {
4197
4197
  const t = k.current;
@@ -4204,10 +4204,10 @@ var xi = async (e) => {
4204
4204
  }, []), !v?.portalTarget) return null;
4205
4205
  const O = 1.8 * s, I = _ ? s : O, W = _ ? O : s, K = _ ? v.viewportHeight : v.viewportWidth, V = _ ? v.height : v.width, j = Math.max(0, V - K), Y = _ ? v.reserveVertical : v.reserveHorizontal, X = Y > 0 ? -2 : 4, Z = Math.max(0, K - Y - O - 4 - X);
4206
4206
  k.current.travel = Z;
4207
- const q = j + 4 + O / 2 + ts(u) * Z;
4207
+ const q = j + 4 + O / 2 + ns(u) * Z;
4208
4208
  let U, G;
4209
4209
  return _ ? (U = v.width - v.crossInset - I / 2, G = q - W / 2) : (G = v.height - v.crossInset - W / 2, U = q - I / 2), H(R("div", {
4210
- className: F("touch-thumb", Ai, a, { dragging: C }),
4210
+ className: F("sxl-touch-thumb", Di, a, { "sxl-dragging": C }),
4211
4211
  ref: S,
4212
4212
  style: {
4213
4213
  left: U,
@@ -4232,15 +4232,15 @@ var xi = async (e) => {
4232
4232
  ...g
4233
4233
  }), v.portalTarget, m);
4234
4234
  }));
4235
- ns.displayName = "TouchThumbHandle";
4236
- var os = 24, rs = w(v((e, t) => {
4237
- const { offset: n = 0, totalSize: o = 0, viewportSize: r = 0, style: i, className: s, orientation: l = Ci.Vertical, onScrollOffset: a, onScroll: c, showCustomScrollButtons: u, scrollButtonIncrement: h = 200, scrollButtonInitialRepeatDelay: d = 260, scrollButtonAdditionalRepeatDelay: f = 120, minThumbSize: p = os, maxThumbSize: m, renderScrollButtonStart: g = $i, renderScrollButtonEnd: _ = Bi, propsTouchThumb: v, propsThumb: y, onThumbEdgeHold: b, onThumbDrag: w, onMouseDown: S, ...E } = e, C = "touch" === Sn(), L = u ?? !C;
4235
+ os.displayName = "TouchThumbHandle";
4236
+ var rs = 24, is = w(v((e, t) => {
4237
+ const { offset: n = 0, totalSize: o = 0, viewportSize: r = 0, style: i, className: s, orientation: l = Li.Vertical, onScrollOffset: a, onScroll: c, showCustomScrollButtons: u, scrollButtonIncrement: h = 200, scrollButtonInitialRepeatDelay: d = 260, scrollButtonAdditionalRepeatDelay: f = 120, minThumbSize: p = rs, maxThumbSize: m, renderScrollButtonStart: g = Bi, renderScrollButtonEnd: _ = Oi, propsTouchThumb: v, propsThumb: y, onThumbEdgeHold: b, onThumbDrag: w, onMouseDown: S, ...E } = e, C = "touch" === Mn(), L = u ?? !C;
4238
4238
  Yt(c ?? (() => {}), [c]);
4239
4239
  const [k, D] = A({
4240
4240
  offset: 0,
4241
4241
  length: 0,
4242
4242
  disabled: !1
4243
- }), B = z(-1), O = l === Ci.Vertical, [H, { width: I, height: W }] = yo(), K = O ? W : I, V = z(null), j = N([H, V]), Y = Yt((e, t, n) => {
4243
+ }), B = z(-1), O = l === Li.Vertical, [H, { width: I, height: W }] = bo(), K = O ? W : I, V = z(null), j = N([H, V]), Y = Yt((e, t, n) => {
4244
4244
  if (0 === t || 0 === n) {
4245
4245
  const e = {
4246
4246
  offset: 0,
@@ -4290,14 +4290,14 @@ var os = 24, rs = w(v((e, t) => {
4290
4290
  O,
4291
4291
  K
4292
4292
  ]);
4293
- const q = Math.max(0, o - r), U = lo(t, () => ({ isScrollbar: () => !0 }), []), G = Yt((e) => {
4293
+ const q = Math.max(0, o - r), U = ao(t, () => ({ isScrollbar: () => !0 }), []), G = Yt((e) => {
4294
4294
  const t = Math.max(1, Math.floor(.9 * r)), o = e > 0 ? Math.min(q, n + t) : Math.max(0, n - t);
4295
4295
  Z(o);
4296
4296
  }, [
4297
4297
  r,
4298
4298
  n,
4299
4299
  q
4300
- ]), Q = Wi({
4300
+ ]), Q = Ki({
4301
4301
  vertical: O,
4302
4302
  getTrackRect: () => V.current?.getBoundingClientRect() ?? null,
4303
4303
  getThumb: () => k.disabled ? null : {
@@ -4339,7 +4339,7 @@ var os = 24, rs = w(v((e, t) => {
4339
4339
  if (e) return null;
4340
4340
  const t = R("div", {
4341
4341
  ...y,
4342
- className: F(ki, { disabled: e }),
4342
+ className: F(zi, { "sxl-disabled": e }),
4343
4343
  ref: ne,
4344
4344
  role: "slider",
4345
4345
  "aria-label": O ? "Rows" : "Columns",
@@ -4360,9 +4360,9 @@ var os = 24, rs = w(v((e, t) => {
4360
4360
  });
4361
4361
  if (!C || e) return t;
4362
4362
  const o = Math.max(0, K - k.length);
4363
- return $(P, { children: [t, R(ns, {
4363
+ return $(P, { children: [t, R(os, {
4364
4364
  ...v,
4365
- orientation: O ? Ci.Vertical : Ci.Horizontal,
4365
+ orientation: O ? Li.Vertical : Li.Horizontal,
4366
4366
  fraction: o > 0 ? k.offset / o : 0,
4367
4367
  onScrollToFraction: (e) => X(e * o),
4368
4368
  onEdgeHold: b,
@@ -4415,7 +4415,7 @@ var os = 24, rs = w(v((e, t) => {
4415
4415
  ue
4416
4416
  ]);
4417
4417
  M(() => () => ue(), [ue]);
4418
- const de = T(() => L ? R(Po, {
4418
+ const de = T(() => L ? R(Ro, {
4419
4419
  render: g,
4420
4420
  props: {
4421
4421
  orientation: l,
@@ -4429,7 +4429,7 @@ var os = 24, rs = w(v((e, t) => {
4429
4429
  l,
4430
4430
  n,
4431
4431
  re
4432
- ]), fe = T(() => L ? R(Po, {
4432
+ ]), fe = T(() => L ? R(Ro, {
4433
4433
  render: _,
4434
4434
  props: {
4435
4435
  orientation: l,
@@ -4447,9 +4447,9 @@ var os = 24, rs = w(v((e, t) => {
4447
4447
  ]), pe = O ? "vertical" : "horizontal", me = N([U, t]);
4448
4448
  return $("div", {
4449
4449
  ref: me,
4450
- className: F(s, Li, pe, {
4451
- dragging: ee,
4452
- "has-touch-thumb": C
4450
+ className: F(s, Ti, pe, {
4451
+ "sxl-dragging": ee,
4452
+ "sxl-has-touch-thumb": C
4453
4453
  }),
4454
4454
  style: i,
4455
4455
  ...E,
@@ -4463,7 +4463,7 @@ var os = 24, rs = w(v((e, t) => {
4463
4463
  "aria-valuemax": q,
4464
4464
  "aria-valuenow": n,
4465
4465
  tabIndex: 0,
4466
- className: F(Ti, "track", pe),
4466
+ className: F(ki, "sxl-track", pe),
4467
4467
  onMouseDown: S,
4468
4468
  onPointerDown: Q.onPointerDown,
4469
4469
  onPointerMove: Q.onPointerMove,
@@ -4474,24 +4474,24 @@ var os = 24, rs = w(v((e, t) => {
4474
4474
  fe
4475
4475
  ]
4476
4476
  });
4477
- })), is = Date.now, ss = 1e3, ls = {}, as = 1, cs = (e) => {
4478
- let t = null !== ls[e];
4479
- return t && (ls[e] = null), t;
4480
- }, us = (e, t, n, o = 0, r) => {
4481
- let i = is(), s = i, l = 0, a = 0, c = 0, u = as++;
4477
+ })), ss = Date.now, ls = 1e3, as = {}, cs = 1, us = (e) => {
4478
+ let t = null !== as[e];
4479
+ return t && (as[e] = null), t;
4480
+ }, hs = (e, t, n, o = 0, r) => {
4481
+ let i = ss(), s = i, l = 0, a = 0, c = 0, u = cs++;
4482
4482
  if (u % 20 == 0) {
4483
4483
  const e = {};
4484
- for (let t in ls) e[t] = !0;
4485
- ls = e;
4484
+ for (let t in as) e[t] = !0;
4485
+ as = e;
4486
4486
  }
4487
4487
  const h = function(d) {
4488
- let f = !0 !== d, p = is(), m = !0;
4488
+ let f = !0 !== d, p = ss(), m = !0;
4489
4489
  try {
4490
4490
  m = (!t || t(u)) ?? !0;
4491
4491
  } catch (e) {
4492
4492
  m = !1;
4493
4493
  }
4494
- if (!ls[u] || !m) return ls[u] = null, void n?.(60 - a / ((p - i) / ss), u, !1);
4494
+ if (!as[u] || !m) return as[u] = null, void n?.(60 - a / ((p - i) / ls), u, !1);
4495
4495
  if (f) {
4496
4496
  c = Math.round((p - s) / 16.666666666666668) - 1;
4497
4497
  for (let e = 0; e < Math.min(c, 4); e++) h(!0), a++;
@@ -4503,17 +4503,17 @@ var os = 24, rs = w(v((e, t) => {
4503
4503
  } catch (e) {
4504
4504
  _ = !1;
4505
4505
  }
4506
- !1 !== _ && 1 !== l || !f ? f && (s = p, requestAnimationFrame(h)) : (ls[u] = null, n?.(60 - a / ((p - i) / ss), u, 1 === l || null == o));
4506
+ !1 !== _ && 1 !== l || !f ? f && (s = p, requestAnimationFrame(h)) : (as[u] = null, n?.(60 - a / ((p - i) / ls), u, 1 === l || null == o));
4507
4507
  };
4508
- return ls[u] = !0, requestAnimationFrame(h), u;
4509
- }, hs = function(e) {
4510
- return Math.pow(e - 1, 3) + 1;
4508
+ return as[u] = !0, requestAnimationFrame(h), u;
4511
4509
  }, ds = function(e) {
4510
+ return Math.pow(e - 1, 3) + 1;
4511
+ }, fs = function(e) {
4512
4512
  return (e /= .5) < 1 ? .5 * Math.pow(e, 3) : .5 * (Math.pow(e - 2, 3) + 2);
4513
- }, fs = Math.log(1.15) / 100, ps = (e) => {
4513
+ }, ps = Math.log(1.15) / 100, ms = (e) => {
4514
4514
  const t = e[1].pageX - e[0].pageX, n = e[1].pageY - e[0].pageY;
4515
4515
  return Math.sqrt(t * t + n * n);
4516
- }, ms = class {
4516
+ }, gs = class {
4517
4517
  constructor(e, t) {
4518
4518
  this.__isSingleTouch = !1, this.__isTracking = !1, this.__didDecelerationComplete = !1, this.__isGesturing = !1, this.__isZooming = !1, this.__pinchStartDistance = 0, this.__gestureMoveX = 0, this.__gestureMoveY = 0, this.__isDragging = !1, this.__isDecelerating = 0, this.__isAnimating = 0, this.__interruptedAnimation = !1, this.__lastScale = 1, this.__enableScrollX = !0, this.__enableScrollY = !0, this.__clientLeft = 0, this.__clientTop = 0, this.__clientWidth = 0, this.__clientHeight = 0, this.__contentWidth = 0, this.__contentHeight = 0, this.__snapWidth = 100, this.__snapHeight = 100, this.__zoomLevel = 1, this.__scrollLeft = 0, this.__scrollTop = 0, this.__maxScrollLeft = 0, this.__maxScrollTop = 0, this.__scheduledLeft = 0, this.__scheduledTop = 0, this.__scheduledZoom = 0, this.__lastTouchLeft = 0, this.__lastTouchTop = 0, this.__lastTouchMove = 0, this.__positions = [], this.__initialTouchLeft = 0, this.__initialTouchTop = 0, this.__zoomLevelStart = 1, this.__minDecelerationScrollLeft = 0, this.__minDecelerationScrollTop = 0, this.__maxDecelerationScrollLeft = 0, this.__maxDecelerationScrollTop = 0, this.__decelerationVelocityX = 0, this.__decelerationVelocityY = 0, this.__zoomComplete = null, this.__callback = e, this.options = {
4519
4519
  scrollingX: !0,
@@ -4567,7 +4567,7 @@ var os = 24, rs = w(v((e, t) => {
4567
4567
  }
4568
4568
  zoomTo(e, t = !1, n, o, r) {
4569
4569
  if (!this.options.zooming) throw new Error("Zooming is not enabled!");
4570
- r && (this.__zoomComplete = r), this.__isDecelerating && (cs(this.__isDecelerating), this.__isDecelerating = 0);
4570
+ r && (this.__zoomComplete = r), this.__isDecelerating && (us(this.__isDecelerating), this.__isDecelerating = 0);
4571
4571
  const i = this.__zoomLevel;
4572
4572
  void 0 === n && (n = this.__clientWidth / 2), void 0 === o && (o = this.__clientHeight / 2), e = Math.max(Math.min(e, this.options.maxZoom), this.options.minZoom), this.__computeScrollMax(e);
4573
4573
  const s = e / i;
@@ -4586,7 +4586,7 @@ var os = 24, rs = w(v((e, t) => {
4586
4586
  this.zoomTo(this.__zoomLevel * e, t, n, o, r);
4587
4587
  }
4588
4588
  scrollTo(e, t, n = !1, o) {
4589
- if (this.__isDecelerating && (cs(this.__isDecelerating), this.__isDecelerating = 0), void 0 !== o && o !== this.__zoomLevel) {
4589
+ if (this.__isDecelerating && (us(this.__isDecelerating), this.__isDecelerating = 0), void 0 !== o && o !== this.__zoomLevel) {
4590
4590
  if (!this.options.zooming) throw new Error("Zooming is not enabled!");
4591
4591
  e *= o, t *= o, this.__computeScrollMax(o);
4592
4592
  } else o = this.__zoomLevel;
@@ -4597,16 +4597,16 @@ var os = 24, rs = w(v((e, t) => {
4597
4597
  this.scrollTo(o + (e || 0), r + (t || 0), n);
4598
4598
  }
4599
4599
  doMouseZoom(e, t, n, o) {
4600
- const r = Math.exp(-e * fs);
4600
+ const r = Math.exp(-e * ps);
4601
4601
  return this.zoomTo(this.__zoomLevel * r, !1, n - this.__clientLeft, o - this.__clientTop);
4602
4602
  }
4603
4603
  doTouchStart(e, t) {
4604
4604
  if (void 0 === e.length) throw new Error("Invalid touch list: " + e);
4605
4605
  if (t instanceof Date && (t = t.valueOf()), "number" != typeof t) throw new Error("Invalid timestamp value: " + t);
4606
4606
  let n, o;
4607
- this.__interruptedAnimation = !0, this.__isDecelerating && (cs(this.__isDecelerating), this.__isDecelerating = 0, this.__interruptedAnimation = !0), this.__isAnimating && (cs(this.__isAnimating), this.__isAnimating = 0, this.__interruptedAnimation = !0);
4607
+ this.__interruptedAnimation = !0, this.__isDecelerating && (us(this.__isDecelerating), this.__isDecelerating = 0, this.__interruptedAnimation = !0), this.__isAnimating && (us(this.__isAnimating), this.__isAnimating = 0, this.__interruptedAnimation = !0);
4608
4608
  let r = 1 === e.length;
4609
- r ? (n = e[0].pageX, o = e[0].pageY) : (n = Math.abs(e[0].pageX + e[1].pageX) / 2, o = Math.abs(e[0].pageY + e[1].pageY) / 2), this.__initialTouchLeft = n, this.__initialTouchTop = o, this.__zoomLevelStart = this.__zoomLevel, this.__pinchStartDistance = r ? 0 : ps(e), this.__isGesturing = !r && !!this.options.zooming, this.__gestureMoveX = 0, this.__gestureMoveY = 0, this.__lastTouchLeft = n, this.__lastTouchTop = o, this.__lastTouchMove = t, this.__lastScale = 1, this.__enableScrollX = !r && !!this.options.scrollingX, this.__enableScrollY = !r && !!this.options.scrollingY, this.__isTracking = !0, this.__didDecelerationComplete = !1, this.__isDragging = !r, this.__isSingleTouch = r, this.__positions = [], this.__enableScrollX, this.__enableScrollY, this.__isDragging, this.__maxScrollLeft, this.__maxScrollTop;
4609
+ r ? (n = e[0].pageX, o = e[0].pageY) : (n = Math.abs(e[0].pageX + e[1].pageX) / 2, o = Math.abs(e[0].pageY + e[1].pageY) / 2), this.__initialTouchLeft = n, this.__initialTouchTop = o, this.__zoomLevelStart = this.__zoomLevel, this.__pinchStartDistance = r ? 0 : ms(e), this.__isGesturing = !r && !!this.options.zooming, this.__gestureMoveX = 0, this.__gestureMoveY = 0, this.__lastTouchLeft = n, this.__lastTouchTop = o, this.__lastTouchMove = t, this.__lastScale = 1, this.__enableScrollX = !r && !!this.options.scrollingX, this.__enableScrollY = !r && !!this.options.scrollingY, this.__isTracking = !0, this.__didDecelerationComplete = !1, this.__isDragging = !r, this.__isSingleTouch = r, this.__positions = [], this.__enableScrollX, this.__enableScrollY, this.__isDragging, this.__maxScrollLeft, this.__maxScrollTop;
4610
4610
  }
4611
4611
  doTouchMove(e, t) {
4612
4612
  if (void 0 === e.length) throw new Error("Invalid touch list: " + e);
@@ -4615,7 +4615,7 @@ var os = 24, rs = w(v((e, t) => {
4615
4615
  let n, o;
4616
4616
  2 === e.length ? (n = Math.abs(e[0].pageX + e[1].pageX) / 2, o = Math.abs(e[0].pageY + e[1].pageY) / 2) : (n = e[0].pageX, o = e[0].pageY);
4617
4617
  let r = this.__positions;
4618
- const i = 2 === e.length && this.__pinchStartDistance > 0 ? ps(e) / this.__pinchStartDistance : 1;
4618
+ const i = 2 === e.length && this.__pinchStartDistance > 0 ? ms(e) / this.__pinchStartDistance : 1;
4619
4619
  if (this.__isDragging) {
4620
4620
  let e = n - this.__lastTouchLeft, s = o - this.__lastTouchTop;
4621
4621
  this.__gestureMoveX = e, this.__gestureMoveY = s;
@@ -4662,14 +4662,14 @@ var os = 24, rs = w(v((e, t) => {
4662
4662
  }
4663
4663
  __publish(e, t, n, o = !1) {
4664
4664
  const r = this.__isAnimating;
4665
- if (r && (cs(r), this.__isAnimating = 0), o && this.options.animating) {
4665
+ if (r && (us(r), this.__isAnimating = 0), o && this.options.animating) {
4666
4666
  this.__scheduledLeft = e, this.__scheduledTop = t, this.__scheduledZoom = n;
4667
4667
  const o = this.__scrollLeft, i = this.__scrollTop, s = this.__zoomLevel, l = e - o, a = t - i, c = n - s, u = (e, t, n = !1) => {
4668
4668
  n && (this.__scrollLeft = o + l * e, this.__scrollTop = i + a * e, this.__zoomLevel = s + c * e, this.__callback && this.__callback(this.__scrollLeft, this.__scrollTop, this.__zoomLevel));
4669
4669
  }, h = (e) => this.__isAnimating === e, d = (e, t, n = !1) => {
4670
4670
  t === this.__isAnimating && (this.__isAnimating = 0), (this.__didDecelerationComplete || n) && this.options.scrollingComplete?.(), this.options.zooming && (this.__computeScrollMax(), this.__zoomComplete && (this.__zoomComplete(), this.__zoomComplete = null));
4671
4671
  };
4672
- this.__isAnimating = us(u, h, d, this.options.animationDuration, r ? hs : ds);
4672
+ this.__isAnimating = hs(u, h, d, this.options.animationDuration, r ? ds : fs);
4673
4673
  } else this.__scheduledLeft = this.__scrollLeft = e, this.__scheduledTop = this.__scrollTop = t, this.__scheduledZoom = this.__zoomLevel = n, this.__callback && this.__callback(e, t, n), this.options.zooming && (this.__computeScrollMax(), this.__zoomComplete && (this.__zoomComplete(), this.__zoomComplete = null));
4674
4674
  }
4675
4675
  __computeScrollMax(e = this.__zoomLevel) {
@@ -4681,7 +4681,7 @@ var os = 24, rs = w(v((e, t) => {
4681
4681
  this.__minDecelerationScrollLeft = Math.floor(e / n) * n, this.__minDecelerationScrollTop = Math.floor(t / o) * o, this.__maxDecelerationScrollLeft = Math.ceil(e / n) * n, this.__maxDecelerationScrollTop = Math.ceil(t / o) * o;
4682
4682
  } else this.__minDecelerationScrollLeft = 0, this.__minDecelerationScrollTop = 0, this.__maxDecelerationScrollLeft = this.__maxScrollLeft, this.__maxDecelerationScrollTop = this.__maxScrollTop;
4683
4683
  const t = this.options.snapping ? 4 : .1;
4684
- this.__isDecelerating = us((e, t, n = !1) => {
4684
+ this.__isDecelerating = hs((e, t, n = !1) => {
4685
4685
  this.__stepThroughDeceleration(n);
4686
4686
  }, () => {
4687
4687
  const e = Math.abs(this.__decelerationVelocityX) >= t || Math.abs(this.__decelerationVelocityY) >= t;
@@ -4707,11 +4707,11 @@ var os = 24, rs = w(v((e, t) => {
4707
4707
  t < this.__minDecelerationScrollLeft ? e = this.__minDecelerationScrollLeft - t : t > this.__maxDecelerationScrollLeft && (e = this.__maxDecelerationScrollLeft - t), n < this.__minDecelerationScrollTop ? o = this.__minDecelerationScrollTop - n : n > this.__maxDecelerationScrollTop && (o = this.__maxDecelerationScrollTop - n), 0 !== e && (e * this.__decelerationVelocityX <= 0 ? this.__decelerationVelocityX += e * r : this.__decelerationVelocityX = e * i), 0 !== o && (o * this.__decelerationVelocityY <= 0 ? this.__decelerationVelocityY += o * r : this.__decelerationVelocityY = o * i);
4708
4708
  }
4709
4709
  }
4710
- }, gs = /* @__PURE__ */ new Set([
4710
+ }, _s = /* @__PURE__ */ new Set([
4711
4711
  "auto",
4712
4712
  "scroll",
4713
4713
  "overlay"
4714
- ]), _s = /* @__PURE__ */ new Set(["contain", "none"]), vs = (e, t) => {
4714
+ ]), vs = /* @__PURE__ */ new Set(["contain", "none"]), ys = (e, t) => {
4715
4715
  const { deltaX: n, deltaY: o, shiftKey: r } = e, i = r || Math.abs(n) > Math.abs(o), s = r ? o : i ? n : o;
4716
4716
  if (0 === s) return null;
4717
4717
  let l = e.target instanceof Element ? e.target : null;
@@ -4720,21 +4720,21 @@ var os = 24, rs = w(v((e, t) => {
4720
4720
  const e = i ? l.scrollWidth - l.clientWidth : l.scrollHeight - l.clientHeight;
4721
4721
  if (e > 0) {
4722
4722
  const t = getComputedStyle(l);
4723
- if (gs.has(i ? t.overflowX : t.overflowY)) {
4723
+ if (_s.has(i ? t.overflowX : t.overflowY)) {
4724
4724
  const n = i ? l.scrollLeft : l.scrollTop;
4725
4725
  if (s < 0 ? n > 0 : n < e - 1) return "native";
4726
- if (_s.has(i ? t.overscrollBehaviorX : t.overscrollBehaviorY)) return "contained";
4726
+ if (vs.has(i ? t.overscrollBehaviorX : t.overscrollBehaviorY)) return "contained";
4727
4727
  }
4728
4728
  }
4729
4729
  l = l.parentElement;
4730
4730
  }
4731
4731
  return null;
4732
- }, ys = 100 / 3, bs = G({
4732
+ }, bs = 100 / 3, ws = G({
4733
4733
  PANE_SCROLLER_ATTRIBUTE: () => "data-sxl-pane-scroller",
4734
- defaultRenderScrollbar: () => xs,
4735
- getScrollTo: () => ws,
4736
- getWheelOwner: () => vs
4737
- }), ws = (e, t, n, o, r = 0) => {
4734
+ defaultRenderScrollbar: () => Ss,
4735
+ getScrollTo: () => xs,
4736
+ getWheelOwner: () => ys
4737
+ }), xs = (e, t, n, o, r = 0) => {
4738
4738
  for (let r = 0; r < n.length; r++) {
4739
4739
  const i = n[r].getBoundingClientRect();
4740
4740
  let s = i.left - t, l = s + i.width;
@@ -4743,18 +4743,18 @@ var os = 24, rs = w(v((e, t) => {
4743
4743
  } else if (Math.ceil(l) > Math.ceil(e) + 2) return l;
4744
4744
  }
4745
4745
  return r;
4746
- }, xs = (e) => R(rs, { ...e }), Ss = (e) => {
4746
+ }, Ss = (e) => R(is, { ...e }), Ms = (e) => {
4747
4747
  const t = e.ownerDocument?.defaultView;
4748
4748
  return t ? t.getComputedStyle(e).touchAction : "";
4749
- }, Ms = (e) => {
4749
+ }, Es = (e) => {
4750
4750
  const t = e.trim();
4751
4751
  return "" === t || "auto" === t || "manipulation" === t || t.split(/\s+/).some((e) => e.startsWith("pan-"));
4752
- }, Es = "_scrollpane_zdrii_2", Cs = "_scrollpane-content_zdrii_20", Ls = "_scrollpane-content-cell_zdrii_33", Ts = "_vertical-container_zdrii_42", ks = "_horizontal-container_zdrii_50", zs = "_corner-container_zdrii_59", As = "_touch-thumb-overlay_zdrii_68", Ds = w(v((e, t) => {
4753
- const { children: n, viewport: o, disableMouseWheel: r = !1, onWheelScroll: i, zoomable: s = !1, showHorizontalScrollbar: l = !0, showVerticalScrollbar: a = !0, renderScrollCorner: c = Ps, renderScrollbarHorizontal: u = xs, renderScrollbarVertical: h = xs, style: d, className: f, disableTouch: p, ...m } = e, g = l && u, _ = a && h, v = Gt(o, (e) => e.getMetrics()), y = x((e, t) => {
4752
+ }, Cs = "_scrollpane_zdrii_2", Ls = "_scrollpane-content_zdrii_20", Ts = "_scrollpane-content-cell_zdrii_33", ks = "_vertical-container_zdrii_42", zs = "_horizontal-container_zdrii_50", As = "_corner-container_zdrii_59", Ds = "_touch-thumb-overlay_zdrii_68", Ps = w(v((e, t) => {
4753
+ const { children: n, viewport: o, disableMouseWheel: r = !1, onWheelScroll: i, zoomable: s = !1, showHorizontalScrollbar: l = !0, showVerticalScrollbar: a = !0, renderScrollCorner: c = Rs, renderScrollbarHorizontal: u = Ss, renderScrollbarVertical: h = Ss, style: d, className: f, disableTouch: p, ...m } = e, g = l && u, _ = a && h, v = Gt(o, (e) => e.getMetrics()), y = x((e, t) => {
4754
4754
  if (!o) return;
4755
4755
  const n = o.getTarget();
4756
4756
  o.setTarget(e.left ?? n.left, e.top ?? n.top, t);
4757
- }, [o]), b = lo(t, () => ({ isScrollPane: () => !0 }), []);
4757
+ }, [o]), b = ao(t, () => ({ isScrollPane: () => !0 }), []);
4758
4758
  M(() => {}, []);
4759
4759
  const w = z(null), S = Yt((e) => {
4760
4760
  o?.requestZoom(e);
@@ -4799,12 +4799,12 @@ var os = 24, rs = w(v((e, t) => {
4799
4799
  }), f = Yt((t) => {
4800
4800
  const n = t.shiftKey, { deltaX: o, deltaY: r, deltaMode: i } = t, f = c.current && !n && (t.ctrlKey || t.metaKey);
4801
4801
  if (!f && e.current) {
4802
- const n = vs(t, e.current);
4802
+ const n = ys(t, e.current);
4803
4803
  if ("native" === n) return;
4804
4804
  if ("contained" === n) return void t.preventDefault();
4805
4805
  }
4806
4806
  if (t.preventDefault(), f) {
4807
- const e = 1 === i ? ys : 2 === i ? 800 : 1, n = d.current;
4807
+ const e = 1 === i ? bs : 2 === i ? 800 : 1, n = d.current;
4808
4808
  if (n.deltaY += r * e, n.clientX = t.clientX, n.clientY = t.clientY, h.current) return;
4809
4809
  h.current = window.requestAnimationFrame(() => {
4810
4810
  h.current = null;
@@ -4884,10 +4884,10 @@ var os = 24, rs = w(v((e, t) => {
4884
4884
  top: t
4885
4885
  });
4886
4886
  }, []), B = z(!1), O = x((e) => {
4887
- 1 === e.touches.length && (B.current = ((e, t, n = Ss) => {
4887
+ 1 === e.touches.length && (B.current = ((e, t, n = Ms) => {
4888
4888
  let o = e instanceof Element ? e : null;
4889
4889
  for (; o && o !== t;) {
4890
- if (!Ms(n(o))) return !0;
4890
+ if (!Es(n(o))) return !0;
4891
4891
  o = o.parentElement;
4892
4892
  }
4893
4893
  return !1;
@@ -4905,7 +4905,7 @@ var os = 24, rs = w(v((e, t) => {
4905
4905
  M(() => {
4906
4906
  const e = b.current, t = !p && Fe().supportsTouchEvents;
4907
4907
  if ((t || s) && e && v) {
4908
- w.current || (w.current = new ms(P, {
4908
+ w.current || (w.current = new gs(P, {
4909
4909
  scrollingX: !0,
4910
4910
  scrollingY: !0,
4911
4911
  decelerationRate: .95,
@@ -4934,11 +4934,11 @@ var os = 24, rs = w(v((e, t) => {
4934
4934
  p,
4935
4935
  s
4936
4936
  ]);
4937
- const W = Fe().supportsTouchEvents, [K, V] = A(null), [j, { width: Y, height: X }] = yo(), Z = x((e) => {
4937
+ const W = Fe().supportsTouchEvents, [K, V] = A(null), [j, { width: Y, height: X }] = bo(), Z = x((e) => {
4938
4938
  V(e), j(e);
4939
4939
  }, [j]), q = T(() => {
4940
4940
  if (!K) return null;
4941
- const e = Ui(), t = Math.min(Y, v?.width ?? Y), n = Math.min(X, v?.height ?? X);
4941
+ const e = Gi(), t = Math.min(Y, v?.width ?? Y), n = Math.min(X, v?.height ?? X);
4942
4942
  return {
4943
4943
  portalTarget: K,
4944
4944
  width: Y,
@@ -4947,7 +4947,7 @@ var os = 24, rs = w(v((e, t) => {
4947
4947
  viewportHeight: n,
4948
4948
  reserveVertical: g ? e : 0,
4949
4949
  reserveHorizontal: _ ? e : 0,
4950
- crossInset: qi()
4950
+ crossInset: Ui()
4951
4951
  };
4952
4952
  }, [
4953
4953
  K,
@@ -4959,10 +4959,10 @@ var os = 24, rs = w(v((e, t) => {
4959
4959
  _
4960
4960
  ]), U = T(() => {
4961
4961
  if (!_) return null;
4962
- const e = R(Po, {
4962
+ const e = R(Ro, {
4963
4963
  render: h,
4964
4964
  props: {
4965
- orientation: Ci.Vertical,
4965
+ orientation: Li.Vertical,
4966
4966
  offset: v?.top ?? 0,
4967
4967
  viewportSize: v?.height ?? 0,
4968
4968
  totalSize: v?.totalHeight ?? 0,
@@ -4972,7 +4972,7 @@ var os = 24, rs = w(v((e, t) => {
4972
4972
  }
4973
4973
  });
4974
4974
  return R("div", {
4975
- className: F("vertical-container", Ts),
4975
+ className: F("sxl-vertical-container", ks),
4976
4976
  children: e
4977
4977
  });
4978
4978
  }, [
@@ -4982,10 +4982,10 @@ var os = 24, rs = w(v((e, t) => {
4982
4982
  v?.totalHeight
4983
4983
  ]), G = T(() => {
4984
4984
  if (!g) return null;
4985
- const e = R(Po, {
4985
+ const e = R(Ro, {
4986
4986
  render: u,
4987
4987
  props: {
4988
- orientation: Ci.Horizontal,
4988
+ orientation: Li.Horizontal,
4989
4989
  offset: v?.left ?? 0,
4990
4990
  viewportSize: v?.width ?? 0,
4991
4991
  totalSize: v?.totalWidth ?? 0,
@@ -4995,7 +4995,7 @@ var os = 24, rs = w(v((e, t) => {
4995
4995
  }
4996
4996
  });
4997
4997
  return R("div", {
4998
- className: F("horizontal-container", ks),
4998
+ className: F("sxl-horizontal-container", zs),
4999
4999
  children: e
5000
5000
  });
5001
5001
  }, [
@@ -5004,8 +5004,8 @@ var os = 24, rs = w(v((e, t) => {
5004
5004
  v?.width,
5005
5005
  v?.totalWidth
5006
5006
  ]), J = T(() => _ && g ? R("div", {
5007
- className: F("corner-container", zs),
5008
- children: R(Po, {
5007
+ className: F("sxl-corner-container", As),
5008
+ children: R(Ro, {
5009
5009
  render: c,
5010
5010
  props: {}
5011
5011
  })
@@ -5015,17 +5015,17 @@ var os = 24, rs = w(v((e, t) => {
5015
5015
  c
5016
5016
  ]);
5017
5017
  return R("div", {
5018
- className: F(f, "scrollpane", Es),
5018
+ className: F(f, "sxl-scrollpane", Cs),
5019
5019
  style: d,
5020
5020
  ...m,
5021
5021
  ref: b,
5022
- children: R(Ji, {
5022
+ children: R(Qi, {
5023
5023
  value: q,
5024
5024
  children: $("div", {
5025
- className: F("scrollpane-content", Cs),
5025
+ className: F("sxl-scrollpane-content", Ls),
5026
5026
  children: [
5027
5027
  R("div", {
5028
- className: F("scrollpane-content-cell", Ls),
5028
+ className: F("sxl-scrollpane-content-cell", Ts),
5029
5029
  children: n
5030
5030
  }),
5031
5031
  _ ? U : null,
@@ -5033,18 +5033,18 @@ var os = 24, rs = w(v((e, t) => {
5033
5033
  J,
5034
5034
  W ? R("div", {
5035
5035
  ref: Z,
5036
- className: F("touch-thumb-overlay", As)
5036
+ className: F("sxl-touch-thumb-overlay", Ds)
5037
5037
  }) : null
5038
5038
  ]
5039
5039
  })
5040
5040
  })
5041
5041
  });
5042
5042
  }));
5043
- Ds.displayName = "ScrollPane";
5044
- var Ps = (e) => {
5043
+ Ps.displayName = "ScrollPane";
5044
+ var Rs = (e) => {
5045
5045
  const { size: t, style: n, ...o } = e;
5046
5046
  return R("div", {
5047
- className: "corner",
5047
+ className: "sxl-corner",
5048
5048
  style: {
5049
5049
  width: "100%",
5050
5050
  height: "100%",
@@ -5052,7 +5052,7 @@ var Ps = (e) => {
5052
5052
  },
5053
5053
  ...o
5054
5054
  });
5055
- }, Rs = class {
5055
+ }, $s = class {
5056
5056
  constructor(e) {
5057
5057
  this._bounds = {
5058
5058
  minLeft: 0,
@@ -5171,7 +5171,7 @@ var Ps = (e) => {
5171
5171
  }
5172
5172
  _applyBounds(e) {
5173
5173
  this._bounds = e;
5174
- const t = Ws(this._target.left, e.minLeft, e.maxLeft), n = Ws(this._target.top, e.minTop, e.maxTop);
5174
+ const t = Ks(this._target.left, e.minLeft, e.maxLeft), n = Ks(this._target.top, e.minTop, e.maxTop);
5175
5175
  t === this._target.left && n === this._target.top || (this._target = {
5176
5176
  left: t,
5177
5177
  top: n
@@ -5193,12 +5193,12 @@ var Ps = (e) => {
5193
5193
  return this._observe(e, "both");
5194
5194
  }
5195
5195
  _observe(e, t) {
5196
- if (!e) return Fs;
5196
+ if (!e) return Ws;
5197
5197
  const n = (e, n) => {
5198
5198
  const o = this._measuredClient;
5199
5199
  this._setMeasuredClient("height" === t ? o?.width ?? 0 : e, "width" === t ? o?.height ?? 0 : n);
5200
5200
  };
5201
- if (!Ns()) return n(0, 0), Fs;
5201
+ if (!Fs()) return n(0, 0), Ws;
5202
5202
  const o = new ResizeObserver((e) => {
5203
5203
  const t = e[0]?.contentRect;
5204
5204
  t && n(t.width, t.height);
@@ -5245,17 +5245,17 @@ var Ps = (e) => {
5245
5245
  }
5246
5246
  setTarget(e, t, n) {
5247
5247
  const o = this._bounds;
5248
- return e = Ws(e, o.minLeft, o.maxLeft), t = Ws(t, o.minTop, o.maxTop), this._target.left === e && this._target.top === t ? (this._current.left === e && this._current.top === t || this._ensureTicking(), !1) : (this._target = {
5248
+ return e = Ks(e, o.minLeft, o.maxLeft), t = Ks(t, o.minTop, o.maxTop), this._target.left === e && this._target.top === t ? (this._current.left === e && this._current.top === t || this._ensureTicking(), !1) : (this._target = {
5249
5249
  left: e,
5250
5250
  top: t
5251
5251
  }, n ? this._startAnimation() : this._anim = null, this._ensureTicking(), !0);
5252
5252
  }
5253
5253
  _startAnimation() {
5254
- const e = this._current, t = this._target, n = this._effClient(), o = n.width > 0 ? n.width * Os : 1 / 0, r = n.height > 0 ? n.height * Os : 1 / 0, i = Ws(e.left, t.left - o, t.left + o), s = Ws(e.top, t.top - r, t.top + r), l = Math.max(Math.abs(t.left - i), Math.abs(t.top - s)), a = Math.min(200, l * Bs);
5255
- this._anim = a <= Hs ? null : {
5254
+ const e = this._current, t = this._target, n = this._effClient(), o = n.width > 0 ? n.width * Hs : 1 / 0, r = n.height > 0 ? n.height * Hs : 1 / 0, i = Ks(e.left, t.left - o, t.left + o), s = Ks(e.top, t.top - r, t.top + r), l = Math.max(Math.abs(t.left - i), Math.abs(t.top - s)), a = Math.min(200, l * Os);
5255
+ this._anim = a <= Is ? null : {
5256
5256
  fromLeft: i,
5257
5257
  fromTop: s,
5258
- start: Is(),
5258
+ start: Ns(),
5259
5259
  duration: a
5260
5260
  };
5261
5261
  }
@@ -5294,7 +5294,7 @@ var Ps = (e) => {
5294
5294
  const e = this._current, t = this._target, n = this._anim;
5295
5295
  let o, r, i = !1;
5296
5296
  if (n) {
5297
- const e = (Is() - n.start) / n.duration;
5297
+ const e = (Ns() - n.start) / n.duration;
5298
5298
  if (e >= 1) o = t.left, r = t.top, this._anim = null;
5299
5299
  else {
5300
5300
  const s = 1 - Math.pow(1 - e, 3);
@@ -5306,7 +5306,7 @@ var Ps = (e) => {
5306
5306
  top: r
5307
5307
  }, this._viewport = null, this._emit()), i;
5308
5308
  }
5309
- }, $s = 200, Bs = 2.5, Os = 1.5, Hs = 17, Is = () => "undefined" != typeof performance ? performance.now() : Date.now(), Ns = () => "undefined" != typeof ResizeObserver, Fs = () => {}, Ws = (e, t, n) => Math.min(n, Math.max(t, e)), Ks = class {
5309
+ }, Bs = 200, Os = 2.5, Hs = 1.5, Is = 17, Ns = () => "undefined" != typeof performance ? performance.now() : Date.now(), Fs = () => "undefined" != typeof ResizeObserver, Ws = () => {}, Ks = (e, t, n) => Math.min(n, Math.max(t, e)), Vs = class {
5310
5310
  constructor(e, t, n, o, r) {
5311
5311
  this._h = e, this._v = t, this._followH = n, this._followV = o, this._zoomCtrl = r, this._combined = null, this._hSnap = null, this._vSnap = null, this._vp = null, this._vpH = null, this._vpV = null;
5312
5312
  }
@@ -5419,8 +5419,8 @@ var Ps = (e) => {
5419
5419
  setContent(e, t, n = 0, o = 0) {
5420
5420
  this._same ? this._h.setContent(e, t, n, o) : (this._followH || this._h.setContentAxis("width", e, n), this._followV || this._v.setContentAxis("height", t, o));
5421
5421
  }
5422
- }, Vs = 300, js = 100, Ys = 1e6, Xs = 100, Zs = 50, qs = w(v((e, t) => {
5423
- const { offset: n = 0, viewportSize: o = 0, totalSize: r = 0, minSize: i = 0, endGap: s = Vs, endScrollIncrement: l = js, style: a = Oe, onMouseDown: c, onThumbDrag: u, onScrollOffset: h, onScroll: d, scaleLimit: f = Ys, scaleFactor: p = Xs, precisionFactor: m = Zs, renderScrollbar: g = xs, ..._ } = e;
5422
+ }, js = 300, Ys = 100, Xs = 1e6, Zs = 100, qs = 50, Us = w(v((e, t) => {
5423
+ const { offset: n = 0, viewportSize: o = 0, totalSize: r = 0, minSize: i = 0, endGap: s = js, endScrollIncrement: l = Ys, style: a = Oe, onMouseDown: c, onThumbDrag: u, onScrollOffset: h, onScroll: d, scaleLimit: f = Xs, scaleFactor: p = Zs, precisionFactor: m = qs, renderScrollbar: g = Ss, ..._ } = e;
5424
5424
  d && console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");
5425
5425
  const v = Yt(c ?? (() => {}), [c]), [y, b] = A(!1), w = z(0), S = T(() => {
5426
5426
  let e = 0 === f ? r : Math.min(r ?? 0, Math.max(i ?? 0, (n ?? 0) + (o ?? 0)) + (s ?? 0));
@@ -5461,7 +5461,7 @@ var Ps = (e) => {
5461
5461
  }, []), D = x((e) => {
5462
5462
  b(!0), v?.(e), document.addEventListener("mousemove", L, { passive: !0 }), document.addEventListener("mouseup", k, { passive: !0 });
5463
5463
  }, [L, k]);
5464
- return R(Po, {
5464
+ return R(Ro, {
5465
5465
  render: g,
5466
5466
  props: {
5467
5467
  style: a,
@@ -5477,8 +5477,8 @@ var Ps = (e) => {
5477
5477
  }
5478
5478
  });
5479
5479
  }));
5480
- qs.displayName = "VirtualScrollbar";
5481
- var Us = "_scrollbar-themed_nj3vu_7", Gs = (e) => ({
5480
+ Us.displayName = "VirtualScrollbar";
5481
+ var Gs = "_scrollbar-themed_nj3vu_7", Js = (e) => ({
5482
5482
  "--scrollbar-track-color": e.track,
5483
5483
  "--scrollbar-thumb-color": e.thumb,
5484
5484
  "--scrollbar-button-color": e.button || e.thumb,
@@ -5490,13 +5490,13 @@ var Us = "_scrollbar-themed_nj3vu_7", Gs = (e) => ({
5490
5490
  "--scrollbar-border-radius": "9999px",
5491
5491
  "--scrollbar-border-width": "2px",
5492
5492
  "--scrollbar-min-thumb-size": "24px"
5493
- }), Js = (e) => {
5493
+ }), Qs = (e) => {
5494
5494
  if ("undefined" == typeof window) return !1;
5495
- const t = ao();
5495
+ const t = co();
5496
5496
  if (t?.overlaysContent) return t.boundingRect.height > 150;
5497
5497
  const n = window.visualViewport;
5498
5498
  return !!n && (e ?? window.innerHeight) - n.height * n.scale > 150;
5499
- }, Qs = (e) => {
5499
+ }, el = (e) => {
5500
5500
  const t = Object.freeze({ ...e }), n = !(t.disabled ?? "mouseOnly" === Fe().deviceType);
5501
5501
  let o = {
5502
5502
  active: !1,
@@ -5529,8 +5529,8 @@ var Us = "_scrollbar-themed_nj3vu_7", Gs = (e) => ({
5529
5529
  i.delete(e);
5530
5530
  })
5531
5531
  };
5532
- }, el = null, tl = g(null), nl = (e) => {
5533
- const { store: t, disabled: n, disableScrollIntoView: o, keepOnTap: r, children: i } = e, s = T(() => t ?? Qs({
5532
+ }, tl = null, nl = g(null), ol = (e) => {
5533
+ const { store: t, disabled: n, disableScrollIntoView: o, keepOnTap: r, children: i } = e, s = T(() => t ?? el({
5534
5534
  disabled: n,
5535
5535
  disableScrollIntoView: o,
5536
5536
  keepOnTap: r
@@ -5540,15 +5540,15 @@ var Us = "_scrollbar-themed_nj3vu_7", Gs = (e) => ({
5540
5540
  o,
5541
5541
  r
5542
5542
  ]);
5543
- return _(tl.Provider, { value: s }, i);
5544
- }, ol = () => S(tl) ?? (el || (el = Qs()), el), rl = () => {
5545
- const e = ol();
5543
+ return _(nl.Provider, { value: s }, i);
5544
+ }, rl = () => S(nl) ?? (tl || (tl = el()), tl), il = () => {
5545
+ const e = rl();
5546
5546
  return D(e.subscribe, e.getState, e.getState), e;
5547
- }, il = null, sl = null, ll = /* @__PURE__ */ new Set(), al = (e, t) => {
5548
- null === t && sl !== e || il === t && sl === e || (il = t, sl = null === t ? null : e, ll.forEach((e) => e()));
5549
- }, cl = () => il, ul = (e) => (ll.add(e), () => {
5550
- ll.delete(e);
5551
- }), hl = v((e, t) => {
5547
+ }, sl = null, ll = null, al = /* @__PURE__ */ new Set(), cl = (e, t) => {
5548
+ null === t && ll !== e || sl === t && ll === e || (sl = t, ll = null === t ? null : e, al.forEach((e) => e()));
5549
+ }, ul = () => sl, hl = (e) => (al.add(e), () => {
5550
+ al.delete(e);
5551
+ }), dl = v((e, t) => {
5552
5552
  const { floating: n, anchor: o = null, onShownChange: r, onKeyboardClose: i, className: s, style: l, children: a } = e, [c, u] = A(null), h = x((e) => {
5553
5553
  u(e), "function" == typeof t ? t(e) : t && (t.current = e);
5554
5554
  }, [t]), d = z(n);
@@ -5562,16 +5562,16 @@ var Us = "_scrollbar-themed_nj3vu_7", Gs = (e) => ({
5562
5562
  onKeyboardClose: i
5563
5563
  };
5564
5564
  const p = z(null);
5565
- _o(() => {
5565
+ vo(() => {
5566
5566
  if (!c || "undefined" == typeof window) return;
5567
5567
  const e = {};
5568
5568
  let t = 0, n = 0, o = !1, r = !1, i = window.innerHeight, s = !1;
5569
- const l = ao();
5569
+ const l = co();
5570
5570
  let a = !1;
5571
5571
  const u = (e) => {
5572
5572
  l && e !== a && (a = e, l.overlaysContent = e);
5573
5573
  }, h = (t) => {
5574
- t !== r && (r = t, c.style.opacity = t ? "1" : "0", c.style.pointerEvents = t ? "auto" : "none", t || al(e, null), f.current.onShownChange?.(t));
5574
+ t !== r && (r = t, c.style.opacity = t ? "1" : "0", c.style.pointerEvents = t ? "auto" : "none", t || cl(e, null), f.current.onShownChange?.(t));
5575
5575
  }, m = () => {
5576
5576
  t = 0;
5577
5577
  const n = window.visualViewport, r = n?.scale ?? 1, i = n?.offsetTop ?? 0, s = n?.height ?? window.innerHeight, u = d.current && !o;
@@ -5580,11 +5580,11 @@ var Us = "_scrollbar-themed_nj3vu_7", Gs = (e) => ({
5580
5580
  const e = l.boundingRect.height;
5581
5581
  c.style.bottom = "auto", c.style.top = i + s - (e + c.offsetHeight) / r + "px", c.style.left = `${n.offsetLeft}px`, c.style.width = n.width * r + "px", c.style.transform = `scale(${1 / r})`;
5582
5582
  } else c.style.top = "auto", c.style.bottom = "env(keyboard-inset-height, 0px)", c.style.left = "0px", c.style.width = "100%", c.style.transform = "";
5583
- c.style.transition = "opacity 150ms ease-out", h(!0), al(e, c.getBoundingClientRect().top);
5583
+ c.style.transition = "opacity 150ms ease-out", h(!0), cl(e, c.getBoundingClientRect().top);
5584
5584
  return;
5585
5585
  }
5586
5586
  const f = u ? i + s - c.offsetHeight / r : i;
5587
- c.style.bottom = "auto", c.style.top = `${f}px`, c.style.left = `${n?.offsetLeft ?? 0}px`, c.style.width = (n?.width ?? window.innerWidth) * r + "px", c.style.transform = 1 !== r ? `scale(${1 / r})` : "", u ? (c.style.transition = "opacity 150ms ease-out", h(!0), al(e, f)) : (c.style.transition = "none", h(!1));
5587
+ c.style.bottom = "auto", c.style.top = `${f}px`, c.style.left = `${n?.offsetLeft ?? 0}px`, c.style.width = (n?.width ?? window.innerWidth) * r + "px", c.style.transform = 1 !== r ? `scale(${1 / r})` : "", u ? (c.style.transition = "opacity 150ms ease-out", h(!0), cl(e, f)) : (c.style.transition = "none", h(!1));
5588
5588
  }, g = () => {
5589
5589
  t || (t = requestAnimationFrame(m));
5590
5590
  }, _ = () => {
@@ -5594,10 +5594,10 @@ var Us = "_scrollbar-themed_nj3vu_7", Gs = (e) => ({
5594
5594
  }, v = () => {
5595
5595
  _(), g();
5596
5596
  }, y = () => {
5597
- v(), d.current && (Js(i) ? s = !0 : s && (s = !1, f.current.onKeyboardClose?.()));
5597
+ v(), d.current && (Qs(i) ? s = !0 : s && (s = !1, f.current.onKeyboardClose?.()));
5598
5598
  }, b = () => {
5599
5599
  s = !1, window.setTimeout(() => {
5600
- Js() || (i = window.innerHeight);
5600
+ Qs() || (i = window.innerHeight);
5601
5601
  }, 300);
5602
5602
  };
5603
5603
  p.current = () => {
@@ -5611,17 +5611,17 @@ var Us = "_scrollbar-themed_nj3vu_7", Gs = (e) => ({
5611
5611
  c.addEventListener("focusin", x), c.addEventListener("focusout", S), l?.addEventListener("geometrychange", y);
5612
5612
  const M = window.visualViewport;
5613
5613
  return M?.addEventListener("resize", y), M?.addEventListener("scroll", v), window.addEventListener("scroll", v, { passive: !0 }), window.addEventListener("resize", v), window.addEventListener("orientationchange", b), d.current && p.current(), m(), () => {
5614
- cancelAnimationFrame(t), clearTimeout(n), w?.disconnect(), M?.removeEventListener("resize", y), M?.removeEventListener("scroll", v), window.removeEventListener("scroll", v), window.removeEventListener("resize", v), window.removeEventListener("orientationchange", b), c.removeEventListener("focusin", x), c.removeEventListener("focusout", S), l?.removeEventListener("geometrychange", y), u(!1), p.current = null, al(e, null), r && f.current.onShownChange?.(!1);
5614
+ cancelAnimationFrame(t), clearTimeout(n), w?.disconnect(), M?.removeEventListener("resize", y), M?.removeEventListener("scroll", v), window.removeEventListener("scroll", v), window.removeEventListener("resize", v), window.removeEventListener("orientationchange", b), c.removeEventListener("focusin", x), c.removeEventListener("focusout", S), l?.removeEventListener("geometrychange", y), u(!1), p.current = null, cl(e, null), r && f.current.onShownChange?.(!1);
5615
5615
  };
5616
5616
  }, [c]), M(() => {
5617
5617
  p.current?.();
5618
5618
  }, [n]);
5619
- const m = Tr(), g = Lr(o), { className: _, attrs: v } = Cr(m), y = _ || Object.keys(v).length > 0 ? v : g, { getPortalContainer: b } = ln(), [, w] = A(0);
5619
+ const m = kr(), g = Tr(o), { className: _, attrs: v } = Lr(m), y = _ || Object.keys(v).length > 0 ? v : g, { getPortalContainer: b } = an(), [, w] = A(0);
5620
5620
  return M(() => {
5621
5621
  c && !c.isConnected && w((e) => e + 1);
5622
5622
  }), "undefined" == typeof document ? null : H(R("div", {
5623
5623
  ref: h,
5624
- className: F("keyboard-accessory", _, s),
5624
+ className: F("sxl-keyboard-accessory", _, s),
5625
5625
  ...y,
5626
5626
  style: {
5627
5627
  position: "fixed",
@@ -5629,7 +5629,7 @@ var Us = "_scrollbar-themed_nj3vu_7", Gs = (e) => ({
5629
5629
  left: 0,
5630
5630
  boxSizing: "border-box",
5631
5631
  transformOrigin: "top left",
5632
- zIndex: Xo("grid"),
5632
+ zIndex: Zo("grid"),
5633
5633
  opacity: 0,
5634
5634
  pointerEvents: "none",
5635
5635
  ...l
@@ -5637,12 +5637,12 @@ var Us = "_scrollbar-themed_nj3vu_7", Gs = (e) => ({
5637
5637
  children: a
5638
5638
  }), b());
5639
5639
  });
5640
- hl.displayName = "KeyboardAccessory";
5641
- var dl = {
5640
+ dl.displayName = "KeyboardAccessory";
5641
+ var fl = {
5642
5642
  inset: 0,
5643
5643
  offsetTop: 0
5644
- }, fl = (e) => {
5645
- const t = go(e), n = !!t && Js(), o = t?.height, r = z(!1);
5644
+ }, pl = (e) => {
5645
+ const t = _o(e), n = !!t && Qs(), o = t?.height, r = z(!1);
5646
5646
  return M(() => {
5647
5647
  if (void 0 === o) return;
5648
5648
  const e = r.current;
@@ -5650,9 +5650,9 @@ var dl = {
5650
5650
  }, [o, n]), t && n ? {
5651
5651
  inset: Math.max(0, Math.round(window.innerHeight - t.height)),
5652
5652
  offsetTop: Math.round(t.offsetTop)
5653
- } : dl;
5653
+ } : fl;
5654
5654
  };
5655
- var pl = {
5655
+ var ml = {
5656
5656
  axis: q.oneOf([
5657
5657
  "both",
5658
5658
  "x",
@@ -5704,12 +5704,12 @@ var pl = {
5704
5704
  const [t] = e;
5705
5705
  return "both" === t.axis || "x" === t.axis ? q.number.isRequired(...e) : q.number(...e);
5706
5706
  }
5707
- }, ml = class extends d.Component {
5707
+ }, gl = class extends d.Component {
5708
5708
  constructor(...e) {
5709
5709
  super(...e), this.handleRefs = {}, this.lastHandleRect = null, this.slack = null, this.lastSize = null;
5710
5710
  }
5711
5711
  static {
5712
- this.propTypes = pl;
5712
+ this.propTypes = ml;
5713
5713
  }
5714
5714
  static {
5715
5715
  this.defaultProps = {
@@ -5803,7 +5803,7 @@ var pl = {
5803
5803
  }), w.className && b.props.className && (w.className = `${b.props.className} ${w.className}`), f.cloneElement(b, w);
5804
5804
  var b, w;
5805
5805
  }
5806
- }, gl = class extends d.Component {
5806
+ }, _l = class extends d.Component {
5807
5807
  constructor(...e) {
5808
5808
  super(...e), this.state = {
5809
5809
  width: this.props.width,
@@ -5817,7 +5817,7 @@ var pl = {
5817
5817
  }
5818
5818
  static {
5819
5819
  this.propTypes = {
5820
- ...pl,
5820
+ ...ml,
5821
5821
  children: q.element
5822
5822
  };
5823
5823
  }
@@ -5831,7 +5831,7 @@ var pl = {
5831
5831
  }
5832
5832
  render() {
5833
5833
  const { handle: e, handleSize: t, onResize: n, onResizeStart: o, onResizeStop: r, draggableOpts: i, minConstraints: s, maxConstraints: l, lockAspectRatio: a, axis: c, width: u, height: h, resizeHandles: d, style: f, transformScale: p, ...m } = this.props;
5834
- return R(ml, {
5834
+ return R(gl, {
5835
5835
  axis: c,
5836
5836
  draggableOpts: i,
5837
5837
  handle: e,
@@ -5857,4 +5857,4 @@ var pl = {
5857
5857
  });
5858
5858
  }
5859
5859
  };
5860
- export { ne as ACCUMULATE, Bt as AnimationModeProvider, Ks as AxisViewport, Dt as Command, gt as CommandAnchorProvider, fe as CommandButtonEntryLabel, ce as CommandButtonRegistryContext, he as CommandButtonRegistryProvider, te as CommandButtonType, it as CommandChainContext, vt as CommandFallbackContext, wt as CommandFallbackProvider, St as CommandFocusProvider, lt as CommandOrderContext, re as CommandRegistry, Le as CommandRegistryContext, rt as CommandResolver, pt as CommandResolverContext, ke as CommandScope, ct as CommandScopeContext, dt as CommandScopeProvider, De as ConstantActivation, ae as DefaultCommandButtonRegistry, Ce as DefaultCommandCatalogService, ie as DefaultCommandRegistry, ni as DefaultIconService, ii as DynamicIcon, Hi as EDGE_HOLD_INTERVAL_MS, Ir as FloatPanel, Hr as FloatPanelSurface, Rr as FloatPopper, Fr as FloatProvider, Ct as FloatStackProvider, Pe as FocusActivation, Do as FocusKeyNavigation, nr as INPUT_SELECTION_TINT, tr as INPUT_SELECTION_VAR, li as InMemoryStore, Qe as KeyBindingDispatcher, Q as KeyCodes, J as KeyModifiers, hl as KeyboardAccessory, Vn as LanguageStateKey, Re as LayerActivation, bi as LocalStorageStore, Ae as ManualActivation, ee as MouseButtonCodes, Ot as NotifierType, Ii as PAGE_INITIAL_DELAY_MS, Ni as PAGE_REPEAT_DELAY_MS, gi as PendingRender, Mi as PendingRenderScope, mi as PersistentStateProvider, pe as QUICK_ACTION_TAG, No as ReactErrorBoundary, Vt as ReactNotifierProvider, $e as ReactUtils, Po as RenderSlot, ml as Resizable, gl as ResizableBox, $o as RoundedTab, $s as SCROLL_ANIMATION_MS, qo as SERIES_COUNT, rr as SXL_THEME_LAYERS, ir as SXL_THEME_LAYER_ORDER, Ds as ScrollPane, bs as ScrollUtils, rs as Scrollbar, Ci as ScrollbarOrientation, qr as SplitPane, Vr as SplitPaneResizer, ar as THEME_MODE_ATTR, cr as THEME_SURFACE_ATTR, Vi as TOUCH_THUMB_ASPECT, ji as TOUCH_THUMB_MARGIN, Xi as TOUCH_THUMB_MARGIN_CROSS, Zi as TOUCH_THUMB_MARGIN_END, Yi as TOUCH_THUMB_MARGIN_START, Ki as TOUCH_THUMB_SIZE, dr as ThemeModeFallbackContext, _r as TokenThemeContext, yr as TokenThemeProvider, Ji as TouchThumbFrameProvider, ns as TouchThumbHandle, jo as UncaughtErrorBoundary, Rs as Viewport, nl as VirtualKeyboardProvider, qs as VirtualScrollbar, si as WalkingIcon, Yo as Z_INDEX, we as asCommandCatalog, ht as attachWhenReady, lr as buildThemeCSS, Se as chromeToPartial, Zn as composeCaretRect, Ht as createBusyHandle, Ee as createCommandCatalogService, ti as createDynamicIconService, It as createNoopBusyHandle, ge as createResolvedCommand, hr as createThemeScopeClass, Fi as createTrackDrag, Qs as createVirtualKeyboardStore, Nr as defaultRenderFloatPanel, Br as defaultRenderFloatPopupPanel, Oi as defaultRenderScrollButtonEdge, Bi as defaultRenderScrollButtonEnd, $i as defaultRenderScrollButtonStart, Ps as defaultRenderScrollCorner, Uo as defaultTheme, Fn as exitEditMode, xe as fetchCatalog, Cr as floatThemeScopeProps, Qt as getDevicePixelRatio, yn as getInputModality, cl as getKeyboardAccessoryTop, Gs as getScrollbarCssVariables, Un as getTextareaCaretRect, ho as getVisualViewportRect, Je as isCaretKey, Js as isVirtualKeyboardUp, tt as keyEventCanonicals, et as keyStrokeToCanonical, Ho as lazyComponent, fn as measureUIText, Me as mergeChrome, Zo as offsetZIndex, ye as parseShortcutString, oe as reduceDefinitions, ze as resolveAnchorSource, br as resolveToken, wr as resolveTokens, Us as scrollbarThemedClassName, be as serializeShortcut, In as setEditMode, Wn as subscribeEditModeExit, wn as subscribeInputModality, ul as subscribeKeyboardAccessoryTop, fo as subscribeVisualViewport, ur as themeSurfaceProps, Qo as themeVars, Jo as toVars, Ui as touchThumbCornerReserve, qi as touchThumbCrossInset, Ao as useAnimatedMeasure, $t as useAnimationMode, qt as useBoundSyncExternalStore, Yt as useCallbackRef, de as useCommandButtonEntry, ue as useCommandButtonRegistry, st as useCommandChain, ft as useCommandElement, _t as useCommandExecute, yt as useCommandFallback, Mt as useCommandFocusRestore, at as useCommandOrder, Te as useCommandRegistry, mt as useCommandResolver, ut as useCommandScope, zt as useCommands, At as useContributeCommands, Jt as useDevicePixelRatio, Kn as useEditMode, Lt as useFloat, kt as useFloatPopupOpen, Wr as useFloatStack, Er as useFloatSurface, tn as useFullscreen, ln as useFullscreenPortal, Jn as useGlobalClipboard, io as useId, lo as useImperativeElement, Sn as useInputModality, _o as useIsomorphicLayoutEffect, fl as useKeyboardResize, jn as useLanguage, Oo as useLazyRetry, Co as useLocationSearch, yo as useMeasure, mn as useMouseDownAndHoldListener, jt as useNotifier, en as useOnClickOrFocusAway, Gt as useOptionalBoundSyncExternalStore, Zt as useOptionalSyncExternalStore, Ei as usePendingRender, fi as usePersistentState, fr as useResolvedThemeMode, pn as useSynchronizedPointerHandler, dn as useTextSelectionDrag, Gn as useTextareaCaretRect, vr as useTokenThemeContext, Qi as useTouchThumbFrame, Qn as useTraceUpdate, Wi as useTrackDrag, Yn as useTranslator, rl as useVirtualKeyboard, ol as useVirtualKeyboardStore, go as useVisualViewportRect, xi as whenRenderSettled, Xo as zIndexVar };
5860
+ export { ne as ACCUMULATE, Bt as AnimationModeProvider, Vs as AxisViewport, Dt as Command, gt as CommandAnchorProvider, fe as CommandButtonEntryLabel, ce as CommandButtonRegistryContext, he as CommandButtonRegistryProvider, te as CommandButtonType, it as CommandChainContext, vt as CommandFallbackContext, wt as CommandFallbackProvider, St as CommandFocusProvider, lt as CommandOrderContext, re as CommandRegistry, Le as CommandRegistryContext, rt as CommandResolver, pt as CommandResolverContext, ke as CommandScope, ct as CommandScopeContext, dt as CommandScopeProvider, De as ConstantActivation, ae as DefaultCommandButtonRegistry, Ce as DefaultCommandCatalogService, ie as DefaultCommandRegistry, oi as DefaultIconService, si as DynamicIcon, Ii as EDGE_HOLD_INTERVAL_MS, Nr as FloatPanel, Ir as FloatPanelSurface, $r as FloatPopper, Wr as FloatProvider, Ct as FloatStackProvider, Pe as FocusActivation, Po as FocusKeyNavigation, or as INPUT_SELECTION_TINT, nr as INPUT_SELECTION_VAR, ai as InMemoryStore, Qe as KeyBindingDispatcher, Q as KeyCodes, J as KeyModifiers, dl as KeyboardAccessory, jn as LanguageStateKey, Re as LayerActivation, wi as LocalStorageStore, Ae as ManualActivation, ee as MouseButtonCodes, Ot as NotifierType, Ni as PAGE_INITIAL_DELAY_MS, Fi as PAGE_REPEAT_DELAY_MS, _i as PendingRender, Ei as PendingRenderScope, gi as PersistentStateProvider, pe as QUICK_ACTION_TAG, Fo as ReactErrorBoundary, Vt as ReactNotifierProvider, $e as ReactUtils, Ro as RenderSlot, gl as Resizable, _l as ResizableBox, Bo as RoundedTab, Bs as SCROLL_ANIMATION_MS, Uo as SERIES_COUNT, ir as SXL_THEME_LAYERS, sr as SXL_THEME_LAYER_ORDER, Ps as ScrollPane, ws as ScrollUtils, is as Scrollbar, Li as ScrollbarOrientation, Ur as SplitPane, jr as SplitPaneResizer, cr as THEME_MODE_ATTR, ur as THEME_SURFACE_ATTR, ji as TOUCH_THUMB_ASPECT, Yi as TOUCH_THUMB_MARGIN, Zi as TOUCH_THUMB_MARGIN_CROSS, qi as TOUCH_THUMB_MARGIN_END, Xi as TOUCH_THUMB_MARGIN_START, Vi as TOUCH_THUMB_SIZE, fr as ThemeModeFallbackContext, vr as TokenThemeContext, br as TokenThemeProvider, Qi as TouchThumbFrameProvider, os as TouchThumbHandle, Yo as UncaughtErrorBoundary, $s as Viewport, ol as VirtualKeyboardProvider, Us as VirtualScrollbar, li as WalkingIcon, Xo as Z_INDEX, we as asCommandCatalog, ht as attachWhenReady, ar as buildThemeCSS, Se as chromeToPartial, qn as composeCaretRect, Ht as createBusyHandle, Ee as createCommandCatalogService, ni as createDynamicIconService, It as createNoopBusyHandle, ge as createResolvedCommand, dr as createThemeScopeClass, Wi as createTrackDrag, el as createVirtualKeyboardStore, Fr as defaultRenderFloatPanel, Or as defaultRenderFloatPopupPanel, Hi as defaultRenderScrollButtonEdge, Oi as defaultRenderScrollButtonEnd, Bi as defaultRenderScrollButtonStart, Rs as defaultRenderScrollCorner, Go as defaultTheme, Wn as exitEditMode, xe as fetchCatalog, Lr as floatThemeScopeProps, Qt as getDevicePixelRatio, bn as getInputModality, ul as getKeyboardAccessoryTop, Js as getScrollbarCssVariables, Gn as getTextareaCaretRect, fo as getVisualViewportRect, Je as isCaretKey, Qs as isVirtualKeyboardUp, tt as keyEventCanonicals, et as keyStrokeToCanonical, Io as lazyComponent, pn as measureUIText, Me as mergeChrome, qo as offsetZIndex, ye as parseShortcutString, oe as reduceDefinitions, ze as resolveAnchorSource, wr as resolveToken, xr as resolveTokens, Gs as scrollbarThemedClassName, be as serializeShortcut, Nn as setEditMode, Kn as subscribeEditModeExit, xn as subscribeInputModality, hl as subscribeKeyboardAccessoryTop, po as subscribeVisualViewport, hr as themeSurfaceProps, er as themeVars, Qo as toVars, Gi as touchThumbCornerReserve, Ui as touchThumbCrossInset, Do as useAnimatedMeasure, $t as useAnimationMode, qt as useBoundSyncExternalStore, Yt as useCallbackRef, de as useCommandButtonEntry, ue as useCommandButtonRegistry, st as useCommandChain, ft as useCommandElement, _t as useCommandExecute, yt as useCommandFallback, Mt as useCommandFocusRestore, at as useCommandOrder, Te as useCommandRegistry, mt as useCommandResolver, ut as useCommandScope, zt as useCommands, At as useContributeCommands, Jt as useDevicePixelRatio, Vn as useEditMode, Lt as useFloat, kt as useFloatPopupOpen, Kr as useFloatStack, Cr as useFloatSurface, tn as useFullscreen, an as useFullscreenPortal, Qn as useGlobalClipboard, so as useId, ao as useImperativeElement, Mn as useInputModality, vo as useIsomorphicLayoutEffect, pl as useKeyboardResize, Yn as useLanguage, Ho as useLazyRetry, Lo as useLocationSearch, bo as useMeasure, gn as useMouseDownAndHoldListener, jt as useNotifier, en as useOnClickOrFocusAway, Gt as useOptionalBoundSyncExternalStore, Zt as useOptionalSyncExternalStore, Ci as usePendingRender, pi as usePersistentState, pr as useResolvedThemeMode, mn as useSynchronizedPointerHandler, fn as useTextSelectionDrag, Jn as useTextareaCaretRect, yr as useTokenThemeContext, es as useTouchThumbFrame, eo as useTraceUpdate, Ki as useTrackDrag, Xn as useTranslator, il as useVirtualKeyboard, rl as useVirtualKeyboardStore, _o as useVisualViewportRect, Si as whenRenderSettled, Zo as zIndexVar };