@jean-is/render 0.8.0-rede3e4e8e9a5 → 0.10.0-rbdd0a4d699e2

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 (1799) hide show
  1. package/brand.js +1 -1
  2. package/caps/charts/charts.js +16 -7
  3. package/caps/charts/option.js +17 -0
  4. package/caps/files/office.js +16 -9
  5. package/caps/files/pdf.js +9 -5
  6. package/caps/games/file.js +2 -0
  7. package/caps/games/page.js +21 -7
  8. package/caps/games/shell.js +8 -6
  9. package/caps/interactive/apps.js +2 -5
  10. package/caps/interactive/diagram.js +1 -1
  11. package/caps/interactive/interactive.css +4 -1
  12. package/caps/interactive/interactive.js +50 -11
  13. package/caps/interactive/live.js +4 -4
  14. package/caps/interactive/map.js +11 -5
  15. package/caps/interactive/starts.js +15 -0
  16. package/caps/interactive/test.js +76 -0
  17. package/caps/interactive/view-parts.js +5 -2
  18. package/caps/layouts/layouts.js +35 -34
  19. package/caps/layouts/shapes.js +49 -33
  20. package/caps/layouts/types.d.ts +8 -0
  21. package/caps/made/paper.js +26 -9
  22. package/caps/receipt/der.js +1 -1
  23. package/caps/scores/scores.js +24 -4
  24. package/caps/scores/sound.js +9 -8
  25. package/caps/share/view.js +2 -1
  26. package/caps/skills/directory.js +10 -3
  27. package/caps/slides/brand.js +249 -0
  28. package/caps/slides/edit.js +13 -5
  29. package/caps/slides/kit-page.css +2 -1
  30. package/caps/slides/kit-page.js +43 -13
  31. package/caps/slides/kit-sample.js +1 -1
  32. package/caps/slides/save.js +3 -3
  33. package/caps/slides/slides.css +3 -0
  34. package/caps/slides/slides.js +6 -5
  35. package/caps/tables/formula.js +1 -1
  36. package/core/anthropic.js +10 -10
  37. package/core/deferred.js +5 -4
  38. package/core/events.js +9 -8
  39. package/core/files.js +27 -3
  40. package/core/fs.js +22 -76
  41. package/core/hooks.js +3 -3
  42. package/core/i18n.js +22 -19
  43. package/core/llm.js +16 -13
  44. package/core/loop.js +17 -5
  45. package/core/rules.js +1 -1
  46. package/core/settings.js +7 -59
  47. package/core/skills.js +1 -1
  48. package/core/vertex.js +1 -1
  49. package/core/zip.js +1 -1
  50. package/locales/am.json +38 -21
  51. package/locales/approvals/am.json +0 -2
  52. package/locales/approvals/ar.json +0 -2
  53. package/locales/approvals/bg.json +0 -2
  54. package/locales/approvals/bn.json +0 -2
  55. package/locales/approvals/br.json +7 -9
  56. package/locales/approvals/co.json +18 -20
  57. package/locales/approvals/cs.json +0 -2
  58. package/locales/approvals/da.json +0 -2
  59. package/locales/approvals/de.json +5 -7
  60. package/locales/approvals/el.json +0 -2
  61. package/locales/approvals/en.json +3 -5
  62. package/locales/approvals/es.json +7 -9
  63. package/locales/approvals/fa.json +0 -2
  64. package/locales/approvals/fi.json +0 -2
  65. package/locales/approvals/fr-CA.json +7 -9
  66. package/locales/approvals/fr.json +7 -9
  67. package/locales/approvals/ha.json +0 -2
  68. package/locales/approvals/he.json +0 -2
  69. package/locales/approvals/hi.json +0 -2
  70. package/locales/approvals/hr.json +0 -2
  71. package/locales/approvals/hu.json +0 -2
  72. package/locales/approvals/id.json +0 -2
  73. package/locales/approvals/it.json +10 -12
  74. package/locales/approvals/ja.json +8 -10
  75. package/locales/approvals/ko.json +21 -23
  76. package/locales/approvals/mr.json +0 -2
  77. package/locales/approvals/ms.json +0 -2
  78. package/locales/approvals/nl.json +0 -2
  79. package/locales/approvals/pl.json +0 -2
  80. package/locales/approvals/pt.json +6 -8
  81. package/locales/approvals/ro.json +0 -2
  82. package/locales/approvals/ru.json +0 -2
  83. package/locales/approvals/sk.json +0 -2
  84. package/locales/approvals/sv.json +0 -2
  85. package/locales/approvals/sw.json +0 -2
  86. package/locales/approvals/ta.json +0 -2
  87. package/locales/approvals/te.json +0 -2
  88. package/locales/approvals/th.json +0 -2
  89. package/locales/approvals/tl.json +0 -2
  90. package/locales/approvals/tr.json +0 -2
  91. package/locales/approvals/uk.json +0 -2
  92. package/locales/approvals/ur.json +0 -2
  93. package/locales/approvals/vi.json +0 -2
  94. package/locales/approvals/yo.json +0 -2
  95. package/locales/approvals/zh-Hans.json +5 -7
  96. package/locales/approvals/zh-Hant.json +4 -6
  97. package/locales/ar.json +38 -21
  98. package/locales/backup/de.json +1 -1
  99. package/locales/backup/ko.json +1 -1
  100. package/locales/backup/pt.json +1 -1
  101. package/locales/backup/zh-Hans.json +1 -1
  102. package/locales/bg.json +38 -21
  103. package/locales/bn.json +37 -20
  104. package/locales/br.json +64 -47
  105. package/locales/brain-local/ja.json +1 -1
  106. package/locales/brain-local/pt.json +3 -3
  107. package/locales/brain-local/zh-Hans.json +1 -1
  108. package/locales/brain-local/zh-Hant.json +3 -3
  109. package/locales/brains/am.json +2 -1
  110. package/locales/brains/ar.json +2 -1
  111. package/locales/brains/bg.json +2 -1
  112. package/locales/brains/bn.json +2 -1
  113. package/locales/brains/br.json +11 -10
  114. package/locales/brains/co.json +13 -12
  115. package/locales/brains/cs.json +2 -1
  116. package/locales/brains/da.json +2 -1
  117. package/locales/brains/de.json +8 -7
  118. package/locales/brains/el.json +2 -1
  119. package/locales/brains/en.json +7 -6
  120. package/locales/brains/es.json +16 -15
  121. package/locales/brains/fa.json +2 -1
  122. package/locales/brains/fi.json +2 -1
  123. package/locales/brains/fr-CA.json +10 -9
  124. package/locales/brains/fr.json +9 -8
  125. package/locales/brains/ha.json +2 -1
  126. package/locales/brains/he.json +2 -1
  127. package/locales/brains/hi.json +2 -1
  128. package/locales/brains/hr.json +2 -1
  129. package/locales/brains/hu.json +2 -1
  130. package/locales/brains/id.json +2 -1
  131. package/locales/brains/it.json +9 -8
  132. package/locales/brains/ja.json +10 -9
  133. package/locales/brains/ko.json +14 -13
  134. package/locales/brains/mr.json +2 -1
  135. package/locales/brains/ms.json +2 -1
  136. package/locales/brains/nl.json +2 -1
  137. package/locales/brains/pl.json +2 -1
  138. package/locales/brains/pt.json +13 -12
  139. package/locales/brains/ro.json +2 -1
  140. package/locales/brains/ru.json +2 -1
  141. package/locales/brains/sk.json +2 -1
  142. package/locales/brains/sv.json +2 -1
  143. package/locales/brains/sw.json +2 -1
  144. package/locales/brains/ta.json +2 -1
  145. package/locales/brains/te.json +2 -1
  146. package/locales/brains/th.json +2 -1
  147. package/locales/brains/tl.json +2 -1
  148. package/locales/brains/tr.json +2 -1
  149. package/locales/brains/uk.json +2 -1
  150. package/locales/brains/ur.json +2 -1
  151. package/locales/brains/vi.json +2 -1
  152. package/locales/brains/yo.json +2 -1
  153. package/locales/brains/zh-Hans.json +8 -7
  154. package/locales/brains/zh-Hant.json +15 -14
  155. package/locales/browser/co.json +2 -2
  156. package/locales/browser/es.json +1 -1
  157. package/locales/browser/it.json +1 -1
  158. package/locales/browser/ja.json +2 -2
  159. package/locales/browser/ko.json +6 -6
  160. package/locales/browser/pt.json +2 -2
  161. package/locales/camera/br.json +1 -1
  162. package/locales/camera/co.json +1 -1
  163. package/locales/camera/de.json +1 -1
  164. package/locales/camera/it.json +1 -1
  165. package/locales/camera/ja.json +2 -2
  166. package/locales/camera/ko.json +2 -2
  167. package/locales/camera/zh-Hant.json +1 -1
  168. package/locales/case/br.json +1 -1
  169. package/locales/case/co.json +10 -10
  170. package/locales/case/de.json +1 -1
  171. package/locales/case/es.json +6 -6
  172. package/locales/case/fr-CA.json +9 -9
  173. package/locales/case/fr.json +9 -9
  174. package/locales/case/it.json +8 -8
  175. package/locales/case/ja.json +6 -6
  176. package/locales/case/ko.json +1 -1
  177. package/locales/case/pt.json +8 -8
  178. package/locales/case/zh-Hant.json +1 -1
  179. package/locales/certificates/co.json +7 -7
  180. package/locales/certificates/es.json +2 -2
  181. package/locales/certificates/fr-CA.json +7 -7
  182. package/locales/certificates/fr.json +7 -7
  183. package/locales/certificates/it.json +3 -3
  184. package/locales/certificates/ja.json +2 -2
  185. package/locales/certificates/ko.json +1 -1
  186. package/locales/certificates/pt.json +2 -2
  187. package/locales/certificates/zh-Hans.json +5 -5
  188. package/locales/certificates/zh-Hant.json +6 -6
  189. package/locales/charts/br.json +1 -1
  190. package/locales/charts/co.json +1 -1
  191. package/locales/charts/de.json +1 -1
  192. package/locales/charts/ko.json +1 -1
  193. package/locales/co.json +53 -36
  194. package/locales/compact/es.json +1 -1
  195. package/locales/compact/fr-CA.json +1 -1
  196. package/locales/compact/fr.json +1 -1
  197. package/locales/compact/it.json +1 -1
  198. package/locales/compact/pt.json +2 -2
  199. package/locales/computer/br.json +8 -8
  200. package/locales/computer/co.json +14 -14
  201. package/locales/computer/de.json +4 -4
  202. package/locales/computer/en.json +6 -6
  203. package/locales/computer/es.json +10 -10
  204. package/locales/computer/fr-CA.json +17 -17
  205. package/locales/computer/fr.json +17 -17
  206. package/locales/computer/it.json +9 -9
  207. package/locales/computer/ja.json +8 -8
  208. package/locales/computer/ko.json +14 -14
  209. package/locales/computer/pt.json +10 -10
  210. package/locales/computer/zh-Hans.json +8 -8
  211. package/locales/computer/zh-Hant.json +9 -9
  212. package/locales/connections/am.json +4 -2
  213. package/locales/connections/ar.json +4 -2
  214. package/locales/connections/bg.json +4 -2
  215. package/locales/connections/bn.json +4 -2
  216. package/locales/connections/br.json +5 -3
  217. package/locales/connections/co.json +17 -15
  218. package/locales/connections/cs.json +4 -2
  219. package/locales/connections/da.json +4 -2
  220. package/locales/connections/de.json +4 -2
  221. package/locales/connections/el.json +4 -2
  222. package/locales/connections/en.json +5 -3
  223. package/locales/connections/es.json +7 -5
  224. package/locales/connections/fa.json +4 -2
  225. package/locales/connections/fi.json +4 -2
  226. package/locales/connections/fr-CA.json +5 -3
  227. package/locales/connections/fr.json +5 -3
  228. package/locales/connections/ha.json +4 -2
  229. package/locales/connections/he.json +4 -2
  230. package/locales/connections/hi.json +4 -2
  231. package/locales/connections/hr.json +4 -2
  232. package/locales/connections/hu.json +4 -2
  233. package/locales/connections/id.json +4 -2
  234. package/locales/connections/it.json +13 -11
  235. package/locales/connections/ja.json +28 -26
  236. package/locales/connections/ko.json +7 -5
  237. package/locales/connections/mr.json +4 -2
  238. package/locales/connections/ms.json +4 -2
  239. package/locales/connections/nl.json +4 -2
  240. package/locales/connections/pl.json +4 -2
  241. package/locales/connections/pt.json +10 -8
  242. package/locales/connections/ro.json +4 -2
  243. package/locales/connections/ru.json +4 -2
  244. package/locales/connections/sk.json +4 -2
  245. package/locales/connections/sv.json +4 -2
  246. package/locales/connections/sw.json +4 -2
  247. package/locales/connections/ta.json +4 -2
  248. package/locales/connections/te.json +4 -2
  249. package/locales/connections/th.json +4 -2
  250. package/locales/connections/tl.json +4 -2
  251. package/locales/connections/tr.json +4 -2
  252. package/locales/connections/uk.json +4 -2
  253. package/locales/connections/ur.json +4 -2
  254. package/locales/connections/vi.json +4 -2
  255. package/locales/connections/yo.json +4 -2
  256. package/locales/connections/zh-Hans.json +10 -8
  257. package/locales/connections/zh-Hant.json +23 -21
  258. package/locales/creations/am.json +8 -0
  259. package/locales/creations/ar.json +8 -0
  260. package/locales/creations/bg.json +8 -0
  261. package/locales/creations/bn.json +8 -0
  262. package/locales/creations/br.json +22 -14
  263. package/locales/creations/co.json +19 -11
  264. package/locales/creations/cs.json +8 -0
  265. package/locales/creations/da.json +8 -0
  266. package/locales/creations/de.json +9 -1
  267. package/locales/creations/el.json +8 -0
  268. package/locales/creations/en.json +9 -1
  269. package/locales/creations/es.json +17 -9
  270. package/locales/creations/fa.json +8 -0
  271. package/locales/creations/fi.json +8 -0
  272. package/locales/creations/fr-CA.json +9 -1
  273. package/locales/creations/fr.json +17 -9
  274. package/locales/creations/ha.json +8 -0
  275. package/locales/creations/he.json +8 -0
  276. package/locales/creations/hi.json +8 -0
  277. package/locales/creations/hr.json +8 -0
  278. package/locales/creations/hu.json +8 -0
  279. package/locales/creations/id.json +8 -0
  280. package/locales/creations/it.json +16 -8
  281. package/locales/creations/ja.json +9 -1
  282. package/locales/creations/ko.json +9 -1
  283. package/locales/creations/mr.json +8 -0
  284. package/locales/creations/ms.json +8 -0
  285. package/locales/creations/nl.json +8 -0
  286. package/locales/creations/pl.json +8 -0
  287. package/locales/creations/pt.json +16 -8
  288. package/locales/creations/ro.json +8 -0
  289. package/locales/creations/ru.json +8 -0
  290. package/locales/creations/sk.json +8 -0
  291. package/locales/creations/sv.json +8 -0
  292. package/locales/creations/sw.json +8 -0
  293. package/locales/creations/ta.json +8 -0
  294. package/locales/creations/te.json +8 -0
  295. package/locales/creations/th.json +8 -0
  296. package/locales/creations/tl.json +8 -0
  297. package/locales/creations/tr.json +8 -0
  298. package/locales/creations/uk.json +8 -0
  299. package/locales/creations/ur.json +8 -0
  300. package/locales/creations/vi.json +8 -0
  301. package/locales/creations/yo.json +8 -0
  302. package/locales/creations/zh-Hans.json +9 -1
  303. package/locales/creations/zh-Hant.json +9 -1
  304. package/locales/cs.json +38 -21
  305. package/locales/da.json +37 -20
  306. package/locales/data/am.json +12 -1
  307. package/locales/data/ar.json +12 -1
  308. package/locales/data/bg.json +12 -1
  309. package/locales/data/bn.json +12 -1
  310. package/locales/data/br.json +14 -3
  311. package/locales/data/co.json +15 -4
  312. package/locales/data/cs.json +12 -1
  313. package/locales/data/da.json +12 -1
  314. package/locales/data/de.json +12 -1
  315. package/locales/data/el.json +12 -1
  316. package/locales/data/en.json +12 -1
  317. package/locales/data/es.json +16 -5
  318. package/locales/data/fa.json +12 -1
  319. package/locales/data/fi.json +12 -1
  320. package/locales/data/fr-CA.json +12 -1
  321. package/locales/data/fr.json +12 -1
  322. package/locales/data/ha.json +12 -1
  323. package/locales/data/he.json +12 -1
  324. package/locales/data/hi.json +12 -1
  325. package/locales/data/hr.json +12 -1
  326. package/locales/data/hu.json +12 -1
  327. package/locales/data/id.json +12 -1
  328. package/locales/data/it.json +13 -2
  329. package/locales/data/ja.json +20 -9
  330. package/locales/data/ko.json +14 -3
  331. package/locales/data/mr.json +12 -1
  332. package/locales/data/ms.json +12 -1
  333. package/locales/data/nl.json +12 -1
  334. package/locales/data/pl.json +12 -1
  335. package/locales/data/pt.json +17 -6
  336. package/locales/data/ro.json +12 -1
  337. package/locales/data/ru.json +12 -1
  338. package/locales/data/sk.json +12 -1
  339. package/locales/data/sv.json +12 -1
  340. package/locales/data/sw.json +12 -1
  341. package/locales/data/ta.json +12 -1
  342. package/locales/data/te.json +12 -1
  343. package/locales/data/th.json +12 -1
  344. package/locales/data/tl.json +12 -1
  345. package/locales/data/tr.json +12 -1
  346. package/locales/data/uk.json +12 -1
  347. package/locales/data/ur.json +12 -1
  348. package/locales/data/vi.json +12 -1
  349. package/locales/data/yo.json +12 -1
  350. package/locales/data/zh-Hans.json +14 -3
  351. package/locales/data/zh-Hant.json +16 -5
  352. package/locales/de.json +52 -35
  353. package/locales/designs/br.json +9 -9
  354. package/locales/designs/co.json +8 -8
  355. package/locales/designs/de.json +1 -1
  356. package/locales/designs/en.json +3 -3
  357. package/locales/designs/fr-CA.json +4 -4
  358. package/locales/designs/fr.json +5 -5
  359. package/locales/designs/it.json +6 -6
  360. package/locales/designs/ja.json +10 -10
  361. package/locales/designs/ko.json +6 -6
  362. package/locales/designs/pt.json +3 -3
  363. package/locales/designs/zh-Hans.json +1 -1
  364. package/locales/designs/zh-Hant.json +1 -1
  365. package/locales/devices/am.json +106 -0
  366. package/locales/devices/ar.json +118 -0
  367. package/locales/devices/bg.json +106 -0
  368. package/locales/devices/bn.json +106 -0
  369. package/locales/devices/br.json +115 -0
  370. package/locales/devices/co.json +109 -0
  371. package/locales/devices/cs.json +112 -0
  372. package/locales/devices/da.json +106 -0
  373. package/locales/devices/de.json +106 -0
  374. package/locales/devices/el.json +106 -0
  375. package/locales/devices/en.json +106 -0
  376. package/locales/devices/es.json +109 -0
  377. package/locales/devices/fa.json +106 -0
  378. package/locales/devices/fi.json +106 -0
  379. package/locales/devices/fr-CA.json +109 -0
  380. package/locales/devices/fr.json +109 -0
  381. package/locales/devices/ha.json +106 -0
  382. package/locales/devices/he.json +109 -0
  383. package/locales/devices/hi.json +106 -0
  384. package/locales/devices/hr.json +109 -0
  385. package/locales/devices/hu.json +106 -0
  386. package/locales/devices/id.json +103 -0
  387. package/locales/devices/it.json +109 -0
  388. package/locales/devices/ja.json +103 -0
  389. package/locales/devices/ko.json +103 -0
  390. package/locales/devices/mr.json +106 -0
  391. package/locales/devices/ms.json +103 -0
  392. package/locales/devices/nl.json +106 -0
  393. package/locales/devices/pl.json +112 -0
  394. package/locales/devices/pt.json +109 -0
  395. package/locales/devices/ro.json +109 -0
  396. package/locales/devices/ru.json +112 -0
  397. package/locales/devices/sk.json +112 -0
  398. package/locales/devices/sv.json +106 -0
  399. package/locales/devices/sw.json +106 -0
  400. package/locales/devices/ta.json +106 -0
  401. package/locales/devices/te.json +106 -0
  402. package/locales/devices/th.json +103 -0
  403. package/locales/devices/tl.json +106 -0
  404. package/locales/devices/tr.json +106 -0
  405. package/locales/devices/uk.json +112 -0
  406. package/locales/devices/ur.json +106 -0
  407. package/locales/devices/vi.json +103 -0
  408. package/locales/devices/yo.json +103 -0
  409. package/locales/devices/zh-Hans.json +103 -0
  410. package/locales/devices/zh-Hant.json +103 -0
  411. package/locales/dialogs/am.json +26 -11
  412. package/locales/dialogs/ar.json +26 -11
  413. package/locales/dialogs/bg.json +26 -11
  414. package/locales/dialogs/bn.json +26 -11
  415. package/locales/dialogs/br.json +45 -30
  416. package/locales/dialogs/co.json +47 -32
  417. package/locales/dialogs/cs.json +26 -11
  418. package/locales/dialogs/da.json +26 -11
  419. package/locales/dialogs/de.json +39 -24
  420. package/locales/dialogs/el.json +26 -11
  421. package/locales/dialogs/en.json +34 -19
  422. package/locales/dialogs/es.json +54 -39
  423. package/locales/dialogs/fa.json +26 -11
  424. package/locales/dialogs/fi.json +26 -11
  425. package/locales/dialogs/fr-CA.json +43 -28
  426. package/locales/dialogs/fr.json +43 -28
  427. package/locales/dialogs/ha.json +26 -11
  428. package/locales/dialogs/he.json +26 -11
  429. package/locales/dialogs/hi.json +26 -11
  430. package/locales/dialogs/hr.json +26 -11
  431. package/locales/dialogs/hu.json +26 -11
  432. package/locales/dialogs/id.json +26 -11
  433. package/locales/dialogs/it.json +48 -33
  434. package/locales/dialogs/ja.json +78 -63
  435. package/locales/dialogs/ko.json +49 -34
  436. package/locales/dialogs/mr.json +26 -11
  437. package/locales/dialogs/ms.json +26 -11
  438. package/locales/dialogs/nl.json +26 -11
  439. package/locales/dialogs/pl.json +26 -11
  440. package/locales/dialogs/pt.json +52 -37
  441. package/locales/dialogs/ro.json +26 -11
  442. package/locales/dialogs/ru.json +26 -11
  443. package/locales/dialogs/sk.json +26 -11
  444. package/locales/dialogs/sv.json +26 -11
  445. package/locales/dialogs/sw.json +26 -11
  446. package/locales/dialogs/ta.json +26 -11
  447. package/locales/dialogs/te.json +26 -11
  448. package/locales/dialogs/th.json +26 -11
  449. package/locales/dialogs/tl.json +26 -11
  450. package/locales/dialogs/tr.json +26 -11
  451. package/locales/dialogs/uk.json +26 -11
  452. package/locales/dialogs/ur.json +26 -11
  453. package/locales/dialogs/vi.json +26 -11
  454. package/locales/dialogs/yo.json +26 -11
  455. package/locales/dialogs/zh-Hans.json +47 -32
  456. package/locales/dialogs/zh-Hant.json +57 -42
  457. package/locales/documents/am.json +12 -2
  458. package/locales/documents/ar.json +12 -2
  459. package/locales/documents/bg.json +12 -2
  460. package/locales/documents/bn.json +12 -2
  461. package/locales/documents/br.json +12 -2
  462. package/locales/documents/co.json +15 -5
  463. package/locales/documents/cs.json +12 -2
  464. package/locales/documents/da.json +12 -2
  465. package/locales/documents/de.json +14 -4
  466. package/locales/documents/el.json +12 -2
  467. package/locales/documents/en.json +13 -3
  468. package/locales/documents/es.json +13 -3
  469. package/locales/documents/fa.json +12 -2
  470. package/locales/documents/fi.json +12 -2
  471. package/locales/documents/fr-CA.json +13 -3
  472. package/locales/documents/fr.json +13 -3
  473. package/locales/documents/ha.json +12 -2
  474. package/locales/documents/he.json +12 -2
  475. package/locales/documents/hi.json +12 -2
  476. package/locales/documents/hr.json +12 -2
  477. package/locales/documents/hu.json +12 -2
  478. package/locales/documents/id.json +12 -2
  479. package/locales/documents/it.json +13 -3
  480. package/locales/documents/ja.json +26 -16
  481. package/locales/documents/ko.json +14 -4
  482. package/locales/documents/mr.json +12 -2
  483. package/locales/documents/ms.json +12 -2
  484. package/locales/documents/nl.json +12 -2
  485. package/locales/documents/pl.json +12 -2
  486. package/locales/documents/pt.json +16 -6
  487. package/locales/documents/ro.json +12 -2
  488. package/locales/documents/ru.json +12 -2
  489. package/locales/documents/sk.json +12 -2
  490. package/locales/documents/sv.json +12 -2
  491. package/locales/documents/sw.json +12 -2
  492. package/locales/documents/ta.json +12 -2
  493. package/locales/documents/te.json +12 -2
  494. package/locales/documents/th.json +12 -2
  495. package/locales/documents/tl.json +12 -2
  496. package/locales/documents/tr.json +12 -2
  497. package/locales/documents/uk.json +12 -2
  498. package/locales/documents/ur.json +12 -2
  499. package/locales/documents/vi.json +12 -2
  500. package/locales/documents/yo.json +12 -2
  501. package/locales/documents/zh-Hans.json +14 -4
  502. package/locales/documents/zh-Hant.json +14 -4
  503. package/locales/el.json +38 -21
  504. package/locales/en.json +44 -27
  505. package/locales/enterprise/br.json +13 -13
  506. package/locales/enterprise/co.json +14 -14
  507. package/locales/enterprise/de.json +12 -12
  508. package/locales/enterprise/en.json +4 -4
  509. package/locales/enterprise/es.json +8 -8
  510. package/locales/enterprise/fr-CA.json +7 -7
  511. package/locales/enterprise/fr.json +11 -11
  512. package/locales/enterprise/it.json +9 -9
  513. package/locales/enterprise/ja.json +17 -17
  514. package/locales/enterprise/ko.json +12 -12
  515. package/locales/enterprise/pt.json +11 -11
  516. package/locales/enterprise/zh-Hans.json +22 -22
  517. package/locales/enterprise/zh-Hant.json +25 -25
  518. package/locales/es.json +52 -35
  519. package/locales/extensions/am.json +2 -1
  520. package/locales/extensions/ar.json +2 -1
  521. package/locales/extensions/bg.json +2 -1
  522. package/locales/extensions/bn.json +2 -1
  523. package/locales/extensions/br.json +12 -11
  524. package/locales/extensions/co.json +8 -7
  525. package/locales/extensions/cs.json +2 -1
  526. package/locales/extensions/da.json +2 -1
  527. package/locales/extensions/de.json +3 -2
  528. package/locales/extensions/el.json +2 -1
  529. package/locales/extensions/en.json +3 -2
  530. package/locales/extensions/es.json +4 -3
  531. package/locales/extensions/fa.json +2 -1
  532. package/locales/extensions/fi.json +2 -1
  533. package/locales/extensions/fr-CA.json +7 -6
  534. package/locales/extensions/fr.json +7 -6
  535. package/locales/extensions/ha.json +2 -1
  536. package/locales/extensions/he.json +2 -1
  537. package/locales/extensions/hi.json +2 -1
  538. package/locales/extensions/hr.json +2 -1
  539. package/locales/extensions/hu.json +2 -1
  540. package/locales/extensions/id.json +2 -1
  541. package/locales/extensions/it.json +5 -4
  542. package/locales/extensions/ja.json +7 -6
  543. package/locales/extensions/ko.json +24 -23
  544. package/locales/extensions/mr.json +2 -1
  545. package/locales/extensions/ms.json +2 -1
  546. package/locales/extensions/nl.json +2 -1
  547. package/locales/extensions/pl.json +2 -1
  548. package/locales/extensions/pt.json +5 -4
  549. package/locales/extensions/ro.json +2 -1
  550. package/locales/extensions/ru.json +2 -1
  551. package/locales/extensions/sk.json +2 -1
  552. package/locales/extensions/sv.json +2 -1
  553. package/locales/extensions/sw.json +2 -1
  554. package/locales/extensions/ta.json +2 -1
  555. package/locales/extensions/te.json +2 -1
  556. package/locales/extensions/th.json +2 -1
  557. package/locales/extensions/tl.json +2 -1
  558. package/locales/extensions/tr.json +2 -1
  559. package/locales/extensions/uk.json +2 -1
  560. package/locales/extensions/ur.json +2 -1
  561. package/locales/extensions/vi.json +2 -1
  562. package/locales/extensions/yo.json +2 -1
  563. package/locales/extensions/zh-Hans.json +5 -4
  564. package/locales/extensions/zh-Hant.json +9 -8
  565. package/locales/fa.json +37 -20
  566. package/locales/feedback/am.json +7 -0
  567. package/locales/feedback/ar.json +7 -0
  568. package/locales/feedback/bg.json +7 -0
  569. package/locales/feedback/bn.json +7 -0
  570. package/locales/feedback/br.json +7 -0
  571. package/locales/feedback/co.json +7 -0
  572. package/locales/feedback/cs.json +7 -0
  573. package/locales/feedback/da.json +7 -0
  574. package/locales/feedback/de.json +7 -0
  575. package/locales/feedback/el.json +7 -0
  576. package/locales/feedback/en.json +7 -0
  577. package/locales/feedback/es.json +7 -0
  578. package/locales/feedback/fa.json +7 -0
  579. package/locales/feedback/fi.json +7 -0
  580. package/locales/feedback/fr-CA.json +7 -0
  581. package/locales/feedback/fr.json +7 -0
  582. package/locales/feedback/ha.json +7 -0
  583. package/locales/feedback/he.json +7 -0
  584. package/locales/feedback/hi.json +7 -0
  585. package/locales/feedback/hr.json +7 -0
  586. package/locales/feedback/hu.json +7 -0
  587. package/locales/feedback/id.json +7 -0
  588. package/locales/feedback/it.json +7 -0
  589. package/locales/feedback/ja.json +7 -0
  590. package/locales/feedback/ko.json +7 -0
  591. package/locales/feedback/mr.json +7 -0
  592. package/locales/feedback/ms.json +7 -0
  593. package/locales/feedback/nl.json +7 -0
  594. package/locales/feedback/pl.json +7 -0
  595. package/locales/feedback/pt.json +7 -0
  596. package/locales/feedback/ro.json +7 -0
  597. package/locales/feedback/ru.json +7 -0
  598. package/locales/feedback/sk.json +7 -0
  599. package/locales/feedback/sv.json +7 -0
  600. package/locales/feedback/sw.json +7 -0
  601. package/locales/feedback/ta.json +7 -0
  602. package/locales/feedback/te.json +7 -0
  603. package/locales/feedback/th.json +7 -0
  604. package/locales/feedback/tl.json +7 -0
  605. package/locales/feedback/tr.json +7 -0
  606. package/locales/feedback/uk.json +7 -0
  607. package/locales/feedback/ur.json +7 -0
  608. package/locales/feedback/vi.json +7 -0
  609. package/locales/feedback/yo.json +7 -0
  610. package/locales/feedback/zh-Hans.json +7 -0
  611. package/locales/feedback/zh-Hant.json +7 -0
  612. package/locales/fi.json +38 -21
  613. package/locales/files/am.json +11 -0
  614. package/locales/files/ar.json +11 -0
  615. package/locales/files/bg.json +11 -0
  616. package/locales/files/bn.json +11 -0
  617. package/locales/files/br.json +11 -0
  618. package/locales/files/co.json +11 -0
  619. package/locales/files/cs.json +11 -0
  620. package/locales/files/da.json +11 -0
  621. package/locales/files/de.json +11 -0
  622. package/locales/files/el.json +11 -0
  623. package/locales/files/en.json +11 -0
  624. package/locales/files/es.json +11 -0
  625. package/locales/files/fa.json +11 -0
  626. package/locales/files/fi.json +11 -0
  627. package/locales/files/fr-CA.json +11 -0
  628. package/locales/files/fr.json +11 -0
  629. package/locales/files/ha.json +11 -0
  630. package/locales/files/he.json +11 -0
  631. package/locales/files/hi.json +11 -0
  632. package/locales/files/hr.json +11 -0
  633. package/locales/files/hu.json +11 -0
  634. package/locales/files/id.json +11 -0
  635. package/locales/files/it.json +11 -0
  636. package/locales/files/ja.json +11 -0
  637. package/locales/files/ko.json +11 -0
  638. package/locales/files/mr.json +11 -0
  639. package/locales/files/ms.json +11 -0
  640. package/locales/files/nl.json +11 -0
  641. package/locales/files/pl.json +11 -0
  642. package/locales/files/pt.json +11 -0
  643. package/locales/files/ro.json +11 -0
  644. package/locales/files/ru.json +11 -0
  645. package/locales/files/sk.json +11 -0
  646. package/locales/files/sv.json +11 -0
  647. package/locales/files/sw.json +11 -0
  648. package/locales/files/ta.json +11 -0
  649. package/locales/files/te.json +11 -0
  650. package/locales/files/th.json +11 -0
  651. package/locales/files/tl.json +11 -0
  652. package/locales/files/tr.json +11 -0
  653. package/locales/files/uk.json +11 -0
  654. package/locales/files/ur.json +11 -0
  655. package/locales/files/vi.json +11 -0
  656. package/locales/files/yo.json +11 -0
  657. package/locales/files/zh-Hans.json +11 -0
  658. package/locales/files/zh-Hant.json +11 -0
  659. package/locales/first/br.json +5 -5
  660. package/locales/first/co.json +1 -1
  661. package/locales/first/es.json +4 -4
  662. package/locales/first/fr-CA.json +1 -1
  663. package/locales/first/fr.json +1 -1
  664. package/locales/first/it.json +1 -1
  665. package/locales/first/ja.json +7 -7
  666. package/locales/first/ko.json +3 -3
  667. package/locales/first/pt.json +3 -3
  668. package/locales/first/zh-Hans.json +2 -2
  669. package/locales/first/zh-Hant.json +3 -3
  670. package/locales/flows/am.json +3 -0
  671. package/locales/flows/ar.json +3 -0
  672. package/locales/flows/bg.json +3 -0
  673. package/locales/flows/bn.json +3 -0
  674. package/locales/flows/br.json +10 -7
  675. package/locales/flows/co.json +7 -4
  676. package/locales/flows/cs.json +3 -0
  677. package/locales/flows/da.json +3 -0
  678. package/locales/flows/de.json +5 -2
  679. package/locales/flows/el.json +3 -0
  680. package/locales/flows/en.json +3 -0
  681. package/locales/flows/es.json +5 -2
  682. package/locales/flows/fa.json +3 -0
  683. package/locales/flows/fi.json +3 -0
  684. package/locales/flows/fr-CA.json +6 -3
  685. package/locales/flows/fr.json +6 -3
  686. package/locales/flows/ha.json +3 -0
  687. package/locales/flows/he.json +3 -0
  688. package/locales/flows/hi.json +3 -0
  689. package/locales/flows/hr.json +3 -0
  690. package/locales/flows/hu.json +3 -0
  691. package/locales/flows/id.json +3 -0
  692. package/locales/flows/it.json +5 -2
  693. package/locales/flows/ja.json +7 -4
  694. package/locales/flows/ko.json +10 -7
  695. package/locales/flows/mr.json +3 -0
  696. package/locales/flows/ms.json +3 -0
  697. package/locales/flows/nl.json +3 -0
  698. package/locales/flows/pl.json +3 -0
  699. package/locales/flows/pt.json +9 -6
  700. package/locales/flows/ro.json +3 -0
  701. package/locales/flows/ru.json +3 -0
  702. package/locales/flows/sk.json +3 -0
  703. package/locales/flows/sv.json +3 -0
  704. package/locales/flows/sw.json +3 -0
  705. package/locales/flows/ta.json +3 -0
  706. package/locales/flows/te.json +3 -0
  707. package/locales/flows/th.json +3 -0
  708. package/locales/flows/tl.json +3 -0
  709. package/locales/flows/tr.json +3 -0
  710. package/locales/flows/uk.json +3 -0
  711. package/locales/flows/ur.json +3 -0
  712. package/locales/flows/vi.json +3 -0
  713. package/locales/flows/yo.json +3 -0
  714. package/locales/flows/zh-Hans.json +8 -5
  715. package/locales/flows/zh-Hant.json +11 -8
  716. package/locales/folders/br.json +4 -4
  717. package/locales/folders/de.json +1 -1
  718. package/locales/folders/es.json +2 -2
  719. package/locales/folders/ja.json +2 -2
  720. package/locales/folders/ko.json +3 -3
  721. package/locales/folders/pt.json +2 -2
  722. package/locales/folders/zh-Hans.json +2 -2
  723. package/locales/folders/zh-Hant.json +7 -7
  724. package/locales/fr-CA.json +71 -54
  725. package/locales/fr.json +68 -51
  726. package/locales/games/br.json +2 -2
  727. package/locales/ha.json +37 -20
  728. package/locales/he.json +37 -20
  729. package/locales/hi.json +37 -20
  730. package/locales/hr.json +38 -21
  731. package/locales/hu.json +37 -20
  732. package/locales/id.json +38 -21
  733. package/locales/interactive/br.json +8 -8
  734. package/locales/interactive/co.json +5 -5
  735. package/locales/interactive/es.json +1 -1
  736. package/locales/interactive/it.json +1 -1
  737. package/locales/interactive/ja.json +3 -3
  738. package/locales/interactive/ko.json +3 -3
  739. package/locales/interactive/pt.json +2 -2
  740. package/locales/interactive/zh-Hans.json +1 -1
  741. package/locales/interactive/zh-Hant.json +6 -6
  742. package/locales/it.json +75 -58
  743. package/locales/ja.json +67 -50
  744. package/locales/ko.json +61 -44
  745. package/locales/layouts/ja.json +1 -1
  746. package/locales/layouts/zh-Hans.json +1 -1
  747. package/locales/layouts/zh-Hant.json +1 -1
  748. package/locales/lock/br.json +3 -3
  749. package/locales/lock/co.json +4 -4
  750. package/locales/lock/de.json +4 -4
  751. package/locales/lock/en.json +1 -1
  752. package/locales/lock/es.json +1 -1
  753. package/locales/lock/fr-CA.json +3 -3
  754. package/locales/lock/fr.json +3 -3
  755. package/locales/lock/it.json +5 -5
  756. package/locales/lock/ja.json +6 -6
  757. package/locales/lock/ko.json +2 -2
  758. package/locales/lock/pt.json +1 -1
  759. package/locales/lock/zh-Hans.json +3 -3
  760. package/locales/lock/zh-Hant.json +3 -3
  761. package/locales/look/am.json +5 -1
  762. package/locales/look/ar.json +5 -1
  763. package/locales/look/bg.json +5 -1
  764. package/locales/look/bn.json +5 -1
  765. package/locales/look/br.json +14 -10
  766. package/locales/look/co.json +5 -1
  767. package/locales/look/cs.json +5 -1
  768. package/locales/look/da.json +5 -1
  769. package/locales/look/de.json +5 -1
  770. package/locales/look/el.json +5 -1
  771. package/locales/look/en.json +5 -1
  772. package/locales/look/es.json +7 -3
  773. package/locales/look/fa.json +5 -1
  774. package/locales/look/fi.json +5 -1
  775. package/locales/look/fr-CA.json +5 -1
  776. package/locales/look/fr.json +5 -1
  777. package/locales/look/ha.json +5 -1
  778. package/locales/look/he.json +5 -1
  779. package/locales/look/hi.json +5 -1
  780. package/locales/look/hr.json +5 -1
  781. package/locales/look/hu.json +5 -1
  782. package/locales/look/id.json +5 -1
  783. package/locales/look/it.json +5 -1
  784. package/locales/look/ja.json +11 -7
  785. package/locales/look/ko.json +6 -2
  786. package/locales/look/mr.json +5 -1
  787. package/locales/look/ms.json +5 -1
  788. package/locales/look/nl.json +5 -1
  789. package/locales/look/pl.json +5 -1
  790. package/locales/look/pt.json +7 -3
  791. package/locales/look/ro.json +5 -1
  792. package/locales/look/ru.json +5 -1
  793. package/locales/look/sk.json +5 -1
  794. package/locales/look/sv.json +5 -1
  795. package/locales/look/sw.json +5 -1
  796. package/locales/look/ta.json +5 -1
  797. package/locales/look/te.json +5 -1
  798. package/locales/look/th.json +5 -1
  799. package/locales/look/tl.json +5 -1
  800. package/locales/look/tr.json +5 -1
  801. package/locales/look/uk.json +5 -1
  802. package/locales/look/ur.json +5 -1
  803. package/locales/look/vi.json +5 -1
  804. package/locales/look/yo.json +5 -1
  805. package/locales/look/zh-Hans.json +10 -6
  806. package/locales/look/zh-Hant.json +15 -11
  807. package/locales/machine/br.json +5 -5
  808. package/locales/machine/co.json +4 -4
  809. package/locales/machine/de.json +2 -2
  810. package/locales/machine/en.json +2 -2
  811. package/locales/machine/es.json +8 -8
  812. package/locales/machine/fr-CA.json +4 -4
  813. package/locales/machine/fr.json +4 -4
  814. package/locales/machine/it.json +9 -9
  815. package/locales/machine/ja.json +4 -4
  816. package/locales/machine/ko.json +10 -10
  817. package/locales/machine/pt.json +4 -4
  818. package/locales/machine/zh-Hans.json +7 -7
  819. package/locales/machine/zh-Hant.json +10 -10
  820. package/locales/made/am.json +2 -4
  821. package/locales/made/ar.json +2 -4
  822. package/locales/made/bg.json +2 -4
  823. package/locales/made/bn.json +2 -4
  824. package/locales/made/br.json +4 -6
  825. package/locales/made/co.json +2 -4
  826. package/locales/made/cs.json +2 -4
  827. package/locales/made/da.json +2 -4
  828. package/locales/made/de.json +2 -4
  829. package/locales/made/el.json +2 -4
  830. package/locales/made/en.json +2 -4
  831. package/locales/made/es.json +2 -4
  832. package/locales/made/fa.json +2 -4
  833. package/locales/made/fi.json +2 -4
  834. package/locales/made/fr-CA.json +3 -5
  835. package/locales/made/fr.json +3 -5
  836. package/locales/made/ha.json +2 -4
  837. package/locales/made/he.json +2 -4
  838. package/locales/made/hi.json +2 -4
  839. package/locales/made/hr.json +2 -4
  840. package/locales/made/hu.json +2 -4
  841. package/locales/made/id.json +2 -4
  842. package/locales/made/it.json +2 -4
  843. package/locales/made/ja.json +2 -4
  844. package/locales/made/ko.json +3 -5
  845. package/locales/made/mr.json +2 -4
  846. package/locales/made/ms.json +2 -4
  847. package/locales/made/nl.json +2 -4
  848. package/locales/made/pl.json +2 -4
  849. package/locales/made/pt.json +4 -6
  850. package/locales/made/ro.json +2 -4
  851. package/locales/made/ru.json +2 -4
  852. package/locales/made/sk.json +2 -4
  853. package/locales/made/sv.json +2 -4
  854. package/locales/made/sw.json +2 -4
  855. package/locales/made/ta.json +2 -4
  856. package/locales/made/te.json +2 -4
  857. package/locales/made/th.json +2 -4
  858. package/locales/made/tl.json +2 -4
  859. package/locales/made/tr.json +2 -4
  860. package/locales/made/uk.json +2 -4
  861. package/locales/made/ur.json +2 -4
  862. package/locales/made/vi.json +2 -4
  863. package/locales/made/yo.json +2 -4
  864. package/locales/made/zh-Hans.json +4 -6
  865. package/locales/made/zh-Hant.json +3 -5
  866. package/locales/mr.json +37 -20
  867. package/locales/ms.json +38 -21
  868. package/locales/{reader → natural-voice}/es.json +1 -1
  869. package/locales/natural-voice/ja.json +9 -0
  870. package/locales/{reader → natural-voice}/zh-Hans.json +1 -1
  871. package/locales/{reader → natural-voice}/zh-Hant.json +2 -2
  872. package/locales/nl.json +38 -21
  873. package/locales/notifications/br.json +2 -2
  874. package/locales/notifications/es.json +4 -4
  875. package/locales/notifications/it.json +2 -2
  876. package/locales/notifications/pt.json +2 -2
  877. package/locales/notifications/zh-Hans.json +1 -1
  878. package/locales/notifications/zh-Hant.json +2 -2
  879. package/locales/out/am.json +2 -1
  880. package/locales/out/ar.json +2 -1
  881. package/locales/out/bg.json +2 -1
  882. package/locales/out/bn.json +2 -1
  883. package/locales/out/br.json +2 -1
  884. package/locales/out/co.json +3 -2
  885. package/locales/out/cs.json +2 -1
  886. package/locales/out/da.json +2 -1
  887. package/locales/out/de.json +3 -2
  888. package/locales/out/el.json +2 -1
  889. package/locales/out/en.json +2 -1
  890. package/locales/out/es.json +3 -2
  891. package/locales/out/fa.json +2 -1
  892. package/locales/out/fi.json +2 -1
  893. package/locales/out/fr-CA.json +3 -2
  894. package/locales/out/fr.json +3 -2
  895. package/locales/out/ha.json +2 -1
  896. package/locales/out/he.json +2 -1
  897. package/locales/out/hi.json +2 -1
  898. package/locales/out/hr.json +2 -1
  899. package/locales/out/hu.json +2 -1
  900. package/locales/out/id.json +2 -1
  901. package/locales/out/it.json +2 -1
  902. package/locales/out/ja.json +3 -2
  903. package/locales/out/ko.json +2 -1
  904. package/locales/out/mr.json +2 -1
  905. package/locales/out/ms.json +2 -1
  906. package/locales/out/nl.json +2 -1
  907. package/locales/out/pl.json +2 -1
  908. package/locales/out/pt.json +3 -2
  909. package/locales/out/ro.json +2 -1
  910. package/locales/out/ru.json +2 -1
  911. package/locales/out/sk.json +2 -1
  912. package/locales/out/sv.json +2 -1
  913. package/locales/out/sw.json +2 -1
  914. package/locales/out/ta.json +2 -1
  915. package/locales/out/te.json +2 -1
  916. package/locales/out/th.json +2 -1
  917. package/locales/out/tl.json +2 -1
  918. package/locales/out/tr.json +2 -1
  919. package/locales/out/uk.json +2 -1
  920. package/locales/out/ur.json +2 -1
  921. package/locales/out/vi.json +2 -1
  922. package/locales/out/yo.json +2 -1
  923. package/locales/out/zh-Hans.json +4 -3
  924. package/locales/out/zh-Hant.json +2 -1
  925. package/locales/people/am.json +94 -0
  926. package/locales/people/ar.json +102 -0
  927. package/locales/people/bg.json +94 -0
  928. package/locales/people/bn.json +94 -0
  929. package/locales/people/br.json +100 -0
  930. package/locales/people/co.json +96 -0
  931. package/locales/people/cs.json +98 -0
  932. package/locales/people/da.json +94 -0
  933. package/locales/people/de.json +94 -0
  934. package/locales/people/el.json +94 -0
  935. package/locales/people/en.json +94 -0
  936. package/locales/people/es.json +96 -0
  937. package/locales/people/fa.json +94 -0
  938. package/locales/people/fi.json +94 -0
  939. package/locales/people/fr-CA.json +96 -0
  940. package/locales/people/fr.json +96 -0
  941. package/locales/people/ha.json +94 -0
  942. package/locales/people/he.json +96 -0
  943. package/locales/people/hi.json +94 -0
  944. package/locales/people/hr.json +96 -0
  945. package/locales/people/hu.json +94 -0
  946. package/locales/people/id.json +92 -0
  947. package/locales/people/it.json +96 -0
  948. package/locales/people/ja.json +92 -0
  949. package/locales/people/ko.json +92 -0
  950. package/locales/people/mr.json +94 -0
  951. package/locales/people/ms.json +92 -0
  952. package/locales/people/nl.json +94 -0
  953. package/locales/people/pl.json +98 -0
  954. package/locales/people/pt.json +96 -0
  955. package/locales/people/ro.json +96 -0
  956. package/locales/people/ru.json +98 -0
  957. package/locales/people/sk.json +98 -0
  958. package/locales/people/sv.json +94 -0
  959. package/locales/people/sw.json +94 -0
  960. package/locales/people/ta.json +94 -0
  961. package/locales/people/te.json +94 -0
  962. package/locales/people/th.json +92 -0
  963. package/locales/people/tl.json +94 -0
  964. package/locales/people/tr.json +94 -0
  965. package/locales/people/uk.json +98 -0
  966. package/locales/people/ur.json +94 -0
  967. package/locales/people/vi.json +92 -0
  968. package/locales/people/yo.json +92 -0
  969. package/locales/people/zh-Hans.json +92 -0
  970. package/locales/people/zh-Hant.json +92 -0
  971. package/locales/pictures/br.json +5 -5
  972. package/locales/pictures/co.json +5 -5
  973. package/locales/pictures/de.json +3 -3
  974. package/locales/pictures/en.json +2 -2
  975. package/locales/pictures/es.json +4 -4
  976. package/locales/pictures/fr-CA.json +6 -6
  977. package/locales/pictures/fr.json +4 -4
  978. package/locales/pictures/it.json +7 -7
  979. package/locales/pictures/ja.json +8 -8
  980. package/locales/pictures/ko.json +8 -8
  981. package/locales/pictures/pt.json +5 -5
  982. package/locales/pictures/zh-Hans.json +5 -5
  983. package/locales/pictures/zh-Hant.json +6 -6
  984. package/locales/pl.json +37 -20
  985. package/locales/plan/fr-CA.json +1 -1
  986. package/locales/plan/fr.json +1 -1
  987. package/locales/plan/it.json +2 -2
  988. package/locales/plan/ja.json +3 -3
  989. package/locales/plan/zh-Hans.json +2 -2
  990. package/locales/plan/zh-Hant.json +1 -1
  991. package/locales/policy/am.json +1 -0
  992. package/locales/policy/ar.json +1 -0
  993. package/locales/policy/bg.json +1 -0
  994. package/locales/policy/bn.json +1 -0
  995. package/locales/policy/br.json +1 -0
  996. package/locales/policy/co.json +3 -2
  997. package/locales/policy/cs.json +1 -0
  998. package/locales/policy/da.json +1 -0
  999. package/locales/policy/de.json +1 -0
  1000. package/locales/policy/el.json +1 -0
  1001. package/locales/policy/en.json +1 -0
  1002. package/locales/policy/es.json +4 -3
  1003. package/locales/policy/fa.json +1 -0
  1004. package/locales/policy/fi.json +1 -0
  1005. package/locales/policy/fr-CA.json +2 -1
  1006. package/locales/policy/fr.json +2 -1
  1007. package/locales/policy/ha.json +1 -0
  1008. package/locales/policy/he.json +1 -0
  1009. package/locales/policy/hi.json +1 -0
  1010. package/locales/policy/hr.json +1 -0
  1011. package/locales/policy/hu.json +1 -0
  1012. package/locales/policy/id.json +1 -0
  1013. package/locales/policy/it.json +4 -3
  1014. package/locales/policy/ja.json +3 -2
  1015. package/locales/policy/ko.json +1 -0
  1016. package/locales/policy/mr.json +1 -0
  1017. package/locales/policy/ms.json +1 -0
  1018. package/locales/policy/nl.json +1 -0
  1019. package/locales/policy/pl.json +1 -0
  1020. package/locales/policy/pt.json +4 -3
  1021. package/locales/policy/ro.json +1 -0
  1022. package/locales/policy/ru.json +1 -0
  1023. package/locales/policy/sk.json +1 -0
  1024. package/locales/policy/sv.json +1 -0
  1025. package/locales/policy/sw.json +1 -0
  1026. package/locales/policy/ta.json +1 -0
  1027. package/locales/policy/te.json +1 -0
  1028. package/locales/policy/th.json +1 -0
  1029. package/locales/policy/tl.json +1 -0
  1030. package/locales/policy/tr.json +1 -0
  1031. package/locales/policy/uk.json +1 -0
  1032. package/locales/policy/ur.json +1 -0
  1033. package/locales/policy/vi.json +1 -0
  1034. package/locales/policy/yo.json +1 -0
  1035. package/locales/policy/zh-Hans.json +9 -8
  1036. package/locales/policy/zh-Hant.json +17 -16
  1037. package/locales/profiles/am.json +4 -0
  1038. package/locales/profiles/ar.json +8 -0
  1039. package/locales/profiles/bg.json +4 -0
  1040. package/locales/profiles/bn.json +4 -0
  1041. package/locales/profiles/br.json +17 -10
  1042. package/locales/profiles/co.json +14 -9
  1043. package/locales/profiles/cs.json +6 -0
  1044. package/locales/profiles/da.json +4 -0
  1045. package/locales/profiles/de.json +5 -1
  1046. package/locales/profiles/el.json +4 -0
  1047. package/locales/profiles/en.json +6 -2
  1048. package/locales/profiles/es.json +7 -2
  1049. package/locales/profiles/fa.json +4 -0
  1050. package/locales/profiles/fi.json +4 -0
  1051. package/locales/profiles/fr-CA.json +13 -8
  1052. package/locales/profiles/fr.json +13 -8
  1053. package/locales/profiles/ha.json +4 -0
  1054. package/locales/profiles/he.json +5 -0
  1055. package/locales/profiles/hi.json +4 -0
  1056. package/locales/profiles/hr.json +5 -0
  1057. package/locales/profiles/hu.json +4 -0
  1058. package/locales/profiles/id.json +3 -0
  1059. package/locales/profiles/it.json +11 -6
  1060. package/locales/profiles/ja.json +12 -9
  1061. package/locales/profiles/ko.json +25 -22
  1062. package/locales/profiles/mr.json +4 -0
  1063. package/locales/profiles/ms.json +3 -0
  1064. package/locales/profiles/nl.json +4 -0
  1065. package/locales/profiles/pl.json +6 -0
  1066. package/locales/profiles/pt.json +10 -5
  1067. package/locales/profiles/ro.json +5 -0
  1068. package/locales/profiles/ru.json +6 -0
  1069. package/locales/profiles/sk.json +6 -0
  1070. package/locales/profiles/sv.json +4 -0
  1071. package/locales/profiles/sw.json +4 -0
  1072. package/locales/profiles/ta.json +4 -0
  1073. package/locales/profiles/te.json +4 -0
  1074. package/locales/profiles/th.json +3 -0
  1075. package/locales/profiles/tl.json +4 -0
  1076. package/locales/profiles/tr.json +4 -0
  1077. package/locales/profiles/uk.json +6 -0
  1078. package/locales/profiles/ur.json +4 -0
  1079. package/locales/profiles/vi.json +3 -0
  1080. package/locales/profiles/yo.json +3 -0
  1081. package/locales/profiles/zh-Hans.json +17 -14
  1082. package/locales/profiles/zh-Hant.json +12 -9
  1083. package/locales/projects/am.json +4 -0
  1084. package/locales/projects/ar.json +4 -0
  1085. package/locales/projects/bg.json +4 -0
  1086. package/locales/projects/bn.json +4 -0
  1087. package/locales/projects/br.json +4 -0
  1088. package/locales/projects/co.json +4 -0
  1089. package/locales/projects/cs.json +4 -0
  1090. package/locales/projects/da.json +4 -0
  1091. package/locales/projects/de.json +4 -0
  1092. package/locales/projects/el.json +4 -0
  1093. package/locales/projects/en.json +4 -0
  1094. package/locales/projects/es.json +4 -0
  1095. package/locales/projects/fa.json +4 -0
  1096. package/locales/projects/fi.json +4 -0
  1097. package/locales/projects/fr-CA.json +4 -0
  1098. package/locales/projects/fr.json +4 -0
  1099. package/locales/projects/ha.json +4 -0
  1100. package/locales/projects/he.json +4 -0
  1101. package/locales/projects/hi.json +4 -0
  1102. package/locales/projects/hr.json +4 -0
  1103. package/locales/projects/hu.json +4 -0
  1104. package/locales/projects/id.json +4 -0
  1105. package/locales/projects/it.json +4 -0
  1106. package/locales/projects/ja.json +4 -0
  1107. package/locales/projects/ko.json +4 -0
  1108. package/locales/projects/mr.json +4 -0
  1109. package/locales/projects/ms.json +4 -0
  1110. package/locales/projects/nl.json +4 -0
  1111. package/locales/projects/pl.json +4 -0
  1112. package/locales/projects/pt.json +4 -0
  1113. package/locales/projects/ro.json +4 -0
  1114. package/locales/projects/ru.json +4 -0
  1115. package/locales/projects/sk.json +4 -0
  1116. package/locales/projects/sv.json +4 -0
  1117. package/locales/projects/sw.json +4 -0
  1118. package/locales/projects/ta.json +4 -0
  1119. package/locales/projects/te.json +4 -0
  1120. package/locales/projects/th.json +4 -0
  1121. package/locales/projects/tl.json +4 -0
  1122. package/locales/projects/tr.json +4 -0
  1123. package/locales/projects/uk.json +4 -0
  1124. package/locales/projects/ur.json +4 -0
  1125. package/locales/projects/vi.json +4 -0
  1126. package/locales/projects/yo.json +4 -0
  1127. package/locales/projects/zh-Hans.json +4 -0
  1128. package/locales/projects/zh-Hant.json +4 -0
  1129. package/locales/prototypes/am.json +24 -0
  1130. package/locales/prototypes/ar.json +24 -0
  1131. package/locales/prototypes/bg.json +24 -0
  1132. package/locales/prototypes/bn.json +24 -0
  1133. package/locales/prototypes/br.json +24 -0
  1134. package/locales/prototypes/co.json +24 -0
  1135. package/locales/prototypes/cs.json +24 -0
  1136. package/locales/prototypes/da.json +24 -0
  1137. package/locales/prototypes/de.json +24 -0
  1138. package/locales/prototypes/el.json +24 -0
  1139. package/locales/prototypes/en.json +24 -0
  1140. package/locales/prototypes/es.json +24 -0
  1141. package/locales/prototypes/fa.json +24 -0
  1142. package/locales/prototypes/fi.json +24 -0
  1143. package/locales/prototypes/fr-CA.json +24 -0
  1144. package/locales/prototypes/fr.json +24 -0
  1145. package/locales/prototypes/ha.json +24 -0
  1146. package/locales/prototypes/he.json +24 -0
  1147. package/locales/prototypes/hi.json +24 -0
  1148. package/locales/prototypes/hr.json +24 -0
  1149. package/locales/prototypes/hu.json +24 -0
  1150. package/locales/prototypes/id.json +24 -0
  1151. package/locales/prototypes/it.json +24 -0
  1152. package/locales/prototypes/ja.json +24 -0
  1153. package/locales/prototypes/ko.json +24 -0
  1154. package/locales/prototypes/mr.json +24 -0
  1155. package/locales/prototypes/ms.json +24 -0
  1156. package/locales/prototypes/nl.json +24 -0
  1157. package/locales/prototypes/pl.json +24 -0
  1158. package/locales/prototypes/pt.json +24 -0
  1159. package/locales/prototypes/ro.json +24 -0
  1160. package/locales/prototypes/ru.json +24 -0
  1161. package/locales/prototypes/sk.json +24 -0
  1162. package/locales/prototypes/sv.json +24 -0
  1163. package/locales/prototypes/sw.json +24 -0
  1164. package/locales/prototypes/ta.json +24 -0
  1165. package/locales/prototypes/te.json +24 -0
  1166. package/locales/prototypes/th.json +24 -0
  1167. package/locales/prototypes/tl.json +24 -0
  1168. package/locales/prototypes/tr.json +24 -0
  1169. package/locales/prototypes/uk.json +24 -0
  1170. package/locales/prototypes/ur.json +24 -0
  1171. package/locales/prototypes/vi.json +24 -0
  1172. package/locales/prototypes/yo.json +24 -0
  1173. package/locales/prototypes/zh-Hans.json +24 -0
  1174. package/locales/prototypes/zh-Hant.json +24 -0
  1175. package/locales/pt.json +64 -47
  1176. package/locales/receipt/am.json +14 -2
  1177. package/locales/receipt/ar.json +14 -2
  1178. package/locales/receipt/bg.json +14 -2
  1179. package/locales/receipt/bn.json +14 -2
  1180. package/locales/receipt/br.json +16 -4
  1181. package/locales/receipt/co.json +16 -4
  1182. package/locales/receipt/cs.json +14 -2
  1183. package/locales/receipt/da.json +14 -2
  1184. package/locales/receipt/de.json +16 -4
  1185. package/locales/receipt/el.json +14 -2
  1186. package/locales/receipt/en.json +16 -4
  1187. package/locales/receipt/es.json +19 -7
  1188. package/locales/receipt/fa.json +14 -2
  1189. package/locales/receipt/fi.json +14 -2
  1190. package/locales/receipt/fr-CA.json +16 -4
  1191. package/locales/receipt/fr.json +16 -4
  1192. package/locales/receipt/ha.json +14 -2
  1193. package/locales/receipt/he.json +14 -2
  1194. package/locales/receipt/hi.json +14 -2
  1195. package/locales/receipt/hr.json +14 -2
  1196. package/locales/receipt/hu.json +14 -2
  1197. package/locales/receipt/id.json +14 -2
  1198. package/locales/receipt/it.json +21 -9
  1199. package/locales/receipt/ja.json +18 -6
  1200. package/locales/receipt/ko.json +15 -3
  1201. package/locales/receipt/mr.json +14 -2
  1202. package/locales/receipt/ms.json +14 -2
  1203. package/locales/receipt/nl.json +14 -2
  1204. package/locales/receipt/pl.json +14 -2
  1205. package/locales/receipt/pt.json +18 -6
  1206. package/locales/receipt/ro.json +14 -2
  1207. package/locales/receipt/ru.json +14 -2
  1208. package/locales/receipt/sk.json +14 -2
  1209. package/locales/receipt/sv.json +14 -2
  1210. package/locales/receipt/sw.json +14 -2
  1211. package/locales/receipt/ta.json +14 -2
  1212. package/locales/receipt/te.json +14 -2
  1213. package/locales/receipt/th.json +14 -2
  1214. package/locales/receipt/tl.json +14 -2
  1215. package/locales/receipt/tr.json +14 -2
  1216. package/locales/receipt/uk.json +14 -2
  1217. package/locales/receipt/ur.json +14 -2
  1218. package/locales/receipt/vi.json +14 -2
  1219. package/locales/receipt/yo.json +14 -2
  1220. package/locales/receipt/zh-Hans.json +17 -5
  1221. package/locales/receipt/zh-Hant.json +25 -13
  1222. package/locales/ro.json +38 -21
  1223. package/locales/routines/am.json +2 -0
  1224. package/locales/routines/ar.json +2 -0
  1225. package/locales/routines/bg.json +2 -0
  1226. package/locales/routines/bn.json +2 -0
  1227. package/locales/routines/br.json +12 -10
  1228. package/locales/routines/co.json +8 -6
  1229. package/locales/routines/cs.json +2 -0
  1230. package/locales/routines/da.json +2 -0
  1231. package/locales/routines/de.json +2 -0
  1232. package/locales/routines/el.json +2 -0
  1233. package/locales/routines/en.json +2 -0
  1234. package/locales/routines/es.json +6 -4
  1235. package/locales/routines/fa.json +2 -0
  1236. package/locales/routines/fi.json +2 -0
  1237. package/locales/routines/fr-CA.json +4 -2
  1238. package/locales/routines/fr.json +4 -2
  1239. package/locales/routines/ha.json +2 -0
  1240. package/locales/routines/he.json +2 -0
  1241. package/locales/routines/hi.json +2 -0
  1242. package/locales/routines/hr.json +2 -0
  1243. package/locales/routines/hu.json +2 -0
  1244. package/locales/routines/id.json +2 -0
  1245. package/locales/routines/it.json +3 -1
  1246. package/locales/routines/ja.json +14 -12
  1247. package/locales/routines/ko.json +3 -1
  1248. package/locales/routines/mr.json +2 -0
  1249. package/locales/routines/ms.json +2 -0
  1250. package/locales/routines/nl.json +2 -0
  1251. package/locales/routines/pl.json +2 -0
  1252. package/locales/routines/pt.json +7 -5
  1253. package/locales/routines/ro.json +2 -0
  1254. package/locales/routines/ru.json +2 -0
  1255. package/locales/routines/sk.json +2 -0
  1256. package/locales/routines/sv.json +2 -0
  1257. package/locales/routines/sw.json +2 -0
  1258. package/locales/routines/ta.json +2 -0
  1259. package/locales/routines/te.json +2 -0
  1260. package/locales/routines/th.json +2 -0
  1261. package/locales/routines/tl.json +2 -0
  1262. package/locales/routines/tr.json +2 -0
  1263. package/locales/routines/uk.json +2 -0
  1264. package/locales/routines/ur.json +2 -0
  1265. package/locales/routines/vi.json +2 -0
  1266. package/locales/routines/yo.json +2 -0
  1267. package/locales/routines/zh-Hans.json +4 -2
  1268. package/locales/routines/zh-Hant.json +5 -3
  1269. package/locales/ru.json +37 -20
  1270. package/locales/scores/de.json +1 -1
  1271. package/locales/scores/it.json +1 -1
  1272. package/locales/scores/ja.json +2 -2
  1273. package/locales/scores/ko.json +1 -1
  1274. package/locales/screen/am.json +11 -0
  1275. package/locales/screen/ar.json +11 -0
  1276. package/locales/screen/bg.json +11 -0
  1277. package/locales/screen/bn.json +11 -0
  1278. package/locales/screen/br.json +11 -0
  1279. package/locales/screen/co.json +11 -0
  1280. package/locales/screen/cs.json +11 -0
  1281. package/locales/screen/da.json +11 -0
  1282. package/locales/screen/de.json +11 -0
  1283. package/locales/screen/el.json +11 -0
  1284. package/locales/screen/en.json +11 -0
  1285. package/locales/screen/es.json +11 -0
  1286. package/locales/screen/fa.json +11 -0
  1287. package/locales/screen/fi.json +11 -0
  1288. package/locales/screen/fr-CA.json +11 -0
  1289. package/locales/screen/fr.json +11 -0
  1290. package/locales/screen/ha.json +11 -0
  1291. package/locales/screen/he.json +11 -0
  1292. package/locales/screen/hi.json +11 -0
  1293. package/locales/screen/hr.json +11 -0
  1294. package/locales/screen/hu.json +11 -0
  1295. package/locales/screen/id.json +11 -0
  1296. package/locales/screen/it.json +11 -0
  1297. package/locales/screen/ja.json +11 -0
  1298. package/locales/screen/ko.json +11 -0
  1299. package/locales/screen/mr.json +11 -0
  1300. package/locales/screen/ms.json +11 -0
  1301. package/locales/screen/nl.json +11 -0
  1302. package/locales/screen/pl.json +11 -0
  1303. package/locales/screen/pt.json +11 -0
  1304. package/locales/screen/ro.json +11 -0
  1305. package/locales/screen/ru.json +11 -0
  1306. package/locales/screen/sk.json +11 -0
  1307. package/locales/screen/sv.json +11 -0
  1308. package/locales/screen/sw.json +11 -0
  1309. package/locales/screen/ta.json +11 -0
  1310. package/locales/screen/te.json +11 -0
  1311. package/locales/screen/th.json +11 -0
  1312. package/locales/screen/tl.json +11 -0
  1313. package/locales/screen/tr.json +11 -0
  1314. package/locales/screen/uk.json +11 -0
  1315. package/locales/screen/ur.json +11 -0
  1316. package/locales/screen/vi.json +11 -0
  1317. package/locales/screen/yo.json +11 -0
  1318. package/locales/screen/zh-Hans.json +11 -0
  1319. package/locales/screen/zh-Hant.json +11 -0
  1320. package/locales/share/am.json +17 -9
  1321. package/locales/share/ar.json +17 -9
  1322. package/locales/share/bg.json +17 -9
  1323. package/locales/share/bn.json +17 -9
  1324. package/locales/share/br.json +22 -14
  1325. package/locales/share/co.json +20 -12
  1326. package/locales/share/cs.json +17 -9
  1327. package/locales/share/da.json +17 -9
  1328. package/locales/share/de.json +19 -11
  1329. package/locales/share/el.json +17 -9
  1330. package/locales/share/en.json +17 -9
  1331. package/locales/share/es.json +18 -10
  1332. package/locales/share/fa.json +17 -9
  1333. package/locales/share/fi.json +17 -9
  1334. package/locales/share/fr-CA.json +21 -13
  1335. package/locales/share/fr.json +19 -11
  1336. package/locales/share/ha.json +17 -9
  1337. package/locales/share/he.json +17 -9
  1338. package/locales/share/hi.json +17 -9
  1339. package/locales/share/hr.json +17 -9
  1340. package/locales/share/hu.json +17 -9
  1341. package/locales/share/id.json +17 -9
  1342. package/locales/share/it.json +21 -13
  1343. package/locales/share/ja.json +31 -23
  1344. package/locales/share/ko.json +21 -13
  1345. package/locales/share/mr.json +17 -9
  1346. package/locales/share/ms.json +17 -9
  1347. package/locales/share/nl.json +17 -9
  1348. package/locales/share/pl.json +17 -9
  1349. package/locales/share/pt.json +19 -11
  1350. package/locales/share/ro.json +17 -9
  1351. package/locales/share/ru.json +17 -9
  1352. package/locales/share/sk.json +17 -9
  1353. package/locales/share/sv.json +17 -9
  1354. package/locales/share/sw.json +17 -9
  1355. package/locales/share/ta.json +17 -9
  1356. package/locales/share/te.json +17 -9
  1357. package/locales/share/th.json +17 -9
  1358. package/locales/share/tl.json +17 -9
  1359. package/locales/share/tr.json +17 -9
  1360. package/locales/share/uk.json +17 -9
  1361. package/locales/share/ur.json +17 -9
  1362. package/locales/share/vi.json +17 -9
  1363. package/locales/share/yo.json +17 -9
  1364. package/locales/share/zh-Hans.json +24 -16
  1365. package/locales/share/zh-Hant.json +30 -22
  1366. package/locales/signin/br.json +1 -1
  1367. package/locales/signin/co.json +1 -1
  1368. package/locales/signin/es.json +1 -1
  1369. package/locales/signin/ja.json +1 -1
  1370. package/locales/signin/ko.json +2 -2
  1371. package/locales/signin/pt.json +1 -1
  1372. package/locales/signin/zh-Hans.json +1 -1
  1373. package/locales/signin/zh-Hant.json +1 -1
  1374. package/locales/sites/am.json +80 -0
  1375. package/locales/sites/ar.json +84 -0
  1376. package/locales/sites/bg.json +80 -0
  1377. package/locales/sites/bn.json +80 -0
  1378. package/locales/sites/br.json +83 -0
  1379. package/locales/sites/co.json +81 -0
  1380. package/locales/sites/cs.json +82 -0
  1381. package/locales/sites/da.json +80 -0
  1382. package/locales/sites/de.json +80 -0
  1383. package/locales/sites/el.json +80 -0
  1384. package/locales/sites/en.json +80 -0
  1385. package/locales/sites/es.json +81 -0
  1386. package/locales/sites/fa.json +80 -0
  1387. package/locales/sites/fi.json +80 -0
  1388. package/locales/sites/fr-CA.json +81 -0
  1389. package/locales/sites/fr.json +81 -0
  1390. package/locales/sites/ha.json +80 -0
  1391. package/locales/sites/he.json +81 -0
  1392. package/locales/sites/hi.json +80 -0
  1393. package/locales/sites/hr.json +81 -0
  1394. package/locales/sites/hu.json +80 -0
  1395. package/locales/sites/id.json +79 -0
  1396. package/locales/sites/it.json +81 -0
  1397. package/locales/sites/ja.json +79 -0
  1398. package/locales/sites/ko.json +79 -0
  1399. package/locales/sites/mr.json +80 -0
  1400. package/locales/sites/ms.json +79 -0
  1401. package/locales/sites/nl.json +80 -0
  1402. package/locales/sites/pl.json +82 -0
  1403. package/locales/sites/pt.json +81 -0
  1404. package/locales/sites/ro.json +81 -0
  1405. package/locales/sites/ru.json +82 -0
  1406. package/locales/sites/sk.json +82 -0
  1407. package/locales/sites/sv.json +80 -0
  1408. package/locales/sites/sw.json +80 -0
  1409. package/locales/sites/ta.json +80 -0
  1410. package/locales/sites/te.json +80 -0
  1411. package/locales/sites/th.json +79 -0
  1412. package/locales/sites/tl.json +80 -0
  1413. package/locales/sites/tr.json +80 -0
  1414. package/locales/sites/uk.json +82 -0
  1415. package/locales/sites/ur.json +80 -0
  1416. package/locales/sites/vi.json +79 -0
  1417. package/locales/sites/yo.json +79 -0
  1418. package/locales/sites/zh-Hans.json +79 -0
  1419. package/locales/sites/zh-Hant.json +79 -0
  1420. package/locales/sk.json +38 -21
  1421. package/locales/skills/am.json +1 -0
  1422. package/locales/skills/ar.json +1 -0
  1423. package/locales/skills/bg.json +1 -0
  1424. package/locales/skills/bn.json +1 -0
  1425. package/locales/skills/br.json +8 -7
  1426. package/locales/skills/co.json +8 -7
  1427. package/locales/skills/cs.json +1 -0
  1428. package/locales/skills/da.json +1 -0
  1429. package/locales/skills/de.json +6 -5
  1430. package/locales/skills/el.json +1 -0
  1431. package/locales/skills/en.json +1 -0
  1432. package/locales/skills/es.json +5 -4
  1433. package/locales/skills/fa.json +1 -0
  1434. package/locales/skills/fi.json +1 -0
  1435. package/locales/skills/fr-CA.json +4 -3
  1436. package/locales/skills/fr.json +4 -3
  1437. package/locales/skills/ha.json +1 -0
  1438. package/locales/skills/he.json +1 -0
  1439. package/locales/skills/hi.json +1 -0
  1440. package/locales/skills/hr.json +1 -0
  1441. package/locales/skills/hu.json +1 -0
  1442. package/locales/skills/id.json +1 -0
  1443. package/locales/skills/it.json +2 -1
  1444. package/locales/skills/ja.json +17 -16
  1445. package/locales/skills/ko.json +2 -1
  1446. package/locales/skills/mr.json +1 -0
  1447. package/locales/skills/ms.json +1 -0
  1448. package/locales/skills/nl.json +1 -0
  1449. package/locales/skills/pl.json +1 -0
  1450. package/locales/skills/pt.json +6 -5
  1451. package/locales/skills/ro.json +1 -0
  1452. package/locales/skills/ru.json +1 -0
  1453. package/locales/skills/sk.json +1 -0
  1454. package/locales/skills/sv.json +1 -0
  1455. package/locales/skills/sw.json +1 -0
  1456. package/locales/skills/ta.json +1 -0
  1457. package/locales/skills/te.json +1 -0
  1458. package/locales/skills/th.json +1 -0
  1459. package/locales/skills/tl.json +1 -0
  1460. package/locales/skills/tr.json +1 -0
  1461. package/locales/skills/uk.json +1 -0
  1462. package/locales/skills/ur.json +1 -0
  1463. package/locales/skills/vi.json +1 -0
  1464. package/locales/skills/yo.json +1 -0
  1465. package/locales/skills/zh-Hans.json +3 -2
  1466. package/locales/skills/zh-Hant.json +5 -4
  1467. package/locales/slides/am.json +7 -0
  1468. package/locales/slides/ar.json +7 -0
  1469. package/locales/slides/bg.json +7 -0
  1470. package/locales/slides/bn.json +7 -0
  1471. package/locales/slides/br.json +18 -11
  1472. package/locales/slides/co.json +35 -28
  1473. package/locales/slides/cs.json +7 -0
  1474. package/locales/slides/da.json +7 -0
  1475. package/locales/slides/de.json +7 -0
  1476. package/locales/slides/el.json +7 -0
  1477. package/locales/slides/en.json +11 -4
  1478. package/locales/slides/es.json +14 -7
  1479. package/locales/slides/fa.json +7 -0
  1480. package/locales/slides/fi.json +7 -0
  1481. package/locales/slides/fr-CA.json +7 -0
  1482. package/locales/slides/fr.json +7 -0
  1483. package/locales/slides/ha.json +7 -0
  1484. package/locales/slides/he.json +7 -0
  1485. package/locales/slides/hi.json +7 -0
  1486. package/locales/slides/hr.json +7 -0
  1487. package/locales/slides/hu.json +7 -0
  1488. package/locales/slides/id.json +7 -0
  1489. package/locales/slides/it.json +13 -6
  1490. package/locales/slides/ja.json +12 -5
  1491. package/locales/slides/ko.json +21 -14
  1492. package/locales/slides/mr.json +7 -0
  1493. package/locales/slides/ms.json +7 -0
  1494. package/locales/slides/nl.json +7 -0
  1495. package/locales/slides/pl.json +7 -0
  1496. package/locales/slides/pt.json +16 -9
  1497. package/locales/slides/ro.json +7 -0
  1498. package/locales/slides/ru.json +7 -0
  1499. package/locales/slides/sk.json +7 -0
  1500. package/locales/slides/sv.json +7 -0
  1501. package/locales/slides/sw.json +7 -0
  1502. package/locales/slides/ta.json +7 -0
  1503. package/locales/slides/te.json +7 -0
  1504. package/locales/slides/th.json +7 -0
  1505. package/locales/slides/tl.json +7 -0
  1506. package/locales/slides/tr.json +7 -0
  1507. package/locales/slides/uk.json +7 -0
  1508. package/locales/slides/ur.json +7 -0
  1509. package/locales/slides/vi.json +7 -0
  1510. package/locales/slides/yo.json +7 -0
  1511. package/locales/slides/zh-Hans.json +11 -4
  1512. package/locales/slides/zh-Hant.json +10 -3
  1513. package/locales/starters/am.json +20 -0
  1514. package/locales/starters/ar.json +20 -0
  1515. package/locales/starters/bg.json +20 -0
  1516. package/locales/starters/bn.json +20 -0
  1517. package/locales/starters/br.json +20 -0
  1518. package/locales/starters/co.json +20 -0
  1519. package/locales/starters/cs.json +20 -0
  1520. package/locales/starters/da.json +20 -0
  1521. package/locales/starters/de.json +20 -0
  1522. package/locales/starters/el.json +20 -0
  1523. package/locales/starters/en.json +20 -0
  1524. package/locales/starters/es.json +20 -0
  1525. package/locales/starters/fa.json +20 -0
  1526. package/locales/starters/fi.json +20 -0
  1527. package/locales/starters/fr-CA.json +20 -0
  1528. package/locales/starters/fr.json +20 -0
  1529. package/locales/starters/ha.json +20 -0
  1530. package/locales/starters/he.json +20 -0
  1531. package/locales/starters/hi.json +20 -0
  1532. package/locales/starters/hr.json +20 -0
  1533. package/locales/starters/hu.json +20 -0
  1534. package/locales/starters/id.json +20 -0
  1535. package/locales/starters/it.json +20 -0
  1536. package/locales/starters/ja.json +20 -0
  1537. package/locales/starters/ko.json +20 -0
  1538. package/locales/starters/mr.json +20 -0
  1539. package/locales/starters/ms.json +20 -0
  1540. package/locales/starters/nl.json +20 -0
  1541. package/locales/starters/pl.json +20 -0
  1542. package/locales/starters/pt.json +20 -0
  1543. package/locales/starters/ro.json +20 -0
  1544. package/locales/starters/ru.json +20 -0
  1545. package/locales/starters/sk.json +20 -0
  1546. package/locales/starters/sv.json +20 -0
  1547. package/locales/starters/sw.json +20 -0
  1548. package/locales/starters/ta.json +20 -0
  1549. package/locales/starters/te.json +20 -0
  1550. package/locales/starters/th.json +20 -0
  1551. package/locales/starters/tl.json +20 -0
  1552. package/locales/starters/tr.json +20 -0
  1553. package/locales/starters/uk.json +20 -0
  1554. package/locales/starters/ur.json +20 -0
  1555. package/locales/starters/vi.json +20 -0
  1556. package/locales/starters/yo.json +20 -0
  1557. package/locales/starters/zh-Hans.json +20 -0
  1558. package/locales/starters/zh-Hant.json +20 -0
  1559. package/locales/sv.json +37 -20
  1560. package/locales/sw.json +37 -20
  1561. package/locales/sync/br.json +2 -2
  1562. package/locales/sync/de.json +2 -2
  1563. package/locales/sync/es.json +6 -6
  1564. package/locales/sync/it.json +1 -1
  1565. package/locales/sync/ja.json +2 -2
  1566. package/locales/sync/pt.json +1 -1
  1567. package/locales/ta.json +37 -20
  1568. package/locales/tables/am.json +3 -0
  1569. package/locales/tables/ar.json +3 -0
  1570. package/locales/tables/bg.json +3 -0
  1571. package/locales/tables/bn.json +3 -0
  1572. package/locales/tables/br.json +11 -8
  1573. package/locales/tables/co.json +18 -15
  1574. package/locales/tables/cs.json +3 -0
  1575. package/locales/tables/da.json +3 -0
  1576. package/locales/tables/de.json +5 -2
  1577. package/locales/tables/el.json +3 -0
  1578. package/locales/tables/en.json +3 -0
  1579. package/locales/tables/es.json +3 -0
  1580. package/locales/tables/fa.json +3 -0
  1581. package/locales/tables/fi.json +3 -0
  1582. package/locales/tables/fr-CA.json +7 -4
  1583. package/locales/tables/fr.json +6 -3
  1584. package/locales/tables/ha.json +3 -0
  1585. package/locales/tables/he.json +3 -0
  1586. package/locales/tables/hi.json +3 -0
  1587. package/locales/tables/hr.json +3 -0
  1588. package/locales/tables/hu.json +3 -0
  1589. package/locales/tables/id.json +3 -0
  1590. package/locales/tables/it.json +3 -0
  1591. package/locales/tables/ja.json +5 -2
  1592. package/locales/tables/ko.json +7 -4
  1593. package/locales/tables/mr.json +3 -0
  1594. package/locales/tables/ms.json +3 -0
  1595. package/locales/tables/nl.json +3 -0
  1596. package/locales/tables/pl.json +3 -0
  1597. package/locales/tables/pt.json +11 -8
  1598. package/locales/tables/ro.json +3 -0
  1599. package/locales/tables/ru.json +3 -0
  1600. package/locales/tables/sk.json +3 -0
  1601. package/locales/tables/sv.json +3 -0
  1602. package/locales/tables/sw.json +3 -0
  1603. package/locales/tables/ta.json +3 -0
  1604. package/locales/tables/te.json +3 -0
  1605. package/locales/tables/th.json +3 -0
  1606. package/locales/tables/tl.json +3 -0
  1607. package/locales/tables/tr.json +3 -0
  1608. package/locales/tables/uk.json +3 -0
  1609. package/locales/tables/ur.json +3 -0
  1610. package/locales/tables/vi.json +3 -0
  1611. package/locales/tables/yo.json +3 -0
  1612. package/locales/tables/zh-Hans.json +4 -1
  1613. package/locales/tables/zh-Hant.json +4 -1
  1614. package/locales/te.json +37 -20
  1615. package/locales/th.json +37 -20
  1616. package/locales/tl.json +37 -20
  1617. package/locales/together/am.json +56 -0
  1618. package/locales/together/ar.json +56 -0
  1619. package/locales/together/bg.json +56 -0
  1620. package/locales/together/bn.json +56 -0
  1621. package/locales/together/br.json +56 -0
  1622. package/locales/together/co.json +56 -0
  1623. package/locales/together/cs.json +56 -0
  1624. package/locales/together/da.json +56 -0
  1625. package/locales/together/de.json +56 -0
  1626. package/locales/together/el.json +56 -0
  1627. package/locales/together/en.json +56 -0
  1628. package/locales/together/es.json +56 -0
  1629. package/locales/together/fa.json +56 -0
  1630. package/locales/together/fi.json +56 -0
  1631. package/locales/together/fr-CA.json +56 -0
  1632. package/locales/together/fr.json +56 -0
  1633. package/locales/together/ha.json +56 -0
  1634. package/locales/together/he.json +56 -0
  1635. package/locales/together/hi.json +56 -0
  1636. package/locales/together/hr.json +56 -0
  1637. package/locales/together/hu.json +56 -0
  1638. package/locales/together/id.json +56 -0
  1639. package/locales/together/it.json +56 -0
  1640. package/locales/together/ja.json +56 -0
  1641. package/locales/together/ko.json +56 -0
  1642. package/locales/together/mr.json +56 -0
  1643. package/locales/together/ms.json +56 -0
  1644. package/locales/together/nl.json +56 -0
  1645. package/locales/together/pl.json +56 -0
  1646. package/locales/together/pt.json +56 -0
  1647. package/locales/together/ro.json +56 -0
  1648. package/locales/together/ru.json +56 -0
  1649. package/locales/together/sk.json +56 -0
  1650. package/locales/together/sv.json +56 -0
  1651. package/locales/together/sw.json +56 -0
  1652. package/locales/together/ta.json +56 -0
  1653. package/locales/together/te.json +56 -0
  1654. package/locales/together/th.json +56 -0
  1655. package/locales/together/tl.json +56 -0
  1656. package/locales/together/tr.json +56 -0
  1657. package/locales/together/uk.json +56 -0
  1658. package/locales/together/ur.json +56 -0
  1659. package/locales/together/vi.json +56 -0
  1660. package/locales/together/yo.json +56 -0
  1661. package/locales/together/zh-Hans.json +56 -0
  1662. package/locales/together/zh-Hant.json +56 -0
  1663. package/locales/tr.json +37 -20
  1664. package/locales/uk.json +37 -20
  1665. package/locales/ur.json +37 -20
  1666. package/locales/vi.json +37 -20
  1667. package/locales/{search → web-search}/am.json +1 -1
  1668. package/locales/{search → web-search}/ar.json +1 -1
  1669. package/locales/{search → web-search}/bg.json +1 -1
  1670. package/locales/{search → web-search}/bn.json +1 -1
  1671. package/locales/{search → web-search}/br.json +9 -9
  1672. package/locales/{search → web-search}/co.json +8 -8
  1673. package/locales/{search → web-search}/cs.json +1 -1
  1674. package/locales/{search → web-search}/da.json +1 -1
  1675. package/locales/{search → web-search}/de.json +2 -2
  1676. package/locales/{search → web-search}/el.json +1 -1
  1677. package/locales/{search → web-search}/en.json +1 -1
  1678. package/locales/{search → web-search}/es.json +5 -5
  1679. package/locales/{search → web-search}/fa.json +1 -1
  1680. package/locales/{search → web-search}/fi.json +1 -1
  1681. package/locales/{search → web-search}/fr-CA.json +2 -2
  1682. package/locales/{search → web-search}/fr.json +2 -2
  1683. package/locales/{search → web-search}/ha.json +1 -1
  1684. package/locales/{search → web-search}/he.json +1 -1
  1685. package/locales/{search → web-search}/hi.json +1 -1
  1686. package/locales/{search → web-search}/hr.json +1 -1
  1687. package/locales/{search → web-search}/hu.json +1 -1
  1688. package/locales/{search → web-search}/id.json +1 -1
  1689. package/locales/{search → web-search}/it.json +2 -2
  1690. package/locales/{search → web-search}/ja.json +8 -8
  1691. package/locales/{search → web-search}/ko.json +2 -2
  1692. package/locales/{search → web-search}/mr.json +1 -1
  1693. package/locales/{search → web-search}/ms.json +1 -1
  1694. package/locales/{search → web-search}/nl.json +1 -1
  1695. package/locales/{search → web-search}/pl.json +1 -1
  1696. package/locales/{search → web-search}/pt.json +3 -3
  1697. package/locales/{search → web-search}/ro.json +1 -1
  1698. package/locales/{search → web-search}/ru.json +1 -1
  1699. package/locales/{search → web-search}/sk.json +1 -1
  1700. package/locales/{search → web-search}/sv.json +1 -1
  1701. package/locales/{search → web-search}/sw.json +1 -1
  1702. package/locales/{search → web-search}/ta.json +1 -1
  1703. package/locales/{search → web-search}/te.json +1 -1
  1704. package/locales/{search → web-search}/th.json +1 -1
  1705. package/locales/{search → web-search}/tl.json +1 -1
  1706. package/locales/{search → web-search}/tr.json +1 -1
  1707. package/locales/{search → web-search}/uk.json +1 -1
  1708. package/locales/{search → web-search}/ur.json +1 -1
  1709. package/locales/{search → web-search}/vi.json +1 -1
  1710. package/locales/{search → web-search}/yo.json +1 -1
  1711. package/locales/{search → web-search}/zh-Hans.json +3 -3
  1712. package/locales/{search → web-search}/zh-Hant.json +19 -19
  1713. package/locales/yo.json +37 -20
  1714. package/locales/you/br.json +13 -13
  1715. package/locales/you/co.json +2 -2
  1716. package/locales/you/de.json +1 -1
  1717. package/locales/you/en.json +1 -1
  1718. package/locales/you/es.json +2 -2
  1719. package/locales/you/fr-CA.json +3 -3
  1720. package/locales/you/fr.json +3 -3
  1721. package/locales/you/it.json +10 -10
  1722. package/locales/you/ja.json +9 -9
  1723. package/locales/you/pt.json +11 -11
  1724. package/locales/you/zh-Hans.json +3 -3
  1725. package/locales/you/zh-Hant.json +3 -3
  1726. package/locales/zh-Hans.json +56 -39
  1727. package/locales/zh-Hant.json +66 -49
  1728. package/package.json +1 -1
  1729. package/preview.html +8 -2
  1730. package/ui/base.js +33 -0
  1731. package/ui/caps.js +18 -15
  1732. package/ui/csp.js +1 -1
  1733. package/ui/export.js +4 -4
  1734. package/ui/icons.js +4 -4
  1735. package/ui/kit.js +12 -7
  1736. package/ui/looks/classic.css +2 -0
  1737. package/ui/looks/human.css +15 -5
  1738. package/ui/looks/neon.css +4 -5
  1739. package/ui/looks/tilde.css +1 -1
  1740. package/ui/looks/velvet.css +1 -1
  1741. package/ui/looks.js +2 -5
  1742. package/ui/markdown.js +23 -19
  1743. package/ui/menu-icons.js +13 -5
  1744. package/ui/model.js +4 -4
  1745. package/ui/pointed.js +22 -0
  1746. package/ui/reader-state.js +4 -3
  1747. package/ui/reader.js +1 -1
  1748. package/ui/seal.js +80 -25
  1749. package/ui/shown.js +53 -0
  1750. package/ui/style.css +19 -21
  1751. package/ui/touches.js +22 -0
  1752. package/ui/view.css +27 -1
  1753. package/ui/view.js +38 -15
  1754. package/vendor/pele/lazy.d.ts +1 -0
  1755. package/locales/reader/ja.json +0 -9
  1756. package/ui/looks/mondrian.css +0 -90
  1757. package/ui/looks/paper.css +0 -51
  1758. /package/locales/{reader → natural-voice}/am.json +0 -0
  1759. /package/locales/{reader → natural-voice}/ar.json +0 -0
  1760. /package/locales/{reader → natural-voice}/bg.json +0 -0
  1761. /package/locales/{reader → natural-voice}/bn.json +0 -0
  1762. /package/locales/{reader → natural-voice}/br.json +0 -0
  1763. /package/locales/{reader → natural-voice}/co.json +0 -0
  1764. /package/locales/{reader → natural-voice}/cs.json +0 -0
  1765. /package/locales/{reader → natural-voice}/da.json +0 -0
  1766. /package/locales/{reader → natural-voice}/de.json +0 -0
  1767. /package/locales/{reader → natural-voice}/el.json +0 -0
  1768. /package/locales/{reader → natural-voice}/en.json +0 -0
  1769. /package/locales/{reader → natural-voice}/fa.json +0 -0
  1770. /package/locales/{reader → natural-voice}/fi.json +0 -0
  1771. /package/locales/{reader → natural-voice}/fr-CA.json +0 -0
  1772. /package/locales/{reader → natural-voice}/fr.json +0 -0
  1773. /package/locales/{reader → natural-voice}/ha.json +0 -0
  1774. /package/locales/{reader → natural-voice}/he.json +0 -0
  1775. /package/locales/{reader → natural-voice}/hi.json +0 -0
  1776. /package/locales/{reader → natural-voice}/hr.json +0 -0
  1777. /package/locales/{reader → natural-voice}/hu.json +0 -0
  1778. /package/locales/{reader → natural-voice}/id.json +0 -0
  1779. /package/locales/{reader → natural-voice}/it.json +0 -0
  1780. /package/locales/{reader → natural-voice}/ko.json +0 -0
  1781. /package/locales/{reader → natural-voice}/mr.json +0 -0
  1782. /package/locales/{reader → natural-voice}/ms.json +0 -0
  1783. /package/locales/{reader → natural-voice}/nl.json +0 -0
  1784. /package/locales/{reader → natural-voice}/pl.json +0 -0
  1785. /package/locales/{reader → natural-voice}/pt.json +0 -0
  1786. /package/locales/{reader → natural-voice}/ro.json +0 -0
  1787. /package/locales/{reader → natural-voice}/ru.json +0 -0
  1788. /package/locales/{reader → natural-voice}/sk.json +0 -0
  1789. /package/locales/{reader → natural-voice}/sv.json +0 -0
  1790. /package/locales/{reader → natural-voice}/sw.json +0 -0
  1791. /package/locales/{reader → natural-voice}/ta.json +0 -0
  1792. /package/locales/{reader → natural-voice}/te.json +0 -0
  1793. /package/locales/{reader → natural-voice}/th.json +0 -0
  1794. /package/locales/{reader → natural-voice}/tl.json +0 -0
  1795. /package/locales/{reader → natural-voice}/tr.json +0 -0
  1796. /package/locales/{reader → natural-voice}/uk.json +0 -0
  1797. /package/locales/{reader → natural-voice}/ur.json +0 -0
  1798. /package/locales/{reader → natural-voice}/vi.json +0 -0
  1799. /package/locales/{reader → natural-voice}/yo.json +0 -0
