ooxml-core 1.37.0 → 1.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (335) hide show
  1. package/README.md +7 -0
  2. package/dist/automation/index.cjs +207 -207
  3. package/dist/automation/index.mjs +207 -207
  4. package/dist/{chunk-M2DFN3SP.mjs → chunk-XBIZIBTJ.mjs} +507 -10
  5. package/dist/collab/merge-values.d.ts +14 -0
  6. package/dist/collab/merge-values.d.ts.map +1 -0
  7. package/dist/docx/embedded.cjs +476 -474
  8. package/dist/docx/embedded.mjs +476 -474
  9. package/dist/docx/index.cjs +1075 -719
  10. package/dist/docx/index.d.ts +1 -0
  11. package/dist/docx/index.d.ts.map +1 -1
  12. package/dist/docx/index.mjs +1075 -720
  13. package/dist/docx/layout/index.cjs +4 -0
  14. package/dist/docx/layout/index.mjs +4 -0
  15. package/dist/docx/load/index.cjs +164 -164
  16. package/dist/docx/load/index.mjs +164 -164
  17. package/dist/docx/merge-snapshots.d.ts +9 -0
  18. package/dist/docx/merge-snapshots.d.ts.map +1 -0
  19. package/dist/docx/ui/index.cjs +155 -155
  20. package/dist/docx/ui/index.mjs +155 -155
  21. package/dist/embedding/index.cjs +207 -0
  22. package/dist/embedding/index.d.ts +3 -0
  23. package/dist/embedding/index.d.ts.map +1 -1
  24. package/dist/embedding/index.mjs +205 -1
  25. package/dist/embedding/onedrive/client.d.ts +4 -0
  26. package/dist/embedding/onedrive/client.d.ts.map +1 -0
  27. package/dist/embedding/onedrive/index.cjs +617 -0
  28. package/dist/embedding/onedrive/index.d.ts +6 -0
  29. package/dist/embedding/onedrive/index.d.ts.map +1 -0
  30. package/dist/embedding/onedrive/index.mjs +611 -0
  31. package/dist/embedding/onedrive/metadata.d.ts +6 -0
  32. package/dist/embedding/onedrive/metadata.d.ts.map +1 -0
  33. package/dist/embedding/onedrive/requests.d.ts +8 -0
  34. package/dist/embedding/onedrive/requests.d.ts.map +1 -0
  35. package/dist/embedding/onedrive/session.d.ts +4 -0
  36. package/dist/embedding/onedrive/session.d.ts.map +1 -0
  37. package/dist/embedding/onedrive/transport.d.ts +9 -0
  38. package/dist/embedding/onedrive/transport.d.ts.map +1 -0
  39. package/dist/embedding/onedrive/types.d.ts +86 -0
  40. package/dist/embedding/onedrive/types.d.ts.map +1 -0
  41. package/dist/embedding/onedrive/upload.d.ts +3 -0
  42. package/dist/embedding/onedrive/upload.d.ts.map +1 -0
  43. package/dist/embedding/storage-merge.d.ts +8 -0
  44. package/dist/embedding/storage-merge.d.ts.map +1 -0
  45. package/dist/embedding/storage-session.d.ts +7 -0
  46. package/dist/embedding/storage-session.d.ts.map +1 -0
  47. package/dist/embedding/versioned-storage.d.ts +67 -0
  48. package/dist/embedding/versioned-storage.d.ts.map +1 -0
  49. package/dist/index.cjs +1013 -340
  50. package/dist/index.mjs +1013 -340
  51. package/dist/opc/index.cjs +680 -216
  52. package/dist/opc/index.d.ts +1 -0
  53. package/dist/opc/index.d.ts.map +1 -1
  54. package/dist/opc/index.mjs +680 -217
  55. package/dist/opc/merge-snapshots.d.ts +26 -0
  56. package/dist/opc/merge-snapshots.d.ts.map +1 -0
  57. package/dist/pptx/automation/index.cjs +20 -6
  58. package/dist/pptx/automation/index.d.ts +8 -17
  59. package/dist/pptx/automation/index.d.ts.map +1 -1
  60. package/dist/pptx/automation/index.mjs +1 -1
  61. package/dist/pptx/automation/schemas/chart-formatting-schemas.d.ts +1 -3
  62. package/dist/pptx/automation/schemas/chart-formatting-schemas.d.ts.map +1 -1
  63. package/dist/pptx/automation/schemas/chart-schemas.d.ts +1 -3
  64. package/dist/pptx/automation/schemas/chart-schemas.d.ts.map +1 -1
  65. package/dist/pptx/automation/schemas/chart-user-shape-schemas.d.ts +1 -3
  66. package/dist/pptx/automation/schemas/chart-user-shape-schemas.d.ts.map +1 -1
  67. package/dist/pptx/automation/schemas/element-schemas.d.ts +1 -3
  68. package/dist/pptx/automation/schemas/element-schemas.d.ts.map +1 -1
  69. package/dist/pptx/automation/schemas/export-schemas.d.ts +1 -3
  70. package/dist/pptx/automation/schemas/export-schemas.d.ts.map +1 -1
  71. package/dist/pptx/automation/schemas/geometry-schemas.d.ts +1 -3
  72. package/dist/pptx/automation/schemas/geometry-schemas.d.ts.map +1 -1
  73. package/dist/pptx/automation/schemas/hyperlink-schemas.d.ts +1 -3
  74. package/dist/pptx/automation/schemas/hyperlink-schemas.d.ts.map +1 -1
  75. package/dist/pptx/automation/schemas/index.d.ts +1 -3
  76. package/dist/pptx/automation/schemas/index.d.ts.map +1 -1
  77. package/dist/pptx/automation/schemas/json-schemas.d.ts +1 -3
  78. package/dist/pptx/automation/schemas/json-schemas.d.ts.map +1 -1
  79. package/dist/pptx/automation/schemas/layout-schemas.d.ts +1 -3
  80. package/dist/pptx/automation/schemas/layout-schemas.d.ts.map +1 -1
  81. package/dist/pptx/automation/schemas/lock-schemas.d.ts +1 -3
  82. package/dist/pptx/automation/schemas/lock-schemas.d.ts.map +1 -1
  83. package/dist/pptx/automation/schemas/metadata-schemas.d.ts +1 -3
  84. package/dist/pptx/automation/schemas/metadata-schemas.d.ts.map +1 -1
  85. package/dist/pptx/automation/schemas/ole-schemas.d.ts +1 -3
  86. package/dist/pptx/automation/schemas/ole-schemas.d.ts.map +1 -1
  87. package/dist/pptx/automation/schemas/presentation-schemas.d.ts +1 -3
  88. package/dist/pptx/automation/schemas/presentation-schemas.d.ts.map +1 -1
  89. package/dist/pptx/automation/schemas/section-schemas.d.ts +1 -3
  90. package/dist/pptx/automation/schemas/section-schemas.d.ts.map +1 -1
  91. package/dist/pptx/automation/schemas/slide-schemas.d.ts +1 -3
  92. package/dist/pptx/automation/schemas/slide-schemas.d.ts.map +1 -1
  93. package/dist/pptx/automation/schemas/smartart-schemas.d.ts +1 -3
  94. package/dist/pptx/automation/schemas/smartart-schemas.d.ts.map +1 -1
  95. package/dist/pptx/automation/schemas/table-style-schemas.d.ts +1 -3
  96. package/dist/pptx/automation/schemas/table-style-schemas.d.ts.map +1 -1
  97. package/dist/pptx/automation/schemas/template-schemas.d.ts +1 -3
  98. package/dist/pptx/automation/schemas/template-schemas.d.ts.map +1 -1
  99. package/dist/pptx/automation/schemas/theme-schemas.d.ts +1 -3
  100. package/dist/pptx/automation/schemas/theme-schemas.d.ts.map +1 -1
  101. package/dist/pptx/automation/schemas/validation-schemas.d.ts +1 -3
  102. package/dist/pptx/automation/schemas/validation-schemas.d.ts.map +1 -1
  103. package/dist/pptx/chunks/{collaboration-text-codec-Du_XeE_i.d.ts → collaboration-text-codec-1VmwD3yq.d.ts} +1 -3
  104. package/dist/pptx/chunks/collaboration-text-codec-1VmwD3yq.d.ts.map +1 -0
  105. package/dist/pptx/chunks/{collaboration-text-merge-DWWWdT_t.d.ts → collaboration-text-merge-B-tth-0W.d.ts} +2 -4
  106. package/dist/pptx/chunks/collaboration-text-merge-B-tth-0W.d.ts.map +1 -0
  107. package/dist/pptx/chunks/{collaboration-text-positions-MMT3GkZi.d.ts → collaboration-text-positions-D-1Jo1Fz.d.ts} +1 -3
  108. package/dist/pptx/chunks/collaboration-text-positions-D-1Jo1Fz.d.ts.map +1 -0
  109. package/dist/pptx/chunks/{collaboration-text-session-D0NOLQk7.d.ts → collaboration-text-session-CWHTaWF4.d.ts} +4 -6
  110. package/dist/pptx/chunks/collaboration-text-session-CWHTaWF4.d.ts.map +1 -0
  111. package/dist/pptx/chunks/{collaboration-text-session-delta-CzJGrTKJ.d.ts → collaboration-text-session-delta-Dxzybssp.d.ts} +2 -4
  112. package/dist/pptx/chunks/collaboration-text-session-delta-Dxzybssp.d.ts.map +1 -0
  113. package/dist/pptx/chunks/{color-ref-DT599vEx.d.ts → color-ref-CwUQoKPJ.d.ts} +1 -3
  114. package/dist/pptx/chunks/color-ref-CwUQoKPJ.d.ts.map +1 -0
  115. package/dist/pptx/chunks/{elements-f3UbFph-.d.ts → elements-DheCTwi0.d.ts} +4 -54
  116. package/dist/pptx/chunks/elements-DheCTwi0.d.ts.map +1 -0
  117. package/dist/pptx/chunks/{index-Bp-1pGo1.d.ts → index-B4ofjG6_.d.ts} +6 -384
  118. package/dist/pptx/chunks/index-B4ofjG6_.d.ts.map +1 -0
  119. package/dist/pptx/chunks/{index-BnH2QjYm.d.ts → index-Jcce8TlI.d.ts} +5 -37
  120. package/dist/pptx/chunks/index-Jcce8TlI.d.ts.map +1 -0
  121. package/dist/pptx/chunks/{index-pLLN4OTz.d.ts → index-bgj0Ztnq.d.ts} +23 -543
  122. package/dist/pptx/chunks/index-bgj0Ztnq.d.ts.map +1 -0
  123. package/dist/pptx/chunks/{inspection-status-DjiWd_Aa.d.ts → inspection-status-TKac7eqb.d.ts} +1 -13
  124. package/dist/pptx/chunks/inspection-status-TKac7eqb.d.ts.map +1 -0
  125. package/dist/pptx/chunks/{schemas-fuDGetRe.d.ts → schemas-LHsDbVOw.d.ts} +1 -29
  126. package/dist/pptx/chunks/schemas-LHsDbVOw.d.ts.map +1 -0
  127. package/dist/pptx/chunks/{smart-art-CmOrPLLQ.d.ts → smart-art-DB37AsFP.d.ts} +2 -46
  128. package/dist/pptx/chunks/smart-art-DB37AsFP.d.ts.map +1 -0
  129. package/dist/pptx/chunks/{text-operations-D5sgspO6.d.ts → text-operations-CdgEnFuK.d.ts} +4 -32
  130. package/dist/pptx/chunks/text-operations-CdgEnFuK.d.ts.map +1 -0
  131. package/dist/pptx/chunks/{text-P9xVnXXf.d.ts → text-t_wJ2OwM.d.ts} +2 -12
  132. package/dist/pptx/chunks/text-t_wJ2OwM.d.ts.map +1 -0
  133. package/dist/pptx/cli/index.cjs +20 -6
  134. package/dist/pptx/cli/index.d.ts +1 -3
  135. package/dist/pptx/cli/index.d.ts.map +1 -1
  136. package/dist/pptx/converter/index.cjs +7 -0
  137. package/dist/pptx/converter/index.d.ts +1 -1
  138. package/dist/pptx/editor/ai/table-merge.d.ts +0 -2
  139. package/dist/pptx/editor/ai/table-merge.d.ts.map +1 -1
  140. package/dist/pptx/editor/loader/element-patch-walker.d.ts +0 -2
  141. package/dist/pptx/editor/loader/element-patch-walker.d.ts.map +1 -1
  142. package/dist/pptx/editor/loader/is-external-url.d.ts +0 -2
  143. package/dist/pptx/editor/loader/is-external-url.d.ts.map +1 -1
  144. package/dist/pptx/editor/loader/lazy-image-resolution.d.ts +0 -2
  145. package/dist/pptx/editor/loader/lazy-image-resolution.d.ts.map +1 -1
  146. package/dist/pptx/editor/loader/load-content-helpers.d.ts +0 -2
  147. package/dist/pptx/editor/loader/load-content-helpers.d.ts.map +1 -1
  148. package/dist/pptx/editor/loader/table-style-image-paths.d.ts +0 -2
  149. package/dist/pptx/editor/loader/table-style-image-paths.d.ts.map +1 -1
  150. package/dist/pptx/editor/loader/text-fill-image-paths.d.ts +0 -2
  151. package/dist/pptx/editor/loader/text-fill-image-paths.d.ts.map +1 -1
  152. package/dist/pptx/editor/render/bullet-list.d.ts +0 -2
  153. package/dist/pptx/editor/render/bullet-list.d.ts.map +1 -1
  154. package/dist/pptx/editor/render/bullet-toggle.d.ts +0 -2
  155. package/dist/pptx/editor/render/bullet-toggle.d.ts.map +1 -1
  156. package/dist/pptx/editor/render/chart-user-shape-edit.d.ts +0 -2
  157. package/dist/pptx/editor/render/chart-user-shape-edit.d.ts.map +1 -1
  158. package/dist/pptx/editor/render/clone.d.ts +0 -2
  159. package/dist/pptx/editor/render/clone.d.ts.map +1 -1
  160. package/dist/pptx/editor/render/collaboration-active-session.d.ts +0 -2
  161. package/dist/pptx/editor/render/collaboration-active-session.d.ts.map +1 -1
  162. package/dist/pptx/editor/render/collaboration-departure.d.ts +0 -2
  163. package/dist/pptx/editor/render/collaboration-departure.d.ts.map +1 -1
  164. package/dist/pptx/editor/render/collaboration-live-patch-target.d.ts +0 -2
  165. package/dist/pptx/editor/render/collaboration-live-patch-target.d.ts.map +1 -1
  166. package/dist/pptx/editor/render/collaboration-load-origin.d.ts +0 -2
  167. package/dist/pptx/editor/render/collaboration-load-origin.d.ts.map +1 -1
  168. package/dist/pptx/editor/render/collaboration-reconcile.d.ts +0 -2
  169. package/dist/pptx/editor/render/collaboration-reconcile.d.ts.map +1 -1
  170. package/dist/pptx/editor/render/collaboration-sync.d.ts +4 -8
  171. package/dist/pptx/editor/render/collaboration-sync.d.ts.map +1 -1
  172. package/dist/pptx/editor/render/collaboration-text-codec.d.ts +1 -1
  173. package/dist/pptx/editor/render/collaboration-text-lease.d.ts +0 -2
  174. package/dist/pptx/editor/render/collaboration-text-lease.d.ts.map +1 -1
  175. package/dist/pptx/editor/render/collaboration-text-merge.d.ts +1 -1
  176. package/dist/pptx/editor/render/collaboration-text-native-edit.d.ts +2 -4
  177. package/dist/pptx/editor/render/collaboration-text-native-edit.d.ts.map +1 -1
  178. package/dist/pptx/editor/render/collaboration-text-positions.d.ts +1 -1
  179. package/dist/pptx/editor/render/collaboration-text-projection.d.ts +1 -3
  180. package/dist/pptx/editor/render/collaboration-text-projection.d.ts.map +1 -1
  181. package/dist/pptx/editor/render/collaboration-text-session-apply.d.ts +3 -5
  182. package/dist/pptx/editor/render/collaboration-text-session-apply.d.ts.map +1 -1
  183. package/dist/pptx/editor/render/collaboration-text-session-delta.d.ts +1 -1
  184. package/dist/pptx/editor/render/collaboration-text-session-paragraph.d.ts +1 -3
  185. package/dist/pptx/editor/render/collaboration-text-session-paragraph.d.ts.map +1 -1
  186. package/dist/pptx/editor/render/collaboration-text-session.d.ts +1 -1
  187. package/dist/pptx/editor/render/collaboration-text-snapshot-positions.d.ts +2 -4
  188. package/dist/pptx/editor/render/collaboration-text-snapshot-positions.d.ts.map +1 -1
  189. package/dist/pptx/editor/render/custom-show-operations.d.ts +0 -2
  190. package/dist/pptx/editor/render/custom-show-operations.d.ts.map +1 -1
  191. package/dist/pptx/editor/render/deck-save-encryption.d.ts +0 -2
  192. package/dist/pptx/editor/render/deck-save-encryption.d.ts.map +1 -1
  193. package/dist/pptx/editor/render/editor-history.d.ts +0 -2
  194. package/dist/pptx/editor/render/editor-history.d.ts.map +1 -1
  195. package/dist/pptx/editor/render/editor-mutations.d.ts +0 -2
  196. package/dist/pptx/editor/render/editor-mutations.d.ts.map +1 -1
  197. package/dist/pptx/editor/render/element-locks.d.ts +0 -2
  198. package/dist/pptx/editor/render/element-locks.d.ts.map +1 -1
  199. package/dist/pptx/editor/render/element-operations.d.ts +0 -2
  200. package/dist/pptx/editor/render/element-operations.d.ts.map +1 -1
  201. package/dist/pptx/editor/render/element.d.ts +0 -2
  202. package/dist/pptx/editor/render/element.d.ts.map +1 -1
  203. package/dist/pptx/editor/render/find-replace.d.ts +2 -4
  204. package/dist/pptx/editor/render/find-replace.d.ts.map +1 -1
  205. package/dist/pptx/editor/render/font-family-update.d.ts +1 -3
  206. package/dist/pptx/editor/render/font-family-update.d.ts.map +1 -1
  207. package/dist/pptx/editor/render/group-drill.d.ts +0 -2
  208. package/dist/pptx/editor/render/group-drill.d.ts.map +1 -1
  209. package/dist/pptx/editor/render/inline-list-body.d.ts +0 -2
  210. package/dist/pptx/editor/render/inline-list-body.d.ts.map +1 -1
  211. package/dist/pptx/editor/render/paragraph-geometry-overrides.d.ts +1 -3
  212. package/dist/pptx/editor/render/paragraph-geometry-overrides.d.ts.map +1 -1
  213. package/dist/pptx/editor/render/remap-empty-paragraph.d.ts +0 -2
  214. package/dist/pptx/editor/render/remap-empty-paragraph.d.ts.map +1 -1
  215. package/dist/pptx/editor/render/remap-paragraph-sources.d.ts +0 -2
  216. package/dist/pptx/editor/render/remap-paragraph-sources.d.ts.map +1 -1
  217. package/dist/pptx/editor/render/remap-text-bullets.d.ts +0 -2
  218. package/dist/pptx/editor/render/remap-text-bullets.d.ts.map +1 -1
  219. package/dist/pptx/editor/render/remap-text.d.ts +0 -2
  220. package/dist/pptx/editor/render/remap-text.d.ts.map +1 -1
  221. package/dist/pptx/editor/render/schema-label-keys.d.ts +0 -2
  222. package/dist/pptx/editor/render/schema-label-keys.d.ts.map +1 -1
  223. package/dist/pptx/editor/render/section-operations.d.ts +0 -2
  224. package/dist/pptx/editor/render/section-operations.d.ts.map +1 -1
  225. package/dist/pptx/editor/render/slide-background-patch.d.ts +0 -2
  226. package/dist/pptx/editor/render/slide-background-patch.d.ts.map +1 -1
  227. package/dist/pptx/editor/render/slide-operations.d.ts +0 -2
  228. package/dist/pptx/editor/render/slide-operations.d.ts.map +1 -1
  229. package/dist/pptx/editor/render/slide-search.d.ts +0 -2
  230. package/dist/pptx/editor/render/slide-search.d.ts.map +1 -1
  231. package/dist/pptx/editor/render/slide-size-rescale.d.ts +0 -2
  232. package/dist/pptx/editor/render/slide-size-rescale.d.ts.map +1 -1
  233. package/dist/pptx/editor/render/slide-transition-edits.d.ts +0 -2
  234. package/dist/pptx/editor/render/slide-transition-edits.d.ts.map +1 -1
  235. package/dist/pptx/editor/render/table-cell-edit.d.ts +0 -2
  236. package/dist/pptx/editor/render/table-cell-edit.d.ts.map +1 -1
  237. package/dist/pptx/editor/render/table-cell-merge.d.ts +0 -2
  238. package/dist/pptx/editor/render/table-cell-merge.d.ts.map +1 -1
  239. package/dist/pptx/editor/render/table-data-grid-ops.d.ts +0 -2
  240. package/dist/pptx/editor/render/table-data-grid-ops.d.ts.map +1 -1
  241. package/dist/pptx/editor/render/table-layout.d.ts +0 -2
  242. package/dist/pptx/editor/render/table-layout.d.ts.map +1 -1
  243. package/dist/pptx/editor/render/table-merge.d.ts +0 -2
  244. package/dist/pptx/editor/render/table-merge.d.ts.map +1 -1
  245. package/dist/pptx/editor/render/table-style-editor-descriptor.d.ts +0 -2
  246. package/dist/pptx/editor/render/table-style-editor-descriptor.d.ts.map +1 -1
  247. package/dist/pptx/editor/render/table-style-editor-edit.d.ts +0 -2
  248. package/dist/pptx/editor/render/table-style-editor-edit.d.ts.map +1 -1
  249. package/dist/pptx/editor/render/table-style-editor-parts.d.ts +0 -2
  250. package/dist/pptx/editor/render/table-style-editor-parts.d.ts.map +1 -1
  251. package/dist/pptx/editor/render/table-style-map-edits.d.ts +0 -2
  252. package/dist/pptx/editor/render/table-style-map-edits.d.ts.map +1 -1
  253. package/dist/pptx/editor/render/template-editing.d.ts +0 -2
  254. package/dist/pptx/editor/render/template-editing.d.ts.map +1 -1
  255. package/dist/pptx/editor/render/text-content-style.d.ts +1 -3
  256. package/dist/pptx/editor/render/text-content-style.d.ts.map +1 -1
  257. package/dist/pptx/editor/render/text-runs-style-patch.d.ts +2 -4
  258. package/dist/pptx/editor/render/text-runs-style-patch.d.ts.map +1 -1
  259. package/dist/pptx/editor/render/text-segment-paragraph-break.d.ts +0 -2
  260. package/dist/pptx/editor/render/text-segment-paragraph-break.d.ts.map +1 -1
  261. package/dist/pptx/editor/render/text-style-scope.d.ts +2 -4
  262. package/dist/pptx/editor/render/text-style-scope.d.ts.map +1 -1
  263. package/dist/pptx/editor/render/text-theme.d.ts +0 -2
  264. package/dist/pptx/editor/render/text-theme.d.ts.map +1 -1
  265. package/dist/pptx/editor/render/theme-editor-model.d.ts +0 -2
  266. package/dist/pptx/editor/render/theme-editor-model.d.ts.map +1 -1
  267. package/dist/pptx/editor/render/theme-editor-presets.d.ts +0 -2
  268. package/dist/pptx/editor/render/theme-editor-presets.d.ts.map +1 -1
  269. package/dist/pptx/editor/render/update-text-segment-style.d.ts +1 -3
  270. package/dist/pptx/editor/render/update-text-segment-style.d.ts.map +1 -1
  271. package/dist/pptx/index.cjs +1687 -1159
  272. package/dist/pptx/index.d.ts +10 -10
  273. package/dist/pptx/index.mjs +1 -1
  274. package/dist/pptx/node/index.d.ts +1 -3
  275. package/dist/pptx/node/index.d.ts.map +1 -1
  276. package/dist/pptx/signature-node/index.d.ts +1 -21
  277. package/dist/pptx/signature-node/index.d.ts.map +1 -1
  278. package/dist/pptx/smartart-layouts/index.d.ts +1 -7
  279. package/dist/pptx/smartart-layouts/index.d.ts.map +1 -1
  280. package/dist/pptx/ui/index.d.ts +1 -9
  281. package/dist/pptx/ui/index.d.ts.map +1 -1
  282. package/dist/teams/index.cjs +215 -201
  283. package/dist/teams/index.mjs +215 -201
  284. package/dist/text/index.cjs +193 -0
  285. package/dist/text/index.d.ts +1 -0
  286. package/dist/text/index.d.ts.map +1 -1
  287. package/dist/text/index.mjs +193 -1
  288. package/dist/text/merge-three-way.d.ts +9 -0
  289. package/dist/text/merge-three-way.d.ts.map +1 -0
  290. package/dist/visio/collab/index.cjs +226 -7
  291. package/dist/visio/collab/index.d.ts +1 -0
  292. package/dist/visio/collab/index.d.ts.map +1 -1
  293. package/dist/visio/collab/index.mjs +225 -7
  294. package/dist/visio/collab/merge-snapshots.d.ts +14 -0
  295. package/dist/visio/collab/merge-snapshots.d.ts.map +1 -0
  296. package/dist/visio/index.cjs +9 -9
  297. package/dist/visio/index.mjs +9 -9
  298. package/dist/visio/ui/index.cjs +9 -9
  299. package/dist/visio/ui/index.mjs +9 -9
  300. package/dist/xlsx/collab/index.cjs +49966 -507
  301. package/dist/xlsx/collab/index.d.ts +1 -0
  302. package/dist/xlsx/collab/index.d.ts.map +1 -1
  303. package/dist/xlsx/collab/index.mjs +49961 -507
  304. package/dist/xlsx/collab/merge-residual.d.ts +16 -0
  305. package/dist/xlsx/collab/merge-residual.d.ts.map +1 -0
  306. package/dist/xlsx/collab/merge-snapshots.d.ts +8 -0
  307. package/dist/xlsx/collab/merge-snapshots.d.ts.map +1 -0
  308. package/dist/xlsx/index.cjs +202 -202
  309. package/dist/xlsx/index.mjs +202 -202
  310. package/dist/xlsx/load/index.cjs +155 -155
  311. package/dist/xlsx/load/index.mjs +155 -155
  312. package/dist/xlsx/ui/index.cjs +202 -202
  313. package/dist/xlsx/ui/index.mjs +202 -202
  314. package/dist/xml/index.cjs +390 -22
  315. package/dist/xml/index.d.ts +1 -0
  316. package/dist/xml/index.d.ts.map +1 -1
  317. package/dist/xml/index.mjs +390 -23
  318. package/dist/xml/merge-three-way.d.ts +16 -0
  319. package/dist/xml/merge-three-way.d.ts.map +1 -0
  320. package/package.json +13 -8
  321. package/dist/pptx/chunks/collaboration-text-codec-Du_XeE_i.d.ts.map +0 -1
  322. package/dist/pptx/chunks/collaboration-text-merge-DWWWdT_t.d.ts.map +0 -1
  323. package/dist/pptx/chunks/collaboration-text-positions-MMT3GkZi.d.ts.map +0 -1
  324. package/dist/pptx/chunks/collaboration-text-session-D0NOLQk7.d.ts.map +0 -1
  325. package/dist/pptx/chunks/collaboration-text-session-delta-CzJGrTKJ.d.ts.map +0 -1
  326. package/dist/pptx/chunks/color-ref-DT599vEx.d.ts.map +0 -1
  327. package/dist/pptx/chunks/elements-f3UbFph-.d.ts.map +0 -1
  328. package/dist/pptx/chunks/index-BnH2QjYm.d.ts.map +0 -1
  329. package/dist/pptx/chunks/index-Bp-1pGo1.d.ts.map +0 -1
  330. package/dist/pptx/chunks/index-pLLN4OTz.d.ts.map +0 -1
  331. package/dist/pptx/chunks/inspection-status-DjiWd_Aa.d.ts.map +0 -1
  332. package/dist/pptx/chunks/schemas-fuDGetRe.d.ts.map +0 -1
  333. package/dist/pptx/chunks/smart-art-CmOrPLLQ.d.ts.map +0 -1
  334. package/dist/pptx/chunks/text-P9xVnXXf.d.ts.map +0 -1
  335. package/dist/pptx/chunks/text-operations-D5sgspO6.d.ts.map +0 -1
