/* empty css *//* empty css */import"../../../theme-DXAi27ON.js";const e=window.BOOMCAST_I18N||{},u=document.getElementById("event-map"),f=u.dataset.h3Resolution,n=L.map(u,{zoomControl:!1,scrollWheelZoom:!1}).setView([52.1326,5.2913],7);L.control.zoom({position:"bottomleft"}).addTo(n);const m=L.control({position:"topright"});m.onAdd=()=>{const o=L.DomUtil.create("div","map-compass");return o.setAttribute("role","img"),o.setAttribute("aria-label",e.mapCompass||"Map compass: north is up"),o.innerHTML='NESW↑',L.DomEvent.disableClickPropagation(o),o};m.addTo(n);L.tileLayer("https://{s}.tile.openstreetmap.de/{z}/{x}/{y}.png",{maxZoom:18,attribution:"© OpenStreetMap contributors"}).addTo(n);const M=JSON.parse(document.getElementById("h3-cells-data").textContent),y=JSON.parse(document.getElementById("map-events-data").textContent),d=L.latLngBounds([]);M.forEach(o=>{const s=o.manual_reports>0,c=o.sensor_reports>0,t=s&&c?"#a78bfa":c?"#22d3ee":"#f59e0b";L.polygon(o.boundary,{color:t,weight:2,fillColor:t,fillOpacity:.25}).addTo(n).bindPopup('H3 '+o.cell+'"),d.extend(L.latLngBounds(o.boundary))});function v(o){return["N","NE","E","SE","S","SW","W","NW"][Math.floor((o+22.5)%360/45)]}function b(o,s,c){const a=s*Math.PI/180,r=o[0]*Math.PI/180,h=o[1]*Math.PI/180,i=c/6378137,l=Math.asin(Math.sin(r)*Math.cos(i)+Math.cos(r)*Math.sin(i)*Math.cos(a)),g=h+Math.atan2(Math.sin(a)*Math.sin(i)*Math.cos(r),Math.cos(i)-Math.sin(r)*Math.sin(l));return[l*180/Math.PI,g*180/Math.PI]}const S=L.divIcon({className:"",html:'
',iconSize:[37,37],iconAnchor:[19,19]}),_=L.divIcon({className:"",html:'',iconSize:[37,37],iconAnchor:[19,19]});y.forEach(o=>{const s=o.source_type==="sensor",c=o.visually_confirmed?e.visuallyConfirmed||"Visually confirmed":e.notVisuallyConfirmed||"Not visually confirmed";let t=o.occurrences+" "+(o.occurrences===1?e.occurrence||"occurrence":e.occurrences||"occurrences")+" · "+c+"