@jean-is/render 0.0.0-stage → 0.8.0-r4f6f65307b98

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 (2657) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +2 -2
  3. package/brand.js +17 -0
  4. package/caps/brain-local/watermark.js +107 -0
  5. package/caps/charts/charts.css +12 -0
  6. package/caps/charts/charts.js +154 -0
  7. package/caps/charts/option.js +141 -0
  8. package/caps/files/extract.js +404 -0
  9. package/caps/files/midi.js +295 -0
  10. package/caps/files/office.js +94 -0
  11. package/caps/files/pdf.js +66 -0
  12. package/caps/interactive/apps.js +42 -0
  13. package/caps/interactive/diagram-worker.js +12 -0
  14. package/caps/interactive/diagram.js +195 -0
  15. package/caps/interactive/interactive.css +25 -0
  16. package/caps/interactive/interactive.js +350 -0
  17. package/caps/interactive/map.js +183 -0
  18. package/caps/interactive/mode.js +54 -0
  19. package/caps/interactive/page-diagram.js +37 -0
  20. package/caps/layouts/layouts.css +184 -0
  21. package/caps/layouts/layouts.js +148 -0
  22. package/caps/layouts/shapes.js +209 -0
  23. package/caps/made/formats.js +467 -0
  24. package/caps/math/latex.js +88 -0
  25. package/caps/math/math.css +24 -0
  26. package/caps/math/math.js +117 -0
  27. package/caps/pictures/mark.js +43 -0
  28. package/caps/receipt/certificate.js +417 -0
  29. package/caps/receipt/der.js +203 -0
  30. package/caps/scores/notes.js +30 -0
  31. package/caps/scores/scores.css +24 -0
  32. package/caps/scores/scores.js +291 -0
  33. package/caps/scores/sound-worker.js +12 -0
  34. package/caps/scores/sound.js +72 -0
  35. package/caps/share/seal.js +86 -0
  36. package/caps/share/view.js +155 -0
  37. package/caps/skills/directory.js +57 -0
  38. package/caps/skills/sources.js +281 -0
  39. package/caps/slides/edit.js +102 -0
  40. package/caps/slides/kit-page.css +16 -0
  41. package/caps/slides/kit-page.js +240 -0
  42. package/caps/slides/kit.js +56 -0
  43. package/caps/slides/save.js +73 -0
  44. package/caps/slides/slides.css +36 -0
  45. package/caps/slides/slides.js +314 -0
  46. package/core/anthropic.js +252 -0
  47. package/core/deferred.js +48 -0
  48. package/core/events.js +166 -0
  49. package/core/files.js +279 -0
  50. package/core/fs.js +186 -0
  51. package/core/hooks.js +53 -0
  52. package/core/i18n.js +155 -0
  53. package/core/llm.js +396 -0
  54. package/core/loop.js +454 -0
  55. package/core/rules.js +52 -0
  56. package/core/search.js +158 -0
  57. package/core/settings.js +227 -0
  58. package/core/skills.js +91 -0
  59. package/core/sse.js +51 -0
  60. package/core/ulid.js +17 -0
  61. package/core/zip.js +165 -0
  62. package/fonts/OFL.txt +94 -0
  63. package/fonts/display.woff2 +0 -0
  64. package/locales/am.json +419 -0
  65. package/locales/approvals/am.json +58 -0
  66. package/locales/approvals/ar.json +66 -0
  67. package/locales/approvals/bg.json +58 -0
  68. package/locales/approvals/bn.json +58 -0
  69. package/locales/approvals/br.json +64 -0
  70. package/locales/approvals/co.json +60 -0
  71. package/locales/approvals/cs.json +62 -0
  72. package/locales/approvals/da.json +58 -0
  73. package/locales/approvals/de.json +58 -0
  74. package/locales/approvals/el.json +58 -0
  75. package/locales/approvals/en.json +58 -0
  76. package/locales/approvals/es.json +60 -0
  77. package/locales/approvals/fa.json +58 -0
  78. package/locales/approvals/fi.json +58 -0
  79. package/locales/approvals/fr-CA.json +60 -0
  80. package/locales/approvals/fr.json +60 -0
  81. package/locales/approvals/ha.json +58 -0
  82. package/locales/approvals/he.json +60 -0
  83. package/locales/approvals/hi.json +58 -0
  84. package/locales/approvals/hr.json +60 -0
  85. package/locales/approvals/hu.json +58 -0
  86. package/locales/approvals/id.json +56 -0
  87. package/locales/approvals/it.json +60 -0
  88. package/locales/approvals/ja.json +56 -0
  89. package/locales/approvals/ko.json +56 -0
  90. package/locales/approvals/mr.json +58 -0
  91. package/locales/approvals/ms.json +56 -0
  92. package/locales/approvals/nl.json +58 -0
  93. package/locales/approvals/pl.json +62 -0
  94. package/locales/approvals/pt.json +60 -0
  95. package/locales/approvals/ro.json +60 -0
  96. package/locales/approvals/ru.json +62 -0
  97. package/locales/approvals/sk.json +62 -0
  98. package/locales/approvals/sv.json +58 -0
  99. package/locales/approvals/sw.json +58 -0
  100. package/locales/approvals/ta.json +58 -0
  101. package/locales/approvals/te.json +58 -0
  102. package/locales/approvals/th.json +56 -0
  103. package/locales/approvals/tl.json +58 -0
  104. package/locales/approvals/tr.json +58 -0
  105. package/locales/approvals/uk.json +62 -0
  106. package/locales/approvals/ur.json +58 -0
  107. package/locales/approvals/vi.json +56 -0
  108. package/locales/approvals/yo.json +56 -0
  109. package/locales/approvals/zh-Hans.json +56 -0
  110. package/locales/approvals/zh-Hant.json +56 -0
  111. package/locales/ar.json +451 -0
  112. package/locales/ask/am.json +8 -0
  113. package/locales/ask/ar.json +8 -0
  114. package/locales/ask/bg.json +8 -0
  115. package/locales/ask/bn.json +8 -0
  116. package/locales/ask/br.json +8 -0
  117. package/locales/ask/co.json +8 -0
  118. package/locales/ask/cs.json +8 -0
  119. package/locales/ask/da.json +8 -0
  120. package/locales/ask/de.json +8 -0
  121. package/locales/ask/el.json +8 -0
  122. package/locales/ask/en.json +8 -0
  123. package/locales/ask/es.json +8 -0
  124. package/locales/ask/fa.json +8 -0
  125. package/locales/ask/fi.json +8 -0
  126. package/locales/ask/fr-CA.json +8 -0
  127. package/locales/ask/fr.json +8 -0
  128. package/locales/ask/ha.json +8 -0
  129. package/locales/ask/he.json +8 -0
  130. package/locales/ask/hi.json +8 -0
  131. package/locales/ask/hr.json +8 -0
  132. package/locales/ask/hu.json +8 -0
  133. package/locales/ask/id.json +8 -0
  134. package/locales/ask/it.json +8 -0
  135. package/locales/ask/ja.json +8 -0
  136. package/locales/ask/ko.json +8 -0
  137. package/locales/ask/mr.json +8 -0
  138. package/locales/ask/ms.json +8 -0
  139. package/locales/ask/nl.json +8 -0
  140. package/locales/ask/pl.json +8 -0
  141. package/locales/ask/pt.json +8 -0
  142. package/locales/ask/ro.json +8 -0
  143. package/locales/ask/ru.json +8 -0
  144. package/locales/ask/sk.json +8 -0
  145. package/locales/ask/sv.json +8 -0
  146. package/locales/ask/sw.json +8 -0
  147. package/locales/ask/ta.json +8 -0
  148. package/locales/ask/te.json +8 -0
  149. package/locales/ask/th.json +8 -0
  150. package/locales/ask/tl.json +8 -0
  151. package/locales/ask/tr.json +8 -0
  152. package/locales/ask/uk.json +8 -0
  153. package/locales/ask/ur.json +8 -0
  154. package/locales/ask/vi.json +8 -0
  155. package/locales/ask/yo.json +8 -0
  156. package/locales/ask/zh-Hans.json +8 -0
  157. package/locales/ask/zh-Hant.json +8 -0
  158. package/locales/backup/am.json +8 -0
  159. package/locales/backup/ar.json +12 -0
  160. package/locales/backup/bg.json +8 -0
  161. package/locales/backup/bn.json +8 -0
  162. package/locales/backup/br.json +11 -0
  163. package/locales/backup/co.json +9 -0
  164. package/locales/backup/cs.json +10 -0
  165. package/locales/backup/da.json +8 -0
  166. package/locales/backup/de.json +8 -0
  167. package/locales/backup/el.json +8 -0
  168. package/locales/backup/en.json +8 -0
  169. package/locales/backup/es.json +9 -0
  170. package/locales/backup/fa.json +8 -0
  171. package/locales/backup/fi.json +8 -0
  172. package/locales/backup/fr-CA.json +9 -0
  173. package/locales/backup/fr.json +9 -0
  174. package/locales/backup/ha.json +8 -0
  175. package/locales/backup/he.json +10 -0
  176. package/locales/backup/hi.json +8 -0
  177. package/locales/backup/hr.json +9 -0
  178. package/locales/backup/hu.json +8 -0
  179. package/locales/backup/id.json +7 -0
  180. package/locales/backup/it.json +9 -0
  181. package/locales/backup/ja.json +7 -0
  182. package/locales/backup/ko.json +7 -0
  183. package/locales/backup/mr.json +8 -0
  184. package/locales/backup/ms.json +7 -0
  185. package/locales/backup/nl.json +8 -0
  186. package/locales/backup/pl.json +10 -0
  187. package/locales/backup/pt.json +9 -0
  188. package/locales/backup/ro.json +9 -0
  189. package/locales/backup/ru.json +10 -0
  190. package/locales/backup/sk.json +10 -0
  191. package/locales/backup/sv.json +8 -0
  192. package/locales/backup/sw.json +8 -0
  193. package/locales/backup/ta.json +8 -0
  194. package/locales/backup/te.json +8 -0
  195. package/locales/backup/th.json +7 -0
  196. package/locales/backup/tl.json +8 -0
  197. package/locales/backup/tr.json +8 -0
  198. package/locales/backup/uk.json +10 -0
  199. package/locales/backup/ur.json +8 -0
  200. package/locales/backup/vi.json +7 -0
  201. package/locales/backup/yo.json +7 -0
  202. package/locales/backup/zh-Hans.json +7 -0
  203. package/locales/backup/zh-Hant.json +7 -0
  204. package/locales/bg.json +419 -0
  205. package/locales/bn.json +419 -0
  206. package/locales/br.json +443 -0
  207. package/locales/brain-local/am.json +13 -0
  208. package/locales/brain-local/ar.json +13 -0
  209. package/locales/brain-local/bg.json +13 -0
  210. package/locales/brain-local/bn.json +13 -0
  211. package/locales/brain-local/br.json +13 -0
  212. package/locales/brain-local/co.json +13 -0
  213. package/locales/brain-local/cs.json +13 -0
  214. package/locales/brain-local/da.json +13 -0
  215. package/locales/brain-local/de.json +13 -0
  216. package/locales/brain-local/el.json +13 -0
  217. package/locales/brain-local/en.json +13 -0
  218. package/locales/brain-local/es.json +13 -0
  219. package/locales/brain-local/fa.json +13 -0
  220. package/locales/brain-local/fi.json +13 -0
  221. package/locales/brain-local/fr-CA.json +13 -0
  222. package/locales/brain-local/fr.json +13 -0
  223. package/locales/brain-local/ha.json +13 -0
  224. package/locales/brain-local/he.json +13 -0
  225. package/locales/brain-local/hi.json +13 -0
  226. package/locales/brain-local/hr.json +13 -0
  227. package/locales/brain-local/hu.json +13 -0
  228. package/locales/brain-local/id.json +13 -0
  229. package/locales/brain-local/it.json +13 -0
  230. package/locales/brain-local/ja.json +13 -0
  231. package/locales/brain-local/ko.json +13 -0
  232. package/locales/brain-local/mr.json +13 -0
  233. package/locales/brain-local/ms.json +13 -0
  234. package/locales/brain-local/nl.json +13 -0
  235. package/locales/brain-local/pl.json +13 -0
  236. package/locales/brain-local/pt.json +13 -0
  237. package/locales/brain-local/ro.json +13 -0
  238. package/locales/brain-local/ru.json +13 -0
  239. package/locales/brain-local/sk.json +13 -0
  240. package/locales/brain-local/sv.json +13 -0
  241. package/locales/brain-local/sw.json +13 -0
  242. package/locales/brain-local/ta.json +13 -0
  243. package/locales/brain-local/te.json +13 -0
  244. package/locales/brain-local/th.json +13 -0
  245. package/locales/brain-local/tl.json +13 -0
  246. package/locales/brain-local/tr.json +13 -0
  247. package/locales/brain-local/uk.json +13 -0
  248. package/locales/brain-local/ur.json +13 -0
  249. package/locales/brain-local/vi.json +13 -0
  250. package/locales/brain-local/yo.json +13 -0
  251. package/locales/brain-local/zh-Hans.json +13 -0
  252. package/locales/brain-local/zh-Hant.json +13 -0
  253. package/locales/brains/am.json +69 -0
  254. package/locales/brains/ar.json +69 -0
  255. package/locales/brains/bg.json +69 -0
  256. package/locales/brains/bn.json +69 -0
  257. package/locales/brains/br.json +69 -0
  258. package/locales/brains/co.json +69 -0
  259. package/locales/brains/cs.json +69 -0
  260. package/locales/brains/da.json +69 -0
  261. package/locales/brains/de.json +69 -0
  262. package/locales/brains/el.json +69 -0
  263. package/locales/brains/en.json +69 -0
  264. package/locales/brains/es.json +69 -0
  265. package/locales/brains/fa.json +69 -0
  266. package/locales/brains/fi.json +69 -0
  267. package/locales/brains/fr-CA.json +69 -0
  268. package/locales/brains/fr.json +69 -0
  269. package/locales/brains/ha.json +69 -0
  270. package/locales/brains/he.json +69 -0
  271. package/locales/brains/hi.json +69 -0
  272. package/locales/brains/hr.json +69 -0
  273. package/locales/brains/hu.json +69 -0
  274. package/locales/brains/id.json +69 -0
  275. package/locales/brains/it.json +69 -0
  276. package/locales/brains/ja.json +69 -0
  277. package/locales/brains/ko.json +69 -0
  278. package/locales/brains/mr.json +69 -0
  279. package/locales/brains/ms.json +69 -0
  280. package/locales/brains/nl.json +69 -0
  281. package/locales/brains/pl.json +69 -0
  282. package/locales/brains/pt.json +69 -0
  283. package/locales/brains/ro.json +69 -0
  284. package/locales/brains/ru.json +69 -0
  285. package/locales/brains/sk.json +69 -0
  286. package/locales/brains/sv.json +69 -0
  287. package/locales/brains/sw.json +69 -0
  288. package/locales/brains/ta.json +69 -0
  289. package/locales/brains/te.json +69 -0
  290. package/locales/brains/th.json +69 -0
  291. package/locales/brains/tl.json +69 -0
  292. package/locales/brains/tr.json +69 -0
  293. package/locales/brains/uk.json +69 -0
  294. package/locales/brains/ur.json +69 -0
  295. package/locales/brains/vi.json +69 -0
  296. package/locales/brains/yo.json +69 -0
  297. package/locales/brains/zh-Hans.json +69 -0
  298. package/locales/brains/zh-Hant.json +69 -0
  299. package/locales/browser/am.json +29 -0
  300. package/locales/browser/ar.json +29 -0
  301. package/locales/browser/bg.json +29 -0
  302. package/locales/browser/bn.json +29 -0
  303. package/locales/browser/br.json +29 -0
  304. package/locales/browser/co.json +29 -0
  305. package/locales/browser/cs.json +29 -0
  306. package/locales/browser/da.json +29 -0
  307. package/locales/browser/de.json +29 -0
  308. package/locales/browser/el.json +29 -0
  309. package/locales/browser/en.json +29 -0
  310. package/locales/browser/es.json +29 -0
  311. package/locales/browser/fa.json +29 -0
  312. package/locales/browser/fi.json +29 -0
  313. package/locales/browser/fr-CA.json +29 -0
  314. package/locales/browser/fr.json +29 -0
  315. package/locales/browser/ha.json +29 -0
  316. package/locales/browser/he.json +29 -0
  317. package/locales/browser/hi.json +29 -0
  318. package/locales/browser/hr.json +29 -0
  319. package/locales/browser/hu.json +29 -0
  320. package/locales/browser/id.json +29 -0
  321. package/locales/browser/it.json +29 -0
  322. package/locales/browser/ja.json +29 -0
  323. package/locales/browser/ko.json +29 -0
  324. package/locales/browser/mr.json +29 -0
  325. package/locales/browser/ms.json +29 -0
  326. package/locales/browser/nl.json +29 -0
  327. package/locales/browser/pl.json +29 -0
  328. package/locales/browser/pt.json +29 -0
  329. package/locales/browser/ro.json +29 -0
  330. package/locales/browser/ru.json +29 -0
  331. package/locales/browser/sk.json +29 -0
  332. package/locales/browser/sv.json +29 -0
  333. package/locales/browser/sw.json +29 -0
  334. package/locales/browser/ta.json +29 -0
  335. package/locales/browser/te.json +29 -0
  336. package/locales/browser/th.json +29 -0
  337. package/locales/browser/tl.json +29 -0
  338. package/locales/browser/tr.json +29 -0
  339. package/locales/browser/uk.json +29 -0
  340. package/locales/browser/ur.json +29 -0
  341. package/locales/browser/vi.json +29 -0
  342. package/locales/browser/yo.json +29 -0
  343. package/locales/browser/zh-Hans.json +29 -0
  344. package/locales/browser/zh-Hant.json +29 -0
  345. package/locales/case/am.json +24 -0
  346. package/locales/case/ar.json +28 -0
  347. package/locales/case/bg.json +24 -0
  348. package/locales/case/bn.json +24 -0
  349. package/locales/case/br.json +27 -0
  350. package/locales/case/co.json +25 -0
  351. package/locales/case/cs.json +26 -0
  352. package/locales/case/da.json +24 -0
  353. package/locales/case/de.json +24 -0
  354. package/locales/case/el.json +24 -0
  355. package/locales/case/en.json +24 -0
  356. package/locales/case/es.json +25 -0
  357. package/locales/case/fa.json +24 -0
  358. package/locales/case/fi.json +24 -0
  359. package/locales/case/fr-CA.json +25 -0
  360. package/locales/case/fr.json +25 -0
  361. package/locales/case/ha.json +24 -0
  362. package/locales/case/he.json +25 -0
  363. package/locales/case/hi.json +24 -0
  364. package/locales/case/hr.json +25 -0
  365. package/locales/case/hu.json +24 -0
  366. package/locales/case/id.json +23 -0
  367. package/locales/case/it.json +25 -0
  368. package/locales/case/ja.json +23 -0
  369. package/locales/case/ko.json +23 -0
  370. package/locales/case/mr.json +24 -0
  371. package/locales/case/ms.json +23 -0
  372. package/locales/case/nl.json +24 -0
  373. package/locales/case/pl.json +26 -0
  374. package/locales/case/pt.json +25 -0
  375. package/locales/case/ro.json +25 -0
  376. package/locales/case/ru.json +26 -0
  377. package/locales/case/sk.json +26 -0
  378. package/locales/case/sv.json +24 -0
  379. package/locales/case/sw.json +24 -0
  380. package/locales/case/ta.json +24 -0
  381. package/locales/case/te.json +24 -0
  382. package/locales/case/th.json +23 -0
  383. package/locales/case/tl.json +24 -0
  384. package/locales/case/tr.json +24 -0
  385. package/locales/case/uk.json +26 -0
  386. package/locales/case/ur.json +24 -0
  387. package/locales/case/vi.json +23 -0
  388. package/locales/case/yo.json +23 -0
  389. package/locales/case/zh-Hans.json +23 -0
  390. package/locales/case/zh-Hant.json +23 -0
  391. package/locales/certificates/am.json +58 -0
  392. package/locales/certificates/ar.json +58 -0
  393. package/locales/certificates/bg.json +58 -0
  394. package/locales/certificates/bn.json +58 -0
  395. package/locales/certificates/br.json +58 -0
  396. package/locales/certificates/co.json +58 -0
  397. package/locales/certificates/cs.json +58 -0
  398. package/locales/certificates/da.json +58 -0
  399. package/locales/certificates/de.json +58 -0
  400. package/locales/certificates/el.json +58 -0
  401. package/locales/certificates/en.json +58 -0
  402. package/locales/certificates/es.json +58 -0
  403. package/locales/certificates/fa.json +58 -0
  404. package/locales/certificates/fi.json +58 -0
  405. package/locales/certificates/fr-CA.json +58 -0
  406. package/locales/certificates/fr.json +58 -0
  407. package/locales/certificates/ha.json +58 -0
  408. package/locales/certificates/he.json +58 -0
  409. package/locales/certificates/hi.json +58 -0
  410. package/locales/certificates/hr.json +58 -0
  411. package/locales/certificates/hu.json +58 -0
  412. package/locales/certificates/id.json +58 -0
  413. package/locales/certificates/it.json +58 -0
  414. package/locales/certificates/ja.json +58 -0
  415. package/locales/certificates/ko.json +58 -0
  416. package/locales/certificates/mr.json +58 -0
  417. package/locales/certificates/ms.json +58 -0
  418. package/locales/certificates/nl.json +58 -0
  419. package/locales/certificates/pl.json +58 -0
  420. package/locales/certificates/pt.json +58 -0
  421. package/locales/certificates/ro.json +58 -0
  422. package/locales/certificates/ru.json +58 -0
  423. package/locales/certificates/sk.json +58 -0
  424. package/locales/certificates/sv.json +58 -0
  425. package/locales/certificates/sw.json +58 -0
  426. package/locales/certificates/ta.json +58 -0
  427. package/locales/certificates/te.json +58 -0
  428. package/locales/certificates/th.json +58 -0
  429. package/locales/certificates/tl.json +58 -0
  430. package/locales/certificates/tr.json +58 -0
  431. package/locales/certificates/uk.json +58 -0
  432. package/locales/certificates/ur.json +58 -0
  433. package/locales/certificates/vi.json +58 -0
  434. package/locales/certificates/yo.json +58 -0
  435. package/locales/certificates/zh-Hans.json +58 -0
  436. package/locales/certificates/zh-Hant.json +58 -0
  437. package/locales/charts/am.json +5 -0
  438. package/locales/charts/ar.json +5 -0
  439. package/locales/charts/bg.json +5 -0
  440. package/locales/charts/bn.json +5 -0
  441. package/locales/charts/br.json +5 -0
  442. package/locales/charts/co.json +5 -0
  443. package/locales/charts/cs.json +5 -0
  444. package/locales/charts/da.json +5 -0
  445. package/locales/charts/de.json +5 -0
  446. package/locales/charts/el.json +5 -0
  447. package/locales/charts/en.json +5 -0
  448. package/locales/charts/es.json +5 -0
  449. package/locales/charts/fa.json +5 -0
  450. package/locales/charts/fi.json +5 -0
  451. package/locales/charts/fr-CA.json +5 -0
  452. package/locales/charts/fr.json +5 -0
  453. package/locales/charts/ha.json +5 -0
  454. package/locales/charts/he.json +5 -0
  455. package/locales/charts/hi.json +5 -0
  456. package/locales/charts/hr.json +5 -0
  457. package/locales/charts/hu.json +5 -0
  458. package/locales/charts/id.json +5 -0
  459. package/locales/charts/it.json +5 -0
  460. package/locales/charts/ja.json +5 -0
  461. package/locales/charts/ko.json +5 -0
  462. package/locales/charts/mr.json +5 -0
  463. package/locales/charts/ms.json +5 -0
  464. package/locales/charts/nl.json +5 -0
  465. package/locales/charts/pl.json +5 -0
  466. package/locales/charts/pt.json +5 -0
  467. package/locales/charts/ro.json +5 -0
  468. package/locales/charts/ru.json +5 -0
  469. package/locales/charts/sk.json +5 -0
  470. package/locales/charts/sv.json +5 -0
  471. package/locales/charts/sw.json +5 -0
  472. package/locales/charts/ta.json +5 -0
  473. package/locales/charts/te.json +5 -0
  474. package/locales/charts/th.json +5 -0
  475. package/locales/charts/tl.json +5 -0
  476. package/locales/charts/tr.json +5 -0
  477. package/locales/charts/uk.json +5 -0
  478. package/locales/charts/ur.json +5 -0
  479. package/locales/charts/vi.json +5 -0
  480. package/locales/charts/yo.json +5 -0
  481. package/locales/charts/zh-Hans.json +5 -0
  482. package/locales/charts/zh-Hant.json +5 -0
  483. package/locales/co.json +427 -0
  484. package/locales/compact/am.json +7 -0
  485. package/locales/compact/ar.json +7 -0
  486. package/locales/compact/bg.json +7 -0
  487. package/locales/compact/bn.json +7 -0
  488. package/locales/compact/br.json +7 -0
  489. package/locales/compact/co.json +7 -0
  490. package/locales/compact/cs.json +7 -0
  491. package/locales/compact/da.json +7 -0
  492. package/locales/compact/de.json +7 -0
  493. package/locales/compact/el.json +7 -0
  494. package/locales/compact/en.json +7 -0
  495. package/locales/compact/es.json +7 -0
  496. package/locales/compact/fa.json +7 -0
  497. package/locales/compact/fi.json +7 -0
  498. package/locales/compact/fr-CA.json +7 -0
  499. package/locales/compact/fr.json +7 -0
  500. package/locales/compact/ha.json +7 -0
  501. package/locales/compact/he.json +7 -0
  502. package/locales/compact/hi.json +7 -0
  503. package/locales/compact/hr.json +7 -0
  504. package/locales/compact/hu.json +7 -0
  505. package/locales/compact/id.json +7 -0
  506. package/locales/compact/it.json +7 -0
  507. package/locales/compact/ja.json +7 -0
  508. package/locales/compact/ko.json +7 -0
  509. package/locales/compact/mr.json +7 -0
  510. package/locales/compact/ms.json +7 -0
  511. package/locales/compact/nl.json +7 -0
  512. package/locales/compact/pl.json +7 -0
  513. package/locales/compact/pt.json +7 -0
  514. package/locales/compact/ro.json +7 -0
  515. package/locales/compact/ru.json +7 -0
  516. package/locales/compact/sk.json +7 -0
  517. package/locales/compact/sv.json +7 -0
  518. package/locales/compact/sw.json +7 -0
  519. package/locales/compact/ta.json +7 -0
  520. package/locales/compact/te.json +7 -0
  521. package/locales/compact/th.json +7 -0
  522. package/locales/compact/tl.json +7 -0
  523. package/locales/compact/tr.json +7 -0
  524. package/locales/compact/uk.json +7 -0
  525. package/locales/compact/ur.json +7 -0
  526. package/locales/compact/vi.json +7 -0
  527. package/locales/compact/yo.json +7 -0
  528. package/locales/compact/zh-Hans.json +7 -0
  529. package/locales/compact/zh-Hant.json +7 -0
  530. package/locales/computer/am.json +81 -0
  531. package/locales/computer/ar.json +97 -0
  532. package/locales/computer/bg.json +81 -0
  533. package/locales/computer/bn.json +81 -0
  534. package/locales/computer/br.json +93 -0
  535. package/locales/computer/co.json +85 -0
  536. package/locales/computer/cs.json +89 -0
  537. package/locales/computer/da.json +81 -0
  538. package/locales/computer/de.json +81 -0
  539. package/locales/computer/el.json +81 -0
  540. package/locales/computer/en.json +81 -0
  541. package/locales/computer/es.json +85 -0
  542. package/locales/computer/fa.json +81 -0
  543. package/locales/computer/fi.json +81 -0
  544. package/locales/computer/fr-CA.json +85 -0
  545. package/locales/computer/fr.json +85 -0
  546. package/locales/computer/ha.json +81 -0
  547. package/locales/computer/he.json +85 -0
  548. package/locales/computer/hi.json +81 -0
  549. package/locales/computer/hr.json +85 -0
  550. package/locales/computer/hu.json +81 -0
  551. package/locales/computer/id.json +77 -0
  552. package/locales/computer/it.json +85 -0
  553. package/locales/computer/ja.json +77 -0
  554. package/locales/computer/ko.json +77 -0
  555. package/locales/computer/mr.json +81 -0
  556. package/locales/computer/ms.json +77 -0
  557. package/locales/computer/nl.json +81 -0
  558. package/locales/computer/pl.json +89 -0
  559. package/locales/computer/pt.json +85 -0
  560. package/locales/computer/ro.json +85 -0
  561. package/locales/computer/ru.json +89 -0
  562. package/locales/computer/sk.json +89 -0
  563. package/locales/computer/sv.json +81 -0
  564. package/locales/computer/sw.json +81 -0
  565. package/locales/computer/ta.json +81 -0
  566. package/locales/computer/te.json +81 -0
  567. package/locales/computer/th.json +77 -0
  568. package/locales/computer/tl.json +81 -0
  569. package/locales/computer/tr.json +81 -0
  570. package/locales/computer/uk.json +89 -0
  571. package/locales/computer/ur.json +81 -0
  572. package/locales/computer/vi.json +77 -0
  573. package/locales/computer/yo.json +77 -0
  574. package/locales/computer/zh-Hans.json +77 -0
  575. package/locales/computer/zh-Hant.json +77 -0
  576. package/locales/connections/am.json +85 -0
  577. package/locales/connections/ar.json +101 -0
  578. package/locales/connections/bg.json +85 -0
  579. package/locales/connections/bn.json +85 -0
  580. package/locales/connections/br.json +97 -0
  581. package/locales/connections/co.json +89 -0
  582. package/locales/connections/cs.json +93 -0
  583. package/locales/connections/da.json +85 -0
  584. package/locales/connections/de.json +85 -0
  585. package/locales/connections/el.json +85 -0
  586. package/locales/connections/en.json +85 -0
  587. package/locales/connections/es.json +89 -0
  588. package/locales/connections/fa.json +85 -0
  589. package/locales/connections/fi.json +85 -0
  590. package/locales/connections/fr-CA.json +89 -0
  591. package/locales/connections/fr.json +89 -0
  592. package/locales/connections/ha.json +85 -0
  593. package/locales/connections/he.json +93 -0
  594. package/locales/connections/hi.json +85 -0
  595. package/locales/connections/hr.json +89 -0
  596. package/locales/connections/hu.json +85 -0
  597. package/locales/connections/id.json +81 -0
  598. package/locales/connections/it.json +89 -0
  599. package/locales/connections/ja.json +81 -0
  600. package/locales/connections/ko.json +81 -0
  601. package/locales/connections/mr.json +85 -0
  602. package/locales/connections/ms.json +81 -0
  603. package/locales/connections/nl.json +85 -0
  604. package/locales/connections/pl.json +93 -0
  605. package/locales/connections/pt.json +89 -0
  606. package/locales/connections/ro.json +89 -0
  607. package/locales/connections/ru.json +93 -0
  608. package/locales/connections/sk.json +93 -0
  609. package/locales/connections/sv.json +85 -0
  610. package/locales/connections/sw.json +85 -0
  611. package/locales/connections/ta.json +85 -0
  612. package/locales/connections/te.json +85 -0
  613. package/locales/connections/th.json +81 -0
  614. package/locales/connections/tl.json +85 -0
  615. package/locales/connections/tr.json +85 -0
  616. package/locales/connections/uk.json +93 -0
  617. package/locales/connections/ur.json +85 -0
  618. package/locales/connections/vi.json +81 -0
  619. package/locales/connections/yo.json +81 -0
  620. package/locales/connections/zh-Hans.json +81 -0
  621. package/locales/connections/zh-Hant.json +81 -0
  622. package/locales/creations/am.json +51 -0
  623. package/locales/creations/ar.json +51 -0
  624. package/locales/creations/bg.json +51 -0
  625. package/locales/creations/bn.json +51 -0
  626. package/locales/creations/br.json +51 -0
  627. package/locales/creations/co.json +51 -0
  628. package/locales/creations/cs.json +51 -0
  629. package/locales/creations/da.json +51 -0
  630. package/locales/creations/de.json +51 -0
  631. package/locales/creations/el.json +51 -0
  632. package/locales/creations/en.json +51 -0
  633. package/locales/creations/es.json +51 -0
  634. package/locales/creations/fa.json +51 -0
  635. package/locales/creations/fi.json +51 -0
  636. package/locales/creations/fr-CA.json +51 -0
  637. package/locales/creations/fr.json +51 -0
  638. package/locales/creations/ha.json +51 -0
  639. package/locales/creations/he.json +51 -0
  640. package/locales/creations/hi.json +51 -0
  641. package/locales/creations/hr.json +51 -0
  642. package/locales/creations/hu.json +51 -0
  643. package/locales/creations/id.json +51 -0
  644. package/locales/creations/it.json +51 -0
  645. package/locales/creations/ja.json +51 -0
  646. package/locales/creations/ko.json +51 -0
  647. package/locales/creations/mr.json +51 -0
  648. package/locales/creations/ms.json +51 -0
  649. package/locales/creations/nl.json +51 -0
  650. package/locales/creations/pl.json +51 -0
  651. package/locales/creations/pt.json +51 -0
  652. package/locales/creations/ro.json +51 -0
  653. package/locales/creations/ru.json +51 -0
  654. package/locales/creations/sk.json +51 -0
  655. package/locales/creations/sv.json +51 -0
  656. package/locales/creations/sw.json +51 -0
  657. package/locales/creations/ta.json +51 -0
  658. package/locales/creations/te.json +51 -0
  659. package/locales/creations/th.json +51 -0
  660. package/locales/creations/tl.json +51 -0
  661. package/locales/creations/tr.json +51 -0
  662. package/locales/creations/uk.json +51 -0
  663. package/locales/creations/ur.json +51 -0
  664. package/locales/creations/vi.json +51 -0
  665. package/locales/creations/yo.json +51 -0
  666. package/locales/creations/zh-Hans.json +51 -0
  667. package/locales/creations/zh-Hant.json +51 -0
  668. package/locales/cs.json +435 -0
  669. package/locales/da.json +419 -0
  670. package/locales/data/am.json +41 -0
  671. package/locales/data/ar.json +41 -0
  672. package/locales/data/bg.json +41 -0
  673. package/locales/data/bn.json +41 -0
  674. package/locales/data/br.json +41 -0
  675. package/locales/data/co.json +41 -0
  676. package/locales/data/cs.json +41 -0
  677. package/locales/data/da.json +41 -0
  678. package/locales/data/de.json +41 -0
  679. package/locales/data/el.json +41 -0
  680. package/locales/data/en.json +41 -0
  681. package/locales/data/es.json +41 -0
  682. package/locales/data/fa.json +41 -0
  683. package/locales/data/fi.json +41 -0
  684. package/locales/data/fr-CA.json +41 -0
  685. package/locales/data/fr.json +41 -0
  686. package/locales/data/ha.json +41 -0
  687. package/locales/data/he.json +41 -0
  688. package/locales/data/hi.json +41 -0
  689. package/locales/data/hr.json +41 -0
  690. package/locales/data/hu.json +41 -0
  691. package/locales/data/id.json +41 -0
  692. package/locales/data/it.json +41 -0
  693. package/locales/data/ja.json +41 -0
  694. package/locales/data/ko.json +41 -0
  695. package/locales/data/mr.json +41 -0
  696. package/locales/data/ms.json +41 -0
  697. package/locales/data/nl.json +41 -0
  698. package/locales/data/pl.json +41 -0
  699. package/locales/data/pt.json +41 -0
  700. package/locales/data/ro.json +41 -0
  701. package/locales/data/ru.json +41 -0
  702. package/locales/data/sk.json +41 -0
  703. package/locales/data/sv.json +41 -0
  704. package/locales/data/sw.json +41 -0
  705. package/locales/data/ta.json +41 -0
  706. package/locales/data/te.json +41 -0
  707. package/locales/data/th.json +41 -0
  708. package/locales/data/tl.json +41 -0
  709. package/locales/data/tr.json +41 -0
  710. package/locales/data/uk.json +41 -0
  711. package/locales/data/ur.json +41 -0
  712. package/locales/data/vi.json +41 -0
  713. package/locales/data/yo.json +41 -0
  714. package/locales/data/zh-Hans.json +41 -0
  715. package/locales/data/zh-Hant.json +41 -0
  716. package/locales/de.json +419 -0
  717. package/locales/designs/am.json +153 -0
  718. package/locales/designs/ar.json +165 -0
  719. package/locales/designs/bg.json +153 -0
  720. package/locales/designs/bn.json +153 -0
  721. package/locales/designs/br.json +162 -0
  722. package/locales/designs/co.json +156 -0
  723. package/locales/designs/cs.json +159 -0
  724. package/locales/designs/da.json +153 -0
  725. package/locales/designs/de.json +153 -0
  726. package/locales/designs/el.json +153 -0
  727. package/locales/designs/en.json +153 -0
  728. package/locales/designs/es.json +156 -0
  729. package/locales/designs/fa.json +153 -0
  730. package/locales/designs/fi.json +153 -0
  731. package/locales/designs/fr-CA.json +156 -0
  732. package/locales/designs/fr.json +156 -0
  733. package/locales/designs/ha.json +153 -0
  734. package/locales/designs/he.json +156 -0
  735. package/locales/designs/hi.json +153 -0
  736. package/locales/designs/hr.json +156 -0
  737. package/locales/designs/hu.json +153 -0
  738. package/locales/designs/id.json +150 -0
  739. package/locales/designs/it.json +156 -0
  740. package/locales/designs/ja.json +150 -0
  741. package/locales/designs/ko.json +150 -0
  742. package/locales/designs/mr.json +153 -0
  743. package/locales/designs/ms.json +150 -0
  744. package/locales/designs/nl.json +153 -0
  745. package/locales/designs/pl.json +159 -0
  746. package/locales/designs/pt.json +156 -0
  747. package/locales/designs/ro.json +156 -0
  748. package/locales/designs/ru.json +159 -0
  749. package/locales/designs/sk.json +159 -0
  750. package/locales/designs/sv.json +153 -0
  751. package/locales/designs/sw.json +153 -0
  752. package/locales/designs/ta.json +153 -0
  753. package/locales/designs/te.json +153 -0
  754. package/locales/designs/th.json +150 -0
  755. package/locales/designs/tl.json +153 -0
  756. package/locales/designs/tr.json +153 -0
  757. package/locales/designs/uk.json +159 -0
  758. package/locales/designs/ur.json +153 -0
  759. package/locales/designs/vi.json +150 -0
  760. package/locales/designs/yo.json +150 -0
  761. package/locales/designs/zh-Hans.json +150 -0
  762. package/locales/designs/zh-Hant.json +150 -0
  763. package/locales/dialogs/am.json +194 -0
  764. package/locales/dialogs/ar.json +202 -0
  765. package/locales/dialogs/bg.json +194 -0
  766. package/locales/dialogs/bn.json +194 -0
  767. package/locales/dialogs/br.json +200 -0
  768. package/locales/dialogs/co.json +196 -0
  769. package/locales/dialogs/cs.json +198 -0
  770. package/locales/dialogs/da.json +194 -0
  771. package/locales/dialogs/de.json +194 -0
  772. package/locales/dialogs/el.json +194 -0
  773. package/locales/dialogs/en.json +194 -0
  774. package/locales/dialogs/es.json +196 -0
  775. package/locales/dialogs/fa.json +194 -0
  776. package/locales/dialogs/fi.json +194 -0
  777. package/locales/dialogs/fr-CA.json +196 -0
  778. package/locales/dialogs/fr.json +196 -0
  779. package/locales/dialogs/ha.json +194 -0
  780. package/locales/dialogs/he.json +198 -0
  781. package/locales/dialogs/hi.json +194 -0
  782. package/locales/dialogs/hr.json +196 -0
  783. package/locales/dialogs/hu.json +194 -0
  784. package/locales/dialogs/id.json +192 -0
  785. package/locales/dialogs/it.json +196 -0
  786. package/locales/dialogs/ja.json +192 -0
  787. package/locales/dialogs/ko.json +192 -0
  788. package/locales/dialogs/mr.json +194 -0
  789. package/locales/dialogs/ms.json +192 -0
  790. package/locales/dialogs/nl.json +194 -0
  791. package/locales/dialogs/pl.json +198 -0
  792. package/locales/dialogs/pt.json +196 -0
  793. package/locales/dialogs/ro.json +196 -0
  794. package/locales/dialogs/ru.json +198 -0
  795. package/locales/dialogs/sk.json +198 -0
  796. package/locales/dialogs/sv.json +194 -0
  797. package/locales/dialogs/sw.json +194 -0
  798. package/locales/dialogs/ta.json +194 -0
  799. package/locales/dialogs/te.json +194 -0
  800. package/locales/dialogs/th.json +192 -0
  801. package/locales/dialogs/tl.json +194 -0
  802. package/locales/dialogs/tr.json +194 -0
  803. package/locales/dialogs/uk.json +198 -0
  804. package/locales/dialogs/ur.json +194 -0
  805. package/locales/dialogs/vi.json +192 -0
  806. package/locales/dialogs/yo.json +192 -0
  807. package/locales/dialogs/zh-Hans.json +192 -0
  808. package/locales/dialogs/zh-Hant.json +192 -0
  809. package/locales/documents/am.json +70 -0
  810. package/locales/documents/ar.json +78 -0
  811. package/locales/documents/bg.json +70 -0
  812. package/locales/documents/bn.json +70 -0
  813. package/locales/documents/br.json +76 -0
  814. package/locales/documents/co.json +72 -0
  815. package/locales/documents/cs.json +74 -0
  816. package/locales/documents/da.json +70 -0
  817. package/locales/documents/de.json +70 -0
  818. package/locales/documents/el.json +70 -0
  819. package/locales/documents/en.json +70 -0
  820. package/locales/documents/es.json +72 -0
  821. package/locales/documents/fa.json +70 -0
  822. package/locales/documents/fi.json +70 -0
  823. package/locales/documents/fr-CA.json +72 -0
  824. package/locales/documents/fr.json +72 -0
  825. package/locales/documents/ha.json +70 -0
  826. package/locales/documents/he.json +72 -0
  827. package/locales/documents/hi.json +70 -0
  828. package/locales/documents/hr.json +72 -0
  829. package/locales/documents/hu.json +70 -0
  830. package/locales/documents/id.json +68 -0
  831. package/locales/documents/it.json +72 -0
  832. package/locales/documents/ja.json +68 -0
  833. package/locales/documents/ko.json +68 -0
  834. package/locales/documents/mr.json +70 -0
  835. package/locales/documents/ms.json +68 -0
  836. package/locales/documents/nl.json +70 -0
  837. package/locales/documents/pl.json +74 -0
  838. package/locales/documents/pt.json +72 -0
  839. package/locales/documents/ro.json +72 -0
  840. package/locales/documents/ru.json +74 -0
  841. package/locales/documents/sk.json +74 -0
  842. package/locales/documents/sv.json +70 -0
  843. package/locales/documents/sw.json +70 -0
  844. package/locales/documents/ta.json +70 -0
  845. package/locales/documents/te.json +70 -0
  846. package/locales/documents/th.json +68 -0
  847. package/locales/documents/tl.json +70 -0
  848. package/locales/documents/tr.json +70 -0
  849. package/locales/documents/uk.json +74 -0
  850. package/locales/documents/ur.json +70 -0
  851. package/locales/documents/vi.json +68 -0
  852. package/locales/documents/yo.json +68 -0
  853. package/locales/documents/zh-Hans.json +68 -0
  854. package/locales/documents/zh-Hant.json +68 -0
  855. package/locales/el.json +419 -0
  856. package/locales/en.json +419 -0
  857. package/locales/enterprise/am.json +21 -0
  858. package/locales/enterprise/ar.json +21 -0
  859. package/locales/enterprise/bg.json +21 -0
  860. package/locales/enterprise/bn.json +21 -0
  861. package/locales/enterprise/br.json +21 -0
  862. package/locales/enterprise/co.json +21 -0
  863. package/locales/enterprise/cs.json +21 -0
  864. package/locales/enterprise/da.json +21 -0
  865. package/locales/enterprise/de.json +21 -0
  866. package/locales/enterprise/el.json +21 -0
  867. package/locales/enterprise/en.json +21 -0
  868. package/locales/enterprise/es.json +21 -0
  869. package/locales/enterprise/fa.json +21 -0
  870. package/locales/enterprise/fi.json +21 -0
  871. package/locales/enterprise/fr-CA.json +21 -0
  872. package/locales/enterprise/fr.json +21 -0
  873. package/locales/enterprise/ha.json +21 -0
  874. package/locales/enterprise/he.json +21 -0
  875. package/locales/enterprise/hi.json +21 -0
  876. package/locales/enterprise/hr.json +21 -0
  877. package/locales/enterprise/hu.json +21 -0
  878. package/locales/enterprise/id.json +21 -0
  879. package/locales/enterprise/it.json +21 -0
  880. package/locales/enterprise/ja.json +21 -0
  881. package/locales/enterprise/ko.json +21 -0
  882. package/locales/enterprise/mr.json +21 -0
  883. package/locales/enterprise/ms.json +21 -0
  884. package/locales/enterprise/nl.json +21 -0
  885. package/locales/enterprise/pl.json +21 -0
  886. package/locales/enterprise/pt.json +21 -0
  887. package/locales/enterprise/ro.json +21 -0
  888. package/locales/enterprise/ru.json +21 -0
  889. package/locales/enterprise/sk.json +21 -0
  890. package/locales/enterprise/sv.json +21 -0
  891. package/locales/enterprise/sw.json +21 -0
  892. package/locales/enterprise/ta.json +21 -0
  893. package/locales/enterprise/te.json +21 -0
  894. package/locales/enterprise/th.json +21 -0
  895. package/locales/enterprise/tl.json +21 -0
  896. package/locales/enterprise/tr.json +21 -0
  897. package/locales/enterprise/uk.json +21 -0
  898. package/locales/enterprise/ur.json +21 -0
  899. package/locales/enterprise/vi.json +21 -0
  900. package/locales/enterprise/yo.json +21 -0
  901. package/locales/enterprise/zh-Hans.json +21 -0
  902. package/locales/enterprise/zh-Hant.json +21 -0
  903. package/locales/es.json +427 -0
  904. package/locales/extensions/am.json +58 -0
  905. package/locales/extensions/ar.json +58 -0
  906. package/locales/extensions/bg.json +58 -0
  907. package/locales/extensions/bn.json +58 -0
  908. package/locales/extensions/br.json +58 -0
  909. package/locales/extensions/co.json +58 -0
  910. package/locales/extensions/cs.json +58 -0
  911. package/locales/extensions/da.json +58 -0
  912. package/locales/extensions/de.json +58 -0
  913. package/locales/extensions/el.json +58 -0
  914. package/locales/extensions/en.json +58 -0
  915. package/locales/extensions/es.json +58 -0
  916. package/locales/extensions/fa.json +58 -0
  917. package/locales/extensions/fi.json +58 -0
  918. package/locales/extensions/fr-CA.json +58 -0
  919. package/locales/extensions/fr.json +58 -0
  920. package/locales/extensions/ha.json +58 -0
  921. package/locales/extensions/he.json +58 -0
  922. package/locales/extensions/hi.json +58 -0
  923. package/locales/extensions/hr.json +58 -0
  924. package/locales/extensions/hu.json +58 -0
  925. package/locales/extensions/id.json +58 -0
  926. package/locales/extensions/it.json +58 -0
  927. package/locales/extensions/ja.json +58 -0
  928. package/locales/extensions/ko.json +58 -0
  929. package/locales/extensions/mr.json +58 -0
  930. package/locales/extensions/ms.json +58 -0
  931. package/locales/extensions/nl.json +58 -0
  932. package/locales/extensions/pl.json +58 -0
  933. package/locales/extensions/pt.json +58 -0
  934. package/locales/extensions/ro.json +58 -0
  935. package/locales/extensions/ru.json +58 -0
  936. package/locales/extensions/sk.json +58 -0
  937. package/locales/extensions/sv.json +58 -0
  938. package/locales/extensions/sw.json +58 -0
  939. package/locales/extensions/ta.json +58 -0
  940. package/locales/extensions/te.json +58 -0
  941. package/locales/extensions/th.json +58 -0
  942. package/locales/extensions/tl.json +58 -0
  943. package/locales/extensions/tr.json +58 -0
  944. package/locales/extensions/uk.json +58 -0
  945. package/locales/extensions/ur.json +58 -0
  946. package/locales/extensions/vi.json +58 -0
  947. package/locales/extensions/yo.json +58 -0
  948. package/locales/extensions/zh-Hans.json +58 -0
  949. package/locales/extensions/zh-Hant.json +58 -0
  950. package/locales/fa.json +419 -0
  951. package/locales/fi.json +419 -0
  952. package/locales/first/am.json +26 -0
  953. package/locales/first/ar.json +26 -0
  954. package/locales/first/bg.json +26 -0
  955. package/locales/first/bn.json +26 -0
  956. package/locales/first/br.json +26 -0
  957. package/locales/first/co.json +26 -0
  958. package/locales/first/cs.json +26 -0
  959. package/locales/first/da.json +26 -0
  960. package/locales/first/de.json +26 -0
  961. package/locales/first/el.json +26 -0
  962. package/locales/first/en.json +26 -0
  963. package/locales/first/es.json +26 -0
  964. package/locales/first/fa.json +26 -0
  965. package/locales/first/fi.json +26 -0
  966. package/locales/first/fr-CA.json +26 -0
  967. package/locales/first/fr.json +26 -0
  968. package/locales/first/ha.json +26 -0
  969. package/locales/first/he.json +26 -0
  970. package/locales/first/hi.json +26 -0
  971. package/locales/first/hr.json +26 -0
  972. package/locales/first/hu.json +26 -0
  973. package/locales/first/id.json +26 -0
  974. package/locales/first/it.json +26 -0
  975. package/locales/first/ja.json +26 -0
  976. package/locales/first/ko.json +26 -0
  977. package/locales/first/mr.json +26 -0
  978. package/locales/first/ms.json +26 -0
  979. package/locales/first/nl.json +26 -0
  980. package/locales/first/pl.json +26 -0
  981. package/locales/first/pt.json +26 -0
  982. package/locales/first/ro.json +26 -0
  983. package/locales/first/ru.json +26 -0
  984. package/locales/first/sk.json +26 -0
  985. package/locales/first/sv.json +26 -0
  986. package/locales/first/sw.json +26 -0
  987. package/locales/first/ta.json +26 -0
  988. package/locales/first/te.json +26 -0
  989. package/locales/first/th.json +26 -0
  990. package/locales/first/tl.json +26 -0
  991. package/locales/first/tr.json +26 -0
  992. package/locales/first/uk.json +26 -0
  993. package/locales/first/ur.json +26 -0
  994. package/locales/first/vi.json +26 -0
  995. package/locales/first/yo.json +26 -0
  996. package/locales/first/zh-Hans.json +26 -0
  997. package/locales/first/zh-Hant.json +26 -0
  998. package/locales/flows/am.json +51 -0
  999. package/locales/flows/ar.json +51 -0
  1000. package/locales/flows/bg.json +51 -0
  1001. package/locales/flows/bn.json +51 -0
  1002. package/locales/flows/br.json +51 -0
  1003. package/locales/flows/co.json +51 -0
  1004. package/locales/flows/cs.json +51 -0
  1005. package/locales/flows/da.json +51 -0
  1006. package/locales/flows/de.json +51 -0
  1007. package/locales/flows/el.json +51 -0
  1008. package/locales/flows/en.json +51 -0
  1009. package/locales/flows/es.json +51 -0
  1010. package/locales/flows/fa.json +51 -0
  1011. package/locales/flows/fi.json +51 -0
  1012. package/locales/flows/fr-CA.json +51 -0
  1013. package/locales/flows/fr.json +51 -0
  1014. package/locales/flows/ha.json +51 -0
  1015. package/locales/flows/he.json +51 -0
  1016. package/locales/flows/hi.json +51 -0
  1017. package/locales/flows/hr.json +51 -0
  1018. package/locales/flows/hu.json +51 -0
  1019. package/locales/flows/id.json +51 -0
  1020. package/locales/flows/it.json +51 -0
  1021. package/locales/flows/ja.json +51 -0
  1022. package/locales/flows/ko.json +51 -0
  1023. package/locales/flows/mr.json +51 -0
  1024. package/locales/flows/ms.json +51 -0
  1025. package/locales/flows/nl.json +51 -0
  1026. package/locales/flows/pl.json +51 -0
  1027. package/locales/flows/pt.json +51 -0
  1028. package/locales/flows/ro.json +51 -0
  1029. package/locales/flows/ru.json +51 -0
  1030. package/locales/flows/sk.json +51 -0
  1031. package/locales/flows/sv.json +51 -0
  1032. package/locales/flows/sw.json +51 -0
  1033. package/locales/flows/ta.json +51 -0
  1034. package/locales/flows/te.json +51 -0
  1035. package/locales/flows/th.json +51 -0
  1036. package/locales/flows/tl.json +51 -0
  1037. package/locales/flows/tr.json +51 -0
  1038. package/locales/flows/uk.json +51 -0
  1039. package/locales/flows/ur.json +51 -0
  1040. package/locales/flows/vi.json +51 -0
  1041. package/locales/flows/yo.json +51 -0
  1042. package/locales/flows/zh-Hans.json +51 -0
  1043. package/locales/flows/zh-Hant.json +51 -0
  1044. package/locales/folders/am.json +40 -0
  1045. package/locales/folders/ar.json +44 -0
  1046. package/locales/folders/bg.json +40 -0
  1047. package/locales/folders/bn.json +40 -0
  1048. package/locales/folders/br.json +43 -0
  1049. package/locales/folders/co.json +41 -0
  1050. package/locales/folders/cs.json +42 -0
  1051. package/locales/folders/da.json +40 -0
  1052. package/locales/folders/de.json +40 -0
  1053. package/locales/folders/el.json +40 -0
  1054. package/locales/folders/en.json +40 -0
  1055. package/locales/folders/es.json +41 -0
  1056. package/locales/folders/fa.json +40 -0
  1057. package/locales/folders/fi.json +40 -0
  1058. package/locales/folders/fr-CA.json +41 -0
  1059. package/locales/folders/fr.json +41 -0
  1060. package/locales/folders/ha.json +40 -0
  1061. package/locales/folders/he.json +41 -0
  1062. package/locales/folders/hi.json +40 -0
  1063. package/locales/folders/hr.json +41 -0
  1064. package/locales/folders/hu.json +40 -0
  1065. package/locales/folders/id.json +39 -0
  1066. package/locales/folders/it.json +41 -0
  1067. package/locales/folders/ja.json +39 -0
  1068. package/locales/folders/ko.json +39 -0
  1069. package/locales/folders/mr.json +40 -0
  1070. package/locales/folders/ms.json +39 -0
  1071. package/locales/folders/nl.json +40 -0
  1072. package/locales/folders/pl.json +42 -0
  1073. package/locales/folders/pt.json +41 -0
  1074. package/locales/folders/ro.json +41 -0
  1075. package/locales/folders/ru.json +42 -0
  1076. package/locales/folders/sk.json +42 -0
  1077. package/locales/folders/sv.json +40 -0
  1078. package/locales/folders/sw.json +40 -0
  1079. package/locales/folders/ta.json +40 -0
  1080. package/locales/folders/te.json +40 -0
  1081. package/locales/folders/th.json +39 -0
  1082. package/locales/folders/tl.json +40 -0
  1083. package/locales/folders/tr.json +40 -0
  1084. package/locales/folders/uk.json +42 -0
  1085. package/locales/folders/ur.json +40 -0
  1086. package/locales/folders/vi.json +39 -0
  1087. package/locales/folders/yo.json +39 -0
  1088. package/locales/folders/zh-Hans.json +39 -0
  1089. package/locales/folders/zh-Hant.json +39 -0
  1090. package/locales/fr-CA.json +427 -0
  1091. package/locales/fr.json +427 -0
  1092. package/locales/ha.json +419 -0
  1093. package/locales/he.json +434 -0
  1094. package/locales/hi.json +419 -0
  1095. package/locales/hr.json +427 -0
  1096. package/locales/hu.json +419 -0
  1097. package/locales/id.json +411 -0
  1098. package/locales/interactive/am.json +9 -0
  1099. package/locales/interactive/ar.json +9 -0
  1100. package/locales/interactive/bg.json +9 -0
  1101. package/locales/interactive/bn.json +9 -0
  1102. package/locales/interactive/br.json +9 -0
  1103. package/locales/interactive/co.json +9 -0
  1104. package/locales/interactive/cs.json +9 -0
  1105. package/locales/interactive/da.json +9 -0
  1106. package/locales/interactive/de.json +9 -0
  1107. package/locales/interactive/el.json +9 -0
  1108. package/locales/interactive/en.json +9 -0
  1109. package/locales/interactive/es.json +9 -0
  1110. package/locales/interactive/fa.json +9 -0
  1111. package/locales/interactive/fi.json +9 -0
  1112. package/locales/interactive/fr-CA.json +9 -0
  1113. package/locales/interactive/fr.json +9 -0
  1114. package/locales/interactive/ha.json +9 -0
  1115. package/locales/interactive/he.json +9 -0
  1116. package/locales/interactive/hi.json +9 -0
  1117. package/locales/interactive/hr.json +9 -0
  1118. package/locales/interactive/hu.json +9 -0
  1119. package/locales/interactive/id.json +9 -0
  1120. package/locales/interactive/it.json +9 -0
  1121. package/locales/interactive/ja.json +9 -0
  1122. package/locales/interactive/ko.json +9 -0
  1123. package/locales/interactive/mr.json +9 -0
  1124. package/locales/interactive/ms.json +9 -0
  1125. package/locales/interactive/nl.json +9 -0
  1126. package/locales/interactive/pl.json +9 -0
  1127. package/locales/interactive/pt.json +9 -0
  1128. package/locales/interactive/ro.json +9 -0
  1129. package/locales/interactive/ru.json +9 -0
  1130. package/locales/interactive/sk.json +9 -0
  1131. package/locales/interactive/sv.json +9 -0
  1132. package/locales/interactive/sw.json +9 -0
  1133. package/locales/interactive/ta.json +9 -0
  1134. package/locales/interactive/te.json +9 -0
  1135. package/locales/interactive/th.json +9 -0
  1136. package/locales/interactive/tl.json +9 -0
  1137. package/locales/interactive/tr.json +9 -0
  1138. package/locales/interactive/uk.json +9 -0
  1139. package/locales/interactive/ur.json +9 -0
  1140. package/locales/interactive/vi.json +9 -0
  1141. package/locales/interactive/yo.json +9 -0
  1142. package/locales/interactive/zh-Hans.json +9 -0
  1143. package/locales/interactive/zh-Hant.json +9 -0
  1144. package/locales/it.json +427 -0
  1145. package/locales/ja.json +411 -0
  1146. package/locales/ko.json +411 -0
  1147. package/locales/layouts/am.json +9 -0
  1148. package/locales/layouts/ar.json +9 -0
  1149. package/locales/layouts/bg.json +9 -0
  1150. package/locales/layouts/bn.json +9 -0
  1151. package/locales/layouts/br.json +9 -0
  1152. package/locales/layouts/co.json +9 -0
  1153. package/locales/layouts/cs.json +9 -0
  1154. package/locales/layouts/da.json +9 -0
  1155. package/locales/layouts/de.json +9 -0
  1156. package/locales/layouts/el.json +9 -0
  1157. package/locales/layouts/en.json +9 -0
  1158. package/locales/layouts/es.json +9 -0
  1159. package/locales/layouts/fa.json +9 -0
  1160. package/locales/layouts/fi.json +9 -0
  1161. package/locales/layouts/fr-CA.json +9 -0
  1162. package/locales/layouts/fr.json +9 -0
  1163. package/locales/layouts/ha.json +9 -0
  1164. package/locales/layouts/he.json +9 -0
  1165. package/locales/layouts/hi.json +9 -0
  1166. package/locales/layouts/hr.json +9 -0
  1167. package/locales/layouts/hu.json +9 -0
  1168. package/locales/layouts/id.json +9 -0
  1169. package/locales/layouts/it.json +9 -0
  1170. package/locales/layouts/ja.json +9 -0
  1171. package/locales/layouts/ko.json +9 -0
  1172. package/locales/layouts/mr.json +9 -0
  1173. package/locales/layouts/ms.json +9 -0
  1174. package/locales/layouts/nl.json +9 -0
  1175. package/locales/layouts/pl.json +9 -0
  1176. package/locales/layouts/pt.json +9 -0
  1177. package/locales/layouts/ro.json +9 -0
  1178. package/locales/layouts/ru.json +9 -0
  1179. package/locales/layouts/sk.json +9 -0
  1180. package/locales/layouts/sv.json +9 -0
  1181. package/locales/layouts/sw.json +9 -0
  1182. package/locales/layouts/ta.json +9 -0
  1183. package/locales/layouts/te.json +9 -0
  1184. package/locales/layouts/th.json +9 -0
  1185. package/locales/layouts/tl.json +9 -0
  1186. package/locales/layouts/tr.json +9 -0
  1187. package/locales/layouts/uk.json +9 -0
  1188. package/locales/layouts/ur.json +9 -0
  1189. package/locales/layouts/vi.json +9 -0
  1190. package/locales/layouts/yo.json +9 -0
  1191. package/locales/layouts/zh-Hans.json +9 -0
  1192. package/locales/layouts/zh-Hant.json +9 -0
  1193. package/locales/lock/am.json +36 -0
  1194. package/locales/lock/ar.json +36 -0
  1195. package/locales/lock/bg.json +36 -0
  1196. package/locales/lock/bn.json +36 -0
  1197. package/locales/lock/br.json +36 -0
  1198. package/locales/lock/co.json +36 -0
  1199. package/locales/lock/cs.json +36 -0
  1200. package/locales/lock/da.json +36 -0
  1201. package/locales/lock/de.json +36 -0
  1202. package/locales/lock/el.json +36 -0
  1203. package/locales/lock/en.json +36 -0
  1204. package/locales/lock/es.json +36 -0
  1205. package/locales/lock/fa.json +36 -0
  1206. package/locales/lock/fi.json +36 -0
  1207. package/locales/lock/fr-CA.json +36 -0
  1208. package/locales/lock/fr.json +36 -0
  1209. package/locales/lock/ha.json +36 -0
  1210. package/locales/lock/he.json +36 -0
  1211. package/locales/lock/hi.json +36 -0
  1212. package/locales/lock/hr.json +36 -0
  1213. package/locales/lock/hu.json +36 -0
  1214. package/locales/lock/id.json +36 -0
  1215. package/locales/lock/it.json +36 -0
  1216. package/locales/lock/ja.json +36 -0
  1217. package/locales/lock/ko.json +36 -0
  1218. package/locales/lock/mr.json +36 -0
  1219. package/locales/lock/ms.json +36 -0
  1220. package/locales/lock/nl.json +36 -0
  1221. package/locales/lock/pl.json +36 -0
  1222. package/locales/lock/pt.json +36 -0
  1223. package/locales/lock/ro.json +36 -0
  1224. package/locales/lock/ru.json +36 -0
  1225. package/locales/lock/sk.json +36 -0
  1226. package/locales/lock/sv.json +36 -0
  1227. package/locales/lock/sw.json +36 -0
  1228. package/locales/lock/ta.json +36 -0
  1229. package/locales/lock/te.json +36 -0
  1230. package/locales/lock/th.json +36 -0
  1231. package/locales/lock/tl.json +36 -0
  1232. package/locales/lock/tr.json +36 -0
  1233. package/locales/lock/uk.json +36 -0
  1234. package/locales/lock/ur.json +36 -0
  1235. package/locales/lock/vi.json +36 -0
  1236. package/locales/lock/yo.json +36 -0
  1237. package/locales/lock/zh-Hans.json +36 -0
  1238. package/locales/lock/zh-Hant.json +36 -0
  1239. package/locales/look/am.json +25 -0
  1240. package/locales/look/ar.json +25 -0
  1241. package/locales/look/bg.json +25 -0
  1242. package/locales/look/bn.json +25 -0
  1243. package/locales/look/br.json +25 -0
  1244. package/locales/look/co.json +25 -0
  1245. package/locales/look/cs.json +25 -0
  1246. package/locales/look/da.json +25 -0
  1247. package/locales/look/de.json +25 -0
  1248. package/locales/look/el.json +25 -0
  1249. package/locales/look/en.json +25 -0
  1250. package/locales/look/es.json +25 -0
  1251. package/locales/look/fa.json +25 -0
  1252. package/locales/look/fi.json +25 -0
  1253. package/locales/look/fr-CA.json +25 -0
  1254. package/locales/look/fr.json +25 -0
  1255. package/locales/look/ha.json +25 -0
  1256. package/locales/look/he.json +25 -0
  1257. package/locales/look/hi.json +25 -0
  1258. package/locales/look/hr.json +25 -0
  1259. package/locales/look/hu.json +25 -0
  1260. package/locales/look/id.json +25 -0
  1261. package/locales/look/it.json +25 -0
  1262. package/locales/look/ja.json +25 -0
  1263. package/locales/look/ko.json +25 -0
  1264. package/locales/look/mr.json +25 -0
  1265. package/locales/look/ms.json +25 -0
  1266. package/locales/look/nl.json +25 -0
  1267. package/locales/look/pl.json +25 -0
  1268. package/locales/look/pt.json +25 -0
  1269. package/locales/look/ro.json +25 -0
  1270. package/locales/look/ru.json +25 -0
  1271. package/locales/look/sk.json +25 -0
  1272. package/locales/look/sv.json +25 -0
  1273. package/locales/look/sw.json +25 -0
  1274. package/locales/look/ta.json +25 -0
  1275. package/locales/look/te.json +25 -0
  1276. package/locales/look/th.json +25 -0
  1277. package/locales/look/tl.json +25 -0
  1278. package/locales/look/tr.json +25 -0
  1279. package/locales/look/uk.json +25 -0
  1280. package/locales/look/ur.json +25 -0
  1281. package/locales/look/vi.json +25 -0
  1282. package/locales/look/yo.json +25 -0
  1283. package/locales/look/zh-Hans.json +25 -0
  1284. package/locales/look/zh-Hant.json +25 -0
  1285. package/locales/machine/am.json +20 -0
  1286. package/locales/machine/ar.json +20 -0
  1287. package/locales/machine/bg.json +20 -0
  1288. package/locales/machine/bn.json +20 -0
  1289. package/locales/machine/br.json +20 -0
  1290. package/locales/machine/co.json +20 -0
  1291. package/locales/machine/cs.json +20 -0
  1292. package/locales/machine/da.json +20 -0
  1293. package/locales/machine/de.json +20 -0
  1294. package/locales/machine/el.json +20 -0
  1295. package/locales/machine/en.json +20 -0
  1296. package/locales/machine/es.json +20 -0
  1297. package/locales/machine/fa.json +20 -0
  1298. package/locales/machine/fi.json +20 -0
  1299. package/locales/machine/fr-CA.json +20 -0
  1300. package/locales/machine/fr.json +20 -0
  1301. package/locales/machine/ha.json +20 -0
  1302. package/locales/machine/he.json +20 -0
  1303. package/locales/machine/hi.json +20 -0
  1304. package/locales/machine/hr.json +20 -0
  1305. package/locales/machine/hu.json +20 -0
  1306. package/locales/machine/id.json +20 -0
  1307. package/locales/machine/it.json +20 -0
  1308. package/locales/machine/ja.json +20 -0
  1309. package/locales/machine/ko.json +20 -0
  1310. package/locales/machine/mr.json +20 -0
  1311. package/locales/machine/ms.json +20 -0
  1312. package/locales/machine/nl.json +20 -0
  1313. package/locales/machine/pl.json +20 -0
  1314. package/locales/machine/pt.json +20 -0
  1315. package/locales/machine/ro.json +20 -0
  1316. package/locales/machine/ru.json +20 -0
  1317. package/locales/machine/sk.json +20 -0
  1318. package/locales/machine/sv.json +20 -0
  1319. package/locales/machine/sw.json +20 -0
  1320. package/locales/machine/ta.json +20 -0
  1321. package/locales/machine/te.json +20 -0
  1322. package/locales/machine/th.json +20 -0
  1323. package/locales/machine/tl.json +20 -0
  1324. package/locales/machine/tr.json +20 -0
  1325. package/locales/machine/uk.json +20 -0
  1326. package/locales/machine/ur.json +20 -0
  1327. package/locales/machine/vi.json +20 -0
  1328. package/locales/machine/yo.json +20 -0
  1329. package/locales/machine/zh-Hans.json +20 -0
  1330. package/locales/machine/zh-Hant.json +20 -0
  1331. package/locales/made/am.json +17 -0
  1332. package/locales/made/ar.json +17 -0
  1333. package/locales/made/bg.json +17 -0
  1334. package/locales/made/bn.json +17 -0
  1335. package/locales/made/br.json +17 -0
  1336. package/locales/made/co.json +17 -0
  1337. package/locales/made/cs.json +17 -0
  1338. package/locales/made/da.json +17 -0
  1339. package/locales/made/de.json +17 -0
  1340. package/locales/made/el.json +17 -0
  1341. package/locales/made/en.json +17 -0
  1342. package/locales/made/es.json +17 -0
  1343. package/locales/made/fa.json +17 -0
  1344. package/locales/made/fi.json +17 -0
  1345. package/locales/made/fr-CA.json +17 -0
  1346. package/locales/made/fr.json +17 -0
  1347. package/locales/made/ha.json +17 -0
  1348. package/locales/made/he.json +17 -0
  1349. package/locales/made/hi.json +17 -0
  1350. package/locales/made/hr.json +17 -0
  1351. package/locales/made/hu.json +17 -0
  1352. package/locales/made/id.json +17 -0
  1353. package/locales/made/it.json +17 -0
  1354. package/locales/made/ja.json +17 -0
  1355. package/locales/made/ko.json +17 -0
  1356. package/locales/made/mr.json +17 -0
  1357. package/locales/made/ms.json +17 -0
  1358. package/locales/made/nl.json +17 -0
  1359. package/locales/made/pl.json +17 -0
  1360. package/locales/made/pt.json +17 -0
  1361. package/locales/made/ro.json +17 -0
  1362. package/locales/made/ru.json +17 -0
  1363. package/locales/made/sk.json +17 -0
  1364. package/locales/made/sv.json +17 -0
  1365. package/locales/made/sw.json +17 -0
  1366. package/locales/made/ta.json +17 -0
  1367. package/locales/made/te.json +17 -0
  1368. package/locales/made/th.json +17 -0
  1369. package/locales/made/tl.json +17 -0
  1370. package/locales/made/tr.json +17 -0
  1371. package/locales/made/uk.json +17 -0
  1372. package/locales/made/ur.json +17 -0
  1373. package/locales/made/vi.json +17 -0
  1374. package/locales/made/yo.json +17 -0
  1375. package/locales/made/zh-Hans.json +17 -0
  1376. package/locales/made/zh-Hant.json +17 -0
  1377. package/locales/mr.json +419 -0
  1378. package/locales/ms.json +411 -0
  1379. package/locales/nl.json +419 -0
  1380. package/locales/notifications/am.json +9 -0
  1381. package/locales/notifications/ar.json +9 -0
  1382. package/locales/notifications/bg.json +9 -0
  1383. package/locales/notifications/bn.json +9 -0
  1384. package/locales/notifications/br.json +9 -0
  1385. package/locales/notifications/co.json +9 -0
  1386. package/locales/notifications/cs.json +9 -0
  1387. package/locales/notifications/da.json +9 -0
  1388. package/locales/notifications/de.json +9 -0
  1389. package/locales/notifications/el.json +9 -0
  1390. package/locales/notifications/en.json +9 -0
  1391. package/locales/notifications/es.json +9 -0
  1392. package/locales/notifications/fa.json +9 -0
  1393. package/locales/notifications/fi.json +9 -0
  1394. package/locales/notifications/fr-CA.json +9 -0
  1395. package/locales/notifications/fr.json +9 -0
  1396. package/locales/notifications/ha.json +9 -0
  1397. package/locales/notifications/he.json +9 -0
  1398. package/locales/notifications/hi.json +9 -0
  1399. package/locales/notifications/hr.json +9 -0
  1400. package/locales/notifications/hu.json +9 -0
  1401. package/locales/notifications/id.json +9 -0
  1402. package/locales/notifications/it.json +9 -0
  1403. package/locales/notifications/ja.json +9 -0
  1404. package/locales/notifications/ko.json +9 -0
  1405. package/locales/notifications/mr.json +9 -0
  1406. package/locales/notifications/ms.json +9 -0
  1407. package/locales/notifications/nl.json +9 -0
  1408. package/locales/notifications/pl.json +9 -0
  1409. package/locales/notifications/pt.json +9 -0
  1410. package/locales/notifications/ro.json +9 -0
  1411. package/locales/notifications/ru.json +9 -0
  1412. package/locales/notifications/sk.json +9 -0
  1413. package/locales/notifications/sv.json +9 -0
  1414. package/locales/notifications/sw.json +9 -0
  1415. package/locales/notifications/ta.json +9 -0
  1416. package/locales/notifications/te.json +9 -0
  1417. package/locales/notifications/th.json +9 -0
  1418. package/locales/notifications/tl.json +9 -0
  1419. package/locales/notifications/tr.json +9 -0
  1420. package/locales/notifications/uk.json +9 -0
  1421. package/locales/notifications/ur.json +9 -0
  1422. package/locales/notifications/vi.json +9 -0
  1423. package/locales/notifications/yo.json +9 -0
  1424. package/locales/notifications/zh-Hans.json +9 -0
  1425. package/locales/notifications/zh-Hant.json +9 -0
  1426. package/locales/pictures/am.json +42 -0
  1427. package/locales/pictures/ar.json +42 -0
  1428. package/locales/pictures/bg.json +42 -0
  1429. package/locales/pictures/bn.json +42 -0
  1430. package/locales/pictures/br.json +42 -0
  1431. package/locales/pictures/co.json +42 -0
  1432. package/locales/pictures/cs.json +42 -0
  1433. package/locales/pictures/da.json +42 -0
  1434. package/locales/pictures/de.json +42 -0
  1435. package/locales/pictures/el.json +42 -0
  1436. package/locales/pictures/en.json +42 -0
  1437. package/locales/pictures/es.json +42 -0
  1438. package/locales/pictures/fa.json +42 -0
  1439. package/locales/pictures/fi.json +42 -0
  1440. package/locales/pictures/fr-CA.json +42 -0
  1441. package/locales/pictures/fr.json +42 -0
  1442. package/locales/pictures/ha.json +42 -0
  1443. package/locales/pictures/he.json +42 -0
  1444. package/locales/pictures/hi.json +42 -0
  1445. package/locales/pictures/hr.json +42 -0
  1446. package/locales/pictures/hu.json +42 -0
  1447. package/locales/pictures/id.json +42 -0
  1448. package/locales/pictures/it.json +42 -0
  1449. package/locales/pictures/ja.json +42 -0
  1450. package/locales/pictures/ko.json +42 -0
  1451. package/locales/pictures/mr.json +42 -0
  1452. package/locales/pictures/ms.json +42 -0
  1453. package/locales/pictures/nl.json +42 -0
  1454. package/locales/pictures/pl.json +42 -0
  1455. package/locales/pictures/pt.json +42 -0
  1456. package/locales/pictures/ro.json +42 -0
  1457. package/locales/pictures/ru.json +42 -0
  1458. package/locales/pictures/sk.json +42 -0
  1459. package/locales/pictures/sv.json +42 -0
  1460. package/locales/pictures/sw.json +42 -0
  1461. package/locales/pictures/ta.json +42 -0
  1462. package/locales/pictures/te.json +42 -0
  1463. package/locales/pictures/th.json +42 -0
  1464. package/locales/pictures/tl.json +42 -0
  1465. package/locales/pictures/tr.json +42 -0
  1466. package/locales/pictures/uk.json +42 -0
  1467. package/locales/pictures/ur.json +42 -0
  1468. package/locales/pictures/vi.json +42 -0
  1469. package/locales/pictures/yo.json +42 -0
  1470. package/locales/pictures/zh-Hans.json +42 -0
  1471. package/locales/pictures/zh-Hant.json +42 -0
  1472. package/locales/pl.json +435 -0
  1473. package/locales/plan/am.json +13 -0
  1474. package/locales/plan/ar.json +13 -0
  1475. package/locales/plan/bg.json +13 -0
  1476. package/locales/plan/bn.json +13 -0
  1477. package/locales/plan/br.json +13 -0
  1478. package/locales/plan/co.json +13 -0
  1479. package/locales/plan/cs.json +13 -0
  1480. package/locales/plan/da.json +13 -0
  1481. package/locales/plan/de.json +13 -0
  1482. package/locales/plan/el.json +13 -0
  1483. package/locales/plan/en.json +13 -0
  1484. package/locales/plan/es.json +13 -0
  1485. package/locales/plan/fa.json +13 -0
  1486. package/locales/plan/fi.json +13 -0
  1487. package/locales/plan/fr-CA.json +13 -0
  1488. package/locales/plan/fr.json +13 -0
  1489. package/locales/plan/ha.json +13 -0
  1490. package/locales/plan/he.json +13 -0
  1491. package/locales/plan/hi.json +13 -0
  1492. package/locales/plan/hr.json +13 -0
  1493. package/locales/plan/hu.json +13 -0
  1494. package/locales/plan/id.json +13 -0
  1495. package/locales/plan/it.json +13 -0
  1496. package/locales/plan/ja.json +13 -0
  1497. package/locales/plan/ko.json +13 -0
  1498. package/locales/plan/mr.json +13 -0
  1499. package/locales/plan/ms.json +13 -0
  1500. package/locales/plan/nl.json +13 -0
  1501. package/locales/plan/pl.json +13 -0
  1502. package/locales/plan/pt.json +13 -0
  1503. package/locales/plan/ro.json +13 -0
  1504. package/locales/plan/ru.json +13 -0
  1505. package/locales/plan/sk.json +13 -0
  1506. package/locales/plan/sv.json +13 -0
  1507. package/locales/plan/sw.json +13 -0
  1508. package/locales/plan/ta.json +13 -0
  1509. package/locales/plan/te.json +13 -0
  1510. package/locales/plan/th.json +13 -0
  1511. package/locales/plan/tl.json +13 -0
  1512. package/locales/plan/tr.json +13 -0
  1513. package/locales/plan/uk.json +13 -0
  1514. package/locales/plan/ur.json +13 -0
  1515. package/locales/plan/vi.json +13 -0
  1516. package/locales/plan/yo.json +13 -0
  1517. package/locales/plan/zh-Hans.json +13 -0
  1518. package/locales/plan/zh-Hant.json +13 -0
  1519. package/locales/policy/am.json +40 -0
  1520. package/locales/policy/ar.json +40 -0
  1521. package/locales/policy/bg.json +40 -0
  1522. package/locales/policy/bn.json +40 -0
  1523. package/locales/policy/br.json +40 -0
  1524. package/locales/policy/co.json +40 -0
  1525. package/locales/policy/cs.json +40 -0
  1526. package/locales/policy/da.json +40 -0
  1527. package/locales/policy/de.json +40 -0
  1528. package/locales/policy/el.json +40 -0
  1529. package/locales/policy/en.json +40 -0
  1530. package/locales/policy/es.json +40 -0
  1531. package/locales/policy/fa.json +40 -0
  1532. package/locales/policy/fi.json +40 -0
  1533. package/locales/policy/fr-CA.json +40 -0
  1534. package/locales/policy/fr.json +40 -0
  1535. package/locales/policy/ha.json +40 -0
  1536. package/locales/policy/he.json +40 -0
  1537. package/locales/policy/hi.json +40 -0
  1538. package/locales/policy/hr.json +40 -0
  1539. package/locales/policy/hu.json +40 -0
  1540. package/locales/policy/id.json +40 -0
  1541. package/locales/policy/it.json +40 -0
  1542. package/locales/policy/ja.json +40 -0
  1543. package/locales/policy/ko.json +40 -0
  1544. package/locales/policy/mr.json +40 -0
  1545. package/locales/policy/ms.json +40 -0
  1546. package/locales/policy/nl.json +40 -0
  1547. package/locales/policy/pl.json +40 -0
  1548. package/locales/policy/pt.json +40 -0
  1549. package/locales/policy/ro.json +40 -0
  1550. package/locales/policy/ru.json +40 -0
  1551. package/locales/policy/sk.json +40 -0
  1552. package/locales/policy/sv.json +40 -0
  1553. package/locales/policy/sw.json +40 -0
  1554. package/locales/policy/ta.json +40 -0
  1555. package/locales/policy/te.json +40 -0
  1556. package/locales/policy/th.json +40 -0
  1557. package/locales/policy/tl.json +40 -0
  1558. package/locales/policy/tr.json +40 -0
  1559. package/locales/policy/uk.json +40 -0
  1560. package/locales/policy/ur.json +40 -0
  1561. package/locales/policy/vi.json +40 -0
  1562. package/locales/policy/yo.json +40 -0
  1563. package/locales/policy/zh-Hans.json +40 -0
  1564. package/locales/policy/zh-Hant.json +40 -0
  1565. package/locales/profiles/am.json +85 -0
  1566. package/locales/profiles/ar.json +85 -0
  1567. package/locales/profiles/bg.json +85 -0
  1568. package/locales/profiles/bn.json +85 -0
  1569. package/locales/profiles/br.json +85 -0
  1570. package/locales/profiles/co.json +85 -0
  1571. package/locales/profiles/cs.json +85 -0
  1572. package/locales/profiles/da.json +85 -0
  1573. package/locales/profiles/de.json +85 -0
  1574. package/locales/profiles/el.json +85 -0
  1575. package/locales/profiles/en.json +85 -0
  1576. package/locales/profiles/es.json +85 -0
  1577. package/locales/profiles/fa.json +85 -0
  1578. package/locales/profiles/fi.json +85 -0
  1579. package/locales/profiles/fr-CA.json +85 -0
  1580. package/locales/profiles/fr.json +85 -0
  1581. package/locales/profiles/ha.json +85 -0
  1582. package/locales/profiles/he.json +85 -0
  1583. package/locales/profiles/hi.json +85 -0
  1584. package/locales/profiles/hr.json +85 -0
  1585. package/locales/profiles/hu.json +85 -0
  1586. package/locales/profiles/id.json +85 -0
  1587. package/locales/profiles/it.json +85 -0
  1588. package/locales/profiles/ja.json +85 -0
  1589. package/locales/profiles/ko.json +85 -0
  1590. package/locales/profiles/mr.json +85 -0
  1591. package/locales/profiles/ms.json +85 -0
  1592. package/locales/profiles/nl.json +85 -0
  1593. package/locales/profiles/pl.json +85 -0
  1594. package/locales/profiles/pt.json +85 -0
  1595. package/locales/profiles/ro.json +85 -0
  1596. package/locales/profiles/ru.json +85 -0
  1597. package/locales/profiles/sk.json +85 -0
  1598. package/locales/profiles/sv.json +85 -0
  1599. package/locales/profiles/sw.json +85 -0
  1600. package/locales/profiles/ta.json +85 -0
  1601. package/locales/profiles/te.json +85 -0
  1602. package/locales/profiles/th.json +85 -0
  1603. package/locales/profiles/tl.json +85 -0
  1604. package/locales/profiles/tr.json +85 -0
  1605. package/locales/profiles/uk.json +85 -0
  1606. package/locales/profiles/ur.json +85 -0
  1607. package/locales/profiles/vi.json +85 -0
  1608. package/locales/profiles/yo.json +85 -0
  1609. package/locales/profiles/zh-Hans.json +85 -0
  1610. package/locales/profiles/zh-Hant.json +85 -0
  1611. package/locales/pt.json +427 -0
  1612. package/locales/reader/am.json +9 -0
  1613. package/locales/reader/ar.json +9 -0
  1614. package/locales/reader/bg.json +9 -0
  1615. package/locales/reader/bn.json +9 -0
  1616. package/locales/reader/br.json +9 -0
  1617. package/locales/reader/co.json +9 -0
  1618. package/locales/reader/cs.json +9 -0
  1619. package/locales/reader/da.json +9 -0
  1620. package/locales/reader/de.json +9 -0
  1621. package/locales/reader/el.json +9 -0
  1622. package/locales/reader/en.json +9 -0
  1623. package/locales/reader/es.json +9 -0
  1624. package/locales/reader/fa.json +9 -0
  1625. package/locales/reader/fi.json +9 -0
  1626. package/locales/reader/fr-CA.json +9 -0
  1627. package/locales/reader/fr.json +9 -0
  1628. package/locales/reader/ha.json +9 -0
  1629. package/locales/reader/he.json +9 -0
  1630. package/locales/reader/hi.json +9 -0
  1631. package/locales/reader/hr.json +9 -0
  1632. package/locales/reader/hu.json +9 -0
  1633. package/locales/reader/id.json +9 -0
  1634. package/locales/reader/it.json +9 -0
  1635. package/locales/reader/ja.json +9 -0
  1636. package/locales/reader/ko.json +9 -0
  1637. package/locales/reader/mr.json +9 -0
  1638. package/locales/reader/ms.json +9 -0
  1639. package/locales/reader/nl.json +9 -0
  1640. package/locales/reader/pl.json +9 -0
  1641. package/locales/reader/pt.json +9 -0
  1642. package/locales/reader/ro.json +9 -0
  1643. package/locales/reader/ru.json +9 -0
  1644. package/locales/reader/sk.json +9 -0
  1645. package/locales/reader/sv.json +9 -0
  1646. package/locales/reader/sw.json +9 -0
  1647. package/locales/reader/ta.json +9 -0
  1648. package/locales/reader/te.json +9 -0
  1649. package/locales/reader/th.json +9 -0
  1650. package/locales/reader/tl.json +9 -0
  1651. package/locales/reader/tr.json +9 -0
  1652. package/locales/reader/uk.json +9 -0
  1653. package/locales/reader/ur.json +9 -0
  1654. package/locales/reader/vi.json +9 -0
  1655. package/locales/reader/yo.json +9 -0
  1656. package/locales/reader/zh-Hans.json +9 -0
  1657. package/locales/reader/zh-Hant.json +9 -0
  1658. package/locales/receipt/am.json +39 -0
  1659. package/locales/receipt/ar.json +39 -0
  1660. package/locales/receipt/bg.json +39 -0
  1661. package/locales/receipt/bn.json +39 -0
  1662. package/locales/receipt/br.json +39 -0
  1663. package/locales/receipt/co.json +39 -0
  1664. package/locales/receipt/cs.json +39 -0
  1665. package/locales/receipt/da.json +39 -0
  1666. package/locales/receipt/de.json +39 -0
  1667. package/locales/receipt/el.json +39 -0
  1668. package/locales/receipt/en.json +39 -0
  1669. package/locales/receipt/es.json +39 -0
  1670. package/locales/receipt/fa.json +39 -0
  1671. package/locales/receipt/fi.json +39 -0
  1672. package/locales/receipt/fr-CA.json +39 -0
  1673. package/locales/receipt/fr.json +39 -0
  1674. package/locales/receipt/ha.json +39 -0
  1675. package/locales/receipt/he.json +39 -0
  1676. package/locales/receipt/hi.json +39 -0
  1677. package/locales/receipt/hr.json +39 -0
  1678. package/locales/receipt/hu.json +39 -0
  1679. package/locales/receipt/id.json +39 -0
  1680. package/locales/receipt/it.json +39 -0
  1681. package/locales/receipt/ja.json +39 -0
  1682. package/locales/receipt/ko.json +39 -0
  1683. package/locales/receipt/mr.json +39 -0
  1684. package/locales/receipt/ms.json +39 -0
  1685. package/locales/receipt/nl.json +39 -0
  1686. package/locales/receipt/pl.json +39 -0
  1687. package/locales/receipt/pt.json +39 -0
  1688. package/locales/receipt/ro.json +39 -0
  1689. package/locales/receipt/ru.json +39 -0
  1690. package/locales/receipt/sk.json +39 -0
  1691. package/locales/receipt/sv.json +39 -0
  1692. package/locales/receipt/sw.json +39 -0
  1693. package/locales/receipt/ta.json +39 -0
  1694. package/locales/receipt/te.json +39 -0
  1695. package/locales/receipt/th.json +39 -0
  1696. package/locales/receipt/tl.json +39 -0
  1697. package/locales/receipt/tr.json +39 -0
  1698. package/locales/receipt/uk.json +39 -0
  1699. package/locales/receipt/ur.json +39 -0
  1700. package/locales/receipt/vi.json +39 -0
  1701. package/locales/receipt/yo.json +39 -0
  1702. package/locales/receipt/zh-Hans.json +39 -0
  1703. package/locales/receipt/zh-Hant.json +39 -0
  1704. package/locales/ro.json +427 -0
  1705. package/locales/routines/am.json +48 -0
  1706. package/locales/routines/ar.json +52 -0
  1707. package/locales/routines/bg.json +48 -0
  1708. package/locales/routines/bn.json +48 -0
  1709. package/locales/routines/br.json +51 -0
  1710. package/locales/routines/co.json +49 -0
  1711. package/locales/routines/cs.json +50 -0
  1712. package/locales/routines/da.json +48 -0
  1713. package/locales/routines/de.json +48 -0
  1714. package/locales/routines/el.json +48 -0
  1715. package/locales/routines/en.json +48 -0
  1716. package/locales/routines/es.json +49 -0
  1717. package/locales/routines/fa.json +48 -0
  1718. package/locales/routines/fi.json +48 -0
  1719. package/locales/routines/fr-CA.json +49 -0
  1720. package/locales/routines/fr.json +49 -0
  1721. package/locales/routines/ha.json +48 -0
  1722. package/locales/routines/he.json +50 -0
  1723. package/locales/routines/hi.json +48 -0
  1724. package/locales/routines/hr.json +49 -0
  1725. package/locales/routines/hu.json +48 -0
  1726. package/locales/routines/id.json +47 -0
  1727. package/locales/routines/it.json +49 -0
  1728. package/locales/routines/ja.json +47 -0
  1729. package/locales/routines/ko.json +47 -0
  1730. package/locales/routines/mr.json +48 -0
  1731. package/locales/routines/ms.json +47 -0
  1732. package/locales/routines/nl.json +48 -0
  1733. package/locales/routines/pl.json +50 -0
  1734. package/locales/routines/pt.json +49 -0
  1735. package/locales/routines/ro.json +49 -0
  1736. package/locales/routines/ru.json +50 -0
  1737. package/locales/routines/sk.json +50 -0
  1738. package/locales/routines/sv.json +48 -0
  1739. package/locales/routines/sw.json +48 -0
  1740. package/locales/routines/ta.json +48 -0
  1741. package/locales/routines/te.json +48 -0
  1742. package/locales/routines/th.json +47 -0
  1743. package/locales/routines/tl.json +48 -0
  1744. package/locales/routines/tr.json +48 -0
  1745. package/locales/routines/uk.json +50 -0
  1746. package/locales/routines/ur.json +48 -0
  1747. package/locales/routines/vi.json +47 -0
  1748. package/locales/routines/yo.json +47 -0
  1749. package/locales/routines/zh-Hans.json +47 -0
  1750. package/locales/routines/zh-Hant.json +47 -0
  1751. package/locales/ru.json +435 -0
  1752. package/locales/scores/am.json +8 -0
  1753. package/locales/scores/ar.json +8 -0
  1754. package/locales/scores/bg.json +8 -0
  1755. package/locales/scores/bn.json +8 -0
  1756. package/locales/scores/br.json +8 -0
  1757. package/locales/scores/co.json +8 -0
  1758. package/locales/scores/cs.json +8 -0
  1759. package/locales/scores/da.json +8 -0
  1760. package/locales/scores/de.json +8 -0
  1761. package/locales/scores/el.json +8 -0
  1762. package/locales/scores/en.json +8 -0
  1763. package/locales/scores/es.json +8 -0
  1764. package/locales/scores/fa.json +8 -0
  1765. package/locales/scores/fi.json +8 -0
  1766. package/locales/scores/fr-CA.json +8 -0
  1767. package/locales/scores/fr.json +8 -0
  1768. package/locales/scores/ha.json +8 -0
  1769. package/locales/scores/he.json +8 -0
  1770. package/locales/scores/hi.json +8 -0
  1771. package/locales/scores/hr.json +8 -0
  1772. package/locales/scores/hu.json +8 -0
  1773. package/locales/scores/id.json +8 -0
  1774. package/locales/scores/it.json +8 -0
  1775. package/locales/scores/ja.json +8 -0
  1776. package/locales/scores/ko.json +8 -0
  1777. package/locales/scores/mr.json +8 -0
  1778. package/locales/scores/ms.json +8 -0
  1779. package/locales/scores/nl.json +8 -0
  1780. package/locales/scores/pl.json +8 -0
  1781. package/locales/scores/pt.json +8 -0
  1782. package/locales/scores/ro.json +8 -0
  1783. package/locales/scores/ru.json +8 -0
  1784. package/locales/scores/sk.json +8 -0
  1785. package/locales/scores/sv.json +8 -0
  1786. package/locales/scores/sw.json +8 -0
  1787. package/locales/scores/ta.json +8 -0
  1788. package/locales/scores/te.json +8 -0
  1789. package/locales/scores/th.json +8 -0
  1790. package/locales/scores/tl.json +8 -0
  1791. package/locales/scores/tr.json +8 -0
  1792. package/locales/scores/uk.json +8 -0
  1793. package/locales/scores/ur.json +8 -0
  1794. package/locales/scores/vi.json +8 -0
  1795. package/locales/scores/yo.json +8 -0
  1796. package/locales/scores/zh-Hans.json +8 -0
  1797. package/locales/scores/zh-Hant.json +8 -0
  1798. package/locales/search/am.json +50 -0
  1799. package/locales/search/ar.json +66 -0
  1800. package/locales/search/bg.json +50 -0
  1801. package/locales/search/bn.json +50 -0
  1802. package/locales/search/br.json +62 -0
  1803. package/locales/search/co.json +54 -0
  1804. package/locales/search/cs.json +58 -0
  1805. package/locales/search/da.json +50 -0
  1806. package/locales/search/de.json +50 -0
  1807. package/locales/search/el.json +50 -0
  1808. package/locales/search/en.json +50 -0
  1809. package/locales/search/es.json +54 -0
  1810. package/locales/search/fa.json +50 -0
  1811. package/locales/search/fi.json +50 -0
  1812. package/locales/search/fr-CA.json +54 -0
  1813. package/locales/search/fr.json +54 -0
  1814. package/locales/search/ha.json +50 -0
  1815. package/locales/search/he.json +56 -0
  1816. package/locales/search/hi.json +50 -0
  1817. package/locales/search/hr.json +54 -0
  1818. package/locales/search/hu.json +50 -0
  1819. package/locales/search/id.json +46 -0
  1820. package/locales/search/it.json +54 -0
  1821. package/locales/search/ja.json +46 -0
  1822. package/locales/search/ko.json +46 -0
  1823. package/locales/search/mr.json +50 -0
  1824. package/locales/search/ms.json +46 -0
  1825. package/locales/search/nl.json +50 -0
  1826. package/locales/search/pl.json +58 -0
  1827. package/locales/search/pt.json +54 -0
  1828. package/locales/search/ro.json +54 -0
  1829. package/locales/search/ru.json +58 -0
  1830. package/locales/search/sk.json +58 -0
  1831. package/locales/search/sv.json +50 -0
  1832. package/locales/search/sw.json +50 -0
  1833. package/locales/search/ta.json +50 -0
  1834. package/locales/search/te.json +50 -0
  1835. package/locales/search/th.json +46 -0
  1836. package/locales/search/tl.json +50 -0
  1837. package/locales/search/tr.json +50 -0
  1838. package/locales/search/uk.json +58 -0
  1839. package/locales/search/ur.json +50 -0
  1840. package/locales/search/vi.json +46 -0
  1841. package/locales/search/yo.json +46 -0
  1842. package/locales/search/zh-Hans.json +46 -0
  1843. package/locales/search/zh-Hant.json +46 -0
  1844. package/locales/share/am.json +76 -0
  1845. package/locales/share/ar.json +84 -0
  1846. package/locales/share/bg.json +76 -0
  1847. package/locales/share/bn.json +76 -0
  1848. package/locales/share/br.json +82 -0
  1849. package/locales/share/co.json +78 -0
  1850. package/locales/share/cs.json +80 -0
  1851. package/locales/share/da.json +76 -0
  1852. package/locales/share/de.json +76 -0
  1853. package/locales/share/el.json +76 -0
  1854. package/locales/share/en.json +76 -0
  1855. package/locales/share/es.json +78 -0
  1856. package/locales/share/fa.json +76 -0
  1857. package/locales/share/fi.json +76 -0
  1858. package/locales/share/fr-CA.json +78 -0
  1859. package/locales/share/fr.json +78 -0
  1860. package/locales/share/ha.json +76 -0
  1861. package/locales/share/he.json +79 -0
  1862. package/locales/share/hi.json +76 -0
  1863. package/locales/share/hr.json +78 -0
  1864. package/locales/share/hu.json +76 -0
  1865. package/locales/share/id.json +74 -0
  1866. package/locales/share/it.json +78 -0
  1867. package/locales/share/ja.json +74 -0
  1868. package/locales/share/ko.json +74 -0
  1869. package/locales/share/mr.json +76 -0
  1870. package/locales/share/ms.json +74 -0
  1871. package/locales/share/nl.json +76 -0
  1872. package/locales/share/pl.json +80 -0
  1873. package/locales/share/pt.json +78 -0
  1874. package/locales/share/ro.json +78 -0
  1875. package/locales/share/ru.json +80 -0
  1876. package/locales/share/sk.json +80 -0
  1877. package/locales/share/sv.json +76 -0
  1878. package/locales/share/sw.json +76 -0
  1879. package/locales/share/ta.json +76 -0
  1880. package/locales/share/te.json +76 -0
  1881. package/locales/share/th.json +74 -0
  1882. package/locales/share/tl.json +76 -0
  1883. package/locales/share/tr.json +76 -0
  1884. package/locales/share/uk.json +80 -0
  1885. package/locales/share/ur.json +76 -0
  1886. package/locales/share/vi.json +74 -0
  1887. package/locales/share/yo.json +74 -0
  1888. package/locales/share/zh-Hans.json +74 -0
  1889. package/locales/share/zh-Hant.json +74 -0
  1890. package/locales/signin/am.json +6 -0
  1891. package/locales/signin/ar.json +6 -0
  1892. package/locales/signin/bg.json +6 -0
  1893. package/locales/signin/bn.json +6 -0
  1894. package/locales/signin/br.json +6 -0
  1895. package/locales/signin/co.json +6 -0
  1896. package/locales/signin/cs.json +6 -0
  1897. package/locales/signin/da.json +6 -0
  1898. package/locales/signin/de.json +6 -0
  1899. package/locales/signin/el.json +6 -0
  1900. package/locales/signin/en.json +6 -0
  1901. package/locales/signin/es.json +6 -0
  1902. package/locales/signin/fa.json +6 -0
  1903. package/locales/signin/fi.json +6 -0
  1904. package/locales/signin/fr-CA.json +6 -0
  1905. package/locales/signin/fr.json +6 -0
  1906. package/locales/signin/ha.json +6 -0
  1907. package/locales/signin/he.json +6 -0
  1908. package/locales/signin/hi.json +6 -0
  1909. package/locales/signin/hr.json +6 -0
  1910. package/locales/signin/hu.json +6 -0
  1911. package/locales/signin/id.json +6 -0
  1912. package/locales/signin/it.json +6 -0
  1913. package/locales/signin/ja.json +6 -0
  1914. package/locales/signin/ko.json +6 -0
  1915. package/locales/signin/mr.json +6 -0
  1916. package/locales/signin/ms.json +6 -0
  1917. package/locales/signin/nl.json +6 -0
  1918. package/locales/signin/pl.json +6 -0
  1919. package/locales/signin/pt.json +6 -0
  1920. package/locales/signin/ro.json +6 -0
  1921. package/locales/signin/ru.json +6 -0
  1922. package/locales/signin/sk.json +6 -0
  1923. package/locales/signin/sv.json +6 -0
  1924. package/locales/signin/sw.json +6 -0
  1925. package/locales/signin/ta.json +6 -0
  1926. package/locales/signin/te.json +6 -0
  1927. package/locales/signin/th.json +6 -0
  1928. package/locales/signin/tl.json +6 -0
  1929. package/locales/signin/tr.json +6 -0
  1930. package/locales/signin/uk.json +6 -0
  1931. package/locales/signin/ur.json +6 -0
  1932. package/locales/signin/vi.json +6 -0
  1933. package/locales/signin/yo.json +6 -0
  1934. package/locales/signin/zh-Hans.json +6 -0
  1935. package/locales/signin/zh-Hant.json +6 -0
  1936. package/locales/sk.json +435 -0
  1937. package/locales/skills/am.json +73 -0
  1938. package/locales/skills/ar.json +81 -0
  1939. package/locales/skills/bg.json +73 -0
  1940. package/locales/skills/bn.json +73 -0
  1941. package/locales/skills/br.json +79 -0
  1942. package/locales/skills/co.json +75 -0
  1943. package/locales/skills/cs.json +77 -0
  1944. package/locales/skills/da.json +73 -0
  1945. package/locales/skills/de.json +73 -0
  1946. package/locales/skills/el.json +73 -0
  1947. package/locales/skills/en.json +73 -0
  1948. package/locales/skills/es.json +75 -0
  1949. package/locales/skills/fa.json +73 -0
  1950. package/locales/skills/fi.json +73 -0
  1951. package/locales/skills/fr-CA.json +75 -0
  1952. package/locales/skills/fr.json +75 -0
  1953. package/locales/skills/ha.json +73 -0
  1954. package/locales/skills/he.json +77 -0
  1955. package/locales/skills/hi.json +73 -0
  1956. package/locales/skills/hr.json +75 -0
  1957. package/locales/skills/hu.json +73 -0
  1958. package/locales/skills/id.json +71 -0
  1959. package/locales/skills/it.json +75 -0
  1960. package/locales/skills/ja.json +71 -0
  1961. package/locales/skills/ko.json +71 -0
  1962. package/locales/skills/mr.json +73 -0
  1963. package/locales/skills/ms.json +71 -0
  1964. package/locales/skills/nl.json +73 -0
  1965. package/locales/skills/pl.json +77 -0
  1966. package/locales/skills/pt.json +75 -0
  1967. package/locales/skills/ro.json +75 -0
  1968. package/locales/skills/ru.json +77 -0
  1969. package/locales/skills/sk.json +77 -0
  1970. package/locales/skills/sv.json +73 -0
  1971. package/locales/skills/sw.json +73 -0
  1972. package/locales/skills/ta.json +73 -0
  1973. package/locales/skills/te.json +73 -0
  1974. package/locales/skills/th.json +71 -0
  1975. package/locales/skills/tl.json +73 -0
  1976. package/locales/skills/tr.json +73 -0
  1977. package/locales/skills/uk.json +77 -0
  1978. package/locales/skills/ur.json +73 -0
  1979. package/locales/skills/vi.json +71 -0
  1980. package/locales/skills/yo.json +71 -0
  1981. package/locales/skills/zh-Hans.json +71 -0
  1982. package/locales/skills/zh-Hant.json +71 -0
  1983. package/locales/slides/am.json +140 -0
  1984. package/locales/slides/ar.json +144 -0
  1985. package/locales/slides/bg.json +140 -0
  1986. package/locales/slides/bn.json +140 -0
  1987. package/locales/slides/br.json +143 -0
  1988. package/locales/slides/co.json +141 -0
  1989. package/locales/slides/cs.json +142 -0
  1990. package/locales/slides/da.json +140 -0
  1991. package/locales/slides/de.json +140 -0
  1992. package/locales/slides/el.json +140 -0
  1993. package/locales/slides/en.json +140 -0
  1994. package/locales/slides/es.json +141 -0
  1995. package/locales/slides/fa.json +140 -0
  1996. package/locales/slides/fi.json +140 -0
  1997. package/locales/slides/fr-CA.json +141 -0
  1998. package/locales/slides/fr.json +141 -0
  1999. package/locales/slides/ha.json +140 -0
  2000. package/locales/slides/he.json +141 -0
  2001. package/locales/slides/hi.json +140 -0
  2002. package/locales/slides/hr.json +141 -0
  2003. package/locales/slides/hu.json +140 -0
  2004. package/locales/slides/id.json +139 -0
  2005. package/locales/slides/it.json +141 -0
  2006. package/locales/slides/ja.json +139 -0
  2007. package/locales/slides/ko.json +139 -0
  2008. package/locales/slides/mr.json +140 -0
  2009. package/locales/slides/ms.json +139 -0
  2010. package/locales/slides/nl.json +140 -0
  2011. package/locales/slides/pl.json +142 -0
  2012. package/locales/slides/pt.json +141 -0
  2013. package/locales/slides/ro.json +141 -0
  2014. package/locales/slides/ru.json +142 -0
  2015. package/locales/slides/sk.json +142 -0
  2016. package/locales/slides/sv.json +140 -0
  2017. package/locales/slides/sw.json +140 -0
  2018. package/locales/slides/ta.json +140 -0
  2019. package/locales/slides/te.json +140 -0
  2020. package/locales/slides/th.json +139 -0
  2021. package/locales/slides/tl.json +140 -0
  2022. package/locales/slides/tr.json +140 -0
  2023. package/locales/slides/uk.json +142 -0
  2024. package/locales/slides/ur.json +140 -0
  2025. package/locales/slides/vi.json +139 -0
  2026. package/locales/slides/yo.json +139 -0
  2027. package/locales/slides/zh-Hans.json +139 -0
  2028. package/locales/slides/zh-Hant.json +139 -0
  2029. package/locales/sv.json +419 -0
  2030. package/locales/sw.json +419 -0
  2031. package/locales/sync/am.json +14 -0
  2032. package/locales/sync/ar.json +14 -0
  2033. package/locales/sync/bg.json +14 -0
  2034. package/locales/sync/bn.json +14 -0
  2035. package/locales/sync/br.json +14 -0
  2036. package/locales/sync/co.json +14 -0
  2037. package/locales/sync/cs.json +14 -0
  2038. package/locales/sync/da.json +14 -0
  2039. package/locales/sync/de.json +14 -0
  2040. package/locales/sync/el.json +14 -0
  2041. package/locales/sync/en.json +14 -0
  2042. package/locales/sync/es.json +14 -0
  2043. package/locales/sync/fa.json +14 -0
  2044. package/locales/sync/fi.json +14 -0
  2045. package/locales/sync/fr-CA.json +14 -0
  2046. package/locales/sync/fr.json +14 -0
  2047. package/locales/sync/ha.json +14 -0
  2048. package/locales/sync/he.json +14 -0
  2049. package/locales/sync/hi.json +14 -0
  2050. package/locales/sync/hr.json +14 -0
  2051. package/locales/sync/hu.json +14 -0
  2052. package/locales/sync/id.json +14 -0
  2053. package/locales/sync/it.json +14 -0
  2054. package/locales/sync/ja.json +14 -0
  2055. package/locales/sync/ko.json +14 -0
  2056. package/locales/sync/mr.json +14 -0
  2057. package/locales/sync/ms.json +14 -0
  2058. package/locales/sync/nl.json +14 -0
  2059. package/locales/sync/pl.json +14 -0
  2060. package/locales/sync/pt.json +14 -0
  2061. package/locales/sync/ro.json +14 -0
  2062. package/locales/sync/ru.json +14 -0
  2063. package/locales/sync/sk.json +14 -0
  2064. package/locales/sync/sv.json +14 -0
  2065. package/locales/sync/sw.json +14 -0
  2066. package/locales/sync/ta.json +14 -0
  2067. package/locales/sync/te.json +14 -0
  2068. package/locales/sync/th.json +14 -0
  2069. package/locales/sync/tl.json +14 -0
  2070. package/locales/sync/tr.json +14 -0
  2071. package/locales/sync/uk.json +14 -0
  2072. package/locales/sync/ur.json +14 -0
  2073. package/locales/sync/vi.json +14 -0
  2074. package/locales/sync/yo.json +14 -0
  2075. package/locales/sync/zh-Hans.json +14 -0
  2076. package/locales/sync/zh-Hant.json +14 -0
  2077. package/locales/ta.json +419 -0
  2078. package/locales/tables/am.json +78 -0
  2079. package/locales/tables/ar.json +82 -0
  2080. package/locales/tables/bg.json +78 -0
  2081. package/locales/tables/bn.json +78 -0
  2082. package/locales/tables/br.json +81 -0
  2083. package/locales/tables/co.json +79 -0
  2084. package/locales/tables/cs.json +80 -0
  2085. package/locales/tables/da.json +78 -0
  2086. package/locales/tables/de.json +78 -0
  2087. package/locales/tables/el.json +78 -0
  2088. package/locales/tables/en.json +78 -0
  2089. package/locales/tables/es.json +79 -0
  2090. package/locales/tables/fa.json +78 -0
  2091. package/locales/tables/fi.json +78 -0
  2092. package/locales/tables/fr-CA.json +79 -0
  2093. package/locales/tables/fr.json +79 -0
  2094. package/locales/tables/ha.json +78 -0
  2095. package/locales/tables/he.json +79 -0
  2096. package/locales/tables/hi.json +78 -0
  2097. package/locales/tables/hr.json +79 -0
  2098. package/locales/tables/hu.json +78 -0
  2099. package/locales/tables/id.json +77 -0
  2100. package/locales/tables/it.json +79 -0
  2101. package/locales/tables/ja.json +77 -0
  2102. package/locales/tables/ko.json +77 -0
  2103. package/locales/tables/mr.json +78 -0
  2104. package/locales/tables/ms.json +77 -0
  2105. package/locales/tables/nl.json +78 -0
  2106. package/locales/tables/pl.json +80 -0
  2107. package/locales/tables/pt.json +79 -0
  2108. package/locales/tables/ro.json +79 -0
  2109. package/locales/tables/ru.json +80 -0
  2110. package/locales/tables/sk.json +80 -0
  2111. package/locales/tables/sv.json +78 -0
  2112. package/locales/tables/sw.json +78 -0
  2113. package/locales/tables/ta.json +78 -0
  2114. package/locales/tables/te.json +78 -0
  2115. package/locales/tables/th.json +77 -0
  2116. package/locales/tables/tl.json +78 -0
  2117. package/locales/tables/tr.json +78 -0
  2118. package/locales/tables/uk.json +80 -0
  2119. package/locales/tables/ur.json +78 -0
  2120. package/locales/tables/vi.json +77 -0
  2121. package/locales/tables/yo.json +77 -0
  2122. package/locales/tables/zh-Hans.json +77 -0
  2123. package/locales/tables/zh-Hant.json +77 -0
  2124. package/locales/te.json +419 -0
  2125. package/locales/th.json +411 -0
  2126. package/locales/tl.json +419 -0
  2127. package/locales/tour/am.json +3 -0
  2128. package/locales/tour/ar.json +3 -0
  2129. package/locales/tour/bg.json +3 -0
  2130. package/locales/tour/bn.json +3 -0
  2131. package/locales/tour/br.json +3 -0
  2132. package/locales/tour/co.json +3 -0
  2133. package/locales/tour/cs.json +3 -0
  2134. package/locales/tour/da.json +3 -0
  2135. package/locales/tour/de.json +3 -0
  2136. package/locales/tour/el.json +3 -0
  2137. package/locales/tour/en.json +3 -0
  2138. package/locales/tour/es.json +3 -0
  2139. package/locales/tour/fa.json +3 -0
  2140. package/locales/tour/fi.json +3 -0
  2141. package/locales/tour/fr-CA.json +3 -0
  2142. package/locales/tour/fr.json +3 -0
  2143. package/locales/tour/ha.json +3 -0
  2144. package/locales/tour/he.json +3 -0
  2145. package/locales/tour/hi.json +3 -0
  2146. package/locales/tour/hr.json +3 -0
  2147. package/locales/tour/hu.json +3 -0
  2148. package/locales/tour/id.json +3 -0
  2149. package/locales/tour/it.json +3 -0
  2150. package/locales/tour/ja.json +3 -0
  2151. package/locales/tour/ko.json +3 -0
  2152. package/locales/tour/mr.json +3 -0
  2153. package/locales/tour/ms.json +3 -0
  2154. package/locales/tour/nl.json +3 -0
  2155. package/locales/tour/pl.json +3 -0
  2156. package/locales/tour/pt.json +3 -0
  2157. package/locales/tour/ro.json +3 -0
  2158. package/locales/tour/ru.json +3 -0
  2159. package/locales/tour/sk.json +3 -0
  2160. package/locales/tour/sv.json +3 -0
  2161. package/locales/tour/sw.json +3 -0
  2162. package/locales/tour/ta.json +3 -0
  2163. package/locales/tour/te.json +3 -0
  2164. package/locales/tour/th.json +3 -0
  2165. package/locales/tour/tl.json +3 -0
  2166. package/locales/tour/tr.json +3 -0
  2167. package/locales/tour/uk.json +3 -0
  2168. package/locales/tour/ur.json +3 -0
  2169. package/locales/tour/vi.json +3 -0
  2170. package/locales/tour/yo.json +3 -0
  2171. package/locales/tour/zh-Hans.json +3 -0
  2172. package/locales/tour/zh-Hant.json +3 -0
  2173. package/locales/tr.json +419 -0
  2174. package/locales/uk.json +435 -0
  2175. package/locales/ur.json +419 -0
  2176. package/locales/vi.json +411 -0
  2177. package/locales/yo.json +411 -0
  2178. package/locales/you/am.json +42 -0
  2179. package/locales/you/ar.json +54 -0
  2180. package/locales/you/bg.json +42 -0
  2181. package/locales/you/bn.json +42 -0
  2182. package/locales/you/br.json +51 -0
  2183. package/locales/you/co.json +45 -0
  2184. package/locales/you/cs.json +48 -0
  2185. package/locales/you/da.json +42 -0
  2186. package/locales/you/de.json +42 -0
  2187. package/locales/you/el.json +42 -0
  2188. package/locales/you/en.json +42 -0
  2189. package/locales/you/es.json +45 -0
  2190. package/locales/you/fa.json +42 -0
  2191. package/locales/you/fi.json +42 -0
  2192. package/locales/you/fr-CA.json +45 -0
  2193. package/locales/you/fr.json +45 -0
  2194. package/locales/you/ha.json +42 -0
  2195. package/locales/you/he.json +48 -0
  2196. package/locales/you/hi.json +42 -0
  2197. package/locales/you/hr.json +45 -0
  2198. package/locales/you/hu.json +42 -0
  2199. package/locales/you/id.json +39 -0
  2200. package/locales/you/it.json +45 -0
  2201. package/locales/you/ja.json +39 -0
  2202. package/locales/you/ko.json +39 -0
  2203. package/locales/you/mr.json +42 -0
  2204. package/locales/you/ms.json +39 -0
  2205. package/locales/you/nl.json +42 -0
  2206. package/locales/you/pl.json +48 -0
  2207. package/locales/you/pt.json +45 -0
  2208. package/locales/you/ro.json +45 -0
  2209. package/locales/you/ru.json +48 -0
  2210. package/locales/you/sk.json +48 -0
  2211. package/locales/you/sv.json +42 -0
  2212. package/locales/you/sw.json +42 -0
  2213. package/locales/you/ta.json +42 -0
  2214. package/locales/you/te.json +42 -0
  2215. package/locales/you/th.json +39 -0
  2216. package/locales/you/tl.json +42 -0
  2217. package/locales/you/tr.json +42 -0
  2218. package/locales/you/uk.json +48 -0
  2219. package/locales/you/ur.json +42 -0
  2220. package/locales/you/vi.json +39 -0
  2221. package/locales/you/yo.json +39 -0
  2222. package/locales/you/zh-Hans.json +39 -0
  2223. package/locales/you/zh-Hant.json +39 -0
  2224. package/locales/zh-Hans.json +411 -0
  2225. package/locales/zh-Hant.json +411 -0
  2226. package/package.json +9 -4
  2227. package/preview.html +75 -0
  2228. package/ui/acts.js +12 -0
  2229. package/ui/caps.js +153 -0
  2230. package/ui/colour.js +26 -0
  2231. package/ui/csp.js +82 -0
  2232. package/ui/export.js +221 -0
  2233. package/ui/icons.js +32 -0
  2234. package/ui/kit.js +54 -0
  2235. package/ui/looks/blueprint.css +73 -0
  2236. package/ui/looks/classic.css +105 -0
  2237. package/ui/looks/fjord.css +56 -0
  2238. package/ui/looks/human.css +232 -0
  2239. package/ui/looks/mail.css +61 -0
  2240. package/ui/looks/minimal.css +63 -0
  2241. package/ui/looks/mondrian.css +90 -0
  2242. package/ui/looks/neon.css +100 -0
  2243. package/ui/looks/notebook.css +82 -0
  2244. package/ui/looks/paper.css +51 -0
  2245. package/ui/looks/swiss.css +64 -0
  2246. package/ui/looks/terminal.css +84 -0
  2247. package/ui/looks/tilde.css +61 -0
  2248. package/ui/looks/velvet.css +61 -0
  2249. package/ui/looks.js +52 -0
  2250. package/ui/markdown.js +189 -0
  2251. package/ui/menu-icons.js +67 -0
  2252. package/ui/model.js +74 -0
  2253. package/ui/reader-state.js +57 -0
  2254. package/ui/reader.js +81 -0
  2255. package/ui/review.js +20 -0
  2256. package/ui/save.js +53 -0
  2257. package/ui/seal.js +159 -0
  2258. package/ui/sheet.js +16 -0
  2259. package/ui/style.css +818 -0
  2260. package/ui/touches.js +51 -0
  2261. package/ui/trusted.js +13 -0
  2262. package/ui/view.css +34 -0
  2263. package/ui/view.js +245 -0
  2264. package/ui/weights.js +47 -0
  2265. package/vendor/LICENSES/abcjs.txt +21 -0
  2266. package/vendor/LICENSES/base64-js.txt +21 -0
  2267. package/vendor/LICENSES/buffer.txt +21 -0
  2268. package/vendor/LICENSES/codename-deck.txt +21 -0
  2269. package/vendor/LICENSES/diff.txt +29 -0
  2270. package/vendor/LICENSES/echarts.txt +229 -0
  2271. package/vendor/LICENSES/fflate.txt +21 -0
  2272. package/vendor/LICENSES/huggingface-transformers.txt +202 -0
  2273. package/vendor/LICENSES/ieee754.txt +11 -0
  2274. package/vendor/LICENSES/jean-is-sounds.txt +92 -0
  2275. package/vendor/LICENSES/jitl-quickjs-ffi-types.txt +21 -0
  2276. package/vendor/LICENSES/jitl-quickjs-wasmfile-release-sync.txt +47 -0
  2277. package/vendor/LICENSES/jszip.txt +2 -0
  2278. package/vendor/LICENSES/just-bash.txt +201 -0
  2279. package/vendor/LICENSES/lean-qr.txt +21 -0
  2280. package/vendor/LICENSES/lit-html.txt +28 -0
  2281. package/vendor/LICENSES/maplibre-gl.txt +2 -0
  2282. package/vendor/LICENSES/marked.txt +44 -0
  2283. package/vendor/LICENSES/mediabunny.txt +373 -0
  2284. package/vendor/LICENSES/onnxruntime-web.txt +2 -0
  2285. package/vendor/LICENSES/orderedmap.txt +19 -0
  2286. package/vendor/LICENSES/pdfjs-dist.txt +455 -0
  2287. package/vendor/LICENSES/pele.txt +40 -0
  2288. package/vendor/LICENSES/pptxgenjs.txt +21 -0
  2289. package/vendor/LICENSES/preact-signals-core.txt +21 -0
  2290. package/vendor/LICENSES/prosemirror-commands.txt +19 -0
  2291. package/vendor/LICENSES/prosemirror-dropcursor.txt +19 -0
  2292. package/vendor/LICENSES/prosemirror-gapcursor.txt +19 -0
  2293. package/vendor/LICENSES/prosemirror-history.txt +19 -0
  2294. package/vendor/LICENSES/prosemirror-inputrules.txt +19 -0
  2295. package/vendor/LICENSES/prosemirror-keymap.txt +19 -0
  2296. package/vendor/LICENSES/prosemirror-markdown.txt +19 -0
  2297. package/vendor/LICENSES/prosemirror-model.txt +19 -0
  2298. package/vendor/LICENSES/prosemirror-schema-list.txt +19 -0
  2299. package/vendor/LICENSES/prosemirror-state.txt +19 -0
  2300. package/vendor/LICENSES/prosemirror-tables.txt +19 -0
  2301. package/vendor/LICENSES/prosemirror-transform.txt +19 -0
  2302. package/vendor/LICENSES/prosemirror-view.txt +19 -0
  2303. package/vendor/LICENSES/pyodide.txt +2 -0
  2304. package/vendor/LICENSES/quickjs-emscripten-core.txt +21 -0
  2305. package/vendor/LICENSES/rope-sequence.txt +19 -0
  2306. package/vendor/LICENSES/silurus-ooxml.txt +21 -0
  2307. package/vendor/LICENSES/spessasynth_core.txt +202 -0
  2308. package/vendor/LICENSES/sprintf-js.txt +24 -0
  2309. package/vendor/LICENSES/stb-vorbis.txt +202 -0
  2310. package/vendor/LICENSES/temml.txt +21 -0
  2311. package/vendor/LICENSES/turndown.txt +21 -0
  2312. package/vendor/LICENSES/w3c-keyname.txt +19 -0
  2313. package/vendor/LICENSES/zrender.txt +29 -0
  2314. package/vendor/abcjs/abcjs.mjs +6 -0
  2315. package/vendor/deck/deck.css +292 -0
  2316. package/vendor/deck/deck.mjs +55 -0
  2317. package/vendor/deck/pptx.mjs +1 -0
  2318. package/vendor/deck/template.mjs +3 -0
  2319. package/vendor/echarts/echarts.mjs +45 -0
  2320. package/vendor/lit-html/async-directive.js +6 -0
  2321. package/vendor/lit-html/directive-helpers.js +6 -0
  2322. package/vendor/lit-html/directive.js +6 -0
  2323. package/vendor/lit-html/directives/live.js +6 -0
  2324. package/vendor/lit-html/directives/ref.js +6 -0
  2325. package/vendor/lit-html/lit-html.js +6 -0
  2326. package/vendor/maplibre/maplibre-gl-worker.js +9 -0
  2327. package/vendor/maplibre/maplibre-gl.css +1 -0
  2328. package/vendor/maplibre/maplibre-gl.mjs +818 -0
  2329. package/vendor/marked.esm.js +79 -0
  2330. package/vendor/ooxml/bounded-raw-part-cache-Cg1BsSZQ.js +119 -0
  2331. package/vendor/ooxml/canvas-viewer-mechanics-DbLz0rYW.js +1384 -0
  2332. package/vendor/ooxml/chunk-DmhlhrBa.js +11 -0
  2333. package/vendor/ooxml/cjk-fallback-bLI3z70h.js +46 -0
  2334. package/vendor/ooxml/comment-occurrence-C8Y2uoVr.js +6 -0
  2335. package/vendor/ooxml/comment-ui-runtime-BsK8pmUT.js +2 -0
  2336. package/vendor/ooxml/comment-ui-runtime-CWGqn5Vr.js +112 -0
  2337. package/vendor/ooxml/comment-ui-runtime-DcJOYlw-.js +171 -0
  2338. package/vendor/ooxml/comments-Diid5ujN.js +246 -0
  2339. package/vendor/ooxml/delimited-text-worker-host-BVY-Ecni.js +25 -0
  2340. package/vendor/ooxml/document-pull-client-B9PTM-pL.js +27280 -0
  2341. package/vendor/ooxml/docx-BF9WXrYH.js +3101 -0
  2342. package/vendor/ooxml/docx.mjs +7 -0
  2343. package/vendor/ooxml/docx_parser_bg.wasm +0 -0
  2344. package/vendor/ooxml/dom-interaction-boundary-Cnm8DSBN.js +223 -0
  2345. package/vendor/ooxml/graph.json +1 -0
  2346. package/vendor/ooxml/highlight-rect-C5hkRqUr.js +13 -0
  2347. package/vendor/ooxml/hyperlink-Cxzhet30.js +36446 -0
  2348. package/vendor/ooxml/line-distribute-D1WNHKz_.js +1023 -0
  2349. package/vendor/ooxml/line-metrics-B60C86uh.js +60 -0
  2350. package/vendor/ooxml/mathjax-DoyWZbSp.js +21 -0
  2351. package/vendor/ooxml/pixel-budget-9P63Bsk5.js +37 -0
  2352. package/vendor/ooxml/plot-area-frame-DLTYKHNP.js +4354 -0
  2353. package/vendor/ooxml/pptx-DkyYBYoL.js +3063 -0
  2354. package/vendor/ooxml/pptx.mjs +7 -0
  2355. package/vendor/ooxml/pptx_parser_bg.wasm +0 -0
  2356. package/vendor/ooxml/raster-target-ojDdQizC.js +91 -0
  2357. package/vendor/ooxml/read-only-comment-decoration-Dz7eTQ4d.js +96 -0
  2358. package/vendor/ooxml/read-only-comment-margin-DkgzASAl.js +189 -0
  2359. package/vendor/ooxml/renderer-B4GZb5We.js +6492 -0
  2360. package/vendor/ooxml/renderer-module-contract-D91rkYHH.js +32 -0
  2361. package/vendor/ooxml/resource-measurement-SHQCbkh2.js +150 -0
  2362. package/vendor/ooxml/slide-pull-client-DiPnm240.js +6253 -0
  2363. package/vendor/ooxml/source-key-DIJG8BA0.js +42 -0
  2364. package/vendor/ooxml/three-d-DJBl8g8M.js +1162 -0
  2365. package/vendor/ooxml/transfer-p6iCC2R7.js +6 -0
  2366. package/vendor/ooxml/units-BzZ0gAxs.js +4 -0
  2367. package/vendor/ooxml/visible-index-BgiHEc1z.js +17 -0
  2368. package/vendor/ooxml/worksheet-pull-client-BM8ywvbu.js +458 -0
  2369. package/vendor/ooxml/xlsx-C9NVjgaV.js +8482 -0
  2370. package/vendor/ooxml/xlsx.mjs +7 -0
  2371. package/vendor/ooxml/xlsx_parser_bg.wasm +0 -0
  2372. package/vendor/pdfjs/cmaps/78-EUC-H.bcmap +0 -0
  2373. package/vendor/pdfjs/cmaps/78-EUC-V.bcmap +0 -0
  2374. package/vendor/pdfjs/cmaps/78-H.bcmap +0 -0
  2375. package/vendor/pdfjs/cmaps/78-RKSJ-H.bcmap +0 -0
  2376. package/vendor/pdfjs/cmaps/78-RKSJ-V.bcmap +0 -0
  2377. package/vendor/pdfjs/cmaps/78-V.bcmap +0 -0
  2378. package/vendor/pdfjs/cmaps/78ms-RKSJ-H.bcmap +0 -0
  2379. package/vendor/pdfjs/cmaps/78ms-RKSJ-V.bcmap +0 -0
  2380. package/vendor/pdfjs/cmaps/83pv-RKSJ-H.bcmap +0 -0
  2381. package/vendor/pdfjs/cmaps/90ms-RKSJ-H.bcmap +0 -0
  2382. package/vendor/pdfjs/cmaps/90ms-RKSJ-V.bcmap +0 -0
  2383. package/vendor/pdfjs/cmaps/90msp-RKSJ-H.bcmap +0 -0
  2384. package/vendor/pdfjs/cmaps/90msp-RKSJ-V.bcmap +0 -0
  2385. package/vendor/pdfjs/cmaps/90pv-RKSJ-H.bcmap +0 -0
  2386. package/vendor/pdfjs/cmaps/90pv-RKSJ-V.bcmap +0 -0
  2387. package/vendor/pdfjs/cmaps/Add-H.bcmap +0 -0
  2388. package/vendor/pdfjs/cmaps/Add-RKSJ-H.bcmap +0 -0
  2389. package/vendor/pdfjs/cmaps/Add-RKSJ-V.bcmap +0 -0
  2390. package/vendor/pdfjs/cmaps/Add-V.bcmap +0 -0
  2391. package/vendor/pdfjs/cmaps/Adobe-CNS1-0.bcmap +0 -0
  2392. package/vendor/pdfjs/cmaps/Adobe-CNS1-1.bcmap +0 -0
  2393. package/vendor/pdfjs/cmaps/Adobe-CNS1-2.bcmap +0 -0
  2394. package/vendor/pdfjs/cmaps/Adobe-CNS1-3.bcmap +0 -0
  2395. package/vendor/pdfjs/cmaps/Adobe-CNS1-4.bcmap +0 -0
  2396. package/vendor/pdfjs/cmaps/Adobe-CNS1-5.bcmap +0 -0
  2397. package/vendor/pdfjs/cmaps/Adobe-CNS1-6.bcmap +0 -0
  2398. package/vendor/pdfjs/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
  2399. package/vendor/pdfjs/cmaps/Adobe-GB1-0.bcmap +0 -0
  2400. package/vendor/pdfjs/cmaps/Adobe-GB1-1.bcmap +0 -0
  2401. package/vendor/pdfjs/cmaps/Adobe-GB1-2.bcmap +0 -0
  2402. package/vendor/pdfjs/cmaps/Adobe-GB1-3.bcmap +0 -0
  2403. package/vendor/pdfjs/cmaps/Adobe-GB1-4.bcmap +0 -0
  2404. package/vendor/pdfjs/cmaps/Adobe-GB1-5.bcmap +0 -0
  2405. package/vendor/pdfjs/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
  2406. package/vendor/pdfjs/cmaps/Adobe-Japan1-0.bcmap +0 -0
  2407. package/vendor/pdfjs/cmaps/Adobe-Japan1-1.bcmap +0 -0
  2408. package/vendor/pdfjs/cmaps/Adobe-Japan1-2.bcmap +0 -0
  2409. package/vendor/pdfjs/cmaps/Adobe-Japan1-3.bcmap +0 -0
  2410. package/vendor/pdfjs/cmaps/Adobe-Japan1-4.bcmap +0 -0
  2411. package/vendor/pdfjs/cmaps/Adobe-Japan1-5.bcmap +0 -0
  2412. package/vendor/pdfjs/cmaps/Adobe-Japan1-6.bcmap +0 -0
  2413. package/vendor/pdfjs/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
  2414. package/vendor/pdfjs/cmaps/Adobe-Korea1-0.bcmap +0 -0
  2415. package/vendor/pdfjs/cmaps/Adobe-Korea1-1.bcmap +0 -0
  2416. package/vendor/pdfjs/cmaps/Adobe-Korea1-2.bcmap +0 -0
  2417. package/vendor/pdfjs/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
  2418. package/vendor/pdfjs/cmaps/B5-H.bcmap +0 -0
  2419. package/vendor/pdfjs/cmaps/B5-V.bcmap +0 -0
  2420. package/vendor/pdfjs/cmaps/B5pc-H.bcmap +0 -0
  2421. package/vendor/pdfjs/cmaps/B5pc-V.bcmap +0 -0
  2422. package/vendor/pdfjs/cmaps/CNS-EUC-H.bcmap +0 -0
  2423. package/vendor/pdfjs/cmaps/CNS-EUC-V.bcmap +0 -0
  2424. package/vendor/pdfjs/cmaps/CNS1-H.bcmap +0 -0
  2425. package/vendor/pdfjs/cmaps/CNS1-V.bcmap +0 -0
  2426. package/vendor/pdfjs/cmaps/CNS2-H.bcmap +0 -0
  2427. package/vendor/pdfjs/cmaps/CNS2-V.bcmap +3 -0
  2428. package/vendor/pdfjs/cmaps/ETHK-B5-H.bcmap +0 -0
  2429. package/vendor/pdfjs/cmaps/ETHK-B5-V.bcmap +0 -0
  2430. package/vendor/pdfjs/cmaps/ETen-B5-H.bcmap +0 -0
  2431. package/vendor/pdfjs/cmaps/ETen-B5-V.bcmap +0 -0
  2432. package/vendor/pdfjs/cmaps/ETenms-B5-H.bcmap +3 -0
  2433. package/vendor/pdfjs/cmaps/ETenms-B5-V.bcmap +0 -0
  2434. package/vendor/pdfjs/cmaps/EUC-H.bcmap +0 -0
  2435. package/vendor/pdfjs/cmaps/EUC-V.bcmap +0 -0
  2436. package/vendor/pdfjs/cmaps/Ext-H.bcmap +0 -0
  2437. package/vendor/pdfjs/cmaps/Ext-RKSJ-H.bcmap +0 -0
  2438. package/vendor/pdfjs/cmaps/Ext-RKSJ-V.bcmap +0 -0
  2439. package/vendor/pdfjs/cmaps/Ext-V.bcmap +0 -0
  2440. package/vendor/pdfjs/cmaps/GB-EUC-H.bcmap +0 -0
  2441. package/vendor/pdfjs/cmaps/GB-EUC-V.bcmap +0 -0
  2442. package/vendor/pdfjs/cmaps/GB-H.bcmap +4 -0
  2443. package/vendor/pdfjs/cmaps/GB-V.bcmap +0 -0
  2444. package/vendor/pdfjs/cmaps/GBK-EUC-H.bcmap +0 -0
  2445. package/vendor/pdfjs/cmaps/GBK-EUC-V.bcmap +0 -0
  2446. package/vendor/pdfjs/cmaps/GBK2K-H.bcmap +0 -0
  2447. package/vendor/pdfjs/cmaps/GBK2K-V.bcmap +0 -0
  2448. package/vendor/pdfjs/cmaps/GBKp-EUC-H.bcmap +0 -0
  2449. package/vendor/pdfjs/cmaps/GBKp-EUC-V.bcmap +0 -0
  2450. package/vendor/pdfjs/cmaps/GBT-EUC-H.bcmap +0 -0
  2451. package/vendor/pdfjs/cmaps/GBT-EUC-V.bcmap +0 -0
  2452. package/vendor/pdfjs/cmaps/GBT-H.bcmap +0 -0
  2453. package/vendor/pdfjs/cmaps/GBT-V.bcmap +0 -0
  2454. package/vendor/pdfjs/cmaps/GBTpc-EUC-H.bcmap +0 -0
  2455. package/vendor/pdfjs/cmaps/GBTpc-EUC-V.bcmap +0 -0
  2456. package/vendor/pdfjs/cmaps/GBpc-EUC-H.bcmap +0 -0
  2457. package/vendor/pdfjs/cmaps/GBpc-EUC-V.bcmap +0 -0
  2458. package/vendor/pdfjs/cmaps/H.bcmap +0 -0
  2459. package/vendor/pdfjs/cmaps/HKdla-B5-H.bcmap +0 -0
  2460. package/vendor/pdfjs/cmaps/HKdla-B5-V.bcmap +0 -0
  2461. package/vendor/pdfjs/cmaps/HKdlb-B5-H.bcmap +0 -0
  2462. package/vendor/pdfjs/cmaps/HKdlb-B5-V.bcmap +0 -0
  2463. package/vendor/pdfjs/cmaps/HKgccs-B5-H.bcmap +0 -0
  2464. package/vendor/pdfjs/cmaps/HKgccs-B5-V.bcmap +0 -0
  2465. package/vendor/pdfjs/cmaps/HKm314-B5-H.bcmap +0 -0
  2466. package/vendor/pdfjs/cmaps/HKm314-B5-V.bcmap +0 -0
  2467. package/vendor/pdfjs/cmaps/HKm471-B5-H.bcmap +0 -0
  2468. package/vendor/pdfjs/cmaps/HKm471-B5-V.bcmap +0 -0
  2469. package/vendor/pdfjs/cmaps/HKscs-B5-H.bcmap +0 -0
  2470. package/vendor/pdfjs/cmaps/HKscs-B5-V.bcmap +0 -0
  2471. package/vendor/pdfjs/cmaps/Hankaku.bcmap +0 -0
  2472. package/vendor/pdfjs/cmaps/Hiragana.bcmap +0 -0
  2473. package/vendor/pdfjs/cmaps/KSC-EUC-H.bcmap +0 -0
  2474. package/vendor/pdfjs/cmaps/KSC-EUC-V.bcmap +0 -0
  2475. package/vendor/pdfjs/cmaps/KSC-H.bcmap +0 -0
  2476. package/vendor/pdfjs/cmaps/KSC-Johab-H.bcmap +0 -0
  2477. package/vendor/pdfjs/cmaps/KSC-Johab-V.bcmap +0 -0
  2478. package/vendor/pdfjs/cmaps/KSC-V.bcmap +0 -0
  2479. package/vendor/pdfjs/cmaps/KSCms-UHC-H.bcmap +0 -0
  2480. package/vendor/pdfjs/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
  2481. package/vendor/pdfjs/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
  2482. package/vendor/pdfjs/cmaps/KSCms-UHC-V.bcmap +0 -0
  2483. package/vendor/pdfjs/cmaps/KSCpc-EUC-H.bcmap +0 -0
  2484. package/vendor/pdfjs/cmaps/KSCpc-EUC-V.bcmap +0 -0
  2485. package/vendor/pdfjs/cmaps/Katakana.bcmap +0 -0
  2486. package/vendor/pdfjs/cmaps/LICENSE +36 -0
  2487. package/vendor/pdfjs/cmaps/NWP-H.bcmap +0 -0
  2488. package/vendor/pdfjs/cmaps/NWP-V.bcmap +0 -0
  2489. package/vendor/pdfjs/cmaps/RKSJ-H.bcmap +0 -0
  2490. package/vendor/pdfjs/cmaps/RKSJ-V.bcmap +0 -0
  2491. package/vendor/pdfjs/cmaps/Roman.bcmap +0 -0
  2492. package/vendor/pdfjs/cmaps/UniCNS-UCS2-H.bcmap +0 -0
  2493. package/vendor/pdfjs/cmaps/UniCNS-UCS2-V.bcmap +0 -0
  2494. package/vendor/pdfjs/cmaps/UniCNS-UTF16-H.bcmap +0 -0
  2495. package/vendor/pdfjs/cmaps/UniCNS-UTF16-V.bcmap +0 -0
  2496. package/vendor/pdfjs/cmaps/UniCNS-UTF32-H.bcmap +0 -0
  2497. package/vendor/pdfjs/cmaps/UniCNS-UTF32-V.bcmap +0 -0
  2498. package/vendor/pdfjs/cmaps/UniCNS-UTF8-H.bcmap +0 -0
  2499. package/vendor/pdfjs/cmaps/UniCNS-UTF8-V.bcmap +0 -0
  2500. package/vendor/pdfjs/cmaps/UniGB-UCS2-H.bcmap +0 -0
  2501. package/vendor/pdfjs/cmaps/UniGB-UCS2-V.bcmap +0 -0
  2502. package/vendor/pdfjs/cmaps/UniGB-UTF16-H.bcmap +0 -0
  2503. package/vendor/pdfjs/cmaps/UniGB-UTF16-V.bcmap +0 -0
  2504. package/vendor/pdfjs/cmaps/UniGB-UTF32-H.bcmap +0 -0
  2505. package/vendor/pdfjs/cmaps/UniGB-UTF32-V.bcmap +0 -0
  2506. package/vendor/pdfjs/cmaps/UniGB-UTF8-H.bcmap +0 -0
  2507. package/vendor/pdfjs/cmaps/UniGB-UTF8-V.bcmap +0 -0
  2508. package/vendor/pdfjs/cmaps/UniJIS-UCS2-H.bcmap +0 -0
  2509. package/vendor/pdfjs/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
  2510. package/vendor/pdfjs/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
  2511. package/vendor/pdfjs/cmaps/UniJIS-UCS2-V.bcmap +0 -0
  2512. package/vendor/pdfjs/cmaps/UniJIS-UTF16-H.bcmap +0 -0
  2513. package/vendor/pdfjs/cmaps/UniJIS-UTF16-V.bcmap +0 -0
  2514. package/vendor/pdfjs/cmaps/UniJIS-UTF32-H.bcmap +0 -0
  2515. package/vendor/pdfjs/cmaps/UniJIS-UTF32-V.bcmap +0 -0
  2516. package/vendor/pdfjs/cmaps/UniJIS-UTF8-H.bcmap +0 -0
  2517. package/vendor/pdfjs/cmaps/UniJIS-UTF8-V.bcmap +0 -0
  2518. package/vendor/pdfjs/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
  2519. package/vendor/pdfjs/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
  2520. package/vendor/pdfjs/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
  2521. package/vendor/pdfjs/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
  2522. package/vendor/pdfjs/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
  2523. package/vendor/pdfjs/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
  2524. package/vendor/pdfjs/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
  2525. package/vendor/pdfjs/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
  2526. package/vendor/pdfjs/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
  2527. package/vendor/pdfjs/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
  2528. package/vendor/pdfjs/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
  2529. package/vendor/pdfjs/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
  2530. package/vendor/pdfjs/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
  2531. package/vendor/pdfjs/cmaps/UniKS-UCS2-H.bcmap +0 -0
  2532. package/vendor/pdfjs/cmaps/UniKS-UCS2-V.bcmap +0 -0
  2533. package/vendor/pdfjs/cmaps/UniKS-UTF16-H.bcmap +0 -0
  2534. package/vendor/pdfjs/cmaps/UniKS-UTF16-V.bcmap +0 -0
  2535. package/vendor/pdfjs/cmaps/UniKS-UTF32-H.bcmap +0 -0
  2536. package/vendor/pdfjs/cmaps/UniKS-UTF32-V.bcmap +0 -0
  2537. package/vendor/pdfjs/cmaps/UniKS-UTF8-H.bcmap +0 -0
  2538. package/vendor/pdfjs/cmaps/UniKS-UTF8-V.bcmap +0 -0
  2539. package/vendor/pdfjs/cmaps/V.bcmap +0 -0
  2540. package/vendor/pdfjs/cmaps/WP-Symbol.bcmap +0 -0
  2541. package/vendor/pdfjs/pdf.min.mjs +27 -0
  2542. package/vendor/pdfjs/pdf.worker.min.mjs +27 -0
  2543. package/vendor/pdfjs/standard_fonts/FoxitDingbats.pfb +0 -0
  2544. package/vendor/pdfjs/standard_fonts/FoxitFixed.pfb +0 -0
  2545. package/vendor/pdfjs/standard_fonts/FoxitFixedBold.pfb +0 -0
  2546. package/vendor/pdfjs/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
  2547. package/vendor/pdfjs/standard_fonts/FoxitFixedItalic.pfb +0 -0
  2548. package/vendor/pdfjs/standard_fonts/FoxitSerif.pfb +0 -0
  2549. package/vendor/pdfjs/standard_fonts/FoxitSerifBold.pfb +0 -0
  2550. package/vendor/pdfjs/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
  2551. package/vendor/pdfjs/standard_fonts/FoxitSerifItalic.pfb +0 -0
  2552. package/vendor/pdfjs/standard_fonts/FoxitSymbol.pfb +0 -0
  2553. package/vendor/pdfjs/standard_fonts/LICENSE_FOXIT +27 -0
  2554. package/vendor/pdfjs/standard_fonts/LICENSE_LIBERATION +363 -0
  2555. package/vendor/pdfjs/standard_fonts/LiberationSans-Bold.ttf +0 -0
  2556. package/vendor/pdfjs/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
  2557. package/vendor/pdfjs/standard_fonts/LiberationSans-Italic.ttf +0 -0
  2558. package/vendor/pdfjs/standard_fonts/LiberationSans-Regular.ttf +0 -0
  2559. package/vendor/pdfjs/wasm/jbig2.wasm +0 -0
  2560. package/vendor/pdfjs/wasm/openjpeg.wasm +0 -0
  2561. package/vendor/pele/chunks/23I4SOAX.js +1 -0
  2562. package/vendor/pele/chunks/25ITEZ43.js +2 -0
  2563. package/vendor/pele/chunks/26H2HVXD.js +1 -0
  2564. package/vendor/pele/chunks/2IZ5MNOH.js +1 -0
  2565. package/vendor/pele/chunks/2P3CZEXH.js +1 -0
  2566. package/vendor/pele/chunks/2TH3V34D.js +2 -0
  2567. package/vendor/pele/chunks/3E5HRNYT.js +1 -0
  2568. package/vendor/pele/chunks/3JIRLDUO.js +1 -0
  2569. package/vendor/pele/chunks/3MKGV5HX.js +2 -0
  2570. package/vendor/pele/chunks/3S2YGJBL.js +6 -0
  2571. package/vendor/pele/chunks/4AG6A4TK.js +2 -0
  2572. package/vendor/pele/chunks/5MJ3UKSG.js +1 -0
  2573. package/vendor/pele/chunks/5THPTBWS.js +1 -0
  2574. package/vendor/pele/chunks/63N73SV4.js +1 -0
  2575. package/vendor/pele/chunks/6PEWY3TN.js +2 -0
  2576. package/vendor/pele/chunks/7OAKGN26.js +25 -0
  2577. package/vendor/pele/chunks/7WLXJQOR.js +1 -0
  2578. package/vendor/pele/chunks/A255FCTW.js +1 -0
  2579. package/vendor/pele/chunks/A6VFOGAO.js +5 -0
  2580. package/vendor/pele/chunks/AM43MQ64.js +1 -0
  2581. package/vendor/pele/chunks/AOZTNTMC.js +1 -0
  2582. package/vendor/pele/chunks/AQNLM6KG.js +1 -0
  2583. package/vendor/pele/chunks/BNU2RHQB.js +1 -0
  2584. package/vendor/pele/chunks/C5HTQT3I.js +4 -0
  2585. package/vendor/pele/chunks/CPKRWH5G.js +1 -0
  2586. package/vendor/pele/chunks/CPRVZL76.js +11 -0
  2587. package/vendor/pele/chunks/CUVCMPQX.js +1 -0
  2588. package/vendor/pele/chunks/D4V2MWCI.js +1 -0
  2589. package/vendor/pele/chunks/D6K5RLPD.js +5 -0
  2590. package/vendor/pele/chunks/DHKBVIA3.js +1 -0
  2591. package/vendor/pele/chunks/DKTLEL5E.js +1 -0
  2592. package/vendor/pele/chunks/DUZNPW7S.js +2 -0
  2593. package/vendor/pele/chunks/E3FWOBN4.js +4 -0
  2594. package/vendor/pele/chunks/E65FQMJL.js +1 -0
  2595. package/vendor/pele/chunks/EENBF6R3.js +5 -0
  2596. package/vendor/pele/chunks/FTXIJQGB.js +1 -0
  2597. package/vendor/pele/chunks/G3MDBVQH.js +1 -0
  2598. package/vendor/pele/chunks/G3OATVW2.js +1 -0
  2599. package/vendor/pele/chunks/GAP5KXLD.js +5 -0
  2600. package/vendor/pele/chunks/GFBBR3DD.js +13 -0
  2601. package/vendor/pele/chunks/GUJTEFZK.js +1 -0
  2602. package/vendor/pele/chunks/IHVFDU4A.js +10 -0
  2603. package/vendor/pele/chunks/IV52FOAS.js +1 -0
  2604. package/vendor/pele/chunks/JTJEEBDN.js +1 -0
  2605. package/vendor/pele/chunks/JX3HYMZ6.js +8 -0
  2606. package/vendor/pele/chunks/K3TAFXGN.js +3 -0
  2607. package/vendor/pele/chunks/K7FUICZ3.js +1 -0
  2608. package/vendor/pele/chunks/KIF544NL.js +2 -0
  2609. package/vendor/pele/chunks/LHH2HHRB.js +1 -0
  2610. package/vendor/pele/chunks/LT5IS45C.js +2 -0
  2611. package/vendor/pele/chunks/M7II5KMO.js +2 -0
  2612. package/vendor/pele/chunks/MSPQPZZY.js +1 -0
  2613. package/vendor/pele/chunks/NY2EJWPH.js +2 -0
  2614. package/vendor/pele/chunks/OB6ZFVKF.js +1 -0
  2615. package/vendor/pele/chunks/OJBDHQO2.js +4 -0
  2616. package/vendor/pele/chunks/PLTZDMI2.js +1 -0
  2617. package/vendor/pele/chunks/QFOMM5LR.js +2 -0
  2618. package/vendor/pele/chunks/R7EPXMMD.js +1 -0
  2619. package/vendor/pele/chunks/RGVCULFG.js +1 -0
  2620. package/vendor/pele/chunks/RVARI57O.js +1 -0
  2621. package/vendor/pele/chunks/S4GSSVLN.js +3 -0
  2622. package/vendor/pele/chunks/SPBWZ4VS.js +1 -0
  2623. package/vendor/pele/chunks/SR7OOV3Q.js +1 -0
  2624. package/vendor/pele/chunks/STAXBNH4.js +2 -0
  2625. package/vendor/pele/chunks/STMK7JZH.js +2 -0
  2626. package/vendor/pele/chunks/STXEMZPJ.js +2 -0
  2627. package/vendor/pele/chunks/SXFARSFO.js +1 -0
  2628. package/vendor/pele/chunks/TC77ISAL.js +1 -0
  2629. package/vendor/pele/chunks/TXE3YXUM.js +2 -0
  2630. package/vendor/pele/chunks/TYIQQHVC.js +1 -0
  2631. package/vendor/pele/chunks/TZUXETIT.js +1 -0
  2632. package/vendor/pele/chunks/U7N72BGE.js +1 -0
  2633. package/vendor/pele/chunks/UFPIB6EZ.js +1 -0
  2634. package/vendor/pele/chunks/UO52YEYL.js +3 -0
  2635. package/vendor/pele/chunks/V52Z4AG3.js +4 -0
  2636. package/vendor/pele/chunks/VBDLARNP.js +4 -0
  2637. package/vendor/pele/chunks/VHJMZXCQ.js +3 -0
  2638. package/vendor/pele/chunks/VIK3ONSK.js +1 -0
  2639. package/vendor/pele/chunks/VPGC3RUM.js +7 -0
  2640. package/vendor/pele/chunks/VVVO4ZVP.js +1 -0
  2641. package/vendor/pele/chunks/WRGXZO53.js +1 -0
  2642. package/vendor/pele/chunks/X5SG7MGC.js +1 -0
  2643. package/vendor/pele/chunks/XLHPVVFU.js +2 -0
  2644. package/vendor/pele/chunks/XXYPNCD5.js +1 -0
  2645. package/vendor/pele/chunks/XZO3CX7R.js +12 -0
  2646. package/vendor/pele/chunks/YZBJM2QT.js +2 -0
  2647. package/vendor/pele/chunks/YZHV477W.js +2 -0
  2648. package/vendor/pele/chunks/Z6WRYFJC.js +1 -0
  2649. package/vendor/pele/chunks/ZI2QNEGF.js +8 -0
  2650. package/vendor/pele/lazy.js +1 -0
  2651. package/vendor/pptxgenjs/pptxgen.mjs +97 -0
  2652. package/vendor/signals-core.mjs +1 -0
  2653. package/vendor/spessasynth/spessasynth.mjs +20764 -0
  2654. package/vendor/spessasynth/stb-vorbis.mjs +1 -0
  2655. package/vendor/temml/Temml.woff2 +0 -0
  2656. package/vendor/temml/temml.css +372 -0
  2657. package/vendor/temml/temml.mjs +2 -0
@@ -0,0 +1,3063 @@
1
+ import { t as e } from "ooxml/chunk-DmhlhrBa.js";
2
+ import { $ as t, $t as n, L as r, R as i, U as a, W as o, Xt as s, _t as c, et as l, ft as u, ln as d, lt as f, r as p, un as m, z as h } from "ooxml/hyperlink-Cxzhet30.js";
3
+ import { C as g, D as _, M as v, N as y, O as b, S as x, T as S, _ as C, a as w, b as ee, c as T, d as te, f as ne, g as re, h as ie, i as E, l as D, m as ae, n as oe, o as se, p as ce, r as le, s as ue, t as de, v as fe, w as pe, x as me, y as he } from "ooxml/canvas-viewer-mechanics-DbLz0rYW.js";
4
+ import { a as ge, c as _e, d as ve, f as O, i as ye, n as be, r as xe, t as Se } from "ooxml/dom-interaction-boundary-Cnm8DSBN.js";
5
+ import { n as Ce } from "ooxml/cjk-fallback-bLI3z70h.js";
6
+ import { i as k } from "ooxml/units-BzZ0gAxs.js";
7
+ import { l as we, s as Te } from "ooxml/pixel-budget-9P63Bsk5.js";
8
+ import { i as Ee, s as De } from "ooxml/raster-target-ojDdQizC.js";
9
+ import { n as Oe } from "ooxml/resource-measurement-SHQCbkh2.js";
10
+ import { a as A, c as ke, d as j, f as Ae, i as je, l as Me, n as Ne, o as M, r as Pe, s as Fe, t as Ie, u as Le } from "ooxml/slide-pull-client-DiPnm240.js";
11
+ import { n as Re } from "ooxml/renderer-module-contract-D91rkYHH.js";
12
+ import { t as ze } from "ooxml/visible-index-BgiHEc1z.js";
13
+ import { n as Be, t as N } from "ooxml/highlight-rect-C5hkRqUr.js";
14
+ import { n as Ve, t as He } from "ooxml/bounded-raw-part-cache-Cg1BsSZQ.js";
15
+ import { t as P } from "ooxml/comment-occurrence-C8Y2uoVr.js";
16
+ //#region packages/core/src/nav/internal-target.ts
17
+ function Ue(e, t) {
18
+ let n = t.startsWith("/") ? [] : e.split("/").filter((e) => e !== "");
19
+ for (let e of t.split("/")) if (e === "..") n.pop();
20
+ else if (e === "." || e === "") continue;
21
+ else n.push(e);
22
+ return n.join("/");
23
+ }
24
+ function We(e) {
25
+ let t = /[?&]jump=([a-zA-Z]+)/.exec(e);
26
+ if (!t) return null;
27
+ let n = t[1].toLowerCase();
28
+ return n === "firstslide" || n === "lastslide" || n === "nextslide" || n === "previousslide" ? n : null;
29
+ }
30
+ function Ge(e, t, n) {
31
+ if (!(n <= 0)) switch (e) {
32
+ case "firstslide": return 0;
33
+ case "lastslide": return n - 1;
34
+ case "nextslide": return Math.min(t + 1, n - 1);
35
+ case "previousslide": return Math.max(t - 1, 0);
36
+ }
37
+ }
38
+ //#endregion
39
+ //#region packages/pptx/src/run-frame-transform.ts
40
+ function Ke(e) {
41
+ let t = e.textBodyRotation ?? 0, n = e.shapeFlipH === !0, r = e.shapeFlipV === !0;
42
+ if (n || r) return `rotate(${e.rotation}deg) scale(${n ? -1 : 1}, ${r ? -1 : 1})` + (t === 0 ? "" : ` rotate(${t}deg)`);
43
+ let i = e.rotation + t;
44
+ return i === 0 ? "" : `rotate(${i}deg)`;
45
+ }
46
+ function qe(e, t) {
47
+ return `${e.shapeX},${e.shapeY},${e.shapeW},${e.shapeH},` + t;
48
+ }
49
+ //#endregion
50
+ //#region packages/pptx/src/text-layer.ts
51
+ function F(e, t, n) {
52
+ e.dataset ? n === void 0 ? delete e.dataset[t] : e.dataset[t] = n : n !== void 0 && e.setAttribute?.(`data-${t.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`)}`, n);
53
+ }
54
+ function I(e, t, n, r, i, a) {
55
+ e.innerHTML = "", F(e, "ooxmlSelectionSurface", "pptx"), F(e, "slideIndex", a === void 0 ? void 0 : String(a));
56
+ let o = /* @__PURE__ */ new Map(), s = e.ownerDocument ?? document;
57
+ for (let [a, c] of t.entries()) {
58
+ let t = Ke(c), l = qe(c, t), u = o.get(l);
59
+ if (!u) {
60
+ let i = s.createElement("div");
61
+ i.style.cssText = `position:absolute;left:${N(c.shapeX, n)};top:${N(c.shapeY, r)};width:${N(c.shapeW, n)};height:${N(c.shapeH, r)};pointer-events:all;overflow:visible;`, t && (i.style.transformOrigin = "center center", i.style.transform = t), u = {
62
+ div: i,
63
+ w: c.shapeW,
64
+ h: c.shapeH
65
+ }, o.set(l, u), e.appendChild(i);
66
+ }
67
+ let d = s.createElement("span");
68
+ F(d, "ooxmlSelectionRun", "pptx"), F(d, "runIndex", String(a)), c.shapeId !== void 0 && F(d, "shapeId", c.shapeId), c.elementIndex !== void 0 && F(d, "elementIndex", String(c.elementIndex)), c.origin !== void 0 && F(d, "elementOrigin", c.origin), d.textContent = c.text;
69
+ let f = i ? c.hyperlink : void 0;
70
+ d.style.cssText = `position:absolute;left:${N(c.inShapeX, u.w)};top:${N(c.inShapeY, u.h)};font:${c.font};line-height:${c.h}px;letter-spacing:0;white-space:pre;color:transparent;cursor:${f ? "pointer" : "text"};`, f && i && (d.title = f.kind === "external" ? f.url : f.ref, d.addEventListener("click", (e) => {
71
+ e.preventDefault(), i(f);
72
+ })), u.div.appendChild(d);
73
+ }
74
+ }
75
+ function L(e, t, n, r, i, a, o = {}) {
76
+ e.innerHTML = "";
77
+ let s = o.match ?? "rgba(255, 214, 0, 0.42)", c = o.active ?? "rgba(255, 140, 0, 0.55)", l = /* @__PURE__ */ new Map(), u = (t) => {
78
+ let n = Ke(t), a = qe(t, n), o = l.get(a);
79
+ if (!o) {
80
+ let s = document.createElement("div");
81
+ s.style.cssText = `position:absolute;left:${N(t.shapeX, r)};top:${N(t.shapeY, i)};width:${N(t.shapeW, r)};height:${N(t.shapeH, i)};pointer-events:none;overflow:hidden;`, n && (s.style.transformOrigin = "center center", s.style.transform = n), o = {
82
+ div: s,
83
+ w: t.shapeW,
84
+ h: t.shapeH
85
+ }, l.set(a, o), e.appendChild(s);
86
+ }
87
+ return o;
88
+ };
89
+ for (let e of n) {
90
+ let n = e.active ? c : s;
91
+ for (let r of e.slices) {
92
+ let e = t[r.runIndex];
93
+ if (!e) continue;
94
+ let i = a(e.font), { x: o, width: s } = Be(e.text, r.start, r.end, i);
95
+ if (s <= 0) continue;
96
+ let c = u(e), l = document.createElement("div");
97
+ l.style.cssText = `position:absolute;left:${N(e.inShapeX + o, c.w)};top:${N(e.inShapeY, c.h)};width:${N(s, c.w)};height:${N(e.h, c.h)};background:${n};pointer-events:none;`, c.div.appendChild(l);
98
+ }
99
+ }
100
+ }
101
+ //#endregion
102
+ //#region packages/pptx/src/find.ts
103
+ function Je(e, t) {
104
+ let n = e.tableCell, r = t.tableCell;
105
+ return !n && !r ? !0 : !n || !r ? !1 : e.elementIndex === t.elementIndex && e.origin === t.origin && e.shapeId === t.shapeId && n.row === r.row && n.column === r.column;
106
+ }
107
+ function Ye(e, t) {
108
+ for (let n = 1; n < t.length; n++) {
109
+ let r = e[t[n - 1].runIndex], i = e[t[n].runIndex];
110
+ if (!r || !i || !Je(r, i)) return !1;
111
+ }
112
+ return !0;
113
+ }
114
+ var Xe = class {
115
+ _slideRuns = /* @__PURE__ */ new Map();
116
+ _matches = [];
117
+ _active = -1;
118
+ _generation = 0;
119
+ _runsRevision = 0;
120
+ constructor(e, t) {
121
+ this._slideCount = e, this._collectSlideRuns = t;
122
+ }
123
+ invalidate() {
124
+ this._generation++, this._runsRevision++, this._slideRuns.clear(), this._matches = [], this._active = -1;
125
+ }
126
+ slideRuns(e) {
127
+ return this._slideRuns.get(e);
128
+ }
129
+ setSlideRuns(e, t) {
130
+ this._runsRevision++, this._slideRuns.set(e, t);
131
+ }
132
+ slideHighlights(e) {
133
+ let t = [];
134
+ for (let n = 0; n < this._matches.length; n++) {
135
+ let r = this._matches[n];
136
+ r.slide === e && t.push({
137
+ slices: r.slices,
138
+ active: n === this._active
139
+ });
140
+ }
141
+ return t;
142
+ }
143
+ activeSlide() {
144
+ let e = this._matches[this._active];
145
+ return e ? e.slide : null;
146
+ }
147
+ matches() {
148
+ return this._matches.map((e, t) => ({
149
+ matchIndex: t,
150
+ text: e.text,
151
+ location: { slide: e.slide }
152
+ }));
153
+ }
154
+ async find(e, t = {}) {
155
+ let n = ++this._generation;
156
+ if (e.length === 0) return this._runsRevision++, this._slideRuns.clear(), this._matches = [], this._active = -1, [];
157
+ let r = this._runsRevision, i = new Map(this._slideRuns), a = this._slideCount();
158
+ for (let e = 0; e < a; e++) {
159
+ let t = i.get(e);
160
+ if (!t) {
161
+ try {
162
+ t = await this._collectSlideRuns(e);
163
+ } catch (e) {
164
+ if (n !== this._generation) return [];
165
+ throw e;
166
+ }
167
+ if (n !== this._generation) return [];
168
+ i.set(e, t);
169
+ }
170
+ }
171
+ if (n !== this._generation) return [];
172
+ let o = r === this._runsRevision ? i : new Map([...i, ...this._slideRuns]), s = [];
173
+ for (let n = 0; n < a; n++) {
174
+ let r = o.get(n) ?? [], i = ae(r);
175
+ for (let a of ie(i, e, t)) {
176
+ if (!Ye(r, a.slices)) continue;
177
+ let e = a.slices.map((e) => r[e.runIndex].text.slice(e.start, e.end)).join("");
178
+ s.push({
179
+ slide: n,
180
+ text: e,
181
+ slices: a.slices
182
+ });
183
+ }
184
+ }
185
+ return this._runsRevision++, this._slideRuns = o, this._matches = s, this._active = -1, this.matches();
186
+ }
187
+ next() {
188
+ return this._active = ne(this._active, this._matches.length), this._activePublic();
189
+ }
190
+ prev() {
191
+ return this._active = ce(this._active, this._matches.length), this._activePublic();
192
+ }
193
+ _activePublic() {
194
+ let e = this._matches[this._active];
195
+ return e ? {
196
+ matchIndex: this._active,
197
+ text: e.text,
198
+ location: { slide: e.slide }
199
+ } : null;
200
+ }
201
+ }, Ze = (e) => e >= "0" && e <= "9";
202
+ function Qe(e) {
203
+ let t = 0;
204
+ for (let n = 0; n < 10; n++) t = Math.max(t, e.measureText(String(n)).width);
205
+ return t;
206
+ }
207
+ function $e(e, t, n) {
208
+ let r = 0;
209
+ for (let i of t) r += Ze(i) ? n : e.measureText(i).width;
210
+ return r;
211
+ }
212
+ function et(e, t, n, r, i) {
213
+ let a = e.textAlign;
214
+ e.textAlign = "left";
215
+ let o = n;
216
+ for (let n of t) if (Ze(n)) {
217
+ let t = e.measureText(n).width;
218
+ e.fillText(n, o + (i - t) / 2, r), o += i;
219
+ } else e.fillText(n, o, r), o += e.measureText(n).width;
220
+ e.textAlign = a;
221
+ }
222
+ //#endregion
223
+ //#region packages/pptx/src/presentation-handle.ts
224
+ var R = (e, t) => e / k * t;
225
+ async function tt(e, t, n) {
226
+ let r = e.getContext("2d");
227
+ if (!r) throw Error("2D context not available");
228
+ let i = n.width / (n.slideWidthEmu / k);
229
+ await n.drawBase();
230
+ let a = document.createElement("canvas");
231
+ a.width = e.width, a.height = e.height;
232
+ let o = a.getContext("2d");
233
+ if (!o) throw Error("base 2D context not available");
234
+ o.drawImage(e, 0, 0);
235
+ let s = [], c = !1, l = () => {
236
+ for (let e of s) {
237
+ e.detachListeners(), e.media.pause(), e.media.removeAttribute("src");
238
+ try {
239
+ e.media.load();
240
+ } catch {}
241
+ URL.revokeObjectURL(e.objectUrl);
242
+ }
243
+ s.length = 0;
244
+ }, u = (e) => {
245
+ c || (n.onError ? n.onError(e) : console.error("[ooxml] PPTX embedded media failed:", e));
246
+ };
247
+ for (let e of t) {
248
+ let t;
249
+ try {
250
+ t = await n.fetchMedia(e.mediaPath);
251
+ } catch (t) {
252
+ throw l(), it(e, t);
253
+ }
254
+ let r = e.mimeType || t.type, a = t.type === r ? t : new Blob([t], { type: r }), o = URL.createObjectURL(a), d = e.mediaKind === "video" ? document.createElement("video") : document.createElement("audio");
255
+ d.src = o, d.preload = "metadata", e.mediaKind === "video" && (d.playsInline = !0);
256
+ let f = nt(e, i), p = {
257
+ el: e,
258
+ rect: e.mediaKind === "audio" ? {
259
+ x: f.x + f.w / 2 - Math.max(f.w, 260) / 2,
260
+ y: f.y,
261
+ w: Math.max(f.w, 260),
262
+ h: f.h + 36
263
+ } : f,
264
+ posterRect: f,
265
+ media: d,
266
+ objectUrl: o,
267
+ loadState: "loading",
268
+ detachListeners: () => {}
269
+ }, m = () => {
270
+ c || (p.loadState = "metadata");
271
+ }, h = () => {
272
+ c || (p.loadState = "ready");
273
+ }, g = () => {
274
+ c || (p.loadState = "error", u(z(e, d, "decode")));
275
+ };
276
+ d.addEventListener("loadedmetadata", m), d.addEventListener("canplay", h), d.addEventListener("error", g), p.detachListeners = () => {
277
+ d.removeEventListener("loadedmetadata", m), d.removeEventListener("canplay", h), d.removeEventListener("error", g);
278
+ }, s.push(p);
279
+ try {
280
+ d.load();
281
+ } catch (t) {
282
+ let n = z(e, d, "load", t);
283
+ throw l(), n;
284
+ }
285
+ }
286
+ let d = null, f = null, p = () => {
287
+ r.setTransform(e.width / n.width, 0, 0, e.height / n.height, 0, 0), r.drawImage(a, 0, 0, e.width, e.height, 0, 0, n.width, n.height);
288
+ for (let e of s) {
289
+ let t = e.media;
290
+ if (e.loadState !== "loading") {
291
+ if (e.loadState === "error") {
292
+ rt(r, e.posterRect, "Media unavailable");
293
+ continue;
294
+ }
295
+ if (e.el.mediaKind === "video" && t.readyState >= 2) {
296
+ let { x: n, y: i, w: a, h: o } = e.posterRect;
297
+ r.drawImage(t, n, i, a, o);
298
+ }
299
+ if (e === f || _?.state === e) lt(r, e, t);
300
+ else if (t.paused) {
301
+ let { x: t, y: n, w: i, h: a } = e.posterRect;
302
+ j(r, t + i / 2, n + a / 2, i, a, "paused");
303
+ }
304
+ }
305
+ }
306
+ }, m = () => {
307
+ c || (p(), d = requestAnimationFrame(m));
308
+ }, h = (t, r) => {
309
+ let i = e.getBoundingClientRect();
310
+ return {
311
+ x: (t - i.left) / i.width * n.width,
312
+ y: (r - i.top) / i.height * n.height
313
+ };
314
+ }, g = (e, t) => {
315
+ for (let n of s) {
316
+ let { x: r, y: i, w: a, h: o } = n.rect;
317
+ if (e < r || e > r + a || t < i || t > i + o) continue;
318
+ let s = H(n), c = s.y - 12, l = s.y + s.h + 8;
319
+ return (Number.isFinite(n.media.duration) ? n.media.duration : 0) > 0 && e >= s.x && e <= s.x + s.w && t >= c && t <= l ? {
320
+ kind: "seek",
321
+ state: n,
322
+ fraction: Math.max(0, Math.min(1, (e - s.x) / s.w))
323
+ } : {
324
+ kind: "toggle",
325
+ state: n
326
+ };
327
+ }
328
+ return null;
329
+ }, _ = null, v = (e, t) => {
330
+ let n = Number.isFinite(e.media.duration) ? e.media.duration : 0;
331
+ n <= 0 || (e.media.currentTime = n * t);
332
+ }, y = (e) => {
333
+ try {
334
+ e.media.play().catch((t) => {
335
+ u(z(e.el, e.media, "play", t));
336
+ });
337
+ } catch (t) {
338
+ u(z(e.el, e.media, "play", t));
339
+ }
340
+ }, b = (t) => {
341
+ let { x: n, y: r } = h(t.clientX, t.clientY), i = g(n, r);
342
+ i && (i.kind === "seek" ? (_ = {
343
+ state: i.state,
344
+ wasPlaying: !i.state.media.paused
345
+ }, i.state.media.pause(), v(i.state, i.fraction), e.setPointerCapture(t.pointerId), t.preventDefault()) : i.state.media.paused ? y(i.state) : i.state.media.pause());
346
+ }, x = (e) => {
347
+ let { x: t, y: n } = h(e.clientX, e.clientY);
348
+ f = null;
349
+ for (let e of s) {
350
+ let { x: r, y: i, w: a, h: o } = e.rect;
351
+ if (t >= r && t <= r + a && n >= i && n <= i + o) {
352
+ f = e;
353
+ break;
354
+ }
355
+ }
356
+ if (_) {
357
+ let e = H(_.state), n = Math.max(0, Math.min(1, (t - e.x) / e.w));
358
+ v(_.state, n);
359
+ }
360
+ }, S = () => {
361
+ f = null;
362
+ }, C = (t) => {
363
+ if (!_) return;
364
+ let { wasPlaying: n, state: r } = _;
365
+ _ = null, e.releasePointerCapture(t.pointerId), n && y(r);
366
+ };
367
+ return s.length > 0 && (e.addEventListener("pointerdown", b), e.addEventListener("pointermove", x), e.addEventListener("pointerleave", S), e.addEventListener("pointerup", C), e.addEventListener("pointercancel", C), e.style.cursor = "pointer", m()), {
368
+ play(e) {
369
+ for (let t of s) (!e || t.el.mediaPath === e) && y(t);
370
+ },
371
+ pause(e) {
372
+ for (let t of s) (!e || t.el.mediaPath === e) && t.media.pause();
373
+ },
374
+ destroy() {
375
+ c || (c = !0, d !== null && cancelAnimationFrame(d), e.removeEventListener("pointerdown", b), e.removeEventListener("pointermove", x), e.removeEventListener("pointerleave", S), e.removeEventListener("pointerup", C), e.removeEventListener("pointercancel", C), e.style.cursor = "", l());
376
+ }
377
+ };
378
+ }
379
+ function nt(e, t) {
380
+ return {
381
+ x: R(e.x, t),
382
+ y: R(e.y, t),
383
+ w: R(e.width, t),
384
+ h: R(e.height, t)
385
+ };
386
+ }
387
+ function rt(e, t, n) {
388
+ let r = Math.max(10, Math.min(14, t.h * .12));
389
+ e.save(), e.font = `500 ${r}px system-ui, -apple-system, sans-serif`, e.textAlign = "center", e.textBaseline = "middle";
390
+ let i = r + 12, a = Math.min(t.w, Math.max(100, e.measureText(n).width + 24));
391
+ U(e, t.x + (t.w - a) / 2, t.y + (t.h - i) / 2, a, i, i / 2), e.fillStyle = "rgba(20, 20, 20, 0.72)", e.fill(), e.fillStyle = "rgba(255, 255, 255, 0.95)", e.fillText(n, t.x + t.w / 2, t.y + t.h / 2), e.restore();
392
+ }
393
+ function it(e, t) {
394
+ return /* @__PURE__ */ Error(`Embedded ${e.mediaKind} fetch failed for "${e.mediaPath}" (mime=${e.mimeType || "unknown"}): ${at(t)}`);
395
+ }
396
+ function z(e, t, n, r) {
397
+ let i = "";
398
+ try {
399
+ i = e.mimeType ? t.canPlayType(e.mimeType) : "";
400
+ } catch {}
401
+ let a = t.error, o = [
402
+ `mime=${e.mimeType || "unknown"}`,
403
+ `canPlayType=${i || "no"}`,
404
+ `readyState=${t.readyState}`,
405
+ `networkState=${t.networkState}`
406
+ ];
407
+ a && o.push(`mediaError=${a.code}${a.message ? ` ${a.message}` : ""}`);
408
+ let s = r === void 0 ? "" : `: ${at(r)}`;
409
+ return /* @__PURE__ */ Error(`Embedded ${e.mediaKind} ${n} failed for "${e.mediaPath}" (${o.join("; ")})${s}`);
410
+ }
411
+ function at(e) {
412
+ return e instanceof Error ? `${e.name || "Error"}${e.message ? `: ${e.message}` : ""}` : String(e);
413
+ }
414
+ var ot = 28, B = 14, st = 72, ct = 10, V = 3;
415
+ function lt(e, t, n) {
416
+ let r = Number.isFinite(n.duration) ? n.duration : 0, i = r > 0 ? Math.min(1, n.currentTime / r) : 0, a = t.posterRect;
417
+ j(e, a.x + a.w / 2, a.y + a.h / 2, a.w, a.h, n.paused ? "paused" : "playing"), t.el.mediaKind === "audio" ? dt(e, t, n, r, i) : ut(e, t, n, r, i);
418
+ }
419
+ function ut(e, t, n, r, i) {
420
+ let { x: a, y: o, w: s, h: c } = t.rect, l = Math.max(28, Math.min(56, c * .22)), u = o + c - l;
421
+ e.save();
422
+ let d = e.createLinearGradient(0, u, 0, o + c);
423
+ d.addColorStop(0, "rgba(0, 0, 0, 0)"), d.addColorStop(1, "rgba(0, 0, 0, 0.55)"), e.fillStyle = d, e.fillRect(a, u, s, l), e.restore();
424
+ let f = H(t);
425
+ pt(e, f, i, r > 0), e.save(), e.font = "500 11px system-ui, -apple-system, sans-serif", e.textBaseline = "middle", e.shadowColor = "rgba(0, 0, 0, 0.75)", e.shadowBlur = 3, e.fillStyle = "rgba(255, 255, 255, 0.95)", ft(e, n.currentTime, r, f.x, f.y - 10, "bottom"), e.restore();
426
+ }
427
+ function dt(e, t, n, r, i) {
428
+ let a = mt(t.rect);
429
+ e.save(), U(e, a.x, a.y, a.w, a.h, a.h / 2), e.fillStyle = "rgba(20, 20, 20, 0.72)", e.fill(), e.font = "500 11px system-ui, -apple-system, sans-serif", e.textBaseline = "middle", e.fillStyle = "rgba(255, 255, 255, 0.95)", ft(e, n.currentTime, r, a.x + B, a.y + a.h / 2, "middle"), e.restore(), pt(e, H(t), i, r > 0);
430
+ }
431
+ function ft(e, t, n, r, i, a) {
432
+ let o = ht(t), s = ht(n), c = Qe(e), l = $e(e, o, c), u = $e(e, s, c), d = e.measureText(" / ").width, f = Math.max(l, u);
433
+ et(e, o, r + f - l, i, c);
434
+ let p = e.textAlign;
435
+ e.textAlign = "left", e.fillText(" / ", r + f, i), e.textAlign = p, et(e, s, r + f + d, i, c);
436
+ }
437
+ function pt(e, t, n, r) {
438
+ let i = t.h / 2;
439
+ if (e.save(), U(e, t.x, t.y, t.w, t.h, i), e.fillStyle = "rgba(255, 255, 255, 0.35)", e.fill(), n > 0 && (U(e, t.x, t.y, t.w * n, t.h, i), e.fillStyle = "#fff", e.fill()), r) {
440
+ let r = Math.max(t.x + 5, Math.min(t.x + t.w - 5, t.x + t.w * n));
441
+ e.shadowColor = "rgba(0, 0, 0, 0.3)", e.shadowBlur = 3, e.fillStyle = "#fff", e.beginPath(), e.arc(r, t.y + t.h / 2, 5, 0, Math.PI * 2), e.fill();
442
+ }
443
+ e.restore();
444
+ }
445
+ function mt(e) {
446
+ let t = Math.max(220, e.w - 24);
447
+ return {
448
+ x: e.x + e.w / 2 - t / 2,
449
+ y: e.y + e.h - ot - 4,
450
+ w: t,
451
+ h: ot
452
+ };
453
+ }
454
+ function H(e) {
455
+ if (e.el.mediaKind === "audio") {
456
+ let t = mt(e.rect), n = t.x + B + st + ct, r = Math.max(40, t.x + t.w - B - n);
457
+ return {
458
+ x: n,
459
+ y: t.y + (t.h - V) / 2,
460
+ w: r,
461
+ h: V
462
+ };
463
+ }
464
+ let t = e.rect, n = Math.max(12, t.w * .025), r = Math.max(12, Math.min(18, t.h * .05));
465
+ return {
466
+ x: t.x + n,
467
+ y: t.y + t.h - V - r,
468
+ w: t.w - n * 2,
469
+ h: V
470
+ };
471
+ }
472
+ function U(e, t, n, r, i, a) {
473
+ let o = Math.min(a, i / 2, r / 2);
474
+ e.beginPath(), e.moveTo(t + o, n), e.lineTo(t + r - o, n), e.quadraticCurveTo(t + r, n, t + r, n + o), e.lineTo(t + r, n + i - o), e.quadraticCurveTo(t + r, n + i, t + r - o, n + i), e.lineTo(t + o, n + i), e.quadraticCurveTo(t, n + i, t, n + i - o), e.lineTo(t, n + o), e.quadraticCurveTo(t, n, t + o, n), e.closePath();
475
+ }
476
+ function ht(e) {
477
+ if (!Number.isFinite(e) || e < 0) return "0:00";
478
+ let t = Math.floor(e);
479
+ return `${Math.floor(t / 60)}:${(t % 60).toString().padStart(2, "0")}`;
480
+ }
481
+ //#endregion
482
+ //#region packages/pptx/src/slide-nav.ts
483
+ function gt(e) {
484
+ let t = /* @__PURE__ */ new Map();
485
+ for (let n = 0; n < e.length; n++) {
486
+ let r = e[n];
487
+ r !== void 0 && r !== "" && !t.has(r) && t.set(r, n);
488
+ }
489
+ return t;
490
+ }
491
+ function _t(e, t) {
492
+ if (e === "") return;
493
+ let n = Ue("ppt/slides", e);
494
+ return t.get(n);
495
+ }
496
+ function vt(e, t, n) {
497
+ let r = We(e);
498
+ return r === null ? _t(e, t) : Ge(r, n, t.size);
499
+ }
500
+ //#endregion
501
+ //#region packages/pptx/src/slide-repository.ts
502
+ var yt = class {
503
+ #e;
504
+ #t;
505
+ #n;
506
+ #r = 0;
507
+ #i = Promise.resolve();
508
+ #a;
509
+ #o;
510
+ constructor(e) {
511
+ if (!Number.isSafeInteger(e.slideCount) || e.slideCount < 0) throw TypeError("slideCount must be a non-negative safe integer");
512
+ this.#e = e.slideCount, this.#t = e.loadSlide, this.#n = new Ve({
513
+ maxEntries: e.maxCachedSlides,
514
+ maxWeight: e.maxCachedStructuralBytes,
515
+ measure: (e) => Oe(e).jsonBytes
516
+ });
517
+ }
518
+ get slideCount() {
519
+ return this.#e;
520
+ }
521
+ get usage() {
522
+ return this.#n.usage;
523
+ }
524
+ withSlide(e, t) {
525
+ this.#c(e);
526
+ let n = this.#r, r = this.#i.then(async () => {
527
+ if (n !== this.#r) throw this.#a ? this.#a : Error("PPTX slide repository generation is stale");
528
+ if (this.#a) throw this.#a;
529
+ let r = await this.#s(e, n);
530
+ try {
531
+ return await t(r);
532
+ } catch (e) {
533
+ let t = bt(e);
534
+ throw t ? (this.#l(t, n), this.#o === n ? this.#a ?? t : t) : e;
535
+ }
536
+ });
537
+ return this.#i = r.then(() => void 0, () => void 0), r;
538
+ }
539
+ async #s(e, t) {
540
+ return this.#n.getOrLoad(e, async () => {
541
+ let n;
542
+ try {
543
+ n = await this.#t(e);
544
+ } catch (e) {
545
+ let n = bt(e);
546
+ throw n ? (this.#l(n, t), this.#o === t ? this.#a ?? n : n) : e;
547
+ }
548
+ if (this.#o === t && this.#a) throw this.#a;
549
+ return n;
550
+ });
551
+ }
552
+ clear() {
553
+ this.#r += 1, this.#a = void 0, this.#o = void 0, this.#n.clear();
554
+ }
555
+ #c(e) {
556
+ if (!Number.isSafeInteger(e) || e < 0 || e >= this.#e) throw RangeError(`Slide index ${e} out of range (count: ${this.#e})`);
557
+ }
558
+ #l(e, t) {
559
+ t !== this.#r || this.#a || (this.#a = e, this.#o = t, this.#r += 1, this.#n.clear());
560
+ }
561
+ };
562
+ function bt(e) {
563
+ return e instanceof m ? e : o(e);
564
+ }
565
+ //#endregion
566
+ //#region packages/pptx/src/embedded-fonts.ts
567
+ var xt = 1;
568
+ function W(e) {
569
+ return e.trim().toLowerCase();
570
+ }
571
+ async function St(e, t) {
572
+ if (e.length === 0) return {
573
+ faces: [],
574
+ aliases: /* @__PURE__ */ new Map(),
575
+ authoredFamilies: /* @__PURE__ */ new Map()
576
+ };
577
+ let n = xt++, r = /* @__PURE__ */ new Map();
578
+ for (let t of e) {
579
+ let e = W(t.fontName);
580
+ r.has(e) || r.set(e, `__ooxml_pptx_${n}_${r.size + 1}`);
581
+ }
582
+ let i = [], a = /* @__PURE__ */ new Set();
583
+ for (let n = 0; n < e.length; n += 2) {
584
+ let o = (await Promise.all(e.slice(n, n + 2).map(async (e) => {
585
+ try {
586
+ return {
587
+ family: r.get(W(e.fontName)),
588
+ bytes: await t(e.partPath),
589
+ odttf: !1,
590
+ weight: e.style === "bold" || e.style === "boldItalic" ? "bold" : "normal",
591
+ style: e.style === "italic" || e.style === "boldItalic" ? "italic" : "normal"
592
+ };
593
+ } catch {
594
+ return null;
595
+ }
596
+ }))).filter((e) => e !== null);
597
+ if (o.length !== 0) for (let e of await ve(o)) a.has(e) ? O([e]) : (a.add(e), i.push(e));
598
+ }
599
+ let o = new Set(i.map((e) => W(e.family))), s = new Map([...r].filter(([, e]) => o.has(W(e))));
600
+ return {
601
+ faces: i,
602
+ aliases: s,
603
+ authoredFamilies: new Map([...s].map(([e, t]) => [t, e]))
604
+ };
605
+ }
606
+ function Ct(e, t) {
607
+ return e.filter((e) => e === null || !t.has(e.trim().toLowerCase()));
608
+ }
609
+ //#endregion
610
+ //#region packages/pptx/src/worker.ts?worker&inline
611
+ var wt = "var e=(e,t)=>()=>(e&&(t=e(e=0)),t),t=class e extends Error{code;constructor(t,n){super(n),this.name=`OoxmlError`,this.code=t,Object.setPrototypeOf(this,e.prototype)}},n=class e extends Error{code=`ooxml-resource-limit`;details;constructor(t,n){super(t),this.name=`OoxmlResourceLimitError`;let r=n.violation,i=Object.freeze({format:r.format,operation:r.operation,resource:r.resource,metric:r.metric,...r.part===void 0?{}:{part:r.part},limit:r.limit,observed:r.observed,configurable:r.configurable,usage:Object.freeze({archiveEntryCount:r.usage.archiveEntryCount,declaredInflatedBytes:r.usage.declaredInflatedBytes,...r.usage.largestInflatedEntryBytes===void 0?{}:{largestInflatedEntryBytes:r.usage.largestInflatedEntryBytes},distinctInflatedBytes:r.usage.distinctInflatedBytes,operationInflatedBytes:r.usage.operationInflatedBytes})});this.details=Object.freeze({stage:n.stage,violation:i}),Object.setPrototypeOf(this,e.prototype)}};const r=67108864,i=`https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;700&display=swap`,a=`https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;700&display=swap`,o=`https://fonts.googleapis.com/css2?family=Libre+Franklin:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap`,s={calibri:{url:`https://fonts.googleapis.com/css2?family=Carlito:ital,wght@0,400;0,700;1,400;1,700&display=swap`,loadFamily:`Carlito`},\"calibri light\":{url:`https://fonts.googleapis.com/css2?family=Carlito:ital,wght@0,400;0,700;1,400;1,700&display=swap`,loadFamily:`Carlito`},cambria:{url:`https://fonts.googleapis.com/css2?family=Caladea:ital,wght@0,400;0,700;1,400;1,700&display=swap`,loadFamily:`Caladea`},\"cambria math\":{url:`https://fonts.googleapis.com/css2?family=Caladea:ital,wght@0,400;0,700;1,400;1,700&display=swap`,loadFamily:`Caladea`},\"franklin gothic book\":{url:o,loadFamily:`Libre Franklin`},\"franklin gothic medium\":{url:o,loadFamily:`Libre Franklin`},\"nunito sans\":{url:`https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap`},nunito:{url:`https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,700;1,400;1,700&display=swap`},\"open sans\":{url:`https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap`},roboto:{url:`https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,700;1,400;1,700&display=swap`},lato:{url:`https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400;1,700&display=swap`},montserrat:{url:`https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,700;1,400;1,700&display=swap`},poppins:{url:`https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,700;1,400;1,700&display=swap`},raleway:{url:`https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,400;0,700;1,400;1,700&display=swap`},\"playfair display\":{url:`https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&display=swap`},ubuntu:{url:`https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,400;0,700;1,400;1,700&display=swap`},\"sakkal majalla\":{url:i,loadFamily:`Noto Naskh Arabic`},\"traditional arabic\":{url:i,loadFamily:`Noto Naskh Arabic`},\"simplified arabic\":{url:i,loadFamily:`Noto Naskh Arabic`},\"arabic typesetting\":{url:i,loadFamily:`Noto Naskh Arabic`},\"univers next arabic\":{url:a,loadFamily:`Noto Sans Arabic`},\"noto naskh arabic\":{url:i,loadFamily:`Noto Naskh Arabic`},\"noto sans arabic\":{url:a,loadFamily:`Noto Sans Arabic`}},c={\"noto sans cjk sc\":`Noto Sans SC`,\"noto serif cjk sc\":`Noto Serif SC`,\"noto sans cjk tc\":`Noto Sans TC`,\"noto serif cjk tc\":`Noto Serif TC`,\"noto sans cjk jp\":`Noto Sans JP`,\"noto serif cjk jp\":`Noto Serif JP`,\"noto sans cjk kr\":`Noto Sans KR`,\"noto serif cjk kr\":`Noto Serif KR`,\"noto sans cjk hk\":`Noto Sans HK`};function l(e){return e?c[e.trim().toLowerCase()]??null:null}function u(e){if(!e)return null;let t=l(e)??e.trim(),n=t.toLowerCase(),r=n.match(/^noto\\s+(?:sans|serif)\\s+(?:cjk\\s+)?(sc|tc|hk|jp|kr)$/);return r?r[1]:/[ᄀ-ᇿ㄰-㆏가-힯]/.test(t)?`kr`:/[぀-ヿ]/.test(t)?`jp`:/jhenghei|微軟正黑|新細明|細明|pmingliu|mingliu|dfkai|標楷|華康|cns11643|kaiti tc|ming\\s*liu/.test(n)||/新細明體|細明體|標楷體|微軟正黑體|華康/.test(t)?`tc`:/simsun|nsimsun|simhei|simkai|simfang|yahei|dengxian|fangsong|kaiti|youyuan|lisu|stsong|stkaiti|stfangsong|stheiti|stxihei|stzhongsong|songti sc|heiti sc|微软雅黑/.test(n)||/宋体|黑体|楷体|仿宋|等线|微软雅黑|隶书|幼圆/.test(t)?`sc`:/malgun|batang|gulim|dotum|gungsuh|nanum|new gulim|hancom|hy(gothic|graphic|namu)?/.test(n)?`kr`:/\\bmeiryo\\b|\\byu\\s*(gothic|mincho)\\b|yugothic|yumincho|hiragino|\\bms\\s*(gothic|mincho|pgothic|pmincho|ui\\s*gothic)\\b|\\bms[pg]?(gothic|mincho)\\b|ipa(ex)?(gothic|mincho)|noto\\s+(sans|serif)\\s+jp|游ゴシック|游明朝|MS|メイリオ|ヒラギノ/.test(n)||/游ゴシック|游明朝|MS ゴシック|MS 明朝|MS Pゴシック|メイリオ|ヒラギノ/.test(t)?`jp`:null}const d=e=>`https://fonts.googleapis.com/css2?family=${e}:wght@400;700&display=swap`,f={\"noto sans kr\":{url:d(`Noto+Sans+KR`)},\"noto sans sc\":{url:d(`Noto+Sans+SC`)},\"noto sans tc\":{url:d(`Noto+Sans+TC`)},\"noto sans hk\":{url:d(`Noto+Sans+HK`)},\"noto sans jp\":{url:d(`Noto+Sans+JP`)},\"noto serif kr\":{url:d(`Noto+Serif+KR`)},\"noto serif sc\":{url:d(`Noto+Serif+SC`)},\"noto serif tc\":{url:d(`Noto+Serif+TC`)},\"noto serif jp\":{url:d(`Noto+Serif+JP`)}},p=Object.fromEntries(Object.entries(c).map(([e,t])=>[e,{...f[t.toLowerCase()],loadFamily:t}])),ee={...f,...p,\"noto sans\":{url:d(`Noto+Sans`)},\"noto serif\":{url:d(`Noto+Serif`)},\"noto sans devanagari\":{url:d(`Noto+Sans+Devanagari`)},\"noto sans thai\":{url:d(`Noto+Sans+Thai`)},\"noto sans hebrew\":{url:d(`Noto+Sans+Hebrew`)},\"noto serif hebrew\":{url:d(`Noto+Serif+Hebrew`)}};function te(e){return/\\p{Script=Han}/u.test(e)}var ne=class e{hasHan=!1;hasHangul=!1;hasKana=!1;hasArabic=!1;hasThai=!1;hasHebrew=!1;hasDevanagari=!1;hasCyrGreek=!1;constructor(e){this.cjkLang=e}scriptCjkLanguage(){return this.hasHangul?`kr`:this.hasKana?`jp`:null}preferredCjkLanguage(){return this.scriptCjkLanguage()??this.cjkLang??`jp`}clone(){let t=new e(this.cjkLang);return t.hasHan=this.hasHan,t.hasHangul=this.hasHangul,t.hasKana=this.hasKana,t.hasArabic=this.hasArabic,t.hasThai=this.hasThai,t.hasHebrew=this.hasHebrew,t.hasDevanagari=this.hasDevanagari,t.hasCyrGreek=this.hasCyrGreek,t}addText(e){let t=()=>this.hasHan&&this.hasHangul&&this.hasKana&&this.hasArabic&&this.hasThai&&this.hasHebrew&&this.hasDevanagari&&this.hasCyrGreek;outer:for(let n of e)if(n)for(let e of n){let n=e.codePointAt(0);if(n!==void 0&&!(n<=591)&&(n>=4352&&n<=4607||n>=12592&&n<=12687||n>=44032&&n<=55215?this.hasHangul=!0:n>=12352&&n<=12543?this.hasKana=!0:te(e)?this.hasHan=!0:n>=1536&&n<=1791||n>=1872&&n<=1919||n>=2208&&n<=2303||n>=64336&&n<=65023||n>=65136&&n<=65279?this.hasArabic=!0:n>=3584&&n<=3711?this.hasThai=!0:n>=1424&&n<=1535||n>=64285&&n<=64335?this.hasHebrew=!0:n>=2304&&n<=2431?this.hasDevanagari=!0:(n>=1024&&n<=1279||n>=880&&n<=1023)&&(this.hasCyrGreek=!0),t()))break outer}}names(e=!1){let t=[],n=new Set;this.hasHangul&&n.add(`kr`),this.hasKana&&n.add(`jp`),this.hasHan&&(n.size===0||e)&&n.add(this.cjkLang??`jp`);for(let e of[`kr`,`sc`,`tc`,`hk`,`jp`])if(n.has(e)){let n={kr:`KR`,sc:`SC`,tc:`TC`,hk:`HK`,jp:`JP`}[e];t.push(`Noto Sans ${n}`),e!==`hk`&&t.push(`Noto Serif ${n}`)}return this.hasCyrGreek&&t.push(`Noto Sans`,`Noto Serif`),this.hasArabic&&t.push(`Noto Naskh Arabic`,`Noto Sans Arabic`),this.hasThai&&t.push(`Noto Sans Thai`),this.hasHebrew&&t.push(`Noto Sans Hebrew`,`Noto Serif Hebrew`),this.hasDevanagari&&t.push(`Noto Sans Devanagari`),t}};function re(e,t,n=!1){let r=new ne(t);return r.addText(e),r.names(n)}function ie(e){return e===`image-dimension`||e===`image-pixels`||e===`active-decoded-bytes`}function ae(e){return typeof e==`number`&&Number.isSafeInteger(e)&&e>=0}function oe(e){if(!(!e||typeof e!=`object`))try{let t=e,n=t.code,r=t.metric,i=t.limit,a=t.observed;return n!==`ooxml-decoded-image-limit`||!ie(r)||!ae(i)||!ae(a)||a<=i?void 0:{metric:r,limit:i,observed:a}}catch{return}}var se,ce,m,le=e((()=>{se=1<<25,ce=1<<27,se*4,ce*4,m=class e extends RangeError{code=`ooxml-decoded-image-limit`;constructor(t,n,r){super(`OOXML decoded image limit exceeded: ${t} ${r} > ${n}`),this.metric=t,this.limit=n,this.observed=r,this.name=`OoxmlDecodedImageLimitError`,Object.setPrototypeOf(this,e.prototype)}}}));function ue(e){if(!(typeof e!=`object`||!e))try{let t=e,n=t.code,r=t.message;return n===`ooxml-tiff-decode`&&typeof r==`string`?{message:r}:void 0}catch{return}}var h,de=e((()=>{h=class e extends Error{code=`ooxml-tiff-decode`;constructor(t,n){super(t,n),this.name=`TiffDecodeError`,Object.setPrototypeOf(this,e.prototype)}}}));function fe(e){if(!e.startsWith(`data:`))return null;let t=e.indexOf(`,`);if(t===-1)return null;let n=atob(e.slice(t+1)),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r.buffer}var pe=class{state=`uninitialized`;generationValue=0;readiness;poisonListeners=new Set;constructor(e,t,n){this.initialize=e,this.reinitialize=t,this.normalizeFailure=n}get generation(){return this.generationValue}get poisoned(){return this.state===`poisoned`}onPoison(e){return this.poisonListeners.add(e),()=>this.poisonListeners.delete(e)}async ensureReady(){if(this.state!==`ready`){if(!this.readiness){let e=this.state===`uninitialized`?this.initialize:this.reinitialize;this.readiness=Promise.resolve().then(e).then(()=>{this.generationValue+=1,this.state=`ready`,this.readiness=void 0},e=>{throw this.readiness=void 0,e})}await this.readiness}}run(e){try{return e()}catch(e){let t=this.normalizeFailure(e);throw t?(this.poison(t),t):e}}tryRunReady(e){if(this.state!==`ready`)return{current:!1};let t=this.generationValue,n=this.run(e);return this.state!==`ready`||t!==this.generationValue?{current:!1}:{current:!0,generation:t,value:n}}poison(e){this.state=`poisoned`,this.readiness=void 0;for(let t of this.poisonListeners)t(e)}assertCurrent(e){if(this.state!==`ready`||e!==this.generationValue)throw Error(`WASM archive session belongs to a discarded runtime generation`)}},me=class e extends Error{code=`parser-crashed`;constructor(t){super(t),this.name=`WasmTrapError`,Object.setPrototypeOf(this,e.prototype)}};function he(e){let t=globalThis.WebAssembly?.RuntimeError;return t&&e instanceof t||e instanceof RangeError?!0:e instanceof Error?e.name===`RuntimeError`||e.name===`CompileError`||e.name===`LinkError`||e.name===`InternalError`||e.name===`OOMError`:!1}function ge(e){try{if((typeof e!=`object`||!e)&&typeof e!=`function`)return;let t=Reflect.get(e,`__destroy_into_raw`);typeof t==`function`&&Reflect.apply(t,e,[])}catch{}}function _e(e,t){return e({module_or_path:t})}var ve=class{runtime;wasmInput=null;currentArchive=null;constructor(e,t={}){this.init=e,this.options=t,this.runtime=new pe(()=>this.invokeConfigured(this.init),()=>this.invokeConfigured(this.options.reinit??this.init),ye),this.runtime.onPoison(()=>this.dropPoisonedArchive())}setWasmInput(e){this.wasmInput=e,this.runtime.ensureReady().catch(()=>void 0)}setWasmUrl(e){this.setWasmInput(e)}get archive(){return this.currentArchive}setArchive(e){this.freeArchive(),this.currentArchive=e}disposeArchive(){this.freeArchive()}get poisoned(){return this.runtime.poisoned}async ensureReady(){await this.runtime.ensureReady()}run(e){return this.runtime.run(e)}poison(){this.runtime.poison(new me(`WASM parser was recycled`))}invokeConfigured(e){return this.wasmInput===null?Promise.reject(Error(`WasmParserHost: setWasmInput was never called`)):_e(e,this.wasmInput)}freeArchive(){this.currentArchive!==null&&this.options.freeArchive&&this.options.freeArchive(this.currentArchive),this.currentArchive=null}dropPoisonedArchive(){let e=this.currentArchive;this.currentArchive=null,ge(e)}};function ye(e){return he(e)?new me(`WASM parser trapped and was recycled: ${e instanceof Error?e.message:String(e)}`):null}function be(e){return typeof e==`number`&&Number.isSafeInteger(e)&&e>0}function xe(e){if(!e||typeof e!=`object`||Array.isArray(e))return!1;let t=e;return be(t.requiredBytes)&&be(t.offeredBytes)&&t.requiredBytes>t.offeredBytes}var g=class e extends RangeError{code=`ooxml-insufficient-credit`;requiredBytes;offeredBytes;constructor(t){super(`Pull unit requires ${t.requiredBytes} bytes but credit is ${t.offeredBytes}`),this.name=`PullSessionInsufficientCreditError`,this.requiredBytes=t.requiredBytes,this.offeredBytes=t.offeredBytes,Object.setPrototypeOf(this,e.prototype)}};function Se(e){if(e instanceof g)return e;let t=e instanceof Error?e.message:String(e);if(!t.startsWith(`OOXML_INSUFFICIENT_CREDIT:`))return;let n;try{n=JSON.parse(t.slice(26))}catch{return}if(!n||typeof n!=`object`||Array.isArray(n))return;let r=n;if(!(r.code!==`ooxml-insufficient-credit`||!xe(r)))return new g(r)}function Ce(e,t,n){let r=Se(e);if(!(!r||r.offeredBytes!==t||r.requiredBytes>n))return r}le(),de();const _=`OOXML_RESOURCE_LIMIT:`;function v(e){return typeof e==`number`&&Number.isSafeInteger(e)&&e>=0}function we(e){if(!e||typeof e!=`object`||Array.isArray(e))return!1;let t=e;return v(t.archiveEntryCount)&&v(t.declaredInflatedBytes)&&(t.largestInflatedEntryBytes===void 0||v(t.largestInflatedEntryBytes))&&v(t.distinctInflatedBytes)&&v(t.operationInflatedBytes)}function Te(e){let t;try{t=JSON.parse(new TextDecoder().decode(e))}catch{throw TypeError(`OOXML resource usage checkpoint is not valid JSON`)}if(!we(t))throw TypeError(`OOXML resource usage checkpoint is invalid`);return t}function Ee(e){return e===`docx`||e===`xlsx`||e===`pptx`}function De(e){return e===`container`||e===`decompression`||e===`parsing`||e===`serialization`||e===`layout`||e===`rendering`||e===`worker`}function y(e,t){return typeof e==`string`&&e.length>0&&e.length<=t&&!/[\\u0000-\\u001f\\u007f]/u.test(e)}function b(e){return y(e,128)&&/^[a-z0-9][a-z0-9-]*$/u.test(e)}function Oe(e){return!y(e,4096)||e.startsWith(`/`)||e.startsWith(`\\\\`)||e.includes(`\\\\`)||e.includes(`?`)||e.includes(`#`)||e.includes(`://`)||/^[a-z]:/iu.test(e)?!1:e.split(`/`).every(e=>e!==``&&e!==`.`&&e!==`..`)}const x=new Map([[`archive-entry:declared-inflated-bytes`,{stage:`container`,part:`required`}],[`archive-entry:actual-inflated-bytes`,{stage:`decompression`,part:`required`}],[`archive:entry-count`,{stage:`container`,part:`forbidden`}],[`archive:central-directory-bytes`,{stage:`container`,part:`forbidden`,configurable:!1}],[`archive:distinct-inflated-bytes`,{stage:`decompression`,part:`required`}],[`xml-event:bytes`,{stage:`parsing`,part:`optional`,configurable:!1}],[`xml-context:bytes`,{stage:`parsing`,part:`optional`,configurable:!1}],[`xml-tree:depth`,{stage:`parsing`,part:`optional`,configurable:!1}],[`worksheet-row:projected-bytes`,{stage:`parsing`,part:`optional`,configurable:!1}],[`worksheet-shell:projected-bytes`,{stage:`parsing`,part:`optional`,configurable:!1}]]),ke=new Set([...x.keys()].map(e=>e.slice(0,e.indexOf(`:`)))),Ae=new Set([...x.keys()].map(e=>e.slice(e.indexOf(`:`)+1)));function je(e){if(!e||typeof e!=`object`||Array.isArray(e))return!1;let t=e;return!Ee(t.format)||!y(t.operation,256)||!b(t.resource)||!b(t.metric)||!v(t.limit)||!v(t.observed)||typeof t.configurable!=`boolean`||!we(t.usage)?!1:!(`part`in t)||Oe(t.part)}function S(e){if(!e||typeof e!=`object`||Array.isArray(e))return!1;let t=e;if(!De(t.stage)||!je(t.violation))return!1;let n=t.violation,r=x.get(`${n.resource}:${n.metric}`);return r?t.stage!==r.stage||r.configurable===!1&&n.configurable!==!1?!1:r.part===`required`?n.part!==void 0:r.part===`forbidden`?n.part===void 0:!0:!(ke.has(n.resource)&&Ae.has(n.metric))}function Me(e){return{archiveEntryCount:e.archiveEntryCount,declaredInflatedBytes:e.declaredInflatedBytes,...e.largestInflatedEntryBytes===void 0?{}:{largestInflatedEntryBytes:e.largestInflatedEntryBytes},distinctInflatedBytes:e.distinctInflatedBytes,operationInflatedBytes:e.operationInflatedBytes}}function Ne(e){if(!S(e))return;let t=e.violation,n={stage:e.stage,violation:{format:t.format,operation:t.operation,resource:t.resource,metric:t.metric,...t.part===void 0?{}:{part:t.part},limit:t.limit,observed:t.observed,configurable:t.configurable,usage:Me(t.usage)}};return S(n)?n:void 0}function Pe(e){let t=e.violation;return`OOXML resource limit exceeded${t.part?` for ${t.part}`:``}: ${t.metric} ${t.observed} > ${t.limit}`}function Fe(e){let t=e instanceof Error?e.message:String(e);if(!t.startsWith(_))return;let r;try{r=JSON.parse(t.slice(21))}catch{return}if(!r||typeof r!=`object`)return;let i=r;if(!(i.code!==`ooxml-resource-limit`||!S(i.details)))return new n(Pe(i.details),i.details)}function Ie(e){let r=oe(e);if(r){let e=new m(r.metric,r.limit,r.observed);return{message:e.message,errorName:e.name,code:e.code,decodedImage:r}}let i=ue(e);if(i)return{message:i.message,errorName:`TiffDecodeError`,code:`ooxml-tiff-decode`};let a=Se(e);if(a)return{message:a.message,errorName:a.name,code:a.code,insufficientCredit:{requiredBytes:a.requiredBytes,offeredBytes:a.offeredBytes}};let o=e instanceof t||e instanceof n?e:Fe(e);if(o instanceof n){let e=Ne(o.details);return e?{message:typeof o.message==`string`?o.message:Pe(e),errorName:`OoxmlResourceLimitError`,code:`ooxml-resource-limit`,resourceLimit:e}:{message:`Invalid OOXML resource-limit error payload`,errorName:`Error`}}if(o instanceof t)return{message:typeof o.message==`string`?o.message:String(o.message),errorName:y(o.name,128)?o.name:`OoxmlError`,...b(o.code)?{code:o.code}:{}};let s=e instanceof Error?e.message:String(e);if(typeof s==`string`&&s.startsWith(_))return{message:`Invalid OOXML resource-limit payload`,errorName:`Error`};let c=e instanceof Error?e:Error(s),l=c;return{message:typeof c.message==`string`?c.message:String(c.message),errorName:y(c.name,128)?c.name:`Error`,...typeof l.code==`string`?{code:l.code}:{}}}function C(e){try{return Ie(e)}catch{return{message:`Worker operation failed with an unreadable error`,errorName:`Error`}}}const Le=new Set([`encrypted`,`invalid-password`,`unsupported-encryption`,`legacy-binary-format`,`not-ooxml`]),Re={\"image-dimension\":!0,\"image-pixels\":!0,\"active-decoded-bytes\":!0};function ze(e){return typeof e==`string`&&Object.prototype.hasOwnProperty.call(Re,e)}function Be(e,t){if(e!==`ooxml-decoded-image-limit`||!t||typeof t!=`object`)return;let n=t,r=n.metric,i=n.limit,a=n.observed;if(!(!ze(r)||!v(i)||!v(a)||a<=i))return{metric:r,limit:i,observed:a}}function Ve(e){let r=e.message,i=e.errorName,a=e.code,o=e.decodedImage,s=e.insufficientCredit,c=e.resourceLimit,l=typeof r==`string`?r:`Worker operation failed with an invalid error payload`,u=y(i,128)?i:void 0,d=typeof a==`string`?a:void 0,f=Be(d,o);if(f)return new m(f.metric,f.limit,f.observed);if(d===`ooxml-tiff-decode`)return new h(l);if(d===`ooxml-insufficient-credit`&&xe(s))return new g(s);if(d===`ooxml-resource-limit`&&S(c))return new n(l,c);if(d&&Le.has(d))return new t(d,l);let p=u===`TypeError`?TypeError(l):u===`RangeError`?RangeError(l):Error(l);return u&&(p.name=u),d!==void 0&&Object.assign(p,{code:d}),p}function He(e){try{return Ve(e)}catch{return Error(`Worker operation failed with an unreadable error payload`)}}function Ue(e){return e.byteOffset===0&&e.byteLength===e.buffer.byteLength&&e.buffer instanceof ArrayBuffer?e.buffer:e.slice().buffer}Object.freeze({maxArchiveEntryBytes:134217728,maxTotalInflatedBytes:268435456,maxArchiveEntries:4096});function We(e){return[e.maxArchiveEntryBytes===null?0n:BigInt(e.maxArchiveEntryBytes),e.maxTotalInflatedBytes===null?0n:BigInt(e.maxTotalInflatedBytes),e.maxArchiveEntries===null?0n:BigInt(e.maxArchiveEntries)]}const w=`ooxml-pull-v1`;function T(e,t){if(!Number.isSafeInteger(e)||e<=0)throw RangeError(`${t} must be a positive safe integer`)}function Ge(e){if(!(typeof e==`string`&&e.length>0||typeof e==`number`&&Number.isSafeInteger(e)&&e>0))throw RangeError(`session id must be a non-empty string or positive safe integer`)}var Ke=class{owner;queue=Promise.resolve();leases=new Map;retainedBytes=0;retainedCount=0;maxRetainedBytes;maxRetainedCount;cleanups=new Set;pendingFatalCleanups=[];poisonRunning=!1;fatal;constructor(e){this.maxRetainedBytes=e?.maxRetainedBytes??64*1024*1024,this.maxRetainedCount=e?.maxRetainedCount??256,T(this.maxRetainedBytes,`max retained lease bytes`),T(this.maxRetainedCount,`max retained lease count`)}enqueue(e){let t=this.queue.then(e,e);return this.queue=t.then(()=>void 0,()=>void 0),t}acquire(e){return this.owner===void 0?(this.owner=e,!0):this.owner===e}release(e){this.owner===e&&(this.owner=void 0)}retainLease(e,t,n){if(!Number.isSafeInteger(n)||n<0)throw RangeError(`retained lease bytes are invalid`);let r=this.leases.get(e)??new Map;if(r.has(t))throw Error(`driver returned a duplicate lease id`);if(this.retainedCount+1>this.maxRetainedCount)throw RangeError(`retained lease count exceeds limit`);if(this.retainedBytes+n>this.maxRetainedBytes)throw RangeError(`retained lease bytes exceed limit`);r.set(t,n),this.leases.set(e,r),this.retainedCount++,this.retainedBytes+=n}releaseLease(e,t){let n=this.leases.get(e),r=n?.get(t);r!==void 0&&(n?.delete(t),n?.size===0&&this.leases.delete(e),this.retainedCount--,this.retainedBytes-=r)}registerCleanup(e){return this.fatal?(this.poisonRunning?this.pendingFatalCleanups.push(e):this.enqueue(e).catch(()=>void 0),()=>void 0):(this.cleanups.add(e),()=>this.cleanups.delete(e))}get fatalError(){return this.fatal}get registeredHostCount(){return this.cleanups.size}async poison(e){if(this.fatal??=e,this.poisonRunning)return this.fatal;this.poisonRunning=!0,this.pendingFatalCleanups.push(...this.cleanups);try{let e;for(;(e=this.pendingFatalCleanups.shift())!==void 0;)await e().catch(()=>void 0)}finally{this.poisonRunning=!1}return this.fatal}},qe=class{options;coordinator;coordinatorOwner=Symbol(`pull-session-host`);unregisterCleanup;sequence=0;unacked;leases=new Map;activeDriverLeases=new Set;nextWireLeaseId;cancelRequested=!1;cancelComplete=!1;closeRequested=!1;closeComplete=!1;driverCancelComplete=!1;driverCloseComplete=!1;completed=!1;constructor(e){Ge(e.sessionId),T(e.operationId,`operation id`),T(e.generation,`generation`),T(e.maxByteCredit,`max byte credit`),e.wireLeaseIdStart!==void 0&&T(e.wireLeaseIdStart,`wire lease id start`),this.options=e,this.coordinator=e.coordinator,this.nextWireLeaseId=e.wireLeaseIdStart??1,this.unregisterCleanup=this.coordinator.registerCleanup(()=>this.forceFatalCleanup())}dispatch(e,t){return this.coordinator.enqueue(async()=>{let n=await this.execute(e);try{t(n.response,n.transfer)}catch(e){throw await this.rollbackFailedPost(n),e}})}async rollbackFailedPost(e){let t=e.response;if(t.kind===`chunk`){let n=t.leaseId===void 0?void 0:this.leases.get(t.leaseId);try{await this.options.driver.disposeInvalidChunk?.({payload:t.payload,byteLength:t.byteLength,done:t.done,leaseId:n?.driverLeaseId,retainedBytes:n?.retainedBytes,transfer:e.transfer})}catch{}}this.unacked=void 0,this.coordinator.release(this.coordinatorOwner);for(let[e,t]of[...this.leases])try{await this.options.driver.releaseLease?.(t.driverLeaseId)}catch{}finally{this.leases.delete(e),this.activeDriverLeases.delete(t.driverLeaseId),this.coordinator.releaseLease(this.coordinatorOwner,e)}if(this.cancelRequested=!0,!this.driverCancelComplete)try{await this.options.driver.cancel?.(),this.driverCancelComplete=!0}catch{}this.unregisterCleanup()}async execute(e){try{if(this.isStaleLifecycle(e)){let t=e.kind===`cancel`?`cancel`:`close`;return this.sameOperationIdentity(e)?{response:this.accepted(e,t,!0)}:{response:this.errorResponse(e,{message:`stale lifecycle targets another session or operation`,errorName:`PullSessionProtocolError`,code:`ooxml-stale-lifecycle`})}}this.validateCommandIdentity(e);let t=this.coordinator.fatalError;if(t)return e.kind===`pull`?{response:this.errorResponse(e,t)}:(e.kind===`cancel`?await this.cancel():e.kind===`close`?await this.close():e.kind===`release`&&await this.release(e.leaseId),{response:this.accepted(e,e.kind)});switch(e.kind){case`pull`:return await this.pull(e);case`ack`:return await this.ack(e.sequence),{response:this.accepted(e,`ack`)};case`release`:return await this.release(e.leaseId),{response:this.accepted(e,`release`)};case`cancel`:return await this.cancel(),{response:this.accepted(e,`cancel`)};case`close`:return await this.close(),{response:this.accepted(e,`close`)}}}catch(t){let n=C(t);return n.code===`ooxml-resource-limit`&&(n=await this.coordinator.poison(n)),{response:this.errorResponse(e,n)}}}async pull(e){if(this.closeRequested||this.cancelRequested||this.completed)throw Error(`pull session is closed`);if(this.unacked)throw Error(`previous chunk is not acknowledged`);if(!Number.isSafeInteger(e.sequence)||e.sequence<0||e.sequence!==this.sequence)throw Error(`pull command sequence mismatch`);if(this.validateHostCredit(e.byteCredit),!this.coordinator.acquire(this.coordinatorOwner))throw Error(`another operation has an unacknowledged package chunk`);let t;try{t=await this.options.driver.pull(e.byteCredit)}catch(e){throw this.coordinator.release(this.coordinatorOwner),e}let n=!1,r=!1,i,a;try{let o=this.options.driver.measureChunk(t),s=this.arrayBufferTransferBytes(t.transfer);if(o<s)throw RangeError(`measured chunk bytes are below ArrayBuffer transfer bytes`);if(a=Math.max(o,s),t.leaseId!==void 0){if(T(t.leaseId,`lease id`),t.retainedBytes===void 0)throw Error(`retained lease bytes are required`);if(this.activeDriverLeases.has(t.leaseId))throw r=!0,Error(`driver returned an active duplicate lease id`);i=this.allocateWireLeaseId(),this.coordinator.retainLease(this.coordinatorOwner,i,t.retainedBytes),this.leases.set(i,{driverLeaseId:t.leaseId,retainedBytes:t.retainedBytes}),this.activeDriverLeases.add(t.leaseId),n=!0}else if(t.retainedBytes!==void 0)throw Error(`retained lease bytes require a lease id`);if(!Number.isSafeInteger(a)||a<0)throw RangeError(`host chunk byte length must be a non-negative safe integer`);if(a>e.byteCredit)throw RangeError(`host chunk exceeds byte credit`)}catch(e){let a;try{await this.options.driver.disposeInvalidChunk?.(t)}catch(e){a=e}if(n&&i!==void 0)try{await this.release(i)}catch(e){a??=e}else if(t.leaseId!==void 0&&!r)try{await this.options.driver.releaseLease?.(t.leaseId)}catch(e){a??=e}if(r)try{await this.cancel()}catch(e){a??=e}throw this.coordinator.release(this.coordinatorOwner),a||e}return this.unacked={sequence:this.sequence,done:t.done},{response:{kind:`chunk`,protocol:w,...this.identity(),requestId:e.requestId,sequence:this.sequence,byteLength:a,done:t.done,payload:t.payload,leaseId:i,usage:this.resourceUsage()},transfer:t.transfer}}async ack(e){if(!Number.isSafeInteger(e)||e<0)throw RangeError(`invalid ack sequence`);if(e<this.sequence)return;if(!this.unacked||e!==this.sequence)throw Error(`ack sequence mismatch`);let t=this.unacked.done;await this.options.driver.acknowledge?.(e),this.unacked=void 0,this.coordinator.release(this.coordinatorOwner),this.sequence++,t&&(this.completed=!0,this.maybeUnregisterCompleted())}async release(e){T(e,`wire lease id`);let t=this.leases.get(e);t&&(await this.options.driver.releaseLease?.(t.driverLeaseId),this.leases.delete(e),this.activeDriverLeases.delete(t.driverLeaseId),this.coordinator.releaseLease(this.coordinatorOwner,e),this.maybeUnregisterCompleted())}async cancel(){if(this.cancelComplete)return;this.cancelRequested=!0,this.unacked=void 0,this.coordinator.release(this.coordinatorOwner);let e;try{await this.releaseAllLeases()}catch(t){e=t}if(!this.driverCancelComplete)try{await this.options.driver.cancel?.(),this.driverCancelComplete=!0}catch(t){e??=t}if(e)throw e;this.cancelComplete=!0,this.unregisterCleanup()}async close(){if(this.closeComplete)return;this.closeRequested=!0,this.unacked=void 0,this.coordinator.release(this.coordinatorOwner);let e;try{await this.releaseAllLeases()}catch(t){e=t}if(!this.driverCloseComplete)try{await this.options.driver.close?.(),this.driverCloseComplete=!0}catch(t){e??=t}if(e)throw e;this.closeComplete=!0,this.unregisterCleanup()}async releaseAllLeases(){let e;for(let t of[...this.leases.keys()])try{await this.release(t)}catch(t){e??=t}if(e)throw e}validateCommandIdentity(e){if(e.protocol!==`ooxml-pull-v1`||e.sessionId!==this.options.sessionId||e.operationId!==this.options.operationId||e.generation!==this.options.generation||!Number.isSafeInteger(e.requestId)||e.requestId<=0)throw Error(`stale or mismatched pull session command`)}validateHostCredit(e){if(T(e,`byte credit`),e>this.options.maxByteCredit)throw RangeError(`byte credit exceeds host maximum`)}accepted(e,t,n=!1){return{kind:`accepted`,protocol:w,...n?{sessionId:e.sessionId,operationId:e.operationId,generation:e.generation}:this.identity(),requestId:e.requestId,command:t,usage:this.resourceUsage()}}identity(){return{sessionId:this.options.sessionId,operationId:this.options.operationId,generation:this.options.generation}}isStaleLifecycle(e){return(e.kind===`cancel`||e.kind===`close`)&&e.protocol===`ooxml-pull-v1`&&Number.isSafeInteger(e.requestId)&&e.requestId>0&&Number.isSafeInteger(e.generation)&&e.generation>0&&e.generation<this.options.generation}sameOperationIdentity(e){return e.sessionId===this.options.sessionId&&e.operationId===this.options.operationId}errorResponse(e,t){return{kind:`error`,protocol:w,sessionId:e.sessionId,operationId:e.operationId,generation:e.generation,requestId:e.requestId,error:t,usage:this.errorResourceUsage()}}async forceFatalCleanup(){this.cancelRequested=!0,this.unacked=void 0,this.coordinator.release(this.coordinatorOwner);let e;for(let t of[...this.leases.keys()])try{await this.release(t)}catch(t){e??=t}if(!this.driverCancelComplete)try{await this.options.driver.cancel?.(),this.driverCancelComplete=!0}catch(t){e??=t}if(e)throw e;this.unregisterCleanup()}allocateWireLeaseId(){if(!Number.isSafeInteger(this.nextWireLeaseId)||this.nextWireLeaseId<=0)throw RangeError(`wire lease id space exhausted`);return this.nextWireLeaseId++}arrayBufferTransferBytes(e){let t=0;for(let n of e??[])if(n instanceof ArrayBuffer&&(t+=n.byteLength,!Number.isSafeInteger(t)))throw RangeError(`ArrayBuffer transfer bytes overflow`);return t}maybeUnregisterCompleted(){this.completed&&this.leases.size===0&&this.unregisterCleanup()}resourceUsage(){return this.options.driver.resourceUsage?.()}errorResourceUsage(){try{return this.resourceUsage()}catch{return}}};function E(e,t){if(!Number.isSafeInteger(e)||e<0)throw Error(`${t} must be a non-negative safe integer`)}function D(e,t,n){return E(e,`resource measurement`),E(t,`resource measurement`),E(n,`resource measurement limit`),e>n||t>n||t>n-e?n===2**53-1?n:n+1:e+t}function Je(e,t=2**53-1){E(t,`resource measurement limit`);let n=0;for(let r=0;r<e.length;r+=1){let i=e.charCodeAt(r),a;if(i<=127)a=1;else if(i<=2047)a=2;else if(i>=55296&&i<=56319&&r+1<e.length){let t=e.charCodeAt(r+1);t>=56320&&t<=57343?(a=4,r+=1):a=3}else a=3;if(n=D(n,a,t),n>t)return n}return n}function O(e,t=2**53-1){E(t,`resource measurement limit`);let n=D(0,2,t);if(n>t)return n;for(let r=0;r<e.length;r+=1){let i=e.charCodeAt(r),a;if(i===34||i===92||i===8||i===9||i===10||i===12||i===13)a=2;else if(i<=31)a=6;else if(i<=127)a=1;else if(i<=2047)a=2;else if(i>=55296&&i<=56319&&r+1<e.length){let t=e.charCodeAt(r+1);t>=56320&&t<=57343?(a=4,r+=1):a=6}else a=i>=55296&&i<=57343?6:3;if(n=D(n,a,t),n>t)return n}return n}function k(e,t){return D(0,e,t)}function A(e,t=2**53-1,n=!1){if(E(t,`resource measurement limit`),e===null)return{jsonBytes:k(4,t),stringValueUtf8Bytes:0};if(typeof e==`string`)return{jsonBytes:O(e,t),stringValueUtf8Bytes:Je(e,t)};if(typeof e==`boolean`)return{jsonBytes:k(e?4:5,t),stringValueUtf8Bytes:0};if(typeof e==`number`)return{jsonBytes:k((Number.isFinite(e)?String(Object.is(e,-0)?0:e):`null`).length,t),stringValueUtf8Bytes:0};if(typeof e==`bigint`)throw TypeError(`BigInt values cannot be serialized to JSON`);if(Array.isArray(e)){let n=k(2,t),r=0;for(let i=0;i<e.length;i+=1){i!==0&&(n=D(n,1,t));let a=A(e[i],t,!0);n=D(n,a.jsonBytes,t),r=D(r,a.stringValueUtf8Bytes,t)}return{jsonBytes:n,stringValueUtf8Bytes:r}}if(typeof e==`object`){let n=k(2,t),r=0,i=0;for(let[a,o]of Object.entries(e)){if(o===void 0||typeof o==`function`||typeof o==`symbol`)continue;i++!==0&&(n=D(n,1,t)),n=D(n,O(a,t),t),n=D(n,1,t);let e=A(o,t);n=D(n,e.jsonBytes,t),r=D(r,e.stringValueUtf8Bytes,t)}return{jsonBytes:n,stringValueUtf8Bytes:r}}return{jsonBytes:n?k(4,t):0,stringValueUtf8Bytes:0}}({...s,...ee});function*j(e){for(let t of e?.paragraphs??[])for(let e of t.runs)e.type===`text`&&(yield e.text)}function*Ye(e){for(let t of e?.paragraphs??[]){t.defFontFamily&&(yield t.defFontFamily);for(let e of t.runs)e.type===`text`&&(e.fontFamily&&(yield e.fontFamily),e.fontFamilyEa&&(yield e.fontFamilyEa),e.fontFamilySym&&(yield e.fontFamilySym))}}function*Xe(e){for(let t of e.elements)if(t.type===`shape`)yield*j(t.textBody);else if(t.type===`table`)for(let e of t.rows)for(let t of e.cells)yield*j(t.textBody);else if(t.type===`chart`){t.chart.title&&(yield t.chart.title);for(let e of t.chart.categories)yield e;for(let e of t.chart.series)e.name&&(yield e.name)}}var Ze=class e{scripts;families;constructor(e,t,n,r,i,a=new Set){this.majorFont=e,this.minorFont=t,this.fallback=i,this.scriptNames=a;let o=u(e)??u(t)??i??null;this.scripts=n??new ne(o),this.families=r??new Set,e&&this.families.add(e),t&&this.families.add(t)}addSlide(e){this.scripts.addText(Xe(e));for(let t of re(Xe(e),u(this.majorFont)??u(this.minorFont)??this.fallback??null))this.scriptNames.add(t);for(let t of e.elements)if(t.type===`shape`)for(let e of Ye(t.textBody))this.families.add(e);else if(t.type===`table`)for(let e of t.rows)for(let t of e.cells)for(let e of Ye(t.textBody))this.families.add(e)}names(){return[...new Set([...this.families,...this.scripts.names(),...this.scriptNames])]}withSlide(t){let n=new e(this.majorFont,this.minorFont,this.scripts.clone(),new Set(this.families),this.fallback,new Set(this.scriptNames));return n.addSlide(t),n}};const M=Object.freeze({archiveEntryCount:0,declaredInflatedBytes:0,distinctInflatedBytes:0,operationInflatedBytes:0}),Qe=67108864;function N(e,t){if(e!==null&&typeof e!=`string`)throw Error(`invalid PPTX presentation bootstrap ${t}`)}function $e(e,t){if(!e||typeof e!=`object`||Array.isArray(e))throw Error(`invalid PPTX presentation bootstrap slide at ${t}`);let n=e;if(n.index!==t)throw Error(`invalid PPTX presentation bootstrap slide index ${n.index}`);if(n.partName!==void 0&&typeof n.partName!=`string`)throw Error(`invalid PPTX presentation bootstrap slide partName at ${t}`);return Object.freeze({index:n.index,...n.partName===void 0?{}:{partName:n.partName}})}function et(e,t){if(!e||typeof e!=`object`||Array.isArray(e))throw Error(`invalid PPTX presentation bootstrap embedded font at ${t}`);let n=e;if(typeof n.fontName!=`string`||n.fontName.length===0||![`regular`,`bold`,`italic`,`boldItalic`].includes(n.style??``)||typeof n.partPath!=`string`||n.partPath.length===0||n.partPath.startsWith(`/`)||n.partPath.split(`/`).includes(`..`)||![`application/x-font-ttf`,`application/x-fontdata`].includes(n.contentType??``))throw Error(`invalid PPTX presentation bootstrap embedded font fields at ${t}`);return Object.freeze({fontName:n.fontName,style:n.style,partPath:n.partPath,contentType:n.contentType})}function tt(e){if(!e||typeof e!=`object`||Array.isArray(e))throw Error(`invalid PPTX presentation bootstrap payload`);let t=e;if(!Number.isSafeInteger(t.slideCount)||(t.slideCount??-1)<0||!Number.isSafeInteger(t.slideWidth)||(t.slideWidth??0)<=0||!Number.isSafeInteger(t.slideHeight)||(t.slideHeight??0)<=0||!Array.isArray(t.embeddedFonts)||!Array.isArray(t.slides)||t.slides.length!==t.slideCount)throw Error(`invalid PPTX presentation bootstrap dimensions or slide count`);return N(t.defaultTextColor,`defaultTextColor`),N(t.majorFont,`majorFont`),N(t.minorFont,`minorFont`),N(t.hlinkColor,`hlinkColor`),N(t.folHlinkColor,`folHlinkColor`),Object.freeze({slideCount:t.slideCount,slideWidth:t.slideWidth,slideHeight:t.slideHeight,defaultTextColor:t.defaultTextColor,majorFont:t.majorFont,minorFont:t.minorFont,hlinkColor:t.hlinkColor,folHlinkColor:t.folHlinkColor,embeddedFonts:Object.freeze(t.embeddedFonts.map(et)),slides:Object.freeze(t.slides.map($e))})}function nt(e){return Object.freeze({type:`media`,x:e.x,y:e.y,width:e.width,height:e.height,rotation:e.rotation,flipH:e.flipH,flipV:e.flipV,mediaKind:e.mediaKind,posterPath:e.posterPath,posterMimeType:e.posterMimeType,mediaPath:e.mediaPath,mimeType:e.mimeType})}function rt(e){return Object.freeze({...e.id===void 0?{}:{id:e.id},...e.authorId===void 0?{}:{authorId:e.authorId},...e.author===void 0?{}:{author:e.author},...e.date===void 0?{}:{date:e.date},...e.status===void 0?{}:{status:e.status},text:e.text})}function it(e){return Object.freeze({...e})}function at(e){return Object.freeze({...e.authorId===void 0?{}:{authorId:e.authorId},...e.modernAuthorId===void 0?{}:{modernAuthorId:e.modernAuthorId},...e.id===void 0?{}:{id:e.id},...e.index===void 0?{}:{index:e.index},...e.author===void 0?{}:{author:e.author},...e.date===void 0?{}:{date:e.date},...e.x===void 0?{}:{x:e.x},...e.y===void 0?{}:{y:e.y},...e.anchors?.length?{anchors:Object.freeze(e.anchors.map(it))}:{},...e.status===void 0?{}:{status:e.status},text:e.text,...e.replies?.length?{replies:Object.freeze(e.replies.map(rt))}:{}})}function ot(e,t){if(e.index!==t.index||e.partName!==t.partName)throw Error(`PPTX pulled slide identity does not match bootstrap index ${t.index}`);return Object.freeze({index:t.index,...t.partName===void 0?{}:{partName:t.partName},notes:e.notes??null,hidden:e.hidden??!1,mediaElements:Object.freeze(e.elements.filter(e=>e.type===`media`).map(nt)),...e.comments?.length?{comments:Object.freeze(e.comments.map(at))}:{}})}function st(e,t,r){if(!(e<=t))throw new n(`PPTX presentation preflight exceeded its hard limit of ${t} projected bytes`,{stage:`parsing`,violation:{format:`pptx`,operation:`presentation-preflight`,resource:`presentation-preflight`,metric:`projected-bytes`,limit:t,observed:Math.min(e,t+1),configurable:!1,usage:r}})}var ct=class{slideCountValue;slideWidthValue;slideHeightValue;defaultTextColorValue;majorFontValue;minorFontValue;hlinkColorValue;folHlinkColorValue;embeddedFontsValue;descriptors;slides=[];fonts;fontPreloadNames;fontProjectionBytes;projectionBytesValue;limit;pending=null;finished=null;constructor(e,t={}){let n=tt(e),r=t.hardLimitForTesting??Qe;if(!Number.isSafeInteger(r)||r<=0||r>Qe)throw Error(`invalid PPTX presentation preflight test limit`);this.limit=r,this.slideCountValue=n.slideCount,this.slideWidthValue=n.slideWidth,this.slideHeightValue=n.slideHeight,this.defaultTextColorValue=n.defaultTextColor,this.majorFontValue=n.majorFont,this.minorFontValue=n.minorFont,this.hlinkColorValue=n.hlinkColor,this.folHlinkColorValue=n.folHlinkColor,this.embeddedFontsValue=n.embeddedFonts,this.descriptors=[...n.slides],this.fonts=new Ze(this.majorFontValue,this.minorFontValue,void 0,void 0,t.cjkFallback),this.fontPreloadNames=Object.freeze(this.fonts.names()),this.fontProjectionBytes=A(this.fontPreloadNames,this.limit).jsonBytes,this.projectionBytesValue=A({slideCount:this.slideCountValue,slideWidth:this.slideWidthValue,slideHeight:this.slideHeightValue,defaultTextColor:this.defaultTextColorValue,majorFont:this.majorFontValue,minorFont:this.minorFontValue,hlinkColor:this.hlinkColorValue,folHlinkColor:this.folHlinkColorValue,embeddedFonts:this.embeddedFontsValue,remainingSlides:this.descriptors,slides:[],fontPreloadNames:this.fontPreloadNames},this.limit).jsonBytes,st(this.projectionBytesValue,this.limit,M)}get acceptedSlideCount(){return this.finished?.slideCount??this.slides.length}get projectedBytes(){return this.projectionBytesValue}get remainingDescriptorCount(){return this.descriptors.reduce((e,t)=>e+Number(t!==void 0),0)}get latestSlide(){return this.slides[this.slides.length-1]}get currentFontPreloadNames(){return this.fontPreloadNames}snapshot(){if(this.finished)return this.finished;if(this.pending)throw Error(`PPTX presentation preflight has an uncommitted slide`);return Object.freeze({slideCount:this.slideCountValue,slideWidth:this.slideWidthValue,slideHeight:this.slideHeightValue,defaultTextColor:this.defaultTextColorValue,majorFont:this.majorFontValue,minorFont:this.minorFontValue,hlinkColor:this.hlinkColorValue,folHlinkColor:this.folHlinkColorValue,embeddedFonts:this.embeddedFontsValue,slides:Object.freeze([...this.slides]),fontPreloadNames:this.fontPreloadNames})}addSlide(e,t=M){this.prepareSlide(e,t).commit()}prepareSlide(e,t=M){if(this.finished)throw Error(`PPTX presentation preflight is already finished`);if(this.pending)throw Error(`PPTX presentation preflight already has a prepared slide`);let n=this.slides.length,r=this.descriptors[n];if(!r)throw Error(`PPTX presentation preflight received an extra slide`);let i=ot(e,r),a=this.fonts.withSlide(e),o=Object.freeze(a.names()),s=A(o,this.limit).jsonBytes,c=A(i,this.limit).jsonBytes,l=this.projectionBytesValue-this.fontProjectionBytes-A(r,this.limit).jsonBytes+4;l=D(l,s,this.limit),l=D(l,c,this.limit),this.slides.length!==0&&(l=D(l,1,this.limit));let u=A({slide:i,fontPreloadNames:o},this.limit).jsonBytes,d=D(this.projectionBytesValue,u,this.limit);st(Math.max(d,l),this.limit,t);let f={state:`prepared`,fact:i,fonts:a,fontNames:o,fontBytes:s,committedBytes:l};return this.pending=f,{projectedBytes:d,commit:()=>{if(f.state!==`committed`){if(f.state===`rolled-back`)throw Error(`PPTX presentation preflight cannot commit a rolled-back slide`);if(this.pending!==f)throw Error(`PPTX presentation preflight prepared slide is stale`);this.descriptors[n]=void 0,this.slides.push(f.fact),this.fonts=f.fonts,this.fontPreloadNames=f.fontNames,this.fontProjectionBytes=f.fontBytes,this.projectionBytesValue=f.committedBytes,f.state=`committed`,this.pending=null}},rollback:()=>{if(f.state!==`rolled-back`){if(f.state===`committed`)throw Error(`PPTX presentation preflight cannot roll back a committed slide`);if(this.pending!==f)throw Error(`PPTX presentation preflight prepared slide is stale`);f.state=`rolled-back`,this.pending=null}}}}finish(){if(this.finished)return this.finished;if(this.pending)throw Error(`PPTX presentation preflight has an uncommitted slide`);if(this.slides.length!==this.slideCountValue)throw Error(`PPTX presentation preflight is incomplete: ${this.slides.length}/${this.slideCountValue} slides`);return this.finished=Object.freeze({slideCount:this.slideCountValue,slideWidth:this.slideWidthValue,slideHeight:this.slideHeightValue,defaultTextColor:this.defaultTextColorValue,majorFont:this.majorFontValue,minorFont:this.minorFontValue,hlinkColor:this.hlinkColorValue,folHlinkColor:this.folHlinkColorValue,embeddedFonts:this.embeddedFontsValue,slides:Object.freeze([...this.slides]),fontPreloadNames:this.fontPreloadNames}),this.descriptors=[],this.slides=[],this.projectionBytesValue=A(this.finished,this.limit).jsonBytes,this.finished}};function lt(e){try{return Te(e(e=>e.slide_cursor_resource_usage()))}catch(e){if(String(e).includes(`slide cursor usage is unavailable`))return;throw e}}function ut(e,t,n,r,i){let a,o;try{if(i){if(!r)throw Error(`slide payload is missing before acknowledgement`);let t=i(n,r,lt(e));typeof t==`function`?a=t:t&&({rollback:a,commit:o}=t)}e(e=>e.acknowledge_slide(t.operationId,t.generation)),o?.()}catch(e){try{a?.()}catch{}throw e}}var dt=class{coordinatorGeneration=new Ke;sessions=new Map;pendingOpens=new Map;operationTail=Promise.resolve();resourceFailure;lifecycleState=`ready`;resetBarrier;resetIdentities=new Map;constructor(e,t,n=e=>e(this.requireArchive())){this.archive=e,this.acceptSlide=t,this.executeArchive=n}get coordinator(){return this.coordinatorGeneration}reserveOpen(e){if(this.assertReady(),pt(e),this.pendingOpens.has(e.sessionId)||this.sessions.has(e.sessionId))throw Error(`slide pull session id is already reserved`);this.pendingOpens.set(e.sessionId,{identity:e,canceled:!1})}abandonOpen(e){this.pendingOpens.delete(e)}get pendingOpenCount(){return this.pendingOpens.size}async open(e,t){if(this.assertReady(),this.resourceFailure)throw this.resourceFailure;if(!Number.isSafeInteger(e)||e<0)throw RangeError(`slide index must be a non-negative safe integer`);let n=this.pendingOpens.get(t.sessionId);if(!n||!P(n.identity,t))throw Error(`slide pull session open reservation is stale or missing`);let i,a=new Promise(e=>{i=e}),o=this.operationTail.then(()=>this.coordinator.enqueue(async()=>{if(n.canceled)throw Error(`slide pull session open was canceled`);let a,o=!1,s=new qe({...t,maxByteCredit:r,coordinator:this.coordinator,driver:{pull:n=>{let i;try{i=this.executeArchive(r=>r.pull_slide(e,t.operationId,t.generation,n))}catch(e){throw Ce(e,n,r)||(this.latchResourceFailure(e),e)}let s=Ue(i);return this.acceptSlide&&(a=JSON.parse(new TextDecoder().decode(new Uint8Array(s)))),o=!0,{payload:s,byteLength:s.byteLength,done:!0,transfer:[s]}},measureChunk:({payload:e})=>e.byteLength,acknowledge:()=>{if(!o)throw Error(`slide unit is not awaiting acknowledgement`);try{ut(this.executeArchive,t,e,a,this.acceptSlide)}catch(e){throw this.latchResourceFailure(e),e}o=!1,a=void 0,this.sessions.delete(t.sessionId),i()},cancel:async()=>{try{this.archive()&&await this.executeArchive(e=>e.cancel_slide())}finally{a=void 0,o=!1,this.sessions.delete(t.sessionId),i()}},close:async()=>{try{this.archive()&&await this.executeArchive(e=>e.cancel_slide())}finally{a=void 0,o=!1,this.sessions.delete(t.sessionId),i()}},resourceUsage:()=>{try{return this.readResourceUsage()}catch(e){throw this.latchResourceFailure(e),e}}}});this.sessions.set(t.sessionId,{host:s,identity:t}),this.pendingOpens.delete(t.sessionId)}));this.operationTail=o.then(()=>a,()=>void 0);try{await o}catch(e){throw this.pendingOpens.delete(t.sessionId),i(),e}}async postOpenedSafely(e,t,n){if(this.lifecycleState!==`ready`){try{n(this.lifecycleError())}catch{}return}try{t()}catch(t){await this.closeIdentity(e);try{n(t)}catch{}}}dispatch(e,t){if(this.lifecycleState!==`ready`)return t(this.responseDuringReset(e)),Promise.resolve();let n=this.sessions.get(e.sessionId);if(n)return n.host.dispatch(e,t);let r=this.pendingOpens.get(e.sessionId);if(r&&(e.kind===`cancel`||e.kind===`close`)){let n=P(r.identity,e);return n&&(r.canceled=!0),t(n?{protocol:w,kind:`accepted`,sessionId:e.sessionId,operationId:e.operationId,generation:e.generation,requestId:e.requestId,command:e.kind}:this.staleLifecycleResponse(e)),Promise.resolve()}return e.kind===`cancel`||e.kind===`close`?(t({protocol:w,kind:`accepted`,sessionId:e.sessionId,operationId:e.operationId,generation:e.generation,requestId:e.requestId,command:e.kind}),Promise.resolve()):(t({protocol:w,kind:`error`,sessionId:e.sessionId,operationId:e.operationId,generation:e.generation,requestId:e.requestId,error:C(Error(`slide pull session is not open`))}),Promise.resolve())}async dispatchSafely(e,t){try{await this.dispatch(e,t)}catch(n){try{t({protocol:w,kind:`error`,sessionId:e.sessionId,operationId:e.operationId,generation:e.generation,requestId:e.requestId,error:C(n)})}catch{}}}run(e){if(this.lifecycleState!==`ready`)return Promise.reject(this.lifecycleError());let t=this.operationTail.then(()=>this.coordinator.enqueue(async()=>{if(this.resourceFailure)throw this.resourceFailure;return e()})).catch(e=>{throw this.latchResourceFailure(e),e});return this.operationTail=t.then(()=>void 0,()=>void 0),t}reset(){if(this.resetBarrier)return this.resetBarrier;this.lifecycleState=`resetting`,this.captureResetIdentities();let e=this.performReset().then(()=>{this.resetIdentities.clear(),this.lifecycleState=`ready`},e=>{throw this.lifecycleState=`reset-failed`,e}).finally(()=>{this.resetBarrier===e&&(this.resetBarrier=void 0)});return this.resetBarrier=e,e}async performReset(){for(let e of this.pendingOpens.values())e.canceled=!0;let e=1;for(let{host:t,identity:n}of[...this.sessions.values()]){let r;if(await t.dispatch({protocol:w,kind:`close`,...n,requestId:e++},e=>{e.kind===`error`&&(r=He(e.error))}),r)throw r}this.sessions.clear(),await this.operationTail,this.pendingOpens.clear(),this.archive()&&await this.executeArchive(e=>e.close_presentation_session()),this.coordinatorGeneration=new Ke,this.resourceFailure=void 0}assertReady(){if(this.lifecycleState!==`ready`)throw this.lifecycleError()}lifecycleError(){let e=this.lifecycleState===`reset-failed`,t=Error(e?`slide pull worker reset failed; retry reset before new work`:`slide pull worker reset is in progress`);return t.name=`PullSessionLifecycleError`,Object.assign(t,{code:e?`ooxml-pull-reset-failed`:`ooxml-pull-resetting`})}captureResetIdentities(){for(let{identity:e}of this.sessions.values())this.resetIdentities.set(e.sessionId,e);for(let{identity:e}of this.pendingOpens.values())this.resetIdentities.set(e.sessionId,e)}responseDuringReset(e){if(e.kind===`cancel`||e.kind===`close`){let t=this.resetIdentities.get(e.sessionId);return t&&!P(t,e)?this.staleLifecycleResponse(e):{protocol:w,kind:`accepted`,sessionId:e.sessionId,operationId:e.operationId,generation:e.generation,requestId:e.requestId,command:e.kind}}return{protocol:w,kind:`error`,sessionId:e.sessionId,operationId:e.operationId,generation:e.generation,requestId:e.requestId,error:C(this.lifecycleError())}}requireArchive(){let e=this.archive();if(!e)throw Error(`Presentation not loaded`);return e}async closeIdentity(e){if(this.lifecycleState!==`ready`)return;let t=this.sessions.get(e.sessionId);if(t){await t.host.dispatch({protocol:w,kind:`close`,...e,requestId:1},()=>void 0);return}let n=this.pendingOpens.get(e.sessionId);n&&P(n.identity,e)&&(n.canceled=!0)}readResourceUsage(){return lt(this.executeArchive)}latchResourceFailure(e){let t=e instanceof n?e:Fe(e);t&&(this.resourceFailure??=t)}staleLifecycleResponse(e){return{protocol:w,kind:`error`,sessionId:e.sessionId,operationId:e.operationId,generation:e.generation,requestId:e.requestId,error:{message:`stale lifecycle targets another slide operation`,errorName:`PullSessionProtocolError`,code:`ooxml-stale-lifecycle`}}}};function ft(e){return!!e&&typeof e==`object`&&e.protocol===`ooxml-pull-v1`}function pt(e){if(!Number.isSafeInteger(e.sessionId)||e.sessionId<=0)throw RangeError(`session id must be a positive safe integer`);if(!Number.isSafeInteger(e.operationId)||e.operationId<=0)throw RangeError(`operation id must be a positive safe integer`);if(!Number.isSafeInteger(e.generation)||e.generation<=0)throw RangeError(`generation must be a positive safe integer`)}function P(e,t){return e.sessionId===t.sessionId&&e.operationId===t.operationId&&e.generation===t.generation}var F=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ht.unregister(this),e}free(){let e=this.__destroy_into_raw();J.__wbg_pptxarchive_free(e,0)}acknowledge_slide(e,t){let n=J.pptxarchive_acknowledge_slide(this.__wbg_ptr,e,t);if(n[1])throw U(n[0])}assert_healthy(){let e=J.pptxarchive_assert_healthy(this.__wbg_ptr);if(e[1])throw U(e[0])}cancel_slide(){J.pptxarchive_cancel_slide(this.__wbg_ptr)}close_presentation_session(){J.pptxarchive_close_presentation_session(this.__wbg_ptr)}extract_font(e){let t=H(e,J.__wbindgen_malloc,J.__wbindgen_realloc),n=q,r=J.pptxarchive_extract_font(this.__wbg_ptr,t,n);if(r[3])throw U(r[2]);var i=I(r[0],r[1]).slice();return J.__wbindgen_free(r[0],r[1]*1,1),i}extract_image(e){let t=H(e,J.__wbindgen_malloc,J.__wbindgen_realloc),n=q,r=J.pptxarchive_extract_image(this.__wbg_ptr,t,n);if(r[3])throw U(r[2]);var i=I(r[0],r[1]).slice();return J.__wbindgen_free(r[0],r[1]*1,1),i}extract_media(e){let t=H(e,J.__wbindgen_malloc,J.__wbindgen_realloc),n=q,r=J.pptxarchive_extract_media(this.__wbg_ptr,t,n);if(r[3])throw U(r[2]);var i=I(r[0],r[1]).slice();return J.__wbindgen_free(r[0],r[1]*1,1),i}constructor(e,t,n,r){let i=_t(e,J.__wbindgen_malloc),a=q,o=J.pptxarchive_new(i,a,!V(t),V(t)?BigInt(0):t,!V(n),V(n)?BigInt(0):n,!V(r),V(r)?BigInt(0):r);if(o[2])throw U(o[1]);return this.__wbg_ptr=o[0]>>>0,ht.register(this,this.__wbg_ptr,this),this}parse(){let e=J.pptxarchive_parse(this.__wbg_ptr);if(e[3])throw U(e[2]);var t=I(e[0],e[1]).slice();return J.__wbindgen_free(e[0],e[1]*1,1),t}presentation_bootstrap(){let e=J.pptxarchive_presentation_bootstrap(this.__wbg_ptr);if(e[3])throw U(e[2]);var t=I(e[0],e[1]).slice();return J.__wbindgen_free(e[0],e[1]*1,1),t}pull_slide(e,t,n,r){let i=J.pptxarchive_pull_slide(this.__wbg_ptr,e,t,n,r);if(i[3])throw U(i[2]);var a=I(i[0],i[1]).slice();return J.__wbindgen_free(i[0],i[1]*1,1),a}resource_usage(){let e=J.pptxarchive_resource_usage(this.__wbg_ptr);if(e[3])throw U(e[2]);var t=I(e[0],e[1]).slice();return J.__wbindgen_free(e[0],e[1]*1,1),t}slide_cursor_resource_usage(){let e=J.pptxarchive_slide_cursor_resource_usage(this.__wbg_ptr);if(e[3])throw U(e[2]);var t=I(e[0],e[1]).slice();return J.__wbindgen_free(e[0],e[1]*1,1),t}to_markdown(){let e,t;try{let i=J.pptxarchive_to_markdown(this.__wbg_ptr);var n=i[0],r=i[1];if(i[3])throw n=0,r=0,U(i[2]);return e=n,t=r,R(n,r)}finally{J.__wbindgen_free(e,t,1)}}};Symbol.dispose&&(F.prototype[Symbol.dispose]=F.prototype.free);function mt(){return{__proto__:null,\"./pptx_parser_bg.js\":{__proto__:null,__wbg___wbindgen_throw_6b64449b9b9ed33c:function(e,t){throw Error(R(e,t))},__wbg_error_a6fa202b58aa1cd3:function(e,t){let n,r;try{n=e,r=t,console.error(R(e,t))}finally{J.__wbindgen_free(n,r,1)}},__wbg_new_227d7c05414eb861:function(){return Error()},__wbg_stack_3b0d974bbf31e44f:function(e,t){let n=t.stack,r=H(n,J.__wbindgen_malloc,J.__wbindgen_realloc),i=q;gt().setInt32(e+4,i,!0),gt().setInt32(e+0,r,!0)},__wbindgen_cast_0000000000000001:function(e,t){return R(e,t)},__wbindgen_init_externref_table:function(){let e=J.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)}}}}const ht=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>J.__wbg_pptxarchive_free(e>>>0,1));function I(e,t){return e>>>=0,B().subarray(e/1,e/1+t)}let L=null;function gt(){return(L===null||L.buffer.detached===!0||L.buffer.detached===void 0&&L.buffer!==J.memory.buffer)&&(L=new DataView(J.memory.buffer)),L}function R(e,t){return e>>>=0,vt(e,t)}let z=null;function B(){return(z===null||z.byteLength===0)&&(z=new Uint8Array(J.memory.buffer)),z}function V(e){return e==null}function _t(e,t){let n=t(e.length*1,1)>>>0;return B().set(e,n/1),q=e.length,n}function H(e,t,n){if(n===void 0){let n=K.encode(e),r=t(n.length,1)>>>0;return B().subarray(r,r+n.length).set(n),q=n.length,r}let r=e.length,i=t(r,1)>>>0,a=B(),o=0;for(;o<r;o++){let t=e.charCodeAt(o);if(t>127)break;a[i+o]=t}if(o!==r){o!==0&&(e=e.slice(o)),i=n(i,r,r=o+e.length*3,1)>>>0;let t=B().subarray(i+o,i+r),a=K.encodeInto(e,t);o+=a.written,i=n(i,r,o,1)>>>0}return q=o,i}function U(e){let t=J.__wbindgen_externrefs.get(e);return J.__externref_table_dealloc(e),t}let W=new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0});W.decode();let G=0;function vt(e,t){return G+=t,G>=2146435072&&(W=new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}),W.decode(),G=t),W.decode(B().subarray(e,e+t))}const K=new TextEncoder;`encodeInto`in K||(K.encodeInto=function(e,t){let n=K.encode(e);return t.set(n),{read:e.length,written:n.length}});let q=0,J;function yt(e,t){return J=e.exports,L=null,z=null,J.__wbindgen_start(),J}async function bt(e,t){if(typeof Response==`function`&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming==`function`)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.ok&&n(e.type)&&e.headers.get(`Content-Type`)!==`application/wasm`)console.warn(\"`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\\n\",t);else throw t}let r=await e.arrayBuffer();return await WebAssembly.instantiate(r,t)}else{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}function n(e){switch(e){case`basic`:case`cors`:case`default`:return!0}return!1}}async function xt(e){if(J!==void 0)return J;e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn(`using deprecated parameters for the initialization function; pass a single object instead`));let t=mt();(typeof e==`string`||typeof Request==`function`&&e instanceof Request||typeof URL==`function`&&e instanceof URL)&&(e=fetch(e));let{instance:n,module:r}=await bt(await e,t);return yt(n,r)}async function St(e){return J=void 0,L=null,z=null,xt(e)}const Y=new ve(xt,{freeArchive:e=>e.free(),reinit:St});let X=null,Z=`empty`;function Ct(){if(Z!==`empty`){let e=Error(`this PPTX worker already owns a presentation parse`);throw e.name=`PptxWorkerStateError`,Object.assign(e,{code:`ooxml-pptx-parse-already-started`})}Z=`opening`}const Q=new dt(()=>Y.archive,(e,t,n)=>{if(X){if(e!==X.acceptedSlideCount)throw Error(`PPTX preflight expected slide ${X.acceptedSlideCount}, received ${e}`);return X.prepareSlide(t,n)}},e=>{let t=Y.archive;if(!t)throw Error(`Presentation not loaded`);return Y.run(()=>e(t))}),$=(e,t)=>self.postMessage(e,t);self.onmessage=async e=>{let t=e.data;if(ft(t)){await Q.dispatchSafely(t,$);return}if(t.kind===`init`){Y.setWasmInput(fe(t.wasmUrl)??t.wasmUrl);return}let n=t.id,r=!1;try{if(t.kind===`openSlideSession`&&Q.reserveOpen(t),t.kind===`parse`&&(Ct(),r=!0),t.kind===`openSlideSession`){await Y.ensureReady(),await Q.open(t.slideIndex,t),await Q.postOpenedSafely(t,()=>$({kind:`slideSessionOpened`,id:n,sessionId:t.sessionId,operationId:t.operationId,generation:t.generation}),e=>$({kind:`error`,id:n,...C(e)}));return}t.kind===`parse`&&await Q.reset(),await Q.run(async()=>{if(await Y.ensureReady(),t.kind!==`parse`&&Y.archive){let e=Y.archive;Y.run(()=>e.assert_healthy())}if(t.kind===`parse`){X=null;let[e,r,i]=We(t.resourcePolicy),a=Y.run(()=>{let n=new F(new Uint8Array(t.buffer),e,r,i);return Y.setArchive(n),JSON.parse(new TextDecoder().decode(n.presentation_bootstrap()))});X=t.progressiveLayout?null:new ct(a,{cjkFallback:t.cjkFallback}),$({kind:`presentationOpened`,id:n,bootstrap:a}),Z=`ready`;return}let e=Y.archive;if(!e)throw Error(`No pptx loaded`);if(t.kind===`finishPresentationPreflight`){if(!X)throw Error(`PPTX presentation preflight is not active`);let e=X.finish();X=null,$({kind:`presentationPreflightReady`,id:n,preflight:e});return}if(t.kind===`extractMedia`){let r=Y.run(()=>e.extract_media(t.path).buffer);$({kind:`mediaExtracted`,id:n,bytes:r},[r]);return}if(t.kind===`extractImage`){let r=Y.run(()=>e.extract_image(t.path).buffer);$({kind:`imageExtracted`,id:n,bytes:r},[r]);return}if(t.kind===`extractFont`){let r=Y.run(()=>e.extract_font(t.path).buffer);$({kind:`fontExtracted`,id:n,bytes:r},[r]);return}if(t.kind===`resourceUsage`){$({kind:`resourceUsage`,id:n,usage:Te(Y.run(()=>e.resource_usage()))});return}t.kind===`toMarkdown`&&$({kind:`markdownRendered`,id:n,markdown:Y.run(()=>e.to_markdown())})})}catch(e){r&&(Z=`failed`),t.kind===`openSlideSession`&&Q.abandonOpen(t.sessionId);try{$({kind:`error`,id:n,...C(e)})}catch{}}};", Tt = typeof self < "u" && self.Blob && new Blob([wt], { type: "text/javascript;charset=utf-8" });
612
+ function Et(e) {
613
+ let t;
614
+ try {
615
+ if (t = Tt && (self.URL || self.webkitURL).createObjectURL(Tt), !t) throw "";
616
+ let n = new Worker(t, {
617
+ name: e?.name
618
+ });
619
+ return n.addEventListener("error", () => {
620
+ (self.URL || self.webkitURL).revokeObjectURL(t);
621
+ }), n;
622
+ } catch {
623
+ return new Worker("data:text/javascript;charset=utf-8," + encodeURIComponent(wt), {
624
+ name: e?.name
625
+ });
626
+ }
627
+ }
628
+ //#endregion
629
+ //#region packages/pptx/src/wasm/pptx_parser_bg.wasm?url
630
+ var Dt = new URL("pptx_parser_bg.wasm", "https://package.invalid/").href, G = 65536, Ot = 16384, kt = new Set(["line", "straightconnector1"]);
631
+ function At(e, t) {
632
+ let n = e.x + e.width / 2, r = e.y + e.height / 2, i = -e.rotation * Math.PI / 180, a = Math.cos(i), o = Math.sin(i), s = t.x - n, c = t.y - r, l = n + a * s - o * c, u = r + o * s + a * c;
633
+ return e.flipH && (l = 2 * n - l), e.flipV && (u = 2 * r - u), {
634
+ x: l,
635
+ y: u
636
+ };
637
+ }
638
+ function jt(e, t, n) {
639
+ let r = n.x - t.x, i = n.y - t.y, a = r * r + i * i;
640
+ if (a === 0) return Math.hypot(e.x - t.x, e.y - t.y);
641
+ let o = Math.max(0, Math.min(1, ((e.x - t.x) * r + (e.y - t.y) * i) / a));
642
+ return Math.hypot(e.x - (t.x + o * r), e.y - (t.y + o * i));
643
+ }
644
+ function Mt(e, t, n = 0) {
645
+ if (!Number.isFinite(t.x) || !Number.isFinite(t.y)) return !1;
646
+ let r = At(e, t), i = Number.isFinite(n) && n > 0 ? n : 0;
647
+ if (e.type === "shape" && (kt.has(e.geometry.toLowerCase()) || e.width === 0 || e.height === 0)) return jt(r, {
648
+ x: e.x,
649
+ y: e.y
650
+ }, {
651
+ x: e.x + e.width,
652
+ y: e.y + e.height
653
+ }) <= i;
654
+ let a = Math.min(e.x, e.x + e.width), o = Math.max(e.x, e.x + e.width), s = Math.min(e.y, e.y + e.height), c = Math.max(e.y, e.y + e.height);
655
+ return r.x >= a && r.x <= o && r.y >= s && r.y <= c;
656
+ }
657
+ function* Nt(e) {
658
+ if (e) for (let t of e.paragraphs) {
659
+ let e = !0;
660
+ for (let n of t.runs) {
661
+ let t = n.type === "text" ? n.text : n.type === "break" ? "\n" : "[equation]";
662
+ t && (yield {
663
+ text: t,
664
+ beginsPart: e
665
+ }, e = !1);
666
+ }
667
+ }
668
+ }
669
+ function* Pt(e) {
670
+ if (e.type === "shape") {
671
+ yield* Nt(e.textBody);
672
+ return;
673
+ }
674
+ if (e.type === "table") {
675
+ for (let t of e.rows) for (let e of t.cells) yield* Nt(e.textBody);
676
+ return;
677
+ }
678
+ }
679
+ function Ft(e, t) {
680
+ let n = Math.min(e.length, t);
681
+ if (n > 0 && n < e.length) {
682
+ let t = e.charCodeAt(n - 1), r = e.charCodeAt(n);
683
+ t >= 55296 && t <= 56319 && r >= 56320 && r <= 57343 && n--;
684
+ }
685
+ return e.slice(0, n);
686
+ }
687
+ function It(e, t = Ot) {
688
+ if (!Number.isFinite(t) || t < 0) throw RangeError("maxTextCharacters must be a finite non-negative number.");
689
+ let n = Math.min(G, Math.floor(t)), r = e.text, i = r === void 0 ? void 0 : Ft(r, n), a = r !== void 0 && i.length < r.length;
690
+ return {
691
+ ...structuredClone(e),
692
+ ...i === void 0 ? {} : { text: i },
693
+ truncated: e.truncated || a,
694
+ truncationReasons: e.truncated || a ? ["text"] : [],
695
+ textCharacters: i?.length ?? 0,
696
+ maxTextCharacters: n
697
+ };
698
+ }
699
+ function Lt(e, t) {
700
+ let n = [], r = 0, i = !1, a = !1;
701
+ for (let o of e) {
702
+ if (a = !0, o.beginsPart && n.length > 0) {
703
+ if (r >= t) {
704
+ i = !0;
705
+ break;
706
+ }
707
+ n.push("\n"), r++;
708
+ }
709
+ let e = Math.max(0, t - r), s = Ft(o.text, e);
710
+ if (n.push(s), r += s.length, s.length < o.text.length) {
711
+ i = !0;
712
+ break;
713
+ }
714
+ }
715
+ return a ? {
716
+ text: n.join(""),
717
+ truncated: i,
718
+ textCharacters: r
719
+ } : {
720
+ truncated: !1,
721
+ textCharacters: 0
722
+ };
723
+ }
724
+ function Rt(e, t, n, r = {}) {
725
+ if (!Number.isFinite(n.x) || !Number.isFinite(n.y)) throw RangeError("PPTX hit-test point must contain finite coordinates.");
726
+ let i = r.maxTextCharacters ?? Ot;
727
+ if (!Number.isFinite(i) || i < 0) throw RangeError("maxTextCharacters must be a finite non-negative number.");
728
+ let a = Math.min(G, Math.floor(i)), o = r.tolerance ?? 0;
729
+ if (!Number.isFinite(o) || o < 0) throw RangeError("tolerance must be a finite non-negative number.");
730
+ for (let r = t.elements.length - 1; r >= 0; r--) {
731
+ let i = t.elements[r];
732
+ if (!Mt(i, n, o)) continue;
733
+ let s = i.type === "chart" ? te(i.chart, a) : Lt(Pt(i), a);
734
+ return {
735
+ format: "pptx",
736
+ kind: "element",
737
+ slideIndex: e,
738
+ elementIndex: r,
739
+ origin: t.elementSources?.[r]?.origin ?? "unknown",
740
+ elementType: i.type,
741
+ point: { ...n },
742
+ bounds: {
743
+ x: i.x,
744
+ y: i.y,
745
+ width: i.width,
746
+ height: i.height,
747
+ rotation: i.rotation,
748
+ flipH: i.flipH,
749
+ flipV: i.flipV
750
+ },
751
+ ...i.type === "shape" ? {
752
+ ...i.id === void 0 ? {} : { shapeId: i.id },
753
+ ...i.name === void 0 ? {} : { name: i.name },
754
+ geometry: i.geometry
755
+ } : {},
756
+ ...s.text === void 0 ? {} : { text: s.text },
757
+ ...i.type === "picture" ? { mimeType: i.mimeType } : {},
758
+ ...i.type === "media" ? {
759
+ mimeType: i.mimeType,
760
+ mediaKind: i.mediaKind
761
+ } : {},
762
+ ...i.type === "table" ? {
763
+ rowCount: i.rows.length,
764
+ columnCount: i.cols.length
765
+ } : {},
766
+ ...i.type === "chart" ? { seriesCount: i.chart.series.length } : {},
767
+ truncated: s.truncated,
768
+ truncationReasons: s.truncated ? ["text"] : [],
769
+ textCharacters: s.textCharacters,
770
+ maxTextCharacters: a
771
+ };
772
+ }
773
+ return null;
774
+ }
775
+ function zt(e, t) {
776
+ let n = new Set(t.filter((e) => e.length > 0));
777
+ if (n.size === 0) return Object.freeze([]);
778
+ let r = /* @__PURE__ */ new Map();
779
+ for (let [t, i] of e.elements.entries()) {
780
+ let a = i.id;
781
+ if (!a || !n.has(a)) continue;
782
+ let o = e.elementSources?.[t]?.origin ?? "unknown", s = o === "slide" ? 3 : o === "layout" ? 2 : +(o === "master"), c = r.get(a), l = c?.origin === "slide" ? 3 : c?.origin === "layout" ? 2 : +(c?.origin === "master");
783
+ c && l > s || r.set(a, Object.freeze({
784
+ elementId: a,
785
+ elementIndex: t,
786
+ origin: o,
787
+ elementType: i.type,
788
+ bounds: Object.freeze({
789
+ x: i.x,
790
+ y: i.y,
791
+ width: i.width,
792
+ height: i.height,
793
+ rotation: i.rotation,
794
+ flipH: i.flipH,
795
+ flipV: i.flipV
796
+ })
797
+ }));
798
+ }
799
+ return Object.freeze(t.flatMap((e) => {
800
+ let t = r.get(e);
801
+ return t ? [t] : [];
802
+ }));
803
+ }
804
+ //#endregion
805
+ //#region packages/pptx/src/presentation-layout-events.ts
806
+ var K = /* @__PURE__ */ new WeakMap();
807
+ function q(e, t) {
808
+ let n = Object.freeze({ ...t });
809
+ for (let t of [...K.get(e) ?? []]) try {
810
+ t.notify(n);
811
+ } catch (e) {
812
+ try {
813
+ t.report(e);
814
+ } catch {}
815
+ }
816
+ }
817
+ function Bt(e, t, n, r) {
818
+ let i = K.get(e);
819
+ i || (i = /* @__PURE__ */ new Set(), K.set(e, i));
820
+ let a = Object.freeze({
821
+ notify: n,
822
+ report: r
823
+ });
824
+ i.add(a);
825
+ try {
826
+ n(Object.freeze({ ...t() }));
827
+ } catch (e) {
828
+ try {
829
+ r(e);
830
+ } catch {}
831
+ }
832
+ return () => {
833
+ i?.delete(a), i?.size === 0 && K.delete(e);
834
+ };
835
+ }
836
+ //#endregion
837
+ //#region packages/pptx/src/worker-task-scheduler.ts
838
+ function Vt() {
839
+ return new Promise((e) => {
840
+ let t = new MessageChannel();
841
+ t.port1.onmessage = () => {
842
+ t.port1.close(), t.port2.close(), e();
843
+ }, t.port2.postMessage(void 0);
844
+ });
845
+ }
846
+ //#endregion
847
+ //#region packages/pptx/src/presentation.ts
848
+ function Ht() {
849
+ let e, t;
850
+ return {
851
+ promise: new Promise((n, r) => {
852
+ e = n, t = r;
853
+ }),
854
+ resolve: e,
855
+ reject: t
856
+ };
857
+ }
858
+ var J = class e {
859
+ _cjkFallback = "jp";
860
+ _metrics = null;
861
+ _worker;
862
+ _bridge;
863
+ _mode = "main";
864
+ _bootstrap = null;
865
+ _preflight = null;
866
+ _availableSlideCount = 0;
867
+ _layoutLifecycle = new ye();
868
+ _layoutObservers = new xe();
869
+ _layoutCompletion = null;
870
+ _parseRequestId = null;
871
+ _progressive = null;
872
+ _progressiveWatchdog;
873
+ _progressiveWatchdogMs;
874
+ _layoutWaiters = /* @__PURE__ */ new Set();
875
+ _slides = null;
876
+ _slidePullClient = null;
877
+ _resourceFailure = null;
878
+ _slidePartIndex = null;
879
+ _rawParts = new He({
880
+ maxEntries: 64,
881
+ maxBytes: n
882
+ });
883
+ _googleFontFaces = [];
884
+ _embeddedFontFaces = [];
885
+ _embeddedFontAliases = /* @__PURE__ */ new Map();
886
+ _embeddedFontAuthoredFamilies = /* @__PURE__ */ new Map();
887
+ _destroyed = !1;
888
+ _fetchImage = (e, t) => this.getImage(e, t);
889
+ _fetchMedia = (e) => this.getMedia(e);
890
+ _math;
891
+ _threeD;
892
+ _regionMap;
893
+ _chartEx;
894
+ _tiff;
895
+ constructor(e, t, n) {
896
+ this._worker = e, this._mode = t, this._bridge = new pe(this._worker, {
897
+ correlate: (e) => "protocol" in e && e.protocol === "ooxml-pull-v1" ? e.requestId : "id" in e ? e.id : void 0,
898
+ toError: (e) => !("protocol" in e) && e.kind === "error" ? a(e) : void 0,
899
+ onUnsolicited: (e) => this._onWorkerLayoutPush(e)
900
+ });
901
+ let r = new URL(n ?? Dt, location.href).href;
902
+ this._bridge.post({
903
+ kind: "init",
904
+ wasmUrl: r
905
+ });
906
+ }
907
+ _assertResourceHealthy() {
908
+ if (this._resourceFailure) throw this._resourceFailure;
909
+ }
910
+ _rethrowWithResourceFailure(e) {
911
+ let t = e instanceof m ? e : o(e);
912
+ throw t ? (this._resourceFailure ??= t, this._resourceFailure) : e;
913
+ }
914
+ static async load(t, n = {}) {
915
+ let i = Ce(n.cjkFallback), a = h(n), o = n.mode ?? "main", s = new r({
916
+ enabled: !0,
917
+ format: "pptx",
918
+ mode: o,
919
+ policy: a.policy,
920
+ onMetrics: a.onResourceMetrics,
921
+ emitToConsole: a.debug
922
+ });
923
+ try {
924
+ if (o === "worker" && (typeof Worker > "u" || typeof OffscreenCanvas > "u")) throw Error("mode: 'worker' requires Worker and OffscreenCanvas support");
925
+ let r;
926
+ if (typeof t == "string") {
927
+ let e = await fetch(t);
928
+ if (!e.ok) throw Error(`Failed to fetch: ${e.status} ${e.statusText}`);
929
+ r = await e.arrayBuffer();
930
+ } else r = t;
931
+ r = y(await v(r, n.password)), s.setSourceBytes(r.byteLength), s.checkpoint("container ready");
932
+ let c = o === "worker" ? (await import("ooxml/render-worker-host-D4123J27.js")).createRenderWorker() : new Et(), l = o === "worker" ? Re(n) : void 0, u;
933
+ try {
934
+ u = new e(c, o, n.wasmUrl), u._metrics = s, n.math && o === "worker" && !l?.math && console.warn("[ooxml] a custom math renderer cannot cross the worker boundary; equations will be skipped in mode: 'worker'. Use the math renderer from @silurus/ooxml/math."), n.threeD && o === "worker" && !l?.threeD && console.warn("[ooxml] a custom 3-D chart renderer cannot cross the worker boundary; charts use their 2-D family fallback in mode: 'worker'. Use the renderer from @silurus/ooxml/three-d."), u._cjkFallback = i, u._math = o === "worker" ? void 0 : n.math, u._threeD = o === "worker" ? void 0 : n.threeD, n.regionMap && o === "worker" && !l?.regionMap && console.warn("[ooxml] a custom Region Map renderer cannot cross the worker boundary; geospatial charts use the unsupported-chart placeholder in mode: 'worker'. Use the renderer from @silurus/ooxml/region-map."), u._regionMap = o === "worker" ? void 0 : n.regionMap, n.chartEx && o === "worker" && !l?.chartEx && console.warn("[ooxml] a custom ChartEx renderer cannot cross the worker boundary; ChartEx charts use the unsupported-chart placeholder in mode: 'worker'. Use the renderer from @silurus/ooxml/chart-ex."), u._chartEx = o === "worker" ? void 0 : n.chartEx, n.tiff && o === "worker" && !l?.tiff && console.warn("[ooxml] a custom TIFF codec cannot cross the worker boundary; recognized TIFF images will use an unavailable-image placeholder in mode: 'worker'. Use the codec from @silurus/ooxml/tiff to display them."), u._tiff = o === "worker" ? void 0 : n.tiff;
935
+ let t = n.progressiveLayout ? {
936
+ onProgress: n.onLayoutProgress,
937
+ onPartial: n.onLayoutPartial,
938
+ onComplete: n.onLayoutComplete,
939
+ firstPublication: Ht(),
940
+ published: !1,
941
+ deferred: !1,
942
+ settled: !1
943
+ } : void 0;
944
+ return await u._parse(r, a.policy, !!n.useGoogleFonts, n.workerTimeoutMs, (e) => s.observeUsage(e), l, t), s.checkpoint("presentation preflight ready"), o === "main" && n.useGoogleFonts && u._preflight && !t && (u._googleFontFaces = await _(Ct(u._preflight.fontPreloadNames, u._embeddedFontAliases), Ae)), s.succeed({ slides: u.slideCount }), u;
945
+ } catch (e) {
946
+ let t = u;
947
+ throw g(c, t ? () => t.destroy() : void 0), e;
948
+ }
949
+ } catch (e) {
950
+ throw s.fail(e), e;
951
+ }
952
+ }
953
+ async _parse(e, t, n = !1, r, i, a, o) {
954
+ if (o) {
955
+ this._progressive = o, this._mode === "worker" ? await this._parseWorkerProgressively(e, t, n, r, i, a, o) : await this._parseMainProgressively(e, t, n, r, i, o);
956
+ return;
957
+ }
958
+ let c = await this._bridge.request((r) => this._mode === "worker" ? {
959
+ kind: "parse",
960
+ id: r,
961
+ buffer: e,
962
+ resourcePolicy: t,
963
+ useGoogleFonts: n,
964
+ cjkFallback: this._cjkFallback,
965
+ renderers: a
966
+ } : {
967
+ kind: "parse",
968
+ id: r,
969
+ buffer: e,
970
+ resourcePolicy: t,
971
+ cjkFallback: this._cjkFallback
972
+ }, [e], { timeoutMs: r });
973
+ if (this._mode === "worker") {
974
+ let e = c;
975
+ e.usage && i?.(e.usage), this._preflight = M(c.preflight), this._bootstrap = this._preflight, this._availableSlideCount = this._preflight.slideCount;
976
+ return;
977
+ }
978
+ let l = A(c.bootstrap);
979
+ this._bootstrap = l;
980
+ let u = St(l.embeddedFonts, (e) => this.getFontBytes(e)).then((e) => {
981
+ this._destroyed ? O(e.faces) : (this._embeddedFontFaces = e.faces, this._embeddedFontAliases = e.aliases, this._embeddedFontAuthoredFamilies = e.authoredFamilies);
982
+ });
983
+ this._slidePullClient = new Ie({
984
+ slideCount: l.slideCount,
985
+ transport: this._bridge.transport(Ne),
986
+ open: async (e, t, n) => {
987
+ await this._bridge.request((n) => ({
988
+ kind: "openSlideSession",
989
+ id: n,
990
+ slideIndex: e,
991
+ ...t
992
+ }), void 0, { timeoutMs: n });
993
+ },
994
+ onUsage: i
995
+ });
996
+ let d;
997
+ try {
998
+ for (let e = 0; e < l.slideCount; e += 1) await this._slidePullClient.load(e, !1, r);
999
+ d = await this._bridge.request((e) => ({
1000
+ kind: "finishPresentationPreflight",
1001
+ id: e
1002
+ }), void 0, { timeoutMs: r }), await u;
1003
+ } catch (e) {
1004
+ throw u.catch(() => void 0), e;
1005
+ }
1006
+ this._preflight = M(d.preflight), this._availableSlideCount = this._preflight.slideCount, this._slides = new yt({
1007
+ slideCount: this._preflight.slideCount,
1008
+ maxCachedSlides: 8,
1009
+ maxCachedStructuralBytes: s,
1010
+ loadSlide: async (e) => {
1011
+ let t = await this._slidePullClient?.load(e, !0, r);
1012
+ if (!t) throw Error("PPTX slide pull client is unavailable");
1013
+ return t;
1014
+ }
1015
+ });
1016
+ }
1017
+ async _parseMainProgressively(e, t, n, r, i, a) {
1018
+ let o = A((await this._bridge.request((n) => ({
1019
+ kind: "parse",
1020
+ id: n,
1021
+ buffer: e,
1022
+ resourcePolicy: t,
1023
+ cjkFallback: this._cjkFallback,
1024
+ progressiveLayout: !0
1025
+ }), [e], { timeoutMs: r })).bootstrap);
1026
+ this._bootstrap = o;
1027
+ let c = St(o.embeddedFonts, (e) => this.getFontBytes(e)).then((e) => {
1028
+ this._destroyed ? O(e.faces) : (this._embeddedFontFaces = e.faces, this._embeddedFontAliases = e.aliases, this._embeddedFontAuthoredFamilies = e.authoredFamilies);
1029
+ });
1030
+ this._slidePullClient = this._createSlidePullClient(o.slideCount, r, i), this._slides = new yt({
1031
+ slideCount: o.slideCount,
1032
+ maxCachedSlides: 8,
1033
+ maxCachedStructuralBytes: s,
1034
+ loadSlide: async (e) => {
1035
+ let t = await this._slidePullClient?.load(e, !0, r);
1036
+ if (!t) throw Error("PPTX slide pull client is unavailable");
1037
+ return t;
1038
+ }
1039
+ });
1040
+ let l = new Pe(o, { cjkFallback: this._cjkFallback }), u = /* @__PURE__ */ new Set(), d = async () => {
1041
+ if (await c, !n) return;
1042
+ let e = Ct(l.currentFontPreloadNames, this._embeddedFontAliases).filter((e) => !!e && !u.has(e));
1043
+ if (e.length !== 0) {
1044
+ for (let t of e) u.add(t);
1045
+ this._googleFontFaces.push(...await _(e, Ae));
1046
+ }
1047
+ };
1048
+ this._layoutCompletion = (async () => {
1049
+ for (let e = 0; e < o.slideCount; e += 1) await this._slides.withSlide(e, (e) => {
1050
+ l.addSlide(e);
1051
+ }), await d(), this._applyProgressivePrefix(l.snapshot(), a), e === 0 && a.deferred && await Vt();
1052
+ await c, this._finishProgressiveLayout(l.finish(), a);
1053
+ })().then(() => void 0, (e) => this._failProgressiveLayout(e, a)), await a.firstPublication.promise;
1054
+ }
1055
+ async _parseWorkerProgressively(e, t, n, r, i, a, o) {
1056
+ this._progressiveWatchdogMs = r;
1057
+ let s = this._bridge.request((r) => (this._parseRequestId = r, {
1058
+ kind: "parse",
1059
+ id: r,
1060
+ buffer: e,
1061
+ resourcePolicy: t,
1062
+ useGoogleFonts: n,
1063
+ cjkFallback: this._cjkFallback,
1064
+ renderers: a,
1065
+ progressiveLayout: !0
1066
+ }), [e], { timeoutMs: !1 });
1067
+ this._rearmProgressiveWatchdog(), this._layoutCompletion = s.then((e) => {
1068
+ this._parseRequestId = null;
1069
+ let t = e;
1070
+ t.usage && i?.(t.usage), this._finishProgressiveLayout(M(t.preflight), o);
1071
+ }, (e) => {
1072
+ this._parseRequestId = null, this._failProgressiveLayout(e, o);
1073
+ }), await o.firstPublication.promise;
1074
+ }
1075
+ _createSlidePullClient(e, t, n) {
1076
+ return new Ie({
1077
+ slideCount: e,
1078
+ transport: this._bridge.transport(Ne),
1079
+ open: async (e, n, r) => {
1080
+ await this._bridge.request((t) => ({
1081
+ kind: "openSlideSession",
1082
+ id: t,
1083
+ slideIndex: e,
1084
+ ...n
1085
+ }), void 0, { timeoutMs: r ?? t });
1086
+ },
1087
+ onUsage: n
1088
+ });
1089
+ }
1090
+ _onWorkerLayoutPush(e) {
1091
+ if (!x((e, t) => this._worker.postMessage(e, t), e) && !(!("kind" in e) || e.kind !== "presentationLayoutPartial" || e.forId !== this._parseRequestId || !this._progressive)) try {
1092
+ this._rearmProgressiveWatchdog(), e.usage && this._metrics?.observeUsage(e.usage), e.bootstrap && (this._bootstrap = A(e.bootstrap));
1093
+ let t = this._bootstrap;
1094
+ if (!t) throw Error("PPTX progressive worker published before bootstrap");
1095
+ let n = this._preflight?.slides ?? [];
1096
+ if (e.availableSlides !== n.length + 1 || e.slide.index !== n.length) throw Error("PPTX progressive worker published a non-sequential slide");
1097
+ this._applyProgressivePrefix(Fe({
1098
+ ...t,
1099
+ slides: [...n, e.slide],
1100
+ fontPreloadNames: e.fontPreloadNames
1101
+ }), this._progressive), Vt().then(() => {
1102
+ this._destroyed || this._parseRequestId !== e.forId || this._bridge.post({
1103
+ kind: "continuePresentationPreflight",
1104
+ forId: e.forId,
1105
+ availableSlides: e.availableSlides
1106
+ });
1107
+ }).catch((t) => {
1108
+ this._destroyed || this._parseRequestId !== e.forId || !this._progressive || (this._failProgressiveLayout(t, this._progressive), this._bridge.terminate());
1109
+ });
1110
+ } catch (e) {
1111
+ this._failProgressiveLayout(e, this._progressive), this._bridge.terminate();
1112
+ }
1113
+ }
1114
+ _applyProgressivePrefix(e, t) {
1115
+ if (!(t.settled || this._destroyed)) {
1116
+ if (this._preflight = e, this._availableSlideCount = e.slides.length, !t.published && e.slides.length === e.slideCount) {
1117
+ t.published = !0, t.deferred = !1;
1118
+ return;
1119
+ }
1120
+ if (this._layoutLifecycle.begin(), this._wakeLayoutWaiters(), this._layoutObservers.notify("onLayoutProgress", t.onProgress, { committedUnits: this._availableSlideCount }), q(this, {
1121
+ availableSlides: this._availableSlideCount,
1122
+ slideCount: this.slideCount,
1123
+ exact: !1,
1124
+ complete: !1
1125
+ }), !t.published) {
1126
+ t.published = !0, t.deferred = e.slides.length < e.slideCount, t.firstPublication.resolve();
1127
+ return;
1128
+ }
1129
+ this._layoutObservers.notify("onLayoutPartial", t.onPartial, {
1130
+ availableUnits: this._availableSlideCount,
1131
+ totalUnits: this.slideCount,
1132
+ exact: !1
1133
+ });
1134
+ }
1135
+ }
1136
+ _finishProgressiveLayout(e, t) {
1137
+ t.settled || this._destroyed || (t.settled = !0, this._clearProgressiveWatchdog(), this._preflight = e, this._bootstrap ??= e, this._availableSlideCount = e.slideCount, this._layoutLifecycle.succeed(), this._wakeLayoutWaiters(), t.firstPublication.resolve(), q(this, {
1138
+ availableSlides: this._availableSlideCount,
1139
+ slideCount: this.slideCount,
1140
+ exact: !0,
1141
+ complete: !0
1142
+ }), this._layoutObservers.notify("onLayoutComplete", t.onComplete));
1143
+ }
1144
+ _failProgressiveLayout(e, t) {
1145
+ if (t.settled || (t.settled = !0, this._clearProgressiveWatchdog(), this._destroyed)) return;
1146
+ if (!t.deferred) {
1147
+ t.firstPublication.reject(e);
1148
+ return;
1149
+ }
1150
+ let n = this._layoutLifecycle.fail(e);
1151
+ this._wakeLayoutWaiters(), q(this, {
1152
+ availableSlides: this._availableSlideCount,
1153
+ slideCount: this.slideCount,
1154
+ exact: !1,
1155
+ complete: !1,
1156
+ error: n
1157
+ }), this._layoutObservers.notify("onLayoutComplete", t.onComplete, n);
1158
+ }
1159
+ _wakeLayoutWaiters() {
1160
+ for (let e of this._layoutWaiters) e();
1161
+ this._layoutWaiters.clear();
1162
+ }
1163
+ _rearmProgressiveWatchdog() {
1164
+ this._progressiveWatchdogMs !== void 0 && (clearTimeout(this._progressiveWatchdog), this._progressiveWatchdog = setTimeout(() => {
1165
+ let e = this._progressive, t = this._progressiveWatchdogMs;
1166
+ if (!e || e.settled || t === void 0 || this._destroyed) return;
1167
+ let n = /* @__PURE__ */ Error(`worker layout produced no progress for ${t}ms`);
1168
+ this._failProgressiveLayout(n, e), this._bridge.terminate();
1169
+ }, this._progressiveWatchdogMs));
1170
+ }
1171
+ _clearProgressiveWatchdog() {
1172
+ clearTimeout(this._progressiveWatchdog), this._progressiveWatchdog = void 0, this._progressiveWatchdogMs = void 0;
1173
+ }
1174
+ async _waitForSlide(e) {
1175
+ for (; !this._destroyed && e >= this._availableSlideCount && !this._layoutLifecycle.settled;) await new Promise((e) => this._layoutWaiters.add(e));
1176
+ e >= this._availableSlideCount && await this.waitUntilLayoutComplete();
1177
+ }
1178
+ _assertSlideIndex(e) {
1179
+ if (!Number.isInteger(e) || e < 0 || e >= this.slideCount) throw Error(`Slide index ${e} out of range (count: ${this.slideCount})`);
1180
+ }
1181
+ get slideCount() {
1182
+ return this._bootstrap?.slideCount ?? this._preflight?.slideCount ?? 0;
1183
+ }
1184
+ get availableSlideCount() {
1185
+ return this._availableSlideCount;
1186
+ }
1187
+ get layoutComplete() {
1188
+ return this._layoutLifecycle.complete;
1189
+ }
1190
+ async waitUntilLayoutComplete() {
1191
+ this._layoutCompletion && await this._layoutCompletion, this._layoutLifecycle.throwIfFailed();
1192
+ }
1193
+ get slideWidth() {
1194
+ return this._bootstrap?.slideWidth ?? this._preflight?.slideWidth ?? 0;
1195
+ }
1196
+ get slideHeight() {
1197
+ return this._bootstrap?.slideHeight ?? this._preflight?.slideHeight ?? 0;
1198
+ }
1199
+ get mode() {
1200
+ return this._mode;
1201
+ }
1202
+ getNotes(e) {
1203
+ return Number.isInteger(e) ? this._preflight?.slides[e]?.notes ?? null : null;
1204
+ }
1205
+ getComments(e) {
1206
+ return Number.isInteger(e) ? this._preflight?.slides[e]?.comments ?? [] : [];
1207
+ }
1208
+ isHidden(e) {
1209
+ return Number.isInteger(e) ? this._preflight?.slides[e]?.hidden ?? !1 : !1;
1210
+ }
1211
+ _partNames() {
1212
+ return (this._bootstrap?.slides ?? this._preflight?.slides ?? []).map((e) => e.partName);
1213
+ }
1214
+ _partIndex() {
1215
+ return this._slidePartIndex ||= gt(this._partNames()), this._slidePartIndex;
1216
+ }
1217
+ getSlideIndexByPartName(e) {
1218
+ return this._partIndex().get(e);
1219
+ }
1220
+ resolveInternalTarget(e, t = 0) {
1221
+ return vt(e, this._partIndex(), t);
1222
+ }
1223
+ async renderSlide(e, n, r = {}) {
1224
+ this._assertResourceHealthy();
1225
+ try {
1226
+ if (this._mode === "worker") throw Error("renderSlide(canvas) is unavailable in mode: 'worker'; use renderSlideToBitmap() and paint it via an ImageBitmapRenderingContext");
1227
+ this._assertSlideIndex(n), await this._waitForSlide(n);
1228
+ let i = this._preflight, a = this._slides;
1229
+ if (!i || !a) throw Error("Presentation not loaded");
1230
+ let o = r.dpr ?? t(), s = r.width ?? ((l(e) ? e.offsetWidth : 0) || 960);
1231
+ await a.withSlide(n, (t) => (this._assertResourceHealthy(), Le(e, t, i.slideWidth, i.slideHeight, {
1232
+ width: s,
1233
+ dpr: o,
1234
+ defaultTextColor: i.defaultTextColor,
1235
+ cjkFallback: this._cjkFallback,
1236
+ majorFont: i.majorFont,
1237
+ minorFont: i.minorFont,
1238
+ hlinkColor: i.hlinkColor,
1239
+ embeddedFontAliases: this._embeddedFontAliases,
1240
+ embeddedFontAuthoredFamilies: this._embeddedFontAuthoredFamilies,
1241
+ fetchMedia: this._fetchMedia,
1242
+ fetchImage: this._fetchImage,
1243
+ skipMediaControls: r.skipMediaControls,
1244
+ dim: r.dim,
1245
+ math: this._math,
1246
+ threeD: this._threeD,
1247
+ regionMap: this._regionMap,
1248
+ chartEx: this._chartEx,
1249
+ tiff: this._tiff,
1250
+ imageResources: r.imageResources
1251
+ }, r.onTextRun)));
1252
+ } catch (e) {
1253
+ this._rethrowWithResourceFailure(e);
1254
+ }
1255
+ }
1256
+ async renderSlideToBitmap(e, n = {}) {
1257
+ this._assertResourceHealthy();
1258
+ try {
1259
+ this._assertSlideIndex(e), await this._waitForSlide(e);
1260
+ let r = n.width ?? 960, i = n.dpr ?? t();
1261
+ if (this._mode === "worker") {
1262
+ let t = await this._bridge.request((t) => ({
1263
+ kind: "renderSlide",
1264
+ id: t,
1265
+ slideIndex: e,
1266
+ width: r,
1267
+ dpr: i,
1268
+ imageResources: n.imageResources,
1269
+ skipMediaControls: n.skipMediaControls,
1270
+ dim: n.dim
1271
+ }));
1272
+ try {
1273
+ if (n.onTextRun) for (let e of t.runs) n.onTextRun(e);
1274
+ } catch (e) {
1275
+ throw c(t.bitmap), e;
1276
+ }
1277
+ return t.bitmap;
1278
+ }
1279
+ let a = new OffscreenCanvas(1, 1);
1280
+ return await this.renderSlide(a, e, {
1281
+ width: r,
1282
+ dpr: i,
1283
+ imageResources: n.imageResources,
1284
+ skipMediaControls: n.skipMediaControls,
1285
+ dim: n.dim,
1286
+ onTextRun: n.onTextRun
1287
+ }), a.transferToImageBitmap();
1288
+ } catch (e) {
1289
+ this._rethrowWithResourceFailure(e);
1290
+ }
1291
+ }
1292
+ async collectSlideRuns(e, t = 960) {
1293
+ this._assertResourceHealthy();
1294
+ try {
1295
+ if (this._assertSlideIndex(e), await this._waitForSlide(e), this._mode === "worker") return (await this._bridge.request((n) => ({
1296
+ kind: "collectRuns",
1297
+ id: n,
1298
+ slideIndex: e,
1299
+ width: t
1300
+ }))).runs;
1301
+ let n = [], r = new OffscreenCanvas(1, 1);
1302
+ return await this.renderSlide(r, e, {
1303
+ width: t,
1304
+ onTextRun: (e) => n.push(e)
1305
+ }), n;
1306
+ } catch (e) {
1307
+ this._rethrowWithResourceFailure(e);
1308
+ }
1309
+ }
1310
+ async getElementContextAt(e, t, n = {}) {
1311
+ this._assertResourceHealthy(), this._assertSlideIndex(e);
1312
+ try {
1313
+ if (await this._waitForSlide(e), this._mode === "worker") return (await this._bridge.request((r) => ({
1314
+ kind: "hitTestElement",
1315
+ id: r,
1316
+ slideIndex: e,
1317
+ point: t,
1318
+ options: n
1319
+ }))).context;
1320
+ if (!this._slides) throw Error("Presentation not loaded");
1321
+ return await this._slides.withSlide(e, (r) => Rt(e, r, t, n));
1322
+ } catch (e) {
1323
+ this._rethrowWithResourceFailure(e);
1324
+ }
1325
+ }
1326
+ async getElementBoundsByIds(e, t) {
1327
+ this._assertResourceHealthy(), this._assertSlideIndex(e);
1328
+ let n = Object.freeze(t.filter((e) => typeof e == "string" && e.length > 0));
1329
+ if (n.length === 0) return Object.freeze([]);
1330
+ try {
1331
+ if (await this._waitForSlide(e), this._mode === "worker") return (await this._bridge.request((t) => ({
1332
+ kind: "resolveElementBounds",
1333
+ id: t,
1334
+ slideIndex: e,
1335
+ elementIds: n
1336
+ }))).bounds;
1337
+ if (!this._slides) throw Error("Presentation not loaded");
1338
+ return await this._slides.withSlide(e, (e) => zt(e, n));
1339
+ } catch (e) {
1340
+ this._rethrowWithResourceFailure(e);
1341
+ }
1342
+ }
1343
+ async getMedia(e) {
1344
+ this._assertResourceHealthy();
1345
+ try {
1346
+ let t = this._findMimeTypeForPath(e);
1347
+ return await this._rawParts.get(e, t, async () => {
1348
+ let n = (await this._bridge.request((t) => ({
1349
+ kind: "extractMedia",
1350
+ id: t,
1351
+ path: e
1352
+ }))).bytes;
1353
+ return new Blob([n], { type: t });
1354
+ });
1355
+ } catch (e) {
1356
+ this._rethrowWithResourceFailure(e);
1357
+ }
1358
+ }
1359
+ _findMimeTypeForPath(e) {
1360
+ return this._preflight ? je(this._preflight, e) : "";
1361
+ }
1362
+ async getImage(e, t) {
1363
+ this._assertResourceHealthy();
1364
+ try {
1365
+ return await this._rawParts.get(e, t, async () => {
1366
+ let n = (await this._bridge.request((t) => ({
1367
+ kind: "extractImage",
1368
+ id: t,
1369
+ path: e
1370
+ }))).bytes;
1371
+ return new Blob([n], { type: t });
1372
+ });
1373
+ } catch (e) {
1374
+ this._rethrowWithResourceFailure(e);
1375
+ }
1376
+ }
1377
+ async getFontBytes(e) {
1378
+ this._assertResourceHealthy();
1379
+ try {
1380
+ let t = await this._bridge.request((t) => ({
1381
+ kind: "extractFont",
1382
+ id: t,
1383
+ path: e
1384
+ }));
1385
+ return new Uint8Array(t.bytes);
1386
+ } catch (e) {
1387
+ this._rethrowWithResourceFailure(e);
1388
+ }
1389
+ }
1390
+ async getResourceMetrics() {
1391
+ let e = this._metrics;
1392
+ if (!e) throw Error("Presentation not loaded");
1393
+ return i(e, async (e) => (await this._bridge.request((e) => ({
1394
+ kind: "resourceUsage",
1395
+ id: e
1396
+ }), void 0, { timeoutMs: e })).usage);
1397
+ }
1398
+ async toMarkdown() {
1399
+ this._assertResourceHealthy();
1400
+ try {
1401
+ return (await this._bridge.request((e) => ({
1402
+ kind: "toMarkdown",
1403
+ id: e
1404
+ }))).markdown;
1405
+ } catch (e) {
1406
+ this._rethrowWithResourceFailure(e);
1407
+ }
1408
+ }
1409
+ async presentSlide(e, n, r = {}) {
1410
+ this._assertResourceHealthy();
1411
+ try {
1412
+ if (this._assertSlideIndex(n), await this._waitForSlide(n), !this._preflight) throw Error("Presentation not loaded");
1413
+ let i = r.dpr ?? t(), a = r.width ?? (e.offsetWidth || 960), o = this.slideWidth > 0 ? a * this.slideHeight / this.slideWidth : 0;
1414
+ e.style.width = `${Math.round(a)}px`, e.style.height = `${Math.round(o)}px`, e.style.display || (e.style.display = "block");
1415
+ let s = this._mode === "worker" ? async () => {
1416
+ let t = await this.renderSlideToBitmap(n, {
1417
+ width: a,
1418
+ dpr: i,
1419
+ imageResources: r.imageResources,
1420
+ skipMediaControls: !0,
1421
+ dim: r.dim,
1422
+ onTextRun: r.onTextRun
1423
+ });
1424
+ try {
1425
+ e.width = t.width, e.height = t.height;
1426
+ let n = e.getContext("2d");
1427
+ if (!n) throw Error("2D context not available");
1428
+ n.drawImage(t, 0, 0);
1429
+ } finally {
1430
+ c(t);
1431
+ }
1432
+ } : () => this.renderSlide(e, n, {
1433
+ width: a,
1434
+ dpr: i,
1435
+ imageResources: r.imageResources,
1436
+ skipMediaControls: !0,
1437
+ dim: r.dim,
1438
+ onTextRun: r.onTextRun
1439
+ });
1440
+ return await tt(e, this._preflight.slides[n]?.mediaElements ?? [], {
1441
+ width: a,
1442
+ height: o,
1443
+ slideWidthEmu: this.slideWidth,
1444
+ fetchMedia: this._fetchMedia,
1445
+ fetchImage: this._fetchImage,
1446
+ drawBase: s,
1447
+ onError: r.onError
1448
+ });
1449
+ } catch (e) {
1450
+ this._rethrowWithResourceFailure(e);
1451
+ }
1452
+ }
1453
+ destroy() {
1454
+ this._destroyed = !0, this._clearProgressiveWatchdog(), this._slidePullClient?.cancelAll(), this._bridge.terminate(), this._slides?.clear(), this._slides = null, this._slidePullClient = null, this._bootstrap = null, this._preflight = null, this._availableSlideCount = 0, this._layoutLifecycle.succeed(), this._layoutCompletion = null, this._progressive = null, this._parseRequestId = null, this._wakeLayoutWaiters(), this._resourceFailure = null, this._slidePartIndex = null, this._rawParts.clear(), this._googleFontFaces.length > 0 && (b(this._googleFontFaces), this._googleFontFaces = []), this._embeddedFontFaces.length > 0 && (O(this._embeddedFontFaces), this._embeddedFontFaces = []), this._embeddedFontAliases = /* @__PURE__ */ new Map(), this._embeddedFontAuthoredFamilies = /* @__PURE__ */ new Map(), u(this._fetchImage), f(this._fetchImage);
1455
+ }
1456
+ };
1457
+ //#endregion
1458
+ //#region packages/pptx/src/selection-context.ts
1459
+ function Ut(e, t, n, r, i = {}) {
1460
+ let a = be({
1461
+ id: e.id,
1462
+ author: e.author,
1463
+ date: e.date,
1464
+ text: e.text,
1465
+ status: e.status ?? "active"
1466
+ }, (e.replies ?? []).map((e) => ({
1467
+ id: e.id,
1468
+ author: e.author,
1469
+ date: e.date,
1470
+ text: e.text,
1471
+ status: e.status ?? "active"
1472
+ })), i.maxTextCharacters);
1473
+ return Object.freeze({
1474
+ format: "pptx",
1475
+ kind: "comment",
1476
+ slideIndex: t,
1477
+ commentIndex: n,
1478
+ occurrenceId: r,
1479
+ ...e.id ? { commentId: e.id } : {},
1480
+ ...Number.isFinite(e.x) && Number.isFinite(e.y) ? { point: Object.freeze({
1481
+ x: e.x,
1482
+ y: e.y
1483
+ }) } : {},
1484
+ thread: a.thread,
1485
+ truncated: a.truncated,
1486
+ truncationReasons: a.truncated ? ["text"] : [],
1487
+ textCharacters: a.textCharacters,
1488
+ maxTextCharacters: a.maxTextCharacters
1489
+ });
1490
+ }
1491
+ function Y(e) {
1492
+ if (e === void 0 || !/^\d+$/.test(e)) return null;
1493
+ let t = Number(e);
1494
+ return Number.isSafeInteger(t) ? t : null;
1495
+ }
1496
+ function Wt(e) {
1497
+ for (let t = e; t; t = t.parentElement) {
1498
+ let e = Y(t.dataset.slideIndex);
1499
+ if (e !== null) return e;
1500
+ }
1501
+ return null;
1502
+ }
1503
+ function X(e, t, n = {}) {
1504
+ let r = ue(e, t, (e) => {
1505
+ let t = Wt(e), n = Y(e.dataset.runIndex);
1506
+ if (t === null || n === null) return null;
1507
+ let r = Y(e.dataset.elementIndex), i = e.dataset.elementOrigin, a = r !== null && (i === "master" || i === "layout" || i === "slide");
1508
+ return {
1509
+ slideIndex: t,
1510
+ runIndex: n,
1511
+ ...e.dataset.shapeId === void 0 ? {} : { shapeId: e.dataset.shapeId },
1512
+ ...a ? {
1513
+ elementIndex: r,
1514
+ origin: i
1515
+ } : {}
1516
+ };
1517
+ }, {
1518
+ maxChars: n.maxTextCharacters,
1519
+ maxLocators: n.maxRunLocators
1520
+ });
1521
+ if (!r) return null;
1522
+ let i = [...r.locators].sort((e, t) => e.slideIndex - t.slideIndex || e.runIndex - t.runIndex);
1523
+ return {
1524
+ format: "pptx",
1525
+ kind: "text",
1526
+ text: r.text,
1527
+ slideIndexes: [...new Set(i.map((e) => e.slideIndex))],
1528
+ shapeIds: [...new Set(i.flatMap((e) => e.shapeId ? [e.shapeId] : []))],
1529
+ runs: i,
1530
+ truncated: r.truncated,
1531
+ truncationReasons: r.truncationReasons,
1532
+ textCharacters: r.textCharacters,
1533
+ maxTextCharacters: r.maxTextCharacters,
1534
+ maxRunLocators: r.maxLocators
1535
+ };
1536
+ }
1537
+ //#endregion
1538
+ //#region packages/pptx/src/focused-view-runtime.ts
1539
+ function Z(e, t, n, r, i) {
1540
+ return r === "worker" ? e.renderSlideToBitmap(n, i) : e.renderSlide(t, n, i);
1541
+ }
1542
+ //#endregion
1543
+ //#region packages/pptx/src/loading-indicator.ts
1544
+ function Gt(e) {
1545
+ let t = e.createElement("span");
1546
+ t.style.cssText = [
1547
+ "position:absolute",
1548
+ "top:0",
1549
+ "right:0",
1550
+ "bottom:0",
1551
+ "left:0",
1552
+ "display:none",
1553
+ "align-items:center",
1554
+ "justify-content:center",
1555
+ "background:rgba(255,255,255,0.72)",
1556
+ "backdrop-filter:blur(2px)",
1557
+ "pointer-events:none",
1558
+ "z-index:4"
1559
+ ].join(";"), t.setAttribute("role", "status"), t.setAttribute("aria-live", "polite"), t.setAttribute("aria-label", "Loading slide");
1560
+ let n = e.createElement("span");
1561
+ return n.className = "ooxml-pptx-progress-circle", n.style.cssText = [
1562
+ "width:34px",
1563
+ "height:34px",
1564
+ "box-sizing:border-box",
1565
+ "border-radius:50%",
1566
+ "border:3px solid var(--border-bright, rgba(100,116,139,0.28))",
1567
+ "border-top-color:var(--signal, #12bfd8)",
1568
+ "box-shadow:0 2px 10px rgba(15,23,42,0.08)"
1569
+ ].join(";"), n.setAttribute("aria-hidden", "true"), t.appendChild(n), !(e.defaultView?.matchMedia?.("(prefers-reduced-motion: reduce)").matches ?? !1) && typeof n.animate == "function" && n.animate([{ transform: "rotate(0deg)" }, { transform: "rotate(360deg)" }], {
1570
+ duration: 800,
1571
+ iterations: Infinity,
1572
+ easing: "linear"
1573
+ }), t;
1574
+ }
1575
+ //#endregion
1576
+ //#region packages/pptx/src/viewer.ts
1577
+ var Kt = Symbol("PptxViewer.borrowedPresentation"), qt = {
1578
+ color: "#ffffff",
1579
+ opacity: .6
1580
+ }, Q = class e {
1581
+ canvas;
1582
+ wrapper;
1583
+ canvasMount;
1584
+ _scale = null;
1585
+ textLayer = null;
1586
+ highlightLayer = null;
1587
+ elementLayer = null;
1588
+ _find;
1589
+ _findGeneration = 0;
1590
+ _measureCtx = null;
1591
+ presentationOwner;
1592
+ get engine() {
1593
+ return this.presentationOwner.current;
1594
+ }
1595
+ borrowed;
1596
+ hostWindow;
1597
+ opts;
1598
+ currentSlide = 0;
1599
+ _renderedSlide = -1;
1600
+ _hiddenMode;
1601
+ handle = null;
1602
+ _mode;
1603
+ renderDispatcher;
1604
+ errorRouter;
1605
+ destroyed = !1;
1606
+ selectionChangeListener = null;
1607
+ selectionContextKey = "null";
1608
+ elementClickListener = null;
1609
+ contextMenuListener = null;
1610
+ elementContext = null;
1611
+ elementHitGeneration = 0;
1612
+ elementHitTolerance;
1613
+ _loadingLayer;
1614
+ _layoutUnsubscribe = null;
1615
+ _layoutWaiters = /* @__PURE__ */ new Set();
1616
+ _layoutFailed = !1;
1617
+ _navigationGeneration = 0;
1618
+ _renderProgressGeneration = 0;
1619
+ _lastReportedSlide = -1;
1620
+ _lastReportedTotal = -1;
1621
+ _lastReportedAvailable = -1;
1622
+ _lastReportedLayoutComplete = null;
1623
+ static fromPresentation(t, n, r = {}) {
1624
+ return new e(t, {
1625
+ ...r,
1626
+ [Kt]: n
1627
+ });
1628
+ }
1629
+ constructor(e, t = {}) {
1630
+ this.opts = t, this.canvas = e;
1631
+ let n = t[Kt];
1632
+ this.borrowed = n !== void 0, this._mode = D("PptxViewer", t.mode, n), this.presentationOwner = new w("PptxViewer", n ?? null, !1);
1633
+ let r = e.ownerDocument?.defaultView ?? (typeof window < "u" ? window : null);
1634
+ if (!r) throw Error("PptxViewer requires a canvas with an active Window");
1635
+ this.hostWindow = r;
1636
+ let i = t.elementHitTolerance ?? 6;
1637
+ if (!Number.isFinite(i) || i < 0) throw RangeError("elementHitTolerance must be a finite non-negative number.");
1638
+ this.elementHitTolerance = i, this._hiddenMode = t.hiddenSlideMode ?? "show", this.canvasMount = new de(e, {
1639
+ wrapperCssText: "position:relative;display:inline-block;vertical-align:top;",
1640
+ forceDisplayBlock: !0
1641
+ }), this.wrapper = this.canvasMount.wrapper, this.renderDispatcher = new E(e, this._mode === "worker" && !t.enableMediaPlayback), this.errorRouter = new le("PptxViewer", t.onError);
1642
+ let a = new oe(this.wrapper, t.enableTextSelection === !0, t.enableElementSelection === !0);
1643
+ this.textLayer = a.textLayer, this.highlightLayer = a.highlightLayer, this.elementLayer = a.elementLayer, this._loadingLayer = Gt(this.wrapper.ownerDocument), this.wrapper.insertBefore(this._loadingLayer, this.elementLayer), this.textLayer && (t.onSelectionContextChange || t.enableElementSelection) && (this.selectionChangeListener = () => this._emitSelectionContextChange(), this.wrapper.ownerDocument.addEventListener("selectionchange", this.selectionChangeListener)), t.enableElementSelection && (this.elementClickListener = (e) => {
1644
+ this._onElementClick(e).catch((e) => this._reportRenderError(e));
1645
+ }, this.wrapper.addEventListener("click", this.elementClickListener)), t.onContextMenu && (this.contextMenuListener = (e) => this._onContextMenu(e), this.wrapper.addEventListener("contextmenu", this.contextMenuListener)), this._find = new Xe(() => this.slideCount, (e) => this._collectSlideRuns(e)), n && this._bindLayoutPresentation(n);
1646
+ }
1647
+ async load(e) {
1648
+ if (this.destroyed) throw Error("PptxViewer is destroyed");
1649
+ if (this.borrowed) throw Error("PptxViewer.load() is unsupported on a Viewer created by fromPresentation(); the borrowed presentation is already loaded.");
1650
+ let t = !1;
1651
+ try {
1652
+ let n = await this.presentationOwner.replace(() => J.load(e, {
1653
+ password: this.opts.password,
1654
+ useGoogleFonts: this.opts.useGoogleFonts,
1655
+ cjkFallback: this.opts.cjkFallback,
1656
+ maxZipEntryBytes: this.opts.maxZipEntryBytes,
1657
+ resourceLimits: this.opts.resourceLimits,
1658
+ debug: this.opts.debug,
1659
+ onResourceMetrics: this.opts.onResourceMetrics,
1660
+ workerTimeoutMs: this.opts.workerTimeoutMs,
1661
+ wasmUrl: this.opts.wasmUrl,
1662
+ math: this.opts.math,
1663
+ threeD: this.opts.threeD,
1664
+ regionMap: this.opts.regionMap,
1665
+ chartEx: this.opts.chartEx,
1666
+ tiff: this.opts.tiff,
1667
+ mode: this._mode,
1668
+ progressiveLayout: this.opts.progressiveLayout,
1669
+ onLayoutProgress: this.opts.onLayoutProgress,
1670
+ onLayoutPartial: this.opts.onLayoutPartial,
1671
+ onLayoutComplete: this.opts.onLayoutComplete
1672
+ }), () => {
1673
+ this._invalidateElementSelection(!1), t = !0, this.renderDispatcher.begin(), this._invalidateFind(), this.handle?.destroy(), this.handle = null, this._unbindLayoutPresentation();
1674
+ });
1675
+ if (!n) return;
1676
+ if (this.destroyed) throw Error("PptxViewer is destroyed");
1677
+ this._bindLayoutPresentation(n);
1678
+ let r = this._beginNavigation();
1679
+ if (this.currentSlide = await this._initialSlide(r), r !== this._navigationGeneration || n !== this.engine) return;
1680
+ this._renderedSlide = -1, this._invalidateFind(), await this.renderCurrentSlide();
1681
+ } catch (e) {
1682
+ throw this.destroyed ? Error("PptxViewer is destroyed") : e instanceof Error ? e : Error(String(e));
1683
+ }
1684
+ t && !this.destroyed && this._emitSelectionContextChange();
1685
+ }
1686
+ async goToSlide(e) {
1687
+ let t = this._beginNavigation();
1688
+ await this._goToSlide(e, t);
1689
+ }
1690
+ async _goToSlide(e, t) {
1691
+ if (t !== this._navigationGeneration || !this.engine || this.slideCount === 0) return;
1692
+ let n = Math.max(0, Math.min(e, this.slideCount - 1)), r = n !== this.currentSlide;
1693
+ r && this._invalidateElementSelection(!1), this.currentSlide = n, await this.renderCurrentSlide(), r && !this.destroyed && this._emitSelectionContextChange();
1694
+ }
1695
+ async nextSlide() {
1696
+ let e = this._beginNavigation(), t = await this._step(1, e);
1697
+ await this._goToSlide(t, e);
1698
+ }
1699
+ async prevSlide() {
1700
+ let e = this._beginNavigation(), t = await this._step(-1, e);
1701
+ await this._goToSlide(t, e);
1702
+ }
1703
+ async _step(e, t) {
1704
+ let n = this.engine, r = this.currentSlide;
1705
+ if (this._hiddenMode !== "skip" || !n) return r + e;
1706
+ for (let i = r + e; i >= 0 && i < this.slideCount; i += e) {
1707
+ if (i >= n.availableSlideCount && (n.layoutComplete || this._setLoading(!0), !await this._waitForSlide(n, i, () => t === this._navigationGeneration))) return r;
1708
+ if (!n.isHidden(i)) return i;
1709
+ }
1710
+ return r;
1711
+ }
1712
+ async _initialSlide(e) {
1713
+ let t = this.engine;
1714
+ if (this._hiddenMode !== "skip" || !t || this.slideCount === 0 || t.availableSlideCount === 0 && !await this._waitForSlide(t, 0, () => e === this._navigationGeneration) || !t.isHidden(0)) return 0;
1715
+ let n = await this._step(1, e);
1716
+ return n === 0 ? 0 : n;
1717
+ }
1718
+ _dim() {
1719
+ return {
1720
+ color: this.opts.hiddenSlideDim?.color ?? qt.color,
1721
+ opacity: this.opts.hiddenSlideDim?.opacity ?? qt.opacity
1722
+ };
1723
+ }
1724
+ async setHiddenSlideMode(e) {
1725
+ let t = this._beginNavigation();
1726
+ this._hiddenMode = e;
1727
+ let n = this.currentSlide;
1728
+ if (e === "skip" && this.engine) {
1729
+ let e = this.engine;
1730
+ if (this.currentSlide >= e.availableSlideCount && !await this._waitForSlide(e, this.currentSlide, () => t === this._navigationGeneration)) return;
1731
+ e.isHidden(this.currentSlide) && (n = await this._step(1, t), n === this.currentSlide && (n = await this._step(-1, t)));
1732
+ }
1733
+ if (t !== this._navigationGeneration) return;
1734
+ let r = n !== this.currentSlide;
1735
+ r && this._invalidateElementSelection(!1), this.currentSlide = n, await this.renderCurrentSlide(), r && !this.destroyed && this._emitSelectionContextChange();
1736
+ }
1737
+ get hiddenSlideMode() {
1738
+ return this._hiddenMode;
1739
+ }
1740
+ get visibleSlideCount() {
1741
+ if (!this.engine) return 0;
1742
+ let e = this.engine;
1743
+ return ze((t) => e.isHidden(t), this.slideCount);
1744
+ }
1745
+ get slideIndex() {
1746
+ return this.currentSlide;
1747
+ }
1748
+ get slideCount() {
1749
+ return this.engine?.slideCount ?? 0;
1750
+ }
1751
+ get availableSlideCount() {
1752
+ return this.engine?.availableSlideCount ?? this.slideCount;
1753
+ }
1754
+ get layoutComplete() {
1755
+ return this.engine?.layoutComplete ?? !0;
1756
+ }
1757
+ async waitUntilLayoutComplete() {
1758
+ await this.errorRouter.ownBackgroundLifecycle(async () => {
1759
+ await this.engine?.waitUntilLayoutComplete?.();
1760
+ });
1761
+ }
1762
+ getNotes(e) {
1763
+ return this.engine?.getNotes(e) ?? null;
1764
+ }
1765
+ get canvasElement() {
1766
+ return this.canvas;
1767
+ }
1768
+ _naturalWidthPx() {
1769
+ let e = this.engine?.slideWidth ?? 0;
1770
+ return e > 0 ? e / k : 0;
1771
+ }
1772
+ _targetWidth() {
1773
+ if (this._scale === null) return this.opts.width ?? (this.canvas.offsetWidth || 960);
1774
+ let e = this._naturalWidthPx();
1775
+ return e <= 0 ? this.opts.width ?? (this.canvas.offsetWidth || 960) : Math.round(e * this._scale);
1776
+ }
1777
+ getScale() {
1778
+ if (this._scale !== null) return this._scale;
1779
+ let e = this._naturalWidthPx();
1780
+ return e <= 0 ? 1 : this._targetWidth() / e;
1781
+ }
1782
+ _zoomMin() {
1783
+ return this.opts.zoomMin ?? .1;
1784
+ }
1785
+ _zoomMax() {
1786
+ return this.opts.zoomMax ?? 4;
1787
+ }
1788
+ async setScale(e) {
1789
+ let t = re(e, this._zoomMin(), this._zoomMax()), n = t !== this.getScale();
1790
+ this._scale = t, await this.renderCurrentSlide(), n && this.opts.onScaleChange?.(t);
1791
+ }
1792
+ async zoomIn() {
1793
+ await this.setScale(fe(this.getScale()));
1794
+ }
1795
+ async zoomOut() {
1796
+ await this.setScale(he(this.getScale()));
1797
+ }
1798
+ async fitWidth() {
1799
+ await this._fit("width");
1800
+ }
1801
+ async fitPage() {
1802
+ await this._fit("page");
1803
+ }
1804
+ async _fit(e) {
1805
+ if (!this.engine) return;
1806
+ let t = this.wrapper.parentElement;
1807
+ if (!t) return;
1808
+ let n = C({
1809
+ contentWidth: this.engine.slideWidth / k,
1810
+ contentHeight: this.engine.slideHeight / k,
1811
+ containerWidth: t.clientWidth,
1812
+ containerHeight: t.clientHeight
1813
+ }, e);
1814
+ n <= 0 || await this.setScale(n);
1815
+ }
1816
+ async renderCurrentSlide() {
1817
+ let e = this.engine;
1818
+ if (!e) return;
1819
+ let t = this.currentSlide, n = ++this._renderProgressGeneration;
1820
+ this._setLoading(t >= this.availableSlideCount && !this.layoutComplete);
1821
+ let r = this.renderDispatcher.begin();
1822
+ try {
1823
+ if (t >= e.availableSlideCount && !await this._waitForSlide(e, t, () => n === this._renderProgressGeneration && this.renderDispatcher.isCurrent(r) && e === this.engine && t === this.currentSlide)) return;
1824
+ let i = this._hiddenMode === "dim" && e.isHidden(t) ? this._dim() : void 0, a = this._targetWidth(), o = this.opts.dpr ?? (window.devicePixelRatio || 1), s = a / e.slideWidth, c = Math.round(e.slideHeight * s);
1825
+ this.canvas.style.width = `${a}px`, this.canvas.style.height = `${c}px`, this.handle?.destroy(), this.handle = null;
1826
+ let l = this._mode === "worker", u = [], d = (e) => u.push(e);
1827
+ if (this.opts.enableMediaPlayback) {
1828
+ let n = await e.presentSlide(this.canvas, t, {
1829
+ width: a,
1830
+ dpr: o,
1831
+ imageResources: this.opts.imageResources,
1832
+ dim: i,
1833
+ onTextRun: d,
1834
+ onError: (e) => {
1835
+ this.renderDispatcher.isCurrent(r) && this._reportRenderError(e);
1836
+ }
1837
+ });
1838
+ if (!this.renderDispatcher.isCurrent(r)) {
1839
+ n.destroy();
1840
+ return;
1841
+ }
1842
+ this.handle = n;
1843
+ } else if (l) {
1844
+ let e = await Z(this.engine, this.canvas, t, "worker", {
1845
+ width: a,
1846
+ dpr: o,
1847
+ imageResources: this.opts.imageResources,
1848
+ dim: i,
1849
+ onTextRun: d
1850
+ });
1851
+ if (!this.renderDispatcher.commitBitmap(r, e)) return;
1852
+ } else if (await Z(this.engine, this.canvas, t, "main", {
1853
+ width: a,
1854
+ dpr: o,
1855
+ imageResources: this.opts.imageResources,
1856
+ onTextRun: d,
1857
+ dim: i
1858
+ }), !this.renderDispatcher.isCurrent(r)) return;
1859
+ this._renderedSlide = t, this._emitSlideChange(!0), this.textLayer && this._buildTextLayer(this.textLayer, u, a, c), this._find.setSlideRuns(t, u), this._buildHighlightLayer(u, a, c);
1860
+ } catch (t) {
1861
+ if (!this.renderDispatcher.isCurrent(r) && !(e === this.engine && this._layoutFailed)) return;
1862
+ throw t;
1863
+ } finally {
1864
+ n === this._renderProgressGeneration && this._setLoading(!1);
1865
+ }
1866
+ }
1867
+ _bindLayoutPresentation(e) {
1868
+ this._unbindLayoutPresentation(), this._layoutFailed = !1;
1869
+ let t = !0;
1870
+ this._layoutUnsubscribe = Bt(e, () => ({
1871
+ availableSlides: e.availableSlideCount,
1872
+ slideCount: e.slideCount,
1873
+ exact: e.layoutComplete,
1874
+ complete: e.layoutComplete
1875
+ }), (n) => {
1876
+ if (t) {
1877
+ t = !1;
1878
+ return;
1879
+ }
1880
+ this._onLayoutPublication(e, n);
1881
+ }, (e) => this._reportRenderError(e));
1882
+ }
1883
+ _unbindLayoutPresentation() {
1884
+ this._layoutUnsubscribe?.(), this._layoutUnsubscribe = null, this._layoutFailed = !1, this._navigationGeneration++, this._renderProgressGeneration++, this._wakeLayoutWaiters(), this._setLoading(!1);
1885
+ }
1886
+ _beginNavigation() {
1887
+ let e = ++this._navigationGeneration;
1888
+ return this._wakeLayoutWaiters(), e;
1889
+ }
1890
+ _onLayoutPublication(e, t) {
1891
+ if (!(this.destroyed || e !== this.engine)) {
1892
+ if (this._wakeLayoutWaiters(), t.error !== void 0) {
1893
+ this._layoutFailed = !0, this.errorRouter.reportBackground(t.error, this.opts.onLayoutComplete !== void 0);
1894
+ return;
1895
+ }
1896
+ this._renderedSlide === this.currentSlide && this._emitSlideChange();
1897
+ }
1898
+ }
1899
+ async _waitForSlide(e, t, n) {
1900
+ return await this.errorRouter.ownBackgroundLifecycle(async () => {
1901
+ for (; !this.destroyed && n() && e === this.engine && t >= e.availableSlideCount && !e.layoutComplete && !this._layoutFailed;) await new Promise((e) => this._layoutWaiters.add(e));
1902
+ return this.destroyed || e !== this.engine || ((e.layoutComplete || this._layoutFailed) && await e.waitUntilLayoutComplete?.(), !n()) ? !1 : t < e.availableSlideCount;
1903
+ });
1904
+ }
1905
+ _wakeLayoutWaiters() {
1906
+ for (let e of this._layoutWaiters) e();
1907
+ this._layoutWaiters.clear();
1908
+ }
1909
+ _emitSlideChange(e = !1) {
1910
+ let t = this.slideCount, n = this.availableSlideCount, r = this.layoutComplete;
1911
+ !e && this.currentSlide === this._lastReportedSlide && t === this._lastReportedTotal && n === this._lastReportedAvailable && r === this._lastReportedLayoutComplete || (this._lastReportedSlide = this.currentSlide, this._lastReportedTotal = t, this._lastReportedAvailable = n, this._lastReportedLayoutComplete = r, this.opts.onSlideChange?.(this.currentSlide, t, r));
1912
+ }
1913
+ _setLoading(e) {
1914
+ this._loadingLayer.style.display = e ? "flex" : "none";
1915
+ }
1916
+ _buildHighlightLayer(e, t, n) {
1917
+ let r = this.highlightLayer;
1918
+ r && L(r, e, this._find.slideHighlights(this.currentSlide), t, n, (e) => this._measureForFont(e), this.opts.findHighlightColors);
1919
+ }
1920
+ _measureForFont(e) {
1921
+ this._measureCtx ||= document.createElement("canvas").getContext("2d");
1922
+ let t = this._measureCtx;
1923
+ return t ? (t.font = e, (e) => t.measureText(e).width) : (e) => e.length;
1924
+ }
1925
+ async _collectSlideRuns(e) {
1926
+ return this.engine ? this.engine.collectSlideRuns(e, this._targetWidth()) : [];
1927
+ }
1928
+ async findText(e, t = {}) {
1929
+ let n = this.engine;
1930
+ if (!n) return [];
1931
+ let r = ++this._findGeneration;
1932
+ if (e.length === 0) return this._find.invalidate(), this._redrawHighlights(), [];
1933
+ if (n.layoutComplete || await this.errorRouter.ownBackgroundLifecycle(() => n.waitUntilLayoutComplete()), this.destroyed || r !== this._findGeneration || n !== this.engine) return [];
1934
+ let i = await this.errorRouter.ownAwaitable(() => this._find.find(e, t));
1935
+ return this.destroyed || r !== this._findGeneration || n !== this.engine ? [] : (this._redrawHighlights(), i);
1936
+ }
1937
+ async findNext() {
1938
+ return this._activateMatch(this._find.next());
1939
+ }
1940
+ async findPrev() {
1941
+ return this._activateMatch(this._find.prev());
1942
+ }
1943
+ clearFind() {
1944
+ this._invalidateFind(), this._redrawHighlights();
1945
+ }
1946
+ _invalidateFind() {
1947
+ this._findGeneration++, this._find.invalidate();
1948
+ }
1949
+ async _activateMatch(e) {
1950
+ return e ? (e.location.slide === this.currentSlide ? this._redrawHighlights() : await this.goToSlide(e.location.slide), e) : (this._redrawHighlights(), null);
1951
+ }
1952
+ _redrawHighlights() {
1953
+ let e = this._find.slideRuns(this.currentSlide) ?? [], t = this._targetWidth(), n = this.engine ? Math.round(this.engine.slideHeight * (t / this.engine.slideWidth)) : 0;
1954
+ this._buildHighlightLayer(e, t, n);
1955
+ }
1956
+ _buildTextLayer(e, t, n, r) {
1957
+ I(e, t, n, r, this._hyperlinkHandler(), this.currentSlide);
1958
+ }
1959
+ _hyperlinkHandler() {
1960
+ if (this.opts.enableHyperlinks !== !1) return (e) => this._onHyperlinkClick(e);
1961
+ }
1962
+ _onHyperlinkClick(e) {
1963
+ let t = this._resolveInternalSlideIndex(e);
1964
+ if (this.opts.onHyperlinkClick) {
1965
+ this.opts.onHyperlinkClick(t);
1966
+ return;
1967
+ }
1968
+ if (t.kind === "external") {
1969
+ p(t.url, void 0, this.hostWindow);
1970
+ return;
1971
+ }
1972
+ t.slideIndex !== void 0 && this.goToSlide(t.slideIndex).catch((e) => this._reportRenderError(e));
1973
+ }
1974
+ _resolveInternalSlideIndex(e) {
1975
+ if (e.kind !== "internal" || e.slideIndex !== void 0) return e;
1976
+ let t = this.engine?.resolveInternalTarget(e.ref, this.currentSlide);
1977
+ return t === void 0 ? e : {
1978
+ ...e,
1979
+ slideIndex: t
1980
+ };
1981
+ }
1982
+ _reportRenderError(e) {
1983
+ this.errorRouter.report(e);
1984
+ }
1985
+ async getResourceMetrics() {
1986
+ if (!this.engine) throw Error("Presentation not loaded");
1987
+ return await this.engine.getResourceMetrics();
1988
+ }
1989
+ getSelectionContext(e = {}) {
1990
+ if (this.destroyed) throw Error("PptxViewer is destroyed");
1991
+ return (this.textLayer ? X(this.wrapper, this.wrapper.ownerDocument?.getSelection?.() ?? null, e) : null) ?? (this.elementContext ? It(this.elementContext, e.maxTextCharacters) : null);
1992
+ }
1993
+ _emitSelectionContextChange() {
1994
+ let e = this.getSelectionContext();
1995
+ e?.kind === "text" && (this.elementHitGeneration++, this.elementContext = null, this._redrawElementOutline());
1996
+ let t = JSON.stringify(e);
1997
+ t !== this.selectionContextKey && (this.selectionContextKey = t, this.opts.onSelectionContextChange?.(e ? structuredClone(e) : null));
1998
+ }
1999
+ _setElementContext(e) {
2000
+ this.elementContext = e ? structuredClone(e) : null, this._redrawElementOutline(), this._emitSelectionContextChange();
2001
+ }
2002
+ _invalidateElementSelection(e = !0) {
2003
+ this.elementHitGeneration++, this.elementContext = null, this._redrawElementOutline(), e && this._emitSelectionContextChange();
2004
+ }
2005
+ _redrawElementOutline() {
2006
+ let e = this.elementContext, t = this.engine;
2007
+ if (!e || !t || e.slideIndex !== this.currentSlide) {
2008
+ T(this.elementLayer, null);
2009
+ return;
2010
+ }
2011
+ T(this.elementLayer, {
2012
+ x: e.bounds.x / t.slideWidth,
2013
+ y: e.bounds.y / t.slideHeight,
2014
+ width: e.bounds.width / t.slideWidth,
2015
+ height: e.bounds.height / t.slideHeight,
2016
+ rotation: e.bounds.rotation
2017
+ });
2018
+ }
2019
+ async _onElementClick(e) {
2020
+ this.destroyed || e.defaultPrevented || e.button !== 0 || await this._resolveContextAt(e);
2021
+ }
2022
+ _onContextMenu(e) {
2023
+ let t;
2024
+ this.opts.onContextMenu?.({
2025
+ originalEvent: e,
2026
+ getContext: () => t ??= this._resolveContextAt(e)
2027
+ });
2028
+ }
2029
+ async _resolveContextAt(e) {
2030
+ let t = this.engine;
2031
+ if (this.destroyed || !t) return null;
2032
+ if (this.textLayer && X(this.wrapper, this.wrapper.ownerDocument?.getSelection?.() ?? null)) return this._emitSelectionContextChange(), this.destroyed ? null : this.getSelectionContext();
2033
+ if (!this.opts.enableElementSelection) return this.getSelectionContext();
2034
+ let n = this.canvas.getBoundingClientRect();
2035
+ if (n.width <= 0 || n.height <= 0) return this._invalidateElementSelection(), null;
2036
+ let r = e.clientX - n.left, i = e.clientY - n.top;
2037
+ if (r < 0 || i < 0 || r > n.width || i > n.height) return this._invalidateElementSelection(), null;
2038
+ let a = ++this.elementHitGeneration, o = this.currentSlide, s = {
2039
+ x: r / n.width * t.slideWidth,
2040
+ y: i / n.height * t.slideHeight
2041
+ }, c;
2042
+ try {
2043
+ c = await t.getElementContextAt(o, s, {
2044
+ tolerance: this.elementHitTolerance / n.width * t.slideWidth,
2045
+ maxTextCharacters: G
2046
+ });
2047
+ } catch (e) {
2048
+ if (this.destroyed || a !== this.elementHitGeneration || o !== this.currentSlide || t !== this.engine) return null;
2049
+ throw e;
2050
+ }
2051
+ return this.destroyed || a !== this.elementHitGeneration || o !== this.currentSlide || t !== this.engine ? null : (this._setElementContext(c), this.destroyed ? null : this.getSelectionContext());
2052
+ }
2053
+ destroy() {
2054
+ this.destroyed || (this.destroyed = !0, this.errorRouter.close(), this.renderDispatcher.destroy(), ke(this.canvas), this.handle?.destroy(), this.handle = null, this._unbindLayoutPresentation(), this.presentationOwner.close(), this._invalidateFind(), this.selectionChangeListener &&= (this.wrapper.ownerDocument.removeEventListener("selectionchange", this.selectionChangeListener), null), this.elementHitGeneration++, this.elementClickListener &&= (this.wrapper.removeEventListener("click", this.elementClickListener), null), this.contextMenuListener &&= (this.wrapper.removeEventListener("contextmenu", this.contextMenuListener), null), this.elementContext = null, this.canvasMount.restore());
2055
+ }
2056
+ }, Jt = 150, Yt = "0 1px 3px rgba(0,0,0,0.2)", Xt = 12, Zt;
2057
+ function Qt() {
2058
+ return Zt ??= import("ooxml/comment-ui-runtime-CWGqn5Vr.js");
2059
+ }
2060
+ var $ = 440, $t = 20, en = Symbol("PptxScrollViewer.borrowedPresentation"), tn = class e {
2061
+ _presentationOwner;
2062
+ get _pres() {
2063
+ return this._presentationOwner.current;
2064
+ }
2065
+ _borrowed;
2066
+ _opts;
2067
+ _errorRouter;
2068
+ _container;
2069
+ _wrapper;
2070
+ _scrollHost;
2071
+ _spacer;
2072
+ _mode;
2073
+ _scale = 1;
2074
+ _scaleEstablished = !1;
2075
+ _pendingScale = null;
2076
+ _slots = /* @__PURE__ */ new Map();
2077
+ _free = [];
2078
+ _uniformSlideHeight = 0;
2079
+ _lastRange = null;
2080
+ _lastTopIndex = -1;
2081
+ _lastReportedTotal = -1;
2082
+ _lastReportedLayoutComplete = null;
2083
+ _layoutUnsubscribe = null;
2084
+ _scrollListener = null;
2085
+ _selectionChangeListener = null;
2086
+ _selectionContextKey = "null";
2087
+ _elementClickListener = null;
2088
+ _contextMenuListener = null;
2089
+ _commentOutsidePointerListener = null;
2090
+ _elementContext = null;
2091
+ _activeCommentId = null;
2092
+ _activeCommentSlide = null;
2093
+ _commentNavigationGeneration = 0;
2094
+ _commentUi = null;
2095
+ _commentGeometryScheduled = !1;
2096
+ _commentGeometryFrame = null;
2097
+ _pendingCommentGeometry = /* @__PURE__ */ new Map();
2098
+ _hasComments = !1;
2099
+ _reviewOriginPx = 0;
2100
+ _commentScanFrontier = 0;
2101
+ _layoutWaiters = /* @__PURE__ */ new Set();
2102
+ _layoutFailed = !1;
2103
+ _elementHitGeneration = 0;
2104
+ _elementHitTolerance;
2105
+ _destroyed = !1;
2106
+ _slideInFlight = /* @__PURE__ */ new Set();
2107
+ _renderEpoch = 0;
2108
+ _settleTimer = null;
2109
+ _wheelListener = null;
2110
+ _pendingZoomAnchor = null;
2111
+ _resizeObserver = null;
2112
+ _prevBase = 0;
2113
+ _lastFitWidth = 0;
2114
+ _pageShadow;
2115
+ _find = new Xe(() => this.slideCount, (e) => this._collectSlideRuns(e));
2116
+ _findGeneration = 0;
2117
+ _findActive = !1;
2118
+ _findMeasureCtx;
2119
+ static fromPresentation(t, n, r = {}) {
2120
+ return new e(t, {
2121
+ ...r,
2122
+ [en]: n
2123
+ });
2124
+ }
2125
+ constructor(e, t = {}) {
2126
+ if (e.tagName === "CANVAS") throw Error("PptxScrollViewer takes a container element (e.g. a <div>), not a <canvas> — the viewer creates and manages its own canvases. Pass a block container; for the single-slide canvas API use PptxViewer.");
2127
+ this._container = e, this._opts = t, this._errorRouter = new le("PptxScrollViewer", t.onError);
2128
+ let n = t.elementHitTolerance ?? 6;
2129
+ if (!Number.isFinite(n) || n < 0) throw RangeError("elementHitTolerance must be a finite non-negative number.");
2130
+ this._elementHitTolerance = n, this._pageShadow = t.pageShadow ?? Yt;
2131
+ let r = t[en];
2132
+ this._borrowed = r !== void 0, r ? (this._presentationOwner = new w("PptxScrollViewer", r, !1), this._mode = D("PptxScrollViewer", t.mode, r), this._scanAvailableComments(r, !1)) : (this._presentationOwner = new w("PptxScrollViewer"), this._mode = D("PptxScrollViewer", t.mode, void 0)), this._wrapper = document.createElement("div"), this._wrapper.style.cssText = "position:relative;width:100%;height:100%;overflow:hidden;", this._scrollHost = document.createElement("div"), this._scrollHost.style.cssText = "position:absolute;inset:0;overflow:auto;", this._scrollHost.style.scrollbarGutter = "stable", t.background && (this._scrollHost.style.background = t.background), this._spacer = document.createElement("div"), this._spacer.style.cssText = "position:absolute;top:0;left:0;width:1px;height:0;pointer-events:none;", this._scrollHost.appendChild(this._spacer), this._wrapper.appendChild(this._scrollHost), this._container.appendChild(this._wrapper), this._commentsEnabled() && Qt().then((e) => {
2133
+ if (!this._destroyed) {
2134
+ this._commentUi = e;
2135
+ for (let [e, t] of this._slots) this._redrawSlotComments(e, t);
2136
+ }
2137
+ }).catch((e) => this._reportRenderError(e)), t.enableTextSelection && (t.onSelectionContextChange || t.enableElementSelection) && (this._selectionChangeListener = () => this._emitSelectionContextChange(), this._wrapper.ownerDocument.addEventListener("selectionchange", this._selectionChangeListener)), t.enableElementSelection && (this._elementClickListener = (e) => {
2138
+ this._onElementClick(e).catch((e) => this._reportRenderError(e));
2139
+ }, this._scrollHost.addEventListener("click", this._elementClickListener)), t.onContextMenu && (this._contextMenuListener = (e) => this._onContextMenu(e), this._scrollHost.addEventListener("contextmenu", this._contextMenuListener)), this._scrollListener = () => this._onScroll(), this._scrollHost.addEventListener("scroll", this._scrollListener), t.comments && (this._commentOutsidePointerListener = (e) => {
2140
+ if (!Se(e, this._wrapper, "ooxmlCommentId") && this._activeCommentId !== null) {
2141
+ this._activeCommentId = null, this._activeCommentSlide = null;
2142
+ for (let [e, t] of this._slots) this._redrawSlotComments(e, t);
2143
+ this._emitSelectionContextChange();
2144
+ }
2145
+ }, this._wrapper.ownerDocument.addEventListener("pointerdown", this._commentOutsidePointerListener)), this._opts.enableZoom !== !1 && (this._wheelListener = (e) => {
2146
+ if (!(e.ctrlKey || e.metaKey) || (e.preventDefault(), e.deltaY === 0)) return;
2147
+ let t = this._scrollHost.getBoundingClientRect(), n = e.clientX - t.left, r = e.clientY - t.top;
2148
+ this._pendingZoomAnchor = Number.isFinite(n) && Number.isFinite(r) ? {
2149
+ x: n,
2150
+ y: r
2151
+ } : null, this.setScale(me(this._scale, e.deltaY, e.deltaMode));
2152
+ }, this._scrollHost.addEventListener("wheel", this._wheelListener, { passive: !1 })), typeof ResizeObserver < "u" && (this._resizeObserver = new ResizeObserver(() => this._onResize()), this._resizeObserver.observe(this._container)), this._borrowed && (this._bindLayoutPresentation(r), this.relayout());
2153
+ }
2154
+ async load(e) {
2155
+ if (this._destroyed) throw Error("PptxScrollViewer is destroyed");
2156
+ if (this._borrowed) throw Error("PptxScrollViewer.load() is unsupported on a Viewer created by fromPresentation(); the borrowed presentation is already loaded.");
2157
+ let t = !1;
2158
+ try {
2159
+ let n = await this._presentationOwner.replace(() => J.load(e, {
2160
+ password: this._opts.password,
2161
+ useGoogleFonts: this._opts.useGoogleFonts,
2162
+ cjkFallback: this._opts.cjkFallback,
2163
+ maxZipEntryBytes: this._opts.maxZipEntryBytes,
2164
+ resourceLimits: this._opts.resourceLimits,
2165
+ debug: this._opts.debug,
2166
+ onResourceMetrics: this._opts.onResourceMetrics,
2167
+ workerTimeoutMs: this._opts.workerTimeoutMs,
2168
+ wasmUrl: this._opts.wasmUrl,
2169
+ math: this._opts.math,
2170
+ threeD: this._opts.threeD,
2171
+ regionMap: this._opts.regionMap,
2172
+ chartEx: this._opts.chartEx,
2173
+ tiff: this._opts.tiff,
2174
+ mode: this._mode,
2175
+ progressiveLayout: this._opts.progressiveLayout,
2176
+ onLayoutProgress: this._opts.onLayoutProgress,
2177
+ onLayoutPartial: this._opts.onLayoutPartial,
2178
+ onLayoutComplete: this._opts.onLayoutComplete
2179
+ }), (e) => {
2180
+ if (this._invalidateElementSelection(!1), t = !0, this._invalidateFind(), this._findActive = !1, this._activeCommentId = null, this._activeCommentSlide = null, this._hasComments = !1, this._commentScanFrontier = 0, this._beginCommentNavigation(), this._unbindLayoutPresentation(), e) {
2181
+ for (let [e, t] of [...this._slots]) this._recycleSlot(e, t);
2182
+ this._lastTopIndex = -1;
2183
+ }
2184
+ });
2185
+ if (!n) return;
2186
+ if (this._destroyed) throw Error("PptxScrollViewer is destroyed");
2187
+ this._invalidateFind(), this._findActive = !1, this._activeCommentId = null, this._activeCommentSlide = null, this._hasComments = !1, this._commentScanFrontier = 0, this._scanAvailableComments(n, !1), this._bindLayoutPresentation(n);
2188
+ let r = [];
2189
+ this._relayout(r), await Promise.all(r);
2190
+ } catch (e) {
2191
+ throw this._destroyed ? Error("PptxScrollViewer is destroyed") : e instanceof Error ? e : Error(String(e));
2192
+ }
2193
+ t && !this._destroyed && this._emitSelectionContextChange();
2194
+ }
2195
+ get slideCount() {
2196
+ return this._pres?.slideCount ?? 0;
2197
+ }
2198
+ get availableSlideCount() {
2199
+ return this._pres?.availableSlideCount ?? this.slideCount;
2200
+ }
2201
+ get layoutComplete() {
2202
+ return this._pres?.layoutComplete ?? !0;
2203
+ }
2204
+ async waitUntilLayoutComplete() {
2205
+ await this._errorRouter.ownBackgroundLifecycle(async () => {
2206
+ await this._pres?.waitUntilLayoutComplete?.();
2207
+ });
2208
+ }
2209
+ _slideWidthPx() {
2210
+ return this._pres.slideWidth / k * this._scale;
2211
+ }
2212
+ _slideHeightPx() {
2213
+ return this._pres.slideHeight / k * this._scale;
2214
+ }
2215
+ _fitWidthPx() {
2216
+ if (this._opts.width && this._opts.width > 0) return this._opts.width;
2217
+ let e = this._scrollHost.clientWidth || this._container.clientWidth;
2218
+ if (e <= 0) return 0;
2219
+ let { left: t, right: n } = this._padH(), r = e - t - n;
2220
+ return r <= 0 ? 0 : r;
2221
+ }
2222
+ _commentMarginExtent() {
2223
+ return this._hasCommentMargin() ? (Xt + $) * this._commentZoom() : 0;
2224
+ }
2225
+ _hasCommentMargin() {
2226
+ return this._commentsEnabled() && this._hasComments && this._commentsOptions()?.cards !== !1;
2227
+ }
2228
+ _commentZoom() {
2229
+ return this._scaleEstablished ? this._scale : 1;
2230
+ }
2231
+ _commentsEnabled() {
2232
+ return this._opts.comments === !0 || typeof this._opts.comments == "object";
2233
+ }
2234
+ _commentsOptions() {
2235
+ return typeof this._opts.comments == "object" ? this._opts.comments : void 0;
2236
+ }
2237
+ _commentSide() {
2238
+ let e = this._commentsOptions()?.side;
2239
+ return e === "left" || e === "right" ? e : (this._container.ownerDocument.defaultView?.getComputedStyle?.(this._container).direction || this._container.dir || this._container.style.direction) === "rtl" ? "left" : "right";
2240
+ }
2241
+ _syncCommentMarginGeometry(e) {
2242
+ if (!e) return;
2243
+ e.style.display = this._hasCommentMargin() ? "" : "none";
2244
+ let t = this._commentZoom(), n = `calc(100% + ${Xt * t}px)`;
2245
+ e.style.left = this._commentSide() === "right" ? n : "", e.style.right = this._commentSide() === "left" ? n : "", e.style.width = `${$ * t}px`, e.style.fontSize = `${$t}px`, e.dataset.ooxmlCommentZoom = String(t);
2246
+ }
2247
+ _scanAvailableComments(e, t) {
2248
+ if (!this._commentsEnabled() || this._hasComments) return;
2249
+ let n = this._commentsOptions()?.includeResolved === !0, r = Math.min(e.availableSlideCount, e.slideCount);
2250
+ for (let i = this._commentScanFrontier; i < r; i++) if (e.getComments(i).some((e) => n || e.status !== "resolved" && e.status !== "closed")) {
2251
+ this._commentScanFrontier = r, this._hasComments = !0, t && this._refreshDiscoveredComments();
2252
+ return;
2253
+ }
2254
+ this._commentScanFrontier = Math.max(this._commentScanFrontier, r);
2255
+ }
2256
+ _refreshDiscoveredComments() {
2257
+ this._syncSpacerWidth();
2258
+ for (let [e, t] of this._slots) this._redrawSlotComments(e, t);
2259
+ }
2260
+ _baseScale() {
2261
+ if (!this._pres || this._pres.slideCount === 0) return 0;
2262
+ let e = this._fitWidthPx(), t = this._pres.slideWidth / k;
2263
+ return e <= 0 || t <= 0 ? 0 : e / t;
2264
+ }
2265
+ relayout() {
2266
+ this._relayout();
2267
+ }
2268
+ _relayout(e) {
2269
+ if (this._pres) {
2270
+ if (!this._scaleEstablished) {
2271
+ let e = this._baseScale();
2272
+ if (e > 0) {
2273
+ if (this._scale = e, this._prevBase = e, this._lastFitWidth = this._fitWidthPx(), this._scaleEstablished = !0, this._pendingScale !== null) {
2274
+ let e = this._pendingScale;
2275
+ this._pendingScale = null, e !== this._scale && (this._scale = e, this._opts.onScaleChange?.(e));
2276
+ }
2277
+ } else return;
2278
+ }
2279
+ this._recomputeHeights(), this._syncSpacer(), this._mountVisible(e);
2280
+ }
2281
+ }
2282
+ _recomputeHeights() {
2283
+ this._uniformSlideHeight = this._slideHeightPx();
2284
+ }
2285
+ _gap() {
2286
+ return this._opts.gap ?? 16;
2287
+ }
2288
+ _overscan() {
2289
+ return this._opts.overscan ?? 1;
2290
+ }
2291
+ _mediaOverscan() {
2292
+ return this._opts.mediaOverscan ?? 1;
2293
+ }
2294
+ _pad() {
2295
+ let e = this._gap();
2296
+ return {
2297
+ leading: this._opts.paddingTop ?? e,
2298
+ trailing: this._opts.paddingBottom ?? e
2299
+ };
2300
+ }
2301
+ _padH() {
2302
+ let e = this._gap();
2303
+ return {
2304
+ left: this._opts.paddingLeft ?? e,
2305
+ right: this._opts.paddingRight ?? e
2306
+ };
2307
+ }
2308
+ _slideOffset(e) {
2309
+ return this._pad().leading + e * (this._uniformSlideHeight + this._gap());
2310
+ }
2311
+ _slideIndexAtOffset(e) {
2312
+ return ge(this._pres?.slideCount ?? 0, this._uniformSlideHeight, this._gap(), e, 0, 0, this._pad()).topIndex;
2313
+ }
2314
+ _rangeAt(e, t) {
2315
+ return ge(this._pres?.slideCount ?? 0, this._uniformSlideHeight, this._gap(), e, this._scrollHost.clientHeight, t, this._pad());
2316
+ }
2317
+ _range() {
2318
+ return this._rangeAt(this._scrollHost.scrollTop, this._overscan());
2319
+ }
2320
+ _mediaRange() {
2321
+ return this._rangeAt(this._scrollHost.scrollTop, this._mediaOverscan());
2322
+ }
2323
+ _rangeContains(e, t) {
2324
+ return t >= e.start && t <= e.end;
2325
+ }
2326
+ _syncSpacer() {
2327
+ let e = this._range();
2328
+ this._lastRange = e, this._spacer.style.height = `${e.totalHeight}px`, this._syncSpacerWidth();
2329
+ }
2330
+ _syncSpacerWidth() {
2331
+ let { left: e, right: t } = this._padH(), n = this._commentMarginExtent(), r = this._commentSide() === "left" ? n : 0, i = r - this._reviewOriginPx, a = Math.max(0, this._scrollHost.scrollLeft + i);
2332
+ this._spacer.style.width = `${this._slideWidthPx() + n + e + t}px`, i !== 0 && (this._reviewOriginPx = r, this._scrollHost.style["--ooxml-review-origin-x"] = `${r}px`, this._scrollHost.scrollLeft = a);
2333
+ }
2334
+ _onScroll() {
2335
+ !this._pres || !this._scaleEstablished || this._mountVisible(void 0, !1);
2336
+ }
2337
+ _mountVisible(e, t = !0) {
2338
+ if (!this._pres || this._pres.slideCount === 0) return;
2339
+ let n = this._range(), r = this._opts.enableMediaPlayback ? this._mediaRange() : null;
2340
+ this._lastRange = n;
2341
+ for (let [e, t] of [...this._slots]) (e < n.start || e > n.end) && this._recycleSlot(e, t);
2342
+ for (let i = n.start; i <= n.end; i++) if (this._slots.has(i)) t && this._positionSlot(this._slots.get(i), i, n);
2343
+ else {
2344
+ let t = this._acquireSlot();
2345
+ this._positionSlot(t, i, n), this._slots.set(i, t), this._redrawSlotComments(i, t);
2346
+ let a = this._renderSlot(i, t, !!r && this._rangeContains(r, i), e === void 0);
2347
+ e && a && i < this.availableSlideCount && e.push(a);
2348
+ }
2349
+ r && this._syncMediaPlayback(r), this._emitVisibleSlideChange(n);
2350
+ }
2351
+ _applyPageShadow(e) {
2352
+ this._pageShadow !== !1 && (e.style.boxShadow = this._pageShadow);
2353
+ }
2354
+ _acquireSlot() {
2355
+ let e = this._free.pop();
2356
+ if (e) return this._scrollHost.appendChild(e.wrapper), e;
2357
+ let t = document.createElement("div");
2358
+ t.style.cssText = "position:absolute;";
2359
+ let n = document.createElement("canvas");
2360
+ n.style.cssText = "display:block;background:#fff;", this._applyPageShadow(n), t.appendChild(n);
2361
+ let r = null;
2362
+ this._opts.enableTextSelection && (r = document.createElement("div"), r.style.cssText = "position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;pointer-events:none;user-select:text;-webkit-user-select:text;", t.appendChild(r));
2363
+ let i = document.createElement("div");
2364
+ i.style.cssText = "position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;pointer-events:none;", t.appendChild(i);
2365
+ let a = Gt(document);
2366
+ t.appendChild(a);
2367
+ let o = null, s = null, c = null;
2368
+ this._commentsEnabled() && (o = document.createElement("div"), o.style.cssText = "position:absolute;inset:0;overflow:hidden;pointer-events:none;", t.appendChild(o), this._commentsOptions()?.cards !== !1 && (s = document.createElement("div"), s.style.cssText = "position:absolute;top:0;height:100%;box-sizing:border-box;overflow-x:hidden;overflow-y:auto;pointer-events:auto;", this._syncCommentMarginGeometry(s), this._commentsOptions()?.connectors !== void 0 && (c = document.createElement("div"), c.style.cssText = "position:absolute;top:0;left:0;overflow:visible;pointer-events:none;", t.appendChild(c)), t.appendChild(s)));
2369
+ let l = se(t, this._opts.enableElementSelection === !0);
2370
+ return this._scrollHost.appendChild(t), {
2371
+ wrapper: t,
2372
+ canvas: n,
2373
+ textLayer: r,
2374
+ highlightLayer: i,
2375
+ elementLayer: l,
2376
+ loadingLayer: a,
2377
+ commentMarkerLayer: o,
2378
+ commentMargin: s,
2379
+ commentDecorationLayer: c,
2380
+ commentElementBounds: Object.freeze([]),
2381
+ commentGeometry: null,
2382
+ commentAnchorSlide: -1,
2383
+ commentAnchorGeneration: 0,
2384
+ renderedSlide: -1,
2385
+ renderedScale: -1,
2386
+ dispatcher: new E(n, this._mode === "worker" && !this._opts.enableMediaPlayback),
2387
+ presentationHandle: null,
2388
+ mediaInteractive: !1,
2389
+ renderGeneration: 0,
2390
+ presentationGeneration: 0
2391
+ };
2392
+ }
2393
+ _recycleSlot(e, t) {
2394
+ this._slots.delete(e), t.renderGeneration++, t.presentationGeneration++, t.presentationHandle?.destroy(), t.presentationHandle = null, t.mediaInteractive = !1, t.dispatcher.destroy(), this._destroyed || (t.dispatcher = new E(t.canvas, this._mode === "worker" && !this._opts.enableMediaPlayback)), t.textLayer && (t.textLayer.innerHTML = "", this._clearTextLayerPreview(t.textLayer)), t.highlightLayer.innerHTML = "", t.highlightLayer.style.transform = "", t.highlightLayer.style.transformOrigin = "", t.loadingLayer.style.display = "none", t.commentMarkerLayer && (t.commentMarkerLayer.replaceChildren(), t.commentMarkerLayer.style.visibility = ""), t.commentMargin && (this._commentUi?.disposeReadOnlyCommentMargin(t.commentMargin), this._commentUi || t.commentMargin.replaceChildren(), t.commentMargin.style.visibility = ""), t.commentDecorationLayer && (this._commentUi?.disposeReadOnlyCommentDecoration(t.commentDecorationLayer), this._commentUi || t.commentDecorationLayer.replaceChildren(), t.commentDecorationLayer.style.visibility = ""), t.commentElementBounds = Object.freeze([]), t.commentGeometry = null, t.commentAnchorSlide = -1, t.commentAnchorGeneration++, T(t.elementLayer, null), t.canvas.style.height = "", t.renderedSlide = -1, t.renderedScale = -1, t.wrapper.remove(), this._free.push(t);
2395
+ }
2396
+ _positionSlot(e, t, n) {
2397
+ e.wrapper.dataset.slideIndex = String(t), e.wrapper.style.top = `${this._slideOffset(t)}px`;
2398
+ let r = this._slideWidthPx();
2399
+ if (e.wrapper.style.width = `${r}px`, e.wrapper.style.height = `${this._slideHeightPx()}px`, this._syncCommentMarginGeometry(e.commentMargin), e.commentDecorationLayer) {
2400
+ let t = this._commentMarginExtent();
2401
+ e.commentDecorationLayer.style.left = this._commentSide() === "left" ? `${-t}px` : "0px", e.commentDecorationLayer.style.width = `${r + t}px`, e.commentDecorationLayer.style.height = `${this._slideHeightPx()}px`;
2402
+ }
2403
+ this._redrawElementOutlineForSlot(t, e);
2404
+ let { left: i } = this._padH(), a = Math.max(i, (this._scrollHost.clientWidth - r) / 2);
2405
+ e.wrapper.style.left = this._commentSide() === "left" && this._commentsEnabled() ? `calc(${a}px + var(--ooxml-review-origin-x, 0px))` : `${a}px`;
2406
+ }
2407
+ _dpr() {
2408
+ return this._opts.dpr ?? (typeof window < "u" && window.devicePixelRatio || 1);
2409
+ }
2410
+ _renderSlot(e, t, n = !1, r = !0) {
2411
+ if (!this._pres || t.renderedSlide === e) return null;
2412
+ if (e >= this.availableSlideCount && !this.layoutComplete) return t.renderedSlide = -1, t.mediaInteractive = !1, t.loadingLayer.style.display = "flex", null;
2413
+ t.renderedSlide = e;
2414
+ let i = ++t.renderGeneration;
2415
+ t.loadingLayer.style.display = e >= this.availableSlideCount && !this.layoutComplete ? "flex" : "none";
2416
+ let a = this._dpr(), o = this._slideWidthPx(), s = this._renderEpoch, c = this._scale, l = t.dispatcher, u = l.begin();
2417
+ if (this._opts.enableMediaPlayback && n) return t.mediaInteractive = !0, this._trackSlotLoading(e, t, i, this._renderInteractiveSlot(e, t, o, a, c, s, r));
2418
+ if (t.mediaInteractive = !1, this._mode === "worker") return this._trackSlotLoading(e, t, i, this._renderSlotBitmap(e, t, o, a, c, i, l, u, r));
2419
+ let d = [], f = !!this._opts.enableTextSelection && !!t.textLayer, p = f || this._findActive, m = p ? (e) => d.push(e) : void 0, h = t.canvas;
2420
+ return this._trackSlotLoading(e, t, i, Z(this._pres, h, e, "main", {
2421
+ width: o,
2422
+ dpr: a,
2423
+ imageResources: this._opts.imageResources,
2424
+ onTextRun: m
2425
+ }).then(() => {
2426
+ i !== t.renderGeneration || !l.isCurrent(u) || h !== t.canvas || s !== this._renderEpoch || this._slots.get(e) !== t || t.renderedSlide !== e || (t.renderedScale = c, f && t.textLayer && I(t.textLayer, d, Math.round(o), Math.round(this._slideHeightPx()), this._hyperlinkHandler(), e), p && this._refreshFindRuns(e, d), this._commitSlotComments(e, t), this._redrawSlotHighlights(e, t));
2427
+ }).catch((n) => {
2428
+ if (i === t.renderGeneration && l.isCurrent(u) && h === t.canvas && s === this._renderEpoch && this._slots.get(e) === t && t.renderedSlide === e) if (r) this._reportRenderError(n);
2429
+ else throw n;
2430
+ }));
2431
+ }
2432
+ async _trackSlotLoading(e, t, n, r) {
2433
+ try {
2434
+ await r;
2435
+ } finally {
2436
+ n === t.renderGeneration && this._slots.get(e) === t && t.renderedSlide === e && (t.loadingLayer.style.display = "none");
2437
+ }
2438
+ }
2439
+ _bindLayoutPresentation(e) {
2440
+ this._unbindLayoutPresentation();
2441
+ let t = !0;
2442
+ this._layoutUnsubscribe = Bt(e, () => ({
2443
+ availableSlides: e.availableSlideCount,
2444
+ slideCount: e.slideCount,
2445
+ exact: e.layoutComplete,
2446
+ complete: e.layoutComplete
2447
+ }), (n) => {
2448
+ if (t) {
2449
+ t = !1;
2450
+ return;
2451
+ }
2452
+ this._onLayoutPublication(e, n);
2453
+ }, (e) => this._reportRenderError(e));
2454
+ }
2455
+ _unbindLayoutPresentation() {
2456
+ this._layoutUnsubscribe?.(), this._layoutUnsubscribe = null, this._layoutFailed = !1, this._wakeLayoutWaiters();
2457
+ }
2458
+ _onLayoutPublication(e, t) {
2459
+ if (this._destroyed || e !== this._pres) return;
2460
+ if (this._wakeLayoutWaiters(), t.error !== void 0) {
2461
+ this._layoutFailed = !0, this._errorRouter.reportBackground(t.error, this._opts.onLayoutComplete !== void 0);
2462
+ return;
2463
+ }
2464
+ this._scanAvailableComments(e, !0);
2465
+ let n = this._opts.enableMediaPlayback ? this._mediaRange() : null;
2466
+ for (let [t, r] of this._slots) t >= e.availableSlideCount || r.renderedSlide === t || this._renderSlot(t, r, !!n && this._rangeContains(n, t));
2467
+ this._lastRange && this._emitVisibleSlideChange(this._lastRange);
2468
+ }
2469
+ _wakeLayoutWaiters() {
2470
+ for (let e of this._layoutWaiters) e();
2471
+ this._layoutWaiters.clear();
2472
+ }
2473
+ _beginCommentNavigation() {
2474
+ let e = ++this._commentNavigationGeneration;
2475
+ return this._wakeLayoutWaiters(), e;
2476
+ }
2477
+ async _waitForSlideMetadata(e, t, n) {
2478
+ return await this._errorRouter.ownBackgroundLifecycle(async () => {
2479
+ for (; !this._destroyed && n === this._commentNavigationGeneration && e === this._pres && t >= e.availableSlideCount && !e.layoutComplete && !this._layoutFailed;) await new Promise((e) => this._layoutWaiters.add(e));
2480
+ return this._destroyed || e !== this._pres || ((e.layoutComplete || this._layoutFailed) && await e.waitUntilLayoutComplete?.(), n !== this._commentNavigationGeneration) ? !1 : t < e.availableSlideCount;
2481
+ });
2482
+ }
2483
+ _emitVisibleSlideChange(e) {
2484
+ if (!this._pres) return;
2485
+ let t = this._pres.slideCount, n = this.layoutComplete;
2486
+ e.topIndex === this._lastTopIndex && t === this._lastReportedTotal && n === this._lastReportedLayoutComplete || (this._lastTopIndex = e.topIndex, this._lastReportedTotal = t, this._lastReportedLayoutComplete = n, this._opts.onVisibleSlideChange?.(e.topIndex, t, n));
2487
+ }
2488
+ _renderInteractiveSlot(e, t, n, r, i, a, o = !0) {
2489
+ if (!this._pres) return Promise.resolve();
2490
+ let s = ++t.presentationGeneration;
2491
+ t.presentationHandle?.destroy(), t.presentationHandle = null;
2492
+ let c = [], l = !!this._opts.enableTextSelection && !!t.textLayer, u = l || this._findActive, d = u ? (e) => c.push(e) : void 0;
2493
+ return this._pres.presentSlide(t.canvas, e, {
2494
+ width: n,
2495
+ dpr: r,
2496
+ imageResources: this._opts.imageResources,
2497
+ onTextRun: d,
2498
+ onError: (e) => {
2499
+ s === t.presentationGeneration && this._reportRenderError(e);
2500
+ }
2501
+ }).then((r) => {
2502
+ if (s !== t.presentationGeneration || !t.mediaInteractive || a !== this._renderEpoch || this._slots.get(e) !== t || t.renderedSlide !== e) {
2503
+ r.destroy();
2504
+ return;
2505
+ }
2506
+ t.presentationHandle = r, t.renderedScale = i, l && t.textLayer && I(t.textLayer, c, Math.round(n), Math.round(this._slideHeightPx()), this._hyperlinkHandler(), e), u && this._refreshFindRuns(e, c), this._commitSlotComments(e, t), this._redrawSlotHighlights(e, t);
2507
+ }).catch((e) => {
2508
+ if (s === t.presentationGeneration) if (o) this._reportRenderError(e);
2509
+ else throw e;
2510
+ });
2511
+ }
2512
+ _syncMediaPlayback(e = this._mediaRange()) {
2513
+ if (this._opts.enableMediaPlayback) for (let [t, n] of this._slots) {
2514
+ let r = this._rangeContains(e, t);
2515
+ r !== n.mediaInteractive && (r ? (n.mediaInteractive = !0, this._settleInteractiveSlot(t, n, this._slideWidthPx(), this._dpr(), this._scale, this._renderEpoch)) : (n.mediaInteractive = !1, n.presentationGeneration++, n.presentationHandle?.destroy(), n.presentationHandle = null));
2516
+ }
2517
+ }
2518
+ _reportRenderError(e) {
2519
+ this._errorRouter.report(e);
2520
+ }
2521
+ async _renderSlotBitmap(e, t, n, r, i, a = ++t.renderGeneration, o = t.dispatcher, s = o.begin(), c = !0) {
2522
+ if (this._slideInFlight.has(e) || this._slots.get(e) !== t) return;
2523
+ let l = this._renderEpoch;
2524
+ this._slideInFlight.add(e);
2525
+ let u = t.canvas, d = !1, f = !!this._opts.enableTextSelection && !!t.textLayer, p = f || this._findActive, m = [];
2526
+ try {
2527
+ let c = await Z(this._pres, u, e, "worker", {
2528
+ width: n,
2529
+ dpr: r,
2530
+ imageResources: this._opts.imageResources,
2531
+ onTextRun: p ? (e) => m.push(e) : void 0
2532
+ });
2533
+ if (a !== t.renderGeneration || !o.isCurrent(s) || u !== t.canvas || l !== this._renderEpoch || this._slots.get(e) !== t || t.renderedSlide !== e) {
2534
+ c.close();
2535
+ return;
2536
+ }
2537
+ let h = {
2538
+ cssWidth: Math.round(n),
2539
+ cssHeight: Math.round(this._slideHeightPx())
2540
+ };
2541
+ if (!(this._opts.enableMediaPlayback ? o.commitBitmapTo2d(s, c, h) : o.commitBitmap(s, c, h))) return;
2542
+ t.renderedScale = i, t.textLayer && (this._clearTextLayerPreview(t.textLayer), f && I(t.textLayer, m, Math.round(n), Math.round(this._slideHeightPx()), this._hyperlinkHandler(), e)), p && this._refreshFindRuns(e, m), this._commitSlotComments(e, t), this._redrawSlotHighlights(e, t), d = !0;
2543
+ } catch (n) {
2544
+ if (a === t.renderGeneration && o.isCurrent(s) && u === t.canvas && l === this._renderEpoch && this._slots.get(e) === t && t.renderedSlide === e) if (c) this._reportRenderError(n);
2545
+ else throw n;
2546
+ } finally {
2547
+ this._slideInFlight.delete(e);
2548
+ let n = this._slots.get(e);
2549
+ if (!d && n && (n !== t || l !== this._renderEpoch || a !== n.renderGeneration || !o.isCurrent(s)) && !this._slideInFlight.has(e) && !this._destroyed && !(this._opts.enableMediaPlayback && n.mediaInteractive)) {
2550
+ let t = n.dispatcher;
2551
+ await this._renderSlotBitmap(e, n, this._slideWidthPx(), this._dpr(), this._scale, ++n.renderGeneration, t, t.begin(), c);
2552
+ }
2553
+ }
2554
+ }
2555
+ setScale(e) {
2556
+ let t = this._effectiveZoomMin(), n = this._opts.zoomMax ?? 4, r = Math.min(n, Math.max(t, e)), i = this._pendingZoomAnchor;
2557
+ if (this._pendingZoomAnchor = null, !this._pres || this._pres.slideCount === 0 || !this._scaleEstablished) {
2558
+ this._pendingScale = r;
2559
+ return;
2560
+ }
2561
+ if (r === this._scale) return;
2562
+ let a = this._scale, o = i ? i.y : 0, s = this._scrollHost.scrollTop, c = s + o, l = this._slideIndexAtOffset(c), u = this._uniformSlideHeight, d = u > 0 ? (c - this._slideOffset(l)) / u : 0;
2563
+ d = Math.min(1, Math.max(0, d));
2564
+ let f = this._padH().left, p = this._scrollHost.scrollLeft || 0;
2565
+ this._renderEpoch++, this._scale = r, this._recomputeHeights();
2566
+ let m = this._rangeAt(0, this._overscan());
2567
+ this._spacer.style.height = `${m.totalHeight}px`, this._syncSpacerWidth();
2568
+ let h = Math.max(0, m.totalHeight - this._scrollHost.clientHeight), g = this._slideOffset(l) + d * this._uniformSlideHeight, _ = c < this._slideOffset(0) ? s : g - o;
2569
+ if (this._scrollHost.scrollTop = Math.min(h, Math.max(0, _)), i) {
2570
+ let e = Math.max(0, (this._spacer.offsetWidth || 0) - this._scrollHost.clientWidth);
2571
+ this._scrollHost.scrollLeft = ee(p, i.x - f, a, r, { maxScroll: e });
2572
+ }
2573
+ this._previewVisible(), this._scheduleSettle(), this._opts.onScaleChange?.(r);
2574
+ }
2575
+ getScale() {
2576
+ return this._scaleEstablished ? this._scale : this._pendingScale ?? 1;
2577
+ }
2578
+ zoomIn() {
2579
+ this.setScale(fe(this.getScale()));
2580
+ }
2581
+ zoomOut() {
2582
+ this.setScale(he(this.getScale(), this._effectiveZoomMin()));
2583
+ }
2584
+ _effectiveZoomMin() {
2585
+ let e = this._opts.zoomMin ?? .1;
2586
+ return this._scaleEstablished && this._prevBase > 0 ? Math.min(e, this._prevBase) : e;
2587
+ }
2588
+ fitWidth() {
2589
+ this._fit("width");
2590
+ }
2591
+ fitPage() {
2592
+ this._fit("page");
2593
+ }
2594
+ _fit(e) {
2595
+ if (!this._pres || this._pres.slideCount === 0) return;
2596
+ let t = C({
2597
+ contentWidth: this._pres.slideWidth / k,
2598
+ contentHeight: this._pres.slideHeight / k,
2599
+ containerWidth: this._fitWidthPx(),
2600
+ containerHeight: this._scrollHost.clientHeight
2601
+ }, e);
2602
+ t <= 0 || this.setScale(t);
2603
+ }
2604
+ _previewVisible() {
2605
+ if (!this._pres || this._pres.slideCount === 0) return;
2606
+ let e = this._range(), t = this._opts.enableMediaPlayback ? this._mediaRange() : null;
2607
+ this._lastRange = e;
2608
+ for (let [t, n] of [...this._slots]) (t < e.start || t > e.end) && this._recycleSlot(t, n);
2609
+ for (let n = e.start; n <= e.end; n++) {
2610
+ let r = this._slots.get(n);
2611
+ if (r) this._previewSlot(r, n, e);
2612
+ else {
2613
+ let r = this._acquireSlot();
2614
+ this._positionSlot(r, n, e), this._slots.set(n, r), this._redrawSlotComments(n, r), this._renderSlot(n, r, !!t && this._rangeContains(t, n));
2615
+ }
2616
+ }
2617
+ t && this._syncMediaPlayback(t), this._emitVisibleSlideChange(e);
2618
+ }
2619
+ _previewSlot(e, t, n) {
2620
+ if (this._positionSlot(e, t, n), e.canvas.style.width = `${this._slideWidthPx()}px`, e.canvas.style.height = `${this._slideHeightPx()}px`, e.textLayer && e.renderedScale > 0) {
2621
+ let t = this._scale / e.renderedScale;
2622
+ e.textLayer.style.transformOrigin = "0 0", e.textLayer.style.width = `${this._slideWidthPx() / t}px`, e.textLayer.style.height = `${this._slideHeightPx() / t}px`, e.textLayer.style.transform = `scale(${t})`;
2623
+ }
2624
+ if (e.renderedScale > 0) {
2625
+ let t = this._scale / e.renderedScale, n = Math.round(t * 1e6) / 1e6;
2626
+ e.commentMargin && this._commentUi?.previewReadOnlyCommentMargin(e.commentMargin, t);
2627
+ for (let t of e.commentMarkerLayer?.children ?? []) t.dataset.ooxmlCommentMarker !== void 0 && (t.style.transform = `translate(-50%,-50%) scale(${n})`);
2628
+ e.commentMarkerLayer && (e.commentMarkerLayer.style.visibility = ""), e.commentMargin && (e.commentMargin.style.visibility = ""), e.commentDecorationLayer && (e.commentDecorationLayer.style.visibility = "");
2629
+ return;
2630
+ }
2631
+ e.commentMarkerLayer && (e.commentMarkerLayer.style.visibility = "hidden"), e.commentMargin && (e.commentMargin.style.visibility = "hidden"), e.commentDecorationLayer && (e.commentDecorationLayer.style.visibility = "hidden");
2632
+ }
2633
+ _clearTextLayerPreview(e) {
2634
+ e.style.transform = "", e.style.transformOrigin = "", e.style.width = "100%", e.style.height = "100%";
2635
+ }
2636
+ _scheduleSettle() {
2637
+ this._settleTimer !== null && clearTimeout(this._settleTimer), this._settleTimer = setTimeout(() => {
2638
+ this._settleTimer = null, this._settleRender();
2639
+ }, Jt);
2640
+ }
2641
+ _settleRender() {
2642
+ if (this._destroyed || !this._pres || this._pres.slideCount === 0) return;
2643
+ let e = this._opts.enableMediaPlayback ? this._mediaRange() : null;
2644
+ for (let [t, n] of [...this._slots]) e && !this._rangeContains(e, t) || n.renderedScale !== this._scale && this._settleSlot(t, n);
2645
+ }
2646
+ _settleSlot(e, t) {
2647
+ if (!this._pres) return;
2648
+ let n = this._dpr(), r = this._slideWidthPx(), i = this._scale, a = this._renderEpoch;
2649
+ if (this._opts.enableMediaPlayback && t.mediaInteractive) {
2650
+ this._settleInteractiveSlot(e, t, r, n, i, a);
2651
+ return;
2652
+ }
2653
+ if (this._opts.enableMediaPlayback) return;
2654
+ if (this._mode === "worker") {
2655
+ this._renderSlotBitmap(e, t, r, n, i);
2656
+ return;
2657
+ }
2658
+ let o = document.createElement("canvas"), s = ++t.renderGeneration;
2659
+ o.style.cssText = "display:block;background:#fff;", this._applyPageShadow(o);
2660
+ let c = new E(o, !1), l = c.begin(), u = [], d = !!this._opts.enableTextSelection && !!t.textLayer, f = d || this._findActive, p = f ? (e) => u.push(e) : void 0;
2661
+ Z(this._pres, o, e, "main", {
2662
+ width: r,
2663
+ dpr: n,
2664
+ onTextRun: p
2665
+ }).then(() => {
2666
+ if (s !== t.renderGeneration || !c.isCurrent(l) || a !== this._renderEpoch || this._slots.get(e) !== t || t.renderedSlide !== e) {
2667
+ c.destroy();
2668
+ return;
2669
+ }
2670
+ let n = t.canvas;
2671
+ t.dispatcher.destroy(), t.wrapper.insertBefore(o, n), n.remove(), t.canvas = o, t.dispatcher = c, t.renderedScale = i, t.textLayer && (this._clearTextLayerPreview(t.textLayer), d && I(t.textLayer, u, Math.round(r), Math.round(this._slideHeightPx()), this._hyperlinkHandler(), e)), f && this._refreshFindRuns(e, u), this._commitSlotComments(e, t), this._redrawSlotHighlights(e, t);
2672
+ }).catch((n) => {
2673
+ s === t.renderGeneration && c.isCurrent(l) && a === this._renderEpoch && this._slots.get(e) === t && t.renderedSlide === e && this._reportRenderError(n), c.destroy();
2674
+ });
2675
+ }
2676
+ _settleInteractiveSlot(e, t, n, r, i, a) {
2677
+ if (!this._pres) return;
2678
+ let o = ++t.presentationGeneration, s = document.createElement("canvas");
2679
+ s.style.cssText = "display:block;background:#fff;", this._applyPageShadow(s);
2680
+ let c = [], l = !!this._opts.enableTextSelection && !!t.textLayer, u = l || this._findActive, d = u ? (e) => c.push(e) : void 0;
2681
+ this._pres.presentSlide(s, e, {
2682
+ width: n,
2683
+ dpr: r,
2684
+ onTextRun: d,
2685
+ onError: (e) => {
2686
+ o === t.presentationGeneration && this._reportRenderError(e);
2687
+ }
2688
+ }).then((r) => {
2689
+ if (o !== t.presentationGeneration || !t.mediaInteractive || a !== this._renderEpoch || this._slots.get(e) !== t || t.renderedSlide !== e) {
2690
+ r.destroy();
2691
+ return;
2692
+ }
2693
+ let d = t.canvas, f = t.presentationHandle;
2694
+ t.dispatcher.destroy(), t.wrapper.insertBefore(s, d), d.remove(), t.canvas = s, t.dispatcher = new E(s, !1), t.presentationHandle = r, t.renderedScale = i, f?.destroy(), t.textLayer && (this._clearTextLayerPreview(t.textLayer), l && I(t.textLayer, c, Math.round(n), Math.round(this._slideHeightPx()), this._hyperlinkHandler(), e)), u && this._refreshFindRuns(e, c), this._commitSlotComments(e, t), this._redrawSlotHighlights(e, t);
2695
+ }).catch((e) => {
2696
+ o === t.presentationGeneration && this._reportRenderError(e);
2697
+ });
2698
+ }
2699
+ scrollToSlide(e, t) {
2700
+ if (!this._pres || this._pres.slideCount === 0 || !this._scaleEstablished) return;
2701
+ let n = Math.max(0, Math.min(e, this._pres.slideCount - 1)), r = this._rangeAt(0, this._overscan()), i = _e(this._slideOffset(n), Math.max(0, r.totalHeight - this._scrollHost.clientHeight)), a = this._scrollHost;
2702
+ typeof a.scrollTo == "function" ? a.scrollTo({
2703
+ top: i,
2704
+ behavior: t?.behavior ?? "auto"
2705
+ }) : this._scrollHost.scrollTop = i, this._mountVisible();
2706
+ }
2707
+ _scrollToSlideCommentTarget(e, t, n, r) {
2708
+ if (!this._pres) return !1;
2709
+ let i = this._slots.get(e), a = new Map((i?.commentElementBounds ?? []).map((e) => [e.elementId, e.bounds])), o = r ?? (t.anchors ?? []).flatMap((e) => {
2710
+ if (e.type !== "drawingElement" && e.type !== "textRange" || !e.elementId) return [];
2711
+ let t = a.get(e.elementId);
2712
+ return t ? [t] : [];
2713
+ })[0], s = t.anchors ?? [], c = Number.isFinite(t.x) && Number.isFinite(t.y) && (s.length === 0 || s.some((e) => e.type === "slide"));
2714
+ if (!o && !c) return !1;
2715
+ let l = o ? o.x + (c ? t.x : o.width) : t.x, u = o ? o.y + (c ? t.y : 0) : t.y, d = this._slideWidthPx(), { left: f } = this._padH(), p = Math.max(f, (this._scrollHost.clientWidth - d) / 2) + this._reviewOriginPx, m = this._rangeAt(0, this._overscan()), h = Math.max(0, m.totalHeight - this._scrollHost.clientHeight), g = this._spacer.offsetWidth || Number.parseFloat(this._spacer.style.width) || 0, _ = Math.max(0, g - this._scrollHost.clientWidth), v = l / k * this._scale, y = u / k * this._scale, b = Math.min(h, Math.max(0, this._slideOffset(e) + y - this._scrollHost.clientHeight / 2)), x = Math.min(_, Math.max(0, p + v - this._scrollHost.clientWidth / 2)), S = this._scrollHost;
2716
+ return typeof S.scrollTo == "function" ? S.scrollTo({
2717
+ top: b,
2718
+ left: x,
2719
+ behavior: n?.behavior ?? "auto"
2720
+ }) : (this._scrollHost.scrollTop = b, this._scrollHost.scrollLeft = x), this._mountVisible(), !0;
2721
+ }
2722
+ async _resolveSlideCommentElementBounds(e, t) {
2723
+ let n = this._pres;
2724
+ if (!n) return;
2725
+ let r = (t.anchors ?? []).flatMap((e) => (e.type === "drawingElement" || e.type === "textRange") && e.elementId ? [e.elementId] : []);
2726
+ if (r.length === 0) return;
2727
+ let i = new Map((this._slots.get(e)?.commentElementBounds ?? []).map((e) => [e.elementId, e.bounds])), a = r.flatMap((e) => {
2728
+ let t = i.get(e);
2729
+ return t ? [t] : [];
2730
+ })[0];
2731
+ if (a) return a;
2732
+ let o = await n.getElementBoundsByIds(e, r);
2733
+ return r.flatMap((e) => {
2734
+ let t = o.find((t) => t.elementId === e);
2735
+ return t ? [t.bounds] : [];
2736
+ })[0];
2737
+ }
2738
+ async goToComment(e, t, n) {
2739
+ if (this._destroyed) throw Error("PptxScrollViewer is destroyed");
2740
+ let r = this._pres;
2741
+ if (!r || !Number.isInteger(e) || !Number.isInteger(t) || e < 0 || e >= r.slideCount || t < 0) return !1;
2742
+ let i = this._beginCommentNavigation();
2743
+ if (e >= r.availableSlideCount && !r.layoutComplete && !await this._waitForSlideMetadata(r, e, i)) return !1;
2744
+ if (this._destroyed) throw Error("PptxScrollViewer is destroyed");
2745
+ if (i !== this._commentNavigationGeneration || r !== this._pres) return !1;
2746
+ let a = r.getComments(e)[t];
2747
+ if (!a) return !1;
2748
+ let o = await this._resolveSlideCommentElementBounds(e, a);
2749
+ if (this._destroyed) throw Error("PptxScrollViewer is destroyed");
2750
+ if (i !== this._commentNavigationGeneration || r !== this._pres) return !1;
2751
+ let s = a.anchors ?? [], c = Number.isFinite(a.x) && Number.isFinite(a.y) && (s.length === 0 || s.some((e) => e.type === "slide"));
2752
+ if (!o && !c || (this.scrollToSlide(e, n), !this._scrollToSlideCommentTarget(e, a, n, o))) return !1;
2753
+ this._activeCommentId = P(a, t, e), this._activeCommentSlide = e, this._elementContext = null;
2754
+ for (let [e, t] of this._slots) this._redrawSlotComments(e, t);
2755
+ return this._emitSelectionContextChange(), !0;
2756
+ }
2757
+ async findText(e, t = {}) {
2758
+ let n = this._pres;
2759
+ if (!n) return [];
2760
+ let r = ++this._findGeneration;
2761
+ if (this._findActive = e.length > 0, e.length === 0) return this._find.invalidate(), this._redrawHighlights(), [];
2762
+ if (n.layoutComplete || await this._errorRouter.ownBackgroundLifecycle(() => n.waitUntilLayoutComplete()), this._destroyed || r !== this._findGeneration || n !== this._pres) return [];
2763
+ let i = await this._errorRouter.ownAwaitable(() => this._find.find(e, t));
2764
+ return this._destroyed || r !== this._findGeneration || n !== this._pres ? [] : (this._redrawHighlights(), i);
2765
+ }
2766
+ async findNext() {
2767
+ return this._activateMatch(this._find.next());
2768
+ }
2769
+ async findPrev() {
2770
+ return this._activateMatch(this._find.prev());
2771
+ }
2772
+ clearFind() {
2773
+ this._findActive = !1, this._invalidateFind(), this._redrawHighlights();
2774
+ }
2775
+ _invalidateFind() {
2776
+ this._findGeneration++, this._find.invalidate();
2777
+ }
2778
+ async _activateMatch(e) {
2779
+ return e && this.scrollToSlide(e.location.slide), this._redrawHighlights(), e;
2780
+ }
2781
+ async _collectSlideRuns(e) {
2782
+ return this._pres ? this._pres.collectSlideRuns(e, this._slideWidthPx()) : [];
2783
+ }
2784
+ _redrawHighlights() {
2785
+ for (let [e, t] of this._slots) this._redrawSlotHighlights(e, t);
2786
+ }
2787
+ _refreshFindRuns(e, t) {
2788
+ this._findActive && this._find.setSlideRuns(e, t);
2789
+ }
2790
+ _redrawSlotComments(e, t) {
2791
+ if (!this._pres || !t.commentMarkerLayer) return;
2792
+ this._syncCommentMarginGeometry(t.commentMargin);
2793
+ let n = this._commentUi;
2794
+ if (!n) {
2795
+ t.commentMarkerLayer.replaceChildren(), t.commentMargin?.replaceChildren(), t.commentDecorationLayer?.replaceChildren(), t.commentGeometry = null;
2796
+ return;
2797
+ }
2798
+ t.commentGeometry = n.buildPptxCommentMargin(t.commentMarkerLayer, t.commentMargin, this._pres.getComments(e), t.commentElementBounds, e, this._pres.slideWidth, this._pres.slideHeight, this._activeCommentId, (t, n) => {
2799
+ let r = n ? t : this._activeCommentId === t ? null : this._activeCommentId;
2800
+ if (r !== this._activeCommentId) {
2801
+ this._activeCommentId = r, this._activeCommentSlide = r ? e : null, this._elementContext = null;
2802
+ for (let [e, t] of this._slots) this._redrawSlotComments(e, t);
2803
+ this._emitSelectionContextChange();
2804
+ }
2805
+ }, this._commentZoom(), $, this._commentsOptions()?.markers !== !1, this._commentsOptions()?.includeResolved === !0, t.commentDecorationLayer ? () => this._scheduleCommentGeometry(e, t, !1) : void 0, t.commentDecorationLayer ? () => this._scheduleCommentGeometry(e, t, !0) : void 0), this._redrawSlotCommentConnectors(e, t);
2806
+ }
2807
+ _redrawSlotCommentConnectors(e, t) {
2808
+ let n = t.commentDecorationLayer, r = t.commentMargin, i = t.commentGeometry, a = this._commentsOptions()?.connectors;
2809
+ if (!n || !r || !i || !a) return;
2810
+ let o = this._slideWidthPx(), s = this._slideHeightPx(), c = this._commentSide(), l = this._commentMarginExtent(), u = this._commentUi;
2811
+ u && u.buildReadOnlyCommentDecoration(n, Object.freeze({
2812
+ surfaceBounds: Object.freeze({
2813
+ x: c === "left" ? -l : 0,
2814
+ y: 0,
2815
+ width: o + l,
2816
+ height: s
2817
+ }),
2818
+ contentBounds: Object.freeze({
2819
+ x: 0,
2820
+ y: 0,
2821
+ width: o,
2822
+ height: s
2823
+ }),
2824
+ side: c,
2825
+ threads: u.projectReadOnlyCommentMarginScroll(i, r.scrollTop)
2826
+ }), {
2827
+ route: a.route ?? "bezier",
2828
+ stroke: a.stroke ?? "solid",
2829
+ color: a.color,
2830
+ activeColor: a.activeColor
2831
+ });
2832
+ }
2833
+ _commitSlotComments(e, t) {
2834
+ this._ensureSlotCommentAnchors(e, t), this._redrawSlotComments(e, t), t.commentMarkerLayer && (t.commentMarkerLayer.style.visibility = ""), t.commentMargin && (t.commentMargin.style.visibility = ""), t.commentDecorationLayer && (t.commentDecorationLayer.style.visibility = "");
2835
+ }
2836
+ _ensureSlotCommentAnchors(e, t) {
2837
+ let n = this._pres;
2838
+ if (!n || t.commentAnchorSlide === e) return;
2839
+ t.commentAnchorSlide = e, t.commentElementBounds = Object.freeze([]);
2840
+ let r = [...new Set(n.getComments(e).flatMap((e) => (e.anchors ?? []).flatMap((e) => (e.type === "drawingElement" || e.type === "textRange") && e.elementId ? [e.elementId] : [])))];
2841
+ if (r.length === 0) return;
2842
+ let i = ++t.commentAnchorGeneration;
2843
+ n.getElementBoundsByIds(e, r).then((r) => {
2844
+ if (this._destroyed || i !== t.commentAnchorGeneration || n !== this._pres || this._slots.get(e) !== t || t.commentAnchorSlide !== e) return;
2845
+ t.commentElementBounds = r, this._redrawSlotComments(e, t);
2846
+ let a = n.getComments(e).find((t, n) => P(t, n, e) === this._activeCommentId);
2847
+ a && this._scrollToSlideCommentTarget(e, a);
2848
+ }).catch((e) => {
2849
+ !this._destroyed && i === t.commentAnchorGeneration && this._reportRenderError(e);
2850
+ });
2851
+ }
2852
+ _scheduleCommentGeometry(e, t, n = !1) {
2853
+ let r = this._pendingCommentGeometry.get(e);
2854
+ if (this._pendingCommentGeometry.set(e, {
2855
+ slot: t,
2856
+ connectorsOnly: r?.slot === t ? r.connectorsOnly && n : n
2857
+ }), this._commentGeometryScheduled) return;
2858
+ this._commentGeometryScheduled = !0;
2859
+ let i = () => {
2860
+ this._commentGeometryScheduled = !1, this._commentGeometryFrame = null;
2861
+ let e = [...this._pendingCommentGeometry];
2862
+ if (this._pendingCommentGeometry.clear(), !this._destroyed) for (let [t, n] of e) {
2863
+ let { slot: e, connectorsOnly: r } = n;
2864
+ this._slots.get(t) === e && e.renderedScale === this._scale && (r ? this._redrawSlotCommentConnectors(t, e) : this._redrawSlotComments(t, e));
2865
+ }
2866
+ }, a = this._wrapper.ownerDocument.defaultView;
2867
+ a?.requestAnimationFrame ? this._commentGeometryFrame = a.requestAnimationFrame(i) : queueMicrotask(i);
2868
+ }
2869
+ _redrawSlotHighlights(e, t) {
2870
+ if (!this._findActive) {
2871
+ t.highlightLayer.innerHTML = "";
2872
+ return;
2873
+ }
2874
+ let n = this._find.slideRuns(e);
2875
+ if (!n) {
2876
+ t.highlightLayer.innerHTML = "";
2877
+ return;
2878
+ }
2879
+ L(t.highlightLayer, n, this._find.slideHighlights(e), this._slideWidthPx(), this._slideHeightPx(), (e) => this._measureForFind(e), this._opts.findHighlightColors);
2880
+ }
2881
+ _measureForFind(e) {
2882
+ this._findMeasureCtx === void 0 && (this._findMeasureCtx = document.createElement("canvas").getContext("2d"));
2883
+ let t = this._findMeasureCtx;
2884
+ return !t || typeof t.measureText != "function" ? (e) => e.length : (t.font = e, (e) => t.measureText(e).width);
2885
+ }
2886
+ _hyperlinkHandler() {
2887
+ if (this._opts.enableHyperlinks !== !1) return (e) => this._onHyperlinkClick(e);
2888
+ }
2889
+ _onHyperlinkClick(e) {
2890
+ let t = this._resolveInternalSlideIndex(e);
2891
+ if (this._opts.onHyperlinkClick) {
2892
+ this._opts.onHyperlinkClick(t);
2893
+ return;
2894
+ }
2895
+ if (t.kind === "external") {
2896
+ p(t.url);
2897
+ return;
2898
+ }
2899
+ t.slideIndex !== void 0 && this.scrollToSlide(t.slideIndex);
2900
+ }
2901
+ _resolveInternalSlideIndex(e) {
2902
+ if (e.kind !== "internal" || e.slideIndex !== void 0) return e;
2903
+ let t = this._pres?.resolveInternalTarget(e.ref, this._range().topIndex);
2904
+ return t === void 0 ? e : {
2905
+ ...e,
2906
+ slideIndex: t
2907
+ };
2908
+ }
2909
+ _onResize() {
2910
+ if (!this._pres || this._pres.slideCount === 0) return;
2911
+ if (!this._scaleEstablished) {
2912
+ this.relayout();
2913
+ return;
2914
+ }
2915
+ if (this._opts.refitOnResize === !1) {
2916
+ this._lastFitWidth = this._fitWidthPx(), this._mountVisible();
2917
+ return;
2918
+ }
2919
+ let e = this._baseScale();
2920
+ if (e <= 0) return;
2921
+ let t = this._fitWidthPx();
2922
+ if (t === this._lastFitWidth) {
2923
+ this._mountVisible();
2924
+ return;
2925
+ }
2926
+ this._lastFitWidth = t;
2927
+ let n = this._prevBase > 0 ? this._scale / this._prevBase : 1;
2928
+ this._prevBase = e, this.setScale(e * n), this._mountVisible();
2929
+ }
2930
+ get topVisibleSlide() {
2931
+ return this._lastRange?.topIndex ?? 0;
2932
+ }
2933
+ mountedSlideIndicesForTest() {
2934
+ return [...this._slots.keys()];
2935
+ }
2936
+ interactiveSlideIndicesForTest() {
2937
+ return [...this._slots].filter(([, e]) => e.mediaInteractive).map(([e]) => e);
2938
+ }
2939
+ scaleForTest() {
2940
+ return this._scale;
2941
+ }
2942
+ baseScaleForTest() {
2943
+ return this._baseScale();
2944
+ }
2945
+ renderEpochForTest() {
2946
+ return this._renderEpoch;
2947
+ }
2948
+ resizeForTest() {
2949
+ this._onResize();
2950
+ }
2951
+ contentAtViewportYForTest(e) {
2952
+ let t = this._scrollHost.scrollTop + e, n = this._slideIndexAtOffset(t), r = this._uniformSlideHeight;
2953
+ return {
2954
+ slide: n,
2955
+ frac: r > 0 ? Math.min(1, Math.max(0, (t - this._slideOffset(n)) / r)) : 0
2956
+ };
2957
+ }
2958
+ viewportYOfForTest(e, t) {
2959
+ return this._slideOffset(e) + t * this._uniformSlideHeight - this._scrollHost.scrollTop;
2960
+ }
2961
+ async getResourceMetrics() {
2962
+ if (!this._pres) throw Error("Presentation not loaded");
2963
+ return await this._pres.getResourceMetrics();
2964
+ }
2965
+ getSelectionContext(e = {}) {
2966
+ if (this._destroyed) throw Error("PptxScrollViewer is destroyed");
2967
+ if (this._pres && this._activeCommentId !== null && this._activeCommentSlide !== null) {
2968
+ let t = this._pres.getComments(this._activeCommentSlide), n = t.findIndex((e, t) => P(e, t, this._activeCommentSlide) === this._activeCommentId), r = t[n];
2969
+ if (r && n >= 0) return Ut(r, this._activeCommentSlide, n, this._activeCommentId, e);
2970
+ }
2971
+ return (this._opts.enableTextSelection ? X(this._wrapper, this._wrapper.ownerDocument?.getSelection?.() ?? null, e) : null) ?? (this._elementContext ? It(this._elementContext, e.maxTextCharacters) : null);
2972
+ }
2973
+ _emitSelectionContextChange() {
2974
+ let e = this.getSelectionContext();
2975
+ e?.kind === "text" && (this._elementHitGeneration++, this._elementContext = null, this._redrawElementOutlines());
2976
+ let t = JSON.stringify(e);
2977
+ t !== this._selectionContextKey && (this._selectionContextKey = t, this._opts.onSelectionContextChange?.(e ? structuredClone(e) : null));
2978
+ }
2979
+ _setElementContext(e) {
2980
+ this._elementContext = e ? structuredClone(e) : null, this._redrawElementOutlines(), this._emitSelectionContextChange();
2981
+ }
2982
+ _invalidateElementSelection(e = !0) {
2983
+ this._elementHitGeneration++, this._elementContext = null, this._redrawElementOutlines(), e && this._emitSelectionContextChange();
2984
+ }
2985
+ _redrawElementOutlines() {
2986
+ for (let [e, t] of this._slots) this._redrawElementOutlineForSlot(e, t);
2987
+ }
2988
+ _redrawElementOutlineForSlot(e, t) {
2989
+ let n = this._elementContext, r = this._pres;
2990
+ if (!n || !r || n.slideIndex !== e) {
2991
+ T(t.elementLayer, null);
2992
+ return;
2993
+ }
2994
+ T(t.elementLayer, {
2995
+ x: n.bounds.x / r.slideWidth,
2996
+ y: n.bounds.y / r.slideHeight,
2997
+ width: n.bounds.width / r.slideWidth,
2998
+ height: n.bounds.height / r.slideHeight,
2999
+ rotation: n.bounds.rotation
3000
+ });
3001
+ }
3002
+ async _onElementClick(e) {
3003
+ this._destroyed || e.defaultPrevented || e.button !== 0 || await this._resolveContextAt(e);
3004
+ }
3005
+ _onContextMenu(e) {
3006
+ let t;
3007
+ this._opts.onContextMenu?.({
3008
+ originalEvent: e,
3009
+ getContext: () => t ??= this._resolveContextAt(e)
3010
+ });
3011
+ }
3012
+ async _resolveContextAt(e) {
3013
+ let t = this._pres;
3014
+ if (this._destroyed || !t) return null;
3015
+ if (this._opts.enableTextSelection && X(this._wrapper, this._wrapper.ownerDocument?.getSelection?.() ?? null)) return this._emitSelectionContextChange(), this._destroyed ? null : this.getSelectionContext();
3016
+ if (!this._opts.enableElementSelection) return this.getSelectionContext();
3017
+ let n = e.target, r = [...this._slots].find(([, e]) => n !== null && e.wrapper.contains(n));
3018
+ if (!r) return this._invalidateElementSelection(), null;
3019
+ let [i, a] = r, o = a.canvas.getBoundingClientRect();
3020
+ if (o.width <= 0 || o.height <= 0) return this._invalidateElementSelection(), null;
3021
+ let s = e.clientX - o.left, c = e.clientY - o.top;
3022
+ if (s < 0 || c < 0 || s > o.width || c > o.height) return this._invalidateElementSelection(), null;
3023
+ let l = ++this._elementHitGeneration, u = {
3024
+ x: s / o.width * t.slideWidth,
3025
+ y: c / o.height * t.slideHeight
3026
+ }, d;
3027
+ try {
3028
+ d = await t.getElementContextAt(i, u, {
3029
+ tolerance: this._elementHitTolerance / o.width * t.slideWidth,
3030
+ maxTextCharacters: G
3031
+ });
3032
+ } catch (e) {
3033
+ if (this._destroyed || l !== this._elementHitGeneration || t !== this._pres) return null;
3034
+ throw e;
3035
+ }
3036
+ return this._destroyed || l !== this._elementHitGeneration || t !== this._pres ? null : (this._setElementContext(d), this._destroyed ? null : this.getSelectionContext());
3037
+ }
3038
+ destroy() {
3039
+ if (!this._destroyed) {
3040
+ this._destroyed = !0, this._beginCommentNavigation(), this._errorRouter.close(), this._invalidateFind(), this._findActive = !1, this._unbindLayoutPresentation(), this._selectionChangeListener &&= (this._wrapper.ownerDocument.removeEventListener("selectionchange", this._selectionChangeListener), null), this._elementHitGeneration++, this._elementClickListener &&= (this._scrollHost.removeEventListener("click", this._elementClickListener), null), this._contextMenuListener &&= (this._scrollHost.removeEventListener("contextmenu", this._contextMenuListener), null), this._commentOutsidePointerListener &&= (this._wrapper.ownerDocument.removeEventListener("pointerdown", this._commentOutsidePointerListener), null), this._commentGeometryFrame !== null && (this._wrapper.ownerDocument.defaultView?.cancelAnimationFrame?.(this._commentGeometryFrame), this._commentGeometryFrame = null), this._commentGeometryScheduled = !1, this._pendingCommentGeometry.clear(), this._elementContext = null, this._scrollListener &&= (this._scrollHost.removeEventListener("scroll", this._scrollListener), null), this._wheelListener &&= (this._scrollHost.removeEventListener("wheel", this._wheelListener), null), this._resizeObserver?.disconnect(), this._resizeObserver = null, this._settleTimer !== null && (clearTimeout(this._settleTimer), this._settleTimer = null);
3041
+ for (let [e, t] of [...this._slots]) this._recycleSlot(e, t);
3042
+ this._free.length = 0, this._presentationOwner.close(), this._wrapper.remove();
3043
+ }
3044
+ }
3045
+ }, nn = /* @__PURE__ */ e({
3046
+ OoxmlDecodedImageLimitError: () => Te,
3047
+ OoxmlError: () => d,
3048
+ OoxmlResourceLimitError: () => m,
3049
+ PptxPresentation: () => J,
3050
+ PptxScrollViewer: () => tn,
3051
+ PptxViewer: () => Q,
3052
+ TiffDecodeError: () => Ee,
3053
+ autoResize: () => S,
3054
+ buildPptxHighlightLayer: () => L,
3055
+ buildPptxTextLayer: () => I,
3056
+ isOoxmlDecodedImageLimitError: () => we,
3057
+ isTiffDecodeError: () => De,
3058
+ openExternalHyperlink: () => p,
3059
+ readPptxTextSelectionContext: () => X,
3060
+ renderSlide: () => Me
3061
+ });
3062
+ //#endregion
3063
+ export { J as a, X as i, tn as n, L as o, Q as r, I as s, nn as t };