@@ -1821,6 +1821,161 @@ function attr(element3, local, ns, prefix) {
1821
1821
  }
1822
1822
  var relAttr = (element3, local) => attr(element3, local, NS.r, "r");
1823
1823
 
1824
+ // text/text-diff.ts
1825
+ var isLowSurrogate = (text3, at2) => {
1826
+ const code = text3.charCodeAt(at2);
1827
+ return code >= 56320 && code <= 57343;
1828
+ };
1829
+ function shortestEdit(n2, m, same12, maxEdits) {
1830
+ const max = Math.min(n2 + m, maxEdits);
1831
+ const offset2 = max + 1;
1832
+ const v = new Int32Array(2 * max + 3);
1833
+ const trace2 = [];
1834
+ for (let d = 0; d <= max; d++) {
1835
+ for (let k = -d; k <= d; k += 2) {
1836
+ const down = k === -d || k !== d && v[offset2 + k - 1] < v[offset2 + k + 1];
1837
+ let x = down ? v[offset2 + k + 1] : v[offset2 + k - 1] + 1;
1838
+ let y = x - k;
1839
+ while (x < n2 && y < m && same12(x, y)) {
1840
+ x++;
1841
+ y++;
1842
+ }
1843
+ v[offset2 + k] = x;
1844
+ if (x >= n2 && y >= m) return backtrack(trace2, n2, m, d);
1845
+ }
1846
+ trace2.push(v.slice(offset2 - d, offset2 + d + 1));
1847
+ }
1848
+ return void 0;
1849
+ }
1850
+ function backtrack(trace2, n2, m, d) {
1851
+ const edits = [];
1852
+ let x = n2;
1853
+ let y = m;
1854
+ for (let step = d; step > 0; step--) {
1855
+ const previous = trace2[step - 1];
1856
+ const at2 = (k2) => previous[k2 + step - 1];
1857
+ const k = x - y;
1858
+ const down = k === -step || k !== step && at2(k - 1) < at2(k + 1);
1859
+ const before = down ? k + 1 : k - 1;
1860
+ const startX = at2(before);
1861
+ const startY = startX - before;
1862
+ edits.push(down ? [startX, startY, true] : [startX, startY, false]);
1863
+ x = startX;
1864
+ y = startY;
1865
+ }
1866
+ return edits.reverse();
1867
+ }
1868
+ function changesOf(edits) {
1869
+ const changes = [];
1870
+ for (const [x, y, inserts] of edits) {
1871
+ const last = changes.at(-1);
1872
+ if (last && last.fromEnd === x && last.toEnd === y) {
1873
+ if (inserts) last.toEnd++;
1874
+ else last.fromEnd++;
1875
+ } else
1876
+ changes.push({
1877
+ fromStart: x,
1878
+ fromEnd: inserts ? x : x + 1,
1879
+ toStart: y,
1880
+ toEnd: inserts ? y + 1 : y
1881
+ });
1882
+ }
1883
+ return changes;
1884
+ }
1885
+ function characterChanges(a2, b, maxEdits) {
1886
+ const edits = shortestEdit(
1887
+ a2.length,
1888
+ b.length,
1889
+ (x, y) => a2.charCodeAt(x) === b.charCodeAt(y),
1890
+ maxEdits
1891
+ );
1892
+ return edits && changesOf(edits);
1893
+ }
1894
+ var TOKEN = /[\p{L}\p{N}\p{M}]+|\s+|[\s\S]/gu;
1895
+ function tokensOf(text3, ids) {
1896
+ const tokens2 = [];
1897
+ const starts = [];
1898
+ for (const match2 of text3.matchAll(TOKEN)) {
1899
+ let id = ids.get(match2[0]);
1900
+ if (id === void 0) ids.set(match2[0], id = ids.size);
1901
+ tokens2.push(id);
1902
+ starts.push(match2.index);
1903
+ }
1904
+ starts.push(text3.length);
1905
+ return { tokens: tokens2, starts };
1906
+ }
1907
+ function tokenChanges(a2, b, maxEdits) {
1908
+ const ids = /* @__PURE__ */ new Map();
1909
+ const from = tokensOf(a2, ids);
1910
+ const to = tokensOf(b, ids);
1911
+ const edits = shortestEdit(
1912
+ from.tokens.length,
1913
+ to.tokens.length,
1914
+ (x, y) => from.tokens[x] === to.tokens[y],
1915
+ maxEdits
1916
+ );
1917
+ if (!edits) return void 0;
1918
+ let budget2 = maxEdits;
1919
+ return changesOf(edits).flatMap((stretch) => {
1920
+ const change = {
1921
+ fromStart: from.starts[stretch.fromStart],
1922
+ fromEnd: from.starts[stretch.fromEnd],
1923
+ toStart: to.starts[stretch.toStart],
1924
+ toEnd: to.starts[stretch.toEnd]
1925
+ };
1926
+ const inner2 = change.fromEnd > change.fromStart && change.toEnd > change.toStart ? characterChanges(
1927
+ a2.slice(change.fromStart, change.fromEnd),
1928
+ b.slice(change.toStart, change.toEnd),
1929
+ budget2
1930
+ ) : void 0;
1931
+ if (!inner2) return [change];
1932
+ for (const found of inner2)
1933
+ budget2 -= found.fromEnd - found.fromStart + found.toEnd - found.toStart;
1934
+ return inner2.map((found) => ({
1935
+ fromStart: found.fromStart + change.fromStart,
1936
+ fromEnd: found.fromEnd + change.fromStart,
1937
+ toStart: found.toStart + change.toStart,
1938
+ toEnd: found.toEnd + change.toStart
1939
+ }));
1940
+ });
1941
+ }
1942
+ function diffText(from, to, maxEdits = 500) {
1943
+ let start = 0;
1944
+ while (start < from.length && start < to.length && from.charCodeAt(start) === to.charCodeAt(start))
1945
+ start++;
1946
+ let end = 0;
1947
+ while (end < from.length - start && end < to.length - start && from.charCodeAt(from.length - 1 - end) === to.charCodeAt(to.length - 1 - end))
1948
+ end++;
1949
+ const a2 = from.slice(start, from.length - end);
1950
+ const b = to.slice(start, to.length - end);
1951
+ if (!a2.length && !b.length) return [];
1952
+ const found = a2.length && b.length ? characterChanges(a2, b, maxEdits) ?? tokenChanges(a2, b, maxEdits) : void 0;
1953
+ const changes = found ?? [{ fromStart: 0, fromEnd: a2.length, toStart: 0, toEnd: b.length }];
1954
+ const result2 = [];
1955
+ for (const change of changes) {
1956
+ const placed = {
1957
+ fromStart: change.fromStart + start,
1958
+ fromEnd: change.fromEnd + start,
1959
+ toStart: change.toStart + start,
1960
+ toEnd: change.toEnd + start
1961
+ };
1962
+ if (placed.fromStart > 0 && placed.toStart > 0 && (isLowSurrogate(from, placed.fromStart) || isLowSurrogate(to, placed.toStart))) {
1963
+ placed.fromStart--;
1964
+ placed.toStart--;
1965
+ }
1966
+ if (isLowSurrogate(from, placed.fromEnd) || isLowSurrogate(to, placed.toEnd)) {
1967
+ placed.fromEnd++;
1968
+ placed.toEnd++;
1969
+ }
1970
+ const last = result2.at(-1);
1971
+ if (last && placed.fromStart <= last.fromEnd) {
1972
+ last.fromEnd = Math.max(last.fromEnd, placed.fromEnd);
1973
+ last.toEnd = Math.max(last.toEnd, placed.toEnd);
1974
+ } else result2.push(placed);
1975
+ }
1976
+ return result2;
1977
+ }
1978
+
1824
1979
  // xml/lite.ts
