@jean-is/render 0.0.0-stage → 0.8.0-r83bf42d1b67e
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 +400 -0
- package/core/loop.js +453 -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 +58 -0
- package/locales/certificates/ar.json +58 -0
- package/locales/certificates/bn.json +58 -0
- package/locales/certificates/de.json +58 -0
- package/locales/certificates/en.json +58 -0
- package/locales/certificates/es.json +58 -0
- package/locales/certificates/fa.json +58 -0
- package/locales/certificates/fr.json +58 -0
- package/locales/certificates/ha.json +58 -0
- package/locales/certificates/he.json +58 -0
- package/locales/certificates/hi.json +58 -0
- package/locales/certificates/id.json +58 -0
- package/locales/certificates/it.json +58 -0
- package/locales/certificates/ja.json +58 -0
- package/locales/certificates/ko.json +58 -0
- package/locales/certificates/mr.json +58 -0
- package/locales/certificates/ms.json +58 -0
- package/locales/certificates/nl.json +58 -0
- package/locales/certificates/pl.json +58 -0
- package/locales/certificates/pt.json +58 -0
- package/locales/certificates/ru.json +58 -0
- package/locales/certificates/sw.json +58 -0
- package/locales/certificates/ta.json +58 -0
- package/locales/certificates/te.json +58 -0
- package/locales/certificates/th.json +58 -0
- package/locales/certificates/tl.json +58 -0
- package/locales/certificates/tr.json +58 -0
- package/locales/certificates/uk.json +58 -0
- package/locales/certificates/ur.json +58 -0
- package/locales/certificates/vi.json +58 -0
- package/locales/certificates/yo.json +58 -0
- package/locales/certificates/zh-Hans.json +58 -0
- package/locales/certificates/zh-Hant.json +58 -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 +15 -0
- package/locales/connections/ar.json +15 -0
- package/locales/connections/bn.json +15 -0
- package/locales/connections/de.json +15 -0
- package/locales/connections/en.json +15 -0
- package/locales/connections/es.json +15 -0
- package/locales/connections/fa.json +15 -0
- package/locales/connections/fr.json +15 -0
- package/locales/connections/ha.json +15 -0
- package/locales/connections/he.json +15 -0
- package/locales/connections/hi.json +15 -0
- package/locales/connections/id.json +15 -0
- package/locales/connections/it.json +15 -0
- package/locales/connections/ja.json +15 -0
- package/locales/connections/ko.json +15 -0
- package/locales/connections/mr.json +15 -0
- package/locales/connections/ms.json +15 -0
- package/locales/connections/nl.json +15 -0
- package/locales/connections/pl.json +15 -0
- package/locales/connections/pt.json +15 -0
- package/locales/connections/ru.json +15 -0
- package/locales/connections/sw.json +15 -0
- package/locales/connections/ta.json +15 -0
- package/locales/connections/te.json +15 -0
- package/locales/connections/th.json +15 -0
- package/locales/connections/tl.json +15 -0
- package/locales/connections/tr.json +15 -0
- package/locales/connections/uk.json +15 -0
- package/locales/connections/ur.json +15 -0
- package/locales/connections/vi.json +15 -0
- package/locales/connections/yo.json +15 -0
- package/locales/connections/zh-Hans.json +15 -0
- package/locales/connections/zh-Hant.json +15 -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 +21 -0
- package/locales/enterprise/ar.json +21 -0
- package/locales/enterprise/bn.json +21 -0
- package/locales/enterprise/de.json +21 -0
- package/locales/enterprise/en.json +21 -0
- package/locales/enterprise/es.json +21 -0
- package/locales/enterprise/fa.json +21 -0
- package/locales/enterprise/fr.json +21 -0
- package/locales/enterprise/ha.json +21 -0
- package/locales/enterprise/he.json +21 -0
- package/locales/enterprise/hi.json +21 -0
- package/locales/enterprise/id.json +21 -0
- package/locales/enterprise/it.json +21 -0
- package/locales/enterprise/ja.json +21 -0
- package/locales/enterprise/ko.json +21 -0
- package/locales/enterprise/mr.json +21 -0
- package/locales/enterprise/ms.json +21 -0
- package/locales/enterprise/nl.json +21 -0
- package/locales/enterprise/pl.json +21 -0
- package/locales/enterprise/pt.json +21 -0
- package/locales/enterprise/ru.json +21 -0
- package/locales/enterprise/sw.json +21 -0
- package/locales/enterprise/ta.json +21 -0
- package/locales/enterprise/te.json +21 -0
- package/locales/enterprise/th.json +21 -0
- package/locales/enterprise/tl.json +21 -0
- package/locales/enterprise/tr.json +21 -0
- package/locales/enterprise/uk.json +21 -0
- package/locales/enterprise/ur.json +21 -0
- package/locales/enterprise/vi.json +21 -0
- package/locales/enterprise/yo.json +21 -0
- package/locales/enterprise/zh-Hans.json +21 -0
- package/locales/enterprise/zh-Hant.json +21 -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 +39 -0
- package/locales/receipt/ar.json +39 -0
- package/locales/receipt/bn.json +39 -0
- package/locales/receipt/de.json +39 -0
- package/locales/receipt/en.json +39 -0
- package/locales/receipt/es.json +39 -0
- package/locales/receipt/fa.json +39 -0
- package/locales/receipt/fr.json +39 -0
- package/locales/receipt/ha.json +39 -0
- package/locales/receipt/he.json +39 -0
- package/locales/receipt/hi.json +39 -0
- package/locales/receipt/id.json +39 -0
- package/locales/receipt/it.json +39 -0
- package/locales/receipt/ja.json +39 -0
- package/locales/receipt/ko.json +39 -0
- package/locales/receipt/mr.json +39 -0
- package/locales/receipt/ms.json +39 -0
- package/locales/receipt/nl.json +39 -0
- package/locales/receipt/pl.json +39 -0
- package/locales/receipt/pt.json +39 -0
- package/locales/receipt/ru.json +39 -0
- package/locales/receipt/sw.json +39 -0
- package/locales/receipt/ta.json +39 -0
- package/locales/receipt/te.json +39 -0
- package/locales/receipt/th.json +39 -0
- package/locales/receipt/tl.json +39 -0
- package/locales/receipt/tr.json +39 -0
- package/locales/receipt/uk.json +39 -0
- package/locales/receipt/ur.json +39 -0
- package/locales/receipt/vi.json +39 -0
- package/locales/receipt/yo.json +39 -0
- package/locales/receipt/zh-Hans.json +39 -0
- package/locales/receipt/zh-Hant.json +39 -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 +66 -0
- package/ui/model.js +74 -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 +814 -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,82 @@
|
|
|
1
|
+
/* Notebook: school. Squared paper, a red margin, a blue pen, handwriting and sticky notes by day;
|
|
2
|
+
a blackboard and chalk by night (D120). Over ui/style.css, which comes after it, so every rule
|
|
3
|
+
here starts with :root[data-look='notebook']. */
|
|
4
|
+
|
|
5
|
+
:root[data-look='notebook'] {
|
|
6
|
+
--room: oklch(0.29 0.035 160);
|
|
7
|
+
--room-2: oklch(0.33 0.035 160);
|
|
8
|
+
--ink: oklch(0.96 0.01 100);
|
|
9
|
+
--ink-soft: oklch(0.87 0.012 100);
|
|
10
|
+
--ink-faint: oklch(0.79 0.015 100);
|
|
11
|
+
--line: oklch(0.96 0.01 100 / 0.14);
|
|
12
|
+
--line-strong: oklch(0.96 0.01 100 / 0.34);
|
|
13
|
+
--glass: oklch(0.33 0.035 160 / 0.94);
|
|
14
|
+
--flame: oklch(0.89 0.13 95);
|
|
15
|
+
--flame-deep: oklch(0.82 0.14 85);
|
|
16
|
+
--on-flame: oklch(0.26 0.035 160);
|
|
17
|
+
--ember-off: oklch(0.96 0.01 100 / 0.25);
|
|
18
|
+
--danger: oklch(0.8 0.12 25);
|
|
19
|
+
--glow: var(--room);
|
|
20
|
+
--note: oklch(0.92 0.12 98);
|
|
21
|
+
--note-2: oklch(0.9 0.07 350);
|
|
22
|
+
--on-note: oklch(0.28 0.04 80);
|
|
23
|
+
--display: 'Chalkboard SE', 'Segoe Print', 'Ink Free', 'Bradley Hand', 'Comic Sans MS', 'Comic Neue', 'Hiragino Maru Gothic ProN', 'Noto Sans', 'Noto Sans Arabic', sans-serif;
|
|
24
|
+
--sans: ui-rounded, 'SF Pro Rounded', 'Hiragino Maru Gothic ProN', 'Arial Rounded MT Bold', system-ui, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans Arabic', 'Noto Sans JP', sans-serif;
|
|
25
|
+
--radius: 0.5rem;
|
|
26
|
+
}
|
|
27
|
+
:root[data-look='notebook'][data-theme='light'] {
|
|
28
|
+
--room: oklch(0.99 0.004 95);
|
|
29
|
+
--room-2: oklch(0.995 0.002 95);
|
|
30
|
+
--ink: oklch(0.33 0.12 262);
|
|
31
|
+
--ink-soft: oklch(0.42 0.09 262);
|
|
32
|
+
--ink-faint: oklch(0.5 0.06 262);
|
|
33
|
+
--line: oklch(0.6 0.08 240 / 0.24);
|
|
34
|
+
--line-strong: oklch(0.6 0.08 240 / 0.5);
|
|
35
|
+
--glass: oklch(0.995 0.002 95 / 0.94);
|
|
36
|
+
--flame: oklch(0.55 0.2 25);
|
|
37
|
+
--flame-deep: oklch(0.5 0.19 25);
|
|
38
|
+
--on-flame: oklch(0.99 0.004 95);
|
|
39
|
+
--ember-off: oklch(0.33 0.12 262 / 0.22);
|
|
40
|
+
--danger: oklch(0.5 0.19 25);
|
|
41
|
+
--grid: oklch(0.72 0.07 240 / 0.3);
|
|
42
|
+
--margin: oklch(0.62 0.18 20 / 0.6);
|
|
43
|
+
--display: 'Bradley Hand', 'Segoe Print', 'Ink Free', 'Chalkboard SE', 'Comic Sans MS', 'Comic Neue', 'Hiragino Maru Gothic ProN', 'Noto Sans', 'Noto Sans Arabic', sans-serif;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* The board: chalk dust where it was wiped. */
|
|
47
|
+
:root[data-look='notebook'] .room {
|
|
48
|
+
background:
|
|
49
|
+
radial-gradient(45% 30% at 22% 30%, oklch(1 0 0 / 0.05), transparent),
|
|
50
|
+
radial-gradient(40% 35% at 78% 62%, oklch(1 0 0 / 0.04), transparent),
|
|
51
|
+
radial-gradient(30% 20% at 55% 12%, oklch(1 0 0 / 0.03), transparent);
|
|
52
|
+
animation: none;
|
|
53
|
+
}
|
|
54
|
+
:root[data-look='notebook'] body { text-shadow: 0 0 1px oklch(from var(--ink) l c h / 0.5); }
|
|
55
|
+
/* The page: squares that scroll with it, and a margin beside the writing. */
|
|
56
|
+
:root[data-look='notebook'][data-theme='light'] {
|
|
57
|
+
background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
|
|
58
|
+
background-size: 1.25rem 1.25rem;
|
|
59
|
+
}
|
|
60
|
+
:root[data-look='notebook'][data-theme='light'] .room { display: none; }
|
|
61
|
+
:root[data-look='notebook'][data-theme='light'] body { text-shadow: none; }
|
|
62
|
+
:root[data-look='notebook'][data-theme='light'] main { padding-inline-start: 1rem; border-inline-start: 2px solid var(--margin); }
|
|
63
|
+
|
|
64
|
+
:root[data-look='notebook'] :is(.wordmark, .hero-question, .conversation-title, .dialog-head h2, .drop-zone) { font-style: normal; letter-spacing: 0; }
|
|
65
|
+
:root[data-look='notebook'] :is(.wordmark, .wordmark:hover) { font-size: 1.7rem; text-shadow: none; }
|
|
66
|
+
:root[data-look='notebook'] .hero-question { font-size: clamp(2.5rem, 7.5vw, 4.8rem); line-height: 1.12; background: none; color: var(--ink); }
|
|
67
|
+
:root[data-look='notebook'] .conversation-title { color: var(--ink); }
|
|
68
|
+
/* The title gone over with a highlighter. */
|
|
69
|
+
:root[data-look='notebook'][data-theme='light'] .conversation-title { inline-size: fit-content; padding-inline: 0.2em; background: linear-gradient(transparent 55%, oklch(0.93 0.14 100 / 0.8) 55% 92%, transparent 92%); }
|
|
70
|
+
/* What the user asked: a sticky note, a little askew. */
|
|
71
|
+
:root[data-look='notebook'] .msg-user { padding: 0.85rem 1.1rem; border-radius: 0.15rem 0.15rem 1.2rem 0.15rem / 0.15rem 0.15rem 0.5rem 0.15rem; background: var(--note); color: var(--on-note); box-shadow: 0 0.7rem 0.9rem -0.6rem oklch(0 0 0 / 0.45); rotate: -0.8deg; text-shadow: none; }
|
|
72
|
+
:root[data-look='notebook'] .turn:nth-child(even) .msg-user { background: var(--note-2); rotate: 0.9deg; }
|
|
73
|
+
/* Buttons drawn by hand. */
|
|
74
|
+
:root[data-look='notebook'] :is(.starter, .follow-up, .button, .brain-chip) { border-width: 2px; border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; }
|
|
75
|
+
:root[data-look='notebook'] .starter, :root[data-look='notebook'] .follow-up { background: var(--room-2); color: var(--ink); }
|
|
76
|
+
:root[data-look='notebook'] .starter:hover, :root[data-look='notebook'] .follow-up:hover { border-color: var(--flame); box-shadow: none; }
|
|
77
|
+
:root[data-look='notebook'] .send { border-radius: 50% 45% 55% 50% / 50% 55% 45% 50%; box-shadow: none; }
|
|
78
|
+
/* The box: a sheet held on by a strip of tape. */
|
|
79
|
+
:root[data-look='notebook'] .composer { position: relative; border-radius: 0.3rem; background: var(--room-2); backdrop-filter: none; box-shadow: 0 0.8rem 1.5rem -1rem oklch(0 0 0 / 0.45); }
|
|
80
|
+
:root[data-look='notebook'] .composer::before { content: ''; position: absolute; inset-block-start: -0.65rem; inset-inline: 0; inline-size: 5.5rem; block-size: 1.2rem; margin-inline: auto; background: oklch(0.95 0.035 95 / 0.62); rotate: -2deg; }
|
|
81
|
+
:root[data-look='notebook'] .composer:focus-within { border-color: var(--flame); box-shadow: 0 0.8rem 1.5rem -1rem oklch(0 0 0 / 0.45); }
|
|
82
|
+
:root[data-look='notebook'] .caret { box-shadow: none; }
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* Paper: ink on paper, in a classic typeface, without the glow (D111). Over ui/style.css, which
|
|
2
|
+
comes after it, so every rule here starts with :root[data-look='paper']. */
|
|
3
|
+
|
|
4
|
+
:root[data-look='paper'] {
|
|
5
|
+
--room: oklch(0.2 0.006 70);
|
|
6
|
+
--room-2: oklch(0.245 0.006 70);
|
|
7
|
+
--ink: oklch(0.91 0.012 85);
|
|
8
|
+
--ink-soft: oklch(0.78 0.01 85);
|
|
9
|
+
--ink-faint: oklch(0.66 0.01 85);
|
|
10
|
+
--line: oklch(0.91 0.012 85 / 0.12);
|
|
11
|
+
--line-strong: oklch(0.91 0.012 85 / 0.26);
|
|
12
|
+
--glass: oklch(0.245 0.006 70 / 0.94);
|
|
13
|
+
--flame: oklch(0.75 0.13 34);
|
|
14
|
+
--flame-deep: oklch(0.67 0.14 32);
|
|
15
|
+
--on-flame: oklch(0.2 0.02 32);
|
|
16
|
+
--ember-off: oklch(0.91 0.012 85 / 0.25);
|
|
17
|
+
--glow: var(--room);
|
|
18
|
+
--sans: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Noto Serif', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
|
|
19
|
+
--radius: 0.3rem;
|
|
20
|
+
--column: min(100% - 2.5rem, 40rem);
|
|
21
|
+
}
|
|
22
|
+
:root[data-look='paper'][data-theme='light'] {
|
|
23
|
+
--room: oklch(0.975 0.008 85);
|
|
24
|
+
--room-2: oklch(0.993 0.004 85);
|
|
25
|
+
--ink: oklch(0.22 0.012 60);
|
|
26
|
+
--ink-soft: oklch(0.4 0.012 60);
|
|
27
|
+
--ink-faint: oklch(0.5 0.01 60);
|
|
28
|
+
--line: oklch(0.22 0.012 60 / 0.12);
|
|
29
|
+
--line-strong: oklch(0.22 0.012 60 / 0.28);
|
|
30
|
+
--glass: oklch(0.993 0.004 85 / 0.94);
|
|
31
|
+
--flame: oklch(0.5 0.17 30);
|
|
32
|
+
--flame-deep: oklch(0.44 0.15 30);
|
|
33
|
+
--on-flame: oklch(0.99 0.004 85);
|
|
34
|
+
--ember-off: oklch(0.22 0.012 60 / 0.22);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* No light in the room and no halo: a page, with a rule under the masthead. */
|
|
38
|
+
:root[data-look='paper'] .room { display: none; }
|
|
39
|
+
:root[data-look='paper'] .bar { background: var(--room); border-block-end: 1px solid var(--line); }
|
|
40
|
+
:root[data-look='paper'] :is(.wordmark, .wordmark:hover) { text-shadow: none; }
|
|
41
|
+
:root[data-look='paper'] .hero-question { background: none; color: var(--ink); }
|
|
42
|
+
:root[data-look='paper'] .prose { line-height: 1.78; }
|
|
43
|
+
/* What the user asked reads as a quotation, in the margin's red. */
|
|
44
|
+
:root[data-look='paper'] .msg-user { align-self: stretch; max-inline-size: none; padding-block: 0.1rem; padding-inline: 1rem 0; border-inline-start: 2px solid var(--flame); border-radius: 0; background: none; color: var(--ink-soft); }
|
|
45
|
+
:root[data-look='paper'] .msg-files { align-self: flex-start; justify-content: flex-start; }
|
|
46
|
+
:root[data-look='paper'] .composer { border-radius: var(--radius); background: var(--room-2); backdrop-filter: none; box-shadow: none; }
|
|
47
|
+
:root[data-look='paper'] .composer:focus-within { border-color: var(--ink-soft); box-shadow: none; }
|
|
48
|
+
:root[data-look='paper'] :is(.send, .caret) { box-shadow: none; }
|
|
49
|
+
/* Corners: cut, not rounded. */
|
|
50
|
+
:root[data-look='paper'] :is(.button, .starter, .follow-up, .brain-chip, .menu, .menu :is(button, a), .segmented, .segmented span, .send, .icon-button, .toast, .notice, .skip, .file-chip, .attachment, .offer, .approval, .msg-error, .choice-option, .service, .sheet, .settings-nav button, .sidebar-settings, .place, .history-list li, .prose pre, .status, input, select, textarea, .list, .item-icon) { border-radius: var(--radius); }
|
|
51
|
+
:root[data-look='paper'] .list { --corner-start: calc(var(--radius) - 1px); --corner-end: calc(var(--radius) - 1px); }
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/* Swiss: the International Typographic Style. A grotesque set flush left, black and white with
|
|
2
|
+
one red, rules instead of boxes (D120). Over ui/style.css, which comes after it, so every rule
|
|
3
|
+
here starts with :root[data-look='swiss']. */
|
|
4
|
+
|
|
5
|
+
:root[data-look='swiss'] {
|
|
6
|
+
--room: oklch(0.16 0 0);
|
|
7
|
+
--room-2: oklch(0.21 0 0);
|
|
8
|
+
--ink: oklch(0.97 0 0);
|
|
9
|
+
--ink-soft: oklch(0.82 0 0);
|
|
10
|
+
--ink-faint: oklch(0.7 0 0);
|
|
11
|
+
--line: oklch(0.97 0 0 / 0.14);
|
|
12
|
+
--line-strong: oklch(0.97 0 0 / 0.42);
|
|
13
|
+
--glass: oklch(0.16 0 0 / 0.96);
|
|
14
|
+
--flame: oklch(0.66 0.22 28);
|
|
15
|
+
--flame-deep: oklch(0.6 0.22 28);
|
|
16
|
+
--on-flame: oklch(0.13 0 0);
|
|
17
|
+
--ember-off: oklch(0.97 0 0 / 0.25);
|
|
18
|
+
--glow: var(--room);
|
|
19
|
+
--sans: 'Helvetica Neue', Helvetica, Arial, 'Noto Sans', 'Noto Sans Arabic', 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic UI', sans-serif;
|
|
20
|
+
--display: var(--sans);
|
|
21
|
+
--radius: 0;
|
|
22
|
+
--column: min(100% - 2.5rem, 44rem);
|
|
23
|
+
}
|
|
24
|
+
:root[data-look='swiss'][data-theme='light'] {
|
|
25
|
+
--room: oklch(0.995 0 0);
|
|
26
|
+
--room-2: oklch(0.965 0 0);
|
|
27
|
+
--ink: oklch(0.14 0 0);
|
|
28
|
+
--ink-soft: oklch(0.36 0 0);
|
|
29
|
+
--ink-faint: oklch(0.47 0 0);
|
|
30
|
+
--line: oklch(0.14 0 0 / 0.14);
|
|
31
|
+
--line-strong: oklch(0.14 0 0 / 0.5);
|
|
32
|
+
--glass: oklch(0.995 0 0 / 0.96);
|
|
33
|
+
--flame: oklch(0.56 0.22 28);
|
|
34
|
+
--flame-deep: oklch(0.5 0.2 28);
|
|
35
|
+
--on-flame: oklch(1 0 0);
|
|
36
|
+
--ember-off: oklch(0.14 0 0 / 0.22);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* No light and no halo: type does the work, under a rule. */
|
|
40
|
+
:root[data-look='swiss'] .room { display: none; }
|
|
41
|
+
:root[data-look='swiss'] .bar { background: var(--room); border-block-end: 2px solid var(--ink); }
|
|
42
|
+
:root[data-look='swiss'] :is(.wordmark, .wordmark:hover) { font-size: 1.35rem; font-weight: 700; text-shadow: none; }
|
|
43
|
+
:root[data-look='swiss'] :is(.hero-question, .conversation-title, .dialog-head h2, .drop-zone) { font-style: normal; font-weight: 700; }
|
|
44
|
+
:root[data-look='swiss'] .hero-question { font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: 1; background: none; color: var(--ink); }
|
|
45
|
+
:root[data-look='swiss'] .conversation-title { color: var(--ink); }
|
|
46
|
+
:root[data-look='swiss']:not(:lang(ar), :lang(fa), :lang(ur)) :is(.hero-question, .conversation-title) { letter-spacing: -0.035em; }
|
|
47
|
+
/* One red bar above the question, as on a poster. */
|
|
48
|
+
:root[data-look='swiss'] .welcome app-persona { order: -1; }
|
|
49
|
+
:root[data-look='swiss'] .welcome::before { content: ''; inline-size: 4rem; block-size: 0.5rem; margin-block-end: -1rem; background: var(--flame); }
|
|
50
|
+
:root[data-look='swiss'] .starter { border-color: var(--ink); background: none; color: var(--ink); }
|
|
51
|
+
:root[data-look='swiss'] :is(.starter, .follow-up):hover { background: var(--ink); color: var(--room); box-shadow: none; }
|
|
52
|
+
/* What the user asked: a heading under a thick rule, not a bubble. */
|
|
53
|
+
:root[data-look='swiss'] .msg-user { align-self: stretch; max-inline-size: none; padding: 0.6rem 0 0; border-block-start: 2px solid var(--ink); background: none; font-weight: 600; }
|
|
54
|
+
:root[data-look='swiss'] .msg-files { align-self: flex-start; justify-content: flex-start; }
|
|
55
|
+
:root[data-look='swiss'] .prose :is(h3, h4, h5) { font-weight: 700; }
|
|
56
|
+
:root[data-look='swiss'] .prose blockquote { border-inline-start-width: 0.35rem; }
|
|
57
|
+
:root[data-look='swiss'] .composer { border: 2px solid var(--ink); background: var(--room); backdrop-filter: none; box-shadow: none; }
|
|
58
|
+
:root[data-look='swiss'] .composer:focus-within { border-color: var(--flame); box-shadow: none; }
|
|
59
|
+
:root[data-look='swiss'] :is(.send, .caret, .button.primary) { box-shadow: none; }
|
|
60
|
+
:root[data-look='swiss'] .settings-nav [aria-current='page'] { background: var(--ink); color: var(--room); }
|
|
61
|
+
:root[data-look='swiss'] dialog { border: 2px solid var(--ink); box-shadow: none; }
|
|
62
|
+
/* Square corners everywhere. */
|
|
63
|
+
:root[data-look='swiss'] :is(.button, .starter, .follow-up, .brain-chip, .menu, .menu :is(button, a), .segmented, .segmented span, .send, .icon-button, .toast, .notice, .skip, .file-chip, .attachment, .offer, .approval, .msg-error, .choice-option, .service, .sheet, .settings-nav button, .sidebar-settings, .place, .history-list li, .prose pre, .status, input, select, textarea, .composer, .msg-user, .prose code, .monogram, .list, .item-icon, .noticed li) { border-radius: 0; }
|
|
64
|
+
:root[data-look='swiss'] .list { --corner-start: 0; --corner-end: 0; }
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* Terminal: a green screen with scan lines, a block cursor and inverse video; by day, the green-bar
|
|
2
|
+
paper it printed on, with its sprocket holes (D120). Over ui/style.css, which comes after it,
|
|
3
|
+
so every rule here starts with :root[data-look='terminal']. */
|
|
4
|
+
|
|
5
|
+
:root[data-look='terminal'] {
|
|
6
|
+
--room: oklch(0.17 0.025 150);
|
|
7
|
+
--room-2: oklch(0.21 0.03 150);
|
|
8
|
+
--ink: oklch(0.88 0.19 145);
|
|
9
|
+
--ink-soft: oklch(0.8 0.16 145);
|
|
10
|
+
--ink-faint: oklch(0.7 0.13 145);
|
|
11
|
+
--line: oklch(0.88 0.19 145 / 0.18);
|
|
12
|
+
--line-strong: oklch(0.88 0.19 145 / 0.42);
|
|
13
|
+
--glass: oklch(0.17 0.025 150 / 0.95);
|
|
14
|
+
--flame: oklch(0.93 0.2 140);
|
|
15
|
+
--flame-deep: oklch(0.8 0.18 145);
|
|
16
|
+
--on-flame: oklch(0.17 0.025 150);
|
|
17
|
+
--ember-off: oklch(0.88 0.19 145 / 0.25);
|
|
18
|
+
--danger: oklch(0.76 0.16 45);
|
|
19
|
+
--tint: oklch(0.8 0.2 145);
|
|
20
|
+
--glow: oklch(0.8 0.2 145);
|
|
21
|
+
--glow-alpha: 0.2;
|
|
22
|
+
--sans: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, 'Liberation Mono', 'Noto Sans Mono', 'Noto Sans Arabic', 'Noto Sans JP', 'Hiragino Sans', monospace;
|
|
23
|
+
--display: var(--sans);
|
|
24
|
+
--radius: 0;
|
|
25
|
+
}
|
|
26
|
+
:root[data-look='terminal'][data-theme='light'] {
|
|
27
|
+
--room: oklch(0.985 0.008 130);
|
|
28
|
+
--room-2: oklch(0.995 0.004 130);
|
|
29
|
+
--ink: oklch(0.24 0.02 150);
|
|
30
|
+
--ink-soft: oklch(0.38 0.03 150);
|
|
31
|
+
--ink-faint: oklch(0.46 0.04 150);
|
|
32
|
+
--line: oklch(0.45 0.1 150 / 0.2);
|
|
33
|
+
--line-strong: oklch(0.45 0.1 150 / 0.45);
|
|
34
|
+
--glass: oklch(0.995 0.004 130 / 0.95);
|
|
35
|
+
--flame: oklch(0.45 0.12 150);
|
|
36
|
+
--flame-deep: oklch(0.4 0.11 150);
|
|
37
|
+
--on-flame: oklch(0.99 0.004 130);
|
|
38
|
+
--ember-off: oklch(0.24 0.02 150 / 0.22);
|
|
39
|
+
--danger: oklch(0.5 0.18 28);
|
|
40
|
+
--band: oklch(0.93 0.045 150);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* The tube: scan lines over a phosphor bloom that flickers while Jean thinks. */
|
|
44
|
+
:root[data-look='terminal'] .room {
|
|
45
|
+
background:
|
|
46
|
+
repeating-linear-gradient(oklch(0 0 0 / 0) 0 2px, oklch(0 0 0 / 0.24) 2px 3px),
|
|
47
|
+
radial-gradient(90% 80% at 50% 45%, oklch(from var(--glow) l c h / calc(var(--light) * var(--glow-alpha))), transparent 75%),
|
|
48
|
+
radial-gradient(150% 120% at 50% 50%, transparent 60%, oklch(0 0 0 / 0.5));
|
|
49
|
+
}
|
|
50
|
+
:root[data-look='terminal'] body { text-shadow: 0 0 0.35em oklch(from var(--ink) l c h / 0.35); }
|
|
51
|
+
/* The printout: bands of green, and holes down both sides, scrolling with the page. */
|
|
52
|
+
:root[data-look='terminal'][data-theme='light'] {
|
|
53
|
+
background-image:
|
|
54
|
+
radial-gradient(circle, oklch(0.86 0.005 130) 0.28rem, transparent 0.3rem),
|
|
55
|
+
radial-gradient(circle, oklch(0.86 0.005 130) 0.28rem, transparent 0.3rem),
|
|
56
|
+
repeating-linear-gradient(var(--band) 0 3rem, transparent 3rem 6rem);
|
|
57
|
+
background-position: left 0.3rem top 0, right 0.3rem top 0, 0 0;
|
|
58
|
+
background-size: 1.2rem 1.5rem, 1.2rem 1.5rem, auto;
|
|
59
|
+
background-repeat: repeat-y, repeat-y, repeat;
|
|
60
|
+
}
|
|
61
|
+
:root[data-look='terminal'][data-theme='light'] .room { display: none; }
|
|
62
|
+
:root[data-look='terminal'][data-theme='light'] body { text-shadow: none; }
|
|
63
|
+
|
|
64
|
+
:root[data-look='terminal'] :is(.wordmark, .hero-question, .conversation-title, .dialog-head h2, .drop-zone) { font-style: normal; letter-spacing: 0; }
|
|
65
|
+
:root[data-look='terminal'] :is(.wordmark, .wordmark:hover) { font-size: 1.15rem; font-weight: 700; }
|
|
66
|
+
:root[data-look='terminal'] .hero-question { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 500; line-height: 1.15; background: none; color: var(--ink); }
|
|
67
|
+
:root[data-look='terminal'] .conversation-title { font-size: 1.3rem; font-weight: 700; }
|
|
68
|
+
:root[data-look='terminal'] .dialog-head h2 { font-size: 1.3rem; }
|
|
69
|
+
/* A block cursor after the question, and while Jean writes. */
|
|
70
|
+
:root[data-look='terminal'] .hero-question::after { content: ''; display: inline-block; inline-size: 0.55em; block-size: 0.9em; margin-inline-start: 0.2em; vertical-align: -0.08em; background: var(--ink); }
|
|
71
|
+
:root[data-look='terminal'] .caret { inline-size: 0.6em; block-size: 1.15em; vertical-align: -0.2em; border-radius: 0; background: var(--ink); box-shadow: none; animation-timing-function: steps(1); }
|
|
72
|
+
/* What the user typed: a command at the prompt. */
|
|
73
|
+
:root[data-look='terminal'] .msg-user { align-self: stretch; max-inline-size: none; padding: 0; background: none; color: var(--ink-soft); }
|
|
74
|
+
:root[data-look='terminal'] .msg-user::before { content: '> '; color: var(--flame); }
|
|
75
|
+
:root[data-look='terminal'] .msg-files { align-self: flex-start; justify-content: flex-start; }
|
|
76
|
+
:root[data-look='terminal'] .starter, :root[data-look='terminal'] .follow-up { background: none; }
|
|
77
|
+
:root[data-look='terminal'] :is(.starter, .follow-up, .button, .place, .history-list li, .settings-nav button):hover { background: var(--ink); color: var(--room); box-shadow: none; }
|
|
78
|
+
:root[data-look='terminal'] .composer { background: var(--room); backdrop-filter: none; box-shadow: none; }
|
|
79
|
+
:root[data-look='terminal'] .composer:focus-within { border-color: var(--ink); box-shadow: none; }
|
|
80
|
+
:root[data-look='terminal'] :is(.send, .button.primary) { box-shadow: none; }
|
|
81
|
+
:root[data-look='terminal'] .prose pre { border-style: dashed; background: none; }
|
|
82
|
+
:root[data-look='terminal'] ::selection { background: var(--ink); color: var(--room); }
|
|
83
|
+
:root[data-look='terminal'] :is(.button, .starter, .follow-up, .brain-chip, .menu, .menu :is(button, a), .segmented, .segmented span, .send, .icon-button, .toast, .notice, .skip, .file-chip, .attachment, .offer, .approval, .msg-error, .choice-option, .service, .sheet, .settings-nav button, .sidebar-settings, .place, .history-list li, .prose pre, .status, input, select, textarea, .composer, .msg-user, .prose code, .monogram, .list, .item-icon, .noticed li) { border-radius: 0; }
|
|
84
|
+
:root[data-look='terminal'] .list { --corner-start: 0; --corner-end: 0; }
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/* Tilde: Jean's own look, and the one it starts in (docs/design.md). Human's frame, whose sheet it
|
|
2
|
+
brings in, in ink and paper: Gentium for the name and the big question, the wave in Jean's
|
|
3
|
+
sunflower, buttons and the open row in ink, the user's words on the margin's grey, what waits for
|
|
4
|
+
the user on a pale yellow. Sunflower marks, and never fills behind words. Over ui/style.css, which comes after it, so
|
|
5
|
+
every rule here starts with :root[data-look='tilde']. */
|
|
6
|
+
@import url('human.css');
|
|
7
|
+
|
|
8
|
+
:root[data-look='tilde'] {
|
|
9
|
+
--room: oklch(0.187 0 0);
|
|
10
|
+
--room-2: oklch(0.239 0 0);
|
|
11
|
+
--ink: oklch(0.955 0.005 95);
|
|
12
|
+
--ink-soft: oklch(0.728 0.006 95);
|
|
13
|
+
--ink-faint: oklch(0.689 0.006 95);
|
|
14
|
+
--glass: oklch(0.239 0 0 / 0.72);
|
|
15
|
+
--side: oklch(0.218 0 0);
|
|
16
|
+
--flame: oklch(0.845 0.161 88);
|
|
17
|
+
--flame-deep: oklch(0.78 0.158 88);
|
|
18
|
+
--on-flame: oklch(0.187 0 0);
|
|
19
|
+
--fill: var(--ink);
|
|
20
|
+
--on-fill: var(--room);
|
|
21
|
+
--current: oklch(0.285 0 0);
|
|
22
|
+
--wait: oklch(0.25 0.03 88);
|
|
23
|
+
--wait-line: oklch(0.34 0.06 88);
|
|
24
|
+
--display: Display, var(--sans);
|
|
25
|
+
}
|
|
26
|
+
:root[data-look='tilde'][data-theme='light'] {
|
|
27
|
+
--room: oklch(1 0 0);
|
|
28
|
+
--room-2: oklch(0.961 0.004 91);
|
|
29
|
+
--ink: oklch(0.191 0 0);
|
|
30
|
+
--ink-soft: oklch(0.482 0 0);
|
|
31
|
+
--ink-faint: oklch(0.528 0 0);
|
|
32
|
+
--glass: oklch(1 0 0 / 0.72);
|
|
33
|
+
--side: oklch(0.97 0.004 91);
|
|
34
|
+
--well: oklch(0.97 0.004 91);
|
|
35
|
+
--flame: oklch(0.54 0.11 88);
|
|
36
|
+
--flame-deep: oklch(0.48 0.1 88);
|
|
37
|
+
--on-flame: oklch(1 0 0);
|
|
38
|
+
--fill: var(--ink);
|
|
39
|
+
--on-fill: var(--room);
|
|
40
|
+
--current: oklch(0.928 0.007 89);
|
|
41
|
+
--wait: oklch(0.965 0.03 88);
|
|
42
|
+
--wait-line: oklch(0.9 0.07 88);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* The name and the big question in Gentium; the wave a little larger on the first screen. */
|
|
46
|
+
:root[data-look='tilde'] :is(.wordmark, .wordmark:hover) { font: 700 1.1875rem/1 var(--display); }
|
|
47
|
+
:root[data-look='tilde'][data-sidebar] .wordmark { font-size: 1.0625rem; }
|
|
48
|
+
:root[data-look='tilde'] .welcome app-persona { --persona-size: 5.5rem; }
|
|
49
|
+
|
|
50
|
+
/* The user's words on the margin's grey, without a tail. */
|
|
51
|
+
:root[data-look='tilde'] .msg-user { background: var(--room-2); color: var(--ink); }
|
|
52
|
+
:root[data-look='tilde'] .msg-user::before, :root[data-look='tilde'] .msg-user::after { content: none; }
|
|
53
|
+
|
|
54
|
+
/* The open row, the open section and the item under the pointer: a quiet grey, never a fill. */
|
|
55
|
+
:root[data-look='tilde'] :is(.history-list li.is-current, .settings-nav button[aria-current='page'], .menu :is(button, a):hover) { background: var(--current); color: var(--ink); }
|
|
56
|
+
:root[data-look='tilde'] .history-list li.is-current .icon-button { color: var(--ink-soft); }
|
|
57
|
+
:root[data-look='tilde'] :is(.place, .sidebar-settings, .settings-nav) .icon { color: var(--ink-soft); }
|
|
58
|
+
:root[data-look='tilde'] input.switch:checked { background: var(--fill); }
|
|
59
|
+
|
|
60
|
+
/* What waits for the user, on a pale yellow (a deep one by night). */
|
|
61
|
+
:root[data-look='tilde'] :is(.approval, .offer) { border-color: var(--wait-line); background: var(--wait); }
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/* Velvet: an evening out. Deep plum velvet and gold leaf by night, ivory and bronze by day, a
|
|
2
|
+
Didone for the headings, a spotlight where the room's light was, and the first screen set in
|
|
3
|
+
the middle like a programme (D120). Over ui/style.css, which comes after it, so every rule here
|
|
4
|
+
starts with :root[data-look='velvet']. */
|
|
5
|
+
|
|
6
|
+
:root[data-look='velvet'] {
|
|
7
|
+
--room: oklch(0.18 0.04 345);
|
|
8
|
+
--room-2: oklch(0.23 0.045 345);
|
|
9
|
+
--ink: oklch(0.94 0.02 85);
|
|
10
|
+
--ink-soft: oklch(0.84 0.025 80);
|
|
11
|
+
--ink-faint: oklch(0.74 0.03 75);
|
|
12
|
+
--line: oklch(0.82 0.1 85 / 0.16);
|
|
13
|
+
--line-strong: oklch(0.82 0.1 85 / 0.36);
|
|
14
|
+
--glass: oklch(0.23 0.045 345 / 0.82);
|
|
15
|
+
--flame: oklch(0.82 0.11 85);
|
|
16
|
+
--flame-deep: oklch(0.72 0.12 75);
|
|
17
|
+
--on-flame: oklch(0.2 0.045 345);
|
|
18
|
+
--ember-off: oklch(0.94 0.02 85 / 0.25);
|
|
19
|
+
--tint: oklch(0.8 0.12 80);
|
|
20
|
+
--glow: oklch(0.8 0.09 80);
|
|
21
|
+
--glow-alpha: 0.3;
|
|
22
|
+
--display: Didot, 'Bodoni 72', 'Bodoni MT', 'Noto Serif Display', 'Iowan Old Style', Georgia, 'Noto Serif', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
|
|
23
|
+
--sans: Optima, Candara, 'Segoe UI', system-ui, -apple-system, Roboto, 'Noto Sans', 'Noto Sans Arabic', 'Noto Sans JP', 'Hiragino Sans', sans-serif;
|
|
24
|
+
}
|
|
25
|
+
:root[data-look='velvet'][data-theme='light'] {
|
|
26
|
+
--room: oklch(0.97 0.012 85);
|
|
27
|
+
--room-2: oklch(0.995 0.006 85);
|
|
28
|
+
--ink: oklch(0.24 0.05 345);
|
|
29
|
+
--ink-soft: oklch(0.38 0.05 345);
|
|
30
|
+
--ink-faint: oklch(0.48 0.045 345);
|
|
31
|
+
--line: oklch(0.55 0.1 75 / 0.22);
|
|
32
|
+
--line-strong: oklch(0.55 0.1 75 / 0.48);
|
|
33
|
+
--glass: oklch(0.995 0.006 85 / 0.82);
|
|
34
|
+
--flame: oklch(0.48 0.1 65);
|
|
35
|
+
--flame-deep: oklch(0.42 0.09 60);
|
|
36
|
+
--on-flame: oklch(0.99 0.006 85);
|
|
37
|
+
--ember-off: oklch(0.24 0.05 345 / 0.2);
|
|
38
|
+
--glow: oklch(0.88 0.08 80);
|
|
39
|
+
--glow-alpha: 0.55;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* A spotlight from above, and the velvet darker at the edges. */
|
|
43
|
+
:root[data-look='velvet'] .room {
|
|
44
|
+
background:
|
|
45
|
+
radial-gradient(calc(var(--light-size) * 0.45) calc(var(--light-size) * 0.7) at 50% -12%, oklch(from var(--glow) l c h / calc(var(--light) * var(--glow-alpha))), transparent 72%),
|
|
46
|
+
radial-gradient(120% 100% at 50% 40%, transparent 55%, oklch(0.1 0.04 345 / 0.4));
|
|
47
|
+
}
|
|
48
|
+
:root[data-look='velvet'][data-theme='light'] .room { background: radial-gradient(calc(var(--light-size) * 0.45) calc(var(--light-size) * 0.7) at 50% -12%, oklch(from var(--glow) l c h / calc(var(--light) * var(--glow-alpha))), transparent 72%); }
|
|
49
|
+
:root[data-look='velvet'] :is(.wordmark, .wordmark:hover) { font-size: 1.7rem; text-shadow: none; }
|
|
50
|
+
:root[data-look='velvet']:not(:lang(ar), :lang(fa), :lang(ur)) .wordmark { font-variant-caps: all-small-caps; letter-spacing: 0.12em; }
|
|
51
|
+
:root[data-look='velvet'] .bar { border-block-end: 1px solid var(--line); background: var(--room); }
|
|
52
|
+
:root[data-look='velvet'] .welcome { align-items: center; text-align: center; }
|
|
53
|
+
:root[data-look='velvet'] .welcome app-persona { margin-inline: 0; }
|
|
54
|
+
:root[data-look='velvet'] :is(.starters, .pitch ul) { justify-content: center; }
|
|
55
|
+
:root[data-look='velvet'] .hero-question { margin-inline: 0; padding-inline: 0.15em; font-weight: 400; }
|
|
56
|
+
:root[data-look='velvet'] .prose :is(h3, h4) { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
|
|
57
|
+
:root[data-look='velvet'] .msg-user { border: 1px solid var(--line-strong); background: oklch(from var(--flame) l c h / 0.07); }
|
|
58
|
+
:root[data-look='velvet'] .starter, :root[data-look='velvet'] .follow-up { background: none; }
|
|
59
|
+
:root[data-look='velvet'] .starter:hover, :root[data-look='velvet'] .follow-up:hover { border-color: var(--flame); box-shadow: 0 0 1.5rem -0.6rem oklch(from var(--flame) l c h / 0.7); }
|
|
60
|
+
:root[data-look='velvet'] .composer:focus-within { border-color: var(--flame); }
|
|
61
|
+
:root[data-look='velvet'] dialog { border-color: var(--line-strong); }
|
package/ui/markdown.js
ADDED
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
// Markdown → lit-html templates, from marked's tokens. No innerHTML anywhere:
|
|
2
|
+
// raw HTML in model output is shown as text, and an image shows only as a source gave
|
|
3
|
+
// it (D35: an image URL is a classic way for injected instructions to leak data).
|
|
4
|
+
import { html, nothing } from 'lit-html'
|
|
5
|
+
import { signal } from '@preact/signals-core'
|
|
6
|
+
import { Marked } from 'marked'
|
|
7
|
+
import { unlock } from './caps.js'
|
|
8
|
+
|
|
9
|
+
/** @typedef {import('marked').Token} Token */
|
|
10
|
+
/** @typedef {Map<number, { name: string, label: string, open?: () => void, url?: string, site?: string, icon?: string, picture?: string, file?: import('../core/types.js').ResourceLink }>} Sources by the number the brain cites: a file opens, a web page is a link, some can't be opened; a picture, its own or the one shared */
|
|
11
|
+
|
|
12
|
+
/** Sources for the text being rendered: `[n]` becomes a chip when n is one of them. @type {Sources | null} */
|
|
13
|
+
export let cited = null
|
|
14
|
+
/** Whether the text being rendered is an answer still being written, whose last block may not be whole yet. */
|
|
15
|
+
let writing = false
|
|
16
|
+
|
|
17
|
+
// Formulas in LaTeX (D185): $…$ and \(…\) in a line, $$…$$ and \[…\] set apart. As in Pandoc, a $
|
|
18
|
+
// opens before a non-space and closes after one, never before a digit, so "$5 and $10" stays text.
|
|
19
|
+
export const FORMULA = /^(?:\$\$([\s\S]+?)\$\$|\\\[([\s\S]+?)\\\]|\\\(([\s\S]+?)\\\)|\$(?!\s)((?:\\[\s\S]|[^\\$])+?)(?<!\s)\$(?!\d))/
|
|
20
|
+
const FORMULA_BLOCK = /^ {0,3}(?:\$\$([\s\S]+?)\$\$|\\\[([\s\S]+?)\\\])[ \t]*(?:\n+|$)/
|
|
21
|
+
/** @param {RegExpExecArray | null} match */
|
|
22
|
+
const formulaToken = (match) => match ? { type: 'math', raw: match[0], text: (match[1] ?? match[2] ?? match[3] ?? match[4]).trim(), block: (match[1] ?? match[2]) !== undefined } : undefined
|
|
23
|
+
const parser = new Marked({ extensions: [
|
|
24
|
+
{ name: 'math', level: 'block', start: (src) => src.match(/(?<=\n) {0,3}(?:\$\$|\\\[)/)?.index, tokenizer: (src) => formulaToken(FORMULA_BLOCK.exec(src)) },
|
|
25
|
+
{ name: 'math', level: 'inline', start: (src) => src.match(/\$|\\[([]/)?.index, tokenizer: (src) => formulaToken(FORMULA.exec(src)) },
|
|
26
|
+
] })
|
|
27
|
+
|
|
28
|
+
/** marked's tokens, formulas among them. @param {string} source */
|
|
29
|
+
export const lex = (source) => parser.lexer(source)
|
|
30
|
+
|
|
31
|
+
/** @param {string} source @param {Sources} [sources] @param {boolean} [still] true while the answer is still being written */
|
|
32
|
+
export function markdown(source, sources, still = false) {
|
|
33
|
+
cited = sources ?? null
|
|
34
|
+
writing = still
|
|
35
|
+
try {
|
|
36
|
+
return blocks(lex(source))
|
|
37
|
+
} catch {
|
|
38
|
+
return html`<p>${source}</p>`
|
|
39
|
+
} finally {
|
|
40
|
+
cited = null
|
|
41
|
+
writing = false
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** "[1]" or "[1, 3]" → source chips; anything else stays text. @param {string} text */
|
|
46
|
+
function cite(text) {
|
|
47
|
+
const sources = cited
|
|
48
|
+
if (!sources?.size || !/\[\d/.test(text)) return text
|
|
49
|
+
return text.split(/(\[\d+(?:,\s*\d+)*\])/).map((part) => {
|
|
50
|
+
const numbers = /^\[([\d,\s]+)\]$/.exec(part)?.[1].split(/,\s*/).map(Number)
|
|
51
|
+
if (!numbers?.every((n) => sources.has(n))) return part
|
|
52
|
+
return numbers.map((n) => {
|
|
53
|
+
const source = /** @type {NonNullable<ReturnType<Sources['get']>>} */ (sources.get(n))
|
|
54
|
+
return source.url ? html`<a class="cite" href=${source.url} target="_blank" rel="noopener noreferrer" aria-label=${source.label}>${n}<span class="cite-tip">${source.icon ? html`<img src=${source.icon} alt="" loading="lazy">` : nothing}${source.site}<span dir="auto">${source.name}</span></span></a>`
|
|
55
|
+
: source.open ? html`<button class="cite" title=${source.name} aria-label=${source.label} @click=${source.open}>${n}</button>`
|
|
56
|
+
: html`<span class="cite" title=${source.name}>${n}</span>`
|
|
57
|
+
})
|
|
58
|
+
})
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/** @param {Token[]} tokens */
|
|
62
|
+
export const blocks = (tokens) => (shapes.value.blocks?.(tokens) ?? (unlock('layouts'), tokens)).map(block)
|
|
63
|
+
|
|
64
|
+
/** @param {any} token @returns {unknown} */
|
|
65
|
+
function block(token) {
|
|
66
|
+
switch (token.type) {
|
|
67
|
+
case 'heading': return heading(token.depth, inline(token.tokens))
|
|
68
|
+
case 'paragraph': return html`<p>${inline(token.tokens)}</p>`
|
|
69
|
+
case 'code': return opening(token) ? nothing : token.lang === 'math' ? formula({ text: token.text, block: true }) : /^(la)?tex$/i.test(token.lang) ? latex(token) : widget(token) ?? html`<pre dir="ltr"><code>${token.text}</code></pre>`
|
|
70
|
+
case 'blockquote': return shape(token) ?? html`<blockquote>${blocks(token.tokens)}</blockquote>`
|
|
71
|
+
case 'list': return shape(token) ?? list(token)
|
|
72
|
+
case 'table': return shape(token) ?? table(token)
|
|
73
|
+
case 'hr': return html`<hr>`
|
|
74
|
+
case 'math': return formula(token)
|
|
75
|
+
case 'space': return nothing
|
|
76
|
+
case 'text': return html`<p>${token.tokens ? inline(token.tokens) : cite(decode(token.text))}</p>`
|
|
77
|
+
default: return html`<p>${token.raw}</p>`
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// Shapes (D215): comparisons, steps and notes, laid out by the layouts capability, which the first answer loads.
|
|
82
|
+
export const shapes = signal(/** @type {Record<string, (token: any) => any>} */ ({}))
|
|
83
|
+
/** @param {any} token */
|
|
84
|
+
const shape = (token) => shapes.value[token.type]?.(token)
|
|
85
|
+
|
|
86
|
+
/** @param {number} depth @param {unknown} content */
|
|
87
|
+
function heading(depth, content) {
|
|
88
|
+
if (depth <= 2) return html`<h3>${content}</h3>`
|
|
89
|
+
if (depth === 3) return html`<h4>${content}</h4>`
|
|
90
|
+
return html`<h5>${content}</h5>`
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/** @param {any} token */
|
|
94
|
+
function list(token) {
|
|
95
|
+
const items = token.items.map((/** @type {any} */ item) => html`<li>${item.task ? html`<input type="checkbox" disabled ?checked=${item.checked}> ` : nothing}${listItem(item)}</li>`)
|
|
96
|
+
return token.ordered ? html`<ol start=${token.start || 1}>${items}</ol>` : html`<ul>${items}</ul>`
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/** @param {any} item */
|
|
100
|
+
function listItem(item) {
|
|
101
|
+
if (item.loose) return blocks(item.tokens)
|
|
102
|
+
return item.tokens.map((/** @type {any} */ token) => (token.type === 'text' ? (token.tokens ? inline(token.tokens) : cite(decode(token.text))) : block(token)))
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/** @param {any} token */
|
|
106
|
+
function table(token) {
|
|
107
|
+
/** @param {any} cell @param {number} index */
|
|
108
|
+
const align = (cell, index) => (token.align[index] ? `align-${token.align[index]}` : '')
|
|
109
|
+
return html`<div class="table" tabindex="0"><table>
|
|
110
|
+
<thead><tr>${token.header.map((/** @type {any} */ cell, /** @type {number} */ i) => html`<th class=${align(cell, i)}>${inline(cell.tokens)}</th>`)}</tr></thead>
|
|
111
|
+
<tbody>${token.rows.map((/** @type {any[]} */ row) => html`<tr>${row.map((cell, i) => html`<td class=${align(cell, i)}>${inline(cell.tokens)}</td>`)}</tr>`)}</tbody>
|
|
112
|
+
</table></div>`
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/** @param {Token[] | undefined} tokens @returns {unknown} */
|
|
116
|
+
export function inline(tokens = []) {
|
|
117
|
+
return tokens.map((/** @type {any} */ token) => {
|
|
118
|
+
switch (token.type) {
|
|
119
|
+
case 'text': return token.tokens ? inline(token.tokens) : cite(decode(token.text))
|
|
120
|
+
case 'strong': return html`<strong>${inline(token.tokens)}</strong>`
|
|
121
|
+
case 'em': return html`<em>${inline(token.tokens)}</em>`
|
|
122
|
+
case 'del': return html`<del>${inline(token.tokens)}</del>`
|
|
123
|
+
case 'codespan': return html`<code>${decode(token.text)}</code>`
|
|
124
|
+
case 'br': return html`<br>`
|
|
125
|
+
case 'link': return safeHref(token.href)
|
|
126
|
+
? html`<a href=${token.href} target="_blank" rel="noopener noreferrer">${inline(token.tokens)}</a>`
|
|
127
|
+
: inline(token.tokens)
|
|
128
|
+
case 'image': return shape(token) ?? html`<span class="image-alt">[${token.text || token.href}]</span>`
|
|
129
|
+
case 'escape': return token.text
|
|
130
|
+
case 'math': return formula(token)
|
|
131
|
+
default: return token.raw
|
|
132
|
+
}
|
|
133
|
+
})
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/** @type {Promise<boolean> | undefined} */
|
|
137
|
+
let drawing
|
|
138
|
+
/** A formula, which the math capability draws once it has loaded; until then, or if it can't, its source shows. @param {{ text: string, block?: boolean }} token */
|
|
139
|
+
function formula(token) {
|
|
140
|
+
drawing ??= unlock('math')
|
|
141
|
+
return html`<app-math dir="ltr" tex=${token.text} ?block=${token.block}></app-math>`
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
// Requests and follow-ups: their formulas in the line, nothing else read as Markdown. Split keeps FORMULA's 4 groups.
|
|
145
|
+
const FORMULAS = new RegExp(`(?<!\\\\)${FORMULA.source.slice(1)}`, 'g')
|
|
146
|
+
/** @param {string} text @param {(token: { text: string }) => unknown} [draw] */
|
|
147
|
+
export const withFormulas = (text, draw = formula) => text.split(FORMULAS).map((part, i) => (i % 5 ? part && draw({ text: part.trim() }) : part))
|
|
148
|
+
|
|
149
|
+
/** A LaTeX document, which the math capability lays out; until then, or if it can't, its source shows. @param {any} token */
|
|
150
|
+
function latex(token) {
|
|
151
|
+
drawing ??= unlock('math')
|
|
152
|
+
return html`<app-latex dir="auto" source=${token.text} ?open=${open(token)}></app-latex>`
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/** Widgets (D196): a block of a kind the room's skills declare, which the skills capability keeps, drawn by its capability. */
|
|
156
|
+
export const declared = signal(/** @type {ReadonlySet<string>} */ (new Set()))
|
|
157
|
+
/** How each kind is drawn, which its capability says once it has loaded: until then, its code. */
|
|
158
|
+
export const drawn = signal(/** @type {Record<string, (source: string, open: boolean) => unknown>} */ ({}))
|
|
159
|
+
/** The capability that draws each kind, which the first one shown loads. */
|
|
160
|
+
export const WIDGETS = /** @type {Record<string, string>} */ ({ echarts: 'charts', abc: 'scores', marp: 'slides', html: 'interactive', mermaid: 'interactive', geojson: 'interactive' })
|
|
161
|
+
/** Pages, diagrams and maps, drawn in every room, which no skill declares (D289, D291): before any message too, in a task brought in (D378). */
|
|
162
|
+
export const PAGES = Object.keys(WIDGETS).filter((kind) => WIDGETS[kind] === 'interactive')
|
|
163
|
+
|
|
164
|
+
/** @param {any} token */
|
|
165
|
+
export function widget(token) {
|
|
166
|
+
const kind = String(token.lang).toLowerCase()
|
|
167
|
+
if (!declared.value.has(kind) && !PAGES.includes(kind)) return null
|
|
168
|
+
if (Object.hasOwn(WIDGETS, kind)) unlock(WIDGETS[kind])
|
|
169
|
+
return drawn.value[kind]?.(token.text, open(token)) ?? null
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// marked doesn't wait for a closing fence: until it is written, the block is still being written. An
|
|
173
|
+
// answer that ended without one (a brain may leave it out) is as whole as it will be.
|
|
174
|
+
const CLOSED = /^ {0,3}(`{3,}(?!`)|~{3,}(?!~))[^\n]*\n(?:[\s\S]*\n)? {0,3}\1[`~]* *\n*$/
|
|
175
|
+
/** @param {any} token */
|
|
176
|
+
const open = (token) => writing && !CLOSED.test(token.raw)
|
|
177
|
+
/** A fence whose first line is still being written, kind and all: nothing to show yet. @param {any} token */
|
|
178
|
+
const opening = (token) => token.codeBlockStyle !== 'indented' && !token.raw.includes('\n')
|
|
179
|
+
|
|
180
|
+
/** @param {string} href */
|
|
181
|
+
function safeHref(href) {
|
|
182
|
+
try { return ['http:', 'https:', 'mailto:'].includes(new URL(href).protocol) } catch { return false }
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
const ENTITIES = /** @type {Record<string, string>} */ ({ '&': '&', '<': '<', '>': '>', '"': '"', ''': "'", ' ': ' ' })
|
|
186
|
+
|
|
187
|
+
/** @param {string} text */
|
|
188
|
+
const decode = (text) => text.replace(/&(amp|lt|gt|quot|#39|nbsp);/g, (entity) => ENTITIES[entity])
|