@jean-is/render 0.0.0-stage → 0.8.0-ra7be83a699f8
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.
- package/LICENSE +21 -0
- package/README.md +2 -2
- package/caps/charts/charts.css +12 -0
- package/caps/charts/charts.js +154 -0
- package/caps/charts/option.js +141 -0
- package/caps/interactive/diagram.js +415 -0
- package/caps/interactive/interactive.css +21 -0
- package/caps/interactive/interactive.js +345 -0
- package/caps/interactive/map.js +183 -0
- package/caps/interactive/mode.js +54 -0
- package/caps/layouts/layouts.css +179 -0
- package/caps/layouts/layouts.js +147 -0
- package/caps/layouts/shapes.js +159 -0
- package/caps/math/latex.js +88 -0
- package/caps/math/math.css +24 -0
- package/caps/math/math.js +117 -0
- package/caps/scores/notes.js +30 -0
- package/caps/scores/scores.css +22 -0
- package/caps/scores/scores.js +287 -0
- package/caps/scores/sound-worker.js +12 -0
- package/caps/scores/sound.js +72 -0
- package/caps/share/seal.js +86 -0
- package/caps/share/view.js +153 -0
- package/caps/skills/directory.js +57 -0
- package/caps/skills/sources.js +281 -0
- package/caps/slides/deck.js +69 -0
- package/caps/slides/slides.css +38 -0
- package/caps/slides/slides.js +122 -0
- package/core/anthropic.js +253 -0
- package/core/deferred.js +48 -0
- package/core/events.js +166 -0
- package/core/files.js +277 -0
- package/core/fs.js +186 -0
- package/core/hooks.js +53 -0
- package/core/i18n.js +151 -0
- package/core/llm.js +383 -0
- package/core/loop.js +452 -0
- package/core/rules.js +52 -0
- package/core/search.js +158 -0
- package/core/settings.js +221 -0
- package/core/skills.js +90 -0
- package/core/sse.js +51 -0
- package/core/ulid.js +17 -0
- package/core/zip.js +165 -0
- package/fonts/OFL.txt +94 -0
- package/fonts/display.woff2 +0 -0
- package/locales/am.json +395 -0
- package/locales/ar.json +427 -0
- package/locales/ask/am.json +8 -0
- package/locales/ask/ar.json +8 -0
- package/locales/ask/bn.json +8 -0
- package/locales/ask/de.json +8 -0
- package/locales/ask/en.json +8 -0
- package/locales/ask/es.json +8 -0
- package/locales/ask/fa.json +8 -0
- package/locales/ask/fr.json +8 -0
- package/locales/ask/ha.json +8 -0
- package/locales/ask/he.json +8 -0
- package/locales/ask/hi.json +8 -0
- package/locales/ask/id.json +8 -0
- package/locales/ask/it.json +8 -0
- package/locales/ask/ja.json +8 -0
- package/locales/ask/ko.json +8 -0
- package/locales/ask/mr.json +8 -0
- package/locales/ask/ms.json +8 -0
- package/locales/ask/nl.json +8 -0
- package/locales/ask/pl.json +8 -0
- package/locales/ask/pt.json +8 -0
- package/locales/ask/ru.json +8 -0
- package/locales/ask/sw.json +8 -0
- package/locales/ask/ta.json +8 -0
- package/locales/ask/te.json +8 -0
- package/locales/ask/th.json +8 -0
- package/locales/ask/tl.json +8 -0
- package/locales/ask/tr.json +8 -0
- package/locales/ask/uk.json +8 -0
- package/locales/ask/ur.json +8 -0
- package/locales/ask/vi.json +8 -0
- package/locales/ask/yo.json +8 -0
- package/locales/ask/zh-Hans.json +8 -0
- package/locales/ask/zh-Hant.json +8 -0
- package/locales/backup/am.json +8 -0
- package/locales/backup/ar.json +12 -0
- package/locales/backup/bn.json +8 -0
- package/locales/backup/de.json +8 -0
- package/locales/backup/en.json +8 -0
- package/locales/backup/es.json +9 -0
- package/locales/backup/fa.json +8 -0
- package/locales/backup/fr.json +9 -0
- package/locales/backup/ha.json +8 -0
- package/locales/backup/he.json +10 -0
- package/locales/backup/hi.json +8 -0
- package/locales/backup/id.json +7 -0
- package/locales/backup/it.json +9 -0
- package/locales/backup/ja.json +7 -0
- package/locales/backup/ko.json +7 -0
- package/locales/backup/mr.json +8 -0
- package/locales/backup/ms.json +7 -0
- package/locales/backup/nl.json +8 -0
- package/locales/backup/pl.json +10 -0
- package/locales/backup/pt.json +9 -0
- package/locales/backup/ru.json +10 -0
- package/locales/backup/sw.json +8 -0
- package/locales/backup/ta.json +8 -0
- package/locales/backup/te.json +8 -0
- package/locales/backup/th.json +7 -0
- package/locales/backup/tl.json +8 -0
- package/locales/backup/tr.json +8 -0
- package/locales/backup/uk.json +10 -0
- package/locales/backup/ur.json +8 -0
- package/locales/backup/vi.json +7 -0
- package/locales/backup/yo.json +7 -0
- package/locales/backup/zh-Hans.json +7 -0
- package/locales/backup/zh-Hant.json +7 -0
- package/locales/bn.json +395 -0
- package/locales/brain-local/am.json +13 -0
- package/locales/brain-local/ar.json +13 -0
- package/locales/brain-local/bn.json +13 -0
- package/locales/brain-local/de.json +13 -0
- package/locales/brain-local/en.json +13 -0
- package/locales/brain-local/es.json +13 -0
- package/locales/brain-local/fa.json +13 -0
- package/locales/brain-local/fr.json +13 -0
- package/locales/brain-local/ha.json +13 -0
- package/locales/brain-local/he.json +13 -0
- package/locales/brain-local/hi.json +13 -0
- package/locales/brain-local/id.json +13 -0
- package/locales/brain-local/it.json +13 -0
- package/locales/brain-local/ja.json +13 -0
- package/locales/brain-local/ko.json +13 -0
- package/locales/brain-local/mr.json +13 -0
- package/locales/brain-local/ms.json +13 -0
- package/locales/brain-local/nl.json +13 -0
- package/locales/brain-local/pl.json +13 -0
- package/locales/brain-local/pt.json +13 -0
- package/locales/brain-local/ru.json +13 -0
- package/locales/brain-local/sw.json +13 -0
- package/locales/brain-local/ta.json +13 -0
- package/locales/brain-local/te.json +13 -0
- package/locales/brain-local/th.json +13 -0
- package/locales/brain-local/tl.json +13 -0
- package/locales/brain-local/tr.json +13 -0
- package/locales/brain-local/uk.json +13 -0
- package/locales/brain-local/ur.json +13 -0
- package/locales/brain-local/vi.json +13 -0
- package/locales/brain-local/yo.json +13 -0
- package/locales/brain-local/zh-Hans.json +13 -0
- package/locales/brain-local/zh-Hant.json +13 -0
- package/locales/browser/am.json +29 -0
- package/locales/browser/ar.json +29 -0
- package/locales/browser/bn.json +29 -0
- package/locales/browser/de.json +29 -0
- package/locales/browser/en.json +29 -0
- package/locales/browser/es.json +29 -0
- package/locales/browser/fa.json +29 -0
- package/locales/browser/fr.json +29 -0
- package/locales/browser/ha.json +29 -0
- package/locales/browser/he.json +29 -0
- package/locales/browser/hi.json +29 -0
- package/locales/browser/id.json +29 -0
- package/locales/browser/it.json +29 -0
- package/locales/browser/ja.json +29 -0
- package/locales/browser/ko.json +29 -0
- package/locales/browser/mr.json +29 -0
- package/locales/browser/ms.json +29 -0
- package/locales/browser/nl.json +29 -0
- package/locales/browser/pl.json +29 -0
- package/locales/browser/pt.json +29 -0
- package/locales/browser/ru.json +29 -0
- package/locales/browser/sw.json +29 -0
- package/locales/browser/ta.json +29 -0
- package/locales/browser/te.json +29 -0
- package/locales/browser/th.json +29 -0
- package/locales/browser/tl.json +29 -0
- package/locales/browser/tr.json +29 -0
- package/locales/browser/uk.json +29 -0
- package/locales/browser/ur.json +29 -0
- package/locales/browser/vi.json +29 -0
- package/locales/browser/yo.json +29 -0
- package/locales/browser/zh-Hans.json +29 -0
- package/locales/browser/zh-Hant.json +29 -0
- package/locales/certificates/am.json +54 -0
- package/locales/certificates/ar.json +54 -0
- package/locales/certificates/bn.json +54 -0
- package/locales/certificates/de.json +54 -0
- package/locales/certificates/en.json +54 -0
- package/locales/certificates/es.json +54 -0
- package/locales/certificates/fa.json +54 -0
- package/locales/certificates/fr.json +54 -0
- package/locales/certificates/ha.json +54 -0
- package/locales/certificates/he.json +54 -0
- package/locales/certificates/hi.json +54 -0
- package/locales/certificates/id.json +54 -0
- package/locales/certificates/it.json +54 -0
- package/locales/certificates/ja.json +54 -0
- package/locales/certificates/ko.json +54 -0
- package/locales/certificates/mr.json +54 -0
- package/locales/certificates/ms.json +54 -0
- package/locales/certificates/nl.json +54 -0
- package/locales/certificates/pl.json +54 -0
- package/locales/certificates/pt.json +54 -0
- package/locales/certificates/ru.json +54 -0
- package/locales/certificates/sw.json +54 -0
- package/locales/certificates/ta.json +54 -0
- package/locales/certificates/te.json +54 -0
- package/locales/certificates/th.json +54 -0
- package/locales/certificates/tl.json +54 -0
- package/locales/certificates/tr.json +54 -0
- package/locales/certificates/uk.json +54 -0
- package/locales/certificates/ur.json +54 -0
- package/locales/certificates/vi.json +54 -0
- package/locales/certificates/yo.json +54 -0
- package/locales/certificates/zh-Hans.json +54 -0
- package/locales/certificates/zh-Hant.json +54 -0
- package/locales/charts/am.json +5 -0
- package/locales/charts/ar.json +5 -0
- package/locales/charts/bn.json +5 -0
- package/locales/charts/de.json +5 -0
- package/locales/charts/en.json +5 -0
- package/locales/charts/es.json +5 -0
- package/locales/charts/fa.json +5 -0
- package/locales/charts/fr.json +5 -0
- package/locales/charts/ha.json +5 -0
- package/locales/charts/he.json +5 -0
- package/locales/charts/hi.json +5 -0
- package/locales/charts/id.json +5 -0
- package/locales/charts/it.json +5 -0
- package/locales/charts/ja.json +5 -0
- package/locales/charts/ko.json +5 -0
- package/locales/charts/mr.json +5 -0
- package/locales/charts/ms.json +5 -0
- package/locales/charts/nl.json +5 -0
- package/locales/charts/pl.json +5 -0
- package/locales/charts/pt.json +5 -0
- package/locales/charts/ru.json +5 -0
- package/locales/charts/sw.json +5 -0
- package/locales/charts/ta.json +5 -0
- package/locales/charts/te.json +5 -0
- package/locales/charts/th.json +5 -0
- package/locales/charts/tl.json +5 -0
- package/locales/charts/tr.json +5 -0
- package/locales/charts/uk.json +5 -0
- package/locales/charts/ur.json +5 -0
- package/locales/charts/vi.json +5 -0
- package/locales/charts/yo.json +5 -0
- package/locales/charts/zh-Hans.json +5 -0
- package/locales/charts/zh-Hant.json +5 -0
- package/locales/compact/am.json +7 -0
- package/locales/compact/ar.json +7 -0
- package/locales/compact/bn.json +7 -0
- package/locales/compact/de.json +7 -0
- package/locales/compact/en.json +7 -0
- package/locales/compact/es.json +7 -0
- package/locales/compact/fa.json +7 -0
- package/locales/compact/fr.json +7 -0
- package/locales/compact/ha.json +7 -0
- package/locales/compact/he.json +7 -0
- package/locales/compact/hi.json +7 -0
- package/locales/compact/id.json +7 -0
- package/locales/compact/it.json +7 -0
- package/locales/compact/ja.json +7 -0
- package/locales/compact/ko.json +7 -0
- package/locales/compact/mr.json +7 -0
- package/locales/compact/ms.json +7 -0
- package/locales/compact/nl.json +7 -0
- package/locales/compact/pl.json +7 -0
- package/locales/compact/pt.json +7 -0
- package/locales/compact/ru.json +7 -0
- package/locales/compact/sw.json +7 -0
- package/locales/compact/ta.json +7 -0
- package/locales/compact/te.json +7 -0
- package/locales/compact/th.json +7 -0
- package/locales/compact/tl.json +7 -0
- package/locales/compact/tr.json +7 -0
- package/locales/compact/uk.json +7 -0
- package/locales/compact/ur.json +7 -0
- package/locales/compact/vi.json +7 -0
- package/locales/compact/yo.json +7 -0
- package/locales/compact/zh-Hans.json +7 -0
- package/locales/compact/zh-Hant.json +7 -0
- package/locales/computer/am.json +61 -0
- package/locales/computer/ar.json +69 -0
- package/locales/computer/bn.json +61 -0
- package/locales/computer/de.json +61 -0
- package/locales/computer/en.json +61 -0
- package/locales/computer/es.json +63 -0
- package/locales/computer/fa.json +61 -0
- package/locales/computer/fr.json +63 -0
- package/locales/computer/ha.json +61 -0
- package/locales/computer/he.json +63 -0
- package/locales/computer/hi.json +61 -0
- package/locales/computer/id.json +59 -0
- package/locales/computer/it.json +63 -0
- package/locales/computer/ja.json +59 -0
- package/locales/computer/ko.json +59 -0
- package/locales/computer/mr.json +61 -0
- package/locales/computer/ms.json +59 -0
- package/locales/computer/nl.json +61 -0
- package/locales/computer/pl.json +65 -0
- package/locales/computer/pt.json +63 -0
- package/locales/computer/ru.json +65 -0
- package/locales/computer/sw.json +61 -0
- package/locales/computer/ta.json +61 -0
- package/locales/computer/te.json +61 -0
- package/locales/computer/th.json +59 -0
- package/locales/computer/tl.json +61 -0
- package/locales/computer/tr.json +61 -0
- package/locales/computer/uk.json +65 -0
- package/locales/computer/ur.json +61 -0
- package/locales/computer/vi.json +59 -0
- package/locales/computer/yo.json +59 -0
- package/locales/computer/zh-Hans.json +59 -0
- package/locales/computer/zh-Hant.json +59 -0
- package/locales/connections/am.json +14 -0
- package/locales/connections/ar.json +14 -0
- package/locales/connections/bn.json +14 -0
- package/locales/connections/de.json +14 -0
- package/locales/connections/en.json +14 -0
- package/locales/connections/es.json +14 -0
- package/locales/connections/fa.json +14 -0
- package/locales/connections/fr.json +14 -0
- package/locales/connections/ha.json +14 -0
- package/locales/connections/he.json +14 -0
- package/locales/connections/hi.json +14 -0
- package/locales/connections/id.json +14 -0
- package/locales/connections/it.json +14 -0
- package/locales/connections/ja.json +14 -0
- package/locales/connections/ko.json +14 -0
- package/locales/connections/mr.json +14 -0
- package/locales/connections/ms.json +14 -0
- package/locales/connections/nl.json +14 -0
- package/locales/connections/pl.json +14 -0
- package/locales/connections/pt.json +14 -0
- package/locales/connections/ru.json +14 -0
- package/locales/connections/sw.json +14 -0
- package/locales/connections/ta.json +14 -0
- package/locales/connections/te.json +14 -0
- package/locales/connections/th.json +14 -0
- package/locales/connections/tl.json +14 -0
- package/locales/connections/tr.json +14 -0
- package/locales/connections/uk.json +14 -0
- package/locales/connections/ur.json +14 -0
- package/locales/connections/vi.json +14 -0
- package/locales/connections/yo.json +14 -0
- package/locales/connections/zh-Hans.json +14 -0
- package/locales/connections/zh-Hant.json +14 -0
- package/locales/de.json +395 -0
- package/locales/dialogs/am.json +347 -0
- package/locales/dialogs/ar.json +359 -0
- package/locales/dialogs/bn.json +347 -0
- package/locales/dialogs/de.json +347 -0
- package/locales/dialogs/en.json +347 -0
- package/locales/dialogs/es.json +350 -0
- package/locales/dialogs/fa.json +347 -0
- package/locales/dialogs/fr.json +350 -0
- package/locales/dialogs/ha.json +347 -0
- package/locales/dialogs/he.json +352 -0
- package/locales/dialogs/hi.json +347 -0
- package/locales/dialogs/id.json +344 -0
- package/locales/dialogs/it.json +350 -0
- package/locales/dialogs/ja.json +344 -0
- package/locales/dialogs/ko.json +344 -0
- package/locales/dialogs/mr.json +347 -0
- package/locales/dialogs/ms.json +344 -0
- package/locales/dialogs/nl.json +347 -0
- package/locales/dialogs/pl.json +353 -0
- package/locales/dialogs/pt.json +350 -0
- package/locales/dialogs/ru.json +353 -0
- package/locales/dialogs/sw.json +347 -0
- package/locales/dialogs/ta.json +347 -0
- package/locales/dialogs/te.json +347 -0
- package/locales/dialogs/th.json +344 -0
- package/locales/dialogs/tl.json +347 -0
- package/locales/dialogs/tr.json +347 -0
- package/locales/dialogs/uk.json +353 -0
- package/locales/dialogs/ur.json +347 -0
- package/locales/dialogs/vi.json +344 -0
- package/locales/dialogs/yo.json +344 -0
- package/locales/dialogs/zh-Hans.json +344 -0
- package/locales/dialogs/zh-Hant.json +344 -0
- package/locales/en.json +395 -0
- package/locales/enterprise/am.json +20 -0
- package/locales/enterprise/ar.json +20 -0
- package/locales/enterprise/bn.json +20 -0
- package/locales/enterprise/de.json +20 -0
- package/locales/enterprise/en.json +20 -0
- package/locales/enterprise/es.json +20 -0
- package/locales/enterprise/fa.json +20 -0
- package/locales/enterprise/fr.json +20 -0
- package/locales/enterprise/ha.json +20 -0
- package/locales/enterprise/he.json +20 -0
- package/locales/enterprise/hi.json +20 -0
- package/locales/enterprise/id.json +20 -0
- package/locales/enterprise/it.json +20 -0
- package/locales/enterprise/ja.json +20 -0
- package/locales/enterprise/ko.json +20 -0
- package/locales/enterprise/mr.json +20 -0
- package/locales/enterprise/ms.json +20 -0
- package/locales/enterprise/nl.json +20 -0
- package/locales/enterprise/pl.json +20 -0
- package/locales/enterprise/pt.json +20 -0
- package/locales/enterprise/ru.json +20 -0
- package/locales/enterprise/sw.json +20 -0
- package/locales/enterprise/ta.json +20 -0
- package/locales/enterprise/te.json +20 -0
- package/locales/enterprise/th.json +20 -0
- package/locales/enterprise/tl.json +20 -0
- package/locales/enterprise/tr.json +20 -0
- package/locales/enterprise/uk.json +20 -0
- package/locales/enterprise/ur.json +20 -0
- package/locales/enterprise/vi.json +20 -0
- package/locales/enterprise/yo.json +20 -0
- package/locales/enterprise/zh-Hans.json +20 -0
- package/locales/enterprise/zh-Hant.json +20 -0
- package/locales/es.json +403 -0
- package/locales/fa.json +395 -0
- package/locales/first/am.json +26 -0
- package/locales/first/ar.json +26 -0
- package/locales/first/bn.json +26 -0
- package/locales/first/de.json +26 -0
- package/locales/first/en.json +26 -0
- package/locales/first/es.json +26 -0
- package/locales/first/fa.json +26 -0
- package/locales/first/fr.json +26 -0
- package/locales/first/ha.json +26 -0
- package/locales/first/he.json +26 -0
- package/locales/first/hi.json +26 -0
- package/locales/first/id.json +26 -0
- package/locales/first/it.json +26 -0
- package/locales/first/ja.json +26 -0
- package/locales/first/ko.json +26 -0
- package/locales/first/mr.json +26 -0
- package/locales/first/ms.json +26 -0
- package/locales/first/nl.json +26 -0
- package/locales/first/pl.json +26 -0
- package/locales/first/pt.json +26 -0
- package/locales/first/ru.json +26 -0
- package/locales/first/sw.json +26 -0
- package/locales/first/ta.json +26 -0
- package/locales/first/te.json +26 -0
- package/locales/first/th.json +26 -0
- package/locales/first/tl.json +26 -0
- package/locales/first/tr.json +26 -0
- package/locales/first/uk.json +26 -0
- package/locales/first/ur.json +26 -0
- package/locales/first/vi.json +26 -0
- package/locales/first/yo.json +26 -0
- package/locales/first/zh-Hans.json +26 -0
- package/locales/first/zh-Hant.json +26 -0
- package/locales/flows/am.json +51 -0
- package/locales/flows/ar.json +51 -0
- package/locales/flows/bn.json +51 -0
- package/locales/flows/de.json +51 -0
- package/locales/flows/en.json +51 -0
- package/locales/flows/es.json +51 -0
- package/locales/flows/fa.json +51 -0
- package/locales/flows/fr.json +51 -0
- package/locales/flows/ha.json +51 -0
- package/locales/flows/he.json +51 -0
- package/locales/flows/hi.json +51 -0
- package/locales/flows/id.json +51 -0
- package/locales/flows/it.json +51 -0
- package/locales/flows/ja.json +51 -0
- package/locales/flows/ko.json +51 -0
- package/locales/flows/mr.json +51 -0
- package/locales/flows/ms.json +51 -0
- package/locales/flows/nl.json +51 -0
- package/locales/flows/pl.json +51 -0
- package/locales/flows/pt.json +51 -0
- package/locales/flows/ru.json +51 -0
- package/locales/flows/sw.json +51 -0
- package/locales/flows/ta.json +51 -0
- package/locales/flows/te.json +51 -0
- package/locales/flows/th.json +51 -0
- package/locales/flows/tl.json +51 -0
- package/locales/flows/tr.json +51 -0
- package/locales/flows/uk.json +51 -0
- package/locales/flows/ur.json +51 -0
- package/locales/flows/vi.json +51 -0
- package/locales/flows/yo.json +51 -0
- package/locales/flows/zh-Hans.json +51 -0
- package/locales/flows/zh-Hant.json +51 -0
- package/locales/folders/am.json +40 -0
- package/locales/folders/ar.json +44 -0
- package/locales/folders/bn.json +40 -0
- package/locales/folders/de.json +40 -0
- package/locales/folders/en.json +40 -0
- package/locales/folders/es.json +41 -0
- package/locales/folders/fa.json +40 -0
- package/locales/folders/fr.json +41 -0
- package/locales/folders/ha.json +40 -0
- package/locales/folders/he.json +41 -0
- package/locales/folders/hi.json +40 -0
- package/locales/folders/id.json +39 -0
- package/locales/folders/it.json +41 -0
- package/locales/folders/ja.json +39 -0
- package/locales/folders/ko.json +39 -0
- package/locales/folders/mr.json +40 -0
- package/locales/folders/ms.json +39 -0
- package/locales/folders/nl.json +40 -0
- package/locales/folders/pl.json +42 -0
- package/locales/folders/pt.json +41 -0
- package/locales/folders/ru.json +42 -0
- package/locales/folders/sw.json +40 -0
- package/locales/folders/ta.json +40 -0
- package/locales/folders/te.json +40 -0
- package/locales/folders/th.json +39 -0
- package/locales/folders/tl.json +40 -0
- package/locales/folders/tr.json +40 -0
- package/locales/folders/uk.json +42 -0
- package/locales/folders/ur.json +40 -0
- package/locales/folders/vi.json +39 -0
- package/locales/folders/yo.json +39 -0
- package/locales/folders/zh-Hans.json +39 -0
- package/locales/folders/zh-Hant.json +39 -0
- package/locales/fr.json +403 -0
- package/locales/ha.json +395 -0
- package/locales/he.json +410 -0
- package/locales/hi.json +395 -0
- package/locales/id.json +387 -0
- package/locales/interactive/am.json +7 -0
- package/locales/interactive/ar.json +7 -0
- package/locales/interactive/bn.json +7 -0
- package/locales/interactive/de.json +7 -0
- package/locales/interactive/en.json +7 -0
- package/locales/interactive/es.json +7 -0
- package/locales/interactive/fa.json +7 -0
- package/locales/interactive/fr.json +7 -0
- package/locales/interactive/ha.json +7 -0
- package/locales/interactive/he.json +7 -0
- package/locales/interactive/hi.json +7 -0
- package/locales/interactive/id.json +7 -0
- package/locales/interactive/it.json +7 -0
- package/locales/interactive/ja.json +7 -0
- package/locales/interactive/ko.json +7 -0
- package/locales/interactive/mr.json +7 -0
- package/locales/interactive/ms.json +7 -0
- package/locales/interactive/nl.json +7 -0
- package/locales/interactive/pl.json +7 -0
- package/locales/interactive/pt.json +7 -0
- package/locales/interactive/ru.json +7 -0
- package/locales/interactive/sw.json +7 -0
- package/locales/interactive/ta.json +7 -0
- package/locales/interactive/te.json +7 -0
- package/locales/interactive/th.json +7 -0
- package/locales/interactive/tl.json +7 -0
- package/locales/interactive/tr.json +7 -0
- package/locales/interactive/uk.json +7 -0
- package/locales/interactive/ur.json +7 -0
- package/locales/interactive/vi.json +7 -0
- package/locales/interactive/yo.json +7 -0
- package/locales/interactive/zh-Hans.json +7 -0
- package/locales/interactive/zh-Hant.json +7 -0
- package/locales/it.json +403 -0
- package/locales/ja.json +387 -0
- package/locales/ko.json +387 -0
- package/locales/layouts/am.json +9 -0
- package/locales/layouts/ar.json +9 -0
- package/locales/layouts/bn.json +9 -0
- package/locales/layouts/de.json +9 -0
- package/locales/layouts/en.json +9 -0
- package/locales/layouts/es.json +9 -0
- package/locales/layouts/fa.json +9 -0
- package/locales/layouts/fr.json +9 -0
- package/locales/layouts/ha.json +9 -0
- package/locales/layouts/he.json +9 -0
- package/locales/layouts/hi.json +9 -0
- package/locales/layouts/id.json +9 -0
- package/locales/layouts/it.json +9 -0
- package/locales/layouts/ja.json +9 -0
- package/locales/layouts/ko.json +9 -0
- package/locales/layouts/mr.json +9 -0
- package/locales/layouts/ms.json +9 -0
- package/locales/layouts/nl.json +9 -0
- package/locales/layouts/pl.json +9 -0
- package/locales/layouts/pt.json +9 -0
- package/locales/layouts/ru.json +9 -0
- package/locales/layouts/sw.json +9 -0
- package/locales/layouts/ta.json +9 -0
- package/locales/layouts/te.json +9 -0
- package/locales/layouts/th.json +9 -0
- package/locales/layouts/tl.json +9 -0
- package/locales/layouts/tr.json +9 -0
- package/locales/layouts/uk.json +9 -0
- package/locales/layouts/ur.json +9 -0
- package/locales/layouts/vi.json +9 -0
- package/locales/layouts/yo.json +9 -0
- package/locales/layouts/zh-Hans.json +9 -0
- package/locales/layouts/zh-Hant.json +9 -0
- package/locales/lock/am.json +32 -0
- package/locales/lock/ar.json +32 -0
- package/locales/lock/bn.json +32 -0
- package/locales/lock/de.json +32 -0
- package/locales/lock/en.json +32 -0
- package/locales/lock/es.json +32 -0
- package/locales/lock/fa.json +32 -0
- package/locales/lock/fr.json +32 -0
- package/locales/lock/ha.json +32 -0
- package/locales/lock/he.json +32 -0
- package/locales/lock/hi.json +32 -0
- package/locales/lock/id.json +32 -0
- package/locales/lock/it.json +32 -0
- package/locales/lock/ja.json +32 -0
- package/locales/lock/ko.json +32 -0
- package/locales/lock/mr.json +32 -0
- package/locales/lock/ms.json +32 -0
- package/locales/lock/nl.json +32 -0
- package/locales/lock/pl.json +32 -0
- package/locales/lock/pt.json +32 -0
- package/locales/lock/ru.json +32 -0
- package/locales/lock/sw.json +32 -0
- package/locales/lock/ta.json +32 -0
- package/locales/lock/te.json +32 -0
- package/locales/lock/th.json +32 -0
- package/locales/lock/tl.json +32 -0
- package/locales/lock/tr.json +32 -0
- package/locales/lock/uk.json +32 -0
- package/locales/lock/ur.json +32 -0
- package/locales/lock/vi.json +32 -0
- package/locales/lock/yo.json +32 -0
- package/locales/lock/zh-Hans.json +32 -0
- package/locales/lock/zh-Hant.json +32 -0
- package/locales/machine/am.json +19 -0
- package/locales/machine/ar.json +19 -0
- package/locales/machine/bn.json +19 -0
- package/locales/machine/de.json +19 -0
- package/locales/machine/en.json +19 -0
- package/locales/machine/es.json +19 -0
- package/locales/machine/fa.json +19 -0
- package/locales/machine/fr.json +19 -0
- package/locales/machine/ha.json +19 -0
- package/locales/machine/he.json +19 -0
- package/locales/machine/hi.json +19 -0
- package/locales/machine/id.json +19 -0
- package/locales/machine/it.json +19 -0
- package/locales/machine/ja.json +19 -0
- package/locales/machine/ko.json +19 -0
- package/locales/machine/mr.json +19 -0
- package/locales/machine/ms.json +19 -0
- package/locales/machine/nl.json +19 -0
- package/locales/machine/pl.json +19 -0
- package/locales/machine/pt.json +19 -0
- package/locales/machine/ru.json +19 -0
- package/locales/machine/sw.json +19 -0
- package/locales/machine/ta.json +19 -0
- package/locales/machine/te.json +19 -0
- package/locales/machine/th.json +19 -0
- package/locales/machine/tl.json +19 -0
- package/locales/machine/tr.json +19 -0
- package/locales/machine/uk.json +19 -0
- package/locales/machine/ur.json +19 -0
- package/locales/machine/vi.json +19 -0
- package/locales/machine/yo.json +19 -0
- package/locales/machine/zh-Hans.json +19 -0
- package/locales/machine/zh-Hant.json +19 -0
- package/locales/made/am.json +16 -0
- package/locales/made/ar.json +16 -0
- package/locales/made/bn.json +16 -0
- package/locales/made/de.json +16 -0
- package/locales/made/en.json +16 -0
- package/locales/made/es.json +16 -0
- package/locales/made/fa.json +16 -0
- package/locales/made/fr.json +16 -0
- package/locales/made/ha.json +16 -0
- package/locales/made/he.json +16 -0
- package/locales/made/hi.json +16 -0
- package/locales/made/id.json +16 -0
- package/locales/made/it.json +16 -0
- package/locales/made/ja.json +16 -0
- package/locales/made/ko.json +16 -0
- package/locales/made/mr.json +16 -0
- package/locales/made/ms.json +16 -0
- package/locales/made/nl.json +16 -0
- package/locales/made/pl.json +16 -0
- package/locales/made/pt.json +16 -0
- package/locales/made/ru.json +16 -0
- package/locales/made/sw.json +16 -0
- package/locales/made/ta.json +16 -0
- package/locales/made/te.json +16 -0
- package/locales/made/th.json +16 -0
- package/locales/made/tl.json +16 -0
- package/locales/made/tr.json +16 -0
- package/locales/made/uk.json +16 -0
- package/locales/made/ur.json +16 -0
- package/locales/made/vi.json +16 -0
- package/locales/made/yo.json +16 -0
- package/locales/made/zh-Hans.json +16 -0
- package/locales/made/zh-Hant.json +16 -0
- package/locales/mr.json +395 -0
- package/locales/ms.json +387 -0
- package/locales/nl.json +395 -0
- package/locales/notifications/am.json +6 -0
- package/locales/notifications/ar.json +6 -0
- package/locales/notifications/bn.json +6 -0
- package/locales/notifications/de.json +6 -0
- package/locales/notifications/en.json +6 -0
- package/locales/notifications/es.json +6 -0
- package/locales/notifications/fa.json +6 -0
- package/locales/notifications/fr.json +6 -0
- package/locales/notifications/ha.json +6 -0
- package/locales/notifications/he.json +6 -0
- package/locales/notifications/hi.json +6 -0
- package/locales/notifications/id.json +6 -0
- package/locales/notifications/it.json +6 -0
- package/locales/notifications/ja.json +6 -0
- package/locales/notifications/ko.json +6 -0
- package/locales/notifications/mr.json +6 -0
- package/locales/notifications/ms.json +6 -0
- package/locales/notifications/nl.json +6 -0
- package/locales/notifications/pl.json +6 -0
- package/locales/notifications/pt.json +6 -0
- package/locales/notifications/ru.json +6 -0
- package/locales/notifications/sw.json +6 -0
- package/locales/notifications/ta.json +6 -0
- package/locales/notifications/te.json +6 -0
- package/locales/notifications/th.json +6 -0
- package/locales/notifications/tl.json +6 -0
- package/locales/notifications/tr.json +6 -0
- package/locales/notifications/uk.json +6 -0
- package/locales/notifications/ur.json +6 -0
- package/locales/notifications/vi.json +6 -0
- package/locales/notifications/yo.json +6 -0
- package/locales/notifications/zh-Hans.json +6 -0
- package/locales/notifications/zh-Hant.json +6 -0
- package/locales/pictures/am.json +36 -0
- package/locales/pictures/ar.json +36 -0
- package/locales/pictures/bn.json +36 -0
- package/locales/pictures/de.json +36 -0
- package/locales/pictures/en.json +36 -0
- package/locales/pictures/es.json +36 -0
- package/locales/pictures/fa.json +36 -0
- package/locales/pictures/fr.json +36 -0
- package/locales/pictures/ha.json +36 -0
- package/locales/pictures/he.json +36 -0
- package/locales/pictures/hi.json +36 -0
- package/locales/pictures/id.json +36 -0
- package/locales/pictures/it.json +36 -0
- package/locales/pictures/ja.json +36 -0
- package/locales/pictures/ko.json +36 -0
- package/locales/pictures/mr.json +36 -0
- package/locales/pictures/ms.json +36 -0
- package/locales/pictures/nl.json +36 -0
- package/locales/pictures/pl.json +36 -0
- package/locales/pictures/pt.json +36 -0
- package/locales/pictures/ru.json +36 -0
- package/locales/pictures/sw.json +36 -0
- package/locales/pictures/ta.json +36 -0
- package/locales/pictures/te.json +36 -0
- package/locales/pictures/th.json +36 -0
- package/locales/pictures/tl.json +36 -0
- package/locales/pictures/tr.json +36 -0
- package/locales/pictures/uk.json +36 -0
- package/locales/pictures/ur.json +36 -0
- package/locales/pictures/vi.json +36 -0
- package/locales/pictures/yo.json +36 -0
- package/locales/pictures/zh-Hans.json +36 -0
- package/locales/pictures/zh-Hant.json +36 -0
- package/locales/pl.json +411 -0
- package/locales/plan/am.json +13 -0
- package/locales/plan/ar.json +13 -0
- package/locales/plan/bn.json +13 -0
- package/locales/plan/de.json +13 -0
- package/locales/plan/en.json +13 -0
- package/locales/plan/es.json +13 -0
- package/locales/plan/fa.json +13 -0
- package/locales/plan/fr.json +13 -0
- package/locales/plan/ha.json +13 -0
- package/locales/plan/he.json +13 -0
- package/locales/plan/hi.json +13 -0
- package/locales/plan/id.json +13 -0
- package/locales/plan/it.json +13 -0
- package/locales/plan/ja.json +13 -0
- package/locales/plan/ko.json +13 -0
- package/locales/plan/mr.json +13 -0
- package/locales/plan/ms.json +13 -0
- package/locales/plan/nl.json +13 -0
- package/locales/plan/pl.json +13 -0
- package/locales/plan/pt.json +13 -0
- package/locales/plan/ru.json +13 -0
- package/locales/plan/sw.json +13 -0
- package/locales/plan/ta.json +13 -0
- package/locales/plan/te.json +13 -0
- package/locales/plan/th.json +13 -0
- package/locales/plan/tl.json +13 -0
- package/locales/plan/tr.json +13 -0
- package/locales/plan/uk.json +13 -0
- package/locales/plan/ur.json +13 -0
- package/locales/plan/vi.json +13 -0
- package/locales/plan/yo.json +13 -0
- package/locales/plan/zh-Hans.json +13 -0
- package/locales/plan/zh-Hant.json +13 -0
- package/locales/plugins/am.json +40 -0
- package/locales/plugins/ar.json +40 -0
- package/locales/plugins/bn.json +40 -0
- package/locales/plugins/de.json +40 -0
- package/locales/plugins/en.json +40 -0
- package/locales/plugins/es.json +40 -0
- package/locales/plugins/fa.json +40 -0
- package/locales/plugins/fr.json +40 -0
- package/locales/plugins/ha.json +40 -0
- package/locales/plugins/he.json +40 -0
- package/locales/plugins/hi.json +40 -0
- package/locales/plugins/id.json +40 -0
- package/locales/plugins/it.json +40 -0
- package/locales/plugins/ja.json +40 -0
- package/locales/plugins/ko.json +40 -0
- package/locales/plugins/mr.json +40 -0
- package/locales/plugins/ms.json +40 -0
- package/locales/plugins/nl.json +40 -0
- package/locales/plugins/pl.json +40 -0
- package/locales/plugins/pt.json +40 -0
- package/locales/plugins/ru.json +40 -0
- package/locales/plugins/sw.json +40 -0
- package/locales/plugins/ta.json +40 -0
- package/locales/plugins/te.json +40 -0
- package/locales/plugins/th.json +40 -0
- package/locales/plugins/tl.json +40 -0
- package/locales/plugins/tr.json +40 -0
- package/locales/plugins/uk.json +40 -0
- package/locales/plugins/ur.json +40 -0
- package/locales/plugins/vi.json +40 -0
- package/locales/plugins/yo.json +40 -0
- package/locales/plugins/zh-Hans.json +40 -0
- package/locales/plugins/zh-Hant.json +40 -0
- package/locales/policy/am.json +39 -0
- package/locales/policy/ar.json +39 -0
- package/locales/policy/bn.json +39 -0
- package/locales/policy/de.json +39 -0
- package/locales/policy/en.json +39 -0
- package/locales/policy/es.json +39 -0
- package/locales/policy/fa.json +39 -0
- package/locales/policy/fr.json +39 -0
- package/locales/policy/ha.json +39 -0
- package/locales/policy/he.json +39 -0
- package/locales/policy/hi.json +39 -0
- package/locales/policy/id.json +39 -0
- package/locales/policy/it.json +39 -0
- package/locales/policy/ja.json +39 -0
- package/locales/policy/ko.json +39 -0
- package/locales/policy/mr.json +39 -0
- package/locales/policy/ms.json +39 -0
- package/locales/policy/nl.json +39 -0
- package/locales/policy/pl.json +39 -0
- package/locales/policy/pt.json +39 -0
- package/locales/policy/ru.json +39 -0
- package/locales/policy/sw.json +39 -0
- package/locales/policy/ta.json +39 -0
- package/locales/policy/te.json +39 -0
- package/locales/policy/th.json +39 -0
- package/locales/policy/tl.json +39 -0
- package/locales/policy/tr.json +39 -0
- package/locales/policy/uk.json +39 -0
- package/locales/policy/ur.json +39 -0
- package/locales/policy/vi.json +39 -0
- package/locales/policy/yo.json +39 -0
- package/locales/policy/zh-Hans.json +39 -0
- package/locales/policy/zh-Hant.json +39 -0
- package/locales/profiles/am.json +59 -0
- package/locales/profiles/ar.json +59 -0
- package/locales/profiles/bn.json +59 -0
- package/locales/profiles/de.json +59 -0
- package/locales/profiles/en.json +59 -0
- package/locales/profiles/es.json +59 -0
- package/locales/profiles/fa.json +59 -0
- package/locales/profiles/fr.json +59 -0
- package/locales/profiles/ha.json +59 -0
- package/locales/profiles/he.json +59 -0
- package/locales/profiles/hi.json +59 -0
- package/locales/profiles/id.json +59 -0
- package/locales/profiles/it.json +59 -0
- package/locales/profiles/ja.json +59 -0
- package/locales/profiles/ko.json +59 -0
- package/locales/profiles/mr.json +59 -0
- package/locales/profiles/ms.json +59 -0
- package/locales/profiles/nl.json +59 -0
- package/locales/profiles/pl.json +59 -0
- package/locales/profiles/pt.json +59 -0
- package/locales/profiles/ru.json +59 -0
- package/locales/profiles/sw.json +59 -0
- package/locales/profiles/ta.json +59 -0
- package/locales/profiles/te.json +59 -0
- package/locales/profiles/th.json +59 -0
- package/locales/profiles/tl.json +59 -0
- package/locales/profiles/tr.json +59 -0
- package/locales/profiles/uk.json +59 -0
- package/locales/profiles/ur.json +59 -0
- package/locales/profiles/vi.json +59 -0
- package/locales/profiles/yo.json +59 -0
- package/locales/profiles/zh-Hans.json +59 -0
- package/locales/profiles/zh-Hant.json +59 -0
- package/locales/pt.json +403 -0
- package/locales/receipt/am.json +32 -0
- package/locales/receipt/ar.json +32 -0
- package/locales/receipt/bn.json +32 -0
- package/locales/receipt/de.json +32 -0
- package/locales/receipt/en.json +32 -0
- package/locales/receipt/es.json +32 -0
- package/locales/receipt/fa.json +32 -0
- package/locales/receipt/fr.json +32 -0
- package/locales/receipt/ha.json +32 -0
- package/locales/receipt/he.json +32 -0
- package/locales/receipt/hi.json +32 -0
- package/locales/receipt/id.json +32 -0
- package/locales/receipt/it.json +32 -0
- package/locales/receipt/ja.json +32 -0
- package/locales/receipt/ko.json +32 -0
- package/locales/receipt/mr.json +32 -0
- package/locales/receipt/ms.json +32 -0
- package/locales/receipt/nl.json +32 -0
- package/locales/receipt/pl.json +32 -0
- package/locales/receipt/pt.json +32 -0
- package/locales/receipt/ru.json +32 -0
- package/locales/receipt/sw.json +32 -0
- package/locales/receipt/ta.json +32 -0
- package/locales/receipt/te.json +32 -0
- package/locales/receipt/th.json +32 -0
- package/locales/receipt/tl.json +32 -0
- package/locales/receipt/tr.json +32 -0
- package/locales/receipt/uk.json +32 -0
- package/locales/receipt/ur.json +32 -0
- package/locales/receipt/vi.json +32 -0
- package/locales/receipt/yo.json +32 -0
- package/locales/receipt/zh-Hans.json +32 -0
- package/locales/receipt/zh-Hant.json +32 -0
- package/locales/ru.json +411 -0
- package/locales/scores/am.json +8 -0
- package/locales/scores/ar.json +8 -0
- package/locales/scores/bn.json +8 -0
- package/locales/scores/de.json +8 -0
- package/locales/scores/en.json +8 -0
- package/locales/scores/es.json +8 -0
- package/locales/scores/fa.json +8 -0
- package/locales/scores/fr.json +8 -0
- package/locales/scores/ha.json +8 -0
- package/locales/scores/he.json +8 -0
- package/locales/scores/hi.json +8 -0
- package/locales/scores/id.json +8 -0
- package/locales/scores/it.json +8 -0
- package/locales/scores/ja.json +8 -0
- package/locales/scores/ko.json +8 -0
- package/locales/scores/mr.json +8 -0
- package/locales/scores/ms.json +8 -0
- package/locales/scores/nl.json +8 -0
- package/locales/scores/pl.json +8 -0
- package/locales/scores/pt.json +8 -0
- package/locales/scores/ru.json +8 -0
- package/locales/scores/sw.json +8 -0
- package/locales/scores/ta.json +8 -0
- package/locales/scores/te.json +8 -0
- package/locales/scores/th.json +8 -0
- package/locales/scores/tl.json +8 -0
- package/locales/scores/tr.json +8 -0
- package/locales/scores/uk.json +8 -0
- package/locales/scores/ur.json +8 -0
- package/locales/scores/vi.json +8 -0
- package/locales/scores/yo.json +8 -0
- package/locales/scores/zh-Hans.json +8 -0
- package/locales/scores/zh-Hant.json +8 -0
- package/locales/search/am.json +26 -0
- package/locales/search/ar.json +34 -0
- package/locales/search/bn.json +26 -0
- package/locales/search/de.json +26 -0
- package/locales/search/en.json +26 -0
- package/locales/search/es.json +28 -0
- package/locales/search/fa.json +26 -0
- package/locales/search/fr.json +28 -0
- package/locales/search/ha.json +26 -0
- package/locales/search/he.json +30 -0
- package/locales/search/hi.json +26 -0
- package/locales/search/id.json +24 -0
- package/locales/search/it.json +28 -0
- package/locales/search/ja.json +24 -0
- package/locales/search/ko.json +24 -0
- package/locales/search/mr.json +26 -0
- package/locales/search/ms.json +24 -0
- package/locales/search/nl.json +26 -0
- package/locales/search/pl.json +30 -0
- package/locales/search/pt.json +28 -0
- package/locales/search/ru.json +30 -0
- package/locales/search/sw.json +26 -0
- package/locales/search/ta.json +26 -0
- package/locales/search/te.json +26 -0
- package/locales/search/th.json +24 -0
- package/locales/search/tl.json +26 -0
- package/locales/search/tr.json +26 -0
- package/locales/search/uk.json +30 -0
- package/locales/search/ur.json +26 -0
- package/locales/search/vi.json +24 -0
- package/locales/search/yo.json +24 -0
- package/locales/search/zh-Hans.json +24 -0
- package/locales/search/zh-Hant.json +24 -0
- package/locales/share/am.json +61 -0
- package/locales/share/ar.json +65 -0
- package/locales/share/bn.json +61 -0
- package/locales/share/de.json +61 -0
- package/locales/share/en.json +61 -0
- package/locales/share/es.json +62 -0
- package/locales/share/fa.json +61 -0
- package/locales/share/fr.json +62 -0
- package/locales/share/ha.json +61 -0
- package/locales/share/he.json +62 -0
- package/locales/share/hi.json +61 -0
- package/locales/share/id.json +60 -0
- package/locales/share/it.json +62 -0
- package/locales/share/ja.json +60 -0
- package/locales/share/ko.json +60 -0
- package/locales/share/mr.json +61 -0
- package/locales/share/ms.json +60 -0
- package/locales/share/nl.json +61 -0
- package/locales/share/pl.json +63 -0
- package/locales/share/pt.json +62 -0
- package/locales/share/ru.json +63 -0
- package/locales/share/sw.json +61 -0
- package/locales/share/ta.json +61 -0
- package/locales/share/te.json +61 -0
- package/locales/share/th.json +60 -0
- package/locales/share/tl.json +61 -0
- package/locales/share/tr.json +61 -0
- package/locales/share/uk.json +63 -0
- package/locales/share/ur.json +61 -0
- package/locales/share/vi.json +60 -0
- package/locales/share/yo.json +60 -0
- package/locales/share/zh-Hans.json +60 -0
- package/locales/share/zh-Hant.json +60 -0
- package/locales/signin/am.json +6 -0
- package/locales/signin/ar.json +6 -0
- package/locales/signin/bn.json +6 -0
- package/locales/signin/de.json +6 -0
- package/locales/signin/en.json +6 -0
- package/locales/signin/es.json +6 -0
- package/locales/signin/fa.json +6 -0
- package/locales/signin/fr.json +6 -0
- package/locales/signin/ha.json +6 -0
- package/locales/signin/he.json +6 -0
- package/locales/signin/hi.json +6 -0
- package/locales/signin/id.json +6 -0
- package/locales/signin/it.json +6 -0
- package/locales/signin/ja.json +6 -0
- package/locales/signin/ko.json +6 -0
- package/locales/signin/mr.json +6 -0
- package/locales/signin/ms.json +6 -0
- package/locales/signin/nl.json +6 -0
- package/locales/signin/pl.json +6 -0
- package/locales/signin/pt.json +6 -0
- package/locales/signin/ru.json +6 -0
- package/locales/signin/sw.json +6 -0
- package/locales/signin/ta.json +6 -0
- package/locales/signin/te.json +6 -0
- package/locales/signin/th.json +6 -0
- package/locales/signin/tl.json +6 -0
- package/locales/signin/tr.json +6 -0
- package/locales/signin/uk.json +6 -0
- package/locales/signin/ur.json +6 -0
- package/locales/signin/vi.json +6 -0
- package/locales/signin/yo.json +6 -0
- package/locales/signin/zh-Hans.json +6 -0
- package/locales/signin/zh-Hant.json +6 -0
- package/locales/slides/am.json +10 -0
- package/locales/slides/ar.json +10 -0
- package/locales/slides/bn.json +10 -0
- package/locales/slides/de.json +10 -0
- package/locales/slides/en.json +10 -0
- package/locales/slides/es.json +10 -0
- package/locales/slides/fa.json +10 -0
- package/locales/slides/fr.json +10 -0
- package/locales/slides/ha.json +10 -0
- package/locales/slides/he.json +10 -0
- package/locales/slides/hi.json +10 -0
- package/locales/slides/id.json +10 -0
- package/locales/slides/it.json +10 -0
- package/locales/slides/ja.json +10 -0
- package/locales/slides/ko.json +10 -0
- package/locales/slides/mr.json +10 -0
- package/locales/slides/ms.json +10 -0
- package/locales/slides/nl.json +10 -0
- package/locales/slides/pl.json +10 -0
- package/locales/slides/pt.json +10 -0
- package/locales/slides/ru.json +10 -0
- package/locales/slides/sw.json +10 -0
- package/locales/slides/ta.json +10 -0
- package/locales/slides/te.json +10 -0
- package/locales/slides/th.json +10 -0
- package/locales/slides/tl.json +10 -0
- package/locales/slides/tr.json +10 -0
- package/locales/slides/uk.json +10 -0
- package/locales/slides/ur.json +10 -0
- package/locales/slides/vi.json +10 -0
- package/locales/slides/yo.json +10 -0
- package/locales/slides/zh-Hans.json +10 -0
- package/locales/slides/zh-Hant.json +10 -0
- package/locales/sw.json +395 -0
- package/locales/sync/am.json +13 -0
- package/locales/sync/ar.json +13 -0
- package/locales/sync/bn.json +13 -0
- package/locales/sync/de.json +13 -0
- package/locales/sync/en.json +13 -0
- package/locales/sync/es.json +13 -0
- package/locales/sync/fa.json +13 -0
- package/locales/sync/fr.json +13 -0
- package/locales/sync/ha.json +13 -0
- package/locales/sync/he.json +13 -0
- package/locales/sync/hi.json +13 -0
- package/locales/sync/id.json +13 -0
- package/locales/sync/it.json +13 -0
- package/locales/sync/ja.json +13 -0
- package/locales/sync/ko.json +13 -0
- package/locales/sync/mr.json +13 -0
- package/locales/sync/ms.json +13 -0
- package/locales/sync/nl.json +13 -0
- package/locales/sync/pl.json +13 -0
- package/locales/sync/pt.json +13 -0
- package/locales/sync/ru.json +13 -0
- package/locales/sync/sw.json +13 -0
- package/locales/sync/ta.json +13 -0
- package/locales/sync/te.json +13 -0
- package/locales/sync/th.json +13 -0
- package/locales/sync/tl.json +13 -0
- package/locales/sync/tr.json +13 -0
- package/locales/sync/uk.json +13 -0
- package/locales/sync/ur.json +13 -0
- package/locales/sync/vi.json +13 -0
- package/locales/sync/yo.json +13 -0
- package/locales/sync/zh-Hans.json +13 -0
- package/locales/sync/zh-Hant.json +13 -0
- package/locales/ta.json +395 -0
- package/locales/te.json +395 -0
- package/locales/th.json +387 -0
- package/locales/tl.json +395 -0
- package/locales/tr.json +395 -0
- package/locales/uk.json +411 -0
- package/locales/ur.json +395 -0
- package/locales/vi.json +387 -0
- package/locales/yo.json +387 -0
- package/locales/zh-Hans.json +387 -0
- package/locales/zh-Hant.json +387 -0
- package/package.json +9 -4
- package/preview.html +75 -0
- package/ui/caps.js +148 -0
- package/ui/csp.js +82 -0
- package/ui/export.js +214 -0
- package/ui/icons.js +31 -0
- package/ui/looks/blueprint.css +72 -0
- package/ui/looks/classic.css +105 -0
- package/ui/looks/fjord.css +56 -0
- package/ui/looks/human.css +232 -0
- package/ui/looks/mail.css +61 -0
- package/ui/looks/minimal.css +62 -0
- package/ui/looks/mondrian.css +90 -0
- package/ui/looks/neon.css +100 -0
- package/ui/looks/notebook.css +82 -0
- package/ui/looks/paper.css +51 -0
- package/ui/looks/swiss.css +64 -0
- package/ui/looks/terminal.css +84 -0
- package/ui/looks/tilde.css +61 -0
- package/ui/looks/velvet.css +61 -0
- package/ui/markdown.js +188 -0
- package/ui/menu-icons.js +64 -0
- package/ui/model.js +70 -0
- package/ui/reader-state.js +38 -0
- package/ui/reader.js +68 -0
- package/ui/save.js +53 -0
- package/ui/sheet.js +13 -0
- package/ui/style.css +813 -0
- package/ui/trusted.js +13 -0
- package/ui/weights.js +37 -0
- package/vendor/LICENSES/abcjs.txt +21 -0
- package/vendor/LICENSES/base64-js.txt +21 -0
- package/vendor/LICENSES/buffer.txt +21 -0
- package/vendor/LICENSES/diff.txt +29 -0
- package/vendor/LICENSES/echarts.txt +229 -0
- package/vendor/LICENSES/fflate.txt +21 -0
- package/vendor/LICENSES/huggingface-transformers.txt +202 -0
- package/vendor/LICENSES/ieee754.txt +11 -0
- package/vendor/LICENSES/jean-is-sounds.txt +92 -0
- package/vendor/LICENSES/jitl-quickjs-ffi-types.txt +21 -0
- package/vendor/LICENSES/jitl-quickjs-wasmfile-release-sync.txt +47 -0
- package/vendor/LICENSES/just-bash.txt +201 -0
- package/vendor/LICENSES/lit-html.txt +28 -0
- package/vendor/LICENSES/maplibre-gl.txt +2 -0
- package/vendor/LICENSES/marked.txt +44 -0
- package/vendor/LICENSES/onnxruntime-web.txt +2 -0
- package/vendor/LICENSES/pdfjs-dist.txt +177 -0
- package/vendor/LICENSES/preact-signals-core.txt +21 -0
- package/vendor/LICENSES/pyodide.txt +2 -0
- package/vendor/LICENSES/quickjs-emscripten-core.txt +21 -0
- package/vendor/LICENSES/silurus-ooxml.txt +21 -0
- package/vendor/LICENSES/spessasynth_core.txt +202 -0
- package/vendor/LICENSES/sprintf-js.txt +24 -0
- package/vendor/LICENSES/stb-vorbis.txt +202 -0
- package/vendor/LICENSES/temml.txt +21 -0
- package/vendor/LICENSES/turndown.txt +21 -0
- package/vendor/LICENSES/zrender.txt +29 -0
- package/vendor/abcjs/abcjs.mjs +6 -0
- package/vendor/echarts/echarts.mjs +45 -0
- package/vendor/lit-html/async-directive.js +6 -0
- package/vendor/lit-html/directive-helpers.js +6 -0
- package/vendor/lit-html/directive.js +6 -0
- package/vendor/lit-html/directives/ref.js +6 -0
- package/vendor/lit-html/lit-html.js +6 -0
- package/vendor/maplibre/maplibre-gl-worker.js +9 -0
- package/vendor/maplibre/maplibre-gl.css +1 -0
- package/vendor/maplibre/maplibre-gl.mjs +818 -0
- package/vendor/marked.esm.js +79 -0
- package/vendor/signals-core.mjs +1 -0
- package/vendor/spessasynth/spessasynth.mjs +20764 -0
- package/vendor/spessasynth/stb-vorbis.mjs +1 -0
- package/vendor/temml/Temml.woff2 +0 -0
- package/vendor/temml/temml.css +372 -0
- package/vendor/temml/temml.mjs +2 -0
|
@@ -0,0 +1,415 @@
|
|
|
1
|
+
// Diagrams (D291): a ```mermaid block's flowchart or mind map, read here (the parts brains write:
|
|
2
|
+
// nodes, their shapes, arrows and their words; a mind map's branches by their indent), laid out here
|
|
3
|
+
// (a flowchart in ranks, its crossings fewer; a mind map's branches either side of its root) and drawn
|
|
4
|
+
// as SVG in the room's colours, each of a mind map's branches in a colour of its own. Anything else a
|
|
5
|
+
// block says (styles, classes, links, subgraphs' frames) is left out; one this can't read stays code.
|
|
6
|
+
// Self-contained, the DOM's own calls only: <app-diagram> in an answer, and the same element lent to a
|
|
7
|
+
// page, which holds its Mermaid as text and draws it again when its text changes. Mermaid itself is
|
|
8
|
+
// a 1.6 MB library, for a few kinds of diagram brains write.
|
|
9
|
+
|
|
10
|
+
/** @typedef {{ id: string, label: string, shape: string }} Box */
|
|
11
|
+
/** @typedef {{ from: string, to: string, label: string, dashed: boolean, arrow: boolean }} Link */
|
|
12
|
+
/** @typedef {{ kind: 'flowchart', across: boolean, boxes: Map<string, Box>, links: Link[] }} Flowchart */
|
|
13
|
+
/** @typedef {{ label: string, shape: string, children: Branch[] }} Branch */
|
|
14
|
+
/** @typedef {{ kind: 'mindmap', root: Branch }} Mindmap */
|
|
15
|
+
|
|
16
|
+
// A box's shape, by the brackets around its words: the longest first.
|
|
17
|
+
const SHAPES = [['(((', ')))', 'circle'], ['([', '])', 'pill'], ['[[', ']]', 'box'], ['[(', ')]', 'pill'], ['((', '))', 'circle'], ['{{', '}}', 'hexagon'],
|
|
18
|
+
['[/', '/]', 'box'], ['[\\', '\\]', 'box'], ['[/', '\\]', 'box'], ['[\\', '/]', 'box'], ['[', ']', 'box'], ['(', ')', 'round'], ['{', '}', 'diamond'], ['>', ']', 'box'],
|
|
19
|
+
['))', '((', 'round'], [')', '(', 'round']]
|
|
20
|
+
const ID = /^[\p{L}\p{N}_]+/u
|
|
21
|
+
// An arrow, with its words written in it (-- yes -->) or after it (-->|yes|).
|
|
22
|
+
const ARROW = /^\s*(?:(--|==|-\.)\s+([^|>]*?)\s+)?(<?(?:-{2,}|={2,}|-?\.+-?)(?:>|x|o)?)\s*(?:\|([^|]*)\|)?\s*/
|
|
23
|
+
|
|
24
|
+
/** Words as a box shows them: quotes, Markdown's bold and line breaks as Mermaid writes them. @param {string} text */
|
|
25
|
+
const words = (text) => text.trim().replace(/^"(.*)"$/s, '$1').replace(/<br\s*\/?>/gi, '\n').replace(/\*\*|__|`/g, '').replace(/#quot;/g, '"').trim()
|
|
26
|
+
|
|
27
|
+
/** A box at the start of `rest`: its id, then its shape and words if they follow. @param {string} rest @returns {[Box, string] | null} */
|
|
28
|
+
function box(rest) {
|
|
29
|
+
const id = ID.exec(rest)?.[0]
|
|
30
|
+
if (!id) return null
|
|
31
|
+
let after = rest.slice(id.length)
|
|
32
|
+
for (const [open, close, shape] of SHAPES) {
|
|
33
|
+
if (!after.startsWith(open)) continue
|
|
34
|
+
const from = Math.max(open.length, after[open.length] === '"' ? after.indexOf('"', open.length + 1) : -1)
|
|
35
|
+
// Closed where Mermaid closes it, or where the same brackets swapped, as brains sometimes write them (A([Start)]), leave the
|
|
36
|
+
// statement going on as one does: to its end, an &, a class or an arrow; else where Mermaid would.
|
|
37
|
+
const end = [close, [...close].reverse().join('')].map((ending) => after.indexOf(ending, from)).filter((at) => at >= 0).sort((a, b) => a - b).find((at) => /^\s*(&|$)|^:::/.test(after.slice(at + close.length)) || ARROW.test(after.slice(at + close.length))) ?? after.indexOf(close, from)
|
|
38
|
+
if (end < 0) return null
|
|
39
|
+
return [{ id, label: words(after.slice(open.length, end)) || id, shape }, after.slice(end + close.length).replace(/^:::\w+/, '')]
|
|
40
|
+
}
|
|
41
|
+
return [{ id, label: '', shape: '' }, after.replace(/^:::\w+/, '')]
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** Boxes joined by &, at the start of `rest`. @param {string} rest @returns {[Box[], string] | null} */
|
|
45
|
+
function group(rest) {
|
|
46
|
+
const found = []
|
|
47
|
+
for (let left = rest.trimStart(); ;) {
|
|
48
|
+
const next = box(left)
|
|
49
|
+
if (!next) return null
|
|
50
|
+
found.push(next[0])
|
|
51
|
+
const more = /^\s*&\s*/.exec(next[1])
|
|
52
|
+
if (!more) return [found, next[1]]
|
|
53
|
+
left = next[1].slice(more[0].length)
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* A Mermaid block as a flowchart or a mind map, or null when it is neither or can't be read.
|
|
59
|
+
* @param {string} source @returns {Flowchart | Mindmap | null}
|
|
60
|
+
*/
|
|
61
|
+
export function parse(source) {
|
|
62
|
+
const lines = source.split('\n').map((line) => line.replace(/%%.*$/, '')).filter((line) => line.trim())
|
|
63
|
+
const head = /^\s*(flowchart|graph|mindmap)\b\s*(\w+)?/i.exec(lines[0] ?? '')
|
|
64
|
+
if (!head) return null
|
|
65
|
+
if (head[1].toLowerCase() === 'mindmap') return mindmap(lines.slice(1))
|
|
66
|
+
/** @type {Map<string, Box>} */
|
|
67
|
+
const boxes = new Map()
|
|
68
|
+
/** @type {Link[]} */
|
|
69
|
+
const links = []
|
|
70
|
+
const keep = (/** @type {Box} */ found) => {
|
|
71
|
+
const known = boxes.get(found.id)
|
|
72
|
+
if (!known || (found.shape && !known.shape)) boxes.set(found.id, { ...found, label: found.label || known?.label || found.id })
|
|
73
|
+
}
|
|
74
|
+
// What follows its first word and direction, on its first line too (graph LR; A --> B).
|
|
75
|
+
for (const statement of [lines[0].slice(head[0].length), ...lines.slice(1)].flatMap((line) => line.split(';'))) {
|
|
76
|
+
const text = statement.trim()
|
|
77
|
+
if (!text || /^(classDef|class|style|linkStyle|click|subgraph|end|direction)\b/.test(text)) continue
|
|
78
|
+
let read = group(text)
|
|
79
|
+
if (!read) return null
|
|
80
|
+
read[0].forEach(keep)
|
|
81
|
+
for (let rest = read[1]; rest.trim();) {
|
|
82
|
+
const arrow = ARROW.exec(rest)
|
|
83
|
+
if (!arrow || !/[-=.]/.test(arrow[3])) return null
|
|
84
|
+
const to = group(rest.slice(arrow[0].length))
|
|
85
|
+
if (!to) return null
|
|
86
|
+
to[0].forEach(keep)
|
|
87
|
+
for (const from of read[0]) for (const target of to[0]) links.push({ from: from.id, to: target.id, label: words(arrow[4] ?? arrow[2] ?? ''), dashed: arrow[3].includes('.'), arrow: /[>xo]$/.test(arrow[3]) })
|
|
88
|
+
read = to
|
|
89
|
+
rest = to[1]
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
return boxes.size ? { kind: /** @type {const} */ ('flowchart'), across: /^(LR|RL)$/i.test(head[2] ?? ''), boxes, links } : null
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/** A mind map's lines, each a branch of the last one less indented. @param {string[]} lines @returns {Mindmap | null} */
|
|
96
|
+
function mindmap(lines) {
|
|
97
|
+
/** @type {{ indent: number, branch: Branch }[]} */
|
|
98
|
+
const stack = []
|
|
99
|
+
/** @type {Branch | null} */
|
|
100
|
+
let root = null
|
|
101
|
+
for (const line of lines) {
|
|
102
|
+
const text = line.trim()
|
|
103
|
+
if (text.startsWith('::') || /^:::/.test(text)) continue
|
|
104
|
+
const indent = line.length - line.trimStart().length
|
|
105
|
+
const bare = text.replace(/^[^\p{L}\p{N}_([{)]+/u, '')
|
|
106
|
+
const found = box(/^[\p{L}\p{N}_]/u.test(bare) ? bare : `_${bare}`)
|
|
107
|
+
const label = found && found[0].shape ? found[0].label : words(text.replace(/:::.*$/, ''))
|
|
108
|
+
/** @type {Branch} */
|
|
109
|
+
const branch = { label, shape: found?.[0].shape ?? '', children: [] }
|
|
110
|
+
while (stack.length && stack[stack.length - 1].indent >= indent) stack.pop()
|
|
111
|
+
if (!stack.length) {
|
|
112
|
+
if (root) return null
|
|
113
|
+
root = branch
|
|
114
|
+
} else stack[stack.length - 1].branch.children.push(branch)
|
|
115
|
+
stack.push({ indent, branch })
|
|
116
|
+
}
|
|
117
|
+
return root ? { kind: 'mindmap', root } : null
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// ─── Layout ──────────────────────────────────────────────────────────────────
|
|
121
|
+
|
|
122
|
+
const LINE = 18
|
|
123
|
+
const WRAP = 26
|
|
124
|
+
|
|
125
|
+
/** Words broken into lines of about WRAP characters. @param {string} text */
|
|
126
|
+
const wrapped = (text) => text.split('\n').flatMap((line) => line.split(' ').reduce((/** @type {string[]} */ out, word) => {
|
|
127
|
+
const last = out[out.length - 1]
|
|
128
|
+
if (last !== undefined && (last + ' ' + word).length <= WRAP) out[out.length - 1] = last + ' ' + word
|
|
129
|
+
else out.push(word)
|
|
130
|
+
return out
|
|
131
|
+
}, []))
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* A box's size: its lines' widest and how many, padded for its shape. @param {Box | Branch} box
|
|
135
|
+
* @param {(text: string) => number} measure @returns {{ lines: string[], width: number, height: number }}
|
|
136
|
+
*/
|
|
137
|
+
function sized(box, measure) {
|
|
138
|
+
const lines = wrapped(box.label)
|
|
139
|
+
const width = Math.max(...lines.map(measure), 8) + 28
|
|
140
|
+
const height = lines.length * LINE + 18
|
|
141
|
+
return box.shape === 'diamond' ? { lines, width: width * 1.35 + 10, height: height * 1.5 }
|
|
142
|
+
: box.shape === 'circle' ? { lines, width: Math.max(width, height), height: Math.max(width, height) } : { lines, width, height }
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Where each box goes: ranks along the flow (each box below the boxes leading to it, a loop's way back
|
|
147
|
+
* left out), boxes in each rank ordered by where their neighbours are, a few times, so that fewer
|
|
148
|
+
* links cross; then each rank centred. Positions are boxes' centres.
|
|
149
|
+
* @param {Flowchart} chart @param {(text: string) => number} measure
|
|
150
|
+
*/
|
|
151
|
+
export function flowLayout(chart, measure) {
|
|
152
|
+
const ids = [...chart.boxes.keys()]
|
|
153
|
+
const back = new Set()
|
|
154
|
+
const state = new Map()
|
|
155
|
+
/** @param {string} id */
|
|
156
|
+
const visit = (id) => {
|
|
157
|
+
state.set(id, 1)
|
|
158
|
+
for (const link of chart.links.filter((each) => each.from === id)) {
|
|
159
|
+
if (state.get(link.to) === 1) back.add(link)
|
|
160
|
+
else if (!state.get(link.to)) visit(link.to)
|
|
161
|
+
}
|
|
162
|
+
state.set(id, 2)
|
|
163
|
+
}
|
|
164
|
+
ids.forEach((id) => state.get(id) || visit(id))
|
|
165
|
+
const forward = chart.links.filter((link) => !back.has(link) && link.from !== link.to)
|
|
166
|
+
const rank = new Map(ids.map((id) => [id, 0]))
|
|
167
|
+
for (let pass = 0; pass < ids.length; pass++) for (const link of forward) rank.set(link.to, Math.max(/** @type {number} */ (rank.get(link.to)), /** @type {number} */ (rank.get(link.from)) + 1))
|
|
168
|
+
const ranks = /** @type {string[][]} */ ([])
|
|
169
|
+
for (const id of ids) (ranks[/** @type {number} */ (rank.get(id))] ??= []).push(id)
|
|
170
|
+
const place = () => new Map(ranks.flatMap((row) => row.map((id, i) => [id, i])))
|
|
171
|
+
for (let sweep = 0; sweep < 4; sweep++) {
|
|
172
|
+
const at = place()
|
|
173
|
+
const down = sweep % 2 === 0
|
|
174
|
+
for (const row of down ? ranks.slice(1) : ranks.slice(0, -1).reverse()) {
|
|
175
|
+
const weight = (/** @type {string} */ id) => {
|
|
176
|
+
const near = forward.filter((link) => (down ? link.to === id : link.from === id)).map((link) => /** @type {number} */ (at.get(down ? link.from : link.to)))
|
|
177
|
+
return near.length ? near.reduce((a, b) => a + b, 0) / near.length : /** @type {number} */ (at.get(id))
|
|
178
|
+
}
|
|
179
|
+
row.sort((a, b) => weight(a) - weight(b))
|
|
180
|
+
row.forEach((id, i) => at.set(id, i))
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
const size = new Map(ids.map((id) => [id, sized(/** @type {Box} */ (chart.boxes.get(id)), measure)]))
|
|
184
|
+
const across = chart.across
|
|
185
|
+
// Along the flow, each rank as deep as its deepest box; across it, boxes side by side.
|
|
186
|
+
const depth = ranks.map((row) => Math.max(...row.map((id) => (across ? size.get(id)?.width : size.get(id)?.height) ?? 0)))
|
|
187
|
+
const breadth = ranks.map((row) => row.reduce((sum, id) => sum + ((across ? size.get(id)?.height : size.get(id)?.width) ?? 0), 0) + (row.length - 1) * (across ? 24 : 36))
|
|
188
|
+
const widest = Math.max(...breadth)
|
|
189
|
+
/** @type {Map<string, { x: number, y: number, width: number, height: number, lines: string[] }>} */
|
|
190
|
+
const where = new Map()
|
|
191
|
+
let along = 0
|
|
192
|
+
ranks.forEach((row, r) => {
|
|
193
|
+
let side = (widest - breadth[r]) / 2
|
|
194
|
+
for (const id of row) {
|
|
195
|
+
const own = /** @type {{ lines: string[], width: number, height: number }} */ (size.get(id))
|
|
196
|
+
const span = across ? own.height : own.width
|
|
197
|
+
const middle = along + depth[r] / 2
|
|
198
|
+
where.set(id, { ...own, x: across ? middle : side + span / 2, y: across ? side + span / 2 : middle })
|
|
199
|
+
side += span + (across ? 24 : 36)
|
|
200
|
+
}
|
|
201
|
+
along += depth[r] + (across ? 72 : 56)
|
|
202
|
+
})
|
|
203
|
+
return { where, back, width: across ? along - 72 : widest, height: across ? widest : along - 56 }
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* A mind map's branches either side of its root, each as tall as its leaves, its own in a column per
|
|
208
|
+
* level, the first branches alternating right and left by how much each holds.
|
|
209
|
+
* @param {Mindmap} map @param {(text: string) => number} measure
|
|
210
|
+
*/
|
|
211
|
+
export function mindLayout(map, measure) {
|
|
212
|
+
/** @type {{ branch: Branch, x: number, y: number, width: number, height: number, lines: string[], tone: number, depth: number, parent: number }[]} */
|
|
213
|
+
const placed = []
|
|
214
|
+
/** @param {Branch} branch @returns {number} */
|
|
215
|
+
const leaves = (branch) => (branch.children.length ? branch.children.reduce((sum, child) => sum + leaves(child), 0) : 1)
|
|
216
|
+
const sides = [/** @type {Branch[]} */ ([]), /** @type {Branch[]} */ ([])]
|
|
217
|
+
const load = [0, 0]
|
|
218
|
+
for (const child of map.root.children) {
|
|
219
|
+
const side = load[0] <= load[1] ? 0 : 1
|
|
220
|
+
sides[side].push(child)
|
|
221
|
+
load[side] += leaves(child)
|
|
222
|
+
}
|
|
223
|
+
const root = sized(map.root, measure)
|
|
224
|
+
placed.push({ branch: map.root, ...root, x: 0, y: 0, tone: -1, depth: 0, parent: -1 })
|
|
225
|
+
const ROW = 34
|
|
226
|
+
sides.forEach((branches, side) => {
|
|
227
|
+
const sign = side === 0 ? 1 : -1
|
|
228
|
+
let top = -(branches.reduce((sum, branch) => sum + leaves(branch), 0) * ROW) / 2
|
|
229
|
+
/** @param {Branch} branch @param {number} depth @param {number} x @param {number} parent @param {number} tone */
|
|
230
|
+
const lay = (branch, depth, x, parent, tone) => {
|
|
231
|
+
const own = sized(branch, measure)
|
|
232
|
+
const span = leaves(branch) * ROW
|
|
233
|
+
const index = placed.push({ branch, ...own, x: x + (sign * own.width) / 2, y: top + span / 2, tone, depth, parent }) - 1
|
|
234
|
+
const start = top
|
|
235
|
+
for (const child of branch.children) lay(child, depth + 1, x + sign * (own.width + 36), index, tone)
|
|
236
|
+
top = start + span
|
|
237
|
+
}
|
|
238
|
+
branches.forEach((branch) => lay(branch, 1, sign * (root.width / 2 + 48), 0, map.root.children.indexOf(branch)))
|
|
239
|
+
})
|
|
240
|
+
const left = Math.min(...placed.map((each) => each.x - each.width / 2))
|
|
241
|
+
const right = Math.max(...placed.map((each) => each.x + each.width / 2))
|
|
242
|
+
const up = Math.min(...placed.map((each) => each.y - each.height / 2))
|
|
243
|
+
const down = Math.max(...placed.map((each) => each.y + each.height / 2))
|
|
244
|
+
for (const each of placed) { each.x -= left; each.y -= up }
|
|
245
|
+
return { placed, width: right - left, height: down - up }
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
// ─── Drawing ─────────────────────────────────────────────────────────────────
|
|
249
|
+
|
|
250
|
+
const SVG = 'http://www.w3.org/2000/svg'
|
|
251
|
+
/** @param {string} name @param {Record<string, string | number>} attributes @param {Node[]} [children] */
|
|
252
|
+
function node(name, attributes, children = []) {
|
|
253
|
+
const element = document.createElementNS(SVG, name)
|
|
254
|
+
for (const [key, value] of Object.entries(attributes)) element.setAttribute(key, String(value))
|
|
255
|
+
element.append(...children)
|
|
256
|
+
return element
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
let drawings = 0
|
|
260
|
+
/** Lines of words, centred on a point. @param {string[]} lines @param {number} x @param {number} y @param {string} fill @param {string} [weight] */
|
|
261
|
+
const label = (lines, x, y, fill, weight = '400') => node('text', { x, y: y - ((lines.length - 1) * LINE) / 2, 'text-anchor': 'middle', 'dominant-baseline': 'central', fill, 'font-weight': weight },
|
|
262
|
+
lines.map((line, i) => node('tspan', { x, dy: i ? LINE : 0 }, [document.createTextNode(line)])))
|
|
263
|
+
|
|
264
|
+
const AppDiagram = typeof HTMLElement === 'undefined' ? null : class extends HTMLElement {
|
|
265
|
+
static observedAttributes = ['source']
|
|
266
|
+
/** Its drawing, apart from the text a page gives it, which shows nowhere. */
|
|
267
|
+
shown = this.attachShadow({ mode: 'open' })
|
|
268
|
+
/** What was drawn last, so that the same isn't drawn again. */
|
|
269
|
+
drawn = ''
|
|
270
|
+
/** @type {Flowchart | Mindmap | null} what it shows */
|
|
271
|
+
diagram = null
|
|
272
|
+
changed = new MutationObserver(() => this.draw())
|
|
273
|
+
|
|
274
|
+
connectedCallback() {
|
|
275
|
+
// A page sets its text; Jean, its source. The room's light or dark draws it again.
|
|
276
|
+
this.changed.observe(this, { childList: true, characterData: true, subtree: true })
|
|
277
|
+
this.changed.observe(document.documentElement, { attributes: true, attributeFilter: ['data-theme', 'data-look', 'class', 'style'] })
|
|
278
|
+
this.draw()
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
disconnectedCallback() {
|
|
282
|
+
this.changed.disconnect()
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
attributeChangedCallback() {
|
|
286
|
+
if (this.isConnected) this.draw()
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/** The text it draws: Jean's source, or a page's text. */
|
|
290
|
+
get source() {
|
|
291
|
+
return this.getAttribute('source') ?? [...this.childNodes].filter((child) => child.nodeType === 3).map((child) => child.textContent).join('')
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/** A colour of the room, by MCP Apps' name in a page or by Jean's own in an answer. @param {string} name @param {string} own */
|
|
295
|
+
tone(name, own) {
|
|
296
|
+
const style = getComputedStyle(this)
|
|
297
|
+
return style.getPropertyValue(name).trim() || style.getPropertyValue(own).trim() || 'currentColor'
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
draw() {
|
|
301
|
+
const source = this.source
|
|
302
|
+
const key = [source, document.documentElement.dataset.theme, document.documentElement.dataset.look].join('\n')
|
|
303
|
+
if (key === this.drawn) return
|
|
304
|
+
this.drawn = key
|
|
305
|
+
const diagram = parse(source)
|
|
306
|
+
// While it is written, a last line not whole yet can't be read: what was drawn stays.
|
|
307
|
+
if (!diagram) return
|
|
308
|
+
this.diagram = diagram
|
|
309
|
+
const font = getComputedStyle(this).fontFamily
|
|
310
|
+
const pen = /** @type {CanvasRenderingContext2D} */ (document.createElement('canvas').getContext('2d'))
|
|
311
|
+
pen.font = `14px ${font}`
|
|
312
|
+
const measure = (/** @type {string} */ text) => pen.measureText(text).width
|
|
313
|
+
const ink = this.tone('--color-text-primary', '--ink')
|
|
314
|
+
const soft = this.tone('--color-text-secondary', '--ink-soft')
|
|
315
|
+
const line = this.tone('--color-border-primary', '--line-strong')
|
|
316
|
+
const ground = this.tone('--color-background-secondary', '--glass')
|
|
317
|
+
const accent = this.tone('--color-ring-primary', '--flame')
|
|
318
|
+
const inverse = this.tone('--color-text-inverse', '--on-flame')
|
|
319
|
+
const tones = { ink, soft, line, ground, accent, inverse }
|
|
320
|
+
const svg = diagram.kind === 'flowchart' ? this.flowchart(diagram, measure, tones) : this.mindmap(diagram, measure, tones)
|
|
321
|
+
svg.setAttribute('font-family', font)
|
|
322
|
+
svg.setAttribute('font-size', '14')
|
|
323
|
+
Object.assign(svg.style, { display: 'block', maxWidth: '100%', height: 'auto', margin: '0 auto' })
|
|
324
|
+
this.shown.replaceChildren(svg)
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* @param {Flowchart} chart @param {(text: string) => number} measure
|
|
329
|
+
* @param {Record<string, string>} tones
|
|
330
|
+
*/
|
|
331
|
+
flowchart(chart, measure, { ink, soft, line, ground, accent }) {
|
|
332
|
+
const { where, width, height } = flowLayout(chart, measure)
|
|
333
|
+
const pad = 12
|
|
334
|
+
const id = `arrow-${++drawings}`
|
|
335
|
+
const arrow = node('marker', { id, viewBox: '0 0 10 10', refX: 9, refY: 5, markerWidth: 7, markerHeight: 7, orient: 'auto-start-reverse' }, [node('path', { d: 'M0 0L10 5L0 10z', fill: soft })])
|
|
336
|
+
const svg = node('svg', { viewBox: `${-pad} ${-pad} ${width + 2 * pad} ${height + 2 * pad}`, width: width + 2 * pad, height: height + 2 * pad }, [node('defs', {}, [arrow])])
|
|
337
|
+
const across = chart.across
|
|
338
|
+
for (const link of chart.links) {
|
|
339
|
+
const from = where.get(link.from)
|
|
340
|
+
const to = where.get(link.to)
|
|
341
|
+
if (!from || !to) continue
|
|
342
|
+
// From the side facing the flow to the side facing back, curved; one going back, round the side.
|
|
343
|
+
const ahead = across ? to.x > from.x : to.y > from.y
|
|
344
|
+
const [x1, y1] = across ? [from.x + (ahead ? 1 : -1) * from.width / 2, from.y] : [from.x, from.y + (ahead ? 1 : -1) * from.height / 2]
|
|
345
|
+
const [x2, y2] = across ? [to.x - (ahead ? 1 : -1) * to.width / 2, to.y] : [to.x, to.y - (ahead ? 1 : -1) * to.height / 2]
|
|
346
|
+
const bend = Math.max(24, Math.abs(across ? x2 - x1 : y2 - y1) / 2) * (ahead ? 1 : -1)
|
|
347
|
+
const d = across ? `M${x1} ${y1}C${x1 + bend} ${y1} ${x2 - bend} ${y2} ${x2} ${y2}` : `M${x1} ${y1}C${x1} ${y1 + bend} ${x2} ${y2 - bend} ${x2} ${y2}`
|
|
348
|
+
svg.append(node('path', { d, fill: 'none', stroke: soft, 'stroke-width': 1.5, ...(link.dashed && { 'stroke-dasharray': '5 4' }), ...(link.arrow && { 'marker-end': `url(#${id})` }) }))
|
|
349
|
+
if (link.label) {
|
|
350
|
+
const words = wrapped(link.label)
|
|
351
|
+
const w = Math.max(...words.map(measure)) + 14
|
|
352
|
+
const h = words.length * LINE + 6
|
|
353
|
+
const [mx, my] = [(x1 + x2) / 2, (y1 + y2) / 2]
|
|
354
|
+
svg.append(node('rect', { x: mx - w / 2, y: my - h / 2, width: w, height: h, rx: h / 2, fill: ground, stroke: line }), label(words, mx, my, soft))
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
for (const [id, box] of where) {
|
|
358
|
+
const { shape } = /** @type {Box} */ (chart.boxes.get(id))
|
|
359
|
+
const { x, y, width: w, height: h } = box
|
|
360
|
+
const lit = shape === 'diamond' || shape === 'circle' || shape === 'pill' || shape === 'round' || shape === 'hexagon'
|
|
361
|
+
const frame = { fill: lit ? `color-mix(in oklch, ${accent} 14%, transparent)` : ground, stroke: lit ? accent : line, 'stroke-width': 1.5 }
|
|
362
|
+
svg.append(shape === 'diamond' ? node('path', { d: `M${x} ${y - h / 2}L${x + w / 2} ${y}L${x} ${y + h / 2}L${x - w / 2} ${y}z`, ...frame, 'stroke-linejoin': 'round' })
|
|
363
|
+
: shape === 'circle' ? node('circle', { cx: x, cy: y, r: w / 2, ...frame })
|
|
364
|
+
: shape === 'hexagon' ? node('path', { d: `M${x - w / 2 + 12} ${y - h / 2}H${x + w / 2 - 12}L${x + w / 2} ${y}L${x + w / 2 - 12} ${y + h / 2}H${x - w / 2 + 12}L${x - w / 2} ${y}z`, ...frame })
|
|
365
|
+
: node('rect', { x: x - w / 2, y: y - h / 2, width: w, height: h, rx: shape === 'pill' || shape === 'round' ? h / 2 : 10, ...frame }), label(box.lines, x, y, ink, lit ? '600' : '400'))
|
|
366
|
+
}
|
|
367
|
+
return svg
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* @param {Mindmap} map @param {(text: string) => number} measure
|
|
372
|
+
* @param {Record<string, string>} tones
|
|
373
|
+
*/
|
|
374
|
+
mindmap(map, measure, { ink, accent, inverse }) {
|
|
375
|
+
const { placed, width, height } = mindLayout(map, measure)
|
|
376
|
+
const pad = 12
|
|
377
|
+
const svg = node('svg', { viewBox: `${-pad} ${-pad} ${width + 2 * pad} ${height + 2 * pad}`, width: width + 2 * pad, height: height + 2 * pad })
|
|
378
|
+
// Each first branch a hue of its own, as light and as strong as the room's accent.
|
|
379
|
+
const hue = (/** @type {number} */ tone) => `oklch(from ${accent} l max(c, 0.12) calc(h + ${tone * 57}))`
|
|
380
|
+
for (const each of placed.slice(1)) {
|
|
381
|
+
const parent = placed[each.parent]
|
|
382
|
+
const sign = each.x > parent.x ? 1 : -1
|
|
383
|
+
const x1 = parent.x + (sign * parent.width) / 2
|
|
384
|
+
const x2 = each.x - (sign * each.width) / 2
|
|
385
|
+
svg.append(node('path', { d: `M${x1} ${parent.y}C${(x1 + x2) / 2} ${parent.y} ${(x1 + x2) / 2} ${each.y} ${x2} ${each.y}`, fill: 'none', stroke: hue(each.tone), 'stroke-width': Math.max(1.5, 4 - each.depth), 'stroke-linecap': 'round' }))
|
|
386
|
+
}
|
|
387
|
+
for (const each of placed) {
|
|
388
|
+
const { x, y, width: w, height: h, lines, depth } = each
|
|
389
|
+
const tone = depth ? hue(each.tone) : accent
|
|
390
|
+
if (depth < 2) svg.append(node('rect', { x: x - w / 2, y: y - h / 2, width: w, height: h, rx: h / 2, fill: depth ? `color-mix(in oklch, ${tone} 16%, transparent)` : tone, stroke: tone, 'stroke-width': 1.5 }))
|
|
391
|
+
else svg.append(node('path', { d: `M${x - w / 2} ${y + h / 2 - 6}H${x + w / 2}`, stroke: tone, 'stroke-width': 1.5, 'stroke-linecap': 'round' }))
|
|
392
|
+
svg.append(label(lines, x, depth < 2 ? y : y - 3, depth ? ink : inverse, depth < 2 ? '600' : '400'))
|
|
393
|
+
}
|
|
394
|
+
return svg
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
/** The diagram as a picture to put in a document, a PNG on white, twice as fine. @returns {Promise<Blob>} */
|
|
398
|
+
async picture() {
|
|
399
|
+
const svg = this.shown.querySelector('svg')
|
|
400
|
+
if (!svg) throw new Error('No diagram')
|
|
401
|
+
const copy = /** @type {SVGSVGElement} */ (svg.cloneNode(true))
|
|
402
|
+
copy.setAttribute('xmlns', SVG)
|
|
403
|
+
const image = new Image()
|
|
404
|
+
image.src = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(new XMLSerializer().serializeToString(copy))}`
|
|
405
|
+
await image.decode()
|
|
406
|
+
const canvas = Object.assign(document.createElement('canvas'), { width: image.width * 2, height: image.height * 2 })
|
|
407
|
+
const pen = /** @type {CanvasRenderingContext2D} */ (canvas.getContext('2d'))
|
|
408
|
+
pen.fillStyle = '#fff'
|
|
409
|
+
pen.fillRect(0, 0, canvas.width, canvas.height)
|
|
410
|
+
pen.drawImage(image, 0, 0, canvas.width, canvas.height)
|
|
411
|
+
return new Promise((resolve, reject) => canvas.toBlob((blob) => (blob ? resolve(blob) : reject(new Error('No picture'))), 'image/png'))
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
if (AppDiagram && !customElements.get('app-diagram')) customElements.define('app-diagram', AppDiagram)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* Pages in answers (D289): framed as the other widgets are, so a page reads as one of its own, Copy at its top corner, shown on hover. The page's body adds a little to the padding, room for its focus rings. */
|
|
2
|
+
app-page { position: relative; display: block; padding: 0.75rem 0.85rem; border: 1px solid var(--line); border-radius: 0.9rem; margin-block: 0 0.85rem; }
|
|
3
|
+
app-page iframe { display: block; box-sizing: content-box; inline-size: 100%; block-size: 6rem; border: 0; background: transparent; }
|
|
4
|
+
:is(app-page, .diagram) .drawn-foot { position: absolute; z-index: 1; inset-block-start: 0.4rem; inset-inline-end: 0.4rem; transition: opacity 0.2s; }
|
|
5
|
+
:is(app-page, .diagram) .drawn-foot .icon-button { background: var(--glass); }
|
|
6
|
+
@media (hover: hover) { :is(app-page, .diagram):not(:hover, :focus-within) .drawn-foot { opacity: 0; } }
|
|
7
|
+
@media print { :is(app-page, .diagram) .drawn-foot { display: none; } }
|
|
8
|
+
/* A diagram (D291): framed as the other widgets are, as wide as it needs up to the text's width, then scaled down. */
|
|
9
|
+
.prose .diagram { position: relative; margin: 0 0 0.85rem; padding: 1rem; border: 1px solid var(--line); border-radius: 0.9rem; }
|
|
10
|
+
.diagram app-diagram { display: block; }
|
|
11
|
+
/* With its code off, its code, framed as code is. */
|
|
12
|
+
app-page:has(> pre) { padding: 0; border: 0; }
|
|
13
|
+
/* Visual answers on (./mode.js): pressed at the box's foot, its × to turn it off. */
|
|
14
|
+
.mode-chip { display: inline-flex; align-items: center; gap: 0.35rem; min-inline-size: 0; margin-inline-start: 0.3rem; padding: 0.3rem 0.55rem; border: 1px solid oklch(from var(--flame) l c h / 0.45); border-radius: 999px; background: oklch(from var(--flame) l c h / 0.1); color: var(--ink); font-size: 0.84rem; }
|
|
15
|
+
.mode-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
16
|
+
.mode-chip .icon { flex: none; --glyph: var(--icon-s); color: var(--flame); }
|
|
17
|
+
.mode-chip .icon:last-child { --glyph: var(--icon-s); color: var(--ink-soft); }
|
|
18
|
+
.mode-chip:hover { border-color: var(--flame); }
|
|
19
|
+
.mode-chip:hover .icon:last-child { color: var(--ink); }
|
|
20
|
+
@media (forced-colors: active) { .mode-chip { border-color: Highlight; } }
|
|
21
|
+
@media (width < 30rem) { .mode-chip span { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); } }
|