@maptiler/geocoding-control 1.3.3 → 1.4.0
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/README.md +3 -4
- package/icons/airport.svg +6 -0
- package/icons/animal_shelter.svg +4 -0
- package/icons/art_gallery.svg +4 -0
- package/icons/atm.svg +5 -1
- package/icons/barrier.svg +4 -0
- package/icons/baseball.svg +4 -0
- package/icons/basketball.svg +4 -0
- package/icons/bbq.svg +4 -1
- package/icons/beach.svg +4 -0
- package/icons/beer.svg +4 -1
- package/icons/bench.svg +4 -1
- package/icons/bicycle.svg +4 -1
- package/icons/bicycle_parking.svg +5 -1
- package/icons/bicycle_rental.svg +5 -1
- package/icons/billiards.svg +4 -0
- package/icons/board.svg +4 -1
- package/icons/bollard.svg +4 -0
- package/icons/bowling.svg +4 -1
- package/icons/building.svg +4 -0
- package/icons/bulldozer.svg +4 -0
- package/icons/bus_guided.svg +4 -0
- package/icons/bus_trolley.svg +4 -0
- package/icons/butcher.svg +4 -1
- package/icons/camper_trailer.svg +4 -0
- package/icons/campfire.svg +4 -0
- package/icons/caution.svg +4 -0
- package/icons/cemetery.svg +3 -11
- package/icons/charging_station.svg +4 -1
- package/icons/christian.svg +5 -0
- package/icons/circle-dot.svg +4 -0
- package/icons/circle-stroke.svg +4 -0
- package/icons/circle.svg +4 -0
- package/icons/city.svg +4 -0
- package/icons/communications_tower.svg +4 -1
- package/icons/confectionery.svg +4 -1
- package/icons/construction.svg +4 -0
- package/icons/cricket.svg +4 -0
- package/icons/cross.svg +4 -1
- package/icons/cycle_barrier.svg +4 -0
- package/icons/dam.svg +4 -0
- package/icons/danger.svg +4 -0
- package/icons/diamond.svg +4 -0
- package/icons/diamond_stroked.svg +4 -0
- package/icons/dot.svg +4 -0
- package/icons/drinking_water.svg +4 -1
- package/icons/emergency_phone.svg +4 -1
- package/icons/entrance.svg +4 -0
- package/icons/farm.svg +3 -8
- package/icons/fence.svg +4 -0
- package/icons/florist.svg +4 -1
- package/icons/furniture.svg +4 -1
- package/icons/gaming.svg +4 -0
- package/icons/garden.svg +4 -0
- package/icons/garden_centre.svg +4 -1
- package/icons/gate.svg +4 -1
- package/icons/globe.svg +4 -0
- package/icons/golf_green.svg +4 -0
- package/icons/gondola.svg +4 -0
- package/icons/guidepost.svg +4 -1
- package/icons/hardware.svg +3 -3
- package/icons/heart.svg +4 -0
- package/icons/heliport.svg +4 -0
- package/icons/highway_rest_area.svg +4 -0
- package/icons/home.svg +4 -0
- package/icons/hot_spring.svg +4 -1
- package/icons/hut.svg +4 -0
- package/icons/industry.svg +4 -0
- package/icons/karaoke.svg +4 -0
- package/icons/lift_gate.svg +4 -0
- package/icons/light_rail.svg +4 -0
- package/icons/lighthouse.svg +4 -1
- package/icons/marker.svg +4 -0
- package/icons/marker_stroked.svg +4 -0
- package/icons/monorail.svg +4 -0
- package/icons/motorcycle.svg +4 -1
- package/icons/motorcycle_parking.svg +4 -1
- package/icons/motorcycle_rental.svg +4 -0
- package/icons/motorcycle_repair.svg +4 -0
- package/icons/natural.svg +4 -0
- package/icons/noodle.svg +4 -0
- package/icons/obelisk.svg +4 -1
- package/icons/observation_tower.svg +4 -1
- package/icons/oneway.svg +4 -0
- package/icons/optician.svg +4 -1
- package/icons/park.svg +4 -1
- package/icons/parking_paid.svg +4 -0
- package/icons/pin.svg +4 -0
- package/icons/pipe.svg +4 -0
- package/icons/pizza.svg +4 -0
- package/icons/place_of_worship.svg +4 -1
- package/icons/playground.svg +3 -3
- package/icons/racetrack.svg +4 -0
- package/icons/radiation.svg +4 -0
- package/icons/railway.svg +4 -0
- package/icons/ranger_station.svg +4 -0
- package/icons/recycling.svg +4 -1
- package/icons/road_accident.svg +4 -0
- package/icons/roadblock.svg +4 -0
- package/icons/rocket.svg +4 -0
- package/icons/school_bus.svg +4 -0
- package/icons/sculpture.svg +4 -0
- package/icons/seafood.svg +4 -1
- package/icons/shelter.svg +4 -1
- package/icons/shoes.svg +4 -1
- package/icons/sikh.svg +4 -0
- package/icons/snow.svg +4 -0
- package/icons/soccer.svg +4 -1
- package/icons/spring.svg +4 -1
- package/icons/square.svg +4 -0
- package/icons/square_stroked.svg +4 -0
- package/icons/star.svg +4 -0
- package/icons/star_stroked.svg +4 -0
- package/icons/statue.svg +4 -1
- package/icons/subway.svg +4 -0
- package/icons/sushi.svg +4 -0
- package/icons/swimming.svg +5 -0
- package/icons/swimming_pool.svg +8 -0
- package/icons/tako.svg +4 -0
- package/icons/taxi.svg +4 -1
- package/icons/teahouse.svg +4 -0
- package/icons/terminal.svg +4 -1
- package/icons/theme_park.svg +4 -0
- package/icons/town.svg +4 -0
- package/icons/town_hall.svg +4 -1
- package/icons/townhall.svg +4 -1
- package/icons/tram_stop.svg +4 -0
- package/icons/transit.svg +4 -0
- package/icons/triangle.svg +4 -0
- package/icons/triangle_stroked.svg +4 -0
- package/icons/truck.svg +4 -0
- package/icons/tunnel.svg +4 -0
- package/icons/veterinary.svg +4 -1
- package/icons/viewpoint.svg +4 -1
- package/icons/village.svg +4 -0
- package/icons/volleyball.svg +4 -0
- package/icons/warehouse.svg +4 -0
- package/icons/water.svg +3 -5
- package/icons/water_park.svg +6 -1
- package/icons/water_tower.svg +4 -1
- package/icons/watermill.svg +4 -0
- package/icons/wetland.svg +4 -0
- package/icons/wine.svg +4 -0
- package/leaflet-controller.d.ts +2 -2
- package/leaflet-controller.js +1427 -9922
- package/leaflet-controller.js.map +1 -1
- package/leaflet-controller.umd.js +3 -9
- package/leaflet-controller.umd.js.map +1 -1
- package/leaflet.js +2708 -11166
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +3 -9
- package/leaflet.umd.js.map +1 -1
- package/maplibregl-controller.d.ts +2 -2
- package/maplibregl-controller.js +1268 -9849
- package/maplibregl-controller.js.map +1 -1
- package/maplibregl-controller.umd.js +3 -9
- package/maplibregl-controller.umd.js.map +1 -1
- package/maplibregl.js +2550 -11094
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +3 -9
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.js +2558 -11102
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +3 -9
- package/maptilersdk.umd.js.map +1 -1
- package/mask.d.ts +1 -1
- package/openlayers-controller.js +1191 -9762
- package/openlayers-controller.js.map +1 -1
- package/openlayers-controller.umd.js +3 -9
- package/openlayers-controller.umd.js.map +1 -1
- package/openlayers.js +2689 -11223
- package/openlayers.js.map +1 -1
- package/openlayers.umd.js +3 -9
- package/openlayers.umd.js.map +1 -1
- package/package.json +24 -22
- package/react.js +996 -955
- package/react.js.map +1 -1
- package/react.umd.js +1 -1
- package/react.umd.js.map +1 -1
- package/style.css +1 -1
- package/svelte/FeatureItem.svelte +6 -5
- package/svelte/GeocodingControl.svelte +68 -12
- package/svelte/GeocodingControl.svelte.d.ts +4 -2
- package/svelte/geoUtils.js +7 -1
- package/svelte/leaflet-controller.d.ts +2 -2
- package/svelte/leaflet-controller.js +48 -2
- package/svelte/maplibregl-controller.d.ts +2 -2
- package/svelte/maplibregl-controller.js +5 -2
- package/svelte/mask.d.ts +1 -1
- package/svelte/mask.js +32 -29
- package/svelte/openlayers-controller.js +13 -14
- package/svelte/types.d.ts +15 -9
- package/types.d.ts +15 -9
- package/vanilla.js +1016 -975
- package/vanilla.js.map +1 -1
- package/vanilla.umd.js +1 -1
- package/vanilla.umd.js.map +1 -1
- package/icons/beach_resort.svg +0 -1
- package/icons/drinking-water.svg +0 -1
- package/icons/emergency-phone.svg +0 -1
- package/icons/rental_bicycle.svg +0 -1
- package/icons/rental_car.svg +0 -1
- /package/icons/{camp_site.svg → campsite.svg} +0 -0
- /package/icons/{toll_booth.svg → toll.svg} +0 -0
package/react.js
CHANGED
|
@@ -1,108 +1,108 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { forwardRef as
|
|
5
|
-
function
|
|
1
|
+
var ri = Object.defineProperty;
|
|
2
|
+
var oi = (i, e, t) => e in i ? ri(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
|
+
var Xe = (i, e, t) => oi(i, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { forwardRef as si, useRef as lt, useEffect as Ye, useImperativeHandle as ai, createElement as li } from "react";
|
|
5
|
+
function A() {
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function ui(i, e) {
|
|
8
8
|
for (const t in e) i[t] = e[t];
|
|
9
9
|
return (
|
|
10
10
|
/** @type {T & S} */
|
|
11
11
|
i
|
|
12
12
|
);
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function Wt(i) {
|
|
15
15
|
return i();
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function ut() {
|
|
18
18
|
return /* @__PURE__ */ Object.create(null);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
i.forEach(
|
|
20
|
+
function ae(i) {
|
|
21
|
+
i.forEach(Wt);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Ot(i) {
|
|
24
24
|
return typeof i == "function";
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function he(i, e) {
|
|
27
27
|
return i != i ? e == e : i !== e || i && typeof i == "object" || typeof i == "function";
|
|
28
28
|
}
|
|
29
|
-
let
|
|
30
|
-
function
|
|
31
|
-
return i === e ? !0 : (
|
|
29
|
+
let Ae;
|
|
30
|
+
function K(i, e) {
|
|
31
|
+
return i === e ? !0 : (Ae || (Ae = document.createElement("a")), Ae.href = e, i === Ae.href);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function ci(i) {
|
|
34
34
|
return Object.keys(i).length === 0;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function di(i, e, t, n) {
|
|
37
37
|
if (i) {
|
|
38
|
-
const o =
|
|
38
|
+
const o = Rt(i, e, t, n);
|
|
39
39
|
return i[0](o);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
return i[1] &&
|
|
42
|
+
function Rt(i, e, t, n) {
|
|
43
|
+
return i[1] && n ? ui(t.ctx.slice(), i[1](n(e))) : t.ctx;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
if (i[2] &&
|
|
47
|
-
const o = i[2](
|
|
45
|
+
function fi(i, e, t, n) {
|
|
46
|
+
if (i[2] && n) {
|
|
47
|
+
const o = i[2](n(t));
|
|
48
48
|
if (e.dirty === void 0)
|
|
49
49
|
return o;
|
|
50
50
|
if (typeof o == "object") {
|
|
51
51
|
const u = [], a = Math.max(e.dirty.length, o.length);
|
|
52
|
-
for (let
|
|
53
|
-
u[
|
|
52
|
+
for (let r = 0; r < a; r += 1)
|
|
53
|
+
u[r] = e.dirty[r] | o[r];
|
|
54
54
|
return u;
|
|
55
55
|
}
|
|
56
56
|
return e.dirty | o;
|
|
57
57
|
}
|
|
58
58
|
return e.dirty;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function mi(i, e, t, n, o, u) {
|
|
61
61
|
if (o) {
|
|
62
|
-
const a =
|
|
62
|
+
const a = Rt(e, t, n, u);
|
|
63
63
|
i.p(a, o);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function gi(i) {
|
|
67
67
|
if (i.ctx.length > 32) {
|
|
68
68
|
const e = [], t = i.ctx.length / 32;
|
|
69
|
-
for (let
|
|
70
|
-
e[
|
|
69
|
+
for (let n = 0; n < t; n++)
|
|
70
|
+
e[n] = -1;
|
|
71
71
|
return e;
|
|
72
72
|
}
|
|
73
73
|
return -1;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function ct(i) {
|
|
76
76
|
return i ?? "";
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function T(i, e) {
|
|
79
79
|
i.appendChild(e);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function B(i, e, t) {
|
|
82
82
|
i.insertBefore(e, t || null);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function U(i) {
|
|
85
85
|
i.parentNode && i.parentNode.removeChild(i);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function R(i) {
|
|
88
88
|
return document.createElement(i);
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function re(i) {
|
|
91
91
|
return document.createElementNS("http://www.w3.org/2000/svg", i);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function ce(i) {
|
|
94
94
|
return document.createTextNode(i);
|
|
95
95
|
}
|
|
96
96
|
function J() {
|
|
97
|
-
return
|
|
97
|
+
return ce(" ");
|
|
98
98
|
}
|
|
99
|
-
function
|
|
100
|
-
return
|
|
99
|
+
function hi() {
|
|
100
|
+
return ce("");
|
|
101
101
|
}
|
|
102
|
-
function
|
|
103
|
-
return i.addEventListener(e, t,
|
|
102
|
+
function V(i, e, t, n) {
|
|
103
|
+
return i.addEventListener(e, t, n), () => i.removeEventListener(e, t, n);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function bi(i) {
|
|
106
106
|
return function(e) {
|
|
107
107
|
return e.preventDefault(), i.call(this, e);
|
|
108
108
|
};
|
|
@@ -110,43 +110,43 @@ function gi(i) {
|
|
|
110
110
|
function l(i, e, t) {
|
|
111
111
|
t == null ? i.removeAttribute(e) : i.getAttribute(e) !== t && i.setAttribute(e, t);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function vi(i) {
|
|
114
114
|
return Array.from(i.childNodes);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function ke(i, e) {
|
|
117
117
|
e = "" + e, i.data !== e && (i.data = /** @type {string} */
|
|
118
118
|
e);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function dt(i, e) {
|
|
121
121
|
i.value = e ?? "";
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function ue(i, e, t) {
|
|
124
124
|
i.classList.toggle(e, !!t);
|
|
125
125
|
}
|
|
126
|
-
function
|
|
127
|
-
return new CustomEvent(i, { detail: e, bubbles: t, cancelable:
|
|
126
|
+
function Li(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
|
|
127
|
+
return new CustomEvent(i, { detail: e, bubbles: t, cancelable: n });
|
|
128
128
|
}
|
|
129
|
-
let
|
|
130
|
-
function
|
|
131
|
-
|
|
129
|
+
let Ce;
|
|
130
|
+
function Te(i) {
|
|
131
|
+
Ce = i;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
if (!
|
|
135
|
-
return
|
|
133
|
+
function Dt() {
|
|
134
|
+
if (!Ce) throw new Error("Function called outside component initialization");
|
|
135
|
+
return Ce;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
138
|
-
|
|
137
|
+
function _i(i) {
|
|
138
|
+
Dt().$$.on_destroy.push(i);
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
const i =
|
|
142
|
-
return (e, t, { cancelable:
|
|
140
|
+
function yi() {
|
|
141
|
+
const i = Dt();
|
|
142
|
+
return (e, t, { cancelable: n = !1 } = {}) => {
|
|
143
143
|
const o = i.$$.callbacks[e];
|
|
144
144
|
if (o) {
|
|
145
|
-
const u =
|
|
145
|
+
const u = Li(
|
|
146
146
|
/** @type {string} */
|
|
147
147
|
e,
|
|
148
148
|
t,
|
|
149
|
-
{ cancelable:
|
|
149
|
+
{ cancelable: n }
|
|
150
150
|
);
|
|
151
151
|
return o.slice().forEach((a) => {
|
|
152
152
|
a.call(i, u);
|
|
@@ -155,142 +155,142 @@ function Li() {
|
|
|
155
155
|
return !0;
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function ft(i, e) {
|
|
159
159
|
const t = i.$$.callbacks[e.type];
|
|
160
|
-
t && t.slice().forEach((
|
|
161
|
-
}
|
|
162
|
-
const
|
|
163
|
-
let
|
|
164
|
-
const
|
|
165
|
-
let
|
|
166
|
-
function
|
|
167
|
-
|
|
168
|
-
}
|
|
169
|
-
function
|
|
170
|
-
|
|
171
|
-
}
|
|
172
|
-
const
|
|
173
|
-
let
|
|
174
|
-
function
|
|
175
|
-
if (
|
|
160
|
+
t && t.slice().forEach((n) => n.call(this, e));
|
|
161
|
+
}
|
|
162
|
+
const Ee = [], et = [];
|
|
163
|
+
let Se = [];
|
|
164
|
+
const mt = [], wi = /* @__PURE__ */ Promise.resolve();
|
|
165
|
+
let tt = !1;
|
|
166
|
+
function Ei() {
|
|
167
|
+
tt || (tt = !0, wi.then(Ut));
|
|
168
|
+
}
|
|
169
|
+
function it(i) {
|
|
170
|
+
Se.push(i);
|
|
171
|
+
}
|
|
172
|
+
const $e = /* @__PURE__ */ new Set();
|
|
173
|
+
let we = 0;
|
|
174
|
+
function Ut() {
|
|
175
|
+
if (we !== 0)
|
|
176
176
|
return;
|
|
177
|
-
const i =
|
|
177
|
+
const i = Ce;
|
|
178
178
|
do {
|
|
179
179
|
try {
|
|
180
|
-
for (;
|
|
181
|
-
const e = we
|
|
182
|
-
|
|
180
|
+
for (; we < Ee.length; ) {
|
|
181
|
+
const e = Ee[we];
|
|
182
|
+
we++, Te(e), Si(e.$$);
|
|
183
183
|
}
|
|
184
184
|
} catch (e) {
|
|
185
|
-
throw
|
|
185
|
+
throw Ee.length = 0, we = 0, e;
|
|
186
186
|
}
|
|
187
|
-
for (
|
|
188
|
-
for (let e = 0; e <
|
|
189
|
-
const t =
|
|
190
|
-
|
|
187
|
+
for (Te(null), Ee.length = 0, we = 0; et.length; ) et.pop()();
|
|
188
|
+
for (let e = 0; e < Se.length; e += 1) {
|
|
189
|
+
const t = Se[e];
|
|
190
|
+
$e.has(t) || ($e.add(t), t());
|
|
191
191
|
}
|
|
192
|
-
|
|
193
|
-
} while (
|
|
194
|
-
for (;
|
|
195
|
-
|
|
196
|
-
|
|
192
|
+
Se.length = 0;
|
|
193
|
+
} while (Ee.length);
|
|
194
|
+
for (; mt.length; )
|
|
195
|
+
mt.pop()();
|
|
196
|
+
tt = !1, $e.clear(), Te(i);
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function Si(i) {
|
|
199
199
|
if (i.fragment !== null) {
|
|
200
|
-
i.update(),
|
|
200
|
+
i.update(), ae(i.before_update);
|
|
201
201
|
const e = i.dirty;
|
|
202
|
-
i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(
|
|
202
|
+
i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(it);
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function pi(i) {
|
|
206
206
|
const e = [], t = [];
|
|
207
|
-
|
|
207
|
+
Se.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), Se = e;
|
|
208
208
|
}
|
|
209
|
-
const
|
|
210
|
-
let
|
|
211
|
-
function
|
|
212
|
-
|
|
209
|
+
const Be = /* @__PURE__ */ new Set();
|
|
210
|
+
let ge;
|
|
211
|
+
function Fe() {
|
|
212
|
+
ge = {
|
|
213
213
|
r: 0,
|
|
214
214
|
c: [],
|
|
215
|
-
p:
|
|
215
|
+
p: ge
|
|
216
216
|
// parent group
|
|
217
217
|
};
|
|
218
218
|
}
|
|
219
|
-
function
|
|
220
|
-
|
|
219
|
+
function ze() {
|
|
220
|
+
ge.r || ae(ge.c), ge = ge.p;
|
|
221
221
|
}
|
|
222
|
-
function
|
|
223
|
-
i && i.i && (
|
|
222
|
+
function z(i, e) {
|
|
223
|
+
i && i.i && (Be.delete(i), i.i(e));
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function Q(i, e, t, n) {
|
|
226
226
|
if (i && i.o) {
|
|
227
|
-
if (
|
|
228
|
-
|
|
229
|
-
|
|
227
|
+
if (Be.has(i)) return;
|
|
228
|
+
Be.add(i), ge.c.push(() => {
|
|
229
|
+
Be.delete(i), n && (t && i.d(1), n());
|
|
230
230
|
}), i.o(e);
|
|
231
|
-
} else
|
|
231
|
+
} else n && n();
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function gt(i) {
|
|
234
234
|
return (i == null ? void 0 : i.length) !== void 0 ? i : Array.from(i);
|
|
235
235
|
}
|
|
236
|
-
function
|
|
237
|
-
|
|
236
|
+
function Ni(i, e) {
|
|
237
|
+
Q(i, 1, 1, () => {
|
|
238
238
|
e.delete(i.key);
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
|
-
function
|
|
242
|
-
let
|
|
243
|
-
const
|
|
244
|
-
for (;
|
|
245
|
-
const
|
|
246
|
-
for (
|
|
247
|
-
const
|
|
248
|
-
let
|
|
249
|
-
|
|
241
|
+
function Mi(i, e, t, n, o, u, a, r, d, c, f, h) {
|
|
242
|
+
let v = i.length, _ = u.length, w = v;
|
|
243
|
+
const W = {};
|
|
244
|
+
for (; w--; ) W[i[w].key] = w;
|
|
245
|
+
const y = [], E = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), O = [];
|
|
246
|
+
for (w = _; w--; ) {
|
|
247
|
+
const g = h(o, u, w), m = t(g);
|
|
248
|
+
let k = a.get(m);
|
|
249
|
+
k ? O.push(() => k.p(g, e)) : (k = c(m, g), k.c()), E.set(m, y[w] = k), m in W && C.set(m, Math.abs(w - W[m]));
|
|
250
250
|
}
|
|
251
|
-
const p = /* @__PURE__ */ new Set(),
|
|
252
|
-
function
|
|
253
|
-
|
|
251
|
+
const p = /* @__PURE__ */ new Set(), G = /* @__PURE__ */ new Set();
|
|
252
|
+
function b(g) {
|
|
253
|
+
z(g, 1), g.m(r, f), a.set(g.key, g), f = g.first, _--;
|
|
254
254
|
}
|
|
255
|
-
for (;
|
|
256
|
-
const
|
|
257
|
-
|
|
255
|
+
for (; v && _; ) {
|
|
256
|
+
const g = y[_ - 1], m = i[v - 1], k = g.key, H = m.key;
|
|
257
|
+
g === m ? (f = g.first, v--, _--) : E.has(H) ? !a.has(k) || p.has(k) ? b(g) : G.has(H) ? v-- : C.get(k) > C.get(H) ? (G.add(k), b(g)) : (p.add(H), v--) : (d(m, a), v--);
|
|
258
258
|
}
|
|
259
|
-
for (;
|
|
260
|
-
const
|
|
261
|
-
|
|
259
|
+
for (; v--; ) {
|
|
260
|
+
const g = i[v];
|
|
261
|
+
E.has(g.key) || d(g, a);
|
|
262
262
|
}
|
|
263
|
-
for (;
|
|
264
|
-
return
|
|
263
|
+
for (; _; ) b(y[_ - 1]);
|
|
264
|
+
return ae(O), y;
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function de(i) {
|
|
267
267
|
i && i.c();
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
const { fragment:
|
|
271
|
-
|
|
272
|
-
const u = i.$$.on_mount.map(
|
|
273
|
-
i.$$.on_destroy ? i.$$.on_destroy.push(...u) :
|
|
274
|
-
}), o.forEach(
|
|
269
|
+
function oe(i, e, t) {
|
|
270
|
+
const { fragment: n, after_update: o } = i.$$;
|
|
271
|
+
n && n.m(e, t), it(() => {
|
|
272
|
+
const u = i.$$.on_mount.map(Wt).filter(Ot);
|
|
273
|
+
i.$$.on_destroy ? i.$$.on_destroy.push(...u) : ae(u), i.$$.on_mount = [];
|
|
274
|
+
}), o.forEach(it);
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function se(i, e) {
|
|
277
277
|
const t = i.$$;
|
|
278
|
-
t.fragment !== null && (
|
|
278
|
+
t.fragment !== null && (pi(t.after_update), ae(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
|
|
279
279
|
}
|
|
280
|
-
function
|
|
281
|
-
i.$$.dirty[0] === -1 && (
|
|
280
|
+
function Ti(i, e) {
|
|
281
|
+
i.$$.dirty[0] === -1 && (Ee.push(i), Ei(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
282
282
|
}
|
|
283
|
-
function
|
|
284
|
-
const d =
|
|
285
|
-
|
|
283
|
+
function be(i, e, t, n, o, u, a = null, r = [-1]) {
|
|
284
|
+
const d = Ce;
|
|
285
|
+
Te(i);
|
|
286
286
|
const c = i.$$ = {
|
|
287
287
|
fragment: null,
|
|
288
288
|
ctx: [],
|
|
289
289
|
// state
|
|
290
290
|
props: u,
|
|
291
|
-
update:
|
|
291
|
+
update: A,
|
|
292
292
|
not_equal: o,
|
|
293
|
-
bound:
|
|
293
|
+
bound: ut(),
|
|
294
294
|
// lifecycle
|
|
295
295
|
on_mount: [],
|
|
296
296
|
on_destroy: [],
|
|
@@ -299,27 +299,27 @@ function me(i, e, t, r, o, u, a = null, n = [-1]) {
|
|
|
299
299
|
after_update: [],
|
|
300
300
|
context: new Map(e.context || (d ? d.$$.context : [])),
|
|
301
301
|
// everything else
|
|
302
|
-
callbacks:
|
|
303
|
-
dirty:
|
|
302
|
+
callbacks: ut(),
|
|
303
|
+
dirty: r,
|
|
304
304
|
skip_bound: !1,
|
|
305
305
|
root: e.target || d.$$.root
|
|
306
306
|
};
|
|
307
307
|
a && a(c.root);
|
|
308
308
|
let f = !1;
|
|
309
|
-
if (c.ctx = t ? t(i, e.props || {}, (
|
|
310
|
-
const
|
|
311
|
-
return c.ctx && o(c.ctx[
|
|
312
|
-
}) : [], c.update(), f = !0,
|
|
309
|
+
if (c.ctx = t ? t(i, e.props || {}, (h, v, ..._) => {
|
|
310
|
+
const w = _.length ? _[0] : v;
|
|
311
|
+
return c.ctx && o(c.ctx[h], c.ctx[h] = w) && (!c.skip_bound && c.bound[h] && c.bound[h](w), f && Ti(i, h)), v;
|
|
312
|
+
}) : [], c.update(), f = !0, ae(c.before_update), c.fragment = n ? n(c.ctx) : !1, e.target) {
|
|
313
313
|
if (e.hydrate) {
|
|
314
|
-
const
|
|
315
|
-
c.fragment && c.fragment.l(
|
|
314
|
+
const h = vi(e.target);
|
|
315
|
+
c.fragment && c.fragment.l(h), h.forEach(U);
|
|
316
316
|
} else
|
|
317
317
|
c.fragment && c.fragment.c();
|
|
318
|
-
e.intro &&
|
|
318
|
+
e.intro && z(i.$$.fragment), oe(i, e.target, e.anchor), Ut();
|
|
319
319
|
}
|
|
320
|
-
|
|
320
|
+
Te(d);
|
|
321
321
|
}
|
|
322
|
-
class
|
|
322
|
+
class ve {
|
|
323
323
|
constructor() {
|
|
324
324
|
/**
|
|
325
325
|
* ### PRIVATE API
|
|
@@ -328,7 +328,7 @@ class ge {
|
|
|
328
328
|
*
|
|
329
329
|
* @type {any}
|
|
330
330
|
*/
|
|
331
|
-
|
|
331
|
+
Xe(this, "$$");
|
|
332
332
|
/**
|
|
333
333
|
* ### PRIVATE API
|
|
334
334
|
*
|
|
@@ -336,11 +336,11 @@ class ge {
|
|
|
336
336
|
*
|
|
337
337
|
* @type {any}
|
|
338
338
|
*/
|
|
339
|
-
|
|
339
|
+
Xe(this, "$$set");
|
|
340
340
|
}
|
|
341
341
|
/** @returns {void} */
|
|
342
342
|
$destroy() {
|
|
343
|
-
|
|
343
|
+
se(this, 1), this.$destroy = A;
|
|
344
344
|
}
|
|
345
345
|
/**
|
|
346
346
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -349,12 +349,12 @@ class ge {
|
|
|
349
349
|
* @returns {() => void}
|
|
350
350
|
*/
|
|
351
351
|
$on(e, t) {
|
|
352
|
-
if (!
|
|
353
|
-
return
|
|
354
|
-
const
|
|
355
|
-
return
|
|
356
|
-
const o =
|
|
357
|
-
o !== -1 &&
|
|
352
|
+
if (!Ot(t))
|
|
353
|
+
return A;
|
|
354
|
+
const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
355
|
+
return n.push(t), () => {
|
|
356
|
+
const o = n.indexOf(t);
|
|
357
|
+
o !== -1 && n.splice(o, 1);
|
|
358
358
|
};
|
|
359
359
|
}
|
|
360
360
|
/**
|
|
@@ -362,60 +362,60 @@ class ge {
|
|
|
362
362
|
* @returns {void}
|
|
363
363
|
*/
|
|
364
364
|
$set(e) {
|
|
365
|
-
this.$$set && !
|
|
365
|
+
this.$$set && !ci(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
const
|
|
369
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
370
|
-
function
|
|
368
|
+
const ki = "4";
|
|
369
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ki);
|
|
370
|
+
function Ci(i) {
|
|
371
371
|
let e, t;
|
|
372
372
|
return {
|
|
373
373
|
c() {
|
|
374
|
-
e =
|
|
374
|
+
e = re("svg"), t = re("path"), l(t, "d", "M13.12.706a.982.982 0 0 0-1.391 0L6.907 5.517 2.087.696a.982.982 0 1 0-1.391 1.39l4.821 4.821L.696 11.73a.982.982 0 1 0 1.39 1.39l4.821-4.821 4.822 4.821a.982.982 0 1 0 1.39-1.39L8.298 6.908l4.821-4.822a.988.988 0 0 0 0-1.38Z"), l(e, "viewBox", "0 0 14 14"), l(e, "width", "13"), l(e, "height", "13"), l(e, "class", "svelte-en2qvf");
|
|
375
375
|
},
|
|
376
|
-
m(
|
|
377
|
-
|
|
376
|
+
m(n, o) {
|
|
377
|
+
B(n, e, o), T(e, t);
|
|
378
378
|
},
|
|
379
|
-
p:
|
|
380
|
-
i:
|
|
381
|
-
o:
|
|
382
|
-
d(
|
|
383
|
-
|
|
379
|
+
p: A,
|
|
380
|
+
i: A,
|
|
381
|
+
o: A,
|
|
382
|
+
d(n) {
|
|
383
|
+
n && U(e);
|
|
384
384
|
}
|
|
385
385
|
};
|
|
386
386
|
}
|
|
387
|
-
class
|
|
387
|
+
class It extends ve {
|
|
388
388
|
constructor(e) {
|
|
389
|
-
super(),
|
|
389
|
+
super(), be(this, e, null, Ci, he, {});
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function Wi(i) {
|
|
393
393
|
let e, t;
|
|
394
394
|
return {
|
|
395
395
|
c() {
|
|
396
|
-
e =
|
|
396
|
+
e = re("svg"), t = re("path"), l(t, "d", "M15 0C6.705 0 0 6.705 0 15C0 23.295 6.705 30 15 30C23.295 30 30 23.295 30 15C30 6.705 23.295 0 15 0ZM22.5 20.385L20.385 22.5L15 17.115L9.615 22.5L7.5 20.385L12.885 15L7.5 9.615L9.615 7.5L15 12.885L20.385 7.5L22.5 9.615L17.115 15L22.5 20.385Z"), l(e, "viewBox", "0 0 30 30"), l(e, "fill", "none"), l(e, "xmlns", "http://www.w3.org/2000/svg"), l(e, "class", "svelte-d2loi5");
|
|
397
397
|
},
|
|
398
|
-
m(
|
|
399
|
-
|
|
398
|
+
m(n, o) {
|
|
399
|
+
B(n, e, o), T(e, t);
|
|
400
400
|
},
|
|
401
|
-
p:
|
|
402
|
-
i:
|
|
403
|
-
o:
|
|
404
|
-
d(
|
|
405
|
-
|
|
401
|
+
p: A,
|
|
402
|
+
i: A,
|
|
403
|
+
o: A,
|
|
404
|
+
d(n) {
|
|
405
|
+
n && U(e);
|
|
406
406
|
}
|
|
407
407
|
};
|
|
408
408
|
}
|
|
409
|
-
class
|
|
409
|
+
class At extends ve {
|
|
410
410
|
constructor(e) {
|
|
411
|
-
super(),
|
|
411
|
+
super(), be(this, e, null, Wi, he, {});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function Oi(i) {
|
|
415
415
|
let e, t;
|
|
416
416
|
return {
|
|
417
417
|
c() {
|
|
418
|
-
e =
|
|
418
|
+
e = R("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
419
419
|
i[3] + "area.svg") || l(e, "src", t), l(
|
|
420
420
|
e,
|
|
421
421
|
"alt",
|
|
@@ -423,30 +423,30 @@ function Ci(i) {
|
|
|
423
423
|
i[6]
|
|
424
424
|
), l(e, "class", "svelte-ltkwvy");
|
|
425
425
|
},
|
|
426
|
-
m(
|
|
427
|
-
|
|
426
|
+
m(n, o) {
|
|
427
|
+
B(n, e, o);
|
|
428
428
|
},
|
|
429
|
-
p(
|
|
429
|
+
p(n, o) {
|
|
430
430
|
o & /*iconsBaseUrl*/
|
|
431
|
-
8 && !
|
|
432
|
-
|
|
431
|
+
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
432
|
+
n[3] + "area.svg") && l(e, "src", t), o & /*placeType*/
|
|
433
433
|
64 && l(
|
|
434
434
|
e,
|
|
435
435
|
"alt",
|
|
436
436
|
/*placeType*/
|
|
437
|
-
|
|
437
|
+
n[6]
|
|
438
438
|
);
|
|
439
439
|
},
|
|
440
|
-
d(
|
|
441
|
-
|
|
440
|
+
d(n) {
|
|
441
|
+
n && U(e);
|
|
442
442
|
}
|
|
443
443
|
};
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function Ri(i) {
|
|
446
446
|
let e, t;
|
|
447
447
|
return {
|
|
448
448
|
c() {
|
|
449
|
-
e =
|
|
449
|
+
e = R("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
450
450
|
i[3] + "reverse.svg") || l(e, "src", t), l(
|
|
451
451
|
e,
|
|
452
452
|
"alt",
|
|
@@ -454,30 +454,30 @@ function Wi(i) {
|
|
|
454
454
|
i[6]
|
|
455
455
|
), l(e, "class", "svelte-ltkwvy");
|
|
456
456
|
},
|
|
457
|
-
m(
|
|
458
|
-
|
|
457
|
+
m(n, o) {
|
|
458
|
+
B(n, e, o);
|
|
459
459
|
},
|
|
460
|
-
p(
|
|
460
|
+
p(n, o) {
|
|
461
461
|
o & /*iconsBaseUrl*/
|
|
462
|
-
8 && !
|
|
463
|
-
|
|
462
|
+
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
463
|
+
n[3] + "reverse.svg") && l(e, "src", t), o & /*placeType*/
|
|
464
464
|
64 && l(
|
|
465
465
|
e,
|
|
466
466
|
"alt",
|
|
467
467
|
/*placeType*/
|
|
468
|
-
|
|
468
|
+
n[6]
|
|
469
469
|
);
|
|
470
470
|
},
|
|
471
|
-
d(
|
|
472
|
-
|
|
471
|
+
d(n) {
|
|
472
|
+
n && U(e);
|
|
473
473
|
}
|
|
474
474
|
};
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function Di(i) {
|
|
477
477
|
let e, t;
|
|
478
478
|
return {
|
|
479
479
|
c() {
|
|
480
|
-
e =
|
|
480
|
+
e = R("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
481
481
|
i[3] + "poi.svg") || l(e, "src", t), l(
|
|
482
482
|
e,
|
|
483
483
|
"alt",
|
|
@@ -485,30 +485,30 @@ function Ri(i) {
|
|
|
485
485
|
i[6]
|
|
486
486
|
), l(e, "class", "svelte-ltkwvy");
|
|
487
487
|
},
|
|
488
|
-
m(
|
|
489
|
-
|
|
488
|
+
m(n, o) {
|
|
489
|
+
B(n, e, o);
|
|
490
490
|
},
|
|
491
|
-
p(
|
|
491
|
+
p(n, o) {
|
|
492
492
|
o & /*iconsBaseUrl*/
|
|
493
|
-
8 && !
|
|
494
|
-
|
|
493
|
+
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
494
|
+
n[3] + "poi.svg") && l(e, "src", t), o & /*placeType*/
|
|
495
495
|
64 && l(
|
|
496
496
|
e,
|
|
497
497
|
"alt",
|
|
498
498
|
/*placeType*/
|
|
499
|
-
|
|
499
|
+
n[6]
|
|
500
500
|
);
|
|
501
501
|
},
|
|
502
|
-
d(
|
|
503
|
-
|
|
502
|
+
d(n) {
|
|
503
|
+
n && U(e);
|
|
504
504
|
}
|
|
505
505
|
};
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function Ui(i) {
|
|
508
508
|
let e, t;
|
|
509
509
|
return {
|
|
510
510
|
c() {
|
|
511
|
-
e =
|
|
511
|
+
e = R("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
512
512
|
i[3] + "postal_code.svg") || l(e, "src", t), l(
|
|
513
513
|
e,
|
|
514
514
|
"alt",
|
|
@@ -516,30 +516,30 @@ function Di(i) {
|
|
|
516
516
|
i[6]
|
|
517
517
|
), l(e, "class", "svelte-ltkwvy");
|
|
518
518
|
},
|
|
519
|
-
m(
|
|
520
|
-
|
|
519
|
+
m(n, o) {
|
|
520
|
+
B(n, e, o);
|
|
521
521
|
},
|
|
522
|
-
p(
|
|
522
|
+
p(n, o) {
|
|
523
523
|
o & /*iconsBaseUrl*/
|
|
524
|
-
8 && !
|
|
525
|
-
|
|
524
|
+
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
525
|
+
n[3] + "postal_code.svg") && l(e, "src", t), o & /*placeType*/
|
|
526
526
|
64 && l(
|
|
527
527
|
e,
|
|
528
528
|
"alt",
|
|
529
529
|
/*placeType*/
|
|
530
|
-
|
|
530
|
+
n[6]
|
|
531
531
|
);
|
|
532
532
|
},
|
|
533
|
-
d(
|
|
534
|
-
|
|
533
|
+
d(n) {
|
|
534
|
+
n && U(e);
|
|
535
535
|
}
|
|
536
536
|
};
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function Ii(i) {
|
|
539
539
|
let e, t;
|
|
540
540
|
return {
|
|
541
541
|
c() {
|
|
542
|
-
e =
|
|
542
|
+
e = R("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
543
543
|
i[3] + "street.svg") || l(e, "src", t), l(
|
|
544
544
|
e,
|
|
545
545
|
"alt",
|
|
@@ -547,30 +547,30 @@ function Oi(i) {
|
|
|
547
547
|
i[6]
|
|
548
548
|
), l(e, "class", "svelte-ltkwvy");
|
|
549
549
|
},
|
|
550
|
-
m(
|
|
551
|
-
|
|
550
|
+
m(n, o) {
|
|
551
|
+
B(n, e, o);
|
|
552
552
|
},
|
|
553
|
-
p(
|
|
553
|
+
p(n, o) {
|
|
554
554
|
o & /*iconsBaseUrl*/
|
|
555
|
-
8 && !
|
|
556
|
-
|
|
555
|
+
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
556
|
+
n[3] + "street.svg") && l(e, "src", t), o & /*placeType*/
|
|
557
557
|
64 && l(
|
|
558
558
|
e,
|
|
559
559
|
"alt",
|
|
560
560
|
/*placeType*/
|
|
561
|
-
|
|
561
|
+
n[6]
|
|
562
562
|
);
|
|
563
563
|
},
|
|
564
|
-
d(
|
|
565
|
-
|
|
564
|
+
d(n) {
|
|
565
|
+
n && U(e);
|
|
566
566
|
}
|
|
567
567
|
};
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function Ai(i) {
|
|
570
570
|
let e, t;
|
|
571
571
|
return {
|
|
572
572
|
c() {
|
|
573
|
-
e =
|
|
573
|
+
e = R("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
574
574
|
i[3] + "road.svg") || l(e, "src", t), l(
|
|
575
575
|
e,
|
|
576
576
|
"alt",
|
|
@@ -578,30 +578,30 @@ function Ii(i) {
|
|
|
578
578
|
i[6]
|
|
579
579
|
), l(e, "class", "svelte-ltkwvy");
|
|
580
580
|
},
|
|
581
|
-
m(
|
|
582
|
-
|
|
581
|
+
m(n, o) {
|
|
582
|
+
B(n, e, o);
|
|
583
583
|
},
|
|
584
|
-
p(
|
|
584
|
+
p(n, o) {
|
|
585
585
|
o & /*iconsBaseUrl*/
|
|
586
|
-
8 && !
|
|
587
|
-
|
|
586
|
+
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
587
|
+
n[3] + "road.svg") && l(e, "src", t), o & /*placeType*/
|
|
588
588
|
64 && l(
|
|
589
589
|
e,
|
|
590
590
|
"alt",
|
|
591
591
|
/*placeType*/
|
|
592
|
-
|
|
592
|
+
n[6]
|
|
593
593
|
);
|
|
594
594
|
},
|
|
595
|
-
d(
|
|
596
|
-
|
|
595
|
+
d(n) {
|
|
596
|
+
n && U(e);
|
|
597
597
|
}
|
|
598
598
|
};
|
|
599
599
|
}
|
|
600
|
-
function
|
|
600
|
+
function Bi(i) {
|
|
601
601
|
let e, t;
|
|
602
602
|
return {
|
|
603
603
|
c() {
|
|
604
|
-
e =
|
|
604
|
+
e = R("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
605
605
|
i[3] + "housenumber.svg") || l(e, "src", t), l(
|
|
606
606
|
e,
|
|
607
607
|
"alt",
|
|
@@ -609,30 +609,30 @@ function Ui(i) {
|
|
|
609
609
|
i[6]
|
|
610
610
|
), l(e, "class", "svelte-ltkwvy");
|
|
611
611
|
},
|
|
612
|
-
m(
|
|
613
|
-
|
|
612
|
+
m(n, o) {
|
|
613
|
+
B(n, e, o);
|
|
614
614
|
},
|
|
615
|
-
p(
|
|
615
|
+
p(n, o) {
|
|
616
616
|
o & /*iconsBaseUrl*/
|
|
617
|
-
8 && !
|
|
618
|
-
|
|
617
|
+
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
618
|
+
n[3] + "housenumber.svg") && l(e, "src", t), o & /*placeType*/
|
|
619
619
|
64 && l(
|
|
620
620
|
e,
|
|
621
621
|
"alt",
|
|
622
622
|
/*placeType*/
|
|
623
|
-
|
|
623
|
+
n[6]
|
|
624
624
|
);
|
|
625
625
|
},
|
|
626
|
-
d(
|
|
627
|
-
|
|
626
|
+
d(n) {
|
|
627
|
+
n && U(e);
|
|
628
628
|
}
|
|
629
629
|
};
|
|
630
630
|
}
|
|
631
|
-
function
|
|
632
|
-
let e, t,
|
|
631
|
+
function Fi(i) {
|
|
632
|
+
let e, t, n, o;
|
|
633
633
|
return {
|
|
634
634
|
c() {
|
|
635
|
-
e =
|
|
635
|
+
e = R("img"), K(e.src, t = /*imageUrl*/
|
|
636
636
|
i[5]) || l(e, "src", t), l(
|
|
637
637
|
e,
|
|
638
638
|
"alt",
|
|
@@ -641,16 +641,16 @@ function zi(i) {
|
|
|
641
641
|
), l(e, "class", "svelte-ltkwvy");
|
|
642
642
|
},
|
|
643
643
|
m(u, a) {
|
|
644
|
-
|
|
644
|
+
B(u, e, a), n || (o = V(
|
|
645
645
|
e,
|
|
646
646
|
"error",
|
|
647
647
|
/*error_handler*/
|
|
648
648
|
i[14]
|
|
649
|
-
),
|
|
649
|
+
), n = !0);
|
|
650
650
|
},
|
|
651
651
|
p(u, a) {
|
|
652
652
|
a & /*imageUrl*/
|
|
653
|
-
32 && !
|
|
653
|
+
32 && !K(e.src, t = /*imageUrl*/
|
|
654
654
|
u[5]) && l(e, "src", t), a & /*category*/
|
|
655
655
|
16 && l(
|
|
656
656
|
e,
|
|
@@ -660,38 +660,37 @@ function zi(i) {
|
|
|
660
660
|
);
|
|
661
661
|
},
|
|
662
662
|
d(u) {
|
|
663
|
-
u &&
|
|
663
|
+
u && U(e), n = !1, o();
|
|
664
664
|
}
|
|
665
665
|
};
|
|
666
666
|
}
|
|
667
|
-
function
|
|
667
|
+
function ht(i) {
|
|
668
668
|
let e, t;
|
|
669
669
|
return {
|
|
670
670
|
c() {
|
|
671
|
-
e =
|
|
671
|
+
e = R("span"), t = ce(
|
|
672
672
|
/*placeType*/
|
|
673
673
|
i[6]
|
|
674
674
|
), l(e, "class", "secondary svelte-ltkwvy");
|
|
675
675
|
},
|
|
676
|
-
m(
|
|
677
|
-
|
|
676
|
+
m(n, o) {
|
|
677
|
+
B(n, e, o), T(e, t);
|
|
678
678
|
},
|
|
679
|
-
p(
|
|
679
|
+
p(n, o) {
|
|
680
680
|
o & /*placeType*/
|
|
681
|
-
64 &&
|
|
681
|
+
64 && ke(
|
|
682
682
|
t,
|
|
683
683
|
/*placeType*/
|
|
684
|
-
|
|
684
|
+
n[6]
|
|
685
685
|
);
|
|
686
686
|
},
|
|
687
|
-
d(
|
|
688
|
-
|
|
687
|
+
d(n) {
|
|
688
|
+
n && U(e);
|
|
689
689
|
}
|
|
690
690
|
};
|
|
691
691
|
}
|
|
692
|
-
function
|
|
693
|
-
|
|
694
|
-
let e, t, r, o, u, a, n, d, c = (
|
|
692
|
+
function zi(i) {
|
|
693
|
+
let e, t, n, o, u, a, r, d, c, f = (
|
|
695
694
|
/*isReverse*/
|
|
696
695
|
(i[7] ? (
|
|
697
696
|
/*feature*/
|
|
@@ -700,171 +699,165 @@ function Ai(i) {
|
|
|
700
699
|
/*feature*/
|
|
701
700
|
i[0].place_name.replace(/,.*/, "")
|
|
702
701
|
)) + ""
|
|
703
|
-
),
|
|
702
|
+
), h, v, _ = (
|
|
704
703
|
/*showPlaceType*/
|
|
705
704
|
i[2] === "always" || /*showPlaceType*/
|
|
706
705
|
i[2] && !/*feature*/
|
|
707
|
-
i[0].address &&
|
|
708
|
-
|
|
709
|
-
((N = i[0].properties) == null ? void 0 : N.kind) !== "road_relation" && !/*feature*/
|
|
706
|
+
i[0].address && !/*feature*/
|
|
707
|
+
i[0].id.startsWith("road.") && !/*feature*/
|
|
710
708
|
i[0].id.startsWith("address.") && !/*feature*/
|
|
711
709
|
i[0].id.startsWith("postal_code.") && (!/*feature*/
|
|
712
710
|
i[0].id.startsWith("poi.") || !/*imageUrl*/
|
|
713
711
|
i[5]) && !/*isReverse*/
|
|
714
712
|
i[7]
|
|
715
|
-
), w,
|
|
713
|
+
), w, W, y = (
|
|
716
714
|
/*isReverse*/
|
|
717
715
|
(i[7] ? "" : (
|
|
718
716
|
/*feature*/
|
|
719
717
|
i[0].place_name.replace(/[^,]*,?\s*/, "")
|
|
720
718
|
)) + ""
|
|
721
|
-
), E,
|
|
722
|
-
function
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
1 && (
|
|
726
|
-
1 && (
|
|
727
|
-
1 && (
|
|
728
|
-
|
|
719
|
+
), E, C, O;
|
|
720
|
+
function p(m, k) {
|
|
721
|
+
return k & /*feature*/
|
|
722
|
+
1 && (t = null), k & /*feature*/
|
|
723
|
+
1 && (n = null), k & /*feature*/
|
|
724
|
+
1 && (o = null), k & /*feature*/
|
|
725
|
+
1 && (u = null), /*imageUrl*/
|
|
726
|
+
m[5] ? Fi : (
|
|
729
727
|
/*feature*/
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
g[7] ? Wi : Ci
|
|
739
|
-
))))
|
|
740
|
-
)
|
|
728
|
+
m[0].address ? Bi : (t == null && (t = !!/*feature*/
|
|
729
|
+
m[0].id.startsWith("road.")), t ? Ai : (n == null && (n = !!/*feature*/
|
|
730
|
+
m[0].id.startsWith("address.")), n ? Ii : (o == null && (o = !!/*feature*/
|
|
731
|
+
m[0].id.startsWith("postal_code.")), o ? Ui : (u == null && (u = !!/*feature*/
|
|
732
|
+
m[0].id.startsWith("poi.")), u ? Di : (
|
|
733
|
+
/*isReverse*/
|
|
734
|
+
m[7] ? Ri : Oi
|
|
735
|
+
)))))
|
|
741
736
|
);
|
|
742
737
|
}
|
|
743
|
-
let
|
|
738
|
+
let G = p(i, -1), b = G(i), g = _ && ht(i);
|
|
744
739
|
return {
|
|
745
740
|
c() {
|
|
746
|
-
e =
|
|
741
|
+
e = R("li"), b.c(), a = J(), r = R("span"), d = R("span"), c = R("span"), h = ce(f), v = J(), g && g.c(), w = J(), W = R("span"), E = ce(y), l(c, "class", "primary svelte-ltkwvy"), l(d, "class", "svelte-ltkwvy"), l(W, "class", "line2 svelte-ltkwvy"), l(r, "class", "texts svelte-ltkwvy"), l(e, "tabindex", "0"), l(
|
|
747
742
|
e,
|
|
748
743
|
"data-selected",
|
|
749
744
|
/*selected*/
|
|
750
745
|
i[1]
|
|
751
|
-
), l(e, "class", "svelte-ltkwvy"),
|
|
746
|
+
), l(e, "class", "svelte-ltkwvy"), ue(
|
|
752
747
|
e,
|
|
753
748
|
"selected",
|
|
754
749
|
/*selected*/
|
|
755
750
|
i[1]
|
|
756
751
|
);
|
|
757
752
|
},
|
|
758
|
-
m(
|
|
759
|
-
|
|
760
|
-
|
|
753
|
+
m(m, k) {
|
|
754
|
+
B(m, e, k), b.m(e, null), T(e, a), T(e, r), T(r, d), T(d, c), T(c, h), T(d, v), g && g.m(d, null), T(r, w), T(r, W), T(W, E), C || (O = [
|
|
755
|
+
V(
|
|
761
756
|
e,
|
|
762
757
|
"mouseenter",
|
|
763
758
|
/*mouseenter_handler*/
|
|
764
759
|
i[12]
|
|
765
760
|
),
|
|
766
|
-
|
|
761
|
+
V(
|
|
767
762
|
e,
|
|
768
763
|
"focus",
|
|
769
764
|
/*focus_handler*/
|
|
770
765
|
i[13]
|
|
771
766
|
)
|
|
772
|
-
],
|
|
767
|
+
], C = !0);
|
|
773
768
|
},
|
|
774
|
-
p(
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
(g[7] ? (
|
|
769
|
+
p(m, [k]) {
|
|
770
|
+
G === (G = p(m, k)) && b ? b.p(m, k) : (b.d(1), b = G(m), b && (b.c(), b.m(e, a))), k & /*feature*/
|
|
771
|
+
1 && f !== (f = /*isReverse*/
|
|
772
|
+
(m[7] ? (
|
|
779
773
|
/*feature*/
|
|
780
|
-
|
|
774
|
+
m[0].place_name
|
|
781
775
|
) : (
|
|
782
776
|
/*feature*/
|
|
783
|
-
|
|
784
|
-
)) + "") &&
|
|
785
|
-
37 && (
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
(g[7] ? "" : (
|
|
777
|
+
m[0].place_name.replace(/,.*/, "")
|
|
778
|
+
)) + "") && ke(h, f), k & /*showPlaceType, feature, imageUrl*/
|
|
779
|
+
37 && (_ = /*showPlaceType*/
|
|
780
|
+
m[2] === "always" || /*showPlaceType*/
|
|
781
|
+
m[2] && !/*feature*/
|
|
782
|
+
m[0].address && !/*feature*/
|
|
783
|
+
m[0].id.startsWith("road.") && !/*feature*/
|
|
784
|
+
m[0].id.startsWith("address.") && !/*feature*/
|
|
785
|
+
m[0].id.startsWith("postal_code.") && (!/*feature*/
|
|
786
|
+
m[0].id.startsWith("poi.") || !/*imageUrl*/
|
|
787
|
+
m[5]) && !/*isReverse*/
|
|
788
|
+
m[7]), _ ? g ? g.p(m, k) : (g = ht(m), g.c(), g.m(d, null)) : g && (g.d(1), g = null), k & /*feature*/
|
|
789
|
+
1 && y !== (y = /*isReverse*/
|
|
790
|
+
(m[7] ? "" : (
|
|
798
791
|
/*feature*/
|
|
799
|
-
|
|
800
|
-
)) + "") &&
|
|
792
|
+
m[0].place_name.replace(/[^,]*,?\s*/, "")
|
|
793
|
+
)) + "") && ke(E, y), k & /*selected*/
|
|
801
794
|
2 && l(
|
|
802
795
|
e,
|
|
803
796
|
"data-selected",
|
|
804
797
|
/*selected*/
|
|
805
|
-
|
|
806
|
-
),
|
|
807
|
-
2 &&
|
|
798
|
+
m[1]
|
|
799
|
+
), k & /*selected*/
|
|
800
|
+
2 && ue(
|
|
808
801
|
e,
|
|
809
802
|
"selected",
|
|
810
803
|
/*selected*/
|
|
811
|
-
|
|
804
|
+
m[1]
|
|
812
805
|
);
|
|
813
806
|
},
|
|
814
|
-
i:
|
|
815
|
-
o:
|
|
816
|
-
d(
|
|
817
|
-
|
|
807
|
+
i: A,
|
|
808
|
+
o: A,
|
|
809
|
+
d(m) {
|
|
810
|
+
m && U(e), b.d(), g && g.d(), C = !1, ae(O);
|
|
818
811
|
}
|
|
819
812
|
};
|
|
820
813
|
}
|
|
821
|
-
function
|
|
822
|
-
var
|
|
823
|
-
let
|
|
824
|
-
const f = (
|
|
825
|
-
let
|
|
826
|
-
function
|
|
827
|
-
|
|
814
|
+
function Hi(i, e, t) {
|
|
815
|
+
var O;
|
|
816
|
+
let n, o, { feature: u } = e, { selected: a = !1 } = e, { showPlaceType: r } = e, { missingIconsCache: d } = e, { iconsBaseUrl: c } = e;
|
|
817
|
+
const f = (O = u.properties) == null ? void 0 : O.categories;
|
|
818
|
+
let h, v, _ = 0, w = u.place_type[0] === "reverse";
|
|
819
|
+
function W() {
|
|
820
|
+
v && d.add(v), t(10, _++, _);
|
|
828
821
|
}
|
|
829
|
-
function
|
|
830
|
-
|
|
822
|
+
function y(p) {
|
|
823
|
+
ft.call(this, i, p);
|
|
831
824
|
}
|
|
832
|
-
function
|
|
833
|
-
|
|
825
|
+
function E(p) {
|
|
826
|
+
ft.call(this, i, p);
|
|
834
827
|
}
|
|
835
|
-
const
|
|
828
|
+
const C = () => W();
|
|
836
829
|
return i.$$set = (p) => {
|
|
837
|
-
"feature" in p && t(0, u = p.feature), "selected" in p && t(1, a = p.selected), "showPlaceType" in p && t(2,
|
|
830
|
+
"feature" in p && t(0, u = p.feature), "selected" in p && t(1, a = p.selected), "showPlaceType" in p && t(2, r = p.showPlaceType), "missingIconsCache" in p && t(9, d = p.missingIconsCache), "iconsBaseUrl" in p && t(3, c = p.iconsBaseUrl);
|
|
838
831
|
}, i.$$.update = () => {
|
|
839
|
-
var p,
|
|
832
|
+
var p, G, b, g;
|
|
840
833
|
if (i.$$.dirty & /*loadIconAttempt, index, category, iconsBaseUrl, imageUrl, missingIconsCache*/
|
|
841
834
|
3640)
|
|
842
835
|
do
|
|
843
|
-
t(11,
|
|
844
|
-
while (
|
|
836
|
+
t(11, n--, n), t(4, h = f == null ? void 0 : f[n]), t(5, v = h ? c + h.replace(/ /g, "_") + ".svg" : void 0);
|
|
837
|
+
while (n > -1 && (!v || d.has(v)));
|
|
845
838
|
i.$$.dirty & /*feature*/
|
|
846
|
-
1 && t(6, o =
|
|
847
|
-
}, t(11,
|
|
839
|
+
1 && t(6, o = ((G = (p = u.properties) == null ? void 0 : p.categories) == null ? void 0 : G.join(", ")) ?? ((g = (b = u.properties) == null ? void 0 : b.place_type_name) == null ? void 0 : g[0]) ?? u.place_type[0]);
|
|
840
|
+
}, t(11, n = (f == null ? void 0 : f.length) ?? 0), [
|
|
848
841
|
u,
|
|
849
842
|
a,
|
|
850
|
-
|
|
843
|
+
r,
|
|
851
844
|
c,
|
|
852
|
-
|
|
853
|
-
|
|
845
|
+
h,
|
|
846
|
+
v,
|
|
854
847
|
o,
|
|
855
|
-
_,
|
|
856
|
-
U,
|
|
857
|
-
d,
|
|
858
848
|
w,
|
|
859
|
-
|
|
849
|
+
W,
|
|
850
|
+
d,
|
|
851
|
+
_,
|
|
852
|
+
n,
|
|
853
|
+
y,
|
|
860
854
|
E,
|
|
861
|
-
|
|
862
|
-
I
|
|
855
|
+
C
|
|
863
856
|
];
|
|
864
857
|
}
|
|
865
|
-
class
|
|
858
|
+
class qi extends ve {
|
|
866
859
|
constructor(e) {
|
|
867
|
-
super(),
|
|
860
|
+
super(), be(this, e, Hi, zi, he, {
|
|
868
861
|
feature: 0,
|
|
869
862
|
selected: 1,
|
|
870
863
|
showPlaceType: 2,
|
|
@@ -873,98 +866,98 @@ class Fi extends ge {
|
|
|
873
866
|
});
|
|
874
867
|
}
|
|
875
868
|
}
|
|
876
|
-
function
|
|
869
|
+
function ji(i) {
|
|
877
870
|
let e;
|
|
878
871
|
return {
|
|
879
872
|
c() {
|
|
880
|
-
e =
|
|
873
|
+
e = R("div"), e.innerHTML = '<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>', l(e, "class", "svelte-7cmwmc");
|
|
881
874
|
},
|
|
882
|
-
m(t,
|
|
883
|
-
|
|
875
|
+
m(t, n) {
|
|
876
|
+
B(t, e, n);
|
|
884
877
|
},
|
|
885
|
-
p:
|
|
886
|
-
i:
|
|
887
|
-
o:
|
|
878
|
+
p: A,
|
|
879
|
+
i: A,
|
|
880
|
+
o: A,
|
|
888
881
|
d(t) {
|
|
889
|
-
t &&
|
|
882
|
+
t && U(e);
|
|
890
883
|
}
|
|
891
884
|
};
|
|
892
885
|
}
|
|
893
|
-
class Pi extends
|
|
886
|
+
class Pi extends ve {
|
|
894
887
|
constructor(e) {
|
|
895
|
-
super(),
|
|
888
|
+
super(), be(this, e, null, ji, he, {});
|
|
896
889
|
}
|
|
897
890
|
}
|
|
898
|
-
function
|
|
891
|
+
function Zi(i) {
|
|
899
892
|
let e, t;
|
|
900
893
|
return {
|
|
901
894
|
c() {
|
|
902
|
-
e =
|
|
895
|
+
e = re("svg"), t = re("path"), l(t, "d", "M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"), l(e, "viewBox", "0 0 60.006 21.412"), l(e, "width", "14"), l(e, "height", "20"), l(e, "class", "svelte-en2qvf");
|
|
903
896
|
},
|
|
904
|
-
m(
|
|
905
|
-
|
|
897
|
+
m(n, o) {
|
|
898
|
+
B(n, e, o), T(e, t);
|
|
906
899
|
},
|
|
907
|
-
p:
|
|
908
|
-
i:
|
|
909
|
-
o:
|
|
910
|
-
d(
|
|
911
|
-
|
|
900
|
+
p: A,
|
|
901
|
+
i: A,
|
|
902
|
+
o: A,
|
|
903
|
+
d(n) {
|
|
904
|
+
n && U(e);
|
|
912
905
|
}
|
|
913
906
|
};
|
|
914
907
|
}
|
|
915
|
-
class Gi extends
|
|
908
|
+
class Gi extends ve {
|
|
916
909
|
constructor(e) {
|
|
917
|
-
super(),
|
|
910
|
+
super(), be(this, e, null, Zi, he, {});
|
|
918
911
|
}
|
|
919
912
|
}
|
|
920
|
-
function
|
|
921
|
-
let e, t,
|
|
913
|
+
function Qi(i) {
|
|
914
|
+
let e, t, n;
|
|
922
915
|
return {
|
|
923
916
|
c() {
|
|
924
|
-
e =
|
|
917
|
+
e = re("svg"), t = re("circle"), n = re("path"), l(t, "cx", "4.789"), l(t, "cy", "4.787"), l(t, "r", "3.85"), l(t, "class", "svelte-1aq105l"), l(n, "d", "M12.063 12.063 7.635 7.635"), l(n, "class", "svelte-1aq105l"), l(e, "xmlns", "http://www.w3.org/2000/svg"), l(e, "width", "13"), l(e, "height", "13"), l(e, "viewBox", "0 0 13 13"), l(e, "class", "svelte-1aq105l");
|
|
925
918
|
},
|
|
926
919
|
m(o, u) {
|
|
927
|
-
|
|
920
|
+
B(o, e, u), T(e, t), T(e, n);
|
|
928
921
|
},
|
|
929
|
-
p:
|
|
930
|
-
i:
|
|
931
|
-
o:
|
|
922
|
+
p: A,
|
|
923
|
+
i: A,
|
|
924
|
+
o: A,
|
|
932
925
|
d(o) {
|
|
933
|
-
o &&
|
|
926
|
+
o && U(e);
|
|
934
927
|
}
|
|
935
928
|
};
|
|
936
929
|
}
|
|
937
|
-
class
|
|
930
|
+
class Ki extends ve {
|
|
938
931
|
constructor(e) {
|
|
939
|
-
super(),
|
|
932
|
+
super(), be(this, e, null, Qi, he, {});
|
|
940
933
|
}
|
|
941
934
|
}
|
|
942
|
-
function
|
|
943
|
-
const
|
|
944
|
-
return i ===
|
|
935
|
+
function Vi(i, e, t) {
|
|
936
|
+
const n = e[1], o = e[0], u = n - o;
|
|
937
|
+
return i === n && t ? i : ((i - o) % u + u) % u + o;
|
|
945
938
|
}
|
|
946
|
-
function
|
|
939
|
+
function bt(i) {
|
|
947
940
|
const e = [...i];
|
|
948
|
-
return e[2] < e[0] && (e[2] += 360), e;
|
|
941
|
+
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;
|
|
949
942
|
}
|
|
950
|
-
let
|
|
951
|
-
async function
|
|
952
|
-
const
|
|
943
|
+
let Ne;
|
|
944
|
+
async function xi(i, e, t) {
|
|
945
|
+
const n = i == null ? void 0 : i.getCenterAndZoom();
|
|
953
946
|
for (const o of e ?? [])
|
|
954
|
-
if (!(
|
|
947
|
+
if (!(n && (o.minZoom != null && o.minZoom > n[0] || o.maxZoom != null && o.maxZoom < n[0]))) {
|
|
955
948
|
if (o.type === "fixed")
|
|
956
949
|
return o.coordinates.join(",");
|
|
957
950
|
e: if (o.type === "client-geolocation") {
|
|
958
|
-
if (
|
|
959
|
-
if (!
|
|
951
|
+
if (Ne && o.cachedLocationExpiry && Ne.time + o.cachedLocationExpiry > Date.now()) {
|
|
952
|
+
if (!Ne.coords)
|
|
960
953
|
break e;
|
|
961
|
-
return
|
|
954
|
+
return Ne.coords;
|
|
962
955
|
}
|
|
963
956
|
let u;
|
|
964
957
|
try {
|
|
965
|
-
return u = await new Promise((a,
|
|
958
|
+
return u = await new Promise((a, r) => {
|
|
966
959
|
t.signal.addEventListener("abort", () => {
|
|
967
|
-
|
|
960
|
+
r(Error("aborted"));
|
|
968
961
|
}), navigator.geolocation.getCurrentPosition(
|
|
969
962
|
(d) => {
|
|
970
963
|
a(
|
|
@@ -972,14 +965,14 @@ async function Ki(i, e, t) {
|
|
|
972
965
|
);
|
|
973
966
|
},
|
|
974
967
|
(d) => {
|
|
975
|
-
|
|
968
|
+
r(d);
|
|
976
969
|
},
|
|
977
970
|
o
|
|
978
971
|
);
|
|
979
972
|
}), u;
|
|
980
973
|
} catch {
|
|
981
974
|
} finally {
|
|
982
|
-
o.cachedLocationExpiry && (
|
|
975
|
+
o.cachedLocationExpiry && (Ne = {
|
|
983
976
|
time: Date.now(),
|
|
984
977
|
coords: u
|
|
985
978
|
});
|
|
@@ -989,76 +982,76 @@ async function Ki(i, e, t) {
|
|
|
989
982
|
}
|
|
990
983
|
if (o.type === "server-geolocation")
|
|
991
984
|
return "ip";
|
|
992
|
-
if (
|
|
993
|
-
return
|
|
985
|
+
if (n && o.type === "map-center")
|
|
986
|
+
return n[1].toFixed(6) + "," + n[2].toFixed(6);
|
|
994
987
|
}
|
|
995
988
|
}
|
|
996
|
-
const
|
|
997
|
-
function
|
|
989
|
+
const Ji = /^(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, vt = /^([+-]?[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,})$/, Lt = /^(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, _t = /^(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, yt = /^(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, wt = /^(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;
|
|
990
|
+
function Xi(i) {
|
|
998
991
|
if (!["DMS", "DM", "DD"].includes(i))
|
|
999
992
|
throw new Error("invalid format specified");
|
|
1000
993
|
if (this.decimalCoordinates && this.decimalCoordinates.trim()) {
|
|
1001
|
-
const e = this.decimalCoordinates.split(",").map((
|
|
994
|
+
const e = this.decimalCoordinates.split(",").map((_) => Number(_.trim())), t = Number(e[0]), n = Number(e[1]), o = Math.abs(t), u = Math.abs(n), a = t > 0 ? "N" : "S", r = n > 0 ? "E" : "W";
|
|
1002
995
|
let d;
|
|
1003
|
-
i == "DD" && (d = `${o}° ${a}, ${u}° ${
|
|
1004
|
-
const c = Math.floor(o), f = Math.floor(u),
|
|
996
|
+
i == "DD" && (d = `${o}° ${a}, ${u}° ${r}`);
|
|
997
|
+
const c = Math.floor(o), f = Math.floor(u), h = (o - c) * 60, v = (u - f) * 60;
|
|
1005
998
|
if (i == "DM") {
|
|
1006
|
-
let
|
|
1007
|
-
|
|
999
|
+
let _ = Et(h, 3).toFixed(3).padStart(6, "0"), w = Et(v, 3).toFixed(3).padStart(6, "0");
|
|
1000
|
+
_.endsWith(".000") && w.endsWith(".000") && (_ = _.replace(/\.000$/, ""), w = w.replace(/\.000$/, "")), d = `${c}° ${_}' ${a}, ${f}° ${w}' ${r}`;
|
|
1008
1001
|
}
|
|
1009
1002
|
if (i == "DMS") {
|
|
1010
|
-
const
|
|
1011
|
-
let
|
|
1012
|
-
const
|
|
1013
|
-
|
|
1003
|
+
const _ = Math.floor(h), w = Math.floor(v);
|
|
1004
|
+
let W = ((h - _) * 60).toFixed(1).padStart(4, "0"), y = ((v - w) * 60).toFixed(1).padStart(4, "0");
|
|
1005
|
+
const E = _.toString().padStart(2, "0"), C = w.toString().padStart(2, "0");
|
|
1006
|
+
W.endsWith(".0") && y.endsWith(".0") && (W = W.replace(/\.0$/, ""), y = y.replace(/\.0$/, "")), d = `${c}° ${E}' ${W}" ${a}, ${f}° ${C}' ${y}" ${r}`;
|
|
1014
1007
|
}
|
|
1015
1008
|
return d;
|
|
1016
1009
|
} else
|
|
1017
1010
|
throw new Error("no decimal coordinates to convert");
|
|
1018
1011
|
}
|
|
1019
|
-
function
|
|
1012
|
+
function Et(i, e) {
|
|
1020
1013
|
const t = Math.pow(10, e);
|
|
1021
1014
|
return Math.round((i + Number.EPSILON) * t) / t;
|
|
1022
1015
|
}
|
|
1023
|
-
function
|
|
1016
|
+
function nt(i, e) {
|
|
1024
1017
|
e || (e = 5), i = i.replace(/\s+/g, " ").trim();
|
|
1025
|
-
let t = null,
|
|
1026
|
-
if (
|
|
1018
|
+
let t = null, n = null, o = "", u = "", a = null, r = [], d = !1;
|
|
1019
|
+
if (Ji.test(i))
|
|
1027
1020
|
throw new Error("invalid coordinate value");
|
|
1028
|
-
if (
|
|
1029
|
-
if (
|
|
1030
|
-
t = Math.abs(
|
|
1021
|
+
if (vt.test(i))
|
|
1022
|
+
if (r = vt.exec(i), d = Me(r), d)
|
|
1023
|
+
t = Math.abs(r[1]) + r[2] / 60, Number(r[1]) < 0 && (t *= -1), n = Math.abs(r[3]) + r[4] / 60, Number(r[3]) < 0 && (n *= -1), a = "DM";
|
|
1031
1024
|
else
|
|
1032
1025
|
throw new Error("invalid coordinate format");
|
|
1033
|
-
else if (
|
|
1034
|
-
if (
|
|
1035
|
-
if (t =
|
|
1026
|
+
else if (Lt.test(i))
|
|
1027
|
+
if (r = Lt.exec(i), d = Me(r), d) {
|
|
1028
|
+
if (t = r[2], n = r[6], t.includes(",") && (t = t.replace(",", ".")), n.includes(",") && (n = n.replace(",", ".")), a = "DD", Number(Math.round(t)) == Number(t))
|
|
1036
1029
|
throw new Error("integer only coordinate provided");
|
|
1037
|
-
if (Number(Math.round(
|
|
1030
|
+
if (Number(Math.round(n)) == Number(n))
|
|
1038
1031
|
throw new Error("integer only coordinate provided");
|
|
1039
|
-
|
|
1032
|
+
r[1] ? (o = r[1], u = r[5]) : r[4] && (o = r[4], u = r[8]);
|
|
1040
1033
|
} else
|
|
1041
1034
|
throw new Error("invalid decimal coordinate format");
|
|
1042
|
-
else if (
|
|
1043
|
-
if (
|
|
1044
|
-
t = Math.abs(parseInt(
|
|
1035
|
+
else if (_t.test(i))
|
|
1036
|
+
if (r = _t.exec(i), d = Me(r), d)
|
|
1037
|
+
t = Math.abs(parseInt(r[2])), r[4] && (t += r[4] / 60, a = "DM"), r[6] && (t += r[6].replace(",", ".") / 3600, a = "DMS"), parseInt(r[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(r[9])), r[11] && (n += r[11] / 60), r[13] && (n += r[13].replace(",", ".") / 3600), parseInt(r[9]) < 0 && (n = -1 * n), r[1] ? (o = r[1], u = r[8]) : r[7] && (o = r[7], u = r[14]);
|
|
1045
1038
|
else
|
|
1046
1039
|
throw new Error("invalid DMS coordinates format");
|
|
1047
|
-
else if (
|
|
1048
|
-
if (
|
|
1049
|
-
t = Math.abs(parseInt(
|
|
1040
|
+
else if (yt.test(i))
|
|
1041
|
+
if (r = yt.exec(i), d = Me(r), d)
|
|
1042
|
+
t = Math.abs(parseInt(r[2])), r[4] && (t += r[4] / 60, a = "DM"), r[6] && (t += r[6] / 3600, a = "DMS"), parseInt(r[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(r[10])), r[12] && (n += r[12] / 60), r[14] && (n += r[14] / 3600), parseInt(r[10]) < 0 && (n = -1 * n), r[1] ? (o = r[1], u = r[9]) : r[8] && (o = r[8], u = r[16]);
|
|
1050
1043
|
else
|
|
1051
1044
|
throw new Error("invalid DMS coordinates format");
|
|
1052
|
-
else if (
|
|
1053
|
-
if (
|
|
1045
|
+
else if (wt.test(i)) {
|
|
1046
|
+
if (r = wt.exec(i), d = Me(r), r.filter((c) => c).length <= 5)
|
|
1054
1047
|
throw new Error("invalid coordinates format");
|
|
1055
1048
|
if (d)
|
|
1056
|
-
t = Math.abs(parseInt(
|
|
1049
|
+
t = Math.abs(parseInt(r[2])), r[4] && (t += r[4].replace(",", ".") / 60, a = "DM"), r[6] && (t += r[6].replace(",", ".") / 3600, a = "DMS"), parseInt(r[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(r[10])), r[12] && (n += r[12].replace(",", ".") / 60), r[14] && (n += r[14].replace(",", ".") / 3600), parseInt(r[10]) < 0 && (n = -1 * n), r[1] ? (o = r[1], u = r[9]) : r[8] && (o = r[8], u = r[16]);
|
|
1057
1050
|
else
|
|
1058
1051
|
throw new Error("invalid coordinates format");
|
|
1059
1052
|
}
|
|
1060
1053
|
if (d) {
|
|
1061
|
-
if (Math.abs(
|
|
1054
|
+
if (Math.abs(n) >= 180)
|
|
1062
1055
|
throw new Error("invalid longitude value");
|
|
1063
1056
|
if (Math.abs(t) >= 90)
|
|
1064
1057
|
throw new Error("invalid latitude value");
|
|
@@ -1066,61 +1059,61 @@ function tt(i, e) {
|
|
|
1066
1059
|
throw new Error("invalid coordinates value");
|
|
1067
1060
|
if (o && o == u)
|
|
1068
1061
|
throw new Error("invalid coordinates format");
|
|
1069
|
-
t.toString().includes(",") && (t = t.replace(",", ".")),
|
|
1062
|
+
t.toString().includes(",") && (t = t.replace(",", ".")), n.toString().includes(",") && (n = n.replace(",", "."));
|
|
1070
1063
|
let c = /S|SOUTH/i;
|
|
1071
|
-
c.test(o) && t > 0 && (t = -1 * t), c = /W|WEST/i, c.test(u) &&
|
|
1072
|
-
const f =
|
|
1073
|
-
let
|
|
1074
|
-
const
|
|
1075
|
-
if (
|
|
1076
|
-
const
|
|
1077
|
-
|
|
1064
|
+
c.test(o) && t > 0 && (t = -1 * t), c = /W|WEST/i, c.test(u) && n > 0 && (n = -1 * n);
|
|
1065
|
+
const f = r[0].trim();
|
|
1066
|
+
let h, v;
|
|
1067
|
+
const _ = /[,/;\u0020]/g, w = f.match(_);
|
|
1068
|
+
if (w == null) {
|
|
1069
|
+
const E = Math.floor(i.length / 2);
|
|
1070
|
+
h = f.substring(0, E).trim(), v = f.substring(E).trim();
|
|
1078
1071
|
} else {
|
|
1079
|
-
let
|
|
1080
|
-
|
|
1081
|
-
let
|
|
1082
|
-
if (
|
|
1083
|
-
|
|
1072
|
+
let E;
|
|
1073
|
+
w.length % 2 == 1 ? E = Math.floor(w.length / 2) : E = w.length / 2 - 1;
|
|
1074
|
+
let C = 0;
|
|
1075
|
+
if (E == 0)
|
|
1076
|
+
C = f.indexOf(w[0]), h = f.substring(0, C).trim(), v = f.substring(C + 1).trim();
|
|
1084
1077
|
else {
|
|
1085
|
-
let
|
|
1086
|
-
for (;
|
|
1087
|
-
|
|
1088
|
-
|
|
1078
|
+
let O = 0, p = 0;
|
|
1079
|
+
for (; O <= E; )
|
|
1080
|
+
C = f.indexOf(w[O], p), p = C + 1, O++;
|
|
1081
|
+
h = f.substring(0, C).trim(), v = f.substring(C + 1).trim();
|
|
1089
1082
|
}
|
|
1090
1083
|
}
|
|
1091
|
-
const
|
|
1092
|
-
if (
|
|
1084
|
+
const W = h.split(".");
|
|
1085
|
+
if (W.length == 2 && W[1] == 0 && W[1].length != 2)
|
|
1093
1086
|
throw new Error("invalid coordinates format");
|
|
1094
|
-
const
|
|
1095
|
-
if (
|
|
1087
|
+
const y = v.split(".");
|
|
1088
|
+
if (y.length == 2 && y[1] == 0 && y[1].length != 2)
|
|
1096
1089
|
throw new Error("invalid coordinates format");
|
|
1097
|
-
if (/^\d+$/.test(
|
|
1090
|
+
if (/^\d+$/.test(h) || /^\d+$/.test(v))
|
|
1098
1091
|
throw new Error("degree only coordinate/s provided");
|
|
1099
|
-
return t = Number(Number(t).toFixed(e)),
|
|
1092
|
+
return t = Number(Number(t).toFixed(e)), n = Number(Number(n).toFixed(e)), Object.freeze({
|
|
1100
1093
|
verbatimCoordinates: f,
|
|
1101
|
-
verbatimLatitude:
|
|
1102
|
-
verbatimLongitude:
|
|
1094
|
+
verbatimLatitude: h,
|
|
1095
|
+
verbatimLongitude: v,
|
|
1103
1096
|
decimalLatitude: t,
|
|
1104
|
-
decimalLongitude:
|
|
1105
|
-
decimalCoordinates: `${t},${
|
|
1097
|
+
decimalLongitude: n,
|
|
1098
|
+
decimalCoordinates: `${t},${n}`,
|
|
1106
1099
|
originalFormat: a,
|
|
1107
|
-
closeEnough:
|
|
1108
|
-
toCoordinateFormat:
|
|
1100
|
+
closeEnough: Yi,
|
|
1101
|
+
toCoordinateFormat: Xi
|
|
1109
1102
|
});
|
|
1110
1103
|
} else
|
|
1111
1104
|
throw new Error("coordinates pattern match failed");
|
|
1112
1105
|
}
|
|
1113
|
-
function
|
|
1106
|
+
function Me(i) {
|
|
1114
1107
|
if (!isNaN(i[0]))
|
|
1115
1108
|
return !1;
|
|
1116
1109
|
const e = [...i];
|
|
1117
1110
|
if (e.shift(), e.length % 2 > 0)
|
|
1118
1111
|
return !1;
|
|
1119
|
-
const t = /^[-+]?\d+([\.,]\d+)?$/,
|
|
1112
|
+
const t = /^[-+]?\d+([\.,]\d+)?$/, n = /[eastsouthnorthwest]+/i, o = e.length / 2;
|
|
1120
1113
|
for (let u = 0; u < o; u++) {
|
|
1121
|
-
const a = e[u],
|
|
1122
|
-
if (!(a == null &&
|
|
1123
|
-
if (a == null ||
|
|
1114
|
+
const a = e[u], r = e[u + o], d = t.test(a) && t.test(r), c = n.test(a) && n.test(r), f = a == r;
|
|
1115
|
+
if (!(a == null && r == null)) {
|
|
1116
|
+
if (a == null || r == null)
|
|
1124
1117
|
return !1;
|
|
1125
1118
|
if (d || c || f)
|
|
1126
1119
|
continue;
|
|
@@ -1129,28 +1122,28 @@ function ke(i) {
|
|
|
1129
1122
|
}
|
|
1130
1123
|
return !0;
|
|
1131
1124
|
}
|
|
1132
|
-
function
|
|
1125
|
+
function St(i, e) {
|
|
1133
1126
|
const t = Math.abs(i - e);
|
|
1134
1127
|
return Number(t.toFixed(6)) <= 1e-5;
|
|
1135
1128
|
}
|
|
1136
|
-
function
|
|
1129
|
+
function Yi(i) {
|
|
1137
1130
|
if (!i)
|
|
1138
1131
|
throw new Error("coords must be provided");
|
|
1139
1132
|
if (i.includes(",")) {
|
|
1140
1133
|
const e = i.split(",");
|
|
1141
1134
|
if (Number(e[0]) == NaN || Number(e[1]) == NaN)
|
|
1142
1135
|
throw new Error("coords are not valid decimals");
|
|
1143
|
-
return
|
|
1136
|
+
return St(this.decimalLatitude, Number(e[0])) && St(this.decimalLongitude, e[1]);
|
|
1144
1137
|
} else
|
|
1145
1138
|
throw new Error("coords being tested must be separated by a comma");
|
|
1146
1139
|
}
|
|
1147
|
-
const
|
|
1140
|
+
const $i = Object.freeze({
|
|
1148
1141
|
DMS: "DMS",
|
|
1149
1142
|
DM: "DM",
|
|
1150
1143
|
DD: "DD"
|
|
1151
1144
|
});
|
|
1152
|
-
|
|
1153
|
-
const
|
|
1145
|
+
nt.to = $i;
|
|
1146
|
+
const en = [
|
|
1154
1147
|
{
|
|
1155
1148
|
verbatimCoordinates: "40.123, -74.123",
|
|
1156
1149
|
verbatimLatitude: "40.123",
|
|
@@ -1291,10 +1284,10 @@ const xi = [
|
|
|
1291
1284
|
verbatimLatitude: "40 7 22.8",
|
|
1292
1285
|
verbatimLongitude: "-74 7 22.8"
|
|
1293
1286
|
}
|
|
1294
|
-
],
|
|
1287
|
+
], tn = {
|
|
1295
1288
|
decimalLatitude: 40.123,
|
|
1296
1289
|
decimalLongitude: -74.123
|
|
1297
|
-
},
|
|
1290
|
+
}, nn = [
|
|
1298
1291
|
{
|
|
1299
1292
|
verbatimCoordinates: `50°4'17.698"south, 14°24'2.826"east`,
|
|
1300
1293
|
verbatimLatitude: `50°4'17.698"south`,
|
|
@@ -1379,7 +1372,7 @@ const xi = [
|
|
|
1379
1372
|
decimalLatitude: -18.4,
|
|
1380
1373
|
decimalLongitude: 22.75
|
|
1381
1374
|
}
|
|
1382
|
-
],
|
|
1375
|
+
], rn = [
|
|
1383
1376
|
{
|
|
1384
1377
|
verbatimCoordinates: "10.432342S 10.6345345E",
|
|
1385
1378
|
verbatimLatitude: "10.432342S",
|
|
@@ -1514,72 +1507,72 @@ const xi = [
|
|
|
1514
1507
|
decimalLongitude: 18.33453
|
|
1515
1508
|
}
|
|
1516
1509
|
];
|
|
1517
|
-
function
|
|
1510
|
+
function on() {
|
|
1518
1511
|
const i = [];
|
|
1519
|
-
return
|
|
1520
|
-
e.decimalLatitude ? i.push(e) : i.push({ ...e,
|
|
1521
|
-
}), [...i, ...
|
|
1522
|
-
}
|
|
1523
|
-
const
|
|
1524
|
-
|
|
1525
|
-
const
|
|
1526
|
-
function
|
|
1527
|
-
const
|
|
1528
|
-
return
|
|
1529
|
-
}
|
|
1530
|
-
function
|
|
1512
|
+
return en.forEach((e) => {
|
|
1513
|
+
e.decimalLatitude ? i.push(e) : i.push({ ...e, ...tn });
|
|
1514
|
+
}), [...i, ...nn, ...rn];
|
|
1515
|
+
}
|
|
1516
|
+
const sn = on();
|
|
1517
|
+
nt.formats = sn.map((i) => i.verbatimCoordinates);
|
|
1518
|
+
const an = nt;
|
|
1519
|
+
function pt(i, e, t) {
|
|
1520
|
+
const n = i.slice();
|
|
1521
|
+
return n[83] = e[t], n[85] = t, n;
|
|
1522
|
+
}
|
|
1523
|
+
function Nt(i) {
|
|
1531
1524
|
let e, t;
|
|
1532
1525
|
return e = new Pi({}), {
|
|
1533
1526
|
c() {
|
|
1534
|
-
|
|
1527
|
+
de(e.$$.fragment);
|
|
1535
1528
|
},
|
|
1536
|
-
m(
|
|
1537
|
-
|
|
1529
|
+
m(n, o) {
|
|
1530
|
+
oe(e, n, o), t = !0;
|
|
1538
1531
|
},
|
|
1539
|
-
i(
|
|
1540
|
-
t || (
|
|
1532
|
+
i(n) {
|
|
1533
|
+
t || (z(e.$$.fragment, n), t = !0);
|
|
1541
1534
|
},
|
|
1542
|
-
o(
|
|
1543
|
-
|
|
1535
|
+
o(n) {
|
|
1536
|
+
Q(e.$$.fragment, n), t = !1;
|
|
1544
1537
|
},
|
|
1545
|
-
d(
|
|
1546
|
-
|
|
1538
|
+
d(n) {
|
|
1539
|
+
se(e, n);
|
|
1547
1540
|
}
|
|
1548
1541
|
};
|
|
1549
1542
|
}
|
|
1550
|
-
function
|
|
1551
|
-
let e, t,
|
|
1543
|
+
function Mt(i) {
|
|
1544
|
+
let e, t, n, o, u;
|
|
1552
1545
|
return t = new Gi({}), {
|
|
1553
1546
|
c() {
|
|
1554
|
-
e =
|
|
1547
|
+
e = R("button"), de(t.$$.fragment), l(e, "type", "button"), l(
|
|
1555
1548
|
e,
|
|
1556
1549
|
"title",
|
|
1557
1550
|
/*reverseButtonTitle*/
|
|
1558
1551
|
i[9]
|
|
1559
|
-
), l(e, "class", "svelte-
|
|
1552
|
+
), l(e, "class", "svelte-qnu791"), ue(
|
|
1560
1553
|
e,
|
|
1561
1554
|
"active",
|
|
1562
1555
|
/*reverseActive*/
|
|
1563
1556
|
i[0]
|
|
1564
1557
|
);
|
|
1565
1558
|
},
|
|
1566
|
-
m(a,
|
|
1567
|
-
|
|
1559
|
+
m(a, r) {
|
|
1560
|
+
B(a, e, r), oe(t, e, null), n = !0, o || (u = V(
|
|
1568
1561
|
e,
|
|
1569
1562
|
"click",
|
|
1570
1563
|
/*click_handler_2*/
|
|
1571
|
-
i[
|
|
1564
|
+
i[68]
|
|
1572
1565
|
), o = !0);
|
|
1573
1566
|
},
|
|
1574
|
-
p(a,
|
|
1575
|
-
(!
|
|
1567
|
+
p(a, r) {
|
|
1568
|
+
(!n || r[0] & /*reverseButtonTitle*/
|
|
1576
1569
|
512) && l(
|
|
1577
1570
|
e,
|
|
1578
1571
|
"title",
|
|
1579
1572
|
/*reverseButtonTitle*/
|
|
1580
1573
|
a[9]
|
|
1581
|
-
), (!
|
|
1582
|
-
1) &&
|
|
1574
|
+
), (!n || r[0] & /*reverseActive*/
|
|
1575
|
+
1) && ue(
|
|
1583
1576
|
e,
|
|
1584
1577
|
"active",
|
|
1585
1578
|
/*reverseActive*/
|
|
@@ -1587,193 +1580,193 @@ function pt(i) {
|
|
|
1587
1580
|
);
|
|
1588
1581
|
},
|
|
1589
1582
|
i(a) {
|
|
1590
|
-
|
|
1583
|
+
n || (z(t.$$.fragment, a), n = !0);
|
|
1591
1584
|
},
|
|
1592
1585
|
o(a) {
|
|
1593
|
-
|
|
1586
|
+
Q(t.$$.fragment, a), n = !1;
|
|
1594
1587
|
},
|
|
1595
1588
|
d(a) {
|
|
1596
|
-
a &&
|
|
1589
|
+
a && U(e), se(t), o = !1, u();
|
|
1597
1590
|
}
|
|
1598
1591
|
};
|
|
1599
1592
|
}
|
|
1600
|
-
function
|
|
1601
|
-
let e, t = [],
|
|
1593
|
+
function ln(i) {
|
|
1594
|
+
let e, t = [], n = /* @__PURE__ */ new Map(), o, u, a, r = gt(
|
|
1602
1595
|
/*listFeatures*/
|
|
1603
1596
|
i[14]
|
|
1604
1597
|
);
|
|
1605
1598
|
const d = (c) => (
|
|
1606
1599
|
/*feature*/
|
|
1607
|
-
c[
|
|
1608
|
-
(c[
|
|
1609
|
-
c[
|
|
1600
|
+
c[83].id + /*feature*/
|
|
1601
|
+
(c[83].address ? "," + /*feature*/
|
|
1602
|
+
c[83].address : "")
|
|
1610
1603
|
);
|
|
1611
|
-
for (let c = 0; c <
|
|
1612
|
-
let f =
|
|
1613
|
-
|
|
1604
|
+
for (let c = 0; c < r.length; c += 1) {
|
|
1605
|
+
let f = pt(i, r, c), h = d(f);
|
|
1606
|
+
n.set(h, t[c] = Tt(h, f));
|
|
1614
1607
|
}
|
|
1615
1608
|
return {
|
|
1616
1609
|
c() {
|
|
1617
|
-
e =
|
|
1610
|
+
e = R("ul");
|
|
1618
1611
|
for (let c = 0; c < t.length; c += 1)
|
|
1619
1612
|
t[c].c();
|
|
1620
|
-
l(e, "class", "svelte-
|
|
1613
|
+
l(e, "class", "svelte-qnu791");
|
|
1621
1614
|
},
|
|
1622
1615
|
m(c, f) {
|
|
1623
|
-
|
|
1624
|
-
for (let
|
|
1625
|
-
t[
|
|
1616
|
+
B(c, e, f);
|
|
1617
|
+
for (let h = 0; h < t.length; h += 1)
|
|
1618
|
+
t[h] && t[h].m(e, null);
|
|
1626
1619
|
o = !0, u || (a = [
|
|
1627
|
-
|
|
1620
|
+
V(
|
|
1628
1621
|
e,
|
|
1629
1622
|
"mouseleave",
|
|
1630
1623
|
/*mouseleave_handler*/
|
|
1631
|
-
i[
|
|
1624
|
+
i[72]
|
|
1632
1625
|
),
|
|
1633
|
-
|
|
1626
|
+
V(
|
|
1634
1627
|
e,
|
|
1635
1628
|
"blur",
|
|
1636
1629
|
/*blur_handler_1*/
|
|
1637
|
-
i[
|
|
1630
|
+
i[73]
|
|
1638
1631
|
)
|
|
1639
1632
|
], u = !0);
|
|
1640
1633
|
},
|
|
1641
1634
|
p(c, f) {
|
|
1642
1635
|
f[0] & /*listFeatures, showPlaceType, selectedItemIndex, missingIconsCache, iconsBaseUrl, pick*/
|
|
1643
|
-
17880064 && (
|
|
1636
|
+
17880064 && (r = gt(
|
|
1644
1637
|
/*listFeatures*/
|
|
1645
1638
|
c[14]
|
|
1646
|
-
),
|
|
1639
|
+
), Fe(), t = Mi(t, f, d, 1, c, r, n, e, Ni, Tt, null, pt), ze());
|
|
1647
1640
|
},
|
|
1648
1641
|
i(c) {
|
|
1649
1642
|
if (!o) {
|
|
1650
|
-
for (let f = 0; f <
|
|
1651
|
-
|
|
1643
|
+
for (let f = 0; f < r.length; f += 1)
|
|
1644
|
+
z(t[f]);
|
|
1652
1645
|
o = !0;
|
|
1653
1646
|
}
|
|
1654
1647
|
},
|
|
1655
1648
|
o(c) {
|
|
1656
1649
|
for (let f = 0; f < t.length; f += 1)
|
|
1657
|
-
|
|
1650
|
+
Q(t[f]);
|
|
1658
1651
|
o = !1;
|
|
1659
1652
|
},
|
|
1660
1653
|
d(c) {
|
|
1661
|
-
c &&
|
|
1654
|
+
c && U(e);
|
|
1662
1655
|
for (let f = 0; f < t.length; f += 1)
|
|
1663
1656
|
t[f].d();
|
|
1664
|
-
u = !1,
|
|
1657
|
+
u = !1, ae(a);
|
|
1665
1658
|
}
|
|
1666
1659
|
};
|
|
1667
1660
|
}
|
|
1668
|
-
function
|
|
1669
|
-
let e, t,
|
|
1670
|
-
return t = new
|
|
1661
|
+
function un(i) {
|
|
1662
|
+
let e, t, n, o, u, a;
|
|
1663
|
+
return t = new At({}), {
|
|
1671
1664
|
c() {
|
|
1672
|
-
e =
|
|
1665
|
+
e = R("div"), de(t.$$.fragment), n = J(), o = R("div"), u = ce(
|
|
1673
1666
|
/*noResultsMessage*/
|
|
1674
1667
|
i[7]
|
|
1675
|
-
), l(o, "class", "svelte-
|
|
1668
|
+
), l(o, "class", "svelte-qnu791"), l(e, "class", "no-results svelte-qnu791");
|
|
1676
1669
|
},
|
|
1677
|
-
m(
|
|
1678
|
-
|
|
1670
|
+
m(r, d) {
|
|
1671
|
+
B(r, e, d), oe(t, e, null), T(e, n), T(e, o), T(o, u), a = !0;
|
|
1679
1672
|
},
|
|
1680
|
-
p(
|
|
1673
|
+
p(r, d) {
|
|
1681
1674
|
(!a || d[0] & /*noResultsMessage*/
|
|
1682
|
-
128) &&
|
|
1675
|
+
128) && ke(
|
|
1683
1676
|
u,
|
|
1684
1677
|
/*noResultsMessage*/
|
|
1685
|
-
|
|
1678
|
+
r[7]
|
|
1686
1679
|
);
|
|
1687
1680
|
},
|
|
1688
|
-
i(
|
|
1689
|
-
a || (
|
|
1681
|
+
i(r) {
|
|
1682
|
+
a || (z(t.$$.fragment, r), a = !0);
|
|
1690
1683
|
},
|
|
1691
|
-
o(
|
|
1692
|
-
|
|
1684
|
+
o(r) {
|
|
1685
|
+
Q(t.$$.fragment, r), a = !1;
|
|
1693
1686
|
},
|
|
1694
|
-
d(
|
|
1695
|
-
|
|
1687
|
+
d(r) {
|
|
1688
|
+
r && U(e), se(t);
|
|
1696
1689
|
}
|
|
1697
1690
|
};
|
|
1698
1691
|
}
|
|
1699
|
-
function
|
|
1692
|
+
function cn(i) {
|
|
1700
1693
|
let e = "", t;
|
|
1701
1694
|
return {
|
|
1702
1695
|
c() {
|
|
1703
|
-
t =
|
|
1696
|
+
t = ce(e);
|
|
1704
1697
|
},
|
|
1705
|
-
m(
|
|
1706
|
-
|
|
1698
|
+
m(n, o) {
|
|
1699
|
+
B(n, t, o);
|
|
1707
1700
|
},
|
|
1708
|
-
p:
|
|
1709
|
-
i:
|
|
1710
|
-
o:
|
|
1711
|
-
d(
|
|
1712
|
-
|
|
1701
|
+
p: A,
|
|
1702
|
+
i: A,
|
|
1703
|
+
o: A,
|
|
1704
|
+
d(n) {
|
|
1705
|
+
n && U(t);
|
|
1713
1706
|
}
|
|
1714
1707
|
};
|
|
1715
1708
|
}
|
|
1716
|
-
function
|
|
1717
|
-
let e, t,
|
|
1718
|
-
return t = new
|
|
1709
|
+
function dn(i) {
|
|
1710
|
+
let e, t, n, o, u, a, r, d, c, f, h;
|
|
1711
|
+
return t = new At({}), d = new It({}), {
|
|
1719
1712
|
c() {
|
|
1720
|
-
e =
|
|
1713
|
+
e = R("div"), de(t.$$.fragment), n = J(), o = R("div"), u = ce(
|
|
1721
1714
|
/*errorMessage*/
|
|
1722
1715
|
i[6]
|
|
1723
|
-
), a = J(),
|
|
1716
|
+
), a = J(), r = R("button"), de(d.$$.fragment), l(o, "class", "svelte-qnu791"), l(r, "class", "svelte-qnu791"), l(e, "class", "error svelte-qnu791");
|
|
1724
1717
|
},
|
|
1725
|
-
m(
|
|
1726
|
-
|
|
1727
|
-
|
|
1718
|
+
m(v, _) {
|
|
1719
|
+
B(v, e, _), oe(t, e, null), T(e, n), T(e, o), T(o, u), T(e, a), T(e, r), oe(d, r, null), c = !0, f || (h = V(
|
|
1720
|
+
r,
|
|
1728
1721
|
"click",
|
|
1729
1722
|
/*click_handler_3*/
|
|
1730
|
-
i[
|
|
1723
|
+
i[69]
|
|
1731
1724
|
), f = !0);
|
|
1732
1725
|
},
|
|
1733
|
-
p(
|
|
1734
|
-
(!c ||
|
|
1735
|
-
64) &&
|
|
1726
|
+
p(v, _) {
|
|
1727
|
+
(!c || _[0] & /*errorMessage*/
|
|
1728
|
+
64) && ke(
|
|
1736
1729
|
u,
|
|
1737
1730
|
/*errorMessage*/
|
|
1738
|
-
|
|
1731
|
+
v[6]
|
|
1739
1732
|
);
|
|
1740
1733
|
},
|
|
1741
|
-
i(
|
|
1742
|
-
c || (
|
|
1734
|
+
i(v) {
|
|
1735
|
+
c || (z(t.$$.fragment, v), z(d.$$.fragment, v), c = !0);
|
|
1743
1736
|
},
|
|
1744
|
-
o(
|
|
1745
|
-
|
|
1737
|
+
o(v) {
|
|
1738
|
+
Q(t.$$.fragment, v), Q(d.$$.fragment, v), c = !1;
|
|
1746
1739
|
},
|
|
1747
|
-
d(
|
|
1748
|
-
|
|
1740
|
+
d(v) {
|
|
1741
|
+
v && U(e), se(t), se(d), f = !1, h();
|
|
1749
1742
|
}
|
|
1750
1743
|
};
|
|
1751
1744
|
}
|
|
1752
|
-
function
|
|
1753
|
-
let t,
|
|
1745
|
+
function Tt(i, e) {
|
|
1746
|
+
let t, n, o;
|
|
1754
1747
|
function u() {
|
|
1755
1748
|
return (
|
|
1756
1749
|
/*mouseenter_handler*/
|
|
1757
|
-
e[
|
|
1750
|
+
e[70](
|
|
1758
1751
|
/*i*/
|
|
1759
|
-
e[
|
|
1752
|
+
e[85]
|
|
1760
1753
|
)
|
|
1761
1754
|
);
|
|
1762
1755
|
}
|
|
1763
1756
|
function a() {
|
|
1764
1757
|
return (
|
|
1765
1758
|
/*focus_handler_1*/
|
|
1766
|
-
e[
|
|
1759
|
+
e[71](
|
|
1767
1760
|
/*feature*/
|
|
1768
|
-
e[
|
|
1761
|
+
e[83]
|
|
1769
1762
|
)
|
|
1770
1763
|
);
|
|
1771
1764
|
}
|
|
1772
|
-
return
|
|
1765
|
+
return n = new qi({
|
|
1773
1766
|
props: {
|
|
1774
1767
|
feature: (
|
|
1775
1768
|
/*feature*/
|
|
1776
|
-
e[
|
|
1769
|
+
e[83]
|
|
1777
1770
|
),
|
|
1778
1771
|
showPlaceType: (
|
|
1779
1772
|
/*showPlaceType*/
|
|
@@ -1782,7 +1775,7 @@ function kt(i, e) {
|
|
|
1782
1775
|
selected: (
|
|
1783
1776
|
/*selectedItemIndex*/
|
|
1784
1777
|
e[15] === /*i*/
|
|
1785
|
-
e[
|
|
1778
|
+
e[85]
|
|
1786
1779
|
),
|
|
1787
1780
|
missingIconsCache: (
|
|
1788
1781
|
/*missingIconsCache*/
|
|
@@ -1793,103 +1786,103 @@ function kt(i, e) {
|
|
|
1793
1786
|
e[12]
|
|
1794
1787
|
)
|
|
1795
1788
|
}
|
|
1796
|
-
}),
|
|
1789
|
+
}), n.$on("mouseenter", u), n.$on("focus", a), {
|
|
1797
1790
|
key: i,
|
|
1798
1791
|
first: null,
|
|
1799
1792
|
c() {
|
|
1800
|
-
t =
|
|
1793
|
+
t = hi(), de(n.$$.fragment), this.first = t;
|
|
1801
1794
|
},
|
|
1802
|
-
m(
|
|
1803
|
-
|
|
1795
|
+
m(r, d) {
|
|
1796
|
+
B(r, t, d), oe(n, r, d), o = !0;
|
|
1804
1797
|
},
|
|
1805
|
-
p(
|
|
1806
|
-
e =
|
|
1798
|
+
p(r, d) {
|
|
1799
|
+
e = r;
|
|
1807
1800
|
const c = {};
|
|
1808
1801
|
d[0] & /*listFeatures*/
|
|
1809
1802
|
16384 && (c.feature = /*feature*/
|
|
1810
|
-
e[
|
|
1803
|
+
e[83]), d[0] & /*showPlaceType*/
|
|
1811
1804
|
1024 && (c.showPlaceType = /*showPlaceType*/
|
|
1812
1805
|
e[10]), d[0] & /*selectedItemIndex, listFeatures*/
|
|
1813
1806
|
49152 && (c.selected = /*selectedItemIndex*/
|
|
1814
1807
|
e[15] === /*i*/
|
|
1815
|
-
e[
|
|
1808
|
+
e[85]), d[0] & /*iconsBaseUrl*/
|
|
1816
1809
|
4096 && (c.iconsBaseUrl = /*iconsBaseUrl*/
|
|
1817
|
-
e[12]),
|
|
1810
|
+
e[12]), n.$set(c);
|
|
1818
1811
|
},
|
|
1819
|
-
i(
|
|
1820
|
-
o || (
|
|
1812
|
+
i(r) {
|
|
1813
|
+
o || (z(n.$$.fragment, r), o = !0);
|
|
1821
1814
|
},
|
|
1822
|
-
o(
|
|
1823
|
-
|
|
1815
|
+
o(r) {
|
|
1816
|
+
Q(n.$$.fragment, r), o = !1;
|
|
1824
1817
|
},
|
|
1825
|
-
d(
|
|
1826
|
-
|
|
1818
|
+
d(r) {
|
|
1819
|
+
r && U(t), se(n, r);
|
|
1827
1820
|
}
|
|
1828
1821
|
};
|
|
1829
1822
|
}
|
|
1830
|
-
function
|
|
1831
|
-
let e, t,
|
|
1832
|
-
u = new
|
|
1833
|
-
let
|
|
1823
|
+
function fn(i) {
|
|
1824
|
+
let e, t, n, o, u, a, r, d, c, f, h, v, _, w, W, y, E, C, O, p, G, b = !1;
|
|
1825
|
+
u = new Ki({}), h = new It({});
|
|
1826
|
+
let g = (
|
|
1834
1827
|
/*abortController*/
|
|
1835
|
-
i[19] &&
|
|
1836
|
-
),
|
|
1828
|
+
i[19] && Nt()
|
|
1829
|
+
), m = (
|
|
1837
1830
|
/*enableReverse*/
|
|
1838
|
-
i[5] === !0 &&
|
|
1831
|
+
i[5] === !0 && Mt(i)
|
|
1839
1832
|
);
|
|
1840
|
-
const
|
|
1833
|
+
const k = (
|
|
1841
1834
|
/*#slots*/
|
|
1842
|
-
i[
|
|
1843
|
-
),
|
|
1844
|
-
|
|
1835
|
+
i[60].default
|
|
1836
|
+
), H = di(
|
|
1837
|
+
k,
|
|
1845
1838
|
i,
|
|
1846
1839
|
/*$$scope*/
|
|
1847
|
-
i[
|
|
1840
|
+
i[59],
|
|
1848
1841
|
null
|
|
1849
|
-
),
|
|
1850
|
-
function
|
|
1851
|
-
var
|
|
1842
|
+
), X = [dn, cn, un, ln], Y = [];
|
|
1843
|
+
function q(L, F) {
|
|
1844
|
+
var $, ee;
|
|
1852
1845
|
return (
|
|
1853
1846
|
/*error*/
|
|
1854
1847
|
L[18] ? 0 : (
|
|
1855
1848
|
/*focusedDelayed*/
|
|
1856
1849
|
L[16] ? (
|
|
1857
1850
|
/*listFeatures*/
|
|
1858
|
-
((
|
|
1851
|
+
(($ = L[14]) == null ? void 0 : $.length) === 0 ? 2 : (
|
|
1859
1852
|
/*focusedDelayed*/
|
|
1860
1853
|
L[16] && /*listFeatures*/
|
|
1861
|
-
((
|
|
1854
|
+
((ee = L[14]) != null && ee.length) ? 3 : -1
|
|
1862
1855
|
)
|
|
1863
1856
|
) : 1
|
|
1864
1857
|
)
|
|
1865
1858
|
);
|
|
1866
1859
|
}
|
|
1867
|
-
return ~(
|
|
1860
|
+
return ~(y = q(i)) && (E = Y[y] = X[y](i)), {
|
|
1868
1861
|
c() {
|
|
1869
|
-
e = J(), t =
|
|
1870
|
-
|
|
1862
|
+
e = J(), t = R("form"), n = R("div"), o = R("button"), de(u.$$.fragment), a = J(), r = R("input"), d = J(), c = R("div"), f = R("button"), de(h.$$.fragment), v = J(), g && g.c(), _ = J(), m && m.c(), w = J(), H && H.c(), W = J(), E && E.c(), l(o, "class", "search-button svelte-qnu791"), l(o, "type", "button"), l(
|
|
1863
|
+
r,
|
|
1871
1864
|
"placeholder",
|
|
1872
1865
|
/*placeholder*/
|
|
1873
1866
|
i[8]
|
|
1874
1867
|
), l(
|
|
1875
|
-
|
|
1868
|
+
r,
|
|
1876
1869
|
"aria-label",
|
|
1877
1870
|
/*placeholder*/
|
|
1878
1871
|
i[8]
|
|
1879
|
-
), l(
|
|
1872
|
+
), l(r, "class", "svelte-qnu791"), l(f, "type", "button"), l(
|
|
1880
1873
|
f,
|
|
1881
1874
|
"title",
|
|
1882
1875
|
/*clearButtonTitle*/
|
|
1883
1876
|
i[3]
|
|
1884
|
-
), l(f, "class", "svelte-
|
|
1877
|
+
), l(f, "class", "svelte-qnu791"), l(c, "class", "clear-button-container svelte-qnu791"), ue(
|
|
1885
1878
|
c,
|
|
1886
1879
|
"displayable",
|
|
1887
1880
|
/*searchValue*/
|
|
1888
1881
|
i[1] !== ""
|
|
1889
|
-
), l(
|
|
1882
|
+
), l(n, "class", "input-group svelte-qnu791"), l(t, "tabindex", "0"), l(t, "class", C = ct(
|
|
1890
1883
|
/*className*/
|
|
1891
1884
|
i[2]
|
|
1892
|
-
) + " svelte-
|
|
1885
|
+
) + " svelte-qnu791"), ue(
|
|
1893
1886
|
t,
|
|
1894
1887
|
"can-collapse",
|
|
1895
1888
|
/*collapsed*/
|
|
@@ -1897,127 +1890,127 @@ function ur(i) {
|
|
|
1897
1890
|
i[1] === ""
|
|
1898
1891
|
);
|
|
1899
1892
|
},
|
|
1900
|
-
m(L,
|
|
1901
|
-
|
|
1902
|
-
|
|
1893
|
+
m(L, F) {
|
|
1894
|
+
B(L, e, F), B(L, t, F), T(t, n), T(n, o), oe(u, o, null), T(n, a), T(n, r), i[62](r), dt(
|
|
1895
|
+
r,
|
|
1903
1896
|
/*searchValue*/
|
|
1904
1897
|
i[1]
|
|
1905
|
-
),
|
|
1906
|
-
|
|
1898
|
+
), T(n, d), T(n, c), T(c, f), oe(h, f, null), T(c, v), g && g.m(c, null), T(n, _), m && m.m(n, null), T(n, w), H && H.m(n, null), T(t, W), ~y && Y[y].m(t, null), O = !0, p || (G = [
|
|
1899
|
+
V(
|
|
1907
1900
|
o,
|
|
1908
1901
|
"click",
|
|
1909
1902
|
/*click_handler*/
|
|
1910
|
-
i[
|
|
1903
|
+
i[61]
|
|
1911
1904
|
),
|
|
1912
|
-
|
|
1913
|
-
|
|
1905
|
+
V(
|
|
1906
|
+
r,
|
|
1914
1907
|
"input",
|
|
1915
1908
|
/*input_1_input_handler*/
|
|
1916
|
-
i[
|
|
1909
|
+
i[63]
|
|
1917
1910
|
),
|
|
1918
|
-
|
|
1919
|
-
|
|
1911
|
+
V(
|
|
1912
|
+
r,
|
|
1920
1913
|
"focus",
|
|
1921
1914
|
/*focus_handler*/
|
|
1922
|
-
i[
|
|
1915
|
+
i[64]
|
|
1923
1916
|
),
|
|
1924
|
-
|
|
1925
|
-
|
|
1917
|
+
V(
|
|
1918
|
+
r,
|
|
1926
1919
|
"blur",
|
|
1927
1920
|
/*blur_handler*/
|
|
1928
|
-
i[
|
|
1921
|
+
i[65]
|
|
1929
1922
|
),
|
|
1930
|
-
|
|
1931
|
-
|
|
1923
|
+
V(
|
|
1924
|
+
r,
|
|
1932
1925
|
"keydown",
|
|
1933
1926
|
/*handleKeyDown*/
|
|
1934
1927
|
i[22]
|
|
1935
1928
|
),
|
|
1936
|
-
|
|
1937
|
-
|
|
1929
|
+
V(
|
|
1930
|
+
r,
|
|
1938
1931
|
"input",
|
|
1939
1932
|
/*input_handler*/
|
|
1940
|
-
i[
|
|
1933
|
+
i[66]
|
|
1941
1934
|
),
|
|
1942
|
-
|
|
1935
|
+
V(
|
|
1943
1936
|
f,
|
|
1944
1937
|
"click",
|
|
1945
1938
|
/*click_handler_1*/
|
|
1946
|
-
i[
|
|
1939
|
+
i[67]
|
|
1947
1940
|
),
|
|
1948
|
-
|
|
1941
|
+
V(t, "submit", bi(
|
|
1949
1942
|
/*handleOnSubmit*/
|
|
1950
1943
|
i[21]
|
|
1951
1944
|
))
|
|
1952
1945
|
], p = !0);
|
|
1953
1946
|
},
|
|
1954
|
-
p(L,
|
|
1955
|
-
(!
|
|
1947
|
+
p(L, F) {
|
|
1948
|
+
(!O || F[0] & /*placeholder*/
|
|
1956
1949
|
256) && l(
|
|
1957
|
-
|
|
1950
|
+
r,
|
|
1958
1951
|
"placeholder",
|
|
1959
1952
|
/*placeholder*/
|
|
1960
1953
|
L[8]
|
|
1961
|
-
), (!
|
|
1954
|
+
), (!O || F[0] & /*placeholder*/
|
|
1962
1955
|
256) && l(
|
|
1963
|
-
|
|
1956
|
+
r,
|
|
1964
1957
|
"aria-label",
|
|
1965
1958
|
/*placeholder*/
|
|
1966
1959
|
L[8]
|
|
1967
|
-
),
|
|
1968
|
-
2 &&
|
|
1969
|
-
L[1] &&
|
|
1970
|
-
|
|
1960
|
+
), F[0] & /*searchValue*/
|
|
1961
|
+
2 && r.value !== /*searchValue*/
|
|
1962
|
+
L[1] && dt(
|
|
1963
|
+
r,
|
|
1971
1964
|
/*searchValue*/
|
|
1972
1965
|
L[1]
|
|
1973
|
-
), (!
|
|
1966
|
+
), (!O || F[0] & /*clearButtonTitle*/
|
|
1974
1967
|
8) && l(
|
|
1975
1968
|
f,
|
|
1976
1969
|
"title",
|
|
1977
1970
|
/*clearButtonTitle*/
|
|
1978
1971
|
L[3]
|
|
1979
1972
|
), /*abortController*/
|
|
1980
|
-
L[19] ?
|
|
1981
|
-
524288 &&
|
|
1982
|
-
|
|
1983
|
-
}),
|
|
1984
|
-
2) &&
|
|
1973
|
+
L[19] ? g ? F[0] & /*abortController*/
|
|
1974
|
+
524288 && z(g, 1) : (g = Nt(), g.c(), z(g, 1), g.m(c, null)) : g && (Fe(), Q(g, 1, 1, () => {
|
|
1975
|
+
g = null;
|
|
1976
|
+
}), ze()), (!O || F[0] & /*searchValue*/
|
|
1977
|
+
2) && ue(
|
|
1985
1978
|
c,
|
|
1986
1979
|
"displayable",
|
|
1987
1980
|
/*searchValue*/
|
|
1988
1981
|
L[1] !== ""
|
|
1989
1982
|
), /*enableReverse*/
|
|
1990
|
-
L[5] === !0 ?
|
|
1991
|
-
32 &&
|
|
1992
|
-
|
|
1993
|
-
}),
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1983
|
+
L[5] === !0 ? m ? (m.p(L, F), F[0] & /*enableReverse*/
|
|
1984
|
+
32 && z(m, 1)) : (m = Mt(L), m.c(), z(m, 1), m.m(n, w)) : m && (Fe(), Q(m, 1, 1, () => {
|
|
1985
|
+
m = null;
|
|
1986
|
+
}), ze()), H && H.p && (!O || F[1] & /*$$scope*/
|
|
1987
|
+
268435456) && mi(
|
|
1988
|
+
H,
|
|
1989
|
+
k,
|
|
1997
1990
|
L,
|
|
1998
1991
|
/*$$scope*/
|
|
1999
|
-
L[
|
|
2000
|
-
|
|
2001
|
-
|
|
1992
|
+
L[59],
|
|
1993
|
+
O ? fi(
|
|
1994
|
+
k,
|
|
2002
1995
|
/*$$scope*/
|
|
2003
|
-
L[
|
|
2004
|
-
|
|
1996
|
+
L[59],
|
|
1997
|
+
F,
|
|
2005
1998
|
null
|
|
2006
|
-
) :
|
|
1999
|
+
) : gi(
|
|
2007
2000
|
/*$$scope*/
|
|
2008
|
-
L[
|
|
2001
|
+
L[59]
|
|
2009
2002
|
),
|
|
2010
2003
|
null
|
|
2011
2004
|
);
|
|
2012
|
-
let
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
}),
|
|
2016
|
-
4 &&
|
|
2005
|
+
let $ = y;
|
|
2006
|
+
y = q(L), y === $ ? ~y && Y[y].p(L, F) : (E && (Fe(), Q(Y[$], 1, 1, () => {
|
|
2007
|
+
Y[$] = null;
|
|
2008
|
+
}), ze()), ~y ? (E = Y[y], E ? E.p(L, F) : (E = Y[y] = X[y](L), E.c()), z(E, 1), E.m(t, null)) : E = null), (!O || F[0] & /*className*/
|
|
2009
|
+
4 && C !== (C = ct(
|
|
2017
2010
|
/*className*/
|
|
2018
2011
|
L[2]
|
|
2019
|
-
) + " svelte-
|
|
2020
|
-
22) &&
|
|
2012
|
+
) + " svelte-qnu791")) && l(t, "class", C), (!O || F[0] & /*className, collapsed, searchValue*/
|
|
2013
|
+
22) && ue(
|
|
2021
2014
|
t,
|
|
2022
2015
|
"can-collapse",
|
|
2023
2016
|
/*collapsed*/
|
|
@@ -2026,365 +2019,413 @@ function ur(i) {
|
|
|
2026
2019
|
);
|
|
2027
2020
|
},
|
|
2028
2021
|
i(L) {
|
|
2029
|
-
|
|
2022
|
+
O || (z(b), z(u.$$.fragment, L), z(h.$$.fragment, L), z(g), z(m), z(H, L), z(E), O = !0);
|
|
2030
2023
|
},
|
|
2031
2024
|
o(L) {
|
|
2032
|
-
|
|
2025
|
+
Q(b), Q(u.$$.fragment, L), Q(h.$$.fragment, L), Q(g), Q(m), Q(H, L), Q(E), O = !1;
|
|
2033
2026
|
},
|
|
2034
2027
|
d(L) {
|
|
2035
|
-
L && (
|
|
2028
|
+
L && (U(e), U(t)), se(u), i[62](null), se(h), g && g.d(), m && m.d(), H && H.d(L), ~y && Y[y].d(), p = !1, ae(G);
|
|
2036
2029
|
}
|
|
2037
2030
|
};
|
|
2038
2031
|
}
|
|
2039
|
-
function
|
|
2040
|
-
let
|
|
2032
|
+
function mn(i, e, t) {
|
|
2033
|
+
let n, { $$slots: o = {}, $$scope: u } = e;
|
|
2034
|
+
const a = {
|
|
2035
|
+
continental_marine: 4,
|
|
2036
|
+
country: 4,
|
|
2037
|
+
major_landform: 8,
|
|
2038
|
+
region: 5,
|
|
2039
|
+
subregion: 6,
|
|
2040
|
+
county: 7,
|
|
2041
|
+
joint_municipality: 8,
|
|
2042
|
+
joint_submunicipality: 9,
|
|
2043
|
+
municipality: 10,
|
|
2044
|
+
municipal_district: 11,
|
|
2045
|
+
locality: 12,
|
|
2046
|
+
neighbourhood: 13,
|
|
2047
|
+
place: 14,
|
|
2048
|
+
postal_code: 14,
|
|
2049
|
+
road: 16,
|
|
2050
|
+
poi: 17,
|
|
2051
|
+
address: 18,
|
|
2052
|
+
"poi.peak": 15,
|
|
2053
|
+
"poi.shop": 18,
|
|
2054
|
+
"poi.cafe": 18,
|
|
2055
|
+
"poi.restaurant": 18,
|
|
2056
|
+
"poi.aerodrome": 13
|
|
2057
|
+
};
|
|
2058
|
+
let { class: r = void 0 } = e, { apiKey: d } = e, { bbox: c = void 0 } = e, { clearButtonTitle: f = "clear" } = e, { clearOnBlur: h = !1 } = e, { collapsed: v = !1 } = e, { country: _ = void 0 } = e, { debounceSearch: w = 200 } = e, { enableReverse: W = !1 } = e, { errorMessage: y = "Something went wrong…" } = e, { filter: E = () => !0 } = e, { flyTo: C = !0 } = e, { fuzzyMatch: O = !0 } = e, { language: p = void 0 } = e, { limit: G = void 0 } = e, { mapController: b = void 0 } = e, { minLength: g = 2 } = e, { noResultsMessage: m = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = e, { placeholder: k = "Search" } = e, { proximity: H = [{ type: "server-geolocation" }] } = e, { reverseActive: X = W === "always" } = e, { reverseButtonTitle: Y = "toggle reverse geocoding" } = e, { searchValue: q = "" } = e, { showFullGeometry: L = !0 } = e, { showPlaceType: F = "ifNeeded" } = e, { showResultsWhileTyping: $ = !0 } = e, { selectFirst: ee = !0 } = e, { flyToSelected: He = !1 } = e, { markerOnSelected: We = !0 } = e, { types: fe = void 0 } = e, { excludeTypes: Oe = !1 } = e, { zoom: Le = a } = e, { maxZoom: Re = void 0 } = e, { apiUrl: qe = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: je = {} } = e, { iconsBaseUrl: rt = "https://cdn.maptiler.com/maptiler-geocoding-control/v1.4.0/icons/" } = e, { adjustUrlQuery: Pe = () => {
|
|
2041
2059
|
} } = e;
|
|
2042
|
-
function
|
|
2043
|
-
|
|
2060
|
+
function Bt() {
|
|
2061
|
+
te.focus();
|
|
2044
2062
|
}
|
|
2045
|
-
function
|
|
2046
|
-
|
|
2063
|
+
function Ft() {
|
|
2064
|
+
te.blur();
|
|
2047
2065
|
}
|
|
2048
|
-
function
|
|
2049
|
-
t(1,
|
|
2050
|
-
|
|
2066
|
+
function ot(s, I = !0, Z = !1) {
|
|
2067
|
+
t(1, q = s), I ? (t(15, D = -1), at()) : (Ke(!Z, Z), setTimeout(() => {
|
|
2068
|
+
te.focus(), te.select();
|
|
2051
2069
|
}));
|
|
2052
2070
|
}
|
|
2053
|
-
function
|
|
2054
|
-
t(14,
|
|
2071
|
+
function zt() {
|
|
2072
|
+
t(14, M = void 0), t(56, S = void 0), t(15, D = -1);
|
|
2055
2073
|
}
|
|
2056
|
-
function
|
|
2057
|
-
t(
|
|
2074
|
+
function Ht() {
|
|
2075
|
+
t(55, j = []), t(56, S = void 0);
|
|
2058
2076
|
}
|
|
2059
|
-
let
|
|
2060
|
-
const
|
|
2061
|
-
|
|
2062
|
-
|
|
2077
|
+
let _e = !1, M, j, S, st = "", te, D = -1, ie, De = [], me, ye, Ue, Ze;
|
|
2078
|
+
const qt = /* @__PURE__ */ new Set(), le = yi();
|
|
2079
|
+
_i(() => {
|
|
2080
|
+
b && (b.setEventHandler(void 0), b.indicateReverse(!1), b.setSelectedMarker(-1), b.setMarkers(void 0, void 0));
|
|
2063
2081
|
});
|
|
2064
|
-
function
|
|
2065
|
-
if (
|
|
2066
|
-
t(
|
|
2067
|
-
else if (
|
|
2068
|
-
const
|
|
2069
|
-
|
|
2070
|
-
t(
|
|
2071
|
-
}).catch((
|
|
2082
|
+
function at(s) {
|
|
2083
|
+
if (ye && (clearTimeout(ye), ye = void 0), D > -1 && M)
|
|
2084
|
+
t(56, S = M[D]), t(1, q = S.place_type[0] === "reverse" ? S.place_name : S.place_name.replace(/,.*/, "")), t(18, ie = void 0), t(55, j = void 0), t(15, D = -1);
|
|
2085
|
+
else if (q) {
|
|
2086
|
+
const I = s || !Ge(q);
|
|
2087
|
+
Qe(q, { exact: !0 }).then(() => {
|
|
2088
|
+
t(55, j = M), t(56, S = void 0), I && jt();
|
|
2089
|
+
}).catch((Z) => t(18, ie = Z));
|
|
2072
2090
|
}
|
|
2073
2091
|
}
|
|
2074
2092
|
function Ge(s) {
|
|
2075
2093
|
try {
|
|
2076
|
-
return
|
|
2094
|
+
return an(s, 6);
|
|
2077
2095
|
} catch {
|
|
2078
2096
|
return !1;
|
|
2079
2097
|
}
|
|
2080
2098
|
}
|
|
2081
|
-
async function
|
|
2082
|
-
t(18,
|
|
2083
|
-
const
|
|
2084
|
-
t(19,
|
|
2099
|
+
async function Qe(s, { byId: I = !1, exact: Z = !1 } = {}) {
|
|
2100
|
+
t(18, ie = void 0), me == null || me.abort();
|
|
2101
|
+
const x = new AbortController();
|
|
2102
|
+
t(19, me = x);
|
|
2085
2103
|
try {
|
|
2086
|
-
const
|
|
2087
|
-
if (
|
|
2088
|
-
const Ie = await
|
|
2089
|
-
Ie &&
|
|
2104
|
+
const N = Ge(s), P = new URLSearchParams();
|
|
2105
|
+
if (p !== void 0 && P.set("language", Array.isArray(p) ? p.join(",") : p ?? ""), fe && P.set("types", fe.join(",")), Oe && P.set("excludeTypes", String(Oe)), c && P.set("bbox", c.map((Ie) => Ie.toFixed(6)).join(",")), _ && P.set("country", Array.isArray(_) ? _.join(",") : _), !I && !N) {
|
|
2106
|
+
const Ie = await xi(b, H, x);
|
|
2107
|
+
Ie && P.set("proximity", Ie), (Z || !$) && P.set("autocomplete", "false"), P.set("fuzzyMatch", String(O));
|
|
2090
2108
|
}
|
|
2091
|
-
|
|
2092
|
-
const
|
|
2093
|
-
if (
|
|
2094
|
-
|
|
2109
|
+
G !== void 0 && (!N || (fe == null ? void 0 : fe.length) === 1) && P.set("limit", String(G)), P.set("key", d), Pe(P);
|
|
2110
|
+
const ne = qe + "/" + encodeURIComponent(N ? N.decimalLongitude + "," + N.decimalLatitude : s) + ".json?" + P.toString();
|
|
2111
|
+
if (ne === st) {
|
|
2112
|
+
I ? (t(14, M = void 0), t(56, S = De[0])) : t(14, M = De);
|
|
2095
2113
|
return;
|
|
2096
2114
|
}
|
|
2097
|
-
|
|
2098
|
-
const
|
|
2099
|
-
if (!
|
|
2100
|
-
throw new Error(await
|
|
2101
|
-
const
|
|
2102
|
-
|
|
2115
|
+
st = ne;
|
|
2116
|
+
const xe = await fetch(ne, { signal: x.signal, ...je });
|
|
2117
|
+
if (!xe.ok)
|
|
2118
|
+
throw new Error(await xe.text());
|
|
2119
|
+
const Je = await xe.json();
|
|
2120
|
+
le("response", { url: ne, featureCollection: Je }), I ? (t(14, M = void 0), t(56, S = Je.features[0]), De = [S]) : (t(14, M = Je.features.filter(E)), N && M.unshift({
|
|
2103
2121
|
type: "Feature",
|
|
2104
2122
|
properties: {},
|
|
2105
|
-
id: "reverse_" +
|
|
2106
|
-
text:
|
|
2107
|
-
place_name:
|
|
2123
|
+
id: "reverse_" + N.decimalLongitude + "_" + N.decimalLatitude,
|
|
2124
|
+
text: N.decimalLatitude + ", " + N.decimalLongitude,
|
|
2125
|
+
place_name: N.decimalLatitude + ", " + N.decimalLongitude,
|
|
2108
2126
|
place_type: ["reverse"],
|
|
2109
|
-
center: [
|
|
2127
|
+
center: [N.decimalLongitude, N.decimalLatitude],
|
|
2110
2128
|
bbox: [
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2129
|
+
N.decimalLongitude,
|
|
2130
|
+
N.decimalLatitude,
|
|
2131
|
+
N.decimalLongitude,
|
|
2132
|
+
N.decimalLatitude
|
|
2115
2133
|
],
|
|
2116
2134
|
geometry: {
|
|
2117
2135
|
type: "Point",
|
|
2118
|
-
coordinates: [
|
|
2136
|
+
coordinates: [N.decimalLongitude, N.decimalLatitude]
|
|
2119
2137
|
}
|
|
2120
|
-
}),
|
|
2121
|
-
} catch (
|
|
2122
|
-
if (
|
|
2138
|
+
}), De = M, N && te.focus());
|
|
2139
|
+
} catch (N) {
|
|
2140
|
+
if (N && typeof N == "object" && "name" in N && N.name === "AbortError")
|
|
2123
2141
|
return;
|
|
2124
|
-
throw
|
|
2142
|
+
throw N;
|
|
2125
2143
|
} finally {
|
|
2126
|
-
|
|
2144
|
+
x === me && t(19, me = void 0);
|
|
2127
2145
|
}
|
|
2128
2146
|
}
|
|
2129
|
-
function
|
|
2130
|
-
var
|
|
2131
|
-
if (!(j != null && j.length) || !
|
|
2147
|
+
function jt() {
|
|
2148
|
+
var x;
|
|
2149
|
+
if (!(j != null && j.length) || !C)
|
|
2132
2150
|
return;
|
|
2133
|
-
const s = [180, 90, -180, -90],
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2151
|
+
const s = [180, 90, -180, -90], I = !j.some((N) => !N.matching_text);
|
|
2152
|
+
let Z;
|
|
2153
|
+
for (const N of j) {
|
|
2154
|
+
const P = pe(N);
|
|
2155
|
+
if (Z = Re ?? (Z === void 0 ? P : P === void 0 ? Z : Math.max(Z, P)), I || !N.matching_text)
|
|
2156
|
+
for (const ne of [0, 1, 2, 3])
|
|
2157
|
+
s[ne] = Math[ne < 2 ? "min" : "max"](s[ne], ((x = N.bbox) == null ? void 0 : x[ne]) ?? N.center[ne % 2]);
|
|
2158
|
+
}
|
|
2159
|
+
b && j.length > 0 && (S && s[0] === s[2] && s[1] === s[3] ? b.flyTo(S.center, pe(S)) : b.fitBounds(bt(s), 50, Z));
|
|
2160
|
+
}
|
|
2161
|
+
function pe(s) {
|
|
2162
|
+
var Z;
|
|
2163
|
+
if (!s.bbox || s.bbox[0] !== s.bbox[2] && s.bbox[1] !== s.bbox[3])
|
|
2164
|
+
return;
|
|
2165
|
+
if (typeof Le == "number")
|
|
2166
|
+
return s.id.startsWith("poi.") || s.id.startsWith("address.") ? Re : Le;
|
|
2167
|
+
const I = s.id.replace(/\..*/, "");
|
|
2168
|
+
return (Array.isArray((Z = s.properties) == null ? void 0 : Z.categories) ? s.properties.categories.reduce(
|
|
2169
|
+
(x, N) => {
|
|
2170
|
+
const P = Le[I + "." + N];
|
|
2171
|
+
return x === void 0 ? P : P === void 0 ? x : Math.max(x, P);
|
|
2172
|
+
},
|
|
2173
|
+
void 0
|
|
2174
|
+
) : void 0) ?? Le[I];
|
|
2139
2175
|
}
|
|
2140
2176
|
function Pt(s) {
|
|
2141
|
-
t(0,
|
|
2177
|
+
t(0, X = W === "always"), t(14, M = void 0), t(56, S = void 0), t(15, D = -1), ot(s[1].toFixed(6) + ", " + Vi(s[0], [-180, 180], !0).toFixed(6), !1, !0);
|
|
2142
2178
|
}
|
|
2143
|
-
function
|
|
2144
|
-
if (!
|
|
2179
|
+
function Zt(s) {
|
|
2180
|
+
if (!M)
|
|
2145
2181
|
return;
|
|
2146
|
-
let
|
|
2147
|
-
|
|
2182
|
+
let I = s.key === "ArrowDown" ? 1 : s.key === "ArrowUp" ? -1 : 0;
|
|
2183
|
+
I && (D === (ee ? 0 : -1) && I === -1 && t(15, D = M.length), t(15, D += I), D >= M.length && t(15, D = -1), D < 0 && ee && t(15, D = 0), s.preventDefault());
|
|
2148
2184
|
}
|
|
2149
|
-
function
|
|
2150
|
-
if (t(18,
|
|
2151
|
-
if (
|
|
2185
|
+
function Ke(s = !0, I = !1) {
|
|
2186
|
+
if (t(18, ie = void 0), $ || I) {
|
|
2187
|
+
if (ye && clearTimeout(ye), q.length < g)
|
|
2152
2188
|
return;
|
|
2153
|
-
const
|
|
2154
|
-
|
|
2189
|
+
const Z = q;
|
|
2190
|
+
ye = window.setTimeout(
|
|
2155
2191
|
() => {
|
|
2156
|
-
|
|
2192
|
+
Qe(Z).catch((x) => t(18, ie = x));
|
|
2157
2193
|
},
|
|
2158
2194
|
s ? w : 0
|
|
2159
2195
|
);
|
|
2160
2196
|
} else
|
|
2161
|
-
t(14,
|
|
2197
|
+
t(14, M = void 0), t(18, ie = void 0);
|
|
2162
2198
|
}
|
|
2163
|
-
function
|
|
2164
|
-
t(
|
|
2199
|
+
function Ve(s) {
|
|
2200
|
+
t(56, S = s), t(1, q = s.place_name), t(15, D = -1);
|
|
2165
2201
|
}
|
|
2166
|
-
const Gt = () =>
|
|
2167
|
-
function
|
|
2168
|
-
|
|
2169
|
-
|
|
2202
|
+
const Gt = () => te.focus();
|
|
2203
|
+
function Qt(s) {
|
|
2204
|
+
et[s ? "unshift" : "push"](() => {
|
|
2205
|
+
te = s, t(17, te);
|
|
2170
2206
|
});
|
|
2171
2207
|
}
|
|
2172
|
-
function
|
|
2173
|
-
|
|
2208
|
+
function Kt() {
|
|
2209
|
+
q = this.value, t(1, q), t(13, _e), t(28, h);
|
|
2174
2210
|
}
|
|
2175
|
-
const
|
|
2176
|
-
t(1,
|
|
2177
|
-
},
|
|
2178
|
-
|
|
2179
|
-
},
|
|
2211
|
+
const Vt = () => t(13, _e = !0), xt = () => t(13, _e = !1), Jt = () => Ke(), Xt = () => {
|
|
2212
|
+
t(1, q = ""), te.focus();
|
|
2213
|
+
}, Yt = () => t(0, X = !X), $t = () => t(18, ie = void 0), ei = (s) => t(15, D = s), ti = (s) => Ve(s), ii = () => {
|
|
2214
|
+
ee || t(15, D = -1);
|
|
2215
|
+
}, ni = () => {
|
|
2180
2216
|
};
|
|
2181
2217
|
return i.$$set = (s) => {
|
|
2182
|
-
"class" in s && t(2,
|
|
2218
|
+
"class" in s && t(2, r = s.class), "apiKey" in s && t(26, d = s.apiKey), "bbox" in s && t(27, c = s.bbox), "clearButtonTitle" in s && t(3, f = s.clearButtonTitle), "clearOnBlur" in s && t(28, h = s.clearOnBlur), "collapsed" in s && t(4, v = s.collapsed), "country" in s && t(29, _ = s.country), "debounceSearch" in s && t(30, w = s.debounceSearch), "enableReverse" in s && t(5, W = s.enableReverse), "errorMessage" in s && t(6, y = s.errorMessage), "filter" in s && t(31, E = s.filter), "flyTo" in s && t(32, C = s.flyTo), "fuzzyMatch" in s && t(33, O = s.fuzzyMatch), "language" in s && t(34, p = s.language), "limit" in s && t(35, G = s.limit), "mapController" in s && t(36, b = s.mapController), "minLength" in s && t(37, g = s.minLength), "noResultsMessage" in s && t(7, m = s.noResultsMessage), "placeholder" in s && t(8, k = s.placeholder), "proximity" in s && t(38, H = s.proximity), "reverseActive" in s && t(0, X = s.reverseActive), "reverseButtonTitle" in s && t(9, Y = s.reverseButtonTitle), "searchValue" in s && t(1, q = s.searchValue), "showFullGeometry" in s && t(39, L = s.showFullGeometry), "showPlaceType" in s && t(10, F = s.showPlaceType), "showResultsWhileTyping" in s && t(40, $ = s.showResultsWhileTyping), "selectFirst" in s && t(11, ee = s.selectFirst), "flyToSelected" in s && t(41, He = s.flyToSelected), "markerOnSelected" in s && t(42, We = s.markerOnSelected), "types" in s && t(43, fe = s.types), "excludeTypes" in s && t(44, Oe = s.excludeTypes), "zoom" in s && t(45, Le = s.zoom), "maxZoom" in s && t(46, Re = s.maxZoom), "apiUrl" in s && t(47, qe = s.apiUrl), "fetchParameters" in s && t(48, je = s.fetchParameters), "iconsBaseUrl" in s && t(12, rt = s.iconsBaseUrl), "adjustUrlQuery" in s && t(49, Pe = s.adjustUrlQuery), "$$scope" in s && t(59, u = s.$$scope);
|
|
2183
2219
|
}, i.$$.update = () => {
|
|
2184
2220
|
if (i.$$.dirty[0] & /*enableReverse*/
|
|
2185
|
-
32 && t(0,
|
|
2186
|
-
|
|
2187
|
-
t(16,
|
|
2221
|
+
32 && t(0, X = W === "always"), i.$$.dirty[0] & /*focused, clearOnBlur*/
|
|
2222
|
+
268443648 && setTimeout(() => {
|
|
2223
|
+
t(16, Ue = _e), h && !_e && t(1, q = "");
|
|
2188
2224
|
}), i.$$.dirty[0] & /*searchValue, listFeatures*/
|
|
2189
2225
|
16386 | i.$$.dirty[1] & /*minLength*/
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
18432 &&
|
|
2194
|
-
2050 && (
|
|
2226
|
+
64 && q.length < g && (t(56, S = void 0), t(14, M = void 0), t(18, ie = void 0), t(55, j = M)), i.$$.dirty[1] & /*showFullGeometry, picked*/
|
|
2227
|
+
33554688 && L && S && !S.address && S.geometry.type === "Point" && S.place_type[0] !== "reverse" && Qe(S.id, { byId: !0 }).catch((s) => t(18, ie = s)), i.$$.dirty[1] & /*mapController, picked, prevIdToFly, flyTo*/
|
|
2228
|
+
100663330 && (b && S && S.id !== Ze && C && (!S.bbox || S.bbox[0] === S.bbox[2] && S.bbox[1] === S.bbox[3] ? b.flyTo(S.center, pe(S)) : b.fitBounds(bt(S.bbox), 50, pe(S)), t(14, M = void 0), t(55, j = void 0), t(15, D = -1)), t(57, Ze = S == null ? void 0 : S.id)), i.$$.dirty[0] & /*selectFirst, listFeatures*/
|
|
2229
|
+
18432 && ee && M != null && M.length && t(15, D = 0), i.$$.dirty[0] & /*selectFirst, searchValue*/
|
|
2230
|
+
2050 && (ee || t(15, D = -1)), i.$$.dirty[0] & /*listFeatures*/
|
|
2195
2231
|
16384 | i.$$.dirty[1] & /*markedFeatures*/
|
|
2196
|
-
|
|
2232
|
+
16777216 && j !== M && t(55, j = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
|
|
2197
2233
|
81921 | i.$$.dirty[1] & /*mapController, markedFeatures*/
|
|
2198
|
-
|
|
2234
|
+
16777248 && b && b.setEventHandler((s) => {
|
|
2199
2235
|
switch (s.type) {
|
|
2200
2236
|
case "mapClick":
|
|
2201
|
-
|
|
2237
|
+
X && Pt(s.coordinates);
|
|
2202
2238
|
break;
|
|
2203
2239
|
case "markerClick":
|
|
2204
2240
|
{
|
|
2205
|
-
const
|
|
2206
|
-
|
|
2241
|
+
const I = M == null ? void 0 : M.find((Z) => Z.id === s.id);
|
|
2242
|
+
I && Ve(I);
|
|
2207
2243
|
}
|
|
2208
2244
|
break;
|
|
2209
2245
|
case "markerMouseEnter":
|
|
2210
|
-
j && t(15,
|
|
2246
|
+
j && t(15, D = Ue ? (M == null ? void 0 : M.findIndex((I) => I.id === s.id)) ?? -1 : -1);
|
|
2211
2247
|
break;
|
|
2212
2248
|
case "markerMouseLeave":
|
|
2213
|
-
j && t(15,
|
|
2249
|
+
j && t(15, D = -1);
|
|
2214
2250
|
break;
|
|
2215
2251
|
}
|
|
2216
2252
|
}), i.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
|
|
2217
|
-
49152 && t(
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2253
|
+
49152 && t(58, n = M == null ? void 0 : M[D]), i.$$.dirty[1] & /*mapController, selected, flyTo, flyToSelected*/
|
|
2254
|
+
134218786 && b && n && C && He && b.flyTo(n.center, pe(n)), i.$$.dirty[1] & /*markerOnSelected, mapController*/
|
|
2255
|
+
2080 && (We || b == null || b.setMarkers(void 0, void 0)), i.$$.dirty[1] & /*mapController, markerOnSelected, markedFeatures, selected*/
|
|
2256
|
+
150997024 && b && We && !j && (b.setMarkers(n ? [n] : void 0, void 0), b.setSelectedMarker(n ? 0 : -1)), i.$$.dirty[1] & /*mapController, markedFeatures, picked*/
|
|
2257
|
+
50331680 && b && b.setMarkers(j, S), i.$$.dirty[0] & /*selectedItemIndex*/
|
|
2222
2258
|
32768 | i.$$.dirty[1] & /*markedFeatures, mapController*/
|
|
2223
|
-
|
|
2259
|
+
16777248 && j && b && b.setSelectedMarker(D), i.$$.dirty[0] & /*searchValue*/
|
|
2224
2260
|
2 | i.$$.dirty[1] & /*mapController*/
|
|
2225
|
-
|
|
2226
|
-
const s = Ge(
|
|
2227
|
-
|
|
2261
|
+
32 && b) {
|
|
2262
|
+
const s = Ge(q);
|
|
2263
|
+
b.setReverseMarker(s ? [s.decimalLongitude, s.decimalLatitude] : void 0);
|
|
2228
2264
|
}
|
|
2229
2265
|
i.$$.dirty[1] & /*selected*/
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
81920 &&
|
|
2233
|
-
16384 &&
|
|
2234
|
-
|
|
2235
|
-
1 &&
|
|
2236
|
-
2 &&
|
|
2266
|
+
134217728 && le("select", n), i.$$.dirty[1] & /*picked*/
|
|
2267
|
+
33554432 && le("pick", S), i.$$.dirty[0] & /*focusedDelayed, listFeatures*/
|
|
2268
|
+
81920 && le("optionsVisibilityChange", Ue && !!M), i.$$.dirty[0] & /*listFeatures*/
|
|
2269
|
+
16384 && le("featuresListed", M), i.$$.dirty[1] & /*markedFeatures*/
|
|
2270
|
+
16777216 && le("featuresMarked", j), i.$$.dirty[0] & /*reverseActive*/
|
|
2271
|
+
1 && le("reverseToggle", X), i.$$.dirty[0] & /*searchValue*/
|
|
2272
|
+
2 && le("queryChange", q), i.$$.dirty[0] & /*reverseActive*/
|
|
2237
2273
|
1 | i.$$.dirty[1] & /*mapController*/
|
|
2238
|
-
|
|
2274
|
+
32 && b && b.indicateReverse(X);
|
|
2239
2275
|
}, [
|
|
2276
|
+
X,
|
|
2277
|
+
q,
|
|
2278
|
+
r,
|
|
2279
|
+
f,
|
|
2280
|
+
v,
|
|
2281
|
+
W,
|
|
2240
2282
|
y,
|
|
2241
|
-
|
|
2283
|
+
m,
|
|
2284
|
+
k,
|
|
2285
|
+
Y,
|
|
2286
|
+
F,
|
|
2287
|
+
ee,
|
|
2288
|
+
rt,
|
|
2289
|
+
_e,
|
|
2290
|
+
M,
|
|
2291
|
+
D,
|
|
2292
|
+
Ue,
|
|
2293
|
+
te,
|
|
2294
|
+
ie,
|
|
2295
|
+
me,
|
|
2296
|
+
qt,
|
|
2297
|
+
at,
|
|
2298
|
+
Zt,
|
|
2299
|
+
Ke,
|
|
2300
|
+
Ve,
|
|
2242
2301
|
a,
|
|
2302
|
+
d,
|
|
2243
2303
|
c,
|
|
2244
|
-
|
|
2304
|
+
h,
|
|
2245
2305
|
_,
|
|
2246
|
-
U,
|
|
2247
|
-
v,
|
|
2248
|
-
N,
|
|
2249
|
-
x,
|
|
2250
|
-
L,
|
|
2251
|
-
K,
|
|
2252
|
-
it,
|
|
2253
|
-
Le,
|
|
2254
|
-
T,
|
|
2255
|
-
z,
|
|
2256
|
-
De,
|
|
2257
|
-
$,
|
|
2258
|
-
ee,
|
|
2259
|
-
ce,
|
|
2260
|
-
Ft,
|
|
2261
|
-
ot,
|
|
2262
|
-
jt,
|
|
2263
|
-
qe,
|
|
2264
|
-
Qe,
|
|
2265
|
-
n,
|
|
2266
|
-
d,
|
|
2267
|
-
f,
|
|
2268
|
-
m,
|
|
2269
2306
|
w,
|
|
2270
2307
|
E,
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
W,
|
|
2308
|
+
C,
|
|
2309
|
+
O,
|
|
2274
2310
|
p,
|
|
2275
|
-
|
|
2276
|
-
|
|
2311
|
+
G,
|
|
2312
|
+
b,
|
|
2277
2313
|
g,
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
Ce,
|
|
2282
|
-
ue,
|
|
2283
|
-
We,
|
|
2284
|
-
Se,
|
|
2285
|
-
ve,
|
|
2286
|
-
Fe,
|
|
2314
|
+
H,
|
|
2315
|
+
L,
|
|
2316
|
+
$,
|
|
2287
2317
|
He,
|
|
2318
|
+
We,
|
|
2319
|
+
fe,
|
|
2320
|
+
Oe,
|
|
2321
|
+
Le,
|
|
2322
|
+
Re,
|
|
2323
|
+
qe,
|
|
2324
|
+
je,
|
|
2288
2325
|
Pe,
|
|
2289
|
-
Ut,
|
|
2290
|
-
zt,
|
|
2291
|
-
rt,
|
|
2292
|
-
At,
|
|
2293
2326
|
Bt,
|
|
2327
|
+
Ft,
|
|
2328
|
+
ot,
|
|
2329
|
+
zt,
|
|
2330
|
+
Ht,
|
|
2294
2331
|
j,
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2332
|
+
S,
|
|
2333
|
+
Ze,
|
|
2334
|
+
n,
|
|
2298
2335
|
u,
|
|
2299
2336
|
o,
|
|
2300
2337
|
Gt,
|
|
2301
|
-
Zt,
|
|
2302
|
-
qt,
|
|
2303
2338
|
Qt,
|
|
2304
2339
|
Kt,
|
|
2305
2340
|
Vt,
|
|
2341
|
+
xt,
|
|
2306
2342
|
Jt,
|
|
2307
2343
|
Xt,
|
|
2308
2344
|
Yt,
|
|
2309
|
-
xt,
|
|
2310
2345
|
$t,
|
|
2311
2346
|
ei,
|
|
2312
|
-
ti
|
|
2347
|
+
ti,
|
|
2348
|
+
ii,
|
|
2349
|
+
ni
|
|
2313
2350
|
];
|
|
2314
2351
|
}
|
|
2315
|
-
class
|
|
2352
|
+
class gn extends ve {
|
|
2316
2353
|
constructor(e) {
|
|
2317
|
-
super(),
|
|
2354
|
+
super(), be(
|
|
2318
2355
|
this,
|
|
2319
2356
|
e,
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2357
|
+
mn,
|
|
2358
|
+
fn,
|
|
2359
|
+
he,
|
|
2323
2360
|
{
|
|
2361
|
+
ZOOM_DEFAULTS: 25,
|
|
2324
2362
|
class: 2,
|
|
2325
|
-
apiKey:
|
|
2326
|
-
bbox:
|
|
2363
|
+
apiKey: 26,
|
|
2364
|
+
bbox: 27,
|
|
2327
2365
|
clearButtonTitle: 3,
|
|
2328
|
-
clearOnBlur:
|
|
2366
|
+
clearOnBlur: 28,
|
|
2329
2367
|
collapsed: 4,
|
|
2330
|
-
country:
|
|
2331
|
-
debounceSearch:
|
|
2368
|
+
country: 29,
|
|
2369
|
+
debounceSearch: 30,
|
|
2332
2370
|
enableReverse: 5,
|
|
2333
2371
|
errorMessage: 6,
|
|
2334
|
-
filter:
|
|
2335
|
-
flyTo:
|
|
2336
|
-
fuzzyMatch:
|
|
2337
|
-
language:
|
|
2338
|
-
limit:
|
|
2339
|
-
mapController:
|
|
2340
|
-
minLength:
|
|
2372
|
+
filter: 31,
|
|
2373
|
+
flyTo: 32,
|
|
2374
|
+
fuzzyMatch: 33,
|
|
2375
|
+
language: 34,
|
|
2376
|
+
limit: 35,
|
|
2377
|
+
mapController: 36,
|
|
2378
|
+
minLength: 37,
|
|
2341
2379
|
noResultsMessage: 7,
|
|
2342
2380
|
placeholder: 8,
|
|
2343
|
-
proximity:
|
|
2381
|
+
proximity: 38,
|
|
2344
2382
|
reverseActive: 0,
|
|
2345
2383
|
reverseButtonTitle: 9,
|
|
2346
2384
|
searchValue: 1,
|
|
2347
|
-
showFullGeometry:
|
|
2385
|
+
showFullGeometry: 39,
|
|
2348
2386
|
showPlaceType: 10,
|
|
2349
|
-
showResultsWhileTyping:
|
|
2387
|
+
showResultsWhileTyping: 40,
|
|
2350
2388
|
selectFirst: 11,
|
|
2351
|
-
flyToSelected:
|
|
2352
|
-
markerOnSelected:
|
|
2353
|
-
types:
|
|
2354
|
-
excludeTypes:
|
|
2355
|
-
zoom:
|
|
2356
|
-
maxZoom:
|
|
2357
|
-
apiUrl:
|
|
2358
|
-
fetchParameters:
|
|
2389
|
+
flyToSelected: 41,
|
|
2390
|
+
markerOnSelected: 42,
|
|
2391
|
+
types: 43,
|
|
2392
|
+
excludeTypes: 44,
|
|
2393
|
+
zoom: 45,
|
|
2394
|
+
maxZoom: 46,
|
|
2395
|
+
apiUrl: 47,
|
|
2396
|
+
fetchParameters: 48,
|
|
2359
2397
|
iconsBaseUrl: 12,
|
|
2360
|
-
adjustUrlQuery:
|
|
2361
|
-
focus:
|
|
2362
|
-
blur:
|
|
2363
|
-
setQuery:
|
|
2364
|
-
clearList:
|
|
2365
|
-
clearMap:
|
|
2398
|
+
adjustUrlQuery: 49,
|
|
2399
|
+
focus: 50,
|
|
2400
|
+
blur: 51,
|
|
2401
|
+
setQuery: 52,
|
|
2402
|
+
clearList: 53,
|
|
2403
|
+
clearMap: 54
|
|
2366
2404
|
},
|
|
2367
2405
|
null,
|
|
2368
2406
|
[-1, -1, -1]
|
|
2369
2407
|
);
|
|
2370
2408
|
}
|
|
2409
|
+
get ZOOM_DEFAULTS() {
|
|
2410
|
+
return this.$$.ctx[25];
|
|
2411
|
+
}
|
|
2371
2412
|
get focus() {
|
|
2372
|
-
return this.$$.ctx[
|
|
2413
|
+
return this.$$.ctx[50];
|
|
2373
2414
|
}
|
|
2374
2415
|
get blur() {
|
|
2375
|
-
return this.$$.ctx[
|
|
2416
|
+
return this.$$.ctx[51];
|
|
2376
2417
|
}
|
|
2377
2418
|
get setQuery() {
|
|
2378
|
-
return this.$$.ctx[
|
|
2419
|
+
return this.$$.ctx[52];
|
|
2379
2420
|
}
|
|
2380
2421
|
get clearList() {
|
|
2381
|
-
return this.$$.ctx[
|
|
2422
|
+
return this.$$.ctx[53];
|
|
2382
2423
|
}
|
|
2383
2424
|
get clearMap() {
|
|
2384
|
-
return this.$$.ctx[
|
|
2425
|
+
return this.$$.ctx[54];
|
|
2385
2426
|
}
|
|
2386
2427
|
}
|
|
2387
|
-
const
|
|
2428
|
+
const kt = [
|
|
2388
2429
|
"featuresListed",
|
|
2389
2430
|
"featuresMarked",
|
|
2390
2431
|
"optionsVisibilityChange",
|
|
@@ -2393,7 +2434,7 @@ const Nt = [
|
|
|
2393
2434
|
"response",
|
|
2394
2435
|
"reverseToggle",
|
|
2395
2436
|
"select"
|
|
2396
|
-
],
|
|
2437
|
+
], hn = [
|
|
2397
2438
|
"apiKey",
|
|
2398
2439
|
"bbox",
|
|
2399
2440
|
"clearButtonTitle",
|
|
@@ -2422,42 +2463,42 @@ const Nt = [
|
|
|
2422
2463
|
"zoom",
|
|
2423
2464
|
"mapController"
|
|
2424
2465
|
];
|
|
2425
|
-
function
|
|
2466
|
+
function Ct(i) {
|
|
2426
2467
|
return "on" + i[0].toUpperCase() + i.slice(1);
|
|
2427
2468
|
}
|
|
2428
|
-
const
|
|
2429
|
-
const
|
|
2430
|
-
for (const a of
|
|
2431
|
-
delete u[
|
|
2432
|
-
|
|
2433
|
-
if (!
|
|
2469
|
+
const Ln = si(function(e, t) {
|
|
2470
|
+
const n = lt(), o = lt(), u = { ...e };
|
|
2471
|
+
for (const a of kt)
|
|
2472
|
+
delete u[Ct(a)];
|
|
2473
|
+
Ye(() => {
|
|
2474
|
+
if (!n.current)
|
|
2434
2475
|
throw new Error();
|
|
2435
|
-
const a = new
|
|
2436
|
-
target:
|
|
2476
|
+
const a = new gn({
|
|
2477
|
+
target: n.current,
|
|
2437
2478
|
props: u
|
|
2438
2479
|
});
|
|
2439
2480
|
return o.current = a, () => a.$destroy();
|
|
2440
2481
|
}, []);
|
|
2441
|
-
for (const a of
|
|
2442
|
-
|
|
2482
|
+
for (const a of hn)
|
|
2483
|
+
Ye(() => {
|
|
2443
2484
|
o.current && e[a] !== void 0 && o.current.$set({ [a]: e[a] });
|
|
2444
2485
|
}, [e[a]]);
|
|
2445
|
-
for (const a of
|
|
2446
|
-
const
|
|
2447
|
-
|
|
2486
|
+
for (const a of kt) {
|
|
2487
|
+
const r = e[Ct(a)];
|
|
2488
|
+
Ye(
|
|
2448
2489
|
() => {
|
|
2449
2490
|
var d;
|
|
2450
|
-
return
|
|
2451
|
-
|
|
2491
|
+
return r && ((d = o.current) == null ? void 0 : d.$on(a, (c) => {
|
|
2492
|
+
r(c.detail);
|
|
2452
2493
|
}));
|
|
2453
2494
|
},
|
|
2454
|
-
[
|
|
2495
|
+
[r]
|
|
2455
2496
|
);
|
|
2456
2497
|
}
|
|
2457
|
-
return
|
|
2458
|
-
setQuery: (a,
|
|
2498
|
+
return ai(t, () => ({
|
|
2499
|
+
setQuery: (a, r = !0) => {
|
|
2459
2500
|
var d;
|
|
2460
|
-
return (d = o.current) == null ? void 0 : d.setQuery(a,
|
|
2501
|
+
return (d = o.current) == null ? void 0 : d.setQuery(a, r);
|
|
2461
2502
|
},
|
|
2462
2503
|
clearMap: () => {
|
|
2463
2504
|
var a;
|
|
@@ -2475,9 +2516,9 @@ const hr = ni(function(e, t) {
|
|
|
2475
2516
|
var a;
|
|
2476
2517
|
return (a = o.current) == null ? void 0 : a.blur();
|
|
2477
2518
|
}
|
|
2478
|
-
})),
|
|
2519
|
+
})), li("div", { ref: n });
|
|
2479
2520
|
});
|
|
2480
2521
|
export {
|
|
2481
|
-
|
|
2522
|
+
Ln as GeocodingControl
|
|
2482
2523
|
};
|
|
2483
2524
|
//# sourceMappingURL=react.js.map
|