@harbour-enterprises/superdoc 0.9.22 → 0.9.24

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.
Files changed (30) hide show
  1. package/dist/chunks/{index-YqE5-6V1.cjs → index-BXKGjuVW.cjs} +1 -1
  2. package/dist/chunks/{index-DHS2ANjv.cjs → index-CqRwYOdx.cjs} +1 -1
  3. package/dist/chunks/{index-XHRxRUhd.es.js → index-DjLrg1eZ.es.js} +2 -2
  4. package/dist/chunks/{index-Dd_ce0Er.es.js → index-dZKHAFXF.es.js} +1 -1
  5. package/dist/chunks/{super-editor.es-Biu3hzvL.es.js → super-editor.es-C8w4J5jx.es.js} +2373 -2333
  6. package/dist/chunks/{super-editor.es-CMTCdDpB.cjs → super-editor.es-dH2QglKu.cjs} +58 -58
  7. package/dist/chunks/{url-Cqg7fbSS.cjs → url-6Xu7gR4T.cjs} +1 -1
  8. package/dist/chunks/{url-BWFemt_V.es.js → url-BxDGAI6E.es.js} +1 -1
  9. package/dist/chunks/{xml-js-Bzw8Bo_u.es.js → xml-js-BAML2_fM.es.js} +762 -744
  10. package/dist/chunks/xml-js-zhwNEV5e.cjs +10 -0
  11. package/dist/super-editor/chunks/{converter-ClWoW5PX.js → converter-Cwp-Sia4.js} +2 -2
  12. package/dist/super-editor/chunks/{docx-zipper-B4k46BKl.js → docx-zipper-CnOgTDAX.js} +1 -1
  13. package/dist/super-editor/chunks/{editor-DZjHTvfC.js → editor-D1IioTBl.js} +455 -416
  14. package/dist/super-editor/chunks/{toolbar-CKWbkRLL.js → toolbar-CTkdGAwV.js} +2 -2
  15. package/dist/super-editor/converter.es.js +1 -1
  16. package/dist/super-editor/docx-zipper.es.js +2 -2
  17. package/dist/super-editor/editor.es.js +3 -3
  18. package/dist/super-editor/extensions/list-item/list-item.d.ts.map +1 -1
  19. package/dist/super-editor/extensions/ordered-list/ordered-list.d.ts.map +1 -1
  20. package/dist/super-editor/file-zipper.es.js +1 -1
  21. package/dist/super-editor/super-editor.es.js +8 -8
  22. package/dist/super-editor/toolbar.es.js +2 -2
  23. package/dist/super-editor.cjs +1 -1
  24. package/dist/super-editor.es.js +1 -1
  25. package/dist/superdoc.cjs +3 -3
  26. package/dist/superdoc.es.js +6 -6
  27. package/dist/superdoc.umd.js +530 -491
  28. package/dist/superdoc.umd.js.map +1 -1
  29. package/package.json +1 -1
  30. package/dist/chunks/xml-js-Zwb1wsIy.cjs +0 -10
@@ -7376,8 +7376,8 @@
7376
7376
  br$2.toByteArray = Iu$2;
7377
7377
  br$2.fromByteArray = Pu$2;
7378
7378
  var Ze$3 = [], Ve$1 = [], Fu$2 = typeof Uint8Array < "u" ? Uint8Array : Array, Br$1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
7379
- for (var bt$1 = 0, Bu$2 = Br$1.length; bt$1 < Bu$2; ++bt$1)
7380
- Ze$3[bt$1] = Br$1[bt$1], Ve$1[Br$1.charCodeAt(bt$1)] = bt$1;
7379
+ for (var bt$2 = 0, Bu$2 = Br$1.length; bt$2 < Bu$2; ++bt$2)
7380
+ Ze$3[bt$2] = Br$1[bt$2], Ve$1[Br$1.charCodeAt(bt$2)] = bt$2;
7381
7381
  Ve$1[45] = 62;
7382
7382
  Ve$1[95] = 63;
7383
7383
  function Po$2(r22) {
@@ -8730,17 +8730,17 @@
8730
8730
  Ee$1.argv = [];
8731
8731
  Ee$1.version = "";
8732
8732
  Ee$1.versions = {};
8733
- function ut$2() {
8734
- }
8735
- Ee$1.on = ut$2;
8736
- Ee$1.addListener = ut$2;
8737
- Ee$1.once = ut$2;
8738
- Ee$1.off = ut$2;
8739
- Ee$1.removeListener = ut$2;
8740
- Ee$1.removeAllListeners = ut$2;
8741
- Ee$1.emit = ut$2;
8742
- Ee$1.prependListener = ut$2;
8743
- Ee$1.prependOnceListener = ut$2;
8733
+ function ut$1() {
8734
+ }
8735
+ Ee$1.on = ut$1;
8736
+ Ee$1.addListener = ut$1;
8737
+ Ee$1.once = ut$1;
8738
+ Ee$1.off = ut$1;
8739
+ Ee$1.removeListener = ut$1;
8740
+ Ee$1.removeAllListeners = ut$1;
8741
+ Ee$1.emit = ut$1;
8742
+ Ee$1.prependListener = ut$1;
8743
+ Ee$1.prependOnceListener = ut$1;
8744
8744
  Ee$1.listeners = function(r22) {
8745
8745
  return [];
8746
8746
  };
@@ -12704,7 +12704,7 @@ Actual: ` + p3.attribValue
12704
12704
  var t = r22.toLowerCase();
12705
12705
  return t === "true" ? true : t === "false" ? false : r22;
12706
12706
  }
12707
- function $t$1(r22, e) {
12707
+ function $t$2(r22, e) {
12708
12708
  var t;
12709
12709
  if (U.compact) {
12710
12710
  if (!ue[U[r22 + "Key"]] && (vt$1(U.alwaysArray) ? U.alwaysArray.indexOf(U[r22 + "Key"]) !== -1 : U.alwaysArray) && (ue[U[r22 + "Key"]] = []), ue[U[r22 + "Key"]] && !vt$1(ue[U[r22 + "Key"]]) && (ue[U[r22 + "Key"]] = [ue[U[r22 + "Key"]]]), r22 + "Fn" in U && typeof e == "string" && (e = U[r22 + "Fn"](e, ue)), r22 === "instruction" && ("instructionFn" in U || "instructionNameFn" in U)) {
@@ -12758,7 +12758,7 @@ Actual: ` + p3.attribValue
12758
12758
  return;
12759
12759
  U.trim && (r22.body = r22.body.trim());
12760
12760
  var i3 = {};
12761
- U.instructionHasAttributes && Object.keys(e).length ? (i3[r22.name] = {}, i3[r22.name][U.attributesKey] = e) : i3[r22.name] = r22.body, $t$1("instruction", i3);
12761
+ U.instructionHasAttributes && Object.keys(e).length ? (i3[r22.name] = {}, i3[r22.name][U.attributesKey] = e) : i3[r22.name] = r22.body, $t$2("instruction", i3);
12762
12762
  }
12763
12763
  }
12764
12764
  function Xl$2(r22, e) {
@@ -12776,20 +12776,20 @@ Actual: ` + p3.attribValue
12776
12776
  t[U.parentKey] = ue, ue = t;
12777
12777
  }
12778
12778
  function Yl$1(r22) {
12779
- U.ignoreText || !r22.trim() && !U.captureSpacesBetweenElements || (U.trim && (r22 = r22.trim()), U.nativeType && (r22 = na$2(r22)), U.sanitize && (r22 = r22.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;")), $t$1("text", r22));
12779
+ U.ignoreText || !r22.trim() && !U.captureSpacesBetweenElements || (U.trim && (r22 = r22.trim()), U.nativeType && (r22 = na$2(r22)), U.sanitize && (r22 = r22.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;")), $t$2("text", r22));
12780
12780
  }
12781
12781
  function Ql$1(r22) {
12782
- U.ignoreComment || (U.trim && (r22 = r22.trim()), $t$1("comment", r22));
12782
+ U.ignoreComment || (U.trim && (r22 = r22.trim()), $t$2("comment", r22));
12783
12783
  }
12784
12784
  function Zl$1(r22) {
12785
12785
  var e = ue[U.parentKey];
12786
12786
  U.addParent || delete ue[U.parentKey], ue = e;
12787
12787
  }
12788
12788
  function ec$1(r22) {
12789
- U.ignoreCdata || (U.trim && (r22 = r22.trim()), $t$1("cdata", r22));
12789
+ U.ignoreCdata || (U.trim && (r22 = r22.trim()), $t$2("cdata", r22));
12790
12790
  }
12791
12791
  function tc$2(r22) {
12792
- U.ignoreDoctype || (r22 = r22.replace(/^ /, ""), U.trim && (r22 = r22.trim()), $t$1("doctype", r22));
12792
+ U.ignoreDoctype || (r22 = r22.replace(/^ /, ""), U.trim && (r22 = r22.trim()), $t$2("doctype", r22));
12793
12793
  }
12794
12794
  function rc$2(r22) {
12795
12795
  r22.note = r22;
@@ -13802,12 +13802,12 @@ Actual: ` + p3.attribValue
13802
13802
  } else if (t.content.size)
13803
13803
  if (!t.openStart && !t.openEnd && r22.depth == n && e.depth == n) {
13804
13804
  let o = r22.parent, a = o.content;
13805
- return ht$2(o, a.cut(0, r22.parentOffset).append(t.content).append(a.cut(e.parentOffset)));
13805
+ return ht$1(o, a.cut(0, r22.parentOffset).append(t.content).append(a.cut(e.parentOffset)));
13806
13806
  } else {
13807
13807
  let { start: o, end: a } = Sc$2(t, r22);
13808
- return ht$2(s, Ea$2(r22, o, a, e, n));
13808
+ return ht$1(s, Ea$2(r22, o, a, e, n));
13809
13809
  }
13810
- else return ht$2(s, dr$1(r22, e, n));
13810
+ else return ht$1(s, dr$1(r22, e, n));
13811
13811
  }
13812
13812
  function Da$2(r22, e) {
13813
13813
  if (!e.type.compatibleContent(r22.type))
@@ -13817,29 +13817,29 @@ Actual: ` + p3.attribValue
13817
13817
  let n = r22.node(t);
13818
13818
  return Da$2(n, e.node(t)), n;
13819
13819
  }
13820
- function pt(r22, e) {
13820
+ function pt$1(r22, e) {
13821
13821
  let t = e.length - 1;
13822
13822
  t >= 0 && r22.isText && r22.sameMarkup(e[t]) ? e[t] = r22.withText(e[t].text + r22.text) : e.push(r22);
13823
13823
  }
13824
13824
  function Ht$3(r22, e, t, n) {
13825
13825
  let i3 = (e || r22).node(t), s = 0, o = e ? e.index(t) : i3.childCount;
13826
- r22 && (s = r22.index(t), r22.depth > t ? s++ : r22.textOffset && (pt(r22.nodeAfter, n), s++));
13826
+ r22 && (s = r22.index(t), r22.depth > t ? s++ : r22.textOffset && (pt$1(r22.nodeAfter, n), s++));
13827
13827
  for (let a = s; a < o; a++)
13828
- pt(i3.child(a), n);
13829
- e && e.depth == t && e.textOffset && pt(e.nodeBefore, n);
13828
+ pt$1(i3.child(a), n);
13829
+ e && e.depth == t && e.textOffset && pt$1(e.nodeBefore, n);
13830
13830
  }
13831
- function ht$2(r22, e) {
13831
+ function ht$1(r22, e) {
13832
13832
  return r22.type.checkContent(e), r22.copy(e);
13833
13833
  }
13834
13834
  function Ea$2(r22, e, t, n, i3) {
13835
13835
  let s = r22.depth > i3 && oi$2(r22, e, i3 + 1), o = n.depth > i3 && oi$2(t, n, i3 + 1), a = [];
13836
- return Ht$3(null, r22, i3, a), s && o && e.index(i3) == t.index(i3) ? (Da$2(s, o), pt(ht$2(s, Ea$2(r22, e, t, n, i3 + 1)), a)) : (s && pt(ht$2(s, dr$1(r22, e, i3 + 1)), a), Ht$3(e, t, i3, a), o && pt(ht$2(o, dr$1(t, n, i3 + 1)), a)), Ht$3(n, null, i3, a), new Z(a);
13836
+ return Ht$3(null, r22, i3, a), s && o && e.index(i3) == t.index(i3) ? (Da$2(s, o), pt$1(ht$1(s, Ea$2(r22, e, t, n, i3 + 1)), a)) : (s && pt$1(ht$1(s, dr$1(r22, e, i3 + 1)), a), Ht$3(e, t, i3, a), o && pt$1(ht$1(o, dr$1(t, n, i3 + 1)), a)), Ht$3(n, null, i3, a), new Z(a);
13837
13837
  }
13838
13838
  function dr$1(r22, e, t) {
13839
13839
  let n = [];
13840
13840
  if (Ht$3(null, r22, t, n), r22.depth > t) {
13841
13841
  let i3 = oi$2(r22, e, t + 1);
13842
- pt(ht$2(i3, dr$1(r22, e, t + 1)), n);
13842
+ pt$1(ht$1(i3, dr$1(r22, e, t + 1)), n);
13843
13843
  }
13844
13844
  return Ht$3(e, null, t, n), new Z(n);
13845
13845
  }
@@ -13852,7 +13852,7 @@ Actual: ` + p3.attribValue
13852
13852
  end: i3.resolveNoCache(i3.content.size - r22.openEnd - t)
13853
13853
  };
13854
13854
  }
13855
- let Vt$3 = class Vt2 {
13855
+ let Vt$2 = class Vt2 {
13856
13856
  /**
13857
13857
  @internal
13858
13858
  */
@@ -14350,13 +14350,13 @@ Actual: ` + p3.attribValue
14350
14350
  [object](https://prosemirror.net/docs/ref/#model.ResolvedPos) with information about its context.
14351
14351
  */
14352
14352
  resolve(e) {
14353
- return Vt$3.resolveCached(this, e);
14353
+ return Vt$2.resolveCached(this, e);
14354
14354
  }
14355
14355
  /**
14356
14356
  @internal
14357
14357
  */
14358
14358
  resolveNoCache(e) {
14359
- return Vt$3.resolve(this, e);
14359
+ return Vt$2.resolve(this, e);
14360
14360
  }
14361
14361
  /**
14362
14362
  Test whether a given mark or mark type occurs in this document
@@ -16303,7 +16303,7 @@ Actual: ` + p3.attribValue
16303
16303
  }
16304
16304
  return Z.fromArray(n);
16305
16305
  }
16306
- let ct$1 = class ct2 extends Pe$1 {
16306
+ let ct$2 = class ct2 extends Pe$1 {
16307
16307
  /**
16308
16308
  Create a mark step.
16309
16309
  */
@@ -16341,7 +16341,7 @@ Actual: ` + p3.attribValue
16341
16341
  return new ct2(t.from, t.to, e.markFromJSON(t.mark));
16342
16342
  }
16343
16343
  };
16344
- Pe$1.jsonID("addMark", ct$1);
16344
+ Pe$1.jsonID("addMark", ct$2);
16345
16345
  let et$2 = class et2 extends Pe$1 {
16346
16346
  /**
16347
16347
  Create a mark-removing step.
@@ -16354,7 +16354,7 @@ Actual: ` + p3.attribValue
16354
16354
  return Ce$1.fromReplace(e, this.from, this.to, n);
16355
16355
  }
16356
16356
  invert() {
16357
- return new ct$1(this.from, this.to, this.mark);
16357
+ return new ct$2(this.from, this.to, this.mark);
16358
16358
  }
16359
16359
  map(e) {
16360
16360
  let t = e.mapResult(this.from, 1), n = e.mapResult(this.to, -1);
@@ -16406,7 +16406,7 @@ Actual: ` + p3.attribValue
16406
16406
  return new ft2(this.pos, this.mark);
16407
16407
  }
16408
16408
  }
16409
- return new Tt$2(this.pos, this.mark);
16409
+ return new Tt$1(this.pos, this.mark);
16410
16410
  }
16411
16411
  map(e) {
16412
16412
  let t = e.mapResult(this.pos, 1);
@@ -16425,7 +16425,7 @@ Actual: ` + p3.attribValue
16425
16425
  }
16426
16426
  };
16427
16427
  Pe$1.jsonID("addNodeMark", ft$1);
16428
- let Tt$2 = class Tt2 extends Pe$1 {
16428
+ let Tt$1 = class Tt2 extends Pe$1 {
16429
16429
  /**
16430
16430
  Create a mark-removing step.
16431
16431
  */
@@ -16459,7 +16459,7 @@ Actual: ` + p3.attribValue
16459
16459
  return new Tt2(t.pos, e.markFromJSON(t.mark));
16460
16460
  }
16461
16461
  };
16462
- Pe$1.jsonID("removeNodeMark", Tt$2);
16462
+ Pe$1.jsonID("removeNodeMark", Tt$1);
16463
16463
  let Ie$3 = class Ie2 extends Pe$1 {
16464
16464
  /**
16465
16465
  The given `slice` should fit the 'gap' between `from` and
@@ -16512,7 +16512,7 @@ Actual: ` + p3.attribValue
16512
16512
  }
16513
16513
  };
16514
16514
  Pe$1.jsonID("replace", Ie$3);
