tiptop-editor 1.6.2 → 1.6.4

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.
@@ -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;
@@ -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"), y = /* @__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 = {
@@ -1580,7 +1580,7 @@ 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, y = 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 + y, 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 - _, v = 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
1585
  let R = L < v || K > $, V = E < x || M > N;
1586
1586
  if (R && n === "start") o += L - v;
@@ -1826,8 +1826,8 @@ function On(e, t, r, n, a, o, s, l, i, c, d) {
1826
1826
  let { placement: u, crossPlacement: p, axis: f, crossAxis: g, size: b, crossSize: m } = n, y = {};
1827
1827
  var w;
1828
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;
1829
+ var P, k, C, A;
1830
+ p === "center" ? y[g] += (((P = e[m]) !== null && P !== void 0 ? P : 0) - ((k = r[m]) !== null && k !== void 0 ? k : 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;
1831
1831
  const D = e[g] - r[m] + i + c, T = e[g] + e[m] - i - c;
1832
1832
  if (y[g] = ra(y[g], D, T), u === f) {
1833
1833
  let O = l ? d[b] : d[ul[b]];
@@ -1847,10 +1847,10 @@ function jp(e, t, r, n, a, o, s, l, i, c, d) {
1847
1847
  top: Math.max(t.top + g, ((b = d?.offsetTop) !== null && b !== void 0 ? b : t.top) + g),
1848
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))
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) {
@@ -1861,23 +1861,23 @@ function Ao(e, t, r, n, a, o, s, l) {
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
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) {
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;
1871
+ let L = To(k, T[k], r[C], l, i, o, c);
1872
+ T[k] += L;
1873
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];
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
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 = {
1878
+ const x = We[k] === "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[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
  };
@@ -1898,11 +1898,11 @@ function Fp(e) {
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, y, 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: y = 0 } = e, [w, P] = ne(null), k = [
1985
1985
  f,
1986
1986
  l,
1987
1987
  a.current,
@@ -2048,9 +2048,9 @@ function pl(e) {
2048
2048
  let $ = v.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,7 +2294,7 @@ 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: y, removeAllGlobalListeners: w, removeGlobalListener: P } = kn(), k = G((v, $) => {
2298
2298
  let x = m.current;
2299
2299
  if (l || x.didFirePressStart) return !1;
2300
2300
  let N = !0;
@@ -2388,14 +2388,14 @@ function $r(e) {
2388
2388
  x && jn(V, x) && !V.repeat && se(x, X(V)) && v.target && T(kt(v.target, V), "keyboard");
2389
2389
  }, $);
2390
2390
  return y(de(v.target), "keyup", R, !0), () => {
2391
- k(de(v.target), "keyup", R, !0);
2391
+ P(de(v.target), "keyup", R, !0);
2392
2392
  };
2393
2393
  }
2394
2394
  }, [
2395
2395
  M,
2396
2396
  y,
2397
2397
  w,
2398
- k
2398
+ P
2399
2399
  ]);
2400
2400
  let [_, I] = ne(null);
2401
2401
  ge(() => {
@@ -2415,7 +2415,7 @@ function $r(e) {
2415
2415
  B(N);
2416
2416
  };
2417
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);
2418
+ P(de(v.target), "pointerup", $, !1), P(de(v.target), "pointercancel", x, !1);
2419
2419
  };
2420
2420
  } else if (_ === "mouse" && process.env.NODE_ENV === "test") {
2421
2421
  let $ = (x) => {
@@ -2428,7 +2428,7 @@ function $r(e) {
2428
2428
  }
2429
2429
  };
2430
2430
  return y(de(v.target), "mouseup", $, !1), () => {
2431
- k(de(v.target), "mouseup", $, !1);
2431
+ P(de(v.target), "mouseup", $, !1);
2432
2432
  };
2433
2433
  } else if (_ === "touch" && process.env.NODE_ENV === "test") {
2434
2434
  let $ = (x) => {
@@ -2441,13 +2441,13 @@ function $r(e) {
2441
2441
  });
2442
2442
  };
2443
2443
  return y(_e(v.target), "scroll", $, !0), () => {
2444
- k(_e(v.target), "scroll", $, !0);
2444
+ P(_e(v.target), "scroll", $, !0);
2445
2445
  };
2446
2446
  }
2447
2447
  }, [
2448
2448
  _,
2449
2449
  y,
2450
- k
2450
+ P
2451
2451
  ]);
