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