ooxml-core 1.50.2 → 1.51.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 (366) hide show
  1. package/README.md +11 -0
  2. package/dist/{PptxHandler-PVQW47CY.mjs → PptxHandler-6GRVJRHP.mjs} +2 -2
  3. package/dist/PptxHandler-E6QYPF7X.mjs +8 -0
  4. package/dist/PptxHandler-UNQVCIGM.cjs +17 -0
  5. package/dist/PresentationBuilder-DVDJSV5R.mjs +8 -0
  6. package/dist/PresentationBuilder-F5UWRF6H.cjs +25 -0
  7. package/dist/{PresentationBuilder-ZOOVSBPR.mjs → PresentationBuilder-T6YKWPF7.mjs} +2 -2
  8. package/dist/automation/index.cjs +5806 -4494
  9. package/dist/automation/index.mjs +5806 -4494
  10. package/dist/chunk-25IJEN7R.cjs +36 -0
  11. package/dist/chunk-25JN3ZQM.mjs +58 -0
  12. package/dist/{chunk-7XYVFUB3.cjs → chunk-2IO523MM.cjs} +1 -0
  13. package/dist/{chunk-53KMIHYN.mjs → chunk-4LUZHBTT.mjs} +83 -31
  14. package/dist/chunk-554UZLPS.mjs +237 -0
  15. package/dist/{chunk-VLKUMQGT.mjs → chunk-63RAF3TS.mjs} +1 -1
  16. package/dist/{chunk-7UM5IFPR.mjs → chunk-6IUYKP77.mjs} +1 -1
  17. package/dist/{chunk-VK2G4BGX.mjs → chunk-BIMV5FVL.mjs} +481 -193
  18. package/dist/{chunk-CODMW5KF.cjs → chunk-CVUMILG3.cjs} +1 -0
  19. package/dist/{chunk-NBMXEVHL.mjs → chunk-FX6WL42B.mjs} +1 -0
  20. package/dist/chunk-GI4Y6BBX.mjs +21 -0
  21. package/dist/{chunk-MX2GFMZS.mjs → chunk-GZL4ERW3.mjs} +1 -1
  22. package/dist/chunk-HWL2AGLD.cjs +98 -0
  23. package/dist/chunk-HZAB3YDO.cjs +234 -0
  24. package/dist/chunk-IDATIFCG.mjs +226 -0
  25. package/dist/chunk-LO55N7VL.cjs +247 -0
  26. package/dist/{chunk-FFLU4LUQ.cjs → chunk-LUBPW5NP.cjs} +1629 -1609
  27. package/dist/chunk-MUNEIE2J.cjs +62 -0
  28. package/dist/{chunk-ZCKEKP7N.mjs → chunk-RYUADJV6.mjs} +4 -4
  29. package/dist/chunk-TOBK5FC4.mjs +88 -0
  30. package/dist/chunk-UV4LMGVZ.mjs +31 -0
  31. package/dist/{chunk-O3YGBYGZ.mjs → chunk-VRVHM6TJ.mjs} +1 -0
  32. package/dist/chunk-W7LVJC32.cjs +25 -0
  33. package/dist/chunk-WAZ7T2BL.cjs +169 -0
  34. package/dist/{chunk-3OKY56UM.mjs → chunk-YX33WEKS.mjs} +411 -391
  35. package/dist/docx/auto-number-fields.d.ts +22 -0
  36. package/dist/docx/auto-number-fields.d.ts.map +1 -0
  37. package/dist/docx/block-parser.d.ts.map +1 -1
  38. package/dist/docx/character-styles.d.ts.map +1 -1
  39. package/dist/docx/clipboard/css.d.ts +21 -0
  40. package/dist/docx/clipboard/css.d.ts.map +1 -0
  41. package/dist/docx/clipboard/html-tokens.d.ts +38 -0
  42. package/dist/docx/clipboard/html-tokens.d.ts.map +1 -0
  43. package/dist/docx/clipboard/index.d.ts +6 -0
  44. package/dist/docx/clipboard/index.d.ts.map +1 -0
  45. package/dist/docx/clipboard/word-fields.d.ts +13 -0
  46. package/dist/docx/clipboard/word-fields.d.ts.map +1 -0
  47. package/dist/docx/clipboard/word-fragment.d.ts +14 -0
  48. package/dist/docx/clipboard/word-fragment.d.ts.map +1 -0
  49. package/dist/docx/clipboard/word-html.d.ts +22 -0
  50. package/dist/docx/clipboard/word-html.d.ts.map +1 -0
  51. package/dist/docx/clipboard/word-list-scan.d.ts +25 -0
  52. package/dist/docx/clipboard/word-list-scan.d.ts.map +1 -0
  53. package/dist/docx/clipboard/word-lists.d.ts +13 -0
  54. package/dist/docx/clipboard/word-lists.d.ts.map +1 -0
  55. package/dist/docx/clipboard/word-runs.d.ts +18 -0
  56. package/dist/docx/clipboard/word-runs.d.ts.map +1 -0
  57. package/dist/docx/clipboard/word-styles.d.ts +35 -0
  58. package/dist/docx/clipboard/word-styles.d.ts.map +1 -0
  59. package/dist/docx/compare/build.d.ts +48 -0
  60. package/dist/docx/compare/build.d.ts.map +1 -0
  61. package/dist/docx/compare/compare.d.ts +18 -0
  62. package/dist/docx/compare/compare.d.ts.map +1 -0
  63. package/dist/docx/compare/context.d.ts +42 -0
  64. package/dist/docx/compare/context.d.ts.map +1 -0
  65. package/dist/docx/compare/diff.d.ts +20 -0
  66. package/dist/docx/compare/diff.d.ts.map +1 -0
  67. package/dist/docx/compare/index.d.ts +4 -0
  68. package/dist/docx/compare/index.d.ts.map +1 -0
  69. package/dist/docx/compare/slide.d.ts +9 -0
  70. package/dist/docx/compare/slide.d.ts.map +1 -0
  71. package/dist/docx/compare/spans.d.ts +13 -0
  72. package/dist/docx/compare/spans.d.ts.map +1 -0
  73. package/dist/docx/compare/story.d.ts +7 -0
  74. package/dist/docx/compare/story.d.ts.map +1 -0
  75. package/dist/docx/compare/table.d.ts +23 -0
  76. package/dist/docx/compare/table.d.ts.map +1 -0
  77. package/dist/docx/compare/tokens.d.ts +50 -0
  78. package/dist/docx/compare/tokens.d.ts.map +1 -0
  79. package/dist/docx/compare/types.d.ts +51 -0
  80. package/dist/docx/compare/types.d.ts.map +1 -0
  81. package/dist/docx/compatibility.d.ts +46 -0
  82. package/dist/docx/compatibility.d.ts.map +1 -0
  83. package/dist/docx/computed-fields.d.ts +39 -0
  84. package/dist/docx/computed-fields.d.ts.map +1 -0
  85. package/dist/docx/doc-property-field.d.ts +17 -0
  86. package/dist/docx/doc-property-field.d.ts.map +1 -0
  87. package/dist/docx/document-parts.d.ts +2 -0
  88. package/dist/docx/document-parts.d.ts.map +1 -1
  89. package/dist/docx/drawing-wrap.d.ts +21 -0
  90. package/dist/docx/drawing-wrap.d.ts.map +1 -0
  91. package/dist/docx/drawing.d.ts.map +1 -1
  92. package/dist/docx/embedded.cjs +3965 -2313
  93. package/dist/docx/embedded.mjs +3965 -2313
  94. package/dist/docx/field-format.d.ts +45 -0
  95. package/dist/docx/field-format.d.ts.map +1 -0
  96. package/dist/docx/field-result-spans.d.ts +62 -0
  97. package/dist/docx/field-result-spans.d.ts.map +1 -0
  98. package/dist/docx/field-runs.d.ts.map +1 -1
  99. package/dist/docx/field-stories.d.ts +9 -0
  100. package/dist/docx/field-stories.d.ts.map +1 -0
  101. package/dist/docx/find-stories.d.ts +27 -0
  102. package/dist/docx/find-stories.d.ts.map +1 -0
  103. package/dist/docx/highlight.d.ts +19 -0
  104. package/dist/docx/highlight.d.ts.map +1 -1
  105. package/dist/docx/hyperlink.d.ts +7 -0
  106. package/dist/docx/hyperlink.d.ts.map +1 -1
  107. package/dist/docx/index.cjs +7359 -3476
  108. package/dist/docx/index.d.ts +13 -1
  109. package/dist/docx/index.d.ts.map +1 -1
  110. package/dist/docx/index.mjs +7327 -3476
  111. package/dist/docx/inline-model.d.ts +21 -0
  112. package/dist/docx/inline-model.d.ts.map +1 -1
  113. package/dist/docx/inline-slots.d.ts.map +1 -1
  114. package/dist/docx/inspect-document.d.ts +21 -0
  115. package/dist/docx/inspect-document.d.ts.map +1 -0
  116. package/dist/docx/kinsoku-settings.d.ts +9 -0
  117. package/dist/docx/kinsoku-settings.d.ts.map +1 -0
  118. package/dist/docx/layout/adapt-table-floating.d.ts +11 -0
  119. package/dist/docx/layout/adapt-table-floating.d.ts.map +1 -0
  120. package/dist/docx/layout/adapt-table.d.ts.map +1 -1
  121. package/dist/docx/layout/adapter.d.ts.map +1 -1
  122. package/dist/docx/layout/computed-field-runs.d.ts +8 -0
  123. package/dist/docx/layout/computed-field-runs.d.ts.map +1 -0
  124. package/dist/docx/layout/floats.d.ts +3 -1
  125. package/dist/docx/layout/floats.d.ts.map +1 -1
  126. package/dist/docx/layout/flow-floating-table.d.ts +13 -0
  127. package/dist/docx/layout/flow-floating-table.d.ts.map +1 -0
  128. package/dist/docx/layout/flow-table.d.ts +1 -1
  129. package/dist/docx/layout/flow-table.d.ts.map +1 -1
  130. package/dist/docx/layout/index.cjs +2280 -941
  131. package/dist/docx/layout/index.mjs +2276 -942
  132. package/dist/docx/layout/input.d.ts +50 -0
  133. package/dist/docx/layout/input.d.ts.map +1 -1
  134. package/dist/docx/layout/layout.d.ts.map +1 -1
  135. package/dist/docx/layout/page-cursor.d.ts.map +1 -1
  136. package/dist/docx/layout/page-flow.d.ts.map +1 -1
  137. package/dist/docx/layout/paragraph-layout.d.ts.map +1 -1
  138. package/dist/docx/layout/paragraph-tokens.d.ts +6 -0
  139. package/dist/docx/layout/paragraph-tokens.d.ts.map +1 -1
  140. package/dist/docx/layout/result.d.ts +12 -0
  141. package/dist/docx/layout/result.d.ts.map +1 -1
  142. package/dist/docx/layout/section-flow.d.ts.map +1 -1
  143. package/dist/docx/layout/table-autofit-distribute.d.ts +18 -0
  144. package/dist/docx/layout/table-autofit-distribute.d.ts.map +1 -0
  145. package/dist/docx/layout/table-autofit-measure.d.ts +15 -0
  146. package/dist/docx/layout/table-autofit-measure.d.ts.map +1 -0
  147. package/dist/docx/layout/table-autofit.d.ts +10 -0
  148. package/dist/docx/layout/table-autofit.d.ts.map +1 -0
  149. package/dist/docx/layout/table-cell-layout.d.ts.map +1 -1
  150. package/dist/docx/layout/text-breaks.d.ts +38 -13
  151. package/dist/docx/layout/text-breaks.d.ts.map +1 -1
  152. package/dist/docx/layout/wrap.d.ts +1 -1
  153. package/dist/docx/layout/wrap.d.ts.map +1 -1
  154. package/dist/docx/list-number-fields.d.ts +25 -0
  155. package/dist/docx/list-number-fields.d.ts.map +1 -0
  156. package/dist/docx/load/index.cjs +4355 -2703
  157. package/dist/docx/load/index.mjs +4355 -2703
  158. package/dist/docx/model-paragraph.d.ts +12 -1
  159. package/dist/docx/model-paragraph.d.ts.map +1 -1
  160. package/dist/docx/model.d.ts +26 -1
  161. package/dist/docx/model.d.ts.map +1 -1
  162. package/dist/docx/note-convert.d.ts +45 -0
  163. package/dist/docx/note-convert.d.ts.map +1 -0
  164. package/dist/docx/numbering-counters.d.ts +17 -0
  165. package/dist/docx/numbering-counters.d.ts.map +1 -0
  166. package/dist/docx/numbering-format.d.ts +11 -2
  167. package/dist/docx/numbering-format.d.ts.map +1 -1
  168. package/dist/docx/outline-numbering.d.ts +6 -0
  169. package/dist/docx/outline-numbering.d.ts.map +1 -0
  170. package/dist/docx/package-information-save.d.ts +9 -0
  171. package/dist/docx/package-information-save.d.ts.map +1 -0
  172. package/dist/docx/package-information.d.ts +43 -0
  173. package/dist/docx/package-information.d.ts.map +1 -0
  174. package/dist/docx/package-properties.d.ts +5 -0
  175. package/dist/docx/package-properties.d.ts.map +1 -0
  176. package/dist/docx/paragraph-styles.d.ts +2 -0
  177. package/dist/docx/paragraph-styles.d.ts.map +1 -1
  178. package/dist/docx/parse-revisions.d.ts +2 -0
  179. package/dist/docx/parse-revisions.d.ts.map +1 -1
  180. package/dist/docx/parse-table-floating.d.ts +5 -0
  181. package/dist/docx/parse-table-floating.d.ts.map +1 -0
  182. package/dist/docx/parse-table.d.ts.map +1 -1
  183. package/dist/docx/parse.d.ts.map +1 -1
  184. package/dist/docx/part-relationships.d.ts.map +1 -1
  185. package/dist/docx/personal-information.d.ts +18 -0
  186. package/dist/docx/personal-information.d.ts.map +1 -0
  187. package/dist/docx/picture-crop-edit.d.ts +18 -0
  188. package/dist/docx/picture-crop-edit.d.ts.map +1 -0
  189. package/dist/docx/picture-watermark.d.ts +29 -0
  190. package/dist/docx/picture-watermark.d.ts.map +1 -0
  191. package/dist/docx/relationship-allocator.d.ts.map +1 -1
  192. package/dist/docx/remove-document-information.d.ts +8 -0
  193. package/dist/docx/remove-document-information.d.ts.map +1 -0
  194. package/dist/docx/revision-commands.d.ts +6 -1
  195. package/dist/docx/revision-commands.d.ts.map +1 -1
  196. package/dist/docx/revision-ids.d.ts.map +1 -1
  197. package/dist/docx/run-language.d.ts +9 -0
  198. package/dist/docx/run-language.d.ts.map +1 -0
  199. package/dist/docx/run-properties-snapshot.d.ts +9 -0
  200. package/dist/docx/run-properties-snapshot.d.ts.map +1 -0
  201. package/dist/docx/run-style-model.d.ts +4 -0
  202. package/dist/docx/run-style-model.d.ts.map +1 -1
  203. package/dist/docx/save-modified.d.ts +2 -1
  204. package/dist/docx/save-modified.d.ts.map +1 -1
  205. package/dist/docx/save.d.ts.map +1 -1
  206. package/dist/docx/style-ref-fields.d.ts +1 -8
  207. package/dist/docx/style-ref-fields.d.ts.map +1 -1
  208. package/dist/docx/symbol-field.d.ts +21 -0
  209. package/dist/docx/symbol-field.d.ts.map +1 -0
  210. package/dist/docx/table-cell-write.d.ts.map +1 -1
  211. package/dist/docx/table-defaults.d.ts +2 -0
  212. package/dist/docx/table-defaults.d.ts.map +1 -1
  213. package/dist/docx/table-margins.d.ts +18 -0
  214. package/dist/docx/table-margins.d.ts.map +1 -0
  215. package/dist/docx/table-model.d.ts +23 -0
  216. package/dist/docx/table-model.d.ts.map +1 -1
  217. package/dist/docx/table-structure-check.d.ts.map +1 -1
  218. package/dist/docx/table-styles.d.ts.map +1 -1
  219. package/dist/docx/ui/index.cjs +787 -435
  220. package/dist/docx/ui/index.d.ts +1 -0
  221. package/dist/docx/ui/index.d.ts.map +1 -1
  222. package/dist/docx/ui/index.mjs +784 -436
  223. package/dist/docx/ui/inline-content-schema.d.ts.map +1 -1
  224. package/dist/docx/ui/paragraph-attributes.d.ts +6 -0
  225. package/dist/docx/ui/paragraph-attributes.d.ts.map +1 -1
  226. package/dist/docx/ui/ribbon-action-ids.d.ts +1 -1
  227. package/dist/docx/ui/ribbon-action-ids.d.ts.map +1 -1
  228. package/dist/docx/ui/ribbon-legacy-labels.d.ts +1 -1
  229. package/dist/docx/ui/ribbon-legacy-labels.d.ts.map +1 -1
  230. package/dist/docx/ui/run-adapter.d.ts.map +1 -1
  231. package/dist/docx/ui/schema-marks.d.ts +2 -19
  232. package/dist/docx/ui/schema-marks.d.ts.map +1 -1
  233. package/dist/docx/ui/track-run-formatting.d.ts.map +1 -1
  234. package/dist/docx/ui/yjs-document-attributes.d.ts +5 -0
  235. package/dist/docx/ui/yjs-document-attributes.d.ts.map +1 -1
  236. package/dist/docx/write-drawing-wrap.d.ts +22 -0
  237. package/dist/docx/write-drawing-wrap.d.ts.map +1 -0
  238. package/dist/docx/write-drawing.d.ts.map +1 -1
  239. package/dist/docx/write-revisions.d.ts +3 -1
  240. package/dist/docx/write-revisions.d.ts.map +1 -1
  241. package/dist/docx/write-shape.d.ts.map +1 -1
  242. package/dist/docx/write-table-properties.d.ts.map +1 -1
  243. package/dist/docx/write.d.ts.map +1 -1
  244. package/dist/drawingml/html-text-paste.d.ts +28 -0
  245. package/dist/drawingml/html-text-paste.d.ts.map +1 -0
  246. package/dist/drawingml/html-text-style.d.ts +18 -0
  247. package/dist/drawingml/html-text-style.d.ts.map +1 -0
  248. package/dist/drawingml/index.cjs +762 -0
  249. package/dist/drawingml/index.d.ts +1 -0
  250. package/dist/drawingml/index.d.ts.map +1 -1
  251. package/dist/drawingml/index.mjs +760 -1
  252. package/dist/index.cjs +1237 -285
  253. package/dist/index.mjs +1237 -285
  254. package/dist/pptx/automation/index.cjs +561 -180
  255. package/dist/pptx/automation/index.d.ts +4 -4
  256. package/dist/pptx/automation/index.mjs +6 -5
  257. package/dist/pptx/chunks/{index-BCy58n13.d.ts → index-8ZfPndYR.d.ts} +2 -2
  258. package/dist/pptx/chunks/{index-BCy58n13.d.ts.map → index-8ZfPndYR.d.ts.map} +1 -1
  259. package/dist/pptx/chunks/{index-OwiX5IVw.d.ts → index-DVhD9Kd5.d.ts} +4 -4
  260. package/dist/pptx/chunks/{index-OwiX5IVw.d.ts.map → index-DVhD9Kd5.d.ts.map} +1 -1
  261. package/dist/pptx/chunks/{index-oQHWAO7M.d.ts → index-DsUnUj-V.d.ts} +5 -5
  262. package/dist/pptx/chunks/{index-oQHWAO7M.d.ts.map → index-DsUnUj-V.d.ts.map} +1 -1
  263. package/dist/pptx/chunks/{index-AZN38e6S.d.ts → index-xB7MDLI7.d.ts} +4 -4
  264. package/dist/pptx/chunks/{index-AZN38e6S.d.ts.map → index-xB7MDLI7.d.ts.map} +1 -1
  265. package/dist/pptx/chunks/{presentation-DOaYIW-l.d.ts → presentation-BvnVkFPJ.d.ts} +26 -2
  266. package/dist/pptx/chunks/{presentation-DOaYIW-l.d.ts.map → presentation-BvnVkFPJ.d.ts.map} +1 -1
  267. package/dist/pptx/chunks/{text-operations-CYSXno9L.d.ts → text-operations-D7TCPhlv.d.ts} +2 -2
  268. package/dist/pptx/chunks/{text-operations-CYSXno9L.d.ts.map → text-operations-D7TCPhlv.d.ts.map} +1 -1
  269. package/dist/pptx/cli/index.cjs +504 -124
  270. package/dist/pptx/cli/index.d.ts +1 -1
  271. package/dist/pptx/cli/index.mjs +4 -4
  272. package/dist/pptx/converter/index.d.ts +1 -1
  273. package/dist/pptx/converter/index.mjs +2 -2
  274. package/dist/pptx/editor/render/custom-show-operations.cjs +2 -2
  275. package/dist/pptx/editor/render/custom-show-operations.mjs +1 -1
  276. package/dist/pptx/editor/render/find-replace.cjs +16 -15
  277. package/dist/pptx/editor/render/find-replace.d.ts +2 -2
  278. package/dist/pptx/editor/render/find-replace.mjs +3 -2
  279. package/dist/pptx/editor/render/font-family-update.d.ts +2 -2
  280. package/dist/pptx/editor/render/paragraph-geometry-overrides.d.ts +2 -2
  281. package/dist/pptx/editor/render/segments-text-edit.cjs +159 -0
  282. package/dist/pptx/editor/render/segments-text-edit.d.ts +26 -0
  283. package/dist/pptx/editor/render/segments-text-edit.d.ts.map +1 -0
  284. package/dist/pptx/editor/render/segments-text-edit.mjs +156 -0
  285. package/dist/pptx/editor/render/slide-operations.cjs +12 -9
  286. package/dist/pptx/editor/render/slide-operations.mjs +6 -3
  287. package/dist/pptx/editor/render/table-cell-edit.cjs +5 -5
  288. package/dist/pptx/editor/render/table-cell-edit.d.ts.map +1 -1
  289. package/dist/pptx/editor/render/table-cell-edit.mjs +1 -1
  290. package/dist/pptx/editor/render/table-cell-merge.cjs +3 -3
  291. package/dist/pptx/editor/render/table-cell-merge.mjs +1 -1
  292. package/dist/pptx/editor/render/table-cell-rich-text.cjs +41 -0
  293. package/dist/pptx/editor/render/table-cell-rich-text.d.ts +50 -0
  294. package/dist/pptx/editor/render/table-cell-rich-text.d.ts.map +1 -0
  295. package/dist/pptx/editor/render/table-cell-rich-text.mjs +8 -0
  296. package/dist/pptx/editor/render/table-cell-source.cjs +23 -0
  297. package/dist/pptx/editor/render/table-cell-source.d.ts +31 -0
  298. package/dist/pptx/editor/render/table-cell-source.d.ts.map +1 -0
  299. package/dist/pptx/editor/render/table-cell-source.mjs +6 -0
  300. package/dist/pptx/editor/render/table-cells-text-style.cjs +116 -0
  301. package/dist/pptx/editor/render/table-cells-text-style.d.ts +37 -0
  302. package/dist/pptx/editor/render/table-cells-text-style.d.ts.map +1 -0
  303. package/dist/pptx/editor/render/table-cells-text-style.mjs +113 -0
  304. package/dist/pptx/editor/render/table-data-grid-ops.cjs +40 -94
  305. package/dist/pptx/editor/render/table-data-grid-ops.mjs +3 -88
  306. package/dist/pptx/editor/render/table-grid-fill.cjs +30 -0
  307. package/dist/pptx/editor/render/table-grid-fill.d.ts +34 -0
  308. package/dist/pptx/editor/render/table-grid-fill.d.ts.map +1 -0
  309. package/dist/pptx/editor/render/table-grid-fill.mjs +28 -0
  310. package/dist/pptx/editor/render/table-layout.cjs +6 -6
  311. package/dist/pptx/editor/render/table-layout.d.ts +2 -2
  312. package/dist/pptx/editor/render/table-layout.d.ts.map +1 -1
  313. package/dist/pptx/editor/render/table-layout.mjs +1 -1
  314. package/dist/pptx/editor/render/table-merge.cjs +5 -5
  315. package/dist/pptx/editor/render/table-merge.mjs +1 -1
  316. package/dist/pptx/editor/render/text-content-style.d.ts +2 -2
  317. package/dist/pptx/editor/render/text-runs-style-patch.d.ts +2 -2
  318. package/dist/pptx/editor/render/text-style-scope.d.ts +2 -2
  319. package/dist/pptx/editor/render/update-text-segment-style.d.ts +2 -2
  320. package/dist/pptx/index.cjs +519 -201
  321. package/dist/pptx/index.d.ts +7 -7
  322. package/dist/pptx/index.mjs +5 -5
  323. package/dist/pptx/node/index.d.ts +1 -1
  324. package/dist/pptx/smartart-layouts/index.d.ts +2 -2
  325. package/dist/teams/index.cjs +35 -25
  326. package/dist/teams/index.mjs +35 -25
  327. package/dist/text/complex-breaks.d.ts +24 -0
  328. package/dist/text/complex-breaks.d.ts.map +1 -0
  329. package/dist/text/east-asian.d.ts +32 -0
  330. package/dist/text/east-asian.d.ts.map +1 -0
  331. package/dist/text/html-tokens.d.ts +45 -0
  332. package/dist/text/html-tokens.d.ts.map +1 -0
  333. package/dist/text/index.cjs +567 -96
  334. package/dist/text/index.d.ts +6 -0
  335. package/dist/text/index.d.ts.map +1 -1
  336. package/dist/text/index.mjs +544 -97
  337. package/dist/text/kinsoku.d.ts +55 -0
  338. package/dist/text/kinsoku.d.ts.map +1 -0
  339. package/dist/text/truetype/embedding.d.ts +42 -0
  340. package/dist/text/truetype/embedding.d.ts.map +1 -0
  341. package/dist/text/truetype/glyphless.d.ts +5 -0
  342. package/dist/text/truetype/glyphless.d.ts.map +1 -0
  343. package/dist/text/truetype/sfnt-write.d.ts +10 -0
  344. package/dist/text/truetype/sfnt-write.d.ts.map +1 -0
  345. package/dist/text/truetype/subset.d.ts.map +1 -1
  346. package/dist/text/windows-1252.d.ts +10 -0
  347. package/dist/text/windows-1252.d.ts.map +1 -0
  348. package/dist/xlsx/collab/index.cjs +10 -6
  349. package/dist/xlsx/collab/index.mjs +10 -6
  350. package/dist/xlsx/edit/clipboard-html-parse.d.ts +1 -0
  351. package/dist/xlsx/edit/clipboard-html-parse.d.ts.map +1 -1
  352. package/dist/xlsx/formula/functions/text-convert.d.ts.map +1 -1
  353. package/dist/xlsx/index.cjs +96 -51
  354. package/dist/xlsx/index.mjs +96 -51
  355. package/dist/xlsx/load/index.cjs +10 -6
  356. package/dist/xlsx/load/index.mjs +10 -6
  357. package/dist/xlsx/ui/index.cjs +97 -52
  358. package/dist/xlsx/ui/index.mjs +97 -52
  359. package/package.json +1 -1
  360. package/dist/PptxHandler-72NTA5ZY.cjs +0 -14
  361. package/dist/PptxHandler-O4IJ3TKZ.mjs +0 -5
  362. package/dist/PresentationBuilder-ORM22QGC.mjs +0 -5
  363. package/dist/PresentationBuilder-T2ETYT3L.cjs +0 -22
  364. package/dist/chunk-X4RL5AZ7.cjs +0 -120
  365. package/dist/{chunk-PRGXRAAU.mjs → chunk-4Y76EAKK.mjs} +131 -131
  366. package/dist/{chunk-EN3KSEW5.cjs → chunk-MMULWQOM.cjs} +131 -131
