@eigenpal/docx-editor-core 1.1.0 → 1.2.1

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 (209) hide show
  1. package/dist/agent/index.d.mts +42 -6
  2. package/dist/agent/index.d.ts +42 -6
  3. package/dist/agent/index.js +1 -1
  4. package/dist/agent/index.mjs +1 -1
  5. package/dist/chunk-2EQGBVPV.js +2 -0
  6. package/dist/chunk-2XP6GLA4.mjs +1 -0
  7. package/dist/{chunk-CTHHUJAB.mjs → chunk-44JKHPGF.mjs} +1 -1
  8. package/dist/{chunk-J4J2Y6EU.js → chunk-4QEETB7U.js} +2 -2
  9. package/dist/{chunk-GFDIPDJ6.mjs → chunk-5BLQHXWK.mjs} +1 -1
  10. package/dist/{chunk-UOQT6A7P.js → chunk-5M7TI6TV.js} +1 -1
  11. package/dist/{chunk-7Z2AGPNQ.mjs → chunk-7BVHKWEW.mjs} +1 -1
  12. package/dist/chunk-7OW3VCZE.mjs +1 -0
  13. package/dist/chunk-7ZN4WI5N.mjs +4 -0
  14. package/dist/{chunk-GY5BWVM7.js → chunk-AMB6Y77B.js} +1 -1
  15. package/dist/{chunk-H42RXHT4.js → chunk-BXWOLARZ.js} +1 -1
  16. package/dist/chunk-C45EFOVP.js +1 -0
  17. package/dist/chunk-CCPBNE2F.mjs +2 -0
  18. package/dist/{chunk-5CDBSK2R.mjs → chunk-D62KS7QG.mjs} +1 -1
  19. package/dist/chunk-DI6CRWSW.mjs +1 -0
  20. package/dist/chunk-EQAORQC3.mjs +1 -0
  21. package/dist/chunk-FO6IX2DB.js +6 -0
  22. package/dist/chunk-FW23IMBF.mjs +1 -0
  23. package/dist/{chunk-BGE57OES.js → chunk-FYKRDDKG.js} +1 -1
  24. package/dist/chunk-GSKMHXHG.js +1 -0
  25. package/dist/{chunk-MZ2XCZAN.mjs → chunk-GUQFNJHE.mjs} +1 -1
  26. package/dist/chunk-ICE6NC3S.mjs +1 -0
  27. package/dist/chunk-IFUED5ZS.mjs +1 -0
  28. package/dist/chunk-ISKTBM4L.js +1 -0
  29. package/dist/{chunk-73AZQWIE.js → chunk-IYKBX24M.js} +1 -1
  30. package/dist/chunk-KGTEBLB6.js +1 -0
  31. package/dist/chunk-KOEWROYV.mjs +6 -0
  32. package/dist/{chunk-IF4C25FN.mjs → chunk-KRN6YSR2.mjs} +1 -1
  33. package/dist/chunk-KZXZWGFX.mjs +1 -0
  34. package/dist/chunk-L72YAV5N.js +3 -0
  35. package/dist/chunk-LK6I3HMH.mjs +0 -0
  36. package/dist/chunk-LWH66Q7Q.js +1 -0
  37. package/dist/{chunk-ONRBRDIC.mjs → chunk-MERJFGEP.mjs} +1 -1
  38. package/dist/chunk-PVAVS3IU.js +1 -0
  39. package/dist/{chunk-OUEKNYX5.mjs → chunk-QKLY4F2J.mjs} +1 -1
  40. package/dist/{chunk-LCICADWM.js → chunk-QYF7BRG3.js} +1 -1
  41. package/dist/chunk-RKDVY7I3.mjs +1 -0
  42. package/dist/chunk-ROG4MNOR.js +4 -0
  43. package/dist/{chunk-HV6HE6YR.js → chunk-SZIOF5SG.js} +3 -3
  44. package/dist/{chunk-W7GLQ6DV.js → chunk-THLJYXFB.js} +1 -1
  45. package/dist/{chunk-25KY5HLN.js → chunk-U4WUDHDK.js} +1 -1
  46. package/dist/{chunk-KGDXHUYC.js → chunk-U4XMGWF7.js} +1 -1
  47. package/dist/chunk-U67MWOPZ.mjs +1 -0
  48. package/dist/{chunk-LOCW6MR2.js → chunk-UGV4KRQB.js} +1 -1
  49. package/dist/chunk-VMRUBLPI.js +1 -0
  50. package/dist/chunk-WKUHYMDO.mjs +1 -0
  51. package/dist/chunk-WLDI6N3B.mjs +3 -0
  52. package/dist/chunk-WVERBZZU.js +1 -0
  53. package/dist/chunk-Z5MJYQSD.mjs +1 -0
  54. package/dist/chunk-ZBFNOJGY.js +1 -0
  55. package/dist/{content-5Mrz6w_b.d.mts → content-CE-ZdMwG.d.mts} +167 -109
  56. package/dist/{content-CmqAwdFL.d.ts → content-CYXJ2tfQ.d.ts} +167 -109
  57. package/dist/contentControlValues-DAwTWfgR.d.mts +187 -0
  58. package/dist/contentControlValues-gyVPsi6m.d.ts +187 -0
  59. package/dist/core-plugins.d.mts +1 -1
  60. package/dist/core-plugins.d.ts +1 -1
  61. package/dist/core-plugins.js +1 -1
  62. package/dist/core-plugins.mjs +1 -1
  63. package/dist/core.d.mts +6 -6
  64. package/dist/core.d.ts +6 -6
  65. package/dist/core.js +1 -1
  66. package/dist/core.mjs +1 -1
  67. package/dist/{documentSerializer-DgO3A9av.d.mts → documentSerializer-Bghq9rFI.d.mts} +1 -1
  68. package/dist/{documentSerializer-BRaaXIHm.d.ts → documentSerializer-C4lFC60P.d.ts} +1 -1
  69. package/dist/documentStyles-D87dxl18.d.mts +34 -0
  70. package/dist/documentStyles-DToJv9co.d.ts +34 -0
  71. package/dist/docx/index.d.mts +1 -1
  72. package/dist/docx/index.d.ts +1 -1
  73. package/dist/docx/index.js +1 -1
  74. package/dist/docx/index.mjs +1 -1
  75. package/dist/docx/parser.d.mts +1 -1
  76. package/dist/docx/parser.d.ts +1 -1
  77. package/dist/docx/parser.js +1 -1
  78. package/dist/docx/parser.mjs +1 -1
  79. package/dist/docx/rezip.d.mts +1 -1
  80. package/dist/docx/rezip.d.ts +1 -1
  81. package/dist/docx/rezip.js +1 -1
  82. package/dist/docx/rezip.mjs +1 -1
  83. package/dist/docx/serializer/index.d.mts +2 -2
  84. package/dist/docx/serializer/index.d.ts +2 -2
  85. package/dist/docx/serializer/index.js +1 -1
  86. package/dist/docx/serializer/index.mjs +1 -1
  87. package/dist/{fontLoader-CK2QLq68.d.ts → fontLoader-Cm02v7PO.d.ts} +1 -1
  88. package/dist/{fontLoader-8b4X-AIh.d.mts → fontLoader-Z7pqeNvZ.d.mts} +1 -1
  89. package/dist/{headerFooterLayout-Ca4ESDHF.d.ts → headerFooterLayout-Bd58Tum3.d.ts} +1 -1
  90. package/dist/{headerFooterLayout-72Vz7yp3.d.mts → headerFooterLayout-CuIJiIzi.d.mts} +1 -1
  91. package/dist/headless.d.mts +5 -4
  92. package/dist/headless.d.ts +5 -4
  93. package/dist/headless.js +1 -1
  94. package/dist/headless.mjs +1 -1
  95. package/dist/layout-bridge/index.d.mts +2 -2
  96. package/dist/layout-bridge/index.d.ts +2 -2
  97. package/dist/layout-bridge/index.js +1 -1
  98. package/dist/layout-bridge/index.mjs +1 -1
  99. package/dist/layout-bridge/measuring/index.d.mts +1 -1
  100. package/dist/layout-bridge/measuring/index.d.ts +1 -1
  101. package/dist/layout-bridge/tableInsertHover.js +1 -1
  102. package/dist/layout-bridge/tableInsertHover.mjs +1 -1
  103. package/dist/layout-bridge/toFlowBlocks.d.mts +1 -1
  104. package/dist/layout-bridge/toFlowBlocks.d.ts +1 -1
  105. package/dist/layout-bridge/toFlowBlocks.js +1 -1
  106. package/dist/layout-bridge/toFlowBlocks.mjs +1 -1
  107. package/dist/layout-engine/index.d.mts +2 -2
  108. package/dist/layout-engine/index.d.ts +2 -2
  109. package/dist/layout-engine/types.d.mts +31 -2
  110. package/dist/layout-engine/types.d.ts +31 -2
  111. package/dist/layout-painter/index.d.mts +4 -3
  112. package/dist/layout-painter/index.d.ts +4 -3
  113. package/dist/layout-painter/index.js +1 -1
  114. package/dist/layout-painter/index.mjs +1 -1
  115. package/dist/layout-painter/renderPage.d.mts +40 -3
  116. package/dist/layout-painter/renderPage.d.ts +40 -3
  117. package/dist/layout-painter/renderPage.js +1 -1
  118. package/dist/layout-painter/renderPage.mjs +1 -1
  119. package/dist/managers/AutoSaveManager.d.mts +1 -1
  120. package/dist/managers/AutoSaveManager.d.ts +1 -1
  121. package/dist/managers/TableSelectionManager.d.mts +1 -1
  122. package/dist/managers/TableSelectionManager.d.ts +1 -1
  123. package/dist/managers/types.d.mts +1 -1
  124. package/dist/managers/types.d.ts +1 -1
  125. package/dist/mcp-cli.mjs +23 -23
  126. package/dist/mcp.d.mts +1 -1
  127. package/dist/mcp.d.ts +1 -1
  128. package/dist/mcp.js +3 -3
  129. package/dist/mcp.mjs +1 -1
  130. package/dist/{nodes-CC_nwkT_.d.ts → nodes-BNkRKBBX.d.ts} +1 -1
  131. package/dist/{nodes-7753Bgi_.d.mts → nodes-Bz-UHhLE.d.mts} +1 -1
  132. package/dist/prosemirror/commands/formatting.js +1 -1
  133. package/dist/prosemirror/commands/formatting.mjs +1 -1
  134. package/dist/prosemirror/commands/index.js +1 -1
  135. package/dist/prosemirror/commands/index.mjs +1 -1
  136. package/dist/prosemirror/commands/paragraph.js +1 -1
  137. package/dist/prosemirror/commands/paragraph.mjs +1 -1
  138. package/dist/prosemirror/conversion/fromProseDoc.d.mts +2 -2
  139. package/dist/prosemirror/conversion/fromProseDoc.d.ts +2 -2
  140. package/dist/prosemirror/conversion/fromProseDoc.js +1 -1
  141. package/dist/prosemirror/conversion/fromProseDoc.mjs +1 -1
  142. package/dist/prosemirror/conversion/index.d.mts +3 -3
  143. package/dist/prosemirror/conversion/index.d.ts +3 -3
  144. package/dist/prosemirror/conversion/index.js +1 -1
  145. package/dist/prosemirror/conversion/index.mjs +1 -1
  146. package/dist/prosemirror/editor.css +147 -0
  147. package/dist/prosemirror/extensions/index.js +1 -1
  148. package/dist/prosemirror/extensions/index.mjs +1 -1
  149. package/dist/prosemirror/index.d.mts +94 -6
  150. package/dist/prosemirror/index.d.ts +94 -6
  151. package/dist/prosemirror/index.js +3 -1
  152. package/dist/prosemirror/index.mjs +3 -1
  153. package/dist/prosemirror/plugins/index.d.mts +4 -1
  154. package/dist/prosemirror/plugins/index.d.ts +4 -1
  155. package/dist/prosemirror/plugins/index.js +1 -1
  156. package/dist/prosemirror/plugins/index.mjs +1 -1
  157. package/dist/prosemirror/schema/index.d.mts +2 -2
  158. package/dist/prosemirror/schema/index.d.ts +2 -2
  159. package/dist/prosemirror/schema/index.js +1 -1
  160. package/dist/prosemirror/schema/index.mjs +1 -1
  161. package/dist/prosemirror/styles/index.d.mts +9 -0
  162. package/dist/prosemirror/styles/index.d.ts +9 -0
  163. package/dist/prosemirror/styles/index.js +1 -1
  164. package/dist/prosemirror/styles/index.mjs +1 -1
  165. package/dist/prosemirror/utils/extractTrackedChanges.d.mts +1 -1
  166. package/dist/prosemirror/utils/extractTrackedChanges.d.ts +1 -1
  167. package/dist/types/content.d.mts +1 -1
  168. package/dist/types/content.d.ts +1 -1
  169. package/dist/types/document.d.mts +2 -2
  170. package/dist/types/document.d.ts +2 -2
  171. package/dist/utils/comments.d.mts +1 -1
  172. package/dist/utils/comments.d.ts +1 -1
  173. package/dist/utils/index.d.mts +2 -2
  174. package/dist/utils/index.d.ts +2 -2
  175. package/dist/{variableDetector-DF3-nxUC.d.mts → variableDetector-C7BLz9sJ.d.mts} +1 -1
  176. package/dist/{variableDetector-sBkgVh3f.d.ts → variableDetector-HPZbJ_gw.d.ts} +1 -1
  177. package/package.json +1 -1
  178. package/dist/chunk-CA2EYL6T.mjs +0 -1
  179. package/dist/chunk-D4RPOJC7.js +0 -1
  180. package/dist/chunk-DLCDDB66.mjs +0 -3
  181. package/dist/chunk-F44ZLDZS.js +0 -4
  182. package/dist/chunk-FEWCI2E5.mjs +0 -1
  183. package/dist/chunk-FWTP7BN7.mjs +0 -4
  184. package/dist/chunk-GM4USWKO.js +0 -2
  185. package/dist/chunk-GWBVJZVT.js +0 -3
  186. package/dist/chunk-HMBVSDCH.mjs +0 -1
  187. package/dist/chunk-ILJUDEZ5.mjs +0 -1
  188. package/dist/chunk-IP2VXNWG.js +0 -1
  189. package/dist/chunk-IQG3KLWY.mjs +0 -2
  190. package/dist/chunk-KHF4JU7D.mjs +0 -1
  191. package/dist/chunk-LBKMYD3M.mjs +0 -1
  192. package/dist/chunk-MZOVDLYL.js +0 -1
  193. package/dist/chunk-NBLJPT54.mjs +0 -1
  194. package/dist/chunk-OAWTQ3IY.js +0 -1
  195. package/dist/chunk-OCAX2KJQ.js +0 -4
  196. package/dist/chunk-ONWOHAFW.mjs +0 -1
  197. package/dist/chunk-OX75Q5ZG.mjs +0 -1
  198. package/dist/chunk-Q4CKLXWA.js +0 -1
  199. package/dist/chunk-RFC2SXZ6.mjs +0 -4
  200. package/dist/chunk-RFVFX5WK.mjs +0 -1
  201. package/dist/chunk-V5VDCQDN.mjs +0 -1
  202. package/dist/chunk-VHUVPHPI.mjs +0 -1
  203. package/dist/chunk-VQWZHPWI.mjs +0 -1
  204. package/dist/chunk-X6HFDXKB.js +0 -1
  205. package/dist/chunk-Y3ZQQI4D.js +0 -1
  206. package/dist/chunk-YTDWMXNS.js +0 -1
  207. package/dist/chunk-ZUGNF5KU.js +0 -1
  208. /package/dist/{chunk-U74VPTIU.js → chunk-53VKL6CG.js} +0 -0
  209. /package/dist/{chunk-FDEDN2RC.mjs → chunk-DTTWBKGN.mjs} +0 -0
