New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@maptiler/geocoding-control

Package Overview
Dependencies
Maintainers
0
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maptiler/geocoding-control - npm Package Compare versions

Comparing version 2.1.3-rc2 to 2.1.3

2

package.json
{
"name": "@maptiler/geocoding-control",
"version": "2.1.3-rc2",
"version": "2.1.3",
"description": "The Javascript & TypeScript Map Control component for MapTiler Geocoding service. Easy to be integrated into any JavaScript mapping application.",

@@ -5,0 +5,0 @@ "type": "module",

@@ -1,14 +0,14 @@

(function($,F){typeof exports=="object"&&typeof module<"u"?F(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],F):($=typeof globalThis<"u"?globalThis:$||self,F($.reactMaptilerGeocoder={},$.React))})(this,function($,F){"use strict";var Zn=Object.defineProperty;var qn=($,F,D)=>F in $?Zn($,F,{enumerable:!0,configurable:!0,writable:!0,value:D}):$[F]=D;var St=($,F,D)=>qn($,typeof F!="symbol"?F+"":F,D);function D(){}function di(i,e){for(const t in e)i[t]=e[t];return i}function Tt(i){return i()}function kt(){return Object.create(null)}function fe(i){i.forEach(Tt)}function Nt(i){return typeof i=="function"}function Ee(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let Ze;function X(i,e){return i===e?!0:(Ze||(Ze=document.createElement("a")),Ze.href=e,i===Ze.href)}function fi(i){return Object.keys(i).length===0}function mi(i,e,t,n){if(i){const r=Mt(i,e,t,n);return i[0](r)}}function Mt(i,e,t,n){return i[1]&&n?di(t.ctx.slice(),i[1](n(e))):t.ctx}function gi(i,e,t,n){return i[2],e.dirty}function hi(i,e,t,n,r,c){if(r){const a=Mt(e,t,n,c);i.p(a,r)}}function bi(i){if(i.ctx.length>32){const e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function qe(i){return i??""}function N(i,e){i.appendChild(e)}function A(i,e,t){i.insertBefore(e,t||null)}function I(i){i.parentNode&&i.parentNode.removeChild(i)}function R(i){return document.createElement(i)}function me(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function ve(i){return document.createTextNode(i)}function ee(){return ve(" ")}function vi(){return ve("")}function Z(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Li(i){return function(e){return e.preventDefault(),i.call(this,e)}}function l(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function _i(i){return Array.from(i.childNodes)}function Ue(i,e){e=""+e,i.data!==e&&(i.data=e)}function Ct(i,e){i.value=e??""}function Ce(i,e,t){i.classList.toggle(e,!!t)}function yi(i,e,{bubbles:t=!1,cancelable:n=!1}={}){return new CustomEvent(i,{detail:e,bubbles:t,cancelable:n})}let De;function Ie(i){De=i}function Wt(){if(!De)throw new Error("Function called outside component initialization");return De}function wi(i){Wt().$$.on_destroy.push(i)}function Ot(){const i=Wt();return(e,t,{cancelable:n=!1}={})=>{const r=i.$$.callbacks[e];if(r){const c=yi(e,t,{cancelable:n});return r.slice().forEach(a=>{a.call(i,c)}),!c.defaultPrevented}return!0}}function Ei(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const We=[],ot=[];let Oe=[];const Rt=[],pi=Promise.resolve();let st=!1;function Si(){st||(st=!0,pi.then(zt))}function lt(i){Oe.push(i)}const at=new Set;let Re=0;function zt(){if(Re!==0)return;const i=De;do{try{for(;Re<We.length;){const e=We[Re];Re++,Ie(e),Ti(e.$$)}}catch(e){throw We.length=0,Re=0,e}for(Ie(null),We.length=0,Re=0;ot.length;)ot.pop()();for(let e=0;e<Oe.length;e+=1){const t=Oe[e];at.has(t)||(at.add(t),t())}Oe.length=0}while(We.length);for(;Rt.length;)Rt.pop()();st=!1,at.clear(),Ie(i)}function Ti(i){if(i.fragment!==null){i.update(),fe(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(lt)}}function ki(i){const e=[],t=[];Oe.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Oe=e}const Qe=new Set;let pe;function Ke(){pe={r:0,c:[],p:pe}}function Ve(){pe.r||fe(pe.c),pe=pe.p}function B(i,e){i&&i.i&&(Qe.delete(i),i.i(e))}function K(i,e,t,n){if(i&&i.o){if(Qe.has(i))return;Qe.add(i),pe.c.push(()=>{Qe.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Ut(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Ni(i,e){K(i,1,1,()=>{e.delete(i.key)})}function Mi(i,e,t,n,r,c,a,o,d,u,f,h){let v=i.length,y=c.length,E=v;const z={};for(;E--;)z[i[E].key]=E;const T=[],p=new Map,W=new Map,C=[];for(E=y;E--;){const w=h(r,c,E),g=t(w);let M=a.get(g);M?C.push(()=>M.p(w,e)):(M=u(g,w),M.c()),p.set(g,T[E]=M),g in z&&W.set(g,Math.abs(E-z[g]))}const q=new Set,x=new Set;function V(w){B(w,1),w.m(o,f),a.set(w.key,w),f=w.first,y--}for(;v&&y;){const w=T[y-1],g=i[v-1],M=w.key,k=g.key;w===g?(f=w.first,v--,y--):p.has(k)?!a.has(M)||q.has(M)?V(w):x.has(k)?v--:W.get(M)>W.get(k)?(x.add(M),V(w)):(q.add(k),v--):(d(g,a),v--)}for(;v--;){const w=i[v];p.has(w.key)||d(w,a)}for(;y;)V(T[y-1]);return fe(C),T}function Le(i){i&&i.c()}function ge(i,e,t){const{fragment:n,after_update:r}=i.$$;n&&n.m(e,t),lt(()=>{const c=i.$$.on_mount.map(Tt).filter(Nt);i.$$.on_destroy?i.$$.on_destroy.push(...c):fe(c),i.$$.on_mount=[]}),r.forEach(lt)}function he(i,e){const t=i.$$;t.fragment!==null&&(ki(t.after_update),fe(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function Ci(i,e){i.$$.dirty[0]===-1&&(We.push(i),Si(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function Se(i,e,t,n,r,c,a=null,o=[-1]){const d=De;Ie(i);const u=i.$$={fragment:null,ctx:[],props:c,update:D,not_equal:r,bound:kt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(d?d.$$.context:[])),callbacks:kt(),dirty:o,skip_bound:!1,root:e.target||d.$$.root};a&&a(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(h,v,...y)=>{const E=y.length?y[0]:v;return u.ctx&&r(u.ctx[h],u.ctx[h]=E)&&(!u.skip_bound&&u.bound[h]&&u.bound[h](E),f&&Ci(i,h)),v}):[],u.update(),f=!0,fe(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){const h=_i(e.target);u.fragment&&u.fragment.l(h),h.forEach(I)}else u.fragment&&u.fragment.c();e.intro&&B(i.$$.fragment),ge(i,e.target,e.anchor),zt()}Ie(d)}class Te{constructor(){St(this,"$$");St(this,"$$set")}$destroy(){he(this,1),this.$destroy=D}$on(e,t){if(!Nt(t))return D;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const r=n.indexOf(t);r!==-1&&n.splice(r,1)}}$set(e){this.$$set&&!fi(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Wi="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Wi);function Oi(i){let e,t;return{c(){e=me("svg"),t=me("path"),l(t,"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"),l(e,"viewBox","0 0 14 14"),l(e,"width","13"),l(e,"height","13"),l(e,"class","svelte-en2qvf")},m(n,r){A(n,e,r),N(e,t)},p:D,i:D,o:D,d(n){n&&I(e)}}}class Dt extends Te{constructor(e){super(),Se(this,e,null,Oi,Ee,{})}}function Ri(i){let e,t;return{c(){e=me("svg"),t=me("path"),l(t,"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"),l(e,"viewBox","0 0 30 30"),l(e,"fill","none"),l(e,"xmlns","http://www.w3.org/2000/svg"),l(e,"class","svelte-d2loi5")},m(n,r){A(n,e,r),N(e,t)},p:D,i:D,o:D,d(n){n&&I(e)}}}class It extends Te{constructor(e){super(),Se(this,e,null,Ri,Ee,{})}}function zi(i){let e,t;return{c(){e=R("img"),X(e.src,t=i[3]+"area.svg")||l(e,"src",t),l(e,"alt",i[7]),l(e,"title",i[7]),l(e,"class","svelte-w9y5n9")},m(n,r){A(n,e,r)},p(n,r){r&8&&!X(e.src,t=n[3]+"area.svg")&&l(e,"src",t),r&128&&l(e,"alt",n[7]),r&128&&l(e,"title",n[7])},d(n){n&&I(e)}}}function Ui(i){let e,t;return{c(){e=R("img"),X(e.src,t=i[3]+"reverse.svg")||l(e,"src",t),l(e,"alt",i[7]),l(e,"title",i[7]),l(e,"class","svelte-w9y5n9")},m(n,r){A(n,e,r)},p(n,r){r&8&&!X(e.src,t=n[3]+"reverse.svg")&&l(e,"src",t),r&128&&l(e,"alt",n[7]),r&128&&l(e,"title",n[7])},d(n){n&&I(e)}}}function Di(i){let e,t;return{c(){e=R("img"),X(e.src,t=i[3]+"poi.svg")||l(e,"src",t),l(e,"alt",i[7]),l(e,"title",i[7]),l(e,"class","svelte-w9y5n9")},m(n,r){A(n,e,r)},p(n,r){r&8&&!X(e.src,t=n[3]+"poi.svg")&&l(e,"src",t),r&128&&l(e,"alt",n[7]),r&128&&l(e,"title",n[7])},d(n){n&&I(e)}}}function Ii(i){let e,t;return{c(){e=R("img"),X(e.src,t=i[3]+"postal_code.svg")||l(e,"src",t),l(e,"alt",i[7]),l(e,"title",i[7]),l(e,"class","svelte-w9y5n9")},m(n,r){A(n,e,r)},p(n,r){r&8&&!X(e.src,t=n[3]+"postal_code.svg")&&l(e,"src",t),r&128&&l(e,"alt",n[7]),r&128&&l(e,"title",n[7])},d(n){n&&I(e)}}}function Ai(i){let e,t;return{c(){e=R("img"),X(e.src,t=i[3]+"street.svg")||l(e,"src",t),l(e,"alt",i[7]),l(e,"title",i[7]),l(e,"class","svelte-w9y5n9")},m(n,r){A(n,e,r)},p(n,r){r&8&&!X(e.src,t=n[3]+"street.svg")&&l(e,"src",t),r&128&&l(e,"alt",n[7]),r&128&&l(e,"title",n[7])},d(n){n&&I(e)}}}function Pi(i){let e,t;return{c(){e=R("img"),X(e.src,t=i[3]+"road.svg")||l(e,"src",t),l(e,"alt",i[7]),l(e,"title",i[7]),l(e,"class","svelte-w9y5n9")},m(n,r){A(n,e,r)},p(n,r){r&8&&!X(e.src,t=n[3]+"road.svg")&&l(e,"src",t),r&128&&l(e,"alt",n[7]),r&128&&l(e,"title",n[7])},d(n){n&&I(e)}}}function Bi(i){let e,t;return{c(){e=R("img"),X(e.src,t=i[3]+"housenumber.svg")||l(e,"src",t),l(e,"alt",i[7]),l(e,"title",i[7]),l(e,"class","svelte-w9y5n9")},m(n,r){A(n,e,r)},p(n,r){r&8&&!X(e.src,t=n[3]+"housenumber.svg")&&l(e,"src",t),r&128&&l(e,"alt",n[7]),r&128&&l(e,"title",n[7])},d(n){n&&I(e)}}}function ji(i){let e,t,n,r;return{c(){e=R("img"),X(e.src,t=i[5])||l(e,"src",t),l(e,"alt",i[4]),l(e,"title",i[7]),l(e,"class","svelte-w9y5n9")},m(c,a){A(c,e,a),n||(r=Z(e,"error",i[14]),n=!0)},p(c,a){a&32&&!X(e.src,t=c[5])&&l(e,"src",t),a&16&&l(e,"alt",c[4]),a&128&&l(e,"title",c[7])},d(c){c&&I(e),n=!1,r()}}}function Gi(i){let e,t;return{c(){e=R("div"),l(e,"class","sprite-icon svelte-w9y5n9"),l(e,"style",t=`
width: ${i[6].width/te}px;
height: ${i[6].height/te}px;
background-image: url(${i[3]}sprite${ut}.png);
background-position: -${i[6].x/te}px -${i[6].y/te}px;
background-size: ${oe.width/te}px ${oe.height/te}px;
`),l(e,"title",i[7])},m(n,r){A(n,e,r)},p(n,r){r&72&&t!==(t=`
width: ${n[6].width/te}px;
height: ${n[6].height/te}px;
background-image: url(${n[3]}sprite${ut}.png);
background-position: -${n[6].x/te}px -${n[6].y/te}px;
background-size: ${oe.width/te}px ${oe.height/te}px;
`)&&l(e,"style",t),r&128&&l(e,"title",n[7])},d(n){n&&I(e)}}}function At(i){let e,t;return{c(){e=R("span"),t=ve(i[7]),l(e,"class","secondary svelte-w9y5n9")},m(n,r){A(n,e,r),N(e,t)},p(n,r){r&128&&Ue(t,n[7])},d(n){n&&I(e)}}}function Fi(i){let e,t,n,r,c,a,o,d,u,f=(i[8]?i[0].place_name:i[0].place_name.replace(/,.*/,""))+"",h,v,y=i[2]==="always"||i[2]!=="never"&&!i[0].address&&!i[0].id.startsWith("road.")&&!i[0].id.startsWith("address.")&&!i[0].id.startsWith("postal_code.")&&(!i[0].id.startsWith("poi.")||!i[5])&&!i[8],E,z,T=(i[8]?"":i[0].place_name.replace(/[^,]*,?\s*/,""))+"",p,W,C,q,x,V;function w(L,m){return m&1&&(t=null),m&1&&(n=null),m&1&&(r=null),m&1&&(c=null),oe&&L[6]?Gi:L[5]?ji:L[0].address?Bi:(t==null&&(t=!!L[0].id.startsWith("road.")),t?Pi:(n==null&&(n=!!L[0].id.startsWith("address.")),n?Ai:(r==null&&(r=!!L[0].id.startsWith("postal_code.")),r?Ii:(c==null&&(c=!!L[0].id.startsWith("poi.")),c?Di:L[8]?Ui:zi))))}let g=w(i,-1),M=g(i),k=y&&At(i);return{c(){e=R("li"),M.c(),a=ee(),o=R("span"),d=R("span"),u=R("span"),h=ve(f),v=ee(),k&&k.c(),E=ee(),z=R("span"),p=ve(T),l(u,"class","primary svelte-w9y5n9"),l(d,"class","svelte-w9y5n9"),l(z,"class","line2 svelte-w9y5n9"),l(o,"class","texts svelte-w9y5n9"),l(e,"tabindex","-1"),l(e,"role","option"),l(e,"aria-selected",W=i[1]==="selected"),l(e,"aria-checked",C=i[1]==="picked"),l(e,"class",q=qe(i[1])+" svelte-w9y5n9")},m(L,m){A(L,e,m),M.m(e,null),N(e,a),N(e,o),N(o,d),N(d,u),N(u,h),N(d,v),k&&k.m(d,null),N(o,E),N(o,z),N(z,p),x||(V=[Z(e,"mouseenter",i[13]),Z(e,"focus",i[15]),Z(e,"click",i[16])],x=!0)},p(L,[m]){g===(g=w(L,m))&&M?M.p(L,m):(M.d(1),M=g(L),M&&(M.c(),M.m(e,a))),m&257&&f!==(f=(L[8]?L[0].place_name:L[0].place_name.replace(/,.*/,""))+"")&&Ue(h,f),m&293&&(y=L[2]==="always"||L[2]!=="never"&&!L[0].address&&!L[0].id.startsWith("road.")&&!L[0].id.startsWith("address.")&&!L[0].id.startsWith("postal_code.")&&(!L[0].id.startsWith("poi.")||!L[5])&&!L[8]),y?k?k.p(L,m):(k=At(L),k.c(),k.m(d,null)):k&&(k.d(1),k=null),m&257&&T!==(T=(L[8]?"":L[0].place_name.replace(/[^,]*,?\s*/,""))+"")&&Ue(p,T),m&2&&W!==(W=L[1]==="selected")&&l(e,"aria-selected",W),m&2&&C!==(C=L[1]==="picked")&&l(e,"aria-checked",C),m&2&&q!==(q=qe(L[1])+" svelte-w9y5n9")&&l(e,"class",q)},i:D,o:D,d(L){L&&I(e),M.d(),k&&k.d(),x=!1,fe(V)}}}const Pt=devicePixelRatio>1.25,ut=Pt?"@2x":"",te=Pt?2:1;let oe,Ye;function Hi(i,e,t){let n,r,c,{feature:a}=e,{style:o="default"}=e,{showPlaceType:d}=e,{missingIconsCache:u}=e,{iconsBaseUrl:f}=e;const h=Ot();let v,y,E,z;function T(){Ye??(Ye=fetch(`${f}sprite${ut}.json`).then(g=>g.json()).then(g=>{oe=g}).catch(()=>{oe=null}))}function p(){y&&u.add(y),W()}function W(){oe!==void 0?C():(T(),Ye==null||Ye.then(C))}function C(){do{if(z--,t(4,v=n==null?void 0:n[z]),t(6,E=v?oe==null?void 0:oe.icons[v]:void 0),E)break;t(5,y=v?f+v.replace(/ /g,"_")+".svg":void 0)}while(z>-1&&(!y||u.has(y)))}function q(g){Ei.call(this,i,g)}const x=()=>p(),V=()=>h("select",void 0),w=g=>{document.activeElement!==g.target&&h("select",void 0)};return i.$$set=g=>{"feature"in g&&t(0,a=g.feature),"style"in g&&t(1,o=g.style),"showPlaceType"in g&&t(2,d=g.showPlaceType),"missingIconsCache"in g&&t(11,u=g.missingIconsCache),"iconsBaseUrl"in g&&t(3,f=g.iconsBaseUrl)},i.$$.update=()=>{var g,M,k,L,m;i.$$.dirty&1&&t(12,n=(g=a.properties)==null?void 0:g.categories),i.$$.dirty&1&&t(8,r=a.place_type[0]==="reverse"),i.$$.dirty&1&&t(7,c=((k=(M=a.properties)==null?void 0:M.categories)==null?void 0:k.join(", "))??((m=(L=a.properties)==null?void 0:L.place_type_name)==null?void 0:m[0])??a.place_type[0]),i.$$.dirty&4096&&(z=(n==null?void 0:n.length)??0,W())},[a,o,d,f,v,y,E,c,r,h,p,u,n,q,x,V,w]}class Zi extends Te{constructor(e){super(),Se(this,e,Hi,Fi,Ee,{feature:0,style:1,showPlaceType:2,missingIconsCache:11,iconsBaseUrl:3})}}function qi(i){let e;return{c(){e=R("div"),e.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>',l(e,"class","svelte-7cmwmc")},m(t,n){A(t,e,n)},p:D,i:D,o:D,d(t){t&&I(e)}}}class Qi extends Te{constructor(e){super(),Se(this,e,null,qi,Ee,{})}}function Ki(i){let e,t;return{c(){e=me("svg"),t=me("path"),l(t,"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"),l(e,"viewBox","0 0 60.006 21.412"),l(e,"width","14"),l(e,"height","20"),l(e,"class","svelte-en2qvf")},m(n,r){A(n,e,r),N(e,t)},p:D,i:D,o:D,d(n){n&&I(e)}}}class Vi extends Te{constructor(e){super(),Se(this,e,null,Ki,Ee,{})}}function Yi(i){let e,t,n;return{c(){e=me("svg"),t=me("circle"),n=me("path"),l(t,"cx","4.789"),l(t,"cy","4.787"),l(t,"r","3.85"),l(t,"class","svelte-1aq105l"),l(n,"d","M12.063 12.063 7.635 7.635"),l(n,"class","svelte-1aq105l"),l(e,"xmlns","http://www.w3.org/2000/svg"),l(e,"width","13"),l(e,"height","13"),l(e,"viewBox","0 0 13 13"),l(e,"class","svelte-1aq105l")},m(r,c){A(r,e,c),N(e,t),N(e,n)},p:D,i:D,o:D,d(r){r&&I(e)}}}class Xi extends Te{constructor(e){super(),Se(this,e,null,Yi,Ee,{})}}function Ji(i,e,t){const n=e[1],r=e[0],c=n-r;return i===n&&t?i:((i-r)%c+c)%c+r}function Bt(i){const e=[...i];return e[2]<e[0]&&(Math.abs((e[0]+e[2]+360)/2)>Math.abs((e[0]-360+e[2])/2)?e[0]-=360:e[2]+=360),e}let Ae;async function xi(i,e,t){const n=i==null?void 0:i.getCenterAndZoom();for(const r of e??[])if(!(n&&(r.minZoom!=null&&r.minZoom>n[0]||r.maxZoom!=null&&r.maxZoom<n[0]))){if(r.type==="fixed")return r.coordinates.join(",");e:if(r.type==="client-geolocation"){if(Ae&&r.cachedLocationExpiry&&Ae.time+r.cachedLocationExpiry>Date.now()){if(!Ae.coords)break e;return Ae.coords}let c;try{return c=await new Promise((a,o)=>{t.signal.addEventListener("abort",()=>{o(Error("aborted"))}),navigator.geolocation.getCurrentPosition(d=>{a([d.coords.longitude,d.coords.latitude].map(u=>u.toFixed(6)).join(","))},d=>{o(d)},r)}),c}catch{}finally{r.cachedLocationExpiry&&(Ae={time:Date.now(),coords:c})}if(t.signal.aborted)return}if(r.type==="server-geolocation")return"ip";if(n&&r.type==="map-center")return n[1].toFixed(6)+","+n[2].toFixed(6)}}const $i=/^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(EAST|WEST|[EW])?$/i,jt=/^([+-]?[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,})$/,Gt=/^(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,Ft=/^(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,Ht=/^(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,Zt=/^(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 en(i){if(!["DMS","DM","DD"].includes(i))throw new Error("invalid format specified");if(this.decimalCoordinates&&this.decimalCoordinates.trim()){const e=this.decimalCoordinates.split(",").map(y=>Number(y.trim())),t=Number(e[0]),n=Number(e[1]),r=Math.abs(t),c=Math.abs(n),a=t>0?"N":"S",o=n>0?"E":"W";let d;i=="DD"&&(d=`${r}° ${a}, ${c}° ${o}`);const u=Math.floor(r),f=Math.floor(c),h=(r-u)*60,v=(c-f)*60;if(i=="DM"){let y=qt(h,3).toFixed(3).padStart(6,"0"),E=qt(v,3).toFixed(3).padStart(6,"0");y.endsWith(".000")&&E.endsWith(".000")&&(y=y.replace(/\.000$/,""),E=E.replace(/\.000$/,"")),d=`${u}° ${y}' ${a}, ${f}° ${E}' ${o}`}if(i=="DMS"){const y=Math.floor(h),E=Math.floor(v);let z=((h-y)*60).toFixed(1).padStart(4,"0"),T=((v-E)*60).toFixed(1).padStart(4,"0");const p=y.toString().padStart(2,"0"),W=E.toString().padStart(2,"0");z.endsWith(".0")&&T.endsWith(".0")&&(z=z.replace(/\.0$/,""),T=T.replace(/\.0$/,"")),d=`${u}° ${p}' ${z}" ${a}, ${f}° ${W}' ${T}" ${o}`}return d}else throw new Error("no decimal coordinates to convert")}function qt(i,e){const t=Math.pow(10,e);return Math.round((i+Number.EPSILON)*t)/t}function ct(i,e){e||(e=5),i=i.replace(/\s+/g," ").trim();let t=null,n=null,r="",c="",a=null,o=[],d=!1;if($i.test(i))throw new Error("invalid coordinate value");if(jt.test(i))if(o=jt.exec(i),d=Pe(o),d)t=Math.abs(o[1])+o[2]/60,Number(o[1])<0&&(t*=-1),n=Math.abs(o[3])+o[4]/60,Number(o[3])<0&&(n*=-1),a="DM";else throw new Error("invalid coordinate format");else if(Gt.test(i))if(o=Gt.exec(i),d=Pe(o),d){if(t=o[2],n=o[6],t.includes(",")&&(t=t.replace(",",".")),n.includes(",")&&(n=n.replace(",",".")),a="DD",Number(Math.round(t))==Number(t))throw new Error("integer only coordinate provided");if(Number(Math.round(n))==Number(n))throw new Error("integer only coordinate provided");o[1]?(r=o[1],c=o[5]):o[4]&&(r=o[4],c=o[8])}else throw new Error("invalid decimal coordinate format");else if(Ft.test(i))if(o=Ft.exec(i),d=Pe(o),d)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4]/60,a="DM"),o[6]&&(t+=o[6].replace(",",".")/3600,a="DMS"),parseInt(o[2])<0&&(t=-1*t),n=Math.abs(parseInt(o[9])),o[11]&&(n+=o[11]/60),o[13]&&(n+=o[13].replace(",",".")/3600),parseInt(o[9])<0&&(n=-1*n),o[1]?(r=o[1],c=o[8]):o[7]&&(r=o[7],c=o[14]);else throw new Error("invalid DMS coordinates format");else if(Ht.test(i))if(o=Ht.exec(i),d=Pe(o),d)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4]/60,a="DM"),o[6]&&(t+=o[6]/3600,a="DMS"),parseInt(o[2])<0&&(t=-1*t),n=Math.abs(parseInt(o[10])),o[12]&&(n+=o[12]/60),o[14]&&(n+=o[14]/3600),parseInt(o[10])<0&&(n=-1*n),o[1]?(r=o[1],c=o[9]):o[8]&&(r=o[8],c=o[16]);else throw new Error("invalid DMS coordinates format");else if(Zt.test(i)){if(o=Zt.exec(i),d=Pe(o),o.filter(u=>u).length<=5)throw new Error("invalid coordinates format");if(d)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4].replace(",",".")/60,a="DM"),o[6]&&(t+=o[6].replace(",",".")/3600,a="DMS"),parseInt(o[2])<0&&(t=-1*t),n=Math.abs(parseInt(o[10])),o[12]&&(n+=o[12].replace(",",".")/60),o[14]&&(n+=o[14].replace(",",".")/3600),parseInt(o[10])<0&&(n=-1*n),o[1]?(r=o[1],c=o[9]):o[8]&&(r=o[8],c=o[16]);else throw new Error("invalid coordinates format")}if(d){if(Math.abs(n)>=180)throw new Error("invalid longitude value");if(Math.abs(t)>=90)throw new Error("invalid latitude value");if(r&&!c||!r&&c)throw new Error("invalid coordinates value");if(r&&r==c)throw new Error("invalid coordinates format");t.toString().includes(",")&&(t=t.replace(",",".")),n.toString().includes(",")&&(n=n.replace(",","."));let u=/S|SOUTH/i;u.test(r)&&t>0&&(t=-1*t),u=/W|WEST/i,u.test(c)&&n>0&&(n=-1*n);const f=o[0].trim();let h,v;const y=/[,/;\u0020]/g,E=f.match(y);if(E==null){const p=Math.floor(i.length/2);h=f.substring(0,p).trim(),v=f.substring(p).trim()}else{let p;E.length%2==1?p=Math.floor(E.length/2):p=E.length/2-1;let W=0;if(p==0)W=f.indexOf(E[0]),h=f.substring(0,W).trim(),v=f.substring(W+1).trim();else{let C=0,q=0;for(;C<=p;)W=f.indexOf(E[C],q),q=W+1,C++;h=f.substring(0,W).trim(),v=f.substring(W+1).trim()}}const z=h.split(".");if(z.length==2&&z[1]==0&&z[1].length!=2)throw new Error("invalid coordinates format");const T=v.split(".");if(T.length==2&&T[1]==0&&T[1].length!=2)throw new Error("invalid coordinates format");if(/^\d+$/.test(h)||/^\d+$/.test(v))throw new Error("degree only coordinate/s provided");return t=Number(Number(t).toFixed(e)),n=Number(Number(n).toFixed(e)),Object.freeze({verbatimCoordinates:f,verbatimLatitude:h,verbatimLongitude:v,decimalLatitude:t,decimalLongitude:n,decimalCoordinates:`${t},${n}`,originalFormat:a,closeEnough:tn,toCoordinateFormat:en})}else throw new Error("coordinates pattern match failed")}function Pe(i){if(!isNaN(i[0]))return!1;const e=[...i];if(e.shift(),e.length%2>0)return!1;const t=/^[-+]?\d+([\.,]\d+)?$/,n=/[eastsouthnorthwest]+/i,r=e.length/2;for(let c=0;c<r;c++){const a=e[c],o=e[c+r],d=t.test(a)&&t.test(o),u=n.test(a)&&n.test(o),f=a==o;if(!(a==null&&o==null)){if(a==null||o==null)return!1;if(d||u||f)continue;return!1}}return!0}function Qt(i,e){const t=Math.abs(i-e);return Number(t.toFixed(6))<=1e-5}function tn(i){if(!i)throw new Error("coords must be provided");if(i.includes(",")){const e=i.split(",");if(Number(e[0])==NaN||Number(e[1])==NaN)throw new Error("coords are not valid decimals");return Qt(this.decimalLatitude,Number(e[0]))&&Qt(this.decimalLongitude,e[1])}else throw new Error("coords being tested must be separated by a comma")}const nn=Object.freeze({DMS:"DMS",DM:"DM",DD:"DD"});ct.to=nn;const rn=[{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"}],on={decimalLatitude:40.123,decimalLongitude:-74.123},sn=[{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}],ln=[{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},{verbatimCoordinates:"1.23456, 18.33453",verbatimLatitude:"1.23456",verbatimLongitude:"18.33453",decimalLatitude:1.23456,decimalLongitude:18.33453}];function an(){const i=[];return rn.forEach(e=>{e.decimalLatitude?i.push(e):i.push({...e,...on})}),[...i,...sn,...ln]}const un=an();ct.formats=un.map(i=>i.verbatimCoordinates);const cn=ct;function Kt(i,e,t){const n=i.slice();return n[100]=e[t],n[102]=t,n}function Vt(i){let e,t;return e=new Qi({}),{c(){Le(e.$$.fragment)},m(n,r){ge(e,n,r),t=!0},i(n){t||(B(e.$$.fragment,n),t=!0)},o(n){K(e.$$.fragment,n),t=!1},d(n){he(e,n)}}}function Yt(i){let e,t,n,r,c;return t=new Vi({}),{c(){e=R("button"),Le(t.$$.fragment),l(e,"type","button"),l(e,"title",i[10]),l(e,"class","svelte-bz0zu3"),Ce(e,"active",i[0])},m(a,o){A(a,e,o),ge(t,e,null),n=!0,r||(c=Z(e,"click",i[81]),r=!0)},p(a,o){(!n||o[0]&1024)&&l(e,"title",a[10]),(!n||o[0]&1)&&Ce(e,"active",a[0])},i(a){n||(B(t.$$.fragment,a),n=!0)},o(a){K(t.$$.fragment,a),n=!1},d(a){a&&I(e),he(t),r=!1,c()}}}function dn(i){let e,t=[],n=new Map,r,c,a,o=Ut(i[13]);const d=u=>u[100].id+(u[100].address?","+u[100].address:"");for(let u=0;u<o.length;u+=1){let f=Kt(i,o,u),h=d(f);n.set(h,t[u]=Xt(h,f))}return{c(){e=R("ul");for(let u=0;u<t.length;u+=1)t[u].c();l(e,"class","options svelte-bz0zu3"),l(e,"role","listbox")},m(u,f){A(u,e,f);for(let h=0;h<t.length;h+=1)t[h]&&t[h].m(e,null);r=!0,c||(a=[Z(e,"mouseleave",i[27]),Z(e,"blur",i[85]),Z(e,"keydown",i[23])],c=!0)},p(u,f){f[0]&102823936&&(o=Ut(u[13]),Ke(),t=Mi(t,f,d,1,u,o,n,e,Ni,Xt,null,Kt),Ve())},i(u){if(!r){for(let f=0;f<o.length;f+=1)B(t[f]);r=!0}},o(u){for(let f=0;f<t.length;f+=1)K(t[f]);r=!1},d(u){u&&I(e);for(let f=0;f<t.length;f+=1)t[f].d();c=!1,fe(a)}}}function fn(i){let e,t,n,r,c,a;return t=new It({}),{c(){e=R("div"),Le(t.$$.fragment),n=ee(),r=R("div"),c=ve(i[8]),l(r,"class","svelte-bz0zu3"),l(e,"class","no-results svelte-bz0zu3")},m(o,d){A(o,e,d),ge(t,e,null),N(e,n),N(e,r),N(r,c),a=!0},p(o,d){(!a||d[0]&256)&&Ue(c,o[8])},i(o){a||(B(t.$$.fragment,o),a=!0)},o(o){K(t.$$.fragment,o),a=!1},d(o){o&&I(e),he(t)}}}function mn(i){let e="",t;return{c(){t=ve(e)},m(n,r){A(n,t,r)},p:D,i:D,o:D,d(n){n&&I(t)}}}function gn(i){let e,t,n,r,c,a,o,d,u,f,h;return t=new It({}),d=new Dt({}),{c(){e=R("div"),Le(t.$$.fragment),n=ee(),r=R("div"),c=ve(i[7]),a=ee(),o=R("button"),Le(d.$$.fragment),l(r,"class","svelte-bz0zu3"),l(o,"class","svelte-bz0zu3"),l(e,"class","error svelte-bz0zu3")},m(v,y){A(v,e,y),ge(t,e,null),N(e,n),N(e,r),N(r,c),N(e,a),N(e,o),ge(d,o,null),u=!0,f||(h=Z(o,"click",i[82]),f=!0)},p(v,y){(!u||y[0]&128)&&Ue(c,v[7])},i(v){u||(B(t.$$.fragment,v),B(d.$$.fragment,v),u=!0)},o(v){K(t.$$.fragment,v),K(d.$$.fragment,v),u=!1},d(v){v&&I(e),he(t),he(d),f=!1,h()}}}function Xt(i,e){var o;let t,n,r;function c(){return e[83](e[102])}function a(){return e[84](e[100])}return n=new Zi({props:{feature:e[100],showPlaceType:e[11],style:e[15]===e[102]?"selected":((o=e[14])==null?void 0:o.id)===e[100].id?"picked":"default",missingIconsCache:e[21],iconsBaseUrl:e[12]}}),n.$on("mouseenter",c),n.$on("select",a),{key:i,first:null,c(){t=vi(),Le(n.$$.fragment),this.first=t},m(d,u){A(d,t,u),ge(n,d,u),r=!0},p(d,u){var h;e=d;const f={};u[0]&8192&&(f.feature=e[100]),u[0]&2048&&(f.showPlaceType=e[11]),u[0]&57344&&(f.style=e[15]===e[102]?"selected":((h=e[14])==null?void 0:h.id)===e[100].id?"picked":"default"),u[0]&4096&&(f.iconsBaseUrl=e[12]),n.$set(f)},i(d){r||(B(n.$$.fragment,d),r=!0)},o(d){K(n.$$.fragment,d),r=!1},d(d){d&&I(t),he(n,d)}}}function hn(i){let e,t,n,r,c,a,o,d,u,f,h,v,y,E,z,T,p,W,C,q,x,V=!1;c=new Xi({}),h=new Dt({});let w=i[20]&&Vt(),g=i[6]==="button"&&Yt(i);const M=i[72].default,k=mi(M,i,i[71],null),L=[gn,mn,fn,dn],m=[];function ke(_,j){var ae,ie;return _[19]?0:!_[16]&&!_[4]?1:((ae=_[13])==null?void 0:ae.length)===0?2:(ie=_[13])!=null&&ie.length&&(_[16]||_[4])?3:-1}return~(T=ke(i))&&(p=m[T]=L[T](i)),{c(){e=ee(),t=R("form"),n=R("div"),r=R("button"),Le(c.$$.fragment),a=ee(),o=R("input"),d=ee(),u=R("div"),f=R("button"),Le(h.$$.fragment),v=ee(),w&&w.c(),y=ee(),g&&g.c(),E=ee(),k&&k.c(),z=ee(),p&&p.c(),l(r,"class","search-button svelte-bz0zu3"),l(r,"type","button"),l(o,"placeholder",i[9]),l(o,"aria-label",i[9]),l(o,"class","svelte-bz0zu3"),l(f,"type","button"),l(f,"title",i[3]),l(f,"class","svelte-bz0zu3"),l(u,"class","clear-button-container svelte-bz0zu3"),Ce(u,"displayable",i[1]!==""),l(n,"class","input-group svelte-bz0zu3"),l(t,"class",W=qe(i[2])+" svelte-bz0zu3"),Ce(t,"can-collapse",i[5]&&i[1]==="")},m(_,j){A(_,e,j),A(_,t,j),N(t,n),N(n,r),ge(c,r,null),N(n,a),N(n,o),i[74](o),Ct(o,i[1]),N(n,d),N(n,u),N(u,f),ge(h,f,null),N(u,v),w&&w.m(u,null),N(n,y),g&&g.m(n,null),N(n,E),k&&k.m(n,null),N(t,z),~T&&m[T].m(t,null),C=!0,q||(x=[Z(r,"click",i[73]),Z(o,"input",i[75]),Z(o,"focus",i[76]),Z(o,"blur",i[77]),Z(o,"click",i[78]),Z(o,"keydown",i[23]),Z(o,"input",i[24]),Z(o,"change",i[79]),Z(f,"click",i[80]),Z(t,"submit",Li(i[22]))],q=!0)},p(_,j){(!C||j[0]&512)&&l(o,"placeholder",_[9]),(!C||j[0]&512)&&l(o,"aria-label",_[9]),j[0]&2&&o.value!==_[1]&&Ct(o,_[1]),(!C||j[0]&8)&&l(f,"title",_[3]),_[20]?w?j[0]&1048576&&B(w,1):(w=Vt(),w.c(),B(w,1),w.m(u,null)):w&&(Ke(),K(w,1,1,()=>{w=null}),Ve()),(!C||j[0]&2)&&Ce(u,"displayable",_[1]!==""),_[6]==="button"?g?(g.p(_,j),j[0]&64&&B(g,1)):(g=Yt(_),g.c(),B(g,1),g.m(n,E)):g&&(Ke(),K(g,1,1,()=>{g=null}),Ve()),k&&k.p&&(!C||j[2]&512)&&hi(k,M,_,_[71],C?gi(M,_[71],j,null):bi(_[71]),null);let ae=T;T=ke(_),T===ae?~T&&m[T].p(_,j):(p&&(Ke(),K(m[ae],1,1,()=>{m[ae]=null}),Ve()),~T?(p=m[T],p?p.p(_,j):(p=m[T]=L[T](_),p.c()),B(p,1),p.m(t,null)):p=null),(!C||j[0]&4&&W!==(W=qe(_[2])+" svelte-bz0zu3"))&&l(t,"class",W),(!C||j[0]&38)&&Ce(t,"can-collapse",_[5]&&_[1]==="")},i(_){C||(B(V),B(c.$$.fragment,_),B(h.$$.fragment,_),B(w),B(g),B(k,_),B(p),C=!0)},o(_){K(V),K(c.$$.fragment,_),K(h.$$.fragment,_),K(w),K(g),K(k,_),K(p),C=!1},d(_){_&&(I(e),I(t)),he(c),i[74](null),he(h),w&&w.d(),g&&g.d(),k&&k.d(_),~T&&m[T].d(),q=!1,fe(x)}}}function bn(i,e,t){let n,r,c,{$$slots:a={},$$scope:o}=e;const d={continental_marine:4,country:4,major_landform:8,region:5,subregion:6,county:7,joint_municipality:8,joint_submunicipality:9,municipality:10,municipal_district:11,locality:12,neighbourhood:13,place:14,postal_code:14,road:16,poi:17,address:18,"poi.peak":15,"poi.shop":18,"poi.cafe":18,"poi.restaurant":18,"poi.aerodrome":13};let{class:u=void 0}=e,{apiKey:f}=e,{bbox:h=void 0}=e,{clearButtonTitle:v="clear"}=e,{clearOnBlur:y=!1}=e,{clearListOnPick:E=!1}=e,{keepListOpen:z=!1}=e,{collapsed:T=!1}=e,{country:p=void 0}=e,{debounceSearch:W=200}=e,{enableReverse:C="never"}=e,{errorMessage:q="Something went wrong…"}=e,{filter:x=()=>!0}=e,{flyTo:V=!0}=e,{fuzzyMatch:w=!0}=e,{language:g=void 0}=e,{limit:M=void 0}=e;const k=41415112612;let{reverseGeocodingLimit:L=k}=e,{mapController:m=void 0}=e,{minLength:ke=2}=e,{noResultsMessage:_="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!"}=e,{placeholder:j="Search"}=e,{proximity:ae=[{type:"server-geolocation"}]}=e,{reverseActive:ie=C==="always"}=e,{reverseButtonTitle:$t="toggle reverse geocoding"}=e,{searchValue:Q=""}=e,{pickedResultStyle:Xe="full-geometry"}=e,{showPlaceType:ei="if-needed"}=e,{showResultsWhileTyping:Je=!0}=e,{autocompleteTimeout:dt=void 0}=e,{selectFirst:Ne=!0}=e,{flyToSelected:xe=!1}=e,{markerOnSelected:$e=!0}=e,{types:ft=void 0}=e;const ti=[];let{reverseGeocodingTypes:et=ti}=e,{exhaustiveReverseGeocoding:mt=!1}=e,{excludeTypes:gt=!1}=e;const ii=void 0;let{reverseGeocodingExcludeTypes:tt=ii}=e,{zoom:it=d}=e,{apiUrl:ht="https://api.maptiler.com/geocoding"}=e,{fetchParameters:bt={}}=e,{iconsBaseUrl:ni="https://cdn.maptiler.com/maptiler-geocoding-control/v2.1.3-rc2/icons/"}=e,{adjustUrlQuery:vt=()=>{}}=e,{adjustUrl:Lt=()=>{}}=e;function yn(s){se.focus(s)}function wn(){se.blur()}function ri(s,P=!0,G=!1){t(1,Q=s),P?(t(15,O=-1),si()):(li(void 0,!G,G),setTimeout(()=>{se.focus(),se.select()}))}function En(){t(13,S=void 0),t(14,b=void 0),t(15,O=-1)}function pn(){t(65,H=[]),t(14,b=void 0)}let S,H,b,oi="",se,O=-1,ue,nt=[],Me,_e,ne,ze,_t,be=!1;const Sn=new Set,ye=Ot();function Tn(){return!!ne}wi(()=>{m&&(m.setEventHandler(void 0),m.indicateReverse(!1),m.setSelectedMarker(-1),m.setFeatures(void 0,void 0,!1))});function si(s){if(t(17,be=!1),_e&&(window.clearTimeout(_e),_e=void 0),ne){window.clearTimeout(ne),t(66,ne=void 0),Be(Q,{appendSpace:!0});return}if(O>-1&&S)t(14,b=S[O]),t(1,Q=b.place_type[0]==="reverse"?b.place_name:b.place_name.replace(/,.*/,"")),t(19,ue=void 0),t(65,H=void 0),t(15,O=-1);else if(Q){const P=s||!yt(Q);Be(Q,{exact:!0}).then(()=>{t(65,H=S),t(14,b=void 0),P&&kn()}).catch(G=>t(19,ue=G))}}function yt(s){try{return cn(s,6)}catch{return!1}}async function Be(s,{byId:P=!1,exact:G=!1,appendSpace:le=!1}={}){var ce,we,ui;t(19,ue=void 0),Me==null||Me.abort();const Y=new AbortController;t(20,Me=Y);try{const U=yt(s),Ge=new URL(ht+"/"+encodeURIComponent(U?U.decimalLongitude+","+U.decimalLatitude:s+(le?" ":""))+".json"),re=Ge.searchParams;g!==void 0&&re.set("language",Array.isArray(g)?g.join(","):g??"");const[pt]=(m==null?void 0:m.getCenterAndZoom())??[];let de=(ce=!U||et===ti?ft:et)==null?void 0:ce.map(J=>typeof J=="string"?J:pt===void 0||(J[0]??0)<=pt&&pt<(J[1]??1/0)?J[2]:void 0).filter(J=>J!==void 0);de&&(de=[...new Set(de)],re.set("types",de.join(",")));const ci=!U||tt===ii?gt:tt;if(ci&&re.set("excludeTypes",String(ci)),h&&re.set("bbox",h.map(J=>J.toFixed(6)).join(",")),p&&re.set("country",Array.isArray(p)?p.join(","):p),!P&&!U){const J=await xi(m,ae,Y);J&&re.set("proximity",J),(G||!Je)&&re.set("autocomplete","false"),re.set("fuzzyMatch",String(w))}const Fe=L===k?M:L;Fe!==void 0&&Fe>1&&(de==null?void 0:de.length)!==1&&console.warn("For reverse geocoding when limit > 1 then types must contain single value."),U?(Fe===1||Fe!==void 0&&(mt||(de==null?void 0:de.length)===1))&&re.set("limit",String(Fe)):M!==void 0&&re.set("limit",String(M)),re.set("key",f),vt(re),Lt(Ge);const Hn=Ge.searchParams.get("types")===""&&Ge.searchParams.get("excludeTypes")!=="true",rt=Ge.toString();if(rt===oi){P?(E&&t(13,S=void 0),t(14,b=nt[0])):(t(13,S=nt),((we=S[O])==null?void 0:we.id)!==(r==null?void 0:r.id)&&t(15,O=-1));return}oi=rt;let He;if(Hn)He={type:"FeatureCollection",features:[]};else{const J=await fetch(rt,{signal:Y.signal,...bt});if(!J.ok)throw new Error(await J.text());He=await J.json()}ye("response",{url:rt,featureCollection:He}),P?(E&&t(13,S=void 0),t(14,b=He.features[0]),nt=[b]):(t(13,S=He.features.filter(x)),U&&S.unshift({type:"Feature",properties:{},id:"reverse_"+U.decimalLongitude+"_"+U.decimalLatitude,text:U.decimalLatitude+", "+U.decimalLongitude,place_name:U.decimalLatitude+", "+U.decimalLongitude,place_type:["reverse"],center:[U.decimalLongitude,U.decimalLatitude],bbox:[U.decimalLongitude,U.decimalLatitude,U.decimalLongitude,U.decimalLatitude],geometry:{type:"Point",coordinates:[U.decimalLongitude,U.decimalLatitude]}}),nt=S,((ui=S[O])==null?void 0:ui.id)!==(r==null?void 0:r.id)&&t(15,O=-1),U&&se.focus())}catch(U){if(U&&typeof U=="object"&&"name"in U&&U.name==="AbortError")return;throw U}finally{Y===Me&&t(20,Me=void 0)}}function kn(){var le;if(!(H!=null&&H.length)||!V)return;const s=[180,90,-180,-90],P=!H.some(Y=>!Y.matching_text);let G;for(const Y of H){const ce=je(Y);if(G=G===void 0?ce:ce===void 0?G:Math.max(G,ce),P||!Y.matching_text)for(const we of[0,1,2,3])s[we]=Math[we<2?"min":"max"](s[we],((le=Y.bbox)==null?void 0:le[we])??Y.center[we%2])}m&&H.length>0&&(b&&s[0]===s[2]&&s[1]===s[3]?m.flyTo(b.center,je(b)):m.fitBounds(Bt(s),50,G))}function wt(){!b||!m||(!b.bbox||b.bbox[0]===b.bbox[2]&&b.bbox[1]===b.bbox[3]?m.flyTo(b.center,je(b)):m.fitBounds(Bt(b.bbox),50,je(b)))}function je(s){var G;if(!s.bbox||s.bbox[0]!==s.bbox[2]&&s.bbox[1]!==s.bbox[3])return;const P=s.id.replace(/\..*/,"");return(Array.isArray((G=s.properties)==null?void 0:G.categories)?s.properties.categories.reduce((le,Y)=>{const ce=it[P+"."+Y];return le===void 0?ce:ce===void 0?le:Math.max(le,ce)},void 0):void 0)??it[P]}function Nn(s){t(0,ie=C==="always"),t(13,S=void 0),t(14,b=void 0),t(15,O=-1),ri(s[1].toFixed(6)+", "+Ji(s[0],[-180,180],!0).toFixed(6),!1,!0)}function Mn(s){if(!S)return;let P=s.key==="ArrowDown"?1:s.key==="ArrowUp"?-1:0;P&&(se.focus(),t(17,be=!0),s.preventDefault(),b&&O===-1&&t(15,O=S.findIndex(G=>G.id===(b==null?void 0:b.id))),O===(b||Ne?0:-1)&&P===-1&&t(15,O=S.length),t(15,O+=P),O>=S.length&&t(15,O=-1),O<0&&(b||Ne)&&t(15,O=0))}function li(s,P=!0,G=!1){if(t(19,ue=void 0),t(14,b=void 0),t(17,be=!0),_e&&(window.clearTimeout(_e),_e=void 0),ne&&(window.clearTimeout(ne),t(66,ne=void 0)),!Je&&!G||Q.length<ke){t(13,S=void 0);return}const le=Q;_e=window.setTimeout(()=>{_e=void 0,Be(le).catch(Y=>t(19,ue=Y))},P?W:0),Q.endsWith(" ")||t(66,ne=window.setTimeout(()=>{t(66,ne=void 0),Be(le,{appendSpace:!0}).catch(Y=>t(19,ue=Y))},dt))}function Et(s){b&&(b==null?void 0:b.id)===(s==null?void 0:s.id)?wt():(t(14,b=s),t(1,Q=s.place_name))}function ai(s){t(15,O=s)}function Cn(){(!Ne||b)&&t(15,O=-1),xe&&wt()}const Wn=()=>se.focus();function On(s){ot[s?"unshift":"push"](()=>{se=s,t(18,se)})}function Rn(){Q=this.value,t(1,Q),t(17,be),t(31,y),t(16,ze)}const zn=()=>t(17,be=!0),Un=()=>t(17,be=!1),Dn=()=>t(17,be=!0),In=()=>t(14,b=void 0),An=()=>{t(1,Q=""),t(14,b=void 0),se.focus()},Pn=()=>t(0,ie=!ie),Bn=()=>t(19,ue=void 0),jn=s=>ai(s),Gn=s=>Et(s),Fn=()=>{};return i.$$set=s=>{"class"in s&&t(2,u=s.class),"apiKey"in s&&t(29,f=s.apiKey),"bbox"in s&&t(30,h=s.bbox),"clearButtonTitle"in s&&t(3,v=s.clearButtonTitle),"clearOnBlur"in s&&t(31,y=s.clearOnBlur),"clearListOnPick"in s&&t(32,E=s.clearListOnPick),"keepListOpen"in s&&t(4,z=s.keepListOpen),"collapsed"in s&&t(5,T=s.collapsed),"country"in s&&t(33,p=s.country),"debounceSearch"in s&&t(34,W=s.debounceSearch),"enableReverse"in s&&t(6,C=s.enableReverse),"errorMessage"in s&&t(7,q=s.errorMessage),"filter"in s&&t(35,x=s.filter),"flyTo"in s&&t(36,V=s.flyTo),"fuzzyMatch"in s&&t(37,w=s.fuzzyMatch),"language"in s&&t(38,g=s.language),"limit"in s&&t(39,M=s.limit),"reverseGeocodingLimit"in s&&t(40,L=s.reverseGeocodingLimit),"mapController"in s&&t(41,m=s.mapController),"minLength"in s&&t(42,ke=s.minLength),"noResultsMessage"in s&&t(8,_=s.noResultsMessage),"placeholder"in s&&t(9,j=s.placeholder),"proximity"in s&&t(43,ae=s.proximity),"reverseActive"in s&&t(0,ie=s.reverseActive),"reverseButtonTitle"in s&&t(10,$t=s.reverseButtonTitle),"searchValue"in s&&t(1,Q=s.searchValue),"pickedResultStyle"in s&&t(44,Xe=s.pickedResultStyle),"showPlaceType"in s&&t(11,ei=s.showPlaceType),"showResultsWhileTyping"in s&&t(45,Je=s.showResultsWhileTyping),"autocompleteTimeout"in s&&t(46,dt=s.autocompleteTimeout),"selectFirst"in s&&t(47,Ne=s.selectFirst),"flyToSelected"in s&&t(48,xe=s.flyToSelected),"markerOnSelected"in s&&t(49,$e=s.markerOnSelected),"types"in s&&t(50,ft=s.types),"reverseGeocodingTypes"in s&&t(51,et=s.reverseGeocodingTypes),"exhaustiveReverseGeocoding"in s&&t(52,mt=s.exhaustiveReverseGeocoding),"excludeTypes"in s&&t(53,gt=s.excludeTypes),"reverseGeocodingExcludeTypes"in s&&t(54,tt=s.reverseGeocodingExcludeTypes),"zoom"in s&&t(55,it=s.zoom),"apiUrl"in s&&t(56,ht=s.apiUrl),"fetchParameters"in s&&t(57,bt=s.fetchParameters),"iconsBaseUrl"in s&&t(12,ni=s.iconsBaseUrl),"adjustUrlQuery"in s&&t(58,vt=s.adjustUrlQuery),"adjustUrl"in s&&t(59,Lt=s.adjustUrl),"$$scope"in s&&t(71,o=s.$$scope)},i.$$.update=()=>{if(i.$$.dirty[0]&64&&t(0,ie=C==="always"),i.$$.dirty[0]&16384|i.$$.dirty[1]&8192&&Xe!=="marker-only"&&b&&!b.address&&b.geometry.type==="Point"&&b.place_type[0]!=="reverse"&&Be(b.id,{byId:!0}).catch(s=>t(19,ue=s)),i.$$.dirty[0]&16384|i.$$.dirty[1]&1058|i.$$.dirty[2]&32&&(m&&b&&b.id!==_t&&V&&(wt(),E&&t(13,S=void 0),t(65,H=void 0),t(15,O=-1)),t(67,_t=b==null?void 0:b.id)),i.$$.dirty[0]&196608|i.$$.dirty[1]&1&&setTimeout(()=>{t(16,ze=be),y&&!ze&&t(1,Q="")}),i.$$.dirty[0]&8194|i.$$.dirty[1]&2048&&Q.length<ke&&(t(13,S=void 0),t(19,ue=void 0),t(65,H=S)),i.$$.dirty[0]&8192|i.$$.dirty[1]&65536&&Ne&&S!=null&&S.length&&(Tn()||t(15,O=0)),i.$$.dirty[0]&57344|i.$$.dirty[1]&65536&&Ne&&S!=null&&S.length&&O==-1&&!b&&t(15,O=0),i.$$.dirty[0]&8192|i.$$.dirty[2]&8&&H!==S&&t(65,H=void 0),i.$$.dirty[0]&73729|i.$$.dirty[1]&1024|i.$$.dirty[2]&8&&m&&m.setEventHandler(s=>{switch(s.type){case"mapClick":ie&&Nn(s.coordinates);break;case"markerClick":{const P=S==null?void 0:S.find(G=>G.id===s.id);P&&Et(P)}break;case"markerMouseEnter":H&&t(15,O=ze?(S==null?void 0:S.findIndex(P=>P.id===s.id))??-1:-1);break;case"markerMouseLeave":H&&t(15,O=-1);break}}),i.$$.dirty[0]&40960&&t(68,r=S==null?void 0:S[O]),i.$$.dirty[1]&132128|i.$$.dirty[2]&64&&m&&r&&V&&xe&&m.flyTo(r.center,je(r)),i.$$.dirty[1]&8192&&t(70,n=Xe==="full-geometry-including-polygon-center-marker"),i.$$.dirty[1]&263168|i.$$.dirty[2]&256&&($e||m==null||m.setFeatures(void 0,void 0,n)),i.$$.dirty[0]&16384|i.$$.dirty[1]&263168|i.$$.dirty[2]&328&&m&&$e&&!H&&(m.setFeatures(r?[r]:void 0,b,n),m.setSelectedMarker(r?0:-1)),i.$$.dirty[0]&16384|i.$$.dirty[1]&1024|i.$$.dirty[2]&264&&m&&m.setFeatures(H,b,n),i.$$.dirty[0]&32768|i.$$.dirty[1]&1024|i.$$.dirty[2]&8&&H&&m&&m.setSelectedMarker(O),i.$$.dirty[2]&80&&r&&(window.clearTimeout(ne),t(66,ne=void 0)),i.$$.dirty[0]&2|i.$$.dirty[1]&1024&&m){const s=yt(Q);m.setReverseMarker(s?[s.decimalLongitude,s.decimalLatitude]:void 0)}i.$$.dirty[2]&64&&ye("select",{feature:r}),i.$$.dirty[0]&16384&&ye("pick",{feature:b}),i.$$.dirty[0]&73744&&t(69,c=!!(S!=null&&S.length)&&(ze||z)),i.$$.dirty[2]&128&&ye("optionsvisibilitychange",{optionsVisible:c}),i.$$.dirty[0]&8192&&ye("featureslisted",{features:S}),i.$$.dirty[2]&8&&ye("featuresmarked",{features:H}),i.$$.dirty[0]&1&&ye("reversetoggle",{reverse:ie}),i.$$.dirty[0]&2&&ye("querychange",{query:Q}),i.$$.dirty[0]&1|i.$$.dirty[1]&1024&&m&&m.indicateReverse(ie)},[ie,Q,u,v,z,T,C,q,_,j,$t,ei,ni,S,b,O,ze,be,se,ue,Me,Sn,si,Mn,li,Et,ai,Cn,d,f,h,y,E,p,W,x,V,w,g,M,L,m,ke,ae,Xe,Je,dt,Ne,xe,$e,ft,et,mt,gt,tt,it,ht,bt,vt,Lt,yn,wn,ri,En,pn,H,ne,_t,r,c,n,o,a,Wn,On,Rn,zn,Un,Dn,In,An,Pn,Bn,jn,Gn,Fn]}class vn extends Te{constructor(e){super(),Se(this,e,bn,hn,Ee,{ZOOM_DEFAULTS:28,class:2,apiKey:29,bbox:30,clearButtonTitle:3,clearOnBlur:31,clearListOnPick:32,keepListOpen:4,collapsed:5,country:33,debounceSearch:34,enableReverse:6,errorMessage:7,filter:35,flyTo:36,fuzzyMatch:37,language:38,limit:39,reverseGeocodingLimit:40,mapController:41,minLength:42,noResultsMessage:8,placeholder:9,proximity:43,reverseActive:0,reverseButtonTitle:10,searchValue:1,pickedResultStyle:44,showPlaceType:11,showResultsWhileTyping:45,autocompleteTimeout:46,selectFirst:47,flyToSelected:48,markerOnSelected:49,types:50,reverseGeocodingTypes:51,exhaustiveReverseGeocoding:52,excludeTypes:53,reverseGeocodingExcludeTypes:54,zoom:55,apiUrl:56,fetchParameters:57,iconsBaseUrl:12,adjustUrlQuery:58,adjustUrl:59,focus:60,blur:61,setQuery:62,clearList:63,clearMap:64},null,[-1,-1,-1,-1])}get ZOOM_DEFAULTS(){return this.$$.ctx[28]}get focus(){return this.$$.ctx[60]}get blur(){return this.$$.ctx[61]}get setQuery(){return this.$$.ctx[62]}get clearList(){return this.$$.ctx[63]}get clearMap(){return this.$$.ctx[64]}}const Jt=["featuresListed","featuresMarked","optionsVisibilityChange","pick","queryChange","response","reverseToggle","select"],Ln=["adjustUrlQuery","adjustUrl","apiKey","apiUrl","bbox","class","clearButtonTitle","clearListOnPick","clearOnBlur","collapsed","country","debounceSearch","enableReverse","errorMessage","excludeTypes","reverseGeocodingExcludeTypes","exhaustiveReverseGeocoding","fetchParameters","filter","flyToSelected","fuzzyMatch","iconsBaseUrl","keepListOpen","language","limit","reverseGeocodingLimit","mapController","markerOnSelected","minLength","noResultsMessage","pickedResultStyle","placeholder","proximity","reverseActive","reverseButtonTitle","selectFirst","showPlaceType","showResultsWhileTyping","types","reverseGeocodingTypes","zoom"];function xt(i){return"on"+i[0].toUpperCase()+i.slice(1)}const _n=F.forwardRef(function(e,t){const n=F.useRef(void 0),r=F.useRef(void 0),c={...e};for(const a of Jt)delete c[xt(a)];F.useEffect(()=>{if(!n.current)throw new Error;const a=new vn({target:n.current,props:c});return r.current=a,()=>a.$destroy()},[]);for(const a of Ln)F.useEffect(()=>{r.current&&e[a]!==void 0&&r.current.$set({[a]:e[a]})},[e[a]]);for(const a of Jt){const o=e[xt(a)];F.useEffect(()=>{var d;return o&&((d=r.current)==null?void 0:d.$on(a.toLowerCase(),u=>{o(u.detail)}))},[o])}return F.useImperativeHandle(t,()=>({setQuery:(a,o=!0)=>{var d;return(d=r.current)==null?void 0:d.setQuery(a,o)},clearMap:()=>{var a;return(a=r.current)==null?void 0:a.clearMap()},clearList:()=>{var a;return(a=r.current)==null?void 0:a.clearList()},focus:a=>{var o;return(o=r.current)==null?void 0:o.focus(a)},blur:()=>{var a;return(a=r.current)==null?void 0:a.blur()},setReverseMode:a=>{var o;return(o=r.current)==null?void 0:o.$set({reverseActive:a})}})),F.createElement("div",{ref:n})});$.GeocodingControl=_n,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})});
(function(x,G){typeof exports=="object"&&typeof module<"u"?G(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],G):(x=typeof globalThis<"u"?globalThis:x||self,G(x.reactMaptilerGeocoder={},x.React))})(this,function(x,G){"use strict";var jn=Object.defineProperty;var Fn=(x,G,D)=>G in x?jn(x,G,{enumerable:!0,configurable:!0,writable:!0,value:D}):x[G]=D;var Et=(x,G,D)=>Fn(x,typeof G!="symbol"?G+"":G,D);function D(){}function li(i,e){for(const t in e)i[t]=e[t];return i}function St(i){return i()}function pt(){return Object.create(null)}function de(i){i.forEach(St)}function Tt(i){return typeof i=="function"}function ye(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let Ge;function Y(i,e){return i===e?!0:(Ge||(Ge=document.createElement("a")),Ge.href=e,i===Ge.href)}function ui(i){return Object.keys(i).length===0}function ci(i,e,t,n){if(i){const r=kt(i,e,t,n);return i[0](r)}}function kt(i,e,t,n){return i[1]&&n?li(t.ctx.slice(),i[1](n(e))):t.ctx}function di(i,e,t,n){return i[2],e.dirty}function fi(i,e,t,n,r,c){if(r){const l=kt(e,t,n,c);i.p(l,r)}}function mi(i){if(i.ctx.length>32){const e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function He(i){return i??""}function N(i,e){i.appendChild(e)}function A(i,e,t){i.insertBefore(e,t||null)}function I(i){i.parentNode&&i.parentNode.removeChild(i)}function O(i){return document.createElement(i)}function fe(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function be(i){return document.createTextNode(i)}function $(){return be(" ")}function gi(){return be("")}function Z(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function hi(i){return function(e){return e.preventDefault(),i.call(this,e)}}function a(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function bi(i){return Array.from(i.childNodes)}function ze(i,e){e=""+e,i.data!==e&&(i.data=e)}function Nt(i,e){i.value=e??""}function ke(i,e,t){i.classList.toggle(e,!!t)}function vi(i,e,{bubbles:t=!1,cancelable:n=!1}={}){return new CustomEvent(i,{detail:e,bubbles:t,cancelable:n})}let Ue;function De(i){Ue=i}function Mt(){if(!Ue)throw new Error("Function called outside component initialization");return Ue}function Li(i){Mt().$$.on_destroy.push(i)}function Ct(){const i=Mt();return(e,t,{cancelable:n=!1}={})=>{const r=i.$$.callbacks[e];if(r){const c=vi(e,t,{cancelable:n});return r.slice().forEach(l=>{l.call(i,c)}),!c.defaultPrevented}return!0}}function _i(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const Ne=[],nt=[];let Me=[];const Wt=[],yi=Promise.resolve();let rt=!1;function wi(){rt||(rt=!0,yi.then(Ot))}function ot(i){Me.push(i)}const st=new Set;let Ce=0;function Ot(){if(Ce!==0)return;const i=Ue;do{try{for(;Ce<Ne.length;){const e=Ne[Ce];Ce++,De(e),Ei(e.$$)}}catch(e){throw Ne.length=0,Ce=0,e}for(De(null),Ne.length=0,Ce=0;nt.length;)nt.pop()();for(let e=0;e<Me.length;e+=1){const t=Me[e];st.has(t)||(st.add(t),t())}Me.length=0}while(Ne.length);for(;Wt.length;)Wt.pop()();rt=!1,st.clear(),De(i)}function Ei(i){if(i.fragment!==null){i.update(),de(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(ot)}}function Si(i){const e=[],t=[];Me.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Me=e}const Ze=new Set;let we;function qe(){we={r:0,c:[],p:we}}function Qe(){we.r||de(we.c),we=we.p}function B(i,e){i&&i.i&&(Ze.delete(i),i.i(e))}function Q(i,e,t,n){if(i&&i.o){if(Ze.has(i))return;Ze.add(i),we.c.push(()=>{Ze.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Rt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function pi(i,e){Q(i,1,1,()=>{e.delete(i.key)})}function Ti(i,e,t,n,r,c,l,o,d,u,f,h){let v=i.length,y=c.length,E=v;const R={};for(;E--;)R[i[E].key]=E;const p=[],S=new Map,W=new Map,C=[];for(E=y;E--;){const w=h(r,c,E),g=t(w);let M=l.get(g);M?C.push(()=>M.p(w,e)):(M=u(g,w),M.c()),S.set(g,p[E]=M),g in R&&W.set(g,Math.abs(E-R[g]))}const q=new Set,J=new Set;function K(w){B(w,1),w.m(o,f),l.set(w.key,w),f=w.first,y--}for(;v&&y;){const w=p[y-1],g=i[v-1],M=w.key,k=g.key;w===g?(f=w.first,v--,y--):S.has(k)?!l.has(M)||q.has(M)?K(w):J.has(k)?v--:W.get(M)>W.get(k)?(J.add(M),K(w)):(q.add(k),v--):(d(g,l),v--)}for(;v--;){const w=i[v];S.has(w.key)||d(w,l)}for(;y;)K(p[y-1]);return de(C),p}function ve(i){i&&i.c()}function me(i,e,t){const{fragment:n,after_update:r}=i.$$;n&&n.m(e,t),ot(()=>{const c=i.$$.on_mount.map(St).filter(Tt);i.$$.on_destroy?i.$$.on_destroy.push(...c):de(c),i.$$.on_mount=[]}),r.forEach(ot)}function ge(i,e){const t=i.$$;t.fragment!==null&&(Si(t.after_update),de(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function ki(i,e){i.$$.dirty[0]===-1&&(Ne.push(i),wi(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function Ee(i,e,t,n,r,c,l=null,o=[-1]){const d=Ue;De(i);const u=i.$$={fragment:null,ctx:[],props:c,update:D,not_equal:r,bound:pt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(d?d.$$.context:[])),callbacks:pt(),dirty:o,skip_bound:!1,root:e.target||d.$$.root};l&&l(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(h,v,...y)=>{const E=y.length?y[0]:v;return u.ctx&&r(u.ctx[h],u.ctx[h]=E)&&(!u.skip_bound&&u.bound[h]&&u.bound[h](E),f&&ki(i,h)),v}):[],u.update(),f=!0,de(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){const h=bi(e.target);u.fragment&&u.fragment.l(h),h.forEach(I)}else u.fragment&&u.fragment.c();e.intro&&B(i.$$.fragment),me(i,e.target,e.anchor),Ot()}De(d)}class Se{constructor(){Et(this,"$$");Et(this,"$$set")}$destroy(){ge(this,1),this.$destroy=D}$on(e,t){if(!Tt(t))return D;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const r=n.indexOf(t);r!==-1&&n.splice(r,1)}}$set(e){this.$$set&&!ui(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Ni="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ni);function Mi(i){let e,t;return{c(){e=fe("svg"),t=fe("path"),a(t,"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"),a(e,"viewBox","0 0 14 14"),a(e,"width","13"),a(e,"height","13"),a(e,"class","svelte-en2qvf")},m(n,r){A(n,e,r),N(e,t)},p:D,i:D,o:D,d(n){n&&I(e)}}}class zt extends Se{constructor(e){super(),Ee(this,e,null,Mi,ye,{})}}function Ci(i){let e,t;return{c(){e=fe("svg"),t=fe("path"),a(t,"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"),a(e,"viewBox","0 0 30 30"),a(e,"fill","none"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"class","svelte-d2loi5")},m(n,r){A(n,e,r),N(e,t)},p:D,i:D,o:D,d(n){n&&I(e)}}}class Ut extends Se{constructor(e){super(),Ee(this,e,null,Ci,ye,{})}}function Wi(i){let e,t;return{c(){e=O("img"),Y(e.src,t=i[3]+"area.svg")||a(e,"src",t),a(e,"alt",i[7]),a(e,"title",i[7]),a(e,"class","svelte-w9y5n9")},m(n,r){A(n,e,r)},p(n,r){r&8&&!Y(e.src,t=n[3]+"area.svg")&&a(e,"src",t),r&128&&a(e,"alt",n[7]),r&128&&a(e,"title",n[7])},d(n){n&&I(e)}}}function Oi(i){let e,t;return{c(){e=O("img"),Y(e.src,t=i[3]+"reverse.svg")||a(e,"src",t),a(e,"alt",i[7]),a(e,"title",i[7]),a(e,"class","svelte-w9y5n9")},m(n,r){A(n,e,r)},p(n,r){r&8&&!Y(e.src,t=n[3]+"reverse.svg")&&a(e,"src",t),r&128&&a(e,"alt",n[7]),r&128&&a(e,"title",n[7])},d(n){n&&I(e)}}}function Ri(i){let e,t;return{c(){e=O("img"),Y(e.src,t=i[3]+"poi.svg")||a(e,"src",t),a(e,"alt",i[7]),a(e,"title",i[7]),a(e,"class","svelte-w9y5n9")},m(n,r){A(n,e,r)},p(n,r){r&8&&!Y(e.src,t=n[3]+"poi.svg")&&a(e,"src",t),r&128&&a(e,"alt",n[7]),r&128&&a(e,"title",n[7])},d(n){n&&I(e)}}}function zi(i){let e,t;return{c(){e=O("img"),Y(e.src,t=i[3]+"postal_code.svg")||a(e,"src",t),a(e,"alt",i[7]),a(e,"title",i[7]),a(e,"class","svelte-w9y5n9")},m(n,r){A(n,e,r)},p(n,r){r&8&&!Y(e.src,t=n[3]+"postal_code.svg")&&a(e,"src",t),r&128&&a(e,"alt",n[7]),r&128&&a(e,"title",n[7])},d(n){n&&I(e)}}}function Ui(i){let e,t;return{c(){e=O("img"),Y(e.src,t=i[3]+"street.svg")||a(e,"src",t),a(e,"alt",i[7]),a(e,"title",i[7]),a(e,"class","svelte-w9y5n9")},m(n,r){A(n,e,r)},p(n,r){r&8&&!Y(e.src,t=n[3]+"street.svg")&&a(e,"src",t),r&128&&a(e,"alt",n[7]),r&128&&a(e,"title",n[7])},d(n){n&&I(e)}}}function Di(i){let e,t;return{c(){e=O("img"),Y(e.src,t=i[3]+"road.svg")||a(e,"src",t),a(e,"alt",i[7]),a(e,"title",i[7]),a(e,"class","svelte-w9y5n9")},m(n,r){A(n,e,r)},p(n,r){r&8&&!Y(e.src,t=n[3]+"road.svg")&&a(e,"src",t),r&128&&a(e,"alt",n[7]),r&128&&a(e,"title",n[7])},d(n){n&&I(e)}}}function Ii(i){let e,t;return{c(){e=O("img"),Y(e.src,t=i[3]+"housenumber.svg")||a(e,"src",t),a(e,"alt",i[7]),a(e,"title",i[7]),a(e,"class","svelte-w9y5n9")},m(n,r){A(n,e,r)},p(n,r){r&8&&!Y(e.src,t=n[3]+"housenumber.svg")&&a(e,"src",t),r&128&&a(e,"alt",n[7]),r&128&&a(e,"title",n[7])},d(n){n&&I(e)}}}function Ai(i){let e,t,n,r;return{c(){e=O("img"),Y(e.src,t=i[5])||a(e,"src",t),a(e,"alt",i[4]),a(e,"title",i[7]),a(e,"class","svelte-w9y5n9")},m(c,l){A(c,e,l),n||(r=Z(e,"error",i[14]),n=!0)},p(c,l){l&32&&!Y(e.src,t=c[5])&&a(e,"src",t),l&16&&a(e,"alt",c[4]),l&128&&a(e,"title",c[7])},d(c){c&&I(e),n=!1,r()}}}function Pi(i){let e,t;return{c(){e=O("div"),a(e,"class","sprite-icon svelte-w9y5n9"),a(e,"style",t=`
width: ${i[6].width/ie}px;
height: ${i[6].height/ie}px;
background-image: url(${i[3]}sprite${at}.png);
background-position: -${i[6].x/ie}px -${i[6].y/ie}px;
background-size: ${oe.width/ie}px ${oe.height/ie}px;
`),a(e,"title",i[7])},m(n,r){A(n,e,r)},p(n,r){r&72&&t!==(t=`
width: ${n[6].width/ie}px;
height: ${n[6].height/ie}px;
background-image: url(${n[3]}sprite${at}.png);
background-position: -${n[6].x/ie}px -${n[6].y/ie}px;
background-size: ${oe.width/ie}px ${oe.height/ie}px;
`)&&a(e,"style",t),r&128&&a(e,"title",n[7])},d(n){n&&I(e)}}}function Dt(i){let e,t;return{c(){e=O("span"),t=be(i[7]),a(e,"class","secondary svelte-w9y5n9")},m(n,r){A(n,e,r),N(e,t)},p(n,r){r&128&&ze(t,n[7])},d(n){n&&I(e)}}}function Bi(i){let e,t,n,r,c,l,o,d,u,f=(i[8]?i[0].place_name:i[0].place_name.replace(/,.*/,""))+"",h,v,y=i[2]==="always"||i[2]!=="never"&&!i[0].address&&!i[0].id.startsWith("road.")&&!i[0].id.startsWith("address.")&&!i[0].id.startsWith("postal_code.")&&(!i[0].id.startsWith("poi.")||!i[5])&&!i[8],E,R,p=(i[8]?"":i[0].place_name.replace(/[^,]*,?\s*/,""))+"",S,W,C,q,J,K;function w(L,m){return m&1&&(t=null),m&1&&(n=null),m&1&&(r=null),m&1&&(c=null),oe&&L[6]?Pi:L[5]?Ai:L[0].address?Ii:(t==null&&(t=!!L[0].id.startsWith("road.")),t?Di:(n==null&&(n=!!L[0].id.startsWith("address.")),n?Ui:(r==null&&(r=!!L[0].id.startsWith("postal_code.")),r?zi:(c==null&&(c=!!L[0].id.startsWith("poi.")),c?Ri:L[8]?Oi:Wi))))}let g=w(i,-1),M=g(i),k=y&&Dt(i);return{c(){e=O("li"),M.c(),l=$(),o=O("span"),d=O("span"),u=O("span"),h=be(f),v=$(),k&&k.c(),E=$(),R=O("span"),S=be(p),a(u,"class","primary svelte-w9y5n9"),a(d,"class","svelte-w9y5n9"),a(R,"class","line2 svelte-w9y5n9"),a(o,"class","texts svelte-w9y5n9"),a(e,"tabindex","-1"),a(e,"role","option"),a(e,"aria-selected",W=i[1]==="selected"),a(e,"aria-checked",C=i[1]==="picked"),a(e,"class",q=He(i[1])+" svelte-w9y5n9")},m(L,m){A(L,e,m),M.m(e,null),N(e,l),N(e,o),N(o,d),N(d,u),N(u,h),N(d,v),k&&k.m(d,null),N(o,E),N(o,R),N(R,S),J||(K=[Z(e,"mouseenter",i[13]),Z(e,"focus",i[15]),Z(e,"click",i[16])],J=!0)},p(L,[m]){g===(g=w(L,m))&&M?M.p(L,m):(M.d(1),M=g(L),M&&(M.c(),M.m(e,l))),m&257&&f!==(f=(L[8]?L[0].place_name:L[0].place_name.replace(/,.*/,""))+"")&&ze(h,f),m&293&&(y=L[2]==="always"||L[2]!=="never"&&!L[0].address&&!L[0].id.startsWith("road.")&&!L[0].id.startsWith("address.")&&!L[0].id.startsWith("postal_code.")&&(!L[0].id.startsWith("poi.")||!L[5])&&!L[8]),y?k?k.p(L,m):(k=Dt(L),k.c(),k.m(d,null)):k&&(k.d(1),k=null),m&257&&p!==(p=(L[8]?"":L[0].place_name.replace(/[^,]*,?\s*/,""))+"")&&ze(S,p),m&2&&W!==(W=L[1]==="selected")&&a(e,"aria-selected",W),m&2&&C!==(C=L[1]==="picked")&&a(e,"aria-checked",C),m&2&&q!==(q=He(L[1])+" svelte-w9y5n9")&&a(e,"class",q)},i:D,o:D,d(L){L&&I(e),M.d(),k&&k.d(),J=!1,de(K)}}}const It=devicePixelRatio>1.25,at=It?"@2x":"",ie=It?2:1;let oe,Ke;function ji(i,e,t){let n,r,c,{feature:l}=e,{style:o="default"}=e,{showPlaceType:d}=e,{missingIconsCache:u}=e,{iconsBaseUrl:f}=e;const h=Ct();let v,y,E,R;function p(){Ke??(Ke=fetch(`${f}sprite${at}.json`).then(g=>g.json()).then(g=>{oe=g}).catch(()=>{oe=null}))}function S(){y&&u.add(y),W()}function W(){oe!==void 0?C():(p(),Ke==null||Ke.then(C))}function C(){do{if(R--,t(4,v=n==null?void 0:n[R]),t(6,E=v?oe==null?void 0:oe.icons[v]:void 0),E)break;t(5,y=v?f+v.replace(/ /g,"_")+".svg":void 0)}while(R>-1&&(!y||u.has(y)))}function q(g){_i.call(this,i,g)}const J=()=>S(),K=()=>h("select",void 0),w=g=>{document.activeElement!==g.target&&h("select",void 0)};return i.$$set=g=>{"feature"in g&&t(0,l=g.feature),"style"in g&&t(1,o=g.style),"showPlaceType"in g&&t(2,d=g.showPlaceType),"missingIconsCache"in g&&t(11,u=g.missingIconsCache),"iconsBaseUrl"in g&&t(3,f=g.iconsBaseUrl)},i.$$.update=()=>{var g,M,k,L,m;i.$$.dirty&1&&t(12,n=(g=l.properties)==null?void 0:g.categories),i.$$.dirty&1&&t(8,r=l.place_type[0]==="reverse"),i.$$.dirty&1&&t(7,c=((k=(M=l.properties)==null?void 0:M.categories)==null?void 0:k.join(", "))??((m=(L=l.properties)==null?void 0:L.place_type_name)==null?void 0:m[0])??l.place_type[0]),i.$$.dirty&4096&&(R=(n==null?void 0:n.length)??0,W())},[l,o,d,f,v,y,E,c,r,h,S,u,n,q,J,K,w]}class Fi extends Se{constructor(e){super(),Ee(this,e,ji,Bi,ye,{feature:0,style:1,showPlaceType:2,missingIconsCache:11,iconsBaseUrl:3})}}function Gi(i){let e;return{c(){e=O("div"),e.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>',a(e,"class","svelte-7cmwmc")},m(t,n){A(t,e,n)},p:D,i:D,o:D,d(t){t&&I(e)}}}class Hi extends Se{constructor(e){super(),Ee(this,e,null,Gi,ye,{})}}function Zi(i){let e,t;return{c(){e=fe("svg"),t=fe("path"),a(t,"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"),a(e,"viewBox","0 0 60.006 21.412"),a(e,"width","14"),a(e,"height","20"),a(e,"class","svelte-en2qvf")},m(n,r){A(n,e,r),N(e,t)},p:D,i:D,o:D,d(n){n&&I(e)}}}class qi extends Se{constructor(e){super(),Ee(this,e,null,Zi,ye,{})}}function Qi(i){let e,t,n;return{c(){e=fe("svg"),t=fe("circle"),n=fe("path"),a(t,"cx","4.789"),a(t,"cy","4.787"),a(t,"r","3.85"),a(t,"class","svelte-1aq105l"),a(n,"d","M12.063 12.063 7.635 7.635"),a(n,"class","svelte-1aq105l"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"width","13"),a(e,"height","13"),a(e,"viewBox","0 0 13 13"),a(e,"class","svelte-1aq105l")},m(r,c){A(r,e,c),N(e,t),N(e,n)},p:D,i:D,o:D,d(r){r&&I(e)}}}class Ki extends Se{constructor(e){super(),Ee(this,e,null,Qi,ye,{})}}function Vi(i,e,t){const n=e[1],r=e[0],c=n-r;return i===n&&t?i:((i-r)%c+c)%c+r}function At(i){const e=[...i];return e[2]<e[0]&&(Math.abs((e[0]+e[2]+360)/2)>Math.abs((e[0]-360+e[2])/2)?e[0]-=360:e[2]+=360),e}let Ie;async function Yi(i,e,t){const n=i==null?void 0:i.getCenterAndZoom();for(const r of e??[])if(!(n&&(r.minZoom!=null&&r.minZoom>n[0]||r.maxZoom!=null&&r.maxZoom<n[0]))){if(r.type==="fixed")return r.coordinates.join(",");e:if(r.type==="client-geolocation"){if(Ie&&r.cachedLocationExpiry&&Ie.time+r.cachedLocationExpiry>Date.now()){if(!Ie.coords)break e;return Ie.coords}let c;try{return c=await new Promise((l,o)=>{t.signal.addEventListener("abort",()=>{o(Error("aborted"))}),navigator.geolocation.getCurrentPosition(d=>{l([d.coords.longitude,d.coords.latitude].map(u=>u.toFixed(6)).join(","))},d=>{o(d)},r)}),c}catch{}finally{r.cachedLocationExpiry&&(Ie={time:Date.now(),coords:c})}if(t.signal.aborted)return}if(r.type==="server-geolocation")return"ip";if(n&&r.type==="map-center")return n[1].toFixed(6)+","+n[2].toFixed(6)}}const Xi=/^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(EAST|WEST|[EW])?$/i,Pt=/^([+-]?[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,})$/,Bt=/^(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,jt=/^(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,Ft=/^(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,Gt=/^(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 Ji(i){if(!["DMS","DM","DD"].includes(i))throw new Error("invalid format specified");if(this.decimalCoordinates&&this.decimalCoordinates.trim()){const e=this.decimalCoordinates.split(",").map(y=>Number(y.trim())),t=Number(e[0]),n=Number(e[1]),r=Math.abs(t),c=Math.abs(n),l=t>0?"N":"S",o=n>0?"E":"W";let d;i=="DD"&&(d=`${r}° ${l}, ${c}° ${o}`);const u=Math.floor(r),f=Math.floor(c),h=(r-u)*60,v=(c-f)*60;if(i=="DM"){let y=Ht(h,3).toFixed(3).padStart(6,"0"),E=Ht(v,3).toFixed(3).padStart(6,"0");y.endsWith(".000")&&E.endsWith(".000")&&(y=y.replace(/\.000$/,""),E=E.replace(/\.000$/,"")),d=`${u}° ${y}' ${l}, ${f}° ${E}' ${o}`}if(i=="DMS"){const y=Math.floor(h),E=Math.floor(v);let R=((h-y)*60).toFixed(1).padStart(4,"0"),p=((v-E)*60).toFixed(1).padStart(4,"0");const S=y.toString().padStart(2,"0"),W=E.toString().padStart(2,"0");R.endsWith(".0")&&p.endsWith(".0")&&(R=R.replace(/\.0$/,""),p=p.replace(/\.0$/,"")),d=`${u}° ${S}' ${R}" ${l}, ${f}° ${W}' ${p}" ${o}`}return d}else throw new Error("no decimal coordinates to convert")}function Ht(i,e){const t=Math.pow(10,e);return Math.round((i+Number.EPSILON)*t)/t}function lt(i,e){e||(e=5),i=i.replace(/\s+/g," ").trim();let t=null,n=null,r="",c="",l=null,o=[],d=!1;if(Xi.test(i))throw new Error("invalid coordinate value");if(Pt.test(i))if(o=Pt.exec(i),d=Ae(o),d)t=Math.abs(o[1])+o[2]/60,Number(o[1])<0&&(t*=-1),n=Math.abs(o[3])+o[4]/60,Number(o[3])<0&&(n*=-1),l="DM";else throw new Error("invalid coordinate format");else if(Bt.test(i))if(o=Bt.exec(i),d=Ae(o),d){if(t=o[2],n=o[6],t.includes(",")&&(t=t.replace(",",".")),n.includes(",")&&(n=n.replace(",",".")),l="DD",Number(Math.round(t))==Number(t))throw new Error("integer only coordinate provided");if(Number(Math.round(n))==Number(n))throw new Error("integer only coordinate provided");o[1]?(r=o[1],c=o[5]):o[4]&&(r=o[4],c=o[8])}else throw new Error("invalid decimal coordinate format");else if(jt.test(i))if(o=jt.exec(i),d=Ae(o),d)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4]/60,l="DM"),o[6]&&(t+=o[6].replace(",",".")/3600,l="DMS"),parseInt(o[2])<0&&(t=-1*t),n=Math.abs(parseInt(o[9])),o[11]&&(n+=o[11]/60),o[13]&&(n+=o[13].replace(",",".")/3600),parseInt(o[9])<0&&(n=-1*n),o[1]?(r=o[1],c=o[8]):o[7]&&(r=o[7],c=o[14]);else throw new Error("invalid DMS coordinates format");else if(Ft.test(i))if(o=Ft.exec(i),d=Ae(o),d)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4]/60,l="DM"),o[6]&&(t+=o[6]/3600,l="DMS"),parseInt(o[2])<0&&(t=-1*t),n=Math.abs(parseInt(o[10])),o[12]&&(n+=o[12]/60),o[14]&&(n+=o[14]/3600),parseInt(o[10])<0&&(n=-1*n),o[1]?(r=o[1],c=o[9]):o[8]&&(r=o[8],c=o[16]);else throw new Error("invalid DMS coordinates format");else if(Gt.test(i)){if(o=Gt.exec(i),d=Ae(o),o.filter(u=>u).length<=5)throw new Error("invalid coordinates format");if(d)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4].replace(",",".")/60,l="DM"),o[6]&&(t+=o[6].replace(",",".")/3600,l="DMS"),parseInt(o[2])<0&&(t=-1*t),n=Math.abs(parseInt(o[10])),o[12]&&(n+=o[12].replace(",",".")/60),o[14]&&(n+=o[14].replace(",",".")/3600),parseInt(o[10])<0&&(n=-1*n),o[1]?(r=o[1],c=o[9]):o[8]&&(r=o[8],c=o[16]);else throw new Error("invalid coordinates format")}if(d){if(Math.abs(n)>=180)throw new Error("invalid longitude value");if(Math.abs(t)>=90)throw new Error("invalid latitude value");if(r&&!c||!r&&c)throw new Error("invalid coordinates value");if(r&&r==c)throw new Error("invalid coordinates format");t.toString().includes(",")&&(t=t.replace(",",".")),n.toString().includes(",")&&(n=n.replace(",","."));let u=/S|SOUTH/i;u.test(r)&&t>0&&(t=-1*t),u=/W|WEST/i,u.test(c)&&n>0&&(n=-1*n);const f=o[0].trim();let h,v;const y=/[,/;\u0020]/g,E=f.match(y);if(E==null){const S=Math.floor(i.length/2);h=f.substring(0,S).trim(),v=f.substring(S).trim()}else{let S;E.length%2==1?S=Math.floor(E.length/2):S=E.length/2-1;let W=0;if(S==0)W=f.indexOf(E[0]),h=f.substring(0,W).trim(),v=f.substring(W+1).trim();else{let C=0,q=0;for(;C<=S;)W=f.indexOf(E[C],q),q=W+1,C++;h=f.substring(0,W).trim(),v=f.substring(W+1).trim()}}const R=h.split(".");if(R.length==2&&R[1]==0&&R[1].length!=2)throw new Error("invalid coordinates format");const p=v.split(".");if(p.length==2&&p[1]==0&&p[1].length!=2)throw new Error("invalid coordinates format");if(/^\d+$/.test(h)||/^\d+$/.test(v))throw new Error("degree only coordinate/s provided");return t=Number(Number(t).toFixed(e)),n=Number(Number(n).toFixed(e)),Object.freeze({verbatimCoordinates:f,verbatimLatitude:h,verbatimLongitude:v,decimalLatitude:t,decimalLongitude:n,decimalCoordinates:`${t},${n}`,originalFormat:l,closeEnough:xi,toCoordinateFormat:Ji})}else throw new Error("coordinates pattern match failed")}function Ae(i){if(!isNaN(i[0]))return!1;const e=[...i];if(e.shift(),e.length%2>0)return!1;const t=/^[-+]?\d+([\.,]\d+)?$/,n=/[eastsouthnorthwest]+/i,r=e.length/2;for(let c=0;c<r;c++){const l=e[c],o=e[c+r],d=t.test(l)&&t.test(o),u=n.test(l)&&n.test(o),f=l==o;if(!(l==null&&o==null)){if(l==null||o==null)return!1;if(d||u||f)continue;return!1}}return!0}function Zt(i,e){const t=Math.abs(i-e);return Number(t.toFixed(6))<=1e-5}function xi(i){if(!i)throw new Error("coords must be provided");if(i.includes(",")){const e=i.split(",");if(Number(e[0])==NaN||Number(e[1])==NaN)throw new Error("coords are not valid decimals");return Zt(this.decimalLatitude,Number(e[0]))&&Zt(this.decimalLongitude,e[1])}else throw new Error("coords being tested must be separated by a comma")}const $i=Object.freeze({DMS:"DMS",DM:"DM",DD:"DD"});lt.to=$i;const en=[{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"}],tn={decimalLatitude:40.123,decimalLongitude:-74.123},nn=[{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}],rn=[{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},{verbatimCoordinates:"1.23456, 18.33453",verbatimLatitude:"1.23456",verbatimLongitude:"18.33453",decimalLatitude:1.23456,decimalLongitude:18.33453}];function on(){const i=[];return en.forEach(e=>{e.decimalLatitude?i.push(e):i.push({...e,...tn})}),[...i,...nn,...rn]}const sn=on();lt.formats=sn.map(i=>i.verbatimCoordinates);const an=lt;function qt(i,e,t){const n=i.slice();return n[97]=e[t],n[99]=t,n}function Qt(i){let e,t;return e=new Hi({}),{c(){ve(e.$$.fragment)},m(n,r){me(e,n,r),t=!0},i(n){t||(B(e.$$.fragment,n),t=!0)},o(n){Q(e.$$.fragment,n),t=!1},d(n){ge(e,n)}}}function Kt(i){let e,t,n,r,c;return t=new qi({}),{c(){e=O("button"),ve(t.$$.fragment),a(e,"type","button"),a(e,"title",i[10]),a(e,"class","svelte-bz0zu3"),ke(e,"active",i[0])},m(l,o){A(l,e,o),me(t,e,null),n=!0,r||(c=Z(e,"click",i[79]),r=!0)},p(l,o){(!n||o[0]&1024)&&a(e,"title",l[10]),(!n||o[0]&1)&&ke(e,"active",l[0])},i(l){n||(B(t.$$.fragment,l),n=!0)},o(l){Q(t.$$.fragment,l),n=!1},d(l){l&&I(e),ge(t),r=!1,c()}}}function ln(i){let e,t=[],n=new Map,r,c,l,o=Rt(i[13]);const d=u=>u[97].id+(u[97].address?","+u[97].address:"");for(let u=0;u<o.length;u+=1){let f=qt(i,o,u),h=d(f);n.set(h,t[u]=Vt(h,f))}return{c(){e=O("ul");for(let u=0;u<t.length;u+=1)t[u].c();a(e,"class","options svelte-bz0zu3"),a(e,"role","listbox")},m(u,f){A(u,e,f);for(let h=0;h<t.length;h+=1)t[h]&&t[h].m(e,null);r=!0,c||(l=[Z(e,"mouseleave",i[27]),Z(e,"blur",i[83]),Z(e,"keydown",i[23])],c=!0)},p(u,f){f[0]&102823936&&(o=Rt(u[13]),qe(),t=Ti(t,f,d,1,u,o,n,e,pi,Vt,null,qt),Qe())},i(u){if(!r){for(let f=0;f<o.length;f+=1)B(t[f]);r=!0}},o(u){for(let f=0;f<t.length;f+=1)Q(t[f]);r=!1},d(u){u&&I(e);for(let f=0;f<t.length;f+=1)t[f].d();c=!1,de(l)}}}function un(i){let e,t,n,r,c,l;return t=new Ut({}),{c(){e=O("div"),ve(t.$$.fragment),n=$(),r=O("div"),c=be(i[8]),a(r,"class","svelte-bz0zu3"),a(e,"class","no-results svelte-bz0zu3")},m(o,d){A(o,e,d),me(t,e,null),N(e,n),N(e,r),N(r,c),l=!0},p(o,d){(!l||d[0]&256)&&ze(c,o[8])},i(o){l||(B(t.$$.fragment,o),l=!0)},o(o){Q(t.$$.fragment,o),l=!1},d(o){o&&I(e),ge(t)}}}function cn(i){let e="",t;return{c(){t=be(e)},m(n,r){A(n,t,r)},p:D,i:D,o:D,d(n){n&&I(t)}}}function dn(i){let e,t,n,r,c,l,o,d,u,f,h;return t=new Ut({}),d=new zt({}),{c(){e=O("div"),ve(t.$$.fragment),n=$(),r=O("div"),c=be(i[7]),l=$(),o=O("button"),ve(d.$$.fragment),a(r,"class","svelte-bz0zu3"),a(o,"class","svelte-bz0zu3"),a(e,"class","error svelte-bz0zu3")},m(v,y){A(v,e,y),me(t,e,null),N(e,n),N(e,r),N(r,c),N(e,l),N(e,o),me(d,o,null),u=!0,f||(h=Z(o,"click",i[80]),f=!0)},p(v,y){(!u||y[0]&128)&&ze(c,v[7])},i(v){u||(B(t.$$.fragment,v),B(d.$$.fragment,v),u=!0)},o(v){Q(t.$$.fragment,v),Q(d.$$.fragment,v),u=!1},d(v){v&&I(e),ge(t),ge(d),f=!1,h()}}}function Vt(i,e){var o;let t,n,r;function c(){return e[81](e[99])}function l(){return e[82](e[97])}return n=new Fi({props:{feature:e[97],showPlaceType:e[11],style:e[15]===e[99]?"selected":((o=e[14])==null?void 0:o.id)===e[97].id?"picked":"default",missingIconsCache:e[21],iconsBaseUrl:e[12]}}),n.$on("mouseenter",c),n.$on("select",l),{key:i,first:null,c(){t=gi(),ve(n.$$.fragment),this.first=t},m(d,u){A(d,t,u),me(n,d,u),r=!0},p(d,u){var h;e=d;const f={};u[0]&8192&&(f.feature=e[97]),u[0]&2048&&(f.showPlaceType=e[11]),u[0]&57344&&(f.style=e[15]===e[99]?"selected":((h=e[14])==null?void 0:h.id)===e[97].id?"picked":"default"),u[0]&4096&&(f.iconsBaseUrl=e[12]),n.$set(f)},i(d){r||(B(n.$$.fragment,d),r=!0)},o(d){Q(n.$$.fragment,d),r=!1},d(d){d&&I(t),ge(n,d)}}}function fn(i){let e,t,n,r,c,l,o,d,u,f,h,v,y,E,R,p,S,W,C,q,J,K=!1;c=new Ki({}),h=new zt({});let w=i[20]&&Qt(),g=i[6]==="button"&&Kt(i);const M=i[70].default,k=ci(M,i,i[69],null),L=[dn,cn,un,ln],m=[];function pe(_,j){var ae,ne;return _[19]?0:!_[16]&&!_[4]?1:((ae=_[13])==null?void 0:ae.length)===0?2:(ne=_[13])!=null&&ne.length&&(_[16]||_[4])?3:-1}return~(p=pe(i))&&(S=m[p]=L[p](i)),{c(){e=$(),t=O("form"),n=O("div"),r=O("button"),ve(c.$$.fragment),l=$(),o=O("input"),d=$(),u=O("div"),f=O("button"),ve(h.$$.fragment),v=$(),w&&w.c(),y=$(),g&&g.c(),E=$(),k&&k.c(),R=$(),S&&S.c(),a(r,"class","search-button svelte-bz0zu3"),a(r,"type","button"),a(o,"placeholder",i[9]),a(o,"aria-label",i[9]),a(o,"class","svelte-bz0zu3"),a(f,"type","button"),a(f,"title",i[3]),a(f,"class","svelte-bz0zu3"),a(u,"class","clear-button-container svelte-bz0zu3"),ke(u,"displayable",i[1]!==""),a(n,"class","input-group svelte-bz0zu3"),a(t,"class",W=He(i[2])+" svelte-bz0zu3"),ke(t,"can-collapse",i[5]&&i[1]==="")},m(_,j){A(_,e,j),A(_,t,j),N(t,n),N(n,r),me(c,r,null),N(n,l),N(n,o),i[72](o),Nt(o,i[1]),N(n,d),N(n,u),N(u,f),me(h,f,null),N(u,v),w&&w.m(u,null),N(n,y),g&&g.m(n,null),N(n,E),k&&k.m(n,null),N(t,R),~p&&m[p].m(t,null),C=!0,q||(J=[Z(r,"click",i[71]),Z(o,"input",i[73]),Z(o,"focus",i[74]),Z(o,"blur",i[75]),Z(o,"click",i[76]),Z(o,"keydown",i[23]),Z(o,"input",i[24]),Z(o,"change",i[77]),Z(f,"click",i[78]),Z(t,"submit",hi(i[22]))],q=!0)},p(_,j){(!C||j[0]&512)&&a(o,"placeholder",_[9]),(!C||j[0]&512)&&a(o,"aria-label",_[9]),j[0]&2&&o.value!==_[1]&&Nt(o,_[1]),(!C||j[0]&8)&&a(f,"title",_[3]),_[20]?w?j[0]&1048576&&B(w,1):(w=Qt(),w.c(),B(w,1),w.m(u,null)):w&&(qe(),Q(w,1,1,()=>{w=null}),Qe()),(!C||j[0]&2)&&ke(u,"displayable",_[1]!==""),_[6]==="button"?g?(g.p(_,j),j[0]&64&&B(g,1)):(g=Kt(_),g.c(),B(g,1),g.m(n,E)):g&&(qe(),Q(g,1,1,()=>{g=null}),Qe()),k&&k.p&&(!C||j[2]&128)&&fi(k,M,_,_[69],C?di(M,_[69],j,null):mi(_[69]),null);let ae=p;p=pe(_),p===ae?~p&&m[p].p(_,j):(S&&(qe(),Q(m[ae],1,1,()=>{m[ae]=null}),Qe()),~p?(S=m[p],S?S.p(_,j):(S=m[p]=L[p](_),S.c()),B(S,1),S.m(t,null)):S=null),(!C||j[0]&4&&W!==(W=He(_[2])+" svelte-bz0zu3"))&&a(t,"class",W),(!C||j[0]&38)&&ke(t,"can-collapse",_[5]&&_[1]==="")},i(_){C||(B(K),B(c.$$.fragment,_),B(h.$$.fragment,_),B(w),B(g),B(k,_),B(S),C=!0)},o(_){Q(K),Q(c.$$.fragment,_),Q(h.$$.fragment,_),Q(w),Q(g),Q(k,_),Q(S),C=!1},d(_){_&&(I(e),I(t)),ge(c),i[72](null),ge(h),w&&w.d(),g&&g.d(),k&&k.d(_),~p&&m[p].d(),q=!1,de(J)}}}function mn(i,e,t){let n,r,c,{$$slots:l={},$$scope:o}=e;const d={continental_marine:4,country:4,major_landform:8,region:5,subregion:6,county:7,joint_municipality:8,joint_submunicipality:9,municipality:10,municipal_district:11,locality:12,neighbourhood:13,place:14,postal_code:14,road:16,poi:17,address:18,"poi.peak":15,"poi.shop":18,"poi.cafe":18,"poi.restaurant":18,"poi.aerodrome":13};let{class:u=void 0}=e,{apiKey:f}=e,{bbox:h=void 0}=e,{clearButtonTitle:v="clear"}=e,{clearOnBlur:y=!1}=e,{clearListOnPick:E=!1}=e,{keepListOpen:R=!1}=e,{collapsed:p=!1}=e,{country:S=void 0}=e,{debounceSearch:W=200}=e,{enableReverse:C="never"}=e,{errorMessage:q="Something went wrong…"}=e,{filter:J=()=>!0}=e,{flyTo:K=!0}=e,{fuzzyMatch:w=!0}=e,{language:g=void 0}=e,{limit:M=void 0}=e;const k=41415112612;let{reverseGeocodingLimit:L=k}=e,{mapController:m=void 0}=e,{minLength:pe=2}=e,{noResultsMessage:_="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!"}=e,{placeholder:j="Search"}=e,{proximity:ae=[{type:"server-geolocation"}]}=e,{reverseActive:ne=C==="always"}=e,{reverseButtonTitle:Jt="toggle reverse geocoding"}=e,{searchValue:V=""}=e,{pickedResultStyle:Ve="full-geometry"}=e,{showPlaceType:xt="if-needed"}=e,{showResultsWhileTyping:Ye=!0}=e,{selectFirst:We=!0}=e,{flyToSelected:Xe=!1}=e,{markerOnSelected:Je=!0}=e,{types:ut=void 0}=e;const $t=[];let{reverseGeocodingTypes:xe=$t}=e,{exhaustiveReverseGeocoding:ct=!1}=e,{excludeTypes:dt=!1}=e;const ei=void 0;let{reverseGeocodingExcludeTypes:$e=ei}=e,{zoom:et=d}=e,{apiUrl:ft="https://api.maptiler.com/geocoding"}=e,{fetchParameters:mt={}}=e,{iconsBaseUrl:ti="https://cdn.maptiler.com/maptiler-geocoding-control/v2.1.3/icons/"}=e,{adjustUrlQuery:gt=()=>{}}=e,{adjustUrl:ht=()=>{}}=e;function vn(s){se.focus(s)}function Ln(){se.blur()}function ii(s,P=!0,F=!1){t(1,V=s),P?(t(15,z=-1),ri()):(oi(void 0,!F,F),setTimeout(()=>{se.focus(),se.select()}))}function _n(){t(13,T=void 0),t(14,b=void 0),t(15,z=-1)}function yn(){t(64,H=[]),t(14,b=void 0)}let T,H,b,ni="",se,z=-1,le,tt=[],Te,Oe,Re,bt,he=!1;const wn=new Set,Le=Ct();Li(()=>{m&&(m.setEventHandler(void 0),m.indicateReverse(!1),m.setSelectedMarker(-1),m.setFeatures(void 0,void 0,!1))});function ri(s){if(t(17,he=!1),Oe&&(clearTimeout(Oe),Oe=void 0),z>-1&&T)t(14,b=T[z]),t(1,V=b.place_type[0]==="reverse"?b.place_name:b.place_name.replace(/,.*/,"")),t(19,le=void 0),t(64,H=void 0),t(15,z=-1);else if(V){const P=s||!vt(V);Lt(V,{exact:!0}).then(()=>{t(64,H=T),t(14,b=void 0),P&&En()}).catch(F=>t(19,le=F))}}function vt(s){try{return an(s,6)}catch{return!1}}async function Lt(s,{byId:P=!1,exact:F=!1}={}){var te,ue,_e;t(19,le=void 0),Te==null||Te.abort();const ee=new AbortController;t(20,Te=ee);try{const U=vt(s),Be=new URL(ft+"/"+encodeURIComponent(U?U.decimalLongitude+","+U.decimalLatitude:s)+".json"),re=Be.searchParams;g!==void 0&&re.set("language",Array.isArray(g)?g.join(","):g??"");const[wt]=(m==null?void 0:m.getCenterAndZoom())??[];let ce=(te=!U||xe===$t?ut:xe)==null?void 0:te.map(X=>typeof X=="string"?X:wt===void 0||(X[0]??0)<=wt&&wt<(X[1]??1/0)?X[2]:void 0).filter(X=>X!==void 0);ce&&(ce=[...new Set(ce)],re.set("types",ce.join(",")));const ai=!U||$e===ei?dt:$e;if(ai&&re.set("excludeTypes",String(ai)),h&&re.set("bbox",h.map(X=>X.toFixed(6)).join(",")),S&&re.set("country",Array.isArray(S)?S.join(","):S),!P&&!U){const X=await Yi(m,ae,ee);X&&re.set("proximity",X),(F||!Ye)&&re.set("autocomplete","false"),re.set("fuzzyMatch",String(w))}const je=L===k?M:L;je!==void 0&&je>1&&(ce==null?void 0:ce.length)!==1&&console.warn("For reverse geocoding when limit > 1 then types must contain single value."),U?(je===1||je!==void 0&&(ct||(ce==null?void 0:ce.length)===1))&&re.set("limit",String(je)):M!==void 0&&re.set("limit",String(M)),re.set("key",f),gt(re),ht(Be);const Bn=Be.searchParams.get("types")===""&&Be.searchParams.get("excludeTypes")!=="true",it=Be.toString();if(it===ni){P?(E&&t(13,T=void 0),t(14,b=tt[0])):(t(13,T=tt),((ue=T[z])==null?void 0:ue.id)!==(r==null?void 0:r.id)&&t(15,z=-1));return}ni=it;let Fe;if(Bn)Fe={type:"FeatureCollection",features:[]};else{const X=await fetch(it,{signal:ee.signal,...mt});if(!X.ok)throw new Error(await X.text());Fe=await X.json()}Le("response",{url:it,featureCollection:Fe}),P?(E&&t(13,T=void 0),t(14,b=Fe.features[0]),tt=[b]):(t(13,T=Fe.features.filter(J)),U&&T.unshift({type:"Feature",properties:{},id:"reverse_"+U.decimalLongitude+"_"+U.decimalLatitude,text:U.decimalLatitude+", "+U.decimalLongitude,place_name:U.decimalLatitude+", "+U.decimalLongitude,place_type:["reverse"],center:[U.decimalLongitude,U.decimalLatitude],bbox:[U.decimalLongitude,U.decimalLatitude,U.decimalLongitude,U.decimalLatitude],geometry:{type:"Point",coordinates:[U.decimalLongitude,U.decimalLatitude]}}),tt=T,((_e=T[z])==null?void 0:_e.id)!==(r==null?void 0:r.id)&&t(15,z=-1),U&&se.focus())}catch(U){if(U&&typeof U=="object"&&"name"in U&&U.name==="AbortError")return;throw U}finally{ee===Te&&t(20,Te=void 0)}}function En(){var ee;if(!(H!=null&&H.length)||!K)return;const s=[180,90,-180,-90],P=!H.some(te=>!te.matching_text);let F;for(const te of H){const ue=Pe(te);if(F=F===void 0?ue:ue===void 0?F:Math.max(F,ue),P||!te.matching_text)for(const _e of[0,1,2,3])s[_e]=Math[_e<2?"min":"max"](s[_e],((ee=te.bbox)==null?void 0:ee[_e])??te.center[_e%2])}m&&H.length>0&&(b&&s[0]===s[2]&&s[1]===s[3]?m.flyTo(b.center,Pe(b)):m.fitBounds(At(s),50,F))}function _t(){!b||!m||(!b.bbox||b.bbox[0]===b.bbox[2]&&b.bbox[1]===b.bbox[3]?m.flyTo(b.center,Pe(b)):m.fitBounds(At(b.bbox),50,Pe(b)))}function Pe(s){var F;if(!s.bbox||s.bbox[0]!==s.bbox[2]&&s.bbox[1]!==s.bbox[3])return;const P=s.id.replace(/\..*/,"");return(Array.isArray((F=s.properties)==null?void 0:F.categories)?s.properties.categories.reduce((ee,te)=>{const ue=et[P+"."+te];return ee===void 0?ue:ue===void 0?ee:Math.max(ee,ue)},void 0):void 0)??et[P]}function Sn(s){t(0,ne=C==="always"),t(13,T=void 0),t(14,b=void 0),t(15,z=-1),ii(s[1].toFixed(6)+", "+Vi(s[0],[-180,180],!0).toFixed(6),!1,!0)}function pn(s){if(!T)return;let P=s.key==="ArrowDown"?1:s.key==="ArrowUp"?-1:0;P&&(se.focus(),t(17,he=!0),s.preventDefault(),b&&z===-1&&t(15,z=T.findIndex(F=>F.id===(b==null?void 0:b.id))),z===(b||We?0:-1)&&P===-1&&t(15,z=T.length),t(15,z+=P),z>=T.length&&t(15,z=-1),z<0&&(b||We)&&t(15,z=0))}function oi(s,P=!0,F=!1){if(t(19,le=void 0),t(14,b=void 0),t(17,he=!0),Ye||F){if(Oe&&clearTimeout(Oe),V.length<pe)return;const ee=V;Oe=window.setTimeout(()=>{Lt(ee).catch(te=>t(19,le=te))},P?W:0)}else t(13,T=void 0),t(19,le=void 0)}function yt(s){b&&(b==null?void 0:b.id)===(s==null?void 0:s.id)?_t():(t(14,b=s),t(1,V=s.place_name))}function si(s){t(15,z=s)}function Tn(){(!We||b)&&t(15,z=-1),Xe&&_t()}const kn=()=>se.focus();function Nn(s){nt[s?"unshift":"push"](()=>{se=s,t(18,se)})}function Mn(){V=this.value,t(1,V),t(17,he),t(31,y),t(16,Re)}const Cn=()=>t(17,he=!0),Wn=()=>t(17,he=!1),On=()=>t(17,he=!0),Rn=()=>t(14,b=void 0),zn=()=>{t(1,V=""),t(14,b=void 0),se.focus()},Un=()=>t(0,ne=!ne),Dn=()=>t(19,le=void 0),In=s=>si(s),An=s=>yt(s),Pn=()=>{};return i.$$set=s=>{"class"in s&&t(2,u=s.class),"apiKey"in s&&t(29,f=s.apiKey),"bbox"in s&&t(30,h=s.bbox),"clearButtonTitle"in s&&t(3,v=s.clearButtonTitle),"clearOnBlur"in s&&t(31,y=s.clearOnBlur),"clearListOnPick"in s&&t(32,E=s.clearListOnPick),"keepListOpen"in s&&t(4,R=s.keepListOpen),"collapsed"in s&&t(5,p=s.collapsed),"country"in s&&t(33,S=s.country),"debounceSearch"in s&&t(34,W=s.debounceSearch),"enableReverse"in s&&t(6,C=s.enableReverse),"errorMessage"in s&&t(7,q=s.errorMessage),"filter"in s&&t(35,J=s.filter),"flyTo"in s&&t(36,K=s.flyTo),"fuzzyMatch"in s&&t(37,w=s.fuzzyMatch),"language"in s&&t(38,g=s.language),"limit"in s&&t(39,M=s.limit),"reverseGeocodingLimit"in s&&t(40,L=s.reverseGeocodingLimit),"mapController"in s&&t(41,m=s.mapController),"minLength"in s&&t(42,pe=s.minLength),"noResultsMessage"in s&&t(8,_=s.noResultsMessage),"placeholder"in s&&t(9,j=s.placeholder),"proximity"in s&&t(43,ae=s.proximity),"reverseActive"in s&&t(0,ne=s.reverseActive),"reverseButtonTitle"in s&&t(10,Jt=s.reverseButtonTitle),"searchValue"in s&&t(1,V=s.searchValue),"pickedResultStyle"in s&&t(44,Ve=s.pickedResultStyle),"showPlaceType"in s&&t(11,xt=s.showPlaceType),"showResultsWhileTyping"in s&&t(45,Ye=s.showResultsWhileTyping),"selectFirst"in s&&t(46,We=s.selectFirst),"flyToSelected"in s&&t(47,Xe=s.flyToSelected),"markerOnSelected"in s&&t(48,Je=s.markerOnSelected),"types"in s&&t(49,ut=s.types),"reverseGeocodingTypes"in s&&t(50,xe=s.reverseGeocodingTypes),"exhaustiveReverseGeocoding"in s&&t(51,ct=s.exhaustiveReverseGeocoding),"excludeTypes"in s&&t(52,dt=s.excludeTypes),"reverseGeocodingExcludeTypes"in s&&t(53,$e=s.reverseGeocodingExcludeTypes),"zoom"in s&&t(54,et=s.zoom),"apiUrl"in s&&t(55,ft=s.apiUrl),"fetchParameters"in s&&t(56,mt=s.fetchParameters),"iconsBaseUrl"in s&&t(12,ti=s.iconsBaseUrl),"adjustUrlQuery"in s&&t(57,gt=s.adjustUrlQuery),"adjustUrl"in s&&t(58,ht=s.adjustUrl),"$$scope"in s&&t(69,o=s.$$scope)},i.$$.update=()=>{if(i.$$.dirty[0]&64&&t(0,ne=C==="always"),i.$$.dirty[0]&16384|i.$$.dirty[1]&8192&&Ve!=="marker-only"&&b&&!b.address&&b.geometry.type==="Point"&&b.place_type[0]!=="reverse"&&Lt(b.id,{byId:!0}).catch(s=>t(19,le=s)),i.$$.dirty[0]&16384|i.$$.dirty[1]&1058|i.$$.dirty[2]&8&&(m&&b&&b.id!==bt&&K&&(_t(),E&&t(13,T=void 0),t(64,H=void 0),t(15,z=-1)),t(65,bt=b==null?void 0:b.id)),i.$$.dirty[0]&196608|i.$$.dirty[1]&1&&setTimeout(()=>{t(16,Re=he),y&&!Re&&t(1,V="")}),i.$$.dirty[0]&8194|i.$$.dirty[1]&2048&&V.length<pe&&(t(13,T=void 0),t(19,le=void 0),t(64,H=T)),i.$$.dirty[0]&57344|i.$$.dirty[1]&32768&&We&&T!=null&&T.length&&z==-1&&!b&&t(15,z=0),i.$$.dirty[0]&8192|i.$$.dirty[2]&4&&H!==T&&t(64,H=void 0),i.$$.dirty[0]&73729|i.$$.dirty[1]&1024|i.$$.dirty[2]&4&&m&&m.setEventHandler(s=>{switch(s.type){case"mapClick":ne&&Sn(s.coordinates);break;case"markerClick":{const P=T==null?void 0:T.find(F=>F.id===s.id);P&&yt(P)}break;case"markerMouseEnter":H&&t(15,z=Re?(T==null?void 0:T.findIndex(P=>P.id===s.id))??-1:-1);break;case"markerMouseLeave":H&&t(15,z=-1);break}}),i.$$.dirty[0]&40960&&t(66,r=T==null?void 0:T[z]),i.$$.dirty[1]&66592|i.$$.dirty[2]&16&&m&&r&&K&&Xe&&m.flyTo(r.center,Pe(r)),i.$$.dirty[1]&8192&&t(68,n=Ve==="full-geometry-including-polygon-center-marker"),i.$$.dirty[1]&132096|i.$$.dirty[2]&64&&(Je||m==null||m.setFeatures(void 0,void 0,n)),i.$$.dirty[0]&16384|i.$$.dirty[1]&132096|i.$$.dirty[2]&84&&m&&Je&&!H&&(m.setFeatures(r?[r]:void 0,b,n),m.setSelectedMarker(r?0:-1)),i.$$.dirty[0]&16384|i.$$.dirty[1]&1024|i.$$.dirty[2]&68&&m&&m.setFeatures(H,b,n),i.$$.dirty[0]&32768|i.$$.dirty[1]&1024|i.$$.dirty[2]&4&&H&&m&&m.setSelectedMarker(z),i.$$.dirty[0]&2|i.$$.dirty[1]&1024&&m){const s=vt(V);m.setReverseMarker(s?[s.decimalLongitude,s.decimalLatitude]:void 0)}i.$$.dirty[2]&16&&Le("select",{feature:r}),i.$$.dirty[0]&16384&&Le("pick",{feature:b}),i.$$.dirty[0]&73744&&t(67,c=!!(T!=null&&T.length)&&(Re||R)),i.$$.dirty[2]&32&&Le("optionsvisibilitychange",{optionsVisible:c}),i.$$.dirty[0]&8192&&Le("featureslisted",{features:T}),i.$$.dirty[2]&4&&Le("featuresmarked",{features:H}),i.$$.dirty[0]&1&&Le("reversetoggle",{reverse:ne}),i.$$.dirty[0]&2&&Le("querychange",{query:V}),i.$$.dirty[0]&1|i.$$.dirty[1]&1024&&m&&m.indicateReverse(ne)},[ne,V,u,v,R,p,C,q,_,j,Jt,xt,ti,T,b,z,Re,he,se,le,Te,wn,ri,pn,oi,yt,si,Tn,d,f,h,y,E,S,W,J,K,w,g,M,L,m,pe,ae,Ve,Ye,We,Xe,Je,ut,xe,ct,dt,$e,et,ft,mt,gt,ht,vn,Ln,ii,_n,yn,H,bt,r,c,n,o,l,kn,Nn,Mn,Cn,Wn,On,Rn,zn,Un,Dn,In,An,Pn]}class gn extends Se{constructor(e){super(),Ee(this,e,mn,fn,ye,{ZOOM_DEFAULTS:28,class:2,apiKey:29,bbox:30,clearButtonTitle:3,clearOnBlur:31,clearListOnPick:32,keepListOpen:4,collapsed:5,country:33,debounceSearch:34,enableReverse:6,errorMessage:7,filter:35,flyTo:36,fuzzyMatch:37,language:38,limit:39,reverseGeocodingLimit:40,mapController:41,minLength:42,noResultsMessage:8,placeholder:9,proximity:43,reverseActive:0,reverseButtonTitle:10,searchValue:1,pickedResultStyle:44,showPlaceType:11,showResultsWhileTyping:45,selectFirst:46,flyToSelected:47,markerOnSelected:48,types:49,reverseGeocodingTypes:50,exhaustiveReverseGeocoding:51,excludeTypes:52,reverseGeocodingExcludeTypes:53,zoom:54,apiUrl:55,fetchParameters:56,iconsBaseUrl:12,adjustUrlQuery:57,adjustUrl:58,focus:59,blur:60,setQuery:61,clearList:62,clearMap:63},null,[-1,-1,-1,-1])}get ZOOM_DEFAULTS(){return this.$$.ctx[28]}get focus(){return this.$$.ctx[59]}get blur(){return this.$$.ctx[60]}get setQuery(){return this.$$.ctx[61]}get clearList(){return this.$$.ctx[62]}get clearMap(){return this.$$.ctx[63]}}const Yt=["featuresListed","featuresMarked","optionsVisibilityChange","pick","queryChange","response","reverseToggle","select"],hn=["adjustUrlQuery","adjustUrl","apiKey","apiUrl","bbox","class","clearButtonTitle","clearListOnPick","clearOnBlur","collapsed","country","debounceSearch","enableReverse","errorMessage","excludeTypes","reverseGeocodingExcludeTypes","exhaustiveReverseGeocoding","fetchParameters","filter","flyToSelected","fuzzyMatch","iconsBaseUrl","keepListOpen","language","limit","reverseGeocodingLimit","mapController","markerOnSelected","minLength","noResultsMessage","pickedResultStyle","placeholder","proximity","reverseActive","reverseButtonTitle","selectFirst","showPlaceType","showResultsWhileTyping","types","reverseGeocodingTypes","zoom"];function Xt(i){return"on"+i[0].toUpperCase()+i.slice(1)}const bn=G.forwardRef(function(e,t){const n=G.useRef(void 0),r=G.useRef(void 0),c={...e};for(const l of Yt)delete c[Xt(l)];G.useEffect(()=>{if(!n.current)throw new Error;const l=new gn({target:n.current,props:c});return r.current=l,()=>l.$destroy()},[]);for(const l of hn)G.useEffect(()=>{r.current&&e[l]!==void 0&&r.current.$set({[l]:e[l]})},[e[l]]);for(const l of Yt){const o=e[Xt(l)];G.useEffect(()=>{var d;return o&&((d=r.current)==null?void 0:d.$on(l.toLowerCase(),u=>{o(u.detail)}))},[o])}return G.useImperativeHandle(t,()=>({setQuery:(l,o=!0)=>{var d;return(d=r.current)==null?void 0:d.setQuery(l,o)},clearMap:()=>{var l;return(l=r.current)==null?void 0:l.clearMap()},clearList:()=>{var l;return(l=r.current)==null?void 0:l.clearList()},focus:l=>{var o;return(o=r.current)==null?void 0:o.focus(l)},blur:()=>{var l;return(l=r.current)==null?void 0:l.blur()},setReverseMode:l=>{var o;return(o=r.current)==null?void 0:o.$set({reverseActive:l})}})),G.createElement("div",{ref:n})});x.GeocodingControl=bn,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
//# sourceMappingURL=react.umd.js.map

@@ -35,3 +35,2 @@ import { SvelteComponent } from "svelte";

showResultsWhileTyping?: boolean;
autocompleteTimeout?: number | undefined;
selectFirst?: boolean;

@@ -38,0 +37,0 @@ flyToSelected?: boolean;

@@ -1,1 +0,1 @@

{"name":"@maptiler/geocoding-control","version":"2.1.3-rc2"}
{"name":"@maptiler/geocoding-control","version":"2.1.3"}

@@ -90,3 +90,2 @@ import type { Feature as FeatureType, Geometry } from "geojson";

apiUrl?: string;
autocompleteTimeout?: number;
/**

@@ -93,0 +92,0 @@ * Bounding box in the format `[minX, minY, maxX, maxY]` to limit search results.

@@ -90,3 +90,2 @@ import type { Feature as FeatureType, Geometry } from "geojson";

apiUrl?: string;
autocompleteTimeout?: number;
/**

@@ -93,0 +92,0 @@ * Bounding box in the format `[minX, minY, maxX, maxY]` to limit search results.

@@ -1,14 +0,14 @@

(function(O,v){typeof exports=="object"&&typeof module<"u"?v(exports):typeof define=="function"&&define.amd?define(["exports"],v):(O=typeof globalThis<"u"?globalThis:O||self,v(O.maptilerGeocoder={}))})(this,function(O){"use strict";var xn=Object.defineProperty;var $n=Object.getPrototypeOf;var er=Reflect.get;var bi=O=>{throw TypeError(O)};var tr=(O,v,j)=>v in O?xn(O,v,{enumerable:!0,configurable:!0,writable:!0,value:j}):O[v]=j;var Wt=(O,v,j)=>tr(O,typeof v!="symbol"?v+"":v,j),Ot=(O,v,j)=>v.has(O)||bi("Cannot "+j);var ue=(O,v,j)=>(Ot(O,v,"read from private field"),j?j.call(O):v.get(O)),zt=(O,v,j)=>v.has(O)?bi("Cannot add the same private member more than once"):v instanceof WeakSet?v.add(O):v.set(O,j),vi=(O,v,j,Ue)=>(Ot(O,v,"write to private field"),Ue?Ue.call(O,j):v.set(O,j),j),Li=(O,v,j)=>(Ot(O,v,"access private method"),j);var _i=(O,v,j)=>er($n(O),j,v);var ee,$e,yi;function v(){}function j(i,e){for(const t in e)i[t]=e[t];return i}function Ue(i){return i()}function Rt(){return Object.create(null)}function ge(i){i.forEach(Ue)}function Dt(i){return typeof i=="function"}function Se(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let Ke;function J(i,e){return i===e?!0:(Ke||(Ke=document.createElement("a")),Ke.href=e,i===Ke.href)}function wi(i){return Object.keys(i).length===0}function Ei(i,e,t,n){if(i){const r=It(i,e,t,n);return i[0](r)}}function It(i,e,t,n){return i[1]&&n?j(t.ctx.slice(),i[1](n(e))):t.ctx}function pi(i,e,t,n){return i[2],e.dirty}function Si(i,e,t,n,r,l){if(r){const c=It(e,t,n,l);i.p(c,r)}}function Ti(i){if(i.ctx.length>32){const e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function Ve(i){return i??""}function M(i,e){i.appendChild(e)}function P(i,e,t){i.insertBefore(e,t||null)}function A(i){i.parentNode&&i.parentNode.removeChild(i)}function D(i){return document.createElement(i)}function he(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function _e(i){return document.createTextNode(i)}function te(){return _e(" ")}function ki(){return _e("")}function q(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Ni(i){return function(e){return e.preventDefault(),i.call(this,e)}}function a(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function Mi(i){return Array.from(i.childNodes)}function Ae(i,e){e=""+e,i.data!==e&&(i.data=e)}function Ut(i,e){i.value=e??""}function Oe(i,e,t){i.classList.toggle(e,!!t)}function Ci(i,e,{bubbles:t=!1,cancelable:n=!1}={}){return new CustomEvent(i,{detail:e,bubbles:t,cancelable:n})}let Pe;function Be(i){Pe=i}function At(){if(!Pe)throw new Error("Function called outside component initialization");return Pe}function Wi(i){At().$$.on_destroy.push(i)}function Pt(){const i=At();return(e,t,{cancelable:n=!1}={})=>{const r=i.$$.callbacks[e];if(r){const l=Ci(e,t,{cancelable:n});return r.slice().forEach(c=>{c.call(i,l)}),!l.defaultPrevented}return!0}}function Oi(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const ze=[],ut=[];let Re=[];const Bt=[],zi=Promise.resolve();let ct=!1;function Ri(){ct||(ct=!0,zi.then(jt))}function dt(i){Re.push(i)}const ft=new Set;let De=0;function jt(){if(De!==0)return;const i=Pe;do{try{for(;De<ze.length;){const e=ze[De];De++,Be(e),Di(e.$$)}}catch(e){throw ze.length=0,De=0,e}for(Be(null),ze.length=0,De=0;ut.length;)ut.pop()();for(let e=0;e<Re.length;e+=1){const t=Re[e];ft.has(t)||(ft.add(t),t())}Re.length=0}while(ze.length);for(;Bt.length;)Bt.pop()();ct=!1,ft.clear(),Be(i)}function Di(i){if(i.fragment!==null){i.update(),ge(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(dt)}}function Ii(i){const e=[],t=[];Re.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Re=e}const Ye=new Set;let Te;function Xe(){Te={r:0,c:[],p:Te}}function Je(){Te.r||ge(Te.c),Te=Te.p}function F(i,e){i&&i.i&&(Ye.delete(i),i.i(e))}function V(i,e,t,n){if(i&&i.o){if(Ye.has(i))return;Ye.add(i),Te.c.push(()=>{Ye.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Ft(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Ui(i,e){V(i,1,1,()=>{e.delete(i.key)})}function Ai(i,e,t,n,r,l,c,o,f,u,d,h){let L=i.length,w=l.length,p=L;const I={};for(;p--;)I[i[p].key]=p;const k=[],S=new Map,z=new Map,W=[];for(p=w;p--;){const E=h(r,l,p),g=t(E);let C=c.get(g);C?W.push(()=>C.p(E,e)):(C=u(g,E),C.c()),S.set(g,k[p]=C),g in I&&z.set(g,Math.abs(p-I[g]))}const Q=new Set,$=new Set;function Y(E){F(E,1),E.m(o,d),c.set(E.key,E),d=E.first,w--}for(;L&&w;){const E=k[w-1],g=i[L-1],C=E.key,N=g.key;E===g?(d=E.first,L--,w--):S.has(N)?!c.has(C)||Q.has(C)?Y(E):$.has(N)?L--:z.get(C)>z.get(N)?($.add(C),Y(E)):(Q.add(N),L--):(f(g,c),L--)}for(;L--;){const E=i[L];S.has(E.key)||f(E,c)}for(;w;)Y(k[w-1]);return ge(W),k}function ye(i){i&&i.c()}function be(i,e,t){const{fragment:n,after_update:r}=i.$$;n&&n.m(e,t),dt(()=>{const l=i.$$.on_mount.map(Ue).filter(Dt);i.$$.on_destroy?i.$$.on_destroy.push(...l):ge(l),i.$$.on_mount=[]}),r.forEach(dt)}function ve(i,e){const t=i.$$;t.fragment!==null&&(Ii(t.after_update),ge(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function Pi(i,e){i.$$.dirty[0]===-1&&(ze.push(i),Ri(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function ke(i,e,t,n,r,l,c=null,o=[-1]){const f=Pe;Be(i);const u=i.$$={fragment:null,ctx:[],props:l,update:v,not_equal:r,bound:Rt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(f?f.$$.context:[])),callbacks:Rt(),dirty:o,skip_bound:!1,root:e.target||f.$$.root};c&&c(u.root);let d=!1;if(u.ctx=t?t(i,e.props||{},(h,L,...w)=>{const p=w.length?w[0]:L;return u.ctx&&r(u.ctx[h],u.ctx[h]=p)&&(!u.skip_bound&&u.bound[h]&&u.bound[h](p),d&&Pi(i,h)),L}):[],u.update(),d=!0,ge(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){const h=Mi(e.target);u.fragment&&u.fragment.l(h),h.forEach(A)}else u.fragment&&u.fragment.c();e.intro&&F(i.$$.fragment),be(i,e.target,e.anchor),jt()}Be(f)}class Ne{constructor(){Wt(this,"$$");Wt(this,"$$set")}$destroy(){ve(this,1),this.$destroy=v}$on(e,t){if(!Dt(t))return v;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const r=n.indexOf(t);r!==-1&&n.splice(r,1)}}$set(e){this.$$set&&!wi(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Bi="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Bi);function ji(i){let e,t;return{c(){e=he("svg"),t=he("path"),a(t,"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"),a(e,"viewBox","0 0 14 14"),a(e,"width","13"),a(e,"height","13"),a(e,"class","svelte-en2qvf")},m(n,r){P(n,e,r),M(e,t)},p:v,i:v,o:v,d(n){n&&A(e)}}}class Gt extends Ne{constructor(e){super(),ke(this,e,null,ji,Se,{})}}function Fi(i){let e,t;return{c(){e=he("svg"),t=he("path"),a(t,"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"),a(e,"viewBox","0 0 30 30"),a(e,"fill","none"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"class","svelte-d2loi5")},m(n,r){P(n,e,r),M(e,t)},p:v,i:v,o:v,d(n){n&&A(e)}}}class Ht extends Ne{constructor(e){super(),ke(this,e,null,Fi,Se,{})}}function Gi(i){let e,t;return{c(){e=D("img"),J(e.src,t=i[3]+"area.svg")||a(e,"src",t),a(e,"alt",i[7]),a(e,"title",i[7]),a(e,"class","svelte-w9y5n9")},m(n,r){P(n,e,r)},p(n,r){r&8&&!J(e.src,t=n[3]+"area.svg")&&a(e,"src",t),r&128&&a(e,"alt",n[7]),r&128&&a(e,"title",n[7])},d(n){n&&A(e)}}}function Hi(i){let e,t;return{c(){e=D("img"),J(e.src,t=i[3]+"reverse.svg")||a(e,"src",t),a(e,"alt",i[7]),a(e,"title",i[7]),a(e,"class","svelte-w9y5n9")},m(n,r){P(n,e,r)},p(n,r){r&8&&!J(e.src,t=n[3]+"reverse.svg")&&a(e,"src",t),r&128&&a(e,"alt",n[7]),r&128&&a(e,"title",n[7])},d(n){n&&A(e)}}}function Zi(i){let e,t;return{c(){e=D("img"),J(e.src,t=i[3]+"poi.svg")||a(e,"src",t),a(e,"alt",i[7]),a(e,"title",i[7]),a(e,"class","svelte-w9y5n9")},m(n,r){P(n,e,r)},p(n,r){r&8&&!J(e.src,t=n[3]+"poi.svg")&&a(e,"src",t),r&128&&a(e,"alt",n[7]),r&128&&a(e,"title",n[7])},d(n){n&&A(e)}}}function qi(i){let e,t;return{c(){e=D("img"),J(e.src,t=i[3]+"postal_code.svg")||a(e,"src",t),a(e,"alt",i[7]),a(e,"title",i[7]),a(e,"class","svelte-w9y5n9")},m(n,r){P(n,e,r)},p(n,r){r&8&&!J(e.src,t=n[3]+"postal_code.svg")&&a(e,"src",t),r&128&&a(e,"alt",n[7]),r&128&&a(e,"title",n[7])},d(n){n&&A(e)}}}function Qi(i){let e,t;return{c(){e=D("img"),J(e.src,t=i[3]+"street.svg")||a(e,"src",t),a(e,"alt",i[7]),a(e,"title",i[7]),a(e,"class","svelte-w9y5n9")},m(n,r){P(n,e,r)},p(n,r){r&8&&!J(e.src,t=n[3]+"street.svg")&&a(e,"src",t),r&128&&a(e,"alt",n[7]),r&128&&a(e,"title",n[7])},d(n){n&&A(e)}}}function Ki(i){let e,t;return{c(){e=D("img"),J(e.src,t=i[3]+"road.svg")||a(e,"src",t),a(e,"alt",i[7]),a(e,"title",i[7]),a(e,"class","svelte-w9y5n9")},m(n,r){P(n,e,r)},p(n,r){r&8&&!J(e.src,t=n[3]+"road.svg")&&a(e,"src",t),r&128&&a(e,"alt",n[7]),r&128&&a(e,"title",n[7])},d(n){n&&A(e)}}}function Vi(i){let e,t;return{c(){e=D("img"),J(e.src,t=i[3]+"housenumber.svg")||a(e,"src",t),a(e,"alt",i[7]),a(e,"title",i[7]),a(e,"class","svelte-w9y5n9")},m(n,r){P(n,e,r)},p(n,r){r&8&&!J(e.src,t=n[3]+"housenumber.svg")&&a(e,"src",t),r&128&&a(e,"alt",n[7]),r&128&&a(e,"title",n[7])},d(n){n&&A(e)}}}function Yi(i){let e,t,n,r;return{c(){e=D("img"),J(e.src,t=i[5])||a(e,"src",t),a(e,"alt",i[4]),a(e,"title",i[7]),a(e,"class","svelte-w9y5n9")},m(l,c){P(l,e,c),n||(r=q(e,"error",i[14]),n=!0)},p(l,c){c&32&&!J(e.src,t=l[5])&&a(e,"src",t),c&16&&a(e,"alt",l[4]),c&128&&a(e,"title",l[7])},d(l){l&&A(e),n=!1,r()}}}function Xi(i){let e,t;return{c(){e=D("div"),a(e,"class","sprite-icon svelte-w9y5n9"),a(e,"style",t=`
width: ${i[6].width/ie}px;
height: ${i[6].height/ie}px;
background-image: url(${i[3]}sprite${mt}.png);
background-position: -${i[6].x/ie}px -${i[6].y/ie}px;
background-size: ${se.width/ie}px ${se.height/ie}px;
(function(O,v){typeof exports=="object"&&typeof module<"u"?v(exports):typeof define=="function"&&define.amd?define(["exports"],v):(O=typeof globalThis<"u"?globalThis:O||self,v(O.maptilerGeocoder={}))})(this,function(O){"use strict";var Vn=Object.defineProperty;var Yn=Object.getPrototypeOf;var Xn=Reflect.get;var mi=O=>{throw TypeError(O)};var Jn=(O,v,j)=>v in O?Vn(O,v,{enumerable:!0,configurable:!0,writable:!0,value:j}):O[v]=j;var Mt=(O,v,j)=>Jn(O,typeof v!="symbol"?v+"":v,j),Ct=(O,v,j)=>v.has(O)||mi("Cannot "+j);var le=(O,v,j)=>(Ct(O,v,"read from private field"),j?j.call(O):v.get(O)),Wt=(O,v,j)=>v.has(O)?mi("Cannot add the same private member more than once"):v instanceof WeakSet?v.add(O):v.set(O,j),gi=(O,v,j,Ue)=>(Ct(O,v,"write to private field"),Ue?Ue.call(O,j):v.set(O,j),j),hi=(O,v,j)=>(Ct(O,v,"access private method"),j);var bi=(O,v,j)=>Xn(Yn(O),j,v);var $,Je,vi;function v(){}function j(i,e){for(const t in e)i[t]=e[t];return i}function Ue(i){return i()}function Ot(){return Object.create(null)}function me(i){i.forEach(Ue)}function zt(i){return typeof i=="function"}function Ee(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let qe;function X(i,e){return i===e?!0:(qe||(qe=document.createElement("a")),qe.href=e,i===qe.href)}function Li(i){return Object.keys(i).length===0}function _i(i,e,t,n){if(i){const r=Dt(i,e,t,n);return i[0](r)}}function Dt(i,e,t,n){return i[1]&&n?j(t.ctx.slice(),i[1](n(e))):t.ctx}function yi(i,e,t,n){return i[2],e.dirty}function wi(i,e,t,n,r,l){if(r){const c=Dt(e,t,n,l);i.p(c,r)}}function Ei(i){if(i.ctx.length>32){const e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function Qe(i){return i??""}function M(i,e){i.appendChild(e)}function P(i,e,t){i.insertBefore(e,t||null)}function A(i){i.parentNode&&i.parentNode.removeChild(i)}function D(i){return document.createElement(i)}function ge(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Le(i){return document.createTextNode(i)}function ee(){return Le(" ")}function Si(){return Le("")}function q(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function pi(i){return function(e){return e.preventDefault(),i.call(this,e)}}function a(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function Ti(i){return Array.from(i.childNodes)}function Ie(i,e){e=""+e,i.data!==e&&(i.data=e)}function Rt(i,e){i.value=e??""}function Me(i,e,t){i.classList.toggle(e,!!t)}function ki(i,e,{bubbles:t=!1,cancelable:n=!1}={}){return new CustomEvent(i,{detail:e,bubbles:t,cancelable:n})}let Ae;function Pe(i){Ae=i}function Ut(){if(!Ae)throw new Error("Function called outside component initialization");return Ae}function Ni(i){Ut().$$.on_destroy.push(i)}function It(){const i=Ut();return(e,t,{cancelable:n=!1}={})=>{const r=i.$$.callbacks[e];if(r){const l=ki(e,t,{cancelable:n});return r.slice().forEach(c=>{c.call(i,l)}),!l.defaultPrevented}return!0}}function Mi(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const Ce=[],at=[];let We=[];const At=[],Ci=Promise.resolve();let lt=!1;function Wi(){lt||(lt=!0,Ci.then(Pt))}function ut(i){We.push(i)}const ct=new Set;let Oe=0;function Pt(){if(Oe!==0)return;const i=Ae;do{try{for(;Oe<Ce.length;){const e=Ce[Oe];Oe++,Pe(e),Oi(e.$$)}}catch(e){throw Ce.length=0,Oe=0,e}for(Pe(null),Ce.length=0,Oe=0;at.length;)at.pop()();for(let e=0;e<We.length;e+=1){const t=We[e];ct.has(t)||(ct.add(t),t())}We.length=0}while(Ce.length);for(;At.length;)At.pop()();lt=!1,ct.clear(),Pe(i)}function Oi(i){if(i.fragment!==null){i.update(),me(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(ut)}}function zi(i){const e=[],t=[];We.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),We=e}const Ke=new Set;let Se;function Ve(){Se={r:0,c:[],p:Se}}function Ye(){Se.r||me(Se.c),Se=Se.p}function F(i,e){i&&i.i&&(Ke.delete(i),i.i(e))}function K(i,e,t,n){if(i&&i.o){if(Ke.has(i))return;Ke.add(i),Se.c.push(()=>{Ke.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Bt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Di(i,e){K(i,1,1,()=>{e.delete(i.key)})}function Ri(i,e,t,n,r,l,c,s,f,u,d,h){let L=i.length,w=l.length,S=L;const R={};for(;S--;)R[i[S].key]=S;const T=[],p=new Map,z=new Map,W=[];for(S=w;S--;){const E=h(r,l,S),g=t(E);let C=c.get(g);C?W.push(()=>C.p(E,e)):(C=u(g,E),C.c()),p.set(g,T[S]=C),g in R&&z.set(g,Math.abs(S-R[g]))}const Q=new Set,x=new Set;function V(E){F(E,1),E.m(s,d),c.set(E.key,E),d=E.first,w--}for(;L&&w;){const E=T[w-1],g=i[L-1],C=E.key,N=g.key;E===g?(d=E.first,L--,w--):p.has(N)?!c.has(C)||Q.has(C)?V(E):x.has(N)?L--:z.get(C)>z.get(N)?(x.add(C),V(E)):(Q.add(N),L--):(f(g,c),L--)}for(;L--;){const E=i[L];p.has(E.key)||f(E,c)}for(;w;)V(T[w-1]);return me(W),T}function _e(i){i&&i.c()}function he(i,e,t){const{fragment:n,after_update:r}=i.$$;n&&n.m(e,t),ut(()=>{const l=i.$$.on_mount.map(Ue).filter(zt);i.$$.on_destroy?i.$$.on_destroy.push(...l):me(l),i.$$.on_mount=[]}),r.forEach(ut)}function be(i,e){const t=i.$$;t.fragment!==null&&(zi(t.after_update),me(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function Ui(i,e){i.$$.dirty[0]===-1&&(Ce.push(i),Wi(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function pe(i,e,t,n,r,l,c=null,s=[-1]){const f=Ae;Pe(i);const u=i.$$={fragment:null,ctx:[],props:l,update:v,not_equal:r,bound:Ot(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(f?f.$$.context:[])),callbacks:Ot(),dirty:s,skip_bound:!1,root:e.target||f.$$.root};c&&c(u.root);let d=!1;if(u.ctx=t?t(i,e.props||{},(h,L,...w)=>{const S=w.length?w[0]:L;return u.ctx&&r(u.ctx[h],u.ctx[h]=S)&&(!u.skip_bound&&u.bound[h]&&u.bound[h](S),d&&Ui(i,h)),L}):[],u.update(),d=!0,me(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){const h=Ti(e.target);u.fragment&&u.fragment.l(h),h.forEach(A)}else u.fragment&&u.fragment.c();e.intro&&F(i.$$.fragment),he(i,e.target,e.anchor),Pt()}Pe(f)}class Te{constructor(){Mt(this,"$$");Mt(this,"$$set")}$destroy(){be(this,1),this.$destroy=v}$on(e,t){if(!zt(t))return v;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const r=n.indexOf(t);r!==-1&&n.splice(r,1)}}$set(e){this.$$set&&!Li(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Ii="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ii);function Ai(i){let e,t;return{c(){e=ge("svg"),t=ge("path"),a(t,"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"),a(e,"viewBox","0 0 14 14"),a(e,"width","13"),a(e,"height","13"),a(e,"class","svelte-en2qvf")},m(n,r){P(n,e,r),M(e,t)},p:v,i:v,o:v,d(n){n&&A(e)}}}class jt extends Te{constructor(e){super(),pe(this,e,null,Ai,Ee,{})}}function Pi(i){let e,t;return{c(){e=ge("svg"),t=ge("path"),a(t,"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"),a(e,"viewBox","0 0 30 30"),a(e,"fill","none"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"class","svelte-d2loi5")},m(n,r){P(n,e,r),M(e,t)},p:v,i:v,o:v,d(n){n&&A(e)}}}class Ft extends Te{constructor(e){super(),pe(this,e,null,Pi,Ee,{})}}function Bi(i){let e,t;return{c(){e=D("img"),X(e.src,t=i[3]+"area.svg")||a(e,"src",t),a(e,"alt",i[7]),a(e,"title",i[7]),a(e,"class","svelte-w9y5n9")},m(n,r){P(n,e,r)},p(n,r){r&8&&!X(e.src,t=n[3]+"area.svg")&&a(e,"src",t),r&128&&a(e,"alt",n[7]),r&128&&a(e,"title",n[7])},d(n){n&&A(e)}}}function ji(i){let e,t;return{c(){e=D("img"),X(e.src,t=i[3]+"reverse.svg")||a(e,"src",t),a(e,"alt",i[7]),a(e,"title",i[7]),a(e,"class","svelte-w9y5n9")},m(n,r){P(n,e,r)},p(n,r){r&8&&!X(e.src,t=n[3]+"reverse.svg")&&a(e,"src",t),r&128&&a(e,"alt",n[7]),r&128&&a(e,"title",n[7])},d(n){n&&A(e)}}}function Fi(i){let e,t;return{c(){e=D("img"),X(e.src,t=i[3]+"poi.svg")||a(e,"src",t),a(e,"alt",i[7]),a(e,"title",i[7]),a(e,"class","svelte-w9y5n9")},m(n,r){P(n,e,r)},p(n,r){r&8&&!X(e.src,t=n[3]+"poi.svg")&&a(e,"src",t),r&128&&a(e,"alt",n[7]),r&128&&a(e,"title",n[7])},d(n){n&&A(e)}}}function Gi(i){let e,t;return{c(){e=D("img"),X(e.src,t=i[3]+"postal_code.svg")||a(e,"src",t),a(e,"alt",i[7]),a(e,"title",i[7]),a(e,"class","svelte-w9y5n9")},m(n,r){P(n,e,r)},p(n,r){r&8&&!X(e.src,t=n[3]+"postal_code.svg")&&a(e,"src",t),r&128&&a(e,"alt",n[7]),r&128&&a(e,"title",n[7])},d(n){n&&A(e)}}}function Hi(i){let e,t;return{c(){e=D("img"),X(e.src,t=i[3]+"street.svg")||a(e,"src",t),a(e,"alt",i[7]),a(e,"title",i[7]),a(e,"class","svelte-w9y5n9")},m(n,r){P(n,e,r)},p(n,r){r&8&&!X(e.src,t=n[3]+"street.svg")&&a(e,"src",t),r&128&&a(e,"alt",n[7]),r&128&&a(e,"title",n[7])},d(n){n&&A(e)}}}function Zi(i){let e,t;return{c(){e=D("img"),X(e.src,t=i[3]+"road.svg")||a(e,"src",t),a(e,"alt",i[7]),a(e,"title",i[7]),a(e,"class","svelte-w9y5n9")},m(n,r){P(n,e,r)},p(n,r){r&8&&!X(e.src,t=n[3]+"road.svg")&&a(e,"src",t),r&128&&a(e,"alt",n[7]),r&128&&a(e,"title",n[7])},d(n){n&&A(e)}}}function qi(i){let e,t;return{c(){e=D("img"),X(e.src,t=i[3]+"housenumber.svg")||a(e,"src",t),a(e,"alt",i[7]),a(e,"title",i[7]),a(e,"class","svelte-w9y5n9")},m(n,r){P(n,e,r)},p(n,r){r&8&&!X(e.src,t=n[3]+"housenumber.svg")&&a(e,"src",t),r&128&&a(e,"alt",n[7]),r&128&&a(e,"title",n[7])},d(n){n&&A(e)}}}function Qi(i){let e,t,n,r;return{c(){e=D("img"),X(e.src,t=i[5])||a(e,"src",t),a(e,"alt",i[4]),a(e,"title",i[7]),a(e,"class","svelte-w9y5n9")},m(l,c){P(l,e,c),n||(r=q(e,"error",i[14]),n=!0)},p(l,c){c&32&&!X(e.src,t=l[5])&&a(e,"src",t),c&16&&a(e,"alt",l[4]),c&128&&a(e,"title",l[7])},d(l){l&&A(e),n=!1,r()}}}function Ki(i){let e,t;return{c(){e=D("div"),a(e,"class","sprite-icon svelte-w9y5n9"),a(e,"style",t=`
width: ${i[6].width/ne}px;
height: ${i[6].height/ne}px;
background-image: url(${i[3]}sprite${dt}.png);
background-position: -${i[6].x/ne}px -${i[6].y/ne}px;
background-size: ${oe.width/ne}px ${oe.height/ne}px;
`),a(e,"title",i[7])},m(n,r){P(n,e,r)},p(n,r){r&72&&t!==(t=`
width: ${n[6].width/ie}px;
height: ${n[6].height/ie}px;
background-image: url(${n[3]}sprite${mt}.png);
background-position: -${n[6].x/ie}px -${n[6].y/ie}px;
background-size: ${se.width/ie}px ${se.height/ie}px;
`)&&a(e,"style",t),r&128&&a(e,"title",n[7])},d(n){n&&A(e)}}}function Zt(i){let e,t;return{c(){e=D("span"),t=_e(i[7]),a(e,"class","secondary svelte-w9y5n9")},m(n,r){P(n,e,r),M(e,t)},p(n,r){r&128&&Ae(t,n[7])},d(n){n&&A(e)}}}function Ji(i){let e,t,n,r,l,c,o,f,u,d=(i[8]?i[0].place_name:i[0].place_name.replace(/,.*/,""))+"",h,L,w=i[2]==="always"||i[2]!=="never"&&!i[0].address&&!i[0].id.startsWith("road.")&&!i[0].id.startsWith("address.")&&!i[0].id.startsWith("postal_code.")&&(!i[0].id.startsWith("poi.")||!i[5])&&!i[8],p,I,k=(i[8]?"":i[0].place_name.replace(/[^,]*,?\s*/,""))+"",S,z,W,Q,$,Y;function E(_,m){return m&1&&(t=null),m&1&&(n=null),m&1&&(r=null),m&1&&(l=null),se&&_[6]?Xi:_[5]?Yi:_[0].address?Vi:(t==null&&(t=!!_[0].id.startsWith("road.")),t?Ki:(n==null&&(n=!!_[0].id.startsWith("address.")),n?Qi:(r==null&&(r=!!_[0].id.startsWith("postal_code.")),r?qi:(l==null&&(l=!!_[0].id.startsWith("poi.")),l?Zi:_[8]?Hi:Gi))))}let g=E(i,-1),C=g(i),N=w&&Zt(i);return{c(){e=D("li"),C.c(),c=te(),o=D("span"),f=D("span"),u=D("span"),h=_e(d),L=te(),N&&N.c(),p=te(),I=D("span"),S=_e(k),a(u,"class","primary svelte-w9y5n9"),a(f,"class","svelte-w9y5n9"),a(I,"class","line2 svelte-w9y5n9"),a(o,"class","texts svelte-w9y5n9"),a(e,"tabindex","-1"),a(e,"role","option"),a(e,"aria-selected",z=i[1]==="selected"),a(e,"aria-checked",W=i[1]==="picked"),a(e,"class",Q=Ve(i[1])+" svelte-w9y5n9")},m(_,m){P(_,e,m),C.m(e,null),M(e,c),M(e,o),M(o,f),M(f,u),M(u,h),M(f,L),N&&N.m(f,null),M(o,p),M(o,I),M(I,S),$||(Y=[q(e,"mouseenter",i[13]),q(e,"focus",i[15]),q(e,"click",i[16])],$=!0)},p(_,[m]){g===(g=E(_,m))&&C?C.p(_,m):(C.d(1),C=g(_),C&&(C.c(),C.m(e,c))),m&257&&d!==(d=(_[8]?_[0].place_name:_[0].place_name.replace(/,.*/,""))+"")&&Ae(h,d),m&293&&(w=_[2]==="always"||_[2]!=="never"&&!_[0].address&&!_[0].id.startsWith("road.")&&!_[0].id.startsWith("address.")&&!_[0].id.startsWith("postal_code.")&&(!_[0].id.startsWith("poi.")||!_[5])&&!_[8]),w?N?N.p(_,m):(N=Zt(_),N.c(),N.m(f,null)):N&&(N.d(1),N=null),m&257&&k!==(k=(_[8]?"":_[0].place_name.replace(/[^,]*,?\s*/,""))+"")&&Ae(S,k),m&2&&z!==(z=_[1]==="selected")&&a(e,"aria-selected",z),m&2&&W!==(W=_[1]==="picked")&&a(e,"aria-checked",W),m&2&&Q!==(Q=Ve(_[1])+" svelte-w9y5n9")&&a(e,"class",Q)},i:v,o:v,d(_){_&&A(e),C.d(),N&&N.d(),$=!1,ge(Y)}}}const qt=devicePixelRatio>1.25,mt=qt?"@2x":"",ie=qt?2:1;let se,xe;function xi(i,e,t){let n,r,l,{feature:c}=e,{style:o="default"}=e,{showPlaceType:f}=e,{missingIconsCache:u}=e,{iconsBaseUrl:d}=e;const h=Pt();let L,w,p,I;function k(){xe??(xe=fetch(`${d}sprite${mt}.json`).then(g=>g.json()).then(g=>{se=g}).catch(()=>{se=null}))}function S(){w&&u.add(w),z()}function z(){se!==void 0?W():(k(),xe==null||xe.then(W))}function W(){do{if(I--,t(4,L=n==null?void 0:n[I]),t(6,p=L?se==null?void 0:se.icons[L]:void 0),p)break;t(5,w=L?d+L.replace(/ /g,"_")+".svg":void 0)}while(I>-1&&(!w||u.has(w)))}function Q(g){Oi.call(this,i,g)}const $=()=>S(),Y=()=>h("select",void 0),E=g=>{document.activeElement!==g.target&&h("select",void 0)};return i.$$set=g=>{"feature"in g&&t(0,c=g.feature),"style"in g&&t(1,o=g.style),"showPlaceType"in g&&t(2,f=g.showPlaceType),"missingIconsCache"in g&&t(11,u=g.missingIconsCache),"iconsBaseUrl"in g&&t(3,d=g.iconsBaseUrl)},i.$$.update=()=>{var g,C,N,_,m;i.$$.dirty&1&&t(12,n=(g=c.properties)==null?void 0:g.categories),i.$$.dirty&1&&t(8,r=c.place_type[0]==="reverse"),i.$$.dirty&1&&t(7,l=((N=(C=c.properties)==null?void 0:C.categories)==null?void 0:N.join(", "))??((m=(_=c.properties)==null?void 0:_.place_type_name)==null?void 0:m[0])??c.place_type[0]),i.$$.dirty&4096&&(I=(n==null?void 0:n.length)??0,z())},[c,o,f,d,L,w,p,l,r,h,S,u,n,Q,$,Y,E]}class $i extends Ne{constructor(e){super(),ke(this,e,xi,Ji,Se,{feature:0,style:1,showPlaceType:2,missingIconsCache:11,iconsBaseUrl:3})}}function en(i){let e;return{c(){e=D("div"),e.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>',a(e,"class","svelte-7cmwmc")},m(t,n){P(t,e,n)},p:v,i:v,o:v,d(t){t&&A(e)}}}class tn extends Ne{constructor(e){super(),ke(this,e,null,en,Se,{})}}function nn(i){let e,t;return{c(){e=he("svg"),t=he("path"),a(t,"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"),a(e,"viewBox","0 0 60.006 21.412"),a(e,"width","14"),a(e,"height","20"),a(e,"class","svelte-en2qvf")},m(n,r){P(n,e,r),M(e,t)},p:v,i:v,o:v,d(n){n&&A(e)}}}class rn extends Ne{constructor(e){super(),ke(this,e,null,nn,Se,{})}}function on(i){let e,t,n;return{c(){e=he("svg"),t=he("circle"),n=he("path"),a(t,"cx","4.789"),a(t,"cy","4.787"),a(t,"r","3.85"),a(t,"class","svelte-1aq105l"),a(n,"d","M12.063 12.063 7.635 7.635"),a(n,"class","svelte-1aq105l"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"width","13"),a(e,"height","13"),a(e,"viewBox","0 0 13 13"),a(e,"class","svelte-1aq105l")},m(r,l){P(r,e,l),M(e,t),M(e,n)},p:v,i:v,o:v,d(r){r&&A(e)}}}class sn extends Ne{constructor(e){super(),ke(this,e,null,on,Se,{})}}function an(i,e,t){const n=e[1],r=e[0],l=n-r;return i===n&&t?i:((i-r)%l+l)%l+r}function Qt(i){const e=[...i];return e[2]<e[0]&&(Math.abs((e[0]+e[2]+360)/2)>Math.abs((e[0]-360+e[2])/2)?e[0]-=360:e[2]+=360),e}let je;async function ln(i,e,t){const n=i==null?void 0:i.getCenterAndZoom();for(const r of e??[])if(!(n&&(r.minZoom!=null&&r.minZoom>n[0]||r.maxZoom!=null&&r.maxZoom<n[0]))){if(r.type==="fixed")return r.coordinates.join(",");e:if(r.type==="client-geolocation"){if(je&&r.cachedLocationExpiry&&je.time+r.cachedLocationExpiry>Date.now()){if(!je.coords)break e;return je.coords}let l;try{return l=await new Promise((c,o)=>{t.signal.addEventListener("abort",()=>{o(Error("aborted"))}),navigator.geolocation.getCurrentPosition(f=>{c([f.coords.longitude,f.coords.latitude].map(u=>u.toFixed(6)).join(","))},f=>{o(f)},r)}),l}catch{}finally{r.cachedLocationExpiry&&(je={time:Date.now(),coords:l})}if(t.signal.aborted)return}if(r.type==="server-geolocation")return"ip";if(n&&r.type==="map-center")return n[1].toFixed(6)+","+n[2].toFixed(6)}}const un=/^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(EAST|WEST|[EW])?$/i,Kt=/^([+-]?[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,})$/,Vt=/^(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,Yt=/^(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,Xt=/^(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,Jt=/^(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 cn(i){if(!["DMS","DM","DD"].includes(i))throw new Error("invalid format specified");if(this.decimalCoordinates&&this.decimalCoordinates.trim()){const e=this.decimalCoordinates.split(",").map(w=>Number(w.trim())),t=Number(e[0]),n=Number(e[1]),r=Math.abs(t),l=Math.abs(n),c=t>0?"N":"S",o=n>0?"E":"W";let f;i=="DD"&&(f=`${r}° ${c}, ${l}° ${o}`);const u=Math.floor(r),d=Math.floor(l),h=(r-u)*60,L=(l-d)*60;if(i=="DM"){let w=xt(h,3).toFixed(3).padStart(6,"0"),p=xt(L,3).toFixed(3).padStart(6,"0");w.endsWith(".000")&&p.endsWith(".000")&&(w=w.replace(/\.000$/,""),p=p.replace(/\.000$/,"")),f=`${u}° ${w}' ${c}, ${d}° ${p}' ${o}`}if(i=="DMS"){const w=Math.floor(h),p=Math.floor(L);let I=((h-w)*60).toFixed(1).padStart(4,"0"),k=((L-p)*60).toFixed(1).padStart(4,"0");const S=w.toString().padStart(2,"0"),z=p.toString().padStart(2,"0");I.endsWith(".0")&&k.endsWith(".0")&&(I=I.replace(/\.0$/,""),k=k.replace(/\.0$/,"")),f=`${u}° ${S}' ${I}" ${c}, ${d}° ${z}' ${k}" ${o}`}return f}else throw new Error("no decimal coordinates to convert")}function xt(i,e){const t=Math.pow(10,e);return Math.round((i+Number.EPSILON)*t)/t}function gt(i,e){e||(e=5),i=i.replace(/\s+/g," ").trim();let t=null,n=null,r="",l="",c=null,o=[],f=!1;if(un.test(i))throw new Error("invalid coordinate value");if(Kt.test(i))if(o=Kt.exec(i),f=Fe(o),f)t=Math.abs(o[1])+o[2]/60,Number(o[1])<0&&(t*=-1),n=Math.abs(o[3])+o[4]/60,Number(o[3])<0&&(n*=-1),c="DM";else throw new Error("invalid coordinate format");else if(Vt.test(i))if(o=Vt.exec(i),f=Fe(o),f){if(t=o[2],n=o[6],t.includes(",")&&(t=t.replace(",",".")),n.includes(",")&&(n=n.replace(",",".")),c="DD",Number(Math.round(t))==Number(t))throw new Error("integer only coordinate provided");if(Number(Math.round(n))==Number(n))throw new Error("integer only coordinate provided");o[1]?(r=o[1],l=o[5]):o[4]&&(r=o[4],l=o[8])}else throw new Error("invalid decimal coordinate format");else if(Yt.test(i))if(o=Yt.exec(i),f=Fe(o),f)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4]/60,c="DM"),o[6]&&(t+=o[6].replace(",",".")/3600,c="DMS"),parseInt(o[2])<0&&(t=-1*t),n=Math.abs(parseInt(o[9])),o[11]&&(n+=o[11]/60),o[13]&&(n+=o[13].replace(",",".")/3600),parseInt(o[9])<0&&(n=-1*n),o[1]?(r=o[1],l=o[8]):o[7]&&(r=o[7],l=o[14]);else throw new Error("invalid DMS coordinates format");else if(Xt.test(i))if(o=Xt.exec(i),f=Fe(o),f)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4]/60,c="DM"),o[6]&&(t+=o[6]/3600,c="DMS"),parseInt(o[2])<0&&(t=-1*t),n=Math.abs(parseInt(o[10])),o[12]&&(n+=o[12]/60),o[14]&&(n+=o[14]/3600),parseInt(o[10])<0&&(n=-1*n),o[1]?(r=o[1],l=o[9]):o[8]&&(r=o[8],l=o[16]);else throw new Error("invalid DMS coordinates format");else if(Jt.test(i)){if(o=Jt.exec(i),f=Fe(o),o.filter(u=>u).length<=5)throw new Error("invalid coordinates format");if(f)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4].replace(",",".")/60,c="DM"),o[6]&&(t+=o[6].replace(",",".")/3600,c="DMS"),parseInt(o[2])<0&&(t=-1*t),n=Math.abs(parseInt(o[10])),o[12]&&(n+=o[12].replace(",",".")/60),o[14]&&(n+=o[14].replace(",",".")/3600),parseInt(o[10])<0&&(n=-1*n),o[1]?(r=o[1],l=o[9]):o[8]&&(r=o[8],l=o[16]);else throw new Error("invalid coordinates format")}if(f){if(Math.abs(n)>=180)throw new Error("invalid longitude value");if(Math.abs(t)>=90)throw new Error("invalid latitude value");if(r&&!l||!r&&l)throw new Error("invalid coordinates value");if(r&&r==l)throw new Error("invalid coordinates format");t.toString().includes(",")&&(t=t.replace(",",".")),n.toString().includes(",")&&(n=n.replace(",","."));let u=/S|SOUTH/i;u.test(r)&&t>0&&(t=-1*t),u=/W|WEST/i,u.test(l)&&n>0&&(n=-1*n);const d=o[0].trim();let h,L;const w=/[,/;\u0020]/g,p=d.match(w);if(p==null){const S=Math.floor(i.length/2);h=d.substring(0,S).trim(),L=d.substring(S).trim()}else{let S;p.length%2==1?S=Math.floor(p.length/2):S=p.length/2-1;let z=0;if(S==0)z=d.indexOf(p[0]),h=d.substring(0,z).trim(),L=d.substring(z+1).trim();else{let W=0,Q=0;for(;W<=S;)z=d.indexOf(p[W],Q),Q=z+1,W++;h=d.substring(0,z).trim(),L=d.substring(z+1).trim()}}const I=h.split(".");if(I.length==2&&I[1]==0&&I[1].length!=2)throw new Error("invalid coordinates format");const k=L.split(".");if(k.length==2&&k[1]==0&&k[1].length!=2)throw new Error("invalid coordinates format");if(/^\d+$/.test(h)||/^\d+$/.test(L))throw new Error("degree only coordinate/s provided");return t=Number(Number(t).toFixed(e)),n=Number(Number(n).toFixed(e)),Object.freeze({verbatimCoordinates:d,verbatimLatitude:h,verbatimLongitude:L,decimalLatitude:t,decimalLongitude:n,decimalCoordinates:`${t},${n}`,originalFormat:c,closeEnough:dn,toCoordinateFormat:cn})}else throw new Error("coordinates pattern match failed")}function Fe(i){if(!isNaN(i[0]))return!1;const e=[...i];if(e.shift(),e.length%2>0)return!1;const t=/^[-+]?\d+([\.,]\d+)?$/,n=/[eastsouthnorthwest]+/i,r=e.length/2;for(let l=0;l<r;l++){const c=e[l],o=e[l+r],f=t.test(c)&&t.test(o),u=n.test(c)&&n.test(o),d=c==o;if(!(c==null&&o==null)){if(c==null||o==null)return!1;if(f||u||d)continue;return!1}}return!0}function $t(i,e){const t=Math.abs(i-e);return Number(t.toFixed(6))<=1e-5}function dn(i){if(!i)throw new Error("coords must be provided");if(i.includes(",")){const e=i.split(",");if(Number(e[0])==NaN||Number(e[1])==NaN)throw new Error("coords are not valid decimals");return $t(this.decimalLatitude,Number(e[0]))&&$t(this.decimalLongitude,e[1])}else throw new Error("coords being tested must be separated by a comma")}const fn=Object.freeze({DMS:"DMS",DM:"DM",DD:"DD"});gt.to=fn;const mn=[{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"}],gn={decimalLatitude:40.123,decimalLongitude:-74.123},hn=[{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}],bn=[{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},{verbatimCoordinates:"1.23456, 18.33453",verbatimLatitude:"1.23456",verbatimLongitude:"18.33453",decimalLatitude:1.23456,decimalLongitude:18.33453}];function vn(){const i=[];return mn.forEach(e=>{e.decimalLatitude?i.push(e):i.push({...e,...gn})}),[...i,...hn,...bn]}const Ln=vn();gt.formats=Ln.map(i=>i.verbatimCoordinates);const _n=gt;function ei(i,e,t){const n=i.slice();return n[100]=e[t],n[102]=t,n}function ti(i){let e,t;return e=new tn({}),{c(){ye(e.$$.fragment)},m(n,r){be(e,n,r),t=!0},i(n){t||(F(e.$$.fragment,n),t=!0)},o(n){V(e.$$.fragment,n),t=!1},d(n){ve(e,n)}}}function ii(i){let e,t,n,r,l;return t=new rn({}),{c(){e=D("button"),ye(t.$$.fragment),a(e,"type","button"),a(e,"title",i[10]),a(e,"class","svelte-bz0zu3"),Oe(e,"active",i[0])},m(c,o){P(c,e,o),be(t,e,null),n=!0,r||(l=q(e,"click",i[81]),r=!0)},p(c,o){(!n||o[0]&1024)&&a(e,"title",c[10]),(!n||o[0]&1)&&Oe(e,"active",c[0])},i(c){n||(F(t.$$.fragment,c),n=!0)},o(c){V(t.$$.fragment,c),n=!1},d(c){c&&A(e),ve(t),r=!1,l()}}}function yn(i){let e,t=[],n=new Map,r,l,c,o=Ft(i[13]);const f=u=>u[100].id+(u[100].address?","+u[100].address:"");for(let u=0;u<o.length;u+=1){let d=ei(i,o,u),h=f(d);n.set(h,t[u]=ni(h,d))}return{c(){e=D("ul");for(let u=0;u<t.length;u+=1)t[u].c();a(e,"class","options svelte-bz0zu3"),a(e,"role","listbox")},m(u,d){P(u,e,d);for(let h=0;h<t.length;h+=1)t[h]&&t[h].m(e,null);r=!0,l||(c=[q(e,"mouseleave",i[27]),q(e,"blur",i[85]),q(e,"keydown",i[23])],l=!0)},p(u,d){d[0]&102823936&&(o=Ft(u[13]),Xe(),t=Ai(t,d,f,1,u,o,n,e,Ui,ni,null,ei),Je())},i(u){if(!r){for(let d=0;d<o.length;d+=1)F(t[d]);r=!0}},o(u){for(let d=0;d<t.length;d+=1)V(t[d]);r=!1},d(u){u&&A(e);for(let d=0;d<t.length;d+=1)t[d].d();l=!1,ge(c)}}}function wn(i){let e,t,n,r,l,c;return t=new Ht({}),{c(){e=D("div"),ye(t.$$.fragment),n=te(),r=D("div"),l=_e(i[8]),a(r,"class","svelte-bz0zu3"),a(e,"class","no-results svelte-bz0zu3")},m(o,f){P(o,e,f),be(t,e,null),M(e,n),M(e,r),M(r,l),c=!0},p(o,f){(!c||f[0]&256)&&Ae(l,o[8])},i(o){c||(F(t.$$.fragment,o),c=!0)},o(o){V(t.$$.fragment,o),c=!1},d(o){o&&A(e),ve(t)}}}function En(i){let e="",t;return{c(){t=_e(e)},m(n,r){P(n,t,r)},p:v,i:v,o:v,d(n){n&&A(t)}}}function pn(i){let e,t,n,r,l,c,o,f,u,d,h;return t=new Ht({}),f=new Gt({}),{c(){e=D("div"),ye(t.$$.fragment),n=te(),r=D("div"),l=_e(i[7]),c=te(),o=D("button"),ye(f.$$.fragment),a(r,"class","svelte-bz0zu3"),a(o,"class","svelte-bz0zu3"),a(e,"class","error svelte-bz0zu3")},m(L,w){P(L,e,w),be(t,e,null),M(e,n),M(e,r),M(r,l),M(e,c),M(e,o),be(f,o,null),u=!0,d||(h=q(o,"click",i[82]),d=!0)},p(L,w){(!u||w[0]&128)&&Ae(l,L[7])},i(L){u||(F(t.$$.fragment,L),F(f.$$.fragment,L),u=!0)},o(L){V(t.$$.fragment,L),V(f.$$.fragment,L),u=!1},d(L){L&&A(e),ve(t),ve(f),d=!1,h()}}}function ni(i,e){var o;let t,n,r;function l(){return e[83](e[102])}function c(){return e[84](e[100])}return n=new $i({props:{feature:e[100],showPlaceType:e[11],style:e[15]===e[102]?"selected":((o=e[14])==null?void 0:o.id)===e[100].id?"picked":"default",missingIconsCache:e[21],iconsBaseUrl:e[12]}}),n.$on("mouseenter",l),n.$on("select",c),{key:i,first:null,c(){t=ki(),ye(n.$$.fragment),this.first=t},m(f,u){P(f,t,u),be(n,f,u),r=!0},p(f,u){var h;e=f;const d={};u[0]&8192&&(d.feature=e[100]),u[0]&2048&&(d.showPlaceType=e[11]),u[0]&57344&&(d.style=e[15]===e[102]?"selected":((h=e[14])==null?void 0:h.id)===e[100].id?"picked":"default"),u[0]&4096&&(d.iconsBaseUrl=e[12]),n.$set(d)},i(f){r||(F(n.$$.fragment,f),r=!0)},o(f){V(n.$$.fragment,f),r=!1},d(f){f&&A(t),ve(n,f)}}}function Sn(i){let e,t,n,r,l,c,o,f,u,d,h,L,w,p,I,k,S,z,W,Q,$,Y=!1;l=new sn({}),h=new Gt({});let E=i[20]&&ti(),g=i[6]==="button"&&ii(i);const C=i[72].default,N=Ei(C,i,i[71],null),_=[pn,En,wn,yn],m=[];function Me(y,G){var ce,ne;return y[19]?0:!y[16]&&!y[4]?1:((ce=y[13])==null?void 0:ce.length)===0?2:(ne=y[13])!=null&&ne.length&&(y[16]||y[4])?3:-1}return~(k=Me(i))&&(S=m[k]=_[k](i)),{c(){e=te(),t=D("form"),n=D("div"),r=D("button"),ye(l.$$.fragment),c=te(),o=D("input"),f=te(),u=D("div"),d=D("button"),ye(h.$$.fragment),L=te(),E&&E.c(),w=te(),g&&g.c(),p=te(),N&&N.c(),I=te(),S&&S.c(),a(r,"class","search-button svelte-bz0zu3"),a(r,"type","button"),a(o,"placeholder",i[9]),a(o,"aria-label",i[9]),a(o,"class","svelte-bz0zu3"),a(d,"type","button"),a(d,"title",i[3]),a(d,"class","svelte-bz0zu3"),a(u,"class","clear-button-container svelte-bz0zu3"),Oe(u,"displayable",i[1]!==""),a(n,"class","input-group svelte-bz0zu3"),a(t,"class",z=Ve(i[2])+" svelte-bz0zu3"),Oe(t,"can-collapse",i[5]&&i[1]==="")},m(y,G){P(y,e,G),P(y,t,G),M(t,n),M(n,r),be(l,r,null),M(n,c),M(n,o),i[74](o),Ut(o,i[1]),M(n,f),M(n,u),M(u,d),be(h,d,null),M(u,L),E&&E.m(u,null),M(n,w),g&&g.m(n,null),M(n,p),N&&N.m(n,null),M(t,I),~k&&m[k].m(t,null),W=!0,Q||($=[q(r,"click",i[73]),q(o,"input",i[75]),q(o,"focus",i[76]),q(o,"blur",i[77]),q(o,"click",i[78]),q(o,"keydown",i[23]),q(o,"input",i[24]),q(o,"change",i[79]),q(d,"click",i[80]),q(t,"submit",Ni(i[22]))],Q=!0)},p(y,G){(!W||G[0]&512)&&a(o,"placeholder",y[9]),(!W||G[0]&512)&&a(o,"aria-label",y[9]),G[0]&2&&o.value!==y[1]&&Ut(o,y[1]),(!W||G[0]&8)&&a(d,"title",y[3]),y[20]?E?G[0]&1048576&&F(E,1):(E=ti(),E.c(),F(E,1),E.m(u,null)):E&&(Xe(),V(E,1,1,()=>{E=null}),Je()),(!W||G[0]&2)&&Oe(u,"displayable",y[1]!==""),y[6]==="button"?g?(g.p(y,G),G[0]&64&&F(g,1)):(g=ii(y),g.c(),F(g,1),g.m(n,p)):g&&(Xe(),V(g,1,1,()=>{g=null}),Je()),N&&N.p&&(!W||G[2]&512)&&Si(N,C,y,y[71],W?pi(C,y[71],G,null):Ti(y[71]),null);let ce=k;k=Me(y),k===ce?~k&&m[k].p(y,G):(S&&(Xe(),V(m[ce],1,1,()=>{m[ce]=null}),Je()),~k?(S=m[k],S?S.p(y,G):(S=m[k]=_[k](y),S.c()),F(S,1),S.m(t,null)):S=null),(!W||G[0]&4&&z!==(z=Ve(y[2])+" svelte-bz0zu3"))&&a(t,"class",z),(!W||G[0]&38)&&Oe(t,"can-collapse",y[5]&&y[1]==="")},i(y){W||(F(Y),F(l.$$.fragment,y),F(h.$$.fragment,y),F(E),F(g),F(N,y),F(S),W=!0)},o(y){V(Y),V(l.$$.fragment,y),V(h.$$.fragment,y),V(E),V(g),V(N,y),V(S),W=!1},d(y){y&&(A(e),A(t)),ve(l),i[74](null),ve(h),E&&E.d(),g&&g.d(),N&&N.d(y),~k&&m[k].d(),Q=!1,ge($)}}}function Tn(i,e,t){let n,r,l,{$$slots:c={},$$scope:o}=e;const f={continental_marine:4,country:4,major_landform:8,region:5,subregion:6,county:7,joint_municipality:8,joint_submunicipality:9,municipality:10,municipal_district:11,locality:12,neighbourhood:13,place:14,postal_code:14,road:16,poi:17,address:18,"poi.peak":15,"poi.shop":18,"poi.cafe":18,"poi.restaurant":18,"poi.aerodrome":13};let{class:u=void 0}=e,{apiKey:d}=e,{bbox:h=void 0}=e,{clearButtonTitle:L="clear"}=e,{clearOnBlur:w=!1}=e,{clearListOnPick:p=!1}=e,{keepListOpen:I=!1}=e,{collapsed:k=!1}=e,{country:S=void 0}=e,{debounceSearch:z=200}=e,{enableReverse:W="never"}=e,{errorMessage:Q="Something went wrong…"}=e,{filter:$=()=>!0}=e,{flyTo:Y=!0}=e,{fuzzyMatch:E=!0}=e,{language:g=void 0}=e,{limit:C=void 0}=e;const N=41415112612;let{reverseGeocodingLimit:_=N}=e,{mapController:m=void 0}=e,{minLength:Me=2}=e,{noResultsMessage:y="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!"}=e,{placeholder:G="Search"}=e,{proximity:ce=[{type:"server-geolocation"}]}=e,{reverseActive:ne=W==="always"}=e,{reverseButtonTitle:ri="toggle reverse geocoding"}=e,{searchValue:K=""}=e,{pickedResultStyle:et="full-geometry"}=e,{showPlaceType:oi="if-needed"}=e,{showResultsWhileTyping:tt=!0}=e,{autocompleteTimeout:vt=void 0}=e,{selectFirst:Ce=!0}=e,{flyToSelected:it=!1}=e,{markerOnSelected:nt=!0}=e,{types:Lt=void 0}=e;const si=[];let{reverseGeocodingTypes:rt=si}=e,{exhaustiveReverseGeocoding:_t=!1}=e,{excludeTypes:yt=!1}=e;const ai=void 0;let{reverseGeocodingExcludeTypes:ot=ai}=e,{zoom:st=f}=e,{apiUrl:wt="https://api.maptiler.com/geocoding"}=e,{fetchParameters:Et={}}=e,{iconsBaseUrl:li="https://cdn.maptiler.com/maptiler-geocoding-control/v2.1.3-rc2/icons/"}=e,{adjustUrlQuery:pt=()=>{}}=e,{adjustUrl:St=()=>{}}=e;function Mn(s){ae.focus(s)}function Cn(){ae.blur()}function ui(s,B=!0,H=!1){t(1,K=s),B?(t(15,R=-1),di()):(fi(void 0,!H,H),setTimeout(()=>{ae.focus(),ae.select()}))}function Wn(){t(13,T=void 0),t(14,b=void 0),t(15,R=-1)}function On(){t(65,Z=[]),t(14,b=void 0)}let T,Z,b,ci="",ae,R=-1,de,at=[],We,we,re,Ie,Tt,Le=!1;const zn=new Set,Ee=Pt();function Rn(){return!!re}Wi(()=>{m&&(m.setEventHandler(void 0),m.indicateReverse(!1),m.setSelectedMarker(-1),m.setFeatures(void 0,void 0,!1))});function di(s){if(t(17,Le=!1),we&&(window.clearTimeout(we),we=void 0),re){window.clearTimeout(re),t(66,re=void 0),Ge(K,{appendSpace:!0});return}if(R>-1&&T)t(14,b=T[R]),t(1,K=b.place_type[0]==="reverse"?b.place_name:b.place_name.replace(/,.*/,"")),t(19,de=void 0),t(65,Z=void 0),t(15,R=-1);else if(K){const B=s||!kt(K);Ge(K,{exact:!0}).then(()=>{t(65,Z=T),t(14,b=void 0),B&&Dn()}).catch(H=>t(19,de=H))}}function kt(s){try{return _n(s,6)}catch{return!1}}async function Ge(s,{byId:B=!1,exact:H=!1,appendSpace:le=!1}={}){var fe,pe,gi;t(19,de=void 0),We==null||We.abort();const X=new AbortController;t(20,We=X);try{const U=kt(s),Ze=new URL(wt+"/"+encodeURIComponent(U?U.decimalLongitude+","+U.decimalLatitude:s+(le?" ":""))+".json"),oe=Ze.searchParams;g!==void 0&&oe.set("language",Array.isArray(g)?g.join(","):g??"");const[Ct]=(m==null?void 0:m.getCenterAndZoom())??[];let me=(fe=!U||rt===si?Lt:rt)==null?void 0:fe.map(x=>typeof x=="string"?x:Ct===void 0||(x[0]??0)<=Ct&&Ct<(x[1]??1/0)?x[2]:void 0).filter(x=>x!==void 0);me&&(me=[...new Set(me)],oe.set("types",me.join(",")));const hi=!U||ot===ai?yt:ot;if(hi&&oe.set("excludeTypes",String(hi)),h&&oe.set("bbox",h.map(x=>x.toFixed(6)).join(",")),S&&oe.set("country",Array.isArray(S)?S.join(","):S),!B&&!U){const x=await ln(m,ce,X);x&&oe.set("proximity",x),(H||!tt)&&oe.set("autocomplete","false"),oe.set("fuzzyMatch",String(E))}const qe=_===N?C:_;qe!==void 0&&qe>1&&(me==null?void 0:me.length)!==1&&console.warn("For reverse geocoding when limit > 1 then types must contain single value."),U?(qe===1||qe!==void 0&&(_t||(me==null?void 0:me.length)===1))&&oe.set("limit",String(qe)):C!==void 0&&oe.set("limit",String(C)),oe.set("key",d),pt(oe),St(Ze);const Jn=Ze.searchParams.get("types")===""&&Ze.searchParams.get("excludeTypes")!=="true",lt=Ze.toString();if(lt===ci){B?(p&&t(13,T=void 0),t(14,b=at[0])):(t(13,T=at),((pe=T[R])==null?void 0:pe.id)!==(r==null?void 0:r.id)&&t(15,R=-1));return}ci=lt;let Qe;if(Jn)Qe={type:"FeatureCollection",features:[]};else{const x=await fetch(lt,{signal:X.signal,...Et});if(!x.ok)throw new Error(await x.text());Qe=await x.json()}Ee("response",{url:lt,featureCollection:Qe}),B?(p&&t(13,T=void 0),t(14,b=Qe.features[0]),at=[b]):(t(13,T=Qe.features.filter($)),U&&T.unshift({type:"Feature",properties:{},id:"reverse_"+U.decimalLongitude+"_"+U.decimalLatitude,text:U.decimalLatitude+", "+U.decimalLongitude,place_name:U.decimalLatitude+", "+U.decimalLongitude,place_type:["reverse"],center:[U.decimalLongitude,U.decimalLatitude],bbox:[U.decimalLongitude,U.decimalLatitude,U.decimalLongitude,U.decimalLatitude],geometry:{type:"Point",coordinates:[U.decimalLongitude,U.decimalLatitude]}}),at=T,((gi=T[R])==null?void 0:gi.id)!==(r==null?void 0:r.id)&&t(15,R=-1),U&&ae.focus())}catch(U){if(U&&typeof U=="object"&&"name"in U&&U.name==="AbortError")return;throw U}finally{X===We&&t(20,We=void 0)}}function Dn(){var le;if(!(Z!=null&&Z.length)||!Y)return;const s=[180,90,-180,-90],B=!Z.some(X=>!X.matching_text);let H;for(const X of Z){const fe=He(X);if(H=H===void 0?fe:fe===void 0?H:Math.max(H,fe),B||!X.matching_text)for(const pe of[0,1,2,3])s[pe]=Math[pe<2?"min":"max"](s[pe],((le=X.bbox)==null?void 0:le[pe])??X.center[pe%2])}m&&Z.length>0&&(b&&s[0]===s[2]&&s[1]===s[3]?m.flyTo(b.center,He(b)):m.fitBounds(Qt(s),50,H))}function Nt(){!b||!m||(!b.bbox||b.bbox[0]===b.bbox[2]&&b.bbox[1]===b.bbox[3]?m.flyTo(b.center,He(b)):m.fitBounds(Qt(b.bbox),50,He(b)))}function He(s){var H;if(!s.bbox||s.bbox[0]!==s.bbox[2]&&s.bbox[1]!==s.bbox[3])return;const B=s.id.replace(/\..*/,"");return(Array.isArray((H=s.properties)==null?void 0:H.categories)?s.properties.categories.reduce((le,X)=>{const fe=st[B+"."+X];return le===void 0?fe:fe===void 0?le:Math.max(le,fe)},void 0):void 0)??st[B]}function In(s){t(0,ne=W==="always"),t(13,T=void 0),t(14,b=void 0),t(15,R=-1),ui(s[1].toFixed(6)+", "+an(s[0],[-180,180],!0).toFixed(6),!1,!0)}function Un(s){if(!T)return;let B=s.key==="ArrowDown"?1:s.key==="ArrowUp"?-1:0;B&&(ae.focus(),t(17,Le=!0),s.preventDefault(),b&&R===-1&&t(15,R=T.findIndex(H=>H.id===(b==null?void 0:b.id))),R===(b||Ce?0:-1)&&B===-1&&t(15,R=T.length),t(15,R+=B),R>=T.length&&t(15,R=-1),R<0&&(b||Ce)&&t(15,R=0))}function fi(s,B=!0,H=!1){if(t(19,de=void 0),t(14,b=void 0),t(17,Le=!0),we&&(window.clearTimeout(we),we=void 0),re&&(window.clearTimeout(re),t(66,re=void 0)),!tt&&!H||K.length<Me){t(13,T=void 0);return}const le=K;we=window.setTimeout(()=>{we=void 0,Ge(le).catch(X=>t(19,de=X))},B?z:0),K.endsWith(" ")||t(66,re=window.setTimeout(()=>{t(66,re=void 0),Ge(le,{appendSpace:!0}).catch(X=>t(19,de=X))},vt))}function Mt(s){b&&(b==null?void 0:b.id)===(s==null?void 0:s.id)?Nt():(t(14,b=s),t(1,K=s.place_name))}function mi(s){t(15,R=s)}function An(){(!Ce||b)&&t(15,R=-1),it&&Nt()}const Pn=()=>ae.focus();function Bn(s){ut[s?"unshift":"push"](()=>{ae=s,t(18,ae)})}function jn(){K=this.value,t(1,K),t(17,Le),t(31,w),t(16,Ie)}const Fn=()=>t(17,Le=!0),Gn=()=>t(17,Le=!1),Hn=()=>t(17,Le=!0),Zn=()=>t(14,b=void 0),qn=()=>{t(1,K=""),t(14,b=void 0),ae.focus()},Qn=()=>t(0,ne=!ne),Kn=()=>t(19,de=void 0),Vn=s=>mi(s),Yn=s=>Mt(s),Xn=()=>{};return i.$$set=s=>{"class"in s&&t(2,u=s.class),"apiKey"in s&&t(29,d=s.apiKey),"bbox"in s&&t(30,h=s.bbox),"clearButtonTitle"in s&&t(3,L=s.clearButtonTitle),"clearOnBlur"in s&&t(31,w=s.clearOnBlur),"clearListOnPick"in s&&t(32,p=s.clearListOnPick),"keepListOpen"in s&&t(4,I=s.keepListOpen),"collapsed"in s&&t(5,k=s.collapsed),"country"in s&&t(33,S=s.country),"debounceSearch"in s&&t(34,z=s.debounceSearch),"enableReverse"in s&&t(6,W=s.enableReverse),"errorMessage"in s&&t(7,Q=s.errorMessage),"filter"in s&&t(35,$=s.filter),"flyTo"in s&&t(36,Y=s.flyTo),"fuzzyMatch"in s&&t(37,E=s.fuzzyMatch),"language"in s&&t(38,g=s.language),"limit"in s&&t(39,C=s.limit),"reverseGeocodingLimit"in s&&t(40,_=s.reverseGeocodingLimit),"mapController"in s&&t(41,m=s.mapController),"minLength"in s&&t(42,Me=s.minLength),"noResultsMessage"in s&&t(8,y=s.noResultsMessage),"placeholder"in s&&t(9,G=s.placeholder),"proximity"in s&&t(43,ce=s.proximity),"reverseActive"in s&&t(0,ne=s.reverseActive),"reverseButtonTitle"in s&&t(10,ri=s.reverseButtonTitle),"searchValue"in s&&t(1,K=s.searchValue),"pickedResultStyle"in s&&t(44,et=s.pickedResultStyle),"showPlaceType"in s&&t(11,oi=s.showPlaceType),"showResultsWhileTyping"in s&&t(45,tt=s.showResultsWhileTyping),"autocompleteTimeout"in s&&t(46,vt=s.autocompleteTimeout),"selectFirst"in s&&t(47,Ce=s.selectFirst),"flyToSelected"in s&&t(48,it=s.flyToSelected),"markerOnSelected"in s&&t(49,nt=s.markerOnSelected),"types"in s&&t(50,Lt=s.types),"reverseGeocodingTypes"in s&&t(51,rt=s.reverseGeocodingTypes),"exhaustiveReverseGeocoding"in s&&t(52,_t=s.exhaustiveReverseGeocoding),"excludeTypes"in s&&t(53,yt=s.excludeTypes),"reverseGeocodingExcludeTypes"in s&&t(54,ot=s.reverseGeocodingExcludeTypes),"zoom"in s&&t(55,st=s.zoom),"apiUrl"in s&&t(56,wt=s.apiUrl),"fetchParameters"in s&&t(57,Et=s.fetchParameters),"iconsBaseUrl"in s&&t(12,li=s.iconsBaseUrl),"adjustUrlQuery"in s&&t(58,pt=s.adjustUrlQuery),"adjustUrl"in s&&t(59,St=s.adjustUrl),"$$scope"in s&&t(71,o=s.$$scope)},i.$$.update=()=>{if(i.$$.dirty[0]&64&&t(0,ne=W==="always"),i.$$.dirty[0]&16384|i.$$.dirty[1]&8192&&et!=="marker-only"&&b&&!b.address&&b.geometry.type==="Point"&&b.place_type[0]!=="reverse"&&Ge(b.id,{byId:!0}).catch(s=>t(19,de=s)),i.$$.dirty[0]&16384|i.$$.dirty[1]&1058|i.$$.dirty[2]&32&&(m&&b&&b.id!==Tt&&Y&&(Nt(),p&&t(13,T=void 0),t(65,Z=void 0),t(15,R=-1)),t(67,Tt=b==null?void 0:b.id)),i.$$.dirty[0]&196608|i.$$.dirty[1]&1&&setTimeout(()=>{t(16,Ie=Le),w&&!Ie&&t(1,K="")}),i.$$.dirty[0]&8194|i.$$.dirty[1]&2048&&K.length<Me&&(t(13,T=void 0),t(19,de=void 0),t(65,Z=T)),i.$$.dirty[0]&8192|i.$$.dirty[1]&65536&&Ce&&T!=null&&T.length&&(Rn()||t(15,R=0)),i.$$.dirty[0]&57344|i.$$.dirty[1]&65536&&Ce&&T!=null&&T.length&&R==-1&&!b&&t(15,R=0),i.$$.dirty[0]&8192|i.$$.dirty[2]&8&&Z!==T&&t(65,Z=void 0),i.$$.dirty[0]&73729|i.$$.dirty[1]&1024|i.$$.dirty[2]&8&&m&&m.setEventHandler(s=>{switch(s.type){case"mapClick":ne&&In(s.coordinates);break;case"markerClick":{const B=T==null?void 0:T.find(H=>H.id===s.id);B&&Mt(B)}break;case"markerMouseEnter":Z&&t(15,R=Ie?(T==null?void 0:T.findIndex(B=>B.id===s.id))??-1:-1);break;case"markerMouseLeave":Z&&t(15,R=-1);break}}),i.$$.dirty[0]&40960&&t(68,r=T==null?void 0:T[R]),i.$$.dirty[1]&132128|i.$$.dirty[2]&64&&m&&r&&Y&&it&&m.flyTo(r.center,He(r)),i.$$.dirty[1]&8192&&t(70,n=et==="full-geometry-including-polygon-center-marker"),i.$$.dirty[1]&263168|i.$$.dirty[2]&256&&(nt||m==null||m.setFeatures(void 0,void 0,n)),i.$$.dirty[0]&16384|i.$$.dirty[1]&263168|i.$$.dirty[2]&328&&m&&nt&&!Z&&(m.setFeatures(r?[r]:void 0,b,n),m.setSelectedMarker(r?0:-1)),i.$$.dirty[0]&16384|i.$$.dirty[1]&1024|i.$$.dirty[2]&264&&m&&m.setFeatures(Z,b,n),i.$$.dirty[0]&32768|i.$$.dirty[1]&1024|i.$$.dirty[2]&8&&Z&&m&&m.setSelectedMarker(R),i.$$.dirty[2]&80&&r&&(window.clearTimeout(re),t(66,re=void 0)),i.$$.dirty[0]&2|i.$$.dirty[1]&1024&&m){const s=kt(K);m.setReverseMarker(s?[s.decimalLongitude,s.decimalLatitude]:void 0)}i.$$.dirty[2]&64&&Ee("select",{feature:r}),i.$$.dirty[0]&16384&&Ee("pick",{feature:b}),i.$$.dirty[0]&73744&&t(69,l=!!(T!=null&&T.length)&&(Ie||I)),i.$$.dirty[2]&128&&Ee("optionsvisibilitychange",{optionsVisible:l}),i.$$.dirty[0]&8192&&Ee("featureslisted",{features:T}),i.$$.dirty[2]&8&&Ee("featuresmarked",{features:Z}),i.$$.dirty[0]&1&&Ee("reversetoggle",{reverse:ne}),i.$$.dirty[0]&2&&Ee("querychange",{query:K}),i.$$.dirty[0]&1|i.$$.dirty[1]&1024&&m&&m.indicateReverse(ne)},[ne,K,u,L,I,k,W,Q,y,G,ri,oi,li,T,b,R,Ie,Le,ae,de,We,zn,di,Un,fi,Mt,mi,An,f,d,h,w,p,S,z,$,Y,E,g,C,_,m,Me,ce,et,tt,vt,Ce,it,nt,Lt,rt,_t,yt,ot,st,wt,Et,pt,St,Mn,Cn,ui,Wn,On,Z,re,Tt,r,l,n,o,c,Pn,Bn,jn,Fn,Gn,Hn,Zn,qn,Qn,Kn,Vn,Yn,Xn]}let kn=class extends Ne{constructor(e){super(),ke(this,e,Tn,Sn,Se,{ZOOM_DEFAULTS:28,class:2,apiKey:29,bbox:30,clearButtonTitle:3,clearOnBlur:31,clearListOnPick:32,keepListOpen:4,collapsed:5,country:33,debounceSearch:34,enableReverse:6,errorMessage:7,filter:35,flyTo:36,fuzzyMatch:37,language:38,limit:39,reverseGeocodingLimit:40,mapController:41,minLength:42,noResultsMessage:8,placeholder:9,proximity:43,reverseActive:0,reverseButtonTitle:10,searchValue:1,pickedResultStyle:44,showPlaceType:11,showResultsWhileTyping:45,autocompleteTimeout:46,selectFirst:47,flyToSelected:48,markerOnSelected:49,types:50,reverseGeocodingTypes:51,exhaustiveReverseGeocoding:52,excludeTypes:53,reverseGeocodingExcludeTypes:54,zoom:55,apiUrl:56,fetchParameters:57,iconsBaseUrl:12,adjustUrlQuery:58,adjustUrl:59,focus:60,blur:61,setQuery:62,clearList:63,clearMap:64},null,[-1,-1,-1,-1])}get ZOOM_DEFAULTS(){return this.$$.ctx[28]}get focus(){return this.$$.ctx[60]}get blur(){return this.$$.ctx[61]}get setQuery(){return this.$$.ctx[62]}get clearList(){return this.$$.ctx[63]}get clearMap(){return this.$$.ctx[64]}};const Nn=new FinalizationRegistry(i=>{i.$destroy()}),bt=class bt extends EventTarget{constructor({target:t,...n}){super();zt(this,$e);zt(this,ee);vi(this,ee,new kn({target:t,props:n}));for(const r of["select","pick","featureslisted","featuresmarked","response","optionsvisibilitychange","reversetoggle","querychange"])ue(this,ee).$on(r,l=>{Li(this,$e,yi).call(this,r,l.detail)});ue(this,ee).$on("select",r=>{const l=new CustomEvent(r.type,{detail:r.detail});this.dispatchEvent(l)}),Nn.register(this,ue(this,ee))}setOptions(t){ue(this,ee).$set(t)}setQuery(t,n=!0){var r;(r=ue(this,ee))==null||r.setQuery(t,n)}clearMap(){var t;(t=ue(this,ee))==null||t.clearMap()}clearList(){var t;(t=ue(this,ee))==null||t.clearList()}setReverseMode(t){var n;(n=ue(this,ee))==null||n.$set({reverseActive:t})}focus(t){var n;(n=ue(this,ee))==null||n.focus(t)}blur(){var t;(t=ue(this,ee))==null||t.blur()}addEventListener(t,n,r){super.addEventListener(t,n,r)}removeEventListener(t,n,r){super.removeEventListener(t,n,r)}dispatchEvent(t){return super.dispatchEvent(t)}};ee=new WeakMap,$e=new WeakSet,yi=function(t,n){return _i(bt.prototype,this,"dispatchEvent").call(this,new CustomEvent(t,{detail:n}))};let ht=bt;O.GeocodingControl=ht,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})});
width: ${n[6].width/ne}px;
height: ${n[6].height/ne}px;
background-image: url(${n[3]}sprite${dt}.png);
background-position: -${n[6].x/ne}px -${n[6].y/ne}px;
background-size: ${oe.width/ne}px ${oe.height/ne}px;
`)&&a(e,"style",t),r&128&&a(e,"title",n[7])},d(n){n&&A(e)}}}function Gt(i){let e,t;return{c(){e=D("span"),t=Le(i[7]),a(e,"class","secondary svelte-w9y5n9")},m(n,r){P(n,e,r),M(e,t)},p(n,r){r&128&&Ie(t,n[7])},d(n){n&&A(e)}}}function Vi(i){let e,t,n,r,l,c,s,f,u,d=(i[8]?i[0].place_name:i[0].place_name.replace(/,.*/,""))+"",h,L,w=i[2]==="always"||i[2]!=="never"&&!i[0].address&&!i[0].id.startsWith("road.")&&!i[0].id.startsWith("address.")&&!i[0].id.startsWith("postal_code.")&&(!i[0].id.startsWith("poi.")||!i[5])&&!i[8],S,R,T=(i[8]?"":i[0].place_name.replace(/[^,]*,?\s*/,""))+"",p,z,W,Q,x,V;function E(_,m){return m&1&&(t=null),m&1&&(n=null),m&1&&(r=null),m&1&&(l=null),oe&&_[6]?Ki:_[5]?Qi:_[0].address?qi:(t==null&&(t=!!_[0].id.startsWith("road.")),t?Zi:(n==null&&(n=!!_[0].id.startsWith("address.")),n?Hi:(r==null&&(r=!!_[0].id.startsWith("postal_code.")),r?Gi:(l==null&&(l=!!_[0].id.startsWith("poi.")),l?Fi:_[8]?ji:Bi))))}let g=E(i,-1),C=g(i),N=w&&Gt(i);return{c(){e=D("li"),C.c(),c=ee(),s=D("span"),f=D("span"),u=D("span"),h=Le(d),L=ee(),N&&N.c(),S=ee(),R=D("span"),p=Le(T),a(u,"class","primary svelte-w9y5n9"),a(f,"class","svelte-w9y5n9"),a(R,"class","line2 svelte-w9y5n9"),a(s,"class","texts svelte-w9y5n9"),a(e,"tabindex","-1"),a(e,"role","option"),a(e,"aria-selected",z=i[1]==="selected"),a(e,"aria-checked",W=i[1]==="picked"),a(e,"class",Q=Qe(i[1])+" svelte-w9y5n9")},m(_,m){P(_,e,m),C.m(e,null),M(e,c),M(e,s),M(s,f),M(f,u),M(u,h),M(f,L),N&&N.m(f,null),M(s,S),M(s,R),M(R,p),x||(V=[q(e,"mouseenter",i[13]),q(e,"focus",i[15]),q(e,"click",i[16])],x=!0)},p(_,[m]){g===(g=E(_,m))&&C?C.p(_,m):(C.d(1),C=g(_),C&&(C.c(),C.m(e,c))),m&257&&d!==(d=(_[8]?_[0].place_name:_[0].place_name.replace(/,.*/,""))+"")&&Ie(h,d),m&293&&(w=_[2]==="always"||_[2]!=="never"&&!_[0].address&&!_[0].id.startsWith("road.")&&!_[0].id.startsWith("address.")&&!_[0].id.startsWith("postal_code.")&&(!_[0].id.startsWith("poi.")||!_[5])&&!_[8]),w?N?N.p(_,m):(N=Gt(_),N.c(),N.m(f,null)):N&&(N.d(1),N=null),m&257&&T!==(T=(_[8]?"":_[0].place_name.replace(/[^,]*,?\s*/,""))+"")&&Ie(p,T),m&2&&z!==(z=_[1]==="selected")&&a(e,"aria-selected",z),m&2&&W!==(W=_[1]==="picked")&&a(e,"aria-checked",W),m&2&&Q!==(Q=Qe(_[1])+" svelte-w9y5n9")&&a(e,"class",Q)},i:v,o:v,d(_){_&&A(e),C.d(),N&&N.d(),x=!1,me(V)}}}const Ht=devicePixelRatio>1.25,dt=Ht?"@2x":"",ne=Ht?2:1;let oe,Xe;function Yi(i,e,t){let n,r,l,{feature:c}=e,{style:s="default"}=e,{showPlaceType:f}=e,{missingIconsCache:u}=e,{iconsBaseUrl:d}=e;const h=It();let L,w,S,R;function T(){Xe??(Xe=fetch(`${d}sprite${dt}.json`).then(g=>g.json()).then(g=>{oe=g}).catch(()=>{oe=null}))}function p(){w&&u.add(w),z()}function z(){oe!==void 0?W():(T(),Xe==null||Xe.then(W))}function W(){do{if(R--,t(4,L=n==null?void 0:n[R]),t(6,S=L?oe==null?void 0:oe.icons[L]:void 0),S)break;t(5,w=L?d+L.replace(/ /g,"_")+".svg":void 0)}while(R>-1&&(!w||u.has(w)))}function Q(g){Mi.call(this,i,g)}const x=()=>p(),V=()=>h("select",void 0),E=g=>{document.activeElement!==g.target&&h("select",void 0)};return i.$$set=g=>{"feature"in g&&t(0,c=g.feature),"style"in g&&t(1,s=g.style),"showPlaceType"in g&&t(2,f=g.showPlaceType),"missingIconsCache"in g&&t(11,u=g.missingIconsCache),"iconsBaseUrl"in g&&t(3,d=g.iconsBaseUrl)},i.$$.update=()=>{var g,C,N,_,m;i.$$.dirty&1&&t(12,n=(g=c.properties)==null?void 0:g.categories),i.$$.dirty&1&&t(8,r=c.place_type[0]==="reverse"),i.$$.dirty&1&&t(7,l=((N=(C=c.properties)==null?void 0:C.categories)==null?void 0:N.join(", "))??((m=(_=c.properties)==null?void 0:_.place_type_name)==null?void 0:m[0])??c.place_type[0]),i.$$.dirty&4096&&(R=(n==null?void 0:n.length)??0,z())},[c,s,f,d,L,w,S,l,r,h,p,u,n,Q,x,V,E]}class Xi extends Te{constructor(e){super(),pe(this,e,Yi,Vi,Ee,{feature:0,style:1,showPlaceType:2,missingIconsCache:11,iconsBaseUrl:3})}}function Ji(i){let e;return{c(){e=D("div"),e.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>',a(e,"class","svelte-7cmwmc")},m(t,n){P(t,e,n)},p:v,i:v,o:v,d(t){t&&A(e)}}}class xi extends Te{constructor(e){super(),pe(this,e,null,Ji,Ee,{})}}function $i(i){let e,t;return{c(){e=ge("svg"),t=ge("path"),a(t,"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"),a(e,"viewBox","0 0 60.006 21.412"),a(e,"width","14"),a(e,"height","20"),a(e,"class","svelte-en2qvf")},m(n,r){P(n,e,r),M(e,t)},p:v,i:v,o:v,d(n){n&&A(e)}}}class en extends Te{constructor(e){super(),pe(this,e,null,$i,Ee,{})}}function tn(i){let e,t,n;return{c(){e=ge("svg"),t=ge("circle"),n=ge("path"),a(t,"cx","4.789"),a(t,"cy","4.787"),a(t,"r","3.85"),a(t,"class","svelte-1aq105l"),a(n,"d","M12.063 12.063 7.635 7.635"),a(n,"class","svelte-1aq105l"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"width","13"),a(e,"height","13"),a(e,"viewBox","0 0 13 13"),a(e,"class","svelte-1aq105l")},m(r,l){P(r,e,l),M(e,t),M(e,n)},p:v,i:v,o:v,d(r){r&&A(e)}}}class nn extends Te{constructor(e){super(),pe(this,e,null,tn,Ee,{})}}function rn(i,e,t){const n=e[1],r=e[0],l=n-r;return i===n&&t?i:((i-r)%l+l)%l+r}function Zt(i){const e=[...i];return e[2]<e[0]&&(Math.abs((e[0]+e[2]+360)/2)>Math.abs((e[0]-360+e[2])/2)?e[0]-=360:e[2]+=360),e}let Be;async function sn(i,e,t){const n=i==null?void 0:i.getCenterAndZoom();for(const r of e??[])if(!(n&&(r.minZoom!=null&&r.minZoom>n[0]||r.maxZoom!=null&&r.maxZoom<n[0]))){if(r.type==="fixed")return r.coordinates.join(",");e:if(r.type==="client-geolocation"){if(Be&&r.cachedLocationExpiry&&Be.time+r.cachedLocationExpiry>Date.now()){if(!Be.coords)break e;return Be.coords}let l;try{return l=await new Promise((c,s)=>{t.signal.addEventListener("abort",()=>{s(Error("aborted"))}),navigator.geolocation.getCurrentPosition(f=>{c([f.coords.longitude,f.coords.latitude].map(u=>u.toFixed(6)).join(","))},f=>{s(f)},r)}),l}catch{}finally{r.cachedLocationExpiry&&(Be={time:Date.now(),coords:l})}if(t.signal.aborted)return}if(r.type==="server-geolocation")return"ip";if(n&&r.type==="map-center")return n[1].toFixed(6)+","+n[2].toFixed(6)}}const on=/^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(EAST|WEST|[EW])?$/i,qt=/^([+-]?[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,})$/,Qt=/^(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,Kt=/^(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,Vt=/^(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,Yt=/^(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 an(i){if(!["DMS","DM","DD"].includes(i))throw new Error("invalid format specified");if(this.decimalCoordinates&&this.decimalCoordinates.trim()){const e=this.decimalCoordinates.split(",").map(w=>Number(w.trim())),t=Number(e[0]),n=Number(e[1]),r=Math.abs(t),l=Math.abs(n),c=t>0?"N":"S",s=n>0?"E":"W";let f;i=="DD"&&(f=`${r}° ${c}, ${l}° ${s}`);const u=Math.floor(r),d=Math.floor(l),h=(r-u)*60,L=(l-d)*60;if(i=="DM"){let w=Xt(h,3).toFixed(3).padStart(6,"0"),S=Xt(L,3).toFixed(3).padStart(6,"0");w.endsWith(".000")&&S.endsWith(".000")&&(w=w.replace(/\.000$/,""),S=S.replace(/\.000$/,"")),f=`${u}° ${w}' ${c}, ${d}° ${S}' ${s}`}if(i=="DMS"){const w=Math.floor(h),S=Math.floor(L);let R=((h-w)*60).toFixed(1).padStart(4,"0"),T=((L-S)*60).toFixed(1).padStart(4,"0");const p=w.toString().padStart(2,"0"),z=S.toString().padStart(2,"0");R.endsWith(".0")&&T.endsWith(".0")&&(R=R.replace(/\.0$/,""),T=T.replace(/\.0$/,"")),f=`${u}° ${p}' ${R}" ${c}, ${d}° ${z}' ${T}" ${s}`}return f}else throw new Error("no decimal coordinates to convert")}function Xt(i,e){const t=Math.pow(10,e);return Math.round((i+Number.EPSILON)*t)/t}function ft(i,e){e||(e=5),i=i.replace(/\s+/g," ").trim();let t=null,n=null,r="",l="",c=null,s=[],f=!1;if(on.test(i))throw new Error("invalid coordinate value");if(qt.test(i))if(s=qt.exec(i),f=je(s),f)t=Math.abs(s[1])+s[2]/60,Number(s[1])<0&&(t*=-1),n=Math.abs(s[3])+s[4]/60,Number(s[3])<0&&(n*=-1),c="DM";else throw new Error("invalid coordinate format");else if(Qt.test(i))if(s=Qt.exec(i),f=je(s),f){if(t=s[2],n=s[6],t.includes(",")&&(t=t.replace(",",".")),n.includes(",")&&(n=n.replace(",",".")),c="DD",Number(Math.round(t))==Number(t))throw new Error("integer only coordinate provided");if(Number(Math.round(n))==Number(n))throw new Error("integer only coordinate provided");s[1]?(r=s[1],l=s[5]):s[4]&&(r=s[4],l=s[8])}else throw new Error("invalid decimal coordinate format");else if(Kt.test(i))if(s=Kt.exec(i),f=je(s),f)t=Math.abs(parseInt(s[2])),s[4]&&(t+=s[4]/60,c="DM"),s[6]&&(t+=s[6].replace(",",".")/3600,c="DMS"),parseInt(s[2])<0&&(t=-1*t),n=Math.abs(parseInt(s[9])),s[11]&&(n+=s[11]/60),s[13]&&(n+=s[13].replace(",",".")/3600),parseInt(s[9])<0&&(n=-1*n),s[1]?(r=s[1],l=s[8]):s[7]&&(r=s[7],l=s[14]);else throw new Error("invalid DMS coordinates format");else if(Vt.test(i))if(s=Vt.exec(i),f=je(s),f)t=Math.abs(parseInt(s[2])),s[4]&&(t+=s[4]/60,c="DM"),s[6]&&(t+=s[6]/3600,c="DMS"),parseInt(s[2])<0&&(t=-1*t),n=Math.abs(parseInt(s[10])),s[12]&&(n+=s[12]/60),s[14]&&(n+=s[14]/3600),parseInt(s[10])<0&&(n=-1*n),s[1]?(r=s[1],l=s[9]):s[8]&&(r=s[8],l=s[16]);else throw new Error("invalid DMS coordinates format");else if(Yt.test(i)){if(s=Yt.exec(i),f=je(s),s.filter(u=>u).length<=5)throw new Error("invalid coordinates format");if(f)t=Math.abs(parseInt(s[2])),s[4]&&(t+=s[4].replace(",",".")/60,c="DM"),s[6]&&(t+=s[6].replace(",",".")/3600,c="DMS"),parseInt(s[2])<0&&(t=-1*t),n=Math.abs(parseInt(s[10])),s[12]&&(n+=s[12].replace(",",".")/60),s[14]&&(n+=s[14].replace(",",".")/3600),parseInt(s[10])<0&&(n=-1*n),s[1]?(r=s[1],l=s[9]):s[8]&&(r=s[8],l=s[16]);else throw new Error("invalid coordinates format")}if(f){if(Math.abs(n)>=180)throw new Error("invalid longitude value");if(Math.abs(t)>=90)throw new Error("invalid latitude value");if(r&&!l||!r&&l)throw new Error("invalid coordinates value");if(r&&r==l)throw new Error("invalid coordinates format");t.toString().includes(",")&&(t=t.replace(",",".")),n.toString().includes(",")&&(n=n.replace(",","."));let u=/S|SOUTH/i;u.test(r)&&t>0&&(t=-1*t),u=/W|WEST/i,u.test(l)&&n>0&&(n=-1*n);const d=s[0].trim();let h,L;const w=/[,/;\u0020]/g,S=d.match(w);if(S==null){const p=Math.floor(i.length/2);h=d.substring(0,p).trim(),L=d.substring(p).trim()}else{let p;S.length%2==1?p=Math.floor(S.length/2):p=S.length/2-1;let z=0;if(p==0)z=d.indexOf(S[0]),h=d.substring(0,z).trim(),L=d.substring(z+1).trim();else{let W=0,Q=0;for(;W<=p;)z=d.indexOf(S[W],Q),Q=z+1,W++;h=d.substring(0,z).trim(),L=d.substring(z+1).trim()}}const R=h.split(".");if(R.length==2&&R[1]==0&&R[1].length!=2)throw new Error("invalid coordinates format");const T=L.split(".");if(T.length==2&&T[1]==0&&T[1].length!=2)throw new Error("invalid coordinates format");if(/^\d+$/.test(h)||/^\d+$/.test(L))throw new Error("degree only coordinate/s provided");return t=Number(Number(t).toFixed(e)),n=Number(Number(n).toFixed(e)),Object.freeze({verbatimCoordinates:d,verbatimLatitude:h,verbatimLongitude:L,decimalLatitude:t,decimalLongitude:n,decimalCoordinates:`${t},${n}`,originalFormat:c,closeEnough:ln,toCoordinateFormat:an})}else throw new Error("coordinates pattern match failed")}function je(i){if(!isNaN(i[0]))return!1;const e=[...i];if(e.shift(),e.length%2>0)return!1;const t=/^[-+]?\d+([\.,]\d+)?$/,n=/[eastsouthnorthwest]+/i,r=e.length/2;for(let l=0;l<r;l++){const c=e[l],s=e[l+r],f=t.test(c)&&t.test(s),u=n.test(c)&&n.test(s),d=c==s;if(!(c==null&&s==null)){if(c==null||s==null)return!1;if(f||u||d)continue;return!1}}return!0}function Jt(i,e){const t=Math.abs(i-e);return Number(t.toFixed(6))<=1e-5}function ln(i){if(!i)throw new Error("coords must be provided");if(i.includes(",")){const e=i.split(",");if(Number(e[0])==NaN||Number(e[1])==NaN)throw new Error("coords are not valid decimals");return Jt(this.decimalLatitude,Number(e[0]))&&Jt(this.decimalLongitude,e[1])}else throw new Error("coords being tested must be separated by a comma")}const un=Object.freeze({DMS:"DMS",DM:"DM",DD:"DD"});ft.to=un;const cn=[{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"}],dn={decimalLatitude:40.123,decimalLongitude:-74.123},fn=[{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}],mn=[{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},{verbatimCoordinates:"1.23456, 18.33453",verbatimLatitude:"1.23456",verbatimLongitude:"18.33453",decimalLatitude:1.23456,decimalLongitude:18.33453}];function gn(){const i=[];return cn.forEach(e=>{e.decimalLatitude?i.push(e):i.push({...e,...dn})}),[...i,...fn,...mn]}const hn=gn();ft.formats=hn.map(i=>i.verbatimCoordinates);const bn=ft;function xt(i,e,t){const n=i.slice();return n[97]=e[t],n[99]=t,n}function $t(i){let e,t;return e=new xi({}),{c(){_e(e.$$.fragment)},m(n,r){he(e,n,r),t=!0},i(n){t||(F(e.$$.fragment,n),t=!0)},o(n){K(e.$$.fragment,n),t=!1},d(n){be(e,n)}}}function ei(i){let e,t,n,r,l;return t=new en({}),{c(){e=D("button"),_e(t.$$.fragment),a(e,"type","button"),a(e,"title",i[10]),a(e,"class","svelte-bz0zu3"),Me(e,"active",i[0])},m(c,s){P(c,e,s),he(t,e,null),n=!0,r||(l=q(e,"click",i[79]),r=!0)},p(c,s){(!n||s[0]&1024)&&a(e,"title",c[10]),(!n||s[0]&1)&&Me(e,"active",c[0])},i(c){n||(F(t.$$.fragment,c),n=!0)},o(c){K(t.$$.fragment,c),n=!1},d(c){c&&A(e),be(t),r=!1,l()}}}function vn(i){let e,t=[],n=new Map,r,l,c,s=Bt(i[13]);const f=u=>u[97].id+(u[97].address?","+u[97].address:"");for(let u=0;u<s.length;u+=1){let d=xt(i,s,u),h=f(d);n.set(h,t[u]=ti(h,d))}return{c(){e=D("ul");for(let u=0;u<t.length;u+=1)t[u].c();a(e,"class","options svelte-bz0zu3"),a(e,"role","listbox")},m(u,d){P(u,e,d);for(let h=0;h<t.length;h+=1)t[h]&&t[h].m(e,null);r=!0,l||(c=[q(e,"mouseleave",i[27]),q(e,"blur",i[83]),q(e,"keydown",i[23])],l=!0)},p(u,d){d[0]&102823936&&(s=Bt(u[13]),Ve(),t=Ri(t,d,f,1,u,s,n,e,Di,ti,null,xt),Ye())},i(u){if(!r){for(let d=0;d<s.length;d+=1)F(t[d]);r=!0}},o(u){for(let d=0;d<t.length;d+=1)K(t[d]);r=!1},d(u){u&&A(e);for(let d=0;d<t.length;d+=1)t[d].d();l=!1,me(c)}}}function Ln(i){let e,t,n,r,l,c;return t=new Ft({}),{c(){e=D("div"),_e(t.$$.fragment),n=ee(),r=D("div"),l=Le(i[8]),a(r,"class","svelte-bz0zu3"),a(e,"class","no-results svelte-bz0zu3")},m(s,f){P(s,e,f),he(t,e,null),M(e,n),M(e,r),M(r,l),c=!0},p(s,f){(!c||f[0]&256)&&Ie(l,s[8])},i(s){c||(F(t.$$.fragment,s),c=!0)},o(s){K(t.$$.fragment,s),c=!1},d(s){s&&A(e),be(t)}}}function _n(i){let e="",t;return{c(){t=Le(e)},m(n,r){P(n,t,r)},p:v,i:v,o:v,d(n){n&&A(t)}}}function yn(i){let e,t,n,r,l,c,s,f,u,d,h;return t=new Ft({}),f=new jt({}),{c(){e=D("div"),_e(t.$$.fragment),n=ee(),r=D("div"),l=Le(i[7]),c=ee(),s=D("button"),_e(f.$$.fragment),a(r,"class","svelte-bz0zu3"),a(s,"class","svelte-bz0zu3"),a(e,"class","error svelte-bz0zu3")},m(L,w){P(L,e,w),he(t,e,null),M(e,n),M(e,r),M(r,l),M(e,c),M(e,s),he(f,s,null),u=!0,d||(h=q(s,"click",i[80]),d=!0)},p(L,w){(!u||w[0]&128)&&Ie(l,L[7])},i(L){u||(F(t.$$.fragment,L),F(f.$$.fragment,L),u=!0)},o(L){K(t.$$.fragment,L),K(f.$$.fragment,L),u=!1},d(L){L&&A(e),be(t),be(f),d=!1,h()}}}function ti(i,e){var s;let t,n,r;function l(){return e[81](e[99])}function c(){return e[82](e[97])}return n=new Xi({props:{feature:e[97],showPlaceType:e[11],style:e[15]===e[99]?"selected":((s=e[14])==null?void 0:s.id)===e[97].id?"picked":"default",missingIconsCache:e[21],iconsBaseUrl:e[12]}}),n.$on("mouseenter",l),n.$on("select",c),{key:i,first:null,c(){t=Si(),_e(n.$$.fragment),this.first=t},m(f,u){P(f,t,u),he(n,f,u),r=!0},p(f,u){var h;e=f;const d={};u[0]&8192&&(d.feature=e[97]),u[0]&2048&&(d.showPlaceType=e[11]),u[0]&57344&&(d.style=e[15]===e[99]?"selected":((h=e[14])==null?void 0:h.id)===e[97].id?"picked":"default"),u[0]&4096&&(d.iconsBaseUrl=e[12]),n.$set(d)},i(f){r||(F(n.$$.fragment,f),r=!0)},o(f){K(n.$$.fragment,f),r=!1},d(f){f&&A(t),be(n,f)}}}function wn(i){let e,t,n,r,l,c,s,f,u,d,h,L,w,S,R,T,p,z,W,Q,x,V=!1;l=new nn({}),h=new jt({});let E=i[20]&&$t(),g=i[6]==="button"&&ei(i);const C=i[70].default,N=_i(C,i,i[69],null),_=[yn,_n,Ln,vn],m=[];function ke(y,G){var ue,re;return y[19]?0:!y[16]&&!y[4]?1:((ue=y[13])==null?void 0:ue.length)===0?2:(re=y[13])!=null&&re.length&&(y[16]||y[4])?3:-1}return~(T=ke(i))&&(p=m[T]=_[T](i)),{c(){e=ee(),t=D("form"),n=D("div"),r=D("button"),_e(l.$$.fragment),c=ee(),s=D("input"),f=ee(),u=D("div"),d=D("button"),_e(h.$$.fragment),L=ee(),E&&E.c(),w=ee(),g&&g.c(),S=ee(),N&&N.c(),R=ee(),p&&p.c(),a(r,"class","search-button svelte-bz0zu3"),a(r,"type","button"),a(s,"placeholder",i[9]),a(s,"aria-label",i[9]),a(s,"class","svelte-bz0zu3"),a(d,"type","button"),a(d,"title",i[3]),a(d,"class","svelte-bz0zu3"),a(u,"class","clear-button-container svelte-bz0zu3"),Me(u,"displayable",i[1]!==""),a(n,"class","input-group svelte-bz0zu3"),a(t,"class",z=Qe(i[2])+" svelte-bz0zu3"),Me(t,"can-collapse",i[5]&&i[1]==="")},m(y,G){P(y,e,G),P(y,t,G),M(t,n),M(n,r),he(l,r,null),M(n,c),M(n,s),i[72](s),Rt(s,i[1]),M(n,f),M(n,u),M(u,d),he(h,d,null),M(u,L),E&&E.m(u,null),M(n,w),g&&g.m(n,null),M(n,S),N&&N.m(n,null),M(t,R),~T&&m[T].m(t,null),W=!0,Q||(x=[q(r,"click",i[71]),q(s,"input",i[73]),q(s,"focus",i[74]),q(s,"blur",i[75]),q(s,"click",i[76]),q(s,"keydown",i[23]),q(s,"input",i[24]),q(s,"change",i[77]),q(d,"click",i[78]),q(t,"submit",pi(i[22]))],Q=!0)},p(y,G){(!W||G[0]&512)&&a(s,"placeholder",y[9]),(!W||G[0]&512)&&a(s,"aria-label",y[9]),G[0]&2&&s.value!==y[1]&&Rt(s,y[1]),(!W||G[0]&8)&&a(d,"title",y[3]),y[20]?E?G[0]&1048576&&F(E,1):(E=$t(),E.c(),F(E,1),E.m(u,null)):E&&(Ve(),K(E,1,1,()=>{E=null}),Ye()),(!W||G[0]&2)&&Me(u,"displayable",y[1]!==""),y[6]==="button"?g?(g.p(y,G),G[0]&64&&F(g,1)):(g=ei(y),g.c(),F(g,1),g.m(n,S)):g&&(Ve(),K(g,1,1,()=>{g=null}),Ye()),N&&N.p&&(!W||G[2]&128)&&wi(N,C,y,y[69],W?yi(C,y[69],G,null):Ei(y[69]),null);let ue=T;T=ke(y),T===ue?~T&&m[T].p(y,G):(p&&(Ve(),K(m[ue],1,1,()=>{m[ue]=null}),Ye()),~T?(p=m[T],p?p.p(y,G):(p=m[T]=_[T](y),p.c()),F(p,1),p.m(t,null)):p=null),(!W||G[0]&4&&z!==(z=Qe(y[2])+" svelte-bz0zu3"))&&a(t,"class",z),(!W||G[0]&38)&&Me(t,"can-collapse",y[5]&&y[1]==="")},i(y){W||(F(V),F(l.$$.fragment,y),F(h.$$.fragment,y),F(E),F(g),F(N,y),F(p),W=!0)},o(y){K(V),K(l.$$.fragment,y),K(h.$$.fragment,y),K(E),K(g),K(N,y),K(p),W=!1},d(y){y&&(A(e),A(t)),be(l),i[72](null),be(h),E&&E.d(),g&&g.d(),N&&N.d(y),~T&&m[T].d(),Q=!1,me(x)}}}function En(i,e,t){let n,r,l,{$$slots:c={},$$scope:s}=e;const f={continental_marine:4,country:4,major_landform:8,region:5,subregion:6,county:7,joint_municipality:8,joint_submunicipality:9,municipality:10,municipal_district:11,locality:12,neighbourhood:13,place:14,postal_code:14,road:16,poi:17,address:18,"poi.peak":15,"poi.shop":18,"poi.cafe":18,"poi.restaurant":18,"poi.aerodrome":13};let{class:u=void 0}=e,{apiKey:d}=e,{bbox:h=void 0}=e,{clearButtonTitle:L="clear"}=e,{clearOnBlur:w=!1}=e,{clearListOnPick:S=!1}=e,{keepListOpen:R=!1}=e,{collapsed:T=!1}=e,{country:p=void 0}=e,{debounceSearch:z=200}=e,{enableReverse:W="never"}=e,{errorMessage:Q="Something went wrong…"}=e,{filter:x=()=>!0}=e,{flyTo:V=!0}=e,{fuzzyMatch:E=!0}=e,{language:g=void 0}=e,{limit:C=void 0}=e;const N=41415112612;let{reverseGeocodingLimit:_=N}=e,{mapController:m=void 0}=e,{minLength:ke=2}=e,{noResultsMessage:y="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!"}=e,{placeholder:G="Search"}=e,{proximity:ue=[{type:"server-geolocation"}]}=e,{reverseActive:re=W==="always"}=e,{reverseButtonTitle:ii="toggle reverse geocoding"}=e,{searchValue:Y=""}=e,{pickedResultStyle:xe="full-geometry"}=e,{showPlaceType:ni="if-needed"}=e,{showResultsWhileTyping:$e=!0}=e,{selectFirst:ze=!0}=e,{flyToSelected:et=!1}=e,{markerOnSelected:tt=!0}=e,{types:ht=void 0}=e;const ri=[];let{reverseGeocodingTypes:it=ri}=e,{exhaustiveReverseGeocoding:bt=!1}=e,{excludeTypes:vt=!1}=e;const si=void 0;let{reverseGeocodingExcludeTypes:nt=si}=e,{zoom:rt=f}=e,{apiUrl:Lt="https://api.maptiler.com/geocoding"}=e,{fetchParameters:_t={}}=e,{iconsBaseUrl:oi="https://cdn.maptiler.com/maptiler-geocoding-control/v2.1.3/icons/"}=e,{adjustUrlQuery:yt=()=>{}}=e,{adjustUrl:wt=()=>{}}=e;function Tn(o){ae.focus(o)}function kn(){ae.blur()}function ai(o,B=!0,H=!1){t(1,Y=o),B?(t(15,U=-1),ui()):(ci(void 0,!H,H),setTimeout(()=>{ae.focus(),ae.select()}))}function Nn(){t(13,k=void 0),t(14,b=void 0),t(15,U=-1)}function Mn(){t(64,Z=[]),t(14,b=void 0)}let k,Z,b,li="",ae,U=-1,ce,st=[],Ne,De,Re,Et,ve=!1;const Cn=new Set,ye=It();Ni(()=>{m&&(m.setEventHandler(void 0),m.indicateReverse(!1),m.setSelectedMarker(-1),m.setFeatures(void 0,void 0,!1))});function ui(o){if(t(17,ve=!1),De&&(clearTimeout(De),De=void 0),U>-1&&k)t(14,b=k[U]),t(1,Y=b.place_type[0]==="reverse"?b.place_name:b.place_name.replace(/,.*/,"")),t(19,ce=void 0),t(64,Z=void 0),t(15,U=-1);else if(Y){const B=o||!St(Y);pt(Y,{exact:!0}).then(()=>{t(64,Z=k),t(14,b=void 0),B&&Wn()}).catch(H=>t(19,ce=H))}}function St(o){try{return bn(o,6)}catch{return!1}}async function pt(o,{byId:B=!1,exact:H=!1}={}){var ie,de,we;t(19,ce=void 0),Ne==null||Ne.abort();const te=new AbortController;t(20,Ne=te);try{const I=St(o),Ge=new URL(Lt+"/"+encodeURIComponent(I?I.decimalLongitude+","+I.decimalLatitude:o)+".json"),se=Ge.searchParams;g!==void 0&&se.set("language",Array.isArray(g)?g.join(","):g??"");const[Nt]=(m==null?void 0:m.getCenterAndZoom())??[];let fe=(ie=!I||it===ri?ht:it)==null?void 0:ie.map(J=>typeof J=="string"?J:Nt===void 0||(J[0]??0)<=Nt&&Nt<(J[1]??1/0)?J[2]:void 0).filter(J=>J!==void 0);fe&&(fe=[...new Set(fe)],se.set("types",fe.join(",")));const fi=!I||nt===si?vt:nt;if(fi&&se.set("excludeTypes",String(fi)),h&&se.set("bbox",h.map(J=>J.toFixed(6)).join(",")),p&&se.set("country",Array.isArray(p)?p.join(","):p),!B&&!I){const J=await sn(m,ue,te);J&&se.set("proximity",J),(H||!$e)&&se.set("autocomplete","false"),se.set("fuzzyMatch",String(E))}const He=_===N?C:_;He!==void 0&&He>1&&(fe==null?void 0:fe.length)!==1&&console.warn("For reverse geocoding when limit > 1 then types must contain single value."),I?(He===1||He!==void 0&&(bt||(fe==null?void 0:fe.length)===1))&&se.set("limit",String(He)):C!==void 0&&se.set("limit",String(C)),se.set("key",d),yt(se),wt(Ge);const Kn=Ge.searchParams.get("types")===""&&Ge.searchParams.get("excludeTypes")!=="true",ot=Ge.toString();if(ot===li){B?(S&&t(13,k=void 0),t(14,b=st[0])):(t(13,k=st),((de=k[U])==null?void 0:de.id)!==(r==null?void 0:r.id)&&t(15,U=-1));return}li=ot;let Ze;if(Kn)Ze={type:"FeatureCollection",features:[]};else{const J=await fetch(ot,{signal:te.signal,..._t});if(!J.ok)throw new Error(await J.text());Ze=await J.json()}ye("response",{url:ot,featureCollection:Ze}),B?(S&&t(13,k=void 0),t(14,b=Ze.features[0]),st=[b]):(t(13,k=Ze.features.filter(x)),I&&k.unshift({type:"Feature",properties:{},id:"reverse_"+I.decimalLongitude+"_"+I.decimalLatitude,text:I.decimalLatitude+", "+I.decimalLongitude,place_name:I.decimalLatitude+", "+I.decimalLongitude,place_type:["reverse"],center:[I.decimalLongitude,I.decimalLatitude],bbox:[I.decimalLongitude,I.decimalLatitude,I.decimalLongitude,I.decimalLatitude],geometry:{type:"Point",coordinates:[I.decimalLongitude,I.decimalLatitude]}}),st=k,((we=k[U])==null?void 0:we.id)!==(r==null?void 0:r.id)&&t(15,U=-1),I&&ae.focus())}catch(I){if(I&&typeof I=="object"&&"name"in I&&I.name==="AbortError")return;throw I}finally{te===Ne&&t(20,Ne=void 0)}}function Wn(){var te;if(!(Z!=null&&Z.length)||!V)return;const o=[180,90,-180,-90],B=!Z.some(ie=>!ie.matching_text);let H;for(const ie of Z){const de=Fe(ie);if(H=H===void 0?de:de===void 0?H:Math.max(H,de),B||!ie.matching_text)for(const we of[0,1,2,3])o[we]=Math[we<2?"min":"max"](o[we],((te=ie.bbox)==null?void 0:te[we])??ie.center[we%2])}m&&Z.length>0&&(b&&o[0]===o[2]&&o[1]===o[3]?m.flyTo(b.center,Fe(b)):m.fitBounds(Zt(o),50,H))}function Tt(){!b||!m||(!b.bbox||b.bbox[0]===b.bbox[2]&&b.bbox[1]===b.bbox[3]?m.flyTo(b.center,Fe(b)):m.fitBounds(Zt(b.bbox),50,Fe(b)))}function Fe(o){var H;if(!o.bbox||o.bbox[0]!==o.bbox[2]&&o.bbox[1]!==o.bbox[3])return;const B=o.id.replace(/\..*/,"");return(Array.isArray((H=o.properties)==null?void 0:H.categories)?o.properties.categories.reduce((te,ie)=>{const de=rt[B+"."+ie];return te===void 0?de:de===void 0?te:Math.max(te,de)},void 0):void 0)??rt[B]}function On(o){t(0,re=W==="always"),t(13,k=void 0),t(14,b=void 0),t(15,U=-1),ai(o[1].toFixed(6)+", "+rn(o[0],[-180,180],!0).toFixed(6),!1,!0)}function zn(o){if(!k)return;let B=o.key==="ArrowDown"?1:o.key==="ArrowUp"?-1:0;B&&(ae.focus(),t(17,ve=!0),o.preventDefault(),b&&U===-1&&t(15,U=k.findIndex(H=>H.id===(b==null?void 0:b.id))),U===(b||ze?0:-1)&&B===-1&&t(15,U=k.length),t(15,U+=B),U>=k.length&&t(15,U=-1),U<0&&(b||ze)&&t(15,U=0))}function ci(o,B=!0,H=!1){if(t(19,ce=void 0),t(14,b=void 0),t(17,ve=!0),$e||H){if(De&&clearTimeout(De),Y.length<ke)return;const te=Y;De=window.setTimeout(()=>{pt(te).catch(ie=>t(19,ce=ie))},B?z:0)}else t(13,k=void 0),t(19,ce=void 0)}function kt(o){b&&(b==null?void 0:b.id)===(o==null?void 0:o.id)?Tt():(t(14,b=o),t(1,Y=o.place_name))}function di(o){t(15,U=o)}function Dn(){(!ze||b)&&t(15,U=-1),et&&Tt()}const Rn=()=>ae.focus();function Un(o){at[o?"unshift":"push"](()=>{ae=o,t(18,ae)})}function In(){Y=this.value,t(1,Y),t(17,ve),t(31,w),t(16,Re)}const An=()=>t(17,ve=!0),Pn=()=>t(17,ve=!1),Bn=()=>t(17,ve=!0),jn=()=>t(14,b=void 0),Fn=()=>{t(1,Y=""),t(14,b=void 0),ae.focus()},Gn=()=>t(0,re=!re),Hn=()=>t(19,ce=void 0),Zn=o=>di(o),qn=o=>kt(o),Qn=()=>{};return i.$$set=o=>{"class"in o&&t(2,u=o.class),"apiKey"in o&&t(29,d=o.apiKey),"bbox"in o&&t(30,h=o.bbox),"clearButtonTitle"in o&&t(3,L=o.clearButtonTitle),"clearOnBlur"in o&&t(31,w=o.clearOnBlur),"clearListOnPick"in o&&t(32,S=o.clearListOnPick),"keepListOpen"in o&&t(4,R=o.keepListOpen),"collapsed"in o&&t(5,T=o.collapsed),"country"in o&&t(33,p=o.country),"debounceSearch"in o&&t(34,z=o.debounceSearch),"enableReverse"in o&&t(6,W=o.enableReverse),"errorMessage"in o&&t(7,Q=o.errorMessage),"filter"in o&&t(35,x=o.filter),"flyTo"in o&&t(36,V=o.flyTo),"fuzzyMatch"in o&&t(37,E=o.fuzzyMatch),"language"in o&&t(38,g=o.language),"limit"in o&&t(39,C=o.limit),"reverseGeocodingLimit"in o&&t(40,_=o.reverseGeocodingLimit),"mapController"in o&&t(41,m=o.mapController),"minLength"in o&&t(42,ke=o.minLength),"noResultsMessage"in o&&t(8,y=o.noResultsMessage),"placeholder"in o&&t(9,G=o.placeholder),"proximity"in o&&t(43,ue=o.proximity),"reverseActive"in o&&t(0,re=o.reverseActive),"reverseButtonTitle"in o&&t(10,ii=o.reverseButtonTitle),"searchValue"in o&&t(1,Y=o.searchValue),"pickedResultStyle"in o&&t(44,xe=o.pickedResultStyle),"showPlaceType"in o&&t(11,ni=o.showPlaceType),"showResultsWhileTyping"in o&&t(45,$e=o.showResultsWhileTyping),"selectFirst"in o&&t(46,ze=o.selectFirst),"flyToSelected"in o&&t(47,et=o.flyToSelected),"markerOnSelected"in o&&t(48,tt=o.markerOnSelected),"types"in o&&t(49,ht=o.types),"reverseGeocodingTypes"in o&&t(50,it=o.reverseGeocodingTypes),"exhaustiveReverseGeocoding"in o&&t(51,bt=o.exhaustiveReverseGeocoding),"excludeTypes"in o&&t(52,vt=o.excludeTypes),"reverseGeocodingExcludeTypes"in o&&t(53,nt=o.reverseGeocodingExcludeTypes),"zoom"in o&&t(54,rt=o.zoom),"apiUrl"in o&&t(55,Lt=o.apiUrl),"fetchParameters"in o&&t(56,_t=o.fetchParameters),"iconsBaseUrl"in o&&t(12,oi=o.iconsBaseUrl),"adjustUrlQuery"in o&&t(57,yt=o.adjustUrlQuery),"adjustUrl"in o&&t(58,wt=o.adjustUrl),"$$scope"in o&&t(69,s=o.$$scope)},i.$$.update=()=>{if(i.$$.dirty[0]&64&&t(0,re=W==="always"),i.$$.dirty[0]&16384|i.$$.dirty[1]&8192&&xe!=="marker-only"&&b&&!b.address&&b.geometry.type==="Point"&&b.place_type[0]!=="reverse"&&pt(b.id,{byId:!0}).catch(o=>t(19,ce=o)),i.$$.dirty[0]&16384|i.$$.dirty[1]&1058|i.$$.dirty[2]&8&&(m&&b&&b.id!==Et&&V&&(Tt(),S&&t(13,k=void 0),t(64,Z=void 0),t(15,U=-1)),t(65,Et=b==null?void 0:b.id)),i.$$.dirty[0]&196608|i.$$.dirty[1]&1&&setTimeout(()=>{t(16,Re=ve),w&&!Re&&t(1,Y="")}),i.$$.dirty[0]&8194|i.$$.dirty[1]&2048&&Y.length<ke&&(t(13,k=void 0),t(19,ce=void 0),t(64,Z=k)),i.$$.dirty[0]&57344|i.$$.dirty[1]&32768&&ze&&k!=null&&k.length&&U==-1&&!b&&t(15,U=0),i.$$.dirty[0]&8192|i.$$.dirty[2]&4&&Z!==k&&t(64,Z=void 0),i.$$.dirty[0]&73729|i.$$.dirty[1]&1024|i.$$.dirty[2]&4&&m&&m.setEventHandler(o=>{switch(o.type){case"mapClick":re&&On(o.coordinates);break;case"markerClick":{const B=k==null?void 0:k.find(H=>H.id===o.id);B&&kt(B)}break;case"markerMouseEnter":Z&&t(15,U=Re?(k==null?void 0:k.findIndex(B=>B.id===o.id))??-1:-1);break;case"markerMouseLeave":Z&&t(15,U=-1);break}}),i.$$.dirty[0]&40960&&t(66,r=k==null?void 0:k[U]),i.$$.dirty[1]&66592|i.$$.dirty[2]&16&&m&&r&&V&&et&&m.flyTo(r.center,Fe(r)),i.$$.dirty[1]&8192&&t(68,n=xe==="full-geometry-including-polygon-center-marker"),i.$$.dirty[1]&132096|i.$$.dirty[2]&64&&(tt||m==null||m.setFeatures(void 0,void 0,n)),i.$$.dirty[0]&16384|i.$$.dirty[1]&132096|i.$$.dirty[2]&84&&m&&tt&&!Z&&(m.setFeatures(r?[r]:void 0,b,n),m.setSelectedMarker(r?0:-1)),i.$$.dirty[0]&16384|i.$$.dirty[1]&1024|i.$$.dirty[2]&68&&m&&m.setFeatures(Z,b,n),i.$$.dirty[0]&32768|i.$$.dirty[1]&1024|i.$$.dirty[2]&4&&Z&&m&&m.setSelectedMarker(U),i.$$.dirty[0]&2|i.$$.dirty[1]&1024&&m){const o=St(Y);m.setReverseMarker(o?[o.decimalLongitude,o.decimalLatitude]:void 0)}i.$$.dirty[2]&16&&ye("select",{feature:r}),i.$$.dirty[0]&16384&&ye("pick",{feature:b}),i.$$.dirty[0]&73744&&t(67,l=!!(k!=null&&k.length)&&(Re||R)),i.$$.dirty[2]&32&&ye("optionsvisibilitychange",{optionsVisible:l}),i.$$.dirty[0]&8192&&ye("featureslisted",{features:k}),i.$$.dirty[2]&4&&ye("featuresmarked",{features:Z}),i.$$.dirty[0]&1&&ye("reversetoggle",{reverse:re}),i.$$.dirty[0]&2&&ye("querychange",{query:Y}),i.$$.dirty[0]&1|i.$$.dirty[1]&1024&&m&&m.indicateReverse(re)},[re,Y,u,L,R,T,W,Q,y,G,ii,ni,oi,k,b,U,Re,ve,ae,ce,Ne,Cn,ui,zn,ci,kt,di,Dn,f,d,h,w,S,p,z,x,V,E,g,C,_,m,ke,ue,xe,$e,ze,et,tt,ht,it,bt,vt,nt,rt,Lt,_t,yt,wt,Tn,kn,ai,Nn,Mn,Z,Et,r,l,n,s,c,Rn,Un,In,An,Pn,Bn,jn,Fn,Gn,Hn,Zn,qn,Qn]}let Sn=class extends Te{constructor(e){super(),pe(this,e,En,wn,Ee,{ZOOM_DEFAULTS:28,class:2,apiKey:29,bbox:30,clearButtonTitle:3,clearOnBlur:31,clearListOnPick:32,keepListOpen:4,collapsed:5,country:33,debounceSearch:34,enableReverse:6,errorMessage:7,filter:35,flyTo:36,fuzzyMatch:37,language:38,limit:39,reverseGeocodingLimit:40,mapController:41,minLength:42,noResultsMessage:8,placeholder:9,proximity:43,reverseActive:0,reverseButtonTitle:10,searchValue:1,pickedResultStyle:44,showPlaceType:11,showResultsWhileTyping:45,selectFirst:46,flyToSelected:47,markerOnSelected:48,types:49,reverseGeocodingTypes:50,exhaustiveReverseGeocoding:51,excludeTypes:52,reverseGeocodingExcludeTypes:53,zoom:54,apiUrl:55,fetchParameters:56,iconsBaseUrl:12,adjustUrlQuery:57,adjustUrl:58,focus:59,blur:60,setQuery:61,clearList:62,clearMap:63},null,[-1,-1,-1,-1])}get ZOOM_DEFAULTS(){return this.$$.ctx[28]}get focus(){return this.$$.ctx[59]}get blur(){return this.$$.ctx[60]}get setQuery(){return this.$$.ctx[61]}get clearList(){return this.$$.ctx[62]}get clearMap(){return this.$$.ctx[63]}};const pn=new FinalizationRegistry(i=>{i.$destroy()}),gt=class gt extends EventTarget{constructor({target:t,...n}){super();Wt(this,Je);Wt(this,$);gi(this,$,new Sn({target:t,props:n}));for(const r of["select","pick","featureslisted","featuresmarked","response","optionsvisibilitychange","reversetoggle","querychange"])le(this,$).$on(r,l=>{hi(this,Je,vi).call(this,r,l.detail)});le(this,$).$on("select",r=>{const l=new CustomEvent(r.type,{detail:r.detail});this.dispatchEvent(l)}),pn.register(this,le(this,$))}setOptions(t){le(this,$).$set(t)}setQuery(t,n=!0){var r;(r=le(this,$))==null||r.setQuery(t,n)}clearMap(){var t;(t=le(this,$))==null||t.clearMap()}clearList(){var t;(t=le(this,$))==null||t.clearList()}setReverseMode(t){var n;(n=le(this,$))==null||n.$set({reverseActive:t})}focus(t){var n;(n=le(this,$))==null||n.focus(t)}blur(){var t;(t=le(this,$))==null||t.blur()}addEventListener(t,n,r){super.addEventListener(t,n,r)}removeEventListener(t,n,r){super.removeEventListener(t,n,r)}dispatchEvent(t){return super.dispatchEvent(t)}};$=new WeakMap,Je=new WeakSet,vi=function(t,n){return bi(gt.prototype,this,"dispatchEvent").call(this,new CustomEvent(t,{detail:n}))};let mt=gt;O.GeocodingControl=mt,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})});
//# sourceMappingURL=vanilla.umd.js.map

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc