@maptiler/geocoding-control 1.2.3 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/leaflet.js +1 -1
- package/leaflet.umd.js +1 -1
- package/maplibregl-controller.js +761 -759
- package/maplibregl-controller.js.map +1 -1
- package/maplibregl-controller.umd.js +3 -3
- package/maplibregl-controller.umd.js.map +1 -1
- package/maplibregl.js +357 -355
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +4 -4
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.js +357 -355
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +4 -4
- package/maptilersdk.umd.js.map +1 -1
- package/openlayers.js +1 -1
- package/openlayers.umd.js +1 -1
- package/package.json +1 -1
- package/react.js +1 -1
- package/react.umd.js +1 -1
- package/svelte/GeocodingControl.svelte +1 -1
- package/svelte/maplibregl-controller.js +15 -6
- package/vanilla.js +1 -1
- package/vanilla.umd.js +1 -1
package/leaflet.js
CHANGED
|
@@ -2097,7 +2097,7 @@ function Xc(n) {
|
|
|
2097
2097
|
};
|
|
2098
2098
|
}
|
|
2099
2099
|
function Yc(n, t, e) {
|
|
2100
|
-
let r, { $$slots: i = {}, $$scope: o } = t, { class: s = void 0 } = t, { apiKey: a } = t, { bbox: u = void 0 } = t, { clearButtonTitle: l = "clear" } = t, { clearOnBlur: c = !1 } = t, { collapsed: f = !1 } = t, { country: h = void 0 } = t, { debounceSearch: g = 200 } = t, { enableReverse: p = !1 } = t, { errorMessage: v = "Something went wrong…" } = t, { filter: d = () => !0 } = t, { flyTo: _ = !0 } = t, { fuzzyMatch: I = !0 } = t, { language: C = void 0 } = t, { limit: N = void 0 } = t, { mapController: L = void 0 } = t, { minLength: T = 2 } = t, { noResultsMessage: R = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = t, { placeholder: D = "Search" } = t, { proximity: b = [{ type: "server-geolocation" }] } = t, { reverseActive: A = p === "always" } = t, { reverseButtonTitle: Y = "toggle reverse geocoding" } = t, { searchValue: G = "" } = t, { showFullGeometry: at = !0 } = t, { showPlaceType: x = "ifNeeded" } = t, { showResultsWhileTyping: B = !0 } = t, { selectFirst: Q = !0 } = t, { flyToSelected: _t = !1 } = t, { markerOnSelected: Kt = !0 } = t, { types: zt = void 0 } = t, { excludeTypes: Vr = !1 } = t, { zoom: Ie = 16 } = t, { maxZoom: De = 18 } = t, { apiUrl: Ue = "https://api.maptiler.com/geocoding" } = t, { fetchParameters: Nn = {} } = t, { iconsBaseUrl: sn = "https://cdn.maptiler.com/maptiler-geocoding-control/v1.2.
|
|
2100
|
+
let r, { $$slots: i = {}, $$scope: o } = t, { class: s = void 0 } = t, { apiKey: a } = t, { bbox: u = void 0 } = t, { clearButtonTitle: l = "clear" } = t, { clearOnBlur: c = !1 } = t, { collapsed: f = !1 } = t, { country: h = void 0 } = t, { debounceSearch: g = 200 } = t, { enableReverse: p = !1 } = t, { errorMessage: v = "Something went wrong…" } = t, { filter: d = () => !0 } = t, { flyTo: _ = !0 } = t, { fuzzyMatch: I = !0 } = t, { language: C = void 0 } = t, { limit: N = void 0 } = t, { mapController: L = void 0 } = t, { minLength: T = 2 } = t, { noResultsMessage: R = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = t, { placeholder: D = "Search" } = t, { proximity: b = [{ type: "server-geolocation" }] } = t, { reverseActive: A = p === "always" } = t, { reverseButtonTitle: Y = "toggle reverse geocoding" } = t, { searchValue: G = "" } = t, { showFullGeometry: at = !0 } = t, { showPlaceType: x = "ifNeeded" } = t, { showResultsWhileTyping: B = !0 } = t, { selectFirst: Q = !0 } = t, { flyToSelected: _t = !1 } = t, { markerOnSelected: Kt = !0 } = t, { types: zt = void 0 } = t, { excludeTypes: Vr = !1 } = t, { zoom: Ie = 16 } = t, { maxZoom: De = 18 } = t, { apiUrl: Ue = "https://api.maptiler.com/geocoding" } = t, { fetchParameters: Nn = {} } = t, { iconsBaseUrl: sn = "https://cdn.maptiler.com/maptiler-geocoding-control/v1.2.4/icons/" } = t, { adjustUrlQuery: ds = (S) => {
|
|
2101
2101
|
} } = t;
|
|
2102
2102
|
function vl() {
|
|
2103
2103
|
Ur.focus();
|
package/leaflet.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(ht,mt){typeof exports=="object"&&typeof module<"u"?mt(exports,require("leaflet")):typeof define=="function"&&define.amd?define(["exports","leaflet"],mt):(ht=typeof globalThis<"u"?globalThis:ht||self,mt(ht.leafletMaptilerGeocoder={},ht.L))})(this,function(ht,mt){"use strict";var vh=Object.defineProperty;var mh=(ht,mt,ne)=>mt in ht?vh(ht,mt,{enumerable:!0,configurable:!0,writable:!0,value:ne}):ht[mt]=ne;var ha=(ht,mt,ne)=>(mh(ht,typeof mt!="symbol"?mt+"":mt,ne),ne),El=(ht,mt,ne)=>{if(!mt.has(ht))throw TypeError("Cannot "+ne)};var Xr=(ht,mt,ne)=>(El(ht,mt,"read from private field"),ne?ne.call(ht):mt.get(ht)),ga=(ht,mt,ne)=>{if(mt.has(ht))throw TypeError("Cannot add the same private member more than once");mt instanceof WeakSet?mt.add(ht):mt.set(ht,ne)},ms=(ht,mt,ne,or)=>(El(ht,mt,"write to private field"),or?or.call(ht,ne):mt.set(ht,ne),ne);var Lr,vi;function ne(n){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const e in n)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(t,e,r.get?r:{enumerable:!0,get:()=>n[e]})}}return t.default=n,Object.freeze(t)}const or=ne(mt);function Ct(){}function Cl(n,t){for(const e in t)n[e]=t[e];return n}function pa(n){return n()}function da(){return Object.create(null)}function cn(n){n.forEach(pa)}function va(n){return typeof n=="function"}function Ln(n,t){return n!=n?t==t:n!==t||n&&typeof n=="object"||typeof n=="function"}let Po;function _e(n,t){return n===t?!0:(Po||(Po=document.createElement("a")),Po.href=t,n===Po.href)}function Il(n){return Object.keys(n).length===0}function Nl(n,t,e,r){if(n){const i=ma(n,t,e,r);return n[0](i)}}function ma(n,t,e,r){return n[1]&&r?Cl(e.ctx.slice(),n[1](r(t))):e.ctx}function Sl(n,t,e,r){if(n[2]&&r){const i=n[2](r(e));if(t.dirty===void 0)return i;if(typeof i=="object"){const o=[],s=Math.max(t.dirty.length,i.length);for(let a=0;a<s;a+=1)o[a]=t.dirty[a]|i[a];return o}return t.dirty|i}return t.dirty}function xl(n,t,e,r,i,o){if(i){const s=ma(t,e,r,o);n.p(s,i)}}function Ll(n){if(n.ctx.length>32){const t=[],e=n.ctx.length/32;for(let r=0;r<e;r++)t[r]=-1;return t}return-1}function ya(n){return n??""}function rt(n,t){n.appendChild(t)}function wt(n,t,e){n.insertBefore(t,e||null)}function It(n){n.parentNode&&n.parentNode.removeChild(n)}function gt(n){return document.createElement(n)}function Pr(n){return document.createElementNS("http://www.w3.org/2000/svg",n)}function bn(n){return document.createTextNode(n)}function Ye(){return bn(" ")}function bl(){return bn("")}function xe(n,t,e,r){return n.addEventListener(t,e,r),()=>n.removeEventListener(t,e,r)}function wl(n){return function(t){return t.preventDefault(),n.call(this,t)}}function w(n,t,e){e==null?n.removeAttribute(t):n.getAttribute(t)!==e&&n.setAttribute(t,e)}function Pl(n){return Array.from(n.childNodes)}function Ki(n,t){t=""+t,n.data!==t&&(n.data=t)}function _a(n,t){n.value=t??""}function Oo(n,t,e,r){e==null?n.style.removeProperty(t):n.style.setProperty(t,e,"")}function sr(n,t,e){n.classList.toggle(t,!!e)}function Ol(n,t,{bubbles:e=!1,cancelable:r=!1}={}){return new CustomEvent(n,{detail:t,bubbles:e,cancelable:r})}let Zi;function Ji(n){Zi=n}function Ea(){if(!Zi)throw new Error("Function called outside component initialization");return Zi}function Rl(n){Ea().$$.on_destroy.push(n)}function Tl(){const n=Ea();return(t,e,{cancelable:r=!1}={})=>{const i=n.$$.callbacks[t];if(i){const o=Ol(t,e,{cancelable:r});return i.slice().forEach(s=>{s.call(n,o)}),!o.defaultPrevented}return!0}}function Ca(n,t){const e=n.$$.callbacks[t.type];e&&e.slice().forEach(r=>r.call(this,t))}const yi=[],ys=[];let _i=[];const Ia=[],Dl=Promise.resolve();let _s=!1;function Ml(){_s||(_s=!0,Dl.then(Na))}function Es(n){_i.push(n)}const Cs=new Set;let Ei=0;function Na(){if(Ei!==0)return;const n=Zi;do{try{for(;Ei<yi.length;){const t=yi[Ei];Ei++,Ji(t),Al(t.$$)}}catch(t){throw yi.length=0,Ei=0,t}for(Ji(null),yi.length=0,Ei=0;ys.length;)ys.pop()();for(let t=0;t<_i.length;t+=1){const e=_i[t];Cs.has(e)||(Cs.add(e),e())}_i.length=0}while(yi.length);for(;Ia.length;)Ia.pop()();_s=!1,Cs.clear(),Ji(n)}function Al(n){if(n.fragment!==null){n.update(),cn(n.before_update);const t=n.dirty;n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,t),n.after_update.forEach(Es)}}function Fl(n){const t=[],e=[];_i.forEach(r=>n.indexOf(r)===-1?t.push(r):e.push(r)),e.forEach(r=>r()),_i=t}const Ro=new Set;let Zn;function To(){Zn={r:0,c:[],p:Zn}}function Do(){Zn.r||cn(Zn.c),Zn=Zn.p}function Bt(n,t){n&&n.i&&(Ro.delete(n),n.i(t))}function ie(n,t,e,r){if(n&&n.o){if(Ro.has(n))return;Ro.add(n),Zn.c.push(()=>{Ro.delete(n),r&&(e&&n.d(1),r())}),n.o(t)}else r&&r()}function Sa(n){return(n==null?void 0:n.length)!==void 0?n:Array.from(n)}function kl(n,t){ie(n,1,1,()=>{t.delete(n.key)})}function Bl(n,t,e,r,i,o,s,a,u,l,c,f){let h=n.length,g=o.length,p=h;const v={};for(;p--;)v[n[p].key]=p;const d=[],_=new Map,I=new Map,C=[];for(p=g;p--;){const O=f(i,o,p),D=e(O);let b=s.get(D);b?C.push(()=>b.p(O,t)):(b=l(D,O),b.c()),_.set(D,d[p]=b),D in v&&I.set(D,Math.abs(p-v[D]))}const N=new Set,L=new Set;function T(O){Bt(O,1),O.m(a,c),s.set(O.key,O),c=O.first,g--}for(;h&&g;){const O=d[g-1],D=n[h-1],b=O.key,A=D.key;O===D?(c=O.first,h--,g--):_.has(A)?!s.has(b)||N.has(b)?T(O):L.has(A)?h--:I.get(b)>I.get(A)?(L.add(b),T(O)):(N.add(A),h--):(u(D,s),h--)}for(;h--;){const O=n[h];_.has(O.key)||u(O,s)}for(;g;)T(d[g-1]);return cn(C),d}function wn(n){n&&n.c()}function fn(n,t,e){const{fragment:r,after_update:i}=n.$$;r&&r.m(t,e),Es(()=>{const o=n.$$.on_mount.map(pa).filter(va);n.$$.on_destroy?n.$$.on_destroy.push(...o):cn(o),n.$$.on_mount=[]}),i.forEach(Es)}function hn(n,t){const e=n.$$;e.fragment!==null&&(Fl(e.after_update),cn(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[])}function Gl(n,t){n.$$.dirty[0]===-1&&(yi.push(n),Ml(),n.$$.dirty.fill(0)),n.$$.dirty[t/31|0]|=1<<t%31}function Pn(n,t,e,r,i,o,s=null,a=[-1]){const u=Zi;Ji(n);const l=n.$$={fragment:null,ctx:[],props:o,update:Ct,not_equal:i,bound:da(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:da(),dirty:a,skip_bound:!1,root:t.target||u.$$.root};s&&s(l.root);let c=!1;if(l.ctx=e?e(n,t.props||{},(f,h,...g)=>{const p=g.length?g[0]:h;return l.ctx&&i(l.ctx[f],l.ctx[f]=p)&&(!l.skip_bound&&l.bound[f]&&l.bound[f](p),c&&Gl(n,f)),h}):[],l.update(),c=!0,cn(l.before_update),l.fragment=r?r(l.ctx):!1,t.target){if(t.hydrate){const f=Pl(t.target);l.fragment&&l.fragment.l(f),f.forEach(It)}else l.fragment&&l.fragment.c();t.intro&&Bt(n.$$.fragment),fn(n,t.target,t.anchor),Na()}Ji(u)}class On{constructor(){ha(this,"$$");ha(this,"$$set")}$destroy(){hn(this,1),this.$destroy=Ct}$on(t,e){if(!va(e))return Ct;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{const i=r.indexOf(e);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!Il(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const zl="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(zl);function Vl(n){let t,e;return{c(){t=Pr("svg"),e=Pr("path"),w(e,"d","M13.12.706a.982.982 0 0 0-1.391 0L6.907 5.517 2.087.696a.982.982 0 1 0-1.391 1.39l4.821 4.821L.696 11.73a.982.982 0 1 0 1.39 1.39l4.821-4.821 4.822 4.821a.982.982 0 1 0 1.39-1.39L8.298 6.908l4.821-4.822a.988.988 0 0 0 0-1.38Z"),w(t,"viewBox","0 0 14 14"),w(t,"width","13"),w(t,"height","13"),w(t,"class","svelte-en2qvf")},m(r,i){wt(r,t,i),rt(t,e)},p:Ct,i:Ct,o:Ct,d(r){r&&It(t)}}}class xa extends On{constructor(t){super(),Pn(this,t,null,Vl,Ln,{})}}function Ul(n){let t,e;return{c(){t=Pr("svg"),e=Pr("path"),w(e,"d","M15 0C6.705 0 0 6.705 0 15C0 23.295 6.705 30 15 30C23.295 30 30 23.295 30 15C30 6.705 23.295 0 15 0ZM22.5 20.385L20.385 22.5L15 17.115L9.615 22.5L7.5 20.385L12.885 15L7.5 9.615L9.615 7.5L15 12.885L20.385 7.5L22.5 9.615L17.115 15L22.5 20.385Z"),w(t,"viewBox","0 0 30 30"),w(t,"fill","none"),w(t,"xmlns","http://www.w3.org/2000/svg"),w(t,"class","svelte-d2loi5")},m(r,i){wt(r,t,i),rt(t,e)},p:Ct,i:Ct,o:Ct,d(r){r&&It(t)}}}class La extends On{constructor(t){super(),Pn(this,t,null,Ul,Ln,{})}}function ql(n){let t,e;return{c(){t=gt("img"),_e(t.src,e=n[3]+"area.svg")||w(t,"src",e),w(t,"alt",n[6]),w(t,"class","svelte-ltkwvy")},m(r,i){wt(r,t,i)},p(r,i){i&8&&!_e(t.src,e=r[3]+"area.svg")&&w(t,"src",e),i&64&&w(t,"alt",r[6])},d(r){r&&It(t)}}}function Xl(n){let t,e;return{c(){t=gt("img"),_e(t.src,e=n[3]+"reverse.svg")||w(t,"src",e),w(t,"alt",n[6]),w(t,"class","svelte-ltkwvy")},m(r,i){wt(r,t,i)},p(r,i){i&8&&!_e(t.src,e=r[3]+"reverse.svg")&&w(t,"src",e),i&64&&w(t,"alt",r[6])},d(r){r&&It(t)}}}function Yl(n){let t,e;return{c(){t=gt("img"),_e(t.src,e=n[3]+"poi.svg")||w(t,"src",e),w(t,"alt",n[6]),w(t,"class","svelte-ltkwvy")},m(r,i){wt(r,t,i)},p(r,i){i&8&&!_e(t.src,e=r[3]+"poi.svg")&&w(t,"src",e),i&64&&w(t,"alt",r[6])},d(r){r&&It(t)}}}function Wl(n){let t,e;return{c(){t=gt("img"),_e(t.src,e=n[3]+"postal_code.svg")||w(t,"src",e),w(t,"alt",n[6]),w(t,"class","svelte-ltkwvy")},m(r,i){wt(r,t,i)},p(r,i){i&8&&!_e(t.src,e=r[3]+"postal_code.svg")&&w(t,"src",e),i&64&&w(t,"alt",r[6])},d(r){r&&It(t)}}}function Hl(n){let t,e;return{c(){t=gt("img"),_e(t.src,e=n[3]+"street.svg")||w(t,"src",e),w(t,"alt",n[6]),w(t,"class","svelte-ltkwvy")},m(r,i){wt(r,t,i)},p(r,i){i&8&&!_e(t.src,e=r[3]+"street.svg")&&w(t,"src",e),i&64&&w(t,"alt",r[6])},d(r){r&&It(t)}}}function jl(n){let t,e;return{c(){t=gt("img"),_e(t.src,e=n[3]+"road.svg")||w(t,"src",e),w(t,"alt",n[6]),w(t,"class","svelte-ltkwvy")},m(r,i){wt(r,t,i)},p(r,i){i&8&&!_e(t.src,e=r[3]+"road.svg")&&w(t,"src",e),i&64&&w(t,"alt",r[6])},d(r){r&&It(t)}}}function Ql(n){let t,e;return{c(){t=gt("img"),_e(t.src,e=n[3]+"housenumber.svg")||w(t,"src",e),w(t,"alt",n[6]),w(t,"class","svelte-ltkwvy")},m(r,i){wt(r,t,i)},p(r,i){i&8&&!_e(t.src,e=r[3]+"housenumber.svg")&&w(t,"src",e),i&64&&w(t,"alt",r[6])},d(r){r&&It(t)}}}function Kl(n){let t,e,r,i;return{c(){t=gt("img"),_e(t.src,e=n[5])||w(t,"src",e),w(t,"alt",n[4]),w(t,"class","svelte-ltkwvy")},m(o,s){wt(o,t,s),r||(i=xe(t,"error",n[14]),r=!0)},p(o,s){s&32&&!_e(t.src,e=o[5])&&w(t,"src",e),s&16&&w(t,"alt",o[4])},d(o){o&&It(t),r=!1,i()}}}function ba(n){let t,e;return{c(){t=gt("span"),e=bn(n[6]),w(t,"class","secondary svelte-ltkwvy")},m(r,i){wt(r,t,i),rt(t,e)},p(r,i){i&64&&Ki(e,r[6])},d(r){r&&It(t)}}}function Zl(n){var O,D;let t,e,r,i,o,s,a,u,l=(n[7]?n[0].place_name:n[0].place_name.replace(/,.*/,""))+"",c,f,h=n[2]==="always"||n[2]&&!n[0].address&&((O=n[0].properties)==null?void 0:O.kind)!=="road"&&((D=n[0].properties)==null?void 0:D.kind)!=="road_relation"&&!n[0].id.startsWith("address.")&&!n[0].id.startsWith("postal_code.")&&(!n[0].id.startsWith("poi.")||!n[5])&&!n[7],g,p,v=(n[7]?"":n[0].place_name.replace(/[^,]*,?\s*/,""))+"",d,_,I;function C(b,A){var Y,G;return A&1&&(e=null),A&1&&(r=null),A&1&&(i=null),b[5]?Kl:b[0].address?Ql:((Y=b[0].properties)==null?void 0:Y.kind)==="road"||((G=b[0].properties)==null?void 0:G.kind)==="road_relation"?jl:(e==null&&(e=!!b[0].id.startsWith("address.")),e?Hl:(r==null&&(r=!!b[0].id.startsWith("postal_code.")),r?Wl:(i==null&&(i=!!b[0].id.startsWith("poi.")),i?Yl:b[7]?Xl:ql)))}let N=C(n,-1),L=N(n),T=h&&ba(n);return{c(){t=gt("li"),L.c(),o=Ye(),s=gt("span"),a=gt("span"),u=gt("span"),c=bn(l),f=Ye(),T&&T.c(),g=Ye(),p=gt("span"),d=bn(v),w(u,"class","primary svelte-ltkwvy"),w(a,"class","svelte-ltkwvy"),w(p,"class","line2 svelte-ltkwvy"),w(s,"class","texts svelte-ltkwvy"),w(t,"tabindex","0"),w(t,"data-selected",n[1]),w(t,"class","svelte-ltkwvy"),sr(t,"selected",n[1])},m(b,A){wt(b,t,A),L.m(t,null),rt(t,o),rt(t,s),rt(s,a),rt(a,u),rt(u,c),rt(a,f),T&&T.m(a,null),rt(s,g),rt(s,p),rt(p,d),_||(I=[xe(t,"mouseenter",n[12]),xe(t,"focus",n[13])],_=!0)},p(b,[A]){var Y,G;N===(N=C(b,A))&&L?L.p(b,A):(L.d(1),L=N(b),L&&(L.c(),L.m(t,o))),A&1&&l!==(l=(b[7]?b[0].place_name:b[0].place_name.replace(/,.*/,""))+"")&&Ki(c,l),A&37&&(h=b[2]==="always"||b[2]&&!b[0].address&&((Y=b[0].properties)==null?void 0:Y.kind)!=="road"&&((G=b[0].properties)==null?void 0:G.kind)!=="road_relation"&&!b[0].id.startsWith("address.")&&!b[0].id.startsWith("postal_code.")&&(!b[0].id.startsWith("poi.")||!b[5])&&!b[7]),h?T?T.p(b,A):(T=ba(b),T.c(),T.m(a,null)):T&&(T.d(1),T=null),A&1&&v!==(v=(b[7]?"":b[0].place_name.replace(/[^,]*,?\s*/,""))+"")&&Ki(d,v),A&2&&w(t,"data-selected",b[1]),A&2&&sr(t,"selected",b[1])},i:Ct,o:Ct,d(b){b&&It(t),L.d(),T&&T.d(),_=!1,cn(I)}}}function Jl(n,t,e){var C;let r,i,{feature:o}=t,{selected:s=!1}=t,{showPlaceType:a}=t,{missingIconsCache:u}=t,{iconsBaseUrl:l}=t;const c=(C=o.properties)==null?void 0:C.categories;let f,h,g=0,p=o.place_type[0]==="reverse";function v(N){h&&u.add(h),e(10,g++,g)}function d(N){Ca.call(this,n,N)}function _(N){Ca.call(this,n,N)}const I=N=>v(N.currentTarget);return n.$$set=N=>{"feature"in N&&e(0,o=N.feature),"selected"in N&&e(1,s=N.selected),"showPlaceType"in N&&e(2,a=N.showPlaceType),"missingIconsCache"in N&&e(9,u=N.missingIconsCache),"iconsBaseUrl"in N&&e(3,l=N.iconsBaseUrl)},n.$$.update=()=>{var N,L,T,O;if(n.$$.dirty&3640)do e(11,r--,r),e(4,f=c==null?void 0:c[r]),e(5,h=f?l+f.replace(/ /g,"_")+".svg":void 0);while(r>-1&&(!h||u.has(h)));n.$$.dirty&1&&e(6,i=o.id.startsWith("poi.")?(L=(N=o.properties)==null?void 0:N.categories)==null?void 0:L.join(", "):((O=(T=o.properties)==null?void 0:T.place_type_name)==null?void 0:O[0])??o.place_type[0])},e(11,r=(c==null?void 0:c.length)??0),[o,s,a,l,f,h,i,p,v,u,g,r,d,_,I]}class $l extends On{constructor(t){super(),Pn(this,t,Jl,Zl,Ln,{feature:0,selected:1,showPlaceType:2,missingIconsCache:9,iconsBaseUrl:3})}}function tc(n){let t;return{c(){t=gt("div"),t.innerHTML='<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>',w(t,"class","svelte-7cmwmc")},m(e,r){wt(e,t,r)},p:Ct,i:Ct,o:Ct,d(e){e&&It(t)}}}class ec extends On{constructor(t){super(),Pn(this,t,null,tc,Ln,{})}}function rc(n){let t,e,r;return{c(){t=Pr("svg"),e=Pr("path"),w(e,"stroke-width","4"),w(e,"d","M 5,33.103579 C 5,17.607779 18.457,5 35,5 C 51.543,5 65,17.607779 65,33.103579 C 65,56.388679 40.4668,76.048179 36.6112,79.137779 C 36.3714,79.329879 36.2116,79.457979 36.1427,79.518879 C 35.8203,79.800879 35.4102,79.942779 35,79.942779 C 34.5899,79.942779 34.1797,79.800879 33.8575,79.518879 C 33.7886,79.457979 33.6289,79.330079 33.3893,79.138079 C 29.5346,76.049279 5,56.389379 5,33.103579 Z M 35.0001,49.386379 C 43.1917,49.386379 49.8323,42.646079 49.8323,34.331379 C 49.8323,26.016779 43.1917,19.276479 35.0001,19.276479 C 26.8085,19.276479 20.1679,26.016779 20.1679,34.331379 C 20.1679,42.646079 26.8085,49.386379 35.0001,49.386379 Z"),w(e,"class","svelte-gzo3ar"),w(t,"width",r=n[0]==="list"?20:void 0),w(t,"viewBox","0 0 70 85"),w(t,"fill","none"),w(t,"class","svelte-gzo3ar"),sr(t,"in-map",n[0]!=="list"),sr(t,"list-icon",n[0]==="list")},m(i,o){wt(i,t,o),rt(t,e)},p(i,[o]){o&1&&r!==(r=i[0]==="list"?20:void 0)&&w(t,"width",r),o&1&&sr(t,"in-map",i[0]!=="list"),o&1&&sr(t,"list-icon",i[0]==="list")},i:Ct,o:Ct,d(i){i&&It(t)}}}function nc(n,t,e){let{displayIn:r}=t;return n.$$set=i=>{"displayIn"in i&&e(0,r=i.displayIn)},[r]}class ic extends On{constructor(t){super(),Pn(this,t,nc,rc,Ln,{displayIn:0})}}function oc(n){let t,e;return{c(){t=Pr("svg"),e=Pr("path"),w(e,"d","M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"),w(t,"viewBox","0 0 60.006 21.412"),w(t,"width","14"),w(t,"height","20"),w(t,"class","svelte-en2qvf")},m(r,i){wt(r,t,i),rt(t,e)},p:Ct,i:Ct,o:Ct,d(r){r&&It(t)}}}class sc extends On{constructor(t){super(),Pn(this,t,null,oc,Ln,{})}}function ac(n){let t,e,r;return{c(){t=Pr("svg"),e=Pr("circle"),r=Pr("path"),w(e,"cx","4.789"),w(e,"cy","4.787"),w(e,"r","3.85"),Oo(e,"stroke-width","1.875"),Oo(e,"fill","none"),w(r,"d","M12.063 12.063 7.635 7.635"),Oo(r,"stroke-width","1.875"),Oo(r,"stroke-linecap","round"),w(t,"xmlns","http://www.w3.org/2000/svg"),w(t,"width","13"),w(t,"height","13"),w(t,"viewBox","0 0 13 13"),w(t,"class","svelte-1bpbt60")},m(i,o){wt(i,t,o),rt(t,e),rt(t,r)},p:Ct,i:Ct,o:Ct,d(i){i&&It(t)}}}class uc extends On{constructor(t){super(),Pn(this,t,null,ac,Ln,{})}}function lc(n,t,e){const r=t[1],i=t[0],o=r-i;return n===r&&e?n:((n-i)%o+o)%o+i}function wa(n){const t=[...n];return t[2]<t[0]&&(t[2]+=360),t}let $i;async function cc(n,t,e){const r=n==null?void 0:n.getCenterAndZoom();for(const i of t??[])if(!(r&&(i.minZoom!=null&&i.minZoom>r[0]||i.maxZoom!=null&&i.maxZoom<r[0]))){if(i.type==="fixed")return i.coordinates.join(",");t:if(i.type==="client-geolocation"){if($i&&i.cachedLocationExpiry&&$i.time+i.cachedLocationExpiry>Date.now()){if(!$i.coords)break t;return $i.coords}let o;try{return o=await new Promise((s,a)=>{e.signal.addEventListener("abort",()=>{a(Error("aborted"))}),navigator.geolocation.getCurrentPosition(u=>{s([u.coords.longitude,u.coords.latitude].map(l=>l.toFixed(6)).join(","))},u=>{a(u)},i)}),o}catch{}finally{i.cachedLocationExpiry&&($i={time:Date.now(),coords:o})}if(e.signal.aborted)return}if(i.type==="server-geolocation")return"ip";if(r&&i.type==="map-center")return r[1].toFixed(6)+","+r[2].toFixed(6)}}const Pa=/([+-]?[0-8]?[0-9])\s+([0-5]?[0-9]\.\d{3,})[\s,]{1,}([+-]?[0-1]?[0-9]?[0-9])\s+([0-5]?[0-9]\.\d{3,})/,Oa=/(NORTH|SOUTH|[NS])?[\s]*([+-]?[0-8]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(NORTH|SOUTH|[NS])?[\s]*[,/;]?[\s]*(EAST|WEST|[EW])?[\s]*([+-]?[0-1]?[0-9]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(EAST|WEST|[EW])?/i,Ra=/(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(EAST|WEST|[EW])?/i,Ta=/(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)\s*(EAST|WEST|[EW])?/i,Da=/(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|’’|´´|["″”\.])?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|´´|’’|["″”\.])?\s*(EAST|WEST|[EW])?/i;function fc(n){if(!["DMS","DM","DD"].includes(n))throw new Error("invalid format specified");if(this.decimalCoordinates&&this.decimalCoordinates.trim()){if(n=="DD")return this.decimalCoordinates;const t=this.decimalCoordinates.split(",").map(s=>Number(s.trim()));let e=Ma(t[0],n),r=Ma(t[1],n);e.endsWith('.0"')&&r.endsWith('.0"')&&(e=e.replace(/\.0"$/,'"'),r=r.replace(/\.0"$/,'"'));const i=t[0]>=0?" N":" S",o=t[1]>=0?" E":" W";return`${e+i}, ${r+o}`}else throw new Error("no decimal coordinates to convert")}function Ma(n,t){const e=Math.abs(n),r=Math.floor(e),i=(e-r)*60;if(t=="DM"){let a=hc(i,3).toFixed(3).padStart(6,"0");return`${r}° ${a}'`}let o=Math.floor(i),s=((i-o)*60).toFixed(1).padStart(4,"0");return o=o.toString().padStart(2,"0"),`${r}° ${o}' ${s}"`}function hc(n,t){const e=Math.pow(10,t);return Math.round((n+Number.EPSILON)*e)/e}function Is(n,t){t||(t=5),n=n.replace(/\s+/g," ").trim();let e=null,r=null,i="",o="",s=[],a=!1;if(Pa.test(n))if(s=Pa.exec(n),a=to(s),a)e=Math.abs(s[1])+s[2]/60,Number(s[1])<0&&(e*=-1),r=Math.abs(s[3])+s[4]/60,Number(s[3])<0&&(r*=-1);else throw new Error("invalid coordinate format");else if(Oa.test(n))if(s=Oa.exec(n),a=to(s),a){if(e=s[2],r=s[6],e.includes(",")&&(e=e.replace(",",".")),r.includes(",")&&(r=r.replace(",",".")),Number(Math.round(e))==Number(e))throw new Error("integer only coordinate provided");if(Number(Math.round(r))==Number(r))throw new Error("integer only coordinate provided");s[1]?(i=s[1],o=s[5]):s[4]&&(i=s[4],o=s[8])}else throw new Error("invalid decimal coordinate format");else if(Ra.test(n))if(s=Ra.exec(n),a=to(s),a)e=Math.abs(parseInt(s[2])),s[4]&&(e+=s[4]/60),s[6]&&(e+=s[6].replace(",",".")/3600),parseInt(s[2])<0&&(e=-1*e),r=Math.abs(parseInt(s[9])),s[11]&&(r+=s[11]/60),s[13]&&(r+=s[13].replace(",",".")/3600),parseInt(s[9])<0&&(r=-1*r),s[1]?(i=s[1],o=s[8]):s[7]&&(i=s[7],o=s[14]);else throw new Error("invalid DMS coordinates format");else if(Ta.test(n))if(s=Ta.exec(n),a=to(s),a)e=Math.abs(parseInt(s[2])),s[4]&&(e+=s[4]/60),s[6]&&(e+=s[6]/3600),parseInt(s[2])<0&&(e=-1*e),r=Math.abs(parseInt(s[10])),s[12]&&(r+=s[12]/60),s[14]&&(r+=s[14]/3600),parseInt(s[10])<0&&(r=-1*r),s[1]?(i=s[1],o=s[9]):s[8]&&(i=s[8],o=s[16]);else throw new Error("invalid DMS coordinates format");else if(Da.test(n))if(s=Da.exec(n),a=to(s),a)e=Math.abs(parseInt(s[2])),s[4]&&(e+=s[4].replace(",",".")/60),s[6]&&(e+=s[6].replace(",",".")/3600),parseInt(s[2])<0&&(e=-1*e),r=Math.abs(parseInt(s[10])),s[12]&&(r+=s[12].replace(",",".")/60),s[14]&&(r+=s[14].replace(",",".")/3600),parseInt(s[10])<0&&(r=-1*r),s[1]?(i=s[1],o=s[9]):s[8]&&(i=s[8],o=s[16]);else throw new Error("invalid coordinates format");if(a){if(Math.abs(r)>=180)throw new Error("invalid longitude value");if(Math.abs(e)>=90)throw new Error("invalid latitude value");if((i||o)&&(!i||!o))throw new Error("invalid coordinates format");if(i&&i==o)throw new Error("invalid coordinates format");let u=/S|SOUTH/i;u.test(i)&&e>0&&(e=-1*e),u=/W|WEST/i,u.test(o)&&r>0&&(r=-1*r);const l=s[0].trim();let c,f;const h=/[,/;\u0020]/g,g=l.match(h);if(g==null){const d=Math.floor(n.length/2);c=l.substring(0,d).trim(),f=l.substring(d).trim()}else{let d;g.length%2==1?d=Math.floor(g.length/2):d=g.length/2-1;let _=0;if(d==0)_=l.indexOf(g[0]),c=l.substring(0,_).trim(),f=l.substring(_+1).trim();else{let I=0,C=0;for(;I<=d;)_=l.indexOf(g[I],C),C=_+1,I++;c=l.substring(0,_).trim(),f=l.substring(_+1).trim()}}const p=c.split(".");if(p.length==2&&p[1]==0&&p[1].length!=2)throw new Error("invalid coordinates format");const v=f.split(".");if(v.length==2&&v[1]==0&&v[1].length!=2)throw new Error("invalid coordinates format");if(/^\d+$/.test(c)||/^\d+$/.test(f))throw new Error("degree only coordinate/s provided");return isNaN(e)&&e.includes(",")&&(e=e.replace(",",".")),e=Number(Number(e).toFixed(t)),isNaN(r)&&r.includes(",")&&(r=r.replace(",",".")),r=Number(Number(r).toFixed(t)),Object.freeze({verbatimCoordinates:l,verbatimLatitude:c,verbatimLongitude:f,decimalLatitude:e,decimalLongitude:r,decimalCoordinates:`${e},${r}`,closeEnough:gc,toCoordinateFormat:fc})}else throw new Error("coordinates pattern match failed")}function to(n){if(!isNaN(n[0]))return!1;const t=[...n];if(t.shift(),t.length%2>0)return!1;const e=/^[-+]?\d+([\.,]\d+)?$/,r=/[eastsouthnorthwest]+/i,i=t.length/2;for(let o=0;o<i;o++){const s=t[o],a=t[o+i],u=e.test(s)&&e.test(a),l=r.test(s)&&r.test(a),c=s==a;if(!(s==null&&a==null)){if(s==null||a==null)return!1;if(u||l||c)continue;return!1}}return!0}function Aa(n,t){const e=Math.abs(n-t);return Number(e.toFixed(6))<=1e-5}function gc(n){if(n.includes(",")){const t=n.split(",");if(Number(t[0])==NaN||Number(t[1])==NaN)throw new Error("coords are not valid decimals");return Aa(this.decimalLatitude,Number(t[0]))&&Aa(this.decimalLongitude,t[1])}else throw new Error("coords being tested must be separated by a comma")}const pc=Object.freeze({DMS:"DMS",DM:"DM",DD:"DD"});Is.to=pc;const dc=[{verbatimCoordinates:"40.123, -74.123",verbatimLatitude:"40.123",verbatimLongitude:"-74.123"},{verbatimCoordinates:"40.123° N 74.123° W",verbatimLatitude:"40.123° N",verbatimLongitude:"74.123° W"},{verbatimCoordinates:"40.123° N 74.123° W",verbatimLatitude:"40.123° N",verbatimLongitude:"74.123° W"},{verbatimCoordinates:'40° 7´ 22.8" N 74° 7´ 22.8" W',verbatimLatitude:'40° 7´ 22.8" N',verbatimLongitude:'74° 7´ 22.8" W'},{verbatimCoordinates:"40° 7.38’ , -74° 7.38’",verbatimLatitude:"40° 7.38’",verbatimLongitude:"-74° 7.38’"},{verbatimCoordinates:"N40°7’22.8’’, W74°7’22.8’’",verbatimLatitude:"N40°7’22.8’’",verbatimLongitude:"W74°7’22.8’’"},{verbatimCoordinates:'40°7’22.8"N, 74°7’22.8"W',verbatimLatitude:'40°7’22.8"N',verbatimLongitude:'74°7’22.8"W'},{verbatimCoordinates:`40°7'22.8"N, 74°7'22.8"W`,verbatimLatitude:`40°7'22.8"N`,verbatimLongitude:`74°7'22.8"W`},{verbatimCoordinates:"40 7 22.8, -74 7 22.8",verbatimLatitude:"40 7 22.8",verbatimLongitude:"-74 7 22.8"},{verbatimCoordinates:"40.123 -74.123",verbatimLatitude:"40.123",verbatimLongitude:"-74.123"},{verbatimCoordinates:"40.123°,-74.123°",verbatimLatitude:"40.123°",verbatimLongitude:"-74.123°"},{verbatimCoordinates:"40.123N74.123W",verbatimLatitude:"40.123N",verbatimLongitude:"74.123W"},{verbatimCoordinates:"4007.38N7407.38W",verbatimLatitude:"4007.38N",verbatimLongitude:"7407.38W"},{verbatimCoordinates:'40°7’22.8"N, 74°7’22.8"W',verbatimLatitude:'40°7’22.8"N',verbatimLongitude:'74°7’22.8"W'},{verbatimCoordinates:"400722.8N740722.8W",verbatimLatitude:"400722.8N",verbatimLongitude:"740722.8W"},{verbatimCoordinates:"N 40 7.38 W 74 7.38",verbatimLatitude:"N 40 7.38",verbatimLongitude:"W 74 7.38"},{verbatimCoordinates:"40:7:22.8N 74:7:22.8W",verbatimLatitude:"40:7:22.8N",verbatimLongitude:"74:7:22.8W"},{verbatimCoordinates:"40:7:23N,74:7:23W",verbatimLatitude:"40:7:23N",verbatimLongitude:"74:7:23W",decimalLatitude:40.1230555555,decimalLongitude:-74.1230555555},{verbatimCoordinates:'40°7’23"N 74°7’23"W',verbatimLatitude:'40°7’23"N',verbatimLongitude:'74°7’23"W',decimalLatitude:40.1230555555,decimalLongitude:-74.12305555555555},{verbatimCoordinates:'40°7’23"S 74°7’23"E',verbatimLatitude:'40°7’23"S',verbatimLongitude:'74°7’23"E',decimalLatitude:-40.1230555555,decimalLongitude:74.12305555555555},{verbatimCoordinates:'40°7’23" -74°7’23"',verbatimLatitude:'40°7’23"',verbatimLongitude:'-74°7’23"',decimalLatitude:40.1230555555,decimalLongitude:-74.123055555},{verbatimCoordinates:'40d 7’ 23" N 74d 7’ 23" W',verbatimLatitude:'40d 7’ 23" N',verbatimLongitude:'74d 7’ 23" W',decimalLatitude:40.1230555555,decimalLongitude:-74.123055555},{verbatimCoordinates:"40.123N 74.123W",verbatimLatitude:"40.123N",verbatimLongitude:"74.123W"},{verbatimCoordinates:"40° 7.38, -74° 7.38",verbatimLatitude:"40° 7.38",verbatimLongitude:"-74° 7.38"},{verbatimCoordinates:"40° 7.38, -74° 7.38",verbatimLatitude:"40° 7.38",verbatimLongitude:"-74° 7.38"},{verbatimCoordinates:"40 7 22.8; -74 7 22.8",verbatimLatitude:"40 7 22.8",verbatimLongitude:"-74 7 22.8"}],vc={decimalLatitude:40.123,decimalLongitude:-74.123},mc=[{verbatimCoordinates:`50°4'17.698"south, 14°24'2.826"east`,verbatimLatitude:`50°4'17.698"south`,verbatimLongitude:`14°24'2.826"east`,decimalLatitude:-50.07158277777778,decimalLongitude:14.400785},{verbatimCoordinates:"50d4m17.698S 14d24m2.826E",verbatimLatitude:"50d4m17.698S",verbatimLongitude:"14d24m2.826E",decimalLatitude:-50.07158277777778,decimalLongitude:14.400785},{verbatimCoordinates:"40:26:46N,79:56:55W",verbatimLatitude:"40:26:46N",verbatimLongitude:"79:56:55W",decimalLatitude:40.44611111111111,decimalLongitude:-79.9486111111111},{verbatimCoordinates:"40:26:46.302N 79:56:55.903W",verbatimLatitude:"40:26:46.302N",verbatimLongitude:"79:56:55.903W",decimalLatitude:40.446195,decimalLongitude:-79.94886194444445},{verbatimCoordinates:"40°26′47″N 79°58′36″W",verbatimLatitude:"40°26′47″N",verbatimLongitude:"79°58′36″W",decimalLatitude:40.44638888888889,decimalLongitude:-79.97666666666667},{verbatimCoordinates:"40d 26′ 47″ N 79d 58′ 36″ W",verbatimLatitude:"40d 26′ 47″ N",verbatimLongitude:"79d 58′ 36″ W",decimalLatitude:40.44638888888889,decimalLongitude:-79.97666666666667},{verbatimCoordinates:"40.446195N 79.948862W",verbatimLatitude:"40.446195N",verbatimLongitude:"79.948862W",decimalLatitude:40.446195,decimalLongitude:-79.948862},{verbatimCoordinates:"40,446195° 79,948862°",verbatimLatitude:"40,446195°",verbatimLongitude:"79,948862°",decimalLatitude:40.446195,decimalLongitude:79.948862},{verbatimCoordinates:"40° 26.7717, -79° 56.93172",verbatimLatitude:"40° 26.7717",verbatimLongitude:"-79° 56.93172",decimalLatitude:40.446195,decimalLongitude:-79.948862},{verbatimCoordinates:"40.446195, -79.948862",verbatimLatitude:"40.446195",verbatimLongitude:"-79.948862",decimalLatitude:40.446195,decimalLongitude:-79.948862},{verbatimCoordinates:"40.123256; -74.123256",verbatimLatitude:"40.123256",verbatimLongitude:"-74.123256",decimalLatitude:40.123256,decimalLongitude:-74.123256},{verbatimCoordinates:"18°24S 22°45E",verbatimLatitude:"18°24S",verbatimLongitude:"22°45E",decimalLatitude:-18.4,decimalLongitude:22.75}],yc=[{verbatimCoordinates:"10.432342S 10.6345345E",verbatimLatitude:"10.432342S",verbatimLongitude:"10.6345345E",decimalLatitude:-10.432342,decimalLongitude:10.6345345},{verbatimCoordinates:"10.00S 10.00E",verbatimLatitude:"10.00S",verbatimLongitude:"10.00E",decimalLatitude:-10,decimalLongitude:10},{verbatimCoordinates:"00.00S 01.00E",verbatimLatitude:"00.00S",verbatimLongitude:"01.00E",decimalLatitude:0,decimalLongitude:1},{verbatimCoordinates:"18.24S 22.45E",verbatimLatitude:"18.24S",verbatimLongitude:"22.45E",decimalLatitude:-18.4,decimalLongitude:22.75},{verbatimCoordinates:"27deg 15min 45.2sec S 18deg 32min 53.7sec E",verbatimLatitude:"27deg 15min 45.2sec S",verbatimLongitude:"18deg 32min 53.7sec E",decimalLatitude:-27.262555555555554,decimalLongitude:18.54825},{verbatimCoordinates:"-23.3245° S / 28.2344° E",verbatimLatitude:"-23.3245° S",verbatimLongitude:"28.2344° E",decimalLatitude:-23.3245,decimalLongitude:28.2344},{verbatimCoordinates:"40° 26.7717 -79° 56.93172",verbatimLatitude:"40° 26.7717",verbatimLongitude:"-79° 56.93172",decimalLatitude:40.446195,decimalLongitude:-79.948862},{verbatimCoordinates:"27.15.45S 18.32.53E",verbatimLatitude:"27.15.45S",verbatimLongitude:"18.32.53E",decimalLatitude:-27.2625,decimalLongitude:18.548055},{verbatimCoordinates:"-27.15.45 18.32.53",verbatimLatitude:"-27.15.45",verbatimLongitude:"18.32.53",decimalLatitude:-27.2625,decimalLongitude:18.548055},{verbatimCoordinates:"27.15.45.2S 18.32.53.4E",verbatimLatitude:"27.15.45.2S",verbatimLongitude:"18.32.53.4E",decimalLatitude:-27.262556,decimalLongitude:18.548167},{verbatimCoordinates:"27.15.45,2S 18.32.53,4E",verbatimLatitude:"27.15.45,2S",verbatimLongitude:"18.32.53,4E",decimalLatitude:-27.262556,decimalLongitude:18.548167},{verbatimCoordinates:"S23.43563 ° E22.45634 °",verbatimLatitude:"S23.43563 °",verbatimLongitude:"E22.45634 °",decimalLatitude:-23.43563,decimalLongitude:22.45634},{verbatimCoordinates:"27,71372° S 23,07771° E",verbatimLatitude:"27,71372° S",verbatimLongitude:"23,07771° E",decimalLatitude:-27.71372,decimalLongitude:23.07771},{verbatimCoordinates:"27.45.34 S 23.23.23 E",verbatimLatitude:"27.45.34 S",verbatimLongitude:"23.23.23 E",decimalLatitude:-27.759444,decimalLongitude:23.38972222},{verbatimCoordinates:"S 27.45.34 E 23.23.23",verbatimLatitude:"S 27.45.34",verbatimLongitude:"E 23.23.23",decimalLatitude:-27.759444,decimalLongitude:23.38972222},{verbatimCoordinates:"53 16.3863,4 52.8171",verbatimLatitude:"53 16.3863",verbatimLongitude:"4 52.8171",decimalLatitude:53.273105,decimalLongitude:4.88029},{verbatimCoordinates:"50 8.2914,-5 2.4447",verbatimLatitude:"50 8.2914",verbatimLongitude:"-5 2.4447",decimalLatitude:50.13819,decimalLongitude:-5.040745},{verbatimCoordinates:"N 48° 30,6410', E 18° 57,4583'",verbatimLatitude:"N 48° 30,6410'",verbatimLongitude:"E 18° 57,4583'",decimalLatitude:48.51068,decimalLongitude:18.95764}];function _c(){const n=[];return dc.forEach(t=>{t.decimalLatitude?n.push(t):n.push({...t,...vc})}),[...n,...mc,...yc]}const Ec=_c();Is.formats=Ec.map(n=>n.verbatimCoordinates);const Cc=Is;function Fa(n,t,e){const r=n.slice();return r[81]=t[e],r[83]=e,r}function ka(n){let t,e;return t=new ec({}),{c(){wn(t.$$.fragment)},m(r,i){fn(t,r,i),e=!0},i(r){e||(Bt(t.$$.fragment,r),e=!0)},o(r){ie(t.$$.fragment,r),e=!1},d(r){hn(t,r)}}}function Ba(n){let t,e,r,i,o;return e=new sc({}),{c(){t=gt("button"),wn(e.$$.fragment),w(t,"type","button"),w(t,"title",n[9]),w(t,"class","svelte-zh3kmv"),sr(t,"active",n[0])},m(s,a){wt(s,t,a),fn(e,t,null),r=!0,i||(o=xe(t,"click",n[67]),i=!0)},p(s,a){(!r||a[0]&512)&&w(t,"title",s[9]),(!r||a[0]&1)&&sr(t,"active",s[0])},i(s){r||(Bt(e.$$.fragment,s),r=!0)},o(s){ie(e.$$.fragment,s),r=!1},d(s){s&&It(t),hn(e),i=!1,o()}}}function Ic(n){let t,e=[],r=new Map,i,o,s,a=Sa(n[14]);const u=l=>l[81].id+(l[81].address?","+l[81].address:"");for(let l=0;l<a.length;l+=1){let c=Fa(n,a,l),f=u(c);r.set(f,e[l]=Ga(f,c))}return{c(){t=gt("ul");for(let l=0;l<e.length;l+=1)e[l].c();w(t,"class","svelte-zh3kmv")},m(l,c){wt(l,t,c);for(let f=0;f<e.length;f+=1)e[f]&&e[f].m(t,null);i=!0,o||(s=[xe(t,"mouseleave",n[71]),xe(t,"blur",n[72])],o=!0)},p(l,c){c[0]&17880064&&(a=Sa(l[14]),To(),e=Bl(e,c,u,1,l,a,r,t,kl,Ga,null,Fa),Do())},i(l){if(!i){for(let c=0;c<a.length;c+=1)Bt(e[c]);i=!0}},o(l){for(let c=0;c<e.length;c+=1)ie(e[c]);i=!1},d(l){l&&It(t);for(let c=0;c<e.length;c+=1)e[c].d();o=!1,cn(s)}}}function Nc(n){let t,e,r,i,o,s;return e=new La({}),{c(){t=gt("div"),wn(e.$$.fragment),r=Ye(),i=gt("div"),o=bn(n[7]),w(i,"class","svelte-zh3kmv"),w(t,"class","no-results svelte-zh3kmv")},m(a,u){wt(a,t,u),fn(e,t,null),rt(t,r),rt(t,i),rt(i,o),s=!0},p(a,u){(!s||u[0]&128)&&Ki(o,a[7])},i(a){s||(Bt(e.$$.fragment,a),s=!0)},o(a){ie(e.$$.fragment,a),s=!1},d(a){a&&It(t),hn(e)}}}function Sc(n){let t="",e;return{c(){e=bn(t)},m(r,i){wt(r,e,i)},p:Ct,i:Ct,o:Ct,d(r){r&&It(e)}}}function xc(n){let t,e,r,i,o,s,a,u,l,c,f;return e=new La({}),u=new xa({}),{c(){t=gt("div"),wn(e.$$.fragment),r=Ye(),i=gt("div"),o=bn(n[6]),s=Ye(),a=gt("button"),wn(u.$$.fragment),w(i,"class","svelte-zh3kmv"),w(a,"class","svelte-zh3kmv"),w(t,"class","error svelte-zh3kmv")},m(h,g){wt(h,t,g),fn(e,t,null),rt(t,r),rt(t,i),rt(i,o),rt(t,s),rt(t,a),fn(u,a,null),l=!0,c||(f=xe(a,"click",n[68]),c=!0)},p(h,g){(!l||g[0]&64)&&Ki(o,h[6])},i(h){l||(Bt(e.$$.fragment,h),Bt(u.$$.fragment,h),l=!0)},o(h){ie(e.$$.fragment,h),ie(u.$$.fragment,h),l=!1},d(h){h&&It(t),hn(e),hn(u),c=!1,f()}}}function Ga(n,t){let e,r,i;function o(){return t[69](t[83])}function s(){return t[70](t[81])}return r=new $l({props:{feature:t[81],showPlaceType:t[10],selected:t[15]===t[83],missingIconsCache:t[20],iconsBaseUrl:t[12]}}),r.$on("mouseenter",o),r.$on("focus",s),{key:n,first:null,c(){e=bl(),wn(r.$$.fragment),this.first=e},m(a,u){wt(a,e,u),fn(r,a,u),i=!0},p(a,u){t=a;const l={};u[0]&16384&&(l.feature=t[81]),u[0]&1024&&(l.showPlaceType=t[10]),u[0]&49152&&(l.selected=t[15]===t[83]),u[0]&4096&&(l.iconsBaseUrl=t[12]),r.$set(l)},i(a){i||(Bt(r.$$.fragment,a),i=!0)},o(a){ie(r.$$.fragment,a),i=!1},d(a){a&&It(e),hn(r,a)}}}function Lc(n){let t,e,r,i,o,s,a,u,l,c,f,h,g,p,v,d,_,I,C,N,L,T=!1;o=new uc({}),f=new xa({});let O=n[19]&&ka(),D=n[5]===!0&&Ba(n);const b=n[59].default,A=Nl(b,n,n[58],null),Y=[xc,Sc,Nc,Ic],G=[];function ut(x,B){var K,bt;return x[18]?0:x[16]?((K=x[14])==null?void 0:K.length)===0?2:x[16]&&((bt=x[14])!=null&&bt.length)?3:-1:1}return~(d=ut(n))&&(_=G[d]=Y[d](n)),{c(){t=Ye(),e=gt("form"),r=gt("div"),i=gt("button"),wn(o.$$.fragment),s=Ye(),a=gt("input"),u=Ye(),l=gt("div"),c=gt("button"),wn(f.$$.fragment),h=Ye(),O&&O.c(),g=Ye(),D&&D.c(),p=Ye(),A&&A.c(),v=Ye(),_&&_.c(),w(i,"class","search-button svelte-zh3kmv"),w(i,"type","button"),w(a,"placeholder",n[8]),w(a,"aria-label",n[8]),w(a,"class","svelte-zh3kmv"),w(c,"type","button"),w(c,"title",n[3]),w(c,"class","svelte-zh3kmv"),w(l,"class","clear-button-container svelte-zh3kmv"),sr(l,"displayable",n[1]!==""),w(r,"class","input-group svelte-zh3kmv"),w(e,"tabindex","0"),w(e,"class",I=ya(n[2])+" svelte-zh3kmv"),sr(e,"can-collapse",n[4]&&n[1]==="")},m(x,B){wt(x,t,B),wt(x,e,B),rt(e,r),rt(r,i),fn(o,i,null),rt(r,s),rt(r,a),n[61](a),_a(a,n[1]),rt(r,u),rt(r,l),rt(l,c),fn(f,c,null),rt(l,h),O&&O.m(l,null),rt(r,g),D&&D.m(r,null),rt(r,p),A&&A.m(r,null),rt(e,v),~d&&G[d].m(e,null),C=!0,N||(L=[xe(i,"click",n[60]),xe(a,"input",n[62]),xe(a,"focus",n[63]),xe(a,"blur",n[64]),xe(a,"keydown",n[22]),xe(a,"input",n[65]),xe(c,"click",n[66]),xe(e,"submit",wl(n[21]))],N=!0)},p(x,B){(!C||B[0]&256)&&w(a,"placeholder",x[8]),(!C||B[0]&256)&&w(a,"aria-label",x[8]),B[0]&2&&a.value!==x[1]&&_a(a,x[1]),(!C||B[0]&8)&&w(c,"title",x[3]),x[19]?O?B[0]&524288&&Bt(O,1):(O=ka(),O.c(),Bt(O,1),O.m(l,null)):O&&(To(),ie(O,1,1,()=>{O=null}),Do()),(!C||B[0]&2)&&sr(l,"displayable",x[1]!==""),x[5]===!0?D?(D.p(x,B),B[0]&32&&Bt(D,1)):(D=Ba(x),D.c(),Bt(D,1),D.m(r,p)):D&&(To(),ie(D,1,1,()=>{D=null}),Do()),A&&A.p&&(!C||B[1]&134217728)&&xl(A,b,x,x[58],C?Sl(b,x[58],B,null):Ll(x[58]),null);let K=d;d=ut(x),d===K?~d&&G[d].p(x,B):(_&&(To(),ie(G[K],1,1,()=>{G[K]=null}),Do()),~d?(_=G[d],_?_.p(x,B):(_=G[d]=Y[d](x),_.c()),Bt(_,1),_.m(e,null)):_=null),(!C||B[0]&4&&I!==(I=ya(x[2])+" svelte-zh3kmv"))&&w(e,"class",I),(!C||B[0]&22)&&sr(e,"can-collapse",x[4]&&x[1]==="")},i(x){C||(Bt(T),Bt(o.$$.fragment,x),Bt(f.$$.fragment,x),Bt(O),Bt(D),Bt(A,x),Bt(_),C=!0)},o(x){ie(T),ie(o.$$.fragment,x),ie(f.$$.fragment,x),ie(O),ie(D),ie(A,x),ie(_),C=!1},d(x){x&&(It(t),It(e)),hn(o),n[61](null),hn(f),O&&O.d(),D&&D.d(),A&&A.d(x),~d&&G[d].d(),N=!1,cn(L)}}}function bc(n,t,e){let r,{$$slots:i={},$$scope:o}=t,{class:s=void 0}=t,{apiKey:a}=t,{bbox:u=void 0}=t,{clearButtonTitle:l="clear"}=t,{clearOnBlur:c=!1}=t,{collapsed:f=!1}=t,{country:h=void 0}=t,{debounceSearch:g=200}=t,{enableReverse:p=!1}=t,{errorMessage:v="Something went wrong…"}=t,{filter:d=()=>!0}=t,{flyTo:_=!0}=t,{fuzzyMatch:I=!0}=t,{language:C=void 0}=t,{limit:N=void 0}=t,{mapController:L=void 0}=t,{minLength:T=2}=t,{noResultsMessage:O="Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!"}=t,{placeholder:D="Search"}=t,{proximity:b=[{type:"server-geolocation"}]}=t,{reverseActive:A=p==="always"}=t,{reverseButtonTitle:Y="toggle reverse geocoding"}=t,{searchValue:G=""}=t,{showFullGeometry:ut=!0}=t,{showPlaceType:x="ifNeeded"}=t,{showResultsWhileTyping:B=!0}=t,{selectFirst:K=!0}=t,{flyToSelected:bt=!1}=t,{markerOnSelected:re=!0}=t,{types:Qt=void 0}=t,{excludeTypes:an=!1}=t,{zoom:Ae=16}=t,{maxZoom:Xe=18}=t,{apiUrl:nr="https://api.maptiler.com/geocoding"}=t,{fetchParameters:Qn={}}=t,{iconsBaseUrl:xn="https://cdn.maptiler.com/maptiler-geocoding-control/v1.2.3/icons/"}=t,{adjustUrlQuery:ia=S=>{}}=t;function Qf(){un.focus()}function Kf(){un.blur()}function ml(S,Zt=!0,ir=!1){e(1,G=S),Zt?(e(15,Tt=-1),_l()):(ua(!ir,ir),setTimeout(()=>{un.focus(),un.select()}))}function Zf(){e(14,it=void 0),e(55,et=void 0),e(15,Tt=-1)}function Jf(){e(54,Kt=[]),e(55,et=void 0)}let ji=!1,it,Kt,et,yl="",un,Tt=-1,ln,gs=[],mi,Qi,ps,oa;const $f=new Set,Kn=Tl();Rl(()=>{L&&(L.setEventHandler(void 0),L.indicateReverse(!1),L.setSelectedMarker(-1),L.setMarkers(void 0,void 0))});function _l(S){if(Qi&&(clearTimeout(Qi),Qi=void 0),Tt>-1&&it)e(55,et=it[Tt]),e(1,G=et.place_type[0]==="reverse"?et.place_name:et.place_name.replace(/,.*/,"")),e(18,ln=void 0),e(54,Kt=void 0),e(15,Tt=-1);else if(G){const Zt=S||!sa(G);aa(G,{exact:!0}).then(()=>{e(54,Kt=it),e(55,et=void 0),Zt&&th()}).catch(ir=>e(18,ln=ir))}}function sa(S){try{return Cc(S,6)}catch{return!1}}async function aa(S,{byId:Zt=!1,exact:ir=!1}={}){e(18,ln=void 0),mi==null||mi.abort();const br=new AbortController;e(19,mi=br);try{const st=sa(S),wr=new URLSearchParams;if(C!==void 0&&wr.set("language",Array.isArray(C)?C.join(","):C??""),Qt&&wr.set("types",Qt.join(",")),an&&wr.set("excludeTypes",String(an)),u&&wr.set("bbox",u.map(vs=>vs.toFixed(6)).join(",")),h&&wr.set("country",Array.isArray(h)?h.join(","):h),!Zt&&!st){const vs=await cc(L,b,br);vs&&wr.set("proximity",vs),(ir||!B)&&wr.set("autocomplete","false"),wr.set("fuzzyMatch",String(I))}N!==void 0&&(!st||(Qt==null?void 0:Qt.length)===1)&&wr.set("limit",String(N)),wr.set("key",a),ia(wr);const ds=nr+"/"+encodeURIComponent(st?st.decimalLongitude+","+st.decimalLatitude:S)+".json?"+wr.toString();if(ds===yl){Zt?(e(14,it=void 0),e(55,et=gs[0])):e(14,it=gs);return}yl=ds;const ca=await fetch(ds,{signal:br.signal,...Qn});if(!ca.ok)throw new Error(await ca.text());const fa=await ca.json();Kn("response",{url:ds,featureCollection:fa}),Zt?(e(14,it=void 0),e(55,et=fa.features[0]),gs=[et]):(e(14,it=fa.features.filter(d)),st&&it.unshift({type:"Feature",properties:{},id:"reverse_"+st.decimalLongitude+"_"+st.decimalLatitude,text:st.decimalLatitude+", "+st.decimalLongitude,place_name:st.decimalLatitude+", "+st.decimalLongitude,place_type:["reverse"],center:[st.decimalLongitude,st.decimalLatitude],bbox:[st.decimalLongitude,st.decimalLatitude,st.decimalLongitude,st.decimalLatitude],geometry:{type:"Point",coordinates:[st.decimalLongitude,st.decimalLatitude]}}),gs=it,st&&un.focus())}catch(st){if(st&&typeof st=="object"&&"name"in st&&st.name==="AbortError")return;throw st}finally{br===mi&&e(19,mi=void 0)}}function th(){var ir;if(!(Kt!=null&&Kt.length)||!_)return;const S=[180,90,-180,-90],Zt=!Kt.some(br=>!br.matching_text);for(const br of Kt)if(Zt||!br.matching_text)for(const st of[0,1,2,3])S[st]=Math[st<2?"min":"max"](S[st],((ir=br.bbox)==null?void 0:ir[st])??br.center[st%2]);L&&Kt.length>0&&(et&&S[0]===S[2]&&S[1]===S[3]?L.flyTo(et.center,Ae):L.fitBounds(wa(S),50,Xe))}function eh(S){e(0,A=p==="always"),e(14,it=void 0),e(55,et=void 0),e(15,Tt=-1),ml(S[1].toFixed(6)+", "+lc(S[0],[-180,180],!0).toFixed(6),!1,!0)}function rh(S){if(!it)return;let Zt=S.key==="ArrowDown"?1:S.key==="ArrowUp"?-1:0;Zt&&(Tt===(K?0:-1)&&Zt===-1&&e(15,Tt=it.length),e(15,Tt+=Zt),Tt>=it.length&&e(15,Tt=-1),Tt<0&&K&&e(15,Tt=0),S.preventDefault())}function ua(S=!0,Zt=!1){if(e(18,ln=void 0),B||Zt){if(Qi&&clearTimeout(Qi),G.length<T)return;const ir=G;Qi=window.setTimeout(()=>{aa(ir).catch(br=>e(18,ln=br))},S?g:0)}else e(14,it=void 0),e(18,ln=void 0)}function la(S){e(55,et=S),e(1,G=S.place_name),e(15,Tt=-1)}const nh=()=>un.focus();function ih(S){ys[S?"unshift":"push"](()=>{un=S,e(17,un)})}function oh(){G=this.value,e(1,G),e(13,ji),e(27,c)}const sh=()=>e(13,ji=!0),ah=()=>e(13,ji=!1),uh=()=>ua(),lh=()=>{e(1,G=""),un.focus()},ch=()=>e(0,A=!A),fh=()=>e(18,ln=void 0),hh=S=>e(15,Tt=S),gh=S=>la(S),ph=()=>{K||e(15,Tt=-1)},dh=()=>{};return n.$$set=S=>{"class"in S&&e(2,s=S.class),"apiKey"in S&&e(25,a=S.apiKey),"bbox"in S&&e(26,u=S.bbox),"clearButtonTitle"in S&&e(3,l=S.clearButtonTitle),"clearOnBlur"in S&&e(27,c=S.clearOnBlur),"collapsed"in S&&e(4,f=S.collapsed),"country"in S&&e(28,h=S.country),"debounceSearch"in S&&e(29,g=S.debounceSearch),"enableReverse"in S&&e(5,p=S.enableReverse),"errorMessage"in S&&e(6,v=S.errorMessage),"filter"in S&&e(30,d=S.filter),"flyTo"in S&&e(31,_=S.flyTo),"fuzzyMatch"in S&&e(32,I=S.fuzzyMatch),"language"in S&&e(33,C=S.language),"limit"in S&&e(34,N=S.limit),"mapController"in S&&e(35,L=S.mapController),"minLength"in S&&e(36,T=S.minLength),"noResultsMessage"in S&&e(7,O=S.noResultsMessage),"placeholder"in S&&e(8,D=S.placeholder),"proximity"in S&&e(37,b=S.proximity),"reverseActive"in S&&e(0,A=S.reverseActive),"reverseButtonTitle"in S&&e(9,Y=S.reverseButtonTitle),"searchValue"in S&&e(1,G=S.searchValue),"showFullGeometry"in S&&e(38,ut=S.showFullGeometry),"showPlaceType"in S&&e(10,x=S.showPlaceType),"showResultsWhileTyping"in S&&e(39,B=S.showResultsWhileTyping),"selectFirst"in S&&e(11,K=S.selectFirst),"flyToSelected"in S&&e(40,bt=S.flyToSelected),"markerOnSelected"in S&&e(41,re=S.markerOnSelected),"types"in S&&e(42,Qt=S.types),"excludeTypes"in S&&e(43,an=S.excludeTypes),"zoom"in S&&e(44,Ae=S.zoom),"maxZoom"in S&&e(45,Xe=S.maxZoom),"apiUrl"in S&&e(46,nr=S.apiUrl),"fetchParameters"in S&&e(47,Qn=S.fetchParameters),"iconsBaseUrl"in S&&e(12,xn=S.iconsBaseUrl),"adjustUrlQuery"in S&&e(48,ia=S.adjustUrlQuery),"$$scope"in S&&e(58,o=S.$$scope)},n.$$.update=()=>{if(n.$$.dirty[0]&134225920&&setTimeout(()=>{e(16,ps=ji),c&&!ji&&e(1,G="")}),n.$$.dirty[0]&16386|n.$$.dirty[1]&32&&G.length<T&&(e(55,et=void 0),e(14,it=void 0),e(18,ln=void 0),e(54,Kt=it)),n.$$.dirty[1]&16777344&&ut&&et&&!et.address&&et.geometry.type==="Point"&&et.place_type[0]!=="reverse"&&aa(et.id,{byId:!0}).catch(S=>e(18,ln=S)),n.$$.dirty[1]&50356241&&(L&&et&&et.id!==oa&&_&&(!et.bbox||et.bbox[0]===et.bbox[2]&&et.bbox[1]===et.bbox[3]?L.flyTo(et.center,et.id.startsWith("poi.")||et.id.startsWith("address.")?Xe:Ae):L.fitBounds(wa(et.bbox),50,Xe),e(14,it=void 0),e(54,Kt=void 0),e(15,Tt=-1)),e(56,oa=et==null?void 0:et.id)),n.$$.dirty[0]&18432&&K&&it!=null&&it.length&&e(15,Tt=0),n.$$.dirty[0]&2050&&(K||e(15,Tt=-1)),n.$$.dirty[0]&16384|n.$$.dirty[1]&8388608&&Kt!==it&&e(54,Kt=void 0),n.$$.dirty[0]&81921|n.$$.dirty[1]&8388624&&L&&L.setEventHandler(S=>{switch(S.type){case"mapClick":A&&eh(S.coordinates);break;case"markerClick":{const Zt=it==null?void 0:it.find(ir=>ir.id===S.id);Zt&&la(Zt)}break;case"markerMouseEnter":Kt&&e(15,Tt=ps?(it==null?void 0:it.findIndex(Zt=>Zt.id===S.id))??-1:-1);break;case"markerMouseLeave":Kt&&e(15,Tt=-1);break}}),n.$$.dirty[0]&49152&&e(57,r=it==null?void 0:it[Tt]),n.$$.dirty[1]&67133969&&L&&r&&_&&bt&&L.flyTo(r.center,r.id.startsWith("poi.")||r.id.startsWith("address.")?Xe:Ae),n.$$.dirty[1]&1040&&(re||L==null||L.setMarkers(void 0,void 0)),n.$$.dirty[1]&75498512&&L&&re&&!Kt&&(L.setMarkers(r?[r]:void 0,void 0),L.setSelectedMarker(r?0:-1)),n.$$.dirty[1]&25165840&&L&&L.setMarkers(Kt,et),n.$$.dirty[0]&32768|n.$$.dirty[1]&8388624&&Kt&&L&&L.setSelectedMarker(Tt),n.$$.dirty[0]&2|n.$$.dirty[1]&16&&L){const S=sa(G);L.setReverseMarker(S?[S.decimalLongitude,S.decimalLatitude]:void 0)}n.$$.dirty[1]&67108864&&Kn("select",r),n.$$.dirty[1]&16777216&&Kn("pick",et),n.$$.dirty[0]&81920&&Kn("optionsVisibilityChange",ps&&!!it),n.$$.dirty[0]&16384&&Kn("featuresListed",it),n.$$.dirty[1]&8388608&&Kn("featuresMarked",Kt),n.$$.dirty[0]&1&&Kn("reverseToggle",A),n.$$.dirty[0]&2&&Kn("queryChange",G),n.$$.dirty[0]&1|n.$$.dirty[1]&16&&L&&L.indicateReverse(A)},[A,G,s,l,f,p,v,O,D,Y,x,K,xn,ji,it,Tt,ps,un,ln,mi,$f,_l,rh,ua,la,a,u,c,h,g,d,_,I,C,N,L,T,b,ut,B,bt,re,Qt,an,Ae,Xe,nr,Qn,ia,Qf,Kf,ml,Zf,Jf,Kt,et,oa,r,o,i,nh,ih,oh,sh,ah,uh,lh,ch,fh,hh,gh,ph,dh]}let wc=class extends On{constructor(t){super(),Pn(this,t,bc,Lc,Ln,{class:2,apiKey:25,bbox:26,clearButtonTitle:3,clearOnBlur:27,collapsed:4,country:28,debounceSearch:29,enableReverse:5,errorMessage:6,filter:30,flyTo:31,fuzzyMatch:32,language:33,limit:34,mapController:35,minLength:36,noResultsMessage:7,placeholder:8,proximity:37,reverseActive:0,reverseButtonTitle:9,searchValue:1,showFullGeometry:38,showPlaceType:10,showResultsWhileTyping:39,selectFirst:11,flyToSelected:40,markerOnSelected:41,types:42,excludeTypes:43,zoom:44,maxZoom:45,apiUrl:46,fetchParameters:47,iconsBaseUrl:12,adjustUrlQuery:48,focus:49,blur:50,setQuery:51,clearList:52,clearMap:53},null,[-1,-1,-1])}get focus(){return this.$$.ctx[49]}get blur(){return this.$$.ctx[50]}get setQuery(){return this.$$.ctx[51]}get clearList(){return this.$$.ctx[52]}get clearMap(){return this.$$.ctx[53]}};/**
|
|
1
|
+
(function(ht,mt){typeof exports=="object"&&typeof module<"u"?mt(exports,require("leaflet")):typeof define=="function"&&define.amd?define(["exports","leaflet"],mt):(ht=typeof globalThis<"u"?globalThis:ht||self,mt(ht.leafletMaptilerGeocoder={},ht.L))})(this,function(ht,mt){"use strict";var vh=Object.defineProperty;var mh=(ht,mt,ne)=>mt in ht?vh(ht,mt,{enumerable:!0,configurable:!0,writable:!0,value:ne}):ht[mt]=ne;var ha=(ht,mt,ne)=>(mh(ht,typeof mt!="symbol"?mt+"":mt,ne),ne),El=(ht,mt,ne)=>{if(!mt.has(ht))throw TypeError("Cannot "+ne)};var Xr=(ht,mt,ne)=>(El(ht,mt,"read from private field"),ne?ne.call(ht):mt.get(ht)),ga=(ht,mt,ne)=>{if(mt.has(ht))throw TypeError("Cannot add the same private member more than once");mt instanceof WeakSet?mt.add(ht):mt.set(ht,ne)},ms=(ht,mt,ne,or)=>(El(ht,mt,"write to private field"),or?or.call(ht,ne):mt.set(ht,ne),ne);var Lr,vi;function ne(n){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const e in n)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(t,e,r.get?r:{enumerable:!0,get:()=>n[e]})}}return t.default=n,Object.freeze(t)}const or=ne(mt);function Ct(){}function Cl(n,t){for(const e in t)n[e]=t[e];return n}function pa(n){return n()}function da(){return Object.create(null)}function cn(n){n.forEach(pa)}function va(n){return typeof n=="function"}function Ln(n,t){return n!=n?t==t:n!==t||n&&typeof n=="object"||typeof n=="function"}let Po;function _e(n,t){return n===t?!0:(Po||(Po=document.createElement("a")),Po.href=t,n===Po.href)}function Il(n){return Object.keys(n).length===0}function Nl(n,t,e,r){if(n){const i=ma(n,t,e,r);return n[0](i)}}function ma(n,t,e,r){return n[1]&&r?Cl(e.ctx.slice(),n[1](r(t))):e.ctx}function Sl(n,t,e,r){if(n[2]&&r){const i=n[2](r(e));if(t.dirty===void 0)return i;if(typeof i=="object"){const o=[],s=Math.max(t.dirty.length,i.length);for(let a=0;a<s;a+=1)o[a]=t.dirty[a]|i[a];return o}return t.dirty|i}return t.dirty}function xl(n,t,e,r,i,o){if(i){const s=ma(t,e,r,o);n.p(s,i)}}function Ll(n){if(n.ctx.length>32){const t=[],e=n.ctx.length/32;for(let r=0;r<e;r++)t[r]=-1;return t}return-1}function ya(n){return n??""}function rt(n,t){n.appendChild(t)}function wt(n,t,e){n.insertBefore(t,e||null)}function It(n){n.parentNode&&n.parentNode.removeChild(n)}function gt(n){return document.createElement(n)}function Pr(n){return document.createElementNS("http://www.w3.org/2000/svg",n)}function bn(n){return document.createTextNode(n)}function Ye(){return bn(" ")}function bl(){return bn("")}function xe(n,t,e,r){return n.addEventListener(t,e,r),()=>n.removeEventListener(t,e,r)}function wl(n){return function(t){return t.preventDefault(),n.call(this,t)}}function w(n,t,e){e==null?n.removeAttribute(t):n.getAttribute(t)!==e&&n.setAttribute(t,e)}function Pl(n){return Array.from(n.childNodes)}function Ki(n,t){t=""+t,n.data!==t&&(n.data=t)}function _a(n,t){n.value=t??""}function Oo(n,t,e,r){e==null?n.style.removeProperty(t):n.style.setProperty(t,e,"")}function sr(n,t,e){n.classList.toggle(t,!!e)}function Ol(n,t,{bubbles:e=!1,cancelable:r=!1}={}){return new CustomEvent(n,{detail:t,bubbles:e,cancelable:r})}let Zi;function Ji(n){Zi=n}function Ea(){if(!Zi)throw new Error("Function called outside component initialization");return Zi}function Rl(n){Ea().$$.on_destroy.push(n)}function Tl(){const n=Ea();return(t,e,{cancelable:r=!1}={})=>{const i=n.$$.callbacks[t];if(i){const o=Ol(t,e,{cancelable:r});return i.slice().forEach(s=>{s.call(n,o)}),!o.defaultPrevented}return!0}}function Ca(n,t){const e=n.$$.callbacks[t.type];e&&e.slice().forEach(r=>r.call(this,t))}const yi=[],ys=[];let _i=[];const Ia=[],Dl=Promise.resolve();let _s=!1;function Ml(){_s||(_s=!0,Dl.then(Na))}function Es(n){_i.push(n)}const Cs=new Set;let Ei=0;function Na(){if(Ei!==0)return;const n=Zi;do{try{for(;Ei<yi.length;){const t=yi[Ei];Ei++,Ji(t),Al(t.$$)}}catch(t){throw yi.length=0,Ei=0,t}for(Ji(null),yi.length=0,Ei=0;ys.length;)ys.pop()();for(let t=0;t<_i.length;t+=1){const e=_i[t];Cs.has(e)||(Cs.add(e),e())}_i.length=0}while(yi.length);for(;Ia.length;)Ia.pop()();_s=!1,Cs.clear(),Ji(n)}function Al(n){if(n.fragment!==null){n.update(),cn(n.before_update);const t=n.dirty;n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,t),n.after_update.forEach(Es)}}function Fl(n){const t=[],e=[];_i.forEach(r=>n.indexOf(r)===-1?t.push(r):e.push(r)),e.forEach(r=>r()),_i=t}const Ro=new Set;let Zn;function To(){Zn={r:0,c:[],p:Zn}}function Do(){Zn.r||cn(Zn.c),Zn=Zn.p}function Bt(n,t){n&&n.i&&(Ro.delete(n),n.i(t))}function ie(n,t,e,r){if(n&&n.o){if(Ro.has(n))return;Ro.add(n),Zn.c.push(()=>{Ro.delete(n),r&&(e&&n.d(1),r())}),n.o(t)}else r&&r()}function Sa(n){return(n==null?void 0:n.length)!==void 0?n:Array.from(n)}function kl(n,t){ie(n,1,1,()=>{t.delete(n.key)})}function Bl(n,t,e,r,i,o,s,a,u,l,c,f){let h=n.length,g=o.length,p=h;const v={};for(;p--;)v[n[p].key]=p;const d=[],_=new Map,I=new Map,C=[];for(p=g;p--;){const O=f(i,o,p),D=e(O);let b=s.get(D);b?C.push(()=>b.p(O,t)):(b=l(D,O),b.c()),_.set(D,d[p]=b),D in v&&I.set(D,Math.abs(p-v[D]))}const N=new Set,L=new Set;function T(O){Bt(O,1),O.m(a,c),s.set(O.key,O),c=O.first,g--}for(;h&&g;){const O=d[g-1],D=n[h-1],b=O.key,A=D.key;O===D?(c=O.first,h--,g--):_.has(A)?!s.has(b)||N.has(b)?T(O):L.has(A)?h--:I.get(b)>I.get(A)?(L.add(b),T(O)):(N.add(A),h--):(u(D,s),h--)}for(;h--;){const O=n[h];_.has(O.key)||u(O,s)}for(;g;)T(d[g-1]);return cn(C),d}function wn(n){n&&n.c()}function fn(n,t,e){const{fragment:r,after_update:i}=n.$$;r&&r.m(t,e),Es(()=>{const o=n.$$.on_mount.map(pa).filter(va);n.$$.on_destroy?n.$$.on_destroy.push(...o):cn(o),n.$$.on_mount=[]}),i.forEach(Es)}function hn(n,t){const e=n.$$;e.fragment!==null&&(Fl(e.after_update),cn(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[])}function Gl(n,t){n.$$.dirty[0]===-1&&(yi.push(n),Ml(),n.$$.dirty.fill(0)),n.$$.dirty[t/31|0]|=1<<t%31}function Pn(n,t,e,r,i,o,s=null,a=[-1]){const u=Zi;Ji(n);const l=n.$$={fragment:null,ctx:[],props:o,update:Ct,not_equal:i,bound:da(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:da(),dirty:a,skip_bound:!1,root:t.target||u.$$.root};s&&s(l.root);let c=!1;if(l.ctx=e?e(n,t.props||{},(f,h,...g)=>{const p=g.length?g[0]:h;return l.ctx&&i(l.ctx[f],l.ctx[f]=p)&&(!l.skip_bound&&l.bound[f]&&l.bound[f](p),c&&Gl(n,f)),h}):[],l.update(),c=!0,cn(l.before_update),l.fragment=r?r(l.ctx):!1,t.target){if(t.hydrate){const f=Pl(t.target);l.fragment&&l.fragment.l(f),f.forEach(It)}else l.fragment&&l.fragment.c();t.intro&&Bt(n.$$.fragment),fn(n,t.target,t.anchor),Na()}Ji(u)}class On{constructor(){ha(this,"$$");ha(this,"$$set")}$destroy(){hn(this,1),this.$destroy=Ct}$on(t,e){if(!va(e))return Ct;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{const i=r.indexOf(e);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!Il(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const zl="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(zl);function Vl(n){let t,e;return{c(){t=Pr("svg"),e=Pr("path"),w(e,"d","M13.12.706a.982.982 0 0 0-1.391 0L6.907 5.517 2.087.696a.982.982 0 1 0-1.391 1.39l4.821 4.821L.696 11.73a.982.982 0 1 0 1.39 1.39l4.821-4.821 4.822 4.821a.982.982 0 1 0 1.39-1.39L8.298 6.908l4.821-4.822a.988.988 0 0 0 0-1.38Z"),w(t,"viewBox","0 0 14 14"),w(t,"width","13"),w(t,"height","13"),w(t,"class","svelte-en2qvf")},m(r,i){wt(r,t,i),rt(t,e)},p:Ct,i:Ct,o:Ct,d(r){r&&It(t)}}}class xa extends On{constructor(t){super(),Pn(this,t,null,Vl,Ln,{})}}function Ul(n){let t,e;return{c(){t=Pr("svg"),e=Pr("path"),w(e,"d","M15 0C6.705 0 0 6.705 0 15C0 23.295 6.705 30 15 30C23.295 30 30 23.295 30 15C30 6.705 23.295 0 15 0ZM22.5 20.385L20.385 22.5L15 17.115L9.615 22.5L7.5 20.385L12.885 15L7.5 9.615L9.615 7.5L15 12.885L20.385 7.5L22.5 9.615L17.115 15L22.5 20.385Z"),w(t,"viewBox","0 0 30 30"),w(t,"fill","none"),w(t,"xmlns","http://www.w3.org/2000/svg"),w(t,"class","svelte-d2loi5")},m(r,i){wt(r,t,i),rt(t,e)},p:Ct,i:Ct,o:Ct,d(r){r&&It(t)}}}class La extends On{constructor(t){super(),Pn(this,t,null,Ul,Ln,{})}}function ql(n){let t,e;return{c(){t=gt("img"),_e(t.src,e=n[3]+"area.svg")||w(t,"src",e),w(t,"alt",n[6]),w(t,"class","svelte-ltkwvy")},m(r,i){wt(r,t,i)},p(r,i){i&8&&!_e(t.src,e=r[3]+"area.svg")&&w(t,"src",e),i&64&&w(t,"alt",r[6])},d(r){r&&It(t)}}}function Xl(n){let t,e;return{c(){t=gt("img"),_e(t.src,e=n[3]+"reverse.svg")||w(t,"src",e),w(t,"alt",n[6]),w(t,"class","svelte-ltkwvy")},m(r,i){wt(r,t,i)},p(r,i){i&8&&!_e(t.src,e=r[3]+"reverse.svg")&&w(t,"src",e),i&64&&w(t,"alt",r[6])},d(r){r&&It(t)}}}function Yl(n){let t,e;return{c(){t=gt("img"),_e(t.src,e=n[3]+"poi.svg")||w(t,"src",e),w(t,"alt",n[6]),w(t,"class","svelte-ltkwvy")},m(r,i){wt(r,t,i)},p(r,i){i&8&&!_e(t.src,e=r[3]+"poi.svg")&&w(t,"src",e),i&64&&w(t,"alt",r[6])},d(r){r&&It(t)}}}function Wl(n){let t,e;return{c(){t=gt("img"),_e(t.src,e=n[3]+"postal_code.svg")||w(t,"src",e),w(t,"alt",n[6]),w(t,"class","svelte-ltkwvy")},m(r,i){wt(r,t,i)},p(r,i){i&8&&!_e(t.src,e=r[3]+"postal_code.svg")&&w(t,"src",e),i&64&&w(t,"alt",r[6])},d(r){r&&It(t)}}}function Hl(n){let t,e;return{c(){t=gt("img"),_e(t.src,e=n[3]+"street.svg")||w(t,"src",e),w(t,"alt",n[6]),w(t,"class","svelte-ltkwvy")},m(r,i){wt(r,t,i)},p(r,i){i&8&&!_e(t.src,e=r[3]+"street.svg")&&w(t,"src",e),i&64&&w(t,"alt",r[6])},d(r){r&&It(t)}}}function jl(n){let t,e;return{c(){t=gt("img"),_e(t.src,e=n[3]+"road.svg")||w(t,"src",e),w(t,"alt",n[6]),w(t,"class","svelte-ltkwvy")},m(r,i){wt(r,t,i)},p(r,i){i&8&&!_e(t.src,e=r[3]+"road.svg")&&w(t,"src",e),i&64&&w(t,"alt",r[6])},d(r){r&&It(t)}}}function Ql(n){let t,e;return{c(){t=gt("img"),_e(t.src,e=n[3]+"housenumber.svg")||w(t,"src",e),w(t,"alt",n[6]),w(t,"class","svelte-ltkwvy")},m(r,i){wt(r,t,i)},p(r,i){i&8&&!_e(t.src,e=r[3]+"housenumber.svg")&&w(t,"src",e),i&64&&w(t,"alt",r[6])},d(r){r&&It(t)}}}function Kl(n){let t,e,r,i;return{c(){t=gt("img"),_e(t.src,e=n[5])||w(t,"src",e),w(t,"alt",n[4]),w(t,"class","svelte-ltkwvy")},m(o,s){wt(o,t,s),r||(i=xe(t,"error",n[14]),r=!0)},p(o,s){s&32&&!_e(t.src,e=o[5])&&w(t,"src",e),s&16&&w(t,"alt",o[4])},d(o){o&&It(t),r=!1,i()}}}function ba(n){let t,e;return{c(){t=gt("span"),e=bn(n[6]),w(t,"class","secondary svelte-ltkwvy")},m(r,i){wt(r,t,i),rt(t,e)},p(r,i){i&64&&Ki(e,r[6])},d(r){r&&It(t)}}}function Zl(n){var O,D;let t,e,r,i,o,s,a,u,l=(n[7]?n[0].place_name:n[0].place_name.replace(/,.*/,""))+"",c,f,h=n[2]==="always"||n[2]&&!n[0].address&&((O=n[0].properties)==null?void 0:O.kind)!=="road"&&((D=n[0].properties)==null?void 0:D.kind)!=="road_relation"&&!n[0].id.startsWith("address.")&&!n[0].id.startsWith("postal_code.")&&(!n[0].id.startsWith("poi.")||!n[5])&&!n[7],g,p,v=(n[7]?"":n[0].place_name.replace(/[^,]*,?\s*/,""))+"",d,_,I;function C(b,A){var Y,G;return A&1&&(e=null),A&1&&(r=null),A&1&&(i=null),b[5]?Kl:b[0].address?Ql:((Y=b[0].properties)==null?void 0:Y.kind)==="road"||((G=b[0].properties)==null?void 0:G.kind)==="road_relation"?jl:(e==null&&(e=!!b[0].id.startsWith("address.")),e?Hl:(r==null&&(r=!!b[0].id.startsWith("postal_code.")),r?Wl:(i==null&&(i=!!b[0].id.startsWith("poi.")),i?Yl:b[7]?Xl:ql)))}let N=C(n,-1),L=N(n),T=h&&ba(n);return{c(){t=gt("li"),L.c(),o=Ye(),s=gt("span"),a=gt("span"),u=gt("span"),c=bn(l),f=Ye(),T&&T.c(),g=Ye(),p=gt("span"),d=bn(v),w(u,"class","primary svelte-ltkwvy"),w(a,"class","svelte-ltkwvy"),w(p,"class","line2 svelte-ltkwvy"),w(s,"class","texts svelte-ltkwvy"),w(t,"tabindex","0"),w(t,"data-selected",n[1]),w(t,"class","svelte-ltkwvy"),sr(t,"selected",n[1])},m(b,A){wt(b,t,A),L.m(t,null),rt(t,o),rt(t,s),rt(s,a),rt(a,u),rt(u,c),rt(a,f),T&&T.m(a,null),rt(s,g),rt(s,p),rt(p,d),_||(I=[xe(t,"mouseenter",n[12]),xe(t,"focus",n[13])],_=!0)},p(b,[A]){var Y,G;N===(N=C(b,A))&&L?L.p(b,A):(L.d(1),L=N(b),L&&(L.c(),L.m(t,o))),A&1&&l!==(l=(b[7]?b[0].place_name:b[0].place_name.replace(/,.*/,""))+"")&&Ki(c,l),A&37&&(h=b[2]==="always"||b[2]&&!b[0].address&&((Y=b[0].properties)==null?void 0:Y.kind)!=="road"&&((G=b[0].properties)==null?void 0:G.kind)!=="road_relation"&&!b[0].id.startsWith("address.")&&!b[0].id.startsWith("postal_code.")&&(!b[0].id.startsWith("poi.")||!b[5])&&!b[7]),h?T?T.p(b,A):(T=ba(b),T.c(),T.m(a,null)):T&&(T.d(1),T=null),A&1&&v!==(v=(b[7]?"":b[0].place_name.replace(/[^,]*,?\s*/,""))+"")&&Ki(d,v),A&2&&w(t,"data-selected",b[1]),A&2&&sr(t,"selected",b[1])},i:Ct,o:Ct,d(b){b&&It(t),L.d(),T&&T.d(),_=!1,cn(I)}}}function Jl(n,t,e){var C;let r,i,{feature:o}=t,{selected:s=!1}=t,{showPlaceType:a}=t,{missingIconsCache:u}=t,{iconsBaseUrl:l}=t;const c=(C=o.properties)==null?void 0:C.categories;let f,h,g=0,p=o.place_type[0]==="reverse";function v(N){h&&u.add(h),e(10,g++,g)}function d(N){Ca.call(this,n,N)}function _(N){Ca.call(this,n,N)}const I=N=>v(N.currentTarget);return n.$$set=N=>{"feature"in N&&e(0,o=N.feature),"selected"in N&&e(1,s=N.selected),"showPlaceType"in N&&e(2,a=N.showPlaceType),"missingIconsCache"in N&&e(9,u=N.missingIconsCache),"iconsBaseUrl"in N&&e(3,l=N.iconsBaseUrl)},n.$$.update=()=>{var N,L,T,O;if(n.$$.dirty&3640)do e(11,r--,r),e(4,f=c==null?void 0:c[r]),e(5,h=f?l+f.replace(/ /g,"_")+".svg":void 0);while(r>-1&&(!h||u.has(h)));n.$$.dirty&1&&e(6,i=o.id.startsWith("poi.")?(L=(N=o.properties)==null?void 0:N.categories)==null?void 0:L.join(", "):((O=(T=o.properties)==null?void 0:T.place_type_name)==null?void 0:O[0])??o.place_type[0])},e(11,r=(c==null?void 0:c.length)??0),[o,s,a,l,f,h,i,p,v,u,g,r,d,_,I]}class $l extends On{constructor(t){super(),Pn(this,t,Jl,Zl,Ln,{feature:0,selected:1,showPlaceType:2,missingIconsCache:9,iconsBaseUrl:3})}}function tc(n){let t;return{c(){t=gt("div"),t.innerHTML='<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>',w(t,"class","svelte-7cmwmc")},m(e,r){wt(e,t,r)},p:Ct,i:Ct,o:Ct,d(e){e&&It(t)}}}class ec extends On{constructor(t){super(),Pn(this,t,null,tc,Ln,{})}}function rc(n){let t,e,r;return{c(){t=Pr("svg"),e=Pr("path"),w(e,"stroke-width","4"),w(e,"d","M 5,33.103579 C 5,17.607779 18.457,5 35,5 C 51.543,5 65,17.607779 65,33.103579 C 65,56.388679 40.4668,76.048179 36.6112,79.137779 C 36.3714,79.329879 36.2116,79.457979 36.1427,79.518879 C 35.8203,79.800879 35.4102,79.942779 35,79.942779 C 34.5899,79.942779 34.1797,79.800879 33.8575,79.518879 C 33.7886,79.457979 33.6289,79.330079 33.3893,79.138079 C 29.5346,76.049279 5,56.389379 5,33.103579 Z M 35.0001,49.386379 C 43.1917,49.386379 49.8323,42.646079 49.8323,34.331379 C 49.8323,26.016779 43.1917,19.276479 35.0001,19.276479 C 26.8085,19.276479 20.1679,26.016779 20.1679,34.331379 C 20.1679,42.646079 26.8085,49.386379 35.0001,49.386379 Z"),w(e,"class","svelte-gzo3ar"),w(t,"width",r=n[0]==="list"?20:void 0),w(t,"viewBox","0 0 70 85"),w(t,"fill","none"),w(t,"class","svelte-gzo3ar"),sr(t,"in-map",n[0]!=="list"),sr(t,"list-icon",n[0]==="list")},m(i,o){wt(i,t,o),rt(t,e)},p(i,[o]){o&1&&r!==(r=i[0]==="list"?20:void 0)&&w(t,"width",r),o&1&&sr(t,"in-map",i[0]!=="list"),o&1&&sr(t,"list-icon",i[0]==="list")},i:Ct,o:Ct,d(i){i&&It(t)}}}function nc(n,t,e){let{displayIn:r}=t;return n.$$set=i=>{"displayIn"in i&&e(0,r=i.displayIn)},[r]}class ic extends On{constructor(t){super(),Pn(this,t,nc,rc,Ln,{displayIn:0})}}function oc(n){let t,e;return{c(){t=Pr("svg"),e=Pr("path"),w(e,"d","M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"),w(t,"viewBox","0 0 60.006 21.412"),w(t,"width","14"),w(t,"height","20"),w(t,"class","svelte-en2qvf")},m(r,i){wt(r,t,i),rt(t,e)},p:Ct,i:Ct,o:Ct,d(r){r&&It(t)}}}class sc extends On{constructor(t){super(),Pn(this,t,null,oc,Ln,{})}}function ac(n){let t,e,r;return{c(){t=Pr("svg"),e=Pr("circle"),r=Pr("path"),w(e,"cx","4.789"),w(e,"cy","4.787"),w(e,"r","3.85"),Oo(e,"stroke-width","1.875"),Oo(e,"fill","none"),w(r,"d","M12.063 12.063 7.635 7.635"),Oo(r,"stroke-width","1.875"),Oo(r,"stroke-linecap","round"),w(t,"xmlns","http://www.w3.org/2000/svg"),w(t,"width","13"),w(t,"height","13"),w(t,"viewBox","0 0 13 13"),w(t,"class","svelte-1bpbt60")},m(i,o){wt(i,t,o),rt(t,e),rt(t,r)},p:Ct,i:Ct,o:Ct,d(i){i&&It(t)}}}class uc extends On{constructor(t){super(),Pn(this,t,null,ac,Ln,{})}}function lc(n,t,e){const r=t[1],i=t[0],o=r-i;return n===r&&e?n:((n-i)%o+o)%o+i}function wa(n){const t=[...n];return t[2]<t[0]&&(t[2]+=360),t}let $i;async function cc(n,t,e){const r=n==null?void 0:n.getCenterAndZoom();for(const i of t??[])if(!(r&&(i.minZoom!=null&&i.minZoom>r[0]||i.maxZoom!=null&&i.maxZoom<r[0]))){if(i.type==="fixed")return i.coordinates.join(",");t:if(i.type==="client-geolocation"){if($i&&i.cachedLocationExpiry&&$i.time+i.cachedLocationExpiry>Date.now()){if(!$i.coords)break t;return $i.coords}let o;try{return o=await new Promise((s,a)=>{e.signal.addEventListener("abort",()=>{a(Error("aborted"))}),navigator.geolocation.getCurrentPosition(u=>{s([u.coords.longitude,u.coords.latitude].map(l=>l.toFixed(6)).join(","))},u=>{a(u)},i)}),o}catch{}finally{i.cachedLocationExpiry&&($i={time:Date.now(),coords:o})}if(e.signal.aborted)return}if(i.type==="server-geolocation")return"ip";if(r&&i.type==="map-center")return r[1].toFixed(6)+","+r[2].toFixed(6)}}const Pa=/([+-]?[0-8]?[0-9])\s+([0-5]?[0-9]\.\d{3,})[\s,]{1,}([+-]?[0-1]?[0-9]?[0-9])\s+([0-5]?[0-9]\.\d{3,})/,Oa=/(NORTH|SOUTH|[NS])?[\s]*([+-]?[0-8]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(NORTH|SOUTH|[NS])?[\s]*[,/;]?[\s]*(EAST|WEST|[EW])?[\s]*([+-]?[0-1]?[0-9]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(EAST|WEST|[EW])?/i,Ra=/(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(EAST|WEST|[EW])?/i,Ta=/(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)\s*(EAST|WEST|[EW])?/i,Da=/(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|’’|´´|["″”\.])?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|´´|’’|["″”\.])?\s*(EAST|WEST|[EW])?/i;function fc(n){if(!["DMS","DM","DD"].includes(n))throw new Error("invalid format specified");if(this.decimalCoordinates&&this.decimalCoordinates.trim()){if(n=="DD")return this.decimalCoordinates;const t=this.decimalCoordinates.split(",").map(s=>Number(s.trim()));let e=Ma(t[0],n),r=Ma(t[1],n);e.endsWith('.0"')&&r.endsWith('.0"')&&(e=e.replace(/\.0"$/,'"'),r=r.replace(/\.0"$/,'"'));const i=t[0]>=0?" N":" S",o=t[1]>=0?" E":" W";return`${e+i}, ${r+o}`}else throw new Error("no decimal coordinates to convert")}function Ma(n,t){const e=Math.abs(n),r=Math.floor(e),i=(e-r)*60;if(t=="DM"){let a=hc(i,3).toFixed(3).padStart(6,"0");return`${r}° ${a}'`}let o=Math.floor(i),s=((i-o)*60).toFixed(1).padStart(4,"0");return o=o.toString().padStart(2,"0"),`${r}° ${o}' ${s}"`}function hc(n,t){const e=Math.pow(10,t);return Math.round((n+Number.EPSILON)*e)/e}function Is(n,t){t||(t=5),n=n.replace(/\s+/g," ").trim();let e=null,r=null,i="",o="",s=[],a=!1;if(Pa.test(n))if(s=Pa.exec(n),a=to(s),a)e=Math.abs(s[1])+s[2]/60,Number(s[1])<0&&(e*=-1),r=Math.abs(s[3])+s[4]/60,Number(s[3])<0&&(r*=-1);else throw new Error("invalid coordinate format");else if(Oa.test(n))if(s=Oa.exec(n),a=to(s),a){if(e=s[2],r=s[6],e.includes(",")&&(e=e.replace(",",".")),r.includes(",")&&(r=r.replace(",",".")),Number(Math.round(e))==Number(e))throw new Error("integer only coordinate provided");if(Number(Math.round(r))==Number(r))throw new Error("integer only coordinate provided");s[1]?(i=s[1],o=s[5]):s[4]&&(i=s[4],o=s[8])}else throw new Error("invalid decimal coordinate format");else if(Ra.test(n))if(s=Ra.exec(n),a=to(s),a)e=Math.abs(parseInt(s[2])),s[4]&&(e+=s[4]/60),s[6]&&(e+=s[6].replace(",",".")/3600),parseInt(s[2])<0&&(e=-1*e),r=Math.abs(parseInt(s[9])),s[11]&&(r+=s[11]/60),s[13]&&(r+=s[13].replace(",",".")/3600),parseInt(s[9])<0&&(r=-1*r),s[1]?(i=s[1],o=s[8]):s[7]&&(i=s[7],o=s[14]);else throw new Error("invalid DMS coordinates format");else if(Ta.test(n))if(s=Ta.exec(n),a=to(s),a)e=Math.abs(parseInt(s[2])),s[4]&&(e+=s[4]/60),s[6]&&(e+=s[6]/3600),parseInt(s[2])<0&&(e=-1*e),r=Math.abs(parseInt(s[10])),s[12]&&(r+=s[12]/60),s[14]&&(r+=s[14]/3600),parseInt(s[10])<0&&(r=-1*r),s[1]?(i=s[1],o=s[9]):s[8]&&(i=s[8],o=s[16]);else throw new Error("invalid DMS coordinates format");else if(Da.test(n))if(s=Da.exec(n),a=to(s),a)e=Math.abs(parseInt(s[2])),s[4]&&(e+=s[4].replace(",",".")/60),s[6]&&(e+=s[6].replace(",",".")/3600),parseInt(s[2])<0&&(e=-1*e),r=Math.abs(parseInt(s[10])),s[12]&&(r+=s[12].replace(",",".")/60),s[14]&&(r+=s[14].replace(",",".")/3600),parseInt(s[10])<0&&(r=-1*r),s[1]?(i=s[1],o=s[9]):s[8]&&(i=s[8],o=s[16]);else throw new Error("invalid coordinates format");if(a){if(Math.abs(r)>=180)throw new Error("invalid longitude value");if(Math.abs(e)>=90)throw new Error("invalid latitude value");if((i||o)&&(!i||!o))throw new Error("invalid coordinates format");if(i&&i==o)throw new Error("invalid coordinates format");let u=/S|SOUTH/i;u.test(i)&&e>0&&(e=-1*e),u=/W|WEST/i,u.test(o)&&r>0&&(r=-1*r);const l=s[0].trim();let c,f;const h=/[,/;\u0020]/g,g=l.match(h);if(g==null){const d=Math.floor(n.length/2);c=l.substring(0,d).trim(),f=l.substring(d).trim()}else{let d;g.length%2==1?d=Math.floor(g.length/2):d=g.length/2-1;let _=0;if(d==0)_=l.indexOf(g[0]),c=l.substring(0,_).trim(),f=l.substring(_+1).trim();else{let I=0,C=0;for(;I<=d;)_=l.indexOf(g[I],C),C=_+1,I++;c=l.substring(0,_).trim(),f=l.substring(_+1).trim()}}const p=c.split(".");if(p.length==2&&p[1]==0&&p[1].length!=2)throw new Error("invalid coordinates format");const v=f.split(".");if(v.length==2&&v[1]==0&&v[1].length!=2)throw new Error("invalid coordinates format");if(/^\d+$/.test(c)||/^\d+$/.test(f))throw new Error("degree only coordinate/s provided");return isNaN(e)&&e.includes(",")&&(e=e.replace(",",".")),e=Number(Number(e).toFixed(t)),isNaN(r)&&r.includes(",")&&(r=r.replace(",",".")),r=Number(Number(r).toFixed(t)),Object.freeze({verbatimCoordinates:l,verbatimLatitude:c,verbatimLongitude:f,decimalLatitude:e,decimalLongitude:r,decimalCoordinates:`${e},${r}`,closeEnough:gc,toCoordinateFormat:fc})}else throw new Error("coordinates pattern match failed")}function to(n){if(!isNaN(n[0]))return!1;const t=[...n];if(t.shift(),t.length%2>0)return!1;const e=/^[-+]?\d+([\.,]\d+)?$/,r=/[eastsouthnorthwest]+/i,i=t.length/2;for(let o=0;o<i;o++){const s=t[o],a=t[o+i],u=e.test(s)&&e.test(a),l=r.test(s)&&r.test(a),c=s==a;if(!(s==null&&a==null)){if(s==null||a==null)return!1;if(u||l||c)continue;return!1}}return!0}function Aa(n,t){const e=Math.abs(n-t);return Number(e.toFixed(6))<=1e-5}function gc(n){if(n.includes(",")){const t=n.split(",");if(Number(t[0])==NaN||Number(t[1])==NaN)throw new Error("coords are not valid decimals");return Aa(this.decimalLatitude,Number(t[0]))&&Aa(this.decimalLongitude,t[1])}else throw new Error("coords being tested must be separated by a comma")}const pc=Object.freeze({DMS:"DMS",DM:"DM",DD:"DD"});Is.to=pc;const dc=[{verbatimCoordinates:"40.123, -74.123",verbatimLatitude:"40.123",verbatimLongitude:"-74.123"},{verbatimCoordinates:"40.123° N 74.123° W",verbatimLatitude:"40.123° N",verbatimLongitude:"74.123° W"},{verbatimCoordinates:"40.123° N 74.123° W",verbatimLatitude:"40.123° N",verbatimLongitude:"74.123° W"},{verbatimCoordinates:'40° 7´ 22.8" N 74° 7´ 22.8" W',verbatimLatitude:'40° 7´ 22.8" N',verbatimLongitude:'74° 7´ 22.8" W'},{verbatimCoordinates:"40° 7.38’ , -74° 7.38’",verbatimLatitude:"40° 7.38’",verbatimLongitude:"-74° 7.38’"},{verbatimCoordinates:"N40°7’22.8’’, W74°7’22.8’’",verbatimLatitude:"N40°7’22.8’’",verbatimLongitude:"W74°7’22.8’’"},{verbatimCoordinates:'40°7’22.8"N, 74°7’22.8"W',verbatimLatitude:'40°7’22.8"N',verbatimLongitude:'74°7’22.8"W'},{verbatimCoordinates:`40°7'22.8"N, 74°7'22.8"W`,verbatimLatitude:`40°7'22.8"N`,verbatimLongitude:`74°7'22.8"W`},{verbatimCoordinates:"40 7 22.8, -74 7 22.8",verbatimLatitude:"40 7 22.8",verbatimLongitude:"-74 7 22.8"},{verbatimCoordinates:"40.123 -74.123",verbatimLatitude:"40.123",verbatimLongitude:"-74.123"},{verbatimCoordinates:"40.123°,-74.123°",verbatimLatitude:"40.123°",verbatimLongitude:"-74.123°"},{verbatimCoordinates:"40.123N74.123W",verbatimLatitude:"40.123N",verbatimLongitude:"74.123W"},{verbatimCoordinates:"4007.38N7407.38W",verbatimLatitude:"4007.38N",verbatimLongitude:"7407.38W"},{verbatimCoordinates:'40°7’22.8"N, 74°7’22.8"W',verbatimLatitude:'40°7’22.8"N',verbatimLongitude:'74°7’22.8"W'},{verbatimCoordinates:"400722.8N740722.8W",verbatimLatitude:"400722.8N",verbatimLongitude:"740722.8W"},{verbatimCoordinates:"N 40 7.38 W 74 7.38",verbatimLatitude:"N 40 7.38",verbatimLongitude:"W 74 7.38"},{verbatimCoordinates:"40:7:22.8N 74:7:22.8W",verbatimLatitude:"40:7:22.8N",verbatimLongitude:"74:7:22.8W"},{verbatimCoordinates:"40:7:23N,74:7:23W",verbatimLatitude:"40:7:23N",verbatimLongitude:"74:7:23W",decimalLatitude:40.1230555555,decimalLongitude:-74.1230555555},{verbatimCoordinates:'40°7’23"N 74°7’23"W',verbatimLatitude:'40°7’23"N',verbatimLongitude:'74°7’23"W',decimalLatitude:40.1230555555,decimalLongitude:-74.12305555555555},{verbatimCoordinates:'40°7’23"S 74°7’23"E',verbatimLatitude:'40°7’23"S',verbatimLongitude:'74°7’23"E',decimalLatitude:-40.1230555555,decimalLongitude:74.12305555555555},{verbatimCoordinates:'40°7’23" -74°7’23"',verbatimLatitude:'40°7’23"',verbatimLongitude:'-74°7’23"',decimalLatitude:40.1230555555,decimalLongitude:-74.123055555},{verbatimCoordinates:'40d 7’ 23" N 74d 7’ 23" W',verbatimLatitude:'40d 7’ 23" N',verbatimLongitude:'74d 7’ 23" W',decimalLatitude:40.1230555555,decimalLongitude:-74.123055555},{verbatimCoordinates:"40.123N 74.123W",verbatimLatitude:"40.123N",verbatimLongitude:"74.123W"},{verbatimCoordinates:"40° 7.38, -74° 7.38",verbatimLatitude:"40° 7.38",verbatimLongitude:"-74° 7.38"},{verbatimCoordinates:"40° 7.38, -74° 7.38",verbatimLatitude:"40° 7.38",verbatimLongitude:"-74° 7.38"},{verbatimCoordinates:"40 7 22.8; -74 7 22.8",verbatimLatitude:"40 7 22.8",verbatimLongitude:"-74 7 22.8"}],vc={decimalLatitude:40.123,decimalLongitude:-74.123},mc=[{verbatimCoordinates:`50°4'17.698"south, 14°24'2.826"east`,verbatimLatitude:`50°4'17.698"south`,verbatimLongitude:`14°24'2.826"east`,decimalLatitude:-50.07158277777778,decimalLongitude:14.400785},{verbatimCoordinates:"50d4m17.698S 14d24m2.826E",verbatimLatitude:"50d4m17.698S",verbatimLongitude:"14d24m2.826E",decimalLatitude:-50.07158277777778,decimalLongitude:14.400785},{verbatimCoordinates:"40:26:46N,79:56:55W",verbatimLatitude:"40:26:46N",verbatimLongitude:"79:56:55W",decimalLatitude:40.44611111111111,decimalLongitude:-79.9486111111111},{verbatimCoordinates:"40:26:46.302N 79:56:55.903W",verbatimLatitude:"40:26:46.302N",verbatimLongitude:"79:56:55.903W",decimalLatitude:40.446195,decimalLongitude:-79.94886194444445},{verbatimCoordinates:"40°26′47″N 79°58′36″W",verbatimLatitude:"40°26′47″N",verbatimLongitude:"79°58′36″W",decimalLatitude:40.44638888888889,decimalLongitude:-79.97666666666667},{verbatimCoordinates:"40d 26′ 47″ N 79d 58′ 36″ W",verbatimLatitude:"40d 26′ 47″ N",verbatimLongitude:"79d 58′ 36″ W",decimalLatitude:40.44638888888889,decimalLongitude:-79.97666666666667},{verbatimCoordinates:"40.446195N 79.948862W",verbatimLatitude:"40.446195N",verbatimLongitude:"79.948862W",decimalLatitude:40.446195,decimalLongitude:-79.948862},{verbatimCoordinates:"40,446195° 79,948862°",verbatimLatitude:"40,446195°",verbatimLongitude:"79,948862°",decimalLatitude:40.446195,decimalLongitude:79.948862},{verbatimCoordinates:"40° 26.7717, -79° 56.93172",verbatimLatitude:"40° 26.7717",verbatimLongitude:"-79° 56.93172",decimalLatitude:40.446195,decimalLongitude:-79.948862},{verbatimCoordinates:"40.446195, -79.948862",verbatimLatitude:"40.446195",verbatimLongitude:"-79.948862",decimalLatitude:40.446195,decimalLongitude:-79.948862},{verbatimCoordinates:"40.123256; -74.123256",verbatimLatitude:"40.123256",verbatimLongitude:"-74.123256",decimalLatitude:40.123256,decimalLongitude:-74.123256},{verbatimCoordinates:"18°24S 22°45E",verbatimLatitude:"18°24S",verbatimLongitude:"22°45E",decimalLatitude:-18.4,decimalLongitude:22.75}],yc=[{verbatimCoordinates:"10.432342S 10.6345345E",verbatimLatitude:"10.432342S",verbatimLongitude:"10.6345345E",decimalLatitude:-10.432342,decimalLongitude:10.6345345},{verbatimCoordinates:"10.00S 10.00E",verbatimLatitude:"10.00S",verbatimLongitude:"10.00E",decimalLatitude:-10,decimalLongitude:10},{verbatimCoordinates:"00.00S 01.00E",verbatimLatitude:"00.00S",verbatimLongitude:"01.00E",decimalLatitude:0,decimalLongitude:1},{verbatimCoordinates:"18.24S 22.45E",verbatimLatitude:"18.24S",verbatimLongitude:"22.45E",decimalLatitude:-18.4,decimalLongitude:22.75},{verbatimCoordinates:"27deg 15min 45.2sec S 18deg 32min 53.7sec E",verbatimLatitude:"27deg 15min 45.2sec S",verbatimLongitude:"18deg 32min 53.7sec E",decimalLatitude:-27.262555555555554,decimalLongitude:18.54825},{verbatimCoordinates:"-23.3245° S / 28.2344° E",verbatimLatitude:"-23.3245° S",verbatimLongitude:"28.2344° E",decimalLatitude:-23.3245,decimalLongitude:28.2344},{verbatimCoordinates:"40° 26.7717 -79° 56.93172",verbatimLatitude:"40° 26.7717",verbatimLongitude:"-79° 56.93172",decimalLatitude:40.446195,decimalLongitude:-79.948862},{verbatimCoordinates:"27.15.45S 18.32.53E",verbatimLatitude:"27.15.45S",verbatimLongitude:"18.32.53E",decimalLatitude:-27.2625,decimalLongitude:18.548055},{verbatimCoordinates:"-27.15.45 18.32.53",verbatimLatitude:"-27.15.45",verbatimLongitude:"18.32.53",decimalLatitude:-27.2625,decimalLongitude:18.548055},{verbatimCoordinates:"27.15.45.2S 18.32.53.4E",verbatimLatitude:"27.15.45.2S",verbatimLongitude:"18.32.53.4E",decimalLatitude:-27.262556,decimalLongitude:18.548167},{verbatimCoordinates:"27.15.45,2S 18.32.53,4E",verbatimLatitude:"27.15.45,2S",verbatimLongitude:"18.32.53,4E",decimalLatitude:-27.262556,decimalLongitude:18.548167},{verbatimCoordinates:"S23.43563 ° E22.45634 °",verbatimLatitude:"S23.43563 °",verbatimLongitude:"E22.45634 °",decimalLatitude:-23.43563,decimalLongitude:22.45634},{verbatimCoordinates:"27,71372° S 23,07771° E",verbatimLatitude:"27,71372° S",verbatimLongitude:"23,07771° E",decimalLatitude:-27.71372,decimalLongitude:23.07771},{verbatimCoordinates:"27.45.34 S 23.23.23 E",verbatimLatitude:"27.45.34 S",verbatimLongitude:"23.23.23 E",decimalLatitude:-27.759444,decimalLongitude:23.38972222},{verbatimCoordinates:"S 27.45.34 E 23.23.23",verbatimLatitude:"S 27.45.34",verbatimLongitude:"E 23.23.23",decimalLatitude:-27.759444,decimalLongitude:23.38972222},{verbatimCoordinates:"53 16.3863,4 52.8171",verbatimLatitude:"53 16.3863",verbatimLongitude:"4 52.8171",decimalLatitude:53.273105,decimalLongitude:4.88029},{verbatimCoordinates:"50 8.2914,-5 2.4447",verbatimLatitude:"50 8.2914",verbatimLongitude:"-5 2.4447",decimalLatitude:50.13819,decimalLongitude:-5.040745},{verbatimCoordinates:"N 48° 30,6410', E 18° 57,4583'",verbatimLatitude:"N 48° 30,6410'",verbatimLongitude:"E 18° 57,4583'",decimalLatitude:48.51068,decimalLongitude:18.95764}];function _c(){const n=[];return dc.forEach(t=>{t.decimalLatitude?n.push(t):n.push({...t,...vc})}),[...n,...mc,...yc]}const Ec=_c();Is.formats=Ec.map(n=>n.verbatimCoordinates);const Cc=Is;function Fa(n,t,e){const r=n.slice();return r[81]=t[e],r[83]=e,r}function ka(n){let t,e;return t=new ec({}),{c(){wn(t.$$.fragment)},m(r,i){fn(t,r,i),e=!0},i(r){e||(Bt(t.$$.fragment,r),e=!0)},o(r){ie(t.$$.fragment,r),e=!1},d(r){hn(t,r)}}}function Ba(n){let t,e,r,i,o;return e=new sc({}),{c(){t=gt("button"),wn(e.$$.fragment),w(t,"type","button"),w(t,"title",n[9]),w(t,"class","svelte-zh3kmv"),sr(t,"active",n[0])},m(s,a){wt(s,t,a),fn(e,t,null),r=!0,i||(o=xe(t,"click",n[67]),i=!0)},p(s,a){(!r||a[0]&512)&&w(t,"title",s[9]),(!r||a[0]&1)&&sr(t,"active",s[0])},i(s){r||(Bt(e.$$.fragment,s),r=!0)},o(s){ie(e.$$.fragment,s),r=!1},d(s){s&&It(t),hn(e),i=!1,o()}}}function Ic(n){let t,e=[],r=new Map,i,o,s,a=Sa(n[14]);const u=l=>l[81].id+(l[81].address?","+l[81].address:"");for(let l=0;l<a.length;l+=1){let c=Fa(n,a,l),f=u(c);r.set(f,e[l]=Ga(f,c))}return{c(){t=gt("ul");for(let l=0;l<e.length;l+=1)e[l].c();w(t,"class","svelte-zh3kmv")},m(l,c){wt(l,t,c);for(let f=0;f<e.length;f+=1)e[f]&&e[f].m(t,null);i=!0,o||(s=[xe(t,"mouseleave",n[71]),xe(t,"blur",n[72])],o=!0)},p(l,c){c[0]&17880064&&(a=Sa(l[14]),To(),e=Bl(e,c,u,1,l,a,r,t,kl,Ga,null,Fa),Do())},i(l){if(!i){for(let c=0;c<a.length;c+=1)Bt(e[c]);i=!0}},o(l){for(let c=0;c<e.length;c+=1)ie(e[c]);i=!1},d(l){l&&It(t);for(let c=0;c<e.length;c+=1)e[c].d();o=!1,cn(s)}}}function Nc(n){let t,e,r,i,o,s;return e=new La({}),{c(){t=gt("div"),wn(e.$$.fragment),r=Ye(),i=gt("div"),o=bn(n[7]),w(i,"class","svelte-zh3kmv"),w(t,"class","no-results svelte-zh3kmv")},m(a,u){wt(a,t,u),fn(e,t,null),rt(t,r),rt(t,i),rt(i,o),s=!0},p(a,u){(!s||u[0]&128)&&Ki(o,a[7])},i(a){s||(Bt(e.$$.fragment,a),s=!0)},o(a){ie(e.$$.fragment,a),s=!1},d(a){a&&It(t),hn(e)}}}function Sc(n){let t="",e;return{c(){e=bn(t)},m(r,i){wt(r,e,i)},p:Ct,i:Ct,o:Ct,d(r){r&&It(e)}}}function xc(n){let t,e,r,i,o,s,a,u,l,c,f;return e=new La({}),u=new xa({}),{c(){t=gt("div"),wn(e.$$.fragment),r=Ye(),i=gt("div"),o=bn(n[6]),s=Ye(),a=gt("button"),wn(u.$$.fragment),w(i,"class","svelte-zh3kmv"),w(a,"class","svelte-zh3kmv"),w(t,"class","error svelte-zh3kmv")},m(h,g){wt(h,t,g),fn(e,t,null),rt(t,r),rt(t,i),rt(i,o),rt(t,s),rt(t,a),fn(u,a,null),l=!0,c||(f=xe(a,"click",n[68]),c=!0)},p(h,g){(!l||g[0]&64)&&Ki(o,h[6])},i(h){l||(Bt(e.$$.fragment,h),Bt(u.$$.fragment,h),l=!0)},o(h){ie(e.$$.fragment,h),ie(u.$$.fragment,h),l=!1},d(h){h&&It(t),hn(e),hn(u),c=!1,f()}}}function Ga(n,t){let e,r,i;function o(){return t[69](t[83])}function s(){return t[70](t[81])}return r=new $l({props:{feature:t[81],showPlaceType:t[10],selected:t[15]===t[83],missingIconsCache:t[20],iconsBaseUrl:t[12]}}),r.$on("mouseenter",o),r.$on("focus",s),{key:n,first:null,c(){e=bl(),wn(r.$$.fragment),this.first=e},m(a,u){wt(a,e,u),fn(r,a,u),i=!0},p(a,u){t=a;const l={};u[0]&16384&&(l.feature=t[81]),u[0]&1024&&(l.showPlaceType=t[10]),u[0]&49152&&(l.selected=t[15]===t[83]),u[0]&4096&&(l.iconsBaseUrl=t[12]),r.$set(l)},i(a){i||(Bt(r.$$.fragment,a),i=!0)},o(a){ie(r.$$.fragment,a),i=!1},d(a){a&&It(e),hn(r,a)}}}function Lc(n){let t,e,r,i,o,s,a,u,l,c,f,h,g,p,v,d,_,I,C,N,L,T=!1;o=new uc({}),f=new xa({});let O=n[19]&&ka(),D=n[5]===!0&&Ba(n);const b=n[59].default,A=Nl(b,n,n[58],null),Y=[xc,Sc,Nc,Ic],G=[];function ut(x,B){var K,bt;return x[18]?0:x[16]?((K=x[14])==null?void 0:K.length)===0?2:x[16]&&((bt=x[14])!=null&&bt.length)?3:-1:1}return~(d=ut(n))&&(_=G[d]=Y[d](n)),{c(){t=Ye(),e=gt("form"),r=gt("div"),i=gt("button"),wn(o.$$.fragment),s=Ye(),a=gt("input"),u=Ye(),l=gt("div"),c=gt("button"),wn(f.$$.fragment),h=Ye(),O&&O.c(),g=Ye(),D&&D.c(),p=Ye(),A&&A.c(),v=Ye(),_&&_.c(),w(i,"class","search-button svelte-zh3kmv"),w(i,"type","button"),w(a,"placeholder",n[8]),w(a,"aria-label",n[8]),w(a,"class","svelte-zh3kmv"),w(c,"type","button"),w(c,"title",n[3]),w(c,"class","svelte-zh3kmv"),w(l,"class","clear-button-container svelte-zh3kmv"),sr(l,"displayable",n[1]!==""),w(r,"class","input-group svelte-zh3kmv"),w(e,"tabindex","0"),w(e,"class",I=ya(n[2])+" svelte-zh3kmv"),sr(e,"can-collapse",n[4]&&n[1]==="")},m(x,B){wt(x,t,B),wt(x,e,B),rt(e,r),rt(r,i),fn(o,i,null),rt(r,s),rt(r,a),n[61](a),_a(a,n[1]),rt(r,u),rt(r,l),rt(l,c),fn(f,c,null),rt(l,h),O&&O.m(l,null),rt(r,g),D&&D.m(r,null),rt(r,p),A&&A.m(r,null),rt(e,v),~d&&G[d].m(e,null),C=!0,N||(L=[xe(i,"click",n[60]),xe(a,"input",n[62]),xe(a,"focus",n[63]),xe(a,"blur",n[64]),xe(a,"keydown",n[22]),xe(a,"input",n[65]),xe(c,"click",n[66]),xe(e,"submit",wl(n[21]))],N=!0)},p(x,B){(!C||B[0]&256)&&w(a,"placeholder",x[8]),(!C||B[0]&256)&&w(a,"aria-label",x[8]),B[0]&2&&a.value!==x[1]&&_a(a,x[1]),(!C||B[0]&8)&&w(c,"title",x[3]),x[19]?O?B[0]&524288&&Bt(O,1):(O=ka(),O.c(),Bt(O,1),O.m(l,null)):O&&(To(),ie(O,1,1,()=>{O=null}),Do()),(!C||B[0]&2)&&sr(l,"displayable",x[1]!==""),x[5]===!0?D?(D.p(x,B),B[0]&32&&Bt(D,1)):(D=Ba(x),D.c(),Bt(D,1),D.m(r,p)):D&&(To(),ie(D,1,1,()=>{D=null}),Do()),A&&A.p&&(!C||B[1]&134217728)&&xl(A,b,x,x[58],C?Sl(b,x[58],B,null):Ll(x[58]),null);let K=d;d=ut(x),d===K?~d&&G[d].p(x,B):(_&&(To(),ie(G[K],1,1,()=>{G[K]=null}),Do()),~d?(_=G[d],_?_.p(x,B):(_=G[d]=Y[d](x),_.c()),Bt(_,1),_.m(e,null)):_=null),(!C||B[0]&4&&I!==(I=ya(x[2])+" svelte-zh3kmv"))&&w(e,"class",I),(!C||B[0]&22)&&sr(e,"can-collapse",x[4]&&x[1]==="")},i(x){C||(Bt(T),Bt(o.$$.fragment,x),Bt(f.$$.fragment,x),Bt(O),Bt(D),Bt(A,x),Bt(_),C=!0)},o(x){ie(T),ie(o.$$.fragment,x),ie(f.$$.fragment,x),ie(O),ie(D),ie(A,x),ie(_),C=!1},d(x){x&&(It(t),It(e)),hn(o),n[61](null),hn(f),O&&O.d(),D&&D.d(),A&&A.d(x),~d&&G[d].d(),N=!1,cn(L)}}}function bc(n,t,e){let r,{$$slots:i={},$$scope:o}=t,{class:s=void 0}=t,{apiKey:a}=t,{bbox:u=void 0}=t,{clearButtonTitle:l="clear"}=t,{clearOnBlur:c=!1}=t,{collapsed:f=!1}=t,{country:h=void 0}=t,{debounceSearch:g=200}=t,{enableReverse:p=!1}=t,{errorMessage:v="Something went wrong…"}=t,{filter:d=()=>!0}=t,{flyTo:_=!0}=t,{fuzzyMatch:I=!0}=t,{language:C=void 0}=t,{limit:N=void 0}=t,{mapController:L=void 0}=t,{minLength:T=2}=t,{noResultsMessage:O="Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!"}=t,{placeholder:D="Search"}=t,{proximity:b=[{type:"server-geolocation"}]}=t,{reverseActive:A=p==="always"}=t,{reverseButtonTitle:Y="toggle reverse geocoding"}=t,{searchValue:G=""}=t,{showFullGeometry:ut=!0}=t,{showPlaceType:x="ifNeeded"}=t,{showResultsWhileTyping:B=!0}=t,{selectFirst:K=!0}=t,{flyToSelected:bt=!1}=t,{markerOnSelected:re=!0}=t,{types:Qt=void 0}=t,{excludeTypes:an=!1}=t,{zoom:Ae=16}=t,{maxZoom:Xe=18}=t,{apiUrl:nr="https://api.maptiler.com/geocoding"}=t,{fetchParameters:Qn={}}=t,{iconsBaseUrl:xn="https://cdn.maptiler.com/maptiler-geocoding-control/v1.2.4/icons/"}=t,{adjustUrlQuery:ia=S=>{}}=t;function Qf(){un.focus()}function Kf(){un.blur()}function ml(S,Zt=!0,ir=!1){e(1,G=S),Zt?(e(15,Tt=-1),_l()):(ua(!ir,ir),setTimeout(()=>{un.focus(),un.select()}))}function Zf(){e(14,it=void 0),e(55,et=void 0),e(15,Tt=-1)}function Jf(){e(54,Kt=[]),e(55,et=void 0)}let ji=!1,it,Kt,et,yl="",un,Tt=-1,ln,gs=[],mi,Qi,ps,oa;const $f=new Set,Kn=Tl();Rl(()=>{L&&(L.setEventHandler(void 0),L.indicateReverse(!1),L.setSelectedMarker(-1),L.setMarkers(void 0,void 0))});function _l(S){if(Qi&&(clearTimeout(Qi),Qi=void 0),Tt>-1&&it)e(55,et=it[Tt]),e(1,G=et.place_type[0]==="reverse"?et.place_name:et.place_name.replace(/,.*/,"")),e(18,ln=void 0),e(54,Kt=void 0),e(15,Tt=-1);else if(G){const Zt=S||!sa(G);aa(G,{exact:!0}).then(()=>{e(54,Kt=it),e(55,et=void 0),Zt&&th()}).catch(ir=>e(18,ln=ir))}}function sa(S){try{return Cc(S,6)}catch{return!1}}async function aa(S,{byId:Zt=!1,exact:ir=!1}={}){e(18,ln=void 0),mi==null||mi.abort();const br=new AbortController;e(19,mi=br);try{const st=sa(S),wr=new URLSearchParams;if(C!==void 0&&wr.set("language",Array.isArray(C)?C.join(","):C??""),Qt&&wr.set("types",Qt.join(",")),an&&wr.set("excludeTypes",String(an)),u&&wr.set("bbox",u.map(vs=>vs.toFixed(6)).join(",")),h&&wr.set("country",Array.isArray(h)?h.join(","):h),!Zt&&!st){const vs=await cc(L,b,br);vs&&wr.set("proximity",vs),(ir||!B)&&wr.set("autocomplete","false"),wr.set("fuzzyMatch",String(I))}N!==void 0&&(!st||(Qt==null?void 0:Qt.length)===1)&&wr.set("limit",String(N)),wr.set("key",a),ia(wr);const ds=nr+"/"+encodeURIComponent(st?st.decimalLongitude+","+st.decimalLatitude:S)+".json?"+wr.toString();if(ds===yl){Zt?(e(14,it=void 0),e(55,et=gs[0])):e(14,it=gs);return}yl=ds;const ca=await fetch(ds,{signal:br.signal,...Qn});if(!ca.ok)throw new Error(await ca.text());const fa=await ca.json();Kn("response",{url:ds,featureCollection:fa}),Zt?(e(14,it=void 0),e(55,et=fa.features[0]),gs=[et]):(e(14,it=fa.features.filter(d)),st&&it.unshift({type:"Feature",properties:{},id:"reverse_"+st.decimalLongitude+"_"+st.decimalLatitude,text:st.decimalLatitude+", "+st.decimalLongitude,place_name:st.decimalLatitude+", "+st.decimalLongitude,place_type:["reverse"],center:[st.decimalLongitude,st.decimalLatitude],bbox:[st.decimalLongitude,st.decimalLatitude,st.decimalLongitude,st.decimalLatitude],geometry:{type:"Point",coordinates:[st.decimalLongitude,st.decimalLatitude]}}),gs=it,st&&un.focus())}catch(st){if(st&&typeof st=="object"&&"name"in st&&st.name==="AbortError")return;throw st}finally{br===mi&&e(19,mi=void 0)}}function th(){var ir;if(!(Kt!=null&&Kt.length)||!_)return;const S=[180,90,-180,-90],Zt=!Kt.some(br=>!br.matching_text);for(const br of Kt)if(Zt||!br.matching_text)for(const st of[0,1,2,3])S[st]=Math[st<2?"min":"max"](S[st],((ir=br.bbox)==null?void 0:ir[st])??br.center[st%2]);L&&Kt.length>0&&(et&&S[0]===S[2]&&S[1]===S[3]?L.flyTo(et.center,Ae):L.fitBounds(wa(S),50,Xe))}function eh(S){e(0,A=p==="always"),e(14,it=void 0),e(55,et=void 0),e(15,Tt=-1),ml(S[1].toFixed(6)+", "+lc(S[0],[-180,180],!0).toFixed(6),!1,!0)}function rh(S){if(!it)return;let Zt=S.key==="ArrowDown"?1:S.key==="ArrowUp"?-1:0;Zt&&(Tt===(K?0:-1)&&Zt===-1&&e(15,Tt=it.length),e(15,Tt+=Zt),Tt>=it.length&&e(15,Tt=-1),Tt<0&&K&&e(15,Tt=0),S.preventDefault())}function ua(S=!0,Zt=!1){if(e(18,ln=void 0),B||Zt){if(Qi&&clearTimeout(Qi),G.length<T)return;const ir=G;Qi=window.setTimeout(()=>{aa(ir).catch(br=>e(18,ln=br))},S?g:0)}else e(14,it=void 0),e(18,ln=void 0)}function la(S){e(55,et=S),e(1,G=S.place_name),e(15,Tt=-1)}const nh=()=>un.focus();function ih(S){ys[S?"unshift":"push"](()=>{un=S,e(17,un)})}function oh(){G=this.value,e(1,G),e(13,ji),e(27,c)}const sh=()=>e(13,ji=!0),ah=()=>e(13,ji=!1),uh=()=>ua(),lh=()=>{e(1,G=""),un.focus()},ch=()=>e(0,A=!A),fh=()=>e(18,ln=void 0),hh=S=>e(15,Tt=S),gh=S=>la(S),ph=()=>{K||e(15,Tt=-1)},dh=()=>{};return n.$$set=S=>{"class"in S&&e(2,s=S.class),"apiKey"in S&&e(25,a=S.apiKey),"bbox"in S&&e(26,u=S.bbox),"clearButtonTitle"in S&&e(3,l=S.clearButtonTitle),"clearOnBlur"in S&&e(27,c=S.clearOnBlur),"collapsed"in S&&e(4,f=S.collapsed),"country"in S&&e(28,h=S.country),"debounceSearch"in S&&e(29,g=S.debounceSearch),"enableReverse"in S&&e(5,p=S.enableReverse),"errorMessage"in S&&e(6,v=S.errorMessage),"filter"in S&&e(30,d=S.filter),"flyTo"in S&&e(31,_=S.flyTo),"fuzzyMatch"in S&&e(32,I=S.fuzzyMatch),"language"in S&&e(33,C=S.language),"limit"in S&&e(34,N=S.limit),"mapController"in S&&e(35,L=S.mapController),"minLength"in S&&e(36,T=S.minLength),"noResultsMessage"in S&&e(7,O=S.noResultsMessage),"placeholder"in S&&e(8,D=S.placeholder),"proximity"in S&&e(37,b=S.proximity),"reverseActive"in S&&e(0,A=S.reverseActive),"reverseButtonTitle"in S&&e(9,Y=S.reverseButtonTitle),"searchValue"in S&&e(1,G=S.searchValue),"showFullGeometry"in S&&e(38,ut=S.showFullGeometry),"showPlaceType"in S&&e(10,x=S.showPlaceType),"showResultsWhileTyping"in S&&e(39,B=S.showResultsWhileTyping),"selectFirst"in S&&e(11,K=S.selectFirst),"flyToSelected"in S&&e(40,bt=S.flyToSelected),"markerOnSelected"in S&&e(41,re=S.markerOnSelected),"types"in S&&e(42,Qt=S.types),"excludeTypes"in S&&e(43,an=S.excludeTypes),"zoom"in S&&e(44,Ae=S.zoom),"maxZoom"in S&&e(45,Xe=S.maxZoom),"apiUrl"in S&&e(46,nr=S.apiUrl),"fetchParameters"in S&&e(47,Qn=S.fetchParameters),"iconsBaseUrl"in S&&e(12,xn=S.iconsBaseUrl),"adjustUrlQuery"in S&&e(48,ia=S.adjustUrlQuery),"$$scope"in S&&e(58,o=S.$$scope)},n.$$.update=()=>{if(n.$$.dirty[0]&134225920&&setTimeout(()=>{e(16,ps=ji),c&&!ji&&e(1,G="")}),n.$$.dirty[0]&16386|n.$$.dirty[1]&32&&G.length<T&&(e(55,et=void 0),e(14,it=void 0),e(18,ln=void 0),e(54,Kt=it)),n.$$.dirty[1]&16777344&&ut&&et&&!et.address&&et.geometry.type==="Point"&&et.place_type[0]!=="reverse"&&aa(et.id,{byId:!0}).catch(S=>e(18,ln=S)),n.$$.dirty[1]&50356241&&(L&&et&&et.id!==oa&&_&&(!et.bbox||et.bbox[0]===et.bbox[2]&&et.bbox[1]===et.bbox[3]?L.flyTo(et.center,et.id.startsWith("poi.")||et.id.startsWith("address.")?Xe:Ae):L.fitBounds(wa(et.bbox),50,Xe),e(14,it=void 0),e(54,Kt=void 0),e(15,Tt=-1)),e(56,oa=et==null?void 0:et.id)),n.$$.dirty[0]&18432&&K&&it!=null&&it.length&&e(15,Tt=0),n.$$.dirty[0]&2050&&(K||e(15,Tt=-1)),n.$$.dirty[0]&16384|n.$$.dirty[1]&8388608&&Kt!==it&&e(54,Kt=void 0),n.$$.dirty[0]&81921|n.$$.dirty[1]&8388624&&L&&L.setEventHandler(S=>{switch(S.type){case"mapClick":A&&eh(S.coordinates);break;case"markerClick":{const Zt=it==null?void 0:it.find(ir=>ir.id===S.id);Zt&&la(Zt)}break;case"markerMouseEnter":Kt&&e(15,Tt=ps?(it==null?void 0:it.findIndex(Zt=>Zt.id===S.id))??-1:-1);break;case"markerMouseLeave":Kt&&e(15,Tt=-1);break}}),n.$$.dirty[0]&49152&&e(57,r=it==null?void 0:it[Tt]),n.$$.dirty[1]&67133969&&L&&r&&_&&bt&&L.flyTo(r.center,r.id.startsWith("poi.")||r.id.startsWith("address.")?Xe:Ae),n.$$.dirty[1]&1040&&(re||L==null||L.setMarkers(void 0,void 0)),n.$$.dirty[1]&75498512&&L&&re&&!Kt&&(L.setMarkers(r?[r]:void 0,void 0),L.setSelectedMarker(r?0:-1)),n.$$.dirty[1]&25165840&&L&&L.setMarkers(Kt,et),n.$$.dirty[0]&32768|n.$$.dirty[1]&8388624&&Kt&&L&&L.setSelectedMarker(Tt),n.$$.dirty[0]&2|n.$$.dirty[1]&16&&L){const S=sa(G);L.setReverseMarker(S?[S.decimalLongitude,S.decimalLatitude]:void 0)}n.$$.dirty[1]&67108864&&Kn("select",r),n.$$.dirty[1]&16777216&&Kn("pick",et),n.$$.dirty[0]&81920&&Kn("optionsVisibilityChange",ps&&!!it),n.$$.dirty[0]&16384&&Kn("featuresListed",it),n.$$.dirty[1]&8388608&&Kn("featuresMarked",Kt),n.$$.dirty[0]&1&&Kn("reverseToggle",A),n.$$.dirty[0]&2&&Kn("queryChange",G),n.$$.dirty[0]&1|n.$$.dirty[1]&16&&L&&L.indicateReverse(A)},[A,G,s,l,f,p,v,O,D,Y,x,K,xn,ji,it,Tt,ps,un,ln,mi,$f,_l,rh,ua,la,a,u,c,h,g,d,_,I,C,N,L,T,b,ut,B,bt,re,Qt,an,Ae,Xe,nr,Qn,ia,Qf,Kf,ml,Zf,Jf,Kt,et,oa,r,o,i,nh,ih,oh,sh,ah,uh,lh,ch,fh,hh,gh,ph,dh]}let wc=class extends On{constructor(t){super(),Pn(this,t,bc,Lc,Ln,{class:2,apiKey:25,bbox:26,clearButtonTitle:3,clearOnBlur:27,collapsed:4,country:28,debounceSearch:29,enableReverse:5,errorMessage:6,filter:30,flyTo:31,fuzzyMatch:32,language:33,limit:34,mapController:35,minLength:36,noResultsMessage:7,placeholder:8,proximity:37,reverseActive:0,reverseButtonTitle:9,searchValue:1,showFullGeometry:38,showPlaceType:10,showResultsWhileTyping:39,selectFirst:11,flyToSelected:40,markerOnSelected:41,types:42,excludeTypes:43,zoom:44,maxZoom:45,apiUrl:46,fetchParameters:47,iconsBaseUrl:12,adjustUrlQuery:48,focus:49,blur:50,setQuery:51,clearList:52,clearMap:53},null,[-1,-1,-1])}get focus(){return this.$$.ctx[49]}get blur(){return this.$$.ctx[50]}get setQuery(){return this.$$.ctx[51]}get clearList(){return this.$$.ctx[52]}get clearMap(){return this.$$.ctx[53]}};/**
|
|
2
2
|
* splaytree v3.1.2
|
|
3
3
|
* Fast Splay tree for Node and browser
|
|
4
4
|
*
|