1825
1980
  var LiteElement = class {
1826
1981
  constructor(tagName, localName3, namespaceURI) {
@@ -20624,53 +20779,6 @@ function buildContentTypesXml(types) {
20624
20779
  ).join("");
20625
20780
  return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Types xmlns="${NS.contentTypes}">${defaults}${overrides}</Types>`;
20626
20781
  }
20627
-
20628
- // opc/safe-href.ts
20629
- var OPEN_SCHEMES = /* @__PURE__ */ new Set(["http", "https", "mailto"]);
20630
- var STORE_SCHEMES = /* @__PURE__ */ new Set([...OPEN_SCHEMES, "ftp", "file"]);
20631
- var SCRIPT_SCHEMES = /* @__PURE__ */ new Set([
20632
- "javascript",
20633
- "vbscript",
20634
- "livescript",
20635
- "jscript",
20636
- "mocha",
20637
- "data",
20638
- "mhtml",
20639
- "ms-its",
20640
- "mk",
20641
- "x-javascript",
20642
- "blob"
20643
- ]);
20644
- var IGNORABLE = new RegExp(
20645
- "[\\u0000-\\u0020\\u007f\\u00ad\\u200b-\\u200f\\u202a-\\u202e\\u2060-\\u2064\\ufeff]",
20646
- "gu"
20647
- );
20648
- var CONTROL2 = new RegExp("[\\u0000-\\u001f\\u007f]", "u");
20649
- var SCHEME = /^([a-z][a-z0-9+.-]*):/;
20650
- var STORE_ONLY = { store: true, open: false, reason: "not-openable" };
20651
- var reject = (reason) => ({
20652
- store: false,
20653
- open: false,
20654
- reason
20655
- });
20656
- function hyperlinkPolicy(href, options7 = {}) {
20657
- if (typeof href !== "string") return reject("empty");
20658
- const trimmed2 = href.trim();
20659
- const normalized = trimmed2.replace(IGNORABLE, "").toLowerCase();
20660
- if (normalized.length === 0) return reject("empty");
20661
- const scheme2 = SCHEME.exec(normalized)?.[1];
20662
- if (scheme2 !== void 0 && SCRIPT_SCHEMES.has(scheme2)) return reject("script-scheme");
20663
- if (scheme2 !== void 0 && !trimmed2.toLowerCase().startsWith(`${scheme2}:`))
20664
- return reject("obfuscated-scheme");
20665
- if (CONTROL2.test(trimmed2)) return reject("control-characters");
20666
- if (scheme2 === void 0) return options7.openRelative ? { store: true, open: true } : STORE_ONLY;
20667
- if (scheme2.length === 1) return STORE_ONLY;
20668
- if (OPEN_SCHEMES.has(scheme2)) return { store: true, open: true };
20669
- if (options7.additionalOpenSchemes?.some((allowed) => allowed.toLowerCase() === scheme2))
20670
- return { store: true, open: true };
20671
- if (STORE_SCHEMES.has(scheme2)) return STORE_ONLY;
20672
- return reject("unsupported-scheme");
20673
- }
20674
20782
  var DEFAULT_ZIP_LIMITS = {
20675
20783
  maxEntries: 1e4,
20676
20784
  maxEntryBytes: 100 * 1024 * 1024,
@@ -20879,6 +20987,53 @@ function guardZip(zip, limits = {}) {
20879
20987
  return zip;
20880
20988
  }
20881
20989
 
20990
+ // opc/safe-href.ts
20991
+ var OPEN_SCHEMES = /* @__PURE__ */ new Set(["http", "https", "mailto"]);
20992
+ var STORE_SCHEMES = /* @__PURE__ */ new Set([...OPEN_SCHEMES, "ftp", "file"]);
20993
+ var SCRIPT_SCHEMES = /* @__PURE__ */ new Set([
20994
+ "javascript",
20995
+ "vbscript",
20996
+ "livescript",
20997
+ "jscript",
20998
+ "mocha",
20999
+ "data",
21000
+ "mhtml",
21001
+ "ms-its",
21002
+ "mk",
21003
+ "x-javascript",
21004
+ "blob"
21005
+ ]);
21006
+ var IGNORABLE = new RegExp(
21007
+ "[\\u0000-\\u0020\\u007f\\u00ad\\u200b-\\u200f\\u202a-\\u202e\\u2060-\\u2064\\ufeff]",
21008
+ "gu"
21009
+ );
21010
+ var CONTROL2 = new RegExp("[\\u0000-\\u001f\\u007f]", "u");
21011
+ var SCHEME = /^([a-z][a-z0-9+.-]*):/;
21012
+ var STORE_ONLY = { store: true, open: false, reason: "not-openable" };
21013
+ var reject = (reason) => ({
21014
+ store: false,
21015
+ open: false,
21016
+ reason
21017
+ });
21018
+ function hyperlinkPolicy(href, options7 = {}) {
21019
+ if (typeof href !== "string") return reject("empty");
21020
+ const trimmed2 = href.trim();
21021
+ const normalized = trimmed2.replace(IGNORABLE, "").toLowerCase();
21022
+ if (normalized.length === 0) return reject("empty");
21023
+ const scheme2 = SCHEME.exec(normalized)?.[1];
21024
+ if (scheme2 !== void 0 && SCRIPT_SCHEMES.has(scheme2)) return reject("script-scheme");
21025
+ if (scheme2 !== void 0 && !trimmed2.toLowerCase().startsWith(`${scheme2}:`))
21026
+ return reject("obfuscated-scheme");
21027
+ if (CONTROL2.test(trimmed2)) return reject("control-characters");
21028
+ if (scheme2 === void 0) return options7.openRelative ? { store: true, open: true } : STORE_ONLY;
21029
+ if (scheme2.length === 1) return STORE_ONLY;
21030
+ if (OPEN_SCHEMES.has(scheme2)) return { store: true, open: true };
21031
+ if (options7.additionalOpenSchemes?.some((allowed) => allowed.toLowerCase() === scheme2))
21032
+ return { store: true, open: true };
21033
+ if (STORE_SCHEMES.has(scheme2)) return STORE_ONLY;
21034
+ return reject("unsupported-scheme");
21035
+ }
21036
+
20882
21037
  // opc/properties/types.ts
20883
21038
  var CUSTOM_PROPERTIES_FMTID = "{D5CDD505-2E9C-101B-9397-08002B2CF9AE}";
20884
21039
  var PROPERTY_PART_NAMES = {
@@ -49623,161 +49778,6 @@ var CommentIds = class {
49623
49778
  }
49624
49779
  };
49625
49780
 
49626
- // text/text-diff.ts
49627
- var isLowSurrogate = (text3, at2) => {
49628
- const code = text3.charCodeAt(at2);
49629
- return code >= 56320 && code <= 57343;
49630
- };
49631
- function shortestEdit(n2, m, same12, maxEdits) {
49632
- const max = Math.min(n2 + m, maxEdits);
49633
- const offset2 = max + 1;
49634
- const v = new Int32Array(2 * max + 3);
49635
- const trace2 = [];
49636
- for (let d = 0; d <= max; d++) {
49637
- for (let k = -d; k <= d; k += 2) {
49638
- const down = k === -d || k !== d && v[offset2 + k - 1] < v[offset2 + k + 1];
49639
- let x = down ? v[offset2 + k + 1] : v[offset2 + k - 1] + 1;
49640
- let y = x - k;
49641
- while (x < n2 && y < m && same12(x, y)) {
49642
- x++;
49643
- y++;
49644
- }
49645
- v[offset2 + k] = x;
49646
- if (x >= n2 && y >= m) return backtrack(trace2, n2, m, d);
49647
- }
49648
- trace2.push(v.slice(offset2 - d, offset2 + d + 1));
49649
- }
49650
- return void 0;
49651
- }
49652
- function backtrack(trace2, n2, m, d) {
49653
- const edits = [];
49654
- let x = n2;
49655
- let y = m;
49656
- for (let step = d; step > 0; step--) {
49657
- const previous = trace2[step - 1];
49658
- const at2 = (k2) => previous[k2 + step - 1];
49659
- const k = x - y;
49660
- const down = k === -step || k !== step && at2(k - 1) < at2(k + 1);
49661
- const before = down ? k + 1 : k - 1;
49662
- const startX = at2(before);
49663
- const startY = startX - before;
49664
- edits.push(down ? [startX, startY, true] : [startX, startY, false]);
49665
- x = startX;
49666
- y = startY;
49667
- }
49668
- return edits.reverse();
49669
- }
49670
- function changesOf(edits) {
49671
- const changes = [];
49672
- for (const [x, y, inserts] of edits) {
49673
- const last = changes.at(-1);
49674
- if (last && last.fromEnd === x && last.toEnd === y) {
49675
- if (inserts) last.toEnd++;
49676
- else last.fromEnd++;
49677
- } else
49678
- changes.push({
49679
- fromStart: x,
49680
- fromEnd: inserts ? x : x + 1,
49681
- toStart: y,
49682
- toEnd: inserts ? y + 1 : y
49683
- });
49684
- }
49685
- return changes;
49686
- }
49687
- function characterChanges(a2, b, maxEdits) {
49688
- const edits = shortestEdit(
49689
- a2.length,
49690
- b.length,
49691
- (x, y) => a2.charCodeAt(x) === b.charCodeAt(y),
49692
- maxEdits
49693
- );
49694
- return edits && changesOf(edits);
49695
- }
49696
- var TOKEN = /[\p{L}\p{N}\p{M}]+|\s+|[\s\S]/gu;
49697
- function tokensOf(text3, ids) {
49698
- const tokens2 = [];
49699
- const starts = [];
49700
- for (const match2 of text3.matchAll(TOKEN)) {
49701
- let id = ids.get(match2[0]);
49702
- if (id === void 0) ids.set(match2[0], id = ids.size);
49703
- tokens2.push(id);
49704
- starts.push(match2.index);
49705
- }
49706
- starts.push(text3.length);
49707
- return { tokens: tokens2, starts };
49708
- }
49709
- function tokenChanges(a2, b, maxEdits) {
49710
- const ids = /* @__PURE__ */ new Map();
49711
- const from = tokensOf(a2, ids);
49712
- const to = tokensOf(b, ids);
49713
- const edits = shortestEdit(
49714
- from.tokens.length,
49715
- to.tokens.length,
49716
- (x, y) => from.tokens[x] === to.tokens[y],
49717
- maxEdits
49718
- );
49719
- if (!edits) return void 0;
49720
- let budget2 = maxEdits;
49721
- return changesOf(edits).flatMap((stretch) => {
49722
- const change = {
49723
- fromStart: from.starts[stretch.fromStart],
49724
- fromEnd: from.starts[stretch.fromEnd],
49725
- toStart: to.starts[stretch.toStart],
49726
- toEnd: to.starts[stretch.toEnd]
49727
- };
49728
- const inner2 = change.fromEnd > change.fromStart && change.toEnd > change.toStart ? characterChanges(
49729
- a2.slice(change.fromStart, change.fromEnd),
49730
- b.slice(change.toStart, change.toEnd),
49731
- budget2
49732
- ) : void 0;
49733
- if (!inner2) return [change];
49734
- for (const found of inner2)
49735
- budget2 -= found.fromEnd - found.fromStart + found.toEnd - found.toStart;
49736
- return inner2.map((found) => ({
49737
- fromStart: found.fromStart + change.fromStart,
49738
- fromEnd: found.fromEnd + change.fromStart,
49739
- toStart: found.toStart + change.toStart,
49740
- toEnd: found.toEnd + change.toStart
49741
- }));
49742
- });
49743
- }
49744
- function diffText(from, to, maxEdits = 500) {
49745
- let start = 0;
49746
- while (start < from.length && start < to.length && from.charCodeAt(start) === to.charCodeAt(start))
49747
- start++;
49748
- let end = 0;
49749
- while (end < from.length - start && end < to.length - start && from.charCodeAt(from.length - 1 - end) === to.charCodeAt(to.length - 1 - end))
49750
- end++;
49751
- const a2 = from.slice(start, from.length - end);
49752
- const b = to.slice(start, to.length - end);
49753
- if (!a2.length && !b.length) return [];
49754
- const found = a2.length && b.length ? characterChanges(a2, b, maxEdits) ?? tokenChanges(a2, b, maxEdits) : void 0;
49755
- const changes = found ?? [{ fromStart: 0, fromEnd: a2.length, toStart: 0, toEnd: b.length }];
49756
- const result2 = [];
49757
- for (const change of changes) {
49758
- const placed = {
49759
- fromStart: change.fromStart + start,
49760
- fromEnd: change.fromEnd + start,
49761
- toStart: change.toStart + start,
49762
- toEnd: change.toEnd + start
49763
- };
49764
- if (placed.fromStart > 0 && placed.toStart > 0 && (isLowSurrogate(from, placed.fromStart) || isLowSurrogate(to, placed.toStart))) {
49765
- placed.fromStart--;
49766
- placed.toStart--;
49767
- }
49768
- if (isLowSurrogate(from, placed.fromEnd) || isLowSurrogate(to, placed.toEnd)) {
49769
- placed.fromEnd++;
49770
- placed.toEnd++;
49771
- }
49772
- const last = result2.at(-1);
49773
- if (last && placed.fromStart <= last.fromEnd) {
49774
- last.fromEnd = Math.max(last.fromEnd, placed.fromEnd);
49775
- last.toEnd = Math.max(last.toEnd, placed.toEnd);
49776
- } else result2.push(placed);
49777
- }
49778
- return result2;
49779
- }
49780
-
49781
49781
  // xlsx/write/comment-mentions.ts
49782
49782
  function patchCommentMentions(node2, before, message, ids, commentId, preserveIds) {
49783
49783
  const container = first(node2, "mentions", NS.tc);