@maptiler/geocoding-control 2.0.1 → 2.1.0-rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/MapLibreBasedGeocodingControl.d.ts +1037 -626
  2. package/icons/10pin.svg +4 -1
  3. package/icons/9pin.svg +4 -1
  4. package/icons/alcohol.svg +1 -1
  5. package/icons/alpine_hut.svg +1 -1
  6. package/icons/apartment.svg +4 -1
  7. package/icons/area.svg +1 -5
  8. package/icons/artwork.svg +4 -1
  9. package/icons/beauty.svg +14 -1
  10. package/icons/bicycle_repair_station.svg +18 -1
  11. package/icons/biergarten.svg +4 -1
  12. package/icons/books.svg +14 -1
  13. package/icons/bowl.svg +4 -1
  14. package/icons/bowling_alley.svg +4 -1
  15. package/icons/bus_station.svg +1 -1
  16. package/icons/camping.svg +1 -1
  17. package/icons/car_repair.svg +14 -1
  18. package/icons/car_wash.svg +19 -1
  19. package/icons/cave_entrance.svg +15 -1
  20. package/icons/chalet.svg +1 -1
  21. package/icons/chemist.svg +14 -1
  22. package/icons/church.svg +4 -1
  23. package/icons/community_centre.svg +20 -1
  24. package/icons/firestation.svg +4 -1
  25. package/icons/guest_house.svg +29 -8
  26. package/icons/hotel.svg +1 -1
  27. package/icons/housenumber.svg +19 -14
  28. package/icons/hut.svg +1 -4
  29. package/icons/medical_supply.svg +20 -1
  30. package/icons/memorial.svg +14 -1
  31. package/icons/motel.svg +19 -1
  32. package/icons/post.svg +1 -1
  33. package/icons/post_office.svg +1 -1
  34. package/icons/postal_code.svg +1 -23
  35. package/icons/public_bookcase.svg +14 -1
  36. package/icons/public_building.svg +4 -1
  37. package/icons/shintoist.svg +1 -1
  38. package/icons/street.svg +11 -14
  39. package/icons/vehicle_inspection.svg +18 -1
  40. package/icons/wilderness_hut.svg +1 -1
  41. package/leaflet-controller.js +32 -31
  42. package/leaflet-controller.js.map +1 -1
  43. package/leaflet-controller.umd.js +1 -1
  44. package/leaflet-controller.umd.js.map +1 -1
  45. package/leaflet.d.ts +32 -1
  46. package/leaflet.js +1578 -1402
  47. package/leaflet.js.map +1 -1
  48. package/leaflet.umd.js +3 -3
  49. package/leaflet.umd.js.map +1 -1
  50. package/maplibregl-controller.js +5 -5
  51. package/maplibregl-controller.js.map +1 -1
  52. package/maplibregl-controller.umd.js +1 -1
  53. package/maplibregl-controller.umd.js.map +1 -1
  54. package/maplibregl.d.ts +527 -626
  55. package/maplibregl.js +1709 -1538
  56. package/maplibregl.js.map +1 -1
  57. package/maplibregl.umd.js +3 -3
  58. package/maplibregl.umd.js.map +1 -1
  59. package/maptilersdk.d.ts +527 -626
  60. package/maptilersdk.js +1705 -1534
  61. package/maptilersdk.js.map +1 -1
  62. package/maptilersdk.umd.js +3 -3
  63. package/maptilersdk.umd.js.map +1 -1
  64. package/openlayers-controller.js +5 -4
  65. package/openlayers-controller.js.map +1 -1
  66. package/openlayers-controller.umd.js +1 -1
  67. package/openlayers-controller.umd.js.map +1 -1
  68. package/openlayers.d.ts +32 -1
  69. package/openlayers.js +2009 -1833
  70. package/openlayers.js.map +1 -1
  71. package/openlayers.umd.js +3 -3
  72. package/openlayers.umd.js.map +1 -1
  73. package/package.json +23 -23
  74. package/react.d.ts +27 -1
  75. package/react.js +1284 -1128
  76. package/react.js.map +1 -1
  77. package/react.umd.js +1 -1
  78. package/react.umd.js.map +1 -1
  79. package/style.css +1 -1
  80. package/svelte/FeatureItem.svelte +59 -12
  81. package/svelte/FeatureItem.svelte.d.ts +2 -2
  82. package/svelte/GeocodingControl.svelte +140 -71
  83. package/svelte/GeocodingControl.svelte.d.ts +10 -3
  84. package/svelte/MapLibreBasedGeocodingControl.d.ts +1037 -626
  85. package/svelte/MapLibreBasedGeocodingControl.js +36 -6
  86. package/svelte/leaflet-controller.js +3 -3
  87. package/svelte/leaflet.d.ts +32 -1
  88. package/svelte/leaflet.js +35 -2
  89. package/svelte/maplibregl-controller.js +3 -3
  90. package/svelte/maplibregl.d.ts +527 -626
  91. package/svelte/maptilersdk.d.ts +527 -626
  92. package/svelte/openlayers-controller.js +4 -4
  93. package/svelte/openlayers.d.ts +32 -1
  94. package/svelte/openlayers.js +36 -3
  95. package/svelte/react.d.ts +27 -1
  96. package/svelte/react.js +16 -4
  97. package/svelte/types.d.ts +23 -1
  98. package/svelte/vanilla.d.ts +32 -1
  99. package/svelte/vanilla.js +35 -2
  100. package/types.d.ts +23 -1
  101. package/vanilla.d.ts +32 -1
  102. package/vanilla.js +1153 -978
  103. package/vanilla.js.map +1 -1
  104. package/vanilla.umd.js +1 -1
  105. package/vanilla.umd.js.map +1 -1
  106. package/icons/aerodrome.12.svg +0 -1
  107. package/icons/bus_stop.12.svg +0 -1
  108. package/icons/elevator.12.svg +0 -1
  109. /package/icons/{helipad.16.svg → helipad.svg} +0 -0
  110. /package/icons/{traffic_light.13.svg → traffic_light.svg} +0 -0