@@ -0,0 +1,3 @@
1
+ import {a as a$1}from'./chunk-LE67NTCN.mjs';function a(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}function s(e){return e==null||!Number.isFinite(e)?"0":String(Math.round(e))}function be(e,t){if(!e||e.style==="none"||e.style==="nil")return "";let n=[`w:val="${e.style}"`];return e.size!==void 0&&n.push(`w:sz="${s(e.size)}"`),e.space!==void 0&&n.push(`w:space="${s(e.space)}"`),e.color&&(e.color.auto?n.push('w:color="auto"'):e.color.rgb&&n.push(`w:color="${e.color.rgb}"`),e.color.themeColor&&n.push(`w:themeColor="${e.color.themeColor}"`),e.color.themeTint&&n.push(`w:themeTint="${e.color.themeTint}"`),e.color.themeShade&&n.push(`w:themeShade="${e.color.themeShade}"`)),e.shadow&&n.push('w:shadow="true"'),e.frame&&n.push('w:frame="true"'),`<w:${t} ${n.join(" ")}/>`}var Ce=["top","left","bottom","right","between","bar"];function O(e){if(!e)return "";let t=[];for(let n of Ce){let r=be(e[n],n);r&&t.push(r);}return t.length===0?"":`<w:pBdr>${t.join("")}</w:pBdr>`}function N(e){if(!e)return "";let t=[];return e.pattern?t.push(`w:val="${e.pattern}"`):t.push('w:val="clear"'),e.color?.rgb?t.push(`w:color="${e.color.rgb}"`):e.color?.auto&&t.push('w:color="auto"'),e.fill?.rgb?t.push(`w:fill="${e.fill.rgb}"`):e.fill?.auto&&t.push('w:fill="auto"'),e.fill?.themeColor&&t.push(`w:themeFill="${e.fill.themeColor}"`),e.fill?.themeTint&&t.push(`w:themeFillTint="${e.fill.themeTint}"`),e.fill?.themeShade&&t.push(`w:themeFillShade="${e.fill.themeShade}"`),t.length===0?"":`<w:shd ${t.join(" ")}/>`}function W(e){return !e||e.length===0?"":`<w:tabs>${e.map(n=>{let r=[`w:val="${n.alignment}"`,`w:pos="${s(n.position)}"`];return n.leader&&n.leader!=="none"&&r.push(`w:leader="${n.leader}"`),`<w:tab ${r.join(" ")}/>`}).join("")}</w:tabs>`}function G(e){let t=[];return e.spaceBefore!==void 0&&t.push(`w:before="${s(e.spaceBefore)}"`),e.spaceAfter!==void 0&&t.push(`w:after="${s(e.spaceAfter)}"`),e.lineSpacing!==void 0&&t.push(`w:line="${s(e.lineSpacing)}"`),e.lineSpacingRule&&t.push(`w:lineRule="${e.lineSpacingRule}"`),e.beforeAutospacing&&t.push('w:beforeAutospacing="1"'),e.afterAutospacing&&t.push('w:afterAutospacing="1"'),t.length===0?"":`<w:spacing ${t.join(" ")}/>`}function V(e){let t=[];return e.indentLeft!==void 0&&t.push(`w:left="${s(e.indentLeft)}"`),e.indentRight!==void 0&&t.push(`w:right="${s(e.indentRight)}"`),e.indentFirstLine!==void 0&&(e.hangingIndent?t.push(`w:hanging="${s(Math.abs(e.indentFirstLine))}"`):e.indentFirstLine!==0&&t.push(`w:firstLine="${s(e.indentFirstLine)}"`)),t.length===0?"":`<w:ind ${t.join(" ")}/>`}function U(e){if(!e)return "";let t=[];return e.ilvl!==void 0&&t.push(`<w:ilvl w:val="${s(e.ilvl)}"/>`),e.numId!==void 0&&t.push(`<w:numId w:val="${s(e.numId)}"/>`),t.length===0?"":`<w:numPr>${t.join("")}</w:numPr>`}function _(e){if(!e)return "";let t=[];return e.width!==void 0&&t.push(`w:w="${s(e.width)}"`),e.height!==void 0&&t.push(`w:h="${s(e.height)}"`),e.hAnchor&&t.push(`w:hAnchor="${e.hAnchor}"`),e.vAnchor&&t.push(`w:vAnchor="${e.vAnchor}"`),e.x!==void 0&&t.push(`w:x="${s(e.x)}"`),e.y!==void 0&&t.push(`w:y="${s(e.y)}"`),e.xAlign&&t.push(`w:xAlign="${e.xAlign}"`),e.yAlign&&t.push(`w:yAlign="${e.yAlign}"`),e.wrap&&t.push(`w:wrap="${e.wrap}"`),t.length===0?"":`<w:framePr ${t.join(" ")}/>`}function Y(e){let t=[`w:id="${e.id}"`,`w:name="${a(e.name)}"`];return e.colFirst!==void 0&&t.push(`w:colFirst="${e.colFirst}"`),e.colLast!==void 0&&t.push(`w:colLast="${e.colLast}"`),`<w:bookmarkStart ${t.join(" ")}/>`}function Z(e){return `<w:bookmarkEnd w:id="${e.id}"/>`}function M(e){let t=[];e.rId&&t.push(`r:id="${e.rId}"`),e.anchor&&t.push(`w:anchor="${a(e.anchor)}"`),e.tooltip&&t.push(`w:tooltip="${a(e.tooltip)}"`),e.target&&t.push(`w:tgtFrame="${a(e.target)}"`),e.history===false&&t.push('w:history="0"'),e.docLocation&&t.push(`w:docLocation="${a(e.docLocation)}"`);let n=e.children.map(i=>i.type==="run"?x(i):i.type==="bookmarkStart"?Y(i):i.type==="bookmarkEnd"?Z(i):"").join("");return `<w:hyperlink${t.length>0?" "+t.join(" "):""}>${n}</w:hyperlink>`}function J(e){let t=[],n=e.content.find(c=>c.type==="run"),r=n?.formatting?C(n.formatting):"",i=['w:fldCharType="begin"'];e.fldLock&&i.push('w:fldLock="true"'),t.push(`<w:r>${r}<w:fldChar ${i.join(" ")}/></w:r>`);let l=e.instruction.startsWith(" ")||e.instruction.endsWith(" ")||e.instruction.includes(" ")?' xml:space="preserve"':"";t.push(`<w:r>${r}<w:instrText${l}>${a(e.instruction)}</w:instrText></w:r>`),t.push(`<w:r>${r}<w:fldChar w:fldCharType="separate"/></w:r>`);for(let c of e.content)c.type==="run"&&t.push(x(c));return t.push(`<w:r>${r}<w:fldChar w:fldCharType="end"/></w:r>`),t.join("")}function K(e){let t=[],n=e.fieldResult?.[0]?.formatting,r=n?C(n):"",i=['w:fldCharType="begin"'];if(e.fldLock&&i.push('w:fldLock="true"'),t.push(`<w:r>${r}<w:fldChar ${i.join(" ")}/></w:r>`),e.fieldCode.length>0)t.push(...e.fieldCode.map(o=>x(o)));else {let l=e.instruction.startsWith(" ")||e.instruction.endsWith(" ")||e.instruction.includes(" ")?' xml:space="preserve"':"";t.push(`<w:r>${r}<w:instrText${l}>${a(e.instruction)}</w:instrText></w:r>`);}return t.push(`<w:r>${r}<w:fldChar w:fldCharType="separate"/></w:r>`),t.push(...e.fieldResult.map(o=>x(o))),t.push(`<w:r>${r}<w:fldChar w:fldCharType="end"/></w:r>`),t.join("")}function Q(e){let t=e.properties,n=[];switch(t.alias&&n.push(`<w:alias w:val="${a(t.alias)}"/>`),t.tag&&n.push(`<w:tag w:val="${a(t.tag)}"/>`),t.lock&&t.lock!=="unlocked"&&n.push(`<w:lock w:val="${t.lock}"/>`),t.showingPlaceholder&&n.push("<w:showingPlcHdr/>"),t.sdtType){case "plainText":n.push("<w:text/>");break;case "date":t.dateFormat?n.push(`<w:date w:fullDate="${a(t.dateFormat)}"/>`):n.push("<w:date/>");break;case "dropDownList":{let i=(t.listItems??[]).map(o=>`<w:listItem w:displayText="${a(o.displayText)}" w:value="${a(o.value)}"/>`).join("");n.push(`<w:dropDownList>${i}</w:dropDownList>`);break}case "comboBox":{let i=(t.listItems??[]).map(o=>`<w:listItem w:displayText="${a(o.displayText)}" w:value="${a(o.value)}"/>`).join("");n.push(`<w:comboBox>${i}</w:comboBox>`);break}case "checkbox":n.push(`<w14:checkbox><w14:checked w14:val="${t.checked?"1":"0"}"/></w14:checkbox>`);break;case "picture":n.push("<w:picture/>");break}let r=e.content.map(i=>{switch(i.type){case "run":return x(i);case "hyperlink":return M(i);case "simpleField":return J(i);case "complexField":return K(i);case "inlineSdt":return Q(i);case "mathEquation":return i.ommlXml||"";default:return i}}).join("");return `<w:sdt><w:sdtPr>${n.join("")}</w:sdtPr><w:sdtContent>${r}</w:sdtContent></w:sdt>`}function q(e,t){let n=[`w:id="${t.id}"`,`w:name="${a(t.name)}"`];return `<w:${e} ${n.join(" ")}/>`}function z(e,t){let n=t.info,r=Number.isInteger(n.id)&&n.id>=0?n.id:0,i=typeof n.author=="string"?n.author.trim():"",o=i.length>0?i:"Unknown",l=typeof n.date=="string"?n.date.trim():void 0,c=[`w:id="${r}"`,`w:author="${a(o)}"`];l&&c.push(`w:date="${a(l)}"`);let u=t.content.map(f=>{if(f.type==="run"){let p=x(f),d=f.content.some(m=>m.type==="drawing");return (e==="del"||e==="moveFrom")&&!d?p.replace(/<w:t\b/g,"<w:delText").replace(/<\/w:t>/g,"</w:delText>").replace(/<w:instrText\b/g,"<w:delInstrText").replace(/<\/w:instrText>/g,"</w:delInstrText>"):p}return f.type==="hyperlink"?M(f):""}).join("");return `<w:${e} ${c.join(" ")}>${u}</w:${e}>`}function ee(e){switch(e.type){case "run":return x(e);case "hyperlink":return M(e);case "bookmarkStart":return Y(e);case "bookmarkEnd":return Z(e);case "simpleField":return J(e);case "complexField":return K(e);case "inlineSdt":return Q(e);case "commentRangeStart":return `<w:commentRangeStart w:id="${e.id}"/>`;case "commentRangeEnd":return `<w:commentRangeEnd w:id="${e.id}"/><w:r><w:rPr><w:rStyle w:val="CommentReference"/></w:rPr><w:commentReference w:id="${e.id}"/></w:r>`;case "insertion":return z("ins",e);case "deletion":return z("del",e);case "moveFrom":return z("moveFrom",e);case "moveTo":return z("moveTo",e);case "moveFromRangeStart":return q("moveFromRangeStart",e);case "moveFromRangeEnd":return `<w:moveFromRangeEnd w:id="${e.id}"/>`;case "moveToRangeStart":return q("moveToRangeStart",e);case "moveToRangeEnd":return `<w:moveToRangeEnd w:id="${e.id}"/>`;case "mathEquation":return e.ommlXml||"";default:return ""}}function te(e){let t=Number.isInteger(e.id)&&e.id>=0?e.id:0,n=typeof e.author=="string"&&e.author.length>0?e.author:"Unknown",r=[`w:id="${t}"`,`w:author="${a(n)}"`],i=typeof e.date=="string"&&e.date.length>0?e.date:void 0;return i&&r.push(`w:date="${a(i)}"`),r.join(" ")}function Te(e,t,n){let r=[];if(t&&r.push(`<w:ins ${te(t)}/>`),n&&r.push(`<w:del ${te(n)}/>`),e?.runProperties){let i=C(e.runProperties);if(i)if(i.startsWith("<w:rPr>")&&i.endsWith("</w:rPr>")){let o=i.slice(7,-8);o.length>0&&r.push(o);}else i.startsWith("<w:rPr/>")||r.push(i);}return r.length===0?"":`<w:rPr>${r.join("")}</w:rPr>`}function ne(e,t,n,r,i){let o=[];if(e){e.styleId&&o.push(`<w:pStyle w:val="${a(e.styleId)}"/>`),e.keepNext&&o.push("<w:keepNext/>"),e.keepLines&&o.push("<w:keepLines/>"),e.contextualSpacing&&o.push("<w:contextualSpacing/>"),e.pageBreakBefore&&o.push("<w:pageBreakBefore/>");let l=_(e.frame);l&&o.push(l),e.widowControl===false?o.push('<w:widowControl w:val="0"/>'):e.widowControl===true&&o.push("<w:widowControl/>");let c=U(e.numPr);c&&o.push(c);let u=O(e.borders);u&&o.push(u);let f=N(e.shading);f&&o.push(f);let p=W(e.tabs);p&&o.push(p),e.suppressLineNumbers&&o.push("<w:suppressLineNumbers/>"),e.suppressAutoHyphens&&o.push("<w:suppressAutoHyphens/>");let d=G(e);d&&o.push(d);let m=V(e);m&&o.push(m),e.bidi&&o.push("<w:bidi/>"),e.alignment&&o.push(`<w:jc w:val="${e.alignment}"/>`),e.outlineLevel!==void 0&&o.push(`<w:outlineLvl w:val="${e.outlineLevel}"/>`);}if(!i?.baseOnly){let l=Te(e,n??void 0,r??void 0);l&&o.push(l),t&&t.length>0&&o.push(Se(t[0]));}return o.length===0?"":`<w:pPr>${o.join("")}</w:pPr>`}function ve(e){return !e.startsWith("<w:pPr>")||!e.endsWith("</w:pPr>")?"":e.slice(7,-8)}function Se(e){let t=Number.isInteger(e.info.id)&&e.info.id>=0?e.info.id:0,n=typeof e.info.author=="string"?e.info.author.trim():"",r=n.length>0?n:"Unknown",i=typeof e.info.date=="string"?e.info.date.trim():void 0,o=[`w:id="${t}"`,`w:author="${a(r)}"`];i&&o.push(`w:date="${a(i)}"`);let l=ne(e.previousFormatting,void 0,void 0,void 0,{baseOnly:true})||"<w:pPr/>",c=ve(l),u=c.length>0?`<w:pPr>${c}</w:pPr>`:"<w:pPr/>";return `<w:pPrChange ${o.join(" ")}>${u}</w:pPrChange>`}function y(e){let t=[],n=[];e.paraId&&n.push(`w14:paraId="${e.paraId}"`),e.textId&&n.push(`w14:textId="${e.textId}"`);let r=n.length>0?" "+n.join(" "):"",i=ne(e.formatting,e.propertyChanges,e.pPrIns,e.pPrDel);i&&t.push(i);let o=!!e.renderedPageBreakBefore;for(let l of e.content){let c=ee(l);if(c){if(o){let u=Fe(c);u&&(c=u,o=false);}t.push(c);}}return `<w:p${r}>${t.join("")}</w:p>`}function Fe(e){let t=/<w:r(?=[\s>/])[^>]*>/;return t.test(e)?e.replace(t,n=>`${n}<w:lastRenderedPageBreak/>`):null}var re=1e5;function H(){re=1e5;}function ie(e){return e!=null&&e!==""&&e!==0?String(e):String(re++)}function L(e){if(!e)return "";if(e.rgb)return `<a:srgbClr val="${e.rgb.replace("#","")}"/>`;if(e.themeColor){let t=`<a:schemeClr val="${e.themeColor}"`;return e.themeTint?t+=`><a:tint val="${e.themeTint}"/></a:schemeClr>`:e.themeShade?t+=`><a:shade val="${e.themeShade}"/></a:schemeClr>`:t+="/>",t}return ""}function ze(e){if(!e||e.type==="none")return "<a:noFill/>";if(e.type==="solid"&&e.color)return `<a:solidFill>${L(e.color)}</a:solidFill>`;if(e.type==="gradient"&&e.gradient){let t=e.gradient,n=t.stops.map(i=>`<a:gs pos="${i.position}">${L(i.color)}</a:gs>`).join(""),r=t.type==="linear"?`<a:lin ang="${(t.angle||0)*6e4}" scaled="1"/>`:"";return `<a:gradFill><a:gsLst>${n}</a:gsLst>${r}</a:gradFill>`}return ""}function oe(e){if(!e)return "";let t=[];e.width!=null&&t.push(`w="${e.width}"`),e.cap&&t.push(`cap="${e.cap}"`);let n=[];return e.color&&n.push(`<a:solidFill>${L(e.color)}</a:solidFill>`),e.style&&e.style!=="solid"&&n.push(`<a:prstDash val="${e.style}"/>`),e.headEnd&&n.push(`<a:headEnd type="${e.headEnd.type}"${e.headEnd.width?` w="${e.headEnd.width}"`:""}${e.headEnd.length?` len="${e.headEnd.length}"`:""}/>`),e.tailEnd&&n.push(`<a:tailEnd type="${e.tailEnd.type}"${e.tailEnd.width?` w="${e.tailEnd.width}"`:""}${e.tailEnd.length?` len="${e.tailEnd.length}"`:""}/>`),n.length===0&&t.length===0?"":`<a:ln${t.length?" "+t.join(" "):""}>${n.join("")}</a:ln>`}function se(e){let t=[],n=e.horizontal;t.push(`<wp:positionH relativeFrom="${n.relativeTo}">`),n.alignment?t.push(`<wp:align>${n.alignment}</wp:align>`):t.push(`<wp:posOffset>${s(n.posOffset)}</wp:posOffset>`),t.push("</wp:positionH>");let r=e.vertical;return t.push(`<wp:positionV relativeFrom="${r.relativeTo}">`),r.alignment?t.push(`<wp:align>${r.alignment}</wp:align>`):t.push(`<wp:posOffset>${s(r.posOffset)}</wp:posOffset>`),t.push("</wp:positionV>"),t.join("")}function ae(e){let t=e.wrapText?` wrapText="${e.wrapText}"`:' wrapText="bothSides"';switch(e.type){case "square":return `<wp:wrapSquare${t}/>`;case "tight":return `<wp:wrapTight${t}><wp:wrapPolygon edited="0"><wp:start x="0" y="0"/><wp:lineTo x="0" y="21600"/><wp:lineTo x="21600" y="21600"/><wp:lineTo x="21600" y="0"/><wp:lineTo x="0" y="0"/></wp:wrapPolygon></wp:wrapTight>`;case "through":return `<wp:wrapThrough${t}><wp:wrapPolygon edited="0"><wp:start x="0" y="0"/><wp:lineTo x="0" y="21600"/><wp:lineTo x="21600" y="21600"/><wp:lineTo x="21600" y="0"/><wp:lineTo x="0" y="0"/></wp:wrapPolygon></wp:wrapThrough>`;case "topAndBottom":return "<wp:wrapTopAndBottom/>";case "behind":case "inFront":return "<wp:wrapNone/>";default:return "<wp:wrapNone/>"}}function Re(e,t){let n=e.size.width,r=e.size.height,i=e.rId||"rId1",o=t,l=e.filename||`image${o}`,c="";e.transform?.rotation&&(c+=` rot="${Math.round(e.transform.rotation*6e4)}"`),e.transform?.flipH&&(c+=' flipH="1"'),e.transform?.flipV&&(c+=' flipV="1"');let u=e.opacity!==void 0&&e.opacity<1?`<a:alphaModFix amt="${Math.round(Math.max(0,Math.min(1,e.opacity))*1e5)}"/>`:"",f=u?`<a:blip r:embed="${i}">${u}</a:blip>`:`<a:blip r:embed="${i}"/>`,p=[];e.crop?.left&&p.push(`l="${Math.round(e.crop.left*1e5)}"`),e.crop?.top&&p.push(`t="${Math.round(e.crop.top*1e5)}"`),e.crop?.right&&p.push(`r="${Math.round(e.crop.right*1e5)}"`),e.crop?.bottom&&p.push(`b="${Math.round(e.crop.bottom*1e5)}"`);let d=p.length>0?`<a:srcRect ${p.join(" ")}/>`:"";return ['<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">','<a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture">','<pic:pic xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture">',"<pic:nvPicPr>",`<pic:cNvPr id="${o}" name="${a(l)}"${e.alt?` descr="${a(e.alt)}"`:""}/>`,"<pic:cNvPicPr/>","</pic:nvPicPr>","<pic:blipFill>",f,d,"<a:stretch><a:fillRect/></a:stretch>","</pic:blipFill>","<pic:spPr>",`<a:xfrm${c}>`,'<a:off x="0" y="0"/>',`<a:ext cx="${s(n)}" cy="${s(r)}"/>`,"</a:xfrm>",'<a:prstGeom prst="rect"><a:avLst/></a:prstGeom>',e.outline?oe(e.outline):"","</pic:spPr>","</pic:pic>","</a:graphicData>","</a:graphic>"].join("")}function ce(e){let t=e.image,n=t.wrap.type!=="inline",r=t.size.width,i=t.size.height,o=t.wrap.distT??0,l=t.wrap.distB??0,c=t.wrap.distL??0,u=t.wrap.distR??0,f=t.padding?.left??0,p=t.padding?.top??0,d=t.padding?.right??0,m=t.padding?.bottom??0,F=`<wp:effectExtent l="${s(f)}" t="${s(p)}" r="${s(d)}" b="${s(m)}"/>`,g=ie(t.id),B=t.title||t.filename||`Picture ${g}`,v=Re(t,g);if(!n)return ["<w:drawing>",`<wp:inline distT="${s(o)}" distB="${s(l)}" distL="${s(c)}" distR="${s(u)}">`,`<wp:extent cx="${s(r)}" cy="${s(i)}"/>`,F,`<wp:docPr id="${g}" name="${a(B)}"${t.alt?` descr="${a(t.alt)}"`:""}${t.decorative?' hidden="1"':""}/>`,'<wp:cNvGraphicFramePr><a:graphicFrameLocks xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" noChangeAspect="1"/></wp:cNvGraphicFramePr>',v,"</wp:inline>","</w:drawing>"].join("");let A=t.wrap.type==="behind"?"1":"0",D=t.position?se(t.position):'<wp:positionH relativeFrom="column"><wp:posOffset>0</wp:posOffset></wp:positionH><wp:positionV relativeFrom="paragraph"><wp:posOffset>0</wp:posOffset></wp:positionV>',X=ae(t.wrap);return ["<w:drawing>",`<wp:anchor distT="${s(o)}" distB="${s(l)}" distL="${s(c)}" distR="${s(u)}" simplePos="0" relativeHeight="251658240" behindDoc="${A}" locked="0" layoutInCell="${t.layoutInCell===false?"0":"1"}" allowOverlap="${t.allowOverlap===false?"0":"1"}">`,'<wp:simplePos x="0" y="0"/>',D,`<wp:extent cx="${s(r)}" cy="${s(i)}"/>`,F,X,`<wp:docPr id="${g}" name="${a(B)}"${t.alt?` descr="${a(t.alt)}"`:""}/>`,'<wp:cNvGraphicFramePr><a:graphicFrameLocks xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" noChangeAspect="1"/></wp:cNvGraphicFramePr>',v,"</wp:anchor>","</w:drawing>"].join("")}function Ie(e){return e.map(t=>y(t)).join("")}function le(e){let t=e.shape,n=t.size.width,r=t.size.height,i=t.shapeType==="textBox",o=t.wrap&&t.wrap.type!=="inline",l=t.wrap?.distT??0,c=t.wrap?.distB??0,u=t.wrap?.distL??0,f=t.wrap?.distR??0,p=ie(t.id),d=t.name||(i?`TextBox ${p}`:`Shape ${p}`),m="";t.transform?.rotation&&(m+=` rot="${Math.round(t.transform.rotation*6e4)}"`),t.transform?.flipH&&(m+=' flipH="1"'),t.transform?.flipV&&(m+=' flipV="1"');let F=["<wps:spPr>",`<a:xfrm${m}>`,'<a:off x="0" y="0"/>',`<a:ext cx="${s(n)}" cy="${s(r)}"/>`,"</a:xfrm>",`<a:prstGeom prst="${t.shapeType==="textBox"?"rect":t.shapeType}"><a:avLst/></a:prstGeom>`,ze(t.fill),oe(t.outline),"</wps:spPr>"].join(""),g="";if(t.textBody){let w=t.textBody,$=['rot="0"','vert="horz"'];w.anchor&&$.push(`anchor="${w.anchor==="middle"?"ctr":w.anchor}"`),w.anchorCenter&&$.push('anchorCtr="1"'),w.margins&&(w.margins.left!=null&&$.push(`lIns="${s(w.margins.left)}"`),w.margins.top!=null&&$.push(`tIns="${s(w.margins.top)}"`),w.margins.right!=null&&$.push(`rIns="${s(w.margins.right)}"`),w.margins.bottom!=null&&$.push(`bIns="${s(w.margins.bottom)}"`)),i?g=["<wps:txbx><w:txbxContent>",Ie(w.content),"</w:txbxContent></wps:txbx>",`<wps:bodyPr ${$.join(" ")}/>`].join(""):g=[`<wps:bodyPr ${$.join(" ")}/>`].join("");}let v=['<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">','<a:graphicData uri="http://schemas.microsoft.com/office/word/2010/wordprocessingShape">',["<wps:wsp>",`<wps:cNvSpPr${i?' txBox="1"':""}/>`,F,g,"</wps:wsp>"].join(""),"</a:graphicData>","</a:graphic>"].join("");if(!o)return ["<w:drawing>",`<wp:inline distT="${s(l)}" distB="${s(c)}" distL="${s(u)}" distR="${s(f)}">`,`<wp:extent cx="${s(n)}" cy="${s(r)}"/>`,'<wp:effectExtent l="0" t="0" r="0" b="0"/>',`<wp:docPr id="${p}" name="${a(d)}"/>`,"<wp:cNvGraphicFramePr/>",v,"</wp:inline>","</w:drawing>"].join("");let A=t.wrap?.type==="behind"?"1":"0",D=t.position?se(t.position):'<wp:positionH relativeFrom="column"><wp:posOffset>0</wp:posOffset></wp:positionH><wp:positionV relativeFrom="paragraph"><wp:posOffset>0</wp:posOffset></wp:positionV>',X=ae(t.wrap);return ["<w:drawing>",`<wp:anchor distT="${s(l)}" distB="${s(c)}" distL="${s(u)}" distR="${s(f)}" simplePos="0" relativeHeight="251658240" behindDoc="${A}" locked="0" layoutInCell="1" allowOverlap="1">`,'<wp:simplePos x="0" y="0"/>',D,`<wp:extent cx="${s(n)}" cy="${s(r)}"/>`,'<wp:effectExtent l="0" t="0" r="0" b="0"/>',X,`<wp:docPr id="${p}" name="${a(d)}"/>`,"<wp:cNvGraphicFramePr/>",v,"</wp:anchor>","</w:drawing>"].join("")}var ke=new Set(["black","blue","cyan","darkBlue","darkCyan","darkGray","darkGreen","darkMagenta","darkRed","darkYellow","green","lightGray","magenta","red","white","yellow"]);function je(e){if(!e)return "";let t=[];return e.auto?t.push('w:val="auto"'):e.rgb&&t.push(`w:val="${e.rgb}"`),e.themeColor&&t.push(`w:themeColor="${e.themeColor}"`),e.themeTint&&t.push(`w:themeTint="${e.themeTint}"`),e.themeShade&&t.push(`w:themeShade="${e.themeShade}"`),t.length===0?"":`<w:color ${t.join(" ")}/>`}function Be(e){if(!e)return "";let t=[];return e.pattern?t.push(`w:val="${e.pattern}"`):t.push('w:val="clear"'),e.color?.rgb?t.push(`w:color="${e.color.rgb}"`):e.color?.auto&&t.push('w:color="auto"'),e.fill?.rgb?t.push(`w:fill="${e.fill.rgb}"`):e.fill?.auto&&t.push('w:fill="auto"'),e.fill?.themeColor&&t.push(`w:themeFill="${e.fill.themeColor}"`),e.fill?.themeTint&&t.push(`w:themeFillTint="${e.fill.themeTint}"`),e.fill?.themeShade&&t.push(`w:themeFillShade="${e.fill.themeShade}"`),t.length===0?"":`<w:shd ${t.join(" ")}/>`}function C(e){if(!e)return "";let t=[];if(e.styleId&&t.push(`<w:rStyle w:val="${a(e.styleId)}"/>`),e.fontFamily){let i=[];e.fontFamily.ascii&&i.push(`w:ascii="${a(e.fontFamily.ascii)}"`),e.fontFamily.hAnsi&&i.push(`w:hAnsi="${a(e.fontFamily.hAnsi)}"`),e.fontFamily.eastAsia&&i.push(`w:eastAsia="${a(e.fontFamily.eastAsia)}"`),e.fontFamily.cs&&i.push(`w:cs="${a(e.fontFamily.cs)}"`),e.fontFamily.asciiTheme&&i.push(`w:asciiTheme="${e.fontFamily.asciiTheme}"`),e.fontFamily.hAnsiTheme&&i.push(`w:hAnsiTheme="${e.fontFamily.hAnsiTheme}"`),e.fontFamily.eastAsiaTheme&&i.push(`w:eastAsiaTheme="${e.fontFamily.eastAsiaTheme}"`),e.fontFamily.csTheme&&i.push(`w:csTheme="${e.fontFamily.csTheme}"`),i.length>0&&t.push(`<w:rFonts ${i.join(" ")}/>`);}e.bold===true?t.push("<w:b/>"):e.bold===false&&t.push('<w:b w:val="0"/>'),e.boldCs===true?t.push("<w:bCs/>"):e.boldCs===false&&t.push('<w:bCs w:val="0"/>'),e.italic===true?t.push("<w:i/>"):e.italic===false&&t.push('<w:i w:val="0"/>'),e.italicCs===true?t.push("<w:iCs/>"):e.italicCs===false&&t.push('<w:iCs w:val="0"/>'),e.allCaps&&t.push("<w:caps/>"),e.smallCaps&&t.push("<w:smallCaps/>"),e.strike&&t.push("<w:strike/>"),e.doubleStrike&&t.push("<w:dstrike/>"),e.outline&&t.push("<w:outline/>"),e.shadow&&t.push("<w:shadow/>"),e.emboss&&t.push("<w:emboss/>"),e.imprint&&t.push("<w:imprint/>"),e.hidden&&t.push("<w:vanish/>");let n=je(e.color);if(n&&t.push(n),e.spacing!==void 0&&t.push(`<w:spacing w:val="${s(e.spacing)}"/>`),e.scale!==void 0&&t.push(`<w:w w:val="${s(e.scale)}"/>`),e.kerning!==void 0&&t.push(`<w:kern w:val="${s(e.kerning)}"/>`),e.position!==void 0&&t.push(`<w:position w:val="${s(e.position)}"/>`),e.fontSize!==void 0&&t.push(`<w:sz w:val="${s(e.fontSize)}"/>`),e.fontSizeCs!==void 0&&t.push(`<w:szCs w:val="${s(e.fontSizeCs)}"/>`),e.highlight&&e.highlight!=="none"){if(ke.has(e.highlight))t.push(`<w:highlight w:val="${e.highlight}"/>`);else if(!e.shading){let i=e.highlight.replace(/^#/,"");/^[0-9a-fA-F]{6}$/.test(i)&&t.push(`<w:shd w:val="clear" w:color="auto" w:fill="${i}"/>`);}}if(e.underline){let i=[`w:val="${e.underline.style}"`];e.underline.color&&(e.underline.color.rgb&&i.push(`w:color="${e.underline.color.rgb}"`),e.underline.color.themeColor&&i.push(`w:themeColor="${e.underline.color.themeColor}"`),e.underline.color.themeTint&&i.push(`w:themeTint="${e.underline.color.themeTint}"`),e.underline.color.themeShade&&i.push(`w:themeShade="${e.underline.color.themeShade}"`)),t.push(`<w:u ${i.join(" ")}/>`);}e.effect&&e.effect!=="none"&&t.push(`<w:effect w:val="${e.effect}"/>`),e.emphasisMark&&e.emphasisMark!=="none"&&t.push(`<w:em w:val="${e.emphasisMark}"/>`);let r=Be(e.shading);return r&&t.push(r),e.vertAlign&&e.vertAlign!=="baseline"&&t.push(`<w:vertAlign w:val="${e.vertAlign}"/>`),e.rtl&&t.push("<w:rtl/>"),e.cs&&t.push("<w:cs/>"),t.length===0?"":`<w:rPr>${t.join("")}</w:rPr>`}function Ae(e){return !e.startsWith("<w:rPr>")||!e.endsWith("</w:rPr>")?"":e.slice(7,-8)}function De(e){let t=Number.isInteger(e.info.id)&&e.info.id>=0?e.info.id:0,n=typeof e.info.author=="string"?e.info.author.trim():"",r=n.length>0?n:"Unknown",i=typeof e.info.date=="string"?e.info.date.trim():void 0,o=[`w:id="${t}"`,`w:author="${a(r)}"`];i&&o.push(`w:date="${a(i)}"`);let l=C(e.previousFormatting)||"<w:rPr/>";return `<w:rPrChange ${o.join(" ")}>${l}</w:rPrChange>`}function Xe(e,t){let n=C(e),r=n?Ae(n):"",i=(t??[]).map(De).join(""),o=`${r}${i}`;return o?`<w:rPr>${o}</w:rPr>`:""}function Ee(e){return `<w:t${e.preserveSpace||e.text.startsWith(" ")||e.text.endsWith(" ")||e.text.includes(" ")?' xml:space="preserve"':""}>${a(e.text)}</w:t>`}function Me(e){return "<w:tab/>"}function Le(e){let t=[];return e.breakType==="page"?t.push('w:type="page"'):e.breakType==="column"?t.push('w:type="column"'):e.breakType==="textWrapping"&&(t.push('w:type="textWrapping"'),e.clear&&e.clear!=="none"&&t.push(`w:clear="${e.clear}"`)),t.length===0?"<w:br/>":`<w:br ${t.join(" ")}/>`}function He(e){return `<w:sym w:font="${a(e.font)}" w:char="${a(e.char)}"/>`}function Oe(e){return e.type==="footnoteRef"?`<w:footnoteReference w:id="${e.id}"/>`:`<w:endnoteReference w:id="${e.id}"/>`}function Ne(e){let t=[`w:fldCharType="${e.charType}"`];return e.fldLock&&t.push('w:fldLock="true"'),e.dirty&&t.push('w:dirty="true"'),`<w:fldChar ${t.join(" ")}/>`}function We(e){return `<w:instrText${e.text.startsWith(" ")||e.text.endsWith(" ")||e.text.includes(" ")?' xml:space="preserve"':""}>${a(e.text)}</w:instrText>`}function Ge(e){return "<w:softHyphen/>"}function Ve(e){return "<w:noBreakHyphen/>"}function Ue(e){switch(e.type){case "text":return Ee(e);case "tab":return Me();case "break":return Le(e);case "symbol":return He(e);case "footnoteRef":case "endnoteRef":return Oe(e);case "fieldChar":return Ne(e);case "instrText":return We(e);case "softHyphen":return Ge();case "noBreakHyphen":return Ve();case "drawing":return ce(e);case "shape":return le(e);default:return ""}}function x(e){let t=[],n=Xe(e.formatting,e.propertyChanges);n&&t.push(n);for(let r of e.content){let i=Ue(r);i&&t.push(i);}return `<w:r>${t.join("")}</w:r>`}function _e(e){let t=Number.isInteger(e.id)&&e.id>=0?e.id:0,n=typeof e.author=="string"?e.author.trim():"",r=n.length>0?n:"Unknown",i=typeof e.date=="string"?e.date.trim():void 0;return {id:t,author:r,date:i}}function b(e){let t=_e(e),n=[`w:id="${t.id}"`,`w:author="${a(t.author)}"`];return t.date&&n.push(`w:date="${a(t.date)}"`),n.join(" ")}function P(e,t){if(!e)return "";let n=[`w:w="${s(e.value)}"`,`w:type="${e.type}"`];return `<w:${t} ${n.join(" ")}/>`}function T(e,t){if(!e||e.style==="none"||e.style==="nil")return "";let n=[`w:val="${e.style}"`];return e.size!==void 0&&n.push(`w:sz="${s(e.size)}"`),e.space!==void 0&&n.push(`w:space="${s(e.space)}"`),e.color&&(e.color.auto?n.push('w:color="auto"'):e.color.rgb&&n.push(`w:color="${e.color.rgb}"`),e.color.themeColor&&n.push(`w:themeColor="${e.color.themeColor}"`),e.color.themeTint&&n.push(`w:themeTint="${e.color.themeTint}"`),e.color.themeShade&&n.push(`w:themeShade="${e.color.themeShade}"`)),e.shadow&&n.push('w:shadow="true"'),e.frame&&n.push('w:frame="true"'),`<w:${t} ${n.join(" ")}/>`}function pe(e,t){if(!e)return "";let n=[];if(e.top){let r=T(e.top,"top");r&&n.push(r);}if(e.left){let r=T(e.left,"left");r&&n.push(r);}if(e.bottom){let r=T(e.bottom,"bottom");r&&n.push(r);}if(e.right){let r=T(e.right,"right");r&&n.push(r);}if(e.insideH){let r=T(e.insideH,"insideH");r&&n.push(r);}if(e.insideV){let r=T(e.insideV,"insideV");r&&n.push(r);}return n.length===0?"":`<w:${t}>${n.join("")}</w:${t}>`}function ue(e,t){if(!e)return "";let n=[];return e.top&&n.push(P(e.top,"top")),e.left&&n.push(P(e.left,"left")),e.bottom&&n.push(P(e.bottom,"bottom")),e.right&&n.push(P(e.right,"right")),n.length===0?"":`<w:${t}>${n.join("")}</w:${t}>`}function fe(e){if(!e)return "";let t=[];return e.pattern?t.push(`w:val="${e.pattern}"`):t.push('w:val="clear"'),e.color?.rgb?t.push(`w:color="${e.color.rgb}"`):e.color?.auto&&t.push('w:color="auto"'),e.fill?.rgb?t.push(`w:fill="${e.fill.rgb}"`):e.fill?.auto&&t.push('w:fill="auto"'),e.fill?.themeColor&&t.push(`w:themeFill="${e.fill.themeColor}"`),e.fill?.themeTint&&t.push(`w:themeFillTint="${e.fill.themeTint}"`),e.fill?.themeShade&&t.push(`w:themeFillShade="${e.fill.themeShade}"`),t.length===0?"":`<w:shd ${t.join(" ")}/>`}function qe(e){if(!e)return "";let t=[];return e.firstRow&&t.push('w:firstRow="1"'),e.lastRow&&t.push('w:lastRow="1"'),e.firstColumn&&t.push('w:firstColumn="1"'),e.lastColumn&&t.push('w:lastColumn="1"'),e.noHBand&&t.push('w:noHBand="1"'),e.noVBand&&t.push('w:noVBand="1"'),t.length===0?"":`<w:tblLook ${t.join(" ")}/>`}function Ye(e){if(!e)return "";let t=[];return e.horzAnchor&&t.push(`w:horzAnchor="${e.horzAnchor}"`),e.vertAnchor&&t.push(`w:vertAnchor="${e.vertAnchor}"`),e.tblpX!==void 0&&t.push(`w:tblpX="${s(e.tblpX)}"`),e.tblpXSpec&&t.push(`w:tblpXSpec="${e.tblpXSpec}"`),e.tblpY!==void 0&&t.push(`w:tblpY="${s(e.tblpY)}"`),e.tblpYSpec&&t.push(`w:tblpYSpec="${e.tblpYSpec}"`),e.topFromText!==void 0&&t.push(`w:topFromText="${s(e.topFromText)}"`),e.bottomFromText!==void 0&&t.push(`w:bottomFromText="${s(e.bottomFromText)}"`),e.leftFromText!==void 0&&t.push(`w:leftFromText="${s(e.leftFromText)}"`),e.rightFromText!==void 0&&t.push(`w:rightFromText="${s(e.rightFromText)}"`),t.length===0?"":`<w:tblpPr ${t.join(" ")}/>`}function he(e,t){let n=[];if(e){e.styleId&&n.push(`<w:tblStyle w:val="${a(e.styleId)}"/>`);let r=Ye(e.floating);r&&n.push(r),e.bidi&&n.push("<w:bidiVisual/>");let i=P(e.width,"tblW");i&&n.push(i),e.justification&&n.push(`<w:jc w:val="${e.justification}"/>`);let o=P(e.cellSpacing,"tblCellSpacing");o&&n.push(o);let l=P(e.indent,"tblInd");l&&n.push(l);let c=pe(e.borders,"tblBorders");c&&n.push(c);let u=ue(e.cellMargins,"tblCellMar");u&&n.push(u),e.layout&&n.push(`<w:tblLayout w:type="${e.layout}"/>`);let f=fe(e.shading);f&&n.push(f);let p=qe(e.look);p&&n.push(p),e.overlap&&n.push(`<w:tblOverlap w:val="${e.overlap}"/>`);}return t&&t.length>0&&n.push(Je(t[0])),n.length===0?"":`<w:tblPr>${n.join("")}</w:tblPr>`}function Ze(e){return !e.startsWith("<w:tblPr>")||!e.endsWith("</w:tblPr>")?"":e.slice(9,-10)}function Je(e){let t=b(e.info),n=he(e.previousFormatting)||"<w:tblPr/>",r=Ze(n),i=r.length>0?`<w:tblPr>${r}</w:tblPr>`:"<w:tblPr/>";return `<w:tblPrChange ${t}>${i}</w:tblPrChange>`}function we(e,t,n){let r=[];if(e){if(e.cantSplit&&r.push("<w:cantSplit/>"),e.header&&r.push("<w:tblHeader/>"),e.height){let i=[`w:val="${s(e.height.value)}"`];e.heightRule&&i.push(`w:hRule="${e.heightRule}"`),r.push(`<w:trHeight ${i.join(" ")}/>`);}e.justification&&r.push(`<w:jc w:val="${e.justification}"/>`),e.hidden&&r.push("<w:hidden/>");}return n&&(n.type==="tableRowInsertion"?r.push(`<w:ins ${b(n.info)}/>`):n.type==="tableRowDeletion"&&r.push(`<w:del ${b(n.info)}/>`)),t&&t.length>0&&r.push(Qe(t[0])),r.length===0?"":`<w:trPr>${r.join("")}</w:trPr>`}function Ke(e){return !e.startsWith("<w:trPr>")||!e.endsWith("</w:trPr>")?"":e.slice(8,-9)}function Qe(e){let t=b(e.info),n=we(e.previousFormatting)||"<w:trPr/>",r=Ke(n),i=r.length>0?`<w:trPr>${r}</w:trPr>`:"<w:trPr/>";return `<w:trPrChange ${t}>${i}</w:trPrChange>`}function et(e){if(!e)return "";let n=[e.firstRow?"1":"0",e.lastRow?"1":"0",e.firstColumn?"1":"0",e.lastColumn?"1":"0",e.oddVBand?"1":"0",e.evenVBand?"1":"0",e.oddHBand?"1":"0",e.evenHBand?"1":"0",e.nwCell?"1":"0",e.neCell?"1":"0",e.swCell?"1":"0",e.seCell?"1":"0"].join("");return n==="000000000000"?"":`<w:cnfStyle w:val="${n}"/>`}function de(e,t,n){let r=[];if(e){let i=et(e.conditionalFormat);i&&r.push(i);let o=P(e.width,"tcW");o&&r.push(o),e.gridSpan&&e.gridSpan>1&&r.push(`<w:gridSpan w:val="${s(e.gridSpan)}"/>`),e.vMerge&&(e.vMerge==="restart"?r.push('<w:vMerge w:val="restart"/>'):r.push("<w:vMerge/>"));let l=pe(e.borders,"tcBorders");l&&r.push(l);let c=fe(e.shading);c&&r.push(c),e.noWrap&&r.push("<w:noWrap/>");let u=ue(e.margins,"tcMar");u&&r.push(u),e.textDirection&&r.push(`<w:textDirection w:val="${e.textDirection}"/>`),e.fitText&&r.push("<w:tcFitText/>"),e.verticalAlign&&r.push(`<w:vAlign w:val="${e.verticalAlign}"/>`),e.hideMark&&r.push("<w:hideMark/>");}if(n){if(n.type==="tableCellInsertion")r.push(`<w:cellIns ${b(n.info)}/>`);else if(n.type==="tableCellDeletion")r.push(`<w:cellDel ${b(n.info)}/>`);else if(n.type==="tableCellMerge"){let i=n.vMerge?` w:vMerge="${n.vMerge}"`:"",o=n.vMergeOrig?` w:vMergeOrig="${n.vMergeOrig}"`:"";r.push(`<w:cellMerge ${b(n.info)}${i}${o}/>`);}}return t&&t.length>0&&r.push(nt(t[0])),r.length===0?"":`<w:tcPr>${r.join("")}</w:tcPr>`}function tt(e){return !e.startsWith("<w:tcPr>")||!e.endsWith("</w:tcPr>")?"":e.slice(8,-9)}function nt(e){let t=b(e.info),n=de(e.previousFormatting)||"<w:tcPr/>",r=tt(n),i=r.length>0?`<w:tcPr>${r}</w:tcPr>`:"<w:tcPr/>";return `<w:tcPrChange ${t}>${i}</w:tcPrChange>`}function rt(e){return !e||e.length===0?"":`<w:tblGrid>${e.map(n=>`<w:gridCol w:w="${s(n)}"/>`).join("")}</w:tblGrid>`}function it(e){let t=[];for(let n of e)n.type==="paragraph"?t.push(y(n)):n.type==="table"&&t.push(S(n));return t.length===0&&t.push("<w:p/>"),t.join("")}function ot(e){let t=[],n=de(e.formatting,e.propertyChanges,e.structuralChange);return n&&t.push(n),t.push(it(e.content)),`<w:tc>${t.join("")}</w:tc>`}function st(e){let t=[],n=we(e.formatting,e.propertyChanges,e.structuralChange);n&&t.push(n);for(let r of e.cells)t.push(ot(r));return `<w:tr>${t.join("")}</w:tr>`}function S(e){let t=[],n=he(e.formatting,e.propertyChanges);n&&t.push(n);let r=rt(e.columnWidths);r&&t.push(r);for(let i of e.rows)t.push(st(i));return `<w:tbl>${t.join("")}</w:tbl>`}function R(e,t){let n=e.content.map(t).join(""),r=e.properties.rawPropertiesXml??"",i=e.properties.rawEndPropertiesXml??"";return `<w:sdt>${r}${i}<w:sdtContent>${n}</w:sdtContent></w:sdt>`}var h={wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"};function at(){let e={wpc:h.wpc,mc:h.mc,o:h.o,r:h.r,m:h.m,v:h.v,wp14:h.wp14,wp:h.wp,w10:h.w10,w:h.w,w14:h.w14,w15:h.w15,w16se:h.w16se,w16cid:h.w16cid,w16:h.w16,w16cex:h.w16cex,w16sdtdh:h.w16sdtdh,wne:h.wne,wpg:h.wpg,wps:h.wps};return Object.entries(e).map(([t,n])=>`xmlns:${t}="${n}"`).join(" ")}function I(e,t){if(!e||e.style==="none"||e.style==="nil")return "";let n=[`w:val="${e.style}"`];return e.size!==void 0&&n.push(`w:sz="${s(e.size)}"`),e.space!==void 0&&n.push(`w:space="${s(e.space)}"`),e.color&&(e.color.auto?n.push('w:color="auto"'):e.color.rgb&&n.push(`w:color="${e.color.rgb}"`),e.color.themeColor&&n.push(`w:themeColor="${e.color.themeColor}"`),e.color.themeTint&&n.push(`w:themeTint="${e.color.themeTint}"`),e.color.themeShade&&n.push(`w:themeShade="${e.color.themeShade}"`)),e.shadow&&n.push('w:shadow="true"'),e.frame&&n.push('w:frame="true"'),`<w:${t} ${n.join(" ")}/>`}function ct(e){return `<w:headerReference ${[`w:type="${e.type}"`,`r:id="${e.rId}"`].join(" ")}/>`}function lt(e){return `<w:footerReference ${[`w:type="${e.type}"`,`r:id="${e.rId}"`].join(" ")}/>`}function pt(e){if(!e)return "";let t=[];return e.position&&t.push(`<w:pos w:val="${e.position}"/>`),e.numFmt&&t.push(`<w:numFmt w:val="${e.numFmt}"/>`),e.numStart!==void 0&&t.push(`<w:numStart w:val="${e.numStart}"/>`),e.numRestart&&t.push(`<w:numRestart w:val="${e.numRestart}"/>`),t.length===0?"":`<w:footnotePr>${t.join("")}</w:footnotePr>`}function ut(e){if(!e)return "";let t=[];return e.position&&t.push(`<w:pos w:val="${e.position}"/>`),e.numFmt&&t.push(`<w:numFmt w:val="${e.numFmt}"/>`),e.numStart!==void 0&&t.push(`<w:numStart w:val="${e.numStart}"/>`),e.numRestart&&t.push(`<w:numRestart w:val="${e.numRestart}"/>`),t.length===0?"":`<w:endnotePr>${t.join("")}</w:endnotePr>`}function ft(e){let t=[];return e.pageWidth!==void 0&&t.push(`w:w="${s(e.pageWidth)}"`),e.pageHeight!==void 0&&t.push(`w:h="${s(e.pageHeight)}"`),e.orientation==="landscape"&&t.push('w:orient="landscape"'),t.length===0?"":`<w:pgSz ${t.join(" ")}/>`}function ht(e){let t=[];return e.marginTop!==void 0&&t.push(`w:top="${s(e.marginTop)}"`),e.marginRight!==void 0&&t.push(`w:right="${s(e.marginRight)}"`),e.marginBottom!==void 0&&t.push(`w:bottom="${s(e.marginBottom)}"`),e.marginLeft!==void 0&&t.push(`w:left="${s(e.marginLeft)}"`),e.headerDistance!==void 0&&t.push(`w:header="${s(e.headerDistance)}"`),e.footerDistance!==void 0&&t.push(`w:footer="${s(e.footerDistance)}"`),e.gutter!==void 0&&t.push(`w:gutter="${s(e.gutter)}"`),t.length===0?"":`<w:pgMar ${t.join(" ")}/>`}function wt(e){if(!e.columnCount&&!e.columns?.length)return "";let t=[];e.columnCount!==void 0&&e.columnCount>1&&t.push(`w:num="${s(e.columnCount)}"`),e.columnSpace!==void 0&&t.push(`w:space="${s(e.columnSpace)}"`),e.equalWidth!==void 0&&t.push(`w:equalWidth="${e.equalWidth?"1":"0"}"`),e.separator&&t.push('w:sep="1"');let n="";return e.columns&&e.columns.length>0&&(n=e.columns.map(i=>{let o=[];return i.width!==void 0&&o.push(`w:w="${s(i.width)}"`),i.space!==void 0&&o.push(`w:space="${s(i.space)}"`),`<w:col ${o.join(" ")}/>`}).join("")),t.length===0&&!n?"":`<w:cols${t.length>0?" "+t.join(" "):""}>${n}</w:cols>`}function dt(e){if(!e.lineNumbers)return "";let t=e.lineNumbers,n=[];return t.countBy!==void 0&&n.push(`w:countBy="${s(t.countBy)}"`),t.start!==void 0&&n.push(`w:start="${s(t.start)}"`),t.distance!==void 0&&n.push(`w:distance="${s(t.distance)}"`),t.restart&&n.push(`w:restart="${t.restart}"`),n.length===0?"":`<w:lnNumType ${n.join(" ")}/>`}function mt(e){if(!e.pageBorders)return "";let t=e.pageBorders,n=[],r=[];if(t.display&&n.push(`w:display="${t.display}"`),t.offsetFrom&&n.push(`w:offsetFrom="${t.offsetFrom}"`),t.zOrder&&n.push(`w:zOrder="${t.zOrder}"`),t.top){let o=I(t.top,"top");o&&r.push(o);}if(t.left){let o=I(t.left,"left");o&&r.push(o);}if(t.bottom){let o=I(t.bottom,"bottom");o&&r.push(o);}if(t.right){let o=I(t.right,"right");o&&r.push(o);}return r.length===0?"":`<w:pgBorders${n.length>0?" "+n.join(" "):""}>${r.join("")}</w:pgBorders>`}function gt(e){if(!e.docGrid)return "";let t=e.docGrid,n=[];return t.type&&n.push(`w:type="${t.type}"`),t.linePitch!==void 0&&n.push(`w:linePitch="${t.linePitch}"`),t.charSpace!==void 0&&n.push(`w:charSpace="${t.charSpace}"`),n.length===0?"":`<w:docGrid ${n.join(" ")}/>`}function $t(e){if(!e)return "";let t=[];if(e.headerReferences)for(let p of e.headerReferences)t.push(ct(p));if(e.footerReferences)for(let p of e.footerReferences)t.push(lt(p));let n=pt(e.footnotePr);n&&t.push(n);let r=ut(e.endnotePr);r&&t.push(r),e.sectionStart&&t.push(`<w:type w:val="${e.sectionStart}"/>`);let i=ft(e);i&&t.push(i);let o=ht(e);if(o&&t.push(o),e.paperSrcFirst!==void 0||e.paperSrcOther!==void 0){let p=[];e.paperSrcFirst!==void 0&&p.push(`w:first="${e.paperSrcFirst}"`),e.paperSrcOther!==void 0&&p.push(`w:other="${e.paperSrcOther}"`),t.push(`<w:paperSrc ${p.join(" ")}/>`);}let l=mt(e);l&&t.push(l);let c=dt(e);c&&t.push(c);let u=wt(e);u&&t.push(u);let f=gt(e);return f&&t.push(f),e.verticalAlign&&t.push(`<w:vAlign w:val="${e.verticalAlign}"/>`),e.bidi&&t.push("<w:bidi/>"),e.titlePg&&t.push("<w:titlePg/>"),e.evenAndOddHeaders&&t.push("<w:evenAndOddHeaders/>"),t.length===0?"":`<w:sectPr>${t.join("")}</w:sectPr>`}function me(e){return e.type==="paragraph"?y(e):e.type==="table"?S(e):e.type==="blockSdt"?R(e,me):""}function xt(e){return e.map(t=>me(t)).join("")}function yt(e){let t=[];return t.push(xt(e.content)),e.finalSectionProperties&&t.push($t(e.finalSectionProperties)),t.join("")}function Jt(e){H();let t=[];t.push('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>');let n=at();return t.push(`<w:document ${n} mc:Ignorable="w14 w15 w16se w16cid w16 w16cex w16sdtdh wp14">`),t.push("<w:body>"),t.push(yt(e.package.document)),t.push("</w:body>"),t.push("</w:document>"),t.join("")}var Pt={wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"};function bt(){return Object.entries(Pt).map(([e,t])=>`xmlns:${e}="${t}"`).join(" ")}function ge(e){return e.type==="paragraph"?y(e):e.type==="table"?S(e):e.type==="blockSdt"?R(e,ge):""}function nn(e){let t=e.type==="header"?"w:hdr":"w:ftr",n=bt(),r=e.content.map(i=>ge(i)).join("");return r||(r="<w:p><w:pPr/></w:p>"),`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+ <${t} ${n}>${r}</${t}>`}var k='xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex" xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex" xmlns:cx3="http://schemas.microsoft.com/office/drawing/2016/5/9/chartex" xmlns:cx4="http://schemas.microsoft.com/office/drawing/2016/5/10/chartex" xmlns:cx5="http://schemas.microsoft.com/office/drawing/2016/5/11/chartex" xmlns:cx6="http://schemas.microsoft.com/office/drawing/2016/5/12/chartex" xmlns:cx7="http://schemas.microsoft.com/office/drawing/2016/5/13/chartex" xmlns:cx8="http://schemas.microsoft.com/office/drawing/2016/5/14/chartex" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:aink="http://schemas.microsoft.com/office/drawing/2016/ink" xmlns:am3d="http://schemas.microsoft.com/office/drawing/2017/model3d" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:oel="http://schemas.microsoft.com/office/2019/extlst" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16du="http://schemas.microsoft.com/office/word/2023/wordml/word16du" xmlns:w16sdtdh="http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash" xmlns:w16sdtfl="http://schemas.microsoft.com/office/word/2024/wordml/sdtformatlock" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape"',j='mc:Ignorable="w14 w15 w16se w16cid w16 w16cex w16sdtdh w16sdtfl w16du wp14"';function Pe(e){let t="<w:r>",n=[];e.formatting?.bold&&n.push("<w:b/>"),e.formatting?.italic&&n.push("<w:i/>"),n.length>0&&(t+=`<w:rPr>${n.join("")}</w:rPr>`);for(let r of e.content)if(r.type==="text"){let i=r.text!==r.text.trim()||r.text.includes(" ");t+=i?`<w:t xml:space="preserve">${a(r.text)}</w:t>`:`<w:t>${a(r.text)}</w:t>`;}else r.type==="break"&&(t+="<w:br/>");return t+="</w:r>",t}function $e(e,t){let n=t?`<w:p w14:paraId="${t}">`:"<w:p>";for(let r of e.content)r.type==="run"&&(n+=Pe(r));return n+="</w:p>",n}function xe(e,t){let n=t?`<w:p w14:paraId="${t}">`:"<w:p>";n+='<w:r><w:rPr><w:rStyle w:val="CommentReference"/></w:rPr><w:annotationRef/></w:r>';for(let r of e.content)r.type==="run"&&(n+=Pe(r));return n+="</w:p>",n}function ye(e,t){let n=a$1(),r=[`w:id="${e.id}"`];if(e.author&&r.push(`w:author="${a(e.author)}"`),e.initials?r.push(`w:initials="${a(e.initials)}"`):r.push('w:initials=""'),e.date){let o=e.date.replace(/\.\d{3}Z$/,"Z");r.push(`w:date="${a(o)}"`);}let i=`<w:comment ${r.join(" ")}>`;if(e.content&&e.content.length>0)if(e.content.length===1)i+=xe(e.content[0],n);else {i+=xe(e.content[0]);for(let o=1;o<e.content.length-1;o++)i+=$e(e.content[o]);i+=$e(e.content[e.content.length-1],n);}else i+=`<w:p w14:paraId="${n}"><w:r><w:rPr><w:rStyle w:val="CommentReference"/></w:rPr><w:annotationRef/></w:r></w:p>`;return i+="</w:comment>",t.push({commentId:e.id,lastParaId:n,durableId:a$1(),parentId:e.parentId,done:e.done}),i}function Ct(e){if(!e||e.length===0)return {xml:"",paraInfos:[]};let t=[],n=[];for(let o of e)(o.parentId==null?t:n).push(o);let r=[],i=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:comments ${k} ${j}>`;for(let o of t)i+=ye(o,r);for(let o of n)i+=ye(o,r);return i+="</w:comments>",{xml:i,paraInfos:r}}function an(e){return Ct(e).xml}function cn(e){if(e.length===0)return "";let t=new Map;for(let r of e)t.set(r.commentId,r.lastParaId);let n=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w15:commentsEx ${k} ${j}>`;for(let r of e){let i=`w15:paraId="${r.lastParaId}" w15:done="${r.done?"1":"0"}"`;if(r.parentId!=null){let o=t.get(r.parentId);o&&(i+=` w15:paraIdParent="${o}"`);}n+=`<w15:commentEx ${i} />`;}return n+="</w15:commentsEx>",n}function ln(e){if(e.length===0)return "";let t=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w16cid:commentsIds ${k} ${j}>`;for(let n of e)t+=`<w16cid:commentId w16cid:paraId="${n.lastParaId}" w16cid:durableId="${n.durableId}" />`;return t+="</w16cid:commentsIds>",t}function pn(e,t){if(e.length===0)return "";let n=new Map;for(let i of t)n.set(i.id,i);let r=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w16cex:commentsExtensible ${k} ${j}>`;for(let i of e){let o=n.get(i.commentId);if(!o?.date)continue;let l=i.durableId,c=(o.date.endsWith("Z")?o.date:o.date+"Z").replace(/\.\d{3}Z$/,"Z");r+=`<w16cex:commentExtensible w16cex:durableId="${l}" w16cex:dateUtc="${c}"/>`;}return r+="</w16cex:commentsExtensible>",r}
3
+ export{a,x as b,y as c,S as d,$t as e,yt as f,Jt as g,nn as h,Ct as i,an as j,cn as k,ln as l,pn as m};
@@ -0,0 +1 @@
1
+ 'use strict';var chunkLWH66Q7Q_js=require('./chunk-LWH66Q7Q.js'),chunk7HANRHHL_js=require('./chunk-7HANRHHL.js'),chunkGSKMHXHG_js=require('./chunk-GSKMHXHG.js'),prosemirrorState=require('prosemirror-state'),prosemirrorCommands=require('prosemirror-commands');function A(e){let t={};for(let r of e)switch(r.type.name){case "bold":t.bold=true;break;case "italic":t.italic=true;break;case "underline":t.underline={style:r.attrs.style||"single"};break;case "strike":t.strike=true;break;case "textColor":t.color=r.attrs;break;case "highlight":t.highlight=r.attrs.color;break;case "fontSize":t.fontSize=r.attrs.size;break;case "fontFamily":t.fontFamily={ascii:r.attrs.ascii,hAnsi:r.attrs.hAnsi};break;case "superscript":t.vertAlign="superscript";break;case "subscript":t.vertAlign="subscript";break}return t}function M(e,t,r){let{$from:n}=e.selection,a=n.parent;if(a.type.name!=="paragraph"||a.textContent.length>0)return t;if(r.length===0)return t.setNodeMarkup(n.before(),void 0,{...a.attrs,defaultTextFormatting:null});let s=A(r);return t.setNodeMarkup(n.before(),void 0,{...a.attrs,defaultTextFormatting:s})}function x(e,t,r){let n=e.tr;n=M(e,n,r),n.setStoredMarks(r),t(n);}function I(e,t){return (r,n)=>{let{from:a,to:s,empty:i}=r.selection,o=e.create(t);if(i){if(n){let u=r.storedMarks||r.selection.$from.marks(),l=e.isInSet(u)?u.filter(f=>f.type!==e):u;x(r,n,[...l,o]);}return true}return n&&n(r.tr.addMark(a,s,o).scrollIntoView()),true}}function E(e){return (t,r)=>{let{from:n,to:a,empty:s}=t.selection;if(s){if(r){let i=(t.storedMarks||t.selection.$from.marks()).filter(o=>o.type!==e);x(t,r,i);}return true}return r&&r(t.tr.removeMark(n,a,e).scrollIntoView()),true}}function Y(e,t,r){let{from:n,to:a,empty:s}=e.selection;if(s)return (e.storedMarks||e.selection.$from.marks()).some(u=>u.type!==t?false:r?Object.entries(r).every(([l,f])=>u.attrs[l]===f):true);let i=false;return e.doc.nodesBetween(n,a,o=>{if(o.isText){let u=t.isInSet(o.marks);if(u&&(!r||Object.entries(r).every(([f,p])=>u.attrs[f]===p)))return i=true,false}return true}),i}function q(e,t,r){let{empty:n,$from:a,from:s,to:i}=e.selection;if(n){let u=e.storedMarks||a.marks();for(let l of u)if(l.type===t)return l.attrs[r];return null}let o=null;return e.doc.nodesBetween(s,i,u=>{if(u.isText&&o===null){let l=t.isInSet(u.marks);if(l)return o=l.attrs[r],false}return true}),o}function d(e,t){let r=[];return e.bold&&r.push(t.marks.bold.create()),e.italic&&r.push(t.marks.italic.create()),e.underline&&r.push(t.marks.underline.create({style:e.underline.style||"single",color:e.underline.color})),e.strike&&r.push(t.marks.strike.create()),e.doubleStrike&&r.push(t.marks.strike.create({double:true})),e.color&&r.push(t.marks.textColor.create({rgb:e.color.rgb,themeColor:e.color.themeColor,themeTint:e.color.themeTint,themeShade:e.color.themeShade})),e.highlight&&r.push(t.marks.highlight.create({color:e.highlight})),e.fontSize&&r.push(t.marks.fontSize.create({size:e.fontSize})),e.fontFamily&&r.push(t.marks.fontFamily.create({ascii:e.fontFamily.ascii,hAnsi:e.fontFamily.hAnsi,asciiTheme:e.fontFamily.asciiTheme})),e.vertAlign==="superscript"&&r.push(t.marks.superscript.create()),e.vertAlign==="subscript"&&r.push(t.marks.subscript.create()),r}var G=(e,t)=>{let{from:r,to:n,empty:a}=e.selection;if(a){if(t){let s=M(e,e.tr,[]);s.setStoredMarks([]),t(s);}return true}if(t){let s=e.tr;e.doc.nodesBetween(r,n,(i,o)=>{if(i.isText&&i.marks.length>0){let u=Math.max(r,o),l=Math.min(n,o+i.nodeSize);for(let f of i.marks)s=s.removeMark(u,l,f.type);}}),t(s.scrollIntoView());}return true};function J(e,t){return I(e,t||{})}function Q(e){return E(e)}var F=new prosemirrorState.PluginKey("documentStyles");function Z(e){let t=e instanceof chunkLWH66Q7Q_js.a?e:e?chunkLWH66Q7Q_js.b(e):null;return new prosemirrorState.Plugin({key:F,state:{init:()=>t,apply:(r,n)=>n}})}function b(e){return F.getState(e)??null}function T(e){let t=e.paragraphFormatting,r=e.runFormatting,n=!!r&&Object.keys(r).length>0;return {alignment:t?.alignment??null,spaceBefore:t?.spaceBefore??null,spaceAfter:t?.spaceAfter??null,lineSpacing:t?.lineSpacing??null,lineSpacingRule:t?.lineSpacingRule??null,indentLeft:t?.indentLeft??null,indentRight:t?.indentRight??null,indentFirstLine:t?.indentFirstLine??null,hangingIndent:t?.hangingIndent??null,contextualSpacing:t?.contextualSpacing??null,keepNext:t?.keepNext??null,keepLines:t?.keepLines??null,pageBreakBefore:t?.pageBreakBefore??null,outlineLevel:t?.outlineLevel??null,defaultTextFormatting:n?r:null}}function v(...e){return (t,r,n)=>{for(let a of e)if(a(t,r,n))return true;return false}}var O=(e,t)=>{let{$cursor:r}=e.selection;if(!r||r.parentOffset!==0||r.parent.type.name!=="paragraph")return false;let n=r.parent.attrs,a=n.indentFirstLine!=null&&n.indentFirstLine>0,s=!!n.hangingIndent,i=n.indentLeft!=null&&n.indentLeft>0;if(!a&&!s&&!i)return false;if(t){let o=r.before(),u=e.tr.setNodeMarkup(o,void 0,{...n,indentFirstLine:null,hangingIndent:null,indentLeft:null});t(u.scrollIntoView());}return true},V=["defaultTextFormatting","styleId","lineSpacing","lineSpacingRule","spaceAfter","spaceBefore","contextualSpacing"],C=new Set(["fontFamily","fontSize","textColor"]);function _(e,t,r,n,a,s){let i=a.resolveParagraphStyle(n);e.setNodeMarkup(t,void 0,{...r.attrs,styleId:n,...T(i),borders:null}),e.setStoredMarks(i.runFormatting?d(i.runFormatting,s):[]);}function j(e,t,r,n,a){let{$from:s}=e.selection,i=s.parent;if(i.type.name!=="paragraph")return;if(a&&t&&i.textContent.length===0){let c=a.getNextStyleId(t.attrs.styleId);if(c){_(e,s.before(),i,c,a,n);return}}let o={...i.attrs},u=false;if(t)for(let c of V){let m=t.attrs[c];m!=null&&o[c]==null&&(o[c]=m,u=true);}if(o.borders&&(o.borders=null,u=true),u&&e.setNodeMarkup(s.before(),void 0,o),i.textContent.length!==0)return;let l=[...r];if(l.length===0&&t){let c=t.attrs.defaultTextFormatting;c&&(l=d(c,n).filter(w=>C.has(w.type.name)));}if(l.length===0)return;let f={...o.defaultTextFormatting??{}},p=false;for(let c of l)if(c.type.name==="fontSize"&&c.attrs.size!==f.fontSize&&(f.fontSize=c.attrs.size,p=true),c.type.name==="fontFamily"){let m=c.attrs.ascii;m&&(!f.fontFamily||f.fontFamily.ascii!==m)&&(f.fontFamily=chunkGSKMHXHG_js.a(f.fontFamily,{ascii:m,hAnsi:c.attrs.hAnsi}),p=true);}p&&e.setNodeMarkup(s.before(),void 0,{...o,defaultTextFormatting:f}),e.setStoredMarks(l);}var H=(e,t,r)=>{let{$from:n}=e.selection,a=n.parent.type.name==="paragraph"?n.parent:null,i=(e.storedMarks||n.marks()).filter(l=>C.has(l.type.name)),o=null;if(!prosemirrorCommands.splitBlock(e,t?l=>{o=l;}:void 0,r))return false;if(t&&o!==null){let l=o;j(l,a,i,e.schema,b(e)),t(l.scrollIntoView());}return true},ue=chunk7HANRHHL_js.b({name:"baseKeymap",priority:chunk7HANRHHL_js.a.Low,onSchemaReady(e){return {keyboardShortcuts:{...prosemirrorCommands.baseKeymap,Enter:H,Backspace:v(prosemirrorCommands.deleteSelection,O,prosemirrorCommands.joinBackward),Delete:v(prosemirrorCommands.deleteSelection,prosemirrorCommands.joinForward),"Mod-a":prosemirrorCommands.selectAll,Escape:prosemirrorCommands.selectParentNode}}}});exports.a=T;exports.b=I;exports.c=E;exports.d=Y;exports.e=q;exports.f=d;exports.g=G;exports.h=J;exports.i=Q;exports.j=F;exports.k=Z;exports.l=b;exports.m=C;exports.n=j;exports.o=ue;
@@ -0,0 +1 @@
1
+ import {a,b as b$1}from'./chunk-ICE6NC3S.mjs';import {f as f$1}from'./chunk-U67MWOPZ.mjs';function y(e){return f$1(e,b$1)}var t=a.getCommands(),F=t.toggleBold(),f=t.toggleItalic(),S=t.toggleUnderline(),H=t.toggleStrike(),T=t.toggleSuperscript(),h=t.toggleSubscript();function M(e){return t.setTextColor(e)}var A=t.clearTextColor();function v(e){return t.setHighlight(e)}var z=t.clearHighlight();function U(e){return t.setFontSize(e)}var b=t.clearFontSize();function B(e){return t.setFontFamily(e)}var I=t.clearFontFamily();function R(e,o){return t.setUnderlineStyle(e,o)}function _(e,o){return t.setHyperlink(e,o)}var j=t.removeHyperlink();function q(e,o,i){return t.insertHyperlink(e,o,i)}export{y as a,F as b,f as c,S as d,H as e,T as f,h as g,M as h,A as i,v as j,z as k,U as l,b as m,B as n,I as o,R as p,_ as q,j as r,q as s};
@@ -0,0 +1 @@
1
+ 'use strict';var chunkC45EFOVP_js=require('./chunk-C45EFOVP.js'),chunkJFZIXFRC_js=require('./chunk-JFZIXFRC.js'),chunkVMRUBLPI_js=require('./chunk-VMRUBLPI.js'),chunkLWH66Q7Q_js=require('./chunk-LWH66Q7Q.js'),chunkMJ5FQX7Q_js=require('./chunk-MJ5FQX7Q.js'),chunk4Q2IP5FW_js=require('./chunk-4Q2IP5FW.js'),chunkGSKMHXHG_js=require('./chunk-GSKMHXHG.js');function X(e){if(!e)return [];let n=[];return e.bold&&n.push(chunkVMRUBLPI_js.b.mark("bold")),e.italic&&n.push(chunkVMRUBLPI_js.b.mark("italic")),e.underline&&e.underline.style!=="none"&&n.push(chunkVMRUBLPI_js.b.mark("underline",{style:e.underline.style,color:e.underline.color})),(e.strike||e.doubleStrike)&&n.push(chunkVMRUBLPI_js.b.mark("strike",{double:e.doubleStrike||false})),e.color&&!e.color.auto&&n.push(chunkVMRUBLPI_js.b.mark("textColor",{rgb:e.color.rgb,themeColor:e.color.themeColor,themeTint:e.color.themeTint,themeShade:e.color.themeShade})),e.highlight&&e.highlight!=="none"&&n.push(chunkVMRUBLPI_js.b.mark("highlight",{color:e.highlight})),e.fontSize&&n.push(chunkVMRUBLPI_js.b.mark("fontSize",{size:e.fontSize})),e.fontFamily&&n.push(chunkVMRUBLPI_js.b.mark("fontFamily",{ascii:e.fontFamily.ascii,hAnsi:e.fontFamily.hAnsi,eastAsia:e.fontFamily.eastAsia,cs:e.fontFamily.cs,asciiTheme:e.fontFamily.asciiTheme,hAnsiTheme:e.fontFamily.hAnsiTheme,eastAsiaTheme:e.fontFamily.eastAsiaTheme,csTheme:e.fontFamily.csTheme})),e.vertAlign==="superscript"?n.push(chunkVMRUBLPI_js.b.mark("superscript")):e.vertAlign==="subscript"&&n.push(chunkVMRUBLPI_js.b.mark("subscript")),e.allCaps&&n.push(chunkVMRUBLPI_js.b.mark("allCaps")),e.smallCaps&&n.push(chunkVMRUBLPI_js.b.mark("smallCaps")),(e.spacing!=null||e.position!=null||e.scale!=null||e.kerning!=null)&&n.push(chunkVMRUBLPI_js.b.mark("characterSpacing",{spacing:e.spacing??null,position:e.position??null,scale:e.scale??null,kerning:e.kerning??null})),e.emboss&&n.push(chunkVMRUBLPI_js.b.mark("emboss")),e.imprint&&n.push(chunkVMRUBLPI_js.b.mark("imprint")),e.shadow&&n.push(chunkVMRUBLPI_js.b.mark("textShadow")),e.emphasisMark&&e.emphasisMark!=="none"&&n.push(chunkVMRUBLPI_js.b.mark("emphasisMark",{type:e.emphasisMark})),e.outline&&n.push(chunkVMRUBLPI_js.b.mark("textOutline")),e.hidden&&n.push(chunkVMRUBLPI_js.b.mark("hidden")),e.rtl&&n.push(chunkVMRUBLPI_js.b.mark("rtl")),e.effect&&e.effect!=="none"&&n.push(chunkVMRUBLPI_js.b.mark("textEffect",{effect:e.effect})),n}function E(e,n){if(!e)return;if(!n)return e;let o=n.resolveRunStyle(e.styleId);return o?chunkGSKMHXHG_js.b(o,e):e}function ee(e,n){let o="",l,t=e.type==="simpleField"?e.content:e.fieldResult;if(t){for(let s of t)if(s.type==="run"){for(let c of s.content)c.type==="text"&&(o+=c.text);!l&&s.formatting&&(l=s.formatting);}}let r=chunkGSKMHXHG_js.b(n,l),i=X(r);return chunkVMRUBLPI_js.b.node("field",{fieldType:e.fieldType,instruction:e.instruction,displayText:o,fieldKind:e.type==="simpleField"?"simple":"complex",fldLock:e.fldLock??false,dirty:e.dirty??false},void 0,i)}function te(e){return chunkVMRUBLPI_js.b.node("math",{display:e.display,ommlXml:e.ommlXml,plainText:e.plainText||""})}function K(e,n,o){let l=[],t=e.formatting?.styleId?o?.getRunStyleOwnProperties(e.formatting.styleId):void 0,r=chunkGSKMHXHG_js.b(chunkGSKMHXHG_js.b(n,t),e.formatting),i=X(r);for(let s of e.content){let c=ce(s,i);l.push(...c);}return l}function ce(e,n){switch(e.type){case "text":return e.text?[chunkVMRUBLPI_js.b.text(e.text,n)]:[];case "break":return e.breakType==="textWrapping"||!e.breakType?[chunkVMRUBLPI_js.b.node("hardBreak",null,void 0,n)]:[];case "tab":return [chunkVMRUBLPI_js.b.node("tab",null,void 0,n)];case "drawing":return e.image?[Pe(e.image)]:[];case "shape":{let t=e.shape;return t.textBody&&t.textBody.content.length>0?[]:[Ce(t)]}case "footnoteRef":let o=chunkVMRUBLPI_js.b.mark("footnoteRef",{id:e.id.toString(),noteType:"footnote"});return [chunkVMRUBLPI_js.b.text(e.id.toString(),[...n,o])];case "endnoteRef":let l=chunkVMRUBLPI_js.b.mark("footnoteRef",{id:e.id.toString(),noteType:"endnote"});return [chunkVMRUBLPI_js.b.text(e.id.toString(),[...n,l])];default:return []}}function Pe(e){let n=e.size?.width?chunk4Q2IP5FW_js.e(e.size.width):void 0,o=e.size?.height?chunk4Q2IP5FW_js.e(e.size.height):void 0,l=e.wrap.type,t=e.wrap.wrapText,r=e.position?.horizontal?.alignment,i;l==="inline"||l==="topAndBottom"?i="none":l==="square"||l==="tight"||l==="through"?t==="left"?i="right":t==="right"||r==="left"?i="left":r==="right"?i="right":i="none":i="none";let s="inline";l==="inline"?s="inline":l==="topAndBottom"?s="block":chunkJFZIXFRC_js.b(l)||i&&i!=="none"?s="float":s="block";let c;if(e.transform){let P=[];e.transform.rotation&&P.push(`rotate(${e.transform.rotation}deg)`),e.transform.flipH&&P.push("scaleX(-1)"),e.transform.flipV&&P.push("scaleY(-1)"),P.length>0&&(c=P.join(" "));}let u=e.wrap.distT?chunk4Q2IP5FW_js.e(e.wrap.distT):void 0,f=e.wrap.distB?chunk4Q2IP5FW_js.e(e.wrap.distB):void 0,d=e.wrap.distL?chunk4Q2IP5FW_js.e(e.wrap.distL):void 0,m=e.wrap.distR?chunk4Q2IP5FW_js.e(e.wrap.distR):void 0,p;e.position&&(p={horizontal:e.position.horizontal?{relativeTo:e.position.horizontal.relativeTo,posOffset:e.position.horizontal.posOffset,align:e.position.horizontal.alignment}:void 0,vertical:e.position.vertical?{relativeTo:e.position.vertical.relativeTo,posOffset:e.position.vertical.posOffset,align:e.position.vertical.alignment}:void 0});let S,w,M;if(e.outline&&e.outline.width){S=Math.round(e.outline.width/914400*96*100)/100,e.outline.color?.rgb&&(w=`#${e.outline.color.rgb}`);let P={solid:"solid",dot:"dotted",dash:"dashed",lgDash:"dashed",dashDot:"dashed",lgDashDot:"dashed",lgDashDotDot:"dashed",sysDot:"dotted",sysDash:"dashed",sysDashDot:"dashed",sysDashDotDot:"dashed"};M=e.outline.style&&P[e.outline.style]||"solid";}let z=e.padding?.top?chunk4Q2IP5FW_js.e(e.padding.top):void 0,I=e.padding?.bottom?chunk4Q2IP5FW_js.e(e.padding.bottom):void 0,B=e.padding?.left?chunk4Q2IP5FW_js.e(e.padding.left):void 0,g=e.padding?.right?chunk4Q2IP5FW_js.e(e.padding.right):void 0;return chunkVMRUBLPI_js.b.node("image",{src:e.src||"",alt:e.alt,title:e.title,width:n,height:o,rId:e.rId,wrapType:l,displayMode:s,cssFloat:i,transform:c,distTop:u,distBottom:f,distLeft:d,distRight:m,position:p,borderWidth:S,borderColor:w,borderStyle:M,wrapText:t,hlinkHref:e.hlinkHref,cropTop:e.crop?.top,cropRight:e.crop?.right,cropBottom:e.crop?.bottom,cropLeft:e.crop?.left,opacity:e.opacity,effectExtentTop:z,effectExtentBottom:I,effectExtentLeft:B,effectExtentRight:g,layoutInCell:e.layoutInCell,allowOverlap:e.allowOverlap})}function Y(e,n,o){let l=[],t=e.href||(e.anchor?`#${e.anchor}`:""),r=chunkVMRUBLPI_js.b.mark("hyperlink",{href:t,tooltip:e.tooltip,rId:e.rId});for(let i of e.children)if(i.type==="run"){let s=i.formatting?.styleId?o?.getRunStyleOwnProperties(i.formatting.styleId):void 0,c=chunkGSKMHXHG_js.b(chunkGSKMHXHG_js.b(n,s),i.formatting),f=[...X(c),r];for(let d of i.content)l.push(...ce(d,f));}return l}function Ce(e){let n=e.size?.width?chunk4Q2IP5FW_js.e(e.size.width):100,o=e.size?.height?chunk4Q2IP5FW_js.e(e.size.height):80,l,t="solid",r,i,s;if(e.fill&&(t=e.fill.type,e.fill.color?.rgb&&(l=`#${e.fill.color.rgb}`),e.fill.type==="gradient"&&e.fill.gradient)){let m=e.fill.gradient;r=m.type,i=m.angle,s=JSON.stringify(m.stops.map(p=>({position:p.position,color:p.color.rgb?`#${p.color.rgb}`:"#000000"})));}let c,u,f;e.outline&&(e.outline.width&&(c=Math.round(e.outline.width/914400*96*100)/100),e.outline.color?.rgb&&(u=`#${e.outline.color.rgb}`),f=e.outline.style||"solid");let d;if(e.transform){let m=[];e.transform.rotation&&m.push(`rotate(${e.transform.rotation}deg)`),e.transform.flipH&&m.push("scaleX(-1)"),e.transform.flipV&&m.push("scaleY(-1)"),m.length>0&&(d=m.join(" "));}return chunkVMRUBLPI_js.b.node("shape",{shapeType:e.shapeType||"rect",shapeId:e.id,width:n,height:o,fillColor:l,fillType:t,gradientType:r,gradientAngle:i,gradientStops:s,outlineWidth:c,outlineColor:u,outlineStyle:f,transform:d})}function V(e,n,o,l){let t=we(e,n),r=[],i,s=new Set,c;n&&(c=n.resolveParagraphStyle(e.formatting?.styleId).runFormatting);let u=chunkGSKMHXHG_js.b(c,l);for(let f of e.content){if(f.type==="commentRangeStart")s.add(f.id);else if(f.type==="commentRangeEnd")s.delete(f.id);else if(f.type==="run"){let d=K(f,u,n);s.size>0&&(d=O(d,s)),r.push(...d);}else if(f.type==="hyperlink"){let d=Y(f,u,n);r.push(...d);}else if(f.type==="simpleField"||f.type==="complexField"){let d=ee(f,u);d&&r.push(d);}else if(f.type==="inlineSdt"){let d=ue(f,u,n);d&&r.push(d);}else if(f.type==="insertion"){let d=J(f,"insertion",u,n);s.size>0&&(d=O(d,s)),r.push(...d);}else if(f.type==="deletion"){let d=J(f,"deletion",u,n);s.size>0&&(d=O(d,s)),r.push(...d);}else if(f.type==="moveFrom"){let d=J(f,"deletion",u,n,true);s.size>0&&(d=O(d,s)),r.push(...d);}else if(f.type==="moveTo"){let d=J(f,"insertion",u,n,true);s.size>0&&(d=O(d,s)),r.push(...d);}else if(f.type==="mathEquation"){let d=te(f);d&&r.push(d);}f.type==="bookmarkStart"&&(i||(i=[]),i.push({id:f.id,name:f.name}));}return i&&(t.bookmarks=i),chunkVMRUBLPI_js.b.node("paragraph",t,r)}function O(e,n){if(n.size===0)return e;let o=[...n][0],l=chunkVMRUBLPI_js.b.marks.comment.create({commentId:o});return e.map(t=>t.isText?t.mark(l.addToSet(t.marks)):t)}function J(e,n,o,l,t=false){let r=[];for(let s of e.content)s.type==="run"?r.push(...K(s,o,l)):s.type==="hyperlink"&&r.push(...Y(s,o,l));let i=chunkVMRUBLPI_js.b.marks[n].create({revisionId:e.info.id,author:e.info.author,date:e.info.date??null,isMovePair:t});return r.map(s=>s.isText||s.type.allowsMarkType(i.type)?s.mark(i.addToSet(s.marks)):s)}function we(e,n){let o=e.formatting,l=o?.styleId,t={paraId:e.paraId??void 0,textId:e.textId??void 0,styleId:l,numPr:o?.numPr,listNumFmt:e.listRendering?.numFmt,listIsBullet:e.listRendering?.isBullet,listMarker:e.listRendering?.marker,listMarkerHidden:e.listRendering?.markerHidden||void 0,listMarkerFontFamily:e.listRendering?.markerFontFamily||void 0,listMarkerFontSize:e.listRendering?.markerFontSize||void 0,listMarkerSuffix:e.listRendering?.markerSuffix||void 0,listLevelNumFmts:e.listRendering?.levelNumFmts||void 0,listAbstractNumId:e.listRendering?.abstractNumId,listStartOverride:e.listRendering?.startOverride,_originalFormatting:o||void 0};if(n){let r=n.resolveParagraphStyle(l),i=r.paragraphFormatting,s=r.runFormatting;t.alignment=o?.alignment??i?.alignment,t.spaceBefore=o?.spaceBefore??i?.spaceBefore,t.spaceAfter=o?.spaceAfter??i?.spaceAfter,t.lineSpacing=o?.lineSpacing??i?.lineSpacing,t.lineSpacingRule=o?.lineSpacingRule??i?.lineSpacingRule,o?.spacingExplicit&&(t.spacingExplicit=o.spacingExplicit),t.indentLeft=o?.indentLeft??i?.indentLeft,t.indentRight=o?.indentRight??i?.indentRight,t.indentFirstLine=o?.indentFirstLine??i?.indentFirstLine,t.hangingIndent=o?.hangingIndent??i?.hangingIndent,t.borders=o?.borders??i?.borders,t.shading=o?.shading??i?.shading,t.tabs=o?.tabs??i?.tabs,t.pageBreakBefore=o?.pageBreakBefore??i?.pageBreakBefore,t.keepNext=o?.keepNext??i?.keepNext,t.keepLines=o?.keepLines??i?.keepLines,t.contextualSpacing=o?.contextualSpacing??i?.contextualSpacing,t.outlineLevel=o?.outlineLevel??i?.outlineLevel,t.bidi=o?.bidi??i?.bidi;let c=n.getDefaultCharacterStyle()?.rPr,u=c?chunkGSKMHXHG_js.b(s,c):s,f=E(o?.runProperties,n);t.defaultTextFormatting=chunkGSKMHXHG_js.b(u,f),!o?.numPr&&i?.numPr&&i.numPr.numId!==0&&(t.numPr=i.numPr);}else t.alignment=o?.alignment,t.spaceBefore=o?.spaceBefore,t.spaceAfter=o?.spaceAfter,t.lineSpacing=o?.lineSpacing,t.lineSpacingRule=o?.lineSpacingRule,o?.spacingExplicit&&(t.spacingExplicit=o.spacingExplicit),t.indentLeft=o?.indentLeft,t.indentRight=o?.indentRight,t.indentFirstLine=o?.indentFirstLine,t.hangingIndent=o?.hangingIndent,t.borders=o?.borders,t.shading=o?.shading,t.tabs=o?.tabs,t.pageBreakBefore=o?.pageBreakBefore,t.keepNext=o?.keepNext,t.keepLines=o?.keepLines,t.outlineLevel=o?.outlineLevel,t.bidi=o?.bidi,t.defaultTextFormatting=E(o?.runProperties,n);if(e.sectionProperties){t._sectionProperties=e.sectionProperties;let r=e.sectionProperties.sectionStart;(r==="nextPage"||r==="continuous"||r==="oddPage"||r==="evenPage")&&(t.sectionBreakType=r);}return e.renderedPageBreakBefore&&(t.renderedPageBreakBefore=true),e.pPrIns&&(t.pPrIns={revisionId:e.pPrIns.id,author:e.pPrIns.author,date:e.pPrIns.date??null}),e.pPrDel&&(t.pPrDel={revisionId:e.pPrDel.id,author:e.pPrDel.author,date:e.pPrDel.date??null}),e.propertyChanges&&e.propertyChanges.length>0&&(t.pPrChange=e.propertyChanges),t}function ue(e,n,o){let l=e.properties,t=[];for(let r of e.content)if(r.type==="run"){let i=K(r,n,o);t.push(...i);}else if(r.type==="hyperlink"){let i=Y(r,n,o);t.push(...i);}else if(r.type==="simpleField"||r.type==="complexField"){let i=ee(r,n);i&&t.push(i);}else if(r.type==="inlineSdt"){let i=ue(r,n,o);i&&t.push(i);}else if(r.type==="mathEquation"){let i=te(r);i&&t.push(i);}return chunkVMRUBLPI_js.b.node("sdt",chunkC45EFOVP_js.a(l),t.length>0?t:void 0)}function pe(e){function n(l){return l.type==="break"&&l.breakType==="page"}function o(l){if(l.type==="run"){for(let t of l.content)if(n(t))return true;return false}if(l.type==="hyperlink"){for(let t of l.children)if(t.type==="run"&&o(t))return true;return false}if(l.type==="insertion"||l.type==="deletion"){let t=l;for(let r of t.content)if(o(r))return true;return false}return false}for(let l of e.content)if(o(l))return true;return false}function R(e,n,o){if(!e||!n)return;let l=e.getStyle(n);if(!l?.tblStylePr)return;let t=l.tblStylePr.find(c=>c.type===o);if(!t)return;let r=E(t.pPr?.runProperties,e),i=E(t.rPr,e),s=chunkGSKMHXHG_js.b(r,i);return {tcPr:t.tcPr,rPr:s}}function N(e,n){if(!e&&!n)return;if(!e)return n;if(!n)return e;let o={},l=e.tcPr,t=n.tcPr;if(l||t){let r={...l??{},...t??{}};(l?.borders||t?.borders)&&(r.borders={...l?.borders??{},...t?.borders??{}}),(l?.shading||t?.shading)&&(r.shading={...l?.shading??{},...t?.shading??{}}),(l?.margins||t?.margins)&&(r.margins={...l?.margins??{},...t?.margins??{}}),o.tcPr=r;}return o.rPr=chunkGSKMHXHG_js.b(e.rPr,n.rPr),o}function xe(e){let n=new Map,o=e.rows.length,l=new Map;for(let t=0;t<o;t++){let r=e.rows[t],i=0,s=r.cells.map(u=>{let f=u.formatting?.gridSpan??1,d=i;return i+=f,{colIndex:d,vMerge:u.formatting?.vMerge,key:`${t}-${d}`}});if(s.length>0&&s.every(({colIndex:u,vMerge:f})=>f==="continue"&&l.has(u))){for(let{colIndex:u,key:f}of s)l.delete(u),n.set(f,{rowSpan:1,skip:false});continue}for(let{colIndex:u,vMerge:f,key:d}of s){let m=u;if(f==="restart")l.set(m,t),n.set(d,{rowSpan:1,skip:false});else if(f==="continue"){let p=l.get(m);if(p!==void 0){let S=`${p}-${m}`,w=n.get(S);w&&w.rowSpan++,n.set(d,{rowSpan:1,skip:true});}else n.set(d,{rowSpan:1,skip:false});}else l.delete(m),n.set(d,{rowSpan:1,skip:false});}}return n}function ne(e,n,o){let l=xe(e),t=e.columnWidths,r=t?.reduce((P,x)=>P+x,0)??0,i=e.formatting?.styleId,s=e.formatting?.look,c=i?n?.getStyle(i):void 0,u=n?.getDefaultTableStyle(),f=e.formatting?.borders??c?.tblPr?.borders??u?.tblPr?.borders,d=e.formatting?.cellMargins??c?.tblPr?.cellMargins??u?.tblPr?.cellMargins??void 0,m=d?{top:d.top?.value,bottom:d.bottom?.value,left:d.left?.value,right:d.right?.value}:void 0,p={styleId:e.formatting?.styleId,width:e.formatting?.width?.value,widthType:e.formatting?.width?.type,justification:e.formatting?.justification,columnWidths:t,floating:e.formatting?.floating,cellMargins:m,look:e.formatting?.look,_originalFormatting:e.formatting||void 0};e.propertyChanges&&e.propertyChanges.length>0&&(p.tblPrChange=e.propertyChanges);let S={wholeTable:R(n,i,"wholeTable"),firstRow:R(n,i,"firstRow"),lastRow:R(n,i,"lastRow"),firstCol:R(n,i,"firstCol"),lastCol:R(n,i,"lastCol"),band1Horz:R(n,i,"band1Horz"),band2Horz:R(n,i,"band2Horz"),band1Vert:R(n,i,"band1Vert"),band2Vert:R(n,i,"band2Vert"),nwCell:R(n,i,"nwCell"),neCell:R(n,i,"neCell"),swCell:R(n,i,"swCell"),seCell:R(n,i,"seCell")},w=s?.noHBand!==true,M=s?.noVBand!==true,z=0,I=e.rows.length,B=t?.length??Math.max(0,...e.rows.map(P=>P.cells.reduce((x,k)=>x+(k.formatting?.gridSpan??1),0))),g=e.rows.map((P,x)=>{let k=x===0&&!!s?.firstRow,v=x===I-1&&!!s?.lastRow,h=w&&!k&&!v?z%2===0?S.band1Horz:S.band2Horz:void 0;return w&&!k&&!v&&z++,Fe(P,n,k,t,r,S,h,M,s,f,x,I,B,l,m,o)});return chunkVMRUBLPI_js.b.node("table",p,g)}function Fe(e,n,o,l,t,r,i,s,c,u,f,d,m,p,S,w){let M={height:e.formatting?.height?.value,heightRule:e.formatting?.heightRule,isHeader:!!e.formatting?.header,_originalFormatting:e.formatting||void 0};if(e.structuralChange){let C=e.structuralChange,D={revisionId:C.info.id,author:C.info.author,date:C.info.date??null};C.type==="tableRowInsertion"?M.trIns=D:C.type==="tableRowDeletion"&&(M.trDel=D);}e.propertyChanges&&e.propertyChanges.length>0&&(M.trPrChange=e.propertyChanges);let z=e.cells.length,I=f===0,B=f===(d??1)-1,g=e.formatting?.conditionalFormat,P=g?.firstRow??I,x=g?.lastRow??B,k=m??z,v=0,h=[];for(let C=0;C<e.cells.length;C++){let D=e.cells[C],H=D.formatting?.gridSpan??1,Te=`${f??0}-${v}`,re=p?.get(Te),be=re?.skip??false,ye=re?.rowSpan??1,ie;if(l&&t&&t>0){let q=0;for(let A=0;A<H&&v+A<l.length;A++)q+=l[v+A];ie=Math.round(q/t*100);}if(v+=H,be)continue;let le=v-H===0,se=v===k,b=D.formatting?.conditionalFormat,G=b?.firstRow??P,Q=b?.lastRow??x,$=b?.firstColumn??le,W=b?.lastColumn??se,_;if(s){let q=c?.firstColumn?1:0,A=v-H-q;A>=0&&!(c?.lastColumn&&W)&&!(c?.firstColumn&&$)&&(_=A%2===0?r?.band1Vert:r?.band2Vert);}b?.oddVBand?_=r?.band1Vert:b?.evenVBand&&(_=r?.band2Vert);let L=i;g?.oddHBand?L=r?.band1Horz:g?.evenHBand&&(L=r?.band2Horz),b?.oddHBand?L=r?.band1Horz:b?.evenHBand&&(L=r?.band2Horz);let T=r?.wholeTable;T=N(T,L),T=N(T,_),G&&(c?.firstRow||g?.firstRow||b?.firstRow)&&(T=N(T,r?.firstRow)),Q&&(c?.lastRow||g?.lastRow||b?.lastRow)&&(T=N(T,r?.lastRow)),$&&(c?.firstColumn||g?.firstColumn||b?.firstColumn)&&(T=N(T,r?.firstCol)),W&&(c?.lastColumn||g?.lastColumn||b?.lastColumn)&&(T=N(T,r?.lastCol)),G&&$&&(c?.firstRow||g?.firstRow||b?.firstRow)&&(c?.firstColumn||g?.firstColumn||b?.firstColumn)&&(T=N(T,r?.nwCell)),G&&W&&(c?.firstRow||g?.firstRow||b?.firstRow)&&(c?.lastColumn||g?.lastColumn||b?.lastColumn)&&(T=N(T,r?.neCell)),Q&&$&&(c?.lastRow||g?.lastRow||b?.lastRow)&&(c?.firstColumn||g?.firstColumn||b?.firstColumn)&&(T=N(T,r?.swCell)),Q&&W&&(c?.lastRow||g?.lastRow||b?.lastRow)&&(c?.lastColumn||g?.lastColumn||b?.lastColumn)&&(T=N(T,r?.seCell)),h.push(me(D,n,o,ie,T,u,I,B,le,se,ye,S,w));}if(h.length===0){let C=Math.max(k,1),D={formatting:C>1?{gridSpan:C}:void 0,content:[{type:"paragraph",content:[]}]},H=N(r?.wholeTable,i);h.push(me(D,n,o,t&&t>0?100:void 0,H,u,I,B,true,true,1,S,w));}return chunkVMRUBLPI_js.b.node("tableRow",M,h)}var ke=["top","bottom","left","right","insideH","insideV"];function Se(e,n){if(!e)return e;let o;for(let l of ke){let t=e[l];if(!t?.color?.themeColor||t.color.auto)continue;let r=chunkMJ5FQX7Q_js.b(t.color,n);r&&(o??(o={...e}),o[l]={...t,color:{rgb:r}});}return o??e}function me(e,n,o,l,t,r,i,s,c,u,f,d,m){let p=e.formatting,S=f??1,w=p?.width?.value,M=p?.width?.type;w===void 0&&l!==void 0&&(w=l,M="pct");let z=chunkMJ5FQX7Q_js.b(p?.shading?.fill??t?.tcPr?.shading?.fill,m),I=r?{top:i?r.top:r.insideH,bottom:s?r.bottom:r.insideH,left:c?r.left:r.insideV,right:u?r.right:r.insideV}:void 0,B=t?.tcPr?.borders,g=p?.borders,P=Se(I||B||g?{...I??{},...B??{},...g??{}}:void 0,m),x={colspan:p?.gridSpan??1,rowspan:S,width:w,widthType:M,verticalAlign:p?.verticalAlign,backgroundColor:z,textDirection:p?.textDirection,noWrap:p?.noWrap,borders:P,margins:p?.margins?{top:p.margins.top?.value,bottom:p.margins.bottom?.value,left:p.margins.left?.value,right:p.margins.right?.value}:t?.tcPr?.margins?{top:t.tcPr.margins.top?.value,bottom:t.tcPr.margins.bottom?.value,left:t.tcPr.margins.left?.value,right:t.tcPr.margins.right?.value}:d,_originalFormatting:p||void 0,_originalResolvedFill:z};if(e.structuralChange){let h=e.structuralChange,C={revisionId:h.info.id,author:h.info.author,date:h.info.date??null};h.type==="tableCellInsertion"?x.cellMarker={kind:"ins",info:C}:h.type==="tableCellDeletion"?x.cellMarker={kind:"del",info:C}:h.type==="tableCellMerge"&&(x.cellMarker={kind:"merge",info:C,vMerge:h.vMerge??"cont",...h.vMergeOrig?{vMergeOrig:h.vMergeOrig}:{}});}e.propertyChanges&&e.propertyChanges.length>0&&(x.tcPrChange=e.propertyChanges);let k=[];for(let h of e.content)h.type==="paragraph"?k.push(V(h,n,void 0,t?.rPr)):h.type==="table"&&k.push(ne(h,n));k.length===0&&k.push(chunkVMRUBLPI_js.b.node("paragraph",{},[]));let v=o?"tableHeader":"tableCell";return chunkVMRUBLPI_js.b.node(v,x,k)}function he(e,n){let o=Me(e),l=V(e,n),t=[],r=o.length>0&&l.content.size===0,{anchored:i,inFlow:s}=Re(o);for(let c of i)t.push(ge(c,n));r||t.push(l);for(let c of s)t.push(ge(c,n));return t}function Re(e){let n=[],o=[];for(let l of e)chunkC45EFOVP_js.c(l)?n.push(l):o.push(l);return {anchored:n,inFlow:o}}function Me(e){let n=[];for(let o of e.content)if(o.type==="run"){for(let l of o.content)if(l.type==="shape"&&"shape"in l){let t=l.shape;t.textBody&&t.textBody.content.length>0&&n.push({type:"textBox",id:t.id,size:t.size,position:t.position,wrap:t.wrap,fill:t.fill,outline:t.outline,content:t.textBody.content,margins:t.textBody.margins});}}return n}function ge(e,n){let o=e.size?.width?chunk4Q2IP5FW_js.e(e.size.width):200,l=e.size?.height?chunk4Q2IP5FW_js.e(e.size.height):void 0,t;e.fill?.color?.rgb&&(t=`#${e.fill.color.rgb}`);let r,i,s;e.outline&&e.outline.width&&(r=Math.round(e.outline.width/914400*96*100)/100,e.outline.color?.rgb&&(i=`#${e.outline.color.rgb}`),s=e.outline.style||"solid");let c=e.margins?.top!=null?chunk4Q2IP5FW_js.e(e.margins.top):4,u=e.margins?.bottom!=null?chunk4Q2IP5FW_js.e(e.margins.bottom):4,f=e.margins?.left!=null?chunk4Q2IP5FW_js.e(e.margins.left):7,d=e.margins?.right!=null?chunk4Q2IP5FW_js.e(e.margins.right):7,m=[];for(let p of e.content)m.push(V(p,n));return m.length===0&&m.push(chunkVMRUBLPI_js.b.node("paragraph",{},[])),chunkVMRUBLPI_js.b.node("textBox",{width:o,height:l,textBoxId:e.id,fillColor:t,outlineWidth:r,outlineColor:i,outlineStyle:s,marginTop:c,marginBottom:u,marginLeft:f,marginRight:d,...chunkC45EFOVP_js.d(e)},m)}function oe(e,n,o,l){let t=[];for(let r of e)if(r.type==="paragraph")t.push(...he(r,n)),l&&pe(r)&&t.push(chunkVMRUBLPI_js.b.node("pageBreak"));else if(r.type==="table")t.push(ne(r,n,o));else if(r.type==="blockSdt"){let i=oe(r.content,n,o,l),s=i.length>0?i:[chunkVMRUBLPI_js.b.node("paragraph",{},[])];t.push(chunkVMRUBLPI_js.b.node("blockSdt",chunkC45EFOVP_js.a(r.properties),s));}return t}function dt(e,n){let o=e.package.theme??null,l=n?.styles?chunkLWH66Q7Q_js.b(n.styles):null,t=oe(e.package.document.content,l,o,true);return t.length===0&&t.push(chunkVMRUBLPI_js.b.node("paragraph",{},[])),t[t.length-1]?.type.name==="blockSdt"&&t.push(chunkVMRUBLPI_js.b.node("paragraph",{},[])),chunkVMRUBLPI_js.b.node("doc",{defaultTabStopTwips:e.package.settings?.defaultTabStop??null},t)}function ve(e,n){let o=n?.styles?chunkLWH66Q7Q_js.b(n.styles):null,l=n?.theme??null,t=oe(e,o,l,false);return t.length===0&&t.push(chunkVMRUBLPI_js.b.node("paragraph",{},[])),chunkVMRUBLPI_js.b.node("doc",{defaultTabStopTwips:n?.defaultTabStopTwips??null},t)}function ft(e,n){return ve(e,n)}function ct(){return chunkVMRUBLPI_js.b.node("doc",null,[chunkVMRUBLPI_js.b.node("paragraph",{},[])])}exports.a=dt;exports.b=ve;exports.c=ft;exports.d=ct;
@@ -516,111 +516,6 @@ interface Table {
516
516
  rows: TableRow[];
517
517
  }
518
518
 
519
- /**
520
- * Structured Document Tags / content controls (`w:sdt`) — inline and
521
- * block variants, plus properties (alias, tag, lock, list items,
522
- * checkbox state) for the supported SDT types.
523
- */
524
-
525
- /**
526
- * SDT type (content control type)
527
- */
528
- type SdtType = 'richText' | 'plainText' | 'date' | 'dropdown' | 'comboBox' | 'checkbox' | 'picture' | 'buildingBlockGallery' | 'group' | 'unknown';
529
- /**
530
- * SDT properties (w:sdtPr)
531
- */
532
- interface SdtProperties {
533
- /** SDT type */
534
- sdtType: SdtType;
535
- /** Alias (friendly name) */
536
- alias?: string;
537
- /** Tag (developer identifier) */
538
- tag?: string;
539
- /** Lock content editing */
540
- lock?: 'sdtLocked' | 'contentLocked' | 'sdtContentLocked' | 'unlocked';
541
- /** Placeholder text */
542
- placeholder?: string;
543
- /** Whether showing placeholder */
544
- showingPlaceholder?: boolean;
545
- /** Date format for date controls */
546
- dateFormat?: string;
547
- /** Dropdown/combobox list items */
548
- listItems?: {
549
- displayText: string;
550
- value: string;
551
- }[];
552
- /** Checkbox checked state */
553
- checked?: boolean;
554
- }
555
- /**
556
- * Inline SDT (content control within a paragraph)
557
- */
558
- interface InlineSdt {
559
- type: 'inlineSdt';
560
- /** SDT properties */
561
- properties: SdtProperties;
562
- /**
563
- * Inline content held inside the control. OOXML allows runs,
564
- * hyperlinks, simple/complex fields, nested SDTs, and math at this
565
- * level; the renderer must descend into all of them so docProps-bound
566
- * fields and similar template content survive paged rendering.
567
- */
568
- content: (Run | Hyperlink | SimpleField | ComplexField | InlineSdt | MathEquation)[];
569
- }
570
- /**
571
- * Block-level SDT (content control wrapping paragraphs/tables)
572
- */
573
- interface BlockSdt {
574
- type: 'blockSdt';
575
- /** SDT properties */
576
- properties: SdtProperties;
577
- /** Block content inside the control */
578
- content: (Paragraph | Table)[];
579
- }
580
-
581
- /**
582
- * Comments (`w:comment` in `comments.xml`) and the inline range markers
583
- * (`w:commentRangeStart`/`End`) that anchor them inside paragraphs.
584
- */
585
-
586
- /**
587
- * A comment from `comments.xml` — the top-level entity for review
588
- * comments and replies. `id` matches the inline `CommentRangeStart` /
589
- * `CommentRangeEnd` markers that anchor it inside a paragraph; `parentId`
590
- * threads replies under their parent; `done` reflects Word's "Resolve"
591
- * state (`w15:done`).
592
- */
593
- interface Comment {
594
- /** Comment ID (matches commentRangeStart/End) */
595
- id: number;
596
- /** Author name */
597
- author: string;
598
- /** Author initials */
599
- initials?: string;
600
- /** Date */
601
- date?: string;
602
- /** Comment content (paragraphs) */
603
- content: Paragraph[];
604
- /** Parent comment ID (for replies) */
605
- parentId?: number;
606
- /** Whether the comment is resolved/done */
607
- done?: boolean;
608
- }
609
- /**
610
- * Comment range start marker in paragraph content
611
- */
612
- interface CommentRangeStart {
613
- type: 'commentRangeStart';
614
- id: number;
615
- }
616
- /**
617
- * Comment range end marker in paragraph content
618
- */
619
- interface CommentRangeEnd {
620
- type: 'commentRangeEnd';
621
- id: number;
622
- }
623
-
624
519
  /**
625
520
  * Page furniture — headers (`w:hdr`), footers (`w:ftr`), footnotes
626
521
  * (`w:footnote`), and endnotes (`w:endnote`), plus the section-level
@@ -650,7 +545,7 @@ interface HeaderFooter {
650
545
  /** Header/footer type */
651
546
  hdrFtrType: HeaderFooterType;
652
547
  /** Content (paragraphs, tables, etc.) */
653
- content: (Paragraph | Table)[];
548
+ content: BlockContent[];
654
549
  }
655
550
  /**
656
551
  * Footnote position
@@ -698,7 +593,7 @@ interface Footnote {
698
593
  * widened to match HeaderFooter / TableCell shape so the body pipeline
699
594
  * (toProseDoc → toFlowBlocks) can render them uniformly.
700
595
  */
701
- content: (Paragraph | Table)[];
596
+ content: BlockContent[];
702
597
  }
703
598
  /**
704
599
  * Endnote (w:endnote)
@@ -713,7 +608,50 @@ interface Endnote {
713
608
  * Content. Per ECMA-376 §17.11.4 endnotes can hold the same blocks as
714
609
  * the body — paragraphs and tables. See note on `Footnote.content`.
715
610
  */
716
- content: (Paragraph | Table)[];
611
+ content: BlockContent[];
612
+ }
613
+
614
+ /**
615
+ * Comments (`w:comment` in `comments.xml`) and the inline range markers
616
+ * (`w:commentRangeStart`/`End`) that anchor them inside paragraphs.
617
+ */
618
+
619
+ /**
620
+ * A comment from `comments.xml` — the top-level entity for review
621
+ * comments and replies. `id` matches the inline `CommentRangeStart` /
622
+ * `CommentRangeEnd` markers that anchor it inside a paragraph; `parentId`
623
+ * threads replies under their parent; `done` reflects Word's "Resolve"
624
+ * state (`w15:done`).
625
+ */
626
+ interface Comment {
627
+ /** Comment ID (matches commentRangeStart/End) */
628
+ id: number;
629
+ /** Author name */
630
+ author: string;
631
+ /** Author initials */
632
+ initials?: string;
633
+ /** Date */
634
+ date?: string;
635
+ /** Comment content (paragraphs) */
636
+ content: Paragraph[];
637
+ /** Parent comment ID (for replies) */
638
+ parentId?: number;
639
+ /** Whether the comment is resolved/done */
640
+ done?: boolean;
641
+ }
642
+ /**
643
+ * Comment range start marker in paragraph content
644
+ */
645
+ interface CommentRangeStart {
646
+ type: 'commentRangeStart';
647
+ id: number;
648
+ }
649
+ /**
650
+ * Comment range end marker in paragraph content
651
+ */
652
+ interface CommentRangeEnd {
653
+ type: 'commentRangeEnd';
654
+ id: number;
717
655
  }
718
656
 
719
657
  /**
@@ -888,6 +826,126 @@ interface DocumentBody {
888
826
  comments?: Comment[];
889
827
  }
890
828
 
829
+ /**
830
+ * Structured Document Tags / content controls (`w:sdt`) — inline and
831
+ * block variants, plus properties (alias, tag, lock, list items,
832
+ * checkbox state) for the supported SDT types.
833
+ */
834
+
835
+ /**
836
+ * SDT type (content control type).
837
+ *
838
+ * Values mirror the `w:sdtPr` type-marker element names from ECMA-376
839
+ * §17.5.2 (`CT_SdtPr`), with two deliberate exceptions:
840
+ * - `checkbox` is the `w14:checkbox` (Office 2010) extension, not a base
841
+ * OOXML type marker.
842
+ * - `buildingBlockGallery` covers both `w:docPartObj` and `w:docPartList`.
843
+ *
844
+ * A `w:sdtPr` with no type marker means `richText` (the spec default). A
845
+ * type marker the parser does not model maps to `unknown` — it is never
846
+ * coerced to `richText`, so the projection stays honest. Round-trip
847
+ * fidelity does not depend on this enum: the raw `w:sdtPr` is replayed
848
+ * verbatim (see `rawPropertiesXml`).
849
+ */
850
+ type SdtType = 'richText' | 'plainText' | 'date' | 'dropDownList' | 'comboBox' | 'checkbox' | 'picture' | 'buildingBlockGallery' | 'group' | 'equation' | 'citation' | 'bibliography' | 'unknown';
851
+ /**
852
+ * XML data binding (`w:dataBinding`) — links a content control to a node in a
853
+ * Custom XML data store. Modeled read-only; the binding round-trips verbatim
854
+ * via `rawPropertiesXml` (this projection is for inspection, e.g. "which
855
+ * controls are bound, and to what XPath"). The editor does not resolve or
856
+ * sync bound values.
857
+ */
858
+ interface SdtDataBinding {
859
+ /** XPath into the bound Custom XML part (`w:xpath`). */
860
+ xpath?: string;
861
+ /** Target Custom XML store id (`w:storeItemID`). */
862
+ storeItemID?: string;
863
+ /** Namespace prefix mappings used by the XPath (`w:prefixMappings`). */
864
+ prefixMappings?: string;
865
+ }
866
+ /**
867
+ * SDT properties (`w:sdtPr`).
868
+ *
869
+ * The modeled fields are a **read-only projection** for downstream tooling
870
+ * (tag/alias addressing, template extraction). They are NOT the
871
+ * serialization source: the original `w:sdtPr` is captured verbatim in
872
+ * `rawPropertiesXml` and replayed on save, which preserves element order
873
+ * (`CT_SdtPr` is an `xsd:sequence`), avoids double-emission, and keeps
874
+ * unmodeled features (data binding, `w15:*`, `@lastValue`) lossless.
875
+ */
876
+ interface SdtProperties {
877
+ /** SDT type (projection; see {@link SdtType}). */
878
+ sdtType: SdtType;
879
+ /** Unique numeric id (`w:id`, signed). */
880
+ id?: number;
881
+ /** Alias (friendly name, `w:alias`). */
882
+ alias?: string;
883
+ /** Tag (developer identifier, `w:tag`). */
884
+ tag?: string;
885
+ /** Lock setting (`w:lock`). */
886
+ lock?: 'sdtLocked' | 'contentLocked' | 'sdtContentLocked' | 'unlocked';
887
+ /**
888
+ * Placeholder building-block name (`w:placeholder/w:docPart@w:val`).
889
+ * This is a reference to a glossary docPart that supplies the placeholder
890
+ * content — NOT the literal placeholder text.
891
+ */
892
+ placeholder?: string;
893
+ /** Whether the control is currently showing its placeholder (`w:showingPlcHdr`). */
894
+ showingPlaceholder?: boolean;
895
+ /** Date format for date controls (`w:date@w:fullDate`). */
896
+ dateFormat?: string;
897
+ /** Dropdown/combobox list items. */
898
+ listItems?: {
899
+ displayText: string;
900
+ value: string;
901
+ }[];
902
+ /** Checkbox checked state (`w14:checkbox`). */
903
+ checked?: boolean;
904
+ /** XML data binding (`w:dataBinding`), if the control is bound. */
905
+ dataBinding?: SdtDataBinding;
906
+ /**
907
+ * The original `<w:sdtPr>` serialized verbatim as an XML string, captured
908
+ * at parse time. Replayed unchanged on save so the properties block
909
+ * round-trips losslessly. Stored as a string (not an `XmlElement`) so the
910
+ * types layer stays free of the parser/`xml-js` dependency. Absent for
911
+ * SDTs created programmatically — the serializer then synthesizes a
912
+ * minimal, sequence-valid `w:sdtPr` from the modeled fields.
913
+ */
914
+ rawPropertiesXml?: string;
915
+ /** The original `<w:sdtEndPr>` serialized verbatim, if present. */
916
+ rawEndPropertiesXml?: string;
917
+ }
918
+ /**
919
+ * Inline SDT (content control within a paragraph)
920
+ */
921
+ interface InlineSdt {
922
+ type: 'inlineSdt';
923
+ /** SDT properties */
924
+ properties: SdtProperties;
925
+ /**
926
+ * Inline content held inside the control. OOXML allows runs,
927
+ * hyperlinks, simple/complex fields, nested SDTs, and math at this
928
+ * level; the renderer must descend into all of them so docProps-bound
929
+ * fields and similar template content survive paged rendering.
930
+ */
931
+ content: (Run | Hyperlink | SimpleField | ComplexField | InlineSdt | MathEquation)[];
932
+ }
933
+ /**
934
+ * Block-level SDT (content control wrapping block content).
935
+ *
936
+ * `content` is `BlockContent[]` (not just paragraphs/tables) so a nested
937
+ * block SDT survives the round trip. `CT_SdtContentBlock` also permits
938
+ * run-level content (bookmarks, etc.); that is carried through the same
939
+ * block-content parsing as elsewhere in the document.
940
+ */
941
+ interface BlockSdt {
942
+ type: 'blockSdt';
943
+ /** SDT properties */
944
+ properties: SdtProperties;
945
+ /** Block content inside the control */
946
+ content: BlockContent[];
947
+ }
948
+
891
949
  /**
892
950
  * Paragraph (`w:p`) — the union of inline content that can sit inside a
893
951
  * paragraph (runs, hyperlinks, bookmarks, fields, SDT, comment ranges,
@@ -1357,4 +1415,4 @@ interface Run {
1357
1415
  content: RunContent[];
1358
1416
  }
1359
1417
 
1360
- export type { ImagePadding as $, AbstractNumbering as A, BlockContent as B, Comment as C, Deletion as D, Endnote as E, Footnote as F, DrawingContent as G, Hyperlink as H, Image as I, EndnotePosition as J, EndnoteProperties as K, ListLevel as L, MoveFrom as M, NumberingDefinitions as N, Field as O, Paragraph as P, FieldCharContent as Q, Run as R, SectionProperties as S, Table as T, FieldType as U, FooterReference as V, FootnotePosition as W, FootnoteProperties as X, HeaderFooterType as Y, HeaderReference as Z, ImageCrop as _, CommentRangeEnd as a, ImagePosition as a0, ImageSize as a1, ImageTransform as a2, ImageWrap as a3, InlineSdt as a4, InstrTextContent as a5, LevelSuffix as a6, LineNumberRestart as a7, ListRendering as a8, MathEquation as a9, TextBox as aA, VerticalAlign as aB, MoveFromRangeEnd as aa, MoveFromRangeStart as ab, MoveToRangeEnd as ac, MoveToRangeStart as ad, NoBreakHyphenContent as ae, NoteNumberRestart as af, NoteReferenceContent as ag, NumberingInstance as ah, PageOrientation as ai, PropertyChangeInfo as aj, RunPropertyChange as ak, SdtProperties as al, SdtType as am, Section as an, SectionStart as ao, Shape as ap, ShapeContent as aq, ShapeFill as ar, ShapeOutline as as, ShapeTextBody as at, ShapeType as au, SimpleField as av, SoftHyphenContent as aw, SymbolContent as ax, TabContent as ay, TableStructuralChangeInfo as az, CommentRangeStart as b, DocumentBody as c, Insertion as d, MoveTo as e, ParagraphContent as f, RunContent as g, TableCell as h, TableRow as i, TextContent as j, TrackedChangeInfo as k, TrackedRunChange as l, RevisionInfo as m, CellMarker as n, NumberFormat as o, ParagraphPropertyChange as p, TablePropertyChange as q, TableCellPropertyChange as r, TableRowPropertyChange as s, BreakContent as t, HeaderFooter as u, BlockSdt as v, BookmarkEnd as w, BookmarkStart as x, Column as y, ComplexField as z };
1418
+ export type { HeaderFooterType as $, AbstractNumbering as A, BlockContent as B, Comment as C, Deletion as D, Endnote as E, Footnote as F, BookmarkStart as G, Hyperlink as H, Image as I, Column as J, ComplexField as K, ListLevel as L, MoveFrom as M, NumberingDefinitions as N, DrawingContent as O, Paragraph as P, EndnotePosition as Q, Run as R, SectionProperties as S, Table as T, EndnoteProperties as U, Field as V, FieldCharContent as W, FieldType as X, FooterReference as Y, FootnotePosition as Z, FootnoteProperties as _, CommentRangeEnd as a, HeaderReference as a0, ImageCrop as a1, ImagePadding as a2, ImagePosition as a3, ImageSize as a4, ImageTransform as a5, ImageWrap as a6, InlineSdt as a7, InstrTextContent as a8, LevelSuffix as a9, TableStructuralChangeInfo as aA, TextBox as aB, VerticalAlign as aC, LineNumberRestart as aa, ListRendering as ab, MathEquation as ac, MoveFromRangeEnd as ad, MoveFromRangeStart as ae, MoveToRangeEnd as af, MoveToRangeStart as ag, NoBreakHyphenContent as ah, NoteNumberRestart as ai, NoteReferenceContent as aj, NumberingInstance as ak, PageOrientation as al, PropertyChangeInfo as am, RunPropertyChange as an, Section as ao, SectionStart as ap, Shape as aq, ShapeContent as ar, ShapeFill as as, ShapeOutline as at, ShapeTextBody as au, ShapeType as av, SimpleField as aw, SoftHyphenContent as ax, SymbolContent as ay, TabContent as az, CommentRangeStart as b, DocumentBody as c, Insertion as d, MoveTo as e, ParagraphContent as f, RunContent as g, TableCell as h, TableRow as i, TextContent as j, TrackedChangeInfo as k, TrackedRunChange as l, RevisionInfo as m, CellMarker as n, NumberFormat as o, ParagraphPropertyChange as p, TablePropertyChange as q, TableCellPropertyChange as r, TableRowPropertyChange as s, SdtType as t, SdtProperties as u, SdtDataBinding as v, BlockSdt as w, BreakContent as x, HeaderFooter as y, BookmarkEnd as z };