@harbour-enterprises/superdoc 0.9.31 → 0.9.32

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.
@@ -7340,19 +7340,19 @@
7340
7340
  }
7341
7341
  return container;
7342
7342
  }
7343
- var Bu$2 = Object.defineProperty;
7343
+ var ku$2 = Object.defineProperty;
7344
7344
  var Oi$2 = (r22) => {
7345
7345
  throw TypeError(r22);
7346
7346
  };
7347
- var ku$2 = (r22, e, t) => e in r22 ? Bu$2(r22, e, { enumerable: true, configurable: true, writable: true, value: t }) : r22[e] = t;
7348
- var _t$1 = (r22, e, t) => ku$2(r22, typeof e != "symbol" ? e + "" : e, t), Nu$2 = (r22, e, t) => e.has(r22) || Oi$2("Cannot " + t);
7347
+ var Nu$2 = (r22, e, t) => e in r22 ? ku$2(r22, e, { enumerable: true, configurable: true, writable: true, value: t }) : r22[e] = t;
7348
+ var _t$1 = (r22, e, t) => Nu$2(r22, typeof e != "symbol" ? e + "" : e, t), Iu$2 = (r22, e, t) => e.has(r22) || Oi$2("Cannot " + t);
7349
7349
  var Nr$1 = (r22, e, t) => e.has(r22) ? Oi$2("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r22) : e.set(r22, t);
7350
- var Ke$1 = (r22, e, t) => (Nu$2(r22, e, "access private method"), t);
7350
+ var Ke$1 = (r22, e, t) => (Iu$2(r22, e, "access private method"), t);
7351
7351
  var We$2 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
7352
- function Lo$2(r22) {
7352
+ function _o$2(r22) {
7353
7353
  return r22 && r22.__esModule && Object.prototype.hasOwnProperty.call(r22, "default") ? r22.default : r22;
7354
7354
  }
7355
- function Iu$2(r22) {
7355
+ function Ru$2(r22) {
7356
7356
  if (r22.__esModule) return r22;
7357
7357
  var e = r22.default;
7358
7358
  if (typeof e == "function") {
@@ -7372,15 +7372,15 @@
7372
7372
  }), t;
7373
7373
  }
7374
7374
  var Se = {}, Ar$1 = {};
7375
- Ar$1.byteLength = Ou$2;
7376
- Ar$1.toByteArray = _u$2;
7377
- Ar$1.fromByteArray = Uu$2;
7378
- var Ze$3 = [], Ve$2 = [], Ru$2 = typeof Uint8Array < "u" ? Uint8Array : Array, Ir$1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
7379
- for (var bt$2 = 0, Pu$2 = Ir$1.length; bt$2 < Pu$2; ++bt$2)
7375
+ Ar$1.byteLength = Lu$2;
7376
+ Ar$1.toByteArray = qu$2;
7377
+ Ar$1.fromByteArray = ju$2;
7378
+ var Ze$3 = [], Ve$2 = [], Pu$2 = typeof Uint8Array < "u" ? Uint8Array : Array, Ir$1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
7379
+ for (var bt$2 = 0, Ou$2 = Ir$1.length; bt$2 < Ou$2; ++bt$2)
7380
7380
  Ze$3[bt$2] = Ir$1[bt$2], Ve$2[Ir$1.charCodeAt(bt$2)] = bt$2;
7381
7381
  Ve$2[45] = 62;
7382
7382
  Ve$2[95] = 63;
7383
- function _o$2(r22) {
7383
+ function qo$1(r22) {
7384
7384
  var e = r22.length;
7385
7385
  if (e % 4 > 0)
7386
7386
  throw new Error("Invalid string. Length must be a multiple of 4");
@@ -7389,30 +7389,30 @@
7389
7389
  var n = t === e ? 0 : 4 - t % 4;
7390
7390
  return [t, n];
7391
7391
  }
7392
- function Ou$2(r22) {
7393
- var e = _o$2(r22), t = e[0], n = e[1];
7392
+ function Lu$2(r22) {
7393
+ var e = qo$1(r22), t = e[0], n = e[1];
7394
7394
  return (t + n) * 3 / 4 - n;
7395
7395
  }
7396
- function Lu$2(r22, e, t) {
7396
+ function _u$2(r22, e, t) {
7397
7397
  return (e + t) * 3 / 4 - t;
7398
7398
  }
7399
- function _u$2(r22) {
7400
- var e, t = _o$2(r22), n = t[0], i3 = t[1], s = new Ru$2(Lu$2(r22, n, i3)), o = 0, a = i3 > 0 ? n - 4 : n, u;
7399
+ function qu$2(r22) {
7400
+ var e, t = qo$1(r22), n = t[0], i3 = t[1], s = new Pu$2(_u$2(r22, n, i3)), o = 0, a = i3 > 0 ? n - 4 : n, u;
7401
7401
  for (u = 0; u < a; u += 4)
7402
7402
  e = Ve$2[r22.charCodeAt(u)] << 18 | Ve$2[r22.charCodeAt(u + 1)] << 12 | Ve$2[r22.charCodeAt(u + 2)] << 6 | Ve$2[r22.charCodeAt(u + 3)], s[o++] = e >> 16 & 255, s[o++] = e >> 8 & 255, s[o++] = e & 255;
7403
7403
  return i3 === 2 && (e = Ve$2[r22.charCodeAt(u)] << 2 | Ve$2[r22.charCodeAt(u + 1)] >> 4, s[o++] = e & 255), i3 === 1 && (e = Ve$2[r22.charCodeAt(u)] << 10 | Ve$2[r22.charCodeAt(u + 1)] << 4 | Ve$2[r22.charCodeAt(u + 2)] >> 2, s[o++] = e >> 8 & 255, s[o++] = e & 255), s;
7404
7404
  }
7405
- function qu$2(r22) {
7405
+ function Mu$2(r22) {
7406
7406
  return Ze$3[r22 >> 18 & 63] + Ze$3[r22 >> 12 & 63] + Ze$3[r22 >> 6 & 63] + Ze$3[r22 & 63];
7407
7407
  }
7408
- function Mu$2(r22, e, t) {
7408
+ function Uu$2(r22, e, t) {
7409
7409
  for (var n, i3 = [], s = e; s < t; s += 3)
7410
- n = (r22[s] << 16 & 16711680) + (r22[s + 1] << 8 & 65280) + (r22[s + 2] & 255), i3.push(qu$2(n));
7410
+ n = (r22[s] << 16 & 16711680) + (r22[s + 1] << 8 & 65280) + (r22[s + 2] & 255), i3.push(Mu$2(n));
7411
7411
  return i3.join("");
7412
7412
  }
7413
- function Uu$2(r22) {
7413
+ function ju$2(r22) {
7414
7414
  for (var e, t = r22.length, n = t % 3, i3 = [], s = 16383, o = 0, a = t - n; o < a; o += s)
7415
- i3.push(Mu$2(r22, o, o + s > a ? a : o + s));
7415
+ i3.push(Uu$2(r22, o, o + s > a ? a : o + s));
7416
7416
  return n === 1 ? (e = r22[t - 1], i3.push(
7417
7417
  Ze$3[e >> 2] + Ze$3[e << 4 & 63] + "=="
7418
7418
  )) : n === 2 && (e = (r22[t - 2] << 8) + r22[t - 1], i3.push(
@@ -8384,34 +8384,34 @@
8384
8384
  return l;
8385
8385
  }();
8386
8386
  function Le2(y) {
8387
- return typeof BigInt > "u" ? Fu2 : y;
8387
+ return typeof BigInt > "u" ? Bu2 : y;
8388
8388
  }
8389
- function Fu2() {
8389
+ function Bu2() {
8390
8390
  throw new Error("BigInt not supported");
8391
8391
  }
8392
8392
  })(Se);
8393
- const Ht$2 = Se.Buffer, ju$2 = Se.Blob, Hu$2 = Se.BlobOptions, Vu$2 = Se.Buffer, zu$2 = Se.File, Gu$2 = Se.FileOptions, Wu$2 = Se.INSPECT_MAX_BYTES, Ju$2 = Se.SlowBuffer, Ku$2 = Se.TranscodeEncoding, $u$2 = Se.atob, Xu$2 = Se.btoa, Yu$2 = Se.constants, Qu$2 = Se.isAscii, Zu$2 = Se.isUtf8, el$1 = Se.kMaxLength, tl$2 = Se.kStringMaxLength, rl$2 = Se.resolveObjectURL, nl$2 = Se.transcode, il$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8393
+ const Ht$2 = Se.Buffer, Hu$2 = Se.Blob, Vu$2 = Se.BlobOptions, zu$2 = Se.Buffer, Gu$2 = Se.File, Wu$2 = Se.FileOptions, Ju$2 = Se.INSPECT_MAX_BYTES, Ku$2 = Se.SlowBuffer, $u$2 = Se.TranscodeEncoding, Xu$2 = Se.atob, Yu$2 = Se.btoa, Qu$2 = Se.constants, Zu$2 = Se.isAscii, el$1 = Se.isUtf8, tl$2 = Se.kMaxLength, rl$2 = Se.kStringMaxLength, nl$2 = Se.resolveObjectURL, il$2 = Se.transcode, sl$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8394
8394
  __proto__: null,
8395
- Blob: ju$2,
8396
- BlobOptions: Hu$2,
8397
- Buffer: Vu$2,
8398
- File: zu$2,
8399
- FileOptions: Gu$2,
8400
- INSPECT_MAX_BYTES: Wu$2,
8401
- SlowBuffer: Ju$2,
8402
- TranscodeEncoding: Ku$2,
8403
- atob: $u$2,
8404
- btoa: Xu$2,
8405
- constants: Yu$2,
8395
+ Blob: Hu$2,
8396
+ BlobOptions: Vu$2,
8397
+ Buffer: zu$2,
8398
+ File: Gu$2,
8399
+ FileOptions: Wu$2,
8400
+ INSPECT_MAX_BYTES: Ju$2,
8401
+ SlowBuffer: Ku$2,
8402
+ TranscodeEncoding: $u$2,
8403
+ atob: Xu$2,
8404
+ btoa: Yu$2,
8405
+ constants: Qu$2,
8406
8406
  default: Ht$2,
8407
- isAscii: Qu$2,
8408
- isUtf8: Zu$2,
8409
- kMaxLength: el$1,
8410
- kStringMaxLength: tl$2,
8411
- resolveObjectURL: rl$2,
8412
- transcode: nl$2
8407
+ isAscii: Zu$2,
8408
+ isUtf8: el$1,
8409
+ kMaxLength: tl$2,
8410
+ kStringMaxLength: rl$2,
8411
+ resolveObjectURL: nl$2,
8412
+ transcode: il$2
8413
8413
  }, Symbol.toStringTag, { value: "Module" }));
8414
- var qo$1 = {}, Yt$3 = { exports: {} }, Li$2;
8414
+ var Mo$2 = {}, Yt$3 = { exports: {} }, Li$2;
8415
8415
  function yi$2() {
8416
8416
  if (Li$2) return Yt$3.exports;
8417
8417
  Li$2 = 1;
@@ -8643,10 +8643,10 @@
8643
8643
  }
8644
8644
  }), Qt$2.exports;
8645
8645
  }
8646
- function sl$2(r22) {
8646
+ function ol$2(r22) {
8647
8647
  return r22 && r22.__esModule && Object.prototype.hasOwnProperty.call(r22, "default") ? r22.default : r22;
8648
8648
  }
8649
- var Mo$2 = { exports: {} }, Ee$2 = Mo$2.exports = {}, Xe$3, Ye$3;
8649
+ var Uo$1 = { exports: {} }, Ee$2 = Uo$1.exports = {}, Xe$3, Ye$3;
8650
8650
  function oi$2() {
8651
8651
  throw new Error("setTimeout has not been defined");
8652
8652
  }
@@ -8665,7 +8665,7 @@
8665
8665
  Ye$3 = ai$2;
8666
8666
  }
8667
8667
  })();
8668
- function Uo$1(r22) {
8668
+ function jo$2(r22) {
8669
8669
  if (Xe$3 === setTimeout)
8670
8670
  return setTimeout(r22, 0);
8671
8671
  if ((Xe$3 === oi$2 || !Xe$3) && setTimeout)
@@ -8680,7 +8680,7 @@
8680
8680
  }
8681
8681
  }
8682
8682
  }
8683
- function ol$2(r22) {
8683
+ function al$2(r22) {
8684
8684
  if (Ye$3 === clearTimeout)
8685
8685
  return clearTimeout(r22);
8686
8686
  if ((Ye$3 === ai$2 || !Ye$3) && clearTimeout)
@@ -8696,19 +8696,19 @@
8696
8696
  }
8697
8697
  }
8698
8698
  var ot$1 = [], Et$2 = false, mt$2, sr$2 = -1;
8699
- function al$2() {
8700
- !Et$2 || !mt$2 || (Et$2 = false, mt$2.length ? ot$1 = mt$2.concat(ot$1) : sr$2 = -1, ot$1.length && jo$2());
8699
+ function ul$2() {
8700
+ !Et$2 || !mt$2 || (Et$2 = false, mt$2.length ? ot$1 = mt$2.concat(ot$1) : sr$2 = -1, ot$1.length && Ho$2());
8701
8701
  }
8702
- function jo$2() {
8702
+ function Ho$2() {
8703
8703
  if (!Et$2) {
8704
- var r22 = Uo$1(al$2);
8704
+ var r22 = jo$2(ul$2);
8705
8705
  Et$2 = true;
8706
8706
  for (var e = ot$1.length; e; ) {
8707
8707
  for (mt$2 = ot$1, ot$1 = []; ++sr$2 < e; )
8708
8708
  mt$2 && mt$2[sr$2].run();
8709
8709
  sr$2 = -1, e = ot$1.length;
8710
8710
  }
8711
- mt$2 = null, Et$2 = false, ol$2(r22);
8711
+ mt$2 = null, Et$2 = false, al$2(r22);
8712
8712
  }
8713
8713
  }
8714
8714
  Ee$2.nextTick = function(r22) {
@@ -8716,12 +8716,12 @@
8716
8716
  if (arguments.length > 1)
8717
8717
  for (var t = 1; t < arguments.length; t++)
8718
8718
  e[t - 1] = arguments[t];
8719
- ot$1.push(new Ho$2(r22, e)), ot$1.length === 1 && !Et$2 && Uo$1(jo$2);
8719
+ ot$1.push(new Vo$1(r22, e)), ot$1.length === 1 && !Et$2 && jo$2(Ho$2);
8720
8720
  };
8721
- function Ho$2(r22, e) {
8721
+ function Vo$1(r22, e) {
8722
8722
  this.fun = r22, this.array = e;
8723
8723
  }
8724
- Ho$2.prototype.run = function() {
8724
+ Vo$1.prototype.run = function() {
8725
8725
  this.fun.apply(null, this.array);
8726
8726
  };
8727
8727
  Ee$2.title = "browser";
@@ -8756,15 +8756,15 @@
8756
8756
  Ee$2.umask = function() {
8757
8757
  return 0;
8758
8758
  };
8759
- var ul$2 = Mo$2.exports;
8760
- const me$1 = /* @__PURE__ */ sl$2(ul$2);
8759
+ var ll$2 = Uo$1.exports;
8760
+ const me$1 = /* @__PURE__ */ ol$2(ll$2);
8761
8761
  var Rr$1, qi$2;
8762
- function Vo$1() {
8762
+ function zo$2() {
8763
8763
  return qi$2 || (qi$2 = 1, Rr$1 = yi$2().EventEmitter), Rr$1;
8764
8764
  }
8765
- const Dr$1 = /* @__PURE__ */ Iu$2(il$2);
8765
+ const Dr$1 = /* @__PURE__ */ Ru$2(sl$2);
8766
8766
  var Pr$1 = {}, Or = {}, Lr, Mi$2;
8767
- function zo$2() {
8767
+ function Go$2() {
8768
8768
  return Mi$2 || (Mi$2 = 1, Lr = function() {
8769
8769
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
8770
8770
  return false;
@@ -8797,33 +8797,33 @@
8797
8797
  function Er$2() {
8798
8798
  if (Ui$2) return _r;
8799
8799
  Ui$2 = 1;
8800
- var r22 = zo$2();
8800
+ var r22 = Go$2();
8801
8801
  return _r = function() {
8802
8802
  return r22() && !!Symbol.toStringTag;
8803
8803
  }, _r;
8804
8804
  }
8805
8805
  var qr$2, ji$2;
8806
- function Go$2() {
8806
+ function Wo$1() {
8807
8807
  return ji$2 || (ji$2 = 1, qr$2 = Object), qr$2;
8808
8808
  }
8809
8809
  var Mr$2, Hi$2;
8810
- function ll$2() {
8810
+ function cl$2() {
8811
8811
  return Hi$2 || (Hi$2 = 1, Mr$2 = Error), Mr$2;
8812
8812
  }
8813
8813
  var Ur$1, Vi$2;
8814
- function cl$2() {
8814
+ function fl$2() {
8815
8815
  return Vi$2 || (Vi$2 = 1, Ur$1 = EvalError), Ur$1;
8816
8816
  }
8817
8817
  var jr, zi$2;
8818
- function fl$2() {
8818
+ function dl$2() {
8819
8819
  return zi$2 || (zi$2 = 1, jr = RangeError), jr;
8820
8820
  }
8821
8821
  var Hr, Gi$2;
8822
- function dl$2() {
8822
+ function ml$2() {
8823
8823
  return Gi$2 || (Gi$2 = 1, Hr = ReferenceError), Hr;
8824
8824
  }
8825
8825
  var Vr$1, Wi$2;
8826
- function Wo$1() {
8826
+ function Jo$2() {
8827
8827
  return Wi$2 || (Wi$2 = 1, Vr$1 = SyntaxError), Vr$1;
8828
8828
  }
8829
8829
  var zr$1, Ji$2;
@@ -8831,57 +8831,57 @@
8831
8831
  return Ji$2 || (Ji$2 = 1, zr$1 = TypeError), zr$1;
8832
8832
  }
8833
8833
  var Gr$2, Ki$2;
8834
- function ml$2() {
8834
+ function pl$2() {
8835
8835
  return Ki$2 || (Ki$2 = 1, Gr$2 = URIError), Gr$2;
8836
8836
  }
8837
8837
  var Wr$1, $i$2;
8838
- function pl$2() {
8838
+ function hl$2() {
8839
8839
  return $i$2 || ($i$2 = 1, Wr$1 = Math.abs), Wr$1;
8840
8840
  }
8841
8841
  var Jr$2, Xi$2;
8842
- function hl$2() {
8842
+ function gl$2() {
8843
8843
  return Xi$2 || (Xi$2 = 1, Jr$2 = Math.floor), Jr$2;
8844
8844
  }
8845
8845
  var Kr$2, Yi$2;
8846
- function gl$2() {
8846
+ function wl$2() {
8847
8847
  return Yi$2 || (Yi$2 = 1, Kr$2 = Math.max), Kr$2;
8848
8848
  }
8849
8849
  var $r$1, Qi$2;
8850
- function wl$2() {
8850
+ function yl$2() {
8851
8851
  return Qi$2 || (Qi$2 = 1, $r$1 = Math.min), $r$1;
8852
8852
  }
8853
8853
  var Xr$2, Zi$2;
8854
- function yl$2() {
8854
+ function bl$2() {
8855
8855
  return Zi$2 || (Zi$2 = 1, Xr$2 = Math.pow), Xr$2;
8856
8856
  }
8857
8857
  var Yr$2, es$2;
8858
- function bl$2() {
8858
+ function xl$2() {
8859
8859
  return es$2 || (es$2 = 1, Yr$2 = Math.round), Yr$2;
8860
8860
  }
8861
8861
  var Qr$2, ts$2;
8862
- function xl$2() {
8862
+ function Al$2() {
8863
8863
  return ts$2 || (ts$2 = 1, Qr$2 = Number.isNaN || function(e) {
8864
8864
  return e !== e;
8865
8865
  }), Qr$2;
8866
8866
  }
8867
8867
  var Zr$2, rs$2;
8868
- function Al$2() {
8868
+ function Dl$2() {
8869
8869
  if (rs$2) return Zr$2;
8870
8870
  rs$2 = 1;
8871
- var r22 = xl$2();
8871
+ var r22 = Al$2();
8872
8872
  return Zr$2 = function(t) {
8873
8873
  return r22(t) || t === 0 ? t : t < 0 ? -1 : 1;
8874
8874
  }, Zr$2;
8875
8875
  }
8876
8876
  var en$2, ns$2;
8877
- function Dl$2() {
8877
+ function El$2() {
8878
8878
  return ns$2 || (ns$2 = 1, en$2 = Object.getOwnPropertyDescriptor), en$2;
8879
8879
  }
8880
8880
  var tn$2, is$2;
8881
8881
  function It$2() {
8882
8882
  if (is$2) return tn$2;
8883
8883
  is$2 = 1;
8884
- var r22 = Dl$2();
8884
+ var r22 = El$2();
8885
8885
  if (r22)
8886
8886
  try {
8887
8887
  r22([], "length");
@@ -8904,27 +8904,27 @@
8904
8904
  return rn$3 = r22, rn$3;
8905
8905
  }
8906
8906
  var nn$3, os$2;
8907
- function El$2() {
8907
+ function vl$2() {
8908
8908
  if (os$2) return nn$3;
8909
8909
  os$2 = 1;
8910
- var r22 = typeof Symbol < "u" && Symbol, e = zo$2();
8910
+ var r22 = typeof Symbol < "u" && Symbol, e = Go$2();
8911
8911
  return nn$3 = function() {
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
8915
  var sn$2, as$2;
8916
- function Jo$2() {
8916
+ function Ko$1() {
8917
8917
  return as$2 || (as$2 = 1, sn$2 = typeof Reflect < "u" && Reflect.getPrototypeOf || null), sn$2;
8918
8918
  }
8919
8919
  var on$4, us$2;
8920
- function Ko$1() {
8920
+ function $o$1() {
8921
8921
  if (us$2) return on$4;
8922
8922
  us$2 = 1;
8923
- var r22 = Go$2();
8923
+ var r22 = Wo$1();
8924
8924
  return on$4 = r22.getPrototypeOf || null, on$4;
8925
8925
  }
8926
8926
  var an$3, ls$2;
8927
- function vl$2() {
8927
+ function Cl$2() {
8928
8928
  if (ls$2) return an$3;
8929
8929
  ls$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) {
@@ -8972,7 +8972,7 @@
8972
8972
  function Kt$2() {
8973
8973
  if (cs$2) return un$2;
8974
8974
  cs$2 = 1;
8975
- var r22 = vl$2();
8975
+ var r22 = Cl$2();
8976
8976
  return un$2 = Function.prototype.bind || r22, un$2;
8977
8977
  }
8978
8978
  var ln$3, fs$2;
@@ -8984,21 +8984,21 @@
8984
8984
  return ds$2 || (ds$2 = 1, cn$3 = Function.prototype.apply), cn$3;
8985
8985
  }
8986
8986
  var fn$2, ms$1;
8987
- function Cl$2() {
8987
+ function Sl$2() {
8988
8988
  return ms$1 || (ms$1 = 1, fn$2 = typeof Reflect < "u" && Reflect && Reflect.apply), fn$2;
8989
8989
  }
8990
8990
  var dn$3, ps$1;
8991
- function $o$1() {
8991
+ function Xo$1() {
8992
8992
  if (ps$1) return dn$3;
8993
8993
  ps$1 = 1;
8994
- var r22 = Kt$2(), e = xi$2(), t = bi$1(), n = Cl$2();
8994
+ var r22 = Kt$2(), e = xi$2(), t = bi$1(), n = Sl$2();
8995
8995
  return dn$3 = n || r22.call(t, e), dn$3;
8996
8996
  }
8997
8997
  var mn$3, hs$2;
8998
8998
  function Ai$2() {
8999
8999
  if (hs$2) return mn$3;
9000
9000
  hs$2 = 1;
9001
- var r22 = Kt$2(), e = Jt$2(), t = bi$1(), n = $o$1();
9001
+ var r22 = Kt$2(), e = Jt$2(), t = bi$1(), n = Xo$1();
9002
9002
  return mn$3 = function(s) {
9003
9003
  if (s.length < 1 || typeof s[0] != "function")
9004
9004
  throw new e("a function is required");
@@ -9006,7 +9006,7 @@
9006
9006
  }, mn$3;
9007
9007
  }
9008
9008
  var pn$1, gs$1;
9009
- function Sl$2() {
9009
+ function Tl$2() {
9010
9010
  if (gs$1) return pn$1;
9011
9011
  gs$1 = 1;
9012
9012
  var r22 = Ai$2(), e = It$2(), t;
@@ -9033,7 +9033,7 @@
9033
9033
  function Di$2() {
9034
9034
  if (ws$1) return hn$2;
9035
9035
  ws$1 = 1;
9036
- var r22 = Jo$2(), e = Ko$1(), t = Sl$2();
9036
+ var r22 = Ko$1(), e = $o$1(), t = Tl$2();
9037
9037
  return hn$2 = r22 ? function(i3) {
9038
9038
  return r22(i3);
9039
9039
  } : e ? function(i3) {
@@ -9045,17 +9045,17 @@
9045
9045
  } : null, hn$2;
9046
9046
  }
9047
9047
  var gn$3, ys$1;
9048
- function Xo$1() {
9048
+ function Yo$2() {
9049
9049
  if (ys$1) return gn$3;
9050
9050
  ys$1 = 1;
9051
9051
  var r22 = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = Kt$2();
9052
9052
  return gn$3 = t.call(r22, e), gn$3;
9053
9053
  }
9054
9054
  var wn$3, bs$1;
9055
- function Yo$2() {
9055
+ function Qo$2() {
9056
9056
  if (bs$1) return wn$3;
9057
9057
  bs$1 = 1;
9058
- var r22, e = Go$2(), t = ll$2(), n = cl$2(), i3 = fl$2(), s = dl$2(), o = Wo$1(), a = Jt$2(), u = ml$2(), f3 = pl$2(), c3 = hl$2(), h3 = gl$2(), g = wl$2(), S = yl$2(), T3 = bl$2(), A = Al$2(), B = Function, w = function(I3) {
9058
+ var r22, e = Wo$1(), t = cl$2(), n = fl$2(), i3 = dl$2(), s = ml$2(), o = Jo$2(), a = Jt$2(), u = pl$2(), f3 = hl$2(), c3 = gl$2(), h3 = wl$2(), g = yl$2(), S = bl$2(), T3 = xl$2(), A = Dl$2(), B = Function, w = function(I3) {
9059
9059
  try {
9060
9060
  return B('"use strict"; return (' + I3 + ").constructor;")();
9061
9061
  } catch {
@@ -9072,7 +9072,7 @@
9072
9072
  return C;
9073
9073
  }
9074
9074
  }
9075
- }() : C, N3 = El$2()(), M = Di$2(), q = Ko$1(), D3 = Jo$2(), $3 = xi$2(), ie = bi$1(), ee = {}, X3 = typeof Uint8Array > "u" || !M ? r22 : M(Uint8Array), ce2 = {
9075
+ }() : C, N3 = vl$2()(), M = Di$2(), q = $o$1(), D3 = Ko$1(), $3 = xi$2(), ie = bi$1(), ee = {}, X3 = typeof Uint8Array > "u" || !M ? r22 : M(Uint8Array), ce2 = {
9076
9076
  __proto__: null,
9077
9077
  "%AggregateError%": typeof AggregateError > "u" ? r22 : AggregateError,
9078
9078
  "%Array%": Array,
@@ -9232,7 +9232,7 @@
9232
9232
  "%URIErrorPrototype%": ["URIError", "prototype"],
9233
9233
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
9234
9234
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
9235
- }, pe2 = Kt$2(), J3 = Xo$1(), ne = pe2.call(ie, Array.prototype.concat), ae2 = pe2.call($3, Array.prototype.splice), L3 = pe2.call(ie, String.prototype.replace), H3 = pe2.call(ie, String.prototype.slice), V = pe2.call(ie, RegExp.prototype.exec), K3 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, P3 = /\\(\\)?/g, p3 = function(E3) {
9235
+ }, pe2 = Kt$2(), J3 = Yo$2(), ne = pe2.call(ie, Array.prototype.concat), ae2 = pe2.call($3, Array.prototype.splice), L3 = pe2.call(ie, String.prototype.replace), H3 = pe2.call(ie, String.prototype.slice), V = pe2.call(ie, RegExp.prototype.exec), K3 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, P3 = /\\(\\)?/g, p3 = function(E3) {
9236
9236
  var b = H3(E3, 0, 1), x = H3(E3, -1);
9237
9237
  if (b === "%" && x !== "%")
9238
9238
  throw new o("invalid intrinsic syntax, expected closing `%`");
@@ -9292,7 +9292,7 @@
9292
9292
  function $t$1() {
9293
9293
  if (xs$1) return yn$3;
9294
9294
  xs$1 = 1;
9295
- var r22 = Yo$2(), e = Ai$2(), t = e([r22("%String.prototype.indexOf%")]);
9295
+ var r22 = Qo$2(), e = Ai$2(), t = e([r22("%String.prototype.indexOf%")]);
9296
9296
  return yn$3 = function(i3, s) {
9297
9297
  var o = (
9298
9298
  /** @type {(this: unknown, ...args: unknown[]) => unknown} */
@@ -9305,7 +9305,7 @@
9305
9305
  }, yn$3;
9306
9306
  }
9307
9307
  var bn$3, As$1;
9308
- function Tl$2() {
9308
+ function Fl$2() {
9309
9309
  if (As$1) return bn$3;
9310
9310
  As$1 = 1;
9311
9311
  var r22 = Er$2()(), e = $t$1(), t = e("Object.prototype.toString"), n = function(a) {
@@ -9318,10 +9318,10 @@
9318
9318
  return n.isLegacyArguments = i3, bn$3 = s ? n : i3, bn$3;
9319
9319
  }
9320
9320
  var xn$3, Ds$1;
9321
- function Fl$2() {
9321
+ function Bl$2() {
9322
9322
  if (Ds$1) return xn$3;
9323
9323
  Ds$1 = 1;
9324
- var r22 = $t$1(), e = Er$2()(), t = Xo$1(), n = It$2(), i3;
9324
+ var r22 = $t$1(), e = Er$2()(), t = Yo$2(), n = It$2(), i3;
9325
9325
  if (e) {
9326
9326
  var s = r22("RegExp.prototype.exec"), o = {}, a = function() {
9327
9327
  throw o;
@@ -9362,10 +9362,10 @@
9362
9362
  return xn$3 = i3, xn$3;
9363
9363
  }
9364
9364
  var An$1, Es$1;
9365
- function Bl$2() {
9365
+ function kl$2() {
9366
9366
  if (Es$1) return An$1;
9367
9367
  Es$1 = 1;
9368
- var r22 = $t$1(), e = Fl$2(), t = r22("RegExp.prototype.exec"), n = Jt$2();
9368
+ var r22 = $t$1(), e = Bl$2(), t = r22("RegExp.prototype.exec"), n = Jt$2();
9369
9369
  return An$1 = function(s) {
9370
9370
  if (!e(s))
9371
9371
  throw new n("`regex` must be a RegExp");
@@ -9375,10 +9375,10 @@
9375
9375
  }, An$1;
9376
9376
  }
9377
9377
  var Dn$3, vs$1;
9378
- function kl$2() {
9378
+ function Nl$2() {
9379
9379
  if (vs$1) return Dn$3;
9380
9380
  vs$1 = 1;
9381
- var r22 = $t$1(), e = Bl$2(), t = e(/^\s*(?:function)?\*/), n = Er$2()(), i3 = Di$2(), s = r22("Object.prototype.toString"), o = r22("Function.prototype.toString"), a = function() {
9381
+ var r22 = $t$1(), e = kl$2(), t = e(/^\s*(?:function)?\*/), n = Er$2()(), i3 = Di$2(), s = r22("Object.prototype.toString"), o = r22("Function.prototype.toString"), a = function() {
9382
9382
  if (!n)
9383
9383
  return false;
9384
9384
  try {
@@ -9408,7 +9408,7 @@
9408
9408
  }, Dn$3;
9409
9409
  }
9410
9410
  var En$2, Cs$1;
9411
- function Nl$2() {
9411
+ function Il$2() {
9412
9412
  if (Cs$1) return En$2;
9413
9413
  Cs$1 = 1;
9414
9414
  var r22 = Function.prototype.toString, e = typeof Reflect == "object" && Reflect !== null && Reflect.apply, t, n;
@@ -9480,10 +9480,10 @@
9480
9480
  }, En$2;
9481
9481
  }
9482
9482
  var vn$3, Ss$1;
9483
- function Il$2() {
9483
+ function Rl$2() {
9484
9484
  if (Ss$1) return vn$3;
9485
9485
  Ss$1 = 1;
9486
- var r22 = Nl$2(), e = Object.prototype.toString, t = Object.prototype.hasOwnProperty, n = function(u, f3, c3) {
9486
+ var r22 = Il$2(), e = Object.prototype.toString, t = Object.prototype.hasOwnProperty, n = function(u, f3, c3) {
9487
9487
  for (var h3 = 0, g = u.length; h3 < g; h3++)
9488
9488
  t.call(u, h3) && (c3 == null ? f3(u[h3], h3, u) : f3.call(c3, u[h3], h3, u));
9489
9489
  }, i3 = function(u, f3, c3) {
@@ -9504,7 +9504,7 @@
9504
9504
  }, vn$3;
9505
9505
  }
9506
9506
  var Cn$2, Ts$1;
9507
- function Rl$2() {
9507
+ function Pl$2() {
9508
9508
  return Ts$1 || (Ts$1 = 1, Cn$2 = [
9509
9509
  "Float16Array",
9510
9510
  "Float32Array",
@@ -9521,10 +9521,10 @@
9521
9521
  ]), Cn$2;
9522
9522
  }
9523
9523
  var Sn$3, Fs$1;
9524
- function Pl$2() {
9524
+ function Ol$2() {
9525
9525
  if (Fs$1) return Sn$3;
9526
9526
  Fs$1 = 1;
9527
- var r22 = Rl$2(), e = typeof globalThis > "u" ? We$2 : globalThis;
9527
+ var r22 = Pl$2(), e = typeof globalThis > "u" ? We$2 : globalThis;
9528
9528
  return Sn$3 = function() {
9529
9529
  for (var n = [], i3 = 0; i3 < r22.length; i3++)
9530
9530
  typeof e[r22[i3]] == "function" && (n[n.length] = r22[i3]);
@@ -9532,10 +9532,10 @@
9532
9532
  }, Sn$3;
9533
9533
  }
9534
9534
  var Tn$2 = { exports: {} }, Fn$2, Bs$1;
9535
- function Ol$2() {
9535
+ function Ll$2() {
9536
9536
  if (Bs$1) return Fn$2;
9537
9537
  Bs$1 = 1;
9538
- var r22 = vr$2(), e = Wo$1(), t = Jt$2(), n = It$2();
9538
+ var r22 = vr$2(), e = Jo$2(), t = Jt$2(), n = It$2();
9539
9539
  return Fn$2 = function(s, o, a) {
9540
9540
  if (!s || typeof s != "object" && typeof s != "function")
9541
9541
  throw new t("`obj` must be an object or a function`");
@@ -9564,7 +9564,7 @@
9564
9564
  }, Fn$2;
9565
9565
  }
9566
9566
  var Bn$2, ks$1;
9567
- function Ll$2() {
9567
+ function _l$2() {
9568
9568
  if (ks$1) return Bn$2;
9569
9569
  ks$1 = 1;
9570
9570
  var r22 = vr$2(), e = function() {
@@ -9581,10 +9581,10 @@
9581
9581
  }, Bn$2 = e, Bn$2;
9582
9582
  }
9583
9583
  var kn$2, Ns$1;
9584
- function _l$2() {
9584
+ function ql$2() {
9585
9585
  if (Ns$1) return kn$2;
9586
9586
  Ns$1 = 1;
9587
- var r22 = Yo$2(), e = Ol$2(), t = Ll$2()(), n = It$2(), i3 = Jt$2(), s = r22("%Math.floor%");
9587
+ var r22 = Qo$2(), e = Ll$2(), t = _l$2()(), n = It$2(), i3 = Jt$2(), s = r22("%Math.floor%");
9588
9588
  return kn$2 = function(a, u) {
9589
9589
  if (typeof a != "function")
9590
9590
  throw new i3("`fn` is not a function");
@@ -9611,18 +9611,18 @@
9611
9611
  }, kn$2;
9612
9612
  }
9613
9613
  var Nn$3, Is$1;
9614
- function ql$2() {
9614
+ function Ml$2() {
9615
9615
  if (Is$1) return Nn$3;
9616
9616
  Is$1 = 1;
9617
- var r22 = Kt$2(), e = xi$2(), t = $o$1();
9617
+ var r22 = Kt$2(), e = xi$2(), t = Xo$1();
9618
9618
  return Nn$3 = function() {
9619
9619
  return t(r22, e, arguments);
9620
9620
  }, Nn$3;
9621
9621
  }
9622
9622
  var Rs$1;
9623
- function Ml$2() {
9623
+ function Ul$2() {
9624
9624
  return Rs$1 || (Rs$1 = 1, function(r22) {
9625
- var e = _l$2(), t = vr$2(), n = Ai$2(), i3 = ql$2();
9625
+ var e = ql$2(), t = vr$2(), n = Ai$2(), i3 = Ml$2();
9626
9626
  r22.exports = function(o) {
9627
9627
  var a = n(arguments), u = o.length - (arguments.length - 1);
9628
9628
  return e(
@@ -9634,10 +9634,10 @@
9634
9634
  }(Tn$2)), Tn$2.exports;
9635
9635
  }
9636
9636
  var In$3, Ps$1;
9637
- function Qo$2() {
9637
+ function Zo$2() {
9638
9638
  if (Ps$1) return In$3;
9639
9639
  Ps$1 = 1;
9640
- var r22 = Il$2(), e = Pl$2(), t = Ml$2(), n = $t$1(), i3 = It$2(), s = Di$2(), o = n("Object.prototype.toString"), a = Er$2()(), u = typeof globalThis > "u" ? We$2 : globalThis, f3 = e(), c3 = n("String.prototype.slice"), h3 = n("Array.prototype.indexOf", true) || function(B, w) {
9640
+ var r22 = Rl$2(), e = Ol$2(), t = Ul$2(), n = $t$1(), i3 = It$2(), s = Di$2(), o = n("Object.prototype.toString"), a = Er$2()(), u = typeof globalThis > "u" ? We$2 : globalThis, f3 = e(), c3 = n("String.prototype.slice"), h3 = n("Array.prototype.indexOf", true) || function(B, w) {
9641
9641
  for (var k = 0; k < B.length; k += 1)
9642
9642
  if (B[k] === w)
9643
9643
  return k;
@@ -9704,18 +9704,18 @@
9704
9704
  }, In$3;
9705
9705
  }
9706
9706
  var Rn$3, Os$1;
9707
- function Ul$2() {
9707
+ function jl$2() {
9708
9708
  if (Os$1) return Rn$3;
9709
9709
  Os$1 = 1;
9710
- var r22 = Qo$2();
9710
+ var r22 = Zo$2();
9711
9711
  return Rn$3 = function(t) {
9712
9712
  return !!r22(t);
9713
9713
  }, Rn$3;
9714
9714
  }
9715
9715
  var Ls$1;
9716
- function jl$2() {
9716
+ function Hl$2() {
9717
9717
  return Ls$1 || (Ls$1 = 1, function(r22) {
9718
- var e = Tl$2(), t = kl$2(), n = Qo$2(), i3 = Ul$2();
9718
+ var e = Fl$2(), t = Nl$2(), n = Zo$2(), i3 = jl$2();
9719
9719
  function s(z) {
9720
9720
  return z.call.bind(z);
9721
9721
  }
@@ -9900,13 +9900,13 @@
9900
9900
  }(Or)), Or;
9901
9901
  }
9902
9902
  var Pn$3, _s$1;
9903
- function Hl$2() {
9903
+ function Vl$2() {
9904
9904
  return _s$1 || (_s$1 = 1, Pn$3 = function(e) {
9905
9905
  return e && typeof e == "object" && typeof e.copy == "function" && typeof e.fill == "function" && typeof e.readUInt8 == "function";
9906
9906
  }), Pn$3;
9907
9907
  }
9908
9908
  var qs$1;
9909
- function Zo$2() {
9909
+ function ea$1() {
9910
9910
  return qs$1 || (qs$1 = 1, function(r22) {
9911
9911
  var e = Object.getOwnPropertyDescriptors || function(H3) {
9912
9912
  for (var V = Object.keys(H3), K3 = {}, P3 = 0; P3 < V.length; P3++)
@@ -10126,7 +10126,7 @@
10126
10126
  `) + " " + L3.join(`,
10127
10127
  `) + " " + V[1] : V[0] + H3 + " " + L3.join(", ") + " " + V[1];
10128
10128
  }
10129
- r22.types = jl$2();
10129
+ r22.types = Hl$2();
10130
10130
  function B(L3) {
10131
10131
  return Array.isArray(L3);
10132
10132
  }
@@ -10183,7 +10183,7 @@
10183
10183
  return L3 === null || typeof L3 == "boolean" || typeof L3 == "number" || typeof L3 == "string" || typeof L3 == "symbol" || // ES6 symbol
10184
10184
  typeof L3 > "u";
10185
10185
  }
10186
- r22.isPrimitive = X3, r22.isBuffer = Hl$2();
10186
+ r22.isPrimitive = X3, r22.isBuffer = Vl$2();
10187
10187
  function ce2(L3) {
10188
10188
  return Object.prototype.toString.call(L3);
10189
10189
  }
@@ -10300,7 +10300,7 @@
10300
10300
  }(Pr$1)), Pr$1;
10301
10301
  }
10302
10302
  var On$3, Ms$1;
10303
- function Vl$2() {
10303
+ function zl$2() {
10304
10304
  if (Ms$1) return On$3;
10305
10305
  Ms$1 = 1;
10306
10306
  function r22(T3, A) {
@@ -10354,7 +10354,7 @@
10354
10354
  }
10355
10355
  return String(T3);
10356
10356
  }
10357
- var u = Dr$1, f3 = u.Buffer, c3 = Zo$2(), h3 = c3.inspect, g = h3 && h3.custom || "inspect";
10357
+ var u = Dr$1, f3 = u.Buffer, c3 = ea$1(), h3 = c3.inspect, g = h3 && h3.custom || "inspect";
10358
10358
  function S(T3, A, B) {
10359
10359
  f3.prototype.copy.call(T3, A, B);
10360
10360
  }
@@ -10465,7 +10465,7 @@
10465
10465
  }(), On$3;
10466
10466
  }
10467
10467
  var Ln$3, Us$1;
10468
- function ea$1() {
10468
+ function ta$1() {
10469
10469
  if (Us$1) return Ln$3;
10470
10470
  Us$1 = 1;
10471
10471
  function r22(o, a) {
@@ -10558,7 +10558,7 @@
10558
10558
  }, TypeError), t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event"), _n$3.codes = e, _n$3;
10559
10559
  }
10560
10560
  var qn$2, Hs$1;
10561
- function ta$1() {
10561
+ function ra$2() {
10562
10562
  if (Hs$1) return qn$2;
10563
10563
  Hs$1 = 1;
10564
10564
  var r22 = Rt$3().codes.ERR_INVALID_OPT_VALUE;
@@ -10581,7 +10581,7 @@
10581
10581
  }, qn$2;
10582
10582
  }
10583
10583
  var Mn$2, Vs$1;
10584
- function zl$2() {
10584
+ function Gl$1() {
10585
10585
  if (Vs$1) return Mn$2;
10586
10586
  Vs$1 = 1, Mn$2 = r22;
10587
10587
  function r22(t, n) {
@@ -10610,7 +10610,7 @@
10610
10610
  return Mn$2;
10611
10611
  }
10612
10612
  var Un$2, zs$1;
10613
- function ra$2() {
10613
+ function na$2() {
10614
10614
  if (zs$1) return Un$2;
10615
10615
  zs$1 = 1, Un$2 = q;
10616
10616
  function r22(P3) {
@@ -10622,8 +10622,8 @@
10622
10622
  var e;
10623
10623
  q.WritableState = N3;
10624
10624
  var t = {
10625
- deprecate: zl$2()
10626
- }, n = Vo$1(), i3 = Dr$1.Buffer, s = (typeof We$2 < "u" ? We$2 : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
10625
+ deprecate: Gl$1()
10626
+ }, n = zo$2(), i3 = Dr$1.Buffer, s = (typeof We$2 < "u" ? We$2 : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
10627
10627
  };
10628
10628
  function o(P3) {
10629
10629
  return i3.from(P3);
@@ -10631,7 +10631,7 @@
10631
10631
  function a(P3) {
10632
10632
  return i3.isBuffer(P3) || P3 instanceof s;
10633
10633
  }
10634
- var u = ea$1(), f3 = ta$1(), c3 = f3.getHighWaterMark, h3 = Rt$3().codes, g = h3.ERR_INVALID_ARG_TYPE, S = h3.ERR_METHOD_NOT_IMPLEMENTED, T3 = h3.ERR_MULTIPLE_CALLBACK, A = h3.ERR_STREAM_CANNOT_PIPE, B = h3.ERR_STREAM_DESTROYED, w = h3.ERR_STREAM_NULL_VALUES, k = h3.ERR_STREAM_WRITE_AFTER_END, R = h3.ERR_UNKNOWN_ENCODING, C = u.errorOrDestroy;
10634
+ var u = ta$1(), f3 = ra$2(), c3 = f3.getHighWaterMark, h3 = Rt$3().codes, g = h3.ERR_INVALID_ARG_TYPE, S = h3.ERR_METHOD_NOT_IMPLEMENTED, T3 = h3.ERR_MULTIPLE_CALLBACK, A = h3.ERR_STREAM_CANNOT_PIPE, B = h3.ERR_STREAM_DESTROYED, w = h3.ERR_STREAM_NULL_VALUES, k = h3.ERR_STREAM_WRITE_AFTER_END, R = h3.ERR_UNKNOWN_ENCODING, C = u.errorOrDestroy;
10635
10635
  yt$2()(q, n);
10636
10636
  function F3() {
10637
10637
  }
@@ -10846,7 +10846,7 @@
10846
10846
  return c3;
10847
10847
  };
10848
10848
  jn$2 = o;
10849
- var e = na$2(), t = ra$2();
10849
+ var e = ia$2(), t = na$2();
10850
10850
  yt$2()(o, e);
10851
10851
  for (var n = r22(t.prototype), i3 = 0; i3 < n.length; i3++) {
10852
10852
  var s = n[i3];
@@ -10901,7 +10901,7 @@
10901
10901
  }), jn$2;
10902
10902
  }
10903
10903
  var Hn$2 = {}, Zt$2 = { exports: {} }, Ws$1;
10904
- function Gl$1() {
10904
+ function Wl$2() {
10905
10905
  return Ws$1 || (Ws$1 = 1, function(r22, e) {
10906
10906
  var t = Dr$1, n = t.Buffer;
10907
10907
  function i3(o, a) {
@@ -10936,7 +10936,7 @@
10936
10936
  function ui$2() {
10937
10937
  if (Js$1) return Hn$2;
10938
10938
  Js$1 = 1;
10939
- var r22 = Gl$1().Buffer, e = r22.isEncoding || function(w) {
10939
+ var r22 = Wl$2().Buffer, e = r22.isEncoding || function(w) {
10940
10940
  switch (w = "" + w, w && w.toLowerCase()) {
10941
10941
  case "hex":
10942
10942
  case "utf8":
@@ -11138,7 +11138,7 @@
11138
11138
  return Vn$3 = i3, Vn$3;
11139
11139
  }
11140
11140
  var zn$3, $s$1;
11141
- function Wl$2() {
11141
+ function Jl$1() {
11142
11142
  if ($s$1) return zn$3;
11143
11143
  $s$1 = 1;
11144
11144
  var r22;
@@ -11264,20 +11264,20 @@
11264
11264
  return zn$3 = k, zn$3;
11265
11265
  }
11266
11266
  var Gn$3, Xs$1;
11267
- function Jl$1() {
11267
+ function Kl$2() {
11268
11268
  return Xs$1 || (Xs$1 = 1, Gn$3 = function() {
11269
11269
  throw new Error("Readable.from is not available in the browser");
11270
11270
  }), Gn$3;
11271
11271
  }
11272
11272
  var Wn$2, Ys;
11273
- function na$2() {
11273
+ function ia$2() {
11274
11274
  if (Ys) return Wn$2;
11275
11275
  Ys = 1, Wn$2 = D3;
11276
11276
  var r22;
11277
11277
  D3.ReadableState = q, yi$2().EventEmitter;
11278
11278
  var e = function(x, _) {
11279
11279
  return x.listeners(_).length;
11280
- }, t = Vo$1(), n = Dr$1.Buffer, i3 = (typeof We$2 < "u" ? We$2 : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
11280
+ }, t = zo$2(), n = Dr$1.Buffer, i3 = (typeof We$2 < "u" ? We$2 : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
11281
11281
  };
11282
11282
  function s(b) {
11283
11283
  return n.from(b);
@@ -11285,10 +11285,10 @@
11285
11285
  function o(b) {
11286
11286
  return n.isBuffer(b) || b instanceof i3;
11287
11287
  }
11288
- var a = Zo$2(), u;
11288
+ var a = ea$1(), u;
11289
11289
  a && a.debuglog ? u = a.debuglog("stream") : u = function() {
11290
11290
  };
11291
- var f3 = Vl$2(), c3 = ea$1(), h3 = ta$1(), g = h3.getHighWaterMark, S = Rt$3().codes, T3 = S.ERR_INVALID_ARG_TYPE, A = S.ERR_STREAM_PUSH_AFTER_EOF, B = S.ERR_METHOD_NOT_IMPLEMENTED, w = S.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, k, R, C;
11291
+ var f3 = zl$2(), c3 = ta$1(), h3 = ra$2(), g = h3.getHighWaterMark, S = Rt$3().codes, T3 = S.ERR_INVALID_ARG_TYPE, A = S.ERR_STREAM_PUSH_AFTER_EOF, B = S.ERR_METHOD_NOT_IMPLEMENTED, w = S.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, k, R, C;
11292
11292
  yt$2()(D3, t);
11293
11293
  var F3 = c3.errorOrDestroy, N3 = ["error", "close", "destroy", "pause", "resume"];
11294
11294
  function M(b, x, _) {
@@ -11545,7 +11545,7 @@
11545
11545
  u("wrapped _read", re2), W && (W = false, b.resume());
11546
11546
  }, this;
11547
11547
  }, typeof Symbol == "function" && (D3.prototype[Symbol.asyncIterator] = function() {
11548
- return R === void 0 && (R = Wl$2()), R(this);
11548
+ return R === void 0 && (R = Jl$1()), R(this);
11549
11549
  }), Object.defineProperty(D3.prototype, "readableHighWaterMark", {
11550
11550
  // making it explicit this property is not enumerable
11551
11551
  // because otherwise some prototype manipulation in
@@ -11598,7 +11598,7 @@
11598
11598
  }
11599
11599
  }
11600
11600
  typeof Symbol == "function" && (D3.from = function(b, x) {
11601
- return C === void 0 && (C = Jl$1()), C(D3, b, x);
11601
+ return C === void 0 && (C = Kl$2()), C(D3, b, x);
11602
11602
  });
11603
11603
  function E3(b, x) {
11604
11604
  for (var _ = 0, W = b.length; _ < W; _++)
@@ -11608,7 +11608,7 @@
11608
11608
  return Wn$2;
11609
11609
  }
11610
11610
  var Jn$3, Qs;
11611
- function ia$2() {
11611
+ function sa$2() {
11612
11612
  if (Qs) return Jn$3;
11613
11613
  Qs = 1, Jn$3 = a;
11614
11614
  var r22 = Rt$3().codes, e = r22.ERR_METHOD_NOT_IMPLEMENTED, t = r22.ERR_MULTIPLE_CALLBACK, n = r22.ERR_TRANSFORM_ALREADY_TRANSFORMING, i3 = r22.ERR_TRANSFORM_WITH_LENGTH_0, s = St$2();
@@ -11667,10 +11667,10 @@
11667
11667
  return Jn$3;
11668
11668
  }
11669
11669
  var Kn$3, Zs;
11670
- function Kl$2() {
11670
+ function $l$2() {
11671
11671
  if (Zs) return Kn$3;
11672
11672
  Zs = 1, Kn$3 = e;
11673
- var r22 = ia$2();
11673
+ var r22 = sa$2();
11674
11674
  yt$2()(e, r22);
11675
11675
  function e(t) {
11676
11676
  if (!(this instanceof e)) return new e(t);
@@ -11681,7 +11681,7 @@
11681
11681
  }, Kn$3;
11682
11682
  }
11683
11683
  var $n$2, eo$3;
11684
- function $l$2() {
11684
+ function Xl$2() {
11685
11685
  if (eo$3) return $n$2;
11686
11686
  eo$3 = 1;
11687
11687
  var r22;
@@ -11745,11 +11745,11 @@
11745
11745
  return $n$2 = h3, $n$2;
11746
11746
  }
11747
11747
  var Xn$3, to$2;
11748
- function Xl$2() {
11748
+ function Yl$1() {
11749
11749
  if (to$2) return Xn$3;
11750
11750
  to$2 = 1, Xn$3 = t;
11751
11751
  var r22 = yi$2().EventEmitter, e = yt$2();
11752
- e(t, r22), t.Readable = na$2(), t.Writable = ra$2(), t.Duplex = St$2(), t.Transform = ia$2(), t.PassThrough = Kl$2(), t.finished = Ei$2(), t.pipeline = $l$2(), t.Stream = t;
11752
+ e(t, r22), t.Readable = ia$2(), t.Writable = na$2(), t.Duplex = St$2(), t.Transform = sa$2(), t.PassThrough = $l$2(), t.finished = Ei$2(), t.pipeline = Xl$2(), t.Stream = t;
11753
11753
  function t() {
11754
11754
  r22.call(this);
11755
11755
  }
@@ -11883,7 +11883,7 @@
11883
11883
  };
11884
11884
  var a;
11885
11885
  try {
11886
- a = Xl$2().Stream;
11886
+ a = Yl$1().Stream;
11887
11887
  } catch {
11888
11888
  a = function() {
11889
11889
  };
@@ -12666,12 +12666,12 @@ Actual: ` + p3.attribValue
12666
12666
  }) : String.fromCodePoint = I3;
12667
12667
  }();
12668
12668
  })(r22);
12669
- })(qo$1);
12669
+ })(Mo$2);
12670
12670
  var vi$2 = {
12671
12671
  isArray: function(r22) {
12672
12672
  return Array.isArray ? Array.isArray(r22) : Object.prototype.toString.call(r22) === "[object Array]";
12673
12673
  }
12674
- }, Yl$1 = vi$2.isArray, Ci$2 = {
12674
+ }, Ql$1 = vi$2.isArray, Ci$2 = {
12675
12675
  copyOptions: function(r22) {
12676
12676
  var e, t = {};
12677
12677
  for (e in r22)
@@ -12685,7 +12685,7 @@ Actual: ` + p3.attribValue
12685
12685
  (!("spaces" in r22) || typeof r22.spaces != "number" && typeof r22.spaces != "string") && (r22.spaces = 0);
12686
12686
  },
12687
12687
  ensureAlwaysArrayExists: function(r22) {
12688
- (!("alwaysArray" in r22) || typeof r22.alwaysArray != "boolean" && !Yl$1(r22.alwaysArray)) && (r22.alwaysArray = false);
12688
+ (!("alwaysArray" in r22) || typeof r22.alwaysArray != "boolean" && !Ql$1(r22.alwaysArray)) && (r22.alwaysArray = false);
12689
12689
  },
12690
12690
  ensureKeyExists: function(r22, e) {
12691
12691
  (!(r22 + "Key" in e) || typeof e[r22 + "Key"] != "string") && (e[r22 + "Key"] = e.compact ? "_" + r22 : r22);
@@ -12693,11 +12693,11 @@ Actual: ` + p3.attribValue
12693
12693
  checkFnExists: function(r22, e) {
12694
12694
  return r22 + "Fn" in e;
12695
12695
  }
12696
- }, Ql$1 = qo$1, le$3 = Ci$2, vt$1 = vi$2.isArray, U, ue;
12697
- function Zl$1(r22) {
12696
+ }, Zl$1 = Mo$2, le$3 = Ci$2, vt$1 = vi$2.isArray, U, ue;
12697
+ function ec$1(r22) {
12698
12698
  return U = le$3.copyOptions(r22), le$3.ensureFlagExists("ignoreDeclaration", U), le$3.ensureFlagExists("ignoreInstruction", U), le$3.ensureFlagExists("ignoreAttributes", U), le$3.ensureFlagExists("ignoreText", U), le$3.ensureFlagExists("ignoreComment", U), le$3.ensureFlagExists("ignoreCdata", U), le$3.ensureFlagExists("ignoreDoctype", U), le$3.ensureFlagExists("compact", U), le$3.ensureFlagExists("alwaysChildren", U), le$3.ensureFlagExists("addParent", U), le$3.ensureFlagExists("trim", U), le$3.ensureFlagExists("nativeType", U), le$3.ensureFlagExists("nativeTypeAttributes", U), le$3.ensureFlagExists("sanitize", U), le$3.ensureFlagExists("instructionHasAttributes", U), le$3.ensureFlagExists("captureSpacesBetweenElements", U), le$3.ensureAlwaysArrayExists(U), le$3.ensureKeyExists("declaration", U), le$3.ensureKeyExists("instruction", U), le$3.ensureKeyExists("attributes", U), le$3.ensureKeyExists("text", U), le$3.ensureKeyExists("comment", U), le$3.ensureKeyExists("cdata", U), le$3.ensureKeyExists("doctype", U), le$3.ensureKeyExists("type", U), le$3.ensureKeyExists("name", U), le$3.ensureKeyExists("elements", U), le$3.ensureKeyExists("parent", U), U;
12699
12699
  }
12700
- function sa$2(r22) {
12700
+ function oa$2(r22) {
12701
12701
  var e = Number(r22);
12702
12702
  if (!isNaN(e))
12703
12703
  return e;
@@ -12731,23 +12731,23 @@ Actual: ` + p3.attribValue
12731
12731
  U.addParent && (i3[U.parentKey] = ue), ue[U.elementsKey].push(i3);
12732
12732
  }
12733
12733
  }
12734
- function oa$2(r22) {
12734
+ function aa$2(r22) {
12735
12735
  if ("attributesFn" in U && r22 && (r22 = U.attributesFn(r22, ue)), (U.trim || "attributeValueFn" in U || "attributeNameFn" in U || U.nativeTypeAttributes) && r22) {
12736
12736
  var e;
12737
12737
  for (e in r22)
12738
- if (r22.hasOwnProperty(e) && (U.trim && (r22[e] = r22[e].trim()), U.nativeTypeAttributes && (r22[e] = sa$2(r22[e])), "attributeValueFn" in U && (r22[e] = U.attributeValueFn(r22[e], e, ue)), "attributeNameFn" in U)) {
12738
+ if (r22.hasOwnProperty(e) && (U.trim && (r22[e] = r22[e].trim()), U.nativeTypeAttributes && (r22[e] = oa$2(r22[e])), "attributeValueFn" in U && (r22[e] = U.attributeValueFn(r22[e], e, ue)), "attributeNameFn" in U)) {
12739
12739
  var t = r22[e];
12740
12740
  delete r22[e], r22[U.attributeNameFn(e, r22[e], ue)] = t;
12741
12741
  }
12742
12742
  }
12743
12743
  return r22;
12744
12744
  }
12745
- function ec$1(r22) {
12745
+ function tc$2(r22) {
12746
12746
  var e = {};
12747
12747
  if (r22.body && (r22.name.toLowerCase() === "xml" || U.instructionHasAttributes)) {
12748
12748
  for (var t = /([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g, n; (n = t.exec(r22.body)) !== null; )
12749
12749
  e[n[1]] = n[2] || n[3] || n[4];
12750
- e = oa$2(e);
12750
+ e = aa$2(e);
12751
12751
  }
12752
12752
  if (r22.name.toLowerCase() === "xml") {
12753
12753
  if (U.ignoreDeclaration)
@@ -12761,9 +12761,9 @@ Actual: ` + p3.attribValue
12761
12761
  U.instructionHasAttributes && Object.keys(e).length ? (i3[r22.name] = {}, i3[r22.name][U.attributesKey] = e) : i3[r22.name] = r22.body, Xt$2("instruction", i3);
12762
12762
  }
12763
12763
  }
12764
- function tc$2(r22, e) {
12764
+ function rc$2(r22, e) {
12765
12765
  var t;
12766
- if (typeof r22 == "object" && (e = r22.attributes, r22 = r22.name), e = oa$2(e), "elementNameFn" in U && (r22 = U.elementNameFn(r22, ue)), U.compact) {
12766
+ if (typeof r22 == "object" && (e = r22.attributes, r22 = r22.name), e = aa$2(e), "elementNameFn" in U && (r22 = U.elementNameFn(r22, ue)), U.compact) {
12767
12767
  if (t = {}, !U.ignoreAttributes && e && Object.keys(e).length) {
12768
12768
  t[U.attributesKey] = {};
12769
12769
  var n;
@@ -12775,44 +12775,44 @@ Actual: ` + p3.attribValue
12775
12775
  ue[U.elementsKey] || (ue[U.elementsKey] = []), t = {}, t[U.typeKey] = "element", t[U.nameKey] = r22, !U.ignoreAttributes && e && Object.keys(e).length && (t[U.attributesKey] = e), U.alwaysChildren && (t[U.elementsKey] = []), ue[U.elementsKey].push(t);
12776
12776
  t[U.parentKey] = ue, ue = t;
12777
12777
  }
12778
- function rc$2(r22) {
12779
- U.ignoreText || !r22.trim() && !U.captureSpacesBetweenElements || (U.trim && (r22 = r22.trim()), U.nativeType && (r22 = sa$2(r22)), U.sanitize && (r22 = r22.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;")), Xt$2("text", r22));
12780
- }
12781
12778
  function nc$2(r22) {
12782
- U.ignoreComment || (U.trim && (r22 = r22.trim()), Xt$2("comment", r22));
12779
+ U.ignoreText || !r22.trim() && !U.captureSpacesBetweenElements || (U.trim && (r22 = r22.trim()), U.nativeType && (r22 = oa$2(r22)), U.sanitize && (r22 = r22.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;")), Xt$2("text", r22));
12783
12780
  }
12784
12781
  function ic$2(r22) {
12782
+ U.ignoreComment || (U.trim && (r22 = r22.trim()), Xt$2("comment", r22));
12783
+ }
12784
+ function sc$2(r22) {
12785
12785
  var e = ue[U.parentKey];
12786
12786
  U.addParent || delete ue[U.parentKey], ue = e;
12787
12787
  }
12788
- function sc$2(r22) {
12788
+ function oc$2(r22) {
12789
12789
  U.ignoreCdata || (U.trim && (r22 = r22.trim()), Xt$2("cdata", r22));
12790
12790
  }
12791
- function oc$2(r22) {
12791
+ function ac$2(r22) {
12792
12792
  U.ignoreDoctype || (r22 = r22.replace(/^ /, ""), U.trim && (r22 = r22.trim()), Xt$2("doctype", r22));
12793
12793
  }
12794
- function ac$2(r22) {
12794
+ function uc$2(r22) {
12795
12795
  r22.note = r22;
12796
12796
  }
12797
- var aa$2 = function(r22, e) {
12798
- var t = Ql$1.parser(true, {}), n = {};
12799
- if (ue = n, U = Zl$1(e), t.opt = { strictEntities: true }, t.onopentag = tc$2, t.ontext = rc$2, t.oncomment = nc$2, t.onclosetag = ic$2, t.onerror = ac$2, t.oncdata = sc$2, t.ondoctype = oc$2, t.onprocessinginstruction = ec$1, t.write(r22).close(), n[U.elementsKey]) {
12797
+ var ua$2 = function(r22, e) {
12798
+ var t = Zl$1.parser(true, {}), n = {};
12799
+ if (ue = n, U = ec$1(e), t.opt = { strictEntities: true }, t.onopentag = rc$2, t.ontext = nc$2, t.oncomment = ic$2, t.onclosetag = sc$2, t.onerror = uc$2, t.oncdata = oc$2, t.ondoctype = ac$2, t.onprocessinginstruction = tc$2, t.write(r22).close(), n[U.elementsKey]) {
12800
12800
  var i3 = n[U.elementsKey];
12801
12801
  delete n[U.elementsKey], n[U.elementsKey] = i3, delete n.text;
12802
12802
  }
12803
12803
  return n;
12804
- }, ro$2 = Ci$2, uc$2 = aa$2;
12805
- function lc$2(r22) {
12804
+ }, ro$2 = Ci$2, lc$2 = ua$2;
12805
+ function cc$2(r22) {
12806
12806
  var e = ro$2.copyOptions(r22);
12807
12807
  return ro$2.ensureSpacesExists(e), e;
12808
12808
  }
12809
- var cc$2 = function(r22, e) {
12809
+ var fc$2 = function(r22, e) {
12810
12810
  var t, n, i3, s;
12811
- return t = lc$2(e), n = uc$2(r22, t), s = "compact" in t && t.compact ? "_parent" : "parent", "addParent" in t && t.addParent ? i3 = JSON.stringify(n, function(o, a) {
12811
+ return t = cc$2(e), n = lc$2(r22, t), s = "compact" in t && t.compact ? "_parent" : "parent", "addParent" in t && t.addParent ? i3 = JSON.stringify(n, function(o, a) {
12812
12812
  return o === s ? "_" : a;
12813
12813
  }, t.spaces) : i3 = JSON.stringify(n, null, t.spaces), i3.replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
12814
- }, de$1 = Ci$2, fc$2 = vi$2.isArray, Re$2, Pe$1;
12815
- function dc$2(r22) {
12814
+ }, de$1 = Ci$2, dc$2 = vi$2.isArray, Re$2, Pe$1;
12815
+ function mc$2(r22) {
12816
12816
  var e = de$1.copyOptions(r22);
12817
12817
  return de$1.ensureFlagExists("ignoreDeclaration", e), de$1.ensureFlagExists("ignoreInstruction", e), de$1.ensureFlagExists("ignoreAttributes", e), de$1.ensureFlagExists("ignoreText", e), de$1.ensureFlagExists("ignoreComment", e), de$1.ensureFlagExists("ignoreCdata", e), de$1.ensureFlagExists("ignoreDoctype", e), de$1.ensureFlagExists("compact", e), de$1.ensureFlagExists("indentText", e), de$1.ensureFlagExists("indentCdata", e), de$1.ensureFlagExists("indentAttributes", e), de$1.ensureFlagExists("indentInstruction", e), de$1.ensureFlagExists("fullTagEmptyElement", e), de$1.ensureFlagExists("noQuotesForNativeAttributes", e), de$1.ensureSpacesExists(e), typeof e.spaces == "number" && (e.spaces = Array(e.spaces + 1).join(" ")), de$1.ensureKeyExists("declaration", e), de$1.ensureKeyExists("instruction", e), de$1.ensureKeyExists("attributes", e), de$1.ensureKeyExists("text", e), de$1.ensureKeyExists("comment", e), de$1.ensureKeyExists("cdata", e), de$1.ensureKeyExists("doctype", e), de$1.ensureKeyExists("type", e), de$1.ensureKeyExists("name", e), de$1.ensureKeyExists("elements", e), e;
12818
12818
  }
@@ -12829,10 +12829,10 @@ Actual: ` + p3.attribValue
12829
12829
  r22.hasOwnProperty(n) && r22[n] !== null && r22[n] !== void 0 && (o = e.noQuotesForNativeAttributes && typeof r22[n] != "string" ? "" : '"', i3 = "" + r22[n], i3 = i3.replace(/"/g, "&quot;"), s = "attributeNameFn" in e ? e.attributeNameFn(n, i3, Pe$1, Re$2) : n, a.push(e.spaces && e.indentAttributes ? Qe$3(e, t + 1, false) : " "), a.push(s + "=" + o + ("attributeValueFn" in e ? e.attributeValueFn(i3, n, Pe$1, Re$2) : i3) + o));
12830
12830
  return r22 && Object.keys(r22).length && e.spaces && e.indentAttributes && a.push(Qe$3(e, t, false)), a.join("");
12831
12831
  }
12832
- function ua$2(r22, e, t) {
12832
+ function la$2(r22, e, t) {
12833
12833
  return Re$2 = r22, Pe$1 = "xml", e.ignoreDeclaration ? "" : "<?xml" + Cr$2(r22[e.attributesKey], e, t) + "?>";
12834
12834
  }
12835
- function la$2(r22, e, t) {
12835
+ function ca$2(r22, e, t) {
12836
12836
  if (e.ignoreInstruction)
12837
12837
  return "";
12838
12838
  var n;
@@ -12845,19 +12845,19 @@ Actual: ` + p3.attribValue
12845
12845
  var s = r22[n] ? r22[n] : "";
12846
12846
  return "instructionFn" in e && (s = e.instructionFn(s, n, Pe$1, Re$2)), "<?" + i3 + (s ? " " + s : "") + "?>";
12847
12847
  }
12848
- function ca$2(r22, e) {
12848
+ function fa$2(r22, e) {
12849
12849
  return e.ignoreComment ? "" : "<!--" + ("commentFn" in e ? e.commentFn(r22, Pe$1, Re$2) : r22) + "-->";
12850
12850
  }
12851
- function fa$2(r22, e) {
12851
+ function da$2(r22, e) {
12852
12852
  return e.ignoreCdata ? "" : "<![CDATA[" + ("cdataFn" in e ? e.cdataFn(r22, Pe$1, Re$2) : r22.replace("]]>", "]]]]><![CDATA[>")) + "]]>";
12853
12853
  }
12854
- function da$2(r22, e) {
12854
+ function ma$2(r22, e) {
12855
12855
  return e.ignoreDoctype ? "" : "<!DOCTYPE " + ("doctypeFn" in e ? e.doctypeFn(r22, Pe$1, Re$2) : r22) + ">";
12856
12856
  }
12857
12857
  function Si$2(r22, e) {
12858
12858
  return e.ignoreText ? "" : (r22 = "" + r22, r22 = r22.replace(/&amp;/g, "&"), r22 = r22.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), "textFn" in e ? e.textFn(r22, Pe$1, Re$2) : r22);
12859
12859
  }
12860
- function mc$2(r22, e) {
12860
+ function pc$2(r22, e) {
12861
12861
  var t;
12862
12862
  if (r22.elements && r22.elements.length)
12863
12863
  for (t = 0; t < r22.elements.length; ++t)
@@ -12883,35 +12883,35 @@ Actual: ` + p3.attribValue
12883
12883
  }
12884
12884
  return false;
12885
12885
  }
12886
- function pc$2(r22, e, t) {
12886
+ function hc$2(r22, e, t) {
12887
12887
  Re$2 = r22, Pe$1 = r22.name;
12888
12888
  var n = [], i3 = "elementNameFn" in e ? e.elementNameFn(r22.name, r22) : r22.name;
12889
12889
  n.push("<" + i3), r22[e.attributesKey] && n.push(Cr$2(r22[e.attributesKey], e, t));
12890
12890
  var s = r22[e.elementsKey] && r22[e.elementsKey].length || r22[e.attributesKey] && r22[e.attributesKey]["xml:space"] === "preserve";
12891
- return s || ("fullTagEmptyElementFn" in e ? s = e.fullTagEmptyElementFn(r22.name, r22) : s = e.fullTagEmptyElement), s ? (n.push(">"), r22[e.elementsKey] && r22[e.elementsKey].length && (n.push(ma$2(r22[e.elementsKey], e, t + 1)), Re$2 = r22, Pe$1 = r22.name), n.push(e.spaces && mc$2(r22, e) ? `
12891
+ return s || ("fullTagEmptyElementFn" in e ? s = e.fullTagEmptyElementFn(r22.name, r22) : s = e.fullTagEmptyElement), s ? (n.push(">"), r22[e.elementsKey] && r22[e.elementsKey].length && (n.push(pa$2(r22[e.elementsKey], e, t + 1)), Re$2 = r22, Pe$1 = r22.name), n.push(e.spaces && pc$2(r22, e) ? `
12892
12892
  ` + Array(t + 1).join(e.spaces) : ""), n.push("</" + i3 + ">")) : n.push("/>"), n.join("");
12893
12893
  }
12894
- function ma$2(r22, e, t, n) {
12894
+ function pa$2(r22, e, t, n) {
12895
12895
  return r22.reduce(function(i3, s) {
12896
12896
  var o = Qe$3(e, t, n && !i3);
12897
12897
  switch (s.type) {
12898
12898
  case "element":
12899
- return i3 + o + pc$2(s, e, t);
12899
+ return i3 + o + hc$2(s, e, t);
12900
12900
  case "comment":
12901
- return i3 + o + ca$2(s[e.commentKey], e);
12901
+ return i3 + o + fa$2(s[e.commentKey], e);
12902
12902
  case "doctype":
12903
- return i3 + o + da$2(s[e.doctypeKey], e);
12903
+ return i3 + o + ma$2(s[e.doctypeKey], e);
12904
12904
  case "cdata":
12905
- return i3 + (e.indentCdata ? o : "") + fa$2(s[e.cdataKey], e);
12905
+ return i3 + (e.indentCdata ? o : "") + da$2(s[e.cdataKey], e);
12906
12906
  case "text":
12907
12907
  return i3 + (e.indentText ? o : "") + Si$2(s[e.textKey], e);
12908
12908
  case "instruction":
12909
12909
  var a = {};
12910
- return a[s[e.nameKey]] = s[e.attributesKey] ? s : s[e.instructionKey], i3 + (e.indentInstruction ? o : "") + la$2(a, e, t);
12910
+ return a[s[e.nameKey]] = s[e.attributesKey] ? s : s[e.instructionKey], i3 + (e.indentInstruction ? o : "") + ca$2(a, e, t);
12911
12911
  }
12912
12912
  }, "");
12913
12913
  }
12914
- function pa$2(r22, e, t) {
12914
+ function ha$2(r22, e, t) {
12915
12915
  var n;
12916
12916
  for (n in r22)
12917
12917
  if (r22.hasOwnProperty(n))
@@ -12939,7 +12939,7 @@ Actual: ` + p3.attribValue
12939
12939
  }
12940
12940
  return false;
12941
12941
  }
12942
- function hc$2(r22, e, t, n, i3) {
12942
+ function gc$2(r22, e, t, n, i3) {
12943
12943
  Re$2 = r22, Pe$1 = e;
12944
12944
  var s = "elementNameFn" in t ? t.elementNameFn(e, r22) : e;
12945
12945
  if (typeof r22 > "u" || r22 === null || r22 === "")
@@ -12949,25 +12949,25 @@ Actual: ` + p3.attribValue
12949
12949
  if (o.push("<" + s), typeof r22 != "object")
12950
12950
  return o.push(">" + Si$2(r22, t) + "</" + s + ">"), o.join("");
12951
12951
  r22[t.attributesKey] && o.push(Cr$2(r22[t.attributesKey], t, n));
12952
- var a = pa$2(r22, t, true) || r22[t.attributesKey] && r22[t.attributesKey]["xml:space"] === "preserve";
12952
+ var a = ha$2(r22, t, true) || r22[t.attributesKey] && r22[t.attributesKey]["xml:space"] === "preserve";
12953
12953
  if (a || ("fullTagEmptyElementFn" in t ? a = t.fullTagEmptyElementFn(e, r22) : a = t.fullTagEmptyElement), a)
12954
12954
  o.push(">");
12955
12955
  else
12956
12956
  return o.push("/>"), o.join("");
12957
12957
  }
12958
- return o.push(ha$2(r22, t, n + 1, false)), Re$2 = r22, Pe$1 = e, e && o.push((i3 ? Qe$3(t, n, false) : "") + "</" + s + ">"), o.join("");
12958
+ return o.push(ga$2(r22, t, n + 1, false)), Re$2 = r22, Pe$1 = e, e && o.push((i3 ? Qe$3(t, n, false) : "") + "</" + s + ">"), o.join("");
12959
12959
  }
12960
- function ha$2(r22, e, t, n) {
12960
+ function ga$2(r22, e, t, n) {
12961
12961
  var i3, s, o, a = [];
12962
12962
  for (s in r22)
12963
12963
  if (r22.hasOwnProperty(s))
12964
- for (o = fc$2(r22[s]) ? r22[s] : [r22[s]], i3 = 0; i3 < o.length; ++i3) {
12964
+ for (o = dc$2(r22[s]) ? r22[s] : [r22[s]], i3 = 0; i3 < o.length; ++i3) {
12965
12965
  switch (s) {
12966
12966
  case e.declarationKey:
12967
- a.push(ua$2(o[i3], e, t));
12967
+ a.push(la$2(o[i3], e, t));
12968
12968
  break;
12969
12969
  case e.instructionKey:
12970
- a.push((e.indentInstruction ? Qe$3(e, t, n) : "") + la$2(o[i3], e, t));
12970
+ a.push((e.indentInstruction ? Qe$3(e, t, n) : "") + ca$2(o[i3], e, t));
12971
12971
  break;
12972
12972
  case e.attributesKey:
12973
12973
  case e.parentKey:
@@ -12976,26 +12976,26 @@ Actual: ` + p3.attribValue
12976
12976
  a.push((e.indentText ? Qe$3(e, t, n) : "") + Si$2(o[i3], e));
12977
12977
  break;
12978
12978
  case e.cdataKey:
12979
- a.push((e.indentCdata ? Qe$3(e, t, n) : "") + fa$2(o[i3], e));
12979
+ a.push((e.indentCdata ? Qe$3(e, t, n) : "") + da$2(o[i3], e));
12980
12980
  break;
12981
12981
  case e.doctypeKey:
12982
- a.push(Qe$3(e, t, n) + da$2(o[i3], e));
12982
+ a.push(Qe$3(e, t, n) + ma$2(o[i3], e));
12983
12983
  break;
12984
12984
  case e.commentKey:
12985
- a.push(Qe$3(e, t, n) + ca$2(o[i3], e));
12985
+ a.push(Qe$3(e, t, n) + fa$2(o[i3], e));
12986
12986
  break;
12987
12987
  default:
12988
- a.push(Qe$3(e, t, n) + hc$2(o[i3], s, e, t, pa$2(o[i3], e)));
12988
+ a.push(Qe$3(e, t, n) + gc$2(o[i3], s, e, t, ha$2(o[i3], e)));
12989
12989
  }
12990
12990
  n = n && !a.length;
12991
12991
  }
12992
12992
  return a.join("");
12993
12993
  }
12994
- var ga$2 = function(r22, e) {
12995
- e = dc$2(e);
12994
+ var wa$2 = function(r22, e) {
12995
+ e = mc$2(e);
12996
12996
  var t = [];
12997
- return Re$2 = r22, Pe$1 = "_root_", e.compact ? t.push(ha$2(r22, e, 0, true)) : (r22[e.declarationKey] && t.push(ua$2(r22[e.declarationKey], e, 0)), r22[e.elementsKey] && r22[e.elementsKey].length && t.push(ma$2(r22[e.elementsKey], e, 0, !t.length))), t.join("");
12998
- }, gc$2 = ga$2, wc$2 = function(r22, e) {
12997
+ return Re$2 = r22, Pe$1 = "_root_", e.compact ? t.push(ga$2(r22, e, 0, true)) : (r22[e.declarationKey] && t.push(la$2(r22[e.declarationKey], e, 0)), r22[e.elementsKey] && r22[e.elementsKey].length && t.push(pa$2(r22[e.elementsKey], e, 0, !t.length))), t.join("");
12998
+ }, wc$2 = wa$2, yc$2 = function(r22, e) {
12999
12999
  r22 instanceof Ht$2 && (r22 = r22.toString());
13000
13000
  var t = null;
13001
13001
  if (typeof r22 == "string")
@@ -13006,37 +13006,37 @@ Actual: ` + p3.attribValue
13006
13006
  }
13007
13007
  else
13008
13008
  t = r22;
13009
- return gc$2(t, e);
13010
- }, yc$2 = aa$2, bc$2 = cc$2, xc$2 = ga$2, Ac$2 = wc$2, Dc$2 = {
13011
- xml2js: yc$2,
13012
- xml2json: bc$2,
13013
- js2xml: xc$2,
13014
- json2xml: Ac$2
13009
+ return wc$2(t, e);
13010
+ }, bc$2 = ua$2, xc$2 = fc$2, Ac$2 = wa$2, Dc$2 = yc$2, Ec$2 = {
13011
+ xml2js: bc$2,
13012
+ xml2json: xc$2,
13013
+ js2xml: Ac$2,
13014
+ json2xml: Dc$2
13015
13015
  };
13016
- const wa$2 = /* @__PURE__ */ Lo$2(Dc$2);
13017
- var er$2, Ec$2 = new Uint8Array(16);
13018
- function vc$2() {
13016
+ const ya$2 = /* @__PURE__ */ _o$2(Ec$2);
13017
+ var er$2, vc$2 = new Uint8Array(16);
13018
+ function Cc$2() {
13019
13019
  if (!er$2 && (er$2 = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), !er$2))
13020
13020
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
13021
- return er$2(Ec$2);
13021
+ return er$2(vc$2);
13022
13022
  }
13023
- const Cc$2 = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
13024
- function Sc$2(r22) {
13025
- return typeof r22 == "string" && Cc$2.test(r22);
13023
+ const Sc$2 = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
13024
+ function Tc$2(r22) {
13025
+ return typeof r22 == "string" && Sc$2.test(r22);
13026
13026
  }
13027
13027
  var ke$1 = [];
13028
13028
  for (var Yn$3 = 0; Yn$3 < 256; ++Yn$3)
13029
13029
  ke$1.push((Yn$3 + 256).toString(16).substr(1));
13030
- function Tc$2(r22) {
13030
+ function Fc$2(r22) {
13031
13031
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, t = (ke$1[r22[e + 0]] + ke$1[r22[e + 1]] + ke$1[r22[e + 2]] + ke$1[r22[e + 3]] + "-" + ke$1[r22[e + 4]] + ke$1[r22[e + 5]] + "-" + ke$1[r22[e + 6]] + ke$1[r22[e + 7]] + "-" + ke$1[r22[e + 8]] + ke$1[r22[e + 9]] + "-" + ke$1[r22[e + 10]] + ke$1[r22[e + 11]] + ke$1[r22[e + 12]] + ke$1[r22[e + 13]] + ke$1[r22[e + 14]] + ke$1[r22[e + 15]]).toLowerCase();
13032
- if (!Sc$2(t))
13032
+ if (!Tc$2(t))
13033
13033
  throw TypeError("Stringified UUID is invalid");
13034
13034
  return t;
13035
13035
  }
13036
- function ya$2(r22, e, t) {
13036
+ function ba$2(r22, e, t) {
13037
13037
  r22 = r22 || {};
13038
- var n = r22.random || (r22.rng || vc$2)();
13039
- return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, Tc$2(n);
13038
+ var n = r22.random || (r22.rng || Cc$2)();
13039
+ return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, Fc$2(n);
13040
13040
  }
13041
13041
  var cr$1 = { exports: {} };
13042
13042
  /*! https://mths.be/he v1.2.0 by @mathias | MIT license */
@@ -13148,8 +13148,8 @@ Actual: ` + p3.attribValue
13148
13148
  t.he = Q3;
13149
13149
  })(We$2);
13150
13150
  })(cr$1, cr$1.exports);
13151
- var Fc$2 = cr$1.exports;
13152
- const Bc$2 = /* @__PURE__ */ Lo$2(Fc$2);
13151
+ var Bc$2 = cr$1.exports;
13152
+ const kc$2 = /* @__PURE__ */ _o$2(Bc$2);
13153
13153
  function Ne$2(r22) {
13154
13154
  this.content = r22;
13155
13155
  }
@@ -13250,7 +13250,7 @@ Actual: ` + p3.attribValue
13250
13250
  if (r22) for (var t in r22) e.push(t, r22[t]);
13251
13251
  return new Ne$2(e);
13252
13252
  };
13253
- function ba$2(r22, e, t) {
13253
+ function xa$2(r22, e, t) {
13254
13254
  for (let n = 0; ; n++) {
13255
13255
  if (n == r22.childCount || n == e.childCount)
13256
13256
  return r22.childCount == e.childCount ? null : t;
@@ -13267,14 +13267,14 @@ Actual: ` + p3.attribValue
13267
13267
  return t;
13268
13268
  }
13269
13269
  if (i3.content.size || s.content.size) {
13270
- let o = ba$2(i3.content, s.content, t + 1);
13270
+ let o = xa$2(i3.content, s.content, t + 1);
13271
13271
  if (o != null)
13272
13272
  return o;
13273
13273
  }
13274
13274
  t += i3.nodeSize;
13275
13275
  }
13276
13276
  }
13277
- function xa$2(r22, e, t, n) {
13277
+ function Aa$2(r22, e, t, n) {
13278
13278
  for (let i3 = r22.childCount, s = e.childCount; ; ) {
13279
13279
  if (i3 == 0 || s == 0)
13280
13280
  return i3 == s ? null : { a: t, b: n };
@@ -13292,7 +13292,7 @@ Actual: ` + p3.attribValue
13292
13292
  return { a: t, b: n };
13293
13293
  }
13294
13294
  if (o.content.size || a.content.size) {
13295
- let f3 = xa$2(o.content, a.content, t - 1, n - 1);
13295
+ let f3 = Aa$2(o.content, a.content, t - 1, n - 1);
13296
13296
  if (f3)
13297
13297
  return f3;
13298
13298
  }
@@ -13461,7 +13461,7 @@ Actual: ` + p3.attribValue
13461
13461
  fragment differ, or `null` if they are the same.
13462
13462
  */
13463
13463
  findDiffStart(e, t = 0) {
13464
- return ba$2(this, e, t);
13464
+ return xa$2(this, e, t);
13465
13465
  }
13466
13466
  /**
13467
13467
  Find the first position, searching from the end, at which this
@@ -13470,7 +13470,7 @@ Actual: ` + p3.attribValue
13470
13470
  nodes, an object with two separate positions is returned.
13471
13471
  */
13472
13472
  findDiffEnd(e, t = this.size, n = e.size) {
13473
- return xa$2(this, e, t, n);
13473
+ return Aa$2(this, e, t, n);
13474
13474
  }
13475
13475
  /**
13476
13476
  Find the index and inner offset corresponding to a given relative
@@ -13714,14 +13714,14 @@ Actual: ` + p3.attribValue
13714
13714
  @internal
13715
13715
  */
13716
13716
  insertAt(e, t) {
13717
- let n = Da$2(this.content, e + this.openStart, t);
13717
+ let n = Ea$2(this.content, e + this.openStart, t);
13718
13718
  return n && new oe2(n, this.openStart, this.openEnd);
13719
13719
  }
13720
13720
  /**
13721
13721
  @internal
13722
13722
  */
13723
13723
  removeBetween(e, t) {
13724
- return new oe2(Aa$2(this.content, e + this.openStart, t + this.openStart), this.openStart, this.openEnd);
13724
+ return new oe2(Da$2(this.content, e + this.openStart, t + this.openStart), this.openStart, this.openEnd);
13725
13725
  }
13726
13726
  /**
13727
13727
  Tests whether this slice is equal to another slice.
@@ -13769,7 +13769,7 @@ Actual: ` + p3.attribValue
13769
13769
  }
13770
13770
  };
13771
13771
  oe$2.empty = new oe$2(Z.empty, 0, 0);
13772
- function Aa$2(r22, e, t) {
13772
+ function Da$2(r22, e, t) {
13773
13773
  let { index: n, offset: i3 } = r22.findIndex(e), s = r22.maybeChild(n), { index: o, offset: a } = r22.findIndex(t);
13774
13774
  if (i3 == e || s.isText) {
13775
13775
  if (a != t && !r22.child(o).isText)
@@ -13778,44 +13778,44 @@ Actual: ` + p3.attribValue
13778
13778
  }
13779
13779
  if (n != o)
13780
13780
  throw new RangeError("Removing non-flat range");
13781
- return r22.replaceChild(n, s.copy(Aa$2(s.content, e - i3 - 1, t - i3 - 1)));
13781
+ return r22.replaceChild(n, s.copy(Da$2(s.content, e - i3 - 1, t - i3 - 1)));
13782
13782
  }
13783
- function Da$2(r22, e, t, n) {
13783
+ function Ea$2(r22, e, t, n) {
13784
13784
  let { index: i3, offset: s } = r22.findIndex(e), o = r22.maybeChild(i3);
13785
13785
  if (s == e || o.isText)
13786
13786
  return r22.cut(0, e).append(t).append(r22.cut(e));
13787
- let a = Da$2(o.content, e - s - 1, t);
13787
+ let a = Ea$2(o.content, e - s - 1, t);
13788
13788
  return a && r22.replaceChild(i3, o.copy(a));
13789
13789
  }
13790
- function kc$2(r22, e, t) {
13790
+ function Nc$2(r22, e, t) {
13791
13791
  if (t.openStart > r22.depth)
13792
13792
  throw new dr("Inserted content deeper than insertion position");
13793
13793
  if (r22.depth - t.openStart != e.depth - t.openEnd)
13794
13794
  throw new dr("Inconsistent open depths");
13795
- return Ea$2(r22, e, t, 0);
13795
+ return va$2(r22, e, t, 0);
13796
13796
  }
13797
- function Ea$2(r22, e, t, n) {
13797
+ function va$2(r22, e, t, n) {
13798
13798
  let i3 = r22.index(n), s = r22.node(n);
13799
13799
  if (i3 == e.index(n) && n < r22.depth - t.openStart) {
13800
- let o = Ea$2(r22, e, t, n + 1);
13800
+ let o = va$2(r22, e, t, n + 1);
13801
13801
  return s.copy(s.content.replaceChild(i3, o));
13802
13802
  } else if (t.content.size)
13803
13803
  if (!t.openStart && !t.openEnd && r22.depth == n && e.depth == n) {
13804
13804
  let o = r22.parent, a = o.content;
13805
13805
  return ht$1(o, a.cut(0, r22.parentOffset).append(t.content).append(a.cut(e.parentOffset)));
13806
13806
  } else {
13807
- let { start: o, end: a } = Nc$2(t, r22);
13808
- return ht$1(s, Ca$2(r22, o, a, e, n));
13807
+ let { start: o, end: a } = Ic$2(t, r22);
13808
+ return ht$1(s, Sa$2(r22, o, a, e, n));
13809
13809
  }
13810
13810
  else return ht$1(s, mr$2(r22, e, n));
13811
13811
  }
13812
- function va$2(r22, e) {
13812
+ function Ca$2(r22, e) {
13813
13813
  if (!e.type.compatibleContent(r22.type))
13814
13814
  throw new dr("Cannot join " + e.type.name + " onto " + r22.type.name);
13815
13815
  }
13816
13816
  function li$2(r22, e, t) {
13817
13817
  let n = r22.node(t);
13818
- return va$2(n, e.node(t)), n;
13818
+ return Ca$2(n, e.node(t)), n;
13819
13819
  }
13820
13820
  function pt$1(r22, e) {
13821
13821
  let t = e.length - 1;
@@ -13831,9 +13831,9 @@ Actual: ` + p3.attribValue
13831
13831
  function ht$1(r22, e) {
13832
13832
  return r22.type.checkContent(e), r22.copy(e);
13833
13833
  }
13834
- function Ca$2(r22, e, t, n, i3) {
13834
+ function Sa$2(r22, e, t, n, i3) {
13835
13835
  let s = r22.depth > i3 && li$2(r22, e, i3 + 1), o = n.depth > i3 && li$2(t, n, i3 + 1), a = [];
13836
- return Vt$3(null, r22, i3, a), s && o && e.index(i3) == t.index(i3) ? (va$2(s, o), pt$1(ht$1(s, Ca$2(r22, e, t, n, i3 + 1)), a)) : (s && pt$1(ht$1(s, mr$2(r22, e, i3 + 1)), a), Vt$3(e, t, i3, a), o && pt$1(ht$1(o, mr$2(t, n, i3 + 1)), a)), Vt$3(n, null, i3, a), new Z(a);
13836
+ return Vt$3(null, r22, i3, a), s && o && e.index(i3) == t.index(i3) ? (Ca$2(s, o), pt$1(ht$1(s, Sa$2(r22, e, t, n, i3 + 1)), a)) : (s && pt$1(ht$1(s, mr$2(r22, e, i3 + 1)), a), Vt$3(e, t, i3, a), o && pt$1(ht$1(o, mr$2(t, n, i3 + 1)), a)), Vt$3(n, null, i3, a), new Z(a);
13837
13837
  }
13838
13838
  function mr$2(r22, e, t) {
13839
13839
  let n = [];
@@ -13843,7 +13843,7 @@ Actual: ` + p3.attribValue
13843
13843
  }
13844
13844
  return Vt$3(e, null, t, n), new Z(n);
13845
13845
  }
13846
- function Nc$2(r22, e) {
13846
+ function Ic$2(r22, e) {
13847
13847
  let t = e.depth - r22.openStart, i3 = e.node(t).copy(r22.content);
13848
13848
  for (let s = t - 1; s >= 0; s--)
13849
13849
  i3 = e.node(s).copy(Z.from(i3));
@@ -14037,7 +14037,7 @@ Actual: ` + p3.attribValue
14037
14037
  return e.blockRange(this);
14038
14038
  for (let n = this.depth - (this.parent.inlineContent || this.pos == e.pos ? 1 : 0); n >= 0; n--)
14039
14039
  if (e.pos <= this.end(n) && (!t || t(this.node(n))))
14040
- return new Pc$2(this, e, n);
14040
+ return new Oc$2(this, e, n);
14041
14041
  return null;
14042
14042
  }
14043
14043
  /**
@@ -14094,18 +14094,18 @@ Actual: ` + p3.attribValue
14094
14094
  return o;
14095
14095
  }
14096
14096
  else
14097
- no$2.set(e, n = new Ic$2());
14097
+ no$2.set(e, n = new Rc$2());
14098
14098
  let i3 = n.elts[n.i] = zt2.resolve(e, t);
14099
- return n.i = (n.i + 1) % Rc$2, i3;
14099
+ return n.i = (n.i + 1) % Pc$2, i3;
14100
14100
  }
14101
14101
  };
14102
- let Ic$2 = class Ic {
14102
+ let Rc$2 = class Rc {
14103
14103
  constructor() {
14104
14104
  this.elts = [], this.i = 0;
14105
14105
  }
14106
14106
  };
14107
- const Rc$2 = 12, no$2 = /* @__PURE__ */ new WeakMap();
14108
- let Pc$2 = class Pc {
14107
+ const Pc$2 = 12, no$2 = /* @__PURE__ */ new WeakMap();
14108
+ let Oc$2 = class Oc {
14109
14109
  /**
14110
14110
  Construct a node range. `$from` and `$to` should point into the
14111
14111
  same node until at least the given `depth`, since a node range
@@ -14145,7 +14145,7 @@ Actual: ` + p3.attribValue
14145
14145
  return this.$to.indexAfter(this.depth);
14146
14146
  }
14147
14147
  };
14148
- const Oc$2 = /* @__PURE__ */ Object.create(null);
14148
+ const Lc$2 = /* @__PURE__ */ Object.create(null);
14149
14149
  let rt$3 = class rt2 {
14150
14150
  /**
14151
14151
  @internal
@@ -14264,7 +14264,7 @@ Actual: ` + p3.attribValue
14264
14264
  attributes, and marks.
14265
14265
  */
14266
14266
  hasMarkup(e, t, n) {
14267
- return this.type == e && fr$1(this.attrs, t || e.defaultAttrs || Oc$2) && ge$1.sameSet(this.marks, n || ge$1.none);
14267
+ return this.type == e && fr$1(this.attrs, t || e.defaultAttrs || Lc$2) && ge$1.sameSet(this.marks, n || ge$1.none);
14268
14268
  }
14269
14269
  /**
14270
14270
  Create a new node with the same markup as this node, containing
@@ -14307,7 +14307,7 @@ Actual: ` + p3.attribValue
14307
14307
  [`ReplaceError`](https://prosemirror.net/docs/ref/#model.ReplaceError) is thrown.
14308
14308
  */
14309
14309
  replace(e, t, n) {
14310
- return kc$2(this.resolve(e), this.resolve(t), n);
14310
+ return Nc$2(this.resolve(e), this.resolve(t), n);
14311
14311
  }
14312
14312
  /**
14313
14313
  Find the node directly after the given position.
@@ -14422,7 +14422,7 @@ Actual: ` + p3.attribValue
14422
14422
  if (this.type.spec.toDebugString)
14423
14423
  return this.type.spec.toDebugString(this);
14424
14424
  let e = this.type.name;
14425
- return this.content.size && (e += "(" + this.content.toStringInner() + ")"), Sa$2(this.marks, e);
14425
+ return this.content.size && (e += "(" + this.content.toStringInner() + ")"), Ta$2(this.marks, e);
14426
14426
  }
14427
14427
  /**
14428
14428
  Get the content match in this node at the given index.
@@ -14526,7 +14526,7 @@ Actual: ` + p3.attribValue
14526
14526
  this.text = n;
14527
14527
  }
14528
14528
  toString() {
14529
- return this.type.spec.toDebugString ? this.type.spec.toDebugString(this) : Sa$2(this.marks, JSON.stringify(this.text));
14529
+ return this.type.spec.toDebugString ? this.type.spec.toDebugString(this) : Ta$2(this.marks, JSON.stringify(this.text));
14530
14530
  }
14531
14531
  get textContent() {
14532
14532
  return this.text;
@@ -14554,7 +14554,7 @@ Actual: ` + p3.attribValue
14554
14554
  return e.text = this.text, e;
14555
14555
  }
14556
14556
  };
14557
- function Sa$2(r22, e) {
14557
+ function Ta$2(r22, e) {
14558
14558
  for (let t = r22.length - 1; t >= 0; t--)
14559
14559
  e = r22[t].type.name + "(" + e + ")";
14560
14560
  return e;
@@ -14570,13 +14570,13 @@ Actual: ` + p3.attribValue
14570
14570
  @internal
14571
14571
  */
14572
14572
  static parse(e, t) {
14573
- let n = new Lc$2(e, t);
14573
+ let n = new _c$2(e, t);
14574
14574
  if (n.next == null)
14575
14575
  return gt2.empty;
14576
- let i3 = Ta$2(n);
14576
+ let i3 = Fa$2(n);
14577
14577
  n.next && n.err("Unexpected trailing text");
14578
- let s = Vc$2(Hc$2(i3));
14579
- return zc$2(s, n), s;
14578
+ let s = zc$2(Vc$2(i3));
14579
+ return Gc$2(s, n), s;
14580
14580
  }
14581
14581
  /**
14582
14582
  Match a node type, returning a match after that node if
@@ -14722,7 +14722,7 @@ Actual: ` + p3.attribValue
14722
14722
  }
14723
14723
  };
14724
14724
  gt$2.empty = new gt$2(true);
14725
- let Lc$2 = class Lc {
14725
+ let _c$2 = class _c {
14726
14726
  constructor(e, t) {
14727
14727
  this.string = e, this.nodeTypes = t, this.inline = null, this.pos = 0, this.tokens = e.split(/\s*(?=\b|\W|$)/), this.tokens[this.tokens.length - 1] == "" && this.tokens.pop(), this.tokens[0] == "" && this.tokens.shift();
14728
14728
  }
@@ -14736,22 +14736,22 @@ Actual: ` + p3.attribValue
14736
14736
  throw new SyntaxError(e + " (in content expression '" + this.string + "')");
14737
14737
  }
14738
14738
  };
14739
- function Ta$2(r22) {
14739
+ function Fa$2(r22) {
14740
14740
  let e = [];
14741
14741
  do
14742
- e.push(_c$2(r22));
14742
+ e.push(qc$2(r22));
14743
14743
  while (r22.eat("|"));
14744
14744
  return e.length == 1 ? e[0] : { type: "choice", exprs: e };
14745
14745
  }
14746
- function _c$2(r22) {
14746
+ function qc$2(r22) {
14747
14747
  let e = [];
14748
14748
  do
14749
- e.push(qc$2(r22));
14749
+ e.push(Mc$2(r22));
14750
14750
  while (r22.next && r22.next != ")" && r22.next != "|");
14751
14751
  return e.length == 1 ? e[0] : { type: "seq", exprs: e };
14752
14752
  }
14753
- function qc$2(r22) {
14754
- let e = jc$2(r22);
14753
+ function Mc$2(r22) {
14754
+ let e = Hc$2(r22);
14755
14755
  for (; ; )
14756
14756
  if (r22.eat("+"))
14757
14757
  e = { type: "plus", expr: e };
@@ -14760,7 +14760,7 @@ Actual: ` + p3.attribValue
14760
14760
  else if (r22.eat("?"))
14761
14761
  e = { type: "opt", expr: e };
14762
14762
  else if (r22.eat("{"))
14763
- e = Mc$2(r22, e);
14763
+ e = Uc$2(r22, e);
14764
14764
  else
14765
14765
  break;
14766
14766
  return e;
@@ -14770,11 +14770,11 @@ Actual: ` + p3.attribValue
14770
14770
  let e = Number(r22.next);
14771
14771
  return r22.pos++, e;
14772
14772
  }
14773
- function Mc$2(r22, e) {
14773
+ function Uc$2(r22, e) {
14774
14774
  let t = io$3(r22), n = t;
14775
14775
  return r22.eat(",") && (r22.next != "}" ? n = io$3(r22) : n = -1), r22.eat("}") || r22.err("Unclosed braced range"), { type: "range", min: t, max: n, expr: e };
14776
14776
  }
14777
- function Uc$2(r22, e) {
14777
+ function jc$2(r22, e) {
14778
14778
  let t = r22.nodeTypes, n = t[e];
14779
14779
  if (n)
14780
14780
  return [n];
@@ -14785,18 +14785,18 @@ Actual: ` + p3.attribValue
14785
14785
  }
14786
14786
  return i3.length == 0 && r22.err("No node type or group '" + e + "' found"), i3;
14787
14787
  }
14788
- function jc$2(r22) {
14788
+ function Hc$2(r22) {
14789
14789
  if (r22.eat("(")) {
14790
- let e = Ta$2(r22);
14790
+ let e = Fa$2(r22);
14791
14791
  return r22.eat(")") || r22.err("Missing closing paren"), e;
14792
14792
  } else if (/\W/.test(r22.next))
14793
14793
  r22.err("Unexpected token '" + r22.next + "'");
14794
14794
  else {
14795
- let e = Uc$2(r22, r22.next).map((t) => (r22.inline == null ? r22.inline = t.isInline : r22.inline != t.isInline && r22.err("Mixing inline and block content"), { type: "name", value: t }));
14795
+ let e = jc$2(r22, r22.next).map((t) => (r22.inline == null ? r22.inline = t.isInline : r22.inline != t.isInline && r22.err("Mixing inline and block content"), { type: "name", value: t }));
14796
14796
  return r22.pos++, e.length == 1 ? e[0] : { type: "choice", exprs: e };
14797
14797
  }
14798
14798
  }
14799
- function Hc$2(r22) {
14799
+ function Vc$2(r22) {
14800
14800
  let e = [[]];
14801
14801
  return i3(s(r22, 0), t()), e;
14802
14802
  function t() {
@@ -14850,12 +14850,12 @@ Actual: ` + p3.attribValue
14850
14850
  }
14851
14851
  }
14852
14852
  }
14853
- function Fa$2(r22, e) {
14853
+ function Ba$2(r22, e) {
14854
14854
  return e - r22;
14855
14855
  }
14856
14856
  function so$3(r22, e) {
14857
14857
  let t = [];
14858
- return n(e), t.sort(Fa$2);
14858
+ return n(e), t.sort(Ba$2);
14859
14859
  function n(i3) {
14860
14860
  let s = r22[i3];
14861
14861
  if (s.length == 1 && !s[0].term)
@@ -14867,7 +14867,7 @@ Actual: ` + p3.attribValue
14867
14867
  }
14868
14868
  }
14869
14869
  }
14870
- function Vc$2(r22) {
14870
+ function zc$2(r22) {
14871
14871
  let e = /* @__PURE__ */ Object.create(null);
14872
14872
  return t(so$3(r22, 0));
14873
14873
  function t(n) {
@@ -14886,13 +14886,13 @@ Actual: ` + p3.attribValue
14886
14886
  });
14887
14887
  let s = e[n.join(",")] = new gt$2(n.indexOf(r22.length - 1) > -1);
14888
14888
  for (let o = 0; o < i3.length; o++) {
14889
- let a = i3[o][1].sort(Fa$2);
14889
+ let a = i3[o][1].sort(Ba$2);
14890
14890
  s.next.push({ type: i3[o][0], next: e[a.join(",")] || t(a) });
14891
14891
  }
14892
14892
  return s;
14893
14893
  }
14894
14894
  }
14895
- function zc$2(r22, e) {
14895
+ function Gc$2(r22, e) {
14896
14896
  for (let t = 0, n = [r22]; t < n.length; t++) {
14897
14897
  let i3 = n[t], s = !i3.validEnd, o = [];
14898
14898
  for (let a = 0; a < i3.next.length; a++) {
@@ -14902,7 +14902,7 @@ Actual: ` + p3.attribValue
14902
14902
  s && e.err("Only non-generatable nodes (" + o.join(", ") + ") in a required position (see https://prosemirror.net/docs/guide/#generatable)");
14903
14903
  }
14904
14904
  }
14905
- function Ba$2(r22) {
14905
+ function ka$2(r22) {
14906
14906
  let e = /* @__PURE__ */ Object.create(null);
14907
14907
  for (let t in r22) {
14908
14908
  let n = r22[t];
@@ -14912,7 +14912,7 @@ Actual: ` + p3.attribValue
14912
14912
  }
14913
14913
  return e;
14914
14914
  }
14915
- function ka$2(r22, e) {
14915
+ function Na$2(r22, e) {
14916
14916
  let t = /* @__PURE__ */ Object.create(null);
14917
14917
  for (let n in r22) {
14918
14918
  let i3 = e && e[n];
@@ -14927,7 +14927,7 @@ Actual: ` + p3.attribValue
14927
14927
  }
14928
14928
  return t;
14929
14929
  }
14930
- function Na$2(r22, e, t, n) {
14930
+ function Ia$2(r22, e, t, n) {
14931
14931
  for (let i3 in e)
14932
14932
  if (!(i3 in r22))
14933
14933
  throw new RangeError(`Unsupported attribute ${i3} for ${t} of type ${i3}`);
@@ -14936,11 +14936,11 @@ Actual: ` + p3.attribValue
14936
14936
  s.validate && s.validate(e[i3]);
14937
14937
  }
14938
14938
  }
14939
- function Ia$2(r22, e) {
14939
+ function Ra$2(r22, e) {
14940
14940
  let t = /* @__PURE__ */ Object.create(null);
14941
14941
  if (e)
14942
14942
  for (let n in e)
14943
- t[n] = new Wc$2(r22, n, e[n]);
14943
+ t[n] = new Jc$2(r22, n, e[n]);
14944
14944
  return t;
14945
14945
  }
14946
14946
  let hr$2 = class hr2 {
@@ -14948,7 +14948,7 @@ Actual: ` + p3.attribValue
14948
14948
  @internal
14949
14949
  */
14950
14950
  constructor(e, t, n) {
14951
- this.name = e, this.schema = t, this.spec = n, this.markSet = null, this.groups = n.group ? n.group.split(" ") : [], this.attrs = Ia$2(e, n.attrs), this.defaultAttrs = Ba$2(this.attrs), this.contentMatch = null, this.inlineContent = null, this.isBlock = !(n.inline || e == "text"), this.isText = e == "text";
14951
+ this.name = e, this.schema = t, this.spec = n, this.markSet = null, this.groups = n.group ? n.group.split(" ") : [], this.attrs = Ra$2(e, n.attrs), this.defaultAttrs = ka$2(this.attrs), this.contentMatch = null, this.inlineContent = null, this.isBlock = !(n.inline || e == "text"), this.isText = e == "text";
14952
14952
  }
14953
14953
  /**
14954
14954
  True if this is an inline type.
@@ -15009,7 +15009,7 @@ Actual: ` + p3.attribValue
15009
15009
  @internal
15010
15010
  */
15011
15011
  computeAttrs(e) {
15012
- return !e && this.defaultAttrs ? this.defaultAttrs : ka$2(this.attrs, e);
15012
+ return !e && this.defaultAttrs ? this.defaultAttrs : Na$2(this.attrs, e);
15013
15013
  }
15014
15014
  /**
15015
15015
  Create a `Node` of this type. The given attributes are
@@ -15076,7 +15076,7 @@ Actual: ` + p3.attribValue
15076
15076
  @internal
15077
15077
  */
15078
15078
  checkAttrs(e) {
15079
- Na$2(this.attrs, e, "node", this.name);
15079
+ Ia$2(this.attrs, e, "node", this.name);
15080
15080
  }
15081
15081
  /**
15082
15082
  Check whether the given mark type is allowed in this node.
@@ -15122,7 +15122,7 @@ Actual: ` + p3.attribValue
15122
15122
  return n;
15123
15123
  }
15124
15124
  };
15125
- function Gc$2(r22, e, t) {
15125
+ function Wc$2(r22, e, t) {
15126
15126
  let n = t.split("|");
15127
15127
  return (i3) => {
15128
15128
  let s = i3 === null ? "null" : typeof i3;
@@ -15130,9 +15130,9 @@ Actual: ` + p3.attribValue
15130
15130
  throw new RangeError(`Expected value of type ${n} for attribute ${e} on type ${r22}, got ${s}`);
15131
15131
  };
15132
15132
  }
15133
- let Wc$2 = class Wc {
15133
+ let Jc$2 = class Jc {
15134
15134
  constructor(e, t, n) {
15135
- this.hasDefault = Object.prototype.hasOwnProperty.call(n, "default"), this.default = n.default, this.validate = typeof n.validate == "string" ? Gc$2(e, t, n.validate) : n.validate;
15135
+ this.hasDefault = Object.prototype.hasOwnProperty.call(n, "default"), this.default = n.default, this.validate = typeof n.validate == "string" ? Wc$2(e, t, n.validate) : n.validate;
15136
15136
  }
15137
15137
  get isRequired() {
15138
15138
  return !this.hasDefault;
@@ -15143,8 +15143,8 @@ Actual: ` + p3.attribValue
15143
15143
  @internal
15144
15144
  */
15145
15145
  constructor(e, t, n, i3) {
15146
- this.name = e, this.rank = t, this.schema = n, this.spec = i3, this.attrs = Ia$2(e, i3.attrs), this.excluded = null;
15147
- let s = Ba$2(this.attrs);
15146
+ this.name = e, this.rank = t, this.schema = n, this.spec = i3, this.attrs = Ra$2(e, i3.attrs), this.excluded = null;
15147
+ let s = ka$2(this.attrs);
15148
15148
  this.instance = s ? new ge$1(this, s) : null;
15149
15149
  }
15150
15150
  /**
@@ -15153,7 +15153,7 @@ Actual: ` + p3.attribValue
15153
15153
  they have defaults, will be added.
15154
15154
  */
15155
15155
  create(e = null) {
15156
- return !e && this.instance ? this.instance : new ge$1(this, ka$2(this.attrs, e));
15156
+ return !e && this.instance ? this.instance : new ge$1(this, Na$2(this.attrs, e));
15157
15157
  }
15158
15158
  /**
15159
15159
  @internal
@@ -15183,7 +15183,7 @@ Actual: ` + p3.attribValue
15183
15183
  @internal
15184
15184
  */
15185
15185
  checkAttrs(e) {
15186
- Na$2(this.attrs, e, "mark", this.name);
15186
+ Ia$2(this.attrs, e, "mark", this.name);
15187
15187
  }
15188
15188
  /**
15189
15189
  Queries whether a given mark type is
@@ -15292,10 +15292,10 @@ Actual: ` + p3.attribValue
15292
15292
  }
15293
15293
  return t;
15294
15294
  }
15295
- function Jc$2(r22) {
15295
+ function Kc$2(r22) {
15296
15296
  return r22.tag != null;
15297
15297
  }
15298
- function Kc$2(r22) {
15298
+ function $c$2(r22) {
15299
15299
  return r22.style != null;
15300
15300
  }
15301
15301
  let gr$2 = class gr2 {
@@ -15307,9 +15307,9 @@ Actual: ` + p3.attribValue
15307
15307
  this.schema = e, this.rules = t, this.tags = [], this.styles = [];
15308
15308
  let n = this.matchedStyles = [];
15309
15309
  t.forEach((i3) => {
15310
- if (Jc$2(i3))
15310
+ if (Kc$2(i3))
15311
15311
  this.tags.push(i3);
15312
- else if (Kc$2(i3)) {
15312
+ else if ($c$2(i3)) {
15313
15313
  let s = /[^=]*/.exec(i3.style)[0];
15314
15314
  n.indexOf(s) < 0 && n.push(s), this.styles.push(i3);
15315
15315
  }
@@ -15345,7 +15345,7 @@ Actual: ` + p3.attribValue
15345
15345
  matchTag(e, t, n) {
15346
15346
  for (let i3 = n ? this.tags.indexOf(n) + 1 : 0; i3 < this.tags.length; i3++) {
15347
15347
  let s = this.tags[i3];
15348
- if (Yc$2(e, s.tag) && (s.namespace === void 0 || e.namespaceURI == s.namespace) && (!s.context || t.matchesContext(s.context))) {
15348
+ if (Qc$2(e, s.tag) && (s.namespace === void 0 || e.namespaceURI == s.namespace) && (!s.context || t.matchesContext(s.context))) {
15349
15349
  if (s.getAttrs) {
15350
15350
  let o = s.getAttrs(e);
15351
15351
  if (o === false)
@@ -15413,7 +15413,7 @@ Actual: ` + p3.attribValue
15413
15413
  return e.cached.domParser || (e.cached.domParser = new gr2(e, gr2.schemaRules(e)));
15414
15414
  }
15415
15415
  };
15416
- const Ra$2 = {
15416
+ const Pa$2 = {
15417
15417
  address: true,
15418
15418
  article: true,
15419
15419
  aside: true,
@@ -15446,14 +15446,14 @@ Actual: ` + p3.attribValue
15446
15446
  table: true,
15447
15447
  tfoot: true,
15448
15448
  ul: true
15449
- }, $c$2 = {
15449
+ }, Xc$2 = {
15450
15450
  head: true,
15451
15451
  noscript: true,
15452
15452
  object: true,
15453
15453
  script: true,
15454
15454
  style: true,
15455
15455
  title: true
15456
- }, Pa$2 = { ol: true, ul: true }, Gt$3 = 1, ci$2 = 2, or$2 = 4;
15456
+ }, Oa$2 = { ol: true, ul: true }, Gt$3 = 1, ci$2 = 2, or$2 = 4;
15457
15457
  function ao$1(r22, e, t) {
15458
15458
  return e != null ? (e ? Gt$3 : 0) | (e === "full" ? ci$2 : 0) : r22 && r22.whitespace == "pre" ? Gt$3 | ci$2 : t & -5;
15459
15459
  }
@@ -15487,7 +15487,7 @@ Actual: ` + p3.attribValue
15487
15487
  return !e && this.match && (t = t.append(this.match.fillBefore(Z.empty, true))), this.type ? this.type.create(this.attrs, t, this.marks) : t;
15488
15488
  }
15489
15489
  inlineContext(e) {
15490
- return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !Ra$2.hasOwnProperty(e.parentNode.nodeName.toLowerCase());
15490
+ return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !Pa$2.hasOwnProperty(e.parentNode.nodeName.toLowerCase());
15491
15491
  }
15492
15492
  };
15493
15493
  let uo$2 = class uo {
@@ -15525,14 +15525,14 @@ Actual: ` + p3.attribValue
15525
15525
  let i3 = this.localPreserveWS, s = this.top;
15526
15526
  (e.tagName == "PRE" || /pre/.test(e.style && e.style.whiteSpace)) && (this.localPreserveWS = true);
15527
15527
  let o = e.nodeName.toLowerCase(), a;
15528
- Pa$2.hasOwnProperty(o) && this.parser.normalizeLists && Xc$2(e);
15528
+ Oa$2.hasOwnProperty(o) && this.parser.normalizeLists && Yc$2(e);
15529
15529
  let u = this.options.ruleFromNode && this.options.ruleFromNode(e) || (a = this.parser.matchTag(e, this, n));
15530
- e: if (u ? u.ignore : $c$2.hasOwnProperty(o))
15530
+ e: if (u ? u.ignore : Xc$2.hasOwnProperty(o))
15531
15531
  this.findInside(e), this.ignoreFallback(e, t);
15532
15532
  else if (!u || u.skip || u.closeParent) {
15533
15533
  u && u.closeParent ? this.open = Math.max(0, this.open - 1) : u && u.skip.nodeType && (e = u.skip);
15534
15534
  let f3, c3 = this.needsBlock;
15535
- if (Ra$2.hasOwnProperty(o))
15535
+ if (Pa$2.hasOwnProperty(o))
15536
15536
  s.content.length && s.content[0].isInline && this.open && (this.open--, s = this.top), f3 = true, s.type || (this.needsBlock = true);
15537
15537
  else if (!e.firstChild) {
15538
15538
  this.leafFallback(e, t);
@@ -15759,13 +15759,13 @@ Actual: ` + p3.attribValue
15759
15759
  }
15760
15760
  }
15761
15761
  };
15762
- function Xc$2(r22) {
15762
+ function Yc$2(r22) {
15763
15763
  for (let e = r22.firstChild, t = null; e; e = e.nextSibling) {
15764
15764
  let n = e.nodeType == 1 ? e.nodeName.toLowerCase() : null;
15765
- n && Pa$2.hasOwnProperty(n) && t ? (t.appendChild(e), e = t) : n == "li" ? t = e : n && (t = null);
15765
+ n && Oa$2.hasOwnProperty(n) && t ? (t.appendChild(e), e = t) : n == "li" ? t = e : n && (t = null);
15766
15766
  }
15767
15767
  }
15768
- function Yc$2(r22, e) {
15768
+ function Qc$2(r22, e) {
15769
15769
  return (r22.matches || r22.msMatchesSelector || r22.webkitMatchesSelector || r22.mozMatchesSelector).call(r22, e);
15770
15770
  }
15771
15771
  function lo$3(r22) {
@@ -15792,7 +15792,7 @@ Actual: ` + p3.attribValue
15792
15792
  return true;
15793
15793
  }
15794
15794
  }
15795
- let Oa$2 = class Oa2 {
15795
+ let La$2 = class La2 {
15796
15796
  /**
15797
15797
  Create a serializer. `nodes` should map node names to functions
15798
15798
  that take a node and return a description of the corresponding
@@ -15879,7 +15879,7 @@ Actual: ` + p3.attribValue
15879
15879
  properties in a schema's node and mark specs.
15880
15880
  */
15881
15881
  static fromSchema(e) {
15882
- return e.cached.domSerializer || (e.cached.domSerializer = new Oa2(this.nodesFromSchema(e), this.marksFromSchema(e)));
15882
+ return e.cached.domSerializer || (e.cached.domSerializer = new La2(this.nodesFromSchema(e), this.marksFromSchema(e)));
15883
15883
  }
15884
15884
  /**
15885
15885
  Gather the serializers in a schema's node specs into an object.
@@ -15908,11 +15908,11 @@ Actual: ` + p3.attribValue
15908
15908
  return r22.document || window.document;
15909
15909
  }
15910
15910
  const mo$2 = /* @__PURE__ */ new WeakMap();
15911
- function Qc$2(r22) {
15911
+ function Zc$2(r22) {
15912
15912
  let e = mo$2.get(r22);
15913
- return e === void 0 && mo$2.set(r22, e = Zc$2(r22)), e;
15913
+ return e === void 0 && mo$2.set(r22, e = ef$2(r22)), e;
15914
15914
  }
15915
- function Zc$2(r22) {
15915
+ function ef$2(r22) {
15916
15916
  let e = null;
15917
15917
  function t(n) {
15918
15918
  if (n && typeof n == "object")
@@ -15938,7 +15938,7 @@ Actual: ` + p3.attribValue
15938
15938
  let i3 = e[0], s;
15939
15939
  if (typeof i3 != "string")
15940
15940
  throw new RangeError("Invalid array passed to renderSpec");
15941
- if (n && (s = Qc$2(n)) && s.indexOf(e) > -1)
15941
+ if (n && (s = Zc$2(n)) && s.indexOf(e) > -1)
15942
15942
  throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");
15943
15943
  let o = i3.indexOf(" ");
15944
15944
  o > 0 && (t = i3.slice(0, o), i3 = i3.slice(o + 1));
@@ -15968,17 +15968,17 @@ Actual: ` + p3.attribValue
15968
15968
  }
15969
15969
  return { dom: u, contentDOM: a };
15970
15970
  }
15971
- const La$2 = 65535, _a$2 = Math.pow(2, 16);
15972
- function ef$2(r22, e) {
15973
- return r22 + e * _a$2;
15971
+ const _a$2 = 65535, qa$2 = Math.pow(2, 16);
15972
+ function tf$2(r22, e) {
15973
+ return r22 + e * qa$2;
15974
15974
  }
15975
15975
  function po$3(r22) {
15976
- return r22 & La$2;
15976
+ return r22 & _a$2;
15977
15977
  }
15978
- function tf$2(r22) {
15979
- return (r22 - (r22 & La$2)) / _a$2;
15978
+ function rf$2(r22) {
15979
+ return (r22 - (r22 & _a$2)) / qa$2;
15980
15980
  }
15981
- const qa$2 = 1, Ma$2 = 2, ur$2 = 4, Ua$2 = 8;
15981
+ const Ma$2 = 1, Ua$2 = 2, ur$2 = 4, ja$2 = 8;
15982
15982
  let fi$2 = class fi {
15983
15983
  /**
15984
15984
  @internal
@@ -15992,19 +15992,19 @@ Actual: ` + p3.attribValue
15992
15992
  argument from the document.
15993
15993
  */
15994
15994
  get deleted() {
15995
- return (this.delInfo & Ua$2) > 0;
15995
+ return (this.delInfo & ja$2) > 0;
15996
15996
  }
15997
15997
  /**
15998
15998
  Tells you whether the token before the mapped position was deleted.
15999
15999
  */
16000
16000
  get deletedBefore() {
16001
- return (this.delInfo & (qa$2 | ur$2)) > 0;
16001
+ return (this.delInfo & (Ma$2 | ur$2)) > 0;
16002
16002
  }
16003
16003
  /**
16004
16004
  True when the token after the mapped position was deleted.
16005
16005
  */
16006
16006
  get deletedAfter() {
16007
- return (this.delInfo & (Ma$2 | ur$2)) > 0;
16007
+ return (this.delInfo & (Ua$2 | ur$2)) > 0;
16008
16008
  }
16009
16009
  /**
16010
16010
  Tells whether any of the steps mapped through deletes across the
@@ -16033,7 +16033,7 @@ Actual: ` + p3.attribValue
16033
16033
  if (!this.inverted)
16034
16034
  for (let i3 = 0; i3 < n; i3++)
16035
16035
  t += this.ranges[i3 * 3 + 2] - this.ranges[i3 * 3 + 1];
16036
- return this.ranges[n * 3] + t + tf$2(e);
16036
+ return this.ranges[n * 3] + t + rf$2(e);
16037
16037
  }
16038
16038
  mapResult(e, t = 1) {
16039
16039
  return this._map(e, t, false);
@@ -16055,8 +16055,8 @@ Actual: ` + p3.attribValue
16055
16055
  let g = f3 ? e == u ? -1 : e == h3 ? 1 : t : t, S = u + i3 + (g < 0 ? 0 : c3);
16056
16056
  if (n)
16057
16057
  return S;
16058
- let T3 = e == (t < 0 ? u : h3) ? null : ef$2(a / 3, e - u), A = e == u ? Ma$2 : e == h3 ? qa$2 : ur$2;
16059
- return (t < 0 ? e != u : e != h3) && (A |= Ua$2), new fi$2(S, A, T3);
16058
+ let T3 = e == (t < 0 ? u : h3) ? null : tf$2(a / 3, e - u), A = e == u ? Ua$2 : e == h3 ? Ma$2 : ur$2;
16059
+ return (t < 0 ? e != u : e != h3) && (A |= ja$2), new fi$2(S, A, T3);
16060
16060
  }
16061
16061
  i3 += c3 - f3;
16062
16062
  }
@@ -16584,7 +16584,7 @@ Actual: ` + p3.attribValue
16584
16584
  }
16585
16585
  return false;
16586
16586
  }
16587
- function rf$2(r22, e, t, n) {
16587
+ function nf$2(r22, e, t, n) {
16588
16588
  let i3 = [], s = [], o, a;
16589
16589
  r22.doc.nodesBetween(e, t, (u, f3, c3) => {
16590
16590
  if (!u.isInline)
@@ -16598,7 +16598,7 @@ Actual: ` + p3.attribValue
16598
16598
  }
16599
16599
  }), i3.forEach((u) => r22.step(u)), s.forEach((u) => r22.step(u));
16600
16600
  }
16601
- function nf$2(r22, e, t, n) {
16601
+ function sf$1(r22, e, t, n) {
16602
16602
  let i3 = [], s = 0;
16603
16603
  r22.doc.nodesBetween(e, t, (o, a) => {
16604
16604
  if (!o.isInline)
@@ -16648,7 +16648,7 @@ Actual: ` + p3.attribValue
16648
16648
  for (let u = o.length - 1; u >= 0; u--)
16649
16649
  r22.step(o[u]);
16650
16650
  }
16651
- function sf$1(r22, e, t) {
16651
+ function of$1(r22, e, t) {
16652
16652
  return (e == 0 || r22.canReplace(e, r22.childCount)) && (t == r22.childCount || r22.canReplace(0, t));
16653
16653
  }
16654
16654
  function up$2(r22) {
@@ -16657,12 +16657,12 @@ Actual: ` + p3.attribValue
16657
16657
  let i3 = r22.$from.node(n), s = r22.$from.index(n), o = r22.$to.indexAfter(n);
16658
16658
  if (n < r22.depth && i3.canReplace(s, o, t))
16659
16659
  return n;
16660
- if (n == 0 || i3.type.spec.isolating || !sf$1(i3, s, o))
16660
+ if (n == 0 || i3.type.spec.isolating || !of$1(i3, s, o))
16661
16661
  break;
16662
16662
  }
16663
16663
  return null;
16664
16664
  }
16665
- function of$1(r22, e, t) {
16665
+ function af$1(r22, e, t) {
16666
16666
  let { $from: n, $to: i3, depth: s } = e, o = n.before(s + 1), a = i3.after(s + 1), u = o, f3 = a, c3 = Z.empty, h3 = 0;
16667
16667
  for (let T3 = s, A = false; T3 > t; T3--)
16668
16668
  A || n.index(T3) > 0 ? (A = true, c3 = Z.from(n.node(T3).copy(c3)), h3++) : u--;
@@ -16672,20 +16672,20 @@ Actual: ` + p3.attribValue
16672
16672
  r22.step(new Je$3(u, f3, o, a, new oe$2(c3.append(g), h3, S), c3.size - h3, true));
16673
16673
  }
16674
16674
  function lp$2(r22, e, t = null, n = r22) {
16675
- let i3 = af$1(r22, e), s = i3 && uf$2(n, e);
16675
+ let i3 = uf$2(r22, e), s = i3 && lf$1(n, e);
16676
16676
  return s ? i3.map(ho$2).concat({ type: e, attrs: t }).concat(s.map(ho$2)) : null;
16677
16677
  }
16678
16678
  function ho$2(r22) {
16679
16679
  return { type: r22, attrs: null };
16680
16680
  }
16681
- function af$1(r22, e) {
16681
+ function uf$2(r22, e) {
16682
16682
  let { parent: t, startIndex: n, endIndex: i3 } = r22, s = t.contentMatchAt(n).findWrapping(e);
16683
16683
  if (!s)
16684
16684
  return null;
16685
16685
  let o = s.length ? s[0] : e;
16686
16686
  return t.canReplaceWith(n, i3, o) ? s : null;
16687
16687
  }
16688
- function uf$2(r22, e) {
16688
+ function lf$1(r22, e) {
16689
16689
  let { parent: t, startIndex: n, endIndex: i3 } = r22, s = t.child(n), o = e.contentMatch.findWrapping(s.type);
16690
16690
  if (!o)
16691
16691
  return null;
@@ -16694,7 +16694,7 @@ Actual: ` + p3.attribValue
16694
16694
  u = u.matchType(t.child(f3).type);
16695
16695
  return !u || !u.validEnd ? null : o;
16696
16696
  }
16697
- function lf$1(r22, e, t) {
16697
+ function cf$1(r22, e, t) {
16698
16698
  let n = Z.empty;
16699
16699
  for (let o = t.length - 1; o >= 0; o--) {
16700
16700
  if (n.size) {
@@ -16707,25 +16707,25 @@ Actual: ` + p3.attribValue
16707
16707
  let i3 = e.start, s = e.end;
16708
16708
  r22.step(new Je$3(i3, s, i3, s, new oe$2(n, 0, 0), t.length, true));
16709
16709
  }
16710
- function cf$1(r22, e, t, n, i3) {
16710
+ function ff$2(r22, e, t, n, i3) {
16711
16711
  if (!n.isTextblock)
16712
16712
  throw new RangeError("Type given to setBlockType should be a textblock");
16713
16713
  let s = r22.steps.length;
16714
16714
  r22.doc.nodesBetween(e, t, (o, a) => {
16715
16715
  let u = typeof i3 == "function" ? i3(o) : i3;
16716
- if (o.isTextblock && !o.hasMarkup(n, u) && ff$2(r22.doc, r22.mapping.slice(s).map(a), n)) {
16716
+ if (o.isTextblock && !o.hasMarkup(n, u) && df$1(r22.doc, r22.mapping.slice(s).map(a), n)) {
16717
16717
  let f3 = null;
16718
16718
  if (n.schema.linebreakReplacement) {
16719
16719
  let S = n.whitespace == "pre", T3 = !!n.contentMatch.matchType(n.schema.linebreakReplacement);
16720
16720
  S && !T3 ? f3 = false : !S && T3 && (f3 = true);
16721
16721
  }
16722
- f3 === false && Ha$2(r22, o, a, s), Fi$2(r22, r22.mapping.slice(s).map(a, 1), n, void 0, f3 === null);
16722
+ f3 === false && Va$2(r22, o, a, s), Fi$2(r22, r22.mapping.slice(s).map(a, 1), n, void 0, f3 === null);
16723
16723
  let c3 = r22.mapping.slice(s), h3 = c3.map(a, 1), g = c3.map(a + o.nodeSize, 1);
16724
- return r22.step(new Je$3(h3, g, h3 + 1, g - 1, new oe$2(Z.from(n.create(u, null, o.marks)), 0, 0), 1, true)), f3 === true && ja$2(r22, o, a, s), false;
16724
+ return r22.step(new Je$3(h3, g, h3 + 1, g - 1, new oe$2(Z.from(n.create(u, null, o.marks)), 0, 0), 1, true)), f3 === true && Ha$2(r22, o, a, s), false;
16725
16725
  }
16726
16726
  });
16727
16727
  }
16728
- function ja$2(r22, e, t, n) {
16728
+ function Ha$2(r22, e, t, n) {
16729
16729
  e.forEach((i3, s) => {
16730
16730
  if (i3.isText) {
16731
16731
  let o, a = /\r?\n|\r/g;
@@ -16736,7 +16736,7 @@ Actual: ` + p3.attribValue
16736
16736
  }
16737
16737
  });
16738
16738
  }
16739
- function Ha$2(r22, e, t, n) {
16739
+ function Va$2(r22, e, t, n) {
16740
16740
  e.forEach((i3, s) => {
16741
16741
  if (i3.type == i3.type.schema.linebreakReplacement) {
16742
16742
  let o = r22.mapping.slice(n).map(t + 1 + s);
@@ -16745,11 +16745,11 @@ Actual: ` + p3.attribValue
16745
16745
  }
16746
16746
  });
16747
16747
  }
16748
- function ff$2(r22, e, t) {
16748
+ function df$1(r22, e, t) {
16749
16749
  let n = r22.resolve(e), i3 = n.index();
16750
16750
  return n.parent.canReplaceWith(i3, i3 + 1, t);
16751
16751
  }
16752
- function df$1(r22, e, t, n, i3) {
16752
+ function mf$1(r22, e, t, n, i3) {
16753
16753
  let s = r22.doc.nodeAt(e);
16754
16754
  if (!s)
16755
16755
  throw new RangeError("No node at given position");
@@ -16778,7 +16778,7 @@ Actual: ` + p3.attribValue
16778
16778
  let a = i3.indexAfter(s), u = n && n[0];
16779
16779
  return i3.node(s).canReplaceWith(a, a, u ? u.type : i3.node(s + 1).type);
16780
16780
  }
16781
- function mf$1(r22, e, t = 1, n) {
16781
+ function pf$1(r22, e, t = 1, n) {
16782
16782
  let i3 = r22.doc.resolve(e), s = Z.empty, o = Z.empty;
16783
16783
  for (let a = i3.depth, u = i3.depth - t, f3 = t - 1; a > u; a--, f3--) {
16784
16784
  s = Z.from(i3.node(a).copy(s));
@@ -16789,9 +16789,9 @@ Actual: ` + p3.attribValue
16789
16789
  }
16790
16790
  function fp$2(r22, e) {
16791
16791
  let t = r22.resolve(e), n = t.index();
16792
- return Va$2(t.nodeBefore, t.nodeAfter) && t.parent.canReplace(n, n + 1);
16792
+ return za$2(t.nodeBefore, t.nodeAfter) && t.parent.canReplace(n, n + 1);
16793
16793
  }
16794
- function pf$1(r22, e) {
16794
+ function hf$1(r22, e) {
16795
16795
  e.content.size || r22.type.compatibleContent(e.type);
16796
16796
  let t = r22.contentMatchAt(r22.childCount), { linebreakReplacement: n } = r22.type.schema;
16797
16797
  for (let i3 = 0; i3 < e.childCount; i3++) {
@@ -16801,21 +16801,21 @@ Actual: ` + p3.attribValue
16801
16801
  }
16802
16802
  return t.validEnd;
16803
16803
  }
16804
- function Va$2(r22, e) {
16805
- return !!(r22 && e && !r22.isLeaf && pf$1(r22, e));
16804
+ function za$2(r22, e) {
16805
+ return !!(r22 && e && !r22.isLeaf && hf$1(r22, e));
16806
16806
  }
16807
16807
  function dp$2(r22, e, t = -1) {
16808
16808
  let n = r22.resolve(e);
16809
16809
  for (let i3 = n.depth; ; i3--) {
16810
16810
  let s, o, a = n.index(i3);
16811
- if (i3 == n.depth ? (s = n.nodeBefore, o = n.nodeAfter) : t > 0 ? (s = n.node(i3 + 1), a++, o = n.node(i3).maybeChild(a)) : (s = n.node(i3).maybeChild(a - 1), o = n.node(i3 + 1)), s && !s.isTextblock && Va$2(s, o) && n.node(i3).canReplace(a, a + 1))
16811
+ if (i3 == n.depth ? (s = n.nodeBefore, o = n.nodeAfter) : t > 0 ? (s = n.node(i3 + 1), a++, o = n.node(i3).maybeChild(a)) : (s = n.node(i3).maybeChild(a - 1), o = n.node(i3 + 1)), s && !s.isTextblock && za$2(s, o) && n.node(i3).canReplace(a, a + 1))
16812
16812
  return e;
16813
16813
  if (i3 == 0)
16814
16814
  break;
16815
16815
  e = t < 0 ? n.before(i3) : n.after(i3);
16816
16816
  }
16817
16817
  }
16818
- function hf$1(r22, e, t) {
16818
+ function gf$1(r22, e, t) {
16819
16819
  let n = null, { linebreakReplacement: i3 } = r22.doc.type.schema, s = r22.doc.resolve(e - t), o = s.node().type;
16820
16820
  if (i3 && o.inlineContent) {
16821
16821
  let c3 = o.whitespace == "pre", h3 = !!o.contentMatch.matchType(i3);
@@ -16824,17 +16824,17 @@ Actual: ` + p3.attribValue
16824
16824
  let a = r22.steps.length;
16825
16825
  if (n === false) {
16826
16826
  let c3 = r22.doc.resolve(e + t);
16827
- Ha$2(r22, c3.node(), c3.before(), a);
16827
+ Va$2(r22, c3.node(), c3.before(), a);
16828
16828
  }
16829
16829
  o.inlineContent && Fi$2(r22, e + t - 1, o, s.node().contentMatchAt(s.index()), n == null);
16830
16830
  let u = r22.mapping.slice(a), f3 = u.map(e - t);
16831
16831
  if (r22.step(new Ie$3(f3, u.map(e + t, -1), oe$2.empty, true)), n === true) {
16832
16832
  let c3 = r22.doc.resolve(f3);
16833
- ja$2(r22, c3.node(), c3.before(), r22.steps.length);
16833
+ Ha$2(r22, c3.node(), c3.before(), r22.steps.length);
16834
16834
  }
16835
16835
  return r22;
16836
16836
  }
16837
- function gf$1(r22, e, t) {
16837
+ function wf$1(r22, e, t) {
16838
16838
  let n = r22.resolve(e);
16839
16839
  if (n.parent.canReplaceWith(n.index(), n.index(), t))
16840
16840
  return e;
@@ -16877,16 +16877,16 @@ Actual: ` + p3.attribValue
16877
16877
  }
16878
16878
  return null;
16879
16879
  }
16880
- function wf$1(r22, e, t = e, n = oe$2.empty) {
16880
+ function yf$1(r22, e, t = e, n = oe$2.empty) {
16881
16881
  if (e == t && !n.size)
16882
16882
  return null;
16883
16883
  let i3 = r22.resolve(e), s = r22.resolve(t);
16884
- return za$2(i3, s, n) ? new Ie$3(e, t, n) : new yf$1(i3, s, n).fit();
16884
+ return Ga$2(i3, s, n) ? new Ie$3(e, t, n) : new bf$1(i3, s, n).fit();
16885
16885
  }
16886
- function za$2(r22, e, t) {
16886
+ function Ga$2(r22, e, t) {
16887
16887
  return !t.openStart && !t.openEnd && r22.start() == e.start() && r22.parent.canReplace(r22.index(), e.index(), t.content);
16888
16888
  }
16889
- let yf$1 = class yf {
16889
+ let bf$1 = class bf {
16890
16890
  constructor(e, t, n) {
16891
16891
  this.$from = e, this.$to = t, this.unplaced = n, this.frontier = [], this.placed = Z.empty;
16892
16892
  for (let i3 = 0; i3 <= e.depth; i3++) {
@@ -16977,7 +16977,7 @@ Actual: ` + p3.attribValue
16977
16977
  let A = a.child(f3), B = h3.matchType(A.type);
16978
16978
  if (!B)
16979
16979
  break;
16980
- f3++, (f3 > 1 || u == 0 || A.content.size) && (h3 = B, c3.push(Ga$2(A.mark(g.allowedMarks(A.marks)), f3 == 1 ? u : 0, f3 == a.childCount ? S : -1)));
16980
+ f3++, (f3 > 1 || u == 0 || A.content.size) && (h3 = B, c3.push(Wa$2(A.mark(g.allowedMarks(A.marks)), f3 == 1 ? u : 0, f3 == a.childCount ? S : -1)));
16981
16981
  }
16982
16982
  let T3 = f3 == a.childCount;
16983
16983
  T3 || (S = -1), this.placed = Ut$2(this.placed, t, Z.from(c3)), this.frontier[t].match = h3, T3 && S < 0 && n && n.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
@@ -17044,35 +17044,35 @@ Actual: ` + p3.attribValue
17044
17044
  r22 = r22.firstChild.content;
17045
17045
  return r22;
17046
17046
  }
17047
- function Ga$2(r22, e, t) {
17047
+ function Wa$2(r22, e, t) {
17048
17048
  if (e <= 0)
17049
17049
  return r22;
17050
17050
  let n = r22.content;
17051
- return e > 1 && (n = n.replaceChild(0, Ga$2(n.firstChild, e - 1, n.childCount == 1 ? t - 1 : 0))), e > 0 && (n = r22.type.contentMatch.fillBefore(n).append(n), t <= 0 && (n = n.append(r22.type.contentMatch.matchFragment(n).fillBefore(Z.empty, true)))), r22.copy(n);
17051
+ return e > 1 && (n = n.replaceChild(0, Wa$2(n.firstChild, e - 1, n.childCount == 1 ? t - 1 : 0))), e > 0 && (n = r22.type.contentMatch.fillBefore(n).append(n), t <= 0 && (n = n.append(r22.type.contentMatch.matchFragment(n).fillBefore(Z.empty, true)))), r22.copy(n);
17052
17052
  }
17053
17053
  function ri$1(r22, e, t, n, i3) {
17054
17054
  let s = r22.node(e), o = i3 ? r22.indexAfter(e) : r22.index(e);
17055
17055
  if (o == s.childCount && !t.compatibleContent(s.type))
17056
17056
  return null;
17057
17057
  let a = n.fillBefore(s.content, true, o);
17058
- return a && !bf$1(t, s.content, o) ? a : null;
17058
+ return a && !xf$1(t, s.content, o) ? a : null;
17059
17059
  }
17060
- function bf$1(r22, e, t) {
17060
+ function xf$1(r22, e, t) {
17061
17061
  for (let n = t; n < e.childCount; n++)
17062
17062
  if (!r22.allowsMarks(e.child(n).marks))
17063
17063
  return true;
17064
17064
  return false;
17065
17065
  }
17066
- function xf$1(r22) {
17066
+ function Af$1(r22) {
17067
17067
  return r22.spec.defining || r22.spec.definingForContent;
17068
17068
  }
17069
- function Af$1(r22, e, t, n) {
17069
+ function Df$1(r22, e, t, n) {
17070
17070
  if (!n.size)
17071
17071
  return r22.deleteRange(e, t);
17072
17072
  let i3 = r22.doc.resolve(e), s = r22.doc.resolve(t);
17073
- if (za$2(i3, s, n))
17073
+ if (Ga$2(i3, s, n))
17074
17074
  return r22.step(new Ie$3(e, t, n));
17075
- let o = Ja$2(i3, r22.doc.resolve(t));
17075
+ let o = Ka$2(i3, r22.doc.resolve(t));
17076
17076
  o[o.length - 1] == 0 && o.pop();
17077
17077
  let a = -(i3.depth + 1);
17078
17078
  o.unshift(a);
@@ -17090,7 +17090,7 @@ Actual: ` + p3.attribValue
17090
17090
  g = T3.content;
17091
17091
  }
17092
17092
  for (let g = c3 - 1; g >= 0; g--) {
17093
- let S = f3[g], T3 = xf$1(S.type);
17093
+ let S = f3[g], T3 = Af$1(S.type);
17094
17094
  if (T3 && !S.sameMarkup(i3.node(Math.abs(a) - 1)))
17095
17095
  c3 = g;
17096
17096
  else if (T3 || !S.type.isTextblock)
@@ -17104,7 +17104,7 @@ Actual: ` + p3.attribValue
17104
17104
  B < 0 && (w = false, B = -B);
17105
17105
  let k = i3.node(B - 1), R = i3.index(B - 1);
17106
17106
  if (k.canReplaceWith(R, R, T3.type, T3.marks))
17107
- return r22.replace(i3.before(B), w ? s.after(B) : t, new oe$2(Wa$2(n.content, 0, n.openStart, S), S, n.openEnd));
17107
+ return r22.replace(i3.before(B), w ? s.after(B) : t, new oe$2(Ja$2(n.content, 0, n.openStart, S), S, n.openEnd));
17108
17108
  }
17109
17109
  }
17110
17110
  let h3 = r22.steps.length;
@@ -17113,10 +17113,10 @@ Actual: ` + p3.attribValue
17113
17113
  S < 0 || (e = i3.before(S), t = s.after(S));
17114
17114
  }
17115
17115
  }
17116
- function Wa$2(r22, e, t, n, i3) {
17116
+ function Ja$2(r22, e, t, n, i3) {
17117
17117
  if (e < t) {
17118
17118
  let s = r22.firstChild;
17119
- r22 = r22.replaceChild(0, s.copy(Wa$2(s.content, e + 1, t, n, s)));
17119
+ r22 = r22.replaceChild(0, s.copy(Ja$2(s.content, e + 1, t, n, s)));
17120
17120
  }
17121
17121
  if (e > n) {
17122
17122
  let s = i3.contentMatchAt(0), o = s.fillBefore(r22).append(r22);
@@ -17124,15 +17124,15 @@ Actual: ` + p3.attribValue
17124
17124
  }
17125
17125
  return r22;
17126
17126
  }
17127
- function Df$1(r22, e, t, n) {
17127
+ function Ef$2(r22, e, t, n) {
17128
17128
  if (!n.isInline && e == t && r22.doc.resolve(e).parent.content.size) {
17129
- let i3 = gf$1(r22.doc, e, n.type);
17129
+ let i3 = wf$1(r22.doc, e, n.type);
17130
17130
  i3 != null && (e = t = i3);
17131
17131
  }
17132
17132
  r22.replaceRange(e, t, new oe$2(Z.from(n), 0, 0));
17133
17133
  }
17134
- function Ef$2(r22, e, t) {
17135
- let n = r22.doc.resolve(e), i3 = r22.doc.resolve(t), s = Ja$2(n, i3);
17134
+ function vf$1(r22, e, t) {
17135
+ let n = r22.doc.resolve(e), i3 = r22.doc.resolve(t), s = Ka$2(n, i3);
17136
17136
  for (let o = 0; o < s.length; o++) {
17137
17137
  let a = s[o], u = o == s.length - 1;
17138
17138
  if (u && a == 0 || n.node(a).type.contentMatch.validEnd)
@@ -17145,7 +17145,7 @@ Actual: ` + p3.attribValue
17145
17145
  return r22.delete(n.before(o), t);
17146
17146
  r22.delete(e, t);
17147
17147
  }
17148
- function Ja$2(r22, e) {
17148
+ function Ka$2(r22, e) {
17149
17149
  let t = [], n = Math.min(r22.depth, e.depth);
17150
17150
  for (let i3 = n; i3 >= 0; i3--) {
17151
17151
  let s = r22.start(i3);
@@ -17236,7 +17236,7 @@ Actual: ` + p3.attribValue
17236
17236
  Ft$2.prototype = Object.create(Error.prototype);
17237
17237
  Ft$2.prototype.constructor = Ft$2;
17238
17238
  Ft$2.prototype.name = "TransformError";
17239
- let vf$1 = class vf {
17239
+ let Cf$1 = class Cf {
17240
17240
  /**
17241
17241
  Create a transform that starts with the given document.
17242
17242
  */
@@ -17285,7 +17285,7 @@ Actual: ` + p3.attribValue
17285
17285
  given `slice`.
17286
17286
  */
17287
17287
  replace(e, t = e, n = oe$2.empty) {
17288
- let i3 = wf$1(this.doc, e, t, n);
17288
+ let i3 = yf$1(this.doc, e, t, n);
17289
17289
  return i3 && this.step(i3), this;
17290
17290
  }
17291
17291
  /**
@@ -17327,7 +17327,7 @@ Actual: ` + p3.attribValue
17327
17327
  control over what happens.
17328
17328
  */
17329
17329
  replaceRange(e, t, n) {
17330
- return Af$1(this, e, t, n), this;
17330
+ return Df$1(this, e, t, n), this;
17331
17331
  }
17332
17332
  /**
17333
17333
  Replace the given range with a node, but use `from` and `to` as
@@ -17339,14 +17339,14 @@ Actual: ` + p3.attribValue
17339
17339
  that parent node.
17340
17340
  */
17341
17341
  replaceRangeWith(e, t, n) {
17342
- return Df$1(this, e, t, n), this;
17342
+ return Ef$2(this, e, t, n), this;
17343
17343
  }
17344
17344
  /**
17345
17345
  Delete the given range, expanding it to cover fully covered
17346
17346
  parent nodes until a valid replace is found.
17347
17347
  */
17348
17348
  deleteRange(e, t) {
17349
- return Ef$2(this, e, t), this;
17349
+ return vf$1(this, e, t), this;
17350
17350
  }
17351
17351
  /**
17352
17352
  Split the content in the given range off from its parent, if there
@@ -17356,14 +17356,14 @@ Actual: ` + p3.attribValue
17356
17356
  sure the lift is valid.
17357
17357
  */
17358
17358
  lift(e, t) {
17359
- return of$1(this, e, t), this;
17359
+ return af$1(this, e, t), this;
17360
17360
  }
17361
17361
  /**
17362
17362
  Join the blocks around the given position. If depth is 2, their
17363
17363
  last and first siblings are also joined, and so on.
17364
17364
  */
17365
17365
  join(e, t = 1) {
17366
- return hf$1(this, e, t), this;
17366
+ return gf$1(this, e, t), this;
17367
17367
  }
17368
17368
  /**
17369
17369
  Wrap the given [range](https://prosemirror.net/docs/ref/#model.NodeRange) in the given set of wrappers.
@@ -17371,21 +17371,21 @@ Actual: ` + p3.attribValue
17371
17371
  probably be computed with [`findWrapping`](https://prosemirror.net/docs/ref/#transform.findWrapping).
17372
17372
  */
17373
17373
  wrap(e, t) {
17374
- return lf$1(this, e, t), this;
17374
+ return cf$1(this, e, t), this;
17375
17375
  }
17376
17376
  /**
17377
17377
  Set the type of all textblocks (partly) between `from` and `to` to
17378
17378
  the given node type with the given attributes.
17379
17379
  */
17380
17380
  setBlockType(e, t = e, n, i3 = null) {
17381
- return cf$1(this, e, t, n, i3), this;
17381
+ return ff$2(this, e, t, n, i3), this;
17382
17382
  }
17383
17383
  /**
17384
17384
  Change the type, attributes, and/or marks of the node at `pos`.
17385
17385
  When `type` isn't given, the existing node type is preserved,
17386
17386
  */
17387
17387
  setNodeMarkup(e, t, n = null, i3) {
17388
- return df$1(this, e, t, n, i3), this;
17388
+ return mf$1(this, e, t, n, i3), this;
17389
17389
  }
17390
17390
  /**
17391
17391
  Set a single attribute on a given node to a new value.
@@ -17429,13 +17429,13 @@ Actual: ` + p3.attribValue
17429
17429
  use after the split (with the outermost nodes coming first).
17430
17430
  */
17431
17431
  split(e, t = 1, n) {
17432
- return mf$1(this, e, t, n), this;
17432
+ return pf$1(this, e, t, n), this;
17433
17433
  }
17434
17434
  /**
17435
17435
  Add the given mark to the inline content between `from` and `to`.
17436
17436
  */
17437
17437
  addMark(e, t, n) {
17438
- return rf$2(this, e, t, n), this;
17438
+ return nf$2(this, e, t, n), this;
17439
17439
  }
17440
17440
  /**
17441
17441
  Remove marks from inline nodes between `from` and `to`. When
@@ -17444,7 +17444,7 @@ Actual: ` + p3.attribValue
17444
17444
  remove all marks of any type.
17445
17445
  */
17446
17446
  removeMark(e, t, n) {
17447
- return nf$2(this, e, t, n), this;
17447
+ return sf$1(this, e, t, n), this;
17448
17448
  }
17449
17449
  /**
17450
17450
  Removes all marks and nodes from the content of the node at
@@ -17464,7 +17464,7 @@ Actual: ` + p3.attribValue
17464
17464
  `$head`.
17465
17465
  */
17466
17466
  constructor(e, t, n) {
17467
- this.$anchor = e, this.$head = t, this.ranges = n || [new Cf$1(e.min(t), e.max(t))];
17467
+ this.$anchor = e, this.$head = t, this.ranges = n || [new Sf$1(e.min(t), e.max(t))];
17468
17468
  }
17469
17469
  /**
17470
17470
  The selection's anchor, as an unresolved position.
@@ -17622,7 +17622,7 @@ Actual: ` + p3.attribValue
17622
17622
  }
17623
17623
  };
17624
17624
  ve$1.prototype.visible = true;
17625
- let Cf$1 = class Cf {
17625
+ let Sf$1 = class Sf {
17626
17626
  /**
17627
17627
  Create a range.
17628
17628
  */
@@ -17810,11 +17810,11 @@ Actual: ` + p3.attribValue
17810
17810
  return e instanceof at2;
17811
17811
  }
17812
17812
  getBookmark() {
17813
- return Sf$1;
17813
+ return Tf$1;
17814
17814
  }
17815
17815
  };
17816
17816
  ve$1.jsonID("all", at$3);
17817
- const Sf$1 = {
17817
+ const Tf$1 = {
17818
17818
  map() {
17819
17819
  return this;
17820
17820
  },
@@ -17852,7 +17852,7 @@ Actual: ` + p3.attribValue
17852
17852
  }), r22.setSelection(ve$1.near(r22.doc.resolve(o), t));
17853
17853
  }
17854
17854
  const bo$2 = 1, xo$2 = 2, Ao$2 = 4;
17855
- let Tf$1 = class Tf extends vf$1 {
17855
+ let Ff$2 = class Ff extends Cf$1 {
17856
17856
  /**
17857
17857
  @internal
17858
17858
  */
@@ -18011,7 +18011,7 @@ Actual: ` + p3.attribValue
18011
18011
  this.name = e, this.init = Do$1(t.init, n), this.apply = Do$1(t.apply, n);
18012
18012
  }
18013
18013
  };
18014
- const Ff$2 = [
18014
+ const Bf$2 = [
18015
18015
  new jt$3("doc", {
18016
18016
  init(r22) {
18017
18017
  return r22.doc || r22.schema.topNodeType.createAndFill();
@@ -18047,7 +18047,7 @@ Actual: ` + p3.attribValue
18047
18047
  ];
18048
18048
  let ii$2 = class ii {
18049
18049
  constructor(e, t) {
18050
- this.schema = e, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = Ff$2.slice(), t && t.forEach((n) => {
18050
+ this.schema = e, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = Bf$2.slice(), t && t.forEach((n) => {
18051
18051
  if (this.pluginsByKey[n.key])
18052
18052
  throw new RangeError("Adding different instances of a keyed plugin (" + n.key + ")");
18053
18053
  this.plugins.push(n), this.pluginsByKey[n.key] = n, n.spec.state && this.fields.push(new jt$3(n.key, n.spec.state, n));
@@ -18140,7 +18140,7 @@ Actual: ` + p3.attribValue
18140
18140
  Start a [transaction](https://prosemirror.net/docs/ref/#state.Transaction) from this state.
18141
18141
  */
18142
18142
  get tr() {
18143
- return new Tf$1(this);
18143
+ return new Ff$2(this);
18144
18144
  }
18145
18145
  /**
18146
18146
  Create a new state.
@@ -18219,10 +18219,10 @@ Actual: ` + p3.attribValue
18219
18219
  }), s;
18220
18220
  }
18221
18221
  };
18222
- function Ka$2(r22, e, t) {
18222
+ function $a$2(r22, e, t) {
18223
18223
  for (let n in r22) {
18224
18224
  let i3 = r22[n];
18225
- i3 instanceof Function ? i3 = i3.bind(e) : n == "handleDOMEvents" && (i3 = Ka$2(i3, e, {})), t[n] = i3;
18225
+ i3 instanceof Function ? i3 = i3.bind(e) : n == "handleDOMEvents" && (i3 = $a$2(i3, e, {})), t[n] = i3;
18226
18226
  }
18227
18227
  return t;
18228
18228
  }
@@ -18231,7 +18231,7 @@ Actual: ` + p3.attribValue
18231
18231
  Create a plugin.
18232
18232
  */
18233
18233
  constructor(e) {
18234
- this.spec = e, this.props = {}, e.props && Ka$2(e.props, this, this.props), this.key = e.key ? e.key.key : $a$2("plugin");
18234
+ this.spec = e, this.props = {}, e.props && $a$2(e.props, this, this.props), this.key = e.key ? e.key.key : Xa$2("plugin");
18235
18235
  }
18236
18236
  /**
18237
18237
  Extract the plugin's state field from an editor state.
@@ -18241,7 +18241,7 @@ Actual: ` + p3.attribValue
18241
18241
  }
18242
18242
  };
18243
18243
  const si$2 = /* @__PURE__ */ Object.create(null);
18244
- function $a$2(r22) {
18244
+ function Xa$2(r22) {
18245
18245
  return r22 in si$2 ? r22 + "$" + ++si$2[r22] : (si$2[r22] = 0, r22 + "$");
18246
18246
  }
18247
18247
  let hp$2 = class hp {
@@ -18249,7 +18249,7 @@ Actual: ` + p3.attribValue
18249
18249
  Create a plugin key.
18250
18250
  */
18251
18251
  constructor(e = "key") {
18252
- this.key = $a$2(e);
18252
+ this.key = Xa$2(e);
18253
18253
  }
18254
18254
  /**
18255
18255
  Get the active plugin with this key, if any, from an editor
@@ -18265,7 +18265,7 @@ Actual: ` + p3.attribValue
18265
18265
  return e[this.key];
18266
18266
  }
18267
18267
  };
18268
- const Xa$2 = (r22) => r22.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), gp$2 = (r22) => Xa$2(r22), wp$2 = Object.freeze({
18268
+ const Ya$2 = (r22) => r22.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), gp$2 = (r22) => Ya$2(r22), wp$2 = Object.freeze({
18269
18269
  RESOLVED: "resolved",
18270
18270
  NEW: "new",
18271
18271
  ADD: "add",
@@ -18309,11 +18309,11 @@ Actual: ` + p3.attribValue
18309
18309
  if (r22 != null)
18310
18310
  return r22 / 240;
18311
18311
  }
18312
- function Ya$2(r22) {
18312
+ function Qa$2(r22) {
18313
18313
  if (r22 != null)
18314
18314
  return r22 * 240;
18315
18315
  }
18316
- function Bf$2(r22) {
18316
+ function kf$1(r22) {
18317
18317
  if (r22 != null)
18318
18318
  return Math.round(r22 / 2);
18319
18319
  }
@@ -18327,17 +18327,17 @@ Actual: ` + p3.attribValue
18327
18327
  if (r22 != null)
18328
18328
  return typeof r22 == "string" && (r22 = parseFloat(r22)), Math.round(r22 * 9525);
18329
18329
  }
18330
- function Qa$2(r22) {
18330
+ function Za$2(r22) {
18331
18331
  return r22 == null ? void 0 : parseFloat(r22) / 8 * 1.3333;
18332
18332
  }
18333
- function Za$2(r22) {
18333
+ function eu$2(r22) {
18334
18334
  if (r22 != null)
18335
18335
  return Math.round(r22 * 6);
18336
18336
  }
18337
- const kf$1 = async (r22) => await (await fetch(r22)).arrayBuffer(), bp$2 = (r22) => {
18337
+ const Nf$1 = async (r22) => await (await fetch(r22)).arrayBuffer(), bp$2 = (r22) => {
18338
18338
  const n = new window.DOMParser().parseFromString(r22, "text/xml").querySelectorAll("Default");
18339
18339
  return Array.from(n).map((i3) => i3.getAttribute("Extension"));
18340
- }, Nf$1 = (r22) => (/* @__PURE__ */ new Map([
18340
+ }, If$2 = (r22) => (/* @__PURE__ */ new Map([
18341
18341
  ["yellow", "#ffff00"],
18342
18342
  ["green", "#00ff00"],
18343
18343
  ["blue", "#0000FFFF"],
@@ -18354,7 +18354,7 @@ Actual: ` + p3.attribValue
18354
18354
  ["lightGray", "#C0C0C0FF"],
18355
18355
  ["black", "#000"]
18356
18356
  ])).get(r22) || null;
18357
- function If$2(r22) {
18357
+ function Rf$2(r22) {
18358
18358
  if (!r22 || typeof r22 != "string") return false;
18359
18359
  switch (r22.length) {
18360
18360
  case 3:
@@ -18367,10 +18367,10 @@ Actual: ` + p3.attribValue
18367
18367
  return false;
18368
18368
  }
18369
18369
  }
18370
- const Rf$2 = (r22) => {
18370
+ const Pf$2 = (r22) => {
18371
18371
  const e = Number(r22).toString(16);
18372
18372
  return e.length === 1 ? "0" + e : e;
18373
- }, Pf$2 = (r22) => "#" + r22.match(/\d+/g).map(Rf$2).join("");
18373
+ }, Of$1 = (r22) => "#" + r22.match(/\d+/g).map(Pf$2).join("");
18374
18374
  function Ni$2(r22 = 8) {
18375
18375
  const e = "0123456789abcdef";
18376
18376
  let t = [];
@@ -18380,10 +18380,10 @@ Actual: ` + p3.attribValue
18380
18380
  }
18381
18381
  return t.join("");
18382
18382
  }
18383
- function eu$2() {
18383
+ function tu$2() {
18384
18384
  return Math.floor(Math.random() * 2147483647).toString(16).toUpperCase().padStart(8, "0");
18385
18385
  }
18386
- const Of$1 = {
18386
+ const Lf$2 = {
18387
18387
  "xmlns:wpc": "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",
18388
18388
  "xmlns:cx": "http://schemas.microsoft.com/office/drawing/2014/chartex",
18389
18389
  "xmlns:cx1": "http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",
@@ -18420,7 +18420,7 @@ Actual: ` + p3.attribValue
18420
18420
  "xmlns:wne": "http://schemas.microsoft.com/office/word/2006/wordml",
18421
18421
  "xmlns:wps": "http://schemas.microsoft.com/office/word/2010/wordprocessingShape",
18422
18422
  "mc:Ignorable": "w14 w15 w16se w16cid w16 w16cex w16sdtdh w16sdtfl w16du wp14"
18423
- }, Lf$2 = {
18423
+ }, _f$2 = {
18424
18424
  elements: [
18425
18425
  {
18426
18426
  type: "element",
@@ -18432,7 +18432,7 @@ Actual: ` + p3.attribValue
18432
18432
  elements: []
18433
18433
  }
18434
18434
  ]
18435
- }, _f$2 = {
18435
+ }, qf$2 = {
18436
18436
  elements: [{
18437
18437
  type: "element",
18438
18438
  name: "w:settings",
@@ -18441,7 +18441,7 @@ Actual: ` + p3.attribValue
18441
18441
  },
18442
18442
  elements: []
18443
18443
  }]
18444
- }, qf$2 = {
18444
+ }, Mf$1 = {
18445
18445
  type: "element",
18446
18446
  name: "w:r",
18447
18447
  elements: [
@@ -19117,7 +19117,7 @@ Actual: ` + p3.attribValue
19117
19117
  }
19118
19118
  ]
19119
19119
  }
19120
- }, Mf$1 = {
19120
+ }, Uf$2 = {
19121
19121
  declaration: {
19122
19122
  attributes: {
19123
19123
  version: "1.0",
@@ -19170,7 +19170,7 @@ Actual: ` + p3.attribValue
19170
19170
  elements: []
19171
19171
  }
19172
19172
  ]
19173
- }, Uf$2 = {
19173
+ }, jf$2 = {
19174
19174
  declaration: {
19175
19175
  attributes: {
19176
19176
  version: "1.0",
@@ -19223,7 +19223,7 @@ Actual: ` + p3.attribValue
19223
19223
  elements: []
19224
19224
  }
19225
19225
  ]
19226
- }, jf$2 = {
19226
+ }, Hf$2 = {
19227
19227
  declaration: {
19228
19228
  attributes: {
19229
19229
  version: "1.0",
@@ -19277,7 +19277,7 @@ Actual: ` + p3.attribValue
19277
19277
  elements: []
19278
19278
  }
19279
19279
  ]
19280
- }, Hf$2 = {
19280
+ }, Vf$2 = {
19281
19281
  declaration: {
19282
19282
  attributes: {
19283
19283
  version: "1.0",
@@ -19330,7 +19330,7 @@ Actual: ` + p3.attribValue
19330
19330
  elements: []
19331
19331
  }
19332
19332
  ]
19333
- }, Vf$2 = {
19333
+ }, zf$2 = {
19334
19334
  elements: [
19335
19335
  {
19336
19336
  type: "element",
@@ -19432,7 +19432,7 @@ Actual: ` + p3.attribValue
19432
19432
  ]
19433
19433
  }
19434
19434
  ]
19435
- }, zf$2 = {
19435
+ }, Gf$2 = {
19436
19436
  declaration: {
19437
19437
  attributes: {
19438
19438
  version: "1.0",
@@ -19580,12 +19580,12 @@ Actual: ` + p3.attribValue
19580
19580
  }
19581
19581
  ]
19582
19582
  }, At = {
19583
- COMMENTS_XML_DEF: Mf$1,
19584
- COMMENTS_EXTENDED_XML_DEF: Uf$2,
19585
- COMMENTS_EXTENSIBLE_XML_DEF: jf$2,
19586
- COMMENTS_IDS_XML_DEF: Hf$2,
19587
- DOCUMENT_RELS_XML_DEF: Vf$2,
19588
- CONTENT_TYPES: zf$2
19583
+ COMMENTS_XML_DEF: Uf$2,
19584
+ COMMENTS_EXTENDED_XML_DEF: jf$2,
19585
+ COMMENTS_EXTENSIBLE_XML_DEF: Hf$2,
19586
+ COMMENTS_IDS_XML_DEF: Vf$2,
19587
+ DOCUMENT_RELS_XML_DEF: zf$2,
19588
+ CONTENT_TYPES: Gf$2
19589
19589
  }, yr$2 = "trackInsert", Ii$2 = "trackDelete", Ri$2 = "trackFormat", je$3 = (r22) => {
19590
19590
  if (r22)
19591
19591
  try {
@@ -19594,7 +19594,7 @@ Actual: ` + p3.attribValue
19594
19594
  console.error("Error in carbonCopy", r22, e);
19595
19595
  return;
19596
19596
  }
19597
- }, tu$2 = {
19597
+ }, ru$2 = {
19598
19598
  declaration: {
19599
19599
  attributes: {
19600
19600
  version: "1.0",
@@ -20844,7 +20844,7 @@ Actual: ` + p3.attribValue
20844
20844
  u && (f3 = r22.comments.find((S) => S.commentId === u || S.importedId === u));
20845
20845
  const c3 = f3?.isInternal || o.isInternal;
20846
20846
  if (n === "external" && c3 || !!o.resolvedTime) return;
20847
- let g = Gf$2(e, a);
20847
+ let g = Wf$2(e, a);
20848
20848
  if (e === "End") {
20849
20849
  const S = {
20850
20850
  name: "w:r",
@@ -20854,21 +20854,21 @@ Actual: ` + p3.attribValue
20854
20854
  }
20855
20855
  return g;
20856
20856
  }
20857
- const Gf$2 = (r22, e) => ({
20857
+ const Wf$2 = (r22, e) => ({
20858
20858
  name: `w:commentRange${r22}`,
20859
20859
  attributes: {
20860
20860
  "w:id": String(e)
20861
20861
  }
20862
- }), Wf$2 = (r22) => ({
20862
+ }), Jf$2 = (r22) => ({
20863
20863
  ...r22,
20864
- commentParaId: eu$2()
20865
- }), Jf$2 = (r22, e, t) => {
20866
- const n = nu$2({ node: r22.commentJSON }), i3 = {
20864
+ commentParaId: tu$2()
20865
+ }), Kf$2 = (r22, e, t) => {
20866
+ const n = iu$2({ node: r22.commentJSON }), i3 = {
20867
20867
  "w:id": String(e),
20868
20868
  "w:author": r22.creatorName || r22.importedAuthor?.name,
20869
20869
  "w:email": r22.creatorEmail || r22.importedAuthor?.email,
20870
- "w:date": ru$2(r22.createdTime),
20871
- "w:initials": Kf$2(r22.creatorName),
20870
+ "w:date": nu$2(r22.createdTime),
20871
+ "w:initials": $f$2(r22.creatorName),
20872
20872
  "w:done": r22.resolvedTime ? "1" : "0",
20873
20873
  "w15:paraId": r22.commentParaId,
20874
20874
  "custom:internalId": r22.commentId || r22.internalId,
@@ -20887,10 +20887,10 @@ Actual: ` + p3.attribValue
20887
20887
  attributes: i3,
20888
20888
  elements: [n]
20889
20889
  };
20890
- }, Kf$2 = (r22) => r22 ? r22.replace("(imported)", "").trim().split(" ").map((n) => n[0]).join("") : null, ru$2 = (r22) => new Date(r22 || Date.now()).toISOString().replace(/\.\d{3}Z$/, "Z"), $f$2 = (r22 = [], e) => {
20890
+ }, $f$2 = (r22) => r22 ? r22.replace("(imported)", "").trim().split(" ").map((n) => n[0]).join("") : null, nu$2 = (r22) => new Date(r22 || Date.now()).toISOString().replace(/\.\d{3}Z$/, "Z"), Xf$2 = (r22 = [], e) => {
20891
20891
  const t = je$3(e);
20892
20892
  return r22.forEach((n) => {
20893
- n.elements[0].elements.unshift(qf$2);
20893
+ n.elements[0].elements.unshift(Mf$1);
20894
20894
  const s = n.attributes["w15:paraId"];
20895
20895
  n.elements[0].attributes["w14:paraId"] = s, n.attributes = {
20896
20896
  "w:id": n.attributes["w:id"],
@@ -20906,7 +20906,7 @@ Actual: ` + p3.attribValue
20906
20906
  "xmlns:custom": "http://schemas.openxmlformats.org/wordprocessingml/2006/main"
20907
20907
  };
20908
20908
  }), t.elements[0].elements = r22, t;
20909
- }, Xf$2 = (r22 = [], e) => {
20909
+ }, Yf$2 = (r22 = [], e) => {
20910
20910
  const t = je$3(e), n = r22.map((i3) => {
20911
20911
  const s = {
20912
20912
  "w15:paraId": i3.commentParaId,
@@ -20923,10 +20923,10 @@ Actual: ` + p3.attribValue
20923
20923
  };
20924
20924
  });
20925
20925
  return t.elements[0].elements = n, t;
20926
- }, Yf$2 = (r22 = [], e, t) => {
20926
+ }, Qf$2 = (r22 = [], e, t) => {
20927
20927
  const n = je$3(e), i3 = je$3(t);
20928
20928
  return n.elements[0].elements = [], i3.elements[0].elements = [], r22.forEach((s) => {
20929
- const o = eu$2(), a = {
20929
+ const o = tu$2(), a = {
20930
20930
  type: "element",
20931
20931
  name: "w16cid:commentId",
20932
20932
  attributes: {
@@ -20940,7 +20940,7 @@ Actual: ` + p3.attribValue
20940
20940
  name: "w16cex:commentExtensible",
20941
20941
  attributes: {
20942
20942
  "w16cex:durableId": o,
20943
- "w16cex:dateUtc": ru$2()
20943
+ "w16cex:dateUtc": nu$2()
20944
20944
  }
20945
20945
  };
20946
20946
  i3.elements[0].elements.push(u);
@@ -20948,13 +20948,13 @@ Actual: ` + p3.attribValue
20948
20948
  documentIdsUpdated: n,
20949
20949
  extensibleUpdated: i3
20950
20950
  };
20951
- }, Qf$2 = (r22) => {
20951
+ }, Zf$2 = (r22) => {
20952
20952
  const e = je$3(r22);
20953
20953
  return e["word/comments.xml"] = At.COMMENTS_XML_DEF, e["word/commentsExtended.xml"] = At.COMMENTS_EXTENDED_XML_DEF, e["word/commentsExtensible.xml"] = At.COMMENTS_EXTENSIBLE_XML_DEF, e["word/commentsIds.xml"] = At.COMMENTS_IDS_XML_DEF, e["[Content_Types].xml"] = At.CONTENT_TYPES, e;
20954
- }, Zf$2 = (r22) => {
20954
+ }, ed$2 = (r22) => {
20955
20955
  const e = je$3(r22);
20956
20956
  return delete e["word/comments.xml"], delete e["word/commentsExtended.xml"], delete e["word/commentsExtensible.xml"], delete e["word/commentsIds.xml"], e;
20957
- }, nr$2 = (r22) => ({ ...At.DOCUMENT_RELS_XML_DEF.elements[0].elements.find((n) => n.attributes.Target === r22) }), ed$2 = ({
20957
+ }, nr$2 = (r22) => ({ ...At.DOCUMENT_RELS_XML_DEF.elements[0].elements.find((n) => n.attributes.Target === r22) }), td$2 = ({
20958
20958
  convertedXml: r22,
20959
20959
  defs: e,
20960
20960
  commentsWithParaIds: t,
@@ -20963,16 +20963,16 @@ Actual: ` + p3.attribValue
20963
20963
  }) => {
20964
20964
  const s = [];
20965
20965
  if (n === "clean")
20966
- return { documentXml: Zf$2(r22), relationships: s };
20967
- const o = Qf$2(r22);
20968
- o["word/comments.xml"] = $f$2(
20966
+ return { documentXml: ed$2(r22), relationships: s };
20967
+ const o = Zf$2(r22);
20968
+ o["word/comments.xml"] = Xf$2(
20969
20969
  e,
20970
20970
  o["word/comments.xml"]
20971
- ), s.push(nr$2("comments.xml")), o["word/commentsExtended.xml"] = Xf$2(
20971
+ ), s.push(nr$2("comments.xml")), o["word/commentsExtended.xml"] = Yf$2(
20972
20972
  t,
20973
20973
  o["word/commentsExtended.xml"]
20974
20974
  ), s.push(nr$2("commentsExtended.xml"));
20975
- const { documentIdsUpdated: a, extensibleUpdated: u } = Yf$2(
20975
+ const { documentIdsUpdated: a, extensibleUpdated: u } = Qf$2(
20976
20976
  t,
20977
20977
  o["word/commentsIds.xml"],
20978
20978
  o["word/commentsExtensible.xml"]
@@ -20984,28 +20984,28 @@ Actual: ` + p3.attribValue
20984
20984
  };
20985
20985
  function Pt$2(r22) {
20986
20986
  const { type: e } = r22.node || {}, t = {
20987
- doc: nd$2,
20988
- body: td$2,
20989
- paragraph: nu$2,
20990
- text: id$2,
20987
+ doc: id$2,
20988
+ body: rd$2,
20989
+ paragraph: iu$2,
20990
+ text: sd$2,
20991
20991
  bulletList: So$2,
20992
20992
  orderedList: So$2,
20993
- lineBreak: fd$2,
20994
- table: dd$2,
20995
- tableRow: yd$2,
20996
- tableCell: xd$2,
20997
- bookmarkStart: Ed$2,
20998
- fieldAnnotation: Nd$2,
20999
- tab: pd$2,
21000
- image: ou$2,
21001
- hardBreak: Id$2,
20993
+ lineBreak: dd$2,
20994
+ table: md$2,
20995
+ tableRow: bd$2,
20996
+ tableCell: Ad$2,
20997
+ bookmarkStart: vd$2,
20998
+ fieldAnnotation: Id$2,
20999
+ tab: hd$2,
21000
+ image: au$2,
21001
+ hardBreak: Rd$2,
21002
21002
  commentRangeStart: () => vo$3(r22, "Start"),
21003
21003
  commentRangeEnd: () => vo$3(r22, "End"),
21004
21004
  commentReference: () => null
21005
21005
  };
21006
21006
  return t[e] ? t[e](r22) : (console.error("No translation function found for node type:", e), null);
21007
21007
  }
21008
- function td$2(r22) {
21008
+ function rd$2(r22) {
21009
21009
  const e = r22.bodyNode?.elements.find((n) => n.name === "w:sectPr") || {};
21010
21010
  if (r22.converter) {
21011
21011
  const n = r22.converter.pageStyles.pageMargins, i3 = e.elements.find((o) => o.name === "w:pgMar"), { attributes: s } = i3;
@@ -21019,11 +21019,11 @@ Actual: ` + p3.attribValue
21019
21019
  elements: [...Ot$1(r22), e]
21020
21020
  };
21021
21021
  }
21022
- function nu$2(r22) {
21022
+ function iu$2(r22) {
21023
21023
  const e = Ot$1(r22), t = e.find((s) => s.name === "htmlAnnotation");
21024
21024
  if (e.length === 1 && t)
21025
21025
  return t.elements;
21026
- const n = rd$2(r22.node);
21026
+ const n = nd$2(r22.node);
21027
21027
  n && e.unshift(n);
21028
21028
  let i3 = {};
21029
21029
  return r22.node.attrs?.rsidRDefault && (i3["w:rsidRDefault"] = r22.node.attrs.rsidRDefault), {
@@ -21032,13 +21032,13 @@ Actual: ` + p3.attribValue
21032
21032
  attributes: i3
21033
21033
  };
21034
21034
  }
21035
- function rd$2(r22) {
21035
+ function nd$2(r22) {
21036
21036
  const { attrs: e = {} } = r22, t = [], { styleId: n } = e;
21037
21037
  n && t.push({ name: "w:pStyle", attributes: { "w:val": n } });
21038
21038
  const { spacing: i3, indent: s, textAlign: o, textIndent: a, marksAttrs: u, keepLines: f3, keepNext: c3 } = e;
21039
21039
  if (i3) {
21040
21040
  const { lineSpaceBefore: h3, lineSpaceAfter: g, line: S, lineRule: T3 } = i3, A = {};
21041
- h3 >= 0 && (A["w:before"] = Fe$1(h3)), g >= 0 && (A["w:after"] = Fe$1(g)), S && (A["w:line"] = Ya$2(S)), A["w:lineRule"] = T3 || "auto";
21041
+ h3 >= 0 && (A["w:before"] = Fe$1(h3)), g >= 0 && (A["w:after"] = Fe$1(g)), S && (A["w:line"] = Qa$2(S)), A["w:lineRule"] = T3 || "auto";
21042
21042
  const B = {
21043
21043
  name: "w:spacing",
21044
21044
  attributes: A
@@ -21070,7 +21070,7 @@ Actual: ` + p3.attribValue
21070
21070
  t.push(h3);
21071
21071
  }
21072
21072
  if (u) {
21073
- const h3 = Br$1(u), g = iu$2(h3);
21073
+ const h3 = Br$1(u), g = su$2(h3);
21074
21074
  t.push(g);
21075
21075
  }
21076
21076
  return f3 && t.push({
@@ -21084,7 +21084,7 @@ Actual: ` + p3.attribValue
21084
21084
  elements: t
21085
21085
  } : null;
21086
21086
  }
21087
- function nd$2(r22) {
21087
+ function id$2(r22) {
21088
21088
  const e = {
21089
21089
  type: "body",
21090
21090
  content: r22.node.content
@@ -21092,7 +21092,7 @@ Actual: ` + p3.attribValue
21092
21092
  return [{
21093
21093
  name: "w:document",
21094
21094
  elements: [Pt$2({ ...r22, node: e })],
21095
- attributes: Of$1
21095
+ attributes: Lf$2
21096
21096
  }, r22];
21097
21097
  }
21098
21098
  function Ot$1(r22) {
@@ -21112,14 +21112,14 @@ Actual: ` + p3.attribValue
21112
21112
  attributes: i3
21113
21113
  }, s);
21114
21114
  }
21115
- function id$2(r22) {
21115
+ function sd$2(r22) {
21116
21116
  const { node: e } = r22, t = [yr$2, Ii$2];
21117
- if (e.marks?.some((a) => t.includes(a.type))) return od$2(r22);
21118
- if (e.marks?.some((a) => a.type === "link")) return ad$2(r22);
21117
+ if (e.marks?.some((a) => t.includes(a.type))) return ad$2(r22);
21118
+ if (e.marks?.some((a) => a.type === "link")) return ud$2(r22);
21119
21119
  const { text: s, marks: o = [] } = e;
21120
21120
  return Fr$1(s, o);
21121
21121
  }
21122
- function sd$2(r22) {
21122
+ function od$2(r22) {
21123
21123
  const e = r22.find((t) => t.type === Ri$2);
21124
21124
  if (e)
21125
21125
  return {
@@ -21134,8 +21134,8 @@ Actual: ` + p3.attribValue
21134
21134
  elements: e.attrs.before.map((n) => Br$1([n])).filter((n) => n !== void 0)
21135
21135
  };
21136
21136
  }
21137
- function od$2(r22) {
21138
- const { node: e } = r22, t = e.marks, n = [yr$2, Ii$2, Ri$2], i3 = t.find((f3) => n.includes(f3.type)), s = i3.type === yr$2, o = sd$2(t);
21137
+ function ad$2(r22) {
21138
+ const { node: e } = r22, t = e.marks, n = [yr$2, Ii$2, Ri$2], i3 = t.find((f3) => n.includes(f3.type)), s = i3.type === yr$2, o = od$2(t);
21139
21139
  e.marks = t.filter((f3) => !n.includes(f3.type)), o && e.marks.push(o);
21140
21140
  const a = Pt$2({ ...r22, node: e });
21141
21141
  if (!s) {
@@ -21156,12 +21156,12 @@ Actual: ` + p3.attribValue
21156
21156
  }
21157
21157
  function Pi$2(r22, e) {
21158
21158
  const t = [r22];
21159
- return e && e.length && t.unshift(iu$2(e)), {
21159
+ return e && e.length && t.unshift(su$2(e)), {
21160
21160
  name: "w:r",
21161
21161
  elements: t
21162
21162
  };
21163
21163
  }
21164
- function iu$2(r22 = []) {
21164
+ function su$2(r22 = []) {
21165
21165
  return {
21166
21166
  name: "w:rPr",
21167
21167
  elements: r22.filter((e) => !!Object.keys(e).length)
@@ -21173,10 +21173,10 @@ Actual: ` + p3.attribValue
21173
21173
  return To$2(i3);
21174
21174
  }) : To$2(e));
21175
21175
  }
21176
- function ad$2(r22) {
21176
+ function ud$2(r22) {
21177
21177
  const { node: e } = r22, t = e.marks.find((a) => a.type === "link"), n = t.attrs.href;
21178
21178
  let i3 = t.attrs.rId;
21179
- i3 || (i3 = su$2(r22, n)), e.marks = e.marks.filter((a) => a.type !== "link");
21179
+ i3 || (i3 = ou$2(r22, n)), e.marks = e.marks.filter((a) => a.type !== "link");
21180
21180
  const s = Pt$2({ ...r22, node: e });
21181
21181
  return {
21182
21182
  name: "w:hyperlink",
@@ -21187,7 +21187,7 @@ Actual: ` + p3.attribValue
21187
21187
  elements: [s]
21188
21188
  };
21189
21189
  }
21190
- function su$2(r22, e) {
21190
+ function ou$2(r22, e) {
21191
21191
  const t = "rId" + Ni$2();
21192
21192
  return (!r22.relationships || !Array.isArray(r22.relationships)) && (r22.relationships = []), r22.relationships.push({
21193
21193
  type: "element",
@@ -21213,9 +21213,9 @@ Actual: ` + p3.attribValue
21213
21213
  return r22.relationships.push(n), t;
21214
21214
  }
21215
21215
  function So$2(r22) {
21216
- const { type: e } = r22.node, t = cd$2(r22), n = [];
21216
+ const { type: e } = r22.node, t = fd$2(r22), n = [];
21217
21217
  return t.forEach((i3) => {
21218
- const { level: s, listType: o, pPrs: a, content: u, attrs: f3 = {} } = i3, g = (i3.attrs.numId || i3.listId) ?? ud$2(r22), S = ld$2(s, g, a);
21218
+ const { level: s, listType: o, pPrs: a, content: u, attrs: f3 = {} } = i3, g = (i3.attrs.numId || i3.listId) ?? ld$2(r22), S = cd$2(s, g, a);
21219
21219
  u.forEach((T3, A) => {
21220
21220
  const B = Object.assign({}, T3);
21221
21221
  B.attrs = {
@@ -21246,7 +21246,7 @@ Actual: ` + p3.attribValue
21246
21246
  });
21247
21247
  }), n;
21248
21248
  }
21249
- function ud$2({ abstractId: r22, listId: e }) {
21249
+ function ld$2({ abstractId: r22, listId: e }) {
21250
21250
  const t = {
21251
21251
  ...definition,
21252
21252
  attributes: {
@@ -21269,7 +21269,7 @@ Actual: ` + p3.attribValue
21269
21269
  newNumDef: n
21270
21270
  };
21271
21271
  }
21272
- function ld$2(r22, e, t = []) {
21272
+ function cd$2(r22, e, t = []) {
21273
21273
  return {
21274
21274
  name: "w:pPr",
21275
21275
  type: "element",
@@ -21294,7 +21294,7 @@ Actual: ` + p3.attribValue
21294
21294
  ]
21295
21295
  };
21296
21296
  }
21297
- function cd$2({ node: r22 }) {
21297
+ function fd$2({ node: r22 }) {
21298
21298
  const { content: e, attrs: t = {} } = r22, { listId: n, syncId: i3 } = r22.attrs || {}, s = r22.attrs["list-style-type"], { attributes: o = {} } = t, a = o?.parentAttributes?.paragraphProperties?.elements?.filter((c3) => c3.name !== "w:numPr") || [], u = [];
21299
21299
  function f3(c3, h3 = 0) {
21300
21300
  !c3 || !c3.length || c3.forEach((g) => {
@@ -21315,22 +21315,22 @@ Actual: ` + p3.attribValue
21315
21315
  }
21316
21316
  return f3(e), u;
21317
21317
  }
21318
- function fd$2(r22) {
21318
+ function dd$2(r22) {
21319
21319
  const e = {}, { lineBreakType: t } = r22.node?.attrs || {};
21320
21320
  return t && (e["w:type"] = t), {
21321
21321
  name: "w:br",
21322
21322
  attributes: e
21323
21323
  };
21324
21324
  }
21325
- function dd$2(r22) {
21326
- r22.node = md$2(r22.node, r22);
21327
- const e = Ot$1(r22), t = hd$2(r22.node), n = wd$2(r22.node);
21325
+ function md$2(r22) {
21326
+ r22.node = pd$2(r22.node, r22);
21327
+ const e = Ot$1(r22), t = gd$2(r22.node), n = yd$2(r22.node);
21328
21328
  return e.unshift(t), e.unshift(n), {
21329
21329
  name: "w:tbl",
21330
21330
  elements: e
21331
21331
  };
21332
21332
  }
21333
- function md$2(r22, { editorSchema: e }) {
21333
+ function pd$2(r22, { editorSchema: e }) {
21334
21334
  const { content: t } = r22;
21335
21335
  for (let n = 0; n < t.length; n++) {
21336
21336
  const i3 = t[n];
@@ -21366,13 +21366,13 @@ Actual: ` + p3.attribValue
21366
21366
  }
21367
21367
  return r22;
21368
21368
  }
21369
- function pd$2(r22) {
21369
+ function hd$2(r22) {
21370
21370
  const { marks: e = [] } = r22.node, t = Br$1(e);
21371
21371
  return Pi$2({
21372
21372
  name: "w:tab"
21373
21373
  }, t);
21374
21374
  }
21375
- function hd$2(r22) {
21375
+ function gd$2(r22) {
21376
21376
  const e = [], { attrs: t } = r22, { tableWidth: n, tableWidthType: i3, tableStyleId: s, borders: o, tableIndent: a, tableLayout: u, tableCellSpacing: f3 } = t;
21377
21377
  if (s) {
21378
21378
  const c3 = {
@@ -21382,7 +21382,7 @@ Actual: ` + p3.attribValue
21382
21382
  e.push(c3);
21383
21383
  }
21384
21384
  if (o) {
21385
- const c3 = gd$2(r22);
21385
+ const c3 = wd$2(r22);
21386
21386
  e.push(c3);
21387
21387
  }
21388
21388
  if (a) {
@@ -21417,7 +21417,7 @@ Actual: ` + p3.attribValue
21417
21417
  elements: e
21418
21418
  };
21419
21419
  }
21420
- function gd$2(r22) {
21420
+ function wd$2(r22) {
21421
21421
  const { borders: e } = r22.attrs, t = [];
21422
21422
  return e ? (["top", "bottom", "left", "right", "insideH", "insideV"].forEach((i3) => {
21423
21423
  const s = e[i3];
@@ -21427,7 +21427,7 @@ Actual: ` + p3.attribValue
21427
21427
  "w:val": "nil"
21428
21428
  } : o = {
21429
21429
  "w:val": "single",
21430
- "w:sz": Za$2(s.size),
21430
+ "w:sz": eu$2(s.size),
21431
21431
  "w:space": s.space || 0,
21432
21432
  "w:color": s?.color?.substring(1) || "000000"
21433
21433
  };
@@ -21441,7 +21441,7 @@ Actual: ` + p3.attribValue
21441
21441
  elements: t
21442
21442
  }) : void 0;
21443
21443
  }
21444
- function wd$2(r22) {
21444
+ function yd$2(r22) {
21445
21445
  const { gridColumnWidths: e } = r22.attrs, t = [];
21446
21446
  return e?.forEach((n) => {
21447
21447
  t.push({
@@ -21453,14 +21453,14 @@ Actual: ` + p3.attribValue
21453
21453
  elements: t
21454
21454
  };
21455
21455
  }
21456
- function yd$2(r22) {
21457
- const e = Ot$1(r22), t = bd$2(r22.node);
21456
+ function bd$2(r22) {
21457
+ const e = Ot$1(r22), t = xd$2(r22.node);
21458
21458
  return t.elements.length && e.unshift(t), {
21459
21459
  name: "w:tr",
21460
21460
  elements: e
21461
21461
  };
21462
21462
  }
21463
- function bd$2(r22) {
21463
+ function xd$2(r22) {
21464
21464
  const { attrs: e } = r22, t = [], { rowHeight: n, rowHeightType: i3 } = e;
21465
21465
  if (n) {
21466
21466
  const s = { "w:val": Fe$1(n) };
@@ -21476,17 +21476,17 @@ Actual: ` + p3.attribValue
21476
21476
  elements: t
21477
21477
  };
21478
21478
  }
21479
- function xd$2(r22) {
21479
+ function Ad$2(r22) {
21480
21480
  const e = Ot$1({
21481
21481
  ...r22,
21482
21482
  tableCell: r22.node
21483
- }), t = Ad$2(r22.node);
21483
+ }), t = Dd$2(r22.node);
21484
21484
  return e.unshift(t), {
21485
21485
  name: "w:tc",
21486
21486
  elements: e
21487
21487
  };
21488
21488
  }
21489
- function Ad$2(r22) {
21489
+ function Dd$2(r22) {
21490
21490
  const e = [], { attrs: t } = r22, { colwidth: n = [], cellWidthType: i3 = "dxa", background: s = {}, colspan: o, rowspan: a, widthUnit: u } = t, f3 = n.reduce((A, B) => A + B, 0), c3 = {
21491
21491
  name: "w:tcW",
21492
21492
  attributes: { "w:w": u === "px" ? Fe$1(f3) : wt$1(f3), "w:type": i3 }
@@ -21510,7 +21510,7 @@ Actual: ` + p3.attribValue
21510
21510
  if (g) {
21511
21511
  const A = {
21512
21512
  name: "w:tcMar",
21513
- elements: Dd$2(g)
21513
+ elements: Ed$2(g)
21514
21514
  };
21515
21515
  e.push(A);
21516
21516
  }
@@ -21545,7 +21545,7 @@ Actual: ` + p3.attribValue
21545
21545
  attributes: {
21546
21546
  "w:val": "single",
21547
21547
  "w:color": w.color ? w.color.substring(1) : "auto",
21548
- "w:sz": Za$2(w.size),
21548
+ "w:sz": eu$2(w.size),
21549
21549
  "w:space": w.space || 0
21550
21550
  }
21551
21551
  } : {
@@ -21562,11 +21562,11 @@ Actual: ` + p3.attribValue
21562
21562
  elements: e
21563
21563
  };
21564
21564
  }
21565
- function Dd$2(r22) {
21565
+ function Ed$2(r22) {
21566
21566
  const e = [], { top: t, right: n, bottom: i3, left: s } = r22;
21567
21567
  return t != null && e.push({ name: "w:top", attributes: { "w:w": Fe$1(t) } }), n != null && e.push({ name: "w:right", attributes: { "w:w": Fe$1(n) } }), i3 != null && e.push({ name: "w:bottom", attributes: { "w:w": Fe$1(i3) } }), s != null && e.push({ name: "w:left", attributes: { "w:w": Fe$1(s) } }), e;
21568
21568
  }
21569
- function Ed$2(r22) {
21569
+ function vd$2(r22) {
21570
21570
  const e = {
21571
21571
  name: "w:bookmarkStart",
21572
21572
  attributes: {
@@ -21605,7 +21605,7 @@ Actual: ` + p3.attribValue
21605
21605
  break;
21606
21606
  case "color":
21607
21607
  let s = n.color.replace(/^#/, "").replace(/;$/, "");
21608
- s.startsWith("rgb") && (s = Pf$2(s)), t.attributes["w:val"] = s;
21608
+ s.startsWith("rgb") && (s = Of$1(s)), t.attributes["w:val"] = s;
21609
21609
  break;
21610
21610
  case "textAlign":
21611
21611
  t.attributes["w:val"] = n.textAlign;
@@ -21614,7 +21614,7 @@ Actual: ` + p3.attribValue
21614
21614
  t.attributes["w:firstline"] = wt$1(n.textIndent);
21615
21615
  break;
21616
21616
  case "lineHeight":
21617
- t.attributes["w:line"] = Ya$2(n.lineHeight);
21617
+ t.attributes["w:line"] = Qa$2(n.lineHeight);
21618
21618
  break;
21619
21619
  case "highlight":
21620
21620
  t.attributes["w:fill"] = n.color?.substring(1), t.attributes["w:color"] = "auto", t.attributes["w:val"] = "clear", t.name = "w:shd";
@@ -21622,7 +21622,7 @@ Actual: ` + p3.attribValue
21622
21622
  }
21623
21623
  return t;
21624
21624
  }
21625
- function vd$2(r22) {
21625
+ function Cd$2(r22) {
21626
21626
  if (!r22) return {};
21627
21627
  const e = r22.split(";")[0].split("/")[1];
21628
21628
  if (!r22 || e !== "png")
@@ -21636,30 +21636,30 @@ Actual: ` + p3.attribValue
21636
21636
  originalHeight: i3.getInt32(20)
21637
21637
  };
21638
21638
  }
21639
- function Cd$2(r22, e, t, n) {
21639
+ function Sd$2(r22, e, t, n) {
21640
21640
  let i3 = r22, s = e, o = Math.min(t / r22, n / e);
21641
21641
  return i3 = Math.round(i3 * o), s = Math.round(s * o), { scaledWidth: i3, scaledHeight: s };
21642
21642
  }
21643
- function ou$2(r22, e) {
21643
+ function au$2(r22, e) {
21644
21644
  const {
21645
21645
  node: { attrs: t = {}, marks: n = [] },
21646
21646
  tableCell: i3
21647
21647
  } = r22;
21648
21648
  let s = t.rId;
21649
- const o = t.src || t.imageSrc, { originalWidth: a, originalHeight: u } = vd$2(o);
21649
+ const o = t.src || t.imageSrc, { originalWidth: a, originalHeight: u } = Cd$2(o);
21650
21650
  let f3 = t.size ? {
21651
21651
  w: qt$2(t.size.width),
21652
21652
  h: qt$2(t.size.height)
21653
21653
  } : e;
21654
21654
  if (a && u) {
21655
- const S = $e$2(f3.w), T3 = $e$2(f3.h), { scaledWidth: A, scaledHeight: B } = Cd$2(a, u, S, T3);
21655
+ const S = $e$2(f3.w), T3 = $e$2(f3.h), { scaledWidth: A, scaledHeight: B } = Sd$2(a, u, S, T3);
21656
21656
  f3 = {
21657
21657
  w: qt$2(A),
21658
21658
  h: qt$2(B)
21659
21659
  };
21660
21660
  }
21661
21661
  if (i3) {
21662
- const S = i3.attrs.colwidth.reduce((R, C) => R + C, 0), T3 = i3.attrs.cellMargins?.left || 8, A = i3.attrs.cellMargins?.right || 8, B = qt$2(S - (T3 + A)), { width: w, height: k } = Rd$2(f3.w, f3.h, B);
21662
+ const S = i3.attrs.colwidth.reduce((R, C) => R + C, 0), T3 = i3.attrs.cellMargins?.left || 8, A = i3.attrs.cellMargins?.right || 8, B = qt$2(S - (T3 + A)), { width: w, height: k } = Pd$2(f3.w, f3.h, B);
21663
21663
  w && k && (f3 = { w, h: k });
21664
21664
  }
21665
21665
  if (r22.node.type === "image" && !s) {
@@ -21668,7 +21668,7 @@ Actual: ` + p3.attribValue
21668
21668
  } else if (r22.node.type === "fieldAnnotation" && !s) {
21669
21669
  const S = o?.split(";")[0].split("/")[1];
21670
21670
  if (!S)
21671
- return au$2(r22);
21671
+ return uu$2(r22);
21672
21672
  const T3 = Ni$2(4), A = t.fieldId.replace("-", "_"), B = `media/${A}_${T3}.${S}`;
21673
21673
  s = Co$2(r22, B), r22.media[`${A}_${T3}.${S}`] = o;
21674
21674
  }
@@ -21823,19 +21823,19 @@ Actual: ` + p3.attribValue
21823
21823
  []
21824
21824
  );
21825
21825
  }
21826
- function au$2(r22) {
21826
+ function uu$2(r22) {
21827
21827
  const {
21828
21828
  node: { attrs: e = {}, marks: t = [] }
21829
- } = r22, n = kd$2(e);
21829
+ } = r22, n = Nd$2(e);
21830
21830
  return Fr$1(e.displayLabel, [...t, ...n]);
21831
21831
  }
21832
- function Sd$2(r22) {
21832
+ function Td$2(r22) {
21833
21833
  const {
21834
21834
  node: { attrs: e = {}, marks: t = [] }
21835
- } = r22, n = Bc$2.decode(e.displayLabel);
21835
+ } = r22, n = kc$2.decode(e.displayLabel);
21836
21836
  return Fr$1(n, t);
21837
21837
  }
21838
- function Td$2(r22) {
21838
+ function Fd$2(r22) {
21839
21839
  const {
21840
21840
  node: { attrs: e = {} }
21841
21841
  } = r22, n = new window.DOMParser().parseFromString(e.rawHtml, "text/html"), s = Dt$3.create({
@@ -21849,12 +21849,12 @@ Actual: ` + p3.attribValue
21849
21849
  };
21850
21850
  }
21851
21851
  function Fo$2(r22, e) {
21852
- return ou$2(r22, e);
21852
+ return au$2(r22, e);
21853
21853
  }
21854
- function Fd$2(r22) {
21854
+ function Bd$2(r22) {
21855
21855
  const {
21856
21856
  node: { attrs: e = {}, marks: t = [] }
21857
- } = r22, n = su$2(r22, e.linkUrl), i3 = Fr$1(e.linkUrl, t);
21857
+ } = r22, n = ou$2(r22, e.linkUrl), i3 = Fr$1(e.linkUrl, t);
21858
21858
  return {
21859
21859
  name: "w:hyperlink",
21860
21860
  type: "element",
@@ -21865,7 +21865,7 @@ Actual: ` + p3.attribValue
21865
21865
  elements: [i3]
21866
21866
  };
21867
21867
  }
21868
- function Bd$2(r22) {
21868
+ function kd$2(r22) {
21869
21869
  const e = {
21870
21870
  w: 4286250,
21871
21871
  h: 4286250
@@ -21874,15 +21874,15 @@ Actual: ` + p3.attribValue
21874
21874
  h: 495e3
21875
21875
  };
21876
21876
  return {
21877
- text: au$2,
21877
+ text: uu$2,
21878
21878
  image: (i3) => Fo$2(i3, e),
21879
21879
  signature: (i3) => Fo$2(i3, t),
21880
- checkbox: Sd$2,
21881
- html: Td$2,
21882
- link: Fd$2
21880
+ checkbox: Td$2,
21881
+ html: Fd$2,
21882
+ link: Bd$2
21883
21883
  }[r22];
21884
21884
  }
21885
- const kd$2 = (r22 = {}) => {
21885
+ const Nd$2 = (r22 = {}) => {
21886
21886
  const {
21887
21887
  fontFamily: e,
21888
21888
  fontSize: t,
@@ -21892,8 +21892,8 @@ Actual: ` + p3.attribValue
21892
21892
  } = r22, o = [];
21893
21893
  return e && o.push({ type: "fontFamily", attrs: { fontFamily: e } }), t && o.push({ type: "fontSize", attrs: { fontSize: t } }), n && o.push({ type: "bold", attrs: {} }), i3 && o.push({ type: "underline", attrs: {} }), s && o.push({ type: "italic", attrs: {} }), o;
21894
21894
  };
21895
- function Nd$2(r22) {
21896
- const { node: e, isFinalDoc: t } = r22, { attrs: n = {} } = e, i3 = Bd$2(n.type);
21895
+ function Id$2(r22) {
21896
+ const { node: e, isFinalDoc: t } = r22, { attrs: n = {} } = e, i3 = kd$2(n.type);
21897
21897
  if (!i3) return {};
21898
21898
  let s, o;
21899
21899
  if (t)
@@ -21945,7 +21945,7 @@ Actual: ` + p3.attribValue
21945
21945
  ]
21946
21946
  };
21947
21947
  }
21948
- function Id$2() {
21948
+ function Rd$2() {
21949
21949
  return {
21950
21950
  name: "w:r",
21951
21951
  elements: [{
@@ -21955,17 +21955,17 @@ Actual: ` + p3.attribValue
21955
21955
  }]
21956
21956
  };
21957
21957
  }
21958
- var nt$2, uu$2, mi$2, pi$2;
21958
+ var nt$2, lu$2, mi$2, pi$2;
21959
21959
  let Bo$2 = class Bo {
21960
21960
  constructor(e) {
21961
21961
  Nr$1(this, nt$2);
21962
21962
  this.converter = e;
21963
21963
  }
21964
21964
  schemaToXml(e, t = false) {
21965
- return Ke$1(this, nt$2, uu$2).call(this, e, t).join("");
21965
+ return Ke$1(this, nt$2, lu$2).call(this, e, t).join("");
21966
21966
  }
21967
21967
  };
21968
- nt$2 = /* @__PURE__ */ new WeakSet(), uu$2 = function(e, t = falase) {
21968
+ nt$2 = /* @__PURE__ */ new WeakSet(), lu$2 = function(e, t = falase) {
21969
21969
  const n = JSON.parse(JSON.stringify(e)), i3 = this.converter.declaration.attributes, s = `<?xml${Object.entries(i3).map(([u, f3]) => ` ${u}="${f3}"`).join("")}?>`, o = Ke$1(this, nt$2, pi$2).call(this, n, t);
21970
21970
  return [s, ...o];
21971
21971
  }, mi$2 = function(e) {
@@ -21997,29 +21997,29 @@ Actual: ` + p3.attribValue
21997
21997
  }
21998
21998
  return a || u.push(`</${n}>`), u;
21999
21999
  };
22000
- function Rd$2(r22, e, t) {
22000
+ function Pd$2(r22, e, t) {
22001
22001
  if (r22 > t) {
22002
22002
  let n = t / r22, i3 = Math.round(e * n);
22003
22003
  return { width: t, height: i3 };
22004
22004
  }
22005
22005
  return { width: r22, height: e };
22006
22006
  }
22007
- const Pd$2 = '<w:document xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex" xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex" xmlns:cx3="http://schemas.microsoft.com/office/drawing/2016/5/9/chartex" xmlns:cx4="http://schemas.microsoft.com/office/drawing/2016/5/10/chartex" xmlns:cx5="http://schemas.microsoft.com/office/drawing/2016/5/11/chartex" xmlns:cx6="http://schemas.microsoft.com/office/drawing/2016/5/12/chartex" xmlns:cx7="http://schemas.microsoft.com/office/drawing/2016/5/13/chartex" xmlns:cx8="http://schemas.microsoft.com/office/drawing/2016/5/14/chartex" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:aink="http://schemas.microsoft.com/office/drawing/2016/ink" xmlns:am3d="http://schemas.microsoft.com/office/drawing/2017/model3d" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:oel="http://schemas.microsoft.com/office/2019/extlst" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16sdtdh="http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex w16sdtdh wp14"><w:body></w:body></w:document>', Od$2 = (r22) => JSON.parse(wa$2.xml2json(r22, null, 2)), Ld$2 = (r22, e = Pd$2) => r22["word/document.xml"] || Od$2(e), _d$2 = (r22) => {
22007
+ const Od$2 = '<w:document xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex" xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex" xmlns:cx3="http://schemas.microsoft.com/office/drawing/2016/5/9/chartex" xmlns:cx4="http://schemas.microsoft.com/office/drawing/2016/5/10/chartex" xmlns:cx5="http://schemas.microsoft.com/office/drawing/2016/5/11/chartex" xmlns:cx6="http://schemas.microsoft.com/office/drawing/2016/5/12/chartex" xmlns:cx7="http://schemas.microsoft.com/office/drawing/2016/5/13/chartex" xmlns:cx8="http://schemas.microsoft.com/office/drawing/2016/5/14/chartex" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:aink="http://schemas.microsoft.com/office/drawing/2016/ink" xmlns:am3d="http://schemas.microsoft.com/office/drawing/2017/model3d" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:oel="http://schemas.microsoft.com/office/2019/extlst" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16sdtdh="http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex w16sdtdh wp14"><w:body></w:body></w:document>', Ld$2 = (r22) => JSON.parse(ya$2.xml2json(r22, null, 2)), _d$2 = (r22, e = Od$2) => r22["word/document.xml"] || Ld$2(e), qd$2 = (r22) => {
22008
22008
  const { nodes: e } = r22;
22009
22009
  if (e.length === 0)
22010
22010
  return { nodes: [], consumed: 0 };
22011
22011
  const t = e[0];
22012
22012
  switch (t.name) {
22013
22013
  case "w:tbl":
22014
- return { nodes: [Md$2(t, r22)], consumed: 1 };
22014
+ return { nodes: [Ud$2(t, r22)], consumed: 1 };
22015
22015
  }
22016
22016
  return { nodes: [], consumed: 0 };
22017
- }, qd$2 = {
22017
+ }, Md$2 = {
22018
22018
  handlerName: "tableNodeHandler",
22019
- handler: _d$2
22019
+ handler: qd$2
22020
22020
  };
22021
- function Md$2(r22, e) {
22022
- const { docx: t, nodeListHandler: n } = e, i3 = r22.elements.find((F3) => F3.name === "w:tblPr"), o = i3.elements.find((F3) => F3.name === "w:tblBorders")?.elements || [], { borders: a, rowBorders: u } = cu$1(o), f3 = i3.elements.find((F3) => F3.name === "w:tblStyle"), h3 = { tableStyleId: f3?.attributes["w:val"] }, g = i3?.elements.find((F3) => F3.name === "w:tblInd");
22021
+ function Ud$2(r22, e) {
22022
+ const { docx: t, nodeListHandler: n } = e, i3 = r22.elements.find((F3) => F3.name === "w:tblPr"), o = i3.elements.find((F3) => F3.name === "w:tblBorders")?.elements || [], { borders: a, rowBorders: u } = fu$2(o), f3 = i3.elements.find((F3) => F3.name === "w:tblStyle"), h3 = { tableStyleId: f3?.attributes["w:val"] }, g = i3?.elements.find((F3) => F3.name === "w:tblInd");
22023
22023
  if (g) {
22024
22024
  const { "w:w": F3, "w:type": N3 } = g.attributes;
22025
22025
  h3.tableIndent = { width: xe$2(F3), type: N3 };
@@ -22029,7 +22029,7 @@ Actual: ` + p3.attribValue
22029
22029
  const { "w:type": F3 } = S.attributes;
22030
22030
  h3.tableLayout = F3;
22031
22031
  }
22032
- const T3 = lu$2(f3, t), A = i3.elements.find((F3) => F3.name === "w:tblW");
22032
+ const T3 = cu$1(f3, t), A = i3.elements.find((F3) => F3.name === "w:tblW");
22033
22033
  A && (h3.tableWidth = {
22034
22034
  width: xe$2(A.attributes["w:w"]),
22035
22035
  type: A.attributes["w:type"]
@@ -22043,7 +22043,7 @@ Actual: ` + p3.attribValue
22043
22043
  h3.borders = k;
22044
22044
  const C = [];
22045
22045
  return w.forEach((F3) => {
22046
- const N3 = Hd$2(F3, r22, R, f3, e);
22046
+ const N3 = Vd$2(F3, r22, R, f3, e);
22047
22047
  N3.content?.length && C.push(N3);
22048
22048
  }), {
22049
22049
  type: "table",
@@ -22051,17 +22051,17 @@ Actual: ` + p3.attribValue
22051
22051
  attrs: h3
22052
22052
  };
22053
22053
  }
22054
- function Ud$2(r22, e, t, n, i3 = null, s, o) {
22055
- const { docx: a, nodeListHandler: u } = o, f3 = r22.elements.find((X3) => X3.name === "w:tcPr"), c3 = f3?.elements?.find((X3) => X3.name === "w:tcBorders"), h3 = jd$2(c3, n);
22056
- fu$2(t);
22054
+ function jd$2(r22, e, t, n, i3 = null, s, o) {
22055
+ const { docx: a, nodeListHandler: u } = o, f3 = r22.elements.find((X3) => X3.name === "w:tcPr"), c3 = f3?.elements?.find((X3) => X3.name === "w:tcBorders"), h3 = Hd$2(c3, n);
22056
+ du$2(t);
22057
22057
  const g = f3?.elements?.find((X3) => X3.name === "w:tcW");
22058
22058
  let S = g ? xe$2(g.attributes["w:w"]) : null;
22059
22059
  const T3 = g?.attributes["w:type"];
22060
22060
  !S && i3 && (S = i3);
22061
22061
  const A = ko$2(r22), { attributes: B } = A || {}, k = {
22062
22062
  color: f3?.elements?.find((X3) => X3.name === "w:shd")?.attributes["w:fill"]
22063
- }, C = f3?.elements?.find((X3) => X3.name === "w:gridSpan")?.attributes["w:val"], F3 = f3?.elements?.find((X3) => X3.name === "w:tcMar"), M = f3?.elements?.find((X3) => X3.name === "w:vAlign")?.attributes["w:val"] || "top", q = {}, D3 = lu$2(s, a) || {};
22064
- q.cellMargins = Vd$2(F3, D3);
22063
+ }, C = f3?.elements?.find((X3) => X3.name === "w:gridSpan")?.attributes["w:val"], F3 = f3?.elements?.find((X3) => X3.name === "w:tcMar"), M = f3?.elements?.find((X3) => X3.name === "w:vAlign")?.attributes["w:val"] || "top", q = {}, D3 = cu$1(s, a) || {};
22064
+ q.cellMargins = zd$2(F3, D3);
22065
22065
  const { fontSize: $3, fonts: ie = {} } = D3, ee = ie.ascii;
22066
22066
  if (S && (q.colwidth = [S], q.widthUnit = "px"), T3 && (q.widthType = T3), C && (q.colspan = Number(C)), k && (q.background = k), q.verticalAlign = M, $3 && (q.fontSize = $3), ee && (q.fontFamily = ee.ascii), n && (q.borders = { ...n }), h3 && (q.borders = Object.assign(q.borders || {}, h3)), B && B["w:val"] === "restart") {
22067
22067
  const X3 = t.elements.filter((J3) => J3.name === "w:tr"), ce2 = X3.findIndex((J3) => J3 === e), he2 = X3.slice(ce2 + 1);
@@ -22088,14 +22088,14 @@ Actual: ` + p3.attribValue
22088
22088
  const i3 = {}, s = n["w:color"];
22089
22089
  s && (i3.color = s === "auto" ? "#000000" : `#${s}`);
22090
22090
  const o = n["w:sz"];
22091
- return o && (i3.size = Qa$2(o)), i3;
22091
+ return o && (i3.size = Za$2(o)), i3;
22092
22092
  }
22093
22093
  if (n && n["w:val"] === "nil") {
22094
22094
  const i3 = Object.assign({}, t[e] || {});
22095
22095
  return Object.keys(i3) ? (i3.val = "none", i3) : null;
22096
22096
  }
22097
22097
  return null;
22098
- }, jd$2 = (r22, e) => {
22098
+ }, Hd$2 = (r22, e) => {
22099
22099
  if (!r22) return null;
22100
22100
  const t = {}, n = ir$2(r22, "bottom", e);
22101
22101
  n && (t.bottom = n);
@@ -22106,7 +22106,7 @@ Actual: ` + p3.attribValue
22106
22106
  const o = ir$2(r22, "right", e);
22107
22107
  return o && (t.right = o), t;
22108
22108
  };
22109
- function lu$2(r22, e, t) {
22109
+ function cu$1(r22, e, t) {
22110
22110
  if (!r22) return null;
22111
22111
  const n = {}, { attributes: i3 = {} } = r22, s = i3["w:val"];
22112
22112
  if (!s) return null;
@@ -22133,12 +22133,12 @@ Actual: ` + p3.attribValue
22133
22133
  n.fonts = { ascii: w, hAnsi: k, cs: R };
22134
22134
  }
22135
22135
  const B = S.elements.find((w) => w.name === "w:sz");
22136
- B?.attributes && (n.fontSize = Bf$2(B.attributes["w:val"]) + "pt");
22136
+ B?.attributes && (n.fontSize = kf$1(B.attributes["w:val"]) + "pt");
22137
22137
  }
22138
22138
  const T3 = f3.elements.find((A) => A.name === "w:tblPr");
22139
22139
  if (T3 && T3.elements) {
22140
22140
  h3 && h3.elements && T3.elements.push(...h3.elements);
22141
- const A = T3?.elements?.find((C) => C.name === "w:tblBorders"), { elements: B = [] } = A || {}, { borders: w, rowBorders: k } = cu$1(B);
22141
+ const A = T3?.elements?.find((C) => C.name === "w:tblBorders"), { elements: B = [] } = A || {}, { borders: w, rowBorders: k } = fu$2(B);
22142
22142
  w && (n.borders = w), k && (n.rowBorders = k);
22143
22143
  const R = T3?.elements.find((C) => C.name === "w:tblCellMar");
22144
22144
  if (R) {
@@ -22153,32 +22153,32 @@ Actual: ` + p3.attribValue
22153
22153
  }
22154
22154
  return n;
22155
22155
  }
22156
- function cu$1(r22) {
22156
+ function fu$2(r22) {
22157
22157
  const e = {}, t = {};
22158
22158
  return r22.forEach((n) => {
22159
22159
  const { name: i3 } = n, s = i3.split("w:")[1], { attributes: o } = n, a = {}, u = o["w:color"], f3 = o["w:sz"];
22160
- u && u !== "auto" && (a.color = u.startsWith("#") ? u : `#${u}`), f3 && f3 !== "auto" && (a.size = Qa$2(f3)), ["insideH", "insideV"].includes(s) && (t[s] = a), e[s] = a;
22160
+ u && u !== "auto" && (a.color = u.startsWith("#") ? u : `#${u}`), f3 && f3 !== "auto" && (a.size = Za$2(f3)), ["insideH", "insideV"].includes(s) && (t[s] = a), e[s] = a;
22161
22161
  }), {
22162
22162
  borders: e,
22163
22163
  rowBorders: t
22164
22164
  };
22165
22165
  }
22166
- function Hd$2(r22, e, t, n, i3) {
22166
+ function Vd$2(r22, e, t, n, i3) {
22167
22167
  const s = {}, a = r22.elements.find((T3) => T3.name === "w:trPr")?.elements?.find((T3) => T3.name === "w:trHeight"), u = a?.attributes["w:val"];
22168
22168
  a?.attributes["w:hRule"];
22169
22169
  const f3 = {};
22170
22170
  t?.insideH && (f3.bottom = t.insideH), t?.insideV && (f3.right = t.insideV), s.borders = f3, u && (s.rowHeight = xe$2(u));
22171
- const c3 = fu$2(e), h3 = r22.elements.filter((T3) => T3.name === "w:tc");
22171
+ const c3 = du$2(e), h3 = r22.elements.filter((T3) => T3.name === "w:tc");
22172
22172
  return {
22173
22173
  type: "tableRow",
22174
22174
  content: h3?.map((T3, A) => {
22175
22175
  const B = h3.length > 1 ? c3[A] : null;
22176
- return Ud$2(T3, r22, e, f3, B, n, i3);
22176
+ return jd$2(T3, r22, e, f3, B, n, i3);
22177
22177
  }) || [],
22178
22178
  attrs: s
22179
22179
  };
22180
22180
  }
22181
- const Vd$2 = (r22, e) => {
22181
+ const zd$2 = (r22, e) => {
22182
22182
  const t = r22?.elements?.find((B) => B.name === "w:left"), n = r22?.elements?.find((B) => B.name === "w:right"), i3 = r22?.elements?.find((B) => B.name === "w:top"), s = r22?.elements?.find((B) => B.name === "w:bottom"), o = t?.attributes["w:w"], a = n?.attributes["w:w"], u = i3?.attributes["w:w"], f3 = s?.attributes["w:w"], { cellMargins: c3 = {} } = e, {
22183
22183
  marginLeft: h3,
22184
22184
  marginRight: g,
@@ -22191,7 +22191,7 @@ Actual: ` + p3.attribValue
22191
22191
  top: xe$2(u ?? S),
22192
22192
  bottom: xe$2(f3 ?? T3)
22193
22193
  };
22194
- }, fu$2 = (r22) => r22.elements.find((t) => t.name === "w:tblGrid")?.elements?.flatMap((t) => t.name !== "w:gridCol" ? [] : xe$2(t.attributes["w:w"])) || {}, zd$2 = (r22) => {
22194
+ }, du$2 = (r22) => r22.elements.find((t) => t.name === "w:tblGrid")?.elements?.flatMap((t) => t.name !== "w:gridCol" ? [] : xe$2(t.attributes["w:w"])) || {}, Gd$2 = (r22) => {
22195
22195
  const { nodes: e, filename: t } = r22;
22196
22196
  if (e.length === 0 || e[0].name !== "w:drawing")
22197
22197
  return { nodes: [], consumed: 0 };
@@ -22239,9 +22239,9 @@ Actual: ` + p3.attribValue
22239
22239
  }
22240
22240
  };
22241
22241
  }
22242
- const Gd$2 = {
22242
+ const Wd$2 = {
22243
22243
  handlerName: "drawingNodeHandler",
22244
- handler: zd$2
22244
+ handler: Gd$2
22245
22245
  };
22246
22246
  function Bt$2(r22, e = [], t = null) {
22247
22247
  const n = [], i3 = /* @__PURE__ */ new Set();
@@ -22266,7 +22266,7 @@ Actual: ` + p3.attribValue
22266
22266
  const { attributes: u = {} } = s, f3 = { type: a.type };
22267
22267
  if (!(u["w:val"] == "0" || u["w:val"] === "none")) {
22268
22268
  if (a.mark && (f3.type = a.mark), Object.keys(u).length) {
22269
- const c3 = Jd$2(a.type, u, t);
22269
+ const c3 = Kd$2(a.type, u, t);
22270
22270
  if (c3 == null) return;
22271
22271
  f3.attrs = {}, f3.attrs[a.property] = c3;
22272
22272
  }
@@ -22275,7 +22275,7 @@ Actual: ` + p3.attribValue
22275
22275
  });
22276
22276
  }), hi$2(n);
22277
22277
  }
22278
- function Wd$2(r22, e) {
22278
+ function Jd$2(r22, e) {
22279
22279
  const t = r22.elements?.find((o) => o.name === "w:rPrChange");
22280
22280
  if (!t)
22281
22281
  return [];
@@ -22296,25 +22296,25 @@ Actual: ` + p3.attribValue
22296
22296
  });
22297
22297
  }), [...t, { type: "textStyle", attrs: n }];
22298
22298
  }
22299
- function Jd$2(r22, e, t) {
22299
+ function Kd$2(r22, e, t) {
22300
22300
  r22 === "tabs" && (r22 = "textIndent");
22301
22301
  const n = {
22302
22302
  color: () => `#${e["w:val"]}`,
22303
22303
  fontSize: () => `${e["w:val"] / 2}pt`,
22304
- textIndent: () => $d$2(e),
22305
- fontFamily: () => Kd$2(e, t),
22306
- lineHeight: () => Xd$2(e),
22304
+ textIndent: () => Xd$2(e),
22305
+ fontFamily: () => $d$2(e, t),
22306
+ lineHeight: () => Yd$2(e),
22307
22307
  textAlign: () => e["w:val"],
22308
22308
  link: () => e.href,
22309
22309
  underline: () => e["w:val"],
22310
22310
  bold: () => e?.["w:val"] || null,
22311
22311
  italic: () => e?.["w:val"] || null,
22312
- highlight: () => Yd$2(e)
22312
+ highlight: () => Qd$2(e)
22313
22313
  };
22314
22314
  if (r22 in n || console.debug("❗️❗️ No value mapper for:", r22, "Attributes:", e), r22 in n)
22315
22315
  return n[r22], n[r22]();
22316
22316
  }
22317
- function Kd$2(r22, e) {
22317
+ function $d$2(r22, e) {
22318
22318
  const t = r22["w:ascii"], n = r22["w:asciiTheme"];
22319
22319
  if (!e || !n) return t;
22320
22320
  const i3 = e["word/theme/theme1.xml"];
@@ -22322,20 +22322,20 @@ Actual: ` + p3.attribValue
22322
22322
  const { elements: s } = i3, { elements: o } = s[0];
22323
22323
  return o.find((g) => g.name === "a:themeElements").elements.find((g) => g.name === "a:fontScheme").elements.find((g) => g.name === "a:majorFont").elements.find((g) => g.name === "a:latin").attributes.typeface;
22324
22324
  }
22325
- function $d$2(r22) {
22325
+ function Xd$2(r22) {
22326
22326
  let e = r22["w:left"];
22327
22327
  return e ? `${qe$1(e)}in` : null;
22328
22328
  }
22329
- function Xd$2(r22) {
22329
+ function Yd$2(r22) {
22330
22330
  let e = r22["w:line"];
22331
22331
  return !e || e === "0" ? null : `${ki$2(e)}`;
22332
22332
  }
22333
- function Yd$2(r22) {
22334
- return r22["w:fill"] ? `#${r22["w:fill"]}` : If$2(r22?.["w:val"]) ? `#${r22["w:val"]}` : Nf$1(r22?.["w:val"]) || null;
22333
+ function Qd$2(r22) {
22334
+ return r22["w:fill"] ? `#${r22["w:fill"]}` : Rf$2(r22?.["w:val"]) ? `#${r22["w:val"]}` : If$2(r22?.["w:val"]) || null;
22335
22335
  }
22336
22336
  function Lt$2(r22, e) {
22337
- const t = [], n = [], { attributes: i3 = {}, elements: s = [] } = r22, { nodes: o, paragraphProperties: a = {}, runProperties: u = {} } = Qd$2(s);
22338
- return s.find((c3) => c3.name === "w:r") && (a.elements = a?.elements?.filter((c3) => c3.name !== "w:rPr")), u && u?.elements?.length && t.push(...Bt$2(u, n)), a && a.elements?.length && t.push(...Bt$2(a, n)), t.push(...Wd$2(u, t)), a && a.elements?.length && (i3.paragraphProperties = a), t && r22.name === "w:p" && t.forEach((c3) => {
22337
+ const t = [], n = [], { attributes: i3 = {}, elements: s = [] } = r22, { nodes: o, paragraphProperties: a = {}, runProperties: u = {} } = Zd$2(s);
22338
+ return s.find((c3) => c3.name === "w:r") && (a.elements = a?.elements?.filter((c3) => c3.name !== "w:rPr")), u && u?.elements?.length && t.push(...Bt$2(u, n)), a && a.elements?.length && t.push(...Bt$2(a, n)), t.push(...Jd$2(u, t)), a && a.elements?.length && (i3.paragraphProperties = a), t && r22.name === "w:p" && t.forEach((c3) => {
22339
22339
  const h3 = Object.keys(c3.attrs ?? {})[0];
22340
22340
  if (h3) {
22341
22341
  const g = c3.attrs[h3];
@@ -22343,7 +22343,7 @@ Actual: ` + p3.attribValue
22343
22343
  }
22344
22344
  }), { elements: o, attributes: i3, marks: t, unknownMarks: n };
22345
22345
  }
22346
- function Qd$2(r22) {
22346
+ function Zd$2(r22) {
22347
22347
  const e = r22.find((s) => s.name === "w:pPr"), t = r22.find((s) => s.name === "w:rPr"), n = r22.find((s) => s.name === "w:sectPr");
22348
22348
  return {
22349
22349
  nodes: r22.filter((s) => s.name !== "w:pPr" && s.name !== "w:rPr" && s.name !== "w:sectPr"),
@@ -22355,11 +22355,11 @@ Actual: ` + p3.attribValue
22355
22355
  function lr$2(r22) {
22356
22356
  return Nt$4.allowedElements[r22.name || r22.type];
22357
22357
  }
22358
- const Zd$2 = (r22) => !!Nt$4.propertyTypes[r22.name || r22.type];
22359
- function du$2(r22) {
22358
+ const em$1 = (r22) => !!Nt$4.propertyTypes[r22.name || r22.type];
22359
+ function mu$2(r22) {
22360
22360
  return r22.filter((n) => n.name === "w:r").some((n) => n.elements.some((i3) => i3.name === "w:t"));
22361
22361
  }
22362
- const em$1 = (r22) => {
22362
+ const tm$1 = (r22) => {
22363
22363
  const { nodes: e, nodeListHandler: t } = r22;
22364
22364
  if (e.length === 0 || !(e[0].name === "w:del" || e[0].name === "w:ins"))
22365
22365
  return { nodes: [], consumed: 0 };
@@ -22372,10 +22372,10 @@ Actual: ` + p3.attribValue
22372
22372
  return a.forEach((c3) => {
22373
22373
  c3.marks === void 0 && (c3.marks = []), c3.marks.push({ type: u, attrs: f3 });
22374
22374
  }), { nodes: a, consumed: 1 };
22375
- }, tm$1 = {
22375
+ }, rm$1 = {
22376
22376
  handlerName: "trackChangeNodeHandler",
22377
- handler: em$1
22378
- }, rm$1 = (r22) => {
22377
+ handler: tm$1
22378
+ }, nm$1 = (r22) => {
22379
22379
  const { nodes: e, docx: t, nodeListHandler: n } = r22;
22380
22380
  if (e.length === 0 || e[0].name !== "w:hyperlink")
22381
22381
  return { nodes: [], consumed: 0 };
@@ -22394,31 +22394,31 @@ Actual: ` + p3.attribValue
22394
22394
  }
22395
22395
  }
22396
22396
  return { nodes: n.handler({ ...r22, nodes: T3 }), consumed: 1 };
22397
- }, nm$1 = {
22397
+ }, im$1 = {
22398
22398
  handlerName: "hyperlinkNodeHandler",
22399
- handler: rm$1
22400
- }, im$1 = (r22) => {
22399
+ handler: nm$1
22400
+ }, sm$1 = (r22) => {
22401
22401
  const { nodes: e, nodeListHandler: t, parentStyleId: n, docx: i3 } = r22;
22402
22402
  if (e.length === 0 || e[0].name !== "w:r")
22403
22403
  return { nodes: [], consumed: 0 };
22404
22404
  const s = e[0], o = { ...r22, nodes: s.elements };
22405
22405
  let a = t.handler(o)?.filter((c3) => c3) || [];
22406
- const u = s.elements?.some((c3) => c3.name === "w:rPr"), f3 = sm$1(i3, n);
22406
+ const u = s.elements?.some((c3) => c3.name === "w:rPr"), f3 = om$1(i3, n);
22407
22407
  if (u) {
22408
22408
  const { marks: c3 = [], attributes: h3 = {} } = Lt$2(s), g = c3.find((T3) => T3.type === "textStyle"), S = g && Object.keys(g.attrs).length > 0;
22409
22409
  f3.marks && !S && c3.push(...f3.marks), s.marks && c3.push(...s.marks), a = a.map((T3) => ({ ...T3, marks: hi$2(c3), attributes: h3 }));
22410
22410
  } else f3.marks && (a = a.map((c3) => ({ ...c3, marks: hi$2(f3.marks) })));
22411
22411
  return { nodes: a, consumed: 1 };
22412
- }, sm$1 = (r22, e) => {
22412
+ }, om$1 = (r22, e) => {
22413
22413
  const t = r22?.["word/styles.xml"];
22414
22414
  if (!t)
22415
22415
  return {};
22416
22416
  const i3 = t.elements[0].elements.filter((s) => s.name === "w:style").find((s) => s.attributes["w:styleId"] === e) || {};
22417
22417
  return i3 ? Lt$2(i3) : {};
22418
- }, om$1 = {
22418
+ }, am$1 = {
22419
22419
  handlerName: "runNodeHandler",
22420
- handler: im$1
22421
- }, am$1 = (r22) => {
22420
+ handler: sm$1
22421
+ }, um$1 = (r22) => {
22422
22422
  const { nodes: e, insideTrackChange: t } = r22;
22423
22423
  if (e.length === 0 || !(e[0].name === "w:t" || t && e[0].name === "w:delText"))
22424
22424
  return { nodes: [], consumed: 0 };
@@ -22439,64 +22439,64 @@ Actual: ` + p3.attribValue
22439
22439
  ],
22440
22440
  consumed: 1
22441
22441
  };
22442
- }, um$1 = {
22442
+ }, lm$1 = {
22443
22443
  handlerName: "textNodeHandler",
22444
- handler: am$1
22445
- }, lm$1 = (r22) => Object.prototype.toString.call(r22) === "[object RegExp]";
22446
- function cm$1(r22, e, t = { strict: true }) {
22444
+ handler: um$1
22445
+ }, cm$1 = (r22) => Object.prototype.toString.call(r22) === "[object RegExp]";
22446
+ function fm$1(r22, e, t = { strict: true }) {
22447
22447
  const n = Object.keys(e);
22448
- return n.length ? n.every((i3) => t.strict ? e[i3] === r22[i3] : lm$1(e[i3]) ? e[i3].test(r22[i3]) : e[i3] === r22[i3]) : true;
22448
+ return n.length ? n.every((i3) => t.strict ? e[i3] === r22[i3] : cm$1(e[i3]) ? e[i3].test(r22[i3]) : e[i3] === r22[i3]) : true;
22449
22449
  }
22450
- const mu$2 = (r22) => {
22450
+ const pu$2 = (r22) => {
22451
22451
  if (!r22 || !Array.isArray(r22))
22452
22452
  return r22;
22453
22453
  let e = [], t = null;
22454
22454
  for (let n of r22)
22455
- n.type === "text" ? t && fm$1(t, n) ? t = {
22455
+ n.type === "text" ? t && dm$1(t, n) ? t = {
22456
22456
  ...t,
22457
22457
  text: t.text += n.text
22458
22458
  } : (t && e.push(t), t = { ...n }) : (t && (e.push(t), t = null), e.push(n));
22459
22459
  return t && e.push(t), e;
22460
- }, fm$1 = (r22, e) => {
22460
+ }, dm$1 = (r22, e) => {
22461
22461
  if (!r22 || !e) return false;
22462
22462
  let t = r22.marks ?? [], n = e.marks ?? [];
22463
22463
  if (t.length !== n.length)
22464
22464
  return false;
22465
22465
  for (let i3 = 0; i3 < t.length; i3++)
22466
- if (t[i3].type !== n[i3].type || !dm$1(t[i3].attrs, n[i3].attrs))
22466
+ if (t[i3].type !== n[i3].type || !mm$1(t[i3].attrs, n[i3].attrs))
22467
22467
  return false;
22468
22468
  return true;
22469
- }, dm$1 = (r22 = {}, e = {}) => cm$1(r22, e);
22470
- function pu$2(r22, e, t) {
22469
+ }, mm$1 = (r22 = {}, e = {}) => fm$1(r22, e);
22470
+ function hu$2(r22, e, t) {
22471
22471
  this.name = r22, this.message = e || "", this.details = t;
22472
22472
  const n = new Error(this.message);
22473
22473
  this.stack = n.stack, n.name = this.name;
22474
22474
  }
22475
- pu$2.prototype = Object.create(Error.prototype);
22476
- const mm$1 = (r22) => {
22475
+ hu$2.prototype = Object.create(Error.prototype);
22476
+ const pm$1 = (r22) => {
22477
22477
  const { nodes: e, lists: t, docx: n } = r22;
22478
22478
  if (e.length === 0 || e[0].name !== "w:p")
22479
22479
  return { nodes: [], consumed: 0 };
22480
- const i3 = je$3(e[0]), s = xu$2(i3.elements);
22480
+ const i3 = je$3(e[0]), s = Au$2(i3.elements);
22481
22481
  i3.elements = s;
22482
22482
  const o = i3.elements.find((a) => a.name === "w:pPr");
22483
22483
  if (gi$2(i3, n)) {
22484
22484
  const a = je$3(e), u = [];
22485
22485
  let f3 = a.shift();
22486
22486
  for (; f3 && gi$2(f3, n); )
22487
- u.push(f3), f3 = a.shift(), f3?.elements && !du$2(f3.elements) && (u.push(f3), f3 = a.shift());
22487
+ u.push(f3), f3 = a.shift(), f3?.elements && !mu$2(f3.elements) && (u.push(f3), f3 = a.shift());
22488
22488
  return {
22489
- nodes: [hu$2({ listItems: u, params: r22, originalPpr: o })],
22489
+ nodes: [gu$2({ listItems: u, params: r22, originalPpr: o })],
22490
22490
  consumed: u.filter((h3) => h3.seen).length,
22491
22491
  lists: t
22492
22492
  };
22493
22493
  } else
22494
22494
  return { nodes: [], consumed: 0, lists: t };
22495
- }, pm$1 = {
22495
+ }, hm$1 = {
22496
22496
  handlerName: "listHandler",
22497
- handler: mm$1
22497
+ handler: pm$1
22498
22498
  };
22499
- function hu$2({
22499
+ function gu$2({
22500
22500
  listItems: r22,
22501
22501
  originalPpr: e,
22502
22502
  params: t,
@@ -22514,11 +22514,11 @@ Actual: ` + p3.attribValue
22514
22514
  if (!T3)
22515
22515
  return console.error("Standard node handler not found"), { nodes: [], consumed: 0 };
22516
22516
  const w = r22[0].elements.find((F3) => F3.name === "w:pPr")?.elements?.find((F3) => F3.name === "w:pStyle")?.attributes["w:val"], k = kr$1({ node: r22[0], styleId: w, docx: u });
22517
- s = kt$3(k), i3 = parseInt(k?.elements?.find((F3) => F3.name === "w:ilvl")?.attributes["w:val"]) || 0, i3 === void 0 && (i3 = gu$2(w, u));
22517
+ s = kt$3(k), i3 = parseInt(k?.elements?.find((F3) => F3.name === "w:ilvl")?.attributes["w:val"]) || 0, i3 === void 0 && (i3 = wu$2(w, u));
22518
22518
  let R = 0;
22519
22519
  for (let [F3, N3] of r22.entries()) {
22520
22520
  if (N3.seen) continue;
22521
- if (N3.elements && !du$2(N3.elements)) {
22521
+ if (N3.elements && !mu$2(N3.elements)) {
22522
22522
  const P3 = T3({ ...t, nodes: [N3] }).nodes[0];
22523
22523
  P3 && h3[h3.length - 1]?.content.push(P3), N3.seen = true;
22524
22524
  continue;
@@ -22533,9 +22533,9 @@ Actual: ` + p3.attribValue
22533
22533
  lvlText: Q3,
22534
22534
  lvlJc: pe2,
22535
22535
  numId: J3
22536
- } = ym$1(N3, n, u);
22536
+ } = bm$1(N3, n, u);
22537
22537
  S = ee;
22538
- const ne = parseInt(X3), ae2 = i3 === ne && J3 === s, L3 = wm$1({
22538
+ const ne = parseInt(X3), ae2 = i3 === ne && J3 === s, L3 = ym$1({
22539
22539
  firstListId: J3,
22540
22540
  secondListId: s,
22541
22541
  level: ne,
@@ -22557,7 +22557,7 @@ Actual: ` + p3.attribValue
22557
22557
  textAlign: $3?.attrs.textAlign || null,
22558
22558
  rsidRDefault: M?.["w:rsidRDefault"] || null
22559
22559
  },
22560
- content: mu$2(p3.content)
22560
+ content: pu$2(p3.content)
22561
22561
  }), P3.push(p3), R = n;
22562
22562
  let m = [];
22563
22563
  if (S !== "bullet" && (m = [...o, c3[s][n]]), !o.length && i3 > 0) {
@@ -22578,11 +22578,11 @@ Actual: ` + p3.attribValue
22578
22578
  parentAttributes: N3?.attributes || null
22579
22579
  };
22580
22580
  const b = e?.elements?.find((_) => _.name === "w:rPr");
22581
- b && (K3.attributes.originalInlineRunProps = b), K3.numId = J3, u && (K3.spacing = yu$2(N3, u));
22581
+ b && (K3.attributes.originalInlineRunProps = b), K3.numId = J3, u && (K3.spacing = bu$2(N3, u));
22582
22582
  const x = Io$2(P3, K3, []);
22583
22583
  h3.push(x);
22584
22584
  } else if (V) {
22585
- const P3 = [...o, c3[s][n]], p3 = hu$2({
22585
+ const P3 = [...o, c3[s][n]], p3 = gu$2({
22586
22586
  listItems: r22.slice(F3),
22587
22587
  originalPpr: e,
22588
22588
  params: t,
@@ -22617,8 +22617,8 @@ Actual: ` + p3.attribValue
22617
22617
  };
22618
22618
  return a && (C.lastNestedListLevel = R), C;
22619
22619
  }
22620
- const gu$2 = (r22, e) => {
22621
- const i3 = wu$2(r22, e)?.elements?.find((s) => s.name === "w:pPr")?.elements?.find((s) => s.name === "w:outlineLvl");
22620
+ const wu$2 = (r22, e) => {
22621
+ const i3 = yu$2(r22, e)?.elements?.find((s) => s.name === "w:pPr")?.elements?.find((s) => s.name === "w:outlineLvl");
22622
22622
  try {
22623
22623
  return parseInt(i3?.attributes["w:val"]);
22624
22624
  } catch {
@@ -22633,13 +22633,13 @@ Actual: ` + p3.attribValue
22633
22633
  return a && !o && (s = kr$1({ node: r22, styleId: a, docx: e }), o = kt$3(s)), !!o;
22634
22634
  }
22635
22635
  const kt$3 = (r22) => r22?.elements?.find((e) => e.name === "w:numId")?.attributes["w:val"];
22636
- function wu$2(r22, e) {
22636
+ function yu$2(r22, e) {
22637
22637
  return e["word/styles.xml"].elements.find((o) => o.name === "w:styles").elements.filter((o) => o.name === "w:style").find((o) => o.attributes["w:styleId"] === r22);
22638
22638
  }
22639
22639
  function kr$1({ node: r22, styleId: e, docx: t, seenStyleIds: n = /* @__PURE__ */ new Set() }) {
22640
22640
  let o = r22?.elements?.find((h3) => h3.name === "w:pPr")?.elements?.find((h3) => h3.name === "w:numPr"), a = kt$3(o);
22641
22641
  if (a) return o;
22642
- const u = wu$2(e, t);
22642
+ const u = yu$2(e, t);
22643
22643
  o = u?.elements?.find((h3) => h3.name === "w:pPr")?.elements?.find((h3) => h3.name === "w:numPr"), a = kt$3(o);
22644
22644
  const c3 = u?.elements?.find((h3) => h3.name === "w:basedOn");
22645
22645
  if (!a && !n.has(e)) {
@@ -22656,7 +22656,7 @@ Actual: ` + p3.attribValue
22656
22656
  marks: t
22657
22657
  };
22658
22658
  }
22659
- const hm$1 = [
22659
+ const gm$1 = [
22660
22660
  "decimal",
22661
22661
  // eg: 1, 2, 3, 4, 5, ...
22662
22662
  "decimalZero",
@@ -22681,7 +22681,7 @@ Actual: ` + p3.attribValue
22681
22681
  // eg: (0, 1, 2, ..., 9, 10, 11, 12, ..., 19, 1A, 1B, 1C, ..., 1Z, 20, 21, ..., 2Z)
22682
22682
  "none"
22683
22683
  // No bullet
22684
- ], gm$1 = [
22684
+ ], wm$1 = [
22685
22685
  "bullet",
22686
22686
  // A standard bullet point (•)
22687
22687
  "square",
@@ -22690,7 +22690,7 @@ Actual: ` + p3.attribValue
22690
22690
  // Circle bullets (◦)
22691
22691
  "disc"
22692
22692
  // Disc bullets (●)
22693
- ], wm$1 = ({ firstListId: r22, secondListId: e, level: t, pStyleId: n, docx: i3 }) => {
22693
+ ], ym$1 = ({ firstListId: r22, secondListId: e, level: t, pStyleId: n, docx: i3 }) => {
22694
22694
  const { numFmt: s, lvlText: o, lvlJc: a } = br$2(r22, t, n, i3), {
22695
22695
  numFmt: u,
22696
22696
  lvlText: f3,
@@ -22720,7 +22720,7 @@ Actual: ` + p3.attribValue
22720
22720
  }
22721
22721
  const a = o.elements, u = a.filter((N3) => N3.name === "w:abstractNum"), h3 = a.filter((N3) => N3.name === "w:num").find((N3) => N3.attributes["w:numId"] === r22)?.elements[0].attributes["w:val"], g = u?.find(
22722
22722
  (N3) => N3.attributes["w:abstractNumId"] === h3
22723
- ), S = bm$1(g, e), A = g?.elements?.find((N3) => N3.name === "w:numStyleLink")?.attributes["w:val"];
22723
+ ), S = xm$1(g, e), A = g?.elements?.find((N3) => N3.name === "w:numStyleLink")?.attributes["w:val"];
22724
22724
  if (A) {
22725
22725
  const N3 = Ro$2(A, n);
22726
22726
  return br$2(N3.numId, e, null, n);
@@ -22728,11 +22728,11 @@ Actual: ` + p3.attribValue
22728
22728
  const B = S?.elements?.find((N3) => N3.name === "w:start")?.attributes["w:val"], w = S?.elements?.find((N3) => N3.name === "w:numFmt")?.attributes["w:val"], k = S?.elements?.find((N3) => N3.name === "w:lvlText").attributes["w:val"], R = S?.elements?.find((N3) => N3.name === "w:lvlJc").attributes["w:val"], C = S?.elements?.find((N3) => N3.name === "w:pPr"), F3 = S?.elements?.find((N3) => N3.name === "w:rPr");
22729
22729
  return { start: B, numFmt: w, lvlText: k, lvlJc: R, pPr: C, rPr: F3 };
22730
22730
  };
22731
- function ym$1(r22, e, t) {
22731
+ function bm$1(r22, e, t) {
22732
22732
  if (!r22) return;
22733
22733
  const { attributes: n } = r22, { paragraphProperties: i3 = {} } = n, { elements: s = [] } = i3, u = r22.elements.find((D3) => D3.name === "w:pPr")?.elements?.find((D3) => D3.name === "w:pStyle")?.attributes["w:val"], f3 = kr$1({ node: r22, styleId: u, docx: t });
22734
22734
  if (!f3) return {};
22735
- const h3 = f3?.elements.find((D3) => D3.name === "w:numId")?.attributes["w:val"], S = f3?.elements.find((D3) => D3.name === "w:ilvl")?.attributes["w:val"] || gu$2(u, t), A = s.find((D3) => D3.name === "w:pStyle")?.attributes["w:val"], {
22735
+ const h3 = f3?.elements.find((D3) => D3.name === "w:numId")?.attributes["w:val"], S = f3?.elements.find((D3) => D3.name === "w:ilvl")?.attributes["w:val"] || wu$2(u, t), A = s.find((D3) => D3.name === "w:pStyle")?.attributes["w:val"], {
22736
22736
  start: B,
22737
22737
  numFmt: w,
22738
22738
  lvlText: k,
@@ -22741,12 +22741,12 @@ Actual: ` + p3.attribValue
22741
22741
  rPr: F3
22742
22742
  } = br$2(h3, e, A, t);
22743
22743
  let N3, M;
22744
- C && (N3 = xm$1(C)), F3 && (M = Am$1(F3));
22744
+ C && (N3 = Am$1(C)), F3 && (M = Dm$1(F3));
22745
22745
  let q;
22746
- if (gm$1.includes(w?.toLowerCase())) q = "bulletList";
22747
- else if (hm$1.includes(w)) q = "orderedList";
22746
+ if (wm$1.includes(w?.toLowerCase())) q = "bulletList";
22747
+ else if (gm$1.includes(w)) q = "orderedList";
22748
22748
  else
22749
- throw new pu$2("ListParsingError", `Unknown list type found during import: ${w}`, {
22749
+ throw new hu$2("ListParsingError", `Unknown list type found during import: ${w}`, {
22750
22750
  listOrderingType: w,
22751
22751
  ilvl: S,
22752
22752
  numId: h3,
@@ -22758,10 +22758,10 @@ Actual: ` + p3.attribValue
22758
22758
  });
22759
22759
  return { listType: q, listOrderingType: w, ilvl: S, numId: h3, listrPrs: M, listpPrs: N3, start: B, lvlText: k, lvlJc: R };
22760
22760
  }
22761
- function bm$1(r22, e) {
22761
+ function xm$1(r22, e) {
22762
22762
  return r22?.elements?.find((t) => Number(t.attributes["w:ilvl"]) === e);
22763
22763
  }
22764
- function xm$1(r22) {
22764
+ function Am$1(r22) {
22765
22765
  const { elements: e } = r22, t = ["w:ind", "w:jc", "w:tabs"], n = {};
22766
22766
  return e && e.forEach((i3) => {
22767
22767
  t.includes(i3.name);
@@ -22771,7 +22771,7 @@ Actual: ` + p3.attribValue
22771
22771
  });
22772
22772
  }), n;
22773
22773
  }
22774
- function Am$1(r22) {
22774
+ function Dm$1(r22) {
22775
22775
  const { elements: e } = r22, t = [
22776
22776
  "w:rFonts",
22777
22777
  "w:b",
@@ -22802,12 +22802,12 @@ Actual: ` + p3.attribValue
22802
22802
  });
22803
22803
  }), n;
22804
22804
  }
22805
- const Dm$1 = (r22) => {
22805
+ const Em$1 = (r22) => {
22806
22806
  const { nodes: e, docx: t, nodeListHandler: n, filename: i3 } = r22;
22807
22807
  if (e.length === 0 || e[0].name !== "w:p")
22808
22808
  return { nodes: [], consumed: 0 };
22809
22809
  const s = je$3(e[0]);
22810
- let o, a = xu$2(s.elements);
22810
+ let o, a = Au$2(s.elements);
22811
22811
  if (s.elements = a, gi$2(s, t))
22812
22812
  return { nodes: [], consumed: 0 };
22813
22813
  const u = n.handlerEntities.find(
@@ -22819,7 +22819,7 @@ Actual: ` + p3.attribValue
22819
22819
  c3.nodes.length === 1 && (o = c3.nodes[0]);
22820
22820
  const h3 = s.elements?.find((w) => w.name === "w:pPr"), g = h3?.elements?.find((w) => w.name === "w:pStyle"), S = h3?.elements?.find((w) => w.name === "w:rPr");
22821
22821
  if (S && (o.attrs.marksAttrs = Bt$2(S, [])), g && (o.attrs.styleId = g.attributes["w:val"]), t) {
22822
- const w = Em$1(s, t, o.attrs.styleId);
22822
+ const w = vm$1(s, t, o.attrs.styleId);
22823
22823
  o.attrs.indent || (o.attrs.indent = {}), w.left && (o.attrs.indent.left = w.left), w.right && (o.attrs.indent.right = w.right), w.firstLine && (o.attrs.indent.firstLine = w.firstLine), w.hanging && (o.attrs.indent.hanging = w.hanging), w.textIndent && (o.attrs.textIndent = `${w.textIndent}in`);
22824
22824
  }
22825
22825
  const T3 = h3?.elements?.find((w) => w.name === "w:jc");
@@ -22829,30 +22829,30 @@ Actual: ` + p3.attribValue
22829
22829
  const B = h3?.elements?.find((w) => w.name === "w:keepNext");
22830
22830
  if (B && B.attributes && (o.attrs.keepNext = B.attributes["w:val"]), t) {
22831
22831
  const w = s.attributes?.["w:rsidRDefault"];
22832
- o.attrs.spacing = yu$2(s, t, o.attrs.styleId, o.attrs.marksAttrs), o.attrs.rsidRDefault = w;
22832
+ o.attrs.spacing = bu$2(s, t, o.attrs.styleId, o.attrs.marksAttrs), o.attrs.rsidRDefault = w;
22833
22833
  }
22834
22834
  return o.attrs.filename = i3, o && o.content && (o = {
22835
22835
  ...o,
22836
- content: mu$2(o.content)
22836
+ content: pu$2(o.content)
22837
22837
  }), { nodes: o ? [o] : [], consumed: 1 };
22838
- }, Em$1 = (r22, e, t = "") => {
22838
+ }, vm$1 = (r22, e, t = "") => {
22839
22839
  const n = {
22840
22840
  left: 0,
22841
22841
  right: 0,
22842
22842
  firstLine: 0,
22843
22843
  hanging: 0,
22844
22844
  textIndent: 0
22845
- }, { indent: i3 = {} } = bu$2(e, t), a = r22.elements?.find((S) => S.name === "w:pPr")?.elements?.find((S) => S.name === "w:ind")?.attributes || {}, u = a?.["w:left"] || i3?.["w:left"], f3 = a?.["w:right"] || i3?.["w:right"], c3 = a?.["w:firstLine"] || i3?.["w:firstLine"], h3 = a?.["w:hanging"] || i3?.["w:hanging"];
22845
+ }, { indent: i3 = {} } = xu$2(e, t), a = r22.elements?.find((S) => S.name === "w:pPr")?.elements?.find((S) => S.name === "w:ind")?.attributes || {}, u = a?.["w:left"] || i3?.["w:left"], f3 = a?.["w:right"] || i3?.["w:right"], c3 = a?.["w:firstLine"] || i3?.["w:firstLine"], h3 = a?.["w:hanging"] || i3?.["w:hanging"];
22846
22846
  u && (n.left = xe$2(u)), f3 && (n.right = xe$2(f3)), c3 && (n.firstLine = xe$2(c3)), h3 && (n.hanging = xe$2(h3));
22847
22847
  const g = u - parseInt(h3 || 0) || 0;
22848
22848
  return g && (n.textIndent = qe$1(g)), n;
22849
- }, yu$2 = (r22, e, t = "", n = []) => {
22849
+ }, bu$2 = (r22, e, t = "", n = []) => {
22850
22850
  const i3 = {
22851
22851
  lineSpaceAfter: 0,
22852
22852
  lineSpaceBefore: 0,
22853
22853
  line: 0,
22854
22854
  lineRule: null
22855
- }, { spacing: s = {} } = bu$2(e, t);
22855
+ }, { spacing: s = {} } = xu$2(e, t);
22856
22856
  let o, a, u, f3;
22857
22857
  const g = r22.elements?.find((F3) => F3.name === "w:pPr")?.elements?.find((F3) => F3.name === "w:spacing")?.attributes || {}, T3 = n.find((F3) => F3.type === "textStyle")?.attrs?.fontSize, A = g?.["w:line"] || u || s?.["w:line"];
22858
22858
  A && (i3.line = ki$2(A));
@@ -22862,7 +22862,7 @@ Actual: ` + p3.attribValue
22862
22862
  k && (i3.lineSpaceAfter = xe$2(k)), g?.["w:afterAutospacing"] === "1" && T3 && (i3.lineSpaceAfter += Math.round(parseInt(T3) * 0.5 * 96 / 72));
22863
22863
  const C = g?.["w:lineRule"] || f3 || s?.["w:lineRule"];
22864
22864
  return C && (i3.lineRule = C), i3;
22865
- }, bu$2 = (r22, e = "") => {
22865
+ }, xu$2 = (r22, e = "") => {
22866
22866
  const t = r22["word/styles.xml"];
22867
22867
  if (!t)
22868
22868
  return {};
@@ -22877,11 +22877,11 @@ Actual: ` + p3.attribValue
22877
22877
  spacing: B || T3 || A,
22878
22878
  indent: R || w || k
22879
22879
  };
22880
- }, vm$1 = {
22880
+ }, Cm$1 = {
22881
22881
  handlerName: "paragraphNodeHandler",
22882
- handler: Dm$1
22882
+ handler: Em$1
22883
22883
  };
22884
- function Cm$1(r22, e) {
22884
+ function Sm$1(r22, e) {
22885
22885
  const t = { lineSpaceBefore: null, lineSpaceAfter: null };
22886
22886
  if (!r22) return t;
22887
22887
  const n = e["word/styles.xml"];
@@ -22921,7 +22921,7 @@ Actual: ` + p3.attribValue
22921
22921
  const { type: Q3, attrs: pe2 } = se;
22922
22922
  if (Q3 === "textStyle") {
22923
22923
  Object.entries(pe2).forEach(([J3, ne]) => {
22924
- he2[Xa$2(J3)] = ne;
22924
+ he2[Ya$2(J3)] = ne;
22925
22925
  });
22926
22926
  return;
22927
22927
  }
@@ -22931,26 +22931,30 @@ Actual: ` + p3.attribValue
22931
22931
  styles: he2
22932
22932
  };
22933
22933
  }
22934
- function xu$2(r22) {
22934
+ function Au$2(r22) {
22935
22935
  let e = [], t = [], n = false;
22936
22936
  return r22?.forEach((i3) => {
22937
22937
  if (i3.seen) return;
22938
22938
  i3.seen = true;
22939
- const s = i3.elements?.find((o) => o.name === "w:fldChar");
22940
- if (s) {
22941
- const o = s.attributes["w:fldCharType"];
22942
- if (o === "begin")
22943
- n = true, t.push(i3);
22944
- else if (o === "end") {
22945
- n = false, t.push(i3);
22946
- const a = Sm$1(t);
22947
- e.push(...a), t = [];
22939
+ const s = i3.elements?.filter((o) => o.name === "w:fldChar") || [];
22940
+ if (s.length)
22941
+ if (s.length > 1) {
22942
+ const o = Po$2([i3]);
22943
+ e.push(...o);
22944
+ } else {
22945
+ const o = s[0].attributes["w:fldCharType"];
22946
+ if (o === "begin")
22947
+ n = true, t.push(i3);
22948
+ else if (o === "end") {
22949
+ n = false, t.push(i3);
22950
+ const a = Po$2(t);
22951
+ e.push(...a), t = [];
22952
+ }
22948
22953
  }
22949
- }
22950
22954
  n ? t.push(i3) : e.push(i3);
22951
22955
  }), e;
22952
22956
  }
22953
- const Sm$1 = (r22 = []) => {
22957
+ const Po$2 = (r22 = []) => {
22954
22958
  let e = [], t = false, n = false;
22955
22959
  const i3 = r22.findIndex(
22956
22960
  (h3) => h3.elements?.some((g) => g.name === "w:fldChar" && g.attributes["w:fldCharType"] === "separate")
@@ -22994,14 +22998,14 @@ Actual: ` + p3.attribValue
22994
22998
  const t = e[0], o = t.elements.find((c3) => c3.name === "w:sdtPr")?.elements.find((c3) => c3.name === "w:docPartObj")?.elements.find((c3) => c3.name === "w:docPartGallery")?.attributes["w:val"];
22995
22999
  if (!o)
22996
23000
  return { nodes: [], consumed: 0 };
22997
- if (!Po$2[o])
23001
+ if (!Oo$2[o])
22998
23002
  return { nodes: [], consumed: 0 };
22999
- const a = t?.elements.find((c3) => c3.name === "w:sdtContent"), u = Po$2[o];
23003
+ const a = t?.elements.find((c3) => c3.name === "w:sdtContent"), u = Oo$2[o];
23000
23004
  return {
23001
23005
  nodes: u({ ...r22, nodes: [a] }),
23002
23006
  consumed: 1
23003
23007
  };
23004
- }, Po$2 = {
23008
+ }, Oo$2 = {
23005
23009
  "Table of Contents": Tm$1
23006
23010
  }, Bm$1 = (r22) => {
23007
23011
  const { nodes: e, docx: t, nodeListHandler: n, insideTrackChange: i3 } = r22;
@@ -23065,7 +23069,7 @@ Actual: ` + p3.attribValue
23065
23069
  const i3 = e[0], { name: s } = i3, { attributes: o, elements: a, marks: u = [] } = Lt$2(i3);
23066
23070
  if (s === "w:sdt")
23067
23071
  return { nodes: [], consumed: 0 };
23068
- if (Zd$2(i3))
23072
+ if (em$1(i3))
23069
23073
  return {
23070
23074
  nodes: [{
23071
23075
  type: lr$2(i3),
@@ -23171,7 +23175,7 @@ Actual: ` + p3.attribValue
23171
23175
  docx: r22
23172
23176
  }), { attrs: D3 } = q[0], $3 = D3["w14:paraId"];
23173
23177
  return {
23174
- commentId: T3 || ya$2(),
23178
+ commentId: T3 || ba$2(),
23175
23179
  importedId: f3,
23176
23180
  creatorName: c3,
23177
23181
  creatorEmail: h3,
@@ -23206,7 +23210,7 @@ Actual: ` + p3.attribValue
23206
23210
  const { attributes: e } = r22, t = e["w15:paraId"], n = e["w15:done"] === "1", i3 = e["w15:paraIdParent"];
23207
23211
  return { paraId: t, isDone: n, paraIdParent: i3 };
23208
23212
  }, Km$1 = (r22, e, t) => {
23209
- const n = je$3(Ld$2(r22));
23213
+ const n = je$3(_d$2(r22));
23210
23214
  if (!n) return null;
23211
23215
  if (e?.telemetry) {
23212
23216
  const o = Object.keys(r22).map((a) => {
@@ -23263,17 +23267,17 @@ Actual: ` + p3.attribValue
23263
23267
  return null;
23264
23268
  }, xr$2 = () => {
23265
23269
  const r22 = [
23266
- om$1,
23267
- vm$1,
23268
- pm$1,
23269
- um$1,
23270
+ am$1,
23271
+ Cm$1,
23272
+ hm$1,
23273
+ lm$1,
23270
23274
  Lm$1,
23271
23275
  Nm$1,
23272
23276
  qm$1,
23273
- nm$1,
23274
- Gd$2,
23275
- tm$1,
23276
- qd$2,
23277
+ im$1,
23278
+ Wd$2,
23279
+ rm$1,
23280
+ Md$2,
23277
23281
  zm$1,
23278
23282
  Um$1,
23279
23283
  Hm$1,
@@ -23419,7 +23423,7 @@ Actual: ` + p3.attribValue
23419
23423
  });
23420
23424
  const s = [];
23421
23425
  return n.forEach((o) => {
23422
- const a = o.attributes["w:styleId"], u = Cm$1(a, r22), f3 = {
23426
+ const a = o.attributes["w:styleId"], u = Sm$1(a, r22), f3 = {
23423
23427
  id: o.attributes["w:styleId"],
23424
23428
  type: o.attributes["w:type"],
23425
23429
  definition: u,
@@ -23439,9 +23443,9 @@ Actual: ` + p3.attribValue
23439
23443
  }), e;
23440
23444
  }
23441
23445
  const Zm$1 = (r22, e, t) => {
23442
- const i3 = r22["word/_rels/document.xml.rels"].elements.find((g) => g.name === "Relationships"), { elements: s } = i3, o = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", a = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", u = s.filter((g) => g.attributes.Type === o), f3 = s.filter((g) => g.attributes.Type === a), h3 = (Au$2(r22["word/document.xml"]) || []).flatMap((g) => g.elements);
23446
+ const i3 = r22["word/_rels/document.xml.rels"].elements.find((g) => g.name === "Relationships"), { elements: s } = i3, o = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", a = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", u = s.filter((g) => g.attributes.Type === o), f3 = s.filter((g) => g.attributes.Type === a), h3 = (Du$2(r22["word/document.xml"]) || []).flatMap((g) => g.elements);
23443
23447
  u.forEach((g) => {
23444
- const { rId: S, referenceFile: T3, currentFileName: A } = Oo$2(g, r22), w = h3.find((C) => C.name === "w:headerReference" && C.attributes["r:id"] === S)?.attributes["w:type"], k = xr$2(), R = k.handler({
23448
+ const { rId: S, referenceFile: T3, currentFileName: A } = Lo$2(g, r22), w = h3.find((C) => C.name === "w:headerReference" && C.attributes["r:id"] === S)?.attributes["w:type"], k = xr$2(), R = k.handler({
23445
23449
  nodes: T3.elements[0].elements,
23446
23450
  nodeListHandler: k,
23447
23451
  docx: r22,
@@ -23451,7 +23455,7 @@ Actual: ` + p3.attribValue
23451
23455
  });
23452
23456
  e.headers[S] = { type: "doc", content: [...R] }, e.headerIds[w] = S;
23453
23457
  }), f3.forEach((g) => {
23454
- const { rId: S, referenceFile: T3, currentFileName: A } = Oo$2(g, r22), w = h3.find((C) => C.name === "w:footerReference" && C.attributes["r:id"] === S)?.attributes["w:type"], k = xr$2(), R = k.handler({
23458
+ const { rId: S, referenceFile: T3, currentFileName: A } = Lo$2(g, r22), w = h3.find((C) => C.name === "w:footerReference" && C.attributes["r:id"] === S)?.attributes["w:type"], k = xr$2(), R = k.handler({
23455
23459
  nodes: T3.elements[0].elements,
23456
23460
  nodeListHandler: k,
23457
23461
  docx: r22,
@@ -23461,11 +23465,11 @@ Actual: ` + p3.attribValue
23461
23465
  });
23462
23466
  e.footers[S] = { type: "doc", content: [...R] }, e.footerIds[w] = S;
23463
23467
  });
23464
- }, Au$2 = (r22, e = []) => {
23468
+ }, Du$2 = (r22, e = []) => {
23465
23469
  for (const t in r22)
23466
- r22[t] === "w:sectPr" ? e.push(r22) : typeof r22[t] == "object" && Au$2(r22[t], e);
23470
+ r22[t] === "w:sectPr" ? e.push(r22) : typeof r22[t] == "object" && Du$2(r22[t], e);
23467
23471
  return e;
23468
- }, Oo$2 = (r22, e) => {
23472
+ }, Lo$2 = (r22, e) => {
23469
23473
  const t = r22.attributes.Id, n = r22.attributes.Target, i3 = e[`word/${n}`];
23470
23474
  return {
23471
23475
  rId: t,
@@ -23475,7 +23479,7 @@ Actual: ` + p3.attribValue
23475
23479
  };
23476
23480
  function ep$2(r22) {
23477
23481
  let e = r22["word/numbering.xml"];
23478
- (!e || !e.elements?.length || !e.elements[0].elements?.length) && (e = tu$2);
23482
+ (!e || !e.elements?.length || !e.elements[0].elements?.length) && (e = ru$2);
23479
23483
  const t = e.elements[0].elements, n = t.filter((a) => a.name === "w:abstractNum"), i3 = t.filter((a) => a.name === "w:num"), s = {};
23480
23484
  n.forEach((a) => {
23481
23485
  const u = Number(a.attributes["w:abstractNumId"]);
@@ -23496,7 +23500,7 @@ Actual: ` + p3.attribValue
23496
23500
  const { elements: t = [] } = e.elements[0];
23497
23501
  return !!t.find((i3) => i3.name === "w:evenAndOddHeaders");
23498
23502
  };
23499
- var it$1, Du$2, Eu$2, vu$2, Cu$2;
23503
+ var it$1, Eu$2, vu$2, Cu$2, Su$2;
23500
23504
  const dt = class dt2 {
23501
23505
  constructor(e = null) {
23502
23506
  Nr$1(this, it$1);
@@ -23508,7 +23512,7 @@ Actual: ` + p3.attribValue
23508
23512
  }), this.initialJSON = this.convertedXml["word/document.xml"], this.initialJSON || (this.initialJSON = this.parseXmlToJson(this.xml)), this.declaration = this.initialJSON?.declaration;
23509
23513
  }
23510
23514
  parseXmlToJson(e) {
23511
- return JSON.parse(wa$2.xml2json(e, null, 2));
23515
+ return JSON.parse(ya$2.xml2json(e, null, 2));
23512
23516
  }
23513
23517
  static getStoredSuperdocVersion(e) {
23514
23518
  try {
@@ -23523,9 +23527,9 @@ Actual: ` + p3.attribValue
23523
23527
  return;
23524
23528
  }
23525
23529
  }
23526
- static updateDocumentVersion(e = this.convertedXml, t = "0.9.31") {
23530
+ static updateDocumentVersion(e = this.convertedXml, t = "0.9.32") {
23527
23531
  const n = "docProps/custom.xml";
23528
- e[n] || (e[n] = Su$2());
23532
+ e[n] || (e[n] = Tu$2());
23529
23533
  const i3 = e["docProps/custom.xml"];
23530
23534
  if (!i3) return;
23531
23535
  const s = i3.elements.find((a) => a.name === "Properties");
@@ -23534,7 +23538,7 @@ Actual: ` + p3.attribValue
23534
23538
  if (o)
23535
23539
  o.elements[0].elements[0].elements[0].text = t;
23536
23540
  else {
23537
- const a = Tu$2();
23541
+ const a = Fu$2();
23538
23542
  s.elements.push(a);
23539
23543
  }
23540
23544
  return e;
@@ -23558,7 +23562,7 @@ Actual: ` + p3.attribValue
23558
23562
  }
23559
23563
  getDocumentInternalId() {
23560
23564
  const e = "word/settings.xml";
23561
- this.convertedXml[e] || (this.convertedXml[e] = _f$2);
23565
+ this.convertedXml[e] || (this.convertedXml[e] = qf$2);
23562
23566
  const t = Object.assign({}, this.convertedXml[e]);
23563
23567
  if (!t.elements[0]?.elements?.length) {
23564
23568
  const i3 = this.createDocumentIdElement(t);
@@ -23571,7 +23575,7 @@ Actual: ` + p3.attribValue
23571
23575
  this.documentInternalId = n?.attributes["w15:val"];
23572
23576
  }
23573
23577
  createDocumentIdElement() {
23574
- const e = ya$2().toUpperCase();
23578
+ const e = ba$2().toUpperCase();
23575
23579
  return this.documentInternalId = e, {
23576
23580
  type: "element",
23577
23581
  name: "w15:docId",
@@ -23597,7 +23601,7 @@ Actual: ` + p3.attribValue
23597
23601
  return new Bo$2(this).schemaToXml(e, t);
23598
23602
  }
23599
23603
  async exportToDocx(e, t, n, i3 = false, s, o = []) {
23600
- const a = o.map((A) => Wf$2(A)), u = a.map((A, B) => Jf$2(A, B, a)), { result: f3, params: c3 } = this.exportToXmlJson({
23604
+ const a = o.map((A) => Jf$2(A)), u = a.map((A, B) => Kf$2(A, B, a)), { result: f3, params: c3 } = this.exportToXmlJson({
23601
23605
  data: e,
23602
23606
  editorSchema: t,
23603
23607
  comments: o,
@@ -23605,21 +23609,21 @@ Actual: ` + p3.attribValue
23605
23609
  commentsExportType: s,
23606
23610
  isFinalDoc: i3
23607
23611
  }), g = new Bo$2(this).schemaToXml(f3);
23608
- await Ke$1(this, it$1, Cu$2).call(this, {
23612
+ await Ke$1(this, it$1, Su$2).call(this, {
23609
23613
  ...n,
23610
23614
  ...c3.media,
23611
23615
  ...this.media
23612
23616
  });
23613
23617
  let S = { ...this.convertedXml }, T3 = [];
23614
23618
  if (o.length) {
23615
- const { documentXml: A, relationships: B } = Ke$1(this, it$1, Eu$2).call(this, {
23619
+ const { documentXml: A, relationships: B } = Ke$1(this, it$1, vu$2).call(this, {
23616
23620
  defs: c3.exportedCommentDefs,
23617
23621
  exportType: s,
23618
23622
  commentsWithParaIds: a
23619
23623
  });
23620
23624
  S = { ...A }, T3 = B;
23621
23625
  }
23622
- return this.convertedXml = { ...this.convertedXml, ...S }, Ke$1(this, it$1, vu$2).call(this, [...c3.relationships, ...T3]), rp$2(this.convertedXml), Ke$1(this, it$1, Du$2).call(this, c3), g;
23626
+ return this.convertedXml = { ...this.convertedXml, ...S }, Ke$1(this, it$1, Cu$2).call(this, [...c3.relationships, ...T3]), rp$2(this.convertedXml), Ke$1(this, it$1, Eu$2).call(this, c3), g;
23623
23627
  }
23624
23628
  exportToXmlJson({
23625
23629
  data: e,
@@ -23646,18 +23650,18 @@ Actual: ` + p3.attribValue
23646
23650
  return { result: u, params: f3 };
23647
23651
  }
23648
23652
  };
23649
- it$1 = /* @__PURE__ */ new WeakSet(), Du$2 = function(e) {
23653
+ it$1 = /* @__PURE__ */ new WeakSet(), Eu$2 = function(e) {
23650
23654
  const t = "word/numbering.xml";
23651
23655
  let n = this.convertedXml[t];
23652
23656
  const i3 = this.numbering;
23653
- n || (n = tu$2);
23657
+ n || (n = ru$2);
23654
23658
  const s = n.elements[0], o = Object.values(i3.abstracts).map((u) => u), a = Object.values(i3.definitions).map((u) => u);
23655
23659
  s.elements = [...o, ...a], this.convertedXml[t] = n;
23656
23660
  }, /**
23657
23661
  * Update comments files and relationships depending on export type
23658
23662
  */
23659
- Eu$2 = function({ defs: e, exportType: t, commentsWithParaIds: n }) {
23660
- const { documentXml: i3, relationships: s } = ed$2({
23663
+ vu$2 = function({ defs: e, exportType: t, commentsWithParaIds: n }) {
23664
+ const { documentXml: i3, relationships: s } = td$2({
23661
23665
  exportType: t,
23662
23666
  convertedXml: this.convertedXml,
23663
23667
  defs: e,
@@ -23665,19 +23669,19 @@ Actual: ` + p3.attribValue
23665
23669
  converter: this
23666
23670
  });
23667
23671
  return { documentXml: i3, relationships: s };
23668
- }, vu$2 = function(e = []) {
23672
+ }, Cu$2 = function(e = []) {
23669
23673
  const t = this.convertedXml["word/_rels/document.xml.rels"], n = t.elements.find((a) => a.name === "Relationships"), i3 = [], s = /rId|mi/g;
23670
23674
  let o = Math.max(...n.elements.map((a) => Number(a.attributes.Id.replace(s, ""))));
23671
23675
  e.forEach((a) => {
23672
23676
  const u = a.attributes.Id, f3 = n.elements.find((h3) => h3.attributes.Target === a.attributes.Target), c3 = a.attributes.Target?.startsWith("media/") && u.length > 6;
23673
23677
  f3 && !c3 || (a.attributes.Target = a.attributes?.Target?.replace(/&/g, "&amp;"), a.attributes.Id = u.length > 6 ? u : `rId${++o}`, i3.push(a));
23674
23678
  }), n.elements = [...n.elements, ...i3], this.convertedXml["word/_rels/document.xml.rels"] = t;
23675
- }, Cu$2 = async function(e) {
23679
+ }, Su$2 = async function(e) {
23676
23680
  const t = {};
23677
23681
  for (const n in e) {
23678
23682
  if (typeof e[n] != "string") return;
23679
23683
  const i3 = n.split("/").pop();
23680
- t[i3] = await kf$1(e[n]);
23684
+ t[i3] = await Nf$1(e[n]);
23681
23685
  }
23682
23686
  this.convertedXml.media = {
23683
23687
  ...this.convertedXml.media,
@@ -23731,7 +23735,7 @@ Actual: ` + p3.attribValue
23731
23735
  let Nt$4 = dt;
23732
23736
  function rp$2(r22) {
23733
23737
  const e = "docProps/custom.xml";
23734
- r22[e] || (r22[e] = Su$2());
23738
+ r22[e] || (r22[e] = Tu$2());
23735
23739
  const n = r22[e].elements.find((a) => a.name === "Properties");
23736
23740
  n.elements || (n.elements = []);
23737
23741
  const i3 = n.elements, s = i3.filter((a) => typeof a == "object" && a !== null).filter((a) => {
@@ -23743,12 +23747,12 @@ Actual: ` + p3.attribValue
23743
23747
  o = s.length ? Math.max(...i3.map((a) => a.attributes.pid)) + 1 : 2;
23744
23748
  } catch {
23745
23749
  }
23746
- return s.push(Tu$2(o)), n.elements = s, r22;
23750
+ return s.push(Fu$2(o)), n.elements = s, r22;
23747
23751
  }
23748
- function Su$2() {
23749
- return Lf$2;
23752
+ function Tu$2() {
23753
+ return _f$2;
23750
23754
  }
23751
- function Tu$2(r22 = 2, e = "0.9.31") {
23755
+ function Fu$2(r22 = 2, e = "0.9.32") {
23752
23756
  return {
23753
23757
  type: "element",
23754
23758
  name: "property",
@@ -26076,7 +26080,7 @@ Actual: ` + p3.attribValue
26076
26080
  });
26077
26081
  })(Ct$2);
26078
26082
  var Dt$2 = Ct$2.exports;
26079
- const Et$1 = /* @__PURE__ */ Lo$2(Dt$2);
26083
+ const Et$1 = /* @__PURE__ */ _o$2(Dt$2);
26080
26084
  let Nt$3 = class Nt {
26081
26085
  constructor(nt2 = {}) {
26082
26086
  this.debug = nt2.debug || false, this.zip = new Et$1(), this.files = [], this.media = {}, this.mediaFiles = {}, this.fonts = {};
@@ -27536,7 +27540,7 @@ Actual: ` + p3.attribValue
27536
27540
  }
27537
27541
  static create(e, n, r, o) {
27538
27542
  let i3 = o.nodeViews[n.type.name], s = i3 && i3(n, o, r);
27539
- return (!s || !s.dom) && (s = Oa$2.renderSpec(document, n.type.spec.toDOM(n, r), null, n.attrs)), new ln2(e, n, s.dom, s.contentDOM || s.dom, s);
27543
+ return (!s || !s.dom) && (s = La$2.renderSpec(document, n.type.spec.toDOM(n, r), null, n.attrs)), new ln2(e, n, s.dom, s.contentDOM || s.dom, s);
27540
27544
  }
27541
27545
  parseRule() {
27542
27546
  return this.dirty & it || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM };
@@ -27591,7 +27595,7 @@ Actual: ` + p3.attribValue
27591
27595
  d = document.createTextNode(n.text);
27592
27596
  else if (d.nodeType != 3)
27593
27597
  throw new RangeError("Text must be rendered as a DOM text node");
27594
- } else d || ({ dom: d, contentDOM: u } = Oa$2.renderSpec(document, n.type.spec.toDOM(n), null, n.attrs));
27598
+ } else d || ({ dom: d, contentDOM: u } = La$2.renderSpec(document, n.type.spec.toDOM(n), null, n.attrs));
27595
27599
  !u && !n.isText && d.nodeName != "BR" && (d.hasAttribute("contenteditable") || (d.contentEditable = "false"), n.type.spec.draggable && (d.draggable = true));
27596
27600
  let f3 = d;
27597
27601
  return d = yc$1(d, r, n), c3 ? l = new hp$1(e, n, r, o, d, u || null, f3, c3, i3, s + 1) : n.isText ? new Po$1(e, n, r, o, d, f3, i3) : new Ft2(e, n, r, o, d, u || null, f3, i3, s + 1);
@@ -28532,7 +28536,7 @@ Actual: ` + p3.attribValue
28532
28536
  let p3 = r.firstChild;
28533
28537
  n.push(p3.type.name, p3.attrs != p3.type.defaultAttrs ? p3.attrs : null), r = p3.content;
28534
28538
  }
28535
- let s = t.someProp("clipboardSerializer") || Oa$2.fromSchema(t.state.schema), a = Oc$1(), l = a.createElement("div");
28539
+ let s = t.someProp("clipboardSerializer") || La$2.fromSchema(t.state.schema), a = Oc$1(), l = a.createElement("div");
28536
28540
  l.appendChild(s.serializeFragment(r, { document: a }));
28537
28541
  let c3 = l.firstChild, d, u = 0;
28538
28542
  for (; c3 && c3.nodeType == 1 && (d = Ac$1[c3.nodeName.toLowerCase()]); ) {
@@ -28565,7 +28569,7 @@ Actual: ` + p3.attribValue
28565
28569
  if (u)
28566
28570
  a = u;
28567
28571
  else {
28568
- let f3 = o.marks(), { schema: p3 } = t.state, h3 = Oa$2.fromSchema(p3);
28572
+ let f3 = o.marks(), { schema: p3 } = t.state, h3 = La$2.fromSchema(p3);
28569
28573
  s = document.createElement("div"), e.split(/(?:\r\n?|\n)+/).forEach((m) => {
28570
28574
  let g = s.appendChild(document.createElement("p"));
28571
28575
  m && g.appendChild(h3.serializeNode(p3.text(m, f3)));
@@ -32305,7 +32309,7 @@ Actual: ` + p3.attribValue
32305
32309
  }
32306
32310
  };
32307
32311
  function yg(t, e) {
32308
- const n = Oa$2.fromSchema(e).serializeFragment(t), o = document.implementation.createHTMLDocument().createElement("div");
32312
+ const n = La$2.fromSchema(e).serializeFragment(t), o = document.implementation.createHTMLDocument().createElement("div");
32309
32313
  return o.appendChild(n), o.innerHTML;
32310
32314
  }
32311
32315
  const bg = (t, e = 500) => {
@@ -32333,7 +32337,7 @@ Actual: ` + p3.attribValue
32333
32337
  }
32334
32338
  }
32335
32339
  const vg = (t, e) => {
32336
- if (lm$1(e))
32340
+ if (cm$1(e))
32337
32341
  return e.exec(t);
32338
32342
  const n = e(t);
32339
32343
  if (!n)
@@ -32636,7 +32640,7 @@ Actual: ` + p3.attribValue
32636
32640
  return true;
32637
32641
  if (r.parent.content.size == 0 && (In$2(i3, "end") || Ge$1.isSelectable(i3)))
32638
32642
  for (let s = r.depth; ; s--) {
32639
- let a = wf$1(t.doc, r.before(s), r.after(s), oe$2.empty);
32643
+ let a = yf$1(t.doc, r.before(s), r.after(s), oe$2.empty);
32640
32644
  if (a && a.slice.size < a.to - a.from) {
32641
32645
  if (e) {
32642
32646
  let l = t.tr.step(a);
@@ -32695,7 +32699,7 @@ Actual: ` + p3.attribValue
32695
32699
  if (ud$1(t, o, e, 1))
32696
32700
  return true;
32697
32701
  if (r.parent.content.size == 0 && (In$2(i3, "start") || Ge$1.isSelectable(i3))) {
32698
- let s = wf$1(t.doc, r.before(), r.after(), oe$2.empty);
32702
+ let s = yf$1(t.doc, r.before(), r.after(), oe$2.empty);
32699
32703
  if (s && s.slice.size < s.to - s.from) {
32700
32704
  if (e) {
32701
32705
  let a = t.tr.step(s);
@@ -33006,7 +33010,7 @@ Actual: ` + p3.attribValue
33006
33010
  return jg(r, n, l);
33007
33011
  };
33008
33012
  function $i$1(t, e, n = {}) {
33009
- return t.find((r) => r.type === e && cm$1(r.attrs, n));
33013
+ return t.find((r) => r.type === e && fm$1(r.attrs, n));
33010
33014
  }
33011
33015
  function Ug(t, e, n = {}) {
33012
33016
  return !!$i$1(t, e, n);
@@ -33045,7 +33049,7 @@ Actual: ` + p3.attribValue
33045
33049
  function Co$1(t, e, n = {}) {
33046
33050
  const { empty: r, ranges: o } = t.selection, i3 = e ? xt$1(e, t.schema) : null;
33047
33051
  if (r)
33048
- return !!(t.storedMarks || t.selection.$from.marks()).filter((u) => i3 ? i3.name === u.type.name : true).find((u) => cm$1(u.attrs, n, { strict: false }));
33052
+ return !!(t.storedMarks || t.selection.$from.marks()).filter((u) => i3 ? i3.name === u.type.name : true).find((u) => fm$1(u.attrs, n, { strict: false }));
33049
33053
  let s = 0;
33050
33054
  const a = [];
33051
33055
  if (o.forEach(({ $from: u, $to: f3 }) => {
@@ -33062,7 +33066,7 @@ Actual: ` + p3.attribValue
33062
33066
  );
33063
33067
  });
33064
33068
  }), s === 0) return false;
33065
- const l = a.filter((u) => i3 ? i3.name === u.mark.type.name : true).filter((u) => cm$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);
33069
+ const l = a.filter((u) => i3 ? i3.name === u.mark.type.name : true).filter((u) => fm$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);
33066
33070
  return (l > 0 ? l + c3 : l) >= s;
33067
33071
  }
33068
33072
  const Xg = (t, e = {}, n = {}) => ({ state: r, commands: o }) => {
@@ -33098,7 +33102,7 @@ Actual: ` + p3.attribValue
33098
33102
  to: h3
33099
33103
  });
33100
33104
  });
33101
- const l = o - r, c3 = a.filter((u) => s ? s.name === u.node.type.name : true).filter((u) => cm$1(u.node.attrs, n, { strict: false }));
33105
+ const l = o - r, c3 = a.filter((u) => s ? s.name === u.node.type.name : true).filter((u) => fm$1(u.node.attrs, n, { strict: false }));
33102
33106
  return i3 ? !!c3.length : c3.reduce((u, f3) => u + f3.to - f3.from, 0) >= l;
33103
33107
  }
33104
33108
  const Gg = (t, e, n = {}) => ({ state: r, commands: o }) => {
@@ -33287,7 +33291,7 @@ Actual: ` + p3.attribValue
33287
33291
  if (e.$from.index(e.depth - 1) == 0)
33288
33292
  return false;
33289
33293
  let l = s.resolve(e.start - 2);
33290
- i3 = new Pc$2(l, l, e.depth), e.endIndex < e.parent.childCount && (e = new Pc$2(e.$from, s.resolve(e.$to.end(e.depth)), e.depth)), o = true;
33294
+ i3 = new Oc$2(l, l, e.depth), e.endIndex < e.parent.childCount && (e = new Oc$2(e.$from, s.resolve(e.$to.end(e.depth)), e.depth)), o = true;
33291
33295
  }
33292
33296
  let a = lp$2(i3, n, r, e);
33293
33297
  return a ? (t && yy(t, e, a, o, n), true) : false;
@@ -33313,7 +33317,7 @@ Actual: ` + p3.attribValue
33313
33317
  }
33314
33318
  function wy(t, e, n, r) {
33315
33319
  let o = t.tr, i3 = r.end, s = r.$to.end(r.depth);
33316
- i3 < s && (o.step(new Je$3(i3 - 1, s, i3, s, new oe$2(Z.from(n.create(null, r.parent.copy())), 1, 0), 1, true)), r = new Pc$2(o.doc.resolve(r.$from.pos), o.doc.resolve(s), r.depth));
33320
+ i3 < s && (o.step(new Je$3(i3 - 1, s, i3, s, new oe$2(Z.from(n.create(null, r.parent.copy())), 1, 0), 1, true)), r = new Oc$2(o.doc.resolve(r.$from.pos), o.doc.resolve(s), r.depth));
33317
33321
  const a = up$2(r);
33318
33322
  if (a == null)
33319
33323
  return false;
@@ -34810,7 +34814,7 @@ Actual: ` + p3.attribValue
34810
34814
  markName: yr$2,
34811
34815
  attrs: { authorEmail: r.email }
34812
34816
  }), s;
34813
- i3 ? s = i3.mark.attrs.id : s = ya$2();
34817
+ i3 ? s = i3.mark.attrs.id : s = ba$2();
34814
34818
  const a = t.doc.type.schema.marks[yr$2].create({
34815
34819
  id: s,
34816
34820
  author: r.name,
@@ -34831,7 +34835,7 @@ Actual: ` + p3.attribValue
34831
34835
  markName: Ii$2,
34832
34836
  attrs: { authorEmail: r.email }
34833
34837
  }), s;
34834
- i3 ? s = i3.mark.attrs.id : s = ya$2();
34838
+ i3 ? s = i3.mark.attrs.id : s = ba$2();
34835
34839
  const a = t.doc.type.schema.marks[Ii$2].create({
34836
34840
  id: s,
34837
34841
  author: r.name,
@@ -34969,7 +34973,7 @@ Actual: ` + p3.attribValue
34969
34973
  findParentNodeClosestToPos: Bo$1,
34970
34974
  generateDocxListAttributes: zy,
34971
34975
  generateDocxRandomId: Ni$2,
34972
- generateRandom32BitHex: eu$2,
34976
+ generateRandom32BitHex: tu$2,
34973
34977
  getActiveFormatting: Ef$1,
34974
34978
  getExtensionConfigField: N,
34975
34979
  getMarkRange: Ps,
@@ -35711,11 +35715,11 @@ Actual: ` + p3.attribValue
35711
35715
  return;
35712
35716
  if (c3.marks.find((h3) => h3.type.name === Ii$2))
35713
35717
  return false;
35714
- const u = c3.marks.find((h3) => [Ii$2, Ri$2].includes(h3.type.name)), f3 = u ? u.attrs.id : ya$2();
35718
+ const u = c3.marks.find((h3) => [Ii$2, Ri$2].includes(h3.type.name)), f3 = u ? u.attrs.id : ba$2();
35715
35719
  if (r.addMark(Math.max(n.from, d), Math.min(n.to, d + c3.nodeSize), n.mark), ["bold", "italic", "strike", "underline", "textStyle"].includes(n.mark.type.name) && !c3.marks.find((h3) => h3.type === n.mark.type)) {
35716
35720
  const h3 = c3.marks.find((b) => b.type.name === Ri$2);
35717
35721
  let m = [], g = [];
35718
- if (h3 ? h3.attrs.before.find((w) => w.type === "textStyle" ? w.type === n.mark.type.name && cm$1(w.attrs, n.mark.attrs) : w.type === n.mark.type.name) ? (g = [...h3.attrs.before.filter((w) => w.type !== n.mark.type.name)], m = [...h3.attrs.after]) : (g = [...h3.attrs.before], m = [
35722
+ if (h3 ? h3.attrs.before.find((w) => w.type === "textStyle" ? w.type === n.mark.type.name && fm$1(w.attrs, n.mark.attrs) : w.type === n.mark.type.name) ? (g = [...h3.attrs.before.filter((w) => w.type !== n.mark.type.name)], m = [...h3.attrs.after]) : (g = [...h3.attrs.before], m = [
35719
35723
  ...h3.attrs.after,
35720
35724
  {
35721
35725
  type: n.mark.type.name,
@@ -35771,7 +35775,7 @@ Actual: ` + p3.attribValue
35771
35775
  }
35772
35776
  ]), p3.length || h3.length) {
35773
35777
  const m = t.schema.marks[Ri$2].create({
35774
- id: ya$2(),
35778
+ id: ba$2(),
35775
35779
  author: s.name,
35776
35780
  authorEmail: s.email,
35777
35781
  date: a,
@@ -36150,7 +36154,7 @@ Actual: ` + p3.attribValue
36150
36154
  * Get HTML string of the document
36151
36155
  */
36152
36156
  getHTML() {
36153
- const n = document.createElement("div"), r = Oa$2.fromSchema(this.schema).serializeFragment(this.state.doc.content);
36157
+ const n = document.createElement("div"), r = La$2.fromSchema(this.schema).serializeFragment(this.state.doc.content);
36154
36158
  return n.appendChild(r), n.innerHTML;
36155
36159
  }
36156
36160
  /**
@@ -36228,7 +36232,7 @@ Actual: ` + p3.attribValue
36228
36232
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
36229
36233
  */
36230
36234
  processCollaborationMigrations() {
36231
- if (console.debug("[checkVersionMigrations] Current editor version", "0.9.31"), !this.options.ydoc) return;
36235
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.9.32"), !this.options.ydoc) return;
36232
36236
  let r = this.options.ydoc.getMap("meta").get("version");
36233
36237
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
36234
36238
  const o = Qa$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
@@ -37969,11 +37973,11 @@ Actual: ` + p3.attribValue
37969
37973
  if (!t?.definition?.styles) return "";
37970
37974
  const r = {};
37971
37975
  return Object.entries(t.definition.styles).forEach(([o, i3]) => {
37972
- const s = Xa$2(o), a = [];
37976
+ const s = Ya$2(o), a = [];
37973
37977
  if (e?.marks?.forEach((c3) => {
37974
37978
  if (c3.type.name === "textStyle") {
37975
37979
  Object.entries(c3.attrs).forEach(([d, u]) => {
37976
- const f3 = Xa$2(d);
37980
+ const f3 = Ya$2(d);
37977
37981
  u && a.push({ key: f3, value: u });
37978
37982
  });
37979
37983
  return;
@@ -38785,7 +38789,7 @@ Actual: ` + p3.attribValue
38785
38789
  if (!u)
38786
38790
  throw RangeError(`No cell with offset ${d} found`);
38787
38791
  const f3 = i3 + d + 1;
38788
- return new Cf$1(
38792
+ return new Sf$1(
38789
38793
  a.resolve(f3),
38790
38794
  a.resolve(f3 + u.content.size)
38791
38795
  );
@@ -39562,7 +39566,7 @@ Actual: ` + p3.attribValue
39562
39566
  }
39563
39567
  function is$1(t, e) {
39564
39568
  const n = t.createAndFill();
39565
- return new vf$1(n).replace(0, n.content.size, e).doc;
39569
+ return new Cf$1(n).replace(0, n.content.size, e).doc;
39566
39570
  }
39567
39571
  function V0({ width: t, height: e, rows: n }, r, o) {
39568
39572
  if (t != r) {
@@ -51888,7 +51892,7 @@ ${t}
51888
51892
  }, l.prototype.off = l.prototype.removeListener, l.prototype.addListener = l.prototype.on, l.prefixed = o, l.EventEmitter = l, t.exports = l;
51889
51893
  })(Ke);
51890
51894
  var Ht = Ke.exports;
51891
- const Rt = /* @__PURE__ */ Lo$2(Ht);
51895
+ const Rt = /* @__PURE__ */ _o$2(Ht);
51892
51896
  function Ot(t) {
51893
51897
  let s = t;
51894
51898
  for (; s; ) {
@@ -51914,7 +51918,7 @@ ${t}
51914
51918
  throw new Error("Toolbar button item needs either icon or label - " + t.name);
51915
51919
  if (!t.name)
51916
51920
  throw new Error("Invalid toolbar item name - " + t.name);
51917
- const o = ref(ya$2()), n = t.type, e = ref(t.name), i3 = t.command, c3 = ref(t.icon), l = ref(t.group || "center"), a = ref(t.allowWithoutEditor), d = ref(t.attributes || {}), u = t.disabled || false, r = ref(t.disabled), b = ref(false), h3 = ref(false), y = ref(t.style), w = ref(t.isNarrow), v = ref(t.isWide), M = ref(t.minWidth), D3 = ref(t.suppressActiveHighlight || false), p3 = ref(t.argument), _ = ref(null), T3 = ref(null), B = ref(t.iconColor), N3 = ref(t.hasCaret), Q3 = ref(t.tooltip), he2 = ref(t.tooltipVisible), ae2 = ref(t.tooltipTimeout), re2 = ref(t.defaultLabel), se = ref(t.label), S = ref(t.hideLabel), I3 = ref(t.inlineTextInputVisible), H3 = ref(t.hasInlineTextInput), R = ref(t.markName), V = ref(t.labelAttr), q = ref([]);
51921
+ const o = ref(ba$2()), n = t.type, e = ref(t.name), i3 = t.command, c3 = ref(t.icon), l = ref(t.group || "center"), a = ref(t.allowWithoutEditor), d = ref(t.attributes || {}), u = t.disabled || false, r = ref(t.disabled), b = ref(false), h3 = ref(false), y = ref(t.style), w = ref(t.isNarrow), v = ref(t.isWide), M = ref(t.minWidth), D3 = ref(t.suppressActiveHighlight || false), p3 = ref(t.argument), _ = ref(null), T3 = ref(null), B = ref(t.iconColor), N3 = ref(t.hasCaret), Q3 = ref(t.tooltip), he2 = ref(t.tooltipVisible), ae2 = ref(t.tooltipTimeout), re2 = ref(t.defaultLabel), se = ref(t.label), S = ref(t.hideLabel), I3 = ref(t.inlineTextInputVisible), H3 = ref(t.hasInlineTextInput), R = ref(t.markName), V = ref(t.labelAttr), q = ref([]);
51918
51922
  if (t.options) {
51919
51923
  if (!Array.isArray(t.options)) throw new Error("Invalid toolbar item options - " + t.options);
51920
51924
  q.value.push(...t.options);
@@ -68538,7 +68542,7 @@ ${style2}
68538
68542
  this.config.colors = shuffleArray(this.config.colors);
68539
68543
  this.userColorMap = /* @__PURE__ */ new Map();
68540
68544
  this.colorIndex = 0;
68541
- this.version = "0.9.31";
68545
+ this.version = "0.9.32";
68542
68546
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
68543
68547
  this.superdocId = config.superdocId || v4();
68544
68548
  this.colors = this.config.colors;