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