@harbour-enterprises/superdoc 0.10.12 → 0.10.14

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.
@@ -8877,9 +8877,9 @@
8877
8877
  function vl$2() {
8878
8878
  return is$2 || (is$2 = 1, en$2 = Object.getOwnPropertyDescriptor), en$2;
8879
8879
  }
8880
- var tn$2, ss$2;
8880
+ var tn$1, ss$2;
8881
8881
  function It$2() {
8882
- if (ss$2) return tn$2;
8882
+ if (ss$2) return tn$1;
8883
8883
  ss$2 = 1;
8884
8884
  var r22 = vl$2();
8885
8885
  if (r22)
@@ -8888,7 +8888,7 @@
8888
8888
  } catch {
8889
8889
  r22 = null;
8890
8890
  }
8891
- return tn$2 = r22, tn$2;
8891
+ return tn$1 = r22, tn$1;
8892
8892
  }
8893
8893
  var rn$3, os$2;
8894
8894
  function vr$2() {
@@ -8912,9 +8912,9 @@
8912
8912
  return typeof r22 != "function" || typeof Symbol != "function" || typeof r22("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? false : e();
8913
8913
  }, nn$3;
8914
8914
  }
8915
- var sn$2, us$2;
8915
+ var sn$3, us$2;
8916
8916
  function $o$1() {
8917
- return us$2 || (us$2 = 1, sn$2 = typeof Reflect < "u" && Reflect.getPrototypeOf || null), sn$2;
8917
+ return us$2 || (us$2 = 1, sn$3 = typeof Reflect < "u" && Reflect.getPrototypeOf || null), sn$3;
8918
8918
  }
8919
8919
  var on$4, ls$2;
8920
8920
  function Xo$1() {
@@ -8923,9 +8923,9 @@
8923
8923
  var r22 = Jo$2();
8924
8924
  return on$4 = r22.getPrototypeOf || null, on$4;
8925
8925
  }
8926
- var an$3, cs$2;
8926
+ var an$2, cs$2;
8927
8927
  function Sl$2() {
8928
- if (cs$2) return an$3;
8928
+ if (cs$2) return an$2;
8929
8929
  cs$2 = 1;
8930
8930
  var r22 = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, t = Math.max, n = "[object Function]", i3 = function(u, f3) {
8931
8931
  for (var c3 = [], g = 0; g < u.length; g += 1)
@@ -8942,7 +8942,7 @@
8942
8942
  f3 += a[c3], c3 + 1 < a.length && (f3 += u);
8943
8943
  return f3;
8944
8944
  };
8945
- return an$3 = function(u) {
8945
+ return an$2 = function(u) {
8946
8946
  var f3 = this;
8947
8947
  if (typeof f3 != "function" || e.apply(f3) !== n)
8948
8948
  throw new TypeError(r22 + f3);
@@ -8966,14 +8966,14 @@
8966
8966
  F3.prototype = f3.prototype, g.prototype = new F3(), F3.prototype = null;
8967
8967
  }
8968
8968
  return g;
8969
- }, an$3;
8969
+ }, an$2;
8970
8970
  }
8971
- var un$2, fs$2;
8971
+ var un$3, fs$2;
8972
8972
  function Kt$2() {
8973
- if (fs$2) return un$2;
8973
+ if (fs$2) return un$3;
8974
8974
  fs$2 = 1;
8975
8975
  var r22 = Sl$2();
8976
- return un$2 = Function.prototype.bind || r22, un$2;
8976
+ return un$3 = Function.prototype.bind || r22, un$3;
8977
8977
  }
8978
8978
  var ln$3, ds$2;
8979
8979
  function xi$2() {
@@ -8994,16 +8994,16 @@
8994
8994
  var r22 = Kt$2(), e = Ai$2(), t = xi$2(), n = Tl$2();
8995
8995
  return dn$3 = n || r22.call(t, e), dn$3;
8996
8996
  }
8997
- var mn$3, gs$1;
8997
+ var mn$2, gs$1;
8998
8998
  function Di$2() {
8999
- if (gs$1) return mn$3;
8999
+ if (gs$1) return mn$2;
9000
9000
  gs$1 = 1;
9001
9001
  var r22 = Kt$2(), e = Jt$2(), t = xi$2(), n = Yo$2();
9002
- return mn$3 = function(s) {
9002
+ return mn$2 = function(s) {
9003
9003
  if (s.length < 1 || typeof s[0] != "function")
9004
9004
  throw new e("a function is required");
9005
9005
  return n(r22, t, s);
9006
- }, mn$3;
9006
+ }, mn$2;
9007
9007
  }
9008
9008
  var pn$1, ws$1;
9009
9009
  function Fl$2() {
@@ -9361,18 +9361,18 @@
9361
9361
  }
9362
9362
  return xn$3 = i3, xn$3;
9363
9363
  }
9364
- var An$1, vs$1;
9364
+ var An$2, vs$1;
9365
9365
  function Nl$2() {
9366
- if (vs$1) return An$1;
9366
+ if (vs$1) return An$2;
9367
9367
  vs$1 = 1;
9368
9368
  var r22 = $t$2(), e = kl$2(), t = r22("RegExp.prototype.exec"), n = Jt$2();
9369
- return An$1 = function(s) {
9369
+ return An$2 = function(s) {
9370
9370
  if (!e(s))
9371
9371
  throw new n("`regex` must be a RegExp");
9372
9372
  return function(a) {
9373
9373
  return t(s, a) !== null;
9374
9374
  };
9375
- }, An$1;
9375
+ }, An$2;
9376
9376
  }
9377
9377
  var Dn$3, Cs$1;
9378
9378
  function Il$2() {
@@ -9520,16 +9520,16 @@
9520
9520
  "BigUint64Array"
9521
9521
  ]), Cn$2;
9522
9522
  }
9523
- var Sn$3, Bs$1;
9523
+ var Sn$2, Bs$1;
9524
9524
  function Ll$2() {
9525
- if (Bs$1) return Sn$3;
9525
+ if (Bs$1) return Sn$2;
9526
9526
  Bs$1 = 1;
9527
9527
  var r22 = Ol$2(), e = typeof globalThis > "u" ? We$3 : globalThis;
9528
- return Sn$3 = function() {
9528
+ return Sn$2 = function() {
9529
9529
  for (var n = [], i3 = 0; i3 < r22.length; i3++)
9530
9530
  typeof e[r22[i3]] == "function" && (n[n.length] = r22[i3]);
9531
9531
  return n;
9532
- }, Sn$3;
9532
+ }, Sn$2;
9533
9533
  }
9534
9534
  var Tn$2 = { exports: {} }, Fn$2, ks$1;
9535
9535
  function _l$2() {
@@ -9580,12 +9580,12 @@
9580
9580
  }
9581
9581
  }, Bn$2 = e, Bn$2;
9582
9582
  }
9583
- var kn$2, Is$1;
9583
+ var kn$3, Is$1;
9584
9584
  function Ml$2() {
9585
- if (Is$1) return kn$2;
9585
+ if (Is$1) return kn$3;
9586
9586
  Is$1 = 1;
9587
9587
  var r22 = Qo$2(), e = _l$2(), t = ql$2()(), n = It$2(), i3 = Jt$2(), s = r22("%Math.floor%");
9588
- return kn$2 = function(a, u) {
9588
+ return kn$3 = function(a, u) {
9589
9589
  if (typeof a != "function")
9590
9590
  throw new i3("`fn` is not a function");
9591
9591
  if (typeof u != "number" || u < 0 || u > 4294967295 || s(u) !== u)
@@ -9608,7 +9608,7 @@
9608
9608
  "length",
9609
9609
  u
9610
9610
  )), a;
9611
- }, kn$2;
9611
+ }, kn$3;
9612
9612
  }
9613
9613
  var Nn$3, Rs$1;
9614
9614
  function Ul$2() {
@@ -21325,7 +21325,7 @@ Actual: ` + p3.attribValue
21325
21325
  }), n;
21326
21326
  }
21327
21327
  function xd$2(r22, e) {
21328
- const t = Ad$2(r22.converter.numbering?.definitions), n = e === "bullet" ? ed$2 : Qf$2, i3 = t, s = n.attributes["w:abstractNumId"], o = {
21328
+ const t = Ad$2(r22.converter?.numbering?.definitions), n = e === "bullet" ? ed$2 : Qf$2, i3 = t, s = n.attributes["w:abstractNumId"], o = {
21329
21329
  type: "element",
21330
21330
  name: "w:num",
21331
21331
  attributes: {
@@ -21925,6 +21925,7 @@ Actual: ` + p3.attribValue
21925
21925
  return {
21926
21926
  name: "htmlAnnotation",
21927
21927
  elements: Ot$2({
21928
+ ...r22,
21928
21929
  node: s
21929
21930
  })
21930
21931
  };
@@ -23613,7 +23614,7 @@ Actual: ` + p3.attribValue
23613
23614
  return;
23614
23615
  }
23615
23616
  }
23616
- static updateDocumentVersion(e = this.convertedXml, t = "0.10.12") {
23617
+ static updateDocumentVersion(e = this.convertedXml, t = "0.10.14") {
23617
23618
  const n = "docProps/custom.xml";
23618
23619
  e[n] || (e[n] = Fu$2());
23619
23620
  const i3 = e["docProps/custom.xml"];
@@ -23838,7 +23839,7 @@ Actual: ` + p3.attribValue
23838
23839
  function Fu$2() {
23839
23840
  return zf$2;
23840
23841
  }
23841
- function Bu$2(r22 = 2, e = "0.10.12") {
23842
+ function Bu$2(r22 = 2, e = "0.10.14") {
23842
23843
  return {
23843
23844
  type: "element",
23844
23845
  name: "property",
@@ -26707,11 +26708,11 @@ Actual: ` + p3.attribValue
26707
26708
  };
26708
26709
  }
26709
26710
  const sc$1 = ic$1(false), ac$1 = ic$1(true);
26710
- function $k(t) {
26711
+ function jk(t) {
26711
26712
  let e = vt.getState(t);
26712
26713
  return e ? e.done.eventCount : 0;
26713
26714
  }
26714
- function Hk(t) {
26715
+ function Wk(t) {
26715
26716
  let e = vt.getState(t);
26716
26717
  return e ? e.undone.eventCount : 0;
26717
26718
  }
@@ -26788,7 +26789,7 @@ Actual: ` + p3.attribValue
26788
26789
  return r.setEnd(t, n ?? t.nodeValue.length), r.setStart(t, e || 0), r;
26789
26790
  }, Yf$1 = function() {
26790
26791
  wi$1 = null;
26791
- }, an$2 = function(t, e, n, r) {
26792
+ }, ln$2 = function(t, e, n, r) {
26792
26793
  return n && (ca$1(t, e, n, r, -1) || ca$1(t, e, n, r, 1));
26793
26794
  }, Gf$1 = /^(img|br|input|textarea|hr)$/i;
26794
26795
  function ca$1(t, e, n, r, o) {
@@ -26856,7 +26857,7 @@ Actual: ` + p3.attribValue
26856
26857
  return e && e.node && e.node.isBlock && (e.dom == t || e.contentDOM == t);
26857
26858
  }
26858
26859
  const Io$1 = function(t) {
26859
- return t.focusNode && an$2(t.focusNode, t.focusOffset, t.anchorNode, t.anchorOffset);
26860
+ return t.focusNode && ln$2(t.focusNode, t.focusOffset, t.anchorNode, t.anchorOffset);
26860
26861
  };
26861
26862
  function Gt$2(t, e) {
26862
26863
  let n = document.createEvent("Event");
@@ -26964,18 +26965,18 @@ Actual: ` + p3.attribValue
26964
26965
  r.scrollTop != o + e && (r.scrollTop = o + e), r.scrollLeft != i3 && (r.scrollLeft = i3);
26965
26966
  }
26966
26967
  }
26967
- let mn$2 = null;
26968
+ let gn$2 = null;
26968
26969
  function cp$1(t) {
26969
26970
  if (t.setActive)
26970
26971
  return t.setActive();
26971
- if (mn$2)
26972
- return t.focus(mn$2);
26972
+ if (gn$2)
26973
+ return t.focus(gn$2);
26973
26974
  let e = dc$1(t);
26974
- t.focus(mn$2 == null ? {
26975
+ t.focus(gn$2 == null ? {
26975
26976
  get preventScroll() {
26976
- return mn$2 = { preventScroll: true }, true;
26977
+ return gn$2 = { preventScroll: true }, true;
26977
26978
  }
26978
- } : void 0), mn$2 || (mn$2 = false, uc$1(e, 0));
26979
+ } : void 0), gn$2 || (gn$2 = false, uc$1(e, 0));
26979
26980
  }
26980
26981
  function fc$1(t, e) {
26981
26982
  let n, r = 2e8, o, i3 = 0, s = e.top, a = e.top, l, c3;
@@ -27501,7 +27502,7 @@ Actual: ` + p3.attribValue
27501
27502
  let p3 = d.focusNode.childNodes[d.focusOffset];
27502
27503
  p3 && p3.contentEditable == "false" && (o = true);
27503
27504
  }
27504
- if (!(o || u && xe) && an$2(a.node, a.offset, d.anchorNode, d.anchorOffset) && an$2(l.node, l.offset, d.focusNode, d.focusOffset))
27505
+ if (!(o || u && xe) && ln$2(a.node, a.offset, d.anchorNode, d.anchorOffset) && ln$2(l.node, l.offset, d.focusNode, d.focusOffset))
27505
27506
  return;
27506
27507
  let f3 = false;
27507
27508
  if ((c3.extend || e == n) && !u) {
@@ -27617,13 +27618,13 @@ Actual: ` + p3.attribValue
27617
27618
  return e.type === "characterData" && e.target.nodeValue == e.oldValue;
27618
27619
  }
27619
27620
  };
27620
- let ln$2 = class ln2 extends Nr {
27621
+ let cn$2 = class cn2 extends Nr {
27621
27622
  constructor(e, n, r, o, i3) {
27622
27623
  super(e, [], r, o), this.mark = n, this.spec = i3;
27623
27624
  }
27624
27625
  static create(e, n, r, o) {
27625
27626
  let i3 = o.nodeViews[n.type.name], s = i3 && i3(n, o, r);
27626
- return (!s || !s.dom) && (s = _a$2.renderSpec(document, n.type.spec.toDOM(n, r), null, n.attrs)), new ln2(e, n, s.dom, s.contentDOM || s.dom, s);
27627
+ return (!s || !s.dom) && (s = _a$2.renderSpec(document, n.type.spec.toDOM(n, r), null, n.attrs)), new cn2(e, n, s.dom, s.contentDOM || s.dom, s);
27627
27628
  }
27628
27629
  parseRule() {
27629
27630
  return this.dirty & it || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM };
@@ -27640,7 +27641,7 @@ Actual: ` + p3.attribValue
27640
27641
  }
27641
27642
  }
27642
27643
  slice(e, n, r) {
27643
- let o = ln2.create(this.parent, this.mark, true, r), i3 = this.children, s = this.size;
27644
+ let o = cn2.create(this.parent, this.mark, true, r), i3 = this.children, s = this.size;
27644
27645
  n < s && (i3 = xi$1(i3, n, s, r)), e > 0 && (i3 = xi$1(i3, 0, e, r));
27645
27646
  for (let a = 0; a < i3.length; a++)
27646
27647
  i3[a].parent = o;
@@ -27885,7 +27886,7 @@ Actual: ` + p3.attribValue
27885
27886
  r = r.nextSibling;
27886
27887
  } else
27887
27888
  o = true, t.insertBefore(a, r);
27888
- if (s instanceof ln$2) {
27889
+ if (s instanceof cn$2) {
27889
27890
  let l = r ? r.previousSibling : t.lastChild;
27890
27891
  bc$1(s.contentDOM, s.children, n), r = l ? l.nextSibling : t.firstChild;
27891
27892
  }
@@ -28004,7 +28005,7 @@ Actual: ` + p3.attribValue
28004
28005
  if (a > -1)
28005
28006
  a > this.index && (this.changed = true, this.destroyBetween(this.index, a)), this.top = this.top.children[this.index];
28006
28007
  else {
28007
- let l = ln$2.create(this.top, e[i3], n, r);
28008
+ let l = cn$2.create(this.top, e[i3], n, r);
28008
28009
  this.top.children.splice(this.index, 0, l), this.top = l, this.changed = true;
28009
28010
  }
28010
28011
  this.index = 0, i3++;
@@ -28097,7 +28098,7 @@ Actual: ` + p3.attribValue
28097
28098
  // contentEditable.
28098
28099
  addTextblockHacks() {
28099
28100
  let e = this.top.children[this.index - 1], n = this.top;
28100
- for (; e instanceof ln$2; )
28101
+ for (; e instanceof cn$2; )
28101
28102
  n = e, e = n.children[n.children.length - 1];
28102
28103
  (!e || // Empty textblock
28103
28104
  !(e instanceof Po$1) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((xe || be$1) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
@@ -28123,7 +28124,7 @@ Actual: ` + p3.attribValue
28123
28124
  for (; ; )
28124
28125
  if (r) {
28125
28126
  let c3 = n.children[r - 1];
28126
- if (c3 instanceof ln$2)
28127
+ if (c3 instanceof cn$2)
28127
28128
  n = c3, r = c3.children.length;
28128
28129
  else {
28129
28130
  a = c3, r--;
@@ -28278,7 +28279,7 @@ Actual: ` + p3.attribValue
28278
28279
  if (Cc$1(t, n), !!kc$1(t)) {
28279
28280
  if (!e && t.input.mouseDown && t.input.mouseDown.allowDefault && be$1) {
28280
28281
  let r = t.domSelectionRange(), o = t.domObserver.currentSelection;
28281
- if (r.anchorNode && o.anchorNode && an$2(r.anchorNode, r.anchorOffset, o.anchorNode, o.anchorOffset)) {
28282
+ if (r.anchorNode && o.anchorNode && ln$2(r.anchorNode, r.anchorOffset, o.anchorNode, o.anchorOffset)) {
28282
28283
  t.input.mouseDown.delayedSelectionSync = true, t.domObserver.setCurSelection();
28283
28284
  return;
28284
28285
  }
@@ -28355,7 +28356,7 @@ Actual: ` + p3.attribValue
28355
28356
  }
28356
28357
  function Ep(t) {
28357
28358
  let e = t.docView.domFromPos(t.state.selection.anchor, 0), n = t.domSelectionRange();
28358
- return an$2(e.node, e.offset, n.anchorNode, n.anchorOffset);
28359
+ return ln$2(e.node, e.offset, n.anchorNode, n.anchorOffset);
28359
28360
  }
28360
28361
  function Mi$1(t, e) {
28361
28362
  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;
@@ -28401,7 +28402,7 @@ Actual: ` + p3.attribValue
28401
28402
  let n = t.pmViewDesc;
28402
28403
  return n && n.size == 0 && (e < 0 || t.nextSibling || t.nodeName != "BR");
28403
28404
  }
28404
- function gn$2(t, e) {
28405
+ function yn$2(t, e) {
28405
28406
  return e < 0 ? Ip$1(t) : Pp(t);
28406
28407
  }
28407
28408
  function Ip$1(t) {
@@ -28588,22 +28589,22 @@ Actual: ` + p3.attribValue
28588
28589
  function zp$1(t, e) {
28589
28590
  let n = e.keyCode, r = Bp$1(e);
28590
28591
  if (n == 8 || ze$2 && n == 72 && r == "c")
28591
- return Oa$1(t, -1) || gn$2(t, -1);
28592
+ return Oa$1(t, -1) || yn$2(t, -1);
28592
28593
  if (n == 46 && !e.shiftKey || ze$2 && n == 68 && r == "c")
28593
- return Oa$1(t, 1) || gn$2(t, 1);
28594
+ return Oa$1(t, 1) || yn$2(t, 1);
28594
28595
  if (n == 13 || n == 27)
28595
28596
  return true;
28596
28597
  if (n == 37 || ze$2 && n == 66 && r == "c") {
28597
28598
  let o = n == 37 ? Ma$1(t, t.state.selection.from) == "ltr" ? -1 : 1 : -1;
28598
- return xa$1(t, o, r) || gn$2(t, o);
28599
+ return xa$1(t, o, r) || yn$2(t, o);
28599
28600
  } else if (n == 39 || ze$2 && n == 70 && r == "c") {
28600
28601
  let o = n == 39 ? Ma$1(t, t.state.selection.from) == "ltr" ? 1 : -1 : 1;
28601
- return xa$1(t, o, r) || gn$2(t, o);
28602
+ return xa$1(t, o, r) || yn$2(t, o);
28602
28603
  } else {
28603
28604
  if (n == 38 || ze$2 && n == 80 && r == "c")
28604
- return Aa$1(t, -1, r) || gn$2(t, -1);
28605
+ return Aa$1(t, -1, r) || yn$2(t, -1);
28605
28606
  if (n == 40 || ze$2 && n == 78 && r == "c")
28606
- return Fp(t) || Aa$1(t, 1, r) || gn$2(t, 1);
28607
+ return Fp(t) || Aa$1(t, 1, r) || yn$2(t, 1);
28607
28608
  if (r == (ze$2 ? "m" : "c") && (n == 66 || n == 73 || n == 89 || n == 90))
28608
28609
  return true;
28609
28610
  }
@@ -29239,7 +29240,7 @@ Actual: ` + p3.attribValue
29239
29240
  }
29240
29241
  let yo$1 = class yo2 {
29241
29242
  constructor(e, n) {
29242
- this.toDOM = e, this.spec = n || tn$1, this.side = this.spec.side || 0;
29243
+ this.toDOM = e, this.spec = n || nn$2, this.side = this.spec.side || 0;
29243
29244
  }
29244
29245
  map(e, n, r, o) {
29245
29246
  let { pos: i3, deleted: s } = e.mapResult(n.from + o, this.side < 0 ? -1 : 1);
@@ -29257,7 +29258,7 @@ Actual: ` + p3.attribValue
29257
29258
  };
29258
29259
  let Bt$1 = class Bt2 {
29259
29260
  constructor(e, n) {
29260
- this.attrs = e, this.spec = n || tn$1;
29261
+ this.attrs = e, this.spec = n || nn$2;
29261
29262
  }
29262
29263
  map(e, n, r, o) {
29263
29264
  let i3 = e.map(n.from + o, this.spec.inclusiveStart ? -1 : 1) - r, s = e.map(n.to + o, this.spec.inclusiveEnd ? 1 : -1) - r;
@@ -29277,7 +29278,7 @@ Actual: ` + p3.attribValue
29277
29278
  };
29278
29279
  class Ms {
29279
29280
  constructor(e, n) {
29280
- this.attrs = e, this.spec = n || tn$1;
29281
+ this.attrs = e, this.spec = n || nn$2;
29281
29282
  }
29282
29283
  map(e, n, r, o) {
29283
29284
  let i3 = e.mapResult(n.from + o, 1);
@@ -29367,13 +29368,13 @@ Actual: ` + p3.attribValue
29367
29368
  return this.type instanceof yo$1;
29368
29369
  }
29369
29370
  }
29370
- const Sn$2 = [], tn$1 = {};
29371
+ const xn$2 = [], nn$2 = {};
29371
29372
  class F {
29372
29373
  /**
29373
29374
  @internal
29374
29375
  */
29375
29376
  constructor(e, n) {
29376
- this.local = e.length ? e : Sn$2, this.children = n.length ? n : Sn$2;
29377
+ this.local = e.length ? e : xn$2, this.children = n.length ? n : xn$2;
29377
29378
  }
29378
29379
  /**
29379
29380
  Create a set of decorations, using the structure of the given
@@ -29381,7 +29382,7 @@ Actual: ` + p3.attribValue
29381
29382
  you must make a copy if you want need to preserve that.
29382
29383
  */
29383
29384
  static create(e, n) {
29384
- return n.length ? bo$2(n, e, 0, tn$1) : ye$1;
29385
+ return n.length ? bo$2(n, e, 0, nn$2) : ye$1;
29385
29386
  }
29386
29387
  /**
29387
29388
  Find all decorations in this set which touch the given range
@@ -29411,7 +29412,7 @@ Actual: ` + p3.attribValue
29411
29412
  document.
29412
29413
  */
29413
29414
  map(e, n, r) {
29414
- return this == ye$1 || e.maps.length == 0 ? this : this.mapInner(e, n, 0, 0, r || tn$1);
29415
+ return this == ye$1 || e.maps.length == 0 ? this : this.mapInner(e, n, 0, 0, r || nn$2);
29415
29416
  }
29416
29417
  /**
29417
29418
  @internal
@@ -29422,7 +29423,7 @@ Actual: ` + p3.attribValue
29422
29423
  let l = this.local[a].map(e, r, o);
29423
29424
  l && l.type.valid(n, l) ? (s || (s = [])).push(l) : i3.onRemove && i3.onRemove(this.local[a].spec);
29424
29425
  }
29425
- return this.children.length ? fh$1(this.children, s || [], e, n, r, o, i3) : s ? new F(s.sort(nn$2), Sn$2) : ye$1;
29426
+ return this.children.length ? fh$1(this.children, s || [], e, n, r, o, i3) : s ? new F(s.sort(rn$2), xn$2) : ye$1;
29426
29427
  }
29427
29428
  /**
29428
29429
  Add the given array of decorations to the ones in the set,
@@ -29440,13 +29441,13 @@ Actual: ` + p3.attribValue
29440
29441
  if (d = _c$1(n, a, c3)) {
29441
29442
  for (o || (o = this.children.slice()); i3 < o.length && o[i3] < l; )
29442
29443
  i3 += 3;
29443
- o[i3] == l ? o[i3 + 2] = o[i3 + 2].addInner(a, d, c3 + 1) : o.splice(i3, 0, l, l + a.nodeSize, bo$2(d, a, c3 + 1, tn$1)), i3 += 3;
29444
+ o[i3] == l ? o[i3 + 2] = o[i3 + 2].addInner(a, d, c3 + 1) : o.splice(i3, 0, l, l + a.nodeSize, bo$2(d, a, c3 + 1, nn$2)), i3 += 3;
29444
29445
  }
29445
29446
  });
29446
29447
  let s = zc$1(i3 ? Vc$1(n) : n, -r);
29447
29448
  for (let a = 0; a < s.length; a++)
29448
29449
  s[a].type.valid(e, s[a]) || s.splice(a--, 1);
29449
- return new F(s.length ? this.local.concat(s).sort(nn$2) : this.local, o || this.children);
29450
+ return new F(s.length ? this.local.concat(s).sort(rn$2) : this.local, o || this.children);
29450
29451
  }
29451
29452
  /**
29452
29453
  Create a new set that contains the decorations in this set, minus
@@ -29495,7 +29496,7 @@ Actual: ` + p3.attribValue
29495
29496
  }
29496
29497
  }
29497
29498
  if (o) {
29498
- let a = new F(o.sort(nn$2), Sn$2);
29499
+ let a = new F(o.sort(rn$2), xn$2);
29499
29500
  return r ? new Nt$2([a, r]) : a;
29500
29501
  }
29501
29502
  return r || ye$1;
@@ -29527,7 +29528,7 @@ Actual: ` + p3.attribValue
29527
29528
  */
29528
29529
  localsInner(e) {
29529
29530
  if (this == ye$1)
29530
- return Sn$2;
29531
+ return xn$2;
29531
29532
  if (e.inlineContent || !this.local.some(Bt$1.is))
29532
29533
  return this.local;
29533
29534
  let n = [];
@@ -29547,7 +29548,7 @@ Actual: ` + p3.attribValue
29547
29548
  this.members = e;
29548
29549
  }
29549
29550
  map(e, n) {
29550
- const r = this.members.map((o) => o.map(e, n, tn$1));
29551
+ const r = this.members.map((o) => o.map(e, n, nn$2));
29551
29552
  return Nt2.from(r);
29552
29553
  }
29553
29554
  forChild(e, n) {
@@ -29581,7 +29582,7 @@ Actual: ` + p3.attribValue
29581
29582
  n.push(i3[s]);
29582
29583
  }
29583
29584
  }
29584
- return n ? As(r ? n : n.sort(nn$2)) : Sn$2;
29585
+ return n ? As(r ? n : n.sort(rn$2)) : xn$2;
29585
29586
  }
29586
29587
  // Create a group for the given array of decoration sets, or return
29587
29588
  // a single set when possible.
@@ -29647,7 +29648,7 @@ Actual: ` + p3.attribValue
29647
29648
  a.splice(f3, 0, d.children[u], d.children[u + 1], d.children[u + 2]);
29648
29649
  }
29649
29650
  }
29650
- return new F(e.sort(nn$2), a);
29651
+ return new F(e.sort(rn$2), a);
29651
29652
  }
29652
29653
  function zc$1(t, e) {
29653
29654
  if (!e || !t.length)
@@ -29696,12 +29697,12 @@ Actual: ` + p3.attribValue
29696
29697
  d != ye$1 && o.push(l, l + a.nodeSize, d);
29697
29698
  }
29698
29699
  });
29699
- let s = zc$1(i3 ? Vc$1(t) : t, -n).sort(nn$2);
29700
+ let s = zc$1(i3 ? Vc$1(t) : t, -n).sort(rn$2);
29700
29701
  for (let a = 0; a < s.length; a++)
29701
29702
  s[a].type.valid(e, s[a]) || (r.onRemove && r.onRemove(s[a].spec), s.splice(a--, 1));
29702
29703
  return s.length || o.length ? new F(s, o) : ye$1;
29703
29704
  }
29704
- function nn$2(t, e) {
29705
+ function rn$2(t, e) {
29705
29706
  return t.from - e.from || t.to - e.to;
29706
29707
  }
29707
29708
  function As(t) {
@@ -29723,7 +29724,7 @@ Actual: ` + p3.attribValue
29723
29724
  return e;
29724
29725
  }
29725
29726
  function Ea$1(t, e, n) {
29726
- for (; e < t.length && nn$2(n, t[e]) > 0; )
29727
+ for (; e < t.length && rn$2(n, t[e]) > 0; )
29727
29728
  e++;
29728
29729
  t.splice(e, 0, n);
29729
29730
  }
@@ -29804,7 +29805,7 @@ Actual: ` + p3.attribValue
29804
29805
  return kt$1(this.view);
29805
29806
  if (Oe$2 && Lt$1 <= 11 && !this.view.state.selection.empty) {
29806
29807
  let e = this.view.domSelectionRange();
29807
- if (e.focusNode && an$2(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset))
29808
+ if (e.focusNode && ln$2(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset))
29808
29809
  return this.flushSoon();
29809
29810
  }
29810
29811
  this.flush();
@@ -29908,7 +29909,7 @@ Actual: ` + p3.attribValue
29908
29909
  }
29909
29910
  function Ra$1(t, e) {
29910
29911
  let n = e.startContainer, r = e.startOffset, o = e.endContainer, i3 = e.endOffset, s = t.domAtPos(t.state.selection.anchor);
29911
- return an$2(s.node, s.offset, o, i3) && ([n, r, o, i3] = [o, i3, n, r]), { anchorNode: n, anchorOffset: r, focusNode: o, focusOffset: i3 };
29912
+ return ln$2(s.node, s.offset, o, i3) && ([n, r, o, i3] = [o, i3, n, r]), { anchorNode: n, anchorOffset: r, focusNode: o, focusOffset: i3 };
29912
29913
  }
29913
29914
  function wh$1(t, e) {
29914
29915
  if (e.getComposedRanges) {
@@ -32522,14 +32523,44 @@ Actual: ` + p3.attribValue
32522
32523
  rules: e,
32523
32524
  plugin: n
32524
32525
  }) : false;
32526
+ },
32527
+ // Paste handler
32528
+ handlePaste(r, o, i3) {
32529
+ const s = o.clipboardData;
32530
+ Array.from(s.types);
32531
+ const a = s.getData("text/html");
32532
+ s.getData("text/plain");
32533
+ let l;
32534
+ switch (a ? /class="?Mso|xmlns:o="urn:schemas-microsoft-com|name="?Generator" content="?Microsoft Word|<!--\[if gte mso/i.test(a) ? l = "word-html" : l = "browser-html" : l = "plain-text", l) {
32535
+ case "plain-text":
32536
+ break;
32537
+ case "word-html":
32538
+ break;
32539
+ case "browser-html":
32540
+ return Tg(a, t);
32541
+ }
32542
+ return false;
32525
32543
  }
32526
32544
  },
32527
32545
  isInputRules: true
32528
32546
  });
32529
32547
  return n;
32530
- };
32548
+ }, Tg = (t, e, n) => {
32549
+ const r = Dg(t), o = document.createElement("div");
32550
+ o.innerHTML = r;
32551
+ const i3 = gr$2.fromSchema(e.schema).parse(o);
32552
+ o.remove();
32553
+ const { dispatch: s } = e.view;
32554
+ return s ? (s(e.view.state.tr.replaceSelectionWith(i3, true)), true) : false;
32555
+ }, Dg = (t) => t.replace(
32556
+ /font-size\s*:\s*([\d.]+)em/gi,
32557
+ (e, n) => {
32558
+ const r = parseFloat(n);
32559
+ return `font-size: ${Math.round(r * 12 * 100) / 100}pt`;
32560
+ }
32561
+ );
32531
32562
  var _n$2, rd$1, od$1;
