tiptop-editor 1.6.2 → 1.6.3

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.
@@ -64,7 +64,7 @@ function af() {
64
64
  return "Fragment";
65
65
  case w:
66
66
  return "Profiler";
67
- case y:
67
+ case v:
68
68
  return "StrictMode";
69
69
  case A:
70
70
  return "Suspense";
@@ -79,9 +79,9 @@ function af() {
79
79
  ), $.$$typeof) {
80
80
  case b:
81
81
  return "Portal";
82
- case P:
83
- return $.displayName || "Context";
84
82
  case k:
83
+ return $.displayName || "Context";
84
+ case P:
85
85
  return ($._context.displayName || "Context") + ".Consumer";
86
86
  case C:
87
87
  var x = $.render;
@@ -211,7 +211,7 @@ function af() {
211
211
  var W = Object.keys(x).filter(function(ce) {
212
212
  return ce !== "key";
213
213
  });
214
- R = 0 < W.length ? "{key: someKey, " + W.join(": ..., ") + ": ...}" : "{key: someKey}", v[U + R] || (W = 0 < W.length ? "{" + W.join(": ..., ") + ": ...}" : "{}", console.error(
214
+ R = 0 < W.length ? "{key: someKey, " + W.join(": ..., ") + ": ...}" : "{key: someKey}", y[U + R] || (W = 0 < W.length ? "{" + W.join(": ..., ") + ": ...}" : "{}", console.error(
215
215
  `A props object containing a "key" prop is being spread into JSX:
216
216
  let props = %s;
217
217
  <%s {...props} />
@@ -222,7 +222,7 @@ React keys must be passed directly to JSX without using spread:
222
222
  U,
223
223
  W,
224
224
  U
225
- ), v[U + R] = !0);
225
+ ), y[U + R] = !0);
226
226
  }
227
227
  if (U = null, N !== void 0 && (r(N), U = "" + N), s(x) && (r(x.key), U = "" + x.key), "key" in x) {
228
228
  N = {};
@@ -247,7 +247,7 @@ React keys must be passed directly to JSX without using spread:
247
247
  function p($) {
248
248
  return typeof $ == "object" && $ !== null && $.$$typeof === g;
249
249
  }
250
- var f = Q, g = /* @__PURE__ */ Symbol.for("react.transitional.element"), b = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"), y = /* @__PURE__ */ Symbol.for("react.strict_mode"), w = /* @__PURE__ */ Symbol.for("react.profiler"), k = /* @__PURE__ */ Symbol.for("react.consumer"), P = /* @__PURE__ */ Symbol.for("react.context"), C = /* @__PURE__ */ Symbol.for("react.forward_ref"), A = /* @__PURE__ */ Symbol.for("react.suspense"), D = /* @__PURE__ */ Symbol.for("react.suspense_list"), T = /* @__PURE__ */ Symbol.for("react.memo"), O = /* @__PURE__ */ Symbol.for("react.lazy"), B = /* @__PURE__ */ Symbol.for("react.activity"), F = /* @__PURE__ */ Symbol.for("react.client.reference"), L = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, K = Object.prototype.hasOwnProperty, E = Array.isArray, M = console.createTask ? console.createTask : function() {
250
+ var f = Q, g = /* @__PURE__ */ Symbol.for("react.transitional.element"), b = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"), v = /* @__PURE__ */ Symbol.for("react.strict_mode"), w = /* @__PURE__ */ Symbol.for("react.profiler"), P = /* @__PURE__ */ Symbol.for("react.consumer"), k = /* @__PURE__ */ Symbol.for("react.context"), C = /* @__PURE__ */ Symbol.for("react.forward_ref"), A = /* @__PURE__ */ Symbol.for("react.suspense"), D = /* @__PURE__ */ Symbol.for("react.suspense_list"), T = /* @__PURE__ */ Symbol.for("react.memo"), O = /* @__PURE__ */ Symbol.for("react.lazy"), B = /* @__PURE__ */ Symbol.for("react.activity"), F = /* @__PURE__ */ Symbol.for("react.client.reference"), L = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, K = Object.prototype.hasOwnProperty, E = Array.isArray, M = console.createTask ? console.createTask : function() {
251
251
  return null;
252
252
  };
253
253
  f = {
@@ -258,7 +258,7 @@ React keys must be passed directly to JSX without using spread:
258
258
  var z, _ = {}, I = f.react_stack_bottom_frame.bind(
259
259
  f,
260
260
  o
261
- )(), j = M(n(o)), v = {};
261
+ )(), j = M(n(o)), y = {};
262
262
  or.Fragment = m, or.jsx = function($, x, N) {
263
263
  var R = 1e4 > L.recentlyCreatedOwnerStacks++;
264
264
  return d(
@@ -1580,14 +1580,14 @@ function Ir(e, t, r, n) {
1580
1580
  function ea(e, t, r = {}) {
1581
1581
  let { block: n = "nearest", inline: a = "nearest" } = r;
1582
1582
  if (e === t) return;
1583
- let o = e.scrollTop, s = e.scrollLeft, l = t.getBoundingClientRect(), i = e.getBoundingClientRect(), c = window.getComputedStyle(t), d = window.getComputedStyle(e), u = document.scrollingElement || document.documentElement, p = e === u ? 0 : i.top, f = e === u ? e.clientHeight : i.bottom, g = e === u ? 0 : i.left, b = e === u ? e.clientWidth : i.right, m = parseInt(c.scrollMarginTop, 10) || 0, y = parseInt(c.scrollMarginBottom, 10) || 0, w = parseInt(c.scrollMarginLeft, 10) || 0, k = parseInt(c.scrollMarginRight, 10) || 0, P = parseInt(d.scrollPaddingTop, 10) || 0, C = parseInt(d.scrollPaddingBottom, 10) || 0, A = parseInt(d.scrollPaddingLeft, 10) || 0, D = parseInt(d.scrollPaddingRight, 10) || 0, T = parseInt(d.borderTopWidth, 10) || 0, O = parseInt(d.borderBottomWidth, 10) || 0, B = parseInt(d.borderLeftWidth, 10) || 0, F = parseInt(d.borderRightWidth, 10) || 0, L = l.top - m, K = l.bottom + y, E = l.left - w, M = l.right + k, z = e === u ? 0 : B + F, _ = e === u ? 0 : T + O, I = e.offsetWidth - e.clientWidth - z, j = e.offsetHeight - e.clientHeight - _, v = p + T + P, $ = f - O - C - j, x = g + B + A, N = b - F - D;
1583
+ let o = e.scrollTop, s = e.scrollLeft, l = t.getBoundingClientRect(), i = e.getBoundingClientRect(), c = window.getComputedStyle(t), d = window.getComputedStyle(e), u = document.scrollingElement || document.documentElement, p = e === u ? 0 : i.top, f = e === u ? e.clientHeight : i.bottom, g = e === u ? 0 : i.left, b = e === u ? e.clientWidth : i.right, m = parseInt(c.scrollMarginTop, 10) || 0, v = parseInt(c.scrollMarginBottom, 10) || 0, w = parseInt(c.scrollMarginLeft, 10) || 0, P = parseInt(c.scrollMarginRight, 10) || 0, k = parseInt(d.scrollPaddingTop, 10) || 0, C = parseInt(d.scrollPaddingBottom, 10) || 0, A = parseInt(d.scrollPaddingLeft, 10) || 0, D = parseInt(d.scrollPaddingRight, 10) || 0, T = parseInt(d.borderTopWidth, 10) || 0, O = parseInt(d.borderBottomWidth, 10) || 0, B = parseInt(d.borderLeftWidth, 10) || 0, F = parseInt(d.borderRightWidth, 10) || 0, L = l.top - m, K = l.bottom + v, E = l.left - w, M = l.right + P, z = e === u ? 0 : B + F, _ = e === u ? 0 : T + O, I = e.offsetWidth - e.clientWidth - z, j = e.offsetHeight - e.clientHeight - _, y = p + T + k, $ = f - O - C - j, x = g + B + A, N = b - F - D;
1584
1584
  d.direction === "rtl" && !wr() ? x += I : N -= I;
1585
- let R = L < v || K > $, V = E < x || M > N;
1586
- if (R && n === "start") o += L - v;
1587
- else if (R && n === "center") o += (L + K) / 2 - (v + $) / 2;
1585
+ let R = L < y || K > $, V = E < x || M > N;
1586
+ if (R && n === "start") o += L - y;
1587
+ else if (R && n === "center") o += (L + K) / 2 - (y + $) / 2;
1588
1588
  else if (R && n === "end") o += K - $;
1589
1589
  else if (R && n === "nearest") {
1590
- let Z = L - v, U = K - $;
1590
+ let Z = L - y, U = K - $;
1591
1591
  o += Math.abs(Z) <= Math.abs(U) ? Z : U;
1592
1592
  }
1593
1593
  if (V && a === "start") s += E - x;
@@ -1823,34 +1823,34 @@ function Mo(e) {
1823
1823
  }, Nr[e];
1824
1824
  }
1825
1825
  function On(e, t, r, n, a, o, s, l, i, c, d) {
1826
- let { placement: u, crossPlacement: p, axis: f, crossAxis: g, size: b, crossSize: m } = n, y = {};
1826
+ let { placement: u, crossPlacement: p, axis: f, crossAxis: g, size: b, crossSize: m } = n, v = {};
1827
1827
  var w;
1828
- y[g] = (w = e[g]) !== null && w !== void 0 ? w : 0;
1829
- var k, P, C, A;
1830
- p === "center" ? y[g] += (((k = e[m]) !== null && k !== void 0 ? k : 0) - ((P = r[m]) !== null && P !== void 0 ? P : 0)) / 2 : p !== g && (y[g] += ((C = e[m]) !== null && C !== void 0 ? C : 0) - ((A = r[m]) !== null && A !== void 0 ? A : 0)), y[g] += o;
1828
+ v[g] = (w = e[g]) !== null && w !== void 0 ? w : 0;
1829
+ var P, k, C, A;
1830
+ p === "center" ? v[g] += (((P = e[m]) !== null && P !== void 0 ? P : 0) - ((k = r[m]) !== null && k !== void 0 ? k : 0)) / 2 : p !== g && (v[g] += ((C = e[m]) !== null && C !== void 0 ? C : 0) - ((A = r[m]) !== null && A !== void 0 ? A : 0)), v[g] += o;
1831
1831
  const D = e[g] - r[m] + i + c, T = e[g] + e[m] - i - c;
1832
- if (y[g] = ra(y[g], D, T), u === f) {
1832
+ if (v[g] = ra(v[g], D, T), u === f) {
1833
1833
  let O = l ? d[b] : d[ul[b]];
1834
- y[rn[f]] = Math.floor(O - e[f] + a);
1835
- } else y[f] = Math.floor(e[f] + e[b] + a);
1836
- return y;
1834
+ v[rn[f]] = Math.floor(O - e[f] + a);
1835
+ } else v[f] = Math.floor(e[f] + e[b] + a);
1836
+ return v;
1837
1837
  }
1838
1838
  function jp(e, t, r, n, a, o, s, l, i, c, d) {
1839
1839
  var u, p;
1840
1840
  let f = (e.top != null ? e.top : i[ul.height] - ((u = e.bottom) !== null && u !== void 0 ? u : 0) - s) - ((p = i.scroll.top) !== null && p !== void 0 ? p : 0), g = c ? r.top : 0;
1841
- var b, m, y;
1841
+ var b, m, v;
1842
1842
  let w = {
1843
1843
  // This should be boundary top in container coord system vs viewport top in container coord system
1844
1844
  // For the viewport top, there are several cases
1845
1845
  // 1. pinchzoom case where we want the viewports offset top as top here
1846
1846
  // 2. case where container is offset from the boundary and is contained by the boundary. In this case the top we want here is NOT 0, we want to take boundary's top even though is is a negative number OR the visual viewport, whichever is more restrictive
1847
1847
  top: Math.max(t.top + g, ((b = d?.offsetTop) !== null && b !== void 0 ? b : t.top) + g),
1848
- bottom: Math.min(t.top + t.height + g, ((m = d?.offsetTop) !== null && m !== void 0 ? m : 0) + ((y = d?.height) !== null && y !== void 0 ? y : 0))
1848
+ bottom: Math.min(t.top + t.height + g, ((m = d?.offsetTop) !== null && m !== void 0 ? m : 0) + ((v = d?.height) !== null && v !== void 0 ? v : 0))
1849
1849
  };
1850
- var k, P, C, A;
1850
+ var P, k, C, A;
1851
1851
  return l !== "top" ? (
1852
1852
  // We want the distance between the top of the overlay to the bottom of the boundary
1853
- Math.max(0, w.bottom - f - (((k = a.top) !== null && k !== void 0 ? k : 0) + ((P = a.bottom) !== null && P !== void 0 ? P : 0) + o))
1853
+ Math.max(0, w.bottom - f - (((P = a.top) !== null && P !== void 0 ? P : 0) + ((k = a.bottom) !== null && k !== void 0 ? k : 0) + o))
1854
1854
  ) : Math.max(0, f + s - w.top - (((C = a.top) !== null && C !== void 0 ? C : 0) + ((A = a.bottom) !== null && A !== void 0 ? A : 0) + o));
1855
1855
  }
1856
1856
  function Ao(e, t, r, n, a, o, s, l) {
@@ -1860,24 +1860,24 @@ function Ao(e, t, r, n, a, o, s, l) {
1860
1860
  var f, g;
1861
1861
  return Math.max(0, e[d] + e[c] + (l ? t[c] : 0) - r[c] - r[d] + ((f = s.scroll[c]) !== null && f !== void 0 ? f : 0) - ((g = n[c]) !== null && g !== void 0 ? g : 0) - n[rn[c]] - a);
1862
1862
  }
1863
- function Bp(e, t, r, n, a, o, s, l, i, c, d, u, p, f, g, b, m, y) {
1864
- let w = Mo(e), { size: k, crossAxis: P, crossSize: C, placement: A, crossPlacement: D } = w, T = On(t, l, r, w, d, u, c, p, g, b, i), O = d, B = Ao(l, c, t, a, o + d, w, i, m);
1865
- if (s && r[k] > B) {
1863
+ function Bp(e, t, r, n, a, o, s, l, i, c, d, u, p, f, g, b, m, v) {
1864
+ let w = Mo(e), { size: P, crossAxis: k, crossSize: C, placement: A, crossPlacement: D } = w, T = On(t, l, r, w, d, u, c, p, g, b, i), O = d, B = Ao(l, c, t, a, o + d, w, i, m);
1865
+ if (s && r[P] > B) {
1866
1866
  let te = Mo(`${rn[A]} ${D}`), ce = On(t, l, r, te, d, u, c, p, g, b, i);
1867
1867
  Ao(l, c, t, a, o + d, te, i, m) > B && (w = te, T = ce, O = d);
1868
1868
  }
1869
1869
  let F = "bottom";
1870
1870
  w.axis === "top" ? w.placement === "top" ? F = "top" : w.placement === "bottom" && (F = "bottom") : w.crossAxis === "top" && (w.crossPlacement === "top" ? F = "bottom" : w.crossPlacement === "bottom" && (F = "top"));
1871
- let L = To(P, T[P], r[C], l, i, o, c);
1872
- T[P] += L;
1873
- let K = jp(T, l, c, p, a, o, r.height, F, i, m, y);
1874
- f && f < K && (K = f), r.height = Math.min(r.height, K), T = On(t, l, r, w, O, u, c, p, g, b, i), L = To(P, T[P], r[C], l, i, o, c), T[P] += L;
1875
- let E = {}, M = t[P] - T[P] - a[We[P]], z = M + 0.5 * t[C];
1871
+ let L = To(k, T[k], r[C], l, i, o, c);
1872
+ T[k] += L;
1873
+ let K = jp(T, l, c, p, a, o, r.height, F, i, m, v);
1874
+ f && f < K && (K = f), r.height = Math.min(r.height, K), T = On(t, l, r, w, O, u, c, p, g, b, i), L = To(k, T[k], r[C], l, i, o, c), T[k] += L;
1875
+ let E = {}, M = t[k] - T[k] - a[We[k]], z = M + 0.5 * t[C];
1876
1876
  const _ = g / 2 + b;
1877
- var I, j, v, $;
1878
- const x = We[P] === "left" ? ((I = a.left) !== null && I !== void 0 ? I : 0) + ((j = a.right) !== null && j !== void 0 ? j : 0) : ((v = a.top) !== null && v !== void 0 ? v : 0) + (($ = a.bottom) !== null && $ !== void 0 ? $ : 0), N = r[C] - x - g / 2 - b, R = t[P] + g / 2 - (T[P] + a[We[P]]), V = t[P] + t[C] - g / 2 - (T[P] + a[We[P]]), Z = ra(z, R, V);
1879
- E[P] = ra(Z, _, N), { placement: A, crossPlacement: D } = w, g ? M = E[P] : D === "right" ? M += t[C] : D === "center" && (M += t[C] / 2);
1880
- let U = A === "left" || A === "top" ? r[k] : 0, W = {
1877
+ var I, j, y, $;
1878
+ const x = We[k] === "left" ? ((I = a.left) !== null && I !== void 0 ? I : 0) + ((j = a.right) !== null && j !== void 0 ? j : 0) : ((y = a.top) !== null && y !== void 0 ? y : 0) + (($ = a.bottom) !== null && $ !== void 0 ? $ : 0), N = r[C] - x - g / 2 - b, R = t[k] + g / 2 - (T[k] + a[We[k]]), V = t[k] + t[C] - g / 2 - (T[k] + a[We[k]]), Z = ra(z, R, V);
1879
+ E[k] = ra(Z, _, N), { placement: A, crossPlacement: D } = w, g ? M = E[k] : D === "right" ? M += t[C] : D === "center" && (M += t[C] / 2);
1880
+ let U = A === "left" || A === "top" ? r[P] : 0, W = {
1881
1881
  x: A === "top" || A === "bottom" ? M : U,
1882
1882
  y: A === "left" || A === "right" ? M : U
1883
1883
  };
@@ -1893,16 +1893,16 @@ function Bp(e, t, r, n, a, o, s, l, i, c, d, u, p, f, g, b, m, y) {
1893
1893
  function Fp(e) {
1894
1894
  let { placement: t, targetNode: r, overlayNode: n, scrollNode: a, padding: o, shouldFlip: s, boundaryElement: l, offset: i, crossOffset: c, maxHeight: d, arrowSize: u = 0, arrowBoundaryOffset: p = 0 } = e, f = Rp(), g = n instanceof HTMLElement ? Kp(n) : document.documentElement, b = g === document.documentElement;
1895
1895
  const m = window.getComputedStyle(g).position;
1896
- let y = !!m && m !== "static", w = b ? mr(r, !1) : Io(r, g, !1);
1896
+ let v = !!m && m !== "static", w = b ? mr(r, !1) : Io(r, g, !1);
1897
1897
  if (!b) {
1898
1898
  let { marginTop: E, marginLeft: M } = window.getComputedStyle(r);
1899
1899
  w.top += parseInt(E, 10) || 0, w.left += parseInt(M, 10) || 0;
1900
1900
  }
1901
- let k = mr(n, !0), P = Lp(n);
1901
+ let P = mr(n, !0), k = Lp(n);
1902
1902
  var C, A;
1903
- k.width += ((C = P.left) !== null && C !== void 0 ? C : 0) + ((A = P.right) !== null && A !== void 0 ? A : 0);
1903
+ P.width += ((C = k.left) !== null && C !== void 0 ? C : 0) + ((A = k.right) !== null && A !== void 0 ? A : 0);
1904
1904
  var D, T;
1905
- k.height += ((D = P.top) !== null && D !== void 0 ? D : 0) + ((T = P.bottom) !== null && T !== void 0 ? T : 0);
1905
+ P.height += ((D = k.top) !== null && D !== void 0 ? D : 0) + ((T = k.bottom) !== null && T !== void 0 ? T : 0);
1906
1906
  let O = Op(a), B = Eo(l, f), F = Eo(g, f), L;
1907
1907
  if ((l.tagName === "BODY" || l.tagName === "HTML") && !b) {
1908
1908
  let E = Cn(g, !1);
@@ -1919,7 +1919,7 @@ function Fp(e) {
1919
1919
  height: 0
1920
1920
  } : L = Io(l, g, !1);
1921
1921
  let K = se(l, g);
1922
- return Bp(t, w, k, O, P, o, s, B, F, L, i, c, y, d, u, p, K, f);
1922
+ return Bp(t, w, P, O, k, o, s, B, F, L, i, c, v, d, u, p, K, f);
1923
1923
  }
1924
1924
  function Cn(e, t) {
1925
1925
  let { top: r, left: n, width: a, height: o } = e.getBoundingClientRect();
@@ -1981,7 +1981,7 @@ function Wp(e) {
1981
1981
  }
1982
1982
  let we = typeof document < "u" ? window.visualViewport : null;
1983
1983
  function pl(e) {
1984
- let { direction: t } = vn(), { arrowSize: r, targetRef: n, overlayRef: a, arrowRef: o, scrollRef: s = a, placement: l = "bottom", containerPadding: i = 12, shouldFlip: c = !0, boundaryElement: d = typeof document < "u" ? document.body : null, offset: u = 0, crossOffset: p = 0, shouldUpdatePosition: f = !0, isOpen: g = !0, onClose: b, maxHeight: m, arrowBoundaryOffset: y = 0 } = e, [w, k] = ne(null), P = [
1984
+ let { direction: t } = vn(), { arrowSize: r, targetRef: n, overlayRef: a, arrowRef: o, scrollRef: s = a, placement: l = "bottom", containerPadding: i = 12, shouldFlip: c = !0, boundaryElement: d = typeof document < "u" ? document.body : null, offset: u = 0, crossOffset: p = 0, shouldUpdatePosition: f = !0, isOpen: g = !0, onClose: b, maxHeight: m, arrowBoundaryOffset: v = 0 } = e, [w, P] = ne(null), k = [
1985
1985
  f,
1986
1986
  l,
1987
1987
  a.current,
@@ -1996,7 +1996,7 @@ function pl(e) {
1996
1996
  g,
1997
1997
  t,
1998
1998
  m,
1999
- y,
1999
+ v,
2000
2000
  r
2001
2001
  ], C = H(we?.scale);
2002
2002
  ee(() => {
@@ -2039,18 +2039,18 @@ function pl(e) {
2039
2039
  crossOffset: p,
2040
2040
  maxHeight: m,
2041
2041
  arrowSize: r ?? (o?.current ? Cn(o.current, !0).width : 0),
2042
- arrowBoundaryOffset: y
2042
+ arrowBoundaryOffset: v
2043
2043
  });
2044
2044
  if (!j.position) return;
2045
2045
  z.style.top = "", z.style.bottom = "", z.style.left = "", z.style.right = "", Object.keys(j.position).forEach(($) => z.style[$] = j.position[$] + "px"), z.style.maxHeight = j.maxHeight != null ? j.maxHeight + "px" : "";
2046
- let v = be();
2047
- if (L && v && s.current) {
2048
- let $ = v.getBoundingClientRect(), x = s.current.getBoundingClientRect(), N = $[L.type] - x[L.type];
2046
+ let y = be();
2047
+ if (L && y && s.current) {
2048
+ let $ = y.getBoundingClientRect(), x = s.current.getBoundingClientRect(), N = $[L.type] - x[L.type];
2049
2049
  s.current.scrollTop += N - L.offset;
2050
2050
  }
2051
- k(j);
2052
- }, P);
2053
- ge(A, P), Hp(A), Co({
2051
+ P(j);
2052
+ }, k);
2053
+ ge(A, k), Hp(A), Co({
2054
2054
  ref: a,
2055
2055
  onResize: A
2056
2056
  }), Co({
@@ -2294,12 +2294,12 @@ function $r(e) {
2294
2294
  isOverTarget: !1,
2295
2295
  pointerType: null,
2296
2296
  disposables: []
2297
- }), { addGlobalListener: y, removeAllGlobalListeners: w, removeGlobalListener: k } = kn(), P = G((v, $) => {
2297
+ }), { addGlobalListener: v, removeAllGlobalListeners: w, removeGlobalListener: P } = kn(), k = G((y, $) => {
2298
2298
  let x = m.current;
2299
2299
  if (l || x.didFirePressStart) return !1;
2300
2300
  let N = !0;
2301
2301
  if (x.isTriggeringEvent = !0, n) {
2302
- let R = new zr("pressstart", $, v);
2302
+ let R = new zr("pressstart", $, y);
2303
2303
  n(R), N = R.shouldStopPropagation;
2304
2304
  }
2305
2305
  return r && r(!0), x.isTriggeringEvent = !1, x.didFirePressStart = !0, b(!0), N;
@@ -2307,17 +2307,17 @@ function $r(e) {
2307
2307
  l,
2308
2308
  n,
2309
2309
  r
2310
- ]), C = G((v, $, x = !0) => {
2310
+ ]), C = G((y, $, x = !0) => {
2311
2311
  let N = m.current;
2312
2312
  if (!N.didFirePressStart) return !1;
2313
2313
  N.didFirePressStart = !1, N.isTriggeringEvent = !0;
2314
2314
  let R = !0;
2315
2315
  if (a) {
2316
- let V = new zr("pressend", $, v);
2316
+ let V = new zr("pressend", $, y);
2317
2317
  a(V), R = V.shouldStopPropagation;
2318
2318
  }
2319
2319
  if (r && r(!1), b(!1), t && x && !l) {
2320
- let V = new zr("press", $, v);
2320
+ let V = new zr("press", $, y);
2321
2321
  t(V), R && (R = V.shouldStopPropagation);
2322
2322
  }
2323
2323
  return N.isTriggeringEvent = !1, R;
@@ -2326,22 +2326,22 @@ function $r(e) {
2326
2326
  a,
2327
2327
  r,
2328
2328
  t
2329
- ]), A = mt(C), D = G((v, $) => {
2329
+ ]), A = mt(C), D = G((y, $) => {
2330
2330
  let x = m.current;
2331
2331
  if (l) return !1;
2332
2332
  if (o) {
2333
2333
  x.isTriggeringEvent = !0;
2334
- let N = new zr("pressup", $, v);
2334
+ let N = new zr("pressup", $, y);
2335
2335
  return o(N), x.isTriggeringEvent = !1, N.shouldStopPropagation;
2336
2336
  }
2337
2337
  return !0;
2338
2338
  }, [
2339
2339
  l,
2340
2340
  o
2341
- ]), T = mt(D), O = G((v) => {
2341
+ ]), T = mt(D), O = G((y) => {
2342
2342
  let $ = m.current;
2343
2343
  if ($.isPressed && $.target) {
2344
- $.didFirePressStart && $.pointerType != null && C(kt($.target, v), $.pointerType, !1), $.isPressed = !1, I(null), $.isOverTarget = !1, $.activePointerId = null, $.pointerType = null, w(), u || Ln($.target);
2344
+ $.didFirePressStart && $.pointerType != null && C(kt($.target, y), $.pointerType, !1), $.isPressed = !1, I(null), $.isOverTarget = !1, $.activePointerId = null, $.pointerType = null, w(), u || Ln($.target);
2345
2345
  for (let x of $.disposables) x();
2346
2346
  $.disposables = [];
2347
2347
  }
@@ -2349,19 +2349,19 @@ function $r(e) {
2349
2349
  u,
2350
2350
  w,
2351
2351
  C
2352
- ]), B = mt(O), F = G((v) => {
2353
- d && O(v);
2352
+ ]), B = mt(O), F = G((y) => {
2353
+ d && O(y);
2354
2354
  }, [
2355
2355
  d,
2356
2356
  O
2357
- ]), L = G((v) => {
2358
- l || s?.(v);
2357
+ ]), L = G((y) => {
2358
+ l || s?.(y);
2359
2359
  }, [
2360
2360
  l,
2361
2361
  s
2362
- ]), K = G((v, $) => {
2362
+ ]), K = G((y, $) => {
2363
2363
  if (!l && s) {
2364
- let x = new MouseEvent("click", v);
2364
+ let x = new MouseEvent("click", y);
2365
2365
  gl(x, $), s(ja(x));
2366
2366
  }
2367
2367
  }, [
@@ -2369,120 +2369,120 @@ function $r(e) {
2369
2369
  s
2370
2370
  ]), E = mt(K), [M, z] = ne(!1);
2371
2371
  ge(() => {
2372
- let v = m.current;
2372
+ let y = m.current;
2373
2373
  if (M) {
2374
2374
  let $ = (V) => {
2375
2375
  var Z;
2376
- if (v.isPressed && v.target && jn(V, v.target)) {
2376
+ if (y.isPressed && y.target && jn(V, y.target)) {
2377
2377
  var U;
2378
2378
  Fo(X(V), V.key) && V.preventDefault();
2379
- let te = X(V), ce = se(v.target, te);
2380
- A(kt(v.target, V), "keyboard", ce), ce && E(V, v.target), w(), V.key !== "Enter" && Fa(v.target) && se(v.target, te) && !V[Ro] && (V[Ro] = !0, ct(v.target, V, !1)), v.isPressed = !1, z(!1), (U = v.metaKeyEvents) === null || U === void 0 || U.delete(V.key);
2381
- } else if (V.key === "Meta" && (!((Z = v.metaKeyEvents) === null || Z === void 0) && Z.size)) {
2379
+ let te = X(V), ce = se(y.target, te);
2380
+ A(kt(y.target, V), "keyboard", ce), ce && E(V, y.target), w(), V.key !== "Enter" && Fa(y.target) && se(y.target, te) && !V[Ro] && (V[Ro] = !0, ct(y.target, V, !1)), y.isPressed = !1, z(!1), (U = y.metaKeyEvents) === null || U === void 0 || U.delete(V.key);
2381
+ } else if (V.key === "Meta" && (!((Z = y.metaKeyEvents) === null || Z === void 0) && Z.size)) {
2382
2382
  var W;
2383
- let te = v.metaKeyEvents;
2384
- v.metaKeyEvents = void 0;
2385
- for (let ce of te.values()) (W = v.target) === null || W === void 0 || W.dispatchEvent(new KeyboardEvent("keyup", ce));
2383
+ let te = y.metaKeyEvents;
2384
+ y.metaKeyEvents = void 0;
2385
+ for (let ce of te.values()) (W = y.target) === null || W === void 0 || W.dispatchEvent(new KeyboardEvent("keyup", ce));
2386
2386
  }
2387
- }, x = v.target, R = Zt((V) => {
2388
- x && jn(V, x) && !V.repeat && se(x, X(V)) && v.target && T(kt(v.target, V), "keyboard");
2387
+ }, x = y.target, R = Zt((V) => {
2388
+ x && jn(V, x) && !V.repeat && se(x, X(V)) && y.target && T(kt(y.target, V), "keyboard");
2389
2389
  }, $);
2390
- return y(de(v.target), "keyup", R, !0), () => {
2391
- k(de(v.target), "keyup", R, !0);
2390
+ return v(de(y.target), "keyup", R, !0), () => {
2391
+ P(de(y.target), "keyup", R, !0);
2392
2392
  };
2393
2393
  }
2394
2394
  }, [
2395
2395
  M,
2396
- y,
2396
+ v,
2397
2397
  w,
2398
- k
2398
+ P
2399
2399
  ]);
2400
2400
  let [_, I] = ne(null);
2401
2401
  ge(() => {
2402
- let v = m.current;
2402
+ let y = m.current;
2403
2403
  if (_ === "pointer") {
2404
2404
  let $ = (N) => {
2405
- if (N.pointerId === v.activePointerId && v.isPressed && N.button === 0 && v.target) {
2406
- if (se(v.target, X(N)) && v.pointerType != null) {
2405
+ if (N.pointerId === y.activePointerId && y.isPressed && N.button === 0 && y.target) {
2406
+ if (se(y.target, X(N)) && y.pointerType != null) {
2407
2407
  let R = !1, V = setTimeout(() => {
2408
- v.isPressed && v.target instanceof HTMLElement && (R ? B(N) : (Xe(v.target), v.target.click()));
2408
+ y.isPressed && y.target instanceof HTMLElement && (R ? B(N) : (Xe(y.target), y.target.click()));
2409
2409
  }, 80);
2410
- N.currentTarget && y(N.currentTarget, "click", () => R = !0, !0), v.disposables.push(() => clearTimeout(V));
2410
+ N.currentTarget && v(N.currentTarget, "click", () => R = !0, !0), y.disposables.push(() => clearTimeout(V));
2411
2411
  } else B(N);
2412
- v.isOverTarget = !1;
2412
+ y.isOverTarget = !1;
2413
2413
  }
2414
2414
  }, x = (N) => {
2415
2415
  B(N);
2416
2416
  };
2417
- return y(de(v.target), "pointerup", $, !1), y(de(v.target), "pointercancel", x, !1), () => {
2418
- k(de(v.target), "pointerup", $, !1), k(de(v.target), "pointercancel", x, !1);
2417
+ return v(de(y.target), "pointerup", $, !1), v(de(y.target), "pointercancel", x, !1), () => {
2418
+ P(de(y.target), "pointerup", $, !1), P(de(y.target), "pointercancel", x, !1);
2419
2419
  };
2420
2420
  } else if (_ === "mouse" && process.env.NODE_ENV === "test") {
2421
2421
  let $ = (x) => {
2422
2422
  if (x.button === 0) {
2423
- if (v.ignoreEmulatedMouseEvents) {
2424
- v.ignoreEmulatedMouseEvents = !1;
2423
+ if (y.ignoreEmulatedMouseEvents) {
2424
+ y.ignoreEmulatedMouseEvents = !1;
2425
2425
  return;
2426
2426
  }
2427
- v.target && se(v.target, x.target) && v.pointerType != null || B(x), v.isOverTarget = !1;
2427
+ y.target && se(y.target, x.target) && y.pointerType != null || B(x), y.isOverTarget = !1;
2428
2428
  }
2429
2429
  };
2430
- return y(de(v.target), "mouseup", $, !1), () => {
2431
- k(de(v.target), "mouseup", $, !1);
2430
+ return v(de(y.target), "mouseup", $, !1), () => {
2431
+ P(de(y.target), "mouseup", $, !1);
2432
2432
  };
2433
2433
  } else if (_ === "touch" && process.env.NODE_ENV === "test") {
2434
2434
  let $ = (x) => {
2435
- v.isPressed && se(X(x), v.target) && B({
2436
- currentTarget: v.target,
2435
+ y.isPressed && se(X(x), y.target) && B({
2436
+ currentTarget: y.target,
2437
2437
  shiftKey: !1,
2438
2438
  ctrlKey: !1,
2439
2439
  metaKey: !1,
2440
2440
  altKey: !1
2441
2441
  });
2442
2442
  };
2443
- return y(_e(v.target), "scroll", $, !0), () => {
2444
- k(_e(v.target), "scroll", $, !0);
2443
+ return v(_e(y.target), "scroll", $, !0), () => {
2444
+ P(_e(y.target), "scroll", $, !0);
2445
2445
  };
2446
2446
  }
2447
2447
  }, [
2448
2448
  _,
2449
- y,
2450
- k
2449
+ v,
2450
+ P
2451
2451
  ]);
2452
2452
  let j = J(() => {
2453
- let v = m.current, $ = {
2453
+ let y = m.current, $ = {
2454
2454
  onKeyDown(x) {
2455
2455
  if (jn(x.nativeEvent, x.currentTarget) && se(x.currentTarget, X(x))) {
2456
2456
  var N;
2457
2457
  Fo(X(x), x.key) && x.preventDefault();
2458
2458
  let R = !0;
2459
- !v.isPressed && !x.repeat && (v.target = x.currentTarget, v.isPressed = !0, z(!0), v.pointerType = "keyboard", R = P(x, "keyboard")), R && x.stopPropagation(), x.metaKey && vt() && ((N = v.metaKeyEvents) === null || N === void 0 || N.set(x.key, x.nativeEvent));
2460
- } else x.key === "Meta" && (v.metaKeyEvents = /* @__PURE__ */ new Map());
2459
+ !y.isPressed && !x.repeat && (y.target = x.currentTarget, y.isPressed = !0, z(!0), y.pointerType = "keyboard", R = k(x, "keyboard")), R && x.stopPropagation(), x.metaKey && vt() && ((N = y.metaKeyEvents) === null || N === void 0 || N.set(x.key, x.nativeEvent));
2460
+ } else x.key === "Meta" && (y.metaKeyEvents = /* @__PURE__ */ new Map());
2461
2461
  },
2462
2462
  onClick(x) {
2463
- if (!(x && !se(x.currentTarget, X(x))) && x && x.button === 0 && !v.isTriggeringEvent && !ct.isOpening) {
2463
+ if (!(x && !se(x.currentTarget, X(x))) && x && x.button === 0 && !y.isTriggeringEvent && !ct.isOpening) {
2464
2464
  let N = !0;
2465
- if (l && x.preventDefault(), !v.ignoreEmulatedMouseEvents && !v.isPressed && (v.pointerType === "virtual" || ta(x.nativeEvent))) {
2466
- let R = P(x, "virtual"), V = D(x, "virtual"), Z = C(x, "virtual");
2465
+ if (l && x.preventDefault(), !y.ignoreEmulatedMouseEvents && !y.isPressed && (y.pointerType === "virtual" || ta(x.nativeEvent))) {
2466
+ let R = k(x, "virtual"), V = D(x, "virtual"), Z = C(x, "virtual");
2467
2467
  L(x), N = R && V && Z;
2468
- } else if (v.isPressed && v.pointerType !== "keyboard") {
2469
- let R = v.pointerType || x.nativeEvent.pointerType || "virtual", V = D(kt(x.currentTarget, x), R), Z = C(kt(x.currentTarget, x), R, !0);
2470
- N = V && Z, v.isOverTarget = !1, L(x), O(x);
2468
+ } else if (y.isPressed && y.pointerType !== "keyboard") {
2469
+ let R = y.pointerType || x.nativeEvent.pointerType || "virtual", V = D(kt(x.currentTarget, x), R), Z = C(kt(x.currentTarget, x), R, !0);
2470
+ N = V && Z, y.isOverTarget = !1, L(x), O(x);
2471
2471
  }
2472
- v.ignoreEmulatedMouseEvents = !1, N && x.stopPropagation();
2472
+ y.ignoreEmulatedMouseEvents = !1, N && x.stopPropagation();
2473
2473
  }
2474
2474
  }
2475
2475
  };
2476
2476
  return typeof PointerEvent < "u" ? ($.onPointerDown = (x) => {
2477
2477
  if (x.button !== 0 || !se(x.currentTarget, X(x))) return;
2478
2478
  if (Pp(x.nativeEvent)) {
2479
- v.pointerType = "virtual";
2479
+ y.pointerType = "virtual";
2480
2480
  return;
2481
2481
  }
2482
- v.pointerType = x.pointerType;
2482
+ y.pointerType = x.pointerType;
2483
2483
  let N = !0;
2484
- if (!v.isPressed) {
2485
- v.isPressed = !0, I("pointer"), v.isOverTarget = !0, v.activePointerId = x.pointerId, v.target = x.currentTarget, u || zo(v.target), N = P(x, v.pointerType);
2484
+ if (!y.isPressed) {
2485
+ y.isPressed = !0, I("pointer"), y.isOverTarget = !0, y.activePointerId = x.pointerId, y.target = x.currentTarget, u || zo(y.target), N = k(x, y.pointerType);
2486
2486
  let R = X(x);
2487
2487
  "releasePointerCapture" in R && ("hasPointerCapture" in R ? R.hasPointerCapture(x.pointerId) && R.releasePointerCapture(x.pointerId) : R.releasePointerCapture(x.pointerId));
2488
2488
  }
@@ -2491,61 +2491,61 @@ function $r(e) {
2491
2491
  if (se(x.currentTarget, X(x)) && x.button === 0) {
2492
2492
  if (c) {
2493
2493
  let N = Do(x.target);
2494
- N && v.disposables.push(N);
2494
+ N && y.disposables.push(N);
2495
2495
  }
2496
2496
  x.stopPropagation();
2497
2497
  }
2498
2498
  }, $.onPointerUp = (x) => {
2499
- !se(x.currentTarget, X(x)) || v.pointerType === "virtual" || x.button === 0 && !v.isPressed && D(x, v.pointerType || x.pointerType);
2499
+ !se(x.currentTarget, X(x)) || y.pointerType === "virtual" || x.button === 0 && !y.isPressed && D(x, y.pointerType || x.pointerType);
2500
2500
  }, $.onPointerEnter = (x) => {
2501
- x.pointerId === v.activePointerId && v.target && !v.isOverTarget && v.pointerType != null && (v.isOverTarget = !0, P(kt(v.target, x), v.pointerType));
2501
+ x.pointerId === y.activePointerId && y.target && !y.isOverTarget && y.pointerType != null && (y.isOverTarget = !0, k(kt(y.target, x), y.pointerType));
2502
2502
  }, $.onPointerLeave = (x) => {
2503
- x.pointerId === v.activePointerId && v.target && v.isOverTarget && v.pointerType != null && (v.isOverTarget = !1, C(kt(v.target, x), v.pointerType, !1), F(x));
2503
+ x.pointerId === y.activePointerId && y.target && y.isOverTarget && y.pointerType != null && (y.isOverTarget = !1, C(kt(y.target, x), y.pointerType, !1), F(x));
2504
2504
  }, $.onDragStart = (x) => {
2505
2505
  se(x.currentTarget, X(x)) && O(x);
2506
2506
  }) : process.env.NODE_ENV === "test" && ($.onMouseDown = (x) => {
2507
2507
  if (x.button !== 0 || !se(x.currentTarget, X(x))) return;
2508
- if (v.ignoreEmulatedMouseEvents) {
2508
+ if (y.ignoreEmulatedMouseEvents) {
2509
2509
  x.stopPropagation();
2510
2510
  return;
2511
2511
  }
2512
- if (v.isPressed = !0, I("mouse"), v.isOverTarget = !0, v.target = x.currentTarget, v.pointerType = ta(x.nativeEvent) ? "virtual" : "mouse", Sa(() => P(x, v.pointerType)) && x.stopPropagation(), c) {
2512
+ if (y.isPressed = !0, I("mouse"), y.isOverTarget = !0, y.target = x.currentTarget, y.pointerType = ta(x.nativeEvent) ? "virtual" : "mouse", Sa(() => k(x, y.pointerType)) && x.stopPropagation(), c) {
2513
2513
  let R = Do(x.target);
2514
- R && v.disposables.push(R);
2514
+ R && y.disposables.push(R);
2515
2515
  }
2516
2516
  }, $.onMouseEnter = (x) => {
2517
2517
  if (!se(x.currentTarget, X(x))) return;
2518
2518
  let N = !0;
2519
- v.isPressed && !v.ignoreEmulatedMouseEvents && v.pointerType != null && (v.isOverTarget = !0, N = P(x, v.pointerType)), N && x.stopPropagation();
2519
+ y.isPressed && !y.ignoreEmulatedMouseEvents && y.pointerType != null && (y.isOverTarget = !0, N = k(x, y.pointerType)), N && x.stopPropagation();
2520
2520
  }, $.onMouseLeave = (x) => {
2521
2521
  if (!se(x.currentTarget, X(x))) return;
2522
2522
  let N = !0;
2523
- v.isPressed && !v.ignoreEmulatedMouseEvents && v.pointerType != null && (v.isOverTarget = !1, N = C(x, v.pointerType, !1), F(x)), N && x.stopPropagation();
2523
+ y.isPressed && !y.ignoreEmulatedMouseEvents && y.pointerType != null && (y.isOverTarget = !1, N = C(x, y.pointerType, !1), F(x)), N && x.stopPropagation();
2524
2524
  }, $.onMouseUp = (x) => {
2525
- se(x.currentTarget, X(x)) && !v.ignoreEmulatedMouseEvents && x.button === 0 && !v.isPressed && D(x, v.pointerType || "mouse");
2525
+ se(x.currentTarget, X(x)) && !y.ignoreEmulatedMouseEvents && x.button === 0 && !y.isPressed && D(x, y.pointerType || "mouse");
2526
2526
  }, $.onTouchStart = (x) => {
2527
2527
  if (!se(x.currentTarget, X(x))) return;
2528
2528
  let N = Xp(x.nativeEvent);
2529
2529
  if (!N) return;
2530
- v.activePointerId = N.identifier, v.ignoreEmulatedMouseEvents = !0, v.isOverTarget = !0, v.isPressed = !0, I("touch"), v.target = x.currentTarget, v.pointerType = "touch", u || zo(v.target), P(ft(v.target, x), v.pointerType) && x.stopPropagation();
2530
+ y.activePointerId = N.identifier, y.ignoreEmulatedMouseEvents = !0, y.isOverTarget = !0, y.isPressed = !0, I("touch"), y.target = x.currentTarget, y.pointerType = "touch", u || zo(y.target), k(ft(y.target, x), y.pointerType) && x.stopPropagation();
2531
2531
  }, $.onTouchMove = (x) => {
2532
2532
  if (!se(x.currentTarget, X(x))) return;
2533
- if (!v.isPressed) {
2533
+ if (!y.isPressed) {
2534
2534
  x.stopPropagation();
2535
2535
  return;
2536
2536
  }
2537
- let N = jo(x.nativeEvent, v.activePointerId), R = !0;
2538
- N && Bo(N, x.currentTarget) ? !v.isOverTarget && v.pointerType != null && (v.isOverTarget = !0, R = P(ft(v.target, x), v.pointerType)) : v.isOverTarget && v.pointerType != null && (v.isOverTarget = !1, R = C(ft(v.target, x), v.pointerType, !1), F(ft(v.target, x))), R && x.stopPropagation();
2537
+ let N = jo(x.nativeEvent, y.activePointerId), R = !0;
2538
+ N && Bo(N, x.currentTarget) ? !y.isOverTarget && y.pointerType != null && (y.isOverTarget = !0, R = k(ft(y.target, x), y.pointerType)) : y.isOverTarget && y.pointerType != null && (y.isOverTarget = !1, R = C(ft(y.target, x), y.pointerType, !1), F(ft(y.target, x))), R && x.stopPropagation();
2539
2539
  }, $.onTouchEnd = (x) => {
2540
2540
  if (!se(x.currentTarget, X(x))) return;
2541
- if (!v.isPressed) {
2541
+ if (!y.isPressed) {
2542
2542
  x.stopPropagation();
2543
2543
  return;
2544
2544
  }
2545
- let N = jo(x.nativeEvent, v.activePointerId), R = !0;
2546
- N && Bo(N, x.currentTarget) && v.pointerType != null ? (D(ft(v.target, x), v.pointerType), R = C(ft(v.target, x), v.pointerType), K(x.nativeEvent, v.target)) : v.isOverTarget && v.pointerType != null && (R = C(ft(v.target, x), v.pointerType, !1)), R && x.stopPropagation(), v.isPressed = !1, I(null), v.activePointerId = null, v.isOverTarget = !1, v.ignoreEmulatedMouseEvents = !0, v.target && !u && Ln(v.target), w();
2545
+ let N = jo(x.nativeEvent, y.activePointerId), R = !0;
2546
+ N && Bo(N, x.currentTarget) && y.pointerType != null ? (D(ft(y.target, x), y.pointerType), R = C(ft(y.target, x), y.pointerType), K(x.nativeEvent, y.target)) : y.isOverTarget && y.pointerType != null && (R = C(ft(y.target, x), y.pointerType, !1)), R && x.stopPropagation(), y.isPressed = !1, I(null), y.activePointerId = null, y.isOverTarget = !1, y.ignoreEmulatedMouseEvents = !0, y.target && !u && Ln(y.target), w();
2547
2547
  }, $.onTouchCancel = (x) => {
2548
- se(x.currentTarget, X(x)) && (x.stopPropagation(), v.isPressed && O(ft(v.target, x)));
2548
+ se(x.currentTarget, X(x)) && (x.stopPropagation(), y.isPressed && O(ft(y.target, x)));
2549
2549
  }, $.onDragStart = (x) => {
2550
2550
  se(x.currentTarget, X(x)) && O(x);
2551
2551
  }), $;
@@ -2557,32 +2557,32 @@ function $r(e) {
2557
2557
  O,
2558
2558
  F,
2559
2559
  C,
2560
- P,
2560
+ k,
2561
2561
  D,
2562
2562
  L,
2563
2563
  K
2564
2564
  ]);
2565
2565
  return ee(() => {
2566
2566
  if (!p || process.env.NODE_ENV === "test") return;
2567
- const v = de(p.current);
2568
- if (!v || !v.head || v.getElementById(Oo)) return;
2569
- const $ = v.createElement("style");
2567
+ const y = de(p.current);
2568
+ if (!y || !y.head || y.getElementById(Oo)) return;
2569
+ const $ = y.createElement("style");
2570
2570
  $.id = Oo, $.textContent = `
2571
2571
  @layer {
2572
2572
  [${Lo}] {
2573
2573
  touch-action: pan-x pan-y pinch-zoom;
2574
2574
  }
2575
2575
  }
2576
- `.trim(), v.head.prepend($);
2576
+ `.trim(), y.head.prepend($);
2577
2577
  }, [
2578
2578
  p
2579
2579
  ]), ee(() => {
2580
- let v = m.current;
2580
+ let y = m.current;
2581
2581
  return () => {
2582
2582
  var $;
2583
- u || Ln(($ = v.target) !== null && $ !== void 0 ? $ : void 0);
2584
- for (let x of v.disposables) x();
2585
- v.disposables = [];
2583
+ u || Ln(($ = y.target) !== null && $ !== void 0 ? $ : void 0);
2584
+ for (let x of y.disposables) x();
2585
+ y.disposables = [];
2586
2586
  };
2587
2587
  }, [
2588
2588
  u
@@ -2882,14 +2882,14 @@ function Sn(e) {
2882
2882
  n && n(u), a && a(!0), o.current.isFocusWithin = !0, c(u);
2883
2883
  let b = u.currentTarget;
2884
2884
  s(f, "focus", (m) => {
2885
- let y = X(m);
2886
- if (o.current.isFocusWithin && !se(b, y)) {
2885
+ let v = X(m);
2886
+ if (o.current.isFocusWithin && !se(b, v)) {
2887
2887
  let w = new f.defaultView.FocusEvent("blur", {
2888
- relatedTarget: y
2888
+ relatedTarget: v
2889
2889
  });
2890
2890
  gl(w, b);
2891
- let k = ja(w);
2892
- i(k);
2891
+ let P = ja(w);
2892
+ i(P);
2893
2893
  }
2894
2894
  }, {
2895
2895
  capture: !0
@@ -2942,21 +2942,21 @@ function xt(e) {
2942
2942
  let p = (b, m) => {
2943
2943
  if (l.pointerType = m, a || m === "touch" || l.isHovered || !se(b.currentTarget, X(b))) return;
2944
2944
  l.isHovered = !0;
2945
- let y = b.currentTarget;
2946
- l.target = y, i(de(X(b)), "pointerover", (w) => {
2945
+ let v = b.currentTarget;
2946
+ l.target = v, i(de(X(b)), "pointerover", (w) => {
2947
2947
  l.isHovered && l.target && !se(l.target, X(w)) && f(w, w.pointerType);
2948
2948
  }, {
2949
2949
  capture: !0
2950
2950
  }), t && t({
2951
2951
  type: "hoverstart",
2952
- target: y,
2952
+ target: v,
2953
2953
  pointerType: m
2954
2954
  }), r && r(!0), s(!0);
2955
2955
  }, f = (b, m) => {
2956
- let y = l.target;
2957
- l.pointerType = "", l.target = null, !(m === "touch" || !l.isHovered || !y) && (l.isHovered = !1, c(), n && n({
2956
+ let v = l.target;
2957
+ l.pointerType = "", l.target = null, !(m === "touch" || !l.isHovered || !v) && (l.isHovered = !1, c(), n && n({
2958
2958
  type: "hoverend",
2959
- target: y,
2959
+ target: v,
2960
2960
  pointerType: m
2961
2961
  }), r && r(!1), s(!1));
2962
2962
  }, g = {};
@@ -4332,10 +4332,10 @@ var ot = em(), tm = (e) => {
4332
4332
  // add "base" to the slots object
4333
4333
  base: ln(n?.base, b && o?.base),
4334
4334
  ...s
4335
- }, y = b ? m : Zg(
4335
+ }, v = b ? m : Zg(
4336
4336
  { ...o?.slots },
4337
4337
  Re(m) ? { base: n?.base } : m
4338
- ), w = Re(o?.compoundVariants) ? i : mi(o?.compoundVariants, i), k = (C) => {
4338
+ ), w = Re(o?.compoundVariants) ? i : mi(o?.compoundVariants, i), P = (C) => {
4339
4339
  if (Re(f) && Re(s) && b)
4340
4340
  return e(p, C?.class, C?.className)(u);
4341
4341
  if (w && !Array.isArray(w))
@@ -4352,10 +4352,10 @@ var ot = em(), tm = (e) => {
4352
4352
  return null;
4353
4353
  const j = _?.[E] ?? C?.[E];
4354
4354
  if (j === null) return null;
4355
- const v = Qo(j);
4356
- if (typeof v == "object")
4355
+ const y = Qo(j);
4356
+ if (typeof y == "object")
4357
4357
  return null;
4358
- const $ = g?.[E], x = v ?? Qo($);
4358
+ const $ = g?.[E], x = y ?? Qo($);
4359
4359
  return I[x || "false"];
4360
4360
  }, D = () => {
4361
4361
  if (!f) return null;
@@ -4391,7 +4391,7 @@ var ot = em(), tm = (e) => {
4391
4391
  }, F = (E = [], M) => {
4392
4392
  const z = [], _ = E.length;
4393
4393
  for (let I = 0; I < _; I++) {
4394
- const { class: j, className: v, ...$ } = E[I];
4394
+ const { class: j, className: y, ...$ } = E[I];
4395
4395
  let x = !0;
4396
4396
  const N = B(null, M);
4397
4397
  for (const R in $) {
@@ -4410,7 +4410,7 @@ var ot = em(), tm = (e) => {
4410
4410
  }
4411
4411
  }
4412
4412
  }
4413
- x && (j && z.push(j), v && z.push(v));
4413
+ x && (j && z.push(j), y && z.push(y));
4414
4414
  }
4415
4415
  return z;
4416
4416
  }, L = (E) => {
@@ -4422,8 +4422,8 @@ var ot = em(), tm = (e) => {
4422
4422
  if (typeof j == "string")
4423
4423
  z.base = _(z.base, j)(u);
4424
4424
  else if (typeof j == "object")
4425
- for (const v in j)
4426
- z[v] = _(z[v], j[v])(u);
4425
+ for (const y in j)
4426
+ z[y] = _(z[y], j[y])(u);
4427
4427
  }
4428
4428
  return z;
4429
4429
  }, K = (E) => {
@@ -4433,7 +4433,7 @@ var ot = em(), tm = (e) => {
4433
4433
  const {
4434
4434
  slots: I = [],
4435
4435
  class: j,
4436
- className: v,
4436
+ className: y,
4437
4437
  ...$
4438
4438
  } = c[_];
4439
4439
  if (!Re($)) {
@@ -4449,20 +4449,20 @@ var ot = em(), tm = (e) => {
4449
4449
  }
4450
4450
  for (let x = 0; x < I.length; x++) {
4451
4451
  const N = I[x];
4452
- M[N] || (M[N] = []), M[N].push([j, v]);
4452
+ M[N] || (M[N] = []), M[N].push([j, y]);
4453
4453
  }
4454
4454
  }
4455
4455
  return M;
4456
4456
  };
4457
4457
  if (!Re(s) || !b) {
4458
4458
  const E = {};
4459
- if (typeof y == "object" && !Re(y)) {
4459
+ if (typeof v == "object" && !Re(v)) {
4460
4460
  const M = e;
4461
- for (const z in y)
4461
+ for (const z in v)
4462
4462
  E[z] = (_) => {
4463
4463
  const I = L(_), j = K(_);
4464
4464
  return M(
4465
- y[z],
4465
+ v[z],
4466
4466
  T(z, _),
4467
4467
  I ? I[z] : void 0,
4468
4468
  j ? j[z] : void 0,
@@ -4480,11 +4480,11 @@ var ot = em(), tm = (e) => {
4480
4480
  C?.class,
4481
4481
  C?.className
4482
4482
  )(u);
4483
- }, P = () => {
4483
+ }, k = () => {
4484
4484
  if (!(!f || typeof f != "object"))
4485
4485
  return Object.keys(f);
4486
4486
  };
4487
- return k.variantKeys = P(), k.extend = o, k.base = p, k.slots = y, k.variants = f, k.defaultVariants = g, k.compoundSlots = c, k.compoundVariants = w, k;
4487
+ return P.variantKeys = k(), P.extend = o, P.base = p, P.slots = v, P.variants = f, P.defaultVariants = g, P.compoundSlots = c, P.compoundVariants = w, P;
4488
4488
  };
4489
4489
  return {
4490
4490
  tv: t,
@@ -4713,26 +4713,26 @@ const rm = (e, t) => {
4713
4713
  i = d + (i.length > 0 ? " " + i : i);
4714
4714
  continue;
4715
4715
  }
4716
- let m = !!b, y = n(m ? g.substring(0, b) : g);
4717
- if (!y) {
4716
+ let m = !!b, v = n(m ? g.substring(0, b) : g);
4717
+ if (!v) {
4718
4718
  if (!m) {
4719
4719
  i = d + (i.length > 0 ? " " + i : i);
4720
4720
  continue;
4721
4721
  }
4722
- if (y = n(g), !y) {
4722
+ if (v = n(g), !v) {
4723
4723
  i = d + (i.length > 0 ? " " + i : i);
4724
4724
  continue;
4725
4725
  }
4726
4726
  m = !1;
4727
4727
  }
4728
- const w = p.length === 0 ? "" : p.length === 1 ? p[0] : o(p).join(":"), k = f ? w + ma : w, P = k + y;
4729
- if (s.indexOf(P) > -1)
4728
+ const w = p.length === 0 ? "" : p.length === 1 ? p[0] : o(p).join(":"), P = f ? w + ma : w, k = P + v;
4729
+ if (s.indexOf(k) > -1)
4730
4730
  continue;
4731
- s.push(P);
4732
- const C = a(y, m);
4731
+ s.push(k);
4732
+ const C = a(v, m);
4733
4733
  for (let A = 0; A < C.length; ++A) {
4734
4734
  const D = C[A];
4735
- s.push(k + D);
4735
+ s.push(P + D);
4736
4736
  }
4737
4737
  i = d + (i.length > 0 ? " " + i : i);
4738
4738
  }
@@ -4777,7 +4777,7 @@ const rm = (e, t) => {
4777
4777
  const n = wi.exec(e);
4778
4778
  return n ? n[1] ? t(n[1]) : r : !1;
4779
4779
  }, ki = (e) => e === "position" || e === "percentage", Ci = (e) => e === "image" || e === "url", Pi = (e) => e === "length" || e === "size" || e === "bg-size", Si = (e) => e === "length", jm = (e) => e === "number", Bm = (e) => e === "family-name", Ei = (e) => e === "shadow", ha = () => {
4780
- const e = Ce("color"), t = Ce("font"), r = Ce("text"), n = Ce("font-weight"), a = Ce("tracking"), o = Ce("leading"), s = Ce("breakpoint"), l = Ce("container"), i = Ce("spacing"), c = Ce("radius"), d = Ce("shadow"), u = Ce("inset-shadow"), p = Ce("text-shadow"), f = Ce("drop-shadow"), g = Ce("blur"), b = Ce("perspective"), m = Ce("aspect"), y = Ce("ease"), w = Ce("animate"), k = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], P = () => [
4780
+ const e = Ce("color"), t = Ce("font"), r = Ce("text"), n = Ce("font-weight"), a = Ce("tracking"), o = Ce("leading"), s = Ce("breakpoint"), l = Ce("container"), i = Ce("spacing"), c = Ce("radius"), d = Ce("shadow"), u = Ce("inset-shadow"), p = Ce("text-shadow"), f = Ce("drop-shadow"), g = Ce("blur"), b = Ce("perspective"), m = Ce("aspect"), v = Ce("ease"), w = Ce("animate"), P = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], k = () => [
4781
4781
  "center",
4782
4782
  "top",
4783
4783
  "bottom",
@@ -4795,11 +4795,11 @@ const rm = (e, t) => {
4795
4795
  "bottom-left",
4796
4796
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
4797
4797
  "left-bottom"
4798
- ], C = () => [...P(), q, Y], A = () => ["auto", "hidden", "clip", "visible", "scroll"], D = () => ["auto", "contain", "none"], T = () => [q, Y, i], O = () => [Ot, "full", "auto", ...T()], B = () => [pt, "none", "subgrid", q, Y], F = () => ["auto", {
4798
+ ], C = () => [...k(), q, Y], A = () => ["auto", "hidden", "clip", "visible", "scroll"], D = () => ["auto", "contain", "none"], T = () => [q, Y, i], O = () => [Ot, "full", "auto", ...T()], B = () => [pt, "none", "subgrid", q, Y], F = () => ["auto", {
4799
4799
  span: ["full", pt, q, Y]
4800
- }, pt, q, Y], L = () => [pt, "auto", q, Y], K = () => ["auto", "min", "max", "fr", q, Y], E = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], M = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], z = () => ["auto", ...T()], _ = () => [Ot, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...T()], I = () => [e, q, Y], j = () => [...P(), as, ns, {
4800
+ }, pt, q, Y], L = () => [pt, "auto", q, Y], K = () => ["auto", "min", "max", "fr", q, Y], E = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], M = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], z = () => ["auto", ...T()], _ = () => [Ot, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...T()], I = () => [e, q, Y], j = () => [...k(), as, ns, {
4801
4801
  position: [q, Y]
4802
- }], v = () => ["no-repeat", {
4802
+ }], y = () => ["no-repeat", {
4803
4803
  repeat: ["", "x", "y", "space", "round"]
4804
4804
  }], $ = () => ["auto", "cover", "contain", Om, zm, {
4805
4805
  size: [q, Y]
@@ -4871,14 +4871,14 @@ const rm = (e, t) => {
4871
4871
  * @see https://tailwindcss.com/docs/break-after
4872
4872
  */
4873
4873
  "break-after": [{
4874
- "break-after": k()
4874
+ "break-after": P()
4875
4875
  }],
4876
4876
  /**
4877
4877
  * Break Before
4878
4878
  * @see https://tailwindcss.com/docs/break-before
4879
4879
  */
4880
4880
  "break-before": [{
4881
- "break-before": k()
4881
+ "break-before": P()
4882
4882
  }],
4883
4883
  /**
4884
4884
  * Break Inside
@@ -5777,7 +5777,7 @@ const rm = (e, t) => {
5777
5777
  * @see https://tailwindcss.com/docs/background-repeat
5778
5778
  */
5779
5779
  "bg-repeat": [{
5780
- bg: v()
5780
+ bg: y()
5781
5781
  }],
5782
5782
  /**
5783
5783
  * Background Size
@@ -6411,7 +6411,7 @@ const rm = (e, t) => {
6411
6411
  }]
6412
6412
  }],
6413
6413
  "mask-image-radial-pos": [{
6414
- "mask-radial-at": P()
6414
+ "mask-radial-at": k()
6415
6415
  }],
6416
6416
  "mask-image-conic-pos": [{
6417
6417
  "mask-conic": [le]
@@ -6454,7 +6454,7 @@ const rm = (e, t) => {
6454
6454
  * @see https://tailwindcss.com/docs/mask-repeat
6455
6455
  */
6456
6456
  "mask-repeat": [{
6457
- mask: v()
6457
+ mask: y()
6458
6458
  }],
6459
6459
  /**
6460
6460
  * Mask Size
@@ -6720,7 +6720,7 @@ const rm = (e, t) => {
6720
6720
  * @see https://tailwindcss.com/docs/transition-timing-function
6721
6721
  */
6722
6722
  ease: [{
6723
- ease: ["linear", "initial", y, q, Y]
6723
+ ease: ["linear", "initial", v, q, Y]
6724
6724
  }],
6725
6725
  /**
6726
6726
  * Transition Delay
@@ -17730,7 +17730,7 @@ function ab(e) {
17730
17730
  return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
17731
17731
  }
17732
17732
  function ob(e) {
17733
- let { selectionManager: t, keyboardDelegate: r, ref: n, autoFocus: a = !1, shouldFocusWrap: o = !1, disallowEmptySelection: s = !1, disallowSelectAll: l = !1, escapeKeyBehavior: i = "clearSelection", selectOnFocus: c = t.selectionBehavior === "replace", disallowTypeAhead: d = !1, shouldUseVirtualFocus: u, allowsTabNavigation: p = !1, scrollRef: f = n, linkBehavior: g = "action" } = e, { direction: b } = vn(), m = $n(), y = (E) => {
17733
+ let { selectionManager: t, keyboardDelegate: r, ref: n, autoFocus: a = !1, shouldFocusWrap: o = !1, disallowEmptySelection: s = !1, disallowSelectAll: l = !1, escapeKeyBehavior: i = "clearSelection", selectOnFocus: c = t.selectionBehavior === "replace", disallowTypeAhead: d = !1, shouldUseVirtualFocus: u, allowsTabNavigation: p = !1, scrollRef: f = n, linkBehavior: g = "action" } = e, { direction: b } = vn(), m = $n(), v = (E) => {
17734
17734
  if (E.altKey && E.key === "Tab" && E.preventDefault(), !n.current || !se(n.current, X(E))) return;
17735
17735
  const M = (W, te) => {
17736
17736
  if (W != null) {
@@ -17756,8 +17756,8 @@ function ob(e) {
17756
17756
  break;
17757
17757
  case "ArrowUp":
17758
17758
  if (r.getKeyAbove) {
17759
- var j, v, $;
17760
- let W = t.focusedKey != null ? (j = r.getKeyAbove) === null || j === void 0 ? void 0 : j.call(r, t.focusedKey) : (v = r.getLastKey) === null || v === void 0 ? void 0 : v.call(r);
17759
+ var j, y, $;
17760
+ let W = t.focusedKey != null ? (j = r.getKeyAbove) === null || j === void 0 ? void 0 : j.call(r, t.focusedKey) : (y = r.getLastKey) === null || y === void 0 ? void 0 : y.call(r);
17761
17761
  W == null && o && (W = ($ = r.getLastKey) === null || $ === void 0 ? void 0 : $.call(r, t.focusedKey)), W != null && (E.preventDefault(), M(W));
17762
17762
  }
17763
17763
  break;
@@ -17836,7 +17836,7 @@ function ob(e) {
17836
17836
  left: (_ = (M = f.current) === null || M === void 0 ? void 0 : M.scrollLeft) !== null && _ !== void 0 ? _ : 0
17837
17837
  };
17838
17838
  });
17839
- let k = (E) => {
17839
+ let P = (E) => {
17840
17840
  if (t.isFocused) {
17841
17841
  se(E.currentTarget, X(E)) || t.setFocused(!1);
17842
17842
  return;
@@ -17846,9 +17846,9 @@ function ob(e) {
17846
17846
  var M, z;
17847
17847
  let j = ($) => {
17848
17848
  $ != null && (t.setFocusedKey($), c && !t.isSelected($) && t.replaceSelection($));
17849
- }, v = E.relatedTarget;
17849
+ }, y = E.relatedTarget;
17850
17850
  var _, I;
17851
- v && E.currentTarget.compareDocumentPosition(v) & Node.DOCUMENT_POSITION_FOLLOWING ? j((_ = t.lastSelectedKey) !== null && _ !== void 0 ? _ : (M = r.getLastKey) === null || M === void 0 ? void 0 : M.call(r)) : j((I = t.firstSelectedKey) !== null && I !== void 0 ? I : (z = r.getFirstKey) === null || z === void 0 ? void 0 : z.call(r));
17851
+ y && E.currentTarget.compareDocumentPosition(y) & Node.DOCUMENT_POSITION_FOLLOWING ? j((_ = t.lastSelectedKey) !== null && _ !== void 0 ? _ : (M = r.getLastKey) === null || M === void 0 ? void 0 : M.call(r)) : j((I = t.firstSelectedKey) !== null && I !== void 0 ? I : (z = r.getFirstKey) === null || z === void 0 ? void 0 : z.call(r));
17852
17852
  } else f.current && (f.current.scrollTop = w.current.top, f.current.scrollLeft = w.current.left);
17853
17853
  if (t.focusedKey != null && f.current) {
17854
17854
  let j = qr(n, t.focusedKey);
@@ -17857,7 +17857,7 @@ function ob(e) {
17857
17857
  }));
17858
17858
  }
17859
17859
  }
17860
- }, P = (E) => {
17860
+ }, k = (E) => {
17861
17861
  se(E.currentTarget, E.relatedTarget) || t.setFocused(!1);
17862
17862
  }, C = H(!1);
17863
17863
  Ir(n, Ep, u ? (E) => {
@@ -17894,8 +17894,8 @@ function ob(e) {
17894
17894
  a === "last" && (I = (_ = (M = r.getLastKey) === null || M === void 0 ? void 0 : M.call(r)) !== null && _ !== void 0 ? _ : null);
17895
17895
  let j = t.selectedKeys;
17896
17896
  if (j.size) {
17897
- for (let v of j) if (t.canSelectItem(v)) {
17898
- I = v;
17897
+ for (let y of j) if (t.canSelectItem(y)) {
17898
+ I = y;
17899
17899
  break;
17900
17900
  }
17901
17901
  }
@@ -17921,9 +17921,9 @@ function ob(e) {
17921
17921
  E.preventDefault(), t.setFocused(!0);
17922
17922
  });
17923
17923
  let B = {
17924
- onKeyDown: y,
17925
- onFocus: k,
17926
- onBlur: P,
17924
+ onKeyDown: v,
17925
+ onFocus: P,
17926
+ onBlur: k,
17927
17927
  onMouseDown(E) {
17928
17928
  f.current === X(E) && E.preventDefault();
17929
17929
  }
@@ -17945,18 +17945,18 @@ function ob(e) {
17945
17945
  function Di(e) {
17946
17946
  let { id: t, selectionManager: r, key: n, ref: a, shouldSelectOnPressUp: o, shouldUseVirtualFocus: s, focus: l, isDisabled: i, onAction: c, allowsDifferentPressOrigin: d, linkBehavior: u = "action" } = e, p = $n();
17947
17947
  t = Ue(t);
17948
- let f = (v) => {
17949
- if (v.pointerType === "keyboard" && va(v)) r.toggleSelection(n);
17948
+ let f = (y) => {
17949
+ if (y.pointerType === "keyboard" && va(y)) r.toggleSelection(n);
17950
17950
  else {
17951
17951
  if (r.selectionMode === "none") return;
17952
17952
  if (r.isLink(n)) {
17953
17953
  if (u === "selection" && a.current) {
17954
17954
  let $ = r.getItemProps(n);
17955
- p.open(a.current, v, $.href, $.routerOptions), r.setSelectedKeys(r.selectedKeys);
17955
+ p.open(a.current, y, $.href, $.routerOptions), r.setSelectedKeys(r.selectedKeys);
17956
17956
  return;
17957
17957
  } else if (u === "override" || u === "none") return;
17958
17958
  }
17959
- r.selectionMode === "single" ? r.isSelected(n) && !r.disallowEmptySelection ? r.toggleSelection(n) : r.replaceSelection(n) : v && v.shiftKey ? r.extendSelection(n) : r.selectionBehavior === "toggle" || v && (Kt(v) || v.pointerType === "touch" || v.pointerType === "virtual") ? r.toggleSelection(n) : r.replaceSelection(n);
17959
+ r.selectionMode === "single" ? r.isSelected(n) && !r.disallowEmptySelection ? r.toggleSelection(n) : r.replaceSelection(n) : y && y.shiftKey ? r.extendSelection(n) : r.selectionBehavior === "toggle" || y && (Kt(y) || y.pointerType === "touch" || y.pointerType === "virtual") ? r.toggleSelection(n) : r.replaceSelection(n);
17960
17960
  }
17961
17961
  };
17962
17962
  ee(() => {
@@ -17972,11 +17972,11 @@ function Di(e) {
17972
17972
  let g = {};
17973
17973
  !s && !i ? g = {
17974
17974
  tabIndex: n === r.focusedKey ? 0 : -1,
17975
- onFocus(v) {
17976
- X(v) === a.current && r.setFocusedKey(n);
17975
+ onFocus(y) {
17976
+ X(y) === a.current && r.setFocusedKey(n);
17977
17977
  }
17978
- } : i && (g.onMouseDown = (v) => {
17979
- v.preventDefault();
17978
+ } : i && (g.onMouseDown = (y) => {
17979
+ y.preventDefault();
17980
17980
  }), ee(() => {
17981
17981
  i && r.focusedKey === n && r.setFocusedKey(null);
17982
17982
  }, [
@@ -17984,64 +17984,64 @@ function Di(e) {
17984
17984
  i,
17985
17985
  n
17986
17986
  ]);
17987
- let b = r.isLink(n) && u === "override", m = c && e.UNSTABLE_itemBehavior === "action", y = r.isLink(n) && u !== "selection" && u !== "none", w = !i && r.canSelectItem(n) && !b && !m, k = (c || y) && !i, P = k && (r.selectionBehavior === "replace" ? !w : !w || r.isEmpty), C = k && w && r.selectionBehavior === "replace", A = P || C, D = H(null), T = A && w, O = H(!1), B = H(!1), F = r.getItemProps(n), L = (v) => {
17987
+ let b = r.isLink(n) && u === "override", m = c && e.UNSTABLE_itemBehavior === "action", v = r.isLink(n) && u !== "selection" && u !== "none", w = !i && r.canSelectItem(n) && !b && !m, P = (c || v) && !i, k = P && (r.selectionBehavior === "replace" ? !w : !w || r.isEmpty), C = P && w && r.selectionBehavior === "replace", A = k || C, D = H(null), T = A && w, O = H(!1), B = H(!1), F = r.getItemProps(n), L = (y) => {
17988
17988
  if (c) {
17989
17989
  var $;
17990
17990
  c(), ($ = a.current) === null || $ === void 0 || $.dispatchEvent(new CustomEvent("react-aria-item-action", {
17991
17991
  bubbles: !0
17992
17992
  }));
17993
17993
  }
17994
- y && a.current && p.open(a.current, v, F.href, F.routerOptions);
17994
+ v && a.current && p.open(a.current, y, F.href, F.routerOptions);
17995
17995
  }, K = {
17996
17996
  ref: a
17997
17997
  };
17998
- if (o ? (K.onPressStart = (v) => {
17999
- D.current = v.pointerType, O.current = T, v.pointerType === "keyboard" && (!A || ds(v.key)) && f(v);
18000
- }, d ? (K.onPressUp = P ? void 0 : (v) => {
18001
- v.pointerType === "mouse" && w && f(v);
18002
- }, K.onPress = P ? L : (v) => {
18003
- v.pointerType !== "keyboard" && v.pointerType !== "mouse" && w && f(v);
18004
- }) : K.onPress = (v) => {
18005
- if (P || C && v.pointerType !== "mouse") {
18006
- if (v.pointerType === "keyboard" && !cs(v.key)) return;
18007
- L(v);
18008
- } else v.pointerType !== "keyboard" && w && f(v);
18009
- }) : (K.onPressStart = (v) => {
18010
- D.current = v.pointerType, O.current = T, B.current = P, w && (v.pointerType === "mouse" && !P || v.pointerType === "keyboard" && (!k || ds(v.key))) && f(v);
18011
- }, K.onPress = (v) => {
18012
- (v.pointerType === "touch" || v.pointerType === "pen" || v.pointerType === "virtual" || v.pointerType === "keyboard" && A && cs(v.key) || v.pointerType === "mouse" && B.current) && (A ? L(v) : w && f(v));
17998
+ if (o ? (K.onPressStart = (y) => {
17999
+ D.current = y.pointerType, O.current = T, y.pointerType === "keyboard" && (!A || ds(y.key)) && f(y);
18000
+ }, d ? (K.onPressUp = k ? void 0 : (y) => {
18001
+ y.pointerType === "mouse" && w && f(y);
18002
+ }, K.onPress = k ? L : (y) => {
18003
+ y.pointerType !== "keyboard" && y.pointerType !== "mouse" && w && f(y);
18004
+ }) : K.onPress = (y) => {
18005
+ if (k || C && y.pointerType !== "mouse") {
18006
+ if (y.pointerType === "keyboard" && !cs(y.key)) return;
18007
+ L(y);
18008
+ } else y.pointerType !== "keyboard" && w && f(y);
18009
+ }) : (K.onPressStart = (y) => {
18010
+ D.current = y.pointerType, O.current = T, B.current = k, w && (y.pointerType === "mouse" && !k || y.pointerType === "keyboard" && (!P || ds(y.key))) && f(y);
18011
+ }, K.onPress = (y) => {
18012
+ (y.pointerType === "touch" || y.pointerType === "pen" || y.pointerType === "virtual" || y.pointerType === "keyboard" && A && cs(y.key) || y.pointerType === "mouse" && B.current) && (A ? L(y) : w && f(y));
18013
18013
  }), g["data-collection"] = tb(r.collection), g["data-key"] = n, K.preventFocusOnPress = s, s && (K = Se(K, {
18014
- onPressStart(v) {
18015
- v.pointerType !== "touch" && (r.setFocused(!0), r.setFocusedKey(n));
18014
+ onPressStart(y) {
18015
+ y.pointerType !== "touch" && (r.setFocused(!0), r.setFocusedKey(n));
18016
18016
  },
18017
- onPress(v) {
18018
- v.pointerType === "touch" && (r.setFocused(!0), r.setFocusedKey(n));
18017
+ onPress(y) {
18018
+ y.pointerType === "touch" && (r.setFocused(!0), r.setFocusedKey(n));
18019
18019
  }
18020
18020
  })), F)
18021
- for (let v of [
18021
+ for (let y of [
18022
18022
  "onPressStart",
18023
18023
  "onPressEnd",
18024
18024
  "onPressChange",
18025
18025
  "onPress",
18026
18026
  "onPressUp",
18027
18027
  "onClick"
18028
- ]) F[v] && (K[v] = Zt(K[v], F[v]));
18029
- let { pressProps: E, isPressed: M } = $r(K), z = C ? (v) => {
18030
- D.current === "mouse" && (v.stopPropagation(), v.preventDefault(), L(v));
18028
+ ]) F[y] && (K[y] = Zt(K[y], F[y]));
18029
+ let { pressProps: E, isPressed: M } = $r(K), z = C ? (y) => {
18030
+ D.current === "mouse" && (y.stopPropagation(), y.preventDefault(), L(y));
18031
18031
  } : void 0, { longPressProps: _ } = Cl({
18032
18032
  isDisabled: !T,
18033
- onLongPress(v) {
18034
- v.pointerType === "touch" && (f(v), r.setSelectionBehavior("toggle"));
18033
+ onLongPress(y) {
18034
+ y.pointerType === "touch" && (f(y), r.setSelectionBehavior("toggle"));
18035
18035
  }
18036
- }), I = (v) => {
18037
- D.current === "touch" && O.current && v.preventDefault();
18038
- }, j = u !== "none" && r.isLink(n) ? (v) => {
18039
- ct.isOpening || v.preventDefault();
18036
+ }), I = (y) => {
18037
+ D.current === "touch" && O.current && y.preventDefault();
18038
+ }, j = u !== "none" && r.isLink(n) ? (y) => {
18039
+ ct.isOpening || y.preventDefault();
18040
18040
  } : void 0;
18041
18041
  return {
18042
18042
  itemProps: Se(
18043
18043
  g,
18044
- w || P || s && !i ? E : {},
18044
+ w || k || s && !i ? E : {},
18045
18045
  T ? _ : {},
18046
18046
  {
18047
18047
  onDoubleClick: z,
@@ -18051,7 +18051,7 @@ function Di(e) {
18051
18051
  },
18052
18052
  // Prevent DOM focus from moving on mouse down when using virtual focus
18053
18053
  s ? {
18054
- onMouseDown: (v) => v.preventDefault()
18054
+ onMouseDown: (y) => y.preventDefault()
18055
18055
  } : void 0
18056
18056
  ),
18057
18057
  isPressed: M,
@@ -18379,23 +18379,23 @@ function _i(e) {
18379
18379
  e.defaultSelectedKeys
18380
18380
  ]), [f, g] = La(u, p, e.onSelectionChange), b = J(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [
18381
18381
  e.disabledKeys
18382
- ]), [m, y] = ne(a);
18383
- a === "replace" && m === "toggle" && typeof f == "object" && f.size === 0 && y("replace");
18382
+ ]), [m, v] = ne(a);
18383
+ a === "replace" && m === "toggle" && typeof f == "object" && f.size === 0 && v("replace");
18384
18384
  let w = H(a);
18385
18385
  return ee(() => {
18386
- a !== w.current && (y(a), w.current = a);
18386
+ a !== w.current && (v(a), w.current = a);
18387
18387
  }, [
18388
18388
  a
18389
18389
  ]), {
18390
18390
  selectionMode: t,
18391
18391
  disallowEmptySelection: r,
18392
18392
  selectionBehavior: m,
18393
- setSelectionBehavior: y,
18393
+ setSelectionBehavior: v,
18394
18394
  get isFocused() {
18395
18395
  return s.current;
18396
18396
  },
18397
- setFocused(k) {
18398
- s.current = k, l(k);
18397
+ setFocused(P) {
18398
+ s.current = P, l(P);
18399
18399
  },
18400
18400
  get focusedKey() {
18401
18401
  return i.current;
@@ -18403,12 +18403,12 @@ function _i(e) {
18403
18403
  get childFocusStrategy() {
18404
18404
  return c.current;
18405
18405
  },
18406
- setFocusedKey(k, P = "first") {
18407
- i.current = k, c.current = P, d(k);
18406
+ setFocusedKey(P, k = "first") {
18407
+ i.current = P, c.current = k, d(P);
18408
18408
  },
18409
18409
  selectedKeys: f,
18410
- setSelectedKeys(k) {
18411
- (n || !ib(k, f)) && g(k);
18410
+ setSelectedKeys(P) {
18411
+ (n || !ib(P, f)) && g(P);
18412
18412
  },
18413
18413
  disabledKeys: b,
18414
18414
  disabledBehavior: o
@@ -18542,10 +18542,10 @@ class db {
18542
18542
  m.push(w);
18543
18543
  });
18544
18544
  var o;
18545
- let y = (o = t.index) !== null && o !== void 0 ? o : 0;
18545
+ let v = (o = t.index) !== null && o !== void 0 ? o : 0;
18546
18546
  for (const w of m) yield* this.getFullNode({
18547
18547
  element: w,
18548
- index: y++
18548
+ index: v++
18549
18549
  }, r, n, a);
18550
18550
  return;
18551
18551
  }
@@ -18561,34 +18561,34 @@ class db {
18561
18561
  if (Q.isValidElement(s)) {
18562
18562
  let m = s.type;
18563
18563
  if (typeof m != "function" && typeof m.getCollectionNode != "function") {
18564
- let P = s.type;
18565
- throw new Error(`Unknown element <${P}> in collection.`);
18564
+ let k = s.type;
18565
+ throw new Error(`Unknown element <${k}> in collection.`);
18566
18566
  }
18567
- let y = m.getCollectionNode(s.props, this.context);
18567
+ let v = m.getCollectionNode(s.props, this.context);
18568
18568
  var l;
18569
- let w = (l = t.index) !== null && l !== void 0 ? l : 0, k = y.next();
18570
- for (; !k.done && k.value; ) {
18571
- let P = k.value;
18569
+ let w = (l = t.index) !== null && l !== void 0 ? l : 0, P = v.next();
18570
+ for (; !P.done && P.value; ) {
18571
+ let k = P.value;
18572
18572
  t.index = w;
18573
18573
  var i;
18574
- let C = (i = P.key) !== null && i !== void 0 ? i : null;
18575
- C == null && (C = P.element ? null : this.getKey(s, t, r, n));
18574
+ let C = (i = k.key) !== null && i !== void 0 ? i : null;
18575
+ C == null && (C = k.element ? null : this.getKey(s, t, r, n));
18576
18576
  let D = [
18577
18577
  ...this.getFullNode({
18578
- ...P,
18578
+ ...k,
18579
18579
  key: C,
18580
18580
  index: w,
18581
- wrapper: ub(t.wrapper, P.wrapper)
18582
- }, this.getChildState(r, P), n ? `${n}${s.key}` : s.key, a)
18581
+ wrapper: ub(t.wrapper, k.wrapper)
18582
+ }, this.getChildState(r, k), n ? `${n}${s.key}` : s.key, a)
18583
18583
  ];
18584
18584
  for (let T of D) {
18585
18585
  var c, d;
18586
- T.value = (d = (c = P.value) !== null && c !== void 0 ? c : t.value) !== null && d !== void 0 ? d : null, T.value && this.cache.set(T.value, T);
18586
+ T.value = (d = (c = k.value) !== null && c !== void 0 ? c : t.value) !== null && d !== void 0 ? d : null, T.value && this.cache.set(T.value, T);
18587
18587
  var u;
18588
18588
  if (t.type && T.type !== t.type) throw new Error(`Unsupported type <${Vn(T.type)}> in <${Vn((u = a?.type) !== null && u !== void 0 ? u : "unknown parent type")}>. Only <${Vn(t.type)}> is supported.`);
18589
18589
  w++, yield T;
18590
18590
  }
18591
- k = y.next(D);
18591
+ P = v.next(D);
18592
18592
  }
18593
18593
  return;
18594
18594
  }
@@ -18612,14 +18612,14 @@ class db {
18612
18612
  childNodes: gs(function* () {
18613
18613
  if (!t.hasChildNodes || !t.childNodes) return;
18614
18614
  let m = 0;
18615
- for (let y of t.childNodes()) {
18616
- y.key != null && (y.key = `${b.key}${y.key}`);
18615
+ for (let v of t.childNodes()) {
18616
+ v.key != null && (v.key = `${b.key}${v.key}`);
18617
18617
  let w = p.getFullNode({
18618
- ...y,
18618
+ ...v,
18619
18619
  index: m
18620
- }, p.getChildState(r, y), b.key, b);
18621
- for (let k of w)
18622
- m++, yield k;
18620
+ }, p.getChildState(r, v), b.key, b);
18621
+ for (let P of w)
18622
+ m++, yield P;
18623
18623
  }
18624
18624
  })
18625
18625
  };
@@ -19212,11 +19212,11 @@ function Ua(e, t) {
19212
19212
  rel: g,
19213
19213
  type: b = "button",
19214
19214
  allowTextSelectionOnPress: m
19215
- } = e, y;
19216
- r === "button" ? y = {
19215
+ } = e, v;
19216
+ r === "button" ? v = {
19217
19217
  type: b,
19218
19218
  disabled: n
19219
- } : y = {
19219
+ } : v = {
19220
19220
  role: "button",
19221
19221
  href: r === "a" && !n ? p : void 0,
19222
19222
  target: r === "a" ? f : void 0,
@@ -19225,7 +19225,7 @@ function Ua(e, t) {
19225
19225
  "aria-disabled": !n || r === "input" ? void 0 : n,
19226
19226
  rel: r === "a" ? g : void 0
19227
19227
  };
19228
- let { pressProps: w, isPressed: k } = $r({
19228
+ let { pressProps: w, isPressed: P } = $r({
19229
19229
  onClick: u,
19230
19230
  onPressStart: o,
19231
19231
  onPressEnd: s,
@@ -19236,17 +19236,17 @@ function Ua(e, t) {
19236
19236
  preventFocusOnPress: c,
19237
19237
  allowTextSelectionOnPress: m,
19238
19238
  ref: t
19239
- }), { focusableProps: P } = Ka(e, t);
19240
- d && (P.tabIndex = n ? -1 : P.tabIndex);
19239
+ }), { focusableProps: k } = Ka(e, t);
19240
+ d && (k.tabIndex = n ? -1 : k.tabIndex);
19241
19241
  let C = Se(
19242
- P,
19242
+ k,
19243
19243
  w,
19244
19244
  Dt(e, { labelable: !0 })
19245
19245
  );
19246
19246
  return {
19247
- isPressed: k,
19247
+ isPressed: P,
19248
19248
  // Used to indicate press state for visual
19249
- buttonProps: Se(y, C, {
19249
+ buttonProps: Se(v, C, {
19250
19250
  "aria-haspopup": e["aria-haspopup"],
19251
19251
  "aria-expanded": e["aria-expanded"],
19252
19252
  "aria-controls": e["aria-controls"],
@@ -19320,10 +19320,10 @@ function kb(e) {
19320
19320
  as: g,
19321
19321
  children: b,
19322
19322
  startContent: m,
19323
- endContent: y,
19323
+ endContent: v,
19324
19324
  autoFocus: w,
19325
- className: k,
19326
- spinner: P,
19325
+ className: P,
19326
+ spinner: k,
19327
19327
  isLoading: C = !1,
19328
19328
  disableRipple: A,
19329
19329
  fullWidth: D = (t = d?.fullWidth) != null ? t : !1,
@@ -19338,7 +19338,7 @@ function kb(e) {
19338
19338
  onPress: z,
19339
19339
  onClick: _,
19340
19340
  ...I
19341
- } = e, j = g || "button", v = typeof j == "string", $ = Jt(f), x = (c = A ?? u?.disableRipple) != null ? c : L, { isFocusVisible: N, isFocused: R, focusProps: V } = kr({
19341
+ } = e, j = g || "button", y = typeof j == "string", $ = Jt(f), x = (c = A ?? u?.disableRipple) != null ? c : L, { isFocusVisible: N, isFocused: R, focusProps: V } = kr({
19342
19342
  autoFocus: w
19343
19343
  }), Z = K || C, U = J(
19344
19344
  () => Ym({
@@ -19351,7 +19351,7 @@ function kb(e) {
19351
19351
  isInGroup: p,
19352
19352
  disableAnimation: L,
19353
19353
  isIconOnly: E,
19354
- className: k
19354
+ className: P
19355
19355
  }),
19356
19356
  [
19357
19357
  O,
@@ -19363,7 +19363,7 @@ function kb(e) {
19363
19363
  p,
19364
19364
  E,
19365
19365
  L,
19366
- k
19366
+ P
19367
19367
  ]
19368
19368
  ), { onPress: W, onClear: te, ripples: ce } = qi(), ie = G(
19369
19369
  (Ee) => {
@@ -19392,7 +19392,7 @@ function kb(e) {
19392
19392
  V,
19393
19393
  je,
19394
19394
  tt(I, {
19395
- enabled: v
19395
+ enabled: y
19396
19396
  }),
19397
19397
  tt(Ee)
19398
19398
  ),
@@ -19403,7 +19403,7 @@ function kb(e) {
19403
19403
  Z,
19404
19404
  R,
19405
19405
  Le,
19406
- v,
19406
+ y,
19407
19407
  N,
19408
19408
  $e,
19409
19409
  ue,
@@ -19416,7 +19416,7 @@ function kb(e) {
19416
19416
  // @ts-ignore
19417
19417
  "aria-hidden": !0,
19418
19418
  focusable: !1
19419
- }) : null, ae = De(m), ze = De(y), xe = J(() => ({
19419
+ }) : null, ae = De(m), ze = De(v), xe = J(() => ({
19420
19420
  sm: "sm",
19421
19421
  md: "sm",
19422
19422
  lg: "md"
@@ -19428,7 +19428,7 @@ function kb(e) {
19428
19428
  Component: j,
19429
19429
  children: b,
19430
19430
  domRef: $,
19431
- spinner: P,
19431
+ spinner: k,
19432
19432
  styles: U,
19433
19433
  startContent: ae,
19434
19434
  endContent: ze,
@@ -19567,8 +19567,8 @@ function Eb(e) {
19567
19567
  className: g,
19568
19568
  classNames: b,
19569
19569
  allowTextSelectionOnPress: m = !0,
19570
- ...y
19571
- } = s, w = Jt(i), k = c || (e.isPressable ? "button" : "div"), P = typeof k == "string", C = (r = (t = e.disableAnimation) != null ? t : o?.disableAnimation) != null ? r : !1, A = (a = (n = e.disableRipple) != null ? n : o?.disableRipple) != null ? a : !1, D = me(b?.base, g), { onClear: T, onPress: O, ripples: B } = qi(), F = G(
19570
+ ...v
19571
+ } = s, w = Jt(i), P = c || (e.isPressable ? "button" : "div"), k = typeof P == "string", C = (r = (t = e.disableAnimation) != null ? t : o?.disableAnimation) != null ? r : !1, A = (a = (n = e.disableRipple) != null ? n : o?.disableRipple) != null ? a : !1, D = me(b?.base, g), { onClear: T, onPress: O, ripples: B } = qi(), F = G(
19572
19572
  (N) => {
19573
19573
  A || C || w.current && O(N);
19574
19574
  },
@@ -19580,12 +19580,12 @@ function Eb(e) {
19580
19580
  isDisabled: !e.isPressable,
19581
19581
  onClick: u,
19582
19582
  allowTextSelectionOnPress: m,
19583
- ...y
19583
+ ...v
19584
19584
  },
19585
19585
  w
19586
19586
  ), { hoverProps: E, isHovered: M } = xt({
19587
19587
  isDisabled: !e.isHoverable,
19588
- ...y
19588
+ ...v
19589
19589
  }), { isFocusVisible: z, isFocused: _, focusProps: I } = kr({
19590
19590
  autoFocus: f
19591
19591
  }), j = J(
@@ -19594,7 +19594,7 @@ function Eb(e) {
19594
19594
  disableAnimation: C
19595
19595
  }),
19596
19596
  [yt(l), C]
19597
- ), v = J(
19597
+ ), y = J(
19598
19598
  () => ({
19599
19599
  slots: j,
19600
19600
  classNames: b,
@@ -19624,8 +19624,8 @@ function Eb(e) {
19624
19624
  ...fe(
19625
19625
  e.isPressable ? { ...L, ...I, role: "button" } : {},
19626
19626
  e.isHoverable ? E : {},
19627
- tt(y, {
19628
- enabled: P
19627
+ tt(v, {
19628
+ enabled: k
19629
19629
  }),
19630
19630
  tt(N)
19631
19631
  )
@@ -19634,7 +19634,7 @@ function Eb(e) {
19634
19634
  w,
19635
19635
  j,
19636
19636
  D,
19637
- P,
19637
+ k,
19638
19638
  e.isPressable,
19639
19639
  e.isHoverable,
19640
19640
  e.isDisabled,
@@ -19644,16 +19644,16 @@ function Eb(e) {
19644
19644
  L,
19645
19645
  I,
19646
19646
  E,
19647
- y
19647
+ v
19648
19648
  ]
19649
19649
  ), x = G(
19650
19650
  () => ({ ripples: B, onClear: T }),
19651
19651
  [B, T]
19652
19652
  );
19653
19653
  return {
19654
- context: v,
19654
+ context: y,
19655
19655
  domRef: w,
19656
- Component: k,
19656
+ Component: P,
19657
19657
  classNames: b,
19658
19658
  children: d,
19659
19659
  isHovered: M,
@@ -19784,8 +19784,8 @@ function zb(e, t, r) {
19784
19784
  !l.current && !i.current && t.close(w);
19785
19785
  };
19786
19786
  ee(() => {
19787
- let w = (k) => {
19788
- r && r.current && k.key === "Escape" && (k.stopPropagation(), t.close(!0));
19787
+ let w = (P) => {
19788
+ r && r.current && P.key === "Escape" && (P.stopPropagation(), t.close(!0));
19789
19789
  };
19790
19790
  if (t.isOpen)
19791
19791
  return document.addEventListener("keydown", w, !0), () => {
@@ -19809,7 +19809,7 @@ function zb(e, t, r) {
19809
19809
  isDisabled: n,
19810
19810
  onHoverStart: u,
19811
19811
  onHoverEnd: p
19812
- }), { focusableProps: y } = Ka({
19812
+ }), { focusableProps: v } = Ka({
19813
19813
  isDisabled: n,
19814
19814
  onFocus: g,
19815
19815
  onBlur: b
@@ -19817,7 +19817,7 @@ function zb(e, t, r) {
19817
19817
  return {
19818
19818
  triggerProps: {
19819
19819
  "aria-describedby": t.isOpen ? s : void 0,
19820
- ...Se(y, m, {
19820
+ ...Se(v, m, {
19821
19821
  onPointerDown: f,
19822
19822
  onKeyDown: f
19823
19823
  }),
@@ -19870,10 +19870,10 @@ function Qi(e, t) {
19870
19870
  m.target === m.currentTarget && m.preventDefault();
19871
19871
  };
19872
19872
  function b(m) {
19873
- const y = m.current;
19874
- if (!y) return "unknown";
19875
- const w = (y.getAttribute("role") || "").toLowerCase(), k = y.getAttribute("aria-modal");
19876
- return (w === "dialog" || w === "alertdialog") && (k === null || k.toLowerCase() === "true") ? "pressEnd" : ["listbox", "menu", "tree", "grid", "combobox"].includes(w) ? "pressStart" : "unknown";
19873
+ const v = m.current;
19874
+ if (!v) return "unknown";
19875
+ const w = (v.getAttribute("role") || "").toLowerCase(), P = v.getAttribute("aria-modal");
19876
+ return (w === "dialog" || w === "alertdialog") && (P === null || P.toLowerCase() === "true") ? "pressEnd" : ["listbox", "menu", "tree", "grid", "combobox"].includes(w) ? "pressStart" : "unknown";
19877
19877
  }
19878
19878
  return {
19879
19879
  overlayProps: {
@@ -19899,10 +19899,10 @@ function _b(e) {
19899
19899
  trigger: g,
19900
19900
  shouldFlip: b = !0,
19901
19901
  containerPadding: m = 12,
19902
- placement: y = "top",
19902
+ placement: v = "top",
19903
19903
  delay: w = 0,
19904
- closeDelay: k = 500,
19905
- showArrow: P = !1,
19904
+ closeDelay: P = 500,
19905
+ showArrow: k = !1,
19906
19906
  offset: C = 7,
19907
19907
  crossOffset: A = 0,
19908
19908
  isDismissable: D,
@@ -19916,16 +19916,16 @@ function _b(e) {
19916
19916
  motionProps: M,
19917
19917
  classNames: z,
19918
19918
  ..._
19919
- } = a, I = l || "div", j = (r = (t = e?.disableAnimation) != null ? t : n?.disableAnimation) != null ? r : !1, v = Nb({
19919
+ } = a, I = l || "div", j = (r = (t = e?.disableAnimation) != null ? t : n?.disableAnimation) != null ? r : !1, y = Nb({
19920
19920
  delay: w,
19921
- closeDelay: k,
19921
+ closeDelay: P,
19922
19922
  isDisabled: f,
19923
19923
  defaultOpen: u,
19924
19924
  isOpen: i,
19925
19925
  onOpenChange: (ve) => {
19926
19926
  p?.(ve), ve || E?.();
19927
19927
  }
19928
- }), $ = H(null), x = H(null), N = Ld(), R = v.isOpen && !f;
19928
+ }), $ = H(null), x = H(null), N = Ld(), R = y.isOpen && !f;
19929
19929
  vr(
19930
19930
  s,
19931
19931
  () => (
@@ -19938,14 +19938,14 @@ function _b(e) {
19938
19938
  isDisabled: f,
19939
19939
  trigger: g
19940
19940
  },
19941
- v,
19941
+ y,
19942
19942
  $
19943
19943
  ), { tooltipProps: U } = Db(
19944
19944
  {
19945
19945
  isOpen: R,
19946
19946
  ...fe(a, Z)
19947
19947
  },
19948
- v
19948
+ y
19949
19949
  ), {
19950
19950
  overlayProps: W,
19951
19951
  placement: te,
@@ -19953,9 +19953,9 @@ function _b(e) {
19953
19953
  } = pl({
19954
19954
  isOpen: R,
19955
19955
  targetRef: $,
19956
- placement: Vi(y),
19956
+ placement: Vi(v),
19957
19957
  overlayRef: x,
19958
- offset: P ? C + 3 : C,
19958
+ offset: k ? C + 3 : C,
19959
19959
  crossOffset: A,
19960
19960
  shouldFlip: b,
19961
19961
  containerPadding: m
@@ -19966,7 +19966,7 @@ function _b(e) {
19966
19966
  const { overlayProps: ie } = Qi(
19967
19967
  {
19968
19968
  isOpen: R,
19969
- onClose: v.close,
19969
+ onClose: y.close,
19970
19970
  isDismissable: D,
19971
19971
  shouldCloseOnBlur: T,
19972
19972
  isKeyboardDismissDisabled: B,
@@ -19997,15 +19997,15 @@ function _b(e) {
19997
19997
  ref: Xs(De, $),
19998
19998
  "aria-describedby": R ? N : void 0
19999
19999
  }),
20000
- [V, R, N, v]
20000
+ [V, R, N, y]
20001
20001
  ), $e = G(
20002
20002
  () => ({
20003
20003
  ref: x,
20004
20004
  "data-slot": "base",
20005
20005
  "data-open": oe(R),
20006
- "data-arrow": oe(P),
20006
+ "data-arrow": oe(k),
20007
20007
  "data-disabled": oe(f),
20008
- "data-placement": fn(te || "top", y),
20008
+ "data-placement": fn(te || "top", v),
20009
20009
  ...fe(U, ie, _),
20010
20010
  style: fe(W.style, _.style, a.style),
20011
20011
  className: ue.base({ class: z?.base }),
@@ -20014,10 +20014,10 @@ function _b(e) {
20014
20014
  [
20015
20015
  ue,
20016
20016
  R,
20017
- P,
20017
+ k,
20018
20018
  f,
20019
20019
  te,
20020
- y,
20020
+ v,
20021
20021
  U,
20022
20022
  ie,
20023
20023
  _,
@@ -20029,12 +20029,12 @@ function _b(e) {
20029
20029
  () => ({
20030
20030
  "data-slot": "content",
20031
20031
  "data-open": oe(R),
20032
- "data-arrow": oe(P),
20032
+ "data-arrow": oe(k),
20033
20033
  "data-disabled": oe(f),
20034
- "data-placement": fn(te || "top", y),
20034
+ "data-placement": fn(te || "top", v),
20035
20035
  className: ue.content({ class: me(z?.content, K) })
20036
20036
  }),
20037
- [ue, R, P, f, te, y, z]
20037
+ [ue, R, k, f, te, v, z]
20038
20038
  );
20039
20039
  return {
20040
20040
  Component: I,
@@ -20042,9 +20042,9 @@ function _b(e) {
20042
20042
  children: d,
20043
20043
  isOpen: R,
20044
20044
  triggerRef: $,
20045
- showArrow: P,
20045
+ showArrow: k,
20046
20046
  portalContainer: O,
20047
- placement: y,
20047
+ placement: v,
20048
20048
  disableAnimation: j,
20049
20049
  isDisabled: f,
20050
20050
  motionProps: M,
@@ -20083,7 +20083,7 @@ var Rb = () => import("./index-SfZMAM5z.js").then((e) => e.default), ec = Ye((e,
20083
20083
  } catch {
20084
20084
  g = /* @__PURE__ */ h.jsx("span", {}), bf("Tooltip must have only one child node. Please, check your code.");
20085
20085
  }
20086
- const { ref: b, id: m, style: y, ...w } = p(), k = /* @__PURE__ */ h.jsx("div", { ref: b, id: m, style: y, children: /* @__PURE__ */ h.jsx(
20086
+ const { ref: b, id: m, style: v, ...w } = p(), P = /* @__PURE__ */ h.jsx("div", { ref: b, id: m, style: v, children: /* @__PURE__ */ h.jsx(
20087
20087
  Qr.div,
20088
20088
  {
20089
20089
  animate: "enter",
@@ -20100,7 +20100,7 @@ var Rb = () => import("./index-SfZMAM5z.js").then((e) => e.default), ec = Ye((e,
20100
20100
  ) }, `${m}-tooltip-content`);
20101
20101
  return /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
20102
20102
  g,
20103
- c ? s && /* @__PURE__ */ h.jsx(Xo, { portalContainer: l, children: /* @__PURE__ */ h.jsx("div", { ref: b, id: m, style: y, ...w, children: /* @__PURE__ */ h.jsx(n, { ...f(), children: o }) }) }) : /* @__PURE__ */ h.jsx(Zr, { features: Rb, children: /* @__PURE__ */ h.jsx(Ta, { children: s && /* @__PURE__ */ h.jsx(Xo, { portalContainer: l, children: k }) }) })
20103
+ c ? s && /* @__PURE__ */ h.jsx(Xo, { portalContainer: l, children: /* @__PURE__ */ h.jsx("div", { ref: b, id: m, style: v, ...w, children: /* @__PURE__ */ h.jsx(n, { ...f(), children: o }) }) }) : /* @__PURE__ */ h.jsx(Zr, { features: Rb, children: /* @__PURE__ */ h.jsx(Ta, { children: s && /* @__PURE__ */ h.jsx(Xo, { portalContainer: l, children: P }) }) })
20104
20104
  ] });
20105
20105
  });
20106
20106
  ec.displayName = "HeroUI.Tooltip";
@@ -20122,11 +20122,11 @@ function Ob(e, t) {
20122
20122
  placement: g = "top",
20123
20123
  containerPadding: b,
20124
20124
  shouldCloseOnInteractOutside: m,
20125
- isNonModal: y,
20125
+ isNonModal: v,
20126
20126
  isKeyboardDismissDisabled: w,
20127
- updatePositionDeps: k = [],
20128
- ...P
20129
- } = e, C = y ?? !0, A = P.trigger === "SubmenuTrigger", { overlayProps: D, underlayProps: T } = Qi(
20127
+ updatePositionDeps: P = [],
20128
+ ...k
20129
+ } = e, C = v ?? !0, A = k.trigger === "SubmenuTrigger", { overlayProps: D, underlayProps: T } = Qi(
20130
20130
  {
20131
20131
  isOpen: t.isOpen,
20132
20132
  onClose: t.close,
@@ -20147,7 +20147,7 @@ function Ob(e, t) {
20147
20147
  updatePosition: L,
20148
20148
  triggerAnchorPoint: K
20149
20149
  } = pl({
20150
- ...P,
20150
+ ...k,
20151
20151
  shouldFlip: c,
20152
20152
  crossOffset: l,
20153
20153
  targetRef: n,
@@ -20162,8 +20162,8 @@ function Ob(e, t) {
20162
20162
  }
20163
20163
  });
20164
20164
  return Ui(() => {
20165
- k.length && L();
20166
- }, k), ee(() => {
20165
+ P.length && L();
20166
+ }, P), ee(() => {
20167
20167
  var E, M;
20168
20168
  if (t.isOpen && a.current)
20169
20169
  return C ? xb((E = r?.current) != null ? E : a.current) : yb([(M = r?.current) != null ? M : a.current]);
@@ -20189,10 +20189,10 @@ function jb(e) {
20189
20189
  onOpenChange: g,
20190
20190
  isOpen: b,
20191
20191
  isNonModal: m = !0,
20192
- shouldFlip: y = !0,
20192
+ shouldFlip: v = !0,
20193
20193
  containerPadding: w = 12,
20194
- shouldBlockScroll: k = !1,
20195
- isDismissable: P = !0,
20194
+ shouldBlockScroll: P = !1,
20195
+ isDismissable: k = !0,
20196
20196
  shouldCloseOnBlur: C,
20197
20197
  portalContainer: A,
20198
20198
  updatePositionDeps: D,
@@ -20208,7 +20208,7 @@ function jb(e) {
20208
20208
  shouldCloseOnScroll: _,
20209
20209
  triggerAnchorPoint: I,
20210
20210
  motionProps: j,
20211
- className: v,
20211
+ className: y,
20212
20212
  classNames: $,
20213
20213
  onClose: x,
20214
20214
  ...N
@@ -20230,11 +20230,11 @@ function jb(e) {
20230
20230
  placement: O,
20231
20231
  offset: L,
20232
20232
  scrollRef: p,
20233
- isDismissable: P,
20233
+ isDismissable: k,
20234
20234
  shouldCloseOnBlur: C,
20235
20235
  boundaryElement: E,
20236
20236
  crossOffset: K,
20237
- shouldFlip: y,
20237
+ shouldFlip: v,
20238
20238
  containerPadding: w,
20239
20239
  updatePositionDeps: D,
20240
20240
  isKeyboardDismissDisabled: M,
@@ -20248,11 +20248,11 @@ function jb(e) {
20248
20248
  ...s
20249
20249
  }),
20250
20250
  [yt(s)]
20251
- ), ye = me($?.base, v), Ee = {
20251
+ ), ye = me($?.base, y), Ee = {
20252
20252
  "--trigger-anchor-point": I ? `${I.x}px ${I.y}px` : void 0
20253
20253
  };
20254
20254
  kg({
20255
- isDisabled: !(k && ie.isOpen)
20255
+ isDisabled: !(P && ie.isOpen)
20256
20256
  });
20257
20257
  const Sr = (Ae = {}) => ({
20258
20258
  ref: V,
@@ -20342,7 +20342,7 @@ function jb(e) {
20342
20342
  isOpen: ie.isOpen,
20343
20343
  onClose: ie.close,
20344
20344
  disableAnimation: te,
20345
- shouldBlockScroll: k,
20345
+ shouldBlockScroll: P,
20346
20346
  backdrop: (n = e.backdrop) != null ? n : "transparent",
20347
20347
  motionProps: j,
20348
20348
  getBackdropProps: _d,
@@ -20404,13 +20404,13 @@ var [Fb, tc] = yr({
20404
20404
  getContentProps: f,
20405
20405
  isNonModal: g,
20406
20406
  onClose: b
20407
- } = tc(), m = H(null), { dialogProps: y, titleProps: w } = Bb({}, m), k = u({
20407
+ } = tc(), m = H(null), { dialogProps: v, titleProps: w } = Bb({}, m), P = u({
20408
20408
  ref: m,
20409
- ...y,
20409
+ ...v,
20410
20410
  ...a
20411
- }), P = t || o || "div", C = r && /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
20411
+ }), k = t || o || "div", C = r && /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
20412
20412
  !g && /* @__PURE__ */ h.jsx(Zo, { onDismiss: b }),
20413
- /* @__PURE__ */ h.jsx(P, { ...k, children: /* @__PURE__ */ h.jsx("div", { ...f({ className: n }), children: typeof r == "function" ? r(w) : r }) }),
20413
+ /* @__PURE__ */ h.jsx(k, { ...P, children: /* @__PURE__ */ h.jsx("div", { ...f({ className: n }), children: typeof r == "function" ? r(w) : r }) }),
20414
20414
  /* @__PURE__ */ h.jsx(Zo, { onDismiss: b })
20415
20415
  ] }), A = J(() => l === "transparent" ? null : c ? /* @__PURE__ */ h.jsx("div", { ...p() }) : /* @__PURE__ */ h.jsx(Zr, { features: vs, children: /* @__PURE__ */ h.jsx(
20416
20416
  Qr.div,
@@ -20752,7 +20752,7 @@ function Gb(e, t, r) {
20752
20752
  };
20753
20753
  }
20754
20754
  function Yb(e, t, r) {
20755
- let { id: n, key: a, closeOnSelect: o, shouldCloseOnSelect: s, isVirtualized: l, "aria-haspopup": i, onPressStart: c, onPressUp: d, onPress: u, onPressChange: p, onPressEnd: f, onClick: g, onHoverStart: b, onHoverChange: m, onHoverEnd: y, onKeyDown: w, onKeyUp: k, onFocus: P, onFocusChange: C, onBlur: A, selectionManager: D = t.selectionManager } = e, T = !!i, O = T && e["aria-expanded"] === "true";
20755
+ let { id: n, key: a, closeOnSelect: o, shouldCloseOnSelect: s, isVirtualized: l, "aria-haspopup": i, onPressStart: c, onPressUp: d, onPress: u, onPressChange: p, onPressEnd: f, onClick: g, onHoverStart: b, onHoverChange: m, onHoverEnd: v, onKeyDown: w, onKeyUp: P, onFocus: k, onFocusChange: C, onBlur: A, selectionManager: D = t.selectionManager } = e, T = !!i, O = T && e["aria-expanded"] === "true";
20756
20756
  var B;
20757
20757
  let F = (B = e.isDisabled) !== null && B !== void 0 ? B : D.isDisabled(a);
20758
20758
  var L;
@@ -20764,12 +20764,12 @@ function Yb(e, t, r) {
20764
20764
  }
20765
20765
  }, j = "menuitem";
20766
20766
  T || (D.selectionMode === "single" ? j = "menuitemradio" : D.selectionMode === "multiple" && (j = "menuitemcheckbox"));
20767
- let v = Ut(), $ = Ut(), x = Ut(), N = {
20767
+ let y = Ut(), $ = Ut(), x = Ut(), N = {
20768
20768
  id: n,
20769
20769
  "aria-disabled": F || void 0,
20770
20770
  role: j,
20771
20771
  "aria-label": e["aria-label"],
20772
- "aria-labelledby": v,
20772
+ "aria-labelledby": y,
20773
20773
  "aria-describedby": [
20774
20774
  e["aria-describedby"],
20775
20775
  $,
@@ -20821,7 +20821,7 @@ function Yb(e, t, r) {
20821
20821
  !dt() && !(O && i) && (D.setFocused(!0), D.setFocusedKey(a)), b?.(ae);
20822
20822
  },
20823
20823
  onHoverChange: m,
20824
- onHoverEnd: y
20824
+ onHoverEnd: v
20825
20825
  }), { keyboardProps: $e } = kl({
20826
20826
  onKeyDown: (ae) => {
20827
20827
  if (ae.repeat) {
@@ -20846,10 +20846,10 @@ function Yb(e, t, r) {
20846
20846
  break;
20847
20847
  }
20848
20848
  },
20849
- onKeyUp: k
20849
+ onKeyUp: P
20850
20850
  }), { focusableProps: je } = Ka({
20851
20851
  onBlur: A,
20852
- onFocus: P,
20852
+ onFocus: k,
20853
20853
  onFocusChange: C
20854
20854
  }, r), ve = Dt(M?.props);
20855
20855
  delete ve.id;
@@ -20881,7 +20881,7 @@ function Yb(e, t, r) {
20881
20881
  tabIndex: te.tabIndex != null && O && !E.shouldUseVirtualFocus ? -1 : te.tabIndex
20882
20882
  },
20883
20883
  labelProps: {
20884
- id: v
20884
+ id: y
20885
20885
  },
20886
20886
  descriptionProps: {
20887
20887
  id: $
@@ -20934,10 +20934,10 @@ function Jb(e) {
20934
20934
  selectedIcon: g,
20935
20935
  className: b,
20936
20936
  classNames: m,
20937
- onAction: y,
20937
+ onAction: v,
20938
20938
  autoFocus: w,
20939
- onPress: k,
20940
- onPressStart: P,
20939
+ onPress: P,
20940
+ onPressStart: k,
20941
20941
  onPressUp: C,
20942
20942
  onPressEnd: A,
20943
20943
  onPressChange: D,
@@ -20950,13 +20950,13 @@ function Jb(e) {
20950
20950
  onClose: E,
20951
20951
  onClick: M,
20952
20952
  ...z
20953
- } = a, _ = (r = (t = e.disableAnimation) != null ? t : n?.disableAnimation) != null ? r : !1, I = H(null), j = s || (z?.href ? "a" : "li"), v = typeof j == "string", { rendered: $, key: x } = l, N = i.disabledKeys.has(x) || e.isDisabled, R = i.selectionManager.selectionMode !== "none", V = Kc(), { isFocusVisible: Z, focusProps: U } = kr({
20953
+ } = a, _ = (r = (t = e.disableAnimation) != null ? t : n?.disableAnimation) != null ? r : !1, I = H(null), j = s || (z?.href ? "a" : "li"), y = typeof j == "string", { rendered: $, key: x } = l, N = i.disabledKeys.has(x) || e.isDisabled, R = i.selectionManager.selectionMode !== "none", V = Kc(), { isFocusVisible: Z, focusProps: U } = kr({
20954
20954
  autoFocus: w
20955
20955
  }), W = G(
20956
20956
  (Me) => {
20957
- M?.(Me), k?.(Me);
20957
+ M?.(Me), P?.(Me);
20958
20958
  },
20959
- [M, k]
20959
+ [M, P]
20960
20960
  ), {
20961
20961
  isPressed: te,
20962
20962
  isFocused: ce,
@@ -20972,14 +20972,14 @@ function Jb(e) {
20972
20972
  onClose: E,
20973
20973
  isDisabled: N,
20974
20974
  onPress: W,
20975
- onPressStart: P,
20975
+ onPressStart: k,
20976
20976
  onPressUp: C,
20977
20977
  onPressEnd: A,
20978
20978
  onPressChange: D,
20979
20979
  "aria-label": a["aria-label"],
20980
20980
  closeOnSelect: K,
20981
20981
  isVirtualized: f,
20982
- onAction: y
20982
+ onAction: v
20983
20983
  },
20984
20984
  i,
20985
20985
  I
@@ -21008,7 +21008,7 @@ function Jb(e) {
21008
21008
  ...fe(
21009
21009
  L ? {} : U,
21010
21010
  tt(z, {
21011
- enabled: v
21011
+ enabled: y
21012
21012
  }),
21013
21013
  ze,
21014
21014
  De,
@@ -21081,10 +21081,10 @@ var Wc = (e) => {
21081
21081
  hideSelectedIcon: g,
21082
21082
  getItemProps: b,
21083
21083
  getLabelProps: m,
21084
- getDescriptionProps: y,
21084
+ getDescriptionProps: v,
21085
21085
  getKeyboardShortcutProps: w,
21086
- getSelectedIconProps: k
21087
- } = Jb(e), P = J(() => {
21086
+ getSelectedIconProps: P
21087
+ } = Jb(e), k = J(() => {
21088
21088
  const C = /* @__PURE__ */ h.jsx(Hb, { disableAnimation: f, isSelected: i });
21089
21089
  return typeof d == "function" ? d({ icon: C, isSelected: i, isDisabled: c }) : d || C;
21090
21090
  }, [d, i, c, f]);
@@ -21092,10 +21092,10 @@ var Wc = (e) => {
21092
21092
  u,
21093
21093
  s ? /* @__PURE__ */ h.jsxs("div", { className: r.wrapper({ class: n?.wrapper }), children: [
21094
21094
  /* @__PURE__ */ h.jsx("span", { ...m(), children: a }),
21095
- /* @__PURE__ */ h.jsx("span", { ...y(), children: s })
21095
+ /* @__PURE__ */ h.jsx("span", { ...v(), children: s })
21096
21096
  ] }) : /* @__PURE__ */ h.jsx("span", { ...m(), children: a }),
21097
21097
  o && /* @__PURE__ */ h.jsx("kbd", { ...w(), children: o }),
21098
- l && !g && /* @__PURE__ */ h.jsx("span", { ...k(), children: P }),
21098
+ l && !g && /* @__PURE__ */ h.jsx("span", { ...P(), children: k }),
21099
21099
  p
21100
21100
  ] });
21101
21101
  };
@@ -21122,16 +21122,16 @@ var Hc = Wc, Vc = Ye(
21122
21122
  title: g,
21123
21123
  ...b
21124
21124
  }, m) => {
21125
- const y = r || "li", w = J(() => Ii(), []), k = me(c?.base, i), P = me(c?.divider, p?.className), { itemProps: C, headingProps: A, groupProps: D } = qb({
21125
+ const v = r || "li", w = J(() => Ii(), []), P = me(c?.base, i), k = me(c?.divider, p?.className), { itemProps: C, headingProps: A, groupProps: D } = qb({
21126
21126
  heading: e.rendered,
21127
21127
  "aria-label": e["aria-label"]
21128
21128
  });
21129
21129
  return /* @__PURE__ */ h.jsxs(
21130
- y,
21130
+ v,
21131
21131
  {
21132
21132
  "data-slot": "base",
21133
21133
  ...fe(C, b),
21134
- className: w.base({ class: k }),
21134
+ className: w.base({ class: P }),
21135
21135
  children: [
21136
21136
  e.rendered && /* @__PURE__ */ h.jsx(
21137
21137
  "span",
@@ -21175,7 +21175,7 @@ var Hc = Wc, Vc = Ye(
21175
21175
  {
21176
21176
  as: "li",
21177
21177
  className: w.divider({
21178
- class: P
21178
+ class: k
21179
21179
  }),
21180
21180
  ...p
21181
21181
  }
@@ -21207,20 +21207,20 @@ function Qb(e) {
21207
21207
  topContent: g,
21208
21208
  bottomContent: b,
21209
21209
  hideEmptyContent: m = !1,
21210
- hideSelectedIcon: y = !1,
21210
+ hideSelectedIcon: v = !1,
21211
21211
  emptyContent: w = "No items.",
21212
- menuProps: k,
21213
- onClose: P,
21212
+ menuProps: P,
21213
+ onClose: k,
21214
21214
  classNames: C,
21215
21215
  ...A
21216
- } = e, D = n || "ul", T = Jt(a), O = typeof D == "string", B = gb({ ...A, ...k, children: l }), F = f || B, { menuProps: L } = Gb({ ...A, ...k, onAction: c }, F, T), K = J(() => Ai({ className: p }), [p]), E = me(C?.base, p);
21216
+ } = e, D = n || "ul", T = Jt(a), O = typeof D == "string", B = gb({ ...A, ...P, children: l }), F = f || B, { menuProps: L } = Gb({ ...A, ...P, onAction: c }, F, T), K = J(() => Ai({ className: p }), [p]), E = me(C?.base, p);
21217
21217
  return {
21218
21218
  Component: D,
21219
21219
  state: F,
21220
21220
  variant: o,
21221
21221
  color: s,
21222
21222
  disableAnimation: i,
21223
- onClose: P,
21223
+ onClose: k,
21224
21224
  topContent: g,
21225
21225
  bottomContent: b,
21226
21226
  closeOnSelect: d,
@@ -21242,7 +21242,7 @@ function Qb(e) {
21242
21242
  ...I
21243
21243
  }),
21244
21244
  hideEmptyContent: m,
21245
- hideSelectedIcon: y,
21245
+ hideSelectedIcon: v,
21246
21246
  getEmptyContentProps: (I = {}) => ({
21247
21247
  children: w,
21248
21248
  className: K.emptyContent({ class: C?.emptyContent }),
@@ -21266,25 +21266,25 @@ var eh = Ye(function(t, r) {
21266
21266
  itemClasses: g,
21267
21267
  getBaseProps: b,
21268
21268
  getListProps: m,
21269
- getEmptyContentProps: y
21269
+ getEmptyContentProps: v
21270
21270
  } = Qb({ ...t, ref: r }), w = /* @__PURE__ */ h.jsxs(n, { ...m(), children: [
21271
- !a.collection.size && !c && /* @__PURE__ */ h.jsx("li", { children: /* @__PURE__ */ h.jsx("div", { ...y() }) }),
21272
- [...a.collection].map((k) => {
21273
- const P = {
21271
+ !a.collection.size && !c && /* @__PURE__ */ h.jsx("li", { children: /* @__PURE__ */ h.jsx("div", { ...v() }) }),
21272
+ [...a.collection].map((P) => {
21273
+ const k = {
21274
21274
  closeOnSelect: o,
21275
21275
  color: s,
21276
21276
  disableAnimation: l,
21277
- item: k,
21277
+ item: P,
21278
21278
  state: a,
21279
21279
  variant: d,
21280
21280
  onClose: u,
21281
21281
  hideSelectedIcon: i,
21282
- ...k.props
21283
- }, C = Xm(g, P?.classNames);
21284
- if (k.type === "section")
21285
- return /* @__PURE__ */ h.jsx(Zb, { ...P, itemClasses: C }, k.key);
21286
- let A = /* @__PURE__ */ h.jsx(Hc, { ...P, classNames: C }, k.key);
21287
- return k.wrapper && (A = k.wrapper(A)), A;
21282
+ ...P.props
21283
+ }, C = Xm(g, k?.classNames);
21284
+ if (P.type === "section")
21285
+ return /* @__PURE__ */ h.jsx(Zb, { ...k, itemClasses: C }, P.key);
21286
+ let A = /* @__PURE__ */ h.jsx(Hc, { ...k, classNames: C }, P.key);
21287
+ return P.wrapper && (A = P.wrapper(A)), A;
21288
21288
  })
21289
21289
  ] });
21290
21290
  return /* @__PURE__ */ h.jsxs("div", { ...b(), children: [
@@ -21360,9 +21360,9 @@ function ch(e) {
21360
21360
  classNames: g,
21361
21361
  disableAnimation: b = (t = r?.disableAnimation) != null ? t : !1,
21362
21362
  onClose: m,
21363
- className: y,
21363
+ className: v,
21364
21364
  ...w
21365
- } = e, k = n || "div", P = H(null), C = a || P, A = H(null), D = H(null), T = sh({
21365
+ } = e, P = n || "div", k = H(null), C = a || k, A = H(null), D = H(null), T = sh({
21366
21366
  trigger: d,
21367
21367
  isOpen: o,
21368
21368
  defaultOpen: s,
@@ -21375,9 +21375,9 @@ function ch(e) {
21375
21375
  C
21376
21376
  ), F = J(
21377
21377
  () => qm({
21378
- className: y
21378
+ className: v
21379
21379
  }),
21380
- [y]
21380
+ [v]
21381
21381
  ), L = (z) => {
21382
21382
  z !== void 0 && !z || p && T.close();
21383
21383
  }, K = (z = {}) => {
@@ -21406,14 +21406,14 @@ function ch(e) {
21406
21406
  closeOnSelect: p,
21407
21407
  ...fe(z, {
21408
21408
  onAction: (I, j) => {
21409
- const v = ih(z, I, j);
21410
- L(v);
21409
+ const y = ih(z, I, j);
21410
+ L(y);
21411
21411
  },
21412
21412
  onClose: T.close
21413
21413
  })
21414
21414
  });
21415
21415
  return {
21416
- Component: k,
21416
+ Component: P,
21417
21417
  menuRef: A,
21418
21418
  menuProps: B,
21419
21419
  closeOnSelect: p,
@@ -21446,10 +21446,10 @@ function Bt(e, t, r) {
21446
21446
  n = d;
21447
21447
  let p;
21448
21448
  if (r.key && ((s = r.debug) != null && s.call(r)) && (p = Date.now()), a = t(...d), r.key && ((l = r.debug) != null && l.call(r))) {
21449
- const f = Math.round((Date.now() - c) * 100) / 100, g = Math.round((Date.now() - p) * 100) / 100, b = g / 16, m = (y, w) => {
21450
- for (y = String(y); y.length < w; )
21451
- y = " " + y;
21452
- return y;
21449
+ const f = Math.round((Date.now() - c) * 100) / 100, g = Math.round((Date.now() - p) * 100) / 100, b = g / 16, m = (v, w) => {
21450
+ for (v = String(v); v.length < w; )
21451
+ v = " " + v;
21452
+ return v;
21453
21453
  };
21454
21454
  console.info(
21455
21455
  `%c⏱ ${m(g, 5)} /${m(f, 5)} ms`,
@@ -21698,14 +21698,14 @@ class xh {
21698
21698
  this.pendingMeasuredCacheIndexes = [];
21699
21699
  const c = this.measurementsCache.slice(0, i);
21700
21700
  for (let d = i; d < r; d++) {
21701
- const u = o(d), p = this.options.lanes === 1 ? c[d - 1] : this.getFurthestMeasurement(c, d), f = p ? p.end + this.options.gap : n + a, g = l.get(u), b = typeof g == "number" ? g : this.options.estimateSize(d), m = f + b, y = p ? p.lane : d % this.options.lanes;
21701
+ const u = o(d), p = this.options.lanes === 1 ? c[d - 1] : this.getFurthestMeasurement(c, d), f = p ? p.end + this.options.gap : n + a, g = l.get(u), b = typeof g == "number" ? g : this.options.estimateSize(d), m = f + b, v = p ? p.lane : d % this.options.lanes;
21702
21702
  c[d] = {
21703
21703
  index: d,
21704
21704
  start: f,
21705
21705
  size: b,
21706
21706
  end: m,
21707
21707
  key: u,
21708
- lane: y
21708
+ lane: v
21709
21709
  };
21710
21710
  }
21711
21711
  return this.measurementsCache = c, c;
@@ -22097,15 +22097,15 @@ function Th(e, t) {
22097
22097
  if (t.focusedKey != null && !e.getItem(t.focusedKey) && r.current) {
22098
22098
  const d = r.current.getItem(t.focusedKey), u = [
22099
22099
  ...r.current.getKeys()
22100
- ].map((y) => {
22101
- const w = r.current.getItem(y);
22100
+ ].map((v) => {
22101
+ const w = r.current.getItem(v);
22102
22102
  return w?.type === "item" ? w : null;
22103
- }).filter((y) => y !== null), p = [
22103
+ }).filter((v) => v !== null), p = [
22104
22104
  ...e.getKeys()
22105
- ].map((y) => {
22106
- const w = e.getItem(y);
22105
+ ].map((v) => {
22106
+ const w = e.getItem(v);
22107
22107
  return w?.type === "item" ? w : null;
22108
- }).filter((y) => y !== null);
22108
+ }).filter((v) => v !== null);
22109
22109
  var n, a;
22110
22110
  const f = ((n = u?.length) !== null && n !== void 0 ? n : 0) - ((a = p?.length) !== null && a !== void 0 ? a : 0);
22111
22111
  var o, s, l;
@@ -22198,13 +22198,13 @@ function _h(e, t, r) {
22198
22198
  let g = (f = e.shouldFocusOnHover) !== null && f !== void 0 ? f : s?.shouldFocusOnHover;
22199
22199
  var b;
22200
22200
  let m = (b = e.shouldUseVirtualFocus) !== null && b !== void 0 ? b : s?.shouldUseVirtualFocus;
22201
- var y;
22202
- let w = (y = e.isVirtualized) !== null && y !== void 0 ? y : s?.isVirtualized, k = Ut(), P = Ut(), C = {
22201
+ var v;
22202
+ let w = (v = e.isVirtualized) !== null && v !== void 0 ? v : s?.isVirtualized, P = Ut(), k = Ut(), C = {
22203
22203
  role: "option",
22204
22204
  "aria-disabled": i || void 0,
22205
22205
  "aria-selected": t.selectionManager.selectionMode !== "none" ? d : void 0
22206
22206
  };
22207
- vt() && Da() || (C["aria-label"] = e["aria-label"], C["aria-labelledby"] = k, C["aria-describedby"] = P);
22207
+ vt() && Da() || (C["aria-label"] = e["aria-label"], C["aria-labelledby"] = P, C["aria-describedby"] = k);
22208
22208
  let A = t.collection.getItem(o);
22209
22209
  if (w) {
22210
22210
  let _ = Number(A?.index);
@@ -22242,10 +22242,10 @@ function _h(e, t, r) {
22242
22242
  id: T
22243
22243
  },
22244
22244
  labelProps: {
22245
- id: k
22245
+ id: P
22246
22246
  },
22247
22247
  descriptionProps: {
22248
- id: P
22248
+ id: k
22249
22249
  },
22250
22250
  isFocused: F,
22251
22251
  isFocusVisible: F && t.selectionManager.isFocused && dt(),
@@ -22296,25 +22296,25 @@ function Oh(e) {
22296
22296
  topContent: g,
22297
22297
  bottomContent: b,
22298
22298
  emptyContent: m = "No items.",
22299
- hideSelectedIcon: y = !1,
22299
+ hideSelectedIcon: v = !1,
22300
22300
  hideEmptyContent: w = !1,
22301
- shouldHighlightOnFocus: k = !1,
22302
- classNames: P,
22301
+ shouldHighlightOnFocus: P = !1,
22302
+ classNames: k,
22303
22303
  ...C
22304
- } = e, A = a || "ul", D = typeof A == "string", T = Jt(n), O = Eh({ ...e, children: c, onSelectionChange: d }), B = o || O, { listBoxProps: F } = zh({ ...e, onAction: i }, B, T), L = J(() => Ai(), []), K = me(P?.base, f);
22304
+ } = e, A = a || "ul", D = typeof A == "string", T = Jt(n), O = Eh({ ...e, children: c, onSelectionChange: d }), B = o || O, { listBoxProps: F } = zh({ ...e, onAction: i }, B, T), L = J(() => Ai(), []), K = me(k?.base, f);
22305
22305
  return {
22306
22306
  Component: A,
22307
22307
  state: B,
22308
22308
  variant: s,
22309
22309
  color: l,
22310
22310
  slots: L,
22311
- classNames: P,
22311
+ classNames: k,
22312
22312
  topContent: g,
22313
22313
  bottomContent: b,
22314
22314
  emptyContent: m,
22315
22315
  hideEmptyContent: w,
22316
- shouldHighlightOnFocus: k,
22317
- hideSelectedIcon: y,
22316
+ shouldHighlightOnFocus: P,
22317
+ hideSelectedIcon: v,
22318
22318
  disableAnimation: u,
22319
22319
  className: f,
22320
22320
  itemClasses: p,
@@ -22329,14 +22329,14 @@ function Oh(e) {
22329
22329
  }),
22330
22330
  getListProps: (_ = {}) => ({
22331
22331
  "data-slot": "list",
22332
- className: L.list({ class: P?.list }),
22332
+ className: L.list({ class: k?.list }),
22333
22333
  ...F,
22334
22334
  ..._
22335
22335
  }),
22336
22336
  getEmptyContentProps: (_ = {}) => ({
22337
22337
  "data-slot": "empty-content",
22338
22338
  children: m,
22339
- className: L.emptyContent({ class: P?.emptyContent }),
22339
+ className: L.emptyContent({ class: k?.emptyContent }),
22340
22340
  ..._
22341
22341
  })
22342
22342
  };
@@ -22384,24 +22384,24 @@ function jh(e) {
22384
22384
  className: g,
22385
22385
  classNames: b,
22386
22386
  autoFocus: m,
22387
- onPress: y,
22387
+ onPress: v,
22388
22388
  onPressUp: w,
22389
- onPressStart: k,
22390
- onPressEnd: P,
22389
+ onPressStart: P,
22390
+ onPressEnd: k,
22391
22391
  onPressChange: C,
22392
22392
  onClick: A,
22393
22393
  shouldHighlightOnFocus: D,
22394
22394
  hideSelectedIcon: T = !1,
22395
22395
  isReadOnly: O = !1,
22396
22396
  ...B
22397
- } = a, F = (r = (t = e.disableAnimation) != null ? t : n?.disableAnimation) != null ? r : !1, L = H(null), K = s || (e.href ? "a" : "li"), E = typeof K == "string", { rendered: M, key: z } = l, _ = i.disabledKeys.has(z) || e.isDisabled, I = i.selectionManager.selectionMode !== "none", j = Kc(), { pressProps: v, isPressed: $ } = $r({
22397
+ } = a, F = (r = (t = e.disableAnimation) != null ? t : n?.disableAnimation) != null ? r : !1, L = H(null), K = s || (e.href ? "a" : "li"), E = typeof K == "string", { rendered: M, key: z } = l, _ = i.disabledKeys.has(z) || e.isDisabled, I = i.selectionManager.selectionMode !== "none", j = Kc(), { pressProps: y, isPressed: $ } = $r({
22398
22398
  ref: L,
22399
22399
  isDisabled: _,
22400
22400
  onClick: A,
22401
- onPress: y,
22401
+ onPress: v,
22402
22402
  onPressUp: w,
22403
- onPressStart: k,
22404
- onPressEnd: P,
22403
+ onPressStart: P,
22404
+ onPressEnd: k,
22405
22405
  onPressChange: C
22406
22406
  }), { isHovered: x, hoverProps: N } = xt({
22407
22407
  isDisabled: _
@@ -22437,7 +22437,7 @@ function jh(e) {
22437
22437
  onFocusCapture: je,
22438
22438
  ...fe(
22439
22439
  ie,
22440
- O ? {} : fe(V, v),
22440
+ O ? {} : fe(V, y),
22441
22441
  N,
22442
22442
  tt(B, {
22443
22443
  enabled: E
@@ -22511,7 +22511,7 @@ var Jc = (e) => {
22511
22511
  getWrapperProps: g,
22512
22512
  getDescriptionProps: b,
22513
22513
  getSelectedIconProps: m
22514
- } = jh(e), y = J(() => {
22514
+ } = jh(e), v = J(() => {
22515
22515
  const w = /* @__PURE__ */ h.jsx(Lh, { disableAnimation: u, isSelected: o });
22516
22516
  return typeof l == "function" ? l({ icon: w, isSelected: o, isDisabled: s }) : l || w;
22517
22517
  }, [l, o, s, u]);
@@ -22521,7 +22521,7 @@ var Jc = (e) => {
22521
22521
  /* @__PURE__ */ h.jsx("span", { ...f(), children: r }),
22522
22522
  /* @__PURE__ */ h.jsx("span", { ...b(), children: n })
22523
22523
  ] }) : /* @__PURE__ */ h.jsx("span", { ...f(), children: r }),
22524
- a && !d && /* @__PURE__ */ h.jsx("span", { ...m(), children: y }),
22524
+ a && !d && /* @__PURE__ */ h.jsx("span", { ...m(), children: v }),
22525
22525
  c && /* @__PURE__ */ h.jsx("span", { "data-slot": "endContent", children: c })
22526
22526
  ] });
22527
22527
  };
@@ -22549,7 +22549,7 @@ var qa = Jc, Zc = Ye(
22549
22549
  items: f,
22550
22550
  ...g
22551
22551
  }, b) => {
22552
- const m = r || "li", y = J(() => Ii(), []), w = me(l?.base, s), k = me(l?.divider, d?.className), { itemProps: P, headingProps: C, groupProps: A } = Rh({
22552
+ const m = r || "li", v = J(() => Ii(), []), w = me(l?.base, s), P = me(l?.divider, d?.className), { itemProps: k, headingProps: C, groupProps: A } = Rh({
22553
22553
  heading: e.rendered,
22554
22554
  "aria-label": e["aria-label"]
22555
22555
  });
@@ -22557,14 +22557,14 @@ var qa = Jc, Zc = Ye(
22557
22557
  m,
22558
22558
  {
22559
22559
  "data-slot": "base",
22560
- ...fe(P, g),
22561
- className: y.base({ class: w }),
22560
+ ...fe(k, g),
22561
+ className: v.base({ class: w }),
22562
22562
  children: [
22563
22563
  e.rendered && /* @__PURE__ */ h.jsx(
22564
22564
  "span",
22565
22565
  {
22566
22566
  ...C,
22567
- className: y.heading({ class: l?.heading }),
22567
+ className: v.heading({ class: l?.heading }),
22568
22568
  "data-slot": "heading",
22569
22569
  children: e.rendered
22570
22570
  }
@@ -22573,7 +22573,7 @@ var qa = Jc, Zc = Ye(
22573
22573
  "ul",
22574
22574
  {
22575
22575
  ...A,
22576
- className: y.group({ class: l?.group }),
22576
+ className: v.group({ class: l?.group }),
22577
22577
  "data-has-title": !!e.rendered,
22578
22578
  "data-slot": "group",
22579
22579
  children: [
@@ -22599,8 +22599,8 @@ var qa = Jc, Zc = Ye(
22599
22599
  Be,
22600
22600
  {
22601
22601
  as: "li",
22602
- className: y.divider({
22603
- class: k
22602
+ className: v.divider({
22603
+ class: P
22604
22604
  }),
22605
22605
  ...d
22606
22606
  }
@@ -22629,12 +22629,12 @@ function Bh(e = {}) {
22629
22629
  ee(() => {
22630
22630
  const c = t?.current;
22631
22631
  if (!c || !r) return;
22632
- const d = (f, g, b, m, y) => {
22632
+ const d = (f, g, b, m, v) => {
22633
22633
  if (a === "auto") {
22634
- const w = `${m}${pf(y)}Scroll`;
22635
- g && b ? (c.dataset[w] = "true", c.removeAttribute(`data-${m}-scroll`), c.removeAttribute(`data-${y}-scroll`)) : (c.dataset[`${m}Scroll`] = g.toString(), c.dataset[`${y}Scroll`] = b.toString(), c.removeAttribute(`data-${m}-${y}-scroll`));
22634
+ const w = `${m}${pf(v)}Scroll`;
22635
+ g && b ? (c.dataset[w] = "true", c.removeAttribute(`data-${m}-scroll`), c.removeAttribute(`data-${v}-scroll`)) : (c.dataset[`${m}Scroll`] = g.toString(), c.dataset[`${v}Scroll`] = b.toString(), c.removeAttribute(`data-${m}-${v}-scroll`));
22636
22636
  } else {
22637
- const w = g && b ? "both" : g ? m : b ? y : "none";
22637
+ const w = g && b ? "both" : g ? m : b ? v : "none";
22638
22638
  w !== i.current && (s?.(w), i.current = w);
22639
22639
  }
22640
22640
  }, u = () => {
@@ -22642,11 +22642,11 @@ function Bh(e = {}) {
22642
22642
  const b = [
22643
22643
  { type: "vertical", prefix: "top", suffix: "bottom" },
22644
22644
  { type: "horizontal", prefix: "left", suffix: "right" }
22645
- ], m = c.querySelector('ul[data-slot="list"]'), y = +((f = m?.getAttribute("data-virtual-scroll-height")) != null ? f : c.scrollHeight), w = +((g = m?.getAttribute("data-virtual-scroll-top")) != null ? g : c.scrollTop);
22646
- for (const { type: k, prefix: P, suffix: C } of b)
22647
- if (n === k || n === "both") {
22648
- const A = k === "vertical" ? w > o : c.scrollLeft > o, D = k === "vertical" ? w + c.clientHeight + o < y : c.scrollLeft + c.clientWidth + o < c.scrollWidth;
22649
- d(k, A, D, P, C);
22645
+ ], m = c.querySelector('ul[data-slot="list"]'), v = +((f = m?.getAttribute("data-virtual-scroll-height")) != null ? f : c.scrollHeight), w = +((g = m?.getAttribute("data-virtual-scroll-top")) != null ? g : c.scrollTop);
22646
+ for (const { type: P, prefix: k, suffix: C } of b)
22647
+ if (n === P || n === "both") {
22648
+ const A = P === "vertical" ? w > o : c.scrollLeft > o, D = P === "vertical" ? w + c.clientHeight + o < v : c.scrollLeft + c.clientWidth + o < c.scrollWidth;
22649
+ d(P, A, D, k, C);
22650
22650
  }
22651
22651
  }, p = () => {
22652
22652
  ["top", "bottom", "top-bottom", "left", "right", "left-right"].forEach((f) => {
@@ -22684,26 +22684,26 @@ function Fh(e) {
22684
22684
  updateDeps: [s],
22685
22685
  overflowCheck: (t = e.orientation) != null ? t : "vertical"
22686
22686
  });
22687
- const y = J(
22687
+ const v = J(
22688
22688
  () => ls({
22689
22689
  ...n,
22690
22690
  className: l
22691
22691
  }),
22692
22692
  [yt(n), l]
22693
22693
  );
22694
- return { Component: b, styles: y, domRef: m, children: s, getBaseProps: (k = {}) => {
22695
- var P;
22694
+ return { Component: b, styles: v, domRef: m, children: s, getBaseProps: (P = {}) => {
22695
+ var k;
22696
22696
  return {
22697
22697
  ref: m,
22698
- className: y,
22699
- "data-orientation": (P = e.orientation) != null ? P : "vertical",
22698
+ className: v,
22699
+ "data-orientation": (k = e.orientation) != null ? k : "vertical",
22700
22700
  style: {
22701
22701
  "--scroll-shadow-size": `${c}px`,
22702
22702
  ...i,
22703
- ...k.style
22703
+ ...P.style
22704
22704
  },
22705
22705
  ...g,
22706
- ...k
22706
+ ...P
22707
22707
  };
22708
22708
  } };
22709
22709
  }
@@ -22743,14 +22743,14 @@ var Kh = (e, t) => {
22743
22743
  getEmptyContentProps: g,
22744
22744
  getListProps: b,
22745
22745
  scrollShadowProps: m
22746
- } = e, { virtualization: y } = e;
22747
- if (!y || !df(y) && !y.maxListboxHeight && !y.itemHeight)
22746
+ } = e, { virtualization: v } = e;
22747
+ if (!v || !df(v) && !v.maxListboxHeight && !v.itemHeight)
22748
22748
  throw new Error(
22749
22749
  "You are using a virtualized listbox. VirtualizedListbox requires 'virtualization' props with 'maxListboxHeight' and 'itemHeight' properties. This error might have originated from autocomplete components that use VirtualizedListbox. Please provide these props to use the virtualized listbox."
22750
22750
  );
22751
- const { maxListboxHeight: w, itemHeight: k } = y, P = Math.min(w, k * n.collection.size), C = H(null), A = J(
22752
- () => Kh([...n.collection], k),
22753
- [n.collection, k]
22751
+ const { maxListboxHeight: w, itemHeight: P } = v, k = Math.min(w, P * n.collection.size), C = H(null), A = J(
22752
+ () => Kh([...n.collection], P),
22753
+ [n.collection, P]
22754
22754
  ), D = kh({
22755
22755
  count: [...n.collection].length,
22756
22756
  getScrollElement: () => C.current,
@@ -22786,7 +22786,7 @@ var Kh = (e, t) => {
22786
22786
  },
22787
22787
  _.key
22788
22788
  );
22789
- let v = /* @__PURE__ */ h.jsx(
22789
+ let y = /* @__PURE__ */ h.jsx(
22790
22790
  qa,
22791
22791
  {
22792
22792
  ...I,
@@ -22796,7 +22796,7 @@ var Kh = (e, t) => {
22796
22796
  },
22797
22797
  _.key
22798
22798
  );
22799
- return _.wrapper && (v = _.wrapper(v)), v;
22799
+ return _.wrapper && (y = _.wrapper(y)), y;
22800
22800
  }, [L, K] = ne({
22801
22801
  isTop: !1,
22802
22802
  isBottom: !0,
@@ -22821,7 +22821,7 @@ var Kh = (e, t) => {
22821
22821
  onScroll: (M) => {
22822
22822
  K(Wh(M.target));
22823
22823
  },
22824
- children: P > 0 && k > 0 && /* @__PURE__ */ h.jsx(
22824
+ children: k > 0 && P > 0 && /* @__PURE__ */ h.jsx(
22825
22825
  "div",
22826
22826
  {
22827
22827
  style: {
@@ -22855,13 +22855,13 @@ var Kh = (e, t) => {
22855
22855
  hideEmptyContent: g,
22856
22856
  hideSelectedIcon: b,
22857
22857
  shouldHighlightOnFocus: m,
22858
- disableAnimation: y,
22858
+ disableAnimation: v,
22859
22859
  getEmptyContentProps: w,
22860
- getListProps: k
22860
+ getListProps: P
22861
22861
  } = o;
22862
22862
  if (n)
22863
22863
  return /* @__PURE__ */ h.jsx(Vh, { ...t, ...o });
22864
- const P = /* @__PURE__ */ h.jsxs(s, { ...k(), children: [
22864
+ const k = /* @__PURE__ */ h.jsxs(s, { ...P(), children: [
22865
22865
  !l.collection.size && !g && /* @__PURE__ */ h.jsx("li", { children: /* @__PURE__ */ h.jsx("div", { ...w() }) }),
22866
22866
  [...l.collection].map((C) => {
22867
22867
  var A;
@@ -22870,7 +22870,7 @@ var Kh = (e, t) => {
22870
22870
  item: C,
22871
22871
  state: l,
22872
22872
  variant: c,
22873
- disableAnimation: y,
22873
+ disableAnimation: v,
22874
22874
  hideSelectedIcon: b,
22875
22875
  ...C.props
22876
22876
  };
@@ -22890,7 +22890,7 @@ var Kh = (e, t) => {
22890
22890
  ] });
22891
22891
  return /* @__PURE__ */ h.jsxs("div", { ...u(), children: [
22892
22892
  p,
22893
- P,
22893
+ k,
22894
22894
  f
22895
22895
  ] });
22896
22896
  }), ed = Uh, Gh = Object.defineProperty, Xa = (e, t) => {
@@ -23352,15 +23352,15 @@ var bv = (e) => !("type" in e), hv = (e, t, r) => ({ tr: n, dispatch: a, editor:
23352
23352
  b = t.map((m) => m.text || "").join("");
23353
23353
  else if (t instanceof ht) {
23354
23354
  let m = "";
23355
- t.forEach((y) => {
23356
- y.text && (m += y.text);
23355
+ t.forEach((v) => {
23356
+ v.text && (m += v.text);
23357
23357
  }), b = m;
23358
23358
  } else typeof t == "object" && t && t.text ? b = t.text : b = t;
23359
23359
  n.insertText(b, d, u);
23360
23360
  } else {
23361
23361
  b = l;
23362
- const m = n.doc.resolve(d), y = m.node(), w = m.parentOffset === 0, k = y.isText || y.isTextblock, P = y.content.size > 0;
23363
- w && k && P && (d = Math.max(0, d - 1)), n.replaceWith(d, u, b);
23362
+ const m = n.doc.resolve(d), v = m.node(), w = m.parentOffset === 0, P = v.isText || v.isTextblock, k = v.content.size > 0;
23363
+ w && P && k && (d = Math.max(0, d - 1)), n.replaceWith(d, u, b);
23364
23364
  }
23365
23365
  r.updateSelection && mv(n, n.steps.length - 1, -1), r.applyInputRules && n.setMeta("applyInputRules", { from: d, text: b }), r.applyPasteRules && n.setMeta("applyPasteRules", { from: d, text: b });
23366
23366
  }
@@ -23709,11 +23709,11 @@ function Jv(e, t, r = {}) {
23709
23709
  return !1;
23710
23710
  if (!b.isText && !b.marks.length)
23711
23711
  return;
23712
- const y = Math.max(f, m), w = Math.min(g, m + b.nodeSize), k = w - y;
23713
- s += k, l.push(
23714
- ...b.marks.map((P) => ({
23715
- mark: P,
23716
- from: y,
23712
+ const v = Math.max(f, m), w = Math.min(g, m + b.nodeSize), P = w - v;
23713
+ s += P, l.push(
23714
+ ...b.marks.map((k) => ({
23715
+ mark: k,
23716
+ from: v,
23717
23717
  to: w
23718
23718
  }))
23719
23719
  );
@@ -23760,7 +23760,7 @@ function fd(e, {
23760
23760
  return !1;
23761
23761
  }
23762
23762
  function pd(e, t, r) {
23763
- const a = e.state.doc.content.size, o = it(t, 0, a), s = it(r, 0, a), l = e.coordsAtPos(o), i = e.coordsAtPos(s, -1), c = Math.min(l.top, i.top), d = Math.max(l.bottom, i.bottom), u = Math.min(l.left, i.left), p = Math.max(l.right, i.right), f = p - u, g = d - c, y = {
23763
+ const a = e.state.doc.content.size, o = it(t, 0, a), s = it(r, 0, a), l = e.coordsAtPos(o), i = e.coordsAtPos(s, -1), c = Math.min(l.top, i.top), d = Math.max(l.bottom, i.bottom), u = Math.min(l.left, i.left), p = Math.max(l.right, i.right), f = p - u, g = d - c, v = {
23764
23764
  top: c,
23765
23765
  bottom: d,
23766
23766
  left: u,
@@ -23771,8 +23771,8 @@ function pd(e, t, r) {
23771
23771
  y: c
23772
23772
  };
23773
23773
  return {
23774
- ...y,
23775
- toJSON: () => y
23774
+ ...v,
23775
+ toJSON: () => v
23776
23776
  };
23777
23777
  }
23778
23778
  function Zv(e, t, r) {
@@ -23813,12 +23813,12 @@ var Qv = (e, t = {}) => ({ tr: r, state: n, dispatch: a }) => {
23813
23813
  const d = c.$from.pos, u = c.$to.pos;
23814
23814
  n.doc.nodesBetween(d, u, (p, f) => {
23815
23815
  const g = Math.max(f, d), b = Math.min(f + p.nodeSize, u);
23816
- p.marks.find((y) => y.type === i) ? p.marks.forEach((y) => {
23817
- i === y.type && r.addMark(
23816
+ p.marks.find((v) => v.type === i) ? p.marks.forEach((v) => {
23817
+ i === v.type && r.addMark(
23818
23818
  g,
23819
23819
  b,
23820
23820
  i.create({
23821
- ...y.attrs,
23821
+ ...v.attrs,
23822
23822
  ...t
23823
23823
  })
23824
23824
  );
@@ -23901,20 +23901,20 @@ var s0 = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: r, dispatch: n, editor
23901
23901
  if (i.depth === 2 || i.node(-3).type !== l || i.index(-2) !== i.node(-2).childCount - 1)
23902
23902
  return !1;
23903
23903
  if (a) {
23904
- let y = ht.empty;
23904
+ let v = ht.empty;
23905
23905
  const w = i.index(-1) ? 1 : i.index(-2) ? 2 : 3;
23906
23906
  for (let T = i.depth - w; T >= i.depth - 3; T -= 1)
23907
- y = ht.from(i.node(T).copy(y));
23908
- const k = (
23907
+ v = ht.from(i.node(T).copy(v));
23908
+ const P = (
23909
23909
  // eslint-disable-next-line no-nested-ternary
23910
23910
  i.indexAfter(-1) < i.node(-2).childCount ? 1 : i.indexAfter(-2) < i.node(-3).childCount ? 2 : 3
23911
- ), P = {
23911
+ ), k = {
23912
23912
  ...Xr(p, i.node().type.name, i.node().attrs),
23913
23913
  ...t
23914
- }, C = ((s = l.contentMatch.defaultType) == null ? void 0 : s.createAndFill(P)) || void 0;
23915
- y = y.append(ht.from(l.createAndFill(null, C) || void 0));
23914
+ }, C = ((s = l.contentMatch.defaultType) == null ? void 0 : s.createAndFill(k)) || void 0;
23915
+ v = v.append(ht.from(l.createAndFill(null, C) || void 0));
23916
23916
  const A = i.before(i.depth - (w - 1));
23917
- r.replace(A, i.after(-k), new hu(y, 4 - w, 0));
23917
+ r.replace(A, i.after(-P), new hu(v, 4 - w, 0));
23918
23918
  let D = -1;
23919
23919
  r.doc.nodesBetween(A, r.doc.content.size, (T, O) => {
23920
23920
  if (D > -1)
@@ -23939,10 +23939,10 @@ var s0 = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: r, dispatch: n, editor
23939
23939
  if (!Ur(r.doc, i.pos, 2))
23940
23940
  return !1;
23941
23941
  if (a) {
23942
- const { selection: y, storedMarks: w } = n, { splittableMarks: k } = o.extensionManager, P = w || y.$to.parentOffset && y.$from.marks();
23943
- if (r.split(i.pos, 2, m).scrollIntoView(), !P || !a)
23942
+ const { selection: v, storedMarks: w } = n, { splittableMarks: P } = o.extensionManager, k = w || v.$to.parentOffset && v.$from.marks();
23943
+ if (r.split(i.pos, 2, m).scrollIntoView(), !k || !a)
23944
23944
  return !0;
23945
- const C = P.filter((A) => k.includes(A.type.name));
23945
+ const C = k.filter((A) => P.includes(A.type.name));
23946
23946
  r.ensureMarks(C);
23947
23947
  }
23948
23948
  return !0;
@@ -23965,18 +23965,18 @@ var s0 = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: r, dispatch: n, editor
23965
23965
  const a = e.doc.nodeAt(n);
23966
23966
  return r.node.type === a?.type && Ws(e.doc, n) && e.join(n), !0;
23967
23967
  }, i0 = (e, t, r, n = {}) => ({ editor: a, tr: o, state: s, dispatch: l, chain: i, commands: c, can: d }) => {
23968
- const { extensions: u, splittableMarks: p } = a.extensionManager, f = Ie(e, s.schema), g = Ie(t, s.schema), { selection: b, storedMarks: m } = s, { $from: y, $to: w } = b, k = y.blockRange(w), P = m || b.$to.parentOffset && b.$from.marks();
23969
- if (!k)
23968
+ const { extensions: u, splittableMarks: p } = a.extensionManager, f = Ie(e, s.schema), g = Ie(t, s.schema), { selection: b, storedMarks: m } = s, { $from: v, $to: w } = b, P = v.blockRange(w), k = m || b.$to.parentOffset && b.$from.marks();
23969
+ if (!P)
23970
23970
  return !1;
23971
23971
  const C = Qa((A) => Es(A.type.name, u))(b);
23972
- if (k.depth >= 1 && C && k.depth - C.depth <= 1) {
23972
+ if (P.depth >= 1 && C && P.depth - C.depth <= 1) {
23973
23973
  if (C.node.type === f)
23974
23974
  return c.liftListItem(g);
23975
23975
  if (Es(C.node.type.name, u) && f.validContent(C.node.content) && l)
23976
23976
  return i().command(() => (o.setNodeMarkup(C.pos, f), !0)).command(() => qn(o, f)).command(() => Xn(o, f)).run();
23977
23977
  }
23978
- return !r || !P || !l ? i().command(() => d().wrapInList(f, n) ? !0 : c.clearNodes()).wrapInList(f, n).command(() => qn(o, f)).command(() => Xn(o, f)).run() : i().command(() => {
23979
- const A = d().wrapInList(f, n), D = P.filter((T) => p.includes(T.type.name));
23978
+ return !r || !k || !l ? i().command(() => d().wrapInList(f, n) ? !0 : c.clearNodes()).wrapInList(f, n).command(() => qn(o, f)).command(() => Xn(o, f)).run() : i().command(() => {
23979
+ const A = d().wrapInList(f, n), D = k.filter((T) => p.includes(T.type.name));
23980
23980
  return o.ensureMarks(D), A ? !0 : c.clearNodes();
23981
23981
  }).wrapInList(f, n).command(() => qn(o, f)).command(() => Xn(o, f)).run();
23982
23982
  }, c0 = (e, t = {}, r = {}) => ({ state: n, commands: a }) => {
@@ -24050,18 +24050,18 @@ var s0 = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: r, dispatch: n, editor
24050
24050
  return r.selection.ranges.forEach((c) => {
24051
24051
  const d = c.$from.pos, u = c.$to.pos;
24052
24052
  let p, f, g, b;
24053
- r.selection.empty ? n.doc.nodesBetween(d, u, (m, y) => {
24054
- o && o === m.type && (i = !0, g = Math.max(y, d), b = Math.min(y + m.nodeSize, u), p = y, f = m);
24055
- }) : n.doc.nodesBetween(d, u, (m, y) => {
24056
- y < d && o && o === m.type && (i = !0, g = Math.max(y, d), b = Math.min(y + m.nodeSize, u), p = y, f = m), y >= d && y <= u && (o && o === m.type && (i = !0, a && r.setNodeMarkup(y, void 0, {
24053
+ r.selection.empty ? n.doc.nodesBetween(d, u, (m, v) => {
24054
+ o && o === m.type && (i = !0, g = Math.max(v, d), b = Math.min(v + m.nodeSize, u), p = v, f = m);
24055
+ }) : n.doc.nodesBetween(d, u, (m, v) => {
24056
+ v < d && o && o === m.type && (i = !0, g = Math.max(v, d), b = Math.min(v + m.nodeSize, u), p = v, f = m), v >= d && v <= u && (o && o === m.type && (i = !0, a && r.setNodeMarkup(v, void 0, {
24057
24057
  ...m.attrs,
24058
24058
  ...t
24059
24059
  })), s && m.marks.length && m.marks.forEach((w) => {
24060
24060
  if (s === w.type && (i = !0, a)) {
24061
- const k = Math.max(y, d), P = Math.min(y + m.nodeSize, u);
24061
+ const P = Math.max(v, d), k = Math.min(v + m.nodeSize, u);
24062
24062
  r.addMark(
24063
- k,
24064
24063
  P,
24064
+ k,
24065
24065
  s.create({
24066
24066
  ...w.attrs,
24067
24067
  ...t
@@ -24215,7 +24215,7 @@ var Ne = class bd extends md {
24215
24215
  const d = Wv(e.before, [e, ...t]);
24216
24216
  Xv(d).forEach((f) => {
24217
24217
  d.mapping.mapResult(f.oldRange.from).deletedAfter && d.mapping.mapResult(f.oldRange.to).deletedBefore && d.before.nodesBetween(f.oldRange.from, f.oldRange.to, (g, b) => {
24218
- const m = b + g.nodeSize - 2, y = f.oldRange.from <= b && m <= f.oldRange.to;
24218
+ const m = b + g.nodeSize - 2, v = f.oldRange.from <= b && m <= f.oldRange.to;
24219
24219
  this.editor.emit("delete", {
24220
24220
  type: "node",
24221
24221
  node: g,
@@ -24225,7 +24225,7 @@ var Ne = class bd extends md {
24225
24225
  newTo: d.mapping.map(m),
24226
24226
  deletedRange: f.oldRange,
24227
24227
  newRange: f.newRange,
24228
- partial: !y,
24228
+ partial: !v,
24229
24229
  editor: this.editor,
24230
24230
  transaction: e,
24231
24231
  combinedTransform: d
@@ -24236,18 +24236,18 @@ var Ne = class bd extends md {
24236
24236
  d.steps.forEach((f, g) => {
24237
24237
  var b, m;
24238
24238
  if (f instanceof Yd) {
24239
- const y = p.slice(g).map(f.from, -1), w = p.slice(g).map(f.to), k = p.invert().map(y, -1), P = p.invert().map(w), C = (b = d.doc.nodeAt(y - 1)) == null ? void 0 : b.marks.some((D) => D.eq(f.mark)), A = (m = d.doc.nodeAt(w)) == null ? void 0 : m.marks.some((D) => D.eq(f.mark));
24239
+ const v = p.slice(g).map(f.from, -1), w = p.slice(g).map(f.to), P = p.invert().map(v, -1), k = p.invert().map(w), C = (b = d.doc.nodeAt(v - 1)) == null ? void 0 : b.marks.some((D) => D.eq(f.mark)), A = (m = d.doc.nodeAt(w)) == null ? void 0 : m.marks.some((D) => D.eq(f.mark));
24240
24240
  this.editor.emit("delete", {
24241
24241
  type: "mark",
24242
24242
  mark: f.mark,
24243
24243
  from: f.from,
24244
24244
  to: f.to,
24245
24245
  deletedRange: {
24246
- from: k,
24247
- to: P
24246
+ from: P,
24247
+ to: k
24248
24248
  },
24249
24249
  newRange: {
24250
- from: y,
24250
+ from: v,
24251
24251
  to: w
24252
24252
  },
24253
24253
  partial: !!(A || C),
@@ -24322,8 +24322,8 @@ var Ne = class bd extends md {
24322
24322
  () => s.undoInputRule(),
24323
24323
  // maybe convert first text block node to default node
24324
24324
  () => s.command(({ tr: l }) => {
24325
- const { selection: i, doc: c } = l, { empty: d, $anchor: u } = i, { pos: p, parent: f } = u, g = u.parent.isTextblock && p > 0 ? l.doc.resolve(p - 1) : u, b = g.parent.type.spec.isolating, m = u.pos - u.parentOffset, y = b && g.parent.childCount === 1 ? m === u.pos : Ht.atStart(c).from === p;
24326
- return !d || !f.type.isTextblock || f.textContent.length || !y || y && u.parent.type.name === "paragraph" ? !1 : s.clearNodes();
24325
+ const { selection: i, doc: c } = l, { empty: d, $anchor: u } = i, { pos: p, parent: f } = u, g = u.parent.isTextblock && p > 0 ? l.doc.resolve(p - 1) : u, b = g.parent.type.spec.isolating, m = u.pos - u.parentOffset, v = b && g.parent.childCount === 1 ? m === u.pos : Ht.atStart(c).from === p;
24326
+ return !d || !f.type.isTextblock || f.textContent.length || !v || v && u.parent.type.name === "paragraph" ? !1 : s.clearNodes();
24327
24327
  }),
24328
24328
  () => s.deleteSelection(),
24329
24329
  () => s.joinBackward(),
@@ -24596,9 +24596,9 @@ function D0(e) {
24596
24596
  const b = new RegExp(`^:::${c}(?:\\s+\\{([^}]*)\\})?\\s*\\n`), m = u.match(b);
24597
24597
  if (!m)
24598
24598
  return;
24599
- const [y, w = ""] = m, k = a(w);
24600
- let P = 1;
24601
- const C = y.length;
24599
+ const [v, w = ""] = m, P = a(w);
24600
+ let k = 1;
24601
+ const C = v.length;
24602
24602
  let A = "";
24603
24603
  const D = /^:::([\w-]*)(\s.*)?/gm, T = u.slice(C);
24604
24604
  for (D.lastIndex = 0; ; ) {
@@ -24608,8 +24608,8 @@ function D0(e) {
24608
24608
  const B = O.index, F = O[1];
24609
24609
  if (!((g = O[2]) != null && g.endsWith(":::"))) {
24610
24610
  if (F)
24611
- P += 1;
24612
- else if (P -= 1, P === 0) {
24611
+ k += 1;
24612
+ else if (k -= 1, k === 0) {
24613
24613
  const L = T.slice(0, B);
24614
24614
  A = L.trim();
24615
24615
  const K = u.slice(0, C + B + O[0].length);
@@ -24630,7 +24630,7 @@ function D0(e) {
24630
24630
  return {
24631
24631
  type: t,
24632
24632
  raw: K,
24633
- attributes: k,
24633
+ attributes: P,
24634
24634
  content: A,
24635
24635
  tokens: E
24636
24636
  };
@@ -24682,10 +24682,10 @@ function R0(e) {
24682
24682
  return i.forEach((g) => {
24683
24683
  const b = typeof g == "string" ? g : g.name, m = typeof g == "string" ? void 0 : g.skipIfDefault;
24684
24684
  if (b in p) {
24685
- const y = p[b];
24686
- if (m !== void 0 && y === m)
24685
+ const v = p[b];
24686
+ if (m !== void 0 && v === m)
24687
24687
  return;
24688
- f[b] = y;
24688
+ f[b] = v;
24689
24689
  }
24690
24690
  }), f;
24691
24691
  }, u = c.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
@@ -24708,26 +24708,26 @@ function R0(e) {
24708
24708
  const b = l ? new RegExp(`^\\[${u}\\s*([^\\]]*)\\]`) : new RegExp(`^\\[${u}\\s*([^\\]]*)\\]([\\s\\S]*?)\\[\\/${u}\\]`), m = p.match(b);
24709
24709
  if (!m)
24710
24710
  return;
24711
- let y = "", w = "";
24711
+ let v = "", w = "";
24712
24712
  if (l) {
24713
- const [, P] = m;
24714
- w = P;
24713
+ const [, k] = m;
24714
+ w = k;
24715
24715
  } else {
24716
- const [, P, C] = m;
24717
- w = P, y = C || "";
24716
+ const [, k, C] = m;
24717
+ w = k, v = C || "";
24718
24718
  }
24719
- const k = a(w.trim());
24719
+ const P = a(w.trim());
24720
24720
  return {
24721
24721
  type: t,
24722
24722
  raw: m[0],
24723
- content: y.trim(),
24724
- attributes: k
24723
+ content: v.trim(),
24724
+ attributes: P
24725
24725
  };
24726
24726
  }
24727
24727
  },
24728
24728
  renderMarkdown: (p) => {
24729
24729
  let f = "";
24730
- n ? f = n(p) : p.content && p.content.length > 0 && (f = p.content.filter((y) => y.type === "text").map((y) => y.text).join(""));
24730
+ n ? f = n(p) : p.content && p.content.length > 0 && (f = p.content.filter((v) => v.type === "text").map((v) => v.text).join(""));
24731
24731
  const g = d(p.attrs || {}), b = o(g), m = b ? ` ${b}` : "";
24732
24732
  return l ? `[${c}${m}]` : `[${c}${m}]${f}[/${c}]`;
24733
24733
  }
@@ -24754,7 +24754,7 @@ function O0(e, t, r) {
24754
24754
  const g = t.extractItemData(f), { indentLevel: b, mainContent: m } = g;
24755
24755
  c = `${c}${p}
24756
24756
  `;
24757
- const y = [m];
24757
+ const v = [m];
24758
24758
  for (d += 1; d < l.length; ) {
24759
24759
  const C = l[d];
24760
24760
  if (C.trim() === "") {
@@ -24762,27 +24762,27 @@ function O0(e, t, r) {
24762
24762
  if (D === -1)
24763
24763
  break;
24764
24764
  if ((((a = (n = l[d + 1 + D].match(/^(\s*)/)) == null ? void 0 : n[1]) == null ? void 0 : a.length) || 0) > b) {
24765
- y.push(C), c = `${c}${C}
24765
+ v.push(C), c = `${c}${C}
24766
24766
  `, d += 1;
24767
24767
  continue;
24768
24768
  } else
24769
24769
  break;
24770
24770
  }
24771
24771
  if ((((s = (o = C.match(/^(\s*)/)) == null ? void 0 : o[1]) == null ? void 0 : s.length) || 0) > b)
24772
- y.push(C), c = `${c}${C}
24772
+ v.push(C), c = `${c}${C}
24773
24773
  `, d += 1;
24774
24774
  else
24775
24775
  break;
24776
24776
  }
24777
24777
  let w;
24778
- const k = y.slice(1);
24779
- if (k.length > 0) {
24780
- const C = k.map((A) => A.slice(b + u)).join(`
24778
+ const P = v.slice(1);
24779
+ if (P.length > 0) {
24780
+ const C = P.map((A) => A.slice(b + u)).join(`
24781
24781
  `);
24782
24782
  C.trim() && (t.customNestedParser ? w = t.customNestedParser(C) : w = r.blockTokens(C));
24783
24783
  }
24784
- const P = t.createToken(g, w);
24785
- i.push(P);
24784
+ const k = t.createToken(g, w);
24785
+ i.push(k);
24786
24786
  }
24787
24787
  if (i.length !== 0)
24788
24788
  return {
@@ -25237,7 +25237,7 @@ var Cd = Q.forwardRef(
25237
25237
  options: l
25238
25238
  }, m = H(b);
25239
25239
  m.current = b;
25240
- const [y, w] = ne(!1), k = H(!0);
25240
+ const [v, w] = ne(!1), P = H(!0);
25241
25241
  return ee(() => {
25242
25242
  if (g?.isDestroyed)
25243
25243
  return;
@@ -25245,24 +25245,24 @@ var Cd = Q.forwardRef(
25245
25245
  console.warn("BubbleMenu component is not rendered inside of an editor component or does not have editor prop.");
25246
25246
  return;
25247
25247
  }
25248
- const P = u.current;
25249
- P.style.visibility = "hidden", P.style.position = "absolute";
25248
+ const k = u.current;
25249
+ k.style.visibility = "hidden", k.style.position = "absolute";
25250
25250
  const C = Ud({
25251
25251
  ...m.current,
25252
25252
  editor: g,
25253
- element: P
25253
+ element: k
25254
25254
  });
25255
25255
  g.registerPlugin(C);
25256
25256
  const A = m.current.pluginKey;
25257
- return k.current = !0, w(!0), () => {
25257
+ return P.current = !0, w(!0), () => {
25258
25258
  w(!1), g.unregisterPlugin(A), window.requestAnimationFrame(() => {
25259
- P.parentNode && P.parentNode.removeChild(P);
25259
+ k.parentNode && k.parentNode.removeChild(k);
25260
25260
  });
25261
25261
  };
25262
25262
  }, [g]), ee(() => {
25263
- if (!(!y || !g || g.isDestroyed)) {
25264
- if (k.current) {
25265
- k.current = !1;
25263
+ if (!(!v || !g || g.isDestroyed)) {
25264
+ if (P.current) {
25265
+ P.current = !1;
25266
25266
  return;
25267
25267
  }
25268
25268
  g.view.dispatch(
@@ -25273,7 +25273,7 @@ var Cd = Q.forwardRef(
25273
25273
  );
25274
25274
  }
25275
25275
  }, [
25276
- y,
25276
+ v,
25277
25277
  g,
25278
25278
  r,
25279
25279
  n,
@@ -25298,7 +25298,7 @@ Q.forwardRef(
25298
25298
  options: s
25299
25299
  }, b = H(g);
25300
25300
  b.current = g;
25301
- const [m, y] = ne(!1), w = H(!0);
25301
+ const [m, v] = ne(!1), w = H(!0);
25302
25302
  return ee(() => {
25303
25303
  if (f?.isDestroyed)
25304
25304
  return;
@@ -25308,18 +25308,18 @@ Q.forwardRef(
25308
25308
  );
25309
25309
  return;
25310
25310
  }
25311
- const k = d.current;
25312
- k.style.visibility = "hidden", k.style.position = "absolute";
25313
- const P = yd({
25311
+ const P = d.current;
25312
+ P.style.visibility = "hidden", P.style.position = "absolute";
25313
+ const k = yd({
25314
25314
  ...b.current,
25315
25315
  editor: f,
25316
- element: k
25316
+ element: P
25317
25317
  });
25318
- f.registerPlugin(P);
25318
+ f.registerPlugin(k);
25319
25319
  const C = b.current.pluginKey;
25320
- return w.current = !0, y(!0), () => {
25321
- y(!1), f.unregisterPlugin(C), window.requestAnimationFrame(() => {
25322
- k.parentNode && k.parentNode.removeChild(k);
25320
+ return w.current = !0, v(!0), () => {
25321
+ v(!1), f.unregisterPlugin(C), window.requestAnimationFrame(() => {
25322
+ P.parentNode && P.parentNode.removeChild(P);
25323
25323
  });
25324
25324
  };
25325
25325
  }, [f]), ee(() => {
@@ -26488,11 +26488,11 @@ const Ad = (e, t) => {
26488
26488
  g.dispatch(m);
26489
26489
  }, [n, e, t]), p = G(
26490
26490
  (f, g) => {
26491
- const b = f.state.doc.resolve(g), m = b.nodeAfter || b.parent, y = g + m.nodeSize;
26492
- f.chain().focus(y, { scrollIntoView: !0 }).insertContentAt(y, {
26491
+ const b = f.state.doc.resolve(g), m = b.nodeAfter || b.parent, v = g + m.nodeSize;
26492
+ f.chain().focus(v, { scrollIntoView: !0 }).insertContentAt(v, {
26493
26493
  type: "paragraph",
26494
26494
  content: [{ type: "text", text: "/" }]
26495
- }).setTextSelection(y + 2).run();
26495
+ }).setTextSelection(v + 2).run();
26496
26496
  },
26497
26497
  []
26498
26498
  );
@@ -26830,16 +26830,16 @@ function Is(e, t, r, n, a, o) {
26830
26830
  for (let p = 0, f = 0; p < d.childCount; p += 1) {
26831
26831
  const { colspan: g, colwidth: b } = d.child(p).attrs;
26832
26832
  for (let m = 0; m < g; m += 1, f += 1) {
26833
- const y = a === f ? o : b && b[m], w = y ? `${y}px` : "";
26834
- if (l += y || n, y || (i = !1), c) {
26833
+ const v = a === f ? o : b && b[m], w = v ? `${v}px` : "";
26834
+ if (l += v || n, v || (i = !1), c) {
26835
26835
  if (c.style.width !== w) {
26836
- const [k, P] = $a(n, y);
26837
- c.style.setProperty(k, P);
26836
+ const [P, k] = $a(n, v);
26837
+ c.style.setProperty(P, k);
26838
26838
  }
26839
26839
  c = c.nextSibling;
26840
26840
  } else {
26841
- const k = document.createElement("col"), [P, C] = $a(n, y);
26842
- k.style.setProperty(P, C), t.appendChild(k);
26841
+ const P = document.createElement("col"), [k, C] = $a(n, v);
26842
+ P.style.setProperty(k, C), t.appendChild(P);
26843
26843
  }
26844
26844
  }
26845
26845
  }
@@ -26872,8 +26872,8 @@ function Gy(e, t, r, n) {
26872
26872
  for (let b = 0; b < f; b += 1, p += 1) {
26873
26873
  const m = r === p ? n : g && g[b];
26874
26874
  a += m || t, m || (o = !1);
26875
- const [y, w] = $a(t, m);
26876
- s.push(["col", { style: `${y}: ${w}` }]);
26875
+ const [v, w] = $a(t, m);
26876
+ s.push(["col", { style: `${v}: ${w}` }]);
26877
26877
  }
26878
26878
  }
26879
26879
  const i = o ? `${a}px` : "", c = o ? "" : `${a}px`;
@@ -26932,10 +26932,10 @@ function Qy(e, t, r = {}) {
26932
26932
  e.content.forEach((g) => {
26933
26933
  const b = [];
26934
26934
  g.content && g.content.forEach((m) => {
26935
- let y = "";
26936
- m.content && Array.isArray(m.content) && m.content.length > 1 ? y = m.content.map((C) => t.renderChildren(C)).join(a) : y = m.content ? t.renderChildren(m.content) : "";
26937
- const w = Zy(y), k = m.type === "tableHeader";
26938
- b.push({ text: w, isHeader: k });
26935
+ let v = "";
26936
+ m.content && Array.isArray(m.content) && m.content.length > 1 ? v = m.content.map((C) => t.renderChildren(C)).join(a) : v = m.content ? t.renderChildren(m.content) : "";
26937
+ const w = Zy(v), P = m.type === "tableHeader";
26938
+ b.push({ text: w, isHeader: P });
26939
26939
  }), o.push(b);
26940
26940
  });
26941
26941
  const s = o.reduce((g, b) => Math.max(g, b.length), 0);
@@ -27229,7 +27229,7 @@ const ox = hn(({ items: e, command: t }, r) => {
27229
27229
  ];
27230
27230
  }
27231
27231
  }), ix = (e) => {
27232
- const t = H(0), r = H(null), n = H(null), [a, o] = ne(!1), { editor: s, node: l } = e, { uploading: i, src: c, failed: d, progress: u, selectMedia: p, id: f, errorMessage: g, name: b, size: m } = l.attrs, y = () => {
27232
+ const t = H(0), r = H(null), n = H(null), [a, o] = ne(!1), { editor: s, node: l } = e, { uploading: i, src: c, failed: d, progress: u, selectMedia: p, id: f, errorMessage: g, name: b, size: m } = l.attrs, v = () => {
27233
27233
  n.current?.click();
27234
27234
  }, w = (T) => {
27235
27235
  if (i) return;
@@ -27240,9 +27240,9 @@ const ox = hn(({ items: e, command: t }, r) => {
27240
27240
  s?.storage.imageUploaderExtension.uploadImageFromFile(s, O, f, !0, B);
27241
27241
  }
27242
27242
  n.current && (n.current.value = "");
27243
- }, k = (T) => {
27243
+ }, P = (T) => {
27244
27244
  T.preventDefault();
27245
- }, P = G((T) => {
27245
+ }, k = G((T) => {
27246
27246
  if (T.preventDefault(), T.stopPropagation(), T.nativeEvent.stopImmediatePropagation(), t.current = 0, o(!1), i)
27247
27247
  return;
27248
27248
  const O = T.dataTransfer?.files?.[0];
@@ -27273,8 +27273,8 @@ const ox = hn(({ items: e, command: t }, r) => {
27273
27273
  "data-uploading": i,
27274
27274
  "data-type": "image-uploader",
27275
27275
  className: "w-full h-full rounded-lg",
27276
- onDrop: !i && !c ? P : void 0,
27277
- onDragOver: !i && !c ? k : void 0,
27276
+ onDrop: !i && !c ? k : void 0,
27277
+ onDragOver: !i && !c ? P : void 0,
27278
27278
  onDragEnter: !i && !c ? C : void 0,
27279
27279
  onDragLeave: !i && !c ? A : void 0,
27280
27280
  children: /* @__PURE__ */ h.jsxs(
@@ -27298,7 +27298,7 @@ const ox = hn(({ items: e, command: t }, r) => {
27298
27298
  onChange: w
27299
27299
  }
27300
27300
  ),
27301
- p && !i && /* @__PURE__ */ h.jsxs("div", { onClick: y, className: "flex flex-col gap-2 items-center justify-center", children: [
27301
+ p && !i && /* @__PURE__ */ h.jsxs("div", { onClick: v, className: "flex flex-col gap-2 items-center justify-center", children: [
27302
27302
  /* @__PURE__ */ h.jsx("div", { children: /* @__PURE__ */ h.jsx(
27303
27303
  Pe,
27304
27304
  {
@@ -27507,8 +27507,8 @@ const px = Ne.create({
27507
27507
  if (!i?.includes(r.type))
27508
27508
  d = `Unsupported file type: ${r.type}`;
27509
27509
  else if (r.size >= c) {
27510
- const y = Math.round(c / 1048576);
27511
- d = `File too large: ${(r.size / (1024 * 1024)).toFixed(2)}MB. Maximum size is ${y}MB.`;
27510
+ const v = Math.round(c / 1048576);
27511
+ d = `File too large: ${(r.size / (1024 * 1024)).toFixed(2)}MB. Maximum size is ${v}MB.`;
27512
27512
  }
27513
27513
  if (d) {
27514
27514
  if (!a)
@@ -27545,21 +27545,21 @@ const px = Ne.create({
27545
27545
  },
27546
27546
  o
27547
27547
  );
27548
- const p = (y) => {
27549
- u() && Jr(t, { id: n, pos: o }, y);
27550
- }, f = (y) => {
27551
- u() && (p({ uploading: !1, failed: !1, src: y, progress: 100 }), e.delete(n));
27552
- }, g = (y = "Upload failed") => {
27553
- u() && (p({ uploading: !1, failed: !0, errorMessage: y, progress: 0 }), e.delete(n));
27548
+ const p = (v) => {
27549
+ u() && Jr(t, { id: n, pos: o }, v);
27550
+ }, f = (v) => {
27551
+ u() && (p({ uploading: !1, failed: !1, src: v, progress: 100 }), e.delete(n));
27552
+ }, g = (v = "Upload failed") => {
27553
+ u() && (p({ uploading: !1, failed: !0, errorMessage: v, progress: 0 }), e.delete(n));
27554
27554
  }, b = () => {
27555
27555
  Jr(
27556
27556
  t,
27557
27557
  { id: n, pos: o },
27558
27558
  { uploading: !1, failed: !0, errorMessage: "Upload cancelled", progress: 0 }
27559
27559
  ), e.delete(n);
27560
- }, m = (y, w) => {
27561
- const k = e.get(n);
27562
- return !k || k.cancelled ? !1 : (p({ progress: y }), !0);
27560
+ }, m = (v, w) => {
27561
+ const P = e.get(n);
27562
+ return !P || P.cancelled ? !1 : (p({ progress: v }), !0);
27563
27563
  };
27564
27564
  (async () => {
27565
27565
  try {
@@ -27582,18 +27582,18 @@ const px = Ne.create({
27582
27582
  }), B = setTimeout(F, T);
27583
27583
  return;
27584
27584
  }
27585
- const y = new AbortController();
27585
+ const v = new AbortController();
27586
27586
  e.set(n, {
27587
27587
  cancelled: !1,
27588
27588
  cleanup: () => {
27589
- y.abort();
27589
+ v.abort();
27590
27590
  }
27591
27591
  });
27592
27592
  const w = await xy({
27593
27593
  file: r,
27594
27594
  url: s,
27595
27595
  onProgress: m,
27596
- signal: y.signal
27596
+ signal: v.signal
27597
27597
  });
27598
27598
  if (e.get(n)?.cancelled) {
27599
27599
  b();
@@ -27601,12 +27601,12 @@ const px = Ne.create({
27601
27601
  }
27602
27602
  if (!l)
27603
27603
  throw new Error("You need to specify a key or resolver for the upload response using *imgUploadResponseKey* in editorOptions.");
27604
- const P = typeof l == "function" ? l(w) : wy(w, l);
27605
- if (!P) throw new Error("No URL returned from server");
27606
- if (typeof P != "string") throw new Error("The upload response resolver must return a string URL");
27607
- f(P);
27608
- } catch (y) {
27609
- y instanceof Error && (y.name === "AbortError" ? b() : g(y.message));
27604
+ const k = typeof l == "function" ? l(w) : wy(w, l);
27605
+ if (!k) throw new Error("No URL returned from server");
27606
+ if (typeof k != "string") throw new Error("The upload response resolver must return a string URL");
27607
+ f(k);
27608
+ } catch (v) {
27609
+ v instanceof Error && (v.name === "AbortError" ? b() : g(v.message));
27610
27610
  }
27611
27611
  })();
27612
27612
  },
@@ -27828,77 +27828,79 @@ const px = Ne.create({
27828
27828
  disableDefaultContainer: l = !1,
27829
27829
  showDragHandle: i = !0,
27830
27830
  extraExtensions: c = [],
27831
- ...d
27832
- } = e, u = J(
27831
+ editable: d,
27832
+ ...u
27833
+ } = e, p = J(
27833
27834
  () => hx({ imgUploadUrl: o, imgUploadResponseKey: s }),
27834
27835
  [s, o]
27835
- ), p = J(() => [
27836
- ...u,
27836
+ ), f = J(() => [
27837
+ ...p,
27837
27838
  ...c
27838
- ], [u, c]);
27839
- yx(u, c);
27840
- const f = J(() => Rs(d), [d]), g = J(() => Rs(
27839
+ ], [p, c]);
27840
+ yx(p, c);
27841
+ const g = J(() => Rs(u), [u]), b = J(() => Rs(
27841
27842
  c.map((k) => ({
27842
27843
  name: k.name,
27843
27844
  options: "options" in k ? k.options : void 0
27844
27845
  }))
27845
- ), [c]), b = J(() => [
27846
- f,
27846
+ ), [c]), m = J(() => [
27847
27847
  g,
27848
+ b,
27848
27849
  o,
27849
27850
  s
27850
27851
  ], [
27851
- g,
27852
+ b,
27852
27853
  s,
27853
27854
  o,
27854
- f
27855
- ]), m = Hd({
27855
+ g
27856
+ ]), v = Hd({
27856
27857
  content: "<p>This is just a content</p>",
27857
- extensions: p,
27858
- ...d
27859
- }, b);
27860
- vr(a, () => ({
27861
- getEditor: () => m,
27862
- on: ((...k) => (m?.on(...k), m)),
27863
- off: ((...k) => (m?.off(...k), m)),
27864
- once: ((...k) => (m?.once(...k), m)),
27865
- getDocumentMap: () => m ? ro(m) : null,
27866
- applyTargetedUpdate: (k) => m ? Ad(m, k) : !1,
27867
- applyTargetedUpdates: (k) => m ? Cy(m, k) : !1
27868
- }), [m]);
27869
- const y = l ? Bd : Tb, w = l ? {} : { className: "w-full overflow-visible" };
27870
- return /* @__PURE__ */ h.jsx(zd.Provider, { value: m, children: /* @__PURE__ */ h.jsxs(y, { ...w, children: [
27871
- Ft(t.editorTop, m),
27872
- m && /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
27873
- i && d.editable ? /* @__PURE__ */ h.jsx(Ky, { editor: m }) : null,
27874
- d.editable ? /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
27875
- /* @__PURE__ */ h.jsx(
27876
- _y,
27877
- {
27878
- editor: m,
27879
- prepend: Ft(t.selectionMenuPrepend, m),
27880
- append: Ft(t.selectionMenuAppend, m)
27881
- }
27882
- ),
27883
- /* @__PURE__ */ h.jsx(
27884
- Oy,
27885
- {
27886
- editor: m,
27887
- prepend: Ft(t.tableMenuPrepend, m),
27888
- append: Ft(t.tableMenuAppend, m)
27889
- }
27890
- )
27891
- ] }) : null
27858
+ extensions: f,
27859
+ editable: d ?? !0,
27860
+ ...u
27861
+ }, m);
27862
+ ee(() => {
27863
+ v && d !== void 0 && v.setEditable(d);
27864
+ }, [v, d]), vr(a, () => ({
27865
+ getEditor: () => v,
27866
+ on: ((...k) => (v?.on(...k), v)),
27867
+ off: ((...k) => (v?.off(...k), v)),
27868
+ once: ((...k) => (v?.once(...k), v)),
27869
+ getDocumentMap: () => v ? ro(v) : null,
27870
+ applyTargetedUpdate: (k) => v ? Ad(v, k) : !1,
27871
+ applyTargetedUpdates: (k) => v ? Cy(v, k) : !1
27872
+ }), [v]);
27873
+ const w = l ? Bd : Tb, P = l ? {} : { className: "w-full overflow-visible" };
27874
+ return /* @__PURE__ */ h.jsx(zd.Provider, { value: v, children: /* @__PURE__ */ h.jsxs(w, { ...P, children: [
27875
+ Ft(t.editorTop, v),
27876
+ v && /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
27877
+ i && v.isEditable ? /* @__PURE__ */ h.jsx(Ky, { editor: v }) : null,
27878
+ /* @__PURE__ */ h.jsx(
27879
+ _y,
27880
+ {
27881
+ editor: v,
27882
+ prepend: Ft(t.selectionMenuPrepend, v),
27883
+ append: Ft(t.selectionMenuAppend, v)
27884
+ }
27885
+ ),
27886
+ /* @__PURE__ */ h.jsx(
27887
+ Oy,
27888
+ {
27889
+ editor: v,
27890
+ prepend: Ft(t.tableMenuPrepend, v),
27891
+ append: Ft(t.tableMenuAppend, v)
27892
+ }
27893
+ )
27892
27894
  ] }),
27893
27895
  /* @__PURE__ */ h.jsx(
27894
27896
  Vd,
27895
27897
  {
27896
27898
  ...n,
27897
27899
  className: me(r, l ? "tiptop-editor-no-padding" : null),
27898
- editor: m
27900
+ editor: v
27899
27901
  }
27900
27902
  ),
27901
- Ft(t.editorBottom, m)
27903
+ Ft(t.editorBottom, v)
27902
27904
  ] }) });
27903
27905
  }
27904
27906
  );