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