From fe054b2c7fbfae627f6c189d3767708ecdceb25e Mon Sep 17 00:00:00 2001 From: Doxa Maps Date: Tue, 29 Sep 2026 16:32:15 +0000 Subject: [PATCH] The region card stops overwriting the regions list's stylesheet RegionSectionCard passed THREE arguments to useShadowStyles(css, label): the CSS, then 'regions-list', then 'region-section-card'. The signature takes two, so 'regions-list' was the key and its own name was silently ignored. useShadowStyles keys its ${An(n(w))}`,{autoprint:!0}),l(w,T)}async function x(f,{columns:w,title:T}={}){if(o())return;const O=s("wall.hud.kindList","List");i(f,O,"fetch",s("wall.hud.fetchingRecords","fetching records"),30);try{const F=await d(f),A=w||[{key:"name",head:"Name",cls:"c-name"},{key:"country_code_label",head:"Country"},{key:"population",head:"People",cls:"c-num",num:!0},{key:"religion_label",head:"Religion"}],ce=A.map(m=>`${An(m.head)}`).join("")+'✓',H=F.map(m=>""+A.map(D=>{const E=m[D.key]??m[`${D.key}_label`]??"—",X=D.num&&Number.isFinite(Number(E))?Number(E).toLocaleString(r()):E;return`${An(X)}`}).join("")+'□').join("");i(f,O,"render",s("wall.hud.layingOutRows","laying out {n} rows",{n:F.length},F.length),70);const j=T||`${n(f)} — ${F.length}`;Cn(`${An(j)}

${An(j)}

${F.length} entries · pray for them by name

