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

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 (2658) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +2 -2
  3. package/brand.js +15 -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 +411 -0
  9. package/caps/files/midi.js +295 -0
  10. package/caps/files/numbers.js +193 -0
  11. package/caps/files/office.js +94 -0
  12. package/caps/files/pdf.js +66 -0
  13. package/caps/interactive/apps.js +42 -0
  14. package/caps/interactive/diagram-worker.js +12 -0
  15. package/caps/interactive/diagram.js +195 -0
  16. package/caps/interactive/interactive.css +25 -0
  17. package/caps/interactive/interactive.js +350 -0
  18. package/caps/interactive/map.js +183 -0
  19. package/caps/interactive/mode.js +54 -0
  20. package/caps/interactive/page-diagram.js +37 -0
  21. package/caps/layouts/layouts.css +184 -0
  22. package/caps/layouts/layouts.js +148 -0
  23. package/caps/layouts/shapes.js +209 -0
  24. package/caps/made/formats.js +467 -0
  25. package/caps/math/latex.js +88 -0
  26. package/caps/math/math.css +24 -0
  27. package/caps/math/math.js +117 -0
  28. package/caps/pictures/mark.js +43 -0
  29. package/caps/receipt/certificate.js +417 -0
  30. package/caps/receipt/der.js +203 -0
  31. package/caps/scores/notes.js +30 -0
  32. package/caps/scores/scores.css +30 -0
  33. package/caps/scores/scores.js +347 -0
  34. package/caps/scores/sound-worker.js +12 -0
  35. package/caps/scores/sound.js +72 -0
  36. package/caps/share/seal.js +86 -0
  37. package/caps/share/view.js +155 -0
  38. package/caps/skills/directory.js +57 -0
  39. package/caps/skills/sources.js +281 -0
  40. package/caps/slides/edit.js +102 -0
  41. package/caps/slides/kit-page.css +16 -0
  42. package/caps/slides/kit-page.js +240 -0
  43. package/caps/slides/kit.js +56 -0
  44. package/caps/slides/save.js +73 -0
  45. package/caps/slides/slides.css +36 -0
  46. package/caps/slides/slides.js +315 -0
  47. package/core/anthropic.js +252 -0
  48. package/core/deferred.js +48 -0
  49. package/core/events.js +166 -0
  50. package/core/files.js +282 -0
  51. package/core/fs.js +186 -0
  52. package/core/hooks.js +53 -0
  53. package/core/i18n.js +155 -0
  54. package/core/llm.js +396 -0
  55. package/core/loop.js +454 -0
  56. package/core/rules.js +52 -0
  57. package/core/search.js +158 -0
  58. package/core/settings.js +227 -0
  59. package/core/skills.js +91 -0
  60. package/core/sse.js +51 -0
  61. package/core/ulid.js +17 -0
  62. package/core/zip.js +165 -0
  63. package/fonts/OFL.txt +94 -0
  64. package/fonts/display.woff2 +0 -0
  65. package/locales/am.json +414 -0
  66. package/locales/approvals/am.json +58 -0
  67. package/locales/approvals/ar.json +66 -0
  68. package/locales/approvals/bg.json +58 -0
  69. package/locales/approvals/bn.json +58 -0
  70. package/locales/approvals/br.json +64 -0
  71. package/locales/approvals/co.json +60 -0
  72. package/locales/approvals/cs.json +62 -0
  73. package/locales/approvals/da.json +58 -0
  74. package/locales/approvals/de.json +58 -0
  75. package/locales/approvals/el.json +58 -0
  76. package/locales/approvals/en.json +58 -0
  77. package/locales/approvals/es.json +60 -0
  78. package/locales/approvals/fa.json +58 -0
  79. package/locales/approvals/fi.json +58 -0
  80. package/locales/approvals/fr-CA.json +60 -0
  81. package/locales/approvals/fr.json +60 -0
  82. package/locales/approvals/ha.json +58 -0
  83. package/locales/approvals/he.json +60 -0
  84. package/locales/approvals/hi.json +58 -0
  85. package/locales/approvals/hr.json +60 -0
  86. package/locales/approvals/hu.json +58 -0
  87. package/locales/approvals/id.json +56 -0
  88. package/locales/approvals/it.json +60 -0
  89. package/locales/approvals/ja.json +56 -0
  90. package/locales/approvals/ko.json +56 -0
  91. package/locales/approvals/mr.json +58 -0
  92. package/locales/approvals/ms.json +56 -0
  93. package/locales/approvals/nl.json +58 -0
  94. package/locales/approvals/pl.json +62 -0
  95. package/locales/approvals/pt.json +60 -0
  96. package/locales/approvals/ro.json +60 -0
  97. package/locales/approvals/ru.json +62 -0
  98. package/locales/approvals/sk.json +62 -0
  99. package/locales/approvals/sv.json +58 -0
  100. package/locales/approvals/sw.json +58 -0
  101. package/locales/approvals/ta.json +58 -0
  102. package/locales/approvals/te.json +58 -0
  103. package/locales/approvals/th.json +56 -0
  104. package/locales/approvals/tl.json +58 -0
  105. package/locales/approvals/tr.json +58 -0
  106. package/locales/approvals/uk.json +62 -0
  107. package/locales/approvals/ur.json +58 -0
  108. package/locales/approvals/vi.json +56 -0
  109. package/locales/approvals/yo.json +56 -0
  110. package/locales/approvals/zh-Hans.json +56 -0
  111. package/locales/approvals/zh-Hant.json +56 -0
  112. package/locales/ar.json +446 -0
  113. package/locales/ask/am.json +8 -0
  114. package/locales/ask/ar.json +8 -0
  115. package/locales/ask/bg.json +8 -0
  116. package/locales/ask/bn.json +8 -0
  117. package/locales/ask/br.json +8 -0
  118. package/locales/ask/co.json +8 -0
  119. package/locales/ask/cs.json +8 -0
  120. package/locales/ask/da.json +8 -0
  121. package/locales/ask/de.json +8 -0
  122. package/locales/ask/el.json +8 -0
  123. package/locales/ask/en.json +8 -0
  124. package/locales/ask/es.json +8 -0
  125. package/locales/ask/fa.json +8 -0
  126. package/locales/ask/fi.json +8 -0
  127. package/locales/ask/fr-CA.json +8 -0
  128. package/locales/ask/fr.json +8 -0
  129. package/locales/ask/ha.json +8 -0
  130. package/locales/ask/he.json +8 -0
  131. package/locales/ask/hi.json +8 -0
  132. package/locales/ask/hr.json +8 -0
  133. package/locales/ask/hu.json +8 -0
  134. package/locales/ask/id.json +8 -0
  135. package/locales/ask/it.json +8 -0
  136. package/locales/ask/ja.json +8 -0
  137. package/locales/ask/ko.json +8 -0
  138. package/locales/ask/mr.json +8 -0
  139. package/locales/ask/ms.json +8 -0
  140. package/locales/ask/nl.json +8 -0
  141. package/locales/ask/pl.json +8 -0
  142. package/locales/ask/pt.json +8 -0
  143. package/locales/ask/ro.json +8 -0
  144. package/locales/ask/ru.json +8 -0
  145. package/locales/ask/sk.json +8 -0
  146. package/locales/ask/sv.json +8 -0
  147. package/locales/ask/sw.json +8 -0
  148. package/locales/ask/ta.json +8 -0
  149. package/locales/ask/te.json +8 -0
  150. package/locales/ask/th.json +8 -0
  151. package/locales/ask/tl.json +8 -0
  152. package/locales/ask/tr.json +8 -0
  153. package/locales/ask/uk.json +8 -0
  154. package/locales/ask/ur.json +8 -0
  155. package/locales/ask/vi.json +8 -0
  156. package/locales/ask/yo.json +8 -0
  157. package/locales/ask/zh-Hans.json +8 -0
  158. package/locales/ask/zh-Hant.json +8 -0
  159. package/locales/backup/am.json +8 -0
  160. package/locales/backup/ar.json +12 -0
  161. package/locales/backup/bg.json +8 -0
  162. package/locales/backup/bn.json +8 -0
  163. package/locales/backup/br.json +11 -0
  164. package/locales/backup/co.json +9 -0
  165. package/locales/backup/cs.json +10 -0
  166. package/locales/backup/da.json +8 -0
  167. package/locales/backup/de.json +8 -0
  168. package/locales/backup/el.json +8 -0
  169. package/locales/backup/en.json +8 -0
  170. package/locales/backup/es.json +9 -0
  171. package/locales/backup/fa.json +8 -0
  172. package/locales/backup/fi.json +8 -0
  173. package/locales/backup/fr-CA.json +9 -0
  174. package/locales/backup/fr.json +9 -0
  175. package/locales/backup/ha.json +8 -0
  176. package/locales/backup/he.json +10 -0
  177. package/locales/backup/hi.json +8 -0
  178. package/locales/backup/hr.json +9 -0
  179. package/locales/backup/hu.json +8 -0
  180. package/locales/backup/id.json +7 -0
  181. package/locales/backup/it.json +9 -0
  182. package/locales/backup/ja.json +7 -0
  183. package/locales/backup/ko.json +7 -0
  184. package/locales/backup/mr.json +8 -0
  185. package/locales/backup/ms.json +7 -0
  186. package/locales/backup/nl.json +8 -0
  187. package/locales/backup/pl.json +10 -0
  188. package/locales/backup/pt.json +9 -0
  189. package/locales/backup/ro.json +9 -0
  190. package/locales/backup/ru.json +10 -0
  191. package/locales/backup/sk.json +10 -0
  192. package/locales/backup/sv.json +8 -0
  193. package/locales/backup/sw.json +8 -0
  194. package/locales/backup/ta.json +8 -0
  195. package/locales/backup/te.json +8 -0
  196. package/locales/backup/th.json +7 -0
  197. package/locales/backup/tl.json +8 -0
  198. package/locales/backup/tr.json +8 -0
  199. package/locales/backup/uk.json +10 -0
  200. package/locales/backup/ur.json +8 -0
  201. package/locales/backup/vi.json +7 -0
  202. package/locales/backup/yo.json +7 -0
  203. package/locales/backup/zh-Hans.json +7 -0
  204. package/locales/backup/zh-Hant.json +7 -0
  205. package/locales/bg.json +414 -0
  206. package/locales/bn.json +414 -0
  207. package/locales/br.json +438 -0
  208. package/locales/brain-local/am.json +13 -0
  209. package/locales/brain-local/ar.json +13 -0
  210. package/locales/brain-local/bg.json +13 -0
  211. package/locales/brain-local/bn.json +13 -0
  212. package/locales/brain-local/br.json +13 -0
  213. package/locales/brain-local/co.json +13 -0
  214. package/locales/brain-local/cs.json +13 -0
  215. package/locales/brain-local/da.json +13 -0
  216. package/locales/brain-local/de.json +13 -0
  217. package/locales/brain-local/el.json +13 -0
  218. package/locales/brain-local/en.json +13 -0
  219. package/locales/brain-local/es.json +13 -0
  220. package/locales/brain-local/fa.json +13 -0
  221. package/locales/brain-local/fi.json +13 -0
  222. package/locales/brain-local/fr-CA.json +13 -0
  223. package/locales/brain-local/fr.json +13 -0
  224. package/locales/brain-local/ha.json +13 -0
  225. package/locales/brain-local/he.json +13 -0
  226. package/locales/brain-local/hi.json +13 -0
  227. package/locales/brain-local/hr.json +13 -0
  228. package/locales/brain-local/hu.json +13 -0
  229. package/locales/brain-local/id.json +13 -0
  230. package/locales/brain-local/it.json +13 -0
  231. package/locales/brain-local/ja.json +13 -0
  232. package/locales/brain-local/ko.json +13 -0
  233. package/locales/brain-local/mr.json +13 -0
  234. package/locales/brain-local/ms.json +13 -0
  235. package/locales/brain-local/nl.json +13 -0
  236. package/locales/brain-local/pl.json +13 -0
  237. package/locales/brain-local/pt.json +13 -0
  238. package/locales/brain-local/ro.json +13 -0
  239. package/locales/brain-local/ru.json +13 -0
  240. package/locales/brain-local/sk.json +13 -0
  241. package/locales/brain-local/sv.json +13 -0
  242. package/locales/brain-local/sw.json +13 -0
  243. package/locales/brain-local/ta.json +13 -0
  244. package/locales/brain-local/te.json +13 -0
  245. package/locales/brain-local/th.json +13 -0
  246. package/locales/brain-local/tl.json +13 -0
  247. package/locales/brain-local/tr.json +13 -0
  248. package/locales/brain-local/uk.json +13 -0
  249. package/locales/brain-local/ur.json +13 -0
  250. package/locales/brain-local/vi.json +13 -0
  251. package/locales/brain-local/yo.json +13 -0
  252. package/locales/brain-local/zh-Hans.json +13 -0
  253. package/locales/brain-local/zh-Hant.json +13 -0
  254. package/locales/brains/am.json +69 -0
  255. package/locales/brains/ar.json +69 -0
  256. package/locales/brains/bg.json +69 -0
  257. package/locales/brains/bn.json +69 -0
  258. package/locales/brains/br.json +69 -0
  259. package/locales/brains/co.json +69 -0
  260. package/locales/brains/cs.json +69 -0
  261. package/locales/brains/da.json +69 -0
  262. package/locales/brains/de.json +69 -0
  263. package/locales/brains/el.json +69 -0
  264. package/locales/brains/en.json +69 -0
  265. package/locales/brains/es.json +69 -0
  266. package/locales/brains/fa.json +69 -0
  267. package/locales/brains/fi.json +69 -0
  268. package/locales/brains/fr-CA.json +69 -0
  269. package/locales/brains/fr.json +69 -0
  270. package/locales/brains/ha.json +69 -0
  271. package/locales/brains/he.json +69 -0
  272. package/locales/brains/hi.json +69 -0
  273. package/locales/brains/hr.json +69 -0
  274. package/locales/brains/hu.json +69 -0
  275. package/locales/brains/id.json +69 -0
  276. package/locales/brains/it.json +69 -0
  277. package/locales/brains/ja.json +69 -0
  278. package/locales/brains/ko.json +69 -0
  279. package/locales/brains/mr.json +69 -0
  280. package/locales/brains/ms.json +69 -0
  281. package/locales/brains/nl.json +69 -0
  282. package/locales/brains/pl.json +69 -0
  283. package/locales/brains/pt.json +69 -0
  284. package/locales/brains/ro.json +69 -0
  285. package/locales/brains/ru.json +69 -0
  286. package/locales/brains/sk.json +69 -0
  287. package/locales/brains/sv.json +69 -0
  288. package/locales/brains/sw.json +69 -0
  289. package/locales/brains/ta.json +69 -0
  290. package/locales/brains/te.json +69 -0
  291. package/locales/brains/th.json +69 -0
  292. package/locales/brains/tl.json +69 -0
  293. package/locales/brains/tr.json +69 -0
  294. package/locales/brains/uk.json +69 -0
  295. package/locales/brains/ur.json +69 -0
  296. package/locales/brains/vi.json +69 -0
  297. package/locales/brains/yo.json +69 -0
  298. package/locales/brains/zh-Hans.json +69 -0
  299. package/locales/brains/zh-Hant.json +69 -0
  300. package/locales/browser/am.json +29 -0
  301. package/locales/browser/ar.json +29 -0
  302. package/locales/browser/bg.json +29 -0
  303. package/locales/browser/bn.json +29 -0
  304. package/locales/browser/br.json +29 -0
  305. package/locales/browser/co.json +29 -0
  306. package/locales/browser/cs.json +29 -0
  307. package/locales/browser/da.json +29 -0
  308. package/locales/browser/de.json +29 -0
  309. package/locales/browser/el.json +29 -0
  310. package/locales/browser/en.json +29 -0
  311. package/locales/browser/es.json +29 -0
  312. package/locales/browser/fa.json +29 -0
  313. package/locales/browser/fi.json +29 -0
  314. package/locales/browser/fr-CA.json +29 -0
  315. package/locales/browser/fr.json +29 -0
  316. package/locales/browser/ha.json +29 -0
  317. package/locales/browser/he.json +29 -0
  318. package/locales/browser/hi.json +29 -0
  319. package/locales/browser/hr.json +29 -0
  320. package/locales/browser/hu.json +29 -0
  321. package/locales/browser/id.json +29 -0
  322. package/locales/browser/it.json +29 -0
  323. package/locales/browser/ja.json +29 -0
  324. package/locales/browser/ko.json +29 -0
  325. package/locales/browser/mr.json +29 -0
  326. package/locales/browser/ms.json +29 -0
  327. package/locales/browser/nl.json +29 -0
  328. package/locales/browser/pl.json +29 -0
  329. package/locales/browser/pt.json +29 -0
  330. package/locales/browser/ro.json +29 -0
  331. package/locales/browser/ru.json +29 -0
  332. package/locales/browser/sk.json +29 -0
  333. package/locales/browser/sv.json +29 -0
  334. package/locales/browser/sw.json +29 -0
  335. package/locales/browser/ta.json +29 -0
  336. package/locales/browser/te.json +29 -0
  337. package/locales/browser/th.json +29 -0
  338. package/locales/browser/tl.json +29 -0
  339. package/locales/browser/tr.json +29 -0
  340. package/locales/browser/uk.json +29 -0
  341. package/locales/browser/ur.json +29 -0
  342. package/locales/browser/vi.json +29 -0
  343. package/locales/browser/yo.json +29 -0
  344. package/locales/browser/zh-Hans.json +29 -0
  345. package/locales/browser/zh-Hant.json +29 -0
  346. package/locales/case/am.json +24 -0
  347. package/locales/case/ar.json +28 -0
  348. package/locales/case/bg.json +24 -0
  349. package/locales/case/bn.json +24 -0
  350. package/locales/case/br.json +27 -0
  351. package/locales/case/co.json +25 -0
  352. package/locales/case/cs.json +26 -0
  353. package/locales/case/da.json +24 -0
  354. package/locales/case/de.json +24 -0
  355. package/locales/case/el.json +24 -0
  356. package/locales/case/en.json +24 -0
  357. package/locales/case/es.json +25 -0
  358. package/locales/case/fa.json +24 -0
  359. package/locales/case/fi.json +24 -0
  360. package/locales/case/fr-CA.json +25 -0
  361. package/locales/case/fr.json +25 -0
  362. package/locales/case/ha.json +24 -0
  363. package/locales/case/he.json +25 -0
  364. package/locales/case/hi.json +24 -0
  365. package/locales/case/hr.json +25 -0
  366. package/locales/case/hu.json +24 -0
  367. package/locales/case/id.json +23 -0
  368. package/locales/case/it.json +25 -0
  369. package/locales/case/ja.json +23 -0
  370. package/locales/case/ko.json +23 -0
  371. package/locales/case/mr.json +24 -0
  372. package/locales/case/ms.json +23 -0
  373. package/locales/case/nl.json +24 -0
  374. package/locales/case/pl.json +26 -0
  375. package/locales/case/pt.json +25 -0
  376. package/locales/case/ro.json +25 -0
  377. package/locales/case/ru.json +26 -0
  378. package/locales/case/sk.json +26 -0
  379. package/locales/case/sv.json +24 -0
  380. package/locales/case/sw.json +24 -0
  381. package/locales/case/ta.json +24 -0
  382. package/locales/case/te.json +24 -0
  383. package/locales/case/th.json +23 -0
  384. package/locales/case/tl.json +24 -0
  385. package/locales/case/tr.json +24 -0
  386. package/locales/case/uk.json +26 -0
  387. package/locales/case/ur.json +24 -0
  388. package/locales/case/vi.json +23 -0
  389. package/locales/case/yo.json +23 -0
  390. package/locales/case/zh-Hans.json +23 -0
  391. package/locales/case/zh-Hant.json +23 -0
  392. package/locales/certificates/am.json +58 -0
  393. package/locales/certificates/ar.json +58 -0
  394. package/locales/certificates/bg.json +58 -0
  395. package/locales/certificates/bn.json +58 -0
  396. package/locales/certificates/br.json +58 -0
  397. package/locales/certificates/co.json +58 -0
  398. package/locales/certificates/cs.json +58 -0
  399. package/locales/certificates/da.json +58 -0
  400. package/locales/certificates/de.json +58 -0
  401. package/locales/certificates/el.json +58 -0
  402. package/locales/certificates/en.json +58 -0
  403. package/locales/certificates/es.json +58 -0
  404. package/locales/certificates/fa.json +58 -0
  405. package/locales/certificates/fi.json +58 -0
  406. package/locales/certificates/fr-CA.json +58 -0
  407. package/locales/certificates/fr.json +58 -0
  408. package/locales/certificates/ha.json +58 -0
  409. package/locales/certificates/he.json +58 -0
  410. package/locales/certificates/hi.json +58 -0
  411. package/locales/certificates/hr.json +58 -0
  412. package/locales/certificates/hu.json +58 -0
  413. package/locales/certificates/id.json +58 -0
  414. package/locales/certificates/it.json +58 -0
  415. package/locales/certificates/ja.json +58 -0
  416. package/locales/certificates/ko.json +58 -0
  417. package/locales/certificates/mr.json +58 -0
  418. package/locales/certificates/ms.json +58 -0
  419. package/locales/certificates/nl.json +58 -0
  420. package/locales/certificates/pl.json +58 -0
  421. package/locales/certificates/pt.json +58 -0
  422. package/locales/certificates/ro.json +58 -0
  423. package/locales/certificates/ru.json +58 -0
  424. package/locales/certificates/sk.json +58 -0
  425. package/locales/certificates/sv.json +58 -0
  426. package/locales/certificates/sw.json +58 -0
  427. package/locales/certificates/ta.json +58 -0
  428. package/locales/certificates/te.json +58 -0
  429. package/locales/certificates/th.json +58 -0
  430. package/locales/certificates/tl.json +58 -0
  431. package/locales/certificates/tr.json +58 -0
  432. package/locales/certificates/uk.json +58 -0
  433. package/locales/certificates/ur.json +58 -0
  434. package/locales/certificates/vi.json +58 -0
  435. package/locales/certificates/yo.json +58 -0
  436. package/locales/certificates/zh-Hans.json +58 -0
  437. package/locales/certificates/zh-Hant.json +58 -0
  438. package/locales/charts/am.json +5 -0
  439. package/locales/charts/ar.json +5 -0
  440. package/locales/charts/bg.json +5 -0
  441. package/locales/charts/bn.json +5 -0
  442. package/locales/charts/br.json +5 -0
  443. package/locales/charts/co.json +5 -0
  444. package/locales/charts/cs.json +5 -0
  445. package/locales/charts/da.json +5 -0
  446. package/locales/charts/de.json +5 -0
  447. package/locales/charts/el.json +5 -0
  448. package/locales/charts/en.json +5 -0
  449. package/locales/charts/es.json +5 -0
  450. package/locales/charts/fa.json +5 -0
  451. package/locales/charts/fi.json +5 -0
  452. package/locales/charts/fr-CA.json +5 -0
  453. package/locales/charts/fr.json +5 -0
  454. package/locales/charts/ha.json +5 -0
  455. package/locales/charts/he.json +5 -0
  456. package/locales/charts/hi.json +5 -0
  457. package/locales/charts/hr.json +5 -0
  458. package/locales/charts/hu.json +5 -0
  459. package/locales/charts/id.json +5 -0
  460. package/locales/charts/it.json +5 -0
  461. package/locales/charts/ja.json +5 -0
  462. package/locales/charts/ko.json +5 -0
  463. package/locales/charts/mr.json +5 -0
  464. package/locales/charts/ms.json +5 -0
  465. package/locales/charts/nl.json +5 -0
  466. package/locales/charts/pl.json +5 -0
  467. package/locales/charts/pt.json +5 -0
  468. package/locales/charts/ro.json +5 -0
  469. package/locales/charts/ru.json +5 -0
  470. package/locales/charts/sk.json +5 -0
  471. package/locales/charts/sv.json +5 -0
  472. package/locales/charts/sw.json +5 -0
  473. package/locales/charts/ta.json +5 -0
  474. package/locales/charts/te.json +5 -0
  475. package/locales/charts/th.json +5 -0
  476. package/locales/charts/tl.json +5 -0
  477. package/locales/charts/tr.json +5 -0
  478. package/locales/charts/uk.json +5 -0
  479. package/locales/charts/ur.json +5 -0
  480. package/locales/charts/vi.json +5 -0
  481. package/locales/charts/yo.json +5 -0
  482. package/locales/charts/zh-Hans.json +5 -0
  483. package/locales/charts/zh-Hant.json +5 -0
  484. package/locales/co.json +422 -0
  485. package/locales/compact/am.json +7 -0
  486. package/locales/compact/ar.json +7 -0
  487. package/locales/compact/bg.json +7 -0
  488. package/locales/compact/bn.json +7 -0
  489. package/locales/compact/br.json +7 -0
  490. package/locales/compact/co.json +7 -0
  491. package/locales/compact/cs.json +7 -0
  492. package/locales/compact/da.json +7 -0
  493. package/locales/compact/de.json +7 -0
  494. package/locales/compact/el.json +7 -0
  495. package/locales/compact/en.json +7 -0
  496. package/locales/compact/es.json +7 -0
  497. package/locales/compact/fa.json +7 -0
  498. package/locales/compact/fi.json +7 -0
  499. package/locales/compact/fr-CA.json +7 -0
  500. package/locales/compact/fr.json +7 -0
  501. package/locales/compact/ha.json +7 -0
  502. package/locales/compact/he.json +7 -0
  503. package/locales/compact/hi.json +7 -0
  504. package/locales/compact/hr.json +7 -0
  505. package/locales/compact/hu.json +7 -0
  506. package/locales/compact/id.json +7 -0
  507. package/locales/compact/it.json +7 -0
  508. package/locales/compact/ja.json +7 -0
  509. package/locales/compact/ko.json +7 -0
  510. package/locales/compact/mr.json +7 -0
  511. package/locales/compact/ms.json +7 -0
  512. package/locales/compact/nl.json +7 -0
  513. package/locales/compact/pl.json +7 -0
  514. package/locales/compact/pt.json +7 -0
  515. package/locales/compact/ro.json +7 -0
  516. package/locales/compact/ru.json +7 -0
  517. package/locales/compact/sk.json +7 -0
  518. package/locales/compact/sv.json +7 -0
  519. package/locales/compact/sw.json +7 -0
  520. package/locales/compact/ta.json +7 -0
  521. package/locales/compact/te.json +7 -0
  522. package/locales/compact/th.json +7 -0
  523. package/locales/compact/tl.json +7 -0
  524. package/locales/compact/tr.json +7 -0
  525. package/locales/compact/uk.json +7 -0
  526. package/locales/compact/ur.json +7 -0
  527. package/locales/compact/vi.json +7 -0
  528. package/locales/compact/yo.json +7 -0
  529. package/locales/compact/zh-Hans.json +7 -0
  530. package/locales/compact/zh-Hant.json +7 -0
  531. package/locales/computer/am.json +81 -0
  532. package/locales/computer/ar.json +97 -0
  533. package/locales/computer/bg.json +81 -0
  534. package/locales/computer/bn.json +81 -0
  535. package/locales/computer/br.json +93 -0
  536. package/locales/computer/co.json +85 -0
  537. package/locales/computer/cs.json +89 -0
  538. package/locales/computer/da.json +81 -0
  539. package/locales/computer/de.json +81 -0
  540. package/locales/computer/el.json +81 -0
  541. package/locales/computer/en.json +81 -0
  542. package/locales/computer/es.json +85 -0
  543. package/locales/computer/fa.json +81 -0
  544. package/locales/computer/fi.json +81 -0
  545. package/locales/computer/fr-CA.json +85 -0
  546. package/locales/computer/fr.json +85 -0
  547. package/locales/computer/ha.json +81 -0
  548. package/locales/computer/he.json +85 -0
  549. package/locales/computer/hi.json +81 -0
  550. package/locales/computer/hr.json +85 -0
  551. package/locales/computer/hu.json +81 -0
  552. package/locales/computer/id.json +77 -0
  553. package/locales/computer/it.json +85 -0
  554. package/locales/computer/ja.json +77 -0
  555. package/locales/computer/ko.json +77 -0
  556. package/locales/computer/mr.json +81 -0
  557. package/locales/computer/ms.json +77 -0
  558. package/locales/computer/nl.json +81 -0
  559. package/locales/computer/pl.json +89 -0
  560. package/locales/computer/pt.json +85 -0
  561. package/locales/computer/ro.json +85 -0
  562. package/locales/computer/ru.json +89 -0
  563. package/locales/computer/sk.json +89 -0
  564. package/locales/computer/sv.json +81 -0
  565. package/locales/computer/sw.json +81 -0
  566. package/locales/computer/ta.json +81 -0
  567. package/locales/computer/te.json +81 -0
  568. package/locales/computer/th.json +77 -0
  569. package/locales/computer/tl.json +81 -0
  570. package/locales/computer/tr.json +81 -0
  571. package/locales/computer/uk.json +89 -0
  572. package/locales/computer/ur.json +81 -0
  573. package/locales/computer/vi.json +77 -0
  574. package/locales/computer/yo.json +77 -0
  575. package/locales/computer/zh-Hans.json +77 -0
  576. package/locales/computer/zh-Hant.json +77 -0
  577. package/locales/connections/am.json +85 -0
  578. package/locales/connections/ar.json +101 -0
  579. package/locales/connections/bg.json +85 -0
  580. package/locales/connections/bn.json +85 -0
  581. package/locales/connections/br.json +97 -0
  582. package/locales/connections/co.json +89 -0
  583. package/locales/connections/cs.json +93 -0
  584. package/locales/connections/da.json +85 -0
  585. package/locales/connections/de.json +85 -0
  586. package/locales/connections/el.json +85 -0
  587. package/locales/connections/en.json +85 -0
  588. package/locales/connections/es.json +89 -0
  589. package/locales/connections/fa.json +85 -0
  590. package/locales/connections/fi.json +85 -0
  591. package/locales/connections/fr-CA.json +89 -0
  592. package/locales/connections/fr.json +89 -0
  593. package/locales/connections/ha.json +85 -0
  594. package/locales/connections/he.json +93 -0
  595. package/locales/connections/hi.json +85 -0
  596. package/locales/connections/hr.json +89 -0
  597. package/locales/connections/hu.json +85 -0
  598. package/locales/connections/id.json +81 -0
  599. package/locales/connections/it.json +89 -0
  600. package/locales/connections/ja.json +81 -0
  601. package/locales/connections/ko.json +81 -0
  602. package/locales/connections/mr.json +85 -0
  603. package/locales/connections/ms.json +81 -0
  604. package/locales/connections/nl.json +85 -0
  605. package/locales/connections/pl.json +93 -0
  606. package/locales/connections/pt.json +89 -0
  607. package/locales/connections/ro.json +89 -0
  608. package/locales/connections/ru.json +93 -0
  609. package/locales/connections/sk.json +93 -0
  610. package/locales/connections/sv.json +85 -0
  611. package/locales/connections/sw.json +85 -0
  612. package/locales/connections/ta.json +85 -0
  613. package/locales/connections/te.json +85 -0
  614. package/locales/connections/th.json +81 -0
  615. package/locales/connections/tl.json +85 -0
  616. package/locales/connections/tr.json +85 -0
  617. package/locales/connections/uk.json +93 -0
  618. package/locales/connections/ur.json +85 -0
  619. package/locales/connections/vi.json +81 -0
  620. package/locales/connections/yo.json +81 -0
  621. package/locales/connections/zh-Hans.json +81 -0
  622. package/locales/connections/zh-Hant.json +81 -0
  623. package/locales/creations/am.json +51 -0
  624. package/locales/creations/ar.json +51 -0
  625. package/locales/creations/bg.json +51 -0
  626. package/locales/creations/bn.json +51 -0
  627. package/locales/creations/br.json +51 -0
  628. package/locales/creations/co.json +51 -0
  629. package/locales/creations/cs.json +51 -0
  630. package/locales/creations/da.json +51 -0
  631. package/locales/creations/de.json +51 -0
  632. package/locales/creations/el.json +51 -0
  633. package/locales/creations/en.json +51 -0
  634. package/locales/creations/es.json +51 -0
  635. package/locales/creations/fa.json +51 -0
  636. package/locales/creations/fi.json +51 -0
  637. package/locales/creations/fr-CA.json +51 -0
  638. package/locales/creations/fr.json +51 -0
  639. package/locales/creations/ha.json +51 -0
  640. package/locales/creations/he.json +51 -0
  641. package/locales/creations/hi.json +51 -0
  642. package/locales/creations/hr.json +51 -0
  643. package/locales/creations/hu.json +51 -0
  644. package/locales/creations/id.json +51 -0
  645. package/locales/creations/it.json +51 -0
  646. package/locales/creations/ja.json +51 -0
  647. package/locales/creations/ko.json +51 -0
  648. package/locales/creations/mr.json +51 -0
  649. package/locales/creations/ms.json +51 -0
  650. package/locales/creations/nl.json +51 -0
  651. package/locales/creations/pl.json +51 -0
  652. package/locales/creations/pt.json +51 -0
  653. package/locales/creations/ro.json +51 -0
  654. package/locales/creations/ru.json +51 -0
  655. package/locales/creations/sk.json +51 -0
  656. package/locales/creations/sv.json +51 -0
  657. package/locales/creations/sw.json +51 -0
  658. package/locales/creations/ta.json +51 -0
  659. package/locales/creations/te.json +51 -0
  660. package/locales/creations/th.json +51 -0
  661. package/locales/creations/tl.json +51 -0
  662. package/locales/creations/tr.json +51 -0
  663. package/locales/creations/uk.json +51 -0
  664. package/locales/creations/ur.json +51 -0
  665. package/locales/creations/vi.json +51 -0
  666. package/locales/creations/yo.json +51 -0
  667. package/locales/creations/zh-Hans.json +51 -0
  668. package/locales/creations/zh-Hant.json +51 -0
  669. package/locales/cs.json +430 -0
  670. package/locales/da.json +414 -0
  671. package/locales/data/am.json +41 -0
  672. package/locales/data/ar.json +41 -0
  673. package/locales/data/bg.json +41 -0
  674. package/locales/data/bn.json +41 -0
  675. package/locales/data/br.json +41 -0
  676. package/locales/data/co.json +41 -0
  677. package/locales/data/cs.json +41 -0
  678. package/locales/data/da.json +41 -0
  679. package/locales/data/de.json +41 -0
  680. package/locales/data/el.json +41 -0
  681. package/locales/data/en.json +41 -0
  682. package/locales/data/es.json +41 -0
  683. package/locales/data/fa.json +41 -0
  684. package/locales/data/fi.json +41 -0
  685. package/locales/data/fr-CA.json +41 -0
  686. package/locales/data/fr.json +41 -0
  687. package/locales/data/ha.json +41 -0
  688. package/locales/data/he.json +41 -0
  689. package/locales/data/hi.json +41 -0
  690. package/locales/data/hr.json +41 -0
  691. package/locales/data/hu.json +41 -0
  692. package/locales/data/id.json +41 -0
  693. package/locales/data/it.json +41 -0
  694. package/locales/data/ja.json +41 -0
  695. package/locales/data/ko.json +41 -0
  696. package/locales/data/mr.json +41 -0
  697. package/locales/data/ms.json +41 -0
  698. package/locales/data/nl.json +41 -0
  699. package/locales/data/pl.json +41 -0
  700. package/locales/data/pt.json +41 -0
  701. package/locales/data/ro.json +41 -0
  702. package/locales/data/ru.json +41 -0
  703. package/locales/data/sk.json +41 -0
  704. package/locales/data/sv.json +41 -0
  705. package/locales/data/sw.json +41 -0
  706. package/locales/data/ta.json +41 -0
  707. package/locales/data/te.json +41 -0
  708. package/locales/data/th.json +41 -0
  709. package/locales/data/tl.json +41 -0
  710. package/locales/data/tr.json +41 -0
  711. package/locales/data/uk.json +41 -0
  712. package/locales/data/ur.json +41 -0
  713. package/locales/data/vi.json +41 -0
  714. package/locales/data/yo.json +41 -0
  715. package/locales/data/zh-Hans.json +41 -0
  716. package/locales/data/zh-Hant.json +41 -0
  717. package/locales/de.json +414 -0
  718. package/locales/designs/am.json +152 -0
  719. package/locales/designs/ar.json +164 -0
  720. package/locales/designs/bg.json +152 -0
  721. package/locales/designs/bn.json +152 -0
  722. package/locales/designs/br.json +161 -0
  723. package/locales/designs/co.json +155 -0
  724. package/locales/designs/cs.json +158 -0
  725. package/locales/designs/da.json +152 -0
  726. package/locales/designs/de.json +152 -0
  727. package/locales/designs/el.json +152 -0
  728. package/locales/designs/en.json +152 -0
  729. package/locales/designs/es.json +155 -0
  730. package/locales/designs/fa.json +152 -0
  731. package/locales/designs/fi.json +152 -0
  732. package/locales/designs/fr-CA.json +155 -0
  733. package/locales/designs/fr.json +155 -0
  734. package/locales/designs/ha.json +152 -0
  735. package/locales/designs/he.json +155 -0
  736. package/locales/designs/hi.json +152 -0
  737. package/locales/designs/hr.json +155 -0
  738. package/locales/designs/hu.json +152 -0
  739. package/locales/designs/id.json +149 -0
  740. package/locales/designs/it.json +155 -0
  741. package/locales/designs/ja.json +149 -0
  742. package/locales/designs/ko.json +149 -0
  743. package/locales/designs/mr.json +152 -0
  744. package/locales/designs/ms.json +149 -0
  745. package/locales/designs/nl.json +152 -0
  746. package/locales/designs/pl.json +158 -0
  747. package/locales/designs/pt.json +155 -0
  748. package/locales/designs/ro.json +155 -0
  749. package/locales/designs/ru.json +158 -0
  750. package/locales/designs/sk.json +158 -0
  751. package/locales/designs/sv.json +152 -0
  752. package/locales/designs/sw.json +152 -0
  753. package/locales/designs/ta.json +152 -0
  754. package/locales/designs/te.json +152 -0
  755. package/locales/designs/th.json +149 -0
  756. package/locales/designs/tl.json +152 -0
  757. package/locales/designs/tr.json +152 -0
  758. package/locales/designs/uk.json +158 -0
  759. package/locales/designs/ur.json +152 -0
  760. package/locales/designs/vi.json +149 -0
  761. package/locales/designs/yo.json +149 -0
  762. package/locales/designs/zh-Hans.json +149 -0
  763. package/locales/designs/zh-Hant.json +149 -0
  764. package/locales/dialogs/am.json +194 -0
  765. package/locales/dialogs/ar.json +202 -0
  766. package/locales/dialogs/bg.json +194 -0
  767. package/locales/dialogs/bn.json +194 -0
  768. package/locales/dialogs/br.json +200 -0
  769. package/locales/dialogs/co.json +196 -0
  770. package/locales/dialogs/cs.json +198 -0
  771. package/locales/dialogs/da.json +194 -0
  772. package/locales/dialogs/de.json +194 -0
  773. package/locales/dialogs/el.json +194 -0
  774. package/locales/dialogs/en.json +194 -0
  775. package/locales/dialogs/es.json +196 -0
  776. package/locales/dialogs/fa.json +194 -0
  777. package/locales/dialogs/fi.json +194 -0
  778. package/locales/dialogs/fr-CA.json +196 -0
  779. package/locales/dialogs/fr.json +196 -0
  780. package/locales/dialogs/ha.json +194 -0
  781. package/locales/dialogs/he.json +198 -0
  782. package/locales/dialogs/hi.json +194 -0
  783. package/locales/dialogs/hr.json +196 -0
  784. package/locales/dialogs/hu.json +194 -0
  785. package/locales/dialogs/id.json +192 -0
  786. package/locales/dialogs/it.json +196 -0
  787. package/locales/dialogs/ja.json +192 -0
  788. package/locales/dialogs/ko.json +192 -0
  789. package/locales/dialogs/mr.json +194 -0
  790. package/locales/dialogs/ms.json +192 -0
  791. package/locales/dialogs/nl.json +194 -0
  792. package/locales/dialogs/pl.json +198 -0
  793. package/locales/dialogs/pt.json +196 -0
  794. package/locales/dialogs/ro.json +196 -0
  795. package/locales/dialogs/ru.json +198 -0
  796. package/locales/dialogs/sk.json +198 -0
  797. package/locales/dialogs/sv.json +194 -0
  798. package/locales/dialogs/sw.json +194 -0
  799. package/locales/dialogs/ta.json +194 -0
  800. package/locales/dialogs/te.json +194 -0
  801. package/locales/dialogs/th.json +192 -0
  802. package/locales/dialogs/tl.json +194 -0
  803. package/locales/dialogs/tr.json +194 -0
  804. package/locales/dialogs/uk.json +198 -0
  805. package/locales/dialogs/ur.json +194 -0
  806. package/locales/dialogs/vi.json +192 -0
  807. package/locales/dialogs/yo.json +192 -0
  808. package/locales/dialogs/zh-Hans.json +192 -0
  809. package/locales/dialogs/zh-Hant.json +192 -0
  810. package/locales/documents/am.json +70 -0
  811. package/locales/documents/ar.json +78 -0
  812. package/locales/documents/bg.json +70 -0
  813. package/locales/documents/bn.json +70 -0
  814. package/locales/documents/br.json +76 -0
  815. package/locales/documents/co.json +72 -0
  816. package/locales/documents/cs.json +74 -0
  817. package/locales/documents/da.json +70 -0
  818. package/locales/documents/de.json +70 -0
  819. package/locales/documents/el.json +70 -0
  820. package/locales/documents/en.json +70 -0
  821. package/locales/documents/es.json +72 -0
  822. package/locales/documents/fa.json +70 -0
  823. package/locales/documents/fi.json +70 -0
  824. package/locales/documents/fr-CA.json +72 -0
  825. package/locales/documents/fr.json +72 -0
  826. package/locales/documents/ha.json +70 -0
  827. package/locales/documents/he.json +72 -0
  828. package/locales/documents/hi.json +70 -0
  829. package/locales/documents/hr.json +72 -0
  830. package/locales/documents/hu.json +70 -0
  831. package/locales/documents/id.json +68 -0
  832. package/locales/documents/it.json +72 -0
  833. package/locales/documents/ja.json +68 -0
  834. package/locales/documents/ko.json +68 -0
  835. package/locales/documents/mr.json +70 -0
  836. package/locales/documents/ms.json +68 -0
  837. package/locales/documents/nl.json +70 -0
  838. package/locales/documents/pl.json +74 -0
  839. package/locales/documents/pt.json +72 -0
  840. package/locales/documents/ro.json +72 -0
  841. package/locales/documents/ru.json +74 -0
  842. package/locales/documents/sk.json +74 -0
  843. package/locales/documents/sv.json +70 -0
  844. package/locales/documents/sw.json +70 -0
  845. package/locales/documents/ta.json +70 -0
  846. package/locales/documents/te.json +70 -0
  847. package/locales/documents/th.json +68 -0
  848. package/locales/documents/tl.json +70 -0
  849. package/locales/documents/tr.json +70 -0
  850. package/locales/documents/uk.json +74 -0
  851. package/locales/documents/ur.json +70 -0
  852. package/locales/documents/vi.json +68 -0
  853. package/locales/documents/yo.json +68 -0
  854. package/locales/documents/zh-Hans.json +68 -0
  855. package/locales/documents/zh-Hant.json +68 -0
  856. package/locales/el.json +414 -0
  857. package/locales/en.json +414 -0
  858. package/locales/enterprise/am.json +21 -0
  859. package/locales/enterprise/ar.json +21 -0
  860. package/locales/enterprise/bg.json +21 -0
  861. package/locales/enterprise/bn.json +21 -0
  862. package/locales/enterprise/br.json +21 -0
  863. package/locales/enterprise/co.json +21 -0
  864. package/locales/enterprise/cs.json +21 -0
  865. package/locales/enterprise/da.json +21 -0
  866. package/locales/enterprise/de.json +21 -0
  867. package/locales/enterprise/el.json +21 -0
  868. package/locales/enterprise/en.json +21 -0
  869. package/locales/enterprise/es.json +21 -0
  870. package/locales/enterprise/fa.json +21 -0
  871. package/locales/enterprise/fi.json +21 -0
  872. package/locales/enterprise/fr-CA.json +21 -0
  873. package/locales/enterprise/fr.json +21 -0
  874. package/locales/enterprise/ha.json +21 -0
  875. package/locales/enterprise/he.json +21 -0
  876. package/locales/enterprise/hi.json +21 -0
  877. package/locales/enterprise/hr.json +21 -0
  878. package/locales/enterprise/hu.json +21 -0
  879. package/locales/enterprise/id.json +21 -0
  880. package/locales/enterprise/it.json +21 -0
  881. package/locales/enterprise/ja.json +21 -0
  882. package/locales/enterprise/ko.json +21 -0
  883. package/locales/enterprise/mr.json +21 -0
  884. package/locales/enterprise/ms.json +21 -0
  885. package/locales/enterprise/nl.json +21 -0
  886. package/locales/enterprise/pl.json +21 -0
  887. package/locales/enterprise/pt.json +21 -0
  888. package/locales/enterprise/ro.json +21 -0
  889. package/locales/enterprise/ru.json +21 -0
  890. package/locales/enterprise/sk.json +21 -0
  891. package/locales/enterprise/sv.json +21 -0
  892. package/locales/enterprise/sw.json +21 -0
  893. package/locales/enterprise/ta.json +21 -0
  894. package/locales/enterprise/te.json +21 -0
  895. package/locales/enterprise/th.json +21 -0
  896. package/locales/enterprise/tl.json +21 -0
  897. package/locales/enterprise/tr.json +21 -0
  898. package/locales/enterprise/uk.json +21 -0
  899. package/locales/enterprise/ur.json +21 -0
  900. package/locales/enterprise/vi.json +21 -0
  901. package/locales/enterprise/yo.json +21 -0
  902. package/locales/enterprise/zh-Hans.json +21 -0
  903. package/locales/enterprise/zh-Hant.json +21 -0
  904. package/locales/es.json +422 -0
  905. package/locales/extensions/am.json +58 -0
  906. package/locales/extensions/ar.json +58 -0
  907. package/locales/extensions/bg.json +58 -0
  908. package/locales/extensions/bn.json +58 -0
  909. package/locales/extensions/br.json +58 -0
  910. package/locales/extensions/co.json +58 -0
  911. package/locales/extensions/cs.json +58 -0
  912. package/locales/extensions/da.json +58 -0
  913. package/locales/extensions/de.json +58 -0
  914. package/locales/extensions/el.json +58 -0
  915. package/locales/extensions/en.json +58 -0
  916. package/locales/extensions/es.json +58 -0
  917. package/locales/extensions/fa.json +58 -0
  918. package/locales/extensions/fi.json +58 -0
  919. package/locales/extensions/fr-CA.json +58 -0
  920. package/locales/extensions/fr.json +58 -0
  921. package/locales/extensions/ha.json +58 -0
  922. package/locales/extensions/he.json +58 -0
  923. package/locales/extensions/hi.json +58 -0
  924. package/locales/extensions/hr.json +58 -0
  925. package/locales/extensions/hu.json +58 -0
  926. package/locales/extensions/id.json +58 -0
  927. package/locales/extensions/it.json +58 -0
  928. package/locales/extensions/ja.json +58 -0
  929. package/locales/extensions/ko.json +58 -0
  930. package/locales/extensions/mr.json +58 -0
  931. package/locales/extensions/ms.json +58 -0
  932. package/locales/extensions/nl.json +58 -0
  933. package/locales/extensions/pl.json +58 -0
  934. package/locales/extensions/pt.json +58 -0
  935. package/locales/extensions/ro.json +58 -0
  936. package/locales/extensions/ru.json +58 -0
  937. package/locales/extensions/sk.json +58 -0
  938. package/locales/extensions/sv.json +58 -0
  939. package/locales/extensions/sw.json +58 -0
  940. package/locales/extensions/ta.json +58 -0
  941. package/locales/extensions/te.json +58 -0
  942. package/locales/extensions/th.json +58 -0
  943. package/locales/extensions/tl.json +58 -0
  944. package/locales/extensions/tr.json +58 -0
  945. package/locales/extensions/uk.json +58 -0
  946. package/locales/extensions/ur.json +58 -0
  947. package/locales/extensions/vi.json +58 -0
  948. package/locales/extensions/yo.json +58 -0
  949. package/locales/extensions/zh-Hans.json +58 -0
  950. package/locales/extensions/zh-Hant.json +58 -0
  951. package/locales/fa.json +414 -0
  952. package/locales/fi.json +414 -0
  953. package/locales/first/am.json +26 -0
  954. package/locales/first/ar.json +26 -0
  955. package/locales/first/bg.json +26 -0
  956. package/locales/first/bn.json +26 -0
  957. package/locales/first/br.json +26 -0
  958. package/locales/first/co.json +26 -0
  959. package/locales/first/cs.json +26 -0
  960. package/locales/first/da.json +26 -0
  961. package/locales/first/de.json +26 -0
  962. package/locales/first/el.json +26 -0
  963. package/locales/first/en.json +26 -0
  964. package/locales/first/es.json +26 -0
  965. package/locales/first/fa.json +26 -0
  966. package/locales/first/fi.json +26 -0
  967. package/locales/first/fr-CA.json +26 -0
  968. package/locales/first/fr.json +26 -0
  969. package/locales/first/ha.json +26 -0
  970. package/locales/first/he.json +26 -0
  971. package/locales/first/hi.json +26 -0
  972. package/locales/first/hr.json +26 -0
  973. package/locales/first/hu.json +26 -0
  974. package/locales/first/id.json +26 -0
  975. package/locales/first/it.json +26 -0
  976. package/locales/first/ja.json +26 -0
  977. package/locales/first/ko.json +26 -0
  978. package/locales/first/mr.json +26 -0
  979. package/locales/first/ms.json +26 -0
  980. package/locales/first/nl.json +26 -0
  981. package/locales/first/pl.json +26 -0
  982. package/locales/first/pt.json +26 -0
  983. package/locales/first/ro.json +26 -0
  984. package/locales/first/ru.json +26 -0
  985. package/locales/first/sk.json +26 -0
  986. package/locales/first/sv.json +26 -0
  987. package/locales/first/sw.json +26 -0
  988. package/locales/first/ta.json +26 -0
  989. package/locales/first/te.json +26 -0
  990. package/locales/first/th.json +26 -0
  991. package/locales/first/tl.json +26 -0
  992. package/locales/first/tr.json +26 -0
  993. package/locales/first/uk.json +26 -0
  994. package/locales/first/ur.json +26 -0
  995. package/locales/first/vi.json +26 -0
  996. package/locales/first/yo.json +26 -0
  997. package/locales/first/zh-Hans.json +26 -0
  998. package/locales/first/zh-Hant.json +26 -0
  999. package/locales/flows/am.json +51 -0
  1000. package/locales/flows/ar.json +51 -0
  1001. package/locales/flows/bg.json +51 -0
  1002. package/locales/flows/bn.json +51 -0
  1003. package/locales/flows/br.json +51 -0
  1004. package/locales/flows/co.json +51 -0
  1005. package/locales/flows/cs.json +51 -0
  1006. package/locales/flows/da.json +51 -0
  1007. package/locales/flows/de.json +51 -0
  1008. package/locales/flows/el.json +51 -0
  1009. package/locales/flows/en.json +51 -0
  1010. package/locales/flows/es.json +51 -0
  1011. package/locales/flows/fa.json +51 -0
  1012. package/locales/flows/fi.json +51 -0
  1013. package/locales/flows/fr-CA.json +51 -0
  1014. package/locales/flows/fr.json +51 -0
  1015. package/locales/flows/ha.json +51 -0
  1016. package/locales/flows/he.json +51 -0
  1017. package/locales/flows/hi.json +51 -0
  1018. package/locales/flows/hr.json +51 -0
  1019. package/locales/flows/hu.json +51 -0
  1020. package/locales/flows/id.json +51 -0
  1021. package/locales/flows/it.json +51 -0
  1022. package/locales/flows/ja.json +51 -0
  1023. package/locales/flows/ko.json +51 -0
  1024. package/locales/flows/mr.json +51 -0
  1025. package/locales/flows/ms.json +51 -0
  1026. package/locales/flows/nl.json +51 -0
  1027. package/locales/flows/pl.json +51 -0
  1028. package/locales/flows/pt.json +51 -0
  1029. package/locales/flows/ro.json +51 -0
  1030. package/locales/flows/ru.json +51 -0
  1031. package/locales/flows/sk.json +51 -0
  1032. package/locales/flows/sv.json +51 -0
  1033. package/locales/flows/sw.json +51 -0
  1034. package/locales/flows/ta.json +51 -0
  1035. package/locales/flows/te.json +51 -0
  1036. package/locales/flows/th.json +51 -0
  1037. package/locales/flows/tl.json +51 -0
  1038. package/locales/flows/tr.json +51 -0
  1039. package/locales/flows/uk.json +51 -0
  1040. package/locales/flows/ur.json +51 -0
  1041. package/locales/flows/vi.json +51 -0
  1042. package/locales/flows/yo.json +51 -0
  1043. package/locales/flows/zh-Hans.json +51 -0
  1044. package/locales/flows/zh-Hant.json +51 -0
  1045. package/locales/folders/am.json +40 -0
  1046. package/locales/folders/ar.json +44 -0
  1047. package/locales/folders/bg.json +40 -0
  1048. package/locales/folders/bn.json +40 -0
  1049. package/locales/folders/br.json +43 -0
  1050. package/locales/folders/co.json +41 -0
  1051. package/locales/folders/cs.json +42 -0
  1052. package/locales/folders/da.json +40 -0
  1053. package/locales/folders/de.json +40 -0
  1054. package/locales/folders/el.json +40 -0
  1055. package/locales/folders/en.json +40 -0
  1056. package/locales/folders/es.json +41 -0
  1057. package/locales/folders/fa.json +40 -0
  1058. package/locales/folders/fi.json +40 -0
  1059. package/locales/folders/fr-CA.json +41 -0
  1060. package/locales/folders/fr.json +41 -0
  1061. package/locales/folders/ha.json +40 -0
  1062. package/locales/folders/he.json +41 -0
  1063. package/locales/folders/hi.json +40 -0
  1064. package/locales/folders/hr.json +41 -0
  1065. package/locales/folders/hu.json +40 -0
  1066. package/locales/folders/id.json +39 -0
  1067. package/locales/folders/it.json +41 -0
  1068. package/locales/folders/ja.json +39 -0
  1069. package/locales/folders/ko.json +39 -0
  1070. package/locales/folders/mr.json +40 -0
  1071. package/locales/folders/ms.json +39 -0
  1072. package/locales/folders/nl.json +40 -0
  1073. package/locales/folders/pl.json +42 -0
  1074. package/locales/folders/pt.json +41 -0
  1075. package/locales/folders/ro.json +41 -0
  1076. package/locales/folders/ru.json +42 -0
  1077. package/locales/folders/sk.json +42 -0
  1078. package/locales/folders/sv.json +40 -0
  1079. package/locales/folders/sw.json +40 -0
  1080. package/locales/folders/ta.json +40 -0
  1081. package/locales/folders/te.json +40 -0
  1082. package/locales/folders/th.json +39 -0
  1083. package/locales/folders/tl.json +40 -0
  1084. package/locales/folders/tr.json +40 -0
  1085. package/locales/folders/uk.json +42 -0
  1086. package/locales/folders/ur.json +40 -0
  1087. package/locales/folders/vi.json +39 -0
  1088. package/locales/folders/yo.json +39 -0
  1089. package/locales/folders/zh-Hans.json +39 -0
  1090. package/locales/folders/zh-Hant.json +39 -0
  1091. package/locales/fr-CA.json +422 -0
  1092. package/locales/fr.json +422 -0
  1093. package/locales/ha.json +414 -0
  1094. package/locales/he.json +429 -0
  1095. package/locales/hi.json +414 -0
  1096. package/locales/hr.json +422 -0
  1097. package/locales/hu.json +414 -0
  1098. package/locales/id.json +406 -0
  1099. package/locales/interactive/am.json +9 -0
  1100. package/locales/interactive/ar.json +9 -0
  1101. package/locales/interactive/bg.json +9 -0
  1102. package/locales/interactive/bn.json +9 -0
  1103. package/locales/interactive/br.json +9 -0
  1104. package/locales/interactive/co.json +9 -0
  1105. package/locales/interactive/cs.json +9 -0
  1106. package/locales/interactive/da.json +9 -0
  1107. package/locales/interactive/de.json +9 -0
  1108. package/locales/interactive/el.json +9 -0
  1109. package/locales/interactive/en.json +9 -0
  1110. package/locales/interactive/es.json +9 -0
  1111. package/locales/interactive/fa.json +9 -0
  1112. package/locales/interactive/fi.json +9 -0
  1113. package/locales/interactive/fr-CA.json +9 -0
  1114. package/locales/interactive/fr.json +9 -0
  1115. package/locales/interactive/ha.json +9 -0
  1116. package/locales/interactive/he.json +9 -0
  1117. package/locales/interactive/hi.json +9 -0
  1118. package/locales/interactive/hr.json +9 -0
  1119. package/locales/interactive/hu.json +9 -0
  1120. package/locales/interactive/id.json +9 -0
  1121. package/locales/interactive/it.json +9 -0
  1122. package/locales/interactive/ja.json +9 -0
  1123. package/locales/interactive/ko.json +9 -0
  1124. package/locales/interactive/mr.json +9 -0
  1125. package/locales/interactive/ms.json +9 -0
  1126. package/locales/interactive/nl.json +9 -0
  1127. package/locales/interactive/pl.json +9 -0
  1128. package/locales/interactive/pt.json +9 -0
  1129. package/locales/interactive/ro.json +9 -0
  1130. package/locales/interactive/ru.json +9 -0
  1131. package/locales/interactive/sk.json +9 -0
  1132. package/locales/interactive/sv.json +9 -0
  1133. package/locales/interactive/sw.json +9 -0
  1134. package/locales/interactive/ta.json +9 -0
  1135. package/locales/interactive/te.json +9 -0
  1136. package/locales/interactive/th.json +9 -0
  1137. package/locales/interactive/tl.json +9 -0
  1138. package/locales/interactive/tr.json +9 -0
  1139. package/locales/interactive/uk.json +9 -0
  1140. package/locales/interactive/ur.json +9 -0
  1141. package/locales/interactive/vi.json +9 -0
  1142. package/locales/interactive/yo.json +9 -0
  1143. package/locales/interactive/zh-Hans.json +9 -0
  1144. package/locales/interactive/zh-Hant.json +9 -0
  1145. package/locales/it.json +422 -0
  1146. package/locales/ja.json +406 -0
  1147. package/locales/ko.json +406 -0
  1148. package/locales/layouts/am.json +9 -0
  1149. package/locales/layouts/ar.json +9 -0
  1150. package/locales/layouts/bg.json +9 -0
  1151. package/locales/layouts/bn.json +9 -0
  1152. package/locales/layouts/br.json +9 -0
  1153. package/locales/layouts/co.json +9 -0
  1154. package/locales/layouts/cs.json +9 -0
  1155. package/locales/layouts/da.json +9 -0
  1156. package/locales/layouts/de.json +9 -0
  1157. package/locales/layouts/el.json +9 -0
  1158. package/locales/layouts/en.json +9 -0
  1159. package/locales/layouts/es.json +9 -0
  1160. package/locales/layouts/fa.json +9 -0
  1161. package/locales/layouts/fi.json +9 -0
  1162. package/locales/layouts/fr-CA.json +9 -0
  1163. package/locales/layouts/fr.json +9 -0
  1164. package/locales/layouts/ha.json +9 -0
  1165. package/locales/layouts/he.json +9 -0
  1166. package/locales/layouts/hi.json +9 -0
  1167. package/locales/layouts/hr.json +9 -0
  1168. package/locales/layouts/hu.json +9 -0
  1169. package/locales/layouts/id.json +9 -0
  1170. package/locales/layouts/it.json +9 -0
  1171. package/locales/layouts/ja.json +9 -0
  1172. package/locales/layouts/ko.json +9 -0
  1173. package/locales/layouts/mr.json +9 -0
  1174. package/locales/layouts/ms.json +9 -0
  1175. package/locales/layouts/nl.json +9 -0
  1176. package/locales/layouts/pl.json +9 -0
  1177. package/locales/layouts/pt.json +9 -0
  1178. package/locales/layouts/ro.json +9 -0
  1179. package/locales/layouts/ru.json +9 -0
  1180. package/locales/layouts/sk.json +9 -0
  1181. package/locales/layouts/sv.json +9 -0
  1182. package/locales/layouts/sw.json +9 -0
  1183. package/locales/layouts/ta.json +9 -0
  1184. package/locales/layouts/te.json +9 -0
  1185. package/locales/layouts/th.json +9 -0
  1186. package/locales/layouts/tl.json +9 -0
  1187. package/locales/layouts/tr.json +9 -0
  1188. package/locales/layouts/uk.json +9 -0
  1189. package/locales/layouts/ur.json +9 -0
  1190. package/locales/layouts/vi.json +9 -0
  1191. package/locales/layouts/yo.json +9 -0
  1192. package/locales/layouts/zh-Hans.json +9 -0
  1193. package/locales/layouts/zh-Hant.json +9 -0
  1194. package/locales/lock/am.json +36 -0
  1195. package/locales/lock/ar.json +36 -0
  1196. package/locales/lock/bg.json +36 -0
  1197. package/locales/lock/bn.json +36 -0
  1198. package/locales/lock/br.json +36 -0
  1199. package/locales/lock/co.json +36 -0
  1200. package/locales/lock/cs.json +36 -0
  1201. package/locales/lock/da.json +36 -0
  1202. package/locales/lock/de.json +36 -0
  1203. package/locales/lock/el.json +36 -0
  1204. package/locales/lock/en.json +36 -0
  1205. package/locales/lock/es.json +36 -0
  1206. package/locales/lock/fa.json +36 -0
  1207. package/locales/lock/fi.json +36 -0
  1208. package/locales/lock/fr-CA.json +36 -0
  1209. package/locales/lock/fr.json +36 -0
  1210. package/locales/lock/ha.json +36 -0
  1211. package/locales/lock/he.json +36 -0
  1212. package/locales/lock/hi.json +36 -0
  1213. package/locales/lock/hr.json +36 -0
  1214. package/locales/lock/hu.json +36 -0
  1215. package/locales/lock/id.json +36 -0
  1216. package/locales/lock/it.json +36 -0
  1217. package/locales/lock/ja.json +36 -0
  1218. package/locales/lock/ko.json +36 -0
  1219. package/locales/lock/mr.json +36 -0
  1220. package/locales/lock/ms.json +36 -0
  1221. package/locales/lock/nl.json +36 -0
  1222. package/locales/lock/pl.json +36 -0
  1223. package/locales/lock/pt.json +36 -0
  1224. package/locales/lock/ro.json +36 -0
  1225. package/locales/lock/ru.json +36 -0
  1226. package/locales/lock/sk.json +36 -0
  1227. package/locales/lock/sv.json +36 -0
  1228. package/locales/lock/sw.json +36 -0
  1229. package/locales/lock/ta.json +36 -0
  1230. package/locales/lock/te.json +36 -0
  1231. package/locales/lock/th.json +36 -0
  1232. package/locales/lock/tl.json +36 -0
  1233. package/locales/lock/tr.json +36 -0
  1234. package/locales/lock/uk.json +36 -0
  1235. package/locales/lock/ur.json +36 -0
  1236. package/locales/lock/vi.json +36 -0
  1237. package/locales/lock/yo.json +36 -0
  1238. package/locales/lock/zh-Hans.json +36 -0
  1239. package/locales/lock/zh-Hant.json +36 -0
  1240. package/locales/look/am.json +25 -0
  1241. package/locales/look/ar.json +25 -0
  1242. package/locales/look/bg.json +25 -0
  1243. package/locales/look/bn.json +25 -0
  1244. package/locales/look/br.json +25 -0
  1245. package/locales/look/co.json +25 -0
  1246. package/locales/look/cs.json +25 -0
  1247. package/locales/look/da.json +25 -0
  1248. package/locales/look/de.json +25 -0
  1249. package/locales/look/el.json +25 -0
  1250. package/locales/look/en.json +25 -0
  1251. package/locales/look/es.json +25 -0
  1252. package/locales/look/fa.json +25 -0
  1253. package/locales/look/fi.json +25 -0
  1254. package/locales/look/fr-CA.json +25 -0
  1255. package/locales/look/fr.json +25 -0
  1256. package/locales/look/ha.json +25 -0
  1257. package/locales/look/he.json +25 -0
  1258. package/locales/look/hi.json +25 -0
  1259. package/locales/look/hr.json +25 -0
  1260. package/locales/look/hu.json +25 -0
  1261. package/locales/look/id.json +25 -0
  1262. package/locales/look/it.json +25 -0
  1263. package/locales/look/ja.json +25 -0
  1264. package/locales/look/ko.json +25 -0
  1265. package/locales/look/mr.json +25 -0
  1266. package/locales/look/ms.json +25 -0
  1267. package/locales/look/nl.json +25 -0
  1268. package/locales/look/pl.json +25 -0
  1269. package/locales/look/pt.json +25 -0
  1270. package/locales/look/ro.json +25 -0
  1271. package/locales/look/ru.json +25 -0
  1272. package/locales/look/sk.json +25 -0
  1273. package/locales/look/sv.json +25 -0
  1274. package/locales/look/sw.json +25 -0
  1275. package/locales/look/ta.json +25 -0
  1276. package/locales/look/te.json +25 -0
  1277. package/locales/look/th.json +25 -0
  1278. package/locales/look/tl.json +25 -0
  1279. package/locales/look/tr.json +25 -0
  1280. package/locales/look/uk.json +25 -0
  1281. package/locales/look/ur.json +25 -0
  1282. package/locales/look/vi.json +25 -0
  1283. package/locales/look/yo.json +25 -0
  1284. package/locales/look/zh-Hans.json +25 -0
  1285. package/locales/look/zh-Hant.json +25 -0
  1286. package/locales/machine/am.json +20 -0
  1287. package/locales/machine/ar.json +20 -0
  1288. package/locales/machine/bg.json +20 -0
  1289. package/locales/machine/bn.json +20 -0
  1290. package/locales/machine/br.json +20 -0
  1291. package/locales/machine/co.json +20 -0
  1292. package/locales/machine/cs.json +20 -0
  1293. package/locales/machine/da.json +20 -0
  1294. package/locales/machine/de.json +20 -0
  1295. package/locales/machine/el.json +20 -0
  1296. package/locales/machine/en.json +20 -0
  1297. package/locales/machine/es.json +20 -0
  1298. package/locales/machine/fa.json +20 -0
  1299. package/locales/machine/fi.json +20 -0
  1300. package/locales/machine/fr-CA.json +20 -0
  1301. package/locales/machine/fr.json +20 -0
  1302. package/locales/machine/ha.json +20 -0
  1303. package/locales/machine/he.json +20 -0
  1304. package/locales/machine/hi.json +20 -0
  1305. package/locales/machine/hr.json +20 -0
  1306. package/locales/machine/hu.json +20 -0
  1307. package/locales/machine/id.json +20 -0
  1308. package/locales/machine/it.json +20 -0
  1309. package/locales/machine/ja.json +20 -0
  1310. package/locales/machine/ko.json +20 -0
  1311. package/locales/machine/mr.json +20 -0
  1312. package/locales/machine/ms.json +20 -0
  1313. package/locales/machine/nl.json +20 -0
  1314. package/locales/machine/pl.json +20 -0
  1315. package/locales/machine/pt.json +20 -0
  1316. package/locales/machine/ro.json +20 -0
  1317. package/locales/machine/ru.json +20 -0
  1318. package/locales/machine/sk.json +20 -0
  1319. package/locales/machine/sv.json +20 -0
  1320. package/locales/machine/sw.json +20 -0
  1321. package/locales/machine/ta.json +20 -0
  1322. package/locales/machine/te.json +20 -0
  1323. package/locales/machine/th.json +20 -0
  1324. package/locales/machine/tl.json +20 -0
  1325. package/locales/machine/tr.json +20 -0
  1326. package/locales/machine/uk.json +20 -0
  1327. package/locales/machine/ur.json +20 -0
  1328. package/locales/machine/vi.json +20 -0
  1329. package/locales/machine/yo.json +20 -0
  1330. package/locales/machine/zh-Hans.json +20 -0
  1331. package/locales/machine/zh-Hant.json +20 -0
  1332. package/locales/made/am.json +17 -0
  1333. package/locales/made/ar.json +17 -0
  1334. package/locales/made/bg.json +17 -0
  1335. package/locales/made/bn.json +17 -0
  1336. package/locales/made/br.json +17 -0
  1337. package/locales/made/co.json +17 -0
  1338. package/locales/made/cs.json +17 -0
  1339. package/locales/made/da.json +17 -0
  1340. package/locales/made/de.json +17 -0
  1341. package/locales/made/el.json +17 -0
  1342. package/locales/made/en.json +17 -0
  1343. package/locales/made/es.json +17 -0
  1344. package/locales/made/fa.json +17 -0
  1345. package/locales/made/fi.json +17 -0
  1346. package/locales/made/fr-CA.json +17 -0
  1347. package/locales/made/fr.json +17 -0
  1348. package/locales/made/ha.json +17 -0
  1349. package/locales/made/he.json +17 -0
  1350. package/locales/made/hi.json +17 -0
  1351. package/locales/made/hr.json +17 -0
  1352. package/locales/made/hu.json +17 -0
  1353. package/locales/made/id.json +17 -0
  1354. package/locales/made/it.json +17 -0
  1355. package/locales/made/ja.json +17 -0
  1356. package/locales/made/ko.json +17 -0
  1357. package/locales/made/mr.json +17 -0
  1358. package/locales/made/ms.json +17 -0
  1359. package/locales/made/nl.json +17 -0
  1360. package/locales/made/pl.json +17 -0
  1361. package/locales/made/pt.json +17 -0
  1362. package/locales/made/ro.json +17 -0
  1363. package/locales/made/ru.json +17 -0
  1364. package/locales/made/sk.json +17 -0
  1365. package/locales/made/sv.json +17 -0
  1366. package/locales/made/sw.json +17 -0
  1367. package/locales/made/ta.json +17 -0
  1368. package/locales/made/te.json +17 -0
  1369. package/locales/made/th.json +17 -0
  1370. package/locales/made/tl.json +17 -0
  1371. package/locales/made/tr.json +17 -0
  1372. package/locales/made/uk.json +17 -0
  1373. package/locales/made/ur.json +17 -0
  1374. package/locales/made/vi.json +17 -0
  1375. package/locales/made/yo.json +17 -0
  1376. package/locales/made/zh-Hans.json +17 -0
  1377. package/locales/made/zh-Hant.json +17 -0
  1378. package/locales/mr.json +414 -0
  1379. package/locales/ms.json +406 -0
  1380. package/locales/nl.json +414 -0
  1381. package/locales/notifications/am.json +9 -0
  1382. package/locales/notifications/ar.json +9 -0
  1383. package/locales/notifications/bg.json +9 -0
  1384. package/locales/notifications/bn.json +9 -0
  1385. package/locales/notifications/br.json +9 -0
  1386. package/locales/notifications/co.json +9 -0
  1387. package/locales/notifications/cs.json +9 -0
  1388. package/locales/notifications/da.json +9 -0
  1389. package/locales/notifications/de.json +9 -0
  1390. package/locales/notifications/el.json +9 -0
  1391. package/locales/notifications/en.json +9 -0
  1392. package/locales/notifications/es.json +9 -0
  1393. package/locales/notifications/fa.json +9 -0
  1394. package/locales/notifications/fi.json +9 -0
  1395. package/locales/notifications/fr-CA.json +9 -0
  1396. package/locales/notifications/fr.json +9 -0
  1397. package/locales/notifications/ha.json +9 -0
  1398. package/locales/notifications/he.json +9 -0
  1399. package/locales/notifications/hi.json +9 -0
  1400. package/locales/notifications/hr.json +9 -0
  1401. package/locales/notifications/hu.json +9 -0
  1402. package/locales/notifications/id.json +9 -0
  1403. package/locales/notifications/it.json +9 -0
  1404. package/locales/notifications/ja.json +9 -0
  1405. package/locales/notifications/ko.json +9 -0
  1406. package/locales/notifications/mr.json +9 -0
  1407. package/locales/notifications/ms.json +9 -0
  1408. package/locales/notifications/nl.json +9 -0
  1409. package/locales/notifications/pl.json +9 -0
  1410. package/locales/notifications/pt.json +9 -0
  1411. package/locales/notifications/ro.json +9 -0
  1412. package/locales/notifications/ru.json +9 -0
  1413. package/locales/notifications/sk.json +9 -0
  1414. package/locales/notifications/sv.json +9 -0
  1415. package/locales/notifications/sw.json +9 -0
  1416. package/locales/notifications/ta.json +9 -0
  1417. package/locales/notifications/te.json +9 -0
  1418. package/locales/notifications/th.json +9 -0
  1419. package/locales/notifications/tl.json +9 -0
  1420. package/locales/notifications/tr.json +9 -0
  1421. package/locales/notifications/uk.json +9 -0
  1422. package/locales/notifications/ur.json +9 -0
  1423. package/locales/notifications/vi.json +9 -0
  1424. package/locales/notifications/yo.json +9 -0
  1425. package/locales/notifications/zh-Hans.json +9 -0
  1426. package/locales/notifications/zh-Hant.json +9 -0
  1427. package/locales/pictures/am.json +42 -0
  1428. package/locales/pictures/ar.json +42 -0
  1429. package/locales/pictures/bg.json +42 -0
  1430. package/locales/pictures/bn.json +42 -0
  1431. package/locales/pictures/br.json +42 -0
  1432. package/locales/pictures/co.json +42 -0
  1433. package/locales/pictures/cs.json +42 -0
  1434. package/locales/pictures/da.json +42 -0
  1435. package/locales/pictures/de.json +42 -0
  1436. package/locales/pictures/el.json +42 -0
  1437. package/locales/pictures/en.json +42 -0
  1438. package/locales/pictures/es.json +42 -0
  1439. package/locales/pictures/fa.json +42 -0
  1440. package/locales/pictures/fi.json +42 -0
  1441. package/locales/pictures/fr-CA.json +42 -0
  1442. package/locales/pictures/fr.json +42 -0
  1443. package/locales/pictures/ha.json +42 -0
  1444. package/locales/pictures/he.json +42 -0
  1445. package/locales/pictures/hi.json +42 -0
  1446. package/locales/pictures/hr.json +42 -0
  1447. package/locales/pictures/hu.json +42 -0
  1448. package/locales/pictures/id.json +42 -0
  1449. package/locales/pictures/it.json +42 -0
  1450. package/locales/pictures/ja.json +42 -0
  1451. package/locales/pictures/ko.json +42 -0
  1452. package/locales/pictures/mr.json +42 -0
  1453. package/locales/pictures/ms.json +42 -0
  1454. package/locales/pictures/nl.json +42 -0
  1455. package/locales/pictures/pl.json +42 -0
  1456. package/locales/pictures/pt.json +42 -0
  1457. package/locales/pictures/ro.json +42 -0
  1458. package/locales/pictures/ru.json +42 -0
  1459. package/locales/pictures/sk.json +42 -0
  1460. package/locales/pictures/sv.json +42 -0
  1461. package/locales/pictures/sw.json +42 -0
  1462. package/locales/pictures/ta.json +42 -0
  1463. package/locales/pictures/te.json +42 -0
  1464. package/locales/pictures/th.json +42 -0
  1465. package/locales/pictures/tl.json +42 -0
  1466. package/locales/pictures/tr.json +42 -0
  1467. package/locales/pictures/uk.json +42 -0
  1468. package/locales/pictures/ur.json +42 -0
  1469. package/locales/pictures/vi.json +42 -0
  1470. package/locales/pictures/yo.json +42 -0
  1471. package/locales/pictures/zh-Hans.json +42 -0
  1472. package/locales/pictures/zh-Hant.json +42 -0
  1473. package/locales/pl.json +430 -0
  1474. package/locales/plan/am.json +13 -0
  1475. package/locales/plan/ar.json +13 -0
  1476. package/locales/plan/bg.json +13 -0
  1477. package/locales/plan/bn.json +13 -0
  1478. package/locales/plan/br.json +13 -0
  1479. package/locales/plan/co.json +13 -0
  1480. package/locales/plan/cs.json +13 -0
  1481. package/locales/plan/da.json +13 -0
  1482. package/locales/plan/de.json +13 -0
  1483. package/locales/plan/el.json +13 -0
  1484. package/locales/plan/en.json +13 -0
  1485. package/locales/plan/es.json +13 -0
  1486. package/locales/plan/fa.json +13 -0
  1487. package/locales/plan/fi.json +13 -0
  1488. package/locales/plan/fr-CA.json +13 -0
  1489. package/locales/plan/fr.json +13 -0
  1490. package/locales/plan/ha.json +13 -0
  1491. package/locales/plan/he.json +13 -0
  1492. package/locales/plan/hi.json +13 -0
  1493. package/locales/plan/hr.json +13 -0
  1494. package/locales/plan/hu.json +13 -0
  1495. package/locales/plan/id.json +13 -0
  1496. package/locales/plan/it.json +13 -0
  1497. package/locales/plan/ja.json +13 -0
  1498. package/locales/plan/ko.json +13 -0
  1499. package/locales/plan/mr.json +13 -0
  1500. package/locales/plan/ms.json +13 -0
  1501. package/locales/plan/nl.json +13 -0
  1502. package/locales/plan/pl.json +13 -0
  1503. package/locales/plan/pt.json +13 -0
  1504. package/locales/plan/ro.json +13 -0
  1505. package/locales/plan/ru.json +13 -0
  1506. package/locales/plan/sk.json +13 -0
  1507. package/locales/plan/sv.json +13 -0
  1508. package/locales/plan/sw.json +13 -0
  1509. package/locales/plan/ta.json +13 -0
  1510. package/locales/plan/te.json +13 -0
  1511. package/locales/plan/th.json +13 -0
  1512. package/locales/plan/tl.json +13 -0
  1513. package/locales/plan/tr.json +13 -0
  1514. package/locales/plan/uk.json +13 -0
  1515. package/locales/plan/ur.json +13 -0
  1516. package/locales/plan/vi.json +13 -0
  1517. package/locales/plan/yo.json +13 -0
  1518. package/locales/plan/zh-Hans.json +13 -0
  1519. package/locales/plan/zh-Hant.json +13 -0
  1520. package/locales/policy/am.json +40 -0
  1521. package/locales/policy/ar.json +40 -0
  1522. package/locales/policy/bg.json +40 -0
  1523. package/locales/policy/bn.json +40 -0
  1524. package/locales/policy/br.json +40 -0
  1525. package/locales/policy/co.json +40 -0
  1526. package/locales/policy/cs.json +40 -0
  1527. package/locales/policy/da.json +40 -0
  1528. package/locales/policy/de.json +40 -0
  1529. package/locales/policy/el.json +40 -0
  1530. package/locales/policy/en.json +40 -0
  1531. package/locales/policy/es.json +40 -0
  1532. package/locales/policy/fa.json +40 -0
  1533. package/locales/policy/fi.json +40 -0
  1534. package/locales/policy/fr-CA.json +40 -0
  1535. package/locales/policy/fr.json +40 -0
  1536. package/locales/policy/ha.json +40 -0
  1537. package/locales/policy/he.json +40 -0
  1538. package/locales/policy/hi.json +40 -0
  1539. package/locales/policy/hr.json +40 -0
  1540. package/locales/policy/hu.json +40 -0
  1541. package/locales/policy/id.json +40 -0
  1542. package/locales/policy/it.json +40 -0
  1543. package/locales/policy/ja.json +40 -0
  1544. package/locales/policy/ko.json +40 -0
  1545. package/locales/policy/mr.json +40 -0
  1546. package/locales/policy/ms.json +40 -0
  1547. package/locales/policy/nl.json +40 -0
  1548. package/locales/policy/pl.json +40 -0
  1549. package/locales/policy/pt.json +40 -0
  1550. package/locales/policy/ro.json +40 -0
  1551. package/locales/policy/ru.json +40 -0
  1552. package/locales/policy/sk.json +40 -0
  1553. package/locales/policy/sv.json +40 -0
  1554. package/locales/policy/sw.json +40 -0
  1555. package/locales/policy/ta.json +40 -0
  1556. package/locales/policy/te.json +40 -0
  1557. package/locales/policy/th.json +40 -0
  1558. package/locales/policy/tl.json +40 -0
  1559. package/locales/policy/tr.json +40 -0
  1560. package/locales/policy/uk.json +40 -0
  1561. package/locales/policy/ur.json +40 -0
  1562. package/locales/policy/vi.json +40 -0
  1563. package/locales/policy/yo.json +40 -0
  1564. package/locales/policy/zh-Hans.json +40 -0
  1565. package/locales/policy/zh-Hant.json +40 -0
  1566. package/locales/profiles/am.json +85 -0
  1567. package/locales/profiles/ar.json +85 -0
  1568. package/locales/profiles/bg.json +85 -0
  1569. package/locales/profiles/bn.json +85 -0
  1570. package/locales/profiles/br.json +85 -0
  1571. package/locales/profiles/co.json +85 -0
  1572. package/locales/profiles/cs.json +85 -0
  1573. package/locales/profiles/da.json +85 -0
  1574. package/locales/profiles/de.json +85 -0
  1575. package/locales/profiles/el.json +85 -0
  1576. package/locales/profiles/en.json +85 -0
  1577. package/locales/profiles/es.json +85 -0
  1578. package/locales/profiles/fa.json +85 -0
  1579. package/locales/profiles/fi.json +85 -0
  1580. package/locales/profiles/fr-CA.json +85 -0
  1581. package/locales/profiles/fr.json +85 -0
  1582. package/locales/profiles/ha.json +85 -0
  1583. package/locales/profiles/he.json +85 -0
  1584. package/locales/profiles/hi.json +85 -0
  1585. package/locales/profiles/hr.json +85 -0
  1586. package/locales/profiles/hu.json +85 -0
  1587. package/locales/profiles/id.json +85 -0
  1588. package/locales/profiles/it.json +85 -0
  1589. package/locales/profiles/ja.json +85 -0
  1590. package/locales/profiles/ko.json +85 -0
  1591. package/locales/profiles/mr.json +85 -0
  1592. package/locales/profiles/ms.json +85 -0
  1593. package/locales/profiles/nl.json +85 -0
  1594. package/locales/profiles/pl.json +85 -0
  1595. package/locales/profiles/pt.json +85 -0
  1596. package/locales/profiles/ro.json +85 -0
  1597. package/locales/profiles/ru.json +85 -0
  1598. package/locales/profiles/sk.json +85 -0
  1599. package/locales/profiles/sv.json +85 -0
  1600. package/locales/profiles/sw.json +85 -0
  1601. package/locales/profiles/ta.json +85 -0
  1602. package/locales/profiles/te.json +85 -0
  1603. package/locales/profiles/th.json +85 -0
  1604. package/locales/profiles/tl.json +85 -0
  1605. package/locales/profiles/tr.json +85 -0
  1606. package/locales/profiles/uk.json +85 -0
  1607. package/locales/profiles/ur.json +85 -0
  1608. package/locales/profiles/vi.json +85 -0
  1609. package/locales/profiles/yo.json +85 -0
  1610. package/locales/profiles/zh-Hans.json +85 -0
  1611. package/locales/profiles/zh-Hant.json +85 -0
  1612. package/locales/pt.json +422 -0
  1613. package/locales/reader/am.json +9 -0
  1614. package/locales/reader/ar.json +9 -0
  1615. package/locales/reader/bg.json +9 -0
  1616. package/locales/reader/bn.json +9 -0
  1617. package/locales/reader/br.json +9 -0
  1618. package/locales/reader/co.json +9 -0
  1619. package/locales/reader/cs.json +9 -0
  1620. package/locales/reader/da.json +9 -0
  1621. package/locales/reader/de.json +9 -0
  1622. package/locales/reader/el.json +9 -0
  1623. package/locales/reader/en.json +9 -0
  1624. package/locales/reader/es.json +9 -0
  1625. package/locales/reader/fa.json +9 -0
  1626. package/locales/reader/fi.json +9 -0
  1627. package/locales/reader/fr-CA.json +9 -0
  1628. package/locales/reader/fr.json +9 -0
  1629. package/locales/reader/ha.json +9 -0
  1630. package/locales/reader/he.json +9 -0
  1631. package/locales/reader/hi.json +9 -0
  1632. package/locales/reader/hr.json +9 -0
  1633. package/locales/reader/hu.json +9 -0
  1634. package/locales/reader/id.json +9 -0
  1635. package/locales/reader/it.json +9 -0
  1636. package/locales/reader/ja.json +9 -0
  1637. package/locales/reader/ko.json +9 -0
  1638. package/locales/reader/mr.json +9 -0
  1639. package/locales/reader/ms.json +9 -0
  1640. package/locales/reader/nl.json +9 -0
  1641. package/locales/reader/pl.json +9 -0
  1642. package/locales/reader/pt.json +9 -0
  1643. package/locales/reader/ro.json +9 -0
  1644. package/locales/reader/ru.json +9 -0
  1645. package/locales/reader/sk.json +9 -0
  1646. package/locales/reader/sv.json +9 -0
  1647. package/locales/reader/sw.json +9 -0
  1648. package/locales/reader/ta.json +9 -0
  1649. package/locales/reader/te.json +9 -0
  1650. package/locales/reader/th.json +9 -0
  1651. package/locales/reader/tl.json +9 -0
  1652. package/locales/reader/tr.json +9 -0
  1653. package/locales/reader/uk.json +9 -0
  1654. package/locales/reader/ur.json +9 -0
  1655. package/locales/reader/vi.json +9 -0
  1656. package/locales/reader/yo.json +9 -0
  1657. package/locales/reader/zh-Hans.json +9 -0
  1658. package/locales/reader/zh-Hant.json +9 -0
  1659. package/locales/receipt/am.json +39 -0
  1660. package/locales/receipt/ar.json +39 -0
  1661. package/locales/receipt/bg.json +39 -0
  1662. package/locales/receipt/bn.json +39 -0
  1663. package/locales/receipt/br.json +39 -0
  1664. package/locales/receipt/co.json +39 -0
  1665. package/locales/receipt/cs.json +39 -0
  1666. package/locales/receipt/da.json +39 -0
  1667. package/locales/receipt/de.json +39 -0
  1668. package/locales/receipt/el.json +39 -0
  1669. package/locales/receipt/en.json +39 -0
  1670. package/locales/receipt/es.json +39 -0
  1671. package/locales/receipt/fa.json +39 -0
  1672. package/locales/receipt/fi.json +39 -0
  1673. package/locales/receipt/fr-CA.json +39 -0
  1674. package/locales/receipt/fr.json +39 -0
  1675. package/locales/receipt/ha.json +39 -0
  1676. package/locales/receipt/he.json +39 -0
  1677. package/locales/receipt/hi.json +39 -0
  1678. package/locales/receipt/hr.json +39 -0
  1679. package/locales/receipt/hu.json +39 -0
  1680. package/locales/receipt/id.json +39 -0
  1681. package/locales/receipt/it.json +39 -0
  1682. package/locales/receipt/ja.json +39 -0
  1683. package/locales/receipt/ko.json +39 -0
  1684. package/locales/receipt/mr.json +39 -0
  1685. package/locales/receipt/ms.json +39 -0
  1686. package/locales/receipt/nl.json +39 -0
  1687. package/locales/receipt/pl.json +39 -0
  1688. package/locales/receipt/pt.json +39 -0
  1689. package/locales/receipt/ro.json +39 -0
  1690. package/locales/receipt/ru.json +39 -0
  1691. package/locales/receipt/sk.json +39 -0
  1692. package/locales/receipt/sv.json +39 -0
  1693. package/locales/receipt/sw.json +39 -0
  1694. package/locales/receipt/ta.json +39 -0
  1695. package/locales/receipt/te.json +39 -0
  1696. package/locales/receipt/th.json +39 -0
  1697. package/locales/receipt/tl.json +39 -0
  1698. package/locales/receipt/tr.json +39 -0
  1699. package/locales/receipt/uk.json +39 -0
  1700. package/locales/receipt/ur.json +39 -0
  1701. package/locales/receipt/vi.json +39 -0
  1702. package/locales/receipt/yo.json +39 -0
  1703. package/locales/receipt/zh-Hans.json +39 -0
  1704. package/locales/receipt/zh-Hant.json +39 -0
  1705. package/locales/ro.json +422 -0
  1706. package/locales/routines/am.json +57 -0
  1707. package/locales/routines/ar.json +61 -0
  1708. package/locales/routines/bg.json +57 -0
  1709. package/locales/routines/bn.json +57 -0
  1710. package/locales/routines/br.json +60 -0
  1711. package/locales/routines/co.json +58 -0
  1712. package/locales/routines/cs.json +59 -0
  1713. package/locales/routines/da.json +57 -0
  1714. package/locales/routines/de.json +57 -0
  1715. package/locales/routines/el.json +57 -0
  1716. package/locales/routines/en.json +57 -0
  1717. package/locales/routines/es.json +58 -0
  1718. package/locales/routines/fa.json +57 -0
  1719. package/locales/routines/fi.json +57 -0
  1720. package/locales/routines/fr-CA.json +58 -0
  1721. package/locales/routines/fr.json +58 -0
  1722. package/locales/routines/ha.json +57 -0
  1723. package/locales/routines/he.json +59 -0
  1724. package/locales/routines/hi.json +57 -0
  1725. package/locales/routines/hr.json +58 -0
  1726. package/locales/routines/hu.json +57 -0
  1727. package/locales/routines/id.json +56 -0
  1728. package/locales/routines/it.json +58 -0
  1729. package/locales/routines/ja.json +56 -0
  1730. package/locales/routines/ko.json +56 -0
  1731. package/locales/routines/mr.json +57 -0
  1732. package/locales/routines/ms.json +56 -0
  1733. package/locales/routines/nl.json +57 -0
  1734. package/locales/routines/pl.json +59 -0
  1735. package/locales/routines/pt.json +58 -0
  1736. package/locales/routines/ro.json +58 -0
  1737. package/locales/routines/ru.json +59 -0
  1738. package/locales/routines/sk.json +59 -0
  1739. package/locales/routines/sv.json +57 -0
  1740. package/locales/routines/sw.json +57 -0
  1741. package/locales/routines/ta.json +57 -0
  1742. package/locales/routines/te.json +57 -0
  1743. package/locales/routines/th.json +56 -0
  1744. package/locales/routines/tl.json +57 -0
  1745. package/locales/routines/tr.json +57 -0
  1746. package/locales/routines/uk.json +59 -0
  1747. package/locales/routines/ur.json +57 -0
  1748. package/locales/routines/vi.json +56 -0
  1749. package/locales/routines/yo.json +56 -0
  1750. package/locales/routines/zh-Hans.json +56 -0
  1751. package/locales/routines/zh-Hant.json +56 -0
  1752. package/locales/ru.json +430 -0
  1753. package/locales/scores/am.json +18 -0
  1754. package/locales/scores/ar.json +18 -0
  1755. package/locales/scores/bg.json +18 -0
  1756. package/locales/scores/bn.json +18 -0
  1757. package/locales/scores/br.json +18 -0
  1758. package/locales/scores/co.json +18 -0
  1759. package/locales/scores/cs.json +18 -0
  1760. package/locales/scores/da.json +18 -0
  1761. package/locales/scores/de.json +18 -0
  1762. package/locales/scores/el.json +18 -0
  1763. package/locales/scores/en.json +18 -0
  1764. package/locales/scores/es.json +18 -0
  1765. package/locales/scores/fa.json +18 -0
  1766. package/locales/scores/fi.json +18 -0
  1767. package/locales/scores/fr-CA.json +18 -0
  1768. package/locales/scores/fr.json +18 -0
  1769. package/locales/scores/ha.json +18 -0
  1770. package/locales/scores/he.json +18 -0
  1771. package/locales/scores/hi.json +18 -0
  1772. package/locales/scores/hr.json +18 -0
  1773. package/locales/scores/hu.json +18 -0
  1774. package/locales/scores/id.json +18 -0
  1775. package/locales/scores/it.json +18 -0
  1776. package/locales/scores/ja.json +18 -0
  1777. package/locales/scores/ko.json +18 -0
  1778. package/locales/scores/mr.json +18 -0
  1779. package/locales/scores/ms.json +18 -0
  1780. package/locales/scores/nl.json +18 -0
  1781. package/locales/scores/pl.json +18 -0
  1782. package/locales/scores/pt.json +18 -0
  1783. package/locales/scores/ro.json +18 -0
  1784. package/locales/scores/ru.json +18 -0
  1785. package/locales/scores/sk.json +18 -0
  1786. package/locales/scores/sv.json +18 -0
  1787. package/locales/scores/sw.json +18 -0
  1788. package/locales/scores/ta.json +18 -0
  1789. package/locales/scores/te.json +18 -0
  1790. package/locales/scores/th.json +18 -0
  1791. package/locales/scores/tl.json +18 -0
  1792. package/locales/scores/tr.json +18 -0
  1793. package/locales/scores/uk.json +18 -0
  1794. package/locales/scores/ur.json +18 -0
  1795. package/locales/scores/vi.json +18 -0
  1796. package/locales/scores/yo.json +18 -0
  1797. package/locales/scores/zh-Hans.json +18 -0
  1798. package/locales/scores/zh-Hant.json +18 -0
  1799. package/locales/search/am.json +50 -0
  1800. package/locales/search/ar.json +66 -0
  1801. package/locales/search/bg.json +50 -0
  1802. package/locales/search/bn.json +50 -0
  1803. package/locales/search/br.json +62 -0
  1804. package/locales/search/co.json +54 -0
  1805. package/locales/search/cs.json +58 -0
  1806. package/locales/search/da.json +50 -0
  1807. package/locales/search/de.json +50 -0
  1808. package/locales/search/el.json +50 -0
  1809. package/locales/search/en.json +50 -0
  1810. package/locales/search/es.json +54 -0
  1811. package/locales/search/fa.json +50 -0
  1812. package/locales/search/fi.json +50 -0
  1813. package/locales/search/fr-CA.json +54 -0
  1814. package/locales/search/fr.json +54 -0
  1815. package/locales/search/ha.json +50 -0
  1816. package/locales/search/he.json +56 -0
  1817. package/locales/search/hi.json +50 -0
  1818. package/locales/search/hr.json +54 -0
  1819. package/locales/search/hu.json +50 -0
  1820. package/locales/search/id.json +46 -0
  1821. package/locales/search/it.json +54 -0
  1822. package/locales/search/ja.json +46 -0
  1823. package/locales/search/ko.json +46 -0
  1824. package/locales/search/mr.json +50 -0
  1825. package/locales/search/ms.json +46 -0
  1826. package/locales/search/nl.json +50 -0
  1827. package/locales/search/pl.json +58 -0
  1828. package/locales/search/pt.json +54 -0
  1829. package/locales/search/ro.json +54 -0
  1830. package/locales/search/ru.json +58 -0
  1831. package/locales/search/sk.json +58 -0
  1832. package/locales/search/sv.json +50 -0
  1833. package/locales/search/sw.json +50 -0
  1834. package/locales/search/ta.json +50 -0
  1835. package/locales/search/te.json +50 -0
  1836. package/locales/search/th.json +46 -0
  1837. package/locales/search/tl.json +50 -0
  1838. package/locales/search/tr.json +50 -0
  1839. package/locales/search/uk.json +58 -0
  1840. package/locales/search/ur.json +50 -0
  1841. package/locales/search/vi.json +46 -0
  1842. package/locales/search/yo.json +46 -0
  1843. package/locales/search/zh-Hans.json +46 -0
  1844. package/locales/search/zh-Hant.json +46 -0
  1845. package/locales/share/am.json +76 -0
  1846. package/locales/share/ar.json +84 -0
  1847. package/locales/share/bg.json +76 -0
  1848. package/locales/share/bn.json +76 -0
  1849. package/locales/share/br.json +82 -0
  1850. package/locales/share/co.json +78 -0
  1851. package/locales/share/cs.json +80 -0
  1852. package/locales/share/da.json +76 -0
  1853. package/locales/share/de.json +76 -0
  1854. package/locales/share/el.json +76 -0
  1855. package/locales/share/en.json +76 -0
  1856. package/locales/share/es.json +78 -0
  1857. package/locales/share/fa.json +76 -0
  1858. package/locales/share/fi.json +76 -0
  1859. package/locales/share/fr-CA.json +78 -0
  1860. package/locales/share/fr.json +78 -0
  1861. package/locales/share/ha.json +76 -0
  1862. package/locales/share/he.json +79 -0
  1863. package/locales/share/hi.json +76 -0
  1864. package/locales/share/hr.json +78 -0
  1865. package/locales/share/hu.json +76 -0
  1866. package/locales/share/id.json +74 -0
  1867. package/locales/share/it.json +78 -0
  1868. package/locales/share/ja.json +74 -0
  1869. package/locales/share/ko.json +74 -0
  1870. package/locales/share/mr.json +76 -0
  1871. package/locales/share/ms.json +74 -0
  1872. package/locales/share/nl.json +76 -0
  1873. package/locales/share/pl.json +80 -0
  1874. package/locales/share/pt.json +78 -0
  1875. package/locales/share/ro.json +78 -0
  1876. package/locales/share/ru.json +80 -0
  1877. package/locales/share/sk.json +80 -0
  1878. package/locales/share/sv.json +76 -0
  1879. package/locales/share/sw.json +76 -0
  1880. package/locales/share/ta.json +76 -0
  1881. package/locales/share/te.json +76 -0
  1882. package/locales/share/th.json +74 -0
  1883. package/locales/share/tl.json +76 -0
  1884. package/locales/share/tr.json +76 -0
  1885. package/locales/share/uk.json +80 -0
  1886. package/locales/share/ur.json +76 -0
  1887. package/locales/share/vi.json +74 -0
  1888. package/locales/share/yo.json +74 -0
  1889. package/locales/share/zh-Hans.json +74 -0
  1890. package/locales/share/zh-Hant.json +74 -0
  1891. package/locales/signin/am.json +6 -0
  1892. package/locales/signin/ar.json +6 -0
  1893. package/locales/signin/bg.json +6 -0
  1894. package/locales/signin/bn.json +6 -0
  1895. package/locales/signin/br.json +6 -0
  1896. package/locales/signin/co.json +6 -0
  1897. package/locales/signin/cs.json +6 -0
  1898. package/locales/signin/da.json +6 -0
  1899. package/locales/signin/de.json +6 -0
  1900. package/locales/signin/el.json +6 -0
  1901. package/locales/signin/en.json +6 -0
  1902. package/locales/signin/es.json +6 -0
  1903. package/locales/signin/fa.json +6 -0
  1904. package/locales/signin/fi.json +6 -0
  1905. package/locales/signin/fr-CA.json +6 -0
  1906. package/locales/signin/fr.json +6 -0
  1907. package/locales/signin/ha.json +6 -0
  1908. package/locales/signin/he.json +6 -0
  1909. package/locales/signin/hi.json +6 -0
  1910. package/locales/signin/hr.json +6 -0
  1911. package/locales/signin/hu.json +6 -0
  1912. package/locales/signin/id.json +6 -0
  1913. package/locales/signin/it.json +6 -0
  1914. package/locales/signin/ja.json +6 -0
  1915. package/locales/signin/ko.json +6 -0
  1916. package/locales/signin/mr.json +6 -0
  1917. package/locales/signin/ms.json +6 -0
  1918. package/locales/signin/nl.json +6 -0
  1919. package/locales/signin/pl.json +6 -0
  1920. package/locales/signin/pt.json +6 -0
  1921. package/locales/signin/ro.json +6 -0
  1922. package/locales/signin/ru.json +6 -0
  1923. package/locales/signin/sk.json +6 -0
  1924. package/locales/signin/sv.json +6 -0
  1925. package/locales/signin/sw.json +6 -0
  1926. package/locales/signin/ta.json +6 -0
  1927. package/locales/signin/te.json +6 -0
  1928. package/locales/signin/th.json +6 -0
  1929. package/locales/signin/tl.json +6 -0
  1930. package/locales/signin/tr.json +6 -0
  1931. package/locales/signin/uk.json +6 -0
  1932. package/locales/signin/ur.json +6 -0
  1933. package/locales/signin/vi.json +6 -0
  1934. package/locales/signin/yo.json +6 -0
  1935. package/locales/signin/zh-Hans.json +6 -0
  1936. package/locales/signin/zh-Hant.json +6 -0
  1937. package/locales/sk.json +430 -0
  1938. package/locales/skills/am.json +73 -0
  1939. package/locales/skills/ar.json +81 -0
  1940. package/locales/skills/bg.json +73 -0
  1941. package/locales/skills/bn.json +73 -0
  1942. package/locales/skills/br.json +79 -0
  1943. package/locales/skills/co.json +75 -0
  1944. package/locales/skills/cs.json +77 -0
  1945. package/locales/skills/da.json +73 -0
  1946. package/locales/skills/de.json +73 -0
  1947. package/locales/skills/el.json +73 -0
  1948. package/locales/skills/en.json +73 -0
  1949. package/locales/skills/es.json +75 -0
  1950. package/locales/skills/fa.json +73 -0
  1951. package/locales/skills/fi.json +73 -0
  1952. package/locales/skills/fr-CA.json +75 -0
  1953. package/locales/skills/fr.json +75 -0
  1954. package/locales/skills/ha.json +73 -0
  1955. package/locales/skills/he.json +77 -0
  1956. package/locales/skills/hi.json +73 -0
  1957. package/locales/skills/hr.json +75 -0
  1958. package/locales/skills/hu.json +73 -0
  1959. package/locales/skills/id.json +71 -0
  1960. package/locales/skills/it.json +75 -0
  1961. package/locales/skills/ja.json +71 -0
  1962. package/locales/skills/ko.json +71 -0
  1963. package/locales/skills/mr.json +73 -0
  1964. package/locales/skills/ms.json +71 -0
  1965. package/locales/skills/nl.json +73 -0
  1966. package/locales/skills/pl.json +77 -0
  1967. package/locales/skills/pt.json +75 -0
  1968. package/locales/skills/ro.json +75 -0
  1969. package/locales/skills/ru.json +77 -0
  1970. package/locales/skills/sk.json +77 -0
  1971. package/locales/skills/sv.json +73 -0
  1972. package/locales/skills/sw.json +73 -0
  1973. package/locales/skills/ta.json +73 -0
  1974. package/locales/skills/te.json +73 -0
  1975. package/locales/skills/th.json +71 -0
  1976. package/locales/skills/tl.json +73 -0
  1977. package/locales/skills/tr.json +73 -0
  1978. package/locales/skills/uk.json +77 -0
  1979. package/locales/skills/ur.json +73 -0
  1980. package/locales/skills/vi.json +71 -0
  1981. package/locales/skills/yo.json +71 -0
  1982. package/locales/skills/zh-Hans.json +71 -0
  1983. package/locales/skills/zh-Hant.json +71 -0
  1984. package/locales/slides/am.json +140 -0
  1985. package/locales/slides/ar.json +144 -0
  1986. package/locales/slides/bg.json +140 -0
  1987. package/locales/slides/bn.json +140 -0
  1988. package/locales/slides/br.json +143 -0
  1989. package/locales/slides/co.json +141 -0
  1990. package/locales/slides/cs.json +142 -0
  1991. package/locales/slides/da.json +140 -0
  1992. package/locales/slides/de.json +140 -0
  1993. package/locales/slides/el.json +140 -0
  1994. package/locales/slides/en.json +140 -0
  1995. package/locales/slides/es.json +141 -0
  1996. package/locales/slides/fa.json +140 -0
  1997. package/locales/slides/fi.json +140 -0
  1998. package/locales/slides/fr-CA.json +141 -0
  1999. package/locales/slides/fr.json +141 -0
  2000. package/locales/slides/ha.json +140 -0
  2001. package/locales/slides/he.json +141 -0
  2002. package/locales/slides/hi.json +140 -0
  2003. package/locales/slides/hr.json +141 -0
  2004. package/locales/slides/hu.json +140 -0
  2005. package/locales/slides/id.json +139 -0
  2006. package/locales/slides/it.json +141 -0
  2007. package/locales/slides/ja.json +139 -0
  2008. package/locales/slides/ko.json +139 -0
  2009. package/locales/slides/mr.json +140 -0
  2010. package/locales/slides/ms.json +139 -0
  2011. package/locales/slides/nl.json +140 -0
  2012. package/locales/slides/pl.json +142 -0
  2013. package/locales/slides/pt.json +141 -0
  2014. package/locales/slides/ro.json +141 -0
  2015. package/locales/slides/ru.json +142 -0
  2016. package/locales/slides/sk.json +142 -0
  2017. package/locales/slides/sv.json +140 -0
  2018. package/locales/slides/sw.json +140 -0
  2019. package/locales/slides/ta.json +140 -0
  2020. package/locales/slides/te.json +140 -0
  2021. package/locales/slides/th.json +139 -0
  2022. package/locales/slides/tl.json +140 -0
  2023. package/locales/slides/tr.json +140 -0
  2024. package/locales/slides/uk.json +142 -0
  2025. package/locales/slides/ur.json +140 -0
  2026. package/locales/slides/vi.json +139 -0
  2027. package/locales/slides/yo.json +139 -0
  2028. package/locales/slides/zh-Hans.json +139 -0
  2029. package/locales/slides/zh-Hant.json +139 -0
  2030. package/locales/sv.json +414 -0
  2031. package/locales/sw.json +414 -0
  2032. package/locales/sync/am.json +14 -0
  2033. package/locales/sync/ar.json +14 -0
  2034. package/locales/sync/bg.json +14 -0
  2035. package/locales/sync/bn.json +14 -0
  2036. package/locales/sync/br.json +14 -0
  2037. package/locales/sync/co.json +14 -0
  2038. package/locales/sync/cs.json +14 -0
  2039. package/locales/sync/da.json +14 -0
  2040. package/locales/sync/de.json +14 -0
  2041. package/locales/sync/el.json +14 -0
  2042. package/locales/sync/en.json +14 -0
  2043. package/locales/sync/es.json +14 -0
  2044. package/locales/sync/fa.json +14 -0
  2045. package/locales/sync/fi.json +14 -0
  2046. package/locales/sync/fr-CA.json +14 -0
  2047. package/locales/sync/fr.json +14 -0
  2048. package/locales/sync/ha.json +14 -0
  2049. package/locales/sync/he.json +14 -0
  2050. package/locales/sync/hi.json +14 -0
  2051. package/locales/sync/hr.json +14 -0
  2052. package/locales/sync/hu.json +14 -0
  2053. package/locales/sync/id.json +14 -0
  2054. package/locales/sync/it.json +14 -0
  2055. package/locales/sync/ja.json +14 -0
  2056. package/locales/sync/ko.json +14 -0
  2057. package/locales/sync/mr.json +14 -0
  2058. package/locales/sync/ms.json +14 -0
  2059. package/locales/sync/nl.json +14 -0
  2060. package/locales/sync/pl.json +14 -0
  2061. package/locales/sync/pt.json +14 -0
  2062. package/locales/sync/ro.json +14 -0
  2063. package/locales/sync/ru.json +14 -0
  2064. package/locales/sync/sk.json +14 -0
  2065. package/locales/sync/sv.json +14 -0
  2066. package/locales/sync/sw.json +14 -0
  2067. package/locales/sync/ta.json +14 -0
  2068. package/locales/sync/te.json +14 -0
  2069. package/locales/sync/th.json +14 -0
  2070. package/locales/sync/tl.json +14 -0
  2071. package/locales/sync/tr.json +14 -0
  2072. package/locales/sync/uk.json +14 -0
  2073. package/locales/sync/ur.json +14 -0
  2074. package/locales/sync/vi.json +14 -0
  2075. package/locales/sync/yo.json +14 -0
  2076. package/locales/sync/zh-Hans.json +14 -0
  2077. package/locales/sync/zh-Hant.json +14 -0
  2078. package/locales/ta.json +414 -0
  2079. package/locales/tables/am.json +84 -0
  2080. package/locales/tables/ar.json +88 -0
  2081. package/locales/tables/bg.json +84 -0
  2082. package/locales/tables/bn.json +84 -0
  2083. package/locales/tables/br.json +87 -0
  2084. package/locales/tables/co.json +85 -0
  2085. package/locales/tables/cs.json +86 -0
  2086. package/locales/tables/da.json +84 -0
  2087. package/locales/tables/de.json +84 -0
  2088. package/locales/tables/el.json +84 -0
  2089. package/locales/tables/en.json +84 -0
  2090. package/locales/tables/es.json +85 -0
  2091. package/locales/tables/fa.json +84 -0
  2092. package/locales/tables/fi.json +84 -0
  2093. package/locales/tables/fr-CA.json +85 -0
  2094. package/locales/tables/fr.json +85 -0
  2095. package/locales/tables/ha.json +84 -0
  2096. package/locales/tables/he.json +85 -0
  2097. package/locales/tables/hi.json +84 -0
  2098. package/locales/tables/hr.json +85 -0
  2099. package/locales/tables/hu.json +84 -0
  2100. package/locales/tables/id.json +83 -0
  2101. package/locales/tables/it.json +85 -0
  2102. package/locales/tables/ja.json +83 -0
  2103. package/locales/tables/ko.json +83 -0
  2104. package/locales/tables/mr.json +84 -0
  2105. package/locales/tables/ms.json +83 -0
  2106. package/locales/tables/nl.json +84 -0
  2107. package/locales/tables/pl.json +86 -0
  2108. package/locales/tables/pt.json +85 -0
  2109. package/locales/tables/ro.json +85 -0
  2110. package/locales/tables/ru.json +86 -0
  2111. package/locales/tables/sk.json +86 -0
  2112. package/locales/tables/sv.json +84 -0
  2113. package/locales/tables/sw.json +84 -0
  2114. package/locales/tables/ta.json +84 -0
  2115. package/locales/tables/te.json +84 -0
  2116. package/locales/tables/th.json +83 -0
  2117. package/locales/tables/tl.json +84 -0
  2118. package/locales/tables/tr.json +84 -0
  2119. package/locales/tables/uk.json +86 -0
  2120. package/locales/tables/ur.json +84 -0
  2121. package/locales/tables/vi.json +83 -0
  2122. package/locales/tables/yo.json +83 -0
  2123. package/locales/tables/zh-Hans.json +83 -0
  2124. package/locales/tables/zh-Hant.json +83 -0
  2125. package/locales/te.json +414 -0
  2126. package/locales/th.json +406 -0
  2127. package/locales/tl.json +414 -0
  2128. package/locales/tour/am.json +3 -0
  2129. package/locales/tour/ar.json +3 -0
  2130. package/locales/tour/bg.json +3 -0
  2131. package/locales/tour/bn.json +3 -0
  2132. package/locales/tour/br.json +3 -0
  2133. package/locales/tour/co.json +3 -0
  2134. package/locales/tour/cs.json +3 -0
  2135. package/locales/tour/da.json +3 -0
  2136. package/locales/tour/de.json +3 -0
  2137. package/locales/tour/el.json +3 -0
  2138. package/locales/tour/en.json +3 -0
  2139. package/locales/tour/es.json +3 -0
  2140. package/locales/tour/fa.json +3 -0
  2141. package/locales/tour/fi.json +3 -0
  2142. package/locales/tour/fr-CA.json +3 -0
  2143. package/locales/tour/fr.json +3 -0
  2144. package/locales/tour/ha.json +3 -0
  2145. package/locales/tour/he.json +3 -0
  2146. package/locales/tour/hi.json +3 -0
  2147. package/locales/tour/hr.json +3 -0
  2148. package/locales/tour/hu.json +3 -0
  2149. package/locales/tour/id.json +3 -0
  2150. package/locales/tour/it.json +3 -0
  2151. package/locales/tour/ja.json +3 -0
  2152. package/locales/tour/ko.json +3 -0
  2153. package/locales/tour/mr.json +3 -0
  2154. package/locales/tour/ms.json +3 -0
  2155. package/locales/tour/nl.json +3 -0
  2156. package/locales/tour/pl.json +3 -0
  2157. package/locales/tour/pt.json +3 -0
  2158. package/locales/tour/ro.json +3 -0
  2159. package/locales/tour/ru.json +3 -0
  2160. package/locales/tour/sk.json +3 -0
  2161. package/locales/tour/sv.json +3 -0
  2162. package/locales/tour/sw.json +3 -0
  2163. package/locales/tour/ta.json +3 -0
  2164. package/locales/tour/te.json +3 -0
  2165. package/locales/tour/th.json +3 -0
  2166. package/locales/tour/tl.json +3 -0
  2167. package/locales/tour/tr.json +3 -0
  2168. package/locales/tour/uk.json +3 -0
  2169. package/locales/tour/ur.json +3 -0
  2170. package/locales/tour/vi.json +3 -0
  2171. package/locales/tour/yo.json +3 -0
  2172. package/locales/tour/zh-Hans.json +3 -0
  2173. package/locales/tour/zh-Hant.json +3 -0
  2174. package/locales/tr.json +414 -0
  2175. package/locales/uk.json +430 -0
  2176. package/locales/ur.json +414 -0
  2177. package/locales/vi.json +406 -0
  2178. package/locales/yo.json +406 -0
  2179. package/locales/you/am.json +42 -0
  2180. package/locales/you/ar.json +54 -0
  2181. package/locales/you/bg.json +42 -0
  2182. package/locales/you/bn.json +42 -0
  2183. package/locales/you/br.json +51 -0
  2184. package/locales/you/co.json +45 -0
  2185. package/locales/you/cs.json +48 -0
  2186. package/locales/you/da.json +42 -0
  2187. package/locales/you/de.json +42 -0
  2188. package/locales/you/el.json +42 -0
  2189. package/locales/you/en.json +42 -0
  2190. package/locales/you/es.json +45 -0
  2191. package/locales/you/fa.json +42 -0
  2192. package/locales/you/fi.json +42 -0
  2193. package/locales/you/fr-CA.json +45 -0
  2194. package/locales/you/fr.json +45 -0
  2195. package/locales/you/ha.json +42 -0
  2196. package/locales/you/he.json +48 -0
  2197. package/locales/you/hi.json +42 -0
  2198. package/locales/you/hr.json +45 -0
  2199. package/locales/you/hu.json +42 -0
  2200. package/locales/you/id.json +39 -0
  2201. package/locales/you/it.json +45 -0
  2202. package/locales/you/ja.json +39 -0
  2203. package/locales/you/ko.json +39 -0
  2204. package/locales/you/mr.json +42 -0
  2205. package/locales/you/ms.json +39 -0
  2206. package/locales/you/nl.json +42 -0
  2207. package/locales/you/pl.json +48 -0
  2208. package/locales/you/pt.json +45 -0
  2209. package/locales/you/ro.json +45 -0
  2210. package/locales/you/ru.json +48 -0
  2211. package/locales/you/sk.json +48 -0
  2212. package/locales/you/sv.json +42 -0
  2213. package/locales/you/sw.json +42 -0
  2214. package/locales/you/ta.json +42 -0
  2215. package/locales/you/te.json +42 -0
  2216. package/locales/you/th.json +39 -0
  2217. package/locales/you/tl.json +42 -0
  2218. package/locales/you/tr.json +42 -0
  2219. package/locales/you/uk.json +48 -0
  2220. package/locales/you/ur.json +42 -0
  2221. package/locales/you/vi.json +39 -0
  2222. package/locales/you/yo.json +39 -0
  2223. package/locales/you/zh-Hans.json +39 -0
  2224. package/locales/you/zh-Hant.json +39 -0
  2225. package/locales/zh-Hans.json +406 -0
  2226. package/locales/zh-Hant.json +406 -0
  2227. package/package.json +9 -4
  2228. package/preview.html +75 -0
  2229. package/ui/acts.js +12 -0
  2230. package/ui/caps.js +153 -0
  2231. package/ui/colour.js +26 -0
  2232. package/ui/csp.js +82 -0
  2233. package/ui/export.js +221 -0
  2234. package/ui/icons.js +32 -0
  2235. package/ui/kit.js +54 -0
  2236. package/ui/looks/blueprint.css +73 -0
  2237. package/ui/looks/classic.css +105 -0
  2238. package/ui/looks/fjord.css +56 -0
  2239. package/ui/looks/human.css +232 -0
  2240. package/ui/looks/mail.css +61 -0
  2241. package/ui/looks/minimal.css +63 -0
  2242. package/ui/looks/mondrian.css +90 -0
  2243. package/ui/looks/neon.css +100 -0
  2244. package/ui/looks/notebook.css +82 -0
  2245. package/ui/looks/paper.css +51 -0
  2246. package/ui/looks/swiss.css +64 -0
  2247. package/ui/looks/terminal.css +84 -0
  2248. package/ui/looks/tilde.css +61 -0
  2249. package/ui/looks/velvet.css +61 -0
  2250. package/ui/looks.js +52 -0
  2251. package/ui/markdown.js +189 -0
  2252. package/ui/menu-icons.js +67 -0
  2253. package/ui/model.js +74 -0
  2254. package/ui/reader-state.js +57 -0
  2255. package/ui/reader.js +81 -0
  2256. package/ui/review.js +20 -0
  2257. package/ui/save.js +53 -0
  2258. package/ui/seal.js +159 -0
  2259. package/ui/sheet.js +16 -0
  2260. package/ui/style.css +818 -0
  2261. package/ui/touches.js +51 -0
  2262. package/ui/trusted.js +13 -0
  2263. package/ui/view.css +34 -0
  2264. package/ui/view.js +245 -0
  2265. package/ui/weights.js +47 -0
  2266. package/vendor/LICENSES/abcjs.txt +21 -0
  2267. package/vendor/LICENSES/base64-js.txt +21 -0
  2268. package/vendor/LICENSES/buffer.txt +21 -0
  2269. package/vendor/LICENSES/codename-deck.txt +21 -0
  2270. package/vendor/LICENSES/diff.txt +29 -0
  2271. package/vendor/LICENSES/echarts.txt +229 -0
  2272. package/vendor/LICENSES/fflate.txt +21 -0
  2273. package/vendor/LICENSES/huggingface-transformers.txt +202 -0
  2274. package/vendor/LICENSES/ieee754.txt +11 -0
  2275. package/vendor/LICENSES/jean-is-sounds.txt +92 -0
  2276. package/vendor/LICENSES/jitl-quickjs-ffi-types.txt +21 -0
  2277. package/vendor/LICENSES/jitl-quickjs-wasmfile-release-sync.txt +47 -0
  2278. package/vendor/LICENSES/jszip.txt +2 -0
  2279. package/vendor/LICENSES/just-bash.txt +201 -0
  2280. package/vendor/LICENSES/lean-qr.txt +21 -0
  2281. package/vendor/LICENSES/lit-html.txt +28 -0
  2282. package/vendor/LICENSES/maplibre-gl.txt +2 -0
  2283. package/vendor/LICENSES/marked.txt +44 -0
  2284. package/vendor/LICENSES/mediabunny.txt +373 -0
  2285. package/vendor/LICENSES/onnxruntime-web.txt +2 -0
  2286. package/vendor/LICENSES/orderedmap.txt +19 -0
  2287. package/vendor/LICENSES/pdfjs-dist.txt +455 -0
  2288. package/vendor/LICENSES/pele.txt +40 -0
  2289. package/vendor/LICENSES/pptxgenjs.txt +21 -0
  2290. package/vendor/LICENSES/preact-signals-core.txt +21 -0
  2291. package/vendor/LICENSES/prosemirror-commands.txt +19 -0
  2292. package/vendor/LICENSES/prosemirror-dropcursor.txt +19 -0
  2293. package/vendor/LICENSES/prosemirror-gapcursor.txt +19 -0
  2294. package/vendor/LICENSES/prosemirror-history.txt +19 -0
  2295. package/vendor/LICENSES/prosemirror-inputrules.txt +19 -0
  2296. package/vendor/LICENSES/prosemirror-keymap.txt +19 -0
  2297. package/vendor/LICENSES/prosemirror-markdown.txt +19 -0
  2298. package/vendor/LICENSES/prosemirror-model.txt +19 -0
  2299. package/vendor/LICENSES/prosemirror-schema-list.txt +19 -0
  2300. package/vendor/LICENSES/prosemirror-state.txt +19 -0
  2301. package/vendor/LICENSES/prosemirror-tables.txt +19 -0
  2302. package/vendor/LICENSES/prosemirror-transform.txt +19 -0
  2303. package/vendor/LICENSES/prosemirror-view.txt +19 -0
  2304. package/vendor/LICENSES/pyodide.txt +2 -0
  2305. package/vendor/LICENSES/quickjs-emscripten-core.txt +21 -0
  2306. package/vendor/LICENSES/rope-sequence.txt +19 -0
  2307. package/vendor/LICENSES/silurus-ooxml.txt +21 -0
  2308. package/vendor/LICENSES/spessasynth_core.txt +202 -0
  2309. package/vendor/LICENSES/sprintf-js.txt +24 -0
  2310. package/vendor/LICENSES/stb-vorbis.txt +202 -0
  2311. package/vendor/LICENSES/temml.txt +21 -0
  2312. package/vendor/LICENSES/turndown.txt +21 -0
  2313. package/vendor/LICENSES/w3c-keyname.txt +19 -0
  2314. package/vendor/LICENSES/zrender.txt +29 -0
  2315. package/vendor/abcjs/abcjs.mjs +6 -0
  2316. package/vendor/deck/deck.css +292 -0
  2317. package/vendor/deck/deck.mjs +55 -0
  2318. package/vendor/deck/pptx.mjs +1 -0
  2319. package/vendor/deck/template.mjs +3 -0
  2320. package/vendor/echarts/echarts.mjs +45 -0
  2321. package/vendor/lit-html/async-directive.js +6 -0
  2322. package/vendor/lit-html/directive-helpers.js +6 -0
  2323. package/vendor/lit-html/directive.js +6 -0
  2324. package/vendor/lit-html/directives/live.js +6 -0
  2325. package/vendor/lit-html/directives/ref.js +6 -0
  2326. package/vendor/lit-html/lit-html.js +6 -0
  2327. package/vendor/maplibre/maplibre-gl-worker.js +9 -0
  2328. package/vendor/maplibre/maplibre-gl.css +1 -0
  2329. package/vendor/maplibre/maplibre-gl.mjs +818 -0
  2330. package/vendor/marked.esm.js +79 -0
  2331. package/vendor/ooxml/bounded-raw-part-cache-Cg1BsSZQ.js +119 -0
  2332. package/vendor/ooxml/canvas-viewer-mechanics-DbLz0rYW.js +1384 -0
  2333. package/vendor/ooxml/chunk-DmhlhrBa.js +11 -0
  2334. package/vendor/ooxml/cjk-fallback-bLI3z70h.js +46 -0
  2335. package/vendor/ooxml/comment-occurrence-C8Y2uoVr.js +6 -0
  2336. package/vendor/ooxml/comment-ui-runtime-BsK8pmUT.js +2 -0
  2337. package/vendor/ooxml/comment-ui-runtime-CWGqn5Vr.js +112 -0
  2338. package/vendor/ooxml/comment-ui-runtime-DcJOYlw-.js +171 -0
  2339. package/vendor/ooxml/comments-Diid5ujN.js +246 -0
  2340. package/vendor/ooxml/delimited-text-worker-host-BVY-Ecni.js +25 -0
  2341. package/vendor/ooxml/document-pull-client-B9PTM-pL.js +27280 -0
  2342. package/vendor/ooxml/docx-BF9WXrYH.js +3101 -0
  2343. package/vendor/ooxml/docx.mjs +7 -0
  2344. package/vendor/ooxml/docx_parser_bg.wasm +0 -0
  2345. package/vendor/ooxml/dom-interaction-boundary-Cnm8DSBN.js +223 -0
  2346. package/vendor/ooxml/graph.json +1 -0
  2347. package/vendor/ooxml/highlight-rect-C5hkRqUr.js +13 -0
  2348. package/vendor/ooxml/hyperlink-Cxzhet30.js +36446 -0
  2349. package/vendor/ooxml/line-distribute-D1WNHKz_.js +1023 -0
  2350. package/vendor/ooxml/line-metrics-B60C86uh.js +60 -0
  2351. package/vendor/ooxml/mathjax-DoyWZbSp.js +21 -0
  2352. package/vendor/ooxml/pixel-budget-9P63Bsk5.js +37 -0
  2353. package/vendor/ooxml/plot-area-frame-DLTYKHNP.js +4354 -0
  2354. package/vendor/ooxml/pptx-DkyYBYoL.js +3063 -0
  2355. package/vendor/ooxml/pptx.mjs +7 -0
  2356. package/vendor/ooxml/pptx_parser_bg.wasm +0 -0
  2357. package/vendor/ooxml/raster-target-ojDdQizC.js +91 -0
  2358. package/vendor/ooxml/read-only-comment-decoration-Dz7eTQ4d.js +96 -0
  2359. package/vendor/ooxml/read-only-comment-margin-DkgzASAl.js +189 -0
  2360. package/vendor/ooxml/renderer-B4GZb5We.js +6492 -0
  2361. package/vendor/ooxml/renderer-module-contract-D91rkYHH.js +32 -0
  2362. package/vendor/ooxml/resource-measurement-SHQCbkh2.js +150 -0
  2363. package/vendor/ooxml/slide-pull-client-DiPnm240.js +6253 -0
  2364. package/vendor/ooxml/source-key-DIJG8BA0.js +42 -0
  2365. package/vendor/ooxml/three-d-DJBl8g8M.js +1162 -0
  2366. package/vendor/ooxml/transfer-p6iCC2R7.js +6 -0
  2367. package/vendor/ooxml/units-BzZ0gAxs.js +4 -0
  2368. package/vendor/ooxml/visible-index-BgiHEc1z.js +17 -0
  2369. package/vendor/ooxml/worksheet-pull-client-BM8ywvbu.js +458 -0
  2370. package/vendor/ooxml/xlsx-C9NVjgaV.js +8482 -0
  2371. package/vendor/ooxml/xlsx.mjs +7 -0
  2372. package/vendor/ooxml/xlsx_parser_bg.wasm +0 -0
  2373. package/vendor/pdfjs/cmaps/78-EUC-H.bcmap +0 -0
  2374. package/vendor/pdfjs/cmaps/78-EUC-V.bcmap +0 -0
  2375. package/vendor/pdfjs/cmaps/78-H.bcmap +0 -0
  2376. package/vendor/pdfjs/cmaps/78-RKSJ-H.bcmap +0 -0
  2377. package/vendor/pdfjs/cmaps/78-RKSJ-V.bcmap +0 -0
  2378. package/vendor/pdfjs/cmaps/78-V.bcmap +0 -0
  2379. package/vendor/pdfjs/cmaps/78ms-RKSJ-H.bcmap +0 -0
  2380. package/vendor/pdfjs/cmaps/78ms-RKSJ-V.bcmap +0 -0
  2381. package/vendor/pdfjs/cmaps/83pv-RKSJ-H.bcmap +0 -0
  2382. package/vendor/pdfjs/cmaps/90ms-RKSJ-H.bcmap +0 -0
  2383. package/vendor/pdfjs/cmaps/90ms-RKSJ-V.bcmap +0 -0
  2384. package/vendor/pdfjs/cmaps/90msp-RKSJ-H.bcmap +0 -0
  2385. package/vendor/pdfjs/cmaps/90msp-RKSJ-V.bcmap +0 -0
  2386. package/vendor/pdfjs/cmaps/90pv-RKSJ-H.bcmap +0 -0
  2387. package/vendor/pdfjs/cmaps/90pv-RKSJ-V.bcmap +0 -0
  2388. package/vendor/pdfjs/cmaps/Add-H.bcmap +0 -0
  2389. package/vendor/pdfjs/cmaps/Add-RKSJ-H.bcmap +0 -0
  2390. package/vendor/pdfjs/cmaps/Add-RKSJ-V.bcmap +0 -0
  2391. package/vendor/pdfjs/cmaps/Add-V.bcmap +0 -0
  2392. package/vendor/pdfjs/cmaps/Adobe-CNS1-0.bcmap +0 -0
  2393. package/vendor/pdfjs/cmaps/Adobe-CNS1-1.bcmap +0 -0
  2394. package/vendor/pdfjs/cmaps/Adobe-CNS1-2.bcmap +0 -0
  2395. package/vendor/pdfjs/cmaps/Adobe-CNS1-3.bcmap +0 -0
  2396. package/vendor/pdfjs/cmaps/Adobe-CNS1-4.bcmap +0 -0
  2397. package/vendor/pdfjs/cmaps/Adobe-CNS1-5.bcmap +0 -0
  2398. package/vendor/pdfjs/cmaps/Adobe-CNS1-6.bcmap +0 -0
  2399. package/vendor/pdfjs/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
  2400. package/vendor/pdfjs/cmaps/Adobe-GB1-0.bcmap +0 -0
  2401. package/vendor/pdfjs/cmaps/Adobe-GB1-1.bcmap +0 -0
  2402. package/vendor/pdfjs/cmaps/Adobe-GB1-2.bcmap +0 -0
  2403. package/vendor/pdfjs/cmaps/Adobe-GB1-3.bcmap +0 -0
  2404. package/vendor/pdfjs/cmaps/Adobe-GB1-4.bcmap +0 -0
  2405. package/vendor/pdfjs/cmaps/Adobe-GB1-5.bcmap +0 -0
  2406. package/vendor/pdfjs/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
  2407. package/vendor/pdfjs/cmaps/Adobe-Japan1-0.bcmap +0 -0
  2408. package/vendor/pdfjs/cmaps/Adobe-Japan1-1.bcmap +0 -0
  2409. package/vendor/pdfjs/cmaps/Adobe-Japan1-2.bcmap +0 -0
  2410. package/vendor/pdfjs/cmaps/Adobe-Japan1-3.bcmap +0 -0
  2411. package/vendor/pdfjs/cmaps/Adobe-Japan1-4.bcmap +0 -0
  2412. package/vendor/pdfjs/cmaps/Adobe-Japan1-5.bcmap +0 -0
  2413. package/vendor/pdfjs/cmaps/Adobe-Japan1-6.bcmap +0 -0
  2414. package/vendor/pdfjs/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
  2415. package/vendor/pdfjs/cmaps/Adobe-Korea1-0.bcmap +0 -0
  2416. package/vendor/pdfjs/cmaps/Adobe-Korea1-1.bcmap +0 -0
  2417. package/vendor/pdfjs/cmaps/Adobe-Korea1-2.bcmap +0 -0
  2418. package/vendor/pdfjs/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
  2419. package/vendor/pdfjs/cmaps/B5-H.bcmap +0 -0
  2420. package/vendor/pdfjs/cmaps/B5-V.bcmap +0 -0
  2421. package/vendor/pdfjs/cmaps/B5pc-H.bcmap +0 -0
  2422. package/vendor/pdfjs/cmaps/B5pc-V.bcmap +0 -0
  2423. package/vendor/pdfjs/cmaps/CNS-EUC-H.bcmap +0 -0
  2424. package/vendor/pdfjs/cmaps/CNS-EUC-V.bcmap +0 -0
  2425. package/vendor/pdfjs/cmaps/CNS1-H.bcmap +0 -0
  2426. package/vendor/pdfjs/cmaps/CNS1-V.bcmap +0 -0
  2427. package/vendor/pdfjs/cmaps/CNS2-H.bcmap +0 -0
  2428. package/vendor/pdfjs/cmaps/CNS2-V.bcmap +3 -0
  2429. package/vendor/pdfjs/cmaps/ETHK-B5-H.bcmap +0 -0
  2430. package/vendor/pdfjs/cmaps/ETHK-B5-V.bcmap +0 -0
  2431. package/vendor/pdfjs/cmaps/ETen-B5-H.bcmap +0 -0
  2432. package/vendor/pdfjs/cmaps/ETen-B5-V.bcmap +0 -0
  2433. package/vendor/pdfjs/cmaps/ETenms-B5-H.bcmap +3 -0
  2434. package/vendor/pdfjs/cmaps/ETenms-B5-V.bcmap +0 -0
  2435. package/vendor/pdfjs/cmaps/EUC-H.bcmap +0 -0
  2436. package/vendor/pdfjs/cmaps/EUC-V.bcmap +0 -0
  2437. package/vendor/pdfjs/cmaps/Ext-H.bcmap +0 -0
  2438. package/vendor/pdfjs/cmaps/Ext-RKSJ-H.bcmap +0 -0
  2439. package/vendor/pdfjs/cmaps/Ext-RKSJ-V.bcmap +0 -0
  2440. package/vendor/pdfjs/cmaps/Ext-V.bcmap +0 -0
  2441. package/vendor/pdfjs/cmaps/GB-EUC-H.bcmap +0 -0
  2442. package/vendor/pdfjs/cmaps/GB-EUC-V.bcmap +0 -0
  2443. package/vendor/pdfjs/cmaps/GB-H.bcmap +4 -0
  2444. package/vendor/pdfjs/cmaps/GB-V.bcmap +0 -0
  2445. package/vendor/pdfjs/cmaps/GBK-EUC-H.bcmap +0 -0
  2446. package/vendor/pdfjs/cmaps/GBK-EUC-V.bcmap +0 -0
  2447. package/vendor/pdfjs/cmaps/GBK2K-H.bcmap +0 -0
  2448. package/vendor/pdfjs/cmaps/GBK2K-V.bcmap +0 -0
  2449. package/vendor/pdfjs/cmaps/GBKp-EUC-H.bcmap +0 -0
  2450. package/vendor/pdfjs/cmaps/GBKp-EUC-V.bcmap +0 -0
  2451. package/vendor/pdfjs/cmaps/GBT-EUC-H.bcmap +0 -0
  2452. package/vendor/pdfjs/cmaps/GBT-EUC-V.bcmap +0 -0
  2453. package/vendor/pdfjs/cmaps/GBT-H.bcmap +0 -0
  2454. package/vendor/pdfjs/cmaps/GBT-V.bcmap +0 -0
  2455. package/vendor/pdfjs/cmaps/GBTpc-EUC-H.bcmap +0 -0
  2456. package/vendor/pdfjs/cmaps/GBTpc-EUC-V.bcmap +0 -0
  2457. package/vendor/pdfjs/cmaps/GBpc-EUC-H.bcmap +0 -0
  2458. package/vendor/pdfjs/cmaps/GBpc-EUC-V.bcmap +0 -0
  2459. package/vendor/pdfjs/cmaps/H.bcmap +0 -0
  2460. package/vendor/pdfjs/cmaps/HKdla-B5-H.bcmap +0 -0
  2461. package/vendor/pdfjs/cmaps/HKdla-B5-V.bcmap +0 -0
  2462. package/vendor/pdfjs/cmaps/HKdlb-B5-H.bcmap +0 -0
  2463. package/vendor/pdfjs/cmaps/HKdlb-B5-V.bcmap +0 -0
  2464. package/vendor/pdfjs/cmaps/HKgccs-B5-H.bcmap +0 -0
  2465. package/vendor/pdfjs/cmaps/HKgccs-B5-V.bcmap +0 -0
  2466. package/vendor/pdfjs/cmaps/HKm314-B5-H.bcmap +0 -0
  2467. package/vendor/pdfjs/cmaps/HKm314-B5-V.bcmap +0 -0
  2468. package/vendor/pdfjs/cmaps/HKm471-B5-H.bcmap +0 -0
  2469. package/vendor/pdfjs/cmaps/HKm471-B5-V.bcmap +0 -0
  2470. package/vendor/pdfjs/cmaps/HKscs-B5-H.bcmap +0 -0
  2471. package/vendor/pdfjs/cmaps/HKscs-B5-V.bcmap +0 -0
  2472. package/vendor/pdfjs/cmaps/Hankaku.bcmap +0 -0
  2473. package/vendor/pdfjs/cmaps/Hiragana.bcmap +0 -0
  2474. package/vendor/pdfjs/cmaps/KSC-EUC-H.bcmap +0 -0
  2475. package/vendor/pdfjs/cmaps/KSC-EUC-V.bcmap +0 -0
  2476. package/vendor/pdfjs/cmaps/KSC-H.bcmap +0 -0
  2477. package/vendor/pdfjs/cmaps/KSC-Johab-H.bcmap +0 -0
  2478. package/vendor/pdfjs/cmaps/KSC-Johab-V.bcmap +0 -0
  2479. package/vendor/pdfjs/cmaps/KSC-V.bcmap +0 -0
  2480. package/vendor/pdfjs/cmaps/KSCms-UHC-H.bcmap +0 -0
  2481. package/vendor/pdfjs/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
  2482. package/vendor/pdfjs/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
  2483. package/vendor/pdfjs/cmaps/KSCms-UHC-V.bcmap +0 -0
  2484. package/vendor/pdfjs/cmaps/KSCpc-EUC-H.bcmap +0 -0
  2485. package/vendor/pdfjs/cmaps/KSCpc-EUC-V.bcmap +0 -0
  2486. package/vendor/pdfjs/cmaps/Katakana.bcmap +0 -0
  2487. package/vendor/pdfjs/cmaps/LICENSE +36 -0
  2488. package/vendor/pdfjs/cmaps/NWP-H.bcmap +0 -0
  2489. package/vendor/pdfjs/cmaps/NWP-V.bcmap +0 -0
  2490. package/vendor/pdfjs/cmaps/RKSJ-H.bcmap +0 -0
  2491. package/vendor/pdfjs/cmaps/RKSJ-V.bcmap +0 -0
  2492. package/vendor/pdfjs/cmaps/Roman.bcmap +0 -0
  2493. package/vendor/pdfjs/cmaps/UniCNS-UCS2-H.bcmap +0 -0
  2494. package/vendor/pdfjs/cmaps/UniCNS-UCS2-V.bcmap +0 -0
  2495. package/vendor/pdfjs/cmaps/UniCNS-UTF16-H.bcmap +0 -0
  2496. package/vendor/pdfjs/cmaps/UniCNS-UTF16-V.bcmap +0 -0
  2497. package/vendor/pdfjs/cmaps/UniCNS-UTF32-H.bcmap +0 -0
  2498. package/vendor/pdfjs/cmaps/UniCNS-UTF32-V.bcmap +0 -0
  2499. package/vendor/pdfjs/cmaps/UniCNS-UTF8-H.bcmap +0 -0
  2500. package/vendor/pdfjs/cmaps/UniCNS-UTF8-V.bcmap +0 -0
  2501. package/vendor/pdfjs/cmaps/UniGB-UCS2-H.bcmap +0 -0
  2502. package/vendor/pdfjs/cmaps/UniGB-UCS2-V.bcmap +0 -0
  2503. package/vendor/pdfjs/cmaps/UniGB-UTF16-H.bcmap +0 -0
  2504. package/vendor/pdfjs/cmaps/UniGB-UTF16-V.bcmap +0 -0
  2505. package/vendor/pdfjs/cmaps/UniGB-UTF32-H.bcmap +0 -0
  2506. package/vendor/pdfjs/cmaps/UniGB-UTF32-V.bcmap +0 -0
  2507. package/vendor/pdfjs/cmaps/UniGB-UTF8-H.bcmap +0 -0
  2508. package/vendor/pdfjs/cmaps/UniGB-UTF8-V.bcmap +0 -0
  2509. package/vendor/pdfjs/cmaps/UniJIS-UCS2-H.bcmap +0 -0
  2510. package/vendor/pdfjs/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
  2511. package/vendor/pdfjs/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
  2512. package/vendor/pdfjs/cmaps/UniJIS-UCS2-V.bcmap +0 -0
  2513. package/vendor/pdfjs/cmaps/UniJIS-UTF16-H.bcmap +0 -0
  2514. package/vendor/pdfjs/cmaps/UniJIS-UTF16-V.bcmap +0 -0
  2515. package/vendor/pdfjs/cmaps/UniJIS-UTF32-H.bcmap +0 -0
  2516. package/vendor/pdfjs/cmaps/UniJIS-UTF32-V.bcmap +0 -0
  2517. package/vendor/pdfjs/cmaps/UniJIS-UTF8-H.bcmap +0 -0
  2518. package/vendor/pdfjs/cmaps/UniJIS-UTF8-V.bcmap +0 -0
  2519. package/vendor/pdfjs/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
  2520. package/vendor/pdfjs/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
  2521. package/vendor/pdfjs/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
  2522. package/vendor/pdfjs/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
  2523. package/vendor/pdfjs/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
  2524. package/vendor/pdfjs/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
  2525. package/vendor/pdfjs/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
  2526. package/vendor/pdfjs/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
  2527. package/vendor/pdfjs/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
  2528. package/vendor/pdfjs/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
  2529. package/vendor/pdfjs/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
  2530. package/vendor/pdfjs/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
  2531. package/vendor/pdfjs/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
  2532. package/vendor/pdfjs/cmaps/UniKS-UCS2-H.bcmap +0 -0
  2533. package/vendor/pdfjs/cmaps/UniKS-UCS2-V.bcmap +0 -0
  2534. package/vendor/pdfjs/cmaps/UniKS-UTF16-H.bcmap +0 -0
  2535. package/vendor/pdfjs/cmaps/UniKS-UTF16-V.bcmap +0 -0
  2536. package/vendor/pdfjs/cmaps/UniKS-UTF32-H.bcmap +0 -0
  2537. package/vendor/pdfjs/cmaps/UniKS-UTF32-V.bcmap +0 -0
  2538. package/vendor/pdfjs/cmaps/UniKS-UTF8-H.bcmap +0 -0
  2539. package/vendor/pdfjs/cmaps/UniKS-UTF8-V.bcmap +0 -0
  2540. package/vendor/pdfjs/cmaps/V.bcmap +0 -0
  2541. package/vendor/pdfjs/cmaps/WP-Symbol.bcmap +0 -0
  2542. package/vendor/pdfjs/pdf.min.mjs +27 -0
  2543. package/vendor/pdfjs/pdf.worker.min.mjs +27 -0
  2544. package/vendor/pdfjs/standard_fonts/FoxitDingbats.pfb +0 -0
  2545. package/vendor/pdfjs/standard_fonts/FoxitFixed.pfb +0 -0
  2546. package/vendor/pdfjs/standard_fonts/FoxitFixedBold.pfb +0 -0
  2547. package/vendor/pdfjs/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
  2548. package/vendor/pdfjs/standard_fonts/FoxitFixedItalic.pfb +0 -0
  2549. package/vendor/pdfjs/standard_fonts/FoxitSerif.pfb +0 -0
  2550. package/vendor/pdfjs/standard_fonts/FoxitSerifBold.pfb +0 -0
  2551. package/vendor/pdfjs/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
  2552. package/vendor/pdfjs/standard_fonts/FoxitSerifItalic.pfb +0 -0
  2553. package/vendor/pdfjs/standard_fonts/FoxitSymbol.pfb +0 -0
  2554. package/vendor/pdfjs/standard_fonts/LICENSE_FOXIT +27 -0
  2555. package/vendor/pdfjs/standard_fonts/LICENSE_LIBERATION +363 -0
  2556. package/vendor/pdfjs/standard_fonts/LiberationSans-Bold.ttf +0 -0
  2557. package/vendor/pdfjs/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
  2558. package/vendor/pdfjs/standard_fonts/LiberationSans-Italic.ttf +0 -0
  2559. package/vendor/pdfjs/standard_fonts/LiberationSans-Regular.ttf +0 -0
  2560. package/vendor/pdfjs/wasm/jbig2.wasm +0 -0
  2561. package/vendor/pdfjs/wasm/openjpeg.wasm +0 -0
  2562. package/vendor/pele/chunks/23I4SOAX.js +1 -0
  2563. package/vendor/pele/chunks/25ITEZ43.js +2 -0
  2564. package/vendor/pele/chunks/26H2HVXD.js +1 -0
  2565. package/vendor/pele/chunks/2IZ5MNOH.js +1 -0
  2566. package/vendor/pele/chunks/2P3CZEXH.js +1 -0
  2567. package/vendor/pele/chunks/2TH3V34D.js +2 -0
  2568. package/vendor/pele/chunks/3E5HRNYT.js +1 -0
  2569. package/vendor/pele/chunks/3JIRLDUO.js +1 -0
  2570. package/vendor/pele/chunks/3MKGV5HX.js +2 -0
  2571. package/vendor/pele/chunks/3S2YGJBL.js +6 -0
  2572. package/vendor/pele/chunks/4AG6A4TK.js +2 -0
  2573. package/vendor/pele/chunks/5MJ3UKSG.js +1 -0
  2574. package/vendor/pele/chunks/5THPTBWS.js +1 -0
  2575. package/vendor/pele/chunks/63N73SV4.js +1 -0
  2576. package/vendor/pele/chunks/6PEWY3TN.js +2 -0
  2577. package/vendor/pele/chunks/7OAKGN26.js +25 -0
  2578. package/vendor/pele/chunks/7WLXJQOR.js +1 -0
  2579. package/vendor/pele/chunks/A255FCTW.js +1 -0
  2580. package/vendor/pele/chunks/A6VFOGAO.js +5 -0
  2581. package/vendor/pele/chunks/AM43MQ64.js +1 -0
  2582. package/vendor/pele/chunks/AOZTNTMC.js +1 -0
  2583. package/vendor/pele/chunks/AQNLM6KG.js +1 -0
  2584. package/vendor/pele/chunks/BNU2RHQB.js +1 -0
  2585. package/vendor/pele/chunks/C5HTQT3I.js +4 -0
  2586. package/vendor/pele/chunks/CPKRWH5G.js +1 -0
  2587. package/vendor/pele/chunks/CPRVZL76.js +11 -0
  2588. package/vendor/pele/chunks/CUVCMPQX.js +1 -0
  2589. package/vendor/pele/chunks/D4V2MWCI.js +1 -0
  2590. package/vendor/pele/chunks/D6K5RLPD.js +5 -0
  2591. package/vendor/pele/chunks/DHKBVIA3.js +1 -0
  2592. package/vendor/pele/chunks/DKTLEL5E.js +1 -0
  2593. package/vendor/pele/chunks/DUZNPW7S.js +2 -0
  2594. package/vendor/pele/chunks/E3FWOBN4.js +4 -0
  2595. package/vendor/pele/chunks/E65FQMJL.js +1 -0
  2596. package/vendor/pele/chunks/EENBF6R3.js +5 -0
  2597. package/vendor/pele/chunks/FTXIJQGB.js +1 -0
  2598. package/vendor/pele/chunks/G3MDBVQH.js +1 -0
  2599. package/vendor/pele/chunks/G3OATVW2.js +1 -0
  2600. package/vendor/pele/chunks/GAP5KXLD.js +5 -0
  2601. package/vendor/pele/chunks/GFBBR3DD.js +13 -0
  2602. package/vendor/pele/chunks/GUJTEFZK.js +1 -0
  2603. package/vendor/pele/chunks/IHVFDU4A.js +10 -0
  2604. package/vendor/pele/chunks/IV52FOAS.js +1 -0
  2605. package/vendor/pele/chunks/JTJEEBDN.js +1 -0
  2606. package/vendor/pele/chunks/JX3HYMZ6.js +8 -0
  2607. package/vendor/pele/chunks/K3TAFXGN.js +3 -0
  2608. package/vendor/pele/chunks/K7FUICZ3.js +1 -0
  2609. package/vendor/pele/chunks/KIF544NL.js +2 -0
  2610. package/vendor/pele/chunks/LHH2HHRB.js +1 -0
  2611. package/vendor/pele/chunks/LT5IS45C.js +2 -0
  2612. package/vendor/pele/chunks/M7II5KMO.js +2 -0
  2613. package/vendor/pele/chunks/MSPQPZZY.js +1 -0
  2614. package/vendor/pele/chunks/NY2EJWPH.js +2 -0
  2615. package/vendor/pele/chunks/OB6ZFVKF.js +1 -0
  2616. package/vendor/pele/chunks/OJBDHQO2.js +4 -0
  2617. package/vendor/pele/chunks/PLTZDMI2.js +1 -0
  2618. package/vendor/pele/chunks/QFOMM5LR.js +2 -0
  2619. package/vendor/pele/chunks/R7EPXMMD.js +1 -0
  2620. package/vendor/pele/chunks/RGVCULFG.js +1 -0
  2621. package/vendor/pele/chunks/RVARI57O.js +1 -0
  2622. package/vendor/pele/chunks/S4GSSVLN.js +3 -0
  2623. package/vendor/pele/chunks/SPBWZ4VS.js +1 -0
  2624. package/vendor/pele/chunks/SR7OOV3Q.js +1 -0
  2625. package/vendor/pele/chunks/STAXBNH4.js +2 -0
  2626. package/vendor/pele/chunks/STMK7JZH.js +2 -0
  2627. package/vendor/pele/chunks/STXEMZPJ.js +2 -0
  2628. package/vendor/pele/chunks/SXFARSFO.js +1 -0
  2629. package/vendor/pele/chunks/TC77ISAL.js +1 -0
  2630. package/vendor/pele/chunks/TXE3YXUM.js +2 -0
  2631. package/vendor/pele/chunks/TYIQQHVC.js +1 -0
  2632. package/vendor/pele/chunks/TZUXETIT.js +1 -0
  2633. package/vendor/pele/chunks/U7N72BGE.js +1 -0
  2634. package/vendor/pele/chunks/UFPIB6EZ.js +1 -0
  2635. package/vendor/pele/chunks/UO52YEYL.js +3 -0
  2636. package/vendor/pele/chunks/V52Z4AG3.js +4 -0
  2637. package/vendor/pele/chunks/VBDLARNP.js +4 -0
  2638. package/vendor/pele/chunks/VHJMZXCQ.js +3 -0
  2639. package/vendor/pele/chunks/VIK3ONSK.js +1 -0
  2640. package/vendor/pele/chunks/VPGC3RUM.js +7 -0
  2641. package/vendor/pele/chunks/VVVO4ZVP.js +1 -0
  2642. package/vendor/pele/chunks/WRGXZO53.js +1 -0
  2643. package/vendor/pele/chunks/X5SG7MGC.js +1 -0
  2644. package/vendor/pele/chunks/XLHPVVFU.js +2 -0
  2645. package/vendor/pele/chunks/XXYPNCD5.js +1 -0
  2646. package/vendor/pele/chunks/XZO3CX7R.js +12 -0
  2647. package/vendor/pele/chunks/YZBJM2QT.js +2 -0
  2648. package/vendor/pele/chunks/YZHV477W.js +2 -0
  2649. package/vendor/pele/chunks/Z6WRYFJC.js +1 -0
  2650. package/vendor/pele/chunks/ZI2QNEGF.js +8 -0
  2651. package/vendor/pele/lazy.js +1 -0
  2652. package/vendor/pptxgenjs/pptxgen.mjs +97 -0
  2653. package/vendor/signals-core.mjs +1 -0
  2654. package/vendor/spessasynth/spessasynth.mjs +20764 -0
  2655. package/vendor/spessasynth/stb-vorbis.mjs +1 -0
  2656. package/vendor/temml/Temml.woff2 +0 -0
  2657. package/vendor/temml/temml.css +372 -0
  2658. package/vendor/temml/temml.mjs +2 -0
@@ -0,0 +1,3101 @@
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, _t as o, ft as s, ln as c, lt as l, r as u, un as d, z as f } from "ooxml/hyperlink-Cxzhet30.js";
3
+ import { C as p, D as m, M as h, N as g, O as _, S as v, T as ee, _ as y, a as b, b as te, c as x, d as ne, f as re, g as ie, h as ae, i as S, l as C, m as oe, n as se, o as ce, p as le, r as ue, s as de, t as fe, u as pe, v as me, w as he, x as ge, y as _e } from "ooxml/canvas-viewer-mechanics-DbLz0rYW.js";
4
+ import { c as ve, d as ye, f as be, i as xe, l as Se, n as Ce, o as w, r as we, s as Te, t as Ee, u as De } from "ooxml/dom-interaction-boundary-Cnm8DSBN.js";
5
+ import { A as Oe, C as T, D as ke, E as Ae, M as je, O as E, S as Me, T as Ne, _ as Pe, a as Fe, b as Ie, c as Le, d as Re, f as ze, g as Be, h as Ve, j as He, k as Ue, l as We, m as Ge, n as Ke, o as qe, p as Je, s as Ye, t as Xe, v as Ze, w as Qe, x as $e, y as et } from "ooxml/document-pull-client-B9PTM-pL.js";
6
+ import { n as tt } from "ooxml/cjk-fallback-bLI3z70h.js";
7
+ import { a as D } from "ooxml/units-BzZ0gAxs.js";
8
+ import { l as nt, s as rt } from "ooxml/pixel-budget-9P63Bsk5.js";
9
+ import { i as it, s as at } from "ooxml/raster-target-ojDdQizC.js";
10
+ import { n as ot } from "ooxml/renderer-module-contract-D91rkYHH.js";
11
+ import { n as st, t as O } from "ooxml/highlight-rect-C5hkRqUr.js";
12
+ import { t as ct } from "ooxml/bounded-raw-part-cache-Cg1BsSZQ.js";
13
+ import { o as k } from "ooxml/source-key-DIJG8BA0.js";
14
+ import { i as lt, n as A, r as ut, t as dt } from "ooxml/comments-Diid5ujN.js";
15
+ //#region packages/core/src/fonts/open-type-metrics.ts
16
+ var j = (e) => (e.charCodeAt(0) << 24 >>> 0 | e.charCodeAt(1) << 16 | e.charCodeAt(2) << 8 | e.charCodeAt(3)) >>> 0, ft = j("ttcf"), pt = j("OTTO"), mt = j("true"), ht = j("typ1"), gt = j("head"), _t = j("hhea"), vt = j("OS/2"), yt = j("cmap"), bt = j("fvar"), M = [
17
+ [4352, 4607],
18
+ [11904, 12287],
19
+ [12352, 12543],
20
+ [12544, 12591],
21
+ [12592, 12687],
22
+ [12704, 12735],
23
+ [12784, 12799],
24
+ [13312, 19903],
25
+ [19968, 40959],
26
+ [40960, 42191],
27
+ [43360, 43391],
28
+ [44032, 55203],
29
+ [63744, 64255],
30
+ [131072, 205743]
31
+ ];
32
+ function N(e, t, n) {
33
+ return Number.isSafeInteger(t) && Number.isSafeInteger(n) && t >= 0 && n >= 0 && t <= e - n;
34
+ }
35
+ function xt(e, t, n) {
36
+ if (n < 16) return !1;
37
+ let r = e.getUint16(t + 2);
38
+ if (r < 16 || r > n) return !1;
39
+ let i = e.getUint16(t + 6);
40
+ if (i === 0 || i % 2 != 0) return !1;
41
+ let a = i / 2, o = t + 14, s = o + a * 2 + 2, c = s + a * 2, l = c + a * 2;
42
+ if (l + a * 2 > t + r) return !1;
43
+ let u = -1;
44
+ for (let t = 0; t < a; t++) {
45
+ let n = e.getUint16(s + t * 2), r = e.getUint16(o + t * 2);
46
+ if (n > r || n <= u) return !1;
47
+ u = r;
48
+ }
49
+ for (let n = 0; n < a; n++) {
50
+ let i = e.getUint16(s + n * 2), a = e.getUint16(o + n * 2), u = e.getInt16(c + n * 2), d = l + n * 2, f = e.getUint16(d);
51
+ for (let [n, o] of M) {
52
+ let s = Math.max(i, n), c = Math.min(a, o);
53
+ if (!(s > c)) {
54
+ if (f === 0) {
55
+ if (s < c || s + u & 65535) return !0;
56
+ continue;
57
+ }
58
+ for (let n = s; n <= c; n++) {
59
+ let a = d + f + (n - i) * 2;
60
+ if (a + 2 > t + r) break;
61
+ let o = e.getUint16(a);
62
+ if (o !== 0 && o + u & 65535) return !0;
63
+ }
64
+ }
65
+ }
66
+ }
67
+ return !1;
68
+ }
69
+ function St(e, t, n, r) {
70
+ if (n < 16) return !1;
71
+ let i = e.getUint32(t + 4), a = e.getUint32(t + 12);
72
+ if (i < 16 || i > n || a > (i - 16) / 12) return !1;
73
+ let o = -1;
74
+ for (let n = 0; n < a; n++) {
75
+ let i = t + 16 + n * 12, a = e.getUint32(i), s = e.getUint32(i + 4), c = e.getUint32(i + 8);
76
+ if (a > s || s > 1114111 || a <= o) return !1;
77
+ if (o = s, a > M[M.length - 1][1]) break;
78
+ for (let [e, t] of M) {
79
+ let n = Math.max(a, e), i = Math.min(s, t);
80
+ if (!(n > i)) {
81
+ if (r) {
82
+ if (c !== 0) return !0;
83
+ } else if (n < i || c + (n - a) !== 0) return !0;
84
+ }
85
+ }
86
+ }
87
+ return !1;
88
+ }
89
+ function Ct(e, t) {
90
+ if (!t || t.length < 4) return !1;
91
+ let n = e.getUint16(t.offset + 2);
92
+ if (4 + n * 8 > t.length) return !1;
93
+ for (let r = 0; r < n; r++) {
94
+ let n = t.offset + 4 + r * 8, i = e.getUint16(n), a = e.getUint16(n + 2);
95
+ if (i !== 0 && !(i === 3 && (a === 1 || a === 10))) continue;
96
+ let o = e.getUint32(n + 4);
97
+ if (o > t.length - 2) continue;
98
+ let s = t.offset + o, c = t.length - o, l = e.getUint16(s);
99
+ if (l === 4 && xt(e, s, c) || l === 12 && St(e, s, c, !1) || l === 13 && St(e, s, c, !0)) return !0;
100
+ }
101
+ return !1;
102
+ }
103
+ var P = 32768, wt = 4096, Tt = 8, Et = 262144;
104
+ function Dt(e, t, n, r) {
105
+ if (n < 16) return null;
106
+ let i = e.getUint16(t + 2);
107
+ if (i < 16 || i > n) return null;
108
+ let a = e.getUint16(t + 6);
109
+ if (a === 0 || a % 2 != 0) return null;
110
+ let o = a / 2, s = t + 14, c = s + o * 2 + 2, l = c + o * 2, u = l + o * 2;
111
+ if (u + o * 2 > t + i) return null;
112
+ let d = [], f = -1, p = -1, m = (e) => {
113
+ d.length > 0 && p + 1 === e ? (p = e, d[d.length - 1] = [f, p]) : (f = p = e, d.push([e, e]));
114
+ }, h = -1;
115
+ for (let n = 0; n < o; n++) {
116
+ let a = e.getUint16(c + n * 2), o = e.getUint16(s + n * 2);
117
+ if (a > o || a <= h) return null;
118
+ h = o;
119
+ let f = e.getInt16(l + n * 2), p = u + n * 2, g = e.getUint16(p);
120
+ for (let n = a; n <= o && n < 65535; n++) if (--r.remaining < 0 || ((g === 0 ? n + f & 65535 : (() => {
121
+ let r = p + g + (n - a) * 2;
122
+ if (r + 2 > t + i) return 0;
123
+ let o = e.getUint16(r);
124
+ return o === 0 ? 0 : o + f & 65535;
125
+ })()) !== 0 && m(n), d.length > P)) return null;
126
+ }
127
+ return d;
128
+ }
129
+ function Ot(e, t, n, r, i) {
130
+ if (n < 16) return null;
131
+ let a = e.getUint32(t + 4), o = e.getUint32(t + 12);
132
+ if (a < 16 || a > n || o > (a - 16) / 12 || o > P) return null;
133
+ let s = [], c = -1;
134
+ for (let n = 0; n < o; n++) {
135
+ if (--i.remaining < 0) return null;
136
+ let a = t + 16 + n * 12, o = e.getUint32(a), l = e.getUint32(a + 4), u = e.getUint32(a + 8);
137
+ if (o > l || l > 1114111 || o <= c) return null;
138
+ if (c = l, r) u !== 0 && s.push([o, l]);
139
+ else {
140
+ let e = u === 0 ? o + 1 : o;
141
+ e <= l && s.push([e, l]);
142
+ }
143
+ }
144
+ return s;
145
+ }
146
+ function kt(e, t) {
147
+ if (!t || t.length < 4) return [];
148
+ let n = e.getUint16(t.offset + 2);
149
+ if (n > wt || 4 + n * 8 > t.length) return [];
150
+ let r = /* @__PURE__ */ new Set(), i = [];
151
+ for (let a = 0; a < n; a++) {
152
+ let n = t.offset + 4 + a * 8, o = e.getUint16(n), s = e.getUint16(n + 2);
153
+ if (o !== 0 && !(o === 3 && (s === 1 || s === 10))) continue;
154
+ let c = e.getUint32(n + 4);
155
+ if (c > t.length - 2) return [];
156
+ let l = t.offset + c, u = t.length - c, d = e.getUint16(l);
157
+ if (!(o === 0 && s === 5 && d === 14)) {
158
+ if (d !== 4 && d !== 12 && d !== 13) return [];
159
+ if (!r.has(c)) {
160
+ if (r.add(c), r.size > Tt) return [];
161
+ i.push({
162
+ subtable: l,
163
+ availableLength: u,
164
+ format: d
165
+ });
166
+ }
167
+ }
168
+ }
169
+ let a = { remaining: Et }, o = null;
170
+ for (let t of i) {
171
+ let n = t.format === 4 ? Dt(e, t.subtable, t.availableLength, a) : Ot(e, t.subtable, t.availableLength, t.format === 13, a);
172
+ if (!n?.length) return [];
173
+ if (o === null) {
174
+ o = n;
175
+ continue;
176
+ }
177
+ let r = [], i = 0, s = 0;
178
+ for (; i < o.length && s < n.length;) {
179
+ if (--a.remaining < 0) return [];
180
+ let e = o[i], t = n[s], c = Math.max(e[0], t[0]), l = Math.min(e[1], t[1]);
181
+ if (c <= l) {
182
+ let e = r.at(-1);
183
+ if (e && e[1] + 1 === c) r[r.length - 1] = [e[0], l];
184
+ else {
185
+ if (r.length >= P) return [];
186
+ r.push([c, l]);
187
+ }
188
+ }
189
+ e[1] <= t[1] && i++, t[1] <= e[1] && s++;
190
+ }
191
+ if (!r.length) return [];
192
+ o = r;
193
+ }
194
+ return Object.freeze((o ?? []).map((e) => Object.freeze(e)));
195
+ }
196
+ function At(e) {
197
+ let t = 0, n = 0;
198
+ for (; t < e.length && n < M.length;) {
199
+ let [r, i] = e[t], [a, o] = M[n];
200
+ if (i < a) t++;
201
+ else if (o < r) n++;
202
+ else return !0;
203
+ }
204
+ return !1;
205
+ }
206
+ function jt(e, t) {
207
+ return Mt(e, t, !1);
208
+ }
209
+ function Mt(e, t, n) {
210
+ if (t !== void 0 && (!Number.isSafeInteger(t) || t < 0) || e.byteLength < 12) return null;
211
+ let r = new DataView(e.buffer, e.byteOffset, e.byteLength), i = 0;
212
+ if (r.getUint32(0) === ft) {
213
+ if (t === void 0 || e.byteLength < 12) return null;
214
+ let n = r.getUint32(8);
215
+ if (t >= n || !N(e.byteLength, 12, n * 4)) return null;
216
+ i = r.getUint32(12 + t * 4);
217
+ } else if (t !== void 0 && t !== 0) return null;
218
+ if (!N(e.byteLength, i, 12)) return null;
219
+ let a = r.getUint32(i);
220
+ if (a !== 65536 && a !== pt && a !== mt && a !== ht) return null;
221
+ let o = r.getUint16(i + 4);
222
+ if (!N(e.byteLength, i + 12, o * 16)) return null;
223
+ let s = /* @__PURE__ */ new Map();
224
+ for (let t = 0; t < o; t++) {
225
+ let n = i + 12 + t * 16, a = r.getUint32(n), o = r.getUint32(n + 8), c = r.getUint32(n + 12);
226
+ if (s.has(a) || !N(e.byteLength, o, c)) return null;
227
+ s.set(a, {
228
+ offset: o,
229
+ length: c
230
+ });
231
+ }
232
+ if (n && s.has(bt)) return null;
233
+ let c = s.get(gt), l = s.get(_t);
234
+ if (!c || c.length < 20 || !l || l.length < 10) return null;
235
+ let u = r.getUint16(c.offset + 18);
236
+ if (u < 16 || u > 16384) return null;
237
+ let d = s.get(vt), f = d !== void 0 && d.length >= 78, p = n ? kt(r, s.get(yt)) : void 0;
238
+ return Object.freeze({
239
+ unitsPerEm: u,
240
+ hheaAscent: r.getInt16(l.offset + 4),
241
+ hheaDescent: r.getInt16(l.offset + 6),
242
+ hheaLineGap: r.getInt16(l.offset + 8),
243
+ hasEastAsianCmap: p ? At(p) : Ct(r, s.get(yt)),
244
+ ...p === void 0 ? {} : { unicodeRanges: p },
245
+ ...f ? {
246
+ typoAscent: r.getInt16(d.offset + 68),
247
+ typoDescent: r.getInt16(d.offset + 70),
248
+ typoLineGap: r.getInt16(d.offset + 72),
249
+ winAscent: r.getUint16(d.offset + 74),
250
+ winDescent: r.getUint16(d.offset + 76),
251
+ useTypoMetrics: (r.getUint16(d.offset + 62) & 128) != 0
252
+ } : {}
253
+ });
254
+ }
255
+ //#endregion
256
+ //#region packages/docx/src/worker.ts?worker&inline
257
+ var Nt = "var e=(e,t)=>()=>(e&&(t=e(e=0)),t),t=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,r.unregister(this),e}free(){let e=this.__destroy_into_raw();v.__wbg_docxarchive_free(e,0)}acknowledge_document_chunk(e,t,n){let r=v.docxarchive_acknowledge_document_chunk(this.__wbg_ptr,e,t,n);if(r[1])throw p(r[0])}assert_healthy(){let e=v.docxarchive_assert_healthy(this.__wbg_ptr);if(e[1])throw p(e[0])}cancel_document_cursor(){v.docxarchive_cancel_document_cursor(this.__wbg_ptr)}close_document_session(){v.docxarchive_close_document_session(this.__wbg_ptr)}document_chunk_done(){let e=v.docxarchive_document_chunk_done(this.__wbg_ptr);if(e[2])throw p(e[1]);return e[0]!==0}document_cursor_resource_usage(){let e=v.docxarchive_document_cursor_resource_usage(this.__wbg_ptr);if(e[3])throw p(e[2]);var t=i(e[0],e[1]).slice();return v.__wbindgen_free(e[0],e[1]*1,1),t}extract_image(e){let t=f(e,v.__wbindgen_malloc,v.__wbindgen_realloc),n=_,r=v.docxarchive_extract_image(this.__wbg_ptr,t,n);if(r[3])throw p(r[2]);var a=i(r[0],r[1]).slice();return v.__wbindgen_free(r[0],r[1]*1,1),a}constructor(e,t,n,i){let a=d(e,v.__wbindgen_malloc),o=_,s=v.docxarchive_new(a,o,!u(t),u(t)?BigInt(0):t,!u(n),u(n)?BigInt(0):n,!u(i),u(i)?BigInt(0):i);if(s[2])throw p(s[1]);return this.__wbg_ptr=s[0]>>>0,r.register(this,this.__wbg_ptr,this),this}open_document_cursor(e,t){let n=v.docxarchive_open_document_cursor(this.__wbg_ptr,e,t);if(n[1])throw p(n[0])}parse(){let e=v.docxarchive_parse(this.__wbg_ptr);if(e[3])throw p(e[2]);var t=i(e[0],e[1]).slice();return v.__wbindgen_free(e[0],e[1]*1,1),t}pull_document_chunk(e,t,n,r){let a=v.docxarchive_pull_document_chunk(this.__wbg_ptr,e,t,n,r);if(a[3])throw p(a[2]);var o=i(a[0],a[1]).slice();return v.__wbindgen_free(a[0],a[1]*1,1),o}resource_usage(){let e=v.docxarchive_resource_usage(this.__wbg_ptr);if(e[3])throw p(e[2]);var t=i(e[0],e[1]).slice();return v.__wbindgen_free(e[0],e[1]*1,1),t}to_markdown(){let e,t;try{let i=v.docxarchive_to_markdown(this.__wbg_ptr);var n=i[0],r=i[1];if(i[3])throw n=0,r=0,p(i[2]);return e=n,t=r,s(n,r)}finally{v.__wbindgen_free(e,t,1)}}};Symbol.dispose&&(t.prototype[Symbol.dispose]=t.prototype.free);function n(){return{__proto__:null,\"./docx_parser_bg.js\":{__proto__:null,__wbg___wbindgen_throw_6b64449b9b9ed33c:function(e,t){throw Error(s(e,t))},__wbg_error_a6fa202b58aa1cd3:function(e,t){let n,r;try{n=e,r=t,console.error(s(e,t))}finally{v.__wbindgen_free(n,r,1)}},__wbg_new_227d7c05414eb861:function(){return Error()},__wbg_stack_3b0d974bbf31e44f:function(e,t){let n=t.stack,r=f(n,v.__wbindgen_malloc,v.__wbindgen_realloc),i=_;o().setInt32(e+4,i,!0),o().setInt32(e+0,r,!0)},__wbindgen_cast_0000000000000001:function(e,t){return s(e,t)},__wbindgen_init_externref_table:function(){let e=v.__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 r=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>v.__wbg_docxarchive_free(e>>>0,1));function i(e,t){return e>>>=0,l().subarray(e/1,e/1+t)}let a=null;function o(){return(a===null||a.buffer.detached===!0||a.buffer.detached===void 0&&a.buffer!==v.memory.buffer)&&(a=new DataView(v.memory.buffer)),a}function s(e,t){return e>>>=0,ee(e,t)}let c=null;function l(){return(c===null||c.byteLength===0)&&(c=new Uint8Array(v.memory.buffer)),c}function u(e){return e==null}function d(e,t){let n=t(e.length*1,1)>>>0;return l().set(e,n/1),_=e.length,n}function f(e,t,n){if(n===void 0){let n=g.encode(e),r=t(n.length,1)>>>0;return l().subarray(r,r+n.length).set(n),_=n.length,r}let r=e.length,i=t(r,1)>>>0,a=l(),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=l().subarray(i+o,i+r),a=g.encodeInto(e,t);o+=a.written,i=n(i,r,o,1)>>>0}return _=o,i}function p(e){let t=v.__wbindgen_externrefs.get(e);return v.__externref_table_dealloc(e),t}let m=new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0});m.decode();let h=0;function ee(e,t){return h+=t,h>=2146435072&&(m=new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}),m.decode(),h=t),m.decode(l().subarray(e,e+t))}const g=new TextEncoder;`encodeInto`in g||(g.encodeInto=function(e,t){let n=g.encode(e);return t.set(n),{read:e.length,written:n.length}});let _=0,v;function te(e,t){return v=e.exports,a=null,c=null,v.__wbindgen_start(),v}async function ne(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 y(e){if(v!==void 0)return v;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=n();(typeof e==`string`||typeof Request==`function`&&e instanceof Request||typeof URL==`function`&&e instanceof URL)&&(e=fetch(e));let{instance:r,module:i}=await ne(await e,t);return te(r,i)}async function b(e){return v=void 0,a=null,c=null,y(e)}var x=class e extends Error{code;constructor(t,n){super(n),this.name=`OoxmlError`,this.code=t,Object.setPrototypeOf(this,e.prototype)}},S=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)}};function re(e){return e===`image-dimension`||e===`image-pixels`||e===`active-decoded-bytes`}function C(e){return typeof e==`number`&&Number.isSafeInteger(e)&&e>=0}function ie(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`||!re(r)||!C(i)||!C(a)||a<=i?void 0:{metric:r,limit:i,observed:a}}catch{return}}var w,T,E,D=e((()=>{w=1<<25,T=1<<27,w*4,T*4,E=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 O(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 ae=e((()=>{}));function oe(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 se=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`)}},k=class e extends Error{code=`parser-crashed`;constructor(t){super(t),this.name=`WasmTrapError`,Object.setPrototypeOf(this,e.prototype)}};function ce(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 le(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 ue(e,t){return e({module_or_path:t})}var de=class{runtime;wasmInput=null;currentArchive=null;constructor(e,t={}){this.init=e,this.options=t,this.runtime=new se(()=>this.invokeConfigured(this.init),()=>this.invokeConfigured(this.options.reinit??this.init),fe),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 k(`WASM parser was recycled`))}invokeConfigured(e){return this.wasmInput===null?Promise.reject(Error(`WasmParserHost: setWasmInput was never called`)):ue(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,le(e)}};function fe(e){return ce(e)?new k(`WASM parser trapped and was recycled: ${e instanceof Error?e.message:String(e)}`):null}function A(e){return typeof e==`number`&&Number.isSafeInteger(e)&&e>0}function pe(e){if(!e||typeof e!=`object`||Array.isArray(e))return!1;let t=e;return A(t.requiredBytes)&&A(t.offeredBytes)&&t.requiredBytes>t.offeredBytes}var j=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 M(e){if(e instanceof j)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`||!pe(r)))return new j(r)}function me(e,t,n){let r=M(e);if(!(!r||r.offeredBytes!==t||r.requiredBytes>n))return r}D(),ae();const N=`OOXML_RESOURCE_LIMIT:`;function P(e){return typeof e==`number`&&Number.isSafeInteger(e)&&e>=0}function F(e){if(!e||typeof e!=`object`||Array.isArray(e))return!1;let t=e;return P(t.archiveEntryCount)&&P(t.declaredInflatedBytes)&&(t.largestInflatedEntryBytes===void 0||P(t.largestInflatedEntryBytes))&&P(t.distinctInflatedBytes)&&P(t.operationInflatedBytes)}function I(e){let t;try{t=JSON.parse(new TextDecoder().decode(e))}catch{throw TypeError(`OOXML resource usage checkpoint is not valid JSON`)}if(!F(t))throw TypeError(`OOXML resource usage checkpoint is invalid`);return t}function L(e){return e===`docx`||e===`xlsx`||e===`pptx`}function R(e){return e===`container`||e===`decompression`||e===`parsing`||e===`serialization`||e===`layout`||e===`rendering`||e===`worker`}function z(e,t){return typeof e==`string`&&e.length>0&&e.length<=t&&!/[\\u0000-\\u001f\\u007f]/u.test(e)}function B(e){return z(e,128)&&/^[a-z0-9][a-z0-9-]*$/u.test(e)}function he(e){return!z(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 V=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}]]),ge=new Set([...V.keys()].map(e=>e.slice(0,e.indexOf(`:`)))),_e=new Set([...V.keys()].map(e=>e.slice(e.indexOf(`:`)+1)));function ve(e){if(!e||typeof e!=`object`||Array.isArray(e))return!1;let t=e;return!L(t.format)||!z(t.operation,256)||!B(t.resource)||!B(t.metric)||!P(t.limit)||!P(t.observed)||typeof t.configurable!=`boolean`||!F(t.usage)?!1:!(`part`in t)||he(t.part)}function H(e){if(!e||typeof e!=`object`||Array.isArray(e))return!1;let t=e;if(!R(t.stage)||!ve(t.violation))return!1;let n=t.violation,r=V.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:!(ge.has(n.resource)&&_e.has(n.metric))}function ye(e){return{archiveEntryCount:e.archiveEntryCount,declaredInflatedBytes:e.declaredInflatedBytes,...e.largestInflatedEntryBytes===void 0?{}:{largestInflatedEntryBytes:e.largestInflatedEntryBytes},distinctInflatedBytes:e.distinctInflatedBytes,operationInflatedBytes:e.operationInflatedBytes}}function be(e){if(!H(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:ye(t.usage)}};return H(n)?n:void 0}function U(e){let t=e.violation;return`OOXML resource limit exceeded${t.part?` for ${t.part}`:``}: ${t.metric} ${t.observed} > ${t.limit}`}function xe(e){let t=e instanceof Error?e.message:String(e);if(!t.startsWith(N))return;let n;try{n=JSON.parse(t.slice(21))}catch{return}if(!n||typeof n!=`object`)return;let r=n;if(!(r.code!==`ooxml-resource-limit`||!H(r.details)))return new S(U(r.details),r.details)}function Se(e){let t=ie(e);if(t){let e=new E(t.metric,t.limit,t.observed);return{message:e.message,errorName:e.name,code:e.code,decodedImage:t}}let n=O(e);if(n)return{message:n.message,errorName:`TiffDecodeError`,code:`ooxml-tiff-decode`};let r=M(e);if(r)return{message:r.message,errorName:r.name,code:r.code,insufficientCredit:{requiredBytes:r.requiredBytes,offeredBytes:r.offeredBytes}};let i=e instanceof x||e instanceof S?e:xe(e);if(i instanceof S){let e=be(i.details);return e?{message:typeof i.message==`string`?i.message:U(e),errorName:`OoxmlResourceLimitError`,code:`ooxml-resource-limit`,resourceLimit:e}:{message:`Invalid OOXML resource-limit error payload`,errorName:`Error`}}if(i instanceof x)return{message:typeof i.message==`string`?i.message:String(i.message),errorName:z(i.name,128)?i.name:`OoxmlError`,...B(i.code)?{code:i.code}:{}};let a=e instanceof Error?e.message:String(e);if(typeof a==`string`&&a.startsWith(N))return{message:`Invalid OOXML resource-limit payload`,errorName:`Error`};let o=e instanceof Error?e:Error(a),s=o;return{message:typeof o.message==`string`?o.message:String(o.message),errorName:z(o.name,128)?o.name:`Error`,...typeof s.code==`string`?{code:s.code}:{}}}function W(e){try{return Se(e)}catch{return{message:`Worker operation failed with an unreadable error`,errorName:`Error`}}}function Ce(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 G=`ooxml-pull-v1`;function K(e,t){if(!Number.isSafeInteger(e)||e<=0)throw RangeError(`${t} must be a positive safe integer`)}function Te(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 q=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,K(this.maxRetainedBytes,`max retained lease bytes`),K(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}},Ee=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){Te(e.sessionId),K(e.operationId,`operation id`),K(e.generation,`generation`),K(e.maxByteCredit,`max byte credit`),e.wireLeaseIdStart!==void 0&&K(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=W(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(K(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:G,...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){K(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(K(e,`byte credit`),e>this.options.maxByteCredit)throw RangeError(`byte credit exceeds host maximum`)}accepted(e,t,n=!1){return{kind:`accepted`,protocol:G,...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:G,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 De(e){try{let t=e(e=>e.document_cursor_resource_usage?.());return t?I(t):void 0}catch(e){if(String(e).includes(`document cursor usage is unavailable`))return;throw e}}const J=67108864;var Y=class{coordinator=new q;host=null;identity=null;constructor(e,t=e=>e(this.requireArchive())){this.archive=e,this.executeArchive=t}open(e){if(this.host)throw Error(`a DOCX document pull session is already active`);this.executeArchive(t=>{t.open_document_cursor(e.operationId,e.generation)});let t=0;this.identity=e,this.host=new Ee({...e,maxByteCredit:J,coordinator:this.coordinator,driver:{pull:n=>{let r;try{r=this.executeArchive(r=>r.pull_document_chunk(t,e.operationId,e.generation,n))}catch(e){throw me(e,n,J)||e}let i=Ce(r);return{payload:i,byteLength:i.byteLength,done:this.executeArchive(e=>e.document_chunk_done()),transfer:[i]}},measureChunk:({payload:e})=>e.byteLength,acknowledge:n=>{if(n!==t)throw Error(`DOCX document acknowledgement sequence mismatch`);this.executeArchive(n=>n.acknowledge_document_chunk(t,e.operationId,e.generation)),t+=1},cancel:()=>this.executeArchive(e=>e.cancel_document_cursor()),close:()=>this.executeArchive(e=>e.close_document_session()),resourceUsage:()=>De(this.executeArchive)}})}dispatch(e,t){return!this.host||!this.identity?(t({protocol:G,kind:`error`,sessionId:e.sessionId,operationId:e.operationId,generation:e.generation,requestId:e.requestId,error:W(Error(`DOCX document pull session is not open`))}),Promise.resolve()):this.host.dispatch(e,t)}async reset(){if(this.host)try{this.archive()&&this.executeArchive(e=>e.close_document_session())}finally{this.host=null,this.identity=null,this.coordinator=new q}}requireArchive(){let e=this.archive();if(!e)throw Error(`No docx loaded`);return e}};function Oe(e){return!!e&&typeof e==`object`&&e.protocol===`ooxml-pull-v1`}const X=new de(y,{freeArchive:e=>e.free(),reinit:b}),Z=new Y(()=>X.archive,e=>X.run(()=>{let t=X.archive;if(!t)throw Error(`No docx loaded`);return e(t)}));let Q=0;const $=(e,t)=>self.postMessage(e,t);self.onmessage=async e=>{let n=e.data;if(Oe(n)){try{await Z.dispatch(n,$)}catch(e){$({protocol:G,kind:`error`,sessionId:n.sessionId,operationId:n.operationId,generation:n.generation,requestId:n.requestId,error:W(e)})}return}if(n.type===`init`){X.setWasmInput(oe(n.wasmUrl)??n.wasmUrl);return}let r=n.id;try{if(await X.ensureReady(),n.type!==`parse`&&X.archive){let e=X.archive;X.run(()=>e.assert_healthy())}if(n.type===`parse`){await Z.reset();let[e,i,a]=we(n.resourcePolicy),o=new Uint8Array(n.data);X.run(()=>{let n=new t(o,e,i,a);X.setArchive(n)}),Q+=1;let s={sessionId:Q,operationId:Q,generation:Q};Z.open(s),$({type:`documentSessionOpened`,id:r,...s});return}let e=X.archive;if(n.type===`extractImage`){if(!e)throw Error(`No docx loaded`);let t=X.run(()=>e.extract_image(n.path).buffer),i={type:`imageExtracted`,id:r,bytes:t};self.postMessage(i,[t]);return}if(n.type===`resourceUsage`){if(!e)throw Error(`No docx loaded`);$({type:`resourceUsage`,id:r,usage:I(X.run(()=>e.resource_usage()))});return}if(n.type===`toMarkdown`){if(!e)throw Error(`No docx loaded`);$({type:`markdownRendered`,id:r,markdown:X.run(()=>e.to_markdown())});return}}catch(e){$({type:`error`,id:r,...W(e)})}};", Pt = typeof self < "u" && self.Blob && new Blob([Nt], { type: "text/javascript;charset=utf-8" });
258
+ function Ft(e) {
259
+ let t;
260
+ try {
261
+ if (t = Pt && (self.URL || self.webkitURL).createObjectURL(Pt), !t) throw "";
262
+ let n = new Worker(t, {
263
+ name: e?.name
264
+ });
265
+ return n.addEventListener("error", () => {
266
+ (self.URL || self.webkitURL).revokeObjectURL(t);
267
+ }), n;
268
+ } catch {
269
+ return new Worker("data:text/javascript;charset=utf-8," + encodeURIComponent(Nt), {
270
+ name: e?.name
271
+ });
272
+ }
273
+ }
274
+ //#endregion
275
+ //#region packages/docx/src/wasm/docx_parser_bg.wasm?url
276
+ var It = new URL("docx_parser_bg.wasm", "https://package.invalid/").href;
277
+ //#endregion
278
+ //#region packages/docx/src/bookmark-nav.ts
279
+ function Lt(e) {
280
+ let t = /* @__PURE__ */ new Map();
281
+ for (let n of e.pages) for (let e of n.bookmarkStarts) e.name !== "" && !t.has(e.name) && t.set(e.name, n.pageIndex);
282
+ return t;
283
+ }
284
+ //#endregion
285
+ //#region packages/docx/src/embedded-fonts.ts
286
+ async function Rt(e, t) {
287
+ let n = e.embeddedFonts;
288
+ if (!n || n.length === 0) return {
289
+ faces: [],
290
+ metrics: {}
291
+ };
292
+ let r = [], i = /* @__PURE__ */ new Set();
293
+ for (let e of n) {
294
+ let t = zt(e.style) === "bold" ? 700 : 400, n = Bt(e.style), a = `${je(e.fontName)}:${t}:${n}`;
295
+ i.has(a) || (i.add(a), r.push(e));
296
+ }
297
+ let a = (await Promise.all(r.map(async (e) => {
298
+ try {
299
+ let n = await t(e.partPath), r = e.partPath.toLowerCase().endsWith(".odttf"), i = {
300
+ family: e.fontName,
301
+ bytes: n,
302
+ odttf: r,
303
+ fontKey: e.fontKey,
304
+ weight: zt(e.style),
305
+ style: Bt(e.style)
306
+ };
307
+ if (!De(n)) return {
308
+ face: i,
309
+ metric: null
310
+ };
311
+ let a = i, o = null;
312
+ try {
313
+ let t = r ? Se(n, e.fontKey ?? "") : n;
314
+ a = {
315
+ ...i,
316
+ bytes: t,
317
+ odttf: !1,
318
+ fontKey: ""
319
+ };
320
+ let s = jt(t), c = s?.hasEastAsianCmap ? Ne(s) : 0;
321
+ c > 0 && (o = Object.freeze({
322
+ family: e.fontName,
323
+ requestedFamily: e.fontName,
324
+ weight: a.weight === "bold" ? 700 : 400,
325
+ style: a.style,
326
+ sourceIdentity: `embedded:${e.partPath}`,
327
+ synthesized: !1,
328
+ eastAsianLineHeightRatio: c
329
+ }));
330
+ } catch {}
331
+ return {
332
+ face: a,
333
+ metric: o
334
+ };
335
+ } catch {
336
+ return null;
337
+ }
338
+ }))).filter((e) => e !== null);
339
+ if (a.length === 0) return {
340
+ faces: [],
341
+ metrics: {}
342
+ };
343
+ let o = await ye(a.map((e) => e.face)), s = new Set(o.map((e) => {
344
+ let t = e.family.trim().replace(/^(['"])(.*)\1$/, "$2"), n = e.weight === "bold" ? 700 : Number(e.weight) || 400, r = e.style === "italic" ? "italic" : "normal";
345
+ return `${je(t)}:${n}:${r}`;
346
+ })), c = {};
347
+ for (let e of a) {
348
+ if (!e.metric) continue;
349
+ let t = je(e.face.family), n = e.face.weight === "bold" ? 700 : 400, r = e.face.style, i = `${t}:${n}:${r}`;
350
+ s.has(i) && (c[n === 400 && r === "normal" ? t : i] = e.metric);
351
+ }
352
+ return {
353
+ faces: o,
354
+ metrics: Object.freeze(c)
355
+ };
356
+ }
357
+ function zt(e) {
358
+ return e === "bold" || e === "boldItalic" ? "bold" : "normal";
359
+ }
360
+ function Bt(e) {
361
+ return e === "italic" || e === "boldItalic" ? "italic" : "normal";
362
+ }
363
+ //#endregion
364
+ //#region packages/docx/src/element-context.ts
365
+ var F = pe, Vt = 16384;
366
+ function Ht(e, t) {
367
+ let n = Math.min(e.length, t);
368
+ if (n > 0 && n < e.length) {
369
+ let t = e.charCodeAt(n - 1), r = e.charCodeAt(n);
370
+ t >= 55296 && t <= 56319 && r >= 56320 && r <= 57343 && n--;
371
+ }
372
+ return e.slice(0, n);
373
+ }
374
+ function Ut(e, t) {
375
+ let n = [], r = 0, i = !1;
376
+ for (let a of e) {
377
+ if (a.length === 0) continue;
378
+ if (r > 0) {
379
+ if (r >= t) {
380
+ i = !0;
381
+ break;
382
+ }
383
+ n.push("\n"), r++;
384
+ }
385
+ let e = Ht(a, Math.max(0, t - r));
386
+ if (n.push(e), r += e.length, e.length < a.length) {
387
+ i = !0;
388
+ break;
389
+ }
390
+ }
391
+ let a = n.join("");
392
+ return {
393
+ ...a.length === 0 ? {} : { text: a },
394
+ truncated: i
395
+ };
396
+ }
397
+ function* I(e) {
398
+ if (e.kind === "paragraph") {
399
+ for (let t of e.lines) {
400
+ let e = t.placements.flatMap((e) => e.kind === "text" ? [e.text] : []).join("");
401
+ e && (yield e);
402
+ }
403
+ return;
404
+ }
405
+ if (e.kind === "table") {
406
+ for (let t of e.rows) for (let e of t.cells) for (let t of e.blocks) yield* I(t.layout);
407
+ return;
408
+ }
409
+ if (e.kind === "note" || e.kind === "textbox") for (let t of e.story.blocks) yield* I(t);
410
+ }
411
+ function* Wt(e) {
412
+ for (let t of e.drawing.commands) (t.kind === "text" || t.kind === "watermark-text") && (yield t.text);
413
+ for (let t of e.textBoxes) yield* I(t);
414
+ }
415
+ function Gt(e) {
416
+ let t = e ?? Vt;
417
+ if (!Number.isFinite(t) || t < 0) throw RangeError("maxTextCharacters must be a finite non-negative number.");
418
+ return Math.min(F, Math.floor(t));
419
+ }
420
+ function Kt(e) {
421
+ return {
422
+ story: e.story,
423
+ storyInstance: e.storyInstance,
424
+ path: [...e.path]
425
+ };
426
+ }
427
+ function qt(e) {
428
+ return "drawing" in e ? e.drawing.inkBounds : e.placement.bounds;
429
+ }
430
+ function Jt(e) {
431
+ let t = qt(e), n = [
432
+ T(e.pointToPage, t),
433
+ T(e.pointToPage, {
434
+ xPt: t.xPt + t.widthPt,
435
+ yPt: t.yPt
436
+ }),
437
+ T(e.pointToPage, {
438
+ xPt: t.xPt,
439
+ yPt: t.yPt + t.heightPt
440
+ }),
441
+ T(e.pointToPage, {
442
+ xPt: t.xPt + t.widthPt,
443
+ yPt: t.yPt + t.heightPt
444
+ })
445
+ ], r = Math.min(...n.map((e) => e.xPt)), i = Math.min(...n.map((e) => e.yPt)), a = Math.max(...n.map((e) => e.xPt)), o = Math.max(...n.map((e) => e.yPt));
446
+ return {
447
+ xPt: r,
448
+ yPt: i,
449
+ widthPt: a - r,
450
+ heightPt: o - i
451
+ };
452
+ }
453
+ function L(e, t) {
454
+ return t.xPt >= e.xPt && t.xPt <= e.xPt + e.widthPt && t.yPt >= e.yPt && t.yPt <= e.yPt + e.heightPt;
455
+ }
456
+ function Yt(e, t) {
457
+ let n = !1;
458
+ for (let r = 0, i = t.length - 1; r < t.length; i = r++) {
459
+ let a = t[r], o = t[i];
460
+ a.yPt > e.yPt != o.yPt > e.yPt && e.xPt < (o.xPt - a.xPt) * (e.yPt - a.yPt) / (o.yPt - a.yPt) + a.xPt && (n = !n);
461
+ }
462
+ return n;
463
+ }
464
+ function Xt(e, t) {
465
+ return L(e.inkBounds, t) ? e.clip ? e.clip.kind === "rect" ? L(e.clip.rect, t) : Yt(t, e.clip.points) : !0 : !1;
466
+ }
467
+ function Zt(e, t, n) {
468
+ for (let n of e.clips) {
469
+ let e = Me(n.pointToPage, t);
470
+ if (!e || !L(n.bounds, e)) return !1;
471
+ }
472
+ return "drawing" in e ? Xt(e.drawing, n) : L(e.placement.bounds, n);
473
+ }
474
+ function R(e, t) {
475
+ return e.commands.find((e) => e.kind === "resource" && e.resourceKind === t);
476
+ }
477
+ function Qt(e) {
478
+ return R(e, "chart") ? "chart" : e.commands.some((e) => e.kind === "drawingml-shape" || e.kind === "drawingml-image-fill" || e.kind === "fill-rect" || e.kind === "stroke-rect" || e.kind === "text" || e.kind === "watermark-text") ? "shape" : R(e, "image") ? "image" : null;
479
+ }
480
+ function $t(e, t, n, r, i, a) {
481
+ let o = "drawing" in e ? Qt(e.drawing) : e.placement.resourceKind;
482
+ if (!o) return null;
483
+ let s, c = !1, l, u;
484
+ if (o === "chart") {
485
+ let t = "drawing" in e ? R(e.drawing, "chart").resourceKey : e.placement.resourceKey, n = i.resolve(t, "chart"), r = ne(n.model, a);
486
+ s = r.text, c = r.truncated, u = n.model.series.length;
487
+ } else if (o === "image") {
488
+ let t = "drawing" in e ? R(e.drawing, "image").resourceKey : e.placement.resourceKey, n = i.descriptors.find((e) => e.resourceKey === t && e.kind === "image" && "mimeType" in e);
489
+ if (!n) throw Error(`Unknown image paint resource: ${t}`);
490
+ l = n.mimeType;
491
+ } else {
492
+ let t = Ut(Wt(e), a);
493
+ s = t.text, c = t.truncated;
494
+ }
495
+ return {
496
+ format: "docx",
497
+ kind: "element",
498
+ pageIndex: t,
499
+ elementIndex: n,
500
+ elementType: o,
501
+ point: { ...r },
502
+ bounds: Jt(e),
503
+ source: Kt("drawing" in e ? e.drawing.source : e.source),
504
+ ...s === void 0 ? {} : { text: s },
505
+ ...l === void 0 ? {} : { mimeType: l },
506
+ ...u === void 0 ? {} : { seriesCount: u },
507
+ truncated: c,
508
+ truncationReasons: c ? ["text"] : [],
509
+ textCharacters: s?.length ?? 0,
510
+ maxTextCharacters: a
511
+ };
512
+ }
513
+ function en(e, t, n, r, i = {}) {
514
+ if (!Number.isFinite(n.xPt) || !Number.isFinite(n.yPt)) throw RangeError("DOCX hit-test point must contain finite page coordinates.");
515
+ let a = Gt(i.maxTextCharacters), o = Ie(e, t);
516
+ for (let e = o.length - 1; e >= 0; e--) {
517
+ let i = o[e], s = Me(i.pointToPage, n);
518
+ if (!s || !Zt(i, n, s)) continue;
519
+ let c = $t(i, t, e, n, r, a);
520
+ if (c) return c;
521
+ }
522
+ return null;
523
+ }
524
+ function tn(e, t, n, r) {
525
+ return en(Qe(e, {
526
+ currentDate: r.currentDate,
527
+ defaultCurrentDateMs: r.defaultCurrentDateMs,
528
+ showTrackedChanges: r.showTrackedChanges
529
+ }, t).layout, t, n, Oe(e), r);
530
+ }
531
+ function nn(e, t) {
532
+ let n = Gt(t), r = e.text === void 0 ? void 0 : Ht(e.text, n), i = e.truncated || e.text !== void 0 && r.length < e.text.length;
533
+ return {
534
+ ...structuredClone(e),
535
+ ...r === void 0 ? {} : { text: r },
536
+ truncated: i,
537
+ truncationReasons: i ? ["text"] : [],
538
+ textCharacters: r?.length ?? 0,
539
+ maxTextCharacters: n
540
+ };
541
+ }
542
+ //#endregion
543
+ //#region packages/docx/src/revisions.ts
544
+ function z(e) {
545
+ let t = lt(e.id);
546
+ return t === void 0 ? void 0 : `${e.kind}\u0000${t}`;
547
+ }
548
+ function B(e) {
549
+ return Object.freeze({
550
+ ...e,
551
+ path: Object.freeze([...e.path])
552
+ });
553
+ }
554
+ function rn(e, t) {
555
+ return e !== void 0 && e.story === t.story && e.storyInstance === t.storyInstance && e.path.length === t.path.length && e.path.every((e, n) => e === t.path[n]);
556
+ }
557
+ function V(e, t) {
558
+ let n = 0, r = e.length;
559
+ for (; n < r;) {
560
+ let i = n + Math.floor((r - n) / 2);
561
+ e[i] < t ? n = i + 1 : r = i;
562
+ }
563
+ return n;
564
+ }
565
+ function an(e, t) {
566
+ let n = Array(e.length), r;
567
+ for (let i = e.length - 1; i >= 0; --i) {
568
+ n[i] = r;
569
+ let a = e[i], o = t.get(k(a.source))?.[0];
570
+ o !== void 0 && (r = Object.freeze({
571
+ source: B(a.source),
572
+ sourceRunIndex: o
573
+ }));
574
+ }
575
+ let i = Array(e.length), a;
576
+ for (let n = 0; n < e.length; n += 1) {
577
+ i[n] = a;
578
+ let r = e[n], o = t.get(k(r.source))?.at(-1);
579
+ o !== void 0 && (a = Object.freeze({
580
+ source: B(r.source),
581
+ sourceRunIndex: o
582
+ }));
583
+ }
584
+ return {
585
+ following: n,
586
+ preceding: i
587
+ };
588
+ }
589
+ function on(e, t, n, r, i, a) {
590
+ let o = r[e], s = i.get(k(o.source)) ?? [], c = s[V(s, n)], l = s[V(s, t) - 1], u = c ?? l;
591
+ return u === void 0 ? a.following[e] ?? a.preceding[e] : Object.freeze({
592
+ source: B(o.source),
593
+ sourceRunIndex: u
594
+ });
595
+ }
596
+ function sn(e, t, n = /* @__PURE__ */ new Map()) {
597
+ let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Set();
598
+ e.forEach((e, t) => {
599
+ let n = z(e);
600
+ n === void 0 || i.has(n) || (r.has(n) ? (r.delete(n), i.add(n)) : r.set(n, t));
601
+ });
602
+ let a = t.blocks.sources.flatMap((e) => {
603
+ if (e.story !== "body") return [];
604
+ let n = t.blocks.resolve(e);
605
+ return n.type === "paragraph" ? [{
606
+ source: e,
607
+ runs: n.runs
608
+ }] : [];
609
+ }), o = new Map([...n].map(([e, t]) => [e, Object.freeze([...t].sort((e, t) => e - t))])), s = an(a, o), c = [];
610
+ for (let [e, t] of a.entries()) {
611
+ let n = 0;
612
+ for (; n < t.runs.length;) {
613
+ let i = t.runs[n], l = i.revision?.kind ? z({
614
+ kind: i.revision.kind,
615
+ id: i.revision.id
616
+ }) : void 0, u = l === void 0 ? void 0 : r.get(l);
617
+ if (u === void 0) {
618
+ n += 1;
619
+ continue;
620
+ }
621
+ let d = n;
622
+ for (n += 1; n < t.runs.length;) {
623
+ let e = t.runs[n].revision;
624
+ if (!e?.kind || z({
625
+ kind: e.kind,
626
+ id: e.id
627
+ }) !== l) break;
628
+ n += 1;
629
+ }
630
+ let f = n, p = o.get(k(t.source)) ?? [], m = (p[V(p, d)] ?? f) < f ? void 0 : on(e, d, f, a, o, s);
631
+ c.push(Object.freeze({
632
+ revisionIndex: u,
633
+ source: B(t.source),
634
+ startRunIndex: d,
635
+ endRunIndex: f,
636
+ ...m === void 0 ? {} : { geometryFallback: m }
637
+ }));
638
+ }
639
+ }
640
+ return c;
641
+ }
642
+ function cn(e, t, n = /* @__PURE__ */ new Map(), r = {}) {
643
+ if ((e?.length ?? 0) === 0) return [];
644
+ let i = sn(e ?? [], t, n), a = r.completedSourceKeys;
645
+ return a === void 0 ? i : i.filter((e) => {
646
+ let t = n.get(k(e.source));
647
+ return t !== void 0 && [...t].some((t) => t >= e.startRunIndex && t < e.endRunIndex) || a.has(k(e.source));
648
+ });
649
+ }
650
+ function ln(e, t) {
651
+ let n = t.filter((t) => t.sourceRunIndex !== void 0 && rn(t.source, e.source) && t.sourceRunIndex >= e.startRunIndex && t.sourceRunIndex < e.endRunIndex);
652
+ if (n.length > 0) return n;
653
+ let r = e.geometryFallback;
654
+ return r === void 0 ? [] : t.filter((e) => e.sourceRunIndex === r.sourceRunIndex && rn(e.source, r.source));
655
+ }
656
+ //#endregion
657
+ //#region packages/docx/src/layout/progressive.ts
658
+ var un = 12;
659
+ async function dn(e, t, n, r = {}) {
660
+ let { onPreview: i, scheduler: a } = r;
661
+ return Be(Pe(e, t, n, i && e.sequence.length > un ? { onPages: (e, t) => {
662
+ i(Object.freeze({
663
+ layout: e,
664
+ exact: !1,
665
+ coveredEntries: t
666
+ }));
667
+ } } : void 0), a);
668
+ }
669
+ //#endregion
670
+ //#region packages/docx/src/document-layout-events.ts
671
+ var H = /* @__PURE__ */ new WeakMap();
672
+ function U(e, t) {
673
+ let n = Object.freeze({ ...t });
674
+ for (let t of [...H.get(e) ?? []]) try {
675
+ t.notify(n);
676
+ } catch (e) {
677
+ try {
678
+ t.report(e);
679
+ } catch {}
680
+ }
681
+ }
682
+ function fn(e, t, n, r) {
683
+ let i = H.get(e);
684
+ i || (i = /* @__PURE__ */ new Set(), H.set(e, i));
685
+ let a = Object.freeze({
686
+ notify: n,
687
+ report: r
688
+ });
689
+ i.add(a);
690
+ try {
691
+ n(Object.freeze({ ...t() }));
692
+ } catch (e) {
693
+ try {
694
+ r(e);
695
+ } catch {}
696
+ }
697
+ return () => {
698
+ i?.delete(a), i?.size === 0 && H.delete(e);
699
+ };
700
+ }
701
+ //#endregion
702
+ //#region packages/docx/src/document-layout-view.ts
703
+ var W = /* @__PURE__ */ new WeakMap(), pn = /* @__PURE__ */ new WeakMap(), mn = Symbol("docxLayoutViewRequester");
704
+ function G(e) {
705
+ let t = E(e), n = t.activeLayoutOptions;
706
+ return {
707
+ showTrackedChanges: n?.showTrackedChanges === !0,
708
+ currentDate: n?.currentDateMs ?? t.defaultCurrentDateMs
709
+ };
710
+ }
711
+ async function K(e, t, n) {
712
+ let r = E(e), i = Ae(t.currentDate, r.defaultCurrentDateMs, t.showTrackedChanges === !0), a = Object.freeze({
713
+ showTrackedChanges: i.showTrackedChanges === !0,
714
+ currentDate: i.currentDateMs
715
+ }), o = {
716
+ showTrackedChanges: a.showTrackedChanges,
717
+ currentDate: a.currentDate,
718
+ [mn]: n
719
+ };
720
+ await e.setLayoutView(o);
721
+ let s = G(e);
722
+ return s.currentDate === a.currentDate && s.showTrackedChanges === a.showTrackedChanges;
723
+ }
724
+ function hn(e, t) {
725
+ let n = Object.freeze({ ...G(e) }), r = (pn.get(e) ?? 0) + 1;
726
+ pn.set(e, r);
727
+ let i = Object.freeze({
728
+ view: n,
729
+ generation: r,
730
+ requester: t
731
+ });
732
+ for (let t of [...W.get(e) ?? []]) try {
733
+ t.notify(i);
734
+ } catch (e) {
735
+ try {
736
+ t.report(e);
737
+ } catch {}
738
+ }
739
+ }
740
+ function gn(e, t, n) {
741
+ let r = W.get(e);
742
+ r || (r = /* @__PURE__ */ new Set(), W.set(e, r));
743
+ let i = Object.freeze({
744
+ notify: t,
745
+ report: n
746
+ });
747
+ return r.add(i), () => {
748
+ r?.delete(i), r?.size === 0 && W.delete(e);
749
+ };
750
+ }
751
+ //#endregion
752
+ //#region packages/docx/src/document.ts
753
+ function _n(e, t) {
754
+ return e !== null && e.currentDateMs === t.currentDateMs && e.showTrackedChanges === !0 == (t.showTrackedChanges === !0);
755
+ }
756
+ function vn() {
757
+ let e, t;
758
+ return {
759
+ promise: new Promise((n, r) => {
760
+ e = n, t = r;
761
+ }),
762
+ resolve: e,
763
+ reject: t
764
+ };
765
+ }
766
+ var yn = Object.freeze([]), bn = Object.freeze([]), xn = Object.freeze({
767
+ comments: Object.freeze([]),
768
+ revisions: Object.freeze([])
769
+ });
770
+ function q(e, t) {
771
+ return He({
772
+ comments: e,
773
+ revisions: t
774
+ }, "DOCX review metadata");
775
+ }
776
+ var J = class e {
777
+ _metrics = null;
778
+ _cjkFallback = "jp";
779
+ _document = null;
780
+ _source = null;
781
+ _meta = null;
782
+ _review = xn;
783
+ _layoutLifecycle = new xe();
784
+ _layoutObservers = new we();
785
+ _layoutCompletion = null;
786
+ _layoutAbort = null;
787
+ _bookmarkPages = null;
788
+ _commentAnchorRanges = null;
789
+ _revisionAnchorRanges = null;
790
+ _reviewProjectionIndex = null;
791
+ _parseRequestId = null;
792
+ _progressive = null;
793
+ _parseWatchdog;
794
+ _parseWatchdogMs;
795
+ _layoutViewGeneration = 0;
796
+ _mode = "main";
797
+ _threeD;
798
+ _regionMap;
799
+ _chartEx;
800
+ _tiff;
801
+ _worker;
802
+ _bridge;
803
+ _rawParts = new ct({
804
+ maxEntries: 64,
805
+ maxBytes: n
806
+ });
807
+ _embeddedFontFaces = [];
808
+ _googleFontFaces = [];
809
+ _fetchImage = (e, t) => this.getImage(e, t);
810
+ constructor(e, t, n, r) {
811
+ this._worker = e, this._mode = t, ke(this, n), this._bridge = new he(this._worker, {
812
+ correlate: (e) => "protocol" in e && e.protocol === "ooxml-pull-v1" ? e.requestId : "id" in e ? e.id : void 0,
813
+ onUnsolicited: (e) => this._onWorkerLayoutPush(e),
814
+ toError: (e) => {
815
+ if (!("protocol" in e || e.type !== "error")) return Object.assign(a(e), {
816
+ ...e.reason === void 0 ? {} : { reason: e.reason },
817
+ ...e.outgoingColumnIndex === void 0 ? {} : { outgoingColumnIndex: e.outgoingColumnIndex },
818
+ ...e.outgoingColumnCount === void 0 ? {} : { outgoingColumnCount: e.outgoingColumnCount },
819
+ ...e.incomingColumnCount === void 0 ? {} : { incomingColumnCount: e.incomingColumnCount }
820
+ });
821
+ }
822
+ });
823
+ let i = new URL(r ?? It, location.href).href;
824
+ this._bridge.post({
825
+ type: "init",
826
+ wasmUrl: i
827
+ });
828
+ }
829
+ static async load(t, n = {}) {
830
+ let i = tt(n.cjkFallback), a = f(n), o = Date.now(), s = n.mode ?? "main", c = new r({
831
+ enabled: !0,
832
+ format: "docx",
833
+ mode: s,
834
+ policy: a.policy,
835
+ onMetrics: a.onResourceMetrics,
836
+ emitToConsole: a.debug
837
+ });
838
+ try {
839
+ if (s === "worker" && (typeof Worker > "u" || typeof OffscreenCanvas > "u")) throw Error("mode: 'worker' requires Worker and OffscreenCanvas support");
840
+ let r;
841
+ if (typeof t == "string") {
842
+ let e = await fetch(t);
843
+ if (!e.ok) throw Error(`Failed to fetch: ${e.status} ${e.statusText}`);
844
+ r = await e.arrayBuffer();
845
+ } else r = t;
846
+ r = g(await h(r, n.password)), c.setSourceBytes(r.byteLength), c.checkpoint("container ready");
847
+ let l = s === "worker" ? (await import("ooxml/render-worker-host-Di3LxLc0.js")).createRenderWorker() : new Ft(), u = s === "worker" ? ot(n) : void 0, d = s === "worker" && !!n.progressiveLayout, f;
848
+ try {
849
+ f = new e(l, s, o, n.wasmUrl), f._metrics = c, f._cjkFallback = i;
850
+ let t = E(f), p = Ae(n.currentDate, t.defaultCurrentDateMs, n.showTrackedChanges === !0);
851
+ t.activeLayoutOptions = p, await f._parse(r, a.policy, s === "worker" ? !!n.useGoogleFonts : !1, n.workerTimeoutMs, (e) => c.observeUsage(e), u, d ? {
852
+ onPartial: n.onLayoutPartial,
853
+ onComplete: n.onLayoutComplete,
854
+ onProgress: n.onLayoutProgress,
855
+ layoutOptions: p,
856
+ abort: new AbortController(),
857
+ firstPublication: vn(),
858
+ published: !1,
859
+ settled: !1
860
+ } : void 0), s === "worker" && f._mode === "main" && (c.setMode("main"), console.warn("[ooxml] mode: 'worker' fell back to main-thread rendering because this document requires DOM OpenType vertical glyph selection.")), n.math && f._mode === "worker" && !u?.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 && f._mode === "worker" && !u?.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."), f._threeD = f._mode === "worker" ? void 0 : n.threeD, n.regionMap && f._mode === "worker" && !u?.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."), f._regionMap = f._mode === "worker" ? void 0 : n.regionMap, n.chartEx && f._mode === "worker" && !u?.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."), f._chartEx = f._mode === "worker" ? void 0 : n.chartEx, n.tiff && f._mode === "worker" && !u?.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."), f._tiff = f._mode === "worker" ? void 0 : n.tiff, f._mode === "main" && n.useGoogleFonts && f._document && (f._googleFontFaces = await m(ze(f._document, i), Re));
861
+ let h;
862
+ if (f._mode === "main" && f._document?.embeddedFonts?.length) {
863
+ let e = f, t = await Rt(f._document, (t) => e.getFontBytes(t));
864
+ f._embeddedFontFaces = t.faces, h = t.metrics;
865
+ }
866
+ let g;
867
+ if (f._mode === "main" && n.math && f._document && qe(f._document) && (g = await Ye(f._document, n.math)), f._mode === "main" && f._document && f._source) {
868
+ let e = f, t = E(f);
869
+ t.services = We(f._source, {
870
+ fontMetrics: h,
871
+ measureResolvedFontMetrics: !0,
872
+ resolvedFontMetricCandidates: Je(f._document, f._source.fontFamilyCharsets),
873
+ useGoogleFonts: !!n.useGoogleFonts,
874
+ cjkFallback: i,
875
+ embeddedFaces: f._embeddedFontFaces,
876
+ googleFaces: f._googleFontFaces,
877
+ mathResources: g?.records,
878
+ mathDrawables: g?.drawables
879
+ });
880
+ let r = t.services, a = Fe(f._source, r, t.defaultCurrentDateMs), o = f._source.fatalParse === null, s = t.activeLayoutOptions;
881
+ if (!s) throw Error("Active layout view was not recorded at load");
882
+ let c = { onProgress: n.onLayoutProgress ? (t) => e._layoutObservers.notify("onLayoutProgress", n.onLayoutProgress, { committedUnits: t }) : void 0 };
883
+ if (o && n.progressiveLayout) {
884
+ let e = a.layoutVariants, t = f, i = new AbortController();
885
+ t._layoutAbort = i;
886
+ let o = vn(), l = null, u = !0;
887
+ t._layoutCompletion = dn(f._source.bodyLayoutInput, r, s, {
888
+ scheduler: {
889
+ ...c,
890
+ signal: i.signal
891
+ },
892
+ onPreview: (r) => {
893
+ if (!u) return;
894
+ let i = l === null, a = t._replaceMainLayoutPublication(e, s, l, r.layout);
895
+ if (a === null) {
896
+ u = !1;
897
+ return;
898
+ }
899
+ if (l = a, i) t._layoutLifecycle.begin(), U(t, {
900
+ pageCount: r.layout.pages.length,
901
+ exact: r.exact,
902
+ complete: !1
903
+ }), o.resolve();
904
+ else {
905
+ if (!t._isLayoutViewActive(s)) return;
906
+ U(t, {
907
+ pageCount: r.layout.pages.length,
908
+ exact: r.exact,
909
+ complete: !1
910
+ }), t._layoutObservers.notify("onLayoutPartial", n.onLayoutPartial, {
911
+ availableUnits: r.layout.pages.length,
912
+ exact: r.exact
913
+ });
914
+ }
915
+ }
916
+ }).then((r) => {
917
+ u && t._replaceMainLayoutPublication(e, s, l, r) === null && (u = !1), t._layoutLifecycle.succeed(), U(t, {
918
+ pageCount: t.pageCount,
919
+ exact: !0,
920
+ complete: !0
921
+ }), t._layoutObservers.notify("onLayoutComplete", n.onLayoutComplete), o.resolve();
922
+ }).catch((e) => {
923
+ if (l === null) {
924
+ o.reject(e);
925
+ return;
926
+ }
927
+ if (e instanceof Ve) {
928
+ t._layoutLifecycle.succeed();
929
+ return;
930
+ }
931
+ let r = t._layoutLifecycle.fail(e);
932
+ U(t, {
933
+ pageCount: t.pageCount,
934
+ exact: !1,
935
+ complete: !1,
936
+ error: r
937
+ }), t._layoutObservers.notify("onLayoutComplete", n.onLayoutComplete, r);
938
+ }), await o.promise;
939
+ } else if (o && (n.sliceLayout || n.onLayoutProgress)) {
940
+ let e = await Ge(f._source.bodyLayoutInput, r, s, c);
941
+ a.layoutVariants.prime(s, e);
942
+ } else a.layoutVariants.layoutFor(s);
943
+ }
944
+ return await f._resourceUsage(n.workerTimeoutMs ?? 1e3).then((e) => c.observeUsage(e), () => void 0), c.checkpoint("model and layout ready"), c.succeed({ pages: f.pageCount }), f;
945
+ } catch (e) {
946
+ let t = f;
947
+ throw p(l, t ? () => t.destroy() : void 0), e;
948
+ }
949
+ } catch (e) {
950
+ throw c.fail(e), e;
951
+ }
952
+ }
953
+ async _parse(e, t, n = !1, r, i, a, o) {
954
+ if (o) {
955
+ await this._parseProgressively(e, t, n, r, i, a, o);
956
+ return;
957
+ }
958
+ let s = await this._bridge.request((r) => this._mode === "worker" ? {
959
+ type: "parse",
960
+ id: r,
961
+ data: e,
962
+ resourcePolicy: t,
963
+ useGoogleFonts: n,
964
+ cjkFallback: this._cjkFallback,
965
+ defaultCurrentDateMs: E(this).defaultCurrentDateMs,
966
+ ...this._parseViewFields(),
967
+ renderers: a
968
+ } : {
969
+ type: "parse",
970
+ id: r,
971
+ data: e,
972
+ resourcePolicy: t
973
+ }, [e], { timeoutMs: r });
974
+ if ("protocol" in s) throw Error("DOCX parse open returned a pull-protocol response");
975
+ if (this._mode === "worker") if ("usage" in s && s.usage && i?.(s.usage), s.type === "mainThreadVerticalFallback") {
976
+ let e = await Ke(this._bridge.transport(Xe), s, {
977
+ timeoutMs: r,
978
+ onUsage: i
979
+ });
980
+ this._source = e.source, this._document = e.document, this._meta = null, this._mode = "main";
981
+ } else this._meta = s.meta;
982
+ else {
983
+ let e = s, t = await Ke(this._bridge.transport(Xe), e, {
984
+ timeoutMs: r,
985
+ onUsage: i
986
+ });
987
+ this._source = t.source, this._document = t.document;
988
+ }
989
+ this._review = q(this._meta?.comments ?? this._document?.comments ?? [], this._meta?.revisions ?? this._document?.revisions ?? []);
990
+ }
991
+ _onWorkerLayoutPush(e) {
992
+ if (v((e, t) => this._worker.postMessage(e, t), e) || !("forId" in e) || e.forId !== this._parseRequestId) return;
993
+ this._rearmParseWatchdog();
994
+ let t = this._progressive;
995
+ if (t?.settled) return;
996
+ if (e.type === "layoutProgress") {
997
+ this._layoutObservers.notify("onLayoutProgress", t?.onProgress, { committedUnits: e.committedPages });
998
+ return;
999
+ }
1000
+ if (e.type !== "layoutPartial" || !t) return;
1001
+ let n = !t.published || this._isLayoutViewActive(t.layoutOptions);
1002
+ if (n && this._applyLayoutPartial(e.partial), t.published) {
1003
+ if (!n) return;
1004
+ U(this, {
1005
+ pageCount: e.partial.pageCount,
1006
+ exact: e.partial.exact,
1007
+ complete: !1
1008
+ }), this._layoutObservers.notify("onLayoutPartial", t.onPartial, {
1009
+ availableUnits: e.partial.pageCount,
1010
+ exact: e.partial.exact
1011
+ });
1012
+ return;
1013
+ }
1014
+ t.published = !0, this._layoutLifecycle.begin(), U(this, {
1015
+ pageCount: e.partial.pageCount,
1016
+ exact: e.partial.exact,
1017
+ complete: !1
1018
+ }), t.firstPublication.resolve();
1019
+ }
1020
+ _applyLayoutPartial(e) {
1021
+ let t = e.review ?? this._meta;
1022
+ this._meta = {
1023
+ pageCount: e.pageCount,
1024
+ pageSizes: e.pageSizes,
1025
+ bookmarkPages: e.bookmarkPages,
1026
+ revisions: t?.revisions ?? [],
1027
+ comments: t?.comments ?? [],
1028
+ footnotes: t?.footnotes ?? [],
1029
+ endnotes: t?.endnotes ?? [],
1030
+ commentAnchorRanges: e.commentAnchorRanges,
1031
+ revisionAnchorRanges: e.revisionAnchorRanges
1032
+ }, e.review && (this._review = q(e.review.comments, e.review.revisions)), this._invalidateLayoutDerivedCaches();
1033
+ }
1034
+ _onAuthoritativeMeta(e) {
1035
+ this._clearParseWatchdog();
1036
+ let t = this._progressive;
1037
+ if (!t?.settled) {
1038
+ if (!t || this._isLayoutViewActive(t.layoutOptions) || !this._meta) this._meta = e;
1039
+ else {
1040
+ let t = this._meta;
1041
+ this._meta = {
1042
+ ...e,
1043
+ pageCount: t.pageCount,
1044
+ pageSizes: t.pageSizes,
1045
+ bookmarkPages: t.bookmarkPages,
1046
+ commentAnchorRanges: t.commentAnchorRanges,
1047
+ revisionAnchorRanges: t.revisionAnchorRanges
1048
+ };
1049
+ }
1050
+ this._invalidateLayoutDerivedCaches(), this._review = q(e.comments, e.revisions), t && (t.settled = !0, this._layoutLifecycle.succeed(), U(this, {
1051
+ pageCount: this.pageCount,
1052
+ exact: !0,
1053
+ complete: !0
1054
+ }), t.firstPublication.resolve(), this._layoutObservers.notify("onLayoutComplete", t.onComplete));
1055
+ }
1056
+ }
1057
+ _invalidateLayoutDerivedCaches() {
1058
+ this._bookmarkPages = null, this._commentAnchorRanges = null, this._revisionAnchorRanges = null, this._reviewProjectionIndex = null;
1059
+ }
1060
+ _replaceMainLayoutPublication(e, t, n, r) {
1061
+ let i = e.replaceIfCurrent(t, n, r);
1062
+ return i !== null && this._isLayoutViewActive(t) && this._invalidateLayoutDerivedCaches(), i;
1063
+ }
1064
+ _isLayoutViewActive(e) {
1065
+ return _n(E(this).activeLayoutOptions, e);
1066
+ }
1067
+ _rearmParseWatchdog() {
1068
+ this._parseWatchdogMs !== void 0 && (clearTimeout(this._parseWatchdog), this._parseWatchdog = setTimeout(() => this._onParseWentSilent(), this._parseWatchdogMs));
1069
+ }
1070
+ _clearParseWatchdog() {
1071
+ clearTimeout(this._parseWatchdog), this._parseWatchdog = void 0, this._parseWatchdogMs = void 0;
1072
+ }
1073
+ _onParseWentSilent() {
1074
+ let e = this._progressive, t = this._parseWatchdogMs;
1075
+ this._clearParseWatchdog();
1076
+ let n = /* @__PURE__ */ Error(`worker layout produced no progress for ${t}ms`);
1077
+ e && this._failWorkerProgressive(e, n), this._bridge.terminate();
1078
+ }
1079
+ _failWorkerProgressive(e, t) {
1080
+ if (e.settled) return;
1081
+ if (e.settled = !0, this._clearParseWatchdog(), !e.published) {
1082
+ e.firstPublication.reject(t);
1083
+ return;
1084
+ }
1085
+ let n = this._layoutLifecycle.fail(t);
1086
+ U(this, {
1087
+ pageCount: this.pageCount,
1088
+ exact: !1,
1089
+ complete: !1,
1090
+ error: n
1091
+ }), this._layoutObservers.notify("onLayoutComplete", e.onComplete, n);
1092
+ }
1093
+ _parseViewFields() {
1094
+ let e = E(this), t = e.activeLayoutOptions;
1095
+ return t ? {
1096
+ ...t.currentDateMs === e.defaultCurrentDateMs ? {} : { currentDateMs: t.currentDateMs },
1097
+ ...t.showTrackedChanges === !0 ? { showTrackedChanges: !0 } : {}
1098
+ } : {};
1099
+ }
1100
+ async _parseProgressively(e, t, n, r, i, a, o) {
1101
+ this._progressive = o, this._layoutAbort = o.abort, this._parseWatchdogMs = r, this._layoutCompletion = this._bridge.request((r) => (this._parseRequestId = r, {
1102
+ type: "parse",
1103
+ id: r,
1104
+ data: e,
1105
+ resourcePolicy: t,
1106
+ useGoogleFonts: n,
1107
+ cjkFallback: this._cjkFallback,
1108
+ defaultCurrentDateMs: E(this).defaultCurrentDateMs,
1109
+ ...this._parseViewFields(),
1110
+ renderers: a,
1111
+ progressiveLayout: !0
1112
+ }), [e], { timeoutMs: !1 }).then(async (e) => {
1113
+ if (this._parseRequestId = null, "protocol" in e) throw Error("DOCX parse open returned a pull-protocol response");
1114
+ if ("usage" in e && e.usage && i?.(e.usage), e.type === "mainThreadVerticalFallback") {
1115
+ this._clearParseWatchdog(), o.settled = !0, this._progressive = null, this._layoutAbort = null;
1116
+ let t = await Ke(this._bridge.transport(Xe), e, {
1117
+ timeoutMs: r,
1118
+ onUsage: i
1119
+ });
1120
+ this._source = t.source, this._document = t.document, this._meta = null, this._mode = "main", this._review = q(t.document.comments ?? [], t.document.revisions ?? []), o.firstPublication.resolve();
1121
+ return;
1122
+ }
1123
+ this._onAuthoritativeMeta(e.meta);
1124
+ }, (e) => {
1125
+ if (this._parseRequestId = null, this._clearParseWatchdog(), !o.settled) {
1126
+ if (o.abort.signal.aborted) {
1127
+ o.settled = !0, this._layoutLifecycle.succeed(), o.firstPublication.resolve();
1128
+ return;
1129
+ }
1130
+ this._failWorkerProgressive(o, e);
1131
+ }
1132
+ }), this._rearmParseWatchdog(), await o.firstPublication.promise;
1133
+ }
1134
+ destroy() {
1135
+ this._layoutAbort?.abort(), this._layoutAbort = null, this._clearParseWatchdog(), this._parseRequestId = null, this._progressive = null, this._layoutViewGeneration++, this._bridge.terminate(), this._document = null, this._source = null, this._meta = null, this._review = xn, E(this).services = null, this._bookmarkPages = null, this._commentAnchorRanges = null, this._revisionAnchorRanges = null, this._reviewProjectionIndex = null, this._rawParts.clear(), this._embeddedFontFaces.length > 0 && (be(this._embeddedFontFaces), this._embeddedFontFaces = []), this._googleFontFaces.length > 0 && (_(this._googleFontFaces), this._googleFontFaces = []), s(this._fetchImage), l(this._fetchImage);
1136
+ }
1137
+ async getImage(e, t) {
1138
+ return this._rawParts.get(e, t, () => this._bridge.request((t) => ({
1139
+ type: "extractImage",
1140
+ id: t,
1141
+ path: e
1142
+ })).then((e) => {
1143
+ let n = e.bytes;
1144
+ return new Blob([n], { type: t });
1145
+ }));
1146
+ }
1147
+ async getFontBytes(e) {
1148
+ let t = (await this._bridge.request((t) => ({
1149
+ type: "extractImage",
1150
+ id: t,
1151
+ path: e
1152
+ }))).bytes;
1153
+ return new Uint8Array(t);
1154
+ }
1155
+ async _resourceUsage(e) {
1156
+ return (await this._bridge.request((e) => ({
1157
+ type: "resourceUsage",
1158
+ id: e
1159
+ }), void 0, { timeoutMs: e })).usage;
1160
+ }
1161
+ async getResourceMetrics() {
1162
+ let e = this._metrics;
1163
+ if (!e) throw Error("Document not loaded");
1164
+ return i(e, (e) => this._resourceUsage(e));
1165
+ }
1166
+ async toMarkdown() {
1167
+ return (await this._bridge.request((e) => ({
1168
+ type: "toMarkdown",
1169
+ id: e
1170
+ }))).markdown;
1171
+ }
1172
+ get pageCount() {
1173
+ return this._meta ? this._meta.pageCount : this._document ? this._getLayout()?.pages.length ?? 0 : 0;
1174
+ }
1175
+ get layoutComplete() {
1176
+ return this._layoutLifecycle.complete;
1177
+ }
1178
+ async waitUntilLayoutComplete() {
1179
+ this._layoutCompletion && await this._layoutCompletion, this._layoutLifecycle.throwIfFailed();
1180
+ }
1181
+ get mode() {
1182
+ return this._mode;
1183
+ }
1184
+ get document() {
1185
+ if (this._meta && !this._document) throw Error("the raw document model stays in the worker in mode: 'worker'; use mode: 'main' if you need direct model access");
1186
+ if (!this._document) throw Error("Document not loaded");
1187
+ return this._document;
1188
+ }
1189
+ get comments() {
1190
+ return this._reviewSnapshot().comments;
1191
+ }
1192
+ get revisions() {
1193
+ return this._reviewSnapshot().revisions;
1194
+ }
1195
+ commentAnchorRanges() {
1196
+ if (this._meta) return this._meta.commentAnchorRanges ?? yn;
1197
+ if (!this._document || !this._source) return [];
1198
+ let e = this._reviewSnapshot().comments;
1199
+ if (e.length === 0) return yn;
1200
+ let t = E(this), n = t.services;
1201
+ if (!n) throw Error("Document layout services are not initialized");
1202
+ let r = Ue(n);
1203
+ if (!r) throw Error("Document layout variant store is not initialized");
1204
+ let i = t.activeLayoutOptions, a = i ? r.layoutFor(i) : r.defaultLayout;
1205
+ this._reviewProjectionIndex ??= $e(a);
1206
+ let o = this._layoutLifecycle?.complete ?? !0 ? void 0 : { completedSourceKeys: this._reviewProjectionIndex.completedSourceKeys };
1207
+ return this._commentAnchorRanges ??= dt(e, this._source, this._reviewProjectionIndex.renderedRunIndex, o), this._commentAnchorRanges;
1208
+ }
1209
+ revisionAnchorRanges() {
1210
+ if (this._meta) return this._meta.revisionAnchorRanges ?? bn;
1211
+ if (!this._document || !this._source) return [];
1212
+ let e = this._reviewSnapshot().revisions;
1213
+ if (e.length === 0) return bn;
1214
+ let t = E(this), n = t.services;
1215
+ if (!n) throw Error("Document layout services are not initialized");
1216
+ let r = Ue(n);
1217
+ if (!r) throw Error("Document layout variant store is not initialized");
1218
+ let i = t.activeLayoutOptions, a = i ? r.layoutFor(i) : r.defaultLayout;
1219
+ this._reviewProjectionIndex ??= $e(a);
1220
+ let o = this._layoutLifecycle?.complete ?? !0 ? void 0 : { completedSourceKeys: this._reviewProjectionIndex.completedSourceKeys };
1221
+ return this._revisionAnchorRanges ??= cn(e, this._source, this._reviewProjectionIndex.renderedRunIndex, o), this._revisionAnchorRanges;
1222
+ }
1223
+ _reviewSnapshot() {
1224
+ return this._review ||= q(this._meta?.comments ?? this._document?.comments ?? [], this._meta?.revisions ?? this._document?.revisions ?? []), this._review;
1225
+ }
1226
+ get footnotes() {
1227
+ return this._meta?.footnotes ?? this._document?.footnotes ?? [];
1228
+ }
1229
+ get endnotes() {
1230
+ return this._meta?.endnotes ?? this._document?.endnotes ?? [];
1231
+ }
1232
+ _getLayout() {
1233
+ if (!this._document) return null;
1234
+ let e = E(this), t = e.services;
1235
+ if (!t) throw Error("Document layout services are not initialized");
1236
+ let n = Ue(t);
1237
+ if (!n) throw Error("Document layout variant store is not initialized");
1238
+ let r = e.activeLayoutOptions;
1239
+ return r ? n.layoutFor(r) : n.defaultLayout;
1240
+ }
1241
+ async setLayoutView(e = {}) {
1242
+ let t = e[mn], n = E(this), r = Ae(e.currentDate, n.defaultCurrentDateMs, e.showTrackedChanges === !0), i = ++this._layoutViewGeneration, a = n.activeLayoutOptions;
1243
+ if (!_n(a, r)) {
1244
+ if (this._mode === "worker" && this._meta) {
1245
+ let e = await this._bridge.request((e) => ({
1246
+ type: "selectLayoutView",
1247
+ id: e,
1248
+ currentDateMs: r.currentDateMs,
1249
+ showTrackedChanges: r.showTrackedChanges === !0
1250
+ }));
1251
+ if (i !== this._layoutViewGeneration) return;
1252
+ let a = e;
1253
+ n.activeLayoutOptions = r, this._meta = {
1254
+ ...this._meta,
1255
+ ...a.meta
1256
+ }, this._invalidateLayoutDerivedCaches(), hn(this, t);
1257
+ return;
1258
+ }
1259
+ n.activeLayoutOptions = r, this._invalidateLayoutDerivedCaches(), hn(this, t);
1260
+ }
1261
+ }
1262
+ _getBookmarkPages() {
1263
+ if (this._bookmarkPages) return this._bookmarkPages;
1264
+ if (this._meta) return this._bookmarkPages = new Map(this._meta.bookmarkPages), this._bookmarkPages;
1265
+ let e = this._getLayout();
1266
+ return e ? (this._bookmarkPages = Lt(e), this._bookmarkPages) : null;
1267
+ }
1268
+ getBookmarkPage(e) {
1269
+ return this._getBookmarkPages()?.get(e);
1270
+ }
1271
+ pageSize(e) {
1272
+ if (this._meta) {
1273
+ let t = this._meta.pageSizes, n = t[Math.max(0, Math.min(e, t.length - 1))];
1274
+ return n ? {
1275
+ widthPt: n.widthPt,
1276
+ heightPt: n.heightPt
1277
+ } : {
1278
+ widthPt: 0,
1279
+ heightPt: 0
1280
+ };
1281
+ }
1282
+ if (!this._document) return {
1283
+ widthPt: 0,
1284
+ heightPt: 0
1285
+ };
1286
+ let t = this._getLayout();
1287
+ if (!t || t.pages.length === 0) return {
1288
+ widthPt: 0,
1289
+ heightPt: 0
1290
+ };
1291
+ let n = Math.max(0, Math.min(e, t.pages.length - 1)), r = t.pages[n].geometry;
1292
+ return {
1293
+ widthPt: r.widthPt,
1294
+ heightPt: r.heightPt
1295
+ };
1296
+ }
1297
+ _withActiveView(e) {
1298
+ let t = E(this).activeLayoutOptions;
1299
+ if (!t) return e;
1300
+ let n = { ...e };
1301
+ return e.currentDate === void 0 && (n.currentDate = t.currentDateMs), e.showTrackedChanges === void 0 && t.showTrackedChanges === !0 && (n.showTrackedChanges = !0), n;
1302
+ }
1303
+ renderPage(e, t, n = {}) {
1304
+ if (this._mode === "worker") throw Error("renderPage(canvas) is unavailable in mode: 'worker'; use renderPageToBitmap() and paint it via an ImageBitmapRenderingContext");
1305
+ if (!this._source) throw Error("Document not loaded");
1306
+ return Le(this._source, e, t, {
1307
+ ...this._withActiveView(n),
1308
+ fetchImage: this._fetchImage,
1309
+ layoutServices: E(this).services ?? void 0,
1310
+ defaultCurrentDateMs: E(this).defaultCurrentDateMs,
1311
+ threeD: this._threeD,
1312
+ regionMap: this._regionMap,
1313
+ chartEx: this._chartEx,
1314
+ tiff: this._tiff
1315
+ });
1316
+ }
1317
+ async renderPageToBitmap(e, n = {}) {
1318
+ let { onTextRun: r, ...i } = n, a = {
1319
+ ...this._withActiveView(i),
1320
+ dpr: i.dpr ?? t()
1321
+ };
1322
+ if (this._mode === "worker") {
1323
+ let t = await this._bridge.request((t) => ({
1324
+ type: "renderPage",
1325
+ id: t,
1326
+ pageIndex: e,
1327
+ opts: a
1328
+ }));
1329
+ try {
1330
+ if (r) for (let e of t.runs) r(e);
1331
+ } catch (e) {
1332
+ throw o(t.bitmap), e;
1333
+ }
1334
+ return t.bitmap;
1335
+ }
1336
+ let s = new OffscreenCanvas(1, 1);
1337
+ return await this.renderPage(s, e, {
1338
+ ...a,
1339
+ onTextRun: r
1340
+ }), s.transferToImageBitmap();
1341
+ }
1342
+ async collectPageRuns(e, t = {}) {
1343
+ let n = { ...this._withActiveView(t) };
1344
+ if (this._mode === "worker") return (await this._bridge.request((t) => ({
1345
+ type: "collectRuns",
1346
+ id: t,
1347
+ pageIndex: e,
1348
+ opts: n
1349
+ }))).runs;
1350
+ let r = E(this), i = r.services;
1351
+ if (!i) throw Error("Document layout services are not initialized");
1352
+ return et(i, e, {
1353
+ currentDate: n.currentDate,
1354
+ defaultCurrentDateMs: r.defaultCurrentDateMs,
1355
+ width: n.width,
1356
+ showTrackedChanges: n.showTrackedChanges
1357
+ });
1358
+ }
1359
+ async getCommentThreads(e, t = {}) {
1360
+ let { includeResolved: n, ...r } = t, i = await this.collectPageRuns(e, r);
1361
+ return ut(this.comments, this.commentAnchorRanges(), i, { includeResolved: n });
1362
+ }
1363
+ async getElementContextAt(e, t, n = {}) {
1364
+ let r = this._withActiveView(n);
1365
+ if (this._mode === "worker") return (await this._bridge.request((n) => ({
1366
+ type: "hitTestElement",
1367
+ id: n,
1368
+ pageIndex: e,
1369
+ point: t,
1370
+ opts: r
1371
+ }))).context;
1372
+ let i = E(this), a = i.services;
1373
+ if (!a) throw Error("Document layout services are not initialized");
1374
+ return tn(a, e, t, {
1375
+ ...r,
1376
+ defaultCurrentDateMs: i.defaultCurrentDateMs
1377
+ });
1378
+ }
1379
+ };
1380
+ //#endregion
1381
+ //#region packages/docx/src/tate-chu-yoko-overlay.ts
1382
+ function Sn(e, t) {
1383
+ if (!e.eastAsianVert) return 1;
1384
+ let n = t(e.text);
1385
+ return !(n > 0) || e.w >= n ? 1 : e.w / n;
1386
+ }
1387
+ //#endregion
1388
+ //#region packages/docx/src/text-layer.ts
1389
+ function Y(e, t, n) {
1390
+ 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);
1391
+ }
1392
+ function X(e, t, n, r, i, a, o) {
1393
+ e.innerHTML = "", Y(e, "ooxmlSelectionSurface", "docx"), Y(e, "pageIndex", o === void 0 ? void 0 : String(o));
1394
+ let s = e.ownerDocument ?? document;
1395
+ for (let [o, c] of t.entries()) {
1396
+ let t = s.createElement("span");
1397
+ Y(t, "ooxmlSelectionRun", "docx"), Y(t, "runIndex", String(o)), c.paragraphId !== void 0 && Y(t, "paragraphId", c.paragraphId), c.source !== void 0 && (Y(t, "sourceStory", c.source.story), Y(t, "sourceStoryInstance", c.source.storyInstance), Y(t, "sourcePath", JSON.stringify(c.source.path))), t.textContent = c.text;
1398
+ let l = c.transform ?? "";
1399
+ if (a && c.eastAsianVert) {
1400
+ let e = Sn(c, a(c.font));
1401
+ e !== 1 && (l = `${l ? `${l} ` : ""}scaleX(${e})`);
1402
+ }
1403
+ let u = l ? `transform:${l};transform-origin:top left;` : "", d = i ? c.hyperlink : void 0, f = d ? "pointer" : "text", p = c.letterSpacingPx === void 0 ? "0" : `${c.letterSpacingPx}px`;
1404
+ t.style.cssText = `position:absolute;left:${O(c.x, n)};top:${O(c.y, r)};font:${c.font};line-height:${c.h}px;letter-spacing:${p};` + u + `white-space:pre;color:transparent;cursor:${f};pointer-events:all;`, d && i && (t.title = d.kind === "external" ? d.url : d.ref, t.addEventListener("click", (e) => {
1405
+ e.preventDefault(), i(d);
1406
+ })), e.appendChild(t);
1407
+ }
1408
+ }
1409
+ function Z(e, t, n, r, i, a, o = {}) {
1410
+ e.innerHTML = "";
1411
+ let s = o.match ?? "rgba(255, 214, 0, 0.42)", c = o.active ?? "rgba(255, 140, 0, 0.55)";
1412
+ for (let o of n) {
1413
+ let n = o.active ? c : s;
1414
+ for (let s of o.slices) {
1415
+ let o = t[s.runIndex];
1416
+ if (!o) continue;
1417
+ let c = a(o.font), l = st(o.text, s.start, s.end, c), u = o.letterSpacingPx ?? 0, d = Math.max(0, Math.min(s.start, o.text.length)), f = Math.max(d, Math.min(s.end, o.text.length)), p = [...o.text.slice(0, d)].length, m = [...o.text.slice(d, f)].length, h = l.x + p * u, g = l.width + Math.max(0, m - 1) * u, _ = Sn(o, c), v = h * _, ee = g * _;
1418
+ if (ee <= 0) continue;
1419
+ let y = document.createElement("div"), b = o.transform ? `transform:${o.transform};transform-origin:top left;` : "";
1420
+ y.style.cssText = `position:absolute;left:${O(o.x + v, r)};top:${O(o.y, i)};width:${O(ee, r)};height:${O(o.h, i)};` + b + `background:${n};pointer-events:none;`, e.appendChild(y);
1421
+ }
1422
+ }
1423
+ }
1424
+ //#endregion
1425
+ //#region packages/docx/src/find.ts
1426
+ var Cn = class {
1427
+ _pageRuns = /* @__PURE__ */ new Map();
1428
+ _matches = [];
1429
+ _active = -1;
1430
+ _generation = 0;
1431
+ _runsRevision = 0;
1432
+ constructor(e, t) {
1433
+ this._pageCount = e, this._collectPageRuns = t;
1434
+ }
1435
+ invalidate() {
1436
+ this._generation++, this._runsRevision++, this._pageRuns.clear(), this._matches = [], this._active = -1;
1437
+ }
1438
+ pageRuns(e) {
1439
+ return this._pageRuns.get(e);
1440
+ }
1441
+ setPageRuns(e, t) {
1442
+ this._runsRevision++, this._pageRuns.set(e, t);
1443
+ }
1444
+ _matchAt(e) {
1445
+ return this._matches[e];
1446
+ }
1447
+ pageHighlights(e) {
1448
+ let t = [];
1449
+ for (let n = 0; n < this._matches.length; n++) {
1450
+ let r = this._matches[n];
1451
+ r.page === e && t.push({
1452
+ slices: r.slices,
1453
+ active: n === this._active
1454
+ });
1455
+ }
1456
+ return t;
1457
+ }
1458
+ activePage() {
1459
+ let e = this._matchAt(this._active);
1460
+ return e ? e.page : null;
1461
+ }
1462
+ matches() {
1463
+ return this._matches.map((e, t) => ({
1464
+ matchIndex: t,
1465
+ text: e.text,
1466
+ location: { page: e.page }
1467
+ }));
1468
+ }
1469
+ async find(e, t = {}) {
1470
+ let n = ++this._generation;
1471
+ if (e.length === 0) return this._runsRevision++, this._pageRuns.clear(), this._matches = [], this._active = -1, [];
1472
+ let r = this._runsRevision, i = new Map(this._pageRuns), a = this._pageCount();
1473
+ for (let e = 0; e < a; e++) {
1474
+ let t = i.get(e);
1475
+ if (!t) {
1476
+ try {
1477
+ t = await this._collectPageRuns(e);
1478
+ } catch (e) {
1479
+ if (n !== this._generation) return [];
1480
+ throw e;
1481
+ }
1482
+ if (n !== this._generation) return [];
1483
+ i.set(e, t);
1484
+ }
1485
+ }
1486
+ if (n !== this._generation) return [];
1487
+ let o = r === this._runsRevision ? i : new Map([...i, ...this._pageRuns]), s = [];
1488
+ for (let n = 0; n < a; n++) {
1489
+ let r = o.get(n) ?? [], i = oe(r);
1490
+ for (let a of ae(i, e, t)) {
1491
+ let e = a.slices.map((e) => r[e.runIndex].text.slice(e.start, e.end)).join("");
1492
+ s.push({
1493
+ page: n,
1494
+ text: e,
1495
+ slices: a.slices
1496
+ });
1497
+ }
1498
+ }
1499
+ return this._runsRevision++, this._pageRuns = o, this._matches = s, this._active = -1, this.matches();
1500
+ }
1501
+ next() {
1502
+ return this._active = re(this._active, this._matches.length), this._activePublic();
1503
+ }
1504
+ prev() {
1505
+ return this._active = le(this._active, this._matches.length), this._activePublic();
1506
+ }
1507
+ _activePublic() {
1508
+ let e = this._matchAt(this._active);
1509
+ return e ? {
1510
+ matchIndex: this._active,
1511
+ text: e.text,
1512
+ location: { page: e.page }
1513
+ } : null;
1514
+ }
1515
+ };
1516
+ //#endregion
1517
+ //#region packages/docx/src/selection-context.ts
1518
+ function wn(e, t, n, r, i = {}) {
1519
+ let a = e.find((e) => e.id === n && e.parentId === void 0);
1520
+ if (!a) return null;
1521
+ let o = new Map(e.map((e) => [e.id, e])), s = e.filter((e) => {
1522
+ if (e.parentId === void 0) return !1;
1523
+ let t = e, n = /* @__PURE__ */ new Set();
1524
+ for (; t.parentId !== void 0 && !n.has(t.id);) {
1525
+ n.add(t.id);
1526
+ let e = o.get(t.parentId);
1527
+ if (!e) return !1;
1528
+ if (e.id === a.id) return !0;
1529
+ t = e;
1530
+ }
1531
+ return !1;
1532
+ }), c = Ce({
1533
+ id: a.id,
1534
+ author: a.author,
1535
+ date: a.date,
1536
+ text: a.paragraphs?.join("\n") ?? a.text,
1537
+ status: a.resolved ? "resolved" : "active"
1538
+ }, s.map((e) => ({
1539
+ id: e.id,
1540
+ author: e.author,
1541
+ date: e.date,
1542
+ text: e.paragraphs?.join("\n") ?? e.text,
1543
+ status: e.resolved ? "resolved" : "active"
1544
+ })), i.maxTextCharacters), l = t.find((e) => e.commentId === n)?.source;
1545
+ return Object.freeze({
1546
+ format: "docx",
1547
+ kind: "comment",
1548
+ pageIndex: r,
1549
+ commentId: n,
1550
+ ...l ? { source: Object.freeze({
1551
+ ...l,
1552
+ path: Object.freeze([...l.path])
1553
+ }) } : {},
1554
+ thread: c.thread,
1555
+ truncated: c.truncated,
1556
+ truncationReasons: c.truncated ? ["text"] : [],
1557
+ textCharacters: c.textCharacters,
1558
+ maxTextCharacters: c.maxTextCharacters
1559
+ });
1560
+ }
1561
+ function Tn(e) {
1562
+ if (e === void 0 || !/^\d+$/.test(e)) return null;
1563
+ let t = Number(e);
1564
+ return Number.isSafeInteger(t) ? t : null;
1565
+ }
1566
+ function En(e) {
1567
+ for (let t = e; t; t = t.parentElement) {
1568
+ let e = Tn(t.dataset.pageIndex);
1569
+ if (e !== null) return e;
1570
+ }
1571
+ return null;
1572
+ }
1573
+ var Dn = new Set([
1574
+ "body",
1575
+ "header",
1576
+ "footer",
1577
+ "footnote",
1578
+ "endnote",
1579
+ "textbox"
1580
+ ]);
1581
+ function On(e) {
1582
+ let t = e.dataset.sourceStory, n = e.dataset.sourceStoryInstance, r = e.dataset.sourcePath;
1583
+ if (!t || !Dn.has(t) || !n || !r) return null;
1584
+ try {
1585
+ let e = JSON.parse(r);
1586
+ return !Array.isArray(e) || e.length === 0 || e.length > 32 || !e.every((e) => Number.isSafeInteger(e) && e >= 0) ? null : {
1587
+ story: t,
1588
+ storyInstance: n,
1589
+ path: [...e]
1590
+ };
1591
+ } catch {
1592
+ return null;
1593
+ }
1594
+ }
1595
+ function Q(e, t, n = {}) {
1596
+ let r = de(e, t, (e) => {
1597
+ let t = En(e), n = Tn(e.dataset.runIndex);
1598
+ return t === null || n === null ? null : {
1599
+ pageIndex: t,
1600
+ runIndex: n,
1601
+ ...e.dataset.paragraphId === void 0 ? {} : { paragraphId: e.dataset.paragraphId },
1602
+ ...On(e) === null ? {} : { source: On(e) }
1603
+ };
1604
+ }, {
1605
+ maxChars: n.maxTextCharacters,
1606
+ maxLocators: n.maxRunLocators
1607
+ });
1608
+ if (!r) return null;
1609
+ let i = [...r.locators].sort((e, t) => e.pageIndex - t.pageIndex || e.runIndex - t.runIndex);
1610
+ return {
1611
+ format: "docx",
1612
+ kind: "text",
1613
+ text: r.text,
1614
+ pageIndexes: [...new Set(i.map((e) => e.pageIndex))],
1615
+ paragraphIds: [...new Set(i.flatMap((e) => e.paragraphId ? [e.paragraphId] : []))],
1616
+ runs: i,
1617
+ truncated: r.truncated,
1618
+ truncationReasons: r.truncationReasons,
1619
+ textCharacters: r.textCharacters,
1620
+ maxTextCharacters: r.maxTextCharacters,
1621
+ maxRunLocators: r.maxLocators
1622
+ };
1623
+ }
1624
+ //#endregion
1625
+ //#region packages/docx/src/focused-view-runtime.ts
1626
+ function $(e, t, n, r, i) {
1627
+ return r === "worker" ? e.renderPageToBitmap(n, i) : e.renderPage(t, n, i);
1628
+ }
1629
+ //#endregion
1630
+ //#region packages/docx/src/viewer.ts
1631
+ var kn = Symbol("DocxViewer.borrowedDocument"), An = class e {
1632
+ _documentOwner;
1633
+ get _doc() {
1634
+ return this._documentOwner.current;
1635
+ }
1636
+ _borrowed;
1637
+ _hostWindow;
1638
+ _currentPage = 0;
1639
+ _scale = null;
1640
+ _canvas;
1641
+ _wrapper;
1642
+ _canvasMount;
1643
+ _textLayer = null;
1644
+ _highlightLayer = null;
1645
+ _elementLayer = null;
1646
+ _find;
1647
+ _findRequestGeneration = 0;
1648
+ _measureCtx = null;
1649
+ _opts;
1650
+ _mode;
1651
+ _renderDispatcher;
1652
+ _errorRouter;
1653
+ _destroyed = !1;
1654
+ _selectionChangeListener = null;
1655
+ _selectionContextKey = "null";
1656
+ _elementContext = null;
1657
+ _elementHitGeneration = 0;
1658
+ _layoutViewGeneration = 0;
1659
+ _layoutViewPublicationGeneration = 0;
1660
+ _navigationGeneration = 0;
1661
+ _layoutUnsubscribe = null;
1662
+ _internalHyperlinkGeneration = 0;
1663
+ _layoutWaiters = /* @__PURE__ */ new Set();
1664
+ _layoutFailed = !1;
1665
+ _loadingLayer;
1666
+ _elementClickListener = null;
1667
+ _contextMenuListener = null;
1668
+ static fromDocument(t, n, r = {}) {
1669
+ let i = G(n);
1670
+ return new e(t, {
1671
+ ...r,
1672
+ currentDate: i.currentDate,
1673
+ showTrackedChanges: i.showTrackedChanges,
1674
+ [kn]: n
1675
+ });
1676
+ }
1677
+ constructor(e, t = {}) {
1678
+ this._canvas = e, this._opts = t;
1679
+ let n = t[kn];
1680
+ this._borrowed = n !== void 0, this._mode = C("DocxViewer", t.mode, n), this._documentOwner = new b("DocxViewer", n ?? null, !1);
1681
+ let r = e.ownerDocument?.defaultView ?? (typeof window < "u" ? window : null);
1682
+ if (!r) throw Error("DocxViewer requires a canvas with an active Window");
1683
+ this._hostWindow = r, this._canvasMount = new fe(e, {
1684
+ wrapperCssText: "position:relative;display:inline-block;vertical-align:top;",
1685
+ forceDisplayBlock: !0
1686
+ }), this._wrapper = this._canvasMount.wrapper, this._renderDispatcher = new S(e, this._mode === "worker"), this._errorRouter = new ue("DocxViewer", t.onError);
1687
+ let i = new se(this._wrapper, t.enableTextSelection === !0, t.enableElementSelection === !0);
1688
+ this._textLayer = i.textLayer, this._highlightLayer = i.highlightLayer, this._elementLayer = i.elementLayer, this._loadingLayer = this._wrapper.ownerDocument.createElement("div"), this._loadingLayer.style.cssText = [
1689
+ "position:absolute",
1690
+ "inset:0",
1691
+ "display:none",
1692
+ "align-items:center",
1693
+ "justify-content:center",
1694
+ "background:rgba(255,255,255,0.72)",
1695
+ "pointer-events:none",
1696
+ "z-index:4"
1697
+ ].join(";"), this._loadingLayer.setAttribute("role", "status"), this._loadingLayer.setAttribute("aria-live", "polite"), this._loadingLayer.setAttribute("aria-label", "Loading page");
1698
+ let a = this._wrapper.ownerDocument.createElement("progress");
1699
+ a.setAttribute("aria-hidden", "true"), this._loadingLayer.appendChild(a), 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) => {
1700
+ this._onElementClick(e).catch((e) => this._reportRenderError(e));
1701
+ }, this._wrapper.addEventListener("click", this._elementClickListener)), t.onContextMenu && (this._contextMenuListener = (e) => this._onContextMenu(e), this._wrapper.addEventListener("contextmenu", this._contextMenuListener)), this._find = new Cn(() => this.pageCount, (e) => this._collectPageRuns(e)), n && this._bindLayoutDocument(n);
1702
+ }
1703
+ async load(e) {
1704
+ if (this._destroyed) throw Error("DocxViewer is destroyed");
1705
+ if (this._borrowed) throw Error("DocxViewer.load() is unsupported on a Viewer created by fromDocument(); the borrowed document is already loaded.");
1706
+ let t = !1;
1707
+ try {
1708
+ let n = await this._documentOwner.replace(() => J.load(e, {
1709
+ password: this._opts.password,
1710
+ useGoogleFonts: this._opts.useGoogleFonts,
1711
+ cjkFallback: this._opts.cjkFallback,
1712
+ maxZipEntryBytes: this._opts.maxZipEntryBytes,
1713
+ resourceLimits: this._opts.resourceLimits,
1714
+ debug: this._opts.debug,
1715
+ onResourceMetrics: this._opts.onResourceMetrics,
1716
+ workerTimeoutMs: this._opts.workerTimeoutMs,
1717
+ wasmUrl: this._opts.wasmUrl,
1718
+ math: this._opts.math,
1719
+ threeD: this._opts.threeD,
1720
+ regionMap: this._opts.regionMap,
1721
+ chartEx: this._opts.chartEx,
1722
+ tiff: this._opts.tiff,
1723
+ mode: this._mode,
1724
+ ...this._opts.progressiveLayout ? { progressiveLayout: !0 } : {},
1725
+ ...this._opts.sliceLayout ? { sliceLayout: !0 } : {},
1726
+ onLayoutProgress: this._opts.onLayoutProgress,
1727
+ onLayoutPartial: this._opts.onLayoutPartial,
1728
+ onLayoutComplete: this._opts.onLayoutComplete,
1729
+ ...this._opts.showTrackedChanges === !0 ? { showTrackedChanges: !0 } : {},
1730
+ ...this._opts.currentDate === void 0 ? {} : { currentDate: this._opts.currentDate }
1731
+ }), () => {
1732
+ this._invalidateElementContext(!1), t = !0, this._renderDispatcher.begin(), this._findRequestGeneration++, this._find.invalidate(), this._unbindLayoutDocument();
1733
+ });
1734
+ if (!n) return;
1735
+ if (this._destroyed) throw Error("DocxViewer is destroyed");
1736
+ this._currentPage = 0, this._bindLayoutDocument(n), this._find.invalidate(), await this._render();
1737
+ } catch (e) {
1738
+ throw this._destroyed ? Error("DocxViewer is destroyed") : e instanceof Error ? e : Error(String(e));
1739
+ }
1740
+ t && !this._destroyed && this._emitSelectionContextChange();
1741
+ }
1742
+ get pageCount() {
1743
+ return this._doc?.pageCount ?? 0;
1744
+ }
1745
+ get currentPage() {
1746
+ return this._currentPage;
1747
+ }
1748
+ get layoutComplete() {
1749
+ return this._doc?.layoutComplete ?? !0;
1750
+ }
1751
+ async waitUntilLayoutComplete() {
1752
+ await this._errorRouter.ownBackgroundLifecycle(async () => {
1753
+ await this._doc?.waitUntilLayoutComplete?.();
1754
+ });
1755
+ }
1756
+ get canvasElement() {
1757
+ return this._canvas;
1758
+ }
1759
+ async goToPage(e) {
1760
+ let t = this._doc;
1761
+ if (!t) return;
1762
+ let n = this._cancelPendingNavigation(), r = Math.max(0, Number.isNaN(e) ? 0 : Math.trunc(e));
1763
+ if (r >= this.pageCount && !this.layoutComplete) {
1764
+ this._setLoading(!0);
1765
+ try {
1766
+ await this._waitForPage(t, r, n);
1767
+ } finally {
1768
+ n === this._navigationGeneration && this._setLoading(!1);
1769
+ }
1770
+ }
1771
+ if (this._destroyed || n !== this._navigationGeneration || t !== this._doc) return;
1772
+ let i = Math.max(0, Math.min(r, this.pageCount - 1)), a = i !== this._currentPage;
1773
+ a && this._invalidateElementContext(!1), this._currentPage = i, await this._render(), a && !this._destroyed && this._emitSelectionContextChange();
1774
+ }
1775
+ async nextPage() {
1776
+ await this.goToPage(this._currentPage + 1);
1777
+ }
1778
+ async prevPage() {
1779
+ await this.goToPage(this._currentPage - 1);
1780
+ }
1781
+ _naturalWidthPx() {
1782
+ return !this._doc || this._doc.pageCount === 0 ? 0 : this._doc.pageSize(this._currentPage).widthPt * D;
1783
+ }
1784
+ _renderWidth() {
1785
+ if (this._scale === null) return this._opts.width;
1786
+ let e = this._naturalWidthPx();
1787
+ return e <= 0 ? this._opts.width : Math.round(e * this._scale);
1788
+ }
1789
+ getScale() {
1790
+ if (this._scale !== null) return this._scale;
1791
+ let e = this._naturalWidthPx();
1792
+ return e <= 0 ? 1 : this._opts.width && this._opts.width > 0 ? this._opts.width / e : 1;
1793
+ }
1794
+ _zoomMin() {
1795
+ return this._opts.zoomMin ?? .1;
1796
+ }
1797
+ _zoomMax() {
1798
+ return this._opts.zoomMax ?? 4;
1799
+ }
1800
+ async setScale(e) {
1801
+ let t = ie(e, this._zoomMin(), this._zoomMax()), n = t !== this.getScale();
1802
+ this._scale = t, await this._render(), n && this._opts.onScaleChange?.(t);
1803
+ }
1804
+ async zoomIn() {
1805
+ await this.setScale(me(this.getScale()));
1806
+ }
1807
+ async zoomOut() {
1808
+ await this.setScale(_e(this.getScale()));
1809
+ }
1810
+ async fitWidth() {
1811
+ await this._fit("width");
1812
+ }
1813
+ async fitPage() {
1814
+ await this._fit("page");
1815
+ }
1816
+ async _fit(e) {
1817
+ if (!this._doc || this._doc.pageCount === 0) return;
1818
+ let t = this._doc.pageSize(this._currentPage), n = this._fitContainer();
1819
+ if (!n) return;
1820
+ let r = y({
1821
+ contentWidth: t.widthPt * D,
1822
+ contentHeight: t.heightPt * D,
1823
+ containerWidth: n.clientWidth,
1824
+ containerHeight: n.clientHeight
1825
+ }, e);
1826
+ r <= 0 || await this.setScale(r);
1827
+ }
1828
+ _fitContainer() {
1829
+ return this._opts.container ?? this._wrapper.parentElement ?? null;
1830
+ }
1831
+ async findText(e, t = {}) {
1832
+ let n = this._doc;
1833
+ if (!n) return [];
1834
+ let r = ++this._findRequestGeneration;
1835
+ if (e.length > 0 && !n.layoutComplete && (await this._errorRouter.ownBackgroundLifecycle(() => n.waitUntilLayoutComplete()), this._destroyed || this._doc !== n || r !== this._findRequestGeneration)) return [];
1836
+ let i = await this._errorRouter.ownAwaitable(() => this._find.find(e, t));
1837
+ return this._redrawHighlights(), i;
1838
+ }
1839
+ async findNext() {
1840
+ return this._activateMatch(this._find.next());
1841
+ }
1842
+ async findPrev() {
1843
+ return this._activateMatch(this._find.prev());
1844
+ }
1845
+ clearFind() {
1846
+ this._findRequestGeneration++, this._find.invalidate(), this._redrawHighlights();
1847
+ }
1848
+ async _activateMatch(e) {
1849
+ return e ? (e.location.page === this._currentPage ? this._redrawHighlights() : await this.goToPage(e.location.page), e) : (this._redrawHighlights(), null);
1850
+ }
1851
+ _redrawHighlights() {
1852
+ let e = this._find.pageRuns(this._currentPage) ?? [];
1853
+ this._buildHighlightLayer(e);
1854
+ }
1855
+ async getResourceMetrics() {
1856
+ if (!this._doc) throw Error("Document not loaded");
1857
+ return await this._doc.getResourceMetrics();
1858
+ }
1859
+ getSelectionContext(e = {}) {
1860
+ if (this._destroyed) throw Error("DocxViewer is destroyed");
1861
+ return (this._textLayer ? Q(this._wrapper, this._wrapper.ownerDocument?.getSelection?.() ?? null, e) : null) ?? (this._elementContext ? nn(this._elementContext, e.maxTextCharacters) : null);
1862
+ }
1863
+ _emitSelectionContextChange() {
1864
+ let e = this.getSelectionContext();
1865
+ e?.kind === "text" && (this._elementHitGeneration++, this._elementContext = null, this._redrawElementOutline());
1866
+ let t = JSON.stringify(e);
1867
+ t !== this._selectionContextKey && (this._selectionContextKey = t, this._opts.onSelectionContextChange?.(e ? structuredClone(e) : null));
1868
+ }
1869
+ _setElementContext(e) {
1870
+ this._elementContext = e ? structuredClone(e) : null, this._redrawElementOutline(), this._emitSelectionContextChange();
1871
+ }
1872
+ _invalidateElementContext(e = !0) {
1873
+ this._elementHitGeneration++, this._elementContext = null, this._redrawElementOutline(), e && this._emitSelectionContextChange();
1874
+ }
1875
+ _redrawElementOutline() {
1876
+ let e = this._elementContext, t = this._doc;
1877
+ if (!e || !t || e.pageIndex !== this._currentPage) {
1878
+ x(this._elementLayer, null);
1879
+ return;
1880
+ }
1881
+ let n = t.pageSize(e.pageIndex);
1882
+ x(this._elementLayer, {
1883
+ x: e.bounds.xPt / n.widthPt,
1884
+ y: e.bounds.yPt / n.heightPt,
1885
+ width: e.bounds.widthPt / n.widthPt,
1886
+ height: e.bounds.heightPt / n.heightPt
1887
+ });
1888
+ }
1889
+ async _onElementClick(e) {
1890
+ this._destroyed || e.defaultPrevented || e.button !== 0 || await this._resolveContextAt(e);
1891
+ }
1892
+ _onContextMenu(e) {
1893
+ let t;
1894
+ this._opts.onContextMenu?.({
1895
+ originalEvent: e,
1896
+ getContext: () => t ??= this._resolveContextAt(e)
1897
+ });
1898
+ }
1899
+ async _resolveContextAt(e) {
1900
+ let t = this._doc;
1901
+ if (this._destroyed || !t) return null;
1902
+ if (this._textLayer && Q(this._wrapper, this._wrapper.ownerDocument?.getSelection?.() ?? null)) return this._emitSelectionContextChange(), this._destroyed ? null : this.getSelectionContext();
1903
+ if (!this._opts.enableElementSelection) return this.getSelectionContext();
1904
+ let n = this._canvas.getBoundingClientRect();
1905
+ if (n.width <= 0 || n.height <= 0) return this._invalidateElementContext(), null;
1906
+ let r = e.clientX - n.left, i = e.clientY - n.top;
1907
+ if (r < 0 || i < 0 || r > n.width || i > n.height) return this._invalidateElementContext(), null;
1908
+ let a = ++this._elementHitGeneration, o = this._currentPage, s = t.pageSize(o), c;
1909
+ try {
1910
+ c = await t.getElementContextAt(o, {
1911
+ xPt: r / n.width * s.widthPt,
1912
+ yPt: i / n.height * s.heightPt
1913
+ }, {
1914
+ currentDate: this._opts.currentDate,
1915
+ showTrackedChanges: this._opts.showTrackedChanges,
1916
+ maxTextCharacters: F
1917
+ });
1918
+ } catch (e) {
1919
+ if (this._destroyed || a !== this._elementHitGeneration || o !== this._currentPage || t !== this._doc) return null;
1920
+ throw e;
1921
+ }
1922
+ return this._destroyed || a !== this._elementHitGeneration || o !== this._currentPage || t !== this._doc ? null : (this._setElementContext(c), this._destroyed ? null : this.getSelectionContext());
1923
+ }
1924
+ destroy() {
1925
+ this._destroyed || (this._destroyed = !0, this._findRequestGeneration++, this._layoutViewGeneration++, this._unbindLayoutDocument(), this._errorRouter.close(), this._renderDispatcher.destroy(), Ze(this._canvas), this._documentOwner.close(), this._find.invalidate(), 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());
1926
+ }
1927
+ async _render() {
1928
+ let e = this._renderDispatcher.begin();
1929
+ try {
1930
+ await this._renderPage(e);
1931
+ } catch (t) {
1932
+ if (!this._renderDispatcher.isCurrent(e)) return;
1933
+ throw t;
1934
+ }
1935
+ }
1936
+ _reportRenderError(e) {
1937
+ this._errorRouter.report(e);
1938
+ }
1939
+ async _renderPage(e) {
1940
+ if (!this._doc) return;
1941
+ let t = this._mode === "worker", n = this._renderWidth(), r = this._doc.pageSize(this._currentPage), i = n ?? r.widthPt * 1.3333333333333333, a = r.widthPt > 0 ? i * r.heightPt / r.widthPt : 0, o = [], s = (e) => o.push(e), c = this._opts.dpr ?? (typeof window < "u" && window.devicePixelRatio || 1), l = {
1942
+ width: n,
1943
+ dpr: this._opts.dpr,
1944
+ imageResources: this._opts.imageResources,
1945
+ defaultTextColor: this._opts.defaultTextColor,
1946
+ currentDate: this._opts.currentDate,
1947
+ showTrackedChanges: this._opts.showTrackedChanges,
1948
+ onTextRun: s
1949
+ };
1950
+ if (t) {
1951
+ let t = await $(this._doc, this._canvas, this._currentPage, "worker", l);
1952
+ if (!this._renderDispatcher.commitBitmap(e, t, {
1953
+ cssWidth: i > 0 ? i : Math.round(t.width / c),
1954
+ cssHeight: a > 0 ? a : Math.round(t.height / c)
1955
+ })) return;
1956
+ } else if (await $(this._doc, this._canvas, this._currentPage, "main", l), !this._renderDispatcher.isCurrent(e)) return;
1957
+ this._textLayer && this._buildTextLayer(this._textLayer, o), this._find.setPageRuns(this._currentPage, o), this._buildHighlightLayer(o), this._opts.onPageChange?.(this._currentPage, this.pageCount, this.layoutComplete);
1958
+ }
1959
+ _bindLayoutDocument(e) {
1960
+ this._unbindLayoutDocument(), this._layoutFailed = !1, this._layoutViewPublicationGeneration = 0;
1961
+ let t = gn(e, (t) => this._onLayoutViewPublication(e, t), (e) => this._reportRenderError(e)), n = !0, r = fn(e, () => ({
1962
+ pageCount: e.pageCount,
1963
+ exact: e.layoutComplete,
1964
+ complete: e.layoutComplete
1965
+ }), (t) => {
1966
+ if (n) {
1967
+ n = !1;
1968
+ return;
1969
+ }
1970
+ this._onLayoutPublication(e, t);
1971
+ }, (e) => this._reportRenderError(e));
1972
+ this._layoutUnsubscribe = () => {
1973
+ r(), t();
1974
+ };
1975
+ }
1976
+ _unbindLayoutDocument() {
1977
+ this._layoutUnsubscribe?.(), this._layoutUnsubscribe = null, this._layoutFailed = !1, this._cancelPendingNavigation();
1978
+ }
1979
+ _onLayoutPublication(e, t) {
1980
+ if (!(this._destroyed || e !== this._doc)) {
1981
+ if (this._wakeLayoutWaiters(), t.error !== void 0) {
1982
+ this._layoutFailed = !0, this._errorRouter.reportBackground(t.error, this._opts.onLayoutComplete !== void 0);
1983
+ return;
1984
+ }
1985
+ this._find.invalidate(), this._currentPage = Math.max(0, Math.min(this._currentPage, t.pageCount - 1)), this._render().catch((e) => this._reportRenderError(e));
1986
+ }
1987
+ }
1988
+ _onLayoutViewPublication(e, t) {
1989
+ this._destroyed || e !== this._doc || t.generation <= this._layoutViewPublicationGeneration || (this._layoutViewPublicationGeneration = t.generation, t.requester !== this && (this._layoutViewGeneration++, this._opts = {
1990
+ ...this._opts,
1991
+ currentDate: t.view.currentDate,
1992
+ showTrackedChanges: t.view.showTrackedChanges
1993
+ }, this._find.invalidate(), this._currentPage = Math.max(0, Math.min(this._currentPage, e.pageCount - 1)), this._render().catch((e) => this._reportRenderError(e))));
1994
+ }
1995
+ async _waitForPage(e, t, n) {
1996
+ await this._errorRouter.ownBackgroundLifecycle(async () => {
1997
+ for (; !this._destroyed && n === this._navigationGeneration && e === this._doc && t >= e.pageCount && !e.layoutComplete && !this._layoutFailed;) await new Promise((e) => {
1998
+ this._layoutWaiters.add(e);
1999
+ });
2000
+ e === this._doc && (e.layoutComplete || this._layoutFailed) && await e.waitUntilLayoutComplete();
2001
+ });
2002
+ }
2003
+ _wakeLayoutWaiters() {
2004
+ for (let e of this._layoutWaiters) e();
2005
+ this._layoutWaiters.clear();
2006
+ }
2007
+ _cancelPendingNavigation() {
2008
+ let e = ++this._navigationGeneration;
2009
+ return this._wakeLayoutWaiters(), this._setLoading(!1), e;
2010
+ }
2011
+ _setLoading(e) {
2012
+ this._loadingLayer.style.display = e ? "flex" : "none";
2013
+ }
2014
+ async setShowTrackedChanges(e) {
2015
+ let t = ++this._layoutViewGeneration, n = this._doc;
2016
+ if (this._opts.showTrackedChanges === !0 === e) {
2017
+ n && await K(n, {
2018
+ showTrackedChanges: e,
2019
+ currentDate: this._opts.currentDate
2020
+ }, this);
2021
+ return;
2022
+ }
2023
+ let r = {
2024
+ ...this._opts,
2025
+ showTrackedChanges: e
2026
+ };
2027
+ (!n || await K(n, {
2028
+ showTrackedChanges: e,
2029
+ currentDate: r.currentDate
2030
+ }, this)) && (this._destroyed || t !== this._layoutViewGeneration || n !== this._doc || (this._opts = r, this._find.invalidate(), this._currentPage = Math.max(0, Math.min(this._currentPage, this.pageCount - 1)), await this._render()));
2031
+ }
2032
+ _buildHighlightLayer(e) {
2033
+ let t = this._highlightLayer;
2034
+ if (!t) return;
2035
+ let { width: n, height: r } = this._canvasCssPx();
2036
+ Z(t, e, this._find.pageHighlights(this._currentPage), n, r, (e) => this._measureForFont(e), this._opts.findHighlightColors);
2037
+ }
2038
+ _canvasCssPx() {
2039
+ return {
2040
+ width: parseFloat(this._canvas.style.width) || this._canvas.width,
2041
+ height: parseFloat(this._canvas.style.height) || this._canvas.height
2042
+ };
2043
+ }
2044
+ _measureForFont(e) {
2045
+ this._measureCtx ||= document.createElement("canvas").getContext("2d");
2046
+ let t = this._measureCtx;
2047
+ return t ? (t.font = e, (e) => t.measureText(e).width) : (e) => e.length;
2048
+ }
2049
+ async _collectPageRuns(e) {
2050
+ return this._doc ? this._doc.collectPageRuns(e, {
2051
+ width: this._renderWidth(),
2052
+ currentDate: this._opts.currentDate,
2053
+ showTrackedChanges: this._opts.showTrackedChanges
2054
+ }) : [];
2055
+ }
2056
+ _buildTextLayer(e, t) {
2057
+ let { width: n, height: r } = this._canvasCssPx();
2058
+ X(e, t, n, r, this._hyperlinkHandler(), (e) => this._measureForFont(e), this._currentPage);
2059
+ }
2060
+ _hyperlinkHandler() {
2061
+ return this._opts.enableHyperlinks === !1 ? void 0 : this._opts.onHyperlinkClick || ((e) => {
2062
+ if (e.kind === "external") {
2063
+ u(e.url, void 0, this._hostWindow);
2064
+ return;
2065
+ }
2066
+ let t = this._doc;
2067
+ if (!t) return;
2068
+ let n = ++this._internalHyperlinkGeneration;
2069
+ this._navigateInternalHyperlink(t, e.ref, n).catch((e) => this._reportRenderError(e));
2070
+ });
2071
+ }
2072
+ async _navigateInternalHyperlink(e, t, n) {
2073
+ if (e.layoutComplete || await e.waitUntilLayoutComplete(), this._destroyed || this._doc !== e || n !== this._internalHyperlinkGeneration) return;
2074
+ let r = e.getBookmarkPage(t);
2075
+ r !== void 0 && await this.goToPage(r);
2076
+ }
2077
+ }, jn = 150, Mn = "0 1px 3px rgba(0,0,0,0.2)", Nn = 12, Pn = 13, Fn = Symbol("DocxScrollViewer.borrowedDocument"), In;
2078
+ function Ln() {
2079
+ return In ??= import("ooxml/comment-ui-runtime-DcJOYlw-.js");
2080
+ }
2081
+ var Rn = class e {
2082
+ _documentOwner;
2083
+ get _doc() {
2084
+ return this._documentOwner.current;
2085
+ }
2086
+ _borrowed;
2087
+ _opts;
2088
+ _errorRouter;
2089
+ _container;
2090
+ _wrapper;
2091
+ _scrollHost;
2092
+ _spacer;
2093
+ _mode;
2094
+ _scale = 1;
2095
+ _scaleEstablished = !1;
2096
+ _pendingScale = null;
2097
+ _slots = /* @__PURE__ */ new Map();
2098
+ _free = [];
2099
+ _heights = [];
2100
+ _scrollGeometry = {
2101
+ offsets: [],
2102
+ totalHeight: 0
2103
+ };
2104
+ _lastRange = null;
2105
+ _lastTopIndex = -1;
2106
+ _lastReportedTotal = -1;
2107
+ _lastReportedLayoutComplete = null;
2108
+ _layoutUnsubscribe = null;
2109
+ _presentedPageCount = 0;
2110
+ _scrollListener = null;
2111
+ _selectionChangeListener = null;
2112
+ _selectionContextKey = "null";
2113
+ _elementClickListener = null;
2114
+ _contextMenuListener = null;
2115
+ _commentOutsidePointerListener = null;
2116
+ _elementContext = null;
2117
+ _activeCommentId = null;
2118
+ _activeCommentPage = null;
2119
+ _commentUi = null;
2120
+ _commentPageById = /* @__PURE__ */ new Map();
2121
+ _commentRunsByPage = /* @__PURE__ */ new Map();
2122
+ _commentIndexedPages = /* @__PURE__ */ new Set();
2123
+ _commentScanFrontier = 0;
2124
+ _commentNavigationGeneration = 0;
2125
+ _internalHyperlinkGeneration = 0;
2126
+ _commentAnchorRangesForMargin = null;
2127
+ _commentAnchorIds = /* @__PURE__ */ new Set();
2128
+ _reviewOriginPx = 0;
2129
+ _commentGeometryScheduled = !1;
2130
+ _commentGeometryFrame = null;
2131
+ _pendingCommentGeometry = /* @__PURE__ */ new Map();
2132
+ _elementHitGeneration = 0;
2133
+ _destroyed = !1;
2134
+ _measureCtx;
2135
+ _bitmapInFlight = /* @__PURE__ */ new Set();
2136
+ _renderEpoch = 0;
2137
+ _settleTimer = null;
2138
+ _wheelListener = null;
2139
+ _pendingZoomAnchor = null;
2140
+ _resizeObserver = null;
2141
+ _prevBase = 0;
2142
+ _lastFitWidth = 0;
2143
+ _pageShadow;
2144
+ _find = new Cn(() => this.pageCount, (e) => this._collectPageRuns(e));
2145
+ _findActive = !1;
2146
+ _findRequestGeneration = 0;
2147
+ _showTrackedChanges;
2148
+ _currentDate;
2149
+ _layoutViewGeneration = 0;
2150
+ _layoutViewPublicationGeneration = 0;
2151
+ static fromDocument(t, n, r = {}) {
2152
+ let i = G(n);
2153
+ return new e(t, {
2154
+ ...r,
2155
+ currentDate: i.currentDate,
2156
+ showTrackedChanges: i.showTrackedChanges,
2157
+ [Fn]: n
2158
+ });
2159
+ }
2160
+ constructor(e, t = {}) {
2161
+ if (e.tagName === "CANVAS") throw Error("DocxScrollViewer 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-page canvas API use DocxViewer.");
2162
+ this._container = e, this._opts = t, this._errorRouter = new ue("DocxScrollViewer", t.onError), this._showTrackedChanges = t.showTrackedChanges === !0, this._currentDate = t.currentDate, this._pageShadow = t.pageShadow ?? Mn;
2163
+ let n = t[Fn];
2164
+ this._borrowed = n !== void 0, n ? (this._documentOwner = new b("DocxScrollViewer", n, !1), this._mode = C("DocxScrollViewer", t.mode, n)) : (this._documentOwner = new b("DocxScrollViewer"), this._mode = C("DocxScrollViewer", 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() && Ln().then((e) => {
2165
+ if (!this._destroyed) {
2166
+ this._commentUi = e;
2167
+ for (let [e, t] of this._slots) this._redrawSlotComments(e, t);
2168
+ }
2169
+ }).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) => {
2170
+ this._onElementClick(e).catch((e) => this._reportRenderError(e));
2171
+ }, 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) => {
2172
+ if (!Ee(e, this._wrapper, "ooxmlCommentId") && this._activeCommentId !== null) {
2173
+ this._activeCommentId = null, this._activeCommentPage = null;
2174
+ for (let [e, t] of this._slots) this._redrawSlotComments(e, t);
2175
+ this._emitSelectionContextChange();
2176
+ }
2177
+ }, this._wrapper.ownerDocument.addEventListener("pointerdown", this._commentOutsidePointerListener)), this._opts.enableZoom !== !1 && (this._wheelListener = (e) => {
2178
+ if (!(e.ctrlKey || e.metaKey) || (e.preventDefault(), e.deltaY === 0)) return;
2179
+ let t = this._scrollHost.getBoundingClientRect(), n = e.clientX - t.left, r = e.clientY - t.top;
2180
+ this._pendingZoomAnchor = Number.isFinite(n) && Number.isFinite(r) ? {
2181
+ x: n,
2182
+ y: r
2183
+ } : null, this.setScale(ge(this._scale, e.deltaY, e.deltaMode));
2184
+ }, 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._bindLayoutDocument(n), this.relayout());
2185
+ }
2186
+ async load(e) {
2187
+ if (this._destroyed) throw Error("DocxScrollViewer is destroyed");
2188
+ if (this._borrowed) throw Error("DocxScrollViewer.load() is unsupported on a Viewer created by fromDocument(); the borrowed document is already loaded.");
2189
+ let t = !1;
2190
+ try {
2191
+ let n = await this._documentOwner.replace(() => J.load(e, {
2192
+ password: this._opts.password,
2193
+ useGoogleFonts: this._opts.useGoogleFonts,
2194
+ cjkFallback: this._opts.cjkFallback,
2195
+ maxZipEntryBytes: this._opts.maxZipEntryBytes,
2196
+ resourceLimits: this._opts.resourceLimits,
2197
+ debug: this._opts.debug,
2198
+ onResourceMetrics: this._opts.onResourceMetrics,
2199
+ workerTimeoutMs: this._opts.workerTimeoutMs,
2200
+ wasmUrl: this._opts.wasmUrl,
2201
+ math: this._opts.math,
2202
+ threeD: this._opts.threeD,
2203
+ regionMap: this._opts.regionMap,
2204
+ chartEx: this._opts.chartEx,
2205
+ tiff: this._opts.tiff,
2206
+ mode: this._mode,
2207
+ ...this._showTrackedChanges ? { showTrackedChanges: !0 } : {},
2208
+ ...this._currentDate === void 0 ? {} : { currentDate: this._currentDate },
2209
+ ...this._opts.progressiveLayout ? { progressiveLayout: !0 } : {},
2210
+ ...this._opts.sliceLayout ? { sliceLayout: !0 } : {},
2211
+ onLayoutProgress: this._opts.onLayoutProgress,
2212
+ onLayoutPartial: this._opts.onLayoutPartial,
2213
+ onLayoutComplete: this._opts.onLayoutComplete
2214
+ }), (e) => {
2215
+ if (this._invalidateElementContext(!1), t = !0, this._findRequestGeneration++, this._find.invalidate(), this._findActive = !1, this._activeCommentId = null, this._activeCommentPage = null, this._resetCommentNavigation(), this._unbindLayoutDocument(), e) {
2216
+ for (let [e, t] of [...this._slots]) this._recycleSlot(e, t);
2217
+ this._lastTopIndex = -1, this._lastReportedTotal = -1, this._lastReportedLayoutComplete = null;
2218
+ }
2219
+ });
2220
+ if (!n) return;
2221
+ if (this._destroyed) throw Error("DocxScrollViewer is destroyed");
2222
+ this._bindLayoutDocument(n), this._find.invalidate(), this._findActive = !1, this._activeCommentId = null, this._activeCommentPage = null, this._resetCommentNavigation();
2223
+ let r = [];
2224
+ this._relayout(r), await Promise.all(r);
2225
+ } catch (e) {
2226
+ throw this._destroyed ? Error("DocxScrollViewer is destroyed") : e instanceof Error ? e : Error(String(e));
2227
+ }
2228
+ t && !this._destroyed && this._emitSelectionContextChange();
2229
+ }
2230
+ get pageCount() {
2231
+ return this._doc?.pageCount ?? 0;
2232
+ }
2233
+ get layoutComplete() {
2234
+ return this._doc?.layoutComplete ?? !0;
2235
+ }
2236
+ async waitUntilLayoutComplete() {
2237
+ await this._errorRouter.ownBackgroundLifecycle(async () => {
2238
+ await this._doc?.waitUntilLayoutComplete?.();
2239
+ });
2240
+ }
2241
+ _bindLayoutDocument(e) {
2242
+ this._unbindLayoutDocument(), this._layoutViewPublicationGeneration = 0, this._presentedPageCount = e.pageCount;
2243
+ let t = gn(e, (t) => this._onLayoutViewPublication(e, t), (e) => this._reportRenderError(e)), n = !0, r = fn(e, () => ({
2244
+ pageCount: e.pageCount,
2245
+ exact: e.layoutComplete,
2246
+ complete: e.layoutComplete
2247
+ }), (t) => {
2248
+ if (n) {
2249
+ n = !1;
2250
+ return;
2251
+ }
2252
+ this._onLayoutPublication(e, t);
2253
+ }, (e) => this._reportRenderError(e));
2254
+ this._layoutUnsubscribe = () => {
2255
+ r(), t();
2256
+ };
2257
+ }
2258
+ _unbindLayoutDocument() {
2259
+ this._layoutUnsubscribe?.(), this._layoutUnsubscribe = null, this._presentedPageCount = 0;
2260
+ }
2261
+ _onLayoutPublication(e, t) {
2262
+ if (!(this._destroyed || e !== this._doc)) {
2263
+ if (t.error !== void 0) {
2264
+ this._errorRouter.reportBackground(t.error, this._opts.onLayoutComplete !== void 0);
2265
+ return;
2266
+ }
2267
+ this._find.invalidate(), this._refreshCommentSurface(), this._applyLayoutPublication(t);
2268
+ }
2269
+ }
2270
+ _onLayoutViewPublication(e, t) {
2271
+ this._destroyed || e !== this._doc || t.generation <= this._layoutViewPublicationGeneration || (this._layoutViewPublicationGeneration = t.generation, t.requester !== this && (this._layoutViewGeneration++, this._showTrackedChanges = t.view.showTrackedChanges, this._currentDate = t.view.currentDate, this._find.invalidate(), this._applyLayoutPublication({
2272
+ pageCount: e.pageCount,
2273
+ exact: !0,
2274
+ complete: e.layoutComplete
2275
+ })));
2276
+ }
2277
+ _refreshCommentSurface() {
2278
+ if (!(!this._commentsEnabled() || this._slots.size === 0)) {
2279
+ this._syncSpacerWidth();
2280
+ for (let [e, t] of this._slots) this._redrawSlotComments(e, t);
2281
+ }
2282
+ }
2283
+ _applyLayoutPublication(e) {
2284
+ let t = [...this._slots];
2285
+ this._presentedPageCount = e.pageCount, this._renderEpoch++, this.relayout();
2286
+ for (let [e, n] of t) e >= this._presentedPageCount || this._slots.get(e) !== n || this._refreshSlotAtomically(e, n);
2287
+ }
2288
+ _pageWidthPx(e) {
2289
+ return this._doc.pageSize(e).widthPt * D * this._scale;
2290
+ }
2291
+ _pageHeightPx(e) {
2292
+ return this._doc.pageSize(e).heightPt * D * this._scale;
2293
+ }
2294
+ _fitWidthPx() {
2295
+ if (this._opts.width && this._opts.width > 0) return this._opts.width;
2296
+ let e = this._scrollHost.clientWidth || this._container.clientWidth;
2297
+ if (e <= 0) return 0;
2298
+ let { left: t, right: n } = this._padH(), r = e - t - n;
2299
+ return r <= 0 ? 0 : r;
2300
+ }
2301
+ _hasCommentMargin() {
2302
+ return this._hasDisplayableComments() && this._commentsOptions()?.cards !== !1;
2303
+ }
2304
+ _hasDisplayableComments() {
2305
+ if (!this._commentsEnabled()) return !1;
2306
+ let e = this._doc;
2307
+ if (!e) return !1;
2308
+ let t = e.commentAnchorRanges();
2309
+ if (this._commentAnchorRangesForMargin !== t && (this._commentAnchorRangesForMargin = t, this._commentAnchorIds = new Set(t.map((e) => e.commentId))), this._commentAnchorIds.size === 0) return !1;
2310
+ let n = this._commentsOptions()?.includeResolved === !0;
2311
+ return e.comments.some((e) => this._commentAnchorIds.has(e.id) && e.parentId === void 0 && (n || e.resolved !== !0));
2312
+ }
2313
+ _commentMarginExtent() {
2314
+ return this._hasCommentMargin() ? (Nn + 280) * this._commentZoom() : 0;
2315
+ }
2316
+ _commentZoom() {
2317
+ return this._scaleEstablished ? this._scale : 1;
2318
+ }
2319
+ _commentsEnabled() {
2320
+ return this._opts.comments === !0 || typeof this._opts.comments == "object";
2321
+ }
2322
+ _commentsOptions() {
2323
+ return typeof this._opts.comments == "object" ? this._opts.comments : void 0;
2324
+ }
2325
+ _commentSide() {
2326
+ let e = this._commentsOptions()?.side;
2327
+ return e === "left" || e === "right" ? e : (this._container.ownerDocument.defaultView?.getComputedStyle?.(this._container).direction || this._container.dir || this._container.style.direction) === "rtl" ? "left" : "right";
2328
+ }
2329
+ _syncCommentMarginGeometry(e) {
2330
+ if (!e) return;
2331
+ e.style.display = this._hasCommentMargin() ? "" : "none";
2332
+ let t = this._commentZoom(), n = `calc(100% + ${Nn * t}px)`;
2333
+ e.style.left = this._commentSide() === "right" ? n : "", e.style.right = this._commentSide() === "left" ? n : "", e.style.width = `${280 * t}px`, e.style.fontSize = `${Pn}px`, e.dataset.ooxmlCommentZoom = String(t);
2334
+ }
2335
+ _widestPageWidthPt() {
2336
+ if (!this._doc) return 0;
2337
+ let e = 0, t = this._presentedPageCount || this._doc.pageCount;
2338
+ for (let n = 0; n < t; n++) {
2339
+ let t = this._doc.pageSize(n).widthPt;
2340
+ t > e && (e = t);
2341
+ }
2342
+ return e;
2343
+ }
2344
+ _baseScale() {
2345
+ if (!this._doc || this._doc.pageCount === 0) return 0;
2346
+ let e = this._fitWidthPx();
2347
+ if (e <= 0) return 0;
2348
+ let t = this._widestPageWidthPt();
2349
+ return t <= 0 ? 0 : e / (t * D);
2350
+ }
2351
+ relayout() {
2352
+ this._relayout();
2353
+ }
2354
+ _relayout(e) {
2355
+ if (this._doc) {
2356
+ if (this._doc.layoutComplete !== !1 && (this._presentedPageCount = this._doc.pageCount), this._scaleEstablished) {
2357
+ let e = this._baseScale();
2358
+ if (e > 0 && e !== this._prevBase) {
2359
+ let t = this._prevBase > 0 ? this._scale / this._prevBase : 1;
2360
+ this._prevBase = e, this.setScale(e * t);
2361
+ }
2362
+ } else {
2363
+ let e = this._baseScale();
2364
+ if (e > 0) {
2365
+ if (this._scale = e, this._prevBase = e, this._lastFitWidth = this._fitWidthPx(), this._scaleEstablished = !0, this._pendingScale !== null) {
2366
+ let e = this._pendingScale;
2367
+ this._pendingScale = null, e !== this._scale && (this._scale = e, this._opts.onScaleChange?.(e));
2368
+ }
2369
+ } else return;
2370
+ }
2371
+ this._recomputeHeights(), this._syncSpacer(), this._mountVisible(e);
2372
+ for (let [e, t] of this._slots) t.renderedPage === e && t.renderedScale >= 0 && this._redrawSlotComments(e, t);
2373
+ }
2374
+ }
2375
+ _recomputeHeights() {
2376
+ let e = Math.min(this._presentedPageCount, this._doc.pageCount), t = Array(e);
2377
+ for (let n = 0; n < e; n++) t[n] = this._pageHeightPx(n);
2378
+ this._heights = t, this._scrollGeometry = Te(t, this._gap(), this._pad());
2379
+ }
2380
+ _gap() {
2381
+ return this._opts.gap ?? 16;
2382
+ }
2383
+ _overscan() {
2384
+ return this._opts.overscan ?? 1;
2385
+ }
2386
+ _pad() {
2387
+ let e = this._gap();
2388
+ return {
2389
+ leading: this._opts.paddingTop ?? e,
2390
+ trailing: this._opts.paddingBottom ?? e
2391
+ };
2392
+ }
2393
+ _padH() {
2394
+ let e = this._gap();
2395
+ return {
2396
+ left: this._opts.paddingLeft ?? e,
2397
+ right: this._opts.paddingRight ?? e
2398
+ };
2399
+ }
2400
+ _pageIndexAtOffset(e, t) {
2401
+ let { offsets: n } = e, r = 0, i = n.length - 1, a = 0;
2402
+ for (; r <= i;) {
2403
+ let e = r + i >> 1;
2404
+ n[e] <= t ? (a = e, r = e + 1) : i = e - 1;
2405
+ }
2406
+ return a;
2407
+ }
2408
+ _range() {
2409
+ return w(this._scrollGeometry, this._scrollHost.scrollTop, this._scrollHost.clientHeight, this._overscan());
2410
+ }
2411
+ _syncSpacer() {
2412
+ let e = this._range();
2413
+ this._lastRange = e, this._spacer.style.height = `${e.totalHeight}px`, this._syncSpacerWidth();
2414
+ }
2415
+ _syncSpacerWidth() {
2416
+ let { left: e, right: t } = this._padH(), n = 0;
2417
+ for (let e = 0; e < this._heights.length; e++) {
2418
+ let t = this._pageWidthPx(e);
2419
+ t > n && (n = t);
2420
+ }
2421
+ let r = this._commentMarginExtent(), i = this._commentSide() === "left" ? r : 0, a = i - this._reviewOriginPx, o = Math.max(0, this._scrollHost.scrollLeft + a);
2422
+ this._spacer.style.width = `${n + r + e + t}px`, a !== 0 && (this._reviewOriginPx = i, this._scrollHost.style["--ooxml-review-origin-x"] = `${i}px`, this._scrollHost.scrollLeft = o);
2423
+ }
2424
+ _onScroll() {
2425
+ !this._doc || !this._scaleEstablished || this._mountVisible(void 0, !1);
2426
+ }
2427
+ _mountVisible(e, t = !0) {
2428
+ if (!this._doc || this._doc.pageCount === 0) return;
2429
+ let n = this._range();
2430
+ this._lastRange = n;
2431
+ for (let [e, t] of [...this._slots]) (e < n.start || e > n.end) && this._recycleSlot(e, t);
2432
+ for (let r = n.start; r <= n.end; r++) if (!this._slots.has(r)) {
2433
+ let t = this._acquireSlot();
2434
+ this._positionSlot(t, r, n), this._slots.set(r, t);
2435
+ let i = this._renderSlot(r, t, e === void 0);
2436
+ e && i && e.push(i);
2437
+ } else if (t) {
2438
+ let t = this._slots.get(r);
2439
+ this._positionSlot(t, r, n);
2440
+ let i = this._renderSlot(r, t, e === void 0);
2441
+ e && i && e.push(i);
2442
+ }
2443
+ this._emitVisiblePageChange(n);
2444
+ }
2445
+ _emitVisiblePageChange(e) {
2446
+ if (!this._doc) return;
2447
+ let t = this._doc.pageCount, n = this.layoutComplete;
2448
+ e.topIndex === this._lastTopIndex && t === this._lastReportedTotal && n === this._lastReportedLayoutComplete || (this._lastTopIndex = e.topIndex, this._lastReportedTotal = t, this._lastReportedLayoutComplete = n, this._opts.onVisiblePageChange?.(e.topIndex, t, n));
2449
+ }
2450
+ _applyPageShadow(e) {
2451
+ this._pageShadow !== !1 && (e.style.boxShadow = this._pageShadow);
2452
+ }
2453
+ _acquireSlot() {
2454
+ let e = this._free.pop();
2455
+ if (e) return this._scrollHost.appendChild(e.wrapper), e;
2456
+ let t = document.createElement("div");
2457
+ t.style.cssText = "position:absolute;";
2458
+ let n = document.createElement("canvas");
2459
+ n.style.cssText = "display:block;background:#fff;", this._applyPageShadow(n), t.appendChild(n);
2460
+ let r = null;
2461
+ 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));
2462
+ let i = document.createElement("div");
2463
+ i.style.cssText = "position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;pointer-events:none;", t.appendChild(i);
2464
+ let a = null, o = null, s = null;
2465
+ this._commentsEnabled() && (a = document.createElement("div"), a.style.cssText = "position:absolute;inset:0;overflow:hidden;pointer-events:none;", t.appendChild(a), this._commentsOptions()?.cards !== !1 && (o = document.createElement("div"), o.style.cssText = "position:absolute;top:0;height:100%;box-sizing:border-box;overflow-x:hidden;overflow-y:auto;pointer-events:auto;", this._syncCommentMarginGeometry(o), this._commentsOptions()?.connectors !== void 0 && (s = document.createElement("div"), s.style.cssText = "position:absolute;top:0;left:0;overflow:visible;pointer-events:none;", t.appendChild(s)), t.appendChild(o)));
2466
+ let c = ce(t, this._opts.enableElementSelection === !0);
2467
+ return this._scrollHost.appendChild(t), {
2468
+ wrapper: t,
2469
+ canvas: n,
2470
+ textLayer: r,
2471
+ highlightLayer: i,
2472
+ elementLayer: c,
2473
+ commentTintLayer: a,
2474
+ commentMargin: o,
2475
+ commentDecorationLayer: s,
2476
+ commentRuns: Object.freeze([]),
2477
+ commentGeometry: null,
2478
+ renderedPage: -1,
2479
+ renderedScale: -1,
2480
+ dispatcher: new S(n, this._mode === "worker")
2481
+ };
2482
+ }
2483
+ _recycleSlot(e, t) {
2484
+ this._slots.delete(e), t.dispatcher.destroy(), this._destroyed || (t.dispatcher = new S(t.canvas, this._mode === "worker")), t.textLayer && (t.textLayer.innerHTML = "", this._clearTextLayerPreview(t.textLayer)), t.highlightLayer.innerHTML = "", t.highlightLayer.style.transform = "", t.highlightLayer.style.transformOrigin = "", t.commentTintLayer && (t.commentTintLayer.replaceChildren(), t.commentTintLayer.style.transform = "", t.commentTintLayer.style.transformOrigin = "", t.commentTintLayer.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.commentRuns = Object.freeze([]), t.commentGeometry = null, x(t.elementLayer, null), t.renderedPage = -1, t.renderedScale = -1, t.wrapper.remove(), this._free.push(t);
2485
+ }
2486
+ _positionSlot(e, t, n) {
2487
+ e.wrapper.style.top = `${n.offsets[t]}px`;
2488
+ let r = this._pageWidthPx(t), i = this._pageHeightPx(t);
2489
+ if (e.wrapper.style.width = `${r}px`, e.wrapper.style.height = `${i}px`, this._syncCommentMarginGeometry(e.commentMargin), e.commentDecorationLayer) {
2490
+ let t = this._commentMarginExtent();
2491
+ e.commentDecorationLayer.style.left = this._commentSide() === "left" ? `${-t}px` : "0px", e.commentDecorationLayer.style.width = `${r + t}px`, e.commentDecorationLayer.style.height = `${i}px`;
2492
+ }
2493
+ this._redrawElementOutlineForSlot(t, e);
2494
+ let { left: a } = this._padH(), o = Math.max(a, (this._scrollHost.clientWidth - r) / 2);
2495
+ e.wrapper.style.left = this._commentSide() === "left" && this._commentsEnabled() ? `calc(${o}px + var(--ooxml-review-origin-x, 0px))` : `${o}px`;
2496
+ }
2497
+ _dpr() {
2498
+ return this._opts.dpr ?? (typeof window < "u" && window.devicePixelRatio || 1);
2499
+ }
2500
+ _renderSlot(e, t, n = !0) {
2501
+ if (!this._doc || t.renderedPage === e) return null;
2502
+ t.renderedPage = e;
2503
+ let r = this._dpr(), i = this._pageWidthPx(e), a = this._renderEpoch, o = this._scale, s = t.dispatcher, c = s.begin();
2504
+ if (this._mode === "worker") return this._renderSlotBitmap(e, t, i, r, o, s, c, n);
2505
+ let l = [], u = !!this._opts.enableTextSelection && !!t.textLayer, d = u || this._findActive || !!t.commentTintLayer, f = d ? (e) => l.push(e) : void 0, p;
2506
+ try {
2507
+ p = $(this._doc, t.canvas, e, "main", {
2508
+ width: i,
2509
+ dpr: r,
2510
+ imageResources: this._opts.imageResources,
2511
+ defaultTextColor: this._opts.defaultTextColor,
2512
+ currentDate: this._currentDate,
2513
+ ...this._showTrackedChanges ? { showTrackedChanges: !0 } : {},
2514
+ onTextRun: f
2515
+ });
2516
+ } catch (e) {
2517
+ return n ? (this._reportRenderError(e), Promise.resolve()) : Promise.reject(e);
2518
+ }
2519
+ return p.then(() => {
2520
+ if (!(!s.isCurrent(c) || a !== this._renderEpoch || this._slots.get(e) !== t || t.renderedPage !== e)) {
2521
+ if (t.renderedScale = o, u && t.textLayer) {
2522
+ let { width: n, height: r } = this._canvasCssPx(t.canvas);
2523
+ X(t.textLayer, l, n, r, this._hyperlinkHandler(), (e) => this._measureForFont(e), e);
2524
+ }
2525
+ d && this._refreshFindRuns(e, l), this._commitCommentRuns(e, t, l), this._redrawSlotHighlights(e, t);
2526
+ }
2527
+ }).catch((r) => {
2528
+ if (s.isCurrent(c) && a === this._renderEpoch && this._slots.get(e) === t && t.renderedPage === e) if (n) this._reportRenderError(r);
2529
+ else throw r;
2530
+ });
2531
+ }
2532
+ _hyperlinkHandler() {
2533
+ return this._opts.enableHyperlinks === !1 ? void 0 : this._opts.onHyperlinkClick || ((e) => {
2534
+ if (e.kind === "external") {
2535
+ u(e.url);
2536
+ return;
2537
+ }
2538
+ let t = this._doc;
2539
+ if (!t) return;
2540
+ let n = ++this._internalHyperlinkGeneration;
2541
+ this._navigateInternalHyperlink(t, e.ref, n).catch((e) => this._reportRenderError(e));
2542
+ });
2543
+ }
2544
+ async _navigateInternalHyperlink(e, t, n) {
2545
+ if (e.layoutComplete || await e.waitUntilLayoutComplete(), this._destroyed || this._doc !== e || n !== this._internalHyperlinkGeneration) return;
2546
+ let r = e.getBookmarkPage(t);
2547
+ r !== void 0 && this.scrollToPage(r);
2548
+ }
2549
+ _measureForFont(e) {
2550
+ this._measureCtx === void 0 && (this._measureCtx = document.createElement("canvas").getContext("2d"));
2551
+ let t = this._measureCtx;
2552
+ return !t || typeof t.measureText != "function" ? (e) => e.length : (t.font = e, (e) => t.measureText(e).width);
2553
+ }
2554
+ _canvasCssPx(e) {
2555
+ return {
2556
+ width: parseFloat(e.style.width) || e.width,
2557
+ height: parseFloat(e.style.height) || e.height
2558
+ };
2559
+ }
2560
+ _reportRenderError(e) {
2561
+ this._errorRouter.report(e);
2562
+ }
2563
+ async _renderSlotBitmap(e, t, n, r, i, a = t.dispatcher, o = a.begin(), s = !0) {
2564
+ if (this._bitmapInFlight.has(e) || this._slots.get(e) !== t) return;
2565
+ let c = this._renderEpoch, l = this._pageHeightPx(e);
2566
+ this._bitmapInFlight.add(e);
2567
+ let u = !1, d = !!this._opts.enableTextSelection && !!t.textLayer, f = d || this._findActive || !!t.commentTintLayer, p = [];
2568
+ try {
2569
+ let s = await $(this._doc, t.canvas, e, "worker", {
2570
+ width: n,
2571
+ dpr: r,
2572
+ imageResources: this._opts.imageResources,
2573
+ defaultTextColor: this._opts.defaultTextColor,
2574
+ currentDate: this._currentDate,
2575
+ ...this._showTrackedChanges ? { showTrackedChanges: !0 } : {},
2576
+ onTextRun: f ? (e) => p.push(e) : void 0
2577
+ });
2578
+ if (!a.isCurrent(o) || c !== this._renderEpoch || this._slots.get(e) !== t || t.renderedPage !== e) {
2579
+ s.close();
2580
+ return;
2581
+ }
2582
+ if (!a.commitBitmap(o, s, {
2583
+ cssWidth: n,
2584
+ cssHeight: l
2585
+ })) return;
2586
+ if (t.renderedScale = i, t.textLayer && (this._clearTextLayerPreview(t.textLayer), d)) {
2587
+ let { width: n, height: r } = this._canvasCssPx(t.canvas);
2588
+ X(t.textLayer, p, n, r, this._hyperlinkHandler(), (e) => this._measureForFont(e), e);
2589
+ }
2590
+ f && this._refreshFindRuns(e, p), this._commitCommentRuns(e, t, p), this._redrawSlotHighlights(e, t), u = !0;
2591
+ } catch (n) {
2592
+ if (a.isCurrent(o) && c === this._renderEpoch && this._slots.get(e) === t && t.renderedPage === e) if (s) this._reportRenderError(n);
2593
+ else throw n;
2594
+ } finally {
2595
+ this._bitmapInFlight.delete(e);
2596
+ let n = this._slots.get(e);
2597
+ if (!u && n && (n !== t || c !== this._renderEpoch || !a.isCurrent(o)) && !this._bitmapInFlight.has(e) && !this._destroyed) {
2598
+ let t = n.dispatcher;
2599
+ await this._renderSlotBitmap(e, n, this._pageWidthPx(e), this._dpr(), this._scale, t, t.begin(), s);
2600
+ }
2601
+ }
2602
+ }
2603
+ setScale(e) {
2604
+ let t = this._effectiveZoomMin(), n = this._opts.zoomMax ?? 4, r = Math.min(n, Math.max(t, e)), i = this._pendingZoomAnchor;
2605
+ if (this._pendingZoomAnchor = null, !this._doc || this._doc.pageCount === 0 || !this._scaleEstablished) {
2606
+ this._pendingScale = r;
2607
+ return;
2608
+ }
2609
+ if (r === this._scale) return;
2610
+ let a = this._scale, o = i ? i.y : 0, s = this._range(), c = this._scrollHost.scrollTop, l = c + o, u = this._pageIndexAtOffset(s, l), d = this._heights[u] || 0, f = d > 0 ? (l - s.offsets[u]) / d : 0;
2611
+ f = Math.min(1, Math.max(0, f));
2612
+ let p = this._padH().left, m = this._scrollHost.scrollLeft || 0;
2613
+ this._renderEpoch++, this._scale = r, this._recomputeHeights();
2614
+ let h = w(this._scrollGeometry, 0, this._scrollHost.clientHeight, this._overscan());
2615
+ this._spacer.style.height = `${h.totalHeight}px`, this._syncSpacerWidth();
2616
+ let g = Math.max(0, h.totalHeight - this._scrollHost.clientHeight), _ = (h.offsets[u] ?? 0) + f * (this._heights[u] || 0), v = l < (s.offsets[0] ?? 0) ? c : _ - o;
2617
+ if (this._scrollHost.scrollTop = Math.min(g, Math.max(0, v)), i) {
2618
+ let e = Math.max(0, (this._spacer.offsetWidth || 0) - this._scrollHost.clientWidth);
2619
+ this._scrollHost.scrollLeft = te(m, i.x - p, a, r, { maxScroll: e });
2620
+ }
2621
+ this._previewVisible(), this._scheduleSettle(), this._opts.onScaleChange?.(r);
2622
+ }
2623
+ getScale() {
2624
+ return this._scaleEstablished ? this._scale : this._pendingScale ?? 1;
2625
+ }
2626
+ zoomIn() {
2627
+ this.setScale(me(this.getScale()));
2628
+ }
2629
+ zoomOut() {
2630
+ this.setScale(_e(this.getScale(), this._effectiveZoomMin()));
2631
+ }
2632
+ _effectiveZoomMin() {
2633
+ let e = this._opts.zoomMin ?? .1;
2634
+ return this._scaleEstablished && this._prevBase > 0 ? Math.min(e, this._prevBase) : e;
2635
+ }
2636
+ fitWidth() {
2637
+ this._fit("width");
2638
+ }
2639
+ fitPage() {
2640
+ this._fit("page");
2641
+ }
2642
+ _fit(e) {
2643
+ if (!this._doc || this._doc.pageCount === 0) return;
2644
+ let t = this._doc.pageSize(0), n = y({
2645
+ contentWidth: (e === "width" ? this._widestPageWidthPt() : t.widthPt) * D,
2646
+ contentHeight: t.heightPt * D,
2647
+ containerWidth: this._fitWidthPx(),
2648
+ containerHeight: this._scrollHost.clientHeight
2649
+ }, e);
2650
+ n <= 0 || this.setScale(n);
2651
+ }
2652
+ _previewVisible() {
2653
+ if (!this._doc || this._doc.pageCount === 0) return;
2654
+ let e = this._range();
2655
+ this._lastRange = e;
2656
+ for (let [t, n] of [...this._slots]) (t < e.start || t > e.end) && this._recycleSlot(t, n);
2657
+ for (let t = e.start; t <= e.end; t++) {
2658
+ let n = this._slots.get(t);
2659
+ if (n) this._previewSlot(n, t, e);
2660
+ else {
2661
+ let n = this._acquireSlot();
2662
+ this._positionSlot(n, t, e), this._slots.set(t, n), this._renderSlot(t, n);
2663
+ }
2664
+ }
2665
+ this._emitVisiblePageChange(e);
2666
+ }
2667
+ _previewSlot(e, t, n) {
2668
+ if (this._positionSlot(e, t, n), e.canvas.style.width = `${this._pageWidthPx(t)}px`, e.canvas.style.height = `${this._pageHeightPx(t)}px`, e.renderedScale > 0) {
2669
+ let n = this._scale / e.renderedScale;
2670
+ e.textLayer && (e.textLayer.style.transformOrigin = "0 0", e.textLayer.style.width = `${this._pageWidthPx(t) / n}px`, e.textLayer.style.height = `${this._pageHeightPx(t) / n}px`, e.textLayer.style.transform = `scale(${n})`), e.commentMargin && this._commentUi?.previewReadOnlyCommentMargin(e.commentMargin, n);
2671
+ for (let t of e.commentTintLayer?.children ?? []) t.dataset.ooxmlCommentMarker !== void 0 && (t.style.transform = `translate(-50%,-50%) scale(${n})`);
2672
+ e.commentTintLayer && (e.commentTintLayer.style.visibility = ""), e.commentMargin && (e.commentMargin.style.visibility = ""), e.commentDecorationLayer && (e.commentDecorationLayer.style.visibility = "");
2673
+ return;
2674
+ }
2675
+ e.commentTintLayer && (e.commentTintLayer.style.visibility = "hidden"), e.commentMargin && (e.commentMargin.style.visibility = "hidden"), e.commentDecorationLayer && (e.commentDecorationLayer.style.visibility = "hidden");
2676
+ }
2677
+ _clearTextLayerPreview(e) {
2678
+ e.style.transform = "", e.style.transformOrigin = "", e.style.width = "100%", e.style.height = "100%";
2679
+ }
2680
+ _scheduleSettle() {
2681
+ this._settleTimer !== null && clearTimeout(this._settleTimer), this._settleTimer = setTimeout(() => {
2682
+ this._settleTimer = null, this._settleRender();
2683
+ }, jn);
2684
+ }
2685
+ _settleRender() {
2686
+ if (!(this._destroyed || !this._doc || this._doc.pageCount === 0)) for (let [e, t] of [...this._slots]) t.renderedScale !== this._scale && this._refreshSlotAtomically(e, t);
2687
+ }
2688
+ _refreshSlotAtomically(e, t) {
2689
+ if (!this._doc) return;
2690
+ let n = this._dpr(), r = this._pageWidthPx(e), i = this._scale, a = this._renderEpoch;
2691
+ if (this._mode === "worker") {
2692
+ this._renderSlotBitmap(e, t, r, n, i);
2693
+ return;
2694
+ }
2695
+ let o = document.createElement("canvas");
2696
+ o.style.cssText = "display:block;background:#fff;", this._applyPageShadow(o);
2697
+ let s = new S(o, !1), c = s.begin(), l = [], u = !!this._opts.enableTextSelection && !!t.textLayer, d = u || this._findActive || !!t.commentTintLayer, f = d ? (e) => l.push(e) : void 0;
2698
+ $(this._doc, o, e, "main", {
2699
+ width: r,
2700
+ dpr: n,
2701
+ imageResources: this._opts.imageResources,
2702
+ defaultTextColor: this._opts.defaultTextColor,
2703
+ currentDate: this._currentDate,
2704
+ ...this._showTrackedChanges ? { showTrackedChanges: !0 } : {},
2705
+ onTextRun: f
2706
+ }).then(() => {
2707
+ if (!s.isCurrent(c) || a !== this._renderEpoch || this._slots.get(e) !== t || t.renderedPage !== e) {
2708
+ s.destroy();
2709
+ return;
2710
+ }
2711
+ let n = t.canvas;
2712
+ if (t.dispatcher.destroy(), t.wrapper.insertBefore(o, n), n.remove(), t.canvas = o, t.dispatcher = s, t.renderedScale = i, t.textLayer && (this._clearTextLayerPreview(t.textLayer), u)) {
2713
+ let { width: n, height: r } = this._canvasCssPx(o);
2714
+ X(t.textLayer, l, n, r, this._hyperlinkHandler(), (e) => this._measureForFont(e), e);
2715
+ }
2716
+ d && this._refreshFindRuns(e, l), this._commitCommentRuns(e, t, l), this._redrawSlotHighlights(e, t);
2717
+ }).catch((n) => {
2718
+ s.isCurrent(c) && a === this._renderEpoch && this._slots.get(e) === t && t.renderedPage === e && this._reportRenderError(n), s.destroy();
2719
+ });
2720
+ }
2721
+ async setShowTrackedChanges(e) {
2722
+ let t = ++this._layoutViewGeneration, n = this._doc;
2723
+ if (this._showTrackedChanges === e) {
2724
+ n && await K(n, {
2725
+ showTrackedChanges: e,
2726
+ currentDate: this._currentDate
2727
+ }, this);
2728
+ return;
2729
+ }
2730
+ (!n || await K(n, {
2731
+ showTrackedChanges: e,
2732
+ currentDate: this._currentDate
2733
+ }, this)) && (this._destroyed || t !== this._layoutViewGeneration || n !== this._doc || (this._showTrackedChanges = e, this._find.invalidate(), this._applyLayoutPublication({
2734
+ pageCount: n?.pageCount ?? 0,
2735
+ exact: !0,
2736
+ complete: n?.layoutComplete !== !1
2737
+ })));
2738
+ }
2739
+ scrollToPage(e, t) {
2740
+ if (!this._doc || this._doc.pageCount === 0 || !this._scaleEstablished) return;
2741
+ let n = Math.max(0, Math.min(e, this._doc.pageCount - 1)), r = w(this._scrollGeometry, 0, this._scrollHost.clientHeight, this._overscan()), i = ve(r.offsets[n] ?? 0, Math.max(0, r.totalHeight - this._scrollHost.clientHeight)), a = this._scrollHost;
2742
+ typeof a.scrollTo == "function" ? a.scrollTo({
2743
+ top: i,
2744
+ behavior: t?.behavior ?? "auto"
2745
+ }) : this._scrollHost.scrollTop = i, this._mountVisible();
2746
+ }
2747
+ _scrollToPageTarget(e, t, n) {
2748
+ let r = w(this._scrollGeometry, 0, this._scrollHost.clientHeight, this._overscan()), i = this._pageWidthPx(e), { left: a } = this._padH(), o = Math.max(a, (this._scrollHost.clientWidth - i) / 2) + this._reviewOriginPx, s = Math.max(0, r.totalHeight - this._scrollHost.clientHeight), c = this._spacer.offsetWidth || Number.parseFloat(this._spacer.style.width) || 0, l = Math.max(0, c - this._scrollHost.clientWidth), u = Math.min(s, Math.max(0, (r.offsets[e] ?? 0) + t.y + t.h / 2 - this._scrollHost.clientHeight / 2)), d = Math.min(l, Math.max(0, o + t.x + t.w / 2 - this._scrollHost.clientWidth / 2)), f = this._scrollHost;
2749
+ typeof f.scrollTo == "function" ? f.scrollTo({
2750
+ top: u,
2751
+ left: d,
2752
+ behavior: n?.behavior ?? "auto"
2753
+ }) : (this._scrollHost.scrollTop = u, this._scrollHost.scrollLeft = d), this._mountVisible();
2754
+ }
2755
+ _resetCommentNavigation() {
2756
+ this._commentNavigationGeneration++, this._commentPageById.clear(), this._commentRunsByPage.clear(), this._commentIndexedPages.clear(), this._commentScanFrontier = 0;
2757
+ }
2758
+ _advanceCommentScanFrontier() {
2759
+ for (; this._commentIndexedPages.has(this._commentScanFrontier);) this._commentScanFrontier++;
2760
+ }
2761
+ _indexCommentPages(e, t, n) {
2762
+ if (!this._commentIndexedPages.has(e)) {
2763
+ for (let r of n) this._commentPageById.has(r.commentId) || A(r, t).length > 0 && this._commentPageById.set(r.commentId, e);
2764
+ this._commentIndexedPages.add(e), this._advanceCommentScanFrontier();
2765
+ }
2766
+ }
2767
+ async _commentRunsForPage(e, t) {
2768
+ for (; !this._destroyed && this._doc === t;) {
2769
+ let n = this._scale, r = this._commentRunsByPage.get(e);
2770
+ (!r || r.scale !== n) && (r = {
2771
+ scale: n,
2772
+ runs: t.collectPageRuns(e, {
2773
+ width: this._pageWidthPx(e),
2774
+ currentDate: this._currentDate,
2775
+ ...this._showTrackedChanges ? { showTrackedChanges: !0 } : {}
2776
+ })
2777
+ }, this._commentRunsByPage.set(e, r));
2778
+ try {
2779
+ let e = await r.runs;
2780
+ if (this._destroyed || this._doc !== t) return null;
2781
+ if (this._scale !== n) continue;
2782
+ return e;
2783
+ } catch (t) {
2784
+ throw this._commentRunsByPage.get(e) === r && this._commentRunsByPage.delete(e), t;
2785
+ }
2786
+ }
2787
+ return null;
2788
+ }
2789
+ async goToComment(e, t) {
2790
+ if (this._destroyed) throw Error("DocxScrollViewer is destroyed");
2791
+ let n = this._doc;
2792
+ if (!n || !n.comments.some((t) => t.id === e && t.parentId === void 0)) return !1;
2793
+ let r = ++this._commentNavigationGeneration, i = !n.layoutComplete, a = n.commentAnchorRanges().filter((t) => t.commentId === e), o = t?.pageIndex;
2794
+ if (o !== void 0 && (!Number.isInteger(o) || o < 0)) return !1;
2795
+ let s = o ?? this._commentPageById.get(e), c, l = async () => {
2796
+ let t = n.commentAnchorRanges();
2797
+ for (; s === void 0 && this._commentScanFrontier < n.pageCount;) {
2798
+ let i = this._commentScanFrontier, a = await this._commentRunsForPage(i, n);
2799
+ if (this._destroyed) throw Error("DocxScrollViewer is destroyed");
2800
+ if (this._doc !== n || r !== this._commentNavigationGeneration || !a) return;
2801
+ this._indexCommentPages(i, a, t), s = this._commentPageById.get(e);
2802
+ }
2803
+ return s;
2804
+ };
2805
+ if (o === void 0 && s === void 0 && a.length > 0 && await l(), i && (o !== void 0 && o >= n.pageCount || o === void 0 && s === void 0)) {
2806
+ if (await this._errorRouter.ownBackgroundLifecycle(() => n.waitUntilLayoutComplete()), this._destroyed) throw Error("DocxScrollViewer is destroyed");
2807
+ if (this._doc !== n || r !== this._commentNavigationGeneration) return !1;
2808
+ a = n.commentAnchorRanges().filter((t) => t.commentId === e), this._commentPageById.clear(), this._commentRunsByPage.clear(), this._commentIndexedPages.clear(), this._commentScanFrontier = 0, s = o, o === void 0 && a.length > 0 && await l();
2809
+ }
2810
+ if (a.length === 0 || o !== void 0 && o >= n.pageCount || s === void 0) return !1;
2811
+ let u = await this._commentRunsForPage(s, n);
2812
+ if (this._destroyed) throw Error("DocxScrollViewer is destroyed");
2813
+ if (this._doc !== n || r !== this._commentNavigationGeneration || !u || (c = a.flatMap((e) => A(e, u))[0], !c)) return !1;
2814
+ this._activeCommentId = e, this._activeCommentPage = s, this._elementContext = null, this._scrollToPageTarget(s, c, t);
2815
+ for (let [e, t] of this._slots) this._redrawSlotComments(e, t);
2816
+ return this._emitSelectionContextChange(), !0;
2817
+ }
2818
+ async findText(e, t = {}) {
2819
+ if (!this._doc) return [];
2820
+ let n = ++this._findRequestGeneration;
2821
+ if (this._doc.layoutComplete === !1) {
2822
+ let e = this._doc;
2823
+ if (await this._errorRouter.ownBackgroundLifecycle(() => e.waitUntilLayoutComplete()), this._destroyed || this._doc !== e || n !== this._findRequestGeneration) return [];
2824
+ }
2825
+ this._findActive = e.length > 0;
2826
+ let r = await this._errorRouter.ownAwaitable(() => this._find.find(e, t));
2827
+ return this._redrawHighlights(), r;
2828
+ }
2829
+ async findNext() {
2830
+ return this._activateMatch(this._find.next());
2831
+ }
2832
+ async findPrev() {
2833
+ return this._activateMatch(this._find.prev());
2834
+ }
2835
+ clearFind() {
2836
+ this._findRequestGeneration++, this._findActive = !1, this._find.invalidate(), this._redrawHighlights();
2837
+ }
2838
+ async _activateMatch(e) {
2839
+ return e && this.scrollToPage(e.location.page), this._redrawHighlights(), e;
2840
+ }
2841
+ async _collectPageRuns(e) {
2842
+ return this._doc ? this._doc.collectPageRuns(e, {
2843
+ width: this._pageWidthPx(e),
2844
+ currentDate: this._currentDate,
2845
+ ...this._showTrackedChanges ? { showTrackedChanges: !0 } : {}
2846
+ }) : [];
2847
+ }
2848
+ _redrawHighlights() {
2849
+ for (let [e, t] of this._slots) this._redrawSlotHighlights(e, t);
2850
+ }
2851
+ _refreshFindRuns(e, t) {
2852
+ this._findActive && this._find.setPageRuns(e, t);
2853
+ }
2854
+ _commitCommentRuns(e, t, n) {
2855
+ t.commentTintLayer && (t.commentRuns = Object.freeze([...n]), this._commentRunsByPage.set(e, {
2856
+ scale: this._scale,
2857
+ runs: Promise.resolve(t.commentRuns)
2858
+ }), this._doc && e === this._commentScanFrontier && this._indexCommentPages(e, t.commentRuns, this._doc.commentAnchorRanges()), t.commentTintLayer.style.transform = "", t.commentTintLayer.style.transformOrigin = "", this._redrawSlotComments(e, t), t.commentTintLayer.style.visibility = "", t.commentMargin && (t.commentMargin.style.visibility = ""), t.commentDecorationLayer && (t.commentDecorationLayer.style.visibility = ""));
2859
+ }
2860
+ _redrawSlotComments(e, t) {
2861
+ if (!this._doc || !t.commentTintLayer) return;
2862
+ this._syncCommentMarginGeometry(t.commentMargin);
2863
+ let n = this._commentUi;
2864
+ if (!n) {
2865
+ t.commentTintLayer.replaceChildren(), t.commentMargin?.replaceChildren(), t.commentDecorationLayer?.replaceChildren(), t.commentGeometry = null;
2866
+ return;
2867
+ }
2868
+ t.commentGeometry = n.buildDocxCommentMargin(t.commentTintLayer, t.commentMargin, t.commentRuns, {
2869
+ comments: this._doc.comments,
2870
+ anchors: this._doc.commentAnchorRanges()
2871
+ }, this._pageWidthPx(e), this._pageHeightPx(e), this._activeCommentId, (t, n) => {
2872
+ let r = n ? t : this._activeCommentId === t ? null : this._activeCommentId;
2873
+ if (r !== this._activeCommentId) {
2874
+ this._activeCommentId = r, this._activeCommentPage = r ? e : null, this._elementContext = null;
2875
+ for (let [e, t] of this._slots) this._redrawSlotComments(e, t);
2876
+ this._emitSelectionContextChange();
2877
+ }
2878
+ }, this._commentZoom(), 280, 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);
2879
+ }
2880
+ _redrawSlotCommentConnectors(e, t) {
2881
+ let n = t.commentDecorationLayer, r = t.commentMargin, i = t.commentGeometry, a = this._commentsOptions()?.connectors;
2882
+ if (!n || !r || !i || !a) return;
2883
+ let o = this._pageWidthPx(e), s = this._pageHeightPx(e), c = this._commentSide(), l = this._commentMarginExtent(), u = this._commentUi;
2884
+ u && u.buildReadOnlyCommentDecoration(n, Object.freeze({
2885
+ surfaceBounds: Object.freeze({
2886
+ x: c === "left" ? -l : 0,
2887
+ y: 0,
2888
+ width: o + l,
2889
+ height: s
2890
+ }),
2891
+ contentBounds: Object.freeze({
2892
+ x: 0,
2893
+ y: 0,
2894
+ width: o,
2895
+ height: s
2896
+ }),
2897
+ side: c,
2898
+ threads: u.projectReadOnlyCommentMarginScroll(i, r.scrollTop)
2899
+ }), {
2900
+ route: a.route ?? "bezier",
2901
+ stroke: a.stroke ?? "solid",
2902
+ color: a.color,
2903
+ activeColor: a.activeColor
2904
+ });
2905
+ }
2906
+ _scheduleCommentGeometry(e, t, n = !1) {
2907
+ let r = this._pendingCommentGeometry.get(e);
2908
+ if (this._pendingCommentGeometry.set(e, {
2909
+ slot: t,
2910
+ connectorsOnly: r?.slot === t ? r.connectorsOnly && n : n
2911
+ }), this._commentGeometryScheduled) return;
2912
+ this._commentGeometryScheduled = !0;
2913
+ let i = () => {
2914
+ this._commentGeometryScheduled = !1, this._commentGeometryFrame = null;
2915
+ let e = [...this._pendingCommentGeometry];
2916
+ if (this._pendingCommentGeometry.clear(), !this._destroyed) for (let [t, n] of e) {
2917
+ let { slot: e, connectorsOnly: r } = n;
2918
+ this._slots.get(t) === e && e.renderedScale === this._scale && (r ? this._redrawSlotCommentConnectors(t, e) : this._redrawSlotComments(t, e));
2919
+ }
2920
+ }, a = this._wrapper.ownerDocument.defaultView;
2921
+ a?.requestAnimationFrame ? this._commentGeometryFrame = a.requestAnimationFrame(i) : queueMicrotask(i);
2922
+ }
2923
+ _redrawSlotHighlights(e, t) {
2924
+ if (!this._findActive) {
2925
+ t.highlightLayer.innerHTML = "";
2926
+ return;
2927
+ }
2928
+ let n = this._find.pageRuns(e);
2929
+ if (!n) {
2930
+ t.highlightLayer.innerHTML = "";
2931
+ return;
2932
+ }
2933
+ Z(t.highlightLayer, n, this._find.pageHighlights(e), this._pageWidthPx(e), this._pageHeightPx(e), (e) => this._measureForFont(e), this._opts.findHighlightColors);
2934
+ }
2935
+ _onResize() {
2936
+ if (!this._doc || this._doc.pageCount === 0) return;
2937
+ if (!this._scaleEstablished) {
2938
+ this.relayout();
2939
+ return;
2940
+ }
2941
+ if (this._opts.refitOnResize === !1) {
2942
+ this._lastFitWidth = this._fitWidthPx(), this._mountVisible();
2943
+ return;
2944
+ }
2945
+ let e = this._baseScale();
2946
+ if (e <= 0) return;
2947
+ let t = this._fitWidthPx();
2948
+ if (t === this._lastFitWidth) {
2949
+ this._mountVisible();
2950
+ return;
2951
+ }
2952
+ this._lastFitWidth = t;
2953
+ let n = this._prevBase > 0 ? this._scale / this._prevBase : 1;
2954
+ this._prevBase = e, this.setScale(e * n), this._mountVisible();
2955
+ }
2956
+ get topVisiblePage() {
2957
+ return this._lastRange?.topIndex ?? 0;
2958
+ }
2959
+ mountedPageIndicesForTest() {
2960
+ return [...this._slots.keys()];
2961
+ }
2962
+ scaleForTest() {
2963
+ return this._scale;
2964
+ }
2965
+ baseScaleForTest() {
2966
+ return this._baseScale();
2967
+ }
2968
+ renderEpochForTest() {
2969
+ return this._renderEpoch;
2970
+ }
2971
+ resizeForTest() {
2972
+ this._onResize();
2973
+ }
2974
+ contentAtViewportYForTest(e) {
2975
+ let t = this._range(), n = this._scrollHost.scrollTop + e, r = this._pageIndexAtOffset(t, n), i = this._heights[r] || 0;
2976
+ return {
2977
+ page: r,
2978
+ frac: i > 0 ? Math.min(1, Math.max(0, (n - t.offsets[r]) / i)) : 0
2979
+ };
2980
+ }
2981
+ viewportYOfForTest(e, t) {
2982
+ return (this._range().offsets[e] ?? 0) + t * (this._heights[e] || 0) - this._scrollHost.scrollTop;
2983
+ }
2984
+ async getResourceMetrics() {
2985
+ if (!this._doc) throw Error("Document not loaded");
2986
+ return await this._doc.getResourceMetrics();
2987
+ }
2988
+ getSelectionContext(e = {}) {
2989
+ if (this._destroyed) throw Error("DocxScrollViewer is destroyed");
2990
+ return (this._doc && this._activeCommentId !== null && this._activeCommentPage !== null ? wn(this._doc.comments, this._doc.commentAnchorRanges(), this._activeCommentId, this._activeCommentPage, e) : null) || ((this._opts.enableTextSelection ? Q(this._wrapper, this._wrapper.ownerDocument?.getSelection?.() ?? null, e) : null) ?? (this._elementContext ? nn(this._elementContext, e.maxTextCharacters) : null));
2991
+ }
2992
+ _emitSelectionContextChange() {
2993
+ let e = this.getSelectionContext();
2994
+ e?.kind === "text" && (this._elementHitGeneration++, this._elementContext = null, this._redrawElementOutlines());
2995
+ let t = JSON.stringify(e);
2996
+ t !== this._selectionContextKey && (this._selectionContextKey = t, this._opts.onSelectionContextChange?.(e ? structuredClone(e) : null));
2997
+ }
2998
+ _setElementContext(e) {
2999
+ this._elementContext = e ? structuredClone(e) : null, this._redrawElementOutlines(), this._emitSelectionContextChange();
3000
+ }
3001
+ _invalidateElementContext(e = !0) {
3002
+ this._elementHitGeneration++, this._elementContext = null, this._redrawElementOutlines(), e && this._emitSelectionContextChange();
3003
+ }
3004
+ _redrawElementOutlines() {
3005
+ for (let [e, t] of this._slots) this._redrawElementOutlineForSlot(e, t);
3006
+ }
3007
+ _redrawElementOutlineForSlot(e, t) {
3008
+ let n = this._elementContext, r = this._doc;
3009
+ if (!n || !r || n.pageIndex !== e) {
3010
+ x(t.elementLayer, null);
3011
+ return;
3012
+ }
3013
+ let i = r.pageSize(e);
3014
+ x(t.elementLayer, {
3015
+ x: n.bounds.xPt / i.widthPt,
3016
+ y: n.bounds.yPt / i.heightPt,
3017
+ width: n.bounds.widthPt / i.widthPt,
3018
+ height: n.bounds.heightPt / i.heightPt
3019
+ });
3020
+ }
3021
+ async _onElementClick(e) {
3022
+ this._destroyed || e.defaultPrevented || e.button !== 0 || await this._resolveContextAt(e);
3023
+ }
3024
+ _onContextMenu(e) {
3025
+ let t;
3026
+ this._opts.onContextMenu?.({
3027
+ originalEvent: e,
3028
+ getContext: () => t ??= this._resolveContextAt(e)
3029
+ });
3030
+ }
3031
+ async _resolveContextAt(e) {
3032
+ let t = this._doc;
3033
+ if (this._destroyed || !t) return null;
3034
+ if (this._opts.enableTextSelection && Q(this._wrapper, this._wrapper.ownerDocument?.getSelection?.() ?? null)) return this._emitSelectionContextChange(), this._destroyed ? null : this.getSelectionContext();
3035
+ if (!this._opts.enableElementSelection) return this.getSelectionContext();
3036
+ let n = e.target, r = [...this._slots].find(([, e]) => n !== null && e.wrapper.contains(n));
3037
+ if (!r) return this._invalidateElementContext(), null;
3038
+ let [i, a] = r, o = a.canvas.getBoundingClientRect();
3039
+ if (o.width <= 0 || o.height <= 0) return this._invalidateElementContext(), null;
3040
+ let s = e.clientX - o.left, c = e.clientY - o.top;
3041
+ if (s < 0 || c < 0 || s > o.width || c > o.height) return this._invalidateElementContext(), null;
3042
+ let l = ++this._elementHitGeneration, u = t.pageSize(i), d;
3043
+ try {
3044
+ d = await t.getElementContextAt(i, {
3045
+ xPt: s / o.width * u.widthPt,
3046
+ yPt: c / o.height * u.heightPt
3047
+ }, {
3048
+ currentDate: this._currentDate,
3049
+ ...this._showTrackedChanges ? { showTrackedChanges: !0 } : {},
3050
+ maxTextCharacters: F
3051
+ });
3052
+ } catch (e) {
3053
+ if (this._destroyed || l !== this._elementHitGeneration || t !== this._doc) return null;
3054
+ throw e;
3055
+ }
3056
+ return this._destroyed || l !== this._elementHitGeneration || t !== this._doc ? null : (this._setElementContext(d), this._destroyed ? null : this.getSelectionContext());
3057
+ }
3058
+ destroy() {
3059
+ if (!this._destroyed) {
3060
+ this._destroyed = !0, this._findRequestGeneration++, this._errorRouter.close(), this._unbindLayoutDocument(), this._layoutViewGeneration++, this._resetCommentNavigation(), this._find.invalidate(), this._findActive = !1, 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);
3061
+ for (let [e, t] of [...this._slots]) this._recycleSlot(e, t);
3062
+ this._free.length = 0, this._documentOwner.close(), this._wrapper.remove();
3063
+ }
3064
+ }
3065
+ };
3066
+ //#endregion
3067
+ //#region packages/docx/src/types.ts
3068
+ function zn(e) {
3069
+ let t = [];
3070
+ for (let n of e.content) {
3071
+ if (n.type !== "paragraph") continue;
3072
+ let e = "";
3073
+ for (let t of n.runs) t.type === "text" && !t.noteRef && (e += t.text);
3074
+ e = e.trim(), e && t.push(e);
3075
+ }
3076
+ return t.join(" ");
3077
+ }
3078
+ //#endregion
3079
+ //#region src/docx.ts
3080
+ var Bn = /* @__PURE__ */ e({
3081
+ DocxDocument: () => J,
3082
+ DocxScrollViewer: () => Rn,
3083
+ DocxViewer: () => An,
3084
+ OoxmlDecodedImageLimitError: () => rt,
3085
+ OoxmlError: () => c,
3086
+ OoxmlResourceLimitError: () => d,
3087
+ TiffDecodeError: () => it,
3088
+ autoResize: () => ee,
3089
+ buildDocxHighlightLayer: () => Z,
3090
+ buildDocxTextLayer: () => X,
3091
+ isOoxmlDecodedImageLimitError: () => nt,
3092
+ isTiffDecodeError: () => at,
3093
+ noteText: () => zn,
3094
+ openExternalHyperlink: () => u,
3095
+ readDocxTextSelectionContext: () => Q,
3096
+ resolveCommentAnchorRuns: () => A,
3097
+ resolveDocxCommentThreads: () => ut,
3098
+ resolveRevisionAnchorRuns: () => ln
3099
+ });
3100
+ //#endregion
3101
+ export { Q as a, J as c, An as i, ln as l, zn as n, Z as o, Rn as r, X as s, Bn as t };