package/vanilla.umd.js CHANGED
@@ -1,2 +1,2 @@
1
- (function(C,v){typeof exports=="object"&&typeof module<"u"?v(exports):typeof define=="function"&&define.amd?define(["exports"],v):(C=typeof globalThis<"u"?globalThis:C||self,v(C.maptilerGeocoder={}))})(this,function(C){"use strict";var wn=Object.defineProperty;var En=Object.getPrototypeOf;var Sn=Reflect.get;var Zt=C=>{throw TypeError(C)};var pn=(C,v,j)=>v in C?wn(C,v,{enumerable:!0,configurable:!0,writable:!0,value:j}):C[v]=j;var dt=(C,v,j)=>pn(C,typeof v!="symbol"?v+"":v,j),ft=(C,v,j)=>v.has(C)||Zt("Cannot "+j);var ne=(C,v,j)=>(ft(C,v,"read from private field"),j?j.call(C):v.get(C)),mt=(C,v,j)=>v.has(C)?Zt("Cannot add the same private member more than once"):v instanceof WeakSet?v.add(C):v.set(C,j),Gt=(C,v,j,Te)=>(ft(C,v,"write to private field"),Te?Te.call(C,j):v.set(C,j),j),qt=(C,v,j)=>(ft(C,v,"access private method"),j);var Qt=(C,v,j)=>Sn(En(C),j,v);var Y,Fe,Kt;function v(){}function j(i,e){for(const t in e)i[t]=e[t];return i}function Te(i){return i()}function gt(){return Object.create(null)}function re(i){i.forEach(Te)}function ht(i){return typeof i=="function"}function me(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let Ue;function x(i,e){return i===e?!0:(Ue||(Ue=document.createElement("a")),Ue.href=e,i===Ue.href)}function Vt(i){return Object.keys(i).length===0}function xt(i,e,t,n){if(i){const r=bt(i,e,t,n);return i[0](r)}}function bt(i,e,t,n){return i[1]&&n?j(t.ctx.slice(),i[1](n(e))):t.ctx}function Jt(i,e,t,n){if(i[2]&&n){const r=i[2](n(t));if(e.dirty===void 0)return r;if(typeof r=="object"){const l=[],d=Math.max(e.dirty.length,r.length);for(let o=0;o<d;o+=1)l[o]=e.dirty[o]|r[o];return l}return e.dirty|r}return e.dirty}function Xt(i,e,t,n,r,l){if(r){const d=bt(e,t,n,l);i.p(d,r)}}function Yt(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 vt(i){return i??""}function N(i,e){i.appendChild(e)}function A(i,e,t){i.insertBefore(e,t||null)}function U(i){i.parentNode&&i.parentNode.removeChild(i)}function z(i){return document.createElement(i)}function oe(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function ue(i){return document.createTextNode(i)}function X(){return ue(" ")}function $t(){return ue("")}function J(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ei(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 Me(i,e){e=""+e,i.data!==e&&(i.data=e)}function Lt(i,e){i.value=e??""}function ce(i,e,t){i.classList.toggle(e,!!t)}function ii(i,e,{bubbles:t=!1,cancelable:n=!1}={}){return new CustomEvent(i,{detail:e,bubbles:t,cancelable:n})}let Ce;function We(i){Ce=i}function _t(){if(!Ce)throw new Error("Function called outside component initialization");return Ce}function ni(i){_t().$$.on_destroy.push(i)}function ri(){const i=_t();return(e,t,{cancelable:n=!1}={})=>{const r=i.$$.callbacks[e];if(r){const l=ii(e,t,{cancelable:n});return r.slice().forEach(d=>{d.call(i,l)}),!l.defaultPrevented}return!0}}function yt(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const ye=[],Qe=[];let we=[];const wt=[],oi=Promise.resolve();let Ke=!1;function si(){Ke||(Ke=!0,oi.then(Et))}function Ve(i){we.push(i)}const xe=new Set;let Ee=0;function Et(){if(Ee!==0)return;const i=Ce;do{try{for(;Ee<ye.length;){const e=ye[Ee];Ee++,We(e),ai(e.$$)}}catch(e){throw ye.length=0,Ee=0,e}for(We(null),ye.length=0,Ee=0;Qe.length;)Qe.pop()();for(let e=0;e<we.length;e+=1){const t=we[e];xe.has(t)||(xe.add(t),t())}we.length=0}while(ye.length);for(;wt.length;)wt.pop()();Ke=!1,xe.clear(),We(i)}function ai(i){if(i.fragment!==null){i.update(),re(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Ve)}}function li(i){const e=[],t=[];we.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),we=e}const Ie=new Set;let ge;function Ae(){ge={r:0,c:[],p:ge}}function Be(){ge.r||re(ge.c),ge=ge.p}function P(i,e){i&&i.i&&(Ie.delete(i),i.i(e))}function K(i,e,t,n){if(i&&i.o){if(Ie.has(i))return;Ie.add(i),ge.c.push(()=>{Ie.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function St(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function ui(i,e){K(i,1,1,()=>{e.delete(i.key)})}function ci(i,e,t,n,r,l,d,o,m,u,f,L){let b=i.length,w=l.length,y=b;const R={};for(;y--;)R[i[y].key]=y;const _=[],S=new Map,O=new Map,W=[];for(y=w;y--;){const c=L(r,l,y),g=t(c);let M=d.get(g);M?W.push(()=>M.p(c,e)):(M=u(g,c),M.c()),S.set(g,_[y]=M),g in R&&O.set(g,Math.abs(y-R[g]))}const k=new Set,H=new Set;function D(c){P(c,1),c.m(o,f),d.set(c.key,c),f=c.first,w--}for(;b&&w;){const c=_[w-1],g=i[b-1],M=c.key,q=g.key;c===g?(f=c.first,b--,w--):S.has(q)?!d.has(M)||k.has(M)?D(c):H.has(q)?b--:O.get(M)>O.get(q)?(H.add(M),D(c)):(k.add(q),b--):(m(g,d),b--)}for(;b--;){const c=i[b];S.has(c.key)||m(c,d)}for(;w;)D(_[w-1]);return re(W),_}function de(i){i&&i.c()}function se(i,e,t){const{fragment:n,after_update:r}=i.$$;n&&n.m(e,t),Ve(()=>{const l=i.$$.on_mount.map(Te).filter(ht);i.$$.on_destroy?i.$$.on_destroy.push(...l):re(l),i.$$.on_mount=[]}),r.forEach(Ve)}function ae(i,e){const t=i.$$;t.fragment!==null&&(li(t.after_update),re(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function di(i,e){i.$$.dirty[0]===-1&&(ye.push(i),si(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function he(i,e,t,n,r,l,d=null,o=[-1]){const m=Ce;We(i);const u=i.$$={fragment:null,ctx:[],props:l,update:v,not_equal:r,bound:gt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(m?m.$$.context:[])),callbacks:gt(),dirty:o,skip_bound:!1,root:e.target||m.$$.root};d&&d(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(L,b,...w)=>{const y=w.length?w[0]:b;return u.ctx&&r(u.ctx[L],u.ctx[L]=y)&&(!u.skip_bound&&u.bound[L]&&u.bound[L](y),f&&di(i,L)),b}):[],u.update(),f=!0,re(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){const L=ti(e.target);u.fragment&&u.fragment.l(L),L.forEach(U)}else u.fragment&&u.fragment.c();e.intro&&P(i.$$.fragment),se(i,e.target,e.anchor),Et()}We(m)}class be{constructor(){dt(this,"$$");dt(this,"$$set")}$destroy(){ae(this,1),this.$destroy=v}$on(e,t){if(!ht(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&&!Vt(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const fi="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(fi);function mi(i){let e,t;return{c(){e=oe("svg"),t=oe("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:v,i:v,o:v,d(n){n&&U(e)}}}class pt extends be{constructor(e){super(),he(this,e,null,mi,me,{})}}function gi(i){let e,t;return{c(){e=oe("svg"),t=oe("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:v,i:v,o:v,d(n){n&&U(e)}}}class Nt extends be{constructor(e){super(),he(this,e,null,gi,me,{})}}function hi(i){let e,t;return{c(){e=z("img"),x(e.src,t=i[3]+"area.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,r){A(n,e,r)},p(n,r){r&8&&!x(e.src,t=n[3]+"area.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6])},d(n){n&&U(e)}}}function bi(i){let e,t;return{c(){e=z("img"),x(e.src,t=i[3]+"reverse.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,r){A(n,e,r)},p(n,r){r&8&&!x(e.src,t=n[3]+"reverse.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6])},d(n){n&&U(e)}}}function vi(i){let e,t;return{c(){e=z("img"),x(e.src,t=i[3]+"poi.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,r){A(n,e,r)},p(n,r){r&8&&!x(e.src,t=n[3]+"poi.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6])},d(n){n&&U(e)}}}function Li(i){let e,t;return{c(){e=z("img"),x(e.src,t=i[3]+"postal_code.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,r){A(n,e,r)},p(n,r){r&8&&!x(e.src,t=n[3]+"postal_code.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6])},d(n){n&&U(e)}}}function _i(i){let e,t;return{c(){e=z("img"),x(e.src,t=i[3]+"street.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,r){A(n,e,r)},p(n,r){r&8&&!x(e.src,t=n[3]+"street.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6])},d(n){n&&U(e)}}}function yi(i){let e,t;return{c(){e=z("img"),x(e.src,t=i[3]+"road.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,r){A(n,e,r)},p(n,r){r&8&&!x(e.src,t=n[3]+"road.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6])},d(n){n&&U(e)}}}function wi(i){let e,t;return{c(){e=z("img"),x(e.src,t=i[3]+"housenumber.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,r){A(n,e,r)},p(n,r){r&8&&!x(e.src,t=n[3]+"housenumber.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6])},d(n){n&&U(e)}}}function Ei(i){let e,t,n,r;return{c(){e=z("img"),x(e.src,t=i[5])||a(e,"src",t),a(e,"alt",i[4]),a(e,"class","svelte-ltkwvy")},m(l,d){A(l,e,d),n||(r=J(e,"error",i[14]),n=!0)},p(l,d){d&32&&!x(e.src,t=l[5])&&a(e,"src",t),d&16&&a(e,"alt",l[4])},d(l){l&&U(e),n=!1,r()}}}function kt(i){let e,t;return{c(){e=z("span"),t=ue(i[6]),a(e,"class","secondary svelte-ltkwvy")},m(n,r){A(n,e,r),N(e,t)},p(n,r){r&64&&Me(t,n[6])},d(n){n&&U(e)}}}function Si(i){let e,t,n,r,l,d,o,m,u,f=(i[7]?i[0].place_name:i[0].place_name.replace(/,.*/,""))+"",L,b,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[7],y,R,_=(i[7]?"":i[0].place_name.replace(/[^,]*,?\s*/,""))+"",S,O,W;function k(g,M){return M&1&&(t=null),M&1&&(n=null),M&1&&(r=null),M&1&&(l=null),g[5]?Ei:g[0].address?wi:(t==null&&(t=!!g[0].id.startsWith("road.")),t?yi:(n==null&&(n=!!g[0].id.startsWith("address.")),n?_i:(r==null&&(r=!!g[0].id.startsWith("postal_code.")),r?Li:(l==null&&(l=!!g[0].id.startsWith("poi.")),l?vi:g[7]?bi:hi))))}let H=k(i,-1),D=H(i),c=w&&kt(i);return{c(){e=z("li"),D.c(),d=X(),o=z("span"),m=z("span"),u=z("span"),L=ue(f),b=X(),c&&c.c(),y=X(),R=z("span"),S=ue(_),a(u,"class","primary svelte-ltkwvy"),a(m,"class","svelte-ltkwvy"),a(R,"class","line2 svelte-ltkwvy"),a(o,"class","texts svelte-ltkwvy"),a(e,"tabindex","0"),a(e,"data-selected",i[1]),a(e,"class","svelte-ltkwvy"),ce(e,"selected",i[1])},m(g,M){A(g,e,M),D.m(e,null),N(e,d),N(e,o),N(o,m),N(m,u),N(u,L),N(m,b),c&&c.m(m,null),N(o,y),N(o,R),N(R,S),O||(W=[J(e,"mouseenter",i[12]),J(e,"focus",i[13])],O=!0)},p(g,[M]){H===(H=k(g,M))&&D?D.p(g,M):(D.d(1),D=H(g),D&&(D.c(),D.m(e,d))),M&1&&f!==(f=(g[7]?g[0].place_name:g[0].place_name.replace(/,.*/,""))+"")&&Me(L,f),M&37&&(w=g[2]==="always"||g[2]!=="never"&&!g[0].address&&!g[0].id.startsWith("road.")&&!g[0].id.startsWith("address.")&&!g[0].id.startsWith("postal_code.")&&(!g[0].id.startsWith("poi.")||!g[5])&&!g[7]),w?c?c.p(g,M):(c=kt(g),c.c(),c.m(m,null)):c&&(c.d(1),c=null),M&1&&_!==(_=(g[7]?"":g[0].place_name.replace(/[^,]*,?\s*/,""))+"")&&Me(S,_),M&2&&a(e,"data-selected",g[1]),M&2&&ce(e,"selected",g[1])},i:v,o:v,d(g){g&&U(e),D.d(),c&&c.d(),O=!1,re(W)}}}function pi(i,e,t){var W;let n,r,{feature:l}=e,{selected:d=!1}=e,{showPlaceType:o}=e,{missingIconsCache:m}=e,{iconsBaseUrl:u}=e;const f=(W=l.properties)==null?void 0:W.categories;let L,b,w=0,y=l.place_type[0]==="reverse";function R(){b&&m.add(b),t(10,w++,w)}function _(k){yt.call(this,i,k)}function S(k){yt.call(this,i,k)}const O=()=>R();return i.$$set=k=>{"feature"in k&&t(0,l=k.feature),"selected"in k&&t(1,d=k.selected),"showPlaceType"in k&&t(2,o=k.showPlaceType),"missingIconsCache"in k&&t(9,m=k.missingIconsCache),"iconsBaseUrl"in k&&t(3,u=k.iconsBaseUrl)},i.$$.update=()=>{var k,H,D,c;if(i.$$.dirty&3640)do t(11,n--,n),t(4,L=f==null?void 0:f[n]),t(5,b=L?u+L.replace(/ /g,"_")+".svg":void 0);while(n>-1&&(!b||m.has(b)));i.$$.dirty&1&&t(6,r=((H=(k=l.properties)==null?void 0:k.categories)==null?void 0:H.join(", "))??((c=(D=l.properties)==null?void 0:D.place_type_name)==null?void 0:c[0])??l.place_type[0])},t(11,n=(f==null?void 0:f.length)??0),[l,d,o,u,L,b,r,y,R,m,w,n,_,S,O]}class Ni extends be{constructor(e){super(),he(this,e,pi,Si,me,{feature:0,selected:1,showPlaceType:2,missingIconsCache:9,iconsBaseUrl:3})}}function ki(i){let e;return{c(){e=z("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:v,i:v,o:v,d(t){t&&U(e)}}}class Ti extends be{constructor(e){super(),he(this,e,null,ki,me,{})}}function Mi(i){let e,t;return{c(){e=oe("svg"),t=oe("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:v,i:v,o:v,d(n){n&&U(e)}}}class Ci extends be{constructor(e){super(),he(this,e,null,Mi,me,{})}}function Wi(i){let e,t,n;return{c(){e=oe("svg"),t=oe("circle"),n=oe("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){A(r,e,l),N(e,t),N(e,n)},p:v,i:v,o:v,d(r){r&&U(e)}}}class zi extends be{constructor(e){super(),he(this,e,null,Wi,me,{})}}function Oi(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 Tt(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 ze;async function Ri(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(ze&&r.cachedLocationExpiry&&ze.time+r.cachedLocationExpiry>Date.now()){if(!ze.coords)break e;return ze.coords}let l;try{return l=await new Promise((d,o)=>{t.signal.addEventListener("abort",()=>{o(Error("aborted"))}),navigator.geolocation.getCurrentPosition(m=>{d([m.coords.longitude,m.coords.latitude].map(u=>u.toFixed(6)).join(","))},m=>{o(m)},r)}),l}catch{}finally{r.cachedLocationExpiry&&(ze={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 Di=/^(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,Mt=/^([+-]?[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,})$/,Ct=/^(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,Wt=/^(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,zt=/^(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,Ot=/^(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 Ui(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),d=t>0?"N":"S",o=n>0?"E":"W";let m;i=="DD"&&(m=`${r}° ${d}, ${l}° ${o}`);const u=Math.floor(r),f=Math.floor(l),L=(r-u)*60,b=(l-f)*60;if(i=="DM"){let w=Rt(L,3).toFixed(3).padStart(6,"0"),y=Rt(b,3).toFixed(3).padStart(6,"0");w.endsWith(".000")&&y.endsWith(".000")&&(w=w.replace(/\.000$/,""),y=y.replace(/\.000$/,"")),m=`${u}° ${w}' ${d}, ${f}° ${y}' ${o}`}if(i=="DMS"){const w=Math.floor(L),y=Math.floor(b);let R=((L-w)*60).toFixed(1).padStart(4,"0"),_=((b-y)*60).toFixed(1).padStart(4,"0");const S=w.toString().padStart(2,"0"),O=y.toString().padStart(2,"0");R.endsWith(".0")&&_.endsWith(".0")&&(R=R.replace(/\.0$/,""),_=_.replace(/\.0$/,"")),m=`${u}° ${S}' ${R}" ${d}, ${f}° ${O}' ${_}" ${o}`}return m}else throw new Error("no decimal coordinates to convert")}function Rt(i,e){const t=Math.pow(10,e);return Math.round((i+Number.EPSILON)*t)/t}function Je(i,e){e||(e=5),i=i.replace(/\s+/g," ").trim();let t=null,n=null,r="",l="",d=null,o=[],m=!1;if(Di.test(i))throw new Error("invalid coordinate value");if(Mt.test(i))if(o=Mt.exec(i),m=Oe(o),m)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),d="DM";else throw new Error("invalid coordinate format");else if(Ct.test(i))if(o=Ct.exec(i),m=Oe(o),m){if(t=o[2],n=o[6],t.includes(",")&&(t=t.replace(",",".")),n.includes(",")&&(n=n.replace(",",".")),d="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(Wt.test(i))if(o=Wt.exec(i),m=Oe(o),m)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4]/60,d="DM"),o[6]&&(t+=o[6].replace(",",".")/3600,d="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(zt.test(i))if(o=zt.exec(i),m=Oe(o),m)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4]/60,d="DM"),o[6]&&(t+=o[6]/3600,d="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(Ot.test(i)){if(o=Ot.exec(i),m=Oe(o),o.filter(u=>u).length<=5)throw new Error("invalid coordinates format");if(m)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4].replace(",",".")/60,d="DM"),o[6]&&(t+=o[6].replace(",",".")/3600,d="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(m){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 f=o[0].trim();let L,b;const w=/[,/;\u0020]/g,y=f.match(w);if(y==null){const S=Math.floor(i.length/2);L=f.substring(0,S).trim(),b=f.substring(S).trim()}else{let S;y.length%2==1?S=Math.floor(y.length/2):S=y.length/2-1;let O=0;if(S==0)O=f.indexOf(y[0]),L=f.substring(0,O).trim(),b=f.substring(O+1).trim();else{let W=0,k=0;for(;W<=S;)O=f.indexOf(y[W],k),k=O+1,W++;L=f.substring(0,O).trim(),b=f.substring(O+1).trim()}}const R=L.split(".");if(R.length==2&&R[1]==0&&R[1].length!=2)throw new Error("invalid coordinates format");const _=b.split(".");if(_.length==2&&_[1]==0&&_[1].length!=2)throw new Error("invalid coordinates format");if(/^\d+$/.test(L)||/^\d+$/.test(b))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:L,verbatimLongitude:b,decimalLatitude:t,decimalLongitude:n,decimalCoordinates:`${t},${n}`,originalFormat:d,closeEnough:Ii,toCoordinateFormat:Ui})}else throw new Error("coordinates pattern match failed")}function Oe(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 d=e[l],o=e[l+r],m=t.test(d)&&t.test(o),u=n.test(d)&&n.test(o),f=d==o;if(!(d==null&&o==null)){if(d==null||o==null)return!1;if(m||u||f)continue;return!1}}return!0}function Dt(i,e){const t=Math.abs(i-e);return Number(t.toFixed(6))<=1e-5}function Ii(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 Dt(this.decimalLatitude,Number(e[0]))&&Dt(this.decimalLongitude,e[1])}else throw new Error("coords being tested must be separated by a comma")}const Ai=Object.freeze({DMS:"DMS",DM:"DM",DD:"DD"});Je.to=Ai;const Bi=[{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"}],Fi={decimalLatitude:40.123,decimalLongitude:-74.123},ji=[{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}],Pi=[{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 Hi(){const i=[];return Bi.forEach(e=>{e.decimalLatitude?i.push(e):i.push({...e,...Fi})}),[...i,...ji,...Pi]}const Zi=Hi();Je.formats=Zi.map(i=>i.verbatimCoordinates);const Gi=Je;function Ut(i,e,t){const n=i.slice();return n[84]=e[t],n[86]=t,n}function It(i){let e,t;return e=new Ti({}),{c(){de(e.$$.fragment)},m(n,r){se(e,n,r),t=!0},i(n){t||(P(e.$$.fragment,n),t=!0)},o(n){K(e.$$.fragment,n),t=!1},d(n){ae(e,n)}}}function At(i){let e,t,n,r,l;return t=new Ci({}),{c(){e=z("button"),de(t.$$.fragment),a(e,"type","button"),a(e,"title",i[9]),a(e,"class","svelte-bz0zu3"),ce(e,"active",i[0])},m(d,o){A(d,e,o),se(t,e,null),n=!0,r||(l=J(e,"click",i[69]),r=!0)},p(d,o){(!n||o[0]&512)&&a(e,"title",d[9]),(!n||o[0]&1)&&ce(e,"active",d[0])},i(d){n||(P(t.$$.fragment,d),n=!0)},o(d){K(t.$$.fragment,d),n=!1},d(d){d&&U(e),ae(t),r=!1,l()}}}function qi(i){let e,t=[],n=new Map,r,l,d,o=St(i[14]);const m=u=>u[84].id+(u[84].address?","+u[84].address:"");for(let u=0;u<o.length;u+=1){let f=Ut(i,o,u),L=m(f);n.set(L,t[u]=Bt(L,f))}return{c(){e=z("ul");for(let u=0;u<t.length;u+=1)t[u].c();a(e,"class","options svelte-bz0zu3")},m(u,f){A(u,e,f);for(let L=0;L<t.length;L+=1)t[L]&&t[L].m(e,null);r=!0,l||(d=[J(e,"mouseleave",i[73]),J(e,"blur",i[74])],l=!0)},p(u,f){f[0]&17880064&&(o=St(u[14]),Ae(),t=ci(t,f,m,1,u,o,n,e,ui,Bt,null,Ut),Be())},i(u){if(!r){for(let f=0;f<o.length;f+=1)P(t[f]);r=!0}},o(u){for(let f=0;f<t.length;f+=1)K(t[f]);r=!1},d(u){u&&U(e);for(let f=0;f<t.length;f+=1)t[f].d();l=!1,re(d)}}}function Qi(i){let e,t,n,r,l,d;return t=new Nt({}),{c(){e=z("div"),de(t.$$.fragment),n=X(),r=z("div"),l=ue(i[7]),a(r,"class","svelte-bz0zu3"),a(e,"class","no-results svelte-bz0zu3")},m(o,m){A(o,e,m),se(t,e,null),N(e,n),N(e,r),N(r,l),d=!0},p(o,m){(!d||m[0]&128)&&Me(l,o[7])},i(o){d||(P(t.$$.fragment,o),d=!0)},o(o){K(t.$$.fragment,o),d=!1},d(o){o&&U(e),ae(t)}}}function Ki(i){let e="",t;return{c(){t=ue(e)},m(n,r){A(n,t,r)},p:v,i:v,o:v,d(n){n&&U(t)}}}function Vi(i){let e,t,n,r,l,d,o,m,u,f,L;return t=new Nt({}),m=new pt({}),{c(){e=z("div"),de(t.$$.fragment),n=X(),r=z("div"),l=ue(i[6]),d=X(),o=z("button"),de(m.$$.fragment),a(r,"class","svelte-bz0zu3"),a(o,"class","svelte-bz0zu3"),a(e,"class","error svelte-bz0zu3")},m(b,w){A(b,e,w),se(t,e,null),N(e,n),N(e,r),N(r,l),N(e,d),N(e,o),se(m,o,null),u=!0,f||(L=J(o,"click",i[70]),f=!0)},p(b,w){(!u||w[0]&64)&&Me(l,b[6])},i(b){u||(P(t.$$.fragment,b),P(m.$$.fragment,b),u=!0)},o(b){K(t.$$.fragment,b),K(m.$$.fragment,b),u=!1},d(b){b&&U(e),ae(t),ae(m),f=!1,L()}}}function Bt(i,e){let t,n,r;function l(){return e[71](e[86])}function d(){return e[72](e[84])}return n=new Ni({props:{feature:e[84],showPlaceType:e[10],selected:e[15]===e[86],missingIconsCache:e[20],iconsBaseUrl:e[12]}}),n.$on("mouseenter",l),n.$on("focus",d),{key:i,first:null,c(){t=$t(),de(n.$$.fragment),this.first=t},m(o,m){A(o,t,m),se(n,o,m),r=!0},p(o,m){e=o;const u={};m[0]&16384&&(u.feature=e[84]),m[0]&1024&&(u.showPlaceType=e[10]),m[0]&49152&&(u.selected=e[15]===e[86]),m[0]&4096&&(u.iconsBaseUrl=e[12]),n.$set(u)},i(o){r||(P(n.$$.fragment,o),r=!0)},o(o){K(n.$$.fragment,o),r=!1},d(o){o&&U(t),ae(n,o)}}}function xi(i){let e,t,n,r,l,d,o,m,u,f,L,b,w,y,R,_,S,O,W,k,H,D=!1;l=new zi({}),L=new pt({});let c=i[19]&&It(),g=i[5]==="button"&&At(i);const M=i[61].default,q=xt(M,i,i[60],null),Se=[Vi,Ki,Qi,qi],V=[];function Re(h,B){var le,ve;return h[18]?0:h[16]?((le=h[14])==null?void 0:le.length)===0?2:h[16]&&((ve=h[14])!=null&&ve.length)?3:-1:1}return~(_=Re(i))&&(S=V[_]=Se[_](i)),{c(){e=X(),t=z("form"),n=z("div"),r=z("button"),de(l.$$.fragment),d=X(),o=z("input"),m=X(),u=z("div"),f=z("button"),de(L.$$.fragment),b=X(),c&&c.c(),w=X(),g&&g.c(),y=X(),q&&q.c(),R=X(),S&&S.c(),a(r,"class","search-button svelte-bz0zu3"),a(r,"type","button"),a(o,"placeholder",i[8]),a(o,"aria-label",i[8]),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"),ce(u,"displayable",i[1]!==""),a(n,"class","input-group svelte-bz0zu3"),a(t,"tabindex","0"),a(t,"class",O=vt(i[2])+" svelte-bz0zu3"),ce(t,"can-collapse",i[4]&&i[1]==="")},m(h,B){A(h,e,B),A(h,t,B),N(t,n),N(n,r),se(l,r,null),N(n,d),N(n,o),i[63](o),Lt(o,i[1]),N(n,m),N(n,u),N(u,f),se(L,f,null),N(u,b),c&&c.m(u,null),N(n,w),g&&g.m(n,null),N(n,y),q&&q.m(n,null),N(t,R),~_&&V[_].m(t,null),W=!0,k||(H=[J(r,"click",i[62]),J(o,"input",i[64]),J(o,"focus",i[65]),J(o,"blur",i[66]),J(o,"keydown",i[22]),J(o,"input",i[67]),J(f,"click",i[68]),J(t,"submit",ei(i[21]))],k=!0)},p(h,B){(!W||B[0]&256)&&a(o,"placeholder",h[8]),(!W||B[0]&256)&&a(o,"aria-label",h[8]),B[0]&2&&o.value!==h[1]&&Lt(o,h[1]),(!W||B[0]&8)&&a(f,"title",h[3]),h[19]?c?B[0]&524288&&P(c,1):(c=It(),c.c(),P(c,1),c.m(u,null)):c&&(Ae(),K(c,1,1,()=>{c=null}),Be()),(!W||B[0]&2)&&ce(u,"displayable",h[1]!==""),h[5]==="button"?g?(g.p(h,B),B[0]&32&&P(g,1)):(g=At(h),g.c(),P(g,1),g.m(n,y)):g&&(Ae(),K(g,1,1,()=>{g=null}),Be()),q&&q.p&&(!W||B[1]&536870912)&&Xt(q,M,h,h[60],W?Jt(M,h[60],B,null):Yt(h[60]),null);let le=_;_=Re(h),_===le?~_&&V[_].p(h,B):(S&&(Ae(),K(V[le],1,1,()=>{V[le]=null}),Be()),~_?(S=V[_],S?S.p(h,B):(S=V[_]=Se[_](h),S.c()),P(S,1),S.m(t,null)):S=null),(!W||B[0]&4&&O!==(O=vt(h[2])+" svelte-bz0zu3"))&&a(t,"class",O),(!W||B[0]&22)&&ce(t,"can-collapse",h[4]&&h[1]==="")},i(h){W||(P(D),P(l.$$.fragment,h),P(L.$$.fragment,h),P(c),P(g),P(q,h),P(S),W=!0)},o(h){K(D),K(l.$$.fragment,h),K(L.$$.fragment,h),K(c),K(g),K(q,h),K(S),W=!1},d(h){h&&(U(e),U(t)),ae(l),i[63](null),ae(L),c&&c.d(),g&&g.d(),q&&q.d(h),~_&&V[_].d(),k=!1,re(H)}}}function Ji(i,e,t){let n,r,{$$slots:l={},$$scope:d}=e;const o={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:m=void 0}=e,{apiKey:u}=e,{bbox:f=void 0}=e,{clearButtonTitle:L="clear"}=e,{clearOnBlur:b=!1}=e,{collapsed:w=!1}=e,{country:y=void 0}=e,{debounceSearch:R=200}=e,{enableReverse:_="never"}=e,{errorMessage:S="Something went wrong…"}=e,{filter:O=()=>!0}=e,{flyTo:W=!0}=e,{fuzzyMatch:k=!0}=e,{language:H=void 0}=e,{limit:D=void 0}=e,{mapController:c=void 0}=e,{minLength:g=2}=e,{noResultsMessage:M="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:q="Search"}=e,{proximity:Se=[{type:"server-geolocation"}]}=e,{reverseActive:V=_==="always"}=e,{reverseButtonTitle:Re="toggle reverse geocoding"}=e,{searchValue:h=""}=e,{pickedResultStyle:B="full-geometry"}=e,{showPlaceType:le="if-needed"}=e,{showResultsWhileTyping:ve=!0}=e,{selectFirst:pe=!0}=e,{flyToSelected:$e=!1}=e,{markerOnSelected:je=!0}=e,{types:Le=void 0}=e,{exhaustiveReverseGeocoding:et=!1}=e,{excludeTypes:Pe=!1}=e,{zoom:He=o}=e,{apiUrl:tt="https://api.maptiler.com/geocoding"}=e,{fetchParameters:it={}}=e,{iconsBaseUrl:Ft="https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.1/icons/"}=e,{adjustUrlQuery:nt=()=>{}}=e;function $i(){ee.focus()}function en(){ee.blur()}function jt(s,F=!0,Q=!1){t(1,h=s),F?(t(15,I=-1),Ht()):(at(!Q,Q),setTimeout(()=>{ee.focus(),ee.select()}))}function tn(){t(14,T=void 0),t(56,E=void 0),t(15,I=-1)}function nn(){t(55,Z=[]),t(56,E=void 0)}let Ne=!1,T,Z,E,Pt="",ee,I=-1,te,Ze=[],_e,ke,Ge,rt;const rn=new Set,fe=ri();ni(()=>{c&&(c.setEventHandler(void 0),c.indicateReverse(!1),c.setSelectedMarker(-1),c.setFeatures(void 0,void 0,!1))});function Ht(s){if(ke&&(clearTimeout(ke),ke=void 0),I>-1&&T)t(56,E=T[I]),t(1,h=E.place_type[0]==="reverse"?E.place_name:E.place_name.replace(/,.*/,"")),t(18,te=void 0),t(55,Z=void 0),t(15,I=-1);else if(h){const F=s||!ot(h);st(h,{exact:!0}).then(()=>{t(55,Z=T),t(56,E=void 0),F&&on()}).catch(Q=>t(18,te=Q))}}function ot(s){try{return Gi(s,6)}catch{return!1}}async function st(s,{byId:F=!1,exact:Q=!1}={}){t(18,te=void 0),_e==null||_e.abort();const $=new AbortController;t(19,_e=$);try{const p=ot(s),G=new URLSearchParams;if(H!==void 0&&G.set("language",Array.isArray(H)?H.join(","):H??""),Le&&G.set("types",Le.join(",")),Pe&&G.set("excludeTypes",String(Pe)),f&&G.set("bbox",f.map(qe=>qe.toFixed(6)).join(",")),y&&G.set("country",Array.isArray(y)?y.join(","):y),!F&&!p){const qe=await Ri(c,Se,$);qe&&G.set("proximity",qe),(Q||!ve)&&G.set("autocomplete","false"),G.set("fuzzyMatch",String(k))}D!==void 0&&(et||!p||(Le==null?void 0:Le.length)===1)&&G.set("limit",String(D)),G.set("key",u),nt(G);const ie=tt+"/"+encodeURIComponent(p?p.decimalLongitude+","+p.decimalLatitude:s)+".json?"+G.toString();if(ie===Pt){F?(t(14,T=void 0),t(56,E=Ze[0])):t(14,T=Ze);return}Pt=ie;const ut=await fetch(ie,{signal:$.signal,...it});if(!ut.ok)throw new Error(await ut.text());const ct=await ut.json();fe("response",{url:ie,featureCollection:ct}),F?(t(14,T=void 0),t(56,E=ct.features[0]),Ze=[E]):(t(14,T=ct.features.filter(O)),p&&T.unshift({type:"Feature",properties:{},id:"reverse_"+p.decimalLongitude+"_"+p.decimalLatitude,text:p.decimalLatitude+", "+p.decimalLongitude,place_name:p.decimalLatitude+", "+p.decimalLongitude,place_type:["reverse"],center:[p.decimalLongitude,p.decimalLatitude],bbox:[p.decimalLongitude,p.decimalLatitude,p.decimalLongitude,p.decimalLatitude],geometry:{type:"Point",coordinates:[p.decimalLongitude,p.decimalLatitude]}}),Ze=T,p&&ee.focus())}catch(p){if(p&&typeof p=="object"&&"name"in p&&p.name==="AbortError")return;throw p}finally{$===_e&&t(19,_e=void 0)}}function on(){var $;if(!(Z!=null&&Z.length)||!W)return;const s=[180,90,-180,-90],F=!Z.some(p=>!p.matching_text);let Q;for(const p of Z){const G=De(p);if(Q=Q===void 0?G:G===void 0?Q:Math.max(Q,G),F||!p.matching_text)for(const ie of[0,1,2,3])s[ie]=Math[ie<2?"min":"max"](s[ie],(($=p.bbox)==null?void 0:$[ie])??p.center[ie%2])}c&&Z.length>0&&(E&&s[0]===s[2]&&s[1]===s[3]?c.flyTo(E.center,De(E)):c.fitBounds(Tt(s),50,Q))}function De(s){var Q;if(!s.bbox||s.bbox[0]!==s.bbox[2]&&s.bbox[1]!==s.bbox[3])return;const F=s.id.replace(/\..*/,"");return(Array.isArray((Q=s.properties)==null?void 0:Q.categories)?s.properties.categories.reduce(($,p)=>{const G=He[F+"."+p];return $===void 0?G:G===void 0?$:Math.max($,G)},void 0):void 0)??He[F]}function sn(s){t(0,V=_==="always"),t(14,T=void 0),t(56,E=void 0),t(15,I=-1),jt(s[1].toFixed(6)+", "+Oi(s[0],[-180,180],!0).toFixed(6),!1,!0)}function an(s){if(!T)return;let F=s.key==="ArrowDown"?1:s.key==="ArrowUp"?-1:0;F&&(I===(pe?0:-1)&&F===-1&&t(15,I=T.length),t(15,I+=F),I>=T.length&&t(15,I=-1),I<0&&pe&&t(15,I=0),s.preventDefault())}function at(s=!0,F=!1){if(t(18,te=void 0),ve||F){if(ke&&clearTimeout(ke),h.length<g)return;const Q=h;ke=window.setTimeout(()=>{st(Q).catch($=>t(18,te=$))},s?R:0)}else t(14,T=void 0),t(18,te=void 0)}function lt(s){t(56,E=s),t(1,h=s.place_name),t(15,I=-1)}const ln=()=>ee.focus();function un(s){Qe[s?"unshift":"push"](()=>{ee=s,t(17,ee)})}function cn(){h=this.value,t(1,h),t(13,Ne),t(28,b)}const dn=()=>t(13,Ne=!0),fn=()=>t(13,Ne=!1),mn=()=>at(),gn=()=>{t(1,h=""),ee.focus()},hn=()=>t(0,V=!V),bn=()=>t(18,te=void 0),vn=s=>t(15,I=s),Ln=s=>lt(s),_n=()=>{pe||t(15,I=-1)},yn=()=>{};return i.$$set=s=>{"class"in s&&t(2,m=s.class),"apiKey"in s&&t(26,u=s.apiKey),"bbox"in s&&t(27,f=s.bbox),"clearButtonTitle"in s&&t(3,L=s.clearButtonTitle),"clearOnBlur"in s&&t(28,b=s.clearOnBlur),"collapsed"in s&&t(4,w=s.collapsed),"country"in s&&t(29,y=s.country),"debounceSearch"in s&&t(30,R=s.debounceSearch),"enableReverse"in s&&t(5,_=s.enableReverse),"errorMessage"in s&&t(6,S=s.errorMessage),"filter"in s&&t(31,O=s.filter),"flyTo"in s&&t(32,W=s.flyTo),"fuzzyMatch"in s&&t(33,k=s.fuzzyMatch),"language"in s&&t(34,H=s.language),"limit"in s&&t(35,D=s.limit),"mapController"in s&&t(36,c=s.mapController),"minLength"in s&&t(37,g=s.minLength),"noResultsMessage"in s&&t(7,M=s.noResultsMessage),"placeholder"in s&&t(8,q=s.placeholder),"proximity"in s&&t(38,Se=s.proximity),"reverseActive"in s&&t(0,V=s.reverseActive),"reverseButtonTitle"in s&&t(9,Re=s.reverseButtonTitle),"searchValue"in s&&t(1,h=s.searchValue),"pickedResultStyle"in s&&t(39,B=s.pickedResultStyle),"showPlaceType"in s&&t(10,le=s.showPlaceType),"showResultsWhileTyping"in s&&t(40,ve=s.showResultsWhileTyping),"selectFirst"in s&&t(11,pe=s.selectFirst),"flyToSelected"in s&&t(41,$e=s.flyToSelected),"markerOnSelected"in s&&t(42,je=s.markerOnSelected),"types"in s&&t(43,Le=s.types),"exhaustiveReverseGeocoding"in s&&t(44,et=s.exhaustiveReverseGeocoding),"excludeTypes"in s&&t(45,Pe=s.excludeTypes),"zoom"in s&&t(46,He=s.zoom),"apiUrl"in s&&t(47,tt=s.apiUrl),"fetchParameters"in s&&t(48,it=s.fetchParameters),"iconsBaseUrl"in s&&t(12,Ft=s.iconsBaseUrl),"adjustUrlQuery"in s&&t(49,nt=s.adjustUrlQuery),"$$scope"in s&&t(60,d=s.$$scope)},i.$$.update=()=>{if(i.$$.dirty[0]&32&&t(0,V=_==="always"),i.$$.dirty[0]&268443648&&setTimeout(()=>{t(16,Ge=Ne),b&&!Ne&&t(1,h="")}),i.$$.dirty[0]&16386|i.$$.dirty[1]&64&&h.length<g&&(t(56,E=void 0),t(14,T=void 0),t(18,te=void 0),t(55,Z=T)),i.$$.dirty[1]&33554688&&B!=="marker-only"&&E&&!E.address&&E.geometry.type==="Point"&&E.place_type[0]!=="reverse"&&st(E.id,{byId:!0}).catch(s=>t(18,te=s)),i.$$.dirty[1]&100663330&&(c&&E&&E.id!==rt&&W&&(!E.bbox||E.bbox[0]===E.bbox[2]&&E.bbox[1]===E.bbox[3]?c.flyTo(E.center,De(E)):c.fitBounds(Tt(E.bbox),50,De(E)),t(14,T=void 0),t(55,Z=void 0),t(15,I=-1)),t(57,rt=E==null?void 0:E.id)),i.$$.dirty[0]&18432&&pe&&T!=null&&T.length&&t(15,I=0),i.$$.dirty[0]&2&&t(15,I=-1),i.$$.dirty[0]&16384|i.$$.dirty[1]&16777216&&Z!==T&&t(55,Z=void 0),i.$$.dirty[0]&81921|i.$$.dirty[1]&16777248&&c&&c.setEventHandler(s=>{switch(s.type){case"mapClick":V&&sn(s.coordinates);break;case"markerClick":{const F=T==null?void 0:T.find(Q=>Q.id===s.id);F&&lt(F)}break;case"markerMouseEnter":Z&&t(15,I=Ge?(T==null?void 0:T.findIndex(F=>F.id===s.id))??-1:-1);break;case"markerMouseLeave":Z&&t(15,I=-1);break}}),i.$$.dirty[0]&49152&&t(58,r=T==null?void 0:T[I]),i.$$.dirty[1]&134218786&&c&&r&&W&&$e&&c.flyTo(r.center,De(r)),i.$$.dirty[1]&256&&t(59,n=B==="full-geometry-including-polygon-center-marker"),i.$$.dirty[1]&268437536&&(je||c==null||c.setFeatures(void 0,void 0,n)),i.$$.dirty[1]&419432480&&c&&je&&!Z&&(c.setFeatures(r?[r]:void 0,void 0,n),c.setSelectedMarker(r?0:-1)),i.$$.dirty[1]&318767136&&c&&c.setFeatures(Z,E,n),i.$$.dirty[0]&32768|i.$$.dirty[1]&16777248&&Z&&c&&c.setSelectedMarker(I),i.$$.dirty[0]&2|i.$$.dirty[1]&32&&c){const s=ot(h);c.setReverseMarker(s?[s.decimalLongitude,s.decimalLatitude]:void 0)}i.$$.dirty[1]&134217728&&fe("select",{feature:r}),i.$$.dirty[1]&33554432&&fe("pick",{feature:E}),i.$$.dirty[0]&81920&&fe("optionsvisibilitychange",{optionsVisible:Ge&&!!T}),i.$$.dirty[0]&16384&&fe("featureslisted",{features:T}),i.$$.dirty[1]&16777216&&fe("featuresmarked",{features:Z}),i.$$.dirty[0]&1&&fe("reversetoggle",{reverse:V}),i.$$.dirty[0]&2&&fe("querychange",{query:h}),i.$$.dirty[0]&1|i.$$.dirty[1]&32&&c&&c.indicateReverse(V)},[V,h,m,L,w,_,S,M,q,Re,le,pe,Ft,Ne,T,I,Ge,ee,te,_e,rn,Ht,an,at,lt,o,u,f,b,y,R,O,W,k,H,D,c,g,Se,B,ve,$e,je,Le,et,Pe,He,tt,it,nt,$i,en,jt,tn,nn,Z,E,rt,r,n,d,l,ln,un,cn,dn,fn,mn,gn,hn,bn,vn,Ln,_n,yn]}let Xi=class extends be{constructor(e){super(),he(this,e,Ji,xi,me,{ZOOM_DEFAULTS:25,class:2,apiKey:26,bbox:27,clearButtonTitle:3,clearOnBlur:28,collapsed:4,country:29,debounceSearch:30,enableReverse:5,errorMessage:6,filter:31,flyTo:32,fuzzyMatch:33,language:34,limit:35,mapController:36,minLength:37,noResultsMessage:7,placeholder:8,proximity:38,reverseActive:0,reverseButtonTitle:9,searchValue:1,pickedResultStyle:39,showPlaceType:10,showResultsWhileTyping:40,selectFirst:11,flyToSelected:41,markerOnSelected:42,types:43,exhaustiveReverseGeocoding:44,excludeTypes:45,zoom:46,apiUrl:47,fetchParameters:48,iconsBaseUrl:12,adjustUrlQuery:49,focus:50,blur:51,setQuery:52,clearList:53,clearMap:54},null,[-1,-1,-1])}get ZOOM_DEFAULTS(){return this.$$.ctx[25]}get focus(){return this.$$.ctx[50]}get blur(){return this.$$.ctx[51]}get setQuery(){return this.$$.ctx[52]}get clearList(){return this.$$.ctx[53]}get clearMap(){return this.$$.ctx[54]}};const Yi=new FinalizationRegistry(i=>{i.$destroy()}),Ye=class Ye extends EventTarget{constructor({target:t,...n}){super();mt(this,Fe);mt(this,Y);Gt(this,Y,new Xi({target:t,props:n}));for(const r of["select","pick","featureslisted","featuresmarked","response","optionsvisibilitychange","reversetoggle","querychange"])ne(this,Y).$on(r,l=>{qt(this,Fe,Kt).call(this,r,l.detail)});ne(this,Y).$on("select",r=>{const l=new CustomEvent(r.type,{detail:r.detail});this.dispatchEvent(l)}),Yi.register(this,ne(this,Y))}setOptions(t){ne(this,Y).$set(t)}setQuery(t,n=!0){var r;(r=ne(this,Y))==null||r.setQuery(t,n)}clearMap(){var t;(t=ne(this,Y))==null||t.clearMap()}clearList(){var t;(t=ne(this,Y))==null||t.clearList()}focus(){var t;(t=ne(this,Y))==null||t.focus()}blur(){var t;(t=ne(this,Y))==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)}};Y=new WeakMap,Fe=new WeakSet,Kt=function(t,n){return Qt(Ye.prototype,this,"dispatchEvent").call(this,new CustomEvent(t,{detail:n}))};let Xe=Ye;C.GeocodingControl=Xe,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})});
1
+ (function(z,b){typeof exports=="object"&&typeof module<"u"?b(exports):typeof define=="function"&&define.amd?define(["exports"],b):(z=typeof globalThis<"u"?globalThis:z||self,b(z.maptilerGeocoder={}))})(this,function(z){"use strict";var zn=Object.defineProperty;var On=Object.getPrototypeOf;var Rn=Reflect.get;var xt=z=>{throw TypeError(z)};var Dn=(z,b,H)=>b in z?zn(z,b,{enumerable:!0,configurable:!0,writable:!0,value:H}):z[b]=H;var Lt=(z,b,H)=>Dn(z,typeof b!="symbol"?b+"":b,H),_t=(z,b,H)=>b.has(z)||xt("Cannot "+H);var re=(z,b,H)=>(_t(z,b,"read from private field"),H?H.call(z):b.get(z)),yt=(z,b,H)=>b.has(z)?xt("Cannot add the same private member more than once"):b instanceof WeakSet?b.add(z):b.set(z,H),$t=(z,b,H,Ce)=>(_t(z,b,"write to private field"),Ce?Ce.call(z,H):b.set(z,H),H),ei=(z,b,H)=>(_t(z,b,"access private method"),H);var ti=(z,b,H)=>Rn(On(z),H,b);var x,He,ii;function b(){}function H(i,e){for(const t in e)i[t]=e[t];return i}function Ce(i){return i()}function pt(){return Object.create(null)}function ae(i){i.forEach(Ce)}function wt(i){return typeof i=="function"}function be(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let Ae;function X(i,e){return i===e?!0:(Ae||(Ae=document.createElement("a")),Ae.href=e,i===Ae.href)}function ni(i){return Object.keys(i).length===0}function ri(i,e,t,n){if(i){const r=Et(i,e,t,n);return i[0](r)}}function Et(i,e,t,n){return i[1]&&n?H(t.ctx.slice(),i[1](n(e))):t.ctx}function oi(i,e,t,n){if(i[2]&&n){const r=i[2](n(t));if(e.dirty===void 0)return r;if(typeof r=="object"){const l=[],c=Math.max(e.dirty.length,r.length);for(let o=0;o<c;o+=1)l[o]=e.dirty[o]|r[o];return l}return e.dirty|r}return e.dirty}function si(i,e,t,n,r,l){if(r){const c=Et(e,t,n,l);i.p(c,r)}}function ai(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 Be(i){return i??""}function M(i,e){i.appendChild(e)}function P(i,e,t){i.insertBefore(e,t||null)}function j(i){i.parentNode&&i.parentNode.removeChild(i)}function U(i){return document.createElement(i)}function le(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function me(i){return document.createTextNode(i)}function $(){return me(" ")}function li(){return me("")}function K(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ui(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 ci(i){return Array.from(i.childNodes)}function We(i,e){e=""+e,i.data!==e&&(i.data=e)}function St(i,e){i.value=e??""}function we(i,e,t){i.classList.toggle(e,!!t)}function di(i,e,{bubbles:t=!1,cancelable:n=!1}={}){return new CustomEvent(i,{detail:e,bubbles:t,cancelable:n})}let ze;function Oe(i){ze=i}function Nt(){if(!ze)throw new Error("Function called outside component initialization");return ze}function fi(i){Nt().$$.on_destroy.push(i)}function kt(){const i=Nt();return(e,t,{cancelable:n=!1}={})=>{const r=i.$$.callbacks[e];if(r){const l=di(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 Ee=[],xe=[];let Se=[];const Mt=[],gi=Promise.resolve();let $e=!1;function hi(){$e||($e=!0,gi.then(Tt))}function et(i){Se.push(i)}const tt=new Set;let Ne=0;function Tt(){if(Ne!==0)return;const i=ze;do{try{for(;Ne<Ee.length;){const e=Ee[Ne];Ne++,Oe(e),bi(e.$$)}}catch(e){throw Ee.length=0,Ne=0,e}for(Oe(null),Ee.length=0,Ne=0;xe.length;)xe.pop()();for(let e=0;e<Se.length;e+=1){const t=Se[e];tt.has(t)||(tt.add(t),t())}Se.length=0}while(Ee.length);for(;Mt.length;)Mt.pop()();$e=!1,tt.clear(),Oe(i)}function bi(i){if(i.fragment!==null){i.update(),ae(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(et)}}function vi(i){const e=[],t=[];Se.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Se=e}const je=new Set;let ve;function Pe(){ve={r:0,c:[],p:ve}}function Fe(){ve.r||ae(ve.c),ve=ve.p}function Z(i,e){i&&i.i&&(je.delete(i),i.i(e))}function J(i,e,t,n){if(i&&i.o){if(je.has(i))return;je.add(i),ve.c.push(()=>{je.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Ct(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Li(i,e){J(i,1,1,()=>{e.delete(i.key)})}function _i(i,e,t,n,r,l,c,o,d,u,f,g){let v=i.length,y=l.length,w=v;const B={};for(;w--;)B[i[w].key]=w;const S=[],N=new Map,R=new Map,O=[];for(w=y;w--;){const _=g(r,l,w),p=t(_);let C=c.get(p);C?O.push(()=>C.p(_,e)):(C=u(p,_),C.c()),N.set(p,S[w]=C),p in B&&R.set(p,Math.abs(w-B[p]))}const V=new Set,Y=new Set;function T(_){Z(_,1),_.m(o,f),c.set(_.key,_),f=_.first,y--}for(;v&&y;){const _=S[y-1],p=i[v-1],C=_.key,m=p.key;_===p?(f=_.first,v--,y--):N.has(m)?!c.has(C)||V.has(C)?T(_):Y.has(m)?v--:R.get(C)>R.get(m)?(Y.add(C),T(_)):(V.add(m),v--):(d(p,c),v--)}for(;v--;){const _=i[v];N.has(_.key)||d(_,c)}for(;y;)T(S[y-1]);return ae(O),S}function ge(i){i&&i.c()}function ue(i,e,t){const{fragment:n,after_update:r}=i.$$;n&&n.m(e,t),et(()=>{const l=i.$$.on_mount.map(Ce).filter(wt);i.$$.on_destroy?i.$$.on_destroy.push(...l):ae(l),i.$$.on_mount=[]}),r.forEach(et)}function ce(i,e){const t=i.$$;t.fragment!==null&&(vi(t.after_update),ae(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function yi(i,e){i.$$.dirty[0]===-1&&(Ee.push(i),hi(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function Le(i,e,t,n,r,l,c=null,o=[-1]){const d=ze;Oe(i);const u=i.$$={fragment:null,ctx:[],props:l,update:b,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};c&&c(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(g,v,...y)=>{const w=y.length?y[0]:v;return u.ctx&&r(u.ctx[g],u.ctx[g]=w)&&(!u.skip_bound&&u.bound[g]&&u.bound[g](w),f&&yi(i,g)),v}):[],u.update(),f=!0,ae(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){const g=ci(e.target);u.fragment&&u.fragment.l(g),g.forEach(j)}else u.fragment&&u.fragment.c();e.intro&&Z(i.$$.fragment),ue(i,e.target,e.anchor),Tt()}Oe(d)}class _e{constructor(){Lt(this,"$$");Lt(this,"$$set")}$destroy(){ce(this,1),this.$destroy=b}$on(e,t){if(!wt(t))return b;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&&!ni(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const pi="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(pi);function wi(i){let e,t;return{c(){e=le("svg"),t=le("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:b,i:b,o:b,d(n){n&&j(e)}}}class Wt extends _e{constructor(e){super(),Le(this,e,null,wi,be,{})}}function Ei(i){let e,t;return{c(){e=le("svg"),t=le("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:b,i:b,o:b,d(n){n&&j(e)}}}class zt extends _e{constructor(e){super(),Le(this,e,null,Ei,be,{})}}function Si(i){let e,t;return{c(){e=U("img"),X(e.src,t=i[3]+"area.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"title",i[6]),a(e,"class","svelte-z7p9pp")},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&64&&a(e,"alt",n[6]),r&64&&a(e,"title",n[6])},d(n){n&&j(e)}}}function Ni(i){let e,t;return{c(){e=U("img"),X(e.src,t=i[3]+"reverse.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"title",i[6]),a(e,"class","svelte-z7p9pp")},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&64&&a(e,"alt",n[6]),r&64&&a(e,"title",n[6])},d(n){n&&j(e)}}}function ki(i){let e,t;return{c(){e=U("img"),X(e.src,t=i[3]+"poi.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"title",i[6]),a(e,"class","svelte-z7p9pp")},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&64&&a(e,"alt",n[6]),r&64&&a(e,"title",n[6])},d(n){n&&j(e)}}}function Mi(i){let e,t;return{c(){e=U("img"),X(e.src,t=i[3]+"postal_code.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"title",i[6]),a(e,"class","svelte-z7p9pp")},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&64&&a(e,"alt",n[6]),r&64&&a(e,"title",n[6])},d(n){n&&j(e)}}}function Ti(i){let e,t;return{c(){e=U("img"),X(e.src,t=i[3]+"street.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"title",i[6]),a(e,"class","svelte-z7p9pp")},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&64&&a(e,"alt",n[6]),r&64&&a(e,"title",n[6])},d(n){n&&j(e)}}}function Ci(i){let e,t;return{c(){e=U("img"),X(e.src,t=i[3]+"road.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"title",i[6]),a(e,"class","svelte-z7p9pp")},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&64&&a(e,"alt",n[6]),r&64&&a(e,"title",n[6])},d(n){n&&j(e)}}}function Wi(i){let e,t;return{c(){e=U("img"),X(e.src,t=i[3]+"housenumber.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"title",i[6]),a(e,"class","svelte-z7p9pp")},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&64&&a(e,"alt",n[6]),r&64&&a(e,"title",n[6])},d(n){n&&j(e)}}}function zi(i){let e,t,n,r;return{c(){e=U("img"),X(e.src,t=i[5])||a(e,"src",t),a(e,"alt",i[4]),a(e,"title",i[6]),a(e,"class","svelte-z7p9pp")},m(l,c){P(l,e,c),n||(r=K(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&64&&a(e,"title",l[6])},d(l){l&&j(e),n=!1,r()}}}function Ot(i){let e,t;return{c(){e=U("span"),t=me(i[6]),a(e,"class","secondary svelte-z7p9pp")},m(n,r){P(n,e,r),M(e,t)},p(n,r){r&64&&We(t,n[6])},d(n){n&&j(e)}}}function Oi(i){let e,t,n,r,l,c,o,d,u,f=(i[8]?i[0].place_name:i[0].place_name.replace(/,.*/,""))+"",g,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],w,B,S=(i[8]?"":i[0].place_name.replace(/[^,]*,?\s*/,""))+"",N,R,O,V,Y,T;function _(E,I){return I&1&&(t=null),I&1&&(n=null),I&1&&(r=null),I&1&&(l=null),E[5]?zi:E[0].address?Wi:(t==null&&(t=!!E[0].id.startsWith("road.")),t?Ci:(n==null&&(n=!!E[0].id.startsWith("address.")),n?Ti:(r==null&&(r=!!E[0].id.startsWith("postal_code.")),r?Mi:(l==null&&(l=!!E[0].id.startsWith("poi.")),l?ki:E[8]?Ni:Si))))}let p=_(i,-1),C=p(i),m=y&&Ot(i);return{c(){e=U("li"),C.c(),c=$(),o=U("span"),d=U("span"),u=U("span"),g=me(f),v=$(),m&&m.c(),w=$(),B=U("span"),N=me(S),a(u,"class","primary svelte-z7p9pp"),a(d,"class","svelte-z7p9pp"),a(B,"class","line2 svelte-z7p9pp"),a(o,"class","texts svelte-z7p9pp"),a(e,"tabindex","-1"),a(e,"role","option"),a(e,"aria-selected",R=i[1]==="selected"),a(e,"aria-checked",O=i[1]==="picked"),a(e,"class",V=Be(i[1])+" svelte-z7p9pp")},m(E,I){P(E,e,I),C.m(e,null),M(e,c),M(e,o),M(o,d),M(d,u),M(u,g),M(d,v),m&&m.m(d,null),M(o,w),M(o,B),M(B,N),Y||(T=[K(e,"mouseenter",i[13]),K(e,"focus",i[15]),K(e,"click",i[16])],Y=!0)},p(E,[I]){p===(p=_(E,I))&&C?C.p(E,I):(C.d(1),C=p(E),C&&(C.c(),C.m(e,c))),I&1&&f!==(f=(E[8]?E[0].place_name:E[0].place_name.replace(/,.*/,""))+"")&&We(g,f),I&37&&(y=E[2]==="always"||E[2]!=="never"&&!E[0].address&&!E[0].id.startsWith("road.")&&!E[0].id.startsWith("address.")&&!E[0].id.startsWith("postal_code.")&&(!E[0].id.startsWith("poi.")||!E[5])&&!E[8]),y?m?m.p(E,I):(m=Ot(E),m.c(),m.m(d,null)):m&&(m.d(1),m=null),I&1&&S!==(S=(E[8]?"":E[0].place_name.replace(/[^,]*,?\s*/,""))+"")&&We(N,S),I&2&&R!==(R=E[1]==="selected")&&a(e,"aria-selected",R),I&2&&O!==(O=E[1]==="picked")&&a(e,"aria-checked",O),I&2&&V!==(V=Be(E[1])+" svelte-z7p9pp")&&a(e,"class",V)},i:b,o:b,d(E){E&&j(e),C.d(),m&&m.d(),Y=!1,ae(T)}}}function Ri(i,e,t){var Y;let n,r,{feature:l}=e,{style:c="default"}=e,{showPlaceType:o}=e,{missingIconsCache:d}=e,{iconsBaseUrl:u}=e;const f=kt(),g=(Y=l.properties)==null?void 0:Y.categories;let v,y,w=0,B=l.place_type[0]==="reverse";function S(){y&&d.add(y),t(11,w++,w)}function N(T){mi.call(this,i,T)}const R=()=>S(),O=()=>f("select",void 0),V=T=>{document.activeElement!==T.target&&f("select",void 0)};return i.$$set=T=>{"feature"in T&&t(0,l=T.feature),"style"in T&&t(1,c=T.style),"showPlaceType"in T&&t(2,o=T.showPlaceType),"missingIconsCache"in T&&t(10,d=T.missingIconsCache),"iconsBaseUrl"in T&&t(3,u=T.iconsBaseUrl)},i.$$.update=()=>{var T,_,p,C;if(i.$$.dirty&7224)do t(12,n--,n),t(4,v=g==null?void 0:g[n]),t(5,y=v?u+v.replace(/ /g,"_")+".svg":void 0);while(n>-1&&(!y||d.has(y)));i.$$.dirty&1&&t(6,r=((_=(T=l.properties)==null?void 0:T.categories)==null?void 0:_.join(", "))??((C=(p=l.properties)==null?void 0:p.place_type_name)==null?void 0:C[0])??l.place_type[0])},t(12,n=(g==null?void 0:g.length)??0),[l,c,o,u,v,y,r,f,B,S,d,w,n,N,R,O,V]}class Di extends _e{constructor(e){super(),Le(this,e,Ri,Oi,be,{feature:0,style:1,showPlaceType:2,missingIconsCache:10,iconsBaseUrl:3})}}function Ui(i){let e;return{c(){e=U("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:b,i:b,o:b,d(t){t&&j(e)}}}class Ii extends _e{constructor(e){super(),Le(this,e,null,Ui,be,{})}}function Ai(i){let e,t;return{c(){e=le("svg"),t=le("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:b,i:b,o:b,d(n){n&&j(e)}}}class Bi extends _e{constructor(e){super(),Le(this,e,null,Ai,be,{})}}function ji(i){let e,t,n;return{c(){e=le("svg"),t=le("circle"),n=le("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:b,i:b,o:b,d(r){r&&j(e)}}}class Pi extends _e{constructor(e){super(),Le(this,e,null,ji,be,{})}}function Fi(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 Rt(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 Re;async function Hi(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(Re&&r.cachedLocationExpiry&&Re.time+r.cachedLocationExpiry>Date.now()){if(!Re.coords)break e;return Re.coords}let l;try{return l=await new Promise((c,o)=>{t.signal.addEventListener("abort",()=>{o(Error("aborted"))}),navigator.geolocation.getCurrentPosition(d=>{c([d.coords.longitude,d.coords.latitude].map(u=>u.toFixed(6)).join(","))},d=>{o(d)},r)}),l}catch{}finally{r.cachedLocationExpiry&&(Re={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 Zi=/^(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,Dt=/^([+-]?[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,})$/,Ut=/^(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,It=/^(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,At=/^(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,Bt=/^(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 Gi(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),l=Math.abs(n),c=t>0?"N":"S",o=n>0?"E":"W";let d;i=="DD"&&(d=`${r}° ${c}, ${l}° ${o}`);const u=Math.floor(r),f=Math.floor(l),g=(r-u)*60,v=(l-f)*60;if(i=="DM"){let y=jt(g,3).toFixed(3).padStart(6,"0"),w=jt(v,3).toFixed(3).padStart(6,"0");y.endsWith(".000")&&w.endsWith(".000")&&(y=y.replace(/\.000$/,""),w=w.replace(/\.000$/,"")),d=`${u}° ${y}' ${c}, ${f}° ${w}' ${o}`}if(i=="DMS"){const y=Math.floor(g),w=Math.floor(v);let B=((g-y)*60).toFixed(1).padStart(4,"0"),S=((v-w)*60).toFixed(1).padStart(4,"0");const N=y.toString().padStart(2,"0"),R=w.toString().padStart(2,"0");B.endsWith(".0")&&S.endsWith(".0")&&(B=B.replace(/\.0$/,""),S=S.replace(/\.0$/,"")),d=`${u}° ${N}' ${B}" ${c}, ${f}° ${R}' ${S}" ${o}`}return d}else throw new Error("no decimal coordinates to convert")}function jt(i,e){const t=Math.pow(10,e);return Math.round((i+Number.EPSILON)*t)/t}function it(i,e){e||(e=5),i=i.replace(/\s+/g," ").trim();let t=null,n=null,r="",l="",c=null,o=[],d=!1;if(Zi.test(i))throw new Error("invalid coordinate value");if(Dt.test(i))if(o=Dt.exec(i),d=De(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),c="DM";else throw new Error("invalid coordinate format");else if(Ut.test(i))if(o=Ut.exec(i),d=De(o),d){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(It.test(i))if(o=It.exec(i),d=De(o),d)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(At.test(i))if(o=At.exec(i),d=De(o),d)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(Bt.test(i)){if(o=Bt.exec(i),d=De(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,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(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&&!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 f=o[0].trim();let g,v;const y=/[,/;\u0020]/g,w=f.match(y);if(w==null){const N=Math.floor(i.length/2);g=f.substring(0,N).trim(),v=f.substring(N).trim()}else{let N;w.length%2==1?N=Math.floor(w.length/2):N=w.length/2-1;let R=0;if(N==0)R=f.indexOf(w[0]),g=f.substring(0,R).trim(),v=f.substring(R+1).trim();else{let O=0,V=0;for(;O<=N;)R=f.indexOf(w[O],V),V=R+1,O++;g=f.substring(0,R).trim(),v=f.substring(R+1).trim()}}const B=g.split(".");if(B.length==2&&B[1]==0&&B[1].length!=2)throw new Error("invalid coordinates format");const S=v.split(".");if(S.length==2&&S[1]==0&&S[1].length!=2)throw new Error("invalid coordinates format");if(/^\d+$/.test(g)||/^\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:g,verbatimLongitude:v,decimalLatitude:t,decimalLongitude:n,decimalCoordinates:`${t},${n}`,originalFormat:c,closeEnough:qi,toCoordinateFormat:Gi})}else throw new Error("coordinates pattern match failed")}function De(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],d=t.test(c)&&t.test(o),u=n.test(c)&&n.test(o),f=c==o;if(!(c==null&&o==null)){if(c==null||o==null)return!1;if(d||u||f)continue;return!1}}return!0}function Pt(i,e){const t=Math.abs(i-e);return Number(t.toFixed(6))<=1e-5}function qi(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 Pt(this.decimalLatitude,Number(e[0]))&&Pt(this.decimalLongitude,e[1])}else throw new Error("coords being tested must be separated by a comma")}const Qi=Object.freeze({DMS:"DMS",DM:"DM",DD:"DD"});it.to=Qi;const Ki=[{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"}],Vi={decimalLatitude:40.123,decimalLongitude:-74.123},Ji=[{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}],Xi=[{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 Yi(){const i=[];return Ki.forEach(e=>{e.decimalLatitude?i.push(e):i.push({...e,...Vi})}),[...i,...Ji,...Xi]}const xi=Yi();it.formats=xi.map(i=>i.verbatimCoordinates);const $i=it;function Ft(i,e,t){const n=i.slice();return n[91]=e[t],n[93]=t,n}function Ht(i){let e,t;return e=new Ii({}),{c(){ge(e.$$.fragment)},m(n,r){ue(e,n,r),t=!0},i(n){t||(Z(e.$$.fragment,n),t=!0)},o(n){J(e.$$.fragment,n),t=!1},d(n){ce(e,n)}}}function Zt(i){let e,t,n,r,l;return t=new Bi({}),{c(){e=U("button"),ge(t.$$.fragment),a(e,"type","button"),a(e,"title",i[10]),a(e,"class","svelte-bz0zu3"),we(e,"active",i[0])},m(c,o){P(c,e,o),ue(t,e,null),n=!0,r||(l=K(e,"click",i[76]),r=!0)},p(c,o){(!n||o[0]&1024)&&a(e,"title",c[10]),(!n||o[0]&1)&&we(e,"active",c[0])},i(c){n||(Z(t.$$.fragment,c),n=!0)},o(c){J(t.$$.fragment,c),n=!1},d(c){c&&j(e),ce(t),r=!1,l()}}}function en(i){let e,t=[],n=new Map,r,l,c,o=Ct(i[13]);const d=u=>u[91].id+(u[91].address?","+u[91].address:"");for(let u=0;u<o.length;u+=1){let f=Ft(i,o,u),g=d(f);n.set(g,t[u]=Gt(g,f))}return{c(){e=U("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){P(u,e,f);for(let g=0;g<t.length;g+=1)t[g]&&t[g].m(e,null);r=!0,l||(c=[K(e,"mouseleave",i[27]),K(e,"blur",i[80]),K(e,"keydown",i[23])],l=!0)},p(u,f){f[0]&102823936&&(o=Ct(u[13]),Pe(),t=_i(t,f,d,1,u,o,n,e,Li,Gt,null,Ft),Fe())},i(u){if(!r){for(let f=0;f<o.length;f+=1)Z(t[f]);r=!0}},o(u){for(let f=0;f<t.length;f+=1)J(t[f]);r=!1},d(u){u&&j(e);for(let f=0;f<t.length;f+=1)t[f].d();l=!1,ae(c)}}}function tn(i){let e,t,n,r,l,c;return t=new zt({}),{c(){e=U("div"),ge(t.$$.fragment),n=$(),r=U("div"),l=me(i[8]),a(r,"class","svelte-bz0zu3"),a(e,"class","no-results svelte-bz0zu3")},m(o,d){P(o,e,d),ue(t,e,null),M(e,n),M(e,r),M(r,l),c=!0},p(o,d){(!c||d[0]&256)&&We(l,o[8])},i(o){c||(Z(t.$$.fragment,o),c=!0)},o(o){J(t.$$.fragment,o),c=!1},d(o){o&&j(e),ce(t)}}}function nn(i){let e="",t;return{c(){t=me(e)},m(n,r){P(n,t,r)},p:b,i:b,o:b,d(n){n&&j(t)}}}function rn(i){let e,t,n,r,l,c,o,d,u,f,g;return t=new zt({}),d=new Wt({}),{c(){e=U("div"),ge(t.$$.fragment),n=$(),r=U("div"),l=me(i[7]),c=$(),o=U("button"),ge(d.$$.fragment),a(r,"class","svelte-bz0zu3"),a(o,"class","svelte-bz0zu3"),a(e,"class","error svelte-bz0zu3")},m(v,y){P(v,e,y),ue(t,e,null),M(e,n),M(e,r),M(r,l),M(e,c),M(e,o),ue(d,o,null),u=!0,f||(g=K(o,"click",i[77]),f=!0)},p(v,y){(!u||y[0]&128)&&We(l,v[7])},i(v){u||(Z(t.$$.fragment,v),Z(d.$$.fragment,v),u=!0)},o(v){J(t.$$.fragment,v),J(d.$$.fragment,v),u=!1},d(v){v&&j(e),ce(t),ce(d),f=!1,g()}}}function Gt(i,e){var o;let t,n,r;function l(){return e[78](e[93])}function c(){return e[79](e[91])}return n=new Di({props:{feature:e[91],showPlaceType:e[11],style:e[15]===e[93]?"selected":((o=e[14])==null?void 0:o.id)===e[91].id?"picked":"default",missingIconsCache:e[21],iconsBaseUrl:e[12]}}),n.$on("mouseenter",l),n.$on("select",c),{key:i,first:null,c(){t=li(),ge(n.$$.fragment),this.first=t},m(d,u){P(d,t,u),ue(n,d,u),r=!0},p(d,u){var g;e=d;const f={};u[0]&8192&&(f.feature=e[91]),u[0]&2048&&(f.showPlaceType=e[11]),u[0]&57344&&(f.style=e[15]===e[93]?"selected":((g=e[14])==null?void 0:g.id)===e[91].id?"picked":"default"),u[0]&4096&&(f.iconsBaseUrl=e[12]),n.$set(f)},i(d){r||(Z(n.$$.fragment,d),r=!0)},o(d){J(n.$$.fragment,d),r=!1},d(d){d&&j(t),ce(n,d)}}}function on(i){let e,t,n,r,l,c,o,d,u,f,g,v,y,w,B,S,N,R,O,V,Y,T=!1;l=new Pi({}),g=new Wt({});let _=i[20]&&Ht(),p=i[6]==="button"&&Zt(i);const C=i[67].default,m=ri(C,i,i[66],null),E=[rn,nn,tn,en],I=[];function Ue(L,A){var de,q;return L[19]?0:!L[16]&&!L[4]?1:((de=L[13])==null?void 0:de.length)===0?2:(q=L[13])!=null&&q.length&&(L[16]||L[4])?3:-1}return~(S=Ue(i))&&(N=I[S]=E[S](i)),{c(){e=$(),t=U("form"),n=U("div"),r=U("button"),ge(l.$$.fragment),c=$(),o=U("input"),d=$(),u=U("div"),f=U("button"),ge(g.$$.fragment),v=$(),_&&_.c(),y=$(),p&&p.c(),w=$(),m&&m.c(),B=$(),N&&N.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"),we(u,"displayable",i[1]!==""),a(n,"class","input-group svelte-bz0zu3"),a(t,"class",R=Be(i[2])+" svelte-bz0zu3"),we(t,"can-collapse",i[5]&&i[1]==="")},m(L,A){P(L,e,A),P(L,t,A),M(t,n),M(n,r),ue(l,r,null),M(n,c),M(n,o),i[69](o),St(o,i[1]),M(n,d),M(n,u),M(u,f),ue(g,f,null),M(u,v),_&&_.m(u,null),M(n,y),p&&p.m(n,null),M(n,w),m&&m.m(n,null),M(t,B),~S&&I[S].m(t,null),O=!0,V||(Y=[K(r,"click",i[68]),K(o,"input",i[70]),K(o,"focus",i[71]),K(o,"blur",i[72]),K(o,"click",i[73]),K(o,"keydown",i[23]),K(o,"input",i[24]),K(o,"change",i[74]),K(f,"click",i[75]),K(t,"submit",ui(i[22]))],V=!0)},p(L,A){(!O||A[0]&512)&&a(o,"placeholder",L[9]),(!O||A[0]&512)&&a(o,"aria-label",L[9]),A[0]&2&&o.value!==L[1]&&St(o,L[1]),(!O||A[0]&8)&&a(f,"title",L[3]),L[20]?_?A[0]&1048576&&Z(_,1):(_=Ht(),_.c(),Z(_,1),_.m(u,null)):_&&(Pe(),J(_,1,1,()=>{_=null}),Fe()),(!O||A[0]&2)&&we(u,"displayable",L[1]!==""),L[6]==="button"?p?(p.p(L,A),A[0]&64&&Z(p,1)):(p=Zt(L),p.c(),Z(p,1),p.m(n,w)):p&&(Pe(),J(p,1,1,()=>{p=null}),Fe()),m&&m.p&&(!O||A[2]&16)&&si(m,C,L,L[66],O?oi(C,L[66],A,null):ai(L[66]),null);let de=S;S=Ue(L),S===de?~S&&I[S].p(L,A):(N&&(Pe(),J(I[de],1,1,()=>{I[de]=null}),Fe()),~S?(N=I[S],N?N.p(L,A):(N=I[S]=E[S](L),N.c()),Z(N,1),N.m(t,null)):N=null),(!O||A[0]&4&&R!==(R=Be(L[2])+" svelte-bz0zu3"))&&a(t,"class",R),(!O||A[0]&38)&&we(t,"can-collapse",L[5]&&L[1]==="")},i(L){O||(Z(T),Z(l.$$.fragment,L),Z(g.$$.fragment,L),Z(_),Z(p),Z(m,L),Z(N),O=!0)},o(L){J(T),J(l.$$.fragment,L),J(g.$$.fragment,L),J(_),J(p),J(m,L),J(N),O=!1},d(L){L&&(j(e),j(t)),ce(l),i[69](null),ce(g),_&&_.d(),p&&p.d(),m&&m.d(L),~S&&I[S].d(),V=!1,ae(Y)}}}function sn(i,e,t){let n,r,l,{$$slots:c={},$$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:g=void 0}=e,{clearButtonTitle:v="clear"}=e,{clearOnBlur:y=!1}=e,{clearListOnPick:w=!1}=e,{keepListOpen:B=!1}=e,{collapsed:S=!1}=e,{country:N=void 0}=e,{debounceSearch:R=200}=e,{enableReverse:O="never"}=e,{errorMessage:V="Something went wrong…"}=e,{filter:Y=()=>!0}=e,{flyTo:T=!0}=e,{fuzzyMatch:_=!0}=e,{language:p=void 0}=e,{limit:C=void 0}=e,{mapController:m=void 0}=e,{minLength:E=2}=e,{noResultsMessage:I="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:Ue="Search"}=e,{proximity:L=[{type:"server-geolocation"}]}=e,{reverseActive:A=O==="always"}=e,{reverseButtonTitle:de="toggle reverse geocoding"}=e,{searchValue:q=""}=e,{pickedResultStyle:Ze="full-geometry"}=e,{showPlaceType:qt="if-needed"}=e,{showResultsWhileTyping:Ge=!0}=e,{selectFirst:ke=!0}=e,{flyToSelected:qe=!1}=e,{markerOnSelected:Qe=!0}=e,{types:ye=void 0}=e,{exhaustiveReverseGeocoding:ot=!1}=e,{excludeTypes:Ke=!1}=e,{zoom:Ve=d}=e,{apiUrl:st="https://api.maptiler.com/geocoding"}=e,{fetchParameters:at={}}=e,{iconsBaseUrl:Qt="https://cdn.maptiler.com/maptiler-geocoding-control/v2.1.0-rc1/icons/"}=e,{adjustUrlQuery:lt=()=>{}}=e,{adjustUrl:ut=()=>{}}=e;function un(s){ie.focus(s)}function cn(){ie.blur()}function Kt(s,F=!0,G=!1){t(1,q=s),F?(t(15,D=-1),Jt()):(Xt(void 0,!G,G),setTimeout(()=>{ie.focus(),ie.select()}))}function dn(){t(13,k=void 0),t(14,h=void 0),t(15,D=-1)}function fn(){t(61,Q=[]),t(14,h=void 0)}let k,Q,h,Vt="",ie,D=-1,oe,Je=[],pe,Me,Te,ct,fe=!1;const mn=new Set,he=kt();fi(()=>{m&&(m.setEventHandler(void 0),m.indicateReverse(!1),m.setSelectedMarker(-1),m.setFeatures(void 0,void 0,!1))});function Jt(s){if(t(17,fe=!1),Me&&(clearTimeout(Me),Me=void 0),D>-1&&k)t(14,h=k[D]),t(1,q=h.place_type[0]==="reverse"?h.place_name:h.place_name.replace(/,.*/,"")),t(19,oe=void 0),t(61,Q=void 0),t(15,D=-1);else if(q){const F=s||!dt(q);ft(q,{exact:!0}).then(()=>{t(61,Q=k),t(14,h=void 0),F&&gn()}).catch(G=>t(19,oe=G))}}function dt(s){try{return $i(s,6)}catch{return!1}}async function ft(s,{byId:F=!1,exact:G=!1}={}){var te,se;t(19,oe=void 0),pe==null||pe.abort();const ee=new AbortController;t(20,pe=ee);try{const W=dt(s),ht=new URL(st+"/"+encodeURIComponent(W?W.decimalLongitude+","+W.decimalLatitude:s)+".json"),ne=ht.searchParams;if(p!==void 0&&ne.set("language",Array.isArray(p)?p.join(","):p??""),ye&&ne.set("types",ye.join(",")),Ke&&ne.set("excludeTypes",String(Ke)),g&&ne.set("bbox",g.map(Ye=>Ye.toFixed(6)).join(",")),N&&ne.set("country",Array.isArray(N)?N.join(","):N),!F&&!W){const Ye=await Hi(m,L,ee);Ye&&ne.set("proximity",Ye),(G||!Ge)&&ne.set("autocomplete","false"),ne.set("fuzzyMatch",String(_))}C!==void 0&&(ot||!W||(ye==null?void 0:ye.length)===1)&&ne.set("limit",String(C)),ne.set("key",f),lt(ne),ut(ht);const Xe=ht.toString();if(Xe===Vt){F?(w&&t(13,k=void 0),t(14,h=Je[0])):(t(13,k=Je),((te=k[D])==null?void 0:te.id)!==(r==null?void 0:r.id)&&t(15,D=-1));return}Vt=Xe;const bt=await fetch(Xe,{signal:ee.signal,...at});if(!bt.ok)throw new Error(await bt.text());const vt=await bt.json();he("response",{url:Xe,featureCollection:vt}),F?(w&&t(13,k=void 0),t(14,h=vt.features[0]),Je=[h]):(t(13,k=vt.features.filter(Y)),W&&k.unshift({type:"Feature",properties:{},id:"reverse_"+W.decimalLongitude+"_"+W.decimalLatitude,text:W.decimalLatitude+", "+W.decimalLongitude,place_name:W.decimalLatitude+", "+W.decimalLongitude,place_type:["reverse"],center:[W.decimalLongitude,W.decimalLatitude],bbox:[W.decimalLongitude,W.decimalLatitude,W.decimalLongitude,W.decimalLatitude],geometry:{type:"Point",coordinates:[W.decimalLongitude,W.decimalLatitude]}}),Je=k,((se=k[D])==null?void 0:se.id)!==(r==null?void 0:r.id)&&t(15,D=-1),W&&ie.focus())}catch(W){if(W&&typeof W=="object"&&"name"in W&&W.name==="AbortError")return;throw W}finally{ee===pe&&t(20,pe=void 0)}}function gn(){var ee;if(!(Q!=null&&Q.length)||!T)return;const s=[180,90,-180,-90],F=!Q.some(te=>!te.matching_text);let G;for(const te of Q){const se=Ie(te);if(G=G===void 0?se:se===void 0?G:Math.max(G,se),F||!te.matching_text)for(const W of[0,1,2,3])s[W]=Math[W<2?"min":"max"](s[W],((ee=te.bbox)==null?void 0:ee[W])??te.center[W%2])}m&&Q.length>0&&(h&&s[0]===s[2]&&s[1]===s[3]?m.flyTo(h.center,Ie(h)):m.fitBounds(Rt(s),50,G))}function mt(){!h||!m||(!h.bbox||h.bbox[0]===h.bbox[2]&&h.bbox[1]===h.bbox[3]?m.flyTo(h.center,Ie(h)):m.fitBounds(Rt(h.bbox),50,Ie(h)))}function Ie(s){var G;if(!s.bbox||s.bbox[0]!==s.bbox[2]&&s.bbox[1]!==s.bbox[3])return;const F=s.id.replace(/\..*/,"");return(Array.isArray((G=s.properties)==null?void 0:G.categories)?s.properties.categories.reduce((ee,te)=>{const se=Ve[F+"."+te];return ee===void 0?se:se===void 0?ee:Math.max(ee,se)},void 0):void 0)??Ve[F]}function hn(s){t(0,A=O==="always"),t(13,k=void 0),t(14,h=void 0),t(15,D=-1),Kt(s[1].toFixed(6)+", "+Fi(s[0],[-180,180],!0).toFixed(6),!1,!0)}function bn(s){if(!k)return;let F=s.key==="ArrowDown"?1:s.key==="ArrowUp"?-1:0;F&&(ie.focus(),t(17,fe=!0),s.preventDefault(),h&&D===-1&&t(15,D=k.findIndex(G=>G.id===(h==null?void 0:h.id))),D===(h||ke?0:-1)&&F===-1&&t(15,D=k.length),t(15,D+=F),D>=k.length&&t(15,D=-1),D<0&&(h||ke)&&t(15,D=0))}function Xt(s,F=!0,G=!1){if(t(19,oe=void 0),t(14,h=void 0),t(17,fe=!0),Ge||G){if(Me&&clearTimeout(Me),q.length<E)return;const ee=q;Me=window.setTimeout(()=>{ft(ee).catch(te=>t(19,oe=te))},F?R:0)}else t(13,k=void 0),t(19,oe=void 0)}function gt(s){h&&(h==null?void 0:h.id)===(s==null?void 0:s.id)?mt():(t(14,h=s),t(1,q=s.place_name))}function Yt(s){t(15,D=s)}function vn(){(!ke||h)&&t(15,D=-1),qe&&mt()}const Ln=()=>ie.focus();function _n(s){xe[s?"unshift":"push"](()=>{ie=s,t(18,ie)})}function yn(){q=this.value,t(1,q),t(17,fe),t(31,y),t(16,Te)}const pn=()=>t(17,fe=!0),wn=()=>t(17,fe=!1),En=()=>t(17,fe=!0),Sn=()=>t(14,h=void 0),Nn=()=>{t(1,q=""),ie.focus()},kn=()=>t(0,A=!A),Mn=()=>t(19,oe=void 0),Tn=s=>Yt(s),Cn=s=>gt(s),Wn=()=>{};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,g=s.bbox),"clearButtonTitle"in s&&t(3,v=s.clearButtonTitle),"clearOnBlur"in s&&t(31,y=s.clearOnBlur),"clearListOnPick"in s&&t(32,w=s.clearListOnPick),"keepListOpen"in s&&t(4,B=s.keepListOpen),"collapsed"in s&&t(5,S=s.collapsed),"country"in s&&t(33,N=s.country),"debounceSearch"in s&&t(34,R=s.debounceSearch),"enableReverse"in s&&t(6,O=s.enableReverse),"errorMessage"in s&&t(7,V=s.errorMessage),"filter"in s&&t(35,Y=s.filter),"flyTo"in s&&t(36,T=s.flyTo),"fuzzyMatch"in s&&t(37,_=s.fuzzyMatch),"language"in s&&t(38,p=s.language),"limit"in s&&t(39,C=s.limit),"mapController"in s&&t(40,m=s.mapController),"minLength"in s&&t(41,E=s.minLength),"noResultsMessage"in s&&t(8,I=s.noResultsMessage),"placeholder"in s&&t(9,Ue=s.placeholder),"proximity"in s&&t(42,L=s.proximity),"reverseActive"in s&&t(0,A=s.reverseActive),"reverseButtonTitle"in s&&t(10,de=s.reverseButtonTitle),"searchValue"in s&&t(1,q=s.searchValue),"pickedResultStyle"in s&&t(43,Ze=s.pickedResultStyle),"showPlaceType"in s&&t(11,qt=s.showPlaceType),"showResultsWhileTyping"in s&&t(44,Ge=s.showResultsWhileTyping),"selectFirst"in s&&t(45,ke=s.selectFirst),"flyToSelected"in s&&t(46,qe=s.flyToSelected),"markerOnSelected"in s&&t(47,Qe=s.markerOnSelected),"types"in s&&t(48,ye=s.types),"exhaustiveReverseGeocoding"in s&&t(49,ot=s.exhaustiveReverseGeocoding),"excludeTypes"in s&&t(50,Ke=s.excludeTypes),"zoom"in s&&t(51,Ve=s.zoom),"apiUrl"in s&&t(52,st=s.apiUrl),"fetchParameters"in s&&t(53,at=s.fetchParameters),"iconsBaseUrl"in s&&t(12,Qt=s.iconsBaseUrl),"adjustUrlQuery"in s&&t(54,lt=s.adjustUrlQuery),"adjustUrl"in s&&t(55,ut=s.adjustUrl),"$$scope"in s&&t(66,o=s.$$scope)},i.$$.update=()=>{if(i.$$.dirty[0]&64&&t(0,A=O==="always"),i.$$.dirty[0]&16384|i.$$.dirty[1]&4096&&Ze!=="marker-only"&&h&&!h.address&&h.geometry.type==="Point"&&h.place_type[0]!=="reverse"&&ft(h.id,{byId:!0}).catch(s=>t(19,oe=s)),i.$$.dirty[0]&16384|i.$$.dirty[1]&546|i.$$.dirty[2]&1&&(m&&h&&h.id!==ct&&T&&(mt(),w&&t(13,k=void 0),t(61,Q=void 0),t(15,D=-1)),t(62,ct=h==null?void 0:h.id)),i.$$.dirty[0]&196608|i.$$.dirty[1]&1&&setTimeout(()=>{t(16,Te=fe),y&&!Te&&t(1,q="")}),i.$$.dirty[0]&8194|i.$$.dirty[1]&1024&&q.length<E&&(t(13,k=void 0),t(19,oe=void 0),t(61,Q=k)),i.$$.dirty[0]&57344|i.$$.dirty[1]&16384&&ke&&k!=null&&k.length&&D==-1&&!h&&t(15,D=0),i.$$.dirty[0]&8192|i.$$.dirty[1]&1073741824&&Q!==k&&t(61,Q=void 0),i.$$.dirty[0]&73729|i.$$.dirty[1]&1073742336&&m&&m.setEventHandler(s=>{switch(s.type){case"mapClick":A&&hn(s.coordinates);break;case"markerClick":{const F=k==null?void 0:k.find(G=>G.id===s.id);F&&gt(F)}break;case"markerMouseEnter":Q&&t(15,D=Te?(k==null?void 0:k.findIndex(F=>F.id===s.id))??-1:-1);break;case"markerMouseLeave":Q&&t(15,D=-1);break}}),i.$$.dirty[0]&40960&&t(63,r=k==null?void 0:k[D]),i.$$.dirty[1]&33312|i.$$.dirty[2]&2&&m&&r&&T&&qe&&m.flyTo(r.center,Ie(r)),i.$$.dirty[1]&4096&&t(65,n=Ze==="full-geometry-including-polygon-center-marker"),i.$$.dirty[1]&66048|i.$$.dirty[2]&8&&(Qe||m==null||m.setFeatures(void 0,void 0,n)),i.$$.dirty[0]&16384|i.$$.dirty[1]&1073807872|i.$$.dirty[2]&10&&m&&Qe&&!Q&&(m.setFeatures(r?[r]:void 0,h,n),m.setSelectedMarker(r?0:-1)),i.$$.dirty[0]&16384|i.$$.dirty[1]&1073742336|i.$$.dirty[2]&8&&m&&m.setFeatures(Q,h,n),i.$$.dirty[0]&32768|i.$$.dirty[1]&1073742336&&Q&&m&&m.setSelectedMarker(D),i.$$.dirty[0]&2|i.$$.dirty[1]&512&&m){const s=dt(q);m.setReverseMarker(s?[s.decimalLongitude,s.decimalLatitude]:void 0)}i.$$.dirty[2]&2&&he("select",{feature:r}),i.$$.dirty[0]&16384&&he("pick",{feature:h}),i.$$.dirty[0]&73744&&t(64,l=!!(k!=null&&k.length)&&(Te||B)),i.$$.dirty[2]&4&&he("optionsvisibilitychange",{optionsVisible:l}),i.$$.dirty[0]&8192&&he("featureslisted",{features:k}),i.$$.dirty[1]&1073741824&&he("featuresmarked",{features:Q}),i.$$.dirty[0]&1&&he("reversetoggle",{reverse:A}),i.$$.dirty[0]&2&&he("querychange",{query:q}),i.$$.dirty[0]&1|i.$$.dirty[1]&512&&m&&m.indicateReverse(A)},[A,q,u,v,B,S,O,V,I,Ue,de,qt,Qt,k,h,D,Te,fe,ie,oe,pe,mn,Jt,bn,Xt,gt,Yt,vn,d,f,g,y,w,N,R,Y,T,_,p,C,m,E,L,Ze,Ge,ke,qe,Qe,ye,ot,Ke,Ve,st,at,lt,ut,un,cn,Kt,dn,fn,Q,ct,r,l,n,o,c,Ln,_n,yn,pn,wn,En,Sn,Nn,kn,Mn,Tn,Cn,Wn]}let an=class extends _e{constructor(e){super(),Le(this,e,sn,on,be,{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,mapController:40,minLength:41,noResultsMessage:8,placeholder:9,proximity:42,reverseActive:0,reverseButtonTitle:10,searchValue:1,pickedResultStyle:43,showPlaceType:11,showResultsWhileTyping:44,selectFirst:45,flyToSelected:46,markerOnSelected:47,types:48,exhaustiveReverseGeocoding:49,excludeTypes:50,zoom:51,apiUrl:52,fetchParameters:53,iconsBaseUrl:12,adjustUrlQuery:54,adjustUrl:55,focus:56,blur:57,setQuery:58,clearList:59,clearMap:60},null,[-1,-1,-1,-1])}get ZOOM_DEFAULTS(){return this.$$.ctx[28]}get focus(){return this.$$.ctx[56]}get blur(){return this.$$.ctx[57]}get setQuery(){return this.$$.ctx[58]}get clearList(){return this.$$.ctx[59]}get clearMap(){return this.$$.ctx[60]}};const ln=new FinalizationRegistry(i=>{i.$destroy()}),rt=class rt extends EventTarget{constructor({target:t,...n}){super();yt(this,He);yt(this,x);$t(this,x,new an({target:t,props:n}));for(const r of["select","pick","featureslisted","featuresmarked","response","optionsvisibilitychange","reversetoggle","querychange"])re(this,x).$on(r,l=>{ei(this,He,ii).call(this,r,l.detail)});re(this,x).$on("select",r=>{const l=new CustomEvent(r.type,{detail:r.detail});this.dispatchEvent(l)}),ln.register(this,re(this,x))}setOptions(t){re(this,x).$set(t)}setQuery(t,n=!0){var r;(r=re(this,x))==null||r.setQuery(t,n)}clearMap(){var t;(t=re(this,x))==null||t.clearMap()}clearList(){var t;(t=re(this,x))==null||t.clearList()}setReverseMode(t){var n;(n=re(this,x))==null||n.$set({reverseActive:t})}focus(t){var n;(n=re(this,x))==null||n.focus(t)}blur(){var t;(t=re(this,x))==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)}};x=new WeakMap,He=new WeakSet,ii=function(t,n){return ti(rt.prototype,this,"dispatchEvent").call(this,new CustomEvent(t,{detail:n}))};let nt=rt;z.GeocodingControl=nt,Object.defineProperty(z,Symbol.toStringTag,{value:"Module"})});
2
2
  //# sourceMappingURL=vanilla.umd.js.map