${ce}${H}
`,{autoprint:!0}),l(f,O)}catch(F){c(f,O,F)}}async function y(f){if(o())return;const w=s("wall.hud.kindCardDeck","Card Deck");i(f,w,"fetch",s("wall.hud.fetchingRecords","fetching records"),30);try{const T=await d(f),[{createCardRenderer:O},F]=await Promise.all([lt(()=>Promise.resolve().then(()=>fp),void 0),e.strings?e.strings():rp(e.assetsBase?e.assetsBase():null)]);i(f,w,"render",s("wall.hud.layingOutCards","laying out {n} cards",{n:T.length},T.length),70);const A=O({strings:F,lang:r(),stock:a()});Cn(A.buildDeck(f,T),{autoprint:!0}),l(f,w)}catch(T){c(f,w,T)}}function P(f,w,T=null){return w.liftMap(f,{labelFor:T})}async function S(){if(!e.iso3Names)return null;try{const[f,{makeCountryLabelFor:w},T]=await Promise.all([Promise.resolve().then(()=>e.iso3Names()),lt(()=>Promise.resolve().then(()=>jv),void 0),lt(()=>Promise.resolve().then(()=>ep),void 0).then(O=>O.countryName||O.default)]);return w({iso3Name:f,countryName:T,lang:r()})}catch{return null}}async function $(f,w,T){for(const O of T.mapSheetFiles(w))try{const F=await fetch(`${f}/posters/${O}`,{cache:"force-cache"});if(!F.ok)continue;const A=await F.text();if(T.liftMap(A))return A}catch{}return""}async function v(f,{mapSvg:w="",funnel:T=null,variant:O="full"}={}){if(o())return;const F=s("wall.hud.kindPacket","Prayer Packet");i(f,F,"fetch",s("wall.hud.fetchingGroups","fetching people groups"),30);try{const A=await d(f),[{createPacketRenderer:ce},{buildPacketSets:H},{evangelicalShareFor:j},m,D,E,X]=await Promise.all([lt(()=>Promise.resolve().then(()=>ew),void 0),lt(()=>Promise.resolve().then(()=>ow),void 0),lt(()=>Promise.resolve().then(()=>aw),void 0),e.strings?e.strings():rp(e.assetsBase?e.assetsBase():null),e.christian?e.christian():Promise.resolve(null),e.christian?Promise.resolve(null):lt(()=>Promise.resolve().then(()=>rw),void 0).then(_e=>_e.default||_e).catch(()=>null),e.sets?Promise.resolve().then(()=>e.sets()).catch(()=>null):Promise.resolve(null)]),J=D||j(A,E),q=await Promise.all([lt(()=>Promise.resolve().then(()=>pw),void 0).then(_e=>_e.describeGroup).catch(()=>null),lt(()=>Promise.resolve().then(()=>ep),void 0).then(_e=>_e.countryName||_e.default).catch(()=>null)]).then(([_e,k])=>_e?I=>_e(I,r(),{strings:m,countryName:k||void 0}):null),V=ce({strings:m,lang:r(),describe:q}),le=new Map(A.filter(_e=>_e.image_url).map(_e=>[_e.slug,_e.image_url]));i(f,F,"render",s("wall.hud.printingGroups","printing {n} people groups",{n:A.length},A.length),70),T||(T=await lt(()=>Promise.resolve().then(()=>gw),void 0).then(_e=>{const k=_e.default||_e;return k&&Array.isArray(k.steps)&&k.steps.length?{steps:k.steps}:null}).catch(()=>null));const Z=f&&"mapId"in f?f.mapId:f==null?void 0:f.id;if(!w&&e.sheet&&Z){const _e=Z===(f==null?void 0:f.id)?f:{...f,id:Z},k=await Promise.resolve().then(()=>e.sheet(_e,"packet")).catch(()=>"");k&&(w=V.liftMap(k,{labelFor:await S()}))}if(!w&&e.mapImage){const _e=await Promise.resolve().then(()=>e.mapImage(f)).catch(()=>null);w=_e?V.mapFromImage(_e):""}if(!w&&e.assetsBase&&Z){const[_e,k]=await Promise.all([$(e.assetsBase(),Z,V),S()]);w=P(_e,V,k)}const me=X?H(A,X):null;Cn(V.buildPacket(f,A,le,w,T,J,O,me),{autoprint:!0}),l(f,F)}catch(A){c(f,F,A)}}return{exportState:t,dismiss:u,printPoster:h,printList:x,printCardDeck:y,printPacket:v}}function Ty(e){const t=(e==null?void 0:e.parentElement)||e;if(!t||!t.ownerDocument)return{x:0,y:0};const o=t.ownerDocument.createElement("div");o.style.cssText="position:fixed;top:0;left:0;width:0;height:0;pointer-events:none;opacity:0",t.appendChild(o);const n=o.getBoundingClientRect();return o.remove(),{x:n.left,y:n.top}}function My(e){const t=ve(null),o=Dn({position:"fixed",inset:"0"}),n=()=>{var u,d;const a=t.value;if(!a)return;const s=Ty(a),i=a.ownerDocument||(typeof document<"u"?document:null),l=((u=i==null?void 0:i.documentElement)==null?void 0:u.clientWidth)||0,c=((d=i==null?void 0:i.documentElement)==null?void 0:d.clientHeight)||0;o.value={position:"fixed",top:`${-s.y}px`,left:`${-s.x}px`,right:"auto",bottom:"auto",width:`${l}px`,height:`${c}px`,boxSizing:"border-box"}};st(e,a=>{a&&requestAnimationFrame(()=>{n(),requestAnimationFrame(n)})},{flush:"post"});const r=()=>{e.value&&n()};return typeof window<"u"&&window.addEventListener("resize",r),At(()=>{typeof window<"u"&&window.removeEventListener("resize",r)}),{scrimRef:t,scrimStyle:o}}const Ey={class:"wall-h"},Ry={key:0,class:"wall-tag"},Fy=["innerHTML"],Oy={class:"sec-name"},Ny={class:"sec-count"},Iy={key:1,class:"perrow"},zy=["for"],Dy=["id"],Gy=["value"],jy=["data-list-id"],Hy=["aria-pressed","aria-label","onClick"],By={class:"hcount"},Uy={class:"hlabel"},Wy={class:"main"},Vy={key:0,class:"ph is-soon"},Ky={class:"ph-label"},qy={key:0,class:"ph-count"},Yy={class:"ph-soon"},Zy=["src","alt","role","tabindex","title","onClick","onKeydown","onError"],Xy={key:2,class:"ph"},Jy={class:"ph-label"},Qy={key:0,class:"ph-count"},e1={class:"ph-note"},t1={class:"tape pfs"},o1=["aria-expanded","onClick"],n1=["onClick"],a1=["aria-expanded","onClick"],r1=["aria-label"],s1=["onClick"],i1=["aria-label"],l1=["onClick"],c1={class:"modal",role:"dialog","aria-live":"polite"},u1={class:"modal-kind"},d1={class:"modal-title"},p1={class:"modal-err"},g1={class:"modal-soon"},h1={class:"bar"},f1={class:"modal-phase"},m1={class:"modal-hint"},ma=0,sp=2,ip=5,lp=2,cp="doxa-maps:poster-wall:per-row",b1=210,$1={__name:"PosterWall",props:{items:{type:Array,required:!0},groupBy:{type:Function,default:()=>"All"},instanceId:{type:String,default:"poster-wall"},isDark:{type:Boolean,default:!1},assetsBase:{type:String,default:"./assets"},eventName:{type:String,default:"doxa-poster-wall:show-on-map"},heading:{type:String,default:"Prayer Lists & Posters"},tag:{type:String,default:""},intro:{type:String,default:""},unit:{type:String,default:"UPG"},itemNoun:{type:String,default:"list"},itemNounPlural:{type:String,default:""},itemCountKey:{type:String,default:""},collapsible:{type:Boolean,default:!1},collapsedBy:{type:Function,default:()=>!1},unsupported:{type:Function,default:()=>null},downloadPrefix:{type:String,default:"doxa"},prayerListSoonMessage:{type:String,default:"Coming soon — the prayer list for each people group is in build."},records:{type:Function,default:null},iso3Names:{type:Function,default:null},mapImage:{type:Function,default:null},sheet:{type:Function,default:null},cardStock:{type:String,default:"poker"},cardStocks:{type:[Boolean,Array],default:!1},posterAction:{type:String,default:"print"},previewAction:{type:String,default:"none"},hidePrayerListWhenSoon:{type:Boolean,default:!1},embedded:{type:Boolean,default:!1},sectionHeads:{type:Boolean,default:!0},columns:{type:Number,default:0},columnsControl:{type:Boolean,default:!1}},setup(e){const t=(C,z)=>Do(C)||z,o=e,n=ve(a()??(o.columns||lp));st(()=>o.columns,C=>{a()==null&&(n.value=C||lp)}),st(n,C=>{(C===ma||Number.isFinite(C)&&C>=sp&&C<=ip)&&s(C)});const r=[ma,2,3,4,5];function a(){try{const C=window.localStorage.getItem(cp);if(C==null||C==="")return null;const z=Number(C);return z===ma?ma:Number.isFinite(z)&&z>=sp&&z<=ip?z:null}catch{return null}}function s(C){try{window.localStorage.setItem(cp,String(C))}catch{}}const i=ve(typeof window<"u"?window.innerWidth:1280);if(typeof window<"u"){const C=()=>{i.value=window.innerWidth};window.addEventListener("resize",C),At(()=>window.removeEventListener("resize",C))}const l=ue(()=>{if(!(n.value>0))return{};const C=Math.max(0,i.value-36),z=Math.max(1,Math.floor(C/b1));return{gridTemplateColumns:`repeat(${Math.min(n.value,z)}, minmax(0, 1fr))`}}),c=ue(()=>o.itemNounPlural||o.itemNoun),u=la(""),d=(C,z)=>u(C,{n:Number(z||0).toLocaleString()},Number(z||0)),h=(C,z,g=null,p=void 0)=>{const R=u(C,g||{},p);return R&&R!==C?R:String(z).replace(/\{(\w+)\}/g,(W,he)=>g&&g[he]!=null?String(g[he]):W)},b=C=>o.itemCountKey?d(o.itemCountKey,C):`${C} ${C===1?o.itemNoun:c.value}`,x=ue(()=>String(o.assetsBase||"./assets").replace(/\/+$/,"")),y=ue(()=>{const C=String(li()||"").replace(/\/+$/,"");return C?`${C}/assets`:""}),P=ve({}),S=C=>`${P.value[C]?y.value:x.value}/previews/${C}.webp`;function $(C){const z=y.value;if(!P.value[C]&&z&&z!==x.value){P.value={...P.value,[C]:1};return}A.value={...A.value,[C]:!0}}const v=ue(()=>{const C=new Map;for(const z of o.items||[]){if(!z||!z.id)continue;const g=o.groupBy(z)||"Other";C.has(g)||C.set(g,[]),C.get(g).push(z)}return[...C.entries()].map(([z,g])=>({name:z,items:g.slice().sort((p,R)=>(R.count||0)-(p.count||0)),total:g.reduce((p,R)=>p+(R.count||0),0)})).sort((z,g)=>g.total-z.total)}),f=ue(()=>{const C={};for(const z of v.value)C[z.name]=!!o.collapsedBy(z);return C}),w=ve({}),T=C=>o.collapsible?C in w.value?!!w.value[C]:!!f.value[C]:!1,O=C=>{w.value={...w.value,[C]:!T(C)}},F=ve(null),A=ve({}),ce=ve(null);let H=[];Dt(()=>{const C=[];for(let g=ce.value;g;g=g.parentNode||g.host||null)g.nodeType===1&&C.push(g);const z=()=>C.some(g=>g.hasAttribute("inert")||g.hasAttribute("hidden")||g.getAttribute("aria-hidden")==="true");if(!(typeof MutationObserver>"u"))for(const g of C){const p=new MutationObserver(()=>{z()&&(F.value=null)});p.observe(g,{attributes:!0,attributeFilter:["inert","hidden","aria-hidden"]}),H.push(p)}}),At(()=>{for(const C of H)C.disconnect();H=[]});function j(C){const z=F.value===C.id;F.value=z?null:C.id,window.dispatchEvent(new CustomEvent(o.eventName,{detail:{instanceId:o.instanceId,listId:z?null:C.id,label:z?null:C.label}}))}const m=ve(null),{scrimRef:D,scrimStyle:E}=My(m);async function X(C){if(m.value)return;const z=o.unsupported(C);if(z){m.value={label:C.label,kind:h("wall.hud.kindPoster","Poster"),phase:"soon",message:z,pct:0};return}m.value={label:C.label,kind:h("wall.hud.kindPoster","Poster"),phase:"fetch",message:h("wall.hud.fetchingPoster","fetching the poster"),pct:20};try{if(o.sheet){m.value={...m.value,phase:"render",message:h("wall.hud.generatingPoster","generating the poster"),pct:35};const p=o.posterAction==="print"?"letter":C.sheet==="3x3"?"3x3":"3x4",R=await Promise.resolve().then(()=>o.sheet(C,p)).catch(()=>"");if(R){const{rasterPoster:W,looksRendered:he}=await lt(async()=>{const{rasterPoster:G,looksRendered:ee}=await Promise.resolve().then(()=>Ai);return{rasterPoster:G,looksRendered:ee}},void 0),de=await W(R,{scale:2});if(await he(de)){await M(de,C);return}}}const g=await tp(`${x.value}/posters/${C.id}.webp`);if(!g){m.value={...m.value,phase:"render",message:h("wall.hud.generatingPoster","generating the poster"),pct:45};const p=await op(`${x.value}/posters/${C.id}.html`);if(!p.html)throw Ho("wall.hud.posterNotFound","poster not found ({status})",{status:p.status});const{rasterPoster:R,looksRendered:W}=await lt(async()=>{const{rasterPoster:de,looksRendered:G}=await Promise.resolve().then(()=>Ai);return{rasterPoster:de,looksRendered:G}},void 0),he=await R(p.html,{scale:2});if(!await W(he))throw Ho("wall.hud.posterBlank","the generated poster came out blank");await M(he,C);return}await M(g,C)}catch(g){m.value={label:C.label,kind:h("wall.hud.kindPoster","Poster"),phase:"error",message:np(g,(p,R)=>h(p,p,R)).slice(0,140),pct:0}}}const J=C=>String(C).split(".").pop().replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/^./,z=>z.toUpperCase()),{t:q,locale:V}=dd("",{fallback:C=>J(C)}),le=ve(o.cardStock),Z=ve([]),me=C=>{if(!C.noun)return C.label;const z=`wall.stock${C.noun[0].toUpperCase()}${C.noun.slice(1)}`,g=u(z);if(!g||g===z)return C.label;const p=`${C.w} × ${C.h} in`;return C.side?`${g} ${p} (${u("wall.stockLandscape")})`:`${g} ${p}`};o.cardStocks&<(async()=>{const{STOCK:C}=await Promise.resolve().then(()=>fp);return{STOCK:C}},void 0).then(({STOCK:C})=>{var g;const z=Array.isArray(o.cardStocks)?o.cardStocks:Object.keys(C);Z.value=z.filter(p=>C[p]).map(p=>({id:p,stock:C[p]})),Z.value.some(p=>p.id===le.value)||(le.value=((g=Z.value[0])==null?void 0:g.id)||o.cardStock)}).catch(()=>{});const _e=Ly({t:(C,z,g)=>u(C,z,g),state:m,records:o.records?C=>o.records(C):null,lang:()=>{const C=V&&(V.value??V);return typeof C=="string"&&C||"en"},stock:()=>le.value,label:C=>(C==null?void 0:C.label)||(C==null?void 0:C.id)||"",assetsBase:()=>o.assetsBase,iso3Names:o.iso3Names?()=>o.iso3Names():null,mapImage:o.mapImage?C=>o.mapImage(C):null,sheet:o.sheet?(C,z)=>o.sheet(C,z):null,sets:()=>fetch(`${o.assetsBase}/tables/near-neighbors.json`).then(C=>C.ok?C.json():null).catch(()=>null)}),k=ue(()=>typeof o.records=="function"),I=ue(()=>o.previewAction==="print"),U=ve(null),ae=(C,z)=>`${C}:${z}`;function ye(C,z,g="deck"){var W,he,de;const p=ae(C,g);U.value=U.value===p?null:p;const R=(he=(W=z==null?void 0:z.currentTarget)==null?void 0:W.closest)==null?void 0:he.call(W,".pfs");R&&((de=R.parentElement)==null||de.style.setProperty("--pstocks-gap",`${R.offsetHeight}px`))}function pe(C,z){le.value=z,U.value=null,_e.printCardDeck(C)}function xe(C){if(!k.value){m.value={label:C.label,kind:h("wall.hud.kindPrayerList","Prayer List"),phase:"soon",message:o.prayerListSoonMessage,pct:0};return}_e.printList(C)}const Ge=[{id:"full",labelKey:"buttons.packetFull"},{id:"lightweight",labelKey:"buttons.packetLightweight"}];function _(C,z){if(!k.value){xe(C);return}U.value=null,_e.printPacket(C,{variant:z})}async function M(C,z){if(o.posterAction==="print"){m.value={...m.value,phase:"save",message:h("wall.hud.openingPrint","opening the print dialog"),pct:80};const{openPrintFrame:g}=await lt(async()=>{const{openPrintFrame:R}=await Promise.resolve().then(()=>$_);return{openPrintFrame:R}},void 0),p=URL.createObjectURL(C);L.push(p),g(''+K(`${o.downloadPrefix} — ${z.label||z.id}`)+`${K(z.label||z.id)}`,{autoprint:!0})}else m.value={...m.value,phase:"save",message:h("wall.hud.saving","saving"),pct:80},ne(C,`${o.downloadPrefix}-${z.id}-poster.webp`);m.value={...m.value,phase:"done",message:o.posterAction==="print"?h("wall.hud.printOpened","print dialog opened"):h("wall.hud.saved","saved"),pct:100},setTimeout(()=>{m.value=null},900)}const L=[];At(()=>{for(const C of L.splice(0))try{URL.revokeObjectURL(C)}catch{}});const K=C=>String(C??"").replace(/&/g,"&").replace(//g,">").replace(/"/g,""");function ne(C,z){const g=document.createElement("a");g.href=URL.createObjectURL(C),g.download=z,document.body.appendChild(g),g.click(),g.remove(),setTimeout(()=>URL.revokeObjectURL(g.href),4e3)}function oe(){m.value=null}return xt(`.wall{--wall-pad-top:22px;position:absolute;inset:0;overflow-y:auto;padding:var(--wall-pad-top) 18px 44px;background:#f6f7f9;color:#0f1419;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}.wall.is-dark{background:#0a1410;color:#e5e7eb}.wall--embedded{--wall-pad-top:0px;position:static;inset:auto;overflow-y:visible;padding:0;background:transparent}.wall--embedded.is-dark{background:transparent}.wall-h{margin:0 0 6px;font-size:19px;font-weight:700;text-align:center}.wall-tag{margin:0 auto 12px;width:fit-content;padding:3px 11px;border-radius:999px;background:rgba(16,185,129,.13);color:#0b7a5b;border:1px solid rgba(16,185,129,.28);font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.is-dark .wall-tag{background:rgba(16,185,129,.16);color:#6ee7b7;border-color:rgba(110,231,183,.32)}.wall-sub{margin:0 auto 22px;max-width:620px;font-size:12.5px;line-height:1.55;text-align:center;opacity:.75}.wall-sub strong{font-weight:700;opacity:1;color:inherit}.grid{display:grid;gap:56px 30px;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));max-width:1180px;margin:0 auto}.perrow{display:flex;align-items:center;justify-content:flex-end;gap:8px;max-width:1180px;margin:0 auto 12px;font:inherit;font-size:13px}.perrow__label{color:#6d766e}.perrow__select{font:inherit;font-size:13px;padding:2px 6px;border:1px solid #cbd2d9;border-radius:6px;background:#fff;color:inherit;cursor:pointer}.is-dark .perrow__label{color:#9fb3a6}.is-dark .perrow__select{background:#132019;border-color:rgba(110,231,183,.20)}.card{--card-pad-top:24px;--tape-overlap:16px;position:relative;background:#fff;border:1px solid #e3e6ea;border-radius:3px;padding:var(--card-pad-top) 12px 26px;box-shadow:0 1px 3px rgba(0,0,0,.10),0 6px 18px rgba(0,0,0,.07);transition:transform .16s ease,box-shadow .16s ease}.card:hover,.card:focus-within{transform:translateY(-3px);box-shadow:0 3px 8px rgba(0,0,0,.14),0 12px 28px rgba(0,0,0,.10);outline:2px solid #2f6fdb;outline-offset:2px}.is-dark .card:hover,.is-dark .card:focus-within{outline-color:#5aa0ff}@media (hover:none){.card:hover,.card:focus-within{transform:none;outline:none}}.is-dark .card{background:#132019;border-color:rgba(110,231,183,.20)}.tape{box-sizing:border-box;position:absolute;left:50%;transform:translateX(-50%);z-index:2;font-size:10.5px;font-weight:600;letter-spacing:.02em;cursor:pointer;border:1px solid rgba(0,0,0,.08);background:#eef2f6;color:#23303c}.is-dark .tape{background:#1d2b23;color:#cfe9d9;border-color:rgba(255,255,255,.10)}.tape-h{top:calc(var(--card-pad-top,24px) - var(--tape-overlap,16px));transform:translateX(-50%);width:82%;padding:4px 8px;border-radius:999px;display:flex;align-items:center;justify-content:center;gap:5px}.tape-h:hover{background:#e2e8ee}.hcount{font-weight:800;font-variant-numeric:tabular-nums}.hsep{opacity:.45}.hlabel{font-weight:600}.card.is-last{box-shadow:0 0 0 2px #10b981,0 6px 18px rgba(0,0,0,.10)}.card.is-last .tape-h{background:#10b981;color:#04241a;border-color:#10b981}.pfs{position:absolute;top:calc(100% - var(--tape-overlap,16px));left:50%;transform:translateX(-50%);width:82%;max-width:82%;min-width:0;box-sizing:border-box;margin:0;padding:0 4px 3px;border:1px solid rgba(0,0,0,.14);border-radius:2px;background:#fff;display:flex;flex-wrap:wrap;gap:2px;justify-content:center;box-shadow:0 1px 4px rgba(0,0,0,.10)}.pfs > .pbtn{flex:0 1 auto;min-width:0;white-space:normal;overflow-wrap:break-word;text-align:center;line-height:1.2}.is-dark .pfs{background:#132019;border-color:rgba(110,231,183,.24)}.pstocks{top:100%;margin-top:calc(var(--pstocks-gap,20px) - 11px);width:92%;max-width:92%;box-sizing:border-box;padding:3px;border-radius:2px;background:#fff;display:flex;flex-wrap:wrap;gap:3px;justify-content:center;box-shadow:0 1px 4px rgba(0,0,0,.10);cursor:default}.is-dark .pstocks{background:#132019;border-color:rgba(110,231,183,.24)}.card.has-tape-open{z-index:5}.pstocks{box-shadow:0 2px 10px rgba(0,0,0,.18)}.pfs > legend{margin:0 auto;padding:0 5px;font-size:8px;text-transform:uppercase;letter-spacing:.6px;font-weight:700;color:#8a93a0}.is-dark .pfs > legend{color:#7f9c8c}.pbtn{position:relative;flex:1;border:0;background:none;color:#5b6672;font:inherit;font-size:10.5px;font-weight:600;padding:2px 6px 3px;cursor:pointer;white-space:nowrap;transition:color .15s}.pbtn::after{content:"";position:absolute;left:6px;right:6px;bottom:0;height:2px;border-radius:2px;background:transparent;transition:background .15s}.pbtn:hover{color:#10b981}.pbtn:hover::after{background:#10b981}.pbtn-deck[aria-expanded="true"]{color:#10b981}.pbtn-deck::before{content:"\\25B8";display:inline-block;margin-right:3px;font-size:8px;transition:transform .15s}.pbtn-deck[aria-expanded="true"]::before{transform:rotate(90deg)}.pstock{flex:0 1 auto;min-width:0;max-width:100%;border:1px solid #d8dde3;border-radius:3px;background:#fff;color:#5b6672;font:inherit;font-size:9.5px;font-weight:600;padding:2px 5px;cursor:pointer;line-height:1.25;white-space:normal;overflow-wrap:break-word}.pstock:hover{border-color:#10b981;color:#10b981}.pstock.is-on{border-color:#10b981;color:#0b7a5b;background:rgba(16,185,129,.10)}@media (pointer:coarse){.pbtn{min-height:24px}.pstock{min-height:24px}.tape-h{min-height:24px}}.img.is-clickable{cursor:zoom-in}.img.is-clickable:hover{outline:2px solid #38bdf8;outline-offset:-2px}.img.is-clickable:focus-visible{outline:2px solid #38bdf8;outline-offset:-2px}.is-dark .pstock{background:#12211a;border-color:#2c4a3b;color:#9fb3a8}.is-dark .pbtn{color:#9fb3a8}.sec{max-width:1180px;margin:0 auto;padding-bottom:44px}.sec-head{display:flex;align-items:baseline;gap:10px;margin:0 2px 14px;padding:11px 10px 9px;border-bottom:1px solid rgba(0,0,0,.10);position:sticky;top:0;z-index:6;background:#f6f7f9;box-shadow:0 6px 10px -8px rgba(0,0,0,.35);border-radius:4px 4px 0 0}.is-dark .sec-head{border-bottom-color:rgba(255,255,255,.12);background:#0a1410;box-shadow:0 6px 10px -8px rgba(0,0,0,.7)}.sec-head::before{content:"";position:absolute;left:-20px;right:-20px;bottom:100%;height:var(--wall-pad-top,0px);background:inherit;pointer-events:none}.wall--embedded .sec-head::before{display:none}.sec-head.is-shut{border-bottom-color:transparent;margin-bottom:6px}.sec-head.is-toggle{cursor:pointer;user-select:none;width:100%;text-align:left;border-top:0;border-left:0;border-right:0;font:inherit;color:inherit}.sec-head.is-toggle:hover .sec-name{color:#10b981}.sec-caret{display:inline-block;width:12px;font-size:10px;opacity:.55;transition:transform .18s ease}.sec-caret.is-open{transform:rotate(90deg)}.sec-name{margin:0;font-size:15px;font-weight:700;letter-spacing:.01em}.sec-count{font-size:11px;opacity:.6;font-variant-numeric:tabular-nums}.main{--banner-pad-top:24px;--banner-pad-bottom:24px;position:relative;aspect-ratio:1/1;border:1px solid #dfe3e7;overflow:visible;padding:var(--banner-pad-top) 10px var(--banner-pad-bottom);background:#fbfcfd;display:flex;align-items:center;justify-content:center}.is-dark .main{background:#0c1712;border-color:rgba(255,255,255,.08)}.img{width:100%;height:100%;object-fit:contain;display:block}.ph{padding:14px 10px;text-align:center}.ph-label{font-size:12.5px;font-weight:700;line-height:1.3}.ph-count{margin-top:5px;font-size:11px;opacity:.7}.ph-note{margin-top:10px;font-size:9.5px;text-transform:uppercase;letter-spacing:.09em;opacity:.45}.ph.is-soon{background:rgba(245,158,11,.06)}.ph-soon{margin-top:9px;font-size:10px;line-height:1.45;color:#8a6414}.is-dark .ph-soon{color:#e8b862}.modal-scrim{position:fixed;inset:0;z-index:1000;background:rgba(8,12,16,.55);display:grid;place-items:center;padding:22px}.modal{width:min(340px,100%);background:#fff;color:#0f1419;border-radius:14px;padding:20px 22px;box-shadow:0 10px 40px rgba(0,0,0,.35);text-align:center}.is-dark .modal{background:#132019;color:#e5e7eb}.modal-kind{font-size:10px;text-transform:uppercase;letter-spacing:.1em;opacity:.55}.modal-title{margin:3px 0 14px;font-size:15px;font-weight:700;line-height:1.3}.bar{height:5px;border-radius:99px;background:rgba(0,0,0,.10);overflow:hidden}.is-dark .bar{background:rgba(255,255,255,.12)}.bar-fill{height:100%;background:#10b981;border-radius:99px;transition:width .25s ease}.modal-phase{margin-top:10px;font-size:12.5px;font-weight:600}.modal-hint{margin-top:6px;font-size:11px;line-height:1.5;opacity:.62}.modal-soon{font-size:13px;line-height:1.5;color:#5f5849;margin:6px 0 14px}.modal-err{font-size:12.5px;line-height:1.55;color:#b42318;margin-bottom:14px}.is-dark .modal-err{color:#fda29b}.modal-btn{border:1px solid rgba(0,0,0,.14);background:transparent;color:inherit;font:inherit;font-size:12.5px;padding:6px 18px;border-radius:8px;cursor:pointer}.modal-btn:hover{background:rgba(0,0,0,.06)}`,"doxa-poster-wall"),(C,z)=>(B(),Y("div",{ref_key:"wallEl",ref:ce,class:ot(["wall",{"is-dark":e.isDark,"wall--embedded":e.embedded}])},[N("h2",Ey,te(e.heading),1),e.tag?(B(),Y("div",Ry,te(e.tag),1)):Te("",!0),e.intro?(B(),Y("p",{key:1,class:"wall-sub",innerHTML:e.intro},null,8,Fy)):Te("",!0),(B(!0),Y(ze,null,ut(v.value,g=>(B(),Y("section",{key:g.name,class:"sec"},[e.sectionHeads?(B(),Ft(ms(e.collapsible?"button":"div"),{key:0,class:ot(["sec-head",{"is-toggle":e.collapsible,"is-shut":e.collapsible&&T(g.name)}]),type:e.collapsible?"button":null,"aria-expanded":e.collapsible?String(!T(g.name)):null,onClick:p=>e.collapsible&&O(g.name)},{default:Lo(()=>[e.collapsible?(B(),Y("span",{key:0,class:ot(["sec-caret",{"is-open":!T(g.name)}])},"▶",2)):Te("",!0),N("h3",Oy,te(g.name),1),N("span",Ny,te(d("wall.peopleGroupCount",g.total))+" · "+te(b(g.items.length)),1)]),_:2},1032,["class","type","aria-expanded","onClick"])):Te("",!0),e.columnsControl&&!T(g.name)?(B(),Y("div",Iy,[N("label",{class:"perrow__label",for:`perrow-${e.instanceId}-${g.name}`},te(fe(q)("buttons.postersPerRow")),9,zy),Ha(N("select",{id:`perrow-${e.instanceId}-${g.name}`,class:"perrow__select","onUpdate:modelValue":z[0]||(z[0]=p=>n.value=p)},[(B(),Y(ze,null,ut(r,p=>N("option",{key:p,value:p},te(p===ma?fe(q)("buttons.postersPerRowAuto"):p),9,Gy)),64))],8,Dy),[[xh,n.value,void 0,{number:!0}]])])):Te("",!0),Ha(N("div",{class:"grid",style:mt(l.value)},[(B(!0),Y(ze,null,ut(g.items,p=>(B(),Y("div",{key:p.id,class:ot(["card",{"is-last":F.value===p.id,"has-tape-open":U.value===ae(p.id,"deck")||U.value===ae(p.id,"packet")}]),"data-list-id":p.id},[N("button",{type:"button",class:"tape tape-h","aria-pressed":F.value===p.id?"true":"false","aria-label":fe(q)("buttons.showOnMapAria",{label:p.label}),onClick:R=>j(p)},[N("span",By,te(p.count)+" "+te(e.unit),1),z[2]||(z[2]=N("span",{class:"hsep"},"·",-1)),N("span",Uy,te(fe(q)("buttons.showOnMap")),1)],8,Hy),N("div",Wy,[e.unsupported(p)?(B(),Y("div",Vy,[N("div",Ky,te(p.label),1),p.count?(B(),Y("div",qy,te(d("wall.peopleGroupCount",p.count)),1)):Te("",!0),N("div",Yy,te(e.unsupported(p)),1)])):A.value[p.id]?(B(),Y("div",Xy,[N("div",Jy,te(p.label),1),p.count?(B(),Y("div",Qy,te(d("wall.peopleGroupCount",p.count)),1)):Te("",!0),N("div",e1,te(t("poster.preview_unavailable","preview unavailable")),1)])):(B(),Y("img",{key:1,class:ot(["img",{"is-clickable":I.value}]),src:S(p.id),alt:I.value?h("wall.posterAltAction","{label} — prayer poster (click to preview and print)",{label:p.label}):h("wall.posterAlt","{label} — prayer poster",{label:p.label}),loading:"lazy",decoding:"async",role:I.value?"button":null,tabindex:I.value?0:null,title:I.value?fe(q)("buttons.previewPrintPoster",{label:p.label}):null,onClick:R=>I.value&&X(p),onKeydown:[Rc(on(R=>I.value&&X(p),["prevent"]),["enter"]),Rc(on(R=>I.value&&X(p),["prevent"]),["space"])],onError:R=>$(p.id)},null,42,Zy)),N("fieldset",t1,[N("legend",null,te(fe(q)("buttons.printOptions")),1),e.hidePrayerListWhenSoon&&!k.value?Te("",!0):(B(),Y("button",{key:0,type:"button",class:"pbtn","aria-expanded":String(U.value===ae(p.id,"packet")),onClick:on(R=>ye(p.id,R,"packet"),["stop"])},te(fe(q)("buttons.prayerList")),9,o1)),N("button",{type:"button",class:"pbtn",onClick:R=>X(p)},te(fe(q)("buttons.posterMap")),9,n1),k.value?(B(),Y("button",{key:1,type:"button",class:"pbtn pbtn-deck","aria-expanded":String(U.value===ae(p.id,"deck")),onClick:on(R=>ye(p.id,R,"deck"),["stop"])},te(fe(q)("buttons.cardDeck")),9,a1)):Te("",!0)]),U.value===ae(p.id,"packet")?(B(),Y("div",{key:3,class:"tape pstocks",role:"group","aria-label":fe(q)("buttons.packetVariantAria")},[(B(),Y(ze,null,ut(Ge,R=>N("button",{key:R.id,type:"button",class:"pstock",onClick:on(W=>_(p,R.id),["stop"])},te(fe(q)(R.labelKey)),9,s1)),64))],8,r1)):Te("",!0),k.value&&Z.value.length&&U.value===ae(p.id,"deck")?(B(),Y("div",{key:4,class:"tape pstocks",role:"group","aria-label":fe(q)("buttons.cardStockAria")},[(B(!0),Y(ze,null,ut(Z.value,R=>(B(),Y("button",{key:R.id,type:"button",class:ot(["pstock",{"is-on":le.value===R.id}]),onClick:on(W=>pe(p,R.id),["stop"])},te(me(R.stock)),11,l1))),128))],8,i1)):Te("",!0)])],10,jy))),128))],4),[[kc,!T(g.name)]])]))),128)),m.value?(B(),Y("div",{key:2,ref_key:"scrimRef",ref:D,style:mt(fe(E)),class:"modal-scrim",onClick:z[1]||(z[1]=on(g=>m.value.phase==="error"&&oe(),["self"]))},[N("div",c1,[N("div",u1,te(m.value.kind),1),N("div",d1,te(m.value.label),1),m.value.phase==="error"?(B(),Y(ze,{key:0},[N("div",p1,te(m.value.message),1),N("button",{type:"button",class:"modal-btn",onClick:oe},te(fe(q)("buttons.close")),1)],64)):m.value.phase==="soon"?(B(),Y(ze,{key:1},[N("div",g1,te(m.value.message),1),N("button",{type:"button",class:"modal-btn",onClick:oe},te(fe(q)("buttons.close")),1)],64)):(B(),Y(ze,{key:2},[N("div",h1,[N("div",{class:"bar-fill",style:mt({width:m.value.pct+"%"})},null,4)]),N("div",f1,te(m.value.message),1),N("div",m1,te(fe(q)("buttons.renderingLocal")),1)],64))])],4)):Te("",!0)],2))}},_1={class:"region-card"},y1={class:"region-card__header"},v1={class:"region-card__title"},w1={key:0,class:"region-card__summary"},k1={class:"region-card__body"},x1={class:"countries-grid"},P1=["onClick"],S1={key:0,class:"country-link__count"},C1={key:0,class:"region-card__footer"},A1={key:1,class:"region-card__footer region-card__posters-toggle"},L1=["aria-expanded","aria-controls"],T1=["id"],M1={__name:"RegionSectionCard",props:{title:{type:String,default:""},summary:{type:String,default:""},countries:{type:Array,default:()=>[]},footerLabel:{type:String,default:""},disclosureLabel:{type:String,default:""},disclosureOpen:{type:Boolean,default:!1},disclosureId:{type:String,default:""}},emits:["select","select-country","toggle-disclosure"],setup(e,{emit:t}){const o=t;return xt('.region-card{ flex:0 0 auto; border-radius:var(--dx-radius); overflow:hidden; background:var(--dx-elevated); }.region-card__header{ display:flex; flex-direction:column; gap:var(--spacing-2xs); padding:var(--spacing-md) clamp(var(--spacing-md), 4cqw, var(--spacing-2xl)); background:var(--dx-header-bg); color:var(--dx-header-text); }.region-card__title{ margin:0; font-size:clamp(var(--font-size-xl), 4cqw, var(--font-size-3xl)); line-height:1; font-family:"Bebas Neue","Arial Narrow",BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif; font-weight:400; letter-spacing:normal; }.region-card__link{ appearance:none; background:none; border:0; padding:0; margin:0; text-align:start; cursor:pointer; color:inherit; font:inherit; font-weight:500; display:inline-flex; align-items:baseline; }.region-card__link:hover{ color:#92b195; }.region-card__link:focus-visible{ outline:2px solid #fff; outline-offset:2px; }.region-card__icon{ width:0.7em; height:0.7em; flex:none; fill:currentColor; transform:rotate(90deg); margin-inline-start:10px; }.region-card__summary{ font-size:var(--font-size-md); opacity:0.85; margin:0; }'+Er(".rl-title",".region-card__title")+`.region-card__body{ padding:var(--spacing-lg) clamp(var(--spacing-md), 4cqw, var(--spacing-2xl)) var(--spacing-xl); }.countries-grid{ list-style:none; margin:0; padding-inline-start:1.8em; display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:10px var(--spacing-xl); }.country-link{ appearance:none; background:none; border:0; padding:2px 0; margin:0; text-align:start; cursor:pointer; color:#4e594f; font:inherit; font-size:var(--font-size-md); font-weight:500; width:100%; position:relative; }.country-link::before{ content:''; position:absolute; top:0.3em; width:1.5em; height:1.5em; line-height:0.9; margin-inline-start:-1.3em; background-repeat:no-repeat; background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='%2392b195' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='7' stroke='%2392b195' stroke-width='1.5'/%3E%3C/svg%3E"); }[dir="rtl"] .country-link::before{ margin-inline-start:-2em; }.country-link:hover{ text-decoration:underline; text-decoration-color:#92b195; }.country-link:focus-visible{ outline:2px solid #92b195; outline-offset:2px; border-radius:4px; }.country-link__count{ color:var(--dx-muted); }.region-card__posters-toggle{ margin-top:0; }.region-card__icon--open{ transform:rotate(180deg); }[dir="rtl"] .region-card__icon{ transform:rotate(-90deg); }[dir="rtl"] .region-card__icon--open{ transform:rotate(180deg); }.region-card__posters{ margin-top:13.3px; }.region-card__footer{ display:flex; justify-content:flex-end; margin:0; margin-top:var(--spacing-lg); padding:0 clamp(var(--spacing-md), 4cqw, var(--spacing-2xl)) var(--spacing-lg); }.region-card__footer-link{ appearance:none; background:none; border:0; padding:0; margin:0; cursor:pointer; font:inherit; font-size:var(--font-size-md); font-weight:500; color:var(--dx-link); display:inline-flex; align-items:baseline; gap:10px; text-decoration:underline; text-decoration-thickness:2px; }.region-card__footer-link:hover{ color:var(--dx-header-bg); }.region-card__footer-link:focus-visible{ outline:2px solid var(--dx-link); outline-offset:2px; border-radius:4px; }`,"regions-list"),(n,r)=>(B(),Y("div",_1,[N("div",y1,[N("h2",v1,[N("button",{type:"button",class:"region-card__link",onClick:r[0]||(r[0]=a=>o("select"))},[Be(te(e.title)+" ",1),r[3]||(r[3]=N("svg",{class:"region-card__icon",viewBox:"0 0 489.67 289.877","aria-hidden":"true"},[N("path",{d:"M439.017,211.678L263.258,35.919c-3.9-3.9-8.635-6.454-13.63-7.665-9.539-2.376-20.051.161-27.509,7.619L46.361,211.632c-10.323,10.323-10.323,27.056,0,37.379,10.323,10.323,27.056,10.323,37.379,0l161.068-161.068,161.068,161.068c10.323,10.323,27.056,10.323,37.379,0,10.277-10.324,10.277-27.011-.238-37.333Z"})],-1))])]),e.summary?(B(),Y("p",w1,te(e.summary),1)):Te("",!0)]),N("div",k1,[N("ul",x1,[(B(!0),Y(ze,null,ut(e.countries,a=>(B(),Y("li",{key:a.slug||a.name},[N("button",{type:"button",class:"country-link",onClick:s=>o("select-country",a)},[Be(te(a.name),1),a.count!=null?(B(),Y("span",S1," ("+te(a.count)+")",1)):Te("",!0)],8,P1)]))),128))])]),e.footerLabel?(B(),Y("p",C1,[N("button",{type:"button",class:"region-card__footer-link",onClick:r[1]||(r[1]=a=>o("select"))},[Be(te(e.footerLabel)+" ",1),r[4]||(r[4]=N("svg",{class:"region-card__icon",viewBox:"0 0 489.67 289.877","aria-hidden":"true"},[N("path",{d:"M439.017,211.678L263.258,35.919c-3.9-3.9-8.635-6.454-13.63-7.665-9.539-2.376-20.051.161-27.509,7.619L46.361,211.632c-10.323,10.323-10.323,27.056,0,37.379,10.323,10.323,27.056,10.323,37.379,0l161.068-161.068,161.068,161.068c10.323,10.323,27.056,10.323,37.379,0,10.277-10.324,10.277-27.011-.238-37.333Z"})],-1))])])):Te("",!0),e.disclosureLabel?(B(),Y("p",A1,[N("button",{type:"button",class:"region-card__footer-link","aria-expanded":e.disclosureOpen?"true":"false","aria-controls":e.disclosureId||void 0,onClick:r[2]||(r[2]=a=>o("toggle-disclosure"))},[Be(te(e.disclosureLabel)+" ",1),(B(),Y("svg",{class:ot(["region-card__icon",{"region-card__icon--open":e.disclosureOpen}]),viewBox:"0 0 489.67 289.877","aria-hidden":"true"},[...r[5]||(r[5]=[N("path",{d:"M439.017,211.678L263.258,35.919c-3.9-3.9-8.635-6.454-13.63-7.665-9.539-2.376-20.051.161-27.509,7.619L46.361,211.632c-10.323,10.323-10.323,27.056,0,37.379,10.323,10.323,27.056,10.323,37.379,0l161.068-161.068,161.068,161.068c10.323,10.323,27.056,10.323,37.379,0,10.277-10.324,10.277-27.011-.238-37.333Z"},null,-1)])],2))],8,L1)])):Te("",!0),e.disclosureOpen?(B(),Y("div",{key:2,id:e.disclosureId||void 0,class:"region-card__posters"},[Za(n.$slots,"extra")],8,T1)):Te("",!0)]))}},E1={countries:[{id:"country-ind",iso3:"IND",label:"India",count:855,region:"Asia",bbox:[68.772258,8.087722,97.021619,34.627874],sheet:null,hasGeometry:!1,unsupportedReason:"India has 855 people groups — too many to fit one poster legibly. A solution is in progress."},{id:"country-chn",iso3:"CHN",label:"People's Republic of China",count:154,region:"Asia",bbox:[73.723,18.221,134.797,53.349],sheet:"3x4",hasGeometry:!0,unsupportedReason:null},{id:"country-sdn",iso3:"SDN",label:"Sudan",count:105,region:"Middle East",bbox:[21.814,8.641,38.582,23.143],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-bra",iso3:"BRA",label:"Brazil",count:103,region:"Latin America & Caribbean",bbox:[-73.988,-33.749,-34.794,5.27],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-lao",iso3:"LAO",label:"Lao People's Democratic Republic",count:95,region:"Asia",bbox:[100.084,13.91,107.633,22.493],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-tcd",iso3:"TCD",label:"Chad",count:53,region:"Africa",bbox:[13.473,7.441,24,23.498],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-nga",iso3:"NGA",label:"Nigeria",count:38,region:"Africa",bbox:[2.693,4.27,14.678,13.886],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-idn",iso3:"IDN",label:"Indonesia",count:36,region:"Asia",bbox:[95.194,-10.925,141.019,5.651],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-npl",iso3:"NPL",label:"Nepal",count:34,region:"Asia",bbox:[80.06,26.347,88.204,30.473],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-eth",iso3:"ETH",label:"Ethiopia",count:29,region:"Africa",bbox:[33.003,3.403,47.959,14.835],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-col",iso3:"COL",label:"Colombia",count:27,region:"Latin America & Caribbean",bbox:[-78.995,-4.224,-66.87,12.441],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-pak",iso3:"PAK",label:"Pakistan",count:24,region:"Asia",bbox:[60.873,24.041,77.117,37.071],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-ssd",iso3:"SSD",label:"South Sudan",count:22,region:"Africa",bbox:[24.152,3.481,35.951,12.236],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-rus",iso3:"RUS",label:"Russian Federation",count:21,region:"Europe",bbox:[-180,41.187,180,82.055],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-afg",iso3:"AFG",label:"Afghanistan",count:21,region:"Asia",bbox:[60.472,29.377,74.889,38.491],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-irn",iso3:"IRN",label:"Islamic Republic of Iran",count:20,region:"Middle East",bbox:[44.015,25.059,63.32,39.766],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-dza",iso3:"DZA",label:"Algeria",count:17,region:"Middle East",bbox:[-8.669,18.968,11.997,37.09],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-vnm",iso3:"VNM",label:"Vietnam",count:16,region:"Asia",bbox:[102.144,8.556,109.463,23.394],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-tza",iso3:"TZA",label:"United Republic of Tanzania",count:16,region:"Africa",bbox:[29.596,-11.744,40.431,-.987],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-lby",iso3:"LBY",label:"Libya",count:15,region:"Middle East",bbox:[9.287,19.496,25.156,33.181],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-gin",iso3:"GIN",label:"Guinea",count:13,region:"Africa",bbox:[-14.914,7.191,-7.638,12.676],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-mli",iso3:"MLI",label:"Mali",count:13,region:"Africa",bbox:[-12.239,10.146,4.245,25],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-btn",iso3:"BTN",label:"Bhutan",count:13,region:"Asia",bbox:[88.75,26.697,92.124,28.353],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-mys",iso3:"MYS",label:"Malaysia",count:12,region:"Asia",bbox:[100.12,.854,119.267,7.037],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-per",iso3:"PER",label:"Peru",count:10,region:"Latin America & Caribbean",bbox:[-81.327,-18.355,-68.643,-.014],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-ago",iso3:"AGO",label:"Angola",count:10,region:"Africa",bbox:[11.461,-18.039,24.088,-4.397],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-yem",iso3:"YEM",label:"Yemen",count:9,region:"Middle East",bbox:[42.598,12.305,54.534,19],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-som",iso3:"SOM",label:"Somalia",count:9,region:"Africa",bbox:[40.996,-1.665,51.413,11.984],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-ben",iso3:"BEN",label:"Benin",count:9,region:"Africa",bbox:[.783,6.216,3.849,12.417],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-cod",iso3:"COD",label:"Democratic Republic of the Congo",count:9,region:"Africa",bbox:[12.201,-13.449,31.277,5.392],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-eri",iso3:"ERI",label:"Eritrea",count:8,region:"Africa",bbox:[36.433,12.355,43.137,18.02],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-tha",iso3:"THA",label:"Thailand",count:8,region:"Asia",bbox:[97.346,5.613,105.637,20.464],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-cmr",iso3:"CMR",label:"Cameroon",count:8,region:"Africa",bbox:[8.505,1.661,16.188,13.079],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-irq",iso3:"IRQ",label:"Iraq",count:8,region:"Middle East",bbox:[38.775,29.063,48.559,37.371],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-bfa",iso3:"BFA",label:"Burkina Faso",count:8,region:"Africa",bbox:[-5.518,9.401,2.405,15.083],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-omn",iso3:"OMN",label:"Oman",count:7,region:"Middle East",bbox:[52,16.65,59.839,26.387],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-mmr",iso3:"MMR",label:"Myanmar",count:7,region:"Asia",bbox:[92.173,9.973,101.17,28.526],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-jpn",iso3:"JPN",label:"Japan",count:6,region:"Asia",bbox:[123.662,24.255,148.893,45.557],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-tgo",iso3:"TGO",label:"Togo",count:6,region:"Africa",bbox:[-.143,6.112,1.803,11.137],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-uga",iso3:"UGA",label:"Uganda",count:6,region:"Africa",bbox:[29.582,-1.481,35,4.234],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-zmb",iso3:"ZMB",label:"Zambia",count:6,region:"Africa",bbox:[22.001,-18.079,33.712,-8.277],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-ven",iso3:"VEN",label:"Venezuela",count:6,region:"Latin America & Caribbean",bbox:[-73.391,.649,-59.816,12.199],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-nam",iso3:"NAM",label:"Namibia",count:6,region:"Africa",bbox:[11.727,-28.969,25.263,-16.981],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-brn",iso3:"BRN",label:"Brunei Darussalam",count:5,region:"Asia",bbox:[114.08,4.002,115.366,5.042],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-ken",iso3:"KEN",label:"Kenya",count:5,region:"Africa",bbox:[33.914,-4.675,41.906,5.431],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-syr",iso3:"SYR",label:"Syrian Arab Republic",count:5,region:"Middle East",bbox:[35.717,32.311,42.369,37.318],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-lbn",iso3:"LBN",label:"Lebanon",count:4,region:"Middle East",bbox:[35.107,33.05,36.619,34.693],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-pse",iso3:"PSE",label:"State of Palestine",count:4,region:"Middle East",bbox:[34.881,31.342,35.573,32.543],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-moz",iso3:"MOZ",label:"Mozambique",count:4,region:"Africa",bbox:[30.217,-26.858,40.837,-10.48],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-isr",iso3:"ISR",label:"Israel",count:4,region:"Europe",bbox:[34.267,29.491,35.895,33.336],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-mar",iso3:"MAR",label:"Morocco",count:4,region:"Middle East",bbox:[-17.105,20.77,-.999,35.922],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-tur",iso3:"TUR",label:"Türkiye",count:3,region:"Europe",bbox:[26.036,35.808,44.818,42.105],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-qat",iso3:"QAT",label:"Qatar",count:3,region:"Middle East",bbox:[50.757,24.471,51.662,26.159],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-aze",iso3:"AZE",label:"Azerbaijan",count:3,region:"Asia",bbox:[44.765,38.394,50.37,41.913],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-gmb",iso3:"GMB",label:"Republic of The Gambia",count:3,region:"Africa",bbox:[-16.814,13.043,-13.797,13.821],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-sau",iso3:"SAU",label:"Saudi Arabia",count:3,region:"Middle East",bbox:[34.571,16.4,55.667,32.154],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-jor",iso3:"JOR",label:"Jordan",count:3,region:"Middle East",bbox:[34.96,29.184,39.302,33.374],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-zwe",iso3:"ZWE",label:"Zimbabwe",count:3,region:"Africa",bbox:[25.238,-22.421,33.067,-15.607],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-com",iso3:"COM",label:"Comoros",count:3,region:"Africa",bbox:[43.231,-11.938,43.518,-11.367],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-usa",iso3:"USA",label:"United States of America",count:3,region:"Other",bbox:[-178.228,13.246,179.778,71.353],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-bgd",iso3:"BGD",label:"Bangladesh",count:3,region:"Asia",bbox:[88.021,20.728,92.691,26.621],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-gnb",iso3:"GNB",label:"Guinea-Bissau",count:3,region:"Africa",bbox:[-16.717,10.892,-13.635,12.686],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-kos",iso3:"KOS",label:"KOS",count:3,region:"Europe",bbox:[20.629,42.045,21.164624,42.672265],sheet:"3x3",hasGeometry:!1,unsupportedReason:null},{id:"country-mrt",iso3:"MRT",label:"Mauritania",count:3,region:"Middle East",bbox:[-17.102,14.72,-4.833,27.363],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-esh",iso3:"ESH",label:"Western Sahara",count:3,region:"Middle East",bbox:[-13.16135268,26.15604526,-10.60080902,27.1178117],sheet:"3x3",hasGeometry:!1,unsupportedReason:null},{id:"country-tjk",iso3:"TJK",label:"Tajikistan",count:3,region:"Asia",bbox:[67.331,36.671,75.154,41.039],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-egy",iso3:"EGY",label:"Egypt",count:3,region:"Middle East",bbox:[24.706,22,36.892,31.671],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-mng",iso3:"MNG",label:"Mongolia",count:3,region:"Asia",bbox:[87.738,41.58,119.932,52.15],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-sur",iso3:"SUR",label:"Suriname",count:2,region:"North America & Non-Spanish Caribbean",bbox:[-58.069,1.831,-53.975,6.01],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-ner",iso3:"NER",label:"Niger",count:2,region:"Africa",bbox:[.167,11.692,15.997,23.517],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-zaf",iso3:"ZAF",label:"South Africa",count:2,region:"Africa",bbox:[16.452,-34.834,32.945,-22.125],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-cck",iso3:"CCK",label:"Cocos (Keeling) Islands",count:2,region:"Other",bbox:[96.831418,-12.185468,96.895,-12.119],sheet:"3x3",hasGeometry:!1,unsupportedReason:null},{id:"country-bhr",iso3:"BHR",label:"Bahrain",count:2,region:"Middle East",bbox:[50.433,25.792,50.632,26.257],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-cog",iso3:"COG",label:"Republic of the Congo",count:2,region:"Africa",bbox:[11.126,-5.041,18.641,3.711],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-are",iso3:"ARE",label:"United Arab Emirates",count:2,region:"Middle East",bbox:[51.592,22.631,56.376,26.06],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-gab",iso3:"GAB",label:"Gabon",count:2,region:"Africa",bbox:[8.723,-3.953,14.521,2.302],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-guf",iso3:"GUF",label:"French Guiana",count:2,region:"Other",bbox:[-54.601,2.179,-51.656,5.762],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-civ",iso3:"CIV",label:"Cote d'Ivoire",count:2,region:"Africa",bbox:[-8.619,4.344,-2.506,10.726],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-kgz",iso3:"KGZ",label:"Kyrgyzstan",count:2,region:"Asia",bbox:[69.265,39.173,80.23,43.267],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-lbr",iso3:"LBR",label:"Liberia",count:2,region:"Africa",bbox:[-11.498,4.361,-7.369,8.545],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-swe",iso3:"SWE",label:"Sweden",count:2,region:"Europe",bbox:[11.113,55.339,24.167,69.06],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-tun",iso3:"TUN",label:"Tunisia",count:2,region:"Middle East",bbox:[7.522,30.23,11.6,37.347],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-sle",iso3:"SLE",label:"Sierra Leone",count:2,region:"Africa",bbox:[-13.309,6.923,-10.271,9.999],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-and",iso3:"AND",label:"Andorra",count:1,region:"Other",bbox:[1.412,42.43,1.787,42.655],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-sen",iso3:"SEN",label:"Senegal",count:1,region:"Africa",bbox:[-17.531,12.308,-11.358,16.693],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-mne",iso3:"MNE",label:"Montenegro",count:1,region:"Europe",bbox:[18.434,41.846,20.354,43.558],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-bol",iso3:"BOL",label:"Bolivia",count:1,region:"Latin America & Caribbean",bbox:[-69.645,-22.907,-57.454,-9.67],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-ecu",iso3:"ECU",label:"Ecuador",count:1,region:"Latin America & Caribbean",bbox:[-91.59,-5.012,-75.189,1.412],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-vir",iso3:"VIR",label:"Virgin Islands, U.S.",count:1,region:"Other",bbox:[-64.904,17.68,-64.565,17.77],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-atg",iso3:"ATG",label:"Antigua and Barbuda",count:1,region:"North America & Non-Spanish Caribbean",bbox:[-61.897,16.998,-61.674,17.168],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-arm",iso3:"ARM",label:"Armenia",count:1,region:"Europe",bbox:[43.465,38.853,46.637,41.298],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-abw",iso3:"ABW",label:"Aruba",count:1,region:"North America & Non-Spanish Caribbean",bbox:[-70.063,12.415,-69.867,12.621],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-bhs",iso3:"BHS",label:"Bahamas",count:1,region:"North America & Non-Spanish Caribbean",bbox:[-78.998,20.912,-73.012,26.92],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-brb",iso3:"BRB",label:"Barbados",count:1,region:"North America & Non-Spanish Caribbean",bbox:[-59.651,13.052,-59.422,13.335],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-blr",iso3:"BLR",label:"Belarus",count:1,region:"Europe",bbox:[23.165,51.252,32.74,56.167],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-bmu",iso3:"BMU",label:"Bermuda",count:1,region:"Other",bbox:[-64.886,32.248,-64.674,32.339],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-bih",iso3:"BIH",label:"Bosnia and Herzegovina",count:1,region:"Europe",bbox:[15.724,42.557,19.623,45.245],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-vgb",iso3:"VGB",label:"Virgin Islands, British",count:1,region:"Other",bbox:[-64.716,18.389,-64.558,18.457],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-bgr",iso3:"BGR",label:"Bulgaria",count:1,region:"Europe",bbox:[22.348,41.241,28.61,44.21],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-khm",iso3:"KHM",label:"Cambodia",count:1,region:"Asia",bbox:[102.334,10.405,107.628,14.687],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-cym",iso3:"CYM",label:"Cayman Islands",count:1,region:"North America & Non-Spanish Caribbean",bbox:[-81.416,19.265,-81.086,19.388],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-caf",iso3:"CAF",label:"Central African Republic",count:1,region:"Africa",bbox:[14.421,2.221,27.453,11.002],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-cxr",iso3:"CXR",label:"Christmas Island",count:1,region:"Other",bbox:[105.672,-10.426,105.672,-10.426],sheet:"3x3",hasGeometry:!1,unsupportedReason:null},{id:"country-cok",iso3:"COK",label:"Cook Islands",count:1,region:"Oceania",bbox:[-159.819,-21.268,-159.734,-21.2],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-cub",iso3:"CUB",label:"Cuba",count:1,region:"Latin America & Caribbean",bbox:[-84.951,19.842,-74.138,23.187],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-cuw",iso3:"CUW",label:"Curaçao",count:1,region:"North America & Non-Spanish Caribbean",bbox:[-69.156,12.044,-68.737,12.392],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-cyp",iso3:"CYP",label:"Cyprus",count:1,region:"Europe",bbox:[32.276,34.629,34.589,35.695],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-dji",iso3:"DJI",label:"Djibouti",count:1,region:"Africa",bbox:[41.749,10.93,43.414,12.708],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-dma",iso3:"DMA",label:"Dominica",count:1,region:"Other",bbox:[-61.48,15.21,-61.242,15.639],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-gnq",iso3:"GNQ",label:"Equatorial Guinea",count:1,region:"Africa",bbox:[8.415,1,11.36,3.788],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-fro",iso3:"FRO",label:"Faroe Islands",count:1,region:"Europe",bbox:[-7.259,61.946,-6.734,62.31],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-fji",iso3:"FJI",label:"Fiji",count:1,region:"Oceania",bbox:[177.25,-18.276,180,-16.168],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-pyf",iso3:"PYF",label:"French Polynesia",count:1,region:"Oceania",bbox:[-149.62,-17.872,-149.137,-17.494],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-geo",iso3:"GEO",label:"Georgia",count:1,region:"Europe",bbox:[40.008,41.055,46.737,43.586],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-gib",iso3:"GIB",label:"Gibraltar",count:1,region:"Europe",bbox:[-5.35,36.133,-5.35,36.133],sheet:"3x3",hasGeometry:!1,unsupportedReason:null},{id:"country-grc",iso3:"GRC",label:"Greece",count:1,region:"Europe",bbox:[19.628,34.922,28.247,41.733],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-grd",iso3:"GRD",label:"Grenada",count:1,region:"North America & Non-Spanish Caribbean",bbox:[-61.802,12.003,-61.609,12.227],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-glp",iso3:"GLP",label:"Guadeloupe",count:1,region:"Other",bbox:[-61.809,15.947,-61.55,16.362],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-gum",iso3:"GUM",label:"Guam",count:1,region:"Oceania",bbox:[144.619,13.255,144.957,13.648],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-ggy",iso3:"GGY",label:"Guernsey",count:1,region:"Europe",bbox:[-2.675,49.43,-2.505,49.506],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-isl",iso3:"ISL",label:"Iceland",count:1,region:"Europe",bbox:[-24.532,63.399,-13.495,66.537],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-kir",iso3:"KIR",label:"Kiribati",count:1,region:"Oceania",bbox:[-157.554,1.7,-157.169,2.048],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-jam",iso3:"JAM",label:"Jamaica",count:1,region:"North America & Non-Spanish Caribbean",bbox:[-78.368,17.701,-76.19,18.525],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-jey",iso3:"JEY",label:"Jersey",count:1,region:"Europe",bbox:[-2.11,49.1858,-2.11,49.1858],sheet:"3x3",hasGeometry:!1,unsupportedReason:null},{id:"country-kaz",iso3:"KAZ",label:"Kazakhstan",count:1,region:"Asia",bbox:[46.492,40.569,87.316,55.48],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-prk",iso3:"PRK",label:"North Korea",count:1,region:"Asia",bbox:[124.316,37.673,130.675,43.008],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-kwt",iso3:"KWT",label:"Kuwait",count:1,region:"Middle East",bbox:[46.553,28.524,48.431,30.104],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-lie",iso3:"LIE",label:"Liechtenstein",count:1,region:"Europe",bbox:[9.486,47.049,9.634,47.266],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-lux",iso3:"LUX",label:"Luxembourg",count:1,region:"Europe",bbox:[5.736,49.451,6.531,50.175],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-myt",iso3:"MYT",label:"Mayotte",count:1,region:"Africa",bbox:[45.052,-12.993,45.237,-12.651],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-mdv",iso3:"MDV",label:"Maldives",count:1,region:"Asia",bbox:[73.527,1.868,73.545,1.943],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-mlt",iso3:"MLT",label:"Malta",count:1,region:"Europe",bbox:[14.321,35.823,14.569,35.996],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-mnp",iso3:"MNP",label:"Northern Mariana Islands",count:1,region:"Oceania",bbox:[145.708,15.092,145.814,15.287],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-mhl",iso3:"MHL",label:"Marshall Islands",count:1,region:"Oceania",bbox:[171.038,7.053,171.355,7.165],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-mus",iso3:"MUS",label:"Mauritius",count:1,region:"Africa",bbox:[57.309,-20.525,57.809,-19.985],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-fsm",iso3:"FSM",label:"Micronesia, Federated States of",count:1,region:"Oceania",bbox:[158.112,6.784,158.322,6.99],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-mco",iso3:"MCO",label:"Monaco",count:1,region:"Other",bbox:[7.416,43.733,7.416,43.733],sheet:"3x3",hasGeometry:!1,unsupportedReason:null},{id:"country-msr",iso3:"MSR",label:"Montserrat",count:1,region:"Other",bbox:[-62.232,16.675,-62.144,16.824],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-ncl",iso3:"NCL",label:"New Caledonia",count:1,region:"Oceania",bbox:[164,-22.395,168.134,-20.076],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-niu",iso3:"NIU",label:"Niue",count:1,region:"Other",bbox:[-169.949,-19.155,-169.774,-18.953],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-vut",iso3:"VUT",label:"Vanuatu",count:1,region:"Oceania",bbox:[166.542,-18.995,169.341,-14.644],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-nfk",iso3:"NFK",label:"Norfolk Island",count:1,region:"Other",bbox:[167.9544,-29.0338,167.9544,-29.0338],sheet:"3x3",hasGeometry:!1,unsupportedReason:null},{id:"country-hkg",iso3:"HKG",label:"Hong Kong",count:1,region:"Asia",bbox:[114.16930265,22.27819894,114.16930265,22.27819894],sheet:"3x3",hasGeometry:!1,unsupportedReason:null},{id:"country-mac",iso3:"MAC",label:"Macao",count:1,region:"Asia",bbox:[113.55129,22.2116,113.55129,22.2116],sheet:"3x3",hasGeometry:!1,unsupportedReason:null},{id:"country-plw",iso3:"PLW",label:"Palau",count:1,region:"Oceania",bbox:[131.676,2.751,131.895,3.061],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-png",iso3:"PNG",label:"Papua New Guinea",count:1,region:"Oceania",bbox:[140.842,-11.645,155.965,-1.959],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-blm",iso3:"BLM",label:"Saint Barthélemy",count:1,region:"Other",bbox:[-62.868,17.879,-62.792,17.925],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-shn",iso3:"SHN",label:"Saint Helena",count:1,region:"Europe",bbox:[-5.79,-16.003,-5.636,-15.906],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-lca",iso3:"LCA",label:"Saint Lucia",count:1,region:"North America & Non-Spanish Caribbean",bbox:[-61.081,13.708,-60.874,14.108],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-smr",iso3:"SMR",label:"San Marino",count:1,region:"Other",bbox:[12.404,43.896,12.51,43.991],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-asm",iso3:"ASM",label:"American Samoa",count:1,region:"Oceania",bbox:[-170.844,-14.373,-170.562,-14.245],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-wsm",iso3:"WSM",label:"Samoa",count:1,region:"Oceania",bbox:[-172.804,-14.049,-171.434,-13.444],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-stp",iso3:"STP",label:"Sao Tome and Principe",count:1,region:"Africa",bbox:[6.467,.019,6.749,.412],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-sxm",iso3:"SXM",label:"Sint Maarten (Dutch part)",count:1,region:"North America & Non-Spanish Caribbean",bbox:[-63.0458,18.0237,-63.0458,18.0237],sheet:"3x3",hasGeometry:!1,unsupportedReason:null},{id:"country-slb",iso3:"SLB",label:"Solomon Islands",count:1,region:"Oceania",bbox:[156.454,-11.845,162.375,-6.611],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-lka",iso3:"LKA",label:"Sri Lanka",count:1,region:"Asia",bbox:[79.693,5.919,81.879,9.836],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-sjm",iso3:"SJM",label:"Svalbard and Jan Mayen",count:1,region:"Europe",bbox:[15.65,78.22,15.65,78.22],sheet:"3x3",hasGeometry:!1,unsupportedReason:null},{id:"country-swz",iso3:"SWZ",label:"Eswatini",count:1,region:"Africa",bbox:[30.803,-27.318,32.135,-25.719],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-tkl",iso3:"TKL",label:"Tokelau",count:1,region:"Other",bbox:[-172.47,-8.557,-172.47,-8.557],sheet:"3x3",hasGeometry:!1,unsupportedReason:null},{id:"country-ton",iso3:"TON",label:"Tonga",count:1,region:"Oceania",bbox:[-175.34,-21.272,-175.032,-21.062],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-tca",iso3:"TCA",label:"Turks and Caicos Islands",count:1,region:"North America & Non-Spanish Caribbean",bbox:[-72.039,21.803,-71.863,21.953],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-vct",iso3:"VCT",label:"Saint Vincent and the Grenadines",count:1,region:"North America & Non-Spanish Caribbean",bbox:[-61.277,13.122,-61.115,13.383],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-wlf",iso3:"WLF",label:"Wallis and Futuna",count:1,region:"Other",bbox:[-176.251,-13.352,-176.162,-13.219],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-pry",iso3:"PRY",label:"Paraguay",count:1,region:"Latin America & Caribbean",bbox:[-62.64,-27.591,-54.26,-19.29],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-fin",iso3:"FIN",label:"Finland",count:1,region:"Europe",bbox:[19.628,59.808,31.587,70.081],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-alb",iso3:"ALB",label:"Albania",count:1,region:"Europe",bbox:[19.282,39.648,21.058,42.661],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-pan",iso3:"PAN",label:"Panama",count:1,region:"Latin America & Caribbean",bbox:[-83.05,7.204,-77.148,9.615],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-nzl",iso3:"NZL",label:"New Zealand",count:1,region:"Oceania",bbox:[-176.893,-47.277,178.55,-34.393],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-cze",iso3:"CZE",label:"Czech Republic",count:1,region:"Europe",bbox:[12.091,48.552,18.852,51.056],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-gha",iso3:"GHA",label:"Ghana",count:1,region:"Africa",bbox:[-3.255,4.737,1.192,11.173],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-phl",iso3:"PHL",label:"Philippines",count:1,region:"Asia",bbox:[117.182,5.056,126.605,18.651],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-guy",iso3:"GUY",label:"Guyana",count:1,region:"North America & Non-Spanish Caribbean",bbox:[-61.4,1.189,-56.487,8.495],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-uzb",iso3:"UZB",label:"Uzbekistan",count:1,region:"Asia",bbox:[55.999,37.177,73.14,45.59],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-esp",iso3:"ESP",label:"Spain",count:1,region:"Europe",bbox:[-18.007,27.735,4.328,43.787],sheet:"3x3",hasGeometry:!0,unsupportedReason:null},{id:"country-mwi",iso3:"MWI",label:"Malawi",count:1,region:"Africa",bbox:[32.676,-17.125,35.919,-9.368],sheet:"3x3",hasGeometry:!0,unsupportedReason:null}]},R1="slug,name,country_code,wagf_region,wagf_block,rop1,population,religion,image_url,primary_language,imb_gsec,latitude,longitude",F1=["country_code","wagf_region","wagf_block","primary_language","religion","imb_gsec"];function O1(e){if(e==null||typeof e!="object")return e;const t={...e};for(const o of F1){if(!(o in t))continue;const n=t[o];n&&typeof n=="object"&&(t[o]=n.value??null,n.label!=null&&(t[`${o}_label`]=n.label))}return t}function N1(e){return Array.isArray(e)?e:e&&typeof e=="object"?e.posts||e.data||e.records||e.results||e.items||[]:[]}function I1(e,t,o=null,n=void 0){const r=Array.isArray(e)?e:[],a=t||{},s=new Set((a.values||[]).map(String));let i;if(a.type==="country"){const l=new Set([...s].map(c=>c.toUpperCase()));i=r.filter(c=>c&&l.has(String(c.country_code||"").toUpperCase()))}else if(a.type==="pg_slugs")i=r.filter(l=>l&&s.has(String(l.slug)));else if(a.type==="field"&&a.field)i=r.filter(l=>l&&s.has(String(l[a.field])));else if(typeof o=="function"){const l=o(t,r);i=r.filter(c=>c&&l&&l.has(c.slug))}else i=[];return i.sort((l,c)=>String(l.name||"").localeCompare(String(c.name||""),n))}function z1({apiBase:e,lang:t=()=>"en",profileConfig:o=null,evaluate:n=null,fetchImpl:r=null}={}){const a=new Map,s=r||((...c)=>fetch(...c));function i(){const c=(typeof t=="function"?t():t)||"en";let u="";try{u=o?String(md(o)||""):""}catch{u=""}const d=`${c}|${u}`;if(!a.has(d)){const h=(async()=>{const b=typeof e=="function"?e():e;if(!b)throw Ho("wall.hud.noApi","no people-groups service is configured");const x=await s(`${b}/api/people-groups/list?fields=${R1}&lang=${encodeURIComponent(c)}`,{cache:"no-store"});if(!x.ok)throw Ho("wall.hud.fetchFailed","could not load the people groups ({status})",{status:x.status});const y=N1(await x.json()),P=o?await Cr(y,o):y;return y.length&&!P.length&&a.delete(d),P.map(O1)})();h.catch(()=>a.delete(d)),a.set(d,h)}return a.get(d)}const l=async c=>I1(await i(),c,n,(typeof t=="function"?t():t)||void 0);return l.all=i,l}function D1({records:e,assetsBase:t}){return async function(n,r){const a=n&&n.iso3;if(!a)return"";const{generateCountrySheet:s}=await lt(async()=>{const{generateCountrySheet:c}=await Promise.resolve().then(()=>yw);return{generateCountrySheet:c}},void 0),[{ISO3_NAME:i},l]=await Promise.all([lt(()=>Promise.resolve().then(()=>vw),void 0),e({type:"country",values:[a]})]);return!l||!l.length?"":s({country:{id:n.id,iso3:a,label:n.label,count:n.count},records:l,assetsBase:t(),ISO3_NAME:i,format:r})}}function G1(e){var o,n;const t=((o=e==null?void 0:e.vnode)==null?void 0:o.el)||((n=e==null?void 0:e.proxy)==null?void 0:n.$el);try{const r=t&&t.getRootNode&&t.getRootNode();if(r&&r.host)return r.host}catch{}return t}const j1=["lang","dir"],H1={width:"0",height:"0","aria-hidden":"true",focusable:"false",style:{position:"absolute"}},B1={class:"rl-scroll"},U1={class:"rl-head"},W1={class:"rl-title"},V1={class:"rl-title__last"},K1={class:"rl-summary"},q1={key:0,class:"rl-status"},Y1={key:1,class:"rl-status rl-failed",role:"status"},Z1={key:2,class:"rl-status"},X1="country_code,wagf_region",Si="doxa-regions:show-country-on-map",J1=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"regions-list",props:{profileConfig:{type:String,default:""},prayBaseUrl:{type:String,default:""},languageCode:{type:String,default:""}},emits:["region-selected","country-selected"],setup(e,{emit:t}){const o=e,n=t,r=it("profileConfig",null),a=ue(()=>{const k=r&&(r.value!==void 0?r.value:r);if(k&&typeof k=="object")return k;if(!o.profileConfig)return{};try{return JSON.parse(o.profileConfig)||{}}catch{return{}}}),s=ue(()=>o.prayBaseUrl||a.value.prayBaseUrl||"https://pray.doxa.life"),i=ue(()=>o.languageCode||a.value.languageCode||a.value.locale||a.value.lang||vr()||""),{locale:l}=zo(),c=ue(()=>rn.has(l.value)),{t:u,tf:d}=pa(),h=la(""),b=ue(()=>Ad(u("Regions"))),x=ca(a.value);jo("Bebas Neue",bd,x),jo("Poppins",_d,x),jo("Figtree",$d,x),jo("Oswald",yd,x);const y=ve([]),P=ve(!0),S=ve(!1);function $(k){const I=Number(k||0);try{return I.toLocaleString(`${l.value||"en"}-u-nu-latn`)}catch{return I.toLocaleString("en-US")}}function v(k){return d("%count% people groups in %countries% countries",{count:$(k.count),countries:$(k.countryCount)})}const f=Yt(),w=()=>G1(f);function T(k,I){n(k,I);const U=w();U&&typeof U.dispatchEvent=="function"&&U.dispatchEvent(new CustomEvent(k,{detail:I,bubbles:!0,composed:!0}))}function O(k){T("region-selected",{slug:k.slug,value:k.value,label:k.label||u("Other"),countryCount:k.countryCount,count:k.count})}function F(k,I){T("country-selected",{slug:k.slug,code:k.code,name:k.name,region:{slug:I.slug,value:I.value,label:I.label||u("Other")},count:k.count})}function A(k){return d("See %region% dashboard",{region:k.label||u("Other")})}async function ce(){const k=`${s.value}/api/people-groups/list?fields=${X1}&lang=${i.value}`;P.value=!0,S.value=!1;try{const I=await fetch(k);if(!I.ok)throw new Error(`HTTP ${I.status}`);const U=await I.json(),ae=await Cr(Array.isArray(U.posts)?U.posts:[],r);y.value=Cd(ae)}catch(I){console.error("[regions-list] fetch error:",I),S.value=!0,y.value=[]}finally{P.value=!1}}const H=ue(()=>a.value.instanceId||"regions-list"),j=ue(()=>ca(a.value)),m=z1({apiBase:()=>s.value,lang:()=>i.value,profileConfig:r}),D=D1({records:m,assetsBase:()=>j.value}),E=ve(new Set);function X(k){const I=new Set(E.value);I.has(k.slug)?I.delete(k.slug):I.add(k.slug),E.value=I}const J=k=>E.value.has(k.slug),q=new Map((E1.countries||[]).map(k=>[String(k.iso3||"").toUpperCase(),k]));function V(k){const I=l.value||"en";if(/^en\b/i.test(I))return k;const U=ki(k.iso3,I);return U&&U!==k.iso3?{...k,label:U}:k}function le(k){return(k.countries||[]).map(I=>{const U=q.get(String(I.code||"").toUpperCase());return U?V(U):{id:`country-${String(I.code||"").toLowerCase()}`,iso3:I.code,label:I.name,count:I.count,unsupportedReason:u("No poster has been generated for this country yet.")}})}const Z=k=>k.unsupportedReason?h("messages.countryPosterTooMany"):null,me=()=>"countries";function _e(k){const I=(k==null?void 0:k.detail)||{};if(!String(I.instanceId||"").startsWith(H.value)||!I.listId)return;const U=String(I.listId).replace(/^country-/,"").toUpperCase();for(const ae of y.value){const ye=(ae.countries||[]).find(pe=>String(pe.code||"").toUpperCase()===U);if(ye){F(ye,ae);return}}}return st(i,()=>{ce()}),Dt(()=>{typeof window<"u"&&window.addEventListener(Si,_e)}),At(()=>{typeof window<"u"&&window.removeEventListener(Si,_e)}),Dt(ce),xt(vi+di+':host{ display:block; position:relative; width:100%; height:100%; min-height:320px; }.rl-root{ position:absolute; inset:0; display:flex; flex-direction:column; min-height:0; --dx-surface:#f3f3f1; --dx-elevated:#fff; --dx-text:#2a332a; --dx-header-bg:#3b463d; --dx-header-text:#fff; --dx-link:#4e594f; --dx-muted:#6d766e; --dx-line:#d1d4cd; --dx-radius:35px; background:var(--dx-surface); color:var(--dx-text); font:var(--font-size-md)/1.5 Poppins,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,sans-serif; }.rl-scroll{ flex:1 1 auto; min-height:0; overflow-y:auto; scrollbar-gutter:stable; -webkit-overflow-scrolling:touch; padding:20px 0; display:flex; flex-direction:column; gap:var(--spacing-lg); container-type:inline-size; }.rl-scroll > *{ width:calc(90% + 16px); max-width:1200px; margin-left:auto; margin-right:auto; }@media (prefers-reduced-motion: reduce){ .rl-root, .rl-root *, .rl-root *::before, .rl-root *::after{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; } }.rl-head{ display:flex; flex-direction:column; gap:10px; text-align:center; }.rl-title{ margin:0; font-size:clamp(var(--font-size-3xl), 7cqw, var(--font-size-5xl)); line-height:1; font-family:"Bebas Neue","Arial Narrow",BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif; font-weight:400; }.rl-title__last{ color:#92b195; }.rl-summary{ margin:0; color:var(--dx-muted); font-size:var(--font-size-md); }.rl-status{ padding:var(--spacing-xl); text-align:center; color:var(--dx-muted); font-size:var(--font-size-md); }.rl-status.rl-failed{ font-weight:600; }'+Er(".rl-title"),"regions-list"),(k,I)=>(B(),Y("div",{class:"rl-root",lang:fe(l),dir:c.value?"rtl":"ltr"},[(B(),Y("svg",H1,[...I[0]||(I[0]=[N("symbol",{id:"chevron-up",viewBox:"0 0 489.67 289.877"},[N("path",{d:"M439.017,211.678L263.258,35.919c-3.9-3.9-8.635-6.454-13.63-7.665-9.539-2.376-20.051.161-27.509,7.619L46.361,211.632c-11.311,11.311-11.311,29.65,0,40.961h0c11.311,11.311,29.65,11.311,40.961,0L242.667,97.248l155.39,155.39c11.311,11.311,29.65,11.311,40.961,0h0c11.311-11.311,11.311-29.65,0-40.961Z"})],-1)])])),N("div",B1,[N("div",U1,[N("h1",W1,[Be(te(b.value.head?b.value.head+" ":""),1),N("span",V1,te(b.value.last),1)]),N("p",K1,te(fe(u)("Find unreached people groups by region and country.")),1)]),P.value?(B(),Y("div",q1,te(fe(u)("Loading results...")),1)):S.value?(B(),Y("div",Y1,te(fe(u)("Region data could not be loaded. This is a connection problem, not a filter.")),1)):y.value.length?(B(!0),Y(ze,{key:3},ut(y.value,U=>(B(),Ft(M1,{key:U.slug,title:U.label||fe(u)("Other"),summary:v(U),countries:U.countries,"footer-label":A(U),"disclosure-label":J(U)?fe(u)("Hide country posters"):fe(u)("View country posters"),"disclosure-open":J(U),"disclosure-id":`posters-${U.slug}`,onToggleDisclosure:ae=>X(U),onSelect:ae=>O(U),onSelectCountry:ae=>F(ae,U)},{extra:Lo(()=>[We($1,{items:le(U),"group-by":me,"instance-id":`${H.value}-${U.slug}`,"assets-base":j.value,"event-name":Si,heading:"",intro:"",unit:"UPG","item-noun":fe(u)("Country"),"item-noun-plural":fe(u)("Countries"),"item-count-key":"regions.countryCount",records:fe(m)?ae=>fe(m)({type:"country",values:[ae.iso3]}):null,sheet:fe(D),"card-stocks":!0,collapsible:!1,embedded:!0,"section-heads":!1,columns:2,"columns-control":!0,unsupported:Z,"download-prefix":"doxa-country","poster-action":"print","prayer-list-soon-message":fe(u)("Coming soon — a prayer list will be generated for each country, naming every unengaged people group within it.")},null,8,["items","instance-id","assets-base","item-noun","item-noun-plural","records","sheet","prayer-list-soon-message"])]),_:2},1032,["title","summary","countries","footer-label","disclosure-label","disclosure-open","disclosure-id","onToggleDisclosure","onSelect","onSelectCountry"]))),128)):(B(),Y("div",Z1,te(fe(u)("No regions found.")),1))])],8,j1))}}},Symbol.toStringTag,{value:"Module"})),Q1=` + `}function E(k){if(a.colorMode!=="region")return a.zoom;let I=0,U=0;try{const pe=k.getContainer();I=(pe==null?void 0:pe.clientWidth)||0,U=(pe==null?void 0:pe.clientHeight)||0}catch{I=0}if(!I)return a.zoom;const ae=Math.max(0,Math.min(2,Math.log2(I/512)));if(!U)return ae;const ye=k.getZoom();try{const pe=k.getCenter(),xe=Math.PI/180,Ge=180/Math.PI,_=pe.lat*xe,M=[];for(let z=0;z<12;z++){const g=z/12*2*Math.PI,p=Math.asin(Math.cos(_)*Math.cos(g)),R=pe.lng+Math.atan2(Math.sin(g)*Math.cos(_),-Math.sin(_)*Math.sin(p))*Ge;M.push([R,p*Ge])}const L=z=>{k.setZoom(z);const g=k.project([pe.lng,pe.lat]);let p=0;for(const R of M){const W=k.project(R),he=Math.hypot(W.x-g.x,W.y-g.y);Number.isFinite(he)&&he>p&&(p=he)}return p*2},K=Math.min(I,U)*m_;let ne=0,oe=5;if(L(oe)U&&(U=ye.lng),ye.latae&&(ae=ye.lat));return Number.isFinite(k)&&Number.isFinite(I)?[[k,I],[U,ae]]:null}function q(k){const I=J();if(!I)return;let U=null;try{U=k.getBounds()}catch{return}if(!U||typeof U.contains!="function")return;const ae=(pe,xe)=>{try{return U.contains([pe,xe])}catch{return!0}};ae(I[0][0],I[0][1])&&ae(I[1][0],I[1][1])&&ae(I[0][0],I[1][1])&&ae(I[1][0],I[0][1])||X(k,I,{...x,maxZoom:a.zoom})}function V(){const k=y.value;if(!k)return;const I=k.getSource(Mr);if(I&&I.setData(b.value),k.getLayer("rcm-pins")){const{color:U,sortKey:ae,opacity:ye,radius:pe,strokeOpacity:xe}=T();k.setPaintProperty("rcm-pins","circle-color",U),k.setPaintProperty("rcm-pins","circle-opacity",ye),k.setPaintProperty("rcm-pins","circle-stroke-opacity",xe),k.setPaintProperty("rcm-pins","circle-radius",pe),k.setLayoutProperty("rcm-pins","circle-sort-key",ae)}for(const U of["rcm-focus-fill","rcm-focus-outline"])k.getLayer(U)&&k.setFilter(U,w());if(k.getLayer("rcm-focus-fill")){const U=a.colorMode==="region";k.setPaintProperty("rcm-focus-fill","fill-color",U?f.value:u.brand),k.setPaintProperty("rcm-focus-fill","fill-opacity",U?Vd:.12)}if(a.bounds&&typeof window<"u"&&(window.__rcmBounds=a.bounds),a.bounds)X(k,a.bounds);else{const U=E(k),ae=a.center||k.getCenter();k.flyTo({center:ae,zoom:U,duration:600}),k.once("moveend",()=>q(k))}}function le(k,I){let U=!1;const ae=()=>{U||(U=!0,k.off("style.load",ae),k.off("load",ae),I())};if(k.isStyleLoaded&&k.isStyleLoaded())return ae();k.on("style.load",ae),k.on("load",ae),setTimeout(()=>{try{k.getStyle&&k.getStyle()&&k.getStyle().layers&&ae()}catch{}},1500)}Dt(async()=>{try{if(await S(),!y.value){h.value=!0;return}const k=Nd(y.value);if(k){try{y.value.addControl(new k.NavigationControl({showCompass:!1}),"top-right")}catch(I){console.warn("[RegionCountryMap] NavigationControl unavailable:",I&&I.message)}try{y.value.addControl(new k.FullscreenControl,"top-right")}catch(I){console.warn("[RegionCountryMap] FullscreenControl unavailable:",I&&I.message)}}le(y.value,()=>{O(),V(),me()})}catch(k){console.error("[RegionCountryMap] init failed:",k),h.value=!0}}),st(P,k=>{k&&typeof window<"u"&&(window.__rcmMap=y.value)});let Z=null;function me(){typeof ResizeObserver>"u"||!d.value||(Z=new ResizeObserver(()=>{const k=y.value;if(!(!k||a.colorMode!=="region"||a.bounds))try{k.setZoom(E(k))}catch{}}),Z.observe(d.value))}function _e({timeoutMs:k=8e3}={}){return new Promise(I=>{const U=y.value;if(!U||typeof U.isStyleLoaded!="function")return I("no-map");const ae=()=>U.isStyleLoaded()&&!U.isMoving()&&(typeof U.areTilesLoaded!="function"||U.areTilesLoaded());let ye=null;const pe=Ge=>{ye&&(clearTimeout(ye),ye=null);try{U.off("idle",xe)}catch{}I(Ge)},xe=()=>{ae()&&pe("idle")};if(ae())return pe("ready");U.on("idle",xe),ye=setTimeout(()=>pe("timeout"),k)})}return t({whenIdle:_e}),At(()=>{if(Z)try{Z.disconnect()}catch{}F&&F.remove();try{typeof window<"u"&&window.__rcmMap===y.value&&delete window.__rcmMap}catch{}try{typeof window<"u"&&window.__rcmBounds===a.bounds&&delete window.__rcmBounds}catch{}$()}),st(()=>[a.countryCodes,a.bounds,a.center,a.zoom,a.points,a.colorMode,a.highlightRegion],V,{deep:!0}),xt(".map-scroll-edge{position:absolute;top:0;bottom:0;width:40px;z-index:2;touch-action:pan-y;pointer-events:auto;background:transparent}.map-scroll-edge--left{left:0}.map-scroll-edge--right{right:0}@media print{ .rcm{ display:flex; align-items:flex-start; gap:12px; min-height:0; aspect-ratio:auto; height:auto; break-inside:avoid; } .rcm__canvas{ flex:1 1 auto; height:12cm; } .rcm__legend{ position:static; inset:auto; flex:0 0 auto; max-width:38%; background:none; box-shadow:none; } .map-scroll-edge, .mapboxgl-ctrl-group, .maplibregl-ctrl-group, .mapboxgl-ctrl-attrib-button, .maplibregl-ctrl-attrib-button{ display:none !important; }}.mapboxgl-ctrl-top-left,.maplibregl-ctrl-top-left,.mapboxgl-ctrl-top-right,.maplibregl-ctrl-top-right,.mapboxgl-ctrl-bottom-left,.maplibregl-ctrl-bottom-left,.mapboxgl-ctrl-bottom-right,.maplibregl-ctrl-bottom-right{ z-index:3; }@media (max-width: 767px){ .mapboxgl-ctrl-bottom-left,.maplibregl-ctrl-bottom-left, .mapboxgl-ctrl-bottom-right,.maplibregl-ctrl-bottom-right{ transform:translateY(calc(-1 * var(--map-fab-clearance, 0px))); }}.rcm{ display:block; position:relative; width:100%; min-height:780px; aspect-ratio:16/9; overflow:hidden; border-radius:inherit; }@media (max-width:768px){ .rcm{ min-height:0; aspect-ratio:1/2; } }@media (max-width:768px){ .rcm--chooser{ aspect-ratio:1/1; } }.rcm__canvas{ position:absolute; inset:0; }.rcm__note{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; text-align:center; padding:24px; color:#6d766e; font-size:15.625px; background:#f3f3f1; }.rcm__legend{ position:absolute; inset-inline-start:10px; bottom:28px; z-index:2; display:flex; flex-direction:column; gap:4px; padding:8px 10px; border-radius:8px; background:rgba(255,255,255,0.92); box-shadow:0 2px 8px rgba(0,0,0,0.15); font-size:12px; font-weight:600; color:#1f1f1f; pointer-events:none; }.rcm__legend span{ display:inline-flex; align-items:center; gap:6px; }.rcm__legend i{ display:inline-block; width:10px; height:10px; border-radius:100px; border:1px solid #ffffff; box-shadow:0 0 0 1px rgba(0,0,0,0.15); }.mapboxgl-popup-content:has(.cm-popup){ padding:12px; border-radius:10px; box-shadow:0 4px 16px rgba(0,0,0,0.18); }.cm-popup{ width:240px; }.cm-popup__img{ display:block; width:150px; aspect-ratio:4/5; object-fit:cover; border-radius:8px; margin:0 auto 8px; }.cm-popup__body{ padding:0; }.cm-popup__name{ font-weight:700; font-size:15px; line-height:1.25; color:var(--color-black, #1f1f1f); }.cm-popup__sub{ margin-top:2px; font-size:12px; color:var(--color-brand-lighter, #6d766e); }.cm-popup__stats{ margin:8px 0 0; display:flex; flex-direction:column; gap:3px; }.cm-popup__stats > div{ display:flex; justify-content:space-between; gap:10px; font-size:12px; }.cm-popup__stats dt{ margin:0; color:var(--color-brand-lighter, #6d766e); }.cm-popup__stats dd{ margin:0; text-align:end; font-weight:600; color:var(--color-black, #1f1f1f); }.cm-popup__desc{ margin:8px 0 0; font-size:12px; line-height:1.45; color:#555; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }.cm-popup__actions{ display:flex; gap:6px; margin-top:10px; }.cm-popup__btn{ flex:1; padding:6px 8px; border-radius:6px; font-size:12px; font-weight:600; text-align:center; text-decoration:none; background:#ecf0f1; color:var(--color-black, #1f1f1f); }.cm-popup__btn--primary{ background:var(--color-brand, #3b463d); color:#fff; }","region-country-map"),(k,I)=>(B(),Y("div",{class:ot(["rcm",{"rcm--chooser":e.colorMode==="region"}])},[N("div",{ref_key:"mapContainer",ref:d,class:"rcm__canvas"},null,512),I[0]||(I[0]=N("div",{class:"map-scroll-edge map-scroll-edge--left"},null,-1)),I[1]||(I[1]=N("div",{class:"map-scroll-edge map-scroll-edge--right"},null,-1)),h.value?(B(),Y("p",h_,te(fe(n)("The map could not start. This is a map-token or connection problem, not a filter — the figures above are unaffected.")),1)):Te("",!0),e.colorMode==="prayer"&&!h.value?(B(),Y("div",f_,[N("span",null,[N("i",{style:mt({background:u.prayerFull})},null,4),Be(te(fe(n)("100+ People Praying")),1)]),N("span",null,[N("i",{style:mt({background:u.prayerPartial})},null,4),Be(te(fe(n)("1+ People Praying")),1)]),N("span",null,[N("i",{style:mt({background:u.prayerNone})},null,4),Be(te(fe(n)("No One Praying")),1)]),N("span",null,[N("i",{style:mt({background:u.outside})},null,4),Be(te(fe(n)("Outside this region")),1)])])):Te("",!0)],2))}};function Cn(e,{autoprint:t=!1}={}){const o=document.createElement("iframe");o.setAttribute("aria-hidden","true"),o.style.cssText="position:fixed;right:0;bottom:0;width:1px;height:1px;opacity:0;border:0",document.body.appendChild(o);const n=o.contentDocument;if(!n)return o.remove(),null;n.open(),n.write(e),t&&n.write(' - + - +