2452
2452
  let j = J(() => {
2453
2453
  let v = m.current, $ = {
@@ -2456,14 +2456,14 @@ function $r(e) {
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));
2459
+ !v.isPressed && !x.repeat && (v.target = x.currentTarget, v.isPressed = !0, z(!0), v.pointerType = "keyboard", R = k(x, "keyboard")), R && x.stopPropagation(), x.metaKey && vt() && ((N = v.metaKeyEvents) === null || N === void 0 || N.set(x.key, x.nativeEvent));
2460
2460
  } else x.key === "Meta" && (v.metaKeyEvents = /* @__PURE__ */ new Map());
2461
2461
  },
2462
2462
  onClick(x) {
2463
2463
  if (!(x && !se(x.currentTarget, X(x))) && x && x.button === 0 && !v.isTriggeringEvent && !ct.isOpening) {
2464
2464
  let N = !0;
2465
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");
2466
+ let R = k(x, "virtual"), V = D(x, "virtual"), Z = C(x, "virtual");
2467
2467
  L(x), N = R && V && Z;
2468
2468
  } else if (v.isPressed && v.pointerType !== "keyboard") {
2469
2469
  let R = v.pointerType || x.nativeEvent.pointerType || "virtual", V = D(kt(x.currentTarget, x), R), Z = C(kt(x.currentTarget, x), R, !0);
@@ -2482,7 +2482,7 @@ function $r(e) {
2482
2482
  v.pointerType = x.pointerType;
2483
2483
  let N = !0;
2484
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);
2485
+ v.isPressed = !0, I("pointer"), v.isOverTarget = !0, v.activePointerId = x.pointerId, v.target = x.currentTarget, u || zo(v.target), N = k(x, v.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
  }
@@ -2498,7 +2498,7 @@ function $r(e) {
2498
2498
  }, $.onPointerUp = (x) => {
2499
2499
  !se(x.currentTarget, X(x)) || v.pointerType === "virtual" || x.button === 0 && !v.isPressed && D(x, v.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 === v.activePointerId && v.target && !v.isOverTarget && v.pointerType != null && (v.isOverTarget = !0, k(kt(v.target, x), v.pointerType));
2502
2502
  }, $.onPointerLeave = (x) => {
2503
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));
2504
2504
  }, $.onDragStart = (x) => {
@@ -2509,14 +2509,14 @@ function $r(e) {
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 (v.isPressed = !0, I("mouse"), v.isOverTarget = !0, v.target = x.currentTarget, v.pointerType = ta(x.nativeEvent) ? "virtual" : "mouse", Sa(() => k(x, v.pointerType)) && x.stopPropagation(), c) {
2513
2513
  let R = Do(x.target);
2514
2514
  R && v.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
+ v.isPressed && !v.ignoreEmulatedMouseEvents && v.pointerType != null && (v.isOverTarget = !0, N = k(x, v.pointerType)), N && x.stopPropagation();
2520
2520
  }, $.onMouseLeave = (x) => {
2521
2521
  if (!se(x.currentTarget, X(x))) return;
2522
2522
  let N = !0;
@@ -2527,7 +2527,7 @@ function $r(e) {
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
+ 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), k(ft(v.target, x), v.pointerType) && x.stopPropagation();
2531
2531
  }, $.onTouchMove = (x) => {
2532
2532
  if (!se(x.currentTarget, X(x))) return;
2533
2533
  if (!v.isPressed) {
@@ -2535,7 +2535,7 @@ function $r(e) {
2535
2535
  return;
2536
2536
  }
2537
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();
2538
+ N && Bo(N, x.currentTarget) ? !v.isOverTarget && v.pointerType != null && (v.isOverTarget = !0, R = k(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();
2539
2539
  }, $.onTouchEnd = (x) => {
2540
2540
  if (!se(x.currentTarget, X(x))) return;
2541
2541
  if (!v.isPressed) {
@@ -2557,7 +2557,7 @@ 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
@@ -2888,8 +2888,8 @@ function Sn(e) {
2888
2888
  relatedTarget: y
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
@@ -4335,7 +4335,7 @@ var ot = em(), tm = (e) => {
4335
4335
  }, y = 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))
@@ -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 = y, P.variants = f, P.defaultVariants = g, P.compoundSlots = c, P.compoundVariants = w, P;
4488
4488
  };
4489
4489
  return {
4490
4490
  tv: t,
@@ -4725,14 +4725,14 @@ const rm = (e, t) => {
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 + y;
4729
+ if (s.indexOf(k) > -1)
4730
4730
  continue;
4731
- s.push(P);
4731
+ s.push(k);
4732
4732
  const C = a(y, 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"), y = 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,9 +4795,9 @@ 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
4802
  }], v = () => ["no-repeat", {
4803
4803
  repeat: ["", "x", "y", "space", "round"]
@@ -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
@@ -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]
@@ -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;
@@ -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) => {
@@ -17922,8 +17922,8 @@ function ob(e) {
17922
17922
  });
17923
17923
  let B = {
17924
17924
  onKeyDown: y,
17925
- onFocus: k,
17926
- onBlur: P,
17925
+ onFocus: P,
17926
+ onBlur: k,
17927
17927
  onMouseDown(E) {
17928
17928
  f.current === X(E) && E.preventDefault();
17929
17929
  }
@@ -17984,7 +17984,7 @@ 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", y = r.isLink(n) && u !== "selection" && u !== "none", w = !i && r.canSelectItem(n) && !b && !m, P = (c || y) && !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 = (v) => {
17988
17988
  if (c) {
17989
17989
  var $;
17990
17990
  c(), ($ = a.current) === null || $ === void 0 || $.dispatchEvent(new CustomEvent("react-aria-item-action", {
@@ -17997,17 +17997,17 @@ function Di(e) {
17997
17997
  };
17998
17998
  if (o ? (K.onPressStart = (v) => {
17999
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) => {
18000
+ }, d ? (K.onPressUp = k ? void 0 : (v) => {
18001
18001
  v.pointerType === "mouse" && w && f(v);
18002
- }, K.onPress = P ? L : (v) => {
18002
+ }, K.onPress = k ? L : (v) => {
18003
18003
  v.pointerType !== "keyboard" && v.pointerType !== "mouse" && w && f(v);
18004
18004
  }) : K.onPress = (v) => {
18005
- if (P || C && v.pointerType !== "mouse") {
18005
+ if (k || C && v.pointerType !== "mouse") {
18006
18006
  if (v.pointerType === "keyboard" && !cs(v.key)) return;
18007
18007
  L(v);
18008
18008
  } else v.pointerType !== "keyboard" && w && f(v);
18009
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);
18010
+ D.current = v.pointerType, O.current = T, B.current = k, w && (v.pointerType === "mouse" && !k || v.pointerType === "keyboard" && (!P || ds(v.key))) && f(v);
18011
18011
  }, K.onPress = (v) => {
18012
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));
18013
18013
  }), g["data-collection"] = tb(r.collection), g["data-key"] = n, K.preventFocusOnPress = s, s && (K = Se(K, {
@@ -18041,7 +18041,7 @@ function Di(e) {
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,
@@ -18394,8 +18394,8 @@ function _i(e) {
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
@@ -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
18567
  let y = 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 = y.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 = y.next(D);
18592
18592
  }
18593
18593
  return;
18594
18594
  }
@@ -18618,8 +18618,8 @@ class db {
18618
18618
  ...y,
18619
18619
  index: m
18620
18620
  }, p.getChildState(r, y), b.key, b);
18621
- for (let k of w)
18622
- m++, yield k;
18621
+ for (let P of w)
18622
+ m++, yield P;
18623
18623
  }
18624
18624
  })
18625
18625
  };
@@ -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,15 +19236,15 @@ 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
19249
  buttonProps: Se(y, C, {
19250
19250
  "aria-haspopup": e["aria-haspopup"],
@@ -19322,8 +19322,8 @@ function kb(e) {
19322
19322
  startContent: m,
19323
19323
  endContent: y,
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,
@@ -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) => {
@@ -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,
@@ -19568,7 +19568,7 @@ function Eb(e) {
19568
19568
  classNames: b,
19569
19569
  allowTextSelectionOnPress: m = !0,
19570
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(
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
  },
@@ -19625,7 +19625,7 @@ function Eb(e) {
19625
19625
  e.isPressable ? { ...L, ...I, role: "button" } : {},
19626
19626
  e.isHoverable ? E : {},
19627
19627
  tt(y, {
19628
- enabled: P
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,
@@ -19653,7 +19653,7 @@ function Eb(e) {
19653
19653
  return {
19654
19654
  context: v,
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), () => {
@@ -19872,8 +19872,8 @@ function Qi(e, t) {
19872
19872
  function b(m) {
19873
19873
  const y = m.current;
19874
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";
19875
+ const w = (y.getAttribute("role") || "").toLowerCase(), P = y.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: {
@@ -19901,8 +19901,8 @@ function _b(e) {
19901
19901
  containerPadding: m = 12,
19902
19902
  placement: y = "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,
@@ -19918,7 +19918,7 @@ function _b(e) {
19918
19918
  ..._
19919
19919
  } = a, I = l || "div", j = (r = (t = e?.disableAnimation) != null ? t : n?.disableAnimation) != null ? r : !1, v = Nb({
19920
19920
  delay: w,
19921
- closeDelay: k,
19921
+ closeDelay: P,
19922
19922
  isDisabled: f,
19923
19923
  defaultOpen: u,
19924
19924
  isOpen: i,
@@ -19955,7 +19955,7 @@ function _b(e) {
19955
19955
  targetRef: $,
19956
19956
  placement: Vi(y),
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
@@ -20003,7 +20003,7 @@ function _b(e) {
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
20008
  "data-placement": fn(te || "top", y),
20009
20009
  ...fe(U, ie, _),
@@ -20014,7 +20014,7 @@ function _b(e) {
20014
20014
  [
20015
20015
  ue,
20016
20016
  R,
20017
- P,
20017
+ k,
20018
20018
  f,
20019
20019
  te,
20020
20020
  y,
@@ -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
20034
  "data-placement": fn(te || "top", y),
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, y, z]
20038
20038
  );
20039
20039
  return {
20040
20040
  Component: I,
@@ -20042,7 +20042,7 @@ 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
20047
  placement: y,
20048
20048
  disableAnimation: j,
@@ -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: y, ...w } = p(), P = /* @__PURE__ */ h.jsx("div", { ref: b, id: m, style: y, 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: 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: P }) }) })
20104
20104
  ] });
20105
20105
  });
20106
20106
  ec.displayName = "HeroUI.Tooltip";
@@ -20124,9 +20124,9 @@ function Ob(e, t) {
20124
20124
  shouldCloseOnInteractOutside: m,
20125
20125
  isNonModal: y,
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 = y ?? !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]);
@@ -20191,8 +20191,8 @@ function jb(e) {
20191
20191
  isNonModal: m = !0,
20192
20192
  shouldFlip: y = !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,
@@ -20230,7 +20230,7 @@ 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,
@@ -20252,7 +20252,7 @@ function jb(e) {
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: y, titleProps: w } = Bb({}, m), P = u({
20408
20408
  ref: m,
20409
20409
  ...y,
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: y, 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;
@@ -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;
@@ -20936,8 +20936,8 @@ function Jb(e) {
20936
20936
  classNames: m,
20937
20937
  onAction: y,
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,
@@ -20954,9 +20954,9 @@ function Jb(e) {
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,7 +20972,7 @@ 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,
@@ -21083,8 +21083,8 @@ var Wc = (e) => {
21083
21083
  getLabelProps: m,
21084
21084
  getDescriptionProps: y,
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]);
@@ -21095,7 +21095,7 @@ var Wc = (e) => {
21095
21095
  /* @__PURE__ */ h.jsx("span", { ...y(), 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,7 +21122,7 @@ 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 y = 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
  });
@@ -21131,7 +21131,7 @@ var Hc = Wc, Vc = Ye(
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
  }
@@ -21209,18 +21209,18 @@ function Qb(e) {
21209
21209
  hideEmptyContent: m = !1,
21210
21210
  hideSelectedIcon: y = !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,
@@ -21269,22 +21269,22 @@ var eh = Ye(function(t, r) {
21269
21269
  getEmptyContentProps: y
21270
21270
  } = Qb({ ...t, ref: r }), w = /* @__PURE__ */ h.jsxs(n, { ...m(), children: [
21271
21271
  !a.collection.size && !c && /* @__PURE__ */ h.jsx("li", { children: /* @__PURE__ */ h.jsx("div", { ...y() }) }),
21272
- [...a.collection].map((k) => {
21273
- const P = {
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: [
@@ -21362,7 +21362,7 @@ function ch(e) {
21362
21362
  onClose: m,
21363
21363
  className: y,
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,
@@ -21413,7 +21413,7 @@ function ch(e) {
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,
@@ -22199,12 +22199,12 @@ function _h(e, t, r) {
22199
22199
  var b;
22200
22200
  let m = (b = e.shouldUseVirtualFocus) !== null && b !== void 0 ? b : s?.shouldUseVirtualFocus;
22201
22201
  var y;
22202
- let w = (y = e.isVirtualized) !== null && y !== void 0 ? y : s?.isVirtualized, k = Ut(), P = Ut(), C = {
22202
+ let w = (y = e.isVirtualized) !== null && y !== void 0 ? y : 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(),
@@ -22298,22 +22298,22 @@ function Oh(e) {
22298
22298
  emptyContent: m = "No items.",
22299
22299
  hideSelectedIcon: y = !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,
22316
+ shouldHighlightOnFocus: P,
22317
22317
  hideSelectedIcon: y,
22318
22318
  disableAnimation: u,
22319
22319
  className: f,
@@ -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
  };
@@ -22386,8 +22386,8 @@ function jh(e) {
22386
22386
  autoFocus: m,
22387
22387
  onPress: y,
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,
@@ -22400,8 +22400,8 @@ function jh(e) {
22400
22400
  onClick: A,
22401
22401
  onPress: y,
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: _
@@ -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", y = 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,7 +22557,7 @@ var qa = Jc, Zc = Ye(
22557
22557
  m,
22558
22558
  {
22559
22559
  "data-slot": "base",
22560
- ...fe(P, g),
22560
+ ...fe(k, g),
22561
22561
  className: y.base({ class: w }),
22562
22562
  children: [
22563
22563
  e.rendered && /* @__PURE__ */ h.jsx(
@@ -22600,7 +22600,7 @@ var qa = Jc, Zc = Ye(
22600
22600
  {
22601
22601
  as: "li",
22602
22602
  className: y.divider({
22603
- class: k
22603
+ class: P
22604
22604
  }),
22605
22605
  ...d
22606
22606
  }
@@ -22643,10 +22643,10 @@ function Bh(e = {}) {
22643
22643
  { type: "vertical", prefix: "top", suffix: "bottom" },
22644
22644
  { type: "horizontal", prefix: "left", suffix: "right" }
22645
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);
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 < y : 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) => {
@@ -22691,19 +22691,19 @@ function Fh(e) {
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: y, domRef: m, children: s, getBaseProps: (P = {}) => {
22695
+ var k;
22696
22696
  return {
22697
22697
  ref: m,
22698
22698
  className: y,
22699
- "data-orientation": (P = e.orientation) != null ? P : "vertical",
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
  }
@@ -22748,9 +22748,9 @@ var Kh = (e, t) => {
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 } = y, 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,
@@ -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: {
@@ -22857,11 +22857,11 @@ var Kh = (e, t) => {
22857
22857
  shouldHighlightOnFocus: m,
22858
22858
  disableAnimation: y,
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;
@@ -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) => {
@@ -23359,8 +23359,8 @@ var bv = (e) => !("type" in e), hv = (e, t, r) => ({ tr: n, dispatch: a, editor:
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), y = m.node(), w = m.parentOffset === 0, P = y.isText || y.isTextblock, k = y.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,10 +23709,10 @@ 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,
23712
+ const y = Math.max(f, m), w = Math.min(g, m + b.nodeSize), P = w - y;
23713
+ s += P, l.push(
23714
+ ...b.marks.map((k) => ({
23715
+ mark: k,
23716
23716
  from: y,
23717
23717
  to: w
23718
23718
  }))
@@ -23905,16 +23905,16 @@ var s0 = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: r, dispatch: n, editor
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
23907
  y = ht.from(i.node(T).copy(y));
23908
- const k = (
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;
23914
+ }, C = ((s = l.contentMatch.defaultType) == null ? void 0 : s.createAndFill(k)) || void 0;
23915
23915
  y = y.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(y, 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: y, storedMarks: w } = n, { splittableMarks: P } = o.extensionManager, k = w || y.$to.parentOffset && y.$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: y, $to: w } = b, P = y.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 }) => {
@@ -24058,10 +24058,10 @@ var s0 = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: r, dispatch: n, editor
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(y, d), k = Math.min(y + 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
@@ -24236,15 +24236,15 @@ 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 y = p.slice(g).map(f.from, -1), w = p.slice(g).map(f.to), P = p.invert().map(y, -1), k = 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));
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
24250
  from: y,
@@ -24596,8 +24596,8 @@ 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;
24599
+ const [y, w = ""] = m, P = a(w);
24600
+ let k = 1;
24601
24601
  const C = y.length;
24602
24602
  let A = "";
24603
24603
  const D = /^:::([\w-]*)(\s.*)?/gm, T = u.slice(C);
@@ -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
  };
@@ -24710,18 +24710,18 @@ function R0(e) {
24710
24710
  return;
24711
24711
  let y = "", 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, y = 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
24723
  content: y.trim(),
24724
- attributes: k
24724
+ attributes: P
24725
24725
  };
24726
24726
  }
24727
24727
  },
@@ -24775,14 +24775,14 @@ function O0(e, t, r) {
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 = y.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 [y, 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
25263
  if (!(!y || !g || g.isDestroyed)) {
25264
- if (k.current) {
25265
- k.current = !1;
25264
+ if (P.current) {
25265
+ P.current = !1;
25266
25266
  return;
25267
25267
  }
25268
25268
  g.view.dispatch(
@@ -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
25320
  return w.current = !0, y(!0), () => {
25321
25321
  y(!1), f.unregisterPlugin(C), window.requestAnimationFrame(() => {
25322
- k.parentNode && k.parentNode.removeChild(k);
25322
+ P.parentNode && P.parentNode.removeChild(P);
25323
25323
  });
25324
25324
  };
25325
25325
  }, [f]), ee(() => {
@@ -26833,13 +26833,13 @@ function Is(e, t, r, n, a, o) {
26833
26833
  const y = a === f ? o : b && b[m], w = y ? `${y}px` : "";
26834
26834
  if (l += y || n, y || (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, y);
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, y);
26842
+ P.style.setProperty(k, C), t.appendChild(P);
26843
26843
  }
26844
26844
  }
26845
26845
  }
@@ -26934,8 +26934,8 @@ function Qy(e, t, r = {}) {
26934
26934
  g.content && g.content.forEach((m) => {
26935
26935
  let y = "";
26936
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 });
26937
+ const w = Zy(y), 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);
@@ -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(
@@ -27558,8 +27558,8 @@ const px = Ne.create({
27558
27558
  { uploading: !1, failed: !0, errorMessage: "Upload cancelled", progress: 0 }
27559
27559
  ), e.delete(n);
27560
27560
  }, m = (y, w) => {
27561
- const k = e.get(n);
27562
- return !k || k.cancelled ? !1 : (p({ progress: y }), !0);
27561
+ const P = e.get(n);
27562
+ return !P || P.cancelled ? !1 : (p({ progress: y }), !0);
27563
27563
  };
27564
27564
  (async () => {
27565
27565
  try {
@@ -27601,10 +27601,10 @@ 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);
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
27608
  } catch (y) {
27609
27609
  y instanceof Error && (y.name === "AbortError" ? b() : g(y.message));
27610
27610
  }
@@ -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
+ ]), y = 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
+ y && d !== void 0 && y.setEditable(d);
27864
+ }, [y, d]), vr(a, () => ({
27865
+ getEditor: () => y,
27866
+ on: ((...k) => (y?.on(...k), y)),
27867
+ off: ((...k) => (y?.off(...k), y)),
27868
+ once: ((...k) => (y?.once(...k), y)),
27869
+ getDocumentMap: () => y ? ro(y) : null,
27870
+ applyTargetedUpdate: (k) => y ? Ad(y, k) : !1,
27871
+ applyTargetedUpdates: (k) => y ? Cy(y, k) : !1
27872
+ }), [y]);
27873
+ const w = l ? Bd : Tb, P = l ? {} : { className: "w-full overflow-visible" };
27874
+ return /* @__PURE__ */ h.jsx(zd.Provider, { value: y, children: /* @__PURE__ */ h.jsxs(w, { ...P, children: [
27875
+ Ft(t.editorTop, y),
27876
+ y && /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
27877
+ i ? /* @__PURE__ */ h.jsx(Ky, { editor: y }) : null,
27878
+ /* @__PURE__ */ h.jsx(
27879
+ _y,
27880
+ {
27881
+ editor: y,
27882
+ prepend: Ft(t.selectionMenuPrepend, y),
27883
+ append: Ft(t.selectionMenuAppend, y)
27884
+ }
27885
+ ),
27886
+ /* @__PURE__ */ h.jsx(
27887
+ Oy,
27888
+ {
27889
+ editor: y,
27890
+ prepend: Ft(t.tableMenuPrepend, y),
27891
+ append: Ft(t.tableMenuAppend, y)
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: y
27899
27901
  }
27900
27902
  ),
27901
- Ft(t.editorBottom, m)
27903
+ Ft(t.editorBottom, y)
27902
27904
  ] }) });
27903
27905
  }
27904
27906
  );