@harbour-enterprises/superdoc 0.12.8 → 0.12.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/chunks/{index-CWj8iOm4.es.js → index-BTkgQgI7.es.js} +1 -1
  2. package/dist/chunks/{index-Dw-Q9hD6.cjs → index-C6SLw2ph.cjs} +1 -1
  3. package/dist/chunks/{index-Dnm6LcB6.cjs → index-CbUTRvRk.cjs} +1 -1
  4. package/dist/chunks/{index-CVyuWad2.es.js → index-kWwSELc2.es.js} +2 -2
  5. package/dist/chunks/{super-editor.es--CTmtQpG.es.js → super-editor.es-BI8I7zQw.es.js} +1988 -2008
  6. package/dist/chunks/{super-editor.es-CqRnQGQ9.cjs → super-editor.es-DIWme65_.cjs} +41 -41
  7. package/dist/chunks/{url-NtSPOzqh.es.js → url-C29KYeaj.es.js} +1 -1
  8. package/dist/chunks/{url-BV2RvrTf.cjs → url-DRGmEUtI.cjs} +1 -1
  9. package/dist/chunks/xml-js-CMQ3QRee.cjs +10 -0
  10. package/dist/chunks/{xml-js-BvgqUvJ5.es.js → xml-js-CgHhGhcJ.es.js} +296 -303
  11. package/dist/super-editor/ai-writer.es.js +2 -2
  12. package/dist/super-editor/chunks/{converter-BvoZ3wK4.js → converter-DwU26GOB.js} +269 -289
  13. package/dist/super-editor/chunks/{docx-zipper-BEuRmHhJ.js → docx-zipper-B8X1Ex3_.js} +1 -1
  14. package/dist/super-editor/chunks/{editor-eAstY5lu.js → editor-4XloIer6.js} +3 -3
  15. package/dist/super-editor/chunks/{toolbar-c6F_mTvN.js → toolbar-CjFzVIKb.js} +2 -2
  16. package/dist/super-editor/converter.es.js +1 -1
  17. package/dist/super-editor/docx-zipper.es.js +2 -2
  18. package/dist/super-editor/editor.es.js +3 -3
  19. package/dist/super-editor/file-zipper.es.js +1 -1
  20. package/dist/super-editor/super-editor.es.js +6 -6
  21. package/dist/super-editor/toolbar.es.js +2 -2
  22. package/dist/super-editor.cjs +1 -1
  23. package/dist/super-editor.es.js +1 -1
  24. package/dist/superdoc.cjs +3 -3
  25. package/dist/superdoc.es.js +6 -6
  26. package/dist/superdoc.umd.js +378 -398
  27. package/dist/superdoc.umd.js.map +1 -1
  28. package/package.json +1 -1
  29. package/dist/chunks/xml-js-CCvZbbr7.cjs +0 -10
@@ -15231,7 +15231,7 @@ Actual: ` + p3.attribValue
15231
15231
  return this.excluded.indexOf(e) > -1;
15232
15232
  }
15233
15233
  };
15234
- let _p$1 = class _p {
15234
+ let Lp$1 = class Lp {
15235
15235
  /**
15236
15236
  Construct a schema from a schema [specification](https://prosemirror.net/docs/ref/#model.SchemaSpec).
15237
15237
  */
@@ -16694,7 +16694,7 @@ Actual: ` + p3.attribValue
16694
16694
  function cf$2(r22, e, t) {
16695
16695
  return (e == 0 || r22.canReplace(e, r22.childCount)) && (t == r22.childCount || r22.canReplace(0, t));
16696
16696
  }
