superdoc 0.31.0-next.3 → 0.31.0-next.4

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 (37) hide show
  1. package/dist/chunks/{PdfViewer-DoOKSkNf.cjs → PdfViewer-CMqo3BcJ.cjs} +1 -1
  2. package/dist/chunks/{PdfViewer-UMfEMyPR.es.js → PdfViewer-mTeXBeGP.es.js} +1 -1
  3. package/dist/chunks/{index-B74saKaW-nw0M-3t9.cjs → index-BmNdb0G--CqIBE8k-.cjs} +1 -1
  4. package/dist/chunks/{index-B74saKaW-CeHVjvs8.es.js → index-BmNdb0G--hU1qknba.es.js} +1 -1
  5. package/dist/chunks/{index-CjrYy0l4.cjs → index-BtYu5_4F.cjs} +3 -3
  6. package/dist/chunks/{index-D78pvKjo.es.js → index-INrjzFwK.es.js} +3 -3
  7. package/dist/chunks/{super-editor.es-CQFVPho1.es.js → super-editor.es-DUqAKtdo.es.js} +846 -770
  8. package/dist/chunks/{super-editor.es-DTqtLZgT.cjs → super-editor.es-_Mo5sfTs.cjs} +846 -770
  9. package/dist/super-editor/ai-writer.es.js +2 -2
  10. package/dist/super-editor/chunks/{converter-BdxQSBuI.js → converter-BsxkbtGe.js} +842 -766
  11. package/dist/super-editor/chunks/{docx-zipper-CeENQy4K.js → docx-zipper-DzOHQzzj.js} +1 -1
  12. package/dist/super-editor/chunks/{editor-fHPBoGEW.js → editor-o3FNUBVU.js} +4 -4
  13. package/dist/super-editor/chunks/{index-B74saKaW.js → index-BmNdb0G-.js} +1 -1
  14. package/dist/super-editor/chunks/{toolbar-DVn2P_6q.js → toolbar-CbCPJP6P.js} +2 -2
  15. package/dist/super-editor/converter.es.js +1 -1
  16. package/dist/super-editor/docx-zipper.es.js +2 -2
  17. package/dist/super-editor/editor.es.js +3 -3
  18. package/dist/super-editor/file-zipper.es.js +1 -1
  19. package/dist/super-editor/super-editor/src/core/super-converter/exporter.d.ts.map +1 -1
  20. package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/autoPageNumberImporter.d.ts.map +1 -1
  21. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/sd/autoPageNumber/autoPageNumber-translator.d.ts +8 -0
  22. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/sd/autoPageNumber/autoPageNumber-translator.d.ts.map +1 -0
  23. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/sd/autoPageNumber/index.d.ts +2 -0
  24. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/sd/autoPageNumber/index.d.ts.map +1 -0
  25. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/sd/totalPageNumber/index.d.ts +2 -0
  26. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/sd/totalPageNumber/index.d.ts.map +1 -0
  27. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/sd/totalPageNumber/totalPageNumber-translator.d.ts +8 -0
  28. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/sd/totalPageNumber/totalPageNumber-translator.d.ts.map +1 -0
  29. package/dist/super-editor/super-editor.es.js +6 -6
  30. package/dist/super-editor/toolbar.es.js +2 -2
  31. package/dist/super-editor.cjs +1 -1
  32. package/dist/super-editor.es.js +1 -1
  33. package/dist/superdoc.cjs +2 -2
  34. package/dist/superdoc.es.js +2 -2
  35. package/dist/superdoc.umd.js +850 -774
  36. package/dist/superdoc.umd.js.map +1 -1
  37. package/package.json +1 -1
@@ -18054,37 +18054,37 @@
18054
18054
  };
18055
18055
  __publicField$2(_NodeTranslator, "translatorTypes", TranslatorTypes);
18056
18056
  let NodeTranslator = _NodeTranslator;
