@maptiler/geocoding-control 1.4.2-dev.1 → 1.4.2-dev.2
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/leaflet.js +316 -316
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +2 -2
- package/leaflet.umd.js.map +1 -1
- package/maplibregl.js +213 -213
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +2 -2
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.js +213 -213
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +2 -2
- package/maptilersdk.umd.js.map +1 -1
- package/openlayers.js +461 -461
- package/openlayers.js.map +1 -1
- package/openlayers.umd.js +2 -2
- package/openlayers.umd.js.map +1 -1
- package/package.json +9 -9
- package/react.js +474 -474
- package/react.js.map +1 -1
- package/react.umd.js +1 -1
- package/react.umd.js.map +1 -1
- package/style.css +1 -1
- package/svelte/GeocodingControl.svelte +4 -3
- package/svelte/types.d.ts +2 -2
- package/types.d.ts +2 -2
- package/vanilla.js +227 -227
- package/vanilla.js.map +1 -1
- package/vanilla.umd.js +1 -1
- package/vanilla.umd.js.map +1 -1
package/react.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var
|
|
2
|
-
var oi = (i, e, t) => e in i ?
|
|
1
|
+
var ni = Object.defineProperty;
|
|
2
|
+
var oi = (i, e, t) => e in i ? ni(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
3
|
var Xe = (i, e, t) => oi(i, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { forwardRef as si, useRef as lt, useEffect as Ye, useImperativeHandle as ai, createElement as li } from "react";
|
|
5
5
|
function A() {
|
|
@@ -23,7 +23,7 @@ function ae(i) {
|
|
|
23
23
|
function Ot(i) {
|
|
24
24
|
return typeof i == "function";
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function ge(i, e) {
|
|
27
27
|
return i != i ? e == e : i !== e || i && typeof i == "object" || typeof i == "function";
|
|
28
28
|
}
|
|
29
29
|
let Ae;
|
|
@@ -33,41 +33,41 @@ function K(i, e) {
|
|
|
33
33
|
function ci(i) {
|
|
34
34
|
return Object.keys(i).length === 0;
|
|
35
35
|
}
|
|
36
|
-
function di(i, e, t,
|
|
36
|
+
function di(i, e, t, r) {
|
|
37
37
|
if (i) {
|
|
38
|
-
const o = Rt(i, e, t,
|
|
38
|
+
const o = Rt(i, e, t, r);
|
|
39
39
|
return i[0](o);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
function Rt(i, e, t,
|
|
43
|
-
return i[1] &&
|
|
42
|
+
function Rt(i, e, t, r) {
|
|
43
|
+
return i[1] && r ? ui(t.ctx.slice(), i[1](r(e))) : t.ctx;
|
|
44
44
|
}
|
|
45
|
-
function fi(i, e, t,
|
|
46
|
-
if (i[2] &&
|
|
47
|
-
const o = i[2](
|
|
45
|
+
function fi(i, e, t, r) {
|
|
46
|
+
if (i[2] && r) {
|
|
47
|
+
const o = i[2](r(t));
|
|
48
48
|
if (e.dirty === void 0)
|
|
49
49
|
return o;
|
|
50
50
|
if (typeof o == "object") {
|
|
51
51
|
const u = [], a = Math.max(e.dirty.length, o.length);
|
|
52
|
-
for (let
|
|
53
|
-
u[
|
|
52
|
+
for (let n = 0; n < a; n += 1)
|
|
53
|
+
u[n] = e.dirty[n] | o[n];
|
|
54
54
|
return u;
|
|
55
55
|
}
|
|
56
56
|
return e.dirty | o;
|
|
57
57
|
}
|
|
58
58
|
return e.dirty;
|
|
59
59
|
}
|
|
60
|
-
function mi(i, e, t,
|
|
60
|
+
function mi(i, e, t, r, o, u) {
|
|
61
61
|
if (o) {
|
|
62
|
-
const a = Rt(e, t,
|
|
62
|
+
const a = Rt(e, t, r, u);
|
|
63
63
|
i.p(a, o);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
function gi(i) {
|
|
67
67
|
if (i.ctx.length > 32) {
|
|
68
68
|
const e = [], t = i.ctx.length / 32;
|
|
69
|
-
for (let
|
|
70
|
-
e[
|
|
69
|
+
for (let r = 0; r < t; r++)
|
|
70
|
+
e[r] = -1;
|
|
71
71
|
return e;
|
|
72
72
|
}
|
|
73
73
|
return -1;
|
|
@@ -87,7 +87,7 @@ function U(i) {
|
|
|
87
87
|
function R(i) {
|
|
88
88
|
return document.createElement(i);
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function ne(i) {
|
|
91
91
|
return document.createElementNS("http://www.w3.org/2000/svg", i);
|
|
92
92
|
}
|
|
93
93
|
function ce(i) {
|
|
@@ -99,8 +99,8 @@ function J() {
|
|
|
99
99
|
function hi() {
|
|
100
100
|
return ce("");
|
|
101
101
|
}
|
|
102
|
-
function V(i, e, t,
|
|
103
|
-
return i.addEventListener(e, t,
|
|
102
|
+
function V(i, e, t, r) {
|
|
103
|
+
return i.addEventListener(e, t, r), () => i.removeEventListener(e, t, r);
|
|
104
104
|
}
|
|
105
105
|
function bi(i) {
|
|
106
106
|
return function(e) {
|
|
@@ -113,7 +113,7 @@ function l(i, e, t) {
|
|
|
113
113
|
function vi(i) {
|
|
114
114
|
return Array.from(i.childNodes);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function Te(i, e) {
|
|
117
117
|
e = "" + e, i.data !== e && (i.data = /** @type {string} */
|
|
118
118
|
e);
|
|
119
119
|
}
|
|
@@ -123,30 +123,30 @@ function dt(i, e) {
|
|
|
123
123
|
function ue(i, e, t) {
|
|
124
124
|
i.classList.toggle(e, !!t);
|
|
125
125
|
}
|
|
126
|
-
function Li(i, e, { bubbles: t = !1, cancelable:
|
|
127
|
-
return new CustomEvent(i, { detail: e, bubbles: t, cancelable:
|
|
126
|
+
function Li(i, e, { bubbles: t = !1, cancelable: r = !1 } = {}) {
|
|
127
|
+
return new CustomEvent(i, { detail: e, bubbles: t, cancelable: r });
|
|
128
128
|
}
|
|
129
|
-
let
|
|
130
|
-
function
|
|
131
|
-
|
|
129
|
+
let ke;
|
|
130
|
+
function Me(i) {
|
|
131
|
+
ke = i;
|
|
132
132
|
}
|
|
133
133
|
function Dt() {
|
|
134
|
-
if (!
|
|
135
|
-
return
|
|
134
|
+
if (!ke) throw new Error("Function called outside component initialization");
|
|
135
|
+
return ke;
|
|
136
136
|
}
|
|
137
137
|
function _i(i) {
|
|
138
138
|
Dt().$$.on_destroy.push(i);
|
|
139
139
|
}
|
|
140
140
|
function yi() {
|
|
141
141
|
const i = Dt();
|
|
142
|
-
return (e, t, { cancelable:
|
|
142
|
+
return (e, t, { cancelable: r = !1 } = {}) => {
|
|
143
143
|
const o = i.$$.callbacks[e];
|
|
144
144
|
if (o) {
|
|
145
145
|
const u = Li(
|
|
146
146
|
/** @type {string} */
|
|
147
147
|
e,
|
|
148
148
|
t,
|
|
149
|
-
{ cancelable:
|
|
149
|
+
{ cancelable: r }
|
|
150
150
|
);
|
|
151
151
|
return o.slice().forEach((a) => {
|
|
152
152
|
a.call(i, u);
|
|
@@ -157,43 +157,43 @@ function yi() {
|
|
|
157
157
|
}
|
|
158
158
|
function ft(i, e) {
|
|
159
159
|
const t = i.$$.callbacks[e.type];
|
|
160
|
-
t && t.slice().forEach((
|
|
160
|
+
t && t.slice().forEach((r) => r.call(this, e));
|
|
161
161
|
}
|
|
162
|
-
const
|
|
163
|
-
let
|
|
162
|
+
const we = [], et = [];
|
|
163
|
+
let Ee = [];
|
|
164
164
|
const mt = [], wi = /* @__PURE__ */ Promise.resolve();
|
|
165
165
|
let tt = !1;
|
|
166
166
|
function Ei() {
|
|
167
167
|
tt || (tt = !0, wi.then(Ut));
|
|
168
168
|
}
|
|
169
169
|
function it(i) {
|
|
170
|
-
|
|
170
|
+
Ee.push(i);
|
|
171
171
|
}
|
|
172
172
|
const $e = /* @__PURE__ */ new Set();
|
|
173
|
-
let
|
|
173
|
+
let ye = 0;
|
|
174
174
|
function Ut() {
|
|
175
|
-
if (
|
|
175
|
+
if (ye !== 0)
|
|
176
176
|
return;
|
|
177
|
-
const i =
|
|
177
|
+
const i = ke;
|
|
178
178
|
do {
|
|
179
179
|
try {
|
|
180
|
-
for (;
|
|
181
|
-
const e =
|
|
182
|
-
|
|
180
|
+
for (; ye < we.length; ) {
|
|
181
|
+
const e = we[ye];
|
|
182
|
+
ye++, Me(e), Si(e.$$);
|
|
183
183
|
}
|
|
184
184
|
} catch (e) {
|
|
185
|
-
throw
|
|
185
|
+
throw we.length = 0, ye = 0, e;
|
|
186
186
|
}
|
|
187
|
-
for (
|
|
188
|
-
for (let e = 0; e <
|
|
189
|
-
const t =
|
|
187
|
+
for (Me(null), we.length = 0, ye = 0; et.length; ) et.pop()();
|
|
188
|
+
for (let e = 0; e < Ee.length; e += 1) {
|
|
189
|
+
const t = Ee[e];
|
|
190
190
|
$e.has(t) || ($e.add(t), t());
|
|
191
191
|
}
|
|
192
|
-
|
|
193
|
-
} while (
|
|
192
|
+
Ee.length = 0;
|
|
193
|
+
} while (we.length);
|
|
194
194
|
for (; mt.length; )
|
|
195
195
|
mt.pop()();
|
|
196
|
-
tt = !1, $e.clear(),
|
|
196
|
+
tt = !1, $e.clear(), Me(i);
|
|
197
197
|
}
|
|
198
198
|
function Si(i) {
|
|
199
199
|
if (i.fragment !== null) {
|
|
@@ -204,31 +204,31 @@ function Si(i) {
|
|
|
204
204
|
}
|
|
205
205
|
function pi(i) {
|
|
206
206
|
const e = [], t = [];
|
|
207
|
-
|
|
207
|
+
Ee.forEach((r) => i.indexOf(r) === -1 ? e.push(r) : t.push(r)), t.forEach((r) => r()), Ee = e;
|
|
208
208
|
}
|
|
209
209
|
const Be = /* @__PURE__ */ new Set();
|
|
210
|
-
let
|
|
210
|
+
let me;
|
|
211
211
|
function Fe() {
|
|
212
|
-
|
|
212
|
+
me = {
|
|
213
213
|
r: 0,
|
|
214
214
|
c: [],
|
|
215
|
-
p:
|
|
215
|
+
p: me
|
|
216
216
|
// parent group
|
|
217
217
|
};
|
|
218
218
|
}
|
|
219
219
|
function ze() {
|
|
220
|
-
|
|
220
|
+
me.r || ae(me.c), me = me.p;
|
|
221
221
|
}
|
|
222
222
|
function z(i, e) {
|
|
223
223
|
i && i.i && (Be.delete(i), i.i(e));
|
|
224
224
|
}
|
|
225
|
-
function Q(i, e, t,
|
|
225
|
+
function Q(i, e, t, r) {
|
|
226
226
|
if (i && i.o) {
|
|
227
227
|
if (Be.has(i)) return;
|
|
228
|
-
Be.add(i),
|
|
229
|
-
Be.delete(i),
|
|
228
|
+
Be.add(i), me.c.push(() => {
|
|
229
|
+
Be.delete(i), r && (t && i.d(1), r());
|
|
230
230
|
}), i.o(e);
|
|
231
|
-
} else
|
|
231
|
+
} else r && r();
|
|
232
232
|
}
|
|
233
233
|
function gt(i) {
|
|
234
234
|
return (i == null ? void 0 : i.length) !== void 0 ? i : Array.from(i);
|
|
@@ -238,7 +238,7 @@ function Ni(i, e) {
|
|
|
238
238
|
e.delete(i.key);
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
|
-
function Mi(i, e, t,
|
|
241
|
+
function Mi(i, e, t, r, o, u, a, n, d, c, f, h) {
|
|
242
242
|
let v = i.length, _ = u.length, w = v;
|
|
243
243
|
const W = {};
|
|
244
244
|
for (; w--; ) W[i[w].key] = w;
|
|
@@ -248,13 +248,13 @@ function Mi(i, e, t, n, o, u, a, r, d, c, f, h) {
|
|
|
248
248
|
let k = a.get(m);
|
|
249
249
|
k ? O.push(() => k.p(g, e)) : (k = c(m, g), k.c()), E.set(m, y[w] = k), m in W && C.set(m, Math.abs(w - W[m]));
|
|
250
250
|
}
|
|
251
|
-
const p = /* @__PURE__ */ new Set(),
|
|
251
|
+
const p = /* @__PURE__ */ new Set(), q = /* @__PURE__ */ new Set();
|
|
252
252
|
function b(g) {
|
|
253
|
-
z(g, 1), g.m(
|
|
253
|
+
z(g, 1), g.m(n, f), a.set(g.key, g), f = g.first, _--;
|
|
254
254
|
}
|
|
255
255
|
for (; v && _; ) {
|
|
256
256
|
const g = y[_ - 1], m = i[v - 1], k = g.key, H = m.key;
|
|
257
|
-
g === m ? (f = g.first, v--, _--) : E.has(H) ? !a.has(k) || p.has(k) ? b(g) :
|
|
257
|
+
g === m ? (f = g.first, v--, _--) : E.has(H) ? !a.has(k) || p.has(k) ? b(g) : q.has(H) ? v-- : C.get(k) > C.get(H) ? (q.add(k), b(g)) : (p.add(H), v--) : (d(m, a), v--);
|
|
258
258
|
}
|
|
259
259
|
for (; v--; ) {
|
|
260
260
|
const g = i[v];
|
|
@@ -267,8 +267,8 @@ function de(i) {
|
|
|
267
267
|
i && i.c();
|
|
268
268
|
}
|
|
269
269
|
function oe(i, e, t) {
|
|
270
|
-
const { fragment:
|
|
271
|
-
|
|
270
|
+
const { fragment: r, after_update: o } = i.$$;
|
|
271
|
+
r && r.m(e, t), it(() => {
|
|
272
272
|
const u = i.$$.on_mount.map(Wt).filter(Ot);
|
|
273
273
|
i.$$.on_destroy ? i.$$.on_destroy.push(...u) : ae(u), i.$$.on_mount = [];
|
|
274
274
|
}), o.forEach(it);
|
|
@@ -278,11 +278,11 @@ function se(i, e) {
|
|
|
278
278
|
t.fragment !== null && (pi(t.after_update), ae(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
|
|
279
279
|
}
|
|
280
280
|
function Ti(i, e) {
|
|
281
|
-
i.$$.dirty[0] === -1 && (
|
|
281
|
+
i.$$.dirty[0] === -1 && (we.push(i), Ei(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
282
282
|
}
|
|
283
|
-
function
|
|
284
|
-
const d =
|
|
285
|
-
|
|
283
|
+
function he(i, e, t, r, o, u, a = null, n = [-1]) {
|
|
284
|
+
const d = ke;
|
|
285
|
+
Me(i);
|
|
286
286
|
const c = i.$$ = {
|
|
287
287
|
fragment: null,
|
|
288
288
|
ctx: [],
|
|
@@ -300,7 +300,7 @@ function be(i, e, t, n, o, u, a = null, r = [-1]) {
|
|
|
300
300
|
context: new Map(e.context || (d ? d.$$.context : [])),
|
|
301
301
|
// everything else
|
|
302
302
|
callbacks: ut(),
|
|
303
|
-
dirty:
|
|
303
|
+
dirty: n,
|
|
304
304
|
skip_bound: !1,
|
|
305
305
|
root: e.target || d.$$.root
|
|
306
306
|
};
|
|
@@ -309,7 +309,7 @@ function be(i, e, t, n, o, u, a = null, r = [-1]) {
|
|
|
309
309
|
if (c.ctx = t ? t(i, e.props || {}, (h, v, ..._) => {
|
|
310
310
|
const w = _.length ? _[0] : v;
|
|
311
311
|
return c.ctx && o(c.ctx[h], c.ctx[h] = w) && (!c.skip_bound && c.bound[h] && c.bound[h](w), f && Ti(i, h)), v;
|
|
312
|
-
}) : [], c.update(), f = !0, ae(c.before_update), c.fragment =
|
|
312
|
+
}) : [], c.update(), f = !0, ae(c.before_update), c.fragment = r ? r(c.ctx) : !1, e.target) {
|
|
313
313
|
if (e.hydrate) {
|
|
314
314
|
const h = vi(e.target);
|
|
315
315
|
c.fragment && c.fragment.l(h), h.forEach(U);
|
|
@@ -317,9 +317,9 @@ function be(i, e, t, n, o, u, a = null, r = [-1]) {
|
|
|
317
317
|
c.fragment && c.fragment.c();
|
|
318
318
|
e.intro && z(i.$$.fragment), oe(i, e.target, e.anchor), Ut();
|
|
319
319
|
}
|
|
320
|
-
|
|
320
|
+
Me(d);
|
|
321
321
|
}
|
|
322
|
-
class
|
|
322
|
+
class be {
|
|
323
323
|
constructor() {
|
|
324
324
|
/**
|
|
325
325
|
* ### PRIVATE API
|
|
@@ -351,10 +351,10 @@ class ve {
|
|
|
351
351
|
$on(e, t) {
|
|
352
352
|
if (!Ot(t))
|
|
353
353
|
return A;
|
|
354
|
-
const
|
|
355
|
-
return
|
|
356
|
-
const o =
|
|
357
|
-
o !== -1 &&
|
|
354
|
+
const r = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
355
|
+
return r.push(t), () => {
|
|
356
|
+
const o = r.indexOf(t);
|
|
357
|
+
o !== -1 && r.splice(o, 1);
|
|
358
358
|
};
|
|
359
359
|
}
|
|
360
360
|
/**
|
|
@@ -371,44 +371,44 @@ function Ci(i) {
|
|
|
371
371
|
let e, t;
|
|
372
372
|
return {
|
|
373
373
|
c() {
|
|
374
|
-
e =
|
|
374
|
+
e = ne("svg"), t = ne("path"), l(t, "d", "M13.12.706a.982.982 0 0 0-1.391 0L6.907 5.517 2.087.696a.982.982 0 1 0-1.391 1.39l4.821 4.821L.696 11.73a.982.982 0 1 0 1.39 1.39l4.821-4.821 4.822 4.821a.982.982 0 1 0 1.39-1.39L8.298 6.908l4.821-4.822a.988.988 0 0 0 0-1.38Z"), l(e, "viewBox", "0 0 14 14"), l(e, "width", "13"), l(e, "height", "13"), l(e, "class", "svelte-en2qvf");
|
|
375
375
|
},
|
|
376
|
-
m(
|
|
377
|
-
B(
|
|
376
|
+
m(r, o) {
|
|
377
|
+
B(r, e, o), T(e, t);
|
|
378
378
|
},
|
|
379
379
|
p: A,
|
|
380
380
|
i: A,
|
|
381
381
|
o: A,
|
|
382
|
-
d(
|
|
383
|
-
|
|
382
|
+
d(r) {
|
|
383
|
+
r && U(e);
|
|
384
384
|
}
|
|
385
385
|
};
|
|
386
386
|
}
|
|
387
|
-
class It extends
|
|
387
|
+
class It extends be {
|
|
388
388
|
constructor(e) {
|
|
389
|
-
super(),
|
|
389
|
+
super(), he(this, e, null, Ci, ge, {});
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
392
|
function Wi(i) {
|
|
393
393
|
let e, t;
|
|
394
394
|
return {
|
|
395
395
|
c() {
|
|
396
|
-
e =
|
|
396
|
+
e = ne("svg"), t = ne("path"), l(t, "d", "M15 0C6.705 0 0 6.705 0 15C0 23.295 6.705 30 15 30C23.295 30 30 23.295 30 15C30 6.705 23.295 0 15 0ZM22.5 20.385L20.385 22.5L15 17.115L9.615 22.5L7.5 20.385L12.885 15L7.5 9.615L9.615 7.5L15 12.885L20.385 7.5L22.5 9.615L17.115 15L22.5 20.385Z"), l(e, "viewBox", "0 0 30 30"), l(e, "fill", "none"), l(e, "xmlns", "http://www.w3.org/2000/svg"), l(e, "class", "svelte-d2loi5");
|
|
397
397
|
},
|
|
398
|
-
m(
|
|
399
|
-
B(
|
|
398
|
+
m(r, o) {
|
|
399
|
+
B(r, e, o), T(e, t);
|
|
400
400
|
},
|
|
401
401
|
p: A,
|
|
402
402
|
i: A,
|
|
403
403
|
o: A,
|
|
404
|
-
d(
|
|
405
|
-
|
|
404
|
+
d(r) {
|
|
405
|
+
r && U(e);
|
|
406
406
|
}
|
|
407
407
|
};
|
|
408
408
|
}
|
|
409
|
-
class At extends
|
|
409
|
+
class At extends be {
|
|
410
410
|
constructor(e) {
|
|
411
|
-
super(),
|
|
411
|
+
super(), he(this, e, null, Wi, ge, {});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
414
|
function Oi(i) {
|
|
@@ -423,22 +423,22 @@ function Oi(i) {
|
|
|
423
423
|
i[6]
|
|
424
424
|
), l(e, "class", "svelte-ltkwvy");
|
|
425
425
|
},
|
|
426
|
-
m(
|
|
427
|
-
B(
|
|
426
|
+
m(r, o) {
|
|
427
|
+
B(r, e, o);
|
|
428
428
|
},
|
|
429
|
-
p(
|
|
429
|
+
p(r, o) {
|
|
430
430
|
o & /*iconsBaseUrl*/
|
|
431
431
|
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
432
|
-
|
|
432
|
+
r[3] + "area.svg") && l(e, "src", t), o & /*placeType*/
|
|
433
433
|
64 && l(
|
|
434
434
|
e,
|
|
435
435
|
"alt",
|
|
436
436
|
/*placeType*/
|
|
437
|
-
|
|
437
|
+
r[6]
|
|
438
438
|
);
|
|
439
439
|
},
|
|
440
|
-
d(
|
|
441
|
-
|
|
440
|
+
d(r) {
|
|
441
|
+
r && U(e);
|
|
442
442
|
}
|
|
443
443
|
};
|
|
444
444
|
}
|
|
@@ -454,22 +454,22 @@ function Ri(i) {
|
|
|
454
454
|
i[6]
|
|
455
455
|
), l(e, "class", "svelte-ltkwvy");
|
|
456
456
|
},
|
|
457
|
-
m(
|
|
458
|
-
B(
|
|
457
|
+
m(r, o) {
|
|
458
|
+
B(r, e, o);
|
|
459
459
|
},
|
|
460
|
-
p(
|
|
460
|
+
p(r, o) {
|
|
461
461
|
o & /*iconsBaseUrl*/
|
|
462
462
|
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
463
|
-
|
|
463
|
+
r[3] + "reverse.svg") && l(e, "src", t), o & /*placeType*/
|
|
464
464
|
64 && l(
|
|
465
465
|
e,
|
|
466
466
|
"alt",
|
|
467
467
|
/*placeType*/
|
|
468
|
-
|
|
468
|
+
r[6]
|
|
469
469
|
);
|
|
470
470
|
},
|
|
471
|
-
d(
|
|
472
|
-
|
|
471
|
+
d(r) {
|
|
472
|
+
r && U(e);
|
|
473
473
|
}
|
|
474
474
|
};
|
|
475
475
|
}
|
|
@@ -485,22 +485,22 @@ function Di(i) {
|
|
|
485
485
|
i[6]
|
|
486
486
|
), l(e, "class", "svelte-ltkwvy");
|
|
487
487
|
},
|
|
488
|
-
m(
|
|
489
|
-
B(
|
|
488
|
+
m(r, o) {
|
|
489
|
+
B(r, e, o);
|
|
490
490
|
},
|
|
491
|
-
p(
|
|
491
|
+
p(r, o) {
|
|
492
492
|
o & /*iconsBaseUrl*/
|
|
493
493
|
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
494
|
-
|
|
494
|
+
r[3] + "poi.svg") && l(e, "src", t), o & /*placeType*/
|
|
495
495
|
64 && l(
|
|
496
496
|
e,
|
|
497
497
|
"alt",
|
|
498
498
|
/*placeType*/
|
|
499
|
-
|
|
499
|
+
r[6]
|
|
500
500
|
);
|
|
501
501
|
},
|
|
502
|
-
d(
|
|
503
|
-
|
|
502
|
+
d(r) {
|
|
503
|
+
r && U(e);
|
|
504
504
|
}
|
|
505
505
|
};
|
|
506
506
|
}
|
|
@@ -516,22 +516,22 @@ function Ui(i) {
|
|
|
516
516
|
i[6]
|
|
517
517
|
), l(e, "class", "svelte-ltkwvy");
|
|
518
518
|
},
|
|
519
|
-
m(
|
|
520
|
-
B(
|
|
519
|
+
m(r, o) {
|
|
520
|
+
B(r, e, o);
|
|
521
521
|
},
|
|
522
|
-
p(
|
|
522
|
+
p(r, o) {
|
|
523
523
|
o & /*iconsBaseUrl*/
|
|
524
524
|
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
525
|
-
|
|
525
|
+
r[3] + "postal_code.svg") && l(e, "src", t), o & /*placeType*/
|
|
526
526
|
64 && l(
|
|
527
527
|
e,
|
|
528
528
|
"alt",
|
|
529
529
|
/*placeType*/
|
|
530
|
-
|
|
530
|
+
r[6]
|
|
531
531
|
);
|
|
532
532
|
},
|
|
533
|
-
d(
|
|
534
|
-
|
|
533
|
+
d(r) {
|
|
534
|
+
r && U(e);
|
|
535
535
|
}
|
|
536
536
|
};
|
|
537
537
|
}
|
|
@@ -547,22 +547,22 @@ function Ii(i) {
|
|
|
547
547
|
i[6]
|
|
548
548
|
), l(e, "class", "svelte-ltkwvy");
|
|
549
549
|
},
|
|
550
|
-
m(
|
|
551
|
-
B(
|
|
550
|
+
m(r, o) {
|
|
551
|
+
B(r, e, o);
|
|
552
552
|
},
|
|
553
|
-
p(
|
|
553
|
+
p(r, o) {
|
|
554
554
|
o & /*iconsBaseUrl*/
|
|
555
555
|
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
556
|
-
|
|
556
|
+
r[3] + "street.svg") && l(e, "src", t), o & /*placeType*/
|
|
557
557
|
64 && l(
|
|
558
558
|
e,
|
|
559
559
|
"alt",
|
|
560
560
|
/*placeType*/
|
|
561
|
-
|
|
561
|
+
r[6]
|
|
562
562
|
);
|
|
563
563
|
},
|
|
564
|
-
d(
|
|
565
|
-
|
|
564
|
+
d(r) {
|
|
565
|
+
r && U(e);
|
|
566
566
|
}
|
|
567
567
|
};
|
|
568
568
|
}
|
|
@@ -578,22 +578,22 @@ function Ai(i) {
|
|
|
578
578
|
i[6]
|
|
579
579
|
), l(e, "class", "svelte-ltkwvy");
|
|
580
580
|
},
|
|
581
|
-
m(
|
|
582
|
-
B(
|
|
581
|
+
m(r, o) {
|
|
582
|
+
B(r, e, o);
|
|
583
583
|
},
|
|
584
|
-
p(
|
|
584
|
+
p(r, o) {
|
|
585
585
|
o & /*iconsBaseUrl*/
|
|
586
586
|
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
587
|
-
|
|
587
|
+
r[3] + "road.svg") && l(e, "src", t), o & /*placeType*/
|
|
588
588
|
64 && l(
|
|
589
589
|
e,
|
|
590
590
|
"alt",
|
|
591
591
|
/*placeType*/
|
|
592
|
-
|
|
592
|
+
r[6]
|
|
593
593
|
);
|
|
594
594
|
},
|
|
595
|
-
d(
|
|
596
|
-
|
|
595
|
+
d(r) {
|
|
596
|
+
r && U(e);
|
|
597
597
|
}
|
|
598
598
|
};
|
|
599
599
|
}
|
|
@@ -609,27 +609,27 @@ function Bi(i) {
|
|
|
609
609
|
i[6]
|
|
610
610
|
), l(e, "class", "svelte-ltkwvy");
|
|
611
611
|
},
|
|
612
|
-
m(
|
|
613
|
-
B(
|
|
612
|
+
m(r, o) {
|
|
613
|
+
B(r, e, o);
|
|
614
614
|
},
|
|
615
|
-
p(
|
|
615
|
+
p(r, o) {
|
|
616
616
|
o & /*iconsBaseUrl*/
|
|
617
617
|
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
618
|
-
|
|
618
|
+
r[3] + "housenumber.svg") && l(e, "src", t), o & /*placeType*/
|
|
619
619
|
64 && l(
|
|
620
620
|
e,
|
|
621
621
|
"alt",
|
|
622
622
|
/*placeType*/
|
|
623
|
-
|
|
623
|
+
r[6]
|
|
624
624
|
);
|
|
625
625
|
},
|
|
626
|
-
d(
|
|
627
|
-
|
|
626
|
+
d(r) {
|
|
627
|
+
r && U(e);
|
|
628
628
|
}
|
|
629
629
|
};
|
|
630
630
|
}
|
|
631
631
|
function Fi(i) {
|
|
632
|
-
let e, t,
|
|
632
|
+
let e, t, r, o;
|
|
633
633
|
return {
|
|
634
634
|
c() {
|
|
635
635
|
e = R("img"), K(e.src, t = /*imageUrl*/
|
|
@@ -641,12 +641,12 @@ function Fi(i) {
|
|
|
641
641
|
), l(e, "class", "svelte-ltkwvy");
|
|
642
642
|
},
|
|
643
643
|
m(u, a) {
|
|
644
|
-
B(u, e, a),
|
|
644
|
+
B(u, e, a), r || (o = V(
|
|
645
645
|
e,
|
|
646
646
|
"error",
|
|
647
647
|
/*error_handler*/
|
|
648
648
|
i[14]
|
|
649
|
-
),
|
|
649
|
+
), r = !0);
|
|
650
650
|
},
|
|
651
651
|
p(u, a) {
|
|
652
652
|
a & /*imageUrl*/
|
|
@@ -660,7 +660,7 @@ function Fi(i) {
|
|
|
660
660
|
);
|
|
661
661
|
},
|
|
662
662
|
d(u) {
|
|
663
|
-
u && U(e),
|
|
663
|
+
u && U(e), r = !1, o();
|
|
664
664
|
}
|
|
665
665
|
};
|
|
666
666
|
}
|
|
@@ -673,24 +673,24 @@ function ht(i) {
|
|
|
673
673
|
i[6]
|
|
674
674
|
), l(e, "class", "secondary svelte-ltkwvy");
|
|
675
675
|
},
|
|
676
|
-
m(
|
|
677
|
-
B(
|
|
676
|
+
m(r, o) {
|
|
677
|
+
B(r, e, o), T(e, t);
|
|
678
678
|
},
|
|
679
|
-
p(
|
|
679
|
+
p(r, o) {
|
|
680
680
|
o & /*placeType*/
|
|
681
|
-
64 &&
|
|
681
|
+
64 && Te(
|
|
682
682
|
t,
|
|
683
683
|
/*placeType*/
|
|
684
|
-
|
|
684
|
+
r[6]
|
|
685
685
|
);
|
|
686
686
|
},
|
|
687
|
-
d(
|
|
688
|
-
|
|
687
|
+
d(r) {
|
|
688
|
+
r && U(e);
|
|
689
689
|
}
|
|
690
690
|
};
|
|
691
691
|
}
|
|
692
692
|
function zi(i) {
|
|
693
|
-
let e, t,
|
|
693
|
+
let e, t, r, o, u, a, n, d, c, f = (
|
|
694
694
|
/*isReverse*/
|
|
695
695
|
(i[7] ? (
|
|
696
696
|
/*feature*/
|
|
@@ -720,14 +720,14 @@ function zi(i) {
|
|
|
720
720
|
function p(m, k) {
|
|
721
721
|
return k & /*feature*/
|
|
722
722
|
1 && (t = null), k & /*feature*/
|
|
723
|
-
1 && (
|
|
723
|
+
1 && (r = null), k & /*feature*/
|
|
724
724
|
1 && (o = null), k & /*feature*/
|
|
725
725
|
1 && (u = null), /*imageUrl*/
|
|
726
726
|
m[5] ? Fi : (
|
|
727
727
|
/*feature*/
|
|
728
728
|
m[0].address ? Bi : (t == null && (t = !!/*feature*/
|
|
729
|
-
m[0].id.startsWith("road.")), t ? Ai : (
|
|
730
|
-
m[0].id.startsWith("address.")),
|
|
729
|
+
m[0].id.startsWith("road.")), t ? Ai : (r == null && (r = !!/*feature*/
|
|
730
|
+
m[0].id.startsWith("address.")), r ? Ii : (o == null && (o = !!/*feature*/
|
|
731
731
|
m[0].id.startsWith("postal_code.")), o ? Ui : (u == null && (u = !!/*feature*/
|
|
732
732
|
m[0].id.startsWith("poi.")), u ? Di : (
|
|
733
733
|
/*isReverse*/
|
|
@@ -735,10 +735,10 @@ function zi(i) {
|
|
|
735
735
|
)))))
|
|
736
736
|
);
|
|
737
737
|
}
|
|
738
|
-
let
|
|
738
|
+
let q = p(i, -1), b = q(i), g = _ && ht(i);
|
|
739
739
|
return {
|
|
740
740
|
c() {
|
|
741
|
-
e = R("li"), b.c(), a = J(),
|
|
741
|
+
e = R("li"), b.c(), a = J(), n = R("span"), d = R("span"), c = R("span"), h = ce(f), v = J(), g && g.c(), w = J(), W = R("span"), E = ce(y), l(c, "class", "primary svelte-ltkwvy"), l(d, "class", "svelte-ltkwvy"), l(W, "class", "line2 svelte-ltkwvy"), l(n, "class", "texts svelte-ltkwvy"), l(e, "tabindex", "0"), l(
|
|
742
742
|
e,
|
|
743
743
|
"data-selected",
|
|
744
744
|
/*selected*/
|
|
@@ -751,7 +751,7 @@ function zi(i) {
|
|
|
751
751
|
);
|
|
752
752
|
},
|
|
753
753
|
m(m, k) {
|
|
754
|
-
B(m, e, k), b.m(e, null), T(e, a), T(e,
|
|
754
|
+
B(m, e, k), b.m(e, null), T(e, a), T(e, n), T(n, d), T(d, c), T(c, h), T(d, v), g && g.m(d, null), T(n, w), T(n, W), T(W, E), C || (O = [
|
|
755
755
|
V(
|
|
756
756
|
e,
|
|
757
757
|
"mouseenter",
|
|
@@ -767,7 +767,7 @@ function zi(i) {
|
|
|
767
767
|
], C = !0);
|
|
768
768
|
},
|
|
769
769
|
p(m, [k]) {
|
|
770
|
-
|
|
770
|
+
q === (q = p(m, k)) && b ? b.p(m, k) : (b.d(1), b = q(m), b && (b.c(), b.m(e, a))), k & /*feature*/
|
|
771
771
|
1 && f !== (f = /*isReverse*/
|
|
772
772
|
(m[7] ? (
|
|
773
773
|
/*feature*/
|
|
@@ -775,7 +775,7 @@ function zi(i) {
|
|
|
775
775
|
) : (
|
|
776
776
|
/*feature*/
|
|
777
777
|
m[0].place_name.replace(/,.*/, "")
|
|
778
|
-
)) + "") &&
|
|
778
|
+
)) + "") && Te(h, f), k & /*showPlaceType, feature, imageUrl*/
|
|
779
779
|
37 && (_ = /*showPlaceType*/
|
|
780
780
|
m[2] === "always" || /*showPlaceType*/
|
|
781
781
|
m[2] && !/*feature*/
|
|
@@ -790,7 +790,7 @@ function zi(i) {
|
|
|
790
790
|
(m[7] ? "" : (
|
|
791
791
|
/*feature*/
|
|
792
792
|
m[0].place_name.replace(/[^,]*,?\s*/, "")
|
|
793
|
-
)) + "") &&
|
|
793
|
+
)) + "") && Te(E, y), k & /*selected*/
|
|
794
794
|
2 && l(
|
|
795
795
|
e,
|
|
796
796
|
"data-selected",
|
|
@@ -813,7 +813,7 @@ function zi(i) {
|
|
|
813
813
|
}
|
|
814
814
|
function Hi(i, e, t) {
|
|
815
815
|
var O;
|
|
816
|
-
let
|
|
816
|
+
let r, o, { feature: u } = e, { selected: a = !1 } = e, { showPlaceType: n } = e, { missingIconsCache: d } = e, { iconsBaseUrl: c } = e;
|
|
817
817
|
const f = (O = u.properties) == null ? void 0 : O.categories;
|
|
818
818
|
let h, v, _ = 0, w = u.place_type[0] === "reverse";
|
|
819
819
|
function W() {
|
|
@@ -827,20 +827,20 @@ function Hi(i, e, t) {
|
|
|
827
827
|
}
|
|
828
828
|
const C = () => W();
|
|
829
829
|
return i.$$set = (p) => {
|
|
830
|
-
"feature" in p && t(0, u = p.feature), "selected" in p && t(1, a = p.selected), "showPlaceType" in p && t(2,
|
|
830
|
+
"feature" in p && t(0, u = p.feature), "selected" in p && t(1, a = p.selected), "showPlaceType" in p && t(2, n = p.showPlaceType), "missingIconsCache" in p && t(9, d = p.missingIconsCache), "iconsBaseUrl" in p && t(3, c = p.iconsBaseUrl);
|
|
831
831
|
}, i.$$.update = () => {
|
|
832
|
-
var p,
|
|
832
|
+
var p, q, b, g;
|
|
833
833
|
if (i.$$.dirty & /*loadIconAttempt, index, category, iconsBaseUrl, imageUrl, missingIconsCache*/
|
|
834
834
|
3640)
|
|
835
835
|
do
|
|
836
|
-
t(11,
|
|
837
|
-
while (
|
|
836
|
+
t(11, r--, r), t(4, h = f == null ? void 0 : f[r]), t(5, v = h ? c + h.replace(/ /g, "_") + ".svg" : void 0);
|
|
837
|
+
while (r > -1 && (!v || d.has(v)));
|
|
838
838
|
i.$$.dirty & /*feature*/
|
|
839
|
-
1 && t(6, o = ((
|
|
840
|
-
}, t(11,
|
|
839
|
+
1 && t(6, o = ((q = (p = u.properties) == null ? void 0 : p.categories) == null ? void 0 : q.join(", ")) ?? ((g = (b = u.properties) == null ? void 0 : b.place_type_name) == null ? void 0 : g[0]) ?? u.place_type[0]);
|
|
840
|
+
}, t(11, r = (f == null ? void 0 : f.length) ?? 0), [
|
|
841
841
|
u,
|
|
842
842
|
a,
|
|
843
|
-
|
|
843
|
+
n,
|
|
844
844
|
c,
|
|
845
845
|
h,
|
|
846
846
|
v,
|
|
@@ -849,15 +849,15 @@ function Hi(i, e, t) {
|
|
|
849
849
|
W,
|
|
850
850
|
d,
|
|
851
851
|
_,
|
|
852
|
-
|
|
852
|
+
r,
|
|
853
853
|
y,
|
|
854
854
|
E,
|
|
855
855
|
C
|
|
856
856
|
];
|
|
857
857
|
}
|
|
858
|
-
class
|
|
858
|
+
class ji extends be {
|
|
859
859
|
constructor(e) {
|
|
860
|
-
super(),
|
|
860
|
+
super(), he(this, e, Hi, zi, ge, {
|
|
861
861
|
feature: 0,
|
|
862
862
|
selected: 1,
|
|
863
863
|
showPlaceType: 2,
|
|
@@ -866,14 +866,14 @@ class qi extends ve {
|
|
|
866
866
|
});
|
|
867
867
|
}
|
|
868
868
|
}
|
|
869
|
-
function
|
|
869
|
+
function Pi(i) {
|
|
870
870
|
let e;
|
|
871
871
|
return {
|
|
872
872
|
c() {
|
|
873
873
|
e = R("div"), e.innerHTML = '<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>', l(e, "class", "svelte-7cmwmc");
|
|
874
874
|
},
|
|
875
|
-
m(t,
|
|
876
|
-
B(t, e,
|
|
875
|
+
m(t, r) {
|
|
876
|
+
B(t, e, r);
|
|
877
877
|
},
|
|
878
878
|
p: A,
|
|
879
879
|
i: A,
|
|
@@ -883,41 +883,41 @@ function ji(i) {
|
|
|
883
883
|
}
|
|
884
884
|
};
|
|
885
885
|
}
|
|
886
|
-
class
|
|
886
|
+
class Zi extends be {
|
|
887
887
|
constructor(e) {
|
|
888
|
-
super(),
|
|
888
|
+
super(), he(this, e, null, Pi, ge, {});
|
|
889
889
|
}
|
|
890
890
|
}
|
|
891
|
-
function
|
|
891
|
+
function Gi(i) {
|
|
892
892
|
let e, t;
|
|
893
893
|
return {
|
|
894
894
|
c() {
|
|
895
|
-
e =
|
|
895
|
+
e = ne("svg"), t = ne("path"), l(t, "d", "M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"), l(e, "viewBox", "0 0 60.006 21.412"), l(e, "width", "14"), l(e, "height", "20"), l(e, "class", "svelte-en2qvf");
|
|
896
896
|
},
|
|
897
|
-
m(
|
|
898
|
-
B(
|
|
897
|
+
m(r, o) {
|
|
898
|
+
B(r, e, o), T(e, t);
|
|
899
899
|
},
|
|
900
900
|
p: A,
|
|
901
901
|
i: A,
|
|
902
902
|
o: A,
|
|
903
|
-
d(
|
|
904
|
-
|
|
903
|
+
d(r) {
|
|
904
|
+
r && U(e);
|
|
905
905
|
}
|
|
906
906
|
};
|
|
907
907
|
}
|
|
908
|
-
class
|
|
908
|
+
class qi extends be {
|
|
909
909
|
constructor(e) {
|
|
910
|
-
super(),
|
|
910
|
+
super(), he(this, e, null, Gi, ge, {});
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
913
|
function Qi(i) {
|
|
914
|
-
let e, t,
|
|
914
|
+
let e, t, r;
|
|
915
915
|
return {
|
|
916
916
|
c() {
|
|
917
|
-
e =
|
|
917
|
+
e = ne("svg"), t = ne("circle"), r = ne("path"), l(t, "cx", "4.789"), l(t, "cy", "4.787"), l(t, "r", "3.85"), l(t, "class", "svelte-1aq105l"), l(r, "d", "M12.063 12.063 7.635 7.635"), l(r, "class", "svelte-1aq105l"), l(e, "xmlns", "http://www.w3.org/2000/svg"), l(e, "width", "13"), l(e, "height", "13"), l(e, "viewBox", "0 0 13 13"), l(e, "class", "svelte-1aq105l");
|
|
918
918
|
},
|
|
919
919
|
m(o, u) {
|
|
920
|
-
B(o, e, u), T(e, t), T(e,
|
|
920
|
+
B(o, e, u), T(e, t), T(e, r);
|
|
921
921
|
},
|
|
922
922
|
p: A,
|
|
923
923
|
i: A,
|
|
@@ -927,37 +927,37 @@ function Qi(i) {
|
|
|
927
927
|
}
|
|
928
928
|
};
|
|
929
929
|
}
|
|
930
|
-
class Ki extends
|
|
930
|
+
class Ki extends be {
|
|
931
931
|
constructor(e) {
|
|
932
|
-
super(),
|
|
932
|
+
super(), he(this, e, null, Qi, ge, {});
|
|
933
933
|
}
|
|
934
934
|
}
|
|
935
935
|
function Vi(i, e, t) {
|
|
936
|
-
const
|
|
937
|
-
return i ===
|
|
936
|
+
const r = e[1], o = e[0], u = r - o;
|
|
937
|
+
return i === r && t ? i : ((i - o) % u + u) % u + o;
|
|
938
938
|
}
|
|
939
939
|
function bt(i) {
|
|
940
940
|
const e = [...i];
|
|
941
941
|
return e[2] < e[0] && (Math.abs((e[0] + e[2] + 360) / 2) > Math.abs((e[0] - 360 + e[2]) / 2) ? e[0] -= 360 : e[2] += 360), e;
|
|
942
942
|
}
|
|
943
|
-
let
|
|
943
|
+
let pe;
|
|
944
944
|
async function xi(i, e, t) {
|
|
945
|
-
const
|
|
945
|
+
const r = i == null ? void 0 : i.getCenterAndZoom();
|
|
946
946
|
for (const o of e ?? [])
|
|
947
|
-
if (!(
|
|
947
|
+
if (!(r && (o.minZoom != null && o.minZoom > r[0] || o.maxZoom != null && o.maxZoom < r[0]))) {
|
|
948
948
|
if (o.type === "fixed")
|
|
949
949
|
return o.coordinates.join(",");
|
|
950
950
|
e: if (o.type === "client-geolocation") {
|
|
951
|
-
if (
|
|
952
|
-
if (!
|
|
951
|
+
if (pe && o.cachedLocationExpiry && pe.time + o.cachedLocationExpiry > Date.now()) {
|
|
952
|
+
if (!pe.coords)
|
|
953
953
|
break e;
|
|
954
|
-
return
|
|
954
|
+
return pe.coords;
|
|
955
955
|
}
|
|
956
956
|
let u;
|
|
957
957
|
try {
|
|
958
|
-
return u = await new Promise((a,
|
|
958
|
+
return u = await new Promise((a, n) => {
|
|
959
959
|
t.signal.addEventListener("abort", () => {
|
|
960
|
-
|
|
960
|
+
n(Error("aborted"));
|
|
961
961
|
}), navigator.geolocation.getCurrentPosition(
|
|
962
962
|
(d) => {
|
|
963
963
|
a(
|
|
@@ -965,14 +965,14 @@ async function xi(i, e, t) {
|
|
|
965
965
|
);
|
|
966
966
|
},
|
|
967
967
|
(d) => {
|
|
968
|
-
|
|
968
|
+
n(d);
|
|
969
969
|
},
|
|
970
970
|
o
|
|
971
971
|
);
|
|
972
972
|
}), u;
|
|
973
973
|
} catch {
|
|
974
974
|
} finally {
|
|
975
|
-
o.cachedLocationExpiry && (
|
|
975
|
+
o.cachedLocationExpiry && (pe = {
|
|
976
976
|
time: Date.now(),
|
|
977
977
|
coords: u
|
|
978
978
|
});
|
|
@@ -982,8 +982,8 @@ async function xi(i, e, t) {
|
|
|
982
982
|
}
|
|
983
983
|
if (o.type === "server-geolocation")
|
|
984
984
|
return "ip";
|
|
985
|
-
if (
|
|
986
|
-
return
|
|
985
|
+
if (r && o.type === "map-center")
|
|
986
|
+
return r[1].toFixed(6) + "," + r[2].toFixed(6);
|
|
987
987
|
}
|
|
988
988
|
}
|
|
989
989
|
const Ji = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(EAST|WEST|[EW])?$/i, vt = /^([+-]?[0-8]?[0-9])\s+([0-5]?[0-9]\.\d{3,})[\s,]{1,}([+-]?[0-1]?[0-9]?[0-9])\s+([0-5]?[0-9]\.\d{3,})$/, Lt = /^(NORTH|SOUTH|[NS])?[\s]*([+-]?[0-8]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(NORTH|SOUTH|[NS])?[\s]*[,/;]?[\s]*(EAST|WEST|[EW])?[\s]*([+-]?[0-1]?[0-9]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(EAST|WEST|[EW])?$/i, _t = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(EAST|WEST|[EW])?$/i, yt = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)\s*(EAST|WEST|[EW])?$/i, wt = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|’’|´´|["″”\.])?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|´´|’’|["″”\.])?\s*(EAST|WEST|[EW])?$/i;
|
|
@@ -991,19 +991,19 @@ function Xi(i) {
|
|
|
991
991
|
if (!["DMS", "DM", "DD"].includes(i))
|
|
992
992
|
throw new Error("invalid format specified");
|
|
993
993
|
if (this.decimalCoordinates && this.decimalCoordinates.trim()) {
|
|
994
|
-
const e = this.decimalCoordinates.split(",").map((_) => Number(_.trim())), t = Number(e[0]),
|
|
994
|
+
const e = this.decimalCoordinates.split(",").map((_) => Number(_.trim())), t = Number(e[0]), r = Number(e[1]), o = Math.abs(t), u = Math.abs(r), a = t > 0 ? "N" : "S", n = r > 0 ? "E" : "W";
|
|
995
995
|
let d;
|
|
996
|
-
i == "DD" && (d = `${o}° ${a}, ${u}° ${
|
|
996
|
+
i == "DD" && (d = `${o}° ${a}, ${u}° ${n}`);
|
|
997
997
|
const c = Math.floor(o), f = Math.floor(u), h = (o - c) * 60, v = (u - f) * 60;
|
|
998
998
|
if (i == "DM") {
|
|
999
999
|
let _ = Et(h, 3).toFixed(3).padStart(6, "0"), w = Et(v, 3).toFixed(3).padStart(6, "0");
|
|
1000
|
-
_.endsWith(".000") && w.endsWith(".000") && (_ = _.replace(/\.000$/, ""), w = w.replace(/\.000$/, "")), d = `${c}° ${_}' ${a}, ${f}° ${w}' ${
|
|
1000
|
+
_.endsWith(".000") && w.endsWith(".000") && (_ = _.replace(/\.000$/, ""), w = w.replace(/\.000$/, "")), d = `${c}° ${_}' ${a}, ${f}° ${w}' ${n}`;
|
|
1001
1001
|
}
|
|
1002
1002
|
if (i == "DMS") {
|
|
1003
1003
|
const _ = Math.floor(h), w = Math.floor(v);
|
|
1004
1004
|
let W = ((h - _) * 60).toFixed(1).padStart(4, "0"), y = ((v - w) * 60).toFixed(1).padStart(4, "0");
|
|
1005
1005
|
const E = _.toString().padStart(2, "0"), C = w.toString().padStart(2, "0");
|
|
1006
|
-
W.endsWith(".0") && y.endsWith(".0") && (W = W.replace(/\.0$/, ""), y = y.replace(/\.0$/, "")), d = `${c}° ${E}' ${W}" ${a}, ${f}° ${C}' ${y}" ${
|
|
1006
|
+
W.endsWith(".0") && y.endsWith(".0") && (W = W.replace(/\.0$/, ""), y = y.replace(/\.0$/, "")), d = `${c}° ${E}' ${W}" ${a}, ${f}° ${C}' ${y}" ${n}`;
|
|
1007
1007
|
}
|
|
1008
1008
|
return d;
|
|
1009
1009
|
} else
|
|
@@ -1013,45 +1013,45 @@ function Et(i, e) {
|
|
|
1013
1013
|
const t = Math.pow(10, e);
|
|
1014
1014
|
return Math.round((i + Number.EPSILON) * t) / t;
|
|
1015
1015
|
}
|
|
1016
|
-
function
|
|
1016
|
+
function rt(i, e) {
|
|
1017
1017
|
e || (e = 5), i = i.replace(/\s+/g, " ").trim();
|
|
1018
|
-
let t = null,
|
|
1018
|
+
let t = null, r = null, o = "", u = "", a = null, n = [], d = !1;
|
|
1019
1019
|
if (Ji.test(i))
|
|
1020
1020
|
throw new Error("invalid coordinate value");
|
|
1021
1021
|
if (vt.test(i))
|
|
1022
|
-
if (
|
|
1023
|
-
t = Math.abs(
|
|
1022
|
+
if (n = vt.exec(i), d = Ne(n), d)
|
|
1023
|
+
t = Math.abs(n[1]) + n[2] / 60, Number(n[1]) < 0 && (t *= -1), r = Math.abs(n[3]) + n[4] / 60, Number(n[3]) < 0 && (r *= -1), a = "DM";
|
|
1024
1024
|
else
|
|
1025
1025
|
throw new Error("invalid coordinate format");
|
|
1026
1026
|
else if (Lt.test(i))
|
|
1027
|
-
if (
|
|
1028
|
-
if (t =
|
|
1027
|
+
if (n = Lt.exec(i), d = Ne(n), d) {
|
|
1028
|
+
if (t = n[2], r = n[6], t.includes(",") && (t = t.replace(",", ".")), r.includes(",") && (r = r.replace(",", ".")), a = "DD", Number(Math.round(t)) == Number(t))
|
|
1029
1029
|
throw new Error("integer only coordinate provided");
|
|
1030
|
-
if (Number(Math.round(
|
|
1030
|
+
if (Number(Math.round(r)) == Number(r))
|
|
1031
1031
|
throw new Error("integer only coordinate provided");
|
|
1032
|
-
|
|
1032
|
+
n[1] ? (o = n[1], u = n[5]) : n[4] && (o = n[4], u = n[8]);
|
|
1033
1033
|
} else
|
|
1034
1034
|
throw new Error("invalid decimal coordinate format");
|
|
1035
1035
|
else if (_t.test(i))
|
|
1036
|
-
if (
|
|
1037
|
-
t = Math.abs(parseInt(
|
|
1036
|
+
if (n = _t.exec(i), d = Ne(n), d)
|
|
1037
|
+
t = Math.abs(parseInt(n[2])), n[4] && (t += n[4] / 60, a = "DM"), n[6] && (t += n[6].replace(",", ".") / 3600, a = "DMS"), parseInt(n[2]) < 0 && (t = -1 * t), r = Math.abs(parseInt(n[9])), n[11] && (r += n[11] / 60), n[13] && (r += n[13].replace(",", ".") / 3600), parseInt(n[9]) < 0 && (r = -1 * r), n[1] ? (o = n[1], u = n[8]) : n[7] && (o = n[7], u = n[14]);
|
|
1038
1038
|
else
|
|
1039
1039
|
throw new Error("invalid DMS coordinates format");
|
|
1040
1040
|
else if (yt.test(i))
|
|
1041
|
-
if (
|
|
1042
|
-
t = Math.abs(parseInt(
|
|
1041
|
+
if (n = yt.exec(i), d = Ne(n), d)
|
|
1042
|
+
t = Math.abs(parseInt(n[2])), n[4] && (t += n[4] / 60, a = "DM"), n[6] && (t += n[6] / 3600, a = "DMS"), parseInt(n[2]) < 0 && (t = -1 * t), r = Math.abs(parseInt(n[10])), n[12] && (r += n[12] / 60), n[14] && (r += n[14] / 3600), parseInt(n[10]) < 0 && (r = -1 * r), n[1] ? (o = n[1], u = n[9]) : n[8] && (o = n[8], u = n[16]);
|
|
1043
1043
|
else
|
|
1044
1044
|
throw new Error("invalid DMS coordinates format");
|
|
1045
1045
|
else if (wt.test(i)) {
|
|
1046
|
-
if (
|
|
1046
|
+
if (n = wt.exec(i), d = Ne(n), n.filter((c) => c).length <= 5)
|
|
1047
1047
|
throw new Error("invalid coordinates format");
|
|
1048
1048
|
if (d)
|
|
1049
|
-
t = Math.abs(parseInt(
|
|
1049
|
+
t = Math.abs(parseInt(n[2])), n[4] && (t += n[4].replace(",", ".") / 60, a = "DM"), n[6] && (t += n[6].replace(",", ".") / 3600, a = "DMS"), parseInt(n[2]) < 0 && (t = -1 * t), r = Math.abs(parseInt(n[10])), n[12] && (r += n[12].replace(",", ".") / 60), n[14] && (r += n[14].replace(",", ".") / 3600), parseInt(n[10]) < 0 && (r = -1 * r), n[1] ? (o = n[1], u = n[9]) : n[8] && (o = n[8], u = n[16]);
|
|
1050
1050
|
else
|
|
1051
1051
|
throw new Error("invalid coordinates format");
|
|
1052
1052
|
}
|
|
1053
1053
|
if (d) {
|
|
1054
|
-
if (Math.abs(
|
|
1054
|
+
if (Math.abs(r) >= 180)
|
|
1055
1055
|
throw new Error("invalid longitude value");
|
|
1056
1056
|
if (Math.abs(t) >= 90)
|
|
1057
1057
|
throw new Error("invalid latitude value");
|
|
@@ -1059,10 +1059,10 @@ function nt(i, e) {
|
|
|
1059
1059
|
throw new Error("invalid coordinates value");
|
|
1060
1060
|
if (o && o == u)
|
|
1061
1061
|
throw new Error("invalid coordinates format");
|
|
1062
|
-
t.toString().includes(",") && (t = t.replace(",", ".")),
|
|
1062
|
+
t.toString().includes(",") && (t = t.replace(",", ".")), r.toString().includes(",") && (r = r.replace(",", "."));
|
|
1063
1063
|
let c = /S|SOUTH/i;
|
|
1064
|
-
c.test(o) && t > 0 && (t = -1 * t), c = /W|WEST/i, c.test(u) &&
|
|
1065
|
-
const f =
|
|
1064
|
+
c.test(o) && t > 0 && (t = -1 * t), c = /W|WEST/i, c.test(u) && r > 0 && (r = -1 * r);
|
|
1065
|
+
const f = n[0].trim();
|
|
1066
1066
|
let h, v;
|
|
1067
1067
|
const _ = /[,/;\u0020]/g, w = f.match(_);
|
|
1068
1068
|
if (w == null) {
|
|
@@ -1089,13 +1089,13 @@ function nt(i, e) {
|
|
|
1089
1089
|
throw new Error("invalid coordinates format");
|
|
1090
1090
|
if (/^\d+$/.test(h) || /^\d+$/.test(v))
|
|
1091
1091
|
throw new Error("degree only coordinate/s provided");
|
|
1092
|
-
return t = Number(Number(t).toFixed(e)),
|
|
1092
|
+
return t = Number(Number(t).toFixed(e)), r = Number(Number(r).toFixed(e)), Object.freeze({
|
|
1093
1093
|
verbatimCoordinates: f,
|
|
1094
1094
|
verbatimLatitude: h,
|
|
1095
1095
|
verbatimLongitude: v,
|
|
1096
1096
|
decimalLatitude: t,
|
|
1097
|
-
decimalLongitude:
|
|
1098
|
-
decimalCoordinates: `${t},${
|
|
1097
|
+
decimalLongitude: r,
|
|
1098
|
+
decimalCoordinates: `${t},${r}`,
|
|
1099
1099
|
originalFormat: a,
|
|
1100
1100
|
closeEnough: Yi,
|
|
1101
1101
|
toCoordinateFormat: Xi
|
|
@@ -1103,17 +1103,17 @@ function nt(i, e) {
|
|
|
1103
1103
|
} else
|
|
1104
1104
|
throw new Error("coordinates pattern match failed");
|
|
1105
1105
|
}
|
|
1106
|
-
function
|
|
1106
|
+
function Ne(i) {
|
|
1107
1107
|
if (!isNaN(i[0]))
|
|
1108
1108
|
return !1;
|
|
1109
1109
|
const e = [...i];
|
|
1110
1110
|
if (e.shift(), e.length % 2 > 0)
|
|
1111
1111
|
return !1;
|
|
1112
|
-
const t = /^[-+]?\d+([\.,]\d+)?$/,
|
|
1112
|
+
const t = /^[-+]?\d+([\.,]\d+)?$/, r = /[eastsouthnorthwest]+/i, o = e.length / 2;
|
|
1113
1113
|
for (let u = 0; u < o; u++) {
|
|
1114
|
-
const a = e[u],
|
|
1115
|
-
if (!(a == null &&
|
|
1116
|
-
if (a == null ||
|
|
1114
|
+
const a = e[u], n = e[u + o], d = t.test(a) && t.test(n), c = r.test(a) && r.test(n), f = a == n;
|
|
1115
|
+
if (!(a == null && n == null)) {
|
|
1116
|
+
if (a == null || n == null)
|
|
1117
1117
|
return !1;
|
|
1118
1118
|
if (d || c || f)
|
|
1119
1119
|
continue;
|
|
@@ -1142,8 +1142,8 @@ const $i = Object.freeze({
|
|
|
1142
1142
|
DM: "DM",
|
|
1143
1143
|
DD: "DD"
|
|
1144
1144
|
});
|
|
1145
|
-
|
|
1146
|
-
const
|
|
1145
|
+
rt.to = $i;
|
|
1146
|
+
const er = [
|
|
1147
1147
|
{
|
|
1148
1148
|
verbatimCoordinates: "40.123, -74.123",
|
|
1149
1149
|
verbatimLatitude: "40.123",
|
|
@@ -1284,10 +1284,10 @@ const en = [
|
|
|
1284
1284
|
verbatimLatitude: "40 7 22.8",
|
|
1285
1285
|
verbatimLongitude: "-74 7 22.8"
|
|
1286
1286
|
}
|
|
1287
|
-
],
|
|
1287
|
+
], tr = {
|
|
1288
1288
|
decimalLatitude: 40.123,
|
|
1289
1289
|
decimalLongitude: -74.123
|
|
1290
|
-
},
|
|
1290
|
+
}, ir = [
|
|
1291
1291
|
{
|
|
1292
1292
|
verbatimCoordinates: `50°4'17.698"south, 14°24'2.826"east`,
|
|
1293
1293
|
verbatimLatitude: `50°4'17.698"south`,
|
|
@@ -1372,7 +1372,7 @@ const en = [
|
|
|
1372
1372
|
decimalLatitude: -18.4,
|
|
1373
1373
|
decimalLongitude: 22.75
|
|
1374
1374
|
}
|
|
1375
|
-
],
|
|
1375
|
+
], rr = [
|
|
1376
1376
|
{
|
|
1377
1377
|
verbatimCoordinates: "10.432342S 10.6345345E",
|
|
1378
1378
|
verbatimLatitude: "10.432342S",
|
|
@@ -1507,71 +1507,71 @@ const en = [
|
|
|
1507
1507
|
decimalLongitude: 18.33453
|
|
1508
1508
|
}
|
|
1509
1509
|
];
|
|
1510
|
-
function
|
|
1510
|
+
function nr() {
|
|
1511
1511
|
const i = [];
|
|
1512
|
-
return
|
|
1513
|
-
e.decimalLatitude ? i.push(e) : i.push({ ...e, ...
|
|
1514
|
-
}), [...i, ...
|
|
1512
|
+
return er.forEach((e) => {
|
|
1513
|
+
e.decimalLatitude ? i.push(e) : i.push({ ...e, ...tr });
|
|
1514
|
+
}), [...i, ...ir, ...rr];
|
|
1515
1515
|
}
|
|
1516
|
-
const
|
|
1517
|
-
|
|
1518
|
-
const
|
|
1516
|
+
const or = nr();
|
|
1517
|
+
rt.formats = or.map((i) => i.verbatimCoordinates);
|
|
1518
|
+
const sr = rt;
|
|
1519
1519
|
function pt(i, e, t) {
|
|
1520
|
-
const
|
|
1521
|
-
return
|
|
1520
|
+
const r = i.slice();
|
|
1521
|
+
return r[83] = e[t], r[85] = t, r;
|
|
1522
1522
|
}
|
|
1523
1523
|
function Nt(i) {
|
|
1524
1524
|
let e, t;
|
|
1525
|
-
return e = new
|
|
1525
|
+
return e = new Zi({}), {
|
|
1526
1526
|
c() {
|
|
1527
1527
|
de(e.$$.fragment);
|
|
1528
1528
|
},
|
|
1529
|
-
m(
|
|
1530
|
-
oe(e,
|
|
1529
|
+
m(r, o) {
|
|
1530
|
+
oe(e, r, o), t = !0;
|
|
1531
1531
|
},
|
|
1532
|
-
i(
|
|
1533
|
-
t || (z(e.$$.fragment,
|
|
1532
|
+
i(r) {
|
|
1533
|
+
t || (z(e.$$.fragment, r), t = !0);
|
|
1534
1534
|
},
|
|
1535
|
-
o(
|
|
1536
|
-
Q(e.$$.fragment,
|
|
1535
|
+
o(r) {
|
|
1536
|
+
Q(e.$$.fragment, r), t = !1;
|
|
1537
1537
|
},
|
|
1538
|
-
d(
|
|
1539
|
-
se(e,
|
|
1538
|
+
d(r) {
|
|
1539
|
+
se(e, r);
|
|
1540
1540
|
}
|
|
1541
1541
|
};
|
|
1542
1542
|
}
|
|
1543
1543
|
function Mt(i) {
|
|
1544
|
-
let e, t,
|
|
1545
|
-
return t = new
|
|
1544
|
+
let e, t, r, o, u;
|
|
1545
|
+
return t = new qi({}), {
|
|
1546
1546
|
c() {
|
|
1547
1547
|
e = R("button"), de(t.$$.fragment), l(e, "type", "button"), l(
|
|
1548
1548
|
e,
|
|
1549
1549
|
"title",
|
|
1550
1550
|
/*reverseButtonTitle*/
|
|
1551
1551
|
i[9]
|
|
1552
|
-
), l(e, "class", "svelte-
|
|
1552
|
+
), l(e, "class", "svelte-1uvos7g"), ue(
|
|
1553
1553
|
e,
|
|
1554
1554
|
"active",
|
|
1555
1555
|
/*reverseActive*/
|
|
1556
1556
|
i[0]
|
|
1557
1557
|
);
|
|
1558
1558
|
},
|
|
1559
|
-
m(a,
|
|
1560
|
-
B(a, e,
|
|
1559
|
+
m(a, n) {
|
|
1560
|
+
B(a, e, n), oe(t, e, null), r = !0, o || (u = V(
|
|
1561
1561
|
e,
|
|
1562
1562
|
"click",
|
|
1563
1563
|
/*click_handler_2*/
|
|
1564
1564
|
i[68]
|
|
1565
1565
|
), o = !0);
|
|
1566
1566
|
},
|
|
1567
|
-
p(a,
|
|
1568
|
-
(!
|
|
1567
|
+
p(a, n) {
|
|
1568
|
+
(!r || n[0] & /*reverseButtonTitle*/
|
|
1569
1569
|
512) && l(
|
|
1570
1570
|
e,
|
|
1571
1571
|
"title",
|
|
1572
1572
|
/*reverseButtonTitle*/
|
|
1573
1573
|
a[9]
|
|
1574
|
-
), (!
|
|
1574
|
+
), (!r || n[0] & /*reverseActive*/
|
|
1575
1575
|
1) && ue(
|
|
1576
1576
|
e,
|
|
1577
1577
|
"active",
|
|
@@ -1580,18 +1580,18 @@ function Mt(i) {
|
|
|
1580
1580
|
);
|
|
1581
1581
|
},
|
|
1582
1582
|
i(a) {
|
|
1583
|
-
|
|
1583
|
+
r || (z(t.$$.fragment, a), r = !0);
|
|
1584
1584
|
},
|
|
1585
1585
|
o(a) {
|
|
1586
|
-
Q(t.$$.fragment, a),
|
|
1586
|
+
Q(t.$$.fragment, a), r = !1;
|
|
1587
1587
|
},
|
|
1588
1588
|
d(a) {
|
|
1589
1589
|
a && U(e), se(t), o = !1, u();
|
|
1590
1590
|
}
|
|
1591
1591
|
};
|
|
1592
1592
|
}
|
|
1593
|
-
function
|
|
1594
|
-
let e, t = [],
|
|
1593
|
+
function ar(i) {
|
|
1594
|
+
let e, t = [], r = /* @__PURE__ */ new Map(), o, u, a, n = gt(
|
|
1595
1595
|
/*listFeatures*/
|
|
1596
1596
|
i[14]
|
|
1597
1597
|
);
|
|
@@ -1601,16 +1601,16 @@ function ln(i) {
|
|
|
1601
1601
|
(c[83].address ? "," + /*feature*/
|
|
1602
1602
|
c[83].address : "")
|
|
1603
1603
|
);
|
|
1604
|
-
for (let c = 0; c <
|
|
1605
|
-
let f = pt(i,
|
|
1606
|
-
|
|
1604
|
+
for (let c = 0; c < n.length; c += 1) {
|
|
1605
|
+
let f = pt(i, n, c), h = d(f);
|
|
1606
|
+
r.set(h, t[c] = Tt(h, f));
|
|
1607
1607
|
}
|
|
1608
1608
|
return {
|
|
1609
1609
|
c() {
|
|
1610
1610
|
e = R("ul");
|
|
1611
1611
|
for (let c = 0; c < t.length; c += 1)
|
|
1612
1612
|
t[c].c();
|
|
1613
|
-
l(e, "class", "svelte-
|
|
1613
|
+
l(e, "class", "svelte-1uvos7g");
|
|
1614
1614
|
},
|
|
1615
1615
|
m(c, f) {
|
|
1616
1616
|
B(c, e, f);
|
|
@@ -1633,14 +1633,14 @@ function ln(i) {
|
|
|
1633
1633
|
},
|
|
1634
1634
|
p(c, f) {
|
|
1635
1635
|
f[0] & /*listFeatures, showPlaceType, selectedItemIndex, missingIconsCache, iconsBaseUrl, pick*/
|
|
1636
|
-
17880064 && (
|
|
1636
|
+
17880064 && (n = gt(
|
|
1637
1637
|
/*listFeatures*/
|
|
1638
1638
|
c[14]
|
|
1639
|
-
), Fe(), t = Mi(t, f, d, 1, c,
|
|
1639
|
+
), Fe(), t = Mi(t, f, d, 1, c, n, r, e, Ni, Tt, null, pt), ze());
|
|
1640
1640
|
},
|
|
1641
1641
|
i(c) {
|
|
1642
1642
|
if (!o) {
|
|
1643
|
-
for (let f = 0; f <
|
|
1643
|
+
for (let f = 0; f < n.length; f += 1)
|
|
1644
1644
|
z(t[f]);
|
|
1645
1645
|
o = !0;
|
|
1646
1646
|
}
|
|
@@ -1658,66 +1658,66 @@ function ln(i) {
|
|
|
1658
1658
|
}
|
|
1659
1659
|
};
|
|
1660
1660
|
}
|
|
1661
|
-
function
|
|
1662
|
-
let e, t,
|
|
1661
|
+
function lr(i) {
|
|
1662
|
+
let e, t, r, o, u, a;
|
|
1663
1663
|
return t = new At({}), {
|
|
1664
1664
|
c() {
|
|
1665
|
-
e = R("div"), de(t.$$.fragment),
|
|
1665
|
+
e = R("div"), de(t.$$.fragment), r = J(), o = R("div"), u = ce(
|
|
1666
1666
|
/*noResultsMessage*/
|
|
1667
1667
|
i[7]
|
|
1668
|
-
), l(o, "class", "svelte-
|
|
1668
|
+
), l(o, "class", "svelte-1uvos7g"), l(e, "class", "no-results svelte-1uvos7g");
|
|
1669
1669
|
},
|
|
1670
|
-
m(
|
|
1671
|
-
B(
|
|
1670
|
+
m(n, d) {
|
|
1671
|
+
B(n, e, d), oe(t, e, null), T(e, r), T(e, o), T(o, u), a = !0;
|
|
1672
1672
|
},
|
|
1673
|
-
p(
|
|
1673
|
+
p(n, d) {
|
|
1674
1674
|
(!a || d[0] & /*noResultsMessage*/
|
|
1675
|
-
128) &&
|
|
1675
|
+
128) && Te(
|
|
1676
1676
|
u,
|
|
1677
1677
|
/*noResultsMessage*/
|
|
1678
|
-
|
|
1678
|
+
n[7]
|
|
1679
1679
|
);
|
|
1680
1680
|
},
|
|
1681
|
-
i(
|
|
1682
|
-
a || (z(t.$$.fragment,
|
|
1681
|
+
i(n) {
|
|
1682
|
+
a || (z(t.$$.fragment, n), a = !0);
|
|
1683
1683
|
},
|
|
1684
|
-
o(
|
|
1685
|
-
Q(t.$$.fragment,
|
|
1684
|
+
o(n) {
|
|
1685
|
+
Q(t.$$.fragment, n), a = !1;
|
|
1686
1686
|
},
|
|
1687
|
-
d(
|
|
1688
|
-
|
|
1687
|
+
d(n) {
|
|
1688
|
+
n && U(e), se(t);
|
|
1689
1689
|
}
|
|
1690
1690
|
};
|
|
1691
1691
|
}
|
|
1692
|
-
function
|
|
1692
|
+
function ur(i) {
|
|
1693
1693
|
let e = "", t;
|
|
1694
1694
|
return {
|
|
1695
1695
|
c() {
|
|
1696
1696
|
t = ce(e);
|
|
1697
1697
|
},
|
|
1698
|
-
m(
|
|
1699
|
-
B(
|
|
1698
|
+
m(r, o) {
|
|
1699
|
+
B(r, t, o);
|
|
1700
1700
|
},
|
|
1701
1701
|
p: A,
|
|
1702
1702
|
i: A,
|
|
1703
1703
|
o: A,
|
|
1704
|
-
d(
|
|
1705
|
-
|
|
1704
|
+
d(r) {
|
|
1705
|
+
r && U(t);
|
|
1706
1706
|
}
|
|
1707
1707
|
};
|
|
1708
1708
|
}
|
|
1709
|
-
function
|
|
1710
|
-
let e, t,
|
|
1709
|
+
function cr(i) {
|
|
1710
|
+
let e, t, r, o, u, a, n, d, c, f, h;
|
|
1711
1711
|
return t = new At({}), d = new It({}), {
|
|
1712
1712
|
c() {
|
|
1713
|
-
e = R("div"), de(t.$$.fragment),
|
|
1713
|
+
e = R("div"), de(t.$$.fragment), r = J(), o = R("div"), u = ce(
|
|
1714
1714
|
/*errorMessage*/
|
|
1715
1715
|
i[6]
|
|
1716
|
-
), a = J(),
|
|
1716
|
+
), a = J(), n = R("button"), de(d.$$.fragment), l(o, "class", "svelte-1uvos7g"), l(n, "class", "svelte-1uvos7g"), l(e, "class", "error svelte-1uvos7g");
|
|
1717
1717
|
},
|
|
1718
1718
|
m(v, _) {
|
|
1719
|
-
B(v, e, _), oe(t, e, null), T(e,
|
|
1720
|
-
|
|
1719
|
+
B(v, e, _), oe(t, e, null), T(e, r), T(e, o), T(o, u), T(e, a), T(e, n), oe(d, n, null), c = !0, f || (h = V(
|
|
1720
|
+
n,
|
|
1721
1721
|
"click",
|
|
1722
1722
|
/*click_handler_3*/
|
|
1723
1723
|
i[69]
|
|
@@ -1725,7 +1725,7 @@ function dn(i) {
|
|
|
1725
1725
|
},
|
|
1726
1726
|
p(v, _) {
|
|
1727
1727
|
(!c || _[0] & /*errorMessage*/
|
|
1728
|
-
64) &&
|
|
1728
|
+
64) && Te(
|
|
1729
1729
|
u,
|
|
1730
1730
|
/*errorMessage*/
|
|
1731
1731
|
v[6]
|
|
@@ -1743,7 +1743,7 @@ function dn(i) {
|
|
|
1743
1743
|
};
|
|
1744
1744
|
}
|
|
1745
1745
|
function Tt(i, e) {
|
|
1746
|
-
let t,
|
|
1746
|
+
let t, r, o;
|
|
1747
1747
|
function u() {
|
|
1748
1748
|
return (
|
|
1749
1749
|
/*mouseenter_handler*/
|
|
@@ -1762,7 +1762,7 @@ function Tt(i, e) {
|
|
|
1762
1762
|
)
|
|
1763
1763
|
);
|
|
1764
1764
|
}
|
|
1765
|
-
return
|
|
1765
|
+
return r = new ji({
|
|
1766
1766
|
props: {
|
|
1767
1767
|
feature: (
|
|
1768
1768
|
/*feature*/
|
|
@@ -1786,17 +1786,17 @@ function Tt(i, e) {
|
|
|
1786
1786
|
e[12]
|
|
1787
1787
|
)
|
|
1788
1788
|
}
|
|
1789
|
-
}),
|
|
1789
|
+
}), r.$on("mouseenter", u), r.$on("focus", a), {
|
|
1790
1790
|
key: i,
|
|
1791
1791
|
first: null,
|
|
1792
1792
|
c() {
|
|
1793
|
-
t = hi(), de(
|
|
1793
|
+
t = hi(), de(r.$$.fragment), this.first = t;
|
|
1794
1794
|
},
|
|
1795
|
-
m(
|
|
1796
|
-
B(
|
|
1795
|
+
m(n, d) {
|
|
1796
|
+
B(n, t, d), oe(r, n, d), o = !0;
|
|
1797
1797
|
},
|
|
1798
|
-
p(
|
|
1799
|
-
e =
|
|
1798
|
+
p(n, d) {
|
|
1799
|
+
e = n;
|
|
1800
1800
|
const c = {};
|
|
1801
1801
|
d[0] & /*listFeatures*/
|
|
1802
1802
|
16384 && (c.feature = /*feature*/
|
|
@@ -1807,21 +1807,21 @@ function Tt(i, e) {
|
|
|
1807
1807
|
e[15] === /*i*/
|
|
1808
1808
|
e[85]), d[0] & /*iconsBaseUrl*/
|
|
1809
1809
|
4096 && (c.iconsBaseUrl = /*iconsBaseUrl*/
|
|
1810
|
-
e[12]),
|
|
1810
|
+
e[12]), r.$set(c);
|
|
1811
1811
|
},
|
|
1812
|
-
i(
|
|
1813
|
-
o || (z(
|
|
1812
|
+
i(n) {
|
|
1813
|
+
o || (z(r.$$.fragment, n), o = !0);
|
|
1814
1814
|
},
|
|
1815
|
-
o(
|
|
1816
|
-
Q(
|
|
1815
|
+
o(n) {
|
|
1816
|
+
Q(r.$$.fragment, n), o = !1;
|
|
1817
1817
|
},
|
|
1818
|
-
d(
|
|
1819
|
-
|
|
1818
|
+
d(n) {
|
|
1819
|
+
n && U(t), se(r, n);
|
|
1820
1820
|
}
|
|
1821
1821
|
};
|
|
1822
1822
|
}
|
|
1823
|
-
function
|
|
1824
|
-
let e, t,
|
|
1823
|
+
function dr(i) {
|
|
1824
|
+
let e, t, r, o, u, a, n, d, c, f, h, v, _, w, W, y, E, C, O, p, q, b = !1;
|
|
1825
1825
|
u = new Ki({}), h = new It({});
|
|
1826
1826
|
let g = (
|
|
1827
1827
|
/*abortController*/
|
|
@@ -1839,9 +1839,9 @@ function fn(i) {
|
|
|
1839
1839
|
/*$$scope*/
|
|
1840
1840
|
i[59],
|
|
1841
1841
|
null
|
|
1842
|
-
), X = [
|
|
1843
|
-
function
|
|
1844
|
-
var $,
|
|
1842
|
+
), X = [cr, ur, lr, ar], Y = [];
|
|
1843
|
+
function j(L, F) {
|
|
1844
|
+
var $, re;
|
|
1845
1845
|
return (
|
|
1846
1846
|
/*error*/
|
|
1847
1847
|
L[18] ? 0 : (
|
|
@@ -1851,38 +1851,38 @@ function fn(i) {
|
|
|
1851
1851
|
(($ = L[14]) == null ? void 0 : $.length) === 0 ? 2 : (
|
|
1852
1852
|
/*focusedDelayed*/
|
|
1853
1853
|
L[16] && /*listFeatures*/
|
|
1854
|
-
((
|
|
1854
|
+
((re = L[14]) != null && re.length) ? 3 : -1
|
|
1855
1855
|
)
|
|
1856
1856
|
) : 1
|
|
1857
1857
|
)
|
|
1858
1858
|
);
|
|
1859
1859
|
}
|
|
1860
|
-
return ~(y =
|
|
1860
|
+
return ~(y = j(i)) && (E = Y[y] = X[y](i)), {
|
|
1861
1861
|
c() {
|
|
1862
|
-
e = J(), t = R("form"),
|
|
1863
|
-
|
|
1862
|
+
e = J(), t = R("form"), r = R("div"), o = R("button"), de(u.$$.fragment), a = J(), n = R("input"), d = J(), c = R("div"), f = R("button"), de(h.$$.fragment), v = J(), g && g.c(), _ = J(), m && m.c(), w = J(), H && H.c(), W = J(), E && E.c(), l(o, "class", "search-button svelte-1uvos7g"), l(o, "type", "button"), l(
|
|
1863
|
+
n,
|
|
1864
1864
|
"placeholder",
|
|
1865
1865
|
/*placeholder*/
|
|
1866
1866
|
i[8]
|
|
1867
1867
|
), l(
|
|
1868
|
-
|
|
1868
|
+
n,
|
|
1869
1869
|
"aria-label",
|
|
1870
1870
|
/*placeholder*/
|
|
1871
1871
|
i[8]
|
|
1872
|
-
), l(
|
|
1872
|
+
), l(n, "class", "svelte-1uvos7g"), l(f, "type", "button"), l(
|
|
1873
1873
|
f,
|
|
1874
1874
|
"title",
|
|
1875
1875
|
/*clearButtonTitle*/
|
|
1876
1876
|
i[3]
|
|
1877
|
-
), l(f, "class", "svelte-
|
|
1877
|
+
), l(f, "class", "svelte-1uvos7g"), l(c, "class", "clear-button-container svelte-1uvos7g"), ue(
|
|
1878
1878
|
c,
|
|
1879
1879
|
"displayable",
|
|
1880
1880
|
/*searchValue*/
|
|
1881
1881
|
i[1] !== ""
|
|
1882
|
-
), l(
|
|
1882
|
+
), l(r, "class", "input-group svelte-1uvos7g"), l(t, "tabindex", "0"), l(t, "class", C = ct(
|
|
1883
1883
|
/*className*/
|
|
1884
1884
|
i[2]
|
|
1885
|
-
) + " svelte-
|
|
1885
|
+
) + " svelte-1uvos7g"), ue(
|
|
1886
1886
|
t,
|
|
1887
1887
|
"can-collapse",
|
|
1888
1888
|
/*collapsed*/
|
|
@@ -1891,11 +1891,11 @@ function fn(i) {
|
|
|
1891
1891
|
);
|
|
1892
1892
|
},
|
|
1893
1893
|
m(L, F) {
|
|
1894
|
-
B(L, e, F), B(L, t, F), T(t,
|
|
1895
|
-
|
|
1894
|
+
B(L, e, F), B(L, t, F), T(t, r), T(r, o), oe(u, o, null), T(r, a), T(r, n), i[62](n), dt(
|
|
1895
|
+
n,
|
|
1896
1896
|
/*searchValue*/
|
|
1897
1897
|
i[1]
|
|
1898
|
-
), T(
|
|
1898
|
+
), T(r, d), T(r, c), T(c, f), oe(h, f, null), T(c, v), g && g.m(c, null), T(r, _), m && m.m(r, null), T(r, w), H && H.m(r, null), T(t, W), ~y && Y[y].m(t, null), O = !0, p || (q = [
|
|
1899
1899
|
V(
|
|
1900
1900
|
o,
|
|
1901
1901
|
"click",
|
|
@@ -1903,31 +1903,31 @@ function fn(i) {
|
|
|
1903
1903
|
i[61]
|
|
1904
1904
|
),
|
|
1905
1905
|
V(
|
|
1906
|
-
|
|
1906
|
+
n,
|
|
1907
1907
|
"input",
|
|
1908
1908
|
/*input_1_input_handler*/
|
|
1909
1909
|
i[63]
|
|
1910
1910
|
),
|
|
1911
1911
|
V(
|
|
1912
|
-
|
|
1912
|
+
n,
|
|
1913
1913
|
"focus",
|
|
1914
1914
|
/*focus_handler*/
|
|
1915
1915
|
i[64]
|
|
1916
1916
|
),
|
|
1917
1917
|
V(
|
|
1918
|
-
|
|
1918
|
+
n,
|
|
1919
1919
|
"blur",
|
|
1920
1920
|
/*blur_handler*/
|
|
1921
1921
|
i[65]
|
|
1922
1922
|
),
|
|
1923
1923
|
V(
|
|
1924
|
-
|
|
1924
|
+
n,
|
|
1925
1925
|
"keydown",
|
|
1926
1926
|
/*handleKeyDown*/
|
|
1927
1927
|
i[22]
|
|
1928
1928
|
),
|
|
1929
1929
|
V(
|
|
1930
|
-
|
|
1930
|
+
n,
|
|
1931
1931
|
"input",
|
|
1932
1932
|
/*input_handler*/
|
|
1933
1933
|
i[66]
|
|
@@ -1947,20 +1947,20 @@ function fn(i) {
|
|
|
1947
1947
|
p(L, F) {
|
|
1948
1948
|
(!O || F[0] & /*placeholder*/
|
|
1949
1949
|
256) && l(
|
|
1950
|
-
|
|
1950
|
+
n,
|
|
1951
1951
|
"placeholder",
|
|
1952
1952
|
/*placeholder*/
|
|
1953
1953
|
L[8]
|
|
1954
1954
|
), (!O || F[0] & /*placeholder*/
|
|
1955
1955
|
256) && l(
|
|
1956
|
-
|
|
1956
|
+
n,
|
|
1957
1957
|
"aria-label",
|
|
1958
1958
|
/*placeholder*/
|
|
1959
1959
|
L[8]
|
|
1960
1960
|
), F[0] & /*searchValue*/
|
|
1961
|
-
2 &&
|
|
1961
|
+
2 && n.value !== /*searchValue*/
|
|
1962
1962
|
L[1] && dt(
|
|
1963
|
-
|
|
1963
|
+
n,
|
|
1964
1964
|
/*searchValue*/
|
|
1965
1965
|
L[1]
|
|
1966
1966
|
), (!O || F[0] & /*clearButtonTitle*/
|
|
@@ -1981,7 +1981,7 @@ function fn(i) {
|
|
|
1981
1981
|
L[1] !== ""
|
|
1982
1982
|
), /*enableReverse*/
|
|
1983
1983
|
L[5] === !0 ? m ? (m.p(L, F), F[0] & /*enableReverse*/
|
|
1984
|
-
32 && z(m, 1)) : (m = Mt(L), m.c(), z(m, 1), m.m(
|
|
1984
|
+
32 && z(m, 1)) : (m = Mt(L), m.c(), z(m, 1), m.m(r, w)) : m && (Fe(), Q(m, 1, 1, () => {
|
|
1985
1985
|
m = null;
|
|
1986
1986
|
}), ze()), H && H.p && (!O || F[1] & /*$$scope*/
|
|
1987
1987
|
268435456) && mi(
|
|
@@ -2003,13 +2003,13 @@ function fn(i) {
|
|
|
2003
2003
|
null
|
|
2004
2004
|
);
|
|
2005
2005
|
let $ = y;
|
|
2006
|
-
y =
|
|
2006
|
+
y = j(L), y === $ ? ~y && Y[y].p(L, F) : (E && (Fe(), Q(Y[$], 1, 1, () => {
|
|
2007
2007
|
Y[$] = null;
|
|
2008
2008
|
}), ze()), ~y ? (E = Y[y], E ? E.p(L, F) : (E = Y[y] = X[y](L), E.c()), z(E, 1), E.m(t, null)) : E = null), (!O || F[0] & /*className*/
|
|
2009
2009
|
4 && C !== (C = ct(
|
|
2010
2010
|
/*className*/
|
|
2011
2011
|
L[2]
|
|
2012
|
-
) + " svelte-
|
|
2012
|
+
) + " svelte-1uvos7g")) && l(t, "class", C), (!O || F[0] & /*className, collapsed, searchValue*/
|
|
2013
2013
|
22) && ue(
|
|
2014
2014
|
t,
|
|
2015
2015
|
"can-collapse",
|
|
@@ -2025,12 +2025,12 @@ function fn(i) {
|
|
|
2025
2025
|
Q(b), Q(u.$$.fragment, L), Q(h.$$.fragment, L), Q(g), Q(m), Q(H, L), Q(E), O = !1;
|
|
2026
2026
|
},
|
|
2027
2027
|
d(L) {
|
|
2028
|
-
L && (U(e), U(t)), se(u), i[62](null), se(h), g && g.d(), m && m.d(), H && H.d(L), ~y && Y[y].d(), p = !1, ae(
|
|
2028
|
+
L && (U(e), U(t)), se(u), i[62](null), se(h), g && g.d(), m && m.d(), H && H.d(L), ~y && Y[y].d(), p = !1, ae(q);
|
|
2029
2029
|
}
|
|
2030
2030
|
};
|
|
2031
2031
|
}
|
|
2032
|
-
function
|
|
2033
|
-
let
|
|
2032
|
+
function fr(i, e, t) {
|
|
2033
|
+
let r, { $$slots: o = {}, $$scope: u } = e;
|
|
2034
2034
|
const a = {
|
|
2035
2035
|
continental_marine: 4,
|
|
2036
2036
|
country: 4,
|
|
@@ -2055,69 +2055,69 @@ function mn(i, e, t) {
|
|
|
2055
2055
|
"poi.restaurant": 18,
|
|
2056
2056
|
"poi.aerodrome": 13
|
|
2057
2057
|
};
|
|
2058
|
-
let { class:
|
|
2058
|
+
let { class: n = void 0 } = e, { apiKey: d } = e, { bbox: c = void 0 } = e, { clearButtonTitle: f = "clear" } = e, { clearOnBlur: h = !1 } = e, { collapsed: v = !1 } = e, { country: _ = void 0 } = e, { debounceSearch: w = 200 } = e, { enableReverse: W = !1 } = e, { errorMessage: y = "Something went wrong…" } = e, { filter: E = () => !0 } = e, { flyTo: C = !0 } = e, { fuzzyMatch: O = !0 } = e, { language: p = void 0 } = e, { limit: q = void 0 } = e, { mapController: b = void 0 } = e, { minLength: g = 2 } = e, { noResultsMessage: m = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = e, { placeholder: k = "Search" } = e, { proximity: H = [{ type: "server-geolocation" }] } = e, { reverseActive: X = W === "always" } = e, { reverseButtonTitle: Y = "toggle reverse geocoding" } = e, { searchValue: j = "" } = e, { showFullGeometry: L = !0 } = e, { showPlaceType: F = "ifNeeded" } = e, { showResultsWhileTyping: $ = !0 } = e, { selectFirst: re = !0 } = e, { flyToSelected: He = !1 } = e, { markerOnSelected: Ce = !0 } = e, { types: We = void 0 } = e, { excludeTypes: Oe = !1 } = e, { zoom: ve = a } = e, { maxZoom: Re = void 0 } = e, { apiUrl: je = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: Pe = {} } = e, { iconsBaseUrl: nt = "https://cdn.maptiler.com/maptiler-geocoding-control/v1.4.2-dev.2/icons/" } = e, { adjustUrlQuery: Ze = () => {
|
|
2059
2059
|
} } = e;
|
|
2060
2060
|
function Bt() {
|
|
2061
|
-
|
|
2061
|
+
ee.focus();
|
|
2062
2062
|
}
|
|
2063
2063
|
function Ft() {
|
|
2064
|
-
|
|
2064
|
+
ee.blur();
|
|
2065
2065
|
}
|
|
2066
|
-
function ot(s, I = !0,
|
|
2067
|
-
t(1,
|
|
2068
|
-
|
|
2066
|
+
function ot(s, I = !0, G = !1) {
|
|
2067
|
+
t(1, j = s), I ? (t(15, D = -1), at()) : (Ke(!G, G), setTimeout(() => {
|
|
2068
|
+
ee.focus(), ee.select();
|
|
2069
2069
|
}));
|
|
2070
2070
|
}
|
|
2071
2071
|
function zt() {
|
|
2072
2072
|
t(14, M = void 0), t(56, S = void 0), t(15, D = -1);
|
|
2073
2073
|
}
|
|
2074
2074
|
function Ht() {
|
|
2075
|
-
t(55,
|
|
2075
|
+
t(55, P = []), t(56, S = void 0);
|
|
2076
2076
|
}
|
|
2077
|
-
let
|
|
2078
|
-
const
|
|
2077
|
+
let Le = !1, M, P, S, st = "", ee, D = -1, te, De = [], fe, _e, Ue, Ge;
|
|
2078
|
+
const jt = /* @__PURE__ */ new Set(), le = yi();
|
|
2079
2079
|
_i(() => {
|
|
2080
2080
|
b && (b.setEventHandler(void 0), b.indicateReverse(!1), b.setSelectedMarker(-1), b.setMarkers(void 0, void 0));
|
|
2081
2081
|
});
|
|
2082
2082
|
function at(s) {
|
|
2083
|
-
if (
|
|
2084
|
-
t(56, S = M[D]), t(1,
|
|
2085
|
-
else if (
|
|
2086
|
-
const I = s || !
|
|
2087
|
-
Qe(
|
|
2088
|
-
t(55,
|
|
2089
|
-
}).catch((
|
|
2083
|
+
if (_e && (clearTimeout(_e), _e = void 0), D > -1 && M)
|
|
2084
|
+
t(56, S = M[D]), t(1, j = S.place_type[0] === "reverse" ? S.place_name : S.place_name.replace(/,.*/, "")), t(18, te = void 0), t(55, P = void 0), t(15, D = -1);
|
|
2085
|
+
else if (j) {
|
|
2086
|
+
const I = s || !qe(j);
|
|
2087
|
+
Qe(j, { exact: !0 }).then(() => {
|
|
2088
|
+
t(55, P = M), t(56, S = void 0), I && Pt();
|
|
2089
|
+
}).catch((G) => t(18, te = G));
|
|
2090
2090
|
}
|
|
2091
2091
|
}
|
|
2092
|
-
function
|
|
2092
|
+
function qe(s) {
|
|
2093
2093
|
try {
|
|
2094
|
-
return
|
|
2094
|
+
return sr(s, 6);
|
|
2095
2095
|
} catch {
|
|
2096
2096
|
return !1;
|
|
2097
2097
|
}
|
|
2098
2098
|
}
|
|
2099
|
-
async function Qe(s, { byId: I = !1, exact:
|
|
2100
|
-
t(18,
|
|
2099
|
+
async function Qe(s, { byId: I = !1, exact: G = !1 } = {}) {
|
|
2100
|
+
t(18, te = void 0), fe == null || fe.abort();
|
|
2101
2101
|
const x = new AbortController();
|
|
2102
|
-
t(19,
|
|
2102
|
+
t(19, fe = x);
|
|
2103
2103
|
try {
|
|
2104
|
-
const N =
|
|
2105
|
-
if (p !== void 0 &&
|
|
2104
|
+
const N = qe(s), Z = new URLSearchParams();
|
|
2105
|
+
if (p !== void 0 && Z.set("language", Array.isArray(p) ? p.join(",") : p ?? ""), We && Z.set("types", We.join(",")), Oe && Z.set("excludeTypes", String(Oe)), c && Z.set("bbox", c.map((Ie) => Ie.toFixed(6)).join(",")), _ && Z.set("country", Array.isArray(_) ? _.join(",") : _), !I && !N) {
|
|
2106
2106
|
const Ie = await xi(b, H, x);
|
|
2107
|
-
Ie &&
|
|
2107
|
+
Ie && Z.set("proximity", Ie), (G || !$) && Z.set("autocomplete", "false"), Z.set("fuzzyMatch", String(O));
|
|
2108
2108
|
}
|
|
2109
|
-
|
|
2110
|
-
const
|
|
2111
|
-
if (
|
|
2109
|
+
q !== void 0 && Z.set("limit", String(q)), Z.set("key", d), Ze(Z);
|
|
2110
|
+
const ie = je + "/" + encodeURIComponent(N ? N.decimalLongitude + "," + N.decimalLatitude : s) + ".json?" + Z.toString();
|
|
2111
|
+
if (ie === st) {
|
|
2112
2112
|
I ? (t(14, M = void 0), t(56, S = De[0])) : t(14, M = De);
|
|
2113
2113
|
return;
|
|
2114
2114
|
}
|
|
2115
|
-
st =
|
|
2116
|
-
const xe = await fetch(
|
|
2115
|
+
st = ie;
|
|
2116
|
+
const xe = await fetch(ie, { signal: x.signal, ...Pe });
|
|
2117
2117
|
if (!xe.ok)
|
|
2118
2118
|
throw new Error(await xe.text());
|
|
2119
2119
|
const Je = await xe.json();
|
|
2120
|
-
le("response", { url:
|
|
2120
|
+
le("response", { url: ie, featureCollection: Je }), I ? (t(14, M = void 0), t(56, S = Je.features[0]), De = [S]) : (t(14, M = Je.features.filter(E)), N && M.unshift({
|
|
2121
2121
|
type: "Feature",
|
|
2122
2122
|
properties: {},
|
|
2123
2123
|
id: "reverse_" + N.decimalLongitude + "_" + N.decimalLatitude,
|
|
@@ -2135,147 +2135,147 @@ function mn(i, e, t) {
|
|
|
2135
2135
|
type: "Point",
|
|
2136
2136
|
coordinates: [N.decimalLongitude, N.decimalLatitude]
|
|
2137
2137
|
}
|
|
2138
|
-
}), De = M, N &&
|
|
2138
|
+
}), De = M, N && ee.focus());
|
|
2139
2139
|
} catch (N) {
|
|
2140
2140
|
if (N && typeof N == "object" && "name" in N && N.name === "AbortError")
|
|
2141
2141
|
return;
|
|
2142
2142
|
throw N;
|
|
2143
2143
|
} finally {
|
|
2144
|
-
x ===
|
|
2144
|
+
x === fe && t(19, fe = void 0);
|
|
2145
2145
|
}
|
|
2146
2146
|
}
|
|
2147
|
-
function
|
|
2147
|
+
function Pt() {
|
|
2148
2148
|
var x;
|
|
2149
|
-
if (!(
|
|
2149
|
+
if (!(P != null && P.length) || !C)
|
|
2150
2150
|
return;
|
|
2151
|
-
const s = [180, 90, -180, -90], I = !
|
|
2152
|
-
let
|
|
2153
|
-
for (const N of
|
|
2154
|
-
const
|
|
2155
|
-
if (
|
|
2156
|
-
for (const
|
|
2157
|
-
s[
|
|
2151
|
+
const s = [180, 90, -180, -90], I = !P.some((N) => !N.matching_text);
|
|
2152
|
+
let G;
|
|
2153
|
+
for (const N of P) {
|
|
2154
|
+
const Z = Se(N);
|
|
2155
|
+
if (G = Re ?? (G === void 0 ? Z : Z === void 0 ? G : Math.max(G, Z)), I || !N.matching_text)
|
|
2156
|
+
for (const ie of [0, 1, 2, 3])
|
|
2157
|
+
s[ie] = Math[ie < 2 ? "min" : "max"](s[ie], ((x = N.bbox) == null ? void 0 : x[ie]) ?? N.center[ie % 2]);
|
|
2158
2158
|
}
|
|
2159
|
-
b &&
|
|
2159
|
+
b && P.length > 0 && (S && s[0] === s[2] && s[1] === s[3] ? b.flyTo(S.center, Se(S)) : b.fitBounds(bt(s), 50, G));
|
|
2160
2160
|
}
|
|
2161
|
-
function
|
|
2162
|
-
var
|
|
2161
|
+
function Se(s) {
|
|
2162
|
+
var G;
|
|
2163
2163
|
if (!s.bbox || s.bbox[0] !== s.bbox[2] && s.bbox[1] !== s.bbox[3])
|
|
2164
2164
|
return;
|
|
2165
|
-
if (typeof
|
|
2166
|
-
return s.id.startsWith("poi.") || s.id.startsWith("address.") ? Re :
|
|
2165
|
+
if (typeof ve == "number")
|
|
2166
|
+
return s.id.startsWith("poi.") || s.id.startsWith("address.") ? Re : ve;
|
|
2167
2167
|
const I = s.id.replace(/\..*/, "");
|
|
2168
|
-
return (Array.isArray((
|
|
2168
|
+
return (Array.isArray((G = s.properties) == null ? void 0 : G.categories) ? s.properties.categories.reduce(
|
|
2169
2169
|
(x, N) => {
|
|
2170
|
-
const
|
|
2171
|
-
return x === void 0 ?
|
|
2170
|
+
const Z = ve[I + "." + N];
|
|
2171
|
+
return x === void 0 ? Z : Z === void 0 ? x : Math.max(x, Z);
|
|
2172
2172
|
},
|
|
2173
2173
|
void 0
|
|
2174
|
-
) : void 0) ??
|
|
2174
|
+
) : void 0) ?? ve[I];
|
|
2175
2175
|
}
|
|
2176
|
-
function
|
|
2176
|
+
function Zt(s) {
|
|
2177
2177
|
t(0, X = W === "always"), t(14, M = void 0), t(56, S = void 0), t(15, D = -1), ot(s[1].toFixed(6) + ", " + Vi(s[0], [-180, 180], !0).toFixed(6), !1, !0);
|
|
2178
2178
|
}
|
|
2179
|
-
function
|
|
2179
|
+
function Gt(s) {
|
|
2180
2180
|
if (!M)
|
|
2181
2181
|
return;
|
|
2182
2182
|
let I = s.key === "ArrowDown" ? 1 : s.key === "ArrowUp" ? -1 : 0;
|
|
2183
|
-
I && (D === (
|
|
2183
|
+
I && (D === (re ? 0 : -1) && I === -1 && t(15, D = M.length), t(15, D += I), D >= M.length && t(15, D = -1), D < 0 && re && t(15, D = 0), s.preventDefault());
|
|
2184
2184
|
}
|
|
2185
2185
|
function Ke(s = !0, I = !1) {
|
|
2186
|
-
if (t(18,
|
|
2187
|
-
if (
|
|
2186
|
+
if (t(18, te = void 0), $ || I) {
|
|
2187
|
+
if (_e && clearTimeout(_e), j.length < g)
|
|
2188
2188
|
return;
|
|
2189
|
-
const
|
|
2190
|
-
|
|
2189
|
+
const G = j;
|
|
2190
|
+
_e = window.setTimeout(
|
|
2191
2191
|
() => {
|
|
2192
|
-
Qe(
|
|
2192
|
+
Qe(G).catch((x) => t(18, te = x));
|
|
2193
2193
|
},
|
|
2194
2194
|
s ? w : 0
|
|
2195
2195
|
);
|
|
2196
2196
|
} else
|
|
2197
|
-
t(14, M = void 0), t(18,
|
|
2197
|
+
t(14, M = void 0), t(18, te = void 0);
|
|
2198
2198
|
}
|
|
2199
2199
|
function Ve(s) {
|
|
2200
|
-
t(56, S = s), t(1,
|
|
2200
|
+
t(56, S = s), t(1, j = s.place_name), t(15, D = -1);
|
|
2201
2201
|
}
|
|
2202
|
-
const
|
|
2202
|
+
const qt = () => ee.focus();
|
|
2203
2203
|
function Qt(s) {
|
|
2204
2204
|
et[s ? "unshift" : "push"](() => {
|
|
2205
|
-
|
|
2205
|
+
ee = s, t(17, ee);
|
|
2206
2206
|
});
|
|
2207
2207
|
}
|
|
2208
2208
|
function Kt() {
|
|
2209
|
-
|
|
2209
|
+
j = this.value, t(1, j), t(13, Le), t(28, h);
|
|
2210
2210
|
}
|
|
2211
|
-
const Vt = () => t(13,
|
|
2212
|
-
t(1,
|
|
2213
|
-
}, Yt = () => t(0, X = !X), $t = () => t(18,
|
|
2214
|
-
|
|
2215
|
-
},
|
|
2211
|
+
const Vt = () => t(13, Le = !0), xt = () => t(13, Le = !1), Jt = () => Ke(), Xt = () => {
|
|
2212
|
+
t(1, j = ""), ee.focus();
|
|
2213
|
+
}, Yt = () => t(0, X = !X), $t = () => t(18, te = void 0), ei = (s) => t(15, D = s), ti = (s) => Ve(s), ii = () => {
|
|
2214
|
+
re || t(15, D = -1);
|
|
2215
|
+
}, ri = () => {
|
|
2216
2216
|
};
|
|
2217
2217
|
return i.$$set = (s) => {
|
|
2218
|
-
"class" in s && t(2,
|
|
2218
|
+
"class" in s && t(2, n = s.class), "apiKey" in s && t(26, d = s.apiKey), "bbox" in s && t(27, c = s.bbox), "clearButtonTitle" in s && t(3, f = s.clearButtonTitle), "clearOnBlur" in s && t(28, h = s.clearOnBlur), "collapsed" in s && t(4, v = s.collapsed), "country" in s && t(29, _ = s.country), "debounceSearch" in s && t(30, w = s.debounceSearch), "enableReverse" in s && t(5, W = s.enableReverse), "errorMessage" in s && t(6, y = s.errorMessage), "filter" in s && t(31, E = s.filter), "flyTo" in s && t(32, C = s.flyTo), "fuzzyMatch" in s && t(33, O = s.fuzzyMatch), "language" in s && t(34, p = s.language), "limit" in s && t(35, q = s.limit), "mapController" in s && t(36, b = s.mapController), "minLength" in s && t(37, g = s.minLength), "noResultsMessage" in s && t(7, m = s.noResultsMessage), "placeholder" in s && t(8, k = s.placeholder), "proximity" in s && t(38, H = s.proximity), "reverseActive" in s && t(0, X = s.reverseActive), "reverseButtonTitle" in s && t(9, Y = s.reverseButtonTitle), "searchValue" in s && t(1, j = s.searchValue), "showFullGeometry" in s && t(39, L = s.showFullGeometry), "showPlaceType" in s && t(10, F = s.showPlaceType), "showResultsWhileTyping" in s && t(40, $ = s.showResultsWhileTyping), "selectFirst" in s && t(11, re = s.selectFirst), "flyToSelected" in s && t(41, He = s.flyToSelected), "markerOnSelected" in s && t(42, Ce = s.markerOnSelected), "types" in s && t(43, We = s.types), "excludeTypes" in s && t(44, Oe = s.excludeTypes), "zoom" in s && t(45, ve = s.zoom), "maxZoom" in s && t(46, Re = s.maxZoom), "apiUrl" in s && t(47, je = s.apiUrl), "fetchParameters" in s && t(48, Pe = s.fetchParameters), "iconsBaseUrl" in s && t(12, nt = s.iconsBaseUrl), "adjustUrlQuery" in s && t(49, Ze = s.adjustUrlQuery), "$$scope" in s && t(59, u = s.$$scope);
|
|
2219
2219
|
}, i.$$.update = () => {
|
|
2220
2220
|
if (i.$$.dirty[0] & /*enableReverse*/
|
|
2221
2221
|
32 && t(0, X = W === "always"), i.$$.dirty[0] & /*focused, clearOnBlur*/
|
|
2222
2222
|
268443648 && setTimeout(() => {
|
|
2223
|
-
t(16, Ue =
|
|
2223
|
+
t(16, Ue = Le), h && !Le && t(1, j = "");
|
|
2224
2224
|
}), i.$$.dirty[0] & /*searchValue, listFeatures*/
|
|
2225
2225
|
16386 | i.$$.dirty[1] & /*minLength*/
|
|
2226
|
-
64 &&
|
|
2227
|
-
33554688 && L && S && !S.address && S.geometry.type === "Point" && S.place_type[0] !== "reverse" && Qe(S.id, { byId: !0 }).catch((s) => t(18,
|
|
2228
|
-
100663330 && (b && S && S.id !==
|
|
2229
|
-
18432 &&
|
|
2230
|
-
|
|
2226
|
+
64 && j.length < g && (t(56, S = void 0), t(14, M = void 0), t(18, te = void 0), t(55, P = M)), i.$$.dirty[1] & /*showFullGeometry, picked*/
|
|
2227
|
+
33554688 && L && S && !S.address && S.geometry.type === "Point" && S.place_type[0] !== "reverse" && Qe(S.id, { byId: !0 }).catch((s) => t(18, te = s)), i.$$.dirty[1] & /*mapController, picked, prevIdToFly, flyTo*/
|
|
2228
|
+
100663330 && (b && S && S.id !== Ge && C && (!S.bbox || S.bbox[0] === S.bbox[2] && S.bbox[1] === S.bbox[3] ? b.flyTo(S.center, Se(S)) : b.fitBounds(bt(S.bbox), 50, Se(S)), t(14, M = void 0), t(55, P = void 0), t(15, D = -1)), t(57, Ge = S == null ? void 0 : S.id)), i.$$.dirty[0] & /*selectFirst, listFeatures*/
|
|
2229
|
+
18432 && re && M != null && M.length && t(15, D = 0), i.$$.dirty[0] & /*searchValue*/
|
|
2230
|
+
2 && t(15, D = -1), i.$$.dirty[0] & /*listFeatures*/
|
|
2231
2231
|
16384 | i.$$.dirty[1] & /*markedFeatures*/
|
|
2232
|
-
16777216 &&
|
|
2232
|
+
16777216 && P !== M && t(55, P = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
|
|
2233
2233
|
81921 | i.$$.dirty[1] & /*mapController, markedFeatures*/
|
|
2234
2234
|
16777248 && b && b.setEventHandler((s) => {
|
|
2235
2235
|
switch (s.type) {
|
|
2236
2236
|
case "mapClick":
|
|
2237
|
-
X &&
|
|
2237
|
+
X && Zt(s.coordinates);
|
|
2238
2238
|
break;
|
|
2239
2239
|
case "markerClick":
|
|
2240
2240
|
{
|
|
2241
|
-
const I = M == null ? void 0 : M.find((
|
|
2241
|
+
const I = M == null ? void 0 : M.find((G) => G.id === s.id);
|
|
2242
2242
|
I && Ve(I);
|
|
2243
2243
|
}
|
|
2244
2244
|
break;
|
|
2245
2245
|
case "markerMouseEnter":
|
|
2246
|
-
|
|
2246
|
+
P && t(15, D = Ue ? (M == null ? void 0 : M.findIndex((I) => I.id === s.id)) ?? -1 : -1);
|
|
2247
2247
|
break;
|
|
2248
2248
|
case "markerMouseLeave":
|
|
2249
|
-
|
|
2249
|
+
P && t(15, D = -1);
|
|
2250
2250
|
break;
|
|
2251
2251
|
}
|
|
2252
2252
|
}), i.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
|
|
2253
|
-
49152 && t(58,
|
|
2254
|
-
134218786 && b &&
|
|
2255
|
-
2080 && (
|
|
2256
|
-
150997024 && b &&
|
|
2257
|
-
50331680 && b && b.setMarkers(
|
|
2253
|
+
49152 && t(58, r = M == null ? void 0 : M[D]), i.$$.dirty[1] & /*mapController, selected, flyTo, flyToSelected*/
|
|
2254
|
+
134218786 && b && r && C && He && b.flyTo(r.center, Se(r)), i.$$.dirty[1] & /*markerOnSelected, mapController*/
|
|
2255
|
+
2080 && (Ce || b == null || b.setMarkers(void 0, void 0)), i.$$.dirty[1] & /*mapController, markerOnSelected, markedFeatures, selected*/
|
|
2256
|
+
150997024 && b && Ce && !P && (b.setMarkers(r ? [r] : void 0, void 0), b.setSelectedMarker(r ? 0 : -1)), i.$$.dirty[1] & /*mapController, markedFeatures, picked*/
|
|
2257
|
+
50331680 && b && b.setMarkers(P, S), i.$$.dirty[0] & /*selectedItemIndex*/
|
|
2258
2258
|
32768 | i.$$.dirty[1] & /*markedFeatures, mapController*/
|
|
2259
|
-
16777248 &&
|
|
2259
|
+
16777248 && P && b && b.setSelectedMarker(D), i.$$.dirty[0] & /*searchValue*/
|
|
2260
2260
|
2 | i.$$.dirty[1] & /*mapController*/
|
|
2261
2261
|
32 && b) {
|
|
2262
|
-
const s =
|
|
2262
|
+
const s = qe(j);
|
|
2263
2263
|
b.setReverseMarker(s ? [s.decimalLongitude, s.decimalLatitude] : void 0);
|
|
2264
2264
|
}
|
|
2265
2265
|
i.$$.dirty[1] & /*selected*/
|
|
2266
|
-
134217728 && le("select",
|
|
2266
|
+
134217728 && le("select", r), i.$$.dirty[1] & /*picked*/
|
|
2267
2267
|
33554432 && le("pick", S), i.$$.dirty[0] & /*focusedDelayed, listFeatures*/
|
|
2268
2268
|
81920 && le("optionsVisibilityChange", Ue && !!M), i.$$.dirty[0] & /*listFeatures*/
|
|
2269
2269
|
16384 && le("featuresListed", M), i.$$.dirty[1] & /*markedFeatures*/
|
|
2270
|
-
16777216 && le("featuresMarked",
|
|
2270
|
+
16777216 && le("featuresMarked", P), i.$$.dirty[0] & /*reverseActive*/
|
|
2271
2271
|
1 && le("reverseToggle", X), i.$$.dirty[0] & /*searchValue*/
|
|
2272
|
-
2 && le("queryChange",
|
|
2272
|
+
2 && le("queryChange", j), i.$$.dirty[0] & /*reverseActive*/
|
|
2273
2273
|
1 | i.$$.dirty[1] & /*mapController*/
|
|
2274
2274
|
32 && b && b.indicateReverse(X);
|
|
2275
2275
|
}, [
|
|
2276
2276
|
X,
|
|
2277
|
-
|
|
2278
|
-
|
|
2277
|
+
j,
|
|
2278
|
+
n,
|
|
2279
2279
|
f,
|
|
2280
2280
|
v,
|
|
2281
2281
|
W,
|
|
@@ -2284,18 +2284,18 @@ function mn(i, e, t) {
|
|
|
2284
2284
|
k,
|
|
2285
2285
|
Y,
|
|
2286
2286
|
F,
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2287
|
+
re,
|
|
2288
|
+
nt,
|
|
2289
|
+
Le,
|
|
2290
2290
|
M,
|
|
2291
2291
|
D,
|
|
2292
2292
|
Ue,
|
|
2293
|
+
ee,
|
|
2293
2294
|
te,
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
qt,
|
|
2295
|
+
fe,
|
|
2296
|
+
jt,
|
|
2297
2297
|
at,
|
|
2298
|
-
|
|
2298
|
+
Gt,
|
|
2299
2299
|
Ke,
|
|
2300
2300
|
Ve,
|
|
2301
2301
|
a,
|
|
@@ -2308,33 +2308,33 @@ function mn(i, e, t) {
|
|
|
2308
2308
|
C,
|
|
2309
2309
|
O,
|
|
2310
2310
|
p,
|
|
2311
|
-
|
|
2311
|
+
q,
|
|
2312
2312
|
b,
|
|
2313
2313
|
g,
|
|
2314
2314
|
H,
|
|
2315
2315
|
L,
|
|
2316
2316
|
$,
|
|
2317
2317
|
He,
|
|
2318
|
+
Ce,
|
|
2318
2319
|
We,
|
|
2319
|
-
fe,
|
|
2320
2320
|
Oe,
|
|
2321
|
-
|
|
2321
|
+
ve,
|
|
2322
2322
|
Re,
|
|
2323
|
-
qe,
|
|
2324
2323
|
je,
|
|
2325
2324
|
Pe,
|
|
2325
|
+
Ze,
|
|
2326
2326
|
Bt,
|
|
2327
2327
|
Ft,
|
|
2328
2328
|
ot,
|
|
2329
2329
|
zt,
|
|
2330
2330
|
Ht,
|
|
2331
|
-
|
|
2331
|
+
P,
|
|
2332
2332
|
S,
|
|
2333
|
-
|
|
2334
|
-
|
|
2333
|
+
Ge,
|
|
2334
|
+
r,
|
|
2335
2335
|
u,
|
|
2336
2336
|
o,
|
|
2337
|
-
|
|
2337
|
+
qt,
|
|
2338
2338
|
Qt,
|
|
2339
2339
|
Kt,
|
|
2340
2340
|
Vt,
|
|
@@ -2346,17 +2346,17 @@ function mn(i, e, t) {
|
|
|
2346
2346
|
ei,
|
|
2347
2347
|
ti,
|
|
2348
2348
|
ii,
|
|
2349
|
-
|
|
2349
|
+
ri
|
|
2350
2350
|
];
|
|
2351
2351
|
}
|
|
2352
|
-
class
|
|
2352
|
+
class mr extends be {
|
|
2353
2353
|
constructor(e) {
|
|
2354
|
-
super(),
|
|
2354
|
+
super(), he(
|
|
2355
2355
|
this,
|
|
2356
2356
|
e,
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2357
|
+
fr,
|
|
2358
|
+
dr,
|
|
2359
|
+
ge,
|
|
2360
2360
|
{
|
|
2361
2361
|
ZOOM_DEFAULTS: 25,
|
|
2362
2362
|
class: 2,
|
|
@@ -2434,7 +2434,7 @@ const kt = [
|
|
|
2434
2434
|
"response",
|
|
2435
2435
|
"reverseToggle",
|
|
2436
2436
|
"select"
|
|
2437
|
-
],
|
|
2437
|
+
], gr = [
|
|
2438
2438
|
"apiKey",
|
|
2439
2439
|
"bbox",
|
|
2440
2440
|
"clearButtonTitle",
|
|
@@ -2466,39 +2466,39 @@ const kt = [
|
|
|
2466
2466
|
function Ct(i) {
|
|
2467
2467
|
return "on" + i[0].toUpperCase() + i.slice(1);
|
|
2468
2468
|
}
|
|
2469
|
-
const
|
|
2470
|
-
const
|
|
2469
|
+
const vr = si(function(e, t) {
|
|
2470
|
+
const r = lt(), o = lt(), u = { ...e };
|
|
2471
2471
|
for (const a of kt)
|
|
2472
2472
|
delete u[Ct(a)];
|
|
2473
2473
|
Ye(() => {
|
|
2474
|
-
if (!
|
|
2474
|
+
if (!r.current)
|
|
2475
2475
|
throw new Error();
|
|
2476
|
-
const a = new
|
|
2477
|
-
target:
|
|
2476
|
+
const a = new mr({
|
|
2477
|
+
target: r.current,
|
|
2478
2478
|
props: u
|
|
2479
2479
|
});
|
|
2480
2480
|
return o.current = a, () => a.$destroy();
|
|
2481
2481
|
}, []);
|
|
2482
|
-
for (const a of
|
|
2482
|
+
for (const a of gr)
|
|
2483
2483
|
Ye(() => {
|
|
2484
2484
|
o.current && e[a] !== void 0 && o.current.$set({ [a]: e[a] });
|
|
2485
2485
|
}, [e[a]]);
|
|
2486
2486
|
for (const a of kt) {
|
|
2487
|
-
const
|
|
2487
|
+
const n = e[Ct(a)];
|
|
2488
2488
|
Ye(
|
|
2489
2489
|
() => {
|
|
2490
2490
|
var d;
|
|
2491
|
-
return
|
|
2492
|
-
|
|
2491
|
+
return n && ((d = o.current) == null ? void 0 : d.$on(a, (c) => {
|
|
2492
|
+
n(c.detail);
|
|
2493
2493
|
}));
|
|
2494
2494
|
},
|
|
2495
|
-
[
|
|
2495
|
+
[n]
|
|
2496
2496
|
);
|
|
2497
2497
|
}
|
|
2498
2498
|
return ai(t, () => ({
|
|
2499
|
-
setQuery: (a,
|
|
2499
|
+
setQuery: (a, n = !0) => {
|
|
2500
2500
|
var d;
|
|
2501
|
-
return (d = o.current) == null ? void 0 : d.setQuery(a,
|
|
2501
|
+
return (d = o.current) == null ? void 0 : d.setQuery(a, n);
|
|
2502
2502
|
},
|
|
2503
2503
|
clearMap: () => {
|
|
2504
2504
|
var a;
|
|
@@ -2516,9 +2516,9 @@ const Ln = si(function(e, t) {
|
|
|
2516
2516
|
var a;
|
|
2517
2517
|
return (a = o.current) == null ? void 0 : a.blur();
|
|
2518
2518
|
}
|
|
2519
|
-
})), li("div", { ref:
|
|
2519
|
+
})), li("div", { ref: r });
|
|
2520
2520
|
});
|
|
2521
2521
|
export {
|
|
2522
|
-
|
|
2522
|
+
vr as GeocodingControl
|
|
2523
2523
|
};
|
|
2524
2524
|
//# sourceMappingURL=react.js.map
|