16697
- function Mp$1(r22) {
16697
+ function qp$1(r22) {
16698
16698
  let t = r22.parent.content.cutByIndex(r22.startIndex, r22.endIndex);
16699
16699
  for (let n = r22.depth; ; --n) {
16700
16700
  let i3 = r22.$from.node(n), s = r22.$from.index(n), o = r22.$to.indexAfter(n);
@@ -16714,7 +16714,7 @@ Actual: ` + p3.attribValue
16714
16714
  C || i3.after(A + 1) < i3.end(A) ? (C = true, g = Q$1.from(i3.node(A).copy(g)), D3++) : c3++;
16715
16715
  r22.step(new Xe$1(u, c3, o, a, new ae$3(l.append(g), h3, D3), l.size - h3, true));
16716
16716
  }
16717
- function Up$1(r22, e, t = null, n = r22) {
16717
+ function Mp$1(r22, e, t = null, n = r22) {
16718
16718
  let i3 = df$2(r22, e), s = i3 && mf$2(n, e);
16719
16719
  return s ? i3.map(wo$3).concat({ type: e, attrs: t }).concat(s.map(wo$3)) : null;
16720
16720
  }
@@ -16804,7 +16804,7 @@ Actual: ` + p3.attribValue
16804
16804
  throw new RangeError("Invalid content for node type " + t.name);
16805
16805
  r22.step(new Xe$1(e, e + s.nodeSize, e + 1, e + s.nodeSize - 1, new ae$3(Q$1.from(o), 0, 0), 1, true));
16806
16806
  }
16807
- function jp$1(r22, e, t = 1, n) {
16807
+ function Up$1(r22, e, t = 1, n) {
16808
16808
  let i3 = r22.resolve(e), s = i3.depth - t, o = n && n[n.length - 1] || i3.parent;
16809
16809
  if (s < 0 || i3.parent.type.spec.isolating || !i3.parent.canReplace(i3.index(), i3.parent.childCount) || !o.type.validContent(i3.parent.content.cutByIndex(i3.index(), i3.parent.childCount)))
16810
16810
  return false;
@@ -16830,7 +16830,7 @@ Actual: ` + p3.attribValue
16830
16830
  }
16831
16831
  r22.step(new Ie$2(e, e, new ae$3(s.append(o), t, t), true));
16832
16832
  }
16833
- function Hp$1(r22, e) {
16833
+ function jp$1(r22, e) {
16834
16834
  let t = r22.resolve(e), n = t.index();
16835
16835
  return Ga$2(t.nodeBefore, t.nodeAfter) && t.parent.canReplace(n, n + 1);
16836
16836
  }
@@ -16847,7 +16847,7 @@ Actual: ` + p3.attribValue
16847
16847
  function Ga$2(r22, e) {
16848
16848
  return !!(r22 && e && !r22.isLeaf && bf$2(r22, e));
16849
16849
  }
16850
- function zp$1(r22, e, t = -1) {
16850
+ function Hp$1(r22, e, t = -1) {
16851
16851
  let n = r22.resolve(e);
16852
16852
  for (let i3 = n.depth; ; i3--) {
16853
16853
  let s, o, a = n.index(i3);
@@ -16899,7 +16899,7 @@ Actual: ` + p3.attribValue
16899
16899
  }
16900
16900
  return null;
16901
16901
  }
16902
- function Vp$1(r22, e, t) {
16902
+ function zp$1(r22, e, t) {
16903
16903
  let n = r22.resolve(e);
16904
16904
  if (!t.content.size)
16905
16905
  return e;
@@ -18274,7 +18274,7 @@ Actual: ` + p3.attribValue
18274
18274
  }
18275
18275
  return t;
18276
18276
  }
18277
- let Gp$1 = class Gp {
18277
+ let Vp$1 = class Vp {
18278
18278
  /**
18279
18279
  Create a plugin.
18280
18280
  */
@@ -18292,7 +18292,7 @@ Actual: ` + p3.attribValue
18292
18292
  function Ya$2(r22) {
18293
18293
  return r22 in oi ? r22 + "$" + ++oi[r22] : (oi[r22] = 0, r22 + "$");
18294
18294
  }
18295
- let Wp$1 = class Wp {
18295
+ let Gp$1 = class Gp {
18296
18296
  /**
18297
18297
  Create a plugin key.
18298
18298
  */
@@ -18313,7 +18313,7 @@ Actual: ` + p3.attribValue
18313
18313
  return e[this.key];
18314
18314
  }
18315
18315
  };
18316
- const Za$2 = (r22) => r22.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), Jp$1 = (r22) => Za$2(r22), $p$1 = Object.freeze({
18316
+ const Za$2 = (r22) => r22.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), Wp$1 = (r22) => Za$2(r22), Jp$1 = Object.freeze({
18317
18317
  RESOLVED: "resolved",
18318
18318
  NEW: "new",
18319
18319
  ADD: "add",
@@ -18326,7 +18326,7 @@ Actual: ` + p3.attribValue
18326
18326
  // Tracked changes
18327
18327
  CHANGE_ACCEPTED: "change-accepted",
18328
18328
  CHANGE_REJECTED: "change-rejected"
18329
- }), Kp$1 = {
18329
+ }), $p$1 = {
18330
18330
  mounted(r22, e, t) {
18331
18331
  const n = (i3) => {
18332
18332
  r22.contains(i3.target) || e.value(i3);
@@ -18337,20 +18337,20 @@ Actual: ` + p3.attribValue
18337
18337
  document.removeEventListener("click", r22.__clickOutsideHandler), delete r22.__clickOutsideHandler;
18338
18338
  }
18339
18339
  };
18340
- function Xp$1(r22, e = null, ...t) {
18340
+ function Kp$1(r22, e = null, ...t) {
18341
18341
  return typeof r22 == "function" ? e ? r22.bind(e)(...t) : r22(...t) : r22;
18342
18342
  }
18343
- function Yp$1(r22 = {}) {
18343
+ function Xp$1(r22 = {}) {
18344
18344
  return Object.keys(r22).length === 0 && r22.constructor === Object;
18345
18345
  }
18346
- const Zp$1 = () => typeof navigator < "u" ? /Mac/.test(navigator.platform) : false, Qp$1 = () => ["iPad Simulator", "iPhone Simulator", "iPod Simulator", "iPad", "iPhone", "iPod"].includes(
18346
+ const Yp$1 = () => typeof navigator < "u" ? /Mac/.test(navigator.platform) : false, Zp$1 = () => ["iPad Simulator", "iPhone Simulator", "iPod Simulator", "iPad", "iPhone", "iPod"].includes(
18347
18347
  navigator.platform
18348
18348
  ), Pf$2 = (r22) => Object.prototype.toString.call(r22) === "[object RegExp]";
18349
18349
  function Of$2(r22, e, t = { strict: true }) {
18350
18350
  const n = Object.keys(e);
18351
18351
  return n.length ? n.every((i3) => t.strict ? e[i3] === r22[i3] : Pf$2(e[i3]) ? e[i3].test(r22[i3]) : e[i3] === r22[i3]) : true;
18352
18352
  }
18353
- function eh$2(r22, e) {
18353
+ function Qp$1(r22, e) {
18354
18354
  const n = typeof e == "string" ? [e] : e;
18355
18355
  return Object.keys(r22).reduce((i3, s) => (n.includes(s) || (i3[s] = r22[s]), i3), {});
18356
18356
  }
@@ -18359,7 +18359,7 @@ Actual: ` + p3.attribValue
18359
18359
  const e = r22.toString() || "0", t = Number.parseFloat(e), i3 = (e.match(Lf$2)?.[1] ?? "").toLowerCase();
18360
18360
  return [t, _f$2.includes(i3) ? i3 : null];
18361
18361
  }
18362
- function th$2(r22 = 0, e = 0, t = 0) {
18362
+ function eh$2(r22 = 0, e = 0, t = 0) {
18363
18363
  return Math.min(Math.max(r22, e), t);
18364
18364
  }
18365
18365
  function It$2(r22) {
@@ -18435,7 +18435,7 @@ Actual: ` + p3.attribValue
18435
18435
  }
18436
18436
  const i3 = St$2.from(n, "base64");
18437
18437
  return i3.buffer.slice(i3.byteOffset, i3.byteOffset + i3.byteLength);
18438
- }, rh$2 = (r22) => {
18438
+ }, th$2 = (r22) => {
18439
18439
  const n = new window.DOMParser().parseFromString(r22, "text/xml").querySelectorAll("Default");
18440
18440
  return Array.from(n).map((i3) => i3.getAttribute("Extension"));
18441
18441
  }, Hf$1 = (r22) => (/* @__PURE__ */ new Map([
@@ -18471,7 +18471,7 @@ Actual: ` + p3.attribValue
18471
18471
  const Vf$1 = (r22) => {
18472
18472
  const e = Number(r22).toString(16);
18473
18473
  return e.length === 1 ? "0" + e : e;
18474
- }, Gf$1 = (r22) => "#" + r22.match(/\d+/g).map(Vf$1).join(""), nh$2 = (r22, e, t = "", n = false) => {
18474
+ }, Gf$1 = (r22) => "#" + r22.match(/\d+/g).map(Vf$1).join(""), rh$2 = (r22, e, t = "", n = false) => {
18475
18475
  let [i3, s] = qf$1(r22);
18476
18476
  return Number.isNaN(i3) || i3 === 0 ? {} : t === "atLeast" && i3 < 1 ? {} : (s = s || e, i3 += s ? 4 : 0.2, n ? { "line-height": `${i3}${s}` } : `line-height: ${i3}${s}`);
18477
18477
  }, Wf$1 = (r22, e) => {
@@ -21135,25 +21135,25 @@ Actual: ` + p3.attribValue
21135
21135
  doc: xd$2,
21136
21136
  body: yd$2,
21137
21137
  paragraph: su$2,
21138
- text: vd$2,
21138
+ text: Ad$2,
21139
21139
  bulletList: Fo$3,
21140
21140
  orderedList: Fo$3,
21141
- lineBreak: kd$2,
21142
- table: Nd$2,
21143
- tableRow: _d$2,
21144
- tableCell: Md$2,
21145
- bookmarkStart: Hd$2,
21146
- fieldAnnotation: Kd$2,
21147
- tab: Rd$2,
21141
+ lineBreak: Bd$2,
21142
+ table: kd$2,
21143
+ tableRow: Ld$2,
21144
+ tableCell: qd$2,
21145
+ bookmarkStart: jd$2,
21146
+ fieldAnnotation: $d$2,
21147
+ tab: Id$2,
21148
21148
  image: lu$2,
21149
- hardBreak: Xd$2,
21149
+ hardBreak: Kd$2,
21150
21150
  commentRangeStart: () => So$3(r22, "Start"),
21151
21151
  commentRangeEnd: () => So$3(r22, "End"),
21152
21152
  commentReference: () => null,
21153
- shapeContainer: Yd$2,
21154
- shapeTextbox: Zd$2,
21155
- contentBlock: Qd$2,
21156
- structuredContent: rm$1
21153
+ shapeContainer: Xd$2,
21154
+ shapeTextbox: Yd$2,
21155
+ contentBlock: Zd$2,
21156
+ structuredContent: tm$1
21157
21157
  };
21158
21158
  return t[e] ? t[e](r22) : (console.error("No translation function found for node type:", e), null);
21159
21159
  }
@@ -21277,29 +21277,9 @@ Actual: ` + p3.attribValue
21277
21277
  const t = [];
21278
21278
  return e.forEach((n) => {
21279
21279
  let i3 = qt$2({ ...r22, node: n });
21280
- (i3?.name || i3?.type) !== "w:sdt" && (i3 = Ad$2(i3)), i3 instanceof Array ? t.push(...i3) : t.push(i3);
21280
+ i3?.name || i3?.type, i3 instanceof Array ? t.push(...i3) : t.push(i3);
21281
21281
  }), t.filter((n) => n);
21282
21282
  }
21283
- const Ad$2 = (r22) => {
21284
- if (!r22) return r22;
21285
- const e = r22.elements?.some((a) => a.name === "w:r"), t = r22.elements?.some((a) => a.name === "w:sdt");
21286
- if (!r22.elements?.find((a) => a.name === "w:sdt")?.elements?.find((a) => a.name === "w:sdtPr")?.elements?.some((a) => a.name === "w:alias")) return r22;
21287
- let o = r22;
21288
- if (e && t) {
21289
- const a = r22.elements.filter((l) => l.name === "w:sdt"), u = r22.elements.filter((l) => l.name !== "w:sdt");
21290
- o = [
21291
- ...u.filter((l) => l.name === "w:r").every((l) => l.elements.filter((g) => g.name === "w:t")?.every((g) => g.elements[0].text.trim().length > 0)) ? [{
21292
- ...r22,
21293
- elements: u
21294
- }] : [],
21295
- {
21296
- name: "w:p",
21297
- elements: a
21298
- }
21299
- ];
21300
- }
21301
- return o;
21302
- };
21303
21283
  function Br$2(r22, e, t) {
21304
21284
  const i3 = /^\s|\s$/.test(r22) ? "preserve" : null, s = i3 ? { "xml:space": i3 } : null, o = [], a = kr$1(e);
21305
21285
  if (o.push({
@@ -21335,14 +21315,14 @@ Actual: ` + p3.attribValue
21335
21315
  }
21336
21316
  return Zt$3(o, a);
21337
21317
  }
21338
- function vd$2(r22) {
21318
+ function Ad$2(r22) {
21339
21319
  const { node: e } = r22, t = [xr$2, Pi$2];
21340
- if (e.marks?.some((a) => t.includes(a.type))) return Ed$2(r22);
21341
- if (e.marks?.some((a) => a.type === "link")) return Cd$2(r22);
21320
+ if (e.marks?.some((a) => t.includes(a.type))) return Dd$2(r22);
21321
+ if (e.marks?.some((a) => a.type === "link")) return Ed$2(r22);
21342
21322
  const { text: s, marks: o = [] } = e;
21343
21323
  return Br$2(s, o, r22);
21344
21324
  }
21345
- function Dd$2(r22) {
21325
+ function vd$2(r22) {
21346
21326
  const e = r22.find((t) => t.type === Oi$2);
21347
21327
  if (e)
21348
21328
  return {
@@ -21357,8 +21337,8 @@ Actual: ` + p3.attribValue
21357
21337
  elements: e.attrs.before.map((n) => kr$1([n])).filter((n) => n !== void 0)
21358
21338
  };
21359
21339
  }
21360
- function Ed$2(r22) {
21361
- const { node: e } = r22, t = e.marks, n = [xr$2, Pi$2, Oi$2], i3 = t.find((c3) => n.includes(c3.type)), s = i3.type === xr$2, o = Dd$2(t);
21340
+ function Dd$2(r22) {
21341
+ const { node: e } = r22, t = e.marks, n = [xr$2, Pi$2, Oi$2], i3 = t.find((c3) => n.includes(c3.type)), s = i3.type === xr$2, o = vd$2(t);
21362
21342
  e.marks = t.filter((c3) => !n.includes(c3.type)), o && e.marks.push(o);
21363
21343
  const a = qt$2({ ...r22, node: e });
21364
21344
  if (!s) {
@@ -21396,7 +21376,7 @@ Actual: ` + p3.attribValue
21396
21376
  return Bo$2(i3);
21397
21377
  }) : Bo$2(e));
21398
21378
  }
21399
- function Cd$2(r22) {
21379
+ function Ed$2(r22) {
21400
21380
  const { node: e } = r22, t = e.marks.find((u) => u.type === "link"), n = t.attrs.href;
21401
21381
  let i3 = t.attrs.rId;
21402
21382
  i3 || (i3 = uu$2(r22, n)), e.marks = e.marks.filter((u) => u.type !== "link");
@@ -21465,9 +21445,9 @@ Actual: ` + p3.attribValue
21465
21445
  return r22.relationships.push(n), t;
21466
21446
  }
21467
21447
  function Fo$3(r22) {
21468
- const { type: e } = r22.node, t = Bd$2(r22), n = [];
21448
+ const { type: e } = r22.node, t = Fd$2(r22), n = [];
21469
21449
  return t.forEach((i3) => {
21470
- const { level: s, listType: o, pPrs: a, content: u, attrs: c3 = {} } = i3, g = (i3.attrs.numId || i3.listId) ?? Sd$2(r22, o), D3 = Fd$2(s, g, a);
21450
+ const { level: s, listType: o, pPrs: a, content: u, attrs: c3 = {} } = i3, g = (i3.attrs.numId || i3.listId) ?? Cd$2(r22, o), D3 = Td$2(s, g, a);
21471
21451
  u.forEach((A, C) => {
21472
21452
  const F = Object.assign({}, A);
21473
21453
  F.attrs = {
@@ -21520,8 +21500,8 @@ Actual: ` + p3.attribValue
21520
21500
  });
21521
21501
  }), n;
21522
21502
  }
21523
- function Sd$2(r22, e) {
21524
- const t = Td$2(r22.converter?.numbering?.definitions), n = e === "bullet" ? sd$2 : id$2, i3 = t, s = n.attributes["w:abstractNumId"], o = {
21503
+ function Cd$2(r22, e) {
21504
+ const t = Sd$2(r22.converter?.numbering?.definitions), n = e === "bullet" ? sd$2 : id$2, i3 = t, s = n.attributes["w:abstractNumId"], o = {
21525
21505
  type: "element",
21526
21506
  name: "w:num",
21527
21507
  attributes: {
@@ -21534,8 +21514,8 @@ Actual: ` + p3.attribValue
21534
21514
  };
21535
21515
  return r22.converter.numbering.definitions[i3] = o, i3;
21536
21516
  }
21537
- const Td$2 = (r22) => !r22 || !Object.keys(r22).length ? 0 : Math.max(...Object.keys(r22).map((t) => parseInt(t, 10))) + 1;
21538
- function Fd$2(r22, e, t = []) {
21517
+ const Sd$2 = (r22) => !r22 || !Object.keys(r22).length ? 0 : Math.max(...Object.keys(r22).map((t) => parseInt(t, 10))) + 1;
21518
+ function Td$2(r22, e, t = []) {
21539
21519
  return {
21540
21520
  name: "w:pPr",
21541
21521
  type: "element",
@@ -21560,7 +21540,7 @@ Actual: ` + p3.attribValue
21560
21540
  ]
21561
21541
  };
21562
21542
  }
21563
- function Bd$2({ node: r22 }) {
21543
+ function Fd$2({ node: r22 }) {
21564
21544
  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((l) => l.name !== "w:numPr") || [], u = [];
21565
21545
  function c3(l, h3 = 0) {
21566
21546
  !l || !l.length || l.forEach((g) => {
@@ -21581,22 +21561,22 @@ Actual: ` + p3.attribValue
21581
21561
  }
21582
21562
  return c3(e), u;
21583
21563
  }
21584
- function kd$2(r22) {
21564
+ function Bd$2(r22) {
21585
21565
  const e = {}, { lineBreakType: t } = r22.node?.attrs || {};
21586
21566
  return t && (e["w:type"] = t), {
21587
21567
  name: "w:br",
21588
21568
  attributes: e
21589
21569
  };
21590
21570
  }
21591
- function Nd$2(r22) {
21592
- r22.node = Id$2(r22.node, r22);
21593
- const e = lt$3(r22), t = Pd$2(r22.node), n = Ld$2(r22.node, r22);
21571
+ function kd$2(r22) {
21572
+ r22.node = Nd$2(r22.node, r22);
21573
+ const e = lt$3(r22), t = Rd$2(r22.node), n = Od$2(r22.node, r22);
21594
21574
  return e.unshift(t), e.unshift(n), {
21595
21575
  name: "w:tbl",
21596
21576
  elements: e
21597
21577
  };
21598
21578
  }
21599
- function Id$2(r22, { editorSchema: e }) {
21579
+ function Nd$2(r22, { editorSchema: e }) {
21600
21580
  const { content: t } = r22;
21601
21581
  for (let n = 0; n < t.length; n++) {
21602
21582
  const i3 = t[n];
@@ -21632,13 +21612,13 @@ Actual: ` + p3.attribValue
21632
21612
  }
21633
21613
  return r22;
21634
21614
  }
21635
- function Rd$2(r22) {
21615
+ function Id$2(r22) {
21636
21616
  const { marks: e = [] } = r22.node, t = kr$1(e);
21637
21617
  return Zt$3({
21638
21618
  name: "w:tab"
21639
21619
  }, t);
21640
21620
  }
21641
- function Pd$2(r22) {
21621
+ function Rd$2(r22) {
21642
21622
  const e = [], { attrs: t } = r22, { tableWidth: n, tableWidthType: i3, tableStyleId: s, borders: o, tableIndent: a, tableLayout: u, tableCellSpacing: c3 } = t;
21643
21623
  if (s) {
21644
21624
  const l = {
@@ -21648,7 +21628,7 @@ Actual: ` + p3.attribValue
21648
21628
  e.push(l);
21649
21629
  }
21650
21630
  if (o) {
21651
- const l = Od$2(r22);
21631
+ const l = Pd$2(r22);
21652
21632
  e.push(l);
21653
21633
  }
21654
21634
  if (a) {
@@ -21683,7 +21663,7 @@ Actual: ` + p3.attribValue
21683
21663
  elements: e
21684
21664
  };
21685
21665
  }
21686
- function Od$2(r22) {
21666
+ function Pd$2(r22) {
21687
21667
  const { borders: e } = r22.attrs, t = [];
21688
21668
  return e ? (["top", "bottom", "left", "right", "insideH", "insideV"].forEach((i3) => {
21689
21669
  const s = e[i3];
@@ -21707,7 +21687,7 @@ Actual: ` + p3.attribValue
21707
21687
  elements: t
21708
21688
  }) : void 0;
21709
21689
  }
21710
- function Ld$2(r22, e) {
21690
+ function Od$2(r22, e) {
21711
21691
  const { editorSchema: t } = e;
21712
21692
  let n = [];
21713
21693
  try {
@@ -21730,14 +21710,14 @@ Actual: ` + p3.attribValue
21730
21710
  elements: i3
21731
21711
  };
21732
21712
  }
21733
- function _d$2(r22) {
21734
- const e = lt$3(r22), t = qd$2(r22.node);
21713
+ function Ld$2(r22) {
21714
+ const e = lt$3(r22), t = _d$2(r22.node);
21735
21715
  return t.elements.length && e.unshift(t), {
21736
21716
  name: "w:tr",
21737
21717
  elements: e
21738
21718
  };
21739
21719
  }
21740
- function qd$2(r22) {
21720
+ function _d$2(r22) {
21741
21721
  const { attrs: e } = r22, t = [], { rowHeight: n, rowHeightType: i3 } = e;
21742
21722
  if (n) {
21743
21723
  const s = { "w:val": Te$2(n) };
@@ -21753,17 +21733,17 @@ Actual: ` + p3.attribValue
21753
21733
  elements: t
21754
21734
  };
21755
21735
  }
21756
- function Md$2(r22) {
21736
+ function qd$2(r22) {
21757
21737
  const e = lt$3({
21758
21738
  ...r22,
21759
21739
  tableCell: r22.node
21760
- }), t = Ud$2(r22.node);
21740
+ }), t = Md$2(r22.node);
21761
21741
  return e.unshift(t), {
21762
21742
  name: "w:tc",
21763
21743
  elements: e
21764
21744
  };
21765
21745
  }
21766
- function Ud$2(r22) {
21746
+ function Md$2(r22) {
21767
21747
  const e = [], { attrs: t } = r22, { colwidth: n = [], cellWidthType: i3 = "dxa", background: s = {}, colspan: o, rowspan: a, widthUnit: u } = t, c3 = n.reduce((C, F) => C + F, 0), l = {
21768
21748
  name: "w:tcW",
21769
21749
  attributes: { "w:w": u === "px" ? Te$2(c3) : It$2(c3), "w:type": i3 }
@@ -21787,7 +21767,7 @@ Actual: ` + p3.attribValue
21787
21767
  if (g) {
21788
21768
  const C = {
21789
21769
  name: "w:tcMar",
21790
- elements: jd$2(g)
21770
+ elements: Ud$2(g)
21791
21771
  };
21792
21772
  e.push(C);
21793
21773
  }
@@ -21839,11 +21819,11 @@ Actual: ` + p3.attribValue
21839
21819
  elements: e
21840
21820
  };
21841
21821
  }
21842
- function jd$2(r22) {
21822
+ function Ud$2(r22) {
21843
21823
  const e = [], { top: t, right: n, bottom: i3, left: s } = r22;
21844
21824
  return t != null && e.push({ name: "w:top", attributes: { "w:w": Te$2(t) } }), n != null && e.push({ name: "w:right", attributes: { "w:w": Te$2(n) } }), i3 != null && e.push({ name: "w:bottom", attributes: { "w:w": Te$2(i3) } }), s != null && e.push({ name: "w:left", attributes: { "w:w": Te$2(s) } }), e;
21845
21825
  }
21846
- function Hd$2(r22) {
21826
+ function jd$2(r22) {
21847
21827
  const e = {
21848
21828
  name: "w:bookmarkStart",
21849
21829
  attributes: {
@@ -21900,7 +21880,7 @@ Actual: ` + p3.attribValue
21900
21880
  }
21901
21881
  return t;
21902
21882
  }
21903
- function zd$2(r22) {
21883
+ function Hd$2(r22) {
21904
21884
  if (!r22) return {};
21905
21885
  const e = r22.split(";")[0].split("/")[1];
21906
21886
  if (!r22 || e !== "png")
@@ -21914,7 +21894,7 @@ Actual: ` + p3.attribValue
21914
21894
  originalHeight: i3.getInt32(20)
21915
21895
  };
21916
21896
  }
21917
- function Vd$2(r22, e, t, n) {
21897
+ function zd$2(r22, e, t, n) {
21918
21898
  let i3 = r22, s = e, o = Math.min(t / r22, n / e);
21919
21899
  return i3 = Math.round(i3 * o), s = Math.round(s * o), { scaledWidth: i3, scaledHeight: s };
21920
21900
  }
@@ -21924,20 +21904,20 @@ Actual: ` + p3.attribValue
21924
21904
  tableCell: i3
21925
21905
  } = r22;
21926
21906
  let s = t.rId;
21927
- const o = t.src || t.imageSrc, { originalWidth: a, originalHeight: u } = zd$2(o);
21907
+ const o = t.src || t.imageSrc, { originalWidth: a, originalHeight: u } = Hd$2(o);
21928
21908
  let c3 = t.size ? {
21929
21909
  w: mt$1(t.size.width),
21930
21910
  h: mt$1(t.size.height)
21931
21911
  } : e;
21932
21912
  if (a && u) {
21933
- const F = Me$2(c3.w), w = Me$2(c3.h), { scaledWidth: B3, scaledHeight: R } = Vd$2(a, u, F, w);
21913
+ const F = Me$2(c3.w), w = Me$2(c3.h), { scaledWidth: B3, scaledHeight: R } = zd$2(a, u, F, w);
21934
21914
  c3 = {
21935
21915
  w: mt$1(B3),
21936
21916
  h: mt$1(R)
21937
21917
  };
21938
21918
  }
21939
21919
  if (i3) {
21940
- const F = i3.attrs.colwidth.reduce((N3, M3) => N3 + M3, 0), w = i3.attrs.cellMargins?.left || 8, B3 = i3.attrs.cellMargins?.right || 8, R = mt$1(F - (w + B3)), { width: v, height: k } = em$1(c3.w, c3.h, R);
21920
+ const F = i3.attrs.colwidth.reduce((N3, M3) => N3 + M3, 0), w = i3.attrs.cellMargins?.left || 8, B3 = i3.attrs.cellMargins?.right || 8, R = mt$1(F - (w + B3)), { width: v, height: k } = Qd$2(c3.w, c3.h, R);
21941
21921
  v && k && (c3 = { w: v, h: k });
21942
21922
  }
21943
21923
  if (r22.node.type === "image" && !s) {
@@ -22178,13 +22158,13 @@ Actual: ` + p3.attribValue
22178
22158
  } = r22, n = fu$2(e);
22179
22159
  return Br$2(e.displayLabel, [...t, ...n], r22);
22180
22160
  }
22181
- function Gd$2(r22) {
22161
+ function Vd$2(r22) {
22182
22162
  const {
22183
22163
  node: { attrs: e = {}, marks: t = [] }
22184
22164
  } = r22, n = Pc$1.decode(e.displayLabel);
22185
22165
  return Br$2(n, t, r22);
22186
22166
  }
22187
- function Wd$2(r22) {
22167
+ function Gd$2(r22) {
22188
22168
  const {
22189
22169
  node: { attrs: e = {}, marks: t = [] },
22190
22170
  editorSchema: n
@@ -22192,7 +22172,7 @@ Actual: ` + p3.attribValue
22192
22172
  let u = Ct$3.create({
22193
22173
  doc: yr$2.fromSchema(n).parse(s)
22194
22174
  });
22195
- a.length && (u = tm$1(u, a));
22175
+ a.length && (u = em$1(u, a));
22196
22176
  const c3 = u.doc.toJSON();
22197
22177
  return {
22198
22178
  name: "htmlAnnotation",
@@ -22205,7 +22185,7 @@ Actual: ` + p3.attribValue
22205
22185
  function ko$3(r22, e) {
22206
22186
  return lu$2(r22, e);
22207
22187
  }
22208
- function Jd$2(r22) {
22188
+ function Wd$2(r22) {
22209
22189
  const {
22210
22190
  node: { attrs: e = {}, marks: t = [] }
22211
22191
  } = r22, n = uu$2(r22, e.linkUrl), i3 = Br$2(e.linkUrl, t, r22), s = au$2(i3);
@@ -22219,7 +22199,7 @@ Actual: ` + p3.attribValue
22219
22199
  elements: [s]
22220
22200
  };
22221
22201
  }
22222
- function $d$2(r22) {
22202
+ function Jd$2(r22) {
22223
22203
  const e = {
22224
22204
  w: 4286250,
22225
22205
  h: 4286250
@@ -22231,9 +22211,9 @@ Actual: ` + p3.attribValue
22231
22211
  text: cu$2,
22232
22212
  image: (i3) => ko$3(i3, e),
22233
22213
  signature: (i3) => ko$3(i3, t),
22234
- checkbox: Gd$2,
22235
- html: Wd$2,
22236
- link: Jd$2
22214
+ checkbox: Vd$2,
22215
+ html: Gd$2,
22216
+ link: Wd$2
22237
22217
  }[r22];
22238
22218
  }
22239
22219
  const fu$2 = (r22 = {}) => {
@@ -22248,8 +22228,8 @@ Actual: ` + p3.attribValue
22248
22228
  } = r22, u = [];
22249
22229
  return e && u.push({ type: "fontFamily", attrs: { fontFamily: e } }), t && u.push({ type: "fontSize", attrs: { fontSize: t } }), n && u.push({ type: "bold", attrs: {} }), i3 && u.push({ type: "underline", attrs: {} }), s && u.push({ type: "italic", attrs: {} }), o && u.push({ type: "color", attrs: { color: o } }), a && u.push({ type: "highlight", attrs: { color: a } }), u;
22250
22230
  };
22251
- function Kd$2(r22) {
22252
- const { node: e, isFinalDoc: t } = r22, { attrs: n = {} } = e, i3 = $d$2(n.type);
22231
+ function $d$2(r22) {
22232
+ const { node: e, isFinalDoc: t } = r22, { attrs: n = {} } = e, i3 = Jd$2(n.type);
22253
22233
  if (!i3) return {};
22254
22234
  let s, o;
22255
22235
  if (t)
@@ -22329,7 +22309,7 @@ Actual: ` + p3.attribValue
22329
22309
  ]
22330
22310
  };
22331
22311
  }
22332
- function Xd$2(r22) {
22312
+ function Kd$2(r22) {
22333
22313
  const { node: e = {} } = r22, { attrs: t = {} } = e, { pageBreakSource: n } = t;
22334
22314
  return n === "sectPr" ? null : {
22335
22315
  name: "w:r",
@@ -22340,7 +22320,7 @@ Actual: ` + p3.attribValue
22340
22320
  }]
22341
22321
  };
22342
22322
  }
22343
- function Yd$2(r22) {
22323
+ function Xd$2(r22) {
22344
22324
  const { node: e } = r22, t = lt$3(r22), n = {
22345
22325
  name: "v:shape",
22346
22326
  attributes: {
@@ -22366,7 +22346,7 @@ Actual: ` + p3.attribValue
22366
22346
  elements: [Zt$3(i3)]
22367
22347
  };
22368
22348
  }
22369
- function Zd$2(r22) {
22349
+ function Yd$2(r22) {
22370
22350
  const { node: e } = r22, n = {
22371
22351
  name: "w:txbxContent",
22372
22352
  elements: lt$3(r22)
@@ -22379,7 +22359,7 @@ Actual: ` + p3.attribValue
22379
22359
  elements: [n]
22380
22360
  };
22381
22361
  }
22382
- function Qd$2(r22) {
22362
+ function Zd$2(r22) {
22383
22363
  const { node: e } = r22, { drawingContent: t } = e.attrs, n = {
22384
22364
  name: "w:drawing",
22385
22365
  elements: [
@@ -22446,14 +22426,14 @@ Actual: ` + p3.attribValue
22446
22426
  }
22447
22427
  return a || u.push(`</${n}>`), u;
22448
22428
  };
22449
- function em$1(r22, e, t) {
22429
+ function Qd$2(r22, e, t) {
22450
22430
  if (r22 > t) {
22451
22431
  let n = t / r22, i3 = Math.round(e * n);
22452
22432
  return { width: t, height: i3 };
22453
22433
  }
22454
22434
  return { width: r22, height: e };
22455
22435
  }
22456
- function tm$1(r22, e) {
22436
+ function em$1(r22, e) {
22457
22437
  const { tr: t, doc: n, schema: i3 } = r22, s = ["fontFamily", "fontSize", "highlight"];
22458
22438
  if (!e.some((h3) => s.includes(h3.type)))
22459
22439
  return r22;
@@ -22475,7 +22455,7 @@ Actual: ` + p3.attribValue
22475
22455
  }));
22476
22456
  }), r22.apply(t);
22477
22457
  }
22478
- function rm$1(r22) {
22458
+ function tm$1(r22) {
22479
22459
  const { node: e } = r22, { attrs: t = {} } = e, i3 = [
22480
22460
  {
22481
22461
  name: "w:sdtContent",
@@ -22487,21 +22467,21 @@ Actual: ` + p3.attribValue
22487
22467
  elements: i3
22488
22468
  };
22489
22469
  }
22490
- const nm$1 = '<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>', im$1 = (r22) => JSON.parse(ba$1.xml2json(r22, null, 2)), sm$1 = (r22, e = nm$1) => r22["word/document.xml"] || im$1(e), om$1 = (r22) => {
22470
+ const rm$1 = '<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>', nm$1 = (r22) => JSON.parse(ba$1.xml2json(r22, null, 2)), im$1 = (r22, e = rm$1) => r22["word/document.xml"] || nm$1(e), sm$1 = (r22) => {
22491
22471
  const { nodes: e } = r22;
22492
22472
  if (e.length === 0)
22493
22473
  return { nodes: [], consumed: 0 };
22494
22474
  const t = e[0];
22495
22475
  switch (t.name) {
22496
22476
  case "w:tbl":
22497
- return { nodes: [um$1(t, r22)], consumed: 1 };
22477
+ return { nodes: [am$1(t, r22)], consumed: 1 };
22498
22478
  }
22499
22479
  return { nodes: [], consumed: 0 };
22500
- }, am$1 = {
22480
+ }, om$1 = {
22501
22481
  handlerName: "tableNodeHandler",
22502
- handler: om$1
22482
+ handler: sm$1
22503
22483
  };
22504
- function um$1(r22, e) {
22484
+ function am$1(r22, e) {
22505
22485
  const { docx: t, nodeListHandler: n } = e, i3 = r22.elements.find((k) => k.name === "w:tblPr"), o = i3.elements.find((k) => k.name === "w:tblBorders")?.elements || [], { borders: a, rowBorders: u } = pu$2(o), c3 = i3.elements.find((k) => k.name === "w:tblStyle"), h3 = { tableStyleId: c3?.attributes["w:val"] }, g = i3?.elements.find((k) => k.name === "w:tblInd");
22506
22486
  if (g) {
22507
22487
  const { "w:w": k, "w:type": N3 } = g.attributes;
@@ -22526,7 +22506,7 @@ Actual: ` + p3.attribValue
22526
22506
  h3.borders = B3;
22527
22507
  const v = [];
22528
22508
  return w.forEach((k) => {
22529
- const N3 = fm$1(k, r22, R, c3, e);
22509
+ const N3 = cm$1(k, r22, R, c3, e);
22530
22510
  N3.content?.length && v.push(N3);
22531
22511
  }), {
22532
22512
  type: "table",
@@ -22534,15 +22514,15 @@ Actual: ` + p3.attribValue
22534
22514
  attrs: h3
22535
22515
  };
22536
22516
  }
22537
- function lm$1(r22, e, t, n, i3 = null, s, o, a) {
22538
- const { docx: u, nodeListHandler: c3 } = o, l = r22.elements.find((oe2) => oe2.name === "w:tcPr"), h3 = l?.elements?.find((oe2) => oe2.name === "w:tcBorders"), g = cm$1(h3, n), D3 = hu$2(t), A = l?.elements?.find((oe2) => oe2.name === "w:tcW");
22517
+ function um$1(r22, e, t, n, i3 = null, s, o, a) {
22518
+ const { docx: u, nodeListHandler: c3 } = o, l = r22.elements.find((oe2) => oe2.name === "w:tcPr"), h3 = l?.elements?.find((oe2) => oe2.name === "w:tcBorders"), g = lm$1(h3, n), D3 = hu$2(t), A = l?.elements?.find((oe2) => oe2.name === "w:tcW");
22539
22519
  let C = A ? be$2(A.attributes["w:w"]) : null;
22540
22520
  const F = A?.attributes["w:type"];
22541
22521
  !C && i3 && (C = i3);
22542
22522
  const w = Io$2(r22), { attributes: B3 } = w || {}, v = {
22543
22523
  color: l?.elements?.find((oe2) => oe2.name === "w:shd")?.attributes["w:fill"]
22544
22524
  }, N3 = l?.elements?.find((oe2) => oe2.name === "w:gridSpan")?.attributes["w:val"], M3 = l?.elements?.find((oe2) => oe2.name === "w:tcMar"), E = l?.elements?.find((oe2) => oe2.name === "w:vAlign")?.attributes["w:val"] || "top", J3 = {}, ee = mu$2(s, u) || {};
22545
- J3.cellMargins = dm$1(M3, ee);
22525
+ J3.cellMargins = fm$1(M3, ee);
22546
22526
  const { fontSize: Z3, fonts: fe2 = {} } = ee, de2 = fe2.ascii;
22547
22527
  if (C) {
22548
22528
  J3.colwidth = [C], J3.widthUnit = "px";
@@ -22588,7 +22568,7 @@ Actual: ` + p3.attribValue
22588
22568
  return Object.keys(i3) ? (i3.val = "none", i3) : null;
22589
22569
  }
22590
22570
  return null;
22591
- }, cm$1 = (r22, e) => {
22571
+ }, lm$1 = (r22, e) => {
22592
22572
  if (!r22) return null;
22593
22573
  const t = {}, n = or$2(r22, "bottom", e);
22594
22574
  n && (t.bottom = n);
@@ -22656,7 +22636,7 @@ Actual: ` + p3.attribValue
22656
22636
  rowBorders: t
22657
22637
  };
22658
22638
  }
22659
- function fm$1(r22, e, t, n, i3) {
22639
+ function cm$1(r22, e, t, n, i3) {
22660
22640
  const s = {}, a = r22.elements.find((A) => A.name === "w:trPr")?.elements?.find((A) => A.name === "w:trHeight"), u = a?.attributes["w:val"];
22661
22641
  a?.attributes["w:hRule"];
22662
22642
  const c3 = {};
@@ -22666,12 +22646,12 @@ Actual: ` + p3.attribValue
22666
22646
  type: "tableRow",
22667
22647
  content: h3?.map((A, C) => {
22668
22648
  const F = h3.length > 1 ? l[C] : null;
22669
- return lm$1(A, r22, e, c3, F, n, i3, C);
22649
+ return um$1(A, r22, e, c3, F, n, i3, C);
22670
22650
  }) || [],
22671
22651
  attrs: s
22672
22652
  };
22673
22653
  }
22674
- const dm$1 = (r22, e) => {
22654
+ const fm$1 = (r22, e) => {
22675
22655
  const t = r22?.elements?.find((F) => F.name === "w:left"), n = r22?.elements?.find((F) => F.name === "w:right"), i3 = r22?.elements?.find((F) => F.name === "w:top"), s = r22?.elements?.find((F) => F.name === "w:bottom"), o = t?.attributes["w:w"], a = n?.attributes["w:w"], u = i3?.attributes["w:w"], c3 = s?.attributes["w:w"], { cellMargins: l = {} } = e, {
22676
22656
  marginLeft: h3,
22677
22657
  marginRight: g,
@@ -22684,7 +22664,7 @@ Actual: ` + p3.attribValue
22684
22664
  top: be$2(u ?? D3),
22685
22665
  bottom: be$2(c3 ?? A)
22686
22666
  };
22687
- }, hu$2 = (r22) => r22.elements.find((t) => t.name === "w:tblGrid")?.elements?.flatMap((t) => t.name !== "w:gridCol" ? [] : be$2(t.attributes["w:w"])) || [], mm$1 = (r22) => {
22667
+ }, hu$2 = (r22) => r22.elements.find((t) => t.name === "w:tblGrid")?.elements?.flatMap((t) => t.name !== "w:gridCol" ? [] : be$2(t.attributes["w:w"])) || [], dm$1 = (r22) => {
22688
22668
  const { nodes: e, filename: t } = r22, n = ["w:drawing", "w:p"];
22689
22669
  if (e.length === 0 || !n.includes(e[0].name))
22690
22670
  return { nodes: [], consumed: 0 };
@@ -22708,7 +22688,7 @@ Actual: ` + p3.attribValue
22708
22688
  height: Me$2(o.attributes?.cy)
22709
22689
  }, c3 = r22.elements.find((q) => q.name === "a:graphic").elements.find((q) => q.name === "a:graphicData"), { uri: l } = c3?.attributes;
22710
22690
  if (l && l === "http://schemas.microsoft.com/office/word/2010/wordprocessingShape")
22711
- return pm$1(t, r22, c3);
22691
+ return mm$1(t, r22, c3);
22712
22692
  const g = c3.elements.find((q) => q.name === "pic:pic");
22713
22693
  if (!g || !g.elements) return null;
22714
22694
  const A = g.elements.find((q) => q.name === "pic:blipFill").elements.find((q) => q.name === "a:blip"), C = r22.elements.find((q) => q.name === "wp:positionH"), F = C?.elements.find((q) => q.name === "wp:posOffset"), w = Me$2(F?.elements[0]?.text), B3 = C?.attributes.relativeFrom, R = C?.elements.find((q) => q.name === "wp:align")?.elements[0]?.text, v = r22.elements.find((q) => q.name === "wp:positionV"), k = v?.elements.find((q) => q.name === "wp:posOffset"), N3 = Me$2(k?.elements[0]?.text), M3 = v?.attributes.relativeFrom, _ = v?.elements.find((q) => q.name === "wp:align")?.elements[0]?.text, E = r22.elements.find((q) => q.name === "wp:simplePos"), J3 = r22.elements.find((q) => q.name === "wp:wrapSquare"), ee = r22.elements.find((q) => q.name === "wp:wrapTopAndBottom"), Z3 = r22.elements.find((q) => q.name === "wp:docPr");
@@ -22759,12 +22739,12 @@ Actual: ` + p3.attribValue
22759
22739
  }
22760
22740
  };
22761
22741
  }
22762
- const pm$1 = (r22, e, t) => {
22742
+ const mm$1 = (r22, e, t) => {
22763
22743
  const n = t.elements.find((l) => l.name === "wps:wsp"), s = n.elements.find((l) => l.name === "wps:txbx")?.elements?.find((l) => l.name === "w:txbxContent");
22764
22744
  e.elements.find((l) => l.name === "wp:docPr");
22765
22745
  const o = n.elements.find((l) => l.name === "wps:spPr"), a = o?.elements.find((l) => l.name === "a:prstGeom");
22766
22746
  if (a && a.attributes.prst === "rect")
22767
- return hm$1(r22, o);
22747
+ return pm$1(r22, o);
22768
22748
  if (!s)
22769
22749
  return null;
22770
22750
  const { nodeListHandler: u } = r22;
@@ -22773,7 +22753,7 @@ Actual: ` + p3.attribValue
22773
22753
  node: s.elements[0],
22774
22754
  nodes: s.elements
22775
22755
  })[0];
22776
- }, hm$1 = (r22, e) => {
22756
+ }, pm$1 = (r22, e) => {
22777
22757
  const t = {}, [n] = r22.nodes;
22778
22758
  n?.name === "w:drawing" && (t.drawingContent = n);
22779
22759
  const i3 = e.elements.find((l) => l.name === "a:xfrm"), s = i3.elements.find((l) => l.name === "a:off"), o = i3.elements.find((l) => l.name === "a:ext");
@@ -22790,9 +22770,9 @@ Actual: ` + p3.attribValue
22790
22770
  type: "contentBlock",
22791
22771
  attrs: t
22792
22772
  };
22793
- }, gm$1 = {
22773
+ }, hm$1 = {
22794
22774
  handlerName: "drawingNodeHandler",
22795
- handler: mm$1
22775
+ handler: dm$1
22796
22776
  };
22797
22777
  function Rt(r22, e = [], t = null) {
22798
22778
  const n = [], i3 = /* @__PURE__ */ new Set();
@@ -22817,7 +22797,7 @@ Actual: ` + p3.attribValue
22817
22797
  const { attributes: u = {} } = s, c3 = { type: a.type };
22818
22798
  if (!(u["w:val"] == "0" || u["w:val"] === "none")) {
22819
22799
  if (a.mark && (c3.type = a.mark), Object.keys(u).length) {
22820
- const l = ym$1(a.type, u, t);
22800
+ const l = wm$1(a.type, u, t);
22821
22801
  if (l == null) return;
22822
22802
  c3.attrs = {}, c3.attrs[a.property] = l;
22823
22803
  }
@@ -22826,7 +22806,7 @@ Actual: ` + p3.attribValue
22826
22806
  });
22827
22807
  }), wi$2(n);
22828
22808
  }
22829
- function wm$1(r22, e) {
22809
+ function gm$1(r22, e) {
22830
22810
  const t = r22.elements?.find((o) => o.name === "w:rPrChange");
22831
22811
  if (!t)
22832
22812
  return [];
@@ -22847,25 +22827,25 @@ Actual: ` + p3.attribValue
22847
22827
  });
22848
22828
  }), [...t, { type: "textStyle", attrs: n }];
22849
22829
  }
22850
- function ym$1(r22, e, t) {
22830
+ function wm$1(r22, e, t) {
22851
22831
  r22 === "tabs" && (r22 = "textIndent");
22852
22832
  const n = {
22853
22833
  color: () => `#${e["w:val"]}`,
22854
22834
  fontSize: () => `${e["w:val"] / 2}pt`,
22855
- textIndent: () => xm$1(e),
22856
- fontFamily: () => bm$1(e, t),
22857
- lineHeight: () => Am$1(e),
22835
+ textIndent: () => bm$1(e),
22836
+ fontFamily: () => ym$1(e, t),
22837
+ lineHeight: () => xm$1(e),
22858
22838
  textAlign: () => e["w:val"],
22859
22839
  link: () => e.href,
22860
22840
  underline: () => e["w:val"],
22861
22841
  bold: () => e?.["w:val"] || null,
22862
22842
  italic: () => e?.["w:val"] || null,
22863
- highlight: () => vm$1(e)
22843
+ highlight: () => Am$1(e)
22864
22844
  };
22865
22845
  if (r22 in n || console.debug("❗️❗️ No value mapper for:", r22, "Attributes:", e), r22 in n)
22866
22846
  return n[r22], n[r22]();
22867
22847
  }
22868
- function bm$1(r22, e) {
22848
+ function ym$1(r22, e) {
22869
22849
  const t = r22["w:ascii"], n = r22["w:asciiTheme"];
22870
22850
  if (!e || !n) return t;
22871
22851
  const i3 = e["word/theme/theme1.xml"];
@@ -22873,21 +22853,21 @@ Actual: ` + p3.attribValue
22873
22853
  const { elements: s } = i3, { elements: o } = s[0];
22874
22854
  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;
22875
22855
  }
22876
- function xm$1(r22) {
22856
+ function bm$1(r22) {
22877
22857
  let e = r22["w:left"];
22878
22858
  return e ? `${qe$2(e)}in` : null;
22879
22859
  }
22880
- function Am$1(r22) {
22860
+ function xm$1(r22) {
22881
22861
  const e = r22["w:line"], t = r22["w:lineRule"];
22882
22862
  return !e || e === "0" ? null : t === "exact" ? `${tu$2(e)}pt` : `${Ii$2(e)}`;
22883
22863
  }
22884
- function vm$1(r22) {
22864
+ function Am$1(r22) {
22885
22865
  const e = r22["w:fill"];
22886
22866
  return e && e !== "auto" ? `#${e}` : zf$2(r22?.["w:val"]) ? `#${r22["w:val"]}` : Hf$1(r22?.["w:val"]) || null;
22887
22867
  }
22888
22868
  function xt$1(r22, e) {
22889
- const t = [], n = [], { attributes: i3 = {}, elements: s = [] } = r22, { nodes: o, paragraphProperties: a = {}, runProperties: u = {} } = Dm$1(s);
22890
- return s.find((l) => l.name === "w:r") && (a.elements = a?.elements?.filter((l) => l.name !== "w:rPr")), u && u?.elements?.length && t.push(...Rt(u, n)), a && a.elements?.length && t.push(...Rt(a, n)), t.push(...wm$1(u, t)), a && a.elements?.length && (i3.paragraphProperties = a), t && r22.name === "w:p" && t.forEach((l) => {
22869
+ const t = [], n = [], { attributes: i3 = {}, elements: s = [] } = r22, { nodes: o, paragraphProperties: a = {}, runProperties: u = {} } = vm$1(s);
22870
+ return s.find((l) => l.name === "w:r") && (a.elements = a?.elements?.filter((l) => l.name !== "w:rPr")), u && u?.elements?.length && t.push(...Rt(u, n)), a && a.elements?.length && t.push(...Rt(a, n)), t.push(...gm$1(u, t)), a && a.elements?.length && (i3.paragraphProperties = a), t && r22.name === "w:p" && t.forEach((l) => {
22891
22871
  const h3 = Object.keys(l.attrs ?? {})[0];
22892
22872
  if (h3) {
22893
22873
  const g = l.attrs[h3];
@@ -22895,7 +22875,7 @@ Actual: ` + p3.attribValue
22895
22875
  }
22896
22876
  }), { elements: o, attributes: i3, marks: t, unknownMarks: n };
22897
22877
  }
22898
- function Dm$1(r22) {
22878
+ function vm$1(r22) {
22899
22879
  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");
22900
22880
  return {
22901
22881
  nodes: r22.filter((s) => s.name !== "w:pPr" && s.name !== "w:rPr" && s.name !== "w:sectPr"),
@@ -22907,11 +22887,11 @@ Actual: ` + p3.attribValue
22907
22887
  function fr$1(r22) {
22908
22888
  return Ot$1.allowedElements[r22.name || r22.type];
22909
22889
  }
22910
- const Em$1 = (r22) => !!Ot$1.propertyTypes[r22.name || r22.type];
22890
+ const Dm$1 = (r22) => !!Ot$1.propertyTypes[r22.name || r22.type];
22911
22891
  function gu$2(r22) {
22912
22892
  return r22.filter((n) => n.name === "w:r").some((n) => n.elements.some((i3) => i3.name === "w:t"));
22913
22893
  }
22914
- const Cm$1 = (r22) => {
22894
+ const Em$1 = (r22) => {
22915
22895
  const { nodes: e, nodeListHandler: t } = r22;
22916
22896
  if (e.length === 0 || !(e[0].name === "w:del" || e[0].name === "w:ins" || e[0].name === "w:sdt"))
22917
22897
  return { nodes: [], consumed: 0 };
@@ -22934,10 +22914,10 @@ Actual: ` + p3.attribValue
22934
22914
  return u.forEach((h3) => {
22935
22915
  h3.marks === void 0 && (h3.marks = []), h3.marks.push({ type: c3, attrs: l });
22936
22916
  }), { nodes: u, consumed: 1 };
22937
- }, Sm$1 = {
22917
+ }, Cm$1 = {
22938
22918
  handlerName: "trackChangeNodeHandler",
22939
- handler: Cm$1
22940
- }, Tm$1 = (r22) => {
22919
+ handler: Em$1
22920
+ }, Sm$1 = (r22) => {
22941
22921
  const { nodes: e, docx: t, nodeListHandler: n } = r22;
22942
22922
  if (e.length === 0 || e[0].name !== "w:hyperlink")
22943
22923
  return { nodes: [], consumed: 0 };
@@ -22956,16 +22936,16 @@ Actual: ` + p3.attribValue
22956
22936
  }
22957
22937
  }
22958
22938
  return { nodes: n.handler({ ...r22, nodes: A }), consumed: 1 };
22959
- }, Fm$1 = {
22939
+ }, Tm$1 = {
22960
22940
  handlerName: "hyperlinkNodeHandler",
22961
- handler: Tm$1
22962
- }, Bm$1 = (r22) => {
22941
+ handler: Sm$1
22942
+ }, Fm$1 = (r22) => {
22963
22943
  const { nodes: e, nodeListHandler: t, parentStyleId: n, docx: i3 } = r22;
22964
22944
  if (e.length === 0 || e[0].name !== "w:r")
22965
22945
  return { nodes: [], consumed: 0 };
22966
22946
  const s = e[0], o = { ...r22, nodes: s.elements };
22967
22947
  let a = t.handler(o)?.filter((l) => l) || [];
22968
- const u = s.elements?.some((l) => l.name === "w:rPr"), c3 = km$1(i3, n);
22948
+ const u = s.elements?.some((l) => l.name === "w:rPr"), c3 = Bm$1(i3, n);
22969
22949
  if (u) {
22970
22950
  const { marks: l = [], attributes: h3 = {} } = xt$1(s), g = l.find((C) => C.type === "textStyle"), D3 = g && Object.keys(g.attrs).length > 0;
22971
22951
  c3.marks && !D3 && l.push(...c3.marks), s.marks && l.push(...s.marks);
@@ -22976,16 +22956,16 @@ Actual: ` + p3.attribValue
22976
22956
  });
22977
22957
  } else c3.marks && (a = a.map((l) => ({ ...l, marks: wi$2(c3.marks) })));
22978
22958
  return { nodes: a, consumed: 1 };
22979
- }, km$1 = (r22, e) => {
22959
+ }, Bm$1 = (r22, e) => {
22980
22960
  const t = r22?.["word/styles.xml"];
22981
22961
  if (!t)
22982
22962
  return {};
22983
22963
  const i3 = t.elements[0].elements.filter((s) => s.name === "w:style").find((s) => s.attributes["w:styleId"] === e) || {};
22984
22964
  return i3 ? xt$1(i3) : {};
22985
- }, Nm$1 = {
22965
+ }, km$1 = {
22986
22966
  handlerName: "runNodeHandler",
22987
- handler: Bm$1
22988
- }, Im$1 = (r22) => {
22967
+ handler: Fm$1
22968
+ }, Nm$1 = (r22) => {
22989
22969
  const { nodes: e, insideTrackChange: t } = r22;
22990
22970
  if (e.length === 0 || !(e[0].name === "w:t" || t && e[0].name === "w:delText"))
22991
22971
  return { nodes: [], consumed: 0 };
@@ -23006,29 +22986,29 @@ Actual: ` + p3.attribValue
23006
22986
  ],
23007
22987
  consumed: 1
23008
22988
  };
23009
- }, Rm$1 = {
22989
+ }, Im$1 = {
23010
22990
  handlerName: "textNodeHandler",
23011
- handler: Im$1
22991
+ handler: Nm$1
23012
22992
  }, wu$2 = (r22) => {
23013
22993
  if (!r22 || !Array.isArray(r22))
23014
22994
  return r22;
23015
22995
  let e = [], t = null;
23016
22996
  for (let n of r22)
23017
- n.type === "text" ? t && Pm$1(t, n) ? t = {
22997
+ n.type === "text" ? t && Rm$1(t, n) ? t = {
23018
22998
  ...t,
23019
22999
  text: t.text += n.text
23020
23000
  } : (t && e.push(t), t = { ...n }) : (t && (e.push(t), t = null), e.push(n));
23021
23001
  return t && e.push(t), e;
23022
- }, Pm$1 = (r22, e) => {
23002
+ }, Rm$1 = (r22, e) => {
23023
23003
  if (!r22 || !e) return false;
23024
23004
  let t = r22.marks ?? [], n = e.marks ?? [];
23025
23005
  if (t.length !== n.length)
23026
23006
  return false;
23027
23007
  for (let i3 = 0; i3 < t.length; i3++)
23028
- if (t[i3].attrs || (t[i3].attrs = {}), n[i3].attrs || (n[i3].attrs = {}), t[i3].type !== n[i3].type || Object.keys(t[i3].attrs).length !== Object.keys(n[i3].attrs).length || !Om$1(t[i3].attrs, n[i3].attrs))
23008
+ if (t[i3].attrs || (t[i3].attrs = {}), n[i3].attrs || (n[i3].attrs = {}), t[i3].type !== n[i3].type || Object.keys(t[i3].attrs).length !== Object.keys(n[i3].attrs).length || !Pm$1(t[i3].attrs, n[i3].attrs))
23029
23009
  return false;
23030
23010
  return true;
23031
- }, Om$1 = (r22 = {}, e = {}) => Of$2(r22, e), Lm$1 = (r22) => {
23011
+ }, Pm$1 = (r22 = {}, e = {}) => Of$2(r22, e), Om$1 = (r22) => {
23032
23012
  const { nodes: e, lists: t, docx: n } = r22;
23033
23013
  if (e.length === 0 || e[0].name !== "w:p")
23034
23014
  return { nodes: [], consumed: 0 };
@@ -23047,9 +23027,9 @@ Actual: ` + p3.attribValue
23047
23027
  };
23048
23028
  } else
23049
23029
  return { nodes: [], consumed: 0, lists: t };
23050
- }, _m$1 = {
23030
+ }, Lm$1 = {
23051
23031
  handlerName: "listHandler",
23052
- handler: Lm$1
23032
+ handler: Om$1
23053
23033
  };
23054
23034
  function yu$2({
23055
23035
  listItems: r22,
@@ -23088,9 +23068,9 @@ Actual: ` + p3.attribValue
23088
23068
  lvlText: ne2,
23089
23069
  lvlJc: se2,
23090
23070
  numId: L3
23091
- } = jm$1(N3, n, u);
23071
+ } = Um$1(N3, n, u);
23092
23072
  D3 = oe2;
23093
- const z3 = parseInt(ie2), q = i3 === z3 && L3 === s, K3 = Um$1({
23073
+ const z3 = parseInt(ie2), q = i3 === z3 && L3 === s, K3 = Mm$1({
23094
23074
  firstListId: L3,
23095
23075
  secondListId: s,
23096
23076
  level: z3,
@@ -23214,7 +23194,7 @@ Actual: ` + p3.attribValue
23214
23194
  marks: t
23215
23195
  };
23216
23196
  }
23217
- const qm$1 = [
23197
+ const _m$1 = [
23218
23198
  "decimal",
23219
23199
  // eg: 1, 2, 3, 4, 5, ...
23220
23200
  "decimalZero",
@@ -23239,7 +23219,7 @@ Actual: ` + p3.attribValue
23239
23219
  // eg: (0, 1, 2, ..., 9, 10, 11, 12, ..., 19, 1A, 1B, 1C, ..., 1Z, 20, 21, ..., 2Z)
23240
23220
  "none"
23241
23221
  // No bullet
23242
- ], Mm$1 = [
23222
+ ], qm$1 = [
23243
23223
  "bullet",
23244
23224
  // A standard bullet point (•)
23245
23225
  "square",
@@ -23248,7 +23228,7 @@ Actual: ` + p3.attribValue
23248
23228
  // Circle bullets (◦)
23249
23229
  "disc"
23250
23230
  // Disc bullets (●)
23251
- ], Um$1 = ({ firstListId: r22, secondListId: e, level: t, pStyleId: n, docx: i3 }) => {
23231
+ ], Mm$1 = ({ firstListId: r22, secondListId: e, level: t, pStyleId: n, docx: i3 }) => {
23252
23232
  const { numFmt: s, lvlText: o, lvlJc: a } = Ar$2(r22, t, n, i3), {
23253
23233
  numFmt: u,
23254
23234
  lvlText: c3,
@@ -23278,7 +23258,7 @@ Actual: ` + p3.attribValue
23278
23258
  }
23279
23259
  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(
23280
23260
  (N3) => N3.attributes["w:abstractNumId"] === h3
23281
- ), D3 = Hm$1(g, e), C = g?.elements?.find((N3) => N3.name === "w:numStyleLink")?.attributes["w:val"];
23261
+ ), D3 = jm$1(g, e), C = g?.elements?.find((N3) => N3.name === "w:numStyleLink")?.attributes["w:val"];
23282
23262
  if (C) {
23283
23263
  const N3 = Oo$3(C, n);
23284
23264
  return Ar$2(N3.numId, e, null, n);
@@ -23286,7 +23266,7 @@ Actual: ` + p3.attribValue
23286
23266
  const F = D3?.elements?.find((N3) => N3.name === "w:start")?.attributes["w:val"], w = D3?.elements?.find((N3) => N3.name === "w:numFmt")?.attributes["w:val"], B3 = D3?.elements?.find((N3) => N3.name === "w:lvlText").attributes["w:val"], R = D3?.elements?.find((N3) => N3.name === "w:lvlJc").attributes["w:val"], v = D3?.elements?.find((N3) => N3.name === "w:pPr"), k = D3?.elements?.find((N3) => N3.name === "w:rPr");
23287
23267
  return { start: F, numFmt: w, lvlText: B3, lvlJc: R, pPr: v, rPr: k };
23288
23268
  };
23289
- function jm$1(r22, e, t) {
23269
+ function Um$1(r22, e, t) {
23290
23270
  if (!r22) return;
23291
23271
  const { attributes: n = {} } = r22, { paragraphProperties: i3 = {} } = n, { elements: s = [] } = i3, u = r22.elements.find((E) => E.name === "w:pPr")?.elements?.find((E) => E.name === "w:pStyle")?.attributes["w:val"], c3 = Nr$1({ node: r22, styleId: u, docx: t });
23292
23272
  if (!c3) return {};
@@ -23299,17 +23279,17 @@ Actual: ` + p3.attribValue
23299
23279
  rPr: k
23300
23280
  } = Ar$2(h3, e, C, t);
23301
23281
  let N3, M3;
23302
- v && (N3 = zm$1(v)), k && (M3 = Vm$1(k));
23282
+ v && (N3 = Hm$1(v)), k && (M3 = zm$1(k));
23303
23283
  let _;
23304
- if (Mm$1.includes(w?.toLowerCase())) _ = "bulletList";
23305
- else if (qm$1.includes(w)) _ = "orderedList";
23284
+ if (qm$1.includes(w?.toLowerCase())) _ = "bulletList";
23285
+ else if (_m$1.includes(w)) _ = "orderedList";
23306
23286
  else return {};
23307
23287
  return { listType: _, listOrderingType: w, ilvl: D3, numId: h3, listrPrs: M3, listpPrs: N3, start: F, lvlText: B3, lvlJc: R };
23308
23288
  }
23309
- function Hm$1(r22, e) {
23289
+ function jm$1(r22, e) {
23310
23290
  return r22?.elements?.find((t) => Number(t.attributes["w:ilvl"]) === e);
23311
23291
  }
23312
- function zm$1(r22) {
23292
+ function Hm$1(r22) {
23313
23293
  const { elements: e } = r22, t = ["w:ind", "w:jc", "w:tabs"], n = {};
23314
23294
  return e && e.forEach((i3) => {
23315
23295
  t.includes(i3.name);
@@ -23319,7 +23299,7 @@ Actual: ` + p3.attribValue
23319
23299
  });
23320
23300
  }), n;
23321
23301
  }
23322
- function Vm$1(r22) {
23302
+ function zm$1(r22) {
23323
23303
  const { elements: e } = r22, t = [
23324
23304
  "w:rFonts",
23325
23305
  "w:b",
@@ -23376,7 +23356,7 @@ Actual: ` + p3.attribValue
23376
23356
  }
23377
23357
  let C;
23378
23358
  if (g && (C = g.attributes["w:val"], o.attrs.styleId = C), t) {
23379
- const v = Gm$1(s, t, C);
23359
+ const v = Vm$1(s, t, C);
23380
23360
  o.attrs.indent || (o.attrs.indent = {}), (v.left || v.left === 0) && (o.attrs.indent.left = v.left), (v.right || v.right === 0) && (o.attrs.indent.right = v.right), (v.firstLine || v.firstLine === 0) && (o.attrs.indent.firstLine = v.firstLine), (v.hanging || v.hanging === 0) && (o.attrs.indent.hanging = v.hanging), (v.textIndent || v.textIndent === 0) && (o.attrs.textIndent = `${v.textIndent}in`);
23381
23361
  }
23382
23362
  const F = h3?.elements?.find((v) => v.name === "w:jc");
@@ -23400,7 +23380,7 @@ Actual: ` + p3.attribValue
23400
23380
  });
23401
23381
  const R = h3?.elements?.find((v) => v.name === "w:sectPr");
23402
23382
  return R && (o.attrs.paragraphProperties || (o.attrs.paragraphProperties = {}), o.attrs.paragraphProperties.sectPr = R, o.attrs.pageBreakSource = "sectPr"), { nodes: o ? [o] : [], consumed: 1 };
23403
- }, Gm$1 = (r22, e, t = "") => {
23383
+ }, Vm$1 = (r22, e, t = "") => {
23404
23384
  const n = {
23405
23385
  left: 0,
23406
23386
  right: 0,
@@ -23443,11 +23423,11 @@ Actual: ` + p3.attribValue
23443
23423
  indent: k || R || v,
23444
23424
  justify: B3
23445
23425
  };
23446
- }, Wm$1 = {
23426
+ }, Gm$1 = {
23447
23427
  handlerName: "paragraphNodeHandler",
23448
23428
  handler: xu$2
23449
23429
  };
23450
- function Jm$1(r22, e) {
23430
+ function Wm$1(r22, e) {
23451
23431
  const t = { lineSpaceBefore: null, lineSpaceAfter: null };
23452
23432
  if (!r22) return t;
23453
23433
  const n = e["word/styles.xml"];
@@ -23511,14 +23491,14 @@ Actual: ` + p3.attribValue
23511
23491
  continue;
23512
23492
  }
23513
23493
  if (o === "end" && n) {
23514
- t.push(i3), e.push(...$m$1(t)), t = [], n = false;
23494
+ t.push(i3), e.push(...Jm$1(t)), t = [], n = false;
23515
23495
  continue;
23516
23496
  }
23517
23497
  n ? t.push(i3) : e.push(i3);
23518
23498
  }
23519
23499
  return t.length && e.push(...t), e;
23520
23500
  }
23521
- const $m$1 = (r22 = []) => {
23501
+ const Jm$1 = (r22 = []) => {
23522
23502
  let e = [], t = false, n = false;
23523
23503
  const i3 = r22.findIndex(
23524
23504
  (h3) => h3.elements?.some((g) => g.name === "w:fldChar" && g.attributes["w:fldCharType"] === "separate")
@@ -23555,7 +23535,7 @@ Actual: ` + p3.attribValue
23555
23535
  });
23556
23536
  }
23557
23537
  return e;
23558
- }, Km$1 = (r22) => nodeListHandler.handler({ ...r22, nodes: node.elements }), Xm$1 = (r22) => {
23538
+ }, $m$1 = (r22) => nodeListHandler.handler({ ...r22, nodes: node.elements }), Km$1 = (r22) => {
23559
23539
  const { nodes: e } = r22;
23560
23540
  if (e.length === 0 || e[0].name !== "w:sdt")
23561
23541
  return { nodes: [], consumed: 0 };
@@ -23570,14 +23550,14 @@ Actual: ` + p3.attribValue
23570
23550
  consumed: 1
23571
23551
  };
23572
23552
  }, Lo$2 = {
23573
- "Table of Contents": Km$1
23574
- }, Ym$1 = (r22) => {
23553
+ "Table of Contents": $m$1
23554
+ }, Xm$1 = (r22) => {
23575
23555
  const { nodes: e, docx: t, nodeListHandler: n, insideTrackChange: i3 } = r22;
23576
23556
  if (e.length === 0 || e[0].name !== "w:sdt")
23577
23557
  return { nodes: [], consumed: 0 };
23578
23558
  const s = e[0], o = s.elements.find((_) => _.name === "w:sdtPr"), a = s.elements.find((_) => _.name === "w:sdtContent"), u = o?.elements.find((_) => _.name === "w:fieldTypeShort")?.attributes["w:val"], { attrs: c3, marks: l } = Eu$2(a);
23579
23559
  if (o?.elements.find((_) => _.name === "w:docPartObj"))
23580
- return Xm$1({ nodes: e, docx: t, nodeListHandler: n, insideTrackChange: i3 });
23560
+ return Km$1({ nodes: e, docx: t, nodeListHandler: n, insideTrackChange: i3 });
23581
23561
  const g = o?.elements.find((_) => _.name === "w:alias"), D3 = o?.elements.find((_) => _.name === "w:tag"), A = o?.elements.find((_) => _.name === "w:fieldType")?.attributes["w:val"], C = o?.elements.find((_) => _.name === "w:fieldColor")?.attributes["w:val"], F = o?.elements.find((_) => _.name === "w:fieldMultipleImage")?.attributes["w:val"], w = o?.elements.find((_) => _.name === "w:fieldFontFamily")?.attributes["w:val"], B3 = o?.elements.find((_) => _.name === "w:fieldFontSize")?.attributes["w:val"], R = o?.elements.find((_) => _.name === "w:fieldTextColor")?.attributes["w:val"], v = o?.elements.find((_) => _.name === "w:fieldTextHighlight")?.attributes["w:val"], k = {
23582
23562
  type: u,
23583
23563
  fieldId: D3?.attributes["w:val"],
@@ -23627,10 +23607,10 @@ Actual: ` + p3.attribValue
23627
23607
  attrs: u,
23628
23608
  marks: o
23629
23609
  };
23630
- }, Zm$1 = {
23610
+ }, Ym$1 = {
23631
23611
  handlerName: "annotationNodeHandler",
23632
- handler: Ym$1
23633
- }, Qm$1 = (r22) => {
23612
+ handler: Xm$1
23613
+ }, Zm$1 = (r22) => {
23634
23614
  const { nodes: e, nodeListHandler: t } = r22;
23635
23615
  if (e.length === 0 || e[0].name !== "w:sdt")
23636
23616
  return { nodes: [], consumed: 0 };
@@ -23646,17 +23626,17 @@ Actual: ` + p3.attribValue
23646
23626
  }],
23647
23627
  consumed: 1
23648
23628
  };
23649
- }, ep = {
23629
+ }, Qm$1 = {
23650
23630
  handlerName: "sdtNodeHandler",
23651
- handler: Qm$1
23652
- }, tp = (r22) => {
23631
+ handler: Zm$1
23632
+ }, ep = (r22) => {
23653
23633
  const { nodes: e, docx: t, nodeListHandler: n } = r22;
23654
23634
  if (!e || e.length === 0)
23655
23635
  return { nodes: [], consumed: 0 };
23656
23636
  const i3 = e[0], { name: s } = i3, { attributes: o, elements: a, marks: u = [] } = xt$1(i3);
23657
23637
  if (s === "w:sdt")
23658
23638
  return { nodes: [], consumed: 0 };
23659
- if (Em$1(i3))
23639
+ if (Dm$1(i3))
23660
23640
  return {
23661
23641
  nodes: [{
23662
23642
  type: fr$1(i3),
@@ -23676,7 +23656,7 @@ Actual: ` + p3.attribValue
23676
23656
  consumed: 0,
23677
23657
  unhandled: true
23678
23658
  };
23679
- const c3 = [], l = rp(i3);
23659
+ const c3 = [], l = tp(i3);
23680
23660
  if (a && a.length) {
23681
23661
  const g = a.map((C) => (C.marks || (C.marks = []), C.marks.push(...u), C)), D3 = { ...r22, nodes: g, parentStyleId: l }, A = n.handler(D3);
23682
23662
  c3.push(...A);
@@ -23687,13 +23667,13 @@ Actual: ` + p3.attribValue
23687
23667
  attrs: { ...o },
23688
23668
  marks: []
23689
23669
  }], consumed: 1 };
23690
- }, rp = (r22) => {
23670
+ }, tp = (r22) => {
23691
23671
  const t = r22.elements?.find((n) => n.name === "w:pPr")?.elements?.find((n) => n.name === "w:pStyle");
23692
23672
  return t ? t.attributes["w:val"] : null;
23693
- }, np = {
23673
+ }, rp = {
23694
23674
  handlerName: "standardNodeHandler",
23695
- handler: tp
23696
- }, ip = (r22) => {
23675
+ handler: ep
23676
+ }, np = (r22) => {
23697
23677
  const { nodes: e } = r22;
23698
23678
  return e.length === 0 || e[0].name !== "w:br" ? { nodes: [], consumed: 0 } : {
23699
23679
  nodes: [{
@@ -23701,10 +23681,10 @@ Actual: ` + p3.attribValue
23701
23681
  }],
23702
23682
  consumed: 1
23703
23683
  };
23704
- }, sp = {
23684
+ }, ip = {
23705
23685
  handlerName: "lineBreakNodeHandler",
23706
- handler: ip
23707
- }, op = (r22) => {
23686
+ handler: np
23687
+ }, sp = (r22) => {
23708
23688
  const { nodes: e, nodeListHandler: t, editor: n } = r22;
23709
23689
  if (e.length === 0 || e[0].name !== "w:bookmarkStart")
23710
23690
  return { nodes: [], consumed: 0 };
@@ -23733,10 +23713,10 @@ Actual: ` + p3.attribValue
23733
23713
  }
23734
23714
  const c3 = { ...r22, nodes: [i3] }, l = s(c3);
23735
23715
  return l.nodes.length === 1 && (l.nodes[0].attrs.name = i3.attributes["w:name"], l.nodes[0].attrs.id = i3.attributes["w:id"]), l;
23736
- }, ap = {
23716
+ }, op = {
23737
23717
  handlerName: "bookmarkNodeHandler",
23738
- handler: op
23739
- }, up = (r22) => {
23718
+ handler: sp
23719
+ }, ap = (r22) => {
23740
23720
  const e = { nodes: [], consumed: 0 }, { nodes: t, nodeListHandler: n, parentStyleId: i3, docx: s } = r22;
23741
23721
  if (t.length === 0 || t[0].name !== "w:p")
23742
23722
  return e;
@@ -23755,26 +23735,26 @@ Actual: ` + p3.attribValue
23755
23735
  ...r22,
23756
23736
  nodes: g
23757
23737
  }), consumed: 1 };
23758
- }, lp = {
23738
+ }, up = {
23759
23739
  handlerName: "alternateChoiceHandler",
23760
- handler: up
23761
- }, cp = (r22) => {
23740
+ handler: ap
23741
+ }, lp = (r22) => {
23762
23742
  const { nodes: e } = r22;
23763
23743
  return e.length === 0 || e[0].name !== "sd:autoPageNumber" ? { nodes: [], consumed: 0 } : { nodes: [{
23764
23744
  type: "page-number"
23765
23745
  }], consumed: 1 };
23766
- }, fp = {
23746
+ }, cp = {
23767
23747
  handlerName: "autoPageNumberHandler",
23768
- handler: cp
23769
- }, dp = (r22) => {
23748
+ handler: lp
23749
+ }, fp = (r22) => {
23770
23750
  const { nodes: e } = r22;
23771
23751
  return e.length === 0 || e[0].name !== "sd:totalPageNumber" ? { nodes: [], consumed: 0 } : { nodes: [{
23772
23752
  type: "total-page-number"
23773
23753
  }], consumed: 1 };
23774
- }, mp = {
23754
+ }, dp = {
23775
23755
  handlerName: "autoTotalPageCountEntity",
23776
- handler: dp
23777
- }, pp = (r22) => {
23756
+ handler: fp
23757
+ }, mp = (r22) => {
23778
23758
  const { nodes: e, docx: t, parentStyleId: n } = r22;
23779
23759
  if (e.length === 0 || e[0].name !== "w:tab")
23780
23760
  return { nodes: [], consumed: 0 };
@@ -23791,10 +23771,10 @@ Actual: ` + p3.attribValue
23791
23771
  },
23792
23772
  content: []
23793
23773
  }], consumed: 1 };
23794
- }, hp = {
23774
+ }, pp = {
23795
23775
  handlerName: "tabNodeHandler",
23796
- handler: pp
23797
- }, gp = (r22) => {
23776
+ handler: mp
23777
+ }, hp = (r22) => {
23798
23778
  const { nodes: e } = r22;
23799
23779
  if (!e.length || e[0].name !== "w:p")
23800
23780
  return { nodes: [], consumed: 0 };
@@ -23807,14 +23787,14 @@ Actual: ` + p3.attribValue
23807
23787
  if (!o && !a)
23808
23788
  return { nodes: [], consumed: 0 };
23809
23789
  let u = null;
23810
- return a && !o ? u = null : o.elements?.find((h3) => h3.name === "v:textbox") && (u = wp$1({
23790
+ return a && !o ? u = null : o.elements?.find((h3) => h3.name === "v:textbox") && (u = gp({
23811
23791
  pict: i3,
23812
23792
  pNode: t,
23813
23793
  shape: o,
23814
23794
  params: r22
23815
23795
  })), { nodes: u ? [u] : [], consumed: 1 };
23816
23796
  };
23817
- function wp$1({
23797
+ function gp({
23818
23798
  pict: r22,
23819
23799
  pNode: e,
23820
23800
  shape: t,
@@ -23822,7 +23802,7 @@ Actual: ` + p3.attribValue
23822
23802
  }) {
23823
23803
  const i3 = {}, s = {}, o = t.attributes || {};
23824
23804
  i3.attributes = o, o.fillcolor && (i3.fillcolor = o.fillcolor);
23825
- const a = yp(o.style), u = bp$1(a);
23805
+ const a = wp$1(o.style), u = yp(a);
23826
23806
  u && (i3.style = u);
23827
23807
  const c3 = t.elements?.find((w) => w.name === "v:textbox"), l = t.elements?.find((w) => w.name === "w10:wrap");
23828
23808
  l?.attributes && (i3.wrapAttributes = l.attributes), c3?.attributes && (s.attributes = c3.attributes);
@@ -23841,13 +23821,13 @@ Actual: ` + p3.attribValue
23841
23821
  }]
23842
23822
  };
23843
23823
  }
23844
- function yp(r22) {
23824
+ function wp$1(r22) {
23845
23825
  return r22 ? r22.split(";").filter((e) => !!e.trim()).reduce((e, t) => {
23846
23826
  const [n, i3] = t.split(":").map((s) => s.trim());
23847
23827
  return n && i3 && (e[n] = i3), e;
23848
23828
  }, {}) : {};
23849
23829
  }
23850
- function bp$1(r22) {
23830
+ function yp(r22) {
23851
23831
  const e = [
23852
23832
  "width",
23853
23833
  "height"
@@ -23865,11 +23845,11 @@ Actual: ` + p3.attribValue
23865
23845
  e.includes(n) && (t += `${n}: ${i3};`);
23866
23846
  return t;
23867
23847
  }
23868
- const xp$1 = {
23848
+ const bp$1 = {
23869
23849
  handlerName: "handlePictNode",
23870
- handler: gp
23850
+ handler: hp
23871
23851
  };
23872
- function Ap$1({ docx: r22 }) {
23852
+ function xp$1({ docx: r22 }) {
23873
23853
  const e = Jt$2(), t = r22["word/comments.xml"];
23874
23854
  if (!t) return;
23875
23855
  const { elements: n } = t;
@@ -23895,16 +23875,16 @@ Actual: ` + p3.attribValue
23895
23875
  trackedDeletedText: B3
23896
23876
  };
23897
23877
  });
23898
- return vp$1({ docx: r22, comments: s });
23878
+ return Ap$1({ docx: r22, comments: s });
23899
23879
  }
23900
- const vp$1 = ({ docx: r22, comments: e }) => {
23880
+ const Ap$1 = ({ docx: r22, comments: e }) => {
23901
23881
  const t = r22["word/commentsExtended.xml"];
23902
23882
  if (!t) return [];
23903
23883
  const { elements: n } = t, { elements: i3 } = n[0], s = i3.filter((o) => o.name === "w15:commentEx");
23904
23884
  return e.map((o) => {
23905
23885
  const a = s.find((g) => g.attributes["w15:paraId"] === o.paraId);
23906
23886
  if (!a) return { ...o };
23907
- const { isDone: u, paraIdParent: c3 } = Dp$1(a);
23887
+ const { isDone: u, paraIdParent: c3 } = vp$1(a);
23908
23888
  let l;
23909
23889
  return c3 && (l = e.find((g) => g.paraId === c3)), {
23910
23890
  ...o,
@@ -23912,11 +23892,11 @@ Actual: ` + p3.attribValue
23912
23892
  parentCommentId: l?.commentId
23913
23893
  };
23914
23894
  });
23915
- }, Dp$1 = (r22) => {
23895
+ }, vp$1 = (r22) => {
23916
23896
  const { attributes: e } = r22, t = e["w15:paraId"], n = e["w15:done"] === "1", i3 = e["w15:paraIdParent"];
23917
23897
  return { paraId: t, isDone: n, paraIdParent: i3 };
23918
- }, Ep$1 = (r22, e, t) => {
23919
- const n = Ue$1(sm$1(r22));
23898
+ }, Dp$1 = (r22, e, t) => {
23899
+ const n = Ue$1(im$1(r22));
23920
23900
  if (!n) return null;
23921
23901
  if (e?.telemetry) {
23922
23902
  const o = Object.keys(r22).map((a) => {
@@ -23941,7 +23921,7 @@ Actual: ` + p3.attribValue
23941
23921
  }
23942
23922
  const i3 = Jt$2(), s = n.elements[0].elements.find((o) => o.name === "w:body");
23943
23923
  if (s) {
23944
- const o = s, a = ["w:sectPr"], u = o.elements?.filter((D3) => !a.includes(D3.name)) ?? [], c3 = Ap$1({ docx: r22 }), l = {}, g = {
23924
+ const o = s, a = ["w:sectPr"], u = o.elements?.filter((D3) => !a.includes(D3.name)) ?? [], c3 = xp$1({ docx: r22 }), l = {}, g = {
23945
23925
  type: "doc",
23946
23926
  content: i3.handler({
23947
23927
  nodes: u,
@@ -23964,40 +23944,40 @@ Actual: ` + p3.attribValue
23964
23944
  ), {
23965
23945
  pmDoc: g,
23966
23946
  savedTagsToRestore: o,
23967
- pageStyles: Sp$1(o, r22, e, t),
23947
+ pageStyles: Cp$1(o, r22, e, t),
23968
23948
  comments: c3,
23969
- linkedStyles: Tp$1(r22),
23970
- numbering: kp$1(r22)
23949
+ linkedStyles: Sp$1(r22),
23950
+ numbering: Bp$1(r22)
23971
23951
  };
23972
23952
  }
23973
23953
  return null;
23974
23954
  }, Jt$2 = () => {
23975
23955
  const r22 = [
23976
- lp,
23977
- Nm$1,
23978
- xp$1,
23979
- Wm$1,
23980
- _m$1,
23981
- Rm$1,
23982
- sp,
23983
- Zm$1,
23984
- ep,
23985
- ap,
23986
- Fm$1,
23987
- gm$1,
23988
- Sm$1,
23989
- am$1,
23990
- hp,
23991
- fp,
23992
- mp,
23993
- np
23956
+ up,
23957
+ km$1,
23958
+ bp$1,
23959
+ Gm$1,
23960
+ Lm$1,
23961
+ Im$1,
23962
+ ip,
23963
+ Ym$1,
23964
+ Qm$1,
23965
+ op,
23966
+ Tm$1,
23967
+ hm$1,
23968
+ Cm$1,
23969
+ om$1,
23970
+ pp,
23971
+ cp,
23972
+ dp,
23973
+ rp
23994
23974
  //this should be the last one, bcs this parses everything!!!
23995
23975
  ];
23996
23976
  return {
23997
- handler: Cp$1(r22),
23977
+ handler: Ep$1(r22),
23998
23978
  handlerEntities: r22
23999
23979
  };
24000
- }, Cp$1 = (r22) => {
23980
+ }, Ep$1 = (r22) => {
24001
23981
  const e = (n, i3, s, o) => !n || i3 < 0 || i3 >= n.length ? {
24002
23982
  elementIndex: i3,
24003
23983
  error: "index_out_of_bounds",
@@ -24082,7 +24062,7 @@ Actual: ` + p3.attribValue
24082
24062
  };
24083
24063
  return t;
24084
24064
  };
24085
- function Sp$1(r22, e, t, n) {
24065
+ function Cp$1(r22, e, t, n) {
24086
24066
  const i3 = r22.elements?.find((o) => o.name === "w:sectPr"), s = {};
24087
24067
  return i3?.elements?.forEach((o) => {
24088
24068
  const { name: a, attributes: u } = o;
@@ -24120,9 +24100,9 @@ Actual: ` + p3.attribValue
24120
24100
  case "w:titlePg":
24121
24101
  t.headerIds.titlePg = true;
24122
24102
  }
24123
- }), Bp$1(e, t, n), s.alternateHeaders = Np$1(e), s;
24103
+ }), Fp$1(e, t, n), s.alternateHeaders = kp$1(e), s;
24124
24104
  }
24125
- function Tp$1(r22) {
24105
+ function Sp$1(r22) {
24126
24106
  const e = r22["word/styles.xml"];
24127
24107
  if (!e) return [];
24128
24108
  const { elements: t } = e.elements[0], n = t.filter((o) => o.name === "w:style");
@@ -24132,7 +24112,7 @@ Actual: ` + p3.attribValue
24132
24112
  });
24133
24113
  const s = [];
24134
24114
  return n.forEach((o) => {
24135
- const a = o.attributes["w:styleId"], u = Jm$1(a, r22), c3 = {
24115
+ const a = o.attributes["w:styleId"], u = Wm$1(a, r22), c3 = {
24136
24116
  id: o.attributes["w:styleId"],
24137
24117
  type: o.attributes["w:type"],
24138
24118
  definition: u,
@@ -24141,7 +24121,7 @@ Actual: ` + p3.attribValue
24141
24121
  s.push(c3);
24142
24122
  }), s;
24143
24123
  }
24144
- function Fp$1(r22) {
24124
+ function Tp$1(r22) {
24145
24125
  if (!r22) return null;
24146
24126
  const e = Ue$1(r22), { elements: t } = e.elements[0];
24147
24127
  return Object.keys(Co$2).forEach((n) => {
@@ -24151,7 +24131,7 @@ Actual: ` + p3.attribValue
24151
24131
  }
24152
24132
  }), e;
24153
24133
  }
24154
- const Bp$1 = (r22, e, t) => {
24134
+ const Fp$1 = (r22, e, t) => {
24155
24135
  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), c3 = s.filter((g) => g.attributes.Type === a), h3 = (Cu$2(r22["word/document.xml"]) || []).flatMap((g) => g.elements);
24156
24136
  u.forEach((g) => {
24157
24137
  const { rId: D3, referenceFile: A, currentFileName: C } = _o$3(g, r22);
@@ -24189,7 +24169,7 @@ Actual: ` + p3.attribValue
24189
24169
  currentFileName: n
24190
24170
  };
24191
24171
  };
24192
- function kp$1(r22) {
24172
+ function Bp$1(r22) {
24193
24173
  let e = r22["word/numbering.xml"];
24194
24174
  (!e || !e.elements?.length || !e.elements[0].elements?.length) && (e = nu$2);
24195
24175
  const t = e.elements[0].elements, n = t.filter((a) => a.name === "w:abstractNum"), i3 = t.filter((a) => a.name === "w:num"), s = {};
@@ -24206,12 +24186,12 @@ Actual: ` + p3.attribValue
24206
24186
  definitions: o
24207
24187
  };
24208
24188
  }
24209
- const Np$1 = (r22) => {
24189
+ const kp$1 = (r22) => {
24210
24190
  const e = r22["word/settings.xml"];
24211
24191
  if (!e || !e.elements?.length) return false;
24212
24192
  const { elements: t = [] } = e.elements[0];
24213
24193
  return !!t.find((i3) => i3.name === "w:evenAndOddHeaders");
24214
- }, Ip$1 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink";
24194
+ }, Np$1 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink";
24215
24195
  var Ge$2, Su$2, Tu$2, Fu$2, Bu$2, ku$2;
24216
24196
  const pt$1 = class pt2 {
24217
24197
  constructor(e = null) {
@@ -24220,7 +24200,7 @@ Actual: ` + p3.attribValue
24220
24200
  }
24221
24201
  parseFromXml() {
24222
24202
  this.docx?.forEach((e) => {
24223
- this.convertedXml[e.name] = this.parseXmlToJson(e.content), e.name === "word/document.xml" && (this.documentAttributes = this.convertedXml[e.name].elements[0]?.attributes), e.name === "word/styles.xml" && (this.convertedXml[e.name] = Fp$1(this.convertedXml[e.name]));
24203
+ this.convertedXml[e.name] = this.parseXmlToJson(e.content), e.name === "word/document.xml" && (this.documentAttributes = this.convertedXml[e.name].elements[0]?.attributes), e.name === "word/styles.xml" && (this.convertedXml[e.name] = Tp$1(this.convertedXml[e.name]));
24224
24204
  }), this.initialJSON = this.convertedXml["word/document.xml"], this.initialJSON || (this.initialJSON = this.parseXmlToJson(this.xml)), this.declaration = this.initialJSON?.declaration;
24225
24205
  }
24226
24206
  parseXmlToJson(e) {
@@ -24239,7 +24219,7 @@ Actual: ` + p3.attribValue
24239
24219
  return;
24240
24220
  }
24241
24221
  }
24242
- static updateDocumentVersion(e = this.convertedXml, t = "0.12.8") {
24222
+ static updateDocumentVersion(e = this.convertedXml, t = "0.12.9") {
24243
24223
  const n = "docProps/custom.xml";
24244
24224
  e[n] || (e[n] = Nu$2());
24245
24225
  const i3 = e["docProps/custom.xml"];
@@ -24341,7 +24321,7 @@ Actual: ` + p3.attribValue
24341
24321
  }
24342
24322
  getSchema(e) {
24343
24323
  this.getDocumentInternalId();
24344
- const t = Ep$1({ ...this.convertedXml, media: this.media }, this, e);
24324
+ const t = Dp$1({ ...this.convertedXml, media: this.media }, this, e);
24345
24325
  return t ? (this.savedTagsToRestore.push({ ...t.savedTagsToRestore }), this.pageStyles = t.pageStyles, this.numbering = t.numbering, this.comments = t.comments, this.linkedStyles = t.linkedStyles, t.pmDoc) : null;
24346
24326
  }
24347
24327
  schemaToXml(e, t = false) {
@@ -24371,7 +24351,7 @@ Actual: ` + p3.attribValue
24371
24351
  });
24372
24352
  A = { ...F }, C = w;
24373
24353
  }
24374
- return this.convertedXml = { ...this.convertedXml, ...A }, Je$1(this, Ge$2, Bu$2).call(this, [...h3.relationships, ...C]), Je$1(this, Ge$2, Fu$2).call(this, { isFinalDoc: i3 }), Rp$1(this.convertedXml), Je$1(this, Ge$2, Su$2).call(this, h3), D3;
24354
+ return this.convertedXml = { ...this.convertedXml, ...A }, Je$1(this, Ge$2, Bu$2).call(this, [...h3.relationships, ...C]), Je$1(this, Ge$2, Fu$2).call(this, { isFinalDoc: i3 }), Ip$1(this.convertedXml), Je$1(this, Ge$2, Su$2).call(this, h3), D3;
24375
24355
  }
24376
24356
  exportToXmlJson({
24377
24357
  data: e,
@@ -24484,7 +24464,7 @@ Actual: ` + p3.attribValue
24484
24464
  const t = this.convertedXml["word/_rels/document.xml.rels"], n = t.elements.find((a) => a.name === "Relationships"), i3 = [], s = /rId|mi/g;
24485
24465
  let o = Math.max(...n.elements.map((a) => Number(a.attributes.Id.replace(s, ""))));
24486
24466
  e.forEach((a) => {
24487
- const u = a.attributes.Id, c3 = n.elements.find((g) => g.attributes.Target === a.attributes.Target), l = a.attributes.Target?.startsWith("media/") && u.length > 6, h3 = a.attributes.Type === Ip$1 && u.length > 6;
24467
+ const u = a.attributes.Id, c3 = n.elements.find((g) => g.attributes.Target === a.attributes.Target), l = a.attributes.Target?.startsWith("media/") && u.length > 6, h3 = a.attributes.Type === Np$1 && u.length > 6;
24488
24468
  c3 && !l && !h3 || (a.attributes.Target = a.attributes?.Target?.replace(/&/g, "&amp;"), a.attributes.Id = u.length > 6 ? u : `rId${++o}`, i3.push(a));
24489
24469
  }), n.elements = [...n.elements, ...i3], this.convertedXml["word/_rels/document.xml.rels"] = t;
24490
24470
  }, ku$2 = async function(e, t) {
@@ -24544,7 +24524,7 @@ Actual: ` + p3.attribValue
24544
24524
  "w:tcPr": "tableCellProperties"
24545
24525
  })), Mt$1(pt$1, "elements", /* @__PURE__ */ new Set(["w:document", "w:body", "w:p", "w:r", "w:t", "w:delText"]));
24546
24526
  let Ot$1 = pt$1;
24547
- function Rp$1(r22) {
24527
+ function Ip$1(r22) {
24548
24528
  const e = "docProps/custom.xml";
24549
24529
  r22[e] || (r22[e] = Nu$2());
24550
24530
  const n = r22[e].elements.find((a) => a.name === "Properties");
@@ -24563,7 +24543,7 @@ Actual: ` + p3.attribValue
24563
24543
  function Nu$2() {
24564
24544
  return Kf$2;
24565
24545
  }
24566
- function Iu$2(r22 = 2, e = "0.12.8") {
24546
+ function Iu$2(r22 = 2, e = "0.12.9") {
24567
24547
  return {
24568
24548
  type: "element",
24569
24549
  name: "property",
@@ -26950,7 +26930,7 @@ Actual: ` + p3.attribValue
26950
26930
  async updateContentTypes(nt2, _) {
26951
26931
  const R = Object.keys(_).map((i3) => this.getFileExtension(i3)), y = "[Content_Types].xml", l = await nt2.file(y).async("string");
26952
26932
  let a = "";
26953
- const r = rh$2(l), h3 = /* @__PURE__ */ new Set();
26933
+ const r = th$2(l), h3 = /* @__PURE__ */ new Set();
26954
26934
  for (let i3 of R) {
26955
26935
  if (r.includes(i3) || h3.has(i3)) continue;
26956
26936
  const d = `<Default Extension="${i3}" ContentType="image/${i3}"/>`;
@@ -27387,12 +27367,12 @@ Actual: ` + p3.attribValue
27387
27367
  }
27388
27368
  return hi$1;
27389
27369
  }
27390
- const vt$1 = new Wp$1("history"), Op = new Wp$1("closeHistory");
27370
+ const vt$1 = new Gp$1("history"), Op = new Gp$1("closeHistory");
27391
27371
  function Tp(e = {}) {
27392
27372
  return e = {
27393
27373
  depth: e.depth || 100,
27394
27374
  newGroupDelay: e.newGroupDelay || 500
27395
- }, new Gp$1({
27375
+ }, new Vp$1({
27396
27376
  key: vt$1,
27397
27377
  state: {
27398
27378
  init() {
@@ -27449,11 +27429,11 @@ Actual: ` + p3.attribValue
27449
27429
  this.config = {
27450
27430
  ...this.config,
27451
27431
  ...t
27452
- }, this.name = this.config.name, this.config.addOptions && (this.options = Xp$1(
27432
+ }, this.name = this.config.name, this.config.addOptions && (this.options = Kp$1(
27453
27433
  I$1(this, "addOptions", {
27454
27434
  name: this.name
27455
27435
  })
27456
- )), this.storage = Xp$1(
27436
+ )), this.storage = Kp$1(
27457
27437
  I$1(this, "addStorage", {
27458
27438
  name: this.name,
27459
27439
  options: this.options
@@ -27506,11 +27486,11 @@ Actual: ` + p3.attribValue
27506
27486
  this.config = {
27507
27487
  ...this.config,
27508
27488
  ...t
27509
- }, this.name = this.config.name, this.config.addOptions && (this.options = Xp$1(
27489
+ }, this.name = this.config.name, this.config.addOptions && (this.options = Kp$1(
27510
27490
  I$1(this, "addOptions", {
27511
27491
  name: this.name
27512
27492
  })
27513
- )), this.storage = Xp$1(
27493
+ )), this.storage = Kp$1(
27514
27494
  I$1(this, "addStorage", {
27515
27495
  name: this.name,
27516
27496
  options: this.options
@@ -27538,11 +27518,11 @@ Actual: ` + p3.attribValue
27538
27518
  this.config = {
27539
27519
  ...this.config,
27540
27520
  ...t
27541
- }, this.name = this.config.name, this.isExternal = !!this.config.isExternal, this.config.addOptions && (this.options = Xp$1(
27521
+ }, this.name = this.config.name, this.isExternal = !!this.config.isExternal, this.config.addOptions && (this.options = Kp$1(
27542
27522
  I$1(this, "addOptions", {
27543
27523
  name: this.name
27544
27524
  })
27545
- )), this.storage = Xp$1(
27525
+ )), this.storage = Kp$1(
27546
27526
  I$1(this, "addStorage", {
27547
27527
  name: this.name,
27548
27528
  options: this.options
@@ -27757,7 +27737,7 @@ Actual: ` + p3.attribValue
27757
27737
  return r;
27758
27738
  }, ft(N$1, Vn$2);
27759
27739
  function zi$1(e) {
27760
- const t = Object.entries(e).filter(([n, r]) => n === "attrs" && Yp$1(r) ? false : r != null);
27740
+ const t = Object.entries(e).filter(([n, r]) => n === "attrs" && Xp$1(r) ? false : r != null);
27761
27741
  return Object.fromEntries(t);
27762
27742
  }
27763
27743
  var Hn$2, Lc$1, Fc$1;
@@ -27771,7 +27751,7 @@ Actual: ` + p3.attribValue
27771
27751
  static createSchemaByExtensions(t, n) {
27772
27752
  var c3, d;
27773
27753
  const r = t.filter((u) => u.type === "node"), o = t.filter((u) => u.type === "mark"), i3 = r.find((u) => I$1(u, "topNode"))?.name, s = N$1.getAttributesFromExtensions(t), a = O$1(c3 = hr2, Hn$2, Lc$1).call(c3, r, s, n), l = O$1(d = hr2, Hn$2, Fc$1).call(d, o, s, n);
27774
- return new _p$1({ topNode: i3, nodes: a, marks: l });
27754
+ return new Lp$1({ topNode: i3, nodes: a, marks: l });
27775
27755
  }
27776
27756
  };
27777
27757
  Hn$2 = /* @__PURE__ */ new WeakSet(), Lc$1 = function(t, n, r) {
@@ -27790,19 +27770,19 @@ Actual: ` + p3.attribValue
27790
27770
  ...g ? g(i3) : {}
27791
27771
  };
27792
27772
  }, {}), d = zi$1({
27793
- content: Xp$1(I$1(i3, "content", a)),
27794
- group: Xp$1(I$1(i3, "group", a)),
27795
- marks: Xp$1(I$1(i3, "marks", a)),
27796
- inline: Xp$1(I$1(i3, "inline", a)),
27797
- atom: Xp$1(I$1(i3, "atom", a)),
27798
- selectable: Xp$1(I$1(i3, "selectable", a)),
27799
- draggable: Xp$1(I$1(i3, "draggable", a)),
27800
- code: Xp$1(I$1(i3, "code", a)),
27801
- defining: Xp$1(I$1(i3, "defining", a)),
27802
- isolating: Xp$1(I$1(i3, "isolating", a)),
27773
+ content: Kp$1(I$1(i3, "content", a)),
27774
+ group: Kp$1(I$1(i3, "group", a)),
27775
+ marks: Kp$1(I$1(i3, "marks", a)),
27776
+ inline: Kp$1(I$1(i3, "inline", a)),
27777
+ atom: Kp$1(I$1(i3, "atom", a)),
27778
+ selectable: Kp$1(I$1(i3, "selectable", a)),
27779
+ draggable: Kp$1(I$1(i3, "draggable", a)),
27780
+ code: Kp$1(I$1(i3, "code", a)),
27781
+ defining: Kp$1(I$1(i3, "defining", a)),
27782
+ isolating: Kp$1(I$1(i3, "isolating", a)),
27803
27783
  attrs: l,
27804
27784
  ...c3
27805
- }), u = Xp$1(I$1(i3, "parseDOM", a));
27785
+ }), u = Kp$1(I$1(i3, "parseDOM", a));
27806
27786
  u && (d.parseDOM = u.map((h3) => N$1.insertExtensionAttrsToParseRule(h3, s)));
27807
27787
  const f3 = I$1(i3, "renderDOM", a);
27808
27788
  f3 && (d.toDOM = (h3) => f3({
@@ -27823,13 +27803,13 @@ Actual: ` + p3.attribValue
27823
27803
  }, l = Object.fromEntries(
27824
27804
  s.map((f3) => [f3.name, { default: f3?.attribute?.default }])
27825
27805
  ), c3 = zi$1({
27826
- group: Xp$1(I$1(i3, "group", a)),
27827
- inclusive: Xp$1(I$1(i3, "inclusive", a)),
27828
- excludes: Xp$1(I$1(i3, "excludes", a)),
27829
- spanning: Xp$1(I$1(i3, "spanning", a)),
27830
- code: Xp$1(I$1(i3, "code", a)),
27806
+ group: Kp$1(I$1(i3, "group", a)),
27807
+ inclusive: Kp$1(I$1(i3, "inclusive", a)),
27808
+ excludes: Kp$1(I$1(i3, "excludes", a)),
27809
+ spanning: Kp$1(I$1(i3, "spanning", a)),
27810
+ code: Kp$1(I$1(i3, "code", a)),
27831
27811
  attrs: l
27832
- }), d = Xp$1(I$1(i3, "parseDOM", a));
27812
+ }), d = Kp$1(I$1(i3, "parseDOM", a));
27833
27813
  d && (c3.parseDOM = d.map((f3) => N$1.insertExtensionAttrsToParseRule(f3, s)));
27834
27814
  const u = I$1(i3, "renderDOM", a);
27835
27815
  return u && (c3.toDOM = (f3) => u({
@@ -27980,7 +27960,7 @@ Actual: ` + p3.attribValue
27980
27960
  return false;
27981
27961
  let o = $c$1(r);
27982
27962
  if (!o) {
27983
- let s = r.blockRange(), a = s && Mp$1(s);
27963
+ let s = r.blockRange(), a = s && qp$1(s);
27984
27964
  return a == null ? false : (t && t(e.tr.lift(s, a).scrollIntoView()), true);
27985
27965
  }
27986
27966
  let i3 = o.nodeBefore;
@@ -28083,10 +28063,10 @@ Actual: ` + p3.attribValue
28083
28063
  const Fp = (e, t) => {
28084
28064
  let n = e.selection, r = n instanceof $e$2, o;
28085
28065
  if (r) {
28086
- if (n.node.isTextblock || !Hp$1(e.doc, n.from))
28066
+ if (n.node.isTextblock || !jp$1(e.doc, n.from))
28087
28067
  return false;
28088
28068
  o = n.from;
28089
- } else if (o = zp$1(e.doc, n.from, -1), o == null)
28069
+ } else if (o = Hp$1(e.doc, n.from, -1), o == null)
28090
28070
  return false;
28091
28071
  if (t) {
28092
28072
  let i3 = e.tr.join(o);
@@ -28096,10 +28076,10 @@ Actual: ` + p3.attribValue
28096
28076
  }, Bp = (e, t) => {
28097
28077
  let n = e.selection, r;
28098
28078
  if (n instanceof $e$2) {
28099
- if (n.node.isTextblock || !Hp$1(e.doc, n.to))
28079
+ if (n.node.isTextblock || !jp$1(e.doc, n.to))
28100
28080
  return false;
28101
28081
  r = n.to;
28102
- } else if (r = zp$1(e.doc, n.to, 1), r == null)
28082
+ } else if (r = Hp$1(e.doc, n.to, 1), r == null)
28103
28083
  return false;
28104
28084
  return t && t(e.tr.join(r).scrollIntoView()), true;
28105
28085
  }, Wc$1 = (e, t) => {
@@ -28145,17 +28125,17 @@ Actual: ` + p3.attribValue
28145
28125
  return false;
28146
28126
  if (n.depth > 1 && n.after() != n.end(-1)) {
28147
28127
  let i3 = n.before();
28148
- if (jp$1(e.doc, i3))
28128
+ if (Up$1(e.doc, i3))
28149
28129
  return t && t(e.tr.split(i3).scrollIntoView()), true;
28150
28130
  }
28151
- let r = n.blockRange(), o = r && Mp$1(r);
28131
+ let r = n.blockRange(), o = r && qp$1(r);
28152
28132
  return o == null ? false : (t && t(e.tr.lift(r, o).scrollIntoView()), true);
28153
28133
  };
28154
28134
  function _p(e) {
28155
28135
  return (t, n) => {
28156
28136
  let { $from: r, $to: o } = t.selection;
28157
28137
  if (t.selection instanceof $e$2 && t.selection.node.isBlock)
28158
- return !r.parentOffset || !jp$1(t.doc, r.pos) ? false : (n && n(t.tr.split(r.pos).scrollIntoView()), true);
28138
+ return !r.parentOffset || !Up$1(t.doc, r.pos) ? false : (n && n(t.tr.split(r.pos).scrollIntoView()), true);
28159
28139
  if (!r.depth)
28160
28140
  return false;
28161
28141
  let i3 = [], s, a, l = false, c3 = false;
@@ -28170,8 +28150,8 @@ Actual: ` + p3.attribValue
28170
28150
  }
28171
28151
  let d = t.tr;
28172
28152
  (t.selection instanceof rt$3 || t.selection instanceof at$3) && d.deleteSelection();
28173
- let u = d.mapping.map(r.pos), f3 = jp$1(d.doc, u, i3.length, i3);
28174
- if (f3 || (i3[0] = a ? { type: a } : null, f3 = jp$1(d.doc, u, i3.length, i3)), !f3)
28153
+ let u = d.mapping.map(r.pos), f3 = Up$1(d.doc, u, i3.length, i3);
28154
+ if (f3 || (i3[0] = a ? { type: a } : null, f3 = Up$1(d.doc, u, i3.length, i3)), !f3)
28175
28155
  return false;
28176
28156
  if (d.split(u, i3.length, i3), !l && c3 && r.node(s).type != a) {
28177
28157
  let p3 = d.mapping.map(r.before(s)), h3 = d.doc.resolve(p3);
@@ -28183,7 +28163,7 @@ Actual: ` + p3.attribValue
28183
28163
  const $p = _p(), Vp = (e, t) => (t && t(e.tr.setSelection(new at$3(e.doc))), true);
28184
28164
  function Hp(e, t, n) {
28185
28165
  let r = t.nodeBefore, o = t.nodeAfter, i3 = t.index();
28186
- return !r || !o || !r.type.compatibleContent(o.type) ? false : !r.content.size && t.parent.canReplace(i3 - 1, i3) ? (n && n(e.tr.delete(t.pos - r.nodeSize, t.pos).scrollIntoView()), true) : !t.parent.canReplace(i3, i3 + 1) || !(o.isTextblock || Hp$1(e.doc, t.pos)) ? false : (n && n(e.tr.join(t.pos).scrollIntoView()), true);
28166
+ return !r || !o || !r.type.compatibleContent(o.type) ? false : !r.content.size && t.parent.canReplace(i3 - 1, i3) ? (n && n(e.tr.delete(t.pos - r.nodeSize, t.pos).scrollIntoView()), true) : !t.parent.canReplace(i3, i3 + 1) || !(o.isTextblock || jp$1(e.doc, t.pos)) ? false : (n && n(e.tr.join(t.pos).scrollIntoView()), true);
28187
28167
  }
28188
28168
  function Kc$1(e, t, n, r) {
28189
28169
  let o = t.nodeBefore, i3 = t.nodeAfter, s, a, l = o.type.spec.isolating || i3.type.spec.isolating;
@@ -28197,11 +28177,11 @@ Actual: ` + p3.attribValue
28197
28177
  h3 = Q$1.from(s[b].create(null, h3));
28198
28178
  h3 = Q$1.from(o.copy(h3));
28199
28179
  let m = e.tr.step(new Xe$1(t.pos - 1, p3, t.pos, p3, new ae$3(h3, 1, 0), s.length, true)), g = m.doc.resolve(p3 + 2 * s.length);
28200
- g.nodeAfter && g.nodeAfter.type == o.type && Hp$1(m.doc, g.pos) && m.join(g.pos), n(m.scrollIntoView());
28180
+ g.nodeAfter && g.nodeAfter.type == o.type && jp$1(m.doc, g.pos) && m.join(g.pos), n(m.scrollIntoView());
28201
28181
  }
28202
28182
  return true;
28203
28183
  }
28204
- let d = i3.type.spec.isolating || r > 0 && l ? null : Ee$2.findFrom(t, 1), u = d && d.$from.blockRange(d.$to), f3 = u && Mp$1(u);
28184
+ let d = i3.type.spec.isolating || r > 0 && l ? null : Ee$2.findFrom(t, 1), u = d && d.$from.blockRange(d.$to), f3 = u && qp$1(u);
28205
28185
  if (f3 != null && f3 >= t.depth)
28206
28186
  return n && n(e.tr.lift(u, f3).scrollIntoView()), true;
28207
28187
  if (c3 && En$1(i3, "start", true) && En$1(o, "end")) {
@@ -28294,14 +28274,14 @@ Actual: ` + p3.attribValue
28294
28274
  }, Up = ({ keepMarks: e = true } = {}) => (t) => {
28295
28275
  const { tr: n, state: r, dispatch: o, editor: i3 } = t, { selection: s, doc: a } = n, { $from: l, $to: c3 } = s, d = i3.extensionService.attributes, u = N$1.getSplittedAttributes(d, l.node().type.name, l.node().attrs);
28296
28276
  if (s instanceof $e$2 && s.node.isBlock)
28297
- return !l.parentOffset || !jp$1(a, l.pos) ? false : (o && (e && Oa$1(r, i3.extensionService.splittableMarks), n.split(l.pos).scrollIntoView()), true);
28277
+ return !l.parentOffset || !Up$1(a, l.pos) ? false : (o && (e && Oa$1(r, i3.extensionService.splittableMarks), n.split(l.pos).scrollIntoView()), true);
28298
28278
  if (!l.parent.isBlock) return false;
28299
28279
  if (o) {
28300
28280
  const f3 = c3.parentOffset === c3.parent.content.size;
28301
28281
  s instanceof rt$3 && n.deleteSelection();
28302
28282
  const p3 = l.depth === 0 ? null : Jc$1(l.node(-1).contentMatchAt(l.indexAfter(-1)));
28303
- let h3 = f3 && p3 ? [{ type: p3, attrs: u }] : void 0, m = jp$1(n.doc, n.mapping.map(l.pos), 1, h3);
28304
- if (!h3 && !m && jp$1(n.doc, n.mapping.map(l.pos), 1, p3 ? [{ type: p3 }] : void 0) && (m = true, h3 = p3 ? [{ type: p3, attrs: u }] : void 0), m && (n.split(n.mapping.map(l.pos), 1, h3), p3 && !f3 && !l.parentOffset && l.parent.type !== p3)) {
28283
+ let h3 = f3 && p3 ? [{ type: p3, attrs: u }] : void 0, m = Up$1(n.doc, n.mapping.map(l.pos), 1, h3);
28284
+ if (!h3 && !m && Up$1(n.doc, n.mapping.map(l.pos), 1, p3 ? [{ type: p3 }] : void 0) && (m = true, h3 = p3 ? [{ type: p3, attrs: u }] : void 0), m && (n.split(n.mapping.map(l.pos), 1, h3), p3 && !f3 && !l.parentOffset && l.parent.type !== p3)) {
28305
28285
  const g = n.mapping.map(l.before()), b = n.doc.resolve(g);
28306
28286
  l.node(-1).canReplaceWith(b.index(), b.index() + 1, p3) && n.setNodeMarkup(n.mapping.map(l.before()), p3);
28307
28287
  }
@@ -28437,7 +28417,7 @@ Actual: ` + p3.attribValue
28437
28417
  if (a.type.isText) return;
28438
28418
  const { doc: c3, mapping: d } = t, u = c3.resolve(d.map(l)), f3 = c3.resolve(d.map(l + a.nodeSize)), p3 = u.blockRange(f3);
28439
28419
  if (!p3) return;
28440
- const h3 = Mp$1(p3);
28420
+ const h3 = qp$1(p3);
28441
28421
  if (a.type.isTextblock) {
28442
28422
  const { defaultType: m } = u.parent.contentMatchAt(u.index());
28443
28423
  t.setNodeMarkup(p3.start, m);
@@ -28491,8 +28471,8 @@ Actual: ` + p3.attribValue
28491
28471
  );
28492
28472
  return a ? (a === "node" && (i3 = ae$2(e, r.schema)), a === "mark" && (s = St$1(e, r.schema)), o && n.selection.ranges.forEach((l) => {
28493
28473
  r.doc.nodesBetween(l.$from.pos, l.$to.pos, (c3, d) => {
28494
- i3 && i3 === c3.type && n.setNodeMarkup(d, void 0, eh$2(c3.attrs, t)), s && c3.marks.length && c3.marks.forEach((u) => {
28495
- s === u.type && n.addMark(d, d + c3.nodeSize, s.create(eh$2(u.attrs, t)));
28474
+ i3 && i3 === c3.type && n.setNodeMarkup(d, void 0, Qp$1(c3.attrs, t)), s && c3.marks.length && c3.marks.forEach((u) => {
28475
+ s === u.type && n.addMark(d, d + c3.nodeSize, s.create(Qp$1(u.attrs, t)));
28496
28476
  });
28497
28477
  });
28498
28478
  }), true) : false;
@@ -28529,7 +28509,7 @@ Actual: ` + p3.attribValue
28529
28509
  if (o) {
28530
28510
  if (n.errorOnInvalidContent) {
28531
28511
  let s = false, a = "";
28532
- const l = new _p$1({
28512
+ const l = new Lp$1({
28533
28513
  topNode: t.spec.topNode,
28534
28514
  marks: t.spec.marks,
28535
28515
  // Prosemirror's schemas are executed such that: the last to execute, matches last
@@ -28646,7 +28626,7 @@ Actual: ` + p3.attribValue
28646
28626
  let l = s.resolve(t.start - 2);
28647
28627
  i3 = new Mc$1(l, l, t.depth), t.endIndex < t.parent.childCount && (t = new Mc$1(t.$from, s.resolve(t.$to.end(t.depth)), t.depth)), o = true;
28648
28628
  }
28649
- let a = Up$1(i3, n, r, t);
28629
+ let a = Mp$1(i3, n, r, t);
28650
28630
  return a ? (e && Mh$1(e, t, a, o, n), true) : false;
28651
28631
  }
28652
28632
  function Mh$1(e, t, n, r, o) {
@@ -28659,7 +28639,7 @@ Actual: ` + p3.attribValue
28659
28639
  n[d].type == o && (s = d + 1);
28660
28640
  let a = n.length - s, l = t.start + n.length - (r ? 2 : 0), c3 = t.parent;
28661
28641
  for (let d = t.startIndex, u = t.endIndex, f3 = true; d < u; d++, f3 = false)
28662
- !f3 && jp$1(e.doc, l, a) && (e.split(l, a), l += 2 * a), l += c3.child(d).nodeSize;
28642
+ !f3 && Up$1(e.doc, l, a) && (e.split(l, a), l += 2 * a), l += c3.child(d).nodeSize;
28663
28643
  return e;
28664
28644
  }
28665
28645
  function Ch$1(e) {
@@ -28671,12 +28651,12 @@ Actual: ` + p3.attribValue
28671
28651
  function Ah$1(e, t, n, r) {
28672
28652
  let o = e.tr, i3 = r.end, s = r.$to.end(r.depth);
28673
28653
  i3 < s && (o.step(new Xe$1(i3 - 1, s, i3, s, new ae$3(Q$1.from(n.create(null, r.parent.copy())), 1, 0), 1, true)), r = new Mc$1(o.doc.resolve(r.$from.pos), o.doc.resolve(s), r.depth));
28674
- const a = Mp$1(r);
28654
+ const a = qp$1(r);
28675
28655
  if (a == null)
28676
28656
  return false;
28677
28657
  o.lift(r, a);
28678
28658
  let l = o.doc.resolve(o.mapping.map(i3, -1) - 1);
28679
- return Hp$1(o.doc, l.pos) && l.nodeBefore.type == l.nodeAfter.type && o.join(l.pos), t(o.scrollIntoView()), true;
28659
+ return jp$1(o.doc, l.pos) && l.nodeBefore.type == l.nodeAfter.type && o.join(l.pos), t(o.scrollIntoView()), true;
28680
28660
  }
28681
28661
  function Oh$1(e, t, n) {
28682
28662
  let r = e.tr, o = n.parent;
@@ -28730,7 +28710,7 @@ Actual: ` + p3.attribValue
28730
28710
  name: r.name,
28731
28711
  options: r.options,
28732
28712
  storage: r.storage
28733
- }, i3 = Xp$1(I$1(r, "group", o));
28713
+ }, i3 = Kp$1(I$1(r, "group", o));
28734
28714
  return typeof i3 != "string" ? false : i3.split(" ").includes("list");
28735
28715
  }, Nh$1 = {
28736
28716
  type: "element",
@@ -29881,14 +29861,14 @@ Actual: ` + p3.attribValue
29881
29861
  const r = e.doc.resolve(Math.max(0, n.pos - 1)).before(n.depth);
29882
29862
  if (r === void 0) return true;
29883
29863
  const o = e.doc.nodeAt(r);
29884
- return n.node.type === o?.type && Hp$1(e.doc, n.pos) && e.join(n.pos), true;
29864
+ return n.node.type === o?.type && jp$1(e.doc, n.pos) && e.join(n.pos), true;
29885
29865
  }, gi$1 = (e, t) => {
29886
29866
  const n = He$1((s) => s.type === t)(e.selection);
29887
29867
  if (!n) return true;
29888
29868
  const r = e.doc.resolve(n.start).after(n.depth);
29889
29869
  if (r === void 0) return true;
29890
29870
  const o = e.doc.nodeAt(r);
29891
- return n.node.type === o?.type && Hp$1(e.doc, r) && e.join(r), true;
29871
+ return n.node.type === o?.type && jp$1(e.doc, r) && e.join(r), true;
29892
29872
  }, Ph$1 = (e, t, n, r = {}) => (o) => {
29893
29873
  const { editor: i3, tr: s, state: a, dispatch: l, chain: c3, can: d, commands: u } = o, { extensions: f3, splittableMarks: p3 } = i3.extensionService, h3 = ae$2(e, a.schema), m = ae$2(t, a.schema), { selection: g, storedMarks: b } = a, { $from: w, $to: x3 } = g, y = w.blockRange(x3), S = b || g.$to.parentOffset && g.$from.marks();
29894
29874
  if (!y) return false;
@@ -29977,7 +29957,7 @@ Actual: ` + p3.attribValue
29977
29957
  { type: s, attrs: p3 },
29978
29958
  { type: f3, attrs: h3 }
29979
29959
  ] : [{ type: s, attrs: p3 }];
29980
- if (!jp$1(n.doc, a.pos, 2))
29960
+ if (!Up$1(n.doc, a.pos, 2))
29981
29961
  return false;
29982
29962
  if (o) {
29983
29963
  const { selection: g, storedMarks: b } = r, { splittableMarks: w } = i3.extensionService, x3 = b || g.$to.parentOffset && g.$from.marks();
@@ -30079,13 +30059,13 @@ Actual: ` + p3.attribValue
30079
30059
  "Ctrl-e": () => this.editor.commands.selectTextblockEnd(),
30080
30060
  "Ctrl-t": () => this.editor.commands.insertTabChar()
30081
30061
  };
30082
- return Zp$1() || Qp$1() ? n : t;
30062
+ return Yp$1() || Zp$1() ? n : t;
30083
30063
  }
30084
30064
  }), Hh$1 = Z.create({
30085
30065
  name: "editable",
30086
30066
  addPmPlugins() {
30087
- return [new Gp$1({
30088
- key: new Wp$1("editable"),
30067
+ return [new Vp$1({
30068
+ key: new Gp$1("editable"),
30089
30069
  props: {
30090
30070
  editable: () => this.editor.options.editable
30091
30071
  }
@@ -30095,8 +30075,8 @@ Actual: ` + p3.attribValue
30095
30075
  name: "editorFocus",
30096
30076
  addPmPlugins() {
30097
30077
  const e = this.editor;
30098
- return [new Gp$1({
30099
- key: new Wp$1("editorFocus"),
30078
+ return [new Vp$1({
30079
+ key: new Gp$1("editorFocus"),
30100
30080
  props: {
30101
30081
  handleDOMEvents: {
30102
30082
  focus: (n, r) => {
@@ -30209,7 +30189,7 @@ Actual: ` + p3.attribValue
30209
30189
  }), n;
30210
30190
  }
30211
30191
  function td$1(e, t, n) {
30212
- const o = e.state.doc.content.size, i3 = th$2(t, 0, o), s = th$2(n, 0, o), a = e.coordsAtPos(i3), l = e.coordsAtPos(s, -1), c3 = Math.min(a.top, l.top), d = Math.max(a.bottom, l.bottom), u = Math.min(a.left, l.left), f3 = Math.max(a.right, l.right), p3 = f3 - u, h3 = d - c3, b = {
30192
+ const o = e.state.doc.content.size, i3 = eh$2(t, 0, o), s = eh$2(n, 0, o), a = e.coordsAtPos(i3), l = e.coordsAtPos(s, -1), c3 = Math.min(a.top, l.top), d = Math.max(a.bottom, l.bottom), u = Math.min(a.left, l.left), f3 = Math.max(a.right, l.right), p3 = f3 - u, h3 = d - c3, b = {
30213
30193
  top: c3,
30214
30194
  bottom: d,
30215
30195
  left: u,
@@ -32669,7 +32649,7 @@ Actual: ` + p3.attribValue
32669
32649
  if (!s)
32670
32650
  return;
32671
32651
  n.preventDefault();
32672
- let l = s ? Vp$1(e.state.doc, i3.pos, s) : i3.pos;
32652
+ let l = s ? zp$1(e.state.doc, i3.pos, s) : i3.pos;
32673
32653
  l == null && (l = i3.pos);
32674
32654
  let c3 = e.state.tr;
32675
32655
  if (a) {
@@ -34141,7 +34121,7 @@ Actual: ` + p3.attribValue
34141
34121
  remove: e.length - n - r,
34142
34122
  insert: t.slice(n, t.length - r)
34143
34123
  };
34144
- }, uy = dy, te$1 = new Wp$1("y-sync"), $t$1 = new Wp$1("y-undo"), eo$2 = new Wp$1("yjs-cursor"), fy = Math.random, py = (e) => e[vr$1(fy() * e.length)], ul$1 = (e) => e === void 0 ? null : e;
34124
+ }, uy = dy, te$1 = new Gp$1("y-sync"), $t$1 = new Gp$1("y-undo"), eo$2 = new Gp$1("yjs-cursor"), fy = Math.random, py = (e) => e[vr$1(fy() * e.length)], ul$1 = (e) => e === void 0 ? null : e;
34145
34125
  class hy {
34146
34126
  constructor() {
34147
34127
  this.map = /* @__PURE__ */ new Map();
@@ -34360,7 +34340,7 @@ Actual: ` + p3.attribValue
34360
34340
  mapping: i3
34361
34341
  } = {}) => {
34362
34342
  let s = false;
34363
- const a = new Vy(e, i3), l = new Gp$1({
34343
+ const a = new Vy(e, i3), l = new Vp$1({
34364
34344
  props: {
34365
34345
  editable: (c3) => {
34366
34346
  const d = te$1.getState(c3);
@@ -35177,7 +35157,7 @@ Actual: ` + p3.attribValue
35177
35157
  cursorBuilder: n = rb,
35178
35158
  selectionBuilder: r = ob,
35179
35159
  getSelection: o = (s) => s.selection
35180
- } = {}, i3 = "cursor") => new Gp$1({
35160
+ } = {}, i3 = "cursor") => new Vp$1({
35181
35161
  key: eo$2,
35182
35162
  state: {
35183
35163
  init(s, a) {
@@ -35242,7 +35222,7 @@ Actual: ` + p3.attribValue
35242
35222
  }
35243
35223
  };
35244
35224
  }
35245
- }), ab = (e) => $t$1.getState(e)?.undoManager?.undo() != null, lb = (e) => $t$1.getState(e)?.undoManager?.redo() != null, cb = /* @__PURE__ */ new Set(["paragraph"]), db = (e, t) => !(e instanceof D.Item) || !(e.content instanceof D.ContentType) || !(e.content.type instanceof D.Text || e.content.type instanceof D.XmlElement && t.has(e.content.type.nodeName)) || e.content.type._length === 0, ub = ({ protectedNodes: e = cb, trackedOrigins: t = [], undoManager: n = null } = {}) => new Gp$1({
35225
+ }), ab = (e) => $t$1.getState(e)?.undoManager?.undo() != null, lb = (e) => $t$1.getState(e)?.undoManager?.redo() != null, cb = /* @__PURE__ */ new Set(["paragraph"]), db = (e, t) => !(e instanceof D.Item) || !(e.content instanceof D.ContentType) || !(e.content.type instanceof D.Text || e.content.type instanceof D.XmlElement && t.has(e.content.type.nodeName)) || e.content.type._length === 0, ub = ({ protectedNodes: e = cb, trackedOrigins: t = [], undoManager: n = null } = {}) => new Vp$1({
35246
35226
  key: $t$1,
35247
35227
  state: {
35248
35228
  init: (r, o) => {
@@ -35452,7 +35432,7 @@ Actual: ` + p3.attribValue
35452
35432
  return t.altKey && (e = "Alt-" + e), t.ctrlKey && (e = "Ctrl-" + e), t.metaKey && (e = "Meta-" + e), n && t.shiftKey && (e = "Shift-" + e), e;
35453
35433
  }
35454
35434
  function vb(e) {
35455
- return new Gp$1({ props: { handleKeyDown: Gs(e) } });
35435
+ return new Vp$1({ props: { handleKeyDown: Gs(e) } });
35456
35436
  }
35457
35437
  function Gs(e) {
35458
35438
  let t = wb(e);
@@ -35641,8 +35621,8 @@ Actual: ` + p3.attribValue
35641
35621
  }), a.dispatch(p3), c3 = true);
35642
35622
  }), c3;
35643
35623
  }, Ib = ({ editor: e, rules: t }) => {
35644
- const n = new Gp$1({
35645
- key: new Wp$1("inputRulesPlugin"),
35624
+ const n = new Vp$1({
35625
+ key: new Gp$1("inputRulesPlugin"),
35646
35626
  state: {
35647
35627
  init() {
35648
35628
  return null;
@@ -35881,7 +35861,7 @@ Actual: ` + p3.attribValue
35881
35861
  editor: this.editor,
35882
35862
  type: er$1(t.name, this.schema)
35883
35863
  };
35884
- t.type === "mark" && (Xp$1(I$1(t, "keepOnSplit", n)) ?? true) && this.splittableMarks.push(t.name), O$1(this, jn$2, Yd$1).call(this, t);
35864
+ t.type === "mark" && (Kp$1(I$1(t, "keepOnSplit", n)) ?? true) && this.splittableMarks.push(t.name), O$1(this, jn$2, Yd$1).call(this, t);
35885
35865
  }
35886
35866
  }, /**
35887
35867
  * Attach editor events to extension
@@ -36023,7 +36003,7 @@ Actual: ` + p3.attribValue
36023
36003
  });
36024
36004
  });
36025
36005
  }), t ? n.filter(({ mark: o }) => o.attrs.id === t) : n) : n;
36026
- }, ce$2 = new Wp$1("TrackChangesBase"), zb = (e = {}) => new Gp$1({
36006
+ }, ce$2 = new Gp$1("TrackChangesBase"), zb = (e = {}) => new Vp$1({
36027
36007
  key: ce$2,
36028
36008
  state: {
36029
36009
  init(t, n) {
@@ -36252,7 +36232,7 @@ Actual: ` + p3.attribValue
36252
36232
  if (!r.options.isInternal && n) return "transparent";
36253
36233
  const o = ge.getState(r.state), i3 = n ? o.internalColor : o.externalColor, s = e == t ? "44" : "22";
36254
36234
  return `${i3}${s}`;
36255
- }, Vt$1 = new Wp$1("paginationPlugin"), Wb = async (e) => {
36235
+ }, Vt$1 = new Gp$1("paginationPlugin"), Wb = async (e) => {
36256
36236
  if (!e.converter) return;
36257
36237
  const t = { headers: {}, footers: {} }, n = e.converter.headerIds.ids, r = e.converter.footerIds.ids;
36258
36238
  for (let o in n) {
@@ -36376,7 +36356,7 @@ Actual: ` + p3.attribValue
36376
36356
  }), e.options.ydoc.transact(() => {
36377
36357
  t.set("docx", n);
36378
36358
  });
36379
- }, ea$1 = [xr$2, Pi$2, Oi$2], ge = new Wp$1("comments"), Kb = Z.create({
36359
+ }, ea$1 = [xr$2, Pi$2, Oi$2], ge = new Gp$1("comments"), Kb = Z.create({
36380
36360
  name: "comments",
36381
36361
  addCommands() {
36382
36362
  return {
@@ -36425,7 +36405,7 @@ Actual: ` + p3.attribValue
36425
36405
  addPmPlugins() {
36426
36406
  const e = this.editor;
36427
36407
  let t, n;
36428
- return e.options.isHeadless ? [] : [new Gp$1({
36408
+ return e.options.isHeadless ? [] : [new Vp$1({
36429
36409
  key: ge,
36430
36410
  state: {
36431
36411
  init() {
@@ -36464,7 +36444,7 @@ Actual: ` + p3.attribValue
36464
36444
  if (h3 && (g = d.activeThreadId), n !== g) {
36465
36445
  n = g;
36466
36446
  const w = {
36467
- type: $p$1.SELECTED,
36447
+ type: Jp$1.SELECTED,
36468
36448
  activeCommentId: n || null
36469
36449
  };
36470
36450
  t = true, e.emit("commentsUpdate", w);
@@ -36694,7 +36674,7 @@ Actual: ` + p3.attribValue
36694
36674
  if (!b && !w)
36695
36675
  return;
36696
36676
  const x3 = {
36697
- event: $p$1.ADD,
36677
+ event: Jp$1.ADD,
36698
36678
  type: "trackedChange",
36699
36679
  documentId: i3,
36700
36680
  changeId: p3,
@@ -36705,7 +36685,7 @@ Actual: ` + p3.attribValue
36705
36685
  authorEmail: u,
36706
36686
  date: f3
36707
36687
  };
36708
- return e === "add" ? x3.event = $p$1.ADD : e === "update" && (x3.event = $p$1.UPDATE), x3;
36688
+ return e === "add" ? x3.event = Jp$1.ADD : e === "update" && (x3.event = Jp$1.UPDATE), x3;
36709
36689
  };
36710
36690
  function Zb(e, t) {
36711
36691
  let n = null;
@@ -37068,7 +37048,7 @@ Actual: ` + p3.attribValue
37068
37048
  processTables: d0$1,
37069
37049
  annotateDocument: f0$1,
37070
37050
  annotateHeadersAndFooters: cu$1
37071
- }, h0$1 = new Wp$1("collaboration"), m0$1 = Z.create({
37051
+ }, h0$1 = new Gp$1("collaboration"), m0$1 = Z.create({
37072
37052
  name: "collaboration",
37073
37053
  priority: 1e3,
37074
37054
  addOptions() {
@@ -37655,7 +37635,7 @@ Actual: ` + p3.attribValue
37655
37635
  * @returns {Object | void} Migration results
37656
37636
  */
37657
37637
  processCollaborationMigrations() {
37658
- if (console.debug("[checkVersionMigrations] Current editor version", "0.12.8"), !this.options.ydoc) return;
37638
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.12.9"), !this.options.ydoc) return;
37659
37639
  let r = this.options.ydoc.getMap("meta").get("version");
37660
37640
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
37661
37641
  const o = wl$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
@@ -38142,7 +38122,7 @@ Actual: ` + p3.attribValue
38142
38122
  if (Number.isNaN(n))
38143
38123
  return false;
38144
38124
  let { min: o, max: i3, unit: s } = this.options.defaults;
38145
- return n = th$2(n, o, i3), r = r || s, t().setMark("textStyle", { fontSize: `${n}${r}` }).run();
38125
+ return n = eh$2(n, o, i3), r = r || s, t().setMark("textStyle", { fontSize: `${n}${r}` }).run();
38146
38126
  },
38147
38127
  unsetFontSize: () => ({ chain: e }) => e().setMark("textStyle", { fontSize: null }).removeEmptyTextStyle().run()
38148
38128
  };
@@ -38264,7 +38244,7 @@ Actual: ` + p3.attribValue
38264
38244
  lineHeight: {
38265
38245
  default: null,
38266
38246
  parseDOM: (e) => e.style.lineHeight,
38267
- renderDOM: (e) => e.lineHeight ? { style: nh$2(e.lineHeight, this.options.defaults.unit, e.spacing?.lineRule) } : {}
38247
+ renderDOM: (e) => e.lineHeight ? { style: rh$2(e.lineHeight, this.options.defaults.unit, e.spacing?.lineRule) } : {}
38268
38248
  }
38269
38249
  }
38270
38250
  }
@@ -38331,7 +38311,7 @@ Actual: ` + p3.attribValue
38331
38311
  }
38332
38312
  });
38333
38313
  function k0(e = {}) {
38334
- return new Gp$1({
38314
+ return new Vp$1({
38335
38315
  view(t) {
38336
38316
  return new x0$1(t, e);
38337
38317
  }
@@ -38395,7 +38375,7 @@ Actual: ` + p3.attribValue
38395
38375
  if (n && !i3) {
38396
38376
  let s = n.pos;
38397
38377
  if (this.editorView.dragging && this.editorView.dragging.slice) {
38398
- let a = Vp$1(this.editorView.state.doc, s, this.editorView.dragging.slice);
38378
+ let a = zp$1(this.editorView.state.doc, s, this.editorView.dragging.slice);
38399
38379
  a != null && (s = a);
38400
38380
  }
38401
38381
  this.setCursor(s), this.scheduleRemoval(5e3);
@@ -38559,7 +38539,7 @@ Actual: ` + p3.attribValue
38559
38539
  return true;
38560
38540
  }
38561
38541
  function C0$1() {
38562
- return new Gp$1({
38542
+ return new Vp$1({
38563
38543
  props: {
38564
38544
  decorations: D0,
38565
38545
  createSelectionBetween(e, t, n) {
@@ -38626,7 +38606,7 @@ Actual: ` + p3.attribValue
38626
38606
  },
38627
38607
  extendNodeSchema(e) {
38628
38608
  return {
38629
- allowGapCursor: Xp$1(I$1(e, "allowGapCursor", {
38609
+ allowGapCursor: Kp$1(I$1(e, "allowGapCursor", {
38630
38610
  name: e.name,
38631
38611
  options: e.options,
38632
38612
  storage: e.storage
@@ -38739,7 +38719,7 @@ Actual: ` + p3.attribValue
38739
38719
  const n = document.createElement("img");
38740
38720
  return n.src = L0$1, n.alt = "loading...", n.width = 100, n.height = 50, t.appendChild(n), t;
38741
38721
  }
38742
- }), oo$2 = new Wp$1("ai"), Ou$1 = Z.create({
38722
+ }), oo$2 = new Gp$1("ai"), Ou$1 = Z.create({
38743
38723
  name: "ai",
38744
38724
  addCommands() {
38745
38725
  return {
@@ -38797,7 +38777,7 @@ Actual: ` + p3.attribValue
38797
38777
  },
38798
38778
  addPmPlugins() {
38799
38779
  const e = this.editor;
38800
- return [new Gp$1({
38780
+ return [new Vp$1({
38801
38781
  key: oo$2,
38802
38782
  state: {
38803
38783
  init() {
@@ -38902,7 +38882,7 @@ Actual: ` + p3.attribValue
38902
38882
  match: r,
38903
38883
  chain: o
38904
38884
  }) => {
38905
- const i3 = Xp$1(e.getAttributes, null, r) || {}, s = t.tr.delete(n.from, n.to), l = s.doc.resolve(n.from).blockRange(), c3 = l && Up$1(l, e.type, i3);
38885
+ const i3 = Kp$1(e.getAttributes, null, r) || {}, s = t.tr.delete(n.from, n.to), l = s.doc.resolve(n.from).blockRange(), c3 = l && Mp$1(l, e.type, i3);
38906
38886
  if (!c3)
38907
38887
  return null;
38908
38888
  if (s.wrap(l, c3), e.keepMarks && e.editor) {
@@ -38917,7 +38897,7 @@ Actual: ` + p3.attribValue
38917
38897
  o().updateAttributes(u, i3).run();
38918
38898
  }
38919
38899
  const d = s.doc.resolve(n.from - 1).nodeBefore;
38920
- d && d.type === e.type && Hp$1(s.doc, n.from - 1) && (!e.joinPredicate || e.joinPredicate(r, d)) && s.join(n.from - 1);
38900
+ d && d.type === e.type && jp$1(s.doc, n.from - 1) && (!e.joinPredicate || e.joinPredicate(r, d)) && s.join(n.from - 1);
38921
38901
  }
38922
38902
  });
38923
38903
  }
@@ -38988,8 +38968,8 @@ Actual: ` + p3.attribValue
38988
38968
  }
38989
38969
  });
38990
38970
  function _0(e = {}) {
38991
- return new Gp$1({
38992
- key: new Wp$1("orderedListSync"),
38971
+ return new Vp$1({
38972
+ key: new Gp$1("orderedListSync"),
38993
38973
  appendTransaction: (t, n, r) => {
38994
38974
  if (!(t.some((d) => d.docChanged) && !n.doc.eq(r.doc)))
38995
38975
  return;
@@ -39028,8 +39008,8 @@ Actual: ` + p3.attribValue
39028
39008
  return Math.floor(Math.random() * 4294967295).toString();
39029
39009
  }
39030
39010
  function V0(e) {
39031
- return new Gp$1({
39032
- key: new Wp$1("orderedListMarker"),
39011
+ return new Vp$1({
39012
+ key: new Gp$1("orderedListMarker"),
39033
39013
  appendTransaction: (t, n, r) => {
39034
39014
  if (!(t.some((c3) => c3.docChanged) && !n.doc.eq(r.doc)))
39035
39015
  return;
@@ -39180,7 +39160,7 @@ Actual: ` + p3.attribValue
39180
39160
  renderDOM: (e) => {
39181
39161
  let t = e["list-style-type"];
39182
39162
  return t ? (t === "lowerLetter" && (t = "lowerAlpha"), {
39183
- style: `list-style-type: ${Jp$1(t)};`
39163
+ style: `list-style-type: ${Wp$1(t)};`
39184
39164
  }) : {};
39185
39165
  }
39186
39166
  },
@@ -39342,8 +39322,8 @@ Actual: ` + p3.attribValue
39342
39322
  return t;
39343
39323
  };
39344
39324
  function ew(e = {}) {
39345
- return new Gp$1({
39346
- key: new Wp$1("styledListMarker"),
39325
+ return new Vp$1({
39326
+ key: new Gp$1("styledListMarker"),
39347
39327
  state: {
39348
39328
  init(t, n) {
39349
39329
  const r = [
@@ -39408,7 +39388,7 @@ Actual: ` + p3.attribValue
39408
39388
  style: `
39409
39389
  ${l ? `margin-top: ${l}px;` : ""}
39410
39390
  ${c3 ? `margin-bottom: ${c3}px;` : ""}
39411
- ${d ? nh$2(d, "") : ""}
39391
+ ${d ? rh$2(d, "") : ""}
39412
39392
  `.trim()
39413
39393
  };
39414
39394
  }
@@ -39581,7 +39561,7 @@ Actual: ` + p3.attribValue
39581
39561
  addPmPlugins() {
39582
39562
  return [ew()];
39583
39563
  }
39584
- }), So$2 = new Wp$1("linkedStyles"), rw = Z.create({
39564
+ }), So$2 = new Gp$1("linkedStyles"), rw = Z.create({
39585
39565
  name: "linkedStyles",
39586
39566
  addPmPlugins() {
39587
39567
  return [ow(this.editor)];
@@ -39604,7 +39584,7 @@ Actual: ` + p3.attribValue
39604
39584
  }
39605
39585
  };
39606
39586
  }
39607
- }), ow = (e) => new Gp$1({
39587
+ }), ow = (e) => new Vp$1({
39608
39588
  key: So$2,
39609
39589
  state: {
39610
39590
  init(t, { doc: n, selection: r }) {
@@ -39676,14 +39656,14 @@ Actual: ` + p3.attribValue
39676
39656
  return {
39677
39657
  "margin-top": t + "px",
39678
39658
  "margin-bottom": n + "px",
39679
- ...nh$2(r, "", o, true)
39659
+ ...rh$2(r, "", o, true)
39680
39660
  };
39681
39661
  }, lw = (e) => {
39682
39662
  const { lineSpaceBefore: t, lineSpaceAfter: n, line: r } = e;
39683
39663
  return `
39684
39664
  ${t ? `margin-top: ${t}px;` : ""}
39685
39665
  ${n ? `margin-bottom: ${n}px;` : ""}
39686
- ${r ? nh$2(r, "") : ""}
39666
+ ${r ? rh$2(r, "") : ""}
39687
39667
  `.trim();
39688
39668
  }, cw = (e) => {
39689
39669
  let t = "";
@@ -39793,9 +39773,9 @@ Actual: ` + p3.attribValue
39793
39773
  },
39794
39774
  addPmPlugins() {
39795
39775
  const { view: e } = this.editor;
39796
- return [new Gp$1({
39776
+ return [new Vp$1({
39797
39777
  name: "dropcapPlugin",
39798
- key: new Wp$1("dropcapPlugin"),
39778
+ key: new Gp$1("dropcapPlugin"),
39799
39779
  state: {
39800
39780
  init(n, r) {
39801
39781
  let o = Al$1(r, e);
@@ -40019,9 +39999,9 @@ Actual: ` + p3.attribValue
40019
39999
  },
40020
40000
  addPmPlugins() {
40021
40001
  const { view: e } = this.editor;
40022
- return [new Gp$1({
40002
+ return [new Vp$1({
40023
40003
  name: "tabPlugin",
40024
- key: new Wp$1("tabPlugin"),
40004
+ key: new Gp$1("tabPlugin"),
40025
40005
  state: {
40026
40006
  init(n, r) {
40027
40007
  let o = Ol$1(r, e);
@@ -40429,7 +40409,7 @@ Actual: ` + p3.attribValue
40429
40409
  }
40430
40410
  return t;
40431
40411
  }
40432
- var Et$1 = new Wp$1("selectingCells");
40412
+ var Et$1 = new Gp$1("selectingCells");
40433
40413
  function Un$2(e) {
40434
40414
  for (let t = e.depth - 1; t > 0; t--)
40435
40415
  if (e.node(t).type.spec.tableRole == "row")
@@ -40733,7 +40713,7 @@ Actual: ` + p3.attribValue
40733
40713
  } else r instanceof rt$3 && Pw(r) ? i3 = rt$3.create(o, r.from) : r instanceof rt$3 && Iw(r) && (i3 = rt$3.create(o, r.$from.start(), r.$from.end()));
40734
40714
  return i3 && (t || (t = e.tr)).setSelection(i3), t;
40735
40715
  }
40736
- var Lw = new Wp$1("fix-tables");
40716
+ var Lw = new Gp$1("fix-tables");
40737
40717
  function Hu$1(e, t, n, r) {
40738
40718
  const o = e.childCount, i3 = t.childCount;
40739
40719
  e: for (let s = 0, a = 0; s < i3; s++) {
@@ -41647,7 +41627,7 @@ Actual: ` + p3.attribValue
41647
41627
  l ? (n.style.width = a + "px", n.style.minWidth = "") : (n.style.width = "", n.style.minWidth = a + "px");
41648
41628
  }
41649
41629
  }
41650
- var Ie$1 = new Wp$1(
41630
+ var Ie$1 = new Gp$1(
41651
41631
  "tableColumnResizing"
41652
41632
  );
41653
41633
  function lv({
@@ -41657,7 +41637,7 @@ Actual: ` + p3.attribValue
41657
41637
  View: r = av,
41658
41638
  lastColumnResizable: o = true
41659
41639
  } = {}) {
41660
- const i3 = new Gp$1({
41640
+ const i3 = new Vp$1({
41661
41641
  key: Ie$1,
41662
41642
  state: {
41663
41643
  init(s, a) {
@@ -41871,7 +41851,7 @@ Actual: ` + p3.attribValue
41871
41851
  function bv({
41872
41852
  allowTableNodeSelection: e = false
41873
41853
  } = {}) {
41874
- return new Gp$1({
41854
+ return new Vp$1({
41875
41855
  key: Et$1,
41876
41856
  // This piece of state is used to remember when a mouse-drag
41877
41857
  // cell-selection is happening, so that it can continue even as
@@ -42094,7 +42074,7 @@ Actual: ` + p3.attribValue
42094
42074
  },
42095
42075
  extendNodeSchema(e) {
42096
42076
  return {
42097
- tableRole: Xp$1(I$1(e, "tableRole", {
42077
+ tableRole: Kp$1(I$1(e, "tableRole", {
42098
42078
  name: e.name,
42099
42079
  options: e.options,
42100
42080
  storage: e.storage
@@ -42422,8 +42402,8 @@ Actual: ` + p3.attribValue
42422
42402
  }
42423
42403
  const kv = (e = {}) => {
42424
42404
  let { editor: t, annotationClass: n } = e;
42425
- return new Gp$1({
42426
- key: new Wp$1("fieldAnnotation"),
42405
+ return new Vp$1({
42406
+ key: new Gp$1("fieldAnnotation"),
42427
42407
  state: {
42428
42408
  init() {
42429
42409
  return null;
@@ -43137,7 +43117,7 @@ Actual: ` + p3.attribValue
43137
43117
  if (!c3.length)
43138
43118
  return true;
43139
43119
  let [d, u] = qf$1(e), f3 = 8, p3 = 96, h3 = "pt";
43140
- return Number.isNaN(d) ? false : (d = th$2(d, f3, p3), u = u || h3, n && (c3.forEach((m) => {
43120
+ return Number.isNaN(d) ? false : (d = eh$2(d, f3, p3), u = u || h3, n && (c3.forEach((m) => {
43141
43121
  i3.updateFieldAnnotationsAttributes([m], {
43142
43122
  fontSize: `${d}${u}`
43143
43123
  });
@@ -43197,7 +43177,7 @@ Actual: ` + p3.attribValue
43197
43177
  }
43198
43178
  return t;
43199
43179
  }
43200
- const jo$1 = new Wp$1("ImagePlaceholder"), Vv = (e = {}) => new Gp$1({
43180
+ const jo$1 = new Gp$1("ImagePlaceholder"), Vv = (e = {}) => new Vp$1({
43201
43181
  key: jo$1,
43202
43182
  state: {
43203
43183
  init() {
@@ -43223,10 +43203,10 @@ Actual: ` + p3.attribValue
43223
43203
  }), vS = (e, t) => {
43224
43204
  let r = jo$1.getState(e)?.find(null, null, (o) => o.id === t);
43225
43205
  return r?.length ? r[0].from : null;
43226
- }, ql$1 = new Wp$1("ImagePosition"), Hv = ({ editor: e }) => {
43206
+ }, ql$1 = new Gp$1("ImagePosition"), Hv = ({ editor: e }) => {
43227
43207
  const { view: t } = e;
43228
43208
  let n = false;
43229
- return new Gp$1({
43209
+ return new Vp$1({
43230
43210
  name: "ImagePositionPlugin",
43231
43211
  key: ql$1,
43232
43212
  state: {
@@ -44289,8 +44269,8 @@ Actual: ` + p3.attribValue
44289
44269
  });
44290
44270
  return P.create(n.doc, [i3]);
44291
44271
  };
44292
- return [new Gp$1({
44293
- key: new Wp$1("placeholder"),
44272
+ return [new Vp$1({
44273
+ key: new Gp$1("placeholder"),
44294
44274
  state: {
44295
44275
  init: (n, r) => e(r),
44296
44276
  apply: (n, r, o, i3) => e(i3)
@@ -46077,10 +46057,10 @@ Actual: ` + p3.attribValue
46077
46057
  ], 42, Bx))), 128))
46078
46058
  ], 544));
46079
46059
  }
46080
- }, jx = /* @__PURE__ */ Fx(Hx, [["__scopeId", "data-v-0a2a8b4e"]]), mc$1 = new Wp$1("popoverPlugin"), Wx = Z.create({
46060
+ }, jx = /* @__PURE__ */ Fx(Hx, [["__scopeId", "data-v-0a2a8b4e"]]), mc$1 = new Gp$1("popoverPlugin"), Wx = Z.create({
46081
46061
  name: "popoverPlugin",
46082
46062
  addPmPlugins() {
46083
- return [new Gp$1({
46063
+ return [new Vp$1({
46084
46064
  key: mc$1,
46085
46065
  state: {
46086
46066
  init: () => ({}),
@@ -46208,7 +46188,7 @@ Actual: ` + p3.attribValue
46208
46188
  addPmPlugins() {
46209
46189
  const e = this.editor;
46210
46190
  let t = false, n = false, r = false, o = false;
46211
- return [new Gp$1({
46191
+ return [new Vp$1({
46212
46192
  key: Vt$1,
46213
46193
  state: {
46214
46194
  isReadyToInit: false,
@@ -46675,9 +46655,9 @@ Actual: ` + p3.attribValue
46675
46655
  }
46676
46656
  return P.create(e.doc, r);
46677
46657
  }
46678
- const pr$1 = new Wp$1("search");
46658
+ const pr$1 = new Gp$1("search");
46679
46659
  function oS(e = {}) {
46680
- return new Gp$1({
46660
+ return new Vp$1({
46681
46661
  key: pr$1,
46682
46662
  state: {
46683
46663
  init(t, n) {
@@ -46718,8 +46698,8 @@ Actual: ` + p3.attribValue
46718
46698
  };
46719
46699
  },
46720
46700
  addPmPlugins() {
46721
- const e = this.editor, t = this.storage, n = new Gp$1({
46722
- key: new Wp$1("customSearchHighlights"),
46701
+ const e = this.editor, t = this.storage, n = new Vp$1({
46702
+ key: new Gp$1("customSearchHighlights"),
46723
46703
  props: {
46724
46704
  decorations(r) {
46725
46705
  if (!e) return null;
@@ -56455,7 +56435,7 @@ ${t}
56455
56435
  fonts: this.config.fonts,
56456
56436
  hideButtons: this.config.hideButtons,
56457
56437
  isDev: t.isDev
56458
- }), this.app = createApp(R0), this.app.directive("click-outside", Kp$1), this.app.config.globalProperties.$toolbar = this, this.toolbarContainer && (this.toolbar = this.app.mount(this.toolbarContainer)), this.activeEditor = t.editor || null, this.updateToolbarState());
56438
+ }), this.app = createApp(R0), this.app.directive("click-outside", $p$1), this.app.config.globalProperties.$toolbar = this, this.toolbarContainer && (this.toolbar = this.app.mount(this.toolbarContainer)), this.activeEditor = t.editor || null, this.updateToolbarState());
56459
56439
  }
56460
56440
  getElementBySelector(t) {
56461
56441
  let n = null;
@@ -72059,7 +72039,7 @@ ${style2}
72059
72039
  this.config.colors = shuffleArray(this.config.colors);
72060
72040
  this.userColorMap = /* @__PURE__ */ new Map();
72061
72041
  this.colorIndex = 0;
72062
- this.version = "0.12.8";
72042
+ this.version = "0.12.9";
72063
72043
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
72064
72044
  this.superdocId = config.superdocId || v4();
72065
72045
  this.colors = this.config.colors;