diff --git a/public/dx-maps/cities-internet/cities-internet.js b/public/dx-maps/cities-internet/cities-internet.js index a333eaa56..2f3debc14 100644 --- a/public/dx-maps/cities-internet/cities-internet.js +++ b/public/dx-maps/cities-internet/cities-internet.js @@ -693,7 +693,7 @@ @media (prefers-reduced-motion: reduce) { .legend-container, .legend-reopen, .legend-collapse-caret, .legend-collapse-caret svg { transition: none !important; animation: none !important; } } -`,"legend-component");const a=e;Se("mapStore");const r=Se("dataStore"),s=Se("uiStore"),i=_l(a,"legendType"),{items:l,columns:c,title:u,activeFilter:p,setFilter:d,totalCount:w,totalPopulation:b,progress:m,fmtPop:g,fmtCount:$}=id(i,bd),x=Se("normalizedPeopleGroups",null),v=U(()=>{var Y,ae;if((Y=x==null?void 0:x.value)!=null&&Y.length)return x.value;const Q=[];for(const te in r.sources){const oe=r.sources[te];(ae=oe==null?void 0:oe.features)!=null&&ae.length&&Q.push(...oe.features)}return Q}),k=Se("mapId",null),C=U(()=>s.isMobile),S=U(()=>s.legendMode),N=U(()=>s.selectedPeopleGroup),I=U(()=>Ei(v.value)),O=U(()=>N.value?_d(I.value,N.value):[]),F=ie(a.initiallyCollapsed);let j=null;const q=U(()=>{var Q;return S.value==="detail"&&N.value?((Q=N.value.properties)==null?void 0:Q.name)||n("legend.header.peopleGroupFallback"):F.value?n("legend.header.collapsed"):u.value});function V(){F.value=!F.value}Ge(S,(Q,Y)=>{Q==="detail"&&Y!=="detail"&&F.value&&(F.value=!1)});function le(Q){d(Q)}return Bt(()=>{window.innerWidth<768&&(F.value=!0),j=Q=>{var Y;k&&((Y=Q.detail)!=null&&Y.mapId)&&Q.detail.mapId!==k||(F.value=!1)},window.addEventListener("dxm:openDesktopLegend",j)}),Mt(()=>{j&&window.removeEventListener("dxm:openDesktopLegend",j)}),(Q,Y)=>C.value?(R(),Ye(H(o),{key:0,legendType:e.legendType,popupAction:e.popupAction,isDark:e.isDark,disableCollapse:e.disableCollapse},null,8,["legendType","popupAction","isDark","disableCollapse"])):F.value?(R(),B("button",{key:1,class:ye(["legend-reopen",{"legend-reopen-light":!e.isDark}]),title:t("aria.expandLegend","Expand legend"),onClick:Y[0]||(Y[0]=ae=>F.value=!1)},[Y[2]||(Y[2]=_("svg",{class:"legend-reopen-icon",width:"11",height:"11",viewBox:"0 0 12 12",fill:"none"},[_("path",{d:"M2 4h8M2 6h8M2 8h5",stroke:"currentColor","stroke-width":"1.4","stroke-linecap":"round"})],-1)),_("span",O0,G(H(u)),1),Y[3]||(Y[3]=_("svg",{class:"legend-reopen-caret",width:"8",height:"8",viewBox:"0 0 12 12",fill:"none"},[_("path",{d:"M4.5 3L7.5 6L4.5 9",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"})],-1))],10,N0)):(R(),B("div",{key:2,class:ye(["legend-container",{"legend-dark":e.isDark}])},[S.value==="detail"?(R(),B("span",M0,[De(hd,{open:!F.value,t:H(n),onToggle:V},null,8,["open","t"])])):ue("",!0),S.value==="detail"?(R(),B("button",{key:1,class:"detail-close-btn",onClick:Y[1]||(Y[1]=ct(ae=>H(s).selectPeopleGroup(null),["stop"])),"aria-label":H(n)("aria.backToLegend")},[...Y[4]||(Y[4]=[_("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none"},[_("path",{d:"M15 5L5 15M5 5L15 15",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})],-1)])],8,F0)):ue("",!0),_("div",{class:ye(["legend-content",{"no-padding":H(c).length>0}])},[S.value==="detail"&&N.value?(R(),B(_e,{key:0},[De(md,{peopleGroup:N.value,hideHeader:!0,dark:e.isDark,action:e.popupAction},null,8,["peopleGroup","dark","action"]),De(ua,{shared:O.value,dark:e.isDark},null,8,["shared","dark"])],64)):e.legendType==="language-family"?(R(),B(_e,{key:1},[],64)):(R(),Ye(cd,{key:2,title:q.value,items:H(l),columns:H(c),activeFilter:H(p),isDark:e.isDark,hideColumnHeader:!1,showFooter:!1,disableCollapse:!0,totalCount:H(w),totalPopulation:H(b),fmtPop:H(g),fmtCount:H($),progress:H(m),onFilterClick:le},{"title-caret":Rt(()=>[De(hd,{open:!F.value,t:H(n),onToggle:V},null,8,["open","t"])]),_:1},8,["title","items","columns","activeFilter","isDark","totalCount","totalPopulation","fmtPop","fmtCount","progress"])),S.value!=="detail"?(R(),Ye(ua,{key:3,dark:e.isDark},null,8,["dark"])):ue("",!0)],2)],2))}},[["styles",[T0]],["__scopeId","data-v-37990088"]]),I0={class:"gm-title"},R0=["aria-expanded"],D0={class:"gm-body"},B0={class:"gm-keys"},z0={key:0,class:"gm-key"},G0={class:"gm-caveat"},j0={key:0,class:"gm-adm1"},H0={class:"gm-adm1-h"},U0=["aria-label"],W0=["aria-pressed"],K0=["aria-pressed"],q0={class:"gm-keys"},V0={class:"gm-caveat"},Y0={key:0,class:"gm-caveat"},Z0={key:1,class:"gm-err"},J0={key:2,class:"gm-wait",role:"status"},X0={key:3,class:"gm-pg-desktop"},Q0={key:4,class:"gm-pg-mobile"},e1={key:5,class:"gm-sheet"},t1={class:"gm-sh-head"},o1={class:"gm-sh-name"},n1={class:"gm-list-h"},a1={class:"gm-adm1-t"},r1={class:"gm-note"},s1={key:6,class:"gm-sheet"},i1={class:"gm-sh-head"},l1={class:"gm-sh-name"},c1={key:0,class:"gm-ai"},u1=["aria-label"],p1={class:"gm-stat"},d1={class:"gm-stat"},g1={class:"gm-stat"},m1={class:"gm-stat"},h1={class:"gm-stat"},f1={key:1,class:"gm-list"},_1={class:"gm-list-h"},b1={key:2,class:"gm-list"},$1={class:"gm-list-h"},y1={class:"gm-note"},Ii="#1e293b",$d="ci.legendOpen",v1=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"connectivity-map",setup(e){const t=Object.create(null);function o(y,P){try{window[y]=P,t[y]=P}catch{}}const n=Hs(()=>An(()=>Promise.resolve().then(()=>Cd),void 0)),a=Se("profileConfig",ie(null)),r=U(()=>{var y;return((y=a.value)==null?void 0:y.isDark)===!0}),s=Se("mapboxToken",null),i=U(()=>{var y;return((y=a.value)==null?void 0:y.tk)||(s==null?void 0:s.value)||typeof window<"u"&&window.MAP_TOKEN||""}),l=U(()=>Us(a.value)),c=ie(null),u=Ao(null),p=ie([]),d=ie(null),w=ie(!0),b=ie(null),m=ie(!0);function g(y){const P=c.value;if(P)try{P.dispatchEvent(new CustomEvent("dxmaps:mapinfo-pending",{bubbles:!0,composed:!0,detail:{pending:y}}))}catch{}}const $=()=>{!u.value&&!b.value&&g(!0)};Ge(b,y=>{y&&g(!1)});const x=ie(null),v=ie(0);let k=null;function C(){const y=x.value;if(!y||!re.value||pe.value)return;const P=y.offsetTop+y.offsetHeight;P>0&&(v.value=P+8)}function S(){try{k=new ResizeObserver(C),x.value&&k.observe(x.value)}catch{k=null}C()}const N=Ao(null),I=ie("women"),O=ie(null),F=Se("uiStore",null),j=(()=>{var P;const y=(P=Se("lang",null))==null?void 0:P.value;return y&&y!=="en"?y:null})(),q=()=>{if(j)return j;const y=a.value;if(y&&(y.locale||y.lang))return String(y.locale||y.lang);try{const P=new URLSearchParams(location.search);return P.get("lang")||P.get("locale")||document.documentElement.lang||"en"}catch{return"en"}},V=new _p({locale:j,profileConfig:a}),le=Ao([]),Q=ie(0),Y=T$({getMap:()=>u.value,getActivePinColor:()=>Ii});async function ae(){await V.init();const y=await V.setActiveSource("pray-tools");le.value=Co(y||[])}function te(){const y=[];for(const P of le.value){const W=parseFloat(P.longitude??P.lng),J=parseFloat(P.latitude??P.lat);if(!isFinite(W)||!isFinite(J))continue;const T=P._normalized||{};y.push({type:"Feature",properties:{uniqueId:P.uniqueId,slug:P.slug||"",name:P.name,language:P.language,languageFamily:P.languageFamily||T.languageFamily||"",country:P.country,countryIso:P.countryIso,countryIsoLabel:P.countryIsoLabel,countryName:P.countryName,religion:P.religion,religionLabel:P.religionLabel,religionName:P.religionName,population:P.population,status:P.status,description:P.description||"",imageUrl:P.imageUrl||"",peoplePraying:Number(P.peoplePraying??T.peoplePraying??0)},geometry:{type:"Point",coordinates:[W,J]}})}return{type:"FeatureCollection",features:y}}function oe(y){if(!le.value.length||y.getSource("language-families"))return;const P=te();if(Q.value=P.features.length,y.addSource("language-families",{type:"geojson",data:P,promoteId:"uniqueId"}),P.features.length){let W=180,J=90,T=-180,z=-90;for(const ge of P.features){const[ve,Ie]=ge.geometry.coordinates;veT&&(T=ve),Iez&&(z=Ie)}const ne=Math.round(Math.min(y.getContainer().clientWidth,y.getContainer().clientHeight)*.06)+8;try{const ge=y.cameraForBounds([[W,J],[T,z]],{padding:ne});if(y.fitBounds([[W,J],[T,z]],{padding:ne,duration:0}),ge&&y.getZoom()>ge.zoom+.05){const ve=y.getBounds(),Ie=Math.min(360,ve.getEast()-ve.getWest());let Me=y.getCenter().lng,bt=-1;for(let be=-180;be<180;be+=5){let he=0;for(const we of P.features){let He=we.geometry.coordinates[0]-be;He=(He+540)%360-180,Math.abs(He)<=Ie/2&&he++}he>bt&&(bt=he,Me=be)}y.jumpTo({center:[Me,(J+z)/2]})}}catch{}}y.addLayer({id:"ci-pg-dots",type:"circle",source:"language-families",paint:{"circle-color":Ii,"circle-radius":["interpolate",["linear"],["zoom"],0,2.6,4,3.6,8,6,12,8.5],"circle-stroke-color":"#ffffff","circle-stroke-width":["interpolate",["linear"],["zoom"],0,1,6,1.4,12,1.8],"circle-opacity":.95}}),y.on("click","ci-pg-dots",W=>{var T;const J=(T=W.features)==null?void 0:T[0];!J||!F||(d.value=null,F.selectPeopleGroup(J))}),y.on("mouseenter","ci-pg-dots",()=>{y.getCanvas().style.cursor="pointer"}),y.on("mouseleave","ci-pg-dots",()=>{y.getCanvas().style.cursor=""}),typeof window<"u"&&(o("__ciState",()=>{var W,J;return{groups:le.value.length,dots:Q.value,hasLayer:!!y.getLayer("ci-pg-dots"),rendered:y.queryRenderedFeatures({layers:["ci-pg-dots"]}).length,selected:((J=(W=F==null?void 0:F.selectedPeopleGroup)==null?void 0:W.properties)==null?void 0:J.slug)||null}}),o("__ciMap",y))}const D=aa("connectivity"),re=ie(!1),pe=ie(!0);function fe(y){var P;try{(P=window.sessionStorage)==null||P.setItem($d,y?"1":"0")}catch{}}function Oe(){var y;try{const P=(y=window.sessionStorage)==null?void 0:y.getItem($d);return P==null?null:P==="1"}catch{return null}}function Ne(){pe.value=!pe.value,fe(pe.value)}function Le(){const y=typeof window<"u"&&window.innerWidth<700;if(y===re.value)return;re.value=y;const P=Oe();pe.value=P??!y}typeof window<"u"&&(Le(),window.addEventListener("resize",Le));const je=[{id:"yes",color:"#10b981"},{id:"partial",color:"#e8c15a"},{id:"no",color:"#b42318"},{id:"unknown",color:"#9aa2ad"}],rt=y=>(je.find(P=>P.id===y)||{}).color||"#9aa2ad",qe=U(()=>{const y={};for(const P of p.value)y[P.iso3]=P;return y});async function Qe(){const[y,P]=await Promise.all([fetch(`${l.value}/tables/internet-by-country.json`).then(W=>W.json()),fetch(`${l.value}/boundaries/world-adm0-web.geojson`).then(W=>W.json())]);return p.value=y.countries||[],P}function nt(y,P){const W=qe.value,T={type:"FeatureCollection",features:(P.features||[]).map(z=>{var ve;const ne=(ve=z.properties)==null?void 0:ve.iso3,ge=W[ne];return{type:"Feature",properties:{iso3:ne,band:(ge==null?void 0:ge.band)||"none",color:ge?rt(ge.band):"rgba(0,0,0,0)",hasData:!!ge},geometry:z.geometry}})};if(y.getSource("ci-src")){y.getSource("ci-src").setData(T);return}y.addSource("ci-src",{type:"geojson",data:T}),y.addLayer({id:"ci-fill",type:"fill",source:"ci-src",paint:{"fill-color":["get","color"],"fill-opacity":["case",["get","hasData"],.72,0]}}),y.addLayer({id:"ci-line",type:"line",source:"ci-src",paint:{"line-color":"rgba(255,255,255,0.5)","line-width":.5}}),y.on("click","ci-fill",z=>{var ge,ve,Ie;if(y.getLayer("ci-pg-dots")&&y.queryRenderedFeatures(z.point,{layers:["ci-pg-dots"]}).length)return;const ne=(Ie=(ve=(ge=z.features)==null?void 0:ge[0])==null?void 0:ve.properties)==null?void 0:Ie.iso3;ne&&qe.value[ne]&&(F==null||F.selectPeopleGroup(null),O.value=null,d.value=qe.value[ne])}),y.on("mouseenter","ci-fill",()=>{y.getCanvas().style.cursor="pointer"}),y.on("mouseleave","ci-fill",()=>{y.getCanvas().style.cursor=""})}const A=[{from:0,color:"#deebf7"},{from:25,color:"#9ecae1"},{from:40,color:"#6baed6"},{from:55,color:"#3182bd"},{from:70,color:"#08519c"}],M=y=>["case",["==",["typeof",["get",y]],"number"],["step",["get",y],...A.flatMap((P,W)=>W===0?[P.color]:[P.from,P.color])],"rgba(0,0,0,0)"];async function L(){var J;const[y,P]=await Promise.all([fetch(`${l.value}/tables/internet-by-adm1.json`).then(T=>{if(!T.ok)throw new Error("internet-by-adm1 "+T.status);return T.json()}),fetch(`${l.value}/boundaries/gb-IND-ADM1-full-web.geojson`).then(T=>{if(!T.ok)throw new Error("gb-IND-ADM1-full "+T.status);return T.json()})]),W={};for(const T of y.rows||[]){if(T.iso3!=="IND"||T.measure!=="ever_used_internet"||!T.adm1)continue;const z=W[J=T.adm1]??(W[J]={name:T.adm1_name||T.adm1,women:{},men:{}});z[T.sex][T.area]=T.value}return N.value=Co({meta:y.meta||{},byArea:W}),P}function Z(y,P){const W=N.value.byArea,J={type:"FeatureCollection",features:(P.features||[]).map(z=>{var ge,ve;const ne=W[(ge=z.properties)==null?void 0:ge.shapeName];return{type:"Feature",geometry:z.geometry,properties:{adm1:(ve=z.properties)==null?void 0:ve.shapeName,women:(ne==null?void 0:ne.women.total)??null,men:(ne==null?void 0:ne.men.total)??null}}})},T=y.getLayer("ci-pg-dots")?"ci-pg-dots":void 0;y.addSource("ci-adm1-src",{type:"geojson",data:J}),y.addLayer({id:"ci-adm1-fill",type:"fill",source:"ci-adm1-src",paint:{"fill-color":M(I.value),"fill-opacity":.85}},T),y.addLayer({id:"ci-adm1-line",type:"line",source:"ci-adm1-src",paint:{"line-color":"rgba(255,255,255,0.8)","line-width":.6}},T),y.getLayer("ci-fill")&&y.setFilter("ci-fill",["!=",["get","iso3"],"IND"]),y.on("click","ci-adm1-fill",z=>{var ve,Ie,Me;if(y.getLayer("ci-pg-dots")&&y.queryRenderedFeatures(z.point,{layers:["ci-pg-dots"]}).length)return;const ne=(Me=(Ie=(ve=z.features)==null?void 0:ve[0])==null?void 0:Ie.properties)==null?void 0:Me.adm1,ge=ne&&W[ne];ge&&(F==null||F.selectPeopleGroup(null),d.value=null,O.value={key:ne,...ge})}),y.on("mouseenter","ci-adm1-fill",()=>{y.getCanvas().style.cursor="pointer"}),y.on("mouseleave","ci-adm1-fill",()=>{y.getCanvas().style.cursor=""})}function ee(y){I.value=y;const P=u.value;P!=null&&P.getLayer("ci-adm1-fill")&&P.setPaintProperty("ci-adm1-fill","fill-color",M(y))}const X=U(()=>{var y,P,W,J;return rp(((J=(W=(P=(y=N.value)==null?void 0:y.meta)==null?void 0:P.boundaries)==null?void 0:W.IND)==null?void 0:J.missing)||[],{type:"conjunction"})}),ce=u$(Se("profileConfig",null));let se=!1;Bt(async()=>{g(!0),window.addEventListener("dxmaps:mapinfo-host",$),S();try{await x$(ce)}catch{}const y=qs(ce);if(!se){if(!y){const P=ce==="maplibre"?"MapLibre":"Mapbox";console.warn(`[connectivity-map] the ${P} engine did not load; refusing to substitute another engine.`),b.value=ur(Pt("messages.engineMissing"),{engine:P});return}if(!c.value){b.value=Pt("messages.engineNotLoaded");return}_$(y);try{const P=ae().catch(ne=>{console.warn("[connectivity-map] people groups:",(ne==null?void 0:ne.message)||ne)}),W=L().catch(ne=>(console.warn("[connectivity-map] India by state:",(ne==null?void 0:ne.message)||ne),null)),J=await Qe();if(se||!c.value)return;const T=k$(ce);if(T&&await C$(c.value,T),se||!c.value)return;const z=new y.Map({container:c.value,style:h$(r.value?"ink":"paper",ce).style||(r.value?"mapbox://styles/mapbox/dark-v11":"mapbox://styles/mapbox/light-v11"),accessToken:i.value,locale:w$(q(),ce),center:[42,18],zoom:1.3,projection:"mercator",attributionControl:!1});u.value=Co(z),Pb(z,{boundaries:!0}),z.once("load",async()=>{try{y$(z,q())}catch{}nt(z,J),Y.initialize(),await P,oe(z);const ne=await W;ne&&!se&&Z(z,ne),m.value=!1})}catch(P){b.value=String(P.message||P),m.value=!1}}}),Mt(()=>{var y;typeof window<"u"&&window.removeEventListener("dxmaps:mapinfo-host",$);try{k==null||k.disconnect()}catch{}u.value||g(!1),typeof window<"u"&&window.removeEventListener("resize",Le);try{window.__ciState===t.__ciState&&delete window.__ciState}catch{}try{window.__ciMap===t.__ciMap&&delete window.__ciMap}catch{}se=!0,Y.cleanup(),F==null||F.selectPeopleGroup(null);try{(y=u.value)==null||y.remove()}catch{}});const f=y=>(Number(y)||0).toLocaleString(),h=U(()=>!!(F!=null&&F.selectedPeopleGroup));return yt(":host{display:block;position:relative;width:100%;height:100%;min-height:420px}.gm{position:absolute;inset:0;overflow:hidden}.gm-map{position:absolute;inset:0}@media(max-width:699px){.gm .map-toolbar.map-toolbar{top:var(--gm-toolbar-top,72px)}}.gm-legend{position:absolute;top:8px;inset-inline-start:8px;width:var(--map-legend-width,380px);max-width:calc(100% - 16px);box-sizing:border-box;z-index:4;padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.94);color:#0f1419;font:12px/1.35 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;box-shadow:0 2px 10px rgba(0,0,0,.16)}@media(max-width:480px){.gm-legend{width:auto;inset-inline-end:46px}}.is-dark .gm-legend{background:rgba(19,32,25,.95);color:#e5e7eb}.gm-title{font-weight:700;font-size:12.5px;margin-bottom:5px}.gm-fold{width:100%;margin:0 0 6px;border:1px solid #d1d4cd;background:#f3f3f1;color:#3b463d;font:600 11px inherit;padding:6px 10px;border-radius:8px;cursor:pointer;min-height:32px}.gm-fold:hover{background:#e9ebe6}@media(max-width:699px){.gm-fold{min-height:44px;font-size:12px}}.gm-keys{display:flex;flex-wrap:wrap;gap:5px 12px}.gm-key{display:flex;align-items:center;gap:5px;font-size:11px;white-space:nowrap}.gm-sw{width:12px;height:12px;border-radius:3px;flex:none}.gm-caveat{margin-top:5px;font-size:10.5px;opacity:.72;line-height:1.4}.gm-adm1{margin-top:8px;padding-top:7px;border-top:1px solid rgba(0,0,0,.12)}.gm-adm1-h{font-weight:600;font-size:12px;margin-bottom:5px}.gm-seg{display:inline-flex;border:1px solid rgba(0,0,0,.2);border-radius:6px;overflow:hidden;margin-bottom:6px}.gm-seg button{font:inherit;font-size:11px;padding:3px 10px;min-height:24px;border:0;background:transparent;color:inherit;cursor:pointer}.gm-seg button.on{background:#08519c;color:#fff}.gm-adm1-t{width:100%;border-collapse:collapse;font-size:12px;margin:4px 0 6px}.gm-adm1-t th,.gm-adm1-t td{padding:3px 4px;text-align:end}.gm-adm1-t th:first-child{text-align:start}.is-dark .gm-adm1{border-top-color:rgba(255,255,255,.15)}.is-dark .gm-seg{border-color:rgba(255,255,255,.3)}.gm-sheet{position:absolute;left:0;right:0;bottom:0;z-index:6;max-height:62%;overflow-y:auto;background:#fff;color:#0f1419;border-radius:14px 14px 0 0;padding:14px 16px 22px;font:13px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;box-shadow:0 -6px 26px rgba(0,0,0,.28)}@media(min-width:700px){.gm-sheet{inset-inline-start:auto;inset-inline-end:14px;bottom:14px;width:330px;border-radius:12px}}.is-dark .gm-sheet{background:#132019;color:#e5e7eb}.gm-sh-head{display:flex;align-items:center;gap:10px;margin-bottom:8px}.gm-sh-name{font-weight:800;font-size:15px}.gm-ai{display:flex;align-items:flex-start;gap:8px;margin:0 0 10px;padding:7px 9px;border-radius:8px;font-size:11px;line-height:1.35;background:rgba(180,120,0,.12);color:#7a4f00;border:1px solid rgba(180,120,0,.25)}.is-dark .gm-ai{background:rgba(255,200,80,.10);color:#f0cf88;border-color:rgba(255,200,80,.22)}.gm-ai-x{margin-left:auto;flex:none;border:0;background:none;cursor:pointer;font-size:15px;line-height:1;color:inherit;opacity:.7;padding:0 2px;min-width:24px;min-height:24px}.gm-ai-x:hover{opacity:1}.gm-x{margin-left:auto;border:1px solid rgba(0,0,0,.16);background:transparent;color:inherit;font:600 12px inherit;padding:6px 12px;border-radius:8px;cursor:pointer;min-height:34px}.gm-stat{display:flex;justify-content:space-between;gap:12px;padding:4px 0;border-bottom:1px solid rgba(0,0,0,.07);font-variant-numeric:tabular-nums}.is-dark .gm-stat{border-bottom-color:rgba(255,255,255,.09)}.gm-stat b{font-weight:700}.gm-list{margin-top:9px}.gm-list-h{font-weight:700;font-size:12px;margin-bottom:3px}.gm-list ul{margin:0;padding-left:17px;font-size:12px;line-height:1.5}.gm-note{margin-top:9px;font-size:11px;line-height:1.5;opacity:.75}.gm-err{position:absolute;top:50%;left:0;right:0;text-align:center;font-size:13px;opacity:.7}.gm-wait{position:absolute;top:50%;inset-inline:0;text-align:center;font-size:13px;opacity:.7}.gm-dot{width:10px;height:10px;border-radius:50%;flex:none;box-sizing:border-box;border:1.5px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.25)}.gm-pg-mobile{display:none}@media(max-width:767px){.gm-pg-mobile{display:block}.gm-pg-desktop{display:none}}","doxa-connectivity-map"),(y,P)=>(R(),B("div",{class:ye(["gm",{"is-dark":r.value}]),style:We(re.value&&v.value?{"--gm-toolbar-top":v.value+"px"}:null)},[_("div",{ref_key:"mapEl",ref:c,class:"gm-map"},null,512),u.value?(R(),Ye(Sb,{key:0},{default:Rt(()=>[De(Tb,{"is-dark":r.value},null,8,["is-dark"]),De(Nb,{map:u.value,"is-dark":r.value},null,8,["map","is-dark"]),De(Ob,{map:u.value,"is-dark":r.value},null,8,["map","is-dark"]),De(Mb,{map:u.value,"is-dark":r.value},null,8,["map","is-dark"]),De(Ib,{"map-container":c.value,"is-dark":r.value},null,8,["map-container","is-dark"]),De(i$,{"is-dark":r.value,"embed-path":"cities-internet/connectivity-map/index.html"},null,8,["is-dark"])]),_:1})):ue("",!0),Oa(_("div",{ref_key:"legendEl",ref:x,class:"gm-legend"},[_("div",I0,G(H(D)("connectivity.title")),1),re.value?(R(),B("button",{key:0,type:"button",class:"gm-fold",onClick:Ne,"aria-expanded":pe.value?"true":"false"},G(pe.value?H(D)("connectivity.ui.hideKey"):H(D)("connectivity.ui.showKey")),9,R0)):ue("",!0),Oa(_("div",D0,[_("div",B0,[(R(),B(_e,null,ot(je,W=>_("span",{key:W.id,class:"gm-key"},[_("i",{class:"gm-sw",style:We({background:W.color})},null,4),Fe(G(H(D)("connectivity.bands."+W.id)),1)])),64)),le.value.length?(R(),B("span",z0,[_("i",{class:"gm-dot",style:We({background:Ii})},null,4),Fe(G(H(D)("connectivity.peopleGroup"))+" ("+G(f(le.value.length))+") ",1)])):ue("",!0)]),_("div",G0,G(H(D)("connectivity.caveat")),1),N.value?(R(),B("div",j0,[_("div",H0,G(H(D)("connectivity.adm1.title")),1),_("div",{class:"gm-seg",role:"group","aria-label":H(D)("connectivity.adm1.title")},[_("button",{type:"button",class:ye({on:I.value==="women"}),"aria-pressed":I.value==="women",onClick:P[0]||(P[0]=W=>ee("women"))},G(H(D)("connectivity.adm1.women")),11,W0),_("button",{type:"button",class:ye({on:I.value==="men"}),"aria-pressed":I.value==="men",onClick:P[1]||(P[1]=W=>ee("men"))},G(H(D)("connectivity.adm1.men")),11,K0)],8,U0),_("div",q0,[(R(),B(_e,null,ot(A,(W,J)=>_("span",{key:W.from,class:"gm-key"},[_("i",{class:"gm-sw",style:We({background:W.color})},null,4),Fe(G(J+1O.value=null)},G(H(D)("connectivity.sheet.close")),1)]),_("div",n1,G(H(D)("connectivity.adm1.title")),1),_("table",a1,[_("thead",null,[_("tr",null,[P[5]||(P[5]=_("th",null,null,-1)),_("th",null,G(H(D)("connectivity.adm1.total")),1),_("th",null,G(H(D)("connectivity.adm1.urban")),1),_("th",null,G(H(D)("connectivity.adm1.rural")),1)])]),_("tbody",null,[(R(),B(_e,null,ot(["women","men"],W=>_("tr",{key:W},[_("th",null,G(H(D)("connectivity.adm1."+W)),1),(R(),B(_e,null,ot(["total","urban","rural"],J=>_("td",{key:J},G(O.value[W][J]!=null?O.value[W][J]+"%":"—"),1)),64))])),64))])]),_("p",r1,G(H(D)("connectivity.adm1.source")),1)])):ue("",!0),d.value?(R(),B("div",s1,[_("div",i1,[_("span",l1,G(d.value.country),1),_("button",{type:"button",class:"gm-x",onClick:P[3]||(P[3]=W=>d.value=null)},G(H(D)("connectivity.sheet.close")),1)]),w.value?(R(),B("div",c1,[_("span",null,G(H(D)("connectivity.sheet.ai")),1),_("button",{type:"button",class:"gm-ai-x",onClick:P[4]||(P[4]=W=>w.value=!1),"aria-label":H(D)("connectivity.sheet.dismiss")},"×",8,u1)])):ue("",!0),_("div",p1,[_("span",null,G(H(D)("connectivity.sheet.internetUsers")),1),_("b",null,G(d.value.internet_pct!=null?d.value.internet_pct+"%":H(D)("connectivity.sheet.unknown")),1)]),_("div",d1,[_("span",null,G(H(D)("connectivity.sheet.measured")),1),_("b",null,G(d.value.internet_year||"—"),1)]),_("div",g1,[_("span",null,G(H(D)("connectivity.sheet.mobilePer100")),1),_("b",null,G(d.value.mobile_per_100??"—"),1)]),_("div",m1,[_("span",null,G(H(D)("connectivity.sheet.peopleGroups")),1),_("b",null,G(f(d.value.people_groups)),1)]),_("div",h1,[_("span",null,G(H(D)("connectivity.sheet.topPlatform")),1),_("b",null,[Fe(G(d.value.top_platform||H(D)("connectivity.sheet.unknown")),1),d.value.top_platform_pct?(R(),B(_e,{key:0},[Fe(" · "+G(d.value.top_platform_pct)+"%",1)],64)):ue("",!0)])]),d.value.carriers&&d.value.carriers.length?(R(),B("div",f1,[_("div",_1,G(H(D)("connectivity.sheet.carriers",{n:d.value.carrier_count})),1),_("ul",null,[(R(!0),B(_e,null,ot(d.value.carriers,(W,J)=>(R(),B("li",{key:J},G(W),1))),128))])])):ue("",!0),d.value.platforms&&d.value.platforms.length?(R(),B("div",b1,[_("div",$1,G(H(D)("connectivity.sheet.socialPlatforms")),1),_("ul",null,[(R(!0),B(_e,null,ot(d.value.platforms,(W,J)=>(R(),B("li",{key:J},G(W.name)+" · "+G(W.pct)+"%",1))),128))])])):ue("",!0),_("p",y1,G(H(D)("connectivity.sheet.note")),1)])):ue("",!0)],6))}}},Symbol.toStringTag,{value:"Module"}));function w1(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 yd(e){const t=ie(null),o=Ao({position:"fixed",inset:"0"}),n=()=>{var u,p;const r=t.value;if(!r)return;const s=w1(r),i=r.ownerDocument||(typeof document<"u"?document:null),l=((u=i==null?void 0:i.documentElement)==null?void 0:u.clientWidth)||0,c=((p=i==null?void 0:i.documentElement)==null?void 0:p.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"}};Ge(e,r=>{r&&requestAnimationFrame(()=>{n(),requestAnimationFrame(n)})},{flush:"post"});const a=()=>{e.value&&n()};return typeof window<"u"&&window.addEventListener("resize",a),Mt(()=>{typeof window<"u"&&window.removeEventListener("resize",a)}),{scrimRef:t,scrimStyle:o}}const k1={class:"dt-head"},x1={class:"dt-title"},C1={class:"dt-count"},A1={key:0,class:"dt-grain"},P1={class:"dt-actions"},S1={key:0,class:"dt-err"},L1={class:"dt-wrap"},T1={class:"dt-hint"},N1={key:0,dir:"ltr"},O1=["aria-label"],M1={class:"dt-sheet-head"},F1={class:"dt-dl"},E1=["href"],I1={key:1},R1={key:2},D1={key:2,class:"dt-caveats"},B1={dir:"ltr"},z1={class:"dt-cav-k"},G1={__name:"DataTable",props:{table:{type:Object,required:!0},assetsBase:{type:String,default:"./assets"},isDark:{type:Boolean,default:!1},height:{type:String,default:"560px"},frozen:{type:Number,default:1},pageSize:{type:Number,default:50}},emits:["row-click"],setup(e,{emit:t}){const o=(F,j)=>Pt(F)||j,n=e,a=t,r=ie(!1),s=ie(null),{scrimRef:i,scrimStyle:l}=yd(s),c=ie(null),u=Ao(null),p=ie(null),d=ie(!1),w=U(()=>String(n.assetsBase||"./assets").replace(/\/+$/,"")),b=U(()=>{var F;return((F=n.table)==null?void 0:F.meta)||{}}),m=U(()=>{var F;return(((F=n.table)==null?void 0:F.rows)||[]).length}),g=U(()=>Object.entries(b.value).filter(([F,j])=>typeof j=="string"&&/caveat|meaning|note|boundary|measures|does_not/i.test(F)).map(([F,j])=>({key:F.replace(/_/g," "),text:j})));let $=null;function x(){return window.Tabulator?Promise.resolve(window.Tabulator):$||($=new Promise((F,j)=>{const q=document.createElement("script");q.src=`${w.value}/vendor/tabulator/tabulator.min.js`,q.onload=()=>F(window.Tabulator),q.onerror=()=>j(new Error("Tabulator failed to load — is public/assets/vendor/tabulator/ present?")),document.head.appendChild(q)}),$)}async function v(F){if(!(!F||F.querySelector("style[data-tabulator]")))try{const j=await fetch(`${w.value}/vendor/tabulator/tabulator.min.css`);if(!j.ok)return;const q=document.createElement("style");q.setAttribute("data-tabulator",""),q.textContent=await j.text(),F.appendChild(q)}catch{}}function k(F){var le,Q;if(!c.value)return;r.value=typeof window<"u"&&window.innerWidth<700;const j=((le=n.table)==null?void 0:le.columns)||[],V=(r.value?j.slice(0,3):j).map((Y,ae)=>({title:Y.title,field:Y.field,headerFilter:Y.type==="boolean"?"tickCross":"input",headerFilterPlaceholder:"filter…",sorter:Y.type==="number"?"number":Y.type==="boolean"?"boolean":"string",formatter:Y.type==="boolean"?"tickCross":void 0,.../_url$/.test(Y.field)?{formatter:"link",formatterParams:{target:"_blank",label:()=>"open"}}:{},frozen:!r.value&&ae{s.value=ae.getData(),a("row-click",ae.getData())}),u.value.on("tableBuilt",()=>{d.value=!0})}const C=F=>{var j,q;return((q=(((j=n.table)==null?void 0:j.columns)||[]).find(V=>V.field===F))==null?void 0:q.title)||F.replace(/_/g," ")},S=F=>typeof F=="string"&&F.includes(", ")&&F.length>40?F.split(", "):null,N=F=>typeof F=="string"&&/^https?:\/\//.test(F),I=U(()=>s.value?Object.entries(s.value).filter(([,F])=>F!==""&&F!==null&&F!==void 0):[]);function O(F){var j;try{(j=u.value)==null||j.download(F,`${(b.value.title||"table").replace(/\W+/g,"-").toLowerCase()}.${F}`)}catch(q){p.value=String(q.message||q)}}return Bt(async()=>{var F,j;try{await v((j=(F=c.value)==null?void 0:F.getRootNode)==null?void 0:j.call(F)),k(await x())}catch(q){p.value=String(q.message||q)}}),Mt(()=>{var F;try{(F=u.value)==null||F.destroy()}catch{}}),Ge(()=>n.table,()=>{var F,j;try{(j=u.value)==null||j.replaceData(((F=n.table)==null?void 0:F.rows)||[])}catch{}}),yt(".dt .tabulator{border:1px solid #d1d4cd;background:#fff;font-size:14px}.dt .tabulator .tabulator-header{background:#f3f3f1;border-bottom:1px solid #d1d4cd;color:#3b463d}.dt .tabulator .tabulator-header .tabulator-col{background:#f3f3f1;border-right:1px solid #d1d4cd;color:#3b463d}.dt .tabulator .tabulator-header .tabulator-col.tabulator-sortable:hover{background:#e9ebe6}.dt .tabulator .tabulator-col-title{color:#3b463d;font-weight:700}.dt .tabulator .tabulator-header .tabulator-col .tabulator-header-filter input,.dt .tabulator .tabulator-header .tabulator-col .tabulator-header-filter select{background:#fff;border:1px solid #d1d4cd;border-radius:5px;color:#3b463d;padding:3px 6px}.dt .tabulator .tabulator-row{background:#fff;color:#3b463d;border-bottom:1px solid #e6e8e3}.dt .tabulator .tabulator-row.tabulator-row-even{background:#faf9f7}.dt .tabulator .tabulator-row:hover{background:#e9ebe6}.dt .tabulator .tabulator-row .tabulator-cell{border-inline-end:1px solid #e6e8e3;color:#3b463d;unicode-bidi:plaintext}.dt:dir(rtl) .tabulator .tabulator-row .tabulator-cell{text-align:right}.dt .tabulator .tabulator-row .tabulator-cell a{color:#4a7a52;font-weight:600}.dt .tabulator .tabulator-footer{background:#f3f3f1;border-top:1px solid #d1d4cd;color:#3b463d}.dt .tabulator .tabulator-footer .tabulator-paginator{color:#3b463d}.dt .tabulator .tabulator-footer .tabulator-paginator label{color:#3b463d}.dt .tabulator .tabulator-footer .tabulator-paginator select{background:#fff;border:1px solid #d1d4cd;border-radius:5px;color:#3b463d}.dt .tabulator .tabulator-footer .tabulator-page{border:1px solid #d1d4cd;background:#fff;color:#3b463d;border-radius:5px}.dt .tabulator .tabulator-footer .tabulator-page.active{background:#92b195;border-color:#92b195;color:#fff}.dt .tabulator .tabulator-footer .tabulator-page:not(disabled):hover{background:#e9ebe6;color:#3b463d}.dt .tabulator .tabulator-footer .tabulator-page:disabled{opacity:.45}.dt,.dt *{box-sizing:border-box}.dt{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}.dt-head{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:8px}.dt-title{font-size:15px;font-weight:700;margin:0}.dt-count{font-size:11.5px;opacity:.6;font-variant-numeric:tabular-nums}.dt-grain{font-size:11px;opacity:.55}.dt-actions{margin-inline-start:auto;display:flex;gap:6px}.dt-btn{font:600 11.5px inherit;padding:5px 11px;border-radius:6px;cursor:pointer;border:1px solid rgba(0,0,0,.16);background:transparent;color:inherit}.dt-btn:hover{background:rgba(0,0,0,.05)}.dt-err{padding:10px 12px;border-radius:8px;background:rgba(220,38,38,.10);color:#a12020;font-size:12.5px}.dt-caveats{margin-top:10px;padding:10px 12px;border-radius:8px;background:rgba(0,0,0,.04);font-size:11.5px;line-height:1.6;opacity:.85}.is-dark .dt-caveats{background:rgba(255,255,255,.06)}.dt-cav-k{font-weight:700;text-transform:capitalize}.dt-scrim{position:fixed;inset:0;z-index:1200;background:rgba(8,12,16,.55);display:flex;align-items:flex-end;justify-content:center}@media(min-width:700px){.dt-scrim{align-items:center}}.dt-sheet{width:100%;max-width:560px;max-height:82vh;overflow-y:auto;background:#fff;color:#0f1419;border-radius:14px 14px 0 0;padding:16px 18px 26px;box-shadow:0 -6px 30px rgba(0,0,0,.3)}@media(min-width:700px){.dt-sheet{border-radius:14px}}.is-dark .dt-sheet{background:#132019;color:#e5e7eb}.dt-sheet-head{display:flex;align-items:center;gap:12px;margin-bottom:10px;padding-bottom:9px;border-bottom:1px solid rgba(0,0,0,.10);font-size:15px}.dt-close{margin-inline-start:auto;font:600 12px inherit;padding:7px 14px;border-radius:8px;cursor:pointer;min-height:36px;border:1px solid rgba(0,0,0,.16);background:transparent;color:inherit}.dt-dl{display:grid;grid-template-columns:minmax(96px,34%) 1fr;gap:7px 12px;margin:0;font-size:12.5px}.dt-dl dt{font-weight:700;opacity:.72;text-transform:capitalize}.dt-dl dd{margin:0;word-break:break-word}.dt-dl ul{margin:0;padding-inline-start:16px}.dt-dl a{color:#0b7a5b;font-weight:600}.dt-hint{font-size:11px;opacity:.6;margin:6px 0 0}.dt-wrap{width:100%;overflow:hidden;border:1px solid rgba(0,0,0,.10);border-radius:8px}.is-dark .dt-wrap{border-color:rgba(255,255,255,.12)}","doxa-data-table"),(F,j)=>{var q,V;return R(),B("div",{class:ye(["dt",{"is-dark":e.isDark}])},[_("div",k1,[_("h3",x1,G(b.value.title||"Data"),1),_("span",C1,G(m.value.toLocaleString())+" rows",1),b.value.grain?(R(),B("span",A1,"· "+G(b.value.grain),1)):ue("",!0),_("span",P1,[_("button",{type:"button",class:"dt-btn",onClick:j[0]||(j[0]=le=>O("csv"))},G(o("tables.csv","CSV")),1),_("button",{type:"button",class:"dt-btn",onClick:j[1]||(j[1]=le=>O("json"))},G(o("tables.json","JSON")),1)])]),p.value?(R(),B("div",S1,G(p.value),1)):ue("",!0),_("div",L1,[_("div",{ref_key:"host",ref:c},null,512)]),_("p",T1,[Fe(G(o("tables.tap_row_hint","Tap any row for its full detail")),1),r.value?(R(),B(_e,{key:1},[Fe(".")],64)):(R(),B("bdi",N1," — every field, including the lists the table flattens."))]),s.value?(R(),B("div",{key:1,ref_key:"scrimRef",ref:i,style:We(H(l)),class:"dt-scrim",onClick:j[3]||(j[3]=ct(le=>s.value=null,["self"]))},[_("div",{class:"dt-sheet",role:"dialog","aria-label":o("aria.rowDetail","Row detail")},[_("div",M1,[_("strong",null,G(s.value[(V=(((q=e.table)==null?void 0:q.columns)||[])[0])==null?void 0:V.field]||o("aria.rowDetail","Row detail")),1),_("button",{type:"button",class:"dt-close",onClick:j[2]||(j[2]=le=>s.value=null)},G(o("buttons.close","Close")),1)]),_("dl",F1,[(R(!0),B(_e,null,ot(I.value,([le,Q])=>(R(),B(_e,{key:le},[_("dt",null,G(C(le)),1),_("dd",null,[N(Q)?(R(),B("a",{key:0,href:Q,target:"_blank",rel:"noopener"},G(Q),9,E1)):S(Q)?(R(),B("ul",I1,[(R(!0),B(_e,null,ot(S(Q),(Y,ae)=>(R(),B("li",{key:ae},G(Y),1))),128))])):(R(),B("span",R1,G(Q===!0?"yes":Q===!1?"no":Q),1))])],64))),128))])],8,O1)],4)):ue("",!0),g.value.length?(R(),B("div",D1,[(R(!0),B(_e,null,ot(g.value,le=>(R(),B("div",{key:le.key},[_("bdi",B1,[_("span",z1,G(le.key)+":",1),Fe(" "+G(le.text),1)])]))),128))])):ue("",!0)],2)}}},j1={class:"ct-h"},H1={class:"ct-sub"},U1={class:"ct-tabs"},W1=["onClick"],K1={key:0,class:"ct-n"},q1={key:0,class:"ct-err"},V1={key:1,class:"ct-load"},Y1=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"data-tables",setup(e){const t=Se("profileConfig",ie(null)),o=U(()=>{var b;return((b=t.value)==null?void 0:b.isDark)===!0}),n=U(()=>Us(t.value)),a=aa("connectivity"),r=b=>(Number(b)||0).toLocaleString(),s=[{id:"cities",file:"key-cities"},{id:"internet",file:"country-connectivity"},{id:"operators",file:"network-operators"},{id:"social",file:"social-platforms"},{id:"messaging",file:"messaging-channels"}],i=ie("cities"),l=U(()=>s.find(b=>b.id===i.value)||s[0]),c=ie({}),u=ie(!1),p=ie(null);async function d(b){if(!c.value[b]){u.value=!0,p.value=null;try{const m=await fetch(`${n.value}/tables/${b}.json`);if(!m.ok)throw new Error(String(m.status));c.value={...c.value,[b]:await m.json()}}catch{const g=s.find($=>$.file===b);p.value=ur(Pt("messages.couldNotLoadNamed"),{name:g?a("tables.tabs."+g.id):b})}finally{u.value=!1}}}Ge(l,b=>b&&d(b.file),{immediate:!0});const w=U(()=>{var b;return c.value[(b=l.value)==null?void 0:b.file]||null});return yt(":host{display:block;position:relative;width:100%;height:100%;min-height:320px}.ct{position:absolute;inset:0;overflow-y:auto;padding:18px;background:#f6f7f9;color:#0f1419;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}.ct.is-dark{background:#0a1410;color:#e5e7eb}.ct-h{margin:0 0 4px;font-size:18px;font-weight:700}.ct-sub{margin:0 0 14px;font-size:12.5px;opacity:.72;line-height:1.5}.ct-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:14px}.ct-tab{font:600 12px inherit;padding:7px 14px;border-radius:999px;cursor:pointer;border:1px solid rgba(0,0,0,.14);background:transparent;color:inherit}.ct-tab.on{background:#10b981;border-color:#10b981;color:#04241a}.ct-load{padding:22px;text-align:center;font-size:12.5px;opacity:.6}.ct-err{padding:11px 13px;border-radius:8px;background:rgba(220,38,38,.10);color:#a12020;font-size:12.5px}.ct-n{font-size:10.5px;opacity:.6;margin-left:5px;font-variant-numeric:tabular-nums}","doxa-cities-tables"),(b,m)=>(R(),B("div",{class:ye(["ct",{"is-dark":o.value}])},[_("h2",j1,G(H(a)("connectivity.tables.title")),1),_("p",H1,G(H(a)("connectivity.tables.intro")),1),_("div",U1,[(R(),B(_e,null,ot(s,g=>_("button",{key:g.id,type:"button",class:ye(["ct-tab",{on:i.value===g.id}]),onClick:$=>i.value=g.id},[Fe(G(H(a)("connectivity.tables.tabs."+g.id)),1),c.value[g.file]?(R(),B("span",K1,G(r((c.value[g.file].rows||[]).length)),1)):ue("",!0)],10,W1)),64))]),p.value?(R(),B("div",q1,G(p.value),1)):w.value?(R(),Ye(G1,{key:l.value.id,table:w.value,"assets-base":n.value,"is-dark":o.value,height:"600px"},null,8,["table","assets-base","is-dark"])):(R(),B("div",V1,G(H(a)("connectivity.tables.loading",{name:H(a)("connectivity.tables.tabs."+l.value.id)})),1))],2))}}},Symbol.toStringTag,{value:"Module"})),Z1="pplrInstance";function J1(){return Se(Z1,null)}const X1="",Q1=["data-theme"],ev={class:"stl-inner"},tv={class:"stl-tb-caret-slot"},ov=["title","aria-label","aria-expanded"],nv={class:"stl-tb-eyebrow"},av=["title","aria-label"],rv=["title"],sv={key:2,class:"stl-tb-title"},iv={key:3,class:"stl-export"},lv=["aria-expanded","title","aria-label"],cv={class:"stl-export-label"},uv={class:"stl-export-menu",role:"menu"},pv={class:"stl-export-item-label"},dv={class:"stl-export-item-label"},gv=["aria-expanded"],mv={class:"stl-export-item-label"},hv=["aria-label"],fv={class:"stl-export-note"},_v={class:"stl-export-item-label"},bv={class:"stl-export-item-label"},$v={key:0,class:"stl-tabs-wrap"},yv={class:"stl-tabs"},vv=["onClick"],wv=["title","onClick"],kv={key:0,class:"stl-info-pop"},xv={class:"stl-col-hdr"},Cv={class:"stl-hdr-name"},Av=["title"],Pv={key:0,class:"stl-sort-arrow"},Sv=["title"],Lv={key:0,class:"stl-sort-arrow"},Tv=["data-stl-node-id","onClick"],Nv=["aria-expanded","aria-label","onClick"],Ov={key:1,class:"stl-caret-sp"},Mv={key:3,class:"stl-dot-sp"},Fv={class:"stl-name"},Ev={key:4,class:"stl-num"},Iv={key:5,class:"stl-num"},Rv={class:"stl-x-slot"},Dv=["title","aria-label"],Bv={key:0,class:"stl-empty stl-loading"},zv={key:1,class:"stl-empty"},Gv={key:2,class:"stl-empty"},jv={key:3,class:"stl-overflow"},Hv={class:"stl-overflow-hint"},Uv=["data-theme","title","aria-label"],Wv={class:"stl-reopen-label"},Kv=$o({__name:"SemanticTreeLegend",props:{nodes:{type:Array,default:()=>[]},pinNote:{type:Boolean,default:null},tabs:{type:Array,default:null},defaultTab:{type:Number,default:0},columns:{type:Array,default:()=>["count","pop"]},title:{type:String,default:"Legend"},hideTabs:{type:Boolean,default:!1},columnLabel:{type:String,default:""},open:{type:Boolean,default:null},exportEnabled:{type:Boolean,default:!1},exportCards:{type:Boolean,default:!1},progress:{type:Object,default:null}},emits:["select","update:open","export"],setup(e,{emit:t}){const o=(E,K)=>Pt(E)||K,n=E=>String(E).split(".").pop().replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/^./,K=>K.toUpperCase()),{t:a,te:r,locale:s}=js("",{fallback:E=>n(E)});function i(E){const K="tabs."+((E==null?void 0:E.i18nKey)||(E==null?void 0:E.id));return E&&r(K)?a(K):(E==null?void 0:E.label)??""}function l(E){const K="legend.tabInfo."+((E==null?void 0:E.i18nKey)||(E==null?void 0:E.id));return E&&r(K)?a(K):typeof(E==null?void 0:E.info)=="string"?E.info:""}const c=e,u=t,p=J1(),d=Se("legendProgress",null),w=U(()=>c.progress??H(d)??null),b=U(()=>w.value?a("legend.progress.title"):c.title),m=U(()=>((p==null?void 0:p.theme.value)||"dark")==="dark"),g=Se("dataStore",null),$=Se("normalizedPeopleGroups",null),x=E=>!!(E&&Ar(E)&&Fi(E)),v=U(()=>{var K,me;if(c.pinNote!==null)return c.pinNote;if((K=$==null?void 0:$.value)!=null&&K.length)return $.value.slice(0,20).some(x);const E=(g==null?void 0:g.sources)||{};for(const $e in E)if((((me=E[$e])==null?void 0:me.features)||[]).slice(0,20).some(x))return!0;return!1});function k(E,K){var me;for(const $e of E||[]){if(($e==null?void 0:$e.id)===K)return $e;const Ce=(me=$e==null?void 0:$e.children)!=null&&me.length?k($e.children,K):null;if(Ce)return Ce}return null}function C(E){const K=k(j.value,E);K&&z(K)}function S(E,K=0){return E!=null&&E.length?Math.max(...E.map(me=>S(me.children??[],K+1))):K}function N(E,K,me=0){return me===K?E.slice():E.flatMap($e=>N($e.children??[],K,me+1))}function I(E,K,me=[]){var $e;for(const Ce of E){if(Ce.id===K)return me;if(($e=Ce.children)!=null&&$e.length){const at=I(Ce.children,K,[...me,Ce]);if(at)return at}}return null}function O(E,K=new Set){var me;if(!((me=E==null?void 0:E.children)!=null&&me.length))return K;for(const $e of E.children)K.add($e.id),O($e,K);return K}function F(E,K="root"){var $e;if(!Array.isArray(E))return[];const me=[];for(const Ce of E){if(!Ce||typeof Ce!="object"){try{console.warn("[SemanticTreeLegend] dropped null node under",K)}catch{}continue}me.push(($e=Ce.children)!=null&&$e.length?{...Ce,children:F(Ce.children,Ce.label||Ce.id||K)}:Ce)}return me}const j=U(()=>F(c.nodes)),q=U(()=>S(j.value)),V=U(()=>{const E=c.tabs??[],K=E.length||q.value+1;return Array.from({length:K},(me,$e)=>E[$e]??{id:`gen${$e+1}`,label:`Generation ${$e+1}`})}),le=ie(Math.max(0,c.defaultTab|0)),Q=ie(new Set),Y=ie(null),ae=ie(c.open!==null?c.open:!0),te=ie(null),oe=ie(!1),D=ie(!1),{scrimRef:re,scrimStyle:pe}=yd(oe),fe=ie(null),Oe=ie("desc"),Ne=U({get:()=>{var E;return c.hideTabs?0:p&&!((E=p.activeTabTouched)!=null&&E.value)?Math.min(Math.max(0,c.defaultTab|0),Math.max(0,V.value.length-1)):p?p.activeTab.value:le.value},set:E=>{c.hideTabs||(p?(p.activeTab.value=E,p.activeTabTouched&&(p.activeTabTouched.value=!0)):le.value=E)}}),Le=U({get:()=>p?p.selection.value:Y.value,set:E=>{p?p.selection.value=E:Y.value=E}}),je=U(()=>{var E;return((E=Le.value)==null?void 0:E.id)||null}),rt=ie(null);Ge(()=>c.open,E=>{E!==null&&(ae.value=E)}),Ge(()=>j.value,()=>{var at,Ae;const E=((at=Le.value)==null?void 0:at.id)||null;if(E){const vt=k(j.value,E);if(vt){Le.value=vt;return}}const K=p?(Ae=p.activeTabTouched)==null?void 0:Ae.value:!1,me=K?p==null?void 0:p.activeTab.value:void 0,$e=Math.min(Math.max(0,c.defaultTab|0),Math.max(0,V.value.length-1)),Ce=typeof me=="number"&&me>=0?me:$e;p?(p.activeTab.value=Ce,!K&&p.activeTabTouched&&(p.activeTabTouched.value=!1)):le.value=Ce,Q.value=new Set,Le.value=null,u("select",null)},{deep:!1});let qe=null;p&&Ge(()=>p.selection.value,E=>{if((E==null?void 0:E.id)===qe)return;if(!E){qe=null;return}qe=E.id;const K=I(j.value,E.id)||[];typeof E.depth=="number"&&(Ne.value=Math.min(E.depth,V.value.length-1));const me=new Set;K.forEach($e=>me.add($e.id)),Q.value=me,u("select",E)});function Qe(E,K){const me=(K.pop??0)-(E.pop??0);return me!==0?me:(K.count??0)-(E.count??0)}const nt=U(()=>{if(!fe.value)return Qe;const E=fe.value,K=Oe.value==="asc"?1:-1;return(me,$e)=>((me[E]??0)-($e[E]??0))*K});function A(E){fe.value===E?Oe.value==="desc"?Oe.value="asc":(fe.value=null,Oe.value="desc"):(fe.value=E,Oe.value="desc")}const M=ie([]),L=ie(!1);let Z=-1;function ee(E){if(M.value[E]){L.value=!1;return}L.value=!0,Z=E,setTimeout(()=>{if(Z!==E)return;const K=[...N(j.value,E)].sort(nt.value),me=[...M.value];me[E]=K,M.value=me,L.value=!1},0)}Ge(Ne,E=>ee(E),{immediate:!0}),Ge(()=>[j.value,fe.value,Oe.value],()=>{M.value=[],ee(Ne.value)},{deep:!1});const X=U(()=>M.value[Ne.value]||[]),ce=U(()=>{var K;const E=(K=V.value[Ne.value])==null?void 0:K.topLimit;return E?X.value.slice(0,E):X.value}),se=U(()=>{var K;const E=(K=V.value[Ne.value])==null?void 0:K.topLimit;return E?Math.max(0,X.value.length-E):0});function f(E,K,me,$e,Ce){var at;for(const Ae of K)Ae&&(E.push({node:Ae,relDepth:me,parent:$e,ancestors:Ce}),Q.value.has(Ae.id)&&((at=Ae.children)!=null&&at.length)&&f(E,[...Ae.children].sort(nt.value),me+1,Ae,[...Ce,Ae]))}const h=U(()=>{const E=[];f(E,ce.value,0,null,[]);for(let K=0;KCe+1&&St.ancestors[Ce]}if(Ce===me.relDepth-1){let vt=!1;for(let St=K+1;Stje.value!==null),P=U(()=>c.columns.includes("count")),W=U(()=>c.columns.includes("pop")),J=U(()=>Le.value?O(Le.value):new Set),T=U(()=>{var at;const E=Le.value;if(!E)return null;const K=I(j.value,E.id);if(!K||!K.length)return null;const me=K[K.length-1],$e=K.length-1,Ce=((at=V.value[$e])==null?void 0:at.label)||"Parent";return{node:me,tabName:Ce,depth:$e}});function z(E){je.value===E.id?(qe=null,Le.value=null,u("select",null)):(qe=E.id,Le.value=E,u("select",E))}function ne(E,K){K==null||K.stopPropagation();const me=new Set(Q.value),$e=me.has(E);if($e?me.delete(E):me.add(E),Q.value=me,$e&&Le.value){const Ce=I(j.value,Le.value.id);Ce&&Ce.some(at=>at.id===E)&&(qe=null,Le.value=null,u("select",null))}}function ge(){const E=T.value;E!=null&&E.node&&(!c.hideTabs&&typeof E.depth=="number"&&(Ne.value=E.depth),Q.value=new Set,z(E.node))}function ve(E){if(Ne.value===E){te.value=te.value===E?null:E;return}Ne.value=E,Q.value=new Set,qe=null,Le.value=null,te.value=null,u("select",null)}function Ie(E){E==null||E.stopPropagation(),qe=null,Le.value=null,u("select",null)}function Me(E,K){K==null||K.stopPropagation(),te.value=te.value===E?null:E}function bt(E){E==null||E.stopPropagation(),oe.value=!oe.value}function be(E){oe.value=!1,D.value=!1,u("export",E)}Ge(je,E=>{E||(oe.value=!1,D.value=!1)}),Ge(oe,E=>{E||(D.value=!1)});function he(E){let K=E.parentElement;for(;K;){const me=getComputedStyle(K).overflowY;if((me==="auto"||me==="scroll")&&K.scrollHeight>K.clientHeight+1){const $e=E.getBoundingClientRect(),Ce=K.getBoundingClientRect();K.scrollTop+=$e.top-Ce.top-8}K=K.parentElement}}let we=0;Ge(je,async E=>{if(!E)return;const K=++we,me=rt.value;if(!me)return;await Ot();const $e=(Ce=0)=>{if(K!==we)return;const at=me.querySelector(`[data-stl-node-id="${CSS.escape(String(E))}"]`);at&&he(at),Ce<6&&setTimeout(()=>$e(Ce+1),70)};$e(0)});function He(){const E=s&&(s.value??s);return typeof E=="string"&&E?E:void 0}function st(E){return E?E>=1e3?new Intl.NumberFormat(He(),{notation:"compact",maximumFractionDigits:E>=1e6&&E<1e7?1:0}).format(E):E.toLocaleString(He()):"—"}function en(E){return E!=null?E.toLocaleString(He()):"—"}function jo(E){var K;return{selected:je.value===E.node.id,descendant:y.value&&J.value.has(E.node.id),child:E.relDepth>0,leaf:!((K=E.node.children)!=null&&K.length)}}return yt(` +`,"legend-component");const a=e;Se("mapStore");const r=Se("dataStore"),s=Se("uiStore"),i=_l(a,"legendType"),{items:l,columns:c,title:u,activeFilter:p,setFilter:d,totalCount:w,totalPopulation:b,progress:m,fmtPop:g,fmtCount:$}=id(i,bd),x=Se("normalizedPeopleGroups",null),v=U(()=>{var Y,ae;if((Y=x==null?void 0:x.value)!=null&&Y.length)return x.value;const Q=[];for(const te in r.sources){const oe=r.sources[te];(ae=oe==null?void 0:oe.features)!=null&&ae.length&&Q.push(...oe.features)}return Q}),k=Se("mapId",null),C=U(()=>s.isMobile),S=U(()=>s.legendMode),N=U(()=>s.selectedPeopleGroup),I=U(()=>Ei(v.value)),O=U(()=>N.value?_d(I.value,N.value):[]),F=ie(a.initiallyCollapsed);let j=null;const q=U(()=>{var Q;return S.value==="detail"&&N.value?((Q=N.value.properties)==null?void 0:Q.name)||n("legend.header.peopleGroupFallback"):F.value?n("legend.header.collapsed"):u.value});function V(){F.value=!F.value}Ge(S,(Q,Y)=>{Q==="detail"&&Y!=="detail"&&F.value&&(F.value=!1)});function le(Q){d(Q)}return Bt(()=>{window.innerWidth<768&&(F.value=!0),j=Q=>{var Y;k&&((Y=Q.detail)!=null&&Y.mapId)&&Q.detail.mapId!==k||(F.value=!1)},window.addEventListener("dxm:openDesktopLegend",j)}),Mt(()=>{j&&window.removeEventListener("dxm:openDesktopLegend",j)}),(Q,Y)=>C.value?(R(),Ye(H(o),{key:0,legendType:e.legendType,popupAction:e.popupAction,isDark:e.isDark,disableCollapse:e.disableCollapse},null,8,["legendType","popupAction","isDark","disableCollapse"])):F.value?(R(),B("button",{key:1,class:ye(["legend-reopen",{"legend-reopen-light":!e.isDark}]),title:t("aria.expandLegend","Expand legend"),onClick:Y[0]||(Y[0]=ae=>F.value=!1)},[Y[2]||(Y[2]=_("svg",{class:"legend-reopen-icon",width:"11",height:"11",viewBox:"0 0 12 12",fill:"none"},[_("path",{d:"M2 4h8M2 6h8M2 8h5",stroke:"currentColor","stroke-width":"1.4","stroke-linecap":"round"})],-1)),_("span",O0,G(H(u)),1),Y[3]||(Y[3]=_("svg",{class:"legend-reopen-caret",width:"8",height:"8",viewBox:"0 0 12 12",fill:"none"},[_("path",{d:"M4.5 3L7.5 6L4.5 9",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"})],-1))],10,N0)):(R(),B("div",{key:2,class:ye(["legend-container",{"legend-dark":e.isDark}])},[S.value==="detail"?(R(),B("span",M0,[De(hd,{open:!F.value,t:H(n),onToggle:V},null,8,["open","t"])])):ue("",!0),S.value==="detail"?(R(),B("button",{key:1,class:"detail-close-btn",onClick:Y[1]||(Y[1]=ct(ae=>H(s).selectPeopleGroup(null),["stop"])),"aria-label":H(n)("aria.backToLegend")},[...Y[4]||(Y[4]=[_("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none"},[_("path",{d:"M15 5L5 15M5 5L15 15",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})],-1)])],8,F0)):ue("",!0),_("div",{class:ye(["legend-content",{"no-padding":H(c).length>0}])},[S.value==="detail"&&N.value?(R(),B(_e,{key:0},[De(md,{peopleGroup:N.value,hideHeader:!0,dark:e.isDark,action:e.popupAction},null,8,["peopleGroup","dark","action"]),De(ua,{shared:O.value,dark:e.isDark},null,8,["shared","dark"])],64)):e.legendType==="language-family"?(R(),B(_e,{key:1},[],64)):(R(),Ye(cd,{key:2,title:q.value,items:H(l),columns:H(c),activeFilter:H(p),isDark:e.isDark,hideColumnHeader:!1,showFooter:!1,disableCollapse:!0,totalCount:H(w),totalPopulation:H(b),fmtPop:H(g),fmtCount:H($),progress:H(m),onFilterClick:le},{"title-caret":Rt(()=>[De(hd,{open:!F.value,t:H(n),onToggle:V},null,8,["open","t"])]),_:1},8,["title","items","columns","activeFilter","isDark","totalCount","totalPopulation","fmtPop","fmtCount","progress"])),S.value!=="detail"?(R(),Ye(ua,{key:3,dark:e.isDark},null,8,["dark"])):ue("",!0)],2)],2))}},[["styles",[T0]],["__scopeId","data-v-37990088"]]),I0={class:"gm-title"},R0=["aria-expanded"],D0={class:"gm-body"},B0={class:"gm-keys"},z0={key:0,class:"gm-key"},G0={class:"gm-caveat"},j0={key:0,class:"gm-adm1"},H0={class:"gm-adm1-h"},U0=["aria-label"],W0=["aria-pressed"],K0=["aria-pressed"],q0={class:"gm-keys"},V0={class:"gm-caveat"},Y0={key:0,class:"gm-caveat"},Z0={key:1,class:"gm-err"},J0={key:2,class:"gm-wait",role:"status"},X0={key:3,class:"gm-pg-desktop"},Q0={key:4,class:"gm-pg-mobile"},e1={key:5,class:"gm-sheet"},t1={class:"gm-sh-head"},o1={class:"gm-sh-name"},n1={class:"gm-list-h"},a1={class:"gm-adm1-t"},r1={class:"gm-note"},s1={key:6,class:"gm-sheet"},i1={class:"gm-sh-head"},l1={class:"gm-sh-name"},c1={key:0,class:"gm-ai"},u1=["aria-label"],p1={class:"gm-stat"},d1={class:"gm-stat"},g1={class:"gm-stat"},m1={class:"gm-stat"},h1={class:"gm-stat"},f1={key:1,class:"gm-list"},_1={class:"gm-list-h"},b1={key:2,class:"gm-list"},$1={class:"gm-list-h"},y1={class:"gm-note"},Ii="#1e293b",$d="ci.legendOpen",v1=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"connectivity-map",setup(e){const t=Object.create(null);function o(y,P){try{window[y]=P,t[y]=P}catch{}}const n=Hs(()=>An(()=>Promise.resolve().then(()=>Cd),void 0)),a=Se("profileConfig",ie(null)),r=U(()=>{var y;return((y=a.value)==null?void 0:y.isDark)===!0}),s=Se("mapboxToken",null),i=U(()=>{var y;return((y=a.value)==null?void 0:y.tk)||(s==null?void 0:s.value)||typeof window<"u"&&window.MAP_TOKEN||""}),l=U(()=>Us(a.value)),c=ie(null),u=Ao(null),p=ie([]),d=ie(null),w=ie(!0),b=ie(null),m=ie(!0);function g(y){const P=c.value;if(P)try{P.dispatchEvent(new CustomEvent("dxmaps:mapinfo-pending",{bubbles:!0,composed:!0,detail:{pending:y}}))}catch{}}const $=()=>{!u.value&&!b.value&&g(!0)};Ge(b,y=>{y&&g(!1)});const x=ie(null),v=ie(0);let k=null;function C(){const y=x.value;if(!y||!re.value||pe.value)return;const P=y.offsetTop+y.offsetHeight;P>0&&(v.value=P+8)}function S(){try{k=new ResizeObserver(C),x.value&&k.observe(x.value)}catch{k=null}C()}const N=Ao(null),I=ie("women"),O=ie(null),F=Se("uiStore",null),j=(()=>{var P;const y=(P=Se("lang",null))==null?void 0:P.value;return y&&y!=="en"?y:null})(),q=()=>{if(j)return j;const y=a.value;if(y&&(y.locale||y.lang))return String(y.locale||y.lang);try{const P=new URLSearchParams(location.search);return P.get("lang")||P.get("locale")||document.documentElement.lang||"en"}catch{return"en"}},V=new _p({locale:j,profileConfig:a}),le=Ao([]),Q=ie(0),Y=T$({getMap:()=>u.value,getActivePinColor:()=>Ii});async function ae(){await V.init();const y=await V.setActiveSource("pray-tools");le.value=Co(y||[])}function te(){const y=[];for(const P of le.value){const W=parseFloat(P.longitude??P.lng),J=parseFloat(P.latitude??P.lat);if(!isFinite(W)||!isFinite(J))continue;const T=P._normalized||{};y.push({type:"Feature",properties:{uniqueId:P.uniqueId,slug:P.slug||"",name:P.name,language:P.language,languageFamily:P.languageFamily||T.languageFamily||"",country:P.country,countryIso:P.countryIso,countryIsoLabel:P.countryIsoLabel,countryName:P.countryName,religion:P.religion,religionLabel:P.religionLabel,religionName:P.religionName,population:P.population,status:P.status,description:P.description||"",imageUrl:P.imageUrl||"",peoplePraying:Number(P.peoplePraying??T.peoplePraying??0)},geometry:{type:"Point",coordinates:[W,J]}})}return{type:"FeatureCollection",features:y}}function oe(y){if(!le.value.length||y.getSource("language-families"))return;const P=te();if(Q.value=P.features.length,y.addSource("language-families",{type:"geojson",data:P,promoteId:"uniqueId"}),P.features.length){let W=180,J=90,T=-180,z=-90;for(const ge of P.features){const[ve,Ie]=ge.geometry.coordinates;veT&&(T=ve),Iez&&(z=Ie)}const ne=Math.round(Math.min(y.getContainer().clientWidth,y.getContainer().clientHeight)*.06)+8;try{const ge=y.cameraForBounds([[W,J],[T,z]],{padding:ne});if(y.fitBounds([[W,J],[T,z]],{padding:ne,duration:0}),ge&&y.getZoom()>ge.zoom+.05){const ve=y.getBounds(),Ie=Math.min(360,ve.getEast()-ve.getWest());let Me=y.getCenter().lng,bt=-1;for(let be=-180;be<180;be+=5){let he=0;for(const we of P.features){let He=we.geometry.coordinates[0]-be;He=(He+540)%360-180,Math.abs(He)<=Ie/2&&he++}he>bt&&(bt=he,Me=be)}y.jumpTo({center:[Me,(J+z)/2]})}}catch{}}y.addLayer({id:"ci-pg-dots",type:"circle",source:"language-families",paint:{"circle-color":Ii,"circle-radius":["interpolate",["linear"],["zoom"],0,2.6,4,3.6,8,6,12,8.5],"circle-stroke-color":"#ffffff","circle-stroke-width":["interpolate",["linear"],["zoom"],0,1,6,1.4,12,1.8],"circle-opacity":.95}}),y.on("click","ci-pg-dots",W=>{var T;const J=(T=W.features)==null?void 0:T[0];!J||!F||(d.value=null,F.selectPeopleGroup(J))}),y.on("mouseenter","ci-pg-dots",()=>{y.getCanvas().style.cursor="pointer"}),y.on("mouseleave","ci-pg-dots",()=>{y.getCanvas().style.cursor=""}),typeof window<"u"&&(o("__ciState",()=>{var W,J;return{groups:le.value.length,dots:Q.value,hasLayer:!!y.getLayer("ci-pg-dots"),rendered:y.queryRenderedFeatures({layers:["ci-pg-dots"]}).length,selected:((J=(W=F==null?void 0:F.selectedPeopleGroup)==null?void 0:W.properties)==null?void 0:J.slug)||null}}),o("__ciMap",y))}const D=aa("connectivity"),re=ie(!1),pe=ie(!0);function fe(y){var P;try{(P=window.sessionStorage)==null||P.setItem($d,y?"1":"0")}catch{}}function Oe(){var y;try{const P=(y=window.sessionStorage)==null?void 0:y.getItem($d);return P==null?null:P==="1"}catch{return null}}function Ne(){pe.value=!pe.value,fe(pe.value)}function Le(){const y=typeof window<"u"&&window.innerWidth<700;if(y===re.value)return;re.value=y;const P=Oe();pe.value=P??!y}typeof window<"u"&&(Le(),window.addEventListener("resize",Le));const je=[{id:"yes",color:"#10b981"},{id:"partial",color:"#e8c15a"},{id:"no",color:"#b42318"},{id:"unknown",color:"#9aa2ad"}],rt=y=>(je.find(P=>P.id===y)||{}).color||"#9aa2ad",qe=U(()=>{const y={};for(const P of p.value)y[P.iso3]=P;return y});async function Qe(){const[y,P]=await Promise.all([fetch(`${l.value}/tables/internet-by-country.json`).then(W=>W.json()),fetch(`${l.value}/boundaries/world-adm0-web.geojson`).then(W=>W.json())]);return p.value=y.countries||[],P}function nt(y,P){const W=qe.value,T={type:"FeatureCollection",features:(P.features||[]).map(z=>{var ve;const ne=(ve=z.properties)==null?void 0:ve.iso3,ge=W[ne];return{type:"Feature",properties:{iso3:ne,band:(ge==null?void 0:ge.band)||"none",color:ge?rt(ge.band):"rgba(0,0,0,0)",hasData:!!ge},geometry:z.geometry}})};if(y.getSource("ci-src")){y.getSource("ci-src").setData(T);return}y.addSource("ci-src",{type:"geojson",data:T}),y.addLayer({id:"ci-fill",type:"fill",source:"ci-src",paint:{"fill-color":["get","color"],"fill-opacity":["case",["get","hasData"],.72,0]}}),y.addLayer({id:"ci-line",type:"line",source:"ci-src",paint:{"line-color":"rgba(255,255,255,0.5)","line-width":.5}}),y.on("click","ci-fill",z=>{var ge,ve,Ie;if(y.getLayer("ci-pg-dots")&&y.queryRenderedFeatures(z.point,{layers:["ci-pg-dots"]}).length)return;const ne=(Ie=(ve=(ge=z.features)==null?void 0:ge[0])==null?void 0:ve.properties)==null?void 0:Ie.iso3;ne&&qe.value[ne]&&(F==null||F.selectPeopleGroup(null),O.value=null,d.value=qe.value[ne])}),y.on("mouseenter","ci-fill",()=>{y.getCanvas().style.cursor="pointer"}),y.on("mouseleave","ci-fill",()=>{y.getCanvas().style.cursor=""})}const A=[{from:0,color:"#deebf7"},{from:25,color:"#9ecae1"},{from:40,color:"#6baed6"},{from:55,color:"#3182bd"},{from:70,color:"#08519c"}],M=y=>["case",["==",["typeof",["get",y]],"number"],["step",["get",y],...A.flatMap((P,W)=>W===0?[P.color]:[P.from,P.color])],"rgba(0,0,0,0)"];async function L(){var J;const[y,P]=await Promise.all([fetch(`${l.value}/tables/internet-by-adm1.json`).then(T=>{if(!T.ok)throw new Error("internet-by-adm1 "+T.status);return T.json()}),fetch(`${l.value}/boundaries/gb-IND-ADM1-full-web.geojson`).then(T=>{if(!T.ok)throw new Error("gb-IND-ADM1-full "+T.status);return T.json()})]),W={};for(const T of y.rows||[]){if(T.iso3!=="IND"||T.measure!=="ever_used_internet"||!T.adm1)continue;const z=W[J=T.adm1]??(W[J]={name:T.adm1_name||T.adm1,women:{},men:{}});z[T.sex][T.area]=T.value}return N.value=Co({meta:y.meta||{},byArea:W}),P}function Z(y,P){const W=N.value.byArea,J={type:"FeatureCollection",features:(P.features||[]).map(z=>{var ge,ve;const ne=W[(ge=z.properties)==null?void 0:ge.shapeName];return{type:"Feature",geometry:z.geometry,properties:{adm1:(ve=z.properties)==null?void 0:ve.shapeName,women:(ne==null?void 0:ne.women.total)??null,men:(ne==null?void 0:ne.men.total)??null}}})},T=y.getLayer("ci-pg-dots")?"ci-pg-dots":void 0;y.addSource("ci-adm1-src",{type:"geojson",data:J}),y.addLayer({id:"ci-adm1-fill",type:"fill",source:"ci-adm1-src",paint:{"fill-color":M(I.value),"fill-opacity":.85}},T),y.addLayer({id:"ci-adm1-line",type:"line",source:"ci-adm1-src",paint:{"line-color":"rgba(255,255,255,0.8)","line-width":.6}},T),y.getLayer("ci-fill")&&y.setFilter("ci-fill",["!=",["get","iso3"],"IND"]),y.on("click","ci-adm1-fill",z=>{var ve,Ie,Me;if(y.getLayer("ci-pg-dots")&&y.queryRenderedFeatures(z.point,{layers:["ci-pg-dots"]}).length)return;const ne=(Me=(Ie=(ve=z.features)==null?void 0:ve[0])==null?void 0:Ie.properties)==null?void 0:Me.adm1,ge=ne&&W[ne];ge&&(F==null||F.selectPeopleGroup(null),d.value=null,O.value={key:ne,...ge})}),y.on("mouseenter","ci-adm1-fill",()=>{y.getCanvas().style.cursor="pointer"}),y.on("mouseleave","ci-adm1-fill",()=>{y.getCanvas().style.cursor=""})}function ee(y){I.value=y;const P=u.value;P!=null&&P.getLayer("ci-adm1-fill")&&P.setPaintProperty("ci-adm1-fill","fill-color",M(y))}const X=U(()=>{var y,P,W,J;return rp(((J=(W=(P=(y=N.value)==null?void 0:y.meta)==null?void 0:P.boundaries)==null?void 0:W.IND)==null?void 0:J.missing)||[],{type:"conjunction"})}),ce=u$(Se("profileConfig",null));let se=!1;Bt(async()=>{g(!0),window.addEventListener("dxmaps:mapinfo-host",$),S();try{await x$(ce)}catch{}const y=qs(ce);if(!se){if(!y){const P=ce==="maplibre"?"MapLibre":"Mapbox";console.warn(`[connectivity-map] the ${P} engine did not load; refusing to substitute another engine.`),b.value=ur(Pt("messages.engineMissing"),{engine:P});return}if(!c.value){b.value=Pt("messages.engineNotLoaded");return}_$(y);try{const P=ae().catch(ne=>{console.warn("[connectivity-map] people groups:",(ne==null?void 0:ne.message)||ne)}),W=L().catch(ne=>(console.warn("[connectivity-map] India by state:",(ne==null?void 0:ne.message)||ne),null)),J=await Qe();if(se||!c.value)return;const T=k$(ce);if(T&&await C$(c.value,T),se||!c.value)return;const z=new y.Map({container:c.value,style:h$(r.value?"ink":"paper",ce).style||(r.value?"mapbox://styles/mapbox/dark-v11":"mapbox://styles/mapbox/light-v11"),accessToken:i.value,locale:w$(q(),ce),center:[42,18],zoom:1.3,projection:"mercator",attributionControl:!1});u.value=Co(z),Pb(z,{boundaries:!0}),z.once("load",async()=>{try{y$(z,q())}catch{}nt(z,J),Y.initialize(),await P,oe(z);const ne=await W;ne&&!se&&Z(z,ne),m.value=!1})}catch(P){b.value=String(P.message||P),m.value=!1}}}),Mt(()=>{var y;typeof window<"u"&&window.removeEventListener("dxmaps:mapinfo-host",$);try{k==null||k.disconnect()}catch{}u.value||g(!1),typeof window<"u"&&window.removeEventListener("resize",Le);try{window.__ciState===t.__ciState&&delete window.__ciState}catch{}try{window.__ciMap===t.__ciMap&&delete window.__ciMap}catch{}se=!0,Y.cleanup(),F==null||F.selectPeopleGroup(null);try{(y=u.value)==null||y.remove()}catch{}});const f=y=>(Number(y)||0).toLocaleString(),h=U(()=>!!(F!=null&&F.selectedPeopleGroup));return yt(":host{display:block;position:relative;width:100%;height:100%;min-height:420px}.gm{position:absolute;inset:0;overflow:hidden}.gm-map{position:absolute;inset:0}.mapboxgl-ctrl-bottom-left,.mapboxgl-ctrl-bottom-right,.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right{transform:translateY(calc(-1 * var(--map-fab-clearance,0px)))}@media(max-width:699px){.gm .map-toolbar.map-toolbar{top:var(--gm-toolbar-top,72px)}}.gm-legend{position:absolute;top:8px;inset-inline-start:8px;width:var(--map-legend-width,380px);max-width:calc(100% - 16px);box-sizing:border-box;z-index:4;padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.94);color:#0f1419;font:12px/1.35 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;box-shadow:0 2px 10px rgba(0,0,0,.16)}@media(max-width:480px){.gm-legend{width:auto;inset-inline-end:46px}}.is-dark .gm-legend{background:rgba(19,32,25,.95);color:#e5e7eb}.gm-title{font-weight:700;font-size:12.5px;margin-bottom:5px}.gm-fold{width:100%;margin:0 0 6px;border:1px solid #d1d4cd;background:#f3f3f1;color:#3b463d;font:600 11px inherit;padding:6px 10px;border-radius:8px;cursor:pointer;min-height:32px}.gm-fold:hover{background:#e9ebe6}@media(max-width:699px){.gm-fold{min-height:44px;font-size:12px}}.gm-keys{display:flex;flex-wrap:wrap;gap:5px 12px}.gm-key{display:flex;align-items:center;gap:5px;font-size:11px;white-space:nowrap}.gm-sw{width:12px;height:12px;border-radius:3px;flex:none}.gm-caveat{margin-top:5px;font-size:10.5px;opacity:.72;line-height:1.4}.gm-adm1{margin-top:8px;padding-top:7px;border-top:1px solid rgba(0,0,0,.12)}.gm-adm1-h{font-weight:600;font-size:12px;margin-bottom:5px}.gm-seg{display:inline-flex;border:1px solid rgba(0,0,0,.2);border-radius:6px;overflow:hidden;margin-bottom:6px}.gm-seg button{font:inherit;font-size:11px;padding:3px 10px;min-height:24px;border:0;background:transparent;color:inherit;cursor:pointer}.gm-seg button.on{background:#08519c;color:#fff}.gm-adm1-t{width:100%;border-collapse:collapse;font-size:12px;margin:4px 0 6px}.gm-adm1-t th,.gm-adm1-t td{padding:3px 4px;text-align:end}.gm-adm1-t th:first-child{text-align:start}.is-dark .gm-adm1{border-top-color:rgba(255,255,255,.15)}.is-dark .gm-seg{border-color:rgba(255,255,255,.3)}.gm-sheet{position:absolute;left:0;right:0;bottom:0;z-index:6;max-height:62%;overflow-y:auto;background:#fff;color:#0f1419;border-radius:14px 14px 0 0;padding:14px 16px 22px;font:13px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;box-shadow:0 -6px 26px rgba(0,0,0,.28)}@media(min-width:700px){.gm-sheet{inset-inline-start:auto;inset-inline-end:14px;bottom:14px;width:330px;border-radius:12px}}.is-dark .gm-sheet{background:#132019;color:#e5e7eb}.gm-sh-head{display:flex;align-items:center;gap:10px;margin-bottom:8px}.gm-sh-name{font-weight:800;font-size:15px}.gm-ai{display:flex;align-items:flex-start;gap:8px;margin:0 0 10px;padding:7px 9px;border-radius:8px;font-size:11px;line-height:1.35;background:rgba(180,120,0,.12);color:#7a4f00;border:1px solid rgba(180,120,0,.25)}.is-dark .gm-ai{background:rgba(255,200,80,.10);color:#f0cf88;border-color:rgba(255,200,80,.22)}.gm-ai-x{margin-left:auto;flex:none;border:0;background:none;cursor:pointer;font-size:15px;line-height:1;color:inherit;opacity:.7;padding:0 2px;min-width:24px;min-height:24px}.gm-ai-x:hover{opacity:1}.gm-x{margin-left:auto;border:1px solid rgba(0,0,0,.16);background:transparent;color:inherit;font:600 12px inherit;padding:6px 12px;border-radius:8px;cursor:pointer;min-height:34px}.gm-stat{display:flex;justify-content:space-between;gap:12px;padding:4px 0;border-bottom:1px solid rgba(0,0,0,.07);font-variant-numeric:tabular-nums}.is-dark .gm-stat{border-bottom-color:rgba(255,255,255,.09)}.gm-stat b{font-weight:700}.gm-list{margin-top:9px}.gm-list-h{font-weight:700;font-size:12px;margin-bottom:3px}.gm-list ul{margin:0;padding-left:17px;font-size:12px;line-height:1.5}.gm-note{margin-top:9px;font-size:11px;line-height:1.5;opacity:.75}.gm-err{position:absolute;top:50%;left:0;right:0;text-align:center;font-size:13px;opacity:.7}.gm-wait{position:absolute;top:50%;inset-inline:0;text-align:center;font-size:13px;opacity:.7}.gm-dot{width:10px;height:10px;border-radius:50%;flex:none;box-sizing:border-box;border:1.5px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.25)}.gm-pg-mobile{display:none}@media(max-width:767px){.gm-pg-mobile{display:block}.gm-pg-desktop{display:none}}","doxa-connectivity-map"),(y,P)=>(R(),B("div",{class:ye(["gm",{"is-dark":r.value}]),style:We(re.value&&v.value?{"--gm-toolbar-top":v.value+"px"}:null)},[_("div",{ref_key:"mapEl",ref:c,class:"gm-map"},null,512),u.value?(R(),Ye(Sb,{key:0},{default:Rt(()=>[De(Tb,{"is-dark":r.value},null,8,["is-dark"]),De(Nb,{map:u.value,"is-dark":r.value},null,8,["map","is-dark"]),De(Ob,{map:u.value,"is-dark":r.value},null,8,["map","is-dark"]),De(Mb,{map:u.value,"is-dark":r.value},null,8,["map","is-dark"]),De(Ib,{"map-container":c.value,"is-dark":r.value},null,8,["map-container","is-dark"]),De(i$,{"is-dark":r.value,"embed-path":"cities-internet/connectivity-map/index.html"},null,8,["is-dark"])]),_:1})):ue("",!0),Oa(_("div",{ref_key:"legendEl",ref:x,class:"gm-legend"},[_("div",I0,G(H(D)("connectivity.title")),1),re.value?(R(),B("button",{key:0,type:"button",class:"gm-fold",onClick:Ne,"aria-expanded":pe.value?"true":"false"},G(pe.value?H(D)("connectivity.ui.hideKey"):H(D)("connectivity.ui.showKey")),9,R0)):ue("",!0),Oa(_("div",D0,[_("div",B0,[(R(),B(_e,null,ot(je,W=>_("span",{key:W.id,class:"gm-key"},[_("i",{class:"gm-sw",style:We({background:W.color})},null,4),Fe(G(H(D)("connectivity.bands."+W.id)),1)])),64)),le.value.length?(R(),B("span",z0,[_("i",{class:"gm-dot",style:We({background:Ii})},null,4),Fe(G(H(D)("connectivity.peopleGroup"))+" ("+G(f(le.value.length))+") ",1)])):ue("",!0)]),_("div",G0,G(H(D)("connectivity.caveat")),1),N.value?(R(),B("div",j0,[_("div",H0,G(H(D)("connectivity.adm1.title")),1),_("div",{class:"gm-seg",role:"group","aria-label":H(D)("connectivity.adm1.title")},[_("button",{type:"button",class:ye({on:I.value==="women"}),"aria-pressed":I.value==="women",onClick:P[0]||(P[0]=W=>ee("women"))},G(H(D)("connectivity.adm1.women")),11,W0),_("button",{type:"button",class:ye({on:I.value==="men"}),"aria-pressed":I.value==="men",onClick:P[1]||(P[1]=W=>ee("men"))},G(H(D)("connectivity.adm1.men")),11,K0)],8,U0),_("div",q0,[(R(),B(_e,null,ot(A,(W,J)=>_("span",{key:W.from,class:"gm-key"},[_("i",{class:"gm-sw",style:We({background:W.color})},null,4),Fe(G(J+1O.value=null)},G(H(D)("connectivity.sheet.close")),1)]),_("div",n1,G(H(D)("connectivity.adm1.title")),1),_("table",a1,[_("thead",null,[_("tr",null,[P[5]||(P[5]=_("th",null,null,-1)),_("th",null,G(H(D)("connectivity.adm1.total")),1),_("th",null,G(H(D)("connectivity.adm1.urban")),1),_("th",null,G(H(D)("connectivity.adm1.rural")),1)])]),_("tbody",null,[(R(),B(_e,null,ot(["women","men"],W=>_("tr",{key:W},[_("th",null,G(H(D)("connectivity.adm1."+W)),1),(R(),B(_e,null,ot(["total","urban","rural"],J=>_("td",{key:J},G(O.value[W][J]!=null?O.value[W][J]+"%":"—"),1)),64))])),64))])]),_("p",r1,G(H(D)("connectivity.adm1.source")),1)])):ue("",!0),d.value?(R(),B("div",s1,[_("div",i1,[_("span",l1,G(d.value.country),1),_("button",{type:"button",class:"gm-x",onClick:P[3]||(P[3]=W=>d.value=null)},G(H(D)("connectivity.sheet.close")),1)]),w.value?(R(),B("div",c1,[_("span",null,G(H(D)("connectivity.sheet.ai")),1),_("button",{type:"button",class:"gm-ai-x",onClick:P[4]||(P[4]=W=>w.value=!1),"aria-label":H(D)("connectivity.sheet.dismiss")},"×",8,u1)])):ue("",!0),_("div",p1,[_("span",null,G(H(D)("connectivity.sheet.internetUsers")),1),_("b",null,G(d.value.internet_pct!=null?d.value.internet_pct+"%":H(D)("connectivity.sheet.unknown")),1)]),_("div",d1,[_("span",null,G(H(D)("connectivity.sheet.measured")),1),_("b",null,G(d.value.internet_year||"—"),1)]),_("div",g1,[_("span",null,G(H(D)("connectivity.sheet.mobilePer100")),1),_("b",null,G(d.value.mobile_per_100??"—"),1)]),_("div",m1,[_("span",null,G(H(D)("connectivity.sheet.peopleGroups")),1),_("b",null,G(f(d.value.people_groups)),1)]),_("div",h1,[_("span",null,G(H(D)("connectivity.sheet.topPlatform")),1),_("b",null,[Fe(G(d.value.top_platform||H(D)("connectivity.sheet.unknown")),1),d.value.top_platform_pct?(R(),B(_e,{key:0},[Fe(" · "+G(d.value.top_platform_pct)+"%",1)],64)):ue("",!0)])]),d.value.carriers&&d.value.carriers.length?(R(),B("div",f1,[_("div",_1,G(H(D)("connectivity.sheet.carriers",{n:d.value.carrier_count})),1),_("ul",null,[(R(!0),B(_e,null,ot(d.value.carriers,(W,J)=>(R(),B("li",{key:J},G(W),1))),128))])])):ue("",!0),d.value.platforms&&d.value.platforms.length?(R(),B("div",b1,[_("div",$1,G(H(D)("connectivity.sheet.socialPlatforms")),1),_("ul",null,[(R(!0),B(_e,null,ot(d.value.platforms,(W,J)=>(R(),B("li",{key:J},G(W.name)+" · "+G(W.pct)+"%",1))),128))])])):ue("",!0),_("p",y1,G(H(D)("connectivity.sheet.note")),1)])):ue("",!0)],6))}}},Symbol.toStringTag,{value:"Module"}));function w1(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 yd(e){const t=ie(null),o=Ao({position:"fixed",inset:"0"}),n=()=>{var u,p;const r=t.value;if(!r)return;const s=w1(r),i=r.ownerDocument||(typeof document<"u"?document:null),l=((u=i==null?void 0:i.documentElement)==null?void 0:u.clientWidth)||0,c=((p=i==null?void 0:i.documentElement)==null?void 0:p.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"}};Ge(e,r=>{r&&requestAnimationFrame(()=>{n(),requestAnimationFrame(n)})},{flush:"post"});const a=()=>{e.value&&n()};return typeof window<"u"&&window.addEventListener("resize",a),Mt(()=>{typeof window<"u"&&window.removeEventListener("resize",a)}),{scrimRef:t,scrimStyle:o}}const k1={class:"dt-head"},x1={class:"dt-title"},C1={class:"dt-count"},A1={key:0,class:"dt-grain"},P1={class:"dt-actions"},S1={key:0,class:"dt-err"},L1={class:"dt-wrap"},T1={class:"dt-hint"},N1={key:0,dir:"ltr"},O1=["aria-label"],M1={class:"dt-sheet-head"},F1={class:"dt-dl"},E1=["href"],I1={key:1},R1={key:2},D1={key:2,class:"dt-caveats"},B1={dir:"ltr"},z1={class:"dt-cav-k"},G1={__name:"DataTable",props:{table:{type:Object,required:!0},assetsBase:{type:String,default:"./assets"},isDark:{type:Boolean,default:!1},height:{type:String,default:"560px"},frozen:{type:Number,default:1},pageSize:{type:Number,default:50}},emits:["row-click"],setup(e,{emit:t}){const o=(F,j)=>Pt(F)||j,n=e,a=t,r=ie(!1),s=ie(null),{scrimRef:i,scrimStyle:l}=yd(s),c=ie(null),u=Ao(null),p=ie(null),d=ie(!1),w=U(()=>String(n.assetsBase||"./assets").replace(/\/+$/,"")),b=U(()=>{var F;return((F=n.table)==null?void 0:F.meta)||{}}),m=U(()=>{var F;return(((F=n.table)==null?void 0:F.rows)||[]).length}),g=U(()=>Object.entries(b.value).filter(([F,j])=>typeof j=="string"&&/caveat|meaning|note|boundary|measures|does_not/i.test(F)).map(([F,j])=>({key:F.replace(/_/g," "),text:j})));let $=null;function x(){return window.Tabulator?Promise.resolve(window.Tabulator):$||($=new Promise((F,j)=>{const q=document.createElement("script");q.src=`${w.value}/vendor/tabulator/tabulator.min.js`,q.onload=()=>F(window.Tabulator),q.onerror=()=>j(new Error("Tabulator failed to load — is public/assets/vendor/tabulator/ present?")),document.head.appendChild(q)}),$)}async function v(F){if(!(!F||F.querySelector("style[data-tabulator]")))try{const j=await fetch(`${w.value}/vendor/tabulator/tabulator.min.css`);if(!j.ok)return;const q=document.createElement("style");q.setAttribute("data-tabulator",""),q.textContent=await j.text(),F.appendChild(q)}catch{}}function k(F){var le,Q;if(!c.value)return;r.value=typeof window<"u"&&window.innerWidth<700;const j=((le=n.table)==null?void 0:le.columns)||[],V=(r.value?j.slice(0,3):j).map((Y,ae)=>({title:Y.title,field:Y.field,headerFilter:Y.type==="boolean"?"tickCross":"input",headerFilterPlaceholder:"filter…",sorter:Y.type==="number"?"number":Y.type==="boolean"?"boolean":"string",formatter:Y.type==="boolean"?"tickCross":void 0,.../_url$/.test(Y.field)?{formatter:"link",formatterParams:{target:"_blank",label:()=>"open"}}:{},frozen:!r.value&&ae{s.value=ae.getData(),a("row-click",ae.getData())}),u.value.on("tableBuilt",()=>{d.value=!0})}const C=F=>{var j,q;return((q=(((j=n.table)==null?void 0:j.columns)||[]).find(V=>V.field===F))==null?void 0:q.title)||F.replace(/_/g," ")},S=F=>typeof F=="string"&&F.includes(", ")&&F.length>40?F.split(", "):null,N=F=>typeof F=="string"&&/^https?:\/\//.test(F),I=U(()=>s.value?Object.entries(s.value).filter(([,F])=>F!==""&&F!==null&&F!==void 0):[]);function O(F){var j;try{(j=u.value)==null||j.download(F,`${(b.value.title||"table").replace(/\W+/g,"-").toLowerCase()}.${F}`)}catch(q){p.value=String(q.message||q)}}return Bt(async()=>{var F,j;try{await v((j=(F=c.value)==null?void 0:F.getRootNode)==null?void 0:j.call(F)),k(await x())}catch(q){p.value=String(q.message||q)}}),Mt(()=>{var F;try{(F=u.value)==null||F.destroy()}catch{}}),Ge(()=>n.table,()=>{var F,j;try{(j=u.value)==null||j.replaceData(((F=n.table)==null?void 0:F.rows)||[])}catch{}}),yt(".dt .tabulator{border:1px solid #d1d4cd;background:#fff;font-size:14px}.dt .tabulator .tabulator-header{background:#f3f3f1;border-bottom:1px solid #d1d4cd;color:#3b463d}.dt .tabulator .tabulator-header .tabulator-col{background:#f3f3f1;border-right:1px solid #d1d4cd;color:#3b463d}.dt .tabulator .tabulator-header .tabulator-col.tabulator-sortable:hover{background:#e9ebe6}.dt .tabulator .tabulator-col-title{color:#3b463d;font-weight:700}.dt .tabulator .tabulator-header .tabulator-col .tabulator-header-filter input,.dt .tabulator .tabulator-header .tabulator-col .tabulator-header-filter select{background:#fff;border:1px solid #d1d4cd;border-radius:5px;color:#3b463d;padding:3px 6px}.dt .tabulator .tabulator-row{background:#fff;color:#3b463d;border-bottom:1px solid #e6e8e3}.dt .tabulator .tabulator-row.tabulator-row-even{background:#faf9f7}.dt .tabulator .tabulator-row:hover{background:#e9ebe6}.dt .tabulator .tabulator-row .tabulator-cell{border-inline-end:1px solid #e6e8e3;color:#3b463d;unicode-bidi:plaintext}.dt:dir(rtl) .tabulator .tabulator-row .tabulator-cell{text-align:right}.dt .tabulator .tabulator-row .tabulator-cell a{color:#4a7a52;font-weight:600}.dt .tabulator .tabulator-footer{background:#f3f3f1;border-top:1px solid #d1d4cd;color:#3b463d}.dt .tabulator .tabulator-footer .tabulator-paginator{color:#3b463d}.dt .tabulator .tabulator-footer .tabulator-paginator label{color:#3b463d}.dt .tabulator .tabulator-footer .tabulator-paginator select{background:#fff;border:1px solid #d1d4cd;border-radius:5px;color:#3b463d}.dt .tabulator .tabulator-footer .tabulator-page{border:1px solid #d1d4cd;background:#fff;color:#3b463d;border-radius:5px}.dt .tabulator .tabulator-footer .tabulator-page.active{background:#92b195;border-color:#92b195;color:#fff}.dt .tabulator .tabulator-footer .tabulator-page:not(disabled):hover{background:#e9ebe6;color:#3b463d}.dt .tabulator .tabulator-footer .tabulator-page:disabled{opacity:.45}.dt,.dt *{box-sizing:border-box}.dt{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}.dt-head{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:8px}.dt-title{font-size:15px;font-weight:700;margin:0}.dt-count{font-size:11.5px;opacity:.6;font-variant-numeric:tabular-nums}.dt-grain{font-size:11px;opacity:.55}.dt-actions{margin-inline-start:auto;display:flex;gap:6px}.dt-btn{font:600 11.5px inherit;padding:5px 11px;border-radius:6px;cursor:pointer;border:1px solid rgba(0,0,0,.16);background:transparent;color:inherit}.dt-btn:hover{background:rgba(0,0,0,.05)}.dt-err{padding:10px 12px;border-radius:8px;background:rgba(220,38,38,.10);color:#a12020;font-size:12.5px}.dt-caveats{margin-top:10px;padding:10px 12px;border-radius:8px;background:rgba(0,0,0,.04);font-size:11.5px;line-height:1.6;opacity:.85}.is-dark .dt-caveats{background:rgba(255,255,255,.06)}.dt-cav-k{font-weight:700;text-transform:capitalize}.dt-scrim{position:fixed;inset:0;z-index:1200;background:rgba(8,12,16,.55);display:flex;align-items:flex-end;justify-content:center}@media(min-width:700px){.dt-scrim{align-items:center}}.dt-sheet{width:100%;max-width:560px;max-height:82vh;overflow-y:auto;background:#fff;color:#0f1419;border-radius:14px 14px 0 0;padding:16px 18px 26px;box-shadow:0 -6px 30px rgba(0,0,0,.3)}@media(min-width:700px){.dt-sheet{border-radius:14px}}.is-dark .dt-sheet{background:#132019;color:#e5e7eb}.dt-sheet-head{display:flex;align-items:center;gap:12px;margin-bottom:10px;padding-bottom:9px;border-bottom:1px solid rgba(0,0,0,.10);font-size:15px}.dt-close{margin-inline-start:auto;font:600 12px inherit;padding:7px 14px;border-radius:8px;cursor:pointer;min-height:36px;border:1px solid rgba(0,0,0,.16);background:transparent;color:inherit}.dt-dl{display:grid;grid-template-columns:minmax(96px,34%) 1fr;gap:7px 12px;margin:0;font-size:12.5px}.dt-dl dt{font-weight:700;opacity:.72;text-transform:capitalize}.dt-dl dd{margin:0;word-break:break-word}.dt-dl ul{margin:0;padding-inline-start:16px}.dt-dl a{color:#0b7a5b;font-weight:600}.dt-hint{font-size:11px;opacity:.6;margin:6px 0 0}.dt-wrap{width:100%;overflow:hidden;border:1px solid rgba(0,0,0,.10);border-radius:8px}.is-dark .dt-wrap{border-color:rgba(255,255,255,.12)}","doxa-data-table"),(F,j)=>{var q,V;return R(),B("div",{class:ye(["dt",{"is-dark":e.isDark}])},[_("div",k1,[_("h3",x1,G(b.value.title||"Data"),1),_("span",C1,G(m.value.toLocaleString())+" rows",1),b.value.grain?(R(),B("span",A1,"· "+G(b.value.grain),1)):ue("",!0),_("span",P1,[_("button",{type:"button",class:"dt-btn",onClick:j[0]||(j[0]=le=>O("csv"))},G(o("tables.csv","CSV")),1),_("button",{type:"button",class:"dt-btn",onClick:j[1]||(j[1]=le=>O("json"))},G(o("tables.json","JSON")),1)])]),p.value?(R(),B("div",S1,G(p.value),1)):ue("",!0),_("div",L1,[_("div",{ref_key:"host",ref:c},null,512)]),_("p",T1,[Fe(G(o("tables.tap_row_hint","Tap any row for its full detail")),1),r.value?(R(),B(_e,{key:1},[Fe(".")],64)):(R(),B("bdi",N1," — every field, including the lists the table flattens."))]),s.value?(R(),B("div",{key:1,ref_key:"scrimRef",ref:i,style:We(H(l)),class:"dt-scrim",onClick:j[3]||(j[3]=ct(le=>s.value=null,["self"]))},[_("div",{class:"dt-sheet",role:"dialog","aria-label":o("aria.rowDetail","Row detail")},[_("div",M1,[_("strong",null,G(s.value[(V=(((q=e.table)==null?void 0:q.columns)||[])[0])==null?void 0:V.field]||o("aria.rowDetail","Row detail")),1),_("button",{type:"button",class:"dt-close",onClick:j[2]||(j[2]=le=>s.value=null)},G(o("buttons.close","Close")),1)]),_("dl",F1,[(R(!0),B(_e,null,ot(I.value,([le,Q])=>(R(),B(_e,{key:le},[_("dt",null,G(C(le)),1),_("dd",null,[N(Q)?(R(),B("a",{key:0,href:Q,target:"_blank",rel:"noopener"},G(Q),9,E1)):S(Q)?(R(),B("ul",I1,[(R(!0),B(_e,null,ot(S(Q),(Y,ae)=>(R(),B("li",{key:ae},G(Y),1))),128))])):(R(),B("span",R1,G(Q===!0?"yes":Q===!1?"no":Q),1))])],64))),128))])],8,O1)],4)):ue("",!0),g.value.length?(R(),B("div",D1,[(R(!0),B(_e,null,ot(g.value,le=>(R(),B("div",{key:le.key},[_("bdi",B1,[_("span",z1,G(le.key)+":",1),Fe(" "+G(le.text),1)])]))),128))])):ue("",!0)],2)}}},j1={class:"ct-h"},H1={class:"ct-sub"},U1={class:"ct-tabs"},W1=["onClick"],K1={key:0,class:"ct-n"},q1={key:0,class:"ct-err"},V1={key:1,class:"ct-load"},Y1=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"data-tables",setup(e){const t=Se("profileConfig",ie(null)),o=U(()=>{var b;return((b=t.value)==null?void 0:b.isDark)===!0}),n=U(()=>Us(t.value)),a=aa("connectivity"),r=b=>(Number(b)||0).toLocaleString(),s=[{id:"cities",file:"key-cities"},{id:"internet",file:"country-connectivity"},{id:"operators",file:"network-operators"},{id:"social",file:"social-platforms"},{id:"messaging",file:"messaging-channels"}],i=ie("cities"),l=U(()=>s.find(b=>b.id===i.value)||s[0]),c=ie({}),u=ie(!1),p=ie(null);async function d(b){if(!c.value[b]){u.value=!0,p.value=null;try{const m=await fetch(`${n.value}/tables/${b}.json`);if(!m.ok)throw new Error(String(m.status));c.value={...c.value,[b]:await m.json()}}catch{const g=s.find($=>$.file===b);p.value=ur(Pt("messages.couldNotLoadNamed"),{name:g?a("tables.tabs."+g.id):b})}finally{u.value=!1}}}Ge(l,b=>b&&d(b.file),{immediate:!0});const w=U(()=>{var b;return c.value[(b=l.value)==null?void 0:b.file]||null});return yt(":host{display:block;position:relative;width:100%;height:100%;min-height:320px}.ct{position:absolute;inset:0;overflow-y:auto;padding:18px;background:#f6f7f9;color:#0f1419;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}.ct.is-dark{background:#0a1410;color:#e5e7eb}.ct-h{margin:0 0 4px;font-size:18px;font-weight:700}.ct-sub{margin:0 0 14px;font-size:12.5px;opacity:.72;line-height:1.5}.ct-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:14px}.ct-tab{font:600 12px inherit;padding:7px 14px;border-radius:999px;cursor:pointer;border:1px solid rgba(0,0,0,.14);background:transparent;color:inherit}.ct-tab.on{background:#10b981;border-color:#10b981;color:#04241a}.ct-load{padding:22px;text-align:center;font-size:12.5px;opacity:.6}.ct-err{padding:11px 13px;border-radius:8px;background:rgba(220,38,38,.10);color:#a12020;font-size:12.5px}.ct-n{font-size:10.5px;opacity:.6;margin-left:5px;font-variant-numeric:tabular-nums}","doxa-cities-tables"),(b,m)=>(R(),B("div",{class:ye(["ct",{"is-dark":o.value}])},[_("h2",j1,G(H(a)("connectivity.tables.title")),1),_("p",H1,G(H(a)("connectivity.tables.intro")),1),_("div",U1,[(R(),B(_e,null,ot(s,g=>_("button",{key:g.id,type:"button",class:ye(["ct-tab",{on:i.value===g.id}]),onClick:$=>i.value=g.id},[Fe(G(H(a)("connectivity.tables.tabs."+g.id)),1),c.value[g.file]?(R(),B("span",K1,G(r((c.value[g.file].rows||[]).length)),1)):ue("",!0)],10,W1)),64))]),p.value?(R(),B("div",q1,G(p.value),1)):w.value?(R(),Ye(G1,{key:l.value.id,table:w.value,"assets-base":n.value,"is-dark":o.value,height:"600px"},null,8,["table","assets-base","is-dark"])):(R(),B("div",V1,G(H(a)("connectivity.tables.loading",{name:H(a)("connectivity.tables.tabs."+l.value.id)})),1))],2))}}},Symbol.toStringTag,{value:"Module"})),Z1="pplrInstance";function J1(){return Se(Z1,null)}const X1="",Q1=["data-theme"],ev={class:"stl-inner"},tv={class:"stl-tb-caret-slot"},ov=["title","aria-label","aria-expanded"],nv={class:"stl-tb-eyebrow"},av=["title","aria-label"],rv=["title"],sv={key:2,class:"stl-tb-title"},iv={key:3,class:"stl-export"},lv=["aria-expanded","title","aria-label"],cv={class:"stl-export-label"},uv={class:"stl-export-menu",role:"menu"},pv={class:"stl-export-item-label"},dv={class:"stl-export-item-label"},gv=["aria-expanded"],mv={class:"stl-export-item-label"},hv=["aria-label"],fv={class:"stl-export-note"},_v={class:"stl-export-item-label"},bv={class:"stl-export-item-label"},$v={key:0,class:"stl-tabs-wrap"},yv={class:"stl-tabs"},vv=["onClick"],wv=["title","onClick"],kv={key:0,class:"stl-info-pop"},xv={class:"stl-col-hdr"},Cv={class:"stl-hdr-name"},Av=["title"],Pv={key:0,class:"stl-sort-arrow"},Sv=["title"],Lv={key:0,class:"stl-sort-arrow"},Tv=["data-stl-node-id","onClick"],Nv=["aria-expanded","aria-label","onClick"],Ov={key:1,class:"stl-caret-sp"},Mv={key:3,class:"stl-dot-sp"},Fv={class:"stl-name"},Ev={key:4,class:"stl-num"},Iv={key:5,class:"stl-num"},Rv={class:"stl-x-slot"},Dv=["title","aria-label"],Bv={key:0,class:"stl-empty stl-loading"},zv={key:1,class:"stl-empty"},Gv={key:2,class:"stl-empty"},jv={key:3,class:"stl-overflow"},Hv={class:"stl-overflow-hint"},Uv=["data-theme","title","aria-label"],Wv={class:"stl-reopen-label"},Kv=$o({__name:"SemanticTreeLegend",props:{nodes:{type:Array,default:()=>[]},pinNote:{type:Boolean,default:null},tabs:{type:Array,default:null},defaultTab:{type:Number,default:0},columns:{type:Array,default:()=>["count","pop"]},title:{type:String,default:"Legend"},hideTabs:{type:Boolean,default:!1},columnLabel:{type:String,default:""},open:{type:Boolean,default:null},exportEnabled:{type:Boolean,default:!1},exportCards:{type:Boolean,default:!1},progress:{type:Object,default:null}},emits:["select","update:open","export"],setup(e,{emit:t}){const o=(E,K)=>Pt(E)||K,n=E=>String(E).split(".").pop().replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/^./,K=>K.toUpperCase()),{t:a,te:r,locale:s}=js("",{fallback:E=>n(E)});function i(E){const K="tabs."+((E==null?void 0:E.i18nKey)||(E==null?void 0:E.id));return E&&r(K)?a(K):(E==null?void 0:E.label)??""}function l(E){const K="legend.tabInfo."+((E==null?void 0:E.i18nKey)||(E==null?void 0:E.id));return E&&r(K)?a(K):typeof(E==null?void 0:E.info)=="string"?E.info:""}const c=e,u=t,p=J1(),d=Se("legendProgress",null),w=U(()=>c.progress??H(d)??null),b=U(()=>w.value?a("legend.progress.title"):c.title),m=U(()=>((p==null?void 0:p.theme.value)||"dark")==="dark"),g=Se("dataStore",null),$=Se("normalizedPeopleGroups",null),x=E=>!!(E&&Ar(E)&&Fi(E)),v=U(()=>{var K,me;if(c.pinNote!==null)return c.pinNote;if((K=$==null?void 0:$.value)!=null&&K.length)return $.value.slice(0,20).some(x);const E=(g==null?void 0:g.sources)||{};for(const $e in E)if((((me=E[$e])==null?void 0:me.features)||[]).slice(0,20).some(x))return!0;return!1});function k(E,K){var me;for(const $e of E||[]){if(($e==null?void 0:$e.id)===K)return $e;const Ce=(me=$e==null?void 0:$e.children)!=null&&me.length?k($e.children,K):null;if(Ce)return Ce}return null}function C(E){const K=k(j.value,E);K&&z(K)}function S(E,K=0){return E!=null&&E.length?Math.max(...E.map(me=>S(me.children??[],K+1))):K}function N(E,K,me=0){return me===K?E.slice():E.flatMap($e=>N($e.children??[],K,me+1))}function I(E,K,me=[]){var $e;for(const Ce of E){if(Ce.id===K)return me;if(($e=Ce.children)!=null&&$e.length){const at=I(Ce.children,K,[...me,Ce]);if(at)return at}}return null}function O(E,K=new Set){var me;if(!((me=E==null?void 0:E.children)!=null&&me.length))return K;for(const $e of E.children)K.add($e.id),O($e,K);return K}function F(E,K="root"){var $e;if(!Array.isArray(E))return[];const me=[];for(const Ce of E){if(!Ce||typeof Ce!="object"){try{console.warn("[SemanticTreeLegend] dropped null node under",K)}catch{}continue}me.push(($e=Ce.children)!=null&&$e.length?{...Ce,children:F(Ce.children,Ce.label||Ce.id||K)}:Ce)}return me}const j=U(()=>F(c.nodes)),q=U(()=>S(j.value)),V=U(()=>{const E=c.tabs??[],K=E.length||q.value+1;return Array.from({length:K},(me,$e)=>E[$e]??{id:`gen${$e+1}`,label:`Generation ${$e+1}`})}),le=ie(Math.max(0,c.defaultTab|0)),Q=ie(new Set),Y=ie(null),ae=ie(c.open!==null?c.open:!0),te=ie(null),oe=ie(!1),D=ie(!1),{scrimRef:re,scrimStyle:pe}=yd(oe),fe=ie(null),Oe=ie("desc"),Ne=U({get:()=>{var E;return c.hideTabs?0:p&&!((E=p.activeTabTouched)!=null&&E.value)?Math.min(Math.max(0,c.defaultTab|0),Math.max(0,V.value.length-1)):p?p.activeTab.value:le.value},set:E=>{c.hideTabs||(p?(p.activeTab.value=E,p.activeTabTouched&&(p.activeTabTouched.value=!0)):le.value=E)}}),Le=U({get:()=>p?p.selection.value:Y.value,set:E=>{p?p.selection.value=E:Y.value=E}}),je=U(()=>{var E;return((E=Le.value)==null?void 0:E.id)||null}),rt=ie(null);Ge(()=>c.open,E=>{E!==null&&(ae.value=E)}),Ge(()=>j.value,()=>{var at,Ae;const E=((at=Le.value)==null?void 0:at.id)||null;if(E){const vt=k(j.value,E);if(vt){Le.value=vt;return}}const K=p?(Ae=p.activeTabTouched)==null?void 0:Ae.value:!1,me=K?p==null?void 0:p.activeTab.value:void 0,$e=Math.min(Math.max(0,c.defaultTab|0),Math.max(0,V.value.length-1)),Ce=typeof me=="number"&&me>=0?me:$e;p?(p.activeTab.value=Ce,!K&&p.activeTabTouched&&(p.activeTabTouched.value=!1)):le.value=Ce,Q.value=new Set,Le.value=null,u("select",null)},{deep:!1});let qe=null;p&&Ge(()=>p.selection.value,E=>{if((E==null?void 0:E.id)===qe)return;if(!E){qe=null;return}qe=E.id;const K=I(j.value,E.id)||[];typeof E.depth=="number"&&(Ne.value=Math.min(E.depth,V.value.length-1));const me=new Set;K.forEach($e=>me.add($e.id)),Q.value=me,u("select",E)});function Qe(E,K){const me=(K.pop??0)-(E.pop??0);return me!==0?me:(K.count??0)-(E.count??0)}const nt=U(()=>{if(!fe.value)return Qe;const E=fe.value,K=Oe.value==="asc"?1:-1;return(me,$e)=>((me[E]??0)-($e[E]??0))*K});function A(E){fe.value===E?Oe.value==="desc"?Oe.value="asc":(fe.value=null,Oe.value="desc"):(fe.value=E,Oe.value="desc")}const M=ie([]),L=ie(!1);let Z=-1;function ee(E){if(M.value[E]){L.value=!1;return}L.value=!0,Z=E,setTimeout(()=>{if(Z!==E)return;const K=[...N(j.value,E)].sort(nt.value),me=[...M.value];me[E]=K,M.value=me,L.value=!1},0)}Ge(Ne,E=>ee(E),{immediate:!0}),Ge(()=>[j.value,fe.value,Oe.value],()=>{M.value=[],ee(Ne.value)},{deep:!1});const X=U(()=>M.value[Ne.value]||[]),ce=U(()=>{var K;const E=(K=V.value[Ne.value])==null?void 0:K.topLimit;return E?X.value.slice(0,E):X.value}),se=U(()=>{var K;const E=(K=V.value[Ne.value])==null?void 0:K.topLimit;return E?Math.max(0,X.value.length-E):0});function f(E,K,me,$e,Ce){var at;for(const Ae of K)Ae&&(E.push({node:Ae,relDepth:me,parent:$e,ancestors:Ce}),Q.value.has(Ae.id)&&((at=Ae.children)!=null&&at.length)&&f(E,[...Ae.children].sort(nt.value),me+1,Ae,[...Ce,Ae]))}const h=U(()=>{const E=[];f(E,ce.value,0,null,[]);for(let K=0;KCe+1&&St.ancestors[Ce]}if(Ce===me.relDepth-1){let vt=!1;for(let St=K+1;Stje.value!==null),P=U(()=>c.columns.includes("count")),W=U(()=>c.columns.includes("pop")),J=U(()=>Le.value?O(Le.value):new Set),T=U(()=>{var at;const E=Le.value;if(!E)return null;const K=I(j.value,E.id);if(!K||!K.length)return null;const me=K[K.length-1],$e=K.length-1,Ce=((at=V.value[$e])==null?void 0:at.label)||"Parent";return{node:me,tabName:Ce,depth:$e}});function z(E){je.value===E.id?(qe=null,Le.value=null,u("select",null)):(qe=E.id,Le.value=E,u("select",E))}function ne(E,K){K==null||K.stopPropagation();const me=new Set(Q.value),$e=me.has(E);if($e?me.delete(E):me.add(E),Q.value=me,$e&&Le.value){const Ce=I(j.value,Le.value.id);Ce&&Ce.some(at=>at.id===E)&&(qe=null,Le.value=null,u("select",null))}}function ge(){const E=T.value;E!=null&&E.node&&(!c.hideTabs&&typeof E.depth=="number"&&(Ne.value=E.depth),Q.value=new Set,z(E.node))}function ve(E){if(Ne.value===E){te.value=te.value===E?null:E;return}Ne.value=E,Q.value=new Set,qe=null,Le.value=null,te.value=null,u("select",null)}function Ie(E){E==null||E.stopPropagation(),qe=null,Le.value=null,u("select",null)}function Me(E,K){K==null||K.stopPropagation(),te.value=te.value===E?null:E}function bt(E){E==null||E.stopPropagation(),oe.value=!oe.value}function be(E){oe.value=!1,D.value=!1,u("export",E)}Ge(je,E=>{E||(oe.value=!1,D.value=!1)}),Ge(oe,E=>{E||(D.value=!1)});function he(E){let K=E.parentElement;for(;K;){const me=getComputedStyle(K).overflowY;if((me==="auto"||me==="scroll")&&K.scrollHeight>K.clientHeight+1){const $e=E.getBoundingClientRect(),Ce=K.getBoundingClientRect();K.scrollTop+=$e.top-Ce.top-8}K=K.parentElement}}let we=0;Ge(je,async E=>{if(!E)return;const K=++we,me=rt.value;if(!me)return;await Ot();const $e=(Ce=0)=>{if(K!==we)return;const at=me.querySelector(`[data-stl-node-id="${CSS.escape(String(E))}"]`);at&&he(at),Ce<6&&setTimeout(()=>$e(Ce+1),70)};$e(0)});function He(){const E=s&&(s.value??s);return typeof E=="string"&&E?E:void 0}function st(E){return E?E>=1e3?new Intl.NumberFormat(He(),{notation:"compact",maximumFractionDigits:E>=1e6&&E<1e7?1:0}).format(E):E.toLocaleString(He()):"—"}function en(E){return E!=null?E.toLocaleString(He()):"—"}function jo(E){var K;return{selected:je.value===E.node.id,descendant:y.value&&J.value.has(E.node.id),child:E.relDepth>0,leaf:!((K=E.node.children)!=null&&K.length)}}return yt(` .stl-inner { --stl-pad-x: 10px; --stl-gap: 6px; diff --git a/public/dx-maps/cities-internet/connectivity-list/index.html b/public/dx-maps/cities-internet/connectivity-list/index.html index d8f091cda..799947b5b 100644 --- a/public/dx-maps/cities-internet/connectivity-list/index.html +++ b/public/dx-maps/cities-internet/connectivity-list/index.html @@ -61,7 +61,7 @@ - + - + - + \n\n\n" + "script": "\n\n\n" }, "instances": [ { @@ -110,7 +110,7 @@ "bundle": "cities-internet", "scriptUrl": "./cities-internet/cities-internet.js", "output": "dx-maps/cities-internet/cities-internet.js", - "integrity": "sha384-tNrk0pzqPgc+Wrmt1aPJNMd7GxJG5v6E3bsVybvwuPP7ylCTechRPytao7UXsVtw", + "integrity": "sha384-E5TMzOWni+fQW29tpFo7O80spupsHBHRXL+Ggyse7nZpYIe4sGbgWlRj0NqNvR3G", "elements": [ "cities-internet-map" ], @@ -129,7 +129,7 @@ "scriptUrl": "./cities-internet/cities-internet.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" } }, { @@ -145,8 +145,8 @@ "scriptUrl": "./cities-internet/cities-internet.js", "embed": { "iframe": "", - "script": "\n\n\n\n\n\n", - "scriptMapbox": "\n\n\n\n\n\n" + "script": "\n\n\n\n\n\n", + "scriptMapbox": "\n\n\n\n\n\n" } }, { @@ -162,7 +162,7 @@ "scriptUrl": "./cities-internet/cities-internet.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" } } ] @@ -266,7 +266,7 @@ "bundle": "dashboard-plus-grid", "scriptUrl": "./dashboard-plus-grid/dashboard-plus-grid.js", "output": "dx-maps/dashboard-plus-grid/dashboard-plus-grid.js", - "integrity": "sha384-rvFw5xBM+g8q05USlrDCVt6AeljaunK0mjZqiXtvud8sNiMpRB/HfustwC4hM2rs", + "integrity": "sha384-ARIaqnumXNGEKtV9VV6ht1yuaTZvjNdhZXO7/vVNmIsl1mPTENQWlAsoabtuLtEs", "elements": [ "dashboard-plus-grid" ], @@ -290,8 +290,8 @@ "scriptUrl": "./dashboard-plus-grid/dashboard-plus-grid.js", "embed": { "iframe": "", - "script": "\n\n\n\n\n\n", - "scriptMapbox": "\n\n\n\n\n\n" + "script": "\n\n\n\n\n\n", + "scriptMapbox": "\n\n\n\n\n\n" }, "instances": [ { @@ -361,7 +361,7 @@ "bundle": "doxa-maps-spa", "scriptUrl": "./doxa-maps-spa/doxa-maps-spa.js", "output": "dx-maps/doxa-maps-spa/doxa-maps-spa.js", - "integrity": "sha384-oYB02v1OWlb2erOc10jYt+QZEZl294usemur9EmNAorpr0TO+jqJq7b/C9wPK90X", + "integrity": "sha384-pO1Mvg+IAD0qNekZT6pZ5SkUxHbA+Pe0vioUgXCQEh7uMLrSaZxvO9JLeF0hY2yt", "elements": [ "doxa-maps-spa" ], @@ -389,7 +389,7 @@ "scriptUrl": "./doxa-maps-spa/doxa-maps-spa.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" }, "instances": [ { @@ -782,7 +782,7 @@ "bundle": "gospel-resources", "scriptUrl": "./gospel-resources/gospel-resources.js", "output": "dx-maps/gospel-resources/gospel-resources.js", - "integrity": "sha384-r8nYD8g6OPc68facaxEor28WGGlCyZRHlaugBOAOa5kefiYSknFIam3oOn1PkdzW", + "integrity": "sha384-ZR7OSt5ZaS9Ec2PBgt2jijqce7yz8ZJzfP/YSM8WtaNTV4ftMDGb14A6gnm1f6SV", "elements": [ "gospel-resources-map" ], @@ -805,7 +805,7 @@ "scriptUrl": "./gospel-resources/gospel-resources.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" } }, { @@ -821,7 +821,7 @@ "scriptUrl": "./gospel-resources/gospel-resources.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" } }, { @@ -837,8 +837,8 @@ "scriptUrl": "./gospel-resources/gospel-resources.js", "embed": { "iframe": "", - "script": "\n\n\n\n\n\n", - "scriptMapbox": "\n\n\n\n\n\n" + "script": "\n\n\n\n\n\n", + "scriptMapbox": "\n\n\n\n\n\n" } }, { @@ -854,7 +854,7 @@ "scriptUrl": "./gospel-resources/gospel-resources.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" } }, { @@ -870,8 +870,8 @@ "scriptUrl": "./gospel-resources/gospel-resources.js", "embed": { "iframe": "", - "script": "\n\n\n\n\n\n", - "scriptMapbox": "\n\n\n\n\n\n" + "script": "\n\n\n\n\n\n", + "scriptMapbox": "\n\n\n\n\n\n" } } ] @@ -880,7 +880,7 @@ "bundle": "my-upg-100-list", "scriptUrl": "./my-upg-100-list/my-upg-100-list.js", "output": "dx-maps/my-upg-100-list/my-upg-100-list.js", - "integrity": "sha384-E60bL7+alh5RpblPMN4y0caUtLFlKVzS63PWbT8YE+opy9c+bA6F9THVGgK7nqpX", + "integrity": "sha384-P1+6zrCL40V2bjn49TsQ8/jP1cSCFPtkCGYCi84SMfESxwftVIJAJcbC1Nu8ODGo", "elements": [ "my-upg-100-list-map" ], @@ -903,7 +903,7 @@ "scriptUrl": "./my-upg-100-list/my-upg-100-list.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" } }, { @@ -919,8 +919,8 @@ "scriptUrl": "./my-upg-100-list/my-upg-100-list.js", "embed": { "iframe": "", - "script": "\n\n\n\n\n\n", - "scriptMapbox": "\n\n\n\n\n\n" + "script": "\n\n\n\n\n\n", + "scriptMapbox": "\n\n\n\n\n\n" } }, { @@ -936,8 +936,8 @@ "scriptUrl": "./my-upg-100-list/my-upg-100-list.js", "embed": { "iframe": "", - "script": "\n\n\n\n\n\n", - "scriptMapbox": "\n\n\n\n\n\n" + "script": "\n\n\n\n\n\n", + "scriptMapbox": "\n\n\n\n\n\n" } } ] @@ -946,7 +946,7 @@ "bundle": "people-groups-grid", "scriptUrl": "./people-groups-grid/people-groups-grid.js", "output": "dx-maps/people-groups-grid/people-groups-grid.js", - "integrity": "sha384-hc+/n5HqZ8gYQ1UTrwADtSwUuk14EoIP51j36lml+BaCKA3jsbGJeiuqLrbjxelj", + "integrity": "sha384-1QWhUNF3YqSd47EbeIR3yKl/WZ6lqnsfa0h4cNdilDdYS05iJMlrhtNi8fgWfs8X", "elements": [ "people-groups-grid" ], @@ -965,7 +965,7 @@ "scriptUrl": "./people-groups-grid/people-groups-grid.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" }, "instances": [ { @@ -1010,7 +1010,7 @@ "bundle": "plugin-studio", "scriptUrl": "./plugin-studio/plugin-studio.js", "output": "dx-maps/plugin-studio/plugin-studio.js", - "integrity": "sha384-kGBt3dtJspjQbJfUABkZFSuDmST/LFuzTzflC6QlhF18nkBpMXpVcnGaEgo7uVZV", + "integrity": "sha384-tS2hZUYwpbq3Z5J9WuL0Ic8gfxHFO5fxsHoO2uMhZa7g/cYOpZ6fzXY1Tx9j/QUK", "elements": [ "plugin-studio" ], @@ -1041,7 +1041,7 @@ "scriptUrl": "./plugin-studio/plugin-studio.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" }, "instances": [ { @@ -1126,7 +1126,7 @@ "bundle": "regions-dashboard", "scriptUrl": "./regions-dashboard/regions-dashboard.js", "output": "dx-maps/regions-dashboard/regions-dashboard.js", - "integrity": "sha384-29GGlXaO9SQWX8YxLLbEZ3Wp8lJIrpTdduCGYD4nw1y7sGJgK+fUx8kDNdjotNol", + "integrity": "sha384-5bTIZX+F3J1E9YYDTTuPSDl1Jox4cRexv/GOrWx4ONREc+ufPtW7BfCP6yN1Pi1a", "elements": [ "regions-dashboard" ], @@ -1149,8 +1149,8 @@ "scriptUrl": "./regions-dashboard/regions-dashboard.js", "embed": { "iframe": "", - "script": "\n\n\n\n\n\n", - "scriptMapbox": "\n\n\n\n\n\n" + "script": "\n\n\n\n\n\n", + "scriptMapbox": "\n\n\n\n\n\n" } }, { @@ -1166,7 +1166,7 @@ "scriptUrl": "./regions-dashboard/regions-dashboard.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" } }, { @@ -1182,8 +1182,8 @@ "scriptUrl": "./regions-dashboard/regions-dashboard.js", "embed": { "iframe": "", - "script": "\n\n\n\n\n\n", - "scriptMapbox": "\n\n\n\n\n\n" + "script": "\n\n\n\n\n\n", + "scriptMapbox": "\n\n\n\n\n\n" } } ] diff --git a/public/dx-maps/gospel-resources/charts/index.html b/public/dx-maps/gospel-resources/charts/index.html index 97ba267e5..91c07697a 100644 --- a/public/dx-maps/gospel-resources/charts/index.html +++ b/public/dx-maps/gospel-resources/charts/index.html @@ -61,7 +61,7 @@ - + - + - + - + - + \n\n\n" + "script": "\n\n\n" }, "instances": [ { @@ -110,7 +110,7 @@ "bundle": "cities-internet", "scriptUrl": "./cities-internet/cities-internet.js", "output": "dx-maps/cities-internet/cities-internet.js", - "integrity": "sha384-tNrk0pzqPgc+Wrmt1aPJNMd7GxJG5v6E3bsVybvwuPP7ylCTechRPytao7UXsVtw", + "integrity": "sha384-E5TMzOWni+fQW29tpFo7O80spupsHBHRXL+Ggyse7nZpYIe4sGbgWlRj0NqNvR3G", "elements": [ "cities-internet-map" ], @@ -129,7 +129,7 @@ "scriptUrl": "./cities-internet/cities-internet.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" } }, { @@ -145,8 +145,8 @@ "scriptUrl": "./cities-internet/cities-internet.js", "embed": { "iframe": "", - "script": "\n\n\n\n\n\n", - "scriptMapbox": "\n\n\n\n\n\n" + "script": "\n\n\n\n\n\n", + "scriptMapbox": "\n\n\n\n\n\n" } }, { @@ -162,7 +162,7 @@ "scriptUrl": "./cities-internet/cities-internet.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" } } ] @@ -266,7 +266,7 @@ "bundle": "dashboard-plus-grid", "scriptUrl": "./dashboard-plus-grid/dashboard-plus-grid.js", "output": "dx-maps/dashboard-plus-grid/dashboard-plus-grid.js", - "integrity": "sha384-rvFw5xBM+g8q05USlrDCVt6AeljaunK0mjZqiXtvud8sNiMpRB/HfustwC4hM2rs", + "integrity": "sha384-ARIaqnumXNGEKtV9VV6ht1yuaTZvjNdhZXO7/vVNmIsl1mPTENQWlAsoabtuLtEs", "elements": [ "dashboard-plus-grid" ], @@ -290,8 +290,8 @@ "scriptUrl": "./dashboard-plus-grid/dashboard-plus-grid.js", "embed": { "iframe": "", - "script": "\n\n\n\n\n\n", - "scriptMapbox": "\n\n\n\n\n\n" + "script": "\n\n\n\n\n\n", + "scriptMapbox": "\n\n\n\n\n\n" }, "instances": [ { @@ -361,7 +361,7 @@ "bundle": "doxa-maps-spa", "scriptUrl": "./doxa-maps-spa/doxa-maps-spa.js", "output": "dx-maps/doxa-maps-spa/doxa-maps-spa.js", - "integrity": "sha384-oYB02v1OWlb2erOc10jYt+QZEZl294usemur9EmNAorpr0TO+jqJq7b/C9wPK90X", + "integrity": "sha384-pO1Mvg+IAD0qNekZT6pZ5SkUxHbA+Pe0vioUgXCQEh7uMLrSaZxvO9JLeF0hY2yt", "elements": [ "doxa-maps-spa" ], @@ -389,7 +389,7 @@ "scriptUrl": "./doxa-maps-spa/doxa-maps-spa.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" }, "instances": [ { @@ -782,7 +782,7 @@ "bundle": "gospel-resources", "scriptUrl": "./gospel-resources/gospel-resources.js", "output": "dx-maps/gospel-resources/gospel-resources.js", - "integrity": "sha384-r8nYD8g6OPc68facaxEor28WGGlCyZRHlaugBOAOa5kefiYSknFIam3oOn1PkdzW", + "integrity": "sha384-ZR7OSt5ZaS9Ec2PBgt2jijqce7yz8ZJzfP/YSM8WtaNTV4ftMDGb14A6gnm1f6SV", "elements": [ "gospel-resources-map" ], @@ -805,7 +805,7 @@ "scriptUrl": "./gospel-resources/gospel-resources.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" } }, { @@ -821,7 +821,7 @@ "scriptUrl": "./gospel-resources/gospel-resources.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" } }, { @@ -837,8 +837,8 @@ "scriptUrl": "./gospel-resources/gospel-resources.js", "embed": { "iframe": "", - "script": "\n\n\n\n\n\n", - "scriptMapbox": "\n\n\n\n\n\n" + "script": "\n\n\n\n\n\n", + "scriptMapbox": "\n\n\n\n\n\n" } }, { @@ -854,7 +854,7 @@ "scriptUrl": "./gospel-resources/gospel-resources.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" } }, { @@ -870,8 +870,8 @@ "scriptUrl": "./gospel-resources/gospel-resources.js", "embed": { "iframe": "", - "script": "\n\n\n\n\n\n", - "scriptMapbox": "\n\n\n\n\n\n" + "script": "\n\n\n\n\n\n", + "scriptMapbox": "\n\n\n\n\n\n" } } ] @@ -880,7 +880,7 @@ "bundle": "my-upg-100-list", "scriptUrl": "./my-upg-100-list/my-upg-100-list.js", "output": "dx-maps/my-upg-100-list/my-upg-100-list.js", - "integrity": "sha384-E60bL7+alh5RpblPMN4y0caUtLFlKVzS63PWbT8YE+opy9c+bA6F9THVGgK7nqpX", + "integrity": "sha384-P1+6zrCL40V2bjn49TsQ8/jP1cSCFPtkCGYCi84SMfESxwftVIJAJcbC1Nu8ODGo", "elements": [ "my-upg-100-list-map" ], @@ -903,7 +903,7 @@ "scriptUrl": "./my-upg-100-list/my-upg-100-list.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" } }, { @@ -919,8 +919,8 @@ "scriptUrl": "./my-upg-100-list/my-upg-100-list.js", "embed": { "iframe": "", - "script": "\n\n\n\n\n\n", - "scriptMapbox": "\n\n\n\n\n\n" + "script": "\n\n\n\n\n\n", + "scriptMapbox": "\n\n\n\n\n\n" } }, { @@ -936,8 +936,8 @@ "scriptUrl": "./my-upg-100-list/my-upg-100-list.js", "embed": { "iframe": "", - "script": "\n\n\n\n\n\n", - "scriptMapbox": "\n\n\n\n\n\n" + "script": "\n\n\n\n\n\n", + "scriptMapbox": "\n\n\n\n\n\n" } } ] @@ -946,7 +946,7 @@ "bundle": "people-groups-grid", "scriptUrl": "./people-groups-grid/people-groups-grid.js", "output": "dx-maps/people-groups-grid/people-groups-grid.js", - "integrity": "sha384-hc+/n5HqZ8gYQ1UTrwADtSwUuk14EoIP51j36lml+BaCKA3jsbGJeiuqLrbjxelj", + "integrity": "sha384-1QWhUNF3YqSd47EbeIR3yKl/WZ6lqnsfa0h4cNdilDdYS05iJMlrhtNi8fgWfs8X", "elements": [ "people-groups-grid" ], @@ -965,7 +965,7 @@ "scriptUrl": "./people-groups-grid/people-groups-grid.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" }, "instances": [ { @@ -1010,7 +1010,7 @@ "bundle": "plugin-studio", "scriptUrl": "./plugin-studio/plugin-studio.js", "output": "dx-maps/plugin-studio/plugin-studio.js", - "integrity": "sha384-kGBt3dtJspjQbJfUABkZFSuDmST/LFuzTzflC6QlhF18nkBpMXpVcnGaEgo7uVZV", + "integrity": "sha384-tS2hZUYwpbq3Z5J9WuL0Ic8gfxHFO5fxsHoO2uMhZa7g/cYOpZ6fzXY1Tx9j/QUK", "elements": [ "plugin-studio" ], @@ -1041,7 +1041,7 @@ "scriptUrl": "./plugin-studio/plugin-studio.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" }, "instances": [ { @@ -1126,7 +1126,7 @@ "bundle": "regions-dashboard", "scriptUrl": "./regions-dashboard/regions-dashboard.js", "output": "dx-maps/regions-dashboard/regions-dashboard.js", - "integrity": "sha384-29GGlXaO9SQWX8YxLLbEZ3Wp8lJIrpTdduCGYD4nw1y7sGJgK+fUx8kDNdjotNol", + "integrity": "sha384-5bTIZX+F3J1E9YYDTTuPSDl1Jox4cRexv/GOrWx4ONREc+ufPtW7BfCP6yN1Pi1a", "elements": [ "regions-dashboard" ], @@ -1149,8 +1149,8 @@ "scriptUrl": "./regions-dashboard/regions-dashboard.js", "embed": { "iframe": "", - "script": "\n\n\n\n\n\n", - "scriptMapbox": "\n\n\n\n\n\n" + "script": "\n\n\n\n\n\n", + "scriptMapbox": "\n\n\n\n\n\n" } }, { @@ -1166,7 +1166,7 @@ "scriptUrl": "./regions-dashboard/regions-dashboard.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" } }, { @@ -1182,8 +1182,8 @@ "scriptUrl": "./regions-dashboard/regions-dashboard.js", "embed": { "iframe": "", - "script": "\n\n\n\n\n\n", - "scriptMapbox": "\n\n\n\n\n\n" + "script": "\n\n\n\n\n\n", + "scriptMapbox": "\n\n\n\n\n\n" } } ] diff --git a/public/dx-maps/my-upg-100-list/my-upg-100-list.js b/public/dx-maps/my-upg-100-list/my-upg-100-list.js index 8dbccb7e9..ad1082c7e 100644 --- a/public/dx-maps/my-upg-100-list/my-upg-100-list.js +++ b/public/dx-maps/my-upg-100-list/my-upg-100-list.js @@ -81,7 +81,7 @@ } `,"pin-hint"),(O,U)=>c.value?vs((q(),re("div",{key:0,ref_key:"hintEl",ref:x,class:He(["pin-hint",{dark:s.value}]),role:"status"},[N("span",J_,[U[0]||(U[0]=N("span",{class:"pin-hint-dot","aria-hidden":"true"},null,-1)),zt(" "+pe(l.value)+" ",1),N("button",{class:"pin-hint-x",type:"button","aria-label":t("aria.dismissHint","Dismiss hint"),onClick:F},"×",8,X_)])],2)),[[Ld,u.value&&p.value]]):Pe("",!0)}},ey=".lsn-bar[data-v-9a589f6f]{display:flex;align-items:flex-start;gap:8px;flex:none;margin:0;padding-block:8px;padding-inline:12px 8px;background:#fff8e1;border-block-end:1px solid #f0d68a;color:#4a3b00;font:400 13px/1.4 system-ui,-apple-system,Segoe UI,sans-serif}.lsn-bar__text[data-v-9a589f6f]{flex:1 1 auto;margin:0}.lsn-bar__x[data-v-9a589f6f]{flex:none;min-width:24px;min-height:24px;padding:0;border:0;border-radius:4px;background:transparent;color:inherit;font:600 18px/1 system-ui,sans-serif;cursor:pointer}.lsn-bar__x[data-v-9a589f6f]:focus-visible{outline:2px solid #1a73e8;outline-offset:2px}.lsn-block[data-v-9a589f6f]{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%;min-height:200px;padding:24px;background:#f7f7f5;color:#333;text-align:center;font:400 15px/1.5 system-ui,-apple-system,Segoe UI,sans-serif}.lsn-block__text[data-v-9a589f6f]{max-width:28em;margin:0}",Za=(e,t)=>{const o=e.__vccOpts||e;for(const[a,n]of t)o[a]=n;return o},ty={key:0,class:"lsn-block",role:"status"},oy={class:"lsn-block__text"},ay={key:0},ny={key:1,class:"lsn-bar",role:"note"},ry={class:"lsn-bar__text"},iy=["aria-label","title"],$g=Za({__name:"LargerScreenNotice",props:{mode:{type:String,required:!0},label:{type:String,default:""},locale:{type:String,default:""}},emits:["dismiss"],setup(e){const t=e,o=(i,s)=>Ca(i,t.locale||void 0)||s,a=ee(()=>o("messages.largerScreenNotice","This experimental map is built for larger screens. It opens here, but parts of it may not fit or work well on a phone.")),n=ee(()=>o("messages.noticeDismiss","Dismiss")),r=ee(()=>o("messages.desktopOnlyNotice","{label} only supports desktop — open this page on a desktop to use it.").split("{label}"));return(i,s)=>e.mode==="desktop-only"?(q(),re("div",ty,[N("p",oy,[zt(pe(r.value[0]),1),r.value.length>1?(q(),re("bdi",ay,pe(e.label),1)):Pe("",!0),zt(pe(r.value[1]||""),1)])])):(q(),re("div",ny,[N("p",ry,pe(a.value),1),N("button",{type:"button",class:"lsn-bar__x","aria-label":n.value,title:n.value,onClick:s[0]||(s[0]=l=>i.$emit("dismiss"))},"×",8,iy)]))}},[["styles",[ey]],["__scopeId","data-v-9a589f6f"]]),sy="(max-width: 639.98px)";function ly(e){for(let t=e;t;t=t.parentNode||t.host)if(t.nodeType===1&&t.hasAttribute("data-doxa-gallery"))return!0;return!1}function cy(e){var l;const t=ee(()=>{var u;const c=(u=e.value)==null?void 0:u.mobile;return c==="desktop-only"||c==="larger-screens"?c:null});let o=null;try{o=pb()}catch{o=null}const a=o?ly(o):!1,n=$e(!1);if(typeof window<"u"&&typeof window.matchMedia=="function"){const c=window.matchMedia(sy);n.value=c.matches;const u=d=>{n.value=d.matches};(l=c.addEventListener)==null||l.call(c,"change",u),ro(()=>{var d;return(d=c.removeEventListener)==null?void 0:d.call(c,"change",u)})}const r=ee(()=>{var c;return`dx-maps:larger-screens-dismissed:${((c=e.value)==null?void 0:c.profile)||""}`}),i=$e(!1);ut(r,c=>{try{i.value=sessionStorage.getItem(c)==="1"}catch{i.value=!1}},{immediate:!0});function s(){i.value=!0;try{sessionStorage.setItem(r.value,"1")}catch{}}return{flag:t,blocked:ee(()=>t.value==="desktop-only"&&n.value&&!a),advise:ee(()=>t.value==="larger-screens"&&n.value&&!a&&!i.value),dismiss:s,label:ee(()=>{var c,u;return String(((c=e.value)==null?void 0:c.mobileLabel)||((u=e.value)==null?void 0:u.profile)||"")})}}const uy=!1;let dy=0;const py=qs("ui",{state:()=>({_storeInstanceId:++dy,theme:"light",colorScheme:"default",reducedMotion:!1,highContrast:!1,activeTab:"doxa-regions",sidebarCollapsed:!1,mobileMenuOpen:!1,legendState:"collapsed",_customLegendHeight:null,searchMode:!1,hamburgerMenuOpen:!1,legendMode:"prayer",prayerFilter:null,engagementFilter:null,adoptionFilter:null,religionFilter:null,selectedPeopleGroup:null,breakpoint:"desktop",windowSize:{width:window.innerWidth,height:window.innerHeight},toasts:[],nextToastId:1,toastDuration:5e3,openModals:[],modalData:new Map,isGlobalLoading:!1,globalLoadingMessage:"Loading...",loadingStates:new Map,interactionHistory:[],maxHistoryLength:20,keyboardShortcutsEnabled:!0,screenReaderAnnouncement:"",focusTrapActive:!1,debugMode:!1,showPerformanceOverlay:!1}),getters:{isDarkTheme:e=>!1,isMobile:e=>e.breakpoint==="mobile",isTablet:e=>e.breakpoint==="tablet",isDesktop:e=>e.breakpoint==="desktop"||e.breakpoint==="wide",legendHeight:e=>e._customLegendHeight?e._customLegendHeight:e.legendState==="collapsed"?"48px":e.legendState==="open"?"30%":e.legendState==="fullyOpen"?"calc(100% - 80px)":"48px",caretRotation:e=>e.legendState==="collapsed"?0:90,showPullTab:e=>e.legendState==="open"||e.legendState==="fullyOpen",getToastsByType:e=>t=>e.toasts.filter(o=>o.type===t),hasOpenModal:e=>e.openModals.length>0,topModal:e=>e.openModals.length===0?null:e.openModals[e.openModals.length-1],isModalOpen:e=>t=>e.openModals.includes(t),isAnyLoading:e=>e.isGlobalLoading||e.loadingStates.size>0,isLoading:e=>t=>e.loadingStates.get(t)||!1},actions:{setTheme(e){if(!["light","dark","auto"].includes(e))return;e="light",this.theme=e;const o=this.isDarkTheme;document.documentElement.setAttribute("data-theme",o?"dark":"light");try{localStorage.setItem("theme",e)}catch{}},toggleTheme(){const e=this.theme==="light"?"dark":"light";this.setTheme(e)},setColorScheme(e){this.colorScheme=e,document.documentElement.setAttribute("data-color-scheme",e)},toggleReducedMotion(){this.reducedMotion=!this.reducedMotion,document.documentElement.setAttribute("data-reduced-motion",this.reducedMotion)},toggleHighContrast(){this.highContrast=!this.highContrast,document.documentElement.setAttribute("data-high-contrast",this.highContrast)},setActiveTab(e){this.activeTab=e,this.addToHistory({type:"tab-change",tabId:e,timestamp:Date.now()})},toggleSidebar(){this.sidebarCollapsed=!this.sidebarCollapsed},openMobileMenu(){this.mobileMenuOpen=!0},closeMobileMenu(){this.mobileMenuOpen=!1},setLegendMode(e){["prayer","detail"].includes(e)&&(this.legendMode=e)},setPrayerFilter(e){[null,"noPrayer","hasPrayer","fullPrayer"].includes(e)&&(this.prayerFilter=e)},setEngagementFilter(e){[null,"notEngaged","hasEngagement"].includes(e)&&(this.engagementFilter=e)},setAdoptionFilter(e){[null,"notAdopted","hasAdoption"].includes(e)&&(this.adoptionFilter=e)},setReligionFilter(e){[null,"C","M","H","B","E","J","S","N","O","U"].includes(e)&&(this.religionFilter=e)},selectPeopleGroup(e){const t=e&&!this.selectedPeopleGroup;this.selectedPeopleGroup=e,e?(t&&(this._legendStateBeforeDetail=this.legendState),this.legendState="open",this._customLegendHeight=null,this.setLegendMode("detail")):(this._legendStateBeforeDetail&&(this.legendState=this._legendStateBeforeDetail),this._legendStateBeforeDetail=null,this._customLegendHeight=null,this.setLegendMode("prayer"))},setLegendState(e){["collapsed","open","fullyOpen"].includes(e)&&(this.legendState=e)},toggleSearchMode(){this.searchMode=!this.searchMode},setSearchMode(e){this.searchMode=e},toggleHamburgerMenu(){this.hamburgerMenuOpen=!this.hamburgerMenuOpen},updateBreakpoint(e){let t;e<768?t="mobile":e<1024?t="tablet":e<1920?t="desktop":t="wide",t!==this.breakpoint&&(this.breakpoint=t)},updateWindowSize(e,t){this.windowSize.width=e,this.windowSize.height=t,this.updateBreakpoint(e)},showToast(e){const{message:t,type:o="info",duration:a=this.toastDuration,action:n=null,persistent:r=!1}=e,i={id:this.nextToastId++,message:t,type:o,duration:a,action:n,persistent:r,createdAt:Date.now()};return this.toasts.push(i),!r&&a>0&&setTimeout(()=>{this.removeToast(i.id)},a),i.id},showSuccess(e,t={}){return this.showToast({message:e,type:"success",...t})},showError(e,t={}){return this.showToast({message:e,type:"error",duration:7e3,...t})},showWarning(e,t={}){return this.showToast({message:e,type:"warning",...t})},showInfo(e,t={}){return this.showToast({message:e,type:"info",...t})},removeToast(e){const t=this.toasts.findIndex(o=>o.id===e);t!==-1&&this.toasts.splice(t,1)},clearAllToasts(){this.toasts=[]},openModal(e,t={}){this.openModals.includes(e)||(this.openModals.push(e),this.modalData.set(e,t),this.focusTrapActive=!0)},closeModal(e=null){if(e){const t=this.openModals.indexOf(e);t!==-1&&(this.openModals.splice(t,1),this.modalData.delete(e))}else{const t=this.openModals.pop();t&&this.modalData.delete(t)}this.openModals.length===0&&(this.focusTrapActive=!1)},closeAllModals(){this.openModals=[],this.modalData.clear(),this.focusTrapActive=!1},getModalData(e){return this.modalData.get(e)},showGlobalLoading(e="Loading..."){this.isGlobalLoading=!0,this.globalLoadingMessage=e},hideGlobalLoading(){this.isGlobalLoading=!1},setLoading(e,t=!0){t?this.loadingStates.set(e,!0):this.loadingStates.delete(e)},addToHistory(e){this.interactionHistory.push(e),this.interactionHistory.length>this.maxHistoryLength&&this.interactionHistory.shift()},clearHistory(){this.interactionHistory=[]},announce(e,t="polite"){this.screenReaderAnnouncement=e,setTimeout(()=>{this.screenReaderAnnouncement===e&&(this.screenReaderAnnouncement="")},1e3)},toggleKeyboardShortcuts(){this.keyboardShortcutsEnabled=!this.keyboardShortcutsEnabled},toggleDebugMode(){this.debugMode=!this.debugMode},togglePerformanceOverlay(){this.showPerformanceOverlay=!this.showPerformanceOverlay},toggleLegend(){this.legendState==="fullyOpen"?this.legendState="open":this.legendState==="open"?this.legendState="collapsed":this.legendState="open",this._customLegendHeight=null},openLegend(){this.legendState="open",this._customLegendHeight=null},fullyOpenLegend(){this.legendState="fullyOpen",this._customLegendHeight=null},collapseLegend(){this.legendState="collapsed",this._customLegendHeight=null},setLegendHeight(e){this._customLegendHeight=e},handleLegendItemClick(){this.legendState==="fullyOpen"&&(this.legendState="open")},enableSearchMode(){this.searchMode=!0},disableSearchMode(){this.searchMode=!1},toggleHamburgerMenu(){this.hamburgerMenuOpen=!this.hamburgerMenuOpen},openHamburgerMenu(){this.hamburgerMenuOpen=!0},closeHamburgerMenu(){this.hamburgerMenuOpen=!1},init(){let e=null;try{e=localStorage.getItem("theme")}catch{}e&&this.setTheme(e),new ResizeObserver(o=>{for(const a of o)this.updateWindowSize(a.contentRect.width,a.contentRect.height)}).observe(document.documentElement),window.matchMedia&&(window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",o=>{this.theme==="auto"&&document.documentElement.setAttribute("data-theme",o.matches?"dark":"light")}),window.matchMedia("(prefers-reduced-motion: reduce)").addEventListener("change",o=>{this.reducedMotion=o.matches,document.documentElement.setAttribute("data-reduced-motion",o.matches)}))}}}),gy=qs("map",{state:()=>({maps:{},activeMapId:null,selectedRegion:null,selectedFamily:null,selectedAffinityBlock:null,selectedLanguage:null,selectedDialect:null,activeLegendTab:"family",selectedResource:null,selectedPeopleGroup:null,selectedPinIds:[],globalFilters:{},searchQuery:"",autoFly:{isActive:!1,speed:1,interval:5e3,currentIndex:0,items:[],timerId:null},guidedTour:{isActive:!1,currentStep:0,steps:[]},showClusters:!1,clusterMode:"region",clusteringMode:"off",clusterPinOpacity:.6,clusterFilterProperty:null,clusterFilterValue:null,flySpeed:"normal",fullscreenMapId:null,preferences:{theme:"light",defaultMapStyle:"streets",enableAnimations:!0,autoSavePreferences:!0}}),getters:{getMapById:e=>t=>e.maps[t],activeMap:e=>e.activeMapId?e.maps[e.activeMapId]:null,hasMap:e=>t=>t in e.maps,allMapIds:e=>Object.keys(e.maps),hasSelection:e=>!!(e.selectedRegion||e.selectedFamily||e.selectedAffinityBlock||e.selectedPeopleGroup),isAutoFlying:e=>e.autoFly.isActive,isGuidedTourActive:e=>e.guidedTour.isActive,isMapFullscreen:e=>t=>e.fullscreenMapId===t},actions:{registerMap(e,t,o={}){let a=1.5;o.zoom!==void 0?a=o.zoom:t&&typeof t.getZoom=="function"&&(a=t.getZoom());let n=[0,0];if(o.center)n=o.center;else if(t&&typeof t.getCenter=="function"){const r=t.getCenter();r&&(n=[r.lng,r.lat])}this.maps[e]={instance:t,config:o,isReady:!1,zoom:a,center:n,registeredAt:Date.now()},this.activeMapId||(this.activeMapId=e)},setMapReady(e){const t=this.maps[e];t&&(t.isReady=!0)},updateMapState(e,t){const o=this.maps[e];o&&Object.assign(o,t)},unregisterMap(e){if(delete this.maps[e],this.activeMapId===e){const t=this.allMapIds;this.activeMapId=t.length>0?t[0]:null}},setActiveMap(e){e in this.maps&&(this.activeMapId=e)},selectRegion(e){this.selectedFamily=null,this.selectedAffinityBlock=null,this.selectedPeopleGroup=null,this.selectedRegion=e},selectFamily(e){this.selectedRegion=null,this.selectedAffinityBlock=null,this.selectedPeopleGroup=null,this.selectedLanguage=null,this.selectedDialect=null,this.selectedFamily=e},setActiveLegendTab(e){this.activeLegendTab=e},selectLanguage(e){this.selectedRegion=null,this.selectedAffinityBlock=null,this.selectedPeopleGroup=null,this.selectedFamily=null,this.selectedDialect=null,this.selectedLanguage=e},selectDialect(e){this.selectedRegion=null,this.selectedFamily=null,this.selectedLanguage=null,this.selectedAffinityBlock=null,this.selectedPeopleGroup=null,this.selectedDialect=e},selectAffinityBlock(e){this.selectedRegion=null,this.selectedFamily=null,this.selectedPeopleGroup=null,this.selectedAffinityBlock=e},selectPeopleGroup(e){this.selectedPeopleGroup=e},selectResource(e){this.selectedRegion=null,this.selectedFamily=null,this.selectedAffinityBlock=null,this.selectedPeopleGroup=null,this.selectedResource===e?this.selectedResource=null:this.selectedResource=e},clearSelections(){this.selectedRegion=null,this.selectedFamily=null,this.selectedLanguage=null,this.selectedDialect=null,this.selectedAffinityBlock=null,this.selectedResource=null,this.selectedPeopleGroup=null,this.selectedPinIds=[],this.showClusters=!1,this.clusterMode="region"},setSelectedPinIds(e){this.selectedPinIds=e||[]},setFilter(e,t){this.globalFilters[e]=t},removeFilter(e){delete this.globalFilters[e]},clearFilters(){this.globalFilters={},this.searchQuery=""},setSearchQuery(e){this.searchQuery=e},startAutoFly(e,t=1){this.stopAutoFly(),this.autoFly.isActive=!0,this.autoFly.speed=t,this.autoFly.items=e,this.autoFly.currentIndex=0},stopAutoFly(){this.autoFly.timerId&&(clearInterval(this.autoFly.timerId),this.autoFly.timerId=null),this.autoFly.isActive=!1,this.autoFly.currentIndex=0},setAutoFlySpeed(e){this.autoFly.speed=Math.max(.5,Math.min(2,e))},nextAutoFlyItem(){if(!this.autoFly.isActive||this.autoFly.items.length===0)return;this.autoFly.currentIndex=(this.autoFly.currentIndex+1)%this.autoFly.items.length;const e=this.autoFly.items[this.autoFly.currentIndex];e.type==="region"?this.selectRegion(e):e.type==="family"&&this.selectFamily(e)},toggleClusters(e){typeof e=="boolean"?this.showClusters=e:this.showClusters=!this.showClusters},setClusterMode(e){["region","language-family","affinity-block","mst","resource"].includes(e)&&(this.clusterMode=e)},setClusteringMode(e){["off","mapbox","mst","network"].includes(e)&&(this.clusteringMode=e,this.showClusters=e!=="off")},setClusterFilter(e,t){this.clusterFilterProperty=e||null,this.clusterFilterValue=t||null},clearClusterFilter(){this.clusterFilterProperty=null,this.clusterFilterValue=null},setFlySpeed(e){["slow","normal","fast"].includes(e)&&(this.flySpeed=e)},setSelectedFamily(e){this.selectFamily(e)},clearSelectedFamily(){this.selectFamily(null)},setSelectedRegion(e){this.selectRegion(e)},clearSelectedRegion(){this.selectRegion(null)},clearSelectedResource(){this.selectResource(null)},clearSelectedLanguage(){this.selectLanguage(null)},clearSelectedDialect(){this.selectDialect(null)},toggleFullscreen(e){this.fullscreenMapId===e?this.fullscreenMapId=null:this.fullscreenMapId=e},loadPreferences(){try{const e=localStorage.getItem("mapUserPreferences");if(e){const t=JSON.parse(e);this.preferences={...this.preferences,...t}}}catch(e){console.error("[mapStore] Failed to load preferences:",e)}},savePreferences(){try{localStorage.setItem("mapUserPreferences",JSON.stringify(this.preferences))}catch(e){console.error("[mapStore] Failed to save preferences:",e)}},setPreference(e,t){this.preferences[e]=t,this.preferences.autoSavePreferences&&this.savePreferences()}}}),hy=qs("data",{state:()=>({sources:{},loadingStates:{}}),actions:{async load(e,t){if(!this.sources[e]){this.loadingStates[e]={isLoading:!0,error:null};try{const o=await t();this.sources[e]=za({features:o,timestamp:Date.now()}),this.loadingStates[e]={isLoading:!1,error:null}}catch(o){console.error(`[dataStore] Failed to load source "${e}":`,o),this.loadingStates[e]={isLoading:!1,error:o}}}},clearSource(e){delete this.sources[e],delete this.loadingStates[e]},cacheSourceData(e,t){this.sources[e]=za({features:t.normalizedData||[],timestamp:t.timestamp||Date.now()})},hasSourceData(e){return!!this.sources[e]},getSourceData(e){return this.sources[e]?{normalizedData:this.sources[e].features}:null}},getters:{getData:e=>t=>{var o;return((o=e.sources[t])==null?void 0:o.features)??null},isLoading:e=>t=>{var o;return((o=e.loadingStates[t])==null?void 0:o.isLoading)??!1},getError:e=>t=>{var o;return((o=e.loadingStates[t])==null?void 0:o.error)??null}}}),hr={_meta:{_comment:"Single source of truth for data-source connections across all doxa-maps bundles.",_comment_token:"Mapbox access token is fetched at runtime from window.MAP_TOKEN_URL (same modular pattern as window.MAP_APP_API_URL). Not hardcoded to any host — set mapboxTokenUrl below or override window.MAP_TOKEN_URL on the host page.",mapboxTokenUrl:"window.MAP_TOKEN_URL"},activeSource:"pray-tools",sources:{"pray-tools":{id:"pray-tools",name:"Prayer.Tools API",type:"rest-api",description:"pray.doxa.life live API — people-group prayer, engagement, and adoption data. Base URL read from window.MAP_APP_API_URL or VITE_API_BASE_URL at runtime.",endpoints:{bulk:"/api/people-groups/list",detail:"/api/people-groups/detail/{slug}",statistics:"/api/people-groups/statistics"},queryParams:{lang:"en"},defaultFields:["slug","name","latitude","longitude","wagf_region","wagf_block","wagf_member","rop1","imb_reg_of_people_2","imb_reg_of_people_25","imb_reg_of_people_3","country_code","religion","population","has_photo","image_url","people_praying","people_committed","adopted_by_churches","engagement_status","imb_gsec","primary_language","imb_language_family","imb_language_class","imb_language_speakers"],pollFields:["slug","people_praying"],pollInterval:3e5,fallbackSourceId:null,fieldMappings:{uniqueId:"slug",slug:"slug",name:"name",latitude:"latitude",longitude:"longitude",wagfRegion:"wagf_region",doxaRegion:"wagf_region",wagfBlock:"wagf_block",wagfMember:"wagf_member",affinityBlock:"rop1",countryIso:"country_code",religion:"religion",religionCode:"religion",population:"population",hasPhoto:"has_photo",imageUrl:"image_url",photoUrl:"image_url",peoplePraying:"people_praying",peopleCommitted:"people_committed",engagementStatus:"engagement_status",adoptionStatus:"adopted_by_churches",language:"primary_language",cluster:"imb_reg_of_people_2",peopleGroup:"imb_reg_of_people_25",peopleGroupCountry:"imb_reg_of_people_3",languageFamily:"imb_language_family",languageClass:"imb_language_class",languageSpeakers:"imb_language_speakers"},imageConfig:{useField:"imageUrl",fallbackField:null,fallbackUrlTemplate:null,placeholderUrl:"https://www.peoplegroups.org/images/pgphotosearch/NoImageAvailable_search.jpg",useSvgPlaceholder:!0}},"doxa-csv":{id:"doxa-csv",name:"DOXA People Groups CSV",type:"csv",path:"assets/data/Joshua-project-ids-Doxa-1439.csv",description:"People groups dataset from DOXA / Joshua Project",fieldMappings:{uniqueId:"ROP3",peopleGroupId:"ROP3",countryCode:"ROG",peopleId3:"PeopleID3",name:"Name",displayName:"NmDisp",alternateName:"NmAlt",description:"PeopleDesc",locationDescription:"LocationDe",country:"Ctry",countryIso:"ISOalpha3",region:"Regn",subRegion:"RegnSub",wagfRegion:"WAGF Region",doxaRegion:"WAGF Region",wagfBlock:"WAGF BLOCK",affinityBloc:"Affbloc",affinityBlock:"ROP1",affinityCode:"AffCd",affinityName:"Aff",peopleCluster:"PplClstr",ethneName:"Ethne",latitude:"Latitude",longitude:"Longitude",population:"Pop",populationClass:"PopCls",status:"Status",engagementStatus:"EngStat",evangelicalLevel:"EvngLvl",gsec:"GSEC",gsecBrief:"GSECbrf",gsecLong:"GSEClng",spiScore:"SPI",spiDescription:"SPIdesc",language:"Lang",languageCode:"ROL",languageFamily:"LangFamily",religion:"Rlgn",religionCode:"ROR",religionDescription:"RORdesc",religionBase:"RlgnBs",religionDiv:"RlgnDiv",bible:"Bible",jesusFilm:"Jesus",radio:"Radio",gospel:"Gospel",audio:"Audio",stories:"Stories",resourcesTotal:"ResTot",bibleLevel:"LvlBible",yearPublished:"YrPub",photoCredit:"PicCrdt",photoUrl:"PicURL",hasPhoto:"Photo",isIndigenous:"Indigenous"},imageConfig:{useField:"photoUrl",fallbackField:"peopleId3",fallbackUrlTemplate:"https://joshuaproject.net/assets/media/profiles/photos/p{peopleId3}.jpg",placeholderUrl:"https://www.peoplegroups.org/images/pgphotosearch/NoImageAvailable_search.jpg"}}},systemFields:{uniqueId:{description:"Unique identifier per row (slug for API, ROP3+ROG for CSV)",required:!0},peopleGroupId:{description:"People group ID — same group can appear in multiple countries",required:!0},name:{description:"People group display name",required:!0},latitude:{description:"Latitude coordinate for map pin",required:!0},longitude:{description:"Longitude coordinate for map pin",required:!0},engagementStatus:{description:"Boolean — true if engaged_status = 'engaged'",required:!1},adoptionStatus:{description:"Boolean — true if adopted_by_churches > 0",required:!1},peoplePraying:{description:"Number of people currently praying for this group — from pray-tools API",required:!1},peopleCommitted:{description:"Raw count of committed workers for this group — source of engagementStatus",required:!1},languageFamily:{description:"Language family name",required:!1},religion:{description:"Primary religion",required:!1},population:{description:"Population count",required:!1},doxaRegion:{description:"WAGF/DOXA region name",required:!1},photoUrl:{description:"URL to people group photo",required:!1},description:{description:"People group description text",required:!1}}},fy=".profile-loader[data-locale-pending][data-v-ceea9a56] .stl-tabs,.profile-loader[data-locale-pending][data-v-ceea9a56] .stl-title,.profile-loader[data-locale-pending][data-v-ceea9a56] .stl-rows,.profile-loader[data-locale-pending][data-v-ceea9a56] .legend-title,.profile-loader[data-locale-pending][data-v-ceea9a56] .legend-content,.profile-loader[data-locale-pending][data-v-ceea9a56] .legend-reopen-label,.profile-loader[data-locale-pending][data-v-ceea9a56] .lt-btn-text,.profile-loader[data-locale-pending][data-v-ceea9a56] .rd-topbar,.profile-loader[data-locale-pending][data-v-ceea9a56] .rd-exportbar{visibility:hidden}.profile-loader[data-v-ceea9a56]{border-radius:var(--map-radius-corners, var(--map-radius, 0px));width:100%;height:100%;min-height:var(--profile-min-h, 100dvh);position:relative}.profile-loader.has-screen-notice[data-v-ceea9a56]{display:flex;flex-direction:column}.profile-loader.has-screen-notice[data-v-ceea9a56]>:not(.lsn-bar){flex:1 1 auto;min-height:0;position:relative!important;inset:auto!important}.profile-error[data-v-ceea9a56]{padding:1rem;background:#fff3cd;border:1px solid #ffc107;border-radius:4px;font-family:monospace;font-size:13px}",my=["dir","data-locale-pending"],by={key:0,class:"profile-error"},$y={key:1,class:"profile-error"},_y=Za({__name:"ProfileLoader",props:{profileConfig:{type:String,default:""}},setup(e){var F;const o=e,a=Qe("profileConfig",null),n=ee(()=>{var se;if(!o.profileConfig)return null;let P;try{P=JSON.parse(o.profileConfig)}catch{return console.error("[ProfileLoader] Invalid profile-config JSON:",o.profileConfig),null}if(P&&P.assetsBase===void 0){const J=(se=a==null?void 0:a.value)==null?void 0:se.assetsBase;typeof J=="string"&&J&&(P.assetsBase=J)}return P}),r=Qe("profileModules",null);if(!r)throw new Error('[ProfileLoader] No profileModules provided. Bundle entry must `app.provide("profileModules", import.meta.glob("./*.vue"))`');const i=(()=>{const P=Object.keys(r||{});if(P.length!==1)return null;const se=P[0].match(/^\.\/(.+)\.vue$/);return se?se[1]:null})(),s=ee(()=>{var P;return((P=n.value)==null?void 0:P.profile)||i||null}),l=Tb(),c=ee(()=>{var se;const P=(se=n.value)==null?void 0:se.tk;return typeof P=="string"&&P?P:l.value||""});ut(()=>{var P;return(P=n.value)==null?void 0:P.tk},P=>{typeof P=="string"&&P&&Js(P)},{immediate:!0}),ut(()=>{var P;return(P=n.value)==null?void 0:P.tokenUrl},P=>{var se;P&&!((se=n.value)!=null&&se.tk)&&!l.value&&Eb(P)},{immediate:!0});const u=ee(()=>{var P;return((P=n.value)==null?void 0:P.dataSource)||hr.activeSource}),d=ee(()=>{var P;return((P=n.value)==null?void 0:P.colorSet)||"default"}),p=ee(()=>!1),y=ee(()=>{var P;return((P=n.value)==null?void 0:P.pinHint)!==!1}),v=ee(()=>{var se,J;const P=(((se=n.value)==null?void 0:se.locale)||((J=n.value)==null?void 0:J.lang)||dg()||"").split("-")[0].toLowerCase();return ur.includes(P)?P:""}),$=Qe("appI18n",null);Mu(()=>{v.value&&($&&($.global.locale.value=v.value),gg(v.value),$l($,v.value).catch(()=>{}))});const f=ee(()=>{var P,se;return v.value||((se=(P=$==null?void 0:$.global)==null?void 0:P.locale)==null?void 0:se.value)||"en"}),_=ee(()=>Li.has(f.value)?"rtl":"ltr"),{blocked:x,advise:w,dismiss:g,label:b}=cy(n),k=$e(!1);Mu(P=>{const se=f.value;if(!Li.has(se)){k.value=!1;return}let J=!0;P(()=>{J=!1}),k.value=!0,j_(se).finally(()=>{J&&(k.value=!1)})});const L=ee(()=>{var P;return((P=n.value)==null?void 0:P.instanceId)||"doxa-map-"+Math.random().toString(36).slice(2,9)}),S=ee(()=>{if(!s.value)return null;const P=`./${s.value}.vue`;return r[P]?bg(r[P]):(console.error(`[ProfileLoader] Profile not found: "${s.value}". Available:`,Object.keys(r)),null)});eo("mapboxToken",c),eo("dataSource",u),eo("colorSet",d),eo("profileConfig",n),eo("instanceId",L),eo("lang",f);const C=py(),Y=gy(),Z=hy();try{const P=typeof localStorage<"u"?localStorage.getItem("theme"):null;P&&((F=C.setTheme)==null||F.call(C,P))}catch{}return eo("uiStore",C),eo("mapStore",Y),eo("dataStore",Z),(P,se)=>(q(),re("div",{class:He(["profile-loader",{"has-screen-notice":de(w)}]),dir:_.value,"data-locale-pending":k.value?"":null},[n.value?S.value?de(x)?(q(),xt($g,{key:2,mode:"desktop-only",label:de(b),locale:f.value},null,8,["label","locale"])):(q(),re(Ye,{key:3},[de(w)?(q(),xt($g,{key:0,mode:"larger-screens",locale:f.value,onDismiss:de(g)},null,8,["locale","onDismiss"])):Pe("",!0),(q(),xt(Ls(S.value)))],64)):(q(),re("div",$y,[N("p",null,[se[1]||(se[1]=zt("⚠️ Profile ",-1)),N("strong",null,'"'+pe(s.value)+'"',1),se[2]||(se[2]=zt(" not found.",-1))])])):(q(),re("div",by,[...se[0]||(se[0]=[N("p",null,[zt("⚠️ "),N("strong",null,"doxa-map"),zt(": missing or invalid "),N("code",null,"profile-config"),zt(" prop.")],-1),N("p",null,[zt("Example: "),N("code",null,`profile-config='{"profile":"example-map","tk":"pk.eyJ..."}'`)],-1)])])),S.value&&p.value?(q(),xt(Ls(de(null)),{key:4})):Pe("",!0),S.value&&y.value?(q(),xt(Q_,{key:5})):Pe("",!0)],10,my))}},[["styles",[fy]],["__scopeId","data-v-ceea9a56"]]);function _g(e,t,o){var n;const a=(n=e==null?void 0:e._context)==null?void 0:n.provides;if(a&&t in a){a[t]=o;return}e.provide(t,o)}function yy(e,t){var n;const o=(n=e==null?void 0:e._context)==null?void 0:n.provides,a=o?Object.getPrototypeOf(o):null;a&&Object.setPrototypeOf(o,null);try{return t()}finally{a&&Object.setPrototypeOf(o,a)}}function vy({profileModules:e={},configureApp:t=null}={}){return ub(_y,{configureApp(o){const a=kb();yy(o,()=>o.use(a));const n=B_();o.use(n),_g(o,"appI18n",n),_g(o,"profileModules",e),t&&t(o,{pinia:a,i18n:n})}})}const ky=Object.assign({"./poster-wall.vue":()=>wt(()=>Promise.resolve().then(()=>J1),void 0),"./upg-100-list.vue":()=>wt(()=>Promise.resolve().then(()=>QP),void 0),"./upg-100-mfe.vue":()=>wt(()=>Promise.resolve().then(()=>ES),void 0)});function wy(){return vy({profileModules:ky,configureApp:(e,{pinia:t,i18n:o})=>{}})}const xy=wy();typeof customElements<"u"&&(customElements.get("my-upg-100-list-map")||customElements.define("my-upg-100-list-map",xy));const vl={default:"doxa",lists:[{id:"doxa",aliases:["2000","project-2000"],label:"Project 2000: DOXA's people groups",definition:"The people groups DOXA serves, as its live list gives them",source:"doxa",filter:null},{id:"unreached",aliases:["7000","project-7000"],label:"Project 7000: unreached people groups",definition:"IMB Lostness Priority 0-2 (Frontier, Pioneer or Expanding Unreached: under 2% evangelical)",source:"imb",filter:{lostness:[0,1,2]}},{id:"frontier",aliases:["4700","project-4700"],label:"Project 4700: frontier people groups",definition:"IMB Lostness Priority 0 (Frontier Unreached: 0.1% evangelical or less)",source:"imb",filter:{lostness:[0]}},{id:"frontier-500k",aliases:["700","project-700"],label:"Project 700: frontier people groups of 500,000 or more",definition:"IMB Lostness Priority 0 and Population of at least 500,000",source:"imb",filter:{lostness:[0],minPopulation:5e5}},{id:"unengaged",aliases:[],label:"Unengaged unreached people groups",definition:"IMB Lostness Priority 0-2 and Engagement Status Unengaged",source:"imb",filter:{lostness:[0,1,2],engagement:["Unengaged"]}}]},Py=nn&&nn.tagName.toUpperCase()==="SCRIPT"&&nn.src||new URL("my-upg-100-list.js",document.baseURI).href,Ta=e=>String(e||"").trim().replace(/\/+$/,"");function kl(){try{const t=String(Py||"").split(/[?#]/)[0].match(/^(.*)\/([^/]+)\/([^/]+)\.js$/);return!t||t[2]!==t[3]?null:t[1]||null}catch{return null}}function Sy(e){const t=e==null?void 0:e.embedBaseUrl;if(typeof t=="string"&&t.trim())return Ta(t);if(typeof window<"u"){const o=window.MAP_EMBED_BASE_URL;if(typeof o=="string"&&o.trim())return Ta(o)}return Ta(kl()||"")}function pa(e){const t=e==null?void 0:e.assetsBase;if(typeof t=="string"&&t.trim()){const a=Ta(t);if(/^https?:\/\//i.test(a)||a.startsWith("/"))return a}const o=Ta((e==null?void 0:e.treeBase)||"")||Ta(kl()||"");if(o)try{const a=typeof document<"u"?document.baseURI:void 0;return Ta(new URL(o+"/assets",a).href)}catch{return Ta(o+"/assets")}return"./assets"}function Ay({shareUrl:e,embedPath:t,profileConfig:o}={}){const a=o||null,n=typeof window<"u",r=e||(a==null?void 0:a.shareUrl);if(typeof r=="string"&&r.trim())return r.trim();const i=String(t||(a==null?void 0:a.shareEmbedPath)||"").trim();if(i){if(/^https?:\/\//i.test(i))return i;if(i.startsWith("/"))return n?window.location.origin+i:i;const s=Sy(a),l=i.replace(/^\.\//,"");if(s)return s+"/"+l;if(typeof document<"u")try{return new URL(l,document.baseURI).href}catch{}return l}return n?window.location.origin+window.location.pathname:""}const fr=vl.default,wl=new Map;for(const e of vl.lists){wl.set(e.id,e);for(const t of e.aliases||[])wl.set(String(t).toLowerCase(),e)}function yg(e){return wl.get(String(e??"").toLowerCase().trim())||null}function vg(e){let t=e;if(t&&typeof t=="object"&&"value"in t&&!("list"in t)&&!("profile"in t)&&(t=t.value),typeof t=="string")try{t=JSON.parse(t)}catch{t=null}return t&&typeof t=="object"?t:null}const kg=new Set;function wn(e){const t=vg(e),o=t==null?void 0:t.list,a=typeof location<"u"?new URLSearchParams(location.search).get("list"):null,n=typeof window<"u"?window.MAP_LIST:void 0,r=o||a||n||fr,i=yg(r);return i?i.id:(kg.has(r)||(kg.add(r),console.warn(`[list] unknown people-group list "${r}", showing "${fr}". Known: ${vl.lists.map(s=>s.id).join(", ")}`)),fr)}const Ti=new Map;function Ly(e,t){const o=`${pa(vg(t))}/people-groups/lists/${e}.json`;return Ti.has(o)||Ti.set(o,mi(o).then(a=>{if(!a.ok)throw new Error(`HTTP ${a.status}`);return a.json()}).then(a=>new Set(Array.isArray(a==null?void 0:a.slugs)?a.slugs:[])).catch(a=>{throw Ti.delete(o),new Error(`list "${e}" membership ${o}: ${a.message}`)})),Ti.get(o)}async function Ei(e,t,{key:o=a=>a==null?void 0:a.slug}={}){const a=wn(t);if(a===fr||!Array.isArray(e))return e;try{const n=await Ly(a,t);return e.filter(r=>n.has(o(r)))}catch(n){return console.error(`[list] ${n.message}. Showing no people groups rather than the wrong list.`),[]}}const Cy='class="stage"';async function Ty(e){const t=new Uint8Array(await e.slice(0,12).arrayBuffer()),o=(a,n)=>String.fromCharCode(...t.slice(a,n));return o(0,4)==="RIFF"&&o(8,12)==="WEBP"||t[0]===137&&o(1,4)==="PNG"||t[0]===255&&t[1]===216&&t[2]===255}async function wg(e,t=fetch){let o;try{o=await t(e)}catch{return null}if(!o||!o.ok)return null;const a=(o.headers.get("content-type")||"").toLowerCase();if(a.startsWith("text/"))return null;const n=await o.blob();return a.startsWith("image/")||await Ty(n)?n:null}async function xg(e,t=fetch){const o=await t(e);if(!o.ok)return{html:null,status:o.status};const a=await o.text();return a.includes(Cy)?{html:a,status:o.status}:{html:null,status:404}}function xn(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 a=o.contentDocument;if(!a)return o.remove(),null;a.open(),a.write(e),t&&a.write(' - + - + - + - + - + - +