32532
- const Mn$1 = class Mn2 {
32563
+ const An$1 = class An2 {
32533
32564
  constructor(e, n, r) {
32534
32565
  ft(this, _n$2);
32535
32566
  P(this, "editor");
@@ -32537,14 +32568,14 @@ Actual: ` + p3.attribValue
32537
32568
  P(this, "extensions");
32538
32569
  P(this, "externalExtensions", []);
32539
32570
  P(this, "splittableMarks", []);
32540
- this.editor = r, this.externalExtensions = n || [], this.extensions = Mn2.getResolvedExtensions([...e, ...this.externalExtensions]), this.schema = zi$1.createSchemaByExtensions(this.extensions, r), D(this, _n$2, rd$1).call(this);
32571
+ this.editor = r, this.externalExtensions = n || [], this.extensions = An2.getResolvedExtensions([...e, ...this.externalExtensions]), this.schema = zi$1.createSchemaByExtensions(this.extensions, r), D(this, _n$2, rd$1).call(this);
32541
32572
  }
32542
32573
  /**
32543
32574
  * Static method for creating ExtensionService.
32544
32575
  * @param args Arguments for the constructor.
32545
32576
  */
32546
32577
  static create(...e) {
32547
- return new Mn2(...e);
32578
+ return new An2(...e);
32548
32579
  }
32549
32580
  /**
32550
32581
  * Get an array of resolved extensions (e.g. sorted by priority).
@@ -32552,7 +32583,7 @@ Actual: ` + p3.attribValue
32552
32583
  * @returns Array of resolved extensions.
32553
32584
  */
32554
32585
  static getResolvedExtensions(e) {
32555
- return Mn2.sortByPriority(e);
32586
+ return An2.sortByPriority(e);
32556
32587
  }
32557
32588
  /**
32558
32589
  * Sort extensions by priority.
@@ -32599,7 +32630,7 @@ Actual: ` + p3.attribValue
32599
32630
  * @returns Array of PM plugins.
32600
32631
  */
32601
32632
  get plugins() {
32602
- const e = this.editor, n = Mn2.sortByPriority([...this.extensions].reverse()), r = [], o = n.map((i3) => {
32633
+ const e = this.editor, n = An2.sortByPriority([...this.extensions].reverse()), r = [], o = n.map((i3) => {
32603
32634
  const s = {
32604
32635
  name: i3.name,
32605
32636
  options: i3.options,
@@ -32691,23 +32722,23 @@ Actual: ` + p3.attribValue
32691
32722
  }, r = E(e, "onBeforeCreate", n), o = E(e, "onCreate", n), i3 = E(e, "onUpdate", n), s = E(e, "onSelectionUpdate", n), a = E(e, "onTransaction", n), l = E(e, "onFocus", n), c3 = E(e, "onBlur", n), d = E(e, "onDestroy", n);
32692
32723
  r && this.editor.on("beforeCreate", r), o && this.editor.on("create", o), i3 && this.editor.on("update", i3), s && this.editor.on("selectionUpdate", s), a && this.editor.on("transaction", a), l && this.editor.on("focus", l), c3 && this.editor.on("blur", c3), d && this.editor.on("destroy", d);
32693
32724
  };
32694
- let _i$1 = Mn$1;
32695
- const Tg = (t) => (e) => {
32725
+ let _i$1 = An$1;
32726
+ const Ng = (t) => (e) => {
32696
32727
  const n = typeof t == "function" ? t(e) : t;
32697
32728
  for (let r = 0; r < n.length; r += 1)
32698
32729
  if (n[r](e)) return true;
32699
32730
  return false;
32700
- }, Dg = (t) => (e) => t(e), Ng = () => ({ tr: t }) => (t.insertText(" ", t.selection.from, t.selection.to), true), Eg = () => ({ tr: t, state: e }) => {
32731
+ }, Eg = (t) => (e) => t(e), Ig = () => ({ tr: t }) => (t.insertText(" ", t.selection.from, t.selection.to), true), Pg = () => ({ tr: t, state: e }) => {
32701
32732
  let n = t.selection.from;
32702
32733
  const r = e.schema.nodes.tab.create();
32703
32734
  return t.insert(n, r), true;
32704
- }, Ig = (t, e) => ({ tr: n }) => (n.setMeta(t, e), true), Is = (t, e) => t.selection.empty ? false : (e && e(t.tr.deleteSelection().scrollIntoView()), true);
32705
- function Pg(t, e) {
32735
+ }, Rg = (t, e) => ({ tr: n }) => (n.setMeta(t, e), true), Is = (t, e) => t.selection.empty ? false : (e && e(t.tr.deleteSelection().scrollIntoView()), true);
32736
+ function Lg(t, e) {
32706
32737
  let { $cursor: n } = t.selection;
32707
32738
  return !n || (e ? !e.endOfTextblock("backward", t) : n.parentOffset > 0) ? null : n;
32708
32739
  }
32709
32740
  const id$1 = (t, e, n) => {
32710
- let r = Pg(t, n);
32741
+ let r = Lg(t, n);
32711
32742
  if (!r)
32712
32743
  return false;
32713
32744
  let o = ad$1(r);
@@ -32764,12 +32795,12 @@ Actual: ` + p3.attribValue
32764
32795
  }
32765
32796
  return null;
32766
32797
  }
32767
- function Rg(t, e) {
32798
+ function Fg(t, e) {
32768
32799
  let { $cursor: n } = t.selection;
32769
32800
  return !n || (e ? !e.endOfTextblock("forward", t) : n.parentOffset < n.parent.content.size) ? null : n;
32770
32801
  }
32771
32802
  const ld$1 = (t, e, n) => {
32772
- let r = Rg(t, n);
32803
+ let r = Fg(t, n);
32773
32804
  if (!r)
32774
32805
  return false;
32775
32806
  let o = dd$1(r);
@@ -32812,7 +32843,7 @@ Actual: ` + p3.attribValue
32812
32843
  }
32813
32844
  return null;
32814
32845
  }
32815
- const Lg = (t, e) => {
32846
+ const Bg = (t, e) => {
32816
32847
  let n = t.selection, r = n instanceof Ge$1, o;
32817
32848
  if (r) {
32818
32849
  if (n.node.isTextblock || !Ap$1(t.doc, n.from))
@@ -32825,7 +32856,7 @@ Actual: ` + p3.attribValue
32825
32856
  r && i3.setSelection(Ge$1.create(i3.doc, o - t.doc.resolve(o).nodeBefore.nodeSize)), e(i3.scrollIntoView());
32826
32857
  }
32827
32858
  return true;
32828
- }, Fg = (t, e) => {
32859
+ }, zg = (t, e) => {
32829
32860
  let n = t.selection, r;
32830
32861
  if (n instanceof Ge$1) {
32831
32862
  if (n.node.isTextblock || !Ap$1(t.doc, n.to))
@@ -32847,7 +32878,7 @@ Actual: ` + p3.attribValue
32847
32878
  }
32848
32879
  return null;
32849
32880
  }
32850
- const Bg = (t, e) => {
32881
+ const _g = (t, e) => {
32851
32882
  let { $head: n, $anchor: r } = t.selection;
32852
32883
  if (!n.parent.type.spec.code || !n.sameParent(r))
32853
32884
  return false;
@@ -32883,7 +32914,7 @@ Actual: ` + p3.attribValue
32883
32914
  let r = n.blockRange(), o = r && yp$2(r);
32884
32915
  return o == null ? false : (e && e(t.tr.lift(r, o).scrollIntoView()), true);
32885
32916
  };
32886
- function zg(t) {
32917
+ function Vg(t) {
32887
32918
  return (e, n) => {
32888
32919
  let { $from: r, $to: o } = e.selection;
32889
32920
  if (e.selection instanceof Ge$1 && e.selection.node.isBlock)
@@ -32910,14 +32941,14 @@ Actual: ` + p3.attribValue
32910
32941
  return n && n(d.scrollIntoView()), true;
32911
32942
  };
32912
32943
  }
32913
- const _g = zg(), Vg = (t, e) => (e && e(t.tr.setSelection(new at$2(t.doc))), true);
32914
- function $g(t, e, n) {
32944
+ const $g = Vg(), Hg = (t, e) => (e && e(t.tr.setSelection(new at$2(t.doc))), true);
32945
+ function jg(t, e, n) {
32915
32946
  let r = e.nodeBefore, o = e.nodeAfter, i3 = e.index();
32916
32947
  return !r || !o || !r.type.compatibleContent(o.type) ? false : !r.content.size && e.parent.canReplace(i3 - 1, i3) ? (n && n(t.tr.delete(e.pos - r.nodeSize, e.pos).scrollIntoView()), true) : !e.parent.canReplace(i3, i3 + 1) || !(o.isTextblock || Ap$1(t.doc, e.pos)) ? false : (n && n(t.tr.join(e.pos).scrollIntoView()), true);
32917
32948
  }
32918
32949
  function hd$1(t, e, n, r) {
32919
32950
  let o = e.nodeBefore, i3 = e.nodeAfter, s, a, l = o.type.spec.isolating || i3.type.spec.isolating;
32920
- if (!l && $g(t, e, n))
32951
+ if (!l && jg(t, e, n))
32921
32952
  return true;
32922
32953
  let c3 = !l && e.parent.canReplace(e.index(), e.index() + 1);
32923
32954
  if (c3 && (s = (a = o.contentMatchAt(o.childCount)).findWrapping(i3.type)) && a.matchType(s[0] || i3.type).validEnd) {
@@ -32965,7 +32996,7 @@ Actual: ` + p3.attribValue
32965
32996
  return o.node(i3).isTextblock ? (n && n(e.tr.setSelection(tt$3.create(e.doc, t < 0 ? o.start(i3) : o.end(i3)))), true) : false;
32966
32997
  };
32967
32998
  }
32968
- const Hg = md$1(-1), jg = md$1(1);
32999
+ const Wg = md$1(-1), Ug = md$1(1);
32969
33000
  function Ya$1(t, e = null) {
32970
33001
  return function(n, r) {
32971
33002
  let o = false;
@@ -33006,7 +33037,7 @@ Actual: ` + p3.attribValue
33006
33037
  }
33007
33038
  Rs(Is, id$1, sd$1);
33008
33039
  Rs(Is, ld$1, cd$1);
33009
- Rs(ud$1, fd$1, pd$1, _g);
33040
+ Rs(ud$1, fd$1, pd$1, $g);
33010
33041
  typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : typeof os < "u" && os.platform && os.platform() == "darwin";
33011
33042
  function gd$1(t) {
33012
33043
  for (let e = 0; e < t.edgeCount; e++) {
@@ -33021,7 +33052,7 @@ Actual: ` + p3.attribValue
33021
33052
  const r = n.filter((o) => e?.includes(o.type.name));
33022
33053
  t.tr.ensureMarks(r);
33023
33054
  }
33024
- }, Wg = ({ keepMarks: t = true } = {}) => (e) => {
33055
+ }, qg = ({ keepMarks: t = true } = {}) => (e) => {
33025
33056
  const { tr: n, state: r, dispatch: o, editor: i3 } = e, { selection: s, doc: a } = n, { $from: l, $to: c3 } = s, d = i3.extensionService.attributes, u = N.getSplittedAttributes(d, l.node().type.name, l.node().attrs);
33026
33057
  if (s instanceof Ge$1 && s.node.isBlock)
33027
33058
  return !l.parentOffset || !xp$2(a, l.pos) ? false : (o && (t && Ga$1(r, i3.extensionService.splittableMarks), n.split(l.pos).scrollIntoView()), true);
@@ -33038,9 +33069,9 @@ Actual: ` + p3.attribValue
33038
33069
  t && Ga$1(r, i3.extensionService.splittableMarks), n.scrollIntoView();
33039
33070
  }
33040
33071
  return true;
33041
- }, Ug = () => ({ state: t, dispatch: e }) => pd$1(t, e), qg = () => ({ state: t, dispatch: e }) => fd$1(t, e), Kg = () => ({ state: t, dispatch: e }) => ud$1(t, e), Xg = () => ({ state: t, dispatch: e }) => Bg(t, e), yd$1 = (t) => {
33072
+ }, Kg = () => ({ state: t, dispatch: e }) => pd$1(t, e), Xg = () => ({ state: t, dispatch: e }) => fd$1(t, e), Jg = () => ({ state: t, dispatch: e }) => ud$1(t, e), Yg = () => ({ state: t, dispatch: e }) => _g(t, e), yd$1 = (t) => {
33042
33073
  };
33043
- function Jg(t, e, n) {
33074
+ function Gg(t, e, n) {
33044
33075
  const { selection: r } = e;
33045
33076
  let o = null;
33046
33077
  if (yd$1() && (o = r.$cursor), o) {
@@ -33059,7 +33090,7 @@ Actual: ` + p3.attribValue
33059
33090
  }), a;
33060
33091
  });
33061
33092
  }
33062
- const Yg = (t, e = {}) => ({ tr: n, state: r, dispatch: o }) => {
33093
+ const Zg = (t, e = {}) => ({ tr: n, state: r, dispatch: o }) => {
33063
33094
  const { selection: i3 } = n, { empty: s, ranges: a } = i3, l = St$1(t, r.schema);
33064
33095
  if (o)
33065
33096
  if (s) {
@@ -33087,12 +33118,12 @@ Actual: ` + p3.attribValue
33087
33118
  }) : n.addMark(h3, m, l.create(e));
33088
33119
  });
33089
33120
  });
33090
- return Jg(r, n, l);
33121
+ return Gg(r, n, l);
33091
33122
  };
33092
33123
  function Vi$1(t, e, n = {}) {
33093
33124
  return t.find((r) => r.type === e && If$1(r.attrs, n));
33094
33125
  }
33095
- function Gg(t, e, n = {}) {
33126
+ function Qg(t, e, n = {}) {
33096
33127
  return !!Vi$1(t, e, n);
33097
33128
  }
33098
33129
  function Ls(t, e, n = {}) {
@@ -33104,11 +33135,11 @@ Actual: ` + p3.attribValue
33104
33135
  let i3 = r.index, s = t.start() + r.offset, a = i3 + 1, l = s + r.node.nodeSize;
33105
33136
  for (Vi$1([...r.node.marks], e, n); i3 > 0 && o.isInSet(t.parent.child(i3 - 1).marks); )
33106
33137
  i3 -= 1, s -= t.parent.child(i3).nodeSize;
33107
- for (; a < t.parent.childCount && Gg([...t.parent.child(a).marks], e, n); )
33138
+ for (; a < t.parent.childCount && Qg([...t.parent.child(a).marks], e, n); )
33108
33139
  l += t.parent.child(a).nodeSize, a += 1;
33109
33140
  return { from: s, to: l };
33110
33141
  }
33111
- const Zg = (t, e = {}) => ({ tr: n, state: r, dispatch: o }) => {
33142
+ const ey = (t, e = {}) => ({ tr: n, state: r, dispatch: o }) => {
33112
33143
  const { extendEmptyMarkRange: i3 = false } = e, { selection: s } = n, a = St$1(t, r.schema), { $from: l, empty: c3, ranges: d } = s;
33113
33144
  if (!o) return true;
33114
33145
  if (c3 && i3) {
@@ -33120,7 +33151,7 @@ Actual: ` + p3.attribValue
33120
33151
  n.removeMark(u.$from.pos, u.$to.pos, a);
33121
33152
  });
33122
33153
  return n.removeStoredMark(a), true;
33123
- }, Qg = () => ({ tr: t, dispatch: e }) => {
33154
+ }, ty = () => ({ tr: t, dispatch: e }) => {
33124
33155
  const { selection: n } = t, { empty: r, ranges: o } = n;
33125
33156
  return r || e && o.forEach((i3) => {
33126
33157
  t.removeMark(i3.$from.pos, i3.$to.pos);
@@ -33149,10 +33180,10 @@ Actual: ` + p3.attribValue
33149
33180
  const l = a.filter((u) => i3 ? i3.name === u.mark.type.name : true).filter((u) => If$1(u.mark.attrs, n, { strict: false })).reduce((u, f3) => u + f3.to - f3.from, 0), c3 = a.filter((u) => i3 ? u.mark.type !== i3 && u.mark.type.excludes(i3) : true).reduce((u, f3) => u + f3.to - f3.from, 0);
33150
33181
  return (l > 0 ? l + c3 : l) >= s;
33151
33182
  }
33152
- const ey = (t, e = {}, n = {}) => ({ state: r, commands: o }) => {
33183
+ const ny = (t, e = {}, n = {}) => ({ state: r, commands: o }) => {
33153
33184
  const { extendEmptyMarkRange: i3 = false } = n, s = St$1(t, r.schema);
33154
33185
  return So$1(r, s, e) ? o.unsetMark(s, { extendEmptyMarkRange: i3 }) : o.setMark(s, e);
33155
- }, ty = () => ({ state: t, tr: e, dispatch: n }) => {
33186
+ }, ry = () => ({ state: t, tr: e, dispatch: n }) => {
33156
33187
  const { selection: r } = e, { ranges: o } = r;
33157
33188
  return n && o.forEach(({ $from: i3, $to: s }) => {
33158
33189
  t.doc.nodesBetween(i3.pos, s.pos, (a, l) => {
@@ -33167,7 +33198,7 @@ Actual: ` + p3.attribValue
33167
33198
  (h3 || h3 === 0) && e.lift(p3, h3);
33168
33199
  });
33169
33200
  }), true;
33170
- }, ny = (t, e = {}) => ({ state: n, dispatch: r, chain: o }) => {
33201
+ }, oy = (t, e = {}) => ({ state: n, dispatch: r, chain: o }) => {
33171
33202
  const i3 = le$1(t, n.schema);
33172
33203
  return i3.isTextblock ? o().command(({ commands: s }) => Ya$1(i3, e)(n) ? true : s.clearNodes()).command(({ state: s }) => Ya$1(i3, e)(s, r)).run() : false;
33173
33204
  };
@@ -33185,10 +33216,10 @@ Actual: ` + p3.attribValue
33185
33216
  const l = o - r, c3 = a.filter((u) => s ? s.name === u.node.type.name : true).filter((u) => If$1(u.node.attrs, n, { strict: false }));
33186
33217
  return i3 ? !!c3.length : c3.reduce((u, f3) => u + f3.to - f3.from, 0) >= l;
33187
33218
  }
33188
- const ry = (t, e, n = {}) => ({ state: r, commands: o }) => {
33219
+ const iy = (t, e, n = {}) => ({ state: r, commands: o }) => {
33189
33220
  const i3 = le$1(t, r.schema), s = le$1(e, r.schema);
33190
33221
  return xo$1(r, i3, n) ? o.setNode(s) : o.setNode(i3, n);
33191
- }, oy = () => ({ state: t, dispatch: e }) => Vg(t, e), iy = () => ({ state: t, dispatch: e }) => Is(t, e), sy = (t, e = {}) => ({ tr: n, state: r, dispatch: o }) => {
33222
+ }, sy = () => ({ state: t, dispatch: e }) => Hg(t, e), ay = () => ({ state: t, dispatch: e }) => Is(t, e), ly = (t, e = {}) => ({ tr: n, state: r, dispatch: o }) => {
33192
33223
  let i3 = null, s = null;
33193
33224
  const a = Er$1(
33194
33225
  typeof t == "string" ? t : t.name,
@@ -33205,7 +33236,7 @@ Actual: ` + p3.attribValue
33205
33236
  });
33206
33237
  });
33207
33238
  }), true) : false;
33208
- }, ay = (t, e) => ({ tr: n, state: r, dispatch: o }) => {
33239
+ }, cy = (t, e) => ({ tr: n, state: r, dispatch: o }) => {
33209
33240
  let i3 = null, s = null;
33210
33241
  const a = Er$1(
33211
33242
  typeof t == "string" ? t : t.name,
@@ -33218,7 +33249,7 @@ Actual: ` + p3.attribValue
33218
33249
  });
33219
33250
  });
33220
33251
  }), true) : false;
33221
- }, ly = () => ({ state: t, dispatch: e }) => Lg(t, e), cy = () => ({ state: t, dispatch: e }) => Fg(t, e), dy = () => ({ state: t, dispatch: e }) => id$1(t, e), uy = () => ({ state: t, dispatch: e }) => ld$1(t, e), fy = () => ({ state: t, dispatch: e }) => sd$1(t, e), py = () => ({ state: t, dispatch: e }) => cd$1(t, e), hy = () => ({ state: t, dispatch: e }) => Hg(t, e), my = () => ({ state: t, dispatch: e }) => jg(t, e), gy = (t, e) => ({ tr: n, commands: r }) => r.insertContentAt({ from: n.selection.from, to: n.selection.to }, t, e), bd$1 = (t) => {
33252
+ }, dy = () => ({ state: t, dispatch: e }) => Bg(t, e), uy = () => ({ state: t, dispatch: e }) => zg(t, e), fy = () => ({ state: t, dispatch: e }) => id$1(t, e), py = () => ({ state: t, dispatch: e }) => ld$1(t, e), hy = () => ({ state: t, dispatch: e }) => sd$1(t, e), my = () => ({ state: t, dispatch: e }) => cd$1(t, e), gy = () => ({ state: t, dispatch: e }) => Wg(t, e), yy = () => ({ state: t, dispatch: e }) => Ug(t, e), by = (t, e) => ({ tr: n, commands: r }) => r.insertContentAt({ from: n.selection.from, to: n.selection.to }, t, e), bd$1 = (t) => {
33222
33253
  const e = t.childNodes;
33223
33254
  for (let n = e.length - 1; n >= 0; n -= 1) {
33224
33255
  const r = e[n];
@@ -33279,7 +33310,7 @@ Actual: ` + p3.attribValue
33279
33310
  }
33280
33311
  return $i$1("", e, n);
33281
33312
  }
33282
- function yy(t, e, n) {
33313
+ function wy(t, e, n) {
33283
33314
  const r = t.steps.length - 1;
33284
33315
  if (r < e)
33285
33316
  return;
@@ -33292,7 +33323,7 @@ Actual: ` + p3.attribValue
33292
33323
  s === 0 && (s = d);
33293
33324
  }), t.setSelection(ve$1.near(t.doc.resolve(s), n));
33294
33325
  }
33295
- const by = (t) => !("type" in t), wy = (t, e, n) => ({ tr: r, dispatch: o, editor: i3 }) => {
33326
+ const vy = (t) => !("type" in t), ky = (t, e, n) => ({ tr: r, dispatch: o, editor: i3 }) => {
33296
33327
  if (o) {
33297
33328
  n = {
33298
33329
  parseOptions: {},
@@ -33320,17 +33351,17 @@ Actual: ` + p3.attribValue
33320
33351
  }), false;
33321
33352
  }
33322
33353
  let { from: a, to: l } = typeof t == "number" ? { from: t, to: t } : { from: t.from, to: t.to }, c3 = true, d = true;
33323
- if ((by(s) ? s : [s]).forEach((p3) => {
33354
+ if ((vy(s) ? s : [s]).forEach((p3) => {
33324
33355
  p3.check(), c3 = c3 ? p3.isText && p3.marks.length === 0 : false, d = d ? p3.isBlock : false;
33325
33356
  }), a === l && d) {
33326
33357
  const { parent: p3 } = r.doc.resolve(a);
33327
33358
  p3.isTextblock && !p3.type.spec.code && !p3.childCount && (a -= 1, l += 1);
33328
33359
  }
33329
33360
  let f3;
33330
- c3 ? (Array.isArray(e) ? f3 = e.map((p3) => p3.text || "").join("") : typeof e == "object" && e && e.text ? f3 = e.text : f3 = e, r.insertText(f3, a, l)) : (f3 = s, r.replaceWith(a, l, f3)), n.updateSelection && yy(r, r.steps.length - 1, -1), n.applyInputRules && r.setMeta("applyInputRules", { from: a, text: f3 }), n.applyPasteRules && r.setMeta("applyPasteRules", { from: a, text: f3 });
33361
+ c3 ? (Array.isArray(e) ? f3 = e.map((p3) => p3.text || "").join("") : typeof e == "object" && e && e.text ? f3 = e.text : f3 = e, r.insertText(f3, a, l)) : (f3 = s, r.replaceWith(a, l, f3)), n.updateSelection && wy(r, r.steps.length - 1, -1), n.applyInputRules && r.setMeta("applyInputRules", { from: a, text: f3 }), n.applyPasteRules && r.setMeta("applyPasteRules", { from: a, text: f3 });
33331
33362
  }
33332
33363
  return true;
33333
- }, vy = () => ({ state: t, dispatch: e }) => {
33364
+ }, Cy = () => ({ state: t, dispatch: e }) => {
33334
33365
  const n = t.plugins;
33335
33366
  for (let r = 0; r < n.length; r += 1) {
33336
33367
  const o = n[r];
@@ -33351,16 +33382,16 @@ Actual: ` + p3.attribValue
33351
33382
  }
33352
33383
  return false;
33353
33384
  };
33354
- function ky(t, e = null) {
33385
+ function Sy(t, e = null) {
33355
33386
  return function(n, r) {
33356
33387
  let { $from: o, $to: i3 } = n.selection, s = o.blockRange(i3);
33357
33388
  if (!s)
33358
33389
  return false;
33359
33390
  let a = r ? n.tr : null;
33360
- return Cy(a, s, t, e) ? (r && r(a.scrollIntoView()), true) : false;
33391
+ return xy(a, s, t, e) ? (r && r(a.scrollIntoView()), true) : false;
33361
33392
  };
33362
33393
  }
33363
- function Cy(t, e, n, r = null) {
33394
+ function xy(t, e, n, r = null) {
33364
33395
  let o = false, i3 = e, s = e.$from.doc;
33365
33396
  if (e.depth >= 2 && e.$from.node(e.depth - 1).type.compatibleContent(n) && e.startIndex == 0) {
33366
33397
  if (e.$from.index(e.depth - 1) == 0)
@@ -33369,9 +33400,9 @@ Actual: ` + p3.attribValue
33369
33400
  i3 = new Lc$2(l, l, e.depth), e.endIndex < e.parent.childCount && (e = new Lc$2(e.$from, s.resolve(e.$to.end(e.depth)), e.depth)), o = true;
33370
33401
  }
33371
33402
  let a = bp$2(i3, n, r, e);
33372
- return a ? (t && Sy(t, e, a, o, n), true) : false;
33403
+ return a ? (t && My(t, e, a, o, n), true) : false;
33373
33404
  }
33374
- function Sy(t, e, n, r, o) {
33405
+ function My(t, e, n, r, o) {
33375
33406
  let i3 = Q$2.empty;
33376
33407
  for (let d = n.length - 1; d >= 0; d--)
33377
33408
  i3 = Q$2.from(n[d].type.create(n[d].attrs, i3));
@@ -33384,13 +33415,13 @@ Actual: ` + p3.attribValue
33384
33415
  !f3 && xp$2(t.doc, l, a) && (t.split(l, a), l += 2 * a), l += c3.child(d).nodeSize;
33385
33416
  return t;
33386
33417
  }
33387
- function xy(t) {
33418
+ function Ay(t) {
33388
33419
  return function(e, n) {
33389
33420
  let { $from: r, $to: o } = e.selection, i3 = r.blockRange(o, (s) => s.childCount > 0 && s.firstChild.type == t);
33390
- return i3 ? n ? r.node(i3.depth - 1).type == t ? My(e, n, t, i3) : Ay(e, n, i3) : true : false;
33421
+ return i3 ? n ? r.node(i3.depth - 1).type == t ? Oy(e, n, t, i3) : Ty(e, n, i3) : true : false;
33391
33422
  };
33392
33423
  }
33393
- function My(t, e, n, r) {
33424
+ function Oy(t, e, n, r) {
33394
33425
  let o = t.tr, i3 = r.end, s = r.$to.end(r.depth);
33395
33426
  i3 < s && (o.step(new Je$3(i3 - 1, s, i3, s, new ue(Q$2.from(n.create(null, r.parent.copy())), 1, 0), 1, true)), r = new Lc$2(o.doc.resolve(r.$from.pos), o.doc.resolve(s), r.depth));
33396
33427
  const a = yp$2(r);
@@ -33400,7 +33431,7 @@ Actual: ` + p3.attribValue
33400
33431
  let l = o.doc.resolve(o.mapping.map(i3, -1) - 1);
33401
33432
  return Ap$1(o.doc, l.pos) && l.nodeBefore.type == l.nodeAfter.type && o.join(l.pos), e(o.scrollIntoView()), true;
33402
33433
  }
33403
- function Ay(t, e, n) {
33434
+ function Ty(t, e, n) {
33404
33435
  let r = t.tr, o = n.parent;
33405
33436
  for (let p3 = n.end, h3 = n.endIndex - 1, m = n.startIndex; h3 > m; h3--)
33406
33437
  p3 -= o.child(h3).nodeSize, r.delete(p3 - 1, p3 + 1);
@@ -33413,7 +33444,7 @@ Actual: ` + p3.attribValue
33413
33444
  let u = i3.pos, f3 = u + s.nodeSize;
33414
33445
  return r.step(new Je$3(u - (a ? 1 : 0), f3 + (l ? 1 : 0), u + 1, f3 - 1, new ue((a ? Q$2.empty : Q$2.from(o.copy(Q$2.empty))).append(l ? Q$2.empty : Q$2.from(o.copy(Q$2.empty))), a ? 0 : 1, l ? 0 : 1), a ? 0 : 1)), e(r.scrollIntoView()), true;
33415
33446
  }
33416
- function Oy(t) {
33447
+ function Dy(t) {
33417
33448
  return function(e, n) {
33418
33449
  let { $from: r, $to: o } = e.selection, i3 = r.blockRange(o, (c3) => c3.childCount > 0 && c3.firstChild.type == t);
33419
33450
  if (!i3)
@@ -33431,9 +33462,9 @@ Actual: ` + p3.attribValue
33431
33462
  return true;
33432
33463
  };
33433
33464
  }
33434
- const Ty = (t, e = {}) => ({ state: n, dispatch: r }) => {
33465
+ const Ny = (t, e = {}) => ({ state: n, dispatch: r }) => {
33435
33466
  const o = le$1(t, n.schema);
33436
- return ky(o, e)(n, r);
33467
+ return Sy(o, e)(n, r);
33437
33468
  }, Bo$1 = (t, e) => {
33438
33469
  for (let n = t.depth; n > 0; n--) {
33439
33470
  const r = t.node(n);
@@ -33454,7 +33485,7 @@ Actual: ` + p3.attribValue
33454
33485
  storage: r.storage
33455
33486
  }, i3 = Bp$2(E(r, "group", o));
33456
33487
  return typeof i3 != "string" ? false : i3.split(" ").includes("list");
33457
- }, Dy = {
33488
+ }, Ey = {
33458
33489
  type: "element",
33459
33490
  name: "w:abstractNum",
33460
33491
  attributes: {
@@ -33953,7 +33984,7 @@ Actual: ` + p3.attribValue
33953
33984
  ]
33954
33985
  }
33955
33986
  ]
33956
- }, Ny = {
33987
+ }, Iy = {
33957
33988
  type: "element",
33958
33989
  name: "w:abstractNum",
33959
33990
  attributes: {
@@ -34611,14 +34642,14 @@ Actual: ` + p3.attribValue
34611
34642
  if (r === void 0) return true;
34612
34643
  const o = t.doc.nodeAt(r);
34613
34644
  return n.node.type === o?.type && Ap$1(t.doc, r) && t.join(r), true;
34614
- }, Ey = (t, e, n, r = {}) => (o) => {
34645
+ }, Py = (t, e, n, r = {}) => (o) => {
34615
34646
  const { editor: i3, tr: s, state: a, dispatch: l, chain: c3, can: d, commands: u } = o, { extensions: f3, splittableMarks: p3 } = i3.extensionService, h3 = le$1(t, a.schema), m = le$1(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();
34616
34647
  if (!y) return false;
34617
34648
  const k = He$2((z) => Hi$1(z.type.name, f3))(g), { numbering: A } = i3.converter;
34618
34649
  if (y.depth >= 1 && k && y.depth - k.depth <= 1) {
34619
34650
  if (k.node.type === h3) {
34620
34651
  const { listId: z } = k.node.attrs;
34621
- return i3.converter.numbering = Py(z, A), u.liftListItem(m);
34652
+ return i3.converter.numbering = Ly(z, A), u.liftListItem(m);
34622
34653
  }
34623
34654
  if (Hi$1(k.node.type.name, f3) && h3.validContent(k.node.content) && l)
34624
34655
  return c3().command(() => (s.setNodeMarkup(k.pos, h3), true)).command(() => ai$1(s, h3)).command(() => li$1(s, h3)).run();
@@ -34631,9 +34662,9 @@ Actual: ` + p3.attribValue
34631
34662
  }
34632
34663
  return $ ? true : u.clearNodes();
34633
34664
  }, x3 = wd$1(A.definitions);
34634
- return i3.converter.numbering = Iy(x3, A, h3), r.listId = x3, !n || !S || !l ? c3().command(L3({ ensureMarks: false })).wrapInList(h3, r).command(() => ai$1(s, h3)).command(() => li$1(s, h3)).run() : c3().command(L3({ ensureMarks: true })).wrapInList(h3, r).command(() => ai$1(s, h3)).command(() => li$1(s, h3)).run();
34635
- }, wd$1 = (t) => Math.max(...Object.keys(t).map(Number)) + 1, Iy = (t, e, n) => {
34636
- const r = n.name === "orderedList" ? Dy : Ny, o = { ...e }, i3 = wd$1(o.abstracts), s = {
34665
+ return i3.converter.numbering = Ry(x3, A, h3), r.listId = x3, !n || !S || !l ? c3().command(L3({ ensureMarks: false })).wrapInList(h3, r).command(() => ai$1(s, h3)).command(() => li$1(s, h3)).run() : c3().command(L3({ ensureMarks: true })).wrapInList(h3, r).command(() => ai$1(s, h3)).command(() => li$1(s, h3)).run();
34666
+ }, wd$1 = (t) => Math.max(...Object.keys(t).map(Number)) + 1, Ry = (t, e, n) => {
34667
+ const r = n.name === "orderedList" ? Ey : Iy, o = { ...e }, i3 = wd$1(o.abstracts), s = {
34637
34668
  ...r,
34638
34669
  attributes: {
34639
34670
  ...r.attributes,
@@ -34653,10 +34684,10 @@ Actual: ` + p3.attribValue
34653
34684
  ]
34654
34685
  };
34655
34686
  return o.definitions[t] = a, o;
34656
- }, Py = (t, e) => {
34687
+ }, Ly = (t, e) => {
34657
34688
  const { definitions: n, abstracts: r } = e, o = n[t].elements[0].attributes["w:val"];
34658
34689
  return delete n[t], delete r[o], e;
34659
- }, Ry = (t) => (e) => {
34690
+ }, Fy = (t) => (e) => {
34660
34691
  const { tr: n, state: r, dispatch: o, editor: i3 } = e, s = le$1(t, r.schema), { $from: a, $to: l, node: c3 } = r.selection;
34661
34692
  if (c3 && c3.isBlock || a.depth < 2 || !a.sameParent(l))
34662
34693
  return false;
@@ -34708,57 +34739,57 @@ Actual: ` + p3.attribValue
34708
34739
  n.ensureMarks(y), n.setMeta("splitListItem", y);
34709
34740
  }
34710
34741
  return true;
34711
- }, Ly = (t) => ({ state: e, dispatch: n }) => {
34742
+ }, By = (t) => ({ state: e, dispatch: n }) => {
34712
34743
  const r = le$1(t, e.schema);
34713
- return Oy(r)(e, n);
34714
- }, Fy = (t) => ({ state: e, dispatch: n }) => {
34744
+ return Dy(r)(e, n);
34745
+ }, zy = (t) => ({ state: e, dispatch: n }) => {
34715
34746
  const r = le$1(t, e.schema);
34716
- return xy(r)(e, n);
34717
- }, By = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
34747
+ return Ay(r)(e, n);
34748
+ }, _y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
34718
34749
  __proto__: null,
34719
- clearNodes: ty,
34720
- command: Dg,
34721
- createParagraphNear: qg,
34722
- deleteSelection: iy,
34723
- exitCode: Xg,
34724
- first: Tg,
34725
- insertContent: gy,
34726
- insertContentAt: wy,
34727
- insertTabChar: Ng,
34728
- insertTabNode: Eg,
34729
- joinBackward: dy,
34730
- joinDown: cy,
34731
- joinForward: uy,
34732
- joinUp: ly,
34733
- liftEmptyBlock: Ug,
34734
- liftListItem: Fy,
34735
- newlineInCode: Kg,
34736
- resetAttributes: ay,
34737
- selectAll: oy,
34738
- selectNodeBackward: fy,
34739
- selectNodeForward: py,
34740
- selectTextblockEnd: my,
34741
- selectTextblockStart: hy,
34742
- setMark: Yg,
34743
- setMeta: Ig,
34744
- setNode: ny,
34745
- sinkListItem: Ly,
34746
- splitBlock: Wg,
34747
- splitListItem: Ry,
34748
- toggleList: Ey,
34749
- toggleMark: ey,
34750
- toggleNode: ry,
34751
- undoInputRule: vy,
34752
- unsetAllMarks: Qg,
34753
- unsetMark: Zg,
34754
- updateAttributes: sy,
34755
- wrapInList: Ty
34756
- }, Symbol.toStringTag, { value: "Module" })), zy = Q$1.create({
34750
+ clearNodes: ry,
34751
+ command: Eg,
34752
+ createParagraphNear: Xg,
34753
+ deleteSelection: ay,
34754
+ exitCode: Yg,
34755
+ first: Ng,
34756
+ insertContent: by,
34757
+ insertContentAt: ky,
34758
+ insertTabChar: Ig,
34759
+ insertTabNode: Pg,
34760
+ joinBackward: fy,
34761
+ joinDown: uy,
34762
+ joinForward: py,
34763
+ joinUp: dy,
34764
+ liftEmptyBlock: Kg,
34765
+ liftListItem: zy,
34766
+ newlineInCode: Jg,
34767
+ resetAttributes: cy,
34768
+ selectAll: sy,
34769
+ selectNodeBackward: hy,
34770
+ selectNodeForward: my,
34771
+ selectTextblockEnd: yy,
34772
+ selectTextblockStart: gy,
34773
+ setMark: Zg,
34774
+ setMeta: Rg,
34775
+ setNode: oy,
34776
+ sinkListItem: By,
34777
+ splitBlock: qg,
34778
+ splitListItem: Fy,
34779
+ toggleList: Py,
34780
+ toggleMark: ny,
34781
+ toggleNode: iy,
34782
+ undoInputRule: Cy,
34783
+ unsetAllMarks: ty,
34784
+ unsetMark: ey,
34785
+ updateAttributes: ly,
34786
+ wrapInList: Ny
34787
+ }, Symbol.toStringTag, { value: "Module" })), Vy = Q$1.create({
34757
34788
  name: "commands",
34758
34789
  addCommands() {
34759
- return { ...By };
34790
+ return { ..._y };
34760
34791
  }
34761
- }), _y = (t) => {
34792
+ }), $y = (t) => {
34762
34793
  t.commands.first(({ commands: e }) => [
34763
34794
  () => e.newlineInCode(),
34764
34795
  () => e.createParagraphNear(),
@@ -34773,23 +34804,23 @@ Actual: ` + p3.attribValue
34773
34804
  () => e.joinBackward(),
34774
34805
  () => e.selectNodeBackward()
34775
34806
  ]);
34776
- }, yn$2 = (t) => {
34807
+ }, bn$2 = (t) => {
34777
34808
  t.commands.first(({ commands: e }) => [
34778
34809
  () => e.deleteSelection(),
34779
34810
  () => e.joinForward(),
34780
34811
  () => e.selectNodeForward()
34781
34812
  ]);
34782
- }, Vy = Q$1.create({
34813
+ }, Hy = Q$1.create({
34783
34814
  name: "keymap",
34784
34815
  addShortcuts() {
34785
34816
  const t = {
34786
- Enter: () => _y(this.editor),
34817
+ Enter: () => $y(this.editor),
34787
34818
  "Mod-Enter": () => this.editor.commands.exitCode(),
34788
34819
  Backspace: () => Xn$2(this.editor),
34789
34820
  "Mod-Backspace": () => Xn$2(this.editor),
34790
34821
  "Shift-Backspace": () => Xn$2(this.editor),
34791
- Delete: () => yn$2(this.editor),
34792
- "Mod-Delete": () => yn$2(this.editor),
34822
+ Delete: () => bn$2(this.editor),
34823
+ "Mod-Delete": () => bn$2(this.editor),
34793
34824
  "Mod-a": () => this.editor.commands.selectAll(),
34794
34825
  Tab: () => this.editor.commands.insertTabNode()
34795
34826
  }, e = {
@@ -34798,17 +34829,17 @@ Actual: ` + p3.attribValue
34798
34829
  ...t,
34799
34830
  "Ctrl-h": () => Xn$2(this.editor),
34800
34831
  "Alt-Backspace": () => Xn$2(this.editor),
34801
- "Ctrl-d": () => yn$2(this.editor),
34802
- "Ctrl-Alt-Backspace": () => yn$2(this.editor),
34803
- "Alt-Delete": () => yn$2(this.editor),
34804
- "Alt-d": () => yn$2(this.editor),
34832
+ "Ctrl-d": () => bn$2(this.editor),
34833
+ "Ctrl-Alt-Backspace": () => bn$2(this.editor),
34834
+ "Alt-Delete": () => bn$2(this.editor),
34835
+ "Alt-d": () => bn$2(this.editor),
34805
34836
  "Ctrl-a": () => this.editor.commands.selectTextblockStart(),
34806
34837
  "Ctrl-e": () => this.editor.commands.selectTextblockEnd(),
34807
34838
  "Ctrl-t": () => this.editor.commands.insertTabChar()
34808
34839
  };
34809
34840
  return Np$1() || Ip$2() ? n : e;
34810
34841
  }
34811
- }), $y = Q$1.create({
34842
+ }), jy = Q$1.create({
34812
34843
  name: "editable",
34813
34844
  addPmPlugins() {
34814
34845
  return [new vp$2({
@@ -34818,7 +34849,7 @@ Actual: ` + p3.attribValue
34818
34849
  }
34819
34850
  })];
34820
34851
  }
34821
- }), Hy = Q$1.create({
34852
+ }), Wy = Q$1.create({
34822
34853
  name: "editorFocus",
34823
34854
  addPmPlugins() {
34824
34855
  const t = this.editor;
@@ -34932,7 +34963,7 @@ Actual: ` + p3.attribValue
34932
34963
  )) : d.attrs.track && !d.attrs.track.find((f3) => f3.type === Ri$2) && ["bulletList", "orderedList"].includes(d.type.name);
34933
34964
  }), { deletionMark: a, deletionMap: l, nodes: c3 };
34934
34965
  };
34935
- function jy(t) {
34966
+ function Uy(t) {
34936
34967
  const e = {
34937
34968
  bulletList: 1,
34938
34969
  orderedList: 2
@@ -34982,7 +35013,7 @@ Actual: ` + p3.attribValue
34982
35013
  }
34983
35014
  };
34984
35015
  }
34985
- function Wy(t, e, n) {
35016
+ function qy(t, e, n) {
34986
35017
  const r = [];
34987
35018
  return t === e ? n.resolve(t).marks().forEach((o) => {
34988
35019
  const i3 = n.resolve(t - 1), s = Ls(i3, o.type);
@@ -35041,14 +35072,14 @@ Actual: ` + p3.attribValue
35041
35072
  findMark: Eo$1,
35042
35073
  findParentNode: He$2,
35043
35074
  findParentNodeClosestToPos: Bo$1,
35044
- generateDocxListAttributes: jy,
35075
+ generateDocxListAttributes: Uy,
35045
35076
  generateDocxRandomId: Ii$2,
35046
35077
  generateRandom32BitHex: ru$2,
35047
35078
  getActiveFormatting: zf$1,
35048
35079
  getExtensionConfigField: E,
35049
35080
  getMarkRange: Ls,
35050
35081
  getMarkType: St$1,
35051
- getMarksBetween: Wy,
35082
+ getMarksBetween: qy,
35052
35083
  getMarksFromSelection: No$1,
35053
35084
  getNodeType: le$1,
35054
35085
  getSchemaTypeByName: Yn$2,
@@ -35060,7 +35091,7 @@ Actual: ` + p3.attribValue
35060
35091
  isNodeActive: xo$1,
35061
35092
  isTextSelection: yd$1,
35062
35093
  posToDOMRect: xd$1
35063
- }, Symbol.toStringTag, { value: "Module" })), Uy = (t, e, n) => {
35094
+ }, Symbol.toStringTag, { value: "Module" })), Ky = (t, e, n) => {
35064
35095
  const r = t.resolve(e), o = r.parent, i3 = o.childAfter(r.parentOffset);
35065
35096
  if (!i3.node)
35066
35097
  return null;
@@ -35090,11 +35121,11 @@ Actual: ` + p3.attribValue
35090
35121
  throw new Error('Invalid "predicate" parameter');
35091
35122
  } else throw new Error('Invalid "node" parameter');
35092
35123
  return Od$1(t, n).filter((r) => e(r.node));
35093
- }, Dd$1 = (t, e) => Td$1(t, (n) => n.isInline, e), qy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
35124
+ }, Dd$1 = (t, e) => Td$1(t, (n) => n.isInline, e), Xy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
35094
35125
  __proto__: null,
35095
35126
  findChildren: Td$1,
35096
35127
  findInlineNodes: Dd$1,
35097
- findMarkPosition: Uy,
35128
+ findMarkPosition: Ky,
35098
35129
  flatten: Od$1
35099
35130
  }, Symbol.toStringTag, { value: "Module" })), zs = (t, e = null) => {
35100
35131
  const n = [], r = Dd$1(t.doc);
@@ -35108,7 +35139,7 @@ Actual: ` + p3.attribValue
35108
35139
  });
35109
35140
  });
35110
35141
  }), e ? n.filter(({ mark: o }) => o.attrs.id === e) : n) : n;
35111
- }, de = new Cp$2("TrackChangesBase"), Ky = (t = {}) => new vp$2({
35142
+ }, de = new Cp$2("TrackChangesBase"), Jy = (t = {}) => new vp$2({
35112
35143
  key: de,
35113
35144
  state: {
35114
35145
  init(e, n) {
@@ -35116,7 +35147,7 @@ Actual: ` + p3.attribValue
35116
35147
  isTrackChangesActive: false,
35117
35148
  onlyOriginalShown: false,
35118
35149
  onlyModifiedShown: false,
35119
- decorations: bn$2(n, false, false)
35150
+ decorations: wn$2(n, false, false)
35120
35151
  };
35121
35152
  },
35122
35153
  apply(e, n, r, o) {
@@ -35124,7 +35155,7 @@ Actual: ` + p3.attribValue
35124
35155
  return i3 ? i3.type === "TRACK_CHANGES_ENABLE" ? {
35125
35156
  ...n,
35126
35157
  isTrackChangesActive: i3.value === true,
35127
- decorations: bn$2(
35158
+ decorations: wn$2(
35128
35159
  o,
35129
35160
  n.onlyOriginalShown,
35130
35161
  n.onlyModifiedShown
@@ -35133,22 +35164,22 @@ Actual: ` + p3.attribValue
35133
35164
  ...n,
35134
35165
  onlyOriginalShown: i3.value === true,
35135
35166
  onlyModifiedShown: false,
35136
- decorations: bn$2(o, i3.value === true, false)
35167
+ decorations: wn$2(o, i3.value === true, false)
35137
35168
  } : i3.type === "SHOW_ONLY_MODIFIED" ? {
35138
35169
  ...n,
35139
35170
  onlyOriginalShown: false,
35140
35171
  onlyModifiedShown: i3.value === true,
35141
- decorations: bn$2(o, false, i3.value === true)
35172
+ decorations: wn$2(o, false, i3.value === true)
35142
35173
  } : {
35143
35174
  ...n,
35144
- decorations: bn$2(
35175
+ decorations: wn$2(
35145
35176
  o,
35146
35177
  n.onlyOriginalShown,
35147
35178
  n.onlyModifiedShown
35148
35179
  )
35149
35180
  } : {
35150
35181
  ...n,
35151
- decorations: bn$2(
35182
+ decorations: wn$2(
35152
35183
  o,
35153
35184
  n.onlyOriginalShown,
35154
35185
  n.onlyModifiedShown
@@ -35161,7 +35192,7 @@ Actual: ` + p3.attribValue
35161
35192
  return this.getState(e)?.decorations;
35162
35193
  }
35163
35194
  }
35164
- }), bn$2 = (t, e, n) => {
35195
+ }), wn$2 = (t, e, n) => {
35165
35196
  if (!t.doc || !t.doc.nodeSize || n && e)
35166
35197
  return F.empty;
35167
35198
  const r = [], o = zs(t);
@@ -35229,10 +35260,10 @@ Actual: ` + p3.attribValue
35229
35260
  }
35230
35261
  }), F.create(t.doc, r)) : F.empty;
35231
35262
  }, Pe = "commentMark", Za$1 = ({ commentId: t, state: e, tr: n, dispatch: r }) => {
35232
- Xy(t, e.doc).forEach(({ from: i3, to: s }) => {
35263
+ Yy(t, e.doc).forEach(({ from: i3, to: s }) => {
35233
35264
  n.removeMark(i3, s, e.schema.marks[Pe]);
35234
35265
  }), r(n);
35235
- }, Xy = (t, e) => {
35266
+ }, Yy = (t, e) => {
35236
35267
  const n = [];
35237
35268
  return e.descendants((r, o) => {
35238
35269
  const { marks: i3 } = r, s = i3.find((a) => a.type.name === Pe);
@@ -35241,7 +35272,7 @@ Actual: ` + p3.attribValue
35241
35272
  t === l && n.push({ from: o, to: o + r.nodeSize });
35242
35273
  }
35243
35274
  }), n;
35244
- }, Jy = (t, e, n, r = []) => {
35275
+ }, Gy = (t, e, n, r = []) => {
35245
35276
  const o = [], i3 = [], s = /* @__PURE__ */ new Set();
35246
35277
  return t.descendants((a, l) => {
35247
35278
  (a.marks?.filter((d) => d.type.name === Pe)).forEach((d) => {
@@ -35287,7 +35318,7 @@ Actual: ` + p3.attribValue
35287
35318
  "w:id": e,
35288
35319
  internal: n
35289
35320
  };
35290
- }, Yy = (t, e, n, r) => {
35321
+ }, Zy = (t, e, n, r) => {
35291
35322
  const o = [], i3 = [];
35292
35323
  t.descendants((s, a) => {
35293
35324
  const { type: l } = s;
@@ -35314,7 +35345,7 @@ Actual: ` + p3.attribValue
35314
35345
  }), i3.sort((s, a) => a.start - s.start).forEach(({ start: s, end: a }) => {
35315
35346
  e.delete(s, a);
35316
35347
  });
35317
- }, Gy = (t = {}) => {
35348
+ }, Qy = (t = {}) => {
35318
35349
  const { before: e = [], after: n = [] } = t, r = new Set(e.map((h3) => h3.type)), o = new Set(n.map((h3) => h3.type)), i3 = [...o].filter((h3) => !r.has(h3)), s = [...r].filter((h3) => !o.has(h3)), a = [], l = i3.filter((h3) => !["textStyle", "commentMark"].includes(h3));
35319
35350
  l.length && a.push(`Added formatting: ${l.join(", ")}`);
35320
35351
  const c3 = s.filter((h3) => !["textStyle", "commentMark"].includes(h3));
@@ -35333,11 +35364,11 @@ Actual: ` + p3.attribValue
35333
35364
  }
35334
35365
  }
35335
35366
  }), f3.length && a.push(`Modified text style: ${f3.join(", ")}`), a.length ? a.join(". ") : "No formatting changes.";
35336
- }, Zy = ({ activeThreadId: t, threadId: e, isInternal: n, editor: r }) => {
35367
+ }, eb = ({ activeThreadId: t, threadId: e, isInternal: n, editor: r }) => {
35337
35368
  if (!r.options.isInternal && n) return "transparent";
35338
35369
  const o = he$2.getState(r.state), i3 = n ? o.internalColor : o.externalColor, s = t == e ? "44" : "22";
35339
35370
  return `${i3}${s}`;
35340
- }, rn$2 = new Cp$2("paginationPlugin"), Qy = async (t) => {
35371
+ }, on$3 = new Cp$2("paginationPlugin"), tb = async (t) => {
35341
35372
  if (!t.converter) return;
35342
35373
  const e = { headers: {}, footers: {} }, n = t.converter.headerIds, r = t.converter.footerIds;
35343
35374
  for (let o in n) {
@@ -35381,7 +35412,7 @@ Actual: ` + p3.attribValue
35381
35412
  editable: false,
35382
35413
  element: r,
35383
35414
  content: e,
35384
- extensions: Lk(),
35415
+ extensions: Bk(),
35385
35416
  documentId: "sectionId"
35386
35417
  });
35387
35418
  c3.on("create", () => {
@@ -35403,7 +35434,7 @@ Actual: ` + p3.attribValue
35403
35434
  }), n({ height: d, sectionEditor: c3, sectionContainer: r });
35404
35435
  });
35405
35436
  });
35406
- }), _s = [yr$2, Ri$2, Pi$2], he$2 = new Cp$2("comments"), eb = Q$1.create({
35437
+ }), _s = [yr$2, Ri$2, Pi$2], he$2 = new Cp$2("comments"), nb = Q$1.create({
35407
35438
  name: "comments",
35408
35439
  addCommands() {
35409
35440
  return {
@@ -35468,7 +35499,7 @@ Actual: ` + p3.attribValue
35468
35499
  };
35469
35500
  },
35470
35501
  apply(o, i3, s, a) {
35471
- const c3 = o.getMeta(rn$2)?.isReadyToInit;
35502
+ const c3 = o.getMeta(on$3)?.isReadyToInit;
35472
35503
  c3 && (e = true);
35473
35504
  const d = o.getMeta(he$2), { type: u } = d || {};
35474
35505
  if (u === "force" && (e = true), !c3 && !e && d && d.decorations)
@@ -35478,7 +35509,7 @@ Actual: ` + p3.attribValue
35478
35509
  allCommentPositions: d.allCommentPositions
35479
35510
  };
35480
35511
  const f3 = o.getMeta(de), p3 = i3.trackedChanges;
35481
- f3 && (i3.trackedChanges = nb(
35512
+ f3 && (i3.trackedChanges = ob(
35482
35513
  f3,
35483
35514
  p3,
35484
35515
  a,
@@ -35487,7 +35518,7 @@ Actual: ` + p3.attribValue
35487
35518
  const h3 = d?.type === "setActiveComment";
35488
35519
  if (!o.docChanged && o.selectionSet || h3) {
35489
35520
  const { selection: m } = o;
35490
- let g = tb(a.doc, m);
35521
+ let g = rb(a.doc, m);
35491
35522
  if (h3 && (g = d.activeThreadId), n !== g) {
35492
35523
  n = g;
35493
35524
  const w = {
@@ -35531,7 +35562,7 @@ Actual: ` + p3.attribValue
35531
35562
  });
35532
35563
  const z = L3.internal;
35533
35564
  S || (S = n === x3);
35534
- let $ = Zy({ activeThreadId: n, threadId: x3, isInternal: z, editor: t });
35565
+ let $ = eb({ activeThreadId: n, threadId: x3, isInternal: z, editor: t });
35535
35566
  const j = V.inline(w, w + b.nodeSize, {
35536
35567
  style: `background-color: ${$};`,
35537
35568
  "data-thread-id": x3,
@@ -35593,7 +35624,7 @@ Actual: ` + p3.attribValue
35593
35624
  const s = t[e];
35594
35625
  s.start = Math.min(s.start, n), s.end = Math.max(s.end, n + o.nodeSize), s.bounds.top = Math.min(s.bounds.top, r.top), s.bounds.bottom = Math.max(s.bounds.bottom, r.bottom);
35595
35626
  }
35596
- }, tb = (t, e) => {
35627
+ }, rb = (t, e) => {
35597
35628
  if (!e) return;
35598
35629
  const { $from: n, $to: r } = e;
35599
35630
  if (n.pos !== r.pos || !t.nodeAt(n.pos)) return;
@@ -35645,7 +35676,7 @@ Actual: ` + p3.attribValue
35645
35676
  mark: c3
35646
35677
  });
35647
35678
  }), s;
35648
- }, nb = (t, e, n, r) => {
35679
+ }, ob = (t, e, n, r) => {
35649
35680
  const {
35650
35681
  insertedMark: o,
35651
35682
  deletionMark: i3,
@@ -35666,7 +35697,7 @@ Actual: ` + p3.attribValue
35666
35697
  if (h3.marks.find((b) => b.type.name === Pi$2))
35667
35698
  return f3 = [h3], false;
35668
35699
  });
35669
- const p3 = ob({
35700
+ const p3 = sb({
35670
35701
  documentId: r.options.documentId,
35671
35702
  event: d ? "add" : "update",
35672
35703
  marks: {
@@ -35679,7 +35710,7 @@ Actual: ` + p3.attribValue
35679
35710
  newEditorState: n
35680
35711
  });
35681
35712
  return p3 && r.emit("commentsUpdate", p3), l;
35682
- }, rb = ({
35713
+ }, ib = ({
35683
35714
  state: t,
35684
35715
  node: e,
35685
35716
  mark: n,
@@ -35689,9 +35720,9 @@ Actual: ` + p3.attribValue
35689
35720
  deletionNodes: s = []
35690
35721
  }) => {
35691
35722
  let a = "", l = "";
35692
- if (o === yr$2 && (a = e?.text ?? ""), o === Pi$2 && (a = Gy(n.attrs)), (o === Ri$2 || i3) && (l = e?.text ?? "", i3)) {
35723
+ if (o === yr$2 && (a = e?.text ?? ""), o === Pi$2 && (a = Qy(n.attrs)), (o === Ri$2 || i3) && (l = e?.text ?? "", i3)) {
35693
35724
  let { id: c3 } = r.deletionMark.attrs;
35694
- l = ib(t.doc, (u) => {
35725
+ l = ab(t.doc, (u) => {
35695
35726
  const { marks: f3 = [] } = u, p3 = f3.filter((m) => _s.includes(m.type.name));
35696
35727
  if (!p3.length) return false;
35697
35728
  if (p3.find((m) => m.attrs.id === c3)) return true;
@@ -35701,7 +35732,7 @@ Actual: ` + p3.attribValue
35701
35732
  deletionText: l,
35702
35733
  trackedChangeText: a
35703
35734
  };
35704
- }, ob = ({ event: t, marks: e, deletionNodes: n, nodes: r, newEditorState: o, documentId: i3 }) => {
35735
+ }, sb = ({ event: t, marks: e, deletionNodes: n, nodes: r, newEditorState: o, documentId: i3 }) => {
35705
35736
  const s = e.insertedMark || e.deletionMark || e.formatMark, { type: a, attrs: l } = s, { name: c3 } = a, { author: d, authorEmail: u, date: f3 } = l, p3 = l.id, h3 = r[0], m = !!(e.insertedMark && e.deletionMark);
35706
35737
  let g;
35707
35738
  o.doc.descendants((y, S) => {
@@ -35709,7 +35740,7 @@ Actual: ` + p3.attribValue
35709
35740
  if (!A.length) return;
35710
35741
  if (A.find((x3) => x3.attrs.id === p3) && (g = y), g) return false;
35711
35742
  });
35712
- const { deletionText: b, trackedChangeText: w } = rb({
35743
+ const { deletionText: b, trackedChangeText: w } = ib({
35713
35744
  state: o,
35714
35745
  node: g || h3,
35715
35746
  mark: s,
@@ -35734,7 +35765,7 @@ Actual: ` + p3.attribValue
35734
35765
  };
35735
35766
  return t === "add" ? C.event = Tp$2.ADD : t === "update" && (C.event = Tp$2.UPDATE), C;
35736
35767
  };
35737
- function ib(t, e) {
35768
+ function ab(t, e) {
35738
35769
  let n = null;
35739
35770
  return t.descendants((r, o) => {
35740
35771
  if (e(r) && (n = { node: r, pos: o }), n) return false;
@@ -35776,8 +35807,8 @@ Actual: ` + p3.attribValue
35776
35807
  m.deletionNodes = w, m.deletionMark = g, o.appendMapping(b);
35777
35808
  }
35778
35809
  r.setMeta(de, m), r.setMeta(he$2, { type: "force" });
35779
- }, sb = () => {
35780
- }, ab = () => {
35810
+ }, lb = () => {
35811
+ }, cb = () => {
35781
35812
  }, Id$1 = ({ state: t, tr: e, step: n, newTr: r, map: o, doc: i3, user: s, date: a }) => {
35782
35813
  const l = {};
35783
35814
  i3.nodesBetween(n.from, n.to, (c3, d) => {
@@ -35912,7 +35943,7 @@ Actual: ` + p3.attribValue
35912
35943
  i3.setSelection(new tt$3(i3.doc.resolve(c3)));
35913
35944
  }
35914
35945
  return t.storedMarksSet && i3.setStoredMarks(t.storedMarks), t.scrolledIntoView && i3.scrollIntoView(), i3;
35915
- }, lb = (t) => {
35946
+ }, db = (t) => {
35916
35947
  const { state: e } = t, { dispatch: n } = t.view, { tr: r } = e;
35917
35948
  if (n)
35918
35949
  return e.doc.descendants((o, i3) => {
@@ -35933,10 +35964,10 @@ Actual: ` + p3.attribValue
35933
35964
  });
35934
35965
  }
35935
35966
  }), n(r), true;
35936
- }, cb = {
35937
- initial: lb
35967
+ }, ub = {
35968
+ initial: db
35938
35969
  }, nl$1 = (t) => {
35939
- if (t === "initial" || t === "0.4.14") return Object.values(cb);
35970
+ if (t === "initial" || t === "0.4.14") return Object.values(ub);
35940
35971
  };
35941
35972
  var en$1, gs, M, Ld$1, Fd$1, Wi$1, Ui$1, Bd$1, qi$1, Ki$1, Xi$1, Ji$1, Yi$1, Gi$1, Zi$1, Qi$1, es$1, ts$1, zd$1, Gn$2, Zn$2, _d$1, Vd$1, $d$1, Hd$1;
35942
35973
  const Gs = class Gs2 extends hg {
@@ -36304,7 +36335,7 @@ Actual: ` + p3.attribValue
36304
36335
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
36305
36336
  */
36306
36337
  processCollaborationMigrations() {
36307
- if (console.debug("[checkVersionMigrations] Current editor version", "0.10.12"), !this.options.ydoc) return;
36338
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.10.14"), !this.options.ydoc) return;
36308
36339
  let r = this.options.ydoc.getMap("meta").get("version");
36309
36340
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
36310
36341
  const o = nl$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
@@ -36340,7 +36371,7 @@ Actual: ` + p3.attribValue
36340
36371
  this.isDestroyed || this.emit("create", { editor: this });
36341
36372
  }, 0));
36342
36373
  }, Wi$1 = function(n) {
36343
- (!n.extensions || !n.extensions.length) && (this.options.extensions = Rk()), D(this, M, Xi$1).call(this), D(this, M, Ji$1).call(this), D(this, M, Zi$1).call(this), this.on("beforeCreate", this.options.onBeforeCreate), this.emit("beforeCreate", { editor: this }), this.on("contentError", this.options.onContentError), D(this, M, ts$1).call(this), this.on("create", this.options.onCreate), this.on("update", this.options.onUpdate), this.on("selectionUpdate", this.options.onSelectionUpdate), this.on("transaction", this.options.onTransaction), this.on("focus", D(this, M, Ui$1)), this.on("blur", this.options.onBlur), this.on("destroy", this.options.onDestroy), this.on("commentsLoaded", this.options.onCommentsLoaded), this.on("commentClick", this.options.onCommentClicked), this.on("locked", this.options.onDocumentLocked), window.setTimeout(() => {
36374
+ (!n.extensions || !n.extensions.length) && (this.options.extensions = Fk()), D(this, M, Xi$1).call(this), D(this, M, Ji$1).call(this), D(this, M, Zi$1).call(this), this.on("beforeCreate", this.options.onBeforeCreate), this.emit("beforeCreate", { editor: this }), this.on("contentError", this.options.onContentError), D(this, M, ts$1).call(this), this.on("create", this.options.onCreate), this.on("update", this.options.onUpdate), this.on("selectionUpdate", this.options.onSelectionUpdate), this.on("transaction", this.options.onTransaction), this.on("focus", D(this, M, Ui$1)), this.on("blur", this.options.onBlur), this.on("destroy", this.options.onDestroy), this.on("commentsLoaded", this.options.onCommentsLoaded), this.on("commentClick", this.options.onCommentClicked), this.on("locked", this.options.onDocumentLocked), window.setTimeout(() => {
36344
36375
  this.isDestroyed || this.emit("create", { editor: this });
36345
36376
  }, 0);
36346
36377
  }, Ui$1 = function({ editor: n, event: r }) {
@@ -36365,7 +36396,7 @@ Actual: ` + p3.attribValue
36365
36396
  * Creates extension service.
36366
36397
  */
36367
36398
  Xi$1 = function() {
36368
- const n = ["extension", "node", "mark"], r = [$y, zy, Hy, Vy], o = this.options.externalExtensions || [], i3 = [...r, ...this.options.extensions].filter(
36399
+ const n = ["extension", "node", "mark"], r = [jy, Vy, Wy, Hy], o = this.options.externalExtensions || [], i3 = [...r, ...this.options.extensions].filter(
36369
36400
  (s) => n.includes(s?.type)
36370
36401
  );
36371
36402
  this.extensionService = _i$1.create(i3, o, this);
@@ -36460,9 +36491,9 @@ Actual: ` + p3.attribValue
36460
36491
  if (this.options.isHeadless || !this.extensionService) return;
36461
36492
  if (this.options.extensions.find((r) => r.name === "pagination") && this.options.pagination) {
36462
36493
  console.debug("🔗 [super-editor] Initializing pagination");
36463
- const r = await Qy(this);
36494
+ const r = await tb(this);
36464
36495
  this.storage.pagination.sectionData = r;
36465
- const { state: o, dispatch: i3 } = this.view, s = o.tr.setMeta(rn$2, { isReadyToInit: true });
36496
+ const { state: o, dispatch: i3 } = this.view, s = o.tr.setMeta(on$3, { isReadyToInit: true });
36466
36497
  i3(s);
36467
36498
  }
36468
36499
  }, /**
@@ -36517,7 +36548,7 @@ Actual: ` + p3.attribValue
36517
36548
  schema: this.schema,
36518
36549
  doc: n
36519
36550
  }), { tr: o, doc: i3 } = r;
36520
- return Yy(i3, o, this.schema, this.converter), r.apply(o).doc;
36551
+ return Zy(i3, o, this.schema, this.converter), r.apply(o).doc;
36521
36552
  }, /**
36522
36553
  * Prepare the document for export. Any necessary pre-export processing to the state
36523
36554
  * can happen here.
@@ -36530,7 +36561,7 @@ Actual: ` + p3.attribValue
36530
36561
  doc: this.state.doc,
36531
36562
  plugins: this.state.plugins
36532
36563
  }), { tr: o, doc: i3 } = r;
36533
- return Jy(i3, o, this.schema, n), r.apply(o).doc.toJSON();
36564
+ return Gy(i3, o, this.schema, n), r.apply(o).doc.toJSON();
36534
36565
  }, /**
36535
36566
  * Destroy collaboration provider and ydoc
36536
36567
  */
@@ -36884,14 +36915,14 @@ Actual: ` + p3.attribValue
36884
36915
  };
36885
36916
  }
36886
36917
  });
36887
- function db(t = {}) {
36918
+ function fb(t = {}) {
36888
36919
  return new vp$2({
36889
36920
  view(e) {
36890
- return new ub(e, t);
36921
+ return new pb(e, t);
36891
36922
  }
36892
36923
  });
36893
36924
  }
36894
- class ub {
36925
+ class pb {
36895
36926
  constructor(e, n) {
36896
36927
  var r;
36897
36928
  this.editorView = e, this.cursorPos = null, this.element = null, this.timeout = -1, this.width = (r = n.width) !== null && r !== void 0 ? r : 1, this.color = n.color === false ? void 0 : n.color || "black", this.class = n.class, this.handlers = ["dragover", "dragend", "drop", "dragleave"].map((o) => {
@@ -36973,7 +37004,7 @@ Actual: ` + p3.attribValue
36973
37004
  };
36974
37005
  },
36975
37006
  addPmPlugins() {
36976
- return [db(this.options)];
37007
+ return [fb(this.options)];
36977
37008
  }
36978
37009
  });
36979
37010
  let re$2 = class re2 extends ve$1 {
@@ -37015,7 +37046,7 @@ Actual: ` + p3.attribValue
37015
37046
  */
37016
37047
  static valid(e) {
37017
37048
  let n = e.parent;
37018
- if (n.isTextblock || !fb(e) || !pb(e))
37049
+ if (n.isTextblock || !hb(e) || !mb(e))
37019
37050
  return false;
37020
37051
  let r = n.type.spec.allowGapCursor;
37021
37052
  if (r != null)
@@ -37076,7 +37107,7 @@ Actual: ` + p3.attribValue
37076
37107
  return re$2.valid(n) ? new re$2(n) : ve$1.near(n);
37077
37108
  }
37078
37109
  }
37079
- function fb(t) {
37110
+ function hb(t) {
37080
37111
  for (let e = t.depth; e >= 0; e--) {
37081
37112
  let n = t.index(e), r = t.node(e);
37082
37113
  if (n == 0) {
@@ -37093,7 +37124,7 @@ Actual: ` + p3.attribValue
37093
37124
  }
37094
37125
  return true;
37095
37126
  }
37096
- function pb(t) {
37127
+ function mb(t) {
37097
37128
  for (let e = t.depth; e >= 0; e--) {
37098
37129
  let n = t.indexAfter(e), r = t.node(e);
37099
37130
  if (n == r.childCount) {
@@ -37110,20 +37141,20 @@ Actual: ` + p3.attribValue
37110
37141
  }
37111
37142
  return true;
37112
37143
  }
37113
- function hb() {
37144
+ function gb() {
37114
37145
  return new vp$2({
37115
37146
  props: {
37116
- decorations: bb,
37147
+ decorations: vb,
37117
37148
  createSelectionBetween(t, e, n) {
37118
37149
  return e.pos == n.pos && re$2.valid(n) ? new re$2(n) : null;
37119
37150
  },
37120
- handleClick: gb,
37121
- handleKeyDown: mb,
37122
- handleDOMEvents: { beforeinput: yb }
37151
+ handleClick: bb,
37152
+ handleKeyDown: yb,
37153
+ handleDOMEvents: { beforeinput: wb }
37123
37154
  }
37124
37155
  });
37125
37156
  }
37126
- const mb = Ns({
37157
+ const yb = Ns({
37127
37158
  ArrowLeft: Xr$1("horiz", -1),
37128
37159
  ArrowRight: Xr$1("horiz", 1),
37129
37160
  ArrowUp: Xr$1("vert", -1),
@@ -37142,7 +37173,7 @@ Actual: ` + p3.attribValue
37142
37173
  return c3 ? (o && o(r.tr.setSelection(new re$2(c3))), true) : false;
37143
37174
  };
37144
37175
  }
37145
- function gb(t, e, n) {
37176
+ function bb(t, e, n) {
37146
37177
  if (!t || !t.editable)
37147
37178
  return false;
37148
37179
  let r = t.state.doc.resolve(e);
@@ -37151,7 +37182,7 @@ Actual: ` + p3.attribValue
37151
37182
  let o = t.posAtCoords({ left: n.clientX, top: n.clientY });
37152
37183
  return o && o.inside > -1 && Ge$1.isSelectable(t.state.doc.nodeAt(o.inside)) ? false : (t.dispatch(t.state.tr.setSelection(new re$2(r))), true);
37153
37184
  }
37154
- function yb(t, e) {
37185
+ function wb(t, e) {
37155
37186
  if (e.inputType != "insertCompositionText" || !(t.state.selection instanceof re$2))
37156
37187
  return false;
37157
37188
  let { $from: n } = t.state.selection, r = n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);
@@ -37163,17 +37194,17 @@ Actual: ` + p3.attribValue
37163
37194
  let i3 = t.state.tr.replace(n.pos, n.pos, new ue(o, 0, 0));
37164
37195
  return i3.setSelection(tt$3.near(i3.doc.resolve(n.pos + 1))), t.dispatch(i3), false;
37165
37196
  }
37166
- function bb(t) {
37197
+ function vb(t) {
37167
37198
  if (!(t.selection instanceof re$2))
37168
37199
  return null;
37169
37200
  let e = document.createElement("div");
37170
37201
  return e.className = "ProseMirror-gapcursor", F.create(t.doc, [V.widget(t.selection.head, e, { key: "gapcursor" })]);
37171
37202
  }
37172
- const wb = Q$1.create({
37203
+ const kb = Q$1.create({
37173
37204
  name: "gapCursor",
37174
37205
  addPmPlugins() {
37175
37206
  return [
37176
- hb()
37207
+ gb()
37177
37208
  ];
37178
37209
  },
37179
37210
  extendNodeSchema(t) {
@@ -37185,7 +37216,7 @@ Actual: ` + p3.attribValue
37185
37216
  })) ?? null
37186
37217
  };
37187
37218
  }
37188
- }), vb = new Cp$2("collaboration"), kb = Q$1.create({
37219
+ }), Cb = new Cp$2("collaboration"), Sb = Q$1.create({
37189
37220
  name: "collaboration",
37190
37221
  priority: 1e3,
37191
37222
  addOptions() {
@@ -37199,9 +37230,9 @@ Actual: ` + p3.attribValue
37199
37230
  addPmPlugins() {
37200
37231
  if (!this.editor.options.ydoc) return [];
37201
37232
  this.options.ydoc = this.editor.options.ydoc;
37202
- const t = Sb();
37203
- xb(this.options.ydoc, this.editor), Mb(this.options.ydoc, this.editor, this);
37204
- const [e, n] = Cb(this.options.ydoc, this.editor);
37233
+ const t = Mb();
37234
+ Ab(this.options.ydoc, this.editor), Ob(this.options.ydoc, this.editor, this);
37235
+ const [e, n] = xb(this.options.ydoc, this.editor);
37205
37236
  this.options.fragment = n;
37206
37237
  const r = this.options.ydoc.getMap("media");
37207
37238
  return r.observe((o) => {
@@ -37230,14 +37261,14 @@ Actual: ` + p3.attribValue
37230
37261
  "Mod-y": () => this.editor.commands.redo()
37231
37262
  };
37232
37263
  }
37233
- }), Cb = (t, e) => {
37264
+ }), xb = (t, e) => {
37234
37265
  const n = t.getXmlFragment("supereditor");
37235
37266
  return [jm(n, { onFirstRender: () => {
37236
37267
  if (!e.options.isNewFile) return;
37237
37268
  const o = t.getMap("meta");
37238
37269
  o.set("docx", e.options.content), o.set("fonts", e.options.fonts);
37239
37270
  } }), n];
37240
- }, Sb = () => pg(), xb = (t, e) => {
37271
+ }, Mb = () => pg(), Ab = (t, e) => {
37241
37272
  const n = t.getMap("meta");
37242
37273
  n.observe((r) => {
37243
37274
  const o = n.get("lockedBy"), i3 = n.get("locked");
@@ -37245,7 +37276,7 @@ Actual: ` + p3.attribValue
37245
37276
  const s = o?.email !== e.options.user?.email, a = e.options.editable !== !i3;
37246
37277
  !s || !a || (i3 ? console.debug("--- Locking editor ---", o, e.options.user) : console.debug("--- Unlocking editor ---", o), e.setEditable(!i3), e.emit("locked", { editor: e, isLocked: i3, lockedBy: o }));
37247
37278
  });
37248
- }, Mb = (t, e, n) => {
37279
+ }, Ob = (t, e, n) => {
37249
37280
  const r = e.options.collaborationProvider;
37250
37281
  if (!r) return;
37251
37282
  const o = () => {
@@ -37258,7 +37289,7 @@ Actual: ` + p3.attribValue
37258
37289
  return;
37259
37290
  }
37260
37291
  r.on("synced", o);
37261
- }, Ab = Q$1.create({
37292
+ }, Tb = Q$1.create({
37262
37293
  name: "collaborationCursor",
37263
37294
  priority: 999,
37264
37295
  addOptions() {
@@ -37277,9 +37308,9 @@ Actual: ` + p3.attribValue
37277
37308
  },
37278
37309
  addPmPlugins() {
37279
37310
  const { collaborationProvider: t = null } = this.editor.options;
37280
- return t ? [lg(t.awareness, { cursorBuilder: Ob })] : [];
37311
+ return t ? [lg(t.awareness, { cursorBuilder: Db })] : [];
37281
37312
  }
37282
- }), Ob = (t) => {
37313
+ }), Db = (t) => {
37283
37314
  const e = document.createElement("span");
37284
37315
  e.classList.add("ProseMirror-yjs-cursor"), e.setAttribute("style", `border-color: ${t.color}`);
37285
37316
  const n = document.createElement("div");
@@ -37305,7 +37336,7 @@ Actual: ` + p3.attribValue
37305
37336
  name: "text",
37306
37337
  group: "inline",
37307
37338
  inline: true
37308
- }), Tb = J$1.create({
37339
+ }), Nb = J$1.create({
37309
37340
  name: "run",
37310
37341
  group: "inline",
37311
37342
  content: "text*",
@@ -37418,7 +37449,7 @@ Actual: ` + p3.attribValue
37418
37449
  ];
37419
37450
  }
37420
37451
  });
37421
- function Db(t = {}) {
37452
+ function Eb(t = {}) {
37422
37453
  return new vp$2({
37423
37454
  key: new Cp$2("orderedListSync"),
37424
37455
  appendTransaction: (e, n, r) => {
@@ -37455,16 +37486,16 @@ Actual: ` + p3.attribValue
37455
37486
  }
37456
37487
  });
37457
37488
  }
37458
- function Nb() {
37489
+ function Ib() {
37459
37490
  return Math.floor(Math.random() * 4294967295).toString();
37460
37491
  }
37461
- function Eb(t) {
37492
+ function Pb(t) {
37462
37493
  return new vp$2({
37463
37494
  key: new Cp$2("orderedListMarker"),
37464
37495
  appendTransaction: (e, n, r) => {
37465
37496
  if (!(e.some((c3) => c3.docChanged) && !n.doc.eq(r.doc)))
37466
37497
  return;
37467
- let { doc: i3, tr: s } = r, a = Ib(r);
37498
+ let { doc: i3, tr: s } = r, a = Rb(r);
37468
37499
  if (!a.size)
37469
37500
  return;
37470
37501
  let l = false;
@@ -37474,14 +37505,14 @@ Actual: ` + p3.attribValue
37474
37505
  u.node.attrs.syncId;
37475
37506
  let h3 = u.node.childCount !== f3.length;
37476
37507
  if (p3) {
37477
- f3.forEach((y) => Rb(s, y)), l = true;
37508
+ f3.forEach((y) => Fb(s, y)), l = true;
37478
37509
  return;
37479
37510
  }
37480
37511
  if (h3) {
37481
- let y = Pb({ state: r, list: u });
37512
+ let y = Lb({ state: r, list: u });
37482
37513
  y.length && (f3 = y);
37483
37514
  }
37484
- let m = f3[0], g = Lb({ state: r, listItems: f3 }), b = eu$1(), w = {
37515
+ let m = f3[0], g = Bb({ state: r, listItems: f3 }), b = eu$1(), w = {
37485
37516
  lvlText: m.node.attrs.lvlText ?? b.lvlText,
37486
37517
  listLevel: m.node.attrs.listLevel ?? b.listLevel,
37487
37518
  listNumberingType: m.node.attrs.listNumberingType ?? b.listNumberingType
@@ -37513,7 +37544,7 @@ Actual: ` + p3.attribValue
37513
37544
  }
37514
37545
  });
37515
37546
  }
37516
- function Ib(t) {
37547
+ function Rb(t) {
37517
37548
  let { doc: e } = t, n = /* @__PURE__ */ new Map();
37518
37549
  return e.descendants((r, o) => {
37519
37550
  let { attrs: i3 } = r, s = r.type.name === "listItem", a = !!i3.listLevel?.length, l = !!i3.lvlText, c3 = i3.listNumberingType && i3.listNumberingType !== "bullet";
@@ -37523,7 +37554,7 @@ Actual: ` + p3.attribValue
37523
37554
  }
37524
37555
  }), n;
37525
37556
  }
37526
- function Pb({ state: t, list: e }) {
37557
+ function Lb({ state: t, list: e }) {
37527
37558
  let { doc: n } = t, r = [];
37528
37559
  return n.descendants((o, i3) => {
37529
37560
  let s = o.type.name === "listItem", a = n.resolve(i3);
@@ -37537,7 +37568,7 @@ Actual: ` + p3.attribValue
37537
37568
  listNumberingType: n
37538
37569
  };
37539
37570
  }
37540
- function Rb(t, e) {
37571
+ function Fb(t, e) {
37541
37572
  let { pos: n, node: r } = e;
37542
37573
  t.setNodeMarkup(n, void 0, {
37543
37574
  ...r.attrs,
@@ -37549,7 +37580,7 @@ Actual: ` + p3.attribValue
37549
37580
  function ol$1(t, e) {
37550
37581
  return t.length === e.length && t.every((n, r) => n === e[r]);
37551
37582
  }
37552
- function Lb({ state: t, listItems: e }) {
37583
+ function Bb({ state: t, listItems: e }) {
37553
37584
  let { doc: n } = t, r = e[0], { lvlText: o, listLevel: i3, listNumberingType: s } = r.node.attrs, a = eu$1({
37554
37585
  lvlText: "%1.",
37555
37586
  listLevel: [1],
@@ -37684,7 +37715,7 @@ Actual: ` + p3.attribValue
37684
37715
  return false;
37685
37716
  let { $from: p3 } = r.selection, h3 = r.doc.nodeAt(f3), m = p3.after(), g = r.doc.nodeAt(m), b = h3?.type.name === this.name, w = g?.type.name === this.name;
37686
37717
  if (b && w) {
37687
- let C = h3.attrs.order || 1, y = h3.childCount, S = h3.attrs.syncId, k = y + C, A = S || Nb();
37718
+ let C = h3.attrs.order || 1, y = h3.childCount, S = h3.attrs.syncId, k = y + C, A = S || Ib();
37688
37719
  r.setNodeMarkup(m, void 0, {
37689
37720
  ...g.attrs,
37690
37721
  order: k,
@@ -37706,7 +37737,7 @@ Actual: ` + p3.attribValue
37706
37737
  };
37707
37738
  },
37708
37739
  addPmPlugins() {
37709
- return [Eb(this.editor), Db()];
37740
+ return [Pb(this.editor), Eb()];
37710
37741
  },
37711
37742
  addInputRules() {
37712
37743
  let t = Mo$1({
@@ -37727,19 +37758,19 @@ Actual: ` + p3.attribValue
37727
37758
  t
37728
37759
  ];
37729
37760
  }
37730
- }), Fb = ({ listLevel: t, lvlText: e, listNumberingType: n }) => {
37731
- const r = Vb[n];
37761
+ }), zb = ({ listLevel: t, lvlText: e, listNumberingType: n }) => {
37762
+ const r = Hb[n];
37732
37763
  return r ? r(t, e) : null;
37733
- }, Bb = (t, e) => $s(t, e, String), nu$1 = (t, e) => $s(t, e, Hb), zb = (t, e) => nu$1(t, e).toLowerCase(), _b = (t, e) => ru$1(t, e).toLowerCase(), ru$1 = (t, e) => $s(t, e, (n) => jb(n)), Vb = {
37734
- decimal: Bb,
37735
- lowerRoman: zb,
37764
+ }, _b = (t, e) => $s(t, e, String), nu$1 = (t, e) => $s(t, e, Wb), Vb = (t, e) => nu$1(t, e).toLowerCase(), $b = (t, e) => ru$1(t, e).toLowerCase(), ru$1 = (t, e) => $s(t, e, (n) => Ub(n)), Hb = {
37765
+ decimal: _b,
37766
+ lowerRoman: Vb,
37736
37767
  upperRoman: nu$1,
37737
- lowerLetter: _b,
37768
+ lowerLetter: $b,
37738
37769
  upperLetter: ru$1
37739
- }, $b = (t, e) => t.reduce((n, r, o) => n.replace(`%${o + 1}`, r), e), $s = (t, e, n) => {
37770
+ }, jb = (t, e) => t.reduce((n, r, o) => n.replace(`%${o + 1}`, r), e), $s = (t, e, n) => {
37740
37771
  const r = t.map(n);
37741
- return $b(r, e);
37742
- }, Hb = (t) => {
37772
+ return jb(r, e);
37773
+ }, Wb = (t) => {
37743
37774
  const e = [
37744
37775
  { value: 1e3, numeral: "M" },
37745
37776
  { value: 900, numeral: "CM" },
@@ -37760,7 +37791,7 @@ Actual: ` + p3.attribValue
37760
37791
  for (; t >= r; )
37761
37792
  n += o, t -= r;
37762
37793
  return n;
37763
- }, jb = (t) => {
37794
+ }, Ub = (t) => {
37764
37795
  let e = "";
37765
37796
  const n = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
37766
37797
  for (; t > 0; ) {
@@ -37769,7 +37800,7 @@ Actual: ` + p3.attribValue
37769
37800
  }
37770
37801
  return e;
37771
37802
  };
37772
- function Wb(t = {}) {
37803
+ function qb(t = {}) {
37773
37804
  return new vp$2({
37774
37805
  key: new Cp$2("styledListMarker"),
37775
37806
  state: {
@@ -37802,11 +37833,11 @@ Actual: ` + p3.attribValue
37802
37833
  let i3 = Bs(n, (s) => s.type.name === "listItem");
37803
37834
  return i3.length && i3.forEach(({ node: s, pos: a }) => {
37804
37835
  let l = St$1("textStyle", n.type.schema), c3 = [...e.filter((b) => b.type === l)];
37805
- if (qb(s) && e.length) {
37836
+ if (Xb(s) && e.length) {
37806
37837
  const b = e.filter((w) => w.type === l);
37807
37838
  c3.push(...b);
37808
37839
  } else {
37809
- const b = Ub(s, n, l);
37840
+ const b = Kb(s, n, l);
37810
37841
  c3.push(...b);
37811
37842
  }
37812
37843
  let u = null, f3 = null;
@@ -37844,7 +37875,7 @@ Actual: ` + p3.attribValue
37844
37875
  n.push(a);
37845
37876
  }), n;
37846
37877
  }
37847
- function Ub(t, e, n) {
37878
+ function Kb(t, e, n) {
37848
37879
  let r = [];
37849
37880
  return t.forEach((o) => {
37850
37881
  o.type.name === "paragraph" && o.forEach((i3) => {
@@ -37856,7 +37887,7 @@ Actual: ` + p3.attribValue
37856
37887
  });
37857
37888
  }), r;
37858
37889
  }
37859
- function qb(t) {
37890
+ function Xb(t) {
37860
37891
  return t.childCount === 1 && t.firstChild?.type.name === "paragraph" && t.firstChild?.content.size === 0;
37861
37892
  }
37862
37893
  const ou$1 = J$1.create({
@@ -37887,7 +37918,7 @@ Actual: ` + p3.attribValue
37887
37918
  let { listLevel: e, listNumberingType: n, lvlText: r } = t;
37888
37919
  if (!!!e?.length || !r)
37889
37920
  return {};
37890
- let i3 = Fb({
37921
+ let i3 = zb({
37891
37922
  listLevel: e,
37892
37923
  lvlText: r,
37893
37924
  listNumberingType: n
@@ -37979,12 +38010,12 @@ Actual: ` + p3.attribValue
37979
38010
  };
37980
38011
  },
37981
38012
  addPmPlugins() {
37982
- return [Wb()];
38013
+ return [qb()];
37983
38014
  }
37984
- }), io$2 = new Cp$2("linkedStyles"), Kb = Q$1.create({
38015
+ }), io$2 = new Cp$2("linkedStyles"), Jb = Q$1.create({
37985
38016
  name: "linkedStyles",
37986
38017
  addPmPlugins() {
37987
- return [Xb(this.editor)];
38018
+ return [Yb(this.editor)];
37988
38019
  },
37989
38020
  addCommands() {
37990
38021
  return {
@@ -38004,7 +38035,7 @@ Actual: ` + p3.attribValue
38004
38035
  }
38005
38036
  };
38006
38037
  }
38007
- }), Xb = (t) => new vp$2({
38038
+ }), Yb = (t) => new vp$2({
38008
38039
  key: io$2,
38009
38040
  state: {
38010
38041
  init(e, { doc: n, selection: r }) {
@@ -38036,14 +38067,14 @@ Actual: ` + p3.attribValue
38036
38067
  return t.descendants((o, i3) => {
38037
38068
  const { name: s } = o.type;
38038
38069
  if (o?.attrs?.styleId && (r = o.attrs.styleId), s === "paragraph" && !o.attrs?.styleId && (r = null), s !== "text") return;
38039
- const a = Yb(r, e);
38070
+ const a = Zb(r, e);
38040
38071
  if (!a) return;
38041
- const l = Jb(a, o);
38072
+ const l = Gb(a, o);
38042
38073
  if (!l) return;
38043
38074
  const c3 = V.inline(i3, i3 + o.nodeSize, { style: l });
38044
38075
  n.push(c3);
38045
38076
  }), F.create(t, n);
38046
- }, Jb = (t, e, n = true) => {
38077
+ }, Gb = (t, e, n = true) => {
38047
38078
  if (!t?.definition?.styles) return "";
38048
38079
  const r = {};
38049
38080
  return Object.entries(t.definition.styles).forEach(([o, i3]) => {
@@ -38059,7 +38090,7 @@ Actual: ` + p3.attribValue
38059
38090
  a.push({ key: c3.type.name, value: c3.attrs[s] });
38060
38091
  }), !a.find((c3) => c3.key === s))
38061
38092
  if (s === "spacing" && n) {
38062
- const c3 = Gb(i3);
38093
+ const c3 = Qb(i3);
38063
38094
  Object.entries(c3).forEach(([d, u]) => {
38064
38095
  r[d] = u;
38065
38096
  });
@@ -38068,20 +38099,20 @@ Actual: ` + p3.attribValue
38068
38099
  c3 && (r["margin-left"] = c3 + "px"), d && (r["margin-right"] = d + "px"), u && (r["text-indent"] = u + "px");
38069
38100
  } else s === "bold" ? r["font-weight"] = "bold" : r[s] = i3;
38070
38101
  }), Object.entries(r).map(([o, i3]) => `${o}: ${i3}`).join(";");
38071
- }, Yb = (t, e = []) => e.find((n) => n.id === t), Gb = (t) => {
38102
+ }, Zb = (t, e = []) => e.find((n) => n.id === t), Qb = (t) => {
38072
38103
  const { lineSpaceBefore: e, lineSpaceAfter: n, line: r } = t;
38073
38104
  return {
38074
38105
  "margin-top": e + "px",
38075
38106
  "margin-bottom": n + "px",
38076
38107
  ...Lp$1(r, "")
38077
38108
  };
38078
- }, Zb = (t) => {
38109
+ }, e0 = (t) => {
38079
38110
  const { lineSpaceBefore: e, lineSpaceAfter: n } = t;
38080
38111
  return `
38081
38112
  ${e ? `margin-top: ${e}px;` : ""}
38082
38113
  ${n ? `margin-bottom: ${n}px;` : ""}
38083
38114
  `.trim();
38084
- }, Qb = (t) => {
38115
+ }, t0 = (t) => {
38085
38116
  let e = "";
38086
38117
  for (const n of t)
38087
38118
  switch (n.type) {
@@ -38102,7 +38133,7 @@ Actual: ` + p3.attribValue
38102
38133
  e += `${r ? `font-family: ${r};` : ""} ${o ? `font-size: ${o};` : ""}`;
38103
38134
  }
38104
38135
  return e.trim();
38105
- }, Wk = (t) => t?.converter ? (t.converter.linkedStyles || []).filter((n) => n.type === "paragraph" && n.definition.attrs).sort((n, r) => n.definition.attrs?.name.localeCompare(r.definition.attrs?.name)) : [], iu$1 = J$1.create({
38136
+ }, qk = (t) => t?.converter ? (t.converter.linkedStyles || []).filter((n) => n.type === "paragraph" && n.definition.attrs).sort((n, r) => n.definition.attrs?.name.localeCompare(r.definition.attrs?.name)) : [], iu$1 = J$1.create({
38106
38137
  name: "paragraph",
38107
38138
  priority: 1e3,
38108
38139
  group: "block",
@@ -38119,7 +38150,7 @@ Actual: ` + p3.attribValue
38119
38150
  renderDOM: (t) => {
38120
38151
  const { spacing: e } = t;
38121
38152
  if (!e) return {};
38122
- const n = Zb(e);
38153
+ const n = e0(e);
38123
38154
  return n ? { style: n } : {};
38124
38155
  }
38125
38156
  },
@@ -38137,7 +38168,7 @@ Actual: ` + p3.attribValue
38137
38168
  renderDOM: (t) => {
38138
38169
  const { marksAttrs: e } = t;
38139
38170
  if (!e?.length) return {};
38140
- const n = Qb(e);
38171
+ const n = t0(e);
38141
38172
  return n ? { style: n } : {};
38142
38173
  }
38143
38174
  },
@@ -38217,7 +38248,7 @@ Actual: ` + p3.attribValue
38217
38248
  {}
38218
38249
  );
38219
38250
  }
38220
- }), e0 = J$1.create({
38251
+ }), n0 = J$1.create({
38221
38252
  name: "commentRangeStart",
38222
38253
  group: "inline",
38223
38254
  inline: true,
@@ -38248,7 +38279,7 @@ Actual: ` + p3.attribValue
38248
38279
  }
38249
38280
  };
38250
38281
  }
38251
- }), t0 = J$1.create({
38282
+ }), r0 = J$1.create({
38252
38283
  name: "commentRangeEnd",
38253
38284
  group: "inline",
38254
38285
  inline: true,
@@ -38275,7 +38306,7 @@ Actual: ` + p3.attribValue
38275
38306
  }
38276
38307
  };
38277
38308
  }
38278
- }), n0 = J$1.create({
38309
+ }), o0 = J$1.create({
38279
38310
  name: "commentReference",
38280
38311
  group: "inline",
38281
38312
  inline: true,
@@ -38302,7 +38333,7 @@ Actual: ` + p3.attribValue
38302
38333
  }
38303
38334
  };
38304
38335
  }
38305
- }), r0 = Le$1.create({
38336
+ }), i0 = Le$1.create({
38306
38337
  name: Pe,
38307
38338
  group: "comments",
38308
38339
  excludes: "",
@@ -38327,7 +38358,7 @@ Actual: ` + p3.attribValue
38327
38358
  renderDOM({ htmlAttributes: t }) {
38328
38359
  return [Pe, N.mergeAttributes(this.options.htmlAttributes, t)];
38329
38360
  }
38330
- }), o0 = J$1.create({
38361
+ }), s0 = J$1.create({
38331
38362
  name: "tab",
38332
38363
  group: "inline",
38333
38364
  inline: true,
@@ -38391,21 +38422,21 @@ Actual: ` + p3.attribValue
38391
38422
  try {
38392
38423
  t.doc.nodesBetween(o - s - 1, o - 1, (d, u) => {
38393
38424
  if (d.isText && d.textContent !== " ") {
38394
- const f3 = i0(e, u);
38425
+ const f3 = a0(e, u);
38395
38426
  a += f3;
38396
38427
  }
38397
38428
  });
38398
38429
  } catch {
38399
38430
  return;
38400
38431
  }
38401
- const l = i3.nodeBefore?.type.name === "tab" ? ci$1 : ci$1 - a % ci$1, c3 = s0(i3);
38432
+ const l = i3.nodeBefore?.type.name === "tab" ? ci$1 : ci$1 - a % ci$1, c3 = l0(i3);
38402
38433
  n.push(
38403
38434
  V.node(o, o + r.nodeSize, { style: `width: ${l}px; height: ${c3};` })
38404
38435
  );
38405
38436
  }
38406
38437
  }), n;
38407
38438
  };
38408
- function i0(t, e) {
38439
+ function a0(t, e) {
38409
38440
  const n = t.nodeDOM(e);
38410
38441
  if (n) {
38411
38442
  const r = document.createRange();
@@ -38413,7 +38444,7 @@ Actual: ` + p3.attribValue
38413
38444
  }
38414
38445
  return 0;
38415
38446
  }
38416
- function s0(t) {
38447
+ function l0(t) {
38417
38448
  const i3 = t.node(1).firstChild.marks.find((a) => a.type.name === "textStyle");
38418
38449
  return `${(parseInt(i3?.attrs.fontSize) * 1.333 || 16) * 1.1}px`;
38419
38450
  }
@@ -38447,7 +38478,7 @@ Actual: ` + p3.attribValue
38447
38478
  renderDOM({ htmlAttributes: t }) {
38448
38479
  return ["span", N.mergeAttributes(this.options.htmlAttributes, t)];
38449
38480
  }
38450
- }), a0 = ({ editor: t }) => class {
38481
+ }), c0 = ({ editor: t }) => class {
38451
38482
  constructor(n, r) {
38452
38483
  P(this, "editor");
38453
38484
  P(this, "node");
@@ -38525,7 +38556,7 @@ Actual: ` + p3.attribValue
38525
38556
  right: { size: t, color: e },
38526
38557
  insideH: { size: t, color: e },
38527
38558
  insideV: { size: t, color: e }
38528
- }), l0 = (t, e, n, r, o = null) => {
38559
+ }), d0 = (t, e, n, r, o = null) => {
38529
38560
  const i3 = {
38530
38561
  table: le$1("table", t),
38531
38562
  tableRow: le$1("tableRow", t),
@@ -38638,13 +38669,13 @@ Actual: ` + p3.attribValue
38638
38669
  }
38639
38670
  // Find the table map for the given table node.
38640
38671
  static get(t) {
38641
- return ns$1(t) || rs$1(t, c0(t));
38672
+ return ns$1(t) || rs$1(t, u0(t));
38642
38673
  }
38643
38674
  };
38644
- function c0(t) {
38675
+ function u0(t) {
38645
38676
  if (t.type.spec.tableRole != "table")
38646
38677
  throw new RangeError("Not a table node: " + t.type.name);
38647
- const e = d0(t), n = t.childCount, r = [];
38678
+ const e = f0(t), n = t.childCount, r = [];
38648
38679
  let o = 0, i3 = null;
38649
38680
  const s = [];
38650
38681
  for (let c3 = 0, d = e * n; c3 < d; c3++) r[c3] = 0;
@@ -38691,9 +38722,9 @@ Actual: ` + p3.attribValue
38691
38722
  let l = false;
38692
38723
  for (let c3 = 0; !l && c3 < s.length; c3 += 2)
38693
38724
  s[c3] != null && s[c3 + 1] < n && (l = true);
38694
- return l && u0(a, s, t), a;
38725
+ return l && p0(a, s, t), a;
38695
38726
  }
38696
- function d0(t) {
38727
+ function f0(t) {
38697
38728
  let e = -1, n = false;
38698
38729
  for (let r = 0; r < t.childCount; r++) {
38699
38730
  const o = t.child(r);
@@ -38714,7 +38745,7 @@ Actual: ` + p3.attribValue
38714
38745
  }
38715
38746
  return e;
38716
38747
  }
38717
- function u0(t, e, n) {
38748
+ function p0(t, e, n) {
38718
38749
  t.problems || (t.problems = []);
38719
38750
  const r = {};
38720
38751
  for (let o = 0; o < t.map.length; o++) {
@@ -38728,7 +38759,7 @@ Actual: ` + p3.attribValue
38728
38759
  const l = s.attrs;
38729
38760
  for (let c3 = 0; c3 < l.colspan; c3++) {
38730
38761
  const d = (o + c3) % t.width, u = e[d * 2];
38731
- u != null && (!l.colwidth || l.colwidth[c3] != u) && ((a || (a = f0(l)))[c3] = u);
38762
+ u != null && (!l.colwidth || l.colwidth[c3] != u) && ((a || (a = h0(l)))[c3] = u);
38732
38763
  }
38733
38764
  a && t.problems.unshift({
38734
38765
  type: "colwidth mismatch",
@@ -38737,7 +38768,7 @@ Actual: ` + p3.attribValue
38737
38768
  });
38738
38769
  }
38739
38770
  }
38740
- function f0(t) {
38771
+ function h0(t) {
38741
38772
  if (t.colwidth) return t.colwidth.slice();
38742
38773
  const e = [];
38743
38774
  for (let n = 0; n < t.colspan; n++) e.push(0);
@@ -38761,7 +38792,7 @@ Actual: ` + p3.attribValue
38761
38792
  return t.node(0).resolve(t.before(e + 1));
38762
38793
  return null;
38763
38794
  }
38764
- function p0(t) {
38795
+ function m0(t) {
38765
38796
  for (let e = t.depth; e > 0; e--) {
38766
38797
  const n = t.node(e).type.spec.tableRole;
38767
38798
  if (n === "cell" || n === "header_cell") return t.node(e);
@@ -38780,12 +38811,12 @@ Actual: ` + p3.attribValue
38780
38811
  return e.$anchorCell.pos > e.$headCell.pos ? e.$anchorCell : e.$headCell;
38781
38812
  if ("node" in e && e.node && e.node.type.spec.tableRole == "cell")
38782
38813
  return e.$anchor;
38783
- const n = $n$2(e.$head) || h0(e.$head);
38814
+ const n = $n$2(e.$head) || g0(e.$head);
38784
38815
  if (n)
38785
38816
  return n;
38786
38817
  throw new RangeError(`No cell found around position ${e.head}`);
38787
38818
  }
38788
- function h0(t) {
38819
+ function g0(t) {
38789
38820
  for (let e = t.nodeAfter, n = t.pos; e; e = e.firstChild, n++) {
38790
38821
  const r = e.type.spec.tableRole;
38791
38822
  if (r == "cell" || r == "header_cell") return t.doc.resolve(n);
@@ -38799,7 +38830,7 @@ Actual: ` + p3.attribValue
38799
38830
  function is$1(t) {
38800
38831
  return t.parent.type.spec.tableRole == "row" && !!t.nodeAfter;
38801
38832
  }
38802
- function m0(t) {
38833
+ function y0(t) {
38803
38834
  return t.node(0).resolve(t.pos + t.nodeAfter.nodeSize);
38804
38835
  }
38805
38836
  function Hs(t, e) {
@@ -38809,7 +38840,7 @@ Actual: ` + p3.attribValue
38809
38840
  const r = t.node(-1), o = oe$1.get(r), i3 = t.start(-1), s = o.nextCell(t.pos - i3, e, n);
38810
38841
  return s == null ? null : t.node(0).resolve(i3 + s);
38811
38842
  }
38812
- function cn$2(t, e, n = 1) {
38843
+ function dn$2(t, e, n = 1) {
38813
38844
  const r = { ...t, colspan: t.colspan - n };
38814
38845
  return r.colwidth && (r.colwidth = r.colwidth.slice(), r.colwidth.splice(e, n), r.colwidth.some((o) => o > 0) || (r.colwidth = null)), r;
38815
38846
  }
@@ -38821,7 +38852,7 @@ Actual: ` + p3.attribValue
38821
38852
  }
38822
38853
  return r;
38823
38854
  }
38824
- function g0(t, e, n) {
38855
+ function b0(t, e, n) {
38825
38856
  const r = we(e.type.schema).header_cell;
38826
38857
  for (let o = 0; o < t.height; o++)
38827
38858
  if (e.nodeAt(t.map[n + o * t.width]).type != r)
@@ -38879,7 +38910,7 @@ Actual: ` + p3.attribValue
38879
38910
  const m = o.left - p3.left, g = p3.right - o.right;
38880
38911
  if (m > 0 || g > 0) {
38881
38912
  let b = h3.attrs;
38882
- if (m > 0 && (b = cn$2(b, 0, m)), g > 0 && (b = cn$2(
38913
+ if (m > 0 && (b = dn$2(b, 0, m)), g > 0 && (b = dn$2(
38883
38914
  b,
38884
38915
  b.colspan - g,
38885
38916
  g
@@ -38989,12 +39020,12 @@ Actual: ` + p3.attribValue
38989
39020
  return new ht2(e.resolve(n), e.resolve(r));
38990
39021
  }
38991
39022
  getBookmark() {
38992
- return new y0(this.$anchorCell.pos, this.$headCell.pos);
39023
+ return new w0(this.$anchorCell.pos, this.$headCell.pos);
38993
39024
  }
38994
39025
  };
38995
39026
  X$1.prototype.visible = false;
38996
39027
  ve$1.jsonID("cell", X$1);
38997
- var y0 = class fu2 {
39028
+ var w0 = class fu2 {
38998
39029
  constructor(e, n) {
38999
39030
  this.anchor = e, this.head = n;
39000
39031
  }
@@ -39006,7 +39037,7 @@ Actual: ` + p3.attribValue
39006
39037
  return n.parent.type.spec.tableRole == "row" && r.parent.type.spec.tableRole == "row" && n.index() < n.parent.childCount && r.index() < r.parent.childCount && Hs(n, r) ? new X$1(n, r) : ve$1.near(r, 1);
39007
39038
  }
39008
39039
  };
39009
- function b0(t) {
39040
+ function v0(t) {
39010
39041
  if (!(t.selection instanceof X$1)) return null;
39011
39042
  const e = [];
39012
39043
  return t.selection.forEachCell((n, r) => {
@@ -39015,7 +39046,7 @@ Actual: ` + p3.attribValue
39015
39046
  );
39016
39047
  }), F.create(t.doc, e);
39017
39048
  }
39018
- function w0({ $from: t, $to: e }) {
39049
+ function k0({ $from: t, $to: e }) {
39019
39050
  if (t.pos == e.pos || t.pos < e.pos - 6) return false;
39020
39051
  let n = t.pos, r = e.pos, o = t.depth;
39021
39052
  for (; o >= 0 && !(t.after(o + 1) < t.end(o)); o--, n++)
@@ -39024,7 +39055,7 @@ Actual: ` + p3.attribValue
39024
39055
  ;
39025
39056
  return n == r && /row|table/.test(t.node(o).type.spec.tableRole);
39026
39057
  }
39027
- function v0({ $from: t, $to: e }) {
39058
+ function C0({ $from: t, $to: e }) {
39028
39059
  let n, r;
39029
39060
  for (let o = t.depth; o > 0; o--) {
39030
39061
  const i3 = t.node(o);
@@ -39042,7 +39073,7 @@ Actual: ` + p3.attribValue
39042
39073
  }
39043
39074
  return n !== r && e.parentOffset === 0;
39044
39075
  }
39045
- function k0(t, e, n) {
39076
+ function S0(t, e, n) {
39046
39077
  const r = (e || t).selection, o = (e || t).doc;
39047
39078
  let i3, s;
39048
39079
  if (r instanceof Ge$1 && (s = r.node.type.spec.tableRole)) {
@@ -39055,10 +39086,10 @@ Actual: ` + p3.attribValue
39055
39086
  const a = oe$1.get(r.node), l = r.from + 1, c3 = l + a.map[a.width * a.height - 1];
39056
39087
  i3 = X$1.create(o, l + 1, c3);
39057
39088
  }
39058
- } else r instanceof tt$3 && w0(r) ? i3 = tt$3.create(o, r.from) : r instanceof tt$3 && v0(r) && (i3 = tt$3.create(o, r.$from.start(), r.$from.end()));
39089
+ } else r instanceof tt$3 && k0(r) ? i3 = tt$3.create(o, r.from) : r instanceof tt$3 && C0(r) && (i3 = tt$3.create(o, r.$from.start(), r.$from.end()));
39059
39090
  return i3 && (e || (e = t.tr)).setSelection(i3), e;
39060
39091
  }
39061
- var C0 = new Cp$2("fix-tables");
39092
+ var x0 = new Cp$2("fix-tables");
39062
39093
  function pu$1(t, e, n, r) {
39063
39094
  const o = t.childCount, i3 = e.childCount;
39064
39095
  e: for (let s = 0, a = 0; s < i3; s++) {
@@ -39074,11 +39105,11 @@ Actual: ` + p3.attribValue
39074
39105
  function hu$1(t, e) {
39075
39106
  let n;
39076
39107
  const r = (o, i3) => {
39077
- o.type.spec.tableRole == "table" && (n = S0(t, o, i3, n));
39108
+ o.type.spec.tableRole == "table" && (n = M0(t, o, i3, n));
39078
39109
  };
39079
39110
  return e ? e.doc != t.doc && pu$1(e.doc, t.doc, 0, r) : t.doc.descendants(r), n;
39080
39111
  }
39081
- function S0(t, e, n, r) {
39112
+ function M0(t, e, n, r) {
39082
39113
  const o = oe$1.get(e);
39083
39114
  if (!o.problems) return r;
39084
39115
  r || (r = t.tr);
@@ -39094,7 +39125,7 @@ Actual: ` + p3.attribValue
39094
39125
  r.setNodeMarkup(
39095
39126
  r.mapping.map(n + 1 + c3.pos),
39096
39127
  null,
39097
- cn$2(u, u.colspan - c3.n, c3.n)
39128
+ dn$2(u, u.colspan - c3.n, c3.n)
39098
39129
  );
39099
39130
  } else if (c3.type == "missing")
39100
39131
  i3[c3.row] += c3.n;
@@ -39135,7 +39166,7 @@ Actual: ` + p3.attribValue
39135
39166
  }
39136
39167
  c3 = u;
39137
39168
  }
39138
- return r.setMeta(C0, { fixTables: true });
39169
+ return r.setMeta(x0, { fixTables: true });
39139
39170
  }
39140
39171
  function at$1(t) {
39141
39172
  const e = t.selection, n = zo$1(t), r = n.node(-1), o = n.start(-1), i3 = oe$1.get(r);
@@ -39146,7 +39177,7 @@ Actual: ` + p3.attribValue
39146
39177
  }
39147
39178
  function mu$1(t, { map: e, tableStart: n, table: r }, o) {
39148
39179
  let i3 = o > 0 ? -1 : 0;
39149
- g0(e, r, o + i3) && (i3 = o == 0 || o == e.width ? null : 0);
39180
+ b0(e, r, o + i3) && (i3 = o == 0 || o == e.width ? null : 0);
39150
39181
  for (let s = 0; s < e.height; s++) {
39151
39182
  const a = s * e.width + o;
39152
39183
  if (o > 0 && o < e.width && e.map[a - 1] == e.map[a]) {
@@ -39163,7 +39194,7 @@ Actual: ` + p3.attribValue
39163
39194
  }
39164
39195
  return t;
39165
39196
  }
39166
- function x0(t, e) {
39197
+ function A0(t, e) {
39167
39198
  if (!Ye$2(t)) return false;
39168
39199
  if (e) {
39169
39200
  const n = at$1(t);
@@ -39171,7 +39202,7 @@ Actual: ` + p3.attribValue
39171
39202
  }
39172
39203
  return true;
39173
39204
  }
39174
- function M0(t, e) {
39205
+ function O0(t, e) {
39175
39206
  if (!Ye$2(t)) return false;
39176
39207
  if (e) {
39177
39208
  const n = at$1(t);
@@ -39179,7 +39210,7 @@ Actual: ` + p3.attribValue
39179
39210
  }
39180
39211
  return true;
39181
39212
  }
39182
- function A0(t, { map: e, table: n, tableStart: r }, o) {
39213
+ function T0(t, { map: e, table: n, tableStart: r }, o) {
39183
39214
  const i3 = t.mapping.maps.length;
39184
39215
  for (let s = 0; s < e.height; ) {
39185
39216
  const a = s * e.width + o, l = e.map[a], c3 = n.nodeAt(l), d = c3.attrs;
@@ -39187,7 +39218,7 @@ Actual: ` + p3.attribValue
39187
39218
  t.setNodeMarkup(
39188
39219
  t.mapping.slice(i3).map(r + l),
39189
39220
  null,
39190
- cn$2(d, o - e.colCount(l))
39221
+ dn$2(d, o - e.colCount(l))
39191
39222
  );
39192
39223
  else {
39193
39224
  const u = t.mapping.slice(i3).map(r + l);
@@ -39196,12 +39227,12 @@ Actual: ` + p3.attribValue
39196
39227
  s += d.rowspan;
39197
39228
  }
39198
39229
  }
39199
- function O0(t, e) {
39230
+ function D0(t, e) {
39200
39231
  if (!Ye$2(t)) return false;
39201
39232
  if (e) {
39202
39233
  const n = at$1(t), r = t.tr;
39203
39234
  if (n.left == 0 && n.right == n.map.width) return false;
39204
- for (let o = n.right - 1; A0(r, n, o), o != n.left; o--) {
39235
+ for (let o = n.right - 1; T0(r, n, o), o != n.left; o--) {
39205
39236
  const i3 = n.tableStart ? r.doc.nodeAt(n.tableStart - 1) : r.doc;
39206
39237
  if (!i3)
39207
39238
  throw RangeError("No table found");
@@ -39211,7 +39242,7 @@ Actual: ` + p3.attribValue
39211
39242
  }
39212
39243
  return true;
39213
39244
  }
39214
- function T0(t, e, n) {
39245
+ function N0(t, e, n) {
39215
39246
  var r;
39216
39247
  const o = we(e.type.schema).header_cell;
39217
39248
  for (let i3 = 0; i3 < t.width; i3++)
@@ -39225,7 +39256,7 @@ Actual: ` + p3.attribValue
39225
39256
  for (let c3 = 0; c3 < o; c3++) s += r.child(c3).nodeSize;
39226
39257
  const a = [];
39227
39258
  let l = o > 0 ? -1 : 0;
39228
- T0(e, r, o + l) && (l = o == 0 || o == e.height ? null : 0);
39259
+ N0(e, r, o + l) && (l = o == 0 || o == e.height ? null : 0);
39229
39260
  for (let c3 = 0, d = e.width * o; c3 < e.width; c3++, d++)
39230
39261
  if (o > 0 && o < e.height && e.map[d] == e.map[d - e.width]) {
39231
39262
  const u = e.map[d], f3 = r.nodeAt(u).attrs;
@@ -39239,7 +39270,7 @@ Actual: ` + p3.attribValue
39239
39270
  }
39240
39271
  return t.insert(s, we(r.type.schema).row.create(null, a)), t;
39241
39272
  }
39242
- function D0(t, e) {
39273
+ function E0(t, e) {
39243
39274
  if (!Ye$2(t)) return false;
39244
39275
  if (e) {
39245
39276
  const n = at$1(t);
@@ -39247,7 +39278,7 @@ Actual: ` + p3.attribValue
39247
39278
  }
39248
39279
  return true;
39249
39280
  }
39250
- function N0(t, e) {
39281
+ function I0(t, e) {
39251
39282
  if (!Ye$2(t)) return false;
39252
39283
  if (e) {
39253
39284
  const n = at$1(t);
@@ -39255,7 +39286,7 @@ Actual: ` + p3.attribValue
39255
39286
  }
39256
39287
  return true;
39257
39288
  }
39258
- function E0(t, { map: e, table: n, tableStart: r }, o) {
39289
+ function P0(t, { map: e, table: n, tableStart: r }, o) {
39259
39290
  let i3 = 0;
39260
39291
  for (let c3 = 0; c3 < o; c3++) i3 += n.child(c3).nodeSize;
39261
39292
  const s = i3 + n.child(o).nodeSize, a = t.mapping.maps.length;
@@ -39280,12 +39311,12 @@ Actual: ` + p3.attribValue
39280
39311
  }
39281
39312
  }
39282
39313
  }
39283
- function I0(t, e) {
39314
+ function R0(t, e) {
39284
39315
  if (!Ye$2(t)) return false;
39285
39316
  if (e) {
39286
39317
  const n = at$1(t), r = t.tr;
39287
39318
  if (n.top == 0 && n.bottom == n.map.height) return false;
39288
- for (let o = n.bottom - 1; E0(r, n, o), o != n.top; o--) {
39319
+ for (let o = n.bottom - 1; P0(r, n, o), o != n.top; o--) {
39289
39320
  const i3 = n.tableStart ? r.doc.nodeAt(n.tableStart - 1) : r.doc;
39290
39321
  if (!i3)
39291
39322
  throw RangeError("No table found");
@@ -39299,7 +39330,7 @@ Actual: ` + p3.attribValue
39299
39330
  const e = t.content;
39300
39331
  return e.childCount == 1 && e.child(0).isTextblock && e.child(0).childCount == 0;
39301
39332
  }
39302
- function P0({ width: t, height: e, map: n }, r) {
39333
+ function L0({ width: t, height: e, map: n }, r) {
39303
39334
  let o = r.top * t + r.left, i3 = o, s = (r.bottom - 1) * t + r.left, a = o + (r.right - r.left - 1);
39304
39335
  for (let l = r.top; l < r.bottom; l++) {
39305
39336
  if (r.left > 0 && n[i3] == n[i3 - 1] || r.right < t && n[a] == n[a + 1])
@@ -39318,7 +39349,7 @@ Actual: ` + p3.attribValue
39318
39349
  if (!(n instanceof X$1) || n.$anchorCell.pos == n.$headCell.pos)
39319
39350
  return false;
39320
39351
  const r = at$1(t), { map: o } = r;
39321
- if (P0(o, r)) return false;
39352
+ if (L0(o, r)) return false;
39322
39353
  if (e) {
39323
39354
  const i3 = t.tr, s = {};
39324
39355
  let a = Q$2.empty, l, c3;
@@ -39355,9 +39386,9 @@ Actual: ` + p3.attribValue
39355
39386
  }
39356
39387
  function gl$1(t, e) {
39357
39388
  const n = we(t.schema);
39358
- return R0(({ node: r }) => n[r.type.spec.tableRole])(t, e);
39389
+ return F0(({ node: r }) => n[r.type.spec.tableRole])(t, e);
39359
39390
  }
39360
- function R0(t) {
39391
+ function F0(t) {
39361
39392
  return (e, n) => {
39362
39393
  var r;
39363
39394
  const o = e.selection;
@@ -39366,7 +39397,7 @@ Actual: ` + p3.attribValue
39366
39397
  if (o.$anchorCell.pos != o.$headCell.pos) return false;
39367
39398
  i3 = o.$anchorCell.nodeAfter, s = o.$anchorCell.pos;
39368
39399
  } else {
39369
- if (i3 = p0(o.$from), !i3) return false;
39400
+ if (i3 = m0(o.$from), !i3) return false;
39370
39401
  s = (r = $n$2(o.$from)) == null ? void 0 : r.pos;
39371
39402
  }
39372
39403
  if (i3 == null || s == null || i3.attrs.colspan == 1 && i3.attrs.rowspan == 1)
@@ -39407,7 +39438,7 @@ Actual: ` + p3.attribValue
39407
39438
  return true;
39408
39439
  };
39409
39440
  }
39410
- function L0(t, e) {
39441
+ function B0(t, e) {
39411
39442
  return function(n, r) {
39412
39443
  if (!Ye$2(n)) return false;
39413
39444
  const o = zo$1(n);
@@ -39427,7 +39458,7 @@ Actual: ` + p3.attribValue
39427
39458
  return true;
39428
39459
  };
39429
39460
  }
39430
- function F0(t) {
39461
+ function z0(t) {
39431
39462
  return function(e, n) {
39432
39463
  if (!Ye$2(e)) return false;
39433
39464
  if (n) {
@@ -39477,7 +39508,7 @@ Actual: ` + p3.attribValue
39477
39508
  return true;
39478
39509
  }
39479
39510
  function vr$1(t, e) {
39480
- return e = e || { useDeprecatedLogic: false }, e.useDeprecatedLogic ? F0(t) : function(n, r) {
39511
+ return e = e || { useDeprecatedLogic: false }, e.useDeprecatedLogic ? z0(t) : function(n, r) {
39481
39512
  if (!Ye$2(n)) return false;
39482
39513
  if (r) {
39483
39514
  const o = we(n.schema), i3 = at$1(n), s = n.tr, a = yl$1("row", i3, o), l = yl$1(
@@ -39509,10 +39540,10 @@ Actual: ` + p3.attribValue
39509
39540
  vr$1("column", {
39510
39541
  useDeprecatedLogic: true
39511
39542
  });
39512
- var B0 = vr$1("cell", {
39543
+ var _0 = vr$1("cell", {
39513
39544
  useDeprecatedLogic: true
39514
39545
  });
39515
- function z0(t, e) {
39546
+ function V0(t, e) {
39516
39547
  if (e < 0) {
39517
39548
  const n = t.nodeBefore;
39518
39549
  if (n) return t.pos - n.nodeSize;
@@ -39537,18 +39568,18 @@ Actual: ` + p3.attribValue
39537
39568
  function bl$1(t) {
39538
39569
  return function(e, n) {
39539
39570
  if (!Ye$2(e)) return false;
39540
- const r = z0(zo$1(e), t);
39571
+ const r = V0(zo$1(e), t);
39541
39572
  if (r == null) return false;
39542
39573
  if (n) {
39543
39574
  const o = e.doc.resolve(r);
39544
39575
  n(
39545
- e.tr.setSelection(tt$3.between(o, m0(o))).scrollIntoView()
39576
+ e.tr.setSelection(tt$3.between(o, y0(o))).scrollIntoView()
39546
39577
  );
39547
39578
  }
39548
39579
  return true;
39549
39580
  };
39550
39581
  }
39551
- function _0(t, e) {
39582
+ function $0(t, e) {
39552
39583
  const n = t.selection.$anchor;
39553
39584
  for (let r = n.depth; r > 0; r--)
39554
39585
  if (n.node(r).type.spec.tableRole == "table")
@@ -39572,7 +39603,7 @@ Actual: ` + p3.attribValue
39572
39603
  }
39573
39604
  return true;
39574
39605
  }
39575
- function V0(t) {
39606
+ function H0(t) {
39576
39607
  if (!t.size) return null;
39577
39608
  let { content: e, openStart: n, openEnd: r } = t;
39578
39609
  for (; e.childCount == 1 && (n > 0 && r > 0 || e.child(0).type.spec.tableRole == "table"); )
@@ -39596,9 +39627,9 @@ Actual: ` + p3.attribValue
39596
39627
  );
39597
39628
  else
39598
39629
  return null;
39599
- return $0(s, a);
39630
+ return j0(s, a);
39600
39631
  }
39601
- function $0(t, e) {
39632
+ function j0(t, e) {
39602
39633
  const n = [];
39603
39634
  for (let o = 0; o < e.length; o++) {
39604
39635
  const i3 = e[o];
@@ -39623,7 +39654,7 @@ Actual: ` + p3.attribValue
39623
39654
  const n = t.createAndFill();
39624
39655
  return new Sf$1(n).replace(0, n.content.size, e).doc;
39625
39656
  }
39626
- function H0({ width: t, height: e, rows: n }, r, o) {
39657
+ function W0({ width: t, height: e, rows: n }, r, o) {
39627
39658
  if (t != r) {
39628
39659
  const i3 = [], s = [];
39629
39660
  for (let a = 0; a < n.length; a++) {
@@ -39631,7 +39662,7 @@ Actual: ` + p3.attribValue
39631
39662
  for (let d = i3[a] || 0, u = 0; d < r; u++) {
39632
39663
  let f3 = l.child(u % l.childCount);
39633
39664
  d + f3.attrs.colspan > r && (f3 = f3.type.createChecked(
39634
- cn$2(
39665
+ dn$2(
39635
39666
  f3.attrs,
39636
39667
  f3.attrs.colspan,
39637
39668
  d + f3.attrs.colspan - r
@@ -39665,7 +39696,7 @@ Actual: ` + p3.attribValue
39665
39696
  }
39666
39697
  return { width: t, height: e, rows: n };
39667
39698
  }
39668
- function j0(t, e, n, r, o, i3, s) {
39699
+ function U0(t, e, n, r, o, i3, s) {
39669
39700
  const a = t.doc.type.schema, l = we(a);
39670
39701
  let c3, d;
39671
39702
  if (o > e.width)
@@ -39725,7 +39756,7 @@ Actual: ` + p3.attribValue
39725
39756
  t.setNodeMarkup(
39726
39757
  h3,
39727
39758
  null,
39728
- cn$2(
39759
+ dn$2(
39729
39760
  f3.attrs,
39730
39761
  s - p3,
39731
39762
  f3.attrs.colspan - (s - p3)
@@ -39733,7 +39764,7 @@ Actual: ` + p3.attribValue
39733
39764
  ), t.insert(
39734
39765
  h3 + f3.nodeSize,
39735
39766
  f3.type.createAndFill(
39736
- cn$2(f3.attrs, 0, s - p3)
39767
+ dn$2(f3.attrs, 0, s - p3)
39737
39768
  )
39738
39769
  ), c3 += f3.attrs.rowspan - 1;
39739
39770
  }
@@ -39752,7 +39783,7 @@ Actual: ` + p3.attribValue
39752
39783
  throw new Error("No table found");
39753
39784
  s = oe$1.get(i3), f3 = u.mapping.maps.length;
39754
39785
  }
39755
- j0(u, s, i3, n, c3, d, f3) && p3(), wl$1(u, s, i3, n, l, c3, a, f3) && p3(), wl$1(u, s, i3, n, l, c3, d, f3) && p3(), vl$1(u, s, i3, n, a, d, l, f3) && p3(), vl$1(u, s, i3, n, a, d, c3, f3) && p3();
39786
+ U0(u, s, i3, n, c3, d, f3) && p3(), wl$1(u, s, i3, n, l, c3, a, f3) && p3(), wl$1(u, s, i3, n, l, c3, d, f3) && p3(), vl$1(u, s, i3, n, a, d, l, f3) && p3(), vl$1(u, s, i3, n, a, d, c3, f3) && p3();
39756
39787
  for (let h3 = a; h3 < d; h3++) {
39757
39788
  const m = s.positionAt(h3, l, i3), g = s.positionAt(h3, c3, i3);
39758
39789
  u.replace(
@@ -39768,7 +39799,7 @@ Actual: ` + p3.attribValue
39768
39799
  )
39769
39800
  ), e(u);
39770
39801
  }
39771
- var W0 = Ns({
39802
+ var q0 = Ns({
39772
39803
  ArrowLeft: Yr$1("horiz", -1),
39773
39804
  ArrowRight: Yr$1("horiz", 1),
39774
39805
  ArrowUp: Yr$1("vert", -1),
@@ -39831,13 +39862,13 @@ Actual: ` + p3.attribValue
39831
39862
  ) : false;
39832
39863
  };
39833
39864
  }
39834
- function U0(t, e) {
39865
+ function K0(t, e) {
39835
39866
  const n = t.state.doc, r = $n$2(n.resolve(e));
39836
39867
  return r ? (t.dispatch(t.state.tr.setSelection(new X$1(r))), true) : false;
39837
39868
  }
39838
- function q0(t, e, n) {
39869
+ function X0(t, e, n) {
39839
39870
  if (!Ye$2(t.state)) return false;
39840
- let r = V0(n);
39871
+ let r = H0(n);
39841
39872
  const o = t.state.selection;
39842
39873
  if (o instanceof X$1) {
39843
39874
  r || (r = {
@@ -39853,7 +39884,7 @@ Actual: ` + p3.attribValue
39853
39884
  o.$anchorCell.pos - s,
39854
39885
  o.$headCell.pos - s
39855
39886
  );
39856
- return r = H0(r, a.right - a.left, a.bottom - a.top), kl$1(t.state, t.dispatch, s, a, r), true;
39887
+ return r = W0(r, a.right - a.left, a.bottom - a.top), kl$1(t.state, t.dispatch, s, a, r), true;
39857
39888
  } else if (r) {
39858
39889
  const i3 = zo$1(t.state), s = i3.start(-1);
39859
39890
  return kl$1(
@@ -39866,7 +39897,7 @@ Actual: ` + p3.attribValue
39866
39897
  } else
39867
39898
  return false;
39868
39899
  }
39869
- function K0(t, e) {
39900
+ function J0(t, e) {
39870
39901
  var n;
39871
39902
  if (e.ctrlKey || e.metaKey) return;
39872
39903
  const r = Cl$1(t, e.target);
@@ -39929,7 +39960,7 @@ Actual: ` + p3.attribValue
39929
39960
  });
39930
39961
  return n && n ? $n$2(t.state.doc.resolve(n.pos)) : null;
39931
39962
  }
39932
- var X0 = class {
39963
+ var Y0 = class {
39933
39964
  constructor(t, e) {
39934
39965
  this.node = t, this.defaultCellMinWidth = e, this.dom = document.createElement("div"), this.dom.className = "tableWrapper", this.table = this.dom.appendChild(document.createElement("table")), this.table.style.setProperty(
39935
39966
  "--default-cell-min-width",
@@ -39975,11 +40006,11 @@ Actual: ` + p3.attribValue
39975
40006
  var Ee$2 = new Cp$2(
39976
40007
  "tableColumnResizing"
39977
40008
  );
39978
- function J0({
40009
+ function G0({
39979
40010
  handleWidth: t = 5,
39980
40011
  cellMinWidth: e = 25,
39981
40012
  defaultCellMinWidth: n = 100,
39982
- View: r = X0,
40013
+ View: r = Y0,
39983
40014
  lastColumnResizable: o = true
39984
40015
  } = {}) {
39985
40016
  const i3 = new vp$2({
@@ -39988,7 +40019,7 @@ Actual: ` + p3.attribValue
39988
40019
  init(s, a) {
39989
40020
  var l, c3;
39990
40021
  const d = (c3 = (l = i3.spec) == null ? void 0 : l.props) == null ? void 0 : c3.nodeViews, u = we(a.schema).table.name;
39991
- return r && d && (d[u] = (f3, p3) => new r(f3, n, p3)), new Y0(-1, false);
40022
+ return r && d && (d[u] = (f3, p3) => new r(f3, n, p3)), new Z0(-1, false);
39992
40023
  },
39993
40024
  apply(s, a) {
39994
40025
  return a.apply(s);
@@ -40001,26 +40032,26 @@ Actual: ` + p3.attribValue
40001
40032
  },
40002
40033
  handleDOMEvents: {
40003
40034
  mousemove: (s, a) => {
40004
- G0(s, a, t, o);
40035
+ Q0(s, a, t, o);
40005
40036
  },
40006
40037
  mouseleave: (s) => {
40007
- Z0(s);
40038
+ ew(s);
40008
40039
  },
40009
40040
  mousedown: (s, a) => {
40010
- Q0(s, a, e, n);
40041
+ tw(s, a, e, n);
40011
40042
  }
40012
40043
  },
40013
40044
  decorations: (s) => {
40014
40045
  const a = Ee$2.getState(s);
40015
40046
  if (a && a.activeHandle > -1)
40016
- return ow(s, a.activeHandle);
40047
+ return sw(s, a.activeHandle);
40017
40048
  },
40018
40049
  nodeViews: {}
40019
40050
  }
40020
40051
  });
40021
40052
  return i3;
40022
40053
  }
40023
- var Y0 = class ao2 {
40054
+ var Z0 = class ao2 {
40024
40055
  constructor(e, n) {
40025
40056
  this.activeHandle = e, this.dragging = n;
40026
40057
  }
@@ -40037,11 +40068,11 @@ Actual: ` + p3.attribValue
40037
40068
  return n;
40038
40069
  }
40039
40070
  };
40040
- function G0(t, e, n, r) {
40071
+ function Q0(t, e, n, r) {
40041
40072
  if (!t.editable) return;
40042
40073
  const o = Ee$2.getState(t.state);
40043
40074
  if (o && !o.dragging) {
40044
- const i3 = tw(e.target);
40075
+ const i3 = rw(e.target);
40045
40076
  let s = -1;
40046
40077
  if (i3) {
40047
40078
  const { left: a, right: l } = i3.getBoundingClientRect();
@@ -40057,18 +40088,18 @@ Actual: ` + p3.attribValue
40057
40088
  }
40058
40089
  }
40059
40090
  }
40060
- function Z0(t) {
40091
+ function ew(t) {
40061
40092
  if (!t.editable) return;
40062
40093
  const e = Ee$2.getState(t.state);
40063
40094
  e && e.activeHandle > -1 && !e.dragging && bu$1(t, -1);
40064
40095
  }
40065
- function Q0(t, e, n, r) {
40096
+ function tw(t, e, n, r) {
40066
40097
  var o;
40067
40098
  if (!t.editable) return false;
40068
40099
  const i3 = (o = t.dom.ownerDocument.defaultView) != null ? o : window, s = Ee$2.getState(t.state);
40069
40100
  if (!s || s.activeHandle == -1 || s.dragging)
40070
40101
  return false;
40071
- const a = t.state.doc.nodeAt(s.activeHandle), l = ew(t, s.activeHandle, a.attrs);
40102
+ const a = t.state.doc.nodeAt(s.activeHandle), l = nw(t, s.activeHandle, a.attrs);
40072
40103
  t.dispatch(
40073
40104
  t.state.tr.setMeta(Ee$2, {
40074
40105
  setDragging: { startX: e.clientX, startWidth: l }
@@ -40077,7 +40108,7 @@ Actual: ` + p3.attribValue
40077
40108
  function c3(u) {
40078
40109
  i3.removeEventListener("mouseup", c3), i3.removeEventListener("mousemove", d);
40079
40110
  const f3 = Ee$2.getState(t.state);
40080
- f3?.dragging && (nw(
40111
+ f3?.dragging && (ow(
40081
40112
  t,
40082
40113
  f3.activeHandle,
40083
40114
  xl$1(f3.dragging, u, n)
@@ -40105,7 +40136,7 @@ Actual: ` + p3.attribValue
40105
40136
  r
40106
40137
  ), i3.addEventListener("mouseup", c3), i3.addEventListener("mousemove", d), e.preventDefault(), true;
40107
40138
  }
40108
- function ew(t, e, { colspan: n, colwidth: r }) {
40139
+ function nw(t, e, { colspan: n, colwidth: r }) {
40109
40140
  const o = r && r[r.length - 1];
40110
40141
  if (o) return o;
40111
40142
  const i3 = t.domAtPos(e);
@@ -40115,7 +40146,7 @@ Actual: ` + p3.attribValue
40115
40146
  r[c3] && (a -= r[c3], l--);
40116
40147
  return a / l;
40117
40148
  }
40118
- function tw(t) {
40149
+ function rw(t) {
40119
40150
  for (; t && t.nodeName != "TD" && t.nodeName != "TH"; )
40120
40151
  t = t.classList && t.classList.contains("ProseMirror") ? null : t.parentNode;
40121
40152
  return t;
@@ -40141,14 +40172,14 @@ Actual: ` + p3.attribValue
40141
40172
  t.state.tr.setMeta(Ee$2, { setHandle: e })
40142
40173
  );
40143
40174
  }
40144
- function nw(t, e, n) {
40175
+ function ow(t, e, n) {
40145
40176
  const r = t.state.doc.resolve(e), o = r.node(-1), i3 = oe$1.get(o), s = r.start(-1), a = i3.colCount(r.pos - s) + r.nodeAfter.attrs.colspan - 1, l = t.state.tr;
40146
40177
  for (let c3 = 0; c3 < i3.height; c3++) {
40147
40178
  const d = c3 * i3.width + a;
40148
40179
  if (c3 && i3.map[d] == i3.map[d - i3.width]) continue;
40149
40180
  const u = i3.map[d], f3 = o.nodeAt(u).attrs, p3 = f3.colspan == 1 ? 0 : a - i3.colCount(u);
40150
40181
  if (f3.colwidth && f3.colwidth[p3] == n) continue;
40151
- const h3 = f3.colwidth ? f3.colwidth.slice() : rw(f3.colspan);
40182
+ const h3 = f3.colwidth ? f3.colwidth.slice() : iw(f3.colspan);
40152
40183
  h3[p3] = n, l.setNodeMarkup(s + u, null, { ...f3, colwidth: h3 });
40153
40184
  }
40154
40185
  l.docChanged && t.dispatch(l);
@@ -40167,10 +40198,10 @@ Actual: ` + p3.attribValue
40167
40198
  n
40168
40199
  );
40169
40200
  }
40170
- function rw(t) {
40201
+ function iw(t) {
40171
40202
  return Array(t).fill(0);
40172
40203
  }
40173
- function ow(t, e) {
40204
+ function sw(t, e) {
40174
40205
  var n;
40175
40206
  const r = [], o = t.doc.resolve(e), i3 = o.node(-1);
40176
40207
  if (!i3)
@@ -40193,7 +40224,7 @@ Actual: ` + p3.attribValue
40193
40224
  }
40194
40225
  return F.create(t.doc, r);
40195
40226
  }
40196
- function iw({
40227
+ function aw({
40197
40228
  allowTableNodeSelection: t = false
40198
40229
  } = {}) {
40199
40230
  return new vp$2({
@@ -40214,19 +40245,19 @@ Actual: ` + p3.attribValue
40214
40245
  }
40215
40246
  },
40216
40247
  props: {
40217
- decorations: b0,
40248
+ decorations: v0,
40218
40249
  handleDOMEvents: {
40219
- mousedown: K0
40250
+ mousedown: J0
40220
40251
  },
40221
40252
  createSelectionBetween(e) {
40222
40253
  return Et.getState(e.state) != null ? e.state.selection : null;
40223
40254
  },
40224
- handleTripleClick: U0,
40225
- handleKeyDown: W0,
40226
- handlePaste: q0
40255
+ handleTripleClick: K0,
40256
+ handleKeyDown: q0,
40257
+ handlePaste: X0
40227
40258
  },
40228
40259
  appendTransaction(e, n, r) {
40229
- return k0(
40260
+ return S0(
40230
40261
  r,
40231
40262
  hu$1(r, n),
40232
40263
  t
@@ -40234,9 +40265,9 @@ Actual: ` + p3.attribValue
40234
40265
  }
40235
40266
  });
40236
40267
  }
40237
- const sw = (t) => t instanceof X$1, Zr$1 = ({ editor: t }) => {
40268
+ const lw = (t) => t instanceof X$1, Zr$1 = ({ editor: t }) => {
40238
40269
  const { selection: e } = t.state;
40239
- if (!sw(e)) return false;
40270
+ if (!lw(e)) return false;
40240
40271
  let n = 0;
40241
40272
  return Bo$1(e.ranges[0].$from, (i3) => i3.type.name === "table")?.node.descendants((i3) => {
40242
40273
  if (i3.type.name === "table") return false;
@@ -40338,27 +40369,27 @@ Actual: ` + p3.attribValue
40338
40369
  addCommands() {
40339
40370
  return {
40340
40371
  insertTable: ({ rows: t = 3, cols: e = 3, withHeaderRow: n = false } = {}) => ({ tr: r, dispatch: o, editor: i3 }) => {
40341
- const s = l0(i3.schema, t, e, n);
40372
+ const s = d0(i3.schema, t, e, n);
40342
40373
  if (o) {
40343
40374
  const a = r.selection.from + 1;
40344
40375
  r.replaceSelectionWith(s).scrollIntoView().setSelection(tt$3.near(r.doc.resolve(a)));
40345
40376
  }
40346
40377
  return true;
40347
40378
  },
40348
- deleteTable: () => ({ state: t, dispatch: e }) => _0(t, e),
40349
- addColumnBefore: () => ({ state: t, dispatch: e }) => x0(t, e),
40350
- addColumnAfter: () => ({ state: t, dispatch: e }) => M0(t, e),
40351
- deleteColumn: () => ({ state: t, dispatch: e }) => O0(t, e),
40352
- addRowBefore: () => ({ state: t, dispatch: e }) => D0(t, e),
40353
- addRowAfter: () => ({ state: t, dispatch: e }) => N0(t, e),
40354
- deleteRow: () => ({ state: t, dispatch: e }) => I0(t, e),
40379
+ deleteTable: () => ({ state: t, dispatch: e }) => $0(t, e),
40380
+ addColumnBefore: () => ({ state: t, dispatch: e }) => A0(t, e),
40381
+ addColumnAfter: () => ({ state: t, dispatch: e }) => O0(t, e),
40382
+ deleteColumn: () => ({ state: t, dispatch: e }) => D0(t, e),
40383
+ addRowBefore: () => ({ state: t, dispatch: e }) => E0(t, e),
40384
+ addRowAfter: () => ({ state: t, dispatch: e }) => I0(t, e),
40385
+ deleteRow: () => ({ state: t, dispatch: e }) => R0(t, e),
40355
40386
  mergeCells: () => ({ state: t, dispatch: e }) => ml$1(t, e),
40356
40387
  splitCell: () => ({ state: t, dispatch: e }) => gl$1(t, e),
40357
40388
  mergeOrSplit: () => ({ state: t, dispatch: e }) => ml$1(t, e) ? true : gl$1(t, e),
40358
40389
  toggleHeaderColumn: () => ({ state: t, dispatch: e }) => vr$1("column")(t, e),
40359
40390
  toggleHeaderRow: () => ({ state: t, dispatch: e }) => vr$1("row")(t, e),
40360
- toggleHeaderCell: () => ({ state: t, dispatch: e }) => B0(t, e),
40361
- setCellAttr: (t, e) => ({ state: n, dispatch: r }) => L0(t, e)(n, r),
40391
+ toggleHeaderCell: () => ({ state: t, dispatch: e }) => _0(t, e),
40392
+ setCellAttr: (t, e) => ({ state: n, dispatch: r }) => B0(t, e)(n, r),
40362
40393
  goToNextCell: () => ({ state: t, dispatch: e }) => bl$1(1)(t, e),
40363
40394
  goToPreviousCell: () => ({ state: t, dispatch: e }) => bl$1(-1)(t, e),
40364
40395
  fixTables: () => ({ state: t, dispatch: e }) => (e && hu$1(t), true),
@@ -40395,17 +40426,17 @@ Actual: ` + p3.attribValue
40395
40426
  addPmPlugins() {
40396
40427
  return [
40397
40428
  ...this.options.resizable && this.editor.isEditable ? [
40398
- J0({
40429
+ G0({
40399
40430
  handleWidth: this.options.handleWidth,
40400
40431
  cellMinWidth: this.options.cellMinWidth,
40401
40432
  defaultCellMinWidth: this.options.cellMinWidth,
40402
40433
  lastColumnResizable: this.options.lastColumnResizable,
40403
- View: a0({
40434
+ View: c0({
40404
40435
  editor: this.editor
40405
40436
  })
40406
40437
  })
40407
40438
  ] : [],
40408
- iw({
40439
+ aw({
40409
40440
  allowTableNodeSelection: this.options.allowTableNodeSelection
40410
40441
  })
40411
40442
  ];
@@ -40563,7 +40594,7 @@ Actual: ` + p3.attribValue
40563
40594
  }
40564
40595
  });
40565
40596
  var yt$1, Jt$1;
40566
- class aw {
40597
+ class cw {
40567
40598
  constructor(e) {
40568
40599
  ft(this, yt$1);
40569
40600
  P(this, "editor");
@@ -40730,11 +40761,11 @@ Actual: ` + p3.attribValue
40730
40761
  });
40731
40762
  }, 0);
40732
40763
  }
40733
- const { findChildren: lw } = Ad$1;
40764
+ const { findChildren: dw } = Ad$1;
40734
40765
  function Pt$1(t) {
40735
- return lw(t.doc, (n) => n.type.name === "fieldAnnotation");
40766
+ return dw(t.doc, (n) => n.type.name === "fieldAnnotation");
40736
40767
  }
40737
- const cw = (t = {}) => {
40768
+ const uw = (t = {}) => {
40738
40769
  let { editor: e, annotationClass: n } = t;
40739
40770
  return new vp$2({
40740
40771
  key: new Cp$2("fieldAnnotation"),
@@ -40752,7 +40783,7 @@ Actual: ` + p3.attribValue
40752
40783
  let a = o?.dataTransfer.getData("fieldAnnotation");
40753
40784
  if (a) {
40754
40785
  if (t.handleDropOutside)
40755
- dw({
40786
+ fw({
40756
40787
  fieldAnnotation: a,
40757
40788
  editor: e,
40758
40789
  view: r,
@@ -40809,7 +40840,7 @@ Actual: ` + p3.attribValue
40809
40840
  ///
40810
40841
  });
40811
40842
  };
40812
- function dw({ fieldAnnotation: t, editor: e, view: n, event: r }) {
40843
+ function fw({ fieldAnnotation: t, editor: e, view: n, event: r }) {
40813
40844
  let o;
40814
40845
  try {
40815
40846
  o = JSON.parse(t).sourceField;
@@ -40827,7 +40858,7 @@ Actual: ` + p3.attribValue
40827
40858
  pos: i3.pos
40828
40859
  });
40829
40860
  }
40830
- function uw(t, e) {
40861
+ function pw(t, e) {
40831
40862
  return Pt$1(e).map(({ node: r, pos: o }) => {
40832
40863
  let i3 = xd$1(t, o, o + r.nodeSize);
40833
40864
  return {
@@ -40837,23 +40868,23 @@ Actual: ` + p3.attribValue
40837
40868
  };
40838
40869
  });
40839
40870
  }
40840
- function fw(t, e) {
40871
+ function hw(t, e) {
40841
40872
  let n = Pt$1(e), r = [];
40842
40873
  return n.forEach((o) => {
40843
40874
  t(o.node) && r.push(o);
40844
40875
  }), r;
40845
40876
  }
40846
- const { findChildren: pw } = Ad$1;
40877
+ const { findChildren: mw } = Ad$1;
40847
40878
  function lo$2(t, e) {
40848
- return pw(e.doc, (r) => {
40879
+ return mw(e.doc, (r) => {
40849
40880
  let o = r.type.name === "fieldAnnotation";
40850
40881
  return Array.isArray(t) ? o && t.includes(r.attrs.fieldId) : o && r.attrs.fieldId === t;
40851
40882
  });
40852
40883
  }
40853
- function hw(t, e) {
40854
- return mw(e.doc, (r) => r.type.name === "fieldAnnotation" && r.attrs.fieldId === t);
40884
+ function gw(t, e) {
40885
+ return yw(e.doc, (r) => r.type.name === "fieldAnnotation" && r.attrs.fieldId === t);
40855
40886
  }
40856
- function mw(t, e) {
40887
+ function yw(t, e) {
40857
40888
  let n = null;
40858
40889
  return t.descendants((r, o) => {
40859
40890
  if (e(r) && (n = { node: r, pos: o }), n) return false;
@@ -40868,74 +40899,74 @@ Actual: ` + p3.attribValue
40868
40899
  });
40869
40900
  }), r;
40870
40901
  }
40871
- const qk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
40902
+ const Xk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
40872
40903
  __proto__: null,
40873
- findFieldAnnotations: fw,
40904
+ findFieldAnnotations: hw,
40874
40905
  findFieldAnnotationsBetween: co$2,
40875
40906
  findFieldAnnotationsByFieldId: lo$2,
40876
- findFirstFieldAnnotationByFieldId: hw,
40907
+ findFirstFieldAnnotationByFieldId: gw,
40877
40908
  findRemovedFieldAnnotations: xu$1,
40878
40909
  getAllFieldAnnotations: Pt$1,
40879
- getAllFieldAnnotationsWithRect: uw,
40910
+ getAllFieldAnnotationsWithRect: pw,
40880
40911
  trackFieldAnnotationsDeletion: Mu$1
40881
40912
  }, Symbol.toStringTag, { value: "Module" }));
40882
40913
  function ls$1(t, e, n) {
40883
40914
  return Math.min(Math.max(t, n), e);
40884
40915
  }
40885
- class gw extends Error {
40916
+ class bw extends Error {
40886
40917
  constructor(e) {
40887
40918
  super(`Failed to parse color: "${e}"`);
40888
40919
  }
40889
40920
  }
40890
- var Qn$2 = gw;
40891
- function yw(t) {
40921
+ var Qn$2 = bw;
40922
+ function ww(t) {
40892
40923
  if (typeof t != "string") throw new Qn$2(t);
40893
40924
  if (t.trim().toLowerCase() === "transparent") return [0, 0, 0, 0];
40894
40925
  let e = t.trim();
40895
- e = Mw.test(t) ? vw(t) : t;
40896
- const n = kw.exec(e);
40926
+ e = Ow.test(t) ? Cw(t) : t;
40927
+ const n = Sw.exec(e);
40897
40928
  if (n) {
40898
40929
  const s = Array.from(n).slice(1);
40899
40930
  return [...s.slice(0, 3).map((a) => parseInt(kr(a, 2), 16)), parseInt(kr(s[3] || "f", 2), 16) / 255];
40900
40931
  }
40901
- const r = Cw.exec(e);
40932
+ const r = xw.exec(e);
40902
40933
  if (r) {
40903
40934
  const s = Array.from(r).slice(1);
40904
40935
  return [...s.slice(0, 3).map((a) => parseInt(a, 16)), parseInt(s[3] || "ff", 16) / 255];
40905
40936
  }
40906
- const o = Sw.exec(e);
40937
+ const o = Mw.exec(e);
40907
40938
  if (o) {
40908
40939
  const s = Array.from(o).slice(1);
40909
40940
  return [...s.slice(0, 3).map((a) => parseInt(a, 10)), parseFloat(s[3] || "1")];
40910
40941
  }
40911
- const i3 = xw.exec(e);
40942
+ const i3 = Aw.exec(e);
40912
40943
  if (i3) {
40913
40944
  const [s, a, l, c3] = Array.from(i3).slice(1).map(parseFloat);
40914
40945
  if (ls$1(0, 100, a) !== a) throw new Qn$2(t);
40915
40946
  if (ls$1(0, 100, l) !== l) throw new Qn$2(t);
40916
- return [...Aw(s, a, l), Number.isNaN(c3) ? 1 : c3];
40947
+ return [...Tw(s, a, l), Number.isNaN(c3) ? 1 : c3];
40917
40948
  }
40918
40949
  throw new Qn$2(t);
40919
40950
  }
40920
- function bw(t) {
40951
+ function vw(t) {
40921
40952
  let e = 5381, n = t.length;
40922
40953
  for (; n; )
40923
40954
  e = e * 33 ^ t.charCodeAt(--n);
40924
40955
  return (e >>> 0) % 2341;
40925
40956
  }
40926
- const Al$1 = (t) => parseInt(t.replace(/_/g, ""), 36), ww = "1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((t, e) => {
40957
+ const Al$1 = (t) => parseInt(t.replace(/_/g, ""), 36), kw = "1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((t, e) => {
40927
40958
  const n = Al$1(e.substring(0, 3)), r = Al$1(e.substring(3)).toString(16);
40928
40959
  let o = "";
40929
40960
  for (let i3 = 0; i3 < 6 - r.length; i3++)
40930
40961
  o += "0";
40931
40962
  return t[n] = `${o}${r}`, t;
40932
40963
  }, {});
40933
- function vw(t) {
40934
- const e = t.toLowerCase().trim(), n = ww[bw(e)];
40964
+ function Cw(t) {
40965
+ const e = t.toLowerCase().trim(), n = kw[vw(e)];
40935
40966
  if (!n) throw new Qn$2(t);
40936
40967
  return `#${n}`;
40937
40968
  }
40938
- const kr = (t, e) => Array.from(Array(e)).map(() => t).join(""), kw = new RegExp(`^#${kr("([a-f0-9])", 3)}([a-f0-9])?$`, "i"), Cw = new RegExp(`^#${kr("([a-f0-9]{2})", 3)}([a-f0-9]{2})?$`, "i"), Sw = new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${kr(",\\s*(\\d+)\\s*", 2)}(?:,\\s*([\\d.]+))?\\s*\\)$`, "i"), xw = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i, Mw = /^[a-z]+$/i, Ol$1 = (t) => Math.round(t * 255), Aw = (t, e, n) => {
40969
+ const kr = (t, e) => Array.from(Array(e)).map(() => t).join(""), Sw = new RegExp(`^#${kr("([a-f0-9])", 3)}([a-f0-9])?$`, "i"), xw = new RegExp(`^#${kr("([a-f0-9]{2})", 3)}([a-f0-9]{2})?$`, "i"), Mw = new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${kr(",\\s*(\\d+)\\s*", 2)}(?:,\\s*([\\d.]+))?\\s*\\)$`, "i"), Aw = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i, Ow = /^[a-z]+$/i, Ol$1 = (t) => Math.round(t * 255), Tw = (t, e, n) => {
40939
40970
  let r = n / 100;
40940
40971
  if (e === 0)
40941
40972
  return [r, r, r].map(Ol$1);
@@ -40945,8 +40976,8 @@ Actual: ` + p3.attribValue
40945
40976
  const d = r - i3 / 2, u = a + d, f3 = l + d, p3 = c3 + d;
40946
40977
  return [u, f3, p3].map(Ol$1);
40947
40978
  };
40948
- function Ow(t) {
40949
- const [e, n, r, o] = yw(t);
40979
+ function Dw(t) {
40980
+ const [e, n, r, o] = ww(t);
40950
40981
  let i3 = (s) => {
40951
40982
  const a = ls$1(0, 255, s).toString(16);
40952
40983
  return a.length === 1 ? `0${a}` : a;
@@ -41036,7 +41067,7 @@ Actual: ` + p3.attribValue
41036
41067
  parseDOM: (t) => t.getAttribute("data-field-color") || t.style.backgroundColor || null,
41037
41068
  renderDOM: (t) => {
41038
41069
  if (!t.fieldColor) return {};
41039
- let e = Ow(t.fieldColor);
41070
+ let e = Dw(t.fieldColor);
41040
41071
  return e.slice(1).length === 6 && (e = `${e}33`), t.highlighted === false ? {
41041
41072
  "data-field-color": e
41042
41073
  } : {
@@ -41220,7 +41251,7 @@ Actual: ` + p3.attribValue
41220
41251
  if (o) {
41221
41252
  let { schema: a } = r, l = s.mapping.map(t), d = i3.doc.resolve(l).marks();
41222
41253
  d = d.length ? [...d] : null;
41223
- let u = Tw(d), f3 = a.nodes[this.name].create({ ...e, ...u }, null, null);
41254
+ let u = Nw(d), f3 = a.nodes[this.name].create({ ...e, ...u }, null, null);
41224
41255
  i3.tr.insert(l, f3).setSelection(ve$1.near(s.doc.resolve(l + f3.nodeSize))), n && this.editor.view.focus();
41225
41256
  }
41226
41257
  return true;
@@ -41419,7 +41450,7 @@ Actual: ` + p3.attribValue
41419
41450
  };
41420
41451
  },
41421
41452
  addNodeView() {
41422
- return (t) => new aw({
41453
+ return (t) => new cw({
41423
41454
  ...t,
41424
41455
  annotationClass: this.options.annotationClass,
41425
41456
  annotationContentClass: this.options.annotationContentClass,
@@ -41428,7 +41459,7 @@ Actual: ` + p3.attribValue
41428
41459
  },
41429
41460
  addPmPlugins() {
41430
41461
  return [
41431
- cw({
41462
+ uw({
41432
41463
  editor: this.editor,
41433
41464
  annotationClass: this.options.annotationClass,
41434
41465
  handleDropOutside: this.options.handleDropOutside
@@ -41436,7 +41467,7 @@ Actual: ` + p3.attribValue
41436
41467
  ];
41437
41468
  }
41438
41469
  });
41439
- function Tw(t) {
41470
+ function Nw(t) {
41440
41471
  if (!t)
41441
41472
  return {};
41442
41473
  let e = {
@@ -41453,7 +41484,7 @@ Actual: ` + p3.attribValue
41453
41484
  }
41454
41485
  return e;
41455
41486
  }
41456
- const Ao$1 = new Cp$2("ImagePlaceholder"), Dw = (t = {}) => new vp$2({
41487
+ const Ao$1 = new Cp$2("ImagePlaceholder"), Ew = (t = {}) => new vp$2({
41457
41488
  key: Ao$1,
41458
41489
  state: {
41459
41490
  init() {
@@ -41476,7 +41507,7 @@ Actual: ` + p3.attribValue
41476
41507
  return this.getState(e);
41477
41508
  }
41478
41509
  }
41479
- }), Kk = (t, e) => {
41510
+ }), Jk = (t, e) => {
41480
41511
  let r = Ao$1.getState(t)?.find(null, null, (o) => o.id === e);
41481
41512
  return r?.length ? r[0].from : null;
41482
41513
  }, Tu$1 = J$1.create({
@@ -41559,9 +41590,9 @@ Actual: ` + p3.attribValue
41559
41590
  };
41560
41591
  },
41561
41592
  addPmPlugins() {
41562
- return [Dw()];
41593
+ return [Ew()];
41563
41594
  }
41564
- }), Nw = J$1.create({
41595
+ }), Iw = J$1.create({
41565
41596
  name: "bookmarkStart",
41566
41597
  group: "inline",
41567
41598
  content: "inline*",
@@ -41624,7 +41655,7 @@ Actual: ` + p3.attribValue
41624
41655
  email: { default: null }
41625
41656
  };
41626
41657
  }
41627
- }), Ew = J$1.create({
41658
+ }), Pw = J$1.create({
41628
41659
  name: "page-number",
41629
41660
  group: "inline",
41630
41661
  inline: true,
@@ -41642,7 +41673,7 @@ Actual: ` + p3.attribValue
41642
41673
  renderDOM({ htmlAttributes: t }) {
41643
41674
  return ["span", N.mergeAttributes(this.options.htmlAttributes, t), 0];
41644
41675
  }
41645
- }), Iw = J$1.create({
41676
+ }), Rw = J$1.create({
41646
41677
  name: "total-page-number",
41647
41678
  group: "inline",
41648
41679
  inline: true,
@@ -41909,22 +41940,22 @@ Actual: ` + p3.attribValue
41909
41940
  toggleLink: ({ href: t }) => ({ commands: e }) => t ? e.setLink({ href: t }) : e.unsetLink()
41910
41941
  };
41911
41942
  }
41912
- }), Pw = /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;
41943
+ }), Lw = /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;
41913
41944
  function Tl$1(t, e) {
41914
41945
  const n = ["http", "https", "mailto"];
41915
41946
  return e && e.forEach((r) => {
41916
41947
  const o = typeof r == "string" ? r : r.scheme;
41917
41948
  o && n.push(o);
41918
- }), !t || t.replace(Pw, "").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))`, "i"));
41949
+ }), !t || t.replace(Lw, "").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))`, "i"));
41919
41950
  }
41920
- const Rw = "track-insert", Bu$1 = Le$1.create({
41951
+ const Fw = "track-insert", Bu$1 = Le$1.create({
41921
41952
  name: yr$2,
41922
41953
  group: "track",
41923
41954
  inclusive: false,
41924
41955
  addOptions() {
41925
41956
  return {
41926
41957
  htmlAttributes: {
41927
- class: Rw
41958
+ class: Fw
41928
41959
  }
41929
41960
  };
41930
41961
  },
@@ -41966,14 +41997,14 @@ Actual: ` + p3.attribValue
41966
41997
  renderDOM({ htmlAttributes: t }) {
41967
41998
  return ["span", N.mergeAttributes(this.options.htmlAttributes, t), 0];
41968
41999
  }
41969
- }), Lw = "track-delete", zu$1 = Le$1.create({
42000
+ }), Bw = "track-delete", zu$1 = Le$1.create({
41970
42001
  name: Ri$2,
41971
42002
  group: "track",
41972
42003
  inclusive: false,
41973
42004
  addOptions() {
41974
42005
  return {
41975
42006
  htmlAttributes: {
41976
- class: Lw
42007
+ class: Bw
41977
42008
  }
41978
42009
  };
41979
42010
  },
@@ -42024,28 +42055,28 @@ Actual: ` + p3.attribValue
42024
42055
  return [];
42025
42056
  }
42026
42057
  return Array.isArray(e) ? e.filter((n) => Object.hasOwn(n, "type") && Object.hasOwn(n, "attrs")) : [];
42027
- }, Xk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42058
+ }, Yk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42028
42059
  __proto__: null,
42029
42060
  addMarkStep: Id$1,
42030
- documentHelpers: qy,
42061
+ documentHelpers: Xy,
42031
42062
  findTrackedMarkBetween: Fs,
42032
42063
  getTrackChanges: zs,
42033
42064
  markDeletion: Sd$1,
42034
42065
  markInsertion: Cd$1,
42035
- markWrapping: sb,
42066
+ markWrapping: lb,
42036
42067
  parseFormatList: ds$1,
42037
42068
  removeMarkStep: Pd$1,
42038
- replaceAroundStep: ab,
42069
+ replaceAroundStep: cb,
42039
42070
  replaceStep: Ed$1,
42040
42071
  trackedTransaction: Rd$1
42041
- }, Symbol.toStringTag, { value: "Module" })), Fw = "track-format", _u$1 = Le$1.create({
42072
+ }, Symbol.toStringTag, { value: "Module" })), zw = "track-format", _u$1 = Le$1.create({
42042
42073
  name: Pi$2,
42043
42074
  group: "track",
42044
42075
  inclusive: false,
42045
42076
  addOptions() {
42046
42077
  return {
42047
42078
  htmlAttributes: {
42048
- class: Fw
42079
+ class: zw
42049
42080
  }
42050
42081
  };
42051
42082
  },
@@ -42109,7 +42140,7 @@ Actual: ` + p3.attribValue
42109
42140
  renderDOM({ htmlAttributes: t }) {
42110
42141
  return ["span", N.mergeAttributes(this.options.htmlAttributes, t), 0];
42111
42142
  }
42112
- }), Bw = Q$1.create({
42143
+ }), _w = Q$1.create({
42113
42144
  name: "trackChanges",
42114
42145
  addCommands() {
42115
42146
  return {
@@ -42271,7 +42302,7 @@ Actual: ` + p3.attribValue
42271
42302
  };
42272
42303
  },
42273
42304
  addPmPlugins() {
42274
- return [Ky()];
42305
+ return [Jy()];
42275
42306
  }
42276
42307
  }), Dl$1 = (t, e) => {
42277
42308
  const n = zs(t), r = n.findIndex(({ mark: l }) => l.attrs.id === e);
@@ -42279,7 +42310,7 @@ Actual: ` + p3.attribValue
42279
42310
  const o = n[r], i3 = n[r - 1], s = n[r + 1];
42280
42311
  let a;
42281
42312
  return i3 && o.start === i3.end ? a = i3 : s && o.end === s.start && (a = s), [o, a].filter(Boolean);
42282
- }, zw = Q$1.create({
42313
+ }, Vw = Q$1.create({
42283
42314
  name: "placeholder",
42284
42315
  addOptions() {
42285
42316
  return {
@@ -42309,11 +42340,11 @@ Actual: ` + p3.attribValue
42309
42340
  })];
42310
42341
  }
42311
42342
  });
42312
- var Te$1 = "top", We$2 = "bottom", Ue = "right", De$1 = "left", js = "auto", Ir = [Te$1, We$2, Ue, De$1], Pn$2 = "start", Cr$1 = "end", _w = "clippingParents", Vu$1 = "viewport", Jn$2 = "popper", Vw = "reference", Nl$1 = /* @__PURE__ */ Ir.reduce(function(t, e) {
42343
+ var Te$1 = "top", We$2 = "bottom", Ue = "right", De$1 = "left", js = "auto", Ir = [Te$1, We$2, Ue, De$1], Pn$2 = "start", Cr$1 = "end", $w = "clippingParents", Vu$1 = "viewport", Jn$2 = "popper", Hw = "reference", Nl$1 = /* @__PURE__ */ Ir.reduce(function(t, e) {
42313
42344
  return t.concat([e + "-" + Pn$2, e + "-" + Cr$1]);
42314
42345
  }, []), $u$1 = /* @__PURE__ */ [].concat(Ir, [js]).reduce(function(t, e) {
42315
42346
  return t.concat([e, e + "-" + Pn$2, e + "-" + Cr$1]);
42316
- }, []), $w = "beforeRead", Hw = "read", jw = "afterRead", Ww = "beforeMain", Uw = "main", qw = "afterMain", Kw = "beforeWrite", Xw = "write", Jw = "afterWrite", Yw = [$w, Hw, jw, Ww, Uw, qw, Kw, Xw, Jw];
42347
+ }, []), jw = "beforeRead", Ww = "read", Uw = "afterRead", qw = "beforeMain", Kw = "main", Xw = "afterMain", Jw = "beforeWrite", Yw = "write", Gw = "afterWrite", Zw = [jw, Ww, Uw, qw, Kw, Xw, Jw, Yw, Gw];
42317
42348
  function st$1(t) {
42318
42349
  return t ? (t.nodeName || "").toLowerCase() : null;
42319
42350
  }
@@ -42326,7 +42357,7 @@ Actual: ` + p3.attribValue
42326
42357
  }
42327
42358
  return t;
42328
42359
  }
42329
- function dn$2(t) {
42360
+ function un$2(t) {
42330
42361
  var e = Re$1(t).Element;
42331
42362
  return t instanceof e || t instanceof Element;
42332
42363
  }
@@ -42340,7 +42371,7 @@ Actual: ` + p3.attribValue
42340
42371
  var e = Re$1(t).ShadowRoot;
42341
42372
  return t instanceof e || t instanceof ShadowRoot;
42342
42373
  }
42343
- function Gw(t) {
42374
+ function Qw(t) {
42344
42375
  var e = t.state;
42345
42376
  Object.keys(e.elements).forEach(function(n) {
42346
42377
  var r = e.styles[n] || {}, o = e.attributes[n] || {}, i3 = e.elements[n];
@@ -42350,7 +42381,7 @@ Actual: ` + p3.attribValue
42350
42381
  }));
42351
42382
  });
42352
42383
  }
42353
- function Zw(t) {
42384
+ function ev(t) {
42354
42385
  var e = t.state, n = {
42355
42386
  popper: {
42356
42387
  position: e.options.strategy,
@@ -42378,14 +42409,14 @@ Actual: ` + p3.attribValue
42378
42409
  name: "applyStyles",
42379
42410
  enabled: true,
42380
42411
  phase: "write",
42381
- fn: Gw,
42382
- effect: Zw,
42412
+ fn: Qw,
42413
+ effect: ev,
42383
42414
  requires: ["computeStyles"]
42384
42415
  };
42385
42416
  function rt$1(t) {
42386
42417
  return t.split("-")[0];
42387
42418
  }
42388
- var on$3 = Math.max, Oo$1 = Math.min, Rn$2 = Math.round;
42419
+ var sn$2 = Math.max, Oo$1 = Math.min, Rn$2 = Math.round;
42389
42420
  function us$1() {
42390
42421
  var t = navigator.userAgentData;
42391
42422
  return t != null && t.brands && Array.isArray(t.brands) ? t.brands.map(function(e) {
@@ -42399,7 +42430,7 @@ Actual: ` + p3.attribValue
42399
42430
  e === void 0 && (e = false), n === void 0 && (n = false);
42400
42431
  var r = t.getBoundingClientRect(), o = 1, i3 = 1;
42401
42432
  e && je$1(t) && (o = t.offsetWidth > 0 && Rn$2(r.width) / t.offsetWidth || 1, i3 = t.offsetHeight > 0 && Rn$2(r.height) / t.offsetHeight || 1);
42402
- var s = dn$2(t) ? Re$1(t) : window, a = s.visualViewport, l = !ju$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;
42433
+ var s = un$2(t) ? Re$1(t) : window, a = s.visualViewport, l = !ju$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;
42403
42434
  return {
42404
42435
  width: u,
42405
42436
  height: f3,
@@ -42437,11 +42468,11 @@ Actual: ` + p3.attribValue
42437
42468
  function Ct$1(t) {
42438
42469
  return Re$1(t).getComputedStyle(t);
42439
42470
  }
42440
- function Qw(t) {
42471
+ function tv(t) {
42441
42472
  return ["table", "td", "th"].indexOf(st$1(t)) >= 0;
42442
42473
  }
42443
42474
  function Wt$2(t) {
42444
- return ((dn$2(t) ? t.ownerDocument : (
42475
+ return ((un$2(t) ? t.ownerDocument : (
42445
42476
  // $FlowFixMe[prop-missing]
42446
42477
  t.document
42447
42478
  )) || window.document).documentElement;
@@ -42462,7 +42493,7 @@ Actual: ` + p3.attribValue
42462
42493
  return !je$1(t) || // https://github.com/popperjs/popper-core/issues/837
42463
42494
  Ct$1(t).position === "fixed" ? null : t.offsetParent;
42464
42495
  }
42465
- function ev(t) {
42496
+ function nv(t) {
42466
42497
  var e = /firefox/i.test(us$1()), n = /Trident/i.test(us$1());
42467
42498
  if (n && je$1(t)) {
42468
42499
  var r = Ct$1(t);
@@ -42479,17 +42510,17 @@ Actual: ` + p3.attribValue
42479
42510
  return null;
42480
42511
  }
42481
42512
  function Pr(t) {
42482
- for (var e = Re$1(t), n = El$1(t); n && Qw(n) && Ct$1(n).position === "static"; )
42513
+ for (var e = Re$1(t), n = El$1(t); n && tv(n) && Ct$1(n).position === "static"; )
42483
42514
  n = El$1(n);
42484
- return n && (st$1(n) === "html" || st$1(n) === "body" && Ct$1(n).position === "static") ? e : n || ev(t) || e;
42515
+ return n && (st$1(n) === "html" || st$1(n) === "body" && Ct$1(n).position === "static") ? e : n || nv(t) || e;
42485
42516
  }
42486
42517
  function qs(t) {
42487
42518
  return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
42488
42519
  }
42489
42520
  function ir$1(t, e, n) {
42490
- return on$3(t, Oo$1(e, n));
42521
+ return sn$2(t, Oo$1(e, n));
42491
42522
  }
42492
- function tv(t, e, n) {
42523
+ function rv(t, e, n) {
42493
42524
  var r = ir$1(t, e, n);
42494
42525
  return r > n ? n : r;
42495
42526
  }
@@ -42509,41 +42540,41 @@ Actual: ` + p3.attribValue
42509
42540
  return n[r] = t, n;
42510
42541
  }, {});
42511
42542
  }
42512
- var nv = function(e, n) {
42543
+ var ov = function(e, n) {
42513
42544
  return e = typeof e == "function" ? e(Object.assign({}, n.rects, {
42514
42545
  placement: n.placement
42515
42546
  })) : e, qu$1(typeof e != "number" ? e : Ku$1(e, Ir));
42516
42547
  };
42517
- function rv(t) {
42548
+ function iv(t) {
42518
42549
  var e, n = t.state, r = t.name, o = t.options, i3 = n.elements.arrow, s = n.modifiersData.popperOffsets, a = rt$1(n.placement), l = qs(a), c3 = [De$1, Ue].indexOf(a) >= 0, d = c3 ? "height" : "width";
42519
42550
  if (!(!i3 || !s)) {
42520
- var u = nv(o.padding, n), f3 = Us(i3), p3 = l === "y" ? Te$1 : De$1, h3 = l === "y" ? We$2 : Ue, m = n.rects.reference[d] + n.rects.reference[l] - s[l] - n.rects.popper[d], g = s[l] - n.rects.reference[l], b = Pr(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, A = ir$1(y, k, S), L3 = l;
42551
+ var u = ov(o.padding, n), f3 = Us(i3), p3 = l === "y" ? Te$1 : De$1, h3 = l === "y" ? We$2 : Ue, m = n.rects.reference[d] + n.rects.reference[l] - s[l] - n.rects.popper[d], g = s[l] - n.rects.reference[l], b = Pr(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, A = ir$1(y, k, S), L3 = l;
42521
42552
  n.modifiersData[r] = (e = {}, e[L3] = A, e.centerOffset = A - k, e);
42522
42553
  }
42523
42554
  }
42524
- function ov(t) {
42555
+ function sv(t) {
42525
42556
  var e = t.state, n = t.options, r = n.element, o = r === void 0 ? "[data-popper-arrow]" : r;
42526
42557
  o != null && (typeof o == "string" && (o = e.elements.popper.querySelector(o), !o) || Wu$1(e.elements.popper, o) && (e.elements.arrow = o));
42527
42558
  }
42528
- const iv = {
42559
+ const av = {
42529
42560
  name: "arrow",
42530
42561
  enabled: true,
42531
42562
  phase: "main",
42532
- fn: rv,
42533
- effect: ov,
42563
+ fn: iv,
42564
+ effect: sv,
42534
42565
  requires: ["popperOffsets"],
42535
42566
  requiresIfExists: ["preventOverflow"]
42536
42567
  };
42537
42568
  function Fn$1(t) {
42538
42569
  return t.split("-")[1];
42539
42570
  }
42540
- var sv = {
42571
+ var lv = {
42541
42572
  top: "auto",
42542
42573
  right: "auto",
42543
42574
  bottom: "auto",
42544
42575
  left: "auto"
42545
42576
  };
42546
- function av(t, e) {
42577
+ function cv(t, e) {
42547
42578
  var n = t.x, r = t.y, o = e.devicePixelRatio || 1;
42548
42579
  return {
42549
42580
  x: Rn$2(n * o) / o || 0,
@@ -42581,7 +42612,7 @@ Actual: ` + p3.attribValue
42581
42612
  }
42582
42613
  var z = Object.assign({
42583
42614
  position: a
42584
- }, c3 && sv), $ = d === true ? av({
42615
+ }, c3 && lv), $ = d === true ? cv({
42585
42616
  x: p3,
42586
42617
  y: m
42587
42618
  }, Re$1(n)) : {
@@ -42594,7 +42625,7 @@ Actual: ` + p3.attribValue
42594
42625
  }
42595
42626
  return Object.assign({}, z, (e = {}, e[y] = w ? m + "px" : "", e[C] = b ? p3 + "px" : "", e.transform = "", e));
42596
42627
  }
42597
- function lv(t) {
42628
+ function dv(t) {
42598
42629
  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 = {
42599
42630
  placement: rt$1(e.placement),
42600
42631
  variation: Fn$1(e.placement),
@@ -42617,17 +42648,17 @@ Actual: ` + p3.attribValue
42617
42648
  "data-popper-placement": e.placement
42618
42649
  });
42619
42650
  }
42620
- const cv = {
42651
+ const uv = {
42621
42652
  name: "computeStyles",
42622
42653
  enabled: true,
42623
42654
  phase: "beforeWrite",
42624
- fn: lv,
42655
+ fn: dv,
42625
42656
  data: {}
42626
42657
  };
42627
42658
  var Qr$1 = {
42628
42659
  passive: true
42629
42660
  };
42630
- function dv(t) {
42661
+ function fv(t) {
42631
42662
  var e = t.state, n = t.instance, r = t.options, o = r.scroll, i3 = o === void 0 ? true : o, s = r.resize, a = s === void 0 ? true : s, l = Re$1(e.elements.popper), c3 = [].concat(e.scrollParents.reference, e.scrollParents.popper);
42632
42663
  return i3 && c3.forEach(function(d) {
42633
42664
  d.addEventListener("scroll", n.update, Qr$1);
@@ -42637,16 +42668,16 @@ Actual: ` + p3.attribValue
42637
42668
  }), a && l.removeEventListener("resize", n.update, Qr$1);
42638
42669
  };
42639
42670
  }
42640
- const uv = {
42671
+ const pv = {
42641
42672
  name: "eventListeners",
42642
42673
  enabled: true,
42643
42674
  phase: "write",
42644
42675
  fn: function() {
42645
42676
  },
42646
- effect: dv,
42677
+ effect: fv,
42647
42678
  data: {}
42648
42679
  };
42649
- var fv = {
42680
+ var hv = {
42650
42681
  left: "right",
42651
42682
  right: "left",
42652
42683
  bottom: "top",
@@ -42654,16 +42685,16 @@ Actual: ` + p3.attribValue
42654
42685
  };
42655
42686
  function uo$1(t) {
42656
42687
  return t.replace(/left|right|bottom|top/g, function(e) {
42657
- return fv[e];
42688
+ return hv[e];
42658
42689
  });
42659
42690
  }
42660
- var pv = {
42691
+ var mv = {
42661
42692
  start: "end",
42662
42693
  end: "start"
42663
42694
  };
42664
42695
  function Pl$1(t) {
42665
42696
  return t.replace(/start|end/g, function(e) {
42666
- return pv[e];
42697
+ return mv[e];
42667
42698
  });
42668
42699
  }
42669
42700
  function Ks(t) {
@@ -42676,7 +42707,7 @@ Actual: ` + p3.attribValue
42676
42707
  function Xs(t) {
42677
42708
  return Ln$2(Wt$2(t)).left + Ks(t).scrollLeft;
42678
42709
  }
42679
- function hv(t, e) {
42710
+ function gv(t, e) {
42680
42711
  var n = Re$1(t), r = Wt$2(t), o = n.visualViewport, i3 = r.clientWidth, s = r.clientHeight, a = 0, l = 0;
42681
42712
  if (o) {
42682
42713
  i3 = o.width, s = o.height;
@@ -42690,9 +42721,9 @@ Actual: ` + p3.attribValue
42690
42721
  y: l
42691
42722
  };
42692
42723
  }
42693
- function mv(t) {
42694
- var e, n = Wt$2(t), r = Ks(t), o = (e = t.ownerDocument) == null ? void 0 : e.body, i3 = on$3(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), s = on$3(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), a = -r.scrollLeft + Xs(t), l = -r.scrollTop;
42695
- return Ct$1(o || n).direction === "rtl" && (a += on$3(n.clientWidth, o ? o.clientWidth : 0) - i3), {
42724
+ function yv(t) {
42725
+ var e, n = Wt$2(t), r = Ks(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 + Xs(t), l = -r.scrollTop;
42726
+ return Ct$1(o || n).direction === "rtl" && (a += sn$2(n.clientWidth, o ? o.clientWidth : 0) - i3), {
42696
42727
  width: i3,
42697
42728
  height: s,
42698
42729
  x: a,
@@ -42723,23 +42754,23 @@ Actual: ` + p3.attribValue
42723
42754
  bottom: t.y + t.height
42724
42755
  });
42725
42756
  }
42726
- function gv(t, e) {
42757
+ function bv(t, e) {
42727
42758
  var n = Ln$2(t, false, e === "fixed");
42728
42759
  return n.top = n.top + t.clientTop, n.left = n.left + t.clientLeft, n.bottom = n.top + t.clientHeight, n.right = n.left + t.clientWidth, n.width = t.clientWidth, n.height = t.clientHeight, n.x = n.left, n.y = n.top, n;
42729
42760
  }
42730
42761
  function Rl$1(t, e, n) {
42731
- return e === Vu$1 ? fs$1(hv(t, n)) : dn$2(e) ? gv(e, n) : fs$1(mv(Wt$2(t)));
42762
+ return e === Vu$1 ? fs$1(gv(t, n)) : un$2(e) ? bv(e, n) : fs$1(yv(Wt$2(t)));
42732
42763
  }
42733
- function yv(t) {
42764
+ function wv(t) {
42734
42765
  var e = sr$1(_o$1(t)), n = ["absolute", "fixed"].indexOf(Ct$1(t).position) >= 0, r = n && je$1(t) ? Pr(t) : t;
42735
- return dn$2(r) ? e.filter(function(o) {
42736
- return dn$2(o) && Wu$1(o, r) && st$1(o) !== "body";
42766
+ return un$2(r) ? e.filter(function(o) {
42767
+ return un$2(o) && Wu$1(o, r) && st$1(o) !== "body";
42737
42768
  }) : [];
42738
42769
  }
42739
- function bv(t, e, n, r) {
42740
- var o = e === "clippingParents" ? yv(t) : [].concat(e), i3 = [].concat(o, [n]), s = i3[0], a = i3.reduce(function(l, c3) {
42770
+ function vv(t, e, n, r) {
42771
+ var o = e === "clippingParents" ? wv(t) : [].concat(e), i3 = [].concat(o, [n]), s = i3[0], a = i3.reduce(function(l, c3) {
42741
42772
  var d = Rl$1(t, c3, r);
42742
- return l.top = on$3(d.top, l.top), l.right = Oo$1(d.right, l.right), l.bottom = Oo$1(d.bottom, l.bottom), l.left = on$3(d.left, l.left), l;
42773
+ return l.top = sn$2(d.top, l.top), l.right = Oo$1(d.right, l.right), l.bottom = Oo$1(d.bottom, l.bottom), l.left = sn$2(d.left, l.left), l;
42743
42774
  }, Rl$1(t, s, r));
42744
42775
  return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
42745
42776
  }
@@ -42792,7 +42823,7 @@ Actual: ` + p3.attribValue
42792
42823
  }
42793
42824
  function Sr$1(t, e) {
42794
42825
  e === void 0 && (e = {});
42795
- var n = e, r = n.placement, o = r === void 0 ? t.placement : r, i3 = n.strategy, s = i3 === void 0 ? t.strategy : i3, a = n.boundary, l = a === void 0 ? _w : a, c3 = n.rootBoundary, d = c3 === void 0 ? Vu$1 : c3, u = n.elementContext, f3 = u === void 0 ? Jn$2 : u, p3 = n.altBoundary, h3 = p3 === void 0 ? false : p3, m = n.padding, g = m === void 0 ? 0 : m, b = qu$1(typeof g != "number" ? g : Ku$1(g, Ir)), w = f3 === Jn$2 ? Vw : Jn$2, C = t.rects.popper, y = t.elements[h3 ? w : f3], S = bv(dn$2(y) ? y : y.contextElement || Wt$2(t.elements.popper), l, d, s), k = Ln$2(t.elements.reference), A = Ju$1({
42826
+ var n = e, r = n.placement, o = r === void 0 ? t.placement : r, i3 = n.strategy, s = i3 === void 0 ? t.strategy : i3, a = n.boundary, l = a === void 0 ? $w : a, c3 = n.rootBoundary, d = c3 === void 0 ? Vu$1 : c3, u = n.elementContext, f3 = u === void 0 ? Jn$2 : u, p3 = n.altBoundary, h3 = p3 === void 0 ? false : p3, m = n.padding, g = m === void 0 ? 0 : m, b = qu$1(typeof g != "number" ? g : Ku$1(g, Ir)), w = f3 === Jn$2 ? Hw : Jn$2, C = t.rects.popper, y = t.elements[h3 ? w : f3], S = vv(un$2(y) ? y : y.contextElement || Wt$2(t.elements.popper), l, d, s), k = Ln$2(t.elements.reference), A = Ju$1({
42796
42827
  reference: k,
42797
42828
  element: C,
42798
42829
  placement: o
@@ -42811,7 +42842,7 @@ Actual: ` + p3.attribValue
42811
42842
  }
42812
42843
  return _;
42813
42844
  }
42814
- function wv(t, e) {
42845
+ function kv(t, e) {
42815
42846
  e === void 0 && (e = {});
42816
42847
  var n = e, r = n.placement, o = n.boundary, i3 = n.rootBoundary, s = n.padding, a = n.flipVariations, l = n.allowedAutoPlacements, c3 = l === void 0 ? $u$1 : l, d = Fn$1(r), u = d ? a ? Nl$1 : Nl$1.filter(function(h3) {
42817
42848
  return Fn$1(h3) === d;
@@ -42831,17 +42862,17 @@ Actual: ` + p3.attribValue
42831
42862
  return p3[h3] - p3[m];
42832
42863
  });
42833
42864
  }
42834
- function vv(t) {
42865
+ function Cv(t) {
42835
42866
  if (rt$1(t) === js)
42836
42867
  return [];
42837
42868
  var e = uo$1(t);
42838
42869
  return [Pl$1(t), e, Pl$1(e)];
42839
42870
  }
42840
- function kv(t) {
42871
+ function Sv(t) {
42841
42872
  var e = t.state, n = t.options, r = t.name;
42842
42873
  if (!e.modifiersData[r]._skip) {
42843
- 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 = rt$1(g), w = b === g, C = l || (w || !h3 ? [uo$1(g)] : vv(g)), y = [g].concat(C).reduce(function(qe2, Ne2) {
42844
- return qe2.concat(rt$1(Ne2) === js ? wv(e, {
42874
+ 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 = rt$1(g), w = b === g, C = l || (w || !h3 ? [uo$1(g)] : Cv(g)), y = [g].concat(C).reduce(function(qe2, Ne2) {
42875
+ return qe2.concat(rt$1(Ne2) === js ? kv(e, {
42845
42876
  placement: Ne2,
42846
42877
  boundary: d,
42847
42878
  rootBoundary: u,
@@ -42872,8 +42903,8 @@ Actual: ` + p3.attribValue
42872
42903
  var Ke2 = y.find(function(xt2) {
42873
42904
  var dt2 = A.get(xt2);
42874
42905
  if (dt2)
42875
- return dt2.slice(0, Ne2).every(function(un2) {
42876
- return un2;
42906
+ return dt2.slice(0, Ne2).every(function(fn2) {
42907
+ return fn2;
42877
42908
  });
42878
42909
  });
42879
42910
  if (Ke2)
@@ -42885,11 +42916,11 @@ Actual: ` + p3.attribValue
42885
42916
  e.placement !== x3 && (e.modifiersData[r]._skip = true, e.placement = x3, e.reset = true);
42886
42917
  }
42887
42918
  }
42888
- const Cv = {
42919
+ const xv = {
42889
42920
  name: "flip",
42890
42921
  enabled: true,
42891
42922
  phase: "main",
42892
- fn: kv,
42923
+ fn: Sv,
42893
42924
  requiresIfExists: ["offset"],
42894
42925
  data: {
42895
42926
  _skip: false
@@ -42911,7 +42942,7 @@ Actual: ` + p3.attribValue
42911
42942
  return t[e] >= 0;
42912
42943
  });
42913
42944
  }
42914
- function Sv(t) {
42945
+ function Mv(t) {
42915
42946
  var e = t.state, n = t.name, r = e.rects.reference, o = e.rects.popper, i3 = e.modifiersData.preventOverflow, s = Sr$1(e, {
42916
42947
  elementContext: "reference"
42917
42948
  }), a = Sr$1(e, {
@@ -42927,14 +42958,14 @@ Actual: ` + p3.attribValue
42927
42958
  "data-popper-escaped": u
42928
42959
  });
42929
42960
  }
42930
- const xv = {
42961
+ const Av = {
42931
42962
  name: "hide",
42932
42963
  enabled: true,
42933
42964
  phase: "main",
42934
42965
  requiresIfExists: ["preventOverflow"],
42935
- fn: Sv
42966
+ fn: Mv
42936
42967
  };
42937
- function Mv(t, e, n) {
42968
+ function Ov(t, e, n) {
42938
42969
  var r = rt$1(t), o = [De$1, Te$1].indexOf(r) >= 0 ? -1 : 1, i3 = typeof n == "function" ? n(Object.assign({}, e, {
42939
42970
  placement: t
42940
42971
  })) : n, s = i3[0], a = i3[1];
@@ -42946,20 +42977,20 @@ Actual: ` + p3.attribValue
42946
42977
  y: a
42947
42978
  };
42948
42979
  }
42949
- function Av(t) {
42980
+ function Tv(t) {
42950
42981
  var e = t.state, n = t.options, r = t.name, o = n.offset, i3 = o === void 0 ? [0, 0] : o, s = $u$1.reduce(function(d, u) {
42951
- return d[u] = Mv(u, e.rects, i3), d;
42982
+ return d[u] = Ov(u, e.rects, i3), d;
42952
42983
  }, {}), a = s[e.placement], l = a.x, c3 = a.y;
42953
42984
  e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += l, e.modifiersData.popperOffsets.y += c3), e.modifiersData[r] = s;
42954
42985
  }
42955
- const Ov = {
42986
+ const Dv = {
42956
42987
  name: "offset",
42957
42988
  enabled: true,
42958
42989
  phase: "main",
42959
42990
  requires: ["popperOffsets"],
42960
- fn: Av
42991
+ fn: Tv
42961
42992
  };
42962
- function Tv(t) {
42993
+ function Nv(t) {
42963
42994
  var e = t.state, n = t.name;
42964
42995
  e.modifiersData[n] = Ju$1({
42965
42996
  reference: e.rects.reference,
@@ -42967,23 +42998,23 @@ Actual: ` + p3.attribValue
42967
42998
  placement: e.placement
42968
42999
  });
42969
43000
  }
42970
- const Dv = {
43001
+ const Ev = {
42971
43002
  name: "popperOffsets",
42972
43003
  enabled: true,
42973
43004
  phase: "read",
42974
- fn: Tv,
43005
+ fn: Nv,
42975
43006
  data: {}
42976
43007
  };
42977
- function Nv(t) {
43008
+ function Iv(t) {
42978
43009
  return t === "x" ? "y" : "x";
42979
43010
  }
42980
- function Ev(t) {
43011
+ function Pv(t) {
42981
43012
  var e = t.state, n = t.options, r = t.name, o = n.mainAxis, i3 = o === void 0 ? true : o, s = n.altAxis, a = s === void 0 ? false : s, l = n.boundary, c3 = n.rootBoundary, d = n.altBoundary, u = n.padding, f3 = n.tether, p3 = f3 === void 0 ? true : f3, h3 = n.tetherOffset, m = h3 === void 0 ? 0 : h3, g = Sr$1(e, {
42982
43013
  boundary: l,
42983
43014
  rootBoundary: c3,
42984
43015
  padding: u,
42985
43016
  altBoundary: d
42986
- }), b = rt$1(e.placement), w = Fn$1(e.placement), C = !w, y = qs(b), S = Nv(y), k = e.modifiersData.popperOffsets, A = e.rects.reference, L3 = e.rects.popper, x3 = typeof m == "function" ? m(Object.assign({}, e.rects, {
43017
+ }), b = rt$1(e.placement), w = Fn$1(e.placement), C = !w, y = qs(b), S = Iv(y), k = e.modifiersData.popperOffsets, A = e.rects.reference, L3 = e.rects.popper, x3 = typeof m == "function" ? m(Object.assign({}, e.rects, {
42987
43018
  placement: e.placement
42988
43019
  })) : m, _ = typeof x3 == "number" ? {
42989
43020
  mainAxis: x3,
@@ -43000,39 +43031,39 @@ Actual: ` + p3.attribValue
43000
43031
  var j, se = y === "y" ? Te$1 : De$1, ce2 = y === "y" ? We$2 : Ue, ae2 = y === "y" ? "height" : "width", ee = k[y], ne = ee + g[se], ve2 = ee - g[ce2], ke2 = p3 ? -L3[ae2] / 2 : 0, lt2 = w === Pn$2 ? A[ae2] : L3[ae2], Fe2 = w === Pn$2 ? -L3[ae2] : -A[ae2], ct2 = e.elements.arrow, qe2 = p3 && ct2 ? Us(ct2) : {
43001
43032
  width: 0,
43002
43033
  height: 0
43003
- }, Ne2 = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Uu$1(), Ke2 = Ne2[se], xt2 = Ne2[ce2], dt2 = ir$1(0, A[ae2], qe2[ae2]), un2 = C ? A[ae2] / 2 - ke2 - dt2 - Ke2 - _.mainAxis : lt2 - dt2 - Ke2 - _.mainAxis, Mt2 = C ? -A[ae2] / 2 + ke2 + dt2 + xt2 + _.mainAxis : Fe2 + dt2 + xt2 + _.mainAxis, fn2 = e.elements.arrow && Pr(e.elements.arrow), Lr2 = fn2 ? y === "y" ? fn2.clientTop || 0 : fn2.clientLeft || 0 : 0, Hn2 = (j = z?.[y]) != null ? j : 0, Fr2 = ee + un2 - Hn2 - Lr2, Br2 = ee + Mt2 - Hn2, jn2 = ir$1(p3 ? Oo$1(ne, Fr2) : ne, ee, p3 ? on$3(ve2, Br2) : ve2);
43034
+ }, Ne2 = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Uu$1(), Ke2 = Ne2[se], xt2 = Ne2[ce2], dt2 = ir$1(0, A[ae2], qe2[ae2]), fn2 = C ? A[ae2] / 2 - ke2 - dt2 - Ke2 - _.mainAxis : lt2 - dt2 - Ke2 - _.mainAxis, Mt2 = C ? -A[ae2] / 2 + ke2 + dt2 + xt2 + _.mainAxis : Fe2 + dt2 + xt2 + _.mainAxis, pn2 = e.elements.arrow && Pr(e.elements.arrow), Lr2 = pn2 ? y === "y" ? pn2.clientTop || 0 : pn2.clientLeft || 0 : 0, Hn2 = (j = z?.[y]) != null ? j : 0, Fr2 = ee + fn2 - Hn2 - Lr2, Br2 = ee + Mt2 - Hn2, jn2 = ir$1(p3 ? Oo$1(ne, Fr2) : ne, ee, p3 ? sn$2(ve2, Br2) : ve2);
43004
43035
  k[y] = jn2, $[y] = jn2 - ee;
43005
43036
  }
43006
43037
  if (a) {
43007
- var Wn2, zr2 = y === "x" ? Te$1 : De$1, _r2 = y === "x" ? We$2 : Ue, ut2 = k[S], At2 = S === "y" ? "height" : "width", Un2 = ut2 + g[zr2], Ut2 = ut2 - g[_r2], qn2 = [Te$1, De$1].indexOf(b) !== -1, Vr2 = (Wn2 = z?.[S]) != null ? Wn2 : 0, $r2 = qn2 ? Un2 : ut2 - A[At2] - L3[At2] - Vr2 + _.altAxis, Hr2 = qn2 ? ut2 + A[At2] + L3[At2] - Vr2 - _.altAxis : Ut2, jr2 = p3 && qn2 ? tv($r2, ut2, Hr2) : ir$1(p3 ? $r2 : Un2, ut2, p3 ? Hr2 : Ut2);
43038
+ var Wn2, zr2 = y === "x" ? Te$1 : De$1, _r2 = y === "x" ? We$2 : Ue, ut2 = k[S], At2 = S === "y" ? "height" : "width", Un2 = ut2 + g[zr2], Ut2 = ut2 - g[_r2], qn2 = [Te$1, De$1].indexOf(b) !== -1, Vr2 = (Wn2 = z?.[S]) != null ? Wn2 : 0, $r2 = qn2 ? Un2 : ut2 - A[At2] - L3[At2] - Vr2 + _.altAxis, Hr2 = qn2 ? ut2 + A[At2] + L3[At2] - Vr2 - _.altAxis : Ut2, jr2 = p3 && qn2 ? rv($r2, ut2, Hr2) : ir$1(p3 ? $r2 : Un2, ut2, p3 ? Hr2 : Ut2);
43008
43039
  k[S] = jr2, $[S] = jr2 - ut2;
43009
43040
  }
43010
43041
  e.modifiersData[r] = $;
43011
43042
  }
43012
43043
  }
43013
- const Iv = {
43044
+ const Rv = {
43014
43045
  name: "preventOverflow",
43015
43046
  enabled: true,
43016
43047
  phase: "main",
43017
- fn: Ev,
43048
+ fn: Pv,
43018
43049
  requiresIfExists: ["offset"]
43019
43050
  };
43020
- function Pv(t) {
43051
+ function Lv(t) {
43021
43052
  return {
43022
43053
  scrollLeft: t.scrollLeft,
43023
43054
  scrollTop: t.scrollTop
43024
43055
  };
43025
43056
  }
43026
- function Rv(t) {
43027
- return t === Re$1(t) || !je$1(t) ? Ks(t) : Pv(t);
43057
+ function Fv(t) {
43058
+ return t === Re$1(t) || !je$1(t) ? Ks(t) : Lv(t);
43028
43059
  }
43029
- function Lv(t) {
43060
+ function Bv(t) {
43030
43061
  var e = t.getBoundingClientRect(), n = Rn$2(e.width) / t.offsetWidth || 1, r = Rn$2(e.height) / t.offsetHeight || 1;
43031
43062
  return n !== 1 || r !== 1;
43032
43063
  }
43033
- function Fv(t, e, n) {
43064
+ function zv(t, e, n) {
43034
43065
  n === void 0 && (n = false);
43035
- var r = je$1(e), o = je$1(e) && Lv(e), i3 = Wt$2(e), s = Ln$2(t, o, n), a = {
43066
+ var r = je$1(e), o = je$1(e) && Bv(e), i3 = Wt$2(e), s = Ln$2(t, o, n), a = {
43036
43067
  scrollLeft: 0,
43037
43068
  scrollTop: 0
43038
43069
  }, l = {
@@ -43040,14 +43071,14 @@ Actual: ` + p3.attribValue
43040
43071
  y: 0
43041
43072
  };
43042
43073
  return (r || !r && !n) && ((st$1(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
43043
- Js(i3)) && (a = Rv(e)), je$1(e) ? (l = Ln$2(e, true), l.x += e.clientLeft, l.y += e.clientTop) : i3 && (l.x = Xs(i3))), {
43074
+ Js(i3)) && (a = Fv(e)), je$1(e) ? (l = Ln$2(e, true), l.x += e.clientLeft, l.y += e.clientTop) : i3 && (l.x = Xs(i3))), {
43044
43075
  x: s.left + a.scrollLeft - l.x,
43045
43076
  y: s.top + a.scrollTop - l.y,
43046
43077
  width: s.width,
43047
43078
  height: s.height
43048
43079
  };
43049
43080
  }
43050
- function Bv(t) {
43081
+ function _v(t) {
43051
43082
  var e = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = [];
43052
43083
  t.forEach(function(i3) {
43053
43084
  e.set(i3.name, i3);
@@ -43066,15 +43097,15 @@ Actual: ` + p3.attribValue
43066
43097
  n.has(i3.name) || o(i3);
43067
43098
  }), r;
43068
43099
  }
43069
- function zv(t) {
43070
- var e = Bv(t);
43071
- return Yw.reduce(function(n, r) {
43100
+ function Vv(t) {
43101
+ var e = _v(t);
43102
+ return Zw.reduce(function(n, r) {
43072
43103
  return n.concat(e.filter(function(o) {
43073
43104
  return o.phase === r;
43074
43105
  }));
43075
43106
  }, []);
43076
43107
  }
43077
- function _v(t) {
43108
+ function $v(t) {
43078
43109
  var e;
43079
43110
  return function() {
43080
43111
  return e || (e = new Promise(function(n) {
@@ -43084,7 +43115,7 @@ Actual: ` + p3.attribValue
43084
43115
  })), e;
43085
43116
  };
43086
43117
  }
43087
- function Vv(t) {
43118
+ function Hv(t) {
43088
43119
  var e = t.reduce(function(n, r) {
43089
43120
  var o = n[r.name];
43090
43121
  return n[r.name] = o ? Object.assign({}, o, r, {
@@ -43108,7 +43139,7 @@ Actual: ` + p3.attribValue
43108
43139
  return !(r && typeof r.getBoundingClientRect == "function");
43109
43140
  });
43110
43141
  }
43111
- function $v(t) {
43142
+ function jv(t) {
43112
43143
  t === void 0 && (t = {});
43113
43144
  var e = t, n = e.defaultModifiers, r = n === void 0 ? [] : n, o = e.defaultOptions, i3 = o === void 0 ? Bl$1 : o;
43114
43145
  return function(a, l, c3) {
@@ -43129,10 +43160,10 @@ Actual: ` + p3.attribValue
43129
43160
  setOptions: function(b) {
43130
43161
  var w = typeof b == "function" ? b(d.options) : b;
43131
43162
  m(), d.options = Object.assign({}, i3, d.options, w), d.scrollParents = {
43132
- reference: dn$2(a) ? sr$1(a) : a.contextElement ? sr$1(a.contextElement) : [],
43163
+ reference: un$2(a) ? sr$1(a) : a.contextElement ? sr$1(a.contextElement) : [],
43133
43164
  popper: sr$1(l)
43134
43165
  };
43135
- var C = zv(Vv([].concat(r, d.options.modifiers)));
43166
+ var C = Vv(Hv([].concat(r, d.options.modifiers)));
43136
43167
  return d.orderedModifiers = C.filter(function(y) {
43137
43168
  return y.enabled;
43138
43169
  }), h3(), p3.update();
@@ -43147,7 +43178,7 @@ Actual: ` + p3.attribValue
43147
43178
  var b = d.elements, w = b.reference, C = b.popper;
43148
43179
  if (zl$1(w, C)) {
43149
43180
  d.rects = {
43150
- reference: Fv(w, Pr(C), d.options.strategy === "fixed"),
43181
+ reference: zv(w, Pr(C), d.options.strategy === "fixed"),
43151
43182
  popper: Us(C)
43152
43183
  }, d.reset = false, d.placement = d.options.placement, d.orderedModifiers.forEach(function(_) {
43153
43184
  return d.modifiersData[_.name] = Object.assign({}, _.data);
@@ -43170,7 +43201,7 @@ Actual: ` + p3.attribValue
43170
43201
  },
43171
43202
  // Async and optimistically optimized update – it will not be executed if
43172
43203
  // not necessary (debounced to run at most once-per-tick)
43173
- update: _v(function() {
43204
+ update: $v(function() {
43174
43205
  return new Promise(function(g) {
43175
43206
  p3.forceUpdate(), g(d);
43176
43207
  });
@@ -43207,15 +43238,15 @@ Actual: ` + p3.attribValue
43207
43238
  return p3;
43208
43239
  };
43209
43240
  }
43210
- var Hv = [uv, Dv, cv, Hu$1, Ov, Cv, Iv, iv, xv], jv = /* @__PURE__ */ $v({
43211
- defaultModifiers: Hv
43212
- }), Wv = "tippy-box", Yu$1 = "tippy-content", Uv = "tippy-backdrop", Gu$1 = "tippy-arrow", Zu$1 = "tippy-svg-arrow", Yt$2 = {
43241
+ var Wv = [pv, Ev, uv, Hu$1, Dv, xv, Rv, av, Av], Uv = /* @__PURE__ */ jv({
43242
+ defaultModifiers: Wv
43243
+ }), qv = "tippy-box", Yu$1 = "tippy-content", Kv = "tippy-backdrop", Gu$1 = "tippy-arrow", Zu$1 = "tippy-svg-arrow", Yt$2 = {
43213
43244
  passive: true,
43214
43245
  capture: true
43215
43246
  }, Qu$1 = function() {
43216
43247
  return document.body;
43217
43248
  };
43218
- function qv(t, e) {
43249
+ function Xv(t, e) {
43219
43250
  return {}.hasOwnProperty.call(t, e);
43220
43251
  }
43221
43252
  function ui$1(t, e, n) {
@@ -43242,27 +43273,27 @@ Actual: ` + p3.attribValue
43242
43273
  }, e);
43243
43274
  };
43244
43275
  }
43245
- function Kv(t, e) {
43276
+ function Jv(t, e) {
43246
43277
  var n = Object.assign({}, t);
43247
43278
  return e.forEach(function(r) {
43248
43279
  delete n[r];
43249
43280
  }), n;
43250
43281
  }
43251
- function Xv(t) {
43282
+ function Yv(t) {
43252
43283
  return t.split(/\s+/).filter(Boolean);
43253
43284
  }
43254
- function xn$2(t) {
43285
+ function Mn$1(t) {
43255
43286
  return [].concat(t);
43256
43287
  }
43257
43288
  function Vl$1(t, e) {
43258
43289
  t.indexOf(e) === -1 && t.push(e);
43259
43290
  }
43260
- function Jv(t) {
43291
+ function Gv(t) {
43261
43292
  return t.filter(function(e, n) {
43262
43293
  return t.indexOf(e) === n;
43263
43294
  });
43264
43295
  }
43265
- function Yv(t) {
43296
+ function Zv(t) {
43266
43297
  return t.split("-")[0];
43267
43298
  }
43268
43299
  function To$1(t) {
@@ -43281,17 +43312,17 @@ Actual: ` + p3.attribValue
43281
43312
  return Ys(t, e);
43282
43313
  });
43283
43314
  }
43284
- function Gv(t) {
43315
+ function Qv(t) {
43285
43316
  return Ys(t, "NodeList");
43286
43317
  }
43287
- function Zv(t) {
43318
+ function ek(t) {
43288
43319
  return Ys(t, "MouseEvent");
43289
43320
  }
43290
- function Qv(t) {
43321
+ function tk(t) {
43291
43322
  return !!(t && t._tippy && t._tippy.reference === t);
43292
43323
  }
43293
- function ek(t) {
43294
- return xr$1(t) ? [t] : Gv(t) ? To$1(t) : Array.isArray(t) ? t : To$1(document.querySelectorAll(t));
43324
+ function nk(t) {
43325
+ return xr$1(t) ? [t] : Qv(t) ? To$1(t) : Array.isArray(t) ? t : To$1(document.querySelectorAll(t));
43295
43326
  }
43296
43327
  function fi$1(t, e) {
43297
43328
  t.forEach(function(n) {
@@ -43303,14 +43334,14 @@ Actual: ` + p3.attribValue
43303
43334
  n && n.setAttribute("data-state", e);
43304
43335
  });
43305
43336
  }
43306
- function tk(t) {
43307
- var e, n = xn$2(t), r = n[0];
43337
+ function rk(t) {
43338
+ var e, n = Mn$1(t), r = n[0];
43308
43339
  return r != null && (e = r.ownerDocument) != null && e.body ? r.ownerDocument : document;
43309
43340
  }
43310
- function nk(t, e) {
43341
+ function ok(t, e) {
43311
43342
  var n = e.clientX, r = e.clientY;
43312
43343
  return t.every(function(o) {
43313
- var i3 = o.popperRect, s = o.popperState, a = o.props, l = a.interactiveBorder, c3 = Yv(s.placement), d = s.modifiersData.offset;
43344
+ var i3 = o.popperRect, s = o.popperState, a = o.props, l = a.interactiveBorder, c3 = Zv(s.placement), d = s.modifiersData.offset;
43314
43345
  if (!d)
43315
43346
  return true;
43316
43347
  var u = c3 === "bottom" ? d.top.y : 0, f3 = c3 === "top" ? d.bottom.y : 0, p3 = c3 === "right" ? d.left.x : 0, h3 = c3 === "left" ? d.right.x : 0, m = i3.top - r + u > l, g = r - i3.bottom - f3 > l, b = i3.left - n + p3 > l, w = n - i3.right - h3 > l;
@@ -43335,28 +43366,28 @@ Actual: ` + p3.attribValue
43335
43366
  var tt$2 = {
43336
43367
  isTouch: false
43337
43368
  }, Wl$1 = 0;
43338
- function rk() {
43369
+ function ik() {
43339
43370
  tt$2.isTouch || (tt$2.isTouch = true, window.performance && document.addEventListener("mousemove", tf$1));
43340
43371
  }
43341
43372
  function tf$1() {
43342
43373
  var t = performance.now();
43343
43374
  t - Wl$1 < 20 && (tt$2.isTouch = false, document.removeEventListener("mousemove", tf$1)), Wl$1 = t;
43344
43375
  }
43345
- function ok() {
43376
+ function sk() {
43346
43377
  var t = document.activeElement;
43347
- if (Qv(t)) {
43378
+ if (tk(t)) {
43348
43379
  var e = t._tippy;
43349
43380
  t.blur && !e.state.isVisible && t.blur();
43350
43381
  }
43351
43382
  }
43352
- function ik() {
43353
- document.addEventListener("touchstart", rk, Yt$2), window.addEventListener("blur", ok);
43383
+ function ak() {
43384
+ document.addEventListener("touchstart", ik, Yt$2), window.addEventListener("blur", sk);
43354
43385
  }
43355
- var sk = typeof window < "u" && typeof document < "u", ak = sk ? (
43386
+ var lk = typeof window < "u" && typeof document < "u", ck = lk ? (
43356
43387
  // @ts-ignore
43357
43388
  !!window.msCrypto
43358
43389
  ) : false;
43359
- function wn$2(t) {
43390
+ function vn$2(t) {
43360
43391
  var e = t === "destroy" ? "n already-" : " ";
43361
43392
  return [t + "() was called on a" + e + "destroyed instance. This is a no-op but", "indicates a potential memory leak."].join(" ");
43362
43393
  }
@@ -43364,7 +43395,7 @@ Actual: ` + p3.attribValue
43364
43395
  var e = /[ \t]{2,}/g, n = /^[ \t]*/gm;
43365
43396
  return t.replace(e, " ").replace(n, "").trim();
43366
43397
  }
43367
- function lk(t) {
43398
+ function dk(t) {
43368
43399
  return Ul$1(`
43369
43400
  %ctippy.js
43370
43401
 
@@ -43375,7 +43406,7 @@ Actual: ` + p3.attribValue
43375
43406
  }
43376
43407
  function nf$1(t) {
43377
43408
  return [
43378
- lk(t),
43409
+ dk(t),
43379
43410
  // title
43380
43411
  "color: #00C584; font-size: 1.3em; font-weight: bold;",
43381
43412
  // message
@@ -43385,8 +43416,8 @@ Actual: ` + p3.attribValue
43385
43416
  ];
43386
43417
  }
43387
43418
  var Mr$1;
43388
- he$3.env.NODE_ENV !== "production" && ck();
43389
- function ck() {
43419
+ he$3.env.NODE_ENV !== "production" && uk();
43420
+ function uk() {
43390
43421
  Mr$1 = /* @__PURE__ */ new Set();
43391
43422
  }
43392
43423
  function gt$1(t, e) {
@@ -43401,7 +43432,7 @@ Actual: ` + p3.attribValue
43401
43432
  Mr$1.add(e), (n = console).error.apply(n, nf$1(e));
43402
43433
  }
43403
43434
  }
43404
- function dk(t) {
43435
+ function fk(t) {
43405
43436
  var e = !t, n = Object.prototype.toString.call(t) === "[object Object]" && !t.addEventListener;
43406
43437
  ps(e, ["tippy() was passed", "`" + String(t) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), ps(n, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" "));
43407
43438
  }
@@ -43410,7 +43441,7 @@ Actual: ` + p3.attribValue
43410
43441
  followCursor: false,
43411
43442
  inlinePositioning: false,
43412
43443
  sticky: false
43413
- }, uk = {
43444
+ }, pk = {
43414
43445
  allowHTML: false,
43415
43446
  animation: "fade",
43416
43447
  arrow: true,
@@ -43468,7 +43499,7 @@ Actual: ` + p3.attribValue
43468
43499
  touch: true,
43469
43500
  trigger: "mouseenter focus",
43470
43501
  triggerTarget: null
43471
- }, rf$1, uk), fk = Object.keys(Ie$1), pk = function(e) {
43502
+ }, rf$1, pk), hk = Object.keys(Ie$1), mk = function(e) {
43472
43503
  he$3.env.NODE_ENV !== "production" && sf$1(e, []);
43473
43504
  var n = Object.keys(e);
43474
43505
  n.forEach(function(r) {
@@ -43486,10 +43517,10 @@ Actual: ` + p3.attribValue
43486
43517
  }, {});
43487
43518
  return Object.assign({}, t, n);
43488
43519
  }
43489
- function hk(t, e) {
43520
+ function gk(t, e) {
43490
43521
  var n = e ? Object.keys(of$1(Object.assign({}, Ie$1, {
43491
43522
  plugins: e
43492
- }))) : fk, r = n.reduce(function(o, i3) {
43523
+ }))) : hk, r = n.reduce(function(o, i3) {
43493
43524
  var s = (t.getAttribute("data-tippy-" + i3) || "").trim();
43494
43525
  if (!s)
43495
43526
  return o;
@@ -43508,7 +43539,7 @@ Actual: ` + p3.attribValue
43508
43539
  function ql$1(t, e) {
43509
43540
  var n = Object.assign({}, e, {
43510
43541
  content: ef$1(e.content, [t])
43511
- }, e.ignoreAttributes ? {} : hk(t, e.plugins));
43542
+ }, e.ignoreAttributes ? {} : gk(t, e.plugins));
43512
43543
  return n.aria = Object.assign({}, Ie$1.aria, n.aria), n.aria = {
43513
43544
  expanded: n.aria.expanded === "auto" ? e.interactive : n.aria.expanded,
43514
43545
  content: n.aria.content === "auto" ? e.interactive ? null : "describedby" : n.aria.content
@@ -43518,7 +43549,7 @@ Actual: ` + p3.attribValue
43518
43549
  t === void 0 && (t = {}), e === void 0 && (e = []);
43519
43550
  var n = Object.keys(t);
43520
43551
  n.forEach(function(r) {
43521
- var o = Kv(Ie$1, Object.keys(rf$1)), i3 = !qv(o, r);
43552
+ var o = Jv(Ie$1, Object.keys(rf$1)), i3 = !Xv(o, r);
43522
43553
  i3 && (i3 = e.filter(function(s) {
43523
43554
  return s.name === r;
43524
43555
  }).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.", `
@@ -43527,11 +43558,11 @@ Actual: ` + p3.attribValue
43527
43558
  `, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "));
43528
43559
  });
43529
43560
  }
43530
- var mk = function() {
43561
+ var yk = function() {
43531
43562
  return "innerHTML";
43532
43563
  };
43533
43564
  function hs$1(t, e) {
43534
- t[mk()] = e;
43565
+ t[yk()] = e;
43535
43566
  }
43536
43567
  function Kl$1(t) {
43537
43568
  var e = ar$1();
@@ -43551,13 +43582,13 @@ Actual: ` + p3.attribValue
43551
43582
  return r.classList.contains(Gu$1) || r.classList.contains(Zu$1);
43552
43583
  }),
43553
43584
  backdrop: n.find(function(r) {
43554
- return r.classList.contains(Uv);
43585
+ return r.classList.contains(Kv);
43555
43586
  })
43556
43587
  };
43557
43588
  }
43558
43589
  function af$1(t) {
43559
43590
  var e = ar$1(), n = ar$1();
43560
- n.className = Wv, n.setAttribute("data-state", "hidden"), n.setAttribute("tabindex", "-1");
43591
+ n.className = qv, n.setAttribute("data-state", "hidden"), n.setAttribute("tabindex", "-1");
43561
43592
  var r = ar$1();
43562
43593
  r.className = Yu$1, r.setAttribute("data-state", "hidden"), Xl$1(r, t.props), e.appendChild(n), n.appendChild(r), o(t.props, t.props);
43563
43594
  function o(i3, s) {
@@ -43570,9 +43601,9 @@ Actual: ` + p3.attribValue
43570
43601
  };
43571
43602
  }
43572
43603
  af$1.$$tippy = true;
43573
- var gk = 1, eo$2 = [], hi$1 = [];
43574
- function yk(t, e) {
43575
- var n = ql$1(t, Object.assign({}, Ie$1, of$1($l$1(e)))), r, o, i3, s = false, a = false, l = false, c3 = false, d, u, f3, p3 = [], h3 = _l$1(Fr2, n.interactiveDebounce), m, g = gk++, b = null, w = Jv(n.plugins), C = {
43604
+ var bk = 1, eo$2 = [], hi$1 = [];
43605
+ function wk(t, e) {
43606
+ var n = ql$1(t, Object.assign({}, Ie$1, of$1($l$1(e)))), r, o, i3, s = false, a = false, l = false, c3 = false, d, u, f3, p3 = [], h3 = _l$1(Fr2, n.interactiveDebounce), m, g = bk++, b = null, w = Gv(n.plugins), C = {
43576
43607
  // Is the instance currently enabled?
43577
43608
  isEnabled: true,
43578
43609
  // Is the tippy currently showing and not transitioning out?
@@ -43611,7 +43642,7 @@ Actual: ` + p3.attribValue
43611
43642
  var L3 = w.map(function(v) {
43612
43643
  return v.fn(y);
43613
43644
  }), x3 = t.hasAttribute("aria-expanded");
43614
- return fn2(), ke2(), ee(), ne("onCreate", [y]), n.showOnCreate && Un2(), k.addEventListener("mouseenter", function() {
43645
+ return pn2(), ke2(), ee(), ne("onCreate", [y]), n.showOnCreate && Un2(), k.addEventListener("mouseenter", function() {
43615
43646
  y.props.interactive && y.state.isVisible && y.clearDelayTimeouts();
43616
43647
  }), k.addEventListener("mouseleave", function() {
43617
43648
  y.props.interactive && y.props.trigger.indexOf("mouseenter") >= 0 && se().addEventListener("mousemove", h3);
@@ -43632,7 +43663,7 @@ Actual: ` + p3.attribValue
43632
43663
  }
43633
43664
  function se() {
43634
43665
  var v = j().parentNode;
43635
- return v ? tk(v) : document;
43666
+ return v ? rk(v) : document;
43636
43667
  }
43637
43668
  function ce2() {
43638
43669
  return ms(k);
@@ -43654,7 +43685,7 @@ Actual: ` + p3.attribValue
43654
43685
  function ve2() {
43655
43686
  var v = y.props.aria;
43656
43687
  if (v.content) {
43657
- var O3 = "aria-" + v.content, R = k.id, q = xn$2(y.props.triggerTarget || t);
43688
+ var O3 = "aria-" + v.content, R = k.id, q = Mn$1(y.props.triggerTarget || t);
43658
43689
  q.forEach(function(U) {
43659
43690
  var Ce2 = U.getAttribute(O3);
43660
43691
  if (y.state.isVisible)
@@ -43668,7 +43699,7 @@ Actual: ` + p3.attribValue
43668
43699
  }
43669
43700
  function ke2() {
43670
43701
  if (!(x3 || !y.props.aria.expanded)) {
43671
- var v = xn$2(y.props.triggerTarget || t);
43702
+ var v = Mn$1(y.props.triggerTarget || t);
43672
43703
  v.forEach(function(O3) {
43673
43704
  y.props.interactive ? O3.setAttribute("aria-expanded", y.state.isVisible && O3 === j() ? "true" : "false") : O3.removeAttribute("aria-expanded");
43674
43705
  });
@@ -43683,7 +43714,7 @@ Actual: ` + p3.attribValue
43683
43714
  if (!(tt$2.isTouch && (l || v.type === "mousedown"))) {
43684
43715
  var O3 = v.composedPath && v.composedPath()[0] || v.target;
43685
43716
  if (!(y.props.interactive && jl$1(k, O3))) {
43686
- if (xn$2(y.props.triggerTarget || t).some(function(R) {
43717
+ if (Mn$1(y.props.triggerTarget || t).some(function(R) {
43687
43718
  return jl$1(R, O3);
43688
43719
  })) {
43689
43720
  if (tt$2.isTouch || y.state.isVisible && y.props.trigger.indexOf("click") >= 0)
@@ -43711,14 +43742,14 @@ Actual: ` + p3.attribValue
43711
43742
  v.removeEventListener("mousedown", Fe2, true), v.removeEventListener("touchend", Fe2, Yt$2), v.removeEventListener("touchstart", qe2, Yt$2), v.removeEventListener("touchmove", ct2, Yt$2);
43712
43743
  }
43713
43744
  function xt2(v, O3) {
43714
- un2(v, function() {
43745
+ fn2(v, function() {
43715
43746
  !y.state.isVisible && k.parentNode && k.parentNode.contains(k) && O3();
43716
43747
  });
43717
43748
  }
43718
43749
  function dt2(v, O3) {
43719
- un2(v, O3);
43750
+ fn2(v, O3);
43720
43751
  }
43721
- function un2(v, O3) {
43752
+ function fn2(v, O3) {
43722
43753
  var R = ce2().box;
43723
43754
  function q(U) {
43724
43755
  U.target === R && (pi$1(R, "remove", q), O3());
@@ -43729,7 +43760,7 @@ Actual: ` + p3.attribValue
43729
43760
  }
43730
43761
  function Mt2(v, O3, R) {
43731
43762
  R === void 0 && (R = false);
43732
- var q = xn$2(y.props.triggerTarget || t);
43763
+ var q = Mn$1(y.props.triggerTarget || t);
43733
43764
  q.forEach(function(U) {
43734
43765
  U.addEventListener(v, O3, R), p3.push({
43735
43766
  node: U,
@@ -43739,19 +43770,19 @@ Actual: ` + p3.attribValue
43739
43770
  });
43740
43771
  });
43741
43772
  }
43742
- function fn2() {
43773
+ function pn2() {
43743
43774
  z() && (Mt2("touchstart", Hn2, {
43744
43775
  passive: true
43745
43776
  }), Mt2("touchend", Br2, {
43746
43777
  passive: true
43747
- })), Xv(y.props.trigger).forEach(function(v) {
43778
+ })), Yv(y.props.trigger).forEach(function(v) {
43748
43779
  if (v !== "manual")
43749
43780
  switch (Mt2(v, Hn2), v) {
43750
43781
  case "mouseenter":
43751
43782
  Mt2("mouseleave", Br2);
43752
43783
  break;
43753
43784
  case "focus":
43754
- Mt2(ak ? "focusout" : "blur", jn2);
43785
+ Mt2(ck ? "focusout" : "blur", jn2);
43755
43786
  break;
43756
43787
  case "focusin":
43757
43788
  Mt2("focusout", jn2);
@@ -43769,7 +43800,7 @@ Actual: ` + p3.attribValue
43769
43800
  var O3, R = false;
43770
43801
  if (!(!y.state.isEnabled || Wn2(v) || a)) {
43771
43802
  var q = ((O3 = d) == null ? void 0 : O3.type) === "focus";
43772
- d = v, m = v.currentTarget, ke2(), !y.state.isVisible && Zv(v) && eo$2.forEach(function(U) {
43803
+ d = v, m = v.currentTarget, ke2(), !y.state.isVisible && ek(v) && eo$2.forEach(function(U) {
43773
43804
  return U(v);
43774
43805
  }), v.type === "click" && (y.props.trigger.indexOf("mouseenter") < 0 || s) && y.props.hideOnClick !== false && y.state.isVisible ? R = true : Un2(v), v.type === "click" && (s = !R), R && !q && Ut2(v);
43775
43806
  }
@@ -43778,14 +43809,14 @@ Actual: ` + p3.attribValue
43778
43809
  var O3 = v.target, R = j().contains(O3) || k.contains(O3);
43779
43810
  if (!(v.type === "mousemove" && R)) {
43780
43811
  var q = At2().concat(k).map(function(U) {
43781
- var Ce2, Be = U._tippy, pn2 = (Ce2 = Be.popperInstance) == null ? void 0 : Ce2.state;
43782
- return pn2 ? {
43812
+ var Ce2, Be = U._tippy, hn2 = (Ce2 = Be.popperInstance) == null ? void 0 : Ce2.state;
43813
+ return hn2 ? {
43783
43814
  popperRect: U.getBoundingClientRect(),
43784
- popperState: pn2,
43815
+ popperState: hn2,
43785
43816
  props: n
43786
43817
  } : null;
43787
43818
  }).filter(Boolean);
43788
- nk(q, v) && (lt2(), Ut2(v));
43819
+ ok(q, v) && (lt2(), Ut2(v));
43789
43820
  }
43790
43821
  }
43791
43822
  function Br2(v) {
@@ -43806,7 +43837,7 @@ Actual: ` + p3.attribValue
43806
43837
  }
43807
43838
  function zr2() {
43808
43839
  _r2();
43809
- var v = y.props, O3 = v.popperOptions, R = v.placement, q = v.offset, U = v.getReferenceClientRect, Ce2 = v.moveTransition, Be = $() ? ms(k).arrow : null, pn2 = U ? {
43840
+ var v = y.props, O3 = v.popperOptions, R = v.placement, q = v.offset, U = v.getReferenceClientRect, Ce2 = v.moveTransition, Be = $() ? ms(k).arrow : null, hn2 = U ? {
43810
43841
  getBoundingClientRect: U,
43811
43842
  contextElement: U.contextElement || j()
43812
43843
  } : t, Zs2 = {
@@ -43815,12 +43846,12 @@ Actual: ` + p3.attribValue
43815
43846
  phase: "beforeWrite",
43816
43847
  requires: ["computeStyles"],
43817
43848
  fn: function(Wr2) {
43818
- var hn2 = Wr2.state;
43849
+ var mn2 = Wr2.state;
43819
43850
  if ($()) {
43820
43851
  var pf2 = ce2(), $o2 = pf2.box;
43821
43852
  ["placement", "reference-hidden", "escaped"].forEach(function(Ur2) {
43822
- Ur2 === "placement" ? $o2.setAttribute("data-placement", hn2.placement) : hn2.attributes.popper["data-popper-" + Ur2] ? $o2.setAttribute("data-" + Ur2, "") : $o2.removeAttribute("data-" + Ur2);
43823
- }), hn2.attributes.popper = {};
43853
+ Ur2 === "placement" ? $o2.setAttribute("data-placement", mn2.placement) : mn2.attributes.popper["data-popper-" + Ur2] ? $o2.setAttribute("data-" + Ur2, "") : $o2.removeAttribute("data-" + Ur2);
43854
+ }), mn2.attributes.popper = {};
43824
43855
  }
43825
43856
  }
43826
43857
  }, qt2 = [{
@@ -43855,7 +43886,7 @@ Actual: ` + p3.attribValue
43855
43886
  element: Be,
43856
43887
  padding: 3
43857
43888
  }
43858
- }), qt2.push.apply(qt2, O3?.modifiers || []), y.popperInstance = jv(pn2, k, Object.assign({}, O3, {
43889
+ }), qt2.push.apply(qt2, O3?.modifiers || []), y.popperInstance = Uv(hn2, k, Object.assign({}, O3, {
43859
43890
  placement: R,
43860
43891
  onFirstUpdate: f3,
43861
43892
  modifiers: qt2
@@ -43908,12 +43939,12 @@ Actual: ` + p3.attribValue
43908
43939
  clearTimeout(r), clearTimeout(o), cancelAnimationFrame(i3);
43909
43940
  }
43910
43941
  function Hr2(v) {
43911
- if (he$3.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, wn$2("setProps")), !y.state.isDestroyed) {
43942
+ if (he$3.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, vn$2("setProps")), !y.state.isDestroyed) {
43912
43943
  ne("onBeforeUpdate", [y, v]), Lr2();
43913
43944
  var O3 = y.props, R = ql$1(t, Object.assign({}, O3, $l$1(v), {
43914
43945
  ignoreAttributes: true
43915
43946
  }));
43916
- y.props = R, fn2(), O3.interactiveDebounce !== R.interactiveDebounce && (lt2(), h3 = _l$1(Fr2, R.interactiveDebounce)), O3.triggerTarget && !R.triggerTarget ? xn$2(O3.triggerTarget).forEach(function(q) {
43947
+ y.props = R, pn2(), O3.interactiveDebounce !== R.interactiveDebounce && (lt2(), h3 = _l$1(Fr2, R.interactiveDebounce)), O3.triggerTarget && !R.triggerTarget ? Mn$1(O3.triggerTarget).forEach(function(q) {
43917
43948
  q.removeAttribute("aria-expanded");
43918
43949
  }) : R.triggerTarget && t.removeAttribute("aria-expanded"), ke2(), ee(), A && A(O3, R), y.popperInstance && (zr2(), At2().forEach(function(q) {
43919
43950
  requestAnimationFrame(q._tippy.popperInstance.forceUpdate);
@@ -43926,19 +43957,19 @@ Actual: ` + p3.attribValue
43926
43957
  });
43927
43958
  }
43928
43959
  function lf2() {
43929
- he$3.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, wn$2("show"));
43960
+ he$3.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, vn$2("show"));
43930
43961
  var v = y.state.isVisible, O3 = y.state.isDestroyed, R = !y.state.isEnabled, q = tt$2.isTouch && !y.props.touch, U = ui$1(y.props.duration, 0, Ie$1.duration);
43931
43962
  if (!(v || O3 || R || q) && !j().hasAttribute("disabled") && (ne("onShow", [y], false), y.props.onShow(y) !== false)) {
43932
43963
  if (y.state.isVisible = true, $() && (k.style.visibility = "visible"), ee(), Ne2(), y.state.isMounted || (k.style.transition = "none"), $()) {
43933
- var Ce2 = ce2(), Be = Ce2.box, pn2 = Ce2.content;
43934
- fi$1([Be, pn2], 0);
43964
+ var Ce2 = ce2(), Be = Ce2.box, hn2 = Ce2.content;
43965
+ fi$1([Be, hn2], 0);
43935
43966
  }
43936
43967
  f3 = function() {
43937
43968
  var qt2;
43938
43969
  if (!(!y.state.isVisible || c3)) {
43939
43970
  if (c3 = true, k.offsetHeight, k.style.transition = y.props.moveTransition, $() && y.props.animation) {
43940
- var Vo2 = ce2(), Wr2 = Vo2.box, hn2 = Vo2.content;
43941
- fi$1([Wr2, hn2], U), Hl$1([Wr2, hn2], "visible");
43971
+ var Vo2 = ce2(), Wr2 = Vo2.box, mn2 = Vo2.content;
43972
+ fi$1([Wr2, mn2], U), Hl$1([Wr2, mn2], "visible");
43942
43973
  }
43943
43974
  ve2(), ke2(), Vl$1(hi$1, y), (qt2 = y.popperInstance) == null || qt2.forceUpdate(), ne("onMount", [y]), y.props.animation && $() && dt2(U, function() {
43944
43975
  y.state.isShown = true, ne("onShown", [y]);
@@ -43948,7 +43979,7 @@ Actual: ` + p3.attribValue
43948
43979
  }
43949
43980
  }
43950
43981
  function cf2() {
43951
- he$3.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, wn$2("hide"));
43982
+ he$3.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, vn$2("hide"));
43952
43983
  var v = !y.state.isVisible, O3 = y.state.isDestroyed, R = !y.state.isEnabled, q = ui$1(y.props.duration, 1, Ie$1.duration);
43953
43984
  if (!(v || O3 || R) && (ne("onHide", [y], false), y.props.onHide(y) !== false)) {
43954
43985
  if (y.state.isVisible = false, y.state.isShown = false, c3 = false, s = false, $() && (k.style.visibility = "hidden"), lt2(), Ke2(), ee(true), $()) {
@@ -43959,26 +43990,26 @@ Actual: ` + p3.attribValue
43959
43990
  }
43960
43991
  }
43961
43992
  function df2(v) {
43962
- he$3.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, wn$2("hideWithInteractivity")), se().addEventListener("mousemove", h3), Vl$1(eo$2, h3), h3(v);
43993
+ he$3.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, vn$2("hideWithInteractivity")), se().addEventListener("mousemove", h3), Vl$1(eo$2, h3), h3(v);
43963
43994
  }
43964
43995
  function uf2() {
43965
- he$3.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, wn$2("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (_r2(), At2().forEach(function(v) {
43996
+ he$3.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, vn$2("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (_r2(), At2().forEach(function(v) {
43966
43997
  v._tippy.unmount();
43967
43998
  }), k.parentNode && k.parentNode.removeChild(k), hi$1 = hi$1.filter(function(v) {
43968
43999
  return v !== y;
43969
44000
  }), y.state.isMounted = false, ne("onHidden", [y]));
43970
44001
  }
43971
44002
  function ff2() {
43972
- he$3.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, wn$2("destroy")), !y.state.isDestroyed && (y.clearDelayTimeouts(), y.unmount(), Lr2(), delete t._tippy, y.state.isDestroyed = true, ne("onDestroy", [y]));
44003
+ he$3.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, vn$2("destroy")), !y.state.isDestroyed && (y.clearDelayTimeouts(), y.unmount(), Lr2(), delete t._tippy, y.state.isDestroyed = true, ne("onDestroy", [y]));
43973
44004
  }
43974
44005
  }
43975
44006
  function Rr(t, e) {
43976
44007
  e === void 0 && (e = {});
43977
44008
  var n = Ie$1.plugins.concat(e.plugins || []);
43978
- he$3.env.NODE_ENV !== "production" && (dk(t), sf$1(e, n)), ik();
44009
+ he$3.env.NODE_ENV !== "production" && (fk(t), sf$1(e, n)), ak();
43979
44010
  var r = Object.assign({}, e, {
43980
44011
  plugins: n
43981
- }), o = ek(t);
44012
+ }), o = nk(t);
43982
44013
  if (he$3.env.NODE_ENV !== "production") {
43983
44014
  var i3 = xr$1(r.content), s = o.length > 1;
43984
44015
  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.", `
@@ -43989,13 +44020,13 @@ Actual: ` + p3.attribValue
43989
44020
  `, "2) content: () => element.cloneNode(true)"].join(" "));
43990
44021
  }
43991
44022
  var a = o.reduce(function(l, c3) {
43992
- var d = c3 && yk(c3, r);
44023
+ var d = c3 && wk(c3, r);
43993
44024
  return d && l.push(d), l;
43994
44025
  }, []);
43995
44026
  return xr$1(t) ? a[0] : a;
43996
44027
  }
43997
44028
  Rr.defaultProps = Ie$1;
43998
- Rr.setDefaultProps = pk;
44029
+ Rr.setDefaultProps = mk;
43999
44030
  Rr.currentInput = tt$2;
44000
44031
  Object.assign({}, Hu$1, {
44001
44032
  effect: function(e) {
@@ -44017,12 +44048,12 @@ Actual: ` + p3.attribValue
44017
44048
  Rr.setDefaultProps({
44018
44049
  render: af$1
44019
44050
  });
44020
- const bk = (t, e) => {
44051
+ const vk = (t, e) => {
44021
44052
  const n = t.__vccOpts || t;
44022
44053
  for (const [r, o] of e)
44023
44054
  n[r] = o;
44024
44055
  return n;
44025
- }, wk = ["onClick", "onMouseenter"], vk = { key: 0 }, kk = { key: 0 }, Ck = { key: 1 }, Sk = { key: 1 }, xk = {
44056
+ }, kk = ["onClick", "onMouseenter"], Ck = { key: 0 }, Sk = { key: 0 }, xk = { key: 1 }, Mk = { key: 1 }, Ak = {
44026
44057
  __name: "Mentions",
44027
44058
  props: {
44028
44059
  users: {
@@ -44074,16 +44105,16 @@ Actual: ` + p3.attribValue
44074
44105
  key: d.email,
44075
44106
  class: normalizeClass(["user-row", { selected: r.value === u }])
44076
44107
  }, [
44077
- d.name ? (openBlock(), createElementBlock("div", vk, [
44078
- d.name ? (openBlock(), createElementBlock("span", kk, toDisplayString(d.name), 1)) : createCommentVNode("", true),
44079
- d.name && d.email ? (openBlock(), createElementBlock("span", Ck, " (" + toDisplayString(d.email) + ")", 1)) : createCommentVNode("", true)
44080
- ])) : (openBlock(), createElementBlock("div", Sk, [
44108
+ d.name ? (openBlock(), createElementBlock("div", Ck, [
44109
+ d.name ? (openBlock(), createElementBlock("span", Sk, toDisplayString(d.name), 1)) : createCommentVNode("", true),
44110
+ d.name && d.email ? (openBlock(), createElementBlock("span", xk, " (" + toDisplayString(d.email) + ")", 1)) : createCommentVNode("", true)
44111
+ ])) : (openBlock(), createElementBlock("div", Mk, [
44081
44112
  createBaseVNode("span", null, toDisplayString(d.email), 1)
44082
44113
  ]))
44083
- ], 42, wk))), 128))
44114
+ ], 42, kk))), 128))
44084
44115
  ], 544));
44085
44116
  }
44086
- }, Mk = /* @__PURE__ */ bk(xk, [["__scopeId", "data-v-0a2a8b4e"]]), Jl$1 = new Cp$2("popoverPlugin"), Ak = Q$1.create({
44117
+ }, Ok = /* @__PURE__ */ vk(Ak, [["__scopeId", "data-v-0a2a8b4e"]]), Jl$1 = new Cp$2("popoverPlugin"), Tk = Q$1.create({
44087
44118
  name: "popoverPlugin",
44088
44119
  addPmPlugins() {
44089
44120
  return [new vp$2({
@@ -44096,7 +44127,7 @@ Actual: ` + p3.attribValue
44096
44127
  }
44097
44128
  },
44098
44129
  view: (e) => {
44099
- const n = new Ok(e, this.editor);
44130
+ const n = new Dk(e, this.editor);
44100
44131
  return {
44101
44132
  update: (r, o) => {
44102
44133
  Jl$1.getState(r.state).shouldUpdate && n.update(r, o);
@@ -44109,7 +44140,7 @@ Actual: ` + p3.attribValue
44109
44140
  })];
44110
44141
  }
44111
44142
  });
44112
- class Ok {
44143
+ class Dk {
44113
44144
  constructor(e, n) {
44114
44145
  P(this, "handleKeyDown", (e22) => {
44115
44146
  const n22 = e22.key === "ArrowDown" || e22.key === "ArrowUp";
@@ -44146,7 +44177,7 @@ Actual: ` + p3.attribValue
44146
44177
  if (this.isShowMentions) {
44147
44178
  const { from: i3 } = this.state.selection, s = this.getMentionText(i3);
44148
44179
  o = {
44149
- component: Mk,
44180
+ component: Ok,
44150
44181
  props: {
44151
44182
  users: this.editor.users,
44152
44183
  mention: s,
@@ -44188,7 +44219,7 @@ Actual: ` + p3.attribValue
44188
44219
  this.tippyInstance.destroy(), this.popover.remove();
44189
44220
  }
44190
44221
  }
44191
- const Tk = false, Dk = Q$1.create({
44222
+ const Nk = false, Ek = Q$1.create({
44192
44223
  name: "pagination",
44193
44224
  addStorage() {
44194
44225
  return {
@@ -44215,18 +44246,18 @@ Actual: ` + p3.attribValue
44215
44246
  const t = this.editor;
44216
44247
  let e = false, n = false, r = false, o = false;
44217
44248
  return [new vp$2({
44218
- key: rn$2,
44249
+ key: on$3,
44219
44250
  state: {
44220
44251
  isReadyToInit: false,
44221
44252
  init(s, a) {
44222
44253
  return {
44223
44254
  isReadyToInit: false,
44224
44255
  decorations: F.empty,
44225
- isDebugging: Tk
44256
+ isDebugging: Nk
44226
44257
  };
44227
44258
  },
44228
44259
  apply(s, a, l, c3) {
44229
- const d = s.getMeta(rn$2);
44260
+ const d = s.getMeta(on$3);
44230
44261
  d && d.isReadyToInit && (n = true, o = d.isReadyToInit);
44231
44262
  const u = s.getMeta(Ao$1);
44232
44263
  if (u) {
@@ -44257,39 +44288,39 @@ Actual: ` + p3.attribValue
44257
44288
  let a = F.empty;
44258
44289
  return {
44259
44290
  update: (l) => {
44260
- !n || e || (e = true, r = true, Nk(t, l, a), e = false, n = false);
44291
+ !n || e || (e = true, r = true, Ik(t, l, a), e = false, n = false);
44261
44292
  }
44262
44293
  };
44263
44294
  },
44264
44295
  props: {
44265
44296
  decorations(s) {
44266
- return rn$2.getState(s).decorations;
44297
+ return on$3.getState(s).decorations;
44267
44298
  }
44268
44299
  }
44269
44300
  })];
44270
44301
  }
44271
- }), vn$2 = (t, e, n) => {
44302
+ }), kn$2 = (t, e, n) => {
44272
44303
  const { alternateHeaders: r } = n.converter.pageStyles, o = n.converter[e];
44273
44304
  if (o?.titlePg && !o.first && t === 1) return null;
44274
44305
  const i3 = o.even, s = o.odd, a = o.first, l = o.default;
44275
44306
  if (o?.titlePg && a && t === 1) return a;
44276
44307
  let c3 = o.default;
44277
44308
  return r && (t === 1 ? c3 = a : t % 2 === 0 ? c3 = i3 || l : c3 = s || l), c3;
44278
- }, Nk = (t, e, n) => {
44279
- const r = t.storage.pagination.sectionData, o = Ek(e, t, r);
44309
+ }, Ik = (t, e, n) => {
44310
+ const r = t.storage.pagination.sectionData, o = Pk(e, t, r);
44280
44311
  if (!n.eq(o)) {
44281
44312
  const i3 = e.state.tr.setMeta(
44282
- rn$2,
44313
+ on$3,
44283
44314
  { decorations: o }
44284
44315
  );
44285
44316
  e.dispatch(i3);
44286
44317
  }
44287
44318
  t.emit("paginationUpdate");
44288
- }, Ek = (t, e, n) => {
44319
+ }, Pk = (t, e, n) => {
44289
44320
  if (!e.converter) return F.empty;
44290
44321
  const r = e.converter.pageStyles?.pageSize, { width: o, height: i3 } = r;
44291
44322
  if (!o || !i3) return F.empty;
44292
- const s = [vb, rn$2], { state: a } = t, l = At.create({
44323
+ const s = [Cb, on$3], { state: a } = t, l = At.create({
44293
44324
  schema: a.schema,
44294
44325
  doc: a.doc,
44295
44326
  plugins: a.plugins.filter((h3) => s.includes(h3.key))
@@ -44304,16 +44335,16 @@ Actual: ` + p3.attribValue
44304
44335
  }
44305
44336
  });
44306
44337
  e.initDefaultStyles(c3);
44307
- const p3 = Ik(l.doc, f3, e, n);
44338
+ const p3 = Rk(l.doc, f3, e, n);
44308
44339
  return f3.destroy(), document.body.removeChild(c3), F.create(t.state.doc, p3);
44309
44340
  };
44310
- function Ik(t, e, n, r) {
44341
+ function Rk(t, e, n, r) {
44311
44342
  const o = [], { pageSize: i3, pageMargins: s } = n.converter.pageStyles, a = i3.height * 96;
44312
44343
  n.options.scale;
44313
44344
  let l = 1, c3 = a, d = null, u = null;
44314
- const f3 = vn$2(l, "headerIds", n), p3 = mi$1(s, i3, r, f3), h3 = yi$1({ editor: n, header: p3, isFirstHeader: true });
44345
+ const f3 = kn$2(l, "headerIds", n), p3 = mi$1(s, i3, r, f3), h3 = yi$1({ editor: n, header: p3, isFirstHeader: true });
44315
44346
  o.push(V.widget(0, h3, { key: "stable-key" }));
44316
- const m = vn$2(l, "footerIds", n), g = gi$1(s, i3, r, m);
44347
+ const m = kn$2(l, "footerIds", n), g = gi$1(s, i3, r, m);
44317
44348
  c3 -= p3.headerHeight + g.footerHeight;
44318
44349
  let b = e?.coordsAtPos(t.content.size);
44319
44350
  if (!b) return [];
@@ -44336,9 +44367,9 @@ Actual: ` + p3.attribValue
44336
44367
  top: ne,
44337
44368
  bottom: ve2,
44338
44369
  pos: ke2
44339
- } = Pk(e, j, c3);
44370
+ } = Lk(e, j, c3);
44340
44371
  l++;
44341
- const lt2 = vn$2(l, "headerIds", n), Fe2 = vn$2(l, "footerIds", n);
44372
+ const lt2 = kn$2(l, "headerIds", n), Fe2 = kn$2(l, "footerIds", n);
44342
44373
  u = mi$1(s, i3, r, lt2), d = gi$1(s, i3, r, Fe2, l - 1);
44343
44374
  const ct2 = c3 - ve2, { node: qe2 } = Yl$1(ct2), Ne2 = V.widget(ke2, qe2, { key: "stable-key" });
44344
44375
  o.push(Ne2);
@@ -44347,7 +44378,7 @@ Actual: ` + p3.attribValue
44347
44378
  }
44348
44379
  });
44349
44380
  let w = t.content.size;
44350
- const C = e.coordsAtPos(w), y = vn$2(l, "headerIds", n), S = vn$2(l, "footerIds", n);
44381
+ const C = e.coordsAtPos(w), y = kn$2(l, "headerIds", n), S = kn$2(l, "footerIds", n);
44351
44382
  u = mi$1(s, i3, r, y), d = gi$1(s, i3, r, S, l);
44352
44383
  const k = c3 - C.bottom, { node: A } = Yl$1(k), L3 = V.widget(t.content.size, A, { key: "stable-key" });
44353
44384
  o.push(L3);
@@ -44392,7 +44423,7 @@ Actual: ` + p3.attribValue
44392
44423
  }
44393
44424
  return e && (d.appendChild(e.section), l += e.headerHeight), c3.style.height = l + "px", c3.style.minHeight = l + "px", c3.style.maxHeight = l + "px", d.style.height = l + "px", c3.style.width = "100px", c3.style.marginLeft = a.left * -96 + "px", r !== null && (c3.style.position = "absolute", c3.style.bottom = r + "px"), c3;
44394
44425
  }
44395
- function Pk(t, e, n) {
44426
+ function Lk(t, e, n) {
44396
44427
  let r = e - 1;
44397
44428
  const o = { top: 0, bottom: 0, pos: 0 };
44398
44429
  for (; r > 0; ) {
@@ -44410,7 +44441,7 @@ Actual: ` + p3.attribValue
44410
44441
  const e = t.view.state.tr;
44411
44442
  e.setMeta("forceUpdatePagination", true), t.view.dispatch(e);
44412
44443
  });
44413
- }, Rk = () => [
44444
+ }, Fk = () => [
44414
44445
  Eu$1,
44415
44446
  Qd$1,
44416
44447
  jd$1,
@@ -44433,8 +44464,8 @@ Actual: ` + p3.attribValue
44433
44464
  Kd$1,
44434
44465
  Nu$1,
44435
44466
  Pu$1,
44436
- zw,
44437
- Ak,
44467
+ Vw,
44468
+ Tk,
44438
44469
  Du$1,
44439
44470
  Ru$1,
44440
44471
  Jd$1,
@@ -44448,13 +44479,13 @@ Actual: ` + p3.attribValue
44448
44479
  zu$1,
44449
44480
  _u$1,
44450
44481
  Tu$1
44451
- ], Lk = () => [
44482
+ ], Bk = () => [
44452
44483
  Eu$1,
44453
44484
  Qd$1,
44454
44485
  jd$1,
44455
- e0,
44456
- t0,
44457
44486
  n0,
44487
+ r0,
44488
+ o0,
44458
44489
  Gd$1,
44459
44490
  Wd$1,
44460
44491
  Ud$1,
@@ -44468,17 +44499,17 @@ Actual: ` + p3.attribValue
44468
44499
  iu$1,
44469
44500
  au$1,
44470
44501
  lu$1,
44471
- Tb,
44502
+ Nb,
44472
44503
  Lu$1,
44473
- o0,
44504
+ s0,
44474
44505
  Zd$1,
44475
44506
  qd$1,
44476
44507
  Kd$1,
44477
44508
  Nu$1,
44478
44509
  Pu$1,
44479
44510
  Jd$1,
44480
- eb,
44481
- wb,
44511
+ nb,
44512
+ kb,
44482
44513
  vu$1,
44483
44514
  Cu$1,
44484
44515
  Su$1,
@@ -44486,20 +44517,20 @@ Actual: ` + p3.attribValue
44486
44517
  Ou$1,
44487
44518
  Yd$1,
44488
44519
  Tu$1,
44489
- Nw,
44520
+ Iw,
44490
44521
  Du$1,
44491
- kb,
44492
- Ab,
44493
- Bw,
44522
+ Sb,
44523
+ Tb,
44524
+ _w,
44494
44525
  Bu$1,
44495
44526
  zu$1,
44496
44527
  _u$1,
44497
- r0,
44498
- Dk,
44528
+ i0,
44529
+ Ek,
44499
44530
  Ru$1,
44500
- Kb,
44501
- Ew,
44502
- Iw
44531
+ Jb,
44532
+ Pw,
44533
+ Rw
44503
44534
  ];
44504
44535
  const Tp = (e, t) => {
44505
44536
  let n = e.replace(/[^0-9.]/g, "");
@@ -44607,7 +44638,7 @@ Actual: ` + p3.attribValue
44607
44638
  }, null, 4)) : createCommentVNode("", true)
44608
44639
  ]));
44609
44640
  }
44610
- }, Vl = /* @__PURE__ */ bk(Kl, [["__scopeId", "data-v-6d7523ab"]]), Ul = {
44641
+ }, Vl = /* @__PURE__ */ vk(Kl, [["__scopeId", "data-v-6d7523ab"]]), Ul = {
44611
44642
  key: 1,
44612
44643
  class: "button-label"
44613
44644
  }, Gl = { key: 2 }, Xl = ["placeholder", "onKeydown", "id"], ql = ["placeholder", "onKeydown", "id"], Yl = ["innerHTML"], Zl = {
@@ -44719,7 +44750,7 @@ Actual: ` + p3.attribValue
44719
44750
  ], 2)
44720
44751
  ], 6));
44721
44752
  }
44722
- }, Xn$1 = /* @__PURE__ */ bk(Zl, [["__scopeId", "data-v-33900b15"]]), Jl = { class: "toolbar-separator" }, Ql = {
44753
+ }, Xn$1 = /* @__PURE__ */ vk(Zl, [["__scopeId", "data-v-33900b15"]]), Jl = { class: "toolbar-separator" }, Ql = {
44723
44754
  __name: "ToolbarSeparator",
44724
44755
  props: {
44725
44756
  active: {
@@ -44733,7 +44764,7 @@ Actual: ` + p3.attribValue
44733
44764
  createBaseVNode("div", { class: "separator-inner" }, null, -1)
44734
44765
  ])));
44735
44766
  }
44736
- }, ea = /* @__PURE__ */ bk(Ql, [["__scopeId", "data-v-ac2ee4f9"]]), ta = { class: "overflow-menu" }, na = { class: "overflow-menu-trigger" }, ra = {
44767
+ }, ea = /* @__PURE__ */ vk(Ql, [["__scopeId", "data-v-ac2ee4f9"]]), ta = { class: "overflow-menu" }, na = { class: "overflow-menu-trigger" }, ra = {
44737
44768
  key: 0,
44738
44769
  class: "overflow-menu_items"
44739
44770
  }, oa = {
@@ -44773,7 +44804,7 @@ Actual: ` + p3.attribValue
44773
44804
  ])) : createCommentVNode("", true)
44774
44805
  ]));
44775
44806
  }
44776
- }, ia = /* @__PURE__ */ bk(oa, [["__scopeId", "data-v-ca29bf1d"]]);
44807
+ }, ia = /* @__PURE__ */ vk(oa, [["__scopeId", "data-v-ca29bf1d"]]);
44777
44808
  function sa(e) {
44778
44809
  let t = ".", n = "__", r = "--", o;
44779
44810
  if (e) {
@@ -51787,7 +51818,7 @@ ${t}
51787
51818
  ], 2))), 128))
51788
51819
  ], 4));
51789
51820
  }
51790
- }, Yt$1 = /* @__PURE__ */ bk($p, [["__scopeId", "data-v-a19e1b9f"]]), zp = {
51821
+ }, Yt$1 = /* @__PURE__ */ vk($p, [["__scopeId", "data-v-a19e1b9f"]]), zp = {
51791
51822
  __name: "Toolbar",
51792
51823
  emits: ["command", "toggle", "select"],
51793
51824
  setup(e, { emit: t }) {
@@ -51830,7 +51861,7 @@ ${t}
51830
51861
  }, null, 8, ["toolbar-items"])) : createCommentVNode("", true)
51831
51862
  ]));
51832
51863
  }
51833
- }, Ip = /* @__PURE__ */ bk(zp, [["__scopeId", "data-v-4b88e275"]]);
51864
+ }, Ip = /* @__PURE__ */ vk(zp, [["__scopeId", "data-v-4b88e275"]]);
51834
51865
  async function c$3(o, t) {
51835
51866
  const e = new Et$1();
51836
51867
  return o.forEach((i3, n) => {
@@ -52070,7 +52101,7 @@ ${t}
52070
52101
  }, null, 8, qt)
52071
52102
  ]));
52072
52103
  }
52073
- }, Kt = /* @__PURE__ */ bk(Gt, [["__scopeId", "data-v-d6fae878"]]), Xt = { class: "link-input-ctn" }, Zt = {
52104
+ }, Kt = /* @__PURE__ */ vk(Gt, [["__scopeId", "data-v-d6fae878"]]), Xt = { class: "link-input-ctn" }, Zt = {
52074
52105
  key: 0,
52075
52106
  class: "link-title"
52076
52107
  }, Yt = {
@@ -52189,7 +52220,7 @@ ${t}
52189
52220
  ])) : createCommentVNode("", true)
52190
52221
  ]));
52191
52222
  }
52192
- }, cn = /* @__PURE__ */ bk(rn, [["__scopeId", "data-v-6990d5b2"]]), dn = { class: "document-mode" }, un = ["onClick"], mn = { class: "document-mode-column icon-column" }, pn = ["innerHTML"], fn = { class: "document-mode-column text-column" }, hn = { class: "document-mode-type" }, gn = { class: "document-mode-description" }, vn = {
52223
+ }, cn = /* @__PURE__ */ vk(rn, [["__scopeId", "data-v-6990d5b2"]]), dn = { class: "document-mode" }, un = ["onClick"], mn = { class: "document-mode-column icon-column" }, pn = ["innerHTML"], fn = { class: "document-mode-column text-column" }, hn = { class: "document-mode-type" }, gn = { class: "document-mode-description" }, vn = {
52193
52224
  __name: "DocumentMode",
52194
52225
  props: {
52195
52226
  options: {
@@ -52219,7 +52250,7 @@ ${t}
52219
52250
  ], 10, un))), 256))
52220
52251
  ]));
52221
52252
  }
52222
- }, yn = /* @__PURE__ */ bk(vn, [["__scopeId", "data-v-f86e1477"]]), bn = {
52253
+ }, yn = /* @__PURE__ */ vk(vn, [["__scopeId", "data-v-f86e1477"]]), bn = {
52223
52254
  key: 0,
52224
52255
  class: "linked-style-buttons"
52225
52256
  }, kn = ["onClick"], wn = {
@@ -52236,18 +52267,18 @@ ${t}
52236
52267
  o("select", i3);
52237
52268
  };
52238
52269
  return (i3, c3) => n.editor ? (openBlock(), createElementBlock("div", bn, [
52239
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(Wk)(t.editor), (s) => (openBlock(), createElementBlock("div", {
52270
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(qk)(t.editor), (s) => (openBlock(), createElementBlock("div", {
52240
52271
  class: "style-item",
52241
52272
  onClick: (a) => e(s)
52242
52273
  }, [
52243
52274
  createBaseVNode("div", {
52244
52275
  class: "style-name",
52245
- style: normalizeStyle(unref(Jb)(s, null, false))
52276
+ style: normalizeStyle(unref(Gb)(s, null, false))
52246
52277
  }, toDisplayString(s.definition.attrs.name), 5)
52247
52278
  ], 8, kn))), 256))
52248
52279
  ])) : createCommentVNode("", true);
52249
52280
  }
52250
- }, Cn = /* @__PURE__ */ bk(wn, [["__scopeId", "data-v-97e3296a"]]), _n = ["onClick"], xn = ["innerHTML"], En = ["innerHTML"], Sn = {
52281
+ }, Cn = /* @__PURE__ */ vk(wn, [["__scopeId", "data-v-97e3296a"]]), _n = ["onClick"], xn = ["innerHTML"], En = ["innerHTML"], Sn = {
52251
52282
  __name: "IconGridRow",
52252
52283
  props: {
52253
52284
  icons: {
@@ -52289,7 +52320,7 @@ ${t}
52289
52320
  ], 8, _n))), 128))
52290
52321
  ]))), 128));
52291
52322
  }
52292
- }, qe = /* @__PURE__ */ bk(Sn, [["__scopeId", "data-v-6a2a9a40"]]), Tn = { class: "option-grid-ctn" }, An = {
52323
+ }, qe = /* @__PURE__ */ vk(Sn, [["__scopeId", "data-v-6a2a9a40"]]), Tn = { class: "option-grid-ctn" }, An = {
52293
52324
  __name: "IconGrid",
52294
52325
  props: {
52295
52326
  icons: {
@@ -52326,7 +52357,7 @@ ${t}
52326
52357
  ], 64)) : createCommentVNode("", true)
52327
52358
  ]));
52328
52359
  }
52329
- }, Fn = /* @__PURE__ */ bk(An, [["__scopeId", "data-v-fa2949d8"]]), In = (t) => {
52360
+ }, Fn = /* @__PURE__ */ vk(An, [["__scopeId", "data-v-fa2949d8"]]), In = (t) => {
52330
52361
  t.expand.value = false;
52331
52362
  }, f = (t, l = null) => ({
52332
52363
  label: l,
@@ -52459,7 +52490,7 @@ ${t}
52459
52490
  createBaseVNode("div", $n, toDisplayString(n.value) + " x " + toDisplayString(e.value), 1)
52460
52491
  ]));
52461
52492
  }
52462
- }, Bn = /* @__PURE__ */ bk(Hn, [["__scopeId", "data-v-06352ab9"]]), Rn = { class: "toolbar-table-actions" }, On = ["onClick"], Nn = { class: "toolbar-table-actions__icon" }, zn = ["innerHTML"], Pn = { class: "toolbar-table-actions__label" }, Vn = {
52493
+ }, Bn = /* @__PURE__ */ vk(Hn, [["__scopeId", "data-v-06352ab9"]]), Rn = { class: "toolbar-table-actions" }, On = ["onClick"], Nn = { class: "toolbar-table-actions__icon" }, zn = ["innerHTML"], Pn = { class: "toolbar-table-actions__label" }, Vn = {
52463
52494
  __name: "TableActions",
52464
52495
  props: {
52465
52496
  options: {
@@ -52486,7 +52517,7 @@ ${t}
52486
52517
  ], 10, On))), 256))
52487
52518
  ]));
52488
52519
  }
52489
- }, Wn = /* @__PURE__ */ bk(Vn, [["__scopeId", "data-v-9a702d7f"]]), jn = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"/></svg>
52520
+ }, Wn = /* @__PURE__ */ vk(Vn, [["__scopeId", "data-v-9a702d7f"]]), jn = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"/></svg>
52490
52521
  `, re = (t) => {
52491
52522
  t.expand.value = false;
52492
52523
  }, Un = (t, l = false, o, n, e) => {
@@ -53263,7 +53294,7 @@ ${t}
53263
53294
  };
53264
53295
  a.setMeta(Ao$1, u), l.dispatch(a), n(o).then(
53265
53296
  (r) => {
53266
- let b = o.name.replace(" ", "_"), h3 = Kk(l.state, s);
53297
+ let b = o.name.replace(" ", "_"), h3 = Jk(l.state, s);
53267
53298
  if (h3 == null)
53268
53299
  return;
53269
53300
  let y = { type: "remove", id: s }, _ = `word/media/${b}`, g = d.nodes.image.create({
@@ -53422,7 +53453,7 @@ ${t}
53422
53453
  const o = zf$1(this.activeEditor), n = Md$1(this.activeEditor.state);
53423
53454
  this.toolbarItems.forEach((e) => {
53424
53455
  if (e.resetDisabled(), e.name.value === "linkedStyles")
53425
- return this.activeEditor && !Wk(this.activeEditor).length ? e.deactivate() : e.activate();
53456
+ return this.activeEditor && !qk(this.activeEditor).length ? e.deactivate() : e.activate();
53426
53457
  const i3 = o.find((s) => s.name === e.name.value);
53427
53458
  i3 ? e.activate(i3.attrs) : e.deactivate();
53428
53459
  const c3 = o.find((s) => s.name === "spacing");
@@ -53487,7 +53518,7 @@ ${t}
53487
53518
  n.value || o.setDisabled(true);
53488
53519
  });
53489
53520
  }, nt = function() {
53490
- this.activeEditor && (this.undoDepth = $k(this.activeEditor.state), this.redoDepth = Hk(this.activeEditor.state));
53521
+ this.activeEditor && (this.undoDepth = jk(this.activeEditor.state), this.redoDepth = Wk(this.activeEditor.state));
53491
53522
  }, he = function({ item: o, argument: n }, e) {
53492
53523
  if (!n || !this.activeEditor) return;
53493
53524
  let i3 = o.command;
@@ -53647,7 +53678,7 @@ ${t}
53647
53678
  ], 6))), 256))
53648
53679
  ], 4));
53649
53680
  }
53650
- }, oo = /* @__PURE__ */ bk(no, [["__scopeId", "data-v-ad77036c"]]), io = { class: "super-editor-container" }, so = {
53681
+ }, oo = /* @__PURE__ */ vk(no, [["__scopeId", "data-v-ad77036c"]]), io = { class: "super-editor-container" }, so = {
53651
53682
  key: 1,
53652
53683
  class: "placeholder-editor"
53653
53684
  }, lo = { class: "placeholder-title" }, ao = {
@@ -53709,7 +53740,7 @@ ${t}
53709
53740
  C.on("synced", A);
53710
53741
  }
53711
53742
  }, h3 = () => {
53712
- const p3 = Lk();
53743
+ const p3 = Bk();
53713
53744
  return n.options.pagination ? p3 : p3.filter((C) => C.name !== "pagination");
53714
53745
  }, y = async ({ content: p3, media: C = {}, mediaFiles: A = {}, fonts: H3 = {} } = {}) => {
53715
53746
  i3.value = new ji$1({
@@ -53820,7 +53851,7 @@ ${t}
53820
53851
  ]))
53821
53852
  ]));
53822
53853
  }
53823
- }, vo = /* @__PURE__ */ bk(ao, [["__scopeId", "data-v-ff8f86f4"]]), ro = ["innerHTML"], co = {
53854
+ }, vo = /* @__PURE__ */ vk(ao, [["__scopeId", "data-v-ff8f86f4"]]), ro = ["innerHTML"], co = {
53824
53855
  __name: "SuperInput",
53825
53856
  props: {
53826
53857
  modelValue: {
@@ -53852,11 +53883,11 @@ ${t}
53852
53883
  }, d = ({ editor: h3, transaction: y }) => {
53853
53884
  c3.value = false, o("blur", { editor: h3, transaction: y });
53854
53885
  }, u = async () => {
53855
- zw.options.placeholder = n.placeholder || "Type something...", n.options.onTransaction = s, n.options.onFocus = a, n.options.onBlur = d, e.value = new ji$1({
53886
+ Vw.options.placeholder = n.placeholder || "Type something...", n.options.onTransaction = s, n.options.onFocus = a, n.options.onBlur = d, e.value = new ji$1({
53856
53887
  mode: "text",
53857
53888
  content: document.getElementById("currentContent"),
53858
53889
  element: i3.value,
53859
- extensions: Rk(),
53890
+ extensions: Fk(),
53860
53891
  users: n.users,
53861
53892
  ...n.options
53862
53893
  });
@@ -53885,7 +53916,7 @@ ${t}
53885
53916
  }, null, 512)
53886
53917
  ], 2));
53887
53918
  }
53888
- }, bo = /* @__PURE__ */ bk(co, [["__scopeId", "data-v-4d5cff52"]]);
53919
+ }, bo = /* @__PURE__ */ vk(co, [["__scopeId", "data-v-4d5cff52"]]);
53889
53920
  const DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
53890
53921
  const PDF = "application/pdf";
53891
53922
  const HTML = "text/html";
@@ -56101,7 +56132,7 @@ ${t}
56101
56132
  });
56102
56133
  addComment({ superdoc: superdoc2, comment: newComment });
56103
56134
  });
56104
- const trackedChanges = Xk.getTrackChanges(editor.state);
56135
+ const trackedChanges = Yk.getTrackChanges(editor.state);
56105
56136
  trackedChanges.forEach(({ mark }) => {
56106
56137
  const foundComment = commentsList.value.find((i3) => i3.commentId === mark.attrs.id);
56107
56138
  if (foundComment) {
@@ -56142,7 +56173,7 @@ ${t}
56142
56173
  mode: "text",
56143
56174
  isHeadless: true,
56144
56175
  content: div,
56145
- extensions: Rk()
56176
+ extensions: Fk()
56146
56177
  });
56147
56178
  return editor.getJSON().content[0];
56148
56179
  };
@@ -56166,7 +56197,7 @@ ${t}
56166
56197
  isHeadless: true,
56167
56198
  content: commentTextJson,
56168
56199
  loadFromSchema: true,
56169
- extensions: Rk()
56200
+ extensions: Fk()
56170
56201
  });
56171
56202
  return editor.getHTML();
56172
56203
  } catch (error) {
@@ -68638,7 +68669,7 @@ ${style2}
68638
68669
  this.config.colors = shuffleArray(this.config.colors);
68639
68670
  this.userColorMap = /* @__PURE__ */ new Map();
68640
68671
  this.colorIndex = 0;
68641
- this.version = "0.10.12";
68672
+ this.version = "0.10.14";
68642
68673
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
68643
68674
  this.superdocId = config.superdocId || v4();
68644
68675
  this.colors = this.config.colors;
@@ -69047,11 +69078,11 @@ ${style2}
69047
69078
  exports2.SuperDoc = SuperDoc;
69048
69079
  exports2.compareVersions = compareVersions;
69049
69080
  exports2.createZip = c$3;
69050
- exports2.fieldAnnotationHelpers = qk;
69081
+ exports2.fieldAnnotationHelpers = Xk;
69051
69082
  exports2.getFileObject = getFileObject;
69052
- exports2.getRichTextExtensions = Rk;
69083
+ exports2.getRichTextExtensions = Fk;
69053
69084
  exports2.superEditorHelpers = Ad$1;
69054
- exports2.trackChangesHelpers = Xk;
69085
+ exports2.trackChangesHelpers = Yk;
69055
69086
  Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
69056
69087
  });
69057
69088
  //# sourceMappingURL=superdoc.umd.js.map