=o.localMax))break;return h.sort((b,k)=>{const R=b.properties.__pplr_local,C=k.properties.__pplr_local,O=(R==null?void 0:R.depth)??99,L=(C==null?void 0:C.depth)??99;if(O!==L)return O-L;const W=b.place_name.toLowerCase().startsWith(S)?0:1,q=k.place_name.toLowerCase().startsWith(S)?0:1;return W!==q?W-q:((C==null?void 0:C.pop)||0)-((R==null?void 0:R.pop)||0)||((C==null?void 0:C.count)||0)-((R==null?void 0:R.count)||0)}),h}}function f(E){var C,O;const S=((C=E==null?void 0:E.properties)==null?void 0:C.__pplr_kind)||"",h=(O=E==null?void 0:E.properties)==null?void 0:O.__pplr_local,b=(h==null?void 0:h.color)||"",k=b?``:"",R=S?`${go(S)}`:"";return`
- ${k}${go(E.place_name)}${R}
-
`}const m=(Ca[i]||Ca.mapbox).css;function _(E){if(!E||E===document||E.querySelector("link[data-pplr-geocoder-css]"))return;const S=document.createElement("link");S.rel="stylesheet",S.href=m,S.setAttribute("data-pplr-geocoder-css","1"),E.prepend(S)}function T(){try{if(c){if(!window.MaplibreGeocoder||!window.maplibregl){console.warn("[MapboxGeocoder] maplibre-gl-geocoder or maplibre-gl not on window — search disabled");return}l=new window.MaplibreGeocoder({forwardGeocode:async()=>({type:"FeatureCollection",features:[]})},{maplibregl:window.maplibregl,placeholder:o.placeholder,localGeocoder:u(),localGeocoderOnly:!0,minLength:o.minChars,showResultsWhileTyping:!0,render:f})}else{if(!window.MapboxGeocoder||!Cn("mapbox")){console.warn("[MapboxGeocoder] mapbox-gl-geocoder or mapbox-gl not on window — check CDN
-
+
-
+
-
+
-
+
-
+
-
+
-
+