From ca9d210d8c7a83921cd79f154b82505bb93f0102 Mon Sep 17 00:00:00 2001 From: Doxa Maps Date: Wed, 30 Sep 2026 22:22:09 +0000 Subject: [PATCH 1/3] Universal-props gate: the planted token sample is assembled at runtime, not committed as a literal The TOK-LITERAL self-test planted a string shaped like a real Mapbox token, which is itself what the rule forbids and reads as a leaked credential to any secret scan. The sample is now built at runtime from plainly fake parts ('example', 'not-a-token') in the same pk. + base64url + tail shape, so the self-test still proves the rule fires, and no token-shaped literal is left in the tree. --- internal/check-universal-props.mjs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/internal/check-universal-props.mjs b/internal/check-universal-props.mjs index 7ddfcc953..7d4dc4026 100644 --- a/internal/check-universal-props.mjs +++ b/internal/check-universal-props.mjs @@ -167,13 +167,18 @@ const run = (rule, src) => rule.test ? rule.test(src) : [...src.matchAll(rule.re const lineOf = (src, idx) => src.slice(0, idx).split('\n').length // ── self-test: every rule must see a planted violation ───────────────────────────────────────── +// The TOK-LITERAL sample is ASSEMBLED HERE, never written as one literal: a committed string shaped like a +// real Mapbox token is itself what that rule forbids, and reads as a leaked credential to any secret scan. +// It is plainly fake ('example, not a token'), yet shaped like one: pk. + base64url JSON + . + a tail, which +// is all the rule's regex looks for, so the self-test still proves the rule fires. +const FAKE_TOKEN = 'pk.' + Buffer.from('{"u":"example","note":"not-a-token"}').toString('base64url') + '.' + 'x'.repeat(22) const PLANTED = ` map.setStyle(isDark ? 'mapbox://styles/mapbox/dark-v11' : 'x') const m2 = new gl.Map({ container: el, style: 'mapbox://styles/mapbox/light-v11' }) const p = new mapboxgl.Popup() useMapInstance({ container: el, provider: 'mapbox' }) const tk = window.DOXA_TOKEN - const t = 'pk.eyJ1IjoiZXhhbXBsZSIsImEiOiJjbGFudGVkIn0' + const t = '${FAKE_TOKEN}' n.toLocaleString('en-US') const r = await fetch(base + '/api/people-groups/list?fields=slug') const dsm = new DataSourceManager({ locale: 'en' }) From 68ba3b3402e71f99dfca64c71a39e5266138fc70 Mon Sep 17 00:00:00 2001 From: Doxa Maps Date: Wed, 30 Sep 2026 22:22:13 +0000 Subject: [PATCH 2/3] Posterverse: poster plugins only UPG Neighbor and All People Groups leave the Experimental folder: they are research maps, and Posterverse holds the plugins whose purpose is posters. Experimental is now Wall of People Groups (and Bible Posters once it exists). Their labels, composes refs and heavy-tag entry go with them; the shelf gate's allow-list and its self-test follow. The Research Gallery is unchanged. --- package.json | 2 +- .../posterverse/posterverse.meta.json | 4 +- .../scripts/check-posterverse-shelf.mjs | 6 +-- plugin-designs/posterverse/src/strings.js | 44 +++++++++---------- plugin-designs/posterverse/src/tabs.js | 4 +- 5 files changed, 28 insertions(+), 32 deletions(-) diff --git a/package.json b/package.json index 1452a4408..28614cc0a 100644 --- a/package.json +++ b/package.json @@ -583,7 +583,7 @@ "check:poster-layout-optin": "the composed poster sheet (header, map, legend beside it, footer) is OPT-IN: spec.layout === 'poster' asks for it, and every caller that does not gets the full-page map exactly as before, asserted by object identity, not just by value. Drives the real layout decisions with real spec objects. Headless, no browser.", "check:poster-print-fallback": "clicks the REAL poster print control with the served poster generator and every posters/*.webp aborted, and asserts the preview RASTERISES from posters/.html instead of opening on \"Poster not available yet\". Needs a served tree built with posterSources:true; NOT MEASURED otherwise.", "check:posters-exportable": "every poster the tree offers can be printed. With posterSources on, the tree once shipped only the 28 zone sources, so 350 of 378 posters said \"poster not found (404)\". Each id, from data/posters and the wall's previews, must ship a real WebP (RIFF..WEBP) or a real poster source (its class=\"stage\" element), so a placeholder or a host's fallback page cannot pass. SKIPs when posters are off by config, which check:poster-degrades covers. Reads the built tree; no server.", - "check:posterverse-shelf": "Posterverse (the capability-5 poster shell) shows exactly its allow-list and never a gated plugin. Asserts the rail rows per section (Posters: upg-100, country-posters, poster-design; Experimental: wall-of-people-groups, all-people-groups, upg-neighbor, bible-posters), that no row names key-cities or a shell (a key-cities bundle is planted into the built manifest, because the real one withholds gated profiles), that every present row opens the profile it names (no silent fallback to a leaf), that posterverse.meta.json composes equals the rows whose bundle exists, and 11-locale parity of the shell strings. --self-test plants one defect per arm. Headless. Exit 0 pass, 1 fail, 75 no built manifest.", + "check:posterverse-shelf": "Posterverse (the capability-5 poster shell) shows exactly its allow-list and never a gated plugin. Asserts the rail rows per section (Posters: upg-100, country-posters, poster-design; Experimental: wall-of-people-groups, bible-posters), that no row names key-cities or a shell (a key-cities bundle is planted into the built manifest, because the real one withholds gated profiles), that every present row opens the profile it names (no silent fallback to a leaf), that posterverse.meta.json composes equals the rows whose bundle exists, and 11-locale parity of the shell strings. --self-test plants one defect per arm. Headless. Exit 0 pass, 1 fail, 75 no built manifest.", "check:prayer-walk-planner": "the Prayer Walk Planner is a full-page tool that prints a real walking map: the map canvas fills the page below the toolbar in its own leaf AND inside the Research Gallery at 1280x800 and 390x844 (the gallery once collapsed it to 76px / 0px); a real zone (Balat, Istanbul) renders a >=2000px print map that is not blank, saved to OUT= so a human can read it; ?lang=es gives a Spanish toolbar; 0 page errors. Run inside the shared browser locks. Exit 2 = SKIP.", "check:preset-config-merge": "a preset page (///index.html) keeps every default in its profile's .meta.json config, with the instance's props merged over them (go-int's upg-neighbor presets lost pinHint:false when props replaced the config). Reads the built tree; SKIP without one.", "check:profile-table": "the prayer packet's profile TABLE (20 full-width rows: picture, generated description, three boxes; PER_PAGE stays 20): a row stays tall enough for a name plus a two-line description at the smallest fit size, and truncation happens only at a whole word. Character-count, not DOM, so Node and the browser agree. Cannot see the RENDERED row height: that is check:packet-render, a browser gate. By the UPG-100 owner; mutation-tested. Headless; in gates:pre.", diff --git a/plugin-designs/posterverse/posterverse.meta.json b/plugin-designs/posterverse/posterverse.meta.json index 06dbafd5c..094ccd107 100644 --- a/plugin-designs/posterverse/posterverse.meta.json +++ b/plugin-designs/posterverse/posterverse.meta.json @@ -4,9 +4,7 @@ "composes": [ "my-upg-100-list/upg-100-mfe", "country-posters/country-posters-mfe", - "wall-of-people-groups/wall-of-people-groups", - "all-people-groups/all-people-groups", - "upg-neighbor/upg-neighbor" + "wall-of-people-groups/wall-of-people-groups" ], "label": "Posterverse (vertical-tab app shell: every poster plugin)" } diff --git a/plugin-designs/posterverse/scripts/check-posterverse-shelf.mjs b/plugin-designs/posterverse/scripts/check-posterverse-shelf.mjs index 3b1b9cad9..0a7c3293d 100644 --- a/plugin-designs/posterverse/scripts/check-posterverse-shelf.mjs +++ b/plugin-designs/posterverse/scripts/check-posterverse-shelf.mjs @@ -9,7 +9,7 @@ * * WHAT IT ASSERTS (each arm is poisoned by --self-test before a pass is trusted): * A. the rail's rows are exactly the named sets: Posters = upg-100, country-posters, poster-design; - * Experimental = wall-of-people-groups, all-people-groups, upg-neighbor, bible-posters. Ids unique, + * Experimental = wall-of-people-groups, bible-posters (poster plugins only). Ids unique, * every row in a declared section. * B. no row names a NEVER bundle (key-cities, the shells themselves), and resolving the built * manifest WITH a key-cities bundle planted in it yields no key-cities row (the real manifest @@ -34,7 +34,7 @@ const ROOT = resolve(PLUGIN, '../..') const EXPECT = { posters: ['upg-100', 'country-posters', 'poster-design'], - experimental: ['wall-of-people-groups', 'all-people-groups', 'upg-neighbor', 'bible-posters'], + experimental: ['wall-of-people-groups', 'bible-posters'], } const GATED = 'key-cities' @@ -114,7 +114,7 @@ function selfTest(base) { const clone = (o) => JSON.parse(JSON.stringify(o)) const cases = [ ['A: key-cities added to Experimental', (c) => { c.TABS = [...c.TABS, { id: 'key-cities', section: 'experimental', bundle: 'key-cities', profile: 'key-cities' }] }, /^A: section experimental|^B: row key-cities/], - ['A: a row dropped', (c) => { c.TABS = c.TABS.filter((t) => t.id !== 'upg-neighbor') }, /^A: section experimental/], + ['A: a row dropped', (c) => { c.TABS = c.TABS.filter((t) => t.id !== 'wall-of-people-groups') }, /^A: section experimental/], ['B: resolver that shows whatever the manifest carries', (c) => { c.resolveTabs = (m) => (m.bundles || []).map((b) => ({ id: b.bundle, bundle: b.bundle, profile: b.bundle, tag: b.bundle, scriptUrl: b.scriptUrl })) }, /^B: resolution produced a key-cities row/], ['C: a composite row falls back to a leaf', (c) => { c.manifest = clone(c.manifest); const b = c.manifest.bundles.find((x) => x.bundle === 'my-upg-100-list'); b.profiles = b.profiles.filter((p) => p.profile !== 'upg-100-mfe') }, /^C: row upg-100 opens/], ['D: composes drift', (c) => { c.meta = { ...c.meta, composes: c.meta.composes.slice(1) } }, /^D: the rail shows/], diff --git a/plugin-designs/posterverse/src/strings.js b/plugin-designs/posterverse/src/strings.js index e426eb547..3915820a1 100644 --- a/plugin-designs/posterverse/src/strings.js +++ b/plugin-designs/posterverse/src/strings.js @@ -18,8 +18,8 @@ export const STRINGS = { 'tab.upg-100': 'UPG 100 List Posters', 'sub.upg-100': 'my unreached list + posters', 'tab.country-posters': 'Country Posters', 'sub.country-posters': 'a poster for every country', 'tab.poster-design': 'Poster Design', 'sub.poster-design': 'every poster style and size', - 'tab.wall-of-people-groups': 'Wall of People Groups', 'tab.all-people-groups': 'All People Groups', - 'tab.upg-neighbor': 'UPG Neighbor', 'tab.bible-posters': 'Bible Posters', + 'tab.wall-of-people-groups': 'Wall of People Groups', + 'tab.bible-posters': 'Bible Posters', experimentalSub: 'experimental bundle', lab: 'lab', loading: 'Loading {label}…', loadFailed: 'Could not load {label}.', manifestHint: 'This tab is composed from manifest.json — build the tree, or serve the built tree, to load it.', @@ -31,8 +31,8 @@ export const STRINGS = { 'tab.upg-100': 'Carteles de la lista UPG 100', 'sub.upg-100': 'mi lista de no alcanzados + carteles', 'tab.country-posters': 'Carteles por país', 'sub.country-posters': 'un cartel para cada país', 'tab.poster-design': 'Diseño de carteles', 'sub.poster-design': 'todos los estilos y tamaños de cartel', - 'tab.wall-of-people-groups': 'Muro de los pueblos', 'tab.all-people-groups': 'Todos los pueblos', - 'tab.upg-neighbor': 'Vecino UPG', 'tab.bible-posters': 'Carteles bíblicos', + 'tab.wall-of-people-groups': 'Muro de los pueblos', + 'tab.bible-posters': 'Carteles bíblicos', experimentalSub: 'mapa experimental', lab: 'beta', loading: 'Cargando {label}…', loadFailed: 'No se pudo cargar {label}.', manifestHint: 'Esta pestaña se compone a partir de manifest.json: compila el árbol o sirve el árbol compilado para cargarla.', @@ -44,8 +44,8 @@ export const STRINGS = { 'tab.upg-100': 'Affiches de la liste UPG 100', 'sub.upg-100': 'ma liste des non atteints + affiches', 'tab.country-posters': 'Affiches par pays', 'sub.country-posters': 'une affiche pour chaque pays', 'tab.poster-design': 'Conception d’affiches', 'sub.poster-design': 'tous les styles et formats d’affiche', - 'tab.wall-of-people-groups': 'Mur des peuples', 'tab.all-people-groups': 'Tous les peuples', - 'tab.upg-neighbor': 'Voisin UPG', 'tab.bible-posters': 'Affiches bibliques', + 'tab.wall-of-people-groups': 'Mur des peuples', + 'tab.bible-posters': 'Affiches bibliques', experimentalSub: 'carte expérimentale', lab: 'bêta', loading: 'Chargement de {label}…', loadFailed: 'Impossible de charger {label}.', manifestHint: "Cet onglet est composé à partir de manifest.json : construisez l'arborescence ou servez l'arborescence construite pour le charger.", @@ -57,8 +57,8 @@ export const STRINGS = { 'tab.upg-100': 'Poster der UPG 100 Liste', 'sub.upg-100': 'meine Liste der Unerreichten + Poster', 'tab.country-posters': 'Länderposter', 'sub.country-posters': 'ein Poster für jedes Land', 'tab.poster-design': 'Postergestaltung', 'sub.poster-design': 'alle Posterstile und -größen', - 'tab.wall-of-people-groups': 'Wand der Volksgruppen', 'tab.all-people-groups': 'Alle Volksgruppen', - 'tab.upg-neighbor': 'UPG-Nachbar', 'tab.bible-posters': 'Bibelposter', + 'tab.wall-of-people-groups': 'Wand der Volksgruppen', + 'tab.bible-posters': 'Bibelposter', experimentalSub: 'experimentelle Karte', lab: 'Beta', loading: '{label} wird geladen…', loadFailed: '{label} konnte nicht geladen werden.', manifestHint: 'Dieser Tab wird aus manifest.json zusammengesetzt – bauen Sie den Baum oder stellen Sie den gebauten Baum bereit, um ihn zu laden.', @@ -70,8 +70,8 @@ export const STRINGS = { 'tab.upg-100': 'Cartazes da lista UPG 100', 'sub.upg-100': 'minha lista de não alcançados + cartazes', 'tab.country-posters': 'Cartazes por país', 'sub.country-posters': 'um cartaz para cada país', 'tab.poster-design': 'Design de cartazes', 'sub.poster-design': 'todos os estilos e tamanhos de cartaz', - 'tab.wall-of-people-groups': 'Mural dos povos', 'tab.all-people-groups': 'Todos os povos', - 'tab.upg-neighbor': 'Vizinho UPG', 'tab.bible-posters': 'Cartazes bíblicos', + 'tab.wall-of-people-groups': 'Mural dos povos', + 'tab.bible-posters': 'Cartazes bíblicos', experimentalSub: 'mapa experimental', lab: 'beta', loading: 'Carregando {label}…', loadFailed: 'Não foi possível carregar {label}.', manifestHint: 'Esta aba é composta a partir do manifest.json — compile a árvore ou sirva a árvore compilada para carregá-la.', @@ -83,8 +83,8 @@ export const STRINGS = { 'tab.upg-100': 'Poster della lista UPG 100', 'sub.upg-100': 'la mia lista dei non raggiunti + poster', 'tab.country-posters': 'Poster per paese', 'sub.country-posters': 'un poster per ogni paese', 'tab.poster-design': 'Design dei poster', 'sub.poster-design': 'tutti gli stili e i formati dei poster', - 'tab.wall-of-people-groups': 'Muro dei popoli', 'tab.all-people-groups': 'Tutti i popoli', - 'tab.upg-neighbor': 'Vicino UPG', 'tab.bible-posters': 'Poster biblici', + 'tab.wall-of-people-groups': 'Muro dei popoli', + 'tab.bible-posters': 'Poster biblici', experimentalSub: 'mappa sperimentale', lab: 'beta', loading: 'Caricamento di {label}…', loadFailed: 'Impossibile caricare {label}.', manifestHint: "Questa scheda è composta da manifest.json: compila l'albero o pubblica l'albero compilato per caricarla.", @@ -96,8 +96,8 @@ export const STRINGS = { 'tab.upg-100': 'Afișe din lista UPG 100', 'sub.upg-100': 'lista mea de neatinși + afișe', 'tab.country-posters': 'Afișe pe țări', 'sub.country-posters': 'un afiș pentru fiecare țară', 'tab.poster-design': 'Design de afișe', 'sub.poster-design': 'toate stilurile și dimensiunile de afiș', - 'tab.wall-of-people-groups': 'Zidul popoarelor', 'tab.all-people-groups': 'Toate popoarele', - 'tab.upg-neighbor': 'Vecin UPG', 'tab.bible-posters': 'Afișe biblice', + 'tab.wall-of-people-groups': 'Zidul popoarelor', + 'tab.bible-posters': 'Afișe biblice', experimentalSub: 'hartă experimentală', lab: 'beta', loading: 'Se încarcă {label}…', loadFailed: '{label} nu a putut fi încărcat.', manifestHint: 'Această filă este compusă din manifest.json — construiți arborele sau serviți arborele construit pentru a o încărca.', @@ -109,8 +109,8 @@ export const STRINGS = { 'tab.upg-100': 'Плакаты списка UPG 100', 'sub.upg-100': 'мой список недостигнутых + плакаты', 'tab.country-posters': 'Плакаты по странам', 'sub.country-posters': 'плакат для каждой страны', 'tab.poster-design': 'Дизайн плакатов', 'sub.poster-design': 'все стили и размеры плакатов', - 'tab.wall-of-people-groups': 'Стена народов', 'tab.all-people-groups': 'Все народы', - 'tab.upg-neighbor': 'Сосед UPG', 'tab.bible-posters': 'Библейские плакаты', + 'tab.wall-of-people-groups': 'Стена народов', + 'tab.bible-posters': 'Библейские плакаты', experimentalSub: 'экспериментальная карта', lab: 'бета', loading: 'Загрузка: {label}…', loadFailed: 'Не удалось загрузить: {label}.', manifestHint: 'Эта вкладка собирается из manifest.json — соберите дерево или разместите собранное дерево, чтобы загрузить её.', @@ -122,8 +122,8 @@ export const STRINGS = { 'tab.upg-100': 'ملصقات قائمة UPG 100', 'sub.upg-100': 'قائمتي لغير المُبشَّرين + ملصقات', 'tab.country-posters': 'ملصقات الدول', 'sub.country-posters': 'ملصق لكل دولة', 'tab.poster-design': 'تصميم الملصقات', 'sub.poster-design': 'كل أنماط الملصقات وأحجامها', - 'tab.wall-of-people-groups': 'جدار الشعوب', 'tab.all-people-groups': 'جميع الشعوب', - 'tab.upg-neighbor': 'جار UPG', 'tab.bible-posters': 'ملصقات الكتاب المقدس', + 'tab.wall-of-people-groups': 'جدار الشعوب', + 'tab.bible-posters': 'ملصقات الكتاب المقدس', experimentalSub: 'خريطة تجريبية', lab: 'تجريبي', loading: 'جارٍ تحميل {label}…', loadFailed: 'تعذّر تحميل {label}.', manifestHint: 'تُبنى علامة التبويب هذه من manifest.json — ابنِ الشجرة أو قدّم الشجرة المبنية لتحميلها.', @@ -135,8 +135,8 @@ export const STRINGS = { 'tab.upg-100': 'UPG 100 सूची पोस्टर', 'sub.upg-100': 'मेरी अप्राप्त सूची + पोस्टर', 'tab.country-posters': 'देश पोस्टर', 'sub.country-posters': 'हर देश के लिए एक पोस्टर', 'tab.poster-design': 'पोस्टर डिज़ाइन', 'sub.poster-design': 'हर पोस्टर शैली और आकार', - 'tab.wall-of-people-groups': 'जनसमूहों की दीवार', 'tab.all-people-groups': 'सभी जनसमूह', - 'tab.upg-neighbor': 'UPG पड़ोसी', 'tab.bible-posters': 'बाइबल पोस्टर', + 'tab.wall-of-people-groups': 'जनसमूहों की दीवार', + 'tab.bible-posters': 'बाइबल पोस्टर', experimentalSub: 'प्रायोगिक मानचित्र', lab: 'बीटा', loading: '{label} लोड हो रहा है…', loadFailed: '{label} लोड नहीं हो सका।', manifestHint: 'यह टैब manifest.json से बनता है — इसे लोड करने के लिए ट्री बनाएँ या बना हुआ ट्री सर्व करें।', @@ -148,8 +148,8 @@ export const STRINGS = { 'tab.upg-100': 'UPG 100 名单海报', 'sub.upg-100': '我的未得之民名单 + 海报', 'tab.country-posters': '国家海报', 'sub.country-posters': '每个国家一张海报', 'tab.poster-design': '海报设计', 'sub.poster-design': '所有海报样式与尺寸', - 'tab.wall-of-people-groups': '民族之墙', 'tab.all-people-groups': '所有民族', - 'tab.upg-neighbor': 'UPG 邻居', 'tab.bible-posters': '圣经海报', + 'tab.wall-of-people-groups': '民族之墙', + 'tab.bible-posters': '圣经海报', experimentalSub: '实验性地图', lab: '测试版', loading: '正在加载{label}…', loadFailed: '无法加载{label}。', manifestHint: '此标签页由 manifest.json 组成——请构建目录树或提供已构建的目录树以加载它。', diff --git a/plugin-designs/posterverse/src/tabs.js b/plugin-designs/posterverse/src/tabs.js index 624a2016c..a5b1bd341 100644 --- a/plugin-designs/posterverse/src/tabs.js +++ b/plugin-designs/posterverse/src/tabs.js @@ -32,8 +32,6 @@ export const TABS = [ // Provisional ids: no poster-design bundle exists yet, so this row is pruned until one does. { id: 'poster-design', section: 'posters', icon: 'poster', bundle: 'poster-design', profile: 'poster-design-mfe', provisional: true }, { id: 'wall-of-people-groups', section: 'experimental', icon: 'flask', bundle: 'wall-of-people-groups', profile: 'wall-of-people-groups' }, - { id: 'all-people-groups', section: 'experimental', icon: 'flask', bundle: 'all-people-groups', profile: 'all-people-groups' }, - { id: 'upg-neighbor', section: 'experimental', icon: 'flask', bundle: 'upg-neighbor', profile: 'upg-neighbor' }, // Provisional ids: no bible-posters bundle exists yet, so this row is pruned until one does. { id: 'bible-posters', section: 'experimental', icon: 'flask', bundle: 'bible-posters', profile: 'bible-posters', provisional: true }, ] @@ -47,7 +45,7 @@ export const NEVER = new Set(['key-cities', 'posterverse', 'doxa-maps-spa', 'plu // (browsers keep ~8-16 live contexts and silently kill the oldest). Taken from the Research Gallery's // measured HEAVY_ELEMENTS for the tags this rail shows; any profile the manifest marks `isMap` is // treated as heavy too, so a new map row is bounded without an edit here. -const HEAVY_TAGS = new Set(['my-upg-100-list-map', 'country-posters-map', 'all-people-groups']) +const HEAVY_TAGS = new Set(['my-upg-100-list-map', 'country-posters-map']) /** * Complete each row from the manifest: the bundle's scriptUrl and the profile's element tag. A row From 7303483fd2625b1c1185ebee1163cb1da17f95fe Mon Sep 17 00:00:00 2001 From: Doxa Maps Date: Wed, 30 Sep 2026 22:22:14 +0000 Subject: [PATCH 3/3] Rebuild posterverse and regenerate the tree BUNDLE=posterverse vite build, then bun run tree and fix:sri. Only the posterverse entry changes in the manifest (its composes drop to three). --- public/dx-maps/doxa-maps-spa/manifest.json | 8 +++----- public/dx-maps/manifest.json | 8 +++----- public/dx-maps/posterverse/posterverse.js | 2 +- public/dx-maps/posterverse/posterverse/app/index.html | 2 +- public/dx-maps/posterverse/posterverse/index.html | 2 +- 5 files changed, 9 insertions(+), 13 deletions(-) diff --git a/public/dx-maps/doxa-maps-spa/manifest.json b/public/dx-maps/doxa-maps-spa/manifest.json index 123d8cfb3..b6cff9870 100644 --- a/public/dx-maps/doxa-maps-spa/manifest.json +++ b/public/dx-maps/doxa-maps-spa/manifest.json @@ -1069,16 +1069,14 @@ "bundle": "posterverse", "scriptUrl": "./posterverse/posterverse.js", "output": "dx-maps/posterverse/posterverse.js", - "integrity": "sha384-xwStH6d1rIR+LOJ9iBnJXyNFIMTzSQ51YA2+UhqJgloN4EeH6vYubtHY3JM9j7p0", + "integrity": "sha384-brdiKg/0LXeaLF4WmTdeiia1QKk9Qy2qn6MHrKnPM2HXAKMPxTfY98MuxGQWIwIS", "elements": [ "posterverse-app" ], "composes": [ "my-upg-100-list/upg-100-mfe", "country-posters/country-posters-mfe", - "wall-of-people-groups/wall-of-people-groups", - "all-people-groups/all-people-groups", - "upg-neighbor/upg-neighbor" + "wall-of-people-groups/wall-of-people-groups" ], "stage": "experimental", "profiles": [ @@ -1095,7 +1093,7 @@ "scriptUrl": "./posterverse/posterverse.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" }, "instances": [ { diff --git a/public/dx-maps/manifest.json b/public/dx-maps/manifest.json index 123d8cfb3..b6cff9870 100644 --- a/public/dx-maps/manifest.json +++ b/public/dx-maps/manifest.json @@ -1069,16 +1069,14 @@ "bundle": "posterverse", "scriptUrl": "./posterverse/posterverse.js", "output": "dx-maps/posterverse/posterverse.js", - "integrity": "sha384-xwStH6d1rIR+LOJ9iBnJXyNFIMTzSQ51YA2+UhqJgloN4EeH6vYubtHY3JM9j7p0", + "integrity": "sha384-brdiKg/0LXeaLF4WmTdeiia1QKk9Qy2qn6MHrKnPM2HXAKMPxTfY98MuxGQWIwIS", "elements": [ "posterverse-app" ], "composes": [ "my-upg-100-list/upg-100-mfe", "country-posters/country-posters-mfe", - "wall-of-people-groups/wall-of-people-groups", - "all-people-groups/all-people-groups", - "upg-neighbor/upg-neighbor" + "wall-of-people-groups/wall-of-people-groups" ], "stage": "experimental", "profiles": [ @@ -1095,7 +1093,7 @@ "scriptUrl": "./posterverse/posterverse.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" }, "instances": [ { diff --git a/public/dx-maps/posterverse/posterverse.js b/public/dx-maps/posterverse/posterverse.js index 707ab8a0d..579fe59c5 100644 --- a/public/dx-maps/posterverse/posterverse.js +++ b/public/dx-maps/posterverse/posterverse.js @@ -152,4 +152,4 @@ @media (prefers-reduced-motion: reduce) { .vtl-nav, .vtl-collapse-ic, .vtl-tab, .vtl-tier, .vtl-fab, .vtl-scrim { transition: none !important; animation: none !important; } } -`,Al=Yo({name:"VerticalTabsLayout",components:{BackToTopButton:_r},props:{active:{type:String,default:""},title:{type:String,default:""},items:{type:Array,default:()=>[]},groups:{type:Array,default:()=>[]},navLabel:{type:String,default:"Sections"},labels:{type:Object,default:()=>({})},initialNavOpen:{type:Boolean,default:!0},header:{type:Boolean,default:!0},initialRailCollapsed:{type:Boolean,default:!1},homeHref:{type:String,default:""},homeLabel:{type:String,default:""}},emits:["update:active"],setup(){return _l(Pl,"vertical-tabs-layout"),{T:Ml}},data(){return{navOpen:this.initialNavOpen,railCollapsed:this.initialRailCollapsed,_tabEls:{},folderOverride:{},narrow:!1,_mql:null,_onMedia:null,activatedKeys:{},hostState:{},hostError:{},_hostSlots:{},_hostMounted:{},hostEls:{}}},computed:{fabShown(){return this.narrow&&!this.header&&!this.navOpen},activeHostEl(){return this.hostEls[this.active]||null},railShown(){return this.narrow?this.navOpen:!0},homeLink(){const e=String(this.homeHref||"").trim();return!e||/^(javascript|data|vbscript):/i.test(e.replace(/[\u0000- ]/g,""))?"":e},homeText(){return this.homeLabel||this.label("home")},allRows(){if(this.groups&&this.groups.length){const e=[];for(const t of this.groups)for(const o of t.rows||[])e.push(o);return e}return this.items},orderedKeys(){return this.allRows.map(e=>e.key)},elementRows(){return this.allRows.filter(e=>e&&e.element)},mountedElementRows(){return this.elementRows.filter(e=>this.activatedKeys[e.key])}},watch:{active:{immediate:!0,handler(e){this.activateElement(e)}}},mounted(){try{window.matchMedia&&(this._mql=window.matchMedia("(max-width: 760px)"),this.narrow=this._mql.matches,this.reconcileForWidth(),this._onMedia=e=>{this.narrow=e.matches,this.reconcileForWidth()},this._mql.addEventListener?this._mql.addEventListener("change",this._onMedia):this._mql.addListener&&this._mql.addListener(this._onMedia))}catch{}this.$nextTick(()=>this.activateElement(this.active))},beforeUnmount(){try{this._mql&&this._onMedia&&(this._mql.removeEventListener?this._mql.removeEventListener("change",this._onMedia):this._mql.removeListener&&this._mql.removeListener(this._onMedia))}catch{}this._mql=null,this._onMedia=null},methods:{registerTab(e,t){t&&(this._tabEls[e]=t)},isNarrow(){return this.narrow},reconcileForWidth(){this.narrow?(this.navOpen=!1,this.railCollapsed=!1):this.navOpen=!0},label(e){const t={toggleList:"Toggle list",openViews:"Open the list of views",expandList:"Expand list",collapseList:"Collapse list",collapse:"Collapse",home:"Back to homepage"};return this.labels&&this.labels[e]||t[e]},expandRail(){!this.narrow&&this.railCollapsed&&(this.railCollapsed=!1)},toggleRail(){this.narrow?this.navOpen=!this.navOpen:this.railCollapsed=!this.railCollapsed},setHostSlot(e,t){t&&(this._hostSlots[e]=t,this.$nextTick(()=>this.mountHostElement(e)))},activateElement(e){!e||!this.elementRows.find(o=>o.key===e)||(this.activatedKeys[e]||(this.activatedKeys={...this.activatedKeys,[e]:!0},this.$nextTick(()=>this.watchContextLoss(e)),this.hostState={...this.hostState,[e]:"loading"}),this.$nextTick(()=>this.mountHostElement(e)))},deepCanvases(e,t=[]){if(!e)return t;for(const o of e.querySelectorAll("*"))o.tagName==="CANVAS"&&t.push(o),o.shadowRoot&&this.deepCanvases(o.shadowRoot,t);return t},watchContextLoss(e){const t=this._hostSlots[e];if(t)for(const o of this.deepCanvases(t))o.__vtlLossBound||(o.__vtlLossBound=!0,o.addEventListener("webglcontextlost",()=>{this.hostState={...this.hostState,[e]:"lost"}},{once:!0}))},reloadHostElement(e){const t=this._hostSlots[e];t&&(t.innerHTML=""),this._hostMounted[e]=!1,this.hostState={...this.hostState,[e]:"loading"},this.$nextTick(()=>this.mountHostElement(e))},mountHostElement(e){if(this._hostMounted[e])return;const t=this.elementRows.find(n=>n.key===e),o=this._hostSlots[e];!t||!o||(this._hostMounted[e]=!0,this.hostState={...this.hostState,[e]:"loading"},Ll(t.src).then(()=>Ol(t.element)).then(()=>{xl(t.element,t.src),o.innerHTML="";const n=document.createElement(t.element),s=t.attrs||{};for(const r in s){const a=s[r],i=a!=null&&typeof a=="object"?JSON.stringify(a):String(a);try{n[r]=a}catch{}try{n.setAttribute(r,i)}catch{}}n.style.cssText="display:block;position:absolute;inset:0;width:100%;height:100%;",o.appendChild(n);for(const r of[0,250,1500])setTimeout(()=>this.watchContextLoss(e),r);this.hostState={...this.hostState,[e]:"ready"}}).catch(n=>{this._hostMounted[e]=!1,this.hostState={...this.hostState,[e]:"error"},this.hostError={...this.hostError,[e]:n&&n.message||String(n)}}))},iconSvg(e){return e?yl(e):""},initial(e){const t=(e||"").trim();return t?t.charAt(0).toUpperCase():"•"},isFolderClosed(e){const t=this.folderOverride[e.key];return t!=null?!t:e.open!==!0},toggleFolder(e){const t=this.folderOverride[e],o=(this.groups||[]).find(s=>s.key===e),n=t??(o&&o.open===!0);this.folderOverride={...this.folderOverride,[e]:!n}},pick(e){this.$emit("update:active",e),this.narrow&&(this.navOpen=!1)},onKey(e){const t=this.orderedKeys;if(!t.length)return;const o=t.indexOf(this.active);let n=-1;if(e.key==="ArrowDown"||e.key==="ArrowRight")n=(o+1)%t.length;else if(e.key==="ArrowUp"||e.key==="ArrowLeft")n=(o-1+t.length)%t.length;else if(e.key==="Home")n=0;else if(e.key==="End")n=t.length-1;else return;e.preventDefault();const s=t[n];this.pick(s),this.$nextTick(()=>{const r=this._tabEls[s];r&&r.focus&&r.focus()})}}}),Cl={key:0,class:"vtl-top"},Fl=["aria-expanded","aria-label"],Il={class:"vtl-brand"},Nl={class:"vtl-title"},El={class:"vtl-meta"},Rl=["aria-expanded","aria-label"],Wl={class:"vtl-body"},Dl=["aria-label","aria-hidden","role","aria-orientation"],zl=["href","aria-label","title"],Hl=["innerHTML"],Bl={class:"vtl-home-tx"},Ul=["aria-expanded","aria-label"],jl=["innerHTML"],Vl={class:"vtl-collapse-tx"},ql=["aria-expanded","onClick"],Kl={key:0,class:"vtl-cap"},Gl={class:"vtl-tl"},Jl={key:1,class:"vtl-td"},Xl=["innerHTML"],Zl={key:1,class:"vtl-tier"},Yl={key:0,class:"vtl-cap"},Ql={class:"vtl-tl"},ec={key:1,class:"vtl-td"},tc={class:"vtl-rows"},oc=["aria-selected","aria-disabled","tabindex","onClick"],nc=["innerHTML"],sc={key:1,class:"vtl-tab-emoji","aria-hidden":"true"},rc={key:2,class:"vtl-tab-fallback","aria-hidden":"true"},ic={class:"vtl-tab-text"},ac={class:"vtl-tab-label"},lc={key:0,class:"vtl-tab-badge"},cc={key:0,class:"vtl-tab-sub"},pc=["innerHTML"],dc=["aria-selected","aria-disabled","tabindex","onClick"],uc=["innerHTML"],fc={key:1,class:"vtl-tab-emoji","aria-hidden":"true"},hc={key:2,class:"vtl-tab-fallback","aria-hidden":"true"},gc={class:"vtl-tab-text"},mc={class:"vtl-tab-label"},$c={key:0,class:"vtl-tab-sub"},bc={class:"vtl-main"},_c={class:"vtl-content"},vc=["hidden"],yc={key:0,class:"vtl-host-hint"},wc={key:1,class:"vtl-host-hint"},xc=["onClick"],Tc={key:2,class:"vtl-host-hint err"};function kc(e,t,o,n,s,r){const a=tn("BackToTopButton");return C(),F("div",{class:Xe(["vtl",{"nav-open":e.navOpen,"rail-collapsed":e.railCollapsed,"no-header":!e.header}]),style:Jt(e.fabShown?{"--map-fab-clearance":"calc(56px + env(safe-area-inset-bottom))","--map-fab-beside":"calc(56px + env(safe-area-inset-left))"}:null)},[e.header?(C(),F("header",Cl,[I("button",{class:"vtl-menu",type:"button","aria-expanded":String(e.navOpen),onClick:t[0]||(t[0]=i=>e.navOpen=!e.navOpen),"aria-label":e.label("toggleList")},"☰",8,Fl),I("span",Il,[Mt(e.$slots,"brand")]),I("b",Nl,D(e.title),1),I("span",El,[Mt(e.$slots,"meta")])])):le("",!0),e.fabShown?(C(),F("button",{key:1,class:"vtl-fab",type:"button","aria-expanded":String(e.navOpen),onClick:t[1]||(t[1]=i=>e.navOpen=!0),"aria-label":e.label("openViews")},"☰",8,Rl)):le("",!0),e.narrow?(C(),At(a,{key:2,target:e.activeHostEl,labels:{backToTop:e.T("actions.backToTop","Back to top")}},null,8,["target","labels"])):le("",!0),I("div",Wl,[I("nav",{class:"vtl-nav","aria-label":e.navLabel,"aria-hidden":String(!e.railShown),role:e.$slots.rail?null:"tablist","aria-orientation":e.$slots.rail?null:"vertical"},[e.homeLink?(C(),F("a",{key:0,class:"vtl-home",href:e.homeLink,target:"_top","aria-label":e.homeText,title:e.railCollapsed&&!e.narrow?e.homeText:null},[I("span",{class:"vtl-home-ic","aria-hidden":"true",innerHTML:e.iconSvg("home")},null,8,Hl),I("span",Bl,D(e.homeText),1)],8,zl)):le("",!0),I("button",{type:"button",class:"vtl-collapse","aria-expanded":String(!e.railCollapsed),"aria-label":e.railCollapsed?e.label("expandList"):e.label("collapseList"),onClick:t[2]||(t[2]=(...i)=>e.toggleRail&&e.toggleRail(...i))},[I("span",{class:"vtl-collapse-ic","aria-hidden":"true",innerHTML:e.iconSvg("chevron")},null,8,jl),I("span",Vl,D(e.label("collapse")),1)],8,Ul),e.$slots.rail?Mt(e.$slots,"rail",{collapsed:e.railCollapsed&&!e.narrow,expand:e.expandRail,pick:e.pick},void 0,void 0,1):e.groups&&e.groups.length?(C(!0),F(oe,{key:2},St(e.groups,i=>(C(),F("div",{class:"vtl-grp",key:i.key},[i.folder?(C(),F("button",{key:0,type:"button",class:"vtl-tier vtl-tier-btn","aria-expanded":String(!e.isFolderClosed(i)),onClick:l=>e.toggleFolder(i.key)},[i.badge?(C(),F("span",Kl,D(i.badge),1)):le("",!0),I("span",Gl,D(i.label),1),i.count!=null?(C(),F("span",Jl,D(i.count),1)):le("",!0),I("span",{class:Xe(["vtl-chev",{open:!e.isFolderClosed(i)}]),"aria-hidden":"true",innerHTML:e.iconSvg("chevron")},null,10,Xl)],8,ql)):(C(),F("div",Zl,[i.badge?(C(),F("span",Yl,D(i.badge),1)):le("",!0),I("span",Ql,D(i.label),1),i.count!=null?(C(),F("span",ec,D(i.count),1)):le("",!0)])),Jo(I("div",tc,[(C(!0),F(oe,null,St(i.rows,l=>(C(),F("button",{key:l.key,type:"button",role:"tab",class:Xe(["vtl-tab",{active:l.key===e.active,disabled:l.disabled}]),"aria-selected":String(l.key===e.active),"aria-disabled":l.disabled?"true":null,tabindex:l.key===e.active?0:-1,ref_for:!0,ref:p=>e.registerTab(l.key,p),onClick:p=>e.pick(l.key),onKeydown:t[3]||(t[3]=p=>e.onKey(p))},[l.icon?(C(),F("span",{key:0,class:"vtl-tab-ic","aria-hidden":"true",innerHTML:e.iconSvg(l.icon)},null,8,nc)):l.emoji?(C(),F("span",sc,D(l.emoji),1)):(C(),F("span",rc,D(e.initial(l.label)),1)),I("span",ic,[I("span",ac,[ht(D(l.label),1),l.badge?(C(),F("span",lc,D(l.badge),1)):le("",!0)]),l.sub?(C(),F("span",cc,[I("span",{innerHTML:l.sub},null,8,pc)])):le("",!0)])],42,oc))),128))],512),[[gn,!i.folder||!e.isFolderClosed(i)]])]))),128)):(C(!0),F(oe,{key:3},St(e.items,i=>(C(),F("button",{key:i.key,type:"button",role:"tab",class:Xe(["vtl-tab",{active:i.key===e.active,disabled:i.disabled}]),"aria-selected":String(i.key===e.active),"aria-disabled":i.disabled?"true":null,tabindex:i.key===e.active?0:-1,ref_for:!0,ref:l=>e.registerTab(i.key,l),onClick:l=>e.pick(i.key),onKeydown:t[4]||(t[4]=l=>e.onKey(l))},[i.icon?(C(),F("span",{key:0,class:"vtl-tab-ic","aria-hidden":"true",innerHTML:e.iconSvg(i.icon)},null,8,uc)):i.emoji?(C(),F("span",fc,D(i.emoji),1)):(C(),F("span",hc,D(e.initial(i.label)),1)),I("span",gc,[I("span",mc,D(i.label),1),i.sub?(C(),F("span",$c,D(i.sub),1)):le("",!0)])],42,dc))),128))],8,Dl),I("main",bc,[e.header?Mt(e.$slots,"toolbar",{},void 0,void 0,0):le("",!0),I("div",_c,[(C(!0),F(oe,null,St(e.mountedElementRows,i=>Jo((C(),F("section",{key:i.key,class:"vtl-host",hidden:i.key!==e.active,ref_for:!0,ref:l=>{l?e.hostEls[i.key]=l:delete e.hostEls[i.key]}},[I("div",{class:"vtl-host-slot",ref_for:!0,ref:l=>e.setHostSlot(i.key,l)},null,512),e.hostState[i.key]==="loading"?(C(),F("div",yc,D(e.T("messages.loadingNamed","Loading {name}…").replace("{name}",i.label)),1)):e.hostState[i.key]==="lost"?(C(),F("div",wc,[ht(D(e.T("messages.mapContextLost","This map was unloaded to free graphics memory."))+" ",1),I("button",{type:"button",class:"vtl-host-reload",onClick:l=>e.reloadHostElement(i.key)},D(e.T("buttons.reloadMap","Reload Map")),9,xc)])):e.hostState[i.key]==="error"?(C(),F("div",Tc,[ht(D(e.T("messages.couldNotLoadNamed","Could not load {name}.").replace("{name}",i.label)),1),t[5]||(t[5]=I("br",null,null,-1)),I("small",null,D(e.hostError[i.key]),1)])):le("",!0)],8,vc)),[[gn,i.key===e.active]])),128)),Mt(e.$slots,"default")])])])],6)}const Sc=_n(Al,[["render",kc],["styles",[Sl]]]),yo={en:{"sec.posters":"Posters","sec.experimental":"Experimental","tab.upg-100":"UPG 100 List Posters","sub.upg-100":"my unreached list + posters","tab.country-posters":"Country Posters","sub.country-posters":"a poster for every country","tab.poster-design":"Poster Design","sub.poster-design":"every poster style and size","tab.wall-of-people-groups":"Wall of People Groups","tab.all-people-groups":"All People Groups","tab.upg-neighbor":"UPG Neighbor","tab.bible-posters":"Bible Posters",experimentalSub:"experimental bundle",lab:"lab",loading:"Loading {label}…",loadFailed:"Could not load {label}.",manifestHint:"This tab is composed from manifest.json — build the tree, or serve the built tree, to load it.",backToTop:"Back to top",toggleList:"Toggle list",openViews:"Open the list of views",expandList:"Expand list",collapseList:"Collapse list",collapse:"Collapse"},es:{"sec.posters":"Carteles","sec.experimental":"Experimental","tab.upg-100":"Carteles de la lista UPG 100","sub.upg-100":"mi lista de no alcanzados + carteles","tab.country-posters":"Carteles por país","sub.country-posters":"un cartel para cada país","tab.poster-design":"Diseño de carteles","sub.poster-design":"todos los estilos y tamaños de cartel","tab.wall-of-people-groups":"Muro de los pueblos","tab.all-people-groups":"Todos los pueblos","tab.upg-neighbor":"Vecino UPG","tab.bible-posters":"Carteles bíblicos",experimentalSub:"mapa experimental",lab:"beta",loading:"Cargando {label}…",loadFailed:"No se pudo cargar {label}.",manifestHint:"Esta pestaña se compone a partir de manifest.json: compila el árbol o sirve el árbol compilado para cargarla.",backToTop:"Volver arriba",toggleList:"Mostrar u ocultar la lista",openViews:"Abrir la lista de vistas",expandList:"Expandir la lista",collapseList:"Contraer la lista",collapse:"Contraer"},fr:{"sec.posters":"Affiches","sec.experimental":"Expérimental","tab.upg-100":"Affiches de la liste UPG 100","sub.upg-100":"ma liste des non atteints + affiches","tab.country-posters":"Affiches par pays","sub.country-posters":"une affiche pour chaque pays","tab.poster-design":"Conception d’affiches","sub.poster-design":"tous les styles et formats d’affiche","tab.wall-of-people-groups":"Mur des peuples","tab.all-people-groups":"Tous les peuples","tab.upg-neighbor":"Voisin UPG","tab.bible-posters":"Affiches bibliques",experimentalSub:"carte expérimentale",lab:"bêta",loading:"Chargement de {label}…",loadFailed:"Impossible de charger {label}.",manifestHint:"Cet onglet est composé à partir de manifest.json : construisez l'arborescence ou servez l'arborescence construite pour le charger.",backToTop:"Retour en haut",toggleList:"Afficher ou masquer la liste",openViews:"Ouvrir la liste des vues",expandList:"Déplier la liste",collapseList:"Replier la liste",collapse:"Replier"},de:{"sec.posters":"Poster","sec.experimental":"Experimentell","tab.upg-100":"Poster der UPG 100 Liste","sub.upg-100":"meine Liste der Unerreichten + Poster","tab.country-posters":"Länderposter","sub.country-posters":"ein Poster für jedes Land","tab.poster-design":"Postergestaltung","sub.poster-design":"alle Posterstile und -größen","tab.wall-of-people-groups":"Wand der Volksgruppen","tab.all-people-groups":"Alle Volksgruppen","tab.upg-neighbor":"UPG-Nachbar","tab.bible-posters":"Bibelposter",experimentalSub:"experimentelle Karte",lab:"Beta",loading:"{label} wird geladen…",loadFailed:"{label} konnte nicht geladen werden.",manifestHint:"Dieser Tab wird aus manifest.json zusammengesetzt – bauen Sie den Baum oder stellen Sie den gebauten Baum bereit, um ihn zu laden.",backToTop:"Nach oben",toggleList:"Liste ein-/ausblenden",openViews:"Ansichtsliste öffnen",expandList:"Liste ausklappen",collapseList:"Liste einklappen",collapse:"Einklappen"},pt:{"sec.posters":"Cartazes","sec.experimental":"Experimental","tab.upg-100":"Cartazes da lista UPG 100","sub.upg-100":"minha lista de não alcançados + cartazes","tab.country-posters":"Cartazes por país","sub.country-posters":"um cartaz para cada país","tab.poster-design":"Design de cartazes","sub.poster-design":"todos os estilos e tamanhos de cartaz","tab.wall-of-people-groups":"Mural dos povos","tab.all-people-groups":"Todos os povos","tab.upg-neighbor":"Vizinho UPG","tab.bible-posters":"Cartazes bíblicos",experimentalSub:"mapa experimental",lab:"beta",loading:"Carregando {label}…",loadFailed:"Não foi possível carregar {label}.",manifestHint:"Esta aba é composta a partir do manifest.json — compile a árvore ou sirva a árvore compilada para carregá-la.",backToTop:"Voltar ao topo",toggleList:"Mostrar ou ocultar a lista",openViews:"Abrir a lista de visualizações",expandList:"Expandir a lista",collapseList:"Recolher a lista",collapse:"Recolher"},it:{"sec.posters":"Poster","sec.experimental":"Sperimentale","tab.upg-100":"Poster della lista UPG 100","sub.upg-100":"la mia lista dei non raggiunti + poster","tab.country-posters":"Poster per paese","sub.country-posters":"un poster per ogni paese","tab.poster-design":"Design dei poster","sub.poster-design":"tutti gli stili e i formati dei poster","tab.wall-of-people-groups":"Muro dei popoli","tab.all-people-groups":"Tutti i popoli","tab.upg-neighbor":"Vicino UPG","tab.bible-posters":"Poster biblici",experimentalSub:"mappa sperimentale",lab:"beta",loading:"Caricamento di {label}…",loadFailed:"Impossibile caricare {label}.",manifestHint:"Questa scheda è composta da manifest.json: compila l'albero o pubblica l'albero compilato per caricarla.",backToTop:"Torna su",toggleList:"Mostra o nascondi l’elenco",openViews:"Apri l’elenco delle viste",expandList:"Espandi l’elenco",collapseList:"Comprimi l’elenco",collapse:"Comprimi"},ro:{"sec.posters":"Afișe","sec.experimental":"Experimental","tab.upg-100":"Afișe din lista UPG 100","sub.upg-100":"lista mea de neatinși + afișe","tab.country-posters":"Afișe pe țări","sub.country-posters":"un afiș pentru fiecare țară","tab.poster-design":"Design de afișe","sub.poster-design":"toate stilurile și dimensiunile de afiș","tab.wall-of-people-groups":"Zidul popoarelor","tab.all-people-groups":"Toate popoarele","tab.upg-neighbor":"Vecin UPG","tab.bible-posters":"Afișe biblice",experimentalSub:"hartă experimentală",lab:"beta",loading:"Se încarcă {label}…",loadFailed:"{label} nu a putut fi încărcat.",manifestHint:"Această filă este compusă din manifest.json — construiți arborele sau serviți arborele construit pentru a o încărca.",backToTop:"Sus",toggleList:"Afișează sau ascunde lista",openViews:"Deschide lista de vizualizări",expandList:"Extinde lista",collapseList:"Restrânge lista",collapse:"Restrânge"},ru:{"sec.posters":"Плакаты","sec.experimental":"Экспериментальное","tab.upg-100":"Плакаты списка UPG 100","sub.upg-100":"мой список недостигнутых + плакаты","tab.country-posters":"Плакаты по странам","sub.country-posters":"плакат для каждой страны","tab.poster-design":"Дизайн плакатов","sub.poster-design":"все стили и размеры плакатов","tab.wall-of-people-groups":"Стена народов","tab.all-people-groups":"Все народы","tab.upg-neighbor":"Сосед UPG","tab.bible-posters":"Библейские плакаты",experimentalSub:"экспериментальная карта",lab:"бета",loading:"Загрузка: {label}…",loadFailed:"Не удалось загрузить: {label}.",manifestHint:"Эта вкладка собирается из manifest.json — соберите дерево или разместите собранное дерево, чтобы загрузить её.",backToTop:"Наверх",toggleList:"Показать или скрыть список",openViews:"Открыть список представлений",expandList:"Развернуть список",collapseList:"Свернуть список",collapse:"Свернуть"},ar:{"sec.posters":"ملصقات","sec.experimental":"تجريبي","tab.upg-100":"ملصقات قائمة UPG 100","sub.upg-100":"قائمتي لغير المُبشَّرين + ملصقات","tab.country-posters":"ملصقات الدول","sub.country-posters":"ملصق لكل دولة","tab.poster-design":"تصميم الملصقات","sub.poster-design":"كل أنماط الملصقات وأحجامها","tab.wall-of-people-groups":"جدار الشعوب","tab.all-people-groups":"جميع الشعوب","tab.upg-neighbor":"جار UPG","tab.bible-posters":"ملصقات الكتاب المقدس",experimentalSub:"خريطة تجريبية",lab:"تجريبي",loading:"جارٍ تحميل {label}…",loadFailed:"تعذّر تحميل {label}.",manifestHint:"تُبنى علامة التبويب هذه من manifest.json — ابنِ الشجرة أو قدّم الشجرة المبنية لتحميلها.",backToTop:"إلى الأعلى",toggleList:"إظهار القائمة أو إخفاؤها",openViews:"فتح قائمة العروض",expandList:"توسيع القائمة",collapseList:"طي القائمة",collapse:"طي"},hi:{"sec.posters":"पोस्टर","sec.experimental":"प्रायोगिक","tab.upg-100":"UPG 100 सूची पोस्टर","sub.upg-100":"मेरी अप्राप्त सूची + पोस्टर","tab.country-posters":"देश पोस्टर","sub.country-posters":"हर देश के लिए एक पोस्टर","tab.poster-design":"पोस्टर डिज़ाइन","sub.poster-design":"हर पोस्टर शैली और आकार","tab.wall-of-people-groups":"जनसमूहों की दीवार","tab.all-people-groups":"सभी जनसमूह","tab.upg-neighbor":"UPG पड़ोसी","tab.bible-posters":"बाइबल पोस्टर",experimentalSub:"प्रायोगिक मानचित्र",lab:"बीटा",loading:"{label} लोड हो रहा है…",loadFailed:"{label} लोड नहीं हो सका।",manifestHint:"यह टैब manifest.json से बनता है — इसे लोड करने के लिए ट्री बनाएँ या बना हुआ ट्री सर्व करें।",backToTop:"ऊपर जाएँ",toggleList:"सूची दिखाएँ या छिपाएँ",openViews:"दृश्यों की सूची खोलें",expandList:"सूची फैलाएँ",collapseList:"सूची संक्षिप्त करें",collapse:"संक्षिप्त करें"},zh:{"sec.posters":"海报","sec.experimental":"实验性","tab.upg-100":"UPG 100 名单海报","sub.upg-100":"我的未得之民名单 + 海报","tab.country-posters":"国家海报","sub.country-posters":"每个国家一张海报","tab.poster-design":"海报设计","sub.poster-design":"所有海报样式与尺寸","tab.wall-of-people-groups":"民族之墙","tab.all-people-groups":"所有民族","tab.upg-neighbor":"UPG 邻居","tab.bible-posters":"圣经海报",experimentalSub:"实验性地图",lab:"测试版",loading:"正在加载{label}…",loadFailed:"无法加载{label}。",manifestHint:"此标签页由 manifest.json 组成——请构建目录树或提供已构建的目录树以加载它。",backToTop:"回到顶部",toggleList:"显示或隐藏列表",openViews:"打开视图列表",expandList:"展开列表",collapseList:"折叠列表",collapse:"折叠"}},wn=Object.keys(yo);function Mc(e,t,o){let s=(yo[e]||yo.en)[t]??yo.en[t]??t;if(o)for(const r in o)s=s.split("{"+r+"}").join(String(o[r]));return s}const Lc=[{key:"posters",i18n:"sec.posters",icon:"poster"},{key:"experimental",i18n:"sec.experimental",icon:"flask",folder:!0,open:!1}],Or=[{id:"upg-100",section:"posters",icon:"list",bundle:"my-upg-100-list",profile:"upg-100-mfe"},{id:"country-posters",section:"posters",icon:"map",bundle:"country-posters",profile:"country-posters-mfe"},{id:"poster-design",section:"posters",icon:"poster",bundle:"poster-design",profile:"poster-design-mfe",provisional:!0},{id:"wall-of-people-groups",section:"experimental",icon:"flask",bundle:"wall-of-people-groups",profile:"wall-of-people-groups"},{id:"all-people-groups",section:"experimental",icon:"flask",bundle:"all-people-groups",profile:"all-people-groups"},{id:"upg-neighbor",section:"experimental",icon:"flask",bundle:"upg-neighbor",profile:"upg-neighbor"},{id:"bible-posters",section:"experimental",icon:"flask",bundle:"bible-posters",profile:"bible-posters",provisional:!0}],Oc=new Set(["key-cities","posterverse","doxa-maps-spa","plugin-studio"]),Pc=new Set(["my-upg-100-list-map","country-posters-map","all-people-groups"]);function Ac(e,t=()=>{}){const o=e&&Array.isArray(e.bundles)?e.bundles:[],n=Object.fromEntries(o.map(r=>[r&&r.bundle,r])),s=[];for(const r of Or){if(Oc.has(r.bundle))continue;const a=n[r.bundle];if(!a)continue;const i=Array.isArray(a.profiles)?a.profiles:[];let l=i.find(h=>h&&h.profile===r.profile);if(!l){if(l=i.find(h=>h&&h.profile===r.bundle)||i[0],!l)continue;t(`[posterverse] ${r.bundle} has no profile "${r.profile}"; row "${r.id}" opens "${l.profile}" instead`)}const p=l.element||Array.isArray(a.elements)&&a.elements[0]||r.bundle,d=a.scriptUrl||l.scriptUrl||"";d&&s.push({...r,tag:p,scriptUrl:d,profile:l.profile,heavy:Pc.has(p)||!!l.isMap})}return s}const Cc=":host{display:block;position:relative;height:var(--posterverse-height, 85vh);min-height:480px}:host{font-size:16px;line-height:normal;font-weight:400;font-style:normal;font-variant:normal;font-stretch:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;text-align:start;text-indent:0;text-shadow:none;white-space:normal;-webkit-hyphens:manual;hyphens:manual;visibility:visible;cursor:auto}:host([hidden]){display:none}.pv-pane{position:absolute;top:0;right:0;bottom:0;left:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;--profile-min-h: 0}.pv-slot{position:relative;min-height:100%}.pv-hint{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;text-align:center;color:#6d766e;font-size:13px;padding:20px}.pv-hint.err{color:#b3261e}.pv-hint small{color:#6d766e}";function Pr(){try{const e=new URLSearchParams(location.search),t=(e.get("lang")||e.get("locale")||"").split("-")[0].toLowerCase();if(wn.includes(t))return t}catch{}try{const e=(document.documentElement.lang||"").split("-")[0].toLowerCase();if(wn.includes(e))return e}catch{}return""}const Ar=e=>({...e,tag:e.tag||"",scriptUrl:e.scriptUrl||"",heavy:!!e.heavy,mounted:!1,state:"idle",error:""}),Fc=Yo({name:"Posterverse",inheritAttrs:!1,components:{VerticalTabsLayout:Sc,BackToTopButton:_r},props:{treeBase:{type:String,default:""},profileConfig:{type:[String,Object],default:""},heading:{type:String,default:"Posterverse"},tokenUrl:{type:String,default:""},tk:{type:String,default:""},language:{type:String,default:""},apiBaseUrl:{type:String,default:""},provider:{type:String,default:""},tab:{type:String,default:""}},emits:["tab-change"],setup(){return{injectedBase:Tt("pvTreeBase","")}},data(){return{paneEls:{},activeIndex:0,manifestError:"",manifestBase:"",runtime:{},hostLang:Pr(),tabs:Or.filter(e=>!e.provisional).map(Ar)}},computed:{cfg(){let e=this.profileConfig;if(typeof e=="string")try{e=e?JSON.parse(e):{}}catch{e={}}return e&&typeof e=="object"?e:{}},base(){const e=String(this.treeBase||this.cfg.treeBase||this.injectedBase||"").trim();return e?e.replace(/\/+$/,"")+"/":""},assetsBase(){const e=String(this.cfg.assetsBase||"").trim();return/^https?:\/\//i.test(e)||e.startsWith("/")?e.replace(/\/+$/,""):this.manifestBase?this.manifestBase.replace(/\/+$/,"")+"/assets":""},headingText(){return String(this.cfg.heading||this.heading||"").trim()||"Posterverse"},effectiveLocale(){return(String(this.language||this.cfg.language||this.cfg.locale||this.cfg.lang||"").trim()||this.hostLang||"en").split("-")[0].toLowerCase()},uiLocale(){return wn.includes(this.effectiveLocale)?this.effectiveLocale:"en"},uiDir(){return this.uiLocale==="ar"?"rtl":"ltr"},layoutLabels(){const e={};for(const t of["toggleList","openViews","expandList","collapseList","collapse"])e[t]=this.tr(t);return e},effectiveProvider(){const e=String(this.provider||this.cfg.provider||"").trim().toLowerCase();return e==="maplibre"||e==="mapbox"?e:""},activeKey(){const e=this.tabs[this.activeIndex];return e?e.id:""},activePaneEl(){return this.paneEls[this.activeIndex]||null},navGroups(){return Lc.map(e=>({key:e.key,label:this.tr(e.i18n),icon:e.icon,folder:!!e.folder,open:e.open,rows:this.tabs.filter(t=>t.section===e.key).map(t=>({key:t.id,label:this.tabLabel(t),sub:this.tabSub(t),icon:t.icon,badge:e.folder?this.tr("lab"):void 0}))})).filter(e=>e.rows.length)}},watch:{effectiveLocale(){const e=(o,n)=>{try{const s=this._slots&&this._slots[o];s&&(s.innerHTML="")}catch{}n.mounted=!1,n.state="idle",n.error=""};this.tabs.forEach((o,n)=>{o.mounted&&n!==this.activeIndex&&e(n,o)});const t=this.tabs[this.activeIndex];!t||!t.mounted||(e(this.activeIndex,t),this.mountElement(this.activeIndex))},tab(e){e&&this.onSelect(e)}},mounted(){this.watchHostLang(),this.select(this.initialIndex()),this.loadManifest()},beforeUnmount(){this._langObs&&(this._langObs.disconnect(),this._langObs=null)},methods:{tr(e,t){return Mc(this.uiLocale,e,t)},tabLabel(e){return this.tr("tab."+e.id)},tabSub(e){return e.section==="experimental"?this.tr("experimentalSub"):this.tr("sub."+e.id)},setSlot(e,t){t&&(this._slots=Object.assign(this._slots||{},{[e]:t}))},watchHostLang(){typeof MutationObserver>"u"||typeof document>"u"||(this._langObs=new MutationObserver(()=>{this.hostLang=Pr()}),this._langObs.observe(document.documentElement,{attributes:!0,attributeFilter:["lang"]}))},requestedTab(){let e="";try{e=new URLSearchParams(location.search).get("tab")||""}catch{}return String(this.tab||this.cfg.tab||e||"").trim()},initialIndex(){const e=this.tabs.findIndex(t=>t.id===this.requestedTab());return e>=0?e:0},loadManifest(){const e=p=>{try{return new URL(p,location.href).href.replace(/[^/]*$/,"")}catch{return""}},t=this.resolve("manifest.json"),o={url:t,root:e(t)},n={url:this.resolve("doxa-maps-spa/manifest.json"),root:o.root};let s=!1;try{s=new URL(t,location.href).origin!==location.origin}catch{}const r=s?[n,o]:[o,n],a="/public/dx-maps/manifest.json";r.some(p=>p.url===a)||r.push({url:a,root:e(a)});const i=[],l=p=>{if(p>=r.length){this.manifestError="manifest.json not found (tried "+i.join(", ")+")",console.error("[posterverse] "+this.manifestError+" — every tab is composed from it.");return}const{url:d,root:h}=r[p];return i.push(d),fetch(d,{credentials:"same-origin"}).then(w=>{if(!w||!w.ok)throw new Error(d+" → HTTP "+(w?w.status:"?"));return w.json()}).then(w=>{if(!w)throw new Error(d+" → empty");this.manifestError="",this.manifestBase=h||"",this.applyManifest(w)}).catch(()=>l(p+1))};try{l(0)}catch{}},applyManifest(e){this.runtime=e&&e.runtime&&typeof e.runtime=="object"?e.runtime:{},this.applyPageGlobals();const t=this.activeKey;this.tabs=Ac(e,r=>console.warn(r)).map(Ar);const o=this.requestedTab(),n=!this._honouredTab&&o?this.tabs.findIndex(r=>r.id===o):-1,s=this.tabs.findIndex(r=>r.id===t);this._honouredTab=!0,this.select(n>=0?n:s>=0?s:0)},onSelect(e){const t=this.tabs.findIndex(o=>o.id===e);t!==-1&&this.select(t)},resolve(e){const t=String(e);if(/^(https?:)?\/\//.test(t)||t.startsWith("/"))return t;const o=t.replace(/^\.\//,"");return this.manifestBase?this.manifestBase.replace(/\/+$/,"")+"/"+o:this.base?this.base.replace(/\/+$/,"")+"/"+o:"../"+o},select(e){const t=this.activeIndex;if(this.activeIndex=e,t!==e&&t>=0){const n=this.tabs[t];n&&n.heavy&&n.mounted&&this.releaseTab(t,n)}const o=this.tabs[e];o&&((t!==e||!this._announced)&&(this._announced=!0,this.$emit("tab-change",{id:o.id,label:this.tabLabel(o)})),o.scriptUrl&&(o.mounted||this.$nextTick(()=>{this.activeIndex===e&&this.mountElement(e)})))},releaseTab(e,t){try{const o=this._slots&&this._slots[e];o&&(o.innerHTML="")}catch{}this._slots&&delete this._slots[e],t.mounted=!1,t.state="idle",t.error=""},childConfig(e){const t={profile:e.profile||e.id,instanceId:"pv-"+e.id};this.effectiveLocale&&(t.locale=this.effectiveLocale);const o=this.tk||this.cfg.tk||this.runtime.token;return o&&(t.tk=o),(this.tokenUrl||this.cfg.tokenUrl)&&(t.tokenUrl=this.tokenUrl||this.cfg.tokenUrl),this.effectiveProvider&&(t.provider=this.effectiveProvider),this.base&&(t.treeBase=this.base),this.assetsBase&&(t.assetsBase=this.assetsBase),t.urlSync=!1,t.mapTitle=this.tabLabel(e),t},applyPageGlobals(){if(typeof window>"u")return;const e=String(this.apiBaseUrl||this.cfg.apiBaseUrl||this.runtime.apiBaseUrl||"").trim();e&&!window.MAP_APP_API_URL&&(window.MAP_APP_API_URL=e.replace(/\/+$/,""));const t=this.tk||this.cfg.tk||this.runtime.token;t&&!window.MAP_TOKEN&&(window.MAP_TOKEN=t),this.effectiveProvider&&!window.MAP_PROVIDER&&(window.MAP_PROVIDER=this.effectiveProvider)},mountElement(e){const t=this.tabs[e];t.mounted=!0,t.state="loading",Lr(this.resolve(t.scriptUrl)).then(()=>Tl(t.tag)).then(()=>{try{if(t.heavy&&this.activeIndex!==e){t.mounted=!1,t.state="idle";return}const o=this._slots&&this._slots[e];if(!o){t.state="error",t.error="no slot";return}o.innerHTML="";const n=document.createElement(t.tag);n.setAttribute("profile-config",JSON.stringify(this.childConfig(t))),this.base&&n.setAttribute("tree-base",this.base.replace(/\/+$/,"")),n.style.cssText="display:block;position:absolute;inset:0;width:100%;height:100%;min-height:0;",o.appendChild(n),t.state="ready"}catch(o){t.state="error",t.error="mount failed: "+(o&&o.message||String(o))}}).catch(o=>{t.state="error",t.error=o&&o.message||String(o)})}}}),Ic=["hidden"],Nc={key:0,class:"pv-hint"},Ec={key:1,class:"pv-hint err"},Rc={key:2,class:"pv-hint err"};function Wc(e,t,o,n,s,r){const a=tn("BackToTopButton"),i=tn("VerticalTabsLayout");return C(),At(i,{dir:e.uiDir,lang:e.uiLocale,labels:e.layoutLabels,title:e.headingText,"nav-label":e.tr("sec.posters"),header:!1,groups:e.navGroups,active:e.activeKey,"onUpdate:active":e.onSelect},{default:ds(()=>[(C(!0),F(oe,null,St(e.tabs,(l,p)=>Jo((C(),F("section",{key:l.id,class:"pv-pane",ref_for:!0,ref:d=>{d?e.paneEls[p]=d:delete e.paneEls[p]},hidden:p!==e.activeIndex},[!l.heavy||p===e.activeIndex?(C(),F(oe,{key:0},[I("div",{class:"pv-slot",ref_for:!0,ref:d=>e.setSlot(p,d)},null,512),l.state==="loading"?(C(),F("div",Nc,D(e.tr("loading",{label:e.tabLabel(l)})),1)):l.state==="error"?(C(),F("div",Ec,[ht(D(e.tr("loadFailed",{label:e.tabLabel(l)})),1),t[0]||(t[0]=I("br",null,null,-1)),I("small",null,D(l.error),1)])):l.state==="idle"&&!l.scriptUrl&&e.manifestError?(C(),F("div",Rc,[ht(D(e.tr("loadFailed",{label:e.tabLabel(l)})),1),t[1]||(t[1]=I("br",null,null,-1)),I("small",null,D(e.manifestError),1),t[2]||(t[2]=I("br",null,null,-1)),I("small",null,D(e.tr("manifestHint")),1)])):le("",!0)],64)):le("",!0)],8,Ic)),[[gn,p===e.activeIndex]])),128)),be(a,{target:e.activePaneEl,labels:{backToTop:e.tr("backToTop")}},null,8,["target","labels"])]),_:1},8,["dir","lang","labels","title","nav-label","groups","active","onUpdate:active"])}const Dc=_n(Fc,[["render",Wc],["styles",[Cc]]]),zc=kl(),Hc=nl(Dc,{configureApp(e){e.provide("pvTreeBase",zc)}});typeof customElements<"u"&&!customElements.get("posterverse-app")&&customElements.define("posterverse-app",Hc)})(); +`,Al=Yo({name:"VerticalTabsLayout",components:{BackToTopButton:_r},props:{active:{type:String,default:""},title:{type:String,default:""},items:{type:Array,default:()=>[]},groups:{type:Array,default:()=>[]},navLabel:{type:String,default:"Sections"},labels:{type:Object,default:()=>({})},initialNavOpen:{type:Boolean,default:!0},header:{type:Boolean,default:!0},initialRailCollapsed:{type:Boolean,default:!1},homeHref:{type:String,default:""},homeLabel:{type:String,default:""}},emits:["update:active"],setup(){return _l(Pl,"vertical-tabs-layout"),{T:Ml}},data(){return{navOpen:this.initialNavOpen,railCollapsed:this.initialRailCollapsed,_tabEls:{},folderOverride:{},narrow:!1,_mql:null,_onMedia:null,activatedKeys:{},hostState:{},hostError:{},_hostSlots:{},_hostMounted:{},hostEls:{}}},computed:{fabShown(){return this.narrow&&!this.header&&!this.navOpen},activeHostEl(){return this.hostEls[this.active]||null},railShown(){return this.narrow?this.navOpen:!0},homeLink(){const e=String(this.homeHref||"").trim();return!e||/^(javascript|data|vbscript):/i.test(e.replace(/[\u0000- ]/g,""))?"":e},homeText(){return this.homeLabel||this.label("home")},allRows(){if(this.groups&&this.groups.length){const e=[];for(const t of this.groups)for(const o of t.rows||[])e.push(o);return e}return this.items},orderedKeys(){return this.allRows.map(e=>e.key)},elementRows(){return this.allRows.filter(e=>e&&e.element)},mountedElementRows(){return this.elementRows.filter(e=>this.activatedKeys[e.key])}},watch:{active:{immediate:!0,handler(e){this.activateElement(e)}}},mounted(){try{window.matchMedia&&(this._mql=window.matchMedia("(max-width: 760px)"),this.narrow=this._mql.matches,this.reconcileForWidth(),this._onMedia=e=>{this.narrow=e.matches,this.reconcileForWidth()},this._mql.addEventListener?this._mql.addEventListener("change",this._onMedia):this._mql.addListener&&this._mql.addListener(this._onMedia))}catch{}this.$nextTick(()=>this.activateElement(this.active))},beforeUnmount(){try{this._mql&&this._onMedia&&(this._mql.removeEventListener?this._mql.removeEventListener("change",this._onMedia):this._mql.removeListener&&this._mql.removeListener(this._onMedia))}catch{}this._mql=null,this._onMedia=null},methods:{registerTab(e,t){t&&(this._tabEls[e]=t)},isNarrow(){return this.narrow},reconcileForWidth(){this.narrow?(this.navOpen=!1,this.railCollapsed=!1):this.navOpen=!0},label(e){const t={toggleList:"Toggle list",openViews:"Open the list of views",expandList:"Expand list",collapseList:"Collapse list",collapse:"Collapse",home:"Back to homepage"};return this.labels&&this.labels[e]||t[e]},expandRail(){!this.narrow&&this.railCollapsed&&(this.railCollapsed=!1)},toggleRail(){this.narrow?this.navOpen=!this.navOpen:this.railCollapsed=!this.railCollapsed},setHostSlot(e,t){t&&(this._hostSlots[e]=t,this.$nextTick(()=>this.mountHostElement(e)))},activateElement(e){!e||!this.elementRows.find(o=>o.key===e)||(this.activatedKeys[e]||(this.activatedKeys={...this.activatedKeys,[e]:!0},this.$nextTick(()=>this.watchContextLoss(e)),this.hostState={...this.hostState,[e]:"loading"}),this.$nextTick(()=>this.mountHostElement(e)))},deepCanvases(e,t=[]){if(!e)return t;for(const o of e.querySelectorAll("*"))o.tagName==="CANVAS"&&t.push(o),o.shadowRoot&&this.deepCanvases(o.shadowRoot,t);return t},watchContextLoss(e){const t=this._hostSlots[e];if(t)for(const o of this.deepCanvases(t))o.__vtlLossBound||(o.__vtlLossBound=!0,o.addEventListener("webglcontextlost",()=>{this.hostState={...this.hostState,[e]:"lost"}},{once:!0}))},reloadHostElement(e){const t=this._hostSlots[e];t&&(t.innerHTML=""),this._hostMounted[e]=!1,this.hostState={...this.hostState,[e]:"loading"},this.$nextTick(()=>this.mountHostElement(e))},mountHostElement(e){if(this._hostMounted[e])return;const t=this.elementRows.find(n=>n.key===e),o=this._hostSlots[e];!t||!o||(this._hostMounted[e]=!0,this.hostState={...this.hostState,[e]:"loading"},Ll(t.src).then(()=>Ol(t.element)).then(()=>{xl(t.element,t.src),o.innerHTML="";const n=document.createElement(t.element),s=t.attrs||{};for(const r in s){const a=s[r],i=a!=null&&typeof a=="object"?JSON.stringify(a):String(a);try{n[r]=a}catch{}try{n.setAttribute(r,i)}catch{}}n.style.cssText="display:block;position:absolute;inset:0;width:100%;height:100%;",o.appendChild(n);for(const r of[0,250,1500])setTimeout(()=>this.watchContextLoss(e),r);this.hostState={...this.hostState,[e]:"ready"}}).catch(n=>{this._hostMounted[e]=!1,this.hostState={...this.hostState,[e]:"error"},this.hostError={...this.hostError,[e]:n&&n.message||String(n)}}))},iconSvg(e){return e?yl(e):""},initial(e){const t=(e||"").trim();return t?t.charAt(0).toUpperCase():"•"},isFolderClosed(e){const t=this.folderOverride[e.key];return t!=null?!t:e.open!==!0},toggleFolder(e){const t=this.folderOverride[e],o=(this.groups||[]).find(s=>s.key===e),n=t??(o&&o.open===!0);this.folderOverride={...this.folderOverride,[e]:!n}},pick(e){this.$emit("update:active",e),this.narrow&&(this.navOpen=!1)},onKey(e){const t=this.orderedKeys;if(!t.length)return;const o=t.indexOf(this.active);let n=-1;if(e.key==="ArrowDown"||e.key==="ArrowRight")n=(o+1)%t.length;else if(e.key==="ArrowUp"||e.key==="ArrowLeft")n=(o-1+t.length)%t.length;else if(e.key==="Home")n=0;else if(e.key==="End")n=t.length-1;else return;e.preventDefault();const s=t[n];this.pick(s),this.$nextTick(()=>{const r=this._tabEls[s];r&&r.focus&&r.focus()})}}}),Cl={key:0,class:"vtl-top"},Fl=["aria-expanded","aria-label"],Il={class:"vtl-brand"},Nl={class:"vtl-title"},El={class:"vtl-meta"},Rl=["aria-expanded","aria-label"],Wl={class:"vtl-body"},Dl=["aria-label","aria-hidden","role","aria-orientation"],zl=["href","aria-label","title"],Hl=["innerHTML"],Bl={class:"vtl-home-tx"},Ul=["aria-expanded","aria-label"],jl=["innerHTML"],Vl={class:"vtl-collapse-tx"},ql=["aria-expanded","onClick"],Kl={key:0,class:"vtl-cap"},Gl={class:"vtl-tl"},Jl={key:1,class:"vtl-td"},Xl=["innerHTML"],Zl={key:1,class:"vtl-tier"},Yl={key:0,class:"vtl-cap"},Ql={class:"vtl-tl"},ec={key:1,class:"vtl-td"},tc={class:"vtl-rows"},oc=["aria-selected","aria-disabled","tabindex","onClick"],nc=["innerHTML"],sc={key:1,class:"vtl-tab-emoji","aria-hidden":"true"},rc={key:2,class:"vtl-tab-fallback","aria-hidden":"true"},ic={class:"vtl-tab-text"},ac={class:"vtl-tab-label"},lc={key:0,class:"vtl-tab-badge"},cc={key:0,class:"vtl-tab-sub"},pc=["innerHTML"],dc=["aria-selected","aria-disabled","tabindex","onClick"],uc=["innerHTML"],fc={key:1,class:"vtl-tab-emoji","aria-hidden":"true"},hc={key:2,class:"vtl-tab-fallback","aria-hidden":"true"},gc={class:"vtl-tab-text"},mc={class:"vtl-tab-label"},$c={key:0,class:"vtl-tab-sub"},bc={class:"vtl-main"},_c={class:"vtl-content"},vc=["hidden"],yc={key:0,class:"vtl-host-hint"},wc={key:1,class:"vtl-host-hint"},xc=["onClick"],Tc={key:2,class:"vtl-host-hint err"};function kc(e,t,o,n,s,r){const a=tn("BackToTopButton");return C(),F("div",{class:Xe(["vtl",{"nav-open":e.navOpen,"rail-collapsed":e.railCollapsed,"no-header":!e.header}]),style:Jt(e.fabShown?{"--map-fab-clearance":"calc(56px + env(safe-area-inset-bottom))","--map-fab-beside":"calc(56px + env(safe-area-inset-left))"}:null)},[e.header?(C(),F("header",Cl,[I("button",{class:"vtl-menu",type:"button","aria-expanded":String(e.navOpen),onClick:t[0]||(t[0]=i=>e.navOpen=!e.navOpen),"aria-label":e.label("toggleList")},"☰",8,Fl),I("span",Il,[Mt(e.$slots,"brand")]),I("b",Nl,D(e.title),1),I("span",El,[Mt(e.$slots,"meta")])])):le("",!0),e.fabShown?(C(),F("button",{key:1,class:"vtl-fab",type:"button","aria-expanded":String(e.navOpen),onClick:t[1]||(t[1]=i=>e.navOpen=!0),"aria-label":e.label("openViews")},"☰",8,Rl)):le("",!0),e.narrow?(C(),At(a,{key:2,target:e.activeHostEl,labels:{backToTop:e.T("actions.backToTop","Back to top")}},null,8,["target","labels"])):le("",!0),I("div",Wl,[I("nav",{class:"vtl-nav","aria-label":e.navLabel,"aria-hidden":String(!e.railShown),role:e.$slots.rail?null:"tablist","aria-orientation":e.$slots.rail?null:"vertical"},[e.homeLink?(C(),F("a",{key:0,class:"vtl-home",href:e.homeLink,target:"_top","aria-label":e.homeText,title:e.railCollapsed&&!e.narrow?e.homeText:null},[I("span",{class:"vtl-home-ic","aria-hidden":"true",innerHTML:e.iconSvg("home")},null,8,Hl),I("span",Bl,D(e.homeText),1)],8,zl)):le("",!0),I("button",{type:"button",class:"vtl-collapse","aria-expanded":String(!e.railCollapsed),"aria-label":e.railCollapsed?e.label("expandList"):e.label("collapseList"),onClick:t[2]||(t[2]=(...i)=>e.toggleRail&&e.toggleRail(...i))},[I("span",{class:"vtl-collapse-ic","aria-hidden":"true",innerHTML:e.iconSvg("chevron")},null,8,jl),I("span",Vl,D(e.label("collapse")),1)],8,Ul),e.$slots.rail?Mt(e.$slots,"rail",{collapsed:e.railCollapsed&&!e.narrow,expand:e.expandRail,pick:e.pick},void 0,void 0,1):e.groups&&e.groups.length?(C(!0),F(oe,{key:2},St(e.groups,i=>(C(),F("div",{class:"vtl-grp",key:i.key},[i.folder?(C(),F("button",{key:0,type:"button",class:"vtl-tier vtl-tier-btn","aria-expanded":String(!e.isFolderClosed(i)),onClick:l=>e.toggleFolder(i.key)},[i.badge?(C(),F("span",Kl,D(i.badge),1)):le("",!0),I("span",Gl,D(i.label),1),i.count!=null?(C(),F("span",Jl,D(i.count),1)):le("",!0),I("span",{class:Xe(["vtl-chev",{open:!e.isFolderClosed(i)}]),"aria-hidden":"true",innerHTML:e.iconSvg("chevron")},null,10,Xl)],8,ql)):(C(),F("div",Zl,[i.badge?(C(),F("span",Yl,D(i.badge),1)):le("",!0),I("span",Ql,D(i.label),1),i.count!=null?(C(),F("span",ec,D(i.count),1)):le("",!0)])),Jo(I("div",tc,[(C(!0),F(oe,null,St(i.rows,l=>(C(),F("button",{key:l.key,type:"button",role:"tab",class:Xe(["vtl-tab",{active:l.key===e.active,disabled:l.disabled}]),"aria-selected":String(l.key===e.active),"aria-disabled":l.disabled?"true":null,tabindex:l.key===e.active?0:-1,ref_for:!0,ref:p=>e.registerTab(l.key,p),onClick:p=>e.pick(l.key),onKeydown:t[3]||(t[3]=p=>e.onKey(p))},[l.icon?(C(),F("span",{key:0,class:"vtl-tab-ic","aria-hidden":"true",innerHTML:e.iconSvg(l.icon)},null,8,nc)):l.emoji?(C(),F("span",sc,D(l.emoji),1)):(C(),F("span",rc,D(e.initial(l.label)),1)),I("span",ic,[I("span",ac,[ht(D(l.label),1),l.badge?(C(),F("span",lc,D(l.badge),1)):le("",!0)]),l.sub?(C(),F("span",cc,[I("span",{innerHTML:l.sub},null,8,pc)])):le("",!0)])],42,oc))),128))],512),[[gn,!i.folder||!e.isFolderClosed(i)]])]))),128)):(C(!0),F(oe,{key:3},St(e.items,i=>(C(),F("button",{key:i.key,type:"button",role:"tab",class:Xe(["vtl-tab",{active:i.key===e.active,disabled:i.disabled}]),"aria-selected":String(i.key===e.active),"aria-disabled":i.disabled?"true":null,tabindex:i.key===e.active?0:-1,ref_for:!0,ref:l=>e.registerTab(i.key,l),onClick:l=>e.pick(i.key),onKeydown:t[4]||(t[4]=l=>e.onKey(l))},[i.icon?(C(),F("span",{key:0,class:"vtl-tab-ic","aria-hidden":"true",innerHTML:e.iconSvg(i.icon)},null,8,uc)):i.emoji?(C(),F("span",fc,D(i.emoji),1)):(C(),F("span",hc,D(e.initial(i.label)),1)),I("span",gc,[I("span",mc,D(i.label),1),i.sub?(C(),F("span",$c,D(i.sub),1)):le("",!0)])],42,dc))),128))],8,Dl),I("main",bc,[e.header?Mt(e.$slots,"toolbar",{},void 0,void 0,0):le("",!0),I("div",_c,[(C(!0),F(oe,null,St(e.mountedElementRows,i=>Jo((C(),F("section",{key:i.key,class:"vtl-host",hidden:i.key!==e.active,ref_for:!0,ref:l=>{l?e.hostEls[i.key]=l:delete e.hostEls[i.key]}},[I("div",{class:"vtl-host-slot",ref_for:!0,ref:l=>e.setHostSlot(i.key,l)},null,512),e.hostState[i.key]==="loading"?(C(),F("div",yc,D(e.T("messages.loadingNamed","Loading {name}…").replace("{name}",i.label)),1)):e.hostState[i.key]==="lost"?(C(),F("div",wc,[ht(D(e.T("messages.mapContextLost","This map was unloaded to free graphics memory."))+" ",1),I("button",{type:"button",class:"vtl-host-reload",onClick:l=>e.reloadHostElement(i.key)},D(e.T("buttons.reloadMap","Reload Map")),9,xc)])):e.hostState[i.key]==="error"?(C(),F("div",Tc,[ht(D(e.T("messages.couldNotLoadNamed","Could not load {name}.").replace("{name}",i.label)),1),t[5]||(t[5]=I("br",null,null,-1)),I("small",null,D(e.hostError[i.key]),1)])):le("",!0)],8,vc)),[[gn,i.key===e.active]])),128)),Mt(e.$slots,"default")])])])],6)}const Sc=_n(Al,[["render",kc],["styles",[Sl]]]),yo={en:{"sec.posters":"Posters","sec.experimental":"Experimental","tab.upg-100":"UPG 100 List Posters","sub.upg-100":"my unreached list + posters","tab.country-posters":"Country Posters","sub.country-posters":"a poster for every country","tab.poster-design":"Poster Design","sub.poster-design":"every poster style and size","tab.wall-of-people-groups":"Wall of People Groups","tab.bible-posters":"Bible Posters",experimentalSub:"experimental bundle",lab:"lab",loading:"Loading {label}…",loadFailed:"Could not load {label}.",manifestHint:"This tab is composed from manifest.json — build the tree, or serve the built tree, to load it.",backToTop:"Back to top",toggleList:"Toggle list",openViews:"Open the list of views",expandList:"Expand list",collapseList:"Collapse list",collapse:"Collapse"},es:{"sec.posters":"Carteles","sec.experimental":"Experimental","tab.upg-100":"Carteles de la lista UPG 100","sub.upg-100":"mi lista de no alcanzados + carteles","tab.country-posters":"Carteles por país","sub.country-posters":"un cartel para cada país","tab.poster-design":"Diseño de carteles","sub.poster-design":"todos los estilos y tamaños de cartel","tab.wall-of-people-groups":"Muro de los pueblos","tab.bible-posters":"Carteles bíblicos",experimentalSub:"mapa experimental",lab:"beta",loading:"Cargando {label}…",loadFailed:"No se pudo cargar {label}.",manifestHint:"Esta pestaña se compone a partir de manifest.json: compila el árbol o sirve el árbol compilado para cargarla.",backToTop:"Volver arriba",toggleList:"Mostrar u ocultar la lista",openViews:"Abrir la lista de vistas",expandList:"Expandir la lista",collapseList:"Contraer la lista",collapse:"Contraer"},fr:{"sec.posters":"Affiches","sec.experimental":"Expérimental","tab.upg-100":"Affiches de la liste UPG 100","sub.upg-100":"ma liste des non atteints + affiches","tab.country-posters":"Affiches par pays","sub.country-posters":"une affiche pour chaque pays","tab.poster-design":"Conception d’affiches","sub.poster-design":"tous les styles et formats d’affiche","tab.wall-of-people-groups":"Mur des peuples","tab.bible-posters":"Affiches bibliques",experimentalSub:"carte expérimentale",lab:"bêta",loading:"Chargement de {label}…",loadFailed:"Impossible de charger {label}.",manifestHint:"Cet onglet est composé à partir de manifest.json : construisez l'arborescence ou servez l'arborescence construite pour le charger.",backToTop:"Retour en haut",toggleList:"Afficher ou masquer la liste",openViews:"Ouvrir la liste des vues",expandList:"Déplier la liste",collapseList:"Replier la liste",collapse:"Replier"},de:{"sec.posters":"Poster","sec.experimental":"Experimentell","tab.upg-100":"Poster der UPG 100 Liste","sub.upg-100":"meine Liste der Unerreichten + Poster","tab.country-posters":"Länderposter","sub.country-posters":"ein Poster für jedes Land","tab.poster-design":"Postergestaltung","sub.poster-design":"alle Posterstile und -größen","tab.wall-of-people-groups":"Wand der Volksgruppen","tab.bible-posters":"Bibelposter",experimentalSub:"experimentelle Karte",lab:"Beta",loading:"{label} wird geladen…",loadFailed:"{label} konnte nicht geladen werden.",manifestHint:"Dieser Tab wird aus manifest.json zusammengesetzt – bauen Sie den Baum oder stellen Sie den gebauten Baum bereit, um ihn zu laden.",backToTop:"Nach oben",toggleList:"Liste ein-/ausblenden",openViews:"Ansichtsliste öffnen",expandList:"Liste ausklappen",collapseList:"Liste einklappen",collapse:"Einklappen"},pt:{"sec.posters":"Cartazes","sec.experimental":"Experimental","tab.upg-100":"Cartazes da lista UPG 100","sub.upg-100":"minha lista de não alcançados + cartazes","tab.country-posters":"Cartazes por país","sub.country-posters":"um cartaz para cada país","tab.poster-design":"Design de cartazes","sub.poster-design":"todos os estilos e tamanhos de cartaz","tab.wall-of-people-groups":"Mural dos povos","tab.bible-posters":"Cartazes bíblicos",experimentalSub:"mapa experimental",lab:"beta",loading:"Carregando {label}…",loadFailed:"Não foi possível carregar {label}.",manifestHint:"Esta aba é composta a partir do manifest.json — compile a árvore ou sirva a árvore compilada para carregá-la.",backToTop:"Voltar ao topo",toggleList:"Mostrar ou ocultar a lista",openViews:"Abrir a lista de visualizações",expandList:"Expandir a lista",collapseList:"Recolher a lista",collapse:"Recolher"},it:{"sec.posters":"Poster","sec.experimental":"Sperimentale","tab.upg-100":"Poster della lista UPG 100","sub.upg-100":"la mia lista dei non raggiunti + poster","tab.country-posters":"Poster per paese","sub.country-posters":"un poster per ogni paese","tab.poster-design":"Design dei poster","sub.poster-design":"tutti gli stili e i formati dei poster","tab.wall-of-people-groups":"Muro dei popoli","tab.bible-posters":"Poster biblici",experimentalSub:"mappa sperimentale",lab:"beta",loading:"Caricamento di {label}…",loadFailed:"Impossibile caricare {label}.",manifestHint:"Questa scheda è composta da manifest.json: compila l'albero o pubblica l'albero compilato per caricarla.",backToTop:"Torna su",toggleList:"Mostra o nascondi l’elenco",openViews:"Apri l’elenco delle viste",expandList:"Espandi l’elenco",collapseList:"Comprimi l’elenco",collapse:"Comprimi"},ro:{"sec.posters":"Afișe","sec.experimental":"Experimental","tab.upg-100":"Afișe din lista UPG 100","sub.upg-100":"lista mea de neatinși + afișe","tab.country-posters":"Afișe pe țări","sub.country-posters":"un afiș pentru fiecare țară","tab.poster-design":"Design de afișe","sub.poster-design":"toate stilurile și dimensiunile de afiș","tab.wall-of-people-groups":"Zidul popoarelor","tab.bible-posters":"Afișe biblice",experimentalSub:"hartă experimentală",lab:"beta",loading:"Se încarcă {label}…",loadFailed:"{label} nu a putut fi încărcat.",manifestHint:"Această filă este compusă din manifest.json — construiți arborele sau serviți arborele construit pentru a o încărca.",backToTop:"Sus",toggleList:"Afișează sau ascunde lista",openViews:"Deschide lista de vizualizări",expandList:"Extinde lista",collapseList:"Restrânge lista",collapse:"Restrânge"},ru:{"sec.posters":"Плакаты","sec.experimental":"Экспериментальное","tab.upg-100":"Плакаты списка UPG 100","sub.upg-100":"мой список недостигнутых + плакаты","tab.country-posters":"Плакаты по странам","sub.country-posters":"плакат для каждой страны","tab.poster-design":"Дизайн плакатов","sub.poster-design":"все стили и размеры плакатов","tab.wall-of-people-groups":"Стена народов","tab.bible-posters":"Библейские плакаты",experimentalSub:"экспериментальная карта",lab:"бета",loading:"Загрузка: {label}…",loadFailed:"Не удалось загрузить: {label}.",manifestHint:"Эта вкладка собирается из manifest.json — соберите дерево или разместите собранное дерево, чтобы загрузить её.",backToTop:"Наверх",toggleList:"Показать или скрыть список",openViews:"Открыть список представлений",expandList:"Развернуть список",collapseList:"Свернуть список",collapse:"Свернуть"},ar:{"sec.posters":"ملصقات","sec.experimental":"تجريبي","tab.upg-100":"ملصقات قائمة UPG 100","sub.upg-100":"قائمتي لغير المُبشَّرين + ملصقات","tab.country-posters":"ملصقات الدول","sub.country-posters":"ملصق لكل دولة","tab.poster-design":"تصميم الملصقات","sub.poster-design":"كل أنماط الملصقات وأحجامها","tab.wall-of-people-groups":"جدار الشعوب","tab.bible-posters":"ملصقات الكتاب المقدس",experimentalSub:"خريطة تجريبية",lab:"تجريبي",loading:"جارٍ تحميل {label}…",loadFailed:"تعذّر تحميل {label}.",manifestHint:"تُبنى علامة التبويب هذه من manifest.json — ابنِ الشجرة أو قدّم الشجرة المبنية لتحميلها.",backToTop:"إلى الأعلى",toggleList:"إظهار القائمة أو إخفاؤها",openViews:"فتح قائمة العروض",expandList:"توسيع القائمة",collapseList:"طي القائمة",collapse:"طي"},hi:{"sec.posters":"पोस्टर","sec.experimental":"प्रायोगिक","tab.upg-100":"UPG 100 सूची पोस्टर","sub.upg-100":"मेरी अप्राप्त सूची + पोस्टर","tab.country-posters":"देश पोस्टर","sub.country-posters":"हर देश के लिए एक पोस्टर","tab.poster-design":"पोस्टर डिज़ाइन","sub.poster-design":"हर पोस्टर शैली और आकार","tab.wall-of-people-groups":"जनसमूहों की दीवार","tab.bible-posters":"बाइबल पोस्टर",experimentalSub:"प्रायोगिक मानचित्र",lab:"बीटा",loading:"{label} लोड हो रहा है…",loadFailed:"{label} लोड नहीं हो सका।",manifestHint:"यह टैब manifest.json से बनता है — इसे लोड करने के लिए ट्री बनाएँ या बना हुआ ट्री सर्व करें।",backToTop:"ऊपर जाएँ",toggleList:"सूची दिखाएँ या छिपाएँ",openViews:"दृश्यों की सूची खोलें",expandList:"सूची फैलाएँ",collapseList:"सूची संक्षिप्त करें",collapse:"संक्षिप्त करें"},zh:{"sec.posters":"海报","sec.experimental":"实验性","tab.upg-100":"UPG 100 名单海报","sub.upg-100":"我的未得之民名单 + 海报","tab.country-posters":"国家海报","sub.country-posters":"每个国家一张海报","tab.poster-design":"海报设计","sub.poster-design":"所有海报样式与尺寸","tab.wall-of-people-groups":"民族之墙","tab.bible-posters":"圣经海报",experimentalSub:"实验性地图",lab:"测试版",loading:"正在加载{label}…",loadFailed:"无法加载{label}。",manifestHint:"此标签页由 manifest.json 组成——请构建目录树或提供已构建的目录树以加载它。",backToTop:"回到顶部",toggleList:"显示或隐藏列表",openViews:"打开视图列表",expandList:"展开列表",collapseList:"折叠列表",collapse:"折叠"}},wn=Object.keys(yo);function Mc(e,t,o){let s=(yo[e]||yo.en)[t]??yo.en[t]??t;if(o)for(const r in o)s=s.split("{"+r+"}").join(String(o[r]));return s}const Lc=[{key:"posters",i18n:"sec.posters",icon:"poster"},{key:"experimental",i18n:"sec.experimental",icon:"flask",folder:!0,open:!1}],Or=[{id:"upg-100",section:"posters",icon:"list",bundle:"my-upg-100-list",profile:"upg-100-mfe"},{id:"country-posters",section:"posters",icon:"map",bundle:"country-posters",profile:"country-posters-mfe"},{id:"poster-design",section:"posters",icon:"poster",bundle:"poster-design",profile:"poster-design-mfe",provisional:!0},{id:"wall-of-people-groups",section:"experimental",icon:"flask",bundle:"wall-of-people-groups",profile:"wall-of-people-groups"},{id:"bible-posters",section:"experimental",icon:"flask",bundle:"bible-posters",profile:"bible-posters",provisional:!0}],Oc=new Set(["key-cities","posterverse","doxa-maps-spa","plugin-studio"]),Pc=new Set(["my-upg-100-list-map","country-posters-map"]);function Ac(e,t=()=>{}){const o=e&&Array.isArray(e.bundles)?e.bundles:[],n=Object.fromEntries(o.map(r=>[r&&r.bundle,r])),s=[];for(const r of Or){if(Oc.has(r.bundle))continue;const a=n[r.bundle];if(!a)continue;const i=Array.isArray(a.profiles)?a.profiles:[];let l=i.find(h=>h&&h.profile===r.profile);if(!l){if(l=i.find(h=>h&&h.profile===r.bundle)||i[0],!l)continue;t(`[posterverse] ${r.bundle} has no profile "${r.profile}"; row "${r.id}" opens "${l.profile}" instead`)}const p=l.element||Array.isArray(a.elements)&&a.elements[0]||r.bundle,d=a.scriptUrl||l.scriptUrl||"";d&&s.push({...r,tag:p,scriptUrl:d,profile:l.profile,heavy:Pc.has(p)||!!l.isMap})}return s}const Cc=":host{display:block;position:relative;height:var(--posterverse-height, 85vh);min-height:480px}:host{font-size:16px;line-height:normal;font-weight:400;font-style:normal;font-variant:normal;font-stretch:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;text-align:start;text-indent:0;text-shadow:none;white-space:normal;-webkit-hyphens:manual;hyphens:manual;visibility:visible;cursor:auto}:host([hidden]){display:none}.pv-pane{position:absolute;top:0;right:0;bottom:0;left:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;--profile-min-h: 0}.pv-slot{position:relative;min-height:100%}.pv-hint{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;text-align:center;color:#6d766e;font-size:13px;padding:20px}.pv-hint.err{color:#b3261e}.pv-hint small{color:#6d766e}";function Pr(){try{const e=new URLSearchParams(location.search),t=(e.get("lang")||e.get("locale")||"").split("-")[0].toLowerCase();if(wn.includes(t))return t}catch{}try{const e=(document.documentElement.lang||"").split("-")[0].toLowerCase();if(wn.includes(e))return e}catch{}return""}const Ar=e=>({...e,tag:e.tag||"",scriptUrl:e.scriptUrl||"",heavy:!!e.heavy,mounted:!1,state:"idle",error:""}),Fc=Yo({name:"Posterverse",inheritAttrs:!1,components:{VerticalTabsLayout:Sc,BackToTopButton:_r},props:{treeBase:{type:String,default:""},profileConfig:{type:[String,Object],default:""},heading:{type:String,default:"Posterverse"},tokenUrl:{type:String,default:""},tk:{type:String,default:""},language:{type:String,default:""},apiBaseUrl:{type:String,default:""},provider:{type:String,default:""},tab:{type:String,default:""}},emits:["tab-change"],setup(){return{injectedBase:Tt("pvTreeBase","")}},data(){return{paneEls:{},activeIndex:0,manifestError:"",manifestBase:"",runtime:{},hostLang:Pr(),tabs:Or.filter(e=>!e.provisional).map(Ar)}},computed:{cfg(){let e=this.profileConfig;if(typeof e=="string")try{e=e?JSON.parse(e):{}}catch{e={}}return e&&typeof e=="object"?e:{}},base(){const e=String(this.treeBase||this.cfg.treeBase||this.injectedBase||"").trim();return e?e.replace(/\/+$/,"")+"/":""},assetsBase(){const e=String(this.cfg.assetsBase||"").trim();return/^https?:\/\//i.test(e)||e.startsWith("/")?e.replace(/\/+$/,""):this.manifestBase?this.manifestBase.replace(/\/+$/,"")+"/assets":""},headingText(){return String(this.cfg.heading||this.heading||"").trim()||"Posterverse"},effectiveLocale(){return(String(this.language||this.cfg.language||this.cfg.locale||this.cfg.lang||"").trim()||this.hostLang||"en").split("-")[0].toLowerCase()},uiLocale(){return wn.includes(this.effectiveLocale)?this.effectiveLocale:"en"},uiDir(){return this.uiLocale==="ar"?"rtl":"ltr"},layoutLabels(){const e={};for(const t of["toggleList","openViews","expandList","collapseList","collapse"])e[t]=this.tr(t);return e},effectiveProvider(){const e=String(this.provider||this.cfg.provider||"").trim().toLowerCase();return e==="maplibre"||e==="mapbox"?e:""},activeKey(){const e=this.tabs[this.activeIndex];return e?e.id:""},activePaneEl(){return this.paneEls[this.activeIndex]||null},navGroups(){return Lc.map(e=>({key:e.key,label:this.tr(e.i18n),icon:e.icon,folder:!!e.folder,open:e.open,rows:this.tabs.filter(t=>t.section===e.key).map(t=>({key:t.id,label:this.tabLabel(t),sub:this.tabSub(t),icon:t.icon,badge:e.folder?this.tr("lab"):void 0}))})).filter(e=>e.rows.length)}},watch:{effectiveLocale(){const e=(o,n)=>{try{const s=this._slots&&this._slots[o];s&&(s.innerHTML="")}catch{}n.mounted=!1,n.state="idle",n.error=""};this.tabs.forEach((o,n)=>{o.mounted&&n!==this.activeIndex&&e(n,o)});const t=this.tabs[this.activeIndex];!t||!t.mounted||(e(this.activeIndex,t),this.mountElement(this.activeIndex))},tab(e){e&&this.onSelect(e)}},mounted(){this.watchHostLang(),this.select(this.initialIndex()),this.loadManifest()},beforeUnmount(){this._langObs&&(this._langObs.disconnect(),this._langObs=null)},methods:{tr(e,t){return Mc(this.uiLocale,e,t)},tabLabel(e){return this.tr("tab."+e.id)},tabSub(e){return e.section==="experimental"?this.tr("experimentalSub"):this.tr("sub."+e.id)},setSlot(e,t){t&&(this._slots=Object.assign(this._slots||{},{[e]:t}))},watchHostLang(){typeof MutationObserver>"u"||typeof document>"u"||(this._langObs=new MutationObserver(()=>{this.hostLang=Pr()}),this._langObs.observe(document.documentElement,{attributes:!0,attributeFilter:["lang"]}))},requestedTab(){let e="";try{e=new URLSearchParams(location.search).get("tab")||""}catch{}return String(this.tab||this.cfg.tab||e||"").trim()},initialIndex(){const e=this.tabs.findIndex(t=>t.id===this.requestedTab());return e>=0?e:0},loadManifest(){const e=p=>{try{return new URL(p,location.href).href.replace(/[^/]*$/,"")}catch{return""}},t=this.resolve("manifest.json"),o={url:t,root:e(t)},n={url:this.resolve("doxa-maps-spa/manifest.json"),root:o.root};let s=!1;try{s=new URL(t,location.href).origin!==location.origin}catch{}const r=s?[n,o]:[o,n],a="/public/dx-maps/manifest.json";r.some(p=>p.url===a)||r.push({url:a,root:e(a)});const i=[],l=p=>{if(p>=r.length){this.manifestError="manifest.json not found (tried "+i.join(", ")+")",console.error("[posterverse] "+this.manifestError+" — every tab is composed from it.");return}const{url:d,root:h}=r[p];return i.push(d),fetch(d,{credentials:"same-origin"}).then(w=>{if(!w||!w.ok)throw new Error(d+" → HTTP "+(w?w.status:"?"));return w.json()}).then(w=>{if(!w)throw new Error(d+" → empty");this.manifestError="",this.manifestBase=h||"",this.applyManifest(w)}).catch(()=>l(p+1))};try{l(0)}catch{}},applyManifest(e){this.runtime=e&&e.runtime&&typeof e.runtime=="object"?e.runtime:{},this.applyPageGlobals();const t=this.activeKey;this.tabs=Ac(e,r=>console.warn(r)).map(Ar);const o=this.requestedTab(),n=!this._honouredTab&&o?this.tabs.findIndex(r=>r.id===o):-1,s=this.tabs.findIndex(r=>r.id===t);this._honouredTab=!0,this.select(n>=0?n:s>=0?s:0)},onSelect(e){const t=this.tabs.findIndex(o=>o.id===e);t!==-1&&this.select(t)},resolve(e){const t=String(e);if(/^(https?:)?\/\//.test(t)||t.startsWith("/"))return t;const o=t.replace(/^\.\//,"");return this.manifestBase?this.manifestBase.replace(/\/+$/,"")+"/"+o:this.base?this.base.replace(/\/+$/,"")+"/"+o:"../"+o},select(e){const t=this.activeIndex;if(this.activeIndex=e,t!==e&&t>=0){const n=this.tabs[t];n&&n.heavy&&n.mounted&&this.releaseTab(t,n)}const o=this.tabs[e];o&&((t!==e||!this._announced)&&(this._announced=!0,this.$emit("tab-change",{id:o.id,label:this.tabLabel(o)})),o.scriptUrl&&(o.mounted||this.$nextTick(()=>{this.activeIndex===e&&this.mountElement(e)})))},releaseTab(e,t){try{const o=this._slots&&this._slots[e];o&&(o.innerHTML="")}catch{}this._slots&&delete this._slots[e],t.mounted=!1,t.state="idle",t.error=""},childConfig(e){const t={profile:e.profile||e.id,instanceId:"pv-"+e.id};this.effectiveLocale&&(t.locale=this.effectiveLocale);const o=this.tk||this.cfg.tk||this.runtime.token;return o&&(t.tk=o),(this.tokenUrl||this.cfg.tokenUrl)&&(t.tokenUrl=this.tokenUrl||this.cfg.tokenUrl),this.effectiveProvider&&(t.provider=this.effectiveProvider),this.base&&(t.treeBase=this.base),this.assetsBase&&(t.assetsBase=this.assetsBase),t.urlSync=!1,t.mapTitle=this.tabLabel(e),t},applyPageGlobals(){if(typeof window>"u")return;const e=String(this.apiBaseUrl||this.cfg.apiBaseUrl||this.runtime.apiBaseUrl||"").trim();e&&!window.MAP_APP_API_URL&&(window.MAP_APP_API_URL=e.replace(/\/+$/,""));const t=this.tk||this.cfg.tk||this.runtime.token;t&&!window.MAP_TOKEN&&(window.MAP_TOKEN=t),this.effectiveProvider&&!window.MAP_PROVIDER&&(window.MAP_PROVIDER=this.effectiveProvider)},mountElement(e){const t=this.tabs[e];t.mounted=!0,t.state="loading",Lr(this.resolve(t.scriptUrl)).then(()=>Tl(t.tag)).then(()=>{try{if(t.heavy&&this.activeIndex!==e){t.mounted=!1,t.state="idle";return}const o=this._slots&&this._slots[e];if(!o){t.state="error",t.error="no slot";return}o.innerHTML="";const n=document.createElement(t.tag);n.setAttribute("profile-config",JSON.stringify(this.childConfig(t))),this.base&&n.setAttribute("tree-base",this.base.replace(/\/+$/,"")),n.style.cssText="display:block;position:absolute;inset:0;width:100%;height:100%;min-height:0;",o.appendChild(n),t.state="ready"}catch(o){t.state="error",t.error="mount failed: "+(o&&o.message||String(o))}}).catch(o=>{t.state="error",t.error=o&&o.message||String(o)})}}}),Ic=["hidden"],Nc={key:0,class:"pv-hint"},Ec={key:1,class:"pv-hint err"},Rc={key:2,class:"pv-hint err"};function Wc(e,t,o,n,s,r){const a=tn("BackToTopButton"),i=tn("VerticalTabsLayout");return C(),At(i,{dir:e.uiDir,lang:e.uiLocale,labels:e.layoutLabels,title:e.headingText,"nav-label":e.tr("sec.posters"),header:!1,groups:e.navGroups,active:e.activeKey,"onUpdate:active":e.onSelect},{default:ds(()=>[(C(!0),F(oe,null,St(e.tabs,(l,p)=>Jo((C(),F("section",{key:l.id,class:"pv-pane",ref_for:!0,ref:d=>{d?e.paneEls[p]=d:delete e.paneEls[p]},hidden:p!==e.activeIndex},[!l.heavy||p===e.activeIndex?(C(),F(oe,{key:0},[I("div",{class:"pv-slot",ref_for:!0,ref:d=>e.setSlot(p,d)},null,512),l.state==="loading"?(C(),F("div",Nc,D(e.tr("loading",{label:e.tabLabel(l)})),1)):l.state==="error"?(C(),F("div",Ec,[ht(D(e.tr("loadFailed",{label:e.tabLabel(l)})),1),t[0]||(t[0]=I("br",null,null,-1)),I("small",null,D(l.error),1)])):l.state==="idle"&&!l.scriptUrl&&e.manifestError?(C(),F("div",Rc,[ht(D(e.tr("loadFailed",{label:e.tabLabel(l)})),1),t[1]||(t[1]=I("br",null,null,-1)),I("small",null,D(e.manifestError),1),t[2]||(t[2]=I("br",null,null,-1)),I("small",null,D(e.tr("manifestHint")),1)])):le("",!0)],64)):le("",!0)],8,Ic)),[[gn,p===e.activeIndex]])),128)),be(a,{target:e.activePaneEl,labels:{backToTop:e.tr("backToTop")}},null,8,["target","labels"])]),_:1},8,["dir","lang","labels","title","nav-label","groups","active","onUpdate:active"])}const Dc=_n(Fc,[["render",Wc],["styles",[Cc]]]),zc=kl(),Hc=nl(Dc,{configureApp(e){e.provide("pvTreeBase",zc)}});typeof customElements<"u"&&!customElements.get("posterverse-app")&&customElements.define("posterverse-app",Hc)})(); diff --git a/public/dx-maps/posterverse/posterverse/app/index.html b/public/dx-maps/posterverse/posterverse/app/index.html index bec06008e..1a05e3cbd 100644 --- a/public/dx-maps/posterverse/posterverse/app/index.html +++ b/public/dx-maps/posterverse/posterverse/app/index.html @@ -67,7 +67,7 @@ - + - +