@@ -1,4 +1,4 @@
1
- import { NS, RELATIONSHIP_TYPES, SMART_ART_DEFINITION_PARTS, VML_SHAPE_TAGS, isAlternateContentChoiceXmlSupported, parseVmlElement, unwrapAlternateContent, xmlChild, xmlAttr, parseDrawingMediaReference, cropShapeForPresetGeometry, isHeaderFooterPlaceholder, xmlPath, inheritedPlaceholderFieldType, parseParagraphLevel, xmlHasChild, parseParagraphExtraAttributes, parseParagraphMargins, parseAlignmentAttr, parseParagraphRtl, parseTabStops, resolveParagraphAlignment, xmlText, parseBodyPrBooleanAttrs, selectAlternateContentBranch, parseBulletSizePercent, extractColorChoiceXml, formatAutoNumberMarker, readText3DValues, readScene3DValues, parseParagraphSpacingPx, createBuiltinVariables, resolveCoordinate, readPathListCommandOrder, parseStructuredCustomGeometry, parseAdjustmentValues, parseGuideDefinitions, evaluateGuides, evaluateGeometryPaths, inheritCustomGeometryCommandOrder, parseInkMlContent, parseModel3DScene, nextRelationshipId, remapElementShapeIds, normalizeCustomShowIds, mapCustomShowActions, parseShapeId, isTemplateElementId, remapShapeIdReferences, reapplyAlternateContentToTree, buildOle2, SHAPE_TREE_ELEMENT_TAGS, MAX_SHAPE_ID, parseRelationships, resolvePartPath, orderedXmlKey, safeResolveZipPath, parseDataUrlToBytes, base64Decode, EMU_PER_PX, reorderObjectKeys, encodeCompressedPng, zlibStore, hash, concatArrays, encodePasswordUtf16LE, COLOR_MAP_ALIAS_KEYS, DEFAULT_COLOR_MAP, uint32LE, LN_CHILD_ORDER, pptxActionToElementAction, buildClrMapOverrideXml, applyActiveXControlsToSlide, stageChartPartWithWorkbook, CHART_WORKBOOK_CONTENT_TYPE, BLIP_FILL_ORDER, SP_PR_ORDER, ensureXmlChild, hasShapeProperties, hasTextProperties, inkElementToStrokes, buildInkMlContent, ensureXmlChildOrCreate, isXmlNode, applyChartLayouts, stripXmlOrderSuffix, ooxmlGradientAngleToCssDegrees, serializeTabStop, newChartWorkbookLayout, DEFAULT_CHART_SHEET_NAME, writeChartSpace, chartIssuesLostOnWrite, parseChartSpace, joinChartGroups, createChartExSpace, setChartExDataLabelsVisible, writeChartExSpace, readCommentMentions, rebaseCommentMentions, applyCommentMentions, colorsEqual, generateFontGuid, NEUTRAL_CHART_TYPE_TARGETS, planNeutralChartType, newChartSpace, setChartSeriesSecondaryAxis, editChartSpace, chartModelLabelPositions, setChartExLayout, setChartExSeriesFill, setChartExWaterfall, setChartExBinning, setChartExParentLabelLayout, setChartExBoxWhisker, applyBubbleChartOptions, applyChartUpDownBars, applyDataLabelsRangeToDLbls, applyChartAxisScaling, applyChartAxisLabelFormatting, upsertChartAxisChild, applyChartDateAxisUnits, applyChartAxisDisplayUnitsToXml, writeChartShapeProps, resolveTxPrDefRPr, buildDefRPrTextProperties, buildChartGradFillXml, drawingFillXml, removeChartSeries, chartSeriesEntries, moveChartSeries, addChartSeries, setChartSeriesColor, setChartTitleRuns, setChartTitle, setChartTitleVisible, setChartLegend, setChartAxis, setChartGroupOptions, setChartTrendline, setChartErrorBars, setChartSeriesAxis, setChartSeriesOptions, setChartNumericCategories, setChartCategoryLevels, setChartTypedCategories, setChartSeriesXValues, setChartSeriesBubbleSizes, renameChartSeries, setChartSeriesValues, setChartCategories, setChartDataLabels, setChartDataLabelsRange, parseChartFormatTargetKey, setChartTargetText, setChartLegendEntries, setChartAxisTitleText, setChartLayout, setChartDisplayUnitsLabel, setChartProtection, setChartChrome, setChartStyle, setChartView3D, setChartDataTable, setChartSurface, setChartGroupDecorations, clearChartAreaPaint, applyChartAppearance, chartGroupElement, chartPercentUnionValue, applySeriesMarkerToXml, applySeriesDataPointsToXml, chartColorHex, chartDrawingColorFromHex, chartTrendlineType, chartSeriesEntryAt, numberSource, setChartMarker, editChartShapeProperties, setChartDataLabelFormatting, chartFormatTargetKey, chartTargetDraftShapes, fillAppearancePatch, setChartPointOptions, applyChartManualLayout, buildTrendlineLabel, serializeColorChoice, replaceOleEmbedding, findKey, collectAllText, buildNodeGuidMap, buildPresentationGuidMap, regenerateSmartArtDrawingShapes, buildFabricatedDrawingXml, buildFabricatedDiagramDataXml, DIAGRAM_DRAWING_CONTENT_TYPE, DIAGRAM_DRAWING_REL_TYPE, applyDiagramRelationshipIds, buildSaveTimeCustomGeometryXml, applyCustomGeometryGuideOverrides, avLstForPreset, filterValidShapeAdjustmentEntries, applyDrawingMediaReference, DIAGRAM_XML_PROLOG, DIAGRAM_DATA_XMLNS, escapeDiagramXml, writeBodyPrBooleanAttrs, applyTextBodySp3d, writeShapeEffects, SHAPE_STYLE_ORDER, CAMERA_PRESETS, LIGHT_RIGS, LIGHT_DIRECTIONS, roundCoordinate, scaleVectorToIntegers, EMU_PER_PIXEL, P14_GUIDE_URI, P15_GUIDE_URI, buildGuideListExtension, resetSpPrFormattingForStyleMatrix, fillIsPurelyStyleMatrix, serializeColorChoiceWithRef, createLineStyleGate, applyDrawingLineDash, reorderObjectKeysByLocalName, getSignaturePathsToStrip, mergeSmartArtPointXml, mergeSmartArtConnectionXml, withDiagramPictureSources, diagramPictureRelationships, obfuscateFont, containsConvertibleStrictNamespaceAttribute, convertXmlToStrict, applySeriesPictureOptionsToXml, findChartExtByUri, findChildByLocalName, regenerateClonedUniqueId, buildChartUniqueIdExtLst, createOfficeGuid, isContentPoint, newSmartArtGuid, parseDiagramDataModel, DEFAULT_GENERATED_DIAGRAM_SCHEME, previewDiagramLayout, parseXml, first, parseDiagramColors, resolveDrawingColor, children, parseDrawingRichTextBody, writeGeneratedDiagramDrawing, descendants, GENERATED_DIAGRAM_CACHE_NS, generatedDrawingDigest, buildXml, parseChartUserShapesDrawing, xmlChildren, chartSpaceWorkbookWrites, writeChartSpaceOverSource, applyChartGradientToSpPr, setAutoTitleDeleted, realignOrCollapseRuns, insertAt, replaceFirstText, saveChartWorkbookUpdates, shouldRebuildFromParagraphs, buildPointFromParagraphs, shouldRebuildFromRuns, buildPointFromRuns, buildPointText, resolveThemeFillStyle, resolveThemeLineStyle, resolveThemeEffectStyle, relAttr, ensureXmlChildren, TC_PR_BORDERS_ORDER, appendChartWorkbookSheet, rebaseChartData, writeChartColorChoice, parseChartExSpace, chartExDataChanged, relationshipsPartFor, chartExSpaceWorkbookWrites, writeChartWorkbookUpdates, appendChartExWorkbookData, writeChartExSpaceOverSource, elements, stripParentDirSegments, parseChartUniqueId, buildChartMarkerXml, chartGradientsEqual, chartColorChoiceValue, setChartExTitle, setChartExLegend, editChartExStyle, editChartExAxis, renameChartExSeries, setChartExSeriesValues, setChartExCategories, parseDrawingEffects, editChartExLabels, removeChartExSeries, addChartExSeries, buildEffectDagTreeFromXml, syncPictureShapeTypeWithCropShape, buildSrgbColorChoice, picturePercentage, ARTISTIC_PRIMARY_ATTRIBUTE, fetchUrlToBytes, parseChartWideTextStyle, hasLocalName, parseDefRPrTextStyle, parseChartDataLabelOptions, shadowOffsetToDistanceAndDirection, positiveFixedAngleAttribute, xmlAttrNumber, parseCustomShows, parseShapeProps, parseActiveXControlsFromSlide, convertMetafileToDataUrl, blobUrlToDataUrl, readPictureEffect, isAlternateContentChoiceSupported, SvgExporter, detectStrictConformance, normalizeStrictXml, normalizeStShapeType, applyCustomShows, applySections, PRESENTATION_CHILD_ORDER, applyKinsokuToXml, normalizeNamespaceUri, backgroundStyleRefIsCurrent, backgroundRefNode, captureStyleBaseline, STYLE_MATRIX_FILL_KEYS, STYLE_MATRIX_LINE_KEYS, STYLE_MATRIX_EFFECT_KEYS, xmlAttrBool, detectOleObjectType, inferOleExtensionFromTarget, deriveSlideTitles, parseSlideDrawingGuides, slideBackgroundStyleRefFromNode, parseP14DirectChild, parseP14FromExtLst, P14_TRANSITION_TYPES, decodeXmlEntities, preservesXmlWhitespace, annotateCustomGeometryCommandOrder, annotateSmartArtTextOrder, encodeXmlAttributeValue, encodeXmlTextValue, stripXmlOrderMarkers, setChartPointLabel, editChartExPointLabel, MIN_ELEMENT_SIZE, createDrawingObjectId, DEFAULT_TEXT_FONT_SIZE, EncryptedFileError, decodePptxJsonText, parsePptxJson, pptxDataFromJsonDocument, applyImportedPptxData, DEFAULT_CHART_GRADIENT_ANGLE, supportsChartGradientFill, assertChartModelLabelPosition, svgToCustomGeometryPaths, escAttr, ensureContentTypeOverride, buildRelationshipsXml, MIN_TABLE_DIMENSION, MAX_TABLE_DIMENSION, SYSTEM_COLOR_MAP, PRESET_COLOR_MAP, effectChild, mergeEffectNode, mergeAttributeEffectNode, parseDrawingLineDash, estimateMediaDurationMs, parseVmlElements, prismFamilyFlags, prismFamilyTypeOfNode, prismFamilyTypeForFlags, P14_DIR_IS_ORIENTATION_TYPE, IncorrectPasswordError, applyThemeToData, detectFileFormat, parseOle2, decryptPptx, encryptPptx, customGeometryPathsToSvg, base64Encode, patchPictureEffects, cssDegreesToOoxmlGradientAngle, escText, parseLineSpacingMultiplier, parseLineSpacingExactPt, parseEncryptionInfo, RC4_ALG_ID, isOle2CompoundFile, ENTRY_TYPE_ROOT, PML_XMLNS, solidFill, esc, OOXML_PERCENT_UNITS, backgroundStylePreset, isDarkColorMap, backgroundStyleColorMap, reResolveElementsForColorMapChange, findThemeEffectScheme, wrapFormatSchemeXml, effectIsPurelyStyleMatrix, emu, formatSchemeKey, gradFill, loadThemeVariants, parsePresentationDrawingGuides, parsePresentationSmartTags, resolveLayoutDisplayName, detectDigitalSignatures, unwrapOleEmbedding, mimeTypeForOleFile, oleBytesToDataUrl, parseKinsoku, deobfuscateFont, detectFontFormat, parseDataTable, parseChartAxes, parseBubbleChartOptions, extractGuidFromPartName, parseChartLayouts, parseCxChartSeries, parseChartFormulaRange, expandRangeAddresses, parseChartDataPointPictureBlipRel, readDisplayNaAsBlank, extractCxSeriesColor, parseCxDataLabels, parseCxRegionMapOptions, parseCxAxes, parseSeriesDataLabels, parseChartDataPointPicture, parseImplicitBlipPictureFill, parseEmbeddedXlsx, CHART_STYLE_PARTS, CHART_COLOR_STYLE_NS, readChartStyle, resolveChartStyleDefinition, drawingColorXml, EMU_PER_POINT, chartTrendlineKind, parseChartManualLayout, parseDiagramRelationshipIds, parseSmartArtTextParagraphs, firstParagraphRuns, smartArtParagraphsText, decodeBase64, parseSmartArtPresLayoutVars, parseSmartArtConnection, connectionLabel, projectSmartArtNodeText, resolveSmartArtNodeStyleRoles, resolveSmartArtNodeCoherent3DOff, captureDiagramPictures, parseDiagramDrawing, parseSmartArtDefinitionMetadata, parseSmartArtColorStyleLabels, buildSmartArtColorLists, buildSmartArtColorRoleMap, collectTransitionText, parseSmartArtQuickStyleLabels, parseDiagramQuickStyle, parseDiagramLayoutSummary, resolveSmartArtEffectIntensity, parseSmartArtStyleLabelRefs, extractStyleReferenceColorXml, withThemePlaceholderColor, getElementOrientationMatrix, isTextOrientationMatrix, TEXT_ORIENTATION_IDENTITY, multiplyTextOrientationMatrices } from './chunk-MX2GFMZS.mjs';
1
+ import { NS, RELATIONSHIP_TYPES, SMART_ART_DEFINITION_PARTS, VML_SHAPE_TAGS, isAlternateContentChoiceXmlSupported, parseVmlElement, unwrapAlternateContent, xmlChild, xmlAttr, parseDrawingMediaReference, cropShapeForPresetGeometry, isHeaderFooterPlaceholder, xmlPath, inheritedPlaceholderFieldType, parseParagraphLevel, xmlHasChild, parseParagraphExtraAttributes, parseParagraphMargins, parseAlignmentAttr, parseParagraphRtl, parseTabStops, resolveParagraphAlignment, xmlText, parseBodyPrBooleanAttrs, selectAlternateContentBranch, parseBulletSizePercent, extractColorChoiceXml, formatAutoNumberMarker, readText3DValues, readScene3DValues, parseParagraphSpacingPx, createBuiltinVariables, resolveCoordinate, readPathListCommandOrder, parseStructuredCustomGeometry, parseAdjustmentValues, parseGuideDefinitions, evaluateGuides, evaluateGeometryPaths, inheritCustomGeometryCommandOrder, parseInkMlContent, parseModel3DScene, nextRelationshipId, remapElementShapeIds, normalizeCustomShowIds, mapCustomShowActions, parseShapeId, isTemplateElementId, remapShapeIdReferences, reapplyAlternateContentToTree, buildOle2, SHAPE_TREE_ELEMENT_TAGS, MAX_SHAPE_ID, parseRelationships, resolvePartPath, orderedXmlKey, safeResolveZipPath, parseDataUrlToBytes, base64Decode, EMU_PER_PX, reorderObjectKeys, encodeCompressedPng, zlibStore, hash, concatArrays, encodePasswordUtf16LE, COLOR_MAP_ALIAS_KEYS, DEFAULT_COLOR_MAP, uint32LE, LN_CHILD_ORDER, pptxActionToElementAction, buildClrMapOverrideXml, applyActiveXControlsToSlide, stageChartPartWithWorkbook, CHART_WORKBOOK_CONTENT_TYPE, BLIP_FILL_ORDER, SP_PR_ORDER, ensureXmlChild, hasShapeProperties, hasTextProperties, inkElementToStrokes, buildInkMlContent, ensureXmlChildOrCreate, isXmlNode, applyChartLayouts, stripXmlOrderSuffix, ooxmlGradientAngleToCssDegrees, serializeTabStop, newChartWorkbookLayout, DEFAULT_CHART_SHEET_NAME, writeChartSpace, chartIssuesLostOnWrite, parseChartSpace, joinChartGroups, createChartExSpace, setChartExDataLabelsVisible, writeChartExSpace, readCommentMentions, rebaseCommentMentions, applyCommentMentions, colorsEqual, generateFontGuid, NEUTRAL_CHART_TYPE_TARGETS, planNeutralChartType, newChartSpace, setChartSeriesSecondaryAxis, editChartSpace, chartModelLabelPositions, setChartExLayout, setChartExSeriesFill, setChartExWaterfall, setChartExBinning, setChartExParentLabelLayout, setChartExBoxWhisker, applyBubbleChartOptions, applyChartUpDownBars, applyDataLabelsRangeToDLbls, applyChartAxisScaling, applyChartAxisLabelFormatting, upsertChartAxisChild, applyChartDateAxisUnits, applyChartAxisDisplayUnitsToXml, writeChartShapeProps, resolveTxPrDefRPr, buildDefRPrTextProperties, buildChartGradFillXml, drawingFillXml, removeChartSeries, chartSeriesEntries, moveChartSeries, addChartSeries, setChartSeriesColor, setChartTitleRuns, setChartTitle, setChartTitleVisible, setChartLegend, setChartAxis, setChartGroupOptions, setChartTrendline, setChartErrorBars, setChartSeriesAxis, setChartSeriesOptions, setChartNumericCategories, setChartCategoryLevels, setChartTypedCategories, setChartSeriesXValues, setChartSeriesBubbleSizes, renameChartSeries, setChartSeriesValues, setChartCategories, setChartDataLabels, setChartDataLabelsRange, parseChartFormatTargetKey, setChartTargetText, setChartLegendEntries, setChartAxisTitleText, setChartLayout, setChartDisplayUnitsLabel, setChartProtection, setChartChrome, setChartStyle, setChartView3D, setChartDataTable, setChartSurface, setChartGroupDecorations, clearChartAreaPaint, applyChartAppearance, chartGroupElement, chartPercentUnionValue, applySeriesMarkerToXml, applySeriesDataPointsToXml, chartColorHex, chartDrawingColorFromHex, chartTrendlineType, chartSeriesEntryAt, numberSource, setChartMarker, editChartShapeProperties, setChartDataLabelFormatting, chartFormatTargetKey, chartTargetDraftShapes, fillAppearancePatch, setChartPointOptions, applyChartManualLayout, buildTrendlineLabel, serializeColorChoice, replaceOleEmbedding, findKey, collectAllText, buildNodeGuidMap, buildPresentationGuidMap, regenerateSmartArtDrawingShapes, buildFabricatedDrawingXml, buildFabricatedDiagramDataXml, DIAGRAM_DRAWING_CONTENT_TYPE, DIAGRAM_DRAWING_REL_TYPE, applyDiagramRelationshipIds, buildSaveTimeCustomGeometryXml, applyCustomGeometryGuideOverrides, avLstForPreset, filterValidShapeAdjustmentEntries, applyDrawingMediaReference, DIAGRAM_XML_PROLOG, DIAGRAM_DATA_XMLNS, escapeDiagramXml, writeBodyPrBooleanAttrs, applyTextBodySp3d, writeShapeEffects, SHAPE_STYLE_ORDER, CAMERA_PRESETS, LIGHT_RIGS, LIGHT_DIRECTIONS, roundCoordinate, scaleVectorToIntegers, EMU_PER_PIXEL, P14_GUIDE_URI, P15_GUIDE_URI, buildGuideListExtension, resetSpPrFormattingForStyleMatrix, fillIsPurelyStyleMatrix, serializeColorChoiceWithRef, createLineStyleGate, applyDrawingLineDash, reorderObjectKeysByLocalName, getSignaturePathsToStrip, mergeSmartArtPointXml, mergeSmartArtConnectionXml, withDiagramPictureSources, diagramPictureRelationships, obfuscateFont, containsConvertibleStrictNamespaceAttribute, convertXmlToStrict, applySeriesPictureOptionsToXml, findChartExtByUri, findChildByLocalName, regenerateClonedUniqueId, buildChartUniqueIdExtLst, createOfficeGuid, isContentPoint, newSmartArtGuid, parseDiagramDataModel, DEFAULT_GENERATED_DIAGRAM_SCHEME, previewDiagramLayout, parseXml, first, parseDiagramColors, resolveDrawingColor, children, parseDrawingRichTextBody, writeGeneratedDiagramDrawing, descendants, GENERATED_DIAGRAM_CACHE_NS, generatedDrawingDigest, buildXml, parseChartUserShapesDrawing, xmlChildren, chartSpaceWorkbookWrites, writeChartSpaceOverSource, applyChartGradientToSpPr, setAutoTitleDeleted, realignOrCollapseRuns, insertAt, replaceFirstText, saveChartWorkbookUpdates, shouldRebuildFromParagraphs, buildPointFromParagraphs, shouldRebuildFromRuns, buildPointFromRuns, buildPointText, resolveThemeFillStyle, resolveThemeLineStyle, resolveThemeEffectStyle, relAttr, ensureXmlChildren, TC_PR_BORDERS_ORDER, appendChartWorkbookSheet, rebaseChartData, writeChartColorChoice, parseChartExSpace, chartExDataChanged, relationshipsPartFor, chartExSpaceWorkbookWrites, writeChartWorkbookUpdates, appendChartExWorkbookData, writeChartExSpaceOverSource, elements, stripParentDirSegments, parseChartUniqueId, buildChartMarkerXml, chartGradientsEqual, chartColorChoiceValue, setChartExTitle, setChartExLegend, editChartExStyle, editChartExAxis, renameChartExSeries, setChartExSeriesValues, setChartExCategories, parseDrawingEffects, editChartExLabels, removeChartExSeries, addChartExSeries, buildEffectDagTreeFromXml, syncPictureShapeTypeWithCropShape, buildSrgbColorChoice, picturePercentage, ARTISTIC_PRIMARY_ATTRIBUTE, fetchUrlToBytes, parseChartWideTextStyle, hasLocalName, parseDefRPrTextStyle, parseChartDataLabelOptions, shadowOffsetToDistanceAndDirection, positiveFixedAngleAttribute, xmlAttrNumber, parseCustomShows, parseShapeProps, parseActiveXControlsFromSlide, convertMetafileToDataUrl, blobUrlToDataUrl, readPictureEffect, isAlternateContentChoiceSupported, SvgExporter, detectStrictConformance, normalizeStrictXml, normalizeStShapeType, applyCustomShows, applySections, PRESENTATION_CHILD_ORDER, applyKinsokuToXml, normalizeNamespaceUri, backgroundStyleRefIsCurrent, backgroundRefNode, captureStyleBaseline, STYLE_MATRIX_FILL_KEYS, STYLE_MATRIX_LINE_KEYS, STYLE_MATRIX_EFFECT_KEYS, xmlAttrBool, detectOleObjectType, inferOleExtensionFromTarget, deriveSlideTitles, parseSlideDrawingGuides, slideBackgroundStyleRefFromNode, parseP14DirectChild, parseP14FromExtLst, P14_TRANSITION_TYPES, decodeXmlEntities, preservesXmlWhitespace, annotateCustomGeometryCommandOrder, annotateSmartArtTextOrder, encodeXmlAttributeValue, encodeXmlTextValue, stripXmlOrderMarkers, setChartPointLabel, editChartExPointLabel, MIN_ELEMENT_SIZE, createDrawingObjectId, DEFAULT_TEXT_FONT_SIZE, EncryptedFileError, decodePptxJsonText, parsePptxJson, pptxDataFromJsonDocument, applyImportedPptxData, DEFAULT_CHART_GRADIENT_ANGLE, supportsChartGradientFill, assertChartModelLabelPosition, svgToCustomGeometryPaths, escAttr, ensureContentTypeOverride, buildRelationshipsXml, MIN_TABLE_DIMENSION, MAX_TABLE_DIMENSION, SYSTEM_COLOR_MAP, PRESET_COLOR_MAP, effectChild, mergeEffectNode, mergeAttributeEffectNode, parseDrawingLineDash, estimateMediaDurationMs, parseVmlElements, prismFamilyFlags, prismFamilyTypeOfNode, prismFamilyTypeForFlags, P14_DIR_IS_ORIENTATION_TYPE, IncorrectPasswordError, applyThemeToData, detectFileFormat, parseOle2, decryptPptx, encryptPptx, customGeometryPathsToSvg, base64Encode, patchPictureEffects, cssDegreesToOoxmlGradientAngle, escText, parseLineSpacingMultiplier, parseLineSpacingExactPt, parseEncryptionInfo, RC4_ALG_ID, isOle2CompoundFile, ENTRY_TYPE_ROOT, PML_XMLNS, solidFill, esc, OOXML_PERCENT_UNITS, backgroundStylePreset, isDarkColorMap, backgroundStyleColorMap, reResolveElementsForColorMapChange, findThemeEffectScheme, wrapFormatSchemeXml, effectIsPurelyStyleMatrix, emu, formatSchemeKey, gradFill, loadThemeVariants, parsePresentationDrawingGuides, parsePresentationSmartTags, resolveLayoutDisplayName, detectDigitalSignatures, unwrapOleEmbedding, mimeTypeForOleFile, oleBytesToDataUrl, parseKinsoku, deobfuscateFont, extractGuidFromPartName, detectFontFormat, parseDataTable, parseChartAxes, parseBubbleChartOptions, parseChartLayouts, parseCxChartSeries, parseChartFormulaRange, expandRangeAddresses, parseChartDataPointPictureBlipRel, readDisplayNaAsBlank, extractCxSeriesColor, parseCxDataLabels, parseCxRegionMapOptions, parseCxAxes, parseSeriesDataLabels, parseChartDataPointPicture, parseImplicitBlipPictureFill, parseEmbeddedXlsx, CHART_STYLE_PARTS, CHART_COLOR_STYLE_NS, readChartStyle, resolveChartStyleDefinition, drawingColorXml, EMU_PER_POINT, chartTrendlineKind, parseChartManualLayout, parseDiagramRelationshipIds, parseSmartArtTextParagraphs, firstParagraphRuns, smartArtParagraphsText, decodeBase64, parseSmartArtPresLayoutVars, parseSmartArtConnection, connectionLabel, projectSmartArtNodeText, resolveSmartArtNodeStyleRoles, resolveSmartArtNodeCoherent3DOff, captureDiagramPictures, parseDiagramDrawing, parseSmartArtDefinitionMetadata, parseSmartArtColorStyleLabels, buildSmartArtColorLists, buildSmartArtColorRoleMap, collectTransitionText, parseSmartArtQuickStyleLabels, parseDiagramQuickStyle, parseDiagramLayoutSummary, resolveSmartArtEffectIntensity, parseSmartArtStyleLabelRefs, extractStyleReferenceColorXml, withThemePlaceholderColor, getElementOrientationMatrix, isTextOrientationMatrix, TEXT_ORIENTATION_IDENTITY, multiplyTextOrientationMatrices } from './chunk-GZL4ERW3.mjs';
2
2
  import { openPptxZip, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, MAX_ZIP_ENTRY_COUNT, DEFAULT_MAX_UNCOMPRESSED_BYTES, guardZip, ZipBombError } from './chunk-U7YXYOA7.mjs';
