@myissue/vue-website-page-builder 3.5.57 → 3.5.58

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.
@@ -14004,7 +14004,7 @@ function ZI(o, e) {
14004
14004
  let { $cursor: t } = o.selection;
14005
14005
  return !t || (e ? !e.endOfTextblock("backward", o) : t.parentOffset > 0) ? null : t;
14006
14006
  }
14007
- const e7 = (o, e, t) => {
14007
+ const eH = (o, e, t) => {
14008
14008
  let r = ZI(o, t);
14009
14009
  if (!r)
14010
14010
  return !1;
@@ -14014,7 +14014,7 @@ const e7 = (o, e, t) => {
14014
14014
  return s == null ? !1 : (e && e(o.tr.lift(a, s).scrollIntoView()), !0);
14015
14015
  }
14016
14016
  let n = i.nodeBefore;
14017
- if (d7(o, i, e, -1))
14017
+ if (dH(o, i, e, -1))
14018
14018
  return !0;
14019
14019
  if (r.parent.content.size == 0 && (hn(n, "end") || Se.isSelectable(n)))
14020
14020
  for (let a = r.depth; ; a--) {
@@ -14035,15 +14035,15 @@ const e7 = (o, e, t) => {
14035
14035
  if (!r)
14036
14036
  return !1;
14037
14037
  let i = kc(r);
14038
- return i ? t7(o, i, e) : !1;
14038
+ return i ? tH(o, i, e) : !1;
14039
14039
  }, j9 = (o, e, t) => {
14040
- let r = r7(o, t);
14040
+ let r = rH(o, t);
14041
14041
  if (!r)
14042
14042
  return !1;
14043
14043
  let i = Cc(r);
14044
- return i ? t7(o, i, e) : !1;
14044
+ return i ? tH(o, i, e) : !1;
14045
14045
  };
14046
- function t7(o, e, t) {
14046
+ function tH(o, e, t) {
14047
14047
  let r = e.nodeBefore, i = r, n = e.pos - 1;
14048
14048
  for (; !i.isTextblock; n--) {
14049
14049
  if (i.type.spec.isolating)
@@ -14080,7 +14080,7 @@ function hn(o, e, t = !1) {
14080
14080
  }
14081
14081
  return !1;
14082
14082
  }
14083
- const o7 = (o, e, t) => {
14083
+ const oH = (o, e, t) => {
14084
14084
  let { $head: r, empty: i } = o.selection, n = r;
14085
14085
  if (!i)
14086
14086
  return !1;
@@ -14102,19 +14102,19 @@ function kc(o) {
14102
14102
  }
14103
14103
  return null;
14104
14104
  }
14105
- function r7(o, e) {
14105
+ function rH(o, e) {
14106
14106
  let { $cursor: t } = o.selection;
14107
14107
  return !t || (e ? !e.endOfTextblock("forward", o) : t.parentOffset < t.parent.content.size) ? null : t;
14108
14108
  }
14109
- const i7 = (o, e, t) => {
14110
- let r = r7(o, t);
14109
+ const iH = (o, e, t) => {
14110
+ let r = rH(o, t);
14111
14111
  if (!r)
14112
14112
  return !1;
14113
14113
  let i = Cc(r);
14114
14114
  if (!i)
14115
14115
  return !1;
14116
14116
  let n = i.nodeAfter;
14117
- if (d7(o, i, e, 1))
14117
+ if (dH(o, i, e, 1))
14118
14118
  return !0;
14119
14119
  if (r.parent.content.size == 0 && (hn(n, "start") || Se.isSelectable(n))) {
14120
14120
  let a = Zl(o.doc, r.before(), r.after(), me.empty);
@@ -14127,7 +14127,7 @@ const i7 = (o, e, t) => {
14127
14127
  }
14128
14128
  }
14129
14129
  return n.isAtom && i.depth == r.depth - 1 ? (e && e(o.tr.delete(i.pos, i.pos + n.nodeSize).scrollIntoView()), !0) : !1;
14130
- }, n7 = (o, e, t) => {
14130
+ }, nH = (o, e, t) => {
14131
14131
  let { $head: r, empty: i } = o.selection, n = r;
14132
14132
  if (!i)
14133
14133
  return !1;
@@ -14175,7 +14175,7 @@ const V9 = (o, e) => {
14175
14175
  }, U9 = (o, e) => {
14176
14176
  let { $from: t, $to: r } = o.selection, i = t.blockRange(r), n = i && Ln(i);
14177
14177
  return n == null ? !1 : (e && e(o.tr.lift(i, n).scrollIntoView()), !0);
14178
- }, a7 = (o, e) => {
14178
+ }, aH = (o, e) => {
14179
14179
  let { $head: t, $anchor: r } = o.selection;
14180
14180
  return !t.parent.type.spec.code || !t.sameParent(r) ? !1 : (e && e(o.tr.insertText(`
14181
14181
  `).scrollIntoView()), !0);
@@ -14200,7 +14200,7 @@ const W9 = (o, e) => {
14200
14200
  l.setSelection(Ae.near(l.doc.resolve(s), 1)), e(l.scrollIntoView());
14201
14201
  }
14202
14202
  return !0;
14203
- }, s7 = (o, e) => {
14203
+ }, sH = (o, e) => {
14204
14204
  let t = o.selection, { $from: r, $to: i } = t;
14205
14205
  if (t instanceof ur || r.parent.inlineContent || i.parent.inlineContent)
14206
14206
  return !1;
@@ -14212,7 +14212,7 @@ const W9 = (o, e) => {
14212
14212
  s.setSelection(Pe.create(s.doc, a + 1)), e(s.scrollIntoView());
14213
14213
  }
14214
14214
  return !0;
14215
- }, l7 = (o, e) => {
14215
+ }, lH = (o, e) => {
14216
14216
  let { $cursor: t } = o.selection;
14217
14217
  if (!t || t.parent.content.size)
14218
14218
  return !1;
@@ -14261,7 +14261,7 @@ function Y9(o, e, t) {
14261
14261
  let r = e.nodeBefore, i = e.nodeAfter, n = e.index();
14262
14262
  return !r || !i || !r.type.compatibleContent(i.type) ? !1 : !r.content.size && e.parent.canReplace(n - 1, n) ? (t && t(o.tr.delete(e.pos - r.nodeSize, e.pos).scrollIntoView()), !0) : !e.parent.canReplace(n, n + 1) || !(i.isTextblock || Gr(o.doc, e.pos)) ? !1 : (t && t(o.tr.join(e.pos).scrollIntoView()), !0);
14263
14263
  }
14264
- function d7(o, e, t, r) {
14264
+ function dH(o, e, t, r) {
14265
14265
  let i = e.nodeBefore, n = e.nodeAfter, a, s, l = i.type.spec.isolating || n.type.spec.isolating;
14266
14266
  if (!l && Y9(o, e, t))
14267
14267
  return !0;
@@ -14300,7 +14300,7 @@ function d7(o, e, t, r) {
14300
14300
  }
14301
14301
  return !1;
14302
14302
  }
14303
- function p7(o) {
14303
+ function pH(o) {
14304
14304
  return function(e, t) {
14305
14305
  let r = e.selection, i = o < 0 ? r.$from : r.$to, n = i.depth;
14306
14306
  for (; i.node(n).isInline; ) {
@@ -14311,7 +14311,7 @@ function p7(o) {
14311
14311
  return i.node(n).isTextblock ? (t && t(e.tr.setSelection(Pe.create(e.doc, o < 0 ? i.start(n) : i.end(n)))), !0) : !1;
14312
14312
  };
14313
14313
  }
14314
- const Q9 = p7(-1), X9 = p7(1);
14314
+ const Q9 = pH(-1), X9 = pH(1);
14315
14315
  function Z9(o, e = null) {
14316
14316
  return function(t, r) {
14317
14317
  let { $from: i, $to: n } = t.selection, a = i.blockRange(n), s = a && Sc(a, o, e);
@@ -14356,9 +14356,9 @@ function Pc(...o) {
14356
14356
  return !1;
14357
14357
  };
14358
14358
  }
14359
- Pc(XI, e7, o7);
14360
- Pc(XI, i7, n7);
14361
- Pc(a7, s7, l7, K9);
14359
+ Pc(XI, eH, oH);
14360
+ Pc(XI, iH, nH);
14361
+ Pc(aH, sH, lH, K9);
14362
14362
  typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : typeof os < "u" && os.platform && os.platform() == "darwin";
14363
14363
  function eO(o, e = null) {
14364
14364
  return function(t, r) {
@@ -14553,9 +14553,9 @@ function bO(o, e, t) {
14553
14553
  return { node: r.startContainer, offset: Math.min(uo(r.startContainer), r.startOffset) };
14554
14554
  }
14555
14555
  }
14556
- const Qo = typeof navigator < "u" ? navigator : null, Uu = typeof document < "u" ? document : null, Kr = Qo && Qo.userAgent || "", Ap = /Edge\/(\d+)/.exec(Kr), c7 = /MSIE \d/.exec(Kr), $p = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Kr), Yt = !!(c7 || $p || Ap), Fr = c7 ? document.documentMode : $p ? +$p[1] : Ap ? +Ap[1] : 0, go = !Yt && /gecko\/(\d+)/i.test(Kr);
14556
+ const Qo = typeof navigator < "u" ? navigator : null, Uu = typeof document < "u" ? document : null, Kr = Qo && Qo.userAgent || "", Ap = /Edge\/(\d+)/.exec(Kr), cH = /MSIE \d/.exec(Kr), $p = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Kr), Yt = !!(cH || $p || Ap), Fr = cH ? document.documentMode : $p ? +$p[1] : Ap ? +Ap[1] : 0, go = !Yt && /gecko\/(\d+)/i.test(Kr);
14557
14557
  go && +(/Firefox\/(\d+)/.exec(Kr) || [0, 0])[1];
14558
- const _p = !Yt && /Chrome\/(\d+)/.exec(Kr), gt = !!_p, u7 = _p ? +_p[1] : 0, At = !Yt && !!Qo && /Apple Computer/.test(Qo.vendor), yn = At && (/Mobile\/\w+/.test(Kr) || !!Qo && Qo.maxTouchPoints > 2), co = yn || (Qo ? /Mac/.test(Qo.platform) : !1), b7 = Qo ? /Win/.test(Qo.platform) : !1, lr = /Android \d/.test(Kr), Wa = !!Uu && "webkitFontSmoothing" in Uu.documentElement.style, mO = Wa ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
14558
+ const _p = !Yt && /Chrome\/(\d+)/.exec(Kr), gt = !!_p, uH = _p ? +_p[1] : 0, At = !Yt && !!Qo && /Apple Computer/.test(Qo.vendor), yn = At && (/Mobile\/\w+/.test(Kr) || !!Qo && Qo.maxTouchPoints > 2), co = yn || (Qo ? /Mac/.test(Qo.platform) : !1), bH = Qo ? /Win/.test(Qo.platform) : !1, lr = /Android \d/.test(Kr), Wa = !!Uu && "webkitFontSmoothing" in Uu.documentElement.style, mO = Wa ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
14559
14559
  function gO(o) {
14560
14560
  let e = o.defaultView && o.defaultView.visualViewport;
14561
14561
  return e ? {
@@ -14617,9 +14617,9 @@ function hO(o) {
14617
14617
  break;
14618
14618
  }
14619
14619
  }
14620
- return { refDOM: r, refTop: i, stack: m7(o.dom) };
14620
+ return { refDOM: r, refTop: i, stack: mH(o.dom) };
14621
14621
  }
14622
- function m7(o) {
14622
+ function mH(o) {
14623
14623
  let e = [], t = o.ownerDocument;
14624
14624
  for (let r = o; r && (e.push({ dom: r, top: r.scrollTop, left: r.scrollLeft }), o != t); r = fn(r))
14625
14625
  ;
@@ -14627,9 +14627,9 @@ function m7(o) {
14627
14627
  }
14628
14628
  function fO({ refDOM: o, refTop: e, stack: t }) {
14629
14629
  let r = o ? o.getBoundingClientRect().top : 0;
14630
- g7(t, r == 0 ? 0 : r - e);
14630
+ gH(t, r == 0 ? 0 : r - e);
14631
14631
  }
14632
- function g7(o, e) {
14632
+ function gH(o, e) {
14633
14633
  for (let t = 0; t < o.length; t++) {
14634
14634
  let { dom: r, top: i, left: n } = o[t];
14635
14635
  r.scrollTop != i + e && (r.scrollTop = i + e), r.scrollLeft != n && (r.scrollLeft = n);
@@ -14641,14 +14641,14 @@ function yO(o) {
14641
14641
  return o.setActive();
14642
14642
  if (Ji)
14643
14643
  return o.focus(Ji);
14644
- let e = m7(o);
14644
+ let e = mH(o);
14645
14645
  o.focus(Ji == null ? {
14646
14646
  get preventScroll() {
14647
14647
  return Ji = { preventScroll: !0 }, !0;
14648
14648
  }
14649
- } : void 0), Ji || (Ji = !1, g7(e, 0));
14649
+ } : void 0), Ji || (Ji = !1, gH(e, 0));
14650
14650
  }
14651
- function x7(o, e) {
14651
+ function xH(o, e) {
14652
14652
  let t, r = 2e8, i, n = 0, a = e.top, s = e.top, l, d;
14653
14653
  for (let c = o.firstChild, u = 0; c; c = c.nextSibling, u++) {
14654
14654
  let b;
@@ -14674,7 +14674,7 @@ function x7(o, e) {
14674
14674
  !t && (e.left >= x.right && e.top >= x.top || e.left >= x.left && e.top >= x.bottom) && (n = u + 1);
14675
14675
  }
14676
14676
  }
14677
- return !t && l && (t = l, i = d, r = 0), t && t.nodeType == 3 ? vO(t, i) : !t || r && t.nodeType == 1 ? { node: o, offset: n } : x7(t, i);
14677
+ return !t && l && (t = l, i = d, r = 0), t && t.nodeType == 3 ? vO(t, i) : !t || r && t.nodeType == 1 ? { node: o, offset: n } : xH(t, i);
14678
14678
  }
14679
14679
  function vO(o, e) {
14680
14680
  let t = o.nodeValue.length, r = document.createRange(), i;
@@ -14696,7 +14696,7 @@ function wO(o, e) {
14696
14696
  return t && /^li$/i.test(t.nodeName) && e.left < o.getBoundingClientRect().left ? t : o;
14697
14697
  }
14698
14698
  function SO(o, e, t) {
14699
- let { node: r, offset: i } = x7(e, t), n = -1;
14699
+ let { node: r, offset: i } = xH(e, t), n = -1;
14700
14700
  if (r.nodeType == 1 && !r.firstChild) {
14701
14701
  let a = r.getBoundingClientRect();
14702
14702
  n = a.left != a.right && t.left > (a.left + a.right) / 2 ? 1 : -1;
@@ -14716,7 +14716,7 @@ function kO(o, e, t, r) {
14716
14716
  }
14717
14717
  return i > -1 ? i : o.docView.posFromDOM(e, t, -1);
14718
14718
  }
14719
- function h7(o, e, t) {
14719
+ function hH(o, e, t) {
14720
14720
  let r = o.childNodes.length;
14721
14721
  if (r && t.top < t.bottom)
14722
14722
  for (let i = Math.max(0, Math.min(r - 1, Math.floor(r * (e.top - t.top) / (t.bottom - t.top)) - 2)), n = i; ; ) {
@@ -14726,7 +14726,7 @@ function h7(o, e, t) {
14726
14726
  for (let l = 0; l < s.length; l++) {
14727
14727
  let d = s[l];
14728
14728
  if (Mc(e, d))
14729
- return h7(a, e, d);
14729
+ return hH(a, e, d);
14730
14730
  }
14731
14731
  }
14732
14732
  if ((n = (n + 1) % r) == i)
@@ -14740,7 +14740,7 @@ function CO(o, e) {
14740
14740
  let a = (o.root.elementFromPoint ? o.root : t).elementFromPoint(e.left, e.top), s;
14741
14741
  if (!a || !o.dom.contains(a.nodeType != 1 ? a.parentNode : a)) {
14742
14742
  let d = o.dom.getBoundingClientRect();
14743
- if (!Mc(e, d) || (a = h7(o.dom, e, d), !a))
14743
+ if (!Mc(e, d) || (a = hH(o.dom, e, d), !a))
14744
14744
  return null;
14745
14745
  }
14746
14746
  if (At)
@@ -14771,7 +14771,7 @@ function Lr(o, e) {
14771
14771
  return Array.prototype.find.call(t, Gu) || o.getBoundingClientRect();
14772
14772
  }
14773
14773
  const TO = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
14774
- function f7(o, e, t) {
14774
+ function fH(o, e, t) {
14775
14775
  let { node: r, offset: i, atom: n } = o.docView.domFromPos(e, t < 0 ? -1 : 1), a = Wa || go;
14776
14776
  if (r.nodeType == 3)
14777
14777
  if (a && (TO.test(r.nodeValue) || (t < 0 ? !i : i == r.nodeValue.length))) {
@@ -14829,7 +14829,7 @@ function Hd(o, e) {
14829
14829
  let t = e ? o.top : o.bottom;
14830
14830
  return { top: t, bottom: t, left: o.left, right: o.right };
14831
14831
  }
14832
- function y7(o, e, t) {
14832
+ function yH(o, e, t) {
14833
14833
  let r = o.state, i = o.root.activeElement;
14834
14834
  r != e && o.updateState(e), i != o.dom && o.focus();
14835
14835
  try {
@@ -14840,7 +14840,7 @@ function y7(o, e, t) {
14840
14840
  }
14841
14841
  function PO(o, e, t) {
14842
14842
  let r = e.selection, i = t == "up" ? r.$from : r.$to;
14843
- return y7(o, e, () => {
14843
+ return yH(o, e, () => {
14844
14844
  let { node: n } = o.docView.domFromPos(i.pos, t == "up" ? -1 : 1);
14845
14845
  for (; ; ) {
14846
14846
  let s = o.docView.nearestDesc(n, !0);
@@ -14852,7 +14852,7 @@ function PO(o, e, t) {
14852
14852
  }
14853
14853
  n = s.dom.parentNode;
14854
14854
  }
14855
- let a = f7(o, i.pos, 1);
14855
+ let a = fH(o, i.pos, 1);
14856
14856
  for (let s = n.firstChild; s; s = s.nextSibling) {
14857
14857
  let l;
14858
14858
  if (s.nodeType == 1)
@@ -14876,7 +14876,7 @@ function LO(o, e, t) {
14876
14876
  if (!r.parent.isTextblock)
14877
14877
  return !1;
14878
14878
  let i = r.parentOffset, n = !i, a = i == r.parent.content.size, s = o.domSelection();
14879
- return s ? !MO.test(r.parent.textContent) || !s.modify ? t == "left" || t == "backward" ? n : a : y7(o, e, () => {
14879
+ return s ? !MO.test(r.parent.textContent) || !s.modify ? t == "left" || t == "backward" ? n : a : yH(o, e, () => {
14880
14880
  let { focusNode: l, focusOffset: d, anchorNode: c, anchorOffset: u } = o.domSelectionRange(), b = s.caretBidiLevel;
14881
14881
  s.modify("move", t, "character");
14882
14882
  let m = r.depth ? o.docView.domAfterPos(r.before()) : o.dom, { focusNode: x, focusOffset: h } = o.domSelectionRange(), v = x && !m.contains(x.nodeType == 1 ? x : x.parentNode) || l == x && d == h;
@@ -15063,7 +15063,7 @@ class Ga {
15063
15063
  let r = 0, i = 0;
15064
15064
  for (let n = 0; r < this.children.length; r++) {
15065
15065
  let a = this.children[r], s = n + a.size;
15066
- if (s > e || a instanceof w7) {
15066
+ if (s > e || a instanceof wH) {
15067
15067
  i = e - n;
15068
15068
  break;
15069
15069
  }
@@ -15071,7 +15071,7 @@ class Ga {
15071
15071
  }
15072
15072
  if (i)
15073
15073
  return this.children[r].domFromPos(i - this.children[r].border, t);
15074
- for (let n; r && !(n = this.children[r - 1]).size && n instanceof v7 && n.side >= 0; r--)
15074
+ for (let n; r && !(n = this.children[r - 1]).size && n instanceof vH && n.side >= 0; r--)
15075
15075
  ;
15076
15076
  if (t <= 0) {
15077
15077
  let n, a = !0;
@@ -15236,7 +15236,7 @@ class Ga {
15236
15236
  return !1;
15237
15237
  }
15238
15238
  }
15239
- class v7 extends Ga {
15239
+ class vH extends Ga {
15240
15240
  constructor(e, t, r, i) {
15241
15241
  let n, a = t.type.toDOM;
15242
15242
  if (typeof a == "function" && (a = a(r, () => {
@@ -15360,7 +15360,7 @@ class Vr extends Ga {
15360
15360
  } else c || ({ dom: c, contentDOM: u } = $i.renderSpec(document, t.type.spec.toDOM(t), null, t.attrs));
15361
15361
  !u && !t.isText && c.nodeName != "BR" && (c.hasAttribute("contenteditable") || (c.contentEditable = "false"), t.type.spec.draggable && (c.draggable = !0));
15362
15362
  let b = c;
15363
- return c = C7(c, r, t), d ? l = new $O(e, t, r, i, c, u || null, b, d) : t.isText ? new td(e, t, r, i, c, b) : new Vr(e, t, r, i, c, u || null, b);
15363
+ return c = CH(c, r, t), d ? l = new $O(e, t, r, i, c, u || null, b, d) : t.isText ? new td(e, t, r, i, c, b) : new Vr(e, t, r, i, c, u || null, b);
15364
15364
  }
15365
15365
  parseRule() {
15366
15366
  if (this.node.type.spec.reparseInView)
@@ -15403,7 +15403,7 @@ class Vr extends Ga {
15403
15403
  l.syncToMarks(d.marks, r, e, b);
15404
15404
  let m;
15405
15405
  l.findNodeMatch(d, c, u, b) || s && e.state.selection.from > i && e.state.selection.to < i + d.nodeSize && (m = l.findIndexWithChild(n.node)) > -1 && l.updateNodeAt(d, c, u, m, e) || l.updateNextNode(d, c, u, e, b, i) || l.addNode(d, c, u, e, i), i += d.nodeSize;
15406
- }), l.syncToMarks([], r, e, 0), this.node.isTextblock && l.addTextblockHacks(), l.destroyRest(), (l.changed || this.dirty == ci) && (a && this.protectLocalComposition(e, a), S7(this.contentDOM, this.children, e), yn && RO(this.dom));
15406
+ }), l.syncToMarks([], r, e, 0), this.node.isTextblock && l.addTextblockHacks(), l.destroyRest(), (l.changed || this.dirty == ci) && (a && this.protectLocalComposition(e, a), SH(this.contentDOM, this.children, e), yn && RO(this.dom));
15407
15407
  }
15408
15408
  localCompositionInfo(e, t) {
15409
15409
  let { from: r, to: i } = e.state.selection;
@@ -15444,7 +15444,7 @@ class Vr extends Ga {
15444
15444
  if (al(e, this.outerDeco))
15445
15445
  return;
15446
15446
  let t = this.nodeDOM.nodeType != 1, r = this.dom;
15447
- this.dom = k7(this.dom, this.nodeDOM, Bp(this.outerDeco, this.node, t), Bp(e, this.node, t)), this.dom != r && (r.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = e;
15447
+ this.dom = kH(this.dom, this.nodeDOM, Bp(this.outerDeco, this.node, t), Bp(e, this.node, t)), this.dom != r && (r.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = e;
15448
15448
  }
15449
15449
  // Mark this node as being the selected node.
15450
15450
  selectNode() {
@@ -15459,7 +15459,7 @@ class Vr extends Ga {
15459
15459
  }
15460
15460
  }
15461
15461
  function Xu(o, e, t, r, i) {
15462
- C7(r, e, o);
15462
+ CH(r, e, o);
15463
15463
  let n = new Vr(void 0, o, e, t, r, r, r);
15464
15464
  return n.contentDOM && n.updateChildren(i, 0), n;
15465
15465
  }
@@ -15506,7 +15506,7 @@ class td extends Vr {
15506
15506
  return this.node.text == e;
15507
15507
  }
15508
15508
  }
15509
- class w7 extends Ga {
15509
+ class wH extends Ga {
15510
15510
  parseRule() {
15511
15511
  return { ignore: !0 };
15512
15512
  }
@@ -15554,7 +15554,7 @@ class $O extends Vr {
15554
15554
  return this.spec.ignoreMutation ? this.spec.ignoreMutation(e) : super.ignoreMutation(e);
15555
15555
  }
15556
15556
  }
15557
- function S7(o, e, t) {
15557
+ function SH(o, e, t) {
15558
15558
  let r = o.firstChild, i = !1;
15559
15559
  for (let n = 0; n < e.length; n++) {
15560
15560
  let a = e[n], s = a.dom;
@@ -15566,7 +15566,7 @@ function S7(o, e, t) {
15566
15566
  i = !0, o.insertBefore(s, r);
15567
15567
  if (a instanceof jr) {
15568
15568
  let l = r ? r.previousSibling : o.lastChild;
15569
- S7(a.contentDOM, a.children, t), r = l ? l.nextSibling : o.firstChild;
15569
+ SH(a.contentDOM, a.children, t), r = l ? l.nextSibling : o.firstChild;
15570
15570
  }
15571
15571
  }
15572
15572
  for (; r; )
@@ -15594,7 +15594,7 @@ function Bp(o, e, t) {
15594
15594
  }
15595
15595
  return i;
15596
15596
  }
15597
- function k7(o, e, t, r) {
15597
+ function kH(o, e, t, r) {
15598
15598
  if (t == ui && r == ui)
15599
15599
  return e;
15600
15600
  let i = e;
@@ -15630,8 +15630,8 @@ function _O(o, e, t) {
15630
15630
  t.style && (o.style.cssText += t.style);
15631
15631
  }
15632
15632
  }
15633
- function C7(o, e, t) {
15634
- return k7(o, o, ui, Bp(e, t, o.nodeType != 1));
15633
+ function CH(o, e, t) {
15634
+ return kH(o, o, ui, Bp(e, t, o.nodeType != 1));
15635
15635
  }
15636
15636
  function al(o, e) {
15637
15637
  if (o.length != e.length)
@@ -15773,7 +15773,7 @@ class BO {
15773
15773
  if (i && i.matchesWidget(e) && (e == i.widget || !i.widget.type.toDOM.parentNode))
15774
15774
  this.index++;
15775
15775
  else {
15776
- let n = new v7(this.top, e, t, r);
15776
+ let n = new vH(this.top, e, t, r);
15777
15777
  this.top.children.splice(this.index++, 0, n), this.changed = !0;
15778
15778
  }
15779
15779
  }
@@ -15792,7 +15792,7 @@ class BO {
15792
15792
  else {
15793
15793
  let r = document.createElement(e);
15794
15794
  e == "IMG" && (r.className = "ProseMirror-separator", r.alt = ""), e == "BR" && (r.className = "ProseMirror-trailingBreak");
15795
- let i = new w7(this.top, [], r, null);
15795
+ let i = new wH(this.top, [], r, null);
15796
15796
  t != this.top ? t.children.push(i) : t.children.splice(this.index++, 0, i), this.changed = !0;
15797
15797
  }
15798
15798
  }
@@ -15954,12 +15954,12 @@ function Lc(o, e = null) {
15954
15954
  }
15955
15955
  return d;
15956
15956
  }
15957
- function T7(o) {
15958
- return o.editable ? o.hasFocus() : M7(o) && document.activeElement && document.activeElement.contains(o.dom);
15957
+ function TH(o) {
15958
+ return o.editable ? o.hasFocus() : MH(o) && document.activeElement && document.activeElement.contains(o.dom);
15959
15959
  }
15960
15960
  function br(o, e = !1) {
15961
15961
  let t = o.state.selection;
15962
- if (P7(o, t), !T7(o))
15962
+ if (PH(o, t), !TH(o))
15963
15963
  return;
15964
15964
  let r = o.input.mouseDown;
15965
15965
  if (!e && gt && r) {
@@ -15977,7 +15977,7 @@ function br(o, e = !1) {
15977
15977
  }
15978
15978
  o.domObserver.setCurSelection(), o.domObserver.connectSelection();
15979
15979
  }
15980
- const eb = At || gt && u7 < 63;
15980
+ const eb = At || gt && uH < 63;
15981
15981
  function tb(o, e) {
15982
15982
  let { node: t, offset: r } = o.docView.domFromPos(e, 0), i = r < t.childNodes.length ? t.childNodes[r] : null, n = r ? t.childNodes[r - 1] : null;
15983
15983
  if (At && i && i.contentEditable == "false")
@@ -16001,7 +16001,7 @@ function OO(o) {
16001
16001
  let t = o.domSelectionRange(), r = t.anchorNode, i = t.anchorOffset;
16002
16002
  e.addEventListener("selectionchange", o.input.hideSelectionGuard = () => {
16003
16003
  (t.anchorNode != r || t.anchorOffset != i) && (e.removeEventListener("selectionchange", o.input.hideSelectionGuard), setTimeout(() => {
16004
- (!T7(o) || o.state.selection.visible) && o.dom.classList.remove("ProseMirror-hideselection");
16004
+ (!TH(o) || o.state.selection.visible) && o.dom.classList.remove("ProseMirror-hideselection");
16005
16005
  }, 20));
16006
16006
  });
16007
16007
  }
@@ -16012,7 +16012,7 @@ function NO(o) {
16012
16012
  let t = o.cursorWrapper.dom, r = t.nodeName == "IMG";
16013
16013
  r ? e.collapse(t.parentNode, kt(t) + 1) : e.collapse(t, 0), !r && !o.state.selection.visible && Yt && Fr <= 11 && (t.disabled = !0, t.disabled = !1);
16014
16014
  }
16015
- function P7(o, e) {
16015
+ function PH(o, e) {
16016
16016
  if (e instanceof Se) {
16017
16017
  let t = o.docView.descAt(e.from);
16018
16018
  t != o.lastSelectedViewDesc && (rb(o), t && t.selectNode(), o.lastSelectedViewDesc = t);
@@ -16026,9 +16026,9 @@ function Ec(o, e, t, r) {
16026
16026
  return o.someProp("createSelectionBetween", (i) => i(o, e, t)) || Pe.between(e, t, r);
16027
16027
  }
16028
16028
  function ib(o) {
16029
- return o.editable && !o.hasFocus() ? !1 : M7(o);
16029
+ return o.editable && !o.hasFocus() ? !1 : MH(o);
16030
16030
  }
16031
- function M7(o) {
16031
+ function MH(o) {
16032
16032
  let e = o.domSelectionRange();
16033
16033
  if (!e.anchorNode)
16034
16034
  return !1;
@@ -16108,7 +16108,7 @@ function jO(o) {
16108
16108
  break;
16109
16109
  }
16110
16110
  } else {
16111
- if (L7(t))
16111
+ if (LH(t))
16112
16112
  break;
16113
16113
  {
16114
16114
  let s = t.previousSibling;
@@ -16140,7 +16140,7 @@ function VO(o) {
16140
16140
  else
16141
16141
  break;
16142
16142
  } else {
16143
- if (L7(t))
16143
+ if (LH(t))
16144
16144
  break;
16145
16145
  {
16146
16146
  let s = t.nextSibling;
@@ -16157,7 +16157,7 @@ function VO(o) {
16157
16157
  }
16158
16158
  n && Dp(o, n, a);
16159
16159
  }
16160
- function L7(o) {
16160
+ function LH(o) {
16161
16161
  let e = o.pmViewDesc;
16162
16162
  return e && e.node && e.node.isBlock;
16163
16163
  }
@@ -16205,7 +16205,7 @@ function Dp(o, e, t) {
16205
16205
  }
16206
16206
  function ab(o, e) {
16207
16207
  let t = o.state.doc.resolve(e);
16208
- if (!(gt || b7) && t.parent.inlineContent) {
16208
+ if (!(gt || bH) && t.parent.inlineContent) {
16209
16209
  let i = o.coordsAtPos(e);
16210
16210
  if (e > t.start()) {
16211
16211
  let n = o.coordsAtPos(e - 1), a = (n.top + n.bottom) / 2;
@@ -16304,10 +16304,10 @@ function Ac(o, e) {
16304
16304
  let m = r.firstChild;
16305
16305
  t.push(m.type.name, m.attrs != m.type.defaultAttrs ? m.attrs : null), r = m.content;
16306
16306
  }
16307
- let a = o.someProp("clipboardSerializer") || $i.fromSchema(o.state.schema), s = I7(), l = s.createElement("div");
16307
+ let a = o.someProp("clipboardSerializer") || $i.fromSchema(o.state.schema), s = IH(), l = s.createElement("div");
16308
16308
  l.appendChild(a.serializeFragment(r, { document: s }));
16309
16309
  let d = l.firstChild, c, u = 0;
16310
- for (; d && d.nodeType == 1 && (c = B7[d.nodeName.toLowerCase()]); ) {
16310
+ for (; d && d.nodeType == 1 && (c = BH[d.nodeName.toLowerCase()]); ) {
16311
16311
  for (let m = c.length - 1; m >= 0; m--) {
16312
16312
  let x = s.createElement(c[m]);
16313
16313
  for (; l.firstChild; )
@@ -16322,7 +16322,7 @@ function Ac(o, e) {
16322
16322
  `);
16323
16323
  return { dom: l, text: b, slice: e };
16324
16324
  }
16325
- function E7(o, e, t, r, i) {
16325
+ function EH(o, e, t, r, i) {
16326
16326
  let n = i.parent.type.spec.code, a, s;
16327
16327
  if (!t && !e)
16328
16328
  return null;
@@ -16391,11 +16391,11 @@ function YO(o, e) {
16391
16391
  let l = i.findWrapping(s.type), d;
16392
16392
  if (!l)
16393
16393
  return a = null;
16394
- if (d = a.length && n.length && $7(l, n, s, a[a.length - 1], 0))
16394
+ if (d = a.length && n.length && $H(l, n, s, a[a.length - 1], 0))
16395
16395
  a[a.length - 1] = d;
16396
16396
  else {
16397
- a.length && (a[a.length - 1] = _7(a[a.length - 1], n.length));
16398
- let c = A7(s, l);
16397
+ a.length && (a[a.length - 1] = _H(a[a.length - 1], n.length));
16398
+ let c = AH(s, l);
16399
16399
  a.push(c), i = i.matchType(c.type), n = l;
16400
16400
  }
16401
16401
  }), a)
@@ -16403,24 +16403,24 @@ function YO(o, e) {
16403
16403
  }
16404
16404
  return o;
16405
16405
  }
16406
- function A7(o, e, t = 0) {
16406
+ function AH(o, e, t = 0) {
16407
16407
  for (let r = e.length - 1; r >= t; r--)
16408
16408
  o = e[r].create(null, re.from(o));
16409
16409
  return o;
16410
16410
  }
16411
- function $7(o, e, t, r, i) {
16411
+ function $H(o, e, t, r, i) {
16412
16412
  if (i < o.length && i < e.length && o[i] == e[i]) {
16413
- let n = $7(o, e, t, r.lastChild, i + 1);
16413
+ let n = $H(o, e, t, r.lastChild, i + 1);
16414
16414
  if (n)
16415
16415
  return r.copy(r.content.replaceChild(r.childCount - 1, n));
16416
16416
  if (r.contentMatchAt(r.childCount).matchType(i == o.length - 1 ? t.type : o[i + 1]))
16417
- return r.copy(r.content.append(re.from(A7(t, o, i + 1))));
16417
+ return r.copy(r.content.append(re.from(AH(t, o, i + 1))));
16418
16418
  }
16419
16419
  }
16420
- function _7(o, e) {
16420
+ function _H(o, e) {
16421
16421
  if (e == 0)
16422
16422
  return o;
16423
- let t = o.content.replaceChild(o.childCount - 1, _7(o.lastChild, e - 1)), r = o.contentMatchAt(o.childCount).fillBefore(re.empty, !0);
16423
+ let t = o.content.replaceChild(o.childCount - 1, _H(o.lastChild, e - 1)), r = o.contentMatchAt(o.childCount).fillBefore(re.empty, !0);
16424
16424
  return o.copy(t.append(r));
16425
16425
  }
16426
16426
  function Rp(o, e, t, r, i, n) {
@@ -16430,7 +16430,7 @@ function Rp(o, e, t, r, i, n) {
16430
16430
  function pb(o, e, t) {
16431
16431
  return e < o.openStart && (o = new me(Rp(o.content, -1, e, o.openStart, 0, o.openEnd), e, o.openEnd)), t < o.openEnd && (o = new me(Rp(o.content, 1, t, o.openEnd, 0, 0), o.openStart, t)), o;
16432
16432
  }
16433
- const B7 = {
16433
+ const BH = {
16434
16434
  thead: ["table"],
16435
16435
  tbody: ["table"],
16436
16436
  tfoot: ["table"],
@@ -16441,7 +16441,7 @@ const B7 = {
16441
16441
  td: ["table", "tbody", "tr"],
16442
16442
  th: ["table", "tbody", "tr"]
16443
16443
  };
16444
- function I7() {
16444
+ function IH() {
16445
16445
  return document.implementation.createHTMLDocument("title");
16446
16446
  }
16447
16447
  let Rd = null;
@@ -16452,8 +16452,8 @@ function QO(o) {
16452
16452
  function XO(o) {
16453
16453
  let e = /^(\s*<meta [^>]*>)*/.exec(o);
16454
16454
  e && (o = o.slice(e[0].length));
16455
- let t = I7(), r = t.body, i = /<([a-z][^>\s]+)/i.exec(o), n;
16456
- if ((n = i && B7[i[1].toLowerCase()]) && (o = n.map((a) => "<" + a + ">").join("") + o + n.map((a) => "</" + a + ">").reverse().join("")), r.innerHTML = QO(o), n)
16455
+ let t = IH(), r = t.body, i = /<([a-z][^>\s]+)/i.exec(o), n;
16456
+ if ((n = i && BH[i[1].toLowerCase()]) && (o = n.map((a) => "<" + a + ">").join("") + o + n.map((a) => "</" + a + ">").reverse().join("")), r.innerHTML = QO(o), n)
16457
16457
  for (let a = 0; a < n.length; a++)
16458
16458
  r = r.querySelector(n[a]) || r;
16459
16459
  for (let a = 0; a < t.styleSheets.length; a++) {
@@ -16545,7 +16545,7 @@ function aN(o, e) {
16545
16545
  }
16546
16546
  qt.keydown = (o, e) => {
16547
16547
  let t = e;
16548
- if (o.input.shiftKey = t.keyCode == 16 || t.shiftKey, !z7(o) && (o.input.lastKeyCode = t.keyCode, o.input.lastKeyCodeTime = Date.now(), !(lr && gt && t.keyCode == 13)))
16548
+ if (o.input.shiftKey = t.keyCode == 16 || t.shiftKey, !zH(o) && (o.input.lastKeyCode = t.keyCode, o.input.lastKeyCodeTime = Date.now(), !(lr && gt && t.keyCode == 13)))
16549
16549
  if (t.keyCode != 229 && o.domObserver.forceFlush(), yn && t.keyCode == 13 && !t.ctrlKey && !t.altKey && !t.metaKey) {
16550
16550
  let r = Date.now();
16551
16551
  o.input.lastIOSEnter = r, o.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
@@ -16558,7 +16558,7 @@ qt.keyup = (o, e) => {
16558
16558
  };
16559
16559
  qt.keypress = (o, e) => {
16560
16560
  let t = e;
16561
- if (z7(o) || !t.charCode || t.ctrlKey && !t.altKey || co && t.metaKey)
16561
+ if (zH(o) || !t.charCode || t.ctrlKey && !t.altKey || co && t.metaKey)
16562
16562
  return;
16563
16563
  if (o.someProp("handleKeyPress", (i) => i(o, t))) {
16564
16564
  t.preventDefault();
@@ -16625,10 +16625,10 @@ function uN(o, e, t, r) {
16625
16625
  function bN(o, e, t) {
16626
16626
  if (t.button != 0)
16627
16627
  return !1;
16628
- let r = H7(o, e, !0), i = o.state.doc;
16628
+ let r = HH(o, e, !0), i = o.state.doc;
16629
16629
  return r ? (Ja(o, r), r instanceof Pe && i.eq(o.state.doc) && (o.input.mouseDown = new gN(o, r)), !0) : !1;
16630
16630
  }
16631
- function H7(o, e, t) {
16631
+ function HH(o, e, t) {
16632
16632
  let r = o.state.doc;
16633
16633
  if (e == -1)
16634
16634
  return r.inlineContent ? Pe.create(r, 0, r.content.size) : null;
@@ -16645,16 +16645,16 @@ function H7(o, e, t) {
16645
16645
  function Bc(o) {
16646
16646
  return ll(o);
16647
16647
  }
16648
- const D7 = co ? "metaKey" : "ctrlKey";
16648
+ const DH = co ? "metaKey" : "ctrlKey";
16649
16649
  Vt.mousedown = (o, e) => {
16650
16650
  let t = e;
16651
16651
  o.input.shiftKey = t.shiftKey;
16652
16652
  let r = Bc(o), i = Date.now(), n = "singleClick";
16653
- i - o.input.lastClick.time < 500 && sN(t, o.input.lastClick) && !t[D7] && o.input.lastClick.button == t.button && (o.input.lastClick.type == "singleClick" ? n = "doubleClick" : o.input.lastClick.type == "doubleClick" && (n = "tripleClick")), o.input.lastClick = { time: i, x: t.clientX, y: t.clientY, type: n, button: t.button }, o.input.mouseDown && o.input.mouseDown.done();
16653
+ i - o.input.lastClick.time < 500 && sN(t, o.input.lastClick) && !t[DH] && o.input.lastClick.button == t.button && (o.input.lastClick.type == "singleClick" ? n = "doubleClick" : o.input.lastClick.type == "doubleClick" && (n = "tripleClick")), o.input.lastClick = { time: i, x: t.clientX, y: t.clientY, type: n, button: t.button }, o.input.mouseDown && o.input.mouseDown.done();
16654
16654
  let a = o.posAtCoords(Ka(t));
16655
16655
  a && (n == "singleClick" ? o.input.mouseDown = new mN(o, a, t, !!r) : (n == "doubleClick" ? cN : uN)(o, a.pos, a.inside, t) ? t.preventDefault() : dr(o, "pointer"));
16656
16656
  };
16657
- class R7 {
16657
+ class RH {
16658
16658
  constructor(e) {
16659
16659
  this.view = e, this.mightDrag = null, e.root.addEventListener("mouseup", this.up = this.up.bind(this)), e.root.addEventListener("mousemove", this.move = this.move.bind(this));
16660
16660
  }
@@ -16671,9 +16671,9 @@ class R7 {
16671
16671
  return !1;
16672
16672
  }
16673
16673
  }
16674
- class mN extends R7 {
16674
+ class mN extends RH {
16675
16675
  constructor(e, t, r, i) {
16676
- super(e), this.pos = t, this.event = r, this.flushed = i, this.delayedSelectionSync = !1, this.startDoc = e.state.doc, this.selectNode = !!r[D7], this.allowDefault = r.shiftKey;
16676
+ super(e), this.pos = t, this.event = r, this.flushed = i, this.delayedSelectionSync = !1, this.startDoc = e.state.doc, this.selectNode = !!r[DH], this.allowDefault = r.shiftKey;
16677
16677
  let n, a;
16678
16678
  if (t.inside > -1)
16679
16679
  n = e.state.doc.nodeAt(t.inside), a = t.inside;
@@ -16722,7 +16722,7 @@ class mN extends R7 {
16722
16722
  return this.allowDefault ? (this.delayedSelectionSync = !0, !0) : !1;
16723
16723
  }
16724
16724
  }
16725
- class gN extends R7 {
16725
+ class gN extends RH {
16726
16726
  constructor(e, t) {
16727
16727
  super(e), this.startSelection = t, this.startDoc = e.state.doc;
16728
16728
  }
@@ -16732,7 +16732,7 @@ class gN extends R7 {
16732
16732
  return;
16733
16733
  }
16734
16734
  e.preventDefault(), dr(this.view, "pointer");
16735
- let t = this.view.posAtCoords(Ka(e)), r = t && H7(this.view, t.inside, !1);
16735
+ let t = this.view.posAtCoords(Ka(e)), r = t && HH(this.view, t.inside, !1);
16736
16736
  if (!r)
16737
16737
  return;
16738
16738
  let { doc: i } = this.view.state, n = this.startSelection, [a, s] = r.from < n.from ? [n.to, r.from] : [n.from, r.to];
@@ -16746,7 +16746,7 @@ Vt.touchmove = (o) => {
16746
16746
  o.input.lastTouch = Date.now(), dr(o, "pointer");
16747
16747
  };
16748
16748
  Vt.contextmenu = (o) => Bc(o);
16749
- function z7(o, e) {
16749
+ function zH(o, e) {
16750
16750
  return o.composing ? !0 : At && Math.abs(Date.now() - o.input.compositionEndedAt) < 500 ? (o.input.compositionEndedAt = -2e8, !0) : !1;
16751
16751
  }
16752
16752
  const xN = lr ? 5e3 : -1;
@@ -16754,7 +16754,7 @@ qt.compositionstart = qt.compositionupdate = (o) => {
16754
16754
  if (!o.composing) {
16755
16755
  o.domObserver.flush();
16756
16756
  let { state: e } = o, t = e.selection.$to;
16757
- if (e.selection instanceof Pe && (e.storedMarks || !t.textOffset && t.parentOffset && t.nodeBefore.marks.some((r) => r.type.spec.inclusive === !1) || gt && b7 && hN(o)))
16757
+ if (e.selection instanceof Pe && (e.storedMarks || !t.textOffset && t.parentOffset && t.nodeBefore.marks.some((r) => r.type.spec.inclusive === !1) || gt && bH && hN(o)))
16758
16758
  o.markCursor = o.state.storedMarks || t.marks(), ll(o, !0), o.markCursor = null;
16759
16759
  else if (ll(o, !e.selection.empty), go && e.selection.empty && t.parentOffset && !t.textOffset && t.nodeBefore.marks.length) {
16760
16760
  let r = o.domSelectionRange();
@@ -16772,7 +16772,7 @@ qt.compositionstart = qt.compositionupdate = (o) => {
16772
16772
  }
16773
16773
  o.input.composing = !0;
16774
16774
  }
16775
- O7(o, xN);
16775
+ OH(o, xN);
16776
16776
  };
16777
16777
  function hN(o) {
16778
16778
  let { focusNode: e, focusOffset: t } = o.domSelectionRange();
@@ -16782,12 +16782,12 @@ function hN(o) {
16782
16782
  return r.nodeType == 1 && r.contentEditable == "false";
16783
16783
  }
16784
16784
  qt.compositionend = (o, e) => {
16785
- o.composing && (o.input.composing = !1, o.input.compositionEndedAt = Date.now(), o.input.compositionPendingChanges = o.domObserver.pendingRecords().length ? o.input.compositionID : 0, o.input.compositionNode = null, o.input.badSafariComposition ? o.domObserver.forceFlush() : o.input.compositionPendingChanges && Promise.resolve().then(() => o.domObserver.flush()), o.input.compositionID++, O7(o, 20));
16785
+ o.composing && (o.input.composing = !1, o.input.compositionEndedAt = Date.now(), o.input.compositionPendingChanges = o.domObserver.pendingRecords().length ? o.input.compositionID : 0, o.input.compositionNode = null, o.input.badSafariComposition ? o.domObserver.forceFlush() : o.input.compositionPendingChanges && Promise.resolve().then(() => o.domObserver.flush()), o.input.compositionID++, OH(o, 20));
16786
16786
  };
16787
- function O7(o, e) {
16787
+ function OH(o, e) {
16788
16788
  clearTimeout(o.input.composingTimeout), e > -1 && (o.input.composingTimeout = setTimeout(() => ll(o), e));
16789
16789
  }
16790
- function N7(o) {
16790
+ function NH(o) {
16791
16791
  for (o.composing && (o.input.composing = !1, o.input.compositionEndedAt = Date.now()); o.input.compositionNodes.length > 0; )
16792
16792
  o.input.compositionNodes.pop().markParentsDirty();
16793
16793
  }
@@ -16812,7 +16812,7 @@ function fN(o) {
16812
16812
  }
16813
16813
  function ll(o, e = !1) {
16814
16814
  if (!(lr && o.domObserver.flushingSoon >= 0)) {
16815
- if (o.domObserver.forceFlush(), N7(o), e || o.docView && o.docView.dirty) {
16815
+ if (o.domObserver.forceFlush(), NH(o), e || o.docView && o.docView.dirty) {
16816
16816
  let t = Lc(o), r = o.state.selection;
16817
16817
  return t && !t.eq(r) ? o.dispatch(o.state.tr.setSelection(t)) : (o.markCursor || e) && !r.$from.node(r.$from.sharedDepth(r.to)).inlineContent ? o.dispatch(o.state.tr.deleteSelection()) : o.updateState(o.state), !0;
16818
16818
  }
@@ -16851,7 +16851,7 @@ function wN(o, e) {
16851
16851
  }, 50);
16852
16852
  }
16853
16853
  function Ba(o, e, t, r, i) {
16854
- let n = E7(o, e, t, r, o.state.selection.$from);
16854
+ let n = EH(o, e, t, r, o.state.selection.$from);
16855
16855
  if (o.someProp("handlePaste", (l) => l(o, i, n || me.empty)))
16856
16856
  return !0;
16857
16857
  if (!n)
@@ -16859,7 +16859,7 @@ function Ba(o, e, t, r, i) {
16859
16859
  let a = vN(n), s = a ? o.state.tr.replaceSelectionWith(a, r) : o.state.tr.replaceSelection(n);
16860
16860
  return o.dispatch(s.scrollIntoView().setMeta("paste", !0).setMeta("uiEvent", "paste")), !0;
16861
16861
  }
16862
- function F7(o) {
16862
+ function FH(o) {
16863
16863
  let e = o.getData("text/plain") || o.getData("Text");
16864
16864
  if (e)
16865
16865
  return e;
@@ -16871,15 +16871,15 @@ qt.paste = (o, e) => {
16871
16871
  if (o.composing && !lr)
16872
16872
  return;
16873
16873
  let r = _a ? null : t.clipboardData, i = o.input.shiftKey && o.input.lastKeyCode != 45;
16874
- r && Ba(o, F7(r), r.getData("text/html"), i, t) ? t.preventDefault() : wN(o, t);
16874
+ r && Ba(o, FH(r), r.getData("text/html"), i, t) ? t.preventDefault() : wN(o, t);
16875
16875
  };
16876
- class j7 {
16876
+ class jH {
16877
16877
  constructor(e, t, r) {
16878
16878
  this.slice = e, this.move = t, this.node = r;
16879
16879
  }
16880
16880
  }
16881
16881
  const SN = co ? "altKey" : "ctrlKey";
16882
- function V7(o, e) {
16882
+ function VH(o, e) {
16883
16883
  let t;
16884
16884
  return o.someProp("dragCopies", (r) => {
16885
16885
  t = t || r(e);
@@ -16899,7 +16899,7 @@ Vt.dragstart = (o, e) => {
16899
16899
  }
16900
16900
  }
16901
16901
  let s = (a || o.state.selection).content(), { dom: l, text: d, slice: c } = Ac(o, s);
16902
- (!t.dataTransfer.files.length || !gt || u7 > 120) && t.dataTransfer.clearData(), t.dataTransfer.setData(_a ? "Text" : "text/html", l.innerHTML), t.dataTransfer.effectAllowed = "copyMove", _a || t.dataTransfer.setData("text/plain", d), o.dragging = new j7(c, V7(o, t), a);
16902
+ (!t.dataTransfer.files.length || !gt || uH > 120) && t.dataTransfer.clearData(), t.dataTransfer.setData(_a ? "Text" : "text/html", l.innerHTML), t.dataTransfer.effectAllowed = "copyMove", _a || t.dataTransfer.setData("text/plain", d), o.dragging = new jH(c, VH(o, t), a);
16903
16903
  };
16904
16904
  Vt.dragend = (o) => {
16905
16905
  let e = o.dragging;
@@ -16924,8 +16924,8 @@ function kN(o, e, t) {
16924
16924
  let i = o.state.doc.resolve(r.pos), n = t && t.slice;
16925
16925
  n ? o.someProp("transformPasted", (m) => {
16926
16926
  n = m(n, o, !1);
16927
- }) : n = E7(o, F7(e.dataTransfer), _a ? null : e.dataTransfer.getData("text/html"), !1, i);
16928
- let a = !!(t && V7(o, e));
16927
+ }) : n = EH(o, FH(e.dataTransfer), _a ? null : e.dataTransfer.getData("text/html"), !1, i);
16928
+ let a = !!(t && VH(o, e));
16929
16929
  if (o.someProp("handleDrop", (m) => m(o, e, n || me.empty, a))) {
16930
16930
  e.preventDefault();
16931
16931
  return;
@@ -17186,13 +17186,13 @@ class Ke {
17186
17186
  let i, n = 0;
17187
17187
  e.forEach((s, l) => {
17188
17188
  let d = l + r, c;
17189
- if (c = U7(t, s, d)) {
17189
+ if (c = UH(t, s, d)) {
17190
17190
  for (i || (i = this.children.slice()); n < i.length && i[n] < l; )
17191
17191
  n += 3;
17192
17192
  i[n] == l ? i[n + 2] = i[n + 2].addInner(s, c, d + 1) : i.splice(n, 0, l, l + s.nodeSize, pl(c, s, d + 1, yi)), n += 3;
17193
17193
  }
17194
17194
  });
17195
- let a = q7(n ? W7(t) : t, -r);
17195
+ let a = qH(n ? WH(t) : t, -r);
17196
17196
  for (let s = 0; s < a.length; s++)
17197
17197
  a[s].type.valid(e, a[s]) || a.splice(s--, 1);
17198
17198
  return new Ke(a.length ? this.local.concat(a).sort(vi) : this.local, i || this.children);
@@ -17398,7 +17398,7 @@ function CN(o, e, t, r, i, n, a) {
17398
17398
  }
17399
17399
  return new Ke(e.sort(vi), s);
17400
17400
  }
17401
- function q7(o, e) {
17401
+ function qH(o, e) {
17402
17402
  if (!e || !o.length)
17403
17403
  return o;
17404
17404
  let t = [];
@@ -17421,7 +17421,7 @@ function TN(o, e, t, r, i, n, a) {
17421
17421
  o[l + 1] == -1 && s(o[l + 2], e[l] + n + 1);
17422
17422
  return t;
17423
17423
  }
17424
- function U7(o, e, t) {
17424
+ function UH(o, e, t) {
17425
17425
  if (e.isLeaf)
17426
17426
  return null;
17427
17427
  let r = t + e.nodeSize, i = null;
@@ -17429,7 +17429,7 @@ function U7(o, e, t) {
17429
17429
  (a = o[n]) && a.from > t && a.to < r && ((i || (i = [])).push(a), o[n] = null);
17430
17430
  return i;
17431
17431
  }
17432
- function W7(o) {
17432
+ function WH(o) {
17433
17433
  let e = [];
17434
17434
  for (let t = 0; t < o.length; t++)
17435
17435
  o[t] != null && e.push(o[t]);
@@ -17438,14 +17438,14 @@ function W7(o) {
17438
17438
  function pl(o, e, t, r) {
17439
17439
  let i = [], n = !1;
17440
17440
  e.forEach((s, l) => {
17441
- let d = U7(o, s, l + t);
17441
+ let d = UH(o, s, l + t);
17442
17442
  if (d) {
17443
17443
  n = !0;
17444
17444
  let c = pl(d, s, t + l + 1, r);
17445
17445
  c != Mt && i.push(l, l + s.nodeSize, c);
17446
17446
  }
17447
17447
  });
17448
- let a = q7(n ? W7(o) : o, -t).sort(vi);
17448
+ let a = qH(n ? WH(o) : o, -t).sort(vi);
17449
17449
  for (let s = 0; s < a.length; s++)
17450
17450
  a[s].type.valid(e, a[s]) || (r.onRemove && r.onRemove(a[s].spec), a.splice(s--, 1));
17451
17451
  return a.length || i.length ? new Ke(a, i) : Mt;
@@ -17899,7 +17899,7 @@ function NN(o, e, t, r, i) {
17899
17899
  }
17900
17900
  return { start: n, endA: l, endB: d };
17901
17901
  }
17902
- class G7 {
17902
+ class GH {
17903
17903
  /**
17904
17904
  Create a view. `place` may be a DOM node that the editor should
17905
17905
  be appended to, a function that will place it into the document,
@@ -17964,7 +17964,7 @@ class G7 {
17964
17964
  updateStateInner(e, t) {
17965
17965
  var r;
17966
17966
  let i = this.state, n = !1, a = !1;
17967
- e.storedMarks && this.composing && (N7(this), a = !0), this.state = e;
17967
+ e.storedMarks && this.composing && (NH(this), a = !0), this.state = e;
17968
17968
  let s = i.plugins != e.plugins || this._props.plugins != t.plugins;
17969
17969
  if (s || this._props.plugins != t.plugins || this._props.nodeViews != t.nodeViews) {
17970
17970
  let m = yb(this);
@@ -17982,7 +17982,7 @@ class G7 {
17982
17982
  this.composing && (this.input.compositionNode = fN(this)), (n || !this.docView.update(e.doc, d, l, this)) && (this.docView.updateOuterDeco(d), this.docView.destroy(), this.docView = Xu(e.doc, d, l, this.dom, this)), h && (!this.trackWrites || !this.dom.contains(this.trackWrites)) && (m = !0);
17983
17983
  }
17984
17984
  let x = this.input.mouseDown;
17985
- m || !(x && this.domObserver.currentSelection.eq(this.domSelectionRange()) && FO(this) && x.delaySelUpdate()) ? br(this, m) : (P7(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
17985
+ m || !(x && this.domObserver.currentSelection.eq(this.domSelectionRange()) && FO(this) && x.delaySelUpdate()) ? br(this, m) : (PH(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
17986
17986
  }
17987
17987
  this.updatePluginViews(i), !((r = this.dragging) === null || r === void 0) && r.node && !i.doc.eq(e.doc) && this.updateDraggedNode(this.dragging, i), c == "reset" ? this.dom.scrollTop = 0 : c == "to selection" ? this.scrollToSelection() : b && fO(b);
17988
17988
  }
@@ -18029,7 +18029,7 @@ class G7 {
18029
18029
  let n = r.from + (this.state.doc.content.size - t.doc.content.size);
18030
18030
  (n > 0 && n < this.state.doc.content.size && this.state.doc.nodeAt(n)) == r.node && (i = n);
18031
18031
  }
18032
- this.dragging = new j7(e.slice, e.move, i < 0 ? void 0 : Se.create(this.state.doc, i));
18032
+ this.dragging = new jH(e.slice, e.move, i < 0 ? void 0 : Se.create(this.state.doc, i));
18033
18033
  }
18034
18034
  someProp(e, t) {
18035
18035
  let r = this._props && this._props[e], i;
@@ -18116,7 +18116,7 @@ class G7 {
18116
18116
  otherwise the element after.
18117
18117
  */
18118
18118
  coordsAtPos(e, t = 1) {
18119
- return f7(this, e, t);
18119
+ return fH(this, e, t);
18120
18120
  }
18121
18121
  /**
18122
18122
  Find the DOM position that corresponds to the given document
@@ -18232,7 +18232,7 @@ class G7 {
18232
18232
  return this.root.getSelection();
18233
18233
  }
18234
18234
  }
18235
- G7.prototype.dispatch = function(o) {
18235
+ GH.prototype.dispatch = function(o) {
18236
18236
  let e = this._props.dispatchTransaction;
18237
18237
  e ? e.call(this, o) : this.updateState(this.state.apply(o));
18238
18238
  };
@@ -18401,9 +18401,9 @@ function Fd(o, e, t = !0) {
18401
18401
  return e.altKey && (o = "Alt-" + o), e.ctrlKey && (o = "Ctrl-" + o), e.metaKey && (o = "Meta-" + o), t && e.shiftKey && (o = "Shift-" + o), o;
18402
18402
  }
18403
18403
  function YN(o) {
18404
- return new Ge({ props: { handleKeyDown: K7(o) } });
18404
+ return new Ge({ props: { handleKeyDown: KH(o) } });
18405
18405
  }
18406
- function K7(o) {
18406
+ function KH(o) {
18407
18407
  let e = JN(o);
18408
18408
  return function(t, r) {
18409
18409
  let i = UN(r), n, a = e[Fd(i, r)];
@@ -18521,8 +18521,8 @@ var rd = class {
18521
18521
  };
18522
18522
  return a;
18523
18523
  }
18524
- }, J7 = {};
18525
- Dc(J7, {
18524
+ }, JH = {};
18525
+ Dc(JH, {
18526
18526
  blur: () => XN,
18527
18527
  clearContent: () => ZN,
18528
18528
  clearNodes: () => eF,
@@ -18604,7 +18604,7 @@ var XN = () => ({ editor: o, view: e }) => (requestAnimationFrame(() => {
18604
18604
  (x || x === 0) && e.lift(m, x);
18605
18605
  });
18606
18606
  }), !0;
18607
- }, tF = (o) => (e) => o(e), oF = () => ({ state: o, dispatch: e }) => s7(o, e), rF = (o, e) => ({ editor: t, tr: r }) => {
18607
+ }, tF = (o) => (e) => o(e), oF = () => ({ state: o, dispatch: e }) => sH(o, e), rF = (o, e) => ({ editor: t, tr: r }) => {
18608
18608
  const { state: i } = t, n = i.doc.slice(o.from, o.to);
18609
18609
  r.deleteRange(o.from, o.to);
18610
18610
  const a = r.mapping.map(e);
@@ -18670,7 +18670,7 @@ function ul(o, e, t = { strict: !0 }) {
18670
18670
  const r = Object.keys(e);
18671
18671
  return r.length ? r.every((i) => t.strict ? e[i] === o[i] : Rc(e[i]) ? e[i].test(o[i]) : e[i] === o[i]) : !0;
18672
18672
  }
18673
- function Y7(o, e, t = {}) {
18673
+ function YH(o, e, t = {}) {
18674
18674
  return o.find((r) => r.type === e && ul(
18675
18675
  // Only check equality for the attributes that are provided
18676
18676
  Object.fromEntries(Object.keys(t).map((i) => [i, r.attrs[i]])),
@@ -18678,7 +18678,7 @@ function Y7(o, e, t = {}) {
18678
18678
  ));
18679
18679
  }
18680
18680
  function Sb(o, e, t = {}) {
18681
- return !!Y7(o, e, t);
18681
+ return !!YH(o, e, t);
18682
18682
  }
18683
18683
  function zc(o, e, t) {
18684
18684
  if (!o || !e)
@@ -18690,7 +18690,7 @@ function zc(o, e, t) {
18690
18690
  const d = r.node.marks.find((c) => c.type === e);
18691
18691
  d && (t = d.attrs);
18692
18692
  }
18693
- if (!Y7([...r.node.marks], e, t))
18693
+ if (!YH([...r.node.marks], e, t))
18694
18694
  return;
18695
18695
  let n = r.index, a = o.start() + r.offset, s = n + 1, l = a + r.node.nodeSize;
18696
18696
  for (; n > 0 && Sb([...o.parent.child(n - 1).marks], e, t); )
@@ -18729,13 +18729,13 @@ var uF = (o, e) => ({ tr: t, state: r, dispatch: i }) => {
18729
18729
  return !0;
18730
18730
  return !1;
18731
18731
  };
18732
- function Q7(o) {
18732
+ function QH(o) {
18733
18733
  return o instanceof Pe;
18734
18734
  }
18735
18735
  function bi(o = 0, e = 0, t = 0) {
18736
18736
  return Math.min(Math.max(o, e), t);
18737
18737
  }
18738
- function X7(o, e = null) {
18738
+ function XH(o, e = null) {
18739
18739
  if (!e)
18740
18740
  return null;
18741
18741
  const t = Ae.atStart(o), r = Ae.atEnd(o);
@@ -18782,19 +18782,19 @@ var gF = (o = null, e = {}) => ({ editor: t, view: r, tr: i, dispatch: n }) => {
18782
18782
  } catch {
18783
18783
  return !1;
18784
18784
  }
18785
- if (n && o === null && !Q7(t.state.selection))
18785
+ if (n && o === null && !QH(t.state.selection))
18786
18786
  return a(), !0;
18787
- const s = X7(i.doc, o) || t.state.selection, l = t.state.selection.eq(s);
18787
+ const s = XH(i.doc, o) || t.state.selection, l = t.state.selection.eq(s);
18788
18788
  return n && (l || i.setSelection(s), l && i.storedMarks && i.setStoredMarks(i.storedMarks), a()), !0;
18789
18789
  }, xF = (o, e) => (t) => o.every((r, i) => e(r, { ...t, index: i })), hF = (o, e) => ({ tr: t, commands: r }) => r.insertContentAt(
18790
18790
  { from: t.selection.from, to: t.selection.to },
18791
18791
  o,
18792
18792
  e
18793
- ), Z7 = (o) => {
18793
+ ), ZH = (o) => {
18794
18794
  const e = o.childNodes;
18795
18795
  for (let t = e.length - 1; t >= 0; t -= 1) {
18796
18796
  const r = e[t];
18797
- r.nodeType === 3 && r.nodeValue && /^(\n\s\s|\n)$/.test(r.nodeValue) ? o.removeChild(r) : r.nodeType === 1 && Z7(r);
18797
+ r.nodeType === 3 && r.nodeValue && /^(\n\s\s|\n)$/.test(r.nodeValue) ? o.removeChild(r) : r.nodeType === 1 && ZH(r);
18798
18798
  }
18799
18799
  return o;
18800
18800
  };
@@ -18804,7 +18804,7 @@ function cs(o) {
18804
18804
  "[tiptap error]: there is no window object available, so this function cannot be used"
18805
18805
  );
18806
18806
  const e = `<body>${o}</body>`, t = new window.DOMParser().parseFromString(e, "text/html").body;
18807
- return Z7(t);
18807
+ return ZH(t);
18808
18808
  }
18809
18809
  function Ha(o, e, t) {
18810
18810
  if (o instanceof Nr || o instanceof re)
@@ -18942,7 +18942,7 @@ var yF = (o) => !("type" in o), vF = (o, e, t) => ({ tr: r, dispatch: i, editor:
18942
18942
  t.updateSelection && fF(r, r.steps.length - 1, -1), t.applyInputRules && r.setMeta("applyInputRules", { from: c, text: h }), t.applyPasteRules && r.setMeta("applyPasteRules", { from: c, text: h });
18943
18943
  }
18944
18944
  return !0;
18945
- }, wF = () => ({ state: o, dispatch: e }) => V9(o, e), SF = () => ({ state: o, dispatch: e }) => q9(o, e), kF = () => ({ state: o, dispatch: e }) => e7(o, e), CF = () => ({ state: o, dispatch: e }) => i7(o, e), TF = () => ({ state: o, dispatch: e, tr: t }) => {
18945
+ }, wF = () => ({ state: o, dispatch: e }) => V9(o, e), SF = () => ({ state: o, dispatch: e }) => q9(o, e), kF = () => ({ state: o, dispatch: e }) => eH(o, e), CF = () => ({ state: o, dispatch: e }) => iH(o, e), TF = () => ({ state: o, dispatch: e, tr: t }) => {
18946
18946
  try {
18947
18947
  const r = Xl(o.doc, o.selection.$from.pos, -1);
18948
18948
  return r == null ? !1 : (t.join(r, 2), e && e(t), !0);
@@ -18957,7 +18957,7 @@ var yF = (o) => !("type" in o), vF = (o, e, t) => ({ tr: r, dispatch: i, editor:
18957
18957
  return !1;
18958
18958
  }
18959
18959
  }, MF = () => ({ state: o, dispatch: e }) => F9(o, e), LF = () => ({ state: o, dispatch: e }) => j9(o, e);
18960
- function eH() {
18960
+ function e7() {
18961
18961
  return typeof navigator < "u" ? /Mac/.test(navigator.platform) : !1;
18962
18962
  }
18963
18963
  function EF(o) {
@@ -18976,7 +18976,7 @@ function EF(o) {
18976
18976
  else if (/^s(hift)?$/i.test(l))
18977
18977
  n = !0;
18978
18978
  else if (/^mod$/i.test(l))
18979
- bl() || eH() ? a = !0 : i = !0;
18979
+ bl() || e7() ? a = !0 : i = !0;
18980
18980
  else
18981
18981
  throw new Error(`Unrecognized modifier name: ${l}`);
18982
18982
  }
@@ -19017,10 +19017,10 @@ function Wr(o, e, t = {}) {
19017
19017
  var $F = (o, e = {}) => ({ state: t, dispatch: r }) => {
19018
19018
  const i = at(o, t.schema);
19019
19019
  return Wr(t, i, e) ? U9(t, r) : !1;
19020
- }, _F = () => ({ state: o, dispatch: e }) => l7(o, e), BF = (o) => ({ state: e, dispatch: t }) => {
19020
+ }, _F = () => ({ state: o, dispatch: e }) => lH(o, e), BF = (o) => ({ state: e, dispatch: t }) => {
19021
19021
  const r = at(o, e.schema);
19022
19022
  return rO(r)(e, t);
19023
- }, IF = () => ({ state: o, dispatch: e }) => a7(o, e);
19023
+ }, IF = () => ({ state: o, dispatch: e }) => aH(o, e);
19024
19024
  function id(o, e) {
19025
19025
  return e.nodes[o] ? "node" : e.marks[o] ? "mark" : null;
19026
19026
  }
@@ -19055,7 +19055,7 @@ var HF = (o, e) => ({ tr: t, state: r, dispatch: i }) => {
19055
19055
  o.setSelection(t);
19056
19056
  }
19057
19057
  return !0;
19058
- }, zF = () => ({ state: o, dispatch: e }) => o7(o, e), OF = () => ({ state: o, dispatch: e }) => n7(o, e), NF = () => ({ state: o, dispatch: e }) => J9(o, e), FF = () => ({ state: o, dispatch: e }) => X9(o, e), jF = () => ({ state: o, dispatch: e }) => Q9(o, e);
19058
+ }, zF = () => ({ state: o, dispatch: e }) => oH(o, e), OF = () => ({ state: o, dispatch: e }) => nH(o, e), NF = () => ({ state: o, dispatch: e }) => J9(o, e), FF = () => ({ state: o, dispatch: e }) => X9(o, e), jF = () => ({ state: o, dispatch: e }) => Q9(o, e);
19059
19059
  function Op(o, e, t = {}, r = {}) {
19060
19060
  return Ha(o, e, {
19061
19061
  slice: !1,
@@ -19076,7 +19076,7 @@ var VF = (o, { errorOnInvalidContent: e, emitUpdate: t = !0, parseOptions: r = {
19076
19076
  errorOnInvalidContent: e ?? i.options.enableContentCheck
19077
19077
  });
19078
19078
  };
19079
- function tH(o, e) {
19079
+ function t7(o, e) {
19080
19080
  const t = hr(e, o.schema), { from: r, to: i, empty: n } = o.selection, a = [];
19081
19081
  n ? (o.storedMarks && a.push(...o.storedMarks), a.push(...o.selection.$head.marks())) : o.doc.nodesBetween(r, i, (l) => {
19082
19082
  a.push(...l.marks);
@@ -19084,7 +19084,7 @@ function tH(o, e) {
19084
19084
  const s = a.find((l) => l.type.name === t.name);
19085
19085
  return s ? { ...s.attrs } : {};
19086
19086
  }
19087
- function oH(o, e) {
19087
+ function o7(o, e) {
19088
19088
  const t = new WI(o);
19089
19089
  return e.forEach((r) => {
19090
19090
  r.steps.forEach((i) => {
@@ -19148,11 +19148,11 @@ function Nc(o, e) {
19148
19148
  const t = $i.fromSchema(e).serializeFragment(o), i = document.implementation.createHTMLDocument().createElement("div");
19149
19149
  return i.appendChild(t), i.innerHTML;
19150
19150
  }
19151
- function rH(o) {
19151
+ function r7(o) {
19152
19152
  return typeof o == "function";
19153
19153
  }
19154
19154
  function ze(o, e = void 0, ...t) {
19155
- return rH(o) ? e ? o.bind(e)(...t) : o(...t) : o;
19155
+ return r7(o) ? e ? o.bind(e)(...t) : o(...t) : o;
19156
19156
  }
19157
19157
  function GF(o = {}) {
19158
19158
  return Object.keys(o).length === 0 && o.constructor === Object;
@@ -19167,7 +19167,7 @@ function vn(o) {
19167
19167
  markExtensions: r
19168
19168
  };
19169
19169
  }
19170
- function iH(o) {
19170
+ function i7(o) {
19171
19171
  const e = [], { nodeExtensions: t, markExtensions: r } = vn(o), i = [...t, ...r], n = {
19172
19172
  default: null,
19173
19173
  validate: void 0,
@@ -19333,7 +19333,7 @@ function Lb(o) {
19333
19333
  }
19334
19334
  function YF(o, e) {
19335
19335
  var t;
19336
- const r = iH(o), { nodeExtensions: i, markExtensions: n } = vn(o), a = (t = i.find((d) => he(d, "topNode"))) == null ? void 0 : t.name, s = Object.fromEntries(
19336
+ const r = i7(o), { nodeExtensions: i, markExtensions: n } = vn(o), a = (t = i.find((d) => he(d, "topNode"))) == null ? void 0 : t.name, s = Object.fromEntries(
19337
19337
  i.map((d) => {
19338
19338
  const c = r.filter(
19339
19339
  (C) => C.type === d.name
@@ -19473,13 +19473,13 @@ function xa(o) {
19473
19473
  return i > n ? -1 : i < n ? 1 : 0;
19474
19474
  });
19475
19475
  }
19476
- function nH(o) {
19476
+ function n7(o) {
19477
19477
  const e = xa(Oc(o)), t = QF(e.map((r) => r.name));
19478
19478
  return t.length && console.warn(
19479
19479
  `[tiptap warn]: Duplicate extension names found: [${t.map((r) => `'${r}'`).join(", ")}]. This can lead to issues.`
19480
19480
  ), e;
19481
19481
  }
19482
- function aH(o, e, t) {
19482
+ function a7(o, e, t) {
19483
19483
  const { from: r, to: i } = e, { blockSeparator: n = `
19484
19484
 
19485
19485
  `, textSerializers: a = {} } = t || {};
@@ -19504,9 +19504,9 @@ function XF(o, e) {
19504
19504
  from: 0,
19505
19505
  to: o.content.size
19506
19506
  };
19507
- return aH(o, t, e);
19507
+ return a7(o, t, e);
19508
19508
  }
19509
- function sH(o) {
19509
+ function s7(o) {
19510
19510
  return Object.fromEntries(
19511
19511
  Object.entries(o.nodes).filter(([, e]) => e.spec.toText).map(([e, t]) => [e, t.spec.toText])
19512
19512
  );
@@ -19519,12 +19519,12 @@ function ZF(o, e) {
19519
19519
  const a = n.reverse().find((s) => s.type.name === t.name);
19520
19520
  return a ? { ...a.attrs } : {};
19521
19521
  }
19522
- function lH(o, e) {
19522
+ function l7(o, e) {
19523
19523
  const t = id(
19524
19524
  typeof e == "string" ? e : e.name,
19525
19525
  o.schema
19526
19526
  );
19527
- return t === "node" ? ZF(o, e) : t === "mark" ? tH(o, e) : {};
19527
+ return t === "node" ? ZF(o, e) : t === "mark" ? t7(o, e) : {};
19528
19528
  }
19529
19529
  function ej(o, e = JSON.stringify) {
19530
19530
  const t = {};
@@ -19537,7 +19537,7 @@ function tj(o) {
19537
19537
  const e = ej(o);
19538
19538
  return e.length === 1 ? e : e.filter((t, r) => !e.filter((n, a) => a !== r).some((n) => t.oldRange.from >= n.oldRange.from && t.oldRange.to <= n.oldRange.to && t.newRange.from >= n.newRange.from && t.newRange.to <= n.newRange.to));
19539
19539
  }
19540
- function dH(o) {
19540
+ function d7(o) {
19541
19541
  const { mapping: e, steps: t } = o, r = [];
19542
19542
  return e.maps.forEach((i, n) => {
19543
19543
  const a = [];
@@ -19708,10 +19708,10 @@ function Ra(o, {
19708
19708
  }
19709
19709
  return !1;
19710
19710
  }
19711
- function pH(o) {
19711
+ function p7(o) {
19712
19712
  return o instanceof Se;
19713
19713
  }
19714
- var cH = class uH {
19714
+ var c7 = class u7 {
19715
19715
  constructor(e) {
19716
19716
  this.position = e;
19717
19717
  }
@@ -19719,7 +19719,7 @@ var cH = class uH {
19719
19719
  * Creates a MappablePosition from a JSON object.
19720
19720
  */
19721
19721
  static fromJSON(e) {
19722
- return new uH(e.position);
19722
+ return new u7(e.position);
19723
19723
  }
19724
19724
  /**
19725
19725
  * Converts the MappablePosition to a JSON object.
@@ -19733,18 +19733,18 @@ var cH = class uH {
19733
19733
  function sj(o, e) {
19734
19734
  const t = e.mapping.mapResult(o.position);
19735
19735
  return {
19736
- position: new cH(t.pos),
19736
+ position: new c7(t.pos),
19737
19737
  mapResult: t
19738
19738
  };
19739
19739
  }
19740
19740
  function lj(o) {
19741
- return new cH(o);
19741
+ return new c7(o);
19742
19742
  }
19743
19743
  function dj(o, e, t) {
19744
19744
  var r;
19745
19745
  const { selection: i } = e;
19746
19746
  let n = null;
19747
- if (Q7(i) && (n = i.$cursor), n) {
19747
+ if (QH(i) && (n = i.$cursor), n) {
19748
19748
  const s = (r = o.storedMarks) != null ? r : n.marks();
19749
19749
  return n.parent.type.allowsMarkType(t) && (!!t.isInSet(s) || !s.some((d) => d.type.excludes(t)));
19750
19750
  }
@@ -19766,7 +19766,7 @@ var pj = (o, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
19766
19766
  const { selection: n } = t, { empty: a, ranges: s } = n, l = hr(o, r.schema);
19767
19767
  if (i)
19768
19768
  if (a) {
19769
- const d = tH(r, l);
19769
+ const d = t7(r, l);
19770
19770
  t.addStoredMark(
19771
19771
  l.create({
19772
19772
  ...d,
@@ -19919,7 +19919,7 @@ var hj = ({ keepMarks: o = !0 } = {}) => ({ tr: e, state: t, dispatch: r, editor
19919
19919
  function $b(o) {
19920
19920
  return !o || o === "1" ? null : o;
19921
19921
  }
19922
- function bH(o, e) {
19922
+ function b7(o, e) {
19923
19923
  return $b(o) === $b(e);
19924
19924
  }
19925
19925
  var Vd = (o, e) => {
@@ -19930,7 +19930,7 @@ var Vd = (o, e) => {
19930
19930
  if (r === void 0)
19931
19931
  return !0;
19932
19932
  const i = o.doc.nodeAt(r);
19933
- return !(t.node.type === (i == null ? void 0 : i.type) && Gr(o.doc, t.pos)) || !bH(t.node.attrs.type, i == null ? void 0 : i.attrs.type) || o.join(t.pos), !0;
19933
+ return !(t.node.type === (i == null ? void 0 : i.type) && Gr(o.doc, t.pos)) || !b7(t.node.attrs.type, i == null ? void 0 : i.attrs.type) || o.join(t.pos), !0;
19934
19934
  }, qd = (o, e) => {
19935
19935
  const t = nd((a) => a.type === e)(o.selection);
19936
19936
  if (!t)
@@ -19939,7 +19939,7 @@ var Vd = (o, e) => {
19939
19939
  if (r === void 0)
19940
19940
  return !0;
19941
19941
  const i = o.doc.nodeAt(r);
19942
- return !(t.node.type === (i == null ? void 0 : i.type) && Gr(o.doc, r)) || !bH(t.node.attrs.type, i == null ? void 0 : i.attrs.type) || o.join(r), !0;
19942
+ return !(t.node.type === (i == null ? void 0 : i.type) && Gr(o.doc, r)) || !b7(t.node.attrs.type, i == null ? void 0 : i.attrs.type) || o.join(r), !0;
19943
19943
  };
19944
19944
  function yj(o) {
19945
19945
  const e = o.doc, t = e.firstChild;
@@ -20129,7 +20129,7 @@ function _j(o, e) {
20129
20129
  }
20130
20130
  return !1;
20131
20131
  }
20132
- function mH(o, e, t) {
20132
+ function m7(o, e, t) {
20133
20133
  const r = document.querySelector(`style[data-tiptap-style${t ? `-${t}` : ""}]`);
20134
20134
  if (r !== null)
20135
20135
  return r;
@@ -20489,10 +20489,10 @@ ${x}`;
20489
20489
  }
20490
20490
  }), l;
20491
20491
  }
20492
- function gH(o, e) {
20492
+ function g7(o, e) {
20493
20493
  const t = { ...o };
20494
20494
  return us(o) && us(e) && Object.keys(e).forEach((r) => {
20495
- us(e[r]) && us(o[r]) ? t[r] = gH(o[r], e[r]) : t[r] = e[r];
20495
+ us(e[r]) && us(o[r]) ? t[r] = g7(o[r], e[r]) : t[r] = e[r];
20496
20496
  }), t;
20497
20497
  }
20498
20498
  function Fj(o, e, t = {}) {
@@ -20681,7 +20681,7 @@ var Uc = class {
20681
20681
  configure(o = {}) {
20682
20682
  const e = this.extend({
20683
20683
  ...this.config,
20684
- addOptions: () => gH(this.options, o)
20684
+ addOptions: () => g7(this.options, o)
20685
20685
  });
20686
20686
  return e.name = this.name, e.parent = this.parent, this.child = null, e;
20687
20687
  }
@@ -20689,7 +20689,7 @@ var Uc = class {
20689
20689
  const e = new this.constructor({ ...this.config, ...o });
20690
20690
  return e.parent = this, this.child = e, e.name = "name" in o ? o.name : e.parent.name, e;
20691
20691
  }
20692
- }, _i = class xH extends Uc {
20692
+ }, _i = class x7 extends Uc {
20693
20693
  constructor() {
20694
20694
  super(...arguments), this.type = "mark";
20695
20695
  }
@@ -20699,7 +20699,7 @@ var Uc = class {
20699
20699
  */
20700
20700
  static create(e = {}) {
20701
20701
  const t = typeof e == "function" ? e() : e;
20702
- return new xH(t);
20702
+ return new x7(t);
20703
20703
  }
20704
20704
  static handleExit({ editor: e, mark: t }) {
20705
20705
  const { tr: r } = e.state, i = e.state.selection.$from;
@@ -20877,7 +20877,7 @@ function Kj(o) {
20877
20877
  }
20878
20878
  var sd = class {
20879
20879
  constructor(o, e) {
20880
- this.splittableMarks = [], this.nonClearableMarks = [], this.editor = e, this.baseExtensions = o, this.extensions = nH(o), this.schema = YF(this.extensions, e), this.setupExtensions();
20880
+ this.splittableMarks = [], this.nonClearableMarks = [], this.editor = e, this.baseExtensions = o, this.extensions = n7(o), this.schema = YF(this.extensions, e), this.setupExtensions();
20881
20881
  }
20882
20882
  /**
20883
20883
  * Get all commands from the extensions.
@@ -20973,7 +20973,7 @@ var sd = class {
20973
20973
  * @returns An array of attributes
20974
20974
  */
20975
20975
  get attributes() {
20976
- return iH(this.extensions);
20976
+ return i7(this.extensions);
20977
20977
  }
20978
20978
  /**
20979
20979
  * Get all node views from the extensions.
@@ -21171,24 +21171,24 @@ var sd = class {
21171
21171
  });
21172
21172
  }
21173
21173
  };
21174
- sd.resolve = nH;
21174
+ sd.resolve = n7;
21175
21175
  sd.sort = xa;
21176
21176
  sd.flatten = Oc;
21177
21177
  var Jj = {};
21178
21178
  Dc(Jj, {
21179
- ClipboardTextSerializer: () => fH,
21180
- Commands: () => yH,
21181
- Delete: () => vH,
21182
- Drop: () => wH,
21183
- Editable: () => SH,
21184
- FocusEvents: () => CH,
21185
- Keymap: () => TH,
21186
- Paste: () => PH,
21187
- Tabindex: () => MH,
21188
- TextDirection: () => LH,
21189
- focusEventsPluginKey: () => kH
21179
+ ClipboardTextSerializer: () => f7,
21180
+ Commands: () => y7,
21181
+ Delete: () => v7,
21182
+ Drop: () => w7,
21183
+ Editable: () => S7,
21184
+ FocusEvents: () => C7,
21185
+ Keymap: () => T7,
21186
+ Paste: () => P7,
21187
+ Tabindex: () => M7,
21188
+ TextDirection: () => L7,
21189
+ focusEventsPluginKey: () => k7
21190
21190
  });
21191
- var Je = class hH extends Uc {
21191
+ var Je = class h7 extends Uc {
21192
21192
  constructor() {
21193
21193
  super(...arguments), this.type = "extension";
21194
21194
  }
@@ -21198,7 +21198,7 @@ var Je = class hH extends Uc {
21198
21198
  */
21199
21199
  static create(e = {}) {
21200
21200
  const t = typeof e == "function" ? e() : e;
21201
- return new hH(t);
21201
+ return new h7(t);
21202
21202
  }
21203
21203
  configure(e) {
21204
21204
  return super.configure(e);
@@ -21207,7 +21207,7 @@ var Je = class hH extends Uc {
21207
21207
  const t = typeof e == "function" ? e() : e;
21208
21208
  return super.extend(t);
21209
21209
  }
21210
- }, fH = Je.create({
21210
+ }, f7 = Je.create({
21211
21211
  name: "clipboardTextSerializer",
21212
21212
  addOptions() {
21213
21213
  return {
@@ -21220,12 +21220,12 @@ var Je = class hH extends Uc {
21220
21220
  key: new dt("clipboardTextSerializer"),
21221
21221
  props: {
21222
21222
  clipboardTextSerializer: () => {
21223
- const { editor: o } = this, { state: e, schema: t } = o, { doc: r, selection: i } = e, n = sH(t), { blockSeparator: a } = this.options, s = {
21223
+ const { editor: o } = this, { state: e, schema: t } = o, { doc: r, selection: i } = e, n = s7(t), { blockSeparator: a } = this.options, s = {
21224
21224
  ...a !== void 0 ? { blockSeparator: a } : {},
21225
21225
  textSerializers: n
21226
21226
  };
21227
21227
  return [...i.ranges].sort((d, c) => d.$from.pos - c.$from.pos).map(
21228
- ({ $from: d, $to: c }) => aH(r, { from: d.pos, to: c.pos }, s)
21228
+ ({ $from: d, $to: c }) => a7(r, { from: d.pos, to: c.pos }, s)
21229
21229
  ).join(a ?? `
21230
21230
 
21231
21231
  `);
@@ -21234,14 +21234,14 @@ var Je = class hH extends Uc {
21234
21234
  })
21235
21235
  ];
21236
21236
  }
21237
- }), yH = Je.create({
21237
+ }), y7 = Je.create({
21238
21238
  name: "commands",
21239
21239
  addCommands() {
21240
21240
  return {
21241
- ...J7
21241
+ ...JH
21242
21242
  };
21243
21243
  }
21244
- }), vH = Je.create({
21244
+ }), v7 = Je.create({
21245
21245
  name: "delete",
21246
21246
  onUpdate({ transaction: o, appendedTransactions: e }) {
21247
21247
  var t, r, i;
@@ -21249,11 +21249,11 @@ var Je = class hH extends Uc {
21249
21249
  var a, s, l, d;
21250
21250
  if ((d = (l = (s = (a = this.editor.options.coreExtensionOptions) == null ? void 0 : a.delete) == null ? void 0 : s.filterTransaction) == null ? void 0 : l.call(s, o)) != null ? d : o.getMeta("y-sync$"))
21251
21251
  return;
21252
- const c = oH(o.before, [
21252
+ const c = o7(o.before, [
21253
21253
  o,
21254
21254
  ...e
21255
21255
  ]);
21256
- dH(c).forEach((m) => {
21256
+ d7(c).forEach((m) => {
21257
21257
  c.mapping.mapResult(m.oldRange.from).deletedAfter && c.mapping.mapResult(m.oldRange.to).deletedBefore && c.before.nodesBetween(
21258
21258
  m.oldRange.from,
21259
21259
  m.oldRange.to,
@@ -21304,7 +21304,7 @@ var Je = class hH extends Uc {
21304
21304
  };
21305
21305
  (i = (r = (t = this.editor.options.coreExtensionOptions) == null ? void 0 : t.delete) == null ? void 0 : r.async) == null || i ? setTimeout(n, 0) : n();
21306
21306
  }
21307
- }), wH = Je.create({
21307
+ }), w7 = Je.create({
21308
21308
  name: "drop",
21309
21309
  addProseMirrorPlugins() {
21310
21310
  return [
@@ -21323,7 +21323,7 @@ var Je = class hH extends Uc {
21323
21323
  })
21324
21324
  ];
21325
21325
  }
21326
- }), SH = Je.create({
21326
+ }), S7 = Je.create({
21327
21327
  name: "editable",
21328
21328
  addProseMirrorPlugins() {
21329
21329
  return [
@@ -21335,13 +21335,13 @@ var Je = class hH extends Uc {
21335
21335
  })
21336
21336
  ];
21337
21337
  }
21338
- }), kH = new dt("focusEvents"), CH = Je.create({
21338
+ }), k7 = new dt("focusEvents"), C7 = Je.create({
21339
21339
  name: "focusEvents",
21340
21340
  addProseMirrorPlugins() {
21341
21341
  const { editor: o } = this;
21342
21342
  return [
21343
21343
  new Ge({
21344
- key: kH,
21344
+ key: k7,
21345
21345
  props: {
21346
21346
  handleDOMEvents: {
21347
21347
  focus: (e, t) => {
@@ -21359,7 +21359,7 @@ var Je = class hH extends Uc {
21359
21359
  })
21360
21360
  ];
21361
21361
  }
21362
- }), TH = Je.create({
21362
+ }), T7 = Je.create({
21363
21363
  name: "keymap",
21364
21364
  addKeyboardShortcuts() {
21365
21365
  const o = () => this.editor.commands.first(({ commands: a }) => [
@@ -21404,7 +21404,7 @@ var Je = class hH extends Uc {
21404
21404
  "Ctrl-a": () => this.editor.commands.selectTextblockStart(),
21405
21405
  "Ctrl-e": () => this.editor.commands.selectTextblockEnd()
21406
21406
  };
21407
- return bl() || eH() ? n : i;
21407
+ return bl() || e7() ? n : i;
21408
21408
  },
21409
21409
  addProseMirrorPlugins() {
21410
21410
  return [
@@ -21439,7 +21439,7 @@ var Je = class hH extends Uc {
21439
21439
  })
21440
21440
  ];
21441
21441
  }
21442
- }), PH = Je.create({
21442
+ }), P7 = Je.create({
21443
21443
  name: "paste",
21444
21444
  addProseMirrorPlugins() {
21445
21445
  return [
@@ -21457,7 +21457,7 @@ var Je = class hH extends Uc {
21457
21457
  })
21458
21458
  ];
21459
21459
  }
21460
- }), MH = Je.create({
21460
+ }), M7 = Je.create({
21461
21461
  name: "tabindex",
21462
21462
  addOptions() {
21463
21463
  return {
@@ -21477,7 +21477,7 @@ var Je = class hH extends Uc {
21477
21477
  })
21478
21478
  ];
21479
21479
  }
21480
- }), LH = Je.create({
21480
+ }), L7 = Je.create({
21481
21481
  name: "textDirection",
21482
21482
  addOptions() {
21483
21483
  return {
@@ -21765,7 +21765,7 @@ img.ProseMirror-separator {
21765
21765
  getUpdatedPosition: sj,
21766
21766
  createMappablePosition: lj
21767
21767
  }, this.setOptions(e), this.createExtensionManager(), this.createCommandManager(), this.createSchema(), this.on("beforeCreate", this.options.onBeforeCreate), this.emit("beforeCreate", { editor: this }), this.on("mount", this.options.onMount), this.on("unmount", this.options.onUnmount), this.on("contentError", this.options.onContentError), this.on("create", this.options.onCreate), this.on("update", this.options.onUpdate), this.on("selectionUpdate", this.options.onSelectionUpdate), this.on("transaction", this.options.onTransaction), this.on("focus", this.options.onFocus), this.on("blur", this.options.onBlur), this.on("destroy", this.options.onDestroy), this.on("drop", ({ event: i, slice: n, moved: a }) => this.options.onDrop(i, n, a)), this.on("paste", ({ event: i, slice: n }) => this.options.onPaste(i, n)), this.on("delete", this.options.onDelete);
21768
- const t = this.createDoc(), r = X7(t, this.options.autofocus);
21768
+ const t = this.createDoc(), r = XH(t, this.options.autofocus);
21769
21769
  this.editorState = cn.create({
21770
21770
  doc: t,
21771
21771
  schema: this.schema,
@@ -21828,7 +21828,7 @@ img.ProseMirror-separator {
21828
21828
  * Inject CSS styles.
21829
21829
  */
21830
21830
  injectCSS() {
21831
- this.options.injectCSS && typeof document < "u" && (this.css = mH(Qj, this.options.injectNonce));
21831
+ this.options.injectCSS && typeof document < "u" && (this.css = m7(Qj, this.options.injectNonce));
21832
21832
  }
21833
21833
  /**
21834
21834
  * Update editor options.
@@ -21901,7 +21901,7 @@ img.ProseMirror-separator {
21901
21901
  * @returns The new editor state
21902
21902
  */
21903
21903
  registerPlugin(e, t) {
21904
- const r = rH(t) ? t(e, [...this.state.plugins]) : [...this.state.plugins, e], i = this.state.reconfigure({ plugins: r });
21904
+ const r = r7(t) ? t(e, [...this.state.plugins]) : [...this.state.plugins, e], i = this.state.reconfigure({ plugins: r });
21905
21905
  return this.view.updateState(i), i;
21906
21906
  }
21907
21907
  /**
@@ -21931,20 +21931,20 @@ img.ProseMirror-separator {
21931
21931
  createExtensionManager() {
21932
21932
  var e, t, r, i;
21933
21933
  const a = [...this.options.enableCoreExtensions ? [
21934
- SH,
21935
- fH.configure({
21934
+ S7,
21935
+ f7.configure({
21936
21936
  blockSeparator: (t = (e = this.options.coreExtensionOptions) == null ? void 0 : e.clipboardTextSerializer) == null ? void 0 : t.blockSeparator
21937
21937
  }),
21938
- yH,
21939
- CH,
21940
- TH,
21941
- MH.configure({
21938
+ y7,
21939
+ C7,
21940
+ T7,
21941
+ M7.configure({
21942
21942
  value: (i = (r = this.options.coreExtensionOptions) == null ? void 0 : r.tabindex) == null ? void 0 : i.value
21943
21943
  }),
21944
- wH,
21945
- PH,
21946
- vH,
21947
- LH.configure({
21944
+ w7,
21945
+ P7,
21946
+ v7,
21947
+ L7.configure({
21948
21948
  direction: this.options.textDirection
21949
21949
  })
21950
21950
  ].filter((s) => typeof this.options.enableCoreExtensions == "object" ? this.options.enableCoreExtensions[s.name] !== !1 : !0) : [], ...this.options.extensions].filter((s) => ["extension", "node", "mark"].includes(s == null ? void 0 : s.type));
@@ -21997,7 +21997,7 @@ img.ProseMirror-separator {
21997
21997
  */
21998
21998
  createView(e) {
21999
21999
  const { editorProps: t, enableExtensionDispatchTransaction: r } = this.options, i = t.dispatchTransaction || this.dispatchTransaction.bind(this), n = r ? this.extensionManager.dispatchTransaction(i) : i, a = t.transformPastedHTML, s = this.extensionManager.transformPastedHTML(a);
22000
- this.editorView = new G7(e, {
22000
+ this.editorView = new GH(e, {
22001
22001
  ...t,
22002
22002
  attributes: {
22003
22003
  // add `role="textbox"` to the editor element
@@ -22092,7 +22092,7 @@ img.ProseMirror-separator {
22092
22092
  * Get attributes of the currently selected node or mark.
22093
22093
  */
22094
22094
  getAttributes(e) {
22095
- return lH(this.state, e);
22095
+ return l7(this.state, e);
22096
22096
  }
22097
22097
  isActive(e, t) {
22098
22098
  const r = typeof e == "string" ? e : null, i = typeof e == "string" ? t : e;
@@ -22120,7 +22120,7 @@ img.ProseMirror-separator {
22120
22120
  return XF(this.state.doc, {
22121
22121
  blockSeparator: t,
22122
22122
  textSerializers: {
22123
- ...sH(this.schema),
22123
+ ...s7(this.schema),
22124
22124
  ...r
22125
22125
  }
22126
22126
  });
@@ -22241,7 +22241,7 @@ function Sn(o) {
22241
22241
  undoable: o.undoable
22242
22242
  });
22243
22243
  }
22244
- var oo = class EH extends Uc {
22244
+ var oo = class E7 extends Uc {
22245
22245
  constructor() {
22246
22246
  super(...arguments), this.type = "node";
22247
22247
  }
@@ -22251,7 +22251,7 @@ var oo = class EH extends Uc {
22251
22251
  */
22252
22252
  static create(e = {}) {
22253
22253
  const t = typeof e == "function" ? e() : e;
22254
- return new EH(t);
22254
+ return new E7(t);
22255
22255
  }
22256
22256
  configure(e) {
22257
22257
  return super.configure(e);
@@ -22293,7 +22293,7 @@ function _b(o) {
22293
22293
  }
22294
22294
  }));
22295
22295
  }
22296
- var AH = class extends Xj {
22296
+ var A7 = class extends Xj {
22297
22297
  constructor(o = {}) {
22298
22298
  return super(o), this.contentComponent = null, this.appContext = null, this.reactiveState = _b(this.view.state), this.reactiveExtensionStorage = _b(this.extensionStorage), this.on("beforeTransaction", ({ nextState: e }) => {
22299
22299
  this.reactiveState.value = e, this.reactiveExtensionStorage.value = this.extensionStorage;
@@ -22417,7 +22417,7 @@ ne({
22417
22417
  var tV = (o = {}) => {
22418
22418
  const e = WR();
22419
22419
  return ho(() => {
22420
- e.value = new AH(o);
22420
+ e.value = new A7(o);
22421
22421
  }), xr(() => {
22422
22422
  var t;
22423
22423
  (t = e.value) == null || t.destroy();
@@ -22452,7 +22452,7 @@ var ml = (o, e) => {
22452
22452
  );
22453
22453
  return [o, r, t];
22454
22454
  };
22455
- function $H(o, e, t) {
22455
+ function $7(o, e, t) {
22456
22456
  for (let r = 0; ; r++) {
22457
22457
  if (r == o.childCount || r == e.childCount)
22458
22458
  return o.childCount == e.childCount ? null : t;
@@ -22469,14 +22469,14 @@ function $H(o, e, t) {
22469
22469
  return t;
22470
22470
  }
22471
22471
  if (i.content.size || n.content.size) {
22472
- let a = $H(i.content, n.content, t + 1);
22472
+ let a = $7(i.content, n.content, t + 1);
22473
22473
  if (a != null)
22474
22474
  return a;
22475
22475
  }
22476
22476
  t += i.nodeSize;
22477
22477
  }
22478
22478
  }
22479
- function _H(o, e, t, r) {
22479
+ function _7(o, e, t, r) {
22480
22480
  for (let i = o.childCount, n = e.childCount; ; ) {
22481
22481
  if (i == 0 || n == 0)
22482
22482
  return i == n ? null : { a: t, b: r };
@@ -22494,7 +22494,7 @@ function _H(o, e, t, r) {
22494
22494
  return { a: t, b: r };
22495
22495
  }
22496
22496
  if (a.content.size || s.content.size) {
22497
- let d = _H(a.content, s.content, t - 1, r - 1);
22497
+ let d = _7(a.content, s.content, t - 1, r - 1);
22498
22498
  if (d)
22499
22499
  return d;
22500
22500
  }
@@ -22663,7 +22663,7 @@ var gr = class Dt {
22663
22663
  fragment differ, or `null` if they are the same.
22664
22664
  */
22665
22665
  findDiffStart(e, t = 0) {
22666
- return $H(this, e, t);
22666
+ return $7(this, e, t);
22667
22667
  }
22668
22668
  /**
22669
22669
  Find the first position, searching from the end, at which this
@@ -22672,7 +22672,7 @@ var gr = class Dt {
22672
22672
  nodes, an object with two separate positions is returned.
22673
22673
  */
22674
22674
  findDiffEnd(e, t = this.size, r = e.size) {
22675
- return _H(this, e, t, r);
22675
+ return _7(this, e, t, r);
22676
22676
  }
22677
22677
  /**
22678
22678
  Find the index and inner offset corresponding to a given relative
@@ -22785,14 +22785,14 @@ var oV = class extends Error {
22785
22785
  @internal
22786
22786
  */
22787
22787
  insertAt(e, t) {
22788
- let r = IH(this.content, e + this.openStart, t, this.openStart + 1, this.openEnd + 1);
22788
+ let r = I7(this.content, e + this.openStart, t, this.openStart + 1, this.openEnd + 1);
22789
22789
  return r && new an(r, this.openStart, this.openEnd);
22790
22790
  }
22791
22791
  /**
22792
22792
  @internal
22793
22793
  */
22794
22794
  removeBetween(e, t) {
22795
- return new an(BH(this.content, e + this.openStart, t + this.openStart), this.openStart, this.openEnd);
22795
+ return new an(B7(this.content, e + this.openStart, t + this.openStart), this.openStart, this.openEnd);
22796
22796
  }
22797
22797
  /**
22798
22798
  Tests whether this slice is equal to another slice.
@@ -22840,7 +22840,7 @@ var oV = class extends Error {
22840
22840
  }
22841
22841
  };
22842
22842
  it.empty = new it(gr.empty, 0, 0);
22843
- function BH(o, e, t) {
22843
+ function B7(o, e, t) {
22844
22844
  let { index: r, offset: i } = o.findIndex(e), n = o.maybeChild(r), { index: a, offset: s } = o.findIndex(t);
22845
22845
  if (i == e || n.isText) {
22846
22846
  if (s != t && !o.child(a).isText)
@@ -22849,26 +22849,26 @@ function BH(o, e, t) {
22849
22849
  }
22850
22850
  if (r != a)
22851
22851
  throw new RangeError("Removing non-flat range");
22852
- return o.replaceChild(r, n.copy(BH(n.content, e - i - 1, t - i - 1)));
22852
+ return o.replaceChild(r, n.copy(B7(n.content, e - i - 1, t - i - 1)));
22853
22853
  }
22854
- function IH(o, e, t, r, i, n) {
22854
+ function I7(o, e, t, r, i, n) {
22855
22855
  let { index: a, offset: s } = o.findIndex(e), l = o.maybeChild(a);
22856
22856
  if (s == e || l.isText)
22857
22857
  return n && r <= 0 && i <= 0 && !n.canReplace(a, a, t) ? null : o.cut(0, e).append(t).append(o.cut(e));
22858
- let d = IH(l.content, e - s - 1, t, a == 0 ? r - 1 : 0, a == o.childCount - 1 ? i - 1 : 0, l);
22858
+ let d = I7(l.content, e - s - 1, t, a == 0 ? r - 1 : 0, a == o.childCount - 1 ? i - 1 : 0, l);
22859
22859
  return d && o.replaceChild(a, l.copy(d));
22860
22860
  }
22861
- var HH = 65535, DH = Math.pow(2, 16);
22861
+ var H7 = 65535, D7 = Math.pow(2, 16);
22862
22862
  function rV(o, e) {
22863
- return o + e * DH;
22863
+ return o + e * D7;
22864
22864
  }
22865
22865
  function Bb(o) {
22866
- return o & HH;
22866
+ return o & H7;
22867
22867
  }
22868
22868
  function iV(o) {
22869
- return (o - (o & HH)) / DH;
22869
+ return (o - (o & H7)) / D7;
22870
22870
  }
22871
- var RH = 1, zH = 2, Fs = 4, OH = 8, Ib = class {
22871
+ var R7 = 1, z7 = 2, Fs = 4, O7 = 8, Ib = class {
22872
22872
  /**
22873
22873
  @internal
22874
22874
  */
@@ -22881,19 +22881,19 @@ var RH = 1, zH = 2, Fs = 4, OH = 8, Ib = class {
22881
22881
  argument from the document.
22882
22882
  */
22883
22883
  get deleted() {
22884
- return (this.delInfo & OH) > 0;
22884
+ return (this.delInfo & O7) > 0;
22885
22885
  }
22886
22886
  /**
22887
22887
  Tells you whether the token before the mapped position was deleted.
22888
22888
  */
22889
22889
  get deletedBefore() {
22890
- return (this.delInfo & (RH | Fs)) > 0;
22890
+ return (this.delInfo & (R7 | Fs)) > 0;
22891
22891
  }
22892
22892
  /**
22893
22893
  True when the token after the mapped position was deleted.
22894
22894
  */
22895
22895
  get deletedAfter() {
22896
- return (this.delInfo & (zH | Fs)) > 0;
22896
+ return (this.delInfo & (z7 | Fs)) > 0;
22897
22897
  }
22898
22898
  /**
22899
22899
  Tells whether any of the steps mapped through deletes across the
@@ -22943,8 +22943,8 @@ var RH = 1, zH = 2, Fs = 4, OH = 8, Ib = class {
22943
22943
  let b = d ? e == l ? -1 : e == u ? 1 : t : t, m = l + i + (b < 0 ? 0 : c);
22944
22944
  if (r)
22945
22945
  return m;
22946
- let x = e == (t < 0 ? l : u) ? null : rV(s / 3, e - l), h = e == l ? zH : e == u ? RH : Fs;
22947
- return (t < 0 ? e != l : e != u) && (h |= OH), new Ib(m, h, x);
22946
+ let x = e == (t < 0 ? l : u) ? null : rV(s / 3, e - l), h = e == l ? z7 : e == u ? R7 : Fs;
22947
+ return (t < 0 ? e != l : e != u) && (h |= O7), new Ib(m, h, x);
22948
22948
  }
22949
22949
  i += c - d;
22950
22950
  }
@@ -23082,7 +23082,7 @@ function Wc(o, e, t) {
23082
23082
  }
23083
23083
  return gr.fromArray(r);
23084
23084
  }
23085
- var NH = class ra extends _t {
23085
+ var N7 = class ra extends _t {
23086
23086
  /**
23087
23087
  Create a mark step.
23088
23088
  */
@@ -23094,7 +23094,7 @@ var NH = class ra extends _t {
23094
23094
  return jt.fromReplace(e, this.from, this.to, n);
23095
23095
  }
23096
23096
  invert() {
23097
- return new FH(this.from, this.to, this.mark);
23097
+ return new F7(this.from, this.to, this.mark);
23098
23098
  }
23099
23099
  map(e) {
23100
23100
  let t = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1);
@@ -23120,8 +23120,8 @@ var NH = class ra extends _t {
23120
23120
  return new ra(t.from, t.to, e.markFromJSON(t.mark));
23121
23121
  }
23122
23122
  };
23123
- _t.jsonID("addMark", NH);
23124
- var FH = class ia extends _t {
23123
+ _t.jsonID("addMark", N7);
23124
+ var F7 = class ia extends _t {
23125
23125
  /**
23126
23126
  Create a mark-removing step.
23127
23127
  */
@@ -23133,7 +23133,7 @@ var FH = class ia extends _t {
23133
23133
  return jt.fromReplace(e, this.from, this.to, r);
23134
23134
  }
23135
23135
  invert() {
23136
- return new NH(this.from, this.to, this.mark);
23136
+ return new N7(this.from, this.to, this.mark);
23137
23137
  }
23138
23138
  map(e) {
23139
23139
  let t = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1);
@@ -23159,8 +23159,8 @@ var FH = class ia extends _t {
23159
23159
  return new ia(t.from, t.to, e.markFromJSON(t.mark));
23160
23160
  }
23161
23161
  };
23162
- _t.jsonID("removeMark", FH);
23163
- var jH = class na extends _t {
23162
+ _t.jsonID("removeMark", F7);
23163
+ var j7 = class na extends _t {
23164
23164
  /**
23165
23165
  Create a node mark step.
23166
23166
  */
@@ -23185,7 +23185,7 @@ var jH = class na extends _t {
23185
23185
  return new na(this.pos, this.mark);
23186
23186
  }
23187
23187
  }
23188
- return new VH(this.pos, this.mark);
23188
+ return new V7(this.pos, this.mark);
23189
23189
  }
23190
23190
  map(e) {
23191
23191
  let t = e.mapResult(this.pos, 1);
@@ -23203,8 +23203,8 @@ var jH = class na extends _t {
23203
23203
  return new na(t.pos, e.markFromJSON(t.mark));
23204
23204
  }
23205
23205
  };
23206
- _t.jsonID("addNodeMark", jH);
23207
- var VH = class Vp extends _t {
23206
+ _t.jsonID("addNodeMark", j7);
23207
+ var V7 = class Vp extends _t {
23208
23208
  /**
23209
23209
  Create a mark-removing step.
23210
23210
  */
@@ -23220,7 +23220,7 @@ var VH = class Vp extends _t {
23220
23220
  }
23221
23221
  invert(e) {
23222
23222
  let t = e.nodeAt(this.pos);
23223
- return !t || !this.mark.isInSet(t.marks) ? this : new jH(this.pos, this.mark);
23223
+ return !t || !this.mark.isInSet(t.marks) ? this : new j7(this.pos, this.mark);
23224
23224
  }
23225
23225
  map(e) {
23226
23226
  let t = e.mapResult(this.pos, 1);
@@ -23238,7 +23238,7 @@ var VH = class Vp extends _t {
23238
23238
  return new Vp(t.pos, e.markFromJSON(t.mark));
23239
23239
  }
23240
23240
  };
23241
- _t.jsonID("removeNodeMark", VH);
23241
+ _t.jsonID("removeNodeMark", V7);
23242
23242
  var Gc = class Er extends _t {
23243
23243
  /**
23244
23244
  The given `slice` should fit the 'gap' between `from` and
@@ -23292,7 +23292,7 @@ var Gc = class Er extends _t {
23292
23292
  };
23293
23293
  Gc.MAP_BIAS = 1;
23294
23294
  _t.jsonID("replace", Gc);
23295
- var qH = class js extends _t {
23295
+ var q7 = class js extends _t {
23296
23296
  /**
23297
23297
  Create a replace-around step with the given range and gap.
23298
23298
  `insert` should be the point in the slice into which the content
@@ -23349,7 +23349,7 @@ var qH = class js extends _t {
23349
23349
  return new js(t.from, t.to, t.gapFrom, t.gapTo, it.fromJSON(e, t.slice), t.insert, !!t.structure);
23350
23350
  }
23351
23351
  };
23352
- _t.jsonID("replaceAround", qH);
23352
+ _t.jsonID("replaceAround", q7);
23353
23353
  function qp(o, e, t) {
23354
23354
  let r = o.resolve(e), i = t - e, n = r.depth;
23355
23355
  for (; i > 0 && n > 0 && r.indexAfter(n) == r.node(n).childCount; )
@@ -23652,7 +23652,7 @@ var kn = class aa extends bt {
23652
23652
  return e instanceof aa && e.anchor == this.anchor && e.head == this.head;
23653
23653
  }
23654
23654
  getBookmark() {
23655
- return new UH(this.anchor, this.head);
23655
+ return new U7(this.anchor, this.head);
23656
23656
  }
23657
23657
  toJSON() {
23658
23658
  return { type: "text", anchor: this.anchor, head: this.head };
@@ -23693,12 +23693,12 @@ var kn = class aa extends bt {
23693
23693
  }
23694
23694
  };
23695
23695
  bt.jsonID("text", kn);
23696
- var UH = class WH {
23696
+ var U7 = class W7 {
23697
23697
  constructor(e, t) {
23698
23698
  this.anchor = e, this.head = t;
23699
23699
  }
23700
23700
  map(e) {
23701
- return new WH(e.map(this.anchor), e.map(this.head));
23701
+ return new W7(e.map(this.anchor), e.map(this.head));
23702
23702
  }
23703
23703
  resolve(e) {
23704
23704
  return kn.between(e.resolve(this.anchor), e.resolve(this.head));
@@ -23752,13 +23752,13 @@ var UH = class WH {
23752
23752
  };
23753
23753
  Cn.prototype.visible = !1;
23754
23754
  bt.jsonID("node", Cn);
23755
- var lV = class GH {
23755
+ var lV = class G7 {
23756
23756
  constructor(e) {
23757
23757
  this.anchor = e;
23758
23758
  }
23759
23759
  map(e) {
23760
23760
  let { deleted: t, pos: r } = e.mapResult(this.anchor);
23761
- return t ? new UH(r, r) : new GH(r);
23761
+ return t ? new U7(r, r) : new G7(r);
23762
23762
  }
23763
23763
  resolve(e) {
23764
23764
  let t = e.resolve(this.anchor), r = t.nodeAfter;
@@ -23829,7 +23829,7 @@ function Rb(o, e, t) {
23829
23829
  if (r < e)
23830
23830
  return;
23831
23831
  let i = o.steps[r];
23832
- if (!(i instanceof Gc || i instanceof qH))
23832
+ if (!(i instanceof Gc || i instanceof q7))
23833
23833
  return;
23834
23834
  let n = o.mapping.maps[r], a;
23835
23835
  n.forEach((s, l, d, c) => {
@@ -24443,7 +24443,7 @@ ${t}
24443
24443
  if (!_j(e, e.schema.nodes[this.name]))
24444
24444
  return !1;
24445
24445
  const { selection: t } = e, { $to: r } = t, i = o();
24446
- return pH(t) ? i.insertContentAt(r.pos, {
24446
+ return p7(t) ? i.insertContentAt(r.pos, {
24447
24447
  type: this.name
24448
24448
  }) : i.insertContent({ type: this.name }), i.command(({ state: n, tr: a, dispatch: s }) => {
24449
24449
  if (s) {
@@ -24544,12 +24544,12 @@ ${t}
24544
24544
  ];
24545
24545
  }
24546
24546
  });
24547
- const BV = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", IV = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", Wp = "numeric", Gp = "ascii", Kp = "alpha", fa = "asciinumeric", la = "alphanumeric", Jp = "domain", KH = "emoji", HV = "scheme", DV = "slashscheme", Jd = "whitespace";
24547
+ const BV = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", IV = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", Wp = "numeric", Gp = "ascii", Kp = "alpha", fa = "asciinumeric", la = "alphanumeric", Jp = "domain", K7 = "emoji", HV = "scheme", DV = "slashscheme", Jd = "whitespace";
24548
24548
  function RV(o, e) {
24549
24549
  return o in e || (e[o] = []), e[o];
24550
24550
  }
24551
24551
  function mi(o, e, t) {
24552
- e[Wp] && (e[fa] = !0, e[la] = !0), e[Gp] && (e[fa] = !0, e[Kp] = !0), e[fa] && (e[la] = !0), e[Kp] && (e[la] = !0), e[la] && (e[Jp] = !0), e[KH] && (e[Jp] = !0);
24552
+ e[Wp] && (e[fa] = !0, e[la] = !0), e[Gp] && (e[fa] = !0, e[Kp] = !0), e[fa] && (e[la] = !0), e[Kp] && (e[la] = !0), e[la] && (e[Jp] = !0), e[K7] && (e[Jp] = !0);
24553
24553
  for (const r in e) {
24554
24554
  const i = RV(r, t);
24555
24555
  i.indexOf(o) < 0 && i.push(o);
@@ -24685,13 +24685,13 @@ Jt.prototype = {
24685
24685
  return i.j[o] = a, a;
24686
24686
  }
24687
24687
  };
24688
- const _e = (o, e, t, r, i) => o.ta(e, t, r, i), Qe = (o, e, t, r, i) => o.tr(e, t, r, i), Ob = (o, e, t, r, i) => o.ts(e, t, r, i), Z = (o, e, t, r, i) => o.tt(e, t, r, i), ar = "WORD", Yp = "UWORD", JH = "ASCIINUMERICAL", YH = "ALPHANUMERICAL", Oa = "LOCALHOST", Qp = "TLD", Xp = "UTLD", Us = "SCHEME", dn = "SLASH_SCHEME", Kc = "NUM", Zp = "WS", Jc = "NL", ya = "OPENBRACE", va = "CLOSEBRACE", gl = "OPENBRACKET", xl = "CLOSEBRACKET", hl = "OPENPAREN", fl = "CLOSEPAREN", yl = "OPENANGLEBRACKET", vl = "CLOSEANGLEBRACKET", wl = "FULLWIDTHLEFTPAREN", Sl = "FULLWIDTHRIGHTPAREN", kl = "LEFTCORNERBRACKET", Cl = "RIGHTCORNERBRACKET", Tl = "LEFTWHITECORNERBRACKET", Pl = "RIGHTWHITECORNERBRACKET", Ml = "FULLWIDTHLESSTHAN", Ll = "FULLWIDTHGREATERTHAN", El = "AMPERSAND", Al = "APOSTROPHE", $l = "ASTERISK", $r = "AT", _l = "BACKSLASH", Bl = "BACKTICK", Il = "CARET", gi = "COLON", Yc = "COMMA", Hl = "DOLLAR", qo = "DOT", Dl = "EQUALS", Qc = "EXCLAMATION", lo = "HYPHEN", wa = "PERCENT", Rl = "PIPE", zl = "PLUS", Ol = "POUND", Sa = "QUERY", Xc = "QUOTE", QH = "FULLWIDTHMIDDLEDOT", Zc = "SEMI", Uo = "SLASH", ka = "TILDE", Nl = "UNDERSCORE", XH = "EMOJI", Fl = "SYM";
24689
- var ZH = /* @__PURE__ */ Object.freeze({
24688
+ const _e = (o, e, t, r, i) => o.ta(e, t, r, i), Qe = (o, e, t, r, i) => o.tr(e, t, r, i), Ob = (o, e, t, r, i) => o.ts(e, t, r, i), Z = (o, e, t, r, i) => o.tt(e, t, r, i), ar = "WORD", Yp = "UWORD", J7 = "ASCIINUMERICAL", Y7 = "ALPHANUMERICAL", Oa = "LOCALHOST", Qp = "TLD", Xp = "UTLD", Us = "SCHEME", dn = "SLASH_SCHEME", Kc = "NUM", Zp = "WS", Jc = "NL", ya = "OPENBRACE", va = "CLOSEBRACE", gl = "OPENBRACKET", xl = "CLOSEBRACKET", hl = "OPENPAREN", fl = "CLOSEPAREN", yl = "OPENANGLEBRACKET", vl = "CLOSEANGLEBRACKET", wl = "FULLWIDTHLEFTPAREN", Sl = "FULLWIDTHRIGHTPAREN", kl = "LEFTCORNERBRACKET", Cl = "RIGHTCORNERBRACKET", Tl = "LEFTWHITECORNERBRACKET", Pl = "RIGHTWHITECORNERBRACKET", Ml = "FULLWIDTHLESSTHAN", Ll = "FULLWIDTHGREATERTHAN", El = "AMPERSAND", Al = "APOSTROPHE", $l = "ASTERISK", $r = "AT", _l = "BACKSLASH", Bl = "BACKTICK", Il = "CARET", gi = "COLON", Yc = "COMMA", Hl = "DOLLAR", qo = "DOT", Dl = "EQUALS", Qc = "EXCLAMATION", lo = "HYPHEN", wa = "PERCENT", Rl = "PIPE", zl = "PLUS", Ol = "POUND", Sa = "QUERY", Xc = "QUOTE", Q7 = "FULLWIDTHMIDDLEDOT", Zc = "SEMI", Uo = "SLASH", ka = "TILDE", Nl = "UNDERSCORE", X7 = "EMOJI", Fl = "SYM";
24689
+ var Z7 = /* @__PURE__ */ Object.freeze({
24690
24690
  __proto__: null,
24691
- ALPHANUMERICAL: YH,
24691
+ ALPHANUMERICAL: Y7,
24692
24692
  AMPERSAND: El,
24693
24693
  APOSTROPHE: Al,
24694
- ASCIINUMERICAL: JH,
24694
+ ASCIINUMERICAL: J7,
24695
24695
  ASTERISK: $l,
24696
24696
  AT: $r,
24697
24697
  BACKSLASH: _l,
@@ -24705,13 +24705,13 @@ var ZH = /* @__PURE__ */ Object.freeze({
24705
24705
  COMMA: Yc,
24706
24706
  DOLLAR: Hl,
24707
24707
  DOT: qo,
24708
- EMOJI: XH,
24708
+ EMOJI: X7,
24709
24709
  EQUALS: Dl,
24710
24710
  EXCLAMATION: Qc,
24711
24711
  FULLWIDTHGREATERTHAN: Ll,
24712
24712
  FULLWIDTHLEFTPAREN: wl,
24713
24713
  FULLWIDTHLESSTHAN: Ml,
24714
- FULLWIDTHMIDDLEDOT: QH,
24714
+ FULLWIDTHMIDDLEDOT: Q7,
24715
24715
  FULLWIDTHRIGHTPAREN: Sl,
24716
24716
  HYPHEN: lo,
24717
24717
  LEFTCORNERBRACKET: kl,
@@ -24751,14 +24751,14 @@ function FV(o = []) {
24751
24751
  const e = {};
24752
24752
  Jt.groups = e;
24753
24753
  const t = new Jt();
24754
- hs == null && (hs = Fb(BV)), fs == null && (fs = Fb(IV)), Z(t, "'", Al), Z(t, "{", ya), Z(t, "}", va), Z(t, "[", gl), Z(t, "]", xl), Z(t, "(", hl), Z(t, ")", fl), Z(t, "<", yl), Z(t, ">", vl), Z(t, "(", wl), Z(t, ")", Sl), Z(t, "「", kl), Z(t, "」", Cl), Z(t, "『", Tl), Z(t, "』", Pl), Z(t, "<", Ml), Z(t, ">", Ll), Z(t, "&", El), Z(t, "*", $l), Z(t, "@", $r), Z(t, "`", Bl), Z(t, "^", Il), Z(t, ":", gi), Z(t, ",", Yc), Z(t, "$", Hl), Z(t, ".", qo), Z(t, "=", Dl), Z(t, "!", Qc), Z(t, "-", lo), Z(t, "%", wa), Z(t, "|", Rl), Z(t, "+", zl), Z(t, "#", Ol), Z(t, "?", Sa), Z(t, '"', Xc), Z(t, "/", Uo), Z(t, ";", Zc), Z(t, "~", ka), Z(t, "_", Nl), Z(t, "\\", _l), Z(t, "・", QH);
24754
+ hs == null && (hs = Fb(BV)), fs == null && (fs = Fb(IV)), Z(t, "'", Al), Z(t, "{", ya), Z(t, "}", va), Z(t, "[", gl), Z(t, "]", xl), Z(t, "(", hl), Z(t, ")", fl), Z(t, "<", yl), Z(t, ">", vl), Z(t, "(", wl), Z(t, ")", Sl), Z(t, "「", kl), Z(t, "」", Cl), Z(t, "『", Tl), Z(t, "』", Pl), Z(t, "<", Ml), Z(t, ">", Ll), Z(t, "&", El), Z(t, "*", $l), Z(t, "@", $r), Z(t, "`", Bl), Z(t, "^", Il), Z(t, ":", gi), Z(t, ",", Yc), Z(t, "$", Hl), Z(t, ".", qo), Z(t, "=", Dl), Z(t, "!", Qc), Z(t, "-", lo), Z(t, "%", wa), Z(t, "|", Rl), Z(t, "+", zl), Z(t, "#", Ol), Z(t, "?", Sa), Z(t, '"', Xc), Z(t, "/", Uo), Z(t, ";", Zc), Z(t, "~", ka), Z(t, "_", Nl), Z(t, "\\", _l), Z(t, "・", Q7);
24755
24755
  const r = Qe(t, ir, Kc, {
24756
24756
  [Wp]: !0
24757
24757
  });
24758
24758
  Qe(r, ir, r);
24759
- const i = Qe(r, rr, JH, {
24759
+ const i = Qe(r, rr, J7, {
24760
24760
  [fa]: !0
24761
- }), n = Qe(r, jn, YH, {
24761
+ }), n = Qe(r, jn, Y7, {
24762
24762
  [la]: !0
24763
24763
  }), a = Qe(t, rr, ar, {
24764
24764
  [Gp]: !0
@@ -24776,8 +24776,8 @@ function FV(o = []) {
24776
24776
  [Jd]: !0
24777
24777
  });
24778
24778
  Z(t, Zd, c), Z(d, Xd, l), Z(d, Zd, c), Qe(d, Qd, c), Z(c, Nb), Z(c, Xd), Qe(c, Qd, c), Z(c, Zd, c);
24779
- const u = Qe(t, Yd, XH, {
24780
- [KH]: !0
24779
+ const u = Qe(t, Yd, X7, {
24780
+ [K7]: !0
24781
24781
  });
24782
24782
  Z(u, "#"), Qe(u, Yd, u), Z(u, OV, u);
24783
24783
  const b = Z(u, NV);
@@ -24814,7 +24814,7 @@ function FV(o = []) {
24814
24814
  start: t,
24815
24815
  tokens: Object.assign({
24816
24816
  groups: e
24817
- }, ZH)
24817
+ }, Z7)
24818
24818
  };
24819
24819
  }
24820
24820
  function eD(o, e) {
@@ -25161,7 +25161,7 @@ function UV({
25161
25161
  }
25162
25162
  return Z(i, Oa, C), Z(i, Jc, qV), {
25163
25163
  start: i,
25164
- tokens: ZH
25164
+ tokens: Z7
25165
25165
  };
25166
25166
  }
25167
25167
  function WV(o, e, t) {
@@ -25250,8 +25250,8 @@ function tq(o) {
25250
25250
  );
25251
25251
  if (!i || n)
25252
25252
  return;
25253
- const { tr: a } = r, s = oH(t.doc, [...e]);
25254
- if (dH(s).forEach(({ newRange: d }) => {
25253
+ const { tr: a } = r, s = o7(t.doc, [...e]);
25254
+ if (d7(s).forEach(({ newRange: d }) => {
25255
25255
  const c = UF(
25256
25256
  r.doc,
25257
25257
  d,
@@ -25331,7 +25331,7 @@ function oq(o) {
25331
25331
  return !1;
25332
25332
  let s = !1;
25333
25333
  if (o.enableClickSelection && (s = o.editor.commands.extendMarkRange(o.type.name)), o.openOnClick) {
25334
- const l = lH(e.state, o.type.name), d = (i = a.href) != null ? i : l.href, c = (n = a.target) != null ? n : l.target;
25334
+ const l = l7(e.state, o.type.name), d = (i = a.href) != null ? i : l.href, c = (n = a.target) != null ? n : l.target;
25335
25335
  d && (window.open(d, c), s = !0);
25336
25336
  }
25337
25337
  return s;
@@ -27078,7 +27078,7 @@ function Kq() {
27078
27078
  }
27079
27079
  });
27080
27080
  }
27081
- const Jq = K7({
27081
+ const Jq = KH({
27082
27082
  ArrowLeft: Ss("horiz", -1),
27083
27083
  ArrowRight: Ss("horiz", 1),
27084
27084
  ArrowUp: Ss("vert", -1),
@@ -27840,12 +27840,12 @@ Je.create({
27840
27840
  },
27841
27841
  addProseMirrorPlugins() {
27842
27842
  const { editor: o, options: e } = this;
27843
- return o.options.injectCSS && typeof document < "u" && mH(yU, o.options.injectNonce, "selection"), [
27843
+ return o.options.injectCSS && typeof document < "u" && m7(yU, o.options.injectNonce, "selection"), [
27844
27844
  new Ge({
27845
27845
  key: new dt("selection"),
27846
27846
  props: {
27847
27847
  decorations(t) {
27848
- return t.selection.empty || o.isFocused || !o.isEditable || pH(t.selection) || o.view.dragging ? null : Ke.create(t.doc, [
27848
+ return t.selection.empty || o.isFocused || !o.isEditable || p7(t.selection) || o.view.dragging ? null : Ke.create(t.doc, [
27849
27849
  Ft.inline(t.selection.from, t.selection.to, {
27850
27850
  class: e.className
27851
27851
  })
@@ -30555,7 +30555,7 @@ const bd = function(e = 200) {
30555
30555
  const K = bm(oe, {
30556
30556
  lang: t.getCurrentLanguage,
30557
30557
  text: a.value
30558
- }), Ie = new AH({
30558
+ }), Ie = new A7({
30559
30559
  element: oe,
30560
30560
  content: a.value,
30561
30561
  extensions: [
@@ -39097,7 +39097,7 @@ const Mte = { class: "pbx-editorFieldGroup" }, Lte = { class: "pbx-editorFieldGr
39097
39097
  n.value = !1;
39098
39098
  }, x.value = function() {
39099
39099
  }, h.value = async function() {
39100
- i.value = !0, await r.clearHtmlSelection(), await r.handleFormSubmission(), await ot(500), n.value = !1, i.value = !1, t(e("All components removed"), "success");
39100
+ i.value = !0, await r.clearHtmlSelection(), await r.handleFormSubmission({ preservePageSettings: !0 }), await ot(500), n.value = !1, i.value = !1, t(e("All components removed"), "success");
39101
39101
  };
39102
39102
  };
39103
39103
  return (C, T) => (f(), w(te, null, [
@@ -39216,7 +39216,7 @@ const Mte = { class: "pbx-editorFieldGroup" }, Lte = { class: "pbx-editorFieldGr
39216
39216
  }
39217
39217
  }), Hr = function(o) {
39218
39218
  return !o || typeof o == "object" && o.constructor === Object && Object.keys(o).length === 0;
39219
- }, Yre = "3.5.57", Qre = (o) => /^[a-z][a-z0-9+.-]*:/i.test(o) || o.startsWith("//");
39219
+ }, Yre = "3.5.58", Qre = (o) => /^[a-z][a-z0-9+.-]*:/i.test(o) || o.startsWith("//");
39220
39220
  function RR(o, e) {
39221
39221
  if (!o)
39222
39222
  return console.warn("No valid pagebuilder element passed"), "";
@@ -44719,14 +44719,14 @@ class Yce {
44719
44719
  /**
44720
44720
  * Handles the form submission process, clearing local storage and the DOM.
44721
44721
  * By default, global page settings (classes / inline styles on the wrapper)
44722
- * are preserved so they survive a "remove all components" action.
44722
+ * are reset so a brand-new resource starts clean after submit.
44723
44723
  *
44724
- * Pass `{ preservePageSettings: false }` when starting a brand-new resource
44725
- * after submit, so wrapper classes/styles are reset.
44724
+ * Pass `{ preservePageSettings: true }` when you want "remove all components"
44725
+ * behavior that keeps wrapper classes/styles.
44726
44726
  * @returns {Promise<void>}
44727
44727
  */
44728
44728
  async handleFormSubmission(e) {
44729
- const t = (e == null ? void 0 : e.preservePageSettings) ?? !0, r = this.readCurrentPageSettings();
44729
+ const t = (e == null ? void 0 : e.preservePageSettings) ?? !1, r = this.readCurrentPageSettings();
44730
44730
  if (r && t ? this._lastKnownPageSettings = r : t || (this._lastKnownPageSettings = null), await this.removeCurrentComponentsFromLocalStorage(), this.deleteAllComponentsFromDOM(), this.pageBuilderStateStore.setComponents([]), !t) {
44731
44731
  const i = this.getBuilderCanvasElement();
44732
44732
  i == null || i.removeAttribute("class"), i == null || i.removeAttribute("style"), i && Bs(i, { title: "", description: "" });