@eigenpal/docx-editor-core 1.6.0 → 1.6.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 (184) hide show
  1. package/dist/agent/index.d.mts +3 -3
  2. package/dist/agent/index.d.ts +3 -3
  3. package/dist/agent/index.js +1 -1
  4. package/dist/agent/index.mjs +1 -1
  5. package/dist/chunk-47SKD7QB.mjs +4 -0
  6. package/dist/{chunk-CDGV7CLS.js → chunk-4HNEXEGS.js} +1 -1
  7. package/dist/chunk-4U2S3WV2.js +1 -0
  8. package/dist/{chunk-C57BOE7B.mjs → chunk-5EP47PMQ.mjs} +1 -1
  9. package/dist/chunk-7EU6E64E.mjs +1 -0
  10. package/dist/{chunk-E7UN3PVC.mjs → chunk-A7C3DGQA.mjs} +1 -1
  11. package/dist/chunk-BMP2OSXE.js +1 -0
  12. package/dist/{chunk-2KUOYHXX.js → chunk-DEQFU56O.js} +1 -1
  13. package/dist/chunk-DFDL337G.js +4 -0
  14. package/dist/chunk-DKUHG27E.js +1 -0
  15. package/dist/{chunk-NY36MZ55.mjs → chunk-DU5TWD2W.mjs} +1 -1
  16. package/dist/chunk-DUVSDFRG.js +2 -0
  17. package/dist/{chunk-CWPIXUU2.js → chunk-DUXHJ6QP.js} +1 -1
  18. package/dist/chunk-HQ76VZAN.mjs +1 -0
  19. package/dist/{chunk-5JULVEYK.mjs → chunk-ICNIAAH7.mjs} +1 -1
  20. package/dist/{chunk-F44XU6G5.js → chunk-K7NSOCSY.js} +1 -1
  21. package/dist/{chunk-RGHRXIIZ.js → chunk-KEDY4GFG.js} +2 -2
  22. package/dist/{chunk-WEQA5PPW.mjs → chunk-KPWWI5UW.mjs} +1 -1
  23. package/dist/chunk-NKIDBERV.js +1 -0
  24. package/dist/chunk-NN2EJIO7.mjs +1 -0
  25. package/dist/{chunk-YMXWLXVF.mjs → chunk-O4RCQNUW.mjs} +1 -1
  26. package/dist/chunk-O5L4BZCZ.mjs +1 -0
  27. package/dist/chunk-OSTMAXZZ.mjs +1 -0
  28. package/dist/{chunk-XTPT4TNP.mjs → chunk-OWGY46IW.mjs} +1 -1
  29. package/dist/chunk-PGWY6UFK.js +1 -0
  30. package/dist/{chunk-T3UP6LF5.js → chunk-PM4KDJJ2.js} +1 -1
  31. package/dist/{chunk-6AGU57TL.mjs → chunk-QCPISGPW.mjs} +1 -1
  32. package/dist/{chunk-WQJWT4RB.mjs → chunk-QRBFMR7Z.mjs} +1 -1
  33. package/dist/chunk-SHZOAUHB.mjs +1 -0
  34. package/dist/chunk-TT3ILFZC.js +1 -0
  35. package/dist/chunk-TXAB4I4M.mjs +2 -0
  36. package/dist/{chunk-BBJMUBTD.mjs → chunk-VMBCUUZM.mjs} +1 -1
  37. package/dist/{chunk-7UMOUKSF.js → chunk-WTIN6QHX.js} +1 -1
  38. package/dist/{chunk-V3NE7Q22.js → chunk-WVY2UXAK.js} +1 -1
  39. package/dist/{chunk-EJ2JAYRI.js → chunk-XCTYXYEU.js} +1 -1
  40. package/dist/{chunk-2ZTKTE7P.js → chunk-XCXQWCV2.js} +1 -1
  41. package/dist/{chunk-KSW6W2EK.mjs → chunk-YSBX4LFA.mjs} +1 -1
  42. package/dist/{chunk-DX5XU6JN.js → chunk-YUHOVME2.js} +1 -1
  43. package/dist/{content-CbBCrsr0.d.mts → content-BEFz1zcs.d.mts} +1 -1
  44. package/dist/{content-BebvPfXc.d.ts → content-DNcMlHU0.d.ts} +1 -1
  45. package/dist/{contentControlValues-Com1GnZS.d.ts → contentControlValues-2pV4M4kG.d.ts} +1 -1
  46. package/dist/{contentControlValues-DVJyudKU.d.mts → contentControlValues-CKWIIkkr.d.mts} +1 -1
  47. package/dist/core-plugins.d.mts +1 -1
  48. package/dist/core-plugins.d.ts +1 -1
  49. package/dist/core-plugins.js +1 -1
  50. package/dist/core-plugins.mjs +1 -1
  51. package/dist/core.d.mts +6 -6
  52. package/dist/core.d.ts +6 -6
  53. package/dist/core.js +1 -1
  54. package/dist/core.mjs +1 -1
  55. package/dist/docx/index.d.mts +1 -1
  56. package/dist/docx/index.d.ts +1 -1
  57. package/dist/docx/index.js +1 -1
  58. package/dist/docx/index.mjs +1 -1
  59. package/dist/docx/parser.d.mts +1 -1
  60. package/dist/docx/parser.d.ts +1 -1
  61. package/dist/docx/parser.js +1 -1
  62. package/dist/docx/parser.mjs +1 -1
  63. package/dist/docx/rezip.d.mts +1 -1
  64. package/dist/docx/rezip.d.ts +1 -1
  65. package/dist/docx/serializer/index.d.mts +2 -2
  66. package/dist/docx/serializer/index.d.ts +2 -2
  67. package/dist/editor/index.d.mts +1 -1
  68. package/dist/editor/index.d.ts +1 -1
  69. package/dist/editor/index.js +1 -1
  70. package/dist/editor/index.mjs +1 -1
  71. package/dist/{fontLoader-D9SBYuZZ.d.ts → fontLoader-CH12AtFF.d.ts} +1 -1
  72. package/dist/{fontLoader-B4uFKpAy.d.mts → fontLoader-D3X2Qgb_.d.mts} +1 -1
  73. package/dist/{headerFooterLayout-CtVsfqxQ.d.ts → headerFooterLayout-BdGTU0IA.d.ts} +31 -16
  74. package/dist/{headerFooterLayout-D2LZLkDC.d.mts → headerFooterLayout-D5-u-IsD.d.mts} +31 -16
  75. package/dist/headless.d.mts +4 -4
  76. package/dist/headless.d.ts +4 -4
  77. package/dist/headless.js +1 -1
  78. package/dist/headless.mjs +1 -1
  79. package/dist/layout-bridge/index.d.mts +2 -2
  80. package/dist/layout-bridge/index.d.ts +2 -2
  81. package/dist/layout-bridge/index.js +1 -1
  82. package/dist/layout-bridge/index.mjs +1 -1
  83. package/dist/layout-bridge/measuring/index.d.mts +1 -1
  84. package/dist/layout-bridge/measuring/index.d.ts +1 -1
  85. package/dist/layout-bridge/measuring/index.js +1 -1
  86. package/dist/layout-bridge/measuring/index.mjs +1 -1
  87. package/dist/layout-bridge/tableInsertHover.js +1 -1
  88. package/dist/layout-bridge/tableInsertHover.mjs +1 -1
  89. package/dist/layout-bridge/toFlowBlocks.d.mts +1 -1
  90. package/dist/layout-bridge/toFlowBlocks.d.ts +1 -1
  91. package/dist/layout-bridge/toFlowBlocks.js +1 -1
  92. package/dist/layout-bridge/toFlowBlocks.mjs +1 -1
  93. package/dist/layout-engine/index.d.mts +1 -1
  94. package/dist/layout-engine/index.d.ts +1 -1
  95. package/dist/layout-engine/index.js +1 -1
  96. package/dist/layout-engine/index.mjs +1 -1
  97. package/dist/layout-engine/types.d.mts +1 -1
  98. package/dist/layout-engine/types.d.ts +1 -1
  99. package/dist/layout-painter/index.d.mts +2 -2
  100. package/dist/layout-painter/index.d.ts +2 -2
  101. package/dist/layout-painter/index.js +1 -1
  102. package/dist/layout-painter/index.mjs +1 -1
  103. package/dist/layout-painter/renderPage.d.mts +2 -2
  104. package/dist/layout-painter/renderPage.d.ts +2 -2
  105. package/dist/layout-painter/renderPage.js +1 -1
  106. package/dist/layout-painter/renderPage.mjs +1 -1
  107. package/dist/managers/AutoSaveManager.d.mts +1 -1
  108. package/dist/managers/AutoSaveManager.d.ts +1 -1
  109. package/dist/managers/TableSelectionManager.d.mts +1 -1
  110. package/dist/managers/TableSelectionManager.d.ts +1 -1
  111. package/dist/managers/types.d.mts +1 -1
  112. package/dist/managers/types.d.ts +1 -1
  113. package/dist/mcp-cli.mjs +23 -23
  114. package/dist/mcp.d.mts +1 -1
  115. package/dist/mcp.d.ts +1 -1
  116. package/dist/mcp.js +2 -2
  117. package/dist/mcp.mjs +1 -1
  118. package/dist/{nodes-BvO8GGD4.d.mts → nodes-5w_QaI3g.d.mts} +13 -1
  119. package/dist/{nodes-Bd6tTkp0.d.ts → nodes-qQdZtu3Z.d.ts} +13 -1
  120. package/dist/prosemirror/applyFormatting.js +1 -1
  121. package/dist/prosemirror/applyFormatting.mjs +1 -1
  122. package/dist/prosemirror/commands/formatting.js +1 -1
  123. package/dist/prosemirror/commands/formatting.mjs +1 -1
  124. package/dist/prosemirror/commands/index.js +1 -1
  125. package/dist/prosemirror/commands/index.mjs +1 -1
  126. package/dist/prosemirror/commands/paragraph.js +1 -1
  127. package/dist/prosemirror/commands/paragraph.mjs +1 -1
  128. package/dist/prosemirror/commentIdAllocator.d.mts +1 -1
  129. package/dist/prosemirror/commentIdAllocator.d.ts +1 -1
  130. package/dist/prosemirror/commentOps.d.mts +1 -1
  131. package/dist/prosemirror/commentOps.d.ts +1 -1
  132. package/dist/prosemirror/conversion/fromProseDoc.d.mts +1 -1
  133. package/dist/prosemirror/conversion/fromProseDoc.d.ts +1 -1
  134. package/dist/prosemirror/conversion/fromProseDoc.js +1 -1
  135. package/dist/prosemirror/conversion/fromProseDoc.mjs +1 -1
  136. package/dist/prosemirror/conversion/index.d.mts +1 -1
  137. package/dist/prosemirror/conversion/index.d.ts +1 -1
  138. package/dist/prosemirror/conversion/index.js +1 -1
  139. package/dist/prosemirror/conversion/index.mjs +1 -1
  140. package/dist/prosemirror/extensions/index.js +1 -1
  141. package/dist/prosemirror/extensions/index.mjs +1 -1
  142. package/dist/prosemirror/index.d.mts +3 -3
  143. package/dist/prosemirror/index.d.ts +3 -3
  144. package/dist/prosemirror/index.js +2 -2
  145. package/dist/prosemirror/index.mjs +2 -2
  146. package/dist/prosemirror/plugins/index.d.mts +1 -1
  147. package/dist/prosemirror/plugins/index.d.ts +1 -1
  148. package/dist/prosemirror/queries.d.mts +1 -1
  149. package/dist/prosemirror/queries.d.ts +1 -1
  150. package/dist/prosemirror/schema/index.d.mts +2 -2
  151. package/dist/prosemirror/schema/index.d.ts +2 -2
  152. package/dist/prosemirror/schema/index.js +1 -1
  153. package/dist/prosemirror/schema/index.mjs +1 -1
  154. package/dist/prosemirror/utils/extractTrackedChanges.d.mts +1 -1
  155. package/dist/prosemirror/utils/extractTrackedChanges.d.ts +1 -1
  156. package/dist/{sectionPropertiesSerializer-CzgskSoA.d.ts → sectionPropertiesSerializer-BJSNK-Wl.d.ts} +1 -1
  157. package/dist/{sectionPropertiesSerializer-D3yI82iZ.d.mts → sectionPropertiesSerializer-DI3OIQ1j.d.mts} +1 -1
  158. package/dist/types/content.d.mts +1 -1
  159. package/dist/types/content.d.ts +1 -1
  160. package/dist/types/document.d.mts +2 -2
  161. package/dist/types/document.d.ts +2 -2
  162. package/dist/utils/comments.d.mts +1 -1
  163. package/dist/utils/comments.d.ts +1 -1
  164. package/dist/utils/index.d.mts +2 -2
  165. package/dist/utils/index.d.ts +2 -2
  166. package/dist/{variableDetector-D2-xDa2O.d.mts → variableDetector-7xBsshP0.d.mts} +1 -1
  167. package/dist/{variableDetector-d-PpDlNV.d.ts → variableDetector-Bv5Tm0D-.d.ts} +1 -1
  168. package/package.json +1 -1
  169. package/dist/chunk-2KPOGFFR.js +0 -1
  170. package/dist/chunk-34DJT72K.js +0 -1
  171. package/dist/chunk-4QJEMD23.mjs +0 -4
  172. package/dist/chunk-4QSFBX26.mjs +0 -1
  173. package/dist/chunk-4SZAFWLV.mjs +0 -1
  174. package/dist/chunk-6KYOT4E7.js +0 -4
  175. package/dist/chunk-77X765ZO.js +0 -1
  176. package/dist/chunk-AXVWVIIN.js +0 -1
  177. package/dist/chunk-BKP5QMTS.js +0 -1
  178. package/dist/chunk-IM56AITE.mjs +0 -1
  179. package/dist/chunk-KK673XRZ.mjs +0 -1
  180. package/dist/chunk-M65C4SQJ.mjs +0 -2
  181. package/dist/chunk-NO6PIL32.mjs +0 -1
  182. package/dist/chunk-NTYJIOUE.js +0 -2
  183. package/dist/chunk-WCB25ESG.mjs +0 -1
  184. package/dist/chunk-WWG6PUWU.js +0 -1
@@ -9,11 +9,11 @@
9
9
  */
10
10
  export { A as AgentContextOptions, S as ContextSelectionOptions, D as DocumentAgent, E as ExtendedSelectionContext, F as FormattedTextSegment, a as FormattingSummary, I as InsertHyperlinkOptions, b as InsertImageOptions, c as InsertTableOptions, d as InsertTextOptions, e as SelectionContextOptions, f as buildExtendedSelectionContext, g as buildSelectionContext, h as buildSelectionContextFromContext, i as createAgent, j as createAgentFromDocument, k as executeCommand, l as executeCommands, m as getAgentContext, n as getDocumentSummary, o as getSelectionFormattingSummary } from '../selectionContext-BjMyVQZO.mjs';
11
11
  import { T as TextFormatting } from '../formatting-DFtuRFQY.mjs';
12
- import { D as DocumentBody, P as Paragraph, H as Hyperlink, k as Run, T as Table, s as SdtProperties } from '../content-CbBCrsr0.mjs';
12
+ import { D as DocumentBody, P as Paragraph, H as Hyperlink, l as Run, T as Table, t as SdtProperties } from '../content-BEFz1zcs.mjs';
13
13
  import { Position } from '../types/agentApi.mjs';
14
14
  export { AIAction, AIActionRequest, AgentCommand, AgentContext, AgentResponse, SelectionContext as AgentSelectionContext, ApplyStyleCommand, ApplyVariablesCommand, DEFAULT_AI_ACTIONS, DeleteTextCommand, FormatParagraphCommand, FormatTextCommand, InsertHyperlinkCommand, InsertImageCommand, InsertParagraphBreakCommand, InsertTableCommand, InsertTextCommand, MergeParagraphsCommand, ParagraphContext, ParagraphOutline, Range, RemoveHyperlinkCommand, ReplaceTextCommand, SectionInfo, SetVariableCommand, SplitParagraphCommand, StyleInfo, SuggestedAction, comparePositions, createCollapsedRange, createCommand, createRange, getActionDescription, getActionLabel, isPositionInRange } from '../types/agentApi.mjs';
15
- import { a as ContentControlFilter } from '../contentControlValues-DVJyudKU.mjs';
16
- export { C as ContentControlBoundError, b as ContentControlInfo, c as ContentControlLockedError, d as ContentControlNotFoundError, e as ContentControlTypeError, f as ContentControlValue, g as ContentControlValueError, h as findContentControl, i as findContentControls, j as formatSdtDate, k as getContentControlText, r as removeContentControl, s as setContentControlContent, l as setContentControlValue } from '../contentControlValues-DVJyudKU.mjs';
15
+ import { a as ContentControlFilter } from '../contentControlValues-CKWIIkkr.mjs';
16
+ export { C as ContentControlBoundError, b as ContentControlInfo, c as ContentControlLockedError, d as ContentControlNotFoundError, e as ContentControlTypeError, f as ContentControlValue, g as ContentControlValueError, h as findContentControl, i as findContentControls, j as formatSdtDate, k as getContentControlText, r as removeContentControl, s as setContentControlContent, l as setContentControlValue } from '../contentControlValues-CKWIIkkr.mjs';
17
17
  import { Document } from '../types/document.mjs';
18
18
  import '../selectiveSave-jinP_4xa.mjs';
19
19
  import '../docxInput-DTbCa48g.mjs';
@@ -9,11 +9,11 @@
9
9
  */
10
10
  export { A as AgentContextOptions, S as ContextSelectionOptions, D as DocumentAgent, E as ExtendedSelectionContext, F as FormattedTextSegment, a as FormattingSummary, I as InsertHyperlinkOptions, b as InsertImageOptions, c as InsertTableOptions, d as InsertTextOptions, e as SelectionContextOptions, f as buildExtendedSelectionContext, g as buildSelectionContext, h as buildSelectionContextFromContext, i as createAgent, j as createAgentFromDocument, k as executeCommand, l as executeCommands, m as getAgentContext, n as getDocumentSummary, o as getSelectionFormattingSummary } from '../selectionContext-BJZZW1JA.js';
11
11
  import { T as TextFormatting } from '../formatting-JhqWT_XM.js';
12
- import { D as DocumentBody, P as Paragraph, H as Hyperlink, k as Run, T as Table, s as SdtProperties } from '../content-BebvPfXc.js';
12
+ import { D as DocumentBody, P as Paragraph, H as Hyperlink, l as Run, T as Table, t as SdtProperties } from '../content-DNcMlHU0.js';
13
13
  import { Position } from '../types/agentApi.js';
14
14
  export { AIAction, AIActionRequest, AgentCommand, AgentContext, AgentResponse, SelectionContext as AgentSelectionContext, ApplyStyleCommand, ApplyVariablesCommand, DEFAULT_AI_ACTIONS, DeleteTextCommand, FormatParagraphCommand, FormatTextCommand, InsertHyperlinkCommand, InsertImageCommand, InsertParagraphBreakCommand, InsertTableCommand, InsertTextCommand, MergeParagraphsCommand, ParagraphContext, ParagraphOutline, Range, RemoveHyperlinkCommand, ReplaceTextCommand, SectionInfo, SetVariableCommand, SplitParagraphCommand, StyleInfo, SuggestedAction, comparePositions, createCollapsedRange, createCommand, createRange, getActionDescription, getActionLabel, isPositionInRange } from '../types/agentApi.js';
15
- import { a as ContentControlFilter } from '../contentControlValues-Com1GnZS.js';
16
- export { C as ContentControlBoundError, b as ContentControlInfo, c as ContentControlLockedError, d as ContentControlNotFoundError, e as ContentControlTypeError, f as ContentControlValue, g as ContentControlValueError, h as findContentControl, i as findContentControls, j as formatSdtDate, k as getContentControlText, r as removeContentControl, s as setContentControlContent, l as setContentControlValue } from '../contentControlValues-Com1GnZS.js';
15
+ import { a as ContentControlFilter } from '../contentControlValues-2pV4M4kG.js';
16
+ export { C as ContentControlBoundError, b as ContentControlInfo, c as ContentControlLockedError, d as ContentControlNotFoundError, e as ContentControlTypeError, f as ContentControlValue, g as ContentControlValueError, h as findContentControl, i as findContentControls, j as formatSdtDate, k as getContentControlText, r as removeContentControl, s as setContentControlContent, l as setContentControlValue } from '../contentControlValues-2pV4M4kG.js';
17
17
  import { Document } from '../types/document.js';
18
18
  import '../selectiveSave-CWaPEv0B.js';
19
19
  import '../docxInput-DTbCa48g.js';