18057
- const encode$P = (attributes) => {
18057
+ const encode$R = (attributes) => {
18058
18058
  return attributes["w:type"];
18059
18059
  };
18060
- const decode$R = (attrs) => {
18060
+ const decode$T = (attrs) => {
18061
18061
  const { lineBreakType } = attrs;
18062
18062
  return lineBreakType;
18063
18063
  };
18064
18064
  const attrConfig$s = Object.freeze({
18065
18065
  xmlName: "w:type",
18066
18066
  sdName: "lineBreakType",
18067
- encode: encode$P,
18068
- decode: decode$R
18067
+ encode: encode$R,
18068
+ decode: decode$T
18069
18069
  });
18070
- const encode$O = (attributes) => {
18070
+ const encode$Q = (attributes) => {
18071
18071
  const xmlAttrValue = attributes["w:clear"];
18072
18072
  return xmlAttrValue;
18073
18073
  };
18074
- const decode$Q = (attrs) => {
18074
+ const decode$S = (attrs) => {
18075
18075
  const { clear } = attrs;
18076
18076
  return clear;
18077
18077
  };
18078
18078
  const attrConfig$r = Object.freeze({
18079
18079
  xmlName: "w:clear",
18080
18080
  sdName: "clear",
18081
- encode: encode$O,
18082
- decode: decode$Q
18081
+ encode: encode$Q,
18082
+ decode: decode$S
18083
18083
  });
18084
18084
  const validXmlAttributes$j = [attrConfig$s, attrConfig$r];
18085
- const XML_NODE_NAME$o = "w:br";
18086
- const SD_NODE_NAME$i = "lineBreak";
18087
- const encode$N = (_2, encodedAttrs) => {
18085
+ const XML_NODE_NAME$q = "w:br";
18086
+ const SD_NODE_NAME$k = "lineBreak";
18087
+ const encode$P = (_2, encodedAttrs) => {
18088
18088
  const isPageBreak = encodedAttrs?.lineBreakType === "page";
18089
18089
  const translated = {
18090
18090
  type: isPageBreak ? "hardBreak" : "lineBreak"
@@ -18094,7 +18094,7 @@
18094
18094
  }
18095
18095
  return translated;
18096
18096
  };
18097
- const decode$P = (params2, decodedAttrs) => {
18097
+ const decode$R = (params2, decodedAttrs) => {
18098
18098
  const { node: node2 } = params2;
18099
18099
  if (!node2) return;
18100
18100
  const wBreak = { name: "w:br" };
@@ -18111,39 +18111,39 @@
18111
18111
  };
18112
18112
  return translated;
18113
18113
  };
18114
- const config$n = {
18115
- xmlName: XML_NODE_NAME$o,
18116
- sdNodeOrKeyName: SD_NODE_NAME$i,
18114
+ const config$p = {
18115
+ xmlName: XML_NODE_NAME$q,
18116
+ sdNodeOrKeyName: SD_NODE_NAME$k,
18117
18117
  type: NodeTranslator.translatorTypes.NODE,
18118
- encode: encode$N,
18119
- decode: decode$P,
18118
+ encode: encode$P,
18119
+ decode: decode$R,
18120
18120
  attributes: validXmlAttributes$j
18121
18121
  };
18122
- const translator$21 = NodeTranslator.from(config$n);
18123
- const encode$M = (attributes) => attributes?.["w:val"];
18124
- const decode$O = (attrs) => attrs?.highlight;
18122
+ const translator$23 = NodeTranslator.from(config$p);
18123
+ const encode$O = (attributes) => attributes?.["w:val"];
18124
+ const decode$Q = (attrs) => attrs?.highlight;
18125
18125
  const attrConfig$q = Object.freeze({
18126
18126
  xmlName: "w:val",
18127
18127
  sdName: "highlight",
18128
- encode: encode$M,
18129
- decode: decode$O
18128
+ encode: encode$O,
18129
+ decode: decode$Q
18130
18130
  });
18131
18131
  const validXmlAttributes$i = [attrConfig$q];
18132
- const XML_NODE_NAME$n = "w:highlight";
18132
+ const XML_NODE_NAME$p = "w:highlight";
18133
18133
  const SD_ATTR_KEY$4 = "highlight";
18134
18134
  const DISABLED_TOKENS = /* @__PURE__ */ new Set(["transparent", "none", "inherit"]);
18135
- const encode$L = (params2, encodedAttrs = {}) => {
18135
+ const encode$N = (params2, encodedAttrs = {}) => {
18136
18136
  const { nodes } = params2;
18137
18137
  const node2 = nodes?.[0];
18138
18138
  const value = encodedAttrs.highlight ?? node2?.attributes?.["w:val"];
18139
18139
  return {
18140
18140
  type: "attr",
18141
- xmlName: XML_NODE_NAME$n,
18141
+ xmlName: XML_NODE_NAME$p,
18142
18142
  sdNodeOrKeyName: SD_ATTR_KEY$4,
18143
18143
  attributes: { "w:val": value ?? null }
18144
18144
  };
18145
18145
  };
18146
- const decode$N = (params2) => {
18146
+ const decode$P = (params2) => {
18147
18147
  const attrs = params2?.node?.attrs || {};
18148
18148
  const highlightValue = attrs.highlight?.["w:val"] ?? attrs.highlight ?? attrs.color ?? null;
18149
18149
  if (!highlightValue) return void 0;
@@ -18151,14 +18151,14 @@
18151
18151
  if (!normalizedValue) return void 0;
18152
18152
  if (DISABLED_TOKENS.has(normalizedValue)) {
18153
18153
  return {
18154
- name: XML_NODE_NAME$n,
18154
+ name: XML_NODE_NAME$p,
18155
18155
  attributes: { "w:val": "none" }
18156
18156
  };
18157
18157
  }
18158
18158
  const keyword = getDocxHighlightKeywordFromHex(highlightValue);
18159
18159
  if (keyword) {
18160
18160
  return {
18161
- name: XML_NODE_NAME$n,
18161
+ name: XML_NODE_NAME$p,
18162
18162
  attributes: { "w:val": keyword }
18163
18163
  };
18164
18164
  }
@@ -18173,64 +18173,64 @@
18173
18173
  }
18174
18174
  };
18175
18175
  };
18176
- const config$m = {
18177
- xmlName: XML_NODE_NAME$n,
18176
+ const config$o = {
18177
+ xmlName: XML_NODE_NAME$p,
18178
18178
  sdNodeOrKeyName: SD_ATTR_KEY$4,
18179
18179
  type: NodeTranslator.translatorTypes.ATTRIBUTE,
18180
- encode: encode$L,
18181
- decode: decode$N,
18180
+ encode: encode$N,
18181
+ decode: decode$P,
18182
18182
  attributes: validXmlAttributes$i
18183
18183
  };
18184
- const translator$20 = NodeTranslator.from(config$m);
18185
- const encode$K = (attributes) => {
18184
+ const translator$22 = NodeTranslator.from(config$o);
18185
+ const encode$M = (attributes) => {
18186
18186
  return attributes["w:val"];
18187
18187
  };
18188
- const decode$M = (attrs) => {
18188
+ const decode$O = (attrs) => {
18189
18189
  const { tabType } = attrs || {};
18190
18190
  return tabType;
18191
18191
  };
18192
18192
  const attrConfig$p = Object.freeze({
18193
18193
  xmlName: "w:val",
18194
18194
  sdName: "tabType",
18195
- encode: encode$K,
18196
- decode: decode$M
18195
+ encode: encode$M,
18196
+ decode: decode$O
18197
18197
  });
18198
- const encode$J = (attributes) => {
18198
+ const encode$L = (attributes) => {
18199
18199
  return attributes["w:leader"];
18200
18200
  };
18201
- const decode$L = (attrs) => {
18201
+ const decode$N = (attrs) => {
18202
18202
  const { leader } = attrs || {};
18203
18203
  return leader;
18204
18204
  };
18205
18205
  const attrConfig$o = Object.freeze({
18206
18206
  xmlName: "w:leader",
18207
18207
  sdName: "leader",
18208
- encode: encode$J,
18209
- decode: decode$L
18208
+ encode: encode$L,
18209
+ decode: decode$N
18210
18210
  });
18211
- const encode$I = (attributes) => {
18211
+ const encode$K = (attributes) => {
18212
18212
  if (attributes["w:pos"] != null) return parseInt(attributes["w:pos"]);
18213
18213
  return null;
18214
18214
  };
18215
- const decode$K = (attrs) => {
18215
+ const decode$M = (attrs) => {
18216
18216
  const { pos } = attrs || {};
18217
18217
  return pos?.toString();
18218
18218
  };
18219
18219
  const attrConfig$n = Object.freeze({
18220
18220
  xmlName: "w:pos",
18221
18221
  sdName: "pos",
18222
- encode: encode$I,
18223
- decode: decode$K
18222
+ encode: encode$K,
18223
+ decode: decode$M
18224
18224
  });
18225
18225
  const validXmlAttributes$h = [attrConfig$p, attrConfig$n, attrConfig$o];
18226
- const XML_NODE_NAME$m = "w:tab";
18227
- const SD_NODE_NAME$h = "tab";
18228
- const encode$H = (_2, encodedAttrs = {}) => {
18226
+ const XML_NODE_NAME$o = "w:tab";
18227
+ const SD_NODE_NAME$j = "tab";
18228
+ const encode$J = (_2, encodedAttrs = {}) => {
18229
18229
  const translated = { type: "tab" };
18230
18230
  if (encodedAttrs) translated.attrs = { ...encodedAttrs };
18231
18231
  return translated;
18232
18232
  };
18233
- function decode$J(params2, decodedAttrs = {}) {
18233
+ function decode$L(params2, decodedAttrs = {}) {
18234
18234
  const { node: node2 } = params2 || {};
18235
18235
  if (!node2) return;
18236
18236
  const wTab = { name: "w:tab", elements: [] };
@@ -18252,15 +18252,15 @@
18252
18252
  }
18253
18253
  return translated;
18254
18254
  }
18255
- const config$l = {
18256
- xmlName: XML_NODE_NAME$m,
18257
- sdNodeOrKeyName: SD_NODE_NAME$h,
18255
+ const config$n = {
18256
+ xmlName: XML_NODE_NAME$o,
18257
+ sdNodeOrKeyName: SD_NODE_NAME$j,
18258
18258
  type: NodeTranslator.translatorTypes.NODE,
18259
- encode: encode$H,
18260
- decode: decode$J,
18259
+ encode: encode$J,
18260
+ decode: decode$L,
18261
18261
  attributes: validXmlAttributes$h
18262
18262
  };
18263
- const translator$1$ = NodeTranslator.from(config$l);
18263
+ const translator$21 = NodeTranslator.from(config$n);
18264
18264
  const mergeTextNodes = (nodes) => {
18265
18265
  if (!nodes || !Array.isArray(nodes)) {
18266
18266
  return nodes;
@@ -18577,53 +18577,53 @@
18577
18577
  const intValue = parseInteger(value);
18578
18578
  return intValue != void 0 ? String(intValue) : void 0;
18579
18579
  };
18580
- const translator$1_ = NodeTranslator.from(createSingleBooleanPropertyHandler("w:b", "bold"));
18581
- const translator$1Z = NodeTranslator.from(createSingleBooleanPropertyHandler("w:bCs", "boldCs"));
18582
- const translator$1Y = NodeTranslator.from(createSingleBooleanPropertyHandler("w:i", "italic"));
18583
- const encode$G = (attributes) => attributes?.["w:val"];
18584
- const decode$I = (attrs) => attrs?.underline;
18580
+ const translator$20 = NodeTranslator.from(createSingleBooleanPropertyHandler("w:b", "bold"));
18581
+ const translator$1$ = NodeTranslator.from(createSingleBooleanPropertyHandler("w:bCs", "boldCs"));
18582
+ const translator$1_ = NodeTranslator.from(createSingleBooleanPropertyHandler("w:i", "italic"));
18583
+ const encode$I = (attributes) => attributes?.["w:val"];
18584
+ const decode$K = (attrs) => attrs?.underline;
18585
18585
  const attrConfig$m = Object.freeze({
18586
18586
  xmlName: "w:val",
18587
18587
  sdName: "underline",
18588
- encode: encode$G,
18589
- decode: decode$I
18588
+ encode: encode$I,
18589
+ decode: decode$K
18590
18590
  });
18591
- const encode$F = (attributes) => attributes?.["w:color"];
18592
- const decode$H = (attrs) => attrs?.color;
18591
+ const encode$H = (attributes) => attributes?.["w:color"];
18592
+ const decode$J = (attrs) => attrs?.color;
18593
18593
  const attrConfig$l = Object.freeze({
18594
18594
  xmlName: "w:color",
18595
18595
  sdName: "color",
18596
- encode: encode$F,
18597
- decode: decode$H
18596
+ encode: encode$H,
18597
+ decode: decode$J
18598
18598
  });
18599
- const encode$E = (attributes) => attributes?.["w:themeColor"];
18600
- const decode$G = (attrs) => attrs?.themeColor;
18599
+ const encode$G = (attributes) => attributes?.["w:themeColor"];
18600
+ const decode$I = (attrs) => attrs?.themeColor;
18601
18601
  const attrConfig$k = Object.freeze({
18602
18602
  xmlName: "w:themeColor",
18603
18603
  sdName: "themeColor",
18604
- encode: encode$E,
18605
- decode: decode$G
18604
+ encode: encode$G,
18605
+ decode: decode$I
18606
18606
  });
18607
- const encode$D = (attributes) => attributes?.["w:themeTint"];
18608
- const decode$F = (attrs) => attrs?.themeTint;
18607
+ const encode$F = (attributes) => attributes?.["w:themeTint"];
18608
+ const decode$H = (attrs) => attrs?.themeTint;
18609
18609
  const attrConfig$j = Object.freeze({
18610
18610
  xmlName: "w:themeTint",
18611
18611
  sdName: "themeTint",
18612
- encode: encode$D,
18613
- decode: decode$F
18612
+ encode: encode$F,
18613
+ decode: decode$H
18614
18614
  });
18615
- const encode$C = (attributes) => attributes?.["w:themeShade"];
18616
- const decode$E = (attrs) => attrs?.themeShade;
18615
+ const encode$E = (attributes) => attributes?.["w:themeShade"];
18616
+ const decode$G = (attrs) => attrs?.themeShade;
18617
18617
  const attrConfig$i = Object.freeze({
18618
18618
  xmlName: "w:themeShade",
18619
18619
  sdName: "themeShade",
18620
- encode: encode$C,
18621
- decode: decode$E
18620
+ encode: encode$E,
18621
+ decode: decode$G
18622
18622
  });
18623
18623
  const validXmlAttributes$g = [attrConfig$m, attrConfig$l, attrConfig$k, attrConfig$j, attrConfig$i];
18624
- const XML_NODE_NAME$l = "w:u";
18624
+ const XML_NODE_NAME$n = "w:u";
18625
18625
  const SD_ATTR_KEY$3 = "underline";
18626
- const encode$B = (params2, encodedAttrs = {}) => {
18626
+ const encode$D = (params2, encodedAttrs = {}) => {
18627
18627
  const { nodes } = params2;
18628
18628
  const node2 = nodes?.[0];
18629
18629
  const sourceAttrs = node2?.attributes || {};
@@ -18639,12 +18639,12 @@
18639
18639
  if (themeShade !== void 0 && themeShade !== null) attributes["w:themeShade"] = themeShade;
18640
18640
  return {
18641
18641
  type: "attr",
18642
- xmlName: XML_NODE_NAME$l,
18642
+ xmlName: XML_NODE_NAME$n,
18643
18643
  sdNodeOrKeyName: SD_ATTR_KEY$3,
18644
18644
  attributes
18645
18645
  };
18646
18646
  };
18647
- const decode$D = (params2) => {
18647
+ const decode$F = (params2) => {
18648
18648
  const attrs = params2?.node?.attrs?.underline || params2?.node?.attrs || {};
18649
18649
  const underlineType = attrs.underlineType ?? attrs.underline ?? attrs["w:val"] ?? null;
18650
18650
  const color2 = attrs.underlineColor ?? attrs.color ?? attrs["w:color"] ?? null;
@@ -18662,22 +18662,22 @@
18662
18662
  if (themeTint) attributes["w:themeTint"] = themeTint;
18663
18663
  if (themeShade) attributes["w:themeShade"] = themeShade;
18664
18664
  return {
18665
- name: XML_NODE_NAME$l,
18665
+ name: XML_NODE_NAME$n,
18666
18666
  attributes
18667
18667
  };
18668
18668
  };
18669
- const config$k = {
18670
- xmlName: XML_NODE_NAME$l,
18669
+ const config$m = {
18670
+ xmlName: XML_NODE_NAME$n,
18671
18671
  sdNodeOrKeyName: SD_ATTR_KEY$3,
18672
18672
  type: NodeTranslator.translatorTypes.ATTRIBUTE,
18673
- encode: encode$B,
18674
- decode: decode$D,
18673
+ encode: encode$D,
18674
+ decode: decode$F,
18675
18675
  attributes: validXmlAttributes$g
18676
18676
  };
18677
- const translator$1X = NodeTranslator.from(config$k);
18678
- const translator$1W = NodeTranslator.from(createSingleBooleanPropertyHandler("w:strike"));
18679
- const translator$1V = NodeTranslator.from(createSingleBooleanPropertyHandler("w:dstrike"));
18680
- const translator$1U = NodeTranslator.from({
18677
+ const translator$1Z = NodeTranslator.from(config$m);
18678
+ const translator$1Y = NodeTranslator.from(createSingleBooleanPropertyHandler("w:strike"));
18679
+ const translator$1X = NodeTranslator.from(createSingleBooleanPropertyHandler("w:dstrike"));
18680
+ const translator$1W = NodeTranslator.from({
18681
18681
  xmlName: "w:color",
18682
18682
  sdNodeOrKeyName: "color",
18683
18683
  attributes: [
@@ -18694,7 +18694,7 @@
18694
18694
  return Object.keys(decodedAttrs).length > 0 ? { attributes: decodedAttrs } : void 0;
18695
18695
  }
18696
18696
  });
18697
- const translator$1T = NodeTranslator.from({
18697
+ const translator$1V = NodeTranslator.from({
18698
18698
  xmlName: "w:rFonts",
18699
18699
  sdNodeOrKeyName: "fontFamily",
18700
18700
  attributes: [
@@ -18725,16 +18725,16 @@
18725
18725
  return Object.keys(decodedAttrs).length > 0 ? { attributes: decodedAttrs } : void 0;
18726
18726
  }
18727
18727
  });
18728
- const translator$1S = NodeTranslator.from(createSingleAttrPropertyHandler("w:rStyle", "styleId"));
18729
- const translator$1R = NodeTranslator.from(createSingleIntegerPropertyHandler("w:sz", "fontSize"));
18730
- const translator$1Q = NodeTranslator.from(createSingleIntegerPropertyHandler("w:szCs", "fontSizeCs"));
18731
- const translator$1P = NodeTranslator.from({
18728
+ const translator$1U = NodeTranslator.from(createSingleAttrPropertyHandler("w:rStyle", "styleId"));
18729
+ const translator$1T = NodeTranslator.from(createSingleIntegerPropertyHandler("w:sz", "fontSize"));
18730
+ const translator$1S = NodeTranslator.from(createSingleIntegerPropertyHandler("w:szCs", "fontSizeCs"));
18731
+ const translator$1R = NodeTranslator.from({
18732
18732
  xmlName: "w:caps",
18733
18733
  sdNodeOrKeyName: "textTransform",
18734
18734
  encode: ({ nodes }) => parseBoolean(nodes[0].attributes?.["w:val"] ?? "1") ? "uppercase" : "none",
18735
18735
  decode: ({ node: node2 }) => node2.attrs["textTransform"] != null ? { name: "w:caps", attributes: { "w:val": booleanToString(node2.attrs["textTransform"] === "uppercase") } } : void 0
18736
18736
  });
18737
- const translator$1O = NodeTranslator.from({
18737
+ const translator$1Q = NodeTranslator.from({
18738
18738
  xmlName: "w:shd",
18739
18739
  sdNodeOrKeyName: "shading",
18740
18740
  attributes: [
@@ -18756,7 +18756,7 @@
18756
18756
  return Object.keys(decodedAttrs).length > 0 ? { attributes: decodedAttrs } : void 0;
18757
18757
  }
18758
18758
  });
18759
- const translator$1N = NodeTranslator.from({
18759
+ const translator$1P = NodeTranslator.from({
18760
18760
  xmlName: "w:lang",
18761
18761
  sdNodeOrKeyName: "lang",
18762
18762
  attributes: [createAttributeHandler("w:val"), createAttributeHandler("w:eastAsia"), createAttributeHandler("w:bidi")],
@@ -18768,26 +18768,26 @@
18768
18768
  return Object.keys(decodedAttrs).length > 0 ? { attributes: decodedAttrs } : void 0;
18769
18769
  }
18770
18770
  });
18771
- const translator$1M = NodeTranslator.from(createSingleIntegerPropertyHandler("w:spacing", "letterSpacing"));
18771
+ const translator$1O = NodeTranslator.from(createSingleIntegerPropertyHandler("w:spacing", "letterSpacing"));
18772
18772
  const propertyTranslators$b = [
18773
+ translator$20,
18774
+ translator$1$,
18773
18775
  translator$1_,
18774
18776
  translator$1Z,
18775
18777
  translator$1Y,
18776
18778
  translator$1X,
18777
18779
  translator$1W,
18780
+ translator$22,
18778
18781
  translator$1V,
18779
18782
  translator$1U,
18780
- translator$20,
18781
18783
  translator$1T,
18782
18784
  translator$1S,
18783
18785
  translator$1R,
18784
18786
  translator$1Q,
18785
18787
  translator$1P,
18786
- translator$1O,
18787
- translator$1N,
18788
- translator$1M
18788
+ translator$1O
18789
18789
  ];
18790
- const translator$1L = NodeTranslator.from(
18790
+ const translator$1N = NodeTranslator.from(
18791
18791
  createNestedPropertiesTranslator("w:rPr", "runProperties", propertyTranslators$b)
18792
18792
  );
18793
18793
  const SUPPORTED_ALTERNATE_CONTENT_REQUIRES = /* @__PURE__ */ new Set([
@@ -18804,10 +18804,10 @@
18804
18804
  "w16sdtfl",
18805
18805
  "w16se"
18806
18806
  ]);
18807
- const XML_NODE_NAME$k = "mc:AlternateContent";
18808
- const SD_NODE_NAME$g = [];
18807
+ const XML_NODE_NAME$m = "mc:AlternateContent";
18808
+ const SD_NODE_NAME$i = [];
18809
18809
  const validXmlAttributes$f = [];
18810
- function encode$A(params2) {
18810
+ function encode$C(params2) {
18811
18811
  const { nodeListHandler } = params2;
18812
18812
  const { node: node2 } = params2.extraParams;
18813
18813
  if (!node2 || !node2.type) {
@@ -18823,7 +18823,7 @@
18823
18823
  path: buildPath(params2.path, node2, branch)
18824
18824
  });
18825
18825
  }
18826
- function decode$C(params2) {
18826
+ function decode$E(params2) {
18827
18827
  const { node: node2 } = params2;
18828
18828
  const { drawingContent } = node2.attrs;
18829
18829
  const drawing = {
@@ -18840,12 +18840,12 @@
18840
18840
  elements: [choice]
18841
18841
  };
18842
18842
  }
18843
- const config$j = {
18844
- xmlName: XML_NODE_NAME$k,
18845
- sdNodeOrKeyName: SD_NODE_NAME$g,
18843
+ const config$l = {
18844
+ xmlName: XML_NODE_NAME$m,
18845
+ sdNodeOrKeyName: SD_NODE_NAME$i,
18846
18846
  type: NodeTranslator.translatorTypes.NODE,
18847
- encode: encode$A,
18848
- decode: decode$C,
18847
+ encode: encode$C,
18848
+ decode: decode$E,
18849
18849
  attributes: validXmlAttributes$f
18850
18850
  };
18851
18851
  function selectAlternateContentElements(node2) {
@@ -18869,18 +18869,18 @@
18869
18869
  elements: carbonCopy(selectedElements)
18870
18870
  };
18871
18871
  }
18872
- const translator$1K = NodeTranslator.from(config$j);
18872
+ const translator$1M = NodeTranslator.from(config$l);
18873
18873
  function buildPath(existingPath = [], node2, branch) {
18874
18874
  const path2 = [...existingPath];
18875
18875
  if (node2) path2.push(node2);
18876
18876
  if (branch) path2.push(branch);
18877
18877
  return path2;
18878
18878
  }
18879
- const translator$1J = NodeTranslator.from(createSingleBooleanPropertyHandler("w:adjustRightInd"));
18880
- const translator$1I = NodeTranslator.from(createSingleBooleanPropertyHandler("w:autoSpaceDE"));
18881
- const translator$1H = NodeTranslator.from(createSingleBooleanPropertyHandler("w:autoSpaceDN"));
18882
- const translator$1G = NodeTranslator.from(createSingleBooleanPropertyHandler("w:bidi", "rightToLeft"));
18883
- const translator$1F = NodeTranslator.from({
18879
+ const translator$1L = NodeTranslator.from(createSingleBooleanPropertyHandler("w:adjustRightInd"));
18880
+ const translator$1K = NodeTranslator.from(createSingleBooleanPropertyHandler("w:autoSpaceDE"));
18881
+ const translator$1J = NodeTranslator.from(createSingleBooleanPropertyHandler("w:autoSpaceDN"));
18882
+ const translator$1I = NodeTranslator.from(createSingleBooleanPropertyHandler("w:bidi", "rightToLeft"));
18883
+ const translator$1H = NodeTranslator.from({
18884
18884
  xmlName: "w:cnfStyle",
18885
18885
  sdNodeOrKeyName: "cnfStyle",
18886
18886
  attributes: [
@@ -18906,9 +18906,9 @@
18906
18906
  return Object.keys(decodedAttrs).length > 0 ? { attributes: decodedAttrs } : void 0;
18907
18907
  }
18908
18908
  });
18909
- const translator$1E = NodeTranslator.from(createSingleBooleanPropertyHandler("w:contextualSpacing"));
18910
- const translator$1D = NodeTranslator.from(createSingleAttrPropertyHandler("w:divId"));
18911
- const translator$1C = NodeTranslator.from({
18909
+ const translator$1G = NodeTranslator.from(createSingleBooleanPropertyHandler("w:contextualSpacing"));
18910
+ const translator$1F = NodeTranslator.from(createSingleAttrPropertyHandler("w:divId"));
18911
+ const translator$1E = NodeTranslator.from({
18912
18912
  xmlName: "w:framePr",
18913
18913
  sdNodeOrKeyName: "framePr",
18914
18914
  attributes: [
@@ -18936,7 +18936,7 @@
18936
18936
  return Object.keys(decodedAttrs).length > 0 ? { attributes: decodedAttrs } : void 0;
18937
18937
  }
18938
18938
  });
18939
- const translator$1B = NodeTranslator.from({
18939
+ const translator$1D = NodeTranslator.from({
18940
18940
  xmlName: "w:ind",
18941
18941
  sdNodeOrKeyName: "indent",
18942
18942
  attributes: [
@@ -18961,12 +18961,12 @@
18961
18961
  return Object.keys(decodedAttrs).length > 0 ? { attributes: decodedAttrs } : void 0;
18962
18962
  }
18963
18963
  });
18964
- const translator$1A = NodeTranslator.from(createSingleAttrPropertyHandler("w:jc", "justification"));
18965
- const translator$1z = NodeTranslator.from(createSingleBooleanPropertyHandler("w:keepLines"));
18966
- const translator$1y = NodeTranslator.from(createSingleBooleanPropertyHandler("w:keepNext"));
18967
- const translator$1x = NodeTranslator.from(createSingleBooleanPropertyHandler("w:kinsoku"));
18968
- const translator$1w = NodeTranslator.from(createSingleBooleanPropertyHandler("w:mirrorIndents"));
18969
- const translator$1v = NodeTranslator.from(createSingleIntegerPropertyHandler("w:ilvl"));
18964
+ const translator$1C = NodeTranslator.from(createSingleAttrPropertyHandler("w:jc", "justification"));
18965
+ const translator$1B = NodeTranslator.from(createSingleBooleanPropertyHandler("w:keepLines"));
18966
+ const translator$1A = NodeTranslator.from(createSingleBooleanPropertyHandler("w:keepNext"));
18967
+ const translator$1z = NodeTranslator.from(createSingleBooleanPropertyHandler("w:kinsoku"));
18968
+ const translator$1y = NodeTranslator.from(createSingleBooleanPropertyHandler("w:mirrorIndents"));
18969
+ const translator$1x = NodeTranslator.from(createSingleIntegerPropertyHandler("w:ilvl"));
18970
18970
  const createTrackStyleMark = (marks) => {
18971
18971
  const trackStyleMark = marks.find((mark2) => mark2.type === "trackFormat");
18972
18972
  if (trackStyleMark) {
@@ -18984,7 +18984,7 @@
18984
18984
  }
18985
18985
  return void 0;
18986
18986
  };
18987
- const XML_NODE_NAME$j = "w:ins";
18987
+ const XML_NODE_NAME$l = "w:ins";
18988
18988
  const SD_ATTR_KEY$2 = "trackInsert";
18989
18989
  const validXmlAttributes$e = [
18990
18990
  createAttributeHandler("w:id", "id"),
@@ -18992,7 +18992,7 @@
18992
18992
  createAttributeHandler("w:author", "author"),
18993
18993
  createAttributeHandler("w:authorEmail", "authorEmail")
18994
18994
  ];
18995
- const encode$z = (params2, encodedAttrs = {}) => {
18995
+ const encode$B = (params2, encodedAttrs = {}) => {
18996
18996
  const { nodeListHandler, extraParams = {} } = params2;
18997
18997
  const { node: node2 } = extraParams;
18998
18998
  const subs = nodeListHandler.handler({
@@ -19008,7 +19008,7 @@
19008
19008
  });
19009
19009
  return subs;
19010
19010
  };
19011
- function decode$B(params2) {
19011
+ function decode$D(params2) {
19012
19012
  const { node: node2 } = params2;
19013
19013
  if (!node2 || !node2.type) {
19014
19014
  return null;
@@ -19033,50 +19033,50 @@
19033
19033
  elements: [translatedTextNode]
19034
19034
  };
19035
19035
  }
19036
- const config$i = {
19037
- xmlName: XML_NODE_NAME$j,
19036
+ const config$k = {
19037
+ xmlName: XML_NODE_NAME$l,
19038
19038
  sdNodeOrKeyName: SD_ATTR_KEY$2,
19039
19039
  type: NodeTranslator.translatorTypes.ATTRIBUTE,
19040
- encode: encode$z,
19041
- decode: decode$B,
19040
+ encode: encode$B,
19041
+ decode: decode$D,
19042
19042
  attributes: validXmlAttributes$e
19043
19043
  };
19044
- const translator$1u = NodeTranslator.from(config$i);
19045
- const translator$1t = NodeTranslator.from(createSingleIntegerPropertyHandler("w:numId"));
19046
- const propertyTranslators$a = [translator$1K, translator$1v, translator$1u, translator$1t];
19047
- const translator$1s = NodeTranslator.from(
19044
+ const translator$1w = NodeTranslator.from(config$k);
19045
+ const translator$1v = NodeTranslator.from(createSingleIntegerPropertyHandler("w:numId"));
19046
+ const propertyTranslators$a = [translator$1M, translator$1x, translator$1w, translator$1v];
19047
+ const translator$1u = NodeTranslator.from(
19048
19048
  createNestedPropertiesTranslator("w:numPr", "numberingProperties", propertyTranslators$a)
19049
19049
  );
19050
- const translator$1r = NodeTranslator.from(
19050
+ const translator$1t = NodeTranslator.from(
19051
19051
  createSingleAttrPropertyHandler("w:outlineLvl", "outlineLvl", "w:val", parseInteger, integerToString)
19052
19052
  );
19053
- const translator$1q = NodeTranslator.from(createSingleBooleanPropertyHandler("w:overflowPunct"));
19054
- const translator$1p = NodeTranslator.from(createBorderPropertyHandler("w:bar"));
19055
- const translator$1o = NodeTranslator.from(createBorderPropertyHandler("w:between"));
19056
- const translator$1n = NodeTranslator.from(createBorderPropertyHandler("w:bottom"));
19057
- const translator$1m = NodeTranslator.from(createMeasurementPropertyHandler("w:bottom", "marginBottom"));
19058
- const translator$1l = NodeTranslator.from(createBorderPropertyHandler("w:left"));
19059
- const translator$1k = NodeTranslator.from(createMeasurementPropertyHandler("w:left", "marginLeft"));
19060
- const translator$1j = NodeTranslator.from(createBorderPropertyHandler("w:right"));
19061
- const translator$1i = NodeTranslator.from(createMeasurementPropertyHandler("w:right", "marginRight"));
19062
- const translator$1h = NodeTranslator.from(createBorderPropertyHandler("w:top"));
19063
- const translator$1g = NodeTranslator.from(createMeasurementPropertyHandler("w:top", "marginTop"));
19053
+ const translator$1s = NodeTranslator.from(createSingleBooleanPropertyHandler("w:overflowPunct"));
19054
+ const translator$1r = NodeTranslator.from(createBorderPropertyHandler("w:bar"));
19055
+ const translator$1q = NodeTranslator.from(createBorderPropertyHandler("w:between"));
19056
+ const translator$1p = NodeTranslator.from(createBorderPropertyHandler("w:bottom"));
19057
+ const translator$1o = NodeTranslator.from(createMeasurementPropertyHandler("w:bottom", "marginBottom"));
19058
+ const translator$1n = NodeTranslator.from(createBorderPropertyHandler("w:left"));
19059
+ const translator$1m = NodeTranslator.from(createMeasurementPropertyHandler("w:left", "marginLeft"));
19060
+ const translator$1l = NodeTranslator.from(createBorderPropertyHandler("w:right"));
19061
+ const translator$1k = NodeTranslator.from(createMeasurementPropertyHandler("w:right", "marginRight"));
19062
+ const translator$1j = NodeTranslator.from(createBorderPropertyHandler("w:top"));
19063
+ const translator$1i = NodeTranslator.from(createMeasurementPropertyHandler("w:top", "marginTop"));
19064
19064
  const propertyTranslators$9 = [
19065
- translator$1K,
19065
+ translator$1M,
19066
+ translator$1r,
19067
+ translator$1q,
19066
19068
  translator$1p,
19067
- translator$1o,
19068
19069
  translator$1n,
19069
19070
  translator$1l,
19070
- translator$1j,
19071
- translator$1h
19071
+ translator$1j
19072
19072
  ];
19073
- const translator$1f = NodeTranslator.from(
19073
+ const translator$1h = NodeTranslator.from(
19074
19074
  createNestedPropertiesTranslator("w:pBdr", "borders", propertyTranslators$9)
19075
19075
  );
19076
- const translator$1e = NodeTranslator.from(createSingleAttrPropertyHandler("w:pStyle", "styleId"));
19077
- const translator$1d = NodeTranslator.from(createSingleBooleanPropertyHandler("w:pageBreakBefore"));
19078
- const translator$1c = NodeTranslator.from(createSingleBooleanPropertyHandler("w:snapToGrid"));
19079
- const translator$1b = NodeTranslator.from({
19076
+ const translator$1g = NodeTranslator.from(createSingleAttrPropertyHandler("w:pStyle", "styleId"));
19077
+ const translator$1f = NodeTranslator.from(createSingleBooleanPropertyHandler("w:pageBreakBefore"));
19078
+ const translator$1e = NodeTranslator.from(createSingleBooleanPropertyHandler("w:snapToGrid"));
19079
+ const translator$1d = NodeTranslator.from({
19080
19080
  xmlName: "w:spacing",
19081
19081
  sdNodeOrKeyName: "spacing",
19082
19082
  attributes: [
@@ -19097,20 +19097,22 @@
19097
19097
  return Object.keys(decodedAttrs).length > 0 ? { attributes: decodedAttrs } : void 0;
19098
19098
  }
19099
19099
  });
19100
- const translator$1a = NodeTranslator.from(createSingleBooleanPropertyHandler("w:suppressAutoHyphens"));
19101
- const translator$19 = NodeTranslator.from(createSingleBooleanPropertyHandler("w:suppressLineNumbers"));
19102
- const translator$18 = NodeTranslator.from(createSingleBooleanPropertyHandler("w:suppressOverlap"));
19103
- const propertyTranslators$8 = [translator$1K, translator$1$];
19104
- const translator$17 = NodeTranslator.from(
19100
+ const translator$1c = NodeTranslator.from(createSingleBooleanPropertyHandler("w:suppressAutoHyphens"));
19101
+ const translator$1b = NodeTranslator.from(createSingleBooleanPropertyHandler("w:suppressLineNumbers"));
19102
+ const translator$1a = NodeTranslator.from(createSingleBooleanPropertyHandler("w:suppressOverlap"));
19103
+ const propertyTranslators$8 = [translator$1M, translator$21];
19104
+ const translator$19 = NodeTranslator.from(
19105
19105
  createNestedArrayPropertyHandler("w:tabs", "tabStops", propertyTranslators$8, { skipRun: true })
19106
19106
  );
19107
- const translator$16 = NodeTranslator.from(createSingleAttrPropertyHandler("w:textAlignment"));
19108
- const translator$15 = NodeTranslator.from(createSingleAttrPropertyHandler("w:textDirection"));
19109
- const translator$14 = NodeTranslator.from(createSingleAttrPropertyHandler("w:textboxTightWrap"));
19110
- const translator$13 = NodeTranslator.from(createSingleBooleanPropertyHandler("w:topLinePunct"));
19111
- const translator$12 = NodeTranslator.from(createSingleBooleanPropertyHandler("w:widowControl"));
19112
- const translator$11 = NodeTranslator.from(createSingleBooleanPropertyHandler("w:wordWrap"));
19107
+ const translator$18 = NodeTranslator.from(createSingleAttrPropertyHandler("w:textAlignment"));
19108
+ const translator$17 = NodeTranslator.from(createSingleAttrPropertyHandler("w:textDirection"));
19109
+ const translator$16 = NodeTranslator.from(createSingleAttrPropertyHandler("w:textboxTightWrap"));
19110
+ const translator$15 = NodeTranslator.from(createSingleBooleanPropertyHandler("w:topLinePunct"));
19111
+ const translator$14 = NodeTranslator.from(createSingleBooleanPropertyHandler("w:widowControl"));
19112
+ const translator$13 = NodeTranslator.from(createSingleBooleanPropertyHandler("w:wordWrap"));
19113
19113
  const propertyTranslators$7 = [
19114
+ translator$1M,
19115
+ translator$1L,
19114
19116
  translator$1K,
19115
19117
  translator$1J,
19116
19118
  translator$1I,
@@ -19124,15 +19126,15 @@
19124
19126
  translator$1A,
19125
19127
  translator$1z,
19126
19128
  translator$1y,
19127
- translator$1x,
19128
- translator$1w,
19129
+ translator$1u,
19130
+ translator$1t,
19129
19131
  translator$1s,
19130
- translator$1r,
19131
- translator$1q,
19132
+ translator$1h,
19133
+ translator$1g,
19132
19134
  translator$1f,
19135
+ translator$1Q,
19133
19136
  translator$1e,
19134
19137
  translator$1d,
19135
- translator$1O,
19136
19138
  translator$1c,
19137
19139
  translator$1b,
19138
19140
  translator$1a,
@@ -19143,11 +19145,9 @@
19143
19145
  translator$15,
19144
19146
  translator$14,
19145
19147
  translator$13,
19146
- translator$12,
19147
- translator$11,
19148
- translator$1L
19148
+ translator$1N
19149
19149
  ];
19150
- const translator$10 = NodeTranslator.from(
19150
+ const translator$12 = NodeTranslator.from(
19151
19151
  createNestedPropertiesTranslator("w:pPr", "paragraphProperties", propertyTranslators$7)
19152
19152
  );
19153
19153
  function getUnderlineCssString({ type: type2 = "single", color: color2 = null, thickness = null, approximate = true } = {}) {
@@ -19216,12 +19216,12 @@
19216
19216
  }
19217
19217
  const resolveRunProperties = (params2, inlineRpr, resolvedPpr, isListNumber = false, numberingDefinedInline = false) => {
19218
19218
  const paragraphStyleId = resolvedPpr?.styleId;
19219
- const paragraphStyleProps = resolveStyleChain(params2, paragraphStyleId, translator$1L);
19220
- const defaultProps2 = getDefaultProperties(params2, translator$1L);
19221
- const { properties: normalProps, isDefault: isNormalDefault } = getStyleProperties(params2, "Normal", translator$1L);
19219
+ const paragraphStyleProps = resolveStyleChain(params2, paragraphStyleId, translator$1N);
19220
+ const defaultProps2 = getDefaultProperties(params2, translator$1N);
19221
+ const { properties: normalProps, isDefault: isNormalDefault } = getStyleProperties(params2, "Normal", translator$1N);
19222
19222
  let runStyleProps = {};
19223
19223
  if (!paragraphStyleId?.startsWith("TOC")) {
19224
- runStyleProps = inlineRpr.styleId ? resolveStyleChain(params2, inlineRpr.styleId, translator$1L) : {};
19224
+ runStyleProps = inlineRpr.styleId ? resolveStyleChain(params2, inlineRpr.styleId, translator$1N) : {};
19225
19225
  }
19226
19226
  let styleChain;
19227
19227
  if (isNormalDefault) {
@@ -19236,7 +19236,7 @@
19236
19236
  params2,
19237
19237
  resolvedPpr.numberingProperties.ilvl ?? 0,
19238
19238
  resolvedPpr.numberingProperties.numId,
19239
- translator$1L
19239
+ translator$1N
19240
19240
  );
19241
19241
  }
19242
19242
  if (!numberingDefinedInline) {
@@ -19253,10 +19253,10 @@
19253
19253
  return finalProps;
19254
19254
  };
19255
19255
  function resolveParagraphProperties(params2, inlineProps, insideTable = false, overrideInlineStyleId = false) {
19256
- const defaultProps2 = getDefaultProperties(params2, translator$10);
19257
- const { properties: normalProps, isDefault: isNormalDefault } = getStyleProperties(params2, "Normal", translator$10);
19256
+ const defaultProps2 = getDefaultProperties(params2, translator$12);
19257
+ const { properties: normalProps, isDefault: isNormalDefault } = getStyleProperties(params2, "Normal", translator$12);
19258
19258
  let styleId = inlineProps?.styleId;
19259
- let styleProps = inlineProps?.styleId ? resolveStyleChain(params2, inlineProps?.styleId, translator$10) : {};
19259
+ let styleProps = inlineProps?.styleId ? resolveStyleChain(params2, inlineProps?.styleId, translator$12) : {};
19260
19260
  let numberingProps = {};
19261
19261
  let ilvl = inlineProps?.numberingProperties?.ilvl ?? styleProps?.numberingProperties?.ilvl;
19262
19262
  const numId = inlineProps?.numberingProperties?.numId ?? styleProps?.numberingProperties?.numId;
@@ -19264,10 +19264,10 @@
19264
19264
  const isList2 = numId != null;
19265
19265
  if (isList2) {
19266
19266
  ilvl = ilvl != null ? ilvl : 0;
19267
- numberingProps = getNumberingProperties(params2, ilvl, numId, translator$10);
19267
+ numberingProps = getNumberingProperties(params2, ilvl, numId, translator$12);
19268
19268
  if (overrideInlineStyleId && numberingProps.styleId) {
19269
19269
  styleId = numberingProps.styleId;
19270
- styleProps = resolveStyleChain(params2, styleId, translator$10);
19270
+ styleProps = resolveStyleChain(params2, styleId, translator$12);
19271
19271
  if (inlineProps) {
19272
19272
  inlineProps.styleId = styleId;
19273
19273
  if (styleProps.numberingProperties?.ilvl === inlineProps.numberingProperties?.ilvl && styleProps.numberingProperties?.numId === inlineProps.numberingProperties?.numId) {
@@ -19289,7 +19289,7 @@
19289
19289
  if (numberingDefinedInline) {
19290
19290
  indentChain = [...defaultsChain, styleProps, numberingProps, inlineProps];
19291
19291
  } else {
19292
- styleProps = resolveStyleChain(params2, styleId, translator$10, false);
19292
+ styleProps = resolveStyleChain(params2, styleId, translator$12, false);
19293
19293
  indentChain = [...defaultsChain, numberingProps, styleProps, inlineProps];
19294
19294
  }
19295
19295
  } else {
@@ -19397,7 +19397,7 @@
19397
19397
  const numStyleLink = listDefinitionForThisNumId.elements?.find((item) => item.name === "w:numStyleLink");
19398
19398
  const styleId = numStyleLink?.attributes?.["w:val"];
19399
19399
  if (styleId && tries < 1) {
19400
- const { properties: styleProps } = getStyleProperties(params2, styleId, translator$10);
19400
+ const { properties: styleProps } = getStyleProperties(params2, styleId, translator$12);
19401
19401
  if (styleProps?.numberingProperties?.numId) {
19402
19402
  return getNumberingProperties(params2, ilvl, styleProps.numberingProperties.numId, translator2, tries + 1);
19403
19403
  }
@@ -19932,7 +19932,7 @@
19932
19932
  let submarks = [];
19933
19933
  const rPr = rPrChange.elements?.find((el) => el.name === "w:rPr");
19934
19934
  if (rPr) {
19935
- const runProperties = translator$1L.encode({ ...params2, nodes: [rPr] });
19935
+ const runProperties = translator$1N.encode({ ...params2, nodes: [rPr] });
19936
19936
  submarks = encodeMarksFromRPr(runProperties, params2?.docx);
19937
19937
  }
19938
19938
  return [{ type: TrackFormatMarkName, attrs: { ...mappedAttributes, before: submarks, after: [...currentMarks] } }];
@@ -20041,7 +20041,7 @@
20041
20041
  const pPr = node2.elements?.find((el) => el.name === "w:pPr");
20042
20042
  let inlineParagraphProperties = {};
20043
20043
  if (pPr) {
20044
- inlineParagraphProperties = translator$10.encode({ ...params2, nodes: [pPr] }) || {};
20044
+ inlineParagraphProperties = translator$12.encode({ ...params2, nodes: [pPr] }) || {};
20045
20045
  }
20046
20046
  const insideTable = (params2.path || []).some((ancestor) => ancestor.name === "w:tc");
20047
20047
  const resolvedParagraphProperties = resolveParagraphProperties(params2, inlineParagraphProperties, insideTable);
@@ -20094,89 +20094,89 @@
20094
20094
  }
20095
20095
  return schemaNode;
20096
20096
  };
20097
- const encode$y = (attributes) => {
20097
+ const encode$A = (attributes) => {
20098
20098
  return attributes["w:rsidDel"];
20099
20099
  };
20100
- const decode$A = (attrs) => {
20100
+ const decode$C = (attrs) => {
20101
20101
  return attrs.rsidDel;
20102
20102
  };
20103
20103
  const attrConfig$h = Object.freeze({
20104
20104
  xmlName: "w:rsidDel",
20105
20105
  sdName: "rsidDel",
20106
- encode: encode$y,
20107
- decode: decode$A
20106
+ encode: encode$A,
20107
+ decode: decode$C
20108
20108
  });
20109
- const encode$x = (attributes) => {
20109
+ const encode$z = (attributes) => {
20110
20110
  return attributes["w:rsidP"];
20111
20111
  };
20112
- const decode$z = (attrs) => {
20112
+ const decode$B = (attrs) => {
20113
20113
  return attrs.rsidP;
20114
20114
  };
20115
20115
  const attrConfig$g = Object.freeze({
20116
20116
  xmlName: "w:rsidP",
20117
20117
  sdName: "rsidP",
20118
- encode: encode$x,
20119
- decode: decode$z
20118
+ encode: encode$z,
20119
+ decode: decode$B
20120
20120
  });
20121
- const encode$w = (attributes) => {
20121
+ const encode$y = (attributes) => {
20122
20122
  return attributes["w:rsidR"];
20123
20123
  };
20124
- const decode$y = (attrs) => {
20124
+ const decode$A = (attrs) => {
20125
20125
  return attrs.rsidR;
20126
20126
  };
20127
20127
  const attrConfig$f = Object.freeze({
20128
20128
  xmlName: "w:rsidR",
20129
20129
  sdName: "rsidR",
20130
- encode: encode$w,
20131
- decode: decode$y
20130
+ encode: encode$y,
20131
+ decode: decode$A
20132
20132
  });
20133
- const encode$v = (attributes) => {
20133
+ const encode$x = (attributes) => {
20134
20134
  return attributes["w:rsidRPr"];
20135
20135
  };
20136
- const decode$x = (attrs) => {
20136
+ const decode$z = (attrs) => {
20137
20137
  return attrs.rsidRPr;
20138
20138
  };
20139
20139
  const attrConfig$e = Object.freeze({
20140
20140
  xmlName: "w:rsidRPr",
20141
20141
  sdName: "rsidRPr",
20142
- encode: encode$v,
20143
- decode: decode$x
20142
+ encode: encode$x,
20143
+ decode: decode$z
20144
20144
  });
20145
- const encode$u = (attributes) => {
20145
+ const encode$w = (attributes) => {
20146
20146
  return attributes["w:rsidRDefault"];
20147
20147
  };
20148
- const decode$w = (attrs) => {
20148
+ const decode$y = (attrs) => {
20149
20149
  return attrs.rsidRDefault;
20150
20150
  };
20151
20151
  const attrConfig$d = Object.freeze({
20152
20152
  xmlName: "w:rsidRDefault",
20153
20153
  sdName: "rsidRDefault",
20154
- encode: encode$u,
20155
- decode: decode$w
20154
+ encode: encode$w,
20155
+ decode: decode$y
20156
20156
  });
20157
- const encode$t = (attributes) => {
20157
+ const encode$v = (attributes) => {
20158
20158
  return attributes["w14:paraId"];
20159
20159
  };
20160
- const decode$v = (attrs) => {
20160
+ const decode$x = (attrs) => {
20161
20161
  return attrs.paraId;
20162
20162
  };
20163
20163
  const attrConfig$c = Object.freeze({
20164
20164
  xmlName: "w14:paraId",
20165
20165
  sdName: "paraId",
20166
- encode: encode$t,
20167
- decode: decode$v
20166
+ encode: encode$v,
20167
+ decode: decode$x
20168
20168
  });
20169
- const encode$s = (attributes) => {
20169
+ const encode$u = (attributes) => {
20170
20170
  return attributes["w14:textId"];
20171
20171
  };
20172
- const decode$u = (attrs) => {
20172
+ const decode$w = (attrs) => {
20173
20173
  return attrs.textId;
20174
20174
  };
20175
20175
  const attrConfig$b = Object.freeze({
20176
20176
  xmlName: "w14:textId",
20177
20177
  sdName: "textId",
20178
- encode: encode$s,
20179
- decode: decode$u
20178
+ encode: encode$u,
20179
+ decode: decode$w
20180
20180
  });
20181
20181
  const validXmlAttributes$d = [
20182
20182
  attrConfig$c,
@@ -20187,9 +20187,9 @@
20187
20187
  attrConfig$e,
20188
20188
  attrConfig$h
20189
20189
  ];
20190
- const XML_NODE_NAME$i = "w:p";
20191
- const SD_NODE_NAME$f = "paragraph";
20192
- const encode$r = (params2, encodedAttrs = {}) => {
20190
+ const XML_NODE_NAME$k = "w:p";
20191
+ const SD_NODE_NAME$h = "paragraph";
20192
+ const encode$t = (params2, encodedAttrs = {}) => {
20193
20193
  const node2 = handleParagraphNode$1(params2);
20194
20194
  if (!node2) return void 0;
20195
20195
  if (encodedAttrs && Object.keys(encodedAttrs).length) {
@@ -20197,7 +20197,7 @@
20197
20197
  }
20198
20198
  return node2;
20199
20199
  };
20200
- const decode$t = (params2, decodedAttrs = {}) => {
20200
+ const decode$v = (params2, decodedAttrs = {}) => {
20201
20201
  const translated = translateParagraphNode(params2);
20202
20202
  if (!translated) return void 0;
20203
20203
  if (decodedAttrs && Object.keys(decodedAttrs).length) {
@@ -20205,15 +20205,15 @@
20205
20205
  }
20206
20206
  return translated;
20207
20207
  };
20208
- const config$h = {
20209
- xmlName: XML_NODE_NAME$i,
20210
- sdNodeOrKeyName: SD_NODE_NAME$f,
20208
+ const config$j = {
20209
+ xmlName: XML_NODE_NAME$k,
20210
+ sdNodeOrKeyName: SD_NODE_NAME$h,
20211
20211
  type: NodeTranslator.translatorTypes.NODE,
20212
- encode: encode$r,
20213
- decode: decode$t,
20212
+ encode: encode$t,
20213
+ decode: decode$v,
20214
20214
  attributes: validXmlAttributes$d
20215
20215
  };
20216
- const translator$$ = NodeTranslator.from(config$h);
20216
+ const translator$11 = NodeTranslator.from(config$j);
20217
20217
  const EAST_ASIAN_CHARACTER_REGEX = /[\u1100-\u11FF\u2E80-\u2EFF\u2F00-\u2FDF\u3040-\u30FF\u3100-\u312F\u3130-\u318F\u31A0-\u31BF\u3400-\u4DBF\u4E00-\u9FFF\uA960-\uA97F\uAC00-\uD7AF\uF900-\uFAFF\uFF00-\uFFEF]/u;
20218
20218
  const containsEastAsianCharacters = (text2) => EAST_ASIAN_CHARACTER_REGEX.test(text2);
20219
20219
  const resolveFontFamily = (textStyleAttrs, text2) => {
@@ -20373,8 +20373,8 @@
20373
20373
  }
20374
20374
  return runs2;
20375
20375
  };
20376
- const XML_NODE_NAME$h = "w:hyperlink";
20377
- const SD_NODE_NAME$e = "link";
20376
+ const XML_NODE_NAME$j = "w:hyperlink";
20377
+ const SD_NODE_NAME$g = "link";
20378
20378
  const _createAttributeHandler = (xmlName, sdName) => ({
20379
20379
  xmlName,
20380
20380
  sdName,
@@ -20394,7 +20394,7 @@
20394
20394
  _createAttributeHandler("r:id", "rId"),
20395
20395
  _createAttributeHandler("w:tgtFrame", "target")
20396
20396
  ];
20397
- const encode$q = (params2, encodedAttrs) => {
20397
+ const encode$s = (params2, encodedAttrs) => {
20398
20398
  const { nodes, docx, nodeListHandler } = params2;
20399
20399
  const node2 = nodes[0];
20400
20400
  let href = _resolveHref(docx, encodedAttrs);
@@ -20428,7 +20428,7 @@
20428
20428
  }
20429
20429
  return href;
20430
20430
  };
20431
- function decode$s(params2) {
20431
+ function decode$u(params2) {
20432
20432
  const { hyperlinkGroup = [params2.node] } = params2.extraParams || {};
20433
20433
  const node2 = hyperlinkGroup[0];
20434
20434
  const linkMark = node2.marks.find((m2) => m2.type === "link");
@@ -20477,61 +20477,61 @@
20477
20477
  });
20478
20478
  return id;
20479
20479
  }
20480
- const config$g = {
20481
- xmlName: XML_NODE_NAME$h,
20482
- sdNodeOrKeyName: SD_NODE_NAME$e,
20480
+ const config$i = {
20481
+ xmlName: XML_NODE_NAME$j,
20482
+ sdNodeOrKeyName: SD_NODE_NAME$g,
20483
20483
  type: NodeTranslator.translatorTypes.NODE,
20484
- encode: encode$q,
20485
- decode: decode$s,
20484
+ encode: encode$s,
20485
+ decode: decode$u,
20486
20486
  attributes: validXmlAttributes$c
20487
20487
  };
20488
- const translator$_ = NodeTranslator.from(config$g);
20489
- const encode$p = (attributes) => {
20488
+ const translator$10 = NodeTranslator.from(config$i);
20489
+ const encode$r = (attributes) => {
20490
20490
  return attributes["w:rsidR"];
20491
20491
  };
20492
- const decode$r = (attrs) => {
20492
+ const decode$t = (attrs) => {
20493
20493
  return attrs.rsidR;
20494
20494
  };
20495
20495
  const attrConfig$a = Object.freeze({
20496
20496
  xmlName: "w:rsidR",
20497
20497
  sdName: "rsidR",
20498
- encode: encode$p,
20499
- decode: decode$r
20498
+ encode: encode$r,
20499
+ decode: decode$t
20500
20500
  });
20501
- const encode$o = (attributes) => {
20501
+ const encode$q = (attributes) => {
20502
20502
  return attributes["w:rsidRPr"];
20503
20503
  };
20504
- const decode$q = (attrs) => {
20504
+ const decode$s = (attrs) => {
20505
20505
  return attrs.rsidRPr;
20506
20506
  };
20507
20507
  const attrConfig$9 = Object.freeze({
20508
20508
  xmlName: "w:rsidRPr",
20509
20509
  sdName: "rsidRPr",
20510
- encode: encode$o,
20511
- decode: decode$q
20510
+ encode: encode$q,
20511
+ decode: decode$s
20512
20512
  });
20513
- const encode$n = (attributes) => {
20513
+ const encode$p = (attributes) => {
20514
20514
  return attributes["w:rsidDel"];
20515
20515
  };
20516
- const decode$p = (attrs) => {
20516
+ const decode$r = (attrs) => {
20517
20517
  return attrs.rsidDel;
20518
20518
  };
20519
20519
  const attrConfig$8 = Object.freeze({
20520
20520
  xmlName: "w:rsidDel",
20521
20521
  sdName: "rsidDel",
20522
- encode: encode$n,
20523
- decode: decode$p
20522
+ encode: encode$p,
20523
+ decode: decode$r
20524
20524
  });
20525
20525
  const validXmlAttributes$b = [attrConfig$a, attrConfig$9, attrConfig$8];
20526
- const XML_NODE_NAME$g = "w:r";
20526
+ const XML_NODE_NAME$i = "w:r";
20527
20527
  const SD_KEY_NAME = "run";
20528
- const encode$m = (params2, encodedAttrs = {}) => {
20528
+ const encode$o = (params2, encodedAttrs = {}) => {
20529
20529
  const { nodes = [], nodeListHandler } = params2 || {};
20530
20530
  const runNode = nodes[0];
20531
20531
  if (!runNode) return void 0;
20532
20532
  const elements = Array.isArray(runNode.elements) ? runNode.elements : [];
20533
20533
  const rPrNode = elements.find((child) => child?.name === "w:rPr");
20534
- const runProperties = rPrNode ? translator$1L.encode({ ...params2, nodes: [rPrNode] }) : {};
20534
+ const runProperties = rPrNode ? translator$1N.encode({ ...params2, nodes: [rPrNode] }) : {};
20535
20535
  const paragraphProperties = params2?.extraParams?.paragraphProperties || {};
20536
20536
  const resolvedRunProperties = resolveRunProperties(params2, runProperties ?? {}, paragraphProperties);
20537
20537
  const marks = encodeMarksFromRPr(resolvedRunProperties, params2?.docx) || [];
@@ -20578,7 +20578,7 @@
20578
20578
  }
20579
20579
  return runNodeResult;
20580
20580
  };
20581
- const decode$o = (params2, decodedAttrs = {}) => {
20581
+ const decode$q = (params2, decodedAttrs = {}) => {
20582
20582
  const { node: node2 } = params2 || {};
20583
20583
  if (!node2) return void 0;
20584
20584
  const isLinkNode = node2.marks?.some((m2) => m2.type === "link");
@@ -20587,7 +20587,7 @@
20587
20587
  ...params2.extraParams,
20588
20588
  linkProcessed: true
20589
20589
  };
20590
- return translator$_.decode({ ...params2, extraParams });
20590
+ return translator$10.decode({ ...params2, extraParams });
20591
20591
  }
20592
20592
  const { runNode: runNodeForExport, trackingMarksByType } = prepareRunTrackingContext(node2);
20593
20593
  const runAttrs = runNodeForExport.attrs || {};
@@ -20603,7 +20603,7 @@
20603
20603
  exportParams.editor = { extensionService: { extensions: [] } };
20604
20604
  }
20605
20605
  const childElements = translateChildNodes(exportParams) || [];
20606
- let runPropertiesElement = translator$1L.decode({
20606
+ let runPropertiesElement = translator$1N.decode({
20607
20607
  ...params2,
20608
20608
  node: { attrs: { runProperties: finalRunProperties } }
20609
20609
  });
@@ -20636,7 +20636,7 @@
20636
20636
  runs2.push(trackedClone);
20637
20637
  return;
20638
20638
  }
20639
- const runWrapper = { name: XML_NODE_NAME$g, elements: [] };
20639
+ const runWrapper = { name: XML_NODE_NAME$i, elements: [] };
20640
20640
  applyBaseRunProps(runWrapper);
20641
20641
  if (!Array.isArray(runWrapper.elements)) runWrapper.elements = [];
20642
20642
  runWrapper.elements.push(cloneXmlNode(child));
@@ -20644,7 +20644,7 @@
20644
20644
  });
20645
20645
  const trackedRuns = ensureTrackedWrapper(runs2, trackingMarksByType);
20646
20646
  if (!trackedRuns.length) {
20647
- const emptyRun = { name: XML_NODE_NAME$g, elements: [] };
20647
+ const emptyRun = { name: XML_NODE_NAME$i, elements: [] };
20648
20648
  applyBaseRunProps(emptyRun);
20649
20649
  trackedRuns.push(emptyRun);
20650
20650
  }
@@ -20658,17 +20658,17 @@
20658
20658
  }
20659
20659
  return trackedRuns;
20660
20660
  };
20661
- const config$f = {
20662
- xmlName: XML_NODE_NAME$g,
20661
+ const config$h = {
20662
+ xmlName: XML_NODE_NAME$i,
20663
20663
  sdNodeOrKeyName: SD_KEY_NAME,
20664
20664
  type: NodeTranslator.translatorTypes.NODE,
20665
- encode: encode$m,
20666
- decode: decode$o,
20665
+ encode: encode$o,
20666
+ decode: decode$q,
20667
20667
  attributes: validXmlAttributes$b
20668
20668
  };
20669
- const translator$Z = NodeTranslator.from(config$f);
20670
- const translator$Y = NodeTranslator.from(createMeasurementPropertyHandler("w:tcW", "cellWidth"));
20671
- const translator$X = NodeTranslator.from(
20669
+ const translator$$ = NodeTranslator.from(config$h);
20670
+ const translator$_ = NodeTranslator.from(createMeasurementPropertyHandler("w:tcW", "cellWidth"));
20671
+ const translator$Z = NodeTranslator.from(
20672
20672
  createSingleAttrPropertyHandler(
20673
20673
  "w:gridSpan",
20674
20674
  null,
@@ -20677,31 +20677,31 @@
20677
20677
  (v2) => integerToString(v2)
20678
20678
  )
20679
20679
  );
20680
- const translator$W = NodeTranslator.from(createSingleAttrPropertyHandler("w:vMerge"));
20681
- const translator$V = NodeTranslator.from(createBorderPropertyHandler("w:end"));
20682
- const translator$U = NodeTranslator.from(createMeasurementPropertyHandler("w:end", "marginEnd"));
20683
- const translator$T = NodeTranslator.from(createBorderPropertyHandler("w:insideH"));
20684
- const translator$S = NodeTranslator.from(createBorderPropertyHandler("w:insideV"));
20685
- const translator$R = NodeTranslator.from(createBorderPropertyHandler("w:start"));
20686
- const translator$Q = NodeTranslator.from(createMeasurementPropertyHandler("w:start", "marginStart"));
20687
- const translator$P = NodeTranslator.from(createBorderPropertyHandler("w:tl2br"));
20688
- const translator$O = NodeTranslator.from(createBorderPropertyHandler("w:tr2bl"));
20680
+ const translator$Y = NodeTranslator.from(createSingleAttrPropertyHandler("w:vMerge"));
20681
+ const translator$X = NodeTranslator.from(createBorderPropertyHandler("w:end"));
20682
+ const translator$W = NodeTranslator.from(createMeasurementPropertyHandler("w:end", "marginEnd"));
20683
+ const translator$V = NodeTranslator.from(createBorderPropertyHandler("w:insideH"));
20684
+ const translator$U = NodeTranslator.from(createBorderPropertyHandler("w:insideV"));
20685
+ const translator$T = NodeTranslator.from(createBorderPropertyHandler("w:start"));
20686
+ const translator$S = NodeTranslator.from(createMeasurementPropertyHandler("w:start", "marginStart"));
20687
+ const translator$R = NodeTranslator.from(createBorderPropertyHandler("w:tl2br"));
20688
+ const translator$Q = NodeTranslator.from(createBorderPropertyHandler("w:tr2bl"));
20689
20689
  const propertyTranslators$6 = [
20690
- translator$1h,
20691
- translator$R,
20692
- translator$1l,
20693
- translator$1n,
20694
- translator$V,
20695
20690
  translator$1j,
20696
20691
  translator$T,
20697
- translator$S,
20698
- translator$P,
20699
- translator$O
20692
+ translator$1n,
20693
+ translator$1p,
20694
+ translator$X,
20695
+ translator$1l,
20696
+ translator$V,
20697
+ translator$U,
20698
+ translator$R,
20699
+ translator$Q
20700
20700
  ];
20701
- const translator$N = NodeTranslator.from(
20701
+ const translator$P = NodeTranslator.from(
20702
20702
  createNestedPropertiesTranslator("w:tcBorders", "borders", propertyTranslators$6)
20703
20703
  );
20704
- const translator$M = NodeTranslator.from(
20704
+ const translator$O = NodeTranslator.from(
20705
20705
  createSingleAttrPropertyHandler(
20706
20706
  "w:noWrap",
20707
20707
  null,
@@ -20711,17 +20711,17 @@
20711
20711
  )
20712
20712
  );
20713
20713
  const propertyTranslators$5 = [
20714
+ translator$1o,
20715
+ translator$W,
20714
20716
  translator$1m,
20715
- translator$U,
20716
20717
  translator$1k,
20717
- translator$1i,
20718
- translator$Q,
20719
- translator$1g
20718
+ translator$S,
20719
+ translator$1i
20720
20720
  ];
20721
- const translator$L = NodeTranslator.from(
20721
+ const translator$N = NodeTranslator.from(
20722
20722
  createNestedPropertiesTranslator("w:tcMar", "cellMargins", propertyTranslators$5)
20723
20723
  );
20724
- const translator$K = NodeTranslator.from(
20724
+ const translator$M = NodeTranslator.from(
20725
20725
  createSingleAttrPropertyHandler(
20726
20726
  "w:tcFitText",
20727
20727
  null,
@@ -20730,8 +20730,8 @@
20730
20730
  (v2) => booleanToString(v2)
20731
20731
  )
20732
20732
  );
20733
- const translator$J = NodeTranslator.from(createSingleAttrPropertyHandler("w:vAlign"));
20734
- const translator$I = NodeTranslator.from(
20733
+ const translator$L = NodeTranslator.from(createSingleAttrPropertyHandler("w:vAlign"));
20734
+ const translator$K = NodeTranslator.from(
20735
20735
  createSingleAttrPropertyHandler(
20736
20736
  "w:hideMark",
20737
20737
  null,
@@ -20740,26 +20740,26 @@
20740
20740
  (v2) => booleanToString(v2)
20741
20741
  )
20742
20742
  );
20743
- const translator$H = NodeTranslator.from(createSingleAttrPropertyHandler("w:header"));
20744
- const translator$G = NodeTranslator.from(
20745
- createNestedArrayPropertyHandler("w:headers", "headers", [translator$H])
20743
+ const translator$J = NodeTranslator.from(createSingleAttrPropertyHandler("w:header"));
20744
+ const translator$I = NodeTranslator.from(
20745
+ createNestedArrayPropertyHandler("w:headers", "headers", [translator$J])
20746
20746
  );
20747
20747
  const propertyTranslators$4 = [
20748
- translator$1F,
20748
+ translator$1H,
20749
+ translator$_,
20750
+ translator$Z,
20749
20751
  translator$Y,
20750
- translator$X,
20751
- translator$W,
20752
+ translator$P,
20753
+ translator$1Q,
20754
+ translator$O,
20752
20755
  translator$N,
20753
- translator$1O,
20756
+ translator$17,
20754
20757
  translator$M,
20755
20758
  translator$L,
20756
- translator$15,
20757
20759
  translator$K,
20758
- translator$J,
20759
- translator$I,
20760
- translator$G
20760
+ translator$I
20761
20761
  ];
20762
- const translator$F = NodeTranslator.from(
20762
+ const translator$H = NodeTranslator.from(
20763
20763
  createNestedPropertiesTranslator("w:tcPr", "tableCellProperties", propertyTranslators$4)
20764
20764
  );
20765
20765
  function handleTableCellNode({
@@ -20777,7 +20777,7 @@
20777
20777
  const attributes = {};
20778
20778
  const referencedStyles = _referencedStyles ?? { fontSize: null, fonts: {}, cellMargins: {} };
20779
20779
  const tcPr = node2.elements.find((el) => el.name === "w:tcPr");
20780
- const tableCellProperties = tcPr ? translator$F.encode({ ...params2, nodes: [tcPr] }) ?? {} : {};
20780
+ const tableCellProperties = tcPr ? translator$H.encode({ ...params2, nodes: [tcPr] }) ?? {} : {};
20781
20781
  attributes["tableCellProperties"] = tableCellProperties;
20782
20782
  if (rowBorders?.insideH) {
20783
20783
  rowBorders["bottom"] = rowBorders.insideH;
@@ -21089,13 +21089,13 @@
21089
21089
  } else if (tableCellProperties?.borders) {
21090
21090
  delete tableCellProperties.borders;
21091
21091
  }
21092
- const result = translator$F.decode({ node: { ...node2, attrs: { ...node2.attrs, tableCellProperties } } });
21092
+ const result = translator$H.decode({ node: { ...node2, attrs: { ...node2.attrs, tableCellProperties } } });
21093
21093
  return result;
21094
21094
  }
21095
- const XML_NODE_NAME$f = "w:tc";
21096
- const SD_NODE_NAME$d = "tableCell";
21095
+ const XML_NODE_NAME$h = "w:tc";
21096
+ const SD_NODE_NAME$f = "tableCell";
21097
21097
  const validXmlAttributes$a = [];
21098
- function encode$l(params2, encodedAttrs) {
21098
+ function encode$n(params2, encodedAttrs) {
21099
21099
  const {
21100
21100
  node: node2,
21101
21101
  table: table2,
@@ -21122,29 +21122,29 @@
21122
21122
  }
21123
21123
  return schemaNode;
21124
21124
  }
21125
- function decode$n(params2, decodedAttrs) {
21125
+ function decode$p(params2, decodedAttrs) {
21126
21126
  const translated = translateTableCell(params2);
21127
21127
  if (decodedAttrs && Object.keys(decodedAttrs).length) {
21128
21128
  translated.attributes = { ...translated.attributes || {}, ...decodedAttrs };
21129
21129
  }
21130
21130
  return translated;
21131
21131
  }
21132
- const config$e = {
21133
- xmlName: XML_NODE_NAME$f,
21134
- sdNodeOrKeyName: SD_NODE_NAME$d,
21132
+ const config$g = {
21133
+ xmlName: XML_NODE_NAME$h,
21134
+ sdNodeOrKeyName: SD_NODE_NAME$f,
21135
21135
  type: NodeTranslator.translatorTypes.NODE,
21136
- encode: encode$l,
21137
- decode: decode$n,
21136
+ encode: encode$n,
21137
+ decode: decode$p,
21138
21138
  attributes: validXmlAttributes$a
21139
21139
  };
21140
- const translator$E = NodeTranslator.from(config$e);
21141
- const translator$D = NodeTranslator.from({
21140
+ const translator$G = NodeTranslator.from(config$g);
21141
+ const translator$F = NodeTranslator.from({
21142
21142
  xmlName: "w:cantSplit",
21143
21143
  sdNodeOrKeyName: "cantSplit",
21144
21144
  encode: ({ nodes }) => ["1", "true"].includes(nodes[0].attributes?.["w:val"] ?? "1"),
21145
21145
  decode: ({ node: node2 }) => node2.attrs?.cantSplit ? { attributes: {} } : void 0
21146
21146
  });
21147
- const translator$C = NodeTranslator.from(
21147
+ const translator$E = NodeTranslator.from(
21148
21148
  createSingleAttrPropertyHandler(
21149
21149
  "w:gridAfter",
21150
21150
  null,
@@ -21153,7 +21153,7 @@
21153
21153
  (v2) => integerToString(v2)
21154
21154
  )
21155
21155
  );
21156
- const translator$B = NodeTranslator.from(
21156
+ const translator$D = NodeTranslator.from(
21157
21157
  createSingleAttrPropertyHandler(
21158
21158
  "w:gridBefore",
21159
21159
  null,
@@ -21162,20 +21162,20 @@
21162
21162
  (v2) => integerToString(v2)
21163
21163
  )
21164
21164
  );
21165
- const translator$A = NodeTranslator.from({
21165
+ const translator$C = NodeTranslator.from({
21166
21166
  xmlName: "w:hidden",
21167
21167
  sdNodeOrKeyName: "hidden",
21168
21168
  encode: ({ nodes }) => parseBoolean(nodes[0].attributes?.["w:val"] ?? "1"),
21169
21169
  decode: ({ node: node2 }) => node2.attrs.hidden ? { attributes: {} } : void 0
21170
21170
  });
21171
- const translator$z = NodeTranslator.from(createMeasurementPropertyHandler("w:tblCellSpacing", "tableCellSpacing"));
21172
- const translator$y = NodeTranslator.from({
21171
+ const translator$B = NodeTranslator.from(createMeasurementPropertyHandler("w:tblCellSpacing", "tableCellSpacing"));
21172
+ const translator$A = NodeTranslator.from({
21173
21173
  xmlName: "w:tblHeader",
21174
21174
  sdNodeOrKeyName: "repeatHeader",
21175
21175
  encode: ({ nodes }) => parseBoolean(nodes[0].attributes?.["w:val"] ?? "1"),
21176
21176
  decode: ({ node: node2 }) => node2.attrs.repeatHeader ? { attributes: {} } : void 0
21177
21177
  });
21178
- const translator$x = NodeTranslator.from({
21178
+ const translator$z = NodeTranslator.from({
21179
21179
  xmlName: "w:trHeight",
21180
21180
  sdNodeOrKeyName: "rowHeight",
21181
21181
  encode: ({ nodes }) => {
@@ -21202,23 +21202,23 @@
21202
21202
  return Object.keys(heightAttrs).length > 0 ? { attributes: heightAttrs } : void 0;
21203
21203
  }
21204
21204
  });
21205
- const translator$w = NodeTranslator.from(createMeasurementPropertyHandler("w:wAfter"));
21206
- const translator$v = NodeTranslator.from(createMeasurementPropertyHandler("w:wBefore"));
21205
+ const translator$y = NodeTranslator.from(createMeasurementPropertyHandler("w:wAfter"));
21206
+ const translator$x = NodeTranslator.from(createMeasurementPropertyHandler("w:wBefore"));
21207
21207
  const propertyTranslators$3 = [
21208
- translator$D,
21208
+ translator$F,
21209
+ translator$1H,
21209
21210
  translator$1F,
21210
- translator$1D,
21211
+ translator$E,
21212
+ translator$D,
21211
21213
  translator$C,
21214
+ translator$1C,
21212
21215
  translator$B,
21213
21216
  translator$A,
21214
- translator$1A,
21215
21217
  translator$z,
21216
21218
  translator$y,
21217
- translator$x,
21218
- translator$w,
21219
- translator$v
21219
+ translator$x
21220
21220
  ];
21221
- const translator$u = NodeTranslator.from(
21221
+ const translator$w = NodeTranslator.from(
21222
21222
  createNestedPropertiesTranslator("w:trPr", "tableRowProperties", propertyTranslators$3, {
21223
21223
  cantSplit: false,
21224
21224
  hidden: false,
@@ -21287,17 +21287,17 @@
21287
21287
  }
21288
21288
  return false;
21289
21289
  };
21290
- const XML_NODE_NAME$e = "w:tr";
21291
- const SD_NODE_NAME$c = "tableRow";
21290
+ const XML_NODE_NAME$g = "w:tr";
21291
+ const SD_NODE_NAME$e = "tableRow";
21292
21292
  const validXmlAttributes$9 = ["w:rsidDel", "w:rsidR", "w:rsidRPr", "w:rsidTr", "w14:paraId", "w14:textId"].map(
21293
21293
  (xmlName) => createAttributeHandler(xmlName)
21294
21294
  );
21295
- const encode$k = (params2, encodedAttrs) => {
21295
+ const encode$m = (params2, encodedAttrs) => {
21296
21296
  const { row: row2 } = params2.extraParams;
21297
21297
  let tableRowProperties = {};
21298
21298
  const tPr = row2.elements.find((el) => el.name === "w:trPr");
21299
21299
  if (tPr) {
21300
- tableRowProperties = translator$u.encode({
21300
+ tableRowProperties = translator$w.encode({
21301
21301
  ...params2,
21302
21302
  nodes: [tPr]
21303
21303
  });
@@ -21334,7 +21334,7 @@
21334
21334
  skipOccupiedColumns();
21335
21335
  const startColumn = currentColumnIndex;
21336
21336
  const columnWidth = gridColumnWidths?.[startColumn] || null;
21337
- const result = translator$E.encode({
21337
+ const result = translator$G.encode({
21338
21338
  ...params2,
21339
21339
  extraParams: {
21340
21340
  ...params2.extraParams,
@@ -21367,7 +21367,7 @@
21367
21367
  };
21368
21368
  return newNode;
21369
21369
  };
21370
- const decode$m = (params2, decodedAttrs) => {
21370
+ const decode$o = (params2, decodedAttrs) => {
21371
21371
  const { node: node2 } = params2;
21372
21372
  const cells = node2.content || [];
21373
21373
  let leadingPlaceholders = 0;
@@ -21407,7 +21407,7 @@
21407
21407
  }
21408
21408
  }
21409
21409
  tableRowProperties["cantSplit"] = node2.attrs["cantSplit"];
21410
- const trPr = translator$u.decode({
21410
+ const trPr = translator$w.decode({
21411
21411
  ...params2,
21412
21412
  node: { ...node2, attrs: { ...node2.attrs, tableRowProperties } }
21413
21413
  });
@@ -21419,15 +21419,15 @@
21419
21419
  elements
21420
21420
  };
21421
21421
  };
21422
- const config$d = {
21423
- xmlName: XML_NODE_NAME$e,
21424
- sdNodeOrKeyName: SD_NODE_NAME$c,
21422
+ const config$f = {
21423
+ xmlName: XML_NODE_NAME$g,
21424
+ sdNodeOrKeyName: SD_NODE_NAME$e,
21425
21425
  type: NodeTranslator.translatorTypes.NODE,
21426
- encode: encode$k,
21427
- decode: decode$m,
21426
+ encode: encode$m,
21427
+ decode: decode$o,
21428
21428
  attributes: validXmlAttributes$9
21429
21429
  };
21430
- const translator$t = NodeTranslator.from(config$d);
21430
+ const translator$v = NodeTranslator.from(config$f);
21431
21431
  function parseTagValueJSON(json) {
21432
21432
  if (typeof json !== "string") {
21433
21433
  return {};
@@ -30381,32 +30381,32 @@ Please report this to https://github.com/markedjs/marked.`, e) {
30381
30381
  elements: [...anchorElements, ...elementsWithWrap]
30382
30382
  };
30383
30383
  }
30384
- const XML_NODE_NAME$d = "wp:anchor";
30385
- const SD_NODE_NAME$b = ["image", "shapeGroup", "vectorShape", "contentBlock"];
30384
+ const XML_NODE_NAME$f = "wp:anchor";
30385
+ const SD_NODE_NAME$d = ["image", "shapeGroup", "vectorShape", "contentBlock"];
30386
30386
  const validXmlAttributes$8 = ["distT", "distB", "distL", "distR"].map((xmlName) => createAttributeHandler(xmlName));
30387
- function encode$j(params2) {
30387
+ function encode$l(params2) {
30388
30388
  const { node: node2 } = params2.extraParams;
30389
30389
  if (!node2 || !node2.name) {
30390
30390
  return null;
30391
30391
  }
30392
30392
  return handleAnchorNode(params2);
30393
30393
  }
30394
- function decode$l(params2) {
30394
+ function decode$n(params2) {
30395
30395
  const { node: node2 } = params2;
30396
30396
  if (!node2 || !node2.type) {
30397
30397
  return null;
30398
30398
  }
30399
30399
  return translateAnchorNode(params2);
30400
30400
  }
30401
- const config$c = {
30402
- xmlName: XML_NODE_NAME$d,
30403
- sdNodeOrKeyName: SD_NODE_NAME$b,
30401
+ const config$e = {
30402
+ xmlName: XML_NODE_NAME$f,
30403
+ sdNodeOrKeyName: SD_NODE_NAME$d,
30404
30404
  type: NodeTranslator.translatorTypes.NODE,
30405
- encode: encode$j,
30406
- decode: decode$l,
30405
+ encode: encode$l,
30406
+ decode: decode$n,
30407
30407
  attributes: validXmlAttributes$8
30408
30408
  };
30409
- const translator$s = NodeTranslator.from(config$c);
30409
+ const translator$u = NodeTranslator.from(config$e);
30410
30410
  function handleInlineNode(params2) {
30411
30411
  const { node: node2 } = params2.extraParams;
30412
30412
  if (node2.name !== "wp:inline") {
@@ -30422,41 +30422,41 @@ Please report this to https://github.com/markedjs/marked.`, e) {
30422
30422
  elements: nodeElements.elements
30423
30423
  };
30424
30424
  }
30425
- const XML_NODE_NAME$c = "wp:inline";
30426
- const SD_NODE_NAME$a = ["image", "shapeGroup", "vectorShape", "contentBlock"];
30425
+ const XML_NODE_NAME$e = "wp:inline";
30426
+ const SD_NODE_NAME$c = ["image", "shapeGroup", "vectorShape", "contentBlock"];
30427
30427
  const validXmlAttributes$7 = ["distT", "distB", "distL", "distR"].map((xmlName) => createAttributeHandler(xmlName));
30428
- function encode$i(params2) {
30428
+ function encode$k(params2) {
30429
30429
  const { node: node2 } = params2.extraParams;
30430
30430
  if (!node2 || !node2.name) {
30431
30431
  return null;
30432
30432
  }
30433
30433
  return handleInlineNode(params2);
30434
30434
  }
30435
- function decode$k(params2) {
30435
+ function decode$m(params2) {
30436
30436
  const { node: node2 } = params2;
30437
30437
  if (!node2 || !node2.type) {
30438
30438
  return null;
30439
30439
  }
30440
30440
  return translateInlineNode(params2);
30441
30441
  }
30442
- const config$b = {
30443
- xmlName: XML_NODE_NAME$c,
30444
- sdNodeOrKeyName: SD_NODE_NAME$a,
30442
+ const config$d = {
30443
+ xmlName: XML_NODE_NAME$e,
30444
+ sdNodeOrKeyName: SD_NODE_NAME$c,
30445
30445
  type: NodeTranslator.translatorTypes.NODE,
30446
- encode: encode$i,
30447
- decode: decode$k,
30446
+ encode: encode$k,
30447
+ decode: decode$m,
30448
30448
  attributes: validXmlAttributes$7
30449
30449
  };
30450
- const translator$r = NodeTranslator.from(config$b);
30451
- const XML_NODE_NAME$b = "w:drawing";
30452
- const SD_NODE_NAME$9 = [];
30450
+ const translator$t = NodeTranslator.from(config$d);
30451
+ const XML_NODE_NAME$d = "w:drawing";
30452
+ const SD_NODE_NAME$b = [];
30453
30453
  const validXmlAttributes$6 = [];
30454
- function encode$h(params2) {
30454
+ function encode$j(params2) {
30455
30455
  const nodes = params2.nodes;
30456
30456
  const node2 = nodes[0];
30457
30457
  const translatorByChildName = {
30458
- "wp:anchor": translator$s,
30459
- "wp:inline": translator$r
30458
+ "wp:anchor": translator$u,
30459
+ "wp:inline": translator$t
30460
30460
  };
30461
30461
  return node2.elements.reduce((acc, child) => {
30462
30462
  if (acc) return acc;
@@ -30465,12 +30465,12 @@ Please report this to https://github.com/markedjs/marked.`, e) {
30465
30465
  return translator2.encode({ ...params2, extraParams: { node: child } }) || acc;
30466
30466
  }, null);
30467
30467
  }
30468
- function decode$j(params2) {
30468
+ function decode$l(params2) {
30469
30469
  const { node: node2 } = params2;
30470
30470
  if (!node2 || !node2.type) {
30471
30471
  return null;
30472
30472
  }
30473
- const childTranslator = node2.attrs.isAnchor ? translator$s : translator$r;
30473
+ const childTranslator = node2.attrs.isAnchor ? translator$u : translator$t;
30474
30474
  const resultNode = childTranslator.decode(params2);
30475
30475
  return wrapTextInRun(
30476
30476
  {
@@ -30480,15 +30480,15 @@ Please report this to https://github.com/markedjs/marked.`, e) {
30480
30480
  []
30481
30481
  );
30482
30482
  }
30483
- const config$a = {
30484
- xmlName: XML_NODE_NAME$b,
30485
- sdNodeOrKeyName: SD_NODE_NAME$9,
30483
+ const config$c = {
30484
+ xmlName: XML_NODE_NAME$d,
30485
+ sdNodeOrKeyName: SD_NODE_NAME$b,
30486
30486
  type: NodeTranslator.translatorTypes.NODE,
30487
- encode: encode$h,
30488
- decode: decode$j,
30487
+ encode: encode$j,
30488
+ decode: decode$l,
30489
30489
  attributes: validXmlAttributes$6
30490
30490
  };
30491
- const translator$q = NodeTranslator.from(config$a);
30491
+ const translator$s = NodeTranslator.from(config$c);
30492
30492
  var he$2 = { exports: {} };
30493
30493
  /*! https://mths.be/he v1.2.0 by @mathias | MIT license */
30494
30494
  var he$1 = he$2.exports;
@@ -30835,7 +30835,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
30835
30835
  return getTextNodeForExport(attrs.displayLabel, [...marks, ...marksFromAttrs], params2);
30836
30836
  }
30837
30837
  function prepareImageAnnotation(params2, imageSize) {
30838
- return translator$q.decode({
30838
+ return translator$s.decode({
30839
30839
  ...params2,
30840
30840
  imageSize
30841
30841
  });
@@ -31159,10 +31159,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
31159
31159
  };
31160
31160
  return result;
31161
31161
  }
31162
- const XML_NODE_NAME$a = "w:sdt";
31163
- const SD_NODE_NAME$8 = ["fieldAnnotation", "structuredContent", "structuredContentBlock", "documentSection"];
31162
+ const XML_NODE_NAME$c = "w:sdt";
31163
+ const SD_NODE_NAME$a = ["fieldAnnotation", "structuredContent", "structuredContentBlock", "documentSection"];
31164
31164
  const validXmlAttributes$5 = [];
31165
- function encode$g(params2) {
31165
+ function encode$i(params2) {
31166
31166
  const nodes = params2.nodes;
31167
31167
  const node2 = nodes[0];
31168
31168
  const { type: sdtType, handler: handler2 } = sdtNodeTypeStrategy(node2);
@@ -31172,7 +31172,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
31172
31172
  const result = handler2(params2);
31173
31173
  return result;
31174
31174
  }
31175
- function decode$i(params2) {
31175
+ function decode$k(params2) {
31176
31176
  const { node: node2 } = params2;
31177
31177
  if (!node2 || !node2.type) {
31178
31178
  return null;
@@ -31190,15 +31190,15 @@ Please report this to https://github.com/markedjs/marked.`, e) {
31190
31190
  const result = decoder();
31191
31191
  return result;
31192
31192
  }
31193
- const config$9 = {
31194
- xmlName: XML_NODE_NAME$a,
31195
- sdNodeOrKeyName: SD_NODE_NAME$8,
31193
+ const config$b = {
31194
+ xmlName: XML_NODE_NAME$c,
31195
+ sdNodeOrKeyName: SD_NODE_NAME$a,
31196
31196
  type: NodeTranslator.translatorTypes.NODE,
31197
- encode: encode$g,
31198
- decode: decode$i,
31197
+ encode: encode$i,
31198
+ decode: decode$k,
31199
31199
  attributes: validXmlAttributes$5
31200
31200
  };
31201
- const translator$p = NodeTranslator.from(config$9);
31201
+ const translator$r = NodeTranslator.from(config$b);
31202
31202
  function preProcessVerticalMergeCells(table2, { editorSchema }) {
31203
31203
  if (!table2 || !Array.isArray(table2.content)) {
31204
31204
  return table2;
@@ -31239,17 +31239,17 @@ Please report this to https://github.com/markedjs/marked.`, e) {
31239
31239
  }
31240
31240
  return table2;
31241
31241
  }
31242
- const translator$o = NodeTranslator.from({
31242
+ const translator$q = NodeTranslator.from({
31243
31243
  xmlName: "w:bidiVisual",
31244
31244
  sdNodeOrKeyName: "rightToLeft",
31245
31245
  encode: ({ nodes }) => parseBoolean(nodes[0].attributes?.["w:val"] ?? "1"),
31246
31246
  decode: ({ node: node2 }) => node2.attrs.rightToLeft ? { attributes: {} } : void 0
31247
31247
  });
31248
- const translator$n = NodeTranslator.from(createSingleAttrPropertyHandler("w:tblCaption", "caption"));
31249
- const translator$m = NodeTranslator.from(createSingleAttrPropertyHandler("w:tblDescription", "description"));
31250
- const translator$l = NodeTranslator.from(createMeasurementPropertyHandler("w:tblInd", "tableIndent"));
31251
- const translator$k = NodeTranslator.from(createSingleAttrPropertyHandler("w:tblLayout", "tableLayout", "w:type"));
31252
- const translator$j = NodeTranslator.from({
31248
+ const translator$p = NodeTranslator.from(createSingleAttrPropertyHandler("w:tblCaption", "caption"));
31249
+ const translator$o = NodeTranslator.from(createSingleAttrPropertyHandler("w:tblDescription", "description"));
31250
+ const translator$n = NodeTranslator.from(createMeasurementPropertyHandler("w:tblInd", "tableIndent"));
31251
+ const translator$m = NodeTranslator.from(createSingleAttrPropertyHandler("w:tblLayout", "tableLayout", "w:type"));
31252
+ const translator$l = NodeTranslator.from({
31253
31253
  xmlName: "w:tblLook",
31254
31254
  sdNodeOrKeyName: "tblLook",
31255
31255
  attributes: ["w:firstColumn", "w:firstRow", "w:lastColumn", "w:lastRow", "w:noHBand", "w:noVBand"].map((attr) => createAttributeHandler(attr, null, parseBoolean, booleanToString)).concat([createAttributeHandler("w:val")]),
@@ -31261,16 +31261,16 @@ Please report this to https://github.com/markedjs/marked.`, e) {
31261
31261
  return Object.keys(decodedAttrs).length > 0 ? { attributes: decodedAttrs } : void 0;
31262
31262
  }
31263
31263
  });
31264
- const translator$i = NodeTranslator.from(createSingleAttrPropertyHandler("w:tblOverlap", "overlap"));
31265
- const translator$h = NodeTranslator.from(createSingleAttrPropertyHandler("w:tblStyle", "tableStyleId"));
31266
- const translator$g = NodeTranslator.from(
31264
+ const translator$k = NodeTranslator.from(createSingleAttrPropertyHandler("w:tblOverlap", "overlap"));
31265
+ const translator$j = NodeTranslator.from(createSingleAttrPropertyHandler("w:tblStyle", "tableStyleId"));
31266
+ const translator$i = NodeTranslator.from(
31267
31267
  createSingleAttrPropertyHandler("w:tblStyleColBandSize", "tableStyleColBandSize")
31268
31268
  );
31269
- const translator$f = NodeTranslator.from(
31269
+ const translator$h = NodeTranslator.from(
31270
31270
  createSingleAttrPropertyHandler("w:tblStyleRowBandSize", "tableStyleRowBandSize")
31271
31271
  );
31272
- const translator$e = NodeTranslator.from(createMeasurementPropertyHandler("w:tblW", "tableWidth"));
31273
- const translator$d = NodeTranslator.from({
31272
+ const translator$g = NodeTranslator.from(createMeasurementPropertyHandler("w:tblW", "tableWidth"));
31273
+ const translator$f = NodeTranslator.from({
31274
31274
  xmlName: "w:tblpPr",
31275
31275
  sdNodeOrKeyName: "floatingTableProperties",
31276
31276
  attributes: ["w:leftFromText", "w:rightFromText", "w:topFromText", "w:bottomFromText", "w:tblpX", "w:tblpY"].map((attr) => createAttributeHandler(attr, null, parseInteger, integerToString)).concat(["w:horzAnchor", "w:vertAnchor", "w:tblpXSpec", "w:tblpYSpec"].map((attr) => createAttributeHandler(attr))),
@@ -31283,35 +31283,37 @@ Please report this to https://github.com/markedjs/marked.`, e) {
31283
31283
  }
31284
31284
  });
31285
31285
  const propertyTranslators$2 = [
31286
- translator$1n,
31286
+ translator$1p,
31287
+ translator$X,
31287
31288
  translator$V,
31288
- translator$T,
31289
- translator$S,
31289
+ translator$U,
31290
+ translator$1n,
31290
31291
  translator$1l,
31291
- translator$1j,
31292
- translator$R,
31293
- translator$1h
31292
+ translator$T,
31293
+ translator$1j
31294
31294
  ];
31295
- const translator$c = NodeTranslator.from(
31295
+ const translator$e = NodeTranslator.from(
31296
31296
  createNestedPropertiesTranslator("w:tblBorders", "borders", propertyTranslators$2)
31297
31297
  );
31298
31298
  const propertyTranslators$1 = [
31299
+ translator$1o,
31300
+ translator$W,
31299
31301
  translator$1m,
31300
- translator$U,
31301
31302
  translator$1k,
31302
- translator$1i,
31303
- translator$Q,
31304
- translator$1g
31303
+ translator$S,
31304
+ translator$1i
31305
31305
  ];
31306
- const translator$b = NodeTranslator.from(
31306
+ const translator$d = NodeTranslator.from(
31307
31307
  createNestedPropertiesTranslator("w:tblCellMar", "cellMargins", propertyTranslators$1)
31308
31308
  );
31309
31309
  const propertyTranslators = [
31310
+ translator$q,
31311
+ translator$1C,
31312
+ translator$1Q,
31313
+ translator$p,
31314
+ translator$B,
31310
31315
  translator$o,
31311
- translator$1A,
31312
- translator$1O,
31313
31316
  translator$n,
31314
- translator$z,
31315
31317
  translator$m,
31316
31318
  translator$l,
31317
31319
  translator$k,
@@ -31321,14 +31323,12 @@ Please report this to https://github.com/markedjs/marked.`, e) {
31321
31323
  translator$g,
31322
31324
  translator$f,
31323
31325
  translator$e,
31324
- translator$d,
31325
- translator$c,
31326
- translator$b
31326
+ translator$d
31327
31327
  ];
31328
- const translator$a = NodeTranslator.from(
31328
+ const translator$c = NodeTranslator.from(
31329
31329
  createNestedPropertiesTranslator("w:tblPr", "tableProperties", propertyTranslators)
31330
31330
  );
31331
- const translator$9 = NodeTranslator.from(
31331
+ const translator$b = NodeTranslator.from(
31332
31332
  createSingleAttrPropertyHandler("w:gridCol", "col", "w:w", parseInteger, integerToString)
31333
31333
  );
31334
31334
  const DEFAULT_COLUMN_WIDTH_PX = 100;
@@ -31378,24 +31378,24 @@ Please report this to https://github.com/markedjs/marked.`, e) {
31378
31378
  }
31379
31379
  return Math.max(fallbackWidthTwips, cellMinWidthTwips);
31380
31380
  };
31381
- const XML_NODE_NAME$9 = "w:tblGrid";
31381
+ const XML_NODE_NAME$b = "w:tblGrid";
31382
31382
  const SD_ATTR_KEY$1 = "grid";
31383
31383
  const cellMinWidth = pixelsToTwips(10);
31384
- const encode$f = (params2) => {
31384
+ const encode$h = (params2) => {
31385
31385
  const { nodes } = params2;
31386
31386
  const node2 = nodes[0];
31387
31387
  const attributes = encodeProperties(
31388
31388
  { ...params2, nodes: [node2] },
31389
- { [translator$9.xmlName]: translator$9 },
31389
+ { [translator$b.xmlName]: translator$b },
31390
31390
  true
31391
31391
  );
31392
31392
  return {
31393
- xmlName: XML_NODE_NAME$9,
31393
+ xmlName: XML_NODE_NAME$b,
31394
31394
  sdNodeOrKeyName: SD_ATTR_KEY$1,
31395
31395
  attributes
31396
31396
  };
31397
31397
  };
31398
- const decode$h = (params2) => {
31398
+ const decode$j = (params2) => {
31399
31399
  const { grid: rawGrid } = params2.node.attrs || {};
31400
31400
  const grid = Array.isArray(rawGrid) ? rawGrid : [];
31401
31401
  const { firstRow = {} } = params2.extraParams || {};
@@ -31418,10 +31418,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
31418
31418
  const roundedWidth = Math.round(numericWidth);
31419
31419
  const minimumWidth = shouldEnforceMinimum ? cellMinWidth : 1;
31420
31420
  const safeWidth = Math.max(roundedWidth, minimumWidth);
31421
- const decoded = translator$9.decode({
31421
+ const decoded = translator$b.decode({
31422
31422
  node: { type: (
31423
31423
  /** @type {string} */
31424
- translator$9.sdNodeOrKeyName
31424
+ translator$b.sdNodeOrKeyName
31425
31425
  ), attrs: { col: safeWidth } }
31426
31426
  });
31427
31427
  if (decoded) elements.push(decoded);
@@ -31461,19 +31461,19 @@ Please report this to https://github.com/markedjs/marked.`, e) {
31461
31461
  columnIndex++;
31462
31462
  }
31463
31463
  const newNode = {
31464
- name: XML_NODE_NAME$9,
31464
+ name: XML_NODE_NAME$b,
31465
31465
  attributes: {},
31466
31466
  elements
31467
31467
  };
31468
31468
  return newNode;
31469
31469
  };
31470
- const config$8 = {
31471
- xmlName: XML_NODE_NAME$9,
31470
+ const config$a = {
31471
+ xmlName: XML_NODE_NAME$b,
31472
31472
  sdNodeOrKeyName: SD_ATTR_KEY$1,
31473
- encode: encode$f,
31474
- decode: decode$h
31473
+ encode: encode$h,
31474
+ decode: decode$j
31475
31475
  };
31476
- const translator$8 = NodeTranslator.from(config$8);
31476
+ const translator$a = NodeTranslator.from(config$a);
31477
31477
  const DEFAULT_PAGE_WIDTH_TWIPS = 12240;
31478
31478
  const DEFAULT_PAGE_MARGIN_TWIPS = 1440;
31479
31479
  const DEFAULT_CONTENT_WIDTH_TWIPS = DEFAULT_PAGE_WIDTH_TWIPS - 2 * DEFAULT_PAGE_MARGIN_TWIPS;
@@ -31536,19 +31536,19 @@ Please report this to https://github.com/markedjs/marked.`, e) {
31536
31536
  columnWidths: Array(columnCount).fill(fallbackColumnWidthPx)
31537
31537
  };
31538
31538
  };
31539
- const XML_NODE_NAME$8 = "w:tbl";
31540
- const SD_NODE_NAME$7 = "table";
31541
- const encode$e = (params2, encodedAttrs) => {
31539
+ const XML_NODE_NAME$a = "w:tbl";
31540
+ const SD_NODE_NAME$9 = "table";
31541
+ const encode$g = (params2, encodedAttrs) => {
31542
31542
  const { nodes } = params2;
31543
31543
  const node2 = nodes[0];
31544
31544
  const tblPr = node2.elements.find((el) => el.name === "w:tblPr");
31545
31545
  if (tblPr) {
31546
- const encodedProperties = translator$a.encode({ ...params2, nodes: [tblPr] });
31546
+ const encodedProperties = translator$c.encode({ ...params2, nodes: [tblPr] });
31547
31547
  encodedAttrs["tableProperties"] = encodedProperties || {};
31548
31548
  }
31549
31549
  const tblGrid = node2.elements.find((el) => el.name === "w:tblGrid");
31550
31550
  if (tblGrid) {
31551
- encodedAttrs["grid"] = translator$8.encode({ ...params2, nodes: [tblGrid] }).attributes;
31551
+ encodedAttrs["grid"] = translator$a.encode({ ...params2, nodes: [tblGrid] }).attributes;
31552
31552
  }
31553
31553
  [
31554
31554
  "tableStyleId",
@@ -31616,7 +31616,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
31616
31616
  const totalColumns = columnWidths.length;
31617
31617
  const activeRowSpans = totalColumns > 0 ? new Array(totalColumns).fill(0) : [];
31618
31618
  rows.forEach((row2, rowIndex) => {
31619
- const result = translator$t.encode({
31619
+ const result = translator$v.encode({
31620
31620
  ...params2,
31621
31621
  nodes: [row2],
31622
31622
  extraParams: {
@@ -31670,13 +31670,13 @@ Please report this to https://github.com/markedjs/marked.`, e) {
31670
31670
  attrs: encodedAttrs
31671
31671
  };
31672
31672
  };
31673
- const decode$g = (params2, decodedAttrs) => {
31673
+ const decode$i = (params2, decodedAttrs) => {
31674
31674
  params2.node = preProcessVerticalMergeCells(params2.node, params2);
31675
31675
  const { node: node2 } = params2;
31676
31676
  const elements = translateChildNodes(params2);
31677
31677
  const firstRow = node2.content?.find((n) => n.type === "tableRow");
31678
31678
  const properties = node2.attrs.grid;
31679
- const element2 = translator$8.decode({
31679
+ const element2 = translator$a.decode({
31680
31680
  ...params2,
31681
31681
  node: { ...node2, attrs: { ...node2.attrs, grid: properties } },
31682
31682
  extraParams: {
@@ -31686,7 +31686,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
31686
31686
  if (element2) elements.unshift(element2);
31687
31687
  if (node2.attrs?.tableProperties) {
31688
31688
  const properties2 = { ...node2.attrs.tableProperties };
31689
- const element22 = translator$a.decode({
31689
+ const element22 = translator$c.decode({
31690
31690
  ...params2,
31691
31691
  node: { ...node2, attrs: { ...node2.attrs, tableProperties: properties2 } }
31692
31692
  });
@@ -31752,7 +31752,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
31752
31752
  if (baseTblPr && baseTblPr.elements) {
31753
31753
  tblPr.elements.push(...baseTblPr.elements);
31754
31754
  }
31755
- const tableProperties = translator$a.encode({ ...params2, nodes: [tblPr] });
31755
+ const tableProperties = translator$c.encode({ ...params2, nodes: [tblPr] });
31756
31756
  if (tableProperties) {
31757
31757
  const { borders, rowBorders } = _processTableBorders(tableProperties.borders || {});
31758
31758
  if (borders) stylesToReturn.borders = borders;
@@ -31771,85 +31771,85 @@ Please report this to https://github.com/markedjs/marked.`, e) {
31771
31771
  }
31772
31772
  return stylesToReturn;
31773
31773
  }
31774
- const config$7 = {
31775
- xmlName: XML_NODE_NAME$8,
31776
- sdNodeOrKeyName: SD_NODE_NAME$7,
31774
+ const config$9 = {
31775
+ xmlName: XML_NODE_NAME$a,
31776
+ sdNodeOrKeyName: SD_NODE_NAME$9,
31777
31777
  type: NodeTranslator.translatorTypes.NODE,
31778
- encode: encode$e,
31779
- decode: decode$g,
31778
+ encode: encode$g,
31779
+ decode: decode$i,
31780
31780
  attributes: []
31781
31781
  };
31782
- const translator$7 = NodeTranslator.from(config$7);
31783
- const encode$d = (attributes) => {
31782
+ const translator$9 = NodeTranslator.from(config$9);
31783
+ const encode$f = (attributes) => {
31784
31784
  return attributes["w:id"];
31785
31785
  };
31786
- const decode$f = (attrs) => {
31786
+ const decode$h = (attrs) => {
31787
31787
  return attrs.id;
31788
31788
  };
31789
31789
  const attrConfig$7 = Object.freeze({
31790
31790
  xmlName: "w:id",
31791
31791
  sdName: "id",
31792
- encode: encode$d,
31793
- decode: decode$f
31792
+ encode: encode$f,
31793
+ decode: decode$h
31794
31794
  });
31795
- const encode$c = (attributes) => {
31795
+ const encode$e = (attributes) => {
31796
31796
  return attributes["w:name"];
31797
31797
  };
31798
- const decode$e = (attrs) => {
31798
+ const decode$g = (attrs) => {
31799
31799
  return attrs.name;
31800
31800
  };
31801
31801
  const attrConfig$6 = Object.freeze({
31802
31802
  xmlName: "w:name",
31803
31803
  sdName: "name",
31804
- encode: encode$c,
31805
- decode: decode$e
31804
+ encode: encode$e,
31805
+ decode: decode$g
31806
31806
  });
31807
- const encode$b = (attributes) => {
31807
+ const encode$d = (attributes) => {
31808
31808
  return attributes["w:colFirst"];
31809
31809
  };
31810
- const decode$d = (attrs) => {
31810
+ const decode$f = (attrs) => {
31811
31811
  return attrs.colFirst;
31812
31812
  };
31813
31813
  const attrConfig$5 = Object.freeze({
31814
31814
  xmlName: "w:colFirst",
31815
31815
  sdName: "colFirst",
31816
- encode: encode$b,
31817
- decode: decode$d
31816
+ encode: encode$d,
31817
+ decode: decode$f
31818
31818
  });
31819
- const encode$a = (attributes) => {
31819
+ const encode$c = (attributes) => {
31820
31820
  return attributes["w:colLast"];
31821
31821
  };
31822
- const decode$c = (attrs) => {
31822
+ const decode$e = (attrs) => {
31823
31823
  return attrs.colLast;
31824
31824
  };
31825
31825
  const attrConfig$4 = Object.freeze({
31826
31826
  xmlName: "w:colLast",
31827
31827
  sdName: "colLast",
31828
- encode: encode$a,
31829
- decode: decode$c
31828
+ encode: encode$c,
31829
+ decode: decode$e
31830
31830
  });
31831
- const encode$9 = (attributes) => {
31831
+ const encode$b = (attributes) => {
31832
31832
  return attributes["w:displacedByCustomXml"];
31833
31833
  };
31834
- const decode$b = (attrs) => {
31834
+ const decode$d = (attrs) => {
31835
31835
  return attrs.displacedByCustomXml;
31836
31836
  };
31837
31837
  const attrConfig$3 = Object.freeze({
31838
31838
  xmlName: "w:displacedByCustomXml",
31839
31839
  sdName: "displacedByCustomXml",
31840
- encode: encode$9,
31841
- decode: decode$b
31840
+ encode: encode$b,
31841
+ decode: decode$d
31842
31842
  });
31843
31843
  const validXmlAttributes$4 = [attrConfig$7, attrConfig$6, attrConfig$5, attrConfig$4, attrConfig$3];
31844
- const XML_NODE_NAME$7 = "w:bookmarkStart";
31845
- const SD_NODE_NAME$6 = "bookmarkStart";
31846
- const encode$8 = (params2, encodedAttrs = {}) => {
31844
+ const XML_NODE_NAME$9 = "w:bookmarkStart";
31845
+ const SD_NODE_NAME$8 = "bookmarkStart";
31846
+ const encode$a = (params2, encodedAttrs = {}) => {
31847
31847
  return {
31848
31848
  type: "bookmarkStart",
31849
31849
  attrs: encodedAttrs
31850
31850
  };
31851
31851
  };
31852
- const decode$a = (params2, decodedAttrs = {}) => {
31852
+ const decode$c = (params2, decodedAttrs = {}) => {
31853
31853
  const result = {
31854
31854
  name: "w:bookmarkStart",
31855
31855
  elements: []
@@ -31859,49 +31859,49 @@ Please report this to https://github.com/markedjs/marked.`, e) {
31859
31859
  }
31860
31860
  return result;
31861
31861
  };
31862
- const config$6 = {
31863
- xmlName: XML_NODE_NAME$7,
31864
- sdNodeOrKeyName: SD_NODE_NAME$6,
31862
+ const config$8 = {
31863
+ xmlName: XML_NODE_NAME$9,
31864
+ sdNodeOrKeyName: SD_NODE_NAME$8,
31865
31865
  type: NodeTranslator.translatorTypes.NODE,
31866
- encode: encode$8,
31867
- decode: decode$a,
31866
+ encode: encode$a,
31867
+ decode: decode$c,
31868
31868
  attributes: validXmlAttributes$4
31869
31869
  };
31870
- const translator$6 = NodeTranslator.from(config$6);
31871
- const encode$7 = (attributes) => {
31870
+ const translator$8 = NodeTranslator.from(config$8);
31871
+ const encode$9 = (attributes) => {
31872
31872
  return attributes["w:id"];
31873
31873
  };
31874
- const decode$9 = (attrs) => {
31874
+ const decode$b = (attrs) => {
31875
31875
  return attrs.id;
31876
31876
  };
31877
31877
  const attrConfig$2 = Object.freeze({
31878
31878
  xmlName: "w:id",
31879
31879
  sdName: "id",
31880
- encode: encode$7,
31881
- decode: decode$9
31880
+ encode: encode$9,
31881
+ decode: decode$b
31882
31882
  });
31883
- const encode$6 = (attributes) => {
31883
+ const encode$8 = (attributes) => {
31884
31884
  return attributes["w:displacedByCustomXml"];
31885
31885
  };
31886
- const decode$8 = (attrs) => {
31886
+ const decode$a = (attrs) => {
31887
31887
  return attrs.displacedByCustomXml;
31888
31888
  };
31889
31889
  const attrConfig$1 = Object.freeze({
31890
31890
  xmlName: "w:displacedByCustomXml",
31891
31891
  sdName: "displacedByCustomXml",
31892
- encode: encode$6,
31893
- decode: decode$8
31892
+ encode: encode$8,
31893
+ decode: decode$a
31894
31894
  });
31895
31895
  const validXmlAttributes$3 = [attrConfig$2, attrConfig$1];
31896
- const XML_NODE_NAME$6 = "w:bookmarkEnd";
31897
- const SD_NODE_NAME$5 = "bookmarkEnd";
31898
- const encode$5 = (params2, encodedAttrs = {}) => {
31896
+ const XML_NODE_NAME$8 = "w:bookmarkEnd";
31897
+ const SD_NODE_NAME$7 = "bookmarkEnd";
31898
+ const encode$7 = (params2, encodedAttrs = {}) => {
31899
31899
  return {
31900
31900
  type: "bookmarkEnd",
31901
31901
  attrs: encodedAttrs
31902
31902
  };
31903
31903
  };
31904
- const decode$7 = (params2, decodedAttrs = {}) => {
31904
+ const decode$9 = (params2, decodedAttrs = {}) => {
31905
31905
  const result = {
31906
31906
  name: "w:bookmarkEnd",
31907
31907
  elements: []
@@ -31911,27 +31911,27 @@ Please report this to https://github.com/markedjs/marked.`, e) {
31911
31911
  }
31912
31912
  return result;
31913
31913
  };
31914
- const config$5 = {
31915
- xmlName: XML_NODE_NAME$6,
31916
- sdNodeOrKeyName: SD_NODE_NAME$5,
31914
+ const config$7 = {
31915
+ xmlName: XML_NODE_NAME$8,
31916
+ sdNodeOrKeyName: SD_NODE_NAME$7,
31917
31917
  type: NodeTranslator.translatorTypes.NODE,
31918
- encode: encode$5,
31919
- decode: decode$7,
31918
+ encode: encode$7,
31919
+ decode: decode$9,
31920
31920
  attributes: validXmlAttributes$3
31921
31921
  };
31922
- const translator$5 = NodeTranslator.from(config$5);
31923
- const decode$6 = (attrs) => attrs?.["w:id"];
31922
+ const translator$7 = NodeTranslator.from(config$7);
31923
+ const decode$8 = (attrs) => attrs?.["w:id"];
31924
31924
  const attrConfig = Object.freeze({
31925
31925
  xmlName: "w:id",
31926
31926
  sdName: "w:id",
31927
31927
  // We do not translate it from 'w:id' to 'id' when encoding, so the name is the same
31928
31928
  encode: () => {
31929
31929
  },
31930
- decode: decode$6
31930
+ decode: decode$8
31931
31931
  });
31932
- const XML_NODE_NAME$5 = "w:commentRange";
31933
- const SD_NODE_NAME$4 = "commentRange";
31934
- const decode$5 = (params2) => {
31932
+ const XML_NODE_NAME$7 = "w:commentRange";
31933
+ const SD_NODE_NAME$6 = "commentRange";
31934
+ const decode$7 = (params2) => {
31935
31935
  const { node: node2, comments, commentsExportType, exportedCommentDefs } = params2;
31936
31936
  if (!node2) return;
31937
31937
  if (!comments) return;
@@ -31974,19 +31974,19 @@ Please report this to https://github.com/markedjs/marked.`, e) {
31974
31974
  };
31975
31975
  };
31976
31976
  const getConfig = (type2) => ({
31977
- xmlName: `${XML_NODE_NAME$5}${type2}`,
31978
- sdNodeOrKeyName: `${SD_NODE_NAME$4}${type2}`,
31977
+ xmlName: `${XML_NODE_NAME$7}${type2}`,
31978
+ sdNodeOrKeyName: `${SD_NODE_NAME$6}${type2}`,
31979
31979
  type: NodeTranslator.translatorTypes.NODE,
31980
31980
  encode: () => {
31981
31981
  },
31982
- decode: decode$5,
31982
+ decode: decode$7,
31983
31983
  attributes: [attrConfig]
31984
31984
  });
31985
31985
  const commentRangeStartTranslator = NodeTranslator.from(getConfig("Start"));
31986
31986
  const commentRangeEndTranslator = NodeTranslator.from(getConfig("End"));
31987
- const XML_NODE_NAME$4 = "sd:pageReference";
31988
- const SD_NODE_NAME$3 = "pageReference";
31989
- const encode$4 = (params2) => {
31987
+ const XML_NODE_NAME$6 = "sd:pageReference";
31988
+ const SD_NODE_NAME$5 = "pageReference";
31989
+ const encode$6 = (params2) => {
31990
31990
  const { nodes = [], nodeListHandler } = params2 || {};
31991
31991
  const node2 = nodes[0];
31992
31992
  const processedText = nodeListHandler.handler({
@@ -32003,7 +32003,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
32003
32003
  };
32004
32004
  return processedNode;
32005
32005
  };
32006
- const decode$4 = (params2) => {
32006
+ const decode$6 = (params2) => {
32007
32007
  const { node: node2 } = params2;
32008
32008
  const outputMarks = processOutputMarks(node2.attrs?.marksAsAttrs || []);
32009
32009
  const contentNodes = (node2.content ?? []).flatMap((n) => exportSchemaToJson({ ...params2, node: n }));
@@ -32076,17 +32076,17 @@ Please report this to https://github.com/markedjs/marked.`, e) {
32076
32076
  ];
32077
32077
  return translated;
32078
32078
  };
32079
- const config$4 = {
32080
- xmlName: XML_NODE_NAME$4,
32081
- sdNodeOrKeyName: SD_NODE_NAME$3,
32079
+ const config$6 = {
32080
+ xmlName: XML_NODE_NAME$6,
32081
+ sdNodeOrKeyName: SD_NODE_NAME$5,
32082
32082
  type: NodeTranslator.translatorTypes.NODE,
32083
- encode: encode$4,
32084
- decode: decode$4
32083
+ encode: encode$6,
32084
+ decode: decode$6
32085
32085
  };
32086
- const translator$4 = NodeTranslator.from(config$4);
32087
- const XML_NODE_NAME$3 = "sd:tableOfContents";
32088
- const SD_NODE_NAME$2 = "tableOfContents";
32089
- const encode$3 = (params2) => {
32086
+ const translator$6 = NodeTranslator.from(config$6);
32087
+ const XML_NODE_NAME$5 = "sd:tableOfContents";
32088
+ const SD_NODE_NAME$4 = "tableOfContents";
32089
+ const encode$5 = (params2) => {
32090
32090
  const { nodes = [], nodeListHandler } = params2 || {};
32091
32091
  const node2 = nodes[0];
32092
32092
  const processedContent = nodeListHandler.handler({
@@ -32102,7 +32102,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
32102
32102
  };
32103
32103
  return processedNode;
32104
32104
  };
32105
- const decode$3 = (params2) => {
32105
+ const decode$5 = (params2) => {
32106
32106
  const { node: node2 } = params2;
32107
32107
  const contentNodes = node2.content.map((n) => exportSchemaToJson({ ...params2, node: n }));
32108
32108
  const tocBeginElements = [
@@ -32149,6 +32149,194 @@ Please report this to https://github.com/markedjs/marked.`, e) {
32149
32149
  }
32150
32150
  return contentNodes;
32151
32151
  };
32152
+ const config$5 = {
32153
+ xmlName: XML_NODE_NAME$5,
32154
+ sdNodeOrKeyName: SD_NODE_NAME$4,
32155
+ type: NodeTranslator.translatorTypes.NODE,
32156
+ encode: encode$5,
32157
+ decode: decode$5
32158
+ };
32159
+ const translator$5 = NodeTranslator.from(config$5);
32160
+ const XML_NODE_NAME$4 = "sd:autoPageNumber";
32161
+ const SD_NODE_NAME$3 = "page-number";
32162
+ const encode$4 = (params2) => {
32163
+ const { nodes = [] } = params2 || {};
32164
+ const node2 = nodes[0];
32165
+ const rPr = node2.elements?.find((el) => el.name === "w:rPr");
32166
+ const marks = parseMarks(rPr || { elements: [] });
32167
+ const processedNode = {
32168
+ type: "page-number",
32169
+ attrs: {
32170
+ marksAsAttrs: marks
32171
+ }
32172
+ };
32173
+ return processedNode;
32174
+ };
32175
+ const decode$4 = (params2) => {
32176
+ const { node: node2 } = params2;
32177
+ const outputMarks = processOutputMarks(node2.attrs?.marksAsAttrs || []);
32178
+ const translated = [
32179
+ {
32180
+ name: "w:r",
32181
+ elements: [
32182
+ {
32183
+ name: "w:rPr",
32184
+ elements: outputMarks
32185
+ },
32186
+ {
32187
+ name: "w:fldChar",
32188
+ attributes: {
32189
+ "w:fldCharType": "begin"
32190
+ }
32191
+ }
32192
+ ]
32193
+ },
32194
+ {
32195
+ name: "w:r",
32196
+ elements: [
32197
+ {
32198
+ name: "w:rPr",
32199
+ elements: outputMarks
32200
+ },
32201
+ {
32202
+ name: "w:instrText",
32203
+ attributes: { "xml:space": "preserve" },
32204
+ elements: [
32205
+ {
32206
+ type: "text",
32207
+ text: " PAGE"
32208
+ }
32209
+ ]
32210
+ }
32211
+ ]
32212
+ },
32213
+ {
32214
+ name: "w:r",
32215
+ elements: [
32216
+ {
32217
+ name: "w:rPr",
32218
+ elements: outputMarks
32219
+ },
32220
+ {
32221
+ name: "w:fldChar",
32222
+ attributes: {
32223
+ "w:fldCharType": "separate"
32224
+ }
32225
+ }
32226
+ ]
32227
+ },
32228
+ {
32229
+ name: "w:r",
32230
+ elements: [
32231
+ {
32232
+ name: "w:rPr",
32233
+ elements: outputMarks
32234
+ },
32235
+ {
32236
+ name: "w:fldChar",
32237
+ attributes: {
32238
+ "w:fldCharType": "end"
32239
+ }
32240
+ }
32241
+ ]
32242
+ }
32243
+ ];
32244
+ return translated;
32245
+ };
32246
+ const config$4 = {
32247
+ xmlName: XML_NODE_NAME$4,
32248
+ sdNodeOrKeyName: SD_NODE_NAME$3,
32249
+ type: NodeTranslator.translatorTypes.NODE,
32250
+ encode: encode$4,
32251
+ decode: decode$4
32252
+ };
32253
+ const translator$4 = NodeTranslator.from(config$4);
32254
+ const XML_NODE_NAME$3 = "sd:totalPageNumber";
32255
+ const SD_NODE_NAME$2 = "total-page-number";
32256
+ const encode$3 = (params2) => {
32257
+ const { nodes = [] } = params2 || {};
32258
+ const node2 = nodes[0];
32259
+ const rPr = node2.elements?.find((el) => el.name === "w:rPr");
32260
+ const marks = parseMarks(rPr || { elements: [] });
32261
+ const processedNode = {
32262
+ type: "total-page-number",
32263
+ attrs: {
32264
+ marksAsAttrs: marks
32265
+ }
32266
+ };
32267
+ return processedNode;
32268
+ };
32269
+ const decode$3 = (params2) => {
32270
+ const { node: node2 } = params2;
32271
+ const outputMarks = processOutputMarks(node2.attrs?.marksAsAttrs || []);
32272
+ const translated = [
32273
+ {
32274
+ name: "w:r",
32275
+ elements: [
32276
+ {
32277
+ name: "w:rPr",
32278
+ elements: outputMarks
32279
+ },
32280
+ {
32281
+ name: "w:fldChar",
32282
+ attributes: {
32283
+ "w:fldCharType": "begin"
32284
+ }
32285
+ }
32286
+ ]
32287
+ },
32288
+ {
32289
+ name: "w:r",
32290
+ elements: [
32291
+ {
32292
+ name: "w:rPr",
32293
+ elements: outputMarks
32294
+ },
32295
+ {
32296
+ name: "w:instrText",
32297
+ attributes: { "xml:space": "preserve" },
32298
+ elements: [
32299
+ {
32300
+ type: "text",
32301
+ text: " NUMPAGES"
32302
+ }
32303
+ ]
32304
+ }
32305
+ ]
32306
+ },
32307
+ {
32308
+ name: "w:r",
32309
+ elements: [
32310
+ {
32311
+ name: "w:rPr",
32312
+ elements: outputMarks
32313
+ },
32314
+ {
32315
+ name: "w:fldChar",
32316
+ attributes: {
32317
+ "w:fldCharType": "separate"
32318
+ }
32319
+ }
32320
+ ]
32321
+ },
32322
+ {
32323
+ name: "w:r",
32324
+ elements: [
32325
+ {
32326
+ name: "w:rPr",
32327
+ elements: outputMarks
32328
+ },
32329
+ {
32330
+ name: "w:fldChar",
32331
+ attributes: {
32332
+ "w:fldCharType": "end"
32333
+ }
32334
+ }
32335
+ ]
32336
+ }
32337
+ ];
32338
+ return translated;
32339
+ };
32152
32340
  const config$3 = {
32153
32341
  xmlName: XML_NODE_NAME$3,
32154
32342
  sdNodeOrKeyName: SD_NODE_NAME$2,
@@ -32208,7 +32396,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
32208
32396
  if (isHorizontalRule) {
32209
32397
  schemaAttrs.horizontalRule = true;
32210
32398
  }
32211
- const pElement = translator$$.encode({
32399
+ const pElement = translator$11.encode({
32212
32400
  ...params2,
32213
32401
  nodes: [{ ...pNode, elements: pNode.elements.filter((el) => el.name !== "w:r") }]
32214
32402
  });
@@ -32265,7 +32453,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
32265
32453
  if (mainNode.name === "w:drawing") node2 = mainNode;
32266
32454
  else node2 = mainNode.elements.find((el) => el.name === "w:drawing");
32267
32455
  if (!node2) return { nodes: [], consumed: 0 };
32268
- const schemaNode = translator$q.encode(params2);
32456
+ const schemaNode = translator$s.encode(params2);
32269
32457
  const newNodes = schemaNode ? [schemaNode] : [];
32270
32458
  return { nodes: newNodes, consumed: 1 };
32271
32459
  };
@@ -32380,7 +32568,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
32380
32568
  });
32381
32569
  break;
32382
32570
  case "w:ins":
32383
- result = translator$1u.encode({
32571
+ result = translator$1w.encode({
32384
32572
  ...translatorParams,
32385
32573
  extraParams: {
32386
32574
  ...translatorParams.extraParams,
@@ -32395,8 +32583,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
32395
32583
  handlerName: "trackChangeNodeHandler",
32396
32584
  handler: handleTrackChangeNode
32397
32585
  };
32398
- const hyperlinkNodeHandlerEntity = generateV2HandlerEntity("hyperlinkNodeHandler", translator$_);
32399
- const runNodeHandlerEntity = generateV2HandlerEntity("runNodeHandler", translator$Z);
32586
+ const hyperlinkNodeHandlerEntity = generateV2HandlerEntity("hyperlinkNodeHandler", translator$10);
32587
+ const runNodeHandlerEntity = generateV2HandlerEntity("runNodeHandler", translator$$);
32400
32588
  const XML_NODE_NAME$1 = "w:t";
32401
32589
  const SD_NODE_NAME$1 = "text";
32402
32590
  const validXmlAttributes$1 = [createAttributeHandler("xml:space", "xmlSpace")];
@@ -32436,12 +32624,12 @@ Please report this to https://github.com/markedjs/marked.`, e) {
32436
32624
  case "trackDelete":
32437
32625
  return translator$2.decode(params2);
32438
32626
  case "trackInsert":
32439
- return translator$1u.decode(params2);
32627
+ return translator$1w.decode(params2);
32440
32628
  }
32441
32629
  }
32442
32630
  const isLinkNode = node2.marks?.some((m2) => m2.type === "link");
32443
32631
  if (isLinkNode && !extraParams?.linkProcessed) {
32444
- return translator$_.decode(params2);
32632
+ return translator$10.decode(params2);
32445
32633
  }
32446
32634
  const { text: text2, marks = [] } = node2;
32447
32635
  return getTextNodeForExport(text2, marks, params2);
@@ -32483,7 +32671,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
32483
32671
  if (nodes.length === 0 || nodes[0].name !== "w:p") {
32484
32672
  return { nodes: [], consumed: 0 };
32485
32673
  }
32486
- const schemaNode = translator$$.encode(params2);
32674
+ const schemaNode = translator$11.encode(params2);
32487
32675
  const newNodes = schemaNode ? [schemaNode] : [];
32488
32676
  return { nodes: newNodes, consumed: 1 };
32489
32677
  };
@@ -32496,7 +32684,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
32496
32684
  if (nodes.length === 0 || nodes[0].name !== "w:sdt") {
32497
32685
  return { nodes: [], consumed: 0 };
32498
32686
  }
32499
- const result = translator$p.encode(params2);
32687
+ const result = translator$r.encode(params2);
32500
32688
  if (!result) {
32501
32689
  return { nodes: [], consumed: 0 };
32502
32690
  }
@@ -32637,7 +32825,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
32637
32825
  if (nodes.length === 0 || nodes[0].name !== "w:br") {
32638
32826
  return { nodes: [], consumed: 0 };
32639
32827
  }
32640
- const result = translator$21.encode(params2);
32828
+ const result = translator$23.encode(params2);
32641
32829
  if (!result) return { nodes: [], consumed: 0 };
32642
32830
  return {
32643
32831
  nodes: [result],
@@ -32709,7 +32897,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
32709
32897
  if (isCustomMarkBookmark(nodes[0], params2.editor)) {
32710
32898
  return handleBookmarkNode(params2);
32711
32899
  }
32712
- const node2 = translator$6.encode(params2);
32900
+ const node2 = translator$8.encode(params2);
32713
32901
  if (!node2) return { nodes: [], consumed: 0 };
32714
32902
  return { nodes: [node2], consumed: 1 };
32715
32903
  };
@@ -32741,7 +32929,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
32741
32929
  if (!nodes.length || nodes[0].name !== "w:bookmarkEnd") {
32742
32930
  return { nodes: [], consumed: 0 };
32743
32931
  }
32744
- const node2 = translator$5.encode(params2);
32932
+ const node2 = translator$7.encode(params2);
32745
32933
  if (!node2) return { nodes: [], consumed: 0 };
32746
32934
  return { nodes: [node2], consumed: 1 };
32747
32935
  };
@@ -32791,7 +32979,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
32791
32979
  ...currentNode,
32792
32980
  type: "element"
32793
32981
  };
32794
- const translated = translator$1K.encode({
32982
+ const translated = translator$1M.encode({
32795
32983
  ...params2,
32796
32984
  nodes: [nodeForTranslator],
32797
32985
  extraParams: { ...params2.extraParams || {}, node: nodeForTranslator }
@@ -32817,45 +33005,9 @@ Please report this to https://github.com/markedjs/marked.`, e) {
32817
33005
  handlerName: "alternateChoiceHandler",
32818
33006
  handler: handleAlternateChoice
32819
33007
  };
32820
- const handleAutoPageNumber = (params2) => {
32821
- const { nodes } = params2;
32822
- if (nodes.length === 0 || nodes[0].name !== "sd:autoPageNumber") {
32823
- return { nodes: [], consumed: 0 };
32824
- }
32825
- const rPr = nodes[0].elements?.find((el) => el.name === "w:rPr");
32826
- const marks = parseMarks(rPr || { elements: [] });
32827
- const processedNode = {
32828
- type: "page-number",
32829
- attrs: {
32830
- marksAsAttrs: marks
32831
- }
32832
- };
32833
- return { nodes: [processedNode], consumed: 1 };
32834
- };
32835
- const autoPageHandlerEntity = {
32836
- handlerName: "autoPageNumberHandler",
32837
- handler: handleAutoPageNumber
32838
- };
32839
- const handleAutoTotalPageNumber = (params2) => {
32840
- const { nodes } = params2;
32841
- if (nodes.length === 0 || nodes[0].name !== "sd:totalPageNumber") {
32842
- return { nodes: [], consumed: 0 };
32843
- }
32844
- const rPr = nodes[0].elements?.find((el) => el.name === "w:rPr");
32845
- const marks = parseMarks(rPr || { elements: [] });
32846
- const processedNode = {
32847
- type: "total-page-number",
32848
- attrs: {
32849
- marksAsAttrs: marks
32850
- }
32851
- };
32852
- return { nodes: [processedNode], consumed: 1 };
32853
- };
32854
- const autoTotalPageCountEntity = {
32855
- handlerName: "autoTotalPageCountEntity",
32856
- handler: handleAutoTotalPageNumber
32857
- };
32858
- const pageReferenceEntity = generateV2HandlerEntity("pageReferenceNodeHandler", translator$4);
33008
+ const autoPageHandlerEntity = generateV2HandlerEntity("autoPageNumberHandler", translator$4);
33009
+ const autoTotalPageCountEntity = generateV2HandlerEntity("autoTotalPageCountEntity", translator$3);
33010
+ const pageReferenceEntity = generateV2HandlerEntity("pageReferenceNodeHandler", translator$6);
32859
33011
  const handlePictNode = (params2) => {
32860
33012
  const { nodes } = params2;
32861
33013
  if (!nodes.length || nodes[0].name !== "w:p") {
@@ -33253,15 +33405,15 @@ Please report this to https://github.com/markedjs/marked.`, e) {
33253
33405
  if (!nodes.length || nodes[0].name !== "w:tab") {
33254
33406
  return { nodes: [], consumed: 0 };
33255
33407
  }
33256
- const node2 = translator$1$.encode(params2);
33408
+ const node2 = translator$21.encode(params2);
33257
33409
  return { nodes: [node2], consumed: 1 };
33258
33410
  };
33259
33411
  const tabNodeEntityHandler = {
33260
33412
  handlerName: "w:tabTranslator",
33261
33413
  handler: handleTabNode
33262
33414
  };
33263
- const tableNodeHandlerEntity = generateV2HandlerEntity("tableNodeHandler", translator$7);
33264
- const tableOfContentsHandlerEntity = generateV2HandlerEntity("tableOfContentsHandler", translator$3);
33415
+ const tableNodeHandlerEntity = generateV2HandlerEntity("tableNodeHandler", translator$9);
33416
+ const tableOfContentsHandlerEntity = generateV2HandlerEntity("tableOfContentsHandler", translator$5);
33265
33417
  function preProcessPageInstruction(nodesToCombine) {
33266
33418
  const pageNumNode = {
33267
33419
  name: "sd:autoPageNumber",
@@ -34113,7 +34265,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
34113
34265
  if (vmlAttributes || horizontalRule) {
34114
34266
  return translateVRectContentBlock(params2);
34115
34267
  }
34116
- const alternateContent = translator$1K.decode(params2);
34268
+ const alternateContent = translator$1M.decode(params2);
34117
34269
  return wrapTextInRun(alternateContent);
34118
34270
  }
34119
34271
  function translateVRectContentBlock(params2) {
@@ -34157,7 +34309,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
34157
34309
  const XML_NODE_NAME = "w:pict";
34158
34310
  const SD_NODE_NAME = ["shapeContainer", "contentBlock"];
34159
34311
  const validXmlAttributes = [];
34160
- function encode$Q(params2) {
34312
+ function encode$S(params2) {
34161
34313
  const { node: node2, pNode } = params2.extraParams;
34162
34314
  const { type: pictType, handler: handler2 } = pictNodeTypeStrategy(node2);
34163
34315
  if (!handler2 || pictType === "unknown") {
@@ -34170,7 +34322,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
34170
34322
  });
34171
34323
  return result;
34172
34324
  }
34173
- function decode$S(params2) {
34325
+ function decode$U(params2) {
34174
34326
  const { node: node2 } = params2;
34175
34327
  if (!node2 || !node2.type) {
34176
34328
  return null;
@@ -34189,8 +34341,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
34189
34341
  xmlName: XML_NODE_NAME,
34190
34342
  sdNodeOrKeyName: SD_NODE_NAME,
34191
34343
  type: NodeTranslator.translatorTypes.NODE,
34192
- encode: encode$Q,
34193
- decode: decode$S,
34344
+ encode: encode$S,
34345
+ decode: decode$U,
34194
34346
  attributes: validXmlAttributes
34195
34347
  };
34196
34348
  const translator = NodeTranslator.from(config);
@@ -34297,19 +34449,19 @@ Please report this to https://github.com/markedjs/marked.`, e) {
34297
34449
  doc: translateDocumentNode,
34298
34450
  body: translateBodyNode,
34299
34451
  heading: translateHeadingNode,
34300
- paragraph: translator$$,
34301
- run: translator$Z,
34452
+ paragraph: translator$11,
34453
+ run: translator$$,
34302
34454
  text: translator$1,
34303
- lineBreak: translator$21,
34304
- table: translator$7,
34305
- tableRow: translator$t,
34306
- tableCell: translator$E,
34307
- bookmarkStart: translator$6,
34308
- bookmarkEnd: translator$5,
34309
- fieldAnnotation: translator$p,
34310
- tab: translator$1$,
34311
- image: translator$q,
34312
- hardBreak: translator$21,
34455
+ lineBreak: translator$23,
34456
+ table: translator$9,
34457
+ tableRow: translator$v,
34458
+ tableCell: translator$G,
34459
+ bookmarkStart: translator$8,
34460
+ bookmarkEnd: translator$7,
34461
+ fieldAnnotation: translator$r,
34462
+ tab: translator$21,
34463
+ image: translator$s,
34464
+ hardBreak: translator$23,
34313
34465
  commentRangeStart: commentRangeStartTranslator,
34314
34466
  commentRangeEnd: commentRangeEndTranslator,
34315
34467
  commentReference: () => null,
@@ -34318,14 +34470,14 @@ Please report this to https://github.com/markedjs/marked.`, e) {
34318
34470
  contentBlock: translator,
34319
34471
  vectorShape: translateVectorShape,
34320
34472
  shapeGroup: translateShapeGroup,
34321
- structuredContent: translator$p,
34322
- structuredContentBlock: translator$p,
34323
- documentPartObject: translator$p,
34324
- documentSection: translator$p,
34325
- "page-number": translatePageNumberNode,
34326
- "total-page-number": translateTotalPageNumberNode,
34327
- pageReference: translator$4,
34328
- tableOfContents: translator$3
34473
+ structuredContent: translator$r,
34474
+ structuredContentBlock: translator$r,
34475
+ documentPartObject: translator$r,
34476
+ documentSection: translator$r,
34477
+ "page-number": translator$4,
34478
+ "total-page-number": translator$3,
34479
+ pageReference: translator$6,
34480
+ tableOfContents: translator$5
34329
34481
  };
34330
34482
  let handler2 = router[type2];
34331
34483
  if (handler2 && "decode" in handler2 && typeof handler2.decode === "function") {
@@ -34442,7 +34594,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
34442
34594
  const marksProps = decodeRPrFromMarks(attrs.marksAttrs || []);
34443
34595
  const finalRunProps = combineRunProperties([paragraphProperties.runProperties || {}, marksProps]);
34444
34596
  paragraphProperties.runProperties = finalRunProps;
34445
- const pPr = translator$10.decode({ node: { ...node2, attrs: { paragraphProperties } } });
34597
+ const pPr = translator$12.decode({ node: { ...node2, attrs: { paragraphProperties } } });
34446
34598
  const sectPr = node2.attrs?.paragraphProperties?.sectPr;
34447
34599
  if (sectPr) {
34448
34600
  pPr.elements.push(sectPr);
@@ -34470,7 +34622,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
34470
34622
  const textRunProperties = decodeRPrFromMarks(marks || []);
34471
34623
  const parentRunProperties = params2.extraParams?.runProperties || {};
34472
34624
  const combinedRunProperties = combineRunProperties([parentRunProperties, textRunProperties]);
34473
- const rPrNode = translator$1L.decode({ node: { attrs: { runProperties: combinedRunProperties } } });
34625
+ const rPrNode = translator$1N.decode({ node: { attrs: { runProperties: combinedRunProperties } } });
34474
34626
  textNodes.push({
34475
34627
  name: "w:t",
34476
34628
  elements: [{ text: text2, type: "text" }],
@@ -34623,7 +34775,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
34623
34775
  markElement.type = "element";
34624
34776
  break;
34625
34777
  case "underline": {
34626
- const translated = translator$1X.decode({
34778
+ const translated = translator$1Z.decode({
34627
34779
  node: {
34628
34780
  attrs: {
34629
34781
  underlineType: attrs.underlineType ?? attrs.underline ?? null,
@@ -34687,7 +34839,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
34687
34839
  break;
34688
34840
  case "highlight": {
34689
34841
  const highlightValue = attrs.color ?? attrs.highlight ?? null;
34690
- const translated = translator$20.decode({ node: { attrs: { highlight: highlightValue } } });
34842
+ const translated = translator$22.decode({ node: { attrs: { highlight: highlightValue } } });
34691
34843
  return translated || {};
34692
34844
  }
34693
34845
  case "strike":
@@ -34769,82 +34921,6 @@ Please report this to https://github.com/markedjs/marked.`, e) {
34769
34921
  if (!selfClosing) tags.push(`</${name}>`);
34770
34922
  return tags;
34771
34923
  };
34772
- const translatePageNumberNode = (params2) => {
34773
- const outputMarks = processOutputMarks(params2.node.attrs?.marksAsAttrs || []);
34774
- return getAutoPageJson("PAGE", outputMarks);
34775
- };
34776
- const translateTotalPageNumberNode = (params2) => {
34777
- const outputMarks = processOutputMarks(params2.node.attrs?.marksAsAttrs || []);
34778
- return getAutoPageJson("NUMPAGES", outputMarks);
34779
- };
34780
- const getAutoPageJson = (type2, outputMarks = []) => {
34781
- return [
34782
- {
34783
- name: "w:r",
34784
- elements: [
34785
- {
34786
- name: "w:rPr",
34787
- elements: outputMarks
34788
- },
34789
- {
34790
- name: "w:fldChar",
34791
- attributes: {
34792
- "w:fldCharType": "begin"
34793
- }
34794
- }
34795
- ]
34796
- },
34797
- {
34798
- name: "w:r",
34799
- elements: [
34800
- {
34801
- name: "w:rPr",
34802
- elements: outputMarks
34803
- },
34804
- {
34805
- name: "w:instrText",
34806
- attributes: { "xml:space": "preserve" },
34807
- elements: [
34808
- {
34809
- type: "text",
34810
- text: ` ${type2}`
34811
- }
34812
- ]
34813
- }
34814
- ]
34815
- },
34816
- {
34817
- name: "w:r",
34818
- elements: [
34819
- {
34820
- name: "w:rPr",
34821
- elements: outputMarks
34822
- },
34823
- {
34824
- name: "w:fldChar",
34825
- attributes: {
34826
- "w:fldCharType": "separate"
34827
- }
34828
- }
34829
- ]
34830
- },
34831
- {
34832
- name: "w:r",
34833
- elements: [
34834
- {
34835
- name: "w:rPr",
34836
- elements: outputMarks
34837
- },
34838
- {
34839
- name: "w:fldChar",
34840
- attributes: {
34841
- "w:fldCharType": "end"
34842
- }
34843
- }
34844
- ]
34845
- }
34846
- ];
34847
- };
34848
34924
  const prepareCommentParaIds = (comment2) => {
34849
34925
  const newComment = {
34850
34926
  ...comment2,
@@ -35268,7 +35344,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
35268
35344
  static getStoredSuperdocVersion(docx) {
35269
35345
  return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
35270
35346
  }
35271
- static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.31.0-next.3") {
35347
+ static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.31.0-next.4") {
35272
35348
  return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
35273
35349
  }
35274
35350
  /**
@@ -60269,7 +60345,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
60269
60345
  { default: remarkStringify2 },
60270
60346
  { default: remarkGfm2 }
60271
60347
  ] = await Promise.all([
60272
- Promise.resolve().then(() => indexB74saKaW),
60348
+ Promise.resolve().then(() => indexBmNdb0G_),
60273
60349
  Promise.resolve().then(() => indexDRCvimau),
60274
60350
  Promise.resolve().then(() => indexC_x_N6Uh),
60275
60351
  Promise.resolve().then(() => indexD_sWOSiG),
@@ -60470,7 +60546,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
60470
60546
  * Process collaboration migrations
60471
60547
  */
60472
60548
  processCollaborationMigrations() {
60473
- console.debug("[checkVersionMigrations] Current editor version", "0.31.0-next.3");
60549
+ console.debug("[checkVersionMigrations] Current editor version", "0.31.0-next.4");
60474
60550
  if (!this.options.ydoc) return;
60475
60551
  const metaMap = this.options.ydoc.getMap("meta");
60476
60552
  let docVersion = metaMap.get("version");
@@ -99272,92 +99348,92 @@ ${style2}
99272
99348
  };
99273
99349
  const SuperInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$i, [["__scopeId", "data-v-4d5cff52"]]);
99274
99350
  const additionalHandlers = Object.freeze({
99275
- "mc:AlternateContent": translator$1K,
99276
- "sd:pageReference": translator$4,
99277
- "sd:tableOfContents": translator$3,
99278
- "w:b": translator$1_,
99279
- "w:bCs": translator$1Z,
99280
- "w:bidiVisual": translator$o,
99281
- "w:bookmarkEnd": translator$5,
99282
- "w:bookmarkStart": translator$6,
99283
- "w:bottom": translator$1n,
99284
- "w:br": translator$21,
99285
- "w:cantSplit": translator$D,
99286
- "w:caps": translator$1P,
99287
- "w:cnfStyle": translator$1F,
99288
- "w:color": translator$1U,
99289
- "w:divId": translator$1D,
99290
- "w:drawing": translator$q,
99291
- "w:end": translator$V,
99292
- "w:gridAfter": translator$C,
99293
- "w:gridBefore": translator$B,
99294
- "w:gridCol": translator$9,
99295
- "w:hidden": translator$A,
99296
- "w:highlight": translator$20,
99297
- "w:hyperlink": translator$_,
99298
- "w:i": translator$1Y,
99299
- "w:insideH": translator$T,
99300
- "w:insideV": translator$S,
99301
- "w:jc": translator$1A,
99302
- "w:left": translator$1l,
99303
- "w:p": translator$$,
99304
- "w:r": translator$Z,
99305
- "w:rFonts": translator$1T,
99306
- "w:rPr": translator$1L,
99307
- "w:rStyle": translator$1S,
99308
- "w:right": translator$1j,
99309
- "w:sdt": translator$p,
99310
- "w:shd": translator$1O,
99311
- "w:start": translator$R,
99312
- "w:strike": translator$1W,
99313
- "w:sz": translator$1R,
99314
- "w:szCs": translator$1Q,
99315
- "w:tab": translator$1$,
99316
- "w:tbl": translator$7,
99317
- "w:tblBorders": translator$c,
99318
- "w:tblCaption": translator$n,
99319
- "w:tblCellMar": translator$b,
99320
- "w:tblCellSpacing": translator$z,
99321
- "w:tblDescription": translator$m,
99322
- "w:tblGrid": translator$8,
99323
- "w:tblHeader": translator$y,
99324
- "w:tblInd": translator$l,
99325
- "w:tblLayout": translator$k,
99326
- "w:tblLook": translator$j,
99327
- "w:tblOverlap": translator$i,
99328
- "w:tblPr": translator$a,
99329
- "w:tblStyle": translator$h,
99330
- "w:tblStyleColBandSize": translator$g,
99331
- "w:tblStyleRowBandSize": translator$f,
99332
- "w:tblW": translator$e,
99333
- "w:tblpPr": translator$d,
99334
- "w:tc": translator$E,
99335
- "w:top": translator$1h,
99336
- "w:tr": translator$t,
99337
- "w:trHeight": translator$x,
99338
- "w:trPr": translator$u,
99339
- "w:u": translator$1X,
99340
- "w:wAfter": translator$w,
99341
- "w:wBefore": translator$v,
99342
- "wp:anchor": translator$s,
99343
- "wp:inline": translator$r,
99351
+ "mc:AlternateContent": translator$1M,
99352
+ "sd:pageReference": translator$6,
99353
+ "sd:tableOfContents": translator$5,
99354
+ "w:b": translator$20,
99355
+ "w:bCs": translator$1$,
99356
+ "w:bidiVisual": translator$q,
99357
+ "w:bookmarkEnd": translator$7,
99358
+ "w:bookmarkStart": translator$8,
99359
+ "w:bottom": translator$1p,
99360
+ "w:br": translator$23,
99361
+ "w:cantSplit": translator$F,
99362
+ "w:caps": translator$1R,
99363
+ "w:cnfStyle": translator$1H,
99364
+ "w:color": translator$1W,
99365
+ "w:divId": translator$1F,
99366
+ "w:drawing": translator$s,
99367
+ "w:end": translator$X,
99368
+ "w:gridAfter": translator$E,
99369
+ "w:gridBefore": translator$D,
99370
+ "w:gridCol": translator$b,
99371
+ "w:hidden": translator$C,
99372
+ "w:highlight": translator$22,
99373
+ "w:hyperlink": translator$10,
99374
+ "w:i": translator$1_,
99375
+ "w:insideH": translator$V,
99376
+ "w:insideV": translator$U,
99377
+ "w:jc": translator$1C,
99378
+ "w:left": translator$1n,
99379
+ "w:p": translator$11,
99380
+ "w:r": translator$$,
99381
+ "w:rFonts": translator$1V,
99382
+ "w:rPr": translator$1N,
99383
+ "w:rStyle": translator$1U,
99384
+ "w:right": translator$1l,
99385
+ "w:sdt": translator$r,
99386
+ "w:shd": translator$1Q,
99387
+ "w:start": translator$T,
99388
+ "w:strike": translator$1Y,
99389
+ "w:sz": translator$1T,
99390
+ "w:szCs": translator$1S,
99391
+ "w:tab": translator$21,
99392
+ "w:tbl": translator$9,
99393
+ "w:tblBorders": translator$e,
99394
+ "w:tblCaption": translator$p,
99395
+ "w:tblCellMar": translator$d,
99396
+ "w:tblCellSpacing": translator$B,
99397
+ "w:tblDescription": translator$o,
99398
+ "w:tblGrid": translator$a,
99399
+ "w:tblHeader": translator$A,
99400
+ "w:tblInd": translator$n,
99401
+ "w:tblLayout": translator$m,
99402
+ "w:tblLook": translator$l,
99403
+ "w:tblOverlap": translator$k,
99404
+ "w:tblPr": translator$c,
99405
+ "w:tblStyle": translator$j,
99406
+ "w:tblStyleColBandSize": translator$i,
99407
+ "w:tblStyleRowBandSize": translator$h,
99408
+ "w:tblW": translator$g,
99409
+ "w:tblpPr": translator$f,
99410
+ "w:tc": translator$G,
99411
+ "w:top": translator$1j,
99412
+ "w:tr": translator$v,
99413
+ "w:trHeight": translator$z,
99414
+ "w:trPr": translator$w,
99415
+ "w:u": translator$1Z,
99416
+ "w:wAfter": translator$y,
99417
+ "w:wBefore": translator$x,
99418
+ "wp:anchor": translator$u,
99419
+ "wp:inline": translator$t,
99344
99420
  "w:commentRangeStart": commentRangeStartTranslator,
99345
99421
  "w:commentRangeEnd": commentRangeEndTranslator,
99346
- "w:vMerge": translator$W,
99347
- "w:gridSpan": translator$X,
99348
- "w:vAlign": translator$J,
99349
- "w:noWrap": translator$M,
99350
- "w:tcFitText": translator$K,
99351
- "w:tcW": translator$Y,
99352
- "w:hideMark": translator$I,
99353
- "w:textDirection": translator$15,
99354
- "w:tl2br": translator$P,
99355
- "w:tr2bl": translator$O,
99356
- "w:header": translator$H,
99357
- "w:headers": translator$G,
99358
- "w:tcBorders": translator$N,
99359
- "w:tcMar": translator$L,
99360
- "w:tcPr": translator$F
99422
+ "w:vMerge": translator$Y,
99423
+ "w:gridSpan": translator$Z,
99424
+ "w:vAlign": translator$L,
99425
+ "w:noWrap": translator$O,
99426
+ "w:tcFitText": translator$M,
99427
+ "w:tcW": translator$_,
99428
+ "w:hideMark": translator$K,
99429
+ "w:textDirection": translator$17,
99430
+ "w:tl2br": translator$R,
99431
+ "w:tr2bl": translator$Q,
99432
+ "w:header": translator$J,
99433
+ "w:headers": translator$I,
99434
+ "w:tcBorders": translator$P,
99435
+ "w:tcMar": translator$N,
99436
+ "w:tcPr": translator$H
99361
99437
  });
99362
99438
  const baseHandlers = {
99363
99439
  ...additionalHandlers
@@ -116595,7 +116671,7 @@ ${style2}
116595
116671
  this.config.colors = shuffleArray(this.config.colors);
116596
116672
  this.userColorMap = /* @__PURE__ */ new Map();
116597
116673
  this.colorIndex = 0;
116598
- this.version = "0.31.0-next.3";
116674
+ this.version = "0.31.0-next.4";
116599
116675
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
116600
116676
  this.superdocId = config2.superdocId || v4();
116601
116677
  this.colors = this.config.colors;
@@ -118995,7 +119071,7 @@ ${style2}
118995
119071
  value && typeof value === "object" && "byteLength" in value && "byteOffset" in value
118996
119072
  );
118997
119073
  }
118998
- const indexB74saKaW = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
119074
+ const indexBmNdb0G_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
118999
119075
  __proto__: null,
119000
119076
  unified
119001
119077
  }, Symbol.toStringTag, { value: "Module" }));