@jean-is/render 0.8.0-rba68a676ffad → 0.8.0-rede3e4e8e9a5

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 (1421) hide show
  1. package/brand.js +3 -1
  2. package/caps/charts/charts.css +5 -2
  3. package/caps/charts/charts.js +45 -24
  4. package/caps/charts/option.js +11 -1
  5. package/caps/files/midi.js +1 -1
  6. package/caps/files/office.js +4 -4
  7. package/caps/games/file.js +56 -0
  8. package/caps/games/frame.css +22 -0
  9. package/caps/games/guard.js +86 -0
  10. package/caps/games/page.js +52 -0
  11. package/caps/games/shell.js +260 -0
  12. package/caps/interactive/apps.js +23 -8
  13. package/caps/interactive/diagram.js +96 -22
  14. package/caps/interactive/interactive.css +22 -6
  15. package/caps/interactive/interactive.js +25 -10
  16. package/caps/interactive/live.js +96 -0
  17. package/caps/interactive/map.js +22 -2
  18. package/caps/interactive/mode.js +9 -6
  19. package/caps/interactive/page-diagram.js +6 -2
  20. package/caps/interactive/parts.js +124 -0
  21. package/caps/interactive/view-parts.js +209 -0
  22. package/caps/layouts/layouts.css +12 -12
  23. package/caps/layouts/layouts.js +25 -17
  24. package/caps/layouts/shapes.js +1 -1
  25. package/caps/made/formats.js +84 -46
  26. package/caps/made/paper.js +142 -0
  27. package/caps/math/math.js +2 -2
  28. package/caps/scores/scores.css +10 -4
  29. package/caps/scores/scores.js +99 -51
  30. package/caps/share/view.js +1 -1
  31. package/caps/skills/directory.js +6 -3
  32. package/caps/skills/sources.js +4 -2
  33. package/caps/slides/edit.js +2 -2
  34. package/caps/slides/kit-page.css +8 -2
  35. package/caps/slides/kit-page.js +47 -38
  36. package/caps/slides/kit-sample.js +36 -0
  37. package/caps/slides/kit-slot.js +10 -0
  38. package/caps/slides/kit.js +3 -0
  39. package/caps/slides/save.js +24 -58
  40. package/caps/slides/slides.css +9 -9
  41. package/caps/slides/slides.js +24 -24
  42. package/caps/tables/formula.js +133 -0
  43. package/core/conversations.js +151 -0
  44. package/core/deferred.js +36 -16
  45. package/core/events.js +1 -1
  46. package/core/files.js +9 -3
  47. package/core/fs.js +3 -11
  48. package/core/hooks.js +2 -2
  49. package/core/i18n.js +1 -1
  50. package/core/llm.js +34 -45
  51. package/core/loop.js +15 -17
  52. package/core/oauth.js +31 -0
  53. package/core/search.js +1 -1
  54. package/core/settings.js +12 -11
  55. package/core/skills.js +3 -3
  56. package/core/vertex.js +37 -0
  57. package/locales/am.json +19 -3
  58. package/locales/approvals/am.json +2 -1
  59. package/locales/approvals/ar.json +2 -1
  60. package/locales/approvals/bg.json +2 -1
  61. package/locales/approvals/bn.json +2 -1
  62. package/locales/approvals/br.json +2 -1
  63. package/locales/approvals/co.json +2 -1
  64. package/locales/approvals/cs.json +2 -1
  65. package/locales/approvals/da.json +2 -1
  66. package/locales/approvals/de.json +2 -1
  67. package/locales/approvals/el.json +2 -1
  68. package/locales/approvals/en.json +2 -1
  69. package/locales/approvals/es.json +2 -1
  70. package/locales/approvals/fa.json +2 -1
  71. package/locales/approvals/fi.json +2 -1
  72. package/locales/approvals/fr-CA.json +2 -1
  73. package/locales/approvals/fr.json +2 -1
  74. package/locales/approvals/ha.json +2 -1
  75. package/locales/approvals/he.json +2 -1
  76. package/locales/approvals/hi.json +2 -1
  77. package/locales/approvals/hr.json +2 -1
  78. package/locales/approvals/hu.json +2 -1
  79. package/locales/approvals/id.json +2 -1
  80. package/locales/approvals/it.json +2 -1
  81. package/locales/approvals/ja.json +2 -1
  82. package/locales/approvals/ko.json +2 -1
  83. package/locales/approvals/mr.json +2 -1
  84. package/locales/approvals/ms.json +2 -1
  85. package/locales/approvals/nl.json +2 -1
  86. package/locales/approvals/pl.json +2 -1
  87. package/locales/approvals/pt.json +2 -1
  88. package/locales/approvals/ro.json +2 -1
  89. package/locales/approvals/ru.json +2 -1
  90. package/locales/approvals/sk.json +2 -1
  91. package/locales/approvals/sv.json +2 -1
  92. package/locales/approvals/sw.json +2 -1
  93. package/locales/approvals/ta.json +2 -1
  94. package/locales/approvals/te.json +2 -1
  95. package/locales/approvals/th.json +2 -1
  96. package/locales/approvals/tl.json +2 -1
  97. package/locales/approvals/tr.json +2 -1
  98. package/locales/approvals/uk.json +2 -1
  99. package/locales/approvals/ur.json +2 -1
  100. package/locales/approvals/vi.json +2 -1
  101. package/locales/approvals/yo.json +2 -1
  102. package/locales/approvals/zh-Hans.json +2 -1
  103. package/locales/approvals/zh-Hant.json +2 -1
  104. package/locales/ar.json +23 -3
  105. package/locales/bg.json +19 -3
  106. package/locales/bn.json +19 -3
  107. package/locales/br.json +22 -3
  108. package/locales/brains/am.json +6 -3
  109. package/locales/brains/ar.json +6 -3
  110. package/locales/brains/bg.json +6 -3
  111. package/locales/brains/bn.json +6 -3
  112. package/locales/brains/br.json +6 -3
  113. package/locales/brains/co.json +6 -3
  114. package/locales/brains/cs.json +6 -3
  115. package/locales/brains/da.json +6 -3
  116. package/locales/brains/de.json +6 -3
  117. package/locales/brains/el.json +6 -3
  118. package/locales/brains/en.json +6 -3
  119. package/locales/brains/es.json +6 -3
  120. package/locales/brains/fa.json +6 -3
  121. package/locales/brains/fi.json +6 -3
  122. package/locales/brains/fr-CA.json +6 -3
  123. package/locales/brains/fr.json +6 -3
  124. package/locales/brains/ha.json +6 -3
  125. package/locales/brains/he.json +6 -3
  126. package/locales/brains/hi.json +6 -3
  127. package/locales/brains/hr.json +6 -3
  128. package/locales/brains/hu.json +6 -3
  129. package/locales/brains/id.json +6 -3
  130. package/locales/brains/it.json +6 -3
  131. package/locales/brains/ja.json +6 -3
  132. package/locales/brains/ko.json +6 -3
  133. package/locales/brains/mr.json +6 -3
  134. package/locales/brains/ms.json +6 -3
  135. package/locales/brains/nl.json +6 -3
  136. package/locales/brains/pl.json +6 -3
  137. package/locales/brains/pt.json +6 -3
  138. package/locales/brains/ro.json +6 -3
  139. package/locales/brains/ru.json +6 -3
  140. package/locales/brains/sk.json +6 -3
  141. package/locales/brains/sv.json +6 -3
  142. package/locales/brains/sw.json +6 -3
  143. package/locales/brains/ta.json +6 -3
  144. package/locales/brains/te.json +6 -3
  145. package/locales/brains/th.json +6 -3
  146. package/locales/brains/tl.json +6 -3
  147. package/locales/brains/tr.json +6 -3
  148. package/locales/brains/uk.json +6 -3
  149. package/locales/brains/ur.json +6 -3
  150. package/locales/brains/vi.json +6 -3
  151. package/locales/brains/yo.json +6 -3
  152. package/locales/brains/zh-Hans.json +6 -3
  153. package/locales/brains/zh-Hant.json +6 -3
  154. package/locales/camera/am.json +20 -0
  155. package/locales/camera/ar.json +20 -0
  156. package/locales/camera/bg.json +20 -0
  157. package/locales/camera/bn.json +20 -0
  158. package/locales/camera/br.json +20 -0
  159. package/locales/camera/co.json +20 -0
  160. package/locales/camera/cs.json +20 -0
  161. package/locales/camera/da.json +20 -0
  162. package/locales/camera/de.json +20 -0
  163. package/locales/camera/el.json +20 -0
  164. package/locales/camera/en.json +20 -0
  165. package/locales/camera/es.json +20 -0
  166. package/locales/camera/fa.json +20 -0
  167. package/locales/camera/fi.json +20 -0
  168. package/locales/camera/fr-CA.json +20 -0
  169. package/locales/camera/fr.json +20 -0
  170. package/locales/camera/ha.json +20 -0
  171. package/locales/camera/he.json +20 -0
  172. package/locales/camera/hi.json +20 -0
  173. package/locales/camera/hr.json +20 -0
  174. package/locales/camera/hu.json +20 -0
  175. package/locales/camera/id.json +20 -0
  176. package/locales/camera/it.json +20 -0
  177. package/locales/camera/ja.json +20 -0
  178. package/locales/camera/ko.json +20 -0
  179. package/locales/camera/mr.json +20 -0
  180. package/locales/camera/ms.json +20 -0
  181. package/locales/camera/nl.json +20 -0
  182. package/locales/camera/pl.json +20 -0
  183. package/locales/camera/pt.json +20 -0
  184. package/locales/camera/ro.json +20 -0
  185. package/locales/camera/ru.json +20 -0
  186. package/locales/camera/sk.json +20 -0
  187. package/locales/camera/sv.json +20 -0
  188. package/locales/camera/sw.json +20 -0
  189. package/locales/camera/ta.json +20 -0
  190. package/locales/camera/te.json +20 -0
  191. package/locales/camera/th.json +20 -0
  192. package/locales/camera/tl.json +20 -0
  193. package/locales/camera/tr.json +20 -0
  194. package/locales/camera/uk.json +20 -0
  195. package/locales/camera/ur.json +20 -0
  196. package/locales/camera/vi.json +20 -0
  197. package/locales/camera/yo.json +20 -0
  198. package/locales/camera/zh-Hans.json +20 -0
  199. package/locales/camera/zh-Hant.json +20 -0
  200. package/locales/charts/am.json +2 -0
  201. package/locales/charts/ar.json +2 -0
  202. package/locales/charts/bg.json +2 -0
  203. package/locales/charts/bn.json +2 -0
  204. package/locales/charts/br.json +2 -0
  205. package/locales/charts/co.json +2 -0
  206. package/locales/charts/cs.json +2 -0
  207. package/locales/charts/da.json +2 -0
  208. package/locales/charts/de.json +2 -0
  209. package/locales/charts/el.json +2 -0
  210. package/locales/charts/en.json +2 -0
  211. package/locales/charts/es.json +2 -0
  212. package/locales/charts/fa.json +2 -0
  213. package/locales/charts/fi.json +2 -0
  214. package/locales/charts/fr-CA.json +2 -0
  215. package/locales/charts/fr.json +2 -0
  216. package/locales/charts/ha.json +2 -0
  217. package/locales/charts/he.json +2 -0
  218. package/locales/charts/hi.json +2 -0
  219. package/locales/charts/hr.json +2 -0
  220. package/locales/charts/hu.json +2 -0
  221. package/locales/charts/id.json +2 -0
  222. package/locales/charts/it.json +2 -0
  223. package/locales/charts/ja.json +2 -0
  224. package/locales/charts/ko.json +2 -0
  225. package/locales/charts/mr.json +2 -0
  226. package/locales/charts/ms.json +2 -0
  227. package/locales/charts/nl.json +2 -0
  228. package/locales/charts/pl.json +2 -0
  229. package/locales/charts/pt.json +2 -0
  230. package/locales/charts/ro.json +2 -0
  231. package/locales/charts/ru.json +2 -0
  232. package/locales/charts/sk.json +2 -0
  233. package/locales/charts/sv.json +2 -0
  234. package/locales/charts/sw.json +2 -0
  235. package/locales/charts/ta.json +2 -0
  236. package/locales/charts/te.json +2 -0
  237. package/locales/charts/th.json +2 -0
  238. package/locales/charts/tl.json +2 -0
  239. package/locales/charts/tr.json +2 -0
  240. package/locales/charts/uk.json +2 -0
  241. package/locales/charts/ur.json +2 -0
  242. package/locales/charts/vi.json +2 -0
  243. package/locales/charts/yo.json +2 -0
  244. package/locales/charts/zh-Hans.json +2 -0
  245. package/locales/charts/zh-Hant.json +2 -0
  246. package/locales/co.json +20 -3
  247. package/locales/creations/am.json +4 -0
  248. package/locales/creations/ar.json +4 -0
  249. package/locales/creations/bg.json +4 -0
  250. package/locales/creations/bn.json +4 -0
  251. package/locales/creations/br.json +4 -0
  252. package/locales/creations/co.json +4 -0
  253. package/locales/creations/cs.json +4 -0
  254. package/locales/creations/da.json +4 -0
  255. package/locales/creations/de.json +4 -0
  256. package/locales/creations/el.json +4 -0
  257. package/locales/creations/en.json +4 -0
  258. package/locales/creations/es.json +4 -0
  259. package/locales/creations/fa.json +4 -0
  260. package/locales/creations/fi.json +4 -0
  261. package/locales/creations/fr-CA.json +4 -0
  262. package/locales/creations/fr.json +4 -0
  263. package/locales/creations/ha.json +4 -0
  264. package/locales/creations/he.json +4 -0
  265. package/locales/creations/hi.json +4 -0
  266. package/locales/creations/hr.json +4 -0
  267. package/locales/creations/hu.json +4 -0
  268. package/locales/creations/id.json +4 -0
  269. package/locales/creations/it.json +4 -0
  270. package/locales/creations/ja.json +4 -0
  271. package/locales/creations/ko.json +4 -0
  272. package/locales/creations/mr.json +4 -0
  273. package/locales/creations/ms.json +4 -0
  274. package/locales/creations/nl.json +4 -0
  275. package/locales/creations/pl.json +4 -0
  276. package/locales/creations/pt.json +4 -0
  277. package/locales/creations/ro.json +4 -0
  278. package/locales/creations/ru.json +4 -0
  279. package/locales/creations/sk.json +4 -0
  280. package/locales/creations/sv.json +4 -0
  281. package/locales/creations/sw.json +4 -0
  282. package/locales/creations/ta.json +4 -0
  283. package/locales/creations/te.json +4 -0
  284. package/locales/creations/th.json +4 -0
  285. package/locales/creations/tl.json +4 -0
  286. package/locales/creations/tr.json +4 -0
  287. package/locales/creations/uk.json +4 -0
  288. package/locales/creations/ur.json +4 -0
  289. package/locales/creations/vi.json +4 -0
  290. package/locales/creations/yo.json +4 -0
  291. package/locales/creations/zh-Hans.json +4 -0
  292. package/locales/creations/zh-Hant.json +4 -0
  293. package/locales/cs.json +21 -3
  294. package/locales/da.json +19 -3
  295. package/locales/de.json +19 -3
  296. package/locales/designs/am.json +0 -14
  297. package/locales/designs/ar.json +0 -14
  298. package/locales/designs/bg.json +0 -14
  299. package/locales/designs/bn.json +0 -14
  300. package/locales/designs/br.json +0 -14
  301. package/locales/designs/co.json +0 -14
  302. package/locales/designs/cs.json +0 -14
  303. package/locales/designs/da.json +0 -14
  304. package/locales/designs/de.json +0 -14
  305. package/locales/designs/el.json +0 -14
  306. package/locales/designs/en.json +0 -14
  307. package/locales/designs/es.json +0 -14
  308. package/locales/designs/fa.json +0 -14
  309. package/locales/designs/fi.json +0 -14
  310. package/locales/designs/fr-CA.json +0 -14
  311. package/locales/designs/fr.json +0 -14
  312. package/locales/designs/ha.json +0 -14
  313. package/locales/designs/he.json +0 -14
  314. package/locales/designs/hi.json +0 -14
  315. package/locales/designs/hr.json +0 -14
  316. package/locales/designs/hu.json +0 -14
  317. package/locales/designs/id.json +0 -14
  318. package/locales/designs/it.json +0 -14
  319. package/locales/designs/ja.json +0 -14
  320. package/locales/designs/ko.json +0 -14
  321. package/locales/designs/mr.json +0 -14
  322. package/locales/designs/ms.json +0 -14
  323. package/locales/designs/nl.json +0 -14
  324. package/locales/designs/pl.json +0 -14
  325. package/locales/designs/pt.json +0 -14
  326. package/locales/designs/ro.json +0 -14
  327. package/locales/designs/ru.json +0 -14
  328. package/locales/designs/sk.json +0 -14
  329. package/locales/designs/sv.json +0 -14
  330. package/locales/designs/sw.json +0 -14
  331. package/locales/designs/ta.json +0 -14
  332. package/locales/designs/te.json +0 -14
  333. package/locales/designs/th.json +0 -14
  334. package/locales/designs/tl.json +0 -14
  335. package/locales/designs/tr.json +0 -14
  336. package/locales/designs/uk.json +0 -14
  337. package/locales/designs/ur.json +0 -14
  338. package/locales/designs/vi.json +0 -14
  339. package/locales/designs/yo.json +0 -14
  340. package/locales/designs/zh-Hans.json +0 -14
  341. package/locales/designs/zh-Hant.json +0 -14
  342. package/locales/dialogs/am.json +7 -0
  343. package/locales/dialogs/ar.json +7 -0
  344. package/locales/dialogs/bg.json +7 -0
  345. package/locales/dialogs/bn.json +7 -0
  346. package/locales/dialogs/br.json +7 -0
  347. package/locales/dialogs/co.json +7 -0
  348. package/locales/dialogs/cs.json +7 -0
  349. package/locales/dialogs/da.json +7 -0
  350. package/locales/dialogs/de.json +7 -0
  351. package/locales/dialogs/el.json +7 -0
  352. package/locales/dialogs/en.json +7 -0
  353. package/locales/dialogs/es.json +7 -0
  354. package/locales/dialogs/fa.json +7 -0
  355. package/locales/dialogs/fi.json +7 -0
  356. package/locales/dialogs/fr-CA.json +9 -2
  357. package/locales/dialogs/fr.json +9 -2
  358. package/locales/dialogs/ha.json +7 -0
  359. package/locales/dialogs/he.json +7 -0
  360. package/locales/dialogs/hi.json +7 -0
  361. package/locales/dialogs/hr.json +7 -0
  362. package/locales/dialogs/hu.json +7 -0
  363. package/locales/dialogs/id.json +7 -0
  364. package/locales/dialogs/it.json +7 -0
  365. package/locales/dialogs/ja.json +7 -0
  366. package/locales/dialogs/ko.json +7 -0
  367. package/locales/dialogs/mr.json +7 -0
  368. package/locales/dialogs/ms.json +7 -0
  369. package/locales/dialogs/nl.json +7 -0
  370. package/locales/dialogs/pl.json +7 -0
  371. package/locales/dialogs/pt.json +7 -0
  372. package/locales/dialogs/ro.json +7 -0
  373. package/locales/dialogs/ru.json +7 -0
  374. package/locales/dialogs/sk.json +7 -0
  375. package/locales/dialogs/sv.json +7 -0
  376. package/locales/dialogs/sw.json +7 -0
  377. package/locales/dialogs/ta.json +7 -0
  378. package/locales/dialogs/te.json +7 -0
  379. package/locales/dialogs/th.json +7 -0
  380. package/locales/dialogs/tl.json +7 -0
  381. package/locales/dialogs/tr.json +7 -0
  382. package/locales/dialogs/uk.json +7 -0
  383. package/locales/dialogs/ur.json +7 -0
  384. package/locales/dialogs/vi.json +7 -0
  385. package/locales/dialogs/yo.json +7 -0
  386. package/locales/dialogs/zh-Hans.json +7 -0
  387. package/locales/dialogs/zh-Hant.json +7 -0
  388. package/locales/documents/am.json +6 -0
  389. package/locales/documents/ar.json +6 -0
  390. package/locales/documents/bg.json +6 -0
  391. package/locales/documents/bn.json +6 -0
  392. package/locales/documents/br.json +6 -0
  393. package/locales/documents/co.json +6 -0
  394. package/locales/documents/cs.json +6 -0
  395. package/locales/documents/da.json +6 -0
  396. package/locales/documents/de.json +6 -0
  397. package/locales/documents/el.json +6 -0
  398. package/locales/documents/en.json +6 -0
  399. package/locales/documents/es.json +6 -0
  400. package/locales/documents/fa.json +6 -0
  401. package/locales/documents/fi.json +6 -0
  402. package/locales/documents/fr-CA.json +6 -0
  403. package/locales/documents/fr.json +6 -0
  404. package/locales/documents/ha.json +6 -0
  405. package/locales/documents/he.json +6 -0
  406. package/locales/documents/hi.json +6 -0
  407. package/locales/documents/hr.json +6 -0
  408. package/locales/documents/hu.json +6 -0
  409. package/locales/documents/id.json +6 -0
  410. package/locales/documents/it.json +6 -0
  411. package/locales/documents/ja.json +6 -0
  412. package/locales/documents/ko.json +6 -0
  413. package/locales/documents/mr.json +6 -0
  414. package/locales/documents/ms.json +6 -0
  415. package/locales/documents/nl.json +6 -0
  416. package/locales/documents/pl.json +6 -0
  417. package/locales/documents/pt.json +6 -0
  418. package/locales/documents/ro.json +6 -0
  419. package/locales/documents/ru.json +6 -0
  420. package/locales/documents/sk.json +6 -0
  421. package/locales/documents/sv.json +6 -0
  422. package/locales/documents/sw.json +6 -0
  423. package/locales/documents/ta.json +6 -0
  424. package/locales/documents/te.json +6 -0
  425. package/locales/documents/th.json +6 -0
  426. package/locales/documents/tl.json +6 -0
  427. package/locales/documents/tr.json +6 -0
  428. package/locales/documents/uk.json +6 -0
  429. package/locales/documents/ur.json +6 -0
  430. package/locales/documents/vi.json +6 -0
  431. package/locales/documents/yo.json +6 -0
  432. package/locales/documents/zh-Hans.json +6 -0
  433. package/locales/documents/zh-Hant.json +6 -0
  434. package/locales/el.json +19 -3
  435. package/locales/en.json +19 -3
  436. package/locales/enterprise/am.json +29 -1
  437. package/locales/enterprise/ar.json +29 -1
  438. package/locales/enterprise/bg.json +29 -1
  439. package/locales/enterprise/bn.json +29 -1
  440. package/locales/enterprise/br.json +29 -1
  441. package/locales/enterprise/co.json +29 -1
  442. package/locales/enterprise/cs.json +29 -1
  443. package/locales/enterprise/da.json +29 -1
  444. package/locales/enterprise/de.json +29 -1
  445. package/locales/enterprise/el.json +29 -1
  446. package/locales/enterprise/en.json +29 -1
  447. package/locales/enterprise/es.json +29 -1
  448. package/locales/enterprise/fa.json +29 -1
  449. package/locales/enterprise/fi.json +29 -1
  450. package/locales/enterprise/fr-CA.json +29 -1
  451. package/locales/enterprise/fr.json +29 -1
  452. package/locales/enterprise/ha.json +29 -1
  453. package/locales/enterprise/he.json +29 -1
  454. package/locales/enterprise/hi.json +29 -1
  455. package/locales/enterprise/hr.json +29 -1
  456. package/locales/enterprise/hu.json +29 -1
  457. package/locales/enterprise/id.json +29 -1
  458. package/locales/enterprise/it.json +29 -1
  459. package/locales/enterprise/ja.json +29 -1
  460. package/locales/enterprise/ko.json +29 -1
  461. package/locales/enterprise/mr.json +29 -1
  462. package/locales/enterprise/ms.json +29 -1
  463. package/locales/enterprise/nl.json +29 -1
  464. package/locales/enterprise/pl.json +29 -1
  465. package/locales/enterprise/pt.json +29 -1
  466. package/locales/enterprise/ro.json +29 -1
  467. package/locales/enterprise/ru.json +29 -1
  468. package/locales/enterprise/sk.json +29 -1
  469. package/locales/enterprise/sv.json +29 -1
  470. package/locales/enterprise/sw.json +29 -1
  471. package/locales/enterprise/ta.json +29 -1
  472. package/locales/enterprise/te.json +29 -1
  473. package/locales/enterprise/th.json +29 -1
  474. package/locales/enterprise/tl.json +29 -1
  475. package/locales/enterprise/tr.json +29 -1
  476. package/locales/enterprise/uk.json +29 -1
  477. package/locales/enterprise/ur.json +29 -1
  478. package/locales/enterprise/vi.json +29 -1
  479. package/locales/enterprise/yo.json +29 -1
  480. package/locales/enterprise/zh-Hans.json +29 -1
  481. package/locales/enterprise/zh-Hant.json +29 -1
  482. package/locales/es.json +20 -3
  483. package/locales/fa.json +19 -3
  484. package/locales/fi.json +19 -3
  485. package/locales/fr-CA.json +21 -4
  486. package/locales/fr.json +21 -4
  487. package/locales/games/am.json +16 -0
  488. package/locales/games/ar.json +16 -0
  489. package/locales/games/bg.json +16 -0
  490. package/locales/games/bn.json +16 -0
  491. package/locales/games/br.json +16 -0
  492. package/locales/games/co.json +16 -0
  493. package/locales/games/cs.json +16 -0
  494. package/locales/games/da.json +16 -0
  495. package/locales/games/de.json +16 -0
  496. package/locales/games/el.json +16 -0
  497. package/locales/games/en.json +16 -0
  498. package/locales/games/es.json +16 -0
  499. package/locales/games/fa.json +16 -0
  500. package/locales/games/fi.json +16 -0
  501. package/locales/games/fr-CA.json +16 -0
  502. package/locales/games/fr.json +16 -0
  503. package/locales/games/ha.json +16 -0
  504. package/locales/games/he.json +16 -0
  505. package/locales/games/hi.json +16 -0
  506. package/locales/games/hr.json +16 -0
  507. package/locales/games/hu.json +16 -0
  508. package/locales/games/id.json +16 -0
  509. package/locales/games/it.json +16 -0
  510. package/locales/games/ja.json +16 -0
  511. package/locales/games/ko.json +16 -0
  512. package/locales/games/mr.json +16 -0
  513. package/locales/games/ms.json +16 -0
  514. package/locales/games/nl.json +16 -0
  515. package/locales/games/pl.json +16 -0
  516. package/locales/games/pt.json +16 -0
  517. package/locales/games/ro.json +16 -0
  518. package/locales/games/ru.json +16 -0
  519. package/locales/games/sk.json +16 -0
  520. package/locales/games/sv.json +16 -0
  521. package/locales/games/sw.json +16 -0
  522. package/locales/games/ta.json +16 -0
  523. package/locales/games/te.json +16 -0
  524. package/locales/games/th.json +16 -0
  525. package/locales/games/tl.json +16 -0
  526. package/locales/games/tr.json +16 -0
  527. package/locales/games/uk.json +16 -0
  528. package/locales/games/ur.json +16 -0
  529. package/locales/games/vi.json +16 -0
  530. package/locales/games/yo.json +16 -0
  531. package/locales/games/zh-Hans.json +16 -0
  532. package/locales/games/zh-Hant.json +16 -0
  533. package/locales/ha.json +19 -3
  534. package/locales/he.json +20 -3
  535. package/locales/hi.json +19 -3
  536. package/locales/hr.json +20 -3
  537. package/locales/hu.json +19 -3
  538. package/locales/id.json +18 -3
  539. package/locales/interactive/am.json +11 -2
  540. package/locales/interactive/ar.json +11 -2
  541. package/locales/interactive/bg.json +11 -2
  542. package/locales/interactive/bn.json +11 -2
  543. package/locales/interactive/br.json +11 -2
  544. package/locales/interactive/co.json +11 -2
  545. package/locales/interactive/cs.json +11 -2
  546. package/locales/interactive/da.json +11 -2
  547. package/locales/interactive/de.json +11 -2
  548. package/locales/interactive/el.json +11 -2
  549. package/locales/interactive/en.json +11 -2
  550. package/locales/interactive/es.json +11 -2
  551. package/locales/interactive/fa.json +11 -2
  552. package/locales/interactive/fi.json +11 -2
  553. package/locales/interactive/fr-CA.json +11 -2
  554. package/locales/interactive/fr.json +11 -2
  555. package/locales/interactive/ha.json +11 -2
  556. package/locales/interactive/he.json +11 -2
  557. package/locales/interactive/hi.json +11 -2
  558. package/locales/interactive/hr.json +11 -2
  559. package/locales/interactive/hu.json +11 -2
  560. package/locales/interactive/id.json +11 -2
  561. package/locales/interactive/it.json +11 -2
  562. package/locales/interactive/ja.json +11 -2
  563. package/locales/interactive/ko.json +11 -2
  564. package/locales/interactive/mr.json +11 -2
  565. package/locales/interactive/ms.json +11 -2
  566. package/locales/interactive/nl.json +11 -2
  567. package/locales/interactive/pl.json +11 -2
  568. package/locales/interactive/pt.json +11 -2
  569. package/locales/interactive/ro.json +11 -2
  570. package/locales/interactive/ru.json +11 -2
  571. package/locales/interactive/sk.json +11 -2
  572. package/locales/interactive/sv.json +11 -2
  573. package/locales/interactive/sw.json +11 -2
  574. package/locales/interactive/ta.json +11 -2
  575. package/locales/interactive/te.json +11 -2
  576. package/locales/interactive/th.json +11 -2
  577. package/locales/interactive/tl.json +11 -2
  578. package/locales/interactive/tr.json +11 -2
  579. package/locales/interactive/uk.json +11 -2
  580. package/locales/interactive/ur.json +11 -2
  581. package/locales/interactive/vi.json +11 -2
  582. package/locales/interactive/yo.json +11 -2
  583. package/locales/interactive/zh-Hans.json +11 -2
  584. package/locales/interactive/zh-Hant.json +11 -2
  585. package/locales/it.json +20 -3
  586. package/locales/ja.json +18 -3
  587. package/locales/ko.json +18 -3
  588. package/locales/lock/am.json +6 -3
  589. package/locales/lock/ar.json +6 -3
  590. package/locales/lock/bg.json +6 -3
  591. package/locales/lock/bn.json +6 -3
  592. package/locales/lock/br.json +6 -3
  593. package/locales/lock/co.json +6 -3
  594. package/locales/lock/cs.json +6 -3
  595. package/locales/lock/da.json +6 -3
  596. package/locales/lock/de.json +6 -3
  597. package/locales/lock/el.json +6 -3
  598. package/locales/lock/en.json +6 -3
  599. package/locales/lock/es.json +6 -3
  600. package/locales/lock/fa.json +6 -3
  601. package/locales/lock/fi.json +6 -3
  602. package/locales/lock/fr-CA.json +6 -3
  603. package/locales/lock/fr.json +6 -3
  604. package/locales/lock/ha.json +6 -3
  605. package/locales/lock/he.json +6 -3
  606. package/locales/lock/hi.json +6 -3
  607. package/locales/lock/hr.json +6 -3
  608. package/locales/lock/hu.json +6 -3
  609. package/locales/lock/id.json +6 -3
  610. package/locales/lock/it.json +6 -3
  611. package/locales/lock/ja.json +6 -3
  612. package/locales/lock/ko.json +6 -3
  613. package/locales/lock/mr.json +6 -3
  614. package/locales/lock/ms.json +6 -3
  615. package/locales/lock/nl.json +6 -3
  616. package/locales/lock/pl.json +6 -3
  617. package/locales/lock/pt.json +6 -3
  618. package/locales/lock/ro.json +6 -3
  619. package/locales/lock/ru.json +6 -3
  620. package/locales/lock/sk.json +6 -3
  621. package/locales/lock/sv.json +6 -3
  622. package/locales/lock/sw.json +6 -3
  623. package/locales/lock/ta.json +6 -3
  624. package/locales/lock/te.json +6 -3
  625. package/locales/lock/th.json +6 -3
  626. package/locales/lock/tl.json +6 -3
  627. package/locales/lock/tr.json +6 -3
  628. package/locales/lock/uk.json +6 -3
  629. package/locales/lock/ur.json +6 -3
  630. package/locales/lock/vi.json +6 -3
  631. package/locales/lock/yo.json +6 -3
  632. package/locales/lock/zh-Hans.json +6 -3
  633. package/locales/lock/zh-Hant.json +6 -3
  634. package/locales/look/am.json +5 -0
  635. package/locales/look/ar.json +5 -0
  636. package/locales/look/bg.json +5 -0
  637. package/locales/look/bn.json +5 -0
  638. package/locales/look/br.json +5 -0
  639. package/locales/look/co.json +5 -0
  640. package/locales/look/cs.json +5 -0
  641. package/locales/look/da.json +5 -0
  642. package/locales/look/de.json +5 -0
  643. package/locales/look/el.json +5 -0
  644. package/locales/look/en.json +5 -0
  645. package/locales/look/es.json +5 -0
  646. package/locales/look/fa.json +5 -0
  647. package/locales/look/fi.json +5 -0
  648. package/locales/look/fr-CA.json +5 -0
  649. package/locales/look/fr.json +5 -0
  650. package/locales/look/ha.json +5 -0
  651. package/locales/look/he.json +5 -0
  652. package/locales/look/hi.json +5 -0
  653. package/locales/look/hr.json +5 -0
  654. package/locales/look/hu.json +5 -0
  655. package/locales/look/id.json +5 -0
  656. package/locales/look/it.json +5 -0
  657. package/locales/look/ja.json +5 -0
  658. package/locales/look/ko.json +5 -0
  659. package/locales/look/mr.json +5 -0
  660. package/locales/look/ms.json +5 -0
  661. package/locales/look/nl.json +5 -0
  662. package/locales/look/pl.json +5 -0
  663. package/locales/look/pt.json +5 -0
  664. package/locales/look/ro.json +5 -0
  665. package/locales/look/ru.json +5 -0
  666. package/locales/look/sk.json +5 -0
  667. package/locales/look/sv.json +5 -0
  668. package/locales/look/sw.json +5 -0
  669. package/locales/look/ta.json +5 -0
  670. package/locales/look/te.json +5 -0
  671. package/locales/look/th.json +5 -0
  672. package/locales/look/tl.json +5 -0
  673. package/locales/look/tr.json +5 -0
  674. package/locales/look/uk.json +5 -0
  675. package/locales/look/ur.json +5 -0
  676. package/locales/look/vi.json +5 -0
  677. package/locales/look/yo.json +5 -0
  678. package/locales/look/zh-Hans.json +5 -0
  679. package/locales/look/zh-Hant.json +5 -0
  680. package/locales/made/am.json +6 -1
  681. package/locales/made/ar.json +6 -1
  682. package/locales/made/bg.json +6 -1
  683. package/locales/made/bn.json +6 -1
  684. package/locales/made/br.json +6 -1
  685. package/locales/made/co.json +6 -1
  686. package/locales/made/cs.json +6 -1
  687. package/locales/made/da.json +6 -1
  688. package/locales/made/de.json +6 -1
  689. package/locales/made/el.json +6 -1
  690. package/locales/made/en.json +6 -1
  691. package/locales/made/es.json +6 -1
  692. package/locales/made/fa.json +6 -1
  693. package/locales/made/fi.json +6 -1
  694. package/locales/made/fr-CA.json +6 -1
  695. package/locales/made/fr.json +6 -1
  696. package/locales/made/ha.json +6 -1
  697. package/locales/made/he.json +6 -1
  698. package/locales/made/hi.json +6 -1
  699. package/locales/made/hr.json +6 -1
  700. package/locales/made/hu.json +6 -1
  701. package/locales/made/id.json +6 -1
  702. package/locales/made/it.json +6 -1
  703. package/locales/made/ja.json +6 -1
  704. package/locales/made/ko.json +6 -1
  705. package/locales/made/mr.json +6 -1
  706. package/locales/made/ms.json +6 -1
  707. package/locales/made/nl.json +6 -1
  708. package/locales/made/pl.json +6 -1
  709. package/locales/made/pt.json +6 -1
  710. package/locales/made/ro.json +6 -1
  711. package/locales/made/ru.json +6 -1
  712. package/locales/made/sk.json +6 -1
  713. package/locales/made/sv.json +6 -1
  714. package/locales/made/sw.json +6 -1
  715. package/locales/made/ta.json +6 -1
  716. package/locales/made/te.json +6 -1
  717. package/locales/made/th.json +6 -1
  718. package/locales/made/tl.json +6 -1
  719. package/locales/made/tr.json +6 -1
  720. package/locales/made/uk.json +6 -1
  721. package/locales/made/ur.json +6 -1
  722. package/locales/made/vi.json +6 -1
  723. package/locales/made/yo.json +6 -1
  724. package/locales/made/zh-Hans.json +6 -1
  725. package/locales/made/zh-Hant.json +6 -1
  726. package/locales/mr.json +19 -3
  727. package/locales/ms.json +18 -3
  728. package/locales/nl.json +19 -3
  729. package/locales/out/am.json +13 -0
  730. package/locales/out/ar.json +13 -0
  731. package/locales/out/bg.json +13 -0
  732. package/locales/out/bn.json +13 -0
  733. package/locales/out/br.json +13 -0
  734. package/locales/out/co.json +13 -0
  735. package/locales/out/cs.json +13 -0
  736. package/locales/out/da.json +13 -0
  737. package/locales/out/de.json +13 -0
  738. package/locales/out/el.json +13 -0
  739. package/locales/out/en.json +13 -0
  740. package/locales/out/es.json +13 -0
  741. package/locales/out/fa.json +13 -0
  742. package/locales/out/fi.json +13 -0
  743. package/locales/out/fr-CA.json +13 -0
  744. package/locales/out/fr.json +13 -0
  745. package/locales/out/ha.json +13 -0
  746. package/locales/out/he.json +13 -0
  747. package/locales/out/hi.json +13 -0
  748. package/locales/out/hr.json +13 -0
  749. package/locales/out/hu.json +13 -0
  750. package/locales/out/id.json +13 -0
  751. package/locales/out/it.json +13 -0
  752. package/locales/out/ja.json +13 -0
  753. package/locales/out/ko.json +13 -0
  754. package/locales/out/mr.json +13 -0
  755. package/locales/out/ms.json +13 -0
  756. package/locales/out/nl.json +13 -0
  757. package/locales/out/pl.json +13 -0
  758. package/locales/out/pt.json +13 -0
  759. package/locales/out/ro.json +13 -0
  760. package/locales/out/ru.json +13 -0
  761. package/locales/out/sk.json +13 -0
  762. package/locales/out/sv.json +13 -0
  763. package/locales/out/sw.json +13 -0
  764. package/locales/out/ta.json +13 -0
  765. package/locales/out/te.json +13 -0
  766. package/locales/out/th.json +13 -0
  767. package/locales/out/tl.json +13 -0
  768. package/locales/out/tr.json +13 -0
  769. package/locales/out/uk.json +13 -0
  770. package/locales/out/ur.json +13 -0
  771. package/locales/out/vi.json +13 -0
  772. package/locales/out/yo.json +13 -0
  773. package/locales/out/zh-Hans.json +13 -0
  774. package/locales/out/zh-Hant.json +13 -0
  775. package/locales/pl.json +21 -3
  776. package/locales/profiles/am.json +5 -0
  777. package/locales/profiles/ar.json +5 -0
  778. package/locales/profiles/bg.json +5 -0
  779. package/locales/profiles/bn.json +5 -0
  780. package/locales/profiles/br.json +5 -0
  781. package/locales/profiles/co.json +5 -0
  782. package/locales/profiles/cs.json +5 -0
  783. package/locales/profiles/da.json +5 -0
  784. package/locales/profiles/de.json +5 -0
  785. package/locales/profiles/el.json +5 -0
  786. package/locales/profiles/en.json +5 -0
  787. package/locales/profiles/es.json +5 -0
  788. package/locales/profiles/fa.json +5 -0
  789. package/locales/profiles/fi.json +5 -0
  790. package/locales/profiles/fr-CA.json +5 -0
  791. package/locales/profiles/fr.json +5 -0
  792. package/locales/profiles/ha.json +5 -0
  793. package/locales/profiles/he.json +5 -0
  794. package/locales/profiles/hi.json +5 -0
  795. package/locales/profiles/hr.json +5 -0
  796. package/locales/profiles/hu.json +5 -0
  797. package/locales/profiles/id.json +5 -0
  798. package/locales/profiles/it.json +5 -0
  799. package/locales/profiles/ja.json +5 -0
  800. package/locales/profiles/ko.json +5 -0
  801. package/locales/profiles/mr.json +5 -0
  802. package/locales/profiles/ms.json +5 -0
  803. package/locales/profiles/nl.json +5 -0
  804. package/locales/profiles/pl.json +5 -0
  805. package/locales/profiles/pt.json +5 -0
  806. package/locales/profiles/ro.json +5 -0
  807. package/locales/profiles/ru.json +5 -0
  808. package/locales/profiles/sk.json +5 -0
  809. package/locales/profiles/sv.json +5 -0
  810. package/locales/profiles/sw.json +5 -0
  811. package/locales/profiles/ta.json +5 -0
  812. package/locales/profiles/te.json +5 -0
  813. package/locales/profiles/th.json +5 -0
  814. package/locales/profiles/tl.json +5 -0
  815. package/locales/profiles/tr.json +5 -0
  816. package/locales/profiles/uk.json +5 -0
  817. package/locales/profiles/ur.json +5 -0
  818. package/locales/profiles/vi.json +5 -0
  819. package/locales/profiles/yo.json +5 -0
  820. package/locales/profiles/zh-Hans.json +5 -0
  821. package/locales/profiles/zh-Hant.json +5 -0
  822. package/locales/pt.json +20 -3
  823. package/locales/ro.json +20 -3
  824. package/locales/routines/am.json +9 -0
  825. package/locales/routines/ar.json +9 -0
  826. package/locales/routines/bg.json +9 -0
  827. package/locales/routines/bn.json +9 -0
  828. package/locales/routines/br.json +9 -0
  829. package/locales/routines/co.json +9 -0
  830. package/locales/routines/cs.json +9 -0
  831. package/locales/routines/da.json +9 -0
  832. package/locales/routines/de.json +9 -0
  833. package/locales/routines/el.json +9 -0
  834. package/locales/routines/en.json +9 -0
  835. package/locales/routines/es.json +9 -0
  836. package/locales/routines/fa.json +9 -0
  837. package/locales/routines/fi.json +9 -0
  838. package/locales/routines/fr-CA.json +9 -0
  839. package/locales/routines/fr.json +9 -0
  840. package/locales/routines/ha.json +9 -0
  841. package/locales/routines/he.json +9 -0
  842. package/locales/routines/hi.json +9 -0
  843. package/locales/routines/hr.json +9 -0
  844. package/locales/routines/hu.json +9 -0
  845. package/locales/routines/id.json +9 -0
  846. package/locales/routines/it.json +9 -0
  847. package/locales/routines/ja.json +9 -0
  848. package/locales/routines/ko.json +9 -0
  849. package/locales/routines/mr.json +9 -0
  850. package/locales/routines/ms.json +9 -0
  851. package/locales/routines/nl.json +9 -0
  852. package/locales/routines/pl.json +9 -0
  853. package/locales/routines/pt.json +9 -0
  854. package/locales/routines/ro.json +9 -0
  855. package/locales/routines/ru.json +9 -0
  856. package/locales/routines/sk.json +9 -0
  857. package/locales/routines/sv.json +9 -0
  858. package/locales/routines/sw.json +9 -0
  859. package/locales/routines/ta.json +9 -0
  860. package/locales/routines/te.json +9 -0
  861. package/locales/routines/th.json +9 -0
  862. package/locales/routines/tl.json +9 -0
  863. package/locales/routines/tr.json +9 -0
  864. package/locales/routines/uk.json +9 -0
  865. package/locales/routines/ur.json +9 -0
  866. package/locales/routines/vi.json +9 -0
  867. package/locales/routines/yo.json +9 -0
  868. package/locales/routines/zh-Hans.json +9 -0
  869. package/locales/routines/zh-Hant.json +9 -0
  870. package/locales/ru.json +21 -3
  871. package/locales/scores/am.json +5 -1
  872. package/locales/scores/ar.json +5 -1
  873. package/locales/scores/bg.json +5 -1
  874. package/locales/scores/bn.json +5 -1
  875. package/locales/scores/br.json +5 -1
  876. package/locales/scores/co.json +5 -1
  877. package/locales/scores/cs.json +5 -1
  878. package/locales/scores/da.json +5 -1
  879. package/locales/scores/de.json +5 -1
  880. package/locales/scores/el.json +5 -1
  881. package/locales/scores/en.json +5 -1
  882. package/locales/scores/es.json +5 -1
  883. package/locales/scores/fa.json +5 -1
  884. package/locales/scores/fi.json +5 -1
  885. package/locales/scores/fr-CA.json +5 -1
  886. package/locales/scores/fr.json +5 -1
  887. package/locales/scores/ha.json +5 -1
  888. package/locales/scores/he.json +5 -1
  889. package/locales/scores/hi.json +5 -1
  890. package/locales/scores/hr.json +5 -1
  891. package/locales/scores/hu.json +5 -1
  892. package/locales/scores/id.json +5 -1
  893. package/locales/scores/it.json +5 -1
  894. package/locales/scores/ja.json +5 -1
  895. package/locales/scores/ko.json +5 -1
  896. package/locales/scores/mr.json +5 -1
  897. package/locales/scores/ms.json +5 -1
  898. package/locales/scores/nl.json +5 -1
  899. package/locales/scores/pl.json +5 -1
  900. package/locales/scores/pt.json +5 -1
  901. package/locales/scores/ro.json +5 -1
  902. package/locales/scores/ru.json +5 -1
  903. package/locales/scores/sk.json +5 -1
  904. package/locales/scores/sv.json +5 -1
  905. package/locales/scores/sw.json +5 -1
  906. package/locales/scores/ta.json +5 -1
  907. package/locales/scores/te.json +5 -1
  908. package/locales/scores/th.json +5 -1
  909. package/locales/scores/tl.json +5 -1
  910. package/locales/scores/tr.json +5 -1
  911. package/locales/scores/uk.json +5 -1
  912. package/locales/scores/ur.json +5 -1
  913. package/locales/scores/vi.json +5 -1
  914. package/locales/scores/yo.json +5 -1
  915. package/locales/scores/zh-Hans.json +5 -1
  916. package/locales/scores/zh-Hant.json +5 -1
  917. package/locales/search/am.json +10 -1
  918. package/locales/search/ar.json +10 -1
  919. package/locales/search/bg.json +10 -1
  920. package/locales/search/bn.json +10 -1
  921. package/locales/search/br.json +10 -1
  922. package/locales/search/co.json +10 -1
  923. package/locales/search/cs.json +10 -1
  924. package/locales/search/da.json +10 -1
  925. package/locales/search/de.json +10 -1
  926. package/locales/search/el.json +10 -1
  927. package/locales/search/en.json +10 -1
  928. package/locales/search/es.json +10 -1
  929. package/locales/search/fa.json +10 -1
  930. package/locales/search/fi.json +10 -1
  931. package/locales/search/fr-CA.json +10 -1
  932. package/locales/search/fr.json +10 -1
  933. package/locales/search/ha.json +10 -1
  934. package/locales/search/he.json +10 -1
  935. package/locales/search/hi.json +10 -1
  936. package/locales/search/hr.json +10 -1
  937. package/locales/search/hu.json +10 -1
  938. package/locales/search/id.json +10 -1
  939. package/locales/search/it.json +10 -1
  940. package/locales/search/ja.json +10 -1
  941. package/locales/search/ko.json +10 -1
  942. package/locales/search/mr.json +10 -1
  943. package/locales/search/ms.json +10 -1
  944. package/locales/search/nl.json +10 -1
  945. package/locales/search/pl.json +10 -1
  946. package/locales/search/pt.json +10 -1
  947. package/locales/search/ro.json +10 -1
  948. package/locales/search/ru.json +10 -1
  949. package/locales/search/sk.json +10 -1
  950. package/locales/search/sv.json +10 -1
  951. package/locales/search/sw.json +10 -1
  952. package/locales/search/ta.json +10 -1
  953. package/locales/search/te.json +10 -1
  954. package/locales/search/th.json +10 -1
  955. package/locales/search/tl.json +10 -1
  956. package/locales/search/tr.json +10 -1
  957. package/locales/search/uk.json +10 -1
  958. package/locales/search/ur.json +10 -1
  959. package/locales/search/vi.json +10 -1
  960. package/locales/search/yo.json +10 -1
  961. package/locales/search/zh-Hans.json +10 -1
  962. package/locales/search/zh-Hant.json +10 -1
  963. package/locales/signin/am.json +3 -1
  964. package/locales/signin/ar.json +3 -1
  965. package/locales/signin/bg.json +3 -1
  966. package/locales/signin/bn.json +3 -1
  967. package/locales/signin/br.json +3 -1
  968. package/locales/signin/co.json +3 -1
  969. package/locales/signin/cs.json +3 -1
  970. package/locales/signin/da.json +3 -1
  971. package/locales/signin/de.json +3 -1
  972. package/locales/signin/el.json +3 -1
  973. package/locales/signin/en.json +3 -1
  974. package/locales/signin/es.json +3 -1
  975. package/locales/signin/fa.json +3 -1
  976. package/locales/signin/fi.json +3 -1
  977. package/locales/signin/fr-CA.json +3 -1
  978. package/locales/signin/fr.json +3 -1
  979. package/locales/signin/ha.json +3 -1
  980. package/locales/signin/he.json +3 -1
  981. package/locales/signin/hi.json +3 -1
  982. package/locales/signin/hr.json +3 -1
  983. package/locales/signin/hu.json +3 -1
  984. package/locales/signin/id.json +3 -1
  985. package/locales/signin/it.json +3 -1
  986. package/locales/signin/ja.json +3 -1
  987. package/locales/signin/ko.json +3 -1
  988. package/locales/signin/mr.json +3 -1
  989. package/locales/signin/ms.json +3 -1
  990. package/locales/signin/nl.json +3 -1
  991. package/locales/signin/pl.json +3 -1
  992. package/locales/signin/pt.json +3 -1
  993. package/locales/signin/ro.json +3 -1
  994. package/locales/signin/ru.json +3 -1
  995. package/locales/signin/sk.json +3 -1
  996. package/locales/signin/sv.json +3 -1
  997. package/locales/signin/sw.json +3 -1
  998. package/locales/signin/ta.json +3 -1
  999. package/locales/signin/te.json +3 -1
  1000. package/locales/signin/th.json +3 -1
  1001. package/locales/signin/tl.json +3 -1
  1002. package/locales/signin/tr.json +3 -1
  1003. package/locales/signin/uk.json +3 -1
  1004. package/locales/signin/ur.json +3 -1
  1005. package/locales/signin/vi.json +3 -1
  1006. package/locales/signin/yo.json +3 -1
  1007. package/locales/signin/zh-Hans.json +3 -1
  1008. package/locales/signin/zh-Hant.json +3 -1
  1009. package/locales/sk.json +21 -3
  1010. package/locales/slides/am.json +16 -11
  1011. package/locales/slides/ar.json +16 -11
  1012. package/locales/slides/bg.json +16 -11
  1013. package/locales/slides/bn.json +16 -11
  1014. package/locales/slides/br.json +16 -11
  1015. package/locales/slides/co.json +16 -11
  1016. package/locales/slides/cs.json +16 -11
  1017. package/locales/slides/da.json +16 -11
  1018. package/locales/slides/de.json +16 -11
  1019. package/locales/slides/el.json +16 -11
  1020. package/locales/slides/en.json +16 -11
  1021. package/locales/slides/es.json +16 -11
  1022. package/locales/slides/fa.json +16 -11
  1023. package/locales/slides/fi.json +16 -11
  1024. package/locales/slides/fr-CA.json +16 -11
  1025. package/locales/slides/fr.json +16 -11
  1026. package/locales/slides/ha.json +16 -11
  1027. package/locales/slides/he.json +16 -11
  1028. package/locales/slides/hi.json +16 -11
  1029. package/locales/slides/hr.json +16 -11
  1030. package/locales/slides/hu.json +16 -11
  1031. package/locales/slides/id.json +16 -11
  1032. package/locales/slides/it.json +16 -11
  1033. package/locales/slides/ja.json +16 -11
  1034. package/locales/slides/ko.json +16 -11
  1035. package/locales/slides/mr.json +16 -11
  1036. package/locales/slides/ms.json +16 -11
  1037. package/locales/slides/nl.json +16 -11
  1038. package/locales/slides/pl.json +16 -11
  1039. package/locales/slides/pt.json +16 -11
  1040. package/locales/slides/ro.json +16 -11
  1041. package/locales/slides/ru.json +16 -11
  1042. package/locales/slides/sk.json +16 -11
  1043. package/locales/slides/sv.json +16 -11
  1044. package/locales/slides/sw.json +16 -11
  1045. package/locales/slides/ta.json +16 -11
  1046. package/locales/slides/te.json +16 -11
  1047. package/locales/slides/th.json +16 -11
  1048. package/locales/slides/tl.json +16 -11
  1049. package/locales/slides/tr.json +16 -11
  1050. package/locales/slides/uk.json +16 -11
  1051. package/locales/slides/ur.json +16 -11
  1052. package/locales/slides/vi.json +16 -11
  1053. package/locales/slides/yo.json +16 -11
  1054. package/locales/slides/zh-Hans.json +16 -11
  1055. package/locales/slides/zh-Hant.json +16 -11
  1056. package/locales/sv.json +19 -3
  1057. package/locales/sw.json +19 -3
  1058. package/locales/sync/am.json +1 -0
  1059. package/locales/sync/ar.json +1 -0
  1060. package/locales/sync/bg.json +1 -0
  1061. package/locales/sync/bn.json +1 -0
  1062. package/locales/sync/br.json +1 -0
  1063. package/locales/sync/co.json +1 -0
  1064. package/locales/sync/cs.json +1 -0
  1065. package/locales/sync/da.json +1 -0
  1066. package/locales/sync/de.json +1 -0
  1067. package/locales/sync/el.json +1 -0
  1068. package/locales/sync/en.json +1 -0
  1069. package/locales/sync/es.json +1 -0
  1070. package/locales/sync/fa.json +1 -0
  1071. package/locales/sync/fi.json +1 -0
  1072. package/locales/sync/fr-CA.json +1 -0
  1073. package/locales/sync/fr.json +1 -0
  1074. package/locales/sync/ha.json +1 -0
  1075. package/locales/sync/he.json +1 -0
  1076. package/locales/sync/hi.json +1 -0
  1077. package/locales/sync/hr.json +1 -0
  1078. package/locales/sync/hu.json +1 -0
  1079. package/locales/sync/id.json +1 -0
  1080. package/locales/sync/it.json +1 -0
  1081. package/locales/sync/ja.json +1 -0
  1082. package/locales/sync/ko.json +1 -0
  1083. package/locales/sync/mr.json +1 -0
  1084. package/locales/sync/ms.json +1 -0
  1085. package/locales/sync/nl.json +1 -0
  1086. package/locales/sync/pl.json +1 -0
  1087. package/locales/sync/pt.json +1 -0
  1088. package/locales/sync/ro.json +1 -0
  1089. package/locales/sync/ru.json +1 -0
  1090. package/locales/sync/sk.json +1 -0
  1091. package/locales/sync/sv.json +1 -0
  1092. package/locales/sync/sw.json +1 -0
  1093. package/locales/sync/ta.json +1 -0
  1094. package/locales/sync/te.json +1 -0
  1095. package/locales/sync/th.json +1 -0
  1096. package/locales/sync/tl.json +1 -0
  1097. package/locales/sync/tr.json +1 -0
  1098. package/locales/sync/uk.json +1 -0
  1099. package/locales/sync/ur.json +1 -0
  1100. package/locales/sync/vi.json +1 -0
  1101. package/locales/sync/yo.json +1 -0
  1102. package/locales/sync/zh-Hans.json +1 -0
  1103. package/locales/sync/zh-Hant.json +1 -0
  1104. package/locales/ta.json +19 -3
  1105. package/locales/tables/am.json +27 -2
  1106. package/locales/tables/ar.json +35 -2
  1107. package/locales/tables/bg.json +27 -2
  1108. package/locales/tables/bn.json +27 -2
  1109. package/locales/tables/br.json +33 -2
  1110. package/locales/tables/co.json +29 -2
  1111. package/locales/tables/cs.json +33 -4
  1112. package/locales/tables/da.json +27 -2
  1113. package/locales/tables/de.json +27 -2
  1114. package/locales/tables/el.json +27 -2
  1115. package/locales/tables/en.json +27 -2
  1116. package/locales/tables/es.json +29 -2
  1117. package/locales/tables/fa.json +27 -2
  1118. package/locales/tables/fi.json +27 -2
  1119. package/locales/tables/fr-CA.json +29 -2
  1120. package/locales/tables/fr.json +29 -2
  1121. package/locales/tables/ha.json +27 -2
  1122. package/locales/tables/he.json +31 -4
  1123. package/locales/tables/hi.json +27 -2
  1124. package/locales/tables/hr.json +29 -2
  1125. package/locales/tables/hu.json +27 -2
  1126. package/locales/tables/id.json +25 -2
  1127. package/locales/tables/it.json +29 -2
  1128. package/locales/tables/ja.json +25 -2
  1129. package/locales/tables/ko.json +25 -2
  1130. package/locales/tables/mr.json +27 -2
  1131. package/locales/tables/ms.json +25 -2
  1132. package/locales/tables/nl.json +27 -2
  1133. package/locales/tables/pl.json +31 -2
  1134. package/locales/tables/pt.json +29 -2
  1135. package/locales/tables/ro.json +29 -2
  1136. package/locales/tables/ru.json +31 -2
  1137. package/locales/tables/sk.json +33 -4
  1138. package/locales/tables/sv.json +29 -4
  1139. package/locales/tables/sw.json +27 -2
  1140. package/locales/tables/ta.json +27 -2
  1141. package/locales/tables/te.json +29 -4
  1142. package/locales/tables/th.json +25 -2
  1143. package/locales/tables/tl.json +29 -4
  1144. package/locales/tables/tr.json +27 -2
  1145. package/locales/tables/uk.json +31 -2
  1146. package/locales/tables/ur.json +27 -2
  1147. package/locales/tables/vi.json +27 -4
  1148. package/locales/tables/yo.json +27 -4
  1149. package/locales/tables/zh-Hans.json +27 -4
  1150. package/locales/tables/zh-Hant.json +27 -4
  1151. package/locales/te.json +19 -3
  1152. package/locales/th.json +18 -3
  1153. package/locales/tl.json +19 -3
  1154. package/locales/tr.json +19 -3
  1155. package/locales/uk.json +21 -3
  1156. package/locales/ur.json +19 -3
  1157. package/locales/vi.json +18 -3
  1158. package/locales/yo.json +18 -3
  1159. package/locales/zh-Hans.json +18 -3
  1160. package/locales/zh-Hant.json +18 -3
  1161. package/package.json +5 -1
  1162. package/ui/caps.js +9 -4
  1163. package/ui/csp.js +1 -1
  1164. package/ui/export.js +10 -4
  1165. package/ui/icons.js +2 -1
  1166. package/ui/kit.js +44 -10
  1167. package/ui/language.js +172 -0
  1168. package/ui/looks/classic.css +3 -2
  1169. package/ui/looks/human.css +7 -9
  1170. package/ui/looks/mail.css +1 -1
  1171. package/ui/looks/minimal.css +1 -1
  1172. package/ui/looks.js +1 -1
  1173. package/ui/markdown.js +17 -6
  1174. package/ui/model.js +6 -0
  1175. package/ui/reader-state.js +1 -1
  1176. package/ui/review.js +1 -1
  1177. package/ui/save.js +16 -0
  1178. package/ui/seal.js +5 -4
  1179. package/ui/sheet.js +21 -2
  1180. package/ui/style.css +54 -32
  1181. package/ui/touches.js +4 -1
  1182. package/ui/view.css +1 -1
  1183. package/ui/view.js +10 -8
  1184. package/vendor/LICENSES/babylonjs-core.txt +2 -0
  1185. package/vendor/LICENSES/eventemitter3.txt +21 -0
  1186. package/vendor/LICENSES/maplibre-gl.txt +1 -1
  1187. package/vendor/LICENSES/phaser.txt +20 -0
  1188. package/vendor/LICENSES/zzfx.txt +21 -0
  1189. package/vendor/abcjs/abcjs.mjs +2 -2
  1190. package/vendor/babylon/babylon.mjs +8122 -0
  1191. package/vendor/deck/deck.css +2 -2
  1192. package/vendor/deck/deck.mjs +37 -37
  1193. package/vendor/deck/pptx.mjs +1 -1
  1194. package/vendor/maplibre/maplibre-gl-worker.js +3 -3
  1195. package/vendor/maplibre/maplibre-gl.css +1 -1
  1196. package/vendor/maplibre/maplibre-gl.mjs +37 -37
  1197. package/vendor/marked.esm.js +40 -38
  1198. package/vendor/ooxml/abort-JztSoyw2.js +8 -0
  1199. package/vendor/ooxml/{hyperlink-Cxzhet30.js → bounded-raw-part-cache-B8t03tSP.js} +4460 -7080
  1200. package/vendor/ooxml/bundled-asset-url-BMJ8vNHP.js +13 -0
  1201. package/vendor/ooxml/canvas-viewer-mechanics-DI38gHNV.js +653 -0
  1202. package/vendor/ooxml/cfb-guard-BIaHdonq.js +516 -0
  1203. package/vendor/ooxml/{chunk-DmhlhrBa.js → chunk-D5OxutzX.js} +0 -2
  1204. package/vendor/ooxml/comment-overlay-controller-Crm5Syhx.js +974 -0
  1205. package/vendor/ooxml/{comment-ui-runtime-CWGqn5Vr.js → comment-ui-runtime-BfEPgl5r.js} +5 -7
  1206. package/vendor/ooxml/comment-ui-runtime-BtP_TpvT.js +2 -0
  1207. package/vendor/ooxml/{comment-ui-runtime-DcJOYlw-.js → comment-ui-runtime-hfewTmVJ.js} +5 -7
  1208. package/vendor/ooxml/delimited-text-worker-host-RwvuSsP2.js +21 -0
  1209. package/vendor/ooxml/document-model-source-BUTSwkyP.js +247 -0
  1210. package/vendor/ooxml/document-pull-client-C_D779tO.js +36230 -0
  1211. package/vendor/ooxml/docx-BfLZeiwa.js +3509 -0
  1212. package/vendor/ooxml/docx.mjs +7 -7
  1213. package/vendor/ooxml/docx_parser_bg.wasm +0 -0
  1214. package/vendor/ooxml/drawingml-shape-BcXkRayC.js +306 -0
  1215. package/vendor/ooxml/duotone-BI7CoghW.js +122 -0
  1216. package/vendor/ooxml/emf-DgUBx9BU.js +1788 -0
  1217. package/vendor/ooxml/font-preload-demand-B6HPFxDp.js +2052 -0
  1218. package/vendor/ooxml/graph.json +1 -1
  1219. package/vendor/ooxml/grid-geometry-CqTDvpDr.js +379 -0
  1220. package/vendor/ooxml/host-layout-Cz_lCuTZ.js +55 -0
  1221. package/vendor/ooxml/line-distribute-DR9Qwd3u.js +2783 -0
  1222. package/vendor/ooxml/{mathjax-DoyWZbSp.js → mathjax-DvwccQ8e.js} +0 -2
  1223. package/vendor/ooxml/model-source-COXegBNA.js +177 -0
  1224. package/vendor/ooxml/{pixel-budget-9P63Bsk5.js → pixel-budget-DI82Hn3R.js} +13 -12
  1225. package/vendor/ooxml/plot-area-frame-D3JtHvov.js +41645 -0
  1226. package/vendor/ooxml/pptx-CfCiVlNB.js +2888 -0
  1227. package/vendor/ooxml/pptx.mjs +8 -7
  1228. package/vendor/ooxml/pptx_parser_bg.wasm +0 -0
  1229. package/vendor/ooxml/presentation-model-source-DL6duh5l.js +75 -0
  1230. package/vendor/ooxml/raster-target-Ca3tyA0L.js +40 -0
  1231. package/vendor/ooxml/{read-only-comment-decoration-Dz7eTQ4d.js → read-only-comment-decoration-B06YO2zk.js} +0 -4
  1232. package/vendor/ooxml/{read-only-comment-margin-DkgzASAl.js → read-only-comment-margin-Ee9Y6vPg.js} +0 -2
  1233. package/vendor/ooxml/renderer-IFuBkPvF.js +5197 -0
  1234. package/vendor/ooxml/{renderer-module-contract-D91rkYHH.js → renderer-module-contract-BuTx2FWJ.js} +0 -2
  1235. package/vendor/ooxml/renderer-xdugdcMd.js +5769 -0
  1236. package/vendor/ooxml/resource-measurement-D2bu0Qfx.js +756 -0
  1237. package/vendor/ooxml/slide-pull-client-BUuJQQVE.js +6431 -0
  1238. package/vendor/ooxml/three-d-ByHGsYrX.js +868 -0
  1239. package/vendor/ooxml/tiff-contract-DEd8CGuz.js +48 -0
  1240. package/vendor/ooxml/{visible-index-BgiHEc1z.js → visible-index-vN-4BNn7.js} +0 -2
  1241. package/vendor/ooxml/workbook-model-source-DBfVsWj7.js +92 -0
  1242. package/vendor/ooxml/worker-source-C29EQNUj.js +18 -0
  1243. package/vendor/ooxml/worker-source-D3NwPe6l.js +18 -0
  1244. package/vendor/ooxml/worker-source-ZQE9C1j6.js +18 -0
  1245. package/vendor/ooxml/worksheet-pull-client-Du0MuIro.js +565 -0
  1246. package/vendor/ooxml/xlsx-CCMRAxPB.js +5812 -0
  1247. package/vendor/ooxml/xlsx.mjs +8 -7
  1248. package/vendor/ooxml/xlsx_parser_bg.wasm +0 -0
  1249. package/vendor/pele/chunks/2CHDFZHC.js +1 -0
  1250. package/vendor/pele/chunks/{GAP5KXLD.js → 2S3JPEOY.js} +1 -1
  1251. package/vendor/pele/chunks/2U463FD2.js +11 -0
  1252. package/vendor/pele/chunks/3OKCTCH7.js +1 -0
  1253. package/vendor/pele/chunks/42UK3TL6.js +8 -0
  1254. package/vendor/pele/chunks/43YPWK3Q.js +1 -0
  1255. package/vendor/pele/chunks/45MVAN6X.js +1 -0
  1256. package/vendor/pele/chunks/46GJKBLZ.js +1 -0
  1257. package/vendor/pele/chunks/4WR52FRP.js +4 -0
  1258. package/vendor/pele/chunks/63WH7YNF.js +1 -0
  1259. package/vendor/pele/chunks/{2TH3V34D.js → 673H7YBG.js} +1 -1
  1260. package/vendor/pele/chunks/6DDU7VKX.js +1 -0
  1261. package/vendor/pele/chunks/{3MKGV5HX.js → 6Y6FML25.js} +1 -1
  1262. package/vendor/pele/chunks/{4AG6A4TK.js → 7HQPULDG.js} +1 -1
  1263. package/vendor/pele/chunks/7N3VAIG2.js +2 -0
  1264. package/vendor/pele/chunks/{QFOMM5LR.js → 7NY54ILO.js} +1 -1
  1265. package/vendor/pele/chunks/{VHJMZXCQ.js → BJNHMTN6.js} +1 -1
  1266. package/vendor/pele/chunks/{6PEWY3TN.js → BK7N5KMP.js} +1 -1
  1267. package/vendor/pele/chunks/CLQLV5VT.js +1 -0
  1268. package/vendor/pele/chunks/CUSPXG5M.js +1 -0
  1269. package/vendor/pele/chunks/D3L7O4X2.js +1 -0
  1270. package/vendor/pele/chunks/{D4V2MWCI.js → D5TW5CPZ.js} +1 -1
  1271. package/vendor/pele/chunks/DDVFZY3L.js +7 -0
  1272. package/vendor/pele/chunks/{3S2YGJBL.js → DO6ND2WD.js} +5 -5
  1273. package/vendor/pele/chunks/EGADTWYV.js +1 -0
  1274. package/vendor/pele/chunks/EI4VGK5C.js +4 -0
  1275. package/vendor/pele/chunks/EOJSJZXM.js +1 -0
  1276. package/vendor/pele/chunks/F4O23KYR.js +5 -0
  1277. package/vendor/pele/chunks/G2OEIG6X.js +1 -0
  1278. package/vendor/pele/chunks/GER2CN75.js +2 -0
  1279. package/vendor/pele/chunks/{RGVCULFG.js → GP5YUCAR.js} +1 -1
  1280. package/vendor/pele/chunks/GXJ2T77W.js +1 -0
  1281. package/vendor/pele/chunks/HX3UMAK7.js +1 -0
  1282. package/vendor/pele/chunks/IU7WZTP6.js +4 -0
  1283. package/vendor/pele/chunks/J3JF2HV4.js +12 -0
  1284. package/vendor/pele/chunks/J5J2NR2G.js +1 -0
  1285. package/vendor/pele/chunks/JRCWTJEL.js +1 -0
  1286. package/vendor/pele/chunks/{M7II5KMO.js → K2ZHGJKH.js} +1 -1
  1287. package/vendor/pele/chunks/{E3FWOBN4.js → KHUP5TOH.js} +3 -3
  1288. package/vendor/pele/chunks/L74FQTH5.js +1 -0
  1289. package/vendor/pele/chunks/LAV4ZXOS.js +1 -0
  1290. package/vendor/pele/chunks/LBIZYCRR.js +1 -0
  1291. package/vendor/pele/chunks/LFFXNLRS.js +1 -0
  1292. package/vendor/pele/chunks/LJ44NU43.js +3 -0
  1293. package/vendor/pele/chunks/LLLWOAQD.js +1 -0
  1294. package/vendor/pele/chunks/LTY5LMQH.js +5 -0
  1295. package/vendor/pele/chunks/LTYQZ5U5.js +1 -0
  1296. package/vendor/pele/chunks/MJBOF5Q6.js +2 -0
  1297. package/vendor/pele/chunks/NDSCUZ25.js +1 -0
  1298. package/vendor/pele/chunks/NMN3IKWL.js +1 -0
  1299. package/vendor/pele/chunks/NMUA3R2D.js +1 -0
  1300. package/vendor/pele/chunks/NY5A6PPW.js +1 -0
  1301. package/vendor/pele/chunks/O3ACPFEJ.js +8 -0
  1302. package/vendor/pele/chunks/{A6VFOGAO.js → O4MQT6AV.js} +1 -1
  1303. package/vendor/pele/chunks/{DUZNPW7S.js → OHJ2EJXK.js} +1 -1
  1304. package/vendor/pele/chunks/OU2GIT2H.js +1 -0
  1305. package/vendor/pele/chunks/{E65FQMJL.js → PDMLSE6I.js} +1 -1
  1306. package/vendor/pele/chunks/PJ7X32S5.js +1 -0
  1307. package/vendor/pele/chunks/RLLQ44NJ.js +1 -0
  1308. package/vendor/pele/chunks/S6DWMCK5.js +1 -0
  1309. package/vendor/pele/chunks/STIOTUT7.js +1 -0
  1310. package/vendor/pele/chunks/{UO52YEYL.js → SXSLPWUD.js} +1 -1
  1311. package/vendor/pele/chunks/TBJXKAT4.js +3 -0
  1312. package/vendor/pele/chunks/TIVX74RS.js +2 -0
  1313. package/vendor/pele/chunks/{KIF544NL.js → TK23BXEA.js} +1 -1
  1314. package/vendor/pele/chunks/{STAXBNH4.js → TR4WJQGX.js} +1 -1
  1315. package/vendor/pele/chunks/UWRPUF3N.js +1 -0
  1316. package/vendor/pele/chunks/VMTWYMKQ.js +2 -0
  1317. package/vendor/pele/chunks/VSWIZJ7B.js +1 -0
  1318. package/vendor/pele/chunks/{STMK7JZH.js → W2WY5CQX.js} +2 -2
  1319. package/vendor/pele/chunks/W77N5H3K.js +2 -0
  1320. package/vendor/pele/chunks/WM7NR6YK.js +1 -0
  1321. package/vendor/pele/chunks/WSTWNLCU.js +4 -0
  1322. package/vendor/pele/chunks/WXKV2YEK.js +1 -0
  1323. package/vendor/pele/chunks/XQ5S3AI3.js +13 -0
  1324. package/vendor/pele/chunks/YNX532HU.js +1 -0
  1325. package/vendor/pele/chunks/{DHKBVIA3.js → YUPSMAUO.js} +1 -1
  1326. package/vendor/pele/chunks/{IHVFDU4A.js → YWXUFHC7.js} +7 -7
  1327. package/vendor/pele/chunks/Z3ZRV7NH.js +2 -0
  1328. package/vendor/pele/chunks/ZFRCZTLK.js +1 -0
  1329. package/vendor/pele/chunks/ZZDR4CN3.js +1 -0
  1330. package/vendor/pele/lazy.js +1 -1
  1331. package/vendor/phaser/phaser.mjs +1 -0
  1332. package/vendor/signals-core.mjs +1 -1
  1333. package/vendor/spessasynth/fflate.mjs +1 -0
  1334. package/vendor/spessasynth/spessasynth.mjs +37033 -15099
  1335. package/vendor/temml/temml.mjs +1 -1
  1336. package/vendor/zzfx/zzfx.mjs +1 -0
  1337. package/ui/acts.js +0 -12
  1338. package/vendor/ooxml/bounded-raw-part-cache-Cg1BsSZQ.js +0 -119
  1339. package/vendor/ooxml/canvas-viewer-mechanics-DbLz0rYW.js +0 -1384
  1340. package/vendor/ooxml/cjk-fallback-bLI3z70h.js +0 -46
  1341. package/vendor/ooxml/comment-occurrence-C8Y2uoVr.js +0 -6
  1342. package/vendor/ooxml/comment-ui-runtime-BsK8pmUT.js +0 -2
  1343. package/vendor/ooxml/comments-Diid5ujN.js +0 -246
  1344. package/vendor/ooxml/delimited-text-worker-host-BVY-Ecni.js +0 -25
  1345. package/vendor/ooxml/document-pull-client-B9PTM-pL.js +0 -27280
  1346. package/vendor/ooxml/docx-BF9WXrYH.js +0 -3101
  1347. package/vendor/ooxml/dom-interaction-boundary-Cnm8DSBN.js +0 -223
  1348. package/vendor/ooxml/highlight-rect-C5hkRqUr.js +0 -13
  1349. package/vendor/ooxml/line-distribute-D1WNHKz_.js +0 -1023
  1350. package/vendor/ooxml/line-metrics-B60C86uh.js +0 -60
  1351. package/vendor/ooxml/plot-area-frame-DLTYKHNP.js +0 -4354
  1352. package/vendor/ooxml/pptx-DkyYBYoL.js +0 -3063
  1353. package/vendor/ooxml/raster-target-ojDdQizC.js +0 -91
  1354. package/vendor/ooxml/renderer-B4GZb5We.js +0 -6492
  1355. package/vendor/ooxml/resource-measurement-SHQCbkh2.js +0 -150
  1356. package/vendor/ooxml/slide-pull-client-DiPnm240.js +0 -6253
  1357. package/vendor/ooxml/source-key-DIJG8BA0.js +0 -42
  1358. package/vendor/ooxml/three-d-DJBl8g8M.js +0 -1162
  1359. package/vendor/ooxml/transfer-p6iCC2R7.js +0 -6
  1360. package/vendor/ooxml/units-BzZ0gAxs.js +0 -4
  1361. package/vendor/ooxml/worksheet-pull-client-BM8ywvbu.js +0 -458
  1362. package/vendor/ooxml/xlsx-C9NVjgaV.js +0 -8482
  1363. package/vendor/pele/chunks/23I4SOAX.js +0 -1
  1364. package/vendor/pele/chunks/25ITEZ43.js +0 -2
  1365. package/vendor/pele/chunks/26H2HVXD.js +0 -1
  1366. package/vendor/pele/chunks/2IZ5MNOH.js +0 -1
  1367. package/vendor/pele/chunks/2P3CZEXH.js +0 -1
  1368. package/vendor/pele/chunks/3E5HRNYT.js +0 -1
  1369. package/vendor/pele/chunks/3JIRLDUO.js +0 -1
  1370. package/vendor/pele/chunks/5MJ3UKSG.js +0 -1
  1371. package/vendor/pele/chunks/63N73SV4.js +0 -1
  1372. package/vendor/pele/chunks/A255FCTW.js +0 -1
  1373. package/vendor/pele/chunks/AM43MQ64.js +0 -1
  1374. package/vendor/pele/chunks/AOZTNTMC.js +0 -1
  1375. package/vendor/pele/chunks/AQNLM6KG.js +0 -1
  1376. package/vendor/pele/chunks/BNU2RHQB.js +0 -1
  1377. package/vendor/pele/chunks/C5HTQT3I.js +0 -4
  1378. package/vendor/pele/chunks/CPKRWH5G.js +0 -1
  1379. package/vendor/pele/chunks/CPRVZL76.js +0 -11
  1380. package/vendor/pele/chunks/CUVCMPQX.js +0 -1
  1381. package/vendor/pele/chunks/D6K5RLPD.js +0 -5
  1382. package/vendor/pele/chunks/EENBF6R3.js +0 -5
  1383. package/vendor/pele/chunks/G3OATVW2.js +0 -1
  1384. package/vendor/pele/chunks/GFBBR3DD.js +0 -13
  1385. package/vendor/pele/chunks/IV52FOAS.js +0 -1
  1386. package/vendor/pele/chunks/JTJEEBDN.js +0 -1
  1387. package/vendor/pele/chunks/JX3HYMZ6.js +0 -8
  1388. package/vendor/pele/chunks/K3TAFXGN.js +0 -3
  1389. package/vendor/pele/chunks/K7FUICZ3.js +0 -1
  1390. package/vendor/pele/chunks/LHH2HHRB.js +0 -1
  1391. package/vendor/pele/chunks/LT5IS45C.js +0 -2
  1392. package/vendor/pele/chunks/MSPQPZZY.js +0 -1
  1393. package/vendor/pele/chunks/NY2EJWPH.js +0 -2
  1394. package/vendor/pele/chunks/OB6ZFVKF.js +0 -1
  1395. package/vendor/pele/chunks/OJBDHQO2.js +0 -4
  1396. package/vendor/pele/chunks/PLTZDMI2.js +0 -1
  1397. package/vendor/pele/chunks/R7EPXMMD.js +0 -1
  1398. package/vendor/pele/chunks/S4GSSVLN.js +0 -3
  1399. package/vendor/pele/chunks/SPBWZ4VS.js +0 -1
  1400. package/vendor/pele/chunks/SR7OOV3Q.js +0 -1
  1401. package/vendor/pele/chunks/STXEMZPJ.js +0 -2
  1402. package/vendor/pele/chunks/SXFARSFO.js +0 -1
  1403. package/vendor/pele/chunks/TC77ISAL.js +0 -1
  1404. package/vendor/pele/chunks/TXE3YXUM.js +0 -2
  1405. package/vendor/pele/chunks/TYIQQHVC.js +0 -1
  1406. package/vendor/pele/chunks/TZUXETIT.js +0 -1
  1407. package/vendor/pele/chunks/U7N72BGE.js +0 -1
  1408. package/vendor/pele/chunks/UFPIB6EZ.js +0 -1
  1409. package/vendor/pele/chunks/V52Z4AG3.js +0 -4
  1410. package/vendor/pele/chunks/VBDLARNP.js +0 -4
  1411. package/vendor/pele/chunks/VIK3ONSK.js +0 -1
  1412. package/vendor/pele/chunks/VPGC3RUM.js +0 -7
  1413. package/vendor/pele/chunks/VVVO4ZVP.js +0 -1
  1414. package/vendor/pele/chunks/WRGXZO53.js +0 -1
  1415. package/vendor/pele/chunks/X5SG7MGC.js +0 -1
  1416. package/vendor/pele/chunks/XXYPNCD5.js +0 -1
  1417. package/vendor/pele/chunks/XZO3CX7R.js +0 -12
  1418. package/vendor/pele/chunks/YZBJM2QT.js +0 -2
  1419. package/vendor/pele/chunks/YZHV477W.js +0 -2
  1420. package/vendor/pele/chunks/Z6WRYFJC.js +0 -1
  1421. package/vendor/pele/chunks/ZI2QNEGF.js +0 -8
