@maptiler/geocoding-control 2.1.2 → 2.1.3-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.
- package/icons/sprite.json +259 -0
- package/icons/sprite.png +0 -0
- package/icons/sprite@2x.json +259 -0
- package/icons/sprite@2x.png +0 -0
- package/leaflet.js +1668 -1581
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +13 -1
- package/leaflet.umd.js.map +1 -1
- package/maplibregl.js +1405 -1318
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +13 -1
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.js +1406 -1319
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +13 -1
- package/maptilersdk.umd.js.map +1 -1
- package/openlayers.js +1471 -1384
- package/openlayers.js.map +1 -1
- package/openlayers.umd.js +13 -1
- package/openlayers.umd.js.map +1 -1
- package/package.json +5 -5
- package/react.js +985 -898
- package/react.js.map +1 -1
- package/react.umd.js +13 -1
- package/react.umd.js.map +1 -1
- package/style.css +1 -1
- package/svelte/FeatureItem.svelte +70 -18
- package/svelte/GeocodingControl.svelte +46 -17
- package/svelte/GeocodingControl.svelte.d.ts +1 -0
- package/svelte/info.json +1 -1
- package/svelte/types.d.ts +1 -0
- package/types.d.ts +1 -0
- package/vanilla.js +1028 -941
- package/vanilla.js.map +1 -1
- package/vanilla.umd.js +13 -1
- package/vanilla.umd.js.map +1 -1
- package/icons/aerialway.svg +0 -1
- package/icons/airfield.svg +0 -1
- package/icons/airport.svg +0 -6
- package/icons/alcohol_shop.svg +0 -1
- package/icons/american_football.svg +0 -1
- package/icons/animal_shelter.svg +0 -4
- package/icons/aquarium.svg +0 -1
- package/icons/art_gallery.svg +0 -4
- package/icons/atm.svg +0 -5
- package/icons/attraction.svg +0 -1
- package/icons/bakery.svg +0 -1
- package/icons/bank.svg +0 -1
- package/icons/bar.svg +0 -1
- package/icons/barrier.svg +0 -4
- package/icons/baseball.svg +0 -4
- package/icons/basketball.svg +0 -4
- package/icons/bbq.svg +0 -4
- package/icons/beach.svg +0 -4
- package/icons/beer.svg +0 -4
- package/icons/bench.svg +0 -4
- package/icons/bicycle.svg +0 -4
- package/icons/bicycle_parking.svg +0 -5
- package/icons/bicycle_rental.svg +0 -5
- package/icons/bicycle_share.svg +0 -1
- package/icons/billiards.svg +0 -4
- package/icons/board.svg +0 -4
- package/icons/bollard.svg +0 -4
- package/icons/bowling.svg +0 -4
- package/icons/buddhist.svg +0 -1
- package/icons/building.svg +0 -4
- package/icons/bulldozer.svg +0 -4
- package/icons/bus_guided.svg +0 -4
- package/icons/bus_stop.svg +0 -1
- package/icons/bus_trolley.svg +0 -4
- package/icons/butcher.svg +0 -4
- package/icons/cafe.svg +0 -1
- package/icons/camper_trailer.svg +0 -4
- package/icons/campfire.svg +0 -4
- package/icons/campsite.svg +0 -1
- package/icons/car.svg +0 -1
- package/icons/car_rental.svg +0 -1
- package/icons/car_repair.svg +0 -14
- package/icons/casino.svg +0 -1
- package/icons/castle.svg +0 -1
- package/icons/caution.svg +0 -4
- package/icons/cemetery.svg +0 -4
- package/icons/charging_station.svg +0 -4
- package/icons/christian.svg +0 -5
- package/icons/cinema.svg +0 -1
- package/icons/circle-dot.svg +0 -4
- package/icons/circle-stroke.svg +0 -4
- package/icons/circle.svg +0 -4
- package/icons/city.svg +0 -4
- package/icons/clothing_store.svg +0 -1
- package/icons/college.svg +0 -1
- package/icons/commercial.svg +0 -1
- package/icons/communications_tower.svg +0 -4
- package/icons/confectionery.svg +0 -4
- package/icons/construction.svg +0 -4
- package/icons/convenience.svg +0 -1
- package/icons/cricket.svg +0 -4
- package/icons/cross.svg +0 -4
- package/icons/cycle_barrier.svg +0 -4
- package/icons/dam.svg +0 -4
- package/icons/danger.svg +0 -4
- package/icons/defibrillator.svg +0 -1
- package/icons/dentist.svg +0 -1
- package/icons/diamond.svg +0 -4
- package/icons/diamond_stroked.svg +0 -4
- package/icons/diplomatic.svg +0 -1
- package/icons/doctors.svg +0 -1
- package/icons/dog_park.svg +0 -1
- package/icons/dot.svg +0 -4
- package/icons/drinking_water.svg +0 -4
- package/icons/elevator.svg +0 -1
- package/icons/emergency_phone.svg +0 -4
- package/icons/entrance.svg +0 -4
- package/icons/farm.svg +0 -4
- package/icons/fast_food.svg +0 -1
- package/icons/fence.svg +0 -4
- package/icons/ferry_terminal.svg +0 -1
- package/icons/fire_station.svg +0 -1
- package/icons/fitness_centre.svg +0 -1
- package/icons/florist.svg +0 -4
- package/icons/fountain.svg +0 -1
- package/icons/fuel.svg +0 -1
- package/icons/furniture.svg +0 -4
- package/icons/gaming.svg +0 -4
- package/icons/garden.svg +0 -4
- package/icons/garden_centre.svg +0 -4
- package/icons/gate.svg +0 -4
- package/icons/gift.svg +0 -1
- package/icons/globe.svg +0 -4
- package/icons/golf.svg +0 -1
- package/icons/golf_green.svg +0 -4
- package/icons/gondola.svg +0 -4
- package/icons/grocery.svg +0 -1
- package/icons/guidepost.svg +0 -4
- package/icons/hairdresser.svg +0 -1
- package/icons/harbor.svg +0 -1
- package/icons/hardware.svg +0 -4
- package/icons/heart.svg +0 -4
- package/icons/heliport.svg +0 -4
- package/icons/highway_rest_area.svg +0 -4
- package/icons/hinduist.svg +0 -1
- package/icons/historic.svg +0 -1
- package/icons/home.svg +0 -4
- package/icons/horse_riding.svg +0 -1
- package/icons/hospital.svg +0 -1
- package/icons/hot_spring.svg +0 -4
- package/icons/hut.svg +0 -1
- package/icons/ice_cream.svg +0 -1
- package/icons/industry.svg +0 -4
- package/icons/information.svg +0 -1
- package/icons/jewelry.svg +0 -1
- package/icons/jewish.svg +0 -1
- package/icons/karaoke.svg +0 -4
- package/icons/landmark.svg +0 -1
- package/icons/laundry.svg +0 -1
- package/icons/library.svg +0 -1
- package/icons/lift_gate.svg +0 -4
- package/icons/light_rail.svg +0 -4
- package/icons/lighthouse.svg +0 -4
- package/icons/lodging.svg +0 -1
- package/icons/marker.svg +0 -4
- package/icons/marker_stroked.svg +0 -4
- package/icons/mobile_phone.svg +0 -1
- package/icons/monorail.svg +0 -4
- package/icons/monument.svg +0 -1
- package/icons/motorcycle.svg +0 -4
- package/icons/motorcycle_parking.svg +0 -4
- package/icons/motorcycle_rental.svg +0 -4
- package/icons/motorcycle_repair.svg +0 -4
- package/icons/museum.svg +0 -1
- package/icons/music.svg +0 -1
- package/icons/muslim.svg +0 -1
- package/icons/natural.svg +0 -4
- package/icons/noodle.svg +0 -4
- package/icons/obelisk.svg +0 -4
- package/icons/observation_tower.svg +0 -4
- package/icons/oneway.svg +0 -4
- package/icons/optician.svg +0 -4
- package/icons/outdoor.svg +0 -1
- package/icons/paint.svg +0 -1
- package/icons/park.svg +0 -4
- package/icons/parking.svg +0 -1
- package/icons/parking_garage.svg +0 -1
- package/icons/parking_paid.svg +0 -4
- package/icons/peak.svg +0 -1
- package/icons/perfumery.svg +0 -1
- package/icons/pharmacy.svg +0 -1
- package/icons/picnic_site.svg +0 -1
- package/icons/pin.svg +0 -4
- package/icons/pipe.svg +0 -4
- package/icons/pitch.svg +0 -1
- package/icons/pizza.svg +0 -4
- package/icons/place_of_worship.svg +0 -4
- package/icons/playground.svg +0 -4
- package/icons/police.svg +0 -1
- package/icons/post.svg +0 -1
- package/icons/prison.svg +0 -1
- package/icons/racetrack.svg +0 -4
- package/icons/radiation.svg +0 -4
- package/icons/railway.svg +0 -4
- package/icons/ranger_station.svg +0 -4
- package/icons/recycling.svg +0 -4
- package/icons/restaurant.svg +0 -1
- package/icons/road_accident.svg +0 -4
- package/icons/roadblock.svg +0 -4
- package/icons/rocket.svg +0 -4
- package/icons/school.svg +0 -1
- package/icons/school_bus.svg +0 -4
- package/icons/scooter.svg +0 -1
- package/icons/sculpture.svg +0 -4
- package/icons/seafood.svg +0 -4
- package/icons/shelter.svg +0 -4
- package/icons/shinto.svg +0 -1
- package/icons/shoes.svg +0 -4
- package/icons/shop.svg +0 -1
- package/icons/sikh.svg +0 -4
- package/icons/skateboard.svg +0 -1
- package/icons/snow.svg +0 -4
- package/icons/soccer.svg +0 -4
- package/icons/spring.svg +0 -4
- package/icons/square.svg +0 -4
- package/icons/square_stroked.svg +0 -4
- package/icons/stadium.svg +0 -1
- package/icons/star.svg +0 -4
- package/icons/star_stroked.svg +0 -4
- package/icons/statue.svg +0 -4
- package/icons/subway.svg +0 -4
- package/icons/suitcase.svg +0 -1
- package/icons/sushi.svg +0 -4
- package/icons/swimming.svg +0 -5
- package/icons/swimming_pool.svg +0 -8
- package/icons/tako.svg +0 -4
- package/icons/taoist.svg +0 -1
- package/icons/taxi.svg +0 -4
- package/icons/teahouse.svg +0 -4
- package/icons/telephone.svg +0 -1
- package/icons/tennis.svg +0 -1
- package/icons/terminal.svg +0 -4
- package/icons/theatre.svg +0 -1
- package/icons/theme_park.svg +0 -4
- package/icons/toilets.svg +0 -1
- package/icons/toll.svg +0 -1
- package/icons/town.svg +0 -4
- package/icons/town_hall.svg +0 -4
- package/icons/tram_stop.svg +0 -4
- package/icons/tramway.svg +0 -1
- package/icons/transit.svg +0 -4
- package/icons/triangle.svg +0 -4
- package/icons/triangle_stroked.svg +0 -4
- package/icons/truck.svg +0 -4
- package/icons/tunnel.svg +0 -4
- package/icons/veterinary.svg +0 -4
- package/icons/viewpoint.svg +0 -4
- package/icons/village.svg +0 -4
- package/icons/volcano.svg +0 -1
- package/icons/volleyball.svg +0 -4
- package/icons/warehouse.svg +0 -4
- package/icons/waste_basket.svg +0 -1
- package/icons/watches.svg +0 -1
- package/icons/water.svg +0 -4
- package/icons/water_park.svg +0 -6
- package/icons/water_tower.svg +0 -4
- package/icons/watermill.svg +0 -4
- package/icons/wetland.svg +0 -4
- package/icons/wheelchair.svg +0 -1
- package/icons/windmill.svg +0 -1
- package/icons/wine.svg +0 -4
- package/icons/zoo.svg +0 -1
package/vanilla.umd.js
CHANGED
|
@@ -1,2 +1,14 @@
|
|
|
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 Gn=Object.defineProperty;var Hn=Object.getPrototypeOf;var Zn=Reflect.get;var li=z=>{throw TypeError(z)};var qn=(z,b,j)=>b in z?Gn(z,b,{enumerable:!0,configurable:!0,writable:!0,value:j}):z[b]=j;var St=(z,b,j)=>qn(z,typeof b!="symbol"?b+"":b,j),Tt=(z,b,j)=>b.has(z)||li("Cannot "+j);var oe=(z,b,j)=>(Tt(z,b,"read from private field"),j?j.call(z):b.get(z)),Nt=(z,b,j)=>b.has(z)?li("Cannot add the same private member more than once"):b instanceof WeakSet?b.add(z):b.set(z,j),ui=(z,b,j,De)=>(Tt(z,b,"write to private field"),De?De.call(z,j):b.set(z,j),j),ci=(z,b,j)=>(Tt(z,b,"access private method"),j);var di=(z,b,j)=>Zn(Hn(z),j,b);var $,Ve,fi;function b(){}function j(i,e){for(const t in e)i[t]=e[t];return i}function De(i){return i()}function kt(){return Object.create(null)}function de(i){i.forEach(De)}function Mt(i){return typeof i=="function"}function ye(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let He;function X(i,e){return i===e?!0:(He||(He=document.createElement("a")),He.href=e,i===He.href)}function mi(i){return Object.keys(i).length===0}function gi(i,e,t,n){if(i){const r=Ct(i,e,t,n);return i[0](r)}}function Ct(i,e,t,n){return i[1]&&n?j(t.ctx.slice(),i[1](n(e))):t.ctx}function hi(i,e,t,n){return i[2],e.dirty}function bi(i,e,t,n,r,l){if(r){const c=Ct(e,t,n,l);i.p(c,r)}}function vi(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 Ze(i){return i??""}function k(i,e){i.appendChild(e)}function B(i,e,t){i.insertBefore(e,t||null)}function P(i){i.parentNode&&i.parentNode.removeChild(i)}function I(i){return document.createElement(i)}function fe(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function be(i){return document.createTextNode(i)}function ee(){return be(" ")}function Li(){return be("")}function Q(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function _i(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 yi(i){return Array.from(i.childNodes)}function Re(i,e){e=""+e,i.data!==e&&(i.data=e)}function Wt(i,e){i.value=e??""}function Ne(i,e,t){i.classList.toggle(e,!!t)}function pi(i,e,{bubbles:t=!1,cancelable:n=!1}={}){return new CustomEvent(i,{detail:e,bubbles:t,cancelable:n})}let Ue;function Ie(i){Ue=i}function zt(){if(!Ue)throw new Error("Function called outside component initialization");return Ue}function wi(i){zt().$$.on_destroy.push(i)}function Ot(){const i=zt();return(e,t,{cancelable:n=!1}={})=>{const r=i.$$.callbacks[e];if(r){const l=pi(e,t,{cancelable:n});return r.slice().forEach(c=>{c.call(i,l)}),!l.defaultPrevented}return!0}}function Ei(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const ke=[],rt=[];let Me=[];const Dt=[],Si=Promise.resolve();let st=!1;function Ti(){st||(st=!0,Si.then(Rt))}function ot(i){Me.push(i)}const at=new Set;let Ce=0;function Rt(){if(Ce!==0)return;const i=Ue;do{try{for(;Ce<ke.length;){const e=ke[Ce];Ce++,Ie(e),Ni(e.$$)}}catch(e){throw ke.length=0,Ce=0,e}for(Ie(null),ke.length=0,Ce=0;rt.length;)rt.pop()();for(let e=0;e<Me.length;e+=1){const t=Me[e];at.has(t)||(at.add(t),t())}Me.length=0}while(ke.length);for(;Dt.length;)Dt.pop()();st=!1,at.clear(),Ie(i)}function Ni(i){if(i.fragment!==null){i.update(),de(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(ot)}}function ki(i){const e=[],t=[];Me.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Me=e}const qe=new Set;let pe;function Qe(){pe={r:0,c:[],p:pe}}function Ke(){pe.r||de(pe.c),pe=pe.p}function G(i,e){i&&i.i&&(qe.delete(i),i.i(e))}function V(i,e,t,n){if(i&&i.o){if(qe.has(i))return;qe.add(i),pe.c.push(()=>{qe.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Ut(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Mi(i,e){V(i,1,1,()=>{e.delete(i.key)})}function Ci(i,e,t,n,r,l,c,s,d,u,f,g){let v=i.length,y=l.length,w=v;const A={};for(;w--;)A[i[w].key]=w;const S=[],T=new Map,D=new Map,O=[];for(w=y;w--;){const L=g(r,l,w),p=t(L);let M=c.get(p);M?O.push(()=>M.p(L,e)):(M=u(p,L),M.c()),T.set(p,S[w]=M),p in A&&D.set(p,Math.abs(w-A[p]))}const K=new Set,J=new Set;function W(L){G(L,1),L.m(s,f),c.set(L.key,L),f=L.first,y--}for(;v&&y;){const L=S[y-1],p=i[v-1],M=L.key,C=p.key;L===p?(f=L.first,v--,y--):T.has(C)?!c.has(M)||K.has(M)?W(L):J.has(C)?v--:D.get(M)>D.get(C)?(J.add(M),W(L)):(K.add(C),v--):(d(p,c),v--)}for(;v--;){const L=i[v];T.has(L.key)||d(L,c)}for(;y;)W(S[y-1]);return de(O),S}function ve(i){i&&i.c()}function me(i,e,t){const{fragment:n,after_update:r}=i.$$;n&&n.m(e,t),ot(()=>{const l=i.$$.on_mount.map(De).filter(Mt);i.$$.on_destroy?i.$$.on_destroy.push(...l):de(l),i.$$.on_mount=[]}),r.forEach(ot)}function ge(i,e){const t=i.$$;t.fragment!==null&&(ki(t.after_update),de(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function Wi(i,e){i.$$.dirty[0]===-1&&(ke.push(i),Ti(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function we(i,e,t,n,r,l,c=null,s=[-1]){const d=Ue;Ie(i);const u=i.$$={fragment:null,ctx:[],props:l,update:b,not_equal:r,bound:kt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(d?d.$$.context:[])),callbacks:kt(),dirty:s,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&&Wi(i,g)),v}):[],u.update(),f=!0,de(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){const g=yi(e.target);u.fragment&&u.fragment.l(g),g.forEach(P)}else u.fragment&&u.fragment.c();e.intro&&G(i.$$.fragment),me(i,e.target,e.anchor),Rt()}Ie(d)}class Ee{constructor(){St(this,"$$");St(this,"$$set")}$destroy(){ge(this,1),this.$destroy=b}$on(e,t){if(!Mt(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&&!mi(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const zi="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(zi);function Oi(i){let e,t;return{c(){e=fe("svg"),t=fe("path"),a(t,"d","M13.12.706a.982.982 0 0 0-1.391 0L6.907 5.517 2.087.696a.982.982 0 1 0-1.391 1.39l4.821 4.821L.696 11.73a.982.982 0 1 0 1.39 1.39l4.821-4.821 4.822 4.821a.982.982 0 1 0 1.39-1.39L8.298 6.908l4.821-4.822a.988.988 0 0 0 0-1.38Z"),a(e,"viewBox","0 0 14 14"),a(e,"width","13"),a(e,"height","13"),a(e,"class","svelte-en2qvf")},m(n,r){B(n,e,r),k(e,t)},p:b,i:b,o:b,d(n){n&&P(e)}}}class It extends Ee{constructor(e){super(),we(this,e,null,Oi,ye,{})}}function Di(i){let e,t;return{c(){e=fe("svg"),t=fe("path"),a(t,"d","M15 0C6.705 0 0 6.705 0 15C0 23.295 6.705 30 15 30C23.295 30 30 23.295 30 15C30 6.705 23.295 0 15 0ZM22.5 20.385L20.385 22.5L15 17.115L9.615 22.5L7.5 20.385L12.885 15L7.5 9.615L9.615 7.5L15 12.885L20.385 7.5L22.5 9.615L17.115 15L22.5 20.385Z"),a(e,"viewBox","0 0 30 30"),a(e,"fill","none"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"class","svelte-d2loi5")},m(n,r){B(n,e,r),k(e,t)},p:b,i:b,o:b,d(n){n&&P(e)}}}class At extends Ee{constructor(e){super(),we(this,e,null,Di,ye,{})}}function Ri(i){let e,t;return{c(){e=I("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){B(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&&P(e)}}}function Ui(i){let e,t;return{c(){e=I("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){B(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&&P(e)}}}function Ii(i){let e,t;return{c(){e=I("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){B(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&&P(e)}}}function Ai(i){let e,t;return{c(){e=I("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){B(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&&P(e)}}}function Pi(i){let e,t;return{c(){e=I("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){B(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&&P(e)}}}function Bi(i){let e,t;return{c(){e=I("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){B(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&&P(e)}}}function Fi(i){let e,t;return{c(){e=I("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){B(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&&P(e)}}}function ji(i){let e,t,n,r;return{c(){e=I("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){B(l,e,c),n||(r=Q(e,"error",i[14]),n=!0)},p(l,c){c&32&&!X(e.src,t=l[5])&&a(e,"src",t),c&16&&a(e,"alt",l[4]),c&64&&a(e,"title",l[6])},d(l){l&&P(e),n=!1,r()}}}function Pt(i){let e,t;return{c(){e=I("span"),t=be(i[6]),a(e,"class","secondary svelte-z7p9pp")},m(n,r){B(n,e,r),k(e,t)},p(n,r){r&64&&Re(t,n[6])},d(n){n&&P(e)}}}function Gi(i){let e,t,n,r,l,c,s,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,A,S=(i[8]?"":i[0].place_name.replace(/[^,]*,?\s*/,""))+"",T,D,O,K,J,W;function L(E,m){return m&1&&(t=null),m&1&&(n=null),m&1&&(r=null),m&1&&(l=null),E[5]?ji:E[0].address?Fi:(t==null&&(t=!!E[0].id.startsWith("road.")),t?Bi:(n==null&&(n=!!E[0].id.startsWith("address.")),n?Pi:(r==null&&(r=!!E[0].id.startsWith("postal_code.")),r?Ai:(l==null&&(l=!!E[0].id.startsWith("poi.")),l?Ii:E[8]?Ui:Ri))))}let p=L(i,-1),M=p(i),C=y&&Pt(i);return{c(){e=I("li"),M.c(),c=ee(),s=I("span"),d=I("span"),u=I("span"),g=be(f),v=ee(),C&&C.c(),w=ee(),A=I("span"),T=be(S),a(u,"class","primary svelte-z7p9pp"),a(d,"class","svelte-z7p9pp"),a(A,"class","line2 svelte-z7p9pp"),a(s,"class","texts svelte-z7p9pp"),a(e,"tabindex","-1"),a(e,"role","option"),a(e,"aria-selected",D=i[1]==="selected"),a(e,"aria-checked",O=i[1]==="picked"),a(e,"class",K=Ze(i[1])+" svelte-z7p9pp")},m(E,m){B(E,e,m),M.m(e,null),k(e,c),k(e,s),k(s,d),k(d,u),k(u,g),k(d,v),C&&C.m(d,null),k(s,w),k(s,A),k(A,T),J||(W=[Q(e,"mouseenter",i[13]),Q(e,"focus",i[15]),Q(e,"click",i[16])],J=!0)},p(E,[m]){p===(p=L(E,m))&&M?M.p(E,m):(M.d(1),M=p(E),M&&(M.c(),M.m(e,c))),m&1&&f!==(f=(E[8]?E[0].place_name:E[0].place_name.replace(/,.*/,""))+"")&&Re(g,f),m&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?C?C.p(E,m):(C=Pt(E),C.c(),C.m(d,null)):C&&(C.d(1),C=null),m&1&&S!==(S=(E[8]?"":E[0].place_name.replace(/[^,]*,?\s*/,""))+"")&&Re(T,S),m&2&&D!==(D=E[1]==="selected")&&a(e,"aria-selected",D),m&2&&O!==(O=E[1]==="picked")&&a(e,"aria-checked",O),m&2&&K!==(K=Ze(E[1])+" svelte-z7p9pp")&&a(e,"class",K)},i:b,o:b,d(E){E&&P(e),M.d(),C&&C.d(),J=!1,de(W)}}}function Hi(i,e,t){var J;let n,r,{feature:l}=e,{style:c="default"}=e,{showPlaceType:s}=e,{missingIconsCache:d}=e,{iconsBaseUrl:u}=e;const f=Ot(),g=(J=l.properties)==null?void 0:J.categories;let v,y,w=0,A=l.place_type[0]==="reverse";function S(){y&&d.add(y),t(11,w++,w)}function T(W){Ei.call(this,i,W)}const D=()=>S(),O=()=>f("select",void 0),K=W=>{document.activeElement!==W.target&&f("select",void 0)};return i.$$set=W=>{"feature"in W&&t(0,l=W.feature),"style"in W&&t(1,c=W.style),"showPlaceType"in W&&t(2,s=W.showPlaceType),"missingIconsCache"in W&&t(10,d=W.missingIconsCache),"iconsBaseUrl"in W&&t(3,u=W.iconsBaseUrl)},i.$$.update=()=>{var W,L,p,M;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=((L=(W=l.properties)==null?void 0:W.categories)==null?void 0:L.join(", "))??((M=(p=l.properties)==null?void 0:p.place_type_name)==null?void 0:M[0])??l.place_type[0])},t(12,n=(g==null?void 0:g.length)??0),[l,c,s,u,v,y,r,f,A,S,d,w,n,T,D,O,K]}class Zi extends Ee{constructor(e){super(),we(this,e,Hi,Gi,ye,{feature:0,style:1,showPlaceType:2,missingIconsCache:10,iconsBaseUrl:3})}}function qi(i){let e;return{c(){e=I("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){B(t,e,n)},p:b,i:b,o:b,d(t){t&&P(e)}}}class Qi extends Ee{constructor(e){super(),we(this,e,null,qi,ye,{})}}function Ki(i){let e,t;return{c(){e=fe("svg"),t=fe("path"),a(t,"d","M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"),a(e,"viewBox","0 0 60.006 21.412"),a(e,"width","14"),a(e,"height","20"),a(e,"class","svelte-en2qvf")},m(n,r){B(n,e,r),k(e,t)},p:b,i:b,o:b,d(n){n&&P(e)}}}class Vi extends Ee{constructor(e){super(),we(this,e,null,Ki,ye,{})}}function Yi(i){let e,t,n;return{c(){e=fe("svg"),t=fe("circle"),n=fe("path"),a(t,"cx","4.789"),a(t,"cy","4.787"),a(t,"r","3.85"),a(t,"class","svelte-1aq105l"),a(n,"d","M12.063 12.063 7.635 7.635"),a(n,"class","svelte-1aq105l"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"width","13"),a(e,"height","13"),a(e,"viewBox","0 0 13 13"),a(e,"class","svelte-1aq105l")},m(r,l){B(r,e,l),k(e,t),k(e,n)},p:b,i:b,o:b,d(r){r&&P(e)}}}class Xi extends Ee{constructor(e){super(),we(this,e,null,Yi,ye,{})}}function Ji(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 Bt(i){const e=[...i];return e[2]<e[0]&&(Math.abs((e[0]+e[2]+360)/2)>Math.abs((e[0]-360+e[2])/2)?e[0]-=360:e[2]+=360),e}let Ae;async function xi(i,e,t){const n=i==null?void 0:i.getCenterAndZoom();for(const r of e??[])if(!(n&&(r.minZoom!=null&&r.minZoom>n[0]||r.maxZoom!=null&&r.maxZoom<n[0]))){if(r.type==="fixed")return r.coordinates.join(",");e:if(r.type==="client-geolocation"){if(Ae&&r.cachedLocationExpiry&&Ae.time+r.cachedLocationExpiry>Date.now()){if(!Ae.coords)break e;return Ae.coords}let l;try{return l=await new Promise((c,s)=>{t.signal.addEventListener("abort",()=>{s(Error("aborted"))}),navigator.geolocation.getCurrentPosition(d=>{c([d.coords.longitude,d.coords.latitude].map(u=>u.toFixed(6)).join(","))},d=>{s(d)},r)}),l}catch{}finally{r.cachedLocationExpiry&&(Ae={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 $i=/^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(EAST|WEST|[EW])?$/i,Ft=/^([+-]?[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,})$/,jt=/^(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,Gt=/^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(EAST|WEST|[EW])?$/i,Ht=/^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)\s*(EAST|WEST|[EW])?$/i,Zt=/^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|’’|´´|["″”\.])?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|´´|’’|["″”\.])?\s*(EAST|WEST|[EW])?$/i;function en(i){if(!["DMS","DM","DD"].includes(i))throw new Error("invalid format specified");if(this.decimalCoordinates&&this.decimalCoordinates.trim()){const e=this.decimalCoordinates.split(",").map(y=>Number(y.trim())),t=Number(e[0]),n=Number(e[1]),r=Math.abs(t),l=Math.abs(n),c=t>0?"N":"S",s=n>0?"E":"W";let d;i=="DD"&&(d=`${r}° ${c}, ${l}° ${s}`);const u=Math.floor(r),f=Math.floor(l),g=(r-u)*60,v=(l-f)*60;if(i=="DM"){let y=qt(g,3).toFixed(3).padStart(6,"0"),w=qt(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}' ${s}`}if(i=="DMS"){const y=Math.floor(g),w=Math.floor(v);let A=((g-y)*60).toFixed(1).padStart(4,"0"),S=((v-w)*60).toFixed(1).padStart(4,"0");const T=y.toString().padStart(2,"0"),D=w.toString().padStart(2,"0");A.endsWith(".0")&&S.endsWith(".0")&&(A=A.replace(/\.0$/,""),S=S.replace(/\.0$/,"")),d=`${u}° ${T}' ${A}" ${c}, ${f}° ${D}' ${S}" ${s}`}return d}else throw new Error("no decimal coordinates to convert")}function qt(i,e){const t=Math.pow(10,e);return Math.round((i+Number.EPSILON)*t)/t}function lt(i,e){e||(e=5),i=i.replace(/\s+/g," ").trim();let t=null,n=null,r="",l="",c=null,s=[],d=!1;if($i.test(i))throw new Error("invalid coordinate value");if(Ft.test(i))if(s=Ft.exec(i),d=Pe(s),d)t=Math.abs(s[1])+s[2]/60,Number(s[1])<0&&(t*=-1),n=Math.abs(s[3])+s[4]/60,Number(s[3])<0&&(n*=-1),c="DM";else throw new Error("invalid coordinate format");else if(jt.test(i))if(s=jt.exec(i),d=Pe(s),d){if(t=s[2],n=s[6],t.includes(",")&&(t=t.replace(",",".")),n.includes(",")&&(n=n.replace(",",".")),c="DD",Number(Math.round(t))==Number(t))throw new Error("integer only coordinate provided");if(Number(Math.round(n))==Number(n))throw new Error("integer only coordinate provided");s[1]?(r=s[1],l=s[5]):s[4]&&(r=s[4],l=s[8])}else throw new Error("invalid decimal coordinate format");else if(Gt.test(i))if(s=Gt.exec(i),d=Pe(s),d)t=Math.abs(parseInt(s[2])),s[4]&&(t+=s[4]/60,c="DM"),s[6]&&(t+=s[6].replace(",",".")/3600,c="DMS"),parseInt(s[2])<0&&(t=-1*t),n=Math.abs(parseInt(s[9])),s[11]&&(n+=s[11]/60),s[13]&&(n+=s[13].replace(",",".")/3600),parseInt(s[9])<0&&(n=-1*n),s[1]?(r=s[1],l=s[8]):s[7]&&(r=s[7],l=s[14]);else throw new Error("invalid DMS coordinates format");else if(Ht.test(i))if(s=Ht.exec(i),d=Pe(s),d)t=Math.abs(parseInt(s[2])),s[4]&&(t+=s[4]/60,c="DM"),s[6]&&(t+=s[6]/3600,c="DMS"),parseInt(s[2])<0&&(t=-1*t),n=Math.abs(parseInt(s[10])),s[12]&&(n+=s[12]/60),s[14]&&(n+=s[14]/3600),parseInt(s[10])<0&&(n=-1*n),s[1]?(r=s[1],l=s[9]):s[8]&&(r=s[8],l=s[16]);else throw new Error("invalid DMS coordinates format");else if(Zt.test(i)){if(s=Zt.exec(i),d=Pe(s),s.filter(u=>u).length<=5)throw new Error("invalid coordinates format");if(d)t=Math.abs(parseInt(s[2])),s[4]&&(t+=s[4].replace(",",".")/60,c="DM"),s[6]&&(t+=s[6].replace(",",".")/3600,c="DMS"),parseInt(s[2])<0&&(t=-1*t),n=Math.abs(parseInt(s[10])),s[12]&&(n+=s[12].replace(",",".")/60),s[14]&&(n+=s[14].replace(",",".")/3600),parseInt(s[10])<0&&(n=-1*n),s[1]?(r=s[1],l=s[9]):s[8]&&(r=s[8],l=s[16]);else throw new Error("invalid coordinates format")}if(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=s[0].trim();let g,v;const y=/[,/;\u0020]/g,w=f.match(y);if(w==null){const T=Math.floor(i.length/2);g=f.substring(0,T).trim(),v=f.substring(T).trim()}else{let T;w.length%2==1?T=Math.floor(w.length/2):T=w.length/2-1;let D=0;if(T==0)D=f.indexOf(w[0]),g=f.substring(0,D).trim(),v=f.substring(D+1).trim();else{let O=0,K=0;for(;O<=T;)D=f.indexOf(w[O],K),K=D+1,O++;g=f.substring(0,D).trim(),v=f.substring(D+1).trim()}}const A=g.split(".");if(A.length==2&&A[1]==0&&A[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:tn,toCoordinateFormat:en})}else throw new Error("coordinates pattern match failed")}function Pe(i){if(!isNaN(i[0]))return!1;const e=[...i];if(e.shift(),e.length%2>0)return!1;const t=/^[-+]?\d+([\.,]\d+)?$/,n=/[eastsouthnorthwest]+/i,r=e.length/2;for(let l=0;l<r;l++){const c=e[l],s=e[l+r],d=t.test(c)&&t.test(s),u=n.test(c)&&n.test(s),f=c==s;if(!(c==null&&s==null)){if(c==null||s==null)return!1;if(d||u||f)continue;return!1}}return!0}function Qt(i,e){const t=Math.abs(i-e);return Number(t.toFixed(6))<=1e-5}function tn(i){if(!i)throw new Error("coords must be provided");if(i.includes(",")){const e=i.split(",");if(Number(e[0])==NaN||Number(e[1])==NaN)throw new Error("coords are not valid decimals");return Qt(this.decimalLatitude,Number(e[0]))&&Qt(this.decimalLongitude,e[1])}else throw new Error("coords being tested must be separated by a comma")}const nn=Object.freeze({DMS:"DMS",DM:"DM",DD:"DD"});lt.to=nn;const rn=[{verbatimCoordinates:"40.123, -74.123",verbatimLatitude:"40.123",verbatimLongitude:"-74.123"},{verbatimCoordinates:"40.123° N 74.123° W",verbatimLatitude:"40.123° N",verbatimLongitude:"74.123° W"},{verbatimCoordinates:"40.123° N 74.123° W",verbatimLatitude:"40.123° N",verbatimLongitude:"74.123° W"},{verbatimCoordinates:'40° 7´ 22.8" N 74° 7´ 22.8" W',verbatimLatitude:'40° 7´ 22.8" N',verbatimLongitude:'74° 7´ 22.8" W'},{verbatimCoordinates:"40° 7.38’ , -74° 7.38’",verbatimLatitude:"40° 7.38’",verbatimLongitude:"-74° 7.38’"},{verbatimCoordinates:"N40°7’22.8’’, W74°7’22.8’’",verbatimLatitude:"N40°7’22.8’’",verbatimLongitude:"W74°7’22.8’’"},{verbatimCoordinates:'40°7’22.8"N, 74°7’22.8"W',verbatimLatitude:'40°7’22.8"N',verbatimLongitude:'74°7’22.8"W'},{verbatimCoordinates:`40°7'22.8"N, 74°7'22.8"W`,verbatimLatitude:`40°7'22.8"N`,verbatimLongitude:`74°7'22.8"W`},{verbatimCoordinates:"40 7 22.8, -74 7 22.8",verbatimLatitude:"40 7 22.8",verbatimLongitude:"-74 7 22.8"},{verbatimCoordinates:"40.123 -74.123",verbatimLatitude:"40.123",verbatimLongitude:"-74.123"},{verbatimCoordinates:"40.123°,-74.123°",verbatimLatitude:"40.123°",verbatimLongitude:"-74.123°"},{verbatimCoordinates:"40.123N74.123W",verbatimLatitude:"40.123N",verbatimLongitude:"74.123W"},{verbatimCoordinates:"4007.38N7407.38W",verbatimLatitude:"4007.38N",verbatimLongitude:"7407.38W"},{verbatimCoordinates:'40°7’22.8"N, 74°7’22.8"W',verbatimLatitude:'40°7’22.8"N',verbatimLongitude:'74°7’22.8"W'},{verbatimCoordinates:"400722.8N740722.8W",verbatimLatitude:"400722.8N",verbatimLongitude:"740722.8W"},{verbatimCoordinates:"N 40 7.38 W 74 7.38",verbatimLatitude:"N 40 7.38",verbatimLongitude:"W 74 7.38"},{verbatimCoordinates:"40:7:22.8N 74:7:22.8W",verbatimLatitude:"40:7:22.8N",verbatimLongitude:"74:7:22.8W"},{verbatimCoordinates:"40:7:23N,74:7:23W",verbatimLatitude:"40:7:23N",verbatimLongitude:"74:7:23W",decimalLatitude:40.1230555555,decimalLongitude:-74.1230555555},{verbatimCoordinates:'40°7’23"N 74°7’23"W',verbatimLatitude:'40°7’23"N',verbatimLongitude:'74°7’23"W',decimalLatitude:40.1230555555,decimalLongitude:-74.12305555555555},{verbatimCoordinates:'40°7’23"S 74°7’23"E',verbatimLatitude:'40°7’23"S',verbatimLongitude:'74°7’23"E',decimalLatitude:-40.1230555555,decimalLongitude:74.12305555555555},{verbatimCoordinates:'40°7’23" -74°7’23"',verbatimLatitude:'40°7’23"',verbatimLongitude:'-74°7’23"',decimalLatitude:40.1230555555,decimalLongitude:-74.123055555},{verbatimCoordinates:'40d 7’ 23" N 74d 7’ 23" W',verbatimLatitude:'40d 7’ 23" N',verbatimLongitude:'74d 7’ 23" W',decimalLatitude:40.1230555555,decimalLongitude:-74.123055555},{verbatimCoordinates:"40.123N 74.123W",verbatimLatitude:"40.123N",verbatimLongitude:"74.123W"},{verbatimCoordinates:"40° 7.38, -74° 7.38",verbatimLatitude:"40° 7.38",verbatimLongitude:"-74° 7.38"},{verbatimCoordinates:"40° 7.38, -74° 7.38",verbatimLatitude:"40° 7.38",verbatimLongitude:"-74° 7.38"},{verbatimCoordinates:"40 7 22.8; -74 7 22.8",verbatimLatitude:"40 7 22.8",verbatimLongitude:"-74 7 22.8"}],sn={decimalLatitude:40.123,decimalLongitude:-74.123},on=[{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}],an=[{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 ln(){const i=[];return rn.forEach(e=>{e.decimalLatitude?i.push(e):i.push({...e,...sn})}),[...i,...on,...an]}const un=ln();lt.formats=un.map(i=>i.verbatimCoordinates);const cn=lt;function Kt(i,e,t){const n=i.slice();return n[97]=e[t],n[99]=t,n}function Vt(i){let e,t;return e=new Qi({}),{c(){ve(e.$$.fragment)},m(n,r){me(e,n,r),t=!0},i(n){t||(G(e.$$.fragment,n),t=!0)},o(n){V(e.$$.fragment,n),t=!1},d(n){ge(e,n)}}}function Yt(i){let e,t,n,r,l;return t=new Vi({}),{c(){e=I("button"),ve(t.$$.fragment),a(e,"type","button"),a(e,"title",i[10]),a(e,"class","svelte-bz0zu3"),Ne(e,"active",i[0])},m(c,s){B(c,e,s),me(t,e,null),n=!0,r||(l=Q(e,"click",i[79]),r=!0)},p(c,s){(!n||s[0]&1024)&&a(e,"title",c[10]),(!n||s[0]&1)&&Ne(e,"active",c[0])},i(c){n||(G(t.$$.fragment,c),n=!0)},o(c){V(t.$$.fragment,c),n=!1},d(c){c&&P(e),ge(t),r=!1,l()}}}function dn(i){let e,t=[],n=new Map,r,l,c,s=Ut(i[13]);const d=u=>u[97].id+(u[97].address?","+u[97].address:"");for(let u=0;u<s.length;u+=1){let f=Kt(i,s,u),g=d(f);n.set(g,t[u]=Xt(g,f))}return{c(){e=I("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){B(u,e,f);for(let g=0;g<t.length;g+=1)t[g]&&t[g].m(e,null);r=!0,l||(c=[Q(e,"mouseleave",i[27]),Q(e,"blur",i[83]),Q(e,"keydown",i[23])],l=!0)},p(u,f){f[0]&102823936&&(s=Ut(u[13]),Qe(),t=Ci(t,f,d,1,u,s,n,e,Mi,Xt,null,Kt),Ke())},i(u){if(!r){for(let f=0;f<s.length;f+=1)G(t[f]);r=!0}},o(u){for(let f=0;f<t.length;f+=1)V(t[f]);r=!1},d(u){u&&P(e);for(let f=0;f<t.length;f+=1)t[f].d();l=!1,de(c)}}}function fn(i){let e,t,n,r,l,c;return t=new At({}),{c(){e=I("div"),ve(t.$$.fragment),n=ee(),r=I("div"),l=be(i[8]),a(r,"class","svelte-bz0zu3"),a(e,"class","no-results svelte-bz0zu3")},m(s,d){B(s,e,d),me(t,e,null),k(e,n),k(e,r),k(r,l),c=!0},p(s,d){(!c||d[0]&256)&&Re(l,s[8])},i(s){c||(G(t.$$.fragment,s),c=!0)},o(s){V(t.$$.fragment,s),c=!1},d(s){s&&P(e),ge(t)}}}function mn(i){let e="",t;return{c(){t=be(e)},m(n,r){B(n,t,r)},p:b,i:b,o:b,d(n){n&&P(t)}}}function gn(i){let e,t,n,r,l,c,s,d,u,f,g;return t=new At({}),d=new It({}),{c(){e=I("div"),ve(t.$$.fragment),n=ee(),r=I("div"),l=be(i[7]),c=ee(),s=I("button"),ve(d.$$.fragment),a(r,"class","svelte-bz0zu3"),a(s,"class","svelte-bz0zu3"),a(e,"class","error svelte-bz0zu3")},m(v,y){B(v,e,y),me(t,e,null),k(e,n),k(e,r),k(r,l),k(e,c),k(e,s),me(d,s,null),u=!0,f||(g=Q(s,"click",i[80]),f=!0)},p(v,y){(!u||y[0]&128)&&Re(l,v[7])},i(v){u||(G(t.$$.fragment,v),G(d.$$.fragment,v),u=!0)},o(v){V(t.$$.fragment,v),V(d.$$.fragment,v),u=!1},d(v){v&&P(e),ge(t),ge(d),f=!1,g()}}}function Xt(i,e){var s;let t,n,r;function l(){return e[81](e[99])}function c(){return e[82](e[97])}return n=new Zi({props:{feature:e[97],showPlaceType:e[11],style:e[15]===e[99]?"selected":((s=e[14])==null?void 0:s.id)===e[97].id?"picked":"default",missingIconsCache:e[21],iconsBaseUrl:e[12]}}),n.$on("mouseenter",l),n.$on("select",c),{key:i,first:null,c(){t=Li(),ve(n.$$.fragment),this.first=t},m(d,u){B(d,t,u),me(n,d,u),r=!0},p(d,u){var g;e=d;const f={};u[0]&8192&&(f.feature=e[97]),u[0]&2048&&(f.showPlaceType=e[11]),u[0]&57344&&(f.style=e[15]===e[99]?"selected":((g=e[14])==null?void 0:g.id)===e[97].id?"picked":"default"),u[0]&4096&&(f.iconsBaseUrl=e[12]),n.$set(f)},i(d){r||(G(n.$$.fragment,d),r=!0)},o(d){V(n.$$.fragment,d),r=!1},d(d){d&&P(t),ge(n,d)}}}function hn(i){let e,t,n,r,l,c,s,d,u,f,g,v,y,w,A,S,T,D,O,K,J,W=!1;l=new Xi({}),g=new It({});let L=i[20]&&Vt(),p=i[6]==="button"&&Yt(i);const M=i[70].default,C=gi(M,i,i[69],null),E=[gn,mn,fn,dn],m=[];function Se(_,H){var ae,ne;return _[19]?0:!_[16]&&!_[4]?1:((ae=_[13])==null?void 0:ae.length)===0?2:(ne=_[13])!=null&&ne.length&&(_[16]||_[4])?3:-1}return~(S=Se(i))&&(T=m[S]=E[S](i)),{c(){e=ee(),t=I("form"),n=I("div"),r=I("button"),ve(l.$$.fragment),c=ee(),s=I("input"),d=ee(),u=I("div"),f=I("button"),ve(g.$$.fragment),v=ee(),L&&L.c(),y=ee(),p&&p.c(),w=ee(),C&&C.c(),A=ee(),T&&T.c(),a(r,"class","search-button svelte-bz0zu3"),a(r,"type","button"),a(s,"placeholder",i[9]),a(s,"aria-label",i[9]),a(s,"class","svelte-bz0zu3"),a(f,"type","button"),a(f,"title",i[3]),a(f,"class","svelte-bz0zu3"),a(u,"class","clear-button-container svelte-bz0zu3"),Ne(u,"displayable",i[1]!==""),a(n,"class","input-group svelte-bz0zu3"),a(t,"class",D=Ze(i[2])+" svelte-bz0zu3"),Ne(t,"can-collapse",i[5]&&i[1]==="")},m(_,H){B(_,e,H),B(_,t,H),k(t,n),k(n,r),me(l,r,null),k(n,c),k(n,s),i[72](s),Wt(s,i[1]),k(n,d),k(n,u),k(u,f),me(g,f,null),k(u,v),L&&L.m(u,null),k(n,y),p&&p.m(n,null),k(n,w),C&&C.m(n,null),k(t,A),~S&&m[S].m(t,null),O=!0,K||(J=[Q(r,"click",i[71]),Q(s,"input",i[73]),Q(s,"focus",i[74]),Q(s,"blur",i[75]),Q(s,"click",i[76]),Q(s,"keydown",i[23]),Q(s,"input",i[24]),Q(s,"change",i[77]),Q(f,"click",i[78]),Q(t,"submit",_i(i[22]))],K=!0)},p(_,H){(!O||H[0]&512)&&a(s,"placeholder",_[9]),(!O||H[0]&512)&&a(s,"aria-label",_[9]),H[0]&2&&s.value!==_[1]&&Wt(s,_[1]),(!O||H[0]&8)&&a(f,"title",_[3]),_[20]?L?H[0]&1048576&&G(L,1):(L=Vt(),L.c(),G(L,1),L.m(u,null)):L&&(Qe(),V(L,1,1,()=>{L=null}),Ke()),(!O||H[0]&2)&&Ne(u,"displayable",_[1]!==""),_[6]==="button"?p?(p.p(_,H),H[0]&64&&G(p,1)):(p=Yt(_),p.c(),G(p,1),p.m(n,w)):p&&(Qe(),V(p,1,1,()=>{p=null}),Ke()),C&&C.p&&(!O||H[2]&128)&&bi(C,M,_,_[69],O?hi(M,_[69],H,null):vi(_[69]),null);let ae=S;S=Se(_),S===ae?~S&&m[S].p(_,H):(T&&(Qe(),V(m[ae],1,1,()=>{m[ae]=null}),Ke()),~S?(T=m[S],T?T.p(_,H):(T=m[S]=E[S](_),T.c()),G(T,1),T.m(t,null)):T=null),(!O||H[0]&4&&D!==(D=Ze(_[2])+" svelte-bz0zu3"))&&a(t,"class",D),(!O||H[0]&38)&&Ne(t,"can-collapse",_[5]&&_[1]==="")},i(_){O||(G(W),G(l.$$.fragment,_),G(g.$$.fragment,_),G(L),G(p),G(C,_),G(T),O=!0)},o(_){V(W),V(l.$$.fragment,_),V(g.$$.fragment,_),V(L),V(p),V(C,_),V(T),O=!1},d(_){_&&(P(e),P(t)),ge(l),i[72](null),ge(g),L&&L.d(),p&&p.d(),C&&C.d(_),~S&&m[S].d(),K=!1,de(J)}}}function bn(i,e,t){let n,r,l,{$$slots:c={},$$scope:s}=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:A=!1}=e,{collapsed:S=!1}=e,{country:T=void 0}=e,{debounceSearch:D=200}=e,{enableReverse:O="never"}=e,{errorMessage:K="Something went wrong…"}=e,{filter:J=()=>!0}=e,{flyTo:W=!0}=e,{fuzzyMatch:L=!0}=e,{language:p=void 0}=e,{limit:M=void 0}=e;const C=41415112612;let{reverseGeocodingLimit:E=C}=e,{mapController:m=void 0}=e,{minLength:Se=2}=e,{noResultsMessage:_="Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!"}=e,{placeholder:H="Search"}=e,{proximity:ae=[{type:"server-geolocation"}]}=e,{reverseActive:ne=O==="always"}=e,{reverseButtonTitle:Jt="toggle reverse geocoding"}=e,{searchValue:Y=""}=e,{pickedResultStyle:Ye="full-geometry"}=e,{showPlaceType:xt="if-needed"}=e,{showResultsWhileTyping:Xe=!0}=e,{selectFirst:We=!0}=e,{flyToSelected:Je=!1}=e,{markerOnSelected:xe=!0}=e,{types:dt=void 0}=e;const $t=[];let{reverseGeocodingTypes:$e=$t}=e,{exhaustiveReverseGeocoding:ft=!1}=e,{excludeTypes:mt=!1}=e;const ei=void 0;let{reverseGeocodingExcludeTypes:et=ei}=e,{zoom:tt=d}=e,{apiUrl:gt="https://api.maptiler.com/geocoding"}=e,{fetchParameters:ht={}}=e,{iconsBaseUrl:ti="https://cdn.maptiler.com/maptiler-geocoding-control/v2.1.2/icons/"}=e,{adjustUrlQuery:bt=()=>{}}=e,{adjustUrl:vt=()=>{}}=e;function _n(o){se.focus(o)}function yn(){se.blur()}function ii(o,F=!0,Z=!1){t(1,Y=o),F?(t(15,R=-1),ri()):(si(void 0,!Z,Z),setTimeout(()=>{se.focus(),se.select()}))}function pn(){t(13,N=void 0),t(14,h=void 0),t(15,R=-1)}function wn(){t(64,q=[]),t(14,h=void 0)}let N,q,h,ni="",se,R=-1,le,it=[],Te,ze,Oe,Lt,he=!1;const En=new Set,Le=Ot();wi(()=>{m&&(m.setEventHandler(void 0),m.indicateReverse(!1),m.setSelectedMarker(-1),m.setFeatures(void 0,void 0,!1))});function ri(o){if(t(17,he=!1),ze&&(clearTimeout(ze),ze=void 0),R>-1&&N)t(14,h=N[R]),t(1,Y=h.place_type[0]==="reverse"?h.place_name:h.place_name.replace(/,.*/,"")),t(19,le=void 0),t(64,q=void 0),t(15,R=-1);else if(Y){const F=o||!_t(Y);yt(Y,{exact:!0}).then(()=>{t(64,q=N),t(14,h=void 0),F&&Sn()}).catch(Z=>t(19,le=Z))}}function _t(o){try{return cn(o,6)}catch{return!1}}async function yt(o,{byId:F=!1,exact:Z=!1}={}){var ie,ue,_e;t(19,le=void 0),Te==null||Te.abort();const te=new AbortController;t(20,Te=te);try{const U=_t(o),Fe=new URL(gt+"/"+encodeURIComponent(U?U.decimalLongitude+","+U.decimalLatitude:o)+".json"),re=Fe.searchParams;p!==void 0&&re.set("language",Array.isArray(p)?p.join(","):p??"");const[Et]=(m==null?void 0:m.getCenterAndZoom())??[];let ce=(ie=!U||$e===$t?dt:$e)==null?void 0:ie.map(x=>typeof x=="string"?x:Et===void 0||(x[0]??0)<=Et&&Et<(x[1]??1/0)?x[2]:void 0).filter(x=>x!==void 0);ce&&(ce=[...new Set(ce)],re.set("types",ce.join(",")));const ai=!U||et===ei?mt:et;if(ai&&re.set("excludeTypes",String(ai)),g&&re.set("bbox",g.map(x=>x.toFixed(6)).join(",")),T&&re.set("country",Array.isArray(T)?T.join(","):T),!F&&!U){const x=await xi(m,ae,te);x&&re.set("proximity",x),(Z||!Xe)&&re.set("autocomplete","false"),re.set("fuzzyMatch",String(L))}const je=E===C?M:E;je!==void 0&&je>1&&(ce==null?void 0:ce.length)!==1&&console.warn("For reverse geocoding when limit > 1 then types must contain single value."),U?(je===1||je!==void 0&&(ft||(ce==null?void 0:ce.length)===1))&&re.set("limit",String(je)):M!==void 0&&re.set("limit",String(M)),re.set("key",f),bt(re),vt(Fe);const jn=Fe.searchParams.get("types")===""&&Fe.searchParams.get("excludeTypes")!=="true",nt=Fe.toString();if(nt===ni){F?(w&&t(13,N=void 0),t(14,h=it[0])):(t(13,N=it),((ue=N[R])==null?void 0:ue.id)!==(r==null?void 0:r.id)&&t(15,R=-1));return}ni=nt;let Ge;if(jn)Ge={type:"FeatureCollection",features:[]};else{const x=await fetch(nt,{signal:te.signal,...ht});if(!x.ok)throw new Error(await x.text());Ge=await x.json()}Le("response",{url:nt,featureCollection:Ge}),F?(w&&t(13,N=void 0),t(14,h=Ge.features[0]),it=[h]):(t(13,N=Ge.features.filter(J)),U&&N.unshift({type:"Feature",properties:{},id:"reverse_"+U.decimalLongitude+"_"+U.decimalLatitude,text:U.decimalLatitude+", "+U.decimalLongitude,place_name:U.decimalLatitude+", "+U.decimalLongitude,place_type:["reverse"],center:[U.decimalLongitude,U.decimalLatitude],bbox:[U.decimalLongitude,U.decimalLatitude,U.decimalLongitude,U.decimalLatitude],geometry:{type:"Point",coordinates:[U.decimalLongitude,U.decimalLatitude]}}),it=N,((_e=N[R])==null?void 0:_e.id)!==(r==null?void 0:r.id)&&t(15,R=-1),U&&se.focus())}catch(U){if(U&&typeof U=="object"&&"name"in U&&U.name==="AbortError")return;throw U}finally{te===Te&&t(20,Te=void 0)}}function Sn(){var te;if(!(q!=null&&q.length)||!W)return;const o=[180,90,-180,-90],F=!q.some(ie=>!ie.matching_text);let Z;for(const ie of q){const ue=Be(ie);if(Z=Z===void 0?ue:ue===void 0?Z:Math.max(Z,ue),F||!ie.matching_text)for(const _e of[0,1,2,3])o[_e]=Math[_e<2?"min":"max"](o[_e],((te=ie.bbox)==null?void 0:te[_e])??ie.center[_e%2])}m&&q.length>0&&(h&&o[0]===o[2]&&o[1]===o[3]?m.flyTo(h.center,Be(h)):m.fitBounds(Bt(o),50,Z))}function pt(){!h||!m||(!h.bbox||h.bbox[0]===h.bbox[2]&&h.bbox[1]===h.bbox[3]?m.flyTo(h.center,Be(h)):m.fitBounds(Bt(h.bbox),50,Be(h)))}function Be(o){var Z;if(!o.bbox||o.bbox[0]!==o.bbox[2]&&o.bbox[1]!==o.bbox[3])return;const F=o.id.replace(/\..*/,"");return(Array.isArray((Z=o.properties)==null?void 0:Z.categories)?o.properties.categories.reduce((te,ie)=>{const ue=tt[F+"."+ie];return te===void 0?ue:ue===void 0?te:Math.max(te,ue)},void 0):void 0)??tt[F]}function Tn(o){t(0,ne=O==="always"),t(13,N=void 0),t(14,h=void 0),t(15,R=-1),ii(o[1].toFixed(6)+", "+Ji(o[0],[-180,180],!0).toFixed(6),!1,!0)}function Nn(o){if(!N)return;let F=o.key==="ArrowDown"?1:o.key==="ArrowUp"?-1:0;F&&(se.focus(),t(17,he=!0),o.preventDefault(),h&&R===-1&&t(15,R=N.findIndex(Z=>Z.id===(h==null?void 0:h.id))),R===(h||We?0:-1)&&F===-1&&t(15,R=N.length),t(15,R+=F),R>=N.length&&t(15,R=-1),R<0&&(h||We)&&t(15,R=0))}function si(o,F=!0,Z=!1){if(t(19,le=void 0),t(14,h=void 0),t(17,he=!0),Xe||Z){if(ze&&clearTimeout(ze),Y.length<Se)return;const te=Y;ze=window.setTimeout(()=>{yt(te).catch(ie=>t(19,le=ie))},F?D:0)}else t(13,N=void 0),t(19,le=void 0)}function wt(o){h&&(h==null?void 0:h.id)===(o==null?void 0:o.id)?pt():(t(14,h=o),t(1,Y=o.place_name))}function oi(o){t(15,R=o)}function kn(){(!We||h)&&t(15,R=-1),Je&&pt()}const Mn=()=>se.focus();function Cn(o){rt[o?"unshift":"push"](()=>{se=o,t(18,se)})}function Wn(){Y=this.value,t(1,Y),t(17,he),t(31,y),t(16,Oe)}const zn=()=>t(17,he=!0),On=()=>t(17,he=!1),Dn=()=>t(17,he=!0),Rn=()=>t(14,h=void 0),Un=()=>{t(1,Y=""),se.focus()},In=()=>t(0,ne=!ne),An=()=>t(19,le=void 0),Pn=o=>oi(o),Bn=o=>wt(o),Fn=()=>{};return i.$$set=o=>{"class"in o&&t(2,u=o.class),"apiKey"in o&&t(29,f=o.apiKey),"bbox"in o&&t(30,g=o.bbox),"clearButtonTitle"in o&&t(3,v=o.clearButtonTitle),"clearOnBlur"in o&&t(31,y=o.clearOnBlur),"clearListOnPick"in o&&t(32,w=o.clearListOnPick),"keepListOpen"in o&&t(4,A=o.keepListOpen),"collapsed"in o&&t(5,S=o.collapsed),"country"in o&&t(33,T=o.country),"debounceSearch"in o&&t(34,D=o.debounceSearch),"enableReverse"in o&&t(6,O=o.enableReverse),"errorMessage"in o&&t(7,K=o.errorMessage),"filter"in o&&t(35,J=o.filter),"flyTo"in o&&t(36,W=o.flyTo),"fuzzyMatch"in o&&t(37,L=o.fuzzyMatch),"language"in o&&t(38,p=o.language),"limit"in o&&t(39,M=o.limit),"reverseGeocodingLimit"in o&&t(40,E=o.reverseGeocodingLimit),"mapController"in o&&t(41,m=o.mapController),"minLength"in o&&t(42,Se=o.minLength),"noResultsMessage"in o&&t(8,_=o.noResultsMessage),"placeholder"in o&&t(9,H=o.placeholder),"proximity"in o&&t(43,ae=o.proximity),"reverseActive"in o&&t(0,ne=o.reverseActive),"reverseButtonTitle"in o&&t(10,Jt=o.reverseButtonTitle),"searchValue"in o&&t(1,Y=o.searchValue),"pickedResultStyle"in o&&t(44,Ye=o.pickedResultStyle),"showPlaceType"in o&&t(11,xt=o.showPlaceType),"showResultsWhileTyping"in o&&t(45,Xe=o.showResultsWhileTyping),"selectFirst"in o&&t(46,We=o.selectFirst),"flyToSelected"in o&&t(47,Je=o.flyToSelected),"markerOnSelected"in o&&t(48,xe=o.markerOnSelected),"types"in o&&t(49,dt=o.types),"reverseGeocodingTypes"in o&&t(50,$e=o.reverseGeocodingTypes),"exhaustiveReverseGeocoding"in o&&t(51,ft=o.exhaustiveReverseGeocoding),"excludeTypes"in o&&t(52,mt=o.excludeTypes),"reverseGeocodingExcludeTypes"in o&&t(53,et=o.reverseGeocodingExcludeTypes),"zoom"in o&&t(54,tt=o.zoom),"apiUrl"in o&&t(55,gt=o.apiUrl),"fetchParameters"in o&&t(56,ht=o.fetchParameters),"iconsBaseUrl"in o&&t(12,ti=o.iconsBaseUrl),"adjustUrlQuery"in o&&t(57,bt=o.adjustUrlQuery),"adjustUrl"in o&&t(58,vt=o.adjustUrl),"$$scope"in o&&t(69,s=o.$$scope)},i.$$.update=()=>{if(i.$$.dirty[0]&64&&t(0,ne=O==="always"),i.$$.dirty[0]&16384|i.$$.dirty[1]&8192&&Ye!=="marker-only"&&h&&!h.address&&h.geometry.type==="Point"&&h.place_type[0]!=="reverse"&&yt(h.id,{byId:!0}).catch(o=>t(19,le=o)),i.$$.dirty[0]&16384|i.$$.dirty[1]&1058|i.$$.dirty[2]&8&&(m&&h&&h.id!==Lt&&W&&(pt(),w&&t(13,N=void 0),t(64,q=void 0),t(15,R=-1)),t(65,Lt=h==null?void 0:h.id)),i.$$.dirty[0]&196608|i.$$.dirty[1]&1&&setTimeout(()=>{t(16,Oe=he),y&&!Oe&&t(1,Y="")}),i.$$.dirty[0]&8194|i.$$.dirty[1]&2048&&Y.length<Se&&(t(13,N=void 0),t(19,le=void 0),t(64,q=N)),i.$$.dirty[0]&57344|i.$$.dirty[1]&32768&&We&&N!=null&&N.length&&R==-1&&!h&&t(15,R=0),i.$$.dirty[0]&8192|i.$$.dirty[2]&4&&q!==N&&t(64,q=void 0),i.$$.dirty[0]&73729|i.$$.dirty[1]&1024|i.$$.dirty[2]&4&&m&&m.setEventHandler(o=>{switch(o.type){case"mapClick":ne&&Tn(o.coordinates);break;case"markerClick":{const F=N==null?void 0:N.find(Z=>Z.id===o.id);F&&wt(F)}break;case"markerMouseEnter":q&&t(15,R=Oe?(N==null?void 0:N.findIndex(F=>F.id===o.id))??-1:-1);break;case"markerMouseLeave":q&&t(15,R=-1);break}}),i.$$.dirty[0]&40960&&t(66,r=N==null?void 0:N[R]),i.$$.dirty[1]&66592|i.$$.dirty[2]&16&&m&&r&&W&&Je&&m.flyTo(r.center,Be(r)),i.$$.dirty[1]&8192&&t(68,n=Ye==="full-geometry-including-polygon-center-marker"),i.$$.dirty[1]&132096|i.$$.dirty[2]&64&&(xe||m==null||m.setFeatures(void 0,void 0,n)),i.$$.dirty[0]&16384|i.$$.dirty[1]&132096|i.$$.dirty[2]&84&&m&&xe&&!q&&(m.setFeatures(r?[r]:void 0,h,n),m.setSelectedMarker(r?0:-1)),i.$$.dirty[0]&16384|i.$$.dirty[1]&1024|i.$$.dirty[2]&68&&m&&m.setFeatures(q,h,n),i.$$.dirty[0]&32768|i.$$.dirty[1]&1024|i.$$.dirty[2]&4&&q&&m&&m.setSelectedMarker(R),i.$$.dirty[0]&2|i.$$.dirty[1]&1024&&m){const o=_t(Y);m.setReverseMarker(o?[o.decimalLongitude,o.decimalLatitude]:void 0)}i.$$.dirty[2]&16&&Le("select",{feature:r}),i.$$.dirty[0]&16384&&Le("pick",{feature:h}),i.$$.dirty[0]&73744&&t(67,l=!!(N!=null&&N.length)&&(Oe||A)),i.$$.dirty[2]&32&&Le("optionsvisibilitychange",{optionsVisible:l}),i.$$.dirty[0]&8192&&Le("featureslisted",{features:N}),i.$$.dirty[2]&4&&Le("featuresmarked",{features:q}),i.$$.dirty[0]&1&&Le("reversetoggle",{reverse:ne}),i.$$.dirty[0]&2&&Le("querychange",{query:Y}),i.$$.dirty[0]&1|i.$$.dirty[1]&1024&&m&&m.indicateReverse(ne)},[ne,Y,u,v,A,S,O,K,_,H,Jt,xt,ti,N,h,R,Oe,he,se,le,Te,En,ri,Nn,si,wt,oi,kn,d,f,g,y,w,T,D,J,W,L,p,M,E,m,Se,ae,Ye,Xe,We,Je,xe,dt,$e,ft,mt,et,tt,gt,ht,bt,vt,_n,yn,ii,pn,wn,q,Lt,r,l,n,s,c,Mn,Cn,Wn,zn,On,Dn,Rn,Un,In,An,Pn,Bn,Fn]}let vn=class extends Ee{constructor(e){super(),we(this,e,bn,hn,ye,{ZOOM_DEFAULTS:28,class:2,apiKey:29,bbox:30,clearButtonTitle:3,clearOnBlur:31,clearListOnPick:32,keepListOpen:4,collapsed:5,country:33,debounceSearch:34,enableReverse:6,errorMessage:7,filter:35,flyTo:36,fuzzyMatch:37,language:38,limit:39,reverseGeocodingLimit:40,mapController:41,minLength:42,noResultsMessage:8,placeholder:9,proximity:43,reverseActive:0,reverseButtonTitle:10,searchValue:1,pickedResultStyle:44,showPlaceType:11,showResultsWhileTyping:45,selectFirst:46,flyToSelected:47,markerOnSelected:48,types:49,reverseGeocodingTypes:50,exhaustiveReverseGeocoding:51,excludeTypes:52,reverseGeocodingExcludeTypes:53,zoom:54,apiUrl:55,fetchParameters:56,iconsBaseUrl:12,adjustUrlQuery:57,adjustUrl:58,focus:59,blur:60,setQuery:61,clearList:62,clearMap:63},null,[-1,-1,-1,-1])}get ZOOM_DEFAULTS(){return this.$$.ctx[28]}get focus(){return this.$$.ctx[59]}get blur(){return this.$$.ctx[60]}get setQuery(){return this.$$.ctx[61]}get clearList(){return this.$$.ctx[62]}get clearMap(){return this.$$.ctx[63]}};const Ln=new FinalizationRegistry(i=>{i.$destroy()}),ct=class ct extends EventTarget{constructor({target:t,...n}){super();Nt(this,Ve);Nt(this,$);ui(this,$,new vn({target:t,props:n}));for(const r of["select","pick","featureslisted","featuresmarked","response","optionsvisibilitychange","reversetoggle","querychange"])oe(this,$).$on(r,l=>{ci(this,Ve,fi).call(this,r,l.detail)});oe(this,$).$on("select",r=>{const l=new CustomEvent(r.type,{detail:r.detail});this.dispatchEvent(l)}),Ln.register(this,oe(this,$))}setOptions(t){oe(this,$).$set(t)}setQuery(t,n=!0){var r;(r=oe(this,$))==null||r.setQuery(t,n)}clearMap(){var t;(t=oe(this,$))==null||t.clearMap()}clearList(){var t;(t=oe(this,$))==null||t.clearList()}setReverseMode(t){var n;(n=oe(this,$))==null||n.$set({reverseActive:t})}focus(t){var n;(n=oe(this,$))==null||n.focus(t)}blur(){var t;(t=oe(this,$))==null||t.blur()}addEventListener(t,n,r){super.addEventListener(t,n,r)}removeEventListener(t,n,r){super.removeEventListener(t,n,r)}dispatchEvent(t){return super.dispatchEvent(t)}};$=new WeakMap,Ve=new WeakSet,fi=function(t,n){return di(ct.prototype,this,"dispatchEvent").call(this,new CustomEvent(t,{detail:n}))};let ut=ct;z.GeocodingControl=ut,Object.defineProperty(z,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(O,v){typeof exports=="object"&&typeof module<"u"?v(exports):typeof define=="function"&&define.amd?define(["exports"],v):(O=typeof globalThis<"u"?globalThis:O||self,v(O.maptilerGeocoder={}))})(this,function(O){"use strict";var xn=Object.defineProperty;var $n=Object.getPrototypeOf;var er=Reflect.get;var bi=O=>{throw TypeError(O)};var tr=(O,v,j)=>v in O?xn(O,v,{enumerable:!0,configurable:!0,writable:!0,value:j}):O[v]=j;var Wt=(O,v,j)=>tr(O,typeof v!="symbol"?v+"":v,j),Ot=(O,v,j)=>v.has(O)||bi("Cannot "+j);var ue=(O,v,j)=>(Ot(O,v,"read from private field"),j?j.call(O):v.get(O)),zt=(O,v,j)=>v.has(O)?bi("Cannot add the same private member more than once"):v instanceof WeakSet?v.add(O):v.set(O,j),vi=(O,v,j,Ue)=>(Ot(O,v,"write to private field"),Ue?Ue.call(O,j):v.set(O,j),j),Li=(O,v,j)=>(Ot(O,v,"access private method"),j);var _i=(O,v,j)=>er($n(O),j,v);var ee,$e,yi;function v(){}function j(i,e){for(const t in e)i[t]=e[t];return i}function Ue(i){return i()}function Rt(){return Object.create(null)}function ge(i){i.forEach(Ue)}function Dt(i){return typeof i=="function"}function Se(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let Ke;function J(i,e){return i===e?!0:(Ke||(Ke=document.createElement("a")),Ke.href=e,i===Ke.href)}function wi(i){return Object.keys(i).length===0}function Ei(i,e,t,n){if(i){const r=It(i,e,t,n);return i[0](r)}}function It(i,e,t,n){return i[1]&&n?j(t.ctx.slice(),i[1](n(e))):t.ctx}function pi(i,e,t,n){return i[2],e.dirty}function Si(i,e,t,n,r,l){if(r){const c=It(e,t,n,l);i.p(c,r)}}function Ti(i){if(i.ctx.length>32){const e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function Ve(i){return i??""}function M(i,e){i.appendChild(e)}function P(i,e,t){i.insertBefore(e,t||null)}function A(i){i.parentNode&&i.parentNode.removeChild(i)}function D(i){return document.createElement(i)}function he(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function _e(i){return document.createTextNode(i)}function te(){return _e(" ")}function ki(){return _e("")}function q(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Ni(i){return function(e){return e.preventDefault(),i.call(this,e)}}function a(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function Mi(i){return Array.from(i.childNodes)}function Ae(i,e){e=""+e,i.data!==e&&(i.data=e)}function Ut(i,e){i.value=e??""}function Oe(i,e,t){i.classList.toggle(e,!!t)}function Ci(i,e,{bubbles:t=!1,cancelable:n=!1}={}){return new CustomEvent(i,{detail:e,bubbles:t,cancelable:n})}let Pe;function Be(i){Pe=i}function At(){if(!Pe)throw new Error("Function called outside component initialization");return Pe}function Wi(i){At().$$.on_destroy.push(i)}function Pt(){const i=At();return(e,t,{cancelable:n=!1}={})=>{const r=i.$$.callbacks[e];if(r){const l=Ci(e,t,{cancelable:n});return r.slice().forEach(c=>{c.call(i,l)}),!l.defaultPrevented}return!0}}function Oi(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const ze=[],ut=[];let Re=[];const Bt=[],zi=Promise.resolve();let ct=!1;function Ri(){ct||(ct=!0,zi.then(jt))}function dt(i){Re.push(i)}const ft=new Set;let De=0;function jt(){if(De!==0)return;const i=Pe;do{try{for(;De<ze.length;){const e=ze[De];De++,Be(e),Di(e.$$)}}catch(e){throw ze.length=0,De=0,e}for(Be(null),ze.length=0,De=0;ut.length;)ut.pop()();for(let e=0;e<Re.length;e+=1){const t=Re[e];ft.has(t)||(ft.add(t),t())}Re.length=0}while(ze.length);for(;Bt.length;)Bt.pop()();ct=!1,ft.clear(),Be(i)}function Di(i){if(i.fragment!==null){i.update(),ge(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(dt)}}function Ii(i){const e=[],t=[];Re.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Re=e}const Ye=new Set;let Te;function Xe(){Te={r:0,c:[],p:Te}}function Je(){Te.r||ge(Te.c),Te=Te.p}function F(i,e){i&&i.i&&(Ye.delete(i),i.i(e))}function V(i,e,t,n){if(i&&i.o){if(Ye.has(i))return;Ye.add(i),Te.c.push(()=>{Ye.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Ft(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Ui(i,e){V(i,1,1,()=>{e.delete(i.key)})}function Ai(i,e,t,n,r,l,c,o,f,u,d,h){let L=i.length,w=l.length,p=L;const I={};for(;p--;)I[i[p].key]=p;const k=[],S=new Map,z=new Map,W=[];for(p=w;p--;){const E=h(r,l,p),g=t(E);let C=c.get(g);C?W.push(()=>C.p(E,e)):(C=u(g,E),C.c()),S.set(g,k[p]=C),g in I&&z.set(g,Math.abs(p-I[g]))}const Q=new Set,$=new Set;function Y(E){F(E,1),E.m(o,d),c.set(E.key,E),d=E.first,w--}for(;L&&w;){const E=k[w-1],g=i[L-1],C=E.key,N=g.key;E===g?(d=E.first,L--,w--):S.has(N)?!c.has(C)||Q.has(C)?Y(E):$.has(N)?L--:z.get(C)>z.get(N)?($.add(C),Y(E)):(Q.add(N),L--):(f(g,c),L--)}for(;L--;){const E=i[L];S.has(E.key)||f(E,c)}for(;w;)Y(k[w-1]);return ge(W),k}function ye(i){i&&i.c()}function be(i,e,t){const{fragment:n,after_update:r}=i.$$;n&&n.m(e,t),dt(()=>{const l=i.$$.on_mount.map(Ue).filter(Dt);i.$$.on_destroy?i.$$.on_destroy.push(...l):ge(l),i.$$.on_mount=[]}),r.forEach(dt)}function ve(i,e){const t=i.$$;t.fragment!==null&&(Ii(t.after_update),ge(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function Pi(i,e){i.$$.dirty[0]===-1&&(ze.push(i),Ri(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function ke(i,e,t,n,r,l,c=null,o=[-1]){const f=Pe;Be(i);const u=i.$$={fragment:null,ctx:[],props:l,update:v,not_equal:r,bound:Rt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(f?f.$$.context:[])),callbacks:Rt(),dirty:o,skip_bound:!1,root:e.target||f.$$.root};c&&c(u.root);let d=!1;if(u.ctx=t?t(i,e.props||{},(h,L,...w)=>{const p=w.length?w[0]:L;return u.ctx&&r(u.ctx[h],u.ctx[h]=p)&&(!u.skip_bound&&u.bound[h]&&u.bound[h](p),d&&Pi(i,h)),L}):[],u.update(),d=!0,ge(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){const h=Mi(e.target);u.fragment&&u.fragment.l(h),h.forEach(A)}else u.fragment&&u.fragment.c();e.intro&&F(i.$$.fragment),be(i,e.target,e.anchor),jt()}Be(f)}class Ne{constructor(){Wt(this,"$$");Wt(this,"$$set")}$destroy(){ve(this,1),this.$destroy=v}$on(e,t){if(!Dt(t))return v;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const r=n.indexOf(t);r!==-1&&n.splice(r,1)}}$set(e){this.$$set&&!wi(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Bi="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Bi);function ji(i){let e,t;return{c(){e=he("svg"),t=he("path"),a(t,"d","M13.12.706a.982.982 0 0 0-1.391 0L6.907 5.517 2.087.696a.982.982 0 1 0-1.391 1.39l4.821 4.821L.696 11.73a.982.982 0 1 0 1.39 1.39l4.821-4.821 4.822 4.821a.982.982 0 1 0 1.39-1.39L8.298 6.908l4.821-4.822a.988.988 0 0 0 0-1.38Z"),a(e,"viewBox","0 0 14 14"),a(e,"width","13"),a(e,"height","13"),a(e,"class","svelte-en2qvf")},m(n,r){P(n,e,r),M(e,t)},p:v,i:v,o:v,d(n){n&&A(e)}}}class Gt extends Ne{constructor(e){super(),ke(this,e,null,ji,Se,{})}}function Fi(i){let e,t;return{c(){e=he("svg"),t=he("path"),a(t,"d","M15 0C6.705 0 0 6.705 0 15C0 23.295 6.705 30 15 30C23.295 30 30 23.295 30 15C30 6.705 23.295 0 15 0ZM22.5 20.385L20.385 22.5L15 17.115L9.615 22.5L7.5 20.385L12.885 15L7.5 9.615L9.615 7.5L15 12.885L20.385 7.5L22.5 9.615L17.115 15L22.5 20.385Z"),a(e,"viewBox","0 0 30 30"),a(e,"fill","none"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"class","svelte-d2loi5")},m(n,r){P(n,e,r),M(e,t)},p:v,i:v,o:v,d(n){n&&A(e)}}}class Ht extends Ne{constructor(e){super(),ke(this,e,null,Fi,Se,{})}}function Gi(i){let e,t;return{c(){e=D("img"),J(e.src,t=i[3]+"area.svg")||a(e,"src",t),a(e,"alt",i[7]),a(e,"title",i[7]),a(e,"class","svelte-w9y5n9")},m(n,r){P(n,e,r)},p(n,r){r&8&&!J(e.src,t=n[3]+"area.svg")&&a(e,"src",t),r&128&&a(e,"alt",n[7]),r&128&&a(e,"title",n[7])},d(n){n&&A(e)}}}function Hi(i){let e,t;return{c(){e=D("img"),J(e.src,t=i[3]+"reverse.svg")||a(e,"src",t),a(e,"alt",i[7]),a(e,"title",i[7]),a(e,"class","svelte-w9y5n9")},m(n,r){P(n,e,r)},p(n,r){r&8&&!J(e.src,t=n[3]+"reverse.svg")&&a(e,"src",t),r&128&&a(e,"alt",n[7]),r&128&&a(e,"title",n[7])},d(n){n&&A(e)}}}function Zi(i){let e,t;return{c(){e=D("img"),J(e.src,t=i[3]+"poi.svg")||a(e,"src",t),a(e,"alt",i[7]),a(e,"title",i[7]),a(e,"class","svelte-w9y5n9")},m(n,r){P(n,e,r)},p(n,r){r&8&&!J(e.src,t=n[3]+"poi.svg")&&a(e,"src",t),r&128&&a(e,"alt",n[7]),r&128&&a(e,"title",n[7])},d(n){n&&A(e)}}}function qi(i){let e,t;return{c(){e=D("img"),J(e.src,t=i[3]+"postal_code.svg")||a(e,"src",t),a(e,"alt",i[7]),a(e,"title",i[7]),a(e,"class","svelte-w9y5n9")},m(n,r){P(n,e,r)},p(n,r){r&8&&!J(e.src,t=n[3]+"postal_code.svg")&&a(e,"src",t),r&128&&a(e,"alt",n[7]),r&128&&a(e,"title",n[7])},d(n){n&&A(e)}}}function Qi(i){let e,t;return{c(){e=D("img"),J(e.src,t=i[3]+"street.svg")||a(e,"src",t),a(e,"alt",i[7]),a(e,"title",i[7]),a(e,"class","svelte-w9y5n9")},m(n,r){P(n,e,r)},p(n,r){r&8&&!J(e.src,t=n[3]+"street.svg")&&a(e,"src",t),r&128&&a(e,"alt",n[7]),r&128&&a(e,"title",n[7])},d(n){n&&A(e)}}}function Ki(i){let e,t;return{c(){e=D("img"),J(e.src,t=i[3]+"road.svg")||a(e,"src",t),a(e,"alt",i[7]),a(e,"title",i[7]),a(e,"class","svelte-w9y5n9")},m(n,r){P(n,e,r)},p(n,r){r&8&&!J(e.src,t=n[3]+"road.svg")&&a(e,"src",t),r&128&&a(e,"alt",n[7]),r&128&&a(e,"title",n[7])},d(n){n&&A(e)}}}function Vi(i){let e,t;return{c(){e=D("img"),J(e.src,t=i[3]+"housenumber.svg")||a(e,"src",t),a(e,"alt",i[7]),a(e,"title",i[7]),a(e,"class","svelte-w9y5n9")},m(n,r){P(n,e,r)},p(n,r){r&8&&!J(e.src,t=n[3]+"housenumber.svg")&&a(e,"src",t),r&128&&a(e,"alt",n[7]),r&128&&a(e,"title",n[7])},d(n){n&&A(e)}}}function Yi(i){let e,t,n,r;return{c(){e=D("img"),J(e.src,t=i[5])||a(e,"src",t),a(e,"alt",i[4]),a(e,"title",i[7]),a(e,"class","svelte-w9y5n9")},m(l,c){P(l,e,c),n||(r=q(e,"error",i[14]),n=!0)},p(l,c){c&32&&!J(e.src,t=l[5])&&a(e,"src",t),c&16&&a(e,"alt",l[4]),c&128&&a(e,"title",l[7])},d(l){l&&A(e),n=!1,r()}}}function Xi(i){let e,t;return{c(){e=D("div"),a(e,"class","sprite-icon svelte-w9y5n9"),a(e,"style",t=`
|
|
2
|
+
width: ${i[6].width/ie}px;
|
|
3
|
+
height: ${i[6].height/ie}px;
|
|
4
|
+
background-image: url(${i[3]}sprite${mt}.png);
|
|
5
|
+
background-position: -${i[6].x/ie}px -${i[6].y/ie}px;
|
|
6
|
+
background-size: ${se.width/ie}px ${se.height/ie}px;
|
|
7
|
+
`),a(e,"title",i[7])},m(n,r){P(n,e,r)},p(n,r){r&72&&t!==(t=`
|
|
8
|
+
width: ${n[6].width/ie}px;
|
|
9
|
+
height: ${n[6].height/ie}px;
|
|
10
|
+
background-image: url(${n[3]}sprite${mt}.png);
|
|
11
|
+
background-position: -${n[6].x/ie}px -${n[6].y/ie}px;
|
|
12
|
+
background-size: ${se.width/ie}px ${se.height/ie}px;
|
|
13
|
+
`)&&a(e,"style",t),r&128&&a(e,"title",n[7])},d(n){n&&A(e)}}}function Zt(i){let e,t;return{c(){e=D("span"),t=_e(i[7]),a(e,"class","secondary svelte-w9y5n9")},m(n,r){P(n,e,r),M(e,t)},p(n,r){r&128&&Ae(t,n[7])},d(n){n&&A(e)}}}function Ji(i){let e,t,n,r,l,c,o,f,u,d=(i[8]?i[0].place_name:i[0].place_name.replace(/,.*/,""))+"",h,L,w=i[2]==="always"||i[2]!=="never"&&!i[0].address&&!i[0].id.startsWith("road.")&&!i[0].id.startsWith("address.")&&!i[0].id.startsWith("postal_code.")&&(!i[0].id.startsWith("poi.")||!i[5])&&!i[8],p,I,k=(i[8]?"":i[0].place_name.replace(/[^,]*,?\s*/,""))+"",S,z,W,Q,$,Y;function E(_,m){return m&1&&(t=null),m&1&&(n=null),m&1&&(r=null),m&1&&(l=null),se&&_[6]?Xi:_[5]?Yi:_[0].address?Vi:(t==null&&(t=!!_[0].id.startsWith("road.")),t?Ki:(n==null&&(n=!!_[0].id.startsWith("address.")),n?Qi:(r==null&&(r=!!_[0].id.startsWith("postal_code.")),r?qi:(l==null&&(l=!!_[0].id.startsWith("poi.")),l?Zi:_[8]?Hi:Gi))))}let g=E(i,-1),C=g(i),N=w&&Zt(i);return{c(){e=D("li"),C.c(),c=te(),o=D("span"),f=D("span"),u=D("span"),h=_e(d),L=te(),N&&N.c(),p=te(),I=D("span"),S=_e(k),a(u,"class","primary svelte-w9y5n9"),a(f,"class","svelte-w9y5n9"),a(I,"class","line2 svelte-w9y5n9"),a(o,"class","texts svelte-w9y5n9"),a(e,"tabindex","-1"),a(e,"role","option"),a(e,"aria-selected",z=i[1]==="selected"),a(e,"aria-checked",W=i[1]==="picked"),a(e,"class",Q=Ve(i[1])+" svelte-w9y5n9")},m(_,m){P(_,e,m),C.m(e,null),M(e,c),M(e,o),M(o,f),M(f,u),M(u,h),M(f,L),N&&N.m(f,null),M(o,p),M(o,I),M(I,S),$||(Y=[q(e,"mouseenter",i[13]),q(e,"focus",i[15]),q(e,"click",i[16])],$=!0)},p(_,[m]){g===(g=E(_,m))&&C?C.p(_,m):(C.d(1),C=g(_),C&&(C.c(),C.m(e,c))),m&257&&d!==(d=(_[8]?_[0].place_name:_[0].place_name.replace(/,.*/,""))+"")&&Ae(h,d),m&293&&(w=_[2]==="always"||_[2]!=="never"&&!_[0].address&&!_[0].id.startsWith("road.")&&!_[0].id.startsWith("address.")&&!_[0].id.startsWith("postal_code.")&&(!_[0].id.startsWith("poi.")||!_[5])&&!_[8]),w?N?N.p(_,m):(N=Zt(_),N.c(),N.m(f,null)):N&&(N.d(1),N=null),m&257&&k!==(k=(_[8]?"":_[0].place_name.replace(/[^,]*,?\s*/,""))+"")&&Ae(S,k),m&2&&z!==(z=_[1]==="selected")&&a(e,"aria-selected",z),m&2&&W!==(W=_[1]==="picked")&&a(e,"aria-checked",W),m&2&&Q!==(Q=Ve(_[1])+" svelte-w9y5n9")&&a(e,"class",Q)},i:v,o:v,d(_){_&&A(e),C.d(),N&&N.d(),$=!1,ge(Y)}}}const qt=devicePixelRatio>1.25,mt=qt?"@2x":"",ie=qt?2:1;let se,xe;function xi(i,e,t){let n,r,l,{feature:c}=e,{style:o="default"}=e,{showPlaceType:f}=e,{missingIconsCache:u}=e,{iconsBaseUrl:d}=e;const h=Pt();let L,w,p,I;function k(){xe??(xe=fetch(`${d}/sprite${mt}.json`).then(g=>g.json()).then(g=>{se=g}).catch(()=>{se=null}))}function S(){w&&u.add(w),z()}function z(){se!==void 0?W():(k(),xe==null||xe.then(W))}function W(){do{if(I--,t(4,L=n==null?void 0:n[I]),t(6,p=L?se==null?void 0:se.icons[L]:void 0),p)break;t(5,w=L?d+L.replace(/ /g,"_")+".svg":void 0)}while(I>-1&&(!w||u.has(w)))}function Q(g){Oi.call(this,i,g)}const $=()=>S(),Y=()=>h("select",void 0),E=g=>{document.activeElement!==g.target&&h("select",void 0)};return i.$$set=g=>{"feature"in g&&t(0,c=g.feature),"style"in g&&t(1,o=g.style),"showPlaceType"in g&&t(2,f=g.showPlaceType),"missingIconsCache"in g&&t(11,u=g.missingIconsCache),"iconsBaseUrl"in g&&t(3,d=g.iconsBaseUrl)},i.$$.update=()=>{var g,C,N,_,m;i.$$.dirty&1&&t(12,n=(g=c.properties)==null?void 0:g.categories),i.$$.dirty&1&&t(8,r=c.place_type[0]==="reverse"),i.$$.dirty&1&&t(7,l=((N=(C=c.properties)==null?void 0:C.categories)==null?void 0:N.join(", "))??((m=(_=c.properties)==null?void 0:_.place_type_name)==null?void 0:m[0])??c.place_type[0]),i.$$.dirty&4096&&(I=(n==null?void 0:n.length)??0,z())},[c,o,f,d,L,w,p,l,r,h,S,u,n,Q,$,Y,E]}class $i extends Ne{constructor(e){super(),ke(this,e,xi,Ji,Se,{feature:0,style:1,showPlaceType:2,missingIconsCache:11,iconsBaseUrl:3})}}function en(i){let e;return{c(){e=D("div"),e.innerHTML='<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>',a(e,"class","svelte-7cmwmc")},m(t,n){P(t,e,n)},p:v,i:v,o:v,d(t){t&&A(e)}}}class tn extends Ne{constructor(e){super(),ke(this,e,null,en,Se,{})}}function nn(i){let e,t;return{c(){e=he("svg"),t=he("path"),a(t,"d","M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"),a(e,"viewBox","0 0 60.006 21.412"),a(e,"width","14"),a(e,"height","20"),a(e,"class","svelte-en2qvf")},m(n,r){P(n,e,r),M(e,t)},p:v,i:v,o:v,d(n){n&&A(e)}}}class rn extends Ne{constructor(e){super(),ke(this,e,null,nn,Se,{})}}function on(i){let e,t,n;return{c(){e=he("svg"),t=he("circle"),n=he("path"),a(t,"cx","4.789"),a(t,"cy","4.787"),a(t,"r","3.85"),a(t,"class","svelte-1aq105l"),a(n,"d","M12.063 12.063 7.635 7.635"),a(n,"class","svelte-1aq105l"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"width","13"),a(e,"height","13"),a(e,"viewBox","0 0 13 13"),a(e,"class","svelte-1aq105l")},m(r,l){P(r,e,l),M(e,t),M(e,n)},p:v,i:v,o:v,d(r){r&&A(e)}}}class sn extends Ne{constructor(e){super(),ke(this,e,null,on,Se,{})}}function an(i,e,t){const n=e[1],r=e[0],l=n-r;return i===n&&t?i:((i-r)%l+l)%l+r}function Qt(i){const e=[...i];return e[2]<e[0]&&(Math.abs((e[0]+e[2]+360)/2)>Math.abs((e[0]-360+e[2])/2)?e[0]-=360:e[2]+=360),e}let je;async function ln(i,e,t){const n=i==null?void 0:i.getCenterAndZoom();for(const r of e??[])if(!(n&&(r.minZoom!=null&&r.minZoom>n[0]||r.maxZoom!=null&&r.maxZoom<n[0]))){if(r.type==="fixed")return r.coordinates.join(",");e:if(r.type==="client-geolocation"){if(je&&r.cachedLocationExpiry&&je.time+r.cachedLocationExpiry>Date.now()){if(!je.coords)break e;return je.coords}let l;try{return l=await new Promise((c,o)=>{t.signal.addEventListener("abort",()=>{o(Error("aborted"))}),navigator.geolocation.getCurrentPosition(f=>{c([f.coords.longitude,f.coords.latitude].map(u=>u.toFixed(6)).join(","))},f=>{o(f)},r)}),l}catch{}finally{r.cachedLocationExpiry&&(je={time:Date.now(),coords:l})}if(t.signal.aborted)return}if(r.type==="server-geolocation")return"ip";if(n&&r.type==="map-center")return n[1].toFixed(6)+","+n[2].toFixed(6)}}const un=/^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(EAST|WEST|[EW])?$/i,Kt=/^([+-]?[0-8]?[0-9])\s+([0-5]?[0-9]\.\d{3,})[\s,]{1,}([+-]?[0-1]?[0-9]?[0-9])\s+([0-5]?[0-9]\.\d{3,})$/,Vt=/^(NORTH|SOUTH|[NS])?[\s]*([+-]?[0-8]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(NORTH|SOUTH|[NS])?[\s]*[,/;]?[\s]*(EAST|WEST|[EW])?[\s]*([+-]?[0-1]?[0-9]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(EAST|WEST|[EW])?$/i,Yt=/^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(EAST|WEST|[EW])?$/i,Xt=/^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)\s*(EAST|WEST|[EW])?$/i,Jt=/^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|’’|´´|["″”\.])?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|´´|’’|["″”\.])?\s*(EAST|WEST|[EW])?$/i;function cn(i){if(!["DMS","DM","DD"].includes(i))throw new Error("invalid format specified");if(this.decimalCoordinates&&this.decimalCoordinates.trim()){const e=this.decimalCoordinates.split(",").map(w=>Number(w.trim())),t=Number(e[0]),n=Number(e[1]),r=Math.abs(t),l=Math.abs(n),c=t>0?"N":"S",o=n>0?"E":"W";let f;i=="DD"&&(f=`${r}° ${c}, ${l}° ${o}`);const u=Math.floor(r),d=Math.floor(l),h=(r-u)*60,L=(l-d)*60;if(i=="DM"){let w=xt(h,3).toFixed(3).padStart(6,"0"),p=xt(L,3).toFixed(3).padStart(6,"0");w.endsWith(".000")&&p.endsWith(".000")&&(w=w.replace(/\.000$/,""),p=p.replace(/\.000$/,"")),f=`${u}° ${w}' ${c}, ${d}° ${p}' ${o}`}if(i=="DMS"){const w=Math.floor(h),p=Math.floor(L);let I=((h-w)*60).toFixed(1).padStart(4,"0"),k=((L-p)*60).toFixed(1).padStart(4,"0");const S=w.toString().padStart(2,"0"),z=p.toString().padStart(2,"0");I.endsWith(".0")&&k.endsWith(".0")&&(I=I.replace(/\.0$/,""),k=k.replace(/\.0$/,"")),f=`${u}° ${S}' ${I}" ${c}, ${d}° ${z}' ${k}" ${o}`}return f}else throw new Error("no decimal coordinates to convert")}function xt(i,e){const t=Math.pow(10,e);return Math.round((i+Number.EPSILON)*t)/t}function gt(i,e){e||(e=5),i=i.replace(/\s+/g," ").trim();let t=null,n=null,r="",l="",c=null,o=[],f=!1;if(un.test(i))throw new Error("invalid coordinate value");if(Kt.test(i))if(o=Kt.exec(i),f=Fe(o),f)t=Math.abs(o[1])+o[2]/60,Number(o[1])<0&&(t*=-1),n=Math.abs(o[3])+o[4]/60,Number(o[3])<0&&(n*=-1),c="DM";else throw new Error("invalid coordinate format");else if(Vt.test(i))if(o=Vt.exec(i),f=Fe(o),f){if(t=o[2],n=o[6],t.includes(",")&&(t=t.replace(",",".")),n.includes(",")&&(n=n.replace(",",".")),c="DD",Number(Math.round(t))==Number(t))throw new Error("integer only coordinate provided");if(Number(Math.round(n))==Number(n))throw new Error("integer only coordinate provided");o[1]?(r=o[1],l=o[5]):o[4]&&(r=o[4],l=o[8])}else throw new Error("invalid decimal coordinate format");else if(Yt.test(i))if(o=Yt.exec(i),f=Fe(o),f)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4]/60,c="DM"),o[6]&&(t+=o[6].replace(",",".")/3600,c="DMS"),parseInt(o[2])<0&&(t=-1*t),n=Math.abs(parseInt(o[9])),o[11]&&(n+=o[11]/60),o[13]&&(n+=o[13].replace(",",".")/3600),parseInt(o[9])<0&&(n=-1*n),o[1]?(r=o[1],l=o[8]):o[7]&&(r=o[7],l=o[14]);else throw new Error("invalid DMS coordinates format");else if(Xt.test(i))if(o=Xt.exec(i),f=Fe(o),f)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4]/60,c="DM"),o[6]&&(t+=o[6]/3600,c="DMS"),parseInt(o[2])<0&&(t=-1*t),n=Math.abs(parseInt(o[10])),o[12]&&(n+=o[12]/60),o[14]&&(n+=o[14]/3600),parseInt(o[10])<0&&(n=-1*n),o[1]?(r=o[1],l=o[9]):o[8]&&(r=o[8],l=o[16]);else throw new Error("invalid DMS coordinates format");else if(Jt.test(i)){if(o=Jt.exec(i),f=Fe(o),o.filter(u=>u).length<=5)throw new Error("invalid coordinates format");if(f)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4].replace(",",".")/60,c="DM"),o[6]&&(t+=o[6].replace(",",".")/3600,c="DMS"),parseInt(o[2])<0&&(t=-1*t),n=Math.abs(parseInt(o[10])),o[12]&&(n+=o[12].replace(",",".")/60),o[14]&&(n+=o[14].replace(",",".")/3600),parseInt(o[10])<0&&(n=-1*n),o[1]?(r=o[1],l=o[9]):o[8]&&(r=o[8],l=o[16]);else throw new Error("invalid coordinates format")}if(f){if(Math.abs(n)>=180)throw new Error("invalid longitude value");if(Math.abs(t)>=90)throw new Error("invalid latitude value");if(r&&!l||!r&&l)throw new Error("invalid coordinates value");if(r&&r==l)throw new Error("invalid coordinates format");t.toString().includes(",")&&(t=t.replace(",",".")),n.toString().includes(",")&&(n=n.replace(",","."));let u=/S|SOUTH/i;u.test(r)&&t>0&&(t=-1*t),u=/W|WEST/i,u.test(l)&&n>0&&(n=-1*n);const d=o[0].trim();let h,L;const w=/[,/;\u0020]/g,p=d.match(w);if(p==null){const S=Math.floor(i.length/2);h=d.substring(0,S).trim(),L=d.substring(S).trim()}else{let S;p.length%2==1?S=Math.floor(p.length/2):S=p.length/2-1;let z=0;if(S==0)z=d.indexOf(p[0]),h=d.substring(0,z).trim(),L=d.substring(z+1).trim();else{let W=0,Q=0;for(;W<=S;)z=d.indexOf(p[W],Q),Q=z+1,W++;h=d.substring(0,z).trim(),L=d.substring(z+1).trim()}}const I=h.split(".");if(I.length==2&&I[1]==0&&I[1].length!=2)throw new Error("invalid coordinates format");const k=L.split(".");if(k.length==2&&k[1]==0&&k[1].length!=2)throw new Error("invalid coordinates format");if(/^\d+$/.test(h)||/^\d+$/.test(L))throw new Error("degree only coordinate/s provided");return t=Number(Number(t).toFixed(e)),n=Number(Number(n).toFixed(e)),Object.freeze({verbatimCoordinates:d,verbatimLatitude:h,verbatimLongitude:L,decimalLatitude:t,decimalLongitude:n,decimalCoordinates:`${t},${n}`,originalFormat:c,closeEnough:dn,toCoordinateFormat:cn})}else throw new Error("coordinates pattern match failed")}function Fe(i){if(!isNaN(i[0]))return!1;const e=[...i];if(e.shift(),e.length%2>0)return!1;const t=/^[-+]?\d+([\.,]\d+)?$/,n=/[eastsouthnorthwest]+/i,r=e.length/2;for(let l=0;l<r;l++){const c=e[l],o=e[l+r],f=t.test(c)&&t.test(o),u=n.test(c)&&n.test(o),d=c==o;if(!(c==null&&o==null)){if(c==null||o==null)return!1;if(f||u||d)continue;return!1}}return!0}function $t(i,e){const t=Math.abs(i-e);return Number(t.toFixed(6))<=1e-5}function dn(i){if(!i)throw new Error("coords must be provided");if(i.includes(",")){const e=i.split(",");if(Number(e[0])==NaN||Number(e[1])==NaN)throw new Error("coords are not valid decimals");return $t(this.decimalLatitude,Number(e[0]))&&$t(this.decimalLongitude,e[1])}else throw new Error("coords being tested must be separated by a comma")}const fn=Object.freeze({DMS:"DMS",DM:"DM",DD:"DD"});gt.to=fn;const mn=[{verbatimCoordinates:"40.123, -74.123",verbatimLatitude:"40.123",verbatimLongitude:"-74.123"},{verbatimCoordinates:"40.123° N 74.123° W",verbatimLatitude:"40.123° N",verbatimLongitude:"74.123° W"},{verbatimCoordinates:"40.123° N 74.123° W",verbatimLatitude:"40.123° N",verbatimLongitude:"74.123° W"},{verbatimCoordinates:'40° 7´ 22.8" N 74° 7´ 22.8" W',verbatimLatitude:'40° 7´ 22.8" N',verbatimLongitude:'74° 7´ 22.8" W'},{verbatimCoordinates:"40° 7.38’ , -74° 7.38’",verbatimLatitude:"40° 7.38’",verbatimLongitude:"-74° 7.38’"},{verbatimCoordinates:"N40°7’22.8’’, W74°7’22.8’’",verbatimLatitude:"N40°7’22.8’’",verbatimLongitude:"W74°7’22.8’’"},{verbatimCoordinates:'40°7’22.8"N, 74°7’22.8"W',verbatimLatitude:'40°7’22.8"N',verbatimLongitude:'74°7’22.8"W'},{verbatimCoordinates:`40°7'22.8"N, 74°7'22.8"W`,verbatimLatitude:`40°7'22.8"N`,verbatimLongitude:`74°7'22.8"W`},{verbatimCoordinates:"40 7 22.8, -74 7 22.8",verbatimLatitude:"40 7 22.8",verbatimLongitude:"-74 7 22.8"},{verbatimCoordinates:"40.123 -74.123",verbatimLatitude:"40.123",verbatimLongitude:"-74.123"},{verbatimCoordinates:"40.123°,-74.123°",verbatimLatitude:"40.123°",verbatimLongitude:"-74.123°"},{verbatimCoordinates:"40.123N74.123W",verbatimLatitude:"40.123N",verbatimLongitude:"74.123W"},{verbatimCoordinates:"4007.38N7407.38W",verbatimLatitude:"4007.38N",verbatimLongitude:"7407.38W"},{verbatimCoordinates:'40°7’22.8"N, 74°7’22.8"W',verbatimLatitude:'40°7’22.8"N',verbatimLongitude:'74°7’22.8"W'},{verbatimCoordinates:"400722.8N740722.8W",verbatimLatitude:"400722.8N",verbatimLongitude:"740722.8W"},{verbatimCoordinates:"N 40 7.38 W 74 7.38",verbatimLatitude:"N 40 7.38",verbatimLongitude:"W 74 7.38"},{verbatimCoordinates:"40:7:22.8N 74:7:22.8W",verbatimLatitude:"40:7:22.8N",verbatimLongitude:"74:7:22.8W"},{verbatimCoordinates:"40:7:23N,74:7:23W",verbatimLatitude:"40:7:23N",verbatimLongitude:"74:7:23W",decimalLatitude:40.1230555555,decimalLongitude:-74.1230555555},{verbatimCoordinates:'40°7’23"N 74°7’23"W',verbatimLatitude:'40°7’23"N',verbatimLongitude:'74°7’23"W',decimalLatitude:40.1230555555,decimalLongitude:-74.12305555555555},{verbatimCoordinates:'40°7’23"S 74°7’23"E',verbatimLatitude:'40°7’23"S',verbatimLongitude:'74°7’23"E',decimalLatitude:-40.1230555555,decimalLongitude:74.12305555555555},{verbatimCoordinates:'40°7’23" -74°7’23"',verbatimLatitude:'40°7’23"',verbatimLongitude:'-74°7’23"',decimalLatitude:40.1230555555,decimalLongitude:-74.123055555},{verbatimCoordinates:'40d 7’ 23" N 74d 7’ 23" W',verbatimLatitude:'40d 7’ 23" N',verbatimLongitude:'74d 7’ 23" W',decimalLatitude:40.1230555555,decimalLongitude:-74.123055555},{verbatimCoordinates:"40.123N 74.123W",verbatimLatitude:"40.123N",verbatimLongitude:"74.123W"},{verbatimCoordinates:"40° 7.38, -74° 7.38",verbatimLatitude:"40° 7.38",verbatimLongitude:"-74° 7.38"},{verbatimCoordinates:"40° 7.38, -74° 7.38",verbatimLatitude:"40° 7.38",verbatimLongitude:"-74° 7.38"},{verbatimCoordinates:"40 7 22.8; -74 7 22.8",verbatimLatitude:"40 7 22.8",verbatimLongitude:"-74 7 22.8"}],gn={decimalLatitude:40.123,decimalLongitude:-74.123},hn=[{verbatimCoordinates:`50°4'17.698"south, 14°24'2.826"east`,verbatimLatitude:`50°4'17.698"south`,verbatimLongitude:`14°24'2.826"east`,decimalLatitude:-50.07158277777778,decimalLongitude:14.400785},{verbatimCoordinates:"50d4m17.698S 14d24m2.826E",verbatimLatitude:"50d4m17.698S",verbatimLongitude:"14d24m2.826E",decimalLatitude:-50.07158277777778,decimalLongitude:14.400785},{verbatimCoordinates:"40:26:46N,79:56:55W",verbatimLatitude:"40:26:46N",verbatimLongitude:"79:56:55W",decimalLatitude:40.44611111111111,decimalLongitude:-79.9486111111111},{verbatimCoordinates:"40:26:46.302N 79:56:55.903W",verbatimLatitude:"40:26:46.302N",verbatimLongitude:"79:56:55.903W",decimalLatitude:40.446195,decimalLongitude:-79.94886194444445},{verbatimCoordinates:"40°26′47″N 79°58′36″W",verbatimLatitude:"40°26′47″N",verbatimLongitude:"79°58′36″W",decimalLatitude:40.44638888888889,decimalLongitude:-79.97666666666667},{verbatimCoordinates:"40d 26′ 47″ N 79d 58′ 36″ W",verbatimLatitude:"40d 26′ 47″ N",verbatimLongitude:"79d 58′ 36″ W",decimalLatitude:40.44638888888889,decimalLongitude:-79.97666666666667},{verbatimCoordinates:"40.446195N 79.948862W",verbatimLatitude:"40.446195N",verbatimLongitude:"79.948862W",decimalLatitude:40.446195,decimalLongitude:-79.948862},{verbatimCoordinates:"40,446195° 79,948862°",verbatimLatitude:"40,446195°",verbatimLongitude:"79,948862°",decimalLatitude:40.446195,decimalLongitude:79.948862},{verbatimCoordinates:"40° 26.7717, -79° 56.93172",verbatimLatitude:"40° 26.7717",verbatimLongitude:"-79° 56.93172",decimalLatitude:40.446195,decimalLongitude:-79.948862},{verbatimCoordinates:"40.446195, -79.948862",verbatimLatitude:"40.446195",verbatimLongitude:"-79.948862",decimalLatitude:40.446195,decimalLongitude:-79.948862},{verbatimCoordinates:"40.123256; -74.123256",verbatimLatitude:"40.123256",verbatimLongitude:"-74.123256",decimalLatitude:40.123256,decimalLongitude:-74.123256},{verbatimCoordinates:"18°24S 22°45E",verbatimLatitude:"18°24S",verbatimLongitude:"22°45E",decimalLatitude:-18.4,decimalLongitude:22.75}],bn=[{verbatimCoordinates:"10.432342S 10.6345345E",verbatimLatitude:"10.432342S",verbatimLongitude:"10.6345345E",decimalLatitude:-10.432342,decimalLongitude:10.6345345},{verbatimCoordinates:"10.00S 10.00E",verbatimLatitude:"10.00S",verbatimLongitude:"10.00E",decimalLatitude:-10,decimalLongitude:10},{verbatimCoordinates:"00.00S 01.00E",verbatimLatitude:"00.00S",verbatimLongitude:"01.00E",decimalLatitude:0,decimalLongitude:1},{verbatimCoordinates:"18.24S 22.45E",verbatimLatitude:"18.24S",verbatimLongitude:"22.45E",decimalLatitude:-18.4,decimalLongitude:22.75},{verbatimCoordinates:"27deg 15min 45.2sec S 18deg 32min 53.7sec E",verbatimLatitude:"27deg 15min 45.2sec S",verbatimLongitude:"18deg 32min 53.7sec E",decimalLatitude:-27.262555555555554,decimalLongitude:18.54825},{verbatimCoordinates:"-23.3245° S / 28.2344° E",verbatimLatitude:"-23.3245° S",verbatimLongitude:"28.2344° E",decimalLatitude:-23.3245,decimalLongitude:28.2344},{verbatimCoordinates:"40° 26.7717 -79° 56.93172",verbatimLatitude:"40° 26.7717",verbatimLongitude:"-79° 56.93172",decimalLatitude:40.446195,decimalLongitude:-79.948862},{verbatimCoordinates:"27.15.45S 18.32.53E",verbatimLatitude:"27.15.45S",verbatimLongitude:"18.32.53E",decimalLatitude:-27.2625,decimalLongitude:18.548055},{verbatimCoordinates:"-27.15.45 18.32.53",verbatimLatitude:"-27.15.45",verbatimLongitude:"18.32.53",decimalLatitude:-27.2625,decimalLongitude:18.548055},{verbatimCoordinates:"27.15.45.2S 18.32.53.4E",verbatimLatitude:"27.15.45.2S",verbatimLongitude:"18.32.53.4E",decimalLatitude:-27.262556,decimalLongitude:18.548167},{verbatimCoordinates:"27.15.45,2S 18.32.53,4E",verbatimLatitude:"27.15.45,2S",verbatimLongitude:"18.32.53,4E",decimalLatitude:-27.262556,decimalLongitude:18.548167},{verbatimCoordinates:"S23.43563 ° E22.45634 °",verbatimLatitude:"S23.43563 °",verbatimLongitude:"E22.45634 °",decimalLatitude:-23.43563,decimalLongitude:22.45634},{verbatimCoordinates:"27,71372° S 23,07771° E",verbatimLatitude:"27,71372° S",verbatimLongitude:"23,07771° E",decimalLatitude:-27.71372,decimalLongitude:23.07771},{verbatimCoordinates:"27.45.34 S 23.23.23 E",verbatimLatitude:"27.45.34 S",verbatimLongitude:"23.23.23 E",decimalLatitude:-27.759444,decimalLongitude:23.38972222},{verbatimCoordinates:"S 27.45.34 E 23.23.23",verbatimLatitude:"S 27.45.34",verbatimLongitude:"E 23.23.23",decimalLatitude:-27.759444,decimalLongitude:23.38972222},{verbatimCoordinates:"53 16.3863,4 52.8171",verbatimLatitude:"53 16.3863",verbatimLongitude:"4 52.8171",decimalLatitude:53.273105,decimalLongitude:4.88029},{verbatimCoordinates:"50 8.2914,-5 2.4447",verbatimLatitude:"50 8.2914",verbatimLongitude:"-5 2.4447",decimalLatitude:50.13819,decimalLongitude:-5.040745},{verbatimCoordinates:"N 48° 30,6410', E 18° 57,4583'",verbatimLatitude:"N 48° 30,6410'",verbatimLongitude:"E 18° 57,4583'",decimalLatitude:48.51068,decimalLongitude:18.95764},{verbatimCoordinates:"1.23456, 18.33453",verbatimLatitude:"1.23456",verbatimLongitude:"18.33453",decimalLatitude:1.23456,decimalLongitude:18.33453}];function vn(){const i=[];return mn.forEach(e=>{e.decimalLatitude?i.push(e):i.push({...e,...gn})}),[...i,...hn,...bn]}const Ln=vn();gt.formats=Ln.map(i=>i.verbatimCoordinates);const _n=gt;function ei(i,e,t){const n=i.slice();return n[100]=e[t],n[102]=t,n}function ti(i){let e,t;return e=new tn({}),{c(){ye(e.$$.fragment)},m(n,r){be(e,n,r),t=!0},i(n){t||(F(e.$$.fragment,n),t=!0)},o(n){V(e.$$.fragment,n),t=!1},d(n){ve(e,n)}}}function ii(i){let e,t,n,r,l;return t=new rn({}),{c(){e=D("button"),ye(t.$$.fragment),a(e,"type","button"),a(e,"title",i[10]),a(e,"class","svelte-bz0zu3"),Oe(e,"active",i[0])},m(c,o){P(c,e,o),be(t,e,null),n=!0,r||(l=q(e,"click",i[81]),r=!0)},p(c,o){(!n||o[0]&1024)&&a(e,"title",c[10]),(!n||o[0]&1)&&Oe(e,"active",c[0])},i(c){n||(F(t.$$.fragment,c),n=!0)},o(c){V(t.$$.fragment,c),n=!1},d(c){c&&A(e),ve(t),r=!1,l()}}}function yn(i){let e,t=[],n=new Map,r,l,c,o=Ft(i[13]);const f=u=>u[100].id+(u[100].address?","+u[100].address:"");for(let u=0;u<o.length;u+=1){let d=ei(i,o,u),h=f(d);n.set(h,t[u]=ni(h,d))}return{c(){e=D("ul");for(let u=0;u<t.length;u+=1)t[u].c();a(e,"class","options svelte-bz0zu3"),a(e,"role","listbox")},m(u,d){P(u,e,d);for(let h=0;h<t.length;h+=1)t[h]&&t[h].m(e,null);r=!0,l||(c=[q(e,"mouseleave",i[27]),q(e,"blur",i[85]),q(e,"keydown",i[23])],l=!0)},p(u,d){d[0]&102823936&&(o=Ft(u[13]),Xe(),t=Ai(t,d,f,1,u,o,n,e,Ui,ni,null,ei),Je())},i(u){if(!r){for(let d=0;d<o.length;d+=1)F(t[d]);r=!0}},o(u){for(let d=0;d<t.length;d+=1)V(t[d]);r=!1},d(u){u&&A(e);for(let d=0;d<t.length;d+=1)t[d].d();l=!1,ge(c)}}}function wn(i){let e,t,n,r,l,c;return t=new Ht({}),{c(){e=D("div"),ye(t.$$.fragment),n=te(),r=D("div"),l=_e(i[8]),a(r,"class","svelte-bz0zu3"),a(e,"class","no-results svelte-bz0zu3")},m(o,f){P(o,e,f),be(t,e,null),M(e,n),M(e,r),M(r,l),c=!0},p(o,f){(!c||f[0]&256)&&Ae(l,o[8])},i(o){c||(F(t.$$.fragment,o),c=!0)},o(o){V(t.$$.fragment,o),c=!1},d(o){o&&A(e),ve(t)}}}function En(i){let e="",t;return{c(){t=_e(e)},m(n,r){P(n,t,r)},p:v,i:v,o:v,d(n){n&&A(t)}}}function pn(i){let e,t,n,r,l,c,o,f,u,d,h;return t=new Ht({}),f=new Gt({}),{c(){e=D("div"),ye(t.$$.fragment),n=te(),r=D("div"),l=_e(i[7]),c=te(),o=D("button"),ye(f.$$.fragment),a(r,"class","svelte-bz0zu3"),a(o,"class","svelte-bz0zu3"),a(e,"class","error svelte-bz0zu3")},m(L,w){P(L,e,w),be(t,e,null),M(e,n),M(e,r),M(r,l),M(e,c),M(e,o),be(f,o,null),u=!0,d||(h=q(o,"click",i[82]),d=!0)},p(L,w){(!u||w[0]&128)&&Ae(l,L[7])},i(L){u||(F(t.$$.fragment,L),F(f.$$.fragment,L),u=!0)},o(L){V(t.$$.fragment,L),V(f.$$.fragment,L),u=!1},d(L){L&&A(e),ve(t),ve(f),d=!1,h()}}}function ni(i,e){var o;let t,n,r;function l(){return e[83](e[102])}function c(){return e[84](e[100])}return n=new $i({props:{feature:e[100],showPlaceType:e[11],style:e[15]===e[102]?"selected":((o=e[14])==null?void 0:o.id)===e[100].id?"picked":"default",missingIconsCache:e[21],iconsBaseUrl:e[12]}}),n.$on("mouseenter",l),n.$on("select",c),{key:i,first:null,c(){t=ki(),ye(n.$$.fragment),this.first=t},m(f,u){P(f,t,u),be(n,f,u),r=!0},p(f,u){var h;e=f;const d={};u[0]&8192&&(d.feature=e[100]),u[0]&2048&&(d.showPlaceType=e[11]),u[0]&57344&&(d.style=e[15]===e[102]?"selected":((h=e[14])==null?void 0:h.id)===e[100].id?"picked":"default"),u[0]&4096&&(d.iconsBaseUrl=e[12]),n.$set(d)},i(f){r||(F(n.$$.fragment,f),r=!0)},o(f){V(n.$$.fragment,f),r=!1},d(f){f&&A(t),ve(n,f)}}}function Sn(i){let e,t,n,r,l,c,o,f,u,d,h,L,w,p,I,k,S,z,W,Q,$,Y=!1;l=new sn({}),h=new Gt({});let E=i[20]&&ti(),g=i[6]==="button"&&ii(i);const C=i[72].default,N=Ei(C,i,i[71],null),_=[pn,En,wn,yn],m=[];function Me(y,G){var ce,ne;return y[19]?0:!y[16]&&!y[4]?1:((ce=y[13])==null?void 0:ce.length)===0?2:(ne=y[13])!=null&&ne.length&&(y[16]||y[4])?3:-1}return~(k=Me(i))&&(S=m[k]=_[k](i)),{c(){e=te(),t=D("form"),n=D("div"),r=D("button"),ye(l.$$.fragment),c=te(),o=D("input"),f=te(),u=D("div"),d=D("button"),ye(h.$$.fragment),L=te(),E&&E.c(),w=te(),g&&g.c(),p=te(),N&&N.c(),I=te(),S&&S.c(),a(r,"class","search-button svelte-bz0zu3"),a(r,"type","button"),a(o,"placeholder",i[9]),a(o,"aria-label",i[9]),a(o,"class","svelte-bz0zu3"),a(d,"type","button"),a(d,"title",i[3]),a(d,"class","svelte-bz0zu3"),a(u,"class","clear-button-container svelte-bz0zu3"),Oe(u,"displayable",i[1]!==""),a(n,"class","input-group svelte-bz0zu3"),a(t,"class",z=Ve(i[2])+" svelte-bz0zu3"),Oe(t,"can-collapse",i[5]&&i[1]==="")},m(y,G){P(y,e,G),P(y,t,G),M(t,n),M(n,r),be(l,r,null),M(n,c),M(n,o),i[74](o),Ut(o,i[1]),M(n,f),M(n,u),M(u,d),be(h,d,null),M(u,L),E&&E.m(u,null),M(n,w),g&&g.m(n,null),M(n,p),N&&N.m(n,null),M(t,I),~k&&m[k].m(t,null),W=!0,Q||($=[q(r,"click",i[73]),q(o,"input",i[75]),q(o,"focus",i[76]),q(o,"blur",i[77]),q(o,"click",i[78]),q(o,"keydown",i[23]),q(o,"input",i[24]),q(o,"change",i[79]),q(d,"click",i[80]),q(t,"submit",Ni(i[22]))],Q=!0)},p(y,G){(!W||G[0]&512)&&a(o,"placeholder",y[9]),(!W||G[0]&512)&&a(o,"aria-label",y[9]),G[0]&2&&o.value!==y[1]&&Ut(o,y[1]),(!W||G[0]&8)&&a(d,"title",y[3]),y[20]?E?G[0]&1048576&&F(E,1):(E=ti(),E.c(),F(E,1),E.m(u,null)):E&&(Xe(),V(E,1,1,()=>{E=null}),Je()),(!W||G[0]&2)&&Oe(u,"displayable",y[1]!==""),y[6]==="button"?g?(g.p(y,G),G[0]&64&&F(g,1)):(g=ii(y),g.c(),F(g,1),g.m(n,p)):g&&(Xe(),V(g,1,1,()=>{g=null}),Je()),N&&N.p&&(!W||G[2]&512)&&Si(N,C,y,y[71],W?pi(C,y[71],G,null):Ti(y[71]),null);let ce=k;k=Me(y),k===ce?~k&&m[k].p(y,G):(S&&(Xe(),V(m[ce],1,1,()=>{m[ce]=null}),Je()),~k?(S=m[k],S?S.p(y,G):(S=m[k]=_[k](y),S.c()),F(S,1),S.m(t,null)):S=null),(!W||G[0]&4&&z!==(z=Ve(y[2])+" svelte-bz0zu3"))&&a(t,"class",z),(!W||G[0]&38)&&Oe(t,"can-collapse",y[5]&&y[1]==="")},i(y){W||(F(Y),F(l.$$.fragment,y),F(h.$$.fragment,y),F(E),F(g),F(N,y),F(S),W=!0)},o(y){V(Y),V(l.$$.fragment,y),V(h.$$.fragment,y),V(E),V(g),V(N,y),V(S),W=!1},d(y){y&&(A(e),A(t)),ve(l),i[74](null),ve(h),E&&E.d(),g&&g.d(),N&&N.d(y),~k&&m[k].d(),Q=!1,ge($)}}}function Tn(i,e,t){let n,r,l,{$$slots:c={},$$scope:o}=e;const f={continental_marine:4,country:4,major_landform:8,region:5,subregion:6,county:7,joint_municipality:8,joint_submunicipality:9,municipality:10,municipal_district:11,locality:12,neighbourhood:13,place:14,postal_code:14,road:16,poi:17,address:18,"poi.peak":15,"poi.shop":18,"poi.cafe":18,"poi.restaurant":18,"poi.aerodrome":13};let{class:u=void 0}=e,{apiKey:d}=e,{bbox:h=void 0}=e,{clearButtonTitle:L="clear"}=e,{clearOnBlur:w=!1}=e,{clearListOnPick:p=!1}=e,{keepListOpen:I=!1}=e,{collapsed:k=!1}=e,{country:S=void 0}=e,{debounceSearch:z=200}=e,{enableReverse:W="never"}=e,{errorMessage:Q="Something went wrong…"}=e,{filter:$=()=>!0}=e,{flyTo:Y=!0}=e,{fuzzyMatch:E=!0}=e,{language:g=void 0}=e,{limit:C=void 0}=e;const N=41415112612;let{reverseGeocodingLimit:_=N}=e,{mapController:m=void 0}=e,{minLength:Me=2}=e,{noResultsMessage:y="Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!"}=e,{placeholder:G="Search"}=e,{proximity:ce=[{type:"server-geolocation"}]}=e,{reverseActive:ne=W==="always"}=e,{reverseButtonTitle:ri="toggle reverse geocoding"}=e,{searchValue:K=""}=e,{pickedResultStyle:et="full-geometry"}=e,{showPlaceType:oi="if-needed"}=e,{showResultsWhileTyping:tt=!0}=e,{autocompleteTimeout:vt=void 0}=e,{selectFirst:Ce=!0}=e,{flyToSelected:it=!1}=e,{markerOnSelected:nt=!0}=e,{types:Lt=void 0}=e;const si=[];let{reverseGeocodingTypes:rt=si}=e,{exhaustiveReverseGeocoding:_t=!1}=e,{excludeTypes:yt=!1}=e;const ai=void 0;let{reverseGeocodingExcludeTypes:ot=ai}=e,{zoom:st=f}=e,{apiUrl:wt="https://api.maptiler.com/geocoding"}=e,{fetchParameters:Et={}}=e,{iconsBaseUrl:li="https://cdn.maptiler.com/maptiler-geocoding-control/v2.1.3-rc1/icons/"}=e,{adjustUrlQuery:pt=()=>{}}=e,{adjustUrl:St=()=>{}}=e;function Mn(s){ae.focus(s)}function Cn(){ae.blur()}function ui(s,B=!0,H=!1){t(1,K=s),B?(t(15,R=-1),di()):(fi(void 0,!H,H),setTimeout(()=>{ae.focus(),ae.select()}))}function Wn(){t(13,T=void 0),t(14,b=void 0),t(15,R=-1)}function On(){t(65,Z=[]),t(14,b=void 0)}let T,Z,b,ci="",ae,R=-1,de,at=[],We,we,re,Ie,Tt,Le=!1;const zn=new Set,Ee=Pt();function Rn(){return!!re}Wi(()=>{m&&(m.setEventHandler(void 0),m.indicateReverse(!1),m.setSelectedMarker(-1),m.setFeatures(void 0,void 0,!1))});function di(s){if(t(17,Le=!1),we&&(window.clearTimeout(we),we=void 0),re){window.clearTimeout(re),t(66,re=void 0),Ge(K,{appendSpace:!0});return}if(R>-1&&T)t(14,b=T[R]),t(1,K=b.place_type[0]==="reverse"?b.place_name:b.place_name.replace(/,.*/,"")),t(19,de=void 0),t(65,Z=void 0),t(15,R=-1);else if(K){const B=s||!kt(K);Ge(K,{exact:!0}).then(()=>{t(65,Z=T),t(14,b=void 0),B&&Dn()}).catch(H=>t(19,de=H))}}function kt(s){try{return _n(s,6)}catch{return!1}}async function Ge(s,{byId:B=!1,exact:H=!1,appendSpace:le=!1}={}){var fe,pe,gi;t(19,de=void 0),We==null||We.abort();const X=new AbortController;t(20,We=X);try{const U=kt(s),Ze=new URL(wt+"/"+encodeURIComponent(U?U.decimalLongitude+","+U.decimalLatitude:s+(le?" ":""))+".json"),oe=Ze.searchParams;g!==void 0&&oe.set("language",Array.isArray(g)?g.join(","):g??"");const[Ct]=(m==null?void 0:m.getCenterAndZoom())??[];let me=(fe=!U||rt===si?Lt:rt)==null?void 0:fe.map(x=>typeof x=="string"?x:Ct===void 0||(x[0]??0)<=Ct&&Ct<(x[1]??1/0)?x[2]:void 0).filter(x=>x!==void 0);me&&(me=[...new Set(me)],oe.set("types",me.join(",")));const hi=!U||ot===ai?yt:ot;if(hi&&oe.set("excludeTypes",String(hi)),h&&oe.set("bbox",h.map(x=>x.toFixed(6)).join(",")),S&&oe.set("country",Array.isArray(S)?S.join(","):S),!B&&!U){const x=await ln(m,ce,X);x&&oe.set("proximity",x),(H||!tt)&&oe.set("autocomplete","false"),oe.set("fuzzyMatch",String(E))}const qe=_===N?C:_;qe!==void 0&&qe>1&&(me==null?void 0:me.length)!==1&&console.warn("For reverse geocoding when limit > 1 then types must contain single value."),U?(qe===1||qe!==void 0&&(_t||(me==null?void 0:me.length)===1))&&oe.set("limit",String(qe)):C!==void 0&&oe.set("limit",String(C)),oe.set("key",d),pt(oe),St(Ze);const Jn=Ze.searchParams.get("types")===""&&Ze.searchParams.get("excludeTypes")!=="true",lt=Ze.toString();if(lt===ci){B?(p&&t(13,T=void 0),t(14,b=at[0])):(t(13,T=at),((pe=T[R])==null?void 0:pe.id)!==(r==null?void 0:r.id)&&t(15,R=-1));return}ci=lt;let Qe;if(Jn)Qe={type:"FeatureCollection",features:[]};else{const x=await fetch(lt,{signal:X.signal,...Et});if(!x.ok)throw new Error(await x.text());Qe=await x.json()}Ee("response",{url:lt,featureCollection:Qe}),B?(p&&t(13,T=void 0),t(14,b=Qe.features[0]),at=[b]):(t(13,T=Qe.features.filter($)),U&&T.unshift({type:"Feature",properties:{},id:"reverse_"+U.decimalLongitude+"_"+U.decimalLatitude,text:U.decimalLatitude+", "+U.decimalLongitude,place_name:U.decimalLatitude+", "+U.decimalLongitude,place_type:["reverse"],center:[U.decimalLongitude,U.decimalLatitude],bbox:[U.decimalLongitude,U.decimalLatitude,U.decimalLongitude,U.decimalLatitude],geometry:{type:"Point",coordinates:[U.decimalLongitude,U.decimalLatitude]}}),at=T,((gi=T[R])==null?void 0:gi.id)!==(r==null?void 0:r.id)&&t(15,R=-1),U&&ae.focus())}catch(U){if(U&&typeof U=="object"&&"name"in U&&U.name==="AbortError")return;throw U}finally{X===We&&t(20,We=void 0)}}function Dn(){var le;if(!(Z!=null&&Z.length)||!Y)return;const s=[180,90,-180,-90],B=!Z.some(X=>!X.matching_text);let H;for(const X of Z){const fe=He(X);if(H=H===void 0?fe:fe===void 0?H:Math.max(H,fe),B||!X.matching_text)for(const pe of[0,1,2,3])s[pe]=Math[pe<2?"min":"max"](s[pe],((le=X.bbox)==null?void 0:le[pe])??X.center[pe%2])}m&&Z.length>0&&(b&&s[0]===s[2]&&s[1]===s[3]?m.flyTo(b.center,He(b)):m.fitBounds(Qt(s),50,H))}function Nt(){!b||!m||(!b.bbox||b.bbox[0]===b.bbox[2]&&b.bbox[1]===b.bbox[3]?m.flyTo(b.center,He(b)):m.fitBounds(Qt(b.bbox),50,He(b)))}function He(s){var H;if(!s.bbox||s.bbox[0]!==s.bbox[2]&&s.bbox[1]!==s.bbox[3])return;const B=s.id.replace(/\..*/,"");return(Array.isArray((H=s.properties)==null?void 0:H.categories)?s.properties.categories.reduce((le,X)=>{const fe=st[B+"."+X];return le===void 0?fe:fe===void 0?le:Math.max(le,fe)},void 0):void 0)??st[B]}function In(s){t(0,ne=W==="always"),t(13,T=void 0),t(14,b=void 0),t(15,R=-1),ui(s[1].toFixed(6)+", "+an(s[0],[-180,180],!0).toFixed(6),!1,!0)}function Un(s){if(!T)return;let B=s.key==="ArrowDown"?1:s.key==="ArrowUp"?-1:0;B&&(ae.focus(),t(17,Le=!0),s.preventDefault(),b&&R===-1&&t(15,R=T.findIndex(H=>H.id===(b==null?void 0:b.id))),R===(b||Ce?0:-1)&&B===-1&&t(15,R=T.length),t(15,R+=B),R>=T.length&&t(15,R=-1),R<0&&(b||Ce)&&t(15,R=0))}function fi(s,B=!0,H=!1){if(t(19,de=void 0),t(14,b=void 0),t(17,Le=!0),we&&(window.clearTimeout(we),we=void 0),re&&(window.clearTimeout(re),t(66,re=void 0)),!tt&&!H||K.length<Me){t(13,T=void 0);return}const le=K;we=window.setTimeout(()=>{we=void 0,Ge(le).catch(X=>t(19,de=X))},B?z:0),K.endsWith(" ")||t(66,re=window.setTimeout(()=>{t(66,re=void 0),Ge(le,{appendSpace:!0}).catch(X=>t(19,de=X))},vt))}function Mt(s){b&&(b==null?void 0:b.id)===(s==null?void 0:s.id)?Nt():(t(14,b=s),t(1,K=s.place_name))}function mi(s){t(15,R=s)}function An(){(!Ce||b)&&t(15,R=-1),it&&Nt()}const Pn=()=>ae.focus();function Bn(s){ut[s?"unshift":"push"](()=>{ae=s,t(18,ae)})}function jn(){K=this.value,t(1,K),t(17,Le),t(31,w),t(16,Ie)}const Fn=()=>t(17,Le=!0),Gn=()=>t(17,Le=!1),Hn=()=>t(17,Le=!0),Zn=()=>t(14,b=void 0),qn=()=>{t(1,K=""),t(14,b=void 0),ae.focus()},Qn=()=>t(0,ne=!ne),Kn=()=>t(19,de=void 0),Vn=s=>mi(s),Yn=s=>Mt(s),Xn=()=>{};return i.$$set=s=>{"class"in s&&t(2,u=s.class),"apiKey"in s&&t(29,d=s.apiKey),"bbox"in s&&t(30,h=s.bbox),"clearButtonTitle"in s&&t(3,L=s.clearButtonTitle),"clearOnBlur"in s&&t(31,w=s.clearOnBlur),"clearListOnPick"in s&&t(32,p=s.clearListOnPick),"keepListOpen"in s&&t(4,I=s.keepListOpen),"collapsed"in s&&t(5,k=s.collapsed),"country"in s&&t(33,S=s.country),"debounceSearch"in s&&t(34,z=s.debounceSearch),"enableReverse"in s&&t(6,W=s.enableReverse),"errorMessage"in s&&t(7,Q=s.errorMessage),"filter"in s&&t(35,$=s.filter),"flyTo"in s&&t(36,Y=s.flyTo),"fuzzyMatch"in s&&t(37,E=s.fuzzyMatch),"language"in s&&t(38,g=s.language),"limit"in s&&t(39,C=s.limit),"reverseGeocodingLimit"in s&&t(40,_=s.reverseGeocodingLimit),"mapController"in s&&t(41,m=s.mapController),"minLength"in s&&t(42,Me=s.minLength),"noResultsMessage"in s&&t(8,y=s.noResultsMessage),"placeholder"in s&&t(9,G=s.placeholder),"proximity"in s&&t(43,ce=s.proximity),"reverseActive"in s&&t(0,ne=s.reverseActive),"reverseButtonTitle"in s&&t(10,ri=s.reverseButtonTitle),"searchValue"in s&&t(1,K=s.searchValue),"pickedResultStyle"in s&&t(44,et=s.pickedResultStyle),"showPlaceType"in s&&t(11,oi=s.showPlaceType),"showResultsWhileTyping"in s&&t(45,tt=s.showResultsWhileTyping),"autocompleteTimeout"in s&&t(46,vt=s.autocompleteTimeout),"selectFirst"in s&&t(47,Ce=s.selectFirst),"flyToSelected"in s&&t(48,it=s.flyToSelected),"markerOnSelected"in s&&t(49,nt=s.markerOnSelected),"types"in s&&t(50,Lt=s.types),"reverseGeocodingTypes"in s&&t(51,rt=s.reverseGeocodingTypes),"exhaustiveReverseGeocoding"in s&&t(52,_t=s.exhaustiveReverseGeocoding),"excludeTypes"in s&&t(53,yt=s.excludeTypes),"reverseGeocodingExcludeTypes"in s&&t(54,ot=s.reverseGeocodingExcludeTypes),"zoom"in s&&t(55,st=s.zoom),"apiUrl"in s&&t(56,wt=s.apiUrl),"fetchParameters"in s&&t(57,Et=s.fetchParameters),"iconsBaseUrl"in s&&t(12,li=s.iconsBaseUrl),"adjustUrlQuery"in s&&t(58,pt=s.adjustUrlQuery),"adjustUrl"in s&&t(59,St=s.adjustUrl),"$$scope"in s&&t(71,o=s.$$scope)},i.$$.update=()=>{if(i.$$.dirty[0]&64&&t(0,ne=W==="always"),i.$$.dirty[0]&16384|i.$$.dirty[1]&8192&&et!=="marker-only"&&b&&!b.address&&b.geometry.type==="Point"&&b.place_type[0]!=="reverse"&&Ge(b.id,{byId:!0}).catch(s=>t(19,de=s)),i.$$.dirty[0]&16384|i.$$.dirty[1]&1058|i.$$.dirty[2]&32&&(m&&b&&b.id!==Tt&&Y&&(Nt(),p&&t(13,T=void 0),t(65,Z=void 0),t(15,R=-1)),t(67,Tt=b==null?void 0:b.id)),i.$$.dirty[0]&196608|i.$$.dirty[1]&1&&setTimeout(()=>{t(16,Ie=Le),w&&!Ie&&t(1,K="")}),i.$$.dirty[0]&8194|i.$$.dirty[1]&2048&&K.length<Me&&(t(13,T=void 0),t(19,de=void 0),t(65,Z=T)),i.$$.dirty[0]&8192|i.$$.dirty[1]&65536&&Ce&&T!=null&&T.length&&(Rn()||t(15,R=0)),i.$$.dirty[0]&57344|i.$$.dirty[1]&65536&&Ce&&T!=null&&T.length&&R==-1&&!b&&t(15,R=0),i.$$.dirty[0]&8192|i.$$.dirty[2]&8&&Z!==T&&t(65,Z=void 0),i.$$.dirty[0]&73729|i.$$.dirty[1]&1024|i.$$.dirty[2]&8&&m&&m.setEventHandler(s=>{switch(s.type){case"mapClick":ne&&In(s.coordinates);break;case"markerClick":{const B=T==null?void 0:T.find(H=>H.id===s.id);B&&Mt(B)}break;case"markerMouseEnter":Z&&t(15,R=Ie?(T==null?void 0:T.findIndex(B=>B.id===s.id))??-1:-1);break;case"markerMouseLeave":Z&&t(15,R=-1);break}}),i.$$.dirty[0]&40960&&t(68,r=T==null?void 0:T[R]),i.$$.dirty[1]&132128|i.$$.dirty[2]&64&&m&&r&&Y&&it&&m.flyTo(r.center,He(r)),i.$$.dirty[1]&8192&&t(70,n=et==="full-geometry-including-polygon-center-marker"),i.$$.dirty[1]&263168|i.$$.dirty[2]&256&&(nt||m==null||m.setFeatures(void 0,void 0,n)),i.$$.dirty[0]&16384|i.$$.dirty[1]&263168|i.$$.dirty[2]&328&&m&&nt&&!Z&&(m.setFeatures(r?[r]:void 0,b,n),m.setSelectedMarker(r?0:-1)),i.$$.dirty[0]&16384|i.$$.dirty[1]&1024|i.$$.dirty[2]&264&&m&&m.setFeatures(Z,b,n),i.$$.dirty[0]&32768|i.$$.dirty[1]&1024|i.$$.dirty[2]&8&&Z&&m&&m.setSelectedMarker(R),i.$$.dirty[2]&80&&r&&(window.clearTimeout(re),t(66,re=void 0)),i.$$.dirty[0]&2|i.$$.dirty[1]&1024&&m){const s=kt(K);m.setReverseMarker(s?[s.decimalLongitude,s.decimalLatitude]:void 0)}i.$$.dirty[2]&64&&Ee("select",{feature:r}),i.$$.dirty[0]&16384&&Ee("pick",{feature:b}),i.$$.dirty[0]&73744&&t(69,l=!!(T!=null&&T.length)&&(Ie||I)),i.$$.dirty[2]&128&&Ee("optionsvisibilitychange",{optionsVisible:l}),i.$$.dirty[0]&8192&&Ee("featureslisted",{features:T}),i.$$.dirty[2]&8&&Ee("featuresmarked",{features:Z}),i.$$.dirty[0]&1&&Ee("reversetoggle",{reverse:ne}),i.$$.dirty[0]&2&&Ee("querychange",{query:K}),i.$$.dirty[0]&1|i.$$.dirty[1]&1024&&m&&m.indicateReverse(ne)},[ne,K,u,L,I,k,W,Q,y,G,ri,oi,li,T,b,R,Ie,Le,ae,de,We,zn,di,Un,fi,Mt,mi,An,f,d,h,w,p,S,z,$,Y,E,g,C,_,m,Me,ce,et,tt,vt,Ce,it,nt,Lt,rt,_t,yt,ot,st,wt,Et,pt,St,Mn,Cn,ui,Wn,On,Z,re,Tt,r,l,n,o,c,Pn,Bn,jn,Fn,Gn,Hn,Zn,qn,Qn,Kn,Vn,Yn,Xn]}let kn=class extends Ne{constructor(e){super(),ke(this,e,Tn,Sn,Se,{ZOOM_DEFAULTS:28,class:2,apiKey:29,bbox:30,clearButtonTitle:3,clearOnBlur:31,clearListOnPick:32,keepListOpen:4,collapsed:5,country:33,debounceSearch:34,enableReverse:6,errorMessage:7,filter:35,flyTo:36,fuzzyMatch:37,language:38,limit:39,reverseGeocodingLimit:40,mapController:41,minLength:42,noResultsMessage:8,placeholder:9,proximity:43,reverseActive:0,reverseButtonTitle:10,searchValue:1,pickedResultStyle:44,showPlaceType:11,showResultsWhileTyping:45,autocompleteTimeout:46,selectFirst:47,flyToSelected:48,markerOnSelected:49,types:50,reverseGeocodingTypes:51,exhaustiveReverseGeocoding:52,excludeTypes:53,reverseGeocodingExcludeTypes:54,zoom:55,apiUrl:56,fetchParameters:57,iconsBaseUrl:12,adjustUrlQuery:58,adjustUrl:59,focus:60,blur:61,setQuery:62,clearList:63,clearMap:64},null,[-1,-1,-1,-1])}get ZOOM_DEFAULTS(){return this.$$.ctx[28]}get focus(){return this.$$.ctx[60]}get blur(){return this.$$.ctx[61]}get setQuery(){return this.$$.ctx[62]}get clearList(){return this.$$.ctx[63]}get clearMap(){return this.$$.ctx[64]}};const Nn=new FinalizationRegistry(i=>{i.$destroy()}),bt=class bt extends EventTarget{constructor({target:t,...n}){super();zt(this,$e);zt(this,ee);vi(this,ee,new kn({target:t,props:n}));for(const r of["select","pick","featureslisted","featuresmarked","response","optionsvisibilitychange","reversetoggle","querychange"])ue(this,ee).$on(r,l=>{Li(this,$e,yi).call(this,r,l.detail)});ue(this,ee).$on("select",r=>{const l=new CustomEvent(r.type,{detail:r.detail});this.dispatchEvent(l)}),Nn.register(this,ue(this,ee))}setOptions(t){ue(this,ee).$set(t)}setQuery(t,n=!0){var r;(r=ue(this,ee))==null||r.setQuery(t,n)}clearMap(){var t;(t=ue(this,ee))==null||t.clearMap()}clearList(){var t;(t=ue(this,ee))==null||t.clearList()}setReverseMode(t){var n;(n=ue(this,ee))==null||n.$set({reverseActive:t})}focus(t){var n;(n=ue(this,ee))==null||n.focus(t)}blur(){var t;(t=ue(this,ee))==null||t.blur()}addEventListener(t,n,r){super.addEventListener(t,n,r)}removeEventListener(t,n,r){super.removeEventListener(t,n,r)}dispatchEvent(t){return super.dispatchEvent(t)}};ee=new WeakMap,$e=new WeakSet,yi=function(t,n){return _i(bt.prototype,this,"dispatchEvent").call(this,new CustomEvent(t,{detail:n}))};let ht=bt;O.GeocodingControl=ht,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})});
|
|
2
14
|
//# sourceMappingURL=vanilla.umd.js.map
|