3
3
  import { resolveSmartArtLayoutCategory } from './chunk-2N7RZQLC.mjs';
4
4
  import { cloneXmlObject, applySmartArtLayoutDefinition, cloneSlide, parseSmartArtLayoutDefinition } from './chunk-VDUNZTJC.mjs';
@@ -7376,9 +7376,9 @@ function applyCellMarginStyle(cellProperties, style, context) {
7376
7376
 
7377
7377
  // pptx/core/core/builders/table-cell-paragraphs.ts
7378
7378
  var PX_PER_POINT = 96 / 72;
7379
- function sizePt(runProperties) {
7379
+ function sizePt(runProperties2) {
7380
7380
  const size = Number.parseInt(
7381
- String(runProperties?.["@_sz"] ?? ""),
7381
+ String(runProperties2?.["@_sz"] ?? ""),
7382
7382
  10
7383
7383
  );
7384
7384
  return Number.isFinite(size) && size > 0 ? size / 100 : void 0;
@@ -7676,9 +7676,9 @@ function paragraphContentEntries(paragraph, contentTags) {
7676
7676
 
7677
7677
  // pptx/core/core/builders/table-cell-runs.ts
7678
7678
  var CELL_CONTENT_TAGS = /* @__PURE__ */ new Set(["a:r", "a:br", "a:fld"]);
7679
- function runFontFamily(runProperties) {
7679
+ function runFontFamily(runProperties2) {
7680
7680
  for (const key2 of ["a:latin", "a:ea", "a:cs"]) {
7681
- const typeface = runProperties?.[key2]?.["@_typeface"];
7681
+ const typeface = runProperties2?.[key2]?.["@_typeface"];
7682
7682
  const name = String(typeface ?? "").trim();
7683
7683
  if (name) {
7684
7684
  return name;
@@ -7686,45 +7686,45 @@ function runFontFamily(runProperties) {
7686
7686
  }
7687
7687
  return void 0;
7688
7688
  }
7689
- function runLanguage(runProperties) {
7690
- return String(runProperties?.["@_lang"] ?? "").trim() || void 0;
7689
+ function runLanguage(runProperties2) {
7690
+ return String(runProperties2?.["@_lang"] ?? "").trim() || void 0;
7691
7691
  }
7692
- function applyRunProperties(run, runProperties, context) {
7693
- if (!runProperties) {
7692
+ function applyRunProperties(run, runProperties2, context) {
7693
+ if (!runProperties2) {
7694
7694
  return;
7695
7695
  }
7696
- if (runProperties["@_b"] === "1") {
7696
+ if (runProperties2["@_b"] === "1") {
7697
7697
  run.bold = true;
7698
7698
  }
7699
- if (runProperties["@_i"] === "1") {
7699
+ if (runProperties2["@_i"] === "1") {
7700
7700
  run.italic = true;
7701
7701
  }
7702
- const underline = runProperties["@_u"];
7702
+ const underline = runProperties2["@_u"];
7703
7703
  if (underline !== void 0 && underline !== null && String(underline) !== "none") {
7704
7704
  run.underline = true;
7705
7705
  }
7706
- if (runProperties["@_strike"] && String(runProperties["@_strike"]) !== "noStrike") {
7706
+ if (runProperties2["@_strike"] && String(runProperties2["@_strike"]) !== "noStrike") {
7707
7707
  run.strikethrough = true;
7708
7708
  }
7709
- const size = parseInt(String(runProperties["@_sz"] ?? ""), 10);
7709
+ const size = parseInt(String(runProperties2["@_sz"] ?? ""), 10);
7710
7710
  if (Number.isFinite(size) && size > 0) {
7711
7711
  run.fontSize = size / 100;
7712
7712
  }
7713
- if (runProperties["a:solidFill"]) {
7714
- const color = context.parseColor(runProperties["a:solidFill"]);
7713
+ if (runProperties2["a:solidFill"]) {
7714
+ const color = context.parseColor(runProperties2["a:solidFill"]);
7715
7715
  if (color) {
7716
7716
  run.color = color;
7717
7717
  }
7718
7718
  }
7719
- const fontFamily = runFontFamily(runProperties);
7719
+ const fontFamily = runFontFamily(runProperties2);
7720
7720
  if (fontFamily) {
7721
7721
  run.fontFamily = fontFamily;
7722
7722
  }
7723
- const baseline = parseInt(String(runProperties["@_baseline"] ?? ""), 10);
7723
+ const baseline = parseInt(String(runProperties2["@_baseline"] ?? ""), 10);
7724
7724
  if (Number.isFinite(baseline) && baseline !== 0) {
7725
7725
  run.baseline = baseline;
7726
7726
  }
7727
- const spacing = parseInt(String(runProperties["@_spc"] ?? ""), 10);
7727
+ const spacing = parseInt(String(runProperties2["@_spc"] ?? ""), 10);
7728
7728
  if (Number.isFinite(spacing) && spacing !== 0) {
7729
7729
  run.characterSpacing = spacing;
7730
7730
  }
@@ -7818,14 +7818,14 @@ function applyCellTextFormat(tableCell, style, context) {
7818
7818
  hasStyle = true;
7819
7819
  }
7820
7820
  const firstRun = context.ensureArray(firstParagraph["a:r"])[0];
7821
- const runProperties = firstRun?.["a:rPr"];
7822
- if (!runProperties) {
7821
+ const runProperties2 = firstRun?.["a:rPr"];
7822
+ if (!runProperties2) {
7823
7823
  if (!hasContent(tableCell, context)) {
7824
7824
  hasStyle = applyEndParagraphSize(firstParagraph, style) || hasStyle;
7825
7825
  }
7826
7826
  return hasStyle;
7827
7827
  }
7828
- hasStyle = applyRunProperties2(runProperties, style, context) || hasStyle;
7828
+ hasStyle = applyRunProperties2(runProperties2, style, context) || hasStyle;
7829
7829
  return hasStyle;
7830
7830
  }
7831
7831
  function hasContent(tableCell, context) {
@@ -7847,26 +7847,26 @@ function applyEndParagraphSize(paragraph, style) {
7847
7847
  style.fontSize = size / 100;
7848
7848
  return true;
7849
7849
  }
7850
- function applyRunProperties2(runProperties, style, context) {
7850
+ function applyRunProperties2(runProperties2, style, context) {
7851
7851
  let hasStyle = false;
7852
- if (runProperties["@_b"] === "1") {
7852
+ if (runProperties2["@_b"] === "1") {
7853
7853
  style.bold = true;
7854
7854
  hasStyle = true;
7855
7855
  }
7856
- if (runProperties["@_i"] === "1") {
7856
+ if (runProperties2["@_i"] === "1") {
7857
7857
  style.italic = true;
7858
7858
  hasStyle = true;
7859
7859
  }
7860
- if (runProperties["@_u"] && runProperties["@_u"] !== "none") {
7860
+ if (runProperties2["@_u"] && runProperties2["@_u"] !== "none") {
7861
7861
  style.underline = true;
7862
7862
  hasStyle = true;
7863
7863
  }
7864
- if (runProperties["@_sz"]) {
7865
- style.fontSize = parseInt(String(runProperties["@_sz"]), 10) / 100;
7864
+ if (runProperties2["@_sz"]) {
7865
+ style.fontSize = parseInt(String(runProperties2["@_sz"]), 10) / 100;
7866
7866
  hasStyle = true;
7867
7867
  }
7868
- if (runProperties["a:solidFill"]) {
7869
- const textColor = context.parseColor(runProperties["a:solidFill"]);
7868
+ if (runProperties2["a:solidFill"]) {
7869
+ const textColor = context.parseColor(runProperties2["a:solidFill"]);
7870
7870
  if (textColor) {
7871
7871
  style.color = textColor;
7872
7872
  hasStyle = true;
@@ -7874,7 +7874,7 @@ function applyRunProperties2(runProperties, style, context) {
7874
7874
  }
7875
7875
  for (const key2 of ["a:latin", "a:ea", "a:cs"]) {
7876
7876
  const typeface = String(
7877
- runProperties[key2]?.["@_typeface"] ?? ""
7877
+ runProperties2[key2]?.["@_typeface"] ?? ""
7878
7878
  ).trim();
7879
7879
  if (typeface) {
7880
7880
  style.fontFamily = typeface;
@@ -7882,11 +7882,11 @@ function applyRunProperties2(runProperties, style, context) {
7882
7882
  break;
7883
7883
  }
7884
7884
  }
7885
- hasStyle = applyTextEffects(runProperties, style, context) || hasStyle;
7885
+ hasStyle = applyTextEffects(runProperties2, style, context) || hasStyle;
7886
7886
  return hasStyle;
7887
7887
  }
7888
- function applyTextEffects(runProperties, style, context) {
7889
- const effectLst = runProperties["a:effectLst"];
7888
+ function applyTextEffects(runProperties2, style, context) {
7889
+ const effectLst = runProperties2["a:effectLst"];
7890
7890
  if (!effectLst) {
7891
7891
  return false;
7892
7892
  }
@@ -36402,6 +36402,9 @@ function isEotFormat(data) {
36402
36402
  const magic = readUint16LE(data, EOT_MAGIC_OFFSET);
36403
36403
  return magic === EOT_MAGIC;
36404
36404
  }
36405
+ function readEotFsType(data) {
36406
+ return isEotFormat(data) ? readUint16LE(data, 32) : void 0;
36407
+ }
36405
36408
  function parseEotHeader(data) {
36406
36409
  if (!isEotFormat(data)) {
36407
36410
  return null;
@@ -36491,6 +36494,9 @@ function extractFontFromEot(data) {
36491
36494
  }
36492
36495
 
36493
36496
  // pptx/core/utils/deferred-embedded-font.ts
36497
+ function fsTypeField(source) {
36498
+ return source.fsType === void 0 ? {} : { fsType: source.fsType };
36499
+ }
36494
36500
  function resolveEmbeddedFontGuid(source) {
36495
36501
  if (isEotFormat(source.originalPartBytes)) {
36496
36502
  return void 0;
@@ -36590,15 +36596,16 @@ function decodeEmbeddedFontPart(source) {
36590
36596
  partPath,
36591
36597
  fontGuid,
36592
36598
  originalRId: source.originalRId,
36593
- originalPartBytes
36599
+ originalPartBytes,
36600
+ ...fsTypeField(source)
36594
36601
  };
36595
36602
  } catch {
36596
36603
  return null;
36597
36604
  }
36598
36605
  }
36599
- function createDeferredEmbeddedFont(source) {
36606
+ function createDeferredEmbeddedFont(source, options2 = {}) {
36600
36607
  const fontGuid = resolveEmbeddedFontGuid(source);
36601
- let fields;
36608
+ let fields = options2.withheld ? { dataUrl: "", format: void 0, rawFontData: void 0 } : void 0;
36602
36609
  let pending;
36603
36610
  const decode = () => {
36604
36611
  if (!fields) {
@@ -36636,7 +36643,8 @@ function createDeferredEmbeddedFont(source) {
36636
36643
  partPath: source.partPath,
36637
36644
  fontGuid,
36638
36645
  originalRId: source.originalRId,
36639
- originalPartBytes: source.originalPartBytes
36646
+ originalPartBytes: source.originalPartBytes,
36647
+ ...fsTypeField(source)
36640
36648
  };
36641
36649
  Object.defineProperties(font, {
36642
36650
  load: {
@@ -36648,16 +36656,96 @@ function createDeferredEmbeddedFont(source) {
36648
36656
  });
36649
36657
  return font;
36650
36658
  }
36659
+ function createWithheldEmbeddedFont(source) {
36660
+ return createDeferredEmbeddedFont(source, { withheld: true });
36661
+ }
36651
36662
  function shouldSaveEmbeddedFontVerbatim(font) {
36652
- if (font.isLoaded === void 0 || !font.originalPartBytes?.length) {
36653
- return false;
36654
- }
36655
- if (!font.originalRId || !font.partPath) {
36663
+ if (!font.originalPartBytes?.length || !font.originalRId || !font.partPath) {
36656
36664
  return false;
36657
36665
  }
36658
36666
  return font.isLoaded === false || !font.rawFontData?.length;
36659
36667
  }
36660
36668
 
36669
+ // text/truetype/embedding.ts
36670
+ var RESTRICTED = 2;
36671
+ var PREVIEW_PRINT = 4;
36672
+ var EDITABLE = 8;
36673
+ var NO_SUBSETTING = 256;
36674
+ var BITMAP_ONLY = 512;
36675
+ function embeddingPermission(fsType) {
36676
+ const licence = fsType & EDITABLE ? "editable" : fsType & PREVIEW_PRINT ? "preview-print" : fsType & RESTRICTED ? "restricted" : "installable";
36677
+ return {
36678
+ licence,
36679
+ noSubsetting: (fsType & NO_SUBSETTING) !== 0,
36680
+ bitmapOnly: (fsType & BITMAP_ONLY) !== 0
36681
+ };
36682
+ }
36683
+ function mayDisplayEmbeddedFont(permission) {
36684
+ return permission.licence !== "restricted";
36685
+ }
36686
+ function mayEmbedFontInEditableDocument(permission) {
36687
+ return (permission.licence === "installable" || permission.licence === "editable") && !permission.bitmapOnly;
36688
+ }
36689
+ var SFNT_VERSIONS = /* @__PURE__ */ new Set([65536, 1330926671, 1953658213]);
36690
+ var TTC_TAG = 1953784678;
36691
+ var OS2_TAG = 1330851634;
36692
+ function readSfntFsType(data, header) {
36693
+ const byte = (offset) => header && offset < header.length ? header[offset] : data[offset];
36694
+ const u16 = (offset) => {
36695
+ const hi = byte(offset);
36696
+ const lo = byte(offset + 1);
36697
+ return hi === void 0 || lo === void 0 ? void 0 : hi << 8 | lo;
36698
+ };
36699
+ const u32 = (offset) => {
36700
+ const hi = u16(offset);
36701
+ const lo = u16(offset + 2);
36702
+ return hi === void 0 || lo === void 0 ? void 0 : hi * 65536 + lo;
36703
+ };
36704
+ let base = 0;
36705
+ if (u32(0) === TTC_TAG) {
36706
+ const first2 = u32(12);
36707
+ if (first2 === void 0) return void 0;
36708
+ base = first2;
36709
+ }
36710
+ const version = u32(base);
36711
+ if (version === void 0 || !SFNT_VERSIONS.has(version)) return void 0;
36712
+ const numTables = u16(base + 4) ?? 0;
36713
+ for (let i = 0; i < numTables; i++) {
36714
+ const record2 = base + 12 + i * 16;
36715
+ const tag = u32(record2);
36716
+ if (tag === void 0) return void 0;
36717
+ if (tag === OS2_TAG) {
36718
+ const offset = u32(record2 + 8);
36719
+ return offset === void 0 ? void 0 : u16(offset + 8);
36720
+ }
36721
+ }
36722
+ return void 0;
36723
+ }
36724
+
36725
+ // pptx/core/utils/embedded-font-permission.ts
36726
+ var OBFUSCATED_HEADER_BYTES = 32;
36727
+ function readEmbeddedFontPartFsType(partBytes, guid) {
36728
+ const eot = readEotFsType(partBytes);
36729
+ if (eot !== void 0) {
36730
+ return eot;
36731
+ }
36732
+ if (!guid) {
36733
+ return readSfntFsType(partBytes);
36734
+ }
36735
+ const header = deobfuscateFont(
36736
+ partBytes.subarray(0, Math.min(partBytes.length, OBFUSCATED_HEADER_BYTES)),
36737
+ guid
36738
+ );
36739
+ return readSfntFsType(partBytes, header);
36740
+ }
36741
+ function mayDisplayFontWithFsType(fsType) {
36742
+ return fsType === void 0 || mayDisplayEmbeddedFont(embeddingPermission(fsType));
36743
+ }
36744
+ function mayNewlyEmbedFontData(font, fontData) {
36745
+ const fsType = readSfntFsType(fontData) ?? font.fsType;
36746
+ return fsType === void 0 || mayEmbedFontInEditableDocument(embeddingPermission(fsType));
36747
+ }
36748
+
36661
36749
  // pptx/core/core/runtime/header-footer-parts.ts
36662
36750
  var DEFAULT_DATE_FIELD_TYPE = "datetime1";
36663
36751
  function asArray2(value) {
@@ -61047,9 +61135,9 @@ function buildGroupPropertiesXml(rawGroupXml, xfrm) {
61047
61135
  if (!rawProps) {
61048
61136
  return { "a:xfrm": xfrm };
61049
61137
  }
61050
- const clone = cloneXmlNode(rawProps);
61051
- delete clone["a:xfrm"];
61052
- return { "a:xfrm": xfrm, ...clone };
61138
+ const clone2 = cloneXmlNode(rawProps);
61139
+ delete clone2["a:xfrm"];
61140
+ return { "a:xfrm": xfrm, ...clone2 };
61053
61141
  }
61054
61142
  function appendGroupChildren2(grpXml2, entries) {
61055
61143
  const extLst = grpXml2["p:extLst"];
@@ -62147,8 +62235,8 @@ var PptxHandlerRuntime18 = class extends PptxHandlerRuntime17 {
62147
62235
  * Parse hyperlink-related properties (a:hlinkClick, a:hlinkMouseOver) from
62148
62236
  * run-level XML and apply them to the given TextStyle.
62149
62237
  */
62150
- applyHyperlinkStyle(style, runProperties, relationshipMap) {
62151
- const hyperlinkNode = runProperties["a:hlinkClick"];
62238
+ applyHyperlinkStyle(style, runProperties2, relationshipMap) {
62239
+ const hyperlinkNode = runProperties2["a:hlinkClick"];
62152
62240
  const hyperlinkRelationshipId = String(
62153
62241
  hyperlinkNode?.["@_r:id"] || hyperlinkNode?.["@_id"] || ""
62154
62242
  ).trim();
@@ -62216,7 +62304,7 @@ var PptxHandlerRuntime18 = class extends PptxHandlerRuntime17 {
62216
62304
  }
62217
62305
  }
62218
62306
  }
62219
- const hlinkMouseOver = runProperties["a:hlinkMouseOver"];
62307
+ const hlinkMouseOver = runProperties2["a:hlinkMouseOver"];
62220
62308
  if (hlinkMouseOver) {
62221
62309
  const mouseOverRelId = String(
62222
62310
  hlinkMouseOver["@_r:id"] || hlinkMouseOver["@_id"] || ""
@@ -62464,8 +62552,8 @@ var PptxHandlerRuntime18 = class extends PptxHandlerRuntime17 {
62464
62552
  * (e.g. `a:outerShdw`, `a:glow`, `a:alphaInv`) is captured opaquely as
62465
62553
  * raw XML so we don't duplicate the entire effect taxonomy here.
62466
62554
  */
62467
- applyTextRunEffectDag(style, runProperties) {
62468
- const effectDag = runProperties["a:effectDag"];
62555
+ applyTextRunEffectDag(style, runProperties2) {
62556
+ const effectDag = runProperties2["a:effectDag"];
62469
62557
  if (!effectDag) {
62470
62558
  return;
62471
62559
  }
@@ -62486,28 +62574,28 @@ var TEXT_FILL_ELEMENTS = [
62486
62574
  "a:grpFill"
62487
62575
  ];
62488
62576
  var PptxHandlerRuntime19 = class _PptxHandlerRuntime extends PptxHandlerRuntime18 {
62489
- extractTextRunStyle(runProperties, align, relationshipMap, includeDefaultAlignment = true, slidePath) {
62577
+ extractTextRunStyle(runProperties2, align, relationshipMap, includeDefaultAlignment = true, slidePath) {
62490
62578
  const style = includeDefaultAlignment ? { align } : {};
62491
- if (!runProperties) {
62579
+ if (!runProperties2) {
62492
62580
  return style;
62493
62581
  }
62494
- if (runProperties["@_sz"]) {
62495
- const points6 = parseInt(runProperties["@_sz"]) / 100;
62582
+ if (runProperties2["@_sz"]) {
62583
+ const points6 = parseInt(runProperties2["@_sz"]) / 100;
62496
62584
  style.fontSize = points6 * (96 / 72);
62497
62585
  }
62498
- const bold = this.parseOptionalBooleanAttr(runProperties["@_b"]);
62586
+ const bold = this.parseOptionalBooleanAttr(runProperties2["@_b"]);
62499
62587
  if (bold !== void 0) {
62500
62588
  style.bold = bold;
62501
62589
  }
62502
- const italic = this.parseOptionalBooleanAttr(runProperties["@_i"]);
62590
+ const italic = this.parseOptionalBooleanAttr(runProperties2["@_i"]);
62503
62591
  if (italic !== void 0) {
62504
62592
  style.italic = italic;
62505
62593
  }
62506
- if (runProperties["@_u"] !== void 0) {
62507
- const underlineToken = String(runProperties["@_u"] || "").trim().toLowerCase();
62594
+ if (runProperties2["@_u"] !== void 0) {
62595
+ const underlineToken = String(runProperties2["@_u"] || "").trim().toLowerCase();
62508
62596
  style.underline = underlineToken.length > 0 && underlineToken !== "none" && underlineToken !== "0" && underlineToken !== "false";
62509
62597
  if (style.underline) {
62510
- const rawU = String(runProperties["@_u"] || "").trim();
62598
+ const rawU = String(runProperties2["@_u"] || "").trim();
62511
62599
  if (rawU.length > 0 && rawU !== "none") {
62512
62600
  style.underlineStyle = rawU;
62513
62601
  }
@@ -62515,8 +62603,8 @@ var PptxHandlerRuntime19 = class _PptxHandlerRuntime extends PptxHandlerRuntime1
62515
62603
  style.underlineExplicitNone = true;
62516
62604
  }
62517
62605
  }
62518
- const uFill = runProperties["a:uFill"];
62519
- const uLn = runProperties["a:uLn"];
62606
+ const uFill = runProperties2["a:uFill"];
62607
+ const uLn = runProperties2["a:uLn"];
62520
62608
  const underlineColorSource = uFill?.["a:solidFill"] || uLn?.["a:solidFill"];
62521
62609
  if (underlineColorSource) {
62522
62610
  const underlineColor = this.parseColor(underlineColorSource);
@@ -62558,20 +62646,20 @@ var PptxHandlerRuntime19 = class _PptxHandlerRuntime extends PptxHandlerRuntime1
62558
62646
  style.underlineLine = line;
62559
62647
  }
62560
62648
  }
62561
- if (runProperties["a:uLnTx"] !== void 0) {
62649
+ if (runProperties2["a:uLnTx"] !== void 0) {
62562
62650
  style.underlineLineFollowsText = true;
62563
62651
  }
62564
- if (runProperties["a:uFillTx"] !== void 0) {
62652
+ if (runProperties2["a:uFillTx"] !== void 0) {
62565
62653
  style.underlineFillFollowsText = true;
62566
62654
  }
62567
- if (runProperties["@_strike"] !== void 0) {
62568
- const strikeToken = String(runProperties["@_strike"] || "").trim().toLowerCase();
62655
+ if (runProperties2["@_strike"] !== void 0) {
62656
+ const strikeToken = String(runProperties2["@_strike"] || "").trim().toLowerCase();
62569
62657
  style.strikethrough = strikeToken.length > 0 && strikeToken !== "nostrike" && strikeToken !== "none" && strikeToken !== "0" && strikeToken !== "false";
62570
62658
  if (style.strikethrough) {
62571
62659
  style.strikeType = strikeToken === "dblstrike" ? "dblStrike" : "sngStrike";
62572
62660
  }
62573
62661
  }
62574
- const textLn = runProperties["a:ln"];
62662
+ const textLn = runProperties2["a:ln"];
62575
62663
  if (textLn) {
62576
62664
  const textOutlineW = Number.parseInt(String(textLn["@_w"] || ""), 10);
62577
62665
  if (Number.isFinite(textOutlineW) && textOutlineW > 0) {
@@ -62589,31 +62677,31 @@ var PptxHandlerRuntime19 = class _PptxHandlerRuntime extends PptxHandlerRuntime1
62589
62677
  }
62590
62678
  }
62591
62679
  }
62592
- if (runProperties["a:noFill"] !== void 0) {
62680
+ if (runProperties2["a:noFill"] !== void 0) {
62593
62681
  style.textFillNone = true;
62594
- } else if (TEXT_FILL_ELEMENTS.some((name) => runProperties[name] !== void 0)) {
62682
+ } else if (TEXT_FILL_ELEMENTS.some((name) => runProperties2[name] !== void 0)) {
62595
62683
  style.textFillNone = false;
62596
62684
  }
62597
- if (runProperties["@_baseline"] !== void 0) {
62598
- const baselineVal = Number.parseInt(String(runProperties["@_baseline"]), 10);
62685
+ if (runProperties2["@_baseline"] !== void 0) {
62686
+ const baselineVal = Number.parseInt(String(runProperties2["@_baseline"]), 10);
62599
62687
  if (Number.isFinite(baselineVal)) {
62600
62688
  style.baseline = baselineVal;
62601
62689
  }
62602
62690
  }
62603
- if (runProperties["@_spc"] !== void 0) {
62604
- const spcVal = Number.parseInt(String(runProperties["@_spc"]), 10);
62691
+ if (runProperties2["@_spc"] !== void 0) {
62692
+ const spcVal = Number.parseInt(String(runProperties2["@_spc"]), 10);
62605
62693
  if (Number.isFinite(spcVal)) {
62606
62694
  style.characterSpacing = spcVal;
62607
62695
  }
62608
62696
  }
62609
- if (runProperties["@_kern"] !== void 0) {
62610
- const kernVal = Number.parseInt(String(runProperties["@_kern"]), 10);
62697
+ if (runProperties2["@_kern"] !== void 0) {
62698
+ const kernVal = Number.parseInt(String(runProperties2["@_kern"]), 10);
62611
62699
  if (Number.isFinite(kernVal)) {
62612
62700
  style.kerning = kernVal;
62613
62701
  }
62614
62702
  }
62615
- if (runProperties["a:highlight"]) {
62616
- const highlightNode = xmlChild(runProperties, "a:highlight");
62703
+ if (runProperties2["a:highlight"]) {
62704
+ const highlightNode = xmlChild(runProperties2, "a:highlight");
62617
62705
  const highlightHex = this.parseColor(highlightNode);
62618
62706
  if (highlightHex) {
62619
62707
  style.highlightColor = highlightHex;
@@ -62623,7 +62711,7 @@ var PptxHandlerRuntime19 = class _PptxHandlerRuntime extends PptxHandlerRuntime1
62623
62711
  style.highlightColorXml = highlightXml;
62624
62712
  }
62625
62713
  }
62626
- const textFillVariants = this.extractTextFillVariants(runProperties);
62714
+ const textFillVariants = this.extractTextFillVariants(runProperties2);
62627
62715
  if (textFillVariants.textFillGradient) {
62628
62716
  style.textFillGradient = textFillVariants.textFillGradient;
62629
62717
  style.textFillGradientStops = textFillVariants.textFillGradientStops;
@@ -62649,14 +62737,14 @@ var PptxHandlerRuntime19 = class _PptxHandlerRuntime extends PptxHandlerRuntime1
62649
62737
  style.textFillBlipMode = resolved.mode;
62650
62738
  }
62651
62739
  }
62652
- const rtlElement = runProperties["a:rtl"];
62653
- const runRtl = rtlElement !== void 0 ? this.parseOptionalBooleanAttr(xmlAttr(xmlChild(runProperties, "a:rtl"), "val")) ?? true : this.parseOptionalBooleanAttr(runProperties["@_rtl"]);
62740
+ const rtlElement = runProperties2["a:rtl"];
62741
+ const runRtl = rtlElement !== void 0 ? this.parseOptionalBooleanAttr(xmlAttr(xmlChild(runProperties2, "a:rtl"), "val")) ?? true : this.parseOptionalBooleanAttr(runProperties2["@_rtl"]);
62654
62742
  if (runRtl !== void 0) {
62655
62743
  style.rtl = runRtl;
62656
62744
  }
62657
- const latin = xmlChild(runProperties, "a:latin");
62658
- const eastAsian = xmlChild(runProperties, "a:ea");
62659
- const complexScript = xmlChild(runProperties, "a:cs");
62745
+ const latin = xmlChild(runProperties2, "a:latin");
62746
+ const eastAsian = xmlChild(runProperties2, "a:ea");
62747
+ const complexScript = xmlChild(runProperties2, "a:cs");
62660
62748
  const latinTypefaceToken = xmlAttr(latin, "typeface");
62661
62749
  const eaTypefaceToken = xmlAttr(eastAsian, "typeface");
62662
62750
  const csTypefaceToken = xmlAttr(complexScript, "typeface");
@@ -62682,7 +62770,7 @@ var PptxHandlerRuntime19 = class _PptxHandlerRuntime extends PptxHandlerRuntime1
62682
62770
  if (csTypeface) {
62683
62771
  style.complexScriptFont = csTypeface;
62684
62772
  }
62685
- const solidFill2 = xmlChild(runProperties, "a:solidFill");
62773
+ const solidFill2 = xmlChild(runProperties2, "a:solidFill");
62686
62774
  if (solidFill2) {
62687
62775
  style.color = this.parseColor(solidFill2);
62688
62776
  const colorXml2 = extractColorChoiceXml(solidFill2);
@@ -62694,59 +62782,59 @@ var PptxHandlerRuntime19 = class _PptxHandlerRuntime extends PptxHandlerRuntime1
62694
62782
  style.colorRef = colorRef;
62695
62783
  }
62696
62784
  }
62697
- this.applyHyperlinkStyle(style, runProperties, relationshipMap);
62698
- const capAttr = String(runProperties["@_cap"] || "").trim().toLowerCase();
62785
+ this.applyHyperlinkStyle(style, runProperties2, relationshipMap);
62786
+ const capAttr = String(runProperties2["@_cap"] || "").trim().toLowerCase();
62699
62787
  if (capAttr === "all" || capAttr === "small") {
62700
62788
  style.textCaps = capAttr;
62701
62789
  } else if (capAttr === "none") {
62702
62790
  style.textCaps = "none";
62703
62791
  style.textCapsExplicitNone = true;
62704
62792
  }
62705
- const symNode = xmlChild(runProperties, "a:sym");
62793
+ const symNode = xmlChild(runProperties2, "a:sym");
62706
62794
  if (symNode) {
62707
62795
  const symTypeface = this.normalizeTypefaceToken(xmlAttr(symNode, "typeface") || "");
62708
62796
  if (symTypeface) {
62709
62797
  style.symbolFont = symTypeface;
62710
62798
  }
62711
62799
  }
62712
- const langAttr = String(runProperties["@_lang"] || "").trim();
62800
+ const langAttr = String(runProperties2["@_lang"] || "").trim();
62713
62801
  if (langAttr) {
62714
62802
  style.language = langAttr;
62715
62803
  }
62716
- const kumimoji = this.parseOptionalBooleanAttr(runProperties["@_kumimoji"]);
62804
+ const kumimoji = this.parseOptionalBooleanAttr(runProperties2["@_kumimoji"]);
62717
62805
  if (kumimoji !== void 0) {
62718
62806
  style.kumimoji = kumimoji;
62719
62807
  }
62720
- const normalizeH = this.parseOptionalBooleanAttr(runProperties["@_normalizeH"]);
62808
+ const normalizeH = this.parseOptionalBooleanAttr(runProperties2["@_normalizeH"]);
62721
62809
  if (normalizeH !== void 0) {
62722
62810
  style.normalizeHeight = normalizeH;
62723
62811
  }
62724
- const noProof = this.parseOptionalBooleanAttr(runProperties["@_noProof"]);
62812
+ const noProof = this.parseOptionalBooleanAttr(runProperties2["@_noProof"]);
62725
62813
  if (noProof !== void 0) {
62726
62814
  style.noProof = noProof;
62727
62815
  }
62728
- const dirty = this.parseOptionalBooleanAttr(runProperties["@_dirty"]);
62816
+ const dirty = this.parseOptionalBooleanAttr(runProperties2["@_dirty"]);
62729
62817
  if (dirty !== void 0) {
62730
62818
  style.dirty = dirty;
62731
62819
  }
62732
- const err = this.parseOptionalBooleanAttr(runProperties["@_err"]);
62820
+ const err = this.parseOptionalBooleanAttr(runProperties2["@_err"]);
62733
62821
  if (err !== void 0) {
62734
62822
  style.spellingError = err;
62735
62823
  }
62736
- const smtClean = this.parseOptionalBooleanAttr(runProperties["@_smtClean"]);
62824
+ const smtClean = this.parseOptionalBooleanAttr(runProperties2["@_smtClean"]);
62737
62825
  if (smtClean !== void 0) {
62738
62826
  style.smartTagClean = smtClean;
62739
62827
  }
62740
- const bmk = String(runProperties["@_bmk"] || "").trim();
62828
+ const bmk = String(runProperties2["@_bmk"] || "").trim();
62741
62829
  if (bmk) {
62742
62830
  style.bookmark = bmk;
62743
62831
  }
62744
- const altLang = String(runProperties["@_altLang"] || "").trim();
62832
+ const altLang = String(runProperties2["@_altLang"] || "").trim();
62745
62833
  if (altLang) {
62746
62834
  style.altLanguage = altLang;
62747
62835
  }
62748
- if (runProperties["@_smtId"] !== void 0) {
62749
- const smtIdRaw = Number.parseInt(String(runProperties["@_smtId"]), 10);
62836
+ if (runProperties2["@_smtId"] !== void 0) {
62837
+ const smtIdRaw = Number.parseInt(String(runProperties2["@_smtId"]), 10);
62750
62838
  if (Number.isFinite(smtIdRaw)) {
62751
62839
  style.smartTagId = smtIdRaw;
62752
62840
  }
@@ -62755,16 +62843,16 @@ var PptxHandlerRuntime19 = class _PptxHandlerRuntime extends PptxHandlerRuntime1
62755
62843
  this.applyTextFontMetadata(style, eastAsian, "eastAsia");
62756
62844
  this.applyTextFontMetadata(style, complexScript, "complexScript");
62757
62845
  this.applyTextFontMetadata(style, symNode, "symbol");
62758
- const runEffectList = runProperties["a:effectLst"];
62846
+ const runEffectList = runProperties2["a:effectLst"];
62759
62847
  if (runEffectList && typeof runEffectList === "object") {
62760
62848
  this.applyTextRunEffects(style, runEffectList);
62761
62849
  }
62762
62850
  if (includeDefaultAlignment && runEffectList !== void 0 && (typeof runEffectList !== "object" || Object.keys(runEffectList).length === 0)) {
62763
62851
  style.textEffectsExplicitNone = true;
62764
62852
  }
62765
- this.applyTextRunEffectDag(style, runProperties);
62853
+ this.applyTextRunEffectDag(style, runProperties2);
62766
62854
  if (includeDefaultAlignment) {
62767
- const runExtLst = runProperties["a:extLst"];
62855
+ const runExtLst = runProperties2["a:extLst"];
62768
62856
  if (runExtLst && typeof runExtLst === "object") {
62769
62857
  style.runPropertiesExtLstXml = runExtLst;
62770
62858
  }
@@ -62875,7 +62963,7 @@ var PptxHandlerRuntime20 = class extends PptxHandlerRuntime19 {
62875
62963
  authoredRunStyle: authored,
62876
62964
  inheritedRunStyle: paragraphDefaultStyle
62877
62965
  });
62878
- const appendRunSegment = (value, runProperties) => {
62966
+ const appendRunSegment = (value, runProperties2) => {
62879
62967
  if (value === void 0 || value === null) {
62880
62968
  return;
62881
62969
  }
@@ -62884,7 +62972,7 @@ var PptxHandlerRuntime20 = class extends PptxHandlerRuntime19 {
62884
62972
  return;
62885
62973
  }
62886
62974
  const runStyle = withAuthoredSplit(
62887
- this.extractTextRunStyle(runProperties, paragraphAlign, relationshipMap)
62975
+ this.extractTextRunStyle(runProperties2, paragraphAlign, relationshipMap)
62888
62976
  );
62889
62977
  segments.push({
62890
62978
  text: runText2,
@@ -63771,7 +63859,7 @@ var PptxHandlerRuntime22 = class _PptxHandlerRuntime extends PptxHandlerRuntime2
63771
63859
  * `paragraphs` gives each paragraph's own alignment; without it only the
63772
63860
  * first paragraph takes the cell's.
63773
63861
  */
63774
- writeTableCellStyle(xmlCell, style, paragraphs) {
63862
+ writeTableCellStyle(xmlCell, style, paragraphs, runsCarryFormatting = false) {
63775
63863
  const rawTcPr = xmlCell["a:tcPr"];
63776
63864
  const existingTcPr = rawTcPr && typeof rawTcPr === "object" ? rawTcPr : void 0;
63777
63865
  const tcPr = existingTcPr ?? {};
@@ -63818,7 +63906,7 @@ var PptxHandlerRuntime22 = class _PptxHandlerRuntime extends PptxHandlerRuntime2
63818
63906
  }
63819
63907
  delete tcPr["a:tcMar"];
63820
63908
  writeDiagonalBorders(tcPr, style, _PptxHandlerRuntime.EMU_PER_PX);
63821
- if (!isRichCellTxBody(xmlCell["a:txBody"], this.ensureArray.bind(this))) {
63909
+ if (!runsCarryFormatting && !isRichCellTxBody(xmlCell["a:txBody"], this.ensureArray.bind(this))) {
63822
63910
  writeCellTextFormatting(xmlCell, style, this.ensureArray.bind(this), paragraphs);
63823
63911
  }
63824
63912
  const reordered = reorderObjectKeys(tcPr, TC_PR_BORDERS_ORDER);
@@ -64680,6 +64768,86 @@ function applyTableCellTextAndStyle(cellXml, text, stylePatch) {
64680
64768
  cellXml["a:txBody"] = txBody;
64681
64769
  }
64682
64770
 
64771
+ // pptx/core/core/runtime/table-cell-run-style-xml.ts
64772
+ function setRunFlag(rPr, attribute, value, on) {
64773
+ if (value) {
64774
+ rPr[attribute] = on;
64775
+ } else {
64776
+ delete rPr[attribute];
64777
+ }
64778
+ }
64779
+ var AFTER_LATIN = [
64780
+ "a:ea",
64781
+ "a:cs",
64782
+ "a:sym",
64783
+ "a:hlinkClick",
64784
+ "a:hlinkMouseOver",
64785
+ "a:rtl",
64786
+ "a:extLst"
64787
+ ];
64788
+ function setRunLatinTypeface(rPr, typeface) {
64789
+ const existing = rPr["a:latin"];
64790
+ const latin = {
64791
+ ...existing && typeof existing === "object" ? existing : {},
64792
+ "@_typeface": typeface
64793
+ };
64794
+ const tail = [];
64795
+ for (const key2 of AFTER_LATIN) {
64796
+ if (key2 in rPr) {
64797
+ tail.push([key2, rPr[key2]]);
64798
+ delete rPr[key2];
64799
+ }
64800
+ }
64801
+ delete rPr["a:latin"];
64802
+ rPr["a:latin"] = latin;
64803
+ for (const [key2, value] of tail) {
64804
+ rPr[key2] = value;
64805
+ }
64806
+ }
64807
+ function applyCellRunStyleUpdates(rPr, styleUpdates) {
64808
+ if ("bold" in styleUpdates) {
64809
+ setRunFlag(rPr, "@_b", styleUpdates.bold, "1");
64810
+ }
64811
+ if ("italic" in styleUpdates) {
64812
+ setRunFlag(rPr, "@_i", styleUpdates.italic, "1");
64813
+ }
64814
+ if ("underline" in styleUpdates) {
64815
+ setRunFlag(rPr, "@_u", styleUpdates.underline, "sng");
64816
+ }
64817
+ if ("strikethrough" in styleUpdates) {
64818
+ setRunFlag(rPr, "@_strike", styleUpdates.strikethrough, "sngStrike");
64819
+ }
64820
+ if (typeof styleUpdates.fontSize === "number" && styleUpdates.fontSize > 0) {
64821
+ rPr["@_sz"] = String(Math.round(styleUpdates.fontSize * 100));
64822
+ }
64823
+ if ("color" in styleUpdates && typeof styleUpdates.color === "string") {
64824
+ const hex3 = styleUpdates.color.replace("#", "");
64825
+ const tail = [];
64826
+ for (const key2 of Object.keys(rPr)) {
64827
+ if (key2.startsWith("a:") && !["a:ln"].includes(key2)) {
64828
+ tail.push([key2, rPr[key2]]);
64829
+ delete rPr[key2];
64830
+ }
64831
+ }
64832
+ rPr["a:solidFill"] = { "a:srgbClr": { "@_val": hex3 } };
64833
+ for (const [key2, value] of tail) {
64834
+ if (![
64835
+ "a:solidFill",
64836
+ "a:noFill",
64837
+ "a:gradFill",
64838
+ "a:pattFill",
64839
+ "a:blipFill",
64840
+ "a:grpFill"
64841
+ ].includes(key2)) {
64842
+ rPr[key2] = value;
64843
+ }
64844
+ }
64845
+ }
64846
+ if (typeof styleUpdates.fontFamily === "string" && styleUpdates.fontFamily) {
64847
+ setRunLatinTypeface(rPr, styleUpdates.fontFamily);
64848
+ }
64849
+ }
64850
+
64683
64851
  // pptx/core/core/runtime/table-structure-edit-xml.ts
64684
64852
  function cells(row) {
64685
64853
  return ensureArray11(row["a:tc"]);
@@ -64875,74 +65043,11 @@ function updateCellTextStyleInRawXml(element, rowIndex, colIndex, styleUpdates)
64875
65043
  }
64876
65044
  const runs = ensureArray11(paragraph["a:r"]);
64877
65045
  for (const run of runs) {
64878
- const rPr = ensureXmlChildOrCreate(run, "a:rPr", "first");
64879
- if ("bold" in styleUpdates) {
64880
- if (styleUpdates.bold) {
64881
- rPr["@_b"] = "1";
64882
- } else {
64883
- delete rPr["@_b"];
64884
- }
64885
- }
64886
- if ("italic" in styleUpdates) {
64887
- if (styleUpdates.italic) {
64888
- rPr["@_i"] = "1";
64889
- } else {
64890
- delete rPr["@_i"];
64891
- }
64892
- }
64893
- if ("underline" in styleUpdates) {
64894
- if (styleUpdates.underline) {
64895
- rPr["@_u"] = "sng";
64896
- } else {
64897
- delete rPr["@_u"];
64898
- }
64899
- }
64900
- if ("strikethrough" in styleUpdates) {
64901
- if (styleUpdates.strikethrough) {
64902
- rPr["@_strike"] = "sngStrike";
64903
- } else {
64904
- delete rPr["@_strike"];
64905
- }
64906
- }
64907
- if ("color" in styleUpdates && typeof styleUpdates.color === "string") {
64908
- const hex3 = styleUpdates.color.replace("#", "");
64909
- rPr["a:solidFill"] = { "a:srgbClr": { "@_val": hex3 } };
64910
- }
65046
+ applyCellRunStyleUpdates(ensureXmlChildOrCreate(run, "a:rPr", "first"), styleUpdates);
64911
65047
  }
64912
65048
  const endRPr = runs.length === 0 ? ensureXmlChild(paragraph, "a:endParaRPr") : void 0;
64913
65049
  if (endRPr) {
64914
- if ("bold" in styleUpdates) {
64915
- if (styleUpdates.bold) {
64916
- endRPr["@_b"] = "1";
64917
- } else {
64918
- delete endRPr["@_b"];
64919
- }
64920
- }
64921
- if ("italic" in styleUpdates) {
64922
- if (styleUpdates.italic) {
64923
- endRPr["@_i"] = "1";
64924
- } else {
64925
- delete endRPr["@_i"];
64926
- }
64927
- }
64928
- if ("underline" in styleUpdates) {
64929
- if (styleUpdates.underline) {
64930
- endRPr["@_u"] = "sng";
64931
- } else {
64932
- delete endRPr["@_u"];
64933
- }
64934
- }
64935
- if ("strikethrough" in styleUpdates) {
64936
- if (styleUpdates.strikethrough) {
64937
- endRPr["@_strike"] = "sngStrike";
64938
- } else {
64939
- delete endRPr["@_strike"];
64940
- }
64941
- }
64942
- if ("color" in styleUpdates && typeof styleUpdates.color === "string") {
64943
- const hex3 = styleUpdates.color.replace("#", "");
64944
- endRPr["a:solidFill"] = { "a:srgbClr": { "@_val": hex3 } };
64945
- }
65050
+ applyCellRunStyleUpdates(endRPr, styleUpdates);
64946
65051
  }
64947
65052
  }
64948
65053
  return newRawXml;
@@ -65174,9 +65279,11 @@ var PptxHandlerRuntime24 = class _PptxHandlerRuntime extends PptxHandlerRuntime2
65174
65279
  */
65175
65280
  serializeTableDataToXml(shape2, tableData, writeRichCellText) {
65176
65281
  const writeCellText = (xmlCell, cell) => {
65177
- if (!writeRichCellText?.(xmlCell, cell)) {
65178
- this.writeTableCellText(xmlCell, cell.text);
65282
+ if (writeRichCellText?.(xmlCell, cell)) {
65283
+ return true;
65179
65284
  }
65285
+ this.writeTableCellText(xmlCell, cell.text);
65286
+ return false;
65180
65287
  };
65181
65288
  try {
65182
65289
  const graphicData = xmlPath(shape2, "a:graphic", "a:graphicData");
@@ -65214,14 +65321,12 @@ var PptxHandlerRuntime24 = class _PptxHandlerRuntime extends PptxHandlerRuntime2
65214
65321
  if (!xmlCell) {
65215
65322
  continue;
65216
65323
  }
65217
- if (cell.text !== void 0) {
65218
- writeCellText(xmlCell, cell);
65219
- }
65324
+ const richText = cell.text !== void 0 && writeCellText(xmlCell, cell);
65220
65325
  if (styleChanged) {
65221
65326
  clearCellFormattingForStyleChange(xmlCell, cell.style);
65222
65327
  }
65223
65328
  if (cell.style) {
65224
- this.writeTableCellStyle(xmlCell, cell.style, cell.paragraphs);
65329
+ this.writeTableCellStyle(xmlCell, cell.style, cell.paragraphs, richText);
65225
65330
  }
65226
65331
  serializeCellExtraAttributes(xmlCell, cell.extraAttributes);
65227
65332
  }
@@ -65240,14 +65345,12 @@ var PptxHandlerRuntime24 = class _PptxHandlerRuntime extends PptxHandlerRuntime2
65240
65345
  const cell = dataRow.cells[cIdx];
65241
65346
  const xmlCell = xmlCells[cIdx];
65242
65347
  serializeCellMergeAttributes(xmlCell, cell);
65243
- if (cell.text !== void 0) {
65244
- writeCellText(xmlCell, cell);
65245
- }
65348
+ const richText = cell.text !== void 0 && writeCellText(xmlCell, cell);
65246
65349
  if (styleChanged) {
65247
65350
  clearCellFormattingForStyleChange(xmlCell, cell.style);
65248
65351
  }
65249
65352
  if (cell.style) {
65250
- this.writeTableCellStyle(xmlCell, cell.style, cell.paragraphs);
65353
+ this.writeTableCellStyle(xmlCell, cell.style, cell.paragraphs, richText);
65251
65354
  }
65252
65355
  serializeCellExtraAttributes(xmlCell, cell.extraAttributes);
65253
65356
  recordTableParagraphOrder(xmlCell, cell.textRuns);
@@ -66417,37 +66520,37 @@ var PptxHandlerRuntime24 = class _PptxHandlerRuntime extends PptxHandlerRuntime2
66417
66520
  */
66418
66521
  buildNewSeriesXml(seriesIndex, seriesData, categories, templateSeries, dateCategories, isLineFamily = false) {
66419
66522
  if (templateSeries) {
66420
- const clone = JSON.parse(JSON.stringify(templateSeries));
66421
- regenerateClonedUniqueId(clone, (key2) => this.compatibilityService.getXmlLocalName(key2));
66422
- const idxNode = this.xmlLookupService.getChildByLocalName(clone, "idx");
66523
+ const clone2 = JSON.parse(JSON.stringify(templateSeries));
66524
+ regenerateClonedUniqueId(clone2, (key2) => this.compatibilityService.getXmlLocalName(key2));
66525
+ const idxNode = this.xmlLookupService.getChildByLocalName(clone2, "idx");
66423
66526
  if (idxNode) {
66424
66527
  idxNode["@_val"] = String(seriesIndex);
66425
66528
  }
66426
- const orderNode = this.xmlLookupService.getChildByLocalName(clone, "order");
66529
+ const orderNode = this.xmlLookupService.getChildByLocalName(clone2, "order");
66427
66530
  if (orderNode) {
66428
66531
  orderNode["@_val"] = String(seriesIndex);
66429
66532
  }
66430
- const txNode = this.xmlLookupService.getChildByLocalName(clone, "tx");
66533
+ const txNode = this.xmlLookupService.getChildByLocalName(clone2, "tx");
66431
66534
  if (txNode) {
66432
66535
  this.updateChartCacheValues(txNode, false, [seriesData.name]);
66433
66536
  }
66434
- const catNode = this.xmlLookupService.getChildByLocalName(clone, "cat") || this.xmlLookupService.getChildByLocalName(clone, "xVal");
66537
+ const catNode = this.xmlLookupService.getChildByLocalName(clone2, "cat") || this.xmlLookupService.getChildByLocalName(clone2, "xVal");
66435
66538
  if (catNode) {
66436
66539
  const dateValues = dateCategories?.values.map(String);
66437
66540
  this.updateChartCacheValues(catNode, Boolean(dateValues), dateValues ?? categories);
66438
66541
  }
66439
- const valNode = this.xmlLookupService.getChildByLocalName(clone, "val") || this.xmlLookupService.getChildByLocalName(clone, "yVal");
66542
+ const valNode = this.xmlLookupService.getChildByLocalName(clone2, "val") || this.xmlLookupService.getChildByLocalName(clone2, "yVal");
66440
66543
  if (valNode) {
66441
66544
  this.updateChartCacheValues(valNode, true, seriesData.values.map(String));
66442
66545
  }
66443
66546
  applySeriesGradientToXml(
66444
- clone,
66547
+ clone2,
66445
66548
  seriesData.gradientFill,
66446
66549
  (key2) => this.compatibilityService.getXmlLocalName(key2),
66447
66550
  this.chartGradientWriteOptions(isLineFamily)
66448
66551
  );
66449
66552
  if (seriesData.color && !(seriesData.gradientFill && !isLineFamily)) {
66450
- const spPr = this.xmlLookupService.getChildByLocalName(clone, "spPr");
66553
+ const spPr = this.xmlLookupService.getChildByLocalName(clone2, "spPr");
66451
66554
  if (spPr) {
66452
66555
  writeSeriesColorToSpPr(
66453
66556
  spPr,
@@ -66458,7 +66561,7 @@ var PptxHandlerRuntime24 = class _PptxHandlerRuntime extends PptxHandlerRuntime2
66458
66561
  );
66459
66562
  }
66460
66563
  }
66461
- return clone;
66564
+ return clone2;
66462
66565
  }
66463
66566
  const colorHex = (seriesData.color || "#4472C4").replace("#", "");
66464
66567
  const ser = {
@@ -67774,6 +67877,15 @@ var PptxHandlerRuntime25 = class _PptxHandlerRuntime extends PptxHandlerRuntime2
67774
67877
  rId = variant.originalRId;
67775
67878
  bytesToWrite = variant.originalPartBytes;
67776
67879
  } else {
67880
+ if (!mayNewlyEmbedFontData(variant, fontData)) {
67881
+ this.compatibilityService.reportWarning({
67882
+ code: "EMBEDDED_FONT_NOT_EMBEDDABLE",
67883
+ message: `Font "${typeface}" was not embedded: its licence (OS/2 fsType) does not allow embedding it in an editable presentation.`,
67884
+ scope: "save",
67885
+ xmlPath: `/p:presentation/p:embeddedFontLst/p:embeddedFont[@typeface="${typeface}"]`
67886
+ });
67887
+ continue;
67888
+ }
67777
67889
  guid = variant.fontGuid ?? generateFontGuid();
67778
67890
  const fileName = `{${guid}}.fntdata`;
67779
67891
  fontPartPath = `ppt/fonts/${fileName}`;
@@ -67798,6 +67910,9 @@ var PptxHandlerRuntime25 = class _PptxHandlerRuntime extends PptxHandlerRuntime2
67798
67910
  const variantKey = variant.bold && variant.italic ? "p:boldItalic" : variant.bold ? "p:bold" : variant.italic ? "p:italic" : "p:regular";
67799
67911
  entry[variantKey] = { "@_r:id": rId };
67800
67912
  }
67913
+ if (Object.keys(entry).length === 1) {
67914
+ continue;
67915
+ }
67801
67916
  embeddedFontEntries.push(entry);
67802
67917
  }
67803
67918
  relsRoot.Relationship = relationships2;
@@ -67808,7 +67923,10 @@ var PptxHandlerRuntime25 = class _PptxHandlerRuntime extends PptxHandlerRuntime2
67808
67923
  "p:embeddedFont": embeddedFontEntries.length === 1 ? embeddedFontEntries[0] : embeddedFontEntries
67809
67924
  };
67810
67925
  const metadata = explicitFontList ? serializeEmbeddedFontList(explicitFontList) : explicitFonts === void 0 && this.loadedEmbeddedFontList ? serializeEmbeddedFontList(this.loadedEmbeddedFontList) : generatedList;
67811
- setEmbeddedFontList(this.presentationData, metadata);
67926
+ setEmbeddedFontList(
67927
+ this.presentationData,
67928
+ metadata === generatedList && embeddedFontEntries.length === 0 ? null : metadata
67929
+ );
67812
67930
  }
67813
67931
  const ctXml = await this.zip.file("[Content_Types].xml")?.async("string");
67814
67932
  if (ctXml) {
@@ -69233,6 +69351,153 @@ function applyNewPictureLayout(blipFill, layout, ctx) {
69233
69351
  }
69234
69352
  }
69235
69353
 
69354
+ // pptx/core/core/runtime/table-cell-rich-xml.ts
69355
+ var PT_PER_PX = 72 / 96;
69356
+ var DIFF_KEYS = [
69357
+ "bold",
69358
+ "italic",
69359
+ "underline",
69360
+ "strikethrough",
69361
+ "color",
69362
+ "fontFamily",
69363
+ "fontSize",
69364
+ "baseline",
69365
+ "characterSpacing"
69366
+ ];
69367
+ function hasTableCellSource(segments) {
69368
+ return segments.some((segment) => segment.tableRun || segment.tableParagraph);
69369
+ }
69370
+ function clone(value) {
69371
+ return value === void 0 ? value : structuredClone(value);
69372
+ }
69373
+ function sourceRunProperties(source) {
69374
+ const rPr = source.xml["a:rPr"];
69375
+ if (rPr === void 0) {
69376
+ return void 0;
69377
+ }
69378
+ return rPr && typeof rPr === "object" ? clone(rPr) : {};
69379
+ }
69380
+ function runProperties(segment, source) {
69381
+ const rPr = sourceRunProperties(source);
69382
+ const before = source.style;
69383
+ const after = segment.style ?? {};
69384
+ const updates = {};
69385
+ for (const key2 of DIFF_KEYS) {
69386
+ if (before[key2] !== after[key2]) {
69387
+ updates[key2] = after[key2];
69388
+ }
69389
+ }
69390
+ if (Object.keys(updates).length === 0) {
69391
+ return rPr;
69392
+ }
69393
+ const target = rPr ?? {};
69394
+ if (typeof updates.fontSize === "number") {
69395
+ updates.fontSize = Math.round(updates.fontSize * PT_PER_PX * 100) / 100;
69396
+ }
69397
+ applyCellRunStyleUpdates(target, updates);
69398
+ const off = {
69399
+ bold: ["@_b", "0"],
69400
+ italic: ["@_i", "0"],
69401
+ underline: ["@_u", "none"],
69402
+ strikethrough: ["@_strike", "noStrike"]
69403
+ };
69404
+ for (const [key2, [attribute, value]] of Object.entries(off)) {
69405
+ if (key2 in updates && updates[key2] === false) {
69406
+ target[attribute] = value;
69407
+ }
69408
+ }
69409
+ if ("baseline" in updates) {
69410
+ if (updates.baseline) {
69411
+ target["@_baseline"] = String(updates.baseline);
69412
+ } else {
69413
+ delete target["@_baseline"];
69414
+ }
69415
+ }
69416
+ if ("characterSpacing" in updates) {
69417
+ if (updates.characterSpacing) {
69418
+ target["@_spc"] = String(updates.characterSpacing);
69419
+ } else {
69420
+ delete target["@_spc"];
69421
+ }
69422
+ }
69423
+ return target;
69424
+ }
69425
+ function textRun2(rPr, text) {
69426
+ const run = {};
69427
+ if (rPr !== void 0) {
69428
+ run["a:rPr"] = rPr;
69429
+ }
69430
+ run["a:t"] = text;
69431
+ return run;
69432
+ }
69433
+ function segmentChild(segment, runPropertiesFromStyle) {
69434
+ const source = segment.tableRun;
69435
+ if (segment.isLineBreak) {
69436
+ const br = source?.tag === "a:br" && source.xml ? clone(source.xml) : {};
69437
+ return { tag: "a:br", value: br && typeof br === "object" ? br : {} };
69438
+ }
69439
+ if (!segment.text) {
69440
+ return void 0;
69441
+ }
69442
+ if (!source || source.tag === "a:br") {
69443
+ return {
69444
+ tag: "a:r",
69445
+ value: textRun2(runPropertiesFromStyle(segment.style ?? {}), segment.text)
69446
+ };
69447
+ }
69448
+ const rPr = runProperties(segment, source);
69449
+ const unchangedField = source.tag === "a:fld" && segment.fieldType !== void 0 && segment.text === (xmlText(source.xml["a:t"]) ?? "");
69450
+ if (!unchangedField) {
69451
+ return { tag: "a:r", value: textRun2(rPr, segment.text) };
69452
+ }
69453
+ const field = {};
69454
+ for (const [key2, value] of Object.entries(source.xml)) {
69455
+ if (key2.startsWith("@_")) {
69456
+ field[key2] = value;
69457
+ }
69458
+ }
69459
+ if (rPr !== void 0) {
69460
+ field["a:rPr"] = rPr;
69461
+ }
69462
+ if (source.xml["a:pPr"] !== void 0) {
69463
+ field["a:pPr"] = clone(source.xml["a:pPr"]);
69464
+ }
69465
+ field["a:t"] = segment.text;
69466
+ return { tag: "a:fld", value: field };
69467
+ }
69468
+ function paragraphsOf(segments) {
69469
+ const paragraphs = [[]];
69470
+ for (const segment of segments) {
69471
+ if (segment.isParagraphBreak) {
69472
+ paragraphs.push([]);
69473
+ } else {
69474
+ paragraphs.at(-1).push(segment);
69475
+ }
69476
+ }
69477
+ return paragraphs;
69478
+ }
69479
+ function buildRichCellParagraphs(segments, runPropertiesFromStyle) {
69480
+ let lastSource;
69481
+ return paragraphsOf(segments).map((paragraphSegments) => {
69482
+ const source = paragraphSegments.find((segment) => segment.tableParagraph)?.tableParagraph;
69483
+ const layout = source ?? lastSource;
69484
+ lastSource = layout;
69485
+ const paragraph = {};
69486
+ if (layout?.["a:pPr"] !== void 0) {
69487
+ paragraph["a:pPr"] = clone(layout["a:pPr"]);
69488
+ }
69489
+ const children6 = paragraphSegments.flatMap((segment) => {
69490
+ const child15 = segmentChild(segment, runPropertiesFromStyle);
69491
+ return child15 ? [child15] : [];
69492
+ });
69493
+ writeParagraphChildren(paragraph, children6);
69494
+ if (layout?.["a:endParaRPr"] !== void 0) {
69495
+ paragraph["a:endParaRPr"] = clone(layout["a:endParaRPr"]);
69496
+ }
69497
+ return paragraph;
69498
+ });
69499
+ }
69500
+
69236
69501
  // pptx/core/core/runtime/table-cell-segments-xml.ts
69237
69502
  function tableCellSegmentsText(segments) {
69238
69503
  return segments.map((segment) => segment.isParagraphBreak ? "\n" : segment.text ?? "").join("");
@@ -69295,6 +69560,16 @@ var PptxHandlerRuntime32 = class _PptxHandlerRuntime extends PptxHandlerRuntime3
69295
69560
  if (!segments) {
69296
69561
  return false;
69297
69562
  }
69563
+ if (hasTableCellSource(segments)) {
69564
+ xmlCell["a:txBody"] = buildCellTextBody(
69565
+ xmlCell["a:txBody"],
69566
+ buildRichCellParagraphs(
69567
+ segments,
69568
+ (style) => this.createRunPropertiesFromTextStyle(style, links?.resolveHyperlinkRelationshipId)
69569
+ )
69570
+ );
69571
+ return true;
69572
+ }
69298
69573
  const paragraphs = this.createParagraphsFromTextContent(
69299
69574
  cell.text,
69300
69575
  cell.style?.align ? { align: cell.style.align } : void 0,
@@ -85908,6 +86183,19 @@ var PptxHandlerRuntime99 = class extends PptxHandlerRuntime98 {
85908
86183
  originalPartBytes: new Uint8Array(fontBinary),
85909
86184
  fontKey
85910
86185
  };
86186
+ source.fsType = readEmbeddedFontPartFsType(
86187
+ source.originalPartBytes,
86188
+ resolveEmbeddedFontGuid(source)
86189
+ );
86190
+ if (!mayDisplayFontWithFsType(source.fsType)) {
86191
+ this.compatibilityService.reportWarning({
86192
+ code: "EMBEDDED_FONT_RESTRICTED",
86193
+ message: `Embedded font "${typeface}" has a restricted licence (OS/2 fsType) and is not used for display; its font part is kept unchanged on save.`,
86194
+ scope: "presentation",
86195
+ xmlPath: fontPath
86196
+ });
86197
+ return createWithheldEmbeddedFont(source);
86198
+ }
85911
86199
  if (this.eagerDecodeEmbeddedFonts) {
85912
86200
  return decodeEmbeddedFontPart(source);
85913
86201
  }
@@ -87680,9 +87968,9 @@ var createDefaultPptxHandlerRuntime = () => new PptxHandlerRuntime107();
87680
87968
 
87681
87969
  // pptx/core/core/runtime/table-style-editor.ts
87682
87970
  function deepClone(value) {
87683
- const clone = globalThis.structuredClone;
87684
- if (clone) {
87685
- return clone(value);
87971
+ const clone2 = globalThis.structuredClone;
87972
+ if (clone2) {
87973
+ return clone2(value);
87686
87974
  }
87687
87975
  return JSON.parse(JSON.stringify(value));
87688
87976
  }