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