vdc-editor 0.1.84 → 0.1.86

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.
@@ -2,7 +2,7 @@ var MR = Object.defineProperty;
2
2
  var NR = (t, e, n) => e in t ? MR(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var En = (t, e, n) => NR(t, typeof e != "symbol" ? e + "" : e, n);
4
4
  import * as Q3 from "vue";
5
- import { computed as Y, ref as U, shallowRef as Zp, watch as He, getCurrentScope as px, onScopeDispose as hx, shallowReadonly as al, unref as b, defineComponent as j, createBlock as $, openBlock as N, mergeProps as Se, withCtx as M, renderSlot as te, toRefs as In, createElementBlock as xe, Fragment as et, createVNode as P, createCommentVNode as $e, withKeys as pc, withModifiers as Qn, h as Mn, normalizeProps as Ut, guardReactiveProps as Zt, onMounted as ht, toHandlers as RR, resolveDynamicComponent as Zr, getCurrentInstance as Br, toRef as LR, camelize as mx, toHandlerKey as IR, nextTick as Dt, inject as Xn, provide as rr, Comment as gx, cloneVNode as DR, readonly as bx, watchEffect as xn, Teleport as Qp, useSlots as eh, createTextVNode as lt, toDisplayString as Fe, onUnmounted as ur, reactive as vo, normalizeStyle as Jt, mergeDefaults as vx, watchPostEffect as PR, markRaw as pb, effectScope as hb, customRef as yx, onBeforeUnmount as Er, onBeforeUpdate as BR, onUpdated as FR, isRef as th, createElementVNode as ne, renderList as $t, onBeforeMount as jc, withDirectives as Io, vModelSelect as $R, Text as HR, normalizeClass as ut, createSlots as mb, vModelText as zR, render as e4, vShow as zi, useAttrs as nh } from "vue";
5
+ import { computed as Y, ref as U, shallowRef as Zp, watch as He, getCurrentScope as px, onScopeDispose as hx, shallowReadonly as al, unref as b, defineComponent as j, createBlock as $, openBlock as N, mergeProps as Se, withCtx as M, renderSlot as te, toRefs as In, createElementBlock as xe, Fragment as et, createVNode as B, createCommentVNode as $e, withKeys as pc, withModifiers as Qn, h as Mn, normalizeProps as Ut, guardReactiveProps as Zt, onMounted as ht, toHandlers as RR, resolveDynamicComponent as Zr, getCurrentInstance as Br, toRef as LR, camelize as mx, toHandlerKey as IR, nextTick as Dt, inject as Xn, provide as rr, Comment as gx, cloneVNode as DR, readonly as bx, watchEffect as xn, Teleport as Qp, useSlots as eh, createTextVNode as lt, toDisplayString as Fe, onUnmounted as ur, reactive as vo, normalizeStyle as Jt, mergeDefaults as vx, watchPostEffect as PR, markRaw as pb, effectScope as hb, customRef as yx, onBeforeUnmount as Er, onBeforeUpdate as BR, onUpdated as FR, isRef as th, createElementVNode as ne, renderList as $t, onBeforeMount as jc, withDirectives as Io, vModelSelect as $R, Text as HR, normalizeClass as ut, createSlots as mb, vModelText as zR, render as e4, vShow as zi, useAttrs as nh } from "vue";
6
6
  import { useVModel as VR, useLocalStorage as UR, createEventHook as t4, createGlobalState as WR, useFullscreen as jR, useEventBus as cr, useFocus as qR, onClickOutside as gb, useFileDialog as KR, useDark as rh, useToggle as oh, useElementSize as GR, useElementBounding as n4, useIntervalFn as JR } from "@vueuse/core";
7
7
  const XR = ["top", "right", "bottom", "left"], Ms = Math.min, Wr = Math.max, Jf = Math.round, Zd = Math.floor, ti = (t) => ({
8
8
  x: t,
@@ -287,7 +287,7 @@ const iL = (t) => ({
287
287
  }, m = yb(o), g = vb(m), y = await s.getDimensions(u), w = m === "y", x = w ? "top" : "left", C = w ? "bottom" : "right", S = w ? "clientHeight" : "clientWidth", _ = i.reference[g] + i.reference[m] - h[m] - i.floating[g], k = h[m] - i.reference[m], T = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
288
288
  let A = T ? T[S] : 0;
289
289
  (!A || !await (s.isElement == null ? void 0 : s.isElement(T))) && (A = a.floating[S] || i.floating[g]);
290
- const D = _ / 2 - k / 2, I = A / 2 - y[g] / 2 - 1, B = Ms(p[x], I), V = Ms(p[C], I), ee = B, he = A - y[g] - V, Oe = A / 2 - y[g] / 2 + D, q = I1(ee, Oe, he), G = !l.arrow && Jl(o) != null && Oe !== q && i.reference[g] / 2 - (Oe < ee ? B : V) - y[g] / 2 < 0, F = G ? Oe < ee ? Oe - ee : Oe - he : 0;
290
+ const D = _ / 2 - k / 2, I = A / 2 - y[g] / 2 - 1, P = Ms(p[x], I), V = Ms(p[C], I), ee = P, he = A - y[g] - V, Oe = A / 2 - y[g] / 2 + D, q = I1(ee, Oe, he), G = !l.arrow && Jl(o) != null && Oe !== q && i.reference[g] / 2 - (Oe < ee ? P : V) - y[g] / 2 < 0, F = G ? Oe < ee ? Oe - ee : Oe - he : 0;
291
291
  return {
292
292
  [m]: h[m] + F,
293
293
  data: {
@@ -327,12 +327,12 @@ const iL = (t) => ({
327
327
  const x = ji(o), C = Ns(a), S = ji(a) === a, _ = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), k = h || (S || !y ? [Xf(a)] : eL(a)), T = g !== "none";
328
328
  !h && T && k.push(...nL(a, y, g, _));
329
329
  const A = [a, ...k], D = await hc(e, w), I = [];
330
- let B = ((r = i.flip) == null ? void 0 : r.overflows) || [];
330
+ let P = ((r = i.flip) == null ? void 0 : r.overflows) || [];
331
331
  if (d && I.push(D[x]), p) {
332
332
  const Oe = QR(o, s, _);
333
333
  I.push(D[Oe[0]], D[Oe[1]]);
334
334
  }
335
- if (B = [...B, {
335
+ if (P = [...P, {
336
336
  placement: o,
337
337
  overflows: I
338
338
  }], !I.every((Oe) => Oe <= 0)) {
@@ -342,18 +342,18 @@ const iL = (t) => ({
342
342
  return {
343
343
  data: {
344
344
  index: Oe,
345
- overflows: B
345
+ overflows: P
346
346
  },
347
347
  reset: {
348
348
  placement: q
349
349
  }
350
350
  };
351
- let G = (ee = B.filter((F) => F.overflows[0] <= 0).sort((F, Q) => F.overflows[1] - Q.overflows[1])[0]) == null ? void 0 : ee.placement;
351
+ let G = (ee = P.filter((F) => F.overflows[0] <= 0).sort((F, Q) => F.overflows[1] - Q.overflows[1])[0]) == null ? void 0 : ee.placement;
352
352
  if (!G)
353
353
  switch (m) {
354
354
  case "bestFit": {
355
355
  var he;
356
- const F = (he = B.filter((Q) => {
356
+ const F = (he = P.filter((Q) => {
357
357
  if (T) {
358
358
  const ie = Ns(Q.placement);
359
359
  return ie === C || // Create a bias to the `y` side axis due to horizontal
@@ -604,8 +604,8 @@ const uL = function(t) {
604
604
  const C = y - d.top - d.bottom, S = g - d.left - d.right, _ = Ms(y - d[w], C), k = Ms(g - d[x], S), T = !e.middlewareData.shift;
605
605
  let A = _, D = k;
606
606
  if ((n = e.middlewareData.shift) != null && n.enabled.x && (D = S), (r = e.middlewareData.shift) != null && r.enabled.y && (A = C), T && !h) {
607
- const B = Wr(d.left, 0), V = Wr(d.right, 0), ee = Wr(d.top, 0), he = Wr(d.bottom, 0);
608
- m ? D = g - 2 * (B !== 0 || V !== 0 ? B + V : Wr(d.left, d.right)) : A = y - 2 * (ee !== 0 || he !== 0 ? ee + he : Wr(d.top, d.bottom));
607
+ const P = Wr(d.left, 0), V = Wr(d.right, 0), ee = Wr(d.top, 0), he = Wr(d.bottom, 0);
608
+ m ? D = g - 2 * (P !== 0 || V !== 0 ? P + V : Wr(d.left, d.right)) : A = y - 2 * (ee !== 0 || he !== 0 ? ee + he : Wr(d.top, d.bottom));
609
609
  }
610
610
  await l({
611
611
  ...e,
@@ -2641,7 +2641,7 @@ const Kx = /* @__PURE__ */ j({
2641
2641
  onUnmountAutoFocus: l[6] || (l[6] = (u) => r("closeAutoFocus", u))
2642
2642
  }, {
2643
2643
  default: M(() => [
2644
- P(b(Jc), Se({
2644
+ B(b(Jc), Se({
2645
2645
  id: b(o).contentId,
2646
2646
  ref: b(i),
2647
2647
  as: a.as,
@@ -2808,7 +2808,7 @@ const Kx = /* @__PURE__ */ j({
2808
2808
  present: r.forceMount || b(e).open.value
2809
2809
  }, {
2810
2810
  default: M(() => [
2811
- P(eD, Se(r.$attrs, {
2811
+ B(eD, Se(r.$attrs, {
2812
2812
  ref: b(n),
2813
2813
  as: r.as,
2814
2814
  "as-child": r.asChild
@@ -2913,7 +2913,7 @@ const oD = ["value", "checked", "name", "disabled", "required"], [iD, sD] = ln("
2913
2913
  disabled: o,
2914
2914
  state: i
2915
2915
  }), (d, p) => (N(), xe(et, null, [
2916
- P(b(ft), Se(d.$attrs, {
2916
+ B(b(ft), Se(d.$attrs, {
2917
2917
  id: d.id,
2918
2918
  ref: b(s),
2919
2919
  role: "checkbox",
@@ -2968,7 +2968,7 @@ const oD = ["value", "checked", "name", "disabled", "required"], [iD, sD] = ln("
2968
2968
  present: r.forceMount || b(Qf)(b(n).state.value) || b(n).state.value === !0
2969
2969
  }, {
2970
2970
  default: M(() => [
2971
- P(b(ft), Se({
2971
+ B(b(ft), Se({
2972
2972
  ref: b(e),
2973
2973
  "data-state": b(Jx)(b(n).state.value),
2974
2974
  "data-disabled": b(n).disabled.value ? "" : void 0,
@@ -3099,8 +3099,8 @@ const Yx = {
3099
3099
  }),
3100
3100
  LL({
3101
3101
  ...g.value,
3102
- apply: ({ elements: B, rects: V, availableWidth: ee, availableHeight: he }) => {
3103
- const { width: Oe, height: q } = V.reference, G = B.floating.style;
3102
+ apply: ({ elements: P, rects: V, availableWidth: ee, availableHeight: he }) => {
3103
+ const { width: Oe, height: q } = V.reference, G = P.floating.style;
3104
3104
  G.setProperty(
3105
3105
  "--radix-popper-available-width",
3106
3106
  `${ee}px`
@@ -3128,7 +3128,7 @@ const Yx = {
3128
3128
  {
3129
3129
  strategy: "fixed",
3130
3130
  placement: p,
3131
- whileElementsMounted: (...B) => ML(...B, {
3131
+ whileElementsMounted: (...P) => ML(...P, {
3132
3132
  animationFrame: n.updatePositionStrategy === "always"
3133
3133
  }),
3134
3134
  middleware: y
@@ -3143,27 +3143,27 @@ const Yx = {
3143
3143
  });
3144
3144
  const T = Y(
3145
3145
  () => {
3146
- var B;
3147
- return ((B = S.value.arrow) == null ? void 0 : B.centerOffset) !== 0;
3146
+ var P;
3147
+ return ((P = S.value.arrow) == null ? void 0 : P.centerOffset) !== 0;
3148
3148
  }
3149
3149
  ), A = U("");
3150
3150
  xn(() => {
3151
3151
  s.value && (A.value = window.getComputedStyle(s.value).zIndex);
3152
3152
  });
3153
3153
  const D = Y(() => {
3154
- var B;
3155
- return ((B = S.value.arrow) == null ? void 0 : B.x) ?? 0;
3154
+ var P;
3155
+ return ((P = S.value.arrow) == null ? void 0 : P.x) ?? 0;
3156
3156
  }), I = Y(() => {
3157
- var B;
3158
- return ((B = S.value.arrow) == null ? void 0 : B.y) ?? 0;
3157
+ var P;
3158
+ return ((P = S.value.arrow) == null ? void 0 : P.y) ?? 0;
3159
3159
  });
3160
3160
  return fD({
3161
3161
  placedSide: _,
3162
- onArrowChange: (B) => l.value = B,
3162
+ onArrowChange: (P) => l.value = P,
3163
3163
  arrowX: D,
3164
3164
  arrowY: I,
3165
3165
  shouldHideArrow: T
3166
- }), (B, V) => {
3166
+ }), (P, V) => {
3167
3167
  var ee, he, Oe;
3168
3168
  return N(), xe("div", {
3169
3169
  ref_key: "floatingRef",
@@ -3188,9 +3188,9 @@ const Yx = {
3188
3188
  }
3189
3189
  })
3190
3190
  }, [
3191
- P(b(ft), Se({ ref: b(i) }, B.$attrs, {
3191
+ B(b(ft), Se({ ref: b(i) }, P.$attrs, {
3192
3192
  "as-child": n.asChild,
3193
- as: B.as,
3193
+ as: P.as,
3194
3194
  "data-side": _.value,
3195
3195
  "data-align": k.value,
3196
3196
  style: {
@@ -3200,7 +3200,7 @@ const Yx = {
3200
3200
  }
3201
3201
  }), {
3202
3202
  default: M(() => [
3203
- te(B.$slots, "default")
3203
+ te(P.$slots, "default")
3204
3204
  ]),
3205
3205
  _: 3
3206
3206
  }, 16, ["as-child", "as", "data-side", "data-align", "style"])
@@ -3441,7 +3441,7 @@ const [kD, AD] = ln("RovingFocusGroup"), i5 = /* @__PURE__ */ j({
3441
3441
  }
3442
3442
  }), (w, x) => (N(), $(b(gD), null, {
3443
3443
  default: M(() => [
3444
- P(b(ft), {
3444
+ B(b(ft), {
3445
3445
  tabindex: d.value || h.value === 0 ? -1 : 0,
3446
3446
  "data-orientation": b(s),
3447
3447
  as: w.as,
@@ -3512,7 +3512,7 @@ const [kD, AD] = ln("RovingFocusGroup"), i5 = /* @__PURE__ */ j({
3512
3512
  }
3513
3513
  return (a, l) => (N(), $(b(Qx), null, {
3514
3514
  default: M(() => [
3515
- P(b(ft), {
3515
+ B(b(ft), {
3516
3516
  tabindex: o.value ? 0 : -1,
3517
3517
  "data-orientation": b(n).orientation.value,
3518
3518
  "data-active": a.active,
@@ -3563,28 +3563,28 @@ const [kD, AD] = ln("RovingFocusGroup"), i5 = /* @__PURE__ */ j({
3563
3563
  const n = t, r = e, o = bh(), i = Ob(), { trapFocus: s, disableOutsidePointerEvents: a, loop: l } = In(n);
3564
3564
  Sb(), dh(a.value);
3565
3565
  const u = U(""), d = U(0), p = U(0), h = U(null), m = U("right"), g = U(0), y = U(null), { createCollection: w } = Kc(), { forwardRef: x, currentElement: C } = Ve(), S = w(C);
3566
- He(C, (B) => {
3567
- o.onContentChange(B);
3566
+ He(C, (P) => {
3567
+ o.onContentChange(P);
3568
3568
  });
3569
3569
  const { handleTypeaheadSearch: _ } = Tb(S);
3570
3570
  ur(() => {
3571
3571
  window.clearTimeout(d.value);
3572
3572
  });
3573
- function k(B) {
3573
+ function k(P) {
3574
3574
  var V, ee;
3575
- return m.value === ((V = h.value) == null ? void 0 : V.side) && KI(B, (ee = h.value) == null ? void 0 : ee.area);
3575
+ return m.value === ((V = h.value) == null ? void 0 : V.side) && KI(P, (ee = h.value) == null ? void 0 : ee.area);
3576
3576
  }
3577
- async function T(B) {
3577
+ async function T(P) {
3578
3578
  var V;
3579
- r("openAutoFocus", B), !B.defaultPrevented && (B.preventDefault(), (V = C.value) == null || V.focus({
3579
+ r("openAutoFocus", P), !P.defaultPrevented && (P.preventDefault(), (V = C.value) == null || V.focus({
3580
3580
  preventScroll: !0
3581
3581
  }));
3582
3582
  }
3583
- function A(B) {
3584
- if (B.defaultPrevented)
3583
+ function A(P) {
3584
+ if (P.defaultPrevented)
3585
3585
  return;
3586
- const V = B.target.closest("[data-radix-menu-content]") === B.currentTarget, ee = B.ctrlKey || B.altKey || B.metaKey, he = B.key.length === 1, Oe = iI(
3587
- B,
3586
+ const V = P.target.closest("[data-radix-menu-content]") === P.currentTarget, ee = P.ctrlKey || P.altKey || P.metaKey, he = P.key.length === 1, Oe = iI(
3587
+ P,
3588
3588
  ar(),
3589
3589
  C.value,
3590
3590
  {
@@ -3597,46 +3597,46 @@ const [kD, AD] = ln("RovingFocusGroup"), i5 = /* @__PURE__ */ j({
3597
3597
  );
3598
3598
  if (Oe)
3599
3599
  return Oe == null ? void 0 : Oe.focus();
3600
- if (B.code === "Space" || (V && (B.key === "Tab" && B.preventDefault(), !ee && he && _(B.key)), B.target !== C.value) || !jI.includes(B.key))
3600
+ if (P.code === "Space" || (V && (P.key === "Tab" && P.preventDefault(), !ee && he && _(P.key)), P.target !== C.value) || !jI.includes(P.key))
3601
3601
  return;
3602
- B.preventDefault();
3602
+ P.preventDefault();
3603
3603
  const q = S.value;
3604
- Wx.includes(B.key) && q.reverse(), V1(q);
3604
+ Wx.includes(P.key) && q.reverse(), V1(q);
3605
3605
  }
3606
- function D(B) {
3606
+ function D(P) {
3607
3607
  var V, ee;
3608
- (ee = (V = B == null ? void 0 : B.currentTarget) == null ? void 0 : V.contains) != null && ee.call(V, B.target) || (window.clearTimeout(d.value), u.value = "");
3608
+ (ee = (V = P == null ? void 0 : P.currentTarget) == null ? void 0 : V.contains) != null && ee.call(V, P.target) || (window.clearTimeout(d.value), u.value = "");
3609
3609
  }
3610
- function I(B) {
3610
+ function I(P) {
3611
3611
  var V;
3612
- if (!U1(B))
3612
+ if (!U1(P))
3613
3613
  return;
3614
- const ee = B.target, he = g.value !== B.clientX;
3615
- if ((V = B == null ? void 0 : B.currentTarget) != null && V.contains(ee) && he) {
3616
- const Oe = B.clientX > g.value ? "right" : "left";
3617
- m.value = Oe, g.value = B.clientX;
3614
+ const ee = P.target, he = g.value !== P.clientX;
3615
+ if ((V = P == null ? void 0 : P.currentTarget) != null && V.contains(ee) && he) {
3616
+ const Oe = P.clientX > g.value ? "right" : "left";
3617
+ m.value = Oe, g.value = P.clientX;
3618
3618
  }
3619
3619
  }
3620
3620
  return MD({
3621
- onItemEnter: (B) => !!k(B),
3622
- onItemLeave: (B) => {
3621
+ onItemEnter: (P) => !!k(P),
3622
+ onItemLeave: (P) => {
3623
3623
  var V;
3624
- k(B) || ((V = C.value) == null || V.focus(), y.value = null);
3624
+ k(P) || ((V = C.value) == null || V.focus(), y.value = null);
3625
3625
  },
3626
- onTriggerLeave: (B) => !!k(B),
3626
+ onTriggerLeave: (P) => !!k(P),
3627
3627
  searchRef: u,
3628
3628
  pointerGraceTimerRef: p,
3629
- onPointerGraceIntentChange: (B) => {
3630
- h.value = B;
3629
+ onPointerGraceIntentChange: (P) => {
3630
+ h.value = P;
3631
3631
  }
3632
- }), (B, V) => (N(), $(b(ph), {
3632
+ }), (P, V) => (N(), $(b(ph), {
3633
3633
  "as-child": "",
3634
3634
  trapped: b(s),
3635
3635
  onMountAutoFocus: T,
3636
3636
  onUnmountAutoFocus: V[7] || (V[7] = (ee) => r("closeAutoFocus", ee))
3637
3637
  }, {
3638
3638
  default: M(() => [
3639
- P(b(Jc), {
3639
+ B(b(Jc), {
3640
3640
  "as-child": "",
3641
3641
  "disable-outside-pointer-events": b(a),
3642
3642
  onEscapeKeyDown: V[2] || (V[2] = (ee) => r("escapeKeyDown", ee)),
@@ -3646,7 +3646,7 @@ const [kD, AD] = ln("RovingFocusGroup"), i5 = /* @__PURE__ */ j({
3646
3646
  onDismiss: V[6] || (V[6] = (ee) => r("dismiss"))
3647
3647
  }, {
3648
3648
  default: M(() => [
3649
- P(b(i5), {
3649
+ B(b(i5), {
3650
3650
  "current-tab-stop-id": y.value,
3651
3651
  "onUpdate:currentTabStopId": V[0] || (V[0] = (ee) => y.value = ee),
3652
3652
  "as-child": "",
@@ -3658,32 +3658,32 @@ const [kD, AD] = ln("RovingFocusGroup"), i5 = /* @__PURE__ */ j({
3658
3658
  })
3659
3659
  }, {
3660
3660
  default: M(() => [
3661
- P(b(gh), {
3661
+ B(b(gh), {
3662
3662
  ref: b(x),
3663
3663
  role: "menu",
3664
- as: B.as,
3665
- "as-child": B.asChild,
3664
+ as: P.as,
3665
+ "as-child": P.asChild,
3666
3666
  "aria-orientation": "vertical",
3667
3667
  "data-radix-menu-content": "",
3668
3668
  "data-state": b(jx)(b(o).open.value),
3669
3669
  dir: b(i).dir.value,
3670
- side: B.side,
3671
- "side-offset": B.sideOffset,
3672
- align: B.align,
3673
- "align-offset": B.alignOffset,
3674
- "avoid-collisions": B.avoidCollisions,
3675
- "collision-boundary": B.collisionBoundary,
3676
- "collision-padding": B.collisionPadding,
3677
- "arrow-padding": B.arrowPadding,
3678
- "prioritize-position": B.prioritizePosition,
3679
- sticky: B.sticky,
3680
- "hide-when-detached": B.hideWhenDetached,
3670
+ side: P.side,
3671
+ "side-offset": P.sideOffset,
3672
+ align: P.align,
3673
+ "align-offset": P.alignOffset,
3674
+ "avoid-collisions": P.avoidCollisions,
3675
+ "collision-boundary": P.collisionBoundary,
3676
+ "collision-padding": P.collisionPadding,
3677
+ "arrow-padding": P.arrowPadding,
3678
+ "prioritize-position": P.prioritizePosition,
3679
+ sticky: P.sticky,
3680
+ "hide-when-detached": P.hideWhenDetached,
3681
3681
  onKeydown: A,
3682
3682
  onBlur: D,
3683
3683
  onPointermove: I
3684
3684
  }, {
3685
3685
  default: M(() => [
3686
- te(B.$slots, "default")
3686
+ te(P.$slots, "default")
3687
3687
  ]),
3688
3688
  _: 3
3689
3689
  }, 8, ["as", "as-child", "data-state", "dir", "side", "side-offset", "align", "align-offset", "avoid-collisions", "collision-boundary", "collision-padding", "arrow-padding", "prioritize-position", "sticky", "hide-when-detached"])
@@ -3725,7 +3725,7 @@ const [kD, AD] = ln("RovingFocusGroup"), i5 = /* @__PURE__ */ j({
3725
3725
  value: { textValue: a.textValue }
3726
3726
  }, {
3727
3727
  default: M(() => [
3728
- P(b(ft), Se({
3728
+ B(b(ft), Se({
3729
3729
  ref: b(r),
3730
3730
  role: "menuitem",
3731
3731
  tabindex: "-1"
@@ -3814,7 +3814,7 @@ const [kD, AD] = ln("RovingFocusGroup"), i5 = /* @__PURE__ */ j({
3814
3814
  present: n.forceMount || b(Zf)(b(e).checked.value) || b(e).checked.value === !0
3815
3815
  }, {
3816
3816
  default: M(() => [
3817
- P(b(ft), {
3817
+ B(b(ft), {
3818
3818
  as: n.as,
3819
3819
  "as-child": n.asChild,
3820
3820
  "data-state": b(qx)(b(e).checked.value)
@@ -4072,11 +4072,11 @@ const zD = /* @__PURE__ */ j({
4072
4072
  n.value || (await Dt(), g4(m) && !m.defaultPrevented && l());
4073
4073
  }
4074
4074
  return (m, g) => (N(), xe(et, null, [
4075
- P(b(n5), {
4075
+ B(b(n5), {
4076
4076
  as: "template",
4077
4077
  element: s.value
4078
4078
  }, null, 8, ["element"]),
4079
- P(b(ft), Se({
4079
+ B(b(ft), Se({
4080
4080
  ref: b(r),
4081
4081
  as: m.as,
4082
4082
  "as-child": m.asChild,
@@ -4231,7 +4231,7 @@ const zD = /* @__PURE__ */ j({
4231
4231
  n.triggerElement = o;
4232
4232
  }), n.triggerId || (n.triggerId = $o(void 0, "radix-vue-dropdown-menu-trigger")), (i, s) => (N(), $(b(n5), { "as-child": "" }, {
4233
4233
  default: M(() => [
4234
- P(b(ft), {
4234
+ B(b(ft), {
4235
4235
  id: b(n).triggerId,
4236
4236
  ref: b(r),
4237
4237
  type: i.as === "button" ? "button" : void 0,
@@ -4469,7 +4469,7 @@ const zD = /* @__PURE__ */ j({
4469
4469
  n.triggerElement.value = o.value;
4470
4470
  }), (i, s) => (N(), $(Zr(b(n).hasCustomAnchor.value ? b(ft) : b(mh)), { "as-child": "" }, {
4471
4471
  default: M(() => [
4472
- P(b(ft), {
4472
+ B(b(ft), {
4473
4473
  ref: b(r),
4474
4474
  type: i.as === "button" ? "button" : void 0,
4475
4475
  "aria-haspopup": "dialog",
@@ -4536,7 +4536,7 @@ const zD = /* @__PURE__ */ j({
4536
4536
  onUnmountAutoFocus: l[6] || (l[6] = (u) => r("closeAutoFocus", u))
4537
4537
  }, {
4538
4538
  default: M(() => [
4539
- P(b(Jc), {
4539
+ B(b(Jc), {
4540
4540
  "as-child": "",
4541
4541
  "disable-outside-pointer-events": a.disableOutsidePointerEvents,
4542
4542
  onPointerDownOutside: l[0] || (l[0] = (u) => r("pointerDownOutside", u)),
@@ -4546,7 +4546,7 @@ const zD = /* @__PURE__ */ j({
4546
4546
  onDismiss: l[4] || (l[4] = (u) => b(s).onOpenChange(!1))
4547
4547
  }, {
4548
4548
  default: M(() => [
4549
- P(b(gh), Se(b(o), {
4549
+ B(b(gh), Se(b(o), {
4550
4550
  id: b(s).contentId,
4551
4551
  ref: b(i),
4552
4552
  "data-state": b(s).open.value ? "open" : "closed",
@@ -4830,7 +4830,7 @@ const zD = /* @__PURE__ */ j({
4830
4830
  overflowY: b(i).scrollbarYEnabled.value ? "scroll" : "hidden"
4831
4831
  }
4832
4832
  }, u.$attrs, { tabindex: 0 }), [
4833
- P(b(ft), {
4833
+ B(b(ft), {
4834
4834
  ref: b(a),
4835
4835
  style: Jt({
4836
4836
  /**
@@ -4851,7 +4851,7 @@ const zD = /* @__PURE__ */ j({
4851
4851
  _: 3
4852
4852
  }, 8, ["style", "as-child", "as"])
4853
4853
  ], 16),
4854
- P(b(ft), {
4854
+ B(b(ft), {
4855
4855
  as: "style",
4856
4856
  nonce: b(o)
4857
4857
  }, {
@@ -5134,7 +5134,7 @@ const m5 = /* @__PURE__ */ j({
5134
5134
  present: s.forceMount || o.value
5135
5135
  }, {
5136
5136
  default: M(() => [
5137
- P(Nb, Se(s.$attrs, {
5137
+ B(Nb, Se(s.$attrs, {
5138
5138
  ref: b(r),
5139
5139
  "data-state": o.value ? "visible" : "hidden"
5140
5140
  }), {
@@ -5175,7 +5175,7 @@ const m5 = /* @__PURE__ */ j({
5175
5175
  present: a.forceMount || o.value
5176
5176
  }, {
5177
5177
  default: M(() => [
5178
- P(g5, Se(a.$attrs, {
5178
+ B(g5, Se(a.$attrs, {
5179
5179
  ref: b(n),
5180
5180
  "data-state": o.value ? "visible" : "hidden"
5181
5181
  }), {
@@ -5240,7 +5240,7 @@ const m5 = /* @__PURE__ */ j({
5240
5240
  present: a.forceMount || b(o) !== "hidden"
5241
5241
  }, {
5242
5242
  default: M(() => [
5243
- P(Nb, Se(a.$attrs, { ref: b(r) }), {
5243
+ B(Nb, Se(a.$attrs, { ref: b(r) }), {
5244
5244
  default: M(() => [
5245
5245
  te(a.$slots, "default")
5246
5246
  ]),
@@ -5572,7 +5572,7 @@ const NP = /* @__PURE__ */ j({
5572
5572
  default: M(() => {
5573
5573
  var y, w, x, C;
5574
5574
  return [
5575
- P(b(ft), {
5575
+ B(b(ft), {
5576
5576
  ref: b(o),
5577
5577
  role: "combobox",
5578
5578
  type: m.as === "button" ? "button" : void 0,
@@ -5658,7 +5658,7 @@ const NP = /* @__PURE__ */ j({
5658
5658
  );
5659
5659
  d.value.style.minWidth = `${me}px`, d.value.style.right = `${qe}px`;
5660
5660
  }
5661
- const D = a.value, I = window.innerHeight - Oo * 2, B = m.value.scrollHeight, V = window.getComputedStyle(h.value), ee = Number.parseInt(
5661
+ const D = a.value, I = window.innerHeight - Oo * 2, P = m.value.scrollHeight, V = window.getComputedStyle(h.value), ee = Number.parseInt(
5662
5662
  V.borderTopWidth,
5663
5663
  10
5664
5664
  ), he = Number.parseInt(V.paddingTop, 10), Oe = Number.parseInt(
@@ -5667,7 +5667,7 @@ const NP = /* @__PURE__ */ j({
5667
5667
  ), q = Number.parseInt(
5668
5668
  V.paddingBottom,
5669
5669
  10
5670
- ), G = ee + he + B + q + Oe, F = Math.min(
5670
+ ), G = ee + he + P + q + Oe, F = Math.min(
5671
5671
  g.value.offsetHeight * 5,
5672
5672
  G
5673
5673
  ), Q = window.getComputedStyle(m.value), ie = Number.parseInt(Q.paddingTop, 10), ce = Number.parseInt(
@@ -5715,7 +5715,7 @@ const NP = /* @__PURE__ */ j({
5715
5715
  zIndex: C.value
5716
5716
  })
5717
5717
  }, [
5718
- P(b(ft), Se({
5718
+ B(b(ft), Se({
5719
5719
  ref: b(p),
5720
5720
  style: {
5721
5721
  // When we get the height of the content, it includes borders. If we were to set
@@ -5813,18 +5813,18 @@ const NP = /* @__PURE__ */ j({
5813
5813
  return;
5814
5814
  let T = { x: 0, y: 0 };
5815
5815
  const A = (I) => {
5816
- var B, V;
5816
+ var P, V;
5817
5817
  T = {
5818
5818
  x: Math.abs(
5819
- Math.round(I.pageX) - (((B = x.value) == null ? void 0 : B.x) ?? 0)
5819
+ Math.round(I.pageX) - (((P = x.value) == null ? void 0 : P.x) ?? 0)
5820
5820
  ),
5821
5821
  y: Math.abs(
5822
5822
  Math.round(I.pageY) - (((V = x.value) == null ? void 0 : V.y) ?? 0)
5823
5823
  )
5824
5824
  };
5825
5825
  }, D = (I) => {
5826
- var B;
5827
- I.pointerType !== "touch" && (T.x <= 10 && T.y <= 10 ? I.preventDefault() : (B = s.value) != null && B.contains(I.target) || w(!1), document.removeEventListener("pointermove", A), x.value = null);
5826
+ var P;
5827
+ I.pointerType !== "touch" && (T.x <= 10 && T.y <= 10 ? I.preventDefault() : (P = s.value) != null && P.contains(I.target) || w(!1), document.removeEventListener("pointermove", A), x.value = null);
5828
5828
  };
5829
5829
  x.value !== null && (document.addEventListener("pointermove", A), document.addEventListener("pointerup", D, {
5830
5830
  capture: !0,
@@ -5855,8 +5855,8 @@ const NP = /* @__PURE__ */ j({
5855
5855
  },
5856
5856
  itemRefCallback: (k, T, A) => {
5857
5857
  var D, I;
5858
- const B = !g.value && !A;
5859
- (((D = o.modelValue) == null ? void 0 : D.value) !== void 0 && ((I = o.modelValue) == null ? void 0 : I.value) === T || B) && (p.value = k, B && (g.value = !0));
5858
+ const P = !g.value && !A;
5859
+ (((D = o.modelValue) == null ? void 0 : D.value) !== void 0 && ((I = o.modelValue) == null ? void 0 : I.value) === T || P) && (p.value = k, P && (g.value = !0));
5860
5860
  },
5861
5861
  selectedItem: p,
5862
5862
  selectedItemText: h,
@@ -5866,8 +5866,8 @@ const NP = /* @__PURE__ */ j({
5866
5866
  },
5867
5867
  itemTextRefCallback: (k, T, A) => {
5868
5868
  var D, I;
5869
- const B = !g.value && !A;
5870
- (((D = o.modelValue) == null ? void 0 : D.value) !== void 0 && ((I = o.modelValue) == null ? void 0 : I.value) === T || B) && (h.value = k);
5869
+ const P = !g.value && !A;
5870
+ (((D = o.modelValue) == null ? void 0 : D.value) !== void 0 && ((I = o.modelValue) == null ? void 0 : I.value) === T || P) && (h.value = k);
5871
5871
  },
5872
5872
  focusSelectedItem: y,
5873
5873
  position: n.position,
@@ -5883,7 +5883,7 @@ const NP = /* @__PURE__ */ j({
5883
5883
  })
5884
5884
  }, {
5885
5885
  default: M(() => [
5886
- P(b(Jc), {
5886
+ B(b(Jc), {
5887
5887
  "as-child": "",
5888
5888
  "disable-outside-pointer-events": "",
5889
5889
  onFocusOutside: T[2] || (T[2] = Qn(() => {
@@ -5974,7 +5974,7 @@ const NP = /* @__PURE__ */ j({
5974
5974
  present: !0
5975
5975
  }, {
5976
5976
  default: M(() => [
5977
- P(BP, Ut(Zt({ ...b(r), ...l.$attrs })), {
5977
+ B(BP, Ut(Zt({ ...b(r), ...l.$attrs })), {
5978
5978
  default: M(() => [
5979
5979
  te(l.$slots, "default")
5980
5980
  ]),
@@ -5984,7 +5984,7 @@ const NP = /* @__PURE__ */ j({
5984
5984
  _: 3
5985
5985
  }, 512)) : !((d = s.value) != null && d.present) && i.value ? (N(), xe("div", $P, [
5986
5986
  (N(), $(Qp, { to: i.value }, [
5987
- P(FP, { context: b(o) }, {
5987
+ B(FP, { context: b(o) }, {
5988
5988
  default: M(() => [
5989
5989
  te(l.$slots, "default")
5990
5990
  ]),
@@ -6146,7 +6146,7 @@ const NP = /* @__PURE__ */ j({
6146
6146
  }), Er(() => {
6147
6147
  o.onNativeOptionRemove(l.value);
6148
6148
  }), (u, d) => (N(), xe(et, null, [
6149
- P(b(ft), Se({
6149
+ B(b(ft), Se({
6150
6150
  id: b(i).textId,
6151
6151
  ref: b(s)
6152
6152
  }, { ...e, ...u.$attrs }, { "data-item-text": "" }), {
@@ -6193,7 +6193,7 @@ const NP = /* @__PURE__ */ j({
6193
6193
  l.value = p.scrollTop;
6194
6194
  }
6195
6195
  return (d, p) => (N(), xe(et, null, [
6196
- P(b(ft), Se({
6196
+ B(b(ft), Se({
6197
6197
  ref: b(s),
6198
6198
  "data-radix-select-viewport": "",
6199
6199
  role: "presentation"
@@ -6213,7 +6213,7 @@ const NP = /* @__PURE__ */ j({
6213
6213
  ]),
6214
6214
  _: 3
6215
6215
  }, 16),
6216
- P(b(ft), {
6216
+ B(b(ft), {
6217
6217
  as: "style",
6218
6218
  nonce: b(r)
6219
6219
  }, {
@@ -6500,7 +6500,7 @@ const [Lb, nB] = ln("TabsRoot"), rB = /* @__PURE__ */ j({
6500
6500
  loop: b(n)
6501
6501
  }, {
6502
6502
  default: M(() => [
6503
- P(b(ft), {
6503
+ B(b(ft), {
6504
6504
  ref: b(r),
6505
6505
  role: "tablist",
6506
6506
  "as-child": s.asChild,
@@ -6542,7 +6542,7 @@ const iB = /* @__PURE__ */ j({
6542
6542
  "force-mount": ""
6543
6543
  }, {
6544
6544
  default: M(({ present: d }) => [
6545
- P(b(ft), {
6545
+ B(b(ft), {
6546
6546
  id: i.value,
6547
6547
  ref: b(n),
6548
6548
  "as-child": l.asChild,
@@ -6582,7 +6582,7 @@ const iB = /* @__PURE__ */ j({
6582
6582
  active: s.value
6583
6583
  }, {
6584
6584
  default: M(() => [
6585
- P(b(ft), {
6585
+ B(b(ft), {
6586
6586
  id: o.value,
6587
6587
  ref: b(n),
6588
6588
  role: "tab",
@@ -6790,7 +6790,7 @@ const iB = /* @__PURE__ */ j({
6790
6790
  }
6791
6791
  return (w, x) => (N(), $(b(mh), { "as-child": "" }, {
6792
6792
  default: M(() => [
6793
- P(b(ft), Se({
6793
+ B(b(ft), Se({
6794
6794
  ref: b(o),
6795
6795
  "aria-describedby": b(n).open.value ? b(n).contentId : void 0,
6796
6796
  "data-state": b(n).stateAttribute.value,
@@ -6860,7 +6860,7 @@ const iB = /* @__PURE__ */ j({
6860
6860
  onDismiss: p[3] || (p[3] = (h) => b(o).onClose())
6861
6861
  }, {
6862
6862
  default: M(() => [
6863
- P(b(gh), Se({
6863
+ B(b(gh), Se({
6864
6864
  ref: b(i),
6865
6865
  "data-state": b(o).stateAttribute.value
6866
6866
  }, { ...d.$attrs, ...u.value }, { style: {
@@ -6872,7 +6872,7 @@ const iB = /* @__PURE__ */ j({
6872
6872
  } }), {
6873
6873
  default: M(() => [
6874
6874
  te(d.$slots, "default"),
6875
- P(b(Zx), {
6875
+ B(b(Zx), {
6876
6876
  id: b(o).contentId,
6877
6877
  role: "tooltip"
6878
6878
  }, {
@@ -7210,7 +7210,7 @@ const cn = (t) => {
7210
7210
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
7211
7211
  RB.test(t) && !LB.test(t)
7212
7212
  ), N5 = () => !1, WB = (t) => IB.test(t), jB = (t) => DB.test(t), qB = () => {
7213
- const t = cn("colors"), e = cn("spacing"), n = cn("blur"), r = cn("brightness"), o = cn("borderColor"), i = cn("borderRadius"), s = cn("borderSpacing"), a = cn("borderWidth"), l = cn("contrast"), u = cn("grayscale"), d = cn("hueRotate"), p = cn("invert"), h = cn("gap"), m = cn("gradientColorStops"), g = cn("gradientColorStopPositions"), y = cn("inset"), w = cn("margin"), x = cn("opacity"), C = cn("padding"), S = cn("saturate"), _ = cn("scale"), k = cn("sepia"), T = cn("skew"), A = cn("space"), D = cn("translate"), I = () => ["auto", "contain", "none"], B = () => ["auto", "hidden", "clip", "visible", "scroll"], V = () => ["auto", wt, e], ee = () => [wt, e], he = () => ["", Ti, ls], Oe = () => ["auto", Tl, wt], q = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], G = () => ["solid", "dashed", "dotted", "double", "none"], F = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Q = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], ie = () => ["", "0", wt], ce = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], fe = () => [Tl, wt];
7213
+ const t = cn("colors"), e = cn("spacing"), n = cn("blur"), r = cn("brightness"), o = cn("borderColor"), i = cn("borderRadius"), s = cn("borderSpacing"), a = cn("borderWidth"), l = cn("contrast"), u = cn("grayscale"), d = cn("hueRotate"), p = cn("invert"), h = cn("gap"), m = cn("gradientColorStops"), g = cn("gradientColorStopPositions"), y = cn("inset"), w = cn("margin"), x = cn("opacity"), C = cn("padding"), S = cn("saturate"), _ = cn("scale"), k = cn("sepia"), T = cn("skew"), A = cn("space"), D = cn("translate"), I = () => ["auto", "contain", "none"], P = () => ["auto", "hidden", "clip", "visible", "scroll"], V = () => ["auto", wt, e], ee = () => [wt, e], he = () => ["", Ti, ls], Oe = () => ["auto", Tl, wt], q = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], G = () => ["solid", "dashed", "dotted", "double", "none"], F = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Q = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], ie = () => ["", "0", wt], ce = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], fe = () => [Tl, wt];
7214
7214
  return {
7215
7215
  cacheSize: 500,
7216
7216
  separator: ":",
@@ -7340,21 +7340,21 @@ const cn = (t) => {
7340
7340
  * @see https://tailwindcss.com/docs/overflow
7341
7341
  */
7342
7342
  overflow: [{
7343
- overflow: B()
7343
+ overflow: P()
7344
7344
  }],
7345
7345
  /**
7346
7346
  * Overflow X
7347
7347
  * @see https://tailwindcss.com/docs/overflow
7348
7348
  */
7349
7349
  "overflow-x": [{
7350
- "overflow-x": B()
7350
+ "overflow-x": P()
7351
7351
  }],
7352
7352
  /**
7353
7353
  * Overflow Y
7354
7354
  * @see https://tailwindcss.com/docs/overflow
7355
7355
  */
7356
7356
  "overflow-y": [{
7357
- "overflow-y": B()
7357
+ "overflow-y": P()
7358
7358
  }],
7359
7359
  /**
7360
7360
  * Overscroll Behavior
@@ -9281,7 +9281,7 @@ var ep = { exports: {} };
9281
9281
  ep.exports;
9282
9282
  (function(t, e) {
9283
9283
  (function() {
9284
- var n, r = "4.17.21", o = 200, i = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", s = "Expected a function", a = "Invalid `variable` option passed into `_.template`", l = "__lodash_hash_undefined__", u = 500, d = "__lodash_placeholder__", p = 1, h = 2, m = 4, g = 1, y = 2, w = 1, x = 2, C = 4, S = 8, _ = 16, k = 32, T = 64, A = 128, D = 256, I = 512, B = 30, V = "...", ee = 800, he = 16, Oe = 1, q = 2, G = 3, F = 1 / 0, Q = 9007199254740991, ie = 17976931348623157e292, ce = NaN, fe = 4294967295, Re = fe - 1, Ie = fe >>> 1, ct = [
9284
+ var n, r = "4.17.21", o = 200, i = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", s = "Expected a function", a = "Invalid `variable` option passed into `_.template`", l = "__lodash_hash_undefined__", u = 500, d = "__lodash_placeholder__", p = 1, h = 2, m = 4, g = 1, y = 2, w = 1, x = 2, C = 4, S = 8, _ = 16, k = 32, T = 64, A = 128, D = 256, I = 512, P = 30, V = "...", ee = 800, he = 16, Oe = 1, q = 2, G = 3, F = 1 / 0, Q = 9007199254740991, ie = 17976931348623157e292, ce = NaN, fe = 4294967295, Re = fe - 1, Ie = fe >>> 1, ct = [
9285
9285
  ["ary", A],
9286
9286
  ["bind", w],
9287
9287
  ["bindKey", x],
@@ -12641,7 +12641,7 @@ function print() { __p += __j.call(arguments, '') }
12641
12641
  return ss(E, O).join("");
12642
12642
  }
12643
12643
  function VN(c, f) {
12644
- var v = B, E = V;
12644
+ var v = P, E = V;
12645
12645
  if (gn(f)) {
12646
12646
  var O = "separator" in f ? f.separator : O;
12647
12647
  v = "length" in f ? yt(f.length) : v, E = "omission" in f ? Hr(f.omission) : E;
@@ -13300,7 +13300,7 @@ function wF(t, e = {}) {
13300
13300
  }, Ge = Ae();
13301
13301
  return W.resetPeek(), Ge;
13302
13302
  }
13303
- function B(W) {
13303
+ function P(W) {
13304
13304
  y(W);
13305
13305
  const H = W.currentPeek() === "|";
13306
13306
  return W.resetPeek(), H;
@@ -13371,7 +13371,7 @@ function wF(t, e = {}) {
13371
13371
  if (V(W))
13372
13372
  H += ge, W.next();
13373
13373
  else {
13374
- if (B(W))
13374
+ if (P(W))
13375
13375
  break;
13376
13376
  H += ge, W.next();
13377
13377
  }
@@ -13483,7 +13483,7 @@ function wF(t, e = {}) {
13483
13483
  return H.braceNest > 0 && p(dt.UNTERMINATED_CLOSING_BRACE, i(), 0), ge = Le(W, H) || m(H), H.braceNest = 0, ge;
13484
13484
  default: {
13485
13485
  let Ge = !0, gt = !0, tt = !0;
13486
- if (B(W))
13486
+ if (P(W))
13487
13487
  return H.braceNest > 0 && p(dt.UNTERMINATED_CLOSING_BRACE, i(), 0), ge = h(H, 1, qe(W)), H.braceNest = 0, H.inLinked = !1, ge;
13488
13488
  if (H.braceNest > 0 && (H.currentType === 4 || H.currentType === 5 || H.currentType === 6))
13489
13489
  return p(dt.UNTERMINATED_CLOSING_BRACE, i(), 0), H.braceNest = 0, ot(W, H);
@@ -13527,7 +13527,7 @@ function wF(t, e = {}) {
13527
13527
  /* TokenChars.LinkedDelimiter */
13528
13528
  );
13529
13529
  default:
13530
- return B(W) ? (Ae = h(H, 1, qe(W)), H.braceNest = 0, H.inLinked = !1, Ae) : T(W, H) || D(W, H) ? (w(W), Le(W, H)) : A(W, H) ? (w(W), h(H, 11, _e(W))) : I(W, H) ? (w(W), Ge === "{" ? le(W, H) || Ae : h(H, 10, De(W))) : (ge === 7 && p(dt.INVALID_LINKED_FORMAT, i(), 0), H.braceNest = 0, H.inLinked = !1, ot(W, H));
13530
+ return P(W) ? (Ae = h(H, 1, qe(W)), H.braceNest = 0, H.inLinked = !1, Ae) : T(W, H) || D(W, H) ? (w(W), Le(W, H)) : A(W, H) ? (w(W), h(H, 11, _e(W))) : I(W, H) ? (w(W), Ge === "{" ? le(W, H) || Ae : h(H, 10, De(W))) : (ge === 7 && p(dt.INVALID_LINKED_FORMAT, i(), 0), H.braceNest = 0, H.inLinked = !1, ot(W, H));
13531
13531
  }
13532
13532
  }
13533
13533
  function ot(W, H) {
@@ -13552,7 +13552,7 @@ function wF(t, e = {}) {
13552
13552
  case "@":
13553
13553
  return Le(W, H) || m(H);
13554
13554
  default: {
13555
- if (B(W))
13555
+ if (P(W))
13556
13556
  return ge = h(H, 1, qe(W)), H.braceNest = 0, H.inLinked = !1, ge;
13557
13557
  if (V(W))
13558
13558
  return h(H, 0, Re(W));
@@ -13690,8 +13690,8 @@ function CF(t = {}) {
13690
13690
  I.value == null && r(x, dt.UNEXPECTED_LEXICAL_ANALYSIS, C.lastStartLoc, 0, Go(I)), k.items.push(u(x, I.value || ""));
13691
13691
  break;
13692
13692
  case 7: {
13693
- const B = h(x);
13694
- k.items.push(B.node), T = B.nextConsumeToken || null;
13693
+ const P = h(x);
13694
+ k.items.push(P.node), T = P.nextConsumeToken || null;
13695
13695
  break;
13696
13696
  }
13697
13697
  }
@@ -14612,7 +14612,7 @@ let P4 = 0;
14612
14612
  function N$(t = {}) {
14613
14613
  const e = nn(t.onWarn) ? t.onWarn : $s, n = Be(t.version) ? t.version : E$, r = Be(t.locale) || nn(t.locale) ? t.locale : yc, o = nn(r) ? yc : r, i = vn(t.fallbackLocale) || St(t.fallbackLocale) || Be(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : o, s = St(t.messages) ? t.messages : Dm(o), a = St(t.datetimeFormats) ? t.datetimeFormats : Dm(o), l = St(t.numberFormats) ? t.numberFormats : Dm(o), u = Bn(Yt(), t.modifiers, C$()), d = t.pluralRules || Yt(), p = nn(t.missing) ? t.missing : null, h = Ft(t.missingWarn) || Ll(t.missingWarn) ? t.missingWarn : !0, m = Ft(t.fallbackWarn) || Ll(t.fallbackWarn) ? t.fallbackWarn : !0, g = !!t.fallbackFormat, y = !!t.unresolving, w = nn(t.postTranslation) ? t.postTranslation : null, x = St(t.processor) ? t.processor : null, C = Ft(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, S = !!t.escapeParameter, _ = nn(t.messageCompiler) ? t.messageCompiler : D5;
14614
14614
  process.env.NODE_ENV !== "production" && nn(t.messageCompiler) && L5(Ca(Mr.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
14615
- const k = nn(t.messageResolver) ? t.messageResolver : P5 || y$, T = nn(t.localeFallbacker) ? t.localeFallbacker : B5 || c$, A = Pt(t.fallbackContext) ? t.fallbackContext : void 0, D = t, I = Pt(D.__datetimeFormatters) ? D.__datetimeFormatters : /* @__PURE__ */ new Map(), B = Pt(D.__numberFormatters) ? D.__numberFormatters : /* @__PURE__ */ new Map(), V = Pt(D.__meta) ? D.__meta : {};
14615
+ const k = nn(t.messageResolver) ? t.messageResolver : P5 || y$, T = nn(t.localeFallbacker) ? t.localeFallbacker : B5 || c$, A = Pt(t.fallbackContext) ? t.fallbackContext : void 0, D = t, I = Pt(D.__datetimeFormatters) ? D.__datetimeFormatters : /* @__PURE__ */ new Map(), P = Pt(D.__numberFormatters) ? D.__numberFormatters : /* @__PURE__ */ new Map(), V = Pt(D.__meta) ? D.__meta : {};
14616
14616
  P4++;
14617
14617
  const ee = {
14618
14618
  version: n,
@@ -14638,7 +14638,7 @@ function N$(t = {}) {
14638
14638
  onWarn: e,
14639
14639
  __meta: V
14640
14640
  };
14641
- return ee.datetimeFormats = a, ee.numberFormats = l, ee.__datetimeFormatters = I, ee.__numberFormatters = B, process.env.NODE_ENV !== "production" && (ee.__v_emitter = D.__v_emitter != null ? D.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && i$(ee, n, V), ee;
14641
+ return ee.datetimeFormats = a, ee.numberFormats = l, ee.__datetimeFormatters = I, ee.__numberFormatters = P, process.env.NODE_ENV !== "production" && (ee.__v_emitter = D.__v_emitter != null ? D.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && i$(ee, n, V), ee;
14642
14642
  }
14643
14643
  const Dm = (t) => ({ [t]: Yt() });
14644
14644
  function Sh(t, e) {
@@ -14703,8 +14703,8 @@ function F4(t, ...e) {
14703
14703
  key: l,
14704
14704
  target: C
14705
14705
  })), process.env.NODE_ENV !== "production" && y !== C) {
14706
- const B = t.__v_emitter;
14707
- B && B.emit("fallback", {
14706
+ const P = t.__v_emitter;
14707
+ P && P.emit("fallback", {
14708
14708
  type: T,
14709
14709
  key: l,
14710
14710
  from: _,
@@ -14797,8 +14797,8 @@ function H4(t, ...e) {
14797
14797
  key: l,
14798
14798
  target: C
14799
14799
  })), process.env.NODE_ENV !== "production" && y !== C) {
14800
- const B = t.__v_emitter;
14801
- B && B.emit("fallback", {
14800
+ const P = t.__v_emitter;
14801
+ P && P.emit("fallback", {
14802
14802
  type: T,
14803
14803
  key: l,
14804
14804
  from: _,
@@ -14916,7 +14916,7 @@ function W4(t, ...e) {
14916
14916
  }, D = po(_) ? _ : q5(t, l, C, _, k, A);
14917
14917
  if (T)
14918
14918
  return _;
14919
- const I = j$(t, C, S, u), B = H$(I), V = V$(t, D, B), ee = r ? r(V, l) : V;
14919
+ const I = j$(t, C, S, u), P = H$(I), V = V$(t, D, P), ee = r ? r(V, l) : V;
14920
14920
  if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
14921
14921
  const he = {
14922
14922
  timestamp: Date.now(),
@@ -15305,7 +15305,7 @@ function Y5(t, e, n) {
15305
15305
  }
15306
15306
  }
15307
15307
  function j4(t) {
15308
- return P(HR, null, t, 0);
15308
+ return B(HR, null, t, 0);
15309
15309
  }
15310
15310
  const q4 = "__INTLIFY_META__", K4 = () => [], oH = () => !1;
15311
15311
  let G4 = 0;
@@ -15364,7 +15364,7 @@ function qb(t = {}) {
15364
15364
  p.value
15365
15365
  ];
15366
15366
  }
15367
- const B = Y({
15367
+ const P = Y({
15368
15368
  get: () => a.value,
15369
15369
  set: (se) => {
15370
15370
  a.value = se, A.locale = a.value;
@@ -15533,7 +15533,7 @@ function qb(t = {}) {
15533
15533
  }));
15534
15534
  const tt = {
15535
15535
  id: G4,
15536
- locale: B,
15536
+ locale: P,
15537
15537
  fallbackLocale: V,
15538
15538
  get inheritLocale() {
15539
15539
  return s;
@@ -16632,7 +16632,7 @@ const HH = { class: "flex gap-2 items-center overflow-x-auto overflow-y-hidden"
16632
16632
  }), i = sn(o, r);
16633
16633
  return (s, a) => (N(), $(b(oP), null, {
16634
16634
  default: M(() => [
16635
- P(b(aP), Se({ ...b(i), ...s.$attrs }, {
16635
+ B(b(aP), Se({ ...b(i), ...s.$attrs }, {
16636
16636
  class: b(Qe)(
16637
16637
  "z-50 w-72 rounded-md border bg-ed-popover p-4 text-ed-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
16638
16638
  n.class
@@ -16916,7 +16916,7 @@ const o6 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, i6 = T5, Y
16916
16916
  }), i = sn(o, r);
16917
16917
  return (s, a) => (N(), $(b(mB), null, {
16918
16918
  default: M(() => [
16919
- P(b(hB), Se({ ...b(i), ...s.$attrs }, {
16919
+ B(b(hB), Se({ ...b(i), ...s.$attrs }, {
16920
16920
  class: b(Qe)(
16921
16921
  "z-50 overflow-hidden rounded-md bg-ed-primary px-3 py-1.5 text-xs text-ed-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
16922
16922
  n.class
@@ -17741,7 +17741,7 @@ function Sz(t, e, n, r) {
17741
17741
  }
17742
17742
  function _(T, A, D) {
17743
17743
  const I = A !== "success";
17744
- switch (h = h.filter((B) => B !== T), l) {
17744
+ switch (h = h.filter((P) => P !== T), l) {
17745
17745
  case "pending":
17746
17746
  break;
17747
17747
  case "failed":
@@ -17760,11 +17760,11 @@ function Sz(t, e, n, r) {
17760
17760
  return;
17761
17761
  }
17762
17762
  if (g(), S(), !t.random) {
17763
- const B = t.resources.indexOf(T.resource);
17764
- B !== -1 && B !== t.index && (t.index = B);
17763
+ const P = t.resources.indexOf(T.resource);
17764
+ P !== -1 && P !== t.index && (t.index = P);
17765
17765
  }
17766
- l = "completed", m.forEach((B) => {
17767
- B(D);
17766
+ l = "completed", m.forEach((P) => {
17767
+ P(D);
17768
17768
  });
17769
17769
  }
17770
17770
  function k() {
@@ -18432,15 +18432,15 @@ const Uz = { key: 0 }, Wz = {
18432
18432
  setup(t) {
18433
18433
  return (e, n) => (N(), $(b(iu), null, {
18434
18434
  default: M(() => [
18435
- P(b(ru), { "delay-duration": 0 }, {
18435
+ B(b(ru), { "delay-duration": 0 }, {
18436
18436
  default: M(() => [
18437
- P(b(ou), {
18437
+ B(b(ou), {
18438
18438
  class: ut(e.customClassTooltip)
18439
18439
  }, {
18440
18440
  default: M(() => {
18441
18441
  var r;
18442
18442
  return [
18443
- P(b(o_), {
18443
+ B(b(o_), {
18444
18444
  id: `action-btn-${e.id}`,
18445
18445
  size: "sm",
18446
18446
  class: ut(["h-[32px]", b(Qe)([e.customClass], { hidden: e.hidden })]),
@@ -18450,7 +18450,7 @@ const Uz = { key: 0 }, Wz = {
18450
18450
  }, {
18451
18451
  default: M(() => [
18452
18452
  e.loading ? (N(), xe("div", Uz, [
18453
- P(b(hn), {
18453
+ B(b(hn), {
18454
18454
  class: "animate-spin",
18455
18455
  name: "LoaderCircle"
18456
18456
  })
@@ -26804,11 +26804,11 @@ const hW = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|df
26804
26804
  function mW(t, e, n, r, o) {
26805
26805
  let i = t.input.compositionPendingChanges || (t.composing ? t.input.compositionID : 0);
26806
26806
  if (t.input.compositionPendingChanges = 0, e < 0) {
26807
- let I = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, B = a2(t, I);
26808
- if (B && !t.state.selection.eq(B)) {
26807
+ let I = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, P = a2(t, I);
26808
+ if (P && !t.state.selection.eq(P)) {
26809
26809
  if (sr && Fi && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (ee) => ee(t, aa(13, "Enter"))))
26810
26810
  return;
26811
- let V = t.state.tr.setSelection(B);
26811
+ let V = t.state.tr.setSelection(P);
26812
26812
  I == "pointer" ? V.setMeta("pointer", !0) : I == "key" && V.scrollIntoView(), i && V.setMeta("composition", i), t.dispatch(V);
26813
26813
  }
26814
26814
  return;
@@ -26829,8 +26829,8 @@ function mW(t, e, n, r, o) {
26829
26829
  if (u.sel) {
26830
26830
  let I = c8(t, t.state.doc, u.sel);
26831
26831
  if (I && !I.eq(t.state.selection)) {
26832
- let B = t.state.tr.setSelection(I);
26833
- i && B.setMeta("composition", i), t.dispatch(B);
26832
+ let P = t.state.tr.setSelection(I);
26833
+ i && P.setMeta("composition", i), t.dispatch(P);
26834
26834
  }
26835
26835
  }
26836
26836
  return;
@@ -26861,7 +26861,7 @@ function mW(t, e, n, r, o) {
26861
26861
  T = t.state.tr, D.type == "add" ? T.addMark(_, k, D.mark) : T.removeMark(_, k, D.mark);
26862
26862
  else if (y.parent.child(y.index()).isText && y.index() == w.index() - (w.textOffset ? 0 : 1)) {
26863
26863
  let I = y.parent.textBetween(y.parentOffset, w.parentOffset);
26864
- if (t.someProp("handleTextInput", (B) => B(t, _, k, I)))
26864
+ if (t.someProp("handleTextInput", (P) => P(t, _, k, I)))
26865
26865
  return;
26866
26866
  T = t.state.tr.insertText(I, _, k);
26867
26867
  }
@@ -31024,11 +31024,11 @@ function T8(t) {
31024
31024
  }
31025
31025
  if (o === Ir || (o === Lr || o === wo) && i === Lc) {
31026
31026
  S = xo;
31027
- var B = p && T === k && k.visualViewport ? k.visualViewport.width : (
31027
+ var P = p && T === k && k.visualViewport ? k.visualViewport.width : (
31028
31028
  // $FlowFixMe[prop-missing]
31029
31029
  T[D]
31030
31030
  );
31031
- m -= B - r.width, m *= l ? 1 : -1;
31031
+ m -= P - r.width, m *= l ? 1 : -1;
31032
31032
  }
31033
31033
  }
31034
31034
  var V = Object.assign({
@@ -31248,7 +31248,7 @@ function Ic(t, e) {
31248
31248
  reference: T,
31249
31249
  element: S,
31250
31250
  placement: o
31251
- }), D = Ig(Object.assign({}, S, A)), I = h === Hu ? D : T, B = {
31251
+ }), D = Ig(Object.assign({}, S, A)), I = h === Hu ? D : T, P = {
31252
31252
  top: k.top - I.top + x.top,
31253
31253
  bottom: I.bottom - k.bottom + x.bottom,
31254
31254
  left: k.left - I.left + x.left,
@@ -31256,12 +31256,12 @@ function Ic(t, e) {
31256
31256
  }, V = t.modifiersData.offset;
31257
31257
  if (h === Hu && V) {
31258
31258
  var ee = V[o];
31259
- Object.keys(B).forEach(function(he) {
31259
+ Object.keys(P).forEach(function(he) {
31260
31260
  var Oe = [xo, wo].indexOf(he) >= 0 ? 1 : -1, q = [Lr, wo].indexOf(he) >= 0 ? "y" : "x";
31261
- B[he] += ee[q] * Oe;
31261
+ P[he] += ee[q] * Oe;
31262
31262
  });
31263
31263
  }
31264
- return B;
31264
+ return P;
31265
31265
  }
31266
31266
  function bK(t, e) {
31267
31267
  e === void 0 && (e = {});
@@ -31301,8 +31301,8 @@ function yK(t) {
31301
31301
  flipVariations: g,
31302
31302
  allowedAutoPlacements: y
31303
31303
  }) : Ue);
31304
- }, []), k = e.rects.reference, T = e.rects.popper, A = /* @__PURE__ */ new Map(), D = !0, I = _[0], B = 0; B < _.length; B++) {
31305
- var V = _[B], ee = ri(V), he = ql(V) === Ul, Oe = [Lr, wo].indexOf(ee) >= 0, q = Oe ? "width" : "height", G = Ic(e, {
31304
+ }, []), k = e.rects.reference, T = e.rects.popper, A = /* @__PURE__ */ new Map(), D = !0, I = _[0], P = 0; P < _.length; P++) {
31305
+ var V = _[P], ee = ri(V), he = ql(V) === Ul, Oe = [Lr, wo].indexOf(ee) >= 0, q = Oe ? "width" : "height", G = Ic(e, {
31306
31306
  placement: V,
31307
31307
  boundary: d,
31308
31308
  rootBoundary: p,
@@ -31437,7 +31437,7 @@ function OK(t) {
31437
31437
  altBoundary: d
31438
31438
  }), x = ri(e.placement), C = ql(e.placement), S = !C, _ = M2(x), k = AK(_), T = e.modifiersData.popperOffsets, A = e.rects.reference, D = e.rects.popper, I = typeof y == "function" ? y(Object.assign({}, e.rects, {
31439
31439
  placement: e.placement
31440
- })) : y, B = typeof I == "number" ? {
31440
+ })) : y, P = typeof I == "number" ? {
31441
31441
  mainAxis: I,
31442
31442
  altAxis: I
31443
31443
  } : Object.assign({
@@ -31452,11 +31452,11 @@ function OK(t) {
31452
31452
  var he, Oe = _ === "y" ? Lr : Ir, q = _ === "y" ? wo : xo, G = _ === "y" ? "height" : "width", F = T[_], Q = F + w[Oe], ie = F - w[q], ce = m ? -D[G] / 2 : 0, fe = C === Ul ? A[G] : D[G], Re = C === Ul ? -D[G] : -A[G], Ie = e.elements.arrow, ct = m && Ie ? O2(Ie) : {
31453
31453
  width: 0,
31454
31454
  height: 0
31455
- }, Ue = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : dC(), ke = Ue[Oe], X = Ue[q], re = ec(0, A[G], ct[G]), pe = S ? A[G] / 2 - ce - re - ke - B.mainAxis : fe - re - ke - B.mainAxis, me = S ? -A[G] / 2 + ce + re + X + B.mainAxis : Re + re + X + B.mainAxis, _e = e.elements.arrow && nd(e.elements.arrow), De = _e ? _ === "y" ? _e.clientTop || 0 : _e.clientLeft || 0 : 0, qe = (he = V == null ? void 0 : V[_]) != null ? he : 0, le = F + pe - qe - De, Le = F + me - qe, ot = ec(m ? gp(Q, le) : Q, F, m ? va(ie, Le) : ie);
31455
+ }, Ue = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : dC(), ke = Ue[Oe], X = Ue[q], re = ec(0, A[G], ct[G]), pe = S ? A[G] / 2 - ce - re - ke - P.mainAxis : fe - re - ke - P.mainAxis, me = S ? -A[G] / 2 + ce + re + X + P.mainAxis : Re + re + X + P.mainAxis, _e = e.elements.arrow && nd(e.elements.arrow), De = _e ? _ === "y" ? _e.clientTop || 0 : _e.clientLeft || 0 : 0, qe = (he = V == null ? void 0 : V[_]) != null ? he : 0, le = F + pe - qe - De, Le = F + me - qe, ot = ec(m ? gp(Q, le) : Q, F, m ? va(ie, Le) : ie);
31456
31456
  T[_] = ot, ee[_] = ot - F;
31457
31457
  }
31458
31458
  if (a) {
31459
- var Ht, W = _ === "x" ? Lr : Ir, H = _ === "x" ? wo : xo, ge = T[k], Ae = k === "y" ? "height" : "width", Ge = ge + w[W], gt = ge - w[H], tt = [Lr, Ir].indexOf(x) !== -1, se = (Ht = V == null ? void 0 : V[k]) != null ? Ht : 0, Ee = tt ? Ge : ge - A[Ae] - D[Ae] - se + B.altAxis, be = tt ? ge + A[Ae] + D[Ae] - se - B.altAxis : gt, Te = m && tt ? Qq(Ee, ge, be) : ec(m ? Ee : Ge, ge, m ? be : gt);
31459
+ var Ht, W = _ === "x" ? Lr : Ir, H = _ === "x" ? wo : xo, ge = T[k], Ae = k === "y" ? "height" : "width", Ge = ge + w[W], gt = ge - w[H], tt = [Lr, Ir].indexOf(x) !== -1, se = (Ht = V == null ? void 0 : V[k]) != null ? Ht : 0, Ee = tt ? Ge : ge - A[Ae] - D[Ae] - se + P.altAxis, be = tt ? ge + A[Ae] + D[Ae] - se - P.altAxis : gt, Te = m && tt ? Qq(Ee, ge, be) : ec(m ? Ee : Ge, ge, m ? be : gt);
31460
31460
  T[k] = Te, ee[k] = Te - ge;
31461
31461
  }
31462
31462
  e.modifiersData[r] = ee;
@@ -31601,8 +31601,8 @@ function $K(t) {
31601
31601
  d.rects = {
31602
31602
  reference: IK(C, nd(S), d.options.strategy === "fixed"),
31603
31603
  popper: O2(S)
31604
- }, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function(B) {
31605
- return d.modifiersData[B.name] = Object.assign({}, B.data);
31604
+ }, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function(P) {
31605
+ return d.modifiersData[P.name] = Object.assign({}, P.data);
31606
31606
  });
31607
31607
  for (var _ = 0; _ < d.orderedModifiers.length; _++) {
31608
31608
  if (d.reset === !0) {
@@ -32068,12 +32068,12 @@ function mG(t, e) {
32068
32068
  }), T.addEventListener("mouseleave", function() {
32069
32069
  _.props.interactive && _.props.trigger.indexOf("mouseenter") >= 0 && Oe().addEventListener("mousemove", g);
32070
32070
  }), _;
32071
- function B() {
32071
+ function P() {
32072
32072
  var ue = _.props.touch;
32073
32073
  return Array.isArray(ue) ? ue : [ue, 0];
32074
32074
  }
32075
32075
  function V() {
32076
- return B()[0] === "hold";
32076
+ return P()[0] === "hold";
32077
32077
  }
32078
32078
  function ee() {
32079
32079
  var ue;
@@ -32331,7 +32331,7 @@ function mG(t, e) {
32331
32331
  }
32332
32332
  function Ge(ue) {
32333
32333
  _.clearDelayTimeouts(), ue && Q("onTrigger", [_, ue]), Ue();
32334
- var We = G(!0), nt = B(), Bt = nt[0], Rt = nt[1];
32334
+ var We = G(!0), nt = P(), Bt = nt[0], Rt = nt[1];
32335
32335
  Qo.isTouch && Bt === "hold" && Rt && (We = Rt), We ? r = setTimeout(function() {
32336
32336
  _.show();
32337
32337
  }, We) : _.show();
@@ -33209,7 +33209,7 @@ const NC = (t, e) => {
33209
33209
  ed(_, k);
33210
33210
  }
33211
33211
  return (_, k) => {
33212
- const T = at, A = Vi, D = nu, I = Mf, B = Dl, V = Ec, ee = Xb, he = Jb, Oe = tu, q = eu;
33212
+ const T = at, A = Vi, D = nu, I = Mf, P = Dl, V = Ec, ee = Xb, he = Jb, Oe = tu, q = eu;
33213
33213
  return N(), $(b(Gh), {
33214
33214
  editor: _.editor,
33215
33215
  "plugin-key": "image-menus-123",
@@ -33230,35 +33230,35 @@ const NC = (t, e) => {
33230
33230
  default: M(() => [
33231
33231
  ne("div", wG, [
33232
33232
  ne("div", xG, [
33233
- P(T, {
33233
+ B(T, {
33234
33234
  tooltip: b(n)("editor.image.menu.flipX"),
33235
33235
  icon: "FlipVertical",
33236
33236
  action: x
33237
33237
  }, null, 8, ["tooltip"]),
33238
- P(T, {
33238
+ B(T, {
33239
33239
  tooltip: b(n)("editor.image.menu.flipY"),
33240
33240
  icon: "FlipHorizontal",
33241
33241
  action: C
33242
33242
  }, null, 8, ["tooltip"]),
33243
- P(A, {
33243
+ B(A, {
33244
33244
  orientation: "vertical",
33245
33245
  class: "mx-1 me-2 h-[16px]"
33246
33246
  }),
33247
- P(q, null, {
33247
+ B(q, null, {
33248
33248
  default: M(() => [
33249
- P(D, null, {
33249
+ B(D, null, {
33250
33250
  default: M(() => [
33251
- P(T, {
33251
+ B(T, {
33252
33252
  title: b(n)("editor.image.menu.size"),
33253
33253
  icon: "ImageSize"
33254
33254
  }, null, 8, ["title"])
33255
33255
  ]),
33256
33256
  _: 1
33257
33257
  }),
33258
- P(Oe, { class: "w-84" }, {
33258
+ B(Oe, { class: "w-84" }, {
33259
33259
  default: M(() => [
33260
33260
  ne("div", _G, [
33261
- P(I, {
33261
+ B(I, {
33262
33262
  for: "maxWidth",
33263
33263
  class: "whitespace-nowrap"
33264
33264
  }, {
@@ -33267,7 +33267,7 @@ const NC = (t, e) => {
33267
33267
  ]),
33268
33268
  _: 1
33269
33269
  }),
33270
- P(B, {
33270
+ B(P, {
33271
33271
  id: "maxWidth",
33272
33272
  modelValue: o.value,
33273
33273
  "onUpdate:modelValue": k[0] || (k[0] = (G) => o.value = G),
@@ -33276,7 +33276,7 @@ const NC = (t, e) => {
33276
33276
  onInput: y,
33277
33277
  onKeyup: pc(u, ["enter"])
33278
33278
  }, null, 8, ["modelValue"]),
33279
- P(I, {
33279
+ B(I, {
33280
33280
  for: "maxWidth",
33281
33281
  class: "whitespace-nowrap"
33282
33282
  }, {
@@ -33285,7 +33285,7 @@ const NC = (t, e) => {
33285
33285
  ]),
33286
33286
  _: 1
33287
33287
  }),
33288
- P(B, {
33288
+ B(P, {
33289
33289
  id: "maxWidth",
33290
33290
  modelValue: i.value,
33291
33291
  "onUpdate:modelValue": k[1] || (k[1] = (G) => i.value = G),
@@ -33296,7 +33296,7 @@ const NC = (t, e) => {
33296
33296
  }, null, 8, ["modelValue"])
33297
33297
  ]),
33298
33298
  ne("div", EG, [
33299
- P(he, {
33299
+ B(he, {
33300
33300
  "model-value": r.value,
33301
33301
  "onUpdate:modelValue": [
33302
33302
  k[2] || (k[2] = (G) => r.value = G),
@@ -33306,9 +33306,9 @@ const NC = (t, e) => {
33306
33306
  ]
33307
33307
  }, {
33308
33308
  default: M(() => [
33309
- P(ee, null, {
33309
+ B(ee, null, {
33310
33310
  default: M(() => [
33311
- (N(), xe(et, null, $t(["25", "50", "75", "100"], (G) => P(V, {
33311
+ (N(), xe(et, null, $t(["25", "50", "75", "100"], (G) => B(V, {
33312
33312
  key: G,
33313
33313
  value: G
33314
33314
  }, {
@@ -33330,11 +33330,11 @@ const NC = (t, e) => {
33330
33330
  ]),
33331
33331
  _: 1
33332
33332
  }),
33333
- P(A, {
33333
+ B(A, {
33334
33334
  orientation: "vertical",
33335
33335
  class: "mx-1 me-2 h-[16px]"
33336
33336
  }),
33337
- (N(), xe(et, null, $t(a, (G, F) => P(T, {
33337
+ (N(), xe(et, null, $t(a, (G, F) => B(T, {
33338
33338
  key: F,
33339
33339
  tooltip: b(n)(`editor.textalign.${G}.tooltip`),
33340
33340
  icon: l[G],
@@ -33342,11 +33342,11 @@ const NC = (t, e) => {
33342
33342
  disabled: !_.editor.can().setTextAlign(G),
33343
33343
  "is-active": () => _.editor.isActive({ textAlign: G }) || !1
33344
33344
  }, null, 8, ["tooltip", "icon", "action", "disabled", "is-active"])), 64)),
33345
- P(A, {
33345
+ B(A, {
33346
33346
  orientation: "vertical",
33347
33347
  class: "mx-1 me-2 h-[16px]"
33348
33348
  }),
33349
- P(T, {
33349
+ B(T, {
33350
33350
  tooltip: b(n)("editor.remove"),
33351
33351
  icon: "Trash2",
33352
33352
  action: S,
@@ -33579,13 +33579,13 @@ const MG = { class: "flex flex-col" }, NG = { class: "w-6 h-6 p-0.5 inline-block
33579
33579
  };
33580
33580
  return (h, m) => (N(), $(b(eu), null, {
33581
33581
  default: M(() => [
33582
- P(b(nu), { disabled: h.disabled }, {
33582
+ B(b(nu), { disabled: h.disabled }, {
33583
33583
  default: M(() => [
33584
33584
  te(h.$slots, "default")
33585
33585
  ]),
33586
33586
  _: 3
33587
33587
  }, 8, ["disabled"]),
33588
- P(b(tu), {
33588
+ B(b(tu), {
33589
33589
  "hide-when-detached": "",
33590
33590
  class: "w-full h-full p-2",
33591
33591
  align: "start",
@@ -33863,7 +33863,7 @@ const XG = () => {
33863
33863
  (V = k.value) == null || V.closeDialog();
33864
33864
  }
33865
33865
  const I = U([]);
33866
- function B(V) {
33866
+ function P(V) {
33867
33867
  I.value = V;
33868
33868
  }
33869
33869
  return {
@@ -33892,7 +33892,7 @@ const XG = () => {
33892
33892
  openSuperInput: A,
33893
33893
  closeSuperInput: D,
33894
33894
  imageAttachments: I,
33895
- setImageAttachment: B
33895
+ setImageAttachment: P
33896
33896
  };
33897
33897
  }), u1 = typeof navigator < "u" ? navigator.userAgent.toLowerCase().indexOf("firefox") > 0 : !1;
33898
33898
  function c1(t, e, n, r) {
@@ -35732,7 +35732,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = F, ce = Q), ie =
35732
35732
  throw ce;
35733
35733
  ie = s;
35734
35734
  }
35735
- ie.name || (ie.name = F), e[F] = ie, ie.rawDefinition = Q.bind(null, t), ie.aliases && B(ie.aliases, { languageName: F });
35735
+ ie.name || (ie.name = F), e[F] = ie, ie.rawDefinition = Q.bind(null, t), ie.aliases && P(ie.aliases, { languageName: F });
35736
35736
  }
35737
35737
  function A(F) {
35738
35738
  delete e[F];
@@ -35745,7 +35745,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = F, ce = Q), ie =
35745
35745
  function I(F) {
35746
35746
  return F = (F || "").toLowerCase(), e[F] || e[n[F]];
35747
35747
  }
35748
- function B(F, { languageName: Q }) {
35748
+ function P(F, { languageName: Q }) {
35749
35749
  typeof F == "string" && (F = [F]), F.forEach((ie) => {
35750
35750
  n[ie.toLowerCase()] = Q;
35751
35751
  });
@@ -35795,7 +35795,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = F, ce = Q), ie =
35795
35795
  unregisterLanguage: A,
35796
35796
  listLanguages: D,
35797
35797
  getLanguage: I,
35798
- registerAliases: B,
35798
+ registerAliases: P,
35799
35799
  autoDetection: V,
35800
35800
  inherit: ew,
35801
35801
  addPlugin: he,
@@ -36085,9 +36085,9 @@ const $g = Zh("XIcon", [
36085
36085
  }), {
36086
36086
  default: M(() => [
36087
36087
  te(o.$slots, "default"),
36088
- P(b(ZP), { "as-child": "" }, {
36088
+ B(b(ZP), { "as-child": "" }, {
36089
36089
  default: M(() => [
36090
- P(b(rS), { class: "w-4 h-4 opacity-50 shrink-0" })
36090
+ B(b(rS), { class: "w-4 h-4 opacity-50 shrink-0" })
36091
36091
  ]),
36092
36092
  _: 1
36093
36093
  })
@@ -36126,7 +36126,7 @@ const $g = Zh("XIcon", [
36126
36126
  }), i = sn(o, r);
36127
36127
  return (s, a) => (N(), $(b(RP), null, {
36128
36128
  default: M(() => [
36129
- P(b(HP), Se({ ...b(i), ...s.$attrs }, {
36129
+ B(b(HP), Se({ ...b(i), ...s.$attrs }, {
36130
36130
  class: b(Qe)(
36131
36131
  "relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border bg-ed-popover text-ed-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
36132
36132
  s.position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
@@ -36134,8 +36134,8 @@ const $g = Zh("XIcon", [
36134
36134
  )
36135
36135
  }), {
36136
36136
  default: M(() => [
36137
- P(b($X)),
36138
- P(b(GP), {
36137
+ B(b($X)),
36138
+ B(b(GP), {
36139
36139
  class: ut(
36140
36140
  b(Qe)(
36141
36141
  "p-1",
@@ -36148,7 +36148,7 @@ const $g = Zh("XIcon", [
36148
36148
  ]),
36149
36149
  _: 3
36150
36150
  }, 8, ["class"]),
36151
- P(b(HX))
36151
+ B(b(HX))
36152
36152
  ]),
36153
36153
  _: 3
36154
36154
  }, 16, ["class"])
@@ -36200,14 +36200,14 @@ const $g = Zh("XIcon", [
36200
36200
  }), {
36201
36201
  default: M(() => [
36202
36202
  ne("span", FX, [
36203
- P(b(WP), null, {
36203
+ B(b(WP), null, {
36204
36204
  default: M(() => [
36205
- P(b(H2), { class: "h-4 w-4" })
36205
+ B(b(H2), { class: "h-4 w-4" })
36206
36206
  ]),
36207
36207
  _: 1
36208
36208
  })
36209
36209
  ]),
36210
- P(b(KP), null, {
36210
+ B(b(KP), null, {
36211
36211
  default: M(() => [
36212
36212
  te(o.$slots, "default")
36213
36213
  ]),
@@ -36234,7 +36234,7 @@ const $g = Zh("XIcon", [
36234
36234
  }), {
36235
36235
  default: M(() => [
36236
36236
  te(o.$slots, "default", {}, () => [
36237
- P(b(IX), { class: "h-4 w-4" })
36237
+ B(b(IX), { class: "h-4 w-4" })
36238
36238
  ])
36239
36239
  ]),
36240
36240
  _: 3
@@ -36257,7 +36257,7 @@ const $g = Zh("XIcon", [
36257
36257
  }), {
36258
36258
  default: M(() => [
36259
36259
  te(o.$slots, "default", {}, () => [
36260
- P(b(rS), { class: "h-4 w-4" })
36260
+ B(b(rS), { class: "h-4 w-4" })
36261
36261
  ])
36262
36262
  ]),
36263
36263
  _: 3
@@ -36279,28 +36279,28 @@ const $g = Zh("XIcon", [
36279
36279
  const s = OX;
36280
36280
  return N(), $(b(Ha), { class: "code-block relative" }, {
36281
36281
  default: M(() => [
36282
- P(b(MX), {
36282
+ B(b(MX), {
36283
36283
  modelValue: r.value,
36284
36284
  "onUpdate:modelValue": i[0] || (i[0] = (a) => r.value = a)
36285
36285
  }, {
36286
36286
  default: M(() => [
36287
- P(b(DX), { class: "w-[160px] h-8 absolute right-2 top-2 bg-ed-background" }, {
36287
+ B(b(DX), { class: "w-[160px] h-8 absolute right-2 top-2 bg-ed-background" }, {
36288
36288
  default: M(() => [
36289
- P(b(NX), { placeholder: "Select Language" })
36289
+ B(b(NX), { placeholder: "Select Language" })
36290
36290
  ]),
36291
36291
  _: 1
36292
36292
  }),
36293
- P(b(PX), null, {
36293
+ B(b(PX), null, {
36294
36294
  default: M(() => [
36295
- P(b(BX), null, {
36295
+ B(b(BX), null, {
36296
36296
  default: M(() => [
36297
- P(b(ow), { value: "auto" }, {
36297
+ B(b(ow), { value: "auto" }, {
36298
36298
  default: M(() => i[1] || (i[1] = [
36299
36299
  lt(" Auto ")
36300
36300
  ])),
36301
36301
  _: 1
36302
36302
  }),
36303
- P(s),
36303
+ B(s),
36304
36304
  (N(!0), xe(et, null, $t(n.value, (a, l) => (N(), $(b(ow), {
36305
36305
  key: l,
36306
36306
  value: a
@@ -36321,7 +36321,7 @@ const $g = Zh("XIcon", [
36321
36321
  }, 8, ["modelValue"]),
36322
36322
  ne("pre", null, [
36323
36323
  ne("code", null, [
36324
- P(b(OC))
36324
+ B(b(OC))
36325
36325
  ])
36326
36326
  ])
36327
36327
  ]),
@@ -36462,7 +36462,7 @@ const $g = Zh("XIcon", [
36462
36462
  }), i = sn(o, r);
36463
36463
  return (s, a) => (N(), $(b(GD), null, {
36464
36464
  default: M(() => [
36465
- P(b(JD), Se(b(i), {
36465
+ B(b(JD), Se(b(i), {
36466
36466
  class: b(Qe)(
36467
36467
  "z-50 min-w-32 overflow-hidden rounded-md border bg-ed-popover p-1 text-ed-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
36468
36468
  n.class
@@ -36529,9 +36529,9 @@ const $g = Zh("XIcon", [
36529
36529
  }), {
36530
36530
  default: M(() => [
36531
36531
  ne("span", WX, [
36532
- P(b(QD), null, {
36532
+ B(b(QD), null, {
36533
36533
  default: M(() => [
36534
- P(b(H2), { class: "w-4 h-4" })
36534
+ B(b(H2), { class: "w-4 h-4" })
36535
36535
  ]),
36536
36536
  _: 1
36537
36537
  })
@@ -36594,11 +36594,11 @@ const $g = Zh("XIcon", [
36594
36594
  const e = t;
36595
36595
  return (n, r) => (N(), $(b(iu), null, {
36596
36596
  default: M(() => [
36597
- P(b(ru), { "delay-duration": 0 }, {
36597
+ B(b(ru), { "delay-duration": 0 }, {
36598
36598
  default: M(() => [
36599
- P(b(ou), { "as-child": "" }, {
36599
+ B(b(ou), { "as-child": "" }, {
36600
36600
  default: M(() => [
36601
- P(b(Dr), {
36601
+ B(b(Dr), {
36602
36602
  id: `action-menu-${n.id}`,
36603
36603
  class: ut(b(Qe)("h-[32px] px-1.5 py-0", e.class)),
36604
36604
  variant: "ghost",
@@ -36612,7 +36612,7 @@ const $g = Zh("XIcon", [
36612
36612
  class: "w-[16px] h-[16px]",
36613
36613
  name: n.icon
36614
36614
  }, null, 8, ["name"])) : $e("", !0),
36615
- P(b(hn), {
36615
+ B(b(hn), {
36616
36616
  class: "flex-shrink-0 w-3 h-3 ml-1 text-zinc-500",
36617
36617
  name: "ChevronDown"
36618
36618
  })
@@ -36658,9 +36658,9 @@ const $g = Zh("XIcon", [
36658
36658
  const e = t;
36659
36659
  return (n, r) => (N(), $(b(oS), null, {
36660
36660
  default: M(() => [
36661
- P(b(iS), { disabled: n.disabled }, {
36661
+ B(b(iS), { disabled: n.disabled }, {
36662
36662
  default: M(() => [
36663
- P(JX, {
36663
+ B(JX, {
36664
36664
  id: n.id,
36665
36665
  class: ut(n.btn_class),
36666
36666
  title: n.title,
@@ -36672,7 +36672,7 @@ const $g = Zh("XIcon", [
36672
36672
  ]),
36673
36673
  _: 1
36674
36674
  }, 8, ["disabled"]),
36675
- P(b(sS), Se({
36675
+ B(b(sS), Se({
36676
36676
  class: b(Qe)("min-w-24", e.class),
36677
36677
  align: "start",
36678
36678
  side: "bottom"
@@ -36719,7 +36719,7 @@ const $g = Zh("XIcon", [
36719
36719
  }, {
36720
36720
  default: M(() => [
36721
36721
  (N(!0), xe(et, null, $t(e.items, (s, a) => (N(), xe(et, { key: a }, [
36722
- P(b(lu), {
36722
+ B(b(lu), {
36723
36723
  checked: n.value.title === s.title,
36724
36724
  onClick: s.action
36725
36725
  }, {
@@ -36727,7 +36727,7 @@ const $g = Zh("XIcon", [
36727
36727
  ne("div", {
36728
36728
  class: ut(["h-full ml-1", "heading-" + s.level])
36729
36729
  }, Fe(s.title), 3),
36730
- P(b(aS), { class: "pl-4" }, {
36730
+ B(b(aS), { class: "pl-4" }, {
36731
36731
  default: M(() => {
36732
36732
  var l;
36733
36733
  return [
@@ -36852,18 +36852,18 @@ const $g = Zh("XIcon", [
36852
36852
  class: "min-w-4 w-full flex flex-row gap-1"
36853
36853
  }, {
36854
36854
  default: M(() => [
36855
- P(b(iu), null, {
36855
+ B(b(iu), null, {
36856
36856
  default: M(() => [
36857
36857
  (N(!0), xe(et, null, $t(e.items, (i, s) => (N(), $(b(ru), { key: s }, {
36858
36858
  default: M(() => [
36859
- P(b(ou), { "as-child": "" }, {
36859
+ B(b(ou), { "as-child": "" }, {
36860
36860
  default: M(() => [
36861
- P(b(z2), {
36861
+ B(b(z2), {
36862
36862
  class: "p-0",
36863
36863
  onClick: i.action
36864
36864
  }, {
36865
36865
  default: M(() => [
36866
- P(b(o_), {
36866
+ B(b(o_), {
36867
36867
  size: "sm",
36868
36868
  class: "w-7 h-7 p-1",
36869
36869
  pressed: n.value.title === i.title
@@ -36882,7 +36882,7 @@ const $g = Zh("XIcon", [
36882
36882
  ]),
36883
36883
  _: 2
36884
36884
  }, 1024),
36885
- P(b(Ta), { class: "flex flex-col items-center" }, {
36885
+ B(b(Ta), { class: "flex flex-col items-center" }, {
36886
36886
  default: M(() => {
36887
36887
  var a;
36888
36888
  return [
@@ -36963,7 +36963,7 @@ const $g = Zh("XIcon", [
36963
36963
  )
36964
36964
  }), {
36965
36965
  default: M(() => [
36966
- P(b(wP), { class: "relative flex-1 rounded-full bg-ed-border" })
36966
+ B(b(wP), { class: "relative flex-1 rounded-full bg-ed-border" })
36967
36967
  ]),
36968
36968
  _: 1
36969
36969
  }, 16, ["class"]));
@@ -36987,14 +36987,14 @@ const $g = Zh("XIcon", [
36987
36987
  class: b(Qe)("relative overflow-hidden", e.class)
36988
36988
  }), {
36989
36989
  default: M(() => [
36990
- P(b(cP), { class: "h-full w-full rounded-[inherit]" }, {
36990
+ B(b(cP), { class: "h-full w-full rounded-[inherit]" }, {
36991
36991
  default: M(() => [
36992
36992
  te(r.$slots, "default")
36993
36993
  ]),
36994
36994
  _: 3
36995
36995
  }),
36996
- P(QX),
36997
- P(b(_P))
36996
+ B(QX),
36997
+ B(b(_P))
36998
36998
  ]),
36999
36999
  _: 3
37000
37000
  }, 16, ["class"]));
@@ -37033,10 +37033,10 @@ const $g = Zh("XIcon", [
37033
37033
  btn_class: `min-w-24 ${l.customClass}`
37034
37034
  }, {
37035
37035
  default: M(() => [
37036
- P(b(eY), { class: "w-32 h-96" }, {
37036
+ B(b(eY), { class: "w-32 h-96" }, {
37037
37037
  default: M(() => [
37038
37038
  (N(!0), xe(et, null, $t(e.items, (p, h) => (N(), xe(et, { key: h }, [
37039
- P(b(lu), {
37039
+ B(b(lu), {
37040
37040
  checked: i.value.title === p.title,
37041
37041
  onClick: () => a(p.title, p.action)
37042
37042
  }, {
@@ -37260,7 +37260,7 @@ const $g = Zh("XIcon", [
37260
37260
  (s = e.action) == null || s.call(e, n.value);
37261
37261
  }
37262
37262
  return (i, s) => (N(), xe("div", sY, [
37263
- P(at, {
37263
+ B(at, {
37264
37264
  id: "color",
37265
37265
  tooltip: i.tooltip,
37266
37266
  disabled: i.disabled,
@@ -37298,21 +37298,21 @@ const $g = Zh("XIcon", [
37298
37298
  ]),
37299
37299
  _: 1
37300
37300
  }, 8, ["tooltip", "disabled"]),
37301
- P(IC, {
37301
+ B(IC, {
37302
37302
  modelValue: n.value,
37303
37303
  "onUpdate:modelValue": s[0] || (s[0] = (a) => n.value = a),
37304
37304
  disabled: i.disabled,
37305
37305
  onChange: r
37306
37306
  }, {
37307
37307
  default: M(() => [
37308
- P(b(Dr), {
37308
+ B(b(Dr), {
37309
37309
  variant: "ghost",
37310
37310
  size: "icon",
37311
37311
  class: "h-[32px] w-3 rounded-l-none hover:bg-ed-muted-foreground/20",
37312
37312
  disabled: i.disabled
37313
37313
  }, {
37314
37314
  default: M(() => [
37315
- P(b(hn), {
37315
+ B(b(hn), {
37316
37316
  class: "w-3 h-3 text-zinc-500",
37317
37317
  name: "MenuDown"
37318
37318
  })
@@ -37497,7 +37497,7 @@ const $g = Zh("XIcon", [
37497
37497
  id: `dropdown-btn-${n.id}`,
37498
37498
  class: ut(["flex items-center h-[32px] hover:bg-ed-muted rounded-md", [((o = n.isActive) == null ? void 0 : o.call(n)) && "bg-ed-muted"]])
37499
37499
  }, [
37500
- P(at, {
37500
+ B(at, {
37501
37501
  class: ut(n.btnClass),
37502
37502
  action: n.action,
37503
37503
  title: n.title,
@@ -37506,18 +37506,18 @@ const $g = Zh("XIcon", [
37506
37506
  disabled: n.disabled,
37507
37507
  "shortcut-keys": n.shortcutKeys
37508
37508
  }, null, 8, ["class", "action", "title", "icon", "tooltip", "disabled", "shortcut-keys"]),
37509
- P(b(oS), null, {
37509
+ B(b(oS), null, {
37510
37510
  default: M(() => [
37511
- P(b(iS), { disabled: n.disabled }, {
37511
+ B(b(iS), { disabled: n.disabled }, {
37512
37512
  default: M(() => [
37513
- P(Dr, {
37513
+ B(Dr, {
37514
37514
  variant: "ghost",
37515
37515
  size: "icon",
37516
37516
  class: "h-[32px] w-3 rounded-l-none hover:bg-ed-muted-foreground/20",
37517
37517
  disabled: n.disabled
37518
37518
  }, {
37519
37519
  default: M(() => [
37520
- P(b(hn), {
37520
+ B(b(hn), {
37521
37521
  class: "w-3 h-3 text-zinc-500",
37522
37522
  name: "MenuDown"
37523
37523
  })
@@ -37527,7 +37527,7 @@ const $g = Zh("XIcon", [
37527
37527
  ]),
37528
37528
  _: 1
37529
37529
  }, 8, ["disabled"]),
37530
- P(b(sS), Se({
37530
+ B(b(sS), Se({
37531
37531
  class: b(Qe)("min-w-24", e.class),
37532
37532
  align: "start",
37533
37533
  side: "bottom"
@@ -37570,16 +37570,16 @@ const $g = Zh("XIcon", [
37570
37570
  class: "grid w-full grid-cols-3 gap-1 min-w-4"
37571
37571
  }, {
37572
37572
  default: M(() => [
37573
- P(b(iu), null, {
37573
+ B(b(iu), null, {
37574
37574
  default: M(() => [
37575
- (N(), xe(et, null, $t(r, (l) => P(b(ru), {
37575
+ (N(), xe(et, null, $t(r, (l) => B(b(ru), {
37576
37576
  key: l.value,
37577
37577
  "delay-duration": 0
37578
37578
  }, {
37579
37579
  default: M(() => [
37580
- P(b(ou), null, {
37580
+ B(b(ou), null, {
37581
37581
  default: M(() => [
37582
- P(b(z2), {
37582
+ B(b(z2), {
37583
37583
  class: "p-0",
37584
37584
  onClick: (u) => i(l)
37585
37585
  }, {
@@ -37602,7 +37602,7 @@ const $g = Zh("XIcon", [
37602
37602
  ]),
37603
37603
  _: 2
37604
37604
  }, 1024),
37605
- P(b(Ta), { side: "bottom" }, {
37605
+ B(b(Ta), { side: "bottom" }, {
37606
37606
  default: M(() => [
37607
37607
  lt(Fe(b(n)(l.label)), 1)
37608
37608
  ]),
@@ -37777,16 +37777,16 @@ const $g = Zh("XIcon", [
37777
37777
  class: "min-w-4 w-full grid grid-cols-3 gap-1"
37778
37778
  }, {
37779
37779
  default: M(() => [
37780
- P(b(iu), null, {
37780
+ B(b(iu), null, {
37781
37781
  default: M(() => [
37782
- (N(), xe(et, null, $t(r, (l) => P(b(ru), {
37782
+ (N(), xe(et, null, $t(r, (l) => B(b(ru), {
37783
37783
  key: l.value,
37784
37784
  "delay-duration": 0
37785
37785
  }, {
37786
37786
  default: M(() => [
37787
- P(b(ou), { "as-child": "" }, {
37787
+ B(b(ou), { "as-child": "" }, {
37788
37788
  default: M(() => [
37789
- P(b(z2), {
37789
+ B(b(z2), {
37790
37790
  class: "p-0",
37791
37791
  onClick: (u) => i(l)
37792
37792
  }, {
@@ -37809,7 +37809,7 @@ const $g = Zh("XIcon", [
37809
37809
  ]),
37810
37810
  _: 2
37811
37811
  }, 1024),
37812
- P(b(Ta), { side: "bottom" }, {
37812
+ B(b(Ta), { side: "bottom" }, {
37813
37813
  default: M(() => [
37814
37814
  lt(Fe(b(n)(l.label)), 1)
37815
37815
  ]),
@@ -38679,8 +38679,8 @@ function WY({
38679
38679
  _t(S, t.numeric, _);
38680
38680
  const k = lo(Ef), T = lo();
38681
38681
  _t(k, e, k), _t(k, n, T), _t(T, e, k), _t(T, n, T), Me(C, Yo, k), Me(_, Yo, k);
38682
- const A = Me(a, vs), D = Me(l, vs), I = Me(D, Yo), B = Me(I, Yo);
38683
- _t(a, t.domain, s), Me(a, Xo, x), Me(a, uo, w), _t(l, t.domain, s), Me(l, Xo, x), Me(l, uo, w), _t(A, t.domain, k), Me(A, Yo, k), Me(A, lc, k), _t(B, t.domain, k), _t(B, e, k), Me(B, Yo, k);
38682
+ const A = Me(a, vs), D = Me(l, vs), I = Me(D, Yo), P = Me(I, Yo);
38683
+ _t(a, t.domain, s), Me(a, Xo, x), Me(a, uo, w), _t(l, t.domain, s), Me(l, Xo, x), Me(l, uo, w), _t(A, t.domain, k), Me(A, Yo, k), Me(A, lc, k), _t(P, t.domain, k), _t(P, e, k), Me(P, Yo, k);
38684
38684
  const V = [
38685
38685
  [ic, sc],
38686
38686
  // {}
@@ -39084,10 +39084,10 @@ const ES = /* @__PURE__ */ j({
39084
39084
  )
39085
39085
  }), {
39086
39086
  default: M(() => [
39087
- P(b(lD), { class: "flex h-full w-full items-center justify-center text-current" }, {
39087
+ B(b(lD), { class: "flex h-full w-full items-center justify-center text-current" }, {
39088
39088
  default: M(() => [
39089
39089
  te(s.$slots, "default", {}, () => [
39090
- P(b(nZ), { class: "h-4 w-4" })
39090
+ B(b(nZ), { class: "h-4 w-4" })
39091
39091
  ])
39092
39092
  ]),
39093
39093
  _: 3
@@ -39132,7 +39132,7 @@ const ES = /* @__PURE__ */ j({
39132
39132
  class: "flex flex-col gap-2",
39133
39133
  onSubmit: Qn(d, ["prevent"])
39134
39134
  }, [
39135
- P(b(Mf), null, {
39135
+ B(b(Mf), null, {
39136
39136
  default: M(() => [
39137
39137
  lt(Fe(b(o)("editor.link.dialog.text")), 1)
39138
39138
  ]),
@@ -39140,7 +39140,7 @@ const ES = /* @__PURE__ */ j({
39140
39140
  }),
39141
39141
  ne("div", rZ, [
39142
39142
  ne("div", oZ, [
39143
- P(b(Dl), {
39143
+ B(b(Dl), {
39144
39144
  modelValue: b(i).text,
39145
39145
  "onUpdate:modelValue": h[0] || (h[0] = (g) => b(i).text = g),
39146
39146
  type: "text",
@@ -39150,7 +39150,7 @@ const ES = /* @__PURE__ */ j({
39150
39150
  }, null, 8, ["modelValue"])
39151
39151
  ])
39152
39152
  ]),
39153
- P(b(Mf), null, {
39153
+ B(b(Mf), null, {
39154
39154
  default: M(() => [
39155
39155
  lt(Fe(b(o)("editor.link.dialog.link")), 1)
39156
39156
  ]),
@@ -39158,7 +39158,7 @@ const ES = /* @__PURE__ */ j({
39158
39158
  }),
39159
39159
  ne("div", iZ, [
39160
39160
  ne("div", sZ, [
39161
- P(b(Dl), {
39161
+ B(b(Dl), {
39162
39162
  ref_key: "inputRef",
39163
39163
  ref: s,
39164
39164
  modelValue: b(i).link,
@@ -39168,7 +39168,7 @@ const ES = /* @__PURE__ */ j({
39168
39168
  class: "pl-10"
39169
39169
  }, null, 8, ["modelValue"]),
39170
39170
  ne("span", aZ, [
39171
- P(b(hn), {
39171
+ B(b(hn), {
39172
39172
  class: "size-5 text-ed-muted-foreground",
39173
39173
  name: "Link"
39174
39174
  })
@@ -39176,19 +39176,19 @@ const ES = /* @__PURE__ */ j({
39176
39176
  ])
39177
39177
  ]),
39178
39178
  ne("div", lZ, [
39179
- P(m, {
39179
+ B(m, {
39180
39180
  id: "openInNewTab",
39181
39181
  checked: l.value,
39182
39182
  "onUpdate:checked": h[2] || (h[2] = (g) => l.value = g)
39183
39183
  }, null, 8, ["checked"]),
39184
- P(b(Mf), { for: "openInNewTab" }, {
39184
+ B(b(Mf), { for: "openInNewTab" }, {
39185
39185
  default: M(() => [
39186
39186
  lt(Fe(b(o)("editor.link.dialog.openInNewTab")), 1)
39187
39187
  ]),
39188
39188
  _: 1
39189
39189
  })
39190
39190
  ]),
39191
- P(b(Dr), {
39191
+ B(b(Dr), {
39192
39192
  type: "submit",
39193
39193
  class: "mt-2 self-end"
39194
39194
  }, {
@@ -39220,9 +39220,9 @@ const ES = /* @__PURE__ */ j({
39220
39220
  }
39221
39221
  return (r, o) => (N(), $(b(eu), null, {
39222
39222
  default: M(() => [
39223
- P(b(nu), { disabled: r.disabled }, {
39223
+ B(b(nu), { disabled: r.disabled }, {
39224
39224
  default: M(() => [
39225
- P(at, {
39225
+ B(at, {
39226
39226
  icon: r.icon,
39227
39227
  tooltip: r.tooltip,
39228
39228
  "is-active": r.isActive,
@@ -39231,7 +39231,7 @@ const ES = /* @__PURE__ */ j({
39231
39231
  ]),
39232
39232
  _: 1
39233
39233
  }, 8, ["disabled"]),
39234
- P(b(tu), {
39234
+ B(b(tu), {
39235
39235
  "hide-when-detached": "",
39236
39236
  "as-child": "",
39237
39237
  class: "w-full",
@@ -39239,7 +39239,7 @@ const ES = /* @__PURE__ */ j({
39239
39239
  side: "bottom"
39240
39240
  }, {
39241
39241
  default: M(() => [
39242
- P(CS, {
39242
+ B(CS, {
39243
39243
  editor: r.editor,
39244
39244
  onOnSetLink: n
39245
39245
  }, null, 8, ["editor"])
@@ -41882,7 +41882,7 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
41882
41882
  }), i = sn(o, r);
41883
41883
  return (s, a) => (N(), $(b(VD), null, {
41884
41884
  default: M(() => [
41885
- P(b(UD), Se(b(i), {
41885
+ B(b(UD), Se(b(i), {
41886
41886
  class: b(Qe)(
41887
41887
  "z-50 min-w-32 overflow-hidden rounded-md border bg-ed-popover p-1 text-ed-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
41888
41888
  n.class
@@ -41978,7 +41978,7 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
41978
41978
  }), i = sn(o, r);
41979
41979
  return (s, a) => (N(), $(b(zx), null, {
41980
41980
  default: M(() => [
41981
- P(b(Gx), {
41981
+ B(b(Gx), {
41982
41982
  class: ut(
41983
41983
  b(Qe)(
41984
41984
  "fixed inset-0 z-[60] bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
@@ -41986,7 +41986,7 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
41986
41986
  )
41987
41987
  )
41988
41988
  }, null, 8, ["class"]),
41989
- P(b(QI), Se(b(i), {
41989
+ B(b(QI), Se(b(i), {
41990
41990
  class: b(Qe)(
41991
41991
  "fixed left-1/2 top-1/2 z-[60] grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-ed-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
41992
41992
  n.class
@@ -42118,7 +42118,7 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
42118
42118
  return e({ insertSpecialCharater: d, isChecked: p, toggleSpellCheck: h }), (m, g) => (N(), xe("div", {
42119
42119
  class: ut(b(Qe)("h-40 overflow-y-auto", b(i) && "h-20 rounded-[5px]"))
42120
42120
  }, [
42121
- P(b(rd), {
42121
+ B(b(rd), {
42122
42122
  editor: b(u),
42123
42123
  class: ut(
42124
42124
  b(Qe)(
@@ -42163,8 +42163,8 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
42163
42163
  r.superTextInit && (i.value = r.superTextInit, r.superTextId && (s.value = r.superTextId)), await Dt();
42164
42164
  const I = document.querySelector(".draggable-dialog");
42165
42165
  if (I) {
42166
- const { width: B, height: V } = I.getBoundingClientRect(), ee = window.innerWidth, he = window.innerHeight;
42167
- u.x = (ee - B) / 2, u.y = (he - V) / 2;
42166
+ const { width: P, height: V } = I.getBoundingClientRect(), ee = window.innerWidth, he = window.innerHeight;
42167
+ u.x = (ee - P) / 2, u.y = (he - V) / 2;
42168
42168
  }
42169
42169
  }
42170
42170
  },
@@ -42175,8 +42175,8 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
42175
42175
  }, x = () => {
42176
42176
  n("save", i.value), i.value = "";
42177
42177
  }, C = (A = (T = r.editor) == null ? void 0 : T.extensionManager.extensions.find((D) => D.name === "superText")) == null ? void 0 : A.options.specialCharModal, S = (D, I) => {
42178
- var B;
42179
- I && ((B = a.value) == null || B.insertSpecialCharater(D));
42178
+ var P;
42179
+ I && ((P = a.value) == null || P.insertSpecialCharater(D));
42180
42180
  }, _ = Y(() => {
42181
42181
  var D;
42182
42182
  return (D = a.value) == null ? void 0 : D.isChecked;
@@ -42187,13 +42187,13 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
42187
42187
  return ur(() => {
42188
42188
  document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", g);
42189
42189
  }), (D, I) => {
42190
- const B = n7, V = t7, ee = e7, he = QS, Oe = ZS, q = YS;
42190
+ const P = n7, V = t7, ee = e7, he = QS, Oe = ZS, q = YS;
42191
42191
  return N(), $(q, { open: D.open }, {
42192
42192
  default: M(() => [
42193
- P(b(zx), null, {
42193
+ B(b(zx), null, {
42194
42194
  default: M(() => [
42195
- P(b(Gx), { class: "!pointer-events-none bg-black/30" }),
42196
- P(Oe, {
42195
+ B(b(Gx), { class: "!pointer-events-none bg-black/30" }),
42196
+ B(Oe, {
42197
42197
  "is-overlay-transparent": "",
42198
42198
  class: "p-0 gap-0 !animate-none !transition-none",
42199
42199
  "as-child": ""
@@ -42209,23 +42209,23 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
42209
42209
  left: "0px"
42210
42210
  })
42211
42211
  }, [
42212
- P(ee, {
42212
+ B(ee, {
42213
42213
  class: "bg-blue-500 text-white p-2.5 rounded-t-[5px] cursor-move",
42214
42214
  onMousedown: Qn(h, ["prevent"])
42215
42215
  }, {
42216
42216
  default: M(() => [
42217
- P(B, null, {
42217
+ B(P, null, {
42218
42218
  default: M(() => [
42219
42219
  lt(Fe(b(o)("editor.superinput")), 1)
42220
42220
  ]),
42221
42221
  _: 1
42222
42222
  }),
42223
- P(V, {
42223
+ B(V, {
42224
42224
  class: "absolute right-3 top-3 text-white",
42225
42225
  onClick: w
42226
42226
  }, {
42227
42227
  default: M(() => [
42228
- P(b($g), { class: "w-5 h-5" }),
42228
+ B(b($g), { class: "w-5 h-5" }),
42229
42229
  I[3] || (I[3] = ne("span", { class: "sr-only" }, "Close", -1))
42230
42230
  ]),
42231
42231
  _: 1
@@ -42237,7 +42237,7 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
42237
42237
  ne("div", pee, [
42238
42238
  I[4] || (I[4] = ne("label", { class: "w-1/6" }, " ", -1)),
42239
42239
  ne("div", hee, [
42240
- P(Dr, {
42240
+ B(Dr, {
42241
42241
  class: "text-[#65558F] bg-[#ECE6F0] hover:bg-[#ECE6F0]/90 shadow text-xs rounded font-normal h-[25px] px-3",
42242
42242
  onClick: I[0] || (I[0] = (ie) => l.value = !0)
42243
42243
  }, {
@@ -42247,7 +42247,7 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
42247
42247
  _: 1
42248
42248
  }),
42249
42249
  ne("div", mee, [
42250
- P(ES, {
42250
+ B(ES, {
42251
42251
  id: "spellcheck",
42252
42252
  checked: b(_),
42253
42253
  class: "border-gray-300",
@@ -42266,7 +42266,7 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
42266
42266
  ]),
42267
42267
  ne("div", bee, [
42268
42268
  ne("label", vee, Fe(b(o)("editor.detail")), 1),
42269
- P(r7, {
42269
+ B(r7, {
42270
42270
  ref_key: "simpleEditorRef",
42271
42271
  ref: a,
42272
42272
  modelValue: i.value,
@@ -42277,16 +42277,16 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
42277
42277
  ]),
42278
42278
  ne("div", yee, [
42279
42279
  I[5] || (I[5] = ne("label", { class: "w-1/6 text-right text-sm p-2" }, "ID", -1)),
42280
- P(Dl, {
42280
+ B(Dl, {
42281
42281
  class: "flex-1 rounded-none",
42282
42282
  "default-value": s.value,
42283
42283
  disabled: ""
42284
42284
  }, null, 8, ["default-value"])
42285
42285
  ])
42286
42286
  ]),
42287
- P(he, { class: "sm:justify-center pb-3.5 pt-1" }, {
42287
+ B(he, { class: "sm:justify-center pb-3.5 pt-1" }, {
42288
42288
  default: M(() => [
42289
- P(Dr, {
42289
+ B(Dr, {
42290
42290
  as: "button",
42291
42291
  variant: "default",
42292
42292
  class: "bg-blue-500 hover:bg-blue-500/90",
@@ -42294,18 +42294,18 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
42294
42294
  onClick: x
42295
42295
  }, {
42296
42296
  default: M(() => [
42297
- P(b(H2), { class: "w-5 h-5 mr-2" }),
42297
+ B(b(H2), { class: "w-5 h-5 mr-2" }),
42298
42298
  lt(" " + Fe(b(o)("editor.check")), 1)
42299
42299
  ]),
42300
42300
  _: 1
42301
42301
  }, 8, ["disabled"]),
42302
- P(Dr, {
42302
+ B(Dr, {
42303
42303
  as: "button",
42304
42304
  variant: "destructive",
42305
42305
  onClick: w
42306
42306
  }, {
42307
42307
  default: M(() => [
42308
- P(b($g), { class: "w-5 h-5 mr-2" }),
42308
+ B(b($g), { class: "w-5 h-5 mr-2" }),
42309
42309
  I[6] || (I[6] = lt(" Close "))
42310
42310
  ]),
42311
42311
  _: 1
@@ -42376,20 +42376,20 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
42376
42376
  } catch {
42377
42377
  l.value = !0;
42378
42378
  }
42379
- }, C = () => {
42380
- if (!n.editor) return;
42381
- const { view: S, state: _ } = n.editor, { from: k, to: T } = _.selection, A = _.doc.textBetween(k, T, " ").trim();
42382
- i.from = k, i.to = T, i.text = A, s.value = A;
42383
- let D = "";
42384
- _.doc.nodesBetween(k, T, (I) => {
42385
- var B;
42386
- (B = I.attrs) != null && B.id && (D = I.attrs.id);
42387
- }), a.value = D, o.value = !0;
42379
+ }, C = (S) => {
42380
+ if (S.srcElement.nodeName !== "P" || !n.editor || u.value) return;
42381
+ const { view: _, state: k } = n.editor, { from: T, to: A } = k.selection, D = k.doc.textBetween(T, A, " ").trim();
42382
+ i.from = T, i.to = A, i.text = D, s.value = D;
42383
+ let I = "";
42384
+ k.doc.nodesBetween(T, A, (P) => {
42385
+ var V;
42386
+ (V = P.attrs) != null && V.id && (I = P.attrs.id);
42387
+ }), a.value = I, o.value = !0;
42388
42388
  };
42389
42389
  return e({ toggleDialog: p, openDialog: h, closeDialog: m }), (S, _) => {
42390
42390
  const k = sd, T = s0, A = i0, D = o0, I = r0;
42391
42391
  return N(), xe(et, null, [
42392
- P(k, {
42392
+ B(k, {
42393
42393
  open: o.value,
42394
42394
  editor: S.editor,
42395
42395
  "super-text-init": s.value,
@@ -42397,34 +42397,34 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
42397
42397
  onClose: p,
42398
42398
  onSave: g
42399
42399
  }, null, 8, ["open", "editor", "super-text-init", "super-text-id"]),
42400
- P(I, { "onUpdate:open": x }, {
42400
+ B(I, { "onUpdate:open": x }, {
42401
42401
  default: M(() => [
42402
- P(T, {
42402
+ B(T, {
42403
42403
  as: "template",
42404
42404
  class: "relative",
42405
42405
  disabled: b(u),
42406
- onDblclick: Qn(C, ["prevent", "stop"])
42406
+ onDblclick: _[0] || (_[0] = Qn((P) => C(P), ["prevent", "stop"]))
42407
42407
  }, {
42408
42408
  default: M(() => [
42409
42409
  te(S.$slots, "default")
42410
42410
  ]),
42411
42411
  _: 3
42412
42412
  }, 8, ["disabled"]),
42413
- P(D, null, {
42413
+ B(D, null, {
42414
42414
  default: M(() => [
42415
- P(A, { onSelect: h }, {
42415
+ B(A, { onSelect: h }, {
42416
42416
  default: M(() => [
42417
42417
  lt(Fe(b(r)("editor.inputSuper")), 1)
42418
42418
  ]),
42419
42419
  _: 1
42420
42420
  }),
42421
- P(A, { onSelect: y }, {
42421
+ B(A, { onSelect: y }, {
42422
42422
  default: M(() => [
42423
42423
  lt(Fe(b(r)("editor.copy")), 1)
42424
42424
  ]),
42425
42425
  _: 1
42426
42426
  }),
42427
- P(A, {
42427
+ B(A, {
42428
42428
  disabled: l.value,
42429
42429
  onSelect: w
42430
42430
  }, {
@@ -42486,13 +42486,13 @@ const wee = {
42486
42486
  }, {
42487
42487
  default: M(() => [
42488
42488
  ne("div", wee, [
42489
- P(x, {
42489
+ B(x, {
42490
42490
  mode: u.value ? b(Ct).REPORT : b(Ct).EDITOR,
42491
42491
  editor: y.editor,
42492
42492
  "super-text-store": b(r)
42493
42493
  }, {
42494
42494
  default: M(() => [
42495
- P(b(OC), {
42495
+ B(b(OC), {
42496
42496
  class: "umo-page-node-content",
42497
42497
  style: Jt({
42498
42498
  height: m.value
@@ -42894,7 +42894,7 @@ const Ow = (t) => t.command(({ tr: e }) => {
42894
42894
  }, {
42895
42895
  default: M(() => [
42896
42896
  (N(!0), xe(et, null, $t(s.value, (m, g) => (N(), xe(et, { key: g }, [
42897
- P(b(lu), {
42897
+ B(b(lu), {
42898
42898
  checked: a.value === m.value,
42899
42899
  onClick: (y) => u(m)
42900
42900
  }, {
@@ -43009,17 +43009,17 @@ const Ow = (t) => t.command(({ tr: e }) => {
43009
43009
  return (i, s) => {
43010
43010
  const a = ou, l = ru, u = iu;
43011
43011
  return N(), xe("div", Mee, [
43012
- P(u, null, {
43012
+ B(u, null, {
43013
43013
  default: M(() => [
43014
- P(l, { "delay-duration": 0 }, {
43014
+ B(l, { "delay-duration": 0 }, {
43015
43015
  default: M(() => [
43016
- P(a, null, {
43016
+ B(a, null, {
43017
43017
  default: M(() => [
43018
43018
  ne("button", {
43019
43019
  class: "btn",
43020
43020
  onClick: s[0] || (s[0] = (d) => o(!0))
43021
43021
  }, [
43022
- P(b(hn), {
43022
+ B(b(hn), {
43023
43023
  name: "Plus",
43024
43024
  class: "w-6 h-6"
43025
43025
  })
@@ -43027,7 +43027,7 @@ const Ow = (t) => t.command(({ tr: e }) => {
43027
43027
  ]),
43028
43028
  _: 1
43029
43029
  }),
43030
- P(b(Ta), null, {
43030
+ B(b(Ta), null, {
43031
43031
  default: M(() => s[2] || (s[2] = [
43032
43032
  lt(" 글꼴 크기 크게 ")
43033
43033
  ])),
@@ -43039,18 +43039,18 @@ const Ow = (t) => t.command(({ tr: e }) => {
43039
43039
  ]),
43040
43040
  _: 1
43041
43041
  }),
43042
- P(u, null, {
43042
+ B(u, null, {
43043
43043
  default: M(() => [
43044
- P(l, { "delay-duration": 0 }, {
43044
+ B(l, { "delay-duration": 0 }, {
43045
43045
  default: M(() => [
43046
- P(a, null, {
43046
+ B(a, null, {
43047
43047
  default: M(() => [
43048
43048
  ne("button", {
43049
43049
  class: "btn",
43050
43050
  onClick: s[1] || (s[1] = (d) => o(!1)),
43051
43051
  disabled: b(n)
43052
43052
  }, [
43053
- P(b(hn), {
43053
+ B(b(hn), {
43054
43054
  name: "Minus",
43055
43055
  class: "w-6 h-6"
43056
43056
  })
@@ -43058,7 +43058,7 @@ const Ow = (t) => t.command(({ tr: e }) => {
43058
43058
  ]),
43059
43059
  _: 1
43060
43060
  }),
43061
- P(b(Ta), null, {
43061
+ B(b(Ta), null, {
43062
43062
  default: M(() => s[3] || (s[3] = [
43063
43063
  lt(" 글꼴 크기 작게 ")
43064
43064
  ])),
@@ -43324,9 +43324,9 @@ const Ow = (t) => t.command(({ tr: e }) => {
43324
43324
  h: 0,
43325
43325
  dir: ""
43326
43326
  }), a = Y(() => {
43327
- const { src: _, alt: k, width: T, height: A, flipX: D, flipY: I } = e.node.attrs, B = [];
43328
- D && B.push("rotateX(180deg)"), I && B.push("rotateY(180deg)");
43329
- const V = B.join(" ");
43327
+ const { src: _, alt: k, width: T, height: A, flipX: D, flipY: I } = e.node.attrs, P = [];
43328
+ D && P.push("rotateX(180deg)"), I && P.push("rotateY(180deg)");
43329
+ const V = P.join(" ");
43330
43330
  return {
43331
43331
  src: _ || void 0,
43332
43332
  alt: k || void 0,
@@ -43355,14 +43355,14 @@ const Ow = (t) => t.command(({ tr: e }) => {
43355
43355
  function m(_, k) {
43356
43356
  _.preventDefault(), _.stopPropagation();
43357
43357
  const { width: T, height: A } = b(o), D = T / A;
43358
- let I = Number(e.node.attrs.width) || T, B = Number(e.node.attrs.height) || Math.round(I / D);
43358
+ let I = Number(e.node.attrs.width) || T, P = Number(e.node.attrs.height) || Math.round(I / D);
43359
43359
  const V = b(r).width;
43360
- I = Math.min(I > V ? V : I, V), B = Math.round(I / D), Object.assign(s.value, { x: _.clientX, y: _.clientY, w: I, h: B, dir: k }), i.value = !0, w();
43360
+ I = Math.min(I > V ? V : I, V), P = Math.round(I / D), Object.assign(s.value, { x: _.clientX, y: _.clientY, w: I, h: P, dir: k }), i.value = !0, w();
43361
43361
  }
43362
43362
  const g = Vt.throttle((_) => {
43363
43363
  if (!b(i)) return;
43364
- const { x: k, y: T, w: A, dir: D } = b(s), I = (_.clientX - k) * (/l/.test(D) ? -1 : 1), B = ZB(A + I, TG, b(r).width);
43365
- e.updateAttributes({ width: B });
43364
+ const { x: k, y: T, w: A, dir: D } = b(s), I = (_.clientX - k) * (/l/.test(D) ? -1 : 1), P = ZB(A + I, TG, b(r).width);
43365
+ e.updateAttributes({ width: P });
43366
43366
  }, q8);
43367
43367
  function y(_) {
43368
43368
  _.preventDefault(), _.stopPropagation(), b(i) && (i.value = !1, Object.assign(s.value, { x: 0, y: 0, w: 0, h: 0, dir: "" }), x(), p());
@@ -43862,14 +43862,14 @@ const vv = Qt.create({
43862
43862
  const y = n7, w = t7, x = e7, C = Zee, S = QS, _ = ZS, k = YS;
43863
43863
  return N(), $(k, { open: m.open }, {
43864
43864
  default: M(() => [
43865
- P(_, {
43865
+ B(_, {
43866
43866
  isOverlayTransparent: "",
43867
43867
  class: "p-2.5 gap-0 gap-y-2.5 border-none w-[calc(100%-40px)] !shadow-ed rounded-[5px]"
43868
43868
  }, {
43869
43869
  default: M(() => [
43870
- P(x, { class: "text-left flex-row justify-between" }, {
43870
+ B(x, { class: "text-left flex-row justify-between" }, {
43871
43871
  default: M(() => [
43872
- P(y, { class: "text-base font-normal" }, {
43872
+ B(y, { class: "text-base font-normal" }, {
43873
43873
  default: M(() => [
43874
43874
  lt(Fe(m.title ? m.title : b(o)("editor.superinput")), 1)
43875
43875
  ]),
@@ -43877,16 +43877,16 @@ const vv = Qt.create({
43877
43877
  }),
43878
43878
  ne("div", Qee, [
43879
43879
  Io(ne("button", { onClick: h }, [
43880
- P(b(b_), { icon: "lucide:edit-2" })
43880
+ B(b(b_), { icon: "lucide:edit-2" })
43881
43881
  ], 512), [
43882
43882
  [zi, a.value]
43883
43883
  ]),
43884
- P(w, {
43884
+ B(w, {
43885
43885
  class: "outline-none",
43886
43886
  onClick: d
43887
43887
  }, {
43888
43888
  default: M(() => [
43889
- P(b($g), { class: "w-5 h-5" }),
43889
+ B(b($g), { class: "w-5 h-5" }),
43890
43890
  ne("span", ete, Fe(b(o)("editor.close")), 1)
43891
43891
  ]),
43892
43892
  _: 1
@@ -43895,13 +43895,13 @@ const vv = Qt.create({
43895
43895
  ]),
43896
43896
  _: 1
43897
43897
  }),
43898
- P(C, { class: "hidden" }),
43899
- P(r7, {
43898
+ B(C, { class: "hidden" }),
43899
+ B(r7, {
43900
43900
  isReadOnly: a.value,
43901
43901
  modelValue: i.value,
43902
43902
  "onUpdate:modelValue": g[0] || (g[0] = (T) => i.value = T)
43903
43903
  }, null, 8, ["isReadOnly", "modelValue"]),
43904
- P(S, { class: "flex-row justify-between" }, {
43904
+ B(S, { class: "flex-row justify-between" }, {
43905
43905
  default: M(() => [
43906
43906
  Io(ne("button", {
43907
43907
  onClick: g[1] || (g[1] = (T) => n("delete"))
@@ -43992,14 +43992,14 @@ const vv = Qt.create({
43992
43992
  contenteditable: "false"
43993
43993
  }, {
43994
43994
  default: M(() => [
43995
- P(A, null, {
43995
+ B(A, null, {
43996
43996
  default: M(() => [
43997
- P(_, {
43997
+ B(_, {
43998
43998
  as: "template",
43999
43999
  class: "relative"
44000
44000
  }, {
44001
44001
  default: M(() => [
44002
- P(S, {
44002
+ B(S, {
44003
44003
  variant: "ghost",
44004
44004
  class: "!p-0 !m-0 !h-fit",
44005
44005
  onDblclick: w,
@@ -44007,7 +44007,7 @@ const vv = Qt.create({
44007
44007
  onMouseleave: g
44008
44008
  }, {
44009
44009
  default: M(() => [
44010
- P(b(hn), {
44010
+ B(b(hn), {
44011
44011
  name: "fileEdit",
44012
44012
  class: ut({
44013
44013
  "w-[13px] h-auto": b(s)
@@ -44029,9 +44029,9 @@ const vv = Qt.create({
44029
44029
  ]),
44030
44030
  _: 1
44031
44031
  }),
44032
- P(T, null, {
44032
+ B(T, null, {
44033
44033
  default: M(() => [
44034
- P(k, {
44034
+ B(k, {
44035
44035
  onSelect: C[0] || (C[0] = (I) => n.value = !0)
44036
44036
  }, {
44037
44037
  default: M(() => [
@@ -44039,7 +44039,7 @@ const vv = Qt.create({
44039
44039
  ]),
44040
44040
  _: 1
44041
44041
  }),
44042
- P(k, { onSelect: y }, {
44042
+ B(k, { onSelect: y }, {
44043
44043
  default: M(() => [
44044
44044
  lt(Fe(x.$t("editor.super.delete")), 1)
44045
44045
  ]),
@@ -44257,14 +44257,14 @@ const vv = Qt.create({
44257
44257
  contenteditable: "false"
44258
44258
  }, {
44259
44259
  default: M(() => [
44260
- P(A, null, {
44260
+ B(A, null, {
44261
44261
  default: M(() => [
44262
- P(_, {
44262
+ B(_, {
44263
44263
  as: "template",
44264
44264
  class: "relative"
44265
44265
  }, {
44266
44266
  default: M(() => [
44267
- P(S, {
44267
+ B(S, {
44268
44268
  variant: "ghost",
44269
44269
  class: "!p-0 !m-0 !h-fit font-normal !text-ed-blue",
44270
44270
  onClick: w,
@@ -44272,7 +44272,7 @@ const vv = Qt.create({
44272
44272
  onMouseleave: g
44273
44273
  }, {
44274
44274
  default: M(() => [
44275
- P(b(hn), {
44275
+ B(b(hn), {
44276
44276
  name: "plan",
44277
44277
  class: ut({
44278
44278
  "w-[18px] h-auto pr-1": b(s)
@@ -44300,9 +44300,9 @@ const vv = Qt.create({
44300
44300
  ]),
44301
44301
  _: 1
44302
44302
  }),
44303
- P(T, null, {
44303
+ B(T, null, {
44304
44304
  default: M(() => [
44305
- P(k, {
44305
+ B(k, {
44306
44306
  onSelect: C[0] || (C[0] = (I) => n.value = !0)
44307
44307
  }, {
44308
44308
  default: M(() => [
@@ -44310,7 +44310,7 @@ const vv = Qt.create({
44310
44310
  ]),
44311
44311
  _: 1
44312
44312
  }),
44313
- P(k, { onSelect: y }, {
44313
+ B(k, { onSelect: y }, {
44314
44314
  default: M(() => [
44315
44315
  lt(Fe(x.$t("editor.configPlan.delete")), 1)
44316
44316
  ]),
@@ -46492,7 +46492,7 @@ const Af = ({ editor: t }) => {
46492
46492
  }
46493
46493
  return (d, p) => (N(), $(b(eu), null, {
46494
46494
  default: M(() => [
46495
- P(b(nu), { "as-child": "" }, {
46495
+ B(b(nu), { "as-child": "" }, {
46496
46496
  default: M(() => [
46497
46497
  ne("button", {
46498
46498
  disabled: t.disabled,
@@ -46503,7 +46503,7 @@ const Af = ({ editor: t }) => {
46503
46503
  ]),
46504
46504
  _: 3
46505
46505
  }),
46506
- P(b(tu), {
46506
+ B(b(tu), {
46507
46507
  class: "w-full",
46508
46508
  align: "start",
46509
46509
  side: "bottom"
@@ -46559,7 +46559,7 @@ const Af = ({ editor: t }) => {
46559
46559
  }, {
46560
46560
  trigger: M(() => [
46561
46561
  ne("div", Ene, [
46562
- P(at, {
46562
+ B(at, {
46563
46563
  icon: r.icon,
46564
46564
  tooltip: r.tooltip,
46565
46565
  disabled: r.disabled,
@@ -46693,7 +46693,7 @@ const Af = ({ editor: t }) => {
46693
46693
  }, {
46694
46694
  default: M(() => [
46695
46695
  ne("div", Sne, [
46696
- P(b(hn), {
46696
+ B(b(hn), {
46697
46697
  name: l.iconName,
46698
46698
  class: "h3 w-3"
46699
46699
  }, null, 8, ["name"]),
@@ -47046,10 +47046,10 @@ function Ine({ pluginKey: t = Lne, editor: e, char: n = "@", allowSpaces: r = !1
47046
47046
  return {
47047
47047
  update: async (x, C) => {
47048
47048
  var S, _, k, T, A, D, I;
47049
- const B = (S = this.key) === null || S === void 0 ? void 0 : S.getState(C), V = (_ = this.key) === null || _ === void 0 ? void 0 : _.getState(x.state), ee = B.active && V.active && B.range.from !== V.range.from, he = !B.active && V.active, Oe = B.active && !V.active, q = !he && !Oe && B.query !== V.query, G = he || ee && q, F = q || ee, Q = Oe || ee && q;
47049
+ const P = (S = this.key) === null || S === void 0 ? void 0 : S.getState(C), V = (_ = this.key) === null || _ === void 0 ? void 0 : _.getState(x.state), ee = P.active && V.active && P.range.from !== V.range.from, he = !P.active && V.active, Oe = P.active && !V.active, q = !he && !Oe && P.query !== V.query, G = he || ee && q, F = q || ee, Q = Oe || ee && q;
47050
47050
  if (!G && !F && !Q)
47051
47051
  return;
47052
- const ie = Q && !G ? B : V, ce = x.dom.querySelector(`[data-decoration-id="${ie.decorationId}"]`);
47052
+ const ie = Q && !G ? P : V, ce = x.dom.querySelector(`[data-decoration-id="${ie.decorationId}"]`);
47053
47053
  g = {
47054
47054
  editor: e,
47055
47055
  range: ie.range,
@@ -47096,9 +47096,9 @@ function Ine({ pluginKey: t = Lne, editor: e, char: n = "@", allowSpaces: r = !1
47096
47096
  },
47097
47097
  // Apply changes to the plugin state from a view transaction.
47098
47098
  apply(x, C, S, _) {
47099
- const { isEditable: k } = e, { composing: T } = e.view, { selection: A } = x, { empty: D, from: I } = A, B = { ...C };
47100
- if (B.composing = T, k && (D || e.view.composing)) {
47101
- (I < C.range.from || I > C.range.to) && !T && !C.composing && (B.active = !1);
47099
+ const { isEditable: k } = e, { composing: T } = e.view, { selection: A } = x, { empty: D, from: I } = A, P = { ...C };
47100
+ if (P.composing = T, k && (D || e.view.composing)) {
47101
+ (I < C.range.from || I > C.range.to) && !T && !C.composing && (P.active = !1);
47102
47102
  const V = m({
47103
47103
  char: n,
47104
47104
  allowSpaces: r,
@@ -47112,10 +47112,10 @@ function Ine({ pluginKey: t = Lne, editor: e, char: n = "@", allowSpaces: r = !1
47112
47112
  state: _,
47113
47113
  range: V.range,
47114
47114
  isActive: C.active
47115
- }) ? (B.active = !0, B.decorationId = C.decorationId ? C.decorationId : ee, B.range = V.range, B.query = V.query, B.text = V.text) : B.active = !1;
47115
+ }) ? (P.active = !0, P.decorationId = C.decorationId ? C.decorationId : ee, P.range = V.range, P.query = V.query, P.text = V.text) : P.active = !1;
47116
47116
  } else
47117
- B.active = !1;
47118
- return B.active || (B.decorationId = null, B.range = { from: 0, to: 0 }, B.query = null, B.text = null), B;
47117
+ P.active = !1;
47118
+ return P.active || (P.decorationId = null, P.range = { from: 0, to: 0 }, P.query = null, P.text = null), P;
47119
47119
  }
47120
47120
  },
47121
47121
  props: {
@@ -48091,23 +48091,23 @@ const w7 = ({ validateFn: t, onUpload: e }) => (n, r, o, i) => {
48091
48091
  "data-drag-handle": ""
48092
48092
  }, {
48093
48093
  default: M(() => [
48094
- P(b(eu), {
48094
+ B(b(eu), {
48095
48095
  "default-open": "",
48096
48096
  modal: ""
48097
48097
  }, {
48098
48098
  default: M(() => [
48099
- P(b(nu), { "as-child": "" }, {
48099
+ B(b(nu), { "as-child": "" }, {
48100
48100
  default: M(() => [
48101
48101
  ne("div", pre, [
48102
48102
  ne("div", hre, [
48103
48103
  ne("div", mre, [
48104
- P(b(hn), {
48104
+ B(b(hn), {
48105
48105
  name: "ImageUp",
48106
48106
  class: "w-6 h-6"
48107
48107
  }),
48108
48108
  ne("span", gre, Fe(b(o)("editor.image.dialog.title")), 1)
48109
48109
  ]),
48110
- P(b(hn), {
48110
+ B(b(hn), {
48111
48111
  name: "Trash2",
48112
48112
  class: "hover:text-ed-foreground",
48113
48113
  onClick: Qn(a, ["stop"])
@@ -48117,27 +48117,27 @@ const w7 = ({ validateFn: t, onUpload: e }) => (n, r, o, i) => {
48117
48117
  ]),
48118
48118
  _: 1
48119
48119
  }),
48120
- P(b(tu), {
48120
+ B(b(tu), {
48121
48121
  "trap-focus": "",
48122
48122
  class: "w-full",
48123
48123
  "on-open-auto-focus": (p) => p.preventDefault()
48124
48124
  }, {
48125
48125
  default: M(() => [
48126
- P(b(Jb), {
48126
+ B(b(Jb), {
48127
48127
  "default-value": "upload",
48128
48128
  class: "w-[300px] sm:w-[400px]",
48129
48129
  "activation-mode": "manual"
48130
48130
  }, {
48131
48131
  default: M(() => [
48132
- P(b(Xb), { class: "grid w-full grid-cols-2" }, {
48132
+ B(b(Xb), { class: "grid w-full grid-cols-2" }, {
48133
48133
  default: M(() => [
48134
- P(b(Ec), { value: "upload" }, {
48134
+ B(b(Ec), { value: "upload" }, {
48135
48135
  default: M(() => [
48136
48136
  lt(Fe(b(o)("editor.image.dialog.tab.upload")), 1)
48137
48137
  ]),
48138
48138
  _: 1
48139
48139
  }),
48140
- P(b(Ec), { value: "link" }, {
48140
+ B(b(Ec), { value: "link" }, {
48141
48141
  default: M(() => [
48142
48142
  lt(Fe(b(o)("editor.image.dialog.tab.url")), 1)
48143
48143
  ]),
@@ -48146,9 +48146,9 @@ const w7 = ({ validateFn: t, onUpload: e }) => (n, r, o, i) => {
48146
48146
  ]),
48147
48147
  _: 1
48148
48148
  }),
48149
- P(b(Jp), { value: "upload" }, {
48149
+ B(b(Jp), { value: "upload" }, {
48150
48150
  default: M(() => [
48151
- P(b(Dr), {
48151
+ B(b(Dr), {
48152
48152
  class: "w-full mt-1",
48153
48153
  size: "sm",
48154
48154
  onClick: l
@@ -48170,10 +48170,10 @@ const w7 = ({ validateFn: t, onUpload: e }) => (n, r, o, i) => {
48170
48170
  ]),
48171
48171
  _: 1
48172
48172
  }),
48173
- P(b(Jp), { value: "link" }, {
48173
+ B(b(Jp), { value: "link" }, {
48174
48174
  default: M(() => [
48175
48175
  ne("div", bre, [
48176
- P(b(Dl), {
48176
+ B(b(Dl), {
48177
48177
  modelValue: n.value,
48178
48178
  "onUpdate:modelValue": d[0] || (d[0] = (p) => n.value = p),
48179
48179
  type: "url",
@@ -48181,7 +48181,7 @@ const w7 = ({ validateFn: t, onUpload: e }) => (n, r, o, i) => {
48181
48181
  required: "",
48182
48182
  placeholder: b(o)("editor.image.dialog.placeholder")
48183
48183
  }, null, 8, ["modelValue", "placeholder"]),
48184
- P(b(Dr), { onClick: s }, {
48184
+ B(b(Dr), { onClick: s }, {
48185
48185
  default: M(() => [
48186
48186
  lt(Fe(b(o)("editor.image.dialog.button.apply")), 1)
48187
48187
  ]),
@@ -48325,29 +48325,29 @@ const w7 = ({ validateFn: t, onUpload: e }) => (n, r, o, i) => {
48325
48325
  "data-drag-handle": ""
48326
48326
  }, {
48327
48327
  default: M(() => [
48328
- P(b(eu), {
48328
+ B(b(eu), {
48329
48329
  "default-open": "",
48330
48330
  modal: ""
48331
48331
  }, {
48332
48332
  default: M(() => [
48333
- P(b(nu), { "as-child": "" }, {
48333
+ B(b(nu), { "as-child": "" }, {
48334
48334
  default: M(() => [
48335
48335
  ne("div", _re, [
48336
48336
  r.value ? (N(), xe("div", Ere, [
48337
- P(b(hn), {
48337
+ B(b(hn), {
48338
48338
  class: "animate-spin w-6 h-6",
48339
48339
  name: "LoaderCircle"
48340
48340
  }),
48341
48341
  ne("span", null, Fe(b(i)("editor.video.dialog.uploading")) + "...", 1)
48342
48342
  ])) : (N(), xe("div", Cre, [
48343
48343
  ne("div", Sre, [
48344
- P(b(hn), {
48344
+ B(b(hn), {
48345
48345
  name: "Video",
48346
48346
  class: "w-6 h-6"
48347
48347
  }),
48348
48348
  ne("span", Tre, Fe(b(i)("editor.video.dialog.title")), 1)
48349
48349
  ]),
48350
- P(b(hn), {
48350
+ B(b(hn), {
48351
48351
  name: "Trash2",
48352
48352
  class: "hover:text-ed-foreground",
48353
48353
  onClick: Qn(l, ["stop"])
@@ -48357,27 +48357,27 @@ const w7 = ({ validateFn: t, onUpload: e }) => (n, r, o, i) => {
48357
48357
  ]),
48358
48358
  _: 1
48359
48359
  }),
48360
- P(b(tu), {
48360
+ B(b(tu), {
48361
48361
  "trap-focus": "",
48362
48362
  class: "w-full",
48363
48363
  "on-open-auto-focus": (h) => h.preventDefault()
48364
48364
  }, {
48365
48365
  default: M(() => [
48366
- P(b(Jb), {
48366
+ B(b(Jb), {
48367
48367
  "default-value": "upload",
48368
48368
  class: "w-[400px]",
48369
48369
  "activation-mode": "manual"
48370
48370
  }, {
48371
48371
  default: M(() => [
48372
- P(b(Xb), { class: "grid w-full grid-cols-2" }, {
48372
+ B(b(Xb), { class: "grid w-full grid-cols-2" }, {
48373
48373
  default: M(() => [
48374
- P(b(Ec), { value: "upload" }, {
48374
+ B(b(Ec), { value: "upload" }, {
48375
48375
  default: M(() => [
48376
48376
  lt(Fe(b(i)("editor.video.dialog.tab.upload")), 1)
48377
48377
  ]),
48378
48378
  _: 1
48379
48379
  }),
48380
- P(b(Ec), { value: "link" }, {
48380
+ B(b(Ec), { value: "link" }, {
48381
48381
  default: M(() => [
48382
48382
  lt(Fe(b(i)("editor.video.dialog.link")), 1)
48383
48383
  ]),
@@ -48386,9 +48386,9 @@ const w7 = ({ validateFn: t, onUpload: e }) => (n, r, o, i) => {
48386
48386
  ]),
48387
48387
  _: 1
48388
48388
  }),
48389
- P(b(Jp), { value: "upload" }, {
48389
+ B(b(Jp), { value: "upload" }, {
48390
48390
  default: M(() => [
48391
- P(b(Dr), {
48391
+ B(b(Dr), {
48392
48392
  class: "w-full mt-1",
48393
48393
  size: "sm",
48394
48394
  onClick: u
@@ -48410,13 +48410,13 @@ const w7 = ({ validateFn: t, onUpload: e }) => (n, r, o, i) => {
48410
48410
  ]),
48411
48411
  _: 1
48412
48412
  }),
48413
- P(b(Jp), { value: "link" }, {
48413
+ B(b(Jp), { value: "link" }, {
48414
48414
  default: M(() => [
48415
48415
  ne("form", {
48416
48416
  onSubmit: Qn(a, ["prevent"])
48417
48417
  }, [
48418
48418
  ne("div", kre, [
48419
- P(b(Dl), {
48419
+ B(b(Dl), {
48420
48420
  modelValue: n.value,
48421
48421
  "onUpdate:modelValue": p[0] || (p[0] = (h) => n.value = h),
48422
48422
  type: "url",
@@ -48424,7 +48424,7 @@ const w7 = ({ validateFn: t, onUpload: e }) => (n, r, o, i) => {
48424
48424
  required: "",
48425
48425
  placeholder: b(i)("editor.video.dialog.placeholder")
48426
48426
  }, null, 8, ["modelValue", "placeholder"]),
48427
- P(b(Dr), { type: "submit" }, {
48427
+ B(b(Dr), { type: "submit" }, {
48428
48428
  default: M(() => [
48429
48429
  lt(Fe(b(i)("editor.video.dialog.button.apply")), 1)
48430
48430
  ]),
@@ -50932,7 +50932,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
50932
50932
  const { color: s } = e.editor.getAttributes("highlight");
50933
50933
  r.highlight = s;
50934
50934
  }), (s, a) => (N(), xe("div", wie, [
50935
- P(at, {
50935
+ B(at, {
50936
50936
  id: "highlight",
50937
50937
  tooltip: s.tooltip,
50938
50938
  disabled: s.disabled,
@@ -50978,7 +50978,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
50978
50978
  ]),
50979
50979
  _: 1
50980
50980
  }, 8, ["tooltip", "disabled", "tooltip-options"]),
50981
- P(IC, {
50981
+ B(IC, {
50982
50982
  modelValue: n.value,
50983
50983
  "onUpdate:modelValue": a[0] || (a[0] = (l) => n.value = l),
50984
50984
  highlight: "",
@@ -50986,14 +50986,14 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
50986
50986
  onChange: o
50987
50987
  }, {
50988
50988
  default: M(() => [
50989
- P(b(Dr), {
50989
+ B(b(Dr), {
50990
50990
  variant: "ghost",
50991
50991
  size: "icon",
50992
50992
  class: "w-3 h-[32px] rounded-l-none hover:bg-ed-muted-foreground/20",
50993
50993
  disabled: s.disabled
50994
50994
  }, {
50995
50995
  default: M(() => [
50996
- P(b(hn), {
50996
+ B(b(hn), {
50997
50997
  class: "w-3 h-3 text-zinc-500",
50998
50998
  name: "MenuDown"
50999
50999
  })
@@ -51075,7 +51075,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51075
51075
  var x, C, S, _, k, T, A, D, I;
51076
51076
  return [
51077
51077
  ne("div", Tie, [
51078
- P(at, {
51078
+ B(at, {
51079
51079
  icon: "TablerColumnInsertLeft",
51080
51080
  iconClass: "w-5 h-5",
51081
51081
  tooltip: b(r)("editor.table.menu.insertColumnBefore"),
@@ -51085,7 +51085,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51085
51085
  },
51086
51086
  disabled: !((x = y.editor) != null && x.can().addColumnBefore())
51087
51087
  }, null, 8, ["tooltip", "disabled"]),
51088
- P(at, {
51088
+ B(at, {
51089
51089
  icon: "TablerColumnInsertRight",
51090
51090
  tooltip: b(r)("editor.table.menu.insertColumnAfter"),
51091
51091
  iconClass: "w-5 h-5",
@@ -51095,7 +51095,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51095
51095
  },
51096
51096
  disabled: !((C = y.editor) != null && C.can().addColumnAfter())
51097
51097
  }, null, 8, ["tooltip", "disabled"]),
51098
- P(at, {
51098
+ B(at, {
51099
51099
  icon: "TablerColumnRemove",
51100
51100
  action: s,
51101
51101
  iconClass: "w-5 h-5",
@@ -51105,11 +51105,11 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51105
51105
  },
51106
51106
  disabled: !((S = y.editor) != null && S.can().deleteColumn())
51107
51107
  }, null, 8, ["tooltip", "disabled"]),
51108
- P(b(Vi), {
51108
+ B(b(Vi), {
51109
51109
  orientation: "vertical",
51110
51110
  class: "mx-1 me-2 h-[16px]"
51111
51111
  }),
51112
- P(at, {
51112
+ B(at, {
51113
51113
  icon: "TablerRowInsertTop",
51114
51114
  action: a,
51115
51115
  iconClass: "w-5 h-5",
@@ -51119,7 +51119,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51119
51119
  },
51120
51120
  disabled: !((_ = y.editor) != null && _.can().addRowBefore())
51121
51121
  }, null, 8, ["tooltip", "disabled"]),
51122
- P(at, {
51122
+ B(at, {
51123
51123
  icon: "TablerRowInsertBottom",
51124
51124
  action: l,
51125
51125
  iconClass: "w-5 h-5",
@@ -51129,7 +51129,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51129
51129
  },
51130
51130
  disabled: !((k = y.editor) != null && k.can().addRowAfter())
51131
51131
  }, null, 8, ["tooltip", "disabled"]),
51132
- P(at, {
51132
+ B(at, {
51133
51133
  icon: "TablerRowRemove",
51134
51134
  action: u,
51135
51135
  iconClass: "w-5 h-5",
@@ -51139,11 +51139,11 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51139
51139
  },
51140
51140
  disabled: !((T = y.editor) != null && T.can().deleteRow())
51141
51141
  }, null, 8, ["tooltip", "disabled"]),
51142
- P(b(Vi), {
51142
+ B(b(Vi), {
51143
51143
  orientation: "vertical",
51144
51144
  class: "mx-1 me-2 h-[16px]"
51145
51145
  }),
51146
- P(at, {
51146
+ B(at, {
51147
51147
  icon: "TableCellsMerge",
51148
51148
  action: d,
51149
51149
  iconClass: "w-5 h-5",
@@ -51153,7 +51153,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51153
51153
  },
51154
51154
  disabled: !((A = y.editor) != null && A.can().mergeCells())
51155
51155
  }, null, 8, ["tooltip", "disabled"]),
51156
- P(at, {
51156
+ B(at, {
51157
51157
  icon: "TableCellsSplit",
51158
51158
  action: p,
51159
51159
  iconClass: "w-5 h-5",
@@ -51163,11 +51163,11 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51163
51163
  },
51164
51164
  disabled: !((D = y.editor) != null && D.can().splitCell())
51165
51165
  }, null, 8, ["tooltip", "disabled"]),
51166
- P(b(Vi), {
51166
+ B(b(Vi), {
51167
51167
  orientation: "vertical",
51168
51168
  class: "mx-1 me-2 h-[16px]"
51169
51169
  }),
51170
- P(G7, {
51170
+ B(G7, {
51171
51171
  editor: y.editor,
51172
51172
  tooltip: b(r)("editor.table.menu.setCellsBgColor"),
51173
51173
  action: m,
@@ -51175,7 +51175,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51175
51175
  sideOffset: 15
51176
51176
  }
51177
51177
  }, null, 8, ["editor", "tooltip"]),
51178
- P(at, {
51178
+ B(at, {
51179
51179
  icon: "Trash2",
51180
51180
  tooltip: b(r)("editor.table.menu.deleteTable"),
51181
51181
  iconClass: "w-5 h-5",
@@ -51226,7 +51226,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51226
51226
  default: M(() => [
51227
51227
  ne("div", kie, [
51228
51228
  ne("div", Aie, [
51229
- P(at, {
51229
+ B(at, {
51230
51230
  id: "panel-left",
51231
51231
  title: "ok",
51232
51232
  icon: "PanelLeft",
@@ -51235,7 +51235,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51235
51235
  "is-active": () => a.editor.isActive("columns", { layout: b(sa).SidebarLeft }),
51236
51236
  "tooltip-options": { sideOffset: 15 }
51237
51237
  }, null, 8, ["is-active"]),
51238
- P(at, {
51238
+ B(at, {
51239
51239
  id: "columns",
51240
51240
  title: "ok",
51241
51241
  icon: "Columns",
@@ -51244,7 +51244,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51244
51244
  "is-active": () => a.editor.isActive("columns", { layout: b(sa).TwoColumn }),
51245
51245
  "tooltip-options": { sideOffset: 15 }
51246
51246
  }, null, 8, ["is-active"]),
51247
- P(at, {
51247
+ B(at, {
51248
51248
  id: "panel-right",
51249
51249
  title: "ok",
51250
51250
  icon: "PanelRight",
@@ -51290,13 +51290,13 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51290
51290
  class: "h-4"
51291
51291
  })) : $e("", !0),
51292
51292
  ne("div", Nie, [
51293
- P(at, {
51293
+ B(at, {
51294
51294
  icon: "Pencil",
51295
51295
  tooltip: b(n)("editor.link.edit.tooltip"),
51296
51296
  action: i,
51297
51297
  "tooltip-options": { sideOffset: 15 }
51298
51298
  }, null, 8, ["tooltip"]),
51299
- P(at, {
51299
+ B(at, {
51300
51300
  icon: "Unlink",
51301
51301
  tooltip: b(n)("editor.link.unlink.tooltip"),
51302
51302
  action: o,
@@ -51440,34 +51440,34 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51440
51440
  }, h = (T) => T.replace(/<p><\/p>/g, "<p>&nbsp;</p>"), m = async () => {
51441
51441
  await Dt();
51442
51442
  const A = d().map((D) => {
51443
- const I = D.getAttribute("node-id"), B = D.getAttribute("book-mark-content"), V = D.getAttribute("page-id"), ee = D.getAttribute("page-number"), he = D.getBoundingClientRect(), Oe = D.getAttribute("line-id");
51443
+ const I = D.getAttribute("node-id"), P = D.getAttribute("book-mark-content"), V = D.getAttribute("page-id"), ee = D.getAttribute("page-number"), he = D.getBoundingClientRect(), Oe = D.getAttribute("line-id");
51444
51444
  return {
51445
51445
  position: he,
51446
- text: h(B),
51446
+ text: h(P),
51447
51447
  id: I,
51448
51448
  pageId: V,
51449
51449
  pageNumber: ee,
51450
51450
  visiblePosition: p(D),
51451
51451
  status: 0,
51452
51452
  lineId: Oe,
51453
- textOriginal: h(B)
51453
+ textOriginal: h(P)
51454
51454
  };
51455
51455
  });
51456
51456
  o.value = A;
51457
51457
  }, g = (T) => {
51458
- const A = r.value.find((B) => B.getAttribute("line-id") === T.lineId);
51458
+ const A = r.value.find((P) => P.getAttribute("line-id") === T.lineId);
51459
51459
  if (!A) return;
51460
51460
  const D = Number(A.getAttribute("index"));
51461
51461
  if (!T.text) {
51462
- A.querySelector(".super-text-lines").innerHTML = o.value[D].textOriginal, r.value.forEach((B) => B.classList.remove("hidden")), x();
51462
+ A.querySelector(".super-text-lines").innerHTML = o.value[D].textOriginal, r.value.forEach((P) => P.classList.remove("hidden")), x();
51463
51463
  return;
51464
51464
  }
51465
51465
  A.querySelector(".super-text-lines").innerHTML = h(T.text), A.classList.remove("super-text-truncate");
51466
51466
  const I = A.getBoundingClientRect();
51467
- r.value.forEach((B, V) => {
51467
+ r.value.forEach((P, V) => {
51468
51468
  if (V !== D) {
51469
- const ee = B.getBoundingClientRect();
51470
- w(I, ee) && B.classList.add("hidden");
51469
+ const ee = P.getBoundingClientRect();
51470
+ w(I, ee) && P.classList.add("hidden");
51471
51471
  }
51472
51472
  });
51473
51473
  }, y = (T) => {
@@ -51497,12 +51497,12 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51497
51497
  async function x() {
51498
51498
  const T = r.value;
51499
51499
  !T || T.length === 0 || (T.sort((A, D) => {
51500
- const I = Number(A.getAttribute("index")), B = Number(D.getAttribute("index"));
51501
- return I - B;
51500
+ const I = Number(A.getAttribute("index")), P = Number(D.getAttribute("index"));
51501
+ return I - P;
51502
51502
  }), T.forEach((A) => A.classList.remove("super-text-truncate")), T.forEach((A, D) => {
51503
51503
  const I = A.getBoundingClientRect();
51504
- T.slice(D + 1).forEach((B) => {
51505
- const V = B.getBoundingClientRect();
51504
+ T.slice(D + 1).forEach((P) => {
51505
+ const V = P.getBoundingClientRect();
51506
51506
  w(I, V) && A.classList.add("super-text-truncate");
51507
51507
  });
51508
51508
  }));
@@ -51520,10 +51520,10 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51520
51520
  const D = T.currentTarget;
51521
51521
  D.classList.remove("super-text-truncate");
51522
51522
  const I = D.getBoundingClientRect();
51523
- r.value.forEach((B, V) => {
51523
+ r.value.forEach((P, V) => {
51524
51524
  if (V !== A) {
51525
- const ee = B.getBoundingClientRect();
51526
- w(I, ee) && B.classList.add("hidden");
51525
+ const ee = P.getBoundingClientRect();
51526
+ w(I, ee) && P.classList.add("hidden");
51527
51527
  }
51528
51528
  });
51529
51529
  }, S = () => {
@@ -51536,7 +51536,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51536
51536
  }, i.value = !0, a && (s.value = !0);
51537
51537
  }, k = (T) => {
51538
51538
  if (!l.value) return;
51539
- const A = l.value.index, D = l.value.id, { state: I, view: B } = e.editor, { tr: V } = I;
51539
+ const A = l.value.index, D = l.value.id, { state: I, view: P } = e.editor, { tr: V } = I;
51540
51540
  let ee = !1;
51541
51541
  I.doc.descendants((he, Oe) => {
51542
51542
  var q;
@@ -51549,11 +51549,11 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51549
51549
  return (T, A) => {
51550
51550
  const D = hn;
51551
51551
  return N(), xe("div", Iie, [
51552
- (N(!0), xe(et, null, $t(o.value, (I, B) => {
51552
+ (N(!0), xe(et, null, $t(o.value, (I, P) => {
51553
51553
  var V;
51554
51554
  return N(), xe("div", {
51555
51555
  key: I.id,
51556
- index: B,
51556
+ index: P,
51557
51557
  ref_for: !0,
51558
51558
  ref_key: "superTextRefs",
51559
51559
  ref: r,
@@ -51561,10 +51561,10 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51561
51561
  "line-id": I.lineId,
51562
51562
  class: ut(b(Qe)("super-text-view", "absolute w-full px-2 translate-y-[-10px] group", {})),
51563
51563
  style: Jt({ top: `${I.visiblePosition || ((V = I.position) == null ? void 0 : V.top)}px` }),
51564
- onMouseover: (ee) => C(ee, B),
51564
+ onMouseover: (ee) => C(ee, P),
51565
51565
  onMouseleave: S
51566
51566
  }, [
51567
- P(b(Z7), {
51567
+ B(b(Z7), {
51568
51568
  role: "text",
51569
51569
  variant: "outline",
51570
51570
  class: ut(
@@ -51573,14 +51573,14 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51573
51573
  I.status === 0 ? "bg-red-500 cursor-pointer" : "bg-green-500"
51574
51574
  )
51575
51575
  ),
51576
- onDblclick: (ee) => _(I, B)
51576
+ onDblclick: (ee) => _(I, P)
51577
51577
  }, {
51578
51578
  default: M(() => [
51579
51579
  ne("div", {
51580
51580
  innerHTML: I.text,
51581
51581
  class: "super-text-lines"
51582
51582
  }, null, 8, Pie),
51583
- P(D, {
51583
+ B(D, {
51584
51584
  name: "triangle",
51585
51585
  class: "absolute top-1.5 rotate-90 w-3 h-3 right-0 text-red-500"
51586
51586
  })
@@ -51627,34 +51627,34 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51627
51627
  }, h = (T) => T.replace(/<p><\/p>/g, "<p>&nbsp;</p>"), m = async () => {
51628
51628
  await Dt();
51629
51629
  const A = d().map((D) => {
51630
- const I = D.getAttribute("node-id"), B = D.getAttribute("book-mark-content"), V = D.getAttribute("page-id"), ee = D.getAttribute("page-number"), he = D.getBoundingClientRect(), Oe = D.getAttribute("line-id");
51630
+ const I = D.getAttribute("node-id"), P = D.getAttribute("book-mark-content"), V = D.getAttribute("page-id"), ee = D.getAttribute("page-number"), he = D.getBoundingClientRect(), Oe = D.getAttribute("line-id");
51631
51631
  return {
51632
51632
  position: he,
51633
- text: h(B),
51633
+ text: h(P),
51634
51634
  id: I,
51635
51635
  pageId: V,
51636
51636
  pageNumber: ee,
51637
51637
  visiblePosition: p(D),
51638
51638
  status: 0,
51639
51639
  lineId: Oe,
51640
- textOriginal: h(B)
51640
+ textOriginal: h(P)
51641
51641
  };
51642
51642
  });
51643
51643
  o.value = A;
51644
51644
  }, g = (T) => {
51645
- const A = r.value.find((B) => B.getAttribute("line-id") === T.lineId);
51645
+ const A = r.value.find((P) => P.getAttribute("line-id") === T.lineId);
51646
51646
  if (!A) return;
51647
51647
  const D = Number(A.getAttribute("index"));
51648
51648
  if (!T.text) {
51649
- A.querySelector(".super-text-lines").innerHTML = o.value[D].textOriginal, r.value.forEach((B) => B.classList.remove("hidden")), x();
51649
+ A.querySelector(".super-text-lines").innerHTML = o.value[D].textOriginal, r.value.forEach((P) => P.classList.remove("hidden")), x();
51650
51650
  return;
51651
51651
  }
51652
51652
  A.querySelector(".super-text-lines").innerHTML = h(T.text), A.classList.remove("super-text-truncate");
51653
51653
  const I = A.getBoundingClientRect();
51654
- r.value.forEach((B, V) => {
51654
+ r.value.forEach((P, V) => {
51655
51655
  if (V !== D) {
51656
- const ee = B.getBoundingClientRect();
51657
- w(I, ee) && B.classList.add("hidden");
51656
+ const ee = P.getBoundingClientRect();
51657
+ w(I, ee) && P.classList.add("hidden");
51658
51658
  }
51659
51659
  });
51660
51660
  }, y = (T) => {
@@ -51684,12 +51684,12 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51684
51684
  async function x() {
51685
51685
  const T = r.value;
51686
51686
  !T || T.length === 0 || (T.sort((A, D) => {
51687
- const I = Number(A.getAttribute("index")), B = Number(D.getAttribute("index"));
51688
- return I - B;
51687
+ const I = Number(A.getAttribute("index")), P = Number(D.getAttribute("index"));
51688
+ return I - P;
51689
51689
  }), T.forEach((A) => A.classList.remove("super-text-truncate")), T.forEach((A, D) => {
51690
51690
  const I = A.getBoundingClientRect();
51691
- T.slice(D + 1).forEach((B) => {
51692
- const V = B.getBoundingClientRect();
51691
+ T.slice(D + 1).forEach((P) => {
51692
+ const V = P.getBoundingClientRect();
51693
51693
  w(I, V) && A.classList.add("super-text-truncate");
51694
51694
  });
51695
51695
  }));
@@ -51707,10 +51707,10 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51707
51707
  const D = T.currentTarget;
51708
51708
  D.classList.remove("super-text-truncate");
51709
51709
  const I = D.getBoundingClientRect();
51710
- r.value.forEach((B, V) => {
51710
+ r.value.forEach((P, V) => {
51711
51711
  if (V !== A) {
51712
- const ee = B.getBoundingClientRect();
51713
- w(I, ee) && B.classList.add("hidden");
51712
+ const ee = P.getBoundingClientRect();
51713
+ w(I, ee) && P.classList.add("hidden");
51714
51714
  }
51715
51715
  });
51716
51716
  }, S = () => {
@@ -51723,7 +51723,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51723
51723
  }, i.value = !0, a && (s.value = !0);
51724
51724
  }, k = (T) => {
51725
51725
  if (!l.value) return;
51726
- const A = l.value.index, D = l.value.id, { state: I, view: B } = e.editor, { tr: V } = I;
51726
+ const A = l.value.index, D = l.value.id, { state: I, view: P } = e.editor, { tr: V } = I;
51727
51727
  let ee = !1;
51728
51728
  I.doc.descendants((he, Oe) => {
51729
51729
  var q;
@@ -51736,11 +51736,11 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51736
51736
  return (T, A) => {
51737
51737
  const D = hn;
51738
51738
  return N(), xe("div", $ie, [
51739
- (N(!0), xe(et, null, $t(o.value, (I, B) => {
51739
+ (N(!0), xe(et, null, $t(o.value, (I, P) => {
51740
51740
  var V;
51741
51741
  return N(), xe("div", {
51742
51742
  key: I.id,
51743
- index: B,
51743
+ index: P,
51744
51744
  ref_for: !0,
51745
51745
  ref_key: "superTextRefs",
51746
51746
  ref: r,
@@ -51748,10 +51748,10 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51748
51748
  "line-id": I.lineId,
51749
51749
  class: ut(b(Qe)("super-text-view", "absolute w-full px-2 translate-y-[-10px] group", {})),
51750
51750
  style: Jt({ top: `${I.visiblePosition || ((V = I.position) == null ? void 0 : V.top)}px` }),
51751
- onMouseover: (ee) => C(ee, B),
51751
+ onMouseover: (ee) => C(ee, P),
51752
51752
  onMouseleave: S
51753
51753
  }, [
51754
- P(b(Z7), {
51754
+ B(b(Z7), {
51755
51755
  role: "text",
51756
51756
  variant: "outline",
51757
51757
  class: ut(
@@ -51760,14 +51760,14 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51760
51760
  I.status === 0 ? "bg-red-500 cursor-pointer" : "bg-green-500"
51761
51761
  )
51762
51762
  ),
51763
- onDblclick: (ee) => _(I, B)
51763
+ onDblclick: (ee) => _(I, P)
51764
51764
  }, {
51765
51765
  default: M(() => [
51766
51766
  ne("div", {
51767
51767
  innerHTML: I.text,
51768
51768
  class: "super-text-lines"
51769
51769
  }, null, 8, zie),
51770
- P(D, {
51770
+ B(D, {
51771
51771
  name: "triangle",
51772
51772
  class: "absolute top-1.5 rotate-90 w-3 h-3 right-0 text-red-500"
51773
51773
  })
@@ -51869,9 +51869,9 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51869
51869
  transformPastedHTML: (k) => Q7(k),
51870
51870
  clipboardTextParser: (k, T) => {
51871
51871
  const A = k.split(/(?:\r\n?|\n)/), D = [];
51872
- A.forEach((B) => {
51872
+ A.forEach((P) => {
51873
51873
  let V = { type: "paragraph" };
51874
- B.length > 0 && (V.content = [{ type: "text", text: B }]);
51874
+ P.length > 0 && (V.content = [{ type: "text", text: P }]);
51875
51875
  let ee = Do.fromJSON(T.doc.type.schema, V);
51876
51876
  D.push(ee);
51877
51877
  });
@@ -51955,14 +51955,14 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51955
51955
  }
51956
51956
  ), e({ editor: w }), (k, T) => (N(), xe("div", Wie, [
51957
51957
  ne("div", jie, [
51958
- Io(P(Uie, {
51958
+ Io(B(Uie, {
51959
51959
  editor: b(w),
51960
51960
  class: "mr-2.5 border border-[#999999] rounded-[3px] bg-[#F2F2F7]"
51961
51961
  }, null, 8, ["editor"]), [
51962
51962
  [zi, k.isOpenSuperView]
51963
51963
  ]),
51964
51964
  ne("div", qie, [
51965
- P(mv, {
51965
+ B(mv, {
51966
51966
  ref_key: "selectContextMenuRef",
51967
51967
  ref: S,
51968
51968
  editor: b(w),
@@ -51970,7 +51970,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51970
51970
  "super-text-store": b(h)
51971
51971
  }, {
51972
51972
  default: M(() => [
51973
- P(b(rd), {
51973
+ B(b(rd), {
51974
51974
  editor: b(w),
51975
51975
  spellcheck: "true",
51976
51976
  class: "h-full break-all"
@@ -52058,7 +52058,7 @@ const Jie = { class: "flex flex-1" }, Xie = {
52058
52058
  )
52059
52059
  ), A = Y(() => r.mode === Ct.EDITOR), D = U(r.fontSizeDefault), I = U(r.fontFamilyDefault);
52060
52060
  rr("fontSize", D), rr("fontFamily", I);
52061
- const B = Y(() => r.autoHeight ? {
52061
+ const P = Y(() => r.autoHeight ? {
52062
52062
  height: "auto",
52063
52063
  minHeight: r.minHeight ? Gn(r.minHeight) : void 0,
52064
52064
  maxHeight: r.maxHeight ? Gn(r.maxHeight) : void 0,
@@ -52068,7 +52068,7 @@ const Jie = { class: "flex flex-1" }, Xie = {
52068
52068
  fontSize: D.value
52069
52069
  });
52070
52070
  He(
52071
- () => B.value,
52071
+ () => P.value,
52072
52072
  () => {
52073
52073
  Oe();
52074
52074
  }
@@ -52263,7 +52263,7 @@ const Jie = { class: "flex flex-1" }, Xie = {
52263
52263
  D.value && !A.value && "[&_*]:!text-font-size-inherit"
52264
52264
  )
52265
52265
  ),
52266
- style: Jt(B.value)
52266
+ style: Jt(P.value)
52267
52267
  }, [
52268
52268
  ke.mode === b(Ct).REPORT ? (N(), $(Kie, {
52269
52269
  key: 0,
@@ -52291,14 +52291,14 @@ const Jie = { class: "flex flex-1" }, Xie = {
52291
52291
  )
52292
52292
  }, [
52293
52293
  ne("div", Jie, [
52294
- Io(P(Fie, {
52294
+ Io(B(Fie, {
52295
52295
  editor: b(he),
52296
52296
  class: "mr-2.5 border border-[#999999] rounded-[3px] bg-[#F2F2F7]"
52297
52297
  }, null, 8, ["editor"]), [
52298
52298
  [zi, F.value]
52299
52299
  ]),
52300
52300
  ne("div", Xie, [
52301
- P(mv, {
52301
+ B(mv, {
52302
52302
  ref_key: "selectContextMenuRef",
52303
52303
  ref: ct,
52304
52304
  editor: b(he),
@@ -52306,7 +52306,7 @@ const Jie = { class: "flex flex-1" }, Xie = {
52306
52306
  "super-text-store": b(C)
52307
52307
  }, {
52308
52308
  default: M(() => [
52309
- P(b(rd), {
52309
+ B(b(rd), {
52310
52310
  editor: b(he),
52311
52311
  spellcheck: "true",
52312
52312
  class: "h-full break-all"
@@ -52521,9 +52521,9 @@ const Jie = { class: "flex flex-1" }, Xie = {
52521
52521
  var T, A, D;
52522
52522
  const C = s0, S = i0, _ = o0, k = r0;
52523
52523
  return N(), xe(et, null, [
52524
- P(k, { "onUpdate:open": p }, {
52524
+ B(k, { "onUpdate:open": p }, {
52525
52525
  default: M(() => [
52526
- P(C, {
52526
+ B(C, {
52527
52527
  as: "template",
52528
52528
  disabled: b(h)
52529
52529
  }, {
@@ -52532,7 +52532,7 @@ const Jie = { class: "flex flex-1" }, Xie = {
52532
52532
  ]),
52533
52533
  _: 3
52534
52534
  }, 8, ["disabled"]),
52535
- P(_, { class: "flex bg-[#616161] text-white max-w-[310px] overflow-x-auto whitespace-nowrap" }, {
52535
+ B(_, { class: "flex bg-[#616161] text-white max-w-[310px] overflow-x-auto whitespace-nowrap" }, {
52536
52536
  default: M(() => [
52537
52537
  b(g) ? (N(), $(S, {
52538
52538
  key: 0,
@@ -52552,7 +52552,7 @@ const Jie = { class: "flex flex-1" }, Xie = {
52552
52552
  ]),
52553
52553
  _: 1
52554
52554
  })) : $e("", !0),
52555
- P(S, {
52555
+ B(S, {
52556
52556
  onClick: x[2] || (x[2] = (I) => r.value = !0)
52557
52557
  }, {
52558
52558
  default: M(() => [
@@ -52569,19 +52569,19 @@ const Jie = { class: "flex flex-1" }, Xie = {
52569
52569
  ]),
52570
52570
  _: 1
52571
52571
  })) : $e("", !0),
52572
- P(S, { onClick: s }, {
52572
+ B(S, { onClick: s }, {
52573
52573
  default: M(() => [
52574
52574
  lt(Fe(b(n)("editor.cut")), 1)
52575
52575
  ]),
52576
52576
  _: 1
52577
52577
  }),
52578
- P(S, { onClick: a }, {
52578
+ B(S, { onClick: a }, {
52579
52579
  default: M(() => [
52580
52580
  lt(Fe(b(n)("editor.copy")), 1)
52581
52581
  ]),
52582
52582
  _: 1
52583
52583
  }),
52584
- P(S, { onClick: u }, {
52584
+ B(S, { onClick: u }, {
52585
52585
  default: M(() => [
52586
52586
  lt(Fe(b(n)("editor.selectAll")), 1)
52587
52587
  ]),
@@ -52776,12 +52776,12 @@ const Jie = { class: "flex flex-1" }, Xie = {
52776
52776
  disabled: _.disabled,
52777
52777
  class: "mb-[3px]"
52778
52778
  }, null, 8, ["editor", "mode", "disabled"])) : $e("", !0),
52779
- P(tT, {
52779
+ B(tT, {
52780
52780
  editor: b(g),
52781
52781
  mode: _.mode
52782
52782
  }, {
52783
52783
  default: M(() => [
52784
- P(b(rd), {
52784
+ B(b(rd), {
52785
52785
  editor: b(g),
52786
52786
  spellcheck: "true",
52787
52787
  class: "flex-1 flex-col"
@@ -52874,15 +52874,15 @@ const Jie = { class: "flex flex-1" }, Xie = {
52874
52874
  const re = d.value.activeSplitter;
52875
52875
  let pe = {
52876
52876
  prevPanesSize: I(re),
52877
- nextPanesSize: B(re),
52877
+ nextPanesSize: P(re),
52878
52878
  prevReachedMinPanes: 0,
52879
52879
  nextReachedMinPanes: 0
52880
52880
  };
52881
52881
  const me = 0 + (r.pushOtherPanes ? 0 : pe.prevPanesSize), _e = 100 - (r.pushOtherPanes ? 0 : pe.nextPanesSize), De = Math.max(Math.min(T(X), _e), me);
52882
52882
  let qe = [re, re + 1], le = i.value[qe[0]] || null, Le = i.value[qe[1]] || null;
52883
- const ot = le.max < 100 && De >= le.max + pe.prevPanesSize, Ht = Le.max < 100 && De <= 100 - (Le.max + B(re + 1));
52883
+ const ot = le.max < 100 && De >= le.max + pe.prevPanesSize, Ht = Le.max < 100 && De <= 100 - (Le.max + P(re + 1));
52884
52884
  if (ot || Ht) {
52885
- ot ? (le.size = le.max, Le.size = Math.max(100 - le.max - pe.prevPanesSize - pe.nextPanesSize, 0)) : (le.size = Math.max(100 - Le.max - pe.prevPanesSize - B(re + 1), 0), Le.size = Le.max);
52885
+ ot ? (le.size = le.max, Le.size = Math.max(100 - le.max - pe.prevPanesSize - pe.nextPanesSize, 0)) : (le.size = Math.max(100 - Le.max - pe.prevPanesSize - P(re + 1), 0), Le.size = Le.max);
52886
52886
  return;
52887
52887
  }
52888
52888
  if (r.pushOtherPanes) {
@@ -52899,10 +52899,10 @@ const Jie = { class: "flex flex-1" }, Xie = {
52899
52899
  De > 0 && De <= pe && (_e.size = _e.min, X.prevReachedMinPanes += _e.min);
52900
52900
  }), i.value[me[1]].size = 100 - X.prevReachedMinPanes - i.value[0].min - X.prevPanesSize - X.nextPanesSize, null) : re > 100 - X.nextPanesSize - i.value[me[1]].min && (me[1] = ee(pe).index, X.nextReachedMinPanes = 0, me[1] > pe + 1 && i.value.forEach((_e, De) => {
52901
52901
  De > pe && De < me[1] && (_e.size = _e.min, X.nextReachedMinPanes += _e.min);
52902
- }), X.nextPanesSize = B(me[1] - 1), me[1] === void 0) ? (X.nextReachedMinPanes = 0, i.value.forEach((_e, De) => {
52902
+ }), X.nextPanesSize = P(me[1] - 1), me[1] === void 0) ? (X.nextReachedMinPanes = 0, i.value.forEach((_e, De) => {
52903
52903
  De < a.value - 1 && De >= pe + 1 && (_e.size = _e.min, X.nextReachedMinPanes += _e.min);
52904
- }), i.value[me[0]].size = 100 - X.prevPanesSize - B(me[0] - 1), null) : { sums: X, panesToResize: me };
52905
- }, I = (X) => i.value.reduce((re, pe, me) => re + (me < X ? pe.size : 0), 0), B = (X) => i.value.reduce((re, pe, me) => re + (me > X + 1 ? pe.size : 0), 0), V = (X) => [...i.value].reverse().find((re) => re.index < X && re.size > re.min) || {}, ee = (X) => i.value.find((re) => re.index > X + 1 && re.size > re.min) || {}, he = () => {
52904
+ }), i.value[me[0]].size = 100 - X.prevPanesSize - P(me[0] - 1), null) : { sums: X, panesToResize: me };
52905
+ }, I = (X) => i.value.reduce((re, pe, me) => re + (me < X ? pe.size : 0), 0), P = (X) => i.value.reduce((re, pe, me) => re + (me > X + 1 ? pe.size : 0), 0), V = (X) => [...i.value].reverse().find((re) => re.index < X && re.size > re.min) || {}, ee = (X) => i.value.find((re) => re.index > X + 1 && re.size > re.min) || {}, he = () => {
52906
52906
  var X;
52907
52907
  const re = Array.from(((X = l.value) == null ? void 0 : X.children) || []);
52908
52908
  for (const pe of re) {
@@ -53252,7 +53252,7 @@ const fc = /* @__PURE__ */ j({
53252
53252
  }), Er(() => {
53253
53253
  a.off(I);
53254
53254
  });
53255
- const B = Y(() => ({
53255
+ const P = Y(() => ({
53256
53256
  ...b(p) ? { height: "100%" } : {
53257
53257
  minHeight: r.minHeight ? Gn(r.minHeight) : void 0,
53258
53258
  maxHeight: r.maxHeight ? Gn(r.maxHeight) : void 0,
@@ -53443,7 +53443,7 @@ const fc = /* @__PURE__ */ j({
53443
53443
  id: "vdc-editor",
53444
53444
  ref_key: "editorRef",
53445
53445
  ref: A,
53446
- style: Jt(B.value),
53446
+ style: Jt(P.value),
53447
53447
  class: ut(
53448
53448
  b(Qe)(
53449
53449
  "vdc-editor moblie relative w-full flex flex-col",
@@ -53480,7 +53480,7 @@ const fc = /* @__PURE__ */ j({
53480
53480
  disabled: le.disabled,
53481
53481
  class: "mb-[3px]"
53482
53482
  }, null, 8, ["editor", "mode", "disabled"])),
53483
- P(b(rT), {
53483
+ B(b(rT), {
53484
53484
  class: ut(
53485
53485
  b(Qe)(
53486
53486
  "flex flex-col [&_*]:!font-inherit [&_*]:!text-font-size-inherit",
@@ -53516,7 +53516,7 @@ const fc = /* @__PURE__ */ j({
53516
53516
  )
53517
53517
  )
53518
53518
  }, [
53519
- P(sse, {
53519
+ B(sse, {
53520
53520
  ref_key: "editorCommentRef",
53521
53521
  ref: he,
53522
53522
  mode: le.mode,
@@ -53534,7 +53534,7 @@ const fc = /* @__PURE__ */ j({
53534
53534
  }),
53535
53535
  _: 1
53536
53536
  }, 8, ["size"])) : $e("", !0),
53537
- P(b(dc), {
53537
+ B(b(dc), {
53538
53538
  size: b(re),
53539
53539
  class: "border-none p-0 flex flex-col"
53540
53540
  }, {
@@ -53569,12 +53569,12 @@ const fc = /* @__PURE__ */ j({
53569
53569
  disabled: le.disabled,
53570
53570
  class: "mb-[3px]"
53571
53571
  }, null, 8, ["editor", "mode", "disabled"])) : $e("", !0),
53572
- P(tT, {
53572
+ B(tT, {
53573
53573
  editor: b(V),
53574
53574
  mode: le.mode
53575
53575
  }, {
53576
53576
  default: M(() => [
53577
- P(b(rd), {
53577
+ B(b(rd), {
53578
53578
  editor: b(V),
53579
53579
  spellcheck: "true",
53580
53580
  class: "flex-1 flex-col"
@@ -53982,7 +53982,7 @@ var iT = { exports: {} };
53982
53982
  }
53983
53983
  return Ue;
53984
53984
  }
53985
- function B(q) {
53985
+ function P(q) {
53986
53986
  this.tokens = q, this.notes = q.reduce(function(G, F, Q) {
53987
53987
  G.notes.push({
53988
53988
  isWrappable: m(F),
@@ -53995,7 +53995,7 @@ var iT = { exports: {} };
53995
53995
  })), G;
53996
53996
  }, { notes: [], tagStack: [] }).notes;
53997
53997
  }
53998
- B.prototype.combine = function(q, G) {
53998
+ P.prototype.combine = function(q, G) {
53999
53999
  var F = this.notes, Q = this.tokens.slice(), ie = Q.reduce(function(ce, fe, Re) {
54000
54000
  F[Re].insertedTag && (Q[Re] = G(Q[Re])), ce.status === null && (ce.status = F[Re].isWrappable);
54001
54001
  var Ie = F[Re].isWrappable;
@@ -54010,7 +54010,7 @@ var iT = { exports: {} };
54010
54010
  return ie.map(q).join("");
54011
54011
  };
54012
54012
  function V(q, G, F, Q, ie) {
54013
- var ce = new B(G);
54013
+ var ce = new P(G);
54014
54014
  Q = Q ? Q + "-" : "";
54015
54015
  var fe = " data-" + Q + 'operation-index="' + F + '"';
54016
54016
  return ie && (fe += ' class="' + ie + '"'), ce.combine(function(Re) {
@@ -54118,13 +54118,13 @@ const use = /* @__PURE__ */ YB(lse), fx = (t, e, n) => {
54118
54118
  ne("div", {
54119
54119
  class: ut(b(Qe)("h-[600px]", g.editorClass))
54120
54120
  }, [
54121
- P(b(rT), {
54121
+ B(b(rT), {
54122
54122
  horizontal: "",
54123
54123
  onReady: b(u),
54124
54124
  onResized: b(u)
54125
54125
  }, {
54126
54126
  default: M(() => [
54127
- P(b(dc), {
54127
+ B(b(dc), {
54128
54128
  size: b(a),
54129
54129
  class: "flex flex-col"
54130
54130
  }, {
@@ -54137,7 +54137,7 @@ const use = /* @__PURE__ */ YB(lse), fx = (t, e, n) => {
54137
54137
  class: "text-[12px] mb-[3px]"
54138
54138
  }, null, 8, ["title-bar"])) : $e("", !0),
54139
54139
  ne("div", cse, [
54140
- P(fc, {
54140
+ B(fc, {
54141
54141
  "editor-class": "h-full",
54142
54142
  mode: b(Ct).REPORT,
54143
54143
  disabled: "",
@@ -54158,7 +54158,7 @@ const use = /* @__PURE__ */ YB(lse), fx = (t, e, n) => {
54158
54158
  var x, C, S, _;
54159
54159
  return [
54160
54160
  ne("div", dse, [
54161
- P(fc, {
54161
+ B(fc, {
54162
54162
  "editor-class": "h-full",
54163
54163
  mode: b(Ct).REPORT,
54164
54164
  disabled: "",
@@ -54174,7 +54174,7 @@ const use = /* @__PURE__ */ YB(lse), fx = (t, e, n) => {
54174
54174
  }),
54175
54175
  _: 1
54176
54176
  })) : $e("", !0),
54177
- P(b(dc), {
54177
+ B(b(dc), {
54178
54178
  size: b(l),
54179
54179
  class: "flex flex-col"
54180
54180
  }, {
@@ -54188,7 +54188,7 @@ const use = /* @__PURE__ */ YB(lse), fx = (t, e, n) => {
54188
54188
  "custom-class": "bg-[#34c759]"
54189
54189
  }, null, 8, ["title-bar"])) : $e("", !0),
54190
54190
  ne("div", fse, [
54191
- P(fc, {
54191
+ B(fc, {
54192
54192
  "editor-class": "h-full",
54193
54193
  mode: b(Ct).REPORT,
54194
54194
  disabled: "",