package/brand.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // The only place the name lives. Display only: never use it in storage keys,
2
2
  // file paths, cache names, CSS classes or element names (see AGENTS.md).
3
- export const BRAND = Object.freeze({
3
+ export const BRAND = Object.seal({
4
4
  name: 'Jean',
5
5
  domain: 'jean.is',
6
6
  })
@@ -1,5 +1,5 @@
1
1
  // Charts (D196): a ```echarts block in an answer, drawn by ECharts on a canvas, with the theme's
2
- // light or dark, the room's type and numbers in the user's language; drawn again as its box, the
2
+ // light or dark (on a slide, its paper's), the room's type and numbers in the user's language; drawn again as its box, the
3
3
  // theme, the look or the language changes; copied as its source and its picture, on light paper,
4
4
  // at once. The block is data (./option.js). While it is written, what is whole of it so far is
5
5
  // drawn, and the chart grows as more comes. Loaded by the first chart an answer holds; until then,
@@ -13,7 +13,7 @@ import { drawnActions } from '../../ui/caps.js'
13
13
  import { icons } from '../../ui/icons.js'
14
14
  import { styleSheet, still } from '../../ui/sheet.js'
15
15
  import { t, dir, locale, intlLocales, useStrings } from '../../core/i18n.js'
16
- import { readOption, localize, titleOf, namesIn, sideOf } from './option.js'
16
+ import { readOption, localize, titleOf, namesIn, paperTheme, paperLabels, sideOf } from './option.js'
17
17
 
18
18
  /** @typedef {import('./option.js').Option} Option */
19
19
 
@@ -22,7 +22,7 @@ const [echarts] = await Promise.all([import(new URL('../../vendor/echarts/echart
22
22
  const [contrast, forced] = [matchMedia('(prefers-contrast: more)'), matchMedia('(forced-colors: active)')]
23
23
  let charts = 0
24
24
  // Escape hides a tip.
25
- addEventListener('keydown', (event) => { if (event.key === 'Escape') for (const one of document.querySelectorAll('app-chart')) /** @type {any} */ (one).chart?.dispatchAction({ type: 'hideTip' }) })
25
+ addEventListener('keydown', (event) => { if (event.key === 'Escape') for (const one of document.querySelectorAll('app-chart')) /** @type {{ chart?: import('echarts').ECharts | null }} */ (one).chart?.dispatchAction({ type: 'hideTip' }) })
26
26
 
27
27
  /**
28
28
  * The option as drawn here: numbers in the user's language, the room's type, no animation for
@@ -38,7 +38,7 @@ function dressed(option, font) {
38
38
  }
39
39
  }
40
40
 
41
- /** A chart's numbers as a table, its categories down the side and a column for each series; its source where it has neither. @param {any} option @param {string} source */
41
+ /** A chart's numbers as a table, its categories down the side and a column for each series; its source where it has neither. @param {Option} option @param {string} source */
42
42
  function figures(option, source) {
43
43
  const series = [option.series].flat().filter((one) => Array.isArray(one?.data)), axis = [option.xAxis, option.yAxis].flat().find((one) => Array.isArray(one?.data))?.data, value = (/** @type {any} */ one) => [one?.value ?? one].flat().join(', '), rows = Math.max(0, ...series.map((one) => one.data.length))
44
44
  const links = [option.series].flat().flatMap((one) => one?.links ?? one?.edges ?? []), set = [option.dataset].flat()[0]?.source; if (links.length) return html`<ul>${links.map((/** @type {any} */ one) => html`<li dir="auto">${one.source} → ${one.target}${one.value == null ? '' : ` (${one.value})`}</li>`)}</ul>`
@@ -90,7 +90,7 @@ class AppChart extends HTMLElement {
90
90
  draw() {
91
91
  const source = this.getAttribute('source') ?? ''
92
92
  const open = this.hasAttribute('open')
93
- const look = [theme.peek(), app.look.peek(), locale.peek()].join('\n')
93
+ const paper = this.paper(), look = [theme.peek(), app.look.peek(), locale.peek(), paper?.textStyle.color].join('\n')
94
94
  const key = [look, open, source].join('\n')
95
95
  if (key === this.drawn) return
96
96
  this.drawn = key
@@ -110,11 +110,11 @@ class AppChart extends HTMLElement {
110
110
  if (!option || !box) return
111
111
  try {
112
112
  // In SVG on a slide (`svg`), which a deck saved as PowerPoint reads as it is drawn (D593).
113
- this.chart ??= echarts.init(box, theme.peek() === 'dark' ? 'dark' : undefined, { renderer: this.hasAttribute('svg') ? 'svg' : 'canvas' })
113
+ this.chart ??= echarts.init(box, paper ?? (theme.peek() === 'dark' ? 'dark' : undefined), { renderer: this.hasAttribute('svg') ? 'svg' : 'canvas' })
114
114
  if (!more) this.fit()
115
115
  this.made = look
116
116
  // Without animation while it grows: each would start again with the next few values.
117
- this.chart.setOption({ ...dressed(option, getComputedStyle(this).fontFamily), ...(open && { animation: false }) })
117
+ this.chart.setOption({ ...dressed(paper ? { ...option, series: paperLabels(option.series, paper.textStyle.color) } : option, getComputedStyle(this).fontFamily), ...(open && { animation: false }) })
118
118
  this.sized.observe(box)
119
119
  } catch (error) {
120
120
  // Half an option may not draw yet; a whole one that doesn't is worth a word.
@@ -125,6 +125,15 @@ class AppChart extends HTMLElement {
125
125
  }
126
126
  }
127
127
 
128
+ /** On a slide (`svg`), ECharts' theme for the paper under the chart, which a tile or a part may have over the slide's. */
129
+ paper() {
130
+ if (!this.hasAttribute('svg')) return null
131
+ /** @type {Element} */
132
+ let under = this
133
+ while (under.parentElement && !getComputedStyle(under).backgroundColor.startsWith('rgb(')) under = under.parentElement
134
+ return paperTheme(getComputedStyle(this).color, getComputedStyle(under).backgroundColor)
135
+ }
136
+
128
137
  /**
129
138
  * The chart to its box. On a slide (`svg`), drawn at a size of its own and scaled up to it, so that its words, lines and margins
130
139
  * grow with the slide's as they all do, at any size of slide: ECharts' 12px as six tenths of the slide's type, or less in a short
@@ -141,6 +141,23 @@ export function localize(option, format) {
141
141
  return option
142
142
  }
143
143
 
144
+ /**
145
+ * ECharts' theme on a slide, whose paper isn't the room's: every word in the slide's colour where that reads on the paper under
146
+ * the chart at AA, else in black or white, whichever does. A theme, so that what the chart names itself stays. Colours as CSS
147
+ * computes them, `rgb(…)`. @param {string} words @param {string} paper
148
+ */
149
+ export function paperTheme(words, paper) {
150
+ const luminance = (/** @type {string} */ colour) => (colour.match(/[\d.]+/g) ?? []).slice(0, 3).map((c) => Number(c) / 255).map((s) => (s <= 0.04045 ? s / 12.92 : ((s + 0.055) / 1.055) ** 2.4)).reduce((sum, s, i) => sum + s * [0.2126, 0.7152, 0.0722][i], 0)
151
+ const under = luminance(paper), over = luminance(words), dark = under < 0.179
152
+ const color = (Math.max(under, over) + 0.05) / (Math.min(under, over) + 0.05) >= 4.5 ? words : dark ? 'rgb(255, 255, 255)' : 'rgb(0, 0, 0)'
153
+ const axis = { axisLine: { lineStyle: { color } }, axisLabel: { color }, splitLine: { lineStyle: { color: color.replace('rgb(', 'rgba(').replace(')', ', 0.2)') } } }
154
+ return { darkMode: dark, textStyle: { color }, title: { textStyle: { color }, subtextStyle: { color } }, legend: { textStyle: { color }, pageTextStyle: { color } }, visualMap: { textStyle: { color } }, dataZoom: { textStyle: { color } }, timeline: { label: { color } },
155
+ calendar: { dayLabel: { color }, monthLabel: { color }, yearLabel: { color } }, matrix: { x: { label: { color } }, y: { label: { color } } }, gauge: { title: { color }, axisLabel: { color }, detail: { color } }, radar: { ...axis, axisName: { color } }, categoryAxis: axis, valueAxis: axis, timeAxis: axis, logAxis: axis }
156
+ }
157
+
158
+ /** The series with their labels in `color` where they stand on the paper, not on their marks, as a bar's do unless it says. @param {unknown} series @param {string} color */
159
+ export const paperLabels = (series, color) => all(series).map((one) => (/in|center/.test(one.label?.position ?? (/^(bar|pictorialBar|heatmap|treemap|sunburst|graph|map)$/.test(one.type) ? 'in' : '')) ? one : { ...one, label: { color, ...one.label } }))
160
+
144
161
  /** What a chart is called: its first title. @param {Option} option */
145
162
  export const titleOf = (option) => String(all(option.title).find((title) => title.text)?.text ?? '')
146
163
 
@@ -1,14 +1,15 @@
1
1
  // Word, Excel and PowerPoint files as Office draws them (D183), in a file's pane and the browser: by
2
2
  // @silurus/ooxml, its parsers WebAssembly, its viewers drawing on a canvas, so nothing of the file
3
3
  // becomes markup, in a frame of a file pane's kind (an opaque origin with no network), in a page made
4
- // here: modules as data: addresses under an import map, the parser and the file as data too.
4
+ // here: its modules as text the page makes blob: addresses of, under an import map it writes, the
5
+ // parser and the file as data.
5
6
  import { encode } from '../../ui/seal.js'
6
7
  import { t } from '../../core/i18n.js'
7
8
 
8
9
  const BASE = new URL('../../vendor/ooxml/', import.meta.url)
9
10
  const VIEWERS = /** @type {Record<string, string>} */ ({ docx: 'DocxScrollViewer', pptx: 'PptxScrollViewer', xlsx: 'XlsxViewer' })
10
- /** A file of vendor/ooxml as a data: address. @param {string} path @param {string} [type] */
11
- const data = async (path, type = 'text/javascript') => `data:${type};base64,${encode(new Uint8Array(await (await fetch(new URL(path, BASE))).arrayBuffer()))}`
11
+ /** A file of vendor/ooxml. @param {string} path */
12
+ const read = (path) => fetch(new URL(path, BASE))
12
13
  let graph = /** @type {Promise<Record<string, string[]>> | undefined} */ (undefined)
13
14
 
14
15
  /** Where a workbook was being looked at: its sheet, how far it was scrolled, the cell chosen. @typedef {{ sheet: number, x: number, y: number, ref: string }} Place */
@@ -16,7 +17,9 @@ let graph = /** @type {Promise<Record<string, string[]>> | undefined} */ (undefi
16
17
  // A workbook's cells changed where they are (D229): a double click, F2 or typing opens a box over the cell
17
18
  // chosen (Enter is the viewer's, for comments); Enter, Tab or leaving it sends Jean what it is to hold, and
18
19
  // Jean keeps a new version and shows it again where it was; Escape leaves the box, as does Jean's answer
19
- // that the cell can't change. Closed from the keyboard, the box gives the keys back to the sheet.
20
+ // that the cell can't change. Closed from the keyboard, the box gives the keys back to the sheet. A sheet is
21
+ // drawn before the viewer has read it whole, and can't say what a cell holds until then: the box waits for
22
+ // that, 10 s at most, unless another box opened meanwhile.
20
23
  const CELLS = `
21
24
  const box = Object.assign(document.createElement('input'), { dir: 'auto', spellcheck: false, autocomplete: 'off' })
22
25
  box.style.cssText = 'position: fixed; display: none; box-sizing: border-box; margin: 0; padding: 0 4px; border: 2px solid #1a73e8; background: #fff; color: #111; font: 13px system-ui, sans-serif'
@@ -26,11 +29,13 @@ let was = ''
26
29
  let back = null
27
30
  const ref = ({ row, col }) => { let name = ''; for (let n = col; n > 0; n = Math.floor((n - 1) / 26)) name = String.fromCharCode(65 + ((n - 1) % 26)) + name; return name + row }
28
31
  const close = (keys) => { cell = null; box.readOnly = false; box.style.display = 'none'; if (keys) back?.focus() }
29
- const open = (typed) => {
32
+ const open = (typed, tries = 0) => {
30
33
  const active = viewer.selectionState?.activeCell
31
34
  const rect = active && viewer.getCellViewportRect(active)
32
35
  if (!rect) return
33
- const known = viewer.getSelectionContext()?.cells?.find(({ address }) => address.row === active.row && address.col === active.col)
36
+ const context = viewer.getSelectionContext()
37
+ if (!context) return void (tries < 200 && setTimeout(() => cell || open(typed, tries + 1), 50))
38
+ const known = context.cells?.find(({ address }) => address.row === active.row && address.col === active.col)
34
39
  const grid = viewer.canvasElement.getBoundingClientRect()
35
40
  cell = active
36
41
  back = document.activeElement
@@ -73,16 +78,18 @@ addEventListener('message', ({ source, data }) => { if (source === parent && dat
73
78
  */
74
79
  export async function officePage(ext, bytes, name, cells, words) {
75
80
  graph ??= fetch(new URL('graph.json', BASE)).then((response) => response.json())
76
- const imports = Object.fromEntries(await Promise.all((await graph)[ext].map(async (file) => [`ooxml/${file}`, await data(file)])))
81
+ // Its modules as blob: addresses the page makes, never data: ones: Chromium took 2.6 s over the 1.6 MB data: address of a Word
82
+ // document's largest module, on a fast computer, and fourteen on a busy one, and Jean's page, whose thread the frame shares, froze with it.
83
+ const modules = Object.fromEntries(await Promise.all((await graph)[ext].map(async (file) => [`ooxml/${file}`, await (await read(file)).text()])))
77
84
  const failed = JSON.stringify(t('files.failed', { name })).replace(/</g, '\\u003c')
78
85
  const at = JSON.stringify(cells?.at ?? null).replace(/</g, '\\u003c')
79
86
  const find = words && JSON.stringify(words.replace(/^#+ /gm, '').split('\n').map((line) => line.trim()).sort((a, b) => b.length - a.length)[0]).replace(/</g, '\\u003c')
80
87
  return /* html */ `<meta charset="utf-8"><style>html, body { block-size: 100%; margin: 0; background: #ececef; font: 0.9rem system-ui, sans-serif; } main { block-size: 100vh; } p { margin: 2rem; text-align: center; }</style>
81
- <script type="importmap">${JSON.stringify({ imports })}</script><main></main>
88
+ <script>document.head.append(Object.assign(document.createElement('script'), { type: 'importmap', textContent: JSON.stringify({ imports: Object.fromEntries(Object.entries(${JSON.stringify(modules).replace(/</g, '\\u003c')}).map(([name, text]) => [name, URL.createObjectURL(new Blob([text], { type: 'text/javascript' }))])) }) }))</script><main></main>
82
89
  <script type="module">
83
90
  import { ${VIEWERS[ext]} as Viewer } from 'ooxml/${ext}.mjs'
84
91
  const main = document.querySelector('main')
85
- const viewer = new Viewer(main, { wasmUrl: '${await data(`${ext}_parser_bg.wasm`, 'application/wasm')}', enableTextSelection: true, background: '#ececef' })
92
+ const viewer = new Viewer(main, { wasmUrl: 'data:application/wasm;base64,${encode(new Uint8Array(await (await read(`${ext}_parser_bg.wasm`)).arrayBuffer()))}', enableTextSelection: true, background: '#ececef' })
86
93
  viewer.load(Uint8Array.from(atob('${encode(bytes)}'), (char) => char.charCodeAt(0)).buffer)${find ? `
87
94
  .then(() => viewer.findText(${find}).then(() => viewer.findNext()).catch(() => {}))` : ''}${ext === 'xlsx' && cells ? `
88
95
  .then(async () => {
package/caps/files/pdf.js CHANGED
@@ -22,8 +22,11 @@ function pdfjs() {
22
22
  return library
23
23
  }
24
24
 
25
- /** A PDF, opened: its text is read here, its pages drawn where a file shows (ui/view.js, D126). @param {Uint8Array} bytes */
26
- export async function openPdf(bytes) {
25
+ /** pdf.js's words of a page, laid over it to select (D690). */
26
+ export const textLayer = async () => (await pdfjs()).TextLayer
27
+
28
+ /** A PDF, opened: its text is read here, its pages drawn where a file shows (ui/view.js, D126); `more`, pdf.js's options besides (a face's own name, D740). @param {Uint8Array} bytes @param {object} [more] */
29
+ export async function openPdf(bytes, more = {}) {
27
30
  return (await pdfjs()).getDocument({
28
31
  data: bytes.slice(), // the buffer is transferred to the worker
29
32
  cMapUrl: new URL('cmaps/', BASE).href,
@@ -35,15 +38,16 @@ export async function openPdf(bytes) {
35
38
  isEvalSupported: false,
36
39
  disableFontFace: true,
37
40
  useSystemFonts: false,
41
+ ...more,
38
42
  })
39
43
  }
40
44
 
41
45
  /**
42
46
  * What `read` makes of each page of a PDF, the first `count`, in turn; the PDF is let go after.
43
- * @template T @param {Uint8Array} bytes @param {(page: any) => Promise<T>} read @returns {Promise<T[]>}
47
+ * @template T @param {Uint8Array} bytes @param {(page: any) => Promise<T>} read @param {object} [more] pdf.js's options besides @returns {Promise<T[]>}
44
48
  */
45
- export async function eachPage(bytes, read, count = Infinity) {
46
- const task = await openPdf(bytes)
49
+ export async function eachPage(bytes, read, count = Infinity, more = {}) {
50
+ const task = await openPdf(bytes, more)
47
51
  const out = []
48
52
  try {
49
53
  const doc = await task.promise
@@ -37,6 +37,8 @@ export function gameOf(page) {
37
37
 
38
38
  /** A game's page with its picture, the one before gone; as it was when either isn't one. @param {string} page @param {string} picture */
39
39
  export const pictured = (page, picture) => ((game) => (game && PICTURE.test(picture) ? fileOf({ ...game, picture }, /<html lang="([^"]*)">/.exec(page)?.[1] ?? 'en') : page))(gameOf(page))
40
+ /** A game's code importing what it is lent (./page.js) by path, from a file beside it, as on a site, which has no import map (D720): `from 'phaser'` as `from './phaser.js'`. @param {string} code @param {string[]} names */
41
+ export const beside = (code, names) => code.replace(new RegExp(`(\\b(?:from|import)\\s*\\(?\\s*)(["'])(${names.join('|')})\\2`, 'g'), '$1$2./$3.js$2')
40
42
 
41
43
  /** The actions a game says it uses, those Jean knows, all of them when it says none. @param {unknown} list */
42
44
  export const actionsOf = (list) => ((known) => (known.length ? known : ACTIONS))((Array.isArray(list) ? list : String(list ?? '').split(/[\s,]+/)).map(String).filter((one, i, all) => ACTIONS.includes(one) && all.indexOf(one) === i))
@@ -1,12 +1,12 @@
1
1
  // A game's page (D648): its facts, the shell (./shell.js) and its styles, and the game, guarded (./guard.js). In a frame of Jean's
2
2
  // (./frame.js) its engine is lent; as a page of its own, which Save gives and a task saved as a page or shared by link shows
3
3
  // (ui/view.js), its engine is inside it: offline, its card where scripts don't run, and what it saves kept in the browser's storage
4
- // where the page has one (a file opened), else for the visit.
4
+ // where the page has one (a file opened), else for the visit; as a site, its code and engine are files beside it (siteOf).
5
5
  import { pagePolicy } from '../../ui/csp.js'
6
6
  import { still } from '../../ui/sheet.js'
7
7
  import { t, locale, dir, useStrings } from '../../core/i18n.js'
8
8
  import { guard } from './guard.js'
9
- import { actionsOf, gameOf, PICTURE } from './file.js'
9
+ import { actionsOf, gameOf, beside, PICTURE } from './file.js'
10
10
 
11
11
  /** What a game imports by name: its engine's, and ZzFX. */
12
12
  export const LENT = /** @type {Record<string, string>} */ ({ phaser: '../../vendor/phaser/phaser.mjs', babylon: '../../vendor/babylon/babylon.mjs', zzfx: '../../vendor/zzfx/zzfx.mjs' })
@@ -16,19 +16,20 @@ const read = /** @type {Map<string, Promise<string>>} */ (new Map())
16
16
  /** A file beside this module, read once. @param {string} path */
17
17
  export const text = (path) => read.get(path) ?? /** @type {Promise<string>} */ (read.set(path, fetch(new URL(path, import.meta.url)).then((response) => response.text())).get(path))
18
18
  const escaped = (/** @type {string} */ words) => words.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/"/g, '&quot;')
19
+ const VIEWPORT = '<meta name="viewport" content="width=device-width, initial-scale=1">'
19
20
 
20
21
  /**
21
- * A game's page. `imports`: its import map, none for a page whose `boot` makes its own; `head`, what its head starts with.
22
+ * A game's page. `imports`: its import map, none for a page whose `boot` makes its own; `head`, what its head starts with; `src`, the file beside it its code is in, on a site.
22
23
  * @param {import('./file.js').Game} game
23
24
  * @param {{ test?: { frames: number, seed: number, press: { action: string, from: number, to: number }[] } | null, saved?: { save: string | null, storage: Record<string, string> },
24
- * imports?: Record<string, string> | null, head?: string, boot?: string }} [options]
25
+ * imports?: Record<string, string> | null, head?: string, boot?: string, src?: string }} [options]
25
26
  */
26
- export async function pageOf(game, { test = null, saved = { save: null, storage: {} }, imports = null, head = '', boot = '' } = {}) {
27
+ export async function pageOf(game, { test = null, saved = { save: null, storage: {} }, imports = null, head = '', boot = '', src = '' } = {}) {
27
28
  const lang = locale.peek(), [shell, css] = await Promise.all([text('./shell.js'), text('./frame.css')])
28
29
  const words = Object.fromEntries(['play', 'resume', 'paused', 'pause', 'mute', 'full', 'left', 'right', 'up', 'down'].map((key) => [key, t(`games.${key}`)]))
29
30
  const given = JSON.stringify({ test, saved, words, actions: actionsOf(game.meta.actions), reduced: still(), title: game.name, pictured: Boolean(game.picture) }).replace(/</g, '\\u003c')
30
31
  return /* html */ `<html lang="${lang}" dir="${dir(lang)}"><meta charset="utf-8">${head}${imports ? `<script type="importmap">${JSON.stringify({ imports })}</script>` : ''}<script>window.__game=${given}</script>${boot}<script>${shell}</script><style>${css}</style>
31
- <body><noscript><article dir="auto">${game.picture && PICTURE.test(game.picture) ? `<img src="${game.picture}" alt="">` : ''}<h1>${escaped(game.name)}</h1><p>${escaped(game.card)}</p></article></noscript><div id="stage" tabindex="-1"></div><script type="text/x-game" id="game">${guard(game.code, '__loop()').replace(/<\/(script)/gi, '<\\/$1')}</script>`
32
+ <body><noscript><article dir="auto">${game.picture && PICTURE.test(game.picture) ? `<img src="${game.picture}" alt="">` : ''}<h1>${escaped(game.name)}</h1><p>${escaped(game.card)}</p></article></noscript><div id="stage" tabindex="-1"></div><script type="text/x-game" id="game"${src ? ` src="${src}">` : `>${guard(game.code, '__loop()').replace(/<\/(script)/gi, '<\\/$1')}`}</script>`
32
33
  }
33
34
 
34
35
  /**
@@ -47,6 +48,19 @@ try{store=localStorage;Object.assign(g.saved,JSON.parse(store.getItem(key)||'{}'
47
48
  for(const e of document.querySelectorAll('script[type="text/x-engine"]'))imports[e.dataset.name]=URL.createObjectURL(new Blob([e.textContent],{type:'text/javascript'}))
48
49
  document.head.append(Object.assign(document.createElement('script'),{type:'importmap',textContent:JSON.stringify({imports})}))
49
50
  if(parent===window&&store){const send=postMessage.bind(window);window.postMessage=(m,o)=>{if(m&&m.keep)try{store.setItem(key,JSON.stringify(m.keep))}catch{}send(m,o)}}})()`
50
- const head = `<meta name="viewport" content="width=device-width, initial-scale=1"><meta http-equiv="Content-Security-Policy" content="${pagePolicy({ scripts: true, web: false, network: false, downloads: false, fullscreen: true, maps: false }, [], true)}"><title>${escaped(game.name)}</title>`
51
+ const head = `${VIEWPORT}<meta http-equiv="Content-Security-Policy" content="${pagePolicy({ scripts: true, web: false, network: false, downloads: false, fullscreen: true, maps: false }, [], true)}"><title>${escaped(game.name)}</title>`
51
52
  return `<!doctype html>${await pageOf(game, { head, boot: `${engines.join('')}<script>${boot}</script>` })}`
52
53
  }
54
+
55
+ /**
56
+ * A game as the files of a site (D720), whose host runs a site's own files and no import map: its code, its engine and ZzFX in files
57
+ * beside its page, which it imports by path; the rest as ../sites/file.js makes any page on its own a site. @param {string} file
58
+ */
59
+ export async function siteOf(file) {
60
+ const [game, { sited }] = [gameOf(file), await import('../sites/file.js')], names = game ? lent(game) : []
61
+ if (!game) return sited(file)
62
+ await useStrings('games')
63
+ const files = sited(`<!doctype html>${await pageOf(game, { head: `${VIEWPORT}<title>${escaped(game.name)}</title>`, src: 'game.js' })}`)
64
+ for (const name of names) files.set(`${name}.js`, await text(LENT[name]))
65
+ return files.set('game.js', guard(beside(game.code, names), '__loop()'))
66
+ }
@@ -48,7 +48,7 @@
48
48
  Object.defineProperties(document, { hidden: { get: () => false }, visibilityState: { get: () => 'visible' } })
49
49
  }
50
50
  win.Date = class extends RealDate {
51
- constructor(/** @type {any[]} */ ...args) { if (args.length) super(.../** @type {[any]} */ (args)); else super(start + now) }
51
+ constructor(/** @type {unknown[]} */ ...args) { if (args.length) super(.../** @type {[string | number | Date]} */ (args)); else super(start + now) }
52
52
  static now() { return start + now }
53
53
  }
54
54
  performance.now = () => now
@@ -56,7 +56,7 @@
56
56
  const timers = /** @type {Map<number, { at: number, every?: number, fn: unknown, args: unknown[] }>} */ (new Map())
57
57
  win.requestAnimationFrame = (/** @type {Function} */ fn) => (frames.set(++ids, fn), ids)
58
58
  win.cancelAnimationFrame = (/** @type {number} */ id) => frames.delete(id)
59
- win.setTimeout = (/** @type {any} */ fn, ms = 0, /** @type {unknown[]} */ ...args) => (running ? (timers.set(++ids, { at: now + Math.max(0, Number(ms) || 0), fn, args }), ids) : real.later(fn, ms, ...args))
59
+ win.setTimeout = (/** @type {TimerHandler} */ fn, ms = 0, /** @type {unknown[]} */ ...args) => (running ? (timers.set(++ids, { at: now + Math.max(0, Number(ms) || 0), fn, args }), ids) : real.later(fn, ms, ...args))
60
60
  win.setInterval = (/** @type {unknown} */ fn, ms = 0, /** @type {unknown[]} */ ...args) => ((every) => (timers.set(++ids, { at: now + every, every, fn, args }), ids))(Math.max(1, Number(ms) || 0))
61
61
  win.clearTimeout = win.clearInterval = (/** @type {number} */ id) => (id > 1e6 ? timers.delete(id) : real.clear(id))
62
62
  const step = (/** @type {number} */ ms) => {
@@ -107,12 +107,12 @@
107
107
  removeItem: (/** @type {string} */ key) => (store.delete(String(key)), keep()), clear: () => (store.clear(), keep()), key: (/** @type {number} */ i) => [...store.keys()][i] ?? null, get length() { return store.size } }
108
108
  Object.defineProperty(window, 'localStorage', { value: storage, configurable: true })
109
109
  let score = NaN
110
- const LENT = 'zzfx'
110
+ let lent = 'zzfx'
111
111
  win.host = {
112
112
  get stage() { return stage },
113
113
  input: { down: (/** @type {string} */ action) => down.has(action), pressed: (/** @type {string} */ action) => pressed.has(action), on: (/** @type {string} */ action, /** @type {unknown} */ fn) => void on.set(action, [...(on.get(action) ?? []), fn]) },
114
- // ZzFX, lent as the engines are, by the page's import map.
115
- sound: (/** @type {number[]} */ ...params) => void (muted || import(/** @type {string} */ (LENT)).then(({ zzfx, ZZFX }) => (ZZFX.audioContext.resume(), zzfx(...params)), (error) => fault(error))),
114
+ // ZzFX, lent as the engines are, by the page's import map, or a file beside the game's on a site.
115
+ sound: (/** @type {number[]} */ ...params) => void (muted || import(lent).then(({ zzfx, ZZFX }) => (ZZFX.audioContext.resume(), zzfx(...params)), (error) => fault(error))),
116
116
  save: (/** @type {unknown} */ value) => { const json = JSON.stringify(value ?? null); if (json.length > 65536) throw new RangeError('A save holds 64 KB at most.'); saved = json; keep() },
117
117
  load: () => JSON.parse(saved ?? 'null'),
118
118
  state: (/** @type {unknown} */ name) => { report.states.push([Math.round(now), String(name)]); if (!test) post({ state: String(name) }) },
@@ -250,7 +250,9 @@
250
250
 
251
251
  addEventListener('DOMContentLoaded', () => {
252
252
  stage = /** @type {HTMLElement} */ (document.getElementById('stage'))
253
- url = URL.createObjectURL(new Blob([document.getElementById('game')?.textContent ?? ''], { type: 'text/javascript' }))
253
+ const game = document.getElementById('game'), src = game?.getAttribute('src')
254
+ url = src ? new URL(src, document.baseURI).href : URL.createObjectURL(new Blob([game?.textContent ?? ''], { type: 'text/javascript' }))
255
+ if (src) lent = new URL('zzfx.js', url).href
254
256
  // Chromium says where a module's syntax error is on its element, WebKit on import()'s.
255
257
  document.body.append(make('script', { type: 'module', src: url }))
256
258
  import(url).then(() => test && real.later(play, frames.size ? 0 : 300), (error) => { if (!report.errors.some((one) => one.name === 'SyntaxError')) fault(error, error?.line, error?.column); if (test) play() })
@@ -12,14 +12,11 @@ import { icon, icons } from '../../ui/menu-icons.js'
12
12
  import { t } from '../../core/i18n.js'
13
13
  import { ask, page } from '../../ui/creations.js'
14
14
  import { held } from '../../ui/held.js'
15
- import { capability, page as drawn } from './interactive.js'
15
+ import { capability, named, page as drawn } from './interactive.js'
16
16
  import { frozen } from './parts.js'
17
17
 
18
18
  /** Four tiles, the last turned on its corner: what is made to be used. */
19
19
  const GLYPH = icon(svg`<rect x="4" y="4" width="6.5" height="6.5" rx="1.5"/><rect x="4" y="13.5" width="6.5" height="6.5" rx="1.5"/><rect x="13.5" y="13.5" width="6.5" height="6.5" rx="1.5"/><g transform="rotate(45 16.75 7.25)"><rect x="14" y="4.5" width="5.5" height="5.5" rx="1.5"/></g>`, 'flip-rtl')
20
- /** What a page calls itself, as text: its title, else its first heading. @param {string} source */
21
- const named = (source) => ((/<title[^>]*>([^<]*)</i.exec(source) ?? /<h[12][^>]*>([\s\S]*?)<\/h[12]>/i.exec(source))?.[1] ?? '')
22
- .replace(/<[^>]*>/g, '').replaceAll('&amp;', '&').replace(/\s+/g, ' ').trim()
23
20
 
24
21
  const { kept, find, metaOf, pin, rename, hide } = held({ fence: 'html', record: 'app', at: 'app-', latest: true, named, extension: 'html', mimeType: 'text/html' })
25
22
  /** An app's page as the pane's Download gives it, what it shows of the project's collections written in (D633). @param {string} uri */
@@ -41,7 +38,7 @@ export const apps = { id: 'apps', at: 6, draw: () => GLYPH, kept,
41
38
  * What an app can do (ui/out.js): a link holds its page as an answer's does, the system's sheet and Download its page on its own, and paper what it shows now.
42
39
  * @param {{ uri: string, name: string, title: string }} file @param {Element} pane @returns {import('../../ui/out.js').Ways}
43
40
  */
44
- const ways = (file, pane) => ({ share: async () => ({ text: `\`\`\`html\n${(await find(file.uri))?.source ?? ''}\n\`\`\`` }),
41
+ const ways = (file, pane) => ({ share: async () => ({ text: `\`\`\`html\n${(await find(file.uri))?.source ?? ''}\n\`\`\`` }), page: () => bytesOf(file.uri),
45
42
  send: { file: file.name, type: 'text/html', make: async () => ({ title: file.title, files: [new File([await bytesOf(file.uri)], file.name, { type: 'text/html' })] }) },
46
43
  files: [{ id: '', glyph: icons.download, label: t('out.webPage'), run: async () => (await import('../../ui/preview.js')).download(file) }],
47
44
  print: { id: 'print', run: async () => (await import('../made/paper.js')).printPage(/** @type {HTMLElement} */ (pane.querySelector('.view .prose'))) } })
@@ -174,7 +174,7 @@ function tones(style) {
174
174
  let worker
175
175
  let count = 0
176
176
  const asked = /** @type {Map<number, { source: string, options: object, resolve: (drawn: Drawn) => void, reject: (error: Error) => void }>} */ (new Map())
177
- /** Pele beside the page. @type {Promise<any> | undefined} */
177
+ /** Pele beside the page. @type {Promise<typeof import('pele/lazy')> | undefined} */
178
178
  let here
179
179
 
180
180
  /** Mermaid as Pele draws it. @param {string} source @param {object} options @returns {Promise<Drawn>} */
@@ -11,7 +11,7 @@ app-page iframe { display: block; box-sizing: content-box; inline-size: 100%; bl
11
11
  (ui/style.css's --column), centred on it and never narrower than it, as Layouts' wide tables do (--shell, D215). */
12
12
  app-parts { position: relative; display: block; container-type: inline-size; padding: 0.75rem 0.85rem; border: 1px solid var(--line); border-radius: 0.9rem; margin-block: 0 0.85rem; } @media screen { main .prose > app-parts { --wide: max(100cqi, min(var(--shell) - 2.5rem, 64rem)); margin-inline: calc((100cqi - var(--wide)) / 2); } }
13
13
  app-parts .part-cards { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block-end: 0.85rem; } app-parts .part-cards > * { flex: 1 1 15rem; } app-parts .part-card.wide { flex-basis: 100%; }
14
- app-parts .part-card { min-inline-size: 0; padding: 0.75rem 0.85rem; border: 1px solid var(--line); border-radius: calc(var(--radius) * 0.6); } app-parts .part-card > :last-child { margin-block-end: 0; } app-parts .part-card > h4 { margin-block: 0 0.5rem; } app-parts .part-card > :is(app-chart, .diagram, app-page) { padding: 0; border: 0; }
14
+ app-parts .part-card { min-inline-size: 0; padding: 0.75rem 0.85rem; border: 1px solid var(--line); border-radius: calc(var(--radius) * 0.6); } app-parts .part-card > :last-child { margin-block-end: 0; } app-parts .part-card > h4 { margin-block: 0 0.5rem; } app-parts :is(.parts, .part-card) > :is(app-chart, .diagram, app-page) { padding: 0; border: 0; }
15
15
  @container (min-width: 36rem) { app-parts .parts:has(> aside) { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1rem; align-items: start; } }
16
16
  app-parts th .sorts { padding: 0; border: 0; background: none; font-weight: inherit; text-align: inherit; }
17
17
  app-parts .part-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 0.6rem 0.75rem; margin-block-end: 0.85rem; } app-parts .part-form :is(.button, label:has(textarea)) { grid-column: 1 / -1; } app-parts .part-form .button { justify-self: start; }
@@ -39,3 +39,6 @@ app-page:has(> pre) { padding: 0; border: 0; }
39
39
  .mode-chip:hover .icon:last-child { color: var(--ink); }
40
40
  @media (forced-colors: active) { .mode-chip { border-color: Highlight; } }
41
41
  @media (width < 30rem) { .mode-chip span { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); } }
42
+ /* An app played before the turn ends (D689): laid out as a page in an answer is, never seen. */
43
+ .page-test { position: fixed; inset-block-start: 0; inset-inline-start: 0; inline-size: 640px; block-size: 480px; clip-path: inset(50%); pointer-events: none; }
44
+ .page-test iframe { inline-size: 100%; block-size: 100%; border: 0; }
@@ -9,7 +9,8 @@
9
9
  // charts take the room's light or dark. It is as tall as what it shows, or, made to fill a screen
10
10
  // (its root or body as tall as its frame, 100% or 100vh), as tall as a page may be; it speaks to Jean on a click
11
11
  // of the user's only: `sendPrompt(text)` sends the text as the user's next message, as a follow-up
12
- // does, and a link opens in a new tab. With Run its code off, it is code. Copy puts its source on the
12
+ // does, a link opens in a new tab, and a link that saves a file the page made saves it (D158). What it keeps in localStorage
13
+ // is kept for it, by its name, in its task's file of apps (D688), so an app is still as it was left. With Run its code off, it is code. Copy puts its source on the
13
14
  // clipboard. Loaded with the first message, for its rule, then at each visit, so that pages written
14
15
  // before show again, or by the first page a conversation holds. Written again under a new policy,
15
16
  // which a page keeps from its start; a new theme, look or language is put on the page as it is
@@ -27,23 +28,37 @@ import { app, effective, theme, notify, send, updateSettings } from '../../ui/st
27
28
  import { register, drawnActions } from '../../ui/caps.js'
28
29
  import { declared, drawn, PAGES, blocks, lex } from '../../ui/markdown.js'
29
30
  import { pageRights, pagePolicy, pageAllow, mapStyles, PAGE_SANDBOX } from '../../ui/csp.js'
30
- import { copyDrawing } from '../../ui/save.js'
31
+ import { copyDrawing, savePage } from '../../ui/save.js'
31
32
  import { icons } from '../../ui/icons.js'
32
33
  import { styleSheet, still } from '../../ui/sheet.js'
33
34
  import { t, locale, dir, useStrings } from '../../core/i18n.js'
34
35
  import { row, chip, notes } from './mode.js'
35
36
  import { parse } from './parts.js'
37
+ /** @import { Settings } from '../../core/settings.js' */
38
+ /** What goes on to the next hook, and what came of it (core/hooks.js). @typedef {(e?: unknown) => Promise<unknown>} Next */
36
39
 
37
40
  await Promise.all([useStrings('interactive'), styleSheet(new URL('interactive.css', import.meta.url))])
38
41
 
39
42
  /** What it brings, to which ./apps.js adds the apps in the room. */
40
43
  export const capability = {
41
44
  id: 'interactive',
42
- rules: ["Bills, loans, recipes, timezones, quizzes, science: end with a working ```html tool, not code: offline, var(--color-*), import 'echarts', sendPrompt(text)."],
45
+ rules: ["Bills, loans, recipes, timezones, quizzes, science: end with a working ```html tool, not code: offline, var(--color-*), import 'echarts', sendPrompt(text); localStorage keeps, <a download> saves."],
43
46
  // Visual answers as a mode of the box (./mode.js, D300): a row of +, then pressed at the box's foot while it is on.
44
- slots: { add: { at: 6, draw: row }, modes: { at: 0, draw: chip, notes } },
47
+ slots: { add: { at: 3, draw: row }, modes: { at: 0, draw: chip, notes } },
48
+ // A task gone for good takes what its apps kept with it (D688).
49
+ hooks: [{ on: 'record', match: { type: 'removed' }, run: (/** @type {{ all: true, task: string } | { all?: false }} */ e, /** @type {Next} */ next) => { const at = e.all && keptAt(e.task); if (at) app.fs.remove(at).catch(() => {}); return next(e) } },
50
+ // A task duplicated (D230) keeps what its apps kept, as it keeps their answers (D688).
51
+ { on: 'task.start', run: async (/** @type {{ task: string, from?: { path: string } }} */ e, /** @type {Next} */ next) => { const [was, now] = [keptAt(e.from?.path ?? ''), keptAt(e.task)], kept = was && now && (await app.fs.read(was).catch(() => null)); if (kept && now) await app.fs.write(now, kept); return next(e) } },
52
+ // An answer's pages with a script, played out of sight before the turn ends; what broke goes back to the brain (./test.js, D689).
53
+ { on: 'turn.answer', run: async (/** @type {{ text: string, task?: string, signal?: AbortSignal }} */ e, /** @type {Next} */ next) => (rights.peek().allows.scripts && /```html/.test(e.text) && (await (await import('./test.js')).played(e))) || next(e) }],
45
54
  }
46
55
  register(capability)
56
+
57
+ /** What a page calls itself, as text: its title, else its first heading. @param {string} source */
58
+ export const named = (source) => ((/<title[^>]*>([^<]*)</i.exec(source) ?? /<h[12][^>]*>([\s\S]*?)<\/h[12]>/i.exec(source))?.[1] ?? '')
59
+ .replace(/<[^>]*>/g, '').replaceAll('&amp;', '&').replace(/\s+/g, ' ').trim()
60
+ /** Where a task's apps keep what they keep, each by its name: `apps/<its ULID>.json` beside its project's conversations (D688). @param {string} task */
61
+ export const keptAt = (task) => (/\/conversations\/[^/]+\.jsonl$/.test(task) ? task.replace(/conversations\/([^/]+)\.jsonl$/, 'apps/$1.json') : null)
47
62
  // A page, a diagram or a map needs no skill to declare it (D289, D291): they stay among the kinds drawn, however often the room's skills are read again.
48
63
  effect(() => { if (PAGES.some((kind) => !declared.value.has(kind))) declared.value = new Set([...declared.value, ...PAGES]) })
49
64
 
@@ -77,7 +92,7 @@ const ALIASES = Object.entries({
77
92
  * @type {Promise<{ text: string, url: string }> | undefined}
78
93
  */
79
94
  let echarts
80
- const library = () => (echarts ??= fetch(new URL('../../vendor/echarts/echarts.mjs', import.meta.url)).then((response) => response.text()).then((text) => {
95
+ export const library = () => (echarts ??= fetch(new URL('../../vendor/echarts/echarts.mjs', import.meta.url)).then((response) => response.text()).then((text) => {
81
96
  const names = (/export\s*\{([^}]*)\}\s*;?\s*$/.exec(text)?.[1] ?? '').split(',').map((name) => name.trim().split(/\s+as\s+/).pop()).filter((name) => /^\w+$/.test(String(name)) && name !== 'init')
82
97
  const stand = `const text = await new Promise((resolve) => { addEventListener('message', function got({ data, source }) { if (source === parent && typeof data?.echarts === 'string') removeEventListener('message', got), resolve(data.echarts) }); parent.postMessage({ need: 'echarts' }, '*') })
83
98
  const m = await import(URL.createObjectURL(new Blob([text], { type: 'text/javascript' })))
@@ -111,11 +126,11 @@ export default { ...m, init }`
111
126
  /** What a page is lent when it holds one, each read once: Jean's diagrams and maps, and MapLibre for the maps. @type {Map<string, Promise<string>>} */
112
127
  const parts = new Map()
113
128
  /** @param {string} path */
114
- const part = (path) => parts.get(path) ?? /** @type {Promise<string>} */ (parts.set(path, fetch(new URL(path, import.meta.url)).then((response) => response.text())).get(path))
115
- const LENT = /** @type {Record<string, string>} */ ({ diagram: './page-diagram.js', map: './map.js' })
129
+ export const part = (path) => parts.get(path) ?? /** @type {Promise<string>} */ (parts.set(path, fetch(new URL(path, import.meta.url)).then((response) => response.text())).get(path))
130
+ export const LENT = /** @type {Record<string, string>} */ ({ diagram: './page-diagram.js', map: './map.js' })
116
131
 
117
132
  /** The map service's styles, light and dark, and the addresses that may be fetched for a map: theirs. */
118
- const styles = () => mapStyles(/** @type {any} */ (effective.peek().settings), app.policy)
133
+ const styles = () => mapStyles(effective.peek().settings, app.policy)
119
134
  const mapSites = () => Object.values(styles()).map((address) => new URL(address).origin)
120
135
 
121
136
  // Each component a page holds is asked for as it appears, and lent then; the rest isn't.
@@ -147,7 +162,7 @@ function room(style) {
147
162
  * its <main> and <aside> side by side on a wide screen.
148
163
  * @param {CSSStyleDeclaration} style @param {string} charts the address of ECharts' stand-in
149
164
  */
150
- function head(style, charts) {
165
+ export function head(style, charts) {
151
166
  const { lang, dir, theme, look, motion, css } = room(style)
152
167
  return /* html */ `<html lang="${lang}" dir="${dir}" data-theme="${theme}" data-look="${look}" data-motion="${motion}"><script type="importmap">${JSON.stringify({ imports: { echarts: charts } })}</script>${LOADER}<style>${css}</style>${ROOM}<style>
153
168
  :root { --border-radius-md: calc(var(--border-radius-lg) / 2) !important; accent-color: var(--color-ring-primary); }
@@ -177,6 +192,10 @@ class AppPage extends HTMLElement {
177
192
  whole = false
178
193
  /** @type {(() => void) | undefined} */
179
194
  unwatch
195
+ /** Where what it keeps is kept, and its name there; none in a saved copy, which holds no project. @type {[string, string] | null} */
196
+ kept = null
197
+ /** @type {ReturnType<typeof setTimeout> | undefined} */
198
+ keeping
180
199
 
181
200
  connectedCallback() {
182
201
  addEventListener('message', this.heard)
@@ -241,7 +260,10 @@ class AppPage extends HTMLElement {
241
260
  const { url } = await library()
242
261
  const now = this.text()
243
262
  const open = this.hasAttribute('open')
244
- frame.contentWindow?.postMessage({ page: head(getComputedStyle(this), url) + now, policy, open }, '*')
263
+ const at = RELAY === null && app.projectDir && !this.hasAttribute('map') ? keptAt(this.getAttribute('task')?.replace(/#.*/, '') || app.current.peek()?.path || '') : null
264
+ this.kept = at ? [at, named(now)] : null
265
+ const storage = at ? JSON.parse((await app.fs.read(at).catch(() => null)) ?? '{}').apps?.[named(now)] ?? {} : {}
266
+ frame.contentWindow?.postMessage({ page: head(getComputedStyle(this), url) + now, policy, open, storage }, '*')
245
267
  this.written = now
246
268
  this.whole = !open
247
269
  } }
@@ -290,12 +312,29 @@ class AppPage extends HTMLElement {
290
312
  else if (typeof data?.diagram === 'string') void import('./diagram.js').then(({ picture }) => picture(data.diagram, this, Number(data.width) || this.clientWidth)).then(({ url, words }) => answer({ picture: url, words }), () => answer({}))
291
313
  else if (data?.need === 'maplibre') void this.maps().then(answer)
292
314
  else if (typeof data?.fetch === 'string') void this.fetched(data.fetch).then(({ bytes, error }) => answer({ bytes, error }, bytes ? [bytes.buffer] : []))
315
+ else if (data?.storage && typeof data.storage === 'object') this.keep(data.storage)
316
+ else if (data?.save instanceof Blob) savePage(data, rights.peek().allows.downloads)
293
317
  else if (navigator.userActivation?.isActive === false) return
294
318
  else if (data?.allow === 'maps') void this.allow().then((allowed) => answer({ allowed }))
295
319
  else if (typeof data?.prompt === 'string' && data.prompt.trim() && !app.busy.peek()) send(data.prompt.trim().slice(0, 2000))
296
320
  else if (typeof data?.open === 'string' && /^https:\/\//i.test(data.open)) window.open(data.open, '_blank', 'noopener')
297
321
  }
298
322
 
323
+ /**
324
+ * What it keeps in localStorage, kept a moment after its last change, beside what its task's other apps keep;
325
+ * past 256 KB, nothing more is kept. @param {object} storage
326
+ */
327
+ keep(storage) {
328
+ const kept = this.kept
329
+ clearTimeout(this.keeping)
330
+ if (kept) this.keeping = setTimeout(async () => {
331
+ const own = Object.fromEntries(Object.entries(storage).map(([key, value]) => [String(key), String(value)]))
332
+ if (JSON.stringify(own).length > 262144) return
333
+ const all = JSON.parse((await app.fs.read(kept[0]).catch(() => null)) ?? '{}')
334
+ await app.fs.write(kept[0], JSON.stringify({ format: 1, apps: { ...all.apps, [kept[1]]: own } }))
335
+ }, 300)
336
+ }
337
+
299
338
  /** MapLibre, its worker and its style sheet, the styles for light and dark, and whether maps are allowed; the words its card asks with. */
300
339
  async maps() {
301
340
  const [library, worker, css] = await Promise.all(['maplibre-gl.mjs', 'maplibre-gl-worker.js', 'maplibre-gl.css'].map((file) => part(`../../vendor/maplibre/${file}`)))
@@ -307,7 +346,7 @@ class AppPage extends HTMLElement {
307
346
  /** Maps allowed, from now on, unless the organisation says otherwise. */
308
347
  async allow() {
309
348
  const { allows, locked } = rights.peek()
310
- if (!allows.maps && !locked.has('maps')) await updateSettings({ pages: /** @type {any} */ ({ ...app.settings.peek().pages, maps: true }) })
349
+ if (!allows.maps && !locked.has('maps')) await updateSettings({ pages: { ...app.settings.peek().pages, maps: true } })
311
350
  return rights.peek().allows.maps
312
351
  }
313
352
 
@@ -9,7 +9,7 @@ import { compile } from '../tables/formula.js'
9
9
  import { all, form, lines, number, split, table } from './parts.js'
10
10
 
11
11
  /** @import { Part } from './parts.js' */
12
- /** What a form's fields, what they work out and a table's sums hold, by their names. @typedef {Record<string, any>} Cells */
12
+ /** What a form's fields, what they work out and a table's sums hold, by their names. @typedef {Record<string, unknown>} Cells */
13
13
 
14
14
  const FORMULA = /\{([^{}]+)\}/g, HOLDS = /\{[^{}]+\}/, LIST = /\s*[,،、]\s*/
15
15
  /** The parts whose lines may hold a formula: a diagram's braces are its own. */
@@ -41,7 +41,7 @@ export function shared(parts, { given, added, lang, locales }) {
41
41
  const reader = (/** @type {string} */ text) => { try { return compile(text.replace(/[{}]/g, ''), columns) } catch { return () => NaN } }
42
42
  /** What a formula comes to; NaN where it can't be read or worked out. @param {string} text @param {Cells} cells */
43
43
  const value = (text, cells) => /** @type {(cells: Cells) => any} */ (readers.get(text) ?? readers.set(text, reader(text)).get(text))(cells)
44
- /** A result in the page's words. @param {any} got @param {string} [digits] @param {boolean} [bare] with no marks between thousands */
44
+ /** A result in the page's words. @param {unknown} got @param {string} [digits] @param {boolean} [bare] with no marks between thousands */
45
45
  const said = (got, digits, bare) => (typeof got === 'boolean' ? (got ? '✓' : '') : typeof got !== 'number' ? String(got) : !Number.isFinite(got) ? '—' : /** @type {Intl.NumberFormat} */ (formats.get(`${digits}${bare}`)
46
46
  ?? formats.set(`${digits}${bare}`, new Intl.NumberFormat(locales, { maximumFractionDigits: digits ? Number(digits) : 2, minimumFractionDigits: digits ? Number(digits) : 0, useGrouping: !bare, signDisplay: 'negative' })).get(`${digits}${bare}`)).format(got))
47
47
  /** A line with each formula worked out, an `each`'s own name as it is written. @param {string} line @param {Cells} cells @param {string} [name] */
@@ -50,7 +50,7 @@ export function shared(parts, { given, added, lang, locales }) {
50
50
  : /^(number|range)$/.test(kind) ? (raw === '' ? NaN : number(raw, lang, true)) : read(raw)])(given.get(label) ?? (start || choices?.[0] || '')))))
51
51
  /** The fields, the tables' sums, and each value worked out, as often as there are values, so that one written before what it reads sees it. @param {Cells} [extra] */
52
52
  const work = (extra) => { const cells = { ...base, ...extra }; for (const _ of worked) for (const [name, text] of worked) cells[name] = value(text, cells); return cells }
53
- /** The name an `each` gives, and the values it goes over: `from..to..step`, or a list. @param {string} each @returns {[string, any[]]} */
53
+ /** The name an `each` gives, and the values it goes over: `from..to..step`, or a list. @param {string} each @returns {[string, unknown[]]} */
54
54
  const steps = (each) => {
55
55
  const [name, over] = split(each, '='), cells = work(), [from, to, by = 1] = over.split('..').map((text) => value(text, cells))
56
56
  return [name, !over.includes('..') ? over.split(LIST).map(read) : by > 0 ? Array.from({ length: Math.min(MOST, Math.max(0, Math.floor((to - from) / by + 1e-9) + 1 || 0)) }, (_, i) => from + i * by) : []]
@@ -87,7 +87,7 @@ export function shared(parts, { given, added, lang, locales }) {
87
87
  if (drawn) return { ...part, text: [drawn.heads, ...drawn.rows].map((row) => row.join(' | ')).join('\n') }
88
88
  if (!live) return part
89
89
  if (part.tag === 'app-card') return { ...part, attrs: { ...part.attrs, heading: spell(part.attrs.heading ?? '', cells) } }
90
- if (part.tag === 'app-chart') return { ...part, text: from ? tally(part, /** @type {any} */ (shown.get(from))) : lines(part).map((line, i) => (i ? spelled(line, (text, digits) => plain(value(text, cells), digits)) : spell(line, cells))).join('\n') }
90
+ if (part.tag === 'app-chart') return { ...part, text: from ? tally(part, /** @type {ReturnType<typeof tabled>} */ (shown.get(from))) : lines(part).map((line, i) => (i ? spelled(line, (text, digits) => plain(value(text, cells), digits)) : spell(line, cells))).join('\n') }
91
91
  return SPELLED.includes(part.tag) ? { ...part, text: spell(part.text, cells) } : part
92
92
  }
93
93
  const now = () => [...fields.map(({ label }) => [label, base[label]]), ...worked.map(([name]) => [name, cells[name]])].map(([name, held]) => [name, typeof held === 'number' ? plain(held) : held]).filter(([, held]) => held !== '').map(([name, held]) => `${name}: ${held}`)