ooxml-core 1.33.0 → 1.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (475) hide show
  1. package/dist/PptxHandler-5UDSMCBG.cjs +14 -0
  2. package/dist/PptxHandler-TTRTAQAR.mjs +5 -0
  3. package/dist/{PptxHandler-Q7CFNKOU.mjs → PptxHandler-XCYX5DVX.mjs} +2 -2
  4. package/dist/{PresentationBuilder-VP2637RH.cjs → PresentationBuilder-HA56ZY23.cjs} +6 -5
  5. package/dist/{PresentationBuilder-SADKXDWC.mjs → PresentationBuilder-IVLUEB4K.mjs} +2 -2
  6. package/dist/{PresentationBuilder-PJMQRZI6.mjs → PresentationBuilder-JBTNOIL7.mjs} +3 -2
  7. package/dist/automation/index.cjs +47556 -43468
  8. package/dist/automation/index.mjs +47556 -43468
  9. package/dist/{chunk-2LTIDUXH.cjs → chunk-A27O7M5X.cjs} +147 -133
  10. package/dist/{chunk-Y2RH4QWG.mjs → chunk-EGBNPVBA.mjs} +1542 -721
  11. package/dist/{chunk-QRXMYOVN.mjs → chunk-GNGL4BO7.mjs} +66 -44
  12. package/dist/chunk-LSO5SSFX.mjs +112 -0
  13. package/dist/chunk-MB3TYNMV.mjs +28 -0
  14. package/dist/{chunk-EBBWRRSB.mjs → chunk-MK2IBZU6.mjs} +1 -1
  15. package/dist/{chunk-BDZR4DZ6.cjs → chunk-PA5ADSTX.cjs} +1329 -1306
  16. package/dist/{chunk-BQGLWC6N.mjs → chunk-RI56PFGL.mjs} +67 -44
  17. package/dist/{chunk-3LMHYL4W.mjs → chunk-RPJHMPEL.mjs} +1 -1
  18. package/dist/{chunk-JQVOUS6B.mjs → chunk-TJXK4D4U.mjs} +4 -4
  19. package/dist/{chunk-6LJW76BZ.mjs → chunk-UQMAPY6D.mjs} +147 -128
  20. package/dist/chunk-XF6ZRA2D.cjs +120 -0
  21. package/dist/crypto/index.cjs +23 -15
  22. package/dist/crypto/index.mjs +23 -15
  23. package/dist/docx/block-parser.d.ts.map +1 -1
  24. package/dist/docx/embedded.cjs +519 -161
  25. package/dist/docx/embedded.mjs +519 -161
  26. package/dist/docx/find-pattern.d.ts +33 -0
  27. package/dist/docx/find-pattern.d.ts.map +1 -0
  28. package/dist/docx/find-replacement.d.ts +16 -0
  29. package/dist/docx/find-replacement.d.ts.map +1 -0
  30. package/dist/docx/find-syntax.d.ts +13 -0
  31. package/dist/docx/find-syntax.d.ts.map +1 -0
  32. package/dist/docx/find-wildcards.d.ts +8 -0
  33. package/dist/docx/find-wildcards.d.ts.map +1 -0
  34. package/dist/docx/form-field-model.d.ts +39 -0
  35. package/dist/docx/form-field-model.d.ts.map +1 -1
  36. package/dist/docx/index.cjs +3157 -994
  37. package/dist/docx/index.d.ts +3 -1
  38. package/dist/docx/index.d.ts.map +1 -1
  39. package/dist/docx/index.mjs +3153 -995
  40. package/dist/docx/layout/adapter.d.ts.map +1 -1
  41. package/dist/docx/layout/index.cjs +30 -8
  42. package/dist/docx/layout/index.mjs +30 -8
  43. package/dist/docx/layout/input.d.ts +2 -0
  44. package/dist/docx/layout/input.d.ts.map +1 -1
  45. package/dist/docx/load/index.cjs +6706 -1322
  46. package/dist/docx/load/index.mjs +6706 -1322
  47. package/dist/docx/load/legacy-doc/binary-save.d.ts +4 -0
  48. package/dist/docx/load/legacy-doc/binary-save.d.ts.map +1 -0
  49. package/dist/docx/load/legacy-doc/blocks.d.ts +19 -0
  50. package/dist/docx/load/legacy-doc/blocks.d.ts.map +1 -0
  51. package/dist/docx/load/legacy-doc/borders.d.ts +7 -0
  52. package/dist/docx/load/legacy-doc/borders.d.ts.map +1 -0
  53. package/dist/docx/load/legacy-doc/context.d.ts +65 -0
  54. package/dist/docx/load/legacy-doc/context.d.ts.map +1 -0
  55. package/dist/docx/load/legacy-doc/drawing.d.ts +15 -0
  56. package/dist/docx/load/legacy-doc/drawing.d.ts.map +1 -0
  57. package/dist/docx/load/legacy-doc/error.d.ts +5 -0
  58. package/dist/docx/load/legacy-doc/error.d.ts.map +1 -0
  59. package/dist/docx/load/legacy-doc/inline.d.ts +7 -0
  60. package/dist/docx/load/legacy-doc/inline.d.ts.map +1 -0
  61. package/dist/docx/load/legacy-doc/numbering-part.d.ts +3 -0
  62. package/dist/docx/load/legacy-doc/numbering-part.d.ts.map +1 -0
  63. package/dist/docx/load/legacy-doc/package.d.ts +8 -0
  64. package/dist/docx/load/legacy-doc/package.d.ts.map +1 -0
  65. package/dist/docx/load/legacy-doc/para-props.d.ts +6 -0
  66. package/dist/docx/load/legacy-doc/para-props.d.ts.map +1 -0
  67. package/dist/docx/load/legacy-doc/run-props.d.ts +8 -0
  68. package/dist/docx/load/legacy-doc/run-props.d.ts.map +1 -0
  69. package/dist/docx/load/legacy-doc/sections.d.ts +23 -0
  70. package/dist/docx/load/legacy-doc/sections.d.ts.map +1 -0
  71. package/dist/docx/load/legacy-doc/styles-part.d.ts +3 -0
  72. package/dist/docx/load/legacy-doc/styles-part.d.ts.map +1 -0
  73. package/dist/docx/load/legacy-doc/table.d.ts +6 -0
  74. package/dist/docx/load/legacy-doc/table.d.ts.map +1 -0
  75. package/dist/docx/load/legacy-doc/xml.d.ts +21 -0
  76. package/dist/docx/load/legacy-doc/xml.d.ts.map +1 -0
  77. package/dist/docx/load/legacy-doc.d.ts +5 -4
  78. package/dist/docx/load/legacy-doc.d.ts.map +1 -1
  79. package/dist/docx/model-paragraph.d.ts +5 -0
  80. package/dist/docx/model-paragraph.d.ts.map +1 -1
  81. package/dist/docx/model.d.ts +3 -0
  82. package/dist/docx/model.d.ts.map +1 -1
  83. package/dist/docx/numbering-editing.d.ts +11 -1
  84. package/dist/docx/numbering-editing.d.ts.map +1 -1
  85. package/dist/docx/numbering-format.d.ts.map +1 -1
  86. package/dist/docx/numbering-model.d.ts +17 -0
  87. package/dist/docx/numbering-model.d.ts.map +1 -1
  88. package/dist/docx/numbering-package.d.ts +2 -2
  89. package/dist/docx/numbering-package.d.ts.map +1 -1
  90. package/dist/docx/numbering-parse.d.ts +2 -1
  91. package/dist/docx/numbering-parse.d.ts.map +1 -1
  92. package/dist/docx/numbering-picture-save.d.ts +13 -0
  93. package/dist/docx/numbering-picture-save.d.ts.map +1 -0
  94. package/dist/docx/numbering-picture.d.ts +18 -0
  95. package/dist/docx/numbering-picture.d.ts.map +1 -0
  96. package/dist/docx/parse.d.ts.map +1 -1
  97. package/dist/docx/permission-markers.d.ts +19 -0
  98. package/dist/docx/permission-markers.d.ts.map +1 -0
  99. package/dist/docx/permissions.d.ts +11 -0
  100. package/dist/docx/permissions.d.ts.map +1 -0
  101. package/dist/docx/protection-legacy.d.ts +13 -0
  102. package/dist/docx/protection-legacy.d.ts.map +1 -0
  103. package/dist/docx/protection.d.ts +30 -0
  104. package/dist/docx/protection.d.ts.map +1 -0
  105. package/dist/docx/save.d.ts.map +1 -1
  106. package/dist/docx/settings.d.ts +6 -1
  107. package/dist/docx/settings.d.ts.map +1 -1
  108. package/dist/docx/ui/customization.d.ts.map +1 -1
  109. package/dist/docx/ui/edit-restriction.d.ts +53 -0
  110. package/dist/docx/ui/edit-restriction.d.ts.map +1 -0
  111. package/dist/docx/ui/index.cjs +548 -18
  112. package/dist/docx/ui/index.d.ts +4 -0
  113. package/dist/docx/ui/index.d.ts.map +1 -1
  114. package/dist/docx/ui/index.mjs +528 -19
  115. package/dist/docx/ui/paragraph-attributes.d.ts.map +1 -1
  116. package/dist/docx/ui/ribbon-action-ids.d.ts +1 -1
  117. package/dist/docx/ui/ribbon-action-ids.d.ts.map +1 -1
  118. package/dist/docx/write-paragraph.d.ts.map +1 -1
  119. package/dist/drawingml/index.cjs +1 -0
  120. package/dist/drawingml/index.mjs +1 -0
  121. package/dist/drawingml/write-theme.d.ts +2 -0
  122. package/dist/drawingml/write-theme.d.ts.map +1 -1
  123. package/dist/index.cjs +342 -96
  124. package/dist/index.mjs +343 -97
  125. package/dist/opc/index.cjs +5 -0
  126. package/dist/opc/index.d.ts +1 -0
  127. package/dist/opc/index.d.ts.map +1 -1
  128. package/dist/opc/index.mjs +5 -1
  129. package/dist/opc/zlib.d.ts +6 -0
  130. package/dist/opc/zlib.d.ts.map +1 -0
  131. package/dist/pptx/automation/index.cjs +1919 -758
  132. package/dist/pptx/automation/index.d.ts +37 -3
  133. package/dist/pptx/automation/index.d.ts.map +1 -1
  134. package/dist/pptx/automation/index.mjs +252 -10
  135. package/dist/pptx/automation/schemas/index.cjs +26 -0
  136. package/dist/pptx/automation/schemas/index.d.ts +26 -1
  137. package/dist/pptx/automation/schemas/index.d.ts.map +1 -0
  138. package/dist/pptx/automation/schemas/index.mjs +1 -1
  139. package/dist/pptx/chunks/index-Bp-1pGo1.d.ts.map +1 -1
  140. package/dist/pptx/chunks/{index-BuMPQDQb.d.ts → index-pLLN4OTz.d.ts} +37 -10
  141. package/dist/pptx/chunks/{index-BuMPQDQb.d.ts.map → index-pLLN4OTz.d.ts.map} +1 -1
  142. package/dist/pptx/cli/index.cjs +281 -116
  143. package/dist/pptx/cli/index.mjs +4 -4
  144. package/dist/pptx/converter/index.mjs +2 -2
  145. package/dist/pptx/editor/render/custom-show-operations.cjs +133 -0
  146. package/dist/pptx/editor/render/custom-show-operations.d.ts +42 -0
  147. package/dist/pptx/editor/render/custom-show-operations.d.ts.map +1 -0
  148. package/dist/pptx/editor/render/custom-show-operations.mjs +119 -0
  149. package/dist/pptx/editor/render/find-replace.cjs +15 -14
  150. package/dist/pptx/editor/render/find-replace.d.ts +1 -1
  151. package/dist/pptx/editor/render/find-replace.mjs +2 -1
  152. package/dist/pptx/editor/render/slide-operations.cjs +9 -8
  153. package/dist/pptx/editor/render/slide-operations.mjs +3 -2
  154. package/dist/pptx/editor/render/table-data-grid-ops.cjs +1 -1
  155. package/dist/pptx/editor/render/table-data-grid-ops.mjs +1 -1
  156. package/dist/pptx/index.cjs +1656 -761
  157. package/dist/pptx/index.d.ts +2 -2
  158. package/dist/pptx/index.mjs +5 -5
  159. package/dist/teams/index.cjs +213 -26
  160. package/dist/teams/index.mjs +213 -26
  161. package/dist/text/index.cjs +241 -0
  162. package/dist/text/index.d.ts +2 -0
  163. package/dist/text/index.d.ts.map +1 -1
  164. package/dist/text/index.mjs +240 -1
  165. package/dist/text/truetype/parse.d.ts +36 -0
  166. package/dist/text/truetype/parse.d.ts.map +1 -0
  167. package/dist/text/truetype/subset.d.ts +16 -0
  168. package/dist/text/truetype/subset.d.ts.map +1 -0
  169. package/dist/visio/action-formula.d.ts +21 -0
  170. package/dist/visio/action-formula.d.ts.map +1 -0
  171. package/dist/visio/action-menu.d.ts +8 -0
  172. package/dist/visio/action-menu.d.ts.map +1 -0
  173. package/dist/visio/bevel-3d.d.ts +61 -0
  174. package/dist/visio/bevel-3d.d.ts.map +1 -0
  175. package/dist/visio/cell-formula.d.ts.map +1 -1
  176. package/dist/visio/cff-masters.d.ts +17 -0
  177. package/dist/visio/cff-masters.d.ts.map +1 -0
  178. package/dist/visio/cff-recalc.d.ts +17 -0
  179. package/dist/visio/cff-recalc.d.ts.map +1 -0
  180. package/dist/visio/container-relationships.d.ts +40 -6
  181. package/dist/visio/container-relationships.d.ts.map +1 -1
  182. package/dist/visio/control-formula.d.ts +13 -0
  183. package/dist/visio/control-formula.d.ts.map +1 -0
  184. package/dist/visio/data-connections.d.ts +32 -0
  185. package/dist/visio/data-connections.d.ts.map +1 -0
  186. package/dist/visio/data-recordsets.d.ts +7 -0
  187. package/dist/visio/data-recordsets.d.ts.map +1 -1
  188. package/dist/visio/data-refresh.d.ts +33 -0
  189. package/dist/visio/data-refresh.d.ts.map +1 -0
  190. package/dist/visio/edit-action.d.ts +22 -0
  191. package/dist/visio/edit-action.d.ts.map +1 -0
  192. package/dist/visio/edit-commands.d.ts +9 -1
  193. package/dist/visio/edit-commands.d.ts.map +1 -1
  194. package/dist/visio/edit-connector-glue.d.ts +24 -1
  195. package/dist/visio/edit-connector-glue.d.ts.map +1 -1
  196. package/dist/visio/edit-connector-layout.d.ts.map +1 -1
  197. package/dist/visio/edit-connector-org.d.ts +11 -0
  198. package/dist/visio/edit-connector-org.d.ts.map +1 -0
  199. package/dist/visio/edit-connector-reroute.d.ts.map +1 -1
  200. package/dist/visio/edit-connector-world.d.ts +25 -0
  201. package/dist/visio/edit-connector-world.d.ts.map +1 -0
  202. package/dist/visio/edit-connector.d.ts +5 -1
  203. package/dist/visio/edit-connector.d.ts.map +1 -1
  204. package/dist/visio/edit-container-fit.d.ts +15 -2
  205. package/dist/visio/edit-container-fit.d.ts.map +1 -1
  206. package/dist/visio/edit-container-members.d.ts +12 -0
  207. package/dist/visio/edit-container-members.d.ts.map +1 -1
  208. package/dist/visio/edit-container-options.d.ts +33 -0
  209. package/dist/visio/edit-container-options.d.ts.map +1 -0
  210. package/dist/visio/edit-control.d.ts +28 -0
  211. package/dist/visio/edit-control.d.ts.map +1 -0
  212. package/dist/visio/edit-data-commands.d.ts +5 -0
  213. package/dist/visio/edit-data-commands.d.ts.map +1 -1
  214. package/dist/visio/edit-data-parts.d.ts +2 -0
  215. package/dist/visio/edit-data-parts.d.ts.map +1 -1
  216. package/dist/visio/edit-data.d.ts.map +1 -1
  217. package/dist/visio/edit-diagram-parts-commands.d.ts +2 -1
  218. package/dist/visio/edit-diagram-parts-commands.d.ts.map +1 -1
  219. package/dist/visio/edit-diagram-parts.d.ts +8 -0
  220. package/dist/visio/edit-diagram-parts.d.ts.map +1 -1
  221. package/dist/visio/edit-formatting-commands.d.ts +4 -0
  222. package/dist/visio/edit-formatting-commands.d.ts.map +1 -1
  223. package/dist/visio/edit-formatting-paint.d.ts.map +1 -1
  224. package/dist/visio/edit-geometry.d.ts.map +1 -1
  225. package/dist/visio/edit-group-resize-instances.d.ts +43 -0
  226. package/dist/visio/edit-group-resize-instances.d.ts.map +1 -0
  227. package/dist/visio/edit-group-resize.d.ts +1 -0
  228. package/dist/visio/edit-group-resize.d.ts.map +1 -1
  229. package/dist/visio/edit-group-rotation.d.ts +8 -0
  230. package/dist/visio/edit-group-rotation.d.ts.map +1 -1
  231. package/dist/visio/edit-instance-checks.d.ts.map +1 -1
  232. package/dist/visio/edit-instance-geometry.d.ts +13 -0
  233. package/dist/visio/edit-instance-geometry.d.ts.map +1 -1
  234. package/dist/visio/edit-instance-sheet.d.ts.map +1 -1
  235. package/dist/visio/edit-master-add.d.ts +3 -0
  236. package/dist/visio/edit-master-add.d.ts.map +1 -1
  237. package/dist/visio/edit-master-drop.d.ts.map +1 -1
  238. package/dist/visio/edit-master-media.d.ts +22 -0
  239. package/dist/visio/edit-master-media.d.ts.map +1 -0
  240. package/dist/visio/edit-master-scope.d.ts.map +1 -1
  241. package/dist/visio/edit-package.d.ts.map +1 -1
  242. package/dist/visio/edit-page-theme-commands.d.ts +26 -0
  243. package/dist/visio/edit-page-theme-commands.d.ts.map +1 -1
  244. package/dist/visio/edit-page-theme-part.d.ts +6 -0
  245. package/dist/visio/edit-page-theme-part.d.ts.map +1 -0
  246. package/dist/visio/edit-page-theme.d.ts +9 -1
  247. package/dist/visio/edit-page-theme.d.ts.map +1 -1
  248. package/dist/visio/edit-picture-adjust.d.ts +32 -0
  249. package/dist/visio/edit-picture-adjust.d.ts.map +1 -0
  250. package/dist/visio/edit-resize-anchor.d.ts.map +1 -1
  251. package/dist/visio/edit-sheet-cells.d.ts +23 -0
  252. package/dist/visio/edit-sheet-cells.d.ts.map +1 -0
  253. package/dist/visio/edit-stencil-connector-write.d.ts.map +1 -1
  254. package/dist/visio/edit-stencil-connector.d.ts +7 -2
  255. package/dist/visio/edit-stencil-connector.d.ts.map +1 -1
  256. package/dist/visio/edit-stencil-import.d.ts +1 -1
  257. package/dist/visio/edit-stencil-import.d.ts.map +1 -1
  258. package/dist/visio/edit-style-admission.d.ts +6 -0
  259. package/dist/visio/edit-style-admission.d.ts.map +1 -1
  260. package/dist/visio/edit-swimlane-clone.d.ts +7 -0
  261. package/dist/visio/edit-swimlane-clone.d.ts.map +1 -0
  262. package/dist/visio/edit-swimlane-commands.d.ts +91 -0
  263. package/dist/visio/edit-swimlane-commands.d.ts.map +1 -0
  264. package/dist/visio/edit-swimlane-layout.d.ts +71 -0
  265. package/dist/visio/edit-swimlane-layout.d.ts.map +1 -0
  266. package/dist/visio/edit-swimlane-ops.d.ts +12 -0
  267. package/dist/visio/edit-swimlane-ops.d.ts.map +1 -0
  268. package/dist/visio/edit-swimlane-shapes.d.ts +42 -0
  269. package/dist/visio/edit-swimlane-shapes.d.ts.map +1 -0
  270. package/dist/visio/edit-swimlane-turn.d.ts +9 -0
  271. package/dist/visio/edit-swimlane-turn.d.ts.map +1 -0
  272. package/dist/visio/edit.d.ts.map +1 -1
  273. package/dist/visio/effects.d.ts +3 -2
  274. package/dist/visio/effects.d.ts.map +1 -1
  275. package/dist/visio/geometry.d.ts +2 -1
  276. package/dist/visio/geometry.d.ts.map +1 -1
  277. package/dist/visio/index.cjs +12115 -7631
  278. package/dist/visio/index.d.ts +13 -0
  279. package/dist/visio/index.d.ts.map +1 -1
  280. package/dist/visio/index.mjs +12101 -7632
  281. package/dist/visio/infinite-line.d.ts +17 -0
  282. package/dist/visio/infinite-line.d.ts.map +1 -0
  283. package/dist/visio/model.d.ts +62 -0
  284. package/dist/visio/model.d.ts.map +1 -1
  285. package/dist/visio/package-kind.d.ts +34 -0
  286. package/dist/visio/package-kind.d.ts.map +1 -0
  287. package/dist/visio/page-theme.d.ts +7 -0
  288. package/dist/visio/page-theme.d.ts.map +1 -1
  289. package/dist/visio/paragraphs.d.ts +1 -1
  290. package/dist/visio/paragraphs.d.ts.map +1 -1
  291. package/dist/visio/parser.d.ts +2 -2
  292. package/dist/visio/parser.d.ts.map +1 -1
  293. package/dist/visio/shadow.d.ts +2 -1
  294. package/dist/visio/shadow.d.ts.map +1 -1
  295. package/dist/visio/shape-sections-types.d.ts +71 -0
  296. package/dist/visio/shape-sections-types.d.ts.map +1 -0
  297. package/dist/visio/shape-sections.d.ts +11 -0
  298. package/dist/visio/shape-sections.d.ts.map +1 -0
  299. package/dist/visio/shape-structure.d.ts +14 -1
  300. package/dist/visio/shape-structure.d.ts.map +1 -1
  301. package/dist/visio/shapes.d.ts +7 -1
  302. package/dist/visio/shapes.d.ts.map +1 -1
  303. package/dist/visio/stencil-file.d.ts +2 -2
  304. package/dist/visio/style.d.ts.map +1 -1
  305. package/dist/visio/swimlane-membership.d.ts +12 -0
  306. package/dist/visio/swimlane-membership.d.ts.map +1 -0
  307. package/dist/visio/swimlane-stack.d.ts +67 -0
  308. package/dist/visio/swimlane-stack.d.ts.map +1 -0
  309. package/dist/visio/tab-stops.d.ts +20 -0
  310. package/dist/visio/tab-stops.d.ts.map +1 -0
  311. package/dist/visio/theme-builtins.d.ts +3 -0
  312. package/dist/visio/theme-builtins.d.ts.map +1 -1
  313. package/dist/visio/theme-effects.d.ts +19 -0
  314. package/dist/visio/theme-effects.d.ts.map +1 -0
  315. package/dist/visio/theme-font.d.ts +13 -0
  316. package/dist/visio/theme-font.d.ts.map +1 -0
  317. package/dist/visio/theme-line.d.ts +10 -0
  318. package/dist/visio/theme-line.d.ts.map +1 -1
  319. package/dist/visio/theme-write.d.ts.map +1 -1
  320. package/dist/visio/theme.d.ts +7 -0
  321. package/dist/visio/theme.d.ts.map +1 -1
  322. package/dist/visio/ui/data-graphic-config.d.ts +46 -0
  323. package/dist/visio/ui/data-graphic-config.d.ts.map +1 -0
  324. package/dist/visio/ui/data-graphic-items.d.ts +23 -0
  325. package/dist/visio/ui/data-graphic-items.d.ts.map +1 -0
  326. package/dist/visio/ui/data-graphic-rules.d.ts +14 -0
  327. package/dist/visio/ui/data-graphic-rules.d.ts.map +1 -1
  328. package/dist/visio/ui/data-graphics.d.ts +10 -1
  329. package/dist/visio/ui/data-graphics.d.ts.map +1 -1
  330. package/dist/visio/ui/data-visualizer-edits.d.ts +22 -0
  331. package/dist/visio/ui/data-visualizer-edits.d.ts.map +1 -0
  332. package/dist/visio/ui/data-visualizer.d.ts +47 -0
  333. package/dist/visio/ui/data-visualizer.d.ts.map +1 -0
  334. package/dist/visio/ui/diagram-parts.d.ts +8 -1
  335. package/dist/visio/ui/diagram-parts.d.ts.map +1 -1
  336. package/dist/visio/ui/edit-commands.d.ts.map +1 -1
  337. package/dist/visio/ui/guides.d.ts +9 -1
  338. package/dist/visio/ui/guides.d.ts.map +1 -1
  339. package/dist/visio/ui/index.cjs +44031 -38653
  340. package/dist/visio/ui/index.d.ts +10 -0
  341. package/dist/visio/ui/index.d.ts.map +1 -1
  342. package/dist/visio/ui/index.mjs +43976 -38654
  343. package/dist/visio/ui/org-chart-edit.d.ts +52 -0
  344. package/dist/visio/ui/org-chart-edit.d.ts.map +1 -0
  345. package/dist/visio/ui/org-chart-import.d.ts +35 -0
  346. package/dist/visio/ui/org-chart-import.d.ts.map +1 -0
  347. package/dist/visio/ui/org-chart-layout.d.ts +43 -0
  348. package/dist/visio/ui/org-chart-layout.d.ts.map +1 -0
  349. package/dist/visio/ui/org-chart-stencil-data.d.ts +11 -0
  350. package/dist/visio/ui/org-chart-stencil-data.d.ts.map +1 -0
  351. package/dist/visio/ui/org-chart-template.d.ts +7 -0
  352. package/dist/visio/ui/org-chart-template.d.ts.map +1 -0
  353. package/dist/visio/ui/org-chart.d.ts +63 -0
  354. package/dist/visio/ui/org-chart.d.ts.map +1 -0
  355. package/dist/visio/ui/resize-snap.d.ts +51 -0
  356. package/dist/visio/ui/resize-snap.d.ts.map +1 -0
  357. package/dist/visio/ui/sample-drawing.d.ts +26 -0
  358. package/dist/visio/ui/sample-drawing.d.ts.map +1 -1
  359. package/dist/visio/ui/scene-validation.d.ts.map +1 -1
  360. package/dist/visio/ui/selection-connectors.d.ts +10 -0
  361. package/dist/visio/ui/selection-connectors.d.ts.map +1 -0
  362. package/dist/visio/ui/selection-resize.d.ts +2 -2
  363. package/dist/visio/ui/selection-resize.d.ts.map +1 -1
  364. package/dist/visio/ui/shape-group.d.ts +3 -1
  365. package/dist/visio/ui/shape-group.d.ts.map +1 -1
  366. package/dist/visio/ui/shape-move.d.ts.map +1 -1
  367. package/dist/visio/ui/shape-resize.d.ts +29 -1
  368. package/dist/visio/ui/shape-resize.d.ts.map +1 -1
  369. package/dist/visio/ui/shape-rotation.d.ts +3 -1
  370. package/dist/visio/ui/shape-rotation.d.ts.map +1 -1
  371. package/dist/visio/ui/snapshot-scene.d.ts.map +1 -1
  372. package/dist/visio/ui/swimlane.d.ts +37 -0
  373. package/dist/visio/ui/swimlane.d.ts.map +1 -0
  374. package/dist/visio/ui/templates.d.ts +30 -0
  375. package/dist/visio/ui/templates.d.ts.map +1 -0
  376. package/dist/xlsx/audit/ast-text.d.ts +12 -0
  377. package/dist/xlsx/audit/ast-text.d.ts.map +1 -0
  378. package/dist/xlsx/audit/error-check.d.ts +23 -0
  379. package/dist/xlsx/audit/error-check.d.ts.map +1 -0
  380. package/dist/xlsx/audit/evaluate-steps.d.ts +48 -0
  381. package/dist/xlsx/audit/evaluate-steps.d.ts.map +1 -0
  382. package/dist/xlsx/audit/index.d.ts +6 -0
  383. package/dist/xlsx/audit/index.d.ts.map +1 -0
  384. package/dist/xlsx/audit/trace.d.ts +59 -0
  385. package/dist/xlsx/audit/trace.d.ts.map +1 -0
  386. package/dist/xlsx/audit/watch.d.ts +17 -0
  387. package/dist/xlsx/audit/watch.d.ts.map +1 -0
  388. package/dist/xlsx/edit/filter.d.ts +5 -2
  389. package/dist/xlsx/edit/filter.d.ts.map +1 -1
  390. package/dist/xlsx/edit/index.d.ts +4 -1
  391. package/dist/xlsx/edit/index.d.ts.map +1 -1
  392. package/dist/xlsx/edit/session.d.ts.map +1 -1
  393. package/dist/xlsx/edit/sort-choices.d.ts +23 -0
  394. package/dist/xlsx/edit/sort-choices.d.ts.map +1 -0
  395. package/dist/xlsx/edit/sort-keys.d.ts +49 -0
  396. package/dist/xlsx/edit/sort-keys.d.ts.map +1 -0
  397. package/dist/xlsx/edit/sort-reapply.d.ts +11 -0
  398. package/dist/xlsx/edit/sort-reapply.d.ts.map +1 -0
  399. package/dist/xlsx/edit/sort.d.ts +14 -12
  400. package/dist/xlsx/edit/sort.d.ts.map +1 -1
  401. package/dist/xlsx/edit/types.d.ts +7 -6
  402. package/dist/xlsx/edit/types.d.ts.map +1 -1
  403. package/dist/xlsx/edit/view.d.ts +9 -1
  404. package/dist/xlsx/edit/view.d.ts.map +1 -1
  405. package/dist/xlsx/filter-criteria.d.ts +2 -1
  406. package/dist/xlsx/filter-criteria.d.ts.map +1 -1
  407. package/dist/xlsx/formula/engine-types.d.ts +8 -0
  408. package/dist/xlsx/formula/engine-types.d.ts.map +1 -1
  409. package/dist/xlsx/formula/engine.d.ts.map +1 -1
  410. package/dist/xlsx/index.cjs +5478 -4220
  411. package/dist/xlsx/index.d.ts +1 -0
  412. package/dist/xlsx/index.d.ts.map +1 -1
  413. package/dist/xlsx/index.mjs +5450 -4221
  414. package/dist/xlsx/layout/index.d.ts +1 -0
  415. package/dist/xlsx/layout/index.d.ts.map +1 -1
  416. package/dist/xlsx/layout/split.d.ts +55 -0
  417. package/dist/xlsx/layout/split.d.ts.map +1 -0
  418. package/dist/xlsx/layout/viewport.d.ts +2 -0
  419. package/dist/xlsx/layout/viewport.d.ts.map +1 -1
  420. package/dist/xlsx/load/index.cjs +305 -109
  421. package/dist/xlsx/load/index.mjs +305 -109
  422. package/dist/xlsx/model-sort.d.ts +27 -0
  423. package/dist/xlsx/model-sort.d.ts.map +1 -0
  424. package/dist/xlsx/model.d.ts +39 -1
  425. package/dist/xlsx/model.d.ts.map +1 -1
  426. package/dist/xlsx/read/ignored-errors.d.ts +4 -0
  427. package/dist/xlsx/read/ignored-errors.d.ts.map +1 -0
  428. package/dist/xlsx/read/sheet-props.d.ts.map +1 -1
  429. package/dist/xlsx/read/sort-state.d.ts +5 -0
  430. package/dist/xlsx/read/sort-state.d.ts.map +1 -0
  431. package/dist/xlsx/read/tables.d.ts +2 -2
  432. package/dist/xlsx/read/tables.d.ts.map +1 -1
  433. package/dist/xlsx/read/worksheet.d.ts.map +1 -1
  434. package/dist/xlsx/sort-lists.d.ts +6 -0
  435. package/dist/xlsx/sort-lists.d.ts.map +1 -0
  436. package/dist/xlsx/ui/audit-state.d.ts +19 -0
  437. package/dist/xlsx/ui/audit-state.d.ts.map +1 -0
  438. package/dist/xlsx/ui/commands/audit.d.ts +3 -0
  439. package/dist/xlsx/ui/commands/audit.d.ts.map +1 -0
  440. package/dist/xlsx/ui/commands/formulas.d.ts.map +1 -1
  441. package/dist/xlsx/ui/commands/i18n/audit.d.ts +3 -0
  442. package/dist/xlsx/ui/commands/i18n/audit.d.ts.map +1 -0
  443. package/dist/xlsx/ui/commands/i18n/index.d.ts.map +1 -1
  444. package/dist/xlsx/ui/commands/i18n/navigation.d.ts.map +1 -1
  445. package/dist/xlsx/ui/commands/i18n/ribbon-tabs.d.ts.map +1 -1
  446. package/dist/xlsx/ui/commands/i18n/rules.d.ts.map +1 -1
  447. package/dist/xlsx/ui/commands/icons.d.ts.map +1 -1
  448. package/dist/xlsx/ui/commands/sort-filter.d.ts.map +1 -1
  449. package/dist/xlsx/ui/context.d.ts +6 -1
  450. package/dist/xlsx/ui/context.d.ts.map +1 -1
  451. package/dist/xlsx/ui/grid/geometry.d.ts +29 -1
  452. package/dist/xlsx/ui/grid/geometry.d.ts.map +1 -1
  453. package/dist/xlsx/ui/index.cjs +10761 -9573
  454. package/dist/xlsx/ui/index.d.ts +1 -0
  455. package/dist/xlsx/ui/index.d.ts.map +1 -1
  456. package/dist/xlsx/ui/index.mjs +10755 -9574
  457. package/dist/xlsx/ui/ribbon/icon-paths.d.ts.map +1 -1
  458. package/dist/xlsx/ui/ribbon/tabs/review-view.d.ts.map +1 -1
  459. package/dist/xlsx/write/filter-columns.d.ts +14 -0
  460. package/dist/xlsx/write/filter-columns.d.ts.map +1 -1
  461. package/dist/xlsx/write/ignored-errors.d.ts +3 -0
  462. package/dist/xlsx/write/ignored-errors.d.ts.map +1 -0
  463. package/dist/xlsx/write/sheet-parts.d.ts.map +1 -1
  464. package/dist/xlsx/write/sheet-props.d.ts.map +1 -1
  465. package/dist/xlsx/write/sort-state.d.ts +55 -0
  466. package/dist/xlsx/write/sort-state.d.ts.map +1 -0
  467. package/dist/xlsx/write/table-patch.d.ts +2 -1
  468. package/dist/xlsx/write/table-patch.d.ts.map +1 -1
  469. package/dist/xlsx/write/tables.d.ts +2 -1
  470. package/dist/xlsx/write/tables.d.ts.map +1 -1
  471. package/dist/xlsx/write/worksheet.d.ts.map +1 -1
  472. package/package.json +2 -2
  473. package/dist/PptxHandler-MGKMIK22.cjs +0 -13
  474. package/dist/PptxHandler-TEC7SWBU.mjs +0 -4
  475. package/dist/chunk-MHNETXQB.mjs +0 -1