16515
- let Je$3 = class Je2 extends Pe$1 {
16515
+ let Je$2 = class Je2 extends Pe$1 {
16516
16516
  /**
16517
16517
  Create a replace-around step with the given range and gap.
16518
16518
  `insert` should be the point in the slice into which the content
@@ -16569,7 +16569,7 @@ Actual: ` + p3.attribValue
16569
16569
  return new Je2(t.from, t.to, t.gapFrom, t.gapTo, oe$1.fromJSON(e, t.slice), t.insert, !!t.structure);
16570
16570
  }
16571
16571
  };
16572
- Pe$1.jsonID("replaceAround", Je$3);
16572
+ Pe$1.jsonID("replaceAround", Je$2);
16573
16573
  function li$2(r22, e, t) {
16574
16574
  let n = r22.resolve(e), i3 = t - e, s = n.depth;
16575
16575
  for (; i3 > 0 && s > 0 && n.indexAfter(s) == n.node(s).childCount; )
@@ -16594,7 +16594,7 @@ Actual: ` + p3.attribValue
16594
16594
  let g = Math.max(f3, e), S = Math.min(f3 + u.nodeSize, t), T3 = n.addToSet(h3);
16595
16595
  for (let A = 0; A < h3.length; A++)
16596
16596
  h3[A].isInSet(T3) || (o && o.to == g && o.mark.eq(h3[A]) ? o.to = S : i3.push(o = new et$2(g, S, h3[A])));
16597
- a && a.to == g ? a.to = S : s.push(a = new ct$1(g, S, n));
16597
+ a && a.to == g ? a.to = S : s.push(a = new ct$2(g, S, n));
16598
16598
  }
16599
16599
  }), i3.forEach((u) => r22.step(u)), s.forEach((u) => r22.step(u));
16600
16600
  }
@@ -16669,7 +16669,7 @@ Actual: ` + p3.attribValue
16669
16669
  let g = Z.empty, S = 0;
16670
16670
  for (let T3 = s, A = false; T3 > t; T3--)
16671
16671
  A || i3.after(T3 + 1) < i3.end(T3) ? (A = true, g = Z.from(i3.node(T3).copy(g)), S++) : f3++;
16672
- r22.step(new Je$3(u, f3, o, a, new oe$1(c3.append(g), h3, S), c3.size - h3, true));
16672
+ r22.step(new Je$2(u, f3, o, a, new oe$1(c3.append(g), h3, S), c3.size - h3, true));
16673
16673
  }
16674
16674
  function ep$2(r22, e, t = null, n = r22) {
16675
16675
  let i3 = tf$2(r22, e), s = i3 && rf$2(n, e);
@@ -16705,7 +16705,7 @@ Actual: ` + p3.attribValue
16705
16705
  n = Z.from(t[o].type.create(t[o].attrs, n));
16706
16706
  }
16707
16707
  let i3 = e.start, s = e.end;
16708
- r22.step(new Je$3(i3, s, i3, s, new oe$1(n, 0, 0), t.length, true));
16708
+ r22.step(new Je$2(i3, s, i3, s, new oe$1(n, 0, 0), t.length, true));
16709
16709
  }
16710
16710
  function sf$1(r22, e, t, n, i3) {
16711
16711
  if (!n.isTextblock)
@@ -16721,7 +16721,7 @@ Actual: ` + p3.attribValue
16721
16721
  }
16722
16722
  f3 === false && Ua$2(r22, o, a, s), Ci$2(r22, r22.mapping.slice(s).map(a, 1), n, void 0, f3 === null);
16723
16723
  let c3 = r22.mapping.slice(s), h3 = c3.map(a, 1), g = c3.map(a + o.nodeSize, 1);
16724
- return r22.step(new Je$3(h3, g, h3 + 1, g - 1, new oe$1(Z.from(n.create(u, null, o.marks)), 0, 0), 1, true)), f3 === true && Ma$2(r22, o, a, s), false;
16724
+ return r22.step(new Je$2(h3, g, h3 + 1, g - 1, new oe$1(Z.from(n.create(u, null, o.marks)), 0, 0), 1, true)), f3 === true && Ma$2(r22, o, a, s), false;
16725
16725
  }
16726
16726
  });
16727
16727
  }
@@ -16759,7 +16759,7 @@ Actual: ` + p3.attribValue
16759
16759
  return r22.replaceWith(e, e + s.nodeSize, o);
16760
16760
  if (!t.validContent(s.content))
16761
16761
  throw new RangeError("Invalid content for node type " + t.name);
16762
- r22.step(new Je$3(e, e + s.nodeSize, e + 1, e + s.nodeSize - 1, new oe$1(Z.from(o), 0, 0), 1, true));
16762
+ r22.step(new Je$2(e, e + s.nodeSize, e + 1, e + s.nodeSize - 1, new oe$1(Z.from(o), 0, 0), 1, true));
16763
16763
  }
16764
16764
  function tp$2(r22, e, t = 1, n) {
16765
16765
  let i3 = r22.resolve(e), s = i3.depth - t, o = n && n[n.length - 1] || i3.parent;
@@ -16914,7 +16914,7 @@ Actual: ` + p3.attribValue
16914
16914
  for (; o && a && s.childCount == 1; )
16915
16915
  s = s.firstChild.content, o--, a--;
16916
16916
  let u = new oe$1(s, o, a);
16917
- return e > -1 ? new Je$3(n.pos, e, this.$to.pos, this.$to.end(), u, t) : u.size || n.pos != this.$to.pos ? new Ie$3(n.pos, i3.pos, u) : null;
16917
+ return e > -1 ? new Je$2(n.pos, e, this.$to.pos, this.$to.end(), u, t) : u.size || n.pos != this.$to.pos ? new Ie$3(n.pos, i3.pos, u) : null;
16918
16918
  }
16919
16919
  // Find a position on the start spine of `this.unplaced` that has
16920
16920
  // content that can be moved somewhere on the frontier. Returns two
@@ -17419,7 +17419,7 @@ Actual: ` + p3.attribValue
17419
17419
  if (t = t.isInSet(n.marks), !t)
17420
17420
  return this;
17421
17421
  }
17422
- return this.step(new Tt$2(e, t)), this;
17422
+ return this.step(new Tt$1(e, t)), this;
17423
17423
  }
17424
17424
  /**
17425
17425
  Split the node at the given position, and optionally, if `depth` is
@@ -17551,11 +17551,11 @@ Actual: ` + p3.attribValue
17551
17551
  found.
17552
17552
  */
17553
17553
  static findFrom(e, t, n = false) {
17554
- let i3 = e.parent.inlineContent ? new tt$2(e) : xt$1(e.node(0), e.parent, e.pos, e.index(), t, n);
17554
+ let i3 = e.parent.inlineContent ? new tt$2(e) : xt$2(e.node(0), e.parent, e.pos, e.index(), t, n);
17555
17555
  if (i3)
17556
17556
  return i3;
17557
17557
  for (let s = e.depth - 1; s >= 0; s--) {
17558
- let o = t < 0 ? xt$1(e.node(0), e.node(s), e.before(s + 1), e.index(s), t, n) : xt$1(e.node(0), e.node(s), e.after(s + 1), e.index(s) + 1, t, n);
17558
+ let o = t < 0 ? xt$2(e.node(0), e.node(s), e.before(s + 1), e.index(s), t, n) : xt$2(e.node(0), e.node(s), e.after(s + 1), e.index(s) + 1, t, n);
17559
17559
  if (o)
17560
17560
  return o;
17561
17561
  }
@@ -17576,14 +17576,14 @@ Actual: ` + p3.attribValue
17576
17576
  exists.
17577
17577
  */
17578
17578
  static atStart(e) {
17579
- return xt$1(e, e, 0, 0, 1) || new at$3(e);
17579
+ return xt$2(e, e, 0, 0, 1) || new at$3(e);
17580
17580
  }
17581
17581
  /**
17582
17582
  Find the cursor or leaf node selection closest to the end of the
17583
17583
  given document.
17584
17584
  */
17585
17585
  static atEnd(e) {
17586
- return xt$1(e, e, e.content.size, e.childCount, -1) || new at$3(e);
17586
+ return xt$2(e, e, e.content.size, e.childCount, -1) || new at$3(e);
17587
17587
  }
17588
17588
  /**
17589
17589
  Deserialize the JSON representation of a selection. Must be
@@ -17822,7 +17822,7 @@ Actual: ` + p3.attribValue
17822
17822
  return new at$3(r22);
17823
17823
  }
17824
17824
  };
17825
- function xt$1(r22, e, t, n, i3, s = false) {
17825
+ function xt$2(r22, e, t, n, i3, s = false) {
17826
17826
  if (e.inlineContent)
17827
17827
  return tt$2.create(r22, t);
17828
17828
  for (let o = n - (i3 > 0 ? 0 : 1); i3 > 0 ? o < e.childCount : o >= 0; o += i3) {
@@ -17831,7 +17831,7 @@ Actual: ` + p3.attribValue
17831
17831
  if (!s && Ge$1.isSelectable(a))
17832
17832
  return Ge$1.create(r22, t - (i3 < 0 ? a.nodeSize : 0));
17833
17833
  } else {
17834
- let u = xt$1(r22, a, t + i3, i3 < 0 ? a.childCount : 0, i3, s);
17834
+ let u = xt$2(r22, a, t + i3, i3 < 0 ? a.childCount : 0, i3, s);
17835
17835
  if (u)
17836
17836
  return u;
17837
17837
  }
@@ -17844,7 +17844,7 @@ Actual: ` + p3.attribValue
17844
17844
  if (n < e)
17845
17845
  return;
17846
17846
  let i3 = r22.steps[n];
17847
- if (!(i3 instanceof Ie$3 || i3 instanceof Je$3))
17847
+ if (!(i3 instanceof Ie$3 || i3 instanceof Je$2))
17848
17848
  return;
17849
17849
  let s = r22.mapping.maps[n], o;
17850
17850
  s.forEach((a, u, f3, c3) => {
@@ -18289,21 +18289,21 @@ Actual: ` + p3.attribValue
18289
18289
  document.removeEventListener("click", r22.__clickOutsideHandler), delete r22.__clickOutsideHandler;
18290
18290
  }
18291
18291
  };
18292
- function wt$2(r22) {
18292
+ function wt$1(r22) {
18293
18293
  if (r22 != null)
18294
18294
  return typeof r22 == "string" && (r22 = parseFloat(r22)), Math.round(r22 * 1440);
18295
18295
  }
18296
- function qe$1(r22) {
18296
+ function qe$2(r22) {
18297
18297
  if (r22 != null)
18298
18298
  return typeof r22 == "string" && (r22 = parseInt(r22, 10)), Math.round(r22 / 1440 * 100) / 100;
18299
18299
  }
18300
18300
  function xe$1(r22) {
18301
18301
  if (r22 != null)
18302
- return r22 = qe$1(r22), Math.round(r22 * 96);
18302
+ return r22 = qe$2(r22), Math.round(r22 * 96);
18303
18303
  }
18304
18304
  function Fe$2(r22) {
18305
18305
  if (r22 != null)
18306
- return r22 = r22 / 96, wt$2(r22);
18306
+ return r22 = r22 / 96, wt$1(r22);
18307
18307
  }
18308
18308
  function Ti$2(r22) {
18309
18309
  if (r22 != null)
@@ -21010,7 +21010,7 @@ Actual: ` + p3.attribValue
21010
21010
  if (r22.converter) {
21011
21011
  const n = r22.converter.pageStyles.pageMargins, i3 = e.elements.find((o) => o.name === "w:pgMar"), { attributes: s } = i3;
21012
21012
  Object.entries(n).forEach(([o, a]) => {
21013
- const u = wt$2(a);
21013
+ const u = wt$1(a);
21014
21014
  s[`w:${o}`] = u;
21015
21015
  }), i3.attributes = s;
21016
21016
  }
@@ -21047,7 +21047,7 @@ Actual: ` + p3.attribValue
21047
21047
  }
21048
21048
  if (s) {
21049
21049
  const { left: h3, right: g, firstLine: S, hanging: T3 } = s, A = {};
21050
- (h3 || h3 === 0) && (A["w:left"] = Fe$2(h3)), (g || g === 0) && (A["w:right"] = Fe$2(g)), (S || S === 0) && (A["w:firstLine"] = Fe$2(S)), (T3 || T3 === 0) && (A["w:hanging"] = Fe$2(T3)), a && !A["w:left"] && (A["w:left"] = wt$2(a));
21050
+ (h3 || h3 === 0) && (A["w:left"] = Fe$2(h3)), (g || g === 0) && (A["w:right"] = Fe$2(g)), (S || S === 0) && (A["w:firstLine"] = Fe$2(S)), (T3 || T3 === 0) && (A["w:hanging"] = Fe$2(T3)), a && !A["w:left"] && (A["w:left"] = wt$1(a));
21051
21051
  const B = {
21052
21052
  name: "w:ind",
21053
21053
  attributes: A
@@ -21057,7 +21057,7 @@ Actual: ` + p3.attribValue
21057
21057
  const h3 = {
21058
21058
  name: "w:ind",
21059
21059
  attributes: {
21060
- "w:left": wt$2(a)
21060
+ "w:left": wt$1(a)
21061
21061
  }
21062
21062
  };
21063
21063
  t.push(h3);
@@ -21446,7 +21446,7 @@ Actual: ` + p3.attribValue
21446
21446
  return e?.forEach((n) => {
21447
21447
  t.push({
21448
21448
  name: "w:gridCol",
21449
- attributes: { "w:w": wt$2(n) }
21449
+ attributes: { "w:w": wt$1(n) }
21450
21450
  });
21451
21451
  }), {
21452
21452
  name: "w:tblGrid",
@@ -21489,7 +21489,7 @@ Actual: ` + p3.attribValue
21489
21489
  function gd$2(r22) {
21490
21490
  const e = [], { attrs: t } = r22, { colwidth: n = [], cellWidthType: i3 = "dxa", background: s = {}, colspan: o, rowspan: a, widthUnit: u } = t, f3 = n.reduce((A, B) => A + B, 0), c3 = {
21491
21491
  name: "w:tcW",
21492
- attributes: { "w:w": u === "px" ? Fe$2(f3) : wt$2(f3), "w:type": i3 }
21492
+ attributes: { "w:w": u === "px" ? Fe$2(f3) : wt$1(f3), "w:type": i3 }
21493
21493
  };
21494
21494
  if (e.push(c3), o) {
21495
21495
  const A = {
@@ -21611,7 +21611,7 @@ Actual: ` + p3.attribValue
21611
21611
  t.attributes["w:val"] = n.textAlign;
21612
21612
  break;
21613
21613
  case "textIndent":
21614
- t.attributes["w:firstline"] = wt$2(n.textIndent);
21614
+ t.attributes["w:firstline"] = wt$1(n.textIndent);
21615
21615
  break;
21616
21616
  case "lineHeight":
21617
21617
  t.attributes["w:line"] = $a$2(n.lineHeight);
@@ -22324,7 +22324,7 @@ Actual: ` + p3.attribValue
22324
22324
  }
22325
22325
  function zd$2(r22) {
22326
22326
  let e = r22["w:left"];
22327
- return e ? `${qe$1(e)}in` : null;
22327
+ return e ? `${qe$2(e)}in` : null;
22328
22328
  }
22329
22329
  function Gd$2(r22) {
22330
22330
  let e = r22["w:line"];
@@ -22811,7 +22811,7 @@ Actual: ` + p3.attribValue
22811
22811
  }, { indent: i3 = {} } = hu$2(e, t), a = r22.elements?.find((S) => S.name === "w:pPr")?.elements?.find((S) => S.name === "w:ind")?.attributes || {}, u = a?.["w:left"] || i3?.["w:left"], f3 = a?.["w:right"] || i3?.["w:right"], c3 = a?.["w:firstLine"] || i3?.["w:firstLine"], h3 = a?.["w:hanging"] || i3?.["w:hanging"];
22812
22812
  u && (n.left = xe$1(u)), f3 && (n.right = xe$1(f3)), c3 && (n.firstLine = xe$1(c3)), h3 && (n.hanging = xe$1(h3));
22813
22813
  const g = u - parseInt(h3 || 0) || 0;
22814
- return g && (n.textIndent = qe$1(g)), n;
22814
+ return g && (n.textIndent = qe$2(g)), n;
22815
22815
  }, pu$2 = (r22, e, t = "", n = []) => {
22816
22816
  const i3 = {
22817
22817
  lineSpaceAfter: 0,
@@ -23322,31 +23322,31 @@ Actual: ` + p3.attribValue
23322
23322
  switch (u) {
23323
23323
  case "w:pgSz":
23324
23324
  s.pageSize = {
23325
- width: qe$1(f3["w:w"]),
23326
- height: qe$1(f3["w:h"])
23325
+ width: qe$2(f3["w:w"]),
23326
+ height: qe$2(f3["w:h"])
23327
23327
  };
23328
23328
  break;
23329
23329
  case "w:pgMar":
23330
23330
  s.pageMargins = {
23331
- top: qe$1(f3["w:top"]),
23332
- right: qe$1(f3["w:right"]),
23333
- bottom: qe$1(f3["w:bottom"]),
23334
- left: qe$1(f3["w:left"]),
23335
- header: qe$1(f3["w:header"]),
23336
- footer: qe$1(f3["w:footer"]),
23337
- gutter: qe$1(f3["w:gutter"])
23331
+ top: qe$2(f3["w:top"]),
23332
+ right: qe$2(f3["w:right"]),
23333
+ bottom: qe$2(f3["w:bottom"]),
23334
+ left: qe$2(f3["w:left"]),
23335
+ header: qe$2(f3["w:header"]),
23336
+ footer: qe$2(f3["w:footer"]),
23337
+ gutter: qe$2(f3["w:gutter"])
23338
23338
  };
23339
23339
  break;
23340
23340
  case "w:cols":
23341
23341
  s.columns = {
23342
- space: qe$1(f3["w:space"]),
23342
+ space: qe$2(f3["w:space"]),
23343
23343
  num: f3["w:num"],
23344
23344
  equalWidth: f3["w:equalWidth"]
23345
23345
  };
23346
23346
  break;
23347
23347
  case "w:docGrid":
23348
23348
  s.docGrid = {
23349
- linePitch: qe$1(f3["w:linePitch"]),
23349
+ linePitch: qe$2(f3["w:linePitch"]),
23350
23350
  type: f3["w:type"]
23351
23351
  };
23352
23352
  break;
@@ -23452,7 +23452,7 @@ Actual: ` + p3.attribValue
23452
23452
  return;
23453
23453
  }
23454
23454
  }
23455
- static updateDocumentVersion(e = this.convertedXml, t = "0.9.22") {
23455
+ static updateDocumentVersion(e = this.convertedXml, t = "0.9.24") {
23456
23456
  const n = "docProps/custom.xml";
23457
23457
  e[n] || (e[n] = Au$2());
23458
23458
  const i3 = e["docProps/custom.xml"];
@@ -23677,7 +23677,7 @@ Actual: ` + p3.attribValue
23677
23677
  function Au$2() {
23678
23678
  return Nf$1;
23679
23679
  }
23680
- function Du$2(r22 = 2, e = "0.9.22") {
23680
+ function Du$2(r22 = 2, e = "0.9.24") {
23681
23681
  return {
23682
23682
  type: "element",
23683
23683
  name: "property",
@@ -26148,7 +26148,7 @@ Actual: ` + p3.attribValue
26148
26148
  };
26149
26149
  var ff$1 = (t, e, n) => e in t ? uf$1(t, e, { enumerable: true, configurable: true, writable: true, value: n }) : t[e] = n;
26150
26150
  var P = (t, e, n) => ff$1(t, typeof e != "symbol" ? e + "" : e, n), Ho$1 = (t, e, n) => e.has(t) || Gs("Cannot " + n);
26151
- var Ze$2 = (t, e, n) => (Ho$1(t, e, "read from private field"), n ? n.call(t) : e.get(t)), ut$1 = (t, e, n) => e.has(t) ? Gs("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), jo$1 = (t, e, n, r) => (Ho$1(t, e, "write to private field"), e.set(t, n), n), I$1 = (t, e, n) => (Ho$1(t, e, "access private method"), n);
26151
+ var Qe$2 = (t, e, n) => (Ho$1(t, e, "read from private field"), n ? n.call(t) : e.get(t)), ft = (t, e, n) => e.has(t) ? Gs("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), jo$1 = (t, e, n, r) => (Ho$1(t, e, "write to private field"), e.set(t, n), n), I$1 = (t, e, n) => (Ho$1(t, e, "access private method"), n);
26152
26152
  function No$1(t) {
26153
26153
  const { from: e, to: n, empty: r } = t.selection, o = [];
26154
26154
  return r ? (t.storedMarks && o.push(...t.storedMarks), o.push(...t.selection.$head.marks())) : t.doc.nodesBetween(e, n, (i3) => {
@@ -26307,7 +26307,7 @@ Actual: ` + p3.attribValue
26307
26307
  }, e;
26308
26308
  }(fe$2);
26309
26309
  const Rf$1 = 500;
26310
- let Je$2 = class Je2 {
26310
+ let Ye$2 = class Ye2 {
26311
26311
  constructor(e, n) {
26312
26312
  this.items = e, this.eventCount = n;
26313
26313
  }
@@ -26331,24 +26331,24 @@ Actual: ` + p3.attribValue
26331
26331
  return;
26332
26332
  }
26333
26333
  if (o) {
26334
- d.push(new et$1(u.map));
26334
+ d.push(new tt$1(u.map));
26335
26335
  let p3 = u.step.map(o.slice(i3)), h3;
26336
- p3 && s.maybeStep(p3).doc && (h3 = s.mapping.maps[s.mapping.maps.length - 1], c3.push(new et$1(h3, void 0, void 0, c3.length + d.length))), i3--, h3 && o.appendMap(h3, i3);
26336
+ p3 && s.maybeStep(p3).doc && (h3 = s.mapping.maps[s.mapping.maps.length - 1], c3.push(new tt$1(h3, void 0, void 0, c3.length + d.length))), i3--, h3 && o.appendMap(h3, i3);
26337
26337
  } else
26338
26338
  s.maybeStep(u.step);
26339
26339
  if (u.selection)
26340
- return a = o ? u.selection.map(o.slice(i3)) : u.selection, l = new Je2(this.items.slice(0, r).append(d.reverse().concat(c3)), this.eventCount - 1), false;
26340
+ return a = o ? u.selection.map(o.slice(i3)) : u.selection, l = new Ye2(this.items.slice(0, r).append(d.reverse().concat(c3)), this.eventCount - 1), false;
26341
26341
  }, this.items.length, 0), { remaining: l, transform: s, selection: a };
26342
26342
  }
26343
26343
  // Create a new branch with the given transform added.
26344
26344
  addTransform(e, n, r, o) {
26345
26345
  let i3 = [], s = this.eventCount, a = this.items, l = !o && a.length ? a.get(a.length - 1) : null;
26346
26346
  for (let d = 0; d < e.steps.length; d++) {
26347
- let u = e.steps[d].invert(e.docs[d]), f3 = new et$1(e.mapping.maps[d], u, n), p3;
26347
+ let u = e.steps[d].invert(e.docs[d]), f3 = new tt$1(e.mapping.maps[d], u, n), p3;
26348
26348
  (p3 = l && l.merge(f3)) && (f3 = p3, d ? i3.pop() : a = a.slice(0, a.length - 1)), i3.push(f3), n && (s++, n = void 0), o || (l = f3);
26349
26349
  }
26350
26350
  let c3 = s - r.depth;
26351
- return c3 > Ff$1 && (a = Lf$1(a, c3), s -= c3), new Je2(a.append(i3), s);
26351
+ return c3 > Ff$1 && (a = Lf$1(a, c3), s -= c3), new Ye2(a.append(i3), s);
26352
26352
  }
26353
26353
  remapping(e, n) {
26354
26354
  let r = new gr$2();
@@ -26358,7 +26358,7 @@ Actual: ` + p3.attribValue
26358
26358
  }, e, n), r;
26359
26359
  }
26360
26360
  addMaps(e) {
26361
- return this.eventCount == 0 ? this : new Je2(this.items.append(e.map((n) => new et$1(n))), this.eventCount);
26361
+ return this.eventCount == 0 ? this : new Ye2(this.items.append(e.map((n) => new tt$1(n))), this.eventCount);
26362
26362
  }
26363
26363
  // When the collab module receives remote changes, the history has
26364
26364
  // to know about those, so that it can adjust the steps that were
@@ -26380,14 +26380,14 @@ Actual: ` + p3.attribValue
26380
26380
  let h3 = i3.maps[p3];
26381
26381
  if (f3.step) {
26382
26382
  let m = e.steps[p3].invert(e.docs[p3]), g = f3.selection && f3.selection.map(i3.slice(l + 1, p3));
26383
- g && a++, r.push(new et$1(h3, m, g));
26383
+ g && a++, r.push(new tt$1(h3, m, g));
26384
26384
  } else
26385
- r.push(new et$1(h3));
26385
+ r.push(new tt$1(h3));
26386
26386
  }, o);
26387
26387
  let c3 = [];
26388
26388
  for (let f3 = n; f3 < s; f3++)
26389
- c3.push(new et$1(i3.maps[f3]));
26390
- let d = this.items.slice(0, o).append(c3).append(r), u = new Je2(d, a);
26389
+ c3.push(new tt$1(i3.maps[f3]));
26390
+ let d = this.items.slice(0, o).append(c3).append(r), u = new Ye2(d, a);
26391
26391
  return u.emptyItemCount() > Rf$1 && (u = u.compress(this.items.length - r.length)), u;
26392
26392
  }
26393
26393
  emptyItemCount() {
@@ -26412,14 +26412,14 @@ Actual: ` + p3.attribValue
26412
26412
  if (r--, c3 && n.appendMap(c3, r), l) {
26413
26413
  let d = s.selection && s.selection.map(n.slice(r));
26414
26414
  d && i3++;
26415
- let u = new et$1(c3.invert(), l, d), f3, p3 = o.length - 1;
26415
+ let u = new tt$1(c3.invert(), l, d), f3, p3 = o.length - 1;
26416
26416
  (f3 = o.length && o[p3].merge(u)) ? o[p3] = f3 : o.push(u);
26417
26417
  }
26418
26418
  } else s.map && r--;
26419
- }, this.items.length, 0), new Je2(fe$2.from(o.reverse()), i3);
26419
+ }, this.items.length, 0), new Ye2(fe$2.from(o.reverse()), i3);
26420
26420
  }
26421
26421
  };
26422
- Je$2.empty = new Je$2(fe$2.empty, 0);
26422
+ Ye$2.empty = new Ye$2(fe$2.empty, 0);
26423
26423
  function Lf$1(t, e) {
26424
26424
  let n;
26425
26425
  return t.forEach((r, o) => {
@@ -26427,7 +26427,7 @@ Actual: ` + p3.attribValue
26427
26427
  return n = o, false;
26428
26428
  }), t.slice(n);
26429
26429
  }
26430
- let et$1 = class et2 {
26430
+ let tt$1 = class tt2 {
26431
26431
  constructor(e, n, r, o) {
26432
26432
  this.map = e, this.step = n, this.selection = r, this.mirrorOffset = o;
26433
26433
  }
@@ -26435,30 +26435,30 @@ Actual: ` + p3.attribValue
26435
26435
  if (this.step && e.step && !e.selection) {
26436
26436
  let n = e.step.merge(this.step);
26437
26437
  if (n)
26438
- return new et2(n.getMap().invert(), n, this.selection);
26438
+ return new tt2(n.getMap().invert(), n, this.selection);
26439
26439
  }
26440
26440
  }
26441
26441
  };
26442
- let Dt$1 = class Dt {
26442
+ let Nt$2 = class Nt {
26443
26443
  constructor(e, n, r, o, i3) {
26444
26444
  this.done = e, this.undone = n, this.prevRanges = r, this.prevTime = o, this.prevComposition = i3;
26445
26445
  }
26446
26446
  };
26447
26447
  const Ff$1 = 20;
26448
26448
  function Bf$1(t, e, n, r) {
26449
- let o = n.getMeta(wt$1), i3;
26449
+ let o = n.getMeta(vt), i3;
26450
26450
  if (o)
26451
26451
  return o.historyState;
26452
- n.getMeta($f$1) && (t = new Dt$1(t.done, t.undone, null, 0, -1));
26452
+ n.getMeta($f$1) && (t = new Nt$2(t.done, t.undone, null, 0, -1));
26453
26453
  let s = n.getMeta("appendedTransaction");
26454
26454
  if (n.steps.length == 0)
26455
26455
  return t;
26456
- if (s && s.getMeta(wt$1))
26457
- return s.getMeta(wt$1).redo ? new Dt$1(t.done.addTransform(n, void 0, r, ro$1(e)), t.undone, ra$1(n.mapping.maps), t.prevTime, t.prevComposition) : new Dt$1(t.done, t.undone.addTransform(n, void 0, r, ro$1(e)), null, t.prevTime, t.prevComposition);
26456
+ if (s && s.getMeta(vt))
26457
+ return s.getMeta(vt).redo ? new Nt$2(t.done.addTransform(n, void 0, r, ro$1(e)), t.undone, ra$1(n.mapping.maps), t.prevTime, t.prevComposition) : new Nt$2(t.done, t.undone.addTransform(n, void 0, r, ro$1(e)), null, t.prevTime, t.prevComposition);
26458
26458
  if (n.getMeta("addToHistory") !== false && !(s && s.getMeta("addToHistory") === false)) {
26459
26459
  let a = n.getMeta("composition"), l = t.prevTime == 0 || !s && t.prevComposition != a && (t.prevTime < (n.time || 0) - r.newGroupDelay || !_f$1(n, t.prevRanges)), c3 = s ? Jo$1(t.prevRanges, n.mapping) : ra$1(n.mapping.maps);
26460
- return new Dt$1(t.done.addTransform(n, l ? e.selection.getBookmark() : void 0, r, ro$1(e)), Je$2.empty, c3, n.time, a ?? t.prevComposition);
26461
- } else return (i3 = n.getMeta("rebased")) ? new Dt$1(t.done.rebased(n, i3), t.undone.rebased(n, i3), Jo$1(t.prevRanges, n.mapping), t.prevTime, t.prevComposition) : new Dt$1(t.done.addMaps(n.mapping.maps), t.undone.addMaps(n.mapping.maps), Jo$1(t.prevRanges, n.mapping), t.prevTime, t.prevComposition);
26460
+ return new Nt$2(t.done.addTransform(n, l ? e.selection.getBookmark() : void 0, r, ro$1(e)), Ye$2.empty, c3, n.time, a ?? t.prevComposition);
26461
+ } else return (i3 = n.getMeta("rebased")) ? new Nt$2(t.done.rebased(n, i3), t.undone.rebased(n, i3), Jo$1(t.prevRanges, n.mapping), t.prevTime, t.prevComposition) : new Nt$2(t.done.addMaps(n.mapping.maps), t.undone.addMaps(n.mapping.maps), Jo$1(t.prevRanges, n.mapping), t.prevTime, t.prevComposition);
26462
26462
  }
26463
26463
  function _f$1(t, e) {
26464
26464
  if (!e)
@@ -26488,11 +26488,11 @@ Actual: ` + p3.attribValue
26488
26488
  return n;
26489
26489
  }
26490
26490
  function zf$1(t, e, n) {
26491
- let r = ro$1(e), o = wt$1.get(e).spec.config, i3 = (n ? t.undone : t.done).popEvent(e, r);
26491
+ let r = ro$1(e), o = vt.get(e).spec.config, i3 = (n ? t.undone : t.done).popEvent(e, r);
26492
26492
  if (!i3)
26493
26493
  return null;
26494
- let s = i3.selection.resolve(i3.transform.doc), a = (n ? t.done : t.undone).addTransform(i3.transform, e.selection.getBookmark(), o, r), l = new Dt$1(n ? a : i3.remaining, n ? i3.remaining : a, null, 0, -1);
26495
- return i3.transform.setSelection(s).setMeta(wt$1, { redo: n, historyState: l });
26494
+ let s = i3.selection.resolve(i3.transform.doc), a = (n ? t.done : t.undone).addTransform(i3.transform, e.selection.getBookmark(), o, r), l = new Nt$2(n ? a : i3.remaining, n ? i3.remaining : a, null, 0, -1);
26495
+ return i3.transform.setSelection(s).setMeta(vt, { redo: n, historyState: l });
26496
26496
  }
26497
26497
  let Yo$1 = false, oa$1 = null;
26498
26498
  function ro$1(t) {
@@ -26507,16 +26507,16 @@ Actual: ` + p3.attribValue
26507
26507
  }
26508
26508
  return Yo$1;
26509
26509
  }
26510
- const wt$1 = new op$2("history"), $f$1 = new op$2("closeHistory");
26510
+ const vt = new op$2("history"), $f$1 = new op$2("closeHistory");
26511
26511
  function Vf$1(t = {}) {
26512
26512
  return t = {
26513
26513
  depth: t.depth || 100,
26514
26514
  newGroupDelay: t.newGroupDelay || 500
26515
26515
  }, new sp$2({
26516
- key: wt$1,
26516
+ key: vt,
26517
26517
  state: {
26518
26518
  init() {
26519
- return new Dt$1(Je$2.empty, Je$2.empty, null, 0, -1);
26519
+ return new Nt$2(Ye$2.empty, Ye$2.empty, null, 0, -1);
26520
26520
  },
26521
26521
  apply(e, n, r) {
26522
26522
  return Bf$1(n, r, e, t);
@@ -26535,7 +26535,7 @@ Actual: ` + p3.attribValue
26535
26535
  }
26536
26536
  function nc$1(t, e) {
26537
26537
  return (n, r) => {
26538
- let o = wt$1.getState(n);
26538
+ let o = vt.getState(n);
26539
26539
  if (!o || (t ? o.undone : o.done).eventCount == 0)
26540
26540
  return false;
26541
26541
  if (r) {
@@ -26547,11 +26547,11 @@ Actual: ` + p3.attribValue
26547
26547
  }
26548
26548
  const rc$1 = nc$1(false), oc$1 = nc$1(true);
26549
26549
  function zk(t) {
26550
- let e = wt$1.getState(t);
26550
+ let e = vt.getState(t);
26551
26551
  return e ? e.done.eventCount : 0;
26552
26552
  }
26553
26553
  function $k(t) {
26554
- let e = wt$1.getState(t);
26554
+ let e = vt.getState(t);
26555
26555
  return e ? e.undone.eventCount : 0;
26556
26556
  }
26557
26557
  function D(t, e, n = {}) {
@@ -26625,7 +26625,7 @@ Actual: ` + p3.attribValue
26625
26625
  return e && e.nodeType == 11 ? e.host : e;
26626
26626
  };
26627
26627
  let wi$1 = null;
26628
- const ht$1 = function(t, e, n) {
26628
+ const mt$1 = function(t, e, n) {
26629
26629
  let r = wi$1 || (wi$1 = document.createRange());
26630
26630
  return r.setEnd(t, n ?? t.nodeValue.length), r.setStart(t, e || 0), r;
26631
26631
  }, jf$1 = function() {
@@ -26724,9 +26724,9 @@ Actual: ` + p3.attribValue
26724
26724
  return { node: r.startContainer, offset: Math.min($e$2(r.startContainer), r.startOffset) };
26725
26725
  }
26726
26726
  }
26727
- const it = typeof navigator < "u" ? navigator : null, sa$1 = typeof document < "u" ? document : null, Wt$2 = it && it.userAgent || "", vi$1 = /Edge\/(\d+)/.exec(Wt$2), ic$1 = /MSIE \d/.exec(Wt$2), ki$1 = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Wt$2), Te$1 = !!(ic$1 || ki$1 || vi$1), Lt$1 = ic$1 ? document.documentMode : ki$1 ? +ki$1[1] : vi$1 ? +vi$1[1] : 0, Ye$2 = !Te$1 && /gecko\/(\d+)/i.test(Wt$2);
26728
- Ye$2 && +(/Firefox\/(\d+)/.exec(Wt$2) || [0, 0])[1];
26729
- const Ci$1 = !Te$1 && /Chrome\/(\d+)/.exec(Wt$2), we$1 = !!Ci$1, sc$1 = Ci$1 ? +Ci$1[1] : 0, Me$1 = !Te$1 && !!it && /Apple Computer/.test(it.vendor), Tn$1 = Me$1 && (/Mobile\/\w+/.test(Wt$2) || !!it && it.maxTouchPoints > 2), ze$2 = Tn$1 || (it ? /Mac/.test(it.platform) : false), Yf$1 = it ? /Win/.test(it.platform) : false, yt$1 = /Android \d/.test(Wt$2), Tr$1 = !!sa$1 && "webkitFontSmoothing" in sa$1.documentElement.style, Gf$1 = Tr$1 ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
26727
+ const st$1 = typeof navigator < "u" ? navigator : null, sa$1 = typeof document < "u" ? document : null, Wt$2 = st$1 && st$1.userAgent || "", vi$1 = /Edge\/(\d+)/.exec(Wt$2), ic$1 = /MSIE \d/.exec(Wt$2), ki$1 = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Wt$2), Te$1 = !!(ic$1 || ki$1 || vi$1), Ft$1 = ic$1 ? document.documentMode : ki$1 ? +ki$1[1] : vi$1 ? +vi$1[1] : 0, Ge = !Te$1 && /gecko\/(\d+)/i.test(Wt$2);
26728
+ Ge && +(/Firefox\/(\d+)/.exec(Wt$2) || [0, 0])[1];
26729
+ const Ci$1 = !Te$1 && /Chrome\/(\d+)/.exec(Wt$2), we$1 = !!Ci$1, sc$1 = Ci$1 ? +Ci$1[1] : 0, Me$1 = !Te$1 && !!st$1 && /Apple Computer/.test(st$1.vendor), Tn$1 = Me$1 && (/Mobile\/\w+/.test(Wt$2) || !!st$1 && st$1.maxTouchPoints > 2), ze$2 = Tn$1 || (st$1 ? /Mac/.test(st$1.platform) : false), Yf$1 = st$1 ? /Win/.test(st$1.platform) : false, bt$1 = /Android \d/.test(Wt$2), Tr$1 = !!sa$1 && "webkitFontSmoothing" in sa$1.documentElement.style, Gf$1 = Tr$1 ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
26730
26730
  function Zf$1(t) {
26731
26731
  let e = t.defaultView && t.defaultView.visualViewport;
26732
26732
  return e ? {
@@ -26741,7 +26741,7 @@ Actual: ` + p3.attribValue
26741
26741
  bottom: t.documentElement.clientHeight
26742
26742
  };
26743
26743
  }
26744
- function ft(t, e) {
26744
+ function pt(t, e) {
26745
26745
  return typeof t == "number" ? t : t[e];
26746
26746
  }
26747
26747
  function Qf$1(t) {
@@ -26761,7 +26761,7 @@ Actual: ` + p3.attribValue
26761
26761
  continue;
26762
26762
  }
26763
26763
  let a = s, l = a == i3.body, c3 = l ? Zf$1(i3) : Qf$1(a), d = 0, u = 0;
26764
- if (e.top < c3.top + ft(r, "top") ? u = -(c3.top - e.top + ft(o, "top")) : e.bottom > c3.bottom - ft(r, "bottom") && (u = e.bottom - e.top > c3.bottom - c3.top ? e.top + ft(o, "top") - c3.top : e.bottom - c3.bottom + ft(o, "bottom")), e.left < c3.left + ft(r, "left") ? d = -(c3.left - e.left + ft(o, "left")) : e.right > c3.right - ft(r, "right") && (d = e.right - c3.right + ft(o, "right")), d || u)
26764
+ if (e.top < c3.top + pt(r, "top") ? u = -(c3.top - e.top + pt(o, "top")) : e.bottom > c3.bottom - pt(r, "bottom") && (u = e.bottom - e.top > c3.bottom - c3.top ? e.top + pt(o, "top") - c3.top : e.bottom - c3.bottom + pt(o, "bottom")), e.left < c3.left + pt(r, "left") ? d = -(c3.left - e.left + pt(o, "left")) : e.right > c3.right - pt(r, "right") && (d = e.right - c3.right + pt(o, "right")), d || u)
26765
26765
  if (l)
26766
26766
  i3.defaultView.scrollBy(d, u);
26767
26767
  else {
@@ -26826,7 +26826,7 @@ Actual: ` + p3.attribValue
26826
26826
  if (d.nodeType == 1)
26827
26827
  f3 = d.getClientRects();
26828
26828
  else if (d.nodeType == 3)
26829
- f3 = ht$1(d).getClientRects();
26829
+ f3 = mt$1(d).getClientRects();
26830
26830
  else
26831
26831
  continue;
26832
26832
  for (let p3 = 0; p3 < f3.length; p3++) {
@@ -26851,7 +26851,7 @@ Actual: ` + p3.attribValue
26851
26851
  let n = t.nodeValue.length, r = document.createRange();
26852
26852
  for (let o = 0; o < n; o++) {
26853
26853
  r.setEnd(t, o + 1), r.setStart(t, o);
26854
- let i3 = Tt$1(r, 1);
26854
+ let i3 = Dt$1(r, 1);
26855
26855
  if (i3.top != i3.bottom && gs(e, i3))
26856
26856
  return { node: t, offset: o + (e.left >= (i3.left + i3.right) / 2 ? 1 : 0) };
26857
26857
  }
@@ -26916,7 +26916,7 @@ Actual: ` + p3.attribValue
26916
26916
  for (let c3 = s; r && c3; c3 = On$2(c3))
26917
26917
  c3.draggable && (r = void 0);
26918
26918
  if (s = op$1(s, e), r) {
26919
- if (Ye$2 && r.nodeType == 1 && (o = Math.min(o, r.childNodes.length), o < r.childNodes.length)) {
26919
+ if (Ge && r.nodeType == 1 && (o = Math.min(o, r.childNodes.length), o < r.childNodes.length)) {
26920
26920
  let d = r.childNodes[o], u;
26921
26921
  d.nodeName == "IMG" && (u = d.getBoundingClientRect()).right <= e.left && u.bottom > e.top && o++;
26922
26922
  }
@@ -26930,7 +26930,7 @@ Actual: ` + p3.attribValue
26930
26930
  function la$1(t) {
26931
26931
  return t.top < t.bottom || t.left < t.right;
26932
26932
  }
26933
- function Tt$1(t, e) {
26933
+ function Dt$1(t, e) {
26934
26934
  let n = t.getClientRects();
26935
26935
  if (n.length) {
26936
26936
  let r = n[e < 0 ? 0 : n.length - 1];
@@ -26941,14 +26941,14 @@ Actual: ` + p3.attribValue
26941
26941
  }
26942
26942
  const lp$1 = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
26943
26943
  function uc$1(t, e, n) {
26944
- let { node: r, offset: o, atom: i3 } = t.docView.domFromPos(e, n < 0 ? -1 : 1), s = Tr$1 || Ye$2;
26944
+ let { node: r, offset: o, atom: i3 } = t.docView.domFromPos(e, n < 0 ? -1 : 1), s = Tr$1 || Ge;
26945
26945
  if (r.nodeType == 3)
26946
26946
  if (s && (lp$1.test(r.nodeValue) || (n < 0 ? !o : o == r.nodeValue.length))) {
26947
- let l = Tt$1(ht$1(r, o, o), n);
26948
- if (Ye$2 && o && /\s/.test(r.nodeValue[o - 1]) && o < r.nodeValue.length) {
26949
- let c3 = Tt$1(ht$1(r, o - 1, o - 1), -1);
26947
+ let l = Dt$1(mt$1(r, o, o), n);
26948
+ if (Ge && o && /\s/.test(r.nodeValue[o - 1]) && o < r.nodeValue.length) {
26949
+ let c3 = Dt$1(mt$1(r, o - 1, o - 1), -1);
26950
26950
  if (c3.top == l.top) {
26951
- let d = Tt$1(ht$1(r, o, o + 1), -1);
26951
+ let d = Dt$1(mt$1(r, o, o + 1), -1);
26952
26952
  if (d.top != l.top)
26953
26953
  return qn$2(d, d.left < c3.left);
26954
26954
  }
@@ -26956,7 +26956,7 @@ Actual: ` + p3.attribValue
26956
26956
  return l;
26957
26957
  } else {
26958
26958
  let l = o, c3 = o, d = n < 0 ? 1 : -1;
26959
- return n < 0 && !o ? (c3++, d = -1) : n >= 0 && o == r.nodeValue.length ? (l--, d = 1) : n < 0 ? l-- : c3++, qn$2(Tt$1(ht$1(r, l, c3), d), d < 0);
26959
+ return n < 0 && !o ? (c3++, d = -1) : n >= 0 && o == r.nodeValue.length ? (l--, d = 1) : n < 0 ? l-- : c3++, qn$2(Dt$1(mt$1(r, l, c3), d), d < 0);
26960
26960
  }
26961
26961
  if (!t.state.doc.resolve(e - (i3 || 0)).parent.inlineContent) {
26962
26962
  if (i3 == null && o && (n < 0 || o == $e$2(r))) {
@@ -26972,19 +26972,19 @@ Actual: ` + p3.attribValue
26972
26972
  return Zo$1(r.getBoundingClientRect(), n >= 0);
26973
26973
  }
26974
26974
  if (i3 == null && o && (n < 0 || o == $e$2(r))) {
26975
- let l = r.childNodes[o - 1], c3 = l.nodeType == 3 ? ht$1(l, $e$2(l) - (s ? 0 : 1)) : l.nodeType == 1 && (l.nodeName != "BR" || !l.nextSibling) ? l : null;
26975
+ let l = r.childNodes[o - 1], c3 = l.nodeType == 3 ? mt$1(l, $e$2(l) - (s ? 0 : 1)) : l.nodeType == 1 && (l.nodeName != "BR" || !l.nextSibling) ? l : null;
26976
26976
  if (c3)
26977
- return qn$2(Tt$1(c3, 1), false);
26977
+ return qn$2(Dt$1(c3, 1), false);
26978
26978
  }
26979
26979
  if (i3 == null && o < $e$2(r)) {
26980
26980
  let l = r.childNodes[o];
26981
26981
  for (; l.pmViewDesc && l.pmViewDesc.ignoreForCoords; )
26982
26982
  l = l.nextSibling;
26983
- let c3 = l ? l.nodeType == 3 ? ht$1(l, 0, s ? 0 : 1) : l.nodeType == 1 ? l : null : null;
26983
+ let c3 = l ? l.nodeType == 3 ? mt$1(l, 0, s ? 0 : 1) : l.nodeType == 1 ? l : null : null;
26984
26984
  if (c3)
26985
- return qn$2(Tt$1(c3, -1), true);
26985
+ return qn$2(Dt$1(c3, -1), true);
26986
26986
  }
26987
- return qn$2(Tt$1(r.nodeType == 3 ? ht$1(r) : r, -n), n >= 0);
26987
+ return qn$2(Dt$1(r.nodeType == 3 ? mt$1(r) : r, -n), n >= 0);
26988
26988
  }
26989
26989
  function qn$2(t, e) {
26990
26990
  if (t.width == 0)
@@ -27027,7 +27027,7 @@ Actual: ` + p3.attribValue
27027
27027
  if (a.nodeType == 1)
27028
27028
  l = a.getClientRects();
27029
27029
  else if (a.nodeType == 3)
27030
- l = ht$1(a, 0, a.nodeValue.length).getClientRects();
27030
+ l = mt$1(a, 0, a.nodeValue.length).getClientRects();
27031
27031
  else
27032
27032
  continue;
27033
27033
  for (let c3 = 0; c3 < l.length; c3++) {
@@ -27060,7 +27060,7 @@ Actual: ` + p3.attribValue
27060
27060
  function fp$1(t, e, n) {
27061
27061
  return ca$1 == e && da$1 == n ? ua$1 : (ca$1 = e, da$1 = n, ua$1 = n == "up" || n == "down" ? cp$1(t, e, n) : up$1(t, e, n));
27062
27062
  }
27063
- const He$2 = 0, fa$1 = 1, Qt$1 = 2, st$1 = 3;
27063
+ const He$2 = 0, fa$1 = 1, Qt$1 = 2, at$2 = 3;
27064
27064
  class Dr {
27065
27065
  constructor(e, n, r, o) {
27066
27066
  this.parent = e, this.children = n, this.dom = r, this.contentDOM = o, this.dirty = He$2, r.pmViewDesc = this;
@@ -27320,7 +27320,7 @@ Actual: ` + p3.attribValue
27320
27320
  h3 = g;
27321
27321
  }
27322
27322
  let a = this.domFromPos(e, e ? -1 : 1), l = n == e ? a : this.domFromPos(n, n ? -1 : 1), c3 = r.root.getSelection(), d = r.domSelectionRange(), u = false;
27323
- if ((Ye$2 || Me$1) && e == n) {
27323
+ if ((Ge || Me$1) && e == n) {
27324
27324
  let { node: p3, offset: h3 } = a;
27325
27325
  if (p3.nodeType == 3) {
27326
27326
  if (u = !!(h3 && p3.nodeValue[h3 - 1] == `
@@ -27339,7 +27339,7 @@ Actual: ` + p3.attribValue
27339
27339
  u = m && (m.nodeName == "BR" || m.contentEditable == "false");
27340
27340
  }
27341
27341
  }
27342
- if (Ye$2 && d.focusNode && d.focusNode != l.node && d.focusNode.nodeType == 1) {
27342
+ if (Ge && d.focusNode && d.focusNode != l.node && d.focusNode.nodeType == 1) {
27343
27343
  let p3 = d.focusNode.childNodes[d.focusOffset];
27344
27344
  p3 && p3.contentEditable == "false" && (o = true);
27345
27345
  }
@@ -27376,10 +27376,10 @@ Actual: ` + p3.attribValue
27376
27376
  if (r == s ? e <= s && n >= r : e < s && n > r) {
27377
27377
  let a = r + i3.border, l = s - i3.border;
27378
27378
  if (e >= a && n <= l) {
27379
- this.dirty = e == r || n == s ? Qt$1 : fa$1, e == a && n == l && (i3.contentLost || i3.dom.parentNode != this.contentDOM) ? i3.dirty = st$1 : i3.markDirty(e - a, n - a);
27379
+ this.dirty = e == r || n == s ? Qt$1 : fa$1, e == a && n == l && (i3.contentLost || i3.dom.parentNode != this.contentDOM) ? i3.dirty = at$2 : i3.markDirty(e - a, n - a);
27380
27380
  return;
27381
27381
  } else
27382
- i3.dirty = i3.dom == i3.contentDOM && i3.dom.parentNode == this.contentDOM && !i3.children.length ? Qt$1 : st$1;
27382
+ i3.dirty = i3.dom == i3.contentDOM && i3.dom.parentNode == this.contentDOM && !i3.children.length ? Qt$1 : at$2;
27383
27383
  }
27384
27384
  r = s;
27385
27385
  }
@@ -27468,10 +27468,10 @@ Actual: ` + p3.attribValue
27468
27468
  return (!s || !s.dom) && (s = Ra$2.renderSpec(document, n.type.spec.toDOM(n, r), null, n.attrs)), new cn2(e, n, s.dom, s.contentDOM || s.dom, s);
27469
27469
  }
27470
27470
  parseRule() {
27471
- return this.dirty & st$1 || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM };
27471
+ return this.dirty & at$2 || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM };
27472
27472
  }
27473
27473
  matchesMark(e) {
27474
- return this.dirty != st$1 && this.mark.eq(e);
27474
+ return this.dirty != at$2 && this.mark.eq(e);
27475
27475
  }
27476
27476
  markDirty(e, n) {
27477
27477
  if (super.markDirty(e, n), this.dirty != He$2) {
@@ -27495,7 +27495,7 @@ Actual: ` + p3.attribValue
27495
27495
  this.spec.destroy && this.spec.destroy(), super.destroy();
27496
27496
  }
27497
27497
  };
27498
- let Ft$1 = class Ft2 extends Dr {
27498
+ let Bt$1 = class Bt2 extends Dr {
27499
27499
  constructor(e, n, r, o, i3, s, a, l, c3) {
27500
27500
  super(e, [], i3, s), this.node = n, this.outerDeco = r, this.innerDeco = o, this.nodeDOM = a;
27501
27501
  }
@@ -27523,7 +27523,7 @@ Actual: ` + p3.attribValue
27523
27523
  } else d || ({ dom: d, contentDOM: u } = Ra$2.renderSpec(document, n.type.spec.toDOM(n), null, n.attrs));
27524
27524
  !u && !n.isText && d.nodeName != "BR" && (d.hasAttribute("contenteditable") || (d.contentEditable = "false"), n.type.spec.draggable && (d.draggable = true));
27525
27525
  let f3 = d;
27526
- return d = yc$1(d, r, n), c3 ? l = new hp$1(e, n, r, o, d, u || null, f3, c3, i3, s + 1) : n.isText ? new Po$1(e, n, r, o, d, f3, i3) : new Ft2(e, n, r, o, d, u || null, f3, i3, s + 1);
27526
+ return d = yc$1(d, r, n), c3 ? l = new hp$1(e, n, r, o, d, u || null, f3, c3, i3, s + 1) : n.isText ? new Po$1(e, n, r, o, d, f3, i3) : new Bt2(e, n, r, o, d, u || null, f3, i3, s + 1);
27527
27527
  }
27528
27528
  parseRule() {
27529
27529
  if (this.node.type.spec.reparseInView)
@@ -27598,7 +27598,7 @@ Actual: ` + p3.attribValue
27598
27598
  // If this desc must be updated to match the given node decoration,
27599
27599
  // do so and return true.
27600
27600
  update(e, n, r, o) {
27601
- return this.dirty == st$1 || !e.sameMarkup(this.node) ? false : (this.updateInner(e, n, r, o), true);
27601
+ return this.dirty == at$2 || !e.sameMarkup(this.node) ? false : (this.updateInner(e, n, r, o), true);
27602
27602
  }
27603
27603
  updateInner(e, n, r, o) {
27604
27604
  this.updateOuterDeco(n), this.node = e, this.innerDeco = r, this.contentDOM && this.updateChildren(o, this.posAtStart), this.dirty = He$2;
@@ -27623,10 +27623,10 @@ Actual: ` + p3.attribValue
27623
27623
  };
27624
27624
  function pa$1(t, e, n, r, o) {
27625
27625
  yc$1(r, e, t);
27626
- let i3 = new Ft$1(void 0, t, e, n, r, r, r, o, 0);
27626
+ let i3 = new Bt$1(void 0, t, e, n, r, r, r, o, 0);
27627
27627
  return i3.contentDOM && i3.updateChildren(o, 0), i3;
27628
27628
  }
27629
- let Po$1 = class Po2 extends Ft$1 {
27629
+ let Po$1 = class Po2 extends Bt$1 {
27630
27630
  constructor(e, n, r, o, i3, s, a) {
27631
27631
  super(e, n, r, o, i3, null, s, a, 0);
27632
27632
  }
@@ -27637,7 +27637,7 @@ Actual: ` + p3.attribValue
27637
27637
  return { skip: e || true };
27638
27638
  }
27639
27639
  update(e, n, r, o) {
27640
- return this.dirty == st$1 || this.dirty != He$2 && !this.inParent() || !e.sameMarkup(this.node) ? false : (this.updateOuterDeco(n), (this.dirty != He$2 || e.text != this.node.text) && e.text != this.nodeDOM.nodeValue && (this.nodeDOM.nodeValue = e.text, o.trackWrites == this.nodeDOM && (o.trackWrites = null)), this.node = e, this.dirty = He$2, true);
27640
+ return this.dirty == at$2 || this.dirty != He$2 && !this.inParent() || !e.sameMarkup(this.node) ? false : (this.updateOuterDeco(n), (this.dirty != He$2 || e.text != this.node.text) && e.text != this.nodeDOM.nodeValue && (this.nodeDOM.nodeValue = e.text, o.trackWrites == this.nodeDOM && (o.trackWrites = null)), this.node = e, this.dirty = He$2, true);
27641
27641
  }
27642
27642
  inParent() {
27643
27643
  let e = this.parent.contentDOM;
@@ -27660,7 +27660,7 @@ Actual: ` + p3.attribValue
27660
27660
  return new Po2(this.parent, o, this.outerDeco, this.innerDeco, i3, i3, r);
27661
27661
  }
27662
27662
  markDirty(e, n) {
27663
- super.markDirty(e, n), this.dom != this.nodeDOM && (e == 0 || n == this.nodeDOM.nodeValue.length) && (this.dirty = st$1);
27663
+ super.markDirty(e, n), this.dom != this.nodeDOM && (e == 0 || n == this.nodeDOM.nodeValue.length) && (this.dirty = at$2);
27664
27664
  }
27665
27665
  get domAtom() {
27666
27666
  return false;
@@ -27683,7 +27683,7 @@ Actual: ` + p3.attribValue
27683
27683
  return this.dom.nodeName == "IMG";
27684
27684
  }
27685
27685
  };
27686
- let hp$1 = class hp extends Ft$1 {
27686
+ let hp$1 = class hp extends Bt$1 {
27687
27687
  constructor(e, n, r, o, i3, s, a, l, c3, d) {
27688
27688
  super(e, n, r, o, i3, s, a, c3, d), this.spec = l;
27689
27689
  }
@@ -27691,7 +27691,7 @@ Actual: ` + p3.attribValue
27691
27691
  // through. If it does, and there's a `contentDOM` node, our logic
27692
27692
  // updates the children.
27693
27693
  update(e, n, r, o) {
27694
- if (this.dirty == st$1)
27694
+ if (this.dirty == at$2)
27695
27695
  return false;
27696
27696
  if (this.spec.update && (this.node.type == e.type || this.spec.multiType)) {
27697
27697
  let i3 = this.spec.update(e, n, r);
@@ -27870,7 +27870,7 @@ Actual: ` + p3.attribValue
27870
27870
  }
27871
27871
  updateNodeAt(e, n, r, o, i3) {
27872
27872
  let s = this.top.children[o];
27873
- return s.dirty == st$1 && s.dom == s.contentDOM && (s.dirty = Qt$1), s.update(e, n, r, i3) ? (this.destroyBetween(this.index, o), this.index++, true) : false;
27873
+ return s.dirty == at$2 && s.dom == s.contentDOM && (s.dirty = Qt$1), s.update(e, n, r, i3) ? (this.destroyBetween(this.index, o), this.index++, true) : false;
27874
27874
  }
27875
27875
  findIndexWithChild(e) {
27876
27876
  for (; ; ) {
@@ -27894,11 +27894,11 @@ Actual: ` + p3.attribValue
27894
27894
  updateNextNode(e, n, r, o, i3, s) {
27895
27895
  for (let a = this.index; a < this.top.children.length; a++) {
27896
27896
  let l = this.top.children[a];
27897
- if (l instanceof Ft$1) {
27897
+ if (l instanceof Bt$1) {
27898
27898
  let c3 = this.preMatch.matched.get(l);
27899
27899
  if (c3 != null && c3 != i3)
27900
27900
  return false;
27901
- let d = l.dom, u, f3 = this.isLocked(d) && !(e.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == e.text && l.dirty != st$1 && po$2(n, l.outerDeco));
27901
+ let d = l.dom, u, f3 = this.isLocked(d) && !(e.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == e.text && l.dirty != at$2 && po$2(n, l.outerDeco));
27902
27902
  if (!f3 && l.update(e, n, r, o))
27903
27903
  return this.destroyBetween(this.index, a), l.dom != d && (this.changed = true), this.index++, true;
27904
27904
  if (!f3 && (u = this.recreateWrapper(l, e, n, r, o, s)))
@@ -27913,7 +27913,7 @@ Actual: ` + p3.attribValue
27913
27913
  recreateWrapper(e, n, r, o, i3, s) {
27914
27914
  if (e.dirty || n.isAtom || !e.children.length || !e.node.content.eq(n.content) || !po$2(r, e.outerDeco) || !o.eq(e.innerDeco))
27915
27915
  return null;
27916
- let a = Ft$1.create(this.top, n, r, o, i3, s);
27916
+ let a = Bt$1.create(this.top, n, r, o, i3, s);
27917
27917
  if (a.contentDOM) {
27918
27918
  a.children = e.children, e.children = [];
27919
27919
  for (let l of a.children)
@@ -27923,7 +27923,7 @@ Actual: ` + p3.attribValue
27923
27923
  }
27924
27924
  // Insert the node as a newly created node desc.
27925
27925
  addNode(e, n, r, o, i3) {
27926
- let s = Ft$1.create(this.top, e, n, r, o, i3);
27926
+ let s = Bt$1.create(this.top, e, n, r, o, i3);
27927
27927
  s.contentDOM && s.updateChildren(o, i3 + 1), this.top.children.splice(this.index++, 0, s), this.changed = true;
27928
27928
  }
27929
27929
  placeWidget(e, n, r) {
@@ -28115,7 +28115,7 @@ Actual: ` + p3.attribValue
28115
28115
  function bc$1(t) {
28116
28116
  return t.editable ? t.hasFocus() : vc$1(t) && document.activeElement && document.activeElement.contains(t.dom);
28117
28117
  }
28118
- function vt(t, e = false) {
28118
+ function kt$1(t, e = false) {
28119
28119
  let n = t.state.selection;
28120
28120
  if (wc$1(t, n), !!bc$1(t)) {
28121
28121
  if (!e && t.input.mouseDown && t.input.mouseDown.allowDefault && we$1) {
@@ -28167,7 +28167,7 @@ Actual: ` + p3.attribValue
28167
28167
  if (!e)
28168
28168
  return;
28169
28169
  let r = t.cursorWrapper.dom, o = r.nodeName == "IMG";
28170
- o ? n.setStart(r.parentNode, ge(r) + 1) : n.setStart(r, 0), n.collapse(true), e.removeAllRanges(), e.addRange(n), !o && !t.state.selection.visible && Te$1 && Lt$1 <= 11 && (r.disabled = true, r.disabled = false);
28170
+ o ? n.setStart(r.parentNode, ge(r) + 1) : n.setStart(r, 0), n.collapse(true), e.removeAllRanges(), e.addRange(n), !o && !t.state.selection.visible && Te$1 && Ft$1 <= 11 && (r.disabled = true, r.disabled = false);
28171
28171
  }
28172
28172
  function wc$1(t, e) {
28173
28173
  if (e instanceof Ge$1) {
@@ -28203,7 +28203,7 @@ Actual: ` + p3.attribValue
28203
28203
  let { $anchor: n, $head: r } = t.selection, o = e > 0 ? n.max(r) : n.min(r), i3 = o.parent.inlineContent ? o.depth ? t.doc.resolve(e > 0 ? o.after() : o.before()) : null : o;
28204
28204
  return i3 && ve$2.findFrom(i3, e);
28205
28205
  }
28206
- function Nt$2(t, e) {
28206
+ function Et(t, e) {
28207
28207
  return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()), true;
28208
28208
  }
28209
28209
  function va$1(t, e, n) {
@@ -28214,25 +28214,25 @@ Actual: ` + p3.attribValue
28214
28214
  if (!i3 || i3.isText || !i3.isLeaf)
28215
28215
  return false;
28216
28216
  let s = t.state.doc.resolve(o.pos + i3.nodeSize * (e < 0 ? -1 : 1));
28217
- return Nt$2(t, new tt$2(r.$anchor, s));
28217
+ return Et(t, new tt$2(r.$anchor, s));
28218
28218
  } else if (r.empty) {
28219
28219
  if (t.endOfTextblock(e > 0 ? "forward" : "backward")) {
28220
28220
  let o = Mi$1(t.state, e);
28221
- return o && o instanceof Ge$1 ? Nt$2(t, o) : false;
28221
+ return o && o instanceof Ge$1 ? Et(t, o) : false;
28222
28222
  } else if (!(ze$2 && n.indexOf("m") > -1)) {
28223
28223
  let o = r.$head, i3 = o.textOffset ? null : e < 0 ? o.nodeBefore : o.nodeAfter, s;
28224
28224
  if (!i3 || i3.isText)
28225
28225
  return false;
28226
28226
  let a = e < 0 ? o.pos - i3.nodeSize : o.pos;
28227
- return i3.isAtom || (s = t.docView.descAt(a)) && !s.contentDOM ? Ge$1.isSelectable(i3) ? Nt$2(t, new Ge$1(e < 0 ? t.state.doc.resolve(o.pos - i3.nodeSize) : o)) : Tr$1 ? Nt$2(t, new tt$2(t.state.doc.resolve(e < 0 ? a : a + i3.nodeSize))) : false : false;
28227
+ return i3.isAtom || (s = t.docView.descAt(a)) && !s.contentDOM ? Ge$1.isSelectable(i3) ? Et(t, new Ge$1(e < 0 ? t.state.doc.resolve(o.pos - i3.nodeSize) : o)) : Tr$1 ? Et(t, new tt$2(t.state.doc.resolve(e < 0 ? a : a + i3.nodeSize))) : false : false;
28228
28228
  }
28229
28229
  } else return false;
28230
28230
  else {
28231
28231
  if (r instanceof Ge$1 && r.node.isInline)
28232
- return Nt$2(t, new tt$2(e > 0 ? r.$to : r.$from));
28232
+ return Et(t, new tt$2(e > 0 ? r.$to : r.$from));
28233
28233
  {
28234
28234
  let o = Mi$1(t.state, e);
28235
- return o ? Nt$2(t, o) : false;
28235
+ return o ? Et(t, o) : false;
28236
28236
  }
28237
28237
  }
28238
28238
  }
@@ -28251,7 +28251,7 @@ Actual: ` + p3.attribValue
28251
28251
  if (!n)
28252
28252
  return;
28253
28253
  let o, i3, s = false;
28254
- for (Ye$2 && n.nodeType == 1 && r < ho$1(n) && er$1(n.childNodes[r], -1) && (s = true); ; )
28254
+ for (Ge && n.nodeType == 1 && r < ho$1(n) && er$1(n.childNodes[r], -1) && (s = true); ; )
28255
28255
  if (r > 0) {
28256
28256
  if (n.nodeType != 1)
28257
28257
  break;
@@ -28357,7 +28357,7 @@ Actual: ` + p3.attribValue
28357
28357
  t.domObserver.setCurSelection();
28358
28358
  let { state: o } = t;
28359
28359
  setTimeout(() => {
28360
- t.state == o && vt(t);
28360
+ t.state == o && kt$1(t);
28361
28361
  }, 50);
28362
28362
  }
28363
28363
  function ka$1(t, e) {
@@ -28385,11 +28385,11 @@ Actual: ` + p3.attribValue
28385
28385
  if (!o.parent.inlineContent || t.endOfTextblock(e < 0 ? "up" : "down")) {
28386
28386
  let s = Mi$1(t.state, e);
28387
28387
  if (s && s instanceof Ge$1)
28388
- return Nt$2(t, s);
28388
+ return Et(t, s);
28389
28389
  }
28390
28390
  if (!o.parent.inlineContent) {
28391
28391
  let s = e < 0 ? o : i3, a = r instanceof at$3 ? ve$2.near(s, e) : ve$2.findFrom(s, e);
28392
- return a ? Nt$2(t, a) : false;
28392
+ return a ? Et(t, a) : false;
28393
28393
  }
28394
28394
  return false;
28395
28395
  }
@@ -28654,7 +28654,7 @@ Actual: ` + p3.attribValue
28654
28654
  }
28655
28655
  Me$1 && t.dom.addEventListener("input", () => null), Ti$1(t);
28656
28656
  }
28657
- function Pt$1(t, e) {
28657
+ function Rt$2(t, e) {
28658
28658
  t.input.lastSelectionOrigin = e, t.input.lastSelectionTime = Date.now();
28659
28659
  }
28660
28660
  function Vp(t) {
@@ -28690,13 +28690,13 @@ Actual: ` + p3.attribValue
28690
28690
  }
28691
28691
  Oe$1.keydown = (t, e) => {
28692
28692
  let n = e;
28693
- if (t.input.shiftKey = n.keyCode == 16 || n.shiftKey, !Dc$1(t, n) && (t.input.lastKeyCode = n.keyCode, t.input.lastKeyCodeTime = Date.now(), !(yt$1 && we$1 && n.keyCode == 13)))
28693
+ if (t.input.shiftKey = n.keyCode == 16 || n.shiftKey, !Dc$1(t, n) && (t.input.lastKeyCode = n.keyCode, t.input.lastKeyCodeTime = Date.now(), !(bt$1 && we$1 && n.keyCode == 13)))
28694
28694
  if (n.keyCode != 229 && t.domObserver.forceFlush(), Tn$1 && n.keyCode == 13 && !n.ctrlKey && !n.altKey && !n.metaKey) {
28695
28695
  let r = Date.now();
28696
28696
  t.input.lastIOSEnter = r, t.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
28697
28697
  t.input.lastIOSEnter == r && (t.someProp("handleKeyDown", (o) => o(t, Zt$1(13, "Enter"))), t.input.lastIOSEnter = 0);
28698
28698
  }, 200);
28699
- } else t.someProp("handleKeyDown", (r) => r(t, n)) || Ep(t, n) ? n.preventDefault() : Pt$1(t, "key");
28699
+ } else t.someProp("handleKeyDown", (r) => r(t, n)) || Ep(t, n) ? n.preventDefault() : Rt$2(t, "key");
28700
28700
  };
28701
28701
  Oe$1.keyup = (t, e) => {
28702
28702
  e.keyCode == 16 && (t.input.shiftKey = false);
@@ -28795,7 +28795,7 @@ Actual: ` + p3.attribValue
28795
28795
  let r = Cs(t), o = Date.now(), i3 = "singleClick";
28796
28796
  o - t.input.lastClick.time < 500 && Wp(n, t.input.lastClick) && !n[Tc$1] && (t.input.lastClick.type == "singleClick" ? i3 = "doubleClick" : t.input.lastClick.type == "doubleClick" && (i3 = "tripleClick")), t.input.lastClick = { time: o, x: n.clientX, y: n.clientY, type: i3 };
28797
28797
  let s = t.posAtCoords(Ro$1(n));
28798
- s && (i3 == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new Gp(t, s, n, !!r)) : (i3 == "doubleClick" ? Xp : Jp)(t, s.pos, s.inside, n) ? n.preventDefault() : Pt$1(t, "pointer"));
28798
+ s && (i3 == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new Gp(t, s, n, !!r)) : (i3 == "doubleClick" ? Xp : Jp)(t, s.pos, s.inside, n) ? n.preventDefault() : Rt$2(t, "pointer"));
28799
28799
  };
28800
28800
  class Gp {
28801
28801
  constructor(e, n, r, o) {
@@ -28814,19 +28814,19 @@ Actual: ` + p3.attribValue
28814
28814
  node: i3,
28815
28815
  pos: s,
28816
28816
  addAttr: !!(this.target && !this.target.draggable),
28817
- setUneditable: !!(this.target && Ye$2 && !this.target.hasAttribute("contentEditable"))
28817
+ setUneditable: !!(this.target && Ge && !this.target.hasAttribute("contentEditable"))
28818
28818
  }), this.target && this.mightDrag && (this.mightDrag.addAttr || this.mightDrag.setUneditable) && (this.view.domObserver.stop(), this.mightDrag.addAttr && (this.target.draggable = true), this.mightDrag.setUneditable && setTimeout(() => {
28819
28819
  this.view.input.mouseDown == this && this.target.setAttribute("contentEditable", "false");
28820
- }, 20), this.view.domObserver.start()), e.root.addEventListener("mouseup", this.up = this.up.bind(this)), e.root.addEventListener("mousemove", this.move = this.move.bind(this)), Pt$1(e, "pointer");
28820
+ }, 20), this.view.domObserver.start()), e.root.addEventListener("mouseup", this.up = this.up.bind(this)), e.root.addEventListener("mousemove", this.move = this.move.bind(this)), Rt$2(e, "pointer");
28821
28821
  }
28822
28822
  done() {
28823
- this.view.root.removeEventListener("mouseup", this.up), this.view.root.removeEventListener("mousemove", this.move), this.mightDrag && this.target && (this.view.domObserver.stop(), this.mightDrag.addAttr && this.target.removeAttribute("draggable"), this.mightDrag.setUneditable && this.target.removeAttribute("contentEditable"), this.view.domObserver.start()), this.delayedSelectionSync && setTimeout(() => vt(this.view)), this.view.input.mouseDown = null;
28823
+ this.view.root.removeEventListener("mouseup", this.up), this.view.root.removeEventListener("mousemove", this.move), this.mightDrag && this.target && (this.view.domObserver.stop(), this.mightDrag.addAttr && this.target.removeAttribute("draggable"), this.mightDrag.setUneditable && this.target.removeAttribute("contentEditable"), this.view.domObserver.start()), this.delayedSelectionSync && setTimeout(() => kt$1(this.view)), this.view.input.mouseDown = null;
28824
28824
  }
28825
28825
  up(e) {
28826
28826
  if (this.done(), !this.view.dom.contains(e.target))
28827
28827
  return;
28828
28828
  let n = this.pos;
28829
- this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(Ro$1(e))), this.updateAllowDefault(e), this.allowDefault || !n ? Pt$1(this.view, "pointer") : Kp(this.view, n.pos, n.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
28829
+ this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(Ro$1(e))), this.updateAllowDefault(e), this.allowDefault || !n ? Rt$2(this.view, "pointer") : Kp(this.view, n.pos, n.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
28830
28830
  Me$1 && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
28831
28831
  // cursor, but still report that the node is selected
28832
28832
  // when asked through getSelection. You'll then get a
@@ -28834,33 +28834,33 @@ Actual: ` + p3.attribValue
28834
28834
  // (hidden) cursor is doesn't change the selection, and
28835
28835
  // thus doesn't get a reaction from ProseMirror. This
28836
28836
  // works around that.
28837
- we$1 && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (An$1(this.view, ve$2.near(this.view.state.doc.resolve(n.pos))), e.preventDefault()) : Pt$1(this.view, "pointer");
28837
+ we$1 && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (An$1(this.view, ve$2.near(this.view.state.doc.resolve(n.pos))), e.preventDefault()) : Rt$2(this.view, "pointer");
28838
28838
  }
28839
28839
  move(e) {
28840
- this.updateAllowDefault(e), Pt$1(this.view, "pointer"), e.buttons == 0 && this.done();
28840
+ this.updateAllowDefault(e), Rt$2(this.view, "pointer"), e.buttons == 0 && this.done();
28841
28841
  }
28842
28842
  updateAllowDefault(e) {
28843
28843
  !this.allowDefault && (Math.abs(this.event.x - e.clientX) > 4 || Math.abs(this.event.y - e.clientY) > 4) && (this.allowDefault = true);
28844
28844
  }
28845
28845
  }
28846
28846
  Ae.touchstart = (t) => {
28847
- t.input.lastTouch = Date.now(), Cs(t), Pt$1(t, "pointer");
28847
+ t.input.lastTouch = Date.now(), Cs(t), Rt$2(t, "pointer");
28848
28848
  };
28849
28849
  Ae.touchmove = (t) => {
28850
- t.input.lastTouch = Date.now(), Pt$1(t, "pointer");
28850
+ t.input.lastTouch = Date.now(), Rt$2(t, "pointer");
28851
28851
  };
28852
28852
  Ae.contextmenu = (t) => Cs(t);
28853
28853
  function Dc$1(t, e) {
28854
28854
  return t.composing ? true : Me$1 && Math.abs(e.timeStamp - t.input.compositionEndedAt) < 500 ? (t.input.compositionEndedAt = -2e8, true) : false;
28855
28855
  }
28856
- const Zp = yt$1 ? 5e3 : -1;
28856
+ const Zp = bt$1 ? 5e3 : -1;
28857
28857
  Oe$1.compositionstart = Oe$1.compositionupdate = (t) => {
28858
28858
  if (!t.composing) {
28859
28859
  t.domObserver.flush();
28860
28860
  let { state: e } = t, n = e.selection.$to;
28861
28861
  if (e.selection instanceof tt$2 && (e.storedMarks || !n.textOffset && n.parentOffset && n.nodeBefore.marks.some((r) => r.type.spec.inclusive === false)))
28862
28862
  t.markCursor = t.state.storedMarks || n.marks(), mo$1(t, true), t.markCursor = null;
28863
- else if (mo$1(t, !e.selection.empty), Ye$2 && e.selection.empty && n.parentOffset && !n.textOffset && n.nodeBefore.marks.length) {
28863
+ else if (mo$1(t, !e.selection.empty), Ge && e.selection.empty && n.parentOffset && !n.textOffset && n.nodeBefore.marks.length) {
28864
28864
  let r = t.domSelectionRange();
28865
28865
  for (let o = r.focusNode, i3 = r.focusOffset; o && o.nodeType == 1 && i3 != 0; ) {
28866
28866
  let s = i3 < 0 ? o.lastChild : o.childNodes[i3 - 1];
@@ -28912,7 +28912,7 @@ Actual: ` + p3.attribValue
28912
28912
  return t.initEvent("event", true, true), t.timeStamp;
28913
28913
  }
28914
28914
  function mo$1(t, e = false) {
28915
- if (!(yt$1 && t.domObserver.flushingSoon >= 0)) {
28915
+ if (!(bt$1 && t.domObserver.flushingSoon >= 0)) {
28916
28916
  if (t.domObserver.forceFlush(), Ec$1(t), e || t.docView && t.docView.dirty) {
28917
28917
  let n = ys(t);
28918
28918
  return n && !n.eq(t.state.selection) ? t.dispatch(t.state.tr.setSelection(n)) : (t.markCursor || e) && !t.state.selection.empty ? t.dispatch(t.state.tr.deleteSelection()) : t.updateState(t.state), true;
@@ -28930,7 +28930,7 @@ Actual: ` + p3.attribValue
28930
28930
  n.parentNode && n.parentNode.removeChild(n), t.focus();
28931
28931
  }, 50);
28932
28932
  }
28933
- const dr = Te$1 && Lt$1 < 15 || Tn$1 && Gf$1 < 604;
28933
+ const dr = Te$1 && Ft$1 < 15 || Tn$1 && Gf$1 < 604;
28934
28934
  Ae.copy = Oe$1.cut = (t, e) => {
28935
28935
  let n = e, r = t.state.selection, o = n.type == "cut";
28936
28936
  if (r.empty)
@@ -28969,7 +28969,7 @@ Actual: ` + p3.attribValue
28969
28969
  }
28970
28970
  Oe$1.paste = (t, e) => {
28971
28971
  let n = e;
28972
- if (t.composing && !yt$1)
28972
+ if (t.composing && !bt$1)
28973
28973
  return;
28974
28974
  let r = dr ? null : n.clipboardData, o = t.input.shiftKey && t.input.lastKeyCode != 45;
28975
28975
  r && ur$1(t, Ic$1(r), r.getData("text/html"), o, n) ? n.preventDefault() : rh$1(t, n);
@@ -29047,7 +29047,7 @@ Actual: ` + p3.attribValue
29047
29047
  };
29048
29048
  Ae.focus = (t) => {
29049
29049
  t.input.lastFocus = Date.now(), t.focused || (t.domObserver.stop(), t.dom.classList.add("ProseMirror-focused"), t.domObserver.start(), t.focused = true, setTimeout(() => {
29050
- t.docView && t.hasFocus() && !t.domObserver.currentSelection.eq(t.domSelectionRange()) && vt(t);
29050
+ t.docView && t.hasFocus() && !t.domObserver.currentSelection.eq(t.domSelectionRange()) && kt$1(t);
29051
29051
  }, 20));
29052
29052
  };
29053
29053
  Ae.blur = (t, e) => {
@@ -29055,7 +29055,7 @@ Actual: ` + p3.attribValue
29055
29055
  t.focused && (t.domObserver.stop(), t.dom.classList.remove("ProseMirror-focused"), t.domObserver.start(), n.relatedTarget && t.dom.contains(n.relatedTarget) && t.domObserver.currentSelection.clear(), t.focused = false);
29056
29056
  };
29057
29057
  Ae.beforeinput = (t, e) => {
29058
- if (we$1 && yt$1 && e.inputType == "deleteContentBackward") {
29058
+ if (we$1 && bt$1 && e.inputType == "deleteContentBackward") {
29059
29059
  t.domObserver.flushSoon();
29060
29060
  let { domChangeCount: r } = t.input;
29061
29061
  setTimeout(() => {
@@ -29097,7 +29097,7 @@ Actual: ` + p3.attribValue
29097
29097
  this.spec.destroy && this.spec.destroy(e);
29098
29098
  }
29099
29099
  };
29100
- let Bt$1 = class Bt2 {
29100
+ class _t {
29101
29101
  constructor(e, n) {
29102
29102
  this.attrs = e, this.spec = n || nn$2;
29103
29103
  }
@@ -29109,14 +29109,14 @@ Actual: ` + p3.attribValue
29109
29109
  return n.from < n.to;
29110
29110
  }
29111
29111
  eq(e) {
29112
- return this == e || e instanceof Bt2 && fr(this.attrs, e.attrs) && fr(this.spec, e.spec);
29112
+ return this == e || e instanceof _t && fr(this.attrs, e.attrs) && fr(this.spec, e.spec);
29113
29113
  }
29114
29114
  static is(e) {
29115
- return e.type instanceof Bt2;
29115
+ return e.type instanceof _t;
29116
29116
  }
29117
29117
  destroy() {
29118
29118
  }
29119
- };
29119
+ }
29120
29120
  class Ss {
29121
29121
  constructor(e, n) {
29122
29122
  this.attrs = e, this.spec = n || nn$2;
@@ -29179,7 +29179,7 @@ Actual: ` + p3.attribValue
29179
29179
  each inline node between `from` and `to`.
29180
29180
  */
29181
29181
  static inline(e, n, r, o) {
29182
- return new z(e, n, new Bt$1(r, o));
29182
+ return new z(e, n, new _t(r, o));
29183
29183
  }
29184
29184
  /**
29185
29185
  Creates a node decoration. `from` and `to` should point precisely
@@ -29200,7 +29200,7 @@ Actual: ` + p3.attribValue
29200
29200
  @internal
29201
29201
  */
29202
29202
  get inline() {
29203
- return this.type instanceof Bt$1;
29203
+ return this.type instanceof _t;
29204
29204
  }
29205
29205
  /**
29206
29206
  @internal
@@ -29331,14 +29331,14 @@ Actual: ` + p3.attribValue
29331
29331
  let i3 = e + 1, s = i3 + n.content.size;
29332
29332
  for (let a = 0; a < this.local.length; a++) {
29333
29333
  let l = this.local[a];
29334
- if (l.from < s && l.to > i3 && l.type instanceof Bt$1) {
29334
+ if (l.from < s && l.to > i3 && l.type instanceof _t) {
29335
29335
  let c3 = Math.max(i3, l.from) - i3, d = Math.min(s, l.to) - i3;
29336
29336
  c3 < d && (o || (o = [])).push(l.copy(c3, d));
29337
29337
  }
29338
29338
  }
29339
29339
  if (o) {
29340
29340
  let a = new F(o.sort(rn$2), Cn$2);
29341
- return r ? new Et([a, r]) : a;
29341
+ return r ? new It$1([a, r]) : a;
29342
29342
  }
29343
29343
  return r || be$1;
29344
29344
  }
@@ -29370,11 +29370,11 @@ Actual: ` + p3.attribValue
29370
29370
  localsInner(e) {
29371
29371
  if (this == be$1)
29372
29372
  return Cn$2;
29373
- if (e.inlineContent || !this.local.some(Bt$1.is))
29373
+ if (e.inlineContent || !this.local.some(_t.is))
29374
29374
  return this.local;
29375
29375
  let n = [];
29376
29376
  for (let r = 0; r < this.local.length; r++)
29377
- this.local[r].type instanceof Bt$1 || n.push(this.local[r]);
29377
+ this.local[r].type instanceof _t || n.push(this.local[r]);
29378
29378
  return n;
29379
29379
  }
29380
29380
  forEachSet(e) {
@@ -29384,13 +29384,13 @@ Actual: ` + p3.attribValue
29384
29384
  F.empty = new F([], []);
29385
29385
  F.removeOverlap = xs;
29386
29386
  const be$1 = F.empty;
29387
- class Et {
29387
+ let It$1 = class It2 {
29388
29388
  constructor(e) {
29389
29389
  this.members = e;
29390
29390
  }
29391
29391
  map(e, n) {
29392
29392
  const r = this.members.map((o) => o.map(e, n, nn$2));
29393
- return Et.from(r);
29393
+ return It2.from(r);
29394
29394
  }
29395
29395
  forChild(e, n) {
29396
29396
  if (n.isLeaf)
@@ -29398,12 +29398,12 @@ Actual: ` + p3.attribValue
29398
29398
  let r = [];
29399
29399
  for (let o = 0; o < this.members.length; o++) {
29400
29400
  let i3 = this.members[o].forChild(e, n);
29401
- i3 != be$1 && (i3 instanceof Et ? r = r.concat(i3.members) : r.push(i3));
29401
+ i3 != be$1 && (i3 instanceof It2 ? r = r.concat(i3.members) : r.push(i3));
29402
29402
  }
29403
- return Et.from(r);
29403
+ return It2.from(r);
29404
29404
  }
29405
29405
  eq(e) {
29406
- if (!(e instanceof Et) || e.members.length != this.members.length)
29406
+ if (!(e instanceof It2) || e.members.length != this.members.length)
29407
29407
  return false;
29408
29408
  for (let n = 0; n < this.members.length; n++)
29409
29409
  if (!this.members[n].eq(e.members[n]))
@@ -29434,14 +29434,14 @@ Actual: ` + p3.attribValue
29434
29434
  case 1:
29435
29435
  return e[0];
29436
29436
  default:
29437
- return new Et(e.every((n) => n instanceof F) ? e : e.reduce((n, r) => n.concat(r instanceof F ? r : r.members), []));
29437
+ return new It2(e.every((n) => n instanceof F) ? e : e.reduce((n, r) => n.concat(r instanceof F ? r : r.members), []));
29438
29438
  }
29439
29439
  }
29440
29440
  forEachSet(e) {
29441
29441
  for (let n = 0; n < this.members.length; n++)
29442
29442
  this.members[n].forEachSet(e);
29443
29443
  }
29444
- }
29444
+ };
29445
29445
  function ih$1(t, e, n, r, o, i3, s) {
29446
29446
  let a = t.slice();
29447
29447
  for (let c3 = 0, d = i3; c3 < n.maps.length; c3++) {
@@ -29574,7 +29574,7 @@ Actual: ` + p3.attribValue
29574
29574
  return t.someProp("decorations", (n) => {
29575
29575
  let r = n(t.state);
29576
29576
  r && r != be$1 && e.push(r);
29577
- }), t.cursorWrapper && e.push(F.create(t.state.doc, [t.cursorWrapper.deco])), Et.from(e);
29577
+ }), t.cursorWrapper && e.push(F.create(t.state.doc, [t.cursorWrapper.deco])), It$1.from(e);
29578
29578
  }
29579
29579
  const ah$1 = {
29580
29580
  childList: true,
@@ -29583,7 +29583,7 @@ Actual: ` + p3.attribValue
29583
29583
  attributes: true,
29584
29584
  attributeOldValue: true,
29585
29585
  subtree: true
29586
- }, lh$1 = Te$1 && Lt$1 <= 11;
29586
+ }, lh$1 = Te$1 && Ft$1 <= 11;
29587
29587
  let ch$1 = class ch {
29588
29588
  constructor() {
29589
29589
  this.anchorNode = null, this.anchorOffset = 0, this.focusNode = null, this.focusOffset = 0;
@@ -29603,7 +29603,7 @@ Actual: ` + p3.attribValue
29603
29603
  this.view = e, this.handleDOMChange = n, this.queue = [], this.flushingSoon = -1, this.observer = null, this.currentSelection = new ch$1(), this.onCharData = null, this.suppressingSelectionUpdates = false, this.lastChangedTextNode = null, this.observer = window.MutationObserver && new window.MutationObserver((r) => {
29604
29604
  for (let o = 0; o < r.length; o++)
29605
29605
  this.queue.push(r[o]);
29606
- Te$1 && Lt$1 <= 11 && r.some((o) => o.type == "childList" && o.removedNodes.length || o.type == "characterData" && o.oldValue.length > o.target.nodeValue.length) ? this.flushSoon() : this.flush();
29606
+ Te$1 && Ft$1 <= 11 && r.some((o) => o.type == "childList" && o.removedNodes.length || o.type == "characterData" && o.oldValue.length > o.target.nodeValue.length) ? this.flushSoon() : this.flush();
29607
29607
  }), lh$1 && (this.onCharData = (r) => {
29608
29608
  this.queue.push({ target: r.target, type: "characterData", oldValue: r.prevValue }), this.flushSoon();
29609
29609
  }), this.onSelectionChange = this.onSelectionChange.bind(this);
@@ -29643,8 +29643,8 @@ Actual: ` + p3.attribValue
29643
29643
  onSelectionChange() {
29644
29644
  if (wa$1(this.view)) {
29645
29645
  if (this.suppressingSelectionUpdates)
29646
- return vt(this.view);
29647
- if (Te$1 && Lt$1 <= 11 && !this.view.state.selection.empty) {
29646
+ return kt$1(this.view);
29647
+ if (Te$1 && Ft$1 <= 11 && !this.view.state.selection.empty) {
29648
29648
  let e = this.view.domSelectionRange();
29649
29649
  if (e.focusNode && ln$2(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset))
29650
29650
  return this.flushSoon();
@@ -29691,7 +29691,7 @@ Actual: ` + p3.attribValue
29691
29691
  let u = this.registerMutation(n[d], l);
29692
29692
  u && (i3 = i3 < 0 ? u.from : Math.min(u.from, i3), s = s < 0 ? u.to : Math.max(u.to, s), u.typeOver && (a = true));
29693
29693
  }
29694
- if (Ye$2 && l.length) {
29694
+ if (Ge && l.length) {
29695
29695
  let d = l.filter((u) => u.nodeName == "BR");
29696
29696
  if (d.length == 2) {
29697
29697
  let [u, f3] = d;
@@ -29705,7 +29705,7 @@ Actual: ` + p3.attribValue
29705
29705
  }
29706
29706
  }
29707
29707
  let c3 = null;
29708
- i3 < 0 && o && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && Io$1(r) && (c3 = ys(e)) && c3.eq(ve$2.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, vt(e), this.currentSelection.set(r), e.scrollToSelection()) : (i3 > -1 || o) && (i3 > -1 && (e.docView.markDirty(i3, s), uh$1(e)), this.handleDOMChange(i3, s, a, l), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || vt(e), this.currentSelection.set(r));
29708
+ i3 < 0 && o && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && Io$1(r) && (c3 = ys(e)) && c3.eq(ve$2.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, kt$1(e), this.currentSelection.set(r), e.scrollToSelection()) : (i3 > -1 || o) && (i3 > -1 && (e.docView.markDirty(i3, s), uh$1(e)), this.handleDOMChange(i3, s, a, l), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || kt$1(e), this.currentSelection.set(r));
29709
29709
  }
29710
29710
  registerMutation(e, n) {
29711
29711
  if (n.indexOf(e.target) > -1)
@@ -29722,7 +29722,7 @@ Actual: ` + p3.attribValue
29722
29722
  if (r.contentDOM && r.contentDOM != r.dom && !r.contentDOM.contains(e.target))
29723
29723
  return { from: r.posBefore, to: r.posAfter };
29724
29724
  let o = e.previousSibling, i3 = e.nextSibling;
29725
- if (Te$1 && Lt$1 <= 11 && e.addedNodes.length)
29725
+ if (Te$1 && Ft$1 <= 11 && e.addedNodes.length)
29726
29726
  for (let d = 0; d < e.addedNodes.length; d++) {
29727
29727
  let { previousSibling: u, nextSibling: f3 } = e.addedNodes[d];
29728
29728
  (!u || Array.prototype.indexOf.call(e.addedNodes, u) < 0) && (o = u), (!f3 || Array.prototype.indexOf.call(e.addedNodes, f3) < 0) && (i3 = f3);
@@ -29743,7 +29743,7 @@ Actual: ` + p3.attribValue
29743
29743
  let Ta$1 = /* @__PURE__ */ new WeakMap(), Da$1 = false;
29744
29744
  function uh$1(t) {
29745
29745
  if (!Ta$1.has(t) && (Ta$1.set(t, null), ["normal", "nowrap", "pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace) !== -1)) {
29746
- if (t.requiresGeckoHackNode = Ye$2, Da$1)
29746
+ if (t.requiresGeckoHackNode = Ge, Da$1)
29747
29747
  return;
29748
29748
  console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."), Da$1 = true;
29749
29749
  }
@@ -29821,7 +29821,7 @@ Actual: ` + p3.attribValue
29821
29821
  if (t.input.compositionPendingChanges = 0, e < 0) {
29822
29822
  let x = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, $ = ys(t, x);
29823
29823
  if ($ && !t.state.selection.eq($)) {
29824
- if (we$1 && yt$1 && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (U3) => U3(t, Zt$1(13, "Enter"))))
29824
+ if (we$1 && bt$1 && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (U3) => U3(t, Zt$1(13, "Enter"))))
29825
29825
  return;
29826
29826
  let _ = t.state.tr.setSelection($);
29827
29827
  x == "pointer" ? _.setMeta("pointer", true) : x == "key" && _.scrollIntoView(), i3 && _.setMeta("composition", i3), t.dispatch(_);
@@ -29833,7 +29833,7 @@ Actual: ` + p3.attribValue
29833
29833
  let l = t.state.selection, c3 = hh$1(t, e, n), d = t.state.doc, u = d.slice(c3.from, c3.to), f3, p3;
29834
29834
  t.input.lastKeyCode === 8 && Date.now() - 100 < t.input.lastKeyCodeTime ? (f3 = t.state.selection.to, p3 = "end") : (f3 = t.state.selection.from, p3 = "start"), t.input.lastKeyCode = null;
29835
29835
  let h3 = vh$1(u.content, c3.doc.content, c3.from, f3, p3);
29836
- if (h3 && t.input.domChangeCount++, (Tn$1 && t.input.lastIOSEnter > Date.now() - 225 || yt$1) && o.some((x) => x.nodeType == 1 && !gh$1.test(x.nodeName)) && (!h3 || h3.endA >= h3.endB) && t.someProp("handleKeyDown", (x) => x(t, Zt$1(13, "Enter")))) {
29836
+ if (h3 && t.input.domChangeCount++, (Tn$1 && t.input.lastIOSEnter > Date.now() - 225 || bt$1) && o.some((x) => x.nodeType == 1 && !gh$1.test(x.nodeName)) && (!h3 || h3.endA >= h3.endB) && t.someProp("handleKeyDown", (x) => x(t, Zt$1(13, "Enter")))) {
29837
29837
  t.input.lastIOSEnter = 0;
29838
29838
  return;
29839
29839
  }
@@ -29850,17 +29850,17 @@ Actual: ` + p3.attribValue
29850
29850
  }
29851
29851
  return;
29852
29852
  }
29853
- t.state.selection.from < t.state.selection.to && h3.start == h3.endB && t.state.selection instanceof tt$2 && (h3.start > t.state.selection.from && h3.start <= t.state.selection.from + 2 && t.state.selection.from >= c3.from ? h3.start = t.state.selection.from : h3.endA < t.state.selection.to && h3.endA >= t.state.selection.to - 2 && t.state.selection.to <= c3.to && (h3.endB += t.state.selection.to - h3.endA, h3.endA = t.state.selection.to)), Te$1 && Lt$1 <= 11 && h3.endB == h3.start + 1 && h3.endA == h3.start && h3.start > c3.from && c3.doc.textBetween(h3.start - c3.from - 1, h3.start - c3.from + 1) == "  " && (h3.start--, h3.endA--, h3.endB--);
29853
+ t.state.selection.from < t.state.selection.to && h3.start == h3.endB && t.state.selection instanceof tt$2 && (h3.start > t.state.selection.from && h3.start <= t.state.selection.from + 2 && t.state.selection.from >= c3.from ? h3.start = t.state.selection.from : h3.endA < t.state.selection.to && h3.endA >= t.state.selection.to - 2 && t.state.selection.to <= c3.to && (h3.endB += t.state.selection.to - h3.endA, h3.endA = t.state.selection.to)), Te$1 && Ft$1 <= 11 && h3.endB == h3.start + 1 && h3.endA == h3.start && h3.start > c3.from && c3.doc.textBetween(h3.start - c3.from - 1, h3.start - c3.from + 1) == "  " && (h3.start--, h3.endA--, h3.endB--);
29854
29854
  let m = c3.doc.resolveNoCache(h3.start - c3.from), g = c3.doc.resolveNoCache(h3.endB - c3.from), b = d.resolve(h3.start), w = m.sameParent(g) && m.parent.inlineContent && b.end() >= h3.endA, C;
29855
29855
  if ((Tn$1 && t.input.lastIOSEnter > Date.now() - 225 && (!w || o.some((x) => x.nodeName == "DIV" || x.nodeName == "P")) || !w && m.pos < c3.doc.content.size && (!m.sameParent(g) || !m.parent.inlineContent) && (C = ve$2.findFrom(c3.doc.resolve(m.pos + 1), 1, true)) && C.head > m.pos) && t.someProp("handleKeyDown", (x) => x(t, Zt$1(13, "Enter")))) {
29856
29856
  t.input.lastIOSEnter = 0;
29857
29857
  return;
29858
29858
  }
29859
29859
  if (t.state.selection.anchor > h3.start && wh$1(d, h3.start, h3.endA, m, g) && t.someProp("handleKeyDown", (x) => x(t, Zt$1(8, "Backspace")))) {
29860
- yt$1 && we$1 && t.domObserver.suppressSelectionUpdates();
29860
+ bt$1 && we$1 && t.domObserver.suppressSelectionUpdates();
29861
29861
  return;
29862
29862
  }
29863
- we$1 && h3.endB == h3.start && (t.input.lastChromeDelete = Date.now()), yt$1 && !w && m.start() != g.start() && g.parentOffset == 0 && m.depth == g.depth && c3.sel && c3.sel.anchor == c3.sel.head && c3.sel.head == h3.endA && (h3.endB -= 2, g = c3.doc.resolveNoCache(h3.endB - c3.from), setTimeout(() => {
29863
+ we$1 && h3.endB == h3.start && (t.input.lastChromeDelete = Date.now()), bt$1 && !w && m.start() != g.start() && g.parentOffset == 0 && m.depth == g.depth && c3.sel && c3.sel.anchor == c3.sel.head && c3.sel.head == h3.endA && (h3.endB -= 2, g = c3.doc.resolveNoCache(h3.endB - c3.from), setTimeout(() => {
29864
29864
  t.someProp("handleKeyDown", function(x) {
29865
29865
  return x(t, Zt$1(13, "Enter"));
29866
29866
  });
@@ -29868,7 +29868,7 @@ Actual: ` + p3.attribValue
29868
29868
  let y = h3.start, S = h3.endA, k, M, L3;
29869
29869
  if (w) {
29870
29870
  if (m.pos == g.pos)
29871
- Te$1 && Lt$1 <= 11 && m.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() => vt(t), 20)), k = t.state.tr.delete(y, S), M = d.resolve(h3.start).marksAcross(d.resolve(h3.endA));
29871
+ Te$1 && Ft$1 <= 11 && m.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() => kt$1(t), 20)), k = t.state.tr.delete(y, S), M = d.resolve(h3.start).marksAcross(d.resolve(h3.endA));
29872
29872
  else if (
29873
29873
  // Adding or removing a mark
29874
29874
  h3.endA == h3.endB && (L3 = bh$1(m.parent.content.cut(m.parentOffset, g.parentOffset), b.parent.content.cut(b.parentOffset, h3.endA - b.start())))
@@ -30042,7 +30042,7 @@ Actual: ` + p3.attribValue
30042
30042
  let h3 = we$1 ? this.trackWrites = this.domSelectionRange().focusNode : null;
30043
30043
  this.composing && (this.input.compositionNode = Qp(this)), (i3 || !this.docView.update(e.doc, c3, l, this)) && (this.docView.updateOuterDeco(c3), this.docView.destroy(), this.docView = pa$1(e.doc, c3, l, this.dom, this)), h3 && !this.trackWrites && (p3 = true);
30044
30044
  }
30045
- p3 || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && xp$1(this)) ? vt(this, p3) : (wc$1(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
30045
+ p3 || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && xp$1(this)) ? kt$1(this, p3) : (wc$1(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
30046
30046
  }
30047
30047
  this.updatePluginViews(o), !((r = this.dragging) === null || r === void 0) && r.node && !o.doc.eq(e.doc) && this.updateDraggedNode(this.dragging, o), d == "reset" ? this.dom.scrollTop = 0 : d == "to selection" ? this.scrollToSelection() : f3 && tp$1(f3);
30048
30048
  }
@@ -30131,7 +30131,7 @@ Actual: ` + p3.attribValue
30131
30131
  Focus the editor.
30132
30132
  */
30133
30133
  focus() {
30134
- this.domObserver.stop(), this.editable && np$1(this.dom), vt(this), this.domObserver.start();
30134
+ this.domObserver.stop(), this.editable && np$1(this.dom), kt$1(this), this.domObserver.start();
30135
30135
  }
30136
30136
  /**
30137
30137
  Get the document root in which the editor exists. This will
@@ -30350,7 +30350,7 @@ Actual: ` + p3.attribValue
30350
30350
  if (t.spec.state || t.spec.filterTransaction || t.spec.appendTransaction)
30351
30351
  throw new RangeError("Plugins passed directly to the view must not have a state component");
30352
30352
  }
30353
- const pr$1 = Math.floor, Sh$1 = Math.abs, _t = (t, e) => t < e ? t : e, Dn$2 = (t, e) => t > e ? t : e, xh$1 = (t) => t !== 0 ? t < 0 : 1 / t < 0, Mh$1 = 64, hr$1 = 128, Ah$1 = 1 << 29, _a$1 = 63, tr$1 = 127, Oh$1 = 2147483647, Th$1 = Number.isInteger || ((t) => typeof t == "number" && isFinite(t) && pr$1(t) === t), Dh$1 = () => /* @__PURE__ */ new Set(), Nh$1 = Array.isArray, Eh$1 = String.fromCharCode, Ih$1 = (t) => t.toLowerCase(), Ph$1 = /^\s*/g, Rh$1 = (t) => t.replace(Ph$1, ""), Lh$1 = /([A-Z])/g, za$1 = (t, e) => Rh$1(t.replace(Lh$1, (n) => `${e}${Ih$1(n)}`)), Fh$1 = (t) => {
30353
+ const pr$1 = Math.floor, Sh$1 = Math.abs, zt$2 = (t, e) => t < e ? t : e, Dn$2 = (t, e) => t > e ? t : e, xh$1 = (t) => t !== 0 ? t < 0 : 1 / t < 0, Mh$1 = 64, hr$1 = 128, Ah$1 = 1 << 29, _a$1 = 63, tr$1 = 127, Oh$1 = 2147483647, Th$1 = Number.isInteger || ((t) => typeof t == "number" && isFinite(t) && pr$1(t) === t), Dh$1 = () => /* @__PURE__ */ new Set(), Nh$1 = Array.isArray, Eh$1 = String.fromCharCode, Ih$1 = (t) => t.toLowerCase(), Ph$1 = /^\s*/g, Rh$1 = (t) => t.replace(Ph$1, ""), Lh$1 = /([A-Z])/g, za$1 = (t, e) => Rh$1(t.replace(Lh$1, (n) => `${e}${Ih$1(n)}`)), Fh$1 = (t) => {
30354
30354
  const e = unescape(encodeURIComponent(t)), n = e.length, r = new Uint8Array(n);
30355
30355
  for (let o = 0; o < n; o++)
30356
30356
  r[o] = /** @type {number} */
@@ -30416,7 +30416,7 @@ Actual: ` + p3.attribValue
30416
30416
  );
30417
30417
  }, $a$1 = mr$1 && /** @type {any} */
30418
30418
  mr$1.encodeInto ? Kh$1 : Xh$1, Jh$1 = (t, e) => {
30419
- const n = t.cbuf.length, r = t.cpos, o = _t(n - r, e.length), i3 = e.length - o;
30419
+ const n = t.cbuf.length, r = t.cpos, o = zt$2(n - r, e.length), i3 = e.length - o;
30420
30420
  t.cbuf.set(e.subarray(0, o), r), t.cpos += o, i3 > 0 && (t.bufs.push(t.cbuf), t.cbuf = new Uint8Array(Dn$2(n * 2, i3)), t.cbuf.set(e.subarray(o)), t.cpos = i3);
30421
30421
  }, zc$1 = (t, e) => {
30422
30422
  gr$1(t, e.byteLength), Jh$1(t, e);
@@ -30498,7 +30498,7 @@ Actual: ` + p3.attribValue
30498
30498
  remove: t.length - n - r,
30499
30499
  insert: e.slice(n, e.length - r)
30500
30500
  };
30501
- }, lm = am, te = new op$2("y-sync"), zt$2 = new op$2("y-undo"), Ur$1 = new op$2("yjs-cursor"), cm = Math.random, dm = (t) => t[pr$1(cm() * t.length)], Ha$1 = (t) => t === void 0 ? null : t;
30501
+ }, lm = am, te = new op$2("y-sync"), $t$1 = new op$2("y-undo"), Ur$1 = new op$2("yjs-cursor"), cm = Math.random, dm = (t) => t[pr$1(cm() * t.length)], Ha$1 = (t) => t === void 0 ? null : t;
30502
30502
  class um {
30503
30503
  constructor() {
30504
30504
  this.map = /* @__PURE__ */ new Map();
@@ -30523,25 +30523,25 @@ Actual: ` + p3.attribValue
30523
30523
  } catch {
30524
30524
  }
30525
30525
  const pm = jc$1, Nn$2 = typeof me$1 < "u" && me$1.release && /node|io\.js/.test(me$1.release.name) && Object.prototype.toString.call(typeof me$1 < "u" ? me$1 : 0) === "[object process]", Wc$1 = typeof window < "u" && typeof document < "u" && !Nn$2;
30526
- let Qe$2;
30526
+ let et$1;
30527
30527
  const hm = () => {
30528
- if (Qe$2 === void 0)
30528
+ if (et$1 === void 0)
30529
30529
  if (Nn$2) {
30530
- Qe$2 = oo$2();
30530
+ et$1 = oo$2();
30531
30531
  const t = me$1.argv;
30532
30532
  let e = null;
30533
30533
  for (let n = 0; n < t.length; n++) {
30534
30534
  const r = t[n];
30535
- r[0] === "-" ? (e !== null && Qe$2.set(e, ""), e = r) : e !== null && (Qe$2.set(e, r), e = null);
30535
+ r[0] === "-" ? (e !== null && et$1.set(e, ""), e = r) : e !== null && (et$1.set(e, r), e = null);
30536
30536
  }
30537
- e !== null && Qe$2.set(e, "");
30538
- } else typeof location == "object" ? (Qe$2 = oo$2(), (location.search || "?").slice(1).split("&").forEach((t) => {
30537
+ e !== null && et$1.set(e, "");
30538
+ } else typeof location == "object" ? (et$1 = oo$2(), (location.search || "?").slice(1).split("&").forEach((t) => {
30539
30539
  if (t.length !== 0) {
30540
30540
  const [e, n] = t.split("=");
30541
- Qe$2.set(`--${za$1(e, "-")}`, n), Qe$2.set(`-${za$1(e, "-")}`, n);
30541
+ et$1.set(`--${za$1(e, "-")}`, n), et$1.set(`-${za$1(e, "-")}`, n);
30542
30542
  }
30543
- })) : Qe$2 = oo$2();
30544
- return Qe$2;
30543
+ })) : et$1 = oo$2();
30544
+ return et$1;
30545
30545
  }, Ei$1 = (t) => hm().has(t), Ii$1 = (t) => Ha$1(Nn$2 ? me$1.env[t.toUpperCase().replaceAll("-", "_")] : pm.getItem(t)), Uc$1 = (t) => Ei$1("--" + t) || Ii$1(t) !== null;
30546
30546
  Uc$1("production");
30547
30547
  const mm = Nn$2 && rm(me$1.env.FORCE_COLOR, ["true", "1", "2"]);
@@ -30562,7 +30562,7 @@ Actual: ` + p3.attribValue
30562
30562
  destroy() {
30563
30563
  t(this._);
30564
30564
  }
30565
- }, bm = ym(clearTimeout), As = (t, e) => new bm(setTimeout(e, t)), rt$2 = (t, e) => t >>> e | t << 32 - e, wm = (t) => rt$2(t, 2) ^ rt$2(t, 13) ^ rt$2(t, 22), vm = (t) => rt$2(t, 6) ^ rt$2(t, 11) ^ rt$2(t, 25), km = (t) => rt$2(t, 7) ^ rt$2(t, 18) ^ t >>> 3, Cm = (t) => rt$2(t, 17) ^ rt$2(t, 19) ^ t >>> 10, Sm = new Uint32Array([
30565
+ }, bm = ym(clearTimeout), As = (t, e) => new bm(setTimeout(e, t)), ot = (t, e) => t >>> e | t << 32 - e, wm = (t) => ot(t, 2) ^ ot(t, 13) ^ ot(t, 22), vm = (t) => ot(t, 6) ^ ot(t, 11) ^ ot(t, 25), km = (t) => ot(t, 7) ^ ot(t, 18) ^ t >>> 3, Cm = (t) => ot(t, 17) ^ ot(t, 19) ^ t >>> 10, Sm = new Uint32Array([
30566
30566
  1116352408,
30567
30567
  1899447441,
30568
30568
  3049323471,
@@ -30776,7 +30776,7 @@ Actual: ` + p3.attribValue
30776
30776
  c3.state.doc.type.createAndFill().content
30777
30777
  ) !== null)) {
30778
30778
  if (s = true, d.addToHistory === false && !d.isChangeOrigin) {
30779
- const u = zt$2.getState(c3.state), f3 = u && u.undoManager;
30779
+ const u = $t$1.getState(c3.state), f3 = u && u.undoManager;
30780
30780
  f3 && f3.stopCapturing();
30781
30781
  }
30782
30782
  a.mux(() => {
@@ -30903,7 +30903,7 @@ Actual: ` + p3.attribValue
30903
30903
  new oe$1(Z.from(n), 0, 0)
30904
30904
  );
30905
30905
  if (e) {
30906
- const o = _t(Dn$2(e.anchor, 0), r.doc.content.size), i3 = _t(Dn$2(e.head, 0), r.doc.content.size);
30906
+ const o = zt$2(Dn$2(e.anchor, 0), r.doc.content.size), i3 = zt$2(Dn$2(e.head, 0), r.doc.content.size);
30907
30907
  r.setSelection(tt$2.create(r.doc, o, i3));
30908
30908
  }
30909
30909
  this.prosemirrorView.dispatch(
@@ -31196,7 +31196,7 @@ Actual: ` + p3.attribValue
31196
31196
  }, wo$1 = (t, e) => t === e || t instanceof Array && e instanceof Array && t.length === e.length && t.every(
31197
31197
  (n, r) => e[r] === n
31198
31198
  ), Wa$1 = (t, e, n) => {
31199
- const r = t.toArray(), o = Lo$1(e), i3 = o.length, s = r.length, a = _t(s, i3);
31199
+ const r = t.toArray(), o = Lo$1(e), i3 = o.length, s = r.length, a = zt$2(s, i3);
31200
31200
  let l = 0, c3 = 0, d = false;
31201
31201
  for (; l < a; l++) {
31202
31202
  const u = r[l], f3 = o[l];
@@ -31263,7 +31263,7 @@ Actual: ` + p3.attribValue
31263
31263
  for (const p3 in u)
31264
31264
  f3[p3] === void 0 && e.removeAttribute(p3);
31265
31265
  }
31266
- const o = Lo$1(n), i3 = o.length, s = e.toArray(), a = s.length, l = _t(i3, a);
31266
+ const o = Lo$1(n), i3 = o.length, s = e.toArray(), a = s.length, l = zt$2(i3, a);
31267
31267
  let c3 = 0, d = 0;
31268
31268
  for (; c3 < l; c3++) {
31269
31269
  const u = s[c3], f3 = o[c3];
@@ -31493,13 +31493,13 @@ Actual: ` + p3.attribValue
31493
31493
  );
31494
31494
  if (u !== null && f3 !== null) {
31495
31495
  const p3 = Dn$2(t.doc.content.size - 1, 0);
31496
- u = _t(u, p3), f3 = _t(f3, p3), a.push(
31496
+ u = zt$2(u, p3), f3 = zt$2(f3, p3), a.push(
31497
31497
  z.widget(f3, () => r(d, c3), {
31498
31498
  key: c3 + "",
31499
31499
  side: 10
31500
31500
  })
31501
31501
  );
31502
- const h3 = _t(u, f3), m = Dn$2(u, f3);
31502
+ const h3 = zt$2(u, f3), m = Dn$2(u, f3);
31503
31503
  a.push(
31504
31504
  z.inline(h3, m, o(d, c3), {
31505
31505
  inclusiveEnd: true,
@@ -31580,15 +31580,15 @@ Actual: ` + p3.attribValue
31580
31580
  };
31581
31581
  }
31582
31582
  }), ng = (t) => {
31583
- const e = zt$2.getState(t).undoManager;
31583
+ const e = $t$1.getState(t).undoManager;
31584
31584
  if (e != null)
31585
31585
  return e.undo(), true;
31586
31586
  }, rg = (t) => {
31587
- const e = zt$2.getState(t).undoManager;
31587
+ const e = $t$1.getState(t).undoManager;
31588
31588
  if (e != null)
31589
31589
  return e.redo(), true;
31590
31590
  }, og = /* @__PURE__ */ new Set(["paragraph"]), ig = (t, e) => !(t instanceof T.Item) || !(t.content instanceof T.ContentType) || !(t.content.type instanceof T.Text || t.content.type instanceof T.XmlElement && e.has(t.content.type.nodeName)) || t.content.type._length === 0, sg = ({ protectedNodes: t = og, trackedOrigins: e = [], undoManager: n = null } = {}) => new sp$2({
31591
- key: zt$2,
31591
+ key: $t$1,
31592
31592
  state: {
31593
31593
  init: (r, o) => {
31594
31594
  const i3 = te.getState(o), s = n || new T.UndoManager(i3.type, {
@@ -31620,10 +31620,10 @@ Actual: ` + p3.attribValue
31620
31620
  }
31621
31621
  },
31622
31622
  view: (r) => {
31623
- const o = te.getState(r.state), i3 = zt$2.getState(r.state).undoManager;
31623
+ const o = te.getState(r.state), i3 = $t$1.getState(r.state).undoManager;
31624
31624
  return i3.on("stack-item-added", ({ stackItem: s }) => {
31625
31625
  const a = o.binding;
31626
- a && s.meta.set(a, zt$2.getState(r.state).prevSel);
31626
+ a && s.meta.set(a, $t$1.getState(r.state).prevSel);
31627
31627
  }), i3.on("stack-item-popped", ({ stackItem: s }) => {
31628
31628
  const a = o.binding;
31629
31629
  a && (a.beforeTransactionSelection = s.meta.get(a) || a.beforeTransactionSelection);
@@ -31634,10 +31634,10 @@ Actual: ` + p3.attribValue
31634
31634
  };
31635
31635
  }
31636
31636
  });
31637
- var tt$1;
31637
+ var nt$1;
31638
31638
  class ag {
31639
31639
  constructor() {
31640
- ut$1(this, tt$1, /* @__PURE__ */ new Map());
31640
+ ft(this, nt$1, /* @__PURE__ */ new Map());
31641
31641
  }
31642
31642
  /**
31643
31643
  * Subscribe to the event.
@@ -31645,8 +31645,8 @@ Actual: ` + p3.attribValue
31645
31645
  * @param fn Callback.
31646
31646
  */
31647
31647
  on(e, n) {
31648
- const r = Ze$2(this, tt$1).get(e);
31649
- r ? r.push(n) : Ze$2(this, tt$1).set(e, [n]);
31648
+ const r = Qe$2(this, nt$1).get(e);
31649
+ r ? r.push(n) : Qe$2(this, nt$1).set(e, [n]);
31650
31650
  }
31651
31651
  /**
31652
31652
  * Emit event.
@@ -31654,7 +31654,7 @@ Actual: ` + p3.attribValue
31654
31654
  * @param args Arguments.
31655
31655
  */
31656
31656
  emit(e, ...n) {
31657
- const r = Ze$2(this, tt$1).get(e);
31657
+ const r = Qe$2(this, nt$1).get(e);
31658
31658
  if (r)
31659
31659
  for (const o of r)
31660
31660
  o.apply(this, n);
@@ -31666,21 +31666,21 @@ Actual: ` + p3.attribValue
31666
31666
  * @param fn Callback.
31667
31667
  */
31668
31668
  off(e, n) {
31669
- const r = Ze$2(this, tt$1).get(e);
31670
- r && (n ? Ze$2(this, tt$1).set(
31669
+ const r = Qe$2(this, nt$1).get(e);
31670
+ r && (n ? Qe$2(this, nt$1).set(
31671
31671
  e,
31672
31672
  r.filter((o) => o !== n)
31673
- ) : Ze$2(this, tt$1).delete(e));
31673
+ ) : Qe$2(this, nt$1).delete(e));
31674
31674
  }
31675
31675
  /**
31676
31676
  * Remove all registered events and subscriptions.
31677
31677
  */
31678
31678
  removeAllListeners() {
31679
- jo$1(this, tt$1, /* @__PURE__ */ new Map());
31679
+ jo$1(this, nt$1, /* @__PURE__ */ new Map());
31680
31680
  }
31681
31681
  }
31682
- tt$1 = /* @__PURE__ */ new WeakMap();
31683
- var Vt$2 = {
31682
+ nt$1 = /* @__PURE__ */ new WeakMap();
31683
+ var Ht$2 = {
31684
31684
  8: "Backspace",
31685
31685
  9: "Tab",
31686
31686
  10: "Enter",
@@ -31759,13 +31759,13 @@ Actual: ` + p3.attribValue
31759
31759
  221: "}",
31760
31760
  222: '"'
31761
31761
  }, lg = typeof navigator < "u" && /Mac/.test(navigator.platform), cg = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
31762
- for (var ye$1 = 0; ye$1 < 10; ye$1++) Vt$2[48 + ye$1] = Vt$2[96 + ye$1] = String(ye$1);
31763
- for (var ye$1 = 1; ye$1 <= 24; ye$1++) Vt$2[ye$1 + 111] = "F" + ye$1;
31762
+ for (var ye$1 = 0; ye$1 < 10; ye$1++) Ht$2[48 + ye$1] = Ht$2[96 + ye$1] = String(ye$1);
31763
+ for (var ye$1 = 1; ye$1 <= 24; ye$1++) Ht$2[ye$1 + 111] = "F" + ye$1;
31764
31764
  for (var ye$1 = 65; ye$1 <= 90; ye$1++)
31765
- Vt$2[ye$1] = String.fromCharCode(ye$1 + 32), ko$1[ye$1] = String.fromCharCode(ye$1);
31766
- for (var oi$1 in Vt$2) ko$1.hasOwnProperty(oi$1) || (ko$1[oi$1] = Vt$2[oi$1]);
31765
+ Ht$2[ye$1] = String.fromCharCode(ye$1 + 32), ko$1[ye$1] = String.fromCharCode(ye$1);
31766
+ for (var oi$1 in Ht$2) ko$1.hasOwnProperty(oi$1) || (ko$1[oi$1] = Ht$2[oi$1]);
31767
31767
  function dg(t) {
31768
- var e = lg && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || cg && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", n = !e && t.key || (t.shiftKey ? ko$1 : Vt$2)[t.keyCode] || t.key || "Unidentified";
31768
+ var e = lg && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || cg && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", n = !e && t.key || (t.shiftKey ? ko$1 : Ht$2)[t.keyCode] || t.key || "Unidentified";
31769
31769
  return n == "Esc" && (n = "Escape"), n == "Del" && (n = "Delete"), n == "Left" && (n = "ArrowLeft"), n == "Up" && (n = "ArrowUp"), n == "Right" && (n = "ArrowRight"), n == "Down" && (n = "ArrowDown"), n;
31770
31770
  }
31771
31771
  const ug = typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : false;
@@ -31814,7 +31814,7 @@ Actual: ` + p3.attribValue
31814
31814
  if (a && a(n.state, n.dispatch, n))
31815
31815
  return true;
31816
31816
  }
31817
- if ((r.shiftKey || r.altKey || r.metaKey || o.charCodeAt(0) > 127) && (i3 = Vt$2[r.keyCode]) && i3 != o) {
31817
+ if ((r.shiftKey || r.altKey || r.metaKey || o.charCodeAt(0) > 127) && (i3 = Ht$2[r.keyCode]) && i3 != o) {
31818
31818
  let a = e[ii$1(i3, r)];
31819
31819
  if (a && a(n.state, n.dispatch, n))
31820
31820
  return true;
@@ -31831,7 +31831,7 @@ Actual: ` + p3.attribValue
31831
31831
  }
31832
31832
  return t;
31833
31833
  }
31834
- function St$1(t, e) {
31834
+ function xt$1(t, e) {
31835
31835
  if (typeof t == "string") {
31836
31836
  if (!e.marks[t])
31837
31837
  throw Error(`There is no mark type named '${t}' in schema.`);
@@ -31940,7 +31940,7 @@ Actual: ` + p3.attribValue
31940
31940
  * @returns The mark attrs.
31941
31941
  */
31942
31942
  static getMarkAttributes(e, n) {
31943
- const r = St$1(n, e.schema), i3 = No$1(e).find((s) => s.type.name === r.name);
31943
+ const r = xt$1(n, e.schema), i3 = No$1(e).find((s) => s.type.name === r.name);
31944
31944
  return i3 ? { ...i3.attrs } : {};
31945
31945
  }
31946
31946
  /**
@@ -32021,7 +32021,7 @@ Actual: ` + p3.attribValue
32021
32021
  }
32022
32022
  }
32023
32023
  return r;
32024
- }, ut$1(N, Fn$1);
32024
+ }, ft(N, Fn$1);
32025
32025
  function mg(t = {}) {
32026
32026
  return Object.keys(t).length === 0 && t.constructor === Object;
32027
32027
  }
@@ -32107,7 +32107,7 @@ Actual: ` + p3.attribValue
32107
32107
  })), [i3.name, c3];
32108
32108
  });
32109
32109
  return Object.fromEntries(o);
32110
- }, ut$1(ar$1, Bn$1);
32110
+ }, ft(ar$1, Bn$1);
32111
32111
  let _i$1 = ar$1;
32112
32112
  function Jn$2(t, e) {
32113
32113
  return e.nodes[t] || e.marks[t] || null;
@@ -32376,7 +32376,7 @@ Actual: ` + p3.attribValue
32376
32376
  var _n$2, ed$1, td$1;
32377
32377
  const xn$2 = class xn2 {
32378
32378
  constructor(e, n, r) {
32379
- ut$1(this, _n$2);
32379
+ ft(this, _n$2);
32380
32380
  P(this, "editor");
32381
32381
  P(this, "schema");
32382
32382
  P(this, "extensions");
@@ -32771,7 +32771,7 @@ Actual: ` + p3.attribValue
32771
32771
  for (let b = s.length - 1; b >= 0; b--)
32772
32772
  h3 = Z.from(s[b].create(null, h3));
32773
32773
  h3 = Z.from(o.copy(h3));
32774
- let m = t.tr.step(new Je$3(e.pos - 1, p3, e.pos, p3, new oe$1(h3, 1, 0), s.length, true)), g = m.doc.resolve(p3 + 2 * s.length);
32774
+ let m = t.tr.step(new Je$2(e.pos - 1, p3, e.pos, p3, new oe$1(h3, 1, 0), s.length, true)), g = m.doc.resolve(p3 + 2 * s.length);
32775
32775
  g.nodeAfter && g.nodeAfter.type == o.type && rp$2(m.doc, g.pos) && m.join(g.pos), n(m.scrollIntoView());
32776
32776
  }
32777
32777
  return true;
@@ -32791,7 +32791,7 @@ Actual: ` + p3.attribValue
32791
32791
  let b = Z.empty;
32792
32792
  for (let C = h3.length - 1; C >= 0; C--)
32793
32793
  b = Z.from(h3[C].copy(b));
32794
- let w = t.tr.step(new Je$3(e.pos - h3.length, e.pos + i3.nodeSize, e.pos + g, e.pos + i3.nodeSize - g, new oe$1(b, h3.length, 0), 0, true));
32794
+ let w = t.tr.step(new Je$2(e.pos - h3.length, e.pos + i3.nodeSize, e.pos + g, e.pos + i3.nodeSize - g, new oe$1(b, h3.length, 0), 0, true));
32795
32795
  n(w.scrollIntoView());
32796
32796
  }
32797
32797
  return true;
@@ -32905,7 +32905,7 @@ Actual: ` + p3.attribValue
32905
32905
  });
32906
32906
  }
32907
32907
  const Wg = (t, e = {}) => ({ tr: n, state: r, dispatch: o }) => {
32908
- const { selection: i3 } = n, { empty: s, ranges: a } = i3, l = St$1(t, r.schema);
32908
+ const { selection: i3 } = n, { empty: s, ranges: a } = i3, l = xt$1(t, r.schema);
32909
32909
  if (o)
32910
32910
  if (s) {
32911
32911
  const c3 = N.getMarkAttributes(r, l);
@@ -32954,7 +32954,7 @@ Actual: ` + p3.attribValue
32954
32954
  return { from: s, to: l };
32955
32955
  }
32956
32956
  const qg = (t, e = {}) => ({ tr: n, state: r, dispatch: o }) => {
32957
- const { extendEmptyMarkRange: i3 = false } = e, { selection: s } = n, a = St$1(t, r.schema), { $from: l, empty: c3, ranges: d } = s;
32957
+ const { extendEmptyMarkRange: i3 = false } = e, { selection: s } = n, a = xt$1(t, r.schema), { $from: l, empty: c3, ranges: d } = s;
32958
32958
  if (!o) return true;
32959
32959
  if (c3 && i3) {
32960
32960
  let { from: u, to: f3 } = s;
@@ -32972,7 +32972,7 @@ Actual: ` + p3.attribValue
32972
32972
  }), true;
32973
32973
  };
32974
32974
  function Co$1(t, e, n = {}) {
32975
- const { empty: r, ranges: o } = t.selection, i3 = e ? St$1(e, t.schema) : null;
32975
+ const { empty: r, ranges: o } = t.selection, i3 = e ? xt$1(e, t.schema) : null;
32976
32976
  if (r)
32977
32977
  return !!(t.storedMarks || t.selection.$from.marks()).filter((u) => i3 ? i3.name === u.type.name : true).find((u) => sm$1(u.attrs, n, { strict: false }));
32978
32978
  let s = 0;
@@ -32995,7 +32995,7 @@ Actual: ` + p3.attribValue
32995
32995
  return (l > 0 ? l + c3 : l) >= s;
32996
32996
  }
32997
32997
  const Xg = (t, e = {}, n = {}) => ({ state: r, commands: o }) => {
32998
- const { extendEmptyMarkRange: i3 = false } = n, s = St$1(t, r.schema);
32998
+ const { extendEmptyMarkRange: i3 = false } = n, s = xt$1(t, r.schema);
32999
32999
  return Co$1(r, s, e) ? o.unsetMark(s, { extendEmptyMarkRange: i3 }) : o.setMark(s, e);
33000
33000
  }, Jg = () => ({ state: t, tr: e, dispatch: n }) => {
33001
33001
  const { selection: r } = e, { ranges: o } = r;
@@ -33039,7 +33039,7 @@ Actual: ` + p3.attribValue
33039
33039
  typeof t == "string" ? t : t.name,
33040
33040
  r.schema
33041
33041
  );
33042
- return a ? (a === "node" && (i3 = le$2(t, r.schema)), a === "mark" && (s = St$1(t, r.schema)), o && n.selection.ranges.forEach((l) => {
33042
+ return a ? (a === "node" && (i3 = le$2(t, r.schema)), a === "mark" && (s = xt$1(t, r.schema)), o && n.selection.ranges.forEach((l) => {
33043
33043
  const c3 = l.$from.pos, d = l.$to.pos;
33044
33044
  r.doc.nodesBetween(c3, d, (u, f3) => {
33045
33045
  i3 && i3 === u.type && n.setNodeMarkup(f3, void 0, { ...u.attrs, ...e }), s && u.marks.length && u.marks.forEach((p3) => {
@@ -33061,7 +33061,7 @@ Actual: ` + p3.attribValue
33061
33061
  typeof t == "string" ? t : t.name,
33062
33062
  r.schema
33063
33063
  );
33064
- return a ? (a === "node" && (i3 = le$2(t, r.schema)), a === "mark" && (s = St$1(t, r.schema)), o && n.selection.ranges.forEach((l) => {
33064
+ return a ? (a === "node" && (i3 = le$2(t, r.schema)), a === "mark" && (s = xt$1(t, r.schema)), o && n.selection.ranges.forEach((l) => {
33065
33065
  r.doc.nodesBetween(l.$from.pos, l.$to.pos, (c3, d) => {
33066
33066
  i3 && i3 === c3.type && n.setNodeMarkup(d, void 0, Xa$1(c3.attrs, e)), s && c3.marks.length && c3.marks.forEach((u) => {
33067
33067
  s === u.type && n.addMark(d, d + c3.nodeSize, s.create(Xa$1(u.attrs, e)));
@@ -33134,7 +33134,7 @@ Actual: ` + p3.attribValue
33134
33134
  if (r < e)
33135
33135
  return;
33136
33136
  const o = t.steps[r];
33137
- if (!(o instanceof Ie$3 || o instanceof Je$3))
33137
+ if (!(o instanceof Ie$3 || o instanceof Je$2))
33138
33138
  return;
33139
33139
  const i3 = t.mapping.maps[r];
33140
33140
  let s = 0;
@@ -33225,7 +33225,7 @@ Actual: ` + p3.attribValue
33225
33225
  let i3 = Z.empty;
33226
33226
  for (let d = n.length - 1; d >= 0; d--)
33227
33227
  i3 = Z.from(n[d].type.create(n[d].attrs, i3));
33228
- t.step(new Je$3(e.start - (r ? 2 : 0), e.end, e.start, e.end, new oe$1(i3, 0, 0), n.length, true));
33228
+ t.step(new Je$2(e.start - (r ? 2 : 0), e.end, e.start, e.end, new oe$1(i3, 0, 0), n.length, true));
33229
33229
  let s = 0;
33230
33230
  for (let d = 0; d < n.length; d++)
33231
33231
  n[d].type == o && (s = d + 1);
@@ -33242,7 +33242,7 @@ Actual: ` + p3.attribValue
33242
33242
  }
33243
33243
  function wy(t, e, n, r) {
33244
33244
  let o = t.tr, i3 = r.end, s = r.$to.end(r.depth);
33245
- i3 < s && (o.step(new Je$3(i3 - 1, s, i3, s, new oe$1(Z.from(n.create(null, r.parent.copy())), 1, 0), 1, true)), r = new Bc$2(o.doc.resolve(r.$from.pos), o.doc.resolve(s), r.depth));
33245
+ i3 < s && (o.step(new Je$2(i3 - 1, s, i3, s, new oe$1(Z.from(n.create(null, r.parent.copy())), 1, 0), 1, true)), r = new Bc$2(o.doc.resolve(r.$from.pos), o.doc.resolve(s), r.depth));
33246
33246
  const a = Zm$1(r);
33247
33247
  if (a == null)
33248
33248
  return false;
@@ -33261,7 +33261,7 @@ Actual: ` + p3.attribValue
33261
33261
  if (!c3.canReplace(d + (a ? 0 : 1), d + 1, s.content.append(l ? Z.empty : Z.from(o))))
33262
33262
  return false;
33263
33263
  let u = i3.pos, f3 = u + s.nodeSize;
33264
- return r.step(new Je$3(u - (a ? 1 : 0), f3 + (l ? 1 : 0), u + 1, f3 - 1, new oe$1((a ? Z.empty : Z.from(o.copy(Z.empty))).append(l ? Z.empty : Z.from(o.copy(Z.empty))), a ? 0 : 1, l ? 0 : 1), a ? 0 : 1)), e(r.scrollIntoView()), true;
33264
+ return r.step(new Je$2(u - (a ? 1 : 0), f3 + (l ? 1 : 0), u + 1, f3 - 1, new oe$1((a ? Z.empty : Z.from(o.copy(Z.empty))).append(l ? Z.empty : Z.from(o.copy(Z.empty))), a ? 0 : 1, l ? 0 : 1), a ? 0 : 1)), e(r.scrollIntoView()), true;
33265
33265
  }
33266
33266
  function ky(t) {
33267
33267
  return function(e, n) {
@@ -33276,7 +33276,7 @@ Actual: ` + p3.attribValue
33276
33276
  return false;
33277
33277
  if (n) {
33278
33278
  let c3 = l.lastChild && l.lastChild.type == a.type, d = Z.from(c3 ? t.create() : null), u = new oe$1(Z.from(t.create(null, Z.from(a.type.create(null, d)))), c3 ? 3 : 1, 0), f3 = i3.start, p3 = i3.end;
33279
- n(e.tr.step(new Je$3(f3 - (c3 ? 3 : 1), p3, f3, p3, u, 1, true)).scrollIntoView());
33279
+ n(e.tr.step(new Je$2(f3 - (c3 ? 3 : 1), p3, f3, p3, u, 1, true)).scrollIntoView());
33280
33280
  }
33281
33281
  return true;
33282
33282
  };
@@ -33295,7 +33295,7 @@ Actual: ` + p3.attribValue
33295
33295
  node: r
33296
33296
  };
33297
33297
  }
33298
- }, Ht$2 = (t) => ({ $from: e }) => Bo$1(e, t), Hi$1 = (t, e) => {
33298
+ }, je$2 = (t) => ({ $from: e }) => Bo$1(e, t), Hi$1 = (t, e) => {
33299
33299
  const r = e.filter((s) => s.type === "node").find((s) => s.name === t);
33300
33300
  if (!r) return false;
33301
33301
  const o = {
@@ -34448,14 +34448,14 @@ Actual: ` + p3.attribValue
34448
34448
  }
34449
34449
  ]
34450
34450
  }, ai$1 = (t, e) => {
34451
- const n = Ht$2((s) => s.type === e)(t.selection);
34451
+ const n = je$2((s) => s.type === e)(t.selection);
34452
34452
  if (!n) return true;
34453
34453
  const r = t.doc.resolve(Math.max(0, n.pos - 1)).before(n.depth);
34454
34454
  if (r === void 0) return true;
34455
34455
  const o = t.doc.nodeAt(r);
34456
34456
  return n.node.type === o?.type && rp$2(t.doc, n.pos) && t.join(n.pos), true;
34457
34457
  }, li$1 = (t, e) => {
34458
- const n = Ht$2((s) => s.type === e)(t.selection);
34458
+ const n = je$2((s) => s.type === e)(t.selection);
34459
34459
  if (!n) return true;
34460
34460
  const r = t.doc.resolve(n.start).after(n.depth);
34461
34461
  if (r === void 0) return true;
@@ -34464,7 +34464,7 @@ Actual: ` + p3.attribValue
34464
34464
  }, My = (t, e, n, r = {}) => (o) => {
34465
34465
  const { editor: i3, tr: s, state: a, dispatch: l, chain: c3, can: d, commands: u } = o, { extensions: f3, splittableMarks: p3 } = i3.extensionService, h3 = le$2(t, a.schema), m = le$2(e, a.schema), { selection: g, storedMarks: b } = a, { $from: w, $to: C } = g, y = w.blockRange(C), S = b || g.$to.parentOffset && g.$from.marks();
34466
34466
  if (!y) return false;
34467
- const k = Ht$2((_) => Hi$1(_.type.name, f3))(g), { numbering: M } = i3.converter;
34467
+ const k = je$2((_) => Hi$1(_.type.name, f3))(g), { numbering: M } = i3.converter;
34468
34468
  if (y.depth >= 1 && k && y.depth - k.depth <= 1) {
34469
34469
  if (k.node.type === h3) {
34470
34470
  const { listId: _ } = k.node.attrs;
@@ -34894,7 +34894,7 @@ Actual: ` + p3.attribValue
34894
34894
  defaultBlockAt: pd$1,
34895
34895
  findChildren: Ls,
34896
34896
  findMark: Eo$1,
34897
- findParentNode: Ht$2,
34897
+ findParentNode: je$2,
34898
34898
  findParentNodeClosestToPos: Bo$1,
34899
34899
  generateDocxListAttributes: zy,
34900
34900
  generateDocxRandomId: Fi$2,
@@ -34902,7 +34902,7 @@ Actual: ` + p3.attribValue
34902
34902
  getActiveFormatting: Ef$1,
34903
34903
  getExtensionConfigField: D,
34904
34904
  getMarkRange: Ps,
34905
- getMarkType: St$1,
34905
+ getMarkType: xt$1,
34906
34906
  getMarksBetween: $y,
34907
34907
  getMarksFromSelection: No$1,
34908
34908
  getNodeType: le$2,
@@ -35733,7 +35733,7 @@ Actual: ` + p3.attribValue
35733
35733
  date: l,
35734
35734
  originalStep: c3,
35735
35735
  originalStepIndex: d
35736
- }), console.debug("[track-changes]: replaceStep")) : u instanceof ct$1 ? (Dd$1({
35736
+ }), console.debug("[track-changes]: replaceStep")) : u instanceof ct$2 ? (Dd$1({
35737
35737
  state: e,
35738
35738
  tr: t,
35739
35739
  step: u,
@@ -35797,14 +35797,14 @@ Actual: ` + p3.attribValue
35797
35797
  const Js = class Js2 extends ag {
35798
35798
  constructor(n) {
35799
35799
  super();
35800
- ut$1(this, O$1);
35801
- ut$1(this, tn$1);
35800
+ ft(this, O$1);
35801
+ ft(this, tn$1);
35802
35802
  P(this, "extensionService");
35803
35803
  P(this, "extensionStorage", {});
35804
35804
  P(this, "schema");
35805
35805
  P(this, "view");
35806
35806
  P(this, "isFocused", false);
35807
- ut$1(this, ms);
35807
+ ft(this, ms);
35808
35808
  P(this, "options", {
35809
35809
  element: null,
35810
35810
  isHeadless: false,
@@ -35893,7 +35893,7 @@ Actual: ` + p3.attribValue
35893
35893
  * Get object of registered commands.
35894
35894
  */
35895
35895
  get commands() {
35896
- return Ze$2(this, tn$1).commands;
35896
+ return Qe$2(this, tn$1).commands;
35897
35897
  }
35898
35898
  /**
35899
35899
  * Check if the editor is editable.
@@ -35923,13 +35923,13 @@ Actual: ` + p3.attribValue
35923
35923
  * Create a chain of commands to call multiple commands at once.
35924
35924
  */
35925
35925
  chain() {
35926
- return Ze$2(this, tn$1).chain();
35926
+ return Qe$2(this, tn$1).chain();
35927
35927
  }
35928
35928
  /**
35929
35929
  * Check if a command or a chain of commands can be executed. Without executing it.
35930
35930
  */
35931
35931
  can() {
35932
- return Ze$2(this, tn$1).can();
35932
+ return Qe$2(this, tn$1).can();
35933
35933
  }
35934
35934
  setDocumentMode(n) {
35935
35935
  let r = n?.toLowerCase() || "editing";
@@ -36157,7 +36157,7 @@ Actual: ` + p3.attribValue
36157
36157
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
36158
36158
  */
36159
36159
  processCollaborationMigrations() {
36160
- if (console.debug("[checkVersionMigrations] Current editor version", "0.9.22"), !this.options.ydoc) return;
36160
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.9.24"), !this.options.ydoc) return;
36161
36161
  let r = this.options.ydoc.getMap("meta").get("version");
36162
36162
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
36163
36163
  const o = Qa$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
@@ -36451,7 +36451,7 @@ Actual: ` + p3.attribValue
36451
36451
  }
36452
36452
  };
36453
36453
  const sb = /[\d-.]+(\w+)$/, ab = ["px", "rem", "em", "in", "q", "mm", "cm", "pt", "pc", "vh", "vw", "vmin", "vmax"];
36454
- function kt$1(t = "0") {
36454
+ function Ct$1(t = "0") {
36455
36455
  const e = t || "0", n = Number.parseFloat(e), o = (e.match(sb)?.[1] ?? "").toLowerCase();
36456
36456
  return [n, ab.includes(o) ? o : null];
36457
36457
  }
@@ -36532,7 +36532,7 @@ Actual: ` + p3.attribValue
36532
36532
  parseDOM: (t) => t.style.fontSize,
36533
36533
  renderDOM: (t) => {
36534
36534
  if (!t.fontSize) return {};
36535
- let [e, n] = kt$1(t.fontSize);
36535
+ let [e, n] = Ct$1(t.fontSize);
36536
36536
  return Number.isNaN(e) ? {} : (n = n || this.options.defaults.unit, { style: `font-size: ${e}${n}` });
36537
36537
  }
36538
36538
  }
@@ -36543,7 +36543,7 @@ Actual: ` + p3.attribValue
36543
36543
  addCommands() {
36544
36544
  return {
36545
36545
  setFontSize: (t) => ({ chain: e }) => {
36546
- let [n, r] = kt$1(t);
36546
+ let [n, r] = Ct$1(t);
36547
36547
  if (Number.isNaN(n))
36548
36548
  return false;
36549
36549
  let { min: o, max: i3, unit: s } = this.options.defaults;
@@ -36612,7 +36612,7 @@ Actual: ` + p3.attribValue
36612
36612
  parseDOM: (t) => t.style.textIndent,
36613
36613
  renderDOM: (t) => {
36614
36614
  if (!t.textIndent) return {};
36615
- let [e, n] = kt$1(t.textIndent);
36615
+ let [e, n] = Ct$1(t.textIndent);
36616
36616
  return Number.isNaN(e) || !e ? {} : (n = n || this.options.defaults.unit, { style: `margin-left: ${e}${n}` });
36617
36617
  }
36618
36618
  }
@@ -36632,7 +36632,7 @@ Actual: ` + p3.attribValue
36632
36632
  textIndent: `${i3}${s}`
36633
36633
  });
36634
36634
  }
36635
- let [r, o] = kt$1(n);
36635
+ let [r, o] = Ct$1(n);
36636
36636
  return r = r + this.options.defaults.increment, o = o || this.options.defaults.unit, Number.isNaN(r) ? false : t.updateAttributes(e, {
36637
36637
  textIndent: `${r}${o}`
36638
36638
  });
@@ -36640,7 +36640,7 @@ Actual: ` + p3.attribValue
36640
36640
  decreaseTextIndent: () => ({ commands: t }) => this.options.types.map((e) => {
36641
36641
  let { textIndent: n } = this.editor.getAttributes(e);
36642
36642
  if (!n) return false;
36643
- let [r, o] = kt$1(n);
36643
+ let [r, o] = Ct$1(n);
36644
36644
  return r = r - this.options.defaults.increment, o = o || this.options.defaults.unit, Number.isNaN(r) ? false : r <= 0 ? t.unsetTextIndent() : t.updateAttributes(e, {
36645
36645
  textIndent: `${r}${o}`
36646
36646
  });
@@ -36667,7 +36667,7 @@ Actual: ` + p3.attribValue
36667
36667
  parseDOM: (t) => t.style.lineHeight,
36668
36668
  renderDOM: (t) => {
36669
36669
  if (!t.lineHeight) return {};
36670
- let [e, n] = kt$1(t.lineHeight);
36670
+ let [e, n] = Ct$1(t.lineHeight);
36671
36671
  return Number.isNaN(e) ? {} : (n = n || this.options.defaults.unit, { style: `line-height: ${e}${n}` });
36672
36672
  }
36673
36673
  }
@@ -37066,8 +37066,8 @@ Actual: ` + p3.attribValue
37066
37066
  },
37067
37067
  addCommands() {
37068
37068
  return {
37069
- undo: () => ({ tr: t, state: e, dispatch: n }) => (t.setMeta("preventDispatch", true), t.setMeta("inputType", "historyUndo"), zt$2.getState(e).undoManager.undoStack.length === 0 ? false : n ? ng(e) : true),
37070
- redo: () => ({ tr: t, state: e, dispatch: n }) => (t.setMeta("preventDispatch", true), t.setMeta("inputType", "historyRedo"), zt$2.getState(e).undoManager.redoStack.length === 0 ? false : n ? rg(e) : true),
37069
+ undo: () => ({ tr: t, state: e, dispatch: n }) => (t.setMeta("preventDispatch", true), t.setMeta("inputType", "historyUndo"), $t$1.getState(e).undoManager.undoStack.length === 0 ? false : n ? ng(e) : true),
37070
+ redo: () => ({ tr: t, state: e, dispatch: n }) => (t.setMeta("preventDispatch", true), t.setMeta("inputType", "historyRedo"), $t$1.getState(e).undoManager.redoStack.length === 0 ? false : n ? rg(e) : true),
37071
37071
  addImageToCollaboration: ({ mediaPath: t, fileData: e }) => () => {
37072
37072
  if (!this.options.ydoc) return;
37073
37073
  this.options.ydoc.getMap("media").set(t, e);
@@ -37479,12 +37479,26 @@ Actual: ` + p3.attribValue
37479
37479
  addCommands() {
37480
37480
  return {
37481
37481
  toggleOrderedList: () => ({ commands: t }) => t.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks),
37482
+ getCurrentList: () => ({ state: t }) => je$2((e) => e.type.name === this.name)(t.selection),
37483
+ restartListNodes: (t, e) => ({ tr: n, state: r }) => {
37484
+ let o = e;
37485
+ return t.map((s) => {
37486
+ const a = {
37487
+ node: s,
37488
+ pos: o
37489
+ };
37490
+ return o += s.nodeSize, a;
37491
+ }).forEach((s) => {
37492
+ const { pos: a } = s, l = n.mapping.map(a);
37493
+ n.setNodeMarkup(l, void 0, {});
37494
+ }), true;
37495
+ },
37482
37496
  /**
37483
37497
  * Updates ordered list style type when sink or lift `listItem`.
37484
37498
  * @example 1,2,3 -> a,b,c -> i,ii,iii -> 1,2,3 -> etc
37485
37499
  */
37486
37500
  updateOrderedListStyleType: () => ({ dispatch: t, state: e, tr: n }) => {
37487
- let r = Ht$2((o) => o.type.name === this.name)(e.selection);
37501
+ let r = je$2((o) => o.type.name === this.name)(n.selection);
37488
37502
  if (!r)
37489
37503
  return true;
37490
37504
  if (t) {
@@ -37509,7 +37523,7 @@ Actual: ` + p3.attribValue
37509
37523
  * </ol>
37510
37524
  */
37511
37525
  liftEmptyBlockAndContinueListOrder: () => ({ editor: t, dispatch: e, state: n, tr: r, commands: o }) => {
37512
- let i3 = Ht$2((f3) => f3.type.name === this.name)(n.selection);
37526
+ let i3 = je$2((f3) => f3.type.name === this.name)(n.selection);
37513
37527
  if (!i3)
37514
37528
  return false;
37515
37529
  let s = t.can().liftEmptyBlock(), a = i3.depth === 1, l = i3.node.childCount === 1, c3 = n.selection.$from.node(-1), d = i3.node.lastChild.eq(c3);
@@ -37636,7 +37650,7 @@ Actual: ` + p3.attribValue
37636
37650
  function rl$1(t) {
37637
37651
  let { doc: e, storedMarks: n } = t, r = [], o = Ls(e, (i3) => i3.type.name === "listItem");
37638
37652
  return o.length && o.forEach(({ node: i3, pos: s }) => {
37639
- let a = [], l = St$1("textStyle", e.type.schema);
37653
+ let a = [], l = xt$1("textStyle", e.type.schema);
37640
37654
  if (Wb(i3) && n) {
37641
37655
  let g = n.filter((b) => b.type === l);
37642
37656
  a.push(...g);
@@ -37648,7 +37662,7 @@ Actual: ` + p3.attribValue
37648
37662
  a.forEach((g) => {
37649
37663
  let { attrs: b } = g;
37650
37664
  if (b.fontSize && !d) {
37651
- let [w, C] = kt$1(b.fontSize);
37665
+ let [w, C] = Ct$1(b.fontSize);
37652
37666
  Number.isNaN(w) || (C = C ?? "pt", d = `${w}${C}`);
37653
37667
  }
37654
37668
  b.fontFamily && !u && (u = b.fontFamily);
@@ -37777,6 +37791,31 @@ Actual: ` + p3.attribValue
37777
37791
  }
37778
37792
  };
37779
37793
  },
37794
+ addCommands() {
37795
+ return {
37796
+ getCurrentListNode: () => ({ state: t }) => je$2((e) => e.type.name === this.name)(t.selection),
37797
+ increaseListIndent: () => ({ commands: t }) => t.sinkListItem(this.name) ? (t.updateNodeStyle(), t.updateOrderedListStyleType(), true) : false,
37798
+ decreaseListIndent: () => ({ commands: t }) => {
37799
+ const e = t.getCurrentList();
37800
+ if (e?.depth === 1) return false;
37801
+ if (!t.liftListItem(this.name))
37802
+ return true;
37803
+ if (!t.updateNodeStyle())
37804
+ return false;
37805
+ const r = t.getCurrentListNode(), o = e?.node?.children.findIndex((a) => a === r.node), i3 = r?.pos + r?.node.nodeSize, s = e?.node?.children.slice(o + 1) || [];
37806
+ return t.updateOrderedListStyleType(), t.restartListNodes(s, i3), true;
37807
+ },
37808
+ updateNodeStyle: () => ({ tr: t, state: e }) => {
37809
+ let n = je$2((s) => s.type.name === "orderedList")(t.selection);
37810
+ const r = je$2((s) => s.type.name === this.name)(e.selection);
37811
+ if (!n) return false;
37812
+ const o = n?.node.children[0]?.attrs, i3 = t.mapping.map(r.pos);
37813
+ return t.setNodeMarkup(i3, void 0, {
37814
+ ...o
37815
+ }), true;
37816
+ }
37817
+ };
37818
+ },
37780
37819
  addShortcuts() {
37781
37820
  return {
37782
37821
  Enter: () => this.editor.commands.splitListItem(this.name),
@@ -37784,8 +37823,8 @@ Actual: ` + p3.attribValue
37784
37823
  () => t.createParagraphNear(),
37785
37824
  () => t.splitBlock()
37786
37825
  ]),
37787
- Tab: () => this.editor.chain().sinkListItem(this.name).updateOrderedListStyleType().run(),
37788
- "Shift-Tab": () => this.editor.chain().liftListItem(this.name).updateOrderedListStyleType().run()
37826
+ Tab: () => this.editor.commands.increaseListIndent(),
37827
+ "Shift-Tab": () => this.editor.commands.decreaseListIndent()
37789
37828
  };
37790
37829
  },
37791
37830
  addPmPlugins() {
@@ -37804,7 +37843,7 @@ Actual: ` + p3.attribValue
37804
37843
  if (o === i3) return;
37805
37844
  let s = o, a = n.doc.nodeAt(o);
37806
37845
  if (a.type.name !== "paragraph") {
37807
- const l = Ht$2((c3) => c3.type.name === "paragraph")(n.selection) || {};
37846
+ const l = je$2((c3) => c3.type.name === "paragraph")(n.selection) || {};
37808
37847
  s = l.pos, a = l.node;
37809
37848
  }
37810
37849
  n.setNodeMarkup(s, void 0, {
@@ -38583,7 +38622,7 @@ Actual: ` + p3.attribValue
38583
38622
  }
38584
38623
  return e;
38585
38624
  }
38586
- var It$1 = new op$2("selectingCells");
38625
+ var Pt$1 = new op$2("selectingCells");
38587
38626
  function $n$2(t) {
38588
38627
  for (let e = t.depth - 1; e > 0; e--)
38589
38628
  if (t.node(e).type.spec.tableRole == "row")
@@ -38597,7 +38636,7 @@ Actual: ` + p3.attribValue
38597
38636
  }
38598
38637
  return null;
38599
38638
  }
38600
- function Ge(t) {
38639
+ function Ze$2(t) {
38601
38640
  const e = t.selection.$head;
38602
38641
  for (let n = e.depth; n > 0; n--)
38603
38642
  if (e.node(n).type.spec.tableRole == "row") return true;
@@ -38657,7 +38696,7 @@ Actual: ` + p3.attribValue
38657
38696
  return false;
38658
38697
  return true;
38659
38698
  }
38660
- var X$1 = class pt2 extends ve$2 {
38699
+ var X$1 = class ht2 extends ve$2 {
38661
38700
  // A table selection is identified by its anchor and head cells. The
38662
38701
  // positions given to this constructor should point _before_ two
38663
38702
  // cells in the same table. They may be the same, to select a single
@@ -38684,7 +38723,7 @@ Actual: ` + p3.attribValue
38684
38723
  const r = e.resolve(n.map(this.$anchorCell.pos)), o = e.resolve(n.map(this.$headCell.pos));
38685
38724
  if (rs$1(r) && rs$1(o) && $s(r, o)) {
38686
38725
  const i3 = this.$anchorCell.node(-1) != r.node(-1);
38687
- return i3 && this.isRowSelection() ? pt2.rowSelection(r, o) : i3 && this.isColSelection() ? pt2.colSelection(r, o) : new pt2(r, o);
38726
+ return i3 && this.isRowSelection() ? ht2.rowSelection(r, o) : i3 && this.isColSelection() ? ht2.colSelection(r, o) : new ht2(r, o);
38688
38727
  }
38689
38728
  return tt$2.between(r, o);
38690
38729
  }
@@ -38779,7 +38818,7 @@ Actual: ` + p3.attribValue
38779
38818
  i3 + o.map[o.width * (o.height - 1) + a.right - 1]
38780
38819
  ))) : (a.top > 0 && (n = l.resolve(i3 + o.map[a.left])), s.bottom < o.height && (e = l.resolve(
38781
38820
  i3 + o.map[o.width * (o.height - 1) + s.right - 1]
38782
- ))), new pt2(e, n);
38821
+ ))), new ht2(e, n);
38783
38822
  }
38784
38823
  // True if this selection goes all the way from the left to the
38785
38824
  // right of the table.
@@ -38790,7 +38829,7 @@ Actual: ` + p3.attribValue
38790
38829
  return Math.max(s, a) == n.width;
38791
38830
  }
38792
38831
  eq(e) {
38793
- return e instanceof pt2 && e.$anchorCell.pos == this.$anchorCell.pos && e.$headCell.pos == this.$headCell.pos;
38832
+ return e instanceof ht2 && e.$anchorCell.pos == this.$anchorCell.pos && e.$headCell.pos == this.$headCell.pos;
38794
38833
  }
38795
38834
  // Returns the smallest row selection that covers the given anchor
38796
38835
  // and head cell.
@@ -38802,7 +38841,7 @@ Actual: ` + p3.attribValue
38802
38841
  i3 + o.map[o.width * (a.top + 1) - 1]
38803
38842
  ))) : (a.left > 0 && (n = l.resolve(i3 + o.map[a.top * o.width])), s.right < o.width && (e = l.resolve(
38804
38843
  i3 + o.map[o.width * (s.top + 1) - 1]
38805
- ))), new pt2(e, n);
38844
+ ))), new ht2(e, n);
38806
38845
  }
38807
38846
  toJSON() {
38808
38847
  return {
@@ -38812,10 +38851,10 @@ Actual: ` + p3.attribValue
38812
38851
  };
38813
38852
  }
38814
38853
  static fromJSON(e, n) {
38815
- return new pt2(e.resolve(n.anchor), e.resolve(n.head));
38854
+ return new ht2(e.resolve(n.anchor), e.resolve(n.head));
38816
38855
  }
38817
38856
  static create(e, n, r = n) {
38818
- return new pt2(e.resolve(n), e.resolve(r));
38857
+ return new ht2(e.resolve(n), e.resolve(r));
38819
38858
  }
38820
38859
  getBookmark() {
38821
38860
  return new g0(this.$anchorCell.pos, this.$headCell.pos);
@@ -38966,7 +39005,7 @@ Actual: ` + p3.attribValue
38966
39005
  }
38967
39006
  return r.setMeta(k0, { fixTables: true });
38968
39007
  }
38969
- function lt$1(t) {
39008
+ function ct$1(t) {
38970
39009
  const e = t.selection, n = _o$1(t), r = n.node(-1), o = n.start(-1), i3 = re$1.get(r);
38971
39010
  return { ...e instanceof X$1 ? i3.rectBetween(
38972
39011
  e.$anchorCell.pos - o,
@@ -38993,17 +39032,17 @@ Actual: ` + p3.attribValue
38993
39032
  return t;
38994
39033
  }
38995
39034
  function S0(t, e) {
38996
- if (!Ge(t)) return false;
39035
+ if (!Ze$2(t)) return false;
38997
39036
  if (e) {
38998
- const n = lt$1(t);
39037
+ const n = ct$1(t);
38999
39038
  e(fu$1(t.tr, n, n.left));
39000
39039
  }
39001
39040
  return true;
39002
39041
  }
39003
39042
  function x0(t, e) {
39004
- if (!Ge(t)) return false;
39043
+ if (!Ze$2(t)) return false;
39005
39044
  if (e) {
39006
- const n = lt$1(t);
39045
+ const n = ct$1(t);
39007
39046
  e(fu$1(t.tr, n, n.right));
39008
39047
  }
39009
39048
  return true;
@@ -39026,9 +39065,9 @@ Actual: ` + p3.attribValue
39026
39065
  }
39027
39066
  }
39028
39067
  function A0(t, e) {
39029
- if (!Ge(t)) return false;
39068
+ if (!Ze$2(t)) return false;
39030
39069
  if (e) {
39031
- const n = lt$1(t), r = t.tr;
39070
+ const n = ct$1(t), r = t.tr;
39032
39071
  if (n.left == 0 && n.right == n.map.width) return false;
39033
39072
  for (let o = n.right - 1; M0(r, n, o), o != n.left; o--) {
39034
39073
  const i3 = n.tableStart ? r.doc.nodeAt(n.tableStart - 1) : r.doc;
@@ -39069,17 +39108,17 @@ Actual: ` + p3.attribValue
39069
39108
  return t.insert(s, ve$1(r.type.schema).row.create(null, a)), t;
39070
39109
  }
39071
39110
  function T0(t, e) {
39072
- if (!Ge(t)) return false;
39111
+ if (!Ze$2(t)) return false;
39073
39112
  if (e) {
39074
- const n = lt$1(t);
39113
+ const n = ct$1(t);
39075
39114
  e(pu$1(t.tr, n, n.top));
39076
39115
  }
39077
39116
  return true;
39078
39117
  }
39079
39118
  function D0(t, e) {
39080
- if (!Ge(t)) return false;
39119
+ if (!Ze$2(t)) return false;
39081
39120
  if (e) {
39082
- const n = lt$1(t);
39121
+ const n = ct$1(t);
39083
39122
  e(pu$1(t.tr, n, n.bottom));
39084
39123
  }
39085
39124
  return true;
@@ -39110,9 +39149,9 @@ Actual: ` + p3.attribValue
39110
39149
  }
39111
39150
  }
39112
39151
  function E0(t, e) {
39113
- if (!Ge(t)) return false;
39152
+ if (!Ze$2(t)) return false;
39114
39153
  if (e) {
39115
- const n = lt$1(t), r = t.tr;
39154
+ const n = ct$1(t), r = t.tr;
39116
39155
  if (n.top == 0 && n.bottom == n.map.height) return false;
39117
39156
  for (let o = n.bottom - 1; N0(r, n, o), o != n.top; o--) {
39118
39157
  const i3 = n.tableStart ? r.doc.nodeAt(n.tableStart - 1) : r.doc;
@@ -39146,7 +39185,7 @@ Actual: ` + p3.attribValue
39146
39185
  const n = t.selection;
39147
39186
  if (!(n instanceof X$1) || n.$anchorCell.pos == n.$headCell.pos)
39148
39187
  return false;
39149
- const r = lt$1(t), { map: o } = r;
39188
+ const r = ct$1(t), { map: o } = r;
39150
39189
  if (I0(o, r)) return false;
39151
39190
  if (e) {
39152
39191
  const i3 = t.tr, s = {};
@@ -39204,7 +39243,7 @@ Actual: ` + p3.attribValue
39204
39243
  let a = i3.attrs;
39205
39244
  const l = [], c3 = a.colwidth;
39206
39245
  a.rowspan > 1 && (a = { ...a, rowspan: 1 }), a.colspan > 1 && (a = { ...a, colspan: 1 });
39207
- const d = lt$1(e), u = e.tr;
39246
+ const d = ct$1(e), u = e.tr;
39208
39247
  for (let p3 = 0; p3 < d.right - d.left; p3++)
39209
39248
  l.push(
39210
39249
  c3 ? {
@@ -39238,7 +39277,7 @@ Actual: ` + p3.attribValue
39238
39277
  }
39239
39278
  function R0(t, e) {
39240
39279
  return function(n, r) {
39241
- if (!Ge(n)) return false;
39280
+ if (!Ze$2(n)) return false;
39242
39281
  const o = _o$1(n);
39243
39282
  if (o.nodeAfter.attrs[t] === e) return false;
39244
39283
  if (r) {
@@ -39258,9 +39297,9 @@ Actual: ` + p3.attribValue
39258
39297
  }
39259
39298
  function L0(t) {
39260
39299
  return function(e, n) {
39261
- if (!Ge(e)) return false;
39300
+ if (!Ze$2(e)) return false;
39262
39301
  if (n) {
39263
- const r = ve$1(e.schema), o = lt$1(e), i3 = e.tr, s = o.map.cellsInRect(
39302
+ const r = ve$1(e.schema), o = ct$1(e), i3 = e.tr, s = o.map.cellsInRect(
39264
39303
  t == "column" ? {
39265
39304
  left: o.left,
39266
39305
  top: 0,
@@ -39307,9 +39346,9 @@ Actual: ` + p3.attribValue
39307
39346
  }
39308
39347
  function wr$1(t, e) {
39309
39348
  return e = e || { useDeprecatedLogic: false }, e.useDeprecatedLogic ? L0(t) : function(n, r) {
39310
- if (!Ge(n)) return false;
39349
+ if (!Ze$2(n)) return false;
39311
39350
  if (r) {
39312
- const o = ve$1(n.schema), i3 = lt$1(n), s = n.tr, a = hl$1("row", i3, o), l = hl$1(
39351
+ const o = ve$1(n.schema), i3 = ct$1(n), s = n.tr, a = hl$1("row", i3, o), l = hl$1(
39313
39352
  "column",
39314
39353
  i3,
39315
39354
  o
@@ -39365,7 +39404,7 @@ Actual: ` + p3.attribValue
39365
39404
  }
39366
39405
  function ml$1(t) {
39367
39406
  return function(e, n) {
39368
- if (!Ge(e)) return false;
39407
+ if (!Ze$2(e)) return false;
39369
39408
  const r = B0(_o$1(e), t);
39370
39409
  if (r == null) return false;
39371
39410
  if (n) {
@@ -39665,7 +39704,7 @@ Actual: ` + p3.attribValue
39665
39704
  return r ? (t.dispatch(t.state.tr.setSelection(new X$1(r))), true) : false;
39666
39705
  }
39667
39706
  function U0(t, e, n) {
39668
- if (!Ge(t.state)) return false;
39707
+ if (!Ze$2(t.state)) return false;
39669
39708
  let r = z0(n);
39670
39709
  const o = t.state.selection;
39671
39710
  if (o instanceof X$1) {
@@ -39708,21 +39747,21 @@ Actual: ` + p3.attribValue
39708
39747
  return;
39709
39748
  function i3(l, c3) {
39710
39749
  let d = di$1(t, c3);
39711
- const u = It$1.getState(t.state) == null;
39750
+ const u = Pt$1.getState(t.state) == null;
39712
39751
  if (!d || !$s(l, d))
39713
39752
  if (u) d = l;
39714
39753
  else return;
39715
39754
  const f3 = new X$1(l, d);
39716
39755
  if (u || !t.state.selection.eq(f3)) {
39717
39756
  const p3 = t.state.tr.setSelection(f3);
39718
- u && p3.setMeta(It$1, l.pos), t.dispatch(p3);
39757
+ u && p3.setMeta(Pt$1, l.pos), t.dispatch(p3);
39719
39758
  }
39720
39759
  }
39721
39760
  function s() {
39722
- t.root.removeEventListener("mouseup", s), t.root.removeEventListener("dragstart", s), t.root.removeEventListener("mousemove", a), It$1.getState(t.state) != null && t.dispatch(t.state.tr.setMeta(It$1, -1));
39761
+ t.root.removeEventListener("mouseup", s), t.root.removeEventListener("dragstart", s), t.root.removeEventListener("mousemove", a), Pt$1.getState(t.state) != null && t.dispatch(t.state.tr.setMeta(Pt$1, -1));
39723
39762
  }
39724
39763
  function a(l) {
39725
- const c3 = l, d = It$1.getState(t.state);
39764
+ const c3 = l, d = Pt$1.getState(t.state);
39726
39765
  let u;
39727
39766
  if (d != null)
39728
39767
  u = t.state.doc.resolve(d);
@@ -40026,7 +40065,7 @@ Actual: ` + p3.attribValue
40026
40065
  allowTableNodeSelection: t = false
40027
40066
  } = {}) {
40028
40067
  return new sp$2({
40029
- key: It$1,
40068
+ key: Pt$1,
40030
40069
  // This piece of state is used to remember when a mouse-drag
40031
40070
  // cell-selection is happening, so that it can continue even as
40032
40071
  // transactions (which might move its anchor cell) come in.
@@ -40035,7 +40074,7 @@ Actual: ` + p3.attribValue
40035
40074
  return null;
40036
40075
  },
40037
40076
  apply(e, n) {
40038
- const r = e.getMeta(It$1);
40077
+ const r = e.getMeta(Pt$1);
40039
40078
  if (r != null) return r == -1 ? null : r;
40040
40079
  if (n == null || !e.docChanged) return n;
40041
40080
  const { deleted: o, pos: i3 } = e.mapping.mapResult(n);
@@ -40048,7 +40087,7 @@ Actual: ` + p3.attribValue
40048
40087
  mousedown: q0
40049
40088
  },
40050
40089
  createSelectionBetween(e) {
40051
- return It$1.getState(e.state) != null ? e.state.selection : null;
40090
+ return Pt$1.getState(e.state) != null ? e.state.selection : null;
40052
40091
  },
40053
40092
  handleTripleClick: W0,
40054
40093
  handleKeyDown: j0,
@@ -40195,7 +40234,7 @@ Actual: ` + p3.attribValue
40195
40234
  deleteCellAndTableBorders: () => ({ chain: t, state: e, tr: n }) => {
40196
40235
  if (!Cd$1(e))
40197
40236
  return false;
40198
- const r = Ht$2((s) => s.type.name === this.name)(e.selection);
40237
+ const r = je$2((s) => s.type.name === this.name)(e.selection);
40199
40238
  if (!r)
40200
40239
  return false;
40201
40240
  const o = r.pos, i3 = r.pos + r.node.nodeSize;
@@ -40391,10 +40430,10 @@ Actual: ` + p3.attribValue
40391
40430
  return ["td", N.mergeAttributes(this.options.htmlAttributes, t), 0];
40392
40431
  }
40393
40432
  });
40394
- var gt$1, Yt$2;
40433
+ var yt$1, Yt$2;
40395
40434
  class sw {
40396
40435
  constructor(e) {
40397
- ut$1(this, gt$1);
40436
+ ft(this, yt$1);
40398
40437
  P(this, "editor");
40399
40438
  P(this, "node");
40400
40439
  P(this, "decorations");
@@ -40419,13 +40458,13 @@ Actual: ` + p3.attribValue
40419
40458
  (n[e] ?? n.default)();
40420
40459
  }
40421
40460
  buildTextView() {
40422
- let { displayLabel: e } = this.node.attrs, { annotation: n } = I$1(this, gt$1, Yt$2).call(this, {
40461
+ let { displayLabel: e } = this.node.attrs, { annotation: n } = I$1(this, yt$1, Yt$2).call(this, {
40423
40462
  displayLabel: e
40424
40463
  });
40425
40464
  this.dom = n;
40426
40465
  }
40427
40466
  buildImageView() {
40428
- let { displayLabel: e, imageSrc: n } = this.node.attrs, { annotation: r, content: o } = I$1(this, gt$1, Yt$2).call(this);
40467
+ let { displayLabel: e, imageSrc: n } = this.node.attrs, { annotation: r, content: o } = I$1(this, yt$1, Yt$2).call(this);
40429
40468
  if (n) {
40430
40469
  let i3 = document.createElement("img");
40431
40470
  i3.src = n, i3.alt = e, i3.style.height = "auto", i3.style.maxWidth = "100%", i3.style.pointerEvents = "none", i3.style.verticalAlign = "middle", o.append(i3), r.style.display = "inline-block", o.style.display = "inline-block";
@@ -40436,7 +40475,7 @@ Actual: ` + p3.attribValue
40436
40475
  buildSignatureView() {
40437
40476
  let { displayLabel: e, imageSrc: n } = this.node.attrs;
40438
40477
  e = e || "Signature";
40439
- let { annotation: r, content: o } = I$1(this, gt$1, Yt$2).call(this);
40478
+ let { annotation: r, content: o } = I$1(this, yt$1, Yt$2).call(this);
40440
40479
  if (n) {
40441
40480
  let i3 = document.createElement("img");
40442
40481
  i3.src = n, i3.alt = e, i3.style.height = "auto", i3.style.maxWidth = "100%", i3.style.maxHeight = "28px", i3.style.pointerEvents = "none", i3.style.verticalAlign = "middle", o.append(i3), r.style.display = "inline-block", o.style.display = "inline-block";
@@ -40445,17 +40484,17 @@ Actual: ` + p3.attribValue
40445
40484
  this.dom = r;
40446
40485
  }
40447
40486
  buildCheckboxView() {
40448
- let { displayLabel: e } = this.node.attrs, { annotation: n } = I$1(this, gt$1, Yt$2).call(this, {
40487
+ let { displayLabel: e } = this.node.attrs, { annotation: n } = I$1(this, yt$1, Yt$2).call(this, {
40449
40488
  displayLabel: e
40450
40489
  });
40451
40490
  this.dom = n;
40452
40491
  }
40453
40492
  buildHTMLView() {
40454
- let { displayLabel: e, rawHtml: n } = this.node.attrs, { annotation: r, content: o } = I$1(this, gt$1, Yt$2).call(this);
40493
+ let { displayLabel: e, rawHtml: n } = this.node.attrs, { annotation: r, content: o } = I$1(this, yt$1, Yt$2).call(this);
40455
40494
  n ? (o.innerHTML = n.trim(), r.style.display = "inline-block", o.style.display = "inline-block") : o.textContent = e, this.dom = r;
40456
40495
  }
40457
40496
  buildLinkView() {
40458
- let { displayLabel: e, linkUrl: n } = this.node.attrs, { annotation: r, content: o } = I$1(this, gt$1, Yt$2).call(this);
40497
+ let { displayLabel: e, linkUrl: n } = this.node.attrs, { annotation: r, content: o } = I$1(this, yt$1, Yt$2).call(this);
40459
40498
  if (n) {
40460
40499
  let i3 = document.createElement("a");
40461
40500
  i3.href = n, i3.target = "_blank", i3.textContent = n, i3.style.textDecoration = "none", o.append(i3), o.style.pointerEvents = "all";
@@ -40522,7 +40561,7 @@ Actual: ` + p3.attribValue
40522
40561
  }), true));
40523
40562
  }
40524
40563
  }
40525
- gt$1 = /* @__PURE__ */ new WeakSet(), Yt$2 = function({ displayLabel: e } = {}) {
40564
+ yt$1 = /* @__PURE__ */ new WeakSet(), Yt$2 = function({ displayLabel: e } = {}) {
40526
40565
  let { highlighted: n } = this.node.attrs, r = document.createElement("span");
40527
40566
  r.classList.add(this.annotationClass);
40528
40567
  let o = document.createElement("span");
@@ -40560,7 +40599,7 @@ Actual: ` + p3.attribValue
40560
40599
  }, 0);
40561
40600
  }
40562
40601
  const { findChildren: aw } = Sd$1;
40563
- function Rt$2(t) {
40602
+ function Lt$1(t) {
40564
40603
  return aw(t.doc, (n) => n.type.name === "fieldAnnotation");
40565
40604
  }
40566
40605
  const lw = (t = {}) => {
@@ -40628,7 +40667,7 @@ Actual: ` + p3.attribValue
40628
40667
  appendTransaction: (r, o, i3) => {
40629
40668
  if (!(r.some((u) => u.docChanged) && !o.doc.eq(i3.doc)))
40630
40669
  return;
40631
- let { tr: a, doc: l } = i3, c3 = false, d = Rt$2(i3);
40670
+ let { tr: a, doc: l } = i3, c3 = false, d = Lt$1(i3);
40632
40671
  if (d.length)
40633
40672
  return d.forEach(({ node: u, pos: f3 }) => {
40634
40673
  let { marks: p3 } = u, h3 = a.doc.nodeAt(f3);
@@ -40657,7 +40696,7 @@ Actual: ` + p3.attribValue
40657
40696
  });
40658
40697
  }
40659
40698
  function dw(t, e) {
40660
- return Rt$2(e).map(({ node: r, pos: o }) => {
40699
+ return Lt$1(e).map(({ node: r, pos: o }) => {
40661
40700
  let i3 = kd$1(t, o, o + r.nodeSize);
40662
40701
  return {
40663
40702
  node: r,
@@ -40667,7 +40706,7 @@ Actual: ` + p3.attribValue
40667
40706
  });
40668
40707
  }
40669
40708
  function uw(t, e) {
40670
- let n = Rt$2(e), r = [];
40709
+ let n = Lt$1(e), r = [];
40671
40710
  return n.forEach((o) => {
40672
40711
  t(o.node) && r.push(o);
40673
40712
  }), r;
@@ -40704,7 +40743,7 @@ Actual: ` + p3.attribValue
40704
40743
  findFieldAnnotationsByFieldId: lo$2,
40705
40744
  findFirstFieldAnnotationByFieldId: pw,
40706
40745
  findRemovedFieldAnnotations: ku$1,
40707
- getAllFieldAnnotations: Rt$2,
40746
+ getAllFieldAnnotations: Lt$1,
40708
40747
  getAllFieldAnnotationsWithRect: dw,
40709
40748
  trackFieldAnnotationsDeletion: Cu$1
40710
40749
  }, Symbol.toStringTag, { value: "Module" }));
@@ -40949,7 +40988,7 @@ Actual: ` + p3.attribValue
40949
40988
  parseDOM: (t) => t.getAttribute("data-font-size") || t.style.fontSize || null,
40950
40989
  renderDOM: (t) => {
40951
40990
  if (!t.fontSize) return {};
40952
- let [e, n] = kt$1(t.fontSize);
40991
+ let [e, n] = Ct$1(t.fontSize);
40953
40992
  if (Number.isNaN(e)) return {};
40954
40993
  n = n || "pt";
40955
40994
  let r = `${e}${n}`;
@@ -41152,7 +41191,7 @@ Actual: ` + p3.attribValue
41152
41191
  * })
41153
41192
  */
41154
41193
  setFieldAnnotationsHiddenByCondition: (t = () => false, e = false) => ({ dispatch: n, state: r, chain: o }) => {
41155
- let i3 = Rt$2(r);
41194
+ let i3 = Lt$1(r);
41156
41195
  if (!i3.length)
41157
41196
  return true;
41158
41197
  if (n) {
@@ -41170,7 +41209,7 @@ Actual: ` + p3.attribValue
41170
41209
  * editor.commands.unsetFieldAnnotationsHidden()
41171
41210
  */
41172
41211
  unsetFieldAnnotationsHidden: () => ({ dispatch: t, state: e, commands: n }) => {
41173
- let r = Rt$2(e);
41212
+ let r = Lt$1(e);
41174
41213
  return r.length && t ? n.updateFieldAnnotationsAttributes(r, { hidden: false }) : true;
41175
41214
  },
41176
41215
  /**
@@ -41182,7 +41221,7 @@ Actual: ` + p3.attribValue
41182
41221
  * editor.commands.setFieldAnnotationsVisibility('hidden');
41183
41222
  */
41184
41223
  setFieldAnnotationsVisibility: (t = "visible") => ({ dispatch: e, state: n, commands: r }) => {
41185
- let o = Rt$2(n);
41224
+ let o = Lt$1(n);
41186
41225
  return o.length ? this.options.visibilityOptions.includes(t) ? e ? r.updateFieldAnnotationsAttributes(o, {
41187
41226
  visibility: t
41188
41227
  }) : true : false : true;
@@ -41201,7 +41240,7 @@ Actual: ` + p3.attribValue
41201
41240
  * editor.commands.setFieldAnnotationsHighlighted(() => true, true)
41202
41241
  */
41203
41242
  setFieldAnnotationsHighlighted: (t = () => false, e = true) => ({ dispatch: n, state: r, commands: o }) => {
41204
- let i3 = Rt$2(r);
41243
+ let i3 = Lt$1(r);
41205
41244
  if (!i3.length)
41206
41245
  return true;
41207
41246
  if (n) {
@@ -41237,7 +41276,7 @@ Actual: ` + p3.attribValue
41237
41276
  let { from: s, to: a, node: l } = o.selection, c3 = co$1(s, a, o.doc);
41238
41277
  if (!c3.length)
41239
41278
  return true;
41240
- let [d, u] = kt$1(t), f3 = 8, p3 = 96, h3 = "pt";
41279
+ let [d, u] = Ct$1(t), f3 = 8, p3 = 96, h3 = "pt";
41241
41280
  return Number.isNaN(d) ? false : (d = xo$1(d, f3, p3), u = u || h3, n && (c3.forEach((m) => {
41242
41281
  i3.updateFieldAnnotationsAttributes([m], {
41243
41282
  fontSize: `${d}${u}`
@@ -41982,7 +42021,7 @@ Actual: ` + p3.attribValue
41982
42021
  const c3 = a.marks.find((d) => d.type.name === ki$2);
41983
42022
  c3.attrs.before.forEach((d) => {
41984
42023
  o.step(
41985
- new ct$1(
42024
+ new ct$2(
41986
42025
  s.map(Math.max(l, t)),
41987
42026
  s.map(Math.min(l + a.nodeSize, e)),
41988
42027
  n.schema.marks[d.type].create(d.attrs)
@@ -42120,12 +42159,12 @@ Actual: ` + p3.attribValue
42120
42159
  })];
42121
42160
  }
42122
42161
  });
42123
- var De$1 = "top", We$1 = "bottom", Ue = "right", Ne$2 = "left", Vs = "auto", Er$1 = [De$1, We$1, Ue, Ne$2], In$2 = "start", kr = "end", Bw = "clippingParents", Bu$1 = "viewport", Xn$2 = "popper", _w = "reference", Ol$1 = /* @__PURE__ */ Er$1.reduce(function(t, e) {
42162
+ var De$1 = "top", Ue = "bottom", qe$1 = "right", Ne$2 = "left", Vs = "auto", Er$1 = [De$1, Ue, qe$1, Ne$2], In$2 = "start", kr = "end", Bw = "clippingParents", Bu$1 = "viewport", Xn$2 = "popper", _w = "reference", Ol$1 = /* @__PURE__ */ Er$1.reduce(function(t, e) {
42124
42163
  return t.concat([e + "-" + In$2, e + "-" + kr]);
42125
42164
  }, []), _u$1 = /* @__PURE__ */ [].concat(Er$1, [Vs]).reduce(function(t, e) {
42126
42165
  return t.concat([e, e + "-" + In$2, e + "-" + kr]);
42127
42166
  }, []), zw = "beforeRead", $w = "read", Vw = "afterRead", Hw = "beforeMain", jw = "main", Ww = "afterMain", Uw = "beforeWrite", qw = "write", Kw = "afterWrite", Xw = [zw, $w, Vw, Hw, jw, Ww, Uw, qw, Kw];
42128
- function at$2(t) {
42167
+ function lt$1(t) {
42129
42168
  return t ? (t.nodeName || "").toLowerCase() : null;
42130
42169
  }
42131
42170
  function Le$2(t) {
@@ -42141,7 +42180,7 @@ Actual: ` + p3.attribValue
42141
42180
  var e = Le$2(t).Element;
42142
42181
  return t instanceof e || t instanceof Element;
42143
42182
  }
42144
- function je$2(t) {
42183
+ function We$1(t) {
42145
42184
  var e = Le$2(t).HTMLElement;
42146
42185
  return t instanceof e || t instanceof HTMLElement;
42147
42186
  }
@@ -42155,7 +42194,7 @@ Actual: ` + p3.attribValue
42155
42194
  var e = t.state;
42156
42195
  Object.keys(e.elements).forEach(function(n) {
42157
42196
  var r = e.styles[n] || {}, o = e.attributes[n] || {}, i3 = e.elements[n];
42158
- !je$2(i3) || !at$2(i3) || (Object.assign(i3.style, r), Object.keys(o).forEach(function(s) {
42197
+ !We$1(i3) || !lt$1(i3) || (Object.assign(i3.style, r), Object.keys(o).forEach(function(s) {
42159
42198
  var a = o[s];
42160
42199
  a === false ? i3.removeAttribute(s) : i3.setAttribute(s, a === true ? "" : a);
42161
42200
  }));
@@ -42179,7 +42218,7 @@ Actual: ` + p3.attribValue
42179
42218
  var o = e.elements[r], i3 = e.attributes[r] || {}, s = Object.keys(e.styles.hasOwnProperty(r) ? e.styles[r] : n[r]), a = s.reduce(function(l, c3) {
42180
42219
  return l[c3] = "", l;
42181
42220
  }, {});
42182
- !je$2(o) || !at$2(o) || (Object.assign(o.style, a), Object.keys(i3).forEach(function(l) {
42221
+ !We$1(o) || !lt$1(o) || (Object.assign(o.style, a), Object.keys(i3).forEach(function(l) {
42183
42222
  o.removeAttribute(l);
42184
42223
  }));
42185
42224
  });
@@ -42193,7 +42232,7 @@ Actual: ` + p3.attribValue
42193
42232
  effect: Yw,
42194
42233
  requires: ["computeStyles"]
42195
42234
  };
42196
- function ot(t) {
42235
+ function it(t) {
42197
42236
  return t.split("-")[0];
42198
42237
  }
42199
42238
  var sn$2 = Math.max, Oo$1 = Math.min, Pn$2 = Math.round;
@@ -42209,7 +42248,7 @@ Actual: ` + p3.attribValue
42209
42248
  function Rn$2(t, e, n) {
42210
42249
  e === void 0 && (e = false), n === void 0 && (n = false);
42211
42250
  var r = t.getBoundingClientRect(), o = 1, i3 = 1;
42212
- e && je$2(t) && (o = t.offsetWidth > 0 && Pn$2(r.width) / t.offsetWidth || 1, i3 = t.offsetHeight > 0 && Pn$2(r.height) / t.offsetHeight || 1);
42251
+ e && We$1(t) && (o = t.offsetWidth > 0 && Pn$2(r.width) / t.offsetWidth || 1, i3 = t.offsetHeight > 0 && Pn$2(r.height) / t.offsetHeight || 1);
42213
42252
  var s = un$2(t) ? Le$2(t) : window, a = s.visualViewport, l = !$u$1() && n, c3 = (r.left + (l && a ? a.offsetLeft : 0)) / o, d = (r.top + (l && a ? a.offsetTop : 0)) / i3, u = r.width / o, f3 = r.height / i3;
42214
42253
  return {
42215
42254
  width: u,
@@ -42245,11 +42284,11 @@ Actual: ` + p3.attribValue
42245
42284
  }
42246
42285
  return false;
42247
42286
  }
42248
- function Ct$1(t) {
42287
+ function St$1(t) {
42249
42288
  return Le$2(t).getComputedStyle(t);
42250
42289
  }
42251
42290
  function Gw(t) {
42252
- return ["table", "td", "th"].indexOf(at$2(t)) >= 0;
42291
+ return ["table", "td", "th"].indexOf(lt$1(t)) >= 0;
42253
42292
  }
42254
42293
  function Ut$2(t) {
42255
42294
  return ((un$2(t) ? t.ownerDocument : (
@@ -42258,7 +42297,7 @@ Actual: ` + p3.attribValue
42258
42297
  )) || window.document).documentElement;
42259
42298
  }
42260
42299
  function zo$1(t) {
42261
- return at$2(t) === "html" ? t : (
42300
+ return lt$1(t) === "html" ? t : (
42262
42301
  // this is a quicker (but less type safe) way to save quite some bytes from the bundle
42263
42302
  // $FlowFixMe[incompatible-return]
42264
42303
  // $FlowFixMe[prop-missing]
@@ -42270,19 +42309,19 @@ Actual: ` + p3.attribValue
42270
42309
  );
42271
42310
  }
42272
42311
  function Tl$1(t) {
42273
- return !je$2(t) || // https://github.com/popperjs/popper-core/issues/837
42274
- Ct$1(t).position === "fixed" ? null : t.offsetParent;
42312
+ return !We$1(t) || // https://github.com/popperjs/popper-core/issues/837
42313
+ St$1(t).position === "fixed" ? null : t.offsetParent;
42275
42314
  }
42276
42315
  function Zw(t) {
42277
42316
  var e = /firefox/i.test(ds$1()), n = /Trident/i.test(ds$1());
42278
- if (n && je$2(t)) {
42279
- var r = Ct$1(t);
42317
+ if (n && We$1(t)) {
42318
+ var r = St$1(t);
42280
42319
  if (r.position === "fixed")
42281
42320
  return null;
42282
42321
  }
42283
42322
  var o = zo$1(t);
42284
- for (Hs(o) && (o = o.host); je$2(o) && ["html", "body"].indexOf(at$2(o)) < 0; ) {
42285
- var i3 = Ct$1(o);
42323
+ for (Hs(o) && (o = o.host); We$1(o) && ["html", "body"].indexOf(lt$1(o)) < 0; ) {
42324
+ var i3 = St$1(o);
42286
42325
  if (i3.transform !== "none" || i3.perspective !== "none" || i3.contain === "paint" || ["transform", "perspective"].indexOf(i3.willChange) !== -1 || e && i3.willChange === "filter" || e && i3.filter && i3.filter !== "none")
42287
42326
  return o;
42288
42327
  o = o.parentNode;
@@ -42290,9 +42329,9 @@ Actual: ` + p3.attribValue
42290
42329
  return null;
42291
42330
  }
42292
42331
  function Ir(t) {
42293
- for (var e = Le$2(t), n = Tl$1(t); n && Gw(n) && Ct$1(n).position === "static"; )
42332
+ for (var e = Le$2(t), n = Tl$1(t); n && Gw(n) && St$1(n).position === "static"; )
42294
42333
  n = Tl$1(n);
42295
- return n && (at$2(n) === "html" || at$2(n) === "body" && Ct$1(n).position === "static") ? e : n || Zw(t) || e;
42334
+ return n && (lt$1(n) === "html" || lt$1(n) === "body" && St$1(n).position === "static") ? e : n || Zw(t) || e;
42296
42335
  }
42297
42336
  function Ws(t) {
42298
42337
  return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
@@ -42326,9 +42365,9 @@ Actual: ` + p3.attribValue
42326
42365
  })) : e, ju$1(typeof e != "number" ? e : Wu$1(e, Er$1));
42327
42366
  };
42328
42367
  function tv(t) {
42329
- var e, n = t.state, r = t.name, o = t.options, i3 = n.elements.arrow, s = n.modifiersData.popperOffsets, a = ot(n.placement), l = Ws(a), c3 = [Ne$2, Ue].indexOf(a) >= 0, d = c3 ? "height" : "width";
42368
+ var e, n = t.state, r = t.name, o = t.options, i3 = n.elements.arrow, s = n.modifiersData.popperOffsets, a = it(n.placement), l = Ws(a), c3 = [Ne$2, qe$1].indexOf(a) >= 0, d = c3 ? "height" : "width";
42330
42369
  if (!(!i3 || !s)) {
42331
- var u = ev(o.padding, n), f3 = js(i3), p3 = l === "y" ? De$1 : Ne$2, h3 = l === "y" ? We$1 : Ue, m = n.rects.reference[d] + n.rects.reference[l] - s[l] - n.rects.popper[d], g = s[l] - n.rects.reference[l], b = Ir(i3), w = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, C = m / 2 - g / 2, y = u[p3], S = w - f3[d] - u[h3], k = w / 2 - f3[d] / 2 + C, M = or$1(y, k, S), L3 = l;
42370
+ var u = ev(o.padding, n), f3 = js(i3), p3 = l === "y" ? De$1 : Ne$2, h3 = l === "y" ? Ue : qe$1, m = n.rects.reference[d] + n.rects.reference[l] - s[l] - n.rects.popper[d], g = s[l] - n.rects.reference[l], b = Ir(i3), w = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, C = m / 2 - g / 2, y = u[p3], S = w - f3[d] - u[h3], k = w / 2 - f3[d] / 2 + C, M = or$1(y, k, S), L3 = l;
42332
42371
  n.modifiersData[r] = (e = {}, e[L3] = M, e.centerOffset = M - k, e);
42333
42372
  }
42334
42373
  }
@@ -42373,16 +42412,16 @@ Actual: ` + p3.attribValue
42373
42412
  var b = s.hasOwnProperty("x"), w = s.hasOwnProperty("y"), C = Ne$2, y = De$1, S = window;
42374
42413
  if (c3) {
42375
42414
  var k = Ir(n), M = "clientHeight", L3 = "clientWidth";
42376
- if (k === Le$2(n) && (k = Ut$2(n), Ct$1(k).position !== "static" && a === "absolute" && (M = "scrollHeight", L3 = "scrollWidth")), k = k, o === De$1 || (o === Ne$2 || o === Ue) && i3 === kr) {
42377
- y = We$1;
42415
+ if (k === Le$2(n) && (k = Ut$2(n), St$1(k).position !== "static" && a === "absolute" && (M = "scrollHeight", L3 = "scrollWidth")), k = k, o === De$1 || (o === Ne$2 || o === qe$1) && i3 === kr) {
42416
+ y = Ue;
42378
42417
  var x = u && k === S && S.visualViewport ? S.visualViewport.height : (
42379
42418
  // $FlowFixMe[prop-missing]
42380
42419
  k[M]
42381
42420
  );
42382
42421
  m -= x - r.height, m *= l ? 1 : -1;
42383
42422
  }
42384
- if (o === Ne$2 || (o === De$1 || o === We$1) && i3 === kr) {
42385
- C = Ue;
42423
+ if (o === Ne$2 || (o === De$1 || o === Ue) && i3 === kr) {
42424
+ C = qe$1;
42386
42425
  var $ = u && k === S && S.visualViewport ? S.visualViewport.width : (
42387
42426
  // $FlowFixMe[prop-missing]
42388
42427
  k[L3]
@@ -42407,7 +42446,7 @@ Actual: ` + p3.attribValue
42407
42446
  }
42408
42447
  function sv(t) {
42409
42448
  var e = t.state, n = t.options, r = n.gpuAcceleration, o = r === void 0 ? true : r, i3 = n.adaptive, s = i3 === void 0 ? true : i3, a = n.roundOffsets, l = a === void 0 ? true : a, c3 = {
42410
- placement: ot(e.placement),
42449
+ placement: it(e.placement),
42411
42450
  variation: Ln$2(e.placement),
42412
42451
  popper: e.elements.popper,
42413
42452
  popperRect: e.rects.popper,
@@ -42503,7 +42542,7 @@ Actual: ` + p3.attribValue
42503
42542
  }
42504
42543
  function pv(t) {
42505
42544
  var e, n = Ut$2(t), r = Us(t), o = (e = t.ownerDocument) == null ? void 0 : e.body, i3 = sn$2(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), s = sn$2(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), a = -r.scrollLeft + qs(t), l = -r.scrollTop;
42506
- return Ct$1(o || n).direction === "rtl" && (a += sn$2(n.clientWidth, o ? o.clientWidth : 0) - i3), {
42545
+ return St$1(o || n).direction === "rtl" && (a += sn$2(n.clientWidth, o ? o.clientWidth : 0) - i3), {
42507
42546
  width: i3,
42508
42547
  height: s,
42509
42548
  x: a,
@@ -42511,11 +42550,11 @@ Actual: ` + p3.attribValue
42511
42550
  };
42512
42551
  }
42513
42552
  function Ks(t) {
42514
- var e = Ct$1(t), n = e.overflow, r = e.overflowX, o = e.overflowY;
42553
+ var e = St$1(t), n = e.overflow, r = e.overflowX, o = e.overflowY;
42515
42554
  return /auto|scroll|overlay|hidden/.test(n + o + r);
42516
42555
  }
42517
42556
  function Uu$1(t) {
42518
- return ["html", "body", "#document"].indexOf(at$2(t)) >= 0 ? t.ownerDocument.body : je$2(t) && Ks(t) ? t : Uu$1(zo$1(t));
42557
+ return ["html", "body", "#document"].indexOf(lt$1(t)) >= 0 ? t.ownerDocument.body : We$1(t) && Ks(t) ? t : Uu$1(zo$1(t));
42519
42558
  }
42520
42559
  function ir$1(t, e) {
42521
42560
  var n;
@@ -42542,9 +42581,9 @@ Actual: ` + p3.attribValue
42542
42581
  return e === Bu$1 ? us$1(fv(t, n)) : un$2(e) ? hv(e, n) : us$1(pv(Ut$2(t)));
42543
42582
  }
42544
42583
  function mv(t) {
42545
- var e = ir$1(zo$1(t)), n = ["absolute", "fixed"].indexOf(Ct$1(t).position) >= 0, r = n && je$2(t) ? Ir(t) : t;
42584
+ var e = ir$1(zo$1(t)), n = ["absolute", "fixed"].indexOf(St$1(t).position) >= 0, r = n && We$1(t) ? Ir(t) : t;
42546
42585
  return un$2(r) ? e.filter(function(o) {
42547
- return un$2(o) && Vu$1(o, r) && at$2(o) !== "body";
42586
+ return un$2(o) && Vu$1(o, r) && lt$1(o) !== "body";
42548
42587
  }) : [];
42549
42588
  }
42550
42589
  function gv(t, e, n, r) {
@@ -42555,7 +42594,7 @@ Actual: ` + p3.attribValue
42555
42594
  return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
42556
42595
  }
42557
42596
  function qu$1(t) {
42558
- var e = t.reference, n = t.element, r = t.placement, o = r ? ot(r) : null, i3 = r ? Ln$2(r) : null, s = e.x + e.width / 2 - n.width / 2, a = e.y + e.height / 2 - n.height / 2, l;
42597
+ var e = t.reference, n = t.element, r = t.placement, o = r ? it(r) : null, i3 = r ? Ln$2(r) : null, s = e.x + e.width / 2 - n.width / 2, a = e.y + e.height / 2 - n.height / 2, l;
42559
42598
  switch (o) {
42560
42599
  case De$1:
42561
42600
  l = {
@@ -42563,13 +42602,13 @@ Actual: ` + p3.attribValue
42563
42602
  y: e.y - n.height
42564
42603
  };
42565
42604
  break;
42566
- case We$1:
42605
+ case Ue:
42567
42606
  l = {
42568
42607
  x: s,
42569
42608
  y: e.y + e.height
42570
42609
  };
42571
42610
  break;
42572
- case Ue:
42611
+ case qe$1:
42573
42612
  l = {
42574
42613
  x: e.x + e.width,
42575
42614
  y: a
@@ -42616,7 +42655,7 @@ Actual: ` + p3.attribValue
42616
42655
  if (f3 === Xn$2 && _) {
42617
42656
  var U3 = _[o];
42618
42657
  Object.keys($).forEach(function(W) {
42619
- var ee = [Ue, We$1].indexOf(W) >= 0 ? 1 : -1, oe2 = [De$1, We$1].indexOf(W) >= 0 ? "y" : "x";
42658
+ var ee = [qe$1, Ue].indexOf(W) >= 0 ? 1 : -1, oe2 = [De$1, Ue].indexOf(W) >= 0 ? "y" : "x";
42620
42659
  $[W] += U3[oe2] * ee;
42621
42660
  });
42622
42661
  }
@@ -42636,14 +42675,14 @@ Actual: ` + p3.attribValue
42636
42675
  boundary: o,
42637
42676
  rootBoundary: i3,
42638
42677
  padding: s
42639
- })[ot(m)], h3;
42678
+ })[it(m)], h3;
42640
42679
  }, {});
42641
42680
  return Object.keys(p3).sort(function(h3, m) {
42642
42681
  return p3[h3] - p3[m];
42643
42682
  });
42644
42683
  }
42645
42684
  function bv(t) {
42646
- if (ot(t) === Vs)
42685
+ if (it(t) === Vs)
42647
42686
  return [];
42648
42687
  var e = uo$1(t);
42649
42688
  return [Nl$1(t), e, Nl$1(e)];
@@ -42651,8 +42690,8 @@ Actual: ` + p3.attribValue
42651
42690
  function wv(t) {
42652
42691
  var e = t.state, n = t.options, r = t.name;
42653
42692
  if (!e.modifiersData[r]._skip) {
42654
- for (var o = n.mainAxis, i3 = o === void 0 ? true : o, s = n.altAxis, a = s === void 0 ? true : s, l = n.fallbackPlacements, c3 = n.padding, d = n.boundary, u = n.rootBoundary, f3 = n.altBoundary, p3 = n.flipVariations, h3 = p3 === void 0 ? true : p3, m = n.allowedAutoPlacements, g = e.options.placement, b = ot(g), w = b === g, C = l || (w || !h3 ? [uo$1(g)] : bv(g)), y = [g].concat(C).reduce(function(qe2, Ee2) {
42655
- return qe2.concat(ot(Ee2) === Vs ? yv(e, {
42693
+ for (var o = n.mainAxis, i3 = o === void 0 ? true : o, s = n.altAxis, a = s === void 0 ? true : s, l = n.fallbackPlacements, c3 = n.padding, d = n.boundary, u = n.rootBoundary, f3 = n.altBoundary, p3 = n.flipVariations, h3 = p3 === void 0 ? true : p3, m = n.allowedAutoPlacements, g = e.options.placement, b = it(g), w = b === g, C = l || (w || !h3 ? [uo$1(g)] : bv(g)), y = [g].concat(C).reduce(function(Ke2, Ee2) {
42694
+ return Ke2.concat(it(Ee2) === Vs ? yv(e, {
42656
42695
  placement: Ee2,
42657
42696
  boundary: d,
42658
42697
  rootBoundary: u,
@@ -42661,17 +42700,17 @@ Actual: ` + p3.attribValue
42661
42700
  allowedAutoPlacements: m
42662
42701
  }) : Ee2);
42663
42702
  }, []), S = e.rects.reference, k = e.rects.popper, M = /* @__PURE__ */ new Map(), L3 = true, x = y[0], $ = 0; $ < y.length; $++) {
42664
- var _ = y[$], U3 = ot(_), W = Ln$2(_) === In$2, ee = [De$1, We$1].indexOf(U3) >= 0, oe2 = ee ? "width" : "height", ae2 = Cr$1(e, {
42703
+ var _ = y[$], U3 = it(_), W = Ln$2(_) === In$2, ee = [De$1, Ue].indexOf(U3) >= 0, oe2 = ee ? "width" : "height", ae2 = Cr$1(e, {
42665
42704
  placement: _,
42666
42705
  boundary: d,
42667
42706
  rootBoundary: u,
42668
42707
  altBoundary: f3,
42669
42708
  padding: c3
42670
- }), ce2 = ee ? W ? Ue : Ne$2 : W ? We$1 : De$1;
42709
+ }), ce2 = ee ? W ? qe$1 : Ne$2 : W ? Ue : De$1;
42671
42710
  S[oe2] > k[oe2] && (ce2 = uo$1(ce2));
42672
42711
  var se = uo$1(ce2), pe2 = [];
42673
- if (i3 && pe2.push(ae2[U3] <= 0), a && pe2.push(ae2[ce2] <= 0, ae2[se] <= 0), pe2.every(function(qe2) {
42674
- return qe2;
42712
+ if (i3 && pe2.push(ae2[U3] <= 0), a && pe2.push(ae2[ce2] <= 0, ae2[se] <= 0), pe2.every(function(Ke2) {
42713
+ return Ke2;
42675
42714
  })) {
42676
42715
  x = _, L3 = false;
42677
42716
  break;
@@ -42680,18 +42719,18 @@ Actual: ` + p3.attribValue
42680
42719
  }
42681
42720
  if (L3)
42682
42721
  for (var ke2 = h3 ? 3 : 1, Be2 = function(Ee2) {
42683
- var Ke2 = y.find(function(xt2) {
42684
- var Xe2 = M.get(xt2);
42685
- if (Xe2)
42686
- return Xe2.slice(0, Ee2).every(function(Mt2) {
42687
- return Mt2;
42722
+ var Xe2 = y.find(function(Mt2) {
42723
+ var Je2 = M.get(Mt2);
42724
+ if (Je2)
42725
+ return Je2.slice(0, Ee2).every(function(At2) {
42726
+ return At2;
42688
42727
  });
42689
42728
  });
42690
- if (Ke2)
42691
- return x = Ke2, "break";
42729
+ if (Xe2)
42730
+ return x = Xe2, "break";
42692
42731
  }, Ce2 = ke2; Ce2 > 0; Ce2--) {
42693
- var ct2 = Be2(Ce2);
42694
- if (ct2 === "break") break;
42732
+ var dt2 = Be2(Ce2);
42733
+ if (dt2 === "break") break;
42695
42734
  }
42696
42735
  e.placement !== x && (e.modifiersData[r]._skip = true, e.placement = x, e.reset = true);
42697
42736
  }
@@ -42718,7 +42757,7 @@ Actual: ` + p3.attribValue
42718
42757
  };
42719
42758
  }
42720
42759
  function Pl$1(t) {
42721
- return [De$1, Ue, We$1, Ne$2].some(function(e) {
42760
+ return [De$1, qe$1, Ue, Ne$2].some(function(e) {
42722
42761
  return t[e] >= 0;
42723
42762
  });
42724
42763
  }
@@ -42746,10 +42785,10 @@ Actual: ` + p3.attribValue
42746
42785
  fn: kv
42747
42786
  };
42748
42787
  function Sv(t, e, n) {
42749
- var r = ot(t), o = [Ne$2, De$1].indexOf(r) >= 0 ? -1 : 1, i3 = typeof n == "function" ? n(Object.assign({}, e, {
42788
+ var r = it(t), o = [Ne$2, De$1].indexOf(r) >= 0 ? -1 : 1, i3 = typeof n == "function" ? n(Object.assign({}, e, {
42750
42789
  placement: t
42751
42790
  })) : n, s = i3[0], a = i3[1];
42752
- return s = s || 0, a = (a || 0) * o, [Ne$2, Ue].indexOf(r) >= 0 ? {
42791
+ return s = s || 0, a = (a || 0) * o, [Ne$2, qe$1].indexOf(r) >= 0 ? {
42753
42792
  x: a,
42754
42793
  y: s
42755
42794
  } : {
@@ -42794,7 +42833,7 @@ Actual: ` + p3.attribValue
42794
42833
  rootBoundary: c3,
42795
42834
  padding: u,
42796
42835
  altBoundary: d
42797
- }), b = ot(e.placement), w = Ln$2(e.placement), C = !w, y = Ws(b), S = Tv(y), k = e.modifiersData.popperOffsets, M = e.rects.reference, L3 = e.rects.popper, x = typeof m == "function" ? m(Object.assign({}, e.rects, {
42836
+ }), b = it(e.placement), w = Ln$2(e.placement), C = !w, y = Ws(b), S = Tv(y), k = e.modifiersData.popperOffsets, M = e.rects.reference, L3 = e.rects.popper, x = typeof m == "function" ? m(Object.assign({}, e.rects, {
42798
42837
  placement: e.placement
42799
42838
  })) : m, $ = typeof x == "number" ? {
42800
42839
  mainAxis: x,
@@ -42808,15 +42847,15 @@ Actual: ` + p3.attribValue
42808
42847
  };
42809
42848
  if (k) {
42810
42849
  if (i3) {
42811
- var W, ee = y === "y" ? De$1 : Ne$2, oe2 = y === "y" ? We$1 : Ue, ae2 = y === "y" ? "height" : "width", ce2 = k[y], se = ce2 + g[ee], pe2 = ce2 - g[oe2], ke2 = p3 ? -L3[ae2] / 2 : 0, Be2 = w === In$2 ? M[ae2] : L3[ae2], Ce2 = w === In$2 ? -L3[ae2] : -M[ae2], ct2 = e.elements.arrow, qe2 = p3 && ct2 ? js(ct2) : {
42850
+ var W, ee = y === "y" ? De$1 : Ne$2, oe2 = y === "y" ? Ue : qe$1, ae2 = y === "y" ? "height" : "width", ce2 = k[y], se = ce2 + g[ee], pe2 = ce2 - g[oe2], ke2 = p3 ? -L3[ae2] / 2 : 0, Be2 = w === In$2 ? M[ae2] : L3[ae2], Ce2 = w === In$2 ? -L3[ae2] : -M[ae2], dt2 = e.elements.arrow, Ke2 = p3 && dt2 ? js(dt2) : {
42812
42851
  width: 0,
42813
42852
  height: 0
42814
- }, Ee2 = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Hu$1(), Ke2 = Ee2[ee], xt2 = Ee2[oe2], Xe2 = or$1(0, M[ae2], qe2[ae2]), Mt2 = C ? M[ae2] / 2 - ke2 - Xe2 - Ke2 - $.mainAxis : Be2 - Xe2 - Ke2 - $.mainAxis, At2 = C ? -M[ae2] / 2 + ke2 + Xe2 + xt2 + $.mainAxis : Ce2 + Xe2 + xt2 + $.mainAxis, fn2 = e.elements.arrow && Ir(e.elements.arrow), Rr2 = fn2 ? y === "y" ? fn2.clientTop || 0 : fn2.clientLeft || 0 : 0, Vn2 = (W = _?.[y]) != null ? W : 0, Lr2 = ce2 + Mt2 - Vn2 - Rr2, Fr2 = ce2 + At2 - Vn2, Hn2 = or$1(p3 ? Oo$1(se, Lr2) : se, ce2, p3 ? sn$2(pe2, Fr2) : pe2);
42853
+ }, Ee2 = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Hu$1(), Xe2 = Ee2[ee], Mt2 = Ee2[oe2], Je2 = or$1(0, M[ae2], Ke2[ae2]), At2 = C ? M[ae2] / 2 - ke2 - Je2 - Xe2 - $.mainAxis : Be2 - Je2 - Xe2 - $.mainAxis, Ot2 = C ? -M[ae2] / 2 + ke2 + Je2 + Mt2 + $.mainAxis : Ce2 + Je2 + Mt2 + $.mainAxis, fn2 = e.elements.arrow && Ir(e.elements.arrow), Rr2 = fn2 ? y === "y" ? fn2.clientTop || 0 : fn2.clientLeft || 0 : 0, Vn2 = (W = _?.[y]) != null ? W : 0, Lr2 = ce2 + At2 - Vn2 - Rr2, Fr2 = ce2 + Ot2 - Vn2, Hn2 = or$1(p3 ? Oo$1(se, Lr2) : se, ce2, p3 ? sn$2(pe2, Fr2) : pe2);
42815
42854
  k[y] = Hn2, U3[y] = Hn2 - ce2;
42816
42855
  }
42817
42856
  if (a) {
42818
- var jn2, Br2 = y === "x" ? De$1 : Ne$2, _r2 = y === "x" ? We$1 : Ue, dt2 = k[S], Ot2 = S === "y" ? "height" : "width", Wn2 = dt2 + g[Br2], qt2 = dt2 - g[_r2], Un2 = [De$1, Ne$2].indexOf(b) !== -1, zr2 = (jn2 = _?.[S]) != null ? jn2 : 0, $r2 = Un2 ? Wn2 : dt2 - M[Ot2] - L3[Ot2] - zr2 + $.altAxis, Vr2 = Un2 ? dt2 + M[Ot2] + L3[Ot2] - zr2 - $.altAxis : qt2, Hr2 = p3 && Un2 ? Qw($r2, dt2, Vr2) : or$1(p3 ? $r2 : Wn2, dt2, p3 ? Vr2 : qt2);
42819
- k[S] = Hr2, U3[S] = Hr2 - dt2;
42857
+ var jn2, Br2 = y === "x" ? De$1 : Ne$2, _r2 = y === "x" ? Ue : qe$1, ut2 = k[S], Tt2 = S === "y" ? "height" : "width", Wn2 = ut2 + g[Br2], qt2 = ut2 - g[_r2], Un2 = [De$1, Ne$2].indexOf(b) !== -1, zr2 = (jn2 = _?.[S]) != null ? jn2 : 0, $r2 = Un2 ? Wn2 : ut2 - M[Tt2] - L3[Tt2] - zr2 + $.altAxis, Vr2 = Un2 ? ut2 + M[Tt2] + L3[Tt2] - zr2 - $.altAxis : qt2, Hr2 = p3 && Un2 ? Qw($r2, ut2, Vr2) : or$1(p3 ? $r2 : Wn2, ut2, p3 ? Vr2 : qt2);
42858
+ k[S] = Hr2, U3[S] = Hr2 - ut2;
42820
42859
  }
42821
42860
  e.modifiersData[r] = U3;
42822
42861
  }
@@ -42835,7 +42874,7 @@ Actual: ` + p3.attribValue
42835
42874
  };
42836
42875
  }
42837
42876
  function Iv(t) {
42838
- return t === Le$2(t) || !je$2(t) ? Us(t) : Ev(t);
42877
+ return t === Le$2(t) || !We$1(t) ? Us(t) : Ev(t);
42839
42878
  }
42840
42879
  function Pv(t) {
42841
42880
  var e = t.getBoundingClientRect(), n = Pn$2(e.width) / t.offsetWidth || 1, r = Pn$2(e.height) / t.offsetHeight || 1;
@@ -42843,15 +42882,15 @@ Actual: ` + p3.attribValue
42843
42882
  }
42844
42883
  function Rv(t, e, n) {
42845
42884
  n === void 0 && (n = false);
42846
- var r = je$2(e), o = je$2(e) && Pv(e), i3 = Ut$2(e), s = Rn$2(t, o, n), a = {
42885
+ var r = We$1(e), o = We$1(e) && Pv(e), i3 = Ut$2(e), s = Rn$2(t, o, n), a = {
42847
42886
  scrollLeft: 0,
42848
42887
  scrollTop: 0
42849
42888
  }, l = {
42850
42889
  x: 0,
42851
42890
  y: 0
42852
42891
  };
42853
- return (r || !r && !n) && ((at$2(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
42854
- Ks(i3)) && (a = Iv(e)), je$2(e) ? (l = Rn$2(e, true), l.x += e.clientLeft, l.y += e.clientTop) : i3 && (l.x = qs(i3))), {
42892
+ return (r || !r && !n) && ((lt$1(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
42893
+ Ks(i3)) && (a = Iv(e)), We$1(e) ? (l = Rn$2(e, true), l.x += e.clientLeft, l.y += e.clientTop) : i3 && (l.x = qs(i3))), {
42855
42894
  x: s.left + a.scrollLeft - l.x,
42856
42895
  y: s.top + a.scrollTop - l.y,
42857
42896
  width: s.width,
@@ -43143,15 +43182,15 @@ Actual: ` + p3.attribValue
43143
43182
  }
43144
43183
  return false;
43145
43184
  }
43146
- var nt$1 = {
43185
+ var rt$2 = {
43147
43186
  isTouch: false
43148
43187
  }, Vl$1 = 0;
43149
43188
  function tk() {
43150
- nt$1.isTouch || (nt$1.isTouch = true, window.performance && document.addEventListener("mousemove", Zu$1));
43189
+ rt$2.isTouch || (rt$2.isTouch = true, window.performance && document.addEventListener("mousemove", Zu$1));
43151
43190
  }
43152
43191
  function Zu$1() {
43153
43192
  var t = performance.now();
43154
- t - Vl$1 < 20 && (nt$1.isTouch = false, document.removeEventListener("mousemove", Zu$1)), Vl$1 = t;
43193
+ t - Vl$1 < 20 && (rt$2.isTouch = false, document.removeEventListener("mousemove", Zu$1)), Vl$1 = t;
43155
43194
  }
43156
43195
  function nk() {
43157
43196
  var t = document.activeElement;
@@ -43200,7 +43239,7 @@ Actual: ` + p3.attribValue
43200
43239
  function ak() {
43201
43240
  xr$1 = /* @__PURE__ */ new Set();
43202
43241
  }
43203
- function mt$1(t, e) {
43242
+ function gt$1(t, e) {
43204
43243
  if (t && !xr$1.has(e)) {
43205
43244
  var n;
43206
43245
  xr$1.add(e), (n = console).warn.apply(n, Qu$1(e));
@@ -43332,7 +43371,7 @@ Actual: ` + p3.attribValue
43332
43371
  var o = Uv(Pe, Object.keys(ef$1)), i3 = !Wv(o, r);
43333
43372
  i3 && (i3 = e.filter(function(s) {
43334
43373
  return s.name === r;
43335
- }).length === 0), mt$1(i3, ["`" + r + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
43374
+ }).length === 0), gt$1(i3, ["`" + r + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
43336
43375
 
43337
43376
  `, `All props: https://atomiks.github.io/tippyjs/v6/all-props/
43338
43377
  `, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "));
@@ -43449,7 +43488,7 @@ Actual: ` + p3.attribValue
43449
43488
  return hs$1(k);
43450
43489
  }
43451
43490
  function ae2(v) {
43452
- return y.state.isMounted && !y.state.isVisible || nt$1.isTouch || d && d.type === "focus" ? 0 : ui$1(y.props.delay, v ? 0 : 1, Pe.delay);
43491
+ return y.state.isMounted && !y.state.isVisible || rt$2.isTouch || d && d.type === "focus" ? 0 : ui$1(y.props.delay, v ? 0 : 1, Pe.delay);
43453
43492
  }
43454
43493
  function ce2(v) {
43455
43494
  v === void 0 && (v = false), k.style.pointerEvents = y.props.interactive && !v ? "" : "none", k.style.zIndex = "" + y.props.zIndex;
@@ -43491,45 +43530,45 @@ Actual: ` + p3.attribValue
43491
43530
  });
43492
43531
  }
43493
43532
  function Ce2(v) {
43494
- if (!(nt$1.isTouch && (l || v.type === "mousedown"))) {
43533
+ if (!(rt$2.isTouch && (l || v.type === "mousedown"))) {
43495
43534
  var A = v.composedPath && v.composedPath()[0] || v.target;
43496
43535
  if (!(y.props.interactive && $l$1(k, A))) {
43497
43536
  if (Sn$2(y.props.triggerTarget || t).some(function(R) {
43498
43537
  return $l$1(R, A);
43499
43538
  })) {
43500
- if (nt$1.isTouch || y.state.isVisible && y.props.trigger.indexOf("click") >= 0)
43539
+ if (rt$2.isTouch || y.state.isVisible && y.props.trigger.indexOf("click") >= 0)
43501
43540
  return;
43502
43541
  } else
43503
43542
  se("onClickOutside", [y, v]);
43504
43543
  y.props.hideOnClick === true && (y.clearDelayTimeouts(), y.hide(), a = true, setTimeout(function() {
43505
43544
  a = false;
43506
- }), y.state.isMounted || Ke2());
43545
+ }), y.state.isMounted || Xe2());
43507
43546
  }
43508
43547
  }
43509
43548
  }
43510
- function ct2() {
43549
+ function dt2() {
43511
43550
  l = true;
43512
43551
  }
43513
- function qe2() {
43552
+ function Ke2() {
43514
43553
  l = false;
43515
43554
  }
43516
43555
  function Ee2() {
43517
43556
  var v = ee();
43518
- v.addEventListener("mousedown", Ce2, true), v.addEventListener("touchend", Ce2, Gt$2), v.addEventListener("touchstart", qe2, Gt$2), v.addEventListener("touchmove", ct2, Gt$2);
43557
+ v.addEventListener("mousedown", Ce2, true), v.addEventListener("touchend", Ce2, Gt$2), v.addEventListener("touchstart", Ke2, Gt$2), v.addEventListener("touchmove", dt2, Gt$2);
43519
43558
  }
43520
- function Ke2() {
43559
+ function Xe2() {
43521
43560
  var v = ee();
43522
- v.removeEventListener("mousedown", Ce2, true), v.removeEventListener("touchend", Ce2, Gt$2), v.removeEventListener("touchstart", qe2, Gt$2), v.removeEventListener("touchmove", ct2, Gt$2);
43561
+ v.removeEventListener("mousedown", Ce2, true), v.removeEventListener("touchend", Ce2, Gt$2), v.removeEventListener("touchstart", Ke2, Gt$2), v.removeEventListener("touchmove", dt2, Gt$2);
43523
43562
  }
43524
- function xt2(v, A) {
43525
- Mt2(v, function() {
43563
+ function Mt2(v, A) {
43564
+ At2(v, function() {
43526
43565
  !y.state.isVisible && k.parentNode && k.parentNode.contains(k) && A();
43527
43566
  });
43528
43567
  }
43529
- function Xe2(v, A) {
43530
- Mt2(v, A);
43568
+ function Je2(v, A) {
43569
+ At2(v, A);
43531
43570
  }
43532
- function Mt2(v, A) {
43571
+ function At2(v, A) {
43533
43572
  var R = oe2().box;
43534
43573
  function q(j) {
43535
43574
  j.target === R && (pi$1(R, "remove", q), A());
@@ -43538,7 +43577,7 @@ Actual: ` + p3.attribValue
43538
43577
  return A();
43539
43578
  pi$1(R, "remove", u), pi$1(R, "add", q), u = q;
43540
43579
  }
43541
- function At2(v, A, R) {
43580
+ function Ot2(v, A, R) {
43542
43581
  R === void 0 && (R = false);
43543
43582
  var q = Sn$2(y.props.triggerTarget || t);
43544
43583
  q.forEach(function(j) {
@@ -43551,21 +43590,21 @@ Actual: ` + p3.attribValue
43551
43590
  });
43552
43591
  }
43553
43592
  function fn2() {
43554
- _() && (At2("touchstart", Vn2, {
43593
+ _() && (Ot2("touchstart", Vn2, {
43555
43594
  passive: true
43556
- }), At2("touchend", Fr2, {
43595
+ }), Ot2("touchend", Fr2, {
43557
43596
  passive: true
43558
43597
  })), qv(y.props.trigger).forEach(function(v) {
43559
43598
  if (v !== "manual")
43560
- switch (At2(v, Vn2), v) {
43599
+ switch (Ot2(v, Vn2), v) {
43561
43600
  case "mouseenter":
43562
- At2("mouseleave", Fr2);
43601
+ Ot2("mouseleave", Fr2);
43563
43602
  break;
43564
43603
  case "focus":
43565
- At2(ik ? "focusout" : "blur", Hn2);
43604
+ Ot2(ik ? "focusout" : "blur", Hn2);
43566
43605
  break;
43567
43606
  case "focusin":
43568
- At2("focusout", Hn2);
43607
+ Ot2("focusout", Hn2);
43569
43608
  break;
43570
43609
  }
43571
43610
  });
@@ -43588,7 +43627,7 @@ Actual: ` + p3.attribValue
43588
43627
  function Lr2(v) {
43589
43628
  var A = v.target, R = W().contains(A) || k.contains(A);
43590
43629
  if (!(v.type === "mousemove" && R)) {
43591
- var q = Ot2().concat(k).map(function(j) {
43630
+ var q = Tt2().concat(k).map(function(j) {
43592
43631
  var Se2, _e = j._tippy, pn2 = (Se2 = _e.popperInstance) == null ? void 0 : Se2.state;
43593
43632
  return pn2 ? {
43594
43633
  popperRect: j.getBoundingClientRect(),
@@ -43613,7 +43652,7 @@ Actual: ` + p3.attribValue
43613
43652
  y.props.trigger.indexOf("focusin") < 0 && v.target !== W() || y.props.interactive && v.relatedTarget && k.contains(v.relatedTarget) || qt2(v);
43614
43653
  }
43615
43654
  function jn2(v) {
43616
- return nt$1.isTouch ? _() !== v.type.indexOf("touch") >= 0 : false;
43655
+ return rt$2.isTouch ? _() !== v.type.indexOf("touch") >= 0 : false;
43617
43656
  }
43618
43657
  function Br2() {
43619
43658
  _r2();
@@ -43675,9 +43714,9 @@ Actual: ` + p3.attribValue
43675
43714
  function _r2() {
43676
43715
  y.popperInstance && (y.popperInstance.destroy(), y.popperInstance = null);
43677
43716
  }
43678
- function dt2() {
43717
+ function ut2() {
43679
43718
  var v = y.props.appendTo, A, R = W();
43680
- y.props.interactive && v === Yu$1 || v === "parent" ? A = R.parentNode : A = Gu$1(v, [R]), A.contains(k) || A.appendChild(k), y.state.isMounted = true, Br2(), me$1.env.NODE_ENV !== "production" && mt$1(y.props.interactive && v === Pe.appendTo && R.nextElementSibling !== k, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
43719
+ y.props.interactive && v === Yu$1 || v === "parent" ? A = R.parentNode : A = Gu$1(v, [R]), A.contains(k) || A.appendChild(k), y.state.isMounted = true, Br2(), me$1.env.NODE_ENV !== "production" && gt$1(y.props.interactive && v === Pe.appendTo && R.nextElementSibling !== k, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
43681
43720
 
43682
43721
  `, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
43683
43722
 
@@ -43685,19 +43724,19 @@ Actual: ` + p3.attribValue
43685
43724
 
43686
43725
  `, "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "));
43687
43726
  }
43688
- function Ot2() {
43727
+ function Tt2() {
43689
43728
  return To$1(k.querySelectorAll("[data-tippy-root]"));
43690
43729
  }
43691
43730
  function Wn2(v) {
43692
43731
  y.clearDelayTimeouts(), v && se("onTrigger", [y, v]), Ee2();
43693
43732
  var A = ae2(true), R = $(), q = R[0], j = R[1];
43694
- nt$1.isTouch && q === "hold" && j && (A = j), A ? r = setTimeout(function() {
43733
+ rt$2.isTouch && q === "hold" && j && (A = j), A ? r = setTimeout(function() {
43695
43734
  y.show();
43696
43735
  }, A) : y.show();
43697
43736
  }
43698
43737
  function qt2(v) {
43699
43738
  if (y.clearDelayTimeouts(), se("onUntrigger", [y, v]), !y.state.isVisible) {
43700
- Ke2();
43739
+ Xe2();
43701
43740
  return;
43702
43741
  }
43703
43742
  if (!(y.props.trigger.indexOf("mouseenter") >= 0 && y.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(v.type) >= 0 && s)) {
@@ -43719,14 +43758,14 @@ Actual: ` + p3.attribValue
43719
43758
  clearTimeout(r), clearTimeout(o), cancelAnimationFrame(i3);
43720
43759
  }
43721
43760
  function Vr2(v) {
43722
- if (me$1.env.NODE_ENV !== "production" && mt$1(y.state.isDestroyed, wn$2("setProps")), !y.state.isDestroyed) {
43761
+ if (me$1.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, wn$2("setProps")), !y.state.isDestroyed) {
43723
43762
  se("onBeforeUpdate", [y, v]), Rr2();
43724
43763
  var A = y.props, R = jl$1(t, Object.assign({}, A, _l$1(v), {
43725
43764
  ignoreAttributes: true
43726
43765
  }));
43727
43766
  y.props = R, fn2(), A.interactiveDebounce !== R.interactiveDebounce && (Be2(), h3 = Fl$1(Lr2, R.interactiveDebounce)), A.triggerTarget && !R.triggerTarget ? Sn$2(A.triggerTarget).forEach(function(q) {
43728
43767
  q.removeAttribute("aria-expanded");
43729
- }) : R.triggerTarget && t.removeAttribute("aria-expanded"), ke2(), ce2(), M && M(A, R), y.popperInstance && (Br2(), Ot2().forEach(function(q) {
43768
+ }) : R.triggerTarget && t.removeAttribute("aria-expanded"), ke2(), ce2(), M && M(A, R), y.popperInstance && (Br2(), Tt2().forEach(function(q) {
43730
43769
  requestAnimationFrame(q._tippy.popperInstance.forceUpdate);
43731
43770
  })), se("onAfterUpdate", [y, v]);
43732
43771
  }
@@ -43737,8 +43776,8 @@ Actual: ` + p3.attribValue
43737
43776
  });
43738
43777
  }
43739
43778
  function of2() {
43740
- me$1.env.NODE_ENV !== "production" && mt$1(y.state.isDestroyed, wn$2("show"));
43741
- var v = y.state.isVisible, A = y.state.isDestroyed, R = !y.state.isEnabled, q = nt$1.isTouch && !y.props.touch, j = ui$1(y.props.duration, 0, Pe.duration);
43779
+ me$1.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, wn$2("show"));
43780
+ var v = y.state.isVisible, A = y.state.isDestroyed, R = !y.state.isEnabled, q = rt$2.isTouch && !y.props.touch, j = ui$1(y.props.duration, 0, Pe.duration);
43742
43781
  if (!(v || A || R || q) && !W().hasAttribute("disabled") && (se("onShow", [y], false), y.props.onShow(y) !== false)) {
43743
43782
  if (y.state.isVisible = true, U3() && (k.style.visibility = "visible"), ce2(), Ee2(), y.state.isMounted || (k.style.transition = "none"), U3()) {
43744
43783
  var Se2 = oe2(), _e = Se2.box, pn2 = Se2.content;
@@ -43751,36 +43790,36 @@ Actual: ` + p3.attribValue
43751
43790
  var $o2 = oe2(), jr2 = $o2.box, hn2 = $o2.content;
43752
43791
  fi$1([jr2, hn2], j), zl$1([jr2, hn2], "visible");
43753
43792
  }
43754
- pe2(), ke2(), Bl$1(hi$1, y), (Kt2 = y.popperInstance) == null || Kt2.forceUpdate(), se("onMount", [y]), y.props.animation && U3() && Xe2(j, function() {
43793
+ pe2(), ke2(), Bl$1(hi$1, y), (Kt2 = y.popperInstance) == null || Kt2.forceUpdate(), se("onMount", [y]), y.props.animation && U3() && Je2(j, function() {
43755
43794
  y.state.isShown = true, se("onShown", [y]);
43756
43795
  });
43757
43796
  }
43758
- }, dt2();
43797
+ }, ut2();
43759
43798
  }
43760
43799
  }
43761
43800
  function sf2() {
43762
- me$1.env.NODE_ENV !== "production" && mt$1(y.state.isDestroyed, wn$2("hide"));
43801
+ me$1.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, wn$2("hide"));
43763
43802
  var v = !y.state.isVisible, A = y.state.isDestroyed, R = !y.state.isEnabled, q = ui$1(y.props.duration, 1, Pe.duration);
43764
43803
  if (!(v || A || R) && (se("onHide", [y], false), y.props.onHide(y) !== false)) {
43765
- if (y.state.isVisible = false, y.state.isShown = false, c3 = false, s = false, U3() && (k.style.visibility = "hidden"), Be2(), Ke2(), ce2(true), U3()) {
43804
+ if (y.state.isVisible = false, y.state.isShown = false, c3 = false, s = false, U3() && (k.style.visibility = "hidden"), Be2(), Xe2(), ce2(true), U3()) {
43766
43805
  var j = oe2(), Se2 = j.box, _e = j.content;
43767
43806
  y.props.animation && (fi$1([Se2, _e], q), zl$1([Se2, _e], "hidden"));
43768
43807
  }
43769
- pe2(), ke2(), y.props.animation ? U3() && xt2(q, y.unmount) : y.unmount();
43808
+ pe2(), ke2(), y.props.animation ? U3() && Mt2(q, y.unmount) : y.unmount();
43770
43809
  }
43771
43810
  }
43772
43811
  function af2(v) {
43773
- me$1.env.NODE_ENV !== "production" && mt$1(y.state.isDestroyed, wn$2("hideWithInteractivity")), ee().addEventListener("mousemove", h3), Bl$1(Qr$1, h3), h3(v);
43812
+ me$1.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, wn$2("hideWithInteractivity")), ee().addEventListener("mousemove", h3), Bl$1(Qr$1, h3), h3(v);
43774
43813
  }
43775
43814
  function lf2() {
43776
- me$1.env.NODE_ENV !== "production" && mt$1(y.state.isDestroyed, wn$2("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (_r2(), Ot2().forEach(function(v) {
43815
+ me$1.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, wn$2("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (_r2(), Tt2().forEach(function(v) {
43777
43816
  v._tippy.unmount();
43778
43817
  }), k.parentNode && k.parentNode.removeChild(k), hi$1 = hi$1.filter(function(v) {
43779
43818
  return v !== y;
43780
43819
  }), y.state.isMounted = false, se("onHidden", [y]));
43781
43820
  }
43782
43821
  function cf2() {
43783
- me$1.env.NODE_ENV !== "production" && mt$1(y.state.isDestroyed, wn$2("destroy")), !y.state.isDestroyed && (y.clearDelayTimeouts(), y.unmount(), Rr2(), delete t._tippy, y.state.isDestroyed = true, se("onDestroy", [y]));
43822
+ me$1.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, wn$2("destroy")), !y.state.isDestroyed && (y.clearDelayTimeouts(), y.unmount(), Rr2(), delete t._tippy, y.state.isDestroyed = true, se("onDestroy", [y]));
43784
43823
  }
43785
43824
  }
43786
43825
  function Pr(t, e) {
@@ -43792,7 +43831,7 @@ Actual: ` + p3.attribValue
43792
43831
  }), o = Zv(t);
43793
43832
  if (me$1.env.NODE_ENV !== "production") {
43794
43833
  var i3 = Sr$1(r.content), s = o.length > 1;
43795
- mt$1(i3 && s, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", `
43834
+ gt$1(i3 && s, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", `
43796
43835
 
43797
43836
  `, "Instead, pass the .innerHTML of the element, or use a function that", "returns a cloned version of the element instead.", `
43798
43837
 
@@ -43807,7 +43846,7 @@ Actual: ` + p3.attribValue
43807
43846
  }
43808
43847
  Pr.defaultProps = Pe;
43809
43848
  Pr.setDefaultProps = uk;
43810
- Pr.currentInput = nt$1;
43849
+ Pr.currentInput = rt$2;
43811
43850
  Object.assign({}, zu$1, {
43812
43851
  effect: function(e) {
43813
43852
  var n = e.state, r = {
@@ -44140,7 +44179,7 @@ Actual: ` + p3.attribValue
44140
44179
  }
44141
44180
  }
44142
44181
  if (ce2 || ae2) {
44143
- const se = e.state.doc.resolve(oe2), pe2 = Bo$1(se, (Mt2) => Mt2.type.name === "tableRow");
44182
+ const se = e.state.doc.resolve(oe2), pe2 = Bo$1(se, (At2) => At2.type.name === "tableRow");
44144
44183
  pe2 && (ee = pe2.node, oe2 = pe2.pos);
44145
44184
  const {
44146
44185
  top: ke2,
@@ -44148,12 +44187,12 @@ Actual: ` + p3.attribValue
44148
44187
  pos: Ce2
44149
44188
  } = Ek(e, oe2, c3);
44150
44189
  l++;
44151
- const ct2 = eo$2(l, "headerIds", n), qe2 = eo$2(l, "footerIds", n);
44152
- u = mi$1(s, i3, r, ct2), d = gi$1(s, i3, r, qe2, l - 1);
44153
- const Ee2 = c3 - Be2, { node: Ke2 } = Kl$1(Ee2), xt2 = z.widget(Ce2, Ke2, { key: "stable-key" });
44154
- o.push(xt2);
44155
- const Xe2 = yi$1({ editor: n, header: u, footer: d });
44156
- o.push(z.widget(Ce2, Xe2, { key: "stable-key" })), c3 = Be2 + (a - u.headerHeight - d.footerHeight);
44190
+ const dt2 = eo$2(l, "headerIds", n), Ke2 = eo$2(l, "footerIds", n);
44191
+ u = mi$1(s, i3, r, dt2), d = gi$1(s, i3, r, Ke2, l - 1);
44192
+ const Ee2 = c3 - Be2, { node: Xe2 } = Kl$1(Ee2), Mt2 = z.widget(Ce2, Xe2, { key: "stable-key" });
44193
+ o.push(Mt2);
44194
+ const Je2 = yi$1({ editor: n, header: u, footer: d });
44195
+ o.push(z.widget(Ce2, Je2, { key: "stable-key" })), c3 = Be2 + (a - u.headerHeight - d.footerHeight);
44157
44196
  }
44158
44197
  });
44159
44198
  let y = t.content.size;
@@ -53111,14 +53150,14 @@ ${t}
53111
53150
  },
53112
53151
  increaseTextIndent: ({ item: o22, argument: n22 }) => {
53113
53152
  let e = o22.command, { state: i3 } = this.activeEditor;
53114
- if (Ht$2((l) => l.type.name === "listItem")(i3.selection))
53115
- return this.activeEditor.chain().sinkListItem("listItem").updateOrderedListStyleType().run();
53153
+ if (je$2((l) => l.type.name === "listItem")(i3.selection))
53154
+ return this.activeEditor.commands.increaseListIndent();
53116
53155
  e in this.activeEditor.commands && this.activeEditor.commands[e](n22);
53117
53156
  },
53118
53157
  decreaseTextIndent: ({ item: o22, argument: n22 }) => {
53119
53158
  let e = o22.command, { state: i3 } = this.activeEditor;
53120
- if (Ht$2((l) => l.type.name === "listItem")(i3.selection))
53121
- return this.activeEditor.chain().liftListItem("listItem").updateOrderedListStyleType().run();
53159
+ if (je$2((l) => l.type.name === "listItem")(i3.selection))
53160
+ return this.activeEditor.commands.decreaseListIndent();
53122
53161
  e in this.activeEditor.commands && this.activeEditor.commands[e](n22);
53123
53162
  },
53124
53163
  toggleBold: ({ item: o22, argument: n22 }) => {
@@ -68403,7 +68442,7 @@ ${style2}
68403
68442
  this.config.colors = shuffleArray(this.config.colors);
68404
68443
  this.userColorMap = /* @__PURE__ */ new Map();
68405
68444
  this.colorIndex = 0;
68406
- this.version = "0.9.22";
68445
+ this.version = "0.9.24";
68407
68446
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
68408
68447
  this.superdocId = config.superdocId || v4();
68409
68448
  this.colors = this.config.colors;