@@ -0,0 +1,1788 @@
1
+ import { Ar as e, Jr as t, Xr as n, Yr as r, Zr as i, kr as a } from "ooxml/plot-area-frame-D3JtHvov.js";
2
+ import { f as o, o as s, s as c, t as l, u } from "ooxml/pixel-budget-DI82Hn3R.js";
3
+ var d = {
4
+ HEADER: 16385,
5
+ EOF: 16386,
6
+ COMMENT: 16387,
7
+ GET_DC: 16388,
8
+ OBJECT: 16392,
9
+ CLEAR: 16393,
10
+ DRAW_IMAGE: 16410,
11
+ SET_ANTI_ALIAS_MODE: 16414,
12
+ SET_TEXT_RENDERING_HINT: 16415,
13
+ SET_TEXT_CONTRAST: 16416,
14
+ SET_INTERPOLATION_MODE: 16417,
15
+ SET_PIXEL_OFFSET_MODE: 16418,
16
+ SET_COMPOSITING_MODE: 16419,
17
+ SET_COMPOSITING_QUALITY: 16420,
18
+ SAVE: 16421,
19
+ RESTORE: 16422,
20
+ SET_WORLD_TRANSFORM: 16426,
21
+ RESET_WORLD_TRANSFORM: 16427,
22
+ MULTIPLY_WORLD_TRANSFORM: 16428,
23
+ TRANSLATE_WORLD_TRANSFORM: 16429,
24
+ SCALE_WORLD_TRANSFORM: 16430,
25
+ ROTATE_WORLD_TRANSFORM: 16431,
26
+ SET_PAGE_TRANSFORM: 16432
27
+ }, f = new Set([
28
+ 16394,
29
+ 16395,
30
+ 16396,
31
+ 16397,
32
+ 16398,
33
+ 16399,
34
+ 16400,
35
+ 16401,
36
+ 16402,
37
+ 16403,
38
+ 16404,
39
+ 16405,
40
+ 16406,
41
+ 16407,
42
+ 16408,
43
+ 16409,
44
+ 16410,
45
+ 16411,
46
+ 16412,
47
+ 16438
48
+ ]), p = 5, m = 8, h = 2498570, g = 925707, _ = 2, v = 4, y = l;
49
+ function* b(e, t, n, r) {
50
+ if (n - t < 16 || e.getUint32(t + 12, !0) !== 726027589) return;
51
+ let i = e.getUint32(t + 8, !0);
52
+ if (i < 4 || t + 12 + i > n) {
53
+ r("EMF+ comment (invalid DataSize)");
54
+ return;
55
+ }
56
+ let a = t + 12 + i, o = t + 16;
57
+ for (; o < a;) {
58
+ if (a - o < 12) {
59
+ r("EMF+ record (truncated header)");
60
+ return;
61
+ }
62
+ let t = e.getUint16(o, !0), n = e.getUint16(o + 2, !0), i = e.getUint32(o + 4, !0), s = e.getUint32(o + 8, !0);
63
+ if (i < 12 || i > a - o || s > i - 12) {
64
+ r(`EMF+ record 0x${t.toString(16)} (invalid Size or DataSize)`);
65
+ return;
66
+ }
67
+ yield {
68
+ type: t,
69
+ flags: n,
70
+ start: o + 12,
71
+ end: o + 12 + s
72
+ }, o += i;
73
+ }
74
+ }
75
+ function x(e) {
76
+ let t = new DataView(e.buffer, e.byteOffset, e.byteLength), n = !1, r = !1, i = !1, a = !1, o = {
77
+ ctx: null,
78
+ W: 1,
79
+ H: 1,
80
+ left: 0,
81
+ top: 0,
82
+ boundsW: 1,
83
+ boundsH: 1,
84
+ drew: !1,
85
+ unsupported: /* @__PURE__ */ new Set()
86
+ }, s = new w(o, !0), c = () => {}, l = 0;
87
+ for (; l + 8 <= e.length;) {
88
+ let u = t.getUint32(l, !0), p = t.getUint32(l + 4, !0);
89
+ if (p < 8 || p & 3 || l + p > e.length) {
90
+ o.unsupported.add("EMF record stream (truncated or invalid record size)");
91
+ break;
92
+ }
93
+ if (u === 70) {
94
+ p >= 16 && t.getUint32(l + 12, !0) === 726027589 && (r = !0);
95
+ for (let e of b(t, l, l + p, c)) e.type === d.HEADER && (n = !0, i = (e.flags & 1) != 0), f.has(e.type) && (a = !0);
96
+ s.playComment(t, l, l + p);
97
+ }
98
+ if (u === 14) break;
99
+ l += p;
100
+ }
101
+ s.finish();
102
+ let u = r ? [...o.unsupported] : [];
103
+ return {
104
+ present: n,
105
+ dual: i,
106
+ play: n && a && u.length === 0,
107
+ failures: u
108
+ };
109
+ }
110
+ var S = {
111
+ a: 1,
112
+ b: 0,
113
+ c: 0,
114
+ d: 1,
115
+ e: 0,
116
+ f: 0
117
+ };
118
+ function C(e, t) {
119
+ return {
120
+ a: e.a * t.a + e.b * t.c,
121
+ b: e.a * t.b + e.b * t.d,
122
+ c: e.c * t.a + e.d * t.c,
123
+ d: e.c * t.b + e.d * t.d,
124
+ e: e.e * t.a + e.f * t.c + t.e,
125
+ f: e.e * t.b + e.f * t.d + t.f
126
+ };
127
+ }
128
+ var w = class {
129
+ target;
130
+ dry;
131
+ world = S;
132
+ pageUnit = _;
133
+ pageScale = 1;
134
+ sourceCopy = !1;
135
+ objects = /* @__PURE__ */ new Map();
136
+ saved = /* @__PURE__ */ new Map();
137
+ pending = null;
138
+ gdiAllowed = !1;
139
+ drawFailed = !1;
140
+ constructor(e, t = !1) {
141
+ this.target = e, this.dry = t;
142
+ }
143
+ playComment(e, t, n) {
144
+ let r = (e) => this.target.unsupported.add(e);
145
+ for (let i of b(e, t, n, r)) {
146
+ this.gdiAllowed = !1, this.pending && !(i.type === d.OBJECT && i.flags & 32768) && this.abandonPending();
147
+ let t = this.target.unsupported.size;
148
+ try {
149
+ this.play(e, i);
150
+ } catch (e) {
151
+ if (o(e)) throw e;
152
+ this.target.unsupported.add(`EMF+ record 0x${i.type.toString(16)} (malformed)`);
153
+ }
154
+ !this.dry && this.target.unsupported.size > t && (this.drawFailed = !0);
155
+ }
156
+ }
157
+ finish() {
158
+ this.pending && this.abandonPending();
159
+ }
160
+ abandonPending() {
161
+ this.target.unsupported.add("EMF+ continued object (unfinished)"), this.pending = null;
162
+ }
163
+ play(e, t) {
164
+ let n = (n) => e.getFloat32(t.start + n, !0), r = (e) => {
165
+ if (t.end - t.start < e) throw RangeError("Truncated EMF+ record");
166
+ };
167
+ switch (t.type) {
168
+ case d.HEADER:
169
+ case d.EOF:
170
+ case d.COMMENT:
171
+ case d.SET_ANTI_ALIAS_MODE:
172
+ case d.SET_TEXT_RENDERING_HINT:
173
+ case d.SET_TEXT_CONTRAST:
174
+ case d.SET_INTERPOLATION_MODE:
175
+ case d.SET_PIXEL_OFFSET_MODE:
176
+ case d.SET_COMPOSITING_QUALITY: return;
177
+ case d.GET_DC:
178
+ this.gdiAllowed = !0;
179
+ return;
180
+ case d.SET_PAGE_TRANSFORM:
181
+ r(4), this.pageUnit = t.flags & 255, this.pageScale = n(0);
182
+ return;
183
+ case d.SET_COMPOSITING_MODE:
184
+ this.sourceCopy = (t.flags & 255) == 1;
185
+ return;
186
+ case d.SET_WORLD_TRANSFORM:
187
+ r(24), this.world = {
188
+ a: n(0),
189
+ b: n(4),
190
+ c: n(8),
191
+ d: n(12),
192
+ e: n(16),
193
+ f: n(20)
194
+ };
195
+ return;
196
+ case d.RESET_WORLD_TRANSFORM:
197
+ this.world = S;
198
+ return;
199
+ case d.MULTIPLY_WORLD_TRANSFORM: {
200
+ r(24);
201
+ let e = {
202
+ a: n(0),
203
+ b: n(4),
204
+ c: n(8),
205
+ d: n(12),
206
+ e: n(16),
207
+ f: n(20)
208
+ };
209
+ this.world = t.flags & 8192 ? C(this.world, e) : C(e, this.world);
210
+ return;
211
+ }
212
+ case d.TRANSLATE_WORLD_TRANSFORM:
213
+ case d.SCALE_WORLD_TRANSFORM:
214
+ case d.ROTATE_WORLD_TRANSFORM: {
215
+ let e;
216
+ if (t.type === d.ROTATE_WORLD_TRANSFORM) {
217
+ r(4);
218
+ let t = n(0) * Math.PI / 180;
219
+ e = {
220
+ a: Math.cos(t),
221
+ b: Math.sin(t),
222
+ c: -Math.sin(t),
223
+ d: Math.cos(t),
224
+ e: 0,
225
+ f: 0
226
+ };
227
+ } else r(8), e = t.type === d.TRANSLATE_WORLD_TRANSFORM ? {
228
+ a: 1,
229
+ b: 0,
230
+ c: 0,
231
+ d: 1,
232
+ e: n(0),
233
+ f: n(4)
234
+ } : {
235
+ a: n(0),
236
+ b: 0,
237
+ c: 0,
238
+ d: n(4),
239
+ e: 0,
240
+ f: 0
241
+ };
242
+ this.world = t.flags & 8192 ? C(this.world, e) : C(e, this.world);
243
+ return;
244
+ }
245
+ case d.SAVE:
246
+ r(4), this.saved.set(e.getUint32(t.start, !0), {
247
+ world: this.world,
248
+ unit: this.pageUnit,
249
+ scale: this.pageScale,
250
+ sourceCopy: this.sourceCopy
251
+ });
252
+ return;
253
+ case d.RESTORE: {
254
+ r(4);
255
+ let n = this.saved.get(e.getUint32(t.start, !0));
256
+ if (!n) {
257
+ this.target.unsupported.add("EMF+ Restore of an unsaved graphics state");
258
+ return;
259
+ }
260
+ this.world = n.world, this.pageUnit = n.unit, this.pageScale = n.scale, this.sourceCopy = n.sourceCopy;
261
+ return;
262
+ }
263
+ case d.CLEAR:
264
+ r(4), this.clear(e.getUint32(t.start, !0));
265
+ return;
266
+ case d.OBJECT:
267
+ this.object(e, t);
268
+ return;
269
+ case d.DRAW_IMAGE:
270
+ this.drawImage(e, t);
271
+ return;
272
+ default: this.target.unsupported.add(`EMF+ record 0x${t.type.toString(16)}`);
273
+ }
274
+ }
275
+ clear(e) {
276
+ let { ctx: t, W: n, H: r } = this.target;
277
+ if (this.dry || !t) return;
278
+ let i = (e >>> 24) / 255;
279
+ try {
280
+ t.clearRect(0, 0, n, r), i > 0 && (t.fillStyle = `rgba(${e >>> 16 & 255},${e >>> 8 & 255},${e & 255},${i})`, t.fillRect(0, 0, n, r), this.target.drew = !0);
281
+ } catch {}
282
+ }
283
+ object(e, t) {
284
+ let n = t.flags & 255, r = t.flags >> 8 & 127, i = new Uint8Array(e.buffer, e.byteOffset + t.start, t.end - t.start), a = null, o = 0;
285
+ if (t.flags & 32768) {
286
+ if (i.length < 4) throw RangeError("Truncated EMF+ object");
287
+ let s = e.getUint32(t.start, !0);
288
+ this.pending && (this.pending.id !== n || this.pending.kind !== r || this.pending.total !== s) && this.abandonPending(), this.pending ||= {
289
+ id: n,
290
+ kind: r,
291
+ total: s,
292
+ parts: [],
293
+ length: 0
294
+ };
295
+ let c = i.subarray(4);
296
+ if (c.length > this.pending.total - this.pending.length) {
297
+ this.target.unsupported.add("EMF+ continued object (fragments exceed TotalObjectSize)"), this.pending = null, this.objects.delete(n);
298
+ return;
299
+ }
300
+ if (c.length && this.pending.parts.push(c), this.pending.length += c.length, this.pending.length < this.pending.total) return;
301
+ a = this.pending.parts, o = this.pending.total, this.pending = null, i = new Uint8Array(Math.min(28, o));
302
+ let l = 0;
303
+ for (let e of a) {
304
+ let t = e.subarray(0, i.length - l);
305
+ if (i.set(t, l), l += t.length, l === i.length) break;
306
+ }
307
+ }
308
+ let l = new DataView(i.buffer, i.byteOffset, i.byteLength);
309
+ if (this.objects.delete(n), r === m) {
310
+ if (i.length < 24) throw RangeError("Truncated EMF+ image attributes");
311
+ let e = l.getUint32(8, !0);
312
+ if (e > v || l.getUint32(16, !0) > 1) {
313
+ this.target.unsupported.add("EMF+ image attributes (invalid wrap or clamp)");
314
+ return;
315
+ }
316
+ this.objects.set(n, {
317
+ kind: "attributes",
318
+ wrapMode: e
319
+ });
320
+ return;
321
+ }
322
+ if (r !== p) {
323
+ this.target.unsupported.add(`EMF+ object type ${r}`);
324
+ return;
325
+ }
326
+ if (i.length < 28) throw RangeError("Truncated EMF+ image");
327
+ let d = l.getUint32(4, !0), f = l.getInt32(8, !0), _ = l.getInt32(12, !0), y = l.getInt32(16, !0), b = l.getUint32(20, !0), x = l.getUint32(24, !0);
328
+ if (d !== 1 || x !== 0 || b !== h && b !== g) {
329
+ this.target.unsupported.add("EMF+ image other than an uncompressed 32-bit bitmap");
330
+ return;
331
+ }
332
+ if (f <= 0 || _ <= 0 || y < f * 4 || 28 + y * _ > (a ? o : i.length)) throw RangeError("Invalid EMF+ bitmap");
333
+ if (f > 32767 || _ > 32767) throw new u("image-dimension", s, Math.max(f, _));
334
+ if (f * _ > 33554432) throw new u("image-pixels", c, f * _);
335
+ if (this.admit(o + f * _ * 4, n), this.dry) {
336
+ this.objects.set(n, {
337
+ kind: "image",
338
+ bitmap: {
339
+ width: f,
340
+ height: _,
341
+ data: new Uint8ClampedArray()
342
+ }
343
+ });
344
+ return;
345
+ }
346
+ if (a) {
347
+ i = new Uint8Array(o);
348
+ let e = 0;
349
+ for (let t of a) i.set(t, e), e += t.length;
350
+ }
351
+ let S = new Uint8ClampedArray(f * _ * 4), C = b === g;
352
+ for (let e = 0; e < _; e++) {
353
+ let t = 28 + e * y, n = e * f * 4;
354
+ for (let e = 0; e < f; e++, t += 4, n += 4) {
355
+ let e = i[t + 3], r = C && e > 0 && e < 255 ? 255 / e : 1;
356
+ S[n] = i[t + 2] * r, S[n + 1] = i[t + 1] * r, S[n + 2] = i[t] * r, S[n + 3] = e;
357
+ }
358
+ }
359
+ this.objects.set(n, {
360
+ kind: "image",
361
+ bitmap: {
362
+ width: f,
363
+ height: _,
364
+ data: S
365
+ }
366
+ });
367
+ }
368
+ retainedBytes(e) {
369
+ let t = 0;
370
+ for (let [n, r] of this.objects) n !== e && r.kind === "image" && (t += r.bitmap.width * r.bitmap.height * 4);
371
+ return t;
372
+ }
373
+ admit(e, t) {
374
+ let n = this.retainedBytes(t) + e;
375
+ if (n > y) throw new u("active-decoded-bytes", y, n);
376
+ }
377
+ toTarget(e, t) {
378
+ let n = this.world, r = (n.a * e + n.c * t + n.e) * this.pageScale, i = (n.b * e + n.d * t + n.f) * this.pageScale, a = this.target;
379
+ return [(r - a.left) * a.W / a.boundsW, (i - a.top) * a.H / a.boundsH];
380
+ }
381
+ drawImage(e, t) {
382
+ let n = (t.flags & 16384) != 0;
383
+ if (t.end - t.start < 24 + (n ? 8 : 16)) throw RangeError("Truncated EMF+ DrawImage");
384
+ let i = this.objects.get(t.flags & 255);
385
+ if (i?.kind !== "image") {
386
+ this.target.unsupported.add("EMF+ DrawImage of an unavailable image");
387
+ return;
388
+ }
389
+ let a = i.bitmap;
390
+ if (this.objects.get(e.getUint32(t.start, !0))?.kind !== "attributes") {
391
+ this.target.unsupported.add("EMF+ DrawImage without its image attributes");
392
+ return;
393
+ }
394
+ let o = e.getInt32(t.start + 4, !0), s = (n) => e.getFloat32(t.start + n, !0), [c, l, u, d] = [
395
+ s(8),
396
+ s(12),
397
+ s(16),
398
+ s(20)
399
+ ], [f, p, m, h] = n ? [
400
+ 0,
401
+ 2,
402
+ 4,
403
+ 6
404
+ ].map((n) => e.getInt16(t.start + 24 + n, !0)) : [
405
+ s(24),
406
+ s(28),
407
+ s(32),
408
+ s(36)
409
+ ], g = this.world, [v, y] = this.toTarget(f, p), [b, x] = this.toTarget(f + m, p + h);
410
+ if (![
411
+ c,
412
+ l,
413
+ u,
414
+ d,
415
+ f,
416
+ p,
417
+ m,
418
+ h,
419
+ g.a,
420
+ g.b,
421
+ g.c,
422
+ g.d,
423
+ g.e,
424
+ g.f,
425
+ this.pageScale,
426
+ v,
427
+ y,
428
+ b,
429
+ x
430
+ ].every(Number.isFinite)) {
431
+ this.target.unsupported.add("EMF+ DrawImage placement (non-finite value)");
432
+ return;
433
+ }
434
+ let S = Math.abs(g.b) < 1e-9 && Math.abs(g.c) < 1e-9;
435
+ if (o !== _ || this.pageUnit !== _ || !S || !(m > 0) || !(h > 0) || !(u > 0) || !(d > 0) || g.a <= 0 || g.d <= 0 || !(this.pageScale > 0)) {
436
+ this.target.unsupported.add("EMF+ DrawImage placement (units, rotation or mirroring)");
437
+ return;
438
+ }
439
+ let C = Math.round(c), w = Math.round(l), T = Math.round(c + u), E = Math.round(l + d);
440
+ if (C < 0 || w < 0 || T > a.width || E > a.height || T <= C || E <= w) {
441
+ this.target.unsupported.add("EMF+ DrawImage source outside the image");
442
+ return;
443
+ }
444
+ let D = C !== 0 || w !== 0 || T !== a.width || E !== a.height, O = (T - C) * (E - w) * 4;
445
+ if (this.admit((D ? O : 0) + 2 * O), this.dry) return;
446
+ let k = a;
447
+ if (D) {
448
+ let e = T - C, t = new Uint8ClampedArray(e * (E - w) * 4);
449
+ for (let n = w; n < E; n++) t.set(a.data.subarray((n * a.width + C) * 4, (n * a.width + T) * 4), (n - w) * e * 4);
450
+ k = {
451
+ width: e,
452
+ height: E - w,
453
+ data: t
454
+ };
455
+ }
456
+ let { ctx: A } = this.target;
457
+ if (A) {
458
+ if (this.sourceCopy) try {
459
+ A.clearRect(Math.min(v, b), Math.min(y, x), Math.abs(b - v), Math.abs(x - y));
460
+ } catch {}
461
+ r(A, k, v, y, b, x) ? this.target.drew = !0 : this.target.unsupported.add("EMF+ DrawImage (the bitmap could not be drawn)");
462
+ }
463
+ }
464
+ }, T = {
465
+ HEADER: 1,
466
+ POLYBEZIER: 2,
467
+ POLYGON: 3,
468
+ POLYLINE: 4,
469
+ POLYBEZIERTO: 5,
470
+ POLYLINETO: 6,
471
+ POLYPOLYLINE: 7,
472
+ POLYPOLYGON: 8,
473
+ SETWINDOWEXTEX: 9,
474
+ SETWINDOWORGEX: 10,
475
+ SETVIEWPORTEXTEX: 11,
476
+ SETVIEWPORTORGEX: 12,
477
+ EOF: 14,
478
+ SETMAPMODE: 17,
479
+ SETPOLYFILLMODE: 19,
480
+ SETBKMODE: 18,
481
+ SETTEXTALIGN: 22,
482
+ SETTEXTCOLOR: 24,
483
+ MOVETOEX: 27,
484
+ SCALEVIEWPORTEXTEX: 31,
485
+ SCALEWINDOWEXTEX: 32,
486
+ SAVEDC: 33,
487
+ RESTOREDC: 34,
488
+ SETWORLDTRANSFORM: 35,
489
+ MODIFYWORLDTRANSFORM: 36,
490
+ SELECTOBJECT: 37,
491
+ CREATEPEN: 38,
492
+ CREATEBRUSHINDIRECT: 39,
493
+ DELETEOBJECT: 40,
494
+ ANGLEARC: 41,
495
+ ELLIPSE: 42,
496
+ RECTANGLE: 43,
497
+ ROUNDRECT: 44,
498
+ ARC: 45,
499
+ CHORD: 46,
500
+ PIE: 47,
501
+ LINETO: 54,
502
+ ARCTO: 55,
503
+ POLYDRAW: 56,
504
+ BEGINPATH: 59,
505
+ ENDPATH: 60,
506
+ CLOSEFIGURE: 61,
507
+ FILLPATH: 62,
508
+ STROKEANDFILLPATH: 63,
509
+ STROKEPATH: 64,
510
+ FLATTENPATH: 65,
511
+ WIDENPATH: 66,
512
+ SELECTCLIPPATH: 67,
513
+ ABORTPATH: 68,
514
+ EXTCREATEFONTINDIRECTW: 82,
515
+ EXTTEXTOUTA: 83,
516
+ EXTTEXTOUTW: 84,
517
+ POLYBEZIER16: 85,
518
+ POLYGON16: 86,
519
+ POLYLINE16: 87,
520
+ POLYBEZIERTO16: 88,
521
+ POLYLINETO16: 89,
522
+ POLYPOLYLINE16: 90,
523
+ POLYPOLYGON16: 91,
524
+ POLYDRAW16: 92,
525
+ CREATEMONOBRUSH: 93,
526
+ CREATEDIBPATTERNBRUSHPT: 94,
527
+ EXTCREATEPEN: 95,
528
+ POLYTEXTOUTA: 96,
529
+ POLYTEXTOUTW: 97,
530
+ SMALLTEXTOUT: 108,
531
+ BITBLT: 76,
532
+ STRETCHDIBITS: 81,
533
+ SETPIXELV: 15,
534
+ OFFSETCLIPRGN: 26,
535
+ SETMETARGN: 28,
536
+ EXCLUDECLIPRECT: 29,
537
+ INTERSECTCLIPRECT: 30,
538
+ EXTFLOODFILL: 53,
539
+ SETARCDIRECTION: 57,
540
+ GDICOMMENT: 70,
541
+ FILLRGN: 71,
542
+ FRAMERGN: 72,
543
+ INVERTRGN: 73,
544
+ PAINTRGN: 74,
545
+ EXTSELECTCLIPRGN: 75,
546
+ STRETCHBLT: 77,
547
+ MASKBLT: 78,
548
+ PLGBLT: 79,
549
+ SETDIBITSTODEVICE: 80,
550
+ ALPHABLEND: 114,
551
+ TRANSPARENTBLT: 116,
552
+ GRADIENTFILL: 118
553
+ }, E = {
554
+ [T.POLYDRAW]: "EMR_POLYDRAW",
555
+ [T.POLYDRAW16]: "EMR_POLYDRAW16",
556
+ [T.EXTTEXTOUTA]: "EMR_EXTTEXTOUTA",
557
+ [T.POLYTEXTOUTA]: "EMR_POLYTEXTOUTA",
558
+ [T.POLYTEXTOUTW]: "EMR_POLYTEXTOUTW",
559
+ [T.SMALLTEXTOUT]: "EMR_SMALLTEXTOUT",
560
+ [T.SETPIXELV]: "EMR_SETPIXELV",
561
+ [T.EXTFLOODFILL]: "EMR_EXTFLOODFILL",
562
+ [T.FILLRGN]: "EMR_FILLRGN",
563
+ [T.FRAMERGN]: "EMR_FRAMERGN",
564
+ [T.INVERTRGN]: "EMR_INVERTRGN",
565
+ [T.PAINTRGN]: "EMR_PAINTRGN",
566
+ [T.STRETCHBLT]: "EMR_STRETCHBLT",
567
+ [T.MASKBLT]: "EMR_MASKBLT",
568
+ [T.PLGBLT]: "EMR_PLGBLT",
569
+ [T.SETDIBITSTODEVICE]: "EMR_SETDIBITSTODEVICE",
570
+ [T.ALPHABLEND]: "EMR_ALPHABLEND",
571
+ [T.TRANSPARENTBLT]: "EMR_TRANSPARENTBLT",
572
+ [T.GRADIENTFILL]: "EMR_GRADIENTFILL"
573
+ }, D = 1, O = 2, k = 1, A = 4, j = 5, M = {
574
+ WHITE_BRUSH: 2147483648,
575
+ LTGRAY_BRUSH: 2147483649,
576
+ GRAY_BRUSH: 2147483650,
577
+ DKGRAY_BRUSH: 2147483651,
578
+ BLACK_BRUSH: 2147483652,
579
+ NULL_BRUSH: 2147483653,
580
+ WHITE_PEN: 2147483654,
581
+ BLACK_PEN: 2147483655,
582
+ NULL_PEN: 2147483656,
583
+ DC_BRUSH: 2147483666,
584
+ DC_PEN: 2147483662
585
+ }, N = {
586
+ TEXT: 1,
587
+ LOMETRIC: 2,
588
+ HIMETRIC: 3,
589
+ LOENGLISH: 4,
590
+ HIENGLISH: 5,
591
+ TWIPS: 6,
592
+ ISOTROPIC: 7,
593
+ ANISOTROPIC: 8
594
+ }, ee = () => ({
595
+ m11: 1,
596
+ m12: 0,
597
+ m21: 0,
598
+ m22: 1,
599
+ dx: 0,
600
+ dy: 0
601
+ });
602
+ function te(e, t) {
603
+ return {
604
+ m11: e.m11 * t.m11 + e.m21 * t.m12,
605
+ m12: e.m12 * t.m11 + e.m22 * t.m12,
606
+ m21: e.m11 * t.m21 + e.m21 * t.m22,
607
+ m22: e.m12 * t.m21 + e.m22 * t.m22,
608
+ dx: e.m11 * t.dx + e.m21 * t.dy + e.dx,
609
+ dy: e.m12 * t.dx + e.m22 * t.dy + e.dy
610
+ };
611
+ }
612
+ var ne = class {
613
+ dv;
614
+ start;
615
+ end;
616
+ p;
617
+ constructor(e, t, n) {
618
+ this.dv = e, this.start = t, this.end = n, this.p = t;
619
+ }
620
+ get pos() {
621
+ return this.p;
622
+ }
623
+ set pos(e) {
624
+ if (!Number.isInteger(e) || e < this.start || e > this.end) throw RangeError("Invalid EMF cursor position");
625
+ this.p = e;
626
+ }
627
+ get remaining() {
628
+ return this.end - this.p;
629
+ }
630
+ require(e) {
631
+ if (!Number.isInteger(e) || e < 0 || this.remaining < e) throw RangeError("Truncated EMF record");
632
+ }
633
+ u16() {
634
+ this.require(2);
635
+ let e = this.dv.getUint16(this.p, !0);
636
+ return this.p += 2, e;
637
+ }
638
+ i16() {
639
+ this.require(2);
640
+ let e = this.dv.getInt16(this.p, !0);
641
+ return this.p += 2, e;
642
+ }
643
+ i32() {
644
+ this.require(4);
645
+ let e = this.dv.getInt32(this.p, !0);
646
+ return this.p += 4, e;
647
+ }
648
+ u32() {
649
+ this.require(4);
650
+ let e = this.dv.getUint32(this.p, !0);
651
+ return this.p += 4, e;
652
+ }
653
+ f32() {
654
+ this.require(4);
655
+ let e = this.dv.getFloat32(this.p, !0);
656
+ return this.p += 4, e;
657
+ }
658
+ xform() {
659
+ return {
660
+ m11: this.f32(),
661
+ m12: this.f32(),
662
+ m21: this.f32(),
663
+ m22: this.f32(),
664
+ dx: this.f32(),
665
+ dy: this.f32()
666
+ };
667
+ }
668
+ skip(e) {
669
+ this.require(e), this.p += e;
670
+ }
671
+ }, re = 2162688, ie = class {
672
+ buf = ae();
673
+ moveTo(e, t) {
674
+ this.buf.ops.push(se, e, t);
675
+ }
676
+ lineTo(e, t) {
677
+ this.buf.ops.push(ce, e, t);
678
+ }
679
+ bezierCurveTo(e, t, n, r, i, a) {
680
+ this.buf.ops.push(le, e, t, n, r, i, a);
681
+ }
682
+ closePath() {
683
+ this.buf.ops.push(ue);
684
+ }
685
+ };
686
+ function ae() {
687
+ return {
688
+ ops: [],
689
+ commands: 0,
690
+ saved: []
691
+ };
692
+ }
693
+ function oe(e, t) {
694
+ let n = t.saved[t.saved.length - 1] ?? {
695
+ length: 0,
696
+ commands: 0
697
+ };
698
+ t.ops.length <= n.length && t.commands <= n.commands || (e.pathRetained -= t.commands - n.commands, t.commands = n.commands, t.ops.length = n.length);
699
+ }
700
+ var se = 0, ce = 1, le = 2, ue = 3;
701
+ function de(e, t) {
702
+ e.beginPath();
703
+ for (let n = 0; n < t.length;) switch (t[n]) {
704
+ case se:
705
+ e.moveTo(t[n + 1], t[n + 2]), n += 3;
706
+ break;
707
+ case ce:
708
+ e.lineTo(t[n + 1], t[n + 2]), n += 3;
709
+ break;
710
+ case le:
711
+ e.bezierCurveTo(t[n + 1], t[n + 2], t[n + 3], t[n + 4], t[n + 5], t[n + 6]), n += 7;
712
+ break;
713
+ default: e.closePath(), n += 1;
714
+ }
715
+ }
716
+ function P(e) {
717
+ return e.inPath ? e.path : e.ctx;
718
+ }
719
+ function fe(e) {
720
+ let t = e.path.buf;
721
+ e.path.buf = ae(), oe(e, t);
722
+ }
723
+ function F(e) {
724
+ fe(e), e.inPath = !1, e.pathHeld = !1, e.pathDiscarded = !1;
725
+ }
726
+ function I(e, t) {
727
+ if (!e.inPath) return !0;
728
+ if (e.pathDiscarded) return !1;
729
+ let n = e.pathRetained + t;
730
+ if (!Number.isSafeInteger(n) || t < 0 || n > e.maxPathCommands) throw fe(e), e.pathDiscarded = !0, new u("metafile-path-commands", e.maxPathCommands, Number.isSafeInteger(n) && n > e.maxPathCommands ? n : 2 ** 53 - 1);
731
+ return e.pathRetained = n, e.path.buf.commands += t, !0;
732
+ }
733
+ function L(e, t, n) {
734
+ let r = n === H ? 4 : 8;
735
+ return Math.min(t, Math.floor(e.remaining / r));
736
+ }
737
+ function pe(e, t, n) {
738
+ return e.wt.m11 * t + e.wt.m21 * n + e.wt.dx;
739
+ }
740
+ function me(e, t, n) {
741
+ return e.wt.m12 * t + e.wt.m22 * n + e.wt.dy;
742
+ }
743
+ function he(e) {
744
+ return e.winExtX === 0 ? 1 : e.vpExtX / e.winExtX;
745
+ }
746
+ function ge(e) {
747
+ return e.winExtY === 0 ? 1 : e.vpExtY / e.winExtY;
748
+ }
749
+ function R(e) {
750
+ return Math.min(Math.abs(he(e)), Math.abs(ge(e)));
751
+ }
752
+ function _e(e) {
753
+ return e.mapMode === N.ISOTROPIC ? he(e) < 0 ? -R(e) : R(e) : he(e);
754
+ }
755
+ function z(e) {
756
+ return e.mapMode === N.ISOTROPIC ? ge(e) < 0 ? -R(e) : R(e) : ge(e);
757
+ }
758
+ function ve(e, t) {
759
+ return (t - e.winOrgX) * _e(e) + e.vpOrgX;
760
+ }
761
+ function ye(e, t) {
762
+ return (t - e.winOrgY) * z(e) + e.vpOrgY;
763
+ }
764
+ function B(e, t, n) {
765
+ let r = ve(e, pe(e, t, n)), i = ye(e, me(e, t, n));
766
+ return [(r - e.left) * e.W / e.boundsW, (i - e.top) * e.H / e.boundsH];
767
+ }
768
+ function be(e) {
769
+ return (Math.hypot(e.wt.m11, e.wt.m12) + Math.hypot(e.wt.m21, e.wt.m22)) / 2;
770
+ }
771
+ function xe(e) {
772
+ return (Math.abs(_e(e)) + Math.abs(z(e))) / 2;
773
+ }
774
+ function Se(e) {
775
+ return (e.W / e.boundsW + e.H / e.boundsH) / 2;
776
+ }
777
+ function Ce(e) {
778
+ return Math.hypot(e.wt.m21, e.wt.m22);
779
+ }
780
+ function we(e) {
781
+ return e.H / e.boundsH;
782
+ }
783
+ function V(e, t) {
784
+ let n = t * be(e) * xe(e) * Se(e);
785
+ return Math.max(.75, n);
786
+ }
787
+ function Te(e, t) {
788
+ if (e.mapMode = t, t === N.TEXT) {
789
+ e.winOrgX = 0, e.winOrgY = 0, e.vpOrgX = 0, e.vpOrgY = 0, e.winExtX = 1, e.winExtY = 1, e.vpExtX = 1, e.vpExtY = 1;
790
+ return;
791
+ }
792
+ if (t === N.ANISOTROPIC || t === N.ISOTROPIC || e.devPxPerMmX <= 0 || e.devPxPerMmY <= 0) return;
793
+ let n = 25.4, r = t === N.LOMETRIC ? .1 : t === N.HIMETRIC ? .01 : t === N.LOENGLISH ? .01 * n : t === N.HIENGLISH ? .001 * n : t === N.TWIPS ? n / 1440 : 0;
794
+ r <= 0 || (e.winOrgX = 0, e.winOrgY = 0, e.vpOrgX = 0, e.vpOrgY = 0, e.winExtX = 1, e.winExtY = 1, e.vpExtX = r * e.devPxPerMmX, e.vpExtY = -(r * e.devPxPerMmY));
795
+ }
796
+ var Ee = {
797
+ [M.WHITE_BRUSH]: {
798
+ kind: "brush",
799
+ fill: "#ffffff"
800
+ },
801
+ [M.LTGRAY_BRUSH]: {
802
+ kind: "brush",
803
+ fill: "#c0c0c0"
804
+ },
805
+ [M.GRAY_BRUSH]: {
806
+ kind: "brush",
807
+ fill: "#808080"
808
+ },
809
+ [M.DKGRAY_BRUSH]: {
810
+ kind: "brush",
811
+ fill: "#404040"
812
+ },
813
+ [M.BLACK_BRUSH]: {
814
+ kind: "brush",
815
+ fill: "#000000"
816
+ },
817
+ [M.NULL_BRUSH]: {
818
+ kind: "brush",
819
+ fill: null
820
+ }
821
+ }, De = {
822
+ [M.WHITE_PEN]: {
823
+ kind: "pen",
824
+ stroke: "#ffffff",
825
+ width: 1
826
+ },
827
+ [M.BLACK_PEN]: {
828
+ kind: "pen",
829
+ stroke: "#000000",
830
+ width: 1
831
+ },
832
+ [M.NULL_PEN]: {
833
+ kind: "pen",
834
+ stroke: null,
835
+ width: 1
836
+ },
837
+ [M.DC_PEN]: {
838
+ kind: "pen",
839
+ stroke: "#000000",
840
+ width: 1
841
+ }
842
+ };
843
+ function Oe(e, t) {
844
+ let n = Ee[t];
845
+ if (n) {
846
+ e.curBrush = n;
847
+ return;
848
+ }
849
+ let r = De[t];
850
+ if (r) {
851
+ e.curPen = r;
852
+ return;
853
+ }
854
+ t === M.DC_BRUSH && (e.curBrush = e.curBrush ?? {
855
+ kind: "brush",
856
+ fill: "#000000"
857
+ });
858
+ }
859
+ function ke(e) {
860
+ let t = 0, n = 0, r = 0, i = 0;
861
+ for (let a = 0; a < e.data.length; a += 4) e.data[a + 3] !== 0 && (t += e.data[a], n += e.data[a + 1], r += e.data[a + 2], i++);
862
+ if (i === 0) return "#808080";
863
+ let a = (e) => Math.round(e / i).toString(16).padStart(2, "0");
864
+ return `#${a(t)}${a(n)}${a(r)}`;
865
+ }
866
+ var H = (e) => [e.i16(), e.i16()], U = (e) => [e.i32(), e.i32()], Ae = 1048576, je = 2097152, W = 65536, Me = 65536, Ne = 65536;
867
+ function G(e, t, n) {
868
+ if (t <= Ae) return !0;
869
+ if (L(e, t, n) !== t) return !1;
870
+ throw new u("metafile-record-points", Ae, t);
871
+ }
872
+ function Pe(e, t, n) {
873
+ if (t.remaining < 20) return;
874
+ t.skip(16);
875
+ let r = t.u32();
876
+ if (r < 2 || !G(t, r, n) || !e.inPath && (!e.curPen || e.curPen.stroke == null)) return;
877
+ let { ctx: i } = e, a = P(e), o = I(e, L(t, r, n));
878
+ e.inPath || i.beginPath();
879
+ let s = 0, c = 0;
880
+ for (let i = 0, l = L(t, r, n); i < l; i++) {
881
+ let [r, l] = n(t), [u, d] = B(e, r, l);
882
+ o && (i === 0 ? a.moveTo(u, d) : a.lineTo(u, d)), s = r, c = l;
883
+ }
884
+ !e.inPath && e.curPen?.stroke != null && (i.strokeStyle = e.curPen.stroke, i.lineWidth = V(e, e.curPen.width), i.stroke(), e.drew = !0), e.curX = s, e.curY = c;
885
+ }
886
+ function Fe(e, t, n) {
887
+ if (t.remaining < 20) return;
888
+ t.skip(16);
889
+ let r = t.u32();
890
+ if (r < 1 || !G(t, r, n)) return;
891
+ let { ctx: i } = e, a = e.inPath || e.curPen != null && e.curPen.stroke != null, o = !e.inPath || I(e, L(t, r, n));
892
+ if (a && !e.inPath) {
893
+ i.beginPath();
894
+ let [t, n] = B(e, e.curX, e.curY);
895
+ i.moveTo(t, n);
896
+ }
897
+ for (let i = 0, s = L(t, r, n); i < s; i++) {
898
+ let [r, i] = n(t);
899
+ if (a && o) {
900
+ let [t, n] = B(e, r, i);
901
+ P(e).lineTo(t, n);
902
+ }
903
+ e.curX = r, e.curY = i;
904
+ }
905
+ a && !e.inPath && e.curPen && (i.strokeStyle = e.curPen.stroke, i.lineWidth = V(e, e.curPen.width), i.stroke(), e.drew = !0);
906
+ }
907
+ function Ie(e, t, n) {
908
+ if (t.remaining < 20) return;
909
+ t.skip(16);
910
+ let r = t.u32();
911
+ if (r < 2 || !G(t, r, n)) return;
912
+ let { ctx: i } = e, a = P(e), o = L(t, r, n), s = I(e, o > 0 ? o + 1 : 0);
913
+ e.inPath || i.beginPath();
914
+ let c = !1;
915
+ for (let i = 0, o = L(t, r, n); i < o; i++) {
916
+ let [r, i] = n(t), [o, l] = B(e, r, i);
917
+ c ? s && a.lineTo(o, l) : (s && a.moveTo(o, l), c = !0);
918
+ }
919
+ c && (s && a.closePath(), !e.inPath && (e.curBrush && e.curBrush.fill != null && (i.fillStyle = e.curBrush.fill, i.fill(e.fillRule), e.drew = !0), e.curPen && e.curPen.stroke != null && (i.strokeStyle = e.curPen.stroke, i.lineWidth = V(e, e.curPen.width), i.stroke(), e.drew = !0)));
920
+ }
921
+ function K(e, t, n, r) {
922
+ if (t.remaining < 20) return;
923
+ t.skip(16);
924
+ let i = t.u32();
925
+ if (i < 1 || !G(t, i, n)) return;
926
+ let a = L(t, i, n), o = +!r, s = a < o + 3 ? 0 : o + Math.floor((a - o) / 3), c = !e.inPath || I(e, s);
927
+ if (e.inPath && !c) {
928
+ for (let r = 0; r < a; r++) {
929
+ let [r, i] = n(t);
930
+ e.curX = r, e.curY = i;
931
+ }
932
+ return;
933
+ }
934
+ let l = [];
935
+ for (let e = 0, r = L(t, i, n); e < r; e++) l.push(n(t));
936
+ if (l.length < (r ? 3 : 4)) {
937
+ l.length && (e.curX = l[l.length - 1][0], e.curY = l[l.length - 1][1]);
938
+ return;
939
+ }
940
+ let u = e.inPath || e.curPen != null && e.curPen.stroke != null, { ctx: d } = e, f = P(e);
941
+ if (u) {
942
+ e.inPath || d.beginPath();
943
+ let t = r ? B(e, e.curX, e.curY) : B(e, l[0][0], l[0][1]);
944
+ (!r || !e.inPath) && f.moveTo(t[0], t[1]);
945
+ }
946
+ let p = +!r;
947
+ for (; p + 2 < l.length + +!!r; p += 3) {
948
+ let t = l[p], n = l[p + 1], r = l[p + 2];
949
+ if (!t || !n || !r) break;
950
+ if (u) {
951
+ let i = B(e, t[0], t[1]), a = B(e, n[0], n[1]), o = B(e, r[0], r[1]);
952
+ f.bezierCurveTo(i[0], i[1], a[0], a[1], o[0], o[1]);
953
+ }
954
+ e.curX = r[0], e.curY = r[1];
955
+ }
956
+ u && !e.inPath && e.curPen && (d.strokeStyle = e.curPen.stroke, d.lineWidth = V(e, e.curPen.width), d.stroke(), e.drew = !0);
957
+ }
958
+ function q(e, t, n, r) {
959
+ if (t.remaining < 24) return;
960
+ t.skip(16);
961
+ let i = t.u32(), a = t.u32();
962
+ if (i === 0 || i > Math.floor(t.remaining / 4)) return;
963
+ let o = t.pos, s = 0;
964
+ for (let e = 0; e < i; e++) if (s += t.u32(), s > a) return;
965
+ if (s !== a) return;
966
+ let c = L(t, a, n);
967
+ if (i > W || a > je) {
968
+ if (c !== a) return;
969
+ throw i > W ? new u("metafile-record-polygons", W, i) : new u("metafile-record-points", je, a);
970
+ }
971
+ if (a === 0) return;
972
+ let l = t.pos;
973
+ t.pos = o;
974
+ let d = [], f = c, p = 0;
975
+ for (let e = 0; e < i; e++) {
976
+ let e = t.u32(), n = Math.min(e, f);
977
+ f -= n, d.push(e), e >= 2 && n > 0 && (p += n + +!!r);
978
+ }
979
+ t.pos = l;
980
+ let { ctx: m } = e, h = I(e, p), g = P(e);
981
+ e.inPath || m.beginPath();
982
+ let _ = !1;
983
+ for (let i of d) {
984
+ let a = L(t, i, n);
985
+ if (i < 2 || a === 0) {
986
+ for (let e = 0; e < a; e++) n(t);
987
+ continue;
988
+ }
989
+ for (let r = 0; r < a; r++) {
990
+ let [i, a] = n(t);
991
+ if (h) {
992
+ let [t, n] = B(e, i, a);
993
+ r === 0 ? g.moveTo(t, n) : g.lineTo(t, n);
994
+ }
995
+ }
996
+ r && h && g.closePath(), _ = !0;
997
+ }
998
+ !_ || e.inPath || (r && e.curBrush && e.curBrush.fill != null && (m.fillStyle = e.curBrush.fill, m.fill(e.fillRule), e.drew = !0), e.curPen && e.curPen.stroke != null && (m.strokeStyle = e.curPen.stroke, m.lineWidth = V(e, e.curPen.width), m.stroke(), e.drew = !0));
999
+ }
1000
+ function Le(e, t, n, r, i) {
1001
+ let { ctx: a } = e, o = B(e, t, n), s = B(e, r, n), c = B(e, r, i), l = B(e, t, i), u = P(e), d = I(e, 5);
1002
+ e.inPath || a.beginPath(), d && (u.moveTo(o[0], o[1]), u.lineTo(s[0], s[1]), u.lineTo(c[0], c[1]), u.lineTo(l[0], l[1]), u.closePath()), !e.inPath && (e.curBrush && e.curBrush.fill != null && (a.fillStyle = e.curBrush.fill, a.fill(e.fillRule), e.drew = !0), e.curPen && e.curPen.stroke != null && (a.strokeStyle = e.curPen.stroke, a.lineWidth = V(e, e.curPen.width), a.stroke(), e.drew = !0));
1003
+ }
1004
+ function J(e, t, n) {
1005
+ if (!e.pathHeld) return;
1006
+ let r = !e.pathDiscarded, i = e.path.buf.ops;
1007
+ if (r && de(e.ctx, i), F(e), !r) return;
1008
+ let { ctx: a } = e;
1009
+ t && e.curBrush?.fill != null && (a.fillStyle = e.curBrush.fill, a.fill(e.fillRule), e.drew = !0), n && e.curPen?.stroke != null && (a.strokeStyle = e.curPen.stroke, a.lineWidth = V(e, e.curPen.width), a.stroke(), e.drew = !0), a.beginPath();
1010
+ }
1011
+ function Y(e, t, n, r, i, a) {
1012
+ let o = Math.max(1, Math.ceil(Math.abs(a) / (Math.PI / 2) - 1e-9)), s = a / o, c = 4 / 3 * Math.tan(s / 4), l = (i) => [e + n * Math.cos(i), t + r * Math.sin(i)], u = [];
1013
+ for (let e = 0; e < o; e++) {
1014
+ let t = i + e * s, a = t + s, [o, d] = l(t), [f, p] = l(a);
1015
+ u.push([
1016
+ [o - c * n * Math.sin(t), d + c * r * Math.cos(t)],
1017
+ [f + c * n * Math.sin(a), p - c * r * Math.cos(a)],
1018
+ [f, p]
1019
+ ]);
1020
+ }
1021
+ return {
1022
+ start: l(i),
1023
+ curves: u,
1024
+ end: l(i + a)
1025
+ };
1026
+ }
1027
+ function Re(e, t, n) {
1028
+ let r = t - e;
1029
+ if (n === O) {
1030
+ for (; r <= 0;) r += 2 * Math.PI;
1031
+ for (; r > 2 * Math.PI;) r -= 2 * Math.PI;
1032
+ } else {
1033
+ for (; r >= 0;) r -= 2 * Math.PI;
1034
+ for (; r < -2 * Math.PI;) r += 2 * Math.PI;
1035
+ }
1036
+ return r;
1037
+ }
1038
+ function ze(e, t, n, r) {
1039
+ let [i, a, o, s] = e, c = Math.abs(o - i) / 2, l = Math.abs(s - a) / 2;
1040
+ if (c === 0 || l === 0) return null;
1041
+ let u = (i + o) / 2, d = (a + s) / 2, f = Math.atan2((t[1] - d) / l, (t[0] - u) / c);
1042
+ return {
1043
+ ...Y(u, d, c, l, f, Re(f, Math.atan2((n[1] - d) / l, (n[0] - u) / c), r)),
1044
+ center: [u, d]
1045
+ };
1046
+ }
1047
+ function X(e) {
1048
+ let [t, n] = B(e, 0, 0), [r, i] = B(e, 1, 0), [a, o] = B(e, 0, 1);
1049
+ return (r - t) * (o - n) - (i - n) * (a - t) < 0;
1050
+ }
1051
+ function Z(e, t, n) {
1052
+ for (let [r, i, a] of n.curves) {
1053
+ let n = B(e, r[0], r[1]), o = B(e, i[0], i[1]), s = B(e, a[0], a[1]);
1054
+ t.bezierCurveTo(n[0], n[1], o[0], o[1], s[0], s[1]);
1055
+ }
1056
+ }
1057
+ function Be(e, t) {
1058
+ let { ctx: n } = e;
1059
+ t && e.curBrush && e.curBrush.fill != null && (n.fillStyle = e.curBrush.fill, n.fill(e.fillRule), e.drew = !0), e.curPen && e.curPen.stroke != null && (n.strokeStyle = e.curPen.stroke, n.lineWidth = V(e, e.curPen.width), n.stroke(), e.drew = !0);
1060
+ }
1061
+ function Q(e, t) {
1062
+ e.unsupported.add(t);
1063
+ }
1064
+ function $(e, t, n, r) {
1065
+ let i = [
1066
+ t.i32(),
1067
+ t.i32(),
1068
+ t.i32(),
1069
+ t.i32()
1070
+ ], a = [t.i32(), t.i32()], o = [t.i32(), t.i32()];
1071
+ if (X(e)) {
1072
+ Q(e, `${r} (reflected mapping)`);
1073
+ return;
1074
+ }
1075
+ let s = ze(i, a, o, e.arcDirection);
1076
+ if (!s) return;
1077
+ let c = n === "pie" ? 3 : n === "chord" ? 2 : 1;
1078
+ if (!I(e, s.curves.length + c)) return;
1079
+ let { ctx: l } = e, u = P(e), d = B(e, s.start[0], s.start[1]);
1080
+ e.inPath || l.beginPath(), n === "arcTo" ? (e.inPath || l.moveTo(...B(e, e.curX, e.curY)), u.lineTo(d[0], d[1])) : n === "pie" ? (u.moveTo(...B(e, s.center[0], s.center[1])), u.lineTo(d[0], d[1])) : u.moveTo(d[0], d[1]), Z(e, u, s), (n === "chord" || n === "pie") && u.closePath(), n === "arcTo" && (e.curX = s.end[0], e.curY = s.end[1]), e.inPath || Be(e, n === "chord" || n === "pie");
1081
+ }
1082
+ function Ve(e, t) {
1083
+ let n = t.i32(), r = t.i32(), i = t.u32(), a = t.f32(), o = t.f32();
1084
+ if (!Number.isFinite(a) || !Number.isFinite(o)) return;
1085
+ if (X(e)) {
1086
+ Q(e, "EMR_ANGLEARC (reflected mapping)");
1087
+ return;
1088
+ }
1089
+ if (e.inPath && Math.abs(o) > 360) {
1090
+ Q(e, "EMR_ANGLEARC (multiple sweeps in a path)");
1091
+ return;
1092
+ }
1093
+ let s = Math.max(-360, Math.min(360, o)), c = Y(n, r, i, i, -a * Math.PI / 180, -s * Math.PI / 180);
1094
+ if (!I(e, (s === 0 ? 0 : c.curves.length) + 1)) return;
1095
+ let { ctx: l } = e, u = P(e), d = B(e, c.start[0], c.start[1]);
1096
+ e.inPath || (l.beginPath(), l.moveTo(...B(e, e.curX, e.curY))), u.lineTo(d[0], d[1]), s !== 0 && Z(e, u, c), e.curX = c.end[0], e.curY = c.end[1], e.inPath || Be(e, !1);
1097
+ }
1098
+ function He(e, t) {
1099
+ let n = t.i32(), r = t.i32(), i = t.i32(), a = t.i32(), o = t.i32(), s = t.i32();
1100
+ if (X(e)) {
1101
+ Q(e, "EMR_ROUNDRECT (reflected mapping)");
1102
+ return;
1103
+ }
1104
+ let [c, l] = n <= i ? [n, i] : [i, n], [u, d] = r <= a ? [r, a] : [a, r], f = Math.min(Math.abs(o) / 2, (l - c) / 2), p = Math.min(Math.abs(s) / 2, (d - u) / 2), m = f > 0 && p > 0;
1105
+ if (!I(e, m ? 9 : 5)) return;
1106
+ let { ctx: h } = e, g = P(e);
1107
+ e.inPath || h.beginPath();
1108
+ let _ = e.arcDirection === O, v = [
1109
+ [
1110
+ l - f,
1111
+ u + p,
1112
+ -Math.PI / 2
1113
+ ],
1114
+ [
1115
+ l - f,
1116
+ d - p,
1117
+ 0
1118
+ ],
1119
+ [
1120
+ c + f,
1121
+ d - p,
1122
+ Math.PI / 2
1123
+ ],
1124
+ [
1125
+ c + f,
1126
+ u + p,
1127
+ Math.PI
1128
+ ]
1129
+ ];
1130
+ (_ ? v : [...v].reverse()).forEach(([t, n, r], i) => {
1131
+ let a = _ ? Y(t, n, f, p, r, Math.PI / 2) : Y(t, n, f, p, r + Math.PI / 2, -Math.PI / 2), o = B(e, a.start[0], a.start[1]);
1132
+ i === 0 ? g.moveTo(o[0], o[1]) : g.lineTo(o[0], o[1]), m && Z(e, g, a);
1133
+ }), g.closePath(), e.inPath || Be(e, !0);
1134
+ }
1135
+ function Ue(e, t, n) {
1136
+ let r = t.i32(), i = t.i32(), a = t.i32(), o = t.i32(), s = [
1137
+ B(e, r, i),
1138
+ B(e, a, i),
1139
+ B(e, a, o),
1140
+ B(e, r, o)
1141
+ ];
1142
+ We(e, n ? "evenodd" : "nonzero", (e) => {
1143
+ n && Je(e), e.moveTo(...s[0]);
1144
+ for (let t of s.slice(1)) e.lineTo(...t);
1145
+ e.closePath();
1146
+ });
1147
+ }
1148
+ function We(e, t, n) {
1149
+ e.ctx.beginPath(), n(e.ctx), Ge(e, t);
1150
+ }
1151
+ function Ge(e, t) {
1152
+ try {
1153
+ e.ctx.clip(t), e.clipped = !0;
1154
+ } catch {}
1155
+ }
1156
+ function Ke(e, t) {
1157
+ return e.clipped ? e.outerClipped ? (e.unsupported.add(`${t} (reset of an inherited clip)`), !1) : (e.ctx.restore(), e.ctx.save(), e.clipped = !1, !0) : !0;
1158
+ }
1159
+ function qe(e, t) {
1160
+ let n = t.u32(), r = t.u32(), i = "EMR_EXTSELECTCLIPRGN";
1161
+ if (r === j && n === 0) {
1162
+ Ke(e, i);
1163
+ return;
1164
+ }
1165
+ if (n < 32 || t.remaining < n) throw RangeError("Truncated EMF region");
1166
+ t.u32(), t.u32();
1167
+ let a = t.u32();
1168
+ if (t.u32(), t.skip(16), a > Math.floor((n - 32) / 16)) throw RangeError("Invalid EMF region");
1169
+ if (a > Me) throw new u("metafile-record-rectangles", Me, a);
1170
+ if (r !== k && r !== j && r !== A) {
1171
+ e.unsupported.add(`${i} (mode ${r})`);
1172
+ return;
1173
+ }
1174
+ if (r === j && !Ke(e, i)) return;
1175
+ let o = (t, n) => [(t - e.left) * e.W / e.boundsW, (n - e.top) * e.H / e.boundsH], s = [];
1176
+ for (let e = 0; e < a; e++) s.push([
1177
+ t.i32(),
1178
+ t.i32(),
1179
+ t.i32(),
1180
+ t.i32()
1181
+ ]);
1182
+ let c = (e, [t, n, r, i]) => {
1183
+ e.moveTo(...o(t, n)), e.lineTo(...o(r, n)), e.lineTo(...o(r, i)), e.lineTo(...o(t, i)), e.closePath();
1184
+ };
1185
+ if (r === A) {
1186
+ for (let t of s) We(e, "evenodd", (e) => {
1187
+ Je(e), c(e, t);
1188
+ });
1189
+ return;
1190
+ }
1191
+ We(e, "nonzero", (e) => {
1192
+ for (let t of s) c(e, t);
1193
+ });
1194
+ }
1195
+ function Je(e) {
1196
+ e.moveTo(-1e7, -1e7), e.lineTo(1e7, -1e7), e.lineTo(1e7, 1e7), e.lineTo(-1e7, 1e7), e.closePath();
1197
+ }
1198
+ function Ye(e) {
1199
+ let t = e.u32(), n = e.u32(), r = e.i32();
1200
+ e.i32();
1201
+ let i = e.u32();
1202
+ return [t, {
1203
+ kind: "pen",
1204
+ stroke: (n & 255) == 5 ? null : a(i),
1205
+ width: Math.abs(r)
1206
+ }];
1207
+ }
1208
+ function Xe(e) {
1209
+ let t = e.u32();
1210
+ e.skip(16);
1211
+ let n = e.u32(), r = e.u32();
1212
+ e.u32();
1213
+ let i = e.u32();
1214
+ return [t, {
1215
+ kind: "pen",
1216
+ stroke: (n & 255) == 5 ? null : a(i),
1217
+ width: Math.abs(r)
1218
+ }];
1219
+ }
1220
+ function Ze(e) {
1221
+ let t = e.u32(), n = e.u32(), r = e.u32();
1222
+ return e.u32(), [t, {
1223
+ kind: "brush",
1224
+ fill: n === 1 ? null : a(r)
1225
+ }];
1226
+ }
1227
+ function Qe(e, t, r, i, a, o, s) {
1228
+ let c = e.pos - r;
1229
+ return i < c || o < c ? null : n(t, r + i, a, r + o, s);
1230
+ }
1231
+ function $e(e, t, n) {
1232
+ let r = e.u32();
1233
+ e.u32();
1234
+ let i = e.u32(), a = e.u32(), s = e.u32(), c = e.u32(), l = "#808080";
1235
+ try {
1236
+ let r = Qe(e, t, n, i, a, s, c);
1237
+ r && (l = ke(r));
1238
+ } catch (e) {
1239
+ if (o(e)) throw e;
1240
+ }
1241
+ return [r, {
1242
+ kind: "brush",
1243
+ fill: l
1244
+ }];
1245
+ }
1246
+ function et(e, t, n) {
1247
+ if (e.remaining < 96) throw RangeError("Truncated EMF LOGFONTW");
1248
+ let r = e.u32(), i = n + 12, a = t.getInt32(i, !0), o = t.getInt32(i + 8, !0), s = t.getInt32(i + 16, !0), c = t.getUint8(i + 20), l = t.getUint8(i + 23), u = "";
1249
+ for (let e = 0; e < 32; e++) {
1250
+ let n = i + 28 + e * 2;
1251
+ if (n + 2 > t.byteLength) break;
1252
+ let r = t.getUint16(n, !0);
1253
+ if (r === 0) break;
1254
+ u += String.fromCharCode(r);
1255
+ }
1256
+ return [r, {
1257
+ kind: "font",
1258
+ charset: l,
1259
+ height: Math.abs(a),
1260
+ weight: s,
1261
+ italic: c !== 0,
1262
+ face: u,
1263
+ escapement: o
1264
+ }];
1265
+ }
1266
+ function tt(e, n, r, i) {
1267
+ let a = n.pos + n.remaining;
1268
+ if (n.remaining < 48) throw RangeError("Truncated EMF text record");
1269
+ n.skip(16), n.u32(), n.f32(), n.f32();
1270
+ let o = n.i32(), s = n.i32(), c = n.u32(), l = n.u32(), d = n.u32(), f = d & 256 ? 60 : 76;
1271
+ if (i + f > a) throw RangeError("Truncated EMF text header");
1272
+ if (c === 0) return;
1273
+ if (l < f || i + l + c * 2 > a) throw RangeError("Truncated EMF text string");
1274
+ if (c > Ne) throw new u("metafile-record-text-units", Ne, c);
1275
+ let p = "";
1276
+ for (let e = 0; e < c; e++) {
1277
+ let t = i + l + e * 2;
1278
+ if (t + 2 > r.byteLength) break;
1279
+ p += String.fromCharCode(r.getUint16(t, !0));
1280
+ }
1281
+ if (p.length === 0) return;
1282
+ let m = e.curFont, h = !1;
1283
+ if (m?.charset === 2 && /[\uf000-\uf0ff]/.test(p)) {
1284
+ let n = d === 0 ? t(p, m.face, !0) : null;
1285
+ n === null ? Q(e, "EMR_EXTTEXTOUTW (unsupported symbol encoding)") : (p = n, h = !0), h && c > 1 && r.getUint32(i + f - 4, !0) !== 0 && Q(e, "EMR_EXTTEXTOUTW (symbol character advances)");
1286
+ }
1287
+ let g = Math.abs(m?.height ?? 0) * Ce(e) * Math.abs(z(e)) * we(e);
1288
+ if (!Number.isFinite(g) || g < 1) return;
1289
+ let { ctx: _ } = e, [v, y] = B(e, o, s);
1290
+ _.fillStyle = e.textColor;
1291
+ let b = m && m.weight >= 700 ? "bold " : "";
1292
+ _.font = `${m?.italic ? "italic " : ""}${b}${g}px ${h ? "serif" : m?.face || "sans-serif"}`;
1293
+ let x = e.textAlign & 6;
1294
+ _.textAlign = x === 2 ? "right" : x === 6 ? "center" : "left", _.textBaseline = (e.textAlign & 24) == 24 ? "alphabetic" : "top";
1295
+ let S = m?.escapement ?? 0;
1296
+ try {
1297
+ if (S !== 0) {
1298
+ _.save();
1299
+ try {
1300
+ _.translate(v, y), _.rotate(-S / 10 * (Math.PI / 180)), _.fillText(p, 0, 0);
1301
+ } finally {
1302
+ _.restore();
1303
+ }
1304
+ } else _.fillText(p, v, y);
1305
+ e.drew = !0;
1306
+ } catch {}
1307
+ }
1308
+ function nt(e, t, n, i, a, o, s, c, l, u, d, f) {
1309
+ if (o === 0 || c === 0) return;
1310
+ let p = Qe(t, n, i, a, o, s, c);
1311
+ if (!p) {
1312
+ e.unsupported.add("EMF bitmap (DIB encoding)");
1313
+ return;
1314
+ }
1315
+ let [m, h] = B(e, l, u), [g, _] = B(e, d, f);
1316
+ r(e.ctx, p, m, h, g, _) && (e.drew = !0);
1317
+ }
1318
+ function rt(e, t, n, r) {
1319
+ t.skip(16);
1320
+ let i = t.i32(), a = t.i32(), o = t.i32(), s = t.i32(), c = t.u32();
1321
+ t.i32(), t.i32(), t.skip(24), t.u32(), t.u32();
1322
+ let l = t.u32(), u = t.u32(), d = t.u32(), f = t.u32();
1323
+ if (u === 0 || f === 0) {
1324
+ if (c === 11141161) return;
1325
+ let t = c === 15728673 ? e.curBrush?.fill ?? null : c === 66 ? "#000000" : c === 16711778 ? "#ffffff" : void 0;
1326
+ if (t === void 0) {
1327
+ e.unsupported.add(`EMR_BITBLT (raster operation 0x${c.toString(16)})`);
1328
+ return;
1329
+ }
1330
+ if (t === null) return;
1331
+ let n = [
1332
+ B(e, i, a),
1333
+ B(e, i + o, a),
1334
+ B(e, i + o, a + s),
1335
+ B(e, i, a + s)
1336
+ ];
1337
+ e.ctx.beginPath(), e.ctx.moveTo(...n[0]);
1338
+ for (let t of n.slice(1)) e.ctx.lineTo(...t);
1339
+ e.ctx.closePath(), e.ctx.fillStyle = t, e.ctx.fill("nonzero"), e.drew = !0;
1340
+ return;
1341
+ }
1342
+ nt(e, t, n, r, l, u, d, f, i, a, i + o, a + s);
1343
+ }
1344
+ function it(e, t, n, r) {
1345
+ t.skip(16);
1346
+ let i = t.i32(), a = t.i32();
1347
+ t.i32(), t.i32(), t.i32(), t.i32();
1348
+ let o = t.u32(), s = t.u32(), c = t.u32(), l = t.u32();
1349
+ t.u32(), t.u32();
1350
+ let u = t.i32(), d = t.i32();
1351
+ nt(e, t, n, r, o, s, c, l, i, a, i + u, a + d);
1352
+ }
1353
+ function at(t, n, r, i, a = {}) {
1354
+ let o = a;
1355
+ if (!e(t) || r <= 0 || i <= 0) return !1;
1356
+ let s = new DataView(t.buffer, t.byteOffset, t.byteLength), c = () => ({
1357
+ ctx: n,
1358
+ W: r,
1359
+ H: i,
1360
+ left: 0,
1361
+ top: 0,
1362
+ boundsW: r,
1363
+ boundsH: i,
1364
+ wt: ee(),
1365
+ mapMode: N.TEXT,
1366
+ winOrgX: 0,
1367
+ winOrgY: 0,
1368
+ winExtX: 1,
1369
+ winExtY: 1,
1370
+ vpOrgX: 0,
1371
+ vpOrgY: 0,
1372
+ vpExtX: 1,
1373
+ vpExtY: 1,
1374
+ devPxPerMmX: 0,
1375
+ devPxPerMmY: 0,
1376
+ objects: /* @__PURE__ */ new Map(),
1377
+ curPen: null,
1378
+ curBrush: null,
1379
+ curFont: null,
1380
+ textColor: "#000000",
1381
+ bkMode: 1,
1382
+ textAlign: 0,
1383
+ fillRule: "nonzero",
1384
+ curX: 0,
1385
+ curY: 0,
1386
+ stack: [],
1387
+ drew: !1,
1388
+ path: new ie(),
1389
+ inPath: !1,
1390
+ pathHeld: !1,
1391
+ pathDiscarded: !1,
1392
+ pathRetained: 0,
1393
+ maxPathCommands: Number.isSafeInteger(o.maxPathCommands) && o.maxPathCommands > 0 ? Math.min(o.maxPathCommands, re) : re,
1394
+ arcDirection: D,
1395
+ clipped: !1,
1396
+ outerClipped: !1,
1397
+ unsupported: /* @__PURE__ */ new Set()
1398
+ }), l = x(t), u = c();
1399
+ if (l.play) {
1400
+ let e = new w(u);
1401
+ if (ot(u, e, l.dual, s, t), e.drawFailed && l.dual) {
1402
+ let e = [...u.unsupported];
1403
+ try {
1404
+ n.clearRect(0, 0, r, i);
1405
+ } catch {}
1406
+ u = c(), ot(u, null, !1, s, t);
1407
+ for (let t of e) u.unsupported.add(t);
1408
+ }
1409
+ } else {
1410
+ if (!l.dual) for (let e of l.failures) u.unsupported.add(e);
1411
+ ot(u, null, !1, s, t);
1412
+ }
1413
+ return u.unsupported.size > 0 && a.onUnsupported?.([...u.unsupported]), u.drew;
1414
+ }
1415
+ function ot(e, t, n, r, i) {
1416
+ let a = e.ctx;
1417
+ a.save();
1418
+ try {
1419
+ st(e, t, n, r, i);
1420
+ } finally {
1421
+ for (let t = 0; t <= e.stack.length; t++) a.restore();
1422
+ }
1423
+ }
1424
+ function st(e, t, n, r, i) {
1425
+ let s = e.ctx, c = 0;
1426
+ for (; c + 8 <= i.length;) {
1427
+ let l = r.getUint32(c, !0), u = r.getUint32(c + 4, !0);
1428
+ if (u < 8 || u & 3 || c + u > i.length) {
1429
+ e.unsupported.add("EMF record stream (truncated or invalid record size)");
1430
+ break;
1431
+ }
1432
+ let d = c + u;
1433
+ if (l === T.EOF) break;
1434
+ let f = new DataView(r.buffer, r.byteOffset, d), p = new ne(f, c + 8, d);
1435
+ if (t && l !== T.HEADER) {
1436
+ if (l === T.GDICOMMENT) {
1437
+ if (t.playComment(f, c, d), n && t.drawFailed) break;
1438
+ c = d;
1439
+ continue;
1440
+ }
1441
+ if (!t.gdiAllowed) {
1442
+ c = d;
1443
+ continue;
1444
+ }
1445
+ }
1446
+ try {
1447
+ switch (l) {
1448
+ case T.HEADER: {
1449
+ let t = p.i32(), n = p.i32(), r = p.i32(), i = p.i32();
1450
+ if (e.left = t, e.top = n, e.boundsW = Math.max(1, r - t), e.boundsH = Math.max(1, i - n), d >= c + 88) {
1451
+ let t = f.getInt32(c + 24, !0), n = f.getInt32(c + 28, !0), r = f.getInt32(c + 32, !0), i = f.getInt32(c + 36, !0), a = f.getInt32(c + 72, !0), o = f.getInt32(c + 76, !0), s = f.getInt32(c + 80, !0), l = f.getInt32(c + 84, !0), u = r - t, d = i - n;
1452
+ if (u > 0 && d > 0 && a > 0 && o > 0 && s > 0 && l > 0) {
1453
+ let r = a / (s * 100), i = o / (l * 100);
1454
+ e.left = t * r, e.top = n * i, e.boundsW = Math.max(1, u * r), e.boundsH = Math.max(1, d * i), e.devPxPerMmX = a / s, e.devPxPerMmY = o / l;
1455
+ }
1456
+ }
1457
+ break;
1458
+ }
1459
+ case T.SETWORLDTRANSFORM:
1460
+ e.wt = p.xform();
1461
+ break;
1462
+ case T.MODIFYWORLDTRANSFORM: {
1463
+ let t = p.xform(), n = p.u32();
1464
+ n === 1 ? e.wt = ee() : n === 2 ? e.wt = te(t, e.wt) : n === 3 ? e.wt = te(e.wt, t) : n === 4 && (e.wt = t);
1465
+ break;
1466
+ }
1467
+ case T.SETMAPMODE:
1468
+ Te(e, p.u32());
1469
+ break;
1470
+ case T.SETWINDOWORGEX: {
1471
+ let t = p.i32(), n = p.i32();
1472
+ e.winOrgX = t, e.winOrgY = n;
1473
+ break;
1474
+ }
1475
+ case T.SETWINDOWEXTEX: {
1476
+ let t = p.i32(), n = p.i32();
1477
+ t !== 0 && (e.winExtX = t), n !== 0 && (e.winExtY = n);
1478
+ break;
1479
+ }
1480
+ case T.SETVIEWPORTORGEX: {
1481
+ let t = p.i32(), n = p.i32();
1482
+ e.vpOrgX = t, e.vpOrgY = n;
1483
+ break;
1484
+ }
1485
+ case T.SETVIEWPORTEXTEX: {
1486
+ let t = p.i32(), n = p.i32();
1487
+ t !== 0 && (e.vpExtX = t), n !== 0 && (e.vpExtY = n);
1488
+ break;
1489
+ }
1490
+ case T.SCALEWINDOWEXTEX: {
1491
+ let t = p.i32(), n = p.i32(), r = p.i32(), i = p.i32();
1492
+ n !== 0 && (e.winExtX = e.winExtX * t / n), i !== 0 && (e.winExtY = e.winExtY * r / i);
1493
+ break;
1494
+ }
1495
+ case T.SCALEVIEWPORTEXTEX: {
1496
+ let t = p.i32(), n = p.i32(), r = p.i32(), i = p.i32();
1497
+ n !== 0 && (e.vpExtX = e.vpExtX * t / n), i !== 0 && (e.vpExtY = e.vpExtY * r / i);
1498
+ break;
1499
+ }
1500
+ case T.SAVEDC:
1501
+ e.ctx.save(), e.stack.push({
1502
+ wt: { ...e.wt },
1503
+ mapMode: e.mapMode,
1504
+ winOrgX: e.winOrgX,
1505
+ winOrgY: e.winOrgY,
1506
+ winExtX: e.winExtX,
1507
+ winExtY: e.winExtY,
1508
+ vpOrgX: e.vpOrgX,
1509
+ vpOrgY: e.vpOrgY,
1510
+ vpExtX: e.vpExtX,
1511
+ vpExtY: e.vpExtY,
1512
+ curPen: e.curPen,
1513
+ curBrush: e.curBrush,
1514
+ curFont: e.curFont,
1515
+ textColor: e.textColor,
1516
+ bkMode: e.bkMode,
1517
+ textAlign: e.textAlign,
1518
+ fillRule: e.fillRule,
1519
+ curX: e.curX,
1520
+ curY: e.curY,
1521
+ arcDirection: e.arcDirection,
1522
+ clipped: e.clipped,
1523
+ outerClipped: e.outerClipped,
1524
+ pathBuf: e.path.buf,
1525
+ pathLength: e.path.buf.ops.length,
1526
+ pathCommands: e.path.buf.commands,
1527
+ inPath: e.inPath,
1528
+ pathHeld: e.pathHeld,
1529
+ pathDiscarded: e.pathDiscarded
1530
+ }), e.path.buf.saved.push({
1531
+ length: e.path.buf.ops.length,
1532
+ commands: e.path.buf.commands
1533
+ }), e.outerClipped = e.clipped;
1534
+ break;
1535
+ case T.RESTOREDC: {
1536
+ let t = p.i32(), n = Math.min(Math.abs(t) || 1, e.stack.length), r, i = /* @__PURE__ */ new Set();
1537
+ for (let t = 0; t < n; t++) r = e.stack.pop(), e.ctx.restore(), r && (r.pathBuf.saved.pop(), i.add(r.pathBuf));
1538
+ if (r) {
1539
+ e.wt = r.wt, e.mapMode = r.mapMode, e.winOrgX = r.winOrgX, e.winOrgY = r.winOrgY, e.winExtX = r.winExtX, e.winExtY = r.winExtY, e.vpOrgX = r.vpOrgX, e.vpOrgY = r.vpOrgY, e.vpExtX = r.vpExtX, e.vpExtY = r.vpExtY, e.curPen = r.curPen, e.curBrush = r.curBrush, e.curFont = r.curFont, e.textColor = r.textColor, e.bkMode = r.bkMode, e.textAlign = r.textAlign, e.fillRule = r.fillRule, e.curX = r.curX, e.curY = r.curY, e.arcDirection = r.arcDirection, e.clipped = r.clipped, e.outerClipped = r.outerClipped, i.add(e.path.buf);
1540
+ let t = r.pathBuf;
1541
+ e.path.buf = t, i.delete(t), e.pathRetained -= t.commands - r.pathCommands, t.commands = r.pathCommands, t.ops.length = r.pathLength;
1542
+ for (let t of i) oe(e, t);
1543
+ e.inPath = r.inPath, e.pathHeld = r.pathHeld, e.pathDiscarded = r.pathDiscarded;
1544
+ }
1545
+ break;
1546
+ }
1547
+ case T.BEGINPATH:
1548
+ F(e), e.inPath = !0;
1549
+ break;
1550
+ case T.CLOSEFIGURE:
1551
+ e.inPath && I(e, 1) && e.path.closePath();
1552
+ break;
1553
+ case T.ENDPATH:
1554
+ e.inPath && (e.pathHeld = !0), e.inPath = !1;
1555
+ break;
1556
+ case T.FILLPATH:
1557
+ J(e, !0, !1);
1558
+ break;
1559
+ case T.STROKEANDFILLPATH:
1560
+ J(e, !0, !0);
1561
+ break;
1562
+ case T.STROKEPATH:
1563
+ J(e, !1, !0);
1564
+ break;
1565
+ case T.ABORTPATH:
1566
+ F(e);
1567
+ break;
1568
+ case T.FLATTENPATH: break;
1569
+ case T.WIDENPATH:
1570
+ e.pathHeld && e.unsupported.add("EMR_WIDENPATH");
1571
+ break;
1572
+ case T.SELECTCLIPPATH: {
1573
+ let t = p.remaining >= 4 ? p.u32() : k;
1574
+ if (!e.pathHeld) break;
1575
+ t !== k && t !== j ? e.unsupported.add(`EMR_SELECTCLIPPATH (mode ${t})`) : t === j && Ke(e, "EMR_SELECTCLIPPATH"), e.pathDiscarded || (de(e.ctx, e.path.buf.ops), Ge(e, e.fillRule)), F(e);
1576
+ break;
1577
+ }
1578
+ case T.INTERSECTCLIPRECT:
1579
+ Ue(e, p, !1);
1580
+ break;
1581
+ case T.EXCLUDECLIPRECT:
1582
+ Ue(e, p, !0);
1583
+ break;
1584
+ case T.EXTSELECTCLIPRGN:
1585
+ qe(e, p);
1586
+ break;
1587
+ case T.OFFSETCLIPRGN:
1588
+ e.clipped && e.unsupported.add("EMR_OFFSETCLIPRGN");
1589
+ break;
1590
+ case T.SETARCDIRECTION: {
1591
+ let t = p.u32();
1592
+ (t === D || t === O) && (e.arcDirection = t);
1593
+ break;
1594
+ }
1595
+ case T.GDICOMMENT: break;
1596
+ case T.SELECTOBJECT: {
1597
+ let t = p.u32();
1598
+ if (t & 2147483648) Oe(e, t >>> 0);
1599
+ else {
1600
+ let n = e.objects.get(t);
1601
+ n?.kind === "pen" ? e.curPen = n : n?.kind === "brush" ? e.curBrush = n : n?.kind === "font" && (e.curFont = n);
1602
+ }
1603
+ break;
1604
+ }
1605
+ case T.DELETEOBJECT: {
1606
+ let t = p.u32(), n = e.objects.get(t);
1607
+ n && (n === e.curPen && (e.curPen = null), n === e.curBrush && (e.curBrush = null), n === e.curFont && (e.curFont = null), e.objects.delete(t));
1608
+ break;
1609
+ }
1610
+ case T.CREATEPEN: {
1611
+ let [t, n] = Ye(p);
1612
+ e.objects.set(t, n);
1613
+ break;
1614
+ }
1615
+ case T.EXTCREATEPEN: {
1616
+ let [t, n] = Xe(p);
1617
+ e.objects.set(t, n);
1618
+ break;
1619
+ }
1620
+ case T.CREATEBRUSHINDIRECT: {
1621
+ let [t, n] = Ze(p);
1622
+ e.objects.set(t, n);
1623
+ break;
1624
+ }
1625
+ case T.CREATEMONOBRUSH:
1626
+ case T.CREATEDIBPATTERNBRUSHPT: {
1627
+ let [t, n] = $e(p, f, c);
1628
+ e.objects.set(t, n);
1629
+ break;
1630
+ }
1631
+ case T.EXTCREATEFONTINDIRECTW: {
1632
+ let [t, n] = et(p, f, c);
1633
+ e.objects.set(t, n);
1634
+ break;
1635
+ }
1636
+ case T.POLYLINE16:
1637
+ Pe(e, p, H);
1638
+ break;
1639
+ case T.POLYLINE:
1640
+ Pe(e, p, U);
1641
+ break;
1642
+ case T.POLYLINETO16:
1643
+ Fe(e, p, H);
1644
+ break;
1645
+ case T.POLYLINETO:
1646
+ Fe(e, p, U);
1647
+ break;
1648
+ case T.POLYGON16:
1649
+ Ie(e, p, H);
1650
+ break;
1651
+ case T.POLYGON:
1652
+ Ie(e, p, U);
1653
+ break;
1654
+ case T.POLYBEZIER16:
1655
+ K(e, p, H, !1);
1656
+ break;
1657
+ case T.POLYBEZIER:
1658
+ K(e, p, U, !1);
1659
+ break;
1660
+ case T.POLYBEZIERTO16:
1661
+ K(e, p, H, !0);
1662
+ break;
1663
+ case T.POLYBEZIERTO:
1664
+ K(e, p, U, !0);
1665
+ break;
1666
+ case T.POLYPOLYGON16:
1667
+ q(e, p, H, !0);
1668
+ break;
1669
+ case T.POLYPOLYGON:
1670
+ q(e, p, U, !0);
1671
+ break;
1672
+ case T.POLYPOLYLINE16:
1673
+ q(e, p, H, !1);
1674
+ break;
1675
+ case T.POLYPOLYLINE:
1676
+ q(e, p, U, !1);
1677
+ break;
1678
+ case T.MOVETOEX: {
1679
+ let t = p.i32(), n = p.i32();
1680
+ if (e.curX = t, e.curY = n, e.inPath && I(e, 1)) {
1681
+ let [t, n] = B(e, e.curX, e.curY);
1682
+ e.path.moveTo(t, n);
1683
+ }
1684
+ break;
1685
+ }
1686
+ case T.LINETO: {
1687
+ let t = p.i32(), n = p.i32();
1688
+ if (e.inPath) I(e, 1) && e.path.lineTo(...B(e, t, n));
1689
+ else if (e.curPen && e.curPen.stroke != null) {
1690
+ let [r, i] = B(e, e.curX, e.curY), [a, o] = B(e, t, n);
1691
+ e.ctx.beginPath(), e.ctx.moveTo(r, i), e.ctx.lineTo(a, o), e.ctx.strokeStyle = e.curPen.stroke, e.ctx.lineWidth = V(e, e.curPen.width), e.ctx.stroke(), e.drew = !0;
1692
+ }
1693
+ e.curX = t, e.curY = n;
1694
+ break;
1695
+ }
1696
+ case T.RECTANGLE:
1697
+ Le(e, p.i32(), p.i32(), p.i32(), p.i32());
1698
+ break;
1699
+ case T.ELLIPSE: {
1700
+ let t = p.i32(), n = p.i32(), r = p.i32(), i = p.i32();
1701
+ if (e.inPath) {
1702
+ if (X(e)) {
1703
+ Q(e, "EMR_ELLIPSE (reflected mapping)");
1704
+ break;
1705
+ }
1706
+ let a = Math.abs(r - t) / 2, o = Math.abs(i - n) / 2;
1707
+ if (a === 0 || o === 0) break;
1708
+ let s = e.arcDirection === O ? 2 * Math.PI : -2 * Math.PI, c = Y((t + r) / 2, (n + i) / 2, a, o, 0, s);
1709
+ if (!I(e, c.curves.length + 2)) break;
1710
+ e.path.moveTo(...B(e, c.start[0], c.start[1])), Z(e, e.path, c), e.path.closePath();
1711
+ break;
1712
+ }
1713
+ let [a, o] = [(t + r) / 2, (n + i) / 2], [c, l] = B(e, a, o), [u] = B(e, r, o), [, d] = B(e, a, i), f = Math.abs(u - c), m = Math.abs(d - l);
1714
+ s.beginPath(), s.ellipse(c, l, f, m, 0, 0, Math.PI * 2), e.curBrush && e.curBrush.fill != null && (s.fillStyle = e.curBrush.fill, s.fill(e.fillRule), e.drew = !0), e.curPen && e.curPen.stroke != null && (s.strokeStyle = e.curPen.stroke, s.lineWidth = V(e, e.curPen.width), s.stroke(), e.drew = !0);
1715
+ break;
1716
+ }
1717
+ case T.SETPOLYFILLMODE:
1718
+ e.fillRule = p.u32() === 1 ? "evenodd" : "nonzero";
1719
+ break;
1720
+ case T.SETTEXTCOLOR:
1721
+ e.textColor = a(p.u32());
1722
+ break;
1723
+ case T.SETTEXTALIGN:
1724
+ e.textAlign = p.u32();
1725
+ break;
1726
+ case T.SETBKMODE:
1727
+ e.bkMode = p.u32();
1728
+ break;
1729
+ case T.EXTTEXTOUTW:
1730
+ e.inPath && Q(e, "EMR_EXTTEXTOUTW (glyph path)"), tt(e, p, f, c);
1731
+ break;
1732
+ case T.BITBLT:
1733
+ rt(e, p, f, c);
1734
+ break;
1735
+ case T.STRETCHDIBITS:
1736
+ it(e, p, f, c);
1737
+ break;
1738
+ case T.ARC:
1739
+ $(e, p, "arc", "EMR_ARC");
1740
+ break;
1741
+ case T.ARCTO:
1742
+ $(e, p, "arcTo", "EMR_ARCTO");
1743
+ break;
1744
+ case T.CHORD:
1745
+ $(e, p, "chord", "EMR_CHORD");
1746
+ break;
1747
+ case T.PIE:
1748
+ $(e, p, "pie", "EMR_PIE");
1749
+ break;
1750
+ case T.ANGLEARC:
1751
+ Ve(e, p);
1752
+ break;
1753
+ case T.ROUNDRECT:
1754
+ He(e, p);
1755
+ break;
1756
+ default: {
1757
+ let t = E[l];
1758
+ t && Q(e, t);
1759
+ break;
1760
+ }
1761
+ }
1762
+ } catch (t) {
1763
+ if (o(t)) throw t;
1764
+ e.unsupported.add(`EMF record ${l} (malformed)`);
1765
+ }
1766
+ c = d;
1767
+ }
1768
+ }
1769
+ async function ct(t, n, r) {
1770
+ let a = {
1771
+ bitmap: null,
1772
+ unsupported: []
1773
+ };
1774
+ if (!e(t) || n <= 0 || r <= 0) return a;
1775
+ let o = i(n, r);
1776
+ if (!o) return a;
1777
+ let s = o.getContext("2d");
1778
+ if (!s) return a;
1779
+ s.lineJoin = "round", s.lineCap = "round";
1780
+ let c = [];
1781
+ return {
1782
+ bitmap: at(t, s, n, r, { onUnsupported: (e) => {
1783
+ c = e;
1784
+ } }) ? await createImageBitmap(o) : null,
1785
+ unsupported: c
1786
+ };
1787
+ }
1788
+ export { at as playEmf, ct as renderEmfToBitmap };