@eigenpal/docx-editor-core 1.0.2 → 1.1.0

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 (266) hide show
  1. package/LICENSE +13 -16
  2. package/README.md +1 -1
  3. package/dist/agent/index.d.mts +4 -5
  4. package/dist/agent/index.d.ts +4 -5
  5. package/dist/agent/index.js +1 -1
  6. package/dist/agent/index.mjs +1 -1
  7. package/dist/{chunk-NLTX7XVR.js → chunk-25KY5HLN.js} +1 -1
  8. package/dist/chunk-44FHVKSI.js +1 -0
  9. package/dist/{chunk-4S5VOHQK.mjs → chunk-5CDBSK2R.mjs} +1 -1
  10. package/dist/chunk-6Y6LON6Y.mjs +1 -0
  11. package/dist/chunk-6ZXL3EIP.mjs +2 -0
  12. package/dist/chunk-73AZQWIE.js +1 -0
  13. package/dist/chunk-7HANRHHL.js +1 -0
  14. package/dist/chunk-7LRR7RKE.mjs +15 -0
  15. package/dist/{chunk-AGNZEOVL.mjs → chunk-7Z2AGPNQ.mjs} +1 -1
  16. package/dist/chunk-BGE57OES.js +1 -0
  17. package/dist/chunk-BOOHU5EW.mjs +1 -0
  18. package/dist/chunk-CA2EYL6T.mjs +1 -0
  19. package/dist/chunk-CTHHUJAB.mjs +2 -0
  20. package/dist/chunk-DLCDDB66.mjs +3 -0
  21. package/dist/chunk-DV6GWBUJ.js +2 -0
  22. package/dist/chunk-E4JMCA5X.js +2 -0
  23. package/dist/chunk-F44ZLDZS.js +4 -0
  24. package/dist/chunk-FCJWLEKT.mjs +1 -0
  25. package/dist/chunk-FDEDN2RC.mjs +0 -0
  26. package/dist/chunk-FEWCI2E5.mjs +1 -0
  27. package/dist/chunk-GFDIPDJ6.mjs +1 -0
  28. package/dist/chunk-GM4USWKO.js +2 -0
  29. package/dist/chunk-GWBVJZVT.js +3 -0
  30. package/dist/chunk-GY5BWVM7.js +1 -0
  31. package/dist/{chunk-7SGC3CXJ.js → chunk-H42RXHT4.js} +1 -1
  32. package/dist/chunk-HMBVSDCH.mjs +1 -0
  33. package/dist/chunk-HQPWFUP5.js +2 -0
  34. package/dist/chunk-HV6HE6YR.js +59 -0
  35. package/dist/chunk-IF4C25FN.mjs +1 -0
  36. package/dist/chunk-IMKU4O3P.js +1 -0
  37. package/dist/chunk-IQG3KLWY.mjs +2 -0
  38. package/dist/{chunk-AFMMYLPX.js → chunk-J4J2Y6EU.js} +2 -2
  39. package/dist/chunk-KGDXHUYC.js +1 -0
  40. package/dist/chunk-KHF4JU7D.mjs +1 -0
  41. package/dist/chunk-LCICADWM.js +2 -0
  42. package/dist/{chunk-GFQM7PKY.js → chunk-LOCW6MR2.js} +1 -1
  43. package/dist/chunk-LTHT4A4S.js +1 -0
  44. package/dist/chunk-MJ6XZFVD.mjs +1 -0
  45. package/dist/chunk-MNOHUTKE.js +15 -0
  46. package/dist/chunk-MP4QSEO2.mjs +1 -0
  47. package/dist/chunk-MZ2XCZAN.mjs +1 -0
  48. package/dist/chunk-OAWTQ3IY.js +1 -0
  49. package/dist/chunk-OEXVWIHW.mjs +2 -0
  50. package/dist/chunk-ONRBRDIC.mjs +59 -0
  51. package/dist/{chunk-6PR4XHQ3.mjs → chunk-ONWOHAFW.mjs} +1 -1
  52. package/dist/{chunk-EXOP727C.mjs → chunk-OUEKNYX5.mjs} +1 -1
  53. package/dist/chunk-OX75Q5ZG.mjs +1 -0
  54. package/dist/chunk-QEACB5VG.js +1 -0
  55. package/dist/chunk-RFC2SXZ6.mjs +4 -0
  56. package/dist/chunk-RFVFX5WK.mjs +1 -0
  57. package/dist/chunk-SORYYVJ7.js +1 -0
  58. package/dist/chunk-TUIEV7Q7.js +1 -0
  59. package/dist/chunk-U74VPTIU.js +1 -0
  60. package/dist/chunk-UOQT6A7P.js +1 -0
  61. package/dist/chunk-V5VDCQDN.mjs +1 -0
  62. package/dist/chunk-VHUVPHPI.mjs +1 -0
  63. package/dist/{chunk-XCMA7AY7.js → chunk-W7GLQ6DV.js} +1 -1
  64. package/dist/chunk-WLHNIXWC.mjs +2 -0
  65. package/dist/chunk-X6HFDXKB.js +1 -0
  66. package/dist/chunk-XPV6VILW.mjs +1 -0
  67. package/dist/chunk-Y3ZQQI4D.js +1 -0
  68. package/dist/chunk-YTDWMXNS.js +1 -0
  69. package/dist/chunk-ZUGNF5KU.js +1 -0
  70. package/dist/chunk-ZX26QZJ5.mjs +1 -0
  71. package/dist/{colorResolver-CVsPLsw1.d.ts → colorResolver-BZ_yScf4.d.ts} +1 -1
  72. package/dist/{colorResolver-C3q7MLLD.d.mts → colorResolver-C6DtsoFI.d.mts} +1 -1
  73. package/dist/content-5Mrz6w_b.d.mts +1360 -0
  74. package/dist/content-CmqAwdFL.d.ts +1360 -0
  75. package/dist/core-plugins.d.mts +3 -4
  76. package/dist/core-plugins.d.ts +3 -4
  77. package/dist/core-plugins.js +1 -1
  78. package/dist/core-plugins.mjs +1 -1
  79. package/dist/core.d.mts +10 -11
  80. package/dist/core.d.ts +10 -11
  81. package/dist/core.js +1 -1
  82. package/dist/core.mjs +1 -1
  83. package/dist/{documentSerializer-Chn7J1WG.d.ts → documentSerializer-BRaaXIHm.d.ts} +1 -1
  84. package/dist/{documentSerializer-C1ueey5d.d.mts → documentSerializer-DgO3A9av.d.mts} +1 -1
  85. package/dist/docx/index.d.mts +3 -4
  86. package/dist/docx/index.d.ts +3 -4
  87. package/dist/docx/index.js +1 -1
  88. package/dist/docx/index.mjs +1 -1
  89. package/dist/docx/parser.d.mts +3 -4
  90. package/dist/docx/parser.d.ts +3 -4
  91. package/dist/docx/parser.js +1 -1
  92. package/dist/docx/parser.mjs +1 -1
  93. package/dist/docx/rezip.d.mts +3 -4
  94. package/dist/docx/rezip.d.ts +3 -4
  95. package/dist/docx/rezip.js +1 -1
  96. package/dist/docx/rezip.mjs +1 -1
  97. package/dist/docx/serializer/index.d.mts +4 -5
  98. package/dist/docx/serializer/index.d.ts +4 -5
  99. package/dist/docx/serializer/index.js +1 -1
  100. package/dist/docx/serializer/index.mjs +1 -1
  101. package/dist/{fontLoader-BOt95Jtf.d.mts → fontLoader-8b4X-AIh.d.mts} +63 -3
  102. package/dist/{fontLoader-QPwbcX5j.d.ts → fontLoader-CK2QLq68.d.ts} +63 -3
  103. package/dist/{formatting-D9I-lFS4.d.mts → formatting-BH4hcZiq.d.mts} +1 -1
  104. package/dist/{formatting-BwpZWdGi.d.ts → formatting-_OXU8gLB.d.ts} +1 -1
  105. package/dist/{headerFooterLayout-DkclHZ0Z.d.mts → headerFooterLayout-72Vz7yp3.d.mts} +94 -3
  106. package/dist/{headerFooterLayout-B3QVg556.d.ts → headerFooterLayout-Ca4ESDHF.d.ts} +94 -3
  107. package/dist/headless.d.mts +9 -9
  108. package/dist/headless.d.ts +9 -9
  109. package/dist/headless.js +1 -1
  110. package/dist/headless.mjs +1 -1
  111. package/dist/layout-bridge/index.d.mts +7 -7
  112. package/dist/layout-bridge/index.d.ts +7 -7
  113. package/dist/layout-bridge/index.js +1 -1
  114. package/dist/layout-bridge/index.mjs +1 -1
  115. package/dist/layout-bridge/measuring/index.d.mts +43 -2
  116. package/dist/layout-bridge/measuring/index.d.ts +43 -2
  117. package/dist/layout-bridge/measuring/index.js +1 -1
  118. package/dist/layout-bridge/measuring/index.mjs +1 -1
  119. package/dist/layout-bridge/tableInsertHover.js +1 -1
  120. package/dist/layout-bridge/tableInsertHover.mjs +1 -1
  121. package/dist/layout-bridge/toFlowBlocks.d.mts +11 -3
  122. package/dist/layout-bridge/toFlowBlocks.d.ts +11 -3
  123. package/dist/layout-bridge/toFlowBlocks.js +1 -1
  124. package/dist/layout-bridge/toFlowBlocks.mjs +1 -1
  125. package/dist/layout-engine/index.d.mts +33 -3
  126. package/dist/layout-engine/index.d.ts +33 -3
  127. package/dist/layout-engine/index.js +1 -1
  128. package/dist/layout-engine/index.mjs +1 -1
  129. package/dist/layout-engine/types.d.mts +53 -0
  130. package/dist/layout-engine/types.d.ts +53 -0
  131. package/dist/layout-painter/index.d.mts +4 -5
  132. package/dist/layout-painter/index.d.ts +4 -5
  133. package/dist/layout-painter/index.js +1 -1
  134. package/dist/layout-painter/index.mjs +1 -1
  135. package/dist/layout-painter/renderPage.d.mts +4 -5
  136. package/dist/layout-painter/renderPage.d.ts +4 -5
  137. package/dist/layout-painter/renderPage.js +1 -1
  138. package/dist/layout-painter/renderPage.mjs +1 -1
  139. package/dist/managers/AutoSaveManager.d.mts +3 -4
  140. package/dist/managers/AutoSaveManager.d.ts +3 -4
  141. package/dist/managers/TableSelectionManager.d.mts +3 -4
  142. package/dist/managers/TableSelectionManager.d.ts +3 -4
  143. package/dist/managers/types.d.mts +3 -4
  144. package/dist/managers/types.d.ts +3 -4
  145. package/dist/{marks-CCPVlQzL.d.mts → marks-BY573yZn.d.mts} +1 -1
  146. package/dist/{marks-BujVxYP4.d.ts → marks-CjC9tF5k.d.ts} +1 -1
  147. package/dist/mcp-cli.mjs +24 -23
  148. package/dist/mcp.d.mts +3 -4
  149. package/dist/mcp.d.ts +3 -4
  150. package/dist/mcp.js +3 -3
  151. package/dist/mcp.mjs +1 -1
  152. package/dist/{nodes-BXi1Uu3e.d.mts → nodes-7753Bgi_.d.mts} +66 -3
  153. package/dist/{nodes-DfKj9kUA.d.ts → nodes-CC_nwkT_.d.ts} +66 -3
  154. package/dist/prosemirror/commands/formatting.d.mts +2 -2
  155. package/dist/prosemirror/commands/formatting.d.ts +2 -2
  156. package/dist/prosemirror/commands/formatting.js +1 -1
  157. package/dist/prosemirror/commands/formatting.mjs +1 -1
  158. package/dist/prosemirror/commands/index.d.mts +82 -8
  159. package/dist/prosemirror/commands/index.d.ts +82 -8
  160. package/dist/prosemirror/commands/index.js +1 -1
  161. package/dist/prosemirror/commands/index.mjs +1 -1
  162. package/dist/prosemirror/commands/paragraph.d.mts +1 -1
  163. package/dist/prosemirror/commands/paragraph.d.ts +1 -1
  164. package/dist/prosemirror/commands/paragraph.js +1 -1
  165. package/dist/prosemirror/commands/paragraph.mjs +1 -1
  166. package/dist/prosemirror/conversion/fromProseDoc.d.mts +3 -4
  167. package/dist/prosemirror/conversion/fromProseDoc.d.ts +3 -4
  168. package/dist/prosemirror/conversion/fromProseDoc.js +1 -1
  169. package/dist/prosemirror/conversion/fromProseDoc.mjs +1 -1
  170. package/dist/prosemirror/conversion/index.d.mts +11 -4
  171. package/dist/prosemirror/conversion/index.d.ts +11 -4
  172. package/dist/prosemirror/conversion/index.js +1 -1
  173. package/dist/prosemirror/conversion/index.mjs +1 -1
  174. package/dist/prosemirror/editor.css +155 -95
  175. package/dist/prosemirror/extensions/index.d.mts +1 -1
  176. package/dist/prosemirror/extensions/index.d.ts +1 -1
  177. package/dist/prosemirror/extensions/index.js +1 -1
  178. package/dist/prosemirror/extensions/index.mjs +1 -1
  179. package/dist/prosemirror/extensions/nodes/TableExtension.js +1 -1
  180. package/dist/prosemirror/extensions/nodes/TableExtension.mjs +1 -1
  181. package/dist/prosemirror/index.d.mts +5 -6
  182. package/dist/prosemirror/index.d.ts +5 -6
  183. package/dist/prosemirror/index.js +1 -1
  184. package/dist/prosemirror/index.mjs +1 -1
  185. package/dist/prosemirror/plugins/index.d.mts +122 -18
  186. package/dist/prosemirror/plugins/index.d.ts +122 -18
  187. package/dist/prosemirror/plugins/index.js +1 -1
  188. package/dist/prosemirror/plugins/index.mjs +1 -1
  189. package/dist/prosemirror/plugins/selectionTracker.d.mts +1 -1
  190. package/dist/prosemirror/plugins/selectionTracker.d.ts +1 -1
  191. package/dist/prosemirror/schema/index.d.mts +4 -5
  192. package/dist/prosemirror/schema/index.d.ts +4 -5
  193. package/dist/prosemirror/schema/index.js +1 -1
  194. package/dist/prosemirror/schema/index.mjs +1 -1
  195. package/dist/prosemirror/styles/index.d.mts +2 -2
  196. package/dist/prosemirror/styles/index.d.ts +2 -2
  197. package/dist/prosemirror/utils/extractTrackedChanges.d.mts +45 -23
  198. package/dist/prosemirror/utils/extractTrackedChanges.d.ts +45 -23
  199. package/dist/prosemirror/utils/extractTrackedChanges.js +1 -1
  200. package/dist/prosemirror/utils/extractTrackedChanges.mjs +1 -1
  201. package/dist/{selectionContext-85CE0f7a.d.ts → selectionContext-BPAqgNgk.d.ts} +1 -1
  202. package/dist/{selectionContext-Xq3AY7pn.d.mts → selectionContext-CoZat7QZ.d.mts} +1 -1
  203. package/dist/{styles-jqO45PSq.d.ts → styles-BBv7doYK.d.ts} +1 -1
  204. package/dist/{styles-BBoqh07F.d.mts → styles-EI2lxeEN.d.mts} +1 -1
  205. package/dist/types/agentApi.d.mts +1 -1
  206. package/dist/types/agentApi.d.ts +1 -1
  207. package/dist/types/content.d.mts +4 -1167
  208. package/dist/types/content.d.ts +4 -1167
  209. package/dist/types/document.d.mts +25 -8
  210. package/dist/types/document.d.ts +25 -8
  211. package/dist/utils/comments.d.mts +79 -6
  212. package/dist/utils/comments.d.ts +79 -6
  213. package/dist/utils/comments.js +1 -1
  214. package/dist/utils/comments.mjs +1 -1
  215. package/dist/utils/highlightColors.js +1 -1
  216. package/dist/utils/highlightColors.mjs +1 -1
  217. package/dist/utils/index.d.mts +5 -6
  218. package/dist/utils/index.d.ts +5 -6
  219. package/dist/utils/index.js +3 -3
  220. package/dist/utils/index.mjs +3 -3
  221. package/dist/{variableDetector-CAdt8yOr.d.mts → variableDetector-DF3-nxUC.d.mts} +1 -1
  222. package/dist/{variableDetector-W4XEN9YC.d.ts → variableDetector-sBkgVh3f.d.ts} +1 -1
  223. package/package.json +3 -3
  224. package/dist/chunk-2D3UPAMA.mjs +0 -1
  225. package/dist/chunk-2RCMY2GE.mjs +0 -1
  226. package/dist/chunk-3GNIP6IX.mjs +0 -4
  227. package/dist/chunk-44RUAQA2.js +0 -1
  228. package/dist/chunk-5N5DBQJV.mjs +0 -1
  229. package/dist/chunk-5TNMVXDS.mjs +0 -1
  230. package/dist/chunk-6DK4UBGM.js +0 -1
  231. package/dist/chunk-6LOYA7G5.mjs +0 -2
  232. package/dist/chunk-7VCMJCBY.js +0 -2
  233. package/dist/chunk-APFTVA4F.mjs +0 -1
  234. package/dist/chunk-BKHQA6JJ.js +0 -1
  235. package/dist/chunk-BOYVCOLZ.mjs +0 -1
  236. package/dist/chunk-BS35CXMN.js +0 -1
  237. package/dist/chunk-BTOBVF4I.mjs +0 -1
  238. package/dist/chunk-C6GSFUV2.js +0 -2
  239. package/dist/chunk-CP5OSG5Z.mjs +0 -1
  240. package/dist/chunk-CP767TWV.js +0 -1
  241. package/dist/chunk-DV6IEOP5.js +0 -4
  242. package/dist/chunk-IBNUQL57.mjs +0 -2
  243. package/dist/chunk-KBU6QQFU.js +0 -9
  244. package/dist/chunk-LDKESXXK.mjs +0 -3
  245. package/dist/chunk-LTYW3NLX.js +0 -59
  246. package/dist/chunk-NERY274X.js +0 -1
  247. package/dist/chunk-NMSU4MWP.mjs +0 -1
  248. package/dist/chunk-NNQWQOC5.mjs +0 -1
  249. package/dist/chunk-OLKDLRJ4.js +0 -1
  250. package/dist/chunk-P3AXSRLG.mjs +0 -1
  251. package/dist/chunk-P6RNOYAG.mjs +0 -2
  252. package/dist/chunk-R7RR6M4A.mjs +0 -2
  253. package/dist/chunk-RCS6UNIJ.mjs +0 -1
  254. package/dist/chunk-T5RYEG2V.js +0 -1
  255. package/dist/chunk-TRJWRZZD.js +0 -1
  256. package/dist/chunk-TYYOBPNK.js +0 -1
  257. package/dist/chunk-UCZVMHB5.mjs +0 -59
  258. package/dist/chunk-V435QKZB.js +0 -3
  259. package/dist/chunk-VQ2QGHYS.js +0 -2
  260. package/dist/chunk-WZP6ZHBR.js +0 -1
  261. package/dist/chunk-XDH55WXX.mjs +0 -1
  262. package/dist/chunk-Y5HZAMND.mjs +0 -9
  263. package/dist/chunk-YE357WVA.js +0 -1
  264. package/dist/chunk-YGHHSCPR.js +0 -2
  265. package/dist/lists-CdiIk_c1.d.ts +0 -142
  266. package/dist/lists-JDB80qyP.d.mts +0 -142