package/dist/index.cjs CHANGED
@@ -4569,24 +4569,24 @@ function drawingPatternPictureXml(fill) {
4569
4569
  if (!fill.preset && !fill.sourceXml) throw new Error("A DrawingML pattern needs a preset");
4570
4570
  if (before?.kind !== "pattern" || before.preset !== fill.preset)
4571
4571
  root.setAttribute("prst", fill.preset);
4572
- for (const [key, tag] of [
4572
+ for (const [key, tag2] of [
4573
4573
  ["foreground", "fgClr"],
4574
4574
  ["background", "bgClr"]
4575
4575
  ]) {
4576
4576
  const color2 = fill[key];
4577
4577
  if (before?.kind === "pattern" && JSON.stringify(before[key]) === JSON.stringify(color2))
4578
4578
  continue;
4579
- const old = first(root, tag, NS.a);
4579
+ const old = first(root, tag2, NS.a);
4580
4580
  if (!color2) {
4581
4581
  if (old) root.removeChild(old);
4582
4582
  continue;
4583
4583
  }
4584
- const node = old ?? doc.createElementNS(NS.a, `a:${tag}`);
4584
+ const node = old ?? doc.createElementNS(NS.a, `a:${tag2}`);
4585
4585
  patchDrawingColorIn(node, color2);
4586
4586
  if (!old)
4587
4587
  root.insertBefore(
4588
4588
  node,
4589
- tag === "fgClr" ? first(root, "bgClr", NS.a) ?? root.firstChild : first(root, "extLst", NS.a) ?? null
4589
+ tag2 === "fgClr" ? first(root, "bgClr", NS.a) ?? root.firstChild : first(root, "extLst", NS.a) ?? null
4590
4590
  );
4591
4591
  }
4592
4592
  } else {
@@ -10172,7 +10172,7 @@ var KINDS = {
10172
10172
  reflection: "reflection",
10173
10173
  fillOverlay: "fillOverlay"
10174
10174
  };
10175
- var TAGS = Object.fromEntries(Object.entries(KINDS).map(([tag, kind]) => [kind, tag]));
10175
+ var TAGS = Object.fromEntries(Object.entries(KINDS).map(([tag2, kind]) => [kind, tag2]));
10176
10176
  var GEOMETRY = { blurRadiusEmu: "blurRad", distanceEmu: "dist", directionAngle: "dir" };
10177
10177
  var TRANSFORM = { scaleX: "sx", scaleY: "sy", skewXAngle: "kx", skewYAngle: "ky" };
10178
10178
  var NUMBERS = {
@@ -13085,6 +13085,7 @@ function drawingThemeXml(theme, parts = {}) {
13085
13085
  fonts.setAttribute("name", theme.fontScheme.name ?? theme.name ?? "Custom");
13086
13086
  fontCollection(fonts, "majorFont", theme.fontScheme.major);
13087
13087
  fontCollection(fonts, "minorFont", theme.fontScheme.minor);
13088
+ extensionList3(fonts, parts.fontSchemeExtensions, namespaces);
13088
13089
  elementsNode.appendChild(fonts);
13089
13090
  const formatXml = parts.formatScheme ?? (theme.formatScheme && drawingThemeFormatSchemeXml(theme.formatScheme));
13090
13091
  if (!formatXml) throw new Error("The theme has no format scheme.");
@@ -19330,16 +19331,16 @@ function patchRun(node, edit) {
19330
19331
  typeof value === "boolean" ? value ? "1" : "0" : String(Math.round(value * 100))
19331
19332
  );
19332
19333
  }
19333
- for (const [key, tag] of [
19334
+ for (const [key, tag2] of [
19334
19335
  ["typeface", "latin"],
19335
19336
  ["eastAsiaTypeface", "ea"]
19336
19337
  ])
19337
19338
  if (edit[key] !== void 0) {
19338
- const old = first(node, tag, NS.a);
19339
+ const old = first(node, tag2, NS.a);
19339
19340
  if (edit[key] === null) {
19340
19341
  if (old) node.removeChild(old);
19341
19342
  } else {
19342
- const latin = old ?? node.ownerDocument.createElementNS(NS.a, `a:${tag}`);
19343
+ const latin = old ?? node.ownerDocument.createElementNS(NS.a, `a:${tag2}`);
19343
19344
  latin.setAttribute("typeface", edit[key]);
19344
19345
  if (!old) node.appendChild(latin);
19345
19346
  }
@@ -20625,11 +20626,11 @@ function chartTargetThreeD(space3, target) {
20625
20626
  editChartShapeXml({ ...shape }, (root) => {
20626
20627
  const sp3d = first(root, "sp3d", NS.a);
20627
20628
  if (sp3d) {
20628
- for (const [key, tag] of [
20629
+ for (const [key, tag2] of [
20629
20630
  ["bevelTop", "bevelT"],
20630
20631
  ["bevelBottom", "bevelB"]
20631
20632
  ]) {
20632
- const node = first(sp3d, tag, NS.a);
20633
+ const node = first(sp3d, tag2, NS.a);
20633
20634
  if (!node) continue;
20634
20635
  const widthEmu = Number(node.getAttribute("w") ?? 0);
20635
20636
  const heightEmu = Number(node.getAttribute("h") ?? 0);
@@ -20643,11 +20644,11 @@ function chartTargetThreeD(space3, target) {
20643
20644
  const value = sp3d.getAttribute(attr4);
20644
20645
  if (value !== null && Number.isFinite(Number(value))) result[key] = Number(value);
20645
20646
  }
20646
- for (const [key, tag] of [
20647
+ for (const [key, tag2] of [
20647
20648
  ["depthColor", "extrusionClr"],
20648
20649
  ["contourColor", "contourClr"]
20649
20650
  ]) {
20650
- const color2 = parseDrawingColorIn(first(sp3d, tag, NS.a));
20651
+ const color2 = parseDrawingColorIn(first(sp3d, tag2, NS.a));
20651
20652
  if (color2) result[key] = color2;
20652
20653
  }
20653
20654
  const material = sp3d.getAttribute("prstMaterial");
@@ -20667,21 +20668,21 @@ function setChartTargetThreeD(space3, target, edit) {
20667
20668
  for (const shape of chartTargetDraftShapes(draft, target))
20668
20669
  editChartShapeXml(shape, (root) => {
20669
20670
  const sp3d = child3(root, "sp3d");
20670
- for (const [key, tag] of [
20671
+ for (const [key, tag2] of [
20671
20672
  ["bevelTop", "bevelT"],
20672
20673
  ["bevelBottom", "bevelB"]
20673
20674
  ]) {
20674
20675
  const bevel2 = edit[key];
20675
20676
  if (bevel2 === void 0) continue;
20676
20677
  if (bevel2 === null) {
20677
- remove3(sp3d, tag);
20678
+ remove3(sp3d, tag2);
20678
20679
  continue;
20679
20680
  }
20680
20681
  if (![bevel2.widthEmu, bevel2.heightEmu].every(
20681
20682
  (value) => Number.isFinite(value) && value >= 0
20682
20683
  ) || !bevel2.preset)
20683
20684
  throw new RangeError("Invalid chart bevel");
20684
- const node = child3(sp3d, tag);
20685
+ const node = child3(sp3d, tag2);
20685
20686
  node.setAttribute("prst", bevel2.preset);
20686
20687
  node.setAttribute("w", String(Math.round(bevel2.widthEmu)));
20687
20688
  node.setAttribute("h", String(Math.round(bevel2.heightEmu)));
@@ -20698,14 +20699,14 @@ function setChartTargetThreeD(space3, target, edit) {
20698
20699
  sp3d.setAttribute(attribute2, String(Math.round(value)));
20699
20700
  }
20700
20701
  }
20701
- for (const [key, tag] of [
20702
+ for (const [key, tag2] of [
20702
20703
  ["depthColor", "extrusionClr"],
20703
20704
  ["contourColor", "contourClr"]
20704
20705
  ]) {
20705
20706
  const color2 = edit[key];
20706
20707
  if (color2 === void 0) continue;
20707
- if (color2 === null) remove3(sp3d, tag);
20708
- else patchDrawingColorIn(child3(sp3d, tag), color2);
20708
+ if (color2 === null) remove3(sp3d, tag2);
20709
+ else patchDrawingColorIn(child3(sp3d, tag2), color2);
20709
20710
  }
20710
20711
  if (edit.material !== void 0) {
20711
20712
  if (edit.material === null) sp3d.removeAttribute("prstMaterial");
@@ -21535,15 +21536,15 @@ function editChartLayout(current, value) {
21535
21536
  root.insertBefore(manual, root.firstChild);
21536
21537
  }
21537
21538
  if (manual) {
21538
- const previous = new Map(FIELDS.map(([, tag]) => [tag, first(manual, tag, NS.c)]));
21539
- for (const [, tag] of FIELDS) {
21540
- const old = first(manual, tag, NS.c);
21539
+ const previous = new Map(FIELDS.map(([, tag2]) => [tag2, first(manual, tag2, NS.c)]));
21540
+ for (const [, tag2] of FIELDS) {
21541
+ const old = first(manual, tag2, NS.c);
21541
21542
  if (old) manual.removeChild(old);
21542
21543
  }
21543
21544
  const before = manual.firstChild;
21544
- for (const [key, tag] of FIELDS) {
21545
+ for (const [key, tag2] of FIELDS) {
21545
21546
  if (value?.[key] === void 0) continue;
21546
- const node = previous.get(tag) ?? root.ownerDocument.createElementNS(NS.c, `c:${tag}`);
21547
+ const node = previous.get(tag2) ?? root.ownerDocument.createElementNS(NS.c, `c:${tag2}`);
21547
21548
  node.setAttribute("val", String(value[key]));
21548
21549
  manual.insertBefore(node, before);
21549
21550
  }
@@ -22122,6 +22123,7 @@ __export(text_exports, {
22122
22123
  parseLocaleNumber: () => parseLocaleNumber,
22123
22124
  parsePanoseBytes: () => parsePanoseBytes,
22124
22125
  parsePanoseString: () => parsePanoseString,
22126
+ parseTrueType: () => parseTrueType,
22125
22127
  parseTsv: () => parseTsv,
22126
22128
  realignOrCollapseRuns: () => realignOrCollapseRuns,
22127
22129
  resolveFontForScript: () => resolveFontForScript,
@@ -22129,6 +22131,7 @@ __export(text_exports, {
22129
22131
  segmentByFont: () => segmentByFont,
22130
22132
  segmentByScript: () => segmentByScript,
22131
22133
  stripFontStyleSuffix: () => stripFontStyleSuffix,
22134
+ subsetTrueType: () => subsetTrueType,
22132
22135
  toTsv: () => toTsv,
22133
22136
  wrapStyledRuns: () => wrapStyledRuns
22134
22137
  });
@@ -22978,6 +22981,245 @@ function segmentByFont(text3, fonts) {
22978
22981
  return result;
22979
22982
  }
22980
22983
 
22984
+ // text/truetype/parse.ts
22985
+ var u16 = (v, o) => o + 2 <= v.byteLength ? v.getUint16(o) : 0;
22986
+ var i16 = (v, o) => o + 2 <= v.byteLength ? v.getInt16(o) : 0;
22987
+ var u32 = (v, o) => o + 4 <= v.byteLength ? v.getUint32(o) : 0;
22988
+ var tag = (v, o) => String.fromCharCode(v.getUint8(o), v.getUint8(o + 1), v.getUint8(o + 2), v.getUint8(o + 3));
22989
+ function format4(view, at2) {
22990
+ const segments = u16(view, at2 + 6) / 2;
22991
+ const ends = at2 + 14;
22992
+ const starts = ends + segments * 2 + 2;
22993
+ const deltas = starts + segments * 2;
22994
+ const offsets = deltas + segments * 2;
22995
+ return (code) => {
22996
+ if (code > 65535) return 0;
22997
+ let lo = 0;
22998
+ let hi = segments - 1;
22999
+ while (lo <= hi) {
23000
+ const mid = lo + hi >> 1;
23001
+ if (code > u16(view, ends + mid * 2)) lo = mid + 1;
23002
+ else if (code < u16(view, starts + mid * 2)) hi = mid - 1;
23003
+ else {
23004
+ const range2 = u16(view, offsets + mid * 2);
23005
+ if (!range2) return code + u16(view, deltas + mid * 2) & 65535;
23006
+ const slot2 = offsets + mid * 2 + range2 + (code - u16(view, starts + mid * 2)) * 2;
23007
+ const glyph2 = u16(view, slot2);
23008
+ return glyph2 ? glyph2 + u16(view, deltas + mid * 2) & 65535 : 0;
23009
+ }
23010
+ }
23011
+ return 0;
23012
+ };
23013
+ }
23014
+ function format12(view, at2) {
23015
+ const groups = u32(view, at2 + 12);
23016
+ return (code) => {
23017
+ let lo = 0;
23018
+ let hi = groups - 1;
23019
+ while (lo <= hi) {
23020
+ const mid = lo + hi >> 1;
23021
+ const base = at2 + 16 + mid * 12;
23022
+ if (code > u32(view, base + 4)) lo = mid + 1;
23023
+ else if (code < u32(view, base)) hi = mid - 1;
23024
+ else return u32(view, base + 8) + (code - u32(view, base));
23025
+ }
23026
+ return 0;
23027
+ };
23028
+ }
23029
+ function characterMap(view, table) {
23030
+ const count = u16(view, table + 2);
23031
+ let best;
23032
+ for (let index = 0; index < count; index++) {
23033
+ const platform = u16(view, table + 4 + index * 8);
23034
+ const encoding = u16(view, table + 6 + index * 8);
23035
+ const at2 = table + u32(view, table + 8 + index * 8);
23036
+ const format = u16(view, at2);
23037
+ if (format !== 4 && format !== 12) continue;
23038
+ const rank = platform === 3 && encoding === 10 || platform === 0 && format === 12 ? 3 : platform === 3 && encoding === 1 ? 2 : platform === 0 ? 1 : 0;
23039
+ if (rank > 0 && (!best || rank > best.rank)) best = { rank, at: at2 };
23040
+ }
23041
+ if (!best) return void 0;
23042
+ return u16(view, best.at) === 12 ? format12(view, best.at) : format4(view, best.at);
23043
+ }
23044
+ function parseTrueType(data) {
23045
+ if (data.length < 12) return void 0;
23046
+ const view = new DataView(data.buffer, data.byteOffset, data.byteLength);
23047
+ const base = tag(view, 0) === "ttcf" ? u32(view, 12) : 0;
23048
+ if (base + 12 > data.length) return void 0;
23049
+ if (u32(view, base) !== 65536 && tag(view, base) !== "true") return void 0;
23050
+ const count = u16(view, base + 4);
23051
+ const tables = /* @__PURE__ */ new Map();
23052
+ for (let index = 0; index < count; index++) {
23053
+ const entry3 = base + 12 + index * 16;
23054
+ if (entry3 + 16 > data.length) return void 0;
23055
+ const offset = u32(view, entry3 + 8);
23056
+ const length = u32(view, entry3 + 12);
23057
+ if (offset + length > data.length) return void 0;
23058
+ tables.set(tag(view, entry3), { offset, length });
23059
+ }
23060
+ const head = tables.get("head");
23061
+ const hhea = tables.get("hhea");
23062
+ const maxp = tables.get("maxp");
23063
+ const hmtx = tables.get("hmtx");
23064
+ const loca = tables.get("loca");
23065
+ const glyf = tables.get("glyf");
23066
+ const cmap = tables.get("cmap");
23067
+ if (!head || !hhea || !maxp || !hmtx || !loca || !glyf || !cmap) return void 0;
23068
+ if (head.length < 54 || hhea.length < 36 || maxp.length < 6) return void 0;
23069
+ const unitsPerEm = u16(view, head.offset + 18);
23070
+ const glyphCount = u16(view, maxp.offset + 4);
23071
+ if (!unitsPerEm || !glyphCount) return void 0;
23072
+ const locaFormat = i16(view, head.offset + 50);
23073
+ const lookup = characterMap(view, cmap.offset);
23074
+ if (!lookup) return void 0;
23075
+ const metrics = u16(view, hhea.offset + 34);
23076
+ const os2 = tables.get("OS/2");
23077
+ const post = tables.get("post");
23078
+ return {
23079
+ data,
23080
+ tables,
23081
+ unitsPerEm,
23082
+ glyphCount,
23083
+ ascent: i16(view, hhea.offset + 4),
23084
+ descent: i16(view, hhea.offset + 6),
23085
+ bbox: [
23086
+ i16(view, head.offset + 36),
23087
+ i16(view, head.offset + 38),
23088
+ i16(view, head.offset + 40),
23089
+ i16(view, head.offset + 42)
23090
+ ],
23091
+ italicAngle: post ? i16(view, post.offset + 4) + u16(view, post.offset + 6) / 65536 : 0,
23092
+ capHeight: os2 && os2.length >= 90 ? i16(view, os2.offset + 88) || void 0 : void 0,
23093
+ embeddingFlags: os2 ? u16(view, os2.offset + 8) : 0,
23094
+ locaFormat,
23095
+ glyphFor: (code) => {
23096
+ const glyph2 = lookup(code);
23097
+ return glyph2 < glyphCount ? glyph2 : 0;
23098
+ },
23099
+ advance: (glyph2) => u16(view, hmtx.offset + Math.min(glyph2, Math.max(0, metrics - 1)) * 4),
23100
+ bearing: (glyph2) => glyph2 < metrics ? i16(view, hmtx.offset + glyph2 * 4 + 2) : i16(view, hmtx.offset + metrics * 4 + (glyph2 - metrics) * 2),
23101
+ outline: (glyph2) => {
23102
+ if (glyph2 < 0 || glyph2 >= glyphCount) return new Uint8Array(0);
23103
+ const at2 = loca.offset + glyph2 * (locaFormat ? 4 : 2);
23104
+ const start = locaFormat ? u32(view, at2) : u16(view, at2) * 2;
23105
+ const end = locaFormat ? u32(view, at2 + 4) : u16(view, at2 + 2) * 2;
23106
+ if (end <= start || glyf.offset + end > data.length) return new Uint8Array(0);
23107
+ return data.subarray(glyf.offset + start, glyf.offset + end);
23108
+ }
23109
+ };
23110
+ }
23111
+
23112
+ // text/truetype/subset.ts
23113
+ var pad4 = (n2) => n2 + 3 & -4;
23114
+ function checksum(bytes) {
23115
+ let sum = 0;
23116
+ for (let i2 = 0; i2 < bytes.length; i2 += 4)
23117
+ sum = sum + ((bytes[i2] ?? 0) << 24 | (bytes[i2 + 1] ?? 0) << 16 | (bytes[i2 + 2] ?? 0) << 8 | (bytes[i2 + 3] ?? 0)) >>> 0;
23118
+ return sum;
23119
+ }
23120
+ function components(outline2) {
23121
+ if (outline2.length < 10) return [];
23122
+ const view = new DataView(outline2.buffer, outline2.byteOffset, outline2.byteLength);
23123
+ if (view.getInt16(0) >= 0) return [];
23124
+ const found = [];
23125
+ let at2 = 10;
23126
+ for (let guard = 0; guard < 256 && at2 + 4 <= outline2.length; guard++) {
23127
+ const flags = view.getUint16(at2);
23128
+ found.push({ offset: at2 + 2, glyph: view.getUint16(at2 + 2) });
23129
+ if (!(flags & 32)) break;
23130
+ at2 += 4 + (flags & 1 ? 4 : 2);
23131
+ if (flags & 8) at2 += 2;
23132
+ else if (flags & 64) at2 += 4;
23133
+ else if (flags & 128) at2 += 8;
23134
+ }
23135
+ return found;
23136
+ }
23137
+ function subsetTrueType(font, used) {
23138
+ const glyphs = [0];
23139
+ const mapped = /* @__PURE__ */ new Map([[0, 0]]);
23140
+ const add2 = (glyph2) => {
23141
+ if (mapped.has(glyph2) || glyph2 >= font.glyphCount) return;
23142
+ mapped.set(glyph2, glyphs.length);
23143
+ glyphs.push(glyph2);
23144
+ };
23145
+ for (const glyph2 of used) add2(glyph2);
23146
+ for (let index = 1; index < glyphs.length; index++)
23147
+ for (const part of components(font.outline(glyphs[index]))) add2(part.glyph);
23148
+ const outlines = glyphs.map((glyph2) => {
23149
+ const source2 = font.outline(glyph2);
23150
+ if (!source2.length) return source2;
23151
+ const copy = Uint8Array.from(source2);
23152
+ const view2 = new DataView(copy.buffer);
23153
+ for (const part of components(copy)) view2.setUint16(part.offset, mapped.get(part.glyph) ?? 0);
23154
+ return copy;
23155
+ });
23156
+ const count = glyphs.length;
23157
+ let glyfLength = 0;
23158
+ for (const outline2 of outlines) glyfLength += pad4(outline2.length);
23159
+ const glyf = new Uint8Array(glyfLength);
23160
+ const loca = new Uint8Array((count + 1) * 4);
23161
+ const locaView = new DataView(loca.buffer);
23162
+ let cursor = 0;
23163
+ outlines.forEach((outline2, index) => {
23164
+ locaView.setUint32(index * 4, cursor);
23165
+ glyf.set(outline2, cursor);
23166
+ cursor += pad4(outline2.length);
23167
+ });
23168
+ locaView.setUint32(count * 4, cursor);
23169
+ const hmtx = new Uint8Array(count * 4);
23170
+ const hmtxView = new DataView(hmtx.buffer);
23171
+ glyphs.forEach((glyph2, index) => {
23172
+ hmtxView.setUint16(index * 4, font.advance(glyph2));
23173
+ hmtxView.setInt16(index * 4 + 2, font.bearing(glyph2));
23174
+ });
23175
+ const copyTable = (name) => {
23176
+ const entry3 = font.tables.get(name);
23177
+ return entry3 ? Uint8Array.from(font.data.subarray(entry3.offset, entry3.offset + entry3.length)) : void 0;
23178
+ };
23179
+ const head = copyTable("head");
23180
+ const hhea = copyTable("hhea");
23181
+ const maxp = copyTable("maxp");
23182
+ new DataView(head.buffer).setUint32(8, 0);
23183
+ new DataView(head.buffer).setInt16(50, 1);
23184
+ new DataView(hhea.buffer).setUint16(34, count);
23185
+ new DataView(maxp.buffer).setUint16(4, count);
23186
+ const tables = [];
23187
+ for (const [name, bytes] of [
23188
+ ["glyf", glyf],
23189
+ ["head", head],
23190
+ ["hhea", hhea],
23191
+ ["hmtx", hmtx],
23192
+ ["loca", loca],
23193
+ ["maxp", maxp]
23194
+ ])
23195
+ if (bytes) tables.push([name, bytes]);
23196
+ const directory = 12 + tables.length * 16;
23197
+ let total = directory;
23198
+ for (const [, bytes] of tables) total += pad4(bytes.length);
23199
+ const out = new Uint8Array(total);
23200
+ const view = new DataView(out.buffer);
23201
+ view.setUint32(0, 65536);
23202
+ view.setUint16(4, tables.length);
23203
+ const power = 2 ** Math.floor(Math.log2(tables.length));
23204
+ view.setUint16(6, power * 16);
23205
+ view.setUint16(8, Math.log2(power));
23206
+ view.setUint16(10, tables.length * 16 - power * 16);
23207
+ let position = directory;
23208
+ let headAt = 0;
23209
+ tables.forEach(([name, bytes], index) => {
23210
+ const entry3 = 12 + index * 16;
23211
+ for (let i2 = 0; i2 < 4; i2++) out[entry3 + i2] = name.charCodeAt(i2);
23212
+ view.setUint32(entry3 + 4, checksum(bytes));
23213
+ view.setUint32(entry3 + 8, position);
23214
+ view.setUint32(entry3 + 12, bytes.length);
23215
+ out.set(bytes, position);
23216
+ if (name === "head") headAt = position;
23217
+ position += pad4(bytes.length);
23218
+ });
23219
+ view.setUint32(headAt + 8, 2981146554 - checksum(out) >>> 0);
23220
+ return { data: out, glyphs };
23221
+ }
23222
+
22981
23223
  // i18n/index.ts
22982
23224
  var i18n_exports = {};
22983
23225
  __export(i18n_exports, {
@@ -23000,7 +23242,7 @@ function normalizeLocale(input, supported, fallback, options2 = {}) {
23000
23242
  const parts = (input ?? "").trim().toLowerCase().split(/[-_]/).filter(Boolean);
23001
23243
  const language = parts[0];
23002
23244
  if (!language) return fallback;
23003
- const find = (tag) => supported.find((item2) => item2.toLowerCase() === tag);
23245
+ const find = (tag2) => supported.find((item2) => item2.toLowerCase() === tag2);
23004
23246
  const exact = find(parts.join("-"));
23005
23247
  if (exact) return exact;
23006
23248
  const base = find(language);
@@ -24052,8 +24294,8 @@ function parseOrderedXml(xml) {
24052
24294
  while (cursor < end && isNameChar2(xml[cursor])) {
24053
24295
  cursor++;
24054
24296
  }
24055
- const tag = xml.slice(nameStart, cursor);
24056
- if (!tag) {
24297
+ const tag2 = xml.slice(nameStart, cursor);
24298
+ if (!tag2) {
24057
24299
  i2 = next;
24058
24300
  continue;
24059
24301
  }
@@ -24066,7 +24308,7 @@ function parseOrderedXml(xml) {
24066
24308
  }
24067
24309
  const selfClosing = xml[end - 1] === "/";
24068
24310
  const element4 = {
24069
- name: localName(tag),
24311
+ name: localName(tag2),
24070
24312
  attrs: parseAttributes(xml.slice(cursor, selfClosing ? end - 1 : end)),
24071
24313
  children: []
24072
24314
  };
@@ -48849,7 +49091,8 @@ __export(opc_exports, {
48849
49091
  titleGroups: () => titleGroups,
48850
49092
  writeAppProperties: () => writeAppProperties,
48851
49093
  writeCoreProperties: () => writeCoreProperties,
48852
- writeCustomProperties: () => writeCustomProperties
49094
+ writeCustomProperties: () => writeCustomProperties,
49095
+ zlibCompress: () => zlibCompress
48853
49096
  });
48854
49097
 
48855
49098
  // opc/relationship-types.ts
@@ -48951,16 +49194,16 @@ var CONTENT_TYPES_PATH = "[Content_Types].xml";
48951
49194
  var XML_DECLARATION = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
48952
49195
  var EMPTY_TYPES = `${XML_DECLARATION}<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"></Types>`;
48953
49196
  var EMPTY_RELS = `${XML_DECLARATION}<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"></Relationships>`;
48954
- function attr2(tag, name) {
49197
+ function attr2(tag2, name) {
48955
49198
  const escaped = name.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
48956
- const match = new RegExp(`(?<=[\\s<])${escaped}\\s*=\\s*(?:"([^"]*)"|'([^']*)')`).exec(tag);
49199
+ const match = new RegExp(`(?<=[\\s<])${escaped}\\s*=\\s*(?:"([^"]*)"|'([^']*)')`).exec(tag2);
48957
49200
  return match ? match[1] ?? match[2] : void 0;
48958
49201
  }
48959
49202
  async function ensureContentTypeOverride(zip, partName, contentType) {
48960
49203
  const xml = await zip.file(CONTENT_TYPES_PATH)?.async("string") ?? EMPTY_TYPES;
48961
49204
  const target = `/${partName}`;
48962
- for (const tag of xml.match(/<Override\b[^>]*\/>/g) ?? [])
48963
- if (attr2(tag, "PartName") === target) return;
49205
+ for (const tag2 of xml.match(/<Override\b[^>]*\/>/g) ?? [])
49206
+ if (attr2(tag2, "PartName") === target) return;
48964
49207
  const insertion = `<Override PartName="${target}" ContentType="${contentType}"/>`;
48965
49208
  zip.file(CONTENT_TYPES_PATH, xml.replace("</Types>", `${insertion}</Types>`));
48966
49209
  }
@@ -48968,18 +49211,18 @@ async function removeContentTypeOverride(zip, partName) {
48968
49211
  const xml = await zip.file(CONTENT_TYPES_PATH)?.async("string");
48969
49212
  if (!xml) return;
48970
49213
  const target = `/${partName}`;
48971
- const tag = (xml.match(/<Override\b[^>]*\/>/g) ?? []).find(
49214
+ const tag2 = (xml.match(/<Override\b[^>]*\/>/g) ?? []).find(
48972
49215
  (candidate) => attr2(candidate, "PartName") === target
48973
49216
  );
48974
- if (tag) zip.file(CONTENT_TYPES_PATH, xml.replace(tag, ""));
49217
+ if (tag2) zip.file(CONTENT_TYPES_PATH, xml.replace(tag2, ""));
48975
49218
  }
48976
49219
  async function ensureRelationship(zip, relsPath, type, target) {
48977
49220
  const xml = await zip.file(relsPath)?.async("string") ?? EMPTY_RELS;
48978
49221
  const used = /* @__PURE__ */ new Set();
48979
- for (const tag of xml.match(/<Relationship\b[^>]*\/>/g) ?? []) {
48980
- const id2 = attr2(tag, "Id");
49222
+ for (const tag2 of xml.match(/<Relationship\b[^>]*\/>/g) ?? []) {
49223
+ const id2 = attr2(tag2, "Id");
48981
49224
  if (id2) used.add(id2);
48982
- if (id2 && attr2(tag, "Type") === type && attr2(tag, "Target") === target) return id2;
49225
+ if (id2 && attr2(tag2, "Type") === type && attr2(tag2, "Target") === target) return id2;
48983
49226
  }
48984
49227
  const highest = Math.max(
48985
49228
  0,
@@ -48993,8 +49236,8 @@ async function ensureRelationship(zip, relsPath, type, target) {
48993
49236
  }
48994
49237
  async function findOfficeDocumentPart(zip) {
48995
49238
  const xml = await zip.file("_rels/.rels")?.async("string");
48996
- for (const tag of xml?.match(/<Relationship\b[^>]*\/>/g) ?? [])
48997
- if (attr2(tag, "Type") === RELATIONSHIP_TYPES.officeDocument) return attr2(tag, "Target");
49239
+ for (const tag2 of xml?.match(/<Relationship\b[^>]*\/>/g) ?? [])
49240
+ if (attr2(tag2, "Type") === RELATIONSHIP_TYPES.officeDocument) return attr2(tag2, "Target");
48998
49241
  return void 0;
48999
49242
  }
49000
49243
 
@@ -50024,6 +50267,9 @@ function computeVerificationStatus(details) {
50024
50267
  const allVerified = details.every((detail) => detail.status === "verified");
50025
50268
  return hasInvalidSignature ? "signature-invalid" : hasRevoked ? "certificate-revoked" : hasTimestampInvalid ? "timestamp-invalid" : hasTimestampUntrusted ? "timestamp-untrusted" : hasMissing ? "reference-missing" : hasMismatch ? "digest-mismatch" : allVerified ? "verified-trusted" : hasUntrusted ? "verified-untrusted" : "present-not-verified";
50026
50269
  }
50270
+ function zlibCompress(data) {
50271
+ return fflate.zlibSync(data);
50272
+ }
50027
50273
 
50028
50274
  // diagram/picture-layout.ts
50029
50275
  var DIAGRAM_PICTURE_SOURCE_NS = "urn:ooxml-core:diagram-picture-sources:1";
@@ -50274,26 +50520,26 @@ function diagramLayoutData(input) {
50274
50520
  const branch = first(vars, "hierBranch", NS.dgm)?.getAttribute("val");
50275
50521
  if (branch === "std" || branch === "init" || branch === "l" || branch === "r" || branch === "hang")
50276
50522
  values.hierarchyBranch = branch;
50277
- for (const [tag, key] of [
50523
+ for (const [tag2, key] of [
50278
50524
  ["chMax", "childMax"],
50279
50525
  ["chPref", "childPreferred"]
50280
50526
  ]) {
50281
- const raw2 = first(vars, tag, NS.dgm)?.getAttribute("val");
50527
+ const raw2 = first(vars, tag2, NS.dgm)?.getAttribute("val");
50282
50528
  if (raw2 && Number.isFinite(Number(raw2))) values[key] = Number(raw2);
50283
50529
  }
50284
- for (const [tag, key] of [
50530
+ for (const [tag2, key] of [
50285
50531
  ["orgChart", "orgChart"],
50286
50532
  ["bulletEnabled", "bulletEnabled"]
50287
50533
  ]) {
50288
- const raw2 = first(vars, tag, NS.dgm)?.getAttribute("val");
50534
+ const raw2 = first(vars, tag2, NS.dgm)?.getAttribute("val");
50289
50535
  if (raw2) values[key] = raw2 === "1" || raw2 === "true";
50290
50536
  }
50291
- for (const [tag, key] of [
50537
+ for (const [tag2, key] of [
50292
50538
  ["animLvl", "animationLevel"],
50293
50539
  ["animOne", "animateOne"],
50294
50540
  ["resizeHandles", "resizeHandles"]
50295
50541
  ]) {
50296
- const raw2 = first(vars, tag, NS.dgm)?.getAttribute("val");
50542
+ const raw2 = first(vars, tag2, NS.dgm)?.getAttribute("val");
50297
50543
  if (raw2) values[key] = raw2;
50298
50544
  }
50299
50545
  data.presLayoutVars = values;
@@ -51906,7 +52152,7 @@ var S = [
51906
52152
  131,
51907
52153
  20
51908
52154
  ];
51909
- function transform(state, checksum, block) {
52155
+ function transform(state, checksum2, block) {
51910
52156
  const x = new Uint8Array(48);
51911
52157
  x.set(state, 0);
51912
52158
  x.set(block, 16);
@@ -51922,10 +52168,10 @@ function transform(state, checksum, block) {
51922
52168
  t = t + round3 & 255;
51923
52169
  }
51924
52170
  state.set(x.subarray(0, 16));
51925
- t = checksum[15];
52171
+ t = checksum2[15];
51926
52172
  for (let k = 0; k < 16; k++) {
51927
- checksum[k] = checksum[k] ^ S[block[k] ^ t];
51928
- t = checksum[k];
52173
+ checksum2[k] = checksum2[k] ^ S[block[k] ^ t];
52174
+ t = checksum2[k];
51929
52175
  }
51930
52176
  }
51931
52177
  function md2(message) {
@@ -51934,11 +52180,11 @@ function md2(message) {
51934
52180
  padded2.set(message);
51935
52181
  padded2.fill(padLength, message.length);
51936
52182
  const state = new Uint8Array(16);
51937
- const checksum = new Uint8Array(16);
52183
+ const checksum2 = new Uint8Array(16);
51938
52184
  for (let offset = 0; offset < padded2.length; offset += 16) {
51939
- transform(state, checksum, padded2.subarray(offset, offset + 16));
52185
+ transform(state, checksum2, padded2.subarray(offset, offset + 16));
51940
52186
  }
51941
- transform(state, checksum, checksum.slice());
52187
+ transform(state, checksum2, checksum2.slice());
51942
52188
  return state;
51943
52189
  }
51944
52190
 
@@ -60309,7 +60555,7 @@ var GRAPH_LAYOUT_STYLES = [
60309
60555
  "compact-tree",
60310
60556
  "circular"
60311
60557
  ];
60312
- function components(graph) {
60558
+ function components2(graph) {
60313
60559
  const seen = /* @__PURE__ */ new Set();
60314
60560
  const connected = [];
60315
60561
  const isolated = [];
@@ -60542,7 +60788,7 @@ function layoutGraph(nodes, edges, style, options2 = {}) {
60542
60788
  graph.out.get(edge.from).push(edge.to);
60543
60789
  graph.into.get(edge.to).push(edge.from);
60544
60790
  }
60545
- const { connected, isolated } = components(graph);
60791
+ const { connected, isolated } = components2(graph);
60546
60792
  const horizontal = style === "flowchart-lr";
60547
60793
  const blocks = connected.map((ids) => {
60548
60794
  const forward = forwardEdges(ids, graph);
@@ -61046,12 +61292,12 @@ function tokenize2(latex) {
61046
61292
  function isGroupedByTag(tags) {
61047
61293
  const seen = /* @__PURE__ */ new Set();
61048
61294
  let previous = "";
61049
- for (const tag of tags) {
61050
- if (tag !== previous && seen.has(tag)) {
61295
+ for (const tag2 of tags) {
61296
+ if (tag2 !== previous && seen.has(tag2)) {
61051
61297
  return false;
61052
61298
  }
61053
- seen.add(tag);
61054
- previous = tag;
61299
+ seen.add(tag2);
61300
+ previous = tag2;
61055
61301
  }
61056
61302
  return true;
61057
61303
  }
@@ -61643,11 +61889,11 @@ function parseGroupChr(ctx, chr, pos) {
61643
61889
  }
61644
61890
  return applyScripts(ctx, group2, args);
61645
61891
  }
61646
- function parseUnderOverset(ctx, tag) {
61892
+ function parseUnderOverset(ctx, tag2) {
61647
61893
  const lim = ctx.parseSingleOrGroup();
61648
61894
  const base = ctx.parseSingleOrGroup();
61649
61895
  const limit = { "m:e": ctx.wrapE(base), "m:lim": ctx.wrapE(lim) };
61650
- return tag === "m:limLow" ? { "m:limLow": limit } : { "m:limUpp": limit };
61896
+ return tag2 === "m:limLow" ? { "m:limLow": limit } : { "m:limUpp": limit };
61651
61897
  }
61652
61898
  function parseBoxed(ctx) {
61653
61899
  return { "m:borderBox": { "m:e": ctx.wrapE(ctx.parseSingleOrGroup()) } };
@@ -61865,8 +62111,8 @@ function contentKeys(node) {
61865
62111
  if (key.startsWith("@_") || key === "#text") {
61866
62112
  return false;
61867
62113
  }
61868
- const tag = stripXmlOrderSuffix(key);
61869
- return !tag.endsWith("Pr") && tag !== "m:t";
62114
+ const tag2 = stripXmlOrderSuffix(key);
62115
+ return !tag2.endsWith("Pr") && tag2 !== "m:t";
61870
62116
  });
61871
62117
  }
61872
62118
  function soleChild(container) {
@@ -61936,12 +62182,12 @@ function collectText(node) {
61936
62182
  if (key.startsWith("@_")) {
61937
62183
  continue;
61938
62184
  }
61939
- const tag = stripXmlOrderSuffix(key);
61940
- if (tag === "m:t") {
62185
+ const tag2 = stripXmlOrderSuffix(key);
62186
+ if (tag2 === "m:t") {
61941
62187
  out += escapeMathText(readRunText(record));
61942
- } else if (tag === "#text") {
62188
+ } else if (tag2 === "#text") {
61943
62189
  out += escapeMathText(String(value));
61944
- } else if (!tag.endsWith("Pr")) {
62190
+ } else if (!tag2.endsWith("Pr")) {
61945
62191
  out += collectText(value);
61946
62192
  }
61947
62193
  }
@@ -62034,9 +62280,9 @@ function childrenToLatex(node) {
62034
62280
  }
62035
62281
  const parts = [];
62036
62282
  for (const key of contentKeys(node)) {
62037
- const tag = stripXmlOrderSuffix(key);
62283
+ const tag2 = stripXmlOrderSuffix(key);
62038
62284
  for (const item2 of ensureArr(node[key])) {
62039
- parts.push(elementToLatex(tag, item2));
62285
+ parts.push(elementToLatex(tag2, item2));
62040
62286
  }
62041
62287
  }
62042
62288
  return parts.join("");
@@ -62122,16 +62368,16 @@ function groupChrToLatex(node, label = "") {
62122
62368
  const wrapped = `\\${top ? "overset" : "underset"}{${escapeMathText(chr)}}{${base}}`;
62123
62369
  return label ? `\\${top ? "overset" : "underset"}{${label}}{${wrapped}}` : wrapped;
62124
62370
  }
62125
- function limitToLatex(node, tag) {
62371
+ function limitToLatex(node, tag2) {
62126
62372
  const lim = arg(node, "m:lim");
62127
62373
  const sole = soleChild(childNode(node, "m:e"));
62128
62374
  if (sole?.tag === "m:groupChr") {
62129
62375
  const top = attrVal(childNode(childNode(sole.node, "m:groupChrPr"), "m:pos")) === "top";
62130
- if (top === (tag === "m:limUpp")) {
62376
+ if (top === (tag2 === "m:limUpp")) {
62131
62377
  return groupChrToLatex(sole.node, lim);
62132
62378
  }
62133
62379
  }
62134
- return `\\${tag === "m:limLow" ? "underset" : "overset"}{${lim}}{${arg(node, "m:e")}}`;
62380
+ return `\\${tag2 === "m:limLow" ? "underset" : "overset"}{${lim}}{${arg(node, "m:e")}}`;
62135
62381
  }
62136
62382
  function phantomToLatex(node) {
62137
62383
  const phantPr = childNode(node, "m:phantPr");
@@ -62144,8 +62390,8 @@ function phantomToLatex(node) {
62144
62390
  }
62145
62391
  return `\\phantom{${base}}`;
62146
62392
  }
62147
- function elementToLatex(tag, node) {
62148
- switch (tag) {
62393
+ function elementToLatex(tag2, node) {
62394
+ switch (tag2) {
62149
62395
  case "m:r":
62150
62396
  return runToLatex(node);
62151
62397
  case "m:f":
@@ -62176,7 +62422,7 @@ function elementToLatex(tag, node) {
62176
62422
  return `\\${attrVal(childNode(childNode(node, "m:barPr"), "m:pos")) === "bot" ? "underline" : "overline"}{${arg(node, "m:e")}}`;
62177
62423
  case "m:limLow":
62178
62424
  case "m:limUpp":
62179
- return limitToLatex(node, tag);
62425
+ return limitToLatex(node, tag2);
62180
62426
  case "m:groupChr":
62181
62427
  return groupChrToLatex(node);
62182
62428
  case "m:borderBox":
@@ -62581,26 +62827,26 @@ var DELIM_END_MAP = {
62581
62827
  // math/omml-to-xml.ts
62582
62828
  var OMML_NAMESPACE = "http://schemas.openxmlformats.org/officeDocument/2006/math";
62583
62829
  var escapeAttribute2 = (value) => escapeXml(value).replace(/"/g, "&quot;");
62584
- function element3(tag, value) {
62830
+ function element3(tag2, value) {
62585
62831
  if (value === void 0 || value === null) return "";
62586
- if (Array.isArray(value)) return value.map((item2) => element3(tag, item2)).join("");
62832
+ if (Array.isArray(value)) return value.map((item2) => element3(tag2, item2)).join("");
62587
62833
  if (typeof value !== "object") {
62588
62834
  const text3 = String(value);
62589
- const space3 = tag === "m:t" && /^\s|\s$/.test(text3) ? ' xml:space="preserve"' : "";
62590
- return `<${tag}${space3}>${escapeXml(text3)}</${tag}>`;
62835
+ const space3 = tag2 === "m:t" && /^\s|\s$/.test(text3) ? ' xml:space="preserve"' : "";
62836
+ return `<${tag2}${space3}>${escapeXml(text3)}</${tag2}>`;
62591
62837
  }
62592
62838
  const node = value;
62593
62839
  let attributes2 = "";
62594
62840
  let content2 = "";
62595
62841
  for (const key of Object.keys(node)) {
62596
62842
  if (key.startsWith("@_")) {
62597
- attributes2 += ` ${tag === "m:t" ? "" : "m:"}${key.slice(2)}="${escapeAttribute2(String(node[key]))}"`;
62843
+ attributes2 += ` ${tag2 === "m:t" ? "" : "m:"}${key.slice(2)}="${escapeAttribute2(String(node[key]))}"`;
62598
62844
  } else if (key === "#text") {
62599
62845
  content2 += escapeXml(String(node[key]));
62600
62846
  } else content2 += element3(stripXmlOrderSuffix(key), node[key]);
62601
62847
  }
62602
- if (tag === "m:t" && /^\s|\s$/.test(content2) && !attributes2) attributes2 = ' xml:space="preserve"';
62603
- return content2 ? `<${tag}${attributes2}>${content2}</${tag}>` : `<${tag}${attributes2}/>`;
62848
+ if (tag2 === "m:t" && /^\s|\s$/.test(content2) && !attributes2) attributes2 = ' xml:space="preserve"';
62849
+ return content2 ? `<${tag2}${attributes2}>${content2}</${tag2}>` : `<${tag2}${attributes2}/>`;
62604
62850
  }
62605
62851
  function ommlToXml(tree) {
62606
62852
  const markup = Object.keys(tree).map((key) => element3(stripXmlOrderSuffix(key), tree[key])).join("");
@@ -62910,10 +63156,10 @@ function radical(node, style, ctx) {
62910
63156
  if (degree) box.prims.push(...shifted(degree.prims, 0, top + height * 0.35 - degree.descent));
62911
63157
  return box;
62912
63158
  }
62913
- function layoutStructure(tag, node, style, ctx) {
63159
+ function layoutStructure(tag2, node, style, ctx) {
62914
63160
  const arg2 = (name, next = style) => ctx.layout(child5(node, name), next);
62915
63161
  const small = () => ctx.script(style);
62916
- switch (tag) {
63162
+ switch (tag2) {
62917
63163
  case "m:f":
62918
63164
  return fraction(node, style, ctx);
62919
63165
  case "m:rad":
@@ -63081,20 +63327,20 @@ function layoutChildren(node, style) {
63081
63327
  let last = "";
63082
63328
  for (const key of Object.keys(node)) {
63083
63329
  if (key.startsWith("@_") || key === "#text") continue;
63084
- const tag = stripXmlOrderSuffix(key);
63330
+ const tag2 = stripXmlOrderSuffix(key);
63085
63331
  for (const item2 of ensureArray(node[key])) {
63086
63332
  const atStart = boxes.length === 0 || last !== "" && isUnaryContext(last);
63087
- boxes.push(layoutElement(tag, item2, style, atStart));
63088
- last = tag === "m:r" ? lastCharOf(item2) : "";
63333
+ boxes.push(layoutElement(tag2, item2, style, atStart));
63334
+ last = tag2 === "m:r" ? lastCharOf(item2) : "";
63089
63335
  }
63090
63336
  }
63091
63337
  return row(boxes);
63092
63338
  }
63093
- function layoutElement(tag, node, style, atStart) {
63094
- if (tag === "m:r") return layoutRun(node, style, atStart);
63095
- if (tag === "m:oMath" || tag === "m:oMathPara") return layoutChildren(node, style);
63096
- if (/Pr$/.test(tag) || tag === "m:ctrlPr") return emptyBox();
63097
- return layoutStructure(tag, node, style, { layout: layoutChildren, script: scriptStyle });
63339
+ function layoutElement(tag2, node, style, atStart) {
63340
+ if (tag2 === "m:r") return layoutRun(node, style, atStart);
63341
+ if (tag2 === "m:oMath" || tag2 === "m:oMathPara") return layoutChildren(node, style);
63342
+ if (/Pr$/.test(tag2) || tag2 === "m:ctrlPr") return emptyBox();
63343
+ return layoutStructure(tag2, node, style, { layout: layoutChildren, script: scriptStyle });
63098
63344
  }
63099
63345
  function layoutEquation(root, sizePx, options2 = {}) {
63100
63346
  const box = layoutChildren(root, { level: 0, size: sizePx, display: Boolean(options2.display) });
@@ -63440,13 +63686,13 @@ function convertChildren(node) {
63440
63686
  if (key.startsWith("@_")) {
63441
63687
  continue;
63442
63688
  }
63443
- const tag = stripXmlOrderSuffix(key);
63444
- if (tag === "m:oMathPara") {
63689
+ const tag2 = stripXmlOrderSuffix(key);
63690
+ if (tag2 === "m:oMathPara") {
63445
63691
  continue;
63446
63692
  }
63447
63693
  const items = ensureArray(node[key]);
63448
63694
  for (const item2 of items) {
63449
- const result = convertElement(tag, item2);
63695
+ const result = convertElement(tag2, item2);
63450
63696
  if (result) {
63451
63697
  parts.push(result);
63452
63698
  }
@@ -63454,8 +63700,8 @@ function convertChildren(node) {
63454
63700
  }
63455
63701
  return parts.join("");
63456
63702
  }
63457
- function convertElement(tag, node) {
63458
- switch (tag) {
63703
+ function convertElement(tag2, node) {
63704
+ switch (tag2) {
63459
63705
  case "m:r":
63460
63706
  return convertRun(node);
63461
63707
  case "m:f":