@@ -1 +1 @@
1
- 'use strict';var chunkXXU7YQVV_js=require('../chunk-XXU7YQVV.js'),chunkF44XU6G5_js=require('../chunk-F44XU6G5.js');require('../chunk-GFM6PERG.js'),require('../chunk-U4UCHBZ7.js');var chunkFETIBXTH_js=require('../chunk-FETIBXTH.js');require('../chunk-JQUIUKRO.js'),require('../chunk-4JPHW7ZI.js'),require('../chunk-4BFNWPKW.js'),require('../chunk-V3NE7Q22.js'),require('../chunk-6KYOT4E7.js'),require('../chunk-FIGLFSNR.js'),require('../chunk-QVRMX2AC.js');var chunkFO6IX2DB_js=require('../chunk-FO6IX2DB.js');require('../chunk-LW5OFHSW.js'),require('../chunk-Z3LGMBJC.js'),require('../chunk-C2BAPYGJ.js'),require('../chunk-BJSG6TEG.js'),require('../chunk-GSKMHXHG.js'),require('../chunk-H57LNDBH.js'),require('../chunk-3R7QHNI5.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"DEFAULT_AI_ACTIONS",{enumerable:true,get:function(){return chunkXXU7YQVV_js.g}});Object.defineProperty(exports,"comparePositions",{enumerable:true,get:function(){return chunkXXU7YQVV_js.d}});Object.defineProperty(exports,"createCollapsedRange",{enumerable:true,get:function(){return chunkXXU7YQVV_js.a}});Object.defineProperty(exports,"createCommand",{enumerable:true,get:function(){return chunkXXU7YQVV_js.h}});Object.defineProperty(exports,"createRange",{enumerable:true,get:function(){return chunkXXU7YQVV_js.b}});Object.defineProperty(exports,"getActionDescription",{enumerable:true,get:function(){return chunkXXU7YQVV_js.f}});Object.defineProperty(exports,"getActionLabel",{enumerable:true,get:function(){return chunkXXU7YQVV_js.e}});Object.defineProperty(exports,"isPositionInRange",{enumerable:true,get:function(){return chunkXXU7YQVV_js.c}});Object.defineProperty(exports,"DocumentAgent",{enumerable:true,get:function(){return chunkF44XU6G5_js.a}});Object.defineProperty(exports,"buildExtendedSelectionContext",{enumerable:true,get:function(){return chunkF44XU6G5_js.h}});Object.defineProperty(exports,"buildSelectionContext",{enumerable:true,get:function(){return chunkF44XU6G5_js.g}});Object.defineProperty(exports,"buildSelectionContextFromContext",{enumerable:true,get:function(){return chunkF44XU6G5_js.e}});Object.defineProperty(exports,"createAgent",{enumerable:true,get:function(){return chunkF44XU6G5_js.b}});Object.defineProperty(exports,"createAgentFromDocument",{enumerable:true,get:function(){return chunkF44XU6G5_js.c}});Object.defineProperty(exports,"getAgentContext",{enumerable:true,get:function(){return chunkF44XU6G5_js.d}});Object.defineProperty(exports,"getDocumentSummary",{enumerable:true,get:function(){return chunkF44XU6G5_js.f}});Object.defineProperty(exports,"getSelectionFormattingSummary",{enumerable:true,get:function(){return chunkF44XU6G5_js.i}});Object.defineProperty(exports,"executeCommand",{enumerable:true,get:function(){return chunkFETIBXTH_js.a}});Object.defineProperty(exports,"executeCommands",{enumerable:true,get:function(){return chunkFETIBXTH_js.b}});Object.defineProperty(exports,"ContentControlBoundError",{enumerable:true,get:function(){return chunkFO6IX2DB_js.C}});Object.defineProperty(exports,"ContentControlLockedError",{enumerable:true,get:function(){return chunkFO6IX2DB_js.A}});Object.defineProperty(exports,"ContentControlNotFoundError",{enumerable:true,get:function(){return chunkFO6IX2DB_js.z}});Object.defineProperty(exports,"ContentControlTypeError",{enumerable:true,get:function(){return chunkFO6IX2DB_js.B}});Object.defineProperty(exports,"ContentControlValueError",{enumerable:true,get:function(){return chunkFO6IX2DB_js.K}});Object.defineProperty(exports,"RepeatingSectionError",{enumerable:true,get:function(){return chunkFO6IX2DB_js.R}});Object.defineProperty(exports,"addRepeatingSectionItem",{enumerable:true,get:function(){return chunkFO6IX2DB_js.T}});Object.defineProperty(exports,"countCharacters",{enumerable:true,get:function(){return chunkFO6IX2DB_js.g}});Object.defineProperty(exports,"countWords",{enumerable:true,get:function(){return chunkFO6IX2DB_js.f}});Object.defineProperty(exports,"findContentControl",{enumerable:true,get:function(){return chunkFO6IX2DB_js.y}});Object.defineProperty(exports,"findContentControls",{enumerable:true,get:function(){return chunkFO6IX2DB_js.x}});Object.defineProperty(exports,"formatSdtDate",{enumerable:true,get:function(){return chunkFO6IX2DB_js.L}});Object.defineProperty(exports,"getBlockIndexForParagraph",{enumerable:true,get:function(){return chunkFO6IX2DB_js.v}});Object.defineProperty(exports,"getBodyCharacterCount",{enumerable:true,get:function(){return chunkFO6IX2DB_js.i}});Object.defineProperty(exports,"getBodyText",{enumerable:true,get:function(){return chunkFO6IX2DB_js.e}});Object.defineProperty(exports,"getBodyWordCount",{enumerable:true,get:function(){return chunkFO6IX2DB_js.h}});Object.defineProperty(exports,"getContentControlText",{enumerable:true,get:function(){return chunkFO6IX2DB_js.w}});Object.defineProperty(exports,"getFormattingAtPosition",{enumerable:true,get:function(){return chunkFO6IX2DB_js.l}});Object.defineProperty(exports,"getHyperlinkAtPosition",{enumerable:true,get:function(){return chunkFO6IX2DB_js.n}});Object.defineProperty(exports,"getHyperlinkText",{enumerable:true,get:function(){return chunkFO6IX2DB_js.c}});Object.defineProperty(exports,"getParagraphAtIndex",{enumerable:true,get:function(){return chunkFO6IX2DB_js.u}});Object.defineProperty(exports,"getParagraphText",{enumerable:true,get:function(){return chunkFO6IX2DB_js.a}});Object.defineProperty(exports,"getParagraphs",{enumerable:true,get:function(){return chunkFO6IX2DB_js.t}});Object.defineProperty(exports,"getRunText",{enumerable:true,get:function(){return chunkFO6IX2DB_js.b}});Object.defineProperty(exports,"getTableText",{enumerable:true,get:function(){return chunkFO6IX2DB_js.d}});Object.defineProperty(exports,"getTextAfter",{enumerable:true,get:function(){return chunkFO6IX2DB_js.k}});Object.defineProperty(exports,"getTextBefore",{enumerable:true,get:function(){return chunkFO6IX2DB_js.j}});Object.defineProperty(exports,"hasHyperlinks",{enumerable:true,get:function(){return chunkFO6IX2DB_js.r}});Object.defineProperty(exports,"hasImages",{enumerable:true,get:function(){return chunkFO6IX2DB_js.q}});Object.defineProperty(exports,"hasTables",{enumerable:true,get:function(){return chunkFO6IX2DB_js.s}});Object.defineProperty(exports,"isHeadingStyle",{enumerable:true,get:function(){return chunkFO6IX2DB_js.o}});Object.defineProperty(exports,"isPositionInHyperlink",{enumerable:true,get:function(){return chunkFO6IX2DB_js.m}});Object.defineProperty(exports,"isRepeatingSection",{enumerable:true,get:function(){return chunkFO6IX2DB_js.P}});Object.defineProperty(exports,"isRepeatingSectionItem",{enumerable:true,get:function(){return chunkFO6IX2DB_js.Q}});Object.defineProperty(exports,"parseHeadingLevel",{enumerable:true,get:function(){return chunkFO6IX2DB_js.p}});Object.defineProperty(exports,"removeContentControl",{enumerable:true,get:function(){return chunkFO6IX2DB_js.J}});Object.defineProperty(exports,"removeRepeatingSectionItem",{enumerable:true,get:function(){return chunkFO6IX2DB_js.U}});Object.defineProperty(exports,"setContentControlContent",{enumerable:true,get:function(){return chunkFO6IX2DB_js.I}});Object.defineProperty(exports,"setContentControlValue",{enumerable:true,get:function(){return chunkFO6IX2DB_js.N}});
1
+ 'use strict';var chunkXXU7YQVV_js=require('../chunk-XXU7YQVV.js'),chunkK7NSOCSY_js=require('../chunk-K7NSOCSY.js');require('../chunk-GFM6PERG.js'),require('../chunk-U4UCHBZ7.js');var chunkFETIBXTH_js=require('../chunk-FETIBXTH.js');require('../chunk-JQUIUKRO.js'),require('../chunk-4JPHW7ZI.js'),require('../chunk-4BFNWPKW.js'),require('../chunk-WVY2UXAK.js'),require('../chunk-DFDL337G.js'),require('../chunk-FIGLFSNR.js'),require('../chunk-QVRMX2AC.js');var chunkFO6IX2DB_js=require('../chunk-FO6IX2DB.js');require('../chunk-LW5OFHSW.js'),require('../chunk-Z3LGMBJC.js'),require('../chunk-C2BAPYGJ.js'),require('../chunk-BJSG6TEG.js'),require('../chunk-GSKMHXHG.js'),require('../chunk-H57LNDBH.js'),require('../chunk-3R7QHNI5.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"DEFAULT_AI_ACTIONS",{enumerable:true,get:function(){return chunkXXU7YQVV_js.g}});Object.defineProperty(exports,"comparePositions",{enumerable:true,get:function(){return chunkXXU7YQVV_js.d}});Object.defineProperty(exports,"createCollapsedRange",{enumerable:true,get:function(){return chunkXXU7YQVV_js.a}});Object.defineProperty(exports,"createCommand",{enumerable:true,get:function(){return chunkXXU7YQVV_js.h}});Object.defineProperty(exports,"createRange",{enumerable:true,get:function(){return chunkXXU7YQVV_js.b}});Object.defineProperty(exports,"getActionDescription",{enumerable:true,get:function(){return chunkXXU7YQVV_js.f}});Object.defineProperty(exports,"getActionLabel",{enumerable:true,get:function(){return chunkXXU7YQVV_js.e}});Object.defineProperty(exports,"isPositionInRange",{enumerable:true,get:function(){return chunkXXU7YQVV_js.c}});Object.defineProperty(exports,"DocumentAgent",{enumerable:true,get:function(){return chunkK7NSOCSY_js.a}});Object.defineProperty(exports,"buildExtendedSelectionContext",{enumerable:true,get:function(){return chunkK7NSOCSY_js.h}});Object.defineProperty(exports,"buildSelectionContext",{enumerable:true,get:function(){return chunkK7NSOCSY_js.g}});Object.defineProperty(exports,"buildSelectionContextFromContext",{enumerable:true,get:function(){return chunkK7NSOCSY_js.e}});Object.defineProperty(exports,"createAgent",{enumerable:true,get:function(){return chunkK7NSOCSY_js.b}});Object.defineProperty(exports,"createAgentFromDocument",{enumerable:true,get:function(){return chunkK7NSOCSY_js.c}});Object.defineProperty(exports,"getAgentContext",{enumerable:true,get:function(){return chunkK7NSOCSY_js.d}});Object.defineProperty(exports,"getDocumentSummary",{enumerable:true,get:function(){return chunkK7NSOCSY_js.f}});Object.defineProperty(exports,"getSelectionFormattingSummary",{enumerable:true,get:function(){return chunkK7NSOCSY_js.i}});Object.defineProperty(exports,"executeCommand",{enumerable:true,get:function(){return chunkFETIBXTH_js.a}});Object.defineProperty(exports,"executeCommands",{enumerable:true,get:function(){return chunkFETIBXTH_js.b}});Object.defineProperty(exports,"ContentControlBoundError",{enumerable:true,get:function(){return chunkFO6IX2DB_js.C}});Object.defineProperty(exports,"ContentControlLockedError",{enumerable:true,get:function(){return chunkFO6IX2DB_js.A}});Object.defineProperty(exports,"ContentControlNotFoundError",{enumerable:true,get:function(){return chunkFO6IX2DB_js.z}});Object.defineProperty(exports,"ContentControlTypeError",{enumerable:true,get:function(){return chunkFO6IX2DB_js.B}});Object.defineProperty(exports,"ContentControlValueError",{enumerable:true,get:function(){return chunkFO6IX2DB_js.K}});Object.defineProperty(exports,"RepeatingSectionError",{enumerable:true,get:function(){return chunkFO6IX2DB_js.R}});Object.defineProperty(exports,"addRepeatingSectionItem",{enumerable:true,get:function(){return chunkFO6IX2DB_js.T}});Object.defineProperty(exports,"countCharacters",{enumerable:true,get:function(){return chunkFO6IX2DB_js.g}});Object.defineProperty(exports,"countWords",{enumerable:true,get:function(){return chunkFO6IX2DB_js.f}});Object.defineProperty(exports,"findContentControl",{enumerable:true,get:function(){return chunkFO6IX2DB_js.y}});Object.defineProperty(exports,"findContentControls",{enumerable:true,get:function(){return chunkFO6IX2DB_js.x}});Object.defineProperty(exports,"formatSdtDate",{enumerable:true,get:function(){return chunkFO6IX2DB_js.L}});Object.defineProperty(exports,"getBlockIndexForParagraph",{enumerable:true,get:function(){return chunkFO6IX2DB_js.v}});Object.defineProperty(exports,"getBodyCharacterCount",{enumerable:true,get:function(){return chunkFO6IX2DB_js.i}});Object.defineProperty(exports,"getBodyText",{enumerable:true,get:function(){return chunkFO6IX2DB_js.e}});Object.defineProperty(exports,"getBodyWordCount",{enumerable:true,get:function(){return chunkFO6IX2DB_js.h}});Object.defineProperty(exports,"getContentControlText",{enumerable:true,get:function(){return chunkFO6IX2DB_js.w}});Object.defineProperty(exports,"getFormattingAtPosition",{enumerable:true,get:function(){return chunkFO6IX2DB_js.l}});Object.defineProperty(exports,"getHyperlinkAtPosition",{enumerable:true,get:function(){return chunkFO6IX2DB_js.n}});Object.defineProperty(exports,"getHyperlinkText",{enumerable:true,get:function(){return chunkFO6IX2DB_js.c}});Object.defineProperty(exports,"getParagraphAtIndex",{enumerable:true,get:function(){return chunkFO6IX2DB_js.u}});Object.defineProperty(exports,"getParagraphText",{enumerable:true,get:function(){return chunkFO6IX2DB_js.a}});Object.defineProperty(exports,"getParagraphs",{enumerable:true,get:function(){return chunkFO6IX2DB_js.t}});Object.defineProperty(exports,"getRunText",{enumerable:true,get:function(){return chunkFO6IX2DB_js.b}});Object.defineProperty(exports,"getTableText",{enumerable:true,get:function(){return chunkFO6IX2DB_js.d}});Object.defineProperty(exports,"getTextAfter",{enumerable:true,get:function(){return chunkFO6IX2DB_js.k}});Object.defineProperty(exports,"getTextBefore",{enumerable:true,get:function(){return chunkFO6IX2DB_js.j}});Object.defineProperty(exports,"hasHyperlinks",{enumerable:true,get:function(){return chunkFO6IX2DB_js.r}});Object.defineProperty(exports,"hasImages",{enumerable:true,get:function(){return chunkFO6IX2DB_js.q}});Object.defineProperty(exports,"hasTables",{enumerable:true,get:function(){return chunkFO6IX2DB_js.s}});Object.defineProperty(exports,"isHeadingStyle",{enumerable:true,get:function(){return chunkFO6IX2DB_js.o}});Object.defineProperty(exports,"isPositionInHyperlink",{enumerable:true,get:function(){return chunkFO6IX2DB_js.m}});Object.defineProperty(exports,"isRepeatingSection",{enumerable:true,get:function(){return chunkFO6IX2DB_js.P}});Object.defineProperty(exports,"isRepeatingSectionItem",{enumerable:true,get:function(){return chunkFO6IX2DB_js.Q}});Object.defineProperty(exports,"parseHeadingLevel",{enumerable:true,get:function(){return chunkFO6IX2DB_js.p}});Object.defineProperty(exports,"removeContentControl",{enumerable:true,get:function(){return chunkFO6IX2DB_js.J}});Object.defineProperty(exports,"removeRepeatingSectionItem",{enumerable:true,get:function(){return chunkFO6IX2DB_js.U}});Object.defineProperty(exports,"setContentControlContent",{enumerable:true,get:function(){return chunkFO6IX2DB_js.I}});Object.defineProperty(exports,"setContentControlValue",{enumerable:true,get:function(){return chunkFO6IX2DB_js.N}});
@@ -1 +1 @@
1
- export{g as DEFAULT_AI_ACTIONS,d as comparePositions,a as createCollapsedRange,h as createCommand,b as createRange,f as getActionDescription,e as getActionLabel,c as isPositionInRange}from'../chunk-MVZOTKNL.mjs';export{a as DocumentAgent,h as buildExtendedSelectionContext,g as buildSelectionContext,e as buildSelectionContextFromContext,b as createAgent,c as createAgentFromDocument,d as getAgentContext,f as getDocumentSummary,i as getSelectionFormattingSummary}from'../chunk-XTPT4TNP.mjs';import'../chunk-QZPVZY6S.mjs';import'../chunk-ARHPXIBJ.mjs';export{a as executeCommand,b as executeCommands}from'../chunk-B6FA4MJ5.mjs';import'../chunk-F24WZXN4.mjs';import'../chunk-2LVK7EF5.mjs';import'../chunk-3NRMSZX2.mjs';import'../chunk-C57BOE7B.mjs';import'../chunk-4QJEMD23.mjs';import'../chunk-MOCGHQ4A.mjs';import'../chunk-CDBKFBC2.mjs';export{C as ContentControlBoundError,A as ContentControlLockedError,z as ContentControlNotFoundError,B as ContentControlTypeError,K as ContentControlValueError,R as RepeatingSectionError,T as addRepeatingSectionItem,g as countCharacters,f as countWords,y as findContentControl,x as findContentControls,L as formatSdtDate,v as getBlockIndexForParagraph,i as getBodyCharacterCount,e as getBodyText,h as getBodyWordCount,w as getContentControlText,l as getFormattingAtPosition,n as getHyperlinkAtPosition,c as getHyperlinkText,u as getParagraphAtIndex,a as getParagraphText,t as getParagraphs,b as getRunText,d as getTableText,k as getTextAfter,j as getTextBefore,r as hasHyperlinks,q as hasImages,s as hasTables,o as isHeadingStyle,m as isPositionInHyperlink,P as isRepeatingSection,Q as isRepeatingSectionItem,p as parseHeadingLevel,J as removeContentControl,U as removeRepeatingSectionItem,I as setContentControlContent,N as setContentControlValue}from'../chunk-KOEWROYV.mjs';import'../chunk-3HLRRK6N.mjs';import'../chunk-W77JXDEV.mjs';import'../chunk-LE67NTCN.mjs';import'../chunk-KNY7SXPJ.mjs';import'../chunk-DI6CRWSW.mjs';import'../chunk-VJFIAFZ5.mjs';import'../chunk-3ANZ3252.mjs';import'../chunk-QYUPLKLP.mjs';
1
+ export{g as DEFAULT_AI_ACTIONS,d as comparePositions,a as createCollapsedRange,h as createCommand,b as createRange,f as getActionDescription,e as getActionLabel,c as isPositionInRange}from'../chunk-MVZOTKNL.mjs';export{a as DocumentAgent,h as buildExtendedSelectionContext,g as buildSelectionContext,e as buildSelectionContextFromContext,b as createAgent,c as createAgentFromDocument,d as getAgentContext,f as getDocumentSummary,i as getSelectionFormattingSummary}from'../chunk-OWGY46IW.mjs';import'../chunk-QZPVZY6S.mjs';import'../chunk-ARHPXIBJ.mjs';export{a as executeCommand,b as executeCommands}from'../chunk-B6FA4MJ5.mjs';import'../chunk-F24WZXN4.mjs';import'../chunk-2LVK7EF5.mjs';import'../chunk-3NRMSZX2.mjs';import'../chunk-5EP47PMQ.mjs';import'../chunk-47SKD7QB.mjs';import'../chunk-MOCGHQ4A.mjs';import'../chunk-CDBKFBC2.mjs';export{C as ContentControlBoundError,A as ContentControlLockedError,z as ContentControlNotFoundError,B as ContentControlTypeError,K as ContentControlValueError,R as RepeatingSectionError,T as addRepeatingSectionItem,g as countCharacters,f as countWords,y as findContentControl,x as findContentControls,L as formatSdtDate,v as getBlockIndexForParagraph,i as getBodyCharacterCount,e as getBodyText,h as getBodyWordCount,w as getContentControlText,l as getFormattingAtPosition,n as getHyperlinkAtPosition,c as getHyperlinkText,u as getParagraphAtIndex,a as getParagraphText,t as getParagraphs,b as getRunText,d as getTableText,k as getTextAfter,j as getTextBefore,r as hasHyperlinks,q as hasImages,s as hasTables,o as isHeadingStyle,m as isPositionInHyperlink,P as isRepeatingSection,Q as isRepeatingSectionItem,p as parseHeadingLevel,J as removeContentControl,U as removeRepeatingSectionItem,I as setContentControlContent,N as setContentControlValue}from'../chunk-KOEWROYV.mjs';import'../chunk-3HLRRK6N.mjs';import'../chunk-W77JXDEV.mjs';import'../chunk-LE67NTCN.mjs';import'../chunk-KNY7SXPJ.mjs';import'../chunk-DI6CRWSW.mjs';import'../chunk-VJFIAFZ5.mjs';import'../chunk-3ANZ3252.mjs';import'../chunk-QYUPLKLP.mjs';
@@ -0,0 +1,4 @@
1
+ import {h,j as j$2,k,g,A,y}from'./chunk-3HLRRK6N.mjs';import {c as c$1}from'./chunk-W77JXDEV.mjs';import {g as g$1}from'./chunk-KNY7SXPJ.mjs';import {d}from'./chunk-VJFIAFZ5.mjs';import {c,j as j$1,e,l,i,a,f,m,d as d$1,b,o,n,k as k$1}from'./chunk-3ANZ3252.mjs';var Xe={dk1:"000000",lt1:"FFFFFF",dk2:"44546A",lt2:"E7E6E6",accent1:"4472C4",accent2:"ED7D31",accent3:"A5A5A5",accent4:"FFC000",accent5:"5B9BD5",accent6:"70AD47",hlink:"0563C1",folHlink:"954F72"},ee={majorFont:{latin:"Calibri Light",ea:"",cs:"",fonts:{}},minorFont:{latin:"Calibri",ea:"",cs:"",fonts:{}}},we={name:"Office Theme",colorScheme:Xe,fontScheme:ee},yt=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];function bt(e){if(!e)return null;switch(d$1(e.name||"")){case "srgbClr":return j$1(e,"a","val")??j$1(e,null,"val")??null;case "sysClr":{let n=j$1(e,"a","lastClr")??j$1(e,null,"lastClr");if(n)return n;switch(j$1(e,"a","val")??j$1(e,null,"val")){case "windowText":case "menuText":case "captionText":case "btnText":return "000000";case "window":case "menu":case "btnFace":case "btnHighlight":return "FFFFFF";case "highlight":return "0078D7";case "highlightText":return "FFFFFF";case "grayText":return "808080";default:return null}}case "schemeClr":{j$1(e,"a","val")??j$1(e,null,"val");return null}default:return null}}function Tt(e$1){let t={...Xe};if(!e$1)return t;for(let n of yt){let o=e(e$1,"a",n);if(o){let r=i(o);if(r.length>0){let a=bt(r[0]);a&&(t[n]=a);}}}return t}function He(e$1){let t={latin:"",ea:"",cs:"",fonts:{}};if(!e$1)return t;let n=e(e$1,"a","latin");n&&(t.latin=j$1(n,"a","typeface")??j$1(n,null,"typeface")??"");let o=e(e$1,"a","ea");o&&(t.ea=j$1(o,"a","typeface")??j$1(o,null,"typeface")??"");let r=e(e$1,"a","cs");r&&(t.cs=j$1(r,"a","typeface")??j$1(r,null,"typeface")??"");let a=f(e$1,"a","font");for(let u of a){let l=j$1(u,"a","script")??j$1(u,null,"script"),f=j$1(u,"a","typeface")??j$1(u,null,"typeface");l&&f&&(t.fonts=t.fonts||{},t.fonts[l]=f);}return t}function xt(e$1){let t={...ee};if(!e$1)return t;let n=e(e$1,"a","majorFont");n&&(t.majorFont=He(n));let o=e(e$1,"a","minorFont");return o&&(t.minorFont=He(o)),t}function In(e$1){if(!e$1)return {...we};try{let t=c(e$1);if(!t)return {...we};let n=j$1(t,"a","name")??j$1(t,null,"name")??"Office Theme",o=e(t,"a","themeElements"),r=e(o,"a","clrScheme"),a=Tt(r),u=e(o,"a","fontScheme"),l=xt(u);return {name:n,colorScheme:a,fontScheme:l}}catch(t){return console.warn("Failed to parse theme:",t),{...we}}}function Ft(e,t="latin"){if(!e?.fontScheme?.majorFont)return ee.majorFont?.latin??"Calibri Light";let n=e.fontScheme.majorFont;return t==="latin"?n.latin||"Calibri Light":t==="ea"?n.ea||"":t==="cs"?n.cs||"":n.fonts?.[t]?n.fonts[t]:n.latin||"Calibri Light"}function Le(e,t="latin"){if(!e?.fontScheme?.minorFont)return ee.minorFont?.latin??"Calibri";let n=e.fontScheme.minorFont;return t==="latin"?n.latin||"Calibri":t==="ea"?n.ea||"":t==="cs"?n.cs||"":n.fonts?.[t]?n.fonts[t]:n.latin||"Calibri"}function Y(e,t){if(!t)return "Calibri";let n=t.toLowerCase().includes("major"),o=t.toLowerCase().includes("minor"),r="latin",a=t.toLowerCase();return a.includes("eastasia")?r="ea":(a.includes("bidi")||a.includes("cs"))&&(r="cs"),n?Ft(e,r):o?Le(e,r):Le(e,"latin")}function De(e){if(!e)return;let t=l(e,"w","w")??0,n=j$1(e,"w","type")??"dxa",o="dxa";return (n==="auto"||n==="dxa"||n==="nil"||n==="pct")&&(o=n),{value:t,type:o}}function D(e){return De(e)}function j(e){let t=j$1(e,"w","id"),n=t?parseInt(t,10):0,o=(j$1(e,"w","author")??"").trim(),r=(j$1(e,"w","date")??"").trim();return {id:Number.isInteger(n)&&n>=0?n:0,author:o.length>0?o:"Unknown",date:r.length>0?r:void 0}}function te(e){return j(e)}function V(e){if(!e)return;let o={style:j$1(e,"w","val")??"none"},r=l(e,"w","sz");r!==void 0&&(o.size=r);let a=l(e,"w","space");a!==void 0&&(o.space=a);let u=j$1(e,"w","color"),l$1=j$1(e,"w","themeColor"),f=j$1(e,"w","themeTint"),c=j$1(e,"w","themeShade");(u||l$1||f||c)&&(o.color={rgb:u??void 0,themeColor:l$1,themeTint:f??void 0,themeShade:c??void 0});let d=j$1(e,"w","shadow");(d==="1"||d==="true")&&(o.shadow=true);let p=j$1(e,"w","frame");return (p==="1"||p==="true")&&(o.frame=true),o}function ne(e$1){if(!e$1)return;let t={},n=V(e(e$1,"w","top"));n&&(t.top=n);let o=V(e(e$1,"w","bottom"));o&&(t.bottom=o);let r=V(e(e$1,"w","left")??e(e$1,"w","start"));r&&(t.left=r);let a=V(e(e$1,"w","right")??e(e$1,"w","end"));a&&(t.right=a);let u=V(e(e$1,"w","insideH"));u&&(t.insideH=u);let l=V(e(e$1,"w","insideV"));if(l&&(t.insideV=l),Object.keys(t).length!==0)return t}function oe(e$1){if(!e$1)return;let t={},n=D(e(e$1,"w","top"));n&&(t.top=n);let o=D(e(e$1,"w","bottom"));o&&(t.bottom=o);let r=D(e(e$1,"w","left")??e(e$1,"w","start"));r&&(t.left=r);let a=D(e(e$1,"w","right")??e(e$1,"w","end"));if(a&&(t.right=a),Object.keys(t).length!==0)return t}function re(e){if(!e)return;let t={},n=j$1(e,"w","fill");n&&n!=="auto"&&(t.fill={rgb:n});let o=j$1(e,"w","themeFill");if(o){t.fill={themeColor:o};let u=j$1(e,"w","themeFillTint");u&&t.fill&&(t.fill.themeTint=u);let l=j$1(e,"w","themeFillShade");l&&t.fill&&(t.fill.themeShade=l);}let r=j$1(e,"w","color");r&&r!=="auto"&&(t.color={rgb:r});let a=j$1(e,"w","val");if(a&&(t.pattern=a),Object.keys(t).length!==0)return t}function ye(e){if(!e)return;let t={},n=j$1(e,"w","firstRow");(n==="1"||n==="true")&&(t.firstRow=true);let o=j$1(e,"w","lastRow");(o==="1"||o==="true")&&(t.lastRow=true);let r=j$1(e,"w","firstColumn");(r==="1"||r==="true")&&(t.firstColumn=true);let a=j$1(e,"w","lastColumn");(a==="1"||a==="true")&&(t.lastColumn=true);let u=j$1(e,"w","noHBand");(u==="1"||u==="true")&&(t.noHBand=true);let l=j$1(e,"w","noVBand");(l==="1"||l==="true")&&(t.noVBand=true);let f=j$1(e,"w","val");if(f){let c=parseInt(f,16);isNaN(c)||(c&32&&(t.firstRow=true),c&64&&(t.lastRow=true),c&128&&(t.firstColumn=true),c&256&&(t.lastColumn=true),c&512&&(t.noHBand=true),c&1024&&(t.noVBand=true));}if(Object.keys(t).length!==0)return t}function be(e){if(!e)return;let t={},n=j$1(e,"w","horzAnchor");(n==="margin"||n==="page"||n==="text")&&(t.horzAnchor=n);let o=j$1(e,"w","vertAnchor");(o==="margin"||o==="page"||o==="text")&&(t.vertAnchor=o);let r=l(e,"w","tblpX");r!==void 0&&(t.tblpX=r);let a=j$1(e,"w","tblpXSpec");a&&(t.tblpXSpec=a);let u=l(e,"w","tblpY");u!==void 0&&(t.tblpY=u);let l$1=j$1(e,"w","tblpYSpec");l$1&&(t.tblpYSpec=l$1);let f=l(e,"w","topFromText");f!==void 0&&(t.topFromText=f);let c=l(e,"w","bottomFromText");c!==void 0&&(t.bottomFromText=c);let d=l(e,"w","leftFromText");d!==void 0&&(t.leftFromText=d);let p=l(e,"w","rightFromText");if(p!==void 0&&(t.rightFromText=p),Object.keys(t).length!==0)return t}function Ct(e){return e.columnWidths&&e.columnWidths.length>0?e.columnWidths.length:e.rows.length===0?0:e.rows[0].cells.reduce((t,n)=>t+(n.formatting?.gridSpan??1),0)}function kt(e){return e.rows.length}function St(e){return e.formatting?.vMerge==="continue"}function Mt(e){return e.formatting?.vMerge==="restart"}function Rt(e){return e.rows.length===0?false:e.rows[0].formatting?.header===true}var Et={richText:"richText",text:"plainText",date:"date",dropDownList:"dropDownList",comboBox:"comboBox",picture:"picture",docPartObj:"buildingBlockGallery",docPartList:"buildingBlockGallery",group:"group",equation:"equation",citation:"citation",bibliography:"bibliography",checkbox:"checkbox"};function Pt(e){if(!e||!e.elements)return "richText";for(let t of e.elements){if(t.type!=="element"||!t.name)continue;let n=d$1(t.name),o=Et[n];if(o)return o}return "richText"}function Bt(e){let t=[];for(let n of e.elements??[])n.type==="element"&&d$1(n.name||"")==="listItem"&&t.push({displayText:j$1(n,"w","displayText")||"",value:j$1(n,"w","value")||""});return t}function ie(e$1,t){let n={sdtType:Pt(e$1)};if(e$1){n.rawPropertiesXml=b(e$1);for(let o of e$1.elements??[]){if(o.type!=="element"||!o.name)continue;switch(d$1(o.name)){case "id":{let a=j$1(o,"w","val");if(a!=null){let u=parseInt(a,10);Number.isNaN(u)||(n.id=u);}break}case "alias":n.alias=j$1(o,"w","val")??void 0;break;case "tag":n.tag=j$1(o,"w","val")??void 0;break;case "lock":n.lock=j$1(o,"w","val")??"unlocked";break;case "placeholder":{let a=e(o,"w","docPart");a&&(n.placeholder=j$1(a,"w","val")??void 0);break}case "showingPlcHdr":{let a=j$1(o,"w","val");n.showingPlaceholder=a==null||!/^(0|false|off)$/i.test(a);break}case "date":{let a=e(o,"w","dateFormat");a&&(n.dateFormat=j$1(a,"w","val")??void 0);break}case "dropDownList":case "comboBox":n.listItems=Bt(o);break;case "checkbox":{let a=e(o,"w14","checked")??e(o,"w","checked");n.checked=a?j$1(a,"w14","val")==="1"||j$1(a,"w","val")==="1":false;break}case "dataBinding":{let a={},u=j$1(o,"w","xpath"),l=j$1(o,"w","storeItemID"),f=j$1(o,"w","prefixMappings");u!=null&&(a.xpath=u),l!=null&&(a.storeItemID=l),f!=null&&(a.prefixMappings=f),n.dataBinding=a;break}}}}return t&&(n.rawEndPropertiesXml=b(t)),n}var Oe={183:"\u2022",111:"\u25CB",167:"\u25A0",252:"\u2713",110:"\u25A0",113:"\u25CB",117:"\u25C6",118:"\u2756",168:"\u2713",251:"\u2713",254:"\u2713",61623:"\u2022",61550:"\u25A0",61551:"\u25CB",61607:"\u25A0",61692:"\u2713",8226:"\u2022",9679:"\u25CF",9675:"\u25CB",9632:"\u25A0",9633:"\u25A1",9670:"\u25C6",9671:"\u25C7",8211:"\u2013",8212:"\u2014",62:">",45:"-"};function vt(e){if(!e||e.trim()==="")return "\u2022";let t=e.charCodeAt(0);return Oe[t]?Oe[t]:t>=57344&&t<=63743||t<32||t>=127&&t<160?"\u2022":e}function Nt(e){let t=e.listRendering;t&&t.isBullet&&(t.marker=vt(t.marker||""));}function At(e,t,n$1,o,r,a,u){if(e.content.length===0)return;let l=i(t),f=0;function c(d){if(!h(d))return;let p=j$2(d);if(!p)return;let w=n(d,"wps","wsp");if(w){let h=k(w);h&&(p.content=g(h,Z,null,n$1,o,r,a??void 0,u??void 0));}let T={type:"shape",shapeType:"rect",size:p.size,position:p.position,wrap:p.wrap,fill:p.fill,outline:p.outline,textBody:{content:p.content,margins:p.margins}};p.id&&(T.id=p.id);let y={type:"shape",shape:T},x=f;if(x>=e.content.length){x=-1;for(let h=e.content.length-1;h>=0;h--)if(e.content[h].type==="run"){x=h;break}}if(x>=0){let h=e.content[x];h.type==="run"&&h.content.push(y);}}for(let d of l){if(d$1(d.name??"")!=="r")continue;let p=i(d);for(let w of p){let T=d$1(w.name??"");if(T==="drawing")c(w);else if(T==="AlternateContent"){let y=i(w),h=y.find(P=>d$1(P.name??"")==="Choice")??y.find(P=>d$1(P.name??"")==="Fallback");if(h)for(let P of i(h))d$1(P.name??"")==="drawing"&&c(P);}}f++;}}function q(e,t,n,o,r,a,u){let l=[],f=i(e);for(let c of f){let d=c.name??"";if(d==="w:p"||d.endsWith(":p")){let p=Z(c,t,n,o,r,a,u);At(p,c,t,n,o,r,a),Nt(p),l.push(p);}else if(d==="w:tbl"||d.endsWith(":tbl")){let p=Te(c,t,n,o,r,a,u);l.push(p);}else (d==="w:sdt"||d.endsWith(":sdt"))&&l.push(It(c,t,n,o,r,a,u));}return l}function It(e$1,t,n,o,r,a,u){let l=e(e$1,"w","sdtPr"),f=e(e$1,"w","sdtEndPr"),c=e(e$1,"w","sdtContent"),d=ie(l,f),p=c?q(c,t,n,o,r,a,u):[];return {type:"blockSdt",properties:d,content:p}}function ae(e){let t={};if(!e)return t;for(let n of e.split(";")){let o=n.indexOf(":");if(o<0)continue;let r=n.slice(0,o).trim().toLowerCase(),a=n.slice(o+1).trim();r&&(t[r]=a);}return t}function Ht(e){if(!e)return "#C0C0C0";let t=e.trim();return t.startsWith("#")?t:/^[0-9a-fA-F]{6}$/.test(t)?`#${t}`:t}function We(e){if(!e)return;let t=e.match(/^(-?[0-9.]+)(pt|px|in|cm|mm)?$/);if(!t)return;let n=parseFloat(t[1]);if(!isNaN(n))switch(t[2]){case "in":return n*96;case "cm":return n/2.54*96;case "mm":return n/25.4*96;case "px":return n;default:return n*96/72}}var Ve=914400/96;function Lt(e,t,n){if(!e||!t)return {};let o=t.get(e);if(!o?.target)return {};let r=o.target,a=r.split("/").pop()??r,u=[r,r.replace(/^\/+/,""),`word/${r.replace(/^\/+/,"")}`,`word/media/${a}`,`media/${a}`];if(n)for(let l of u){let f=l.toLowerCase();for(let[c,d]of n.entries())if(c.toLowerCase()===f)return {dataUrl:d.dataUrl??d.base64,mediaPath:d.path,contentType:d.mimeType}}return {}}function xe(e,t){if(t.includes("watermark")||(j$1(e,null,"type")??"").includes("_t136"))return true;let o=i(e).find(r=>r.name==="v:imagedata"||r.name?.endsWith(":imagedata"));return !!(o&&(j$1(o,null,"gain")||j$1(o,"o","gain")||j$1(o,null,"blacklevel")))}function je(e,t=null,n=null){if(!e)return;let o$1=o(e,"v","shape");for(let r of o$1){let a=(j$1(r,null,"id")??"").toLowerCase(),u=i(r),l=u.find(w=>w.name==="v:textpath"||w.name?.endsWith(":textpath")),f=u.find(w=>w.name==="v:imagedata"||w.name?.endsWith(":imagedata"));if(!xe(r,a)&&!l)continue;let c=ae(j$1(r,null,"style")),d=parseFloat(c.rotation??"0")||0,p=Math.abs(d)>5;if(l){let w=j$1(l,null,"string")??"",x=(ae(j$1(l,null,"style"))["font-family"]??"Calibri").replace(/["']/g,"").replace(/^&quot;|&quot;$/g,"").trim()||"Calibri",h=u.find(M=>M.name==="v:fill"||M.name?.endsWith(":fill")),P=h?j$1(h,null,"opacity"):null,C=P!=null&&parseFloat(P)<1;return {kind:"text",text:w,font:x,color:Ht(j$1(r,null,"fillcolor")),semitransparent:C,layout:p?"diagonal":"horizontal",fontSize:void 0}}if(f){let w=j$1(f,"r","id")??j$1(f,"r","embed")??j$1(f,null,"id")??"",{dataUrl:T,mediaPath:y,contentType:x}=Lt(w,t,n),h=j$1(f,null,"gain"),P=j$1(f,null,"blacklevel"),C=h!=null||P!=null,M=We(c.width),m=We(c.height);return {kind:"picture",relId:w||void 0,mediaPath:y,contentType:x,dataUrl:T,scale:1,washout:C,widthEmu:M!=null?Math.round(M*Ve):void 0,heightEmu:m!=null?Math.round(m*Ve):void 0}}}}function Ue(e){switch(e){case "first":return "first";case "even":return "even";default:return "default"}}function ze(e){let t=j$1(e,"w","type"),n=j$1(e,"r","id")??"";return {type:Ue(t),rId:n}}function _e(e){let t=j$1(e,"w","type"),n=j$1(e,"r","id")??"";return {type:Ue(t),rId:n}}function Qn(e,t="default",n=null,o=null,r=null,a$1=null,u=null){let l={type:"header",hdrFtrType:t,content:[]};if(!e)return l;let f=a(e);if(!f)return l;let c=f.elements?.find(p=>p.type==="element"&&(p.name==="w:hdr"||p.name?.endsWith(":hdr")));if(!c)return l;l.content=q(c,n,o,r,a$1,u,{inHeaderFooter:true});let d=je(c,a$1,u);return d&&(l.watermark=d),l}function Jn(e,t="default",n=null,o=null,r=null,a$1=null,u=null){let l={type:"footer",hdrFtrType:t,content:[]};if(!e)return l;let f=a(e);if(!f)return l;let c=f.elements?.find(d=>d.type==="element"&&(d.name==="w:ftr"||d.name?.endsWith(":ftr")));return c&&(l.content=q(c,n,o,r,a$1,u,{inHeaderFooter:true})),l}function Ge(e){switch(e){case "separator":return "separator";case "continuationSeparator":return "continuationSeparator";case "continuationNotice":return "continuationNotice";default:return "normal"}}function qe(e,t,n,o,r,a){let u=q(e,t,n,o,r,a),l=false;for(let f of i(e)){let c=f.name??"";if(c==="w:bookmarkStart"||c.endsWith(":bookmarkStart")||c==="w:bookmarkEnd"||c.endsWith(":bookmarkEnd")||c==="w:customXml"||c.endsWith(":customXml")){l=true;break}}return {blocks:u,hasUnmodeled:l}}function Xt(e,t,n,o,r,a){let u=l(e,"w","id")??0,l$1=j$1(e,"w","type"),f=Ge(l$1),{blocks:c,hasUnmodeled:d}=qe(e,t,n,o,r,a);return {type:"footnote",id:u,noteType:f,content:c,...d?{verbatimXml:b(e)}:{}}}function oo(e,t=null,n=null,o=null,r=null,a$1=null){let u=new Map,l=[];if(!e)return le(u,l);let f$1=a(e);if(!f$1)return le(u,l);let c=f$1.elements?.find(p=>p.type==="element"&&(p.name==="w:footnotes"||p.name?.endsWith(":footnotes")));if(!c)return le(u,l);let d=f(c,"w","footnote");for(let p of d){let w=Xt(p,t,n,o,r,a$1);u.set(w.id,w),l.push(w);}return le(u,l)}function le(e,t){return {byId:e,footnotes:t,getFootnote(n){return e.get(n)},hasFootnote(n){return e.has(n)},getNormalFootnotes(){return t.filter(n=>n.noteType==="normal")},getSeparator(){return t.find(n=>n.noteType==="separator")},getContinuationSeparator(){return t.find(n=>n.noteType==="continuationSeparator")}}}function Dt(e,t,n,o,r,a){let u=l(e,"w","id")??0,l$1=j$1(e,"w","type"),f=Ge(l$1),{blocks:c,hasUnmodeled:d}=qe(e,t,n,o,r,a);return {type:"endnote",id:u,noteType:f,content:c,...d?{verbatimXml:b(e)}:{}}}function ro(e,t=null,n=null,o=null,r=null,a$1=null){let u=new Map,l=[];if(!e)return se(u,l);let f$1=a(e);if(!f$1)return se(u,l);let c=f$1.elements?.find(p=>p.type==="element"&&(p.name==="w:endnotes"||p.name?.endsWith(":endnotes")));if(!c)return se(u,l);let d=f(c,"w","endnote");for(let p of d){let w=Dt(p,t,n,o,r,a$1);u.set(w.id,w),l.push(w);}return se(u,l)}function se(e,t){return {byId:e,endnotes:t,getEndnote(n){return e.get(n)},hasEndnote(n){return e.has(n)},getNormalEndnotes(){return t.filter(n=>n.noteType==="normal")},getSeparator(){return t.find(n=>n.noteType==="separator")},getContinuationSeparator(){return t.find(n=>n.noteType==="continuationSeparator")}}}function $e(e){return e?{decimal:"decimal",upperRoman:"upperRoman",lowerRoman:"lowerRoman",upperLetter:"upperLetter",lowerLetter:"lowerLetter",ordinal:"ordinal",cardinalText:"cardinalText",ordinalText:"ordinalText",bullet:"bullet",chicago:"chicago",none:"none"}[e]:void 0}function Ot(e){switch(e){case "pageBottom":return "pageBottom";case "beneathText":return "beneathText";case "sectEnd":return "sectEnd";case "docEnd":return "docEnd";default:return}}function Wt(e){switch(e){case "sectEnd":return "sectEnd";case "docEnd":return "docEnd";default:return}}function Ye(e){switch(e){case "continuous":return "continuous";case "eachSect":return "eachSect";case "eachPage":return "eachPage";default:return}}function Ze(e$1){let t={};if(!e$1)return t;let n=e(e$1,"w","pos");if(n){let u=j$1(n,"w","val");t.position=Ot(u);}let o=e(e$1,"w","numFmt");if(o){let u=j$1(o,"w","val");t.numFmt=$e(u);}let r=e(e$1,"w","numStart");r&&(t.numStart=l(r,"w","val")??void 0);let a=e(e$1,"w","numRestart");if(a){let u=j$1(a,"w","val");t.numRestart=Ye(u);}return t}function Ke(e$1){let t={};if(!e$1)return t;let n=e(e$1,"w","pos");if(n){let u=j$1(n,"w","val");t.position=Wt(u);}let o=e(e$1,"w","numFmt");if(o){let u=j$1(o,"w","val");t.numFmt=$e(u);}let r=e(e$1,"w","numStart");r&&(t.numStart=l(r,"w","val")??void 0);let a=e(e$1,"w","numRestart");if(a){let u=j$1(a,"w","val");t.numRestart=Ye(u);}return t}function io(e){let t=[];for(let n of e.content){if(n.type!=="paragraph")continue;let o=[];for(let r of n.content)if(r.type==="run")for(let a of r.content)a.type==="text"&&o.push(a.text);t.push(o.join(""));}return t.join(`
2
+ `)}function ao(e){let t=[];for(let n of e.content){if(n.type!=="paragraph")continue;let o=[];for(let r of n.content)if(r.type==="run")for(let a of r.content)a.type==="text"&&o.push(a.text);t.push(o.join(""));}return t.join(`
3
+ `)}function lo(e){return e.noteType==="separator"||e.noteType==="continuationSeparator"||e.noteType==="continuationNotice"}function so(e){return e.noteType==="separator"||e.noteType==="continuationSeparator"||e.noteType==="continuationNotice"}function Vt(e,t,n,o){if(!e&&!t)return;let r={};return e&&e!=="auto"?r.rgb=e:e==="auto"&&(r.auto=true),t&&(r.themeColor=t),n&&(r.themeTint=n),o&&(r.themeShade=o),Object.keys(r).length>0?r:void 0}function ue(e){if(!e)return;let o={style:j$1(e,"w","val")??"none"},r=l(e,"w","sz");r!==void 0&&(o.size=r);let a=l(e,"w","space");a!==void 0&&(o.space=a);let u=j$1(e,"w","color"),l$1=j$1(e,"w","themeColor"),f=j$1(e,"w","themeTint"),c=j$1(e,"w","themeShade"),d=Vt(u,l$1,f,c);d&&(o.color=d);let p=j$1(e,"w","shadow");(p==="1"||p==="true")&&(o.shadow=true);let w=j$1(e,"w","frame");return (w==="1"||w==="true")&&(o.frame=true),o}function jt(e){switch(e){case "landscape":return "landscape";case "portrait":return "portrait";default:return}}function Ut(e){switch(e){case "continuous":return "continuous";case "nextPage":return "nextPage";case "oddPage":return "oddPage";case "evenPage":return "evenPage";case "nextColumn":return "nextColumn";default:return}}function zt(e){switch(e){case "top":return "top";case "center":return "center";case "both":return "both";case "bottom":return "bottom";default:return}}function _t(e){switch(e){case "continuous":return "continuous";case "newPage":return "newPage";case "newSection":return "newSection";default:return}}function Je(e$1,t){let n={};if(!e$1)return n;let o=e(e$1,"w","pgSz");if(o){let m=l(o,"w","w");m!==void 0&&(n.pageWidth=m);let F=l(o,"w","h");F!==void 0&&(n.pageHeight=F);let E=j$1(o,"w","orient"),b=jt(E);b&&(n.orientation=b);}let r=e(e$1,"w","pgMar");if(r){let m=l(r,"w","top");m!==void 0&&(n.marginTop=m);let F=l(r,"w","bottom");F!==void 0&&(n.marginBottom=F);let E=l(r,"w","left");E!==void 0&&(n.marginLeft=E);let b=l(r,"w","right");b!==void 0&&(n.marginRight=b);let k=l(r,"w","header");k!==void 0&&(n.headerDistance=k);let B=l(r,"w","footer");B!==void 0&&(n.footerDistance=B);let N=l(r,"w","gutter");N!==void 0&&(n.gutter=N);}let a=e(e$1,"w","cols");if(a){let m=l(a,"w","num");m!==void 0&&(n.columnCount=m);let F=l(a,"w","space");F!==void 0&&(n.columnSpace=F);let E=j$1(a,"w","equalWidth");E==="1"||E==="true"?n.equalWidth=true:(E==="0"||E==="false")&&(n.equalWidth=false);let b=j$1(a,"w","sep");(b==="1"||b==="true")&&(n.separator=true);let k=f(a,"w","col");if(k.length>0){n.columns=[];for(let B of k){let N={},H=l(B,"w","w");H!==void 0&&(N.width=H);let I=l(B,"w","space");I!==void 0&&(N.space=I),n.columns.push(N);}n.columnCount===void 0&&(n.columnCount=k.length);}}let u=e(e$1,"w","type");if(u){let m=j$1(u,"w","val"),F=Ut(m);F&&(n.sectionStart=F);}let l$1=e(e$1,"w","vAlign");if(l$1){let m=j$1(l$1,"w","val"),F=zt(m);F&&(n.verticalAlign=F);}let f$1=e(e$1,"w","bidi");f$1&&(n.bidi=m(f$1));let c=f(e$1,"w","headerReference");c.length>0&&(n.headerReferences=c.map(m=>ze(m)));let d=f(e$1,"w","footerReference");d.length>0&&(n.footerReferences=d.map(m=>_e(m)));let p=e(e$1,"w","titlePg");p&&(n.titlePg=m(p));let w=e(e$1,"w","evenAndOddHeaders");w&&(n.evenAndOddHeaders=m(w));let T=e(e$1,"w","lnNumType");if(T){n.lineNumbers={};let m=l(T,"w","start");m!==void 0&&(n.lineNumbers.start=m);let F=l(T,"w","countBy");F!==void 0&&(n.lineNumbers.countBy=F);let E=l(T,"w","distance");E!==void 0&&(n.lineNumbers.distance=E);let b=j$1(T,"w","restart"),k=_t(b);k&&(n.lineNumbers.restart=k);}let y=e(e$1,"w","pgBorders");if(y){n.pageBorders={};let m=ue(e(y,"w","top"));m&&(n.pageBorders.top=m);let F=ue(e(y,"w","bottom"));F&&(n.pageBorders.bottom=F);let E=ue(e(y,"w","left"));E&&(n.pageBorders.left=E);let b=ue(e(y,"w","right"));b&&(n.pageBorders.right=b);let k=j$1(y,"w","display");(k==="allPages"||k==="firstPage"||k==="notFirstPage")&&(n.pageBorders.display=k);let B=j$1(y,"w","offsetFrom");(B==="page"||B==="text")&&(n.pageBorders.offsetFrom=B);let N=j$1(y,"w","zOrder");(N==="front"||N==="back")&&(n.pageBorders.zOrder=N);}let x=e(e$1,"w","background");if(x){n.background={};let m=j$1(x,"w","color");m&&m!=="auto"&&(n.background.color={rgb:m});let F=j$1(x,"w","themeColor");F&&(n.background.themeColor=F);let E=j$1(x,"w","themeTint");E&&(n.background.themeTint=E);let b=j$1(x,"w","themeShade");b&&(n.background.themeShade=b);}let h=e(e$1,"w","footnotePr");if(h){let m=Ze(h);Object.keys(m).length>0&&(n.footnotePr=m);}let P=e(e$1,"w","endnotePr");if(P){let m=Ke(P);Object.keys(m).length>0&&(n.endnotePr=m);}let C=e(e$1,"w","docGrid");if(C){n.docGrid={};let m=j$1(C,"w","type");(m==="default"||m==="lines"||m==="linesAndChars"||m==="snapToChars")&&(n.docGrid.type=m);let F=l(C,"w","linePitch");F!==void 0&&(n.docGrid.linePitch=F);let E=l(C,"w","charSpace");E!==void 0&&(n.docGrid.charSpace=E);}let M=e(e$1,"w","paperSrc");if(M){let m=l(M,"w","first");m!==void 0&&(n.paperSrcFirst=m);let F=l(M,"w","other");F!==void 0&&(n.paperSrcOther=F);}return n}function mo(){return {pageWidth:12240,pageHeight:15840,orientation:"portrait",marginTop:1440,marginBottom:1440,marginLeft:1440,marginRight:1440,headerDistance:720,footerDistance:720,gutter:0,columnCount:1,columnSpace:720,equalWidth:true,sectionStart:"nextPage",verticalAlign:"top"}}function Qe(e,t){if(!t||t.length===0)return e;let n=new Set((e??[]).map(r=>r.type)),o=t.filter(r=>!n.has(r.type));return o.length===0?e:[...e??[],...o]}function go(e){if(e.length<2)return e;let t=[e[0]];for(let n=1;n<e.length;n++){let o=t[n-1].properties,r=e[n].properties,a=Qe(r.headerReferences,o.headerReferences),u=Qe(r.footerReferences,o.footerReferences),l=r.titlePg!==void 0?r.titlePg:o.titlePg;if(a===r.headerReferences&&u===r.footerReferences&&l===r.titlePg){t.push(e[n]);continue}t.push({...e[n],properties:{...r,headerReferences:a,footerReferences:u,titlePg:l}});}return t}function et(e){if(!e)return;let t=/^(-?[\d.]+)\s*(pt|in|px|cm|mm|pc)?$/.exec(e.trim());if(!t)return;let n=parseFloat(t[1]);if(!isNaN(n))switch(t[2]){case "pt":return n/72*96;case "in":return n*96;case "cm":return n/2.54*96;case "mm":return n/25.4*96;case "pc":return n/6*96;case "px":case void 0:return n;default:return}}function Gt(e){return j$1(e,"r","id")??j$1(e,"r","embed")??j$1(e,null,"id")??""}function qt(e){if(!e)return null;let t;if(e.startsWith("data:")){let n=e.indexOf(",");if(n<0)return null;t=e.slice(n+1);}else if(/^[A-Za-z0-9+/]/.test(e)&&!e.includes(":"))t=e;else return null;try{let n=typeof atob=="function"?atob(t):globalThis.Buffer?.from(t,"base64").toString("binary");if(typeof n!="string")return null;let o=new Uint8Array(n.length);for(let r=0;r<n.length;r++)o[r]=n.charCodeAt(r);return o}catch{return null}}function $t(e){if(!e||e.length<24)return null;let t=new DataView(e.buffer,e.byteOffset,e.byteLength);if(e[0]===137&&e[1]===80&&e[2]===78&&e[3]===71)return {width:t.getUint32(16),height:t.getUint32(20)};if(e[0]===71&&e[1]===73&&e[2]===70)return {width:e[6]|e[7]<<8,height:e[8]|e[9]<<8};if(e[0]===66&&e[1]===77&&e.length>=26)return {width:t.getInt32(18,true),height:Math.abs(t.getInt32(22,true))};if(e[0]===255&&e[1]===216){let n=2;for(;n+9<e.length;){if(e[n]!==255){n++;continue}let o=e[n+1];if(o>=192&&o<=207&&o!==196&&o!==200&&o!==204)return {height:e[n+5]<<8|e[n+6],width:e[n+7]<<8|e[n+8]};let r=e[n+2]<<8|e[n+3];if(r<2)break;n+=2+r;}}return null}function tt(e,t,n){let o$1=[...o(e,"v","shape"),...o(e,"v","rect"),...o(e,"v","roundrect"),...o(e,"v","oval")];for(let r of o$1){let a=i(r).find(h=>h.name==="v:imagedata"||h.name?.endsWith(":imagedata"));if(!a)continue;let u=Gt(a);if(!u)continue;let l=(j$1(r,null,"id")??"").toLowerCase();if(xe(r,l))continue;let{src:f,mimeType:c,filename:d}=y(u,t??void 0,n??void 0),p=ae(j$1(r,null,"style")),w=et(p.width),T=et(p.height);if(w==null||T==null){let h=$t(qt(f));h&&h.width>0&&h.height>0&&(w==null&&T==null?(w=h.width,T=h.height):w==null?w=T*(h.width/h.height):T=w*(h.height/h.width));}let y$1={type:"image",rId:u,size:{width:w!=null?g$1(w):0,height:T!=null?g$1(T):0},wrap:{type:"inline"}};f&&(y$1.src=f),c&&(y$1.mimeType=c),d&&(y$1.filename=d);let x=j$1(a,"o","title")??void 0;return x&&(y$1.title=x),{type:"drawing",image:y$1}}return null}function nt(e,t,n,o){let r={};return e&&e!=="auto"?r.rgb=e:e==="auto"&&(r.auto=true),t&&(r.themeColor=t),n&&(r.themeTint=n),o&&(r.themeShade=o),r}function Yt(e){if(!e)return;let t={},n=j$1(e,"w","color");n&&n!=="auto"&&(t.color={rgb:n});let o=j$1(e,"w","fill");o&&o!=="auto"&&(t.fill={rgb:o});let r=j$1(e,"w","themeFill");r&&(t.fill=t.fill||{},t.fill.themeColor=r);let a=j$1(e,"w","themeFillTint");a&&t.fill&&(t.fill.themeTint=a);let u=j$1(e,"w","themeFillShade");u&&t.fill&&(t.fill.themeShade=u);let l=j$1(e,"w","val");return l&&(t.pattern=l),Object.keys(t).length>0?t:void 0}function ce(e$1,t,n){if(!e$1)return;let o={},r=e(e$1,"w","b");r&&(o.bold=m(r));let a=e(e$1,"w","bCs");a&&(o.boldCs=m(a));let u=e(e$1,"w","i");u&&(o.italic=m(u));let l$1=e(e$1,"w","iCs");l$1&&(o.italicCs=m(l$1));let f=e(e$1,"w","u");if(f){let S=j$1(f,"w","val");if(S){o.underline={style:S};let z=j$1(f,"w","color"),_=j$1(f,"w","themeColor");(z||_)&&(o.underline.color=nt(z,_,j$1(f,"w","themeTint"),j$1(f,"w","themeShade")));}}let c=e(e$1,"w","strike");c&&(o.strike=m(c));let d=e(e$1,"w","dstrike");d&&(o.doubleStrike=m(d));let p=e(e$1,"w","vertAlign");if(p){let S=j$1(p,"w","val");(S==="superscript"||S==="subscript"||S==="baseline")&&(o.vertAlign=S);}let w=e(e$1,"w","smallCaps");w&&(o.smallCaps=m(w));let T=e(e$1,"w","caps");T&&(o.allCaps=m(T));let y=e(e$1,"w","vanish");y&&(o.hidden=m(y));let x=e(e$1,"w","color");x&&(o.color=nt(j$1(x,"w","val"),j$1(x,"w","themeColor"),j$1(x,"w","themeTint"),j$1(x,"w","themeShade")));let h=e(e$1,"w","highlight");if(h){let S=j$1(h,"w","val");S&&(o.highlight=S);}let P=e(e$1,"w","shd");P&&(o.shading=Yt(P));let C=e(e$1,"w","sz");if(C){let S=l(C,"w","val");S!==void 0&&(o.fontSize=S);}let M=e(e$1,"w","szCs");if(M){let S=l(M,"w","val");S!==void 0&&(o.fontSizeCs=S);}let m$1=e(e$1,"w","rFonts");if(m$1){o.fontFamily={ascii:j$1(m$1,"w","ascii")??void 0,hAnsi:j$1(m$1,"w","hAnsi")??void 0,eastAsia:j$1(m$1,"w","eastAsia")??void 0,cs:j$1(m$1,"w","cs")??void 0};let S=j$1(m$1,"w","asciiTheme");S&&(o.fontFamily.asciiTheme=S,t&&!o.fontFamily.ascii&&(o.fontFamily.ascii=Y(t,S)));let z=j$1(m$1,"w","hAnsiTheme");z&&(o.fontFamily.hAnsiTheme=z,t&&!o.fontFamily.hAnsi&&(o.fontFamily.hAnsi=Y(t,z)));let _=j$1(m$1,"w","eastAsiaTheme");_&&(o.fontFamily.eastAsiaTheme=_,t&&!o.fontFamily.eastAsia&&(o.fontFamily.eastAsia=Y(t,_)));let pe=j$1(m$1,"w","cstheme");pe&&(o.fontFamily.csTheme=pe,t&&!o.fontFamily.cs&&(o.fontFamily.cs=Y(t,pe)));}let F=e(e$1,"w","spacing");if(F){let S=l(F,"w","val");S!==void 0&&(o.spacing=S);}let E=e(e$1,"w","position");if(E){let S=l(E,"w","val");S!==void 0&&(o.position=S);}let b=e(e$1,"w","w");if(b){let S=l(b,"w","val");S!==void 0&&(o.scale=S);}let k=e(e$1,"w","kern");if(k){let S=l(k,"w","val");S!==void 0&&(o.kerning=S);}let B=e(e$1,"w","effect");if(B){let S=j$1(B,"w","val");S&&(o.effect=S);}let N=e(e$1,"w","em");if(N){let S=j$1(N,"w","val");S&&(o.emphasisMark=S);}let H=e(e$1,"w","emboss");H&&(o.emboss=m(H));let I=e(e$1,"w","imprint");I&&(o.imprint=m(I));let X=e(e$1,"w","outline");X&&(o.outline=m(X));let Fe=e(e$1,"w","shadow");Fe&&(o.shadow=m(Fe));let Ce=e(e$1,"w","rtl");Ce&&(o.rtl=m(Ce));let ke=e(e$1,"w","cs");ke&&(o.cs=m(ke));let Se=e(e$1,"w","rStyle");if(Se){let S=j$1(Se,"w","val");S&&(o.styleId=S);}return Object.keys(o).length>0?o:void 0}function Zt(e){let t=j$1(e,"w","id"),n=t?parseInt(t,10):0,o=(j$1(e,"w","author")??"").trim(),r=(j$1(e,"w","date")??"").trim(),a=(j$1(e,"w","rsid")??"").trim();return {id:Number.isInteger(n)&&n>=0?n:0,author:o.length>0?o:"Unknown",date:r.length>0?r:void 0,rsid:a.length>0?a:void 0}}function Kt(e$1,t,n,o){if(!e$1)return;let r=f(e$1,"w","rPrChange").map(a=>{let u=e(a,"w","rPr");return {type:"runPropertyChange",info:Zt(a),previousFormatting:ce(u,t),currentFormatting:o}}).filter(a=>a.previousFormatting||a.currentFormatting);return r.length>0?r:void 0}function Qt(e){let t=k$1(e),n=j$1(e,"xml","space")==="preserve";return {type:"text",text:t,preserveSpace:n||void 0}}function Jt(){return {type:"tab"}}function en(e){let t=j$1(e,"w","type"),n=j$1(e,"w","clear"),o={type:"break"};return (t==="page"||t==="column"||t==="textWrapping")&&(o.breakType=t),(n==="none"||n==="left"||n==="right"||n==="all")&&(o.clear=n),o}function tn(e){let t=j$1(e,"w","font")??"",n=j$1(e,"w","char")??"";return {type:"symbol",font:t,char:n}}function nn(e){return {type:"footnoteRef",id:l(e,"w","id")??0}}function on(e){return {type:"endnoteRef",id:l(e,"w","id")??0}}function rn(e){let t=j$1(e,"w","fldCharType"),n=j$1(e,"w","fldLock")==="true"||j$1(e,"w","fldLock")==="1",o=j$1(e,"w","dirty")==="true"||j$1(e,"w","dirty")==="1",r="begin";return t==="separate"?r="separate":t==="end"&&(r="end"),{type:"fieldChar",charType:r,fldLock:n||void 0,dirty:o||void 0}}function an(e){return {type:"instrText",text:k$1(e)}}function ot(e,t,n){let o=A(e,t??void 0,n??void 0);return o?{type:"drawing",image:o}:null}function fe(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function ln(e,t,n){let o=[],r=i(e);for(let a of r)switch(fe(a.name)){case "t":o.push(Qt(a));break;case "tab":o.push(Jt());break;case "br":o.push(en(a));break;case "sym":o.push(tn(a));break;case "footnoteReference":o.push(nn(a));break;case "endnoteReference":o.push(on(a));break;case "fldChar":o.push(rn(a));break;case "instrText":o.push(an(a));break;case "softHyphen":o.push({type:"softHyphen"});break;case "noBreakHyphen":o.push({type:"noBreakHyphen"});break;case "drawing":let l=ot(a,t,n);l&&o.push(l);break;case "pict":case "object":{let f=tt(a,t,n);f&&o.push(f);break}case "rPr":break;case "lastRenderedPageBreak":break;case "cr":o.push({type:"break",breakType:"textWrapping"});break;case "AlternateContent":{let c=i(a).find(d=>fe(d.name)==="Choice")??i(a).find(d=>fe(d.name)==="Fallback");if(c){for(let d of i(c))if(fe(d.name)==="drawing"){let w=ot(d,t,n);w?.image?.src&&o.push(w);}}break}case "footnoteRef":o.push({type:"footnoteRefMark"});break;case "endnoteRef":o.push({type:"endnoteRefMark"});break;case "separator":o.push({type:"separator"});break;case "continuationSeparator":o.push({type:"continuationSeparator"});break;}return o}function K(e$1,t,n,o=null,r=null){let a={type:"run",content:[]},u=e(e$1,"w","rPr");return u&&(a.formatting=ce(u,n),a.propertyChanges=Kt(u,n,t,a.formatting)),a.content=ln(e$1,o,r),a}function sn(e,t,n,o){let r={};return e&&e!=="auto"?r.rgb=e:e==="auto"&&(r.auto=true),t&&(r.themeColor=t),n&&(r.themeTint=n),o&&(r.themeShade=o),r}function un(e){if(!e)return;let t={},n=j$1(e,"w","color");n&&n!=="auto"&&(t.color={rgb:n});let o=j$1(e,"w","fill");o&&o!=="auto"&&(t.fill={rgb:o});let r=j$1(e,"w","themeFill");r&&(t.fill=t.fill||{},t.fill.themeColor=r);let a=j$1(e,"w","themeFillTint");a&&t.fill&&(t.fill.themeTint=a);let u=j$1(e,"w","themeFillShade");u&&t.fill&&(t.fill.themeShade=u);let l=j$1(e,"w","val");return l&&(t.pattern=l),Object.keys(t).length>0?t:void 0}function $(e){if(!e)return;let t=j$1(e,"w","val");if(!t)return;let n={style:t},o=j$1(e,"w","color"),r=j$1(e,"w","themeColor");(o||r)&&(n.color=sn(o,r,j$1(e,"w","themeTint"),j$1(e,"w","themeShade")));let a=l(e,"w","sz");a!==void 0&&(n.size=a);let u=l(e,"w","space");u!==void 0&&(n.space=u);let l$1=j$1(e,"w","shadow");l$1&&(n.shadow=l$1==="1"||l$1==="true");let f=j$1(e,"w","frame");return f&&(n.frame=f==="1"||f==="true"),n}function fn(e){if(!e)return;let t=f(e,"w","tab");if(t.length===0)return;let n=[];for(let o of t){let r=l(o,"w","pos"),a=j$1(o,"w","val");if(r!==void 0&&a){let u={position:r,alignment:a},l=j$1(o,"w","leader");l&&(u.leader=l),n.push(u);}}return n.length>0?n:void 0}function cn(e){if(!e)return;let t={},n=l(e,"w","w");n!==void 0&&(t.width=n);let o=l(e,"w","h");o!==void 0&&(t.height=o);let r=j$1(e,"w","hAnchor");(r==="text"||r==="margin"||r==="page")&&(t.hAnchor=r);let a=j$1(e,"w","vAnchor");(a==="text"||a==="margin"||a==="page")&&(t.vAnchor=a);let u=l(e,"w","x");u!==void 0&&(t.x=u);let l$1=l(e,"w","y");l$1!==void 0&&(t.y=l$1);let f=j$1(e,"w","xAlign");f&&(t.xAlign=f);let c=j$1(e,"w","yAlign");c&&(t.yAlign=c);let d=j$1(e,"w","wrap");return d&&(t.wrap=d),Object.keys(t).length>0?t:void 0}function de(e$1,t,n){if(!e$1)return;let o={},r=e(e$1,"w","jc");if(r){let b=j$1(r,"w","val");b&&(o.alignment=b);}let a=e(e$1,"w","bidi");a&&(o.bidi=m(a));let u=e(e$1,"w","spacing");if(u){let b=l(u,"w","before");b!==void 0&&(o.spaceBefore=b);let k=l(u,"w","after");k!==void 0&&(o.spaceAfter=k);let B=l(u,"w","line");B!==void 0&&(o.lineSpacing=B);let N={};b!==void 0&&(N.before=true),k!==void 0&&(N.after=true),(N.before||N.after)&&(o.spacingExplicit=N);let H=j$1(u,"w","lineRule");H&&(o.lineSpacingRule=H);let I=j$1(u,"w","beforeAutospacing");I&&(o.beforeAutospacing=I==="1"||I==="true");let X=j$1(u,"w","afterAutospacing");X&&(o.afterAutospacing=X==="1"||X==="true");}let l$1=e(e$1,"w","ind");if(l$1){let b=l(l$1,"w","left");b!==void 0&&(o.indentLeft=b);let k=l(l$1,"w","right");k!==void 0&&(o.indentRight=k);let B=l(l$1,"w","firstLine");B!==void 0&&(o.indentFirstLine=B);let N=l(l$1,"w","hanging");N!==void 0&&(o.indentFirstLine=-N,o.hangingIndent=true);let H=l(l$1,"w","start");H!==void 0&&o.indentLeft===void 0&&(o.indentLeft=H);let I=l(l$1,"w","end");I!==void 0&&o.indentRight===void 0&&(o.indentRight=I);}let f=e(e$1,"w","pBdr");if(f){let b={},k=$(e(f,"w","top"));k&&(b.top=k);let B=$(e(f,"w","bottom"));B&&(b.bottom=B);let N=$(e(f,"w","left"));N&&(b.left=N);let H=$(e(f,"w","right"));H&&(b.right=H);let I=$(e(f,"w","between"));I&&(b.between=I);let X=$(e(f,"w","bar"));X&&(b.bar=X),Object.keys(b).length>0&&(o.borders=b);}let c=e(e$1,"w","shd");c&&(o.shading=un(c));let d=e(e$1,"w","tabs");d&&(o.tabs=fn(d));let p=e(e$1,"w","keepNext");p&&(o.keepNext=m(p));let w=e(e$1,"w","keepLines");w&&(o.keepLines=m(w));let T=e(e$1,"w","widowControl");T&&(o.widowControl=m(T));let y=e(e$1,"w","pageBreakBefore");y&&(o.pageBreakBefore=m(y));let x=e(e$1,"w","contextualSpacing");x&&(o.contextualSpacing=m(x));let h=e(e$1,"w","numPr");if(h){let b=e(h,"w","numId"),k=e(h,"w","ilvl");if(b||k){if(o.numPr={},b){let B=l(b,"w","val");B!==void 0&&(o.numPr.numId=B);}if(k){let B=l(k,"w","val");B!==void 0&&(o.numPr.ilvl=B);}}}let P=e(e$1,"w","outlineLvl");if(P){let b=l(P,"w","val");b!==void 0&&(o.outlineLevel=b);}let C=e(e$1,"w","pStyle");if(C){let b=j$1(C,"w","val");b&&(o.styleId=b);}let M=e(e$1,"w","framePr");M&&(o.frame=cn(M));let m$1=e(e$1,"w","suppressLineNumbers");m$1&&(o.suppressLineNumbers=m(m$1));let F=e(e$1,"w","suppressAutoHyphens");F&&(o.suppressAutoHyphens=m(F));let E=e(e$1,"w","rPr");return E&&(o.runProperties=ce(E,t)),Object.keys(o).length>0?o:void 0}function dn(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function pn(e){let t=l(e,"w","id")??0,n=j$1(e,"w","name")??"",o={type:"bookmarkStart",id:t,name:n},r=l(e,"w","colFirst");r!==void 0&&(o.colFirst=r);let a=l(e,"w","colLast");return a!==void 0&&(o.colLast=a),o}function mn(e){return {type:"bookmarkEnd",id:l(e,"w","id")??0}}function rt(e,t,n=null,o=null,r=null){let a={type:"hyperlink",children:[]},u=j$1(e,"r","id");if(u&&(a.rId=u,t)){let T=t.get(u);T&&(c$1(T),a.href=T.target);}let l=j$1(e,"w","anchor");l&&(a.anchor=l,a.href||(a.href=`#${l}`));let f=j$1(e,"w","tooltip");f&&(a.tooltip=f);let c=j$1(e,"w","tgtFrame");c&&(a.target=c);let d=j$1(e,"w","history");(d==="1"||d==="true")&&(a.history=true);let p=j$1(e,"w","docLocation");p&&(a.docLocation=p);let w=i(e);for(let T of w)switch(dn(T.name)){case "r":a.children.push(K(T,n,o,t,r));break;case "bookmarkStart":a.children.push(pn(T));break;case "bookmarkEnd":a.children.push(mn(T));break}return a}function Ao(e){let t="";for(let n of e.children)if(n.type==="run")for(let o of n.content)o.type==="text"?t+=o.text:o.type==="tab"&&(t+=" ");return t}function Io(e){return e.href?/^https?:\/\/|^mailto:|^tel:|^ftp:/i.test(e.href):!!e.rId&&!e.anchor}function Ho(e){return !!e.anchor}function Lo(e){return e.href}function Xo(e){return e.children.some(t=>t.type==="run")}function Do(e){return e.children.filter(t=>t.type==="run")}function Oo(e,t){if(e.rId){let n=t.get(e.rId);if(n)return c$1(n),e.href=n.target,e.href}return e.anchor&&!e.href&&(e.href=`#${e.anchor}`),e.href}function it(e){let t=l(e,"w","id")??0,n=j$1(e,"w","name")??"",o={type:"bookmarkStart",id:t,name:n},r=l(e,"w","colFirst");r!==void 0&&(o.colFirst=r);let a=l(e,"w","colLast");return a!==void 0&&(o.colLast=a),o}function at(e){return {type:"bookmarkEnd",id:l(e,"w","id")??0}}function st(e){let t="";if(e.type==="text"&&typeof e.text=="string")return e.text;if(e.elements)for(let n of e.elements)if((n.name?.replace(/^.*:/,"")??"")==="t"&&n.elements)for(let r of n.elements)r.type==="text"&&typeof r.text=="string"&&(t+=r.text);else t+=st(n);return t}function J(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function ut(e){let t=new Set(["hyperlink","smartTag","sdt","sdtContent","fldSimple","customXml","ins","del","moveFrom","moveTo"]),n=new Set(["pPr","proofErr","bookmarkStart","bookmarkEnd","commentRangeStart","commentRangeEnd","commentReference","permStart","permEnd","rsidR"]),o=new Set(["t","tab","br","cr","sym","drawing","pict","object","softHyphen","noBreakHyphen","fldChar","instrText","pgNum","separator","continuationSeparator","footnoteRef","endnoteRef","footnoteReference","endnoteReference","ptab","monthShort","monthLong","yearShort","yearLong","dayShort","dayLong"]),r=false;function a(l){for(let f of i(l)){let c=J(f.name);if(!n.has(c)){if(c==="lastRenderedPageBreak"){r=true;continue}if(c==="r"){for(let d of i(f)){let p=J(d.name);if(p!=="rPr"){if(p==="lastRenderedPageBreak"){r=true;continue}if(p==="br"&&j$1(d,"w","type")==="page")return "forced";if(o.has(p))return "visible"}}continue}if(t.has(c)){let d=a(f);if(d!=="continue")return d;continue}return "continue"}}return "continue"}let u=a(e);return u==="forced"?true:u==="visible"?r:false}function lt(e,t){if(!e)return `w:${t}`;let n=e.indexOf(":");return n<0?t:`${e.substring(0,n+1)}${t}`}function ft(e){if(e.type!=="element")return e;let t=J(e.name),n=e.name;return t==="delText"?n=lt(e.name,"t"):t==="delInstrText"&&(n=lt(e.name,"instrText")),{...e,name:n,elements:e.elements?.map(ft)}}function Q(e){let t=j$1(e,"w","id"),n=t?parseInt(t,10):0,o=j$1(e,"w","author"),r=j$1(e,"w","date"),a=o?.trim()??"",u=r?.trim()??"";return {id:Number.isInteger(n)&&n>=0?n:0,author:a.length>0?a:"Unknown",date:u.length>0?u:void 0}}function gn(e){return Q(e)}function ct(e$1,t,n,o){if(!e$1)return;let r=f(e$1,"w","pPrChange").map(a=>{let u=e(a,"w","pPr");return {type:"paragraphPropertyChange",info:gn(a),previousFormatting:de(u,t),currentFormatting:o}}).filter(a=>a.previousFormatting||a.currentFormatting);return r.length>0?r:void 0}function hn(e,t,n,o,r){return rt(e,t,n,o,r)}function wn(e){return it(e)}function yn(e){return at(e)}function dt(e){let t=e.trim().match(/^\\?([A-Z]+)/i);if(!t)return "UNKNOWN";let n=t[1].toUpperCase();return ["PAGE","NUMPAGES","NUMWORDS","NUMCHARS","DATE","TIME","CREATEDATE","SAVEDATE","PRINTDATE","AUTHOR","TITLE","SUBJECT","KEYWORDS","COMMENTS","FILENAME","FILESIZE","TEMPLATE","DOCPROPERTY","DOCVARIABLE","REF","PAGEREF","NOTEREF","HYPERLINK","TOC","TOA","INDEX","SEQ","STYLEREF","AUTONUM","AUTONUMLGL","AUTONUMOUT","IF","MERGEFIELD","NEXT","NEXTIF","ASK","SET","QUOTE","INCLUDETEXT","INCLUDEPICTURE","SYMBOL","ADVANCE","EDITTIME","REVNUM","SECTION","SECTIONPAGES","USERADDRESS","USERNAME","USERINITIALS"].includes(n)?n:"UNKNOWN"}function bn(e,t,n,o,r){let a=j$1(e,"w","instr")??"",u=dt(a),l={type:"simpleField",instruction:a,fieldType:u,content:[]},f=j$1(e,"w","fldLock");(f==="1"||f==="true")&&(l.fldLock=true);let c=j$1(e,"w","dirty");(c==="1"||c==="true")&&(l.dirty=true);let d=i(e);for(let p of d)J(p.name)==="r"&&l.content.push(K(p,t,n,o,r));return l}function U(e,t,n,o,r,a,u="default"){let l=[],f=i(e),c=false,d="",p=[],w=[],T=false,y=false,x=false;for(let h of f){let P=J(h.name);switch(P){case "r":{let C=u==="deletion"?ft(h):h,M=K(C,t,n,r,a),m=false,F=false,E=false,b="";for(let k of M.content)k.type==="fieldChar"?k.charType==="begin"?(m=true,k.fldLock&&(y=true),k.dirty&&(x=true)):k.charType==="separate"?F=true:k.charType==="end"&&(E=true):k.type==="instrText"&&(b+=k.text);if(m&&(c=true,T=false,d="",p=[],w=[],y=false,x=false),c){if(b&&(d+=b),F&&(T=true),T&&!E?F||w.push(M):!T&&!m&&p.push(M),E){let k={type:"complexField",instruction:d.trim(),fieldType:dt(d),fieldCode:p,fieldResult:w};y&&(k.fldLock=true),x&&(k.dirty=true),l.push(k),c=false;}}else l.push(M);break}case "hyperlink":l.push(hn(h,r,t,n,a));break;case "bookmarkStart":l.push(wn(h));break;case "bookmarkEnd":l.push(yn(h));break;case "fldSimple":l.push(bn(h,t,n,r,a));break;case "pPr":break;case "proofErr":case "permStart":case "permEnd":case "customXml":break;case "sdt":{let C=(h.elements??[]).find(m=>m.type==="element"&&(m.name==="w:sdtPr"||m.name?.endsWith(":sdtPr"))),M=(h.elements??[]).find(m=>m.type==="element"&&(m.name==="w:sdtContent"||m.name?.endsWith(":sdtContent")));if(M){let m=U(M,t,n,null,r,a,u),E={type:"inlineSdt",properties:ie(C??null),content:m.filter(b=>b.type==="run"||b.type==="hyperlink"||b.type==="simpleField"||b.type==="complexField"||b.type==="inlineSdt"||b.type==="mathEquation")};l.push(E);}break}case "ins":{let C=Q(h),M=U(h,t,n,null,r,a),m={type:"insertion",info:C,content:M.filter(F=>F.type==="run"||F.type==="hyperlink")};l.push(m);break}case "del":{let C=Q(h),M=U(h,t,n,null,r,a,"deletion"),m={type:"deletion",info:C,content:M.filter(F=>F.type==="run"||F.type==="hyperlink")};l.push(m);break}case "moveFrom":{let C=Q(h),M=U(h,t,n,null,r,a,"deletion"),m={type:"moveFrom",info:C,content:M.filter(F=>F.type==="run"||F.type==="hyperlink")};l.push(m);break}case "moveTo":{let C=Q(h),M=U(h,t,n,null,r,a),m={type:"moveTo",info:C,content:M.filter(F=>F.type==="run"||F.type==="hyperlink")};l.push(m);break}case "smartTag":break;case "moveFromRangeStart":{let C=parseInt(j$1(h,"w","id")??"0",10),M=j$1(h,"w","name")??"";l.push({type:"moveFromRangeStart",id:C,name:M});break}case "moveFromRangeEnd":{let C=parseInt(j$1(h,"w","id")??"0",10);l.push({type:"moveFromRangeEnd",id:C});break}case "moveToRangeStart":{let C=parseInt(j$1(h,"w","id")??"0",10),M=j$1(h,"w","name")??"";l.push({type:"moveToRangeStart",id:C,name:M});break}case "moveToRangeEnd":{let C=parseInt(j$1(h,"w","id")??"0",10);l.push({type:"moveToRangeEnd",id:C});break}case "commentRangeStart":{let C=parseInt(j$1(h,"w","id")??"0",10);l.push({type:"commentRangeStart",id:C});break}case "commentRangeEnd":{let C=parseInt(j$1(h,"w","id")??"0",10);l.push({type:"commentRangeEnd",id:C});break}case "oMath":case "oMathPara":{let C=P==="oMathPara",M=b(h),m=st(h),F={type:"mathEquation",display:C?"block":"inline",ommlXml:M,plainText:m||void 0};l.push(F);break}}}return l}function Tn(e){let t="";for(let n of e.content)if(n.type==="run")for(let o of n.content)o.type==="text"?t+=o.text:o.type==="tab"?t+=" ":o.type==="break"&&(o.breakType==="page"?t+="\f":t+=`
4
+ `);else if(n.type==="hyperlink"){for(let o of n.children)if(o.type==="run")for(let r of o.content)r.type==="text"&&(t+=r.text);}else if(n.type==="simpleField"){for(let o of n.content)if(o.type==="run")for(let r of o.content)r.type==="text"&&(t+=r.text);}else if(n.type==="complexField")for(let o of n.fieldResult)for(let r of o.content)r.type==="text"&&(t+=r.text);return t}function pt(e){let t=j$1(e,"w","id");if(t==null)return null;let n=parseInt(t,10);if(Number.isNaN(n))return null;let o=j$1(e,"w","author")??"",r=j$1(e,"w","date")??void 0,a={id:n,author:o};return r&&(a.date=r),a}function Z(e$1,t,n,o,r=null,a=null,u){let l={type:"paragraph",content:[]},f=j$1(e$1,"w14","paraId")??j$1(e$1,"w","paraId");f&&(l.paraId=f);let c=j$1(e$1,"w14","textId")??j$1(e$1,"w","textId");c&&(l.textId=c),!u?.inHeaderFooter&&ut(e$1)&&(l.renderedPageBreakBefore=true);let d$1=e(e$1,"w","pPr");if(d$1){l.formatting=de(d$1,n),l.propertyChanges=ct(d$1,n,t,l.formatting);let y=e(d$1,"w","rPr");if(y){let h=e(y,"w","ins");if(h){let C=pt(h);C&&(l.pPrIns=C);}let P=e(y,"w","del");if(P){let C=pt(P);C&&(l.pPrDel=C);}}let x=e(d$1,"w","sectPr");x&&(l.sectionProperties=Je(x));}let p=U(e$1,t,n,o,r,a);l.content=p;let w=l.formatting?.numPr,T=false;if(!w&&l.formatting?.styleId&&t){let y=t.get(l.formatting.styleId);y?.pPr?.numPr&&(w=y.pPr.numPr,T=true,l.formatting||(l.formatting={}),l.formatting.numPr=w,l.formatting.numPrFromStyle=w);}if(w&&o){let y=d(w,o);if(y){l.listRendering=y;let x=T?xn(l.formatting?.styleId,t):{left:false,firstLine:false},h=o.getLevel(y.numId,y.level);if(h?.pPr){l.formatting||(l.formatting={});let P=d$1?e(d$1,"w","ind"):null,C=P!=null&&(j$1(P,"w","left")!==null||j$1(P,"w","start")!==null),M=F=>{let E=P?j$1(P,"w",F):null;if(E===null)return false;let b=parseInt(E,10);return Number.isNaN(b)||b!==0},m=P!=null&&(M("firstLine")||M("hanging"));!C&&!x.left&&h.pPr.indentLeft!==void 0&&(l.formatting.indentLeft=h.pPr.indentLeft),!m&&!x.firstLine&&(h.pPr.indentFirstLine!==void 0&&(l.formatting.indentFirstLine=h.pPr.indentFirstLine),h.pPr.hangingIndent!==void 0&&(l.formatting.hangingIndent=h.pPr.hangingIndent));}}}return l}function xn(e,t){let n={left:false,firstLine:false};if(!e||!t)return n;let o=new Set,r=e;for(;r&&!o.has(r);){o.add(r);let a=t.get(r);if(!a)break;let u=a.pPr;if(u&&(n.left||(n.left=u.indentLeft!==void 0),n.firstLine||(n.firstLine=u.indentFirstLine!==void 0||u.hangingIndent!==void 0)),n.left&&n.firstLine)break;r=a.basedOn;}return n}function mt(e$1){if(!e$1)return;let t={},n=D(e(e$1,"w","tblW"));n&&(t.width=n);let o=e(e$1,"w","jc");if(o){let x=j$1(o,"w","val");(x==="left"||x==="center"||x==="right"||x==="start")&&(t.justification=x==="start"?"left":x);}let r=D(e(e$1,"w","tblCellSpacing"));r&&(t.cellSpacing=r);let a=D(e(e$1,"w","tblInd"));a&&(t.indent=a);let u=ne(e(e$1,"w","tblBorders"));u&&(t.borders=u);let l=oe(e(e$1,"w","tblCellMar"));l&&(t.cellMargins=l);let f=e(e$1,"w","tblLayout");if(f){let x=j$1(f,"w","type");(x==="fixed"||x==="autofit")&&(t.layout=x);}let c=e(e$1,"w","tblStyle");if(c){let x=j$1(c,"w","val");x&&(t.styleId=x);}let d=ye(e(e$1,"w","tblLook"));d&&(t.look=d);let p=re(e(e$1,"w","shd"));p&&(t.shading=p);let w=e(e$1,"w","tblOverlap");if(w){let x=j$1(w,"w","val");(x==="never"||x==="overlap")&&(t.overlap=x);}let T=be(e(e$1,"w","tblpPr"));if(T&&(t.floating=T),m(e(e$1,"w","bidiVisual"))&&(t.bidi=true),Object.keys(t).length!==0)return t}function Fn(e$1,t){if(!e$1)return;let n=f(e$1,"w","tblPrChange").map(o=>{let r=e(o,"w","tblPr");return {type:"tablePropertyChange",info:te(o),previousFormatting:mt(r),currentFormatting:t}}).filter(o=>o.previousFormatting||o.currentFormatting);return n.length>0?n:void 0}function Cn(e$1,t){if(!e$1)return;let n=f(e$1,"w","trPrChange").map(o=>{let r=e(o,"w","trPr");return {type:"tableRowPropertyChange",info:te(o),previousFormatting:gt(r),currentFormatting:t}}).filter(o=>o.previousFormatting||o.currentFormatting);return n.length>0?n:void 0}function kn(e$1,t){if(!e$1)return;let n=f(e$1,"w","tcPrChange").map(o=>{let r=e(o,"w","tcPr");return {type:"tableCellPropertyChange",info:te(o),previousFormatting:wt(r),currentFormatting:t}}).filter(o=>o.previousFormatting||o.currentFormatting);return n.length>0?n:void 0}function Sn(e$1){if(!e$1)return;let t=e(e$1,"w","ins");if(t)return {type:"tableRowInsertion",info:j(t)};let n=e(e$1,"w","del");if(n)return {type:"tableRowDeletion",info:j(n)}}function Mn(e$1){if(!e$1)return;let t=e(e$1,"w","cellIns");if(t)return {type:"tableCellInsertion",info:j(t)};let n=e(e$1,"w","cellDel");if(n)return {type:"tableCellDeletion",info:j(n)};let o=e(e$1,"w","cellMerge");if(o){let r=j$1(o,"w","vMerge"),a=j$1(o,"w","vMergeOrig"),u=l=>l==="rest"||l==="cont";return {type:"tableCellMerge",info:j(o),...u(r)?{vMerge:r}:{},...u(a)?{vMergeOrig:a}:{}}}}function gt(e$1){if(!e$1)return;let t={},n=e(e$1,"w","trHeight");if(n){let f=l(n,"w","val");f!==void 0&&f>0&&(t.height={value:f,type:"dxa"});let c=j$1(n,"w","hRule");(c==="auto"||c==="atLeast"||c==="exact")&&(t.heightRule=c);}m(e(e$1,"w","tblHeader"))&&(t.header=true),m(e(e$1,"w","cantSplit"))&&(t.cantSplit=true);let a=e(e$1,"w","jc");if(a){let f=j$1(a,"w","val");(f==="left"||f==="center"||f==="right")&&(t.justification=f);}m(e(e$1,"w","hidden"))&&(t.hidden=true);let l$1=ht(e(e$1,"w","cnfStyle"));if(l$1&&(t.conditionalFormat=l$1),Object.keys(t).length!==0)return t}function ht(e){if(!e)return;let t={},n=j$1(e,"w","firstRow");(n==="1"||n==="true")&&(t.firstRow=true);let o=j$1(e,"w","lastRow");(o==="1"||o==="true")&&(t.lastRow=true);let r=j$1(e,"w","firstColumn");(r==="1"||r==="true")&&(t.firstColumn=true);let a=j$1(e,"w","lastColumn");(a==="1"||a==="true")&&(t.lastColumn=true);let u=j$1(e,"w","oddHBand");(u==="1"||u==="true")&&(t.oddHBand=true);let l=j$1(e,"w","evenHBand");(l==="1"||l==="true")&&(t.evenHBand=true);let f=j$1(e,"w","oddVBand");(f==="1"||f==="true")&&(t.oddVBand=true);let c=j$1(e,"w","evenVBand");(c==="1"||c==="true")&&(t.evenVBand=true);let d=j$1(e,"w","firstRowFirstColumn");(d==="1"||d==="true")&&(t.nwCell=true);let p=j$1(e,"w","firstRowLastColumn");(p==="1"||p==="true")&&(t.neCell=true);let w=j$1(e,"w","lastRowFirstColumn");(w==="1"||w==="true")&&(t.swCell=true);let T=j$1(e,"w","lastRowLastColumn");(T==="1"||T==="true")&&(t.seCell=true);let y=j$1(e,"w","val");if(y&&y.length===12&&(y[0]==="1"&&(t.firstRow=true),y[1]==="1"&&(t.lastRow=true),y[2]==="1"&&(t.firstColumn=true),y[3]==="1"&&(t.lastColumn=true),y[4]==="1"&&(t.oddVBand=true),y[5]==="1"&&(t.evenVBand=true),y[6]==="1"&&(t.oddHBand=true),y[7]==="1"&&(t.evenHBand=true),y[8]==="1"&&(t.nwCell=true),y[9]==="1"&&(t.neCell=true),y[10]==="1"&&(t.swCell=true),y[11]==="1"&&(t.seCell=true)),Object.keys(t).length!==0)return t}function wt(e$1){if(!e$1)return;let t={},n=D(e(e$1,"w","tcW"));n&&(t.width=n);let o=ne(e(e$1,"w","tcBorders"));o&&(t.borders=o);let r=oe(e(e$1,"w","tcMar"));r&&(t.margins=r);let a=re(e(e$1,"w","shd"));a&&(t.shading=a);let u=e(e$1,"w","vAlign");if(u){let y=j$1(u,"w","val");(y==="top"||y==="center"||y==="bottom")&&(t.verticalAlign=y);}let l$1=e(e$1,"w","textDirection");if(l$1){let y=j$1(l$1,"w","val");y&&(t.textDirection=y);}let f=e(e$1,"w","gridSpan");if(f){let y=l(f,"w","val");y!==void 0&&y>1&&(t.gridSpan=y);}let c=e(e$1,"w","vMerge");c&&(j$1(c,"w","val")==="restart"?t.vMerge="restart":t.vMerge="continue"),m(e(e$1,"w","tcFitText"))&&(t.fitText=true),m(e(e$1,"w","noWrap"))&&(t.noWrap=true),m(e(e$1,"w","hideMark"))&&(t.hideMark=true);let T=ht(e(e$1,"w","cnfStyle"));if(T&&(t.conditionalFormat=T),Object.keys(t).length!==0)return t}function Rn(e,t,n,o,r,a,u){let l=[],f=e.elements||[];for(let c of f){if(!c.name)continue;let d=c.name.split(":").pop();if(d==="p"){let p=Z(c,t,n,o,r,a,u);l.push(p);}else if(d==="tbl"){let p=Te(c,t,n,o,r,a,u);l.push(p);}}return l.length===0&&l.push({type:"paragraph",content:[]}),l}function En(e$1,t,n,o,r,a,u){let l={type:"tableCell",content:[]},f=e(e$1,"w","tcPr"),c=wt(f);return c&&(l.formatting=c),l.propertyChanges=kn(f,c),l.structuralChange=Mn(f),l.content=Rn(e$1,t,n,o,r,a,u),l}function Pn(e$1,t,n,o,r,a,u){let l={type:"tableRow",cells:[]},f$1=e(e$1,"w","trPr"),c=gt(f$1);c&&(l.formatting=c),l.propertyChanges=Cn(f$1,c),l.structuralChange=Sn(f$1);let d=f(e$1,"w","tc");for(let p of d){let w=En(p,t,n,o,r,a,u);l.cells.push(w);}return l}function Bn(e){if(!e)return;let t=[],n=f(e,"w","gridCol");for(let o of n){let r=l(o,"w","w")??0;t.push(r);}if(!(t.length>0&&t.every(o=>o<=0)))return t.length>0?t:void 0}function vn(e){return e.cells.reduce((t,n)=>t+(n.formatting?.gridSpan??1),0)}function Nn(e){let t=Math.max(e.columnWidths?.length??0,...e.rows.map(n=>vn(n)));if(!(t<=1))for(let n of e.rows){if(n.cells.length!==1)continue;let o=n.cells[0];(o.formatting?.gridSpan??1)>=t||o.formatting?.vMerge||o.formatting?.gridSpan==null&&(o.formatting={...o.formatting??{},gridSpan:t});}}function Te(e$1,t,n,o,r,a,u){let l={type:"table",rows:[]},f$1=e(e$1,"w","tblPr"),c=mt(f$1);c&&(l.formatting=c),l.propertyChanges=Fn(f$1,c);let d=Bn(e(e$1,"w","tblGrid"));d&&(l.columnWidths=d);let p=f(e$1,"w","tr");for(let w of p){let T=Pn(w,t,n,o,r,a,u);l.rows.push(T);}return Nn(l),l}export{so as A,Je as B,mo as C,go as D,K as E,rt as F,Ao as G,Io as H,Ho as I,Lo as J,Xo as K,Do as L,Oo as M,Tn as N,Z as O,In as a,Y as b,De as c,V as d,ne as e,oe as f,re as g,ye as h,be as i,Ct as j,kt as k,St as l,Mt as m,Rt as n,mt as o,vt as p,q,Qn as r,Jn as s,oo as t,ro as u,Ze as v,Ke as w,io as x,ao as y,lo as z};
@@ -1 +1 @@
1
- 'use strict';var chunkAXVWVIIN_js=require('./chunk-AXVWVIIN.js'),chunkILPNMG7Q_js=require('./chunk-ILPNMG7Q.js');function y(e){return chunkILPNMG7Q_js.g(e,chunkAXVWVIIN_js.b)}var t=chunkAXVWVIIN_js.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)}exports.a=y;exports.b=F;exports.c=f;exports.d=S;exports.e=H;exports.f=T;exports.g=h;exports.h=M;exports.i=A;exports.j=v;exports.k=z;exports.l=U;exports.m=b;exports.n=B;exports.o=I;exports.p=R;exports.q=_;exports.r=j;exports.s=q;
1
+ 'use strict';var chunk4U2S3WV2_js=require('./chunk-4U2S3WV2.js'),chunkILPNMG7Q_js=require('./chunk-ILPNMG7Q.js');function y(e){return chunkILPNMG7Q_js.g(e,chunk4U2S3WV2_js.b)}var t=chunk4U2S3WV2_js.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)}exports.a=y;exports.b=F;exports.c=f;exports.d=S;exports.e=H;exports.f=T;exports.g=h;exports.h=M;exports.i=A;exports.j=v;exports.k=z;exports.l=U;exports.m=b;exports.n=B;exports.o=I;exports.p=R;exports.q=_;exports.r=j;exports.s=q;
@@ -0,0 +1 @@
1
+ 'use strict';var chunkDUVSDFRG_js=require('./chunk-DUVSDFRG.js');var t=new chunkDUVSDFRG_js.r(chunkDUVSDFRG_js.q());t.buildSchema();t.initializeRuntime();var s=t,n=t.getSchema();exports.a=s;exports.b=n;
@@ -1,2 +1,2 @@
1
- import {a,r,s,t,u as u$1,A,z,q as q$1,B,D,O,N,C,b as b$3}from'./chunk-4QJEMD23.mjs';import {b as b$1}from'./chunk-MOCGHQ4A.mjs';import {u,q}from'./chunk-CDBKFBC2.mjs';import {b,a as a$2}from'./chunk-W77JXDEV.mjs';import {b as b$2}from'./chunk-DI6CRWSW.mjs';import {a as a$1}from'./chunk-VJFIAFZ5.mjs';import {c,f,e,l,j as j$1,a as a$3,i,m}from'./chunk-3ANZ3252.mjs';import He from'jszip';async function G(t){let n=await He.loadAsync(t),e={documentXml:null,stylesXml:null,themeXml:null,numberingXml:null,fontTableXml:null,settingsXml:null,webSettingsXml:null,headers:new Map,footers:new Map,footnotesXml:null,endnotesXml:null,commentsXml:null,commentsExtensibleXml:null,commentsExtendedXml:null,documentRels:null,packageRels:null,contentTypesXml:null,corePropsXml:null,appPropsXml:null,customPropsXml:null,media:new Map,fonts:new Map,allXml:new Map,originalZip:n,originalBuffer:t};for(let[o,i]of Object.entries(n.files)){if(i.dir)continue;let r=o.toLowerCase();if(r.endsWith(".xml")||r.endsWith(".rels")){let a=await i.async("text");if(e.allXml.set(o,a),r==="word/document.xml")e.documentXml=a;else if(r==="word/styles.xml")e.stylesXml=a;else if(r==="word/theme/theme1.xml")e.themeXml=a;else if(r==="word/numbering.xml")e.numberingXml=a;else if(r==="word/fonttable.xml")e.fontTableXml=a;else if(r==="word/settings.xml")e.settingsXml=a;else if(r==="word/websettings.xml")e.webSettingsXml=a;else if(r==="word/footnotes.xml")e.footnotesXml=a;else if(r==="word/endnotes.xml")e.endnotesXml=a;else if(r==="word/comments.xml")e.commentsXml=a;else if(r==="word/commentsextensible.xml")e.commentsExtensibleXml=a;else if(r==="word/commentsextended.xml")e.commentsExtendedXml=a;else if(r==="word/_rels/document.xml.rels")e.documentRels=a;else if(r==="_rels/.rels")e.packageRels=a;else if(r==="[content_types].xml")e.contentTypesXml=a;else if(r==="docprops/core.xml")e.corePropsXml=a;else if(r==="docprops/app.xml")e.appPropsXml=a;else if(r==="docprops/custom.xml")e.customPropsXml=a;else if(r.match(/^word\/header\d+\.xml$/)){let c=o.split("/").pop()||o;e.headers.set(c,a);}else if(r.match(/^word\/footer\d+\.xml$/)){let c=o.split("/").pop()||o;e.footers.set(c,a);}}else if(r.startsWith("word/media/")){let a=await i.async("arraybuffer");e.media.set(o,a);}else if(r.startsWith("word/fonts/")){let a=await i.async("arraybuffer");e.fonts.set(o,a);}}return e}function Me(t){switch(t.toLowerCase().split(".").pop()){case "png":return "image/png";case "jpg":case "jpeg":return "image/jpeg";case "gif":return "image/gif";case "bmp":return "image/bmp";case "tif":case "tiff":return "image/tiff";case "wmf":return "image/x-wmf";case "emf":return "image/x-emf";case "svg":return "image/svg+xml";case "webp":return "image/webp";default:return "application/octet-stream"}}function Y(t,n,e,o){let i={};return t&&t!=="auto"?i.rgb=t:t==="auto"&&(i.auto=true),n&&(i.themeColor=n),e&&(i.themeTint=e),o&&(i.themeShade=o),i}function W(t){if(!t)return;let n={},e=j$1(t,"w","color");e&&e!=="auto"&&(n.color={rgb:e});let o=j$1(t,"w","fill");o&&o!=="auto"&&(n.fill={rgb:o});let i=j$1(t,"w","themeFill");i&&(n.fill=n.fill||{},n.fill.themeColor=i);let r=j$1(t,"w","themeFillTint");r&&n.fill&&(n.fill.themeTint=r);let a=j$1(t,"w","themeFillShade");a&&n.fill&&(n.fill.themeShade=a);let c=j$1(t,"w","val");return c&&(n.pattern=c),Object.keys(n).length>0?n:void 0}function $(t,n){if(!t)return;let e$1={},o=e(t,"w","b");o&&(e$1.bold=m(o));let i=e(t,"w","bCs");i&&(e$1.boldCs=m(i));let r=e(t,"w","i");r&&(e$1.italic=m(r));let a=e(t,"w","iCs");a&&(e$1.italicCs=m(a));let c=e(t,"w","u");if(c){let m=j$1(c,"w","val");if(m){e$1.underline={style:m};let P=j$1(c,"w","color"),I=j$1(c,"w","themeColor");(P||I)&&(e$1.underline.color=Y(P,I,j$1(c,"w","themeTint"),j$1(c,"w","themeShade")));}}let g=e(t,"w","strike");g&&(e$1.strike=m(g));let d=e(t,"w","dstrike");d&&(e$1.doubleStrike=m(d));let h=e(t,"w","vertAlign");if(h){let m=j$1(h,"w","val");(m==="superscript"||m==="subscript"||m==="baseline")&&(e$1.vertAlign=m);}let b=e(t,"w","smallCaps");b&&(e$1.smallCaps=m(b));let u=e(t,"w","caps");u&&(e$1.allCaps=m(u));let S=e(t,"w","vanish");S&&(e$1.hidden=m(S));let f=e(t,"w","color");f&&(e$1.color=Y(j$1(f,"w","val"),j$1(f,"w","themeColor"),j$1(f,"w","themeTint"),j$1(f,"w","themeShade")));let y=e(t,"w","highlight");if(y){let m=j$1(y,"w","val");m&&(e$1.highlight=m);}let C=e(t,"w","shd");C&&(e$1.shading=W(C));let D=e(t,"w","sz");if(D){let m=l(D,"w","val");m!==void 0&&(e$1.fontSize=m);}let B=e(t,"w","szCs");if(B){let m=l(B,"w","val");m!==void 0&&(e$1.fontSizeCs=m);}let v=e(t,"w","rFonts");if(v){e$1.fontFamily={ascii:j$1(v,"w","ascii")??void 0,hAnsi:j$1(v,"w","hAnsi")??void 0,eastAsia:j$1(v,"w","eastAsia")??void 0,cs:j$1(v,"w","cs")??void 0};let m=j$1(v,"w","asciiTheme");m&&(e$1.fontFamily.asciiTheme=m,n&&!e$1.fontFamily.ascii&&(e$1.fontFamily.ascii=b$3(n,m)));let P=j$1(v,"w","hAnsiTheme");P&&(e$1.fontFamily.hAnsiTheme=P,n&&!e$1.fontFamily.hAnsi&&(e$1.fontFamily.hAnsi=b$3(n,P)));let I=j$1(v,"w","eastAsiaTheme");I&&(e$1.fontFamily.eastAsiaTheme=I,n&&!e$1.fontFamily.eastAsia&&(e$1.fontFamily.eastAsia=b$3(n,I)));let U=j$1(v,"w","cstheme");U&&(e$1.fontFamily.csTheme=U,n&&!e$1.fontFamily.cs&&(e$1.fontFamily.cs=b$3(n,U)));}let X=e(t,"w","spacing");if(X){let m=l(X,"w","val");m!==void 0&&(e$1.spacing=m);}let p=e(t,"w","position");if(p){let m=l(p,"w","val");m!==void 0&&(e$1.position=m);}let x=e(t,"w","w");if(x){let m=l(x,"w","val");m!==void 0&&(e$1.scale=m);}let F=e(t,"w","kern");if(F){let m=l(F,"w","val");m!==void 0&&(e$1.kerning=m);}let A=e(t,"w","effect");if(A){let m=j$1(A,"w","val");m&&(e$1.effect=m);}let k=e(t,"w","em");if(k){let m=j$1(k,"w","val");m&&(e$1.emphasisMark=m);}let M=e(t,"w","emboss");M&&(e$1.emboss=m(M));let R=e(t,"w","imprint");R&&(e$1.imprint=m(R));let V=e(t,"w","outline");V&&(e$1.outline=m(V));let L=e(t,"w","shadow");L&&(e$1.shadow=m(L));let N=e(t,"w","rtl");N&&(e$1.rtl=m(N));let H=e(t,"w","cs");H&&(e$1.cs=m(H));let _=e(t,"w","rStyle");if(_){let m=j$1(_,"w","val");m&&(e$1.styleId=m);}return Object.keys(e$1).length>0?e$1:void 0}function E(t){if(!t)return;let n=j$1(t,"w","val");if(!n)return;let e={style:n},o=j$1(t,"w","color"),i=j$1(t,"w","themeColor");(o||i)&&(e.color=Y(o,i,j$1(t,"w","themeTint"),j$1(t,"w","themeShade")));let r=l(t,"w","sz");r!==void 0&&(e.size=r);let a=l(t,"w","space");a!==void 0&&(e.space=a);let c=j$1(t,"w","shadow");c&&(e.shadow=c==="1"||c==="true");let g=j$1(t,"w","frame");return g&&(e.frame=g==="1"||g==="true"),e}function je(t){if(!t)return;let n=f(t,"w","tab");if(n.length===0)return;let e=[];for(let o of n){let i=l(o,"w","pos"),r=j$1(o,"w","val");if(i!==void 0&&r){let a={position:i,alignment:r},c=j$1(o,"w","leader");c&&(a.leader=c),e.push(a);}}return e.length>0?e:void 0}function K(t,n){if(!t)return;let e$1={},o=e(t,"w","jc");if(o){let p=j$1(o,"w","val");p&&(e$1.alignment=p);}let i=e(t,"w","bidi");i&&(e$1.bidi=m(i));let r=e(t,"w","spacing");if(r){let p=l(r,"w","before");p!==void 0&&(e$1.spaceBefore=p);let x=l(r,"w","after");x!==void 0&&(e$1.spaceAfter=x);let F=l(r,"w","line");F!==void 0&&(e$1.lineSpacing=F);let A=j$1(r,"w","lineRule");A&&(e$1.lineSpacingRule=A);let k=j$1(r,"w","beforeAutospacing");k&&(e$1.beforeAutospacing=k==="1"||k==="true");let M=j$1(r,"w","afterAutospacing");M&&(e$1.afterAutospacing=M==="1"||M==="true");}let a=e(t,"w","ind");if(a){let p=l(a,"w","left");p!==void 0&&(e$1.indentLeft=p);let x=l(a,"w","right");x!==void 0&&(e$1.indentRight=x);let F=l(a,"w","firstLine");F!==void 0&&(e$1.indentFirstLine=F);let A=l(a,"w","hanging");A!==void 0&&(e$1.indentFirstLine=-A,e$1.hangingIndent=true);}let c=e(t,"w","pBdr");if(c){let p={},x=E(e(c,"w","top"));x&&(p.top=x);let F=E(e(c,"w","bottom"));F&&(p.bottom=F);let A=E(e(c,"w","left"));A&&(p.left=A);let k=E(e(c,"w","right"));k&&(p.right=k);let M=E(e(c,"w","between"));M&&(p.between=M);let R=E(e(c,"w","bar"));R&&(p.bar=R),Object.keys(p).length>0&&(e$1.borders=p);}let g=e(t,"w","shd");g&&(e$1.shading=W(g));let d=e(t,"w","tabs");d&&(e$1.tabs=je(d));let h=e(t,"w","keepNext");h&&(e$1.keepNext=m(h));let b=e(t,"w","keepLines");b&&(e$1.keepLines=m(b));let u=e(t,"w","widowControl");u&&(e$1.widowControl=m(u));let S=e(t,"w","pageBreakBefore");S&&(e$1.pageBreakBefore=m(S));let f=e(t,"w","contextualSpacing");f&&(e$1.contextualSpacing=m(f));let y=e(t,"w","numPr");if(y){let p=e(y,"w","numId"),x=e(y,"w","ilvl");if(p||x){if(e$1.numPr={},p){let F=l(p,"w","val");F!==void 0&&(e$1.numPr.numId=F);}if(x){let F=l(x,"w","val");F!==void 0&&(e$1.numPr.ilvl=F);}}}let C=e(t,"w","outlineLvl");if(C){let p=l(C,"w","val");p!==void 0&&(e$1.outlineLevel=p);}let D=e(t,"w","pStyle");if(D){let p=j$1(D,"w","val");p&&(e$1.styleId=p);}let B=e(t,"w","suppressLineNumbers");B&&(e$1.suppressLineNumbers=m(B));let v=e(t,"w","suppressAutoHyphens");v&&(e$1.suppressAutoHyphens=m(v));let X=e(t,"w","rPr");return X&&(e$1.runProperties=$(X,n)),Object.keys(e$1).length>0?e$1:void 0}function j(t){if(!t)return;let n=l(t,"w","w"),e=j$1(t,"w","type");if(n!==void 0&&e)return {value:n,type:e}}function De(t){if(!t)return;let n={},e$1=E(e(t,"w","top"));e$1&&(n.top=e$1);let o=E(e(t,"w","bottom"));o&&(n.bottom=o);let i=E(e(t,"w","left"));i&&(n.left=i);let r=E(e(t,"w","right"));r&&(n.right=r);let a=E(e(t,"w","insideH"));a&&(n.insideH=a);let c=E(e(t,"w","insideV"));return c&&(n.insideV=c),Object.keys(n).length>0?n:void 0}function Ae(t){if(!t)return;let n={},e$1=j(e(t,"w","top"));e$1&&(n.top=e$1);let o=j(e(t,"w","bottom"));o&&(n.bottom=o);let i=j(e(t,"w","left"));i&&(n.left=i);let r=j(e(t,"w","right"));return r&&(n.right=r),Object.keys(n).length>0?n:void 0}function Le(t){if(!t)return;let n={},e=j$1(t,"w","val");if(e){let d=parseInt(e,16);isNaN(d)||(n.firstRow=(d&32)!==0,n.lastRow=(d&64)!==0,n.firstColumn=(d&128)!==0,n.lastColumn=(d&256)!==0,n.noHBand=(d&512)!==0,n.noVBand=(d&1024)!==0);}let o=j$1(t,"w","firstColumn");o&&(n.firstColumn=o==="1");let i=j$1(t,"w","firstRow");i&&(n.firstRow=i==="1");let r=j$1(t,"w","lastColumn");r&&(n.lastColumn=r==="1");let a=j$1(t,"w","lastRow");a&&(n.lastRow=a==="1");let c=j$1(t,"w","noHBand");c&&(n.noHBand=c==="1");let g=j$1(t,"w","noVBand");return g&&(n.noVBand=g==="1"),Object.keys(n).length>0?n:void 0}function le(t,n){if(!t)return;let e$1={},o=e(t,"w","tblW");o&&(e$1.width=j(o));let i=e(t,"w","jc");if(i){let f=j$1(i,"w","val");(f==="left"||f==="center"||f==="right")&&(e$1.justification=f);}let r=e(t,"w","tblCellSpacing");r&&(e$1.cellSpacing=j(r));let a=e(t,"w","tblInd");a&&(e$1.indent=j(a));let c=e(t,"w","tblBorders");c&&(e$1.borders=De(c));let g=e(t,"w","tblCellMar");g&&(e$1.cellMargins=Ae(g));let d=e(t,"w","tblLayout");if(d){let f=j$1(d,"w","type");(f==="fixed"||f==="autofit")&&(e$1.layout=f);}let h=e(t,"w","tblStyle");if(h){let f=j$1(h,"w","val");f&&(e$1.styleId=f);}let b=e(t,"w","tblLook");b&&(e$1.look=Le(b));let u=e(t,"w","shd");u&&(e$1.shading=W(u));let S=e(t,"w","bidiVisual");return S&&(e$1.bidi=m(S)),Object.keys(e$1).length>0?e$1:void 0}function ce(t){if(!t)return;let n={},e$1=e(t,"w","trHeight");if(e$1){n.height=j(e$1);let c=j$1(e$1,"w","hRule");c&&(n.heightRule=c);}let o=e(t,"w","tblHeader");o&&(n.header=m(o));let i=e(t,"w","cantSplit");i&&(n.cantSplit=m(i));let r=e(t,"w","jc");if(r){let c=j$1(r,"w","val");(c==="left"||c==="center"||c==="right")&&(n.justification=c);}let a=e(t,"w","hidden");return a&&(n.hidden=m(a)),Object.keys(n).length>0?n:void 0}function fe(t,n){if(!t)return;let e$1={},o=e(t,"w","tcW");o&&(e$1.width=j(o));let i=e(t,"w","tcBorders");i&&(e$1.borders=De(i));let r=e(t,"w","tcMar");r&&(e$1.margins=Ae(r));let a=e(t,"w","shd");a&&(e$1.shading=W(a));let c=e(t,"w","vAlign");if(c){let f=j$1(c,"w","val");(f==="top"||f==="center"||f==="bottom")&&(e$1.verticalAlign=f);}let g=e(t,"w","textDirection");if(g){let f=j$1(g,"w","val");f&&(e$1.textDirection=f);}let d=e(t,"w","gridSpan");if(d){let f=l(d,"w","val");f!==void 0&&(e$1.gridSpan=f);}let h=e(t,"w","vMerge");if(h){let f=j$1(h,"w","val");e$1.vMerge=f==="restart"?"restart":"continue";}let b=e(t,"w","tcFitText");b&&(e$1.fitText=m(b));let u=e(t,"w","noWrap");u&&(e$1.noWrap=m(u));let S=e(t,"w","hideMark");return S&&(e$1.hideMark=m(S)),Object.keys(e$1).length>0?e$1:void 0}function Ue(t,n){let e$1={styleId:j$1(t,"w","styleId")??"",type:j$1(t,"w","type")??"paragraph"},o=j$1(t,"w","default");o&&(e$1.default=o==="1"||o==="true");let i=e(t,"w","name");i&&(e$1.name=j$1(i,"w","val")??void 0);let r=e(t,"w","basedOn");r&&(e$1.basedOn=j$1(r,"w","val")??void 0);let a=e(t,"w","next");a&&(e$1.next=j$1(a,"w","val")??void 0);let c=e(t,"w","link");c&&(e$1.link=j$1(c,"w","val")??void 0);let g=e(t,"w","uiPriority");if(g){let X=l(g,"w","val");X!==void 0&&(e$1.uiPriority=X);}let d=e(t,"w","hidden");d&&(e$1.hidden=m(d));let h=e(t,"w","semiHidden");h&&(e$1.semiHidden=m(h));let b=e(t,"w","unhideWhenUsed");b&&(e$1.unhideWhenUsed=m(b));let u=e(t,"w","qFormat");u&&(e$1.qFormat=m(u));let S=e(t,"w","personal");S&&(e$1.personal=m(S));let f$1=e(t,"w","pPr");f$1&&(e$1.pPr=K(f$1,n));let y=e(t,"w","rPr");y&&(e$1.rPr=$(y,n));let C=e(t,"w","tblPr");C&&(e$1.tblPr=le(C));let D=e(t,"w","trPr");D&&(e$1.trPr=ce(D));let B=e(t,"w","tcPr");B&&(e$1.tcPr=fe(B));let v=f(t,"w","tblStylePr");if(v.length>0){e$1.tblStylePr=[];for(let X of v){let p=j$1(X,"w","type");if(p){let x={type:p},F=e(X,"w","pPr");F&&(x.pPr=K(F,n));let A=e(X,"w","rPr");A&&(x.rPr=$(A,n));let k=e(X,"w","tblPr");k&&(x.tblPr=le(k));let M=e(X,"w","trPr");M&&(x.trPr=ce(M));let R=e(X,"w","tcPr");R&&(x.tcPr=fe(R)),e$1.tblStylePr.push(x);}}}return e$1}function Oe(t,n){if(!t)return;let e$1={},o=e(t,"w","rPrDefault");if(o){let r=e(o,"w","rPr");r&&(e$1.rPr=$(r,n));}let i=e(t,"w","pPrDefault");if(i){let r=e(i,"w","pPr");r&&(e$1.pPr=K(r,n));}return e$1.rPr||e$1.pPr?e$1:void 0}function ze(t,n){if(!n)return t;if(!t)return n?{...n}:void 0;let e={...t};for(let o of Object.keys(n)){let i=n[o];if(i!==void 0)if(o==="runProperties")e.runProperties=b$2(e.runProperties,n.runProperties);else if(o==="borders"||o==="numPr"||o==="frame"){let r=e[o],a=i;e[o]={...r||{},...a||{}};}else o==="tabs"&&Array.isArray(i)?e.tabs=[...i]:e[o]=i;}return e}function Be(t,n,e,o=new Set){if(o.has(t.styleId)||(o.add(t.styleId),!t.basedOn))return t;let i=n.get(t.basedOn);if(!i)return t;let r=Be(i,n,e,o),a={...t,pPr:ze(r.pPr,t.pPr),rPr:b$2(r.rPr,t.rPr)};return t.type==="table"&&((r.tblPr||t.tblPr)&&(a.tblPr={...r.tblPr||{},...t.tblPr||{}}),(r.trPr||t.trPr)&&(a.trPr={...r.trPr||{},...t.trPr||{}}),(r.tcPr||t.tcPr)&&(a.tcPr={...r.tcPr||{},...t.tcPr||{}})),a}function ue(t,n){let e=new Map;try{let o=c(t);if(!o)return e;let i=f(o,"w","style");for(let r of i){let a=Ue(r,n);a.styleId&&e.set(a.styleId,a);}for(let[r,a]of e){let c=Be(a,e,n);e.set(r,c);}}catch(o){console.warn("Failed to parse styles:",o);}return e}function ke(t,n){let e$1={styles:[]};try{let o=c(t);if(!o)return e$1;let i=e(o,"w","docDefaults");e$1.docDefaults=Oe(i,n);let r=e(o,"w","latentStyles");r&&(e$1.latentStyles={defLockedState:j$1(r,"w","defLockedState")==="1",defUIPriority:l(r,"w","defUIPriority"),defSemiHidden:j$1(r,"w","defSemiHidden")==="1",defUnhideWhenUsed:j$1(r,"w","defUnhideWhenUsed")==="1",defQFormat:j$1(r,"w","defQFormat")==="1",count:l(r,"w","count")});let a=ue(t,n);e$1.styles=Array.from(a.values());}catch(o){console.warn("Failed to parse style definitions:",o);}return e$1}var Ie=/\{([a-zA-Z_][a-zA-Z0-9_\-\.]*)\}/g;function Re(t){let n=[],e;for(Ie.lastIndex=0;(e=Ie.exec(t))!==null;){let o=e[1].trim();o&&!n.includes(o)&&n.push(o);}return n}function ee(t){let n=[];for(let e of t)if(e.type==="paragraph"){let o=N(e),i=Re(o);for(let r of i)n.includes(r)||n.push(r);}else if(e.type==="table"){let o=Ee(e);for(let i of o)n.includes(i)||n.push(i);}return n}function Ee(t){let n=[];for(let e of t.rows)for(let o of e.cells)for(let i of o.content)if(i.type==="paragraph"){let r=N(i),a=Re(r);for(let c of a)n.includes(c)||n.push(c);}else if(i.type==="table"){let r=Ee(i);for(let a of r)n.includes(a)||n.push(a);}return n}function We(t,n){let e=[],o=[];for(let i of t)o.push(i),i.type==="paragraph"&&i.sectionProperties&&(e.push({properties:i.sectionProperties,content:o}),o=[]);return (o.length>0||e.length===0)&&e.push({properties:n??C(),content:o}),e}function te(t,n=null,e$1=null,o=null,i=null,r=null){let a={content:[]};if(!t)return a;let c=a$3(t);if(!c)return a;let g=(c.elements??[]).find(u=>u.type==="element"&&(u.name==="w:document"||u.name?.endsWith(":document")));if(!g)return a;let d=e(g,"w","body");if(!d)return a;a.content=q$1(d,n,e$1,o,i,r);let h=e(d,"w","sectPr");h&&(a.finalSectionProperties=B(h,i));let b=We(a.content,a.finalSectionProperties);return a.sections=D(b),a.finalSectionProperties&&a.sections.length>0&&(a.finalSectionProperties=a.sections[a.sections.length-1].properties),a}function $e(t){let n=new Map,e$1=a$3(t);if(!e$1)return n;let o=e(e$1,"w16cex","commentsExtensible")??e$1;for(let i$1 of i(o)){if((i$1.name?.replace(/^.*:/,"")??"")!=="comment")continue;let a=j$1(i$1,"w16cex","paraId")??j$1(i$1,"w15","paraId")??i$1.attributes?.["w16cex:paraId"]??i$1.attributes?.["w15:paraId"],c=j$1(i$1,"w16cex","dateUtc")??j$1(i$1,"w15","dateUtc")??i$1.attributes?.["w16cex:dateUtc"]??i$1.attributes?.["w15:dateUtc"];a&&c&&n.set(String(a).toUpperCase(),String(c));}return n}function _e(t){let n=new Map,e$1=new Map,o=a$3(t);if(!o)return {parentByParaId:n,doneByParaId:e$1};let i$1=e(o,"w15","commentsEx")??o;for(let r of i(i$1)){if((r.name?.replace(/^.*:/,"")??"")!=="commentEx")continue;let c=j$1(r,"w15","paraId")??r.attributes?.["w15:paraId"],g=j$1(r,"w15","paraIdParent")??r.attributes?.["w15:paraIdParent"],d=j$1(r,"w15","done")??r.attributes?.["w15:done"];if(c){let h=String(c).toUpperCase();g&&n.set(h,String(g).toUpperCase()),d==="1"&&e$1.set(h,true);}}return {parentByParaId:n,doneByParaId:e$1}}function Ne(t,n,e$1,o,i$1,r,a){if(!t)return [];let c=a$3(t);if(!c)return [];let g=r?$e(r):new Map,d=a?_e(a):null,h=e(c,"w","comments")??c,b=i(h),u=[],S=[];for(let f of b){if((f.name?.replace(/^.*:/,"")??"")!=="comment")continue;let C=parseInt(j$1(f,"w","id")??"0",10),D=j$1(f,"w","author")??"Unknown",B=j$1(f,"w","initials"),v=B!=null?String(B):void 0,X=j$1(f,"w","date"),p=X!=null?String(X):void 0,x=j$1(f,"w14","paraId")??f.attributes?.["w14:paraId"]??j$1(f,"w","paraId"),A=(x?g.get(String(x).toUpperCase()):void 0)??p,k=j$1(f,"w","done")??f.attributes?.["w:done"],M=k==="1"||k==="true"?true:void 0,R=j$1(f,"w16cid","parentId")??j$1(f,"w","parentId")??f.attributes?.["w16cid:parentId"]??f.attributes?.["w:parentId"],V=R!=null?parseInt(String(R),10):void 0,L=[],N="";for(let H of i(f))if((H.name?.replace(/^.*:/,"")??"")==="p"){let m=O(H,n,e$1,null,o,i$1);L.push(m);let P=j$1(H,"w14","paraId")??H.attributes?.["w14:paraId"];P&&(N=String(P).toUpperCase());}M==null&&d&&N&&d.doneByParaId.get(N)&&(M=true),S.push(N),u.push({id:C,author:D,initials:v,date:A,content:L,...M!=null?{done:M}:{},...V!=null&&!isNaN(V)?{parentId:V}:{}});}if(d&&d.parentByParaId.size>0){let f=new Map;for(let y=0;y<u.length;y++){let C=S[y];C&&f.set(C,u[y].id);}for(let y=0;y<u.length;y++){if(u[y].parentId!=null)continue;let C=S[y];if(!C)continue;let D=d.parentByParaId.get(C);if(!D)continue;let B=f.get(D);B!=null&&(u[y]={...u[y],parentId:B});}}return u}async function Ve(t,n={}){let e=t instanceof ArrayBuffer?t:await u(t),{onProgress:o=()=>{},preloadFonts:i=true,parseHeadersFooters:r=true,parseNotes:a$2=true,detectVariables:c=true}=n,g=[];try{let u=function(P,I){let U=performance.now(),oe=I(),O=performance.now()-U;return b$2.push({stage:P,ms:O}),O>1e3&&console.warn(`[parseDocx] ${P} took ${Math.round(O)}ms`),oe};var d=u;let h=performance.now(),b$2=[];async function S(P,I){let U=performance.now(),oe=await I(),O=performance.now()-U;return b$2.push({stage:P,ms:O}),O>1e3&&console.warn(`[parseDocx] ${P} took ${Math.round(O)}ms`),oe}o("Extracting DOCX...",0);let f=await S("unzip",()=>G(e));o("Extracted DOCX",10),o("Parsing relationships...",10);let y=u("relationships",()=>f.documentRels?b(f.documentRels):new Map);o("Parsed relationships",15),o("Parsing theme...",15);let C=u("theme",()=>a(f.themeXml));o("Parsed theme",20),o("Parsing styles...",20);let D=null,B;u("styles",()=>{f.stylesXml&&(D=ue(f.stylesXml,C),B=ke(f.stylesXml,C));}),o("Parsed styles",30),o("Parsing numbering...",30);let v=u("numbering",()=>a$1(f.numberingXml)),X=u("settings",()=>b$1(f.settingsXml));o("Parsed numbering",35),o("Processing media files...",35);let p=u("media",()=>Ze(f,y));o("Processed media",40),o("Parsing document body...",40);let x={content:[]};u("documentBody",()=>{f.documentXml?x=te(f.documentXml,D,C,v,y,p):g.push("No document.xml found in DOCX");}),o("Parsed document body",55);let F,A;if(r){o("Parsing headers/footers...",55);let P=u("headersFooters",()=>qe(f,D,C,v,y,p));F=P.headers,A=P.footers,o("Parsed headers/footers",65);}else o("Skipping headers/footers",65);let k,M,R,V;if(a$2){o("Parsing footnotes/endnotes...",65);let P=u("footnotesEndnotes",()=>Je(f,D,C,v,y,p));k=P.footnotes,M=P.endnotes,R=P.footnoteSeparators,V=P.endnoteSeparators,o("Parsed footnotes/endnotes",75);}else o("Skipping footnotes/endnotes",75);o("Parsing comments...",75);let L=u("comments",()=>Ne(f.commentsXml,D,C,y,p,f.commentsExtensibleXml,f.commentsExtendedXml));L.length>0&&(x.comments=L);let N;c?(o("Detecting template variables...",75),N=u("variables",()=>ee(x.content)),o("Detected variables",80)):o("Skipping variable detection",80),i?(o("Loading fonts...",80),await S("fonts",()=>Qe(C,B,x)),o("Loaded fonts",95)):o("Skipping font loading",95),o("Assembling document...",95);let _={package:{document:x,styles:B,theme:C,numbering:v.definitions,settings:X,headers:F,footers:A,footnotes:k,endnotes:M,footnoteSeparators:R,endnoteSeparators:V,relationships:y,media:p},originalBuffer:e,templateVariables:N,warnings:g.length>0?g:void 0},m=performance.now()-h;if(m>2e3){let P=b$2.filter(I=>I.ms>100).map(I=>`${I.stage}: ${Math.round(I.ms)}ms`).join(", ");console.warn(`[parseDocx] Total: ${Math.round(m)}ms`+(P?` (${P})`:""));}return o("Complete",100),_}catch(h){let b=h instanceof Error?h.message:String(h);throw console.error("[parseDocx] Failed to parse DOCX:",b,h),new Error(`Failed to parse DOCX: ${b}`)}}function Ze(t,n){let e=new Map;for(let[o,i]of t.media.entries()){let r=o.split("/").pop()||o,a=Me(o),c=new Uint8Array(i),g="";for(let S=0;S<c.length;S++)g+=String.fromCharCode(c[S]);let d=btoa(g),h=`data:${a};base64,${d}`,b={path:o,filename:r,mimeType:a,data:i,dataUrl:h};e.set(o,b);let u=o.replace(/^word\//,"");u!==o&&e.set(u,b);}return e}function ne(t,n){let e=n.toLowerCase();for(let[o,i]of t.entries())if(o.toLowerCase()===e)return i}function qe(t,n,e,o,i,r$1){let a=new Map,c=new Map;for(let[g,d]of i.entries())if(d.type===a$2.header&&d.target){let h=d.target.split("/").pop()||d.target,b$1=ne(t.headers,h);if(b$1){let u=`word/_rels/${h}.rels`,S=ne(t.allXml,u),f=S?b(S):i,y=r(b$1,"default",n,e,o,f,r$1);a.set(g,y);}}else if(d.type===a$2.footer&&d.target){let h=d.target.split("/").pop()||d.target,b$1=ne(t.footers,h);if(b$1){let u=`word/_rels/${h}.rels`,S=ne(t.allXml,u),f=S?b(S):i,y=s(b$1,"default",n,e,o,f,r$1);c.set(g,y);}}return {headers:a,footers:c}}function Je(t$1,n,e,o,i,r){let a=t(t$1.footnotesXml,n,e,o,i,r),c=u$1(t$1.endnotesXml,n,e,o,i,r);return {footnotes:a.getNormalFootnotes(),endnotes:c.getNormalEndnotes(),footnoteSeparators:a.footnotes.filter(z),endnoteSeparators:c.endnotes.filter(A)}}async function Qe(t,n,e){let o=new Set;if(t?.fontScheme){let{majorFont:i,minorFont:r}=t.fontScheme;i?.latin&&o.add(i.latin),r?.latin&&o.add(r.latin);}if(n?.docDefaults?.rPr?.fontFamily?.ascii&&o.add(n.docDefaults.rPr.fontFamily.ascii),n?.styles)for(let i of n.styles)i.rPr?.fontFamily?.ascii&&o.add(i.rPr.fontFamily.ascii),i.rPr?.fontFamily?.hAnsi&&o.add(i.rPr.fontFamily.hAnsi);if(e.content){for(let i of e.content)if(i.type==="paragraph")for(let r of i.content)r.type==="run"&&r.formatting?.fontFamily&&(r.formatting.fontFamily.ascii&&o.add(r.formatting.fontFamily.ascii),r.formatting.fontFamily.hAnsi&&o.add(r.formatting.fontFamily.hAnsi));}if(o.size>0)try{await q(Array.from(o));}catch(i){console.warn("Failed to load some fonts:",i);}}async function Et(t){return Ve(t,{preloadFonts:false,parseHeadersFooters:false,parseNotes:false,detectVariables:true})}async function Nt(t,n){return Ve(t,{onProgress:n,preloadFonts:true,parseHeadersFooters:true,parseNotes:true,detectVariables:true})}async function Vt(t){let n=await G(t);if(!n.documentXml)return [];let e=te(n.documentXml);return ee(e.content)}async function Ht(t){let n=await G(t),e=n.documentXml?ee(te(n.documentXml).content):[];return {hasDocument:n.documentXml!==null,hasStyles:n.stylesXml!==null,hasTheme:n.themeXml!==null,hasNumbering:n.numberingXml!==null,headerCount:n.headers.size,footerCount:n.footers.size,mediaCount:n.media.size,variableCount:e.length}}
1
+ import {a,r,s,t,u as u$1,A,z,q as q$1,B,D,O,N,C,b as b$3}from'./chunk-47SKD7QB.mjs';import {b as b$1}from'./chunk-MOCGHQ4A.mjs';import {u,q}from'./chunk-CDBKFBC2.mjs';import {b,a as a$2}from'./chunk-W77JXDEV.mjs';import {b as b$2}from'./chunk-DI6CRWSW.mjs';import {a as a$1}from'./chunk-VJFIAFZ5.mjs';import {c,f,e,l,j as j$1,a as a$3,i,m}from'./chunk-3ANZ3252.mjs';import He from'jszip';async function G(t){let n=await He.loadAsync(t),e={documentXml:null,stylesXml:null,themeXml:null,numberingXml:null,fontTableXml:null,settingsXml:null,webSettingsXml:null,headers:new Map,footers:new Map,footnotesXml:null,endnotesXml:null,commentsXml:null,commentsExtensibleXml:null,commentsExtendedXml:null,documentRels:null,packageRels:null,contentTypesXml:null,corePropsXml:null,appPropsXml:null,customPropsXml:null,media:new Map,fonts:new Map,allXml:new Map,originalZip:n,originalBuffer:t};for(let[o,i]of Object.entries(n.files)){if(i.dir)continue;let r=o.toLowerCase();if(r.endsWith(".xml")||r.endsWith(".rels")){let a=await i.async("text");if(e.allXml.set(o,a),r==="word/document.xml")e.documentXml=a;else if(r==="word/styles.xml")e.stylesXml=a;else if(r==="word/theme/theme1.xml")e.themeXml=a;else if(r==="word/numbering.xml")e.numberingXml=a;else if(r==="word/fonttable.xml")e.fontTableXml=a;else if(r==="word/settings.xml")e.settingsXml=a;else if(r==="word/websettings.xml")e.webSettingsXml=a;else if(r==="word/footnotes.xml")e.footnotesXml=a;else if(r==="word/endnotes.xml")e.endnotesXml=a;else if(r==="word/comments.xml")e.commentsXml=a;else if(r==="word/commentsextensible.xml")e.commentsExtensibleXml=a;else if(r==="word/commentsextended.xml")e.commentsExtendedXml=a;else if(r==="word/_rels/document.xml.rels")e.documentRels=a;else if(r==="_rels/.rels")e.packageRels=a;else if(r==="[content_types].xml")e.contentTypesXml=a;else if(r==="docprops/core.xml")e.corePropsXml=a;else if(r==="docprops/app.xml")e.appPropsXml=a;else if(r==="docprops/custom.xml")e.customPropsXml=a;else if(r.match(/^word\/header\d+\.xml$/)){let c=o.split("/").pop()||o;e.headers.set(c,a);}else if(r.match(/^word\/footer\d+\.xml$/)){let c=o.split("/").pop()||o;e.footers.set(c,a);}}else if(r.startsWith("word/media/")){let a=await i.async("arraybuffer");e.media.set(o,a);}else if(r.startsWith("word/fonts/")){let a=await i.async("arraybuffer");e.fonts.set(o,a);}}return e}function Me(t){switch(t.toLowerCase().split(".").pop()){case "png":return "image/png";case "jpg":case "jpeg":return "image/jpeg";case "gif":return "image/gif";case "bmp":return "image/bmp";case "tif":case "tiff":return "image/tiff";case "wmf":return "image/x-wmf";case "emf":return "image/x-emf";case "svg":return "image/svg+xml";case "webp":return "image/webp";default:return "application/octet-stream"}}function Y(t,n,e,o){let i={};return t&&t!=="auto"?i.rgb=t:t==="auto"&&(i.auto=true),n&&(i.themeColor=n),e&&(i.themeTint=e),o&&(i.themeShade=o),i}function W(t){if(!t)return;let n={},e=j$1(t,"w","color");e&&e!=="auto"&&(n.color={rgb:e});let o=j$1(t,"w","fill");o&&o!=="auto"&&(n.fill={rgb:o});let i=j$1(t,"w","themeFill");i&&(n.fill=n.fill||{},n.fill.themeColor=i);let r=j$1(t,"w","themeFillTint");r&&n.fill&&(n.fill.themeTint=r);let a=j$1(t,"w","themeFillShade");a&&n.fill&&(n.fill.themeShade=a);let c=j$1(t,"w","val");return c&&(n.pattern=c),Object.keys(n).length>0?n:void 0}function $(t,n){if(!t)return;let e$1={},o=e(t,"w","b");o&&(e$1.bold=m(o));let i=e(t,"w","bCs");i&&(e$1.boldCs=m(i));let r=e(t,"w","i");r&&(e$1.italic=m(r));let a=e(t,"w","iCs");a&&(e$1.italicCs=m(a));let c=e(t,"w","u");if(c){let m=j$1(c,"w","val");if(m){e$1.underline={style:m};let P=j$1(c,"w","color"),I=j$1(c,"w","themeColor");(P||I)&&(e$1.underline.color=Y(P,I,j$1(c,"w","themeTint"),j$1(c,"w","themeShade")));}}let g=e(t,"w","strike");g&&(e$1.strike=m(g));let d=e(t,"w","dstrike");d&&(e$1.doubleStrike=m(d));let h=e(t,"w","vertAlign");if(h){let m=j$1(h,"w","val");(m==="superscript"||m==="subscript"||m==="baseline")&&(e$1.vertAlign=m);}let b=e(t,"w","smallCaps");b&&(e$1.smallCaps=m(b));let u=e(t,"w","caps");u&&(e$1.allCaps=m(u));let S=e(t,"w","vanish");S&&(e$1.hidden=m(S));let f=e(t,"w","color");f&&(e$1.color=Y(j$1(f,"w","val"),j$1(f,"w","themeColor"),j$1(f,"w","themeTint"),j$1(f,"w","themeShade")));let y=e(t,"w","highlight");if(y){let m=j$1(y,"w","val");m&&(e$1.highlight=m);}let C=e(t,"w","shd");C&&(e$1.shading=W(C));let D=e(t,"w","sz");if(D){let m=l(D,"w","val");m!==void 0&&(e$1.fontSize=m);}let B=e(t,"w","szCs");if(B){let m=l(B,"w","val");m!==void 0&&(e$1.fontSizeCs=m);}let v=e(t,"w","rFonts");if(v){e$1.fontFamily={ascii:j$1(v,"w","ascii")??void 0,hAnsi:j$1(v,"w","hAnsi")??void 0,eastAsia:j$1(v,"w","eastAsia")??void 0,cs:j$1(v,"w","cs")??void 0};let m=j$1(v,"w","asciiTheme");m&&(e$1.fontFamily.asciiTheme=m,n&&!e$1.fontFamily.ascii&&(e$1.fontFamily.ascii=b$3(n,m)));let P=j$1(v,"w","hAnsiTheme");P&&(e$1.fontFamily.hAnsiTheme=P,n&&!e$1.fontFamily.hAnsi&&(e$1.fontFamily.hAnsi=b$3(n,P)));let I=j$1(v,"w","eastAsiaTheme");I&&(e$1.fontFamily.eastAsiaTheme=I,n&&!e$1.fontFamily.eastAsia&&(e$1.fontFamily.eastAsia=b$3(n,I)));let U=j$1(v,"w","cstheme");U&&(e$1.fontFamily.csTheme=U,n&&!e$1.fontFamily.cs&&(e$1.fontFamily.cs=b$3(n,U)));}let X=e(t,"w","spacing");if(X){let m=l(X,"w","val");m!==void 0&&(e$1.spacing=m);}let p=e(t,"w","position");if(p){let m=l(p,"w","val");m!==void 0&&(e$1.position=m);}let x=e(t,"w","w");if(x){let m=l(x,"w","val");m!==void 0&&(e$1.scale=m);}let F=e(t,"w","kern");if(F){let m=l(F,"w","val");m!==void 0&&(e$1.kerning=m);}let A=e(t,"w","effect");if(A){let m=j$1(A,"w","val");m&&(e$1.effect=m);}let k=e(t,"w","em");if(k){let m=j$1(k,"w","val");m&&(e$1.emphasisMark=m);}let M=e(t,"w","emboss");M&&(e$1.emboss=m(M));let R=e(t,"w","imprint");R&&(e$1.imprint=m(R));let V=e(t,"w","outline");V&&(e$1.outline=m(V));let L=e(t,"w","shadow");L&&(e$1.shadow=m(L));let N=e(t,"w","rtl");N&&(e$1.rtl=m(N));let H=e(t,"w","cs");H&&(e$1.cs=m(H));let _=e(t,"w","rStyle");if(_){let m=j$1(_,"w","val");m&&(e$1.styleId=m);}return Object.keys(e$1).length>0?e$1:void 0}function E(t){if(!t)return;let n=j$1(t,"w","val");if(!n)return;let e={style:n},o=j$1(t,"w","color"),i=j$1(t,"w","themeColor");(o||i)&&(e.color=Y(o,i,j$1(t,"w","themeTint"),j$1(t,"w","themeShade")));let r=l(t,"w","sz");r!==void 0&&(e.size=r);let a=l(t,"w","space");a!==void 0&&(e.space=a);let c=j$1(t,"w","shadow");c&&(e.shadow=c==="1"||c==="true");let g=j$1(t,"w","frame");return g&&(e.frame=g==="1"||g==="true"),e}function je(t){if(!t)return;let n=f(t,"w","tab");if(n.length===0)return;let e=[];for(let o of n){let i=l(o,"w","pos"),r=j$1(o,"w","val");if(i!==void 0&&r){let a={position:i,alignment:r},c=j$1(o,"w","leader");c&&(a.leader=c),e.push(a);}}return e.length>0?e:void 0}function K(t,n){if(!t)return;let e$1={},o=e(t,"w","jc");if(o){let p=j$1(o,"w","val");p&&(e$1.alignment=p);}let i=e(t,"w","bidi");i&&(e$1.bidi=m(i));let r=e(t,"w","spacing");if(r){let p=l(r,"w","before");p!==void 0&&(e$1.spaceBefore=p);let x=l(r,"w","after");x!==void 0&&(e$1.spaceAfter=x);let F=l(r,"w","line");F!==void 0&&(e$1.lineSpacing=F);let A=j$1(r,"w","lineRule");A&&(e$1.lineSpacingRule=A);let k=j$1(r,"w","beforeAutospacing");k&&(e$1.beforeAutospacing=k==="1"||k==="true");let M=j$1(r,"w","afterAutospacing");M&&(e$1.afterAutospacing=M==="1"||M==="true");}let a=e(t,"w","ind");if(a){let p=l(a,"w","left");p!==void 0&&(e$1.indentLeft=p);let x=l(a,"w","right");x!==void 0&&(e$1.indentRight=x);let F=l(a,"w","firstLine");F!==void 0&&(e$1.indentFirstLine=F);let A=l(a,"w","hanging");A!==void 0&&(e$1.indentFirstLine=-A,e$1.hangingIndent=true);}let c=e(t,"w","pBdr");if(c){let p={},x=E(e(c,"w","top"));x&&(p.top=x);let F=E(e(c,"w","bottom"));F&&(p.bottom=F);let A=E(e(c,"w","left"));A&&(p.left=A);let k=E(e(c,"w","right"));k&&(p.right=k);let M=E(e(c,"w","between"));M&&(p.between=M);let R=E(e(c,"w","bar"));R&&(p.bar=R),Object.keys(p).length>0&&(e$1.borders=p);}let g=e(t,"w","shd");g&&(e$1.shading=W(g));let d=e(t,"w","tabs");d&&(e$1.tabs=je(d));let h=e(t,"w","keepNext");h&&(e$1.keepNext=m(h));let b=e(t,"w","keepLines");b&&(e$1.keepLines=m(b));let u=e(t,"w","widowControl");u&&(e$1.widowControl=m(u));let S=e(t,"w","pageBreakBefore");S&&(e$1.pageBreakBefore=m(S));let f=e(t,"w","contextualSpacing");f&&(e$1.contextualSpacing=m(f));let y=e(t,"w","numPr");if(y){let p=e(y,"w","numId"),x=e(y,"w","ilvl");if(p||x){if(e$1.numPr={},p){let F=l(p,"w","val");F!==void 0&&(e$1.numPr.numId=F);}if(x){let F=l(x,"w","val");F!==void 0&&(e$1.numPr.ilvl=F);}}}let C=e(t,"w","outlineLvl");if(C){let p=l(C,"w","val");p!==void 0&&(e$1.outlineLevel=p);}let D=e(t,"w","pStyle");if(D){let p=j$1(D,"w","val");p&&(e$1.styleId=p);}let B=e(t,"w","suppressLineNumbers");B&&(e$1.suppressLineNumbers=m(B));let v=e(t,"w","suppressAutoHyphens");v&&(e$1.suppressAutoHyphens=m(v));let X=e(t,"w","rPr");return X&&(e$1.runProperties=$(X,n)),Object.keys(e$1).length>0?e$1:void 0}function j(t){if(!t)return;let n=l(t,"w","w"),e=j$1(t,"w","type");if(n!==void 0&&e)return {value:n,type:e}}function De(t){if(!t)return;let n={},e$1=E(e(t,"w","top"));e$1&&(n.top=e$1);let o=E(e(t,"w","bottom"));o&&(n.bottom=o);let i=E(e(t,"w","left"));i&&(n.left=i);let r=E(e(t,"w","right"));r&&(n.right=r);let a=E(e(t,"w","insideH"));a&&(n.insideH=a);let c=E(e(t,"w","insideV"));return c&&(n.insideV=c),Object.keys(n).length>0?n:void 0}function Ae(t){if(!t)return;let n={},e$1=j(e(t,"w","top"));e$1&&(n.top=e$1);let o=j(e(t,"w","bottom"));o&&(n.bottom=o);let i=j(e(t,"w","left"));i&&(n.left=i);let r=j(e(t,"w","right"));return r&&(n.right=r),Object.keys(n).length>0?n:void 0}function Le(t){if(!t)return;let n={},e=j$1(t,"w","val");if(e){let d=parseInt(e,16);isNaN(d)||(n.firstRow=(d&32)!==0,n.lastRow=(d&64)!==0,n.firstColumn=(d&128)!==0,n.lastColumn=(d&256)!==0,n.noHBand=(d&512)!==0,n.noVBand=(d&1024)!==0);}let o=j$1(t,"w","firstColumn");o&&(n.firstColumn=o==="1");let i=j$1(t,"w","firstRow");i&&(n.firstRow=i==="1");let r=j$1(t,"w","lastColumn");r&&(n.lastColumn=r==="1");let a=j$1(t,"w","lastRow");a&&(n.lastRow=a==="1");let c=j$1(t,"w","noHBand");c&&(n.noHBand=c==="1");let g=j$1(t,"w","noVBand");return g&&(n.noVBand=g==="1"),Object.keys(n).length>0?n:void 0}function le(t,n){if(!t)return;let e$1={},o=e(t,"w","tblW");o&&(e$1.width=j(o));let i=e(t,"w","jc");if(i){let f=j$1(i,"w","val");(f==="left"||f==="center"||f==="right")&&(e$1.justification=f);}let r=e(t,"w","tblCellSpacing");r&&(e$1.cellSpacing=j(r));let a=e(t,"w","tblInd");a&&(e$1.indent=j(a));let c=e(t,"w","tblBorders");c&&(e$1.borders=De(c));let g=e(t,"w","tblCellMar");g&&(e$1.cellMargins=Ae(g));let d=e(t,"w","tblLayout");if(d){let f=j$1(d,"w","type");(f==="fixed"||f==="autofit")&&(e$1.layout=f);}let h=e(t,"w","tblStyle");if(h){let f=j$1(h,"w","val");f&&(e$1.styleId=f);}let b=e(t,"w","tblLook");b&&(e$1.look=Le(b));let u=e(t,"w","shd");u&&(e$1.shading=W(u));let S=e(t,"w","bidiVisual");return S&&(e$1.bidi=m(S)),Object.keys(e$1).length>0?e$1:void 0}function ce(t){if(!t)return;let n={},e$1=e(t,"w","trHeight");if(e$1){n.height=j(e$1);let c=j$1(e$1,"w","hRule");c&&(n.heightRule=c);}let o=e(t,"w","tblHeader");o&&(n.header=m(o));let i=e(t,"w","cantSplit");i&&(n.cantSplit=m(i));let r=e(t,"w","jc");if(r){let c=j$1(r,"w","val");(c==="left"||c==="center"||c==="right")&&(n.justification=c);}let a=e(t,"w","hidden");return a&&(n.hidden=m(a)),Object.keys(n).length>0?n:void 0}function fe(t,n){if(!t)return;let e$1={},o=e(t,"w","tcW");o&&(e$1.width=j(o));let i=e(t,"w","tcBorders");i&&(e$1.borders=De(i));let r=e(t,"w","tcMar");r&&(e$1.margins=Ae(r));let a=e(t,"w","shd");a&&(e$1.shading=W(a));let c=e(t,"w","vAlign");if(c){let f=j$1(c,"w","val");(f==="top"||f==="center"||f==="bottom")&&(e$1.verticalAlign=f);}let g=e(t,"w","textDirection");if(g){let f=j$1(g,"w","val");f&&(e$1.textDirection=f);}let d=e(t,"w","gridSpan");if(d){let f=l(d,"w","val");f!==void 0&&(e$1.gridSpan=f);}let h=e(t,"w","vMerge");if(h){let f=j$1(h,"w","val");e$1.vMerge=f==="restart"?"restart":"continue";}let b=e(t,"w","tcFitText");b&&(e$1.fitText=m(b));let u=e(t,"w","noWrap");u&&(e$1.noWrap=m(u));let S=e(t,"w","hideMark");return S&&(e$1.hideMark=m(S)),Object.keys(e$1).length>0?e$1:void 0}function Ue(t,n){let e$1={styleId:j$1(t,"w","styleId")??"",type:j$1(t,"w","type")??"paragraph"},o=j$1(t,"w","default");o&&(e$1.default=o==="1"||o==="true");let i=e(t,"w","name");i&&(e$1.name=j$1(i,"w","val")??void 0);let r=e(t,"w","basedOn");r&&(e$1.basedOn=j$1(r,"w","val")??void 0);let a=e(t,"w","next");a&&(e$1.next=j$1(a,"w","val")??void 0);let c=e(t,"w","link");c&&(e$1.link=j$1(c,"w","val")??void 0);let g=e(t,"w","uiPriority");if(g){let X=l(g,"w","val");X!==void 0&&(e$1.uiPriority=X);}let d=e(t,"w","hidden");d&&(e$1.hidden=m(d));let h=e(t,"w","semiHidden");h&&(e$1.semiHidden=m(h));let b=e(t,"w","unhideWhenUsed");b&&(e$1.unhideWhenUsed=m(b));let u=e(t,"w","qFormat");u&&(e$1.qFormat=m(u));let S=e(t,"w","personal");S&&(e$1.personal=m(S));let f$1=e(t,"w","pPr");f$1&&(e$1.pPr=K(f$1,n));let y=e(t,"w","rPr");y&&(e$1.rPr=$(y,n));let C=e(t,"w","tblPr");C&&(e$1.tblPr=le(C));let D=e(t,"w","trPr");D&&(e$1.trPr=ce(D));let B=e(t,"w","tcPr");B&&(e$1.tcPr=fe(B));let v=f(t,"w","tblStylePr");if(v.length>0){e$1.tblStylePr=[];for(let X of v){let p=j$1(X,"w","type");if(p){let x={type:p},F=e(X,"w","pPr");F&&(x.pPr=K(F,n));let A=e(X,"w","rPr");A&&(x.rPr=$(A,n));let k=e(X,"w","tblPr");k&&(x.tblPr=le(k));let M=e(X,"w","trPr");M&&(x.trPr=ce(M));let R=e(X,"w","tcPr");R&&(x.tcPr=fe(R)),e$1.tblStylePr.push(x);}}}return e$1}function Oe(t,n){if(!t)return;let e$1={},o=e(t,"w","rPrDefault");if(o){let r=e(o,"w","rPr");r&&(e$1.rPr=$(r,n));}let i=e(t,"w","pPrDefault");if(i){let r=e(i,"w","pPr");r&&(e$1.pPr=K(r,n));}return e$1.rPr||e$1.pPr?e$1:void 0}function ze(t,n){if(!n)return t;if(!t)return n?{...n}:void 0;let e={...t};for(let o of Object.keys(n)){let i=n[o];if(i!==void 0)if(o==="runProperties")e.runProperties=b$2(e.runProperties,n.runProperties);else if(o==="borders"||o==="numPr"||o==="frame"){let r=e[o],a=i;e[o]={...r||{},...a||{}};}else o==="tabs"&&Array.isArray(i)?e.tabs=[...i]:e[o]=i;}return e}function Be(t,n,e,o=new Set){if(o.has(t.styleId)||(o.add(t.styleId),!t.basedOn))return t;let i=n.get(t.basedOn);if(!i)return t;let r=Be(i,n,e,o),a={...t,pPr:ze(r.pPr,t.pPr),rPr:b$2(r.rPr,t.rPr)};return t.type==="table"&&((r.tblPr||t.tblPr)&&(a.tblPr={...r.tblPr||{},...t.tblPr||{}}),(r.trPr||t.trPr)&&(a.trPr={...r.trPr||{},...t.trPr||{}}),(r.tcPr||t.tcPr)&&(a.tcPr={...r.tcPr||{},...t.tcPr||{}})),a}function ue(t,n){let e=new Map;try{let o=c(t);if(!o)return e;let i=f(o,"w","style");for(let r of i){let a=Ue(r,n);a.styleId&&e.set(a.styleId,a);}for(let[r,a]of e){let c=Be(a,e,n);e.set(r,c);}}catch(o){console.warn("Failed to parse styles:",o);}return e}function ke(t,n){let e$1={styles:[]};try{let o=c(t);if(!o)return e$1;let i=e(o,"w","docDefaults");e$1.docDefaults=Oe(i,n);let r=e(o,"w","latentStyles");r&&(e$1.latentStyles={defLockedState:j$1(r,"w","defLockedState")==="1",defUIPriority:l(r,"w","defUIPriority"),defSemiHidden:j$1(r,"w","defSemiHidden")==="1",defUnhideWhenUsed:j$1(r,"w","defUnhideWhenUsed")==="1",defQFormat:j$1(r,"w","defQFormat")==="1",count:l(r,"w","count")});let a=ue(t,n);e$1.styles=Array.from(a.values());}catch(o){console.warn("Failed to parse style definitions:",o);}return e$1}var Ie=/\{([a-zA-Z_][a-zA-Z0-9_\-\.]*)\}/g;function Re(t){let n=[],e;for(Ie.lastIndex=0;(e=Ie.exec(t))!==null;){let o=e[1].trim();o&&!n.includes(o)&&n.push(o);}return n}function ee(t){let n=[];for(let e of t)if(e.type==="paragraph"){let o=N(e),i=Re(o);for(let r of i)n.includes(r)||n.push(r);}else if(e.type==="table"){let o=Ee(e);for(let i of o)n.includes(i)||n.push(i);}return n}function Ee(t){let n=[];for(let e of t.rows)for(let o of e.cells)for(let i of o.content)if(i.type==="paragraph"){let r=N(i),a=Re(r);for(let c of a)n.includes(c)||n.push(c);}else if(i.type==="table"){let r=Ee(i);for(let a of r)n.includes(a)||n.push(a);}return n}function We(t,n){let e=[],o=[];for(let i of t)o.push(i),i.type==="paragraph"&&i.sectionProperties&&(e.push({properties:i.sectionProperties,content:o}),o=[]);return (o.length>0||e.length===0)&&e.push({properties:n??C(),content:o}),e}function te(t,n=null,e$1=null,o=null,i=null,r=null){let a={content:[]};if(!t)return a;let c=a$3(t);if(!c)return a;let g=(c.elements??[]).find(u=>u.type==="element"&&(u.name==="w:document"||u.name?.endsWith(":document")));if(!g)return a;let d=e(g,"w","body");if(!d)return a;a.content=q$1(d,n,e$1,o,i,r);let h=e(d,"w","sectPr");h&&(a.finalSectionProperties=B(h,i));let b=We(a.content,a.finalSectionProperties);return a.sections=D(b),a.finalSectionProperties&&a.sections.length>0&&(a.finalSectionProperties=a.sections[a.sections.length-1].properties),a}function $e(t){let n=new Map,e$1=a$3(t);if(!e$1)return n;let o=e(e$1,"w16cex","commentsExtensible")??e$1;for(let i$1 of i(o)){if((i$1.name?.replace(/^.*:/,"")??"")!=="comment")continue;let a=j$1(i$1,"w16cex","paraId")??j$1(i$1,"w15","paraId")??i$1.attributes?.["w16cex:paraId"]??i$1.attributes?.["w15:paraId"],c=j$1(i$1,"w16cex","dateUtc")??j$1(i$1,"w15","dateUtc")??i$1.attributes?.["w16cex:dateUtc"]??i$1.attributes?.["w15:dateUtc"];a&&c&&n.set(String(a).toUpperCase(),String(c));}return n}function _e(t){let n=new Map,e$1=new Map,o=a$3(t);if(!o)return {parentByParaId:n,doneByParaId:e$1};let i$1=e(o,"w15","commentsEx")??o;for(let r of i(i$1)){if((r.name?.replace(/^.*:/,"")??"")!=="commentEx")continue;let c=j$1(r,"w15","paraId")??r.attributes?.["w15:paraId"],g=j$1(r,"w15","paraIdParent")??r.attributes?.["w15:paraIdParent"],d=j$1(r,"w15","done")??r.attributes?.["w15:done"];if(c){let h=String(c).toUpperCase();g&&n.set(h,String(g).toUpperCase()),d==="1"&&e$1.set(h,true);}}return {parentByParaId:n,doneByParaId:e$1}}function Ne(t,n,e$1,o,i$1,r,a){if(!t)return [];let c=a$3(t);if(!c)return [];let g=r?$e(r):new Map,d=a?_e(a):null,h=e(c,"w","comments")??c,b=i(h),u=[],S=[];for(let f of b){if((f.name?.replace(/^.*:/,"")??"")!=="comment")continue;let C=parseInt(j$1(f,"w","id")??"0",10),D=j$1(f,"w","author")??"Unknown",B=j$1(f,"w","initials"),v=B!=null?String(B):void 0,X=j$1(f,"w","date"),p=X!=null?String(X):void 0,x=j$1(f,"w14","paraId")??f.attributes?.["w14:paraId"]??j$1(f,"w","paraId"),A=(x?g.get(String(x).toUpperCase()):void 0)??p,k=j$1(f,"w","done")??f.attributes?.["w:done"],M=k==="1"||k==="true"?true:void 0,R=j$1(f,"w16cid","parentId")??j$1(f,"w","parentId")??f.attributes?.["w16cid:parentId"]??f.attributes?.["w:parentId"],V=R!=null?parseInt(String(R),10):void 0,L=[],N="";for(let H of i(f))if((H.name?.replace(/^.*:/,"")??"")==="p"){let m=O(H,n,e$1,null,o,i$1);L.push(m);let P=j$1(H,"w14","paraId")??H.attributes?.["w14:paraId"];P&&(N=String(P).toUpperCase());}M==null&&d&&N&&d.doneByParaId.get(N)&&(M=true),S.push(N),u.push({id:C,author:D,initials:v,date:A,content:L,...M!=null?{done:M}:{},...V!=null&&!isNaN(V)?{parentId:V}:{}});}if(d&&d.parentByParaId.size>0){let f=new Map;for(let y=0;y<u.length;y++){let C=S[y];C&&f.set(C,u[y].id);}for(let y=0;y<u.length;y++){if(u[y].parentId!=null)continue;let C=S[y];if(!C)continue;let D=d.parentByParaId.get(C);if(!D)continue;let B=f.get(D);B!=null&&(u[y]={...u[y],parentId:B});}}return u}async function Ve(t,n={}){let e=t instanceof ArrayBuffer?t:await u(t),{onProgress:o=()=>{},preloadFonts:i=true,parseHeadersFooters:r=true,parseNotes:a$2=true,detectVariables:c=true}=n,g=[];try{let u=function(P,I){let U=performance.now(),oe=I(),O=performance.now()-U;return b$2.push({stage:P,ms:O}),O>1e3&&console.warn(`[parseDocx] ${P} took ${Math.round(O)}ms`),oe};var d=u;let h=performance.now(),b$2=[];async function S(P,I){let U=performance.now(),oe=await I(),O=performance.now()-U;return b$2.push({stage:P,ms:O}),O>1e3&&console.warn(`[parseDocx] ${P} took ${Math.round(O)}ms`),oe}o("Extracting DOCX...",0);let f=await S("unzip",()=>G(e));o("Extracted DOCX",10),o("Parsing relationships...",10);let y=u("relationships",()=>f.documentRels?b(f.documentRels):new Map);o("Parsed relationships",15),o("Parsing theme...",15);let C=u("theme",()=>a(f.themeXml));o("Parsed theme",20),o("Parsing styles...",20);let D=null,B;u("styles",()=>{f.stylesXml&&(D=ue(f.stylesXml,C),B=ke(f.stylesXml,C));}),o("Parsed styles",30),o("Parsing numbering...",30);let v=u("numbering",()=>a$1(f.numberingXml)),X=u("settings",()=>b$1(f.settingsXml));o("Parsed numbering",35),o("Processing media files...",35);let p=u("media",()=>Ze(f,y));o("Processed media",40),o("Parsing document body...",40);let x={content:[]};u("documentBody",()=>{f.documentXml?x=te(f.documentXml,D,C,v,y,p):g.push("No document.xml found in DOCX");}),o("Parsed document body",55);let F,A;if(r){o("Parsing headers/footers...",55);let P=u("headersFooters",()=>qe(f,D,C,v,y,p));F=P.headers,A=P.footers,o("Parsed headers/footers",65);}else o("Skipping headers/footers",65);let k,M,R,V;if(a$2){o("Parsing footnotes/endnotes...",65);let P=u("footnotesEndnotes",()=>Je(f,D,C,v,y,p));k=P.footnotes,M=P.endnotes,R=P.footnoteSeparators,V=P.endnoteSeparators,o("Parsed footnotes/endnotes",75);}else o("Skipping footnotes/endnotes",75);o("Parsing comments...",75);let L=u("comments",()=>Ne(f.commentsXml,D,C,y,p,f.commentsExtensibleXml,f.commentsExtendedXml));L.length>0&&(x.comments=L);let N;c?(o("Detecting template variables...",75),N=u("variables",()=>ee(x.content)),o("Detected variables",80)):o("Skipping variable detection",80),i?(o("Loading fonts...",80),await S("fonts",()=>Qe(C,B,x)),o("Loaded fonts",95)):o("Skipping font loading",95),o("Assembling document...",95);let _={package:{document:x,styles:B,theme:C,numbering:v.definitions,settings:X,headers:F,footers:A,footnotes:k,endnotes:M,footnoteSeparators:R,endnoteSeparators:V,relationships:y,media:p},originalBuffer:e,templateVariables:N,warnings:g.length>0?g:void 0},m=performance.now()-h;if(m>2e3){let P=b$2.filter(I=>I.ms>100).map(I=>`${I.stage}: ${Math.round(I.ms)}ms`).join(", ");console.warn(`[parseDocx] Total: ${Math.round(m)}ms`+(P?` (${P})`:""));}return o("Complete",100),_}catch(h){let b=h instanceof Error?h.message:String(h);throw console.error("[parseDocx] Failed to parse DOCX:",b,h),new Error(`Failed to parse DOCX: ${b}`)}}function Ze(t,n){let e=new Map;for(let[o,i]of t.media.entries()){let r=o.split("/").pop()||o,a=Me(o),c=new Uint8Array(i),g="";for(let S=0;S<c.length;S++)g+=String.fromCharCode(c[S]);let d=btoa(g),h=`data:${a};base64,${d}`,b={path:o,filename:r,mimeType:a,data:i,dataUrl:h};e.set(o,b);let u=o.replace(/^word\//,"");u!==o&&e.set(u,b);}return e}function ne(t,n){let e=n.toLowerCase();for(let[o,i]of t.entries())if(o.toLowerCase()===e)return i}function qe(t,n,e,o,i,r$1){let a=new Map,c=new Map;for(let[g,d]of i.entries())if(d.type===a$2.header&&d.target){let h=d.target.split("/").pop()||d.target,b$1=ne(t.headers,h);if(b$1){let u=`word/_rels/${h}.rels`,S=ne(t.allXml,u),f=S?b(S):i,y=r(b$1,"default",n,e,o,f,r$1);a.set(g,y);}}else if(d.type===a$2.footer&&d.target){let h=d.target.split("/").pop()||d.target,b$1=ne(t.footers,h);if(b$1){let u=`word/_rels/${h}.rels`,S=ne(t.allXml,u),f=S?b(S):i,y=s(b$1,"default",n,e,o,f,r$1);c.set(g,y);}}return {headers:a,footers:c}}function Je(t$1,n,e,o,i,r){let a=t(t$1.footnotesXml,n,e,o,i,r),c=u$1(t$1.endnotesXml,n,e,o,i,r);return {footnotes:a.getNormalFootnotes(),endnotes:c.getNormalEndnotes(),footnoteSeparators:a.footnotes.filter(z),endnoteSeparators:c.endnotes.filter(A)}}async function Qe(t,n,e){let o=new Set;if(t?.fontScheme){let{majorFont:i,minorFont:r}=t.fontScheme;i?.latin&&o.add(i.latin),r?.latin&&o.add(r.latin);}if(n?.docDefaults?.rPr?.fontFamily?.ascii&&o.add(n.docDefaults.rPr.fontFamily.ascii),n?.styles)for(let i of n.styles)i.rPr?.fontFamily?.ascii&&o.add(i.rPr.fontFamily.ascii),i.rPr?.fontFamily?.hAnsi&&o.add(i.rPr.fontFamily.hAnsi);if(e.content){for(let i of e.content)if(i.type==="paragraph")for(let r of i.content)r.type==="run"&&r.formatting?.fontFamily&&(r.formatting.fontFamily.ascii&&o.add(r.formatting.fontFamily.ascii),r.formatting.fontFamily.hAnsi&&o.add(r.formatting.fontFamily.hAnsi));}if(o.size>0)try{await q(Array.from(o));}catch(i){console.warn("Failed to load some fonts:",i);}}async function Et(t){return Ve(t,{preloadFonts:false,parseHeadersFooters:false,parseNotes:false,detectVariables:true})}async function Nt(t,n){return Ve(t,{onProgress:n,preloadFonts:true,parseHeadersFooters:true,parseNotes:true,detectVariables:true})}async function Vt(t){let n=await G(t);if(!n.documentXml)return [];let e=te(n.documentXml);return ee(e.content)}async function Ht(t){let n=await G(t),e=n.documentXml?ee(te(n.documentXml).content):[];return {hasDocument:n.documentXml!==null,hasStyles:n.stylesXml!==null,hasTheme:n.themeXml!==null,hasNumbering:n.numberingXml!==null,headerCount:n.headers.size,footerCount:n.footers.size,mediaCount:n.media.size,variableCount:e.length}}
2
2
  export{Ve as a,Et as b,Nt as c,Vt as d,Ht as e};
@@ -0,0 +1 @@
1
+ import {c,a as a$1,b as b$1}from'./chunk-FCJWLEKT.mjs';import {a as a$2,b}from'./chunk-7E5VBRDL.mjs';import {p}from'./chunk-47SKD7QB.mjs';import {a,b as b$2,o}from'./chunk-67LVRQIR.mjs';import {j as j$1,k,l}from'./chunk-KNY7SXPJ.mjs';import {f}from'./chunk-VJFIAFZ5.mjs';function B(e,s){let r={};for(let t of e)switch(t.type.name){case "bold":r.bold=true;break;case "italic":r.italic=true;break;case "underline":{let n=t.attrs;if(n.style||n.color){let i=n.color?a(n.color,s):void 0;r.underline={style:n.style,color:i};}else r.underline=true;break}case "strike":r.strike=true;break;case "textColor":{let n=t.attrs;(n.themeColor||n.rgb)&&(r.color=a({rgb:n.rgb,themeColor:n.themeColor,themeTint:n.themeTint,themeShade:n.themeShade},s));break}case "highlight":r.highlight=o(t.attrs.color);break;case "fontSize":{let n=t.attrs;r.fontSize=n.size/2;break}case "fontFamily":{let n=t.attrs;r.fontFamily=n.ascii||n.hAnsi;break}case "characterSpacing":{let n=t.attrs;n.spacing!=null&&n.spacing!==0&&(r.letterSpacing=a$1(n.spacing)),n.position!=null&&n.position!==0&&(r.positionPx=k(n.position)),n.scale!=null&&n.scale!==100&&(r.horizontalScale=n.scale),n.kerning!=null&&n.kerning>0&&(r.kerningMinPt=l(n.kerning));break}case "allCaps":r.allCaps=true;break;case "smallCaps":r.smallCaps=true;break;case "emboss":r.emboss=true;break;case "imprint":r.imprint=true;break;case "textShadow":r.textShadow=true;break;case "textOutline":r.textOutline=true;break;case "hidden":r.hidden=true;break;case "rtl":r.rtl=true;break;case "textEffect":{let n=t.attrs.effect;(n==="blinkBackground"||n==="lights"||n==="antsBlack"||n==="antsRed"||n==="shimmer"||n==="sparkle")&&(r.textEffect=n);break}case "emphasisMark":{let n=t.attrs.type;n==="dot"||n==="comma"||n==="circle"||n==="underDot"?r.emphasisMark=n:r.emphasisMark="dot";break}case "superscript":r.superscript=true;break;case "subscript":r.subscript=true;break;case "hyperlink":{let n=t.attrs;r.hyperlink={href:n.href,tooltip:n.tooltip};break}case "footnoteRef":{let n=t.attrs,i=typeof n.id=="string"?parseInt(n.id,10):n.id;n.noteType==="endnote"?r.endnoteRefId=i:r.footnoteRefId=i,r.superscript=true;break}case "comment":{let n=t.attrs.commentId;n&&(r.commentIds||(r.commentIds=[]),r.commentIds.push(n));break}case "insertion":r.isInsertion=true,r.changeAuthor=t.attrs.author,r.changeDate=t.attrs.date,r.changeRevisionId=t.attrs.revisionId;break;case "deletion":r.isDeletion=true,r.changeAuthor=t.attrs.author,r.changeDate=t.attrs.date,r.changeRevisionId=t.attrs.revisionId;break}return r}function G(e){let s=e.defaultTextFormatting;if(!s)return {};let r={};if(s.fontFamily){let t=s.fontFamily.ascii||s.fontFamily.hAnsi;t&&(r.fontFamily=t);}return s.fontSize!=null&&(r.fontSize=s.fontSize/2),r}function D(e){e.hyperlink&&(e.hyperlink={...e.hyperlink,noDefaultStyle:true},delete e.color,delete e.underline);}function $(e){return e==="contentLocked"||e==="sdtContentLocked"}function Y(e,s){let r=e.attrs;if(r.sdtType==="checkbox"&&!($(r.lock)||r.dataBinding!=null))return {kind:"checkbox",groupId:`sdt@${s}`,pos:s,tag:r.tag!=null?String(r.tag):void 0,alias:r.alias!=null?String(r.alias):void 0,checked:typeof r.checked=="boolean"?r.checked:void 0}}function N(e,s,r){let t=[],n=s+1,i=r.theme,l=G(e.attrs),b=e.attrs.styleId,d=typeof b=="string"&&/^TOC\d*$/i.test(b);function f(u,m,p){if(u.isText&&u.text){let a=B(u.marks,i);d&&D(a);let o={kind:"text",text:u.text,...l,...a,pmStart:m,pmEnd:m+u.nodeSize,inlineSdtWidget:p};t.push(o);}else if(u.type.name==="hardBreak")t.push({kind:"lineBreak",pmStart:m,pmEnd:m+u.nodeSize});else if(u.type.name==="tab"){let a=B(u.marks,i),o={kind:"tab",...l,...a,pmStart:m,pmEnd:m+u.nodeSize};t.push(o);}else if(u.type.name==="image"){let a=u.attrs,o=b$1(a.width||100,a.height||100,r.pageContentHeight),c=B(u.marks,i),h={kind:"image",src:a.src,width:o.width,height:o.height,alt:a.alt,transform:a.transform,wrapType:a.wrapType,displayMode:a.displayMode,cssFloat:a.cssFloat,distTop:a.distTop,distBottom:a.distBottom,distLeft:a.distLeft,distRight:a.distRight,position:a.position,cropTop:a.cropTop,cropRight:a.cropRight,cropBottom:a.cropBottom,cropLeft:a.cropLeft,opacity:a.opacity,isInsertion:c.isInsertion,isDeletion:c.isDeletion,changeAuthor:c.changeAuthor,changeDate:c.changeDate,changeRevisionId:c.changeRevisionId,pmStart:m,pmEnd:m+u.nodeSize};t.push(h);}else if(u.type.name==="field"){let a=u.attrs.fieldType,o=a==="PAGE"?"PAGE":a==="NUMPAGES"?"NUMPAGES":a==="DATE"?"DATE":a==="TIME"?"TIME":"OTHER",c=B(u.marks,i);d&&D(c),t.push({kind:"field",fieldType:o,fallback:u.attrs.displayText||"",...l,...c,pmStart:m,pmEnd:m+u.nodeSize});}else if(u.type.name==="math"){let a=u.attrs.plainText||"[equation]";t.push({kind:"text",text:a,italic:true,fontFamily:"Cambria Math",pmStart:m,pmEnd:m+u.nodeSize});}else if(u.type.name==="sdt"){let a=Y(u,m)??p,o=m+1;u.forEach((c,h)=>{f(c,o+h,a);});}}return e.forEach((u,m)=>{f(u,n+m);}),t}function j(e){return Math.max(1,Math.round(e/8*1.333))}var Z={single:"solid",double:"double",dotted:"dotted",dashed:"dashed",thick:"solid",dashSmallGap:"dashed",dotDash:"dashed",dotDotDash:"dotted",triple:"double",wave:"solid",doubleWave:"double",threeDEmboss:"ridge",threeDEngrave:"groove",outset:"outset",inset:"inset"};function w(e,s){if(!e||!e.style||e.style==="none"||e.style==="nil")return;let r={style:Z[e.style]||"solid",width:j(e.size??0),color:e.color?a(e.color,s):"#000000"};return e.space!==void 0&&(r.space=j$1(e.space)),r}function O(e,s){let r=e.borders;if(!r)return;let t={},n=["top","bottom","left","right"];for(let i of n){let l=r[i],b=l?w(l,s):void 0;t[i]=b??{width:0,style:"none"};}return Object.keys(t).length>0?t:void 0}function V(e,s){let r=[];for(let t=0;t<=s;t+=1){let n=e[t]??0;if(n<=0)break;r.push(n);}return r.length===0?"1.":`${r.join(".")}.`}var q=[[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]];function W(e,s){if(e<=0)return "";let r=e,t="";for(let[n,i]of q)for(;r>=n;)t+=i,r-=n;return s?t:t.toLowerCase()}function H(e,s){if(e<=0)return "";let r=e,t="";for(;r>0;){let n=(r-1)%26;t=String.fromCharCode(65+n)+t,r=Math.floor((r-1)/26);}return s?t:t.toLowerCase()}function K(e,s){if(e<=0)return "";switch(s){case "upperRoman":return W(e,true);case "lowerRoman":return W(e,false);case "upperLetter":return H(e,true);case "lowerLetter":return H(e,false);case "decimalZero":return f(e,2);case "decimalZero3":return f(e,3);case "decimalZero4":return f(e,4);case "decimalZero5":return f(e,5);case "none":return "";default:return String(e)}}function X(e,s,r){return e.replace(/%(\d)([.):\]])?/g,(t,n,i="")=>{let l=parseInt(n,10)-1;if(l<0)return "";let b=s[l]??0,d=r?.[l]??"decimal",f=K(b,d);return f?f+i:""})}function _(e,s,r){let t=e.numPr;if(!t)return null;let n=t.numId;if(n==null||n===0)return null;if(e.listIsBullet)return p(e.listMarker||"");let i=t.ilvl??0;if((e.listLevelNumFmts?.[i]??e.listNumFmt)==="none")return e.listMarker?e.listMarker:null;let b=e.listAbstractNumId??n,d=s.get(b)??new Array(9).fill(0),f=`${n}:${i}`;r.has(f)||(r.add(f),e.listStartOverride!=null&&(d[i]=e.listStartOverride-1)),d[i]=(d[i]??0)+1;for(let u=i+1;u<d.length;u+=1)d[u]=0;return s.set(b,d),e.listMarker&&e.listMarker.includes("%")?X(e.listMarker,d,e.listLevelNumFmts??void 0):e.listMarker?e.listMarker:V(d,i)}var J="Calibri",Q=11;function A(e,s,r,t,n){let i={};if(e.alignment){let o=e.alignment;o==="both"||o==="distribute"?i.alignment="justify":o==="left"?i.alignment="left":o==="center"?i.alignment="center":o==="right"&&(i.alignment="right");}let l=e._originalFormatting?.beforeAutospacing,b=e._originalFormatting?.afterAutospacing;(l||b||e.spaceBefore!=null||e.spaceAfter!=null||e.lineSpacing!=null)&&(i.spacing={},l?i.spacing.before=14:e.spaceBefore!=null&&(i.spacing.before=a$1(e.spaceBefore)),b?i.spacing.after=14:e.spaceAfter!=null&&(i.spacing.after=a$1(e.spaceAfter)),e.lineSpacing!=null&&(e.lineSpacingRule==="exact"||e.lineSpacingRule==="atLeast"?(i.spacing.line=a$1(e.lineSpacing),i.spacing.lineUnit="px",i.spacing.lineRule=e.lineSpacingRule):(i.spacing.line=e.lineSpacing/240,i.spacing.lineUnit="multiplier",i.spacing.lineRule="auto"))),e.spacingExplicit&&(i.spacingExplicit=e.spacingExplicit);let d=e.indentLeft,f=e.indentFirstLine,u=e.hangingIndent;if(e.numPr?.numId&&d==null&&(d=((e.numPr.ilvl??0)+1)*720,f==null&&(f=-360,u=true)),(d!=null||e.indentRight!=null||f!=null)&&(i.indent={},d!=null&&(i.indent.left=a$1(d)),e.indentRight!=null&&(i.indent.right=a$1(e.indentRight)),f!=null&&(u?i.indent.hanging=Math.abs(a$1(f)):i.indent.firstLine=a$1(f))),e.styleId&&(i.styleId=e.styleId),e.borders){let o=e.borders;i.borders={};let c=h=>h?w(h,s):void 0;o.top&&(i.borders.top=c(o.top)),o.bottom&&(i.borders.bottom=c(o.bottom)),o.left&&(i.borders.left=c(o.left)),o.right&&(i.borders.right=c(o.right)),o.between&&(i.borders.between=c(o.between)),o.bar&&(i.borders.bar=c(o.bar)),!i.borders.top&&!i.borders.bottom&&!i.borders.left&&!i.borders.right&&!i.borders.between&&!i.borders.bar&&delete i.borders;}let m=b$2(e.shading?.fill,s);m&&(i.shading=`#${m}`),e.tabs&&e.tabs.length>0&&(i.tabs=e.tabs.map(o=>({val:ee(o.alignment),pos:o.position,leader:o.leader}))),e.pageBreakBefore&&(i.pageBreakBefore=true),e.keepNext&&(i.keepNext=true),e.keepLines&&(i.keepLines=true),e.contextualSpacing&&(i.contextualSpacing=true),e.bidi&&(i.bidi=true),e.styleId&&(i.styleId=e.styleId),e.numPr&&(i.numPr={numId:e.numPr.numId,ilvl:e.numPr.ilvl});let p=r&&t?_(e,r,t):null;p!=null?i.listMarker=p:e.listMarker&&(i.listMarker=e.listMarker),e.listIsBullet!=null&&(i.listIsBullet=e.listIsBullet),e.listMarkerHidden&&(i.listMarkerHidden=true),e.listMarkerFontFamily&&(i.listMarkerFontFamily=e.listMarkerFontFamily),e.listMarkerFontSize&&(i.listMarkerFontSize=e.listMarkerFontSize),e.listMarkerSuffix&&(i.listMarkerSuffix=e.listMarkerSuffix),n!==void 0&&(i.defaultTabStopTwips=n);let a=e.defaultTextFormatting;if(a&&(a.fontSize!=null&&(i.defaultFontSize=a.fontSize/2),a.fontFamily&&(i.defaultFontFamily=a.fontFamily.ascii||a.fontFamily.hAnsi)),e.pPrIns&&(i.pPrIns=e.pPrIns),e.pPrDel&&(i.pPrDel=e.pPrDel),e.numPr){let o=e.pPrChange,c=Array.isArray(o)&&o.some(h=>!h?.previousFormatting?.numPr);e.pPrDel?i.listMarkerRevision="del":(e.pPrIns||c)&&(i.listMarkerRevision="ins");}return i}function ee(e){switch(e){case "left":return "start";case "right":return "end";case "center":return "center";case "decimal":return "decimal";case "bar":return "bar";case "clear":return "clear";case "num":return "start";default:return "start"}}function M(e,s,r){let t=e.attrs,n=N(e,s,r),i=A(t,r.theme,r.listCounters,r.listSeenNumIds,r.defaultTabStopTwips);return {kind:"paragraph",id:c(),runs:n,attrs:i,pmStart:s,pmEnd:s+e.nodeSize}}function te(e,s,r,t){let n=[],i=s+1;e.forEach(o=>{o.type.name==="paragraph"?n.push(M(o,i,r)):o.type.name==="table"&&n.push(U(o,i,r)),i+=o.nodeSize;});let l=e.attrs,b=l.width,d=l.widthType,f=b&&(!d||d==="dxa"||d==="auto")?a$1(b):void 0,u=l.margins,m=(o,c)=>{if(o!=null){let h=a$1(o);if(h>0)return h}if(c!=null){let h=a$1(c);if(h>=0)return h}return 0},p={top:m(u?.top,t?.top),right:m(u?.right,t?.right),bottom:m(u?.bottom,t?.bottom),left:m(u?.left,t?.left)},a=l.cellMarker;return {id:c(),blocks:n,colSpan:l.colspan,rowSpan:l.rowspan,width:f,widthValue:b,widthType:d,verticalAlign:l.verticalAlign,background:l.backgroundColor?`#${l.backgroundColor}`:void 0,borders:O(l,r.theme),padding:p,noWrap:l.noWrap||void 0,trackedMarker:a??void 0}}function ne(e,s,r,t){let n=[],i=s+1;e.forEach(d=>{(d.type.name==="tableCell"||d.type.name==="tableHeader")&&n.push(te(d,i,r,t)),i+=d.nodeSize;});let l=e.attrs,b=l._originalFormatting;return {id:c(),cells:n,height:l.height?a$1(l.height):void 0,heightRule:l.heightRule??void 0,isHeader:l.isHeader,cantSplit:b?.cantSplit||void 0,trackedIns:l.trIns??void 0,trackedDel:l.trDel??void 0}}function U(e,s,r){let t=[],n=s+1,i=e.attrs.cellMargins;e.forEach(c=>{c.type.name==="tableRow"&&t.push(ne(c,n,r,i)),n+=c.nodeSize;});let b=e.attrs.columnWidths?.map(a$1),d=e.attrs.width,f=e.attrs.widthType;if(!b&&t.length>0){let h=t[0].cells.map(k=>k.width);h.every(k=>k!==void 0&&k>0)&&(b=h);}let u=e.attrs.justification,m=e.attrs._originalFormatting,p=m?.indent?.value&&m.indent.type==="dxa"?a$1(m.indent.value):void 0,a=e.attrs.floating,o=a?{horzAnchor:a.horzAnchor,vertAnchor:a.vertAnchor,tblpX:a.tblpX!==void 0?a$1(a.tblpX):void 0,tblpXSpec:a.tblpXSpec,tblpY:a.tblpY!==void 0?a$1(a.tblpY):void 0,tblpYSpec:a.tblpYSpec,topFromText:a.topFromText!==void 0?a$1(a.topFromText):void 0,bottomFromText:a.bottomFromText!==void 0?a$1(a.bottomFromText):void 0,leftFromText:a.leftFromText!==void 0?a$1(a.leftFromText):void 0,rightFromText:a.rightFromText!==void 0?a$1(a.rightFromText):void 0}:void 0;return {kind:"table",id:c(),rows:t,columnWidths:b,width:d,widthType:f,justification:u,indent:p,floating:o,pmStart:s,pmEnd:s+e.nodeSize}}function re(e,s,r){let t=e.attrs,n=t.wrapType,i=n==="behind"||n==="inFront",l=b$1(t.width||100,t.height||100,r);return {kind:"image",id:c(),src:t.src,width:l.width,height:l.height,alt:t.alt,transform:t.transform,anchor:i?{isAnchored:true,offsetH:t.distLeft,offsetV:t.distTop,behindDoc:n==="behind"}:void 0,hlinkHref:t.hlinkHref,pmStart:s,pmEnd:s+e.nodeSize}}function ie(e,s,r){let t=e.attrs,n=[];return e.forEach((i,l)=>{if(i.type.name==="paragraph"){let b=M(i,s+1+l,r);n.push(b);}}),{kind:"textBox",id:c(),width:t.width??b,height:t.height??void 0,fillColor:t.fillColor,outlineWidth:t.outlineWidth,outlineColor:t.outlineColor,outlineStyle:t.outlineStyle,margins:{top:t.marginTop??a$2.top,bottom:t.marginBottom??a$2.bottom,left:t.marginLeft??a$2.left,right:t.marginRight??a$2.right},content:n,displayMode:t.displayMode,cssFloat:t.cssFloat,wrapType:t.wrapType,wrapText:t.wrapText,anchorTarget:t.anchorTarget,position:t.position,distTop:t.distTop,distBottom:t.distBottom,distLeft:t.distLeft,distRight:t.distRight,pmStart:s,pmEnd:s+e.nodeSize}}function xe(e,s={}){let r=e.attrs?.defaultTabStopTwips,t={...s,defaultFont:s.defaultFont??J,defaultSize:s.defaultSize??Q,defaultTabStopTwips:s.defaultTabStopTwips??r},n=[],i=0,l={top:1440,bottom:1440,left:1440,right:1440};t.listCounters||(t.listCounters=new Map),t.listSeenNumIds||(t.listSeenNumIds=new Set);let b=(d,f,u)=>{if(d.type.name==="blockSdt"){let p=d.attrs,a={id:`sdt@${f}`,sdtType:typeof p.sdtType=="string"?p.sdtType:"richText",tag:p.tag!=null?String(p.tag):void 0,alias:p.alias!=null?String(p.alias):void 0,lock:p.lock!=null?String(p.lock):void 0,checked:typeof p.checked=="boolean"?p.checked:void 0,bound:p.dataBinding!=null?true:void 0,repeatingItem:/<w15:repeatingSectionItem[\s/>]/.test(String(p.rawPropertiesXml??""))?true:void 0},o=[...u,a];d.forEach((c,h)=>{b(c,f+1+h,o);});return}let m=n.length;switch(d.type.name){case "paragraph":{let p=M(d,f,t),a=d.attrs;n.push(p);let o=a._sectionProperties;if(o||a.sectionBreakType){let c$1={kind:"sectionBreak",id:c(),type:o?.sectionStart??a.sectionBreakType};if(o){if((o.pageWidth!==void 0||o.pageHeight!==void 0)&&(c$1.pageSize={w:a$1(o.pageWidth??12240),h:a$1(o.pageHeight??15840)}),o.marginTop!==void 0||o.marginBottom!==void 0||o.marginLeft!==void 0||o.marginRight!==void 0){let k={top:o.marginTop??l.top,bottom:o.marginBottom??l.bottom,left:o.marginLeft??l.left,right:o.marginRight??l.right};c$1.margins={top:a$1(k.top),bottom:a$1(k.bottom),left:a$1(k.left),right:a$1(k.right)},l=k;}let h=o.columnCount??1;if(h>1){let k={count:h,gap:a$1(o.columnSpace??720),equalWidth:o.equalWidth??true,separator:o.separator};c$1.columns=k;}}n.push(c$1);}}break;case "table":n.push(U(d,f,t));break;case "image":n.push(re(d,f,t.pageContentHeight));break;case "textBox":n.push(ie(d,f,t));break;case "horizontalRule":case "pageBreak":{let p={kind:"pageBreak",id:c(),pmStart:f,pmEnd:f+d.nodeSize};n.push(p);break}}if(u.length>0)for(let p=m;p<n.length;p++)n[p].sdtGroups=u;};return e.forEach((d,f)=>{b(d,i+f,[]);}),n}export{w as a,X as b,xe as c};