@@ -1 +0,0 @@
1
- 'use strict';var chunkD4RPOJC7_js=require('./chunk-D4RPOJC7.js'),chunk4Q2IP5FW_js=require('./chunk-4Q2IP5FW.js');function k(t){let e=new Map,n=new Map;return t.descendants(i=>{let o=i.marks.find(r=>r.type.name==="insertion"),a=i.marks.find(r=>r.type.name==="deletion");if(o){let r=Number(o.attrs.revisionId);Number.isFinite(r)&&e.set(r,(e.get(r)??0)+1);}if(a){let r=Number(a.attrs.revisionId);Number.isFinite(r)&&n.set(r,(n.get(r)??0)+1);}}),{insertionById:e,deletionById:n}}function N(t){return t.attrs.href||""}function E(t){let e=t.filter(n=>n.type.name!=="hyperlink");return e.length===0?"":e.map(n=>`${n.type.name}:${JSON.stringify(n.attrs)}`).sort().join("|")}function T(t){let e={};for(let n of t)switch(n.type.name){case "bold":e.bold=true,e.boldCs=true;break;case "italic":e.italic=true,e.italicCs=true;break;case "underline":{let i=n.attrs;e.underline={style:i.style||"single",color:i.color};break}case "strike":n.attrs.double?e.doubleStrike=true:e.strike=true;break;case "textColor":{let i=n.attrs;e.color={rgb:i.rgb,themeColor:i.themeColor,themeTint:i.themeTint,themeShade:i.themeShade};break}case "highlight":e.highlight=n.attrs.color;break;case "fontSize":e.fontSize=n.attrs.size,e.fontSizeCs=n.attrs.size;break;case "fontFamily":{let i=n.attrs;e.fontFamily={ascii:i.ascii,hAnsi:i.hAnsi,eastAsia:i.eastAsia||void 0,cs:i.cs||i.ascii||void 0,asciiTheme:i.asciiTheme,hAnsiTheme:i.hAnsiTheme||void 0,eastAsiaTheme:i.eastAsiaTheme||void 0,csTheme:i.csTheme||void 0};break}case "superscript":e.vertAlign="superscript";break;case "subscript":e.vertAlign="subscript";break;case "allCaps":e.allCaps=true;break;case "smallCaps":e.smallCaps=true;break;case "characterSpacing":{n.attrs.spacing!=null&&(e.spacing=n.attrs.spacing),n.attrs.position!=null&&(e.position=n.attrs.position),n.attrs.scale!=null&&(e.scale=n.attrs.scale),n.attrs.kerning!=null&&(e.kerning=n.attrs.kerning);break}case "emboss":e.emboss=true;break;case "imprint":e.imprint=true;break;case "textShadow":e.shadow=true;break;case "emphasisMark":e.emphasisMark=n.attrs.type||"dot";break;case "textOutline":e.outline=true;break;case "hidden":e.hidden=true;break;case "rtl":e.rtl=true;break;case "textEffect":e.effect=n.attrs.effect||"blinkBackground";break}return e}function L(t){let e=t.attrs.href;return e?.startsWith("#")?{type:"hyperlink",anchor:e.substring(1),tooltip:t.attrs.tooltip||void 0,children:[]}:{type:"hyperlink",href:e,tooltip:t.attrs.tooltip||void 0,rId:t.attrs.rId||void 0,children:[]}}function x(t,e){let n=e.marks.filter(i=>i.type.name!=="hyperlink");e.isText&&e.text?t.children.push(C(e.text,n)):e.type.name==="tab"?t.children.push(w()):e.type.name==="hardBreak"&&t.children.push(P());}function C(t,e){let n=T(e),i={type:"text",text:t};return {type:"run",formatting:Object.keys(n).length>0?n:void 0,content:[i]}}function H(t,e){let n=t.content[t.content.length-1];n&&n.type==="text"?n.text+=e:t.content.push({type:"text",text:e});}function P(){return {type:"run",content:[{type:"break",breakType:"textWrapping"}]}}function w(){return {type:"run",content:[{type:"tab"}]}}function O(t,e){let n=t.attrs,i=e&&e.length>0?T(e):void 0,o=n.displayText||"";if(!o)switch(n.fieldType){case "PAGE":o="1";break;case "NUMPAGES":o="1";break;default:o=" ";break}let a={type:"run",content:[{type:"text",text:o}],...i&&Object.keys(i).length>0?{formatting:i}:{}};return n.fieldKind==="complex"?{type:"complexField",instruction:n.instruction,fieldType:n.fieldType,fieldCode:[],fieldResult:[a],fldLock:n.fldLock||void 0,dirty:n.dirty||void 0}:{type:"simpleField",instruction:n.instruction,fieldType:n.fieldType,content:[a],fldLock:n.fldLock||void 0,dirty:n.dirty||void 0}}function W(t){let e=t.attrs;return {type:"mathEquation",display:e.display||"inline",ommlXml:e.ommlXml,plainText:e.plainText||void 0}}function D(t){let e=t.attrs,i={type:e.wrapType||"inline"};e.distTop!==void 0&&(i.distT=chunk4Q2IP5FW_js.f(e.distTop)),e.distBottom!==void 0&&(i.distB=chunk4Q2IP5FW_js.f(e.distBottom)),e.distLeft!==void 0&&(i.distL=chunk4Q2IP5FW_js.f(e.distLeft)),e.distRight!==void 0&&(i.distR=chunk4Q2IP5FW_js.f(e.distRight)),e.wrapText&&(i.wrapText=e.wrapText);let o={type:"image",rId:e.rId||"",src:e.src,alt:e.alt||void 0,title:e.title||void 0,size:{width:chunk4Q2IP5FW_js.f(e.width||0),height:chunk4Q2IP5FW_js.f(e.height||0)},wrap:i};if(e.transform){let r=e.transform,l={},s=r.match(/rotate\(([-\d.]+)deg\)/);s&&(l.rotation=parseFloat(s[1])),r.includes("scaleX(-1)")&&(l.flipH=true),r.includes("scaleY(-1)")&&(l.flipV=true),(l.rotation||l.flipH||l.flipV)&&(o.transform=l);}if(e.position?.horizontal&&e.position?.vertical){let r=e.position;o.position={horizontal:{relativeTo:r.horizontal.relativeTo||"column",alignment:r.horizontal.align,posOffset:r.horizontal.posOffset},vertical:{relativeTo:r.vertical.relativeTo||"paragraph",alignment:r.vertical.align,posOffset:r.vertical.posOffset}};}if(e.borderWidth&&e.borderWidth>0){let r={solid:"solid",dotted:"dot",dashed:"dash",double:"solid",groove:"solid",ridge:"solid",inset:"solid",outset:"solid"};o.outline={width:chunk4Q2IP5FW_js.f(e.borderWidth),color:e.borderColor?{rgb:e.borderColor.replace("#","")}:void 0,style:e.borderStyle&&r[e.borderStyle]||"solid"};}if(e.hlinkHref&&(o.hlinkHref=e.hlinkHref),e.cropTop!==void 0||e.cropRight!==void 0||e.cropBottom!==void 0||e.cropLeft!==void 0){let r={};e.cropTop!==void 0&&e.cropTop!==null&&(r.top=e.cropTop),e.cropRight!==void 0&&e.cropRight!==null&&(r.right=e.cropRight),e.cropBottom!==void 0&&e.cropBottom!==null&&(r.bottom=e.cropBottom),e.cropLeft!==void 0&&e.cropLeft!==null&&(r.left=e.cropLeft),Object.keys(r).length>0&&(o.crop=r);}if(e.opacity!==void 0&&e.opacity!==null&&e.opacity<1&&(o.opacity=e.opacity),e.layoutInCell!==void 0&&e.layoutInCell!==null&&(o.layoutInCell=e.layoutInCell),e.allowOverlap!==void 0&&e.allowOverlap!==null&&(o.allowOverlap=e.allowOverlap),e.effectExtentTop||e.effectExtentBottom||e.effectExtentLeft||e.effectExtentRight){let r={};e.effectExtentTop&&(r.top=chunk4Q2IP5FW_js.f(e.effectExtentTop)),e.effectExtentBottom&&(r.bottom=chunk4Q2IP5FW_js.f(e.effectExtentBottom)),e.effectExtentLeft&&(r.left=chunk4Q2IP5FW_js.f(e.effectExtentLeft)),e.effectExtentRight&&(r.right=chunk4Q2IP5FW_js.f(e.effectExtentRight)),Object.keys(r).length>0&&(o.padding=r);}return {type:"run",content:[{type:"drawing",image:o}]}}function j(t){let e=t.attrs,n={type:"shape",shapeType:e.shapeType||"rect",id:e.shapeId||void 0,size:{width:e.width?chunk4Q2IP5FW_js.f(e.width):0,height:e.height?chunk4Q2IP5FW_js.f(e.height):0}};if(e.fillType==="gradient"&&e.gradientStops)try{let o=JSON.parse(e.gradientStops);n.fill={type:"gradient",gradient:{type:e.gradientType||"linear",angle:e.gradientAngle||void 0,stops:o.map(a=>({position:a.position,color:{rgb:a.color.replace("#","")}}))}};}catch{n.fill={type:"solid",color:{rgb:(e.fillColor||"000000").replace("#","")}};}else e.fillColor?n.fill={type:e.fillType||"solid",color:{rgb:e.fillColor.replace("#","")}}:e.fillType==="none"&&(n.fill={type:"none"});if(e.outlineWidth&&e.outlineWidth>0){let o={solid:"solid",dotted:"dot",dashed:"dash"};n.outline={width:chunk4Q2IP5FW_js.f(e.outlineWidth),color:e.outlineColor?{rgb:e.outlineColor.replace("#","")}:void 0,style:e.outlineStyle&&o[e.outlineStyle]||"solid"};}return {type:"run",content:[{type:"shape",shape:n}]}}function b(t,e){let n=t.attrs,i=J(z(t,e),t),o=n.bookmarks;if(o&&o.length>0){let r=o.map(s=>({type:"bookmarkStart",id:s.id,name:s.name})),l=o.map(s=>({type:"bookmarkEnd",id:s.id}));i=[...r,...i,...l];}let a={type:"paragraph",paraId:n.paraId||void 0,textId:n.textId||void 0,formatting:q(n),content:i};return n.renderedPageBreakBefore&&(a.renderedPageBreakBefore=true),n._sectionProperties?a.sectionProperties=n._sectionProperties:n.sectionBreakType&&(a.sectionProperties={sectionStart:n.sectionBreakType}),a}function J(t,e){let n=new Set;if(e.forEach(r=>{for(let l of r.marks)l.type.name==="comment"&&n.add(l.attrs.commentId);}),n.size===0)return t;let i=[],o=new Set,a=0;e.forEach(r=>{let l=new Set;for(let s of r.marks)s.type.name==="comment"&&l.add(s.attrs.commentId);for(let s of [...o])l.has(s)||(i.push({type:"commentRangeEnd",id:s}),o.delete(s));for(let s of l)o.has(s)||(i.push({type:"commentRangeStart",id:s}),o.add(s));a<t.length&&i.push(t[a]),a++;});for(let r of o)i.push({type:"commentRangeEnd",id:r});return i}function q(t){if(t._originalFormatting){let n=t._originalFormatting,i={...n};return t.alignment!==(n.alignment||void 0)&&(i.alignment=t.alignment||void 0),t.numPr!==n.numPr&&JSON.stringify(t.numPr)!==JSON.stringify(n.numPr)&&(i.numPr=t.numPr||void 0),t.styleId!==(n.styleId||void 0)&&(i.styleId=t.styleId||void 0),t.pageBreakBefore!==(n.pageBreakBefore||void 0)&&(i.pageBreakBefore=t.pageBreakBefore||void 0),t.bidi!==(n.bidi||void 0)&&(i.bidi=t.bidi||void 0),i}if(t.alignment||t.spaceBefore||t.spaceAfter||t.lineSpacing||t.indentLeft||t.indentRight||t.indentFirstLine||t.numPr||t.styleId||t.borders||t.shading||t.tabs||t.outlineLevel!=null||t.contextualSpacing||t.bidi)return {alignment:t.alignment||void 0,spaceBefore:t.spaceBefore||void 0,spaceAfter:t.spaceAfter||void 0,lineSpacing:t.lineSpacing||void 0,lineSpacingRule:t.lineSpacingRule||void 0,indentLeft:t.indentLeft||void 0,indentRight:t.indentRight||void 0,indentFirstLine:t.indentFirstLine||void 0,hangingIndent:t.hangingIndent||void 0,numPr:t.numPr||void 0,styleId:t.styleId||void 0,borders:t.borders||void 0,shading:t.shading||void 0,tabs:t.tabs||void 0,outlineLevel:t.outlineLevel??void 0,contextualSpacing:t.contextualSpacing||void 0,bidi:t.bidi||void 0}}function z(t,e){let n=[],i=e??k(t),o=null,a=null,r=null;return t.forEach(l=>{let s=l.marks.find(p=>p.type.name==="footnoteRef");if(s){o&&(n.push(o),o=null,a=null),r&&(n.push(r),r=null);let u={type:s.attrs.noteType==="endnote"?"endnoteRef":"footnoteRef",id:parseInt(s.attrs.id,10)||0};n.push({type:"run",content:[u]});return}let d=l.marks.find(p=>p.type.name==="insertion"),m=l.marks.find(p=>p.type.name==="deletion");if(d||m){o&&(n.push(o),o=null,a=null),r&&(n.push(r),r=null);let p=d||m,u=l.marks.filter(I=>I.type.name!=="insertion"&&I.type.name!=="deletion"),h=T(u),y={type:"run",content:l.isText&&l.text?[{type:"text",text:l.text}]:[],...Object.keys(h).length>0?{formatting:h}:{}},g={id:p.attrs.revisionId,author:p.attrs.author||"Unknown",date:p.attrs.date||void 0},R=g.id,K=(i.insertionById.get(R)??0)>0,V=(i.deletionById.get(R)??0)>0,F=K&&V;d?F?n.push({type:"moveTo",info:g,content:[y]}):n.push({type:"insertion",info:g,content:[y]}):F?n.push({type:"moveFrom",info:g,content:[y]}):n.push({type:"deletion",info:g,content:[y]});return}let f=l.marks.find(p=>p.type.name==="hyperlink");if(f){let p=N(f),u=r?.href||(r?.anchor?`#${r.anchor}`:"");r&&u===p?x(r,l):(o&&(n.push(o),o=null,a=null),r&&n.push(r),r=L(f),x(r,l));return}if(r&&(n.push(r),r=null),l.isText){let p=E(l.marks);o&&a===p?H(o,l.text||""):(o&&n.push(o),o=C(l.text||"",l.marks),a=p);}else l.type.name==="hardBreak"?(o&&(n.push(o),o=null,a=null),n.push(P())):l.type.name==="image"?(o&&(n.push(o),o=null,a=null),n.push(D(l))):l.type.name==="shape"?(o&&(n.push(o),o=null,a=null),n.push(j(l))):l.type.name==="tab"?(o&&(n.push(o),o=null,a=null),n.push(w())):l.type.name==="field"?(o&&(n.push(o),o=null,a=null),n.push(O(l,l.marks))):l.type.name==="sdt"?(o&&(n.push(o),o=null,a=null),n.push(U(l))):l.type.name==="math"&&(o&&(n.push(o),o=null,a=null),n.push(W(l)));}),o&&n.push(o),r&&n.push(r),n}function U(t){let e=t.attrs,n={sdtType:e.sdtType??"richText",alias:e.alias??void 0,tag:e.tag??void 0,lock:e.lock??void 0,placeholder:e.placeholder??void 0,showingPlaceholder:e.showingPlaceholder??void 0,dateFormat:e.dateFormat??void 0,listItems:e.listItems?JSON.parse(e.listItems):void 0,checked:e.checked!=null?e.checked:void 0},o=z(t).filter(a=>a.type==="run"||a.type==="hyperlink"||a.type==="simpleField"||a.type==="complexField"||a.type==="inlineSdt"||a.type==="mathEquation");return {type:"inlineSdt",properties:n,content:o}}function X(t){for(let e of t)for(let n of e.cells){let i=n.formatting?.borders;if(i){let o=i.top||i.left||i.right||i.bottom||i.insideH||i.insideV;return o?{top:i.top??o,bottom:i.bottom??o,left:i.left??o,right:i.right??o,insideH:i.insideH??i.bottom??o,insideV:i.insideV??i.right??o}:void 0}}}function G(t,e){let n=[],i=[],o=0;for(let a=0;a<t.childCount;a++){let r=t.child(a),l=0;r.forEach(s=>{if(s.type.name!=="tableCell"&&s.type.name!=="tableHeader")return;for(;n[a]?.[l];)l++;let d=s.attrs.rowspan||1,m=s.attrs.colspan||1;i.push({row:a,col:l,rowspan:d,colspan:m,cell:Z(s,e)});for(let f=a;f<a+d;f++){let p=n[f]??[];n[f]=p;for(let u=l;u<l+m;u++)p[u]=true;}l+=m,o=Math.max(o,l);});}return {anchors:i,totalCols:o}}function M(t,e){let n=t.attrs,{anchors:i,totalCols:o}=G(t,e),a=new Map,r=new Map;for(let d of i){a.set(`${d.row}-${d.col}`,d);for(let m=d.row;m<d.row+d.rowspan;m++)for(let f=d.col;f<d.col+d.colspan;f++)r.set(`${m}-${f}`,d);}let l=[];for(let d=0;d<t.childCount;d++){let m=t.child(d),f=[];for(let p=0;p<o;){let u=a.get(`${d}-${p}`);if(u){let g={...u.cell.formatting??{}};u.colspan>1?g.gridSpan=u.colspan:delete g.gridSpan,u.rowspan>1?g.vMerge="restart":delete g.vMerge,f.push({...u.cell,formatting:Object.keys(g).length?g:void 0}),p+=u.colspan;continue}let h=r.get(`${d}-${p}`);if(!h){p++;continue}let y={...h.cell.formatting??{}};h.colspan>1?y.gridSpan=h.colspan:delete y.gridSpan,y.vMerge="continue",f.push({...h.cell,content:[],formatting:y}),p+=h.colspan;}l.push({type:"tableRow",formatting:Q(m.attrs),cells:f});}let s=Y(n)||void 0;if(!s?.borders){let d=X(l);if(d)if(s)s.borders=d;else return {type:"table",columnWidths:n.columnWidths||void 0,formatting:{borders:d},rows:l}}return {type:"table",columnWidths:n.columnWidths||void 0,formatting:s,rows:l}}function Y(t){if(t._originalFormatting){let o=t._originalFormatting,a={...o};t.styleId!==(o.styleId||void 0)&&(a.styleId=t.styleId||void 0),t.justification!==(o.justification||void 0)&&(a.justification=t.justification||void 0),t.floating!==(o.floating||void 0)&&(a.floating=t.floating||void 0),t.look!==(o.look||void 0)&&(a.look=t.look||void 0);let r=o.width?.value,l=o.width?.type;return (t.width!==r||t.widthType!==l)&&(t.width!=null||t.widthType?a.width={value:t.width??0,type:t.widthType||"dxa"}:a.width=void 0),t.cellMargins&&(a.cellMargins={top:t.cellMargins.top!=null?{value:t.cellMargins.top,type:"dxa"}:void 0,bottom:t.cellMargins.bottom!=null?{value:t.cellMargins.bottom,type:"dxa"}:void 0,left:t.cellMargins.left!=null?{value:t.cellMargins.left,type:"dxa"}:void 0,right:t.cellMargins.right!=null?{value:t.cellMargins.right,type:"dxa"}:void 0}),a}if(!(t.styleId||t.width!=null||t.widthType||t.justification||t.floating||t.cellMargins||t.look))return;let n=t.cellMargins?{top:t.cellMargins.top!=null?{value:t.cellMargins.top,type:"dxa"}:void 0,bottom:t.cellMargins.bottom!=null?{value:t.cellMargins.bottom,type:"dxa"}:void 0,left:t.cellMargins.left!=null?{value:t.cellMargins.left,type:"dxa"}:void 0,right:t.cellMargins.right!=null?{value:t.cellMargins.right,type:"dxa"}:void 0}:void 0,i;return (t.width!=null||t.widthType)&&(i={value:t.width??0,type:t.widthType||"dxa"}),{styleId:t.styleId||void 0,width:i,justification:t.justification||void 0,floating:t.floating||void 0,cellMargins:n,look:t.look||void 0}}function Q(t){if(t._originalFormatting){let n=t._originalFormatting,i={...n};return t.height!==(n.height?.value||void 0)&&(i.height=t.height?{value:t.height,type:"dxa"}:void 0),t.heightRule!==(n.heightRule||void 0)&&(i.heightRule=t.heightRule||void 0),t.isHeader!==(n.header||void 0)&&(i.header=t.isHeader||void 0),i}if(t.height||t.isHeader)return {height:t.height?{value:t.height,type:"dxa"}:void 0,heightRule:t.heightRule||void 0,header:t.isHeader||void 0}}function Z(t,e){let n=t.attrs,i=[];return t.forEach(o=>{o.type.name==="paragraph"?i.push(b(o,e)):o.type.name==="table"&&i.push(M(o,e));}),{type:"tableCell",formatting:ee(n),content:i}}function ee(t){if(t._originalFormatting){let i=t._originalFormatting,o={...i};if(t.colspan>1&&(o.gridSpan=t.colspan),t.width!=null&&(o.width={value:t.width,type:t.widthType||"dxa"}),t.verticalAlign!==(i.verticalAlign||void 0)&&(o.verticalAlign=t.verticalAlign||void 0),t.backgroundColor?t._originalResolvedFill===t.backgroundColor&&i.shading?o.shading=i.shading:o.shading={fill:{rgb:t.backgroundColor}}:i.shading&&(o.shading=void 0),t.borders&&(o.borders=t.borders),t.margins){let a=t.margins,r={};a.top!=null&&(r.top={value:a.top,type:"dxa"}),a.bottom!=null&&(r.bottom={value:a.bottom,type:"dxa"}),a.left!=null&&(r.left={value:a.left,type:"dxa"}),a.right!=null&&(r.right={value:a.right,type:"dxa"}),o.margins=r;}return t.textDirection!==(i.textDirection||void 0)&&(o.textDirection=t.textDirection||void 0),o}if(!(t.colspan>1||t.rowspan>1||t.width!=null||t.verticalAlign||t.backgroundColor||t.borders||t.margins||t.textDirection))return;let n;if(t.margins){let i=t.margins;n={},i.top!=null&&(n.top={value:i.top,type:"dxa"}),i.bottom!=null&&(n.bottom={value:i.bottom,type:"dxa"}),i.left!=null&&(n.left={value:i.left,type:"dxa"}),i.right!=null&&(n.right={value:i.right,type:"dxa"});}return {gridSpan:t.colspan>1?t.colspan:void 0,width:t.width!=null?{value:t.width,type:t.widthType||"dxa"}:void 0,verticalAlign:t.verticalAlign||void 0,textDirection:t.textDirection||void 0,shading:t.backgroundColor?{fill:{rgb:t.backgroundColor}}:void 0,borders:t.borders,margins:n}}function v(t){let e=t.attrs,n=[];t.forEach(l=>{l.type.name==="paragraph"&&n.push(b(l));});let i={type:"shape",shapeType:"rect",id:e.textBoxId||void 0,size:{width:e.width?chunk4Q2IP5FW_js.f(e.width):0,height:e.height?chunk4Q2IP5FW_js.f(e.height):0},textBody:{content:n.length>0?n:[{type:"paragraph",content:[]}],margins:{top:e.marginTop!=null?chunk4Q2IP5FW_js.f(e.marginTop):void 0,bottom:e.marginBottom!=null?chunk4Q2IP5FW_js.f(e.marginBottom):void 0,left:e.marginLeft!=null?chunk4Q2IP5FW_js.f(e.marginLeft):void 0,right:e.marginRight!=null?chunk4Q2IP5FW_js.f(e.marginRight):void 0}}},o=chunkD4RPOJC7_js.d(e);o&&(i.position=o);let a=chunkD4RPOJC7_js.e(e);if(a&&(i.wrap=a),e.fillColor&&(i.fill={type:"solid",color:{rgb:e.fillColor.replace("#","")}}),e.outlineWidth&&e.outlineWidth>0){let l={solid:"solid",dotted:"dot",dashed:"dash"};i.outline={width:chunk4Q2IP5FW_js.f(e.outlineWidth),color:e.outlineColor?{rgb:e.outlineColor.replace("#","")}:void 0,style:e.outlineStyle&&l[e.outlineStyle]||"solid"};}return {type:"run",content:[{type:"shape",shape:i}]}}function _(t){return {type:"paragraph",content:[v(t)]}}function te(t,e){let i={content:$(t),finalSectionProperties:e?.package.document.finalSectionProperties,sections:e?.package.document.sections,comments:e?.package.document.comments};return e?{...e,package:{...e.package,document:i}}:{package:{document:i}}}function $(t){let e=[],n=k(t),i=[],o=()=>{for(let a of i)e.push({type:"paragraph",content:[a]});i=[];};return t.forEach(a=>{if(a.type.name==="paragraph"){let r=b(a,n);i.length>0&&(r.content=[...i,...r.content],i=[]),e.push(r);}else if(a.type.name==="table")o(),e.push(M(a,n));else if(a.type.name==="textBox"){let r=a.attrs;chunkD4RPOJC7_js.c(r)?i.push(v(a)):(o(),e.push(_(a)));}else a.type.name==="pageBreak"&&(o(),e.push(ne()));}),o(),e}function ne(){return {type:"paragraph",content:[{type:"run",content:[{type:"break",breakType:"page"}]}]}}function xe(t,e){return te(e,t)}function Ce(t){return $(t)}exports.a=te;exports.b=xe;exports.c=Ce;
@@ -1,2 +0,0 @@
1
- 'use strict';var chunk7VCMJCBY_js=require('./chunk-7VCMJCBY.js'),chunk4Q2IP5FW_js=require('./chunk-4Q2IP5FW.js');var pe={accent1:"accent1",accent2:"accent2",accent3:"accent3",accent4:"accent4",accent5:"accent5",accent6:"accent6",dk1:"dk1",lt1:"lt1",dk2:"dk2",lt2:"lt2",tx1:"text1",tx2:"text2",bg1:"background1",bg2:"background2",hlink:"hlink",folHlink:"folHlink"},G={black:"000000",white:"FFFFFF",red:"FF0000",green:"00FF00",blue:"0000FF",yellow:"FFFF00",cyan:"00FFFF",magenta:"FF00FF"};function J(e,n){let t=chunk7VCMJCBY_js.i(n),i=t.find(r=>r.name==="a:shade");if(i){let r=chunk7VCMJCBY_js.j(i,null,"val");r&&(e.themeShade=Math.round(parseInt(r,10)/1e5*255).toString(16).padStart(2,"0").toUpperCase());}let o=t.find(r=>r.name==="a:tint");if(o){let r=chunk7VCMJCBY_js.j(o,null,"val");r&&(e.themeTint=Math.round(parseInt(r,10)/1e5*255).toString(16).padStart(2,"0").toUpperCase());}return e}function K(e){if(!e)return;let n=chunk7VCMJCBY_js.i(e),t=n.find(l=>l.name==="a:srgbClr");if(t){let l=chunk7VCMJCBY_js.j(t,null,"val");if(l)return J({rgb:l},t)}let i=n.find(l=>l.name==="a:schemeClr");if(i){let l=chunk7VCMJCBY_js.j(i,null,"val");if(l){let u={themeColor:pe[l]??"dk1"};return J(u,i)}}let o=n.find(l=>l.name==="a:sysClr");if(o)return {rgb:chunk7VCMJCBY_js.j(o,null,"lastClr")??"000000"};let r=n.find(l=>l.name==="a:prstClr");if(r){let l=chunk7VCMJCBY_js.j(r,null,"val");if(l&&G[l])return {rgb:G[l]}}}function N(e){if(!e)return;let n=chunk7VCMJCBY_js.i(e);if(n.find(i=>i.name==="a:noFill"))return {type:"none"};let t=n.find(i=>i.name==="a:solidFill");if(t)return {type:"solid",color:K(t)};if(n.find(i=>i.name==="a:gradFill"))return {type:"gradient"}}function S(e){let n=e?chunk7VCMJCBY_js.h(e,"a:ln"):null;if(!n)return;let t=chunk7VCMJCBY_js.i(n);if(t.find(u=>u.name==="a:noFill"))return;let i={},o=chunk7VCMJCBY_js.j(n,null,"w");o&&(i.width=parseInt(o,10));let r=t.find(u=>u.name==="a:solidFill");r&&(i.color=K(r));let l=t.find(u=>u.name==="a:prstDash");if(l){let u=chunk7VCMJCBY_js.j(l,null,"val");u&&(i.style=u);}return i}function L(e){if(!e)return;let n=chunk7VCMJCBY_js.j(e,null,"relativeFrom")??"column",t=chunk7VCMJCBY_js.h(e,"wp:align");if(t){let o=chunk7VCMJCBY_js.k(t);return {relativeTo:n,alignment:o}}let i=chunk7VCMJCBY_js.h(e,"wp:posOffset");if(i){let o=chunk7VCMJCBY_js.k(i),r=parseInt(o,10);return {relativeTo:n,posOffset:isNaN(r)?0:r}}return {relativeTo:n}}function z(e){if(!e)return;let n=chunk7VCMJCBY_js.j(e,null,"relativeFrom")??"paragraph",t=chunk7VCMJCBY_js.h(e,"wp:align");if(t){let o=chunk7VCMJCBY_js.k(t);return {relativeTo:n,alignment:o}}let i=chunk7VCMJCBY_js.h(e,"wp:posOffset");if(i){let o=chunk7VCMJCBY_js.k(i),r=parseInt(o,10);return {relativeTo:n,posOffset:isNaN(r)?0:r}}return {relativeTo:n}}function Q(e){let n=chunk7VCMJCBY_js.h(e,"wp:positionH"),t=chunk7VCMJCBY_js.h(e,"wp:positionV");if(!(!n&&!t))return {horizontal:L(n)??{relativeTo:"column"},vertical:z(t)??{relativeTo:"paragraph"}}}var W=["wp:wrapNone","wp:wrapSquare","wp:wrapTight","wp:wrapThrough","wp:wrapTopAndBottom"];function D(e,n,t){if(!e){let p={type:n?"behind":"inFront"};return t?.distT!==void 0&&(p.distT=t.distT),t?.distB!==void 0&&(p.distB=t.distB),t?.distL!==void 0&&(p.distL=t.distL),t?.distR!==void 0&&(p.distR=t.distR),p}let o=(e.name||"").replace("wp:",""),r;switch(o){case "wrapNone":r=n?"behind":"inFront";break;case "wrapSquare":r="square";break;case "wrapTight":r="tight";break;case "wrapThrough":r="through";break;case "wrapTopAndBottom":r="topAndBottom";break;default:r="square";}let l={type:r},u=chunk7VCMJCBY_js.j(e,null,"wrapText");u&&(l.wrapText=u);let s=chunk7VCMJCBY_js.l(e,null,"distT")??t?.distT,c=chunk7VCMJCBY_js.l(e,null,"distB")??t?.distB,m=chunk7VCMJCBY_js.l(e,null,"distL")??t?.distL,g=chunk7VCMJCBY_js.l(e,null,"distR")??t?.distR;return s!==void 0&&(l.distT=s),c!==void 0&&(l.distB=c),m!==void 0&&(l.distL=m),g!==void 0&&(l.distR=g),l}function Y(e){let n=chunk7VCMJCBY_js.i(e),t=chunk7VCMJCBY_js.j(e,null,"behindDoc")==="1",i=n.find(r=>W.includes(r.name??"")),o={distT:chunk7VCMJCBY_js.l(e,null,"distT")??void 0,distB:chunk7VCMJCBY_js.l(e,null,"distB")??void 0,distL:chunk7VCMJCBY_js.l(e,null,"distL")??void 0,distR:chunk7VCMJCBY_js.l(e,null,"distR")??void 0};return D(i??null,t,o)}var ce={accent1:"5B9BD5",accent2:"ED7D31",accent3:"A5A5A5",accent4:"FFC000",accent5:"4472C4",accent6:"70AD47",dk1:"000000",lt1:"FFFFFF",dk2:"1F497D",lt2:"EEECE1",text1:"000000",text2:"1F497D",background1:"FFFFFF",background2:"EEECE1",hlink:"0563C1",folHlink:"954F72"};function H(e){if(e){if(e.rgb)return `#${e.rgb}`;if(e.themeColor)return `#${ce[e.themeColor]??"000000"}`}}var k=91440;function Z(e){if(!e)return {};let n={},t=chunk7VCMJCBY_js.l(e,null,"lIns"),i=chunk7VCMJCBY_js.l(e,null,"rIns"),o=chunk7VCMJCBY_js.l(e,null,"tIns"),r=chunk7VCMJCBY_js.l(e,null,"bIns");return (t!==void 0||i!==void 0||o!==void 0||r!==void 0)&&(n.margins={left:t,right:i,top:o,bottom:r}),n}function ve(e){if(!e)return {paragraphElements:[],tableElements:[]};let n=chunk7VCMJCBY_js.g(e,"p"),t=chunk7VCMJCBY_js.g(e,"tbl");return {paragraphElements:n,tableElements:t}}function Be(e,n,t,i,o,r,l,u){if(!e)return [];let s=[],c=chunk7VCMJCBY_js.i(e);for(let m of c){let g=m.name||"",p=g.indexOf(":"),T=p>=0?g.substring(p+1):g;if(T==="p"){let b=n(m,i,o,r,l);s.push(b);}}return s}function ee(e){let t=chunk7VCMJCBY_js.i(e).find(u=>u.name==="wp:inline"||u.name==="wp:anchor");if(!t)return false;let i=chunk7VCMJCBY_js.h(t,"a:graphic");if(!i)return false;let o=chunk7VCMJCBY_js.h(i,"a:graphicData");if(!o)return false;let r=chunk7VCMJCBY_js.h(o,"wps:wsp");return r?chunk7VCMJCBY_js.h(r,"wps:txbx")!==null:false}function Ce(e){return chunk7VCMJCBY_js.h(e,"wps:txbx")!==null}function Me(e){let t=chunk7VCMJCBY_js.i(e).find(x=>x.name==="wp:inline"||x.name==="wp:anchor");if(!t)return null;let i=t.name==="wp:anchor",o=chunk7VCMJCBY_js.h(t,"a:graphic");if(!o)return null;let r=chunk7VCMJCBY_js.h(o,"a:graphicData");if(!r)return null;let l=chunk7VCMJCBY_js.h(r,"wps:wsp");if(!l||!chunk7VCMJCBY_js.h(l,"wps:txbx"))return null;let s=chunk7VCMJCBY_js.i(l),c=s.find(x=>x.name==="wps:spPr"),m=s.find(x=>x.name==="wps:bodyPr"),g=chunk7VCMJCBY_js.h(t,"wp:extent"),p=chunk7VCMJCBY_js.l(g,null,"cx")??0,T=chunk7VCMJCBY_js.l(g,null,"cy")??0,b={width:p,height:T},C=chunk7VCMJCBY_js.h(t,"wp:docPr"),P=C?chunk7VCMJCBY_js.j(C,null,"id")??void 0:void 0,v=N(c??null),B=S(c??null),E=Z(m??null),y={type:"textBox",size:b,content:[]};if(P&&(y.id=P),v&&(y.fill=v),B&&(y.outline=B),E.margins&&(y.margins=E.margins),i){let x=Q(t);x&&(y.position=x);let h=Y(t);h&&(y.wrap=h);}return y}function Re(e){let n=chunk7VCMJCBY_js.h(e,"wps:txbx");return n?chunk7VCMJCBY_js.h(n,"w:txbxContent"):null}function Xe(e,n,t,i){if(!chunk7VCMJCBY_js.h(e,"wps:txbx"))return null;let r=chunk7VCMJCBY_js.i(e),l=r.find(b=>b.name==="wps:spPr"),u=r.find(b=>b.name==="wps:bodyPr"),s=r.find(b=>b.name==="wps:cNvPr"),c=s?chunk7VCMJCBY_js.j(s,null,"id")??void 0:void 0,m=N(l??null),g=S(l??null),p=Z(u??null),T={type:"textBox",size:n,content:[]};return c&&(T.id=c),m&&(T.fill=m),g&&(T.outline=g),p.margins&&(T.margins=p.margins),t&&(T.position=t),i&&(T.wrap=i),T}function ke(e){return chunk4Q2IP5FW_js.e(e.size.width)}function Ae(e){return chunk4Q2IP5FW_js.e(e.size.height)}function Oe(e){return {width:chunk4Q2IP5FW_js.e(e.size.width),height:chunk4Q2IP5FW_js.e(e.size.height)}}function Ne(e){let n=e.margins;return {top:chunk4Q2IP5FW_js.e(n?.top??k),bottom:chunk4Q2IP5FW_js.e(n?.bottom??k),left:chunk4Q2IP5FW_js.e(n?.left??k),right:chunk4Q2IP5FW_js.e(n?.right??k)}}function Se(e){return e.position!==void 0||e.wrap!==void 0}function Le(e){return e.fill!==void 0&&e.fill.type!=="none"}function ze(e){return e.outline!==void 0}function We(e){return e.content.length>0}function De(e){let n=[];for(let t of e.content){let i=[];for(let o of t.content)if(o.type==="run")for(let r of o.content)r.type==="text"&&i.push(r.text);n.push(i.join(""));}return n.join(`
2
- `)}function He(e){if(!(!e.fill||e.fill.type!=="solid"))return H(e.fill.color)}function Ve(e){if(e.outline?.color)return H(e.outline.color)}function _e(e){return e.outline?.width?chunk4Q2IP5FW_js.e(e.outline.width):0}function me(e){if(!e)return;let n=parseInt(e,10);if(!isNaN(n))return n/6e4}function ge(e,n){let t=chunk7VCMJCBY_js.i(e);for(let i of t)if(n.includes(i.name||""))return i;return null}function ne(e){if(!e)return {width:0,height:0};let n=chunk7VCMJCBY_js.l(e,null,"cx")??0,t=chunk7VCMJCBY_js.l(e,null,"cy")??0;return {width:n,height:t}}function te(e){if(!e)return;let n=chunk7VCMJCBY_js.l(e,null,"l")??0,t=chunk7VCMJCBY_js.l(e,null,"t")??0,i=chunk7VCMJCBY_js.l(e,null,"r")??0,o=chunk7VCMJCBY_js.l(e,null,"b")??0;if(!(n===0&&t===0&&i===0&&o===0))return {left:n,top:t,right:i,bottom:o}}function ie(e){if(!e)return {};let n=chunk7VCMJCBY_js.j(e,null,"id")??void 0,t=chunk7VCMJCBY_js.j(e,null,"name")??void 0,i=chunk7VCMJCBY_js.j(e,null,"descr")??void 0,o=chunk7VCMJCBY_js.j(e,null,"title")??void 0,r=chunk7VCMJCBY_js.j(e,null,"decorative")==="1",l=chunk7VCMJCBY_js.e(e,"a","hlinkClick"),u=l?chunk7VCMJCBY_js.j(l,"r","id")??void 0:void 0;return {id:n,name:t,alt:i,title:o,decorative:r||void 0,hlinkRId:u}}function re(e){if(!e)return;let n=chunk7VCMJCBY_js.j(e,null,"rot"),t=chunk7VCMJCBY_js.j(e,null,"flipH")==="1",i=chunk7VCMJCBY_js.j(e,null,"flipV")==="1",o=me(n);if(o===void 0&&!t&&!i)return;let r={};return o!==void 0&&(r.rotation=o),t&&(r.flipH=true),i&&(r.flipV=true),r}function oe(e){let n=chunk7VCMJCBY_js.h(e,"a:graphic");if(!n)return {blipFill:null,blip:null};let t=chunk7VCMJCBY_js.h(n,"a:graphicData");if(!t)return {blipFill:null,blip:null};let i=chunk7VCMJCBY_js.h(t,"pic:pic");if(!i)return {blipFill:null,blip:null};let o=chunk7VCMJCBY_js.h(i,"pic:blipFill");return o?{blipFill:o,blip:chunk7VCMJCBY_js.h(o,"a:blip")}:{blipFill:null,blip:null}}function le(e){if(!e)return;let n=chunk7VCMJCBY_js.h(e,"a:srcRect");if(!n)return;let t=s=>{let c=chunk7VCMJCBY_js.l(n,null,s);if(!(c===void 0||c===0))return c/1e5},i=t("l"),o=t("t"),r=t("r"),l=t("b");if(i===void 0&&o===void 0&&r===void 0&&l===void 0)return;let u={};return i!==void 0&&(u.left=i),o!==void 0&&(u.top=o),r!==void 0&&(u.right=r),l!==void 0&&(u.bottom=l),u}function ae(e){if(!e)return;let n=chunk7VCMJCBY_js.h(e,"a:alphaModFix");if(!n)return;let t=chunk7VCMJCBY_js.l(n,null,"amt");if(!(t===void 0||t>=1e5))return Math.max(0,Math.min(1,t/1e5))}function se(e){if(!e)return "";let n=chunk7VCMJCBY_js.j(e,"r","embed");if(n)return n;let t=chunk7VCMJCBY_js.j(e,null,"embed");if(t)return t;let i=chunk7VCMJCBY_js.j(e,"r","link");return i||""}function ue(e){let n=chunk7VCMJCBY_js.h(e,"a:graphic");if(!n)return null;let t=chunk7VCMJCBY_js.h(n,"a:graphicData");if(!t)return null;let i=chunk7VCMJCBY_js.h(t,"pic:pic");if(!i)return null;let o=chunk7VCMJCBY_js.h(i,"pic:spPr");return o?chunk7VCMJCBY_js.h(o,"a:xfrm"):null}function xe(e){if(!e)return e;let n=e.replace(/^\/+/,"");return n.startsWith("media/")?n=`word/${n}`:n.startsWith("word/")||(n=`word/${n}`),n}function he(e){let n=e.split(".").pop()?.toLowerCase()??"";return {png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",bmp:"image/bmp",tiff:"image/tiff",tif:"image/tiff",webp:"image/webp",svg:"image/svg+xml",emf:"image/x-emf",wmf:"image/x-wmf"}[n]??"application/octet-stream"}function de(e,n,t){if(!e||!n)return {};let i=n.get(e);if(!i)return {};let o=i.target;if(!o)return {};let r=xe(o),l=o.split("/").pop(),u=(s,c)=>{let m=c.toLowerCase();for(let[g,p]of s.entries())if(g.toLowerCase()===m)return p};if(t){let s=u(t,r);if(s)return {src:s.dataUrl||s.base64,mimeType:s.mimeType,filename:l};let c=o.replace(/^\/+/,""),m=u(t,c);if(m)return {src:m.dataUrl||m.base64,mimeType:m.mimeType,filename:l};let g=`word/${c}`,p=u(t,g);if(p)return {src:p.dataUrl||p.base64,mimeType:p.mimeType,filename:l}}return {mimeType:he(o),filename:l}}function Te(e,n,t){let i=chunk7VCMJCBY_js.h(e,"wp:extent"),o=ne(i),r=chunk7VCMJCBY_js.h(e,"wp:effectExtent"),l=te(r),u=chunk7VCMJCBY_js.h(e,"wp:docPr"),s=ie(u),{blip:c,blipFill:m}=oe(e),g=se(c),p=le(m),T=ae(c),b=de(g,n,t),C=ue(e),P=re(C),v=chunk7VCMJCBY_js.l(e,null,"distT")??void 0,B=chunk7VCMJCBY_js.l(e,null,"distB")??void 0,E=chunk7VCMJCBY_js.l(e,null,"distL")??void 0,y=chunk7VCMJCBY_js.l(e,null,"distR")??void 0,x={type:"inline"};v!==void 0&&(x.distT=v),B!==void 0&&(x.distB=B),E!==void 0&&(x.distL=E),y!==void 0&&(x.distR=y);let h={type:"image",rId:g,size:o,wrap:x};if(s.id&&(h.id=s.id),s.alt&&(h.alt=s.alt),s.title&&(h.title=s.title),s.decorative&&(h.decorative=true),b.src&&(h.src=b.src),b.mimeType&&(h.mimeType=b.mimeType),b.filename&&(h.filename=b.filename),l&&(h.padding=l),P&&(h.transform=P),p&&(h.crop=p),T!==void 0&&(h.opacity=T),s.hlinkRId&&n){let X=chunk7VCMJCBY_js.r(n,s.hlinkRId);X&&(h.hlinkHref=X);}return h}function be(e,n,t){let i=chunk7VCMJCBY_js.h(e,"wp:extent"),o=ne(i),r=chunk7VCMJCBY_js.h(e,"wp:effectExtent"),l=te(r),u=chunk7VCMJCBY_js.h(e,"wp:docPr"),s=ie(u),c=chunk7VCMJCBY_js.j(e,null,"behindDoc")==="1",m=chunk7VCMJCBY_js.j(e,null,"layoutInCell"),g=m===null?void 0:m==="1",p=chunk7VCMJCBY_js.j(e,null,"allowOverlap"),T=p===null?void 0:p==="1",b={distT:chunk7VCMJCBY_js.l(e,null,"distT")??void 0,distB:chunk7VCMJCBY_js.l(e,null,"distB")??void 0,distL:chunk7VCMJCBY_js.l(e,null,"distL")??void 0,distR:chunk7VCMJCBY_js.l(e,null,"distR")??void 0},C=ge(e,W),P=D(C,c,b),v=chunk7VCMJCBY_js.h(e,"wp:positionH"),B=chunk7VCMJCBY_js.h(e,"wp:positionV"),E=L(v),y=z(B),x;(E||y)&&(x={horizontal:E??{relativeTo:"column"},vertical:y??{relativeTo:"paragraph"}});let{blip:h,blipFill:X}=oe(e),V=se(h),_=le(X),U=ae(h),M=de(V,n,t),fe=ue(e),j=re(fe),I={type:"image",rId:V,size:o,wrap:P};if(s.id&&(I.id=s.id),s.alt&&(I.alt=s.alt),s.title&&(I.title=s.title),s.decorative&&(I.decorative=true),M.src&&(I.src=M.src),M.mimeType&&(I.mimeType=M.mimeType),M.filename&&(I.filename=M.filename),x&&(I.position=x),l&&(I.padding=l),j&&(I.transform=j),_&&(I.crop=_),U!==void 0&&(I.opacity=U),g!==void 0&&(I.layoutInCell=g),T!==void 0&&(I.allowOverlap=T),s.hlinkRId&&n){let q=chunk7VCMJCBY_js.r(n,s.hlinkRId);q&&(I.hlinkHref=q);}return I}function we(e,n,t){if(ee(e))return null;let i=chunk7VCMJCBY_js.i(e);for(let o of i){let r=o.name||"";if(r==="wp:inline"||r==="wp:anchor")return r==="wp:inline"?Te(o,n,t):be(o,n,t)}return null}function Qe(e,n,t){return we(e,n,t)}function Ye(e){return e.wrap.type==="inline"}function Ze(e){return e.wrap.type!=="inline"}function en(e){return e.wrap.type==="behind"}function nn(e){return e.wrap.type==="inFront"}function tn(e){return chunk4Q2IP5FW_js.e(e.size.width)}function rn(e){return chunk4Q2IP5FW_js.e(e.size.height)}function on(e){return e.decorative===true}function ln(e){return {top:chunk4Q2IP5FW_js.e(e.wrap.distT),bottom:chunk4Q2IP5FW_js.e(e.wrap.distB),left:chunk4Q2IP5FW_js.e(e.wrap.distL),right:chunk4Q2IP5FW_js.e(e.wrap.distR)}}exports.A=Ye;exports.B=Ze;exports.C=en;exports.D=nn;exports.E=tn;exports.F=rn;exports.G=on;exports.H=ln;exports.a=K;exports.b=N;exports.c=Q;exports.d=Y;exports.e=H;exports.f=ve;exports.g=Be;exports.h=ee;exports.i=Ce;exports.j=Me;exports.k=Re;exports.l=Xe;exports.m=ke;exports.n=Ae;exports.o=Oe;exports.p=Ne;exports.q=Se;exports.r=Le;exports.s=ze;exports.t=We;exports.u=De;exports.v=He;exports.w=Ve;exports.x=_e;exports.y=we;exports.z=Qe;
@@ -1,142 +0,0 @@
1
- import { P as ParagraphFormatting, T as TextFormatting } from './formatting-BwpZWdGi.js';
2
-
3
- /**
4
- * Lists & Numbering Types
5
- *
6
- * Types for bullet lists, numbered lists, and numbering definitions.
7
- */
8
-
9
- /**
10
- * Number format type
11
- */
12
- type NumberFormat = 'decimal' | 'upperRoman' | 'lowerRoman' | 'upperLetter' | 'lowerLetter' | 'ordinal' | 'cardinalText' | 'ordinalText' | 'hex' | 'chicago' | 'ideographDigital' | 'japaneseCounting' | 'aiueo' | 'iroha' | 'decimalFullWidth' | 'decimalHalfWidth' | 'japaneseLegal' | 'japaneseDigitalTenThousand' | 'decimalEnclosedCircle' | 'decimalFullWidth2' | 'aiueoFullWidth' | 'irohaFullWidth' | 'decimalZero' | 'bullet' | 'ganada' | 'chosung' | 'decimalEnclosedFullstop' | 'decimalEnclosedParen' | 'decimalEnclosedCircleChinese' | 'ideographEnclosedCircle' | 'ideographTraditional' | 'ideographZodiac' | 'ideographZodiacTraditional' | 'taiwaneseCounting' | 'ideographLegalTraditional' | 'taiwaneseCountingThousand' | 'taiwaneseDigital' | 'chineseCounting' | 'chineseLegalSimplified' | 'chineseCountingThousand' | 'koreanDigital' | 'koreanCounting' | 'koreanLegal' | 'koreanDigital2' | 'vietnameseCounting' | 'russianLower' | 'russianUpper' | 'none' | 'numberInDash' | 'hebrew1' | 'hebrew2' | 'arabicAlpha' | 'arabicAbjad' | 'hindiVowels' | 'hindiConsonants' | 'hindiNumbers' | 'hindiCounting' | 'thaiLetters' | 'thaiNumbers' | 'thaiCounting';
13
- /**
14
- * Multi-level suffix (what follows the number)
15
- */
16
- type LevelSuffix = 'tab' | 'space' | 'nothing';
17
- /**
18
- * One indentation level of an abstract numbering definition (`w:lvl`).
19
- * Carries the number format, the marker template (`lvlText` — e.g.
20
- * `"%1.%2."`), the level's paragraph properties (indent, hanging) and
21
- * character properties (font, size, color for the marker itself).
22
- *
23
- * `ilvl` ranges 0-8 in standard Word documents.
24
- */
25
- interface ListLevel {
26
- /** Level index (0-8) */
27
- ilvl: number;
28
- /** Starting number */
29
- start?: number;
30
- /** Number format */
31
- numFmt: NumberFormat;
32
- /** Level text (e.g., "%1." or "•") */
33
- lvlText: string;
34
- /** Justification */
35
- lvlJc?: 'left' | 'center' | 'right';
36
- /** Suffix after number */
37
- suffix?: LevelSuffix;
38
- /** Paragraph properties for this level */
39
- pPr?: ParagraphFormatting;
40
- /** Run properties for the number/bullet */
41
- rPr?: TextFormatting;
42
- /** Restart numbering from higher level */
43
- lvlRestart?: number;
44
- /** Is legal numbering style */
45
- isLgl?: boolean;
46
- /** Legacy settings */
47
- legacy?: {
48
- legacy?: boolean;
49
- legacySpace?: number;
50
- legacyIndent?: number;
51
- };
52
- }
53
- /**
54
- * Abstract numbering definition (`w:abstractNum`) — the reusable template
55
- * for a list: which `NumberFormat` at each indentation level, what
56
- * marker text, what paragraph/character formatting. Multiple
57
- * `NumberingInstance`s (`w:num`) can reference one abstract numbering
58
- * to share the template while keeping independent counters.
59
- *
60
- * See ECMA-376 §17.9.
61
- */
62
- interface AbstractNumbering {
63
- /** Abstract numbering ID */
64
- abstractNumId: number;
65
- /** Multi-level type */
66
- multiLevelType?: 'hybridMultilevel' | 'multilevel' | 'singleLevel';
67
- /** Numbering style link */
68
- numStyleLink?: string;
69
- /** Style link */
70
- styleLink?: string;
71
- /** Level definitions */
72
- levels: ListLevel[];
73
- /** Name */
74
- name?: string;
75
- }
76
- /**
77
- * Numbering instance (w:num)
78
- */
79
- interface NumberingInstance {
80
- /** Numbering ID (referenced by paragraphs) */
81
- numId: number;
82
- /** Reference to abstract numbering */
83
- abstractNumId: number;
84
- /** Level overrides */
85
- levelOverrides?: Array<{
86
- ilvl: number;
87
- startOverride?: number;
88
- lvl?: ListLevel;
89
- }>;
90
- }
91
- /**
92
- * Computed list marker for one paragraph — what the layout engine and
93
- * painter need to render the "1.", "a)", "•" prefix. Not part of the
94
- * wire format; the parser fills this from the `numbering.xml` chain plus
95
- * the paragraph's `numPr`. Paragraphs without list rendering omit it.
96
- */
97
- interface ListRendering {
98
- /** Computed marker text (e.g., "1.", "a)", "•") */
99
- marker: string;
100
- /** List level (0-8) */
101
- level: number;
102
- /** Numbering ID */
103
- numId: number;
104
- /** Whether this is a bullet or numbered list */
105
- isBullet: boolean;
106
- /** Number format type (decimal, lowerRoman, upperRoman, etc.) */
107
- numFmt?: NumberFormat;
108
- /** Whether the list marker is hidden (w:vanish on level rPr) */
109
- markerHidden?: boolean;
110
- /** Marker font family from numbering level rPr (ascii name) */
111
- markerFontFamily?: string;
112
- /** Marker font size from numbering level rPr, in points */
113
- markerFontSize?: number;
114
- /**
115
- * NumberFormat for each level from 0..ilvl (inclusive).
116
- * Used to resolve multi-level templates like "%1.%2." where each %N
117
- * may need a different format (e.g., upperRoman parent + decimal child).
118
- */
119
- levelNumFmts?: NumberFormat[];
120
- /** abstractNumId the paragraph's numId points to (counters key on this). */
121
- abstractNumId?: number;
122
- /**
123
- * Start value from the numId's lvlOverride for the paragraph's ilvl, if any.
124
- * Per ECMA-376 §17.9.18, this resets the shared abstractNum counter the
125
- * first time the numId appears.
126
- */
127
- startOverride?: number;
128
- }
129
- /**
130
- * Top-level numbering data from `numbering.xml` — the set of abstract
131
- * templates and the per-document `NumberingInstance`s that reference
132
- * them. Paragraphs reference a `numId` (instance), not an
133
- * `abstractNumId` directly.
134
- */
135
- interface NumberingDefinitions {
136
- /** Abstract numbering definitions */
137
- abstractNums: AbstractNumbering[];
138
- /** Numbering instances */
139
- nums: NumberingInstance[];
140
- }
141
-
142
- export type { AbstractNumbering as A, ListLevel as L, NumberingDefinitions as N, LevelSuffix as a, ListRendering as b, NumberFormat as c, NumberingInstance as d };
@@ -1,142 +0,0 @@
1
- import { P as ParagraphFormatting, T as TextFormatting } from './formatting-D9I-lFS4.mjs';
2
-
3
- /**
4
- * Lists & Numbering Types
5
- *
6
- * Types for bullet lists, numbered lists, and numbering definitions.
7
- */
8
-
9
- /**
10
- * Number format type
11
- */
12
- type NumberFormat = 'decimal' | 'upperRoman' | 'lowerRoman' | 'upperLetter' | 'lowerLetter' | 'ordinal' | 'cardinalText' | 'ordinalText' | 'hex' | 'chicago' | 'ideographDigital' | 'japaneseCounting' | 'aiueo' | 'iroha' | 'decimalFullWidth' | 'decimalHalfWidth' | 'japaneseLegal' | 'japaneseDigitalTenThousand' | 'decimalEnclosedCircle' | 'decimalFullWidth2' | 'aiueoFullWidth' | 'irohaFullWidth' | 'decimalZero' | 'bullet' | 'ganada' | 'chosung' | 'decimalEnclosedFullstop' | 'decimalEnclosedParen' | 'decimalEnclosedCircleChinese' | 'ideographEnclosedCircle' | 'ideographTraditional' | 'ideographZodiac' | 'ideographZodiacTraditional' | 'taiwaneseCounting' | 'ideographLegalTraditional' | 'taiwaneseCountingThousand' | 'taiwaneseDigital' | 'chineseCounting' | 'chineseLegalSimplified' | 'chineseCountingThousand' | 'koreanDigital' | 'koreanCounting' | 'koreanLegal' | 'koreanDigital2' | 'vietnameseCounting' | 'russianLower' | 'russianUpper' | 'none' | 'numberInDash' | 'hebrew1' | 'hebrew2' | 'arabicAlpha' | 'arabicAbjad' | 'hindiVowels' | 'hindiConsonants' | 'hindiNumbers' | 'hindiCounting' | 'thaiLetters' | 'thaiNumbers' | 'thaiCounting';
13
- /**
14
- * Multi-level suffix (what follows the number)
15
- */
16
- type LevelSuffix = 'tab' | 'space' | 'nothing';
17
- /**
18
- * One indentation level of an abstract numbering definition (`w:lvl`).
19
- * Carries the number format, the marker template (`lvlText` — e.g.
20
- * `"%1.%2."`), the level's paragraph properties (indent, hanging) and
21
- * character properties (font, size, color for the marker itself).
22
- *
23
- * `ilvl` ranges 0-8 in standard Word documents.
24
- */
25
- interface ListLevel {
26
- /** Level index (0-8) */
27
- ilvl: number;
28
- /** Starting number */
29
- start?: number;
30
- /** Number format */
31
- numFmt: NumberFormat;
32
- /** Level text (e.g., "%1." or "•") */
33
- lvlText: string;
34
- /** Justification */
35
- lvlJc?: 'left' | 'center' | 'right';
36
- /** Suffix after number */
37
- suffix?: LevelSuffix;
38
- /** Paragraph properties for this level */
39
- pPr?: ParagraphFormatting;
40
- /** Run properties for the number/bullet */
41
- rPr?: TextFormatting;
42
- /** Restart numbering from higher level */
43
- lvlRestart?: number;
44
- /** Is legal numbering style */
45
- isLgl?: boolean;
46
- /** Legacy settings */
47
- legacy?: {
48
- legacy?: boolean;
49
- legacySpace?: number;
50
- legacyIndent?: number;
51
- };
52
- }
53
- /**
54
- * Abstract numbering definition (`w:abstractNum`) — the reusable template
55
- * for a list: which `NumberFormat` at each indentation level, what
56
- * marker text, what paragraph/character formatting. Multiple
57
- * `NumberingInstance`s (`w:num`) can reference one abstract numbering
58
- * to share the template while keeping independent counters.
59
- *
60
- * See ECMA-376 §17.9.
61
- */
62
- interface AbstractNumbering {
63
- /** Abstract numbering ID */
64
- abstractNumId: number;
65
- /** Multi-level type */
66
- multiLevelType?: 'hybridMultilevel' | 'multilevel' | 'singleLevel';
67
- /** Numbering style link */
68
- numStyleLink?: string;
69
- /** Style link */
70
- styleLink?: string;
71
- /** Level definitions */
72
- levels: ListLevel[];
73
- /** Name */
74
- name?: string;
75
- }
76
- /**
77
- * Numbering instance (w:num)
78
- */
79
- interface NumberingInstance {
80
- /** Numbering ID (referenced by paragraphs) */
81
- numId: number;
82
- /** Reference to abstract numbering */
83
- abstractNumId: number;
84
- /** Level overrides */
85
- levelOverrides?: Array<{
86
- ilvl: number;
87
- startOverride?: number;
88
- lvl?: ListLevel;
89
- }>;
90
- }
91
- /**
92
- * Computed list marker for one paragraph — what the layout engine and
93
- * painter need to render the "1.", "a)", "•" prefix. Not part of the
94
- * wire format; the parser fills this from the `numbering.xml` chain plus
95
- * the paragraph's `numPr`. Paragraphs without list rendering omit it.
96
- */
97
- interface ListRendering {
98
- /** Computed marker text (e.g., "1.", "a)", "•") */
99
- marker: string;
100
- /** List level (0-8) */
101
- level: number;
102
- /** Numbering ID */
103
- numId: number;
104
- /** Whether this is a bullet or numbered list */
105
- isBullet: boolean;
106
- /** Number format type (decimal, lowerRoman, upperRoman, etc.) */
107
- numFmt?: NumberFormat;
108
- /** Whether the list marker is hidden (w:vanish on level rPr) */
109
- markerHidden?: boolean;
110
- /** Marker font family from numbering level rPr (ascii name) */
111
- markerFontFamily?: string;
112
- /** Marker font size from numbering level rPr, in points */
113
- markerFontSize?: number;
114
- /**
115
- * NumberFormat for each level from 0..ilvl (inclusive).
116
- * Used to resolve multi-level templates like "%1.%2." where each %N
117
- * may need a different format (e.g., upperRoman parent + decimal child).
118
- */
119
- levelNumFmts?: NumberFormat[];
120
- /** abstractNumId the paragraph's numId points to (counters key on this). */
121
- abstractNumId?: number;
122
- /**
123
- * Start value from the numId's lvlOverride for the paragraph's ilvl, if any.
124
- * Per ECMA-376 §17.9.18, this resets the shared abstractNum counter the
125
- * first time the numId appears.
126
- */
127
- startOverride?: number;
128
- }
129
- /**
130
- * Top-level numbering data from `numbering.xml` — the set of abstract
131
- * templates and the per-document `NumberingInstance`s that reference
132
- * them. Paragraphs reference a `numId` (instance), not an
133
- * `abstractNumId` directly.
134
- */
135
- interface NumberingDefinitions {
136
- /** Abstract numbering definitions */
137
- abstractNums: AbstractNumbering[];
138
- /** Numbering instances */
139
- nums: NumberingInstance[];
140
- }
141
-
142
- export type { AbstractNumbering as A, ListLevel as L, NumberingDefinitions as N, LevelSuffix as a, ListRendering as b, NumberFormat as c, NumberingInstance as d };