@maptiler/geocoding-control 0.0.91 → 0.0.92
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/FeatureItem.svelte +8 -7
- package/FeatureItem.svelte.d.ts +1 -0
- package/GeocodingControl.svelte +2 -0
- package/GeocodingControl.svelte.d.ts +1 -0
- package/README.md +3 -0
- package/leaflet.js +2519 -2492
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +5 -5
- package/leaflet.umd.js.map +1 -1
- package/maplibregl.js +2603 -2576
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +5 -5
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.js +2602 -2575
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +5 -5
- package/maptilersdk.umd.js.map +1 -1
- package/package.json +4 -4
- package/react.js +612 -585
- package/react.js.map +1 -1
- package/react.umd.js +1 -1
- package/react.umd.js.map +1 -1
- package/types.d.ts +7 -1
package/react.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { forwardRef as jt, useRef as
|
|
2
|
-
function
|
|
1
|
+
import { forwardRef as jt, useRef as xe, useEffect as Ze, useImperativeHandle as Ft, createElement as Gt } from "react";
|
|
2
|
+
function S() {
|
|
3
3
|
}
|
|
4
4
|
function Ot(n, e) {
|
|
5
5
|
for (const t in e)
|
|
6
6
|
n[t] = e[t];
|
|
7
7
|
return n;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function dt(n) {
|
|
10
10
|
return n();
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function $e() {
|
|
13
13
|
return /* @__PURE__ */ Object.create(null);
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
n.forEach(
|
|
15
|
+
function te(n) {
|
|
16
|
+
n.forEach(dt);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function ht(n) {
|
|
19
19
|
return typeof n == "function";
|
|
20
20
|
}
|
|
21
21
|
function he(n, e) {
|
|
22
22
|
return n != n ? e == e : n !== e || n && typeof n == "object" || typeof n == "function";
|
|
23
23
|
}
|
|
24
|
-
let
|
|
25
|
-
function
|
|
26
|
-
return
|
|
24
|
+
let Ie;
|
|
25
|
+
function K(n, e) {
|
|
26
|
+
return Ie || (Ie = document.createElement("a")), Ie.href = e, n === Ie.href;
|
|
27
27
|
}
|
|
28
28
|
function Zt(n) {
|
|
29
29
|
return Object.keys(n).length === 0;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function qt(n, e, t, r) {
|
|
32
32
|
if (n) {
|
|
33
|
-
const l =
|
|
33
|
+
const l = mt(n, e, t, r);
|
|
34
34
|
return n[0](l);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function mt(n, e, t, r) {
|
|
38
38
|
return n[1] && r ? Ot(t.ctx.slice(), n[1](r(e))) : t.ctx;
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function Dt(n, e, t, r) {
|
|
41
41
|
if (n[2] && r) {
|
|
42
42
|
const l = n[2](r(t));
|
|
43
43
|
if (e.dirty === void 0)
|
|
@@ -52,13 +52,13 @@ function qt(n, e, t, r) {
|
|
|
52
52
|
}
|
|
53
53
|
return e.dirty;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Kt(n, e, t, r, l, a) {
|
|
56
56
|
if (l) {
|
|
57
|
-
const s =
|
|
57
|
+
const s = mt(e, t, r, a);
|
|
58
58
|
n.p(s, l);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function Vt(n) {
|
|
62
62
|
if (n.ctx.length > 32) {
|
|
63
63
|
const e = [], t = n.ctx.length / 32;
|
|
64
64
|
for (let r = 0; r < t; r++)
|
|
@@ -67,19 +67,19 @@ function Kt(n) {
|
|
|
67
67
|
}
|
|
68
68
|
return -1;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function et(n) {
|
|
71
71
|
return n ?? "";
|
|
72
72
|
}
|
|
73
73
|
function v(n, e) {
|
|
74
74
|
n.appendChild(e);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function U(n, e, t) {
|
|
77
77
|
n.insertBefore(e, t || null);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function z(n) {
|
|
80
80
|
n.parentNode && n.parentNode.removeChild(n);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function E(n) {
|
|
83
83
|
return document.createElement(n);
|
|
84
84
|
}
|
|
85
85
|
function ie(n) {
|
|
@@ -88,16 +88,16 @@ function ie(n) {
|
|
|
88
88
|
function se(n) {
|
|
89
89
|
return document.createTextNode(n);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function H() {
|
|
92
92
|
return se(" ");
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function Ht() {
|
|
95
95
|
return se("");
|
|
96
96
|
}
|
|
97
97
|
function D(n, e, t, r) {
|
|
98
98
|
return n.addEventListener(e, t, r), () => n.removeEventListener(e, t, r);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function Qt(n) {
|
|
101
101
|
return function(e) {
|
|
102
102
|
return e.preventDefault(), n.call(this, e);
|
|
103
103
|
};
|
|
@@ -105,19 +105,19 @@ function Ht(n) {
|
|
|
105
105
|
function o(n, e, t) {
|
|
106
106
|
t == null ? n.removeAttribute(e) : n.getAttribute(e) !== t && n.setAttribute(e, t);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function Jt(n) {
|
|
109
109
|
return Array.from(n.childNodes);
|
|
110
110
|
}
|
|
111
111
|
function Me(n, e) {
|
|
112
112
|
e = "" + e, n.data !== e && (n.data = e);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function tt(n, e) {
|
|
115
115
|
n.value = e ?? "";
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function le(n, e, t) {
|
|
118
118
|
n.classList[t ? "add" : "remove"](e);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Xt(n, e, { bubbles: t = !1, cancelable: r = !1 } = {}) {
|
|
121
121
|
const l = document.createEvent("CustomEvent");
|
|
122
122
|
return l.initCustomEvent(n, t, r, e), l;
|
|
123
123
|
}
|
|
@@ -125,20 +125,20 @@ let Ce;
|
|
|
125
125
|
function Te(n) {
|
|
126
126
|
Ce = n;
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function _t() {
|
|
129
129
|
if (!Ce)
|
|
130
130
|
throw new Error("Function called outside component initialization");
|
|
131
131
|
return Ce;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
|
|
133
|
+
function Yt(n) {
|
|
134
|
+
_t().$$.on_destroy.push(n);
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
const n =
|
|
136
|
+
function xt() {
|
|
137
|
+
const n = _t();
|
|
138
138
|
return (e, t, { cancelable: r = !1 } = {}) => {
|
|
139
139
|
const l = n.$$.callbacks[e];
|
|
140
140
|
if (l) {
|
|
141
|
-
const a =
|
|
141
|
+
const a = Xt(e, t, { cancelable: r });
|
|
142
142
|
return l.slice().forEach((s) => {
|
|
143
143
|
s.call(n, a);
|
|
144
144
|
}), !a.defaultPrevented;
|
|
@@ -146,23 +146,23 @@ function Yt() {
|
|
|
146
146
|
return !0;
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function nt(n, e) {
|
|
150
150
|
const t = n.$$.callbacks[e.type];
|
|
151
151
|
t && t.slice().forEach((r) => r.call(this, e));
|
|
152
152
|
}
|
|
153
153
|
const ke = [], De = [];
|
|
154
154
|
let ve = [];
|
|
155
|
-
const
|
|
155
|
+
const rt = [], $t = /* @__PURE__ */ Promise.resolve();
|
|
156
156
|
let Ke = !1;
|
|
157
|
-
function
|
|
158
|
-
Ke || (Ke = !0,
|
|
157
|
+
function en() {
|
|
158
|
+
Ke || (Ke = !0, $t.then(gt));
|
|
159
159
|
}
|
|
160
160
|
function Ve(n) {
|
|
161
161
|
ve.push(n);
|
|
162
162
|
}
|
|
163
163
|
const qe = /* @__PURE__ */ new Set();
|
|
164
164
|
let we = 0;
|
|
165
|
-
function
|
|
165
|
+
function gt() {
|
|
166
166
|
if (we !== 0)
|
|
167
167
|
return;
|
|
168
168
|
const n = Ce;
|
|
@@ -170,7 +170,7 @@ function _t() {
|
|
|
170
170
|
try {
|
|
171
171
|
for (; we < ke.length; ) {
|
|
172
172
|
const e = ke[we];
|
|
173
|
-
we++, Te(e),
|
|
173
|
+
we++, Te(e), tn(e.$$);
|
|
174
174
|
}
|
|
175
175
|
} catch (e) {
|
|
176
176
|
throw ke.length = 0, we = 0, e;
|
|
@@ -183,24 +183,24 @@ function _t() {
|
|
|
183
183
|
}
|
|
184
184
|
ve.length = 0;
|
|
185
185
|
} while (ke.length);
|
|
186
|
-
for (;
|
|
187
|
-
|
|
186
|
+
for (; rt.length; )
|
|
187
|
+
rt.pop()();
|
|
188
188
|
Ke = !1, qe.clear(), Te(n);
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function tn(n) {
|
|
191
191
|
if (n.fragment !== null) {
|
|
192
|
-
n.update(),
|
|
192
|
+
n.update(), te(n.before_update);
|
|
193
193
|
const e = n.dirty;
|
|
194
194
|
n.dirty = [-1], n.fragment && n.fragment.p(n.ctx, e), n.after_update.forEach(Ve);
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function nn(n) {
|
|
198
198
|
const e = [], t = [];
|
|
199
199
|
ve.forEach((r) => n.indexOf(r) === -1 ? e.push(r) : t.push(r)), t.forEach((r) => r()), ve = e;
|
|
200
200
|
}
|
|
201
|
-
const
|
|
201
|
+
const Se = /* @__PURE__ */ new Set();
|
|
202
202
|
let de;
|
|
203
|
-
function
|
|
203
|
+
function ze() {
|
|
204
204
|
de = {
|
|
205
205
|
r: 0,
|
|
206
206
|
c: [],
|
|
@@ -209,69 +209,69 @@ function Be() {
|
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
211
|
function Pe() {
|
|
212
|
-
de.r ||
|
|
212
|
+
de.r || te(de.c), de = de.p;
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
n && n.i && (
|
|
214
|
+
function j(n, e) {
|
|
215
|
+
n && n.i && (Se.delete(n), n.i(e));
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function O(n, e, t, r) {
|
|
218
218
|
if (n && n.o) {
|
|
219
|
-
if (
|
|
219
|
+
if (Se.has(n))
|
|
220
220
|
return;
|
|
221
|
-
|
|
222
|
-
|
|
221
|
+
Se.add(n), de.c.push(() => {
|
|
222
|
+
Se.delete(n), r && (t && n.d(1), r());
|
|
223
223
|
}), n.o(e);
|
|
224
224
|
} else
|
|
225
225
|
r && r();
|
|
226
226
|
}
|
|
227
|
-
function
|
|
228
|
-
|
|
227
|
+
function rn(n, e) {
|
|
228
|
+
O(n, 1, 1, () => {
|
|
229
229
|
e.delete(n.key);
|
|
230
230
|
});
|
|
231
231
|
}
|
|
232
|
-
function
|
|
233
|
-
let
|
|
232
|
+
function ln(n, e, t, r, l, a, s, f, d, c, m, k) {
|
|
233
|
+
let g = n.length, C = a.length, I = g;
|
|
234
234
|
const T = {};
|
|
235
|
-
for (;
|
|
236
|
-
T[n[
|
|
237
|
-
const M = [],
|
|
238
|
-
for (
|
|
239
|
-
const
|
|
235
|
+
for (; I--; )
|
|
236
|
+
T[n[I].key] = I;
|
|
237
|
+
const M = [], A = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), F = [];
|
|
238
|
+
for (I = C; I--; ) {
|
|
239
|
+
const B = k(l, a, I), R = t(B);
|
|
240
240
|
let _ = s.get(R);
|
|
241
|
-
_ ? r &&
|
|
241
|
+
_ ? r && F.push(() => _.p(B, e)) : (_ = c(R, B), _.c()), A.set(R, M[I] = _), R in T && y.set(R, Math.abs(I - T[R]));
|
|
242
242
|
}
|
|
243
|
-
const
|
|
244
|
-
function
|
|
245
|
-
|
|
243
|
+
const G = /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Set();
|
|
244
|
+
function b(B) {
|
|
245
|
+
j(B, 1), B.m(f, m), s.set(B.key, B), m = B.first, C--;
|
|
246
246
|
}
|
|
247
|
-
for (;
|
|
248
|
-
const
|
|
249
|
-
|
|
247
|
+
for (; g && C; ) {
|
|
248
|
+
const B = M[C - 1], R = n[g - 1], _ = B.key, w = R.key;
|
|
249
|
+
B === R ? (m = B.first, g--, C--) : A.has(w) ? !s.has(_) || G.has(_) ? b(B) : h.has(w) ? g-- : y.get(_) > y.get(w) ? (h.add(_), b(B)) : (G.add(w), g--) : (d(R, s), g--);
|
|
250
250
|
}
|
|
251
|
-
for (;
|
|
252
|
-
const
|
|
253
|
-
|
|
251
|
+
for (; g--; ) {
|
|
252
|
+
const B = n[g];
|
|
253
|
+
A.has(B.key) || d(B, s);
|
|
254
254
|
}
|
|
255
|
-
for (;
|
|
256
|
-
|
|
257
|
-
return
|
|
255
|
+
for (; C; )
|
|
256
|
+
b(M[C - 1]);
|
|
257
|
+
return te(F), M;
|
|
258
258
|
}
|
|
259
259
|
function oe(n) {
|
|
260
260
|
n && n.c();
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function $(n, e, t, r) {
|
|
263
263
|
const { fragment: l, after_update: a } = n.$$;
|
|
264
264
|
l && l.m(e, t), r || Ve(() => {
|
|
265
|
-
const s = n.$$.on_mount.map(
|
|
266
|
-
n.$$.on_destroy ? n.$$.on_destroy.push(...s) :
|
|
265
|
+
const s = n.$$.on_mount.map(dt).filter(ht);
|
|
266
|
+
n.$$.on_destroy ? n.$$.on_destroy.push(...s) : te(s), n.$$.on_mount = [];
|
|
267
267
|
}), a.forEach(Ve);
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function ee(n, e) {
|
|
270
270
|
const t = n.$$;
|
|
271
|
-
t.fragment !== null && (
|
|
271
|
+
t.fragment !== null && (nn(t.after_update), te(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
|
|
272
272
|
}
|
|
273
|
-
function
|
|
274
|
-
n.$$.dirty[0] === -1 && (ke.push(n),
|
|
273
|
+
function sn(n, e) {
|
|
274
|
+
n.$$.dirty[0] === -1 && (ke.push(n), en(), n.$$.dirty.fill(0)), n.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
275
275
|
}
|
|
276
276
|
function me(n, e, t, r, l, a, s, f = [-1]) {
|
|
277
277
|
const d = Ce;
|
|
@@ -281,9 +281,9 @@ function me(n, e, t, r, l, a, s, f = [-1]) {
|
|
|
281
281
|
ctx: [],
|
|
282
282
|
// state
|
|
283
283
|
props: a,
|
|
284
|
-
update:
|
|
284
|
+
update: S,
|
|
285
285
|
not_equal: l,
|
|
286
|
-
bound:
|
|
286
|
+
bound: $e(),
|
|
287
287
|
// lifecycle
|
|
288
288
|
on_mount: [],
|
|
289
289
|
on_destroy: [],
|
|
@@ -292,33 +292,33 @@ function me(n, e, t, r, l, a, s, f = [-1]) {
|
|
|
292
292
|
after_update: [],
|
|
293
293
|
context: new Map(e.context || (d ? d.$$.context : [])),
|
|
294
294
|
// everything else
|
|
295
|
-
callbacks:
|
|
295
|
+
callbacks: $e(),
|
|
296
296
|
dirty: f,
|
|
297
297
|
skip_bound: !1,
|
|
298
298
|
root: e.target || d.$$.root
|
|
299
299
|
};
|
|
300
300
|
s && s(c.root);
|
|
301
301
|
let m = !1;
|
|
302
|
-
if (c.ctx = t ? t(n, e.props || {}, (
|
|
303
|
-
const
|
|
304
|
-
return c.ctx && l(c.ctx[
|
|
305
|
-
}) : [], c.update(), m = !0,
|
|
302
|
+
if (c.ctx = t ? t(n, e.props || {}, (k, g, ...C) => {
|
|
303
|
+
const I = C.length ? C[0] : g;
|
|
304
|
+
return c.ctx && l(c.ctx[k], c.ctx[k] = I) && (!c.skip_bound && c.bound[k] && c.bound[k](I), m && sn(n, k)), g;
|
|
305
|
+
}) : [], c.update(), m = !0, te(c.before_update), c.fragment = r ? r(c.ctx) : !1, e.target) {
|
|
306
306
|
if (e.hydrate) {
|
|
307
|
-
const
|
|
308
|
-
c.fragment && c.fragment.l(
|
|
307
|
+
const k = Jt(e.target);
|
|
308
|
+
c.fragment && c.fragment.l(k), k.forEach(z);
|
|
309
309
|
} else
|
|
310
310
|
c.fragment && c.fragment.c();
|
|
311
|
-
e.intro &&
|
|
311
|
+
e.intro && j(n.$$.fragment), $(n, e.target, e.anchor, e.customElement), gt();
|
|
312
312
|
}
|
|
313
313
|
Te(d);
|
|
314
314
|
}
|
|
315
315
|
class _e {
|
|
316
316
|
$destroy() {
|
|
317
|
-
|
|
317
|
+
ee(this, 1), this.$destroy = S;
|
|
318
318
|
}
|
|
319
319
|
$on(e, t) {
|
|
320
|
-
if (!
|
|
321
|
-
return
|
|
320
|
+
if (!ht(t))
|
|
321
|
+
return S;
|
|
322
322
|
const r = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
323
323
|
return r.push(t), () => {
|
|
324
324
|
const l = r.indexOf(t);
|
|
@@ -329,326 +329,344 @@ class _e {
|
|
|
329
329
|
this.$$set && !Zt(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function on(n) {
|
|
333
333
|
let e, t;
|
|
334
334
|
return {
|
|
335
335
|
c() {
|
|
336
336
|
e = ie("svg"), t = ie("path"), o(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"), o(e, "viewBox", "0 0 14 14"), o(e, "width", "13"), o(e, "height", "13"), o(e, "class", "svelte-en2qvf");
|
|
337
337
|
},
|
|
338
338
|
m(r, l) {
|
|
339
|
-
|
|
339
|
+
U(r, e, l), v(e, t);
|
|
340
340
|
},
|
|
341
|
-
p:
|
|
342
|
-
i:
|
|
343
|
-
o:
|
|
341
|
+
p: S,
|
|
342
|
+
i: S,
|
|
343
|
+
o: S,
|
|
344
344
|
d(r) {
|
|
345
|
-
r &&
|
|
345
|
+
r && z(e);
|
|
346
346
|
}
|
|
347
347
|
};
|
|
348
348
|
}
|
|
349
|
-
class
|
|
349
|
+
class yt extends _e {
|
|
350
350
|
constructor(e) {
|
|
351
|
-
super(), me(this, e, null,
|
|
351
|
+
super(), me(this, e, null, on, he, {});
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function cn(n) {
|
|
355
355
|
let e, t;
|
|
356
356
|
return {
|
|
357
357
|
c() {
|
|
358
358
|
e = ie("svg"), t = ie("path"), o(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"), o(e, "viewBox", "0 0 30 30"), o(e, "fill", "none"), o(e, "xmlns", "http://www.w3.org/2000/svg"), o(e, "class", "svelte-d2loi5");
|
|
359
359
|
},
|
|
360
360
|
m(r, l) {
|
|
361
|
-
|
|
361
|
+
U(r, e, l), v(e, t);
|
|
362
362
|
},
|
|
363
|
-
p:
|
|
364
|
-
i:
|
|
365
|
-
o:
|
|
363
|
+
p: S,
|
|
364
|
+
i: S,
|
|
365
|
+
o: S,
|
|
366
366
|
d(r) {
|
|
367
|
-
r &&
|
|
367
|
+
r && z(e);
|
|
368
368
|
}
|
|
369
369
|
};
|
|
370
370
|
}
|
|
371
|
-
class
|
|
371
|
+
class bt extends _e {
|
|
372
372
|
constructor(e) {
|
|
373
|
-
super(), me(this, e, null,
|
|
373
|
+
super(), me(this, e, null, cn, he, {});
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
|
-
function
|
|
376
|
+
function fn(n) {
|
|
377
377
|
let e, t;
|
|
378
378
|
return {
|
|
379
379
|
c() {
|
|
380
|
-
e =
|
|
380
|
+
e = E("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
381
|
+
n[3] + "area.svg") || o(e, "src", t), o(
|
|
381
382
|
e,
|
|
382
383
|
"alt",
|
|
383
384
|
/*placeType*/
|
|
384
|
-
n[
|
|
385
|
+
n[6]
|
|
385
386
|
), o(e, "class", "svelte-ltkwvy");
|
|
386
387
|
},
|
|
387
388
|
m(r, l) {
|
|
388
|
-
|
|
389
|
+
U(r, e, l);
|
|
389
390
|
},
|
|
390
391
|
p(r, l) {
|
|
391
|
-
l & /*
|
|
392
|
-
|
|
392
|
+
l & /*iconsBaseUrl*/
|
|
393
|
+
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
394
|
+
r[3] + "area.svg") && o(e, "src", t), l & /*placeType*/
|
|
395
|
+
64 && o(
|
|
393
396
|
e,
|
|
394
397
|
"alt",
|
|
395
398
|
/*placeType*/
|
|
396
|
-
r[
|
|
399
|
+
r[6]
|
|
397
400
|
);
|
|
398
401
|
},
|
|
399
402
|
d(r) {
|
|
400
|
-
r &&
|
|
403
|
+
r && z(e);
|
|
401
404
|
}
|
|
402
405
|
};
|
|
403
406
|
}
|
|
404
|
-
function
|
|
407
|
+
function un(n) {
|
|
405
408
|
let e, t;
|
|
406
409
|
return {
|
|
407
410
|
c() {
|
|
408
|
-
e =
|
|
411
|
+
e = E("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
412
|
+
n[3] + "poi.svg") || o(e, "src", t), o(
|
|
409
413
|
e,
|
|
410
414
|
"alt",
|
|
411
415
|
/*placeType*/
|
|
412
|
-
n[
|
|
416
|
+
n[6]
|
|
413
417
|
), o(e, "class", "svelte-ltkwvy");
|
|
414
418
|
},
|
|
415
419
|
m(r, l) {
|
|
416
|
-
|
|
420
|
+
U(r, e, l);
|
|
417
421
|
},
|
|
418
422
|
p(r, l) {
|
|
419
|
-
l & /*
|
|
420
|
-
|
|
423
|
+
l & /*iconsBaseUrl*/
|
|
424
|
+
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
425
|
+
r[3] + "poi.svg") && o(e, "src", t), l & /*placeType*/
|
|
426
|
+
64 && o(
|
|
421
427
|
e,
|
|
422
428
|
"alt",
|
|
423
429
|
/*placeType*/
|
|
424
|
-
r[
|
|
430
|
+
r[6]
|
|
425
431
|
);
|
|
426
432
|
},
|
|
427
433
|
d(r) {
|
|
428
|
-
r &&
|
|
434
|
+
r && z(e);
|
|
429
435
|
}
|
|
430
436
|
};
|
|
431
437
|
}
|
|
432
|
-
function
|
|
438
|
+
function an(n) {
|
|
433
439
|
let e, t;
|
|
434
440
|
return {
|
|
435
441
|
c() {
|
|
436
|
-
e =
|
|
442
|
+
e = E("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
443
|
+
n[3] + "postal_code.svg") || o(e, "src", t), o(
|
|
437
444
|
e,
|
|
438
445
|
"alt",
|
|
439
446
|
/*placeType*/
|
|
440
|
-
n[
|
|
447
|
+
n[6]
|
|
441
448
|
), o(e, "class", "svelte-ltkwvy");
|
|
442
449
|
},
|
|
443
450
|
m(r, l) {
|
|
444
|
-
|
|
451
|
+
U(r, e, l);
|
|
445
452
|
},
|
|
446
453
|
p(r, l) {
|
|
447
|
-
l & /*
|
|
448
|
-
|
|
454
|
+
l & /*iconsBaseUrl*/
|
|
455
|
+
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
456
|
+
r[3] + "postal_code.svg") && o(e, "src", t), l & /*placeType*/
|
|
457
|
+
64 && o(
|
|
449
458
|
e,
|
|
450
459
|
"alt",
|
|
451
460
|
/*placeType*/
|
|
452
|
-
r[
|
|
461
|
+
r[6]
|
|
453
462
|
);
|
|
454
463
|
},
|
|
455
464
|
d(r) {
|
|
456
|
-
r &&
|
|
465
|
+
r && z(e);
|
|
457
466
|
}
|
|
458
467
|
};
|
|
459
468
|
}
|
|
460
|
-
function
|
|
469
|
+
function dn(n) {
|
|
461
470
|
let e, t;
|
|
462
471
|
return {
|
|
463
472
|
c() {
|
|
464
|
-
e =
|
|
473
|
+
e = E("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
474
|
+
n[3] + "street.svg") || o(e, "src", t), o(
|
|
465
475
|
e,
|
|
466
476
|
"alt",
|
|
467
477
|
/*placeType*/
|
|
468
|
-
n[
|
|
478
|
+
n[6]
|
|
469
479
|
), o(e, "class", "svelte-ltkwvy");
|
|
470
480
|
},
|
|
471
481
|
m(r, l) {
|
|
472
|
-
|
|
482
|
+
U(r, e, l);
|
|
473
483
|
},
|
|
474
484
|
p(r, l) {
|
|
475
|
-
l & /*
|
|
476
|
-
|
|
485
|
+
l & /*iconsBaseUrl*/
|
|
486
|
+
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
487
|
+
r[3] + "street.svg") && o(e, "src", t), l & /*placeType*/
|
|
488
|
+
64 && o(
|
|
477
489
|
e,
|
|
478
490
|
"alt",
|
|
479
491
|
/*placeType*/
|
|
480
|
-
r[
|
|
492
|
+
r[6]
|
|
481
493
|
);
|
|
482
494
|
},
|
|
483
495
|
d(r) {
|
|
484
|
-
r &&
|
|
496
|
+
r && z(e);
|
|
485
497
|
}
|
|
486
498
|
};
|
|
487
499
|
}
|
|
488
|
-
function
|
|
500
|
+
function hn(n) {
|
|
489
501
|
let e, t;
|
|
490
502
|
return {
|
|
491
503
|
c() {
|
|
492
|
-
e =
|
|
504
|
+
e = E("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
505
|
+
n[3] + "road.svg") || o(e, "src", t), o(
|
|
493
506
|
e,
|
|
494
507
|
"alt",
|
|
495
508
|
/*placeType*/
|
|
496
|
-
n[
|
|
509
|
+
n[6]
|
|
497
510
|
), o(e, "class", "svelte-ltkwvy");
|
|
498
511
|
},
|
|
499
512
|
m(r, l) {
|
|
500
|
-
|
|
513
|
+
U(r, e, l);
|
|
501
514
|
},
|
|
502
515
|
p(r, l) {
|
|
503
|
-
l & /*
|
|
504
|
-
|
|
516
|
+
l & /*iconsBaseUrl*/
|
|
517
|
+
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
518
|
+
r[3] + "road.svg") && o(e, "src", t), l & /*placeType*/
|
|
519
|
+
64 && o(
|
|
505
520
|
e,
|
|
506
521
|
"alt",
|
|
507
522
|
/*placeType*/
|
|
508
|
-
r[
|
|
523
|
+
r[6]
|
|
509
524
|
);
|
|
510
525
|
},
|
|
511
526
|
d(r) {
|
|
512
|
-
r &&
|
|
527
|
+
r && z(e);
|
|
513
528
|
}
|
|
514
529
|
};
|
|
515
530
|
}
|
|
516
|
-
function
|
|
531
|
+
function mn(n) {
|
|
517
532
|
let e, t;
|
|
518
533
|
return {
|
|
519
534
|
c() {
|
|
520
|
-
e =
|
|
535
|
+
e = E("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
536
|
+
n[3] + "housenumber.svg") || o(e, "src", t), o(
|
|
521
537
|
e,
|
|
522
538
|
"alt",
|
|
523
539
|
/*placeType*/
|
|
524
|
-
n[
|
|
540
|
+
n[6]
|
|
525
541
|
), o(e, "class", "svelte-ltkwvy");
|
|
526
542
|
},
|
|
527
543
|
m(r, l) {
|
|
528
|
-
|
|
544
|
+
U(r, e, l);
|
|
529
545
|
},
|
|
530
546
|
p(r, l) {
|
|
531
|
-
l & /*
|
|
532
|
-
|
|
547
|
+
l & /*iconsBaseUrl*/
|
|
548
|
+
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
549
|
+
r[3] + "housenumber.svg") && o(e, "src", t), l & /*placeType*/
|
|
550
|
+
64 && o(
|
|
533
551
|
e,
|
|
534
552
|
"alt",
|
|
535
553
|
/*placeType*/
|
|
536
|
-
r[
|
|
554
|
+
r[6]
|
|
537
555
|
);
|
|
538
556
|
},
|
|
539
557
|
d(r) {
|
|
540
|
-
r &&
|
|
558
|
+
r && z(e);
|
|
541
559
|
}
|
|
542
560
|
};
|
|
543
561
|
}
|
|
544
|
-
function
|
|
562
|
+
function _n(n) {
|
|
545
563
|
let e, t, r, l;
|
|
546
564
|
return {
|
|
547
565
|
c() {
|
|
548
|
-
e =
|
|
549
|
-
n[
|
|
566
|
+
e = E("img"), K(e.src, t = /*imageUrl*/
|
|
567
|
+
n[5]) || o(e, "src", t), o(
|
|
550
568
|
e,
|
|
551
569
|
"alt",
|
|
552
570
|
/*category*/
|
|
553
|
-
n[
|
|
571
|
+
n[4]
|
|
554
572
|
), o(e, "class", "svelte-ltkwvy");
|
|
555
573
|
},
|
|
556
574
|
m(a, s) {
|
|
557
|
-
|
|
575
|
+
U(a, e, s), r || (l = D(
|
|
558
576
|
e,
|
|
559
577
|
"error",
|
|
560
578
|
/*error_handler*/
|
|
561
|
-
n[
|
|
579
|
+
n[12]
|
|
562
580
|
), r = !0);
|
|
563
581
|
},
|
|
564
582
|
p(a, s) {
|
|
565
583
|
s & /*imageUrl*/
|
|
566
|
-
|
|
567
|
-
a[
|
|
568
|
-
|
|
584
|
+
32 && !K(e.src, t = /*imageUrl*/
|
|
585
|
+
a[5]) && o(e, "src", t), s & /*category*/
|
|
586
|
+
16 && o(
|
|
569
587
|
e,
|
|
570
588
|
"alt",
|
|
571
589
|
/*category*/
|
|
572
|
-
a[
|
|
590
|
+
a[4]
|
|
573
591
|
);
|
|
574
592
|
},
|
|
575
593
|
d(a) {
|
|
576
|
-
a &&
|
|
594
|
+
a && z(e), r = !1, l();
|
|
577
595
|
}
|
|
578
596
|
};
|
|
579
597
|
}
|
|
580
|
-
function
|
|
598
|
+
function lt(n) {
|
|
581
599
|
let e, t;
|
|
582
600
|
return {
|
|
583
601
|
c() {
|
|
584
|
-
e =
|
|
602
|
+
e = E("span"), t = se(
|
|
585
603
|
/*placeType*/
|
|
586
|
-
n[
|
|
604
|
+
n[6]
|
|
587
605
|
), o(e, "class", "secondary svelte-ltkwvy");
|
|
588
606
|
},
|
|
589
607
|
m(r, l) {
|
|
590
|
-
|
|
608
|
+
U(r, e, l), v(e, t);
|
|
591
609
|
},
|
|
592
610
|
p(r, l) {
|
|
593
611
|
l & /*placeType*/
|
|
594
|
-
|
|
612
|
+
64 && Me(
|
|
595
613
|
t,
|
|
596
614
|
/*placeType*/
|
|
597
|
-
r[
|
|
615
|
+
r[6]
|
|
598
616
|
);
|
|
599
617
|
},
|
|
600
618
|
d(r) {
|
|
601
|
-
r &&
|
|
619
|
+
r && z(e);
|
|
602
620
|
}
|
|
603
621
|
};
|
|
604
622
|
}
|
|
605
|
-
function
|
|
606
|
-
var
|
|
623
|
+
function gn(n) {
|
|
624
|
+
var B, R;
|
|
607
625
|
let e, t, r, l, a, s, f, d, c = (
|
|
608
626
|
/*feature*/
|
|
609
627
|
n[0].place_name.replace(/,.*/, "") + ""
|
|
610
|
-
), m,
|
|
628
|
+
), m, k, g = (
|
|
611
629
|
/*showPlaceType*/
|
|
612
630
|
n[2] === "always" || /*showPlaceType*/
|
|
613
631
|
n[2] && !/*feature*/
|
|
614
632
|
n[0].address && /*feature*/
|
|
615
|
-
((
|
|
633
|
+
((B = n[0].properties) == null ? void 0 : B.kind) !== "road" && /*feature*/
|
|
616
634
|
((R = n[0].properties) == null ? void 0 : R.kind) !== "road_relation" && !/*feature*/
|
|
617
635
|
n[0].id.startsWith("address.") && !/*feature*/
|
|
618
636
|
n[0].id.startsWith("postal_code.") && (!/*feature*/
|
|
619
637
|
n[0].id.startsWith("poi.") || !/*imageUrl*/
|
|
620
|
-
n[
|
|
621
|
-
),
|
|
638
|
+
n[5])
|
|
639
|
+
), C, I, T = (
|
|
622
640
|
/*feature*/
|
|
623
641
|
n[0].place_name.replace(/[^,]*,?\s*/, "") + ""
|
|
624
|
-
), M,
|
|
625
|
-
function
|
|
626
|
-
var
|
|
642
|
+
), M, A, y;
|
|
643
|
+
function F(_, w) {
|
|
644
|
+
var Q, u;
|
|
627
645
|
return w & /*feature*/
|
|
628
646
|
1 && (t = null), w & /*feature*/
|
|
629
647
|
1 && (r = null), w & /*feature*/
|
|
630
648
|
1 && (l = null), /*imageUrl*/
|
|
631
|
-
_[
|
|
649
|
+
_[5] ? _n : (
|
|
632
650
|
/*feature*/
|
|
633
|
-
_[0].address ?
|
|
651
|
+
_[0].address ? mn : (
|
|
634
652
|
/*feature*/
|
|
635
|
-
((
|
|
636
|
-
((u = _[0].properties) == null ? void 0 : u.kind) === "road_relation" ?
|
|
637
|
-
_[0].id.startsWith("address.")), t ?
|
|
638
|
-
_[0].id.startsWith("postal_code.")), r ?
|
|
639
|
-
_[0].id.startsWith("poi.")), l ?
|
|
653
|
+
((Q = _[0].properties) == null ? void 0 : Q.kind) === "road" || /*feature*/
|
|
654
|
+
((u = _[0].properties) == null ? void 0 : u.kind) === "road_relation" ? hn : (t == null && (t = !!/*feature*/
|
|
655
|
+
_[0].id.startsWith("address.")), t ? dn : (r == null && (r = !!/*feature*/
|
|
656
|
+
_[0].id.startsWith("postal_code.")), r ? an : (l == null && (l = !!/*feature*/
|
|
657
|
+
_[0].id.startsWith("poi.")), l ? un : fn)))
|
|
640
658
|
)
|
|
641
659
|
);
|
|
642
660
|
}
|
|
643
|
-
let
|
|
661
|
+
let G = F(n, -1), h = G(n), b = g && lt(n);
|
|
644
662
|
return {
|
|
645
663
|
c() {
|
|
646
|
-
e =
|
|
664
|
+
e = E("li"), h.c(), a = H(), s = E("span"), f = E("span"), d = E("span"), m = se(c), k = H(), b && b.c(), C = H(), I = E("span"), M = se(T), o(d, "class", "primary svelte-ltkwvy"), o(f, "class", "svelte-ltkwvy"), o(I, "class", "line2 svelte-ltkwvy"), o(s, "class", "texts svelte-ltkwvy"), o(e, "tabindex", "0"), o(
|
|
647
665
|
e,
|
|
648
666
|
"data-selected",
|
|
649
667
|
/*selected*/
|
|
650
668
|
n[1]
|
|
651
|
-
), o(e, "class", "svelte-ltkwvy"),
|
|
669
|
+
), o(e, "class", "svelte-ltkwvy"), le(
|
|
652
670
|
e,
|
|
653
671
|
"selected",
|
|
654
672
|
/*selected*/
|
|
@@ -656,36 +674,36 @@ function _n(n) {
|
|
|
656
674
|
);
|
|
657
675
|
},
|
|
658
676
|
m(_, w) {
|
|
659
|
-
|
|
677
|
+
U(_, e, w), h.m(e, null), v(e, a), v(e, s), v(s, f), v(f, d), v(d, m), v(f, k), b && b.m(f, null), v(s, C), v(s, I), v(I, M), A || (y = [
|
|
660
678
|
D(
|
|
661
679
|
e,
|
|
662
680
|
"mouseenter",
|
|
663
681
|
/*mouseenter_handler*/
|
|
664
|
-
n[
|
|
682
|
+
n[10]
|
|
665
683
|
),
|
|
666
684
|
D(
|
|
667
685
|
e,
|
|
668
686
|
"focus",
|
|
669
687
|
/*focus_handler*/
|
|
670
|
-
n[
|
|
688
|
+
n[11]
|
|
671
689
|
)
|
|
672
|
-
],
|
|
690
|
+
], A = !0);
|
|
673
691
|
},
|
|
674
692
|
p(_, [w]) {
|
|
675
|
-
var
|
|
676
|
-
|
|
693
|
+
var Q, u;
|
|
694
|
+
G === (G = F(_, w)) && h ? h.p(_, w) : (h.d(1), h = G(_), h && (h.c(), h.m(e, a))), w & /*feature*/
|
|
677
695
|
1 && c !== (c = /*feature*/
|
|
678
696
|
_[0].place_name.replace(/,.*/, "") + "") && Me(m, c), w & /*showPlaceType, feature, imageUrl*/
|
|
679
|
-
|
|
697
|
+
37 && (g = /*showPlaceType*/
|
|
680
698
|
_[2] === "always" || /*showPlaceType*/
|
|
681
699
|
_[2] && !/*feature*/
|
|
682
700
|
_[0].address && /*feature*/
|
|
683
|
-
((
|
|
701
|
+
((Q = _[0].properties) == null ? void 0 : Q.kind) !== "road" && /*feature*/
|
|
684
702
|
((u = _[0].properties) == null ? void 0 : u.kind) !== "road_relation" && !/*feature*/
|
|
685
703
|
_[0].id.startsWith("address.") && !/*feature*/
|
|
686
704
|
_[0].id.startsWith("postal_code.") && (!/*feature*/
|
|
687
705
|
_[0].id.startsWith("poi.") || !/*imageUrl*/
|
|
688
|
-
_[
|
|
706
|
+
_[5])), g ? b ? b.p(_, w) : (b = lt(_), b.c(), b.m(f, null)) : b && (b.d(1), b = null), w & /*feature*/
|
|
689
707
|
1 && T !== (T = /*feature*/
|
|
690
708
|
_[0].place_name.replace(/[^,]*,?\s*/, "") + "") && Me(M, T), w & /*selected*/
|
|
691
709
|
2 && o(
|
|
@@ -694,171 +712,173 @@ function _n(n) {
|
|
|
694
712
|
/*selected*/
|
|
695
713
|
_[1]
|
|
696
714
|
), w & /*selected*/
|
|
697
|
-
2 &&
|
|
715
|
+
2 && le(
|
|
698
716
|
e,
|
|
699
717
|
"selected",
|
|
700
718
|
/*selected*/
|
|
701
719
|
_[1]
|
|
702
720
|
);
|
|
703
721
|
},
|
|
704
|
-
i:
|
|
705
|
-
o:
|
|
722
|
+
i: S,
|
|
723
|
+
o: S,
|
|
706
724
|
d(_) {
|
|
707
|
-
_ &&
|
|
725
|
+
_ && z(e), h.d(), b && b.d(), A = !1, te(y);
|
|
708
726
|
}
|
|
709
727
|
};
|
|
710
728
|
}
|
|
711
|
-
function
|
|
712
|
-
var
|
|
713
|
-
let r, l, { feature: a } = e, { selected: s = !1 } = e, { showPlaceType: f } = e, { missingIconsCache: d } = e;
|
|
714
|
-
const
|
|
715
|
-
let
|
|
716
|
-
function y
|
|
717
|
-
|
|
729
|
+
function yn(n, e, t) {
|
|
730
|
+
var A;
|
|
731
|
+
let r, l, { feature: a } = e, { selected: s = !1 } = e, { showPlaceType: f } = e, { missingIconsCache: d } = e, { iconsBaseUrl: c } = e;
|
|
732
|
+
const m = (A = a.properties) == null ? void 0 : A.categories;
|
|
733
|
+
let k, g;
|
|
734
|
+
function C(y) {
|
|
735
|
+
g && d.add(g), t(9, r--, r);
|
|
718
736
|
}
|
|
719
|
-
function
|
|
720
|
-
|
|
737
|
+
function I(y) {
|
|
738
|
+
nt.call(this, n, y);
|
|
721
739
|
}
|
|
722
|
-
function
|
|
723
|
-
|
|
740
|
+
function T(y) {
|
|
741
|
+
nt.call(this, n, y);
|
|
724
742
|
}
|
|
725
|
-
const
|
|
726
|
-
return n.$$set = (
|
|
727
|
-
"feature" in
|
|
743
|
+
const M = (y) => C(y.currentTarget);
|
|
744
|
+
return n.$$set = (y) => {
|
|
745
|
+
"feature" in y && t(0, a = y.feature), "selected" in y && t(1, s = y.selected), "showPlaceType" in y && t(2, f = y.showPlaceType), "missingIconsCache" in y && t(8, d = y.missingIconsCache), "iconsBaseUrl" in y && t(3, c = y.iconsBaseUrl);
|
|
728
746
|
}, n.$$.update = () => {
|
|
729
|
-
var
|
|
730
|
-
if (n.$$.dirty & /*index, category, imageUrl, missingIconsCache*/
|
|
731
|
-
|
|
747
|
+
var y, F, G, h;
|
|
748
|
+
if (n.$$.dirty & /*index, category, iconsBaseUrl, imageUrl, missingIconsCache*/
|
|
749
|
+
824)
|
|
732
750
|
do
|
|
733
|
-
t(
|
|
734
|
-
while (r > -1 && (!
|
|
751
|
+
t(9, r--, r), t(4, k = m == null ? void 0 : m[r]), t(5, g = k ? c + k.replace(/ /g, "_") + ".svg" : void 0);
|
|
752
|
+
while (r > -1 && (!g || d.has(g)));
|
|
735
753
|
n.$$.dirty & /*feature*/
|
|
736
|
-
1 && t(
|
|
737
|
-
}, t(
|
|
754
|
+
1 && t(6, l = a.id.startsWith("poi.") ? (F = (y = a.properties) == null ? void 0 : y.categories) == null ? void 0 : F.join(", ") : ((h = (G = a.properties) == null ? void 0 : G.place_type_name) == null ? void 0 : h[0]) ?? a.place_type[0]);
|
|
755
|
+
}, t(9, r = (m == null ? void 0 : m.length) ?? 0), [
|
|
738
756
|
a,
|
|
739
757
|
s,
|
|
740
758
|
f,
|
|
741
|
-
|
|
742
|
-
|
|
759
|
+
c,
|
|
760
|
+
k,
|
|
761
|
+
g,
|
|
743
762
|
l,
|
|
744
|
-
|
|
763
|
+
C,
|
|
745
764
|
d,
|
|
746
765
|
r,
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
766
|
+
I,
|
|
767
|
+
T,
|
|
768
|
+
M
|
|
750
769
|
];
|
|
751
770
|
}
|
|
752
|
-
class
|
|
771
|
+
class bn extends _e {
|
|
753
772
|
constructor(e) {
|
|
754
|
-
super(), me(this, e,
|
|
773
|
+
super(), me(this, e, yn, gn, he, {
|
|
755
774
|
feature: 0,
|
|
756
775
|
selected: 1,
|
|
757
776
|
showPlaceType: 2,
|
|
758
|
-
missingIconsCache:
|
|
777
|
+
missingIconsCache: 8,
|
|
778
|
+
iconsBaseUrl: 3
|
|
759
779
|
});
|
|
760
780
|
}
|
|
761
781
|
}
|
|
762
|
-
function
|
|
782
|
+
function wn(n) {
|
|
763
783
|
let e;
|
|
764
784
|
return {
|
|
765
785
|
c() {
|
|
766
|
-
e =
|
|
786
|
+
e = E("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>', o(e, "class", "svelte-7cmwmc");
|
|
767
787
|
},
|
|
768
788
|
m(t, r) {
|
|
769
|
-
|
|
789
|
+
U(t, e, r);
|
|
770
790
|
},
|
|
771
|
-
p:
|
|
772
|
-
i:
|
|
773
|
-
o:
|
|
791
|
+
p: S,
|
|
792
|
+
i: S,
|
|
793
|
+
o: S,
|
|
774
794
|
d(t) {
|
|
775
|
-
t &&
|
|
795
|
+
t && z(e);
|
|
776
796
|
}
|
|
777
797
|
};
|
|
778
798
|
}
|
|
779
|
-
class
|
|
799
|
+
class kn extends _e {
|
|
780
800
|
constructor(e) {
|
|
781
|
-
super(), me(this, e, null,
|
|
801
|
+
super(), me(this, e, null, wn, he, {});
|
|
782
802
|
}
|
|
783
803
|
}
|
|
784
|
-
function
|
|
804
|
+
function vn(n) {
|
|
785
805
|
let e, t;
|
|
786
806
|
return {
|
|
787
807
|
c() {
|
|
788
808
|
e = ie("svg"), t = ie("path"), o(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"), o(e, "viewBox", "0 0 60.006 21.412"), o(e, "width", "14"), o(e, "height", "20"), o(e, "class", "svelte-en2qvf");
|
|
789
809
|
},
|
|
790
810
|
m(r, l) {
|
|
791
|
-
|
|
811
|
+
U(r, e, l), v(e, t);
|
|
792
812
|
},
|
|
793
|
-
p:
|
|
794
|
-
i:
|
|
795
|
-
o:
|
|
813
|
+
p: S,
|
|
814
|
+
i: S,
|
|
815
|
+
o: S,
|
|
796
816
|
d(r) {
|
|
797
|
-
r &&
|
|
817
|
+
r && z(e);
|
|
798
818
|
}
|
|
799
819
|
};
|
|
800
820
|
}
|
|
801
|
-
class
|
|
821
|
+
class pn extends _e {
|
|
802
822
|
constructor(e) {
|
|
803
|
-
super(), me(this, e, null,
|
|
823
|
+
super(), me(this, e, null, vn, he, {});
|
|
804
824
|
}
|
|
805
825
|
}
|
|
806
|
-
function
|
|
826
|
+
function Tn(n) {
|
|
807
827
|
let e, t;
|
|
808
828
|
return {
|
|
809
829
|
c() {
|
|
810
830
|
e = ie("svg"), t = ie("path"), o(t, "d", "M13.101 14.261 8.74 9.899a4.797 4.797 0 0 1-1.425.748 5.165 5.165 0 0 1-1.603.248c-1.446 0-2.677-.5-3.693-1.503S.495 7.164.495 5.717c0-1.446.508-2.678 1.524-3.693C3.035 1.008 4.266.5 5.712.5c1.448 0 2.672.508 3.675 1.524 1.002 1.015 1.503 2.247 1.503 3.693 0 .558-.08 1.092-.239 1.603-.159.512-.411.98-.757 1.405l4.382 4.4a.74.74 0 0 1 .229.568.81.81 0 0 1-.249.568.787.787 0 0 1-.577.239.787.787 0 0 1-.578-.239ZM5.712 9.223c.97 0 1.796-.342 2.48-1.026a3.378 3.378 0 0 0 1.026-2.48c0-.982-.34-1.818-1.016-2.509-.677-.69-1.507-1.035-2.49-1.035a3.42 3.42 0 0 0-2.509 1.035 3.42 3.42 0 0 0-1.035 2.51c0 .982.345 1.812 1.035 2.488.691.678 1.527 1.017 2.51 1.017Z"), o(e, "width", "14"), o(e, "height", "14"), o(e, "viewBox", "0 0 15 15"), o(e, "class", "svelte-en2qvf");
|
|
811
831
|
},
|
|
812
832
|
m(r, l) {
|
|
813
|
-
|
|
833
|
+
U(r, e, l), v(e, t);
|
|
814
834
|
},
|
|
815
|
-
p:
|
|
816
|
-
i:
|
|
817
|
-
o:
|
|
835
|
+
p: S,
|
|
836
|
+
i: S,
|
|
837
|
+
o: S,
|
|
818
838
|
d(r) {
|
|
819
|
-
r &&
|
|
839
|
+
r && z(e);
|
|
820
840
|
}
|
|
821
841
|
};
|
|
822
842
|
}
|
|
823
|
-
class
|
|
843
|
+
class Mn extends _e {
|
|
824
844
|
constructor(e) {
|
|
825
|
-
super(), me(this, e, null,
|
|
845
|
+
super(), me(this, e, null, Tn, he, {});
|
|
826
846
|
}
|
|
827
847
|
}
|
|
828
|
-
function
|
|
848
|
+
function it(n, e, t) {
|
|
829
849
|
const r = n.slice();
|
|
830
|
-
return r[
|
|
850
|
+
return r[75] = e[t], r[77] = t, r;
|
|
831
851
|
}
|
|
832
|
-
function
|
|
852
|
+
function st(n) {
|
|
833
853
|
let e, t;
|
|
834
|
-
return e = new
|
|
854
|
+
return e = new kn({}), {
|
|
835
855
|
c() {
|
|
836
856
|
oe(e.$$.fragment);
|
|
837
857
|
},
|
|
838
858
|
m(r, l) {
|
|
839
|
-
|
|
859
|
+
$(e, r, l), t = !0;
|
|
840
860
|
},
|
|
841
861
|
i(r) {
|
|
842
|
-
t || (
|
|
862
|
+
t || (j(e.$$.fragment, r), t = !0);
|
|
843
863
|
},
|
|
844
864
|
o(r) {
|
|
845
|
-
|
|
865
|
+
O(e.$$.fragment, r), t = !1;
|
|
846
866
|
},
|
|
847
867
|
d(r) {
|
|
848
|
-
|
|
868
|
+
ee(e, r);
|
|
849
869
|
}
|
|
850
870
|
};
|
|
851
871
|
}
|
|
852
|
-
function
|
|
872
|
+
function ot(n) {
|
|
853
873
|
let e, t, r, l, a;
|
|
854
|
-
return t = new
|
|
874
|
+
return t = new pn({}), {
|
|
855
875
|
c() {
|
|
856
|
-
e =
|
|
876
|
+
e = E("button"), oe(t.$$.fragment), o(e, "type", "button"), o(
|
|
857
877
|
e,
|
|
858
878
|
"title",
|
|
859
879
|
/*reverseButtonTitle*/
|
|
860
880
|
n[9]
|
|
861
|
-
), o(e, "class", "svelte-1r7dvt7"),
|
|
881
|
+
), o(e, "class", "svelte-1r7dvt7"), le(
|
|
862
882
|
e,
|
|
863
883
|
"active",
|
|
864
884
|
/*reverseActive*/
|
|
@@ -866,11 +886,11 @@ function st(n) {
|
|
|
866
886
|
);
|
|
867
887
|
},
|
|
868
888
|
m(s, f) {
|
|
869
|
-
|
|
889
|
+
U(s, e, f), $(t, e, null), r = !0, l || (a = D(
|
|
870
890
|
e,
|
|
871
891
|
"click",
|
|
872
892
|
/*click_handler_2*/
|
|
873
|
-
n[
|
|
893
|
+
n[61]
|
|
874
894
|
), l = !0);
|
|
875
895
|
},
|
|
876
896
|
p(s, f) {
|
|
@@ -881,7 +901,7 @@ function st(n) {
|
|
|
881
901
|
/*reverseButtonTitle*/
|
|
882
902
|
s[9]
|
|
883
903
|
), (!r || f[0] & /*reverseActive*/
|
|
884
|
-
1) &&
|
|
904
|
+
1) && le(
|
|
885
905
|
e,
|
|
886
906
|
"active",
|
|
887
907
|
/*reverseActive*/
|
|
@@ -889,93 +909,93 @@ function st(n) {
|
|
|
889
909
|
);
|
|
890
910
|
},
|
|
891
911
|
i(s) {
|
|
892
|
-
r || (
|
|
912
|
+
r || (j(t.$$.fragment, s), r = !0);
|
|
893
913
|
},
|
|
894
914
|
o(s) {
|
|
895
|
-
|
|
915
|
+
O(t.$$.fragment, s), r = !1;
|
|
896
916
|
},
|
|
897
917
|
d(s) {
|
|
898
|
-
s &&
|
|
918
|
+
s && z(e), ee(t), l = !1, a();
|
|
899
919
|
}
|
|
900
920
|
};
|
|
901
921
|
}
|
|
902
|
-
function
|
|
922
|
+
function Cn(n) {
|
|
903
923
|
let e, t = [], r = /* @__PURE__ */ new Map(), l, a, s, f = (
|
|
904
924
|
/*listFeatures*/
|
|
905
|
-
n[
|
|
925
|
+
n[13]
|
|
906
926
|
);
|
|
907
927
|
const d = (c) => (
|
|
908
928
|
/*feature*/
|
|
909
|
-
c[
|
|
910
|
-
(c[
|
|
911
|
-
c[
|
|
929
|
+
c[75].id + /*feature*/
|
|
930
|
+
(c[75].address ? "," + /*feature*/
|
|
931
|
+
c[75].address : "")
|
|
912
932
|
);
|
|
913
933
|
for (let c = 0; c < f.length; c += 1) {
|
|
914
|
-
let m =
|
|
915
|
-
r.set(
|
|
934
|
+
let m = it(n, f, c), k = d(m);
|
|
935
|
+
r.set(k, t[c] = ct(k, m));
|
|
916
936
|
}
|
|
917
937
|
return {
|
|
918
938
|
c() {
|
|
919
|
-
e =
|
|
939
|
+
e = E("ul");
|
|
920
940
|
for (let c = 0; c < t.length; c += 1)
|
|
921
941
|
t[c].c();
|
|
922
942
|
o(e, "class", "svelte-1r7dvt7");
|
|
923
943
|
},
|
|
924
944
|
m(c, m) {
|
|
925
|
-
|
|
926
|
-
for (let
|
|
927
|
-
t[
|
|
945
|
+
U(c, e, m);
|
|
946
|
+
for (let k = 0; k < t.length; k += 1)
|
|
947
|
+
t[k] && t[k].m(e, null);
|
|
928
948
|
l = !0, a || (s = [
|
|
929
949
|
D(
|
|
930
950
|
e,
|
|
931
951
|
"mouseleave",
|
|
932
952
|
/*mouseleave_handler*/
|
|
933
|
-
n[
|
|
953
|
+
n[65]
|
|
934
954
|
),
|
|
935
955
|
D(
|
|
936
956
|
e,
|
|
937
957
|
"blur",
|
|
938
958
|
/*blur_handler_1*/
|
|
939
|
-
n[
|
|
959
|
+
n[66]
|
|
940
960
|
)
|
|
941
961
|
], a = !0);
|
|
942
962
|
},
|
|
943
963
|
p(c, m) {
|
|
944
|
-
m[0] & /*listFeatures, showPlaceType, selectedItemIndex, missingIconsCache, pick*/
|
|
945
|
-
|
|
946
|
-
c[
|
|
964
|
+
m[0] & /*listFeatures, showPlaceType, selectedItemIndex, missingIconsCache, iconsBaseUrl, pick*/
|
|
965
|
+
8940544 && (f = /*listFeatures*/
|
|
966
|
+
c[13], ze(), t = ln(t, m, d, 1, c, f, r, e, rn, ct, null, it), Pe());
|
|
947
967
|
},
|
|
948
968
|
i(c) {
|
|
949
969
|
if (!l) {
|
|
950
970
|
for (let m = 0; m < f.length; m += 1)
|
|
951
|
-
|
|
971
|
+
j(t[m]);
|
|
952
972
|
l = !0;
|
|
953
973
|
}
|
|
954
974
|
},
|
|
955
975
|
o(c) {
|
|
956
976
|
for (let m = 0; m < t.length; m += 1)
|
|
957
|
-
|
|
977
|
+
O(t[m]);
|
|
958
978
|
l = !1;
|
|
959
979
|
},
|
|
960
980
|
d(c) {
|
|
961
|
-
c &&
|
|
981
|
+
c && z(e);
|
|
962
982
|
for (let m = 0; m < t.length; m += 1)
|
|
963
983
|
t[m].d();
|
|
964
|
-
a = !1,
|
|
984
|
+
a = !1, te(s);
|
|
965
985
|
}
|
|
966
986
|
};
|
|
967
987
|
}
|
|
968
|
-
function
|
|
988
|
+
function Bn(n) {
|
|
969
989
|
let e, t, r, l, a, s;
|
|
970
|
-
return t = new
|
|
990
|
+
return t = new bt({}), {
|
|
971
991
|
c() {
|
|
972
|
-
e =
|
|
992
|
+
e = E("div"), oe(t.$$.fragment), r = H(), l = E("div"), a = se(
|
|
973
993
|
/*noResultsMessage*/
|
|
974
994
|
n[7]
|
|
975
995
|
), o(l, "class", "svelte-1r7dvt7"), o(e, "class", "no-results svelte-1r7dvt7");
|
|
976
996
|
},
|
|
977
997
|
m(f, d) {
|
|
978
|
-
|
|
998
|
+
U(f, e, d), $(t, e, null), v(e, r), v(e, l), v(l, a), s = !0;
|
|
979
999
|
},
|
|
980
1000
|
p(f, d) {
|
|
981
1001
|
(!s || d[0] & /*noResultsMessage*/
|
|
@@ -986,13 +1006,13 @@ function Cn(n) {
|
|
|
986
1006
|
);
|
|
987
1007
|
},
|
|
988
1008
|
i(f) {
|
|
989
|
-
s || (
|
|
1009
|
+
s || (j(t.$$.fragment, f), s = !0);
|
|
990
1010
|
},
|
|
991
1011
|
o(f) {
|
|
992
|
-
|
|
1012
|
+
O(t.$$.fragment, f), s = !1;
|
|
993
1013
|
},
|
|
994
1014
|
d(f) {
|
|
995
|
-
f &&
|
|
1015
|
+
f && z(e), ee(t);
|
|
996
1016
|
}
|
|
997
1017
|
};
|
|
998
1018
|
}
|
|
@@ -1003,77 +1023,77 @@ function Rn(n) {
|
|
|
1003
1023
|
t = se(e);
|
|
1004
1024
|
},
|
|
1005
1025
|
m(r, l) {
|
|
1006
|
-
|
|
1026
|
+
U(r, t, l);
|
|
1007
1027
|
},
|
|
1008
|
-
p:
|
|
1009
|
-
i:
|
|
1010
|
-
o:
|
|
1028
|
+
p: S,
|
|
1029
|
+
i: S,
|
|
1030
|
+
o: S,
|
|
1011
1031
|
d(r) {
|
|
1012
|
-
r &&
|
|
1032
|
+
r && z(t);
|
|
1013
1033
|
}
|
|
1014
1034
|
};
|
|
1015
1035
|
}
|
|
1016
1036
|
function Ln(n) {
|
|
1017
|
-
let e, t, r, l, a, s, f, d, c, m,
|
|
1018
|
-
return t = new
|
|
1037
|
+
let e, t, r, l, a, s, f, d, c, m, k;
|
|
1038
|
+
return t = new bt({}), d = new yt({}), {
|
|
1019
1039
|
c() {
|
|
1020
|
-
e =
|
|
1040
|
+
e = E("div"), oe(t.$$.fragment), r = H(), l = E("div"), a = se(
|
|
1021
1041
|
/*errorMessage*/
|
|
1022
1042
|
n[6]
|
|
1023
|
-
), s =
|
|
1043
|
+
), s = H(), f = E("button"), oe(d.$$.fragment), o(l, "class", "svelte-1r7dvt7"), o(f, "class", "svelte-1r7dvt7"), o(e, "class", "error svelte-1r7dvt7");
|
|
1024
1044
|
},
|
|
1025
|
-
m(
|
|
1026
|
-
|
|
1045
|
+
m(g, C) {
|
|
1046
|
+
U(g, e, C), $(t, e, null), v(e, r), v(e, l), v(l, a), v(e, s), v(e, f), $(d, f, null), c = !0, m || (k = D(
|
|
1027
1047
|
f,
|
|
1028
1048
|
"click",
|
|
1029
1049
|
/*click_handler_3*/
|
|
1030
|
-
n[
|
|
1050
|
+
n[62]
|
|
1031
1051
|
), m = !0);
|
|
1032
1052
|
},
|
|
1033
|
-
p(
|
|
1034
|
-
(!c ||
|
|
1053
|
+
p(g, C) {
|
|
1054
|
+
(!c || C[0] & /*errorMessage*/
|
|
1035
1055
|
64) && Me(
|
|
1036
1056
|
a,
|
|
1037
1057
|
/*errorMessage*/
|
|
1038
|
-
|
|
1058
|
+
g[6]
|
|
1039
1059
|
);
|
|
1040
1060
|
},
|
|
1041
|
-
i(
|
|
1042
|
-
c || (
|
|
1061
|
+
i(g) {
|
|
1062
|
+
c || (j(t.$$.fragment, g), j(d.$$.fragment, g), c = !0);
|
|
1043
1063
|
},
|
|
1044
|
-
o(
|
|
1045
|
-
|
|
1064
|
+
o(g) {
|
|
1065
|
+
O(t.$$.fragment, g), O(d.$$.fragment, g), c = !1;
|
|
1046
1066
|
},
|
|
1047
|
-
d(
|
|
1048
|
-
|
|
1067
|
+
d(g) {
|
|
1068
|
+
g && z(e), ee(t), ee(d), m = !1, k();
|
|
1049
1069
|
}
|
|
1050
1070
|
};
|
|
1051
1071
|
}
|
|
1052
|
-
function
|
|
1072
|
+
function ct(n, e) {
|
|
1053
1073
|
let t, r, l;
|
|
1054
1074
|
function a() {
|
|
1055
1075
|
return (
|
|
1056
1076
|
/*mouseenter_handler*/
|
|
1057
|
-
e[
|
|
1077
|
+
e[63](
|
|
1058
1078
|
/*i*/
|
|
1059
|
-
e[
|
|
1079
|
+
e[77]
|
|
1060
1080
|
)
|
|
1061
1081
|
);
|
|
1062
1082
|
}
|
|
1063
1083
|
function s() {
|
|
1064
1084
|
return (
|
|
1065
1085
|
/*focus_handler_1*/
|
|
1066
|
-
e[
|
|
1086
|
+
e[64](
|
|
1067
1087
|
/*feature*/
|
|
1068
|
-
e[
|
|
1088
|
+
e[75]
|
|
1069
1089
|
)
|
|
1070
1090
|
);
|
|
1071
1091
|
}
|
|
1072
|
-
return r = new
|
|
1092
|
+
return r = new bn({
|
|
1073
1093
|
props: {
|
|
1074
1094
|
feature: (
|
|
1075
1095
|
/*feature*/
|
|
1076
|
-
e[
|
|
1096
|
+
e[75]
|
|
1077
1097
|
),
|
|
1078
1098
|
showPlaceType: (
|
|
1079
1099
|
/*showPlaceType*/
|
|
@@ -1081,86 +1101,92 @@ function ot(n, e) {
|
|
|
1081
1101
|
),
|
|
1082
1102
|
selected: (
|
|
1083
1103
|
/*selectedItemIndex*/
|
|
1084
|
-
e[
|
|
1085
|
-
e[
|
|
1104
|
+
e[14] === /*i*/
|
|
1105
|
+
e[77]
|
|
1086
1106
|
),
|
|
1087
1107
|
missingIconsCache: (
|
|
1088
1108
|
/*missingIconsCache*/
|
|
1089
|
-
e[
|
|
1109
|
+
e[19]
|
|
1110
|
+
),
|
|
1111
|
+
iconsBaseUrl: (
|
|
1112
|
+
/*iconsBaseUrl*/
|
|
1113
|
+
e[11]
|
|
1090
1114
|
)
|
|
1091
1115
|
}
|
|
1092
1116
|
}), r.$on("mouseenter", a), r.$on("focus", s), {
|
|
1093
1117
|
key: n,
|
|
1094
1118
|
first: null,
|
|
1095
1119
|
c() {
|
|
1096
|
-
t =
|
|
1120
|
+
t = Ht(), oe(r.$$.fragment), this.first = t;
|
|
1097
1121
|
},
|
|
1098
1122
|
m(f, d) {
|
|
1099
|
-
|
|
1123
|
+
U(f, t, d), $(r, f, d), l = !0;
|
|
1100
1124
|
},
|
|
1101
1125
|
p(f, d) {
|
|
1102
1126
|
e = f;
|
|
1103
1127
|
const c = {};
|
|
1104
1128
|
d[0] & /*listFeatures*/
|
|
1105
|
-
|
|
1106
|
-
e[
|
|
1129
|
+
8192 && (c.feature = /*feature*/
|
|
1130
|
+
e[75]), d[0] & /*showPlaceType*/
|
|
1107
1131
|
1024 && (c.showPlaceType = /*showPlaceType*/
|
|
1108
1132
|
e[10]), d[0] & /*selectedItemIndex, listFeatures*/
|
|
1109
|
-
|
|
1110
|
-
e[
|
|
1111
|
-
e[
|
|
1133
|
+
24576 && (c.selected = /*selectedItemIndex*/
|
|
1134
|
+
e[14] === /*i*/
|
|
1135
|
+
e[77]), d[0] & /*iconsBaseUrl*/
|
|
1136
|
+
2048 && (c.iconsBaseUrl = /*iconsBaseUrl*/
|
|
1137
|
+
e[11]), r.$set(c);
|
|
1112
1138
|
},
|
|
1113
1139
|
i(f) {
|
|
1114
|
-
l || (
|
|
1140
|
+
l || (j(r.$$.fragment, f), l = !0);
|
|
1115
1141
|
},
|
|
1116
1142
|
o(f) {
|
|
1117
|
-
|
|
1143
|
+
O(r.$$.fragment, f), l = !1;
|
|
1118
1144
|
},
|
|
1119
1145
|
d(f) {
|
|
1120
|
-
f &&
|
|
1146
|
+
f && z(t), ee(r, f);
|
|
1121
1147
|
}
|
|
1122
1148
|
};
|
|
1123
1149
|
}
|
|
1124
1150
|
function En(n) {
|
|
1125
|
-
let e, t, r, l, a, s, f, d, c, m,
|
|
1126
|
-
l = new
|
|
1151
|
+
let e, t, r, l, a, s, f, d, c, m, k, g, C, I, T, M, A, y, F, G;
|
|
1152
|
+
l = new Mn({}), m = new yt({});
|
|
1127
1153
|
let h = (
|
|
1128
1154
|
/*abortController*/
|
|
1129
|
-
n[
|
|
1130
|
-
),
|
|
1155
|
+
n[18] && st()
|
|
1156
|
+
), b = (
|
|
1131
1157
|
/*enableReverse*/
|
|
1132
|
-
n[5] === !0 &&
|
|
1158
|
+
n[5] === !0 && ot(n)
|
|
1133
1159
|
);
|
|
1134
|
-
const
|
|
1160
|
+
const B = (
|
|
1135
1161
|
/*#slots*/
|
|
1136
|
-
n[
|
|
1137
|
-
), R =
|
|
1138
|
-
|
|
1162
|
+
n[53].default
|
|
1163
|
+
), R = qt(
|
|
1164
|
+
B,
|
|
1139
1165
|
n,
|
|
1140
1166
|
/*$$scope*/
|
|
1141
|
-
n[
|
|
1167
|
+
n[52],
|
|
1142
1168
|
null
|
|
1143
|
-
), _ = [Ln, Rn,
|
|
1144
|
-
function
|
|
1145
|
-
var
|
|
1169
|
+
), _ = [Ln, Rn, Bn, Cn], w = [];
|
|
1170
|
+
function Q(u, P) {
|
|
1171
|
+
var x, ce;
|
|
1146
1172
|
return (
|
|
1147
1173
|
/*error*/
|
|
1148
|
-
u[
|
|
1174
|
+
u[17] ? 0 : (
|
|
1149
1175
|
/*focusedDelayed*/
|
|
1150
|
-
u[
|
|
1176
|
+
u[15] ? (
|
|
1151
1177
|
/*listFeatures*/
|
|
1152
|
-
((
|
|
1178
|
+
((x = u[13]) == null ? void 0 : x.length) === 0 ? 2 : (
|
|
1153
1179
|
/*focusedDelayed*/
|
|
1154
|
-
u[
|
|
1155
|
-
((ce = u[
|
|
1180
|
+
u[15] && /*listFeatures*/
|
|
1181
|
+
((ce = u[13]) != null && ce.length) ? 3 : -1
|
|
1156
1182
|
)
|
|
1157
1183
|
) : 1
|
|
1158
1184
|
)
|
|
1159
1185
|
);
|
|
1160
1186
|
}
|
|
1161
|
-
return ~(T =
|
|
1187
|
+
return ~(T = Q(n)) && (M = w[T] = _[T](n)), {
|
|
1162
1188
|
c() {
|
|
1163
|
-
e =
|
|
1189
|
+
e = E("form"), t = E("div"), r = E("button"), oe(l.$$.fragment), a = H(), s = E("input"), f = H(), d = E("div"), c = E("button"), oe(m.$$.fragment), k = H(), h && h.c(), g = H(), b && b.c(), C = H(), R && R.c(), I = H(), M && M.c(), o(r, "class", "search-button svelte-1r7dvt7"), o(r, "type", "button"), o(
|
|
1164
1190
|
s,
|
|
1165
1191
|
"placeholder",
|
|
1166
1192
|
/*placeholder*/
|
|
@@ -1175,15 +1201,15 @@ function En(n) {
|
|
|
1175
1201
|
"title",
|
|
1176
1202
|
/*clearButtonTitle*/
|
|
1177
1203
|
n[3]
|
|
1178
|
-
), o(c, "class", "svelte-1r7dvt7"), o(d, "class", "clear-button-container svelte-1r7dvt7"),
|
|
1204
|
+
), o(c, "class", "svelte-1r7dvt7"), o(d, "class", "clear-button-container svelte-1r7dvt7"), le(
|
|
1179
1205
|
d,
|
|
1180
1206
|
"displayable",
|
|
1181
1207
|
/*searchValue*/
|
|
1182
1208
|
n[1] !== ""
|
|
1183
|
-
), o(t, "class", "input-group svelte-1r7dvt7"), o(e, "tabindex", "0"), o(e, "class",
|
|
1209
|
+
), o(t, "class", "input-group svelte-1r7dvt7"), o(e, "tabindex", "0"), o(e, "class", A = et(
|
|
1184
1210
|
/*className*/
|
|
1185
1211
|
n[2]
|
|
1186
|
-
) + " svelte-1r7dvt7"),
|
|
1212
|
+
) + " svelte-1r7dvt7"), le(
|
|
1187
1213
|
e,
|
|
1188
1214
|
"can-collapse",
|
|
1189
1215
|
/*collapsed*/
|
|
@@ -1191,127 +1217,127 @@ function En(n) {
|
|
|
1191
1217
|
n[1] === ""
|
|
1192
1218
|
);
|
|
1193
1219
|
},
|
|
1194
|
-
m(u,
|
|
1195
|
-
|
|
1220
|
+
m(u, P) {
|
|
1221
|
+
U(u, e, P), v(e, t), v(t, r), $(l, r, null), v(t, a), v(t, s), n[55](s), tt(
|
|
1196
1222
|
s,
|
|
1197
1223
|
/*searchValue*/
|
|
1198
1224
|
n[1]
|
|
1199
|
-
), v(t, f), v(t, d), v(d, c),
|
|
1225
|
+
), v(t, f), v(t, d), v(d, c), $(m, c, null), v(d, k), h && h.m(d, null), v(t, g), b && b.m(t, null), v(t, C), R && R.m(t, null), v(e, I), ~T && w[T].m(e, null), y = !0, F || (G = [
|
|
1200
1226
|
D(
|
|
1201
1227
|
r,
|
|
1202
1228
|
"click",
|
|
1203
1229
|
/*click_handler*/
|
|
1204
|
-
n[
|
|
1230
|
+
n[54]
|
|
1205
1231
|
),
|
|
1206
1232
|
D(
|
|
1207
1233
|
s,
|
|
1208
1234
|
"input",
|
|
1209
1235
|
/*input_1_input_handler*/
|
|
1210
|
-
n[
|
|
1236
|
+
n[56]
|
|
1211
1237
|
),
|
|
1212
1238
|
D(
|
|
1213
1239
|
s,
|
|
1214
1240
|
"focus",
|
|
1215
1241
|
/*focus_handler*/
|
|
1216
|
-
n[
|
|
1242
|
+
n[57]
|
|
1217
1243
|
),
|
|
1218
1244
|
D(
|
|
1219
1245
|
s,
|
|
1220
1246
|
"blur",
|
|
1221
1247
|
/*blur_handler*/
|
|
1222
|
-
n[
|
|
1248
|
+
n[58]
|
|
1223
1249
|
),
|
|
1224
1250
|
D(
|
|
1225
1251
|
s,
|
|
1226
1252
|
"keydown",
|
|
1227
1253
|
/*handleKeyDown*/
|
|
1228
|
-
n[
|
|
1254
|
+
n[21]
|
|
1229
1255
|
),
|
|
1230
1256
|
D(
|
|
1231
1257
|
s,
|
|
1232
1258
|
"input",
|
|
1233
1259
|
/*input_handler*/
|
|
1234
|
-
n[
|
|
1260
|
+
n[59]
|
|
1235
1261
|
),
|
|
1236
1262
|
D(
|
|
1237
1263
|
c,
|
|
1238
1264
|
"click",
|
|
1239
1265
|
/*click_handler_1*/
|
|
1240
|
-
n[
|
|
1266
|
+
n[60]
|
|
1241
1267
|
),
|
|
1242
|
-
D(e, "submit",
|
|
1268
|
+
D(e, "submit", Qt(
|
|
1243
1269
|
/*handleOnSubmit*/
|
|
1244
|
-
n[
|
|
1270
|
+
n[20]
|
|
1245
1271
|
))
|
|
1246
|
-
],
|
|
1272
|
+
], F = !0);
|
|
1247
1273
|
},
|
|
1248
|
-
p(u,
|
|
1249
|
-
(!
|
|
1274
|
+
p(u, P) {
|
|
1275
|
+
(!y || P[0] & /*placeholder*/
|
|
1250
1276
|
256) && o(
|
|
1251
1277
|
s,
|
|
1252
1278
|
"placeholder",
|
|
1253
1279
|
/*placeholder*/
|
|
1254
1280
|
u[8]
|
|
1255
|
-
), (!
|
|
1281
|
+
), (!y || P[0] & /*placeholder*/
|
|
1256
1282
|
256) && o(
|
|
1257
1283
|
s,
|
|
1258
1284
|
"aria-label",
|
|
1259
1285
|
/*placeholder*/
|
|
1260
1286
|
u[8]
|
|
1261
|
-
),
|
|
1287
|
+
), P[0] & /*searchValue*/
|
|
1262
1288
|
2 && s.value !== /*searchValue*/
|
|
1263
|
-
u[1] &&
|
|
1289
|
+
u[1] && tt(
|
|
1264
1290
|
s,
|
|
1265
1291
|
/*searchValue*/
|
|
1266
1292
|
u[1]
|
|
1267
|
-
), (!
|
|
1293
|
+
), (!y || P[0] & /*clearButtonTitle*/
|
|
1268
1294
|
8) && o(
|
|
1269
1295
|
c,
|
|
1270
1296
|
"title",
|
|
1271
1297
|
/*clearButtonTitle*/
|
|
1272
1298
|
u[3]
|
|
1273
1299
|
), /*abortController*/
|
|
1274
|
-
u[
|
|
1275
|
-
|
|
1300
|
+
u[18] ? h ? P[0] & /*abortController*/
|
|
1301
|
+
262144 && j(h, 1) : (h = st(), h.c(), j(h, 1), h.m(d, null)) : h && (ze(), O(h, 1, 1, () => {
|
|
1276
1302
|
h = null;
|
|
1277
|
-
}), Pe()), (!
|
|
1278
|
-
2) &&
|
|
1303
|
+
}), Pe()), (!y || P[0] & /*searchValue*/
|
|
1304
|
+
2) && le(
|
|
1279
1305
|
d,
|
|
1280
1306
|
"displayable",
|
|
1281
1307
|
/*searchValue*/
|
|
1282
1308
|
u[1] !== ""
|
|
1283
1309
|
), /*enableReverse*/
|
|
1284
|
-
u[5] === !0 ?
|
|
1285
|
-
32 &&
|
|
1286
|
-
|
|
1287
|
-
}), Pe()), R && R.p && (!
|
|
1288
|
-
|
|
1310
|
+
u[5] === !0 ? b ? (b.p(u, P), P[0] & /*enableReverse*/
|
|
1311
|
+
32 && j(b, 1)) : (b = ot(u), b.c(), j(b, 1), b.m(t, C)) : b && (ze(), O(b, 1, 1, () => {
|
|
1312
|
+
b = null;
|
|
1313
|
+
}), Pe()), R && R.p && (!y || P[1] & /*$$scope*/
|
|
1314
|
+
2097152) && Kt(
|
|
1289
1315
|
R,
|
|
1290
|
-
|
|
1316
|
+
B,
|
|
1291
1317
|
u,
|
|
1292
1318
|
/*$$scope*/
|
|
1293
|
-
u[
|
|
1294
|
-
|
|
1295
|
-
|
|
1319
|
+
u[52],
|
|
1320
|
+
y ? Dt(
|
|
1321
|
+
B,
|
|
1296
1322
|
/*$$scope*/
|
|
1297
|
-
u[
|
|
1298
|
-
|
|
1323
|
+
u[52],
|
|
1324
|
+
P,
|
|
1299
1325
|
null
|
|
1300
|
-
) :
|
|
1326
|
+
) : Vt(
|
|
1301
1327
|
/*$$scope*/
|
|
1302
|
-
u[
|
|
1328
|
+
u[52]
|
|
1303
1329
|
),
|
|
1304
1330
|
null
|
|
1305
1331
|
);
|
|
1306
|
-
let
|
|
1307
|
-
T =
|
|
1308
|
-
w[
|
|
1309
|
-
}), Pe()), ~T ? (M = w[T], M ? M.p(u,
|
|
1310
|
-
4 &&
|
|
1332
|
+
let x = T;
|
|
1333
|
+
T = Q(u), T === x ? ~T && w[T].p(u, P) : (M && (ze(), O(w[x], 1, 1, () => {
|
|
1334
|
+
w[x] = null;
|
|
1335
|
+
}), Pe()), ~T ? (M = w[T], M ? M.p(u, P) : (M = w[T] = _[T](u), M.c()), j(M, 1), M.m(e, null)) : M = null), (!y || P[0] & /*className*/
|
|
1336
|
+
4 && A !== (A = et(
|
|
1311
1337
|
/*className*/
|
|
1312
1338
|
u[2]
|
|
1313
|
-
) + " svelte-1r7dvt7")) && o(e, "class",
|
|
1314
|
-
22) &&
|
|
1339
|
+
) + " svelte-1r7dvt7")) && o(e, "class", A), (!y || P[0] & /*className, collapsed, searchValue*/
|
|
1340
|
+
22) && le(
|
|
1315
1341
|
e,
|
|
1316
1342
|
"can-collapse",
|
|
1317
1343
|
/*collapsed*/
|
|
@@ -1320,13 +1346,13 @@ function En(n) {
|
|
|
1320
1346
|
);
|
|
1321
1347
|
},
|
|
1322
1348
|
i(u) {
|
|
1323
|
-
|
|
1349
|
+
y || (j(l.$$.fragment, u), j(m.$$.fragment, u), j(h), j(b), j(R, u), j(M), y = !0);
|
|
1324
1350
|
},
|
|
1325
1351
|
o(u) {
|
|
1326
|
-
|
|
1352
|
+
O(l.$$.fragment, u), O(m.$$.fragment, u), O(h), O(b), O(R, u), O(M), y = !1;
|
|
1327
1353
|
},
|
|
1328
1354
|
d(u) {
|
|
1329
|
-
u &&
|
|
1355
|
+
u && z(e), ee(l), n[55](null), ee(m), h && h.d(), b && b.d(), R && R.d(u), ~T && w[T].d(), F = !1, te(G);
|
|
1330
1356
|
}
|
|
1331
1357
|
};
|
|
1332
1358
|
}
|
|
@@ -1334,238 +1360,238 @@ function In(n, e, t) {
|
|
|
1334
1360
|
const r = e[1], l = e[0], a = r - l;
|
|
1335
1361
|
return n === r && t ? n : ((n - l) % a + a) % a + l;
|
|
1336
1362
|
}
|
|
1337
|
-
function
|
|
1363
|
+
function ft(n) {
|
|
1338
1364
|
let e = [...n];
|
|
1339
1365
|
return e[2] < e[0] && (e[2] += 360), e;
|
|
1340
1366
|
}
|
|
1341
1367
|
function Sn(n, e, t) {
|
|
1342
|
-
let r, { $$slots: l = {}, $$scope: a } = e, { class: s = void 0 } = e, { apiKey: f } = e, { bbox: d = void 0 } = e, { clearButtonTitle: c = "clear" } = e, { clearOnBlur: m = !1 } = e, { collapsed:
|
|
1343
|
-
function bt() {
|
|
1344
|
-
Q.focus();
|
|
1345
|
-
}
|
|
1368
|
+
let r, { $$slots: l = {}, $$scope: a } = e, { class: s = void 0 } = e, { apiKey: f } = e, { bbox: d = void 0 } = e, { clearButtonTitle: c = "clear" } = e, { clearOnBlur: m = !1 } = e, { collapsed: k = !1 } = e, { country: g = void 0 } = e, { debounceSearch: C = 200 } = e, { enableReverse: I = !1 } = e, { errorMessage: T = "Something went wrong…" } = e, { filter: M = () => !0 } = e, { flyTo: A = !0 } = e, { fuzzyMatch: y = !0 } = e, { language: F = void 0 } = e, { limit: G = void 0 } = e, { mapController: h = void 0 } = e, { minLength: b = 2 } = e, { noResultsMessage: B = "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: R = "Search" } = e, { proximity: _ = void 0 } = e, { reverseActive: w = I === "always" } = e, { reverseButtonTitle: Q = "toggle reverse geocoding" } = e, { searchValue: u = "" } = e, { showFullGeometry: P = !0 } = e, { showPlaceType: x = "ifNeeded" } = e, { showResultsWhileTyping: ce = !0 } = e, { trackProximity: Be = !0 } = e, { types: fe = void 0 } = e, { zoom: Re = 16 } = e, { maxZoom: pe = 18 } = e, { apiUrl: Ue = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: Ae = {} } = e, { iconsBaseUrl: He = "icons/" } = e;
|
|
1346
1369
|
function wt() {
|
|
1347
|
-
|
|
1370
|
+
J.focus();
|
|
1348
1371
|
}
|
|
1349
|
-
function
|
|
1350
|
-
|
|
1351
|
-
|
|
1372
|
+
function kt() {
|
|
1373
|
+
J.blur();
|
|
1374
|
+
}
|
|
1375
|
+
function Qe(i, N = !0) {
|
|
1376
|
+
t(1, u = i), N ? (t(14, W = -1), Xe()) : (je(), setTimeout(() => {
|
|
1377
|
+
J.focus(), J.select();
|
|
1352
1378
|
}));
|
|
1353
1379
|
}
|
|
1354
|
-
let ge = !1, L,
|
|
1355
|
-
const
|
|
1356
|
-
|
|
1380
|
+
let ge = !1, L, Z, p, Je = "", J, W = -1, X, Le = [], ue, ye, Ee, We;
|
|
1381
|
+
const vt = /* @__PURE__ */ new Set(), ne = xt();
|
|
1382
|
+
Yt(() => {
|
|
1357
1383
|
h && (h.setEventHandler(void 0), h.indicateReverse(!1), h.setSelectedMarker(-1), h.setMarkers(void 0, void 0));
|
|
1358
1384
|
});
|
|
1359
|
-
function
|
|
1360
|
-
if (ye && (clearTimeout(ye), ye = void 0),
|
|
1361
|
-
t(
|
|
1385
|
+
function Xe(i) {
|
|
1386
|
+
if (ye && (clearTimeout(ye), ye = void 0), W > -1 && L)
|
|
1387
|
+
t(49, p = L[W]), t(1, u = p.place_name.replace(/,.*/, "")), t(17, X = void 0), t(48, Z = void 0), t(14, W = -1);
|
|
1362
1388
|
else if (u) {
|
|
1363
|
-
const
|
|
1364
|
-
|
|
1365
|
-
t(
|
|
1366
|
-
}).catch((
|
|
1389
|
+
const N = i || !Ye();
|
|
1390
|
+
Ne(u, { exact: !0 }).then(() => {
|
|
1391
|
+
t(48, Z = L), t(49, p = void 0), N && pt();
|
|
1392
|
+
}).catch((Y) => t(17, X = Y));
|
|
1367
1393
|
}
|
|
1368
1394
|
}
|
|
1369
|
-
function
|
|
1395
|
+
function Ye() {
|
|
1370
1396
|
return /^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(u);
|
|
1371
1397
|
}
|
|
1372
|
-
async function
|
|
1373
|
-
t(
|
|
1374
|
-
const be =
|
|
1375
|
-
|
|
1376
|
-
const ae =
|
|
1377
|
-
if (ae ===
|
|
1378
|
-
|
|
1398
|
+
async function Ne(i, { byId: N = !1, exact: Y = !1 } = {}) {
|
|
1399
|
+
t(17, X = void 0);
|
|
1400
|
+
const be = Ye(), V = new URLSearchParams();
|
|
1401
|
+
F != null && V.set("language", Array.isArray(F) ? F.join(",") : F), fe && V.set("types", fe.join(",")), be || (d && V.set("bbox", d.map((re) => re.toFixed(6)).join(",")), g && V.set("country", Array.isArray(g) ? g.join(",") : g)), N || (_ && V.set("proximity", _.map((re) => re.toFixed(6)).join(",")), (Y || !ce) && V.set("autocomplete", "false"), V.set("fuzzyMatch", String(y))), G !== void 0 && (!be || (fe == null ? void 0 : fe.length) === 1) && V.set("limit", String(G)), V.set("key", f);
|
|
1402
|
+
const ae = Ue + "/" + encodeURIComponent(i) + ".json?" + V.toString();
|
|
1403
|
+
if (ae === Je) {
|
|
1404
|
+
N ? (t(13, L = void 0), t(49, p = Le[0])) : t(13, L = Le);
|
|
1379
1405
|
return;
|
|
1380
1406
|
}
|
|
1381
|
-
|
|
1407
|
+
Je = ae, ue == null || ue.abort();
|
|
1382
1408
|
const q = new AbortController();
|
|
1383
|
-
t(
|
|
1384
|
-
let
|
|
1409
|
+
t(18, ue = q);
|
|
1410
|
+
let Ge;
|
|
1385
1411
|
try {
|
|
1386
|
-
|
|
1387
|
-
q === ue && t(
|
|
1412
|
+
Ge = await fetch(ae, { signal: q.signal, ...Ae }).finally(() => {
|
|
1413
|
+
q === ue && t(18, ue = void 0);
|
|
1388
1414
|
});
|
|
1389
|
-
} catch (
|
|
1390
|
-
if (
|
|
1415
|
+
} catch (re) {
|
|
1416
|
+
if (re && typeof re == "object" && "name" in re && re.name === "AbortError")
|
|
1391
1417
|
return;
|
|
1392
1418
|
throw new Error();
|
|
1393
1419
|
}
|
|
1394
|
-
if (!
|
|
1420
|
+
if (!Ge.ok)
|
|
1395
1421
|
throw new Error();
|
|
1396
|
-
const
|
|
1397
|
-
|
|
1422
|
+
const Oe = await Ge.json();
|
|
1423
|
+
ne("response", { url: ae, featureCollection: Oe }), N ? (t(13, L = void 0), t(49, p = Oe.features[0]), Le = [p]) : (t(13, L = Oe.features.filter(M)), Le = L, be && J.focus());
|
|
1398
1424
|
}
|
|
1399
|
-
function
|
|
1400
|
-
var
|
|
1401
|
-
if (!(
|
|
1425
|
+
function pt() {
|
|
1426
|
+
var Y, be, V, ae;
|
|
1427
|
+
if (!(Z != null && Z.length) || !A)
|
|
1402
1428
|
return;
|
|
1403
|
-
const i = [180, 90, -180, -90],
|
|
1404
|
-
for (const q of
|
|
1405
|
-
(
|
|
1406
|
-
h &&
|
|
1407
|
-
}
|
|
1408
|
-
function pt(i) {
|
|
1409
|
-
t(0, w = S === "always"), He(In(i[0], [-180, 180], !0).toFixed(6) + "," + i[1].toFixed(6));
|
|
1429
|
+
const i = [180, 90, -180, -90], N = !Z.some((q) => !q.matching_text);
|
|
1430
|
+
for (const q of Z)
|
|
1431
|
+
(N || !q.matching_text) && (i[0] = Math.min(i[0], ((Y = q.bbox) == null ? void 0 : Y[0]) ?? q.center[0]), i[1] = Math.min(i[1], ((be = q.bbox) == null ? void 0 : be[1]) ?? q.center[1]), i[2] = Math.max(i[2], ((V = q.bbox) == null ? void 0 : V[2]) ?? q.center[0]), i[3] = Math.max(i[3], ((ae = q.bbox) == null ? void 0 : ae[3]) ?? q.center[1]));
|
|
1432
|
+
h && Z.length > 0 && (p && i[0] === i[2] && i[1] === i[3] ? h.flyTo(p.center, Re) : h.fitBounds(ft(i), 50, pe));
|
|
1410
1433
|
}
|
|
1411
1434
|
function Tt(i) {
|
|
1435
|
+
t(0, w = I === "always"), Qe(In(i[0], [-180, 180], !0).toFixed(6) + "," + i[1].toFixed(6));
|
|
1436
|
+
}
|
|
1437
|
+
function Mt(i) {
|
|
1412
1438
|
if (!L)
|
|
1413
1439
|
return;
|
|
1414
|
-
let
|
|
1415
|
-
|
|
1440
|
+
let N = i.key === "ArrowDown" ? 1 : i.key === "ArrowUp" ? -1 : 0;
|
|
1441
|
+
N ? (W === -1 && N === -1 && t(14, W = L.length), t(14, W += N), W >= L.length && t(14, W = -1), i.preventDefault()) : ["ArrowLeft", "ArrowRight", "Home", "End"].includes(i.key) && t(14, W = -1);
|
|
1416
1442
|
}
|
|
1417
|
-
function
|
|
1418
|
-
if (t(
|
|
1419
|
-
if (ye && clearTimeout(ye), u.length <
|
|
1443
|
+
function je(i = !0) {
|
|
1444
|
+
if (t(17, X = void 0), ce) {
|
|
1445
|
+
if (ye && clearTimeout(ye), u.length < b)
|
|
1420
1446
|
return;
|
|
1421
|
-
const
|
|
1447
|
+
const N = u;
|
|
1422
1448
|
ye = window.setTimeout(
|
|
1423
1449
|
() => {
|
|
1424
|
-
|
|
1450
|
+
Ne(N).catch((Y) => t(17, X = Y));
|
|
1425
1451
|
},
|
|
1426
|
-
i ?
|
|
1452
|
+
i ? C : 0
|
|
1427
1453
|
);
|
|
1428
1454
|
} else
|
|
1429
|
-
t(
|
|
1455
|
+
t(13, L = void 0), t(17, X = void 0);
|
|
1430
1456
|
}
|
|
1431
|
-
function
|
|
1432
|
-
t(
|
|
1457
|
+
function Fe(i) {
|
|
1458
|
+
t(49, p = i), t(1, u = i.place_name), t(14, W = -1);
|
|
1433
1459
|
}
|
|
1434
|
-
const
|
|
1435
|
-
function
|
|
1460
|
+
const Ct = () => J.focus();
|
|
1461
|
+
function Bt(i) {
|
|
1436
1462
|
De[i ? "unshift" : "push"](() => {
|
|
1437
|
-
|
|
1463
|
+
J = i, t(16, J);
|
|
1438
1464
|
});
|
|
1439
1465
|
}
|
|
1440
1466
|
function Rt() {
|
|
1441
|
-
u = this.value, t(1, u), t(
|
|
1467
|
+
u = this.value, t(1, u), t(12, ge), t(27, m);
|
|
1442
1468
|
}
|
|
1443
|
-
const Lt = () => t(
|
|
1444
|
-
t(1, u = ""),
|
|
1445
|
-
}, zt = () => t(0, w = !w),
|
|
1469
|
+
const Lt = () => t(12, ge = !0), Et = () => t(12, ge = !1), It = () => je(), St = () => {
|
|
1470
|
+
t(1, u = ""), J.focus();
|
|
1471
|
+
}, zt = () => t(0, w = !w), Pt = () => t(17, X = void 0), Ut = (i) => t(14, W = i), At = (i) => Fe(i), Wt = () => t(14, W = -1), Nt = () => {
|
|
1446
1472
|
};
|
|
1447
1473
|
return n.$$set = (i) => {
|
|
1448
|
-
"class" in i && t(2, s = i.class), "apiKey" in i && t(
|
|
1474
|
+
"class" in i && t(2, s = i.class), "apiKey" in i && t(25, f = i.apiKey), "bbox" in i && t(26, d = i.bbox), "clearButtonTitle" in i && t(3, c = i.clearButtonTitle), "clearOnBlur" in i && t(27, m = i.clearOnBlur), "collapsed" in i && t(4, k = i.collapsed), "country" in i && t(28, g = i.country), "debounceSearch" in i && t(29, C = i.debounceSearch), "enableReverse" in i && t(5, I = i.enableReverse), "errorMessage" in i && t(6, T = i.errorMessage), "filter" in i && t(30, M = i.filter), "flyTo" in i && t(31, A = i.flyTo), "fuzzyMatch" in i && t(32, y = i.fuzzyMatch), "language" in i && t(33, F = i.language), "limit" in i && t(34, G = i.limit), "mapController" in i && t(35, h = i.mapController), "minLength" in i && t(36, b = i.minLength), "noResultsMessage" in i && t(7, B = i.noResultsMessage), "placeholder" in i && t(8, R = i.placeholder), "proximity" in i && t(24, _ = i.proximity), "reverseActive" in i && t(0, w = i.reverseActive), "reverseButtonTitle" in i && t(9, Q = i.reverseButtonTitle), "searchValue" in i && t(1, u = i.searchValue), "showFullGeometry" in i && t(37, P = i.showFullGeometry), "showPlaceType" in i && t(10, x = i.showPlaceType), "showResultsWhileTyping" in i && t(38, ce = i.showResultsWhileTyping), "trackProximity" in i && t(39, Be = i.trackProximity), "types" in i && t(40, fe = i.types), "zoom" in i && t(41, Re = i.zoom), "maxZoom" in i && t(42, pe = i.maxZoom), "apiUrl" in i && t(43, Ue = i.apiUrl), "fetchParameters" in i && t(44, Ae = i.fetchParameters), "iconsBaseUrl" in i && t(11, He = i.iconsBaseUrl), "$$scope" in i && t(52, a = i.$$scope);
|
|
1449
1475
|
}, n.$$.update = () => {
|
|
1450
1476
|
if (n.$$.dirty[1] & /*trackProximity*/
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
t(
|
|
1477
|
+
256 && (Be || t(24, _ = void 0)), n.$$.dirty[0] & /*focused, clearOnBlur*/
|
|
1478
|
+
134221824 && setTimeout(() => {
|
|
1479
|
+
t(15, Ee = ge), m && !ge && t(1, u = "");
|
|
1454
1480
|
}), n.$$.dirty[0] & /*searchValue, listFeatures*/
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
136 && h && h.setEventHandler((i) => {
|
|
1481
|
+
8194 | n.$$.dirty[1] & /*minLength*/
|
|
1482
|
+
32 && u.length < b && (t(49, p = void 0), t(13, L = void 0), t(17, X = void 0), t(48, Z = L)), n.$$.dirty[1] & /*showFullGeometry, picked*/
|
|
1483
|
+
262208 && P && p && !p.address && p.geometry.type === "Point" && Ne(p.id, { byId: !0 }).catch((i) => t(17, X = i)), n.$$.dirty[1] & /*mapController, picked, prevIdToFly, flyTo, maxZoom, zoom*/
|
|
1484
|
+
789521 && (h && p && p.id !== We && A && (!p.bbox || p.bbox[0] === p.bbox[2] && p.bbox[1] === p.bbox[3] ? h.flyTo(p.center, p.id.startsWith("poi.") || p.id.startsWith("address.") ? pe : Re) : h.fitBounds(ft(p.bbox), 50, pe), t(13, L = void 0), t(48, Z = void 0), t(14, W = -1)), t(50, We = p == null ? void 0 : p.id)), n.$$.dirty[0] & /*listFeatures*/
|
|
1485
|
+
8192 | n.$$.dirty[1] & /*markedFeatures*/
|
|
1486
|
+
131072 && Z !== L && t(48, Z = void 0), n.$$.dirty[1] & /*mapController, markedFeatures, picked*/
|
|
1487
|
+
393232 && h && h.setMarkers(Z, p), n.$$.dirty[0] & /*searchValue*/
|
|
1488
|
+
2 && t(14, W = -1), n.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
|
|
1489
|
+
40961 | n.$$.dirty[1] & /*mapController, trackProximity*/
|
|
1490
|
+
272 && h && h.setEventHandler((i) => {
|
|
1466
1491
|
switch (i.type) {
|
|
1467
1492
|
case "mapClick":
|
|
1468
|
-
w &&
|
|
1493
|
+
w && Tt(i.coordinates);
|
|
1469
1494
|
break;
|
|
1470
1495
|
case "proximityChange":
|
|
1471
|
-
t(
|
|
1496
|
+
t(24, _ = Be ? i.proximity : void 0);
|
|
1472
1497
|
break;
|
|
1473
1498
|
case "markerClick":
|
|
1474
1499
|
{
|
|
1475
|
-
const
|
|
1476
|
-
|
|
1500
|
+
const N = L == null ? void 0 : L.find((Y) => Y.id === i.id);
|
|
1501
|
+
N && Fe(N);
|
|
1477
1502
|
}
|
|
1478
1503
|
break;
|
|
1479
1504
|
case "markerMouseEnter":
|
|
1480
|
-
t(
|
|
1505
|
+
t(14, W = Ee ? (L == null ? void 0 : L.findIndex((N) => N.id === i.id)) ?? -1 : -1);
|
|
1481
1506
|
break;
|
|
1482
1507
|
case "markerMouseLeave":
|
|
1483
|
-
t(
|
|
1508
|
+
t(14, W = -1);
|
|
1484
1509
|
break;
|
|
1485
1510
|
}
|
|
1486
1511
|
}), n.$$.dirty[0] & /*selectedItemIndex*/
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1512
|
+
16384 | n.$$.dirty[1] & /*mapController*/
|
|
1513
|
+
16 && (h == null || h.setSelectedMarker(W)), n.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
|
|
1514
|
+
24576 && t(51, r = L == null ? void 0 : L[W]), n.$$.dirty[0] & /*searchValue*/
|
|
1490
1515
|
2 | n.$$.dirty[1] & /*mapController*/
|
|
1491
|
-
|
|
1516
|
+
16) {
|
|
1492
1517
|
const i = /^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(u);
|
|
1493
1518
|
h == null || h.setReverseMarker(i ? [Number(i[1]), Number(i[2])] : void 0);
|
|
1494
1519
|
}
|
|
1495
1520
|
n.$$.dirty[1] & /*selected*/
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
1 &&
|
|
1502
|
-
2 &&
|
|
1521
|
+
1048576 && ne("select", r), n.$$.dirty[1] & /*picked*/
|
|
1522
|
+
262144 && ne("pick", p), n.$$.dirty[0] & /*focusedDelayed, listFeatures*/
|
|
1523
|
+
40960 && ne("optionsVisibilityChange", Ee && !!L), n.$$.dirty[0] & /*listFeatures*/
|
|
1524
|
+
8192 && ne("featuresListed", L), n.$$.dirty[1] & /*markedFeatures*/
|
|
1525
|
+
131072 && ne("featuresMarked", Z), n.$$.dirty[0] & /*reverseActive*/
|
|
1526
|
+
1 && ne("reverseToggle", w), n.$$.dirty[0] & /*searchValue*/
|
|
1527
|
+
2 && ne("queryChange", u), n.$$.dirty[0] & /*reverseActive*/
|
|
1503
1528
|
1 | n.$$.dirty[1] & /*mapController*/
|
|
1504
|
-
|
|
1529
|
+
16 && h && h.indicateReverse(w);
|
|
1505
1530
|
}, [
|
|
1506
1531
|
w,
|
|
1507
1532
|
u,
|
|
1508
1533
|
s,
|
|
1509
1534
|
c,
|
|
1510
|
-
|
|
1511
|
-
|
|
1535
|
+
k,
|
|
1536
|
+
I,
|
|
1512
1537
|
T,
|
|
1513
|
-
|
|
1538
|
+
B,
|
|
1514
1539
|
R,
|
|
1515
|
-
|
|
1516
|
-
|
|
1540
|
+
Q,
|
|
1541
|
+
x,
|
|
1542
|
+
He,
|
|
1517
1543
|
ge,
|
|
1518
1544
|
L,
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
Q,
|
|
1545
|
+
W,
|
|
1546
|
+
Ee,
|
|
1522
1547
|
J,
|
|
1548
|
+
X,
|
|
1523
1549
|
ue,
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1550
|
+
vt,
|
|
1551
|
+
Xe,
|
|
1552
|
+
Mt,
|
|
1553
|
+
je,
|
|
1527
1554
|
Fe,
|
|
1528
|
-
Ge,
|
|
1529
1555
|
_,
|
|
1530
1556
|
f,
|
|
1531
1557
|
d,
|
|
1532
1558
|
m,
|
|
1533
|
-
|
|
1534
|
-
|
|
1559
|
+
g,
|
|
1560
|
+
C,
|
|
1535
1561
|
M,
|
|
1536
|
-
|
|
1537
|
-
|
|
1562
|
+
A,
|
|
1563
|
+
y,
|
|
1564
|
+
F,
|
|
1538
1565
|
G,
|
|
1539
|
-
O,
|
|
1540
1566
|
h,
|
|
1541
|
-
|
|
1542
|
-
|
|
1567
|
+
b,
|
|
1568
|
+
P,
|
|
1543
1569
|
ce,
|
|
1544
|
-
|
|
1570
|
+
Be,
|
|
1545
1571
|
fe,
|
|
1546
|
-
|
|
1572
|
+
Re,
|
|
1547
1573
|
pe,
|
|
1574
|
+
Ue,
|
|
1548
1575
|
Ae,
|
|
1549
|
-
We,
|
|
1550
|
-
bt,
|
|
1551
1576
|
wt,
|
|
1552
|
-
|
|
1553
|
-
|
|
1577
|
+
kt,
|
|
1578
|
+
Qe,
|
|
1579
|
+
Z,
|
|
1554
1580
|
p,
|
|
1555
|
-
|
|
1581
|
+
We,
|
|
1556
1582
|
r,
|
|
1557
1583
|
a,
|
|
1558
1584
|
l,
|
|
1559
|
-
Mt,
|
|
1560
1585
|
Ct,
|
|
1586
|
+
Bt,
|
|
1561
1587
|
Rt,
|
|
1562
1588
|
Lt,
|
|
1563
1589
|
Et,
|
|
1564
1590
|
It,
|
|
1565
1591
|
St,
|
|
1566
1592
|
zt,
|
|
1567
|
-
Bt,
|
|
1568
1593
|
Pt,
|
|
1594
|
+
Ut,
|
|
1569
1595
|
At,
|
|
1570
1596
|
Wt,
|
|
1571
1597
|
Nt
|
|
@@ -1581,56 +1607,57 @@ class zn extends _e {
|
|
|
1581
1607
|
he,
|
|
1582
1608
|
{
|
|
1583
1609
|
class: 2,
|
|
1584
|
-
apiKey:
|
|
1585
|
-
bbox:
|
|
1610
|
+
apiKey: 25,
|
|
1611
|
+
bbox: 26,
|
|
1586
1612
|
clearButtonTitle: 3,
|
|
1587
|
-
clearOnBlur:
|
|
1613
|
+
clearOnBlur: 27,
|
|
1588
1614
|
collapsed: 4,
|
|
1589
|
-
country:
|
|
1590
|
-
debounceSearch:
|
|
1615
|
+
country: 28,
|
|
1616
|
+
debounceSearch: 29,
|
|
1591
1617
|
enableReverse: 5,
|
|
1592
1618
|
errorMessage: 6,
|
|
1593
|
-
filter:
|
|
1594
|
-
flyTo:
|
|
1595
|
-
fuzzyMatch:
|
|
1596
|
-
language:
|
|
1597
|
-
limit:
|
|
1598
|
-
mapController:
|
|
1599
|
-
minLength:
|
|
1619
|
+
filter: 30,
|
|
1620
|
+
flyTo: 31,
|
|
1621
|
+
fuzzyMatch: 32,
|
|
1622
|
+
language: 33,
|
|
1623
|
+
limit: 34,
|
|
1624
|
+
mapController: 35,
|
|
1625
|
+
minLength: 36,
|
|
1600
1626
|
noResultsMessage: 7,
|
|
1601
1627
|
placeholder: 8,
|
|
1602
|
-
proximity:
|
|
1628
|
+
proximity: 24,
|
|
1603
1629
|
reverseActive: 0,
|
|
1604
1630
|
reverseButtonTitle: 9,
|
|
1605
1631
|
searchValue: 1,
|
|
1606
|
-
showFullGeometry:
|
|
1632
|
+
showFullGeometry: 37,
|
|
1607
1633
|
showPlaceType: 10,
|
|
1608
|
-
showResultsWhileTyping:
|
|
1609
|
-
trackProximity:
|
|
1610
|
-
types:
|
|
1611
|
-
zoom:
|
|
1612
|
-
maxZoom:
|
|
1613
|
-
apiUrl:
|
|
1614
|
-
fetchParameters:
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1634
|
+
showResultsWhileTyping: 38,
|
|
1635
|
+
trackProximity: 39,
|
|
1636
|
+
types: 40,
|
|
1637
|
+
zoom: 41,
|
|
1638
|
+
maxZoom: 42,
|
|
1639
|
+
apiUrl: 43,
|
|
1640
|
+
fetchParameters: 44,
|
|
1641
|
+
iconsBaseUrl: 11,
|
|
1642
|
+
focus: 45,
|
|
1643
|
+
blur: 46,
|
|
1644
|
+
setQuery: 47
|
|
1618
1645
|
},
|
|
1619
1646
|
null,
|
|
1620
1647
|
[-1, -1, -1]
|
|
1621
1648
|
);
|
|
1622
1649
|
}
|
|
1623
1650
|
get focus() {
|
|
1624
|
-
return this.$$.ctx[
|
|
1651
|
+
return this.$$.ctx[45];
|
|
1625
1652
|
}
|
|
1626
1653
|
get blur() {
|
|
1627
|
-
return this.$$.ctx[
|
|
1654
|
+
return this.$$.ctx[46];
|
|
1628
1655
|
}
|
|
1629
1656
|
get setQuery() {
|
|
1630
|
-
return this.$$.ctx[
|
|
1657
|
+
return this.$$.ctx[47];
|
|
1631
1658
|
}
|
|
1632
1659
|
}
|
|
1633
|
-
const
|
|
1660
|
+
const ut = [
|
|
1634
1661
|
"featuresListed",
|
|
1635
1662
|
"featuresMarked",
|
|
1636
1663
|
"optionsVisibilityChange",
|
|
@@ -1639,7 +1666,7 @@ const ft = [
|
|
|
1639
1666
|
"response",
|
|
1640
1667
|
"reverseToggle",
|
|
1641
1668
|
"select"
|
|
1642
|
-
],
|
|
1669
|
+
], Pn = [
|
|
1643
1670
|
"apiKey",
|
|
1644
1671
|
"bbox",
|
|
1645
1672
|
"clearButtonTitle",
|
|
@@ -1666,14 +1693,14 @@ const ft = [
|
|
|
1666
1693
|
"zoom",
|
|
1667
1694
|
"mapController"
|
|
1668
1695
|
];
|
|
1669
|
-
function
|
|
1696
|
+
function at(n) {
|
|
1670
1697
|
return "on" + n[0].toUpperCase() + n.slice(1);
|
|
1671
1698
|
}
|
|
1672
1699
|
const An = jt(function(e, t) {
|
|
1673
|
-
const r =
|
|
1674
|
-
for (const s of
|
|
1675
|
-
delete a[
|
|
1676
|
-
|
|
1700
|
+
const r = xe(), l = xe(), a = { ...e };
|
|
1701
|
+
for (const s of ut)
|
|
1702
|
+
delete a[at(s)];
|
|
1703
|
+
Ze(() => {
|
|
1677
1704
|
if (!r.current)
|
|
1678
1705
|
throw new Error();
|
|
1679
1706
|
const s = new zn({
|
|
@@ -1682,13 +1709,13 @@ const An = jt(function(e, t) {
|
|
|
1682
1709
|
});
|
|
1683
1710
|
return l.current = s, () => s.$destroy();
|
|
1684
1711
|
}, []);
|
|
1685
|
-
for (const s of
|
|
1686
|
-
|
|
1712
|
+
for (const s of Pn)
|
|
1713
|
+
Ze(() => {
|
|
1687
1714
|
l.current && e[s] !== void 0 && l.current.$set({ [s]: e[s] });
|
|
1688
1715
|
}, [e[s]]);
|
|
1689
|
-
for (const s of
|
|
1690
|
-
const f = e[
|
|
1691
|
-
|
|
1716
|
+
for (const s of ut) {
|
|
1717
|
+
const f = e[at(s)];
|
|
1718
|
+
Ze(() => {
|
|
1692
1719
|
var d;
|
|
1693
1720
|
(d = l.current) == null || d.$on(
|
|
1694
1721
|
s,
|