@maptiler/geocoding-control 2.0.0-rc.4 → 2.0.0-rc.5
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 +18 -1
- package/leaflet-controller.d.ts +2 -1
- package/leaflet-controller.js +222 -219
- package/leaflet-controller.js.map +1 -1
- package/leaflet-controller.umd.js +2 -2
- package/leaflet-controller.umd.js.map +1 -1
- package/leaflet.js +1012 -1021
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +3 -3
- package/leaflet.umd.js.map +1 -1
- package/maplibregl-controller.d.ts +2 -1
- package/maplibregl-controller.js +213 -210
- package/maplibregl-controller.js.map +1 -1
- package/maplibregl-controller.umd.js +3 -3
- package/maplibregl-controller.umd.js.map +1 -1
- package/maplibregl.d.ts +17 -0
- package/maplibregl.js +1452 -1459
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +3 -3
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.d.ts +17 -0
- package/maptilersdk.js +1454 -1461
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +3 -3
- package/maptilersdk.umd.js.map +1 -1
- package/openlayers-controller.d.ts +2 -1
- package/openlayers-controller.js +298 -295
- package/openlayers-controller.js.map +1 -1
- package/openlayers-controller.umd.js +3 -3
- package/openlayers-controller.umd.js.map +1 -1
- package/openlayers.js +1263 -1272
- package/openlayers.js.map +1 -1
- package/openlayers.umd.js +3 -3
- package/openlayers.umd.js.map +1 -1
- package/package.json +1 -1
- package/react.js +680 -695
- package/react.js.map +1 -1
- package/react.umd.js +1 -1
- package/react.umd.js.map +1 -1
- package/svelte/GeocodingControl.svelte +22 -47
- package/svelte/GeocodingControl.svelte.d.ts +0 -1
- package/svelte/MapLibreBasedGeocodingControl.d.ts +18 -1
- package/svelte/MapLibreBasedGeocodingControl.js +4 -0
- package/svelte/leaflet-controller.d.ts +2 -1
- package/svelte/leaflet-controller.js +6 -2
- package/svelte/leaflet.js +4 -0
- package/svelte/maplibregl-controller.d.ts +2 -1
- package/svelte/maplibregl-controller.js +6 -2
- package/svelte/maplibregl.d.ts +17 -0
- package/svelte/maptilersdk.d.ts +17 -0
- package/svelte/openlayers-controller.d.ts +2 -1
- package/svelte/openlayers-controller.js +6 -2
- package/svelte/openlayers.js +5 -2
- package/svelte/types.d.ts +1 -1
- package/types.d.ts +1 -1
- package/vanilla.js +610 -625
- package/vanilla.js.map +1 -1
- package/vanilla.umd.js +1 -1
- package/vanilla.umd.js.map +1 -1
package/react.js
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { forwardRef as
|
|
1
|
+
var ri = Object.defineProperty;
|
|
2
|
+
var oi = (i, e, t) => e in i ? ri(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
|
+
var Xe = (i, e, t) => oi(i, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { forwardRef as si, useRef as lt, useEffect as Ye, useImperativeHandle as ai, createElement as li } from "react";
|
|
5
5
|
function I() {
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function ci(i, e) {
|
|
8
8
|
for (const t in e) i[t] = e[t];
|
|
9
9
|
return (
|
|
10
10
|
/** @type {T & S} */
|
|
11
11
|
i
|
|
12
12
|
);
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function Wt(i) {
|
|
15
15
|
return i();
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function ct() {
|
|
18
18
|
return /* @__PURE__ */ Object.create(null);
|
|
19
19
|
}
|
|
20
20
|
function ae(i) {
|
|
21
|
-
i.forEach(
|
|
21
|
+
i.forEach(Wt);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Rt(i) {
|
|
24
24
|
return typeof i == "function";
|
|
25
25
|
}
|
|
26
26
|
function be(i, e) {
|
|
27
27
|
return i != i ? e == e : i !== e || i && typeof i == "object" || typeof i == "function";
|
|
28
28
|
}
|
|
29
|
-
let
|
|
29
|
+
let Ue;
|
|
30
30
|
function K(i, e) {
|
|
31
|
-
return i === e ? !0 : (
|
|
31
|
+
return i === e ? !0 : (Ue || (Ue = document.createElement("a")), Ue.href = e, i === Ue.href);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function ui(i) {
|
|
34
34
|
return Object.keys(i).length === 0;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function di(i, e, t, n) {
|
|
37
37
|
if (i) {
|
|
38
|
-
const o =
|
|
38
|
+
const o = zt(i, e, t, n);
|
|
39
39
|
return i[0](o);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
return i[1] && n ?
|
|
42
|
+
function zt(i, e, t, n) {
|
|
43
|
+
return i[1] && n ? ci(t.ctx.slice(), i[1](n(e))) : t.ctx;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function fi(i, e, t, n) {
|
|
46
46
|
if (i[2] && n) {
|
|
47
47
|
const o = i[2](n(t));
|
|
48
48
|
if (e.dirty === void 0)
|
|
49
49
|
return o;
|
|
50
50
|
if (typeof o == "object") {
|
|
51
|
-
const
|
|
51
|
+
const c = [], a = Math.max(e.dirty.length, o.length);
|
|
52
52
|
for (let r = 0; r < a; r += 1)
|
|
53
|
-
|
|
54
|
-
return
|
|
53
|
+
c[r] = e.dirty[r] | o[r];
|
|
54
|
+
return c;
|
|
55
55
|
}
|
|
56
56
|
return e.dirty | o;
|
|
57
57
|
}
|
|
58
58
|
return e.dirty;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function mi(i, e, t, n, o, c) {
|
|
61
61
|
if (o) {
|
|
62
|
-
const a =
|
|
62
|
+
const a = zt(e, t, n, c);
|
|
63
63
|
i.p(a, o);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function gi(i) {
|
|
67
67
|
if (i.ctx.length > 32) {
|
|
68
68
|
const e = [], t = i.ctx.length / 32;
|
|
69
69
|
for (let n = 0; n < t; n++)
|
|
@@ -72,16 +72,16 @@ function Li(i) {
|
|
|
72
72
|
}
|
|
73
73
|
return -1;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function ut(i) {
|
|
76
76
|
return i ?? "";
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function k(i, e) {
|
|
79
79
|
i.appendChild(e);
|
|
80
80
|
}
|
|
81
81
|
function A(i, e, t) {
|
|
82
82
|
i.insertBefore(e, t || null);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function D(i) {
|
|
85
85
|
i.parentNode && i.parentNode.removeChild(i);
|
|
86
86
|
}
|
|
87
87
|
function z(i) {
|
|
@@ -90,19 +90,19 @@ function z(i) {
|
|
|
90
90
|
function re(i) {
|
|
91
91
|
return document.createElementNS("http://www.w3.org/2000/svg", i);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function ue(i) {
|
|
94
94
|
return document.createTextNode(i);
|
|
95
95
|
}
|
|
96
96
|
function J() {
|
|
97
|
-
return
|
|
97
|
+
return ue(" ");
|
|
98
98
|
}
|
|
99
|
-
function
|
|
100
|
-
return
|
|
99
|
+
function bi() {
|
|
100
|
+
return ue("");
|
|
101
101
|
}
|
|
102
102
|
function V(i, e, t, n) {
|
|
103
103
|
return i.addEventListener(e, t, n), () => i.removeEventListener(e, t, n);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function hi(i) {
|
|
106
106
|
return function(e) {
|
|
107
107
|
return e.preventDefault(), i.call(this, e);
|
|
108
108
|
};
|
|
@@ -110,187 +110,187 @@ function yi(i) {
|
|
|
110
110
|
function l(i, e, t) {
|
|
111
111
|
t == null ? i.removeAttribute(e) : i.getAttribute(e) !== t && i.setAttribute(e, t);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function vi(i) {
|
|
114
114
|
return Array.from(i.childNodes);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function ke(i, e) {
|
|
117
117
|
e = "" + e, i.data !== e && (i.data = /** @type {string} */
|
|
118
118
|
e);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function dt(i, e) {
|
|
121
121
|
i.value = e ?? "";
|
|
122
122
|
}
|
|
123
123
|
function ce(i, e, t) {
|
|
124
124
|
i.classList.toggle(e, !!t);
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Li(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
|
|
127
127
|
return new CustomEvent(i, { detail: e, bubbles: t, cancelable: n });
|
|
128
128
|
}
|
|
129
|
-
let
|
|
130
|
-
function
|
|
131
|
-
|
|
129
|
+
let Te;
|
|
130
|
+
function Me(i) {
|
|
131
|
+
Te = i;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
if (!
|
|
135
|
-
return
|
|
133
|
+
function Ot() {
|
|
134
|
+
if (!Te) throw new Error("Function called outside component initialization");
|
|
135
|
+
return Te;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
138
|
-
|
|
137
|
+
function _i(i) {
|
|
138
|
+
Ot().$$.on_destroy.push(i);
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
const i =
|
|
140
|
+
function yi() {
|
|
141
|
+
const i = Ot();
|
|
142
142
|
return (e, t, { cancelable: n = !1 } = {}) => {
|
|
143
143
|
const o = i.$$.callbacks[e];
|
|
144
144
|
if (o) {
|
|
145
|
-
const
|
|
145
|
+
const c = Li(
|
|
146
146
|
/** @type {string} */
|
|
147
147
|
e,
|
|
148
148
|
t,
|
|
149
149
|
{ cancelable: n }
|
|
150
150
|
);
|
|
151
151
|
return o.slice().forEach((a) => {
|
|
152
|
-
a.call(i,
|
|
153
|
-
}), !
|
|
152
|
+
a.call(i, c);
|
|
153
|
+
}), !c.defaultPrevented;
|
|
154
154
|
}
|
|
155
155
|
return !0;
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function ft(i, e) {
|
|
159
159
|
const t = i.$$.callbacks[e.type];
|
|
160
160
|
t && t.slice().forEach((n) => n.call(this, e));
|
|
161
161
|
}
|
|
162
|
-
const
|
|
163
|
-
let
|
|
164
|
-
const
|
|
165
|
-
let
|
|
166
|
-
function
|
|
167
|
-
|
|
162
|
+
const we = [], et = [];
|
|
163
|
+
let Ee = [];
|
|
164
|
+
const mt = [], wi = /* @__PURE__ */ Promise.resolve();
|
|
165
|
+
let tt = !1;
|
|
166
|
+
function Ei() {
|
|
167
|
+
tt || (tt = !0, wi.then(Dt));
|
|
168
168
|
}
|
|
169
|
-
function
|
|
170
|
-
|
|
169
|
+
function it(i) {
|
|
170
|
+
Ee.push(i);
|
|
171
171
|
}
|
|
172
|
-
const
|
|
173
|
-
let
|
|
174
|
-
function
|
|
175
|
-
if (
|
|
172
|
+
const $e = /* @__PURE__ */ new Set();
|
|
173
|
+
let ye = 0;
|
|
174
|
+
function Dt() {
|
|
175
|
+
if (ye !== 0)
|
|
176
176
|
return;
|
|
177
|
-
const i =
|
|
177
|
+
const i = Te;
|
|
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 =
|
|
190
|
-
|
|
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
|
+
$e.has(t) || ($e.add(t), t());
|
|
191
191
|
}
|
|
192
|
-
|
|
193
|
-
} while (
|
|
194
|
-
for (;
|
|
195
|
-
|
|
196
|
-
|
|
192
|
+
Ee.length = 0;
|
|
193
|
+
} while (we.length);
|
|
194
|
+
for (; mt.length; )
|
|
195
|
+
mt.pop()();
|
|
196
|
+
tt = !1, $e.clear(), Me(i);
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function Si(i) {
|
|
199
199
|
if (i.fragment !== null) {
|
|
200
200
|
i.update(), ae(i.before_update);
|
|
201
201
|
const e = i.dirty;
|
|
202
|
-
i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(
|
|
202
|
+
i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(it);
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function pi(i) {
|
|
206
206
|
const e = [], t = [];
|
|
207
|
-
|
|
207
|
+
Ee.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), Ee = e;
|
|
208
208
|
}
|
|
209
|
-
const
|
|
210
|
-
let
|
|
211
|
-
function
|
|
212
|
-
|
|
209
|
+
const Ie = /* @__PURE__ */ new Set();
|
|
210
|
+
let ge;
|
|
211
|
+
function Ae() {
|
|
212
|
+
ge = {
|
|
213
213
|
r: 0,
|
|
214
214
|
c: [],
|
|
215
|
-
p:
|
|
215
|
+
p: ge
|
|
216
216
|
// parent group
|
|
217
217
|
};
|
|
218
218
|
}
|
|
219
|
-
function
|
|
220
|
-
|
|
219
|
+
function Be() {
|
|
220
|
+
ge.r || ae(ge.c), ge = ge.p;
|
|
221
221
|
}
|
|
222
|
-
function
|
|
223
|
-
i && i.i && (
|
|
222
|
+
function F(i, e) {
|
|
223
|
+
i && i.i && (Ie.delete(i), i.i(e));
|
|
224
224
|
}
|
|
225
225
|
function Q(i, e, t, n) {
|
|
226
226
|
if (i && i.o) {
|
|
227
|
-
if (
|
|
228
|
-
|
|
229
|
-
|
|
227
|
+
if (Ie.has(i)) return;
|
|
228
|
+
Ie.add(i), ge.c.push(() => {
|
|
229
|
+
Ie.delete(i), n && (t && i.d(1), n());
|
|
230
230
|
}), i.o(e);
|
|
231
231
|
} else n && n();
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function gt(i) {
|
|
234
234
|
return (i == null ? void 0 : i.length) !== void 0 ? i : Array.from(i);
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function Ni(i, e) {
|
|
237
237
|
Q(i, 1, 1, () => {
|
|
238
238
|
e.delete(i.key);
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
|
-
function
|
|
242
|
-
let v = i.length, _ =
|
|
241
|
+
function Mi(i, e, t, n, o, c, a, r, d, u, f, b) {
|
|
242
|
+
let v = i.length, _ = c.length, w = v;
|
|
243
243
|
const W = {};
|
|
244
244
|
for (; w--; ) W[i[w].key] = w;
|
|
245
245
|
const y = [], E = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), R = [];
|
|
246
246
|
for (w = _; w--; ) {
|
|
247
|
-
const g =
|
|
248
|
-
let
|
|
249
|
-
|
|
247
|
+
const g = b(o, c, w), m = t(g);
|
|
248
|
+
let T = a.get(m);
|
|
249
|
+
T ? R.push(() => T.p(g, e)) : (T = u(m, g), T.c()), E.set(m, y[w] = T), m in W && C.set(m, Math.abs(w - W[m]));
|
|
250
250
|
}
|
|
251
|
-
const p = /* @__PURE__ */ new Set(),
|
|
252
|
-
function
|
|
253
|
-
|
|
251
|
+
const p = /* @__PURE__ */ new Set(), q = /* @__PURE__ */ new Set();
|
|
252
|
+
function h(g) {
|
|
253
|
+
F(g, 1), g.m(r, f), a.set(g.key, g), f = g.first, _--;
|
|
254
254
|
}
|
|
255
255
|
for (; v && _; ) {
|
|
256
|
-
const g = y[_ - 1], m = i[v - 1],
|
|
257
|
-
g === m ? (f = g.first, v--, _--) : E.has(
|
|
256
|
+
const g = y[_ - 1], m = i[v - 1], T = g.key, H = m.key;
|
|
257
|
+
g === m ? (f = g.first, v--, _--) : E.has(H) ? !a.has(T) || p.has(T) ? h(g) : q.has(H) ? v-- : C.get(T) > C.get(H) ? (q.add(T), h(g)) : (p.add(H), v--) : (d(m, a), v--);
|
|
258
258
|
}
|
|
259
259
|
for (; v--; ) {
|
|
260
260
|
const g = i[v];
|
|
261
261
|
E.has(g.key) || d(g, a);
|
|
262
262
|
}
|
|
263
|
-
for (; _; )
|
|
263
|
+
for (; _; ) h(y[_ - 1]);
|
|
264
264
|
return ae(R), y;
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function de(i) {
|
|
267
267
|
i && i.c();
|
|
268
268
|
}
|
|
269
269
|
function oe(i, e, t) {
|
|
270
270
|
const { fragment: n, after_update: o } = i.$$;
|
|
271
|
-
n && n.m(e, t),
|
|
272
|
-
const
|
|
273
|
-
i.$$.on_destroy ? i.$$.on_destroy.push(...
|
|
274
|
-
}), o.forEach(
|
|
271
|
+
n && n.m(e, t), it(() => {
|
|
272
|
+
const c = i.$$.on_mount.map(Wt).filter(Rt);
|
|
273
|
+
i.$$.on_destroy ? i.$$.on_destroy.push(...c) : ae(c), i.$$.on_mount = [];
|
|
274
|
+
}), o.forEach(it);
|
|
275
275
|
}
|
|
276
276
|
function se(i, e) {
|
|
277
277
|
const t = i.$$;
|
|
278
|
-
t.fragment !== null && (
|
|
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
|
-
function
|
|
281
|
-
i.$$.dirty[0] === -1 && (
|
|
280
|
+
function ki(i, e) {
|
|
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
|
-
|
|
286
|
-
const
|
|
283
|
+
function he(i, e, t, n, o, c, a = null, r = [-1]) {
|
|
284
|
+
const d = Te;
|
|
285
|
+
Me(i);
|
|
286
|
+
const u = i.$$ = {
|
|
287
287
|
fragment: null,
|
|
288
288
|
ctx: [],
|
|
289
289
|
// state
|
|
290
|
-
props:
|
|
290
|
+
props: c,
|
|
291
291
|
update: I,
|
|
292
292
|
not_equal: o,
|
|
293
|
-
bound:
|
|
293
|
+
bound: ct(),
|
|
294
294
|
// lifecycle
|
|
295
295
|
on_mount: [],
|
|
296
296
|
on_destroy: [],
|
|
@@ -299,27 +299,27 @@ function ve(i, e, t, n, o, u, a = null, r = [-1]) {
|
|
|
299
299
|
after_update: [],
|
|
300
300
|
context: new Map(e.context || (d ? d.$$.context : [])),
|
|
301
301
|
// everything else
|
|
302
|
-
callbacks:
|
|
302
|
+
callbacks: ct(),
|
|
303
303
|
dirty: r,
|
|
304
304
|
skip_bound: !1,
|
|
305
305
|
root: e.target || d.$$.root
|
|
306
306
|
};
|
|
307
|
-
a && a(
|
|
307
|
+
a && a(u.root);
|
|
308
308
|
let f = !1;
|
|
309
|
-
if (
|
|
309
|
+
if (u.ctx = t ? t(i, e.props || {}, (b, v, ..._) => {
|
|
310
310
|
const w = _.length ? _[0] : v;
|
|
311
|
-
return
|
|
312
|
-
}) : [],
|
|
311
|
+
return u.ctx && o(u.ctx[b], u.ctx[b] = w) && (!u.skip_bound && u.bound[b] && u.bound[b](w), f && ki(i, b)), v;
|
|
312
|
+
}) : [], u.update(), f = !0, ae(u.before_update), u.fragment = n ? n(u.ctx) : !1, e.target) {
|
|
313
313
|
if (e.hydrate) {
|
|
314
|
-
const
|
|
315
|
-
|
|
314
|
+
const b = vi(e.target);
|
|
315
|
+
u.fragment && u.fragment.l(b), b.forEach(D);
|
|
316
316
|
} else
|
|
317
|
-
|
|
318
|
-
e.intro &&
|
|
317
|
+
u.fragment && u.fragment.c();
|
|
318
|
+
e.intro && F(i.$$.fragment), oe(i, e.target, e.anchor), Dt();
|
|
319
319
|
}
|
|
320
|
-
|
|
320
|
+
Me(d);
|
|
321
321
|
}
|
|
322
|
-
class
|
|
322
|
+
class ve {
|
|
323
323
|
constructor() {
|
|
324
324
|
/**
|
|
325
325
|
* ### PRIVATE API
|
|
@@ -328,7 +328,7 @@ class Le {
|
|
|
328
328
|
*
|
|
329
329
|
* @type {any}
|
|
330
330
|
*/
|
|
331
|
-
|
|
331
|
+
Xe(this, "$$");
|
|
332
332
|
/**
|
|
333
333
|
* ### PRIVATE API
|
|
334
334
|
*
|
|
@@ -336,7 +336,7 @@ class Le {
|
|
|
336
336
|
*
|
|
337
337
|
* @type {any}
|
|
338
338
|
*/
|
|
339
|
-
|
|
339
|
+
Xe(this, "$$set");
|
|
340
340
|
}
|
|
341
341
|
/** @returns {void} */
|
|
342
342
|
$destroy() {
|
|
@@ -349,7 +349,7 @@ class Le {
|
|
|
349
349
|
* @returns {() => void}
|
|
350
350
|
*/
|
|
351
351
|
$on(e, t) {
|
|
352
|
-
if (!
|
|
352
|
+
if (!Rt(t))
|
|
353
353
|
return I;
|
|
354
354
|
const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
355
355
|
return n.push(t), () => {
|
|
@@ -362,56 +362,56 @@ class Le {
|
|
|
362
362
|
* @returns {void}
|
|
363
363
|
*/
|
|
364
364
|
$set(e) {
|
|
365
|
-
this.$$set && !
|
|
365
|
+
this.$$set && !ui(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
const
|
|
369
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
370
|
-
function
|
|
368
|
+
const Ti = "4";
|
|
369
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ti);
|
|
370
|
+
function Ci(i) {
|
|
371
371
|
let e, t;
|
|
372
372
|
return {
|
|
373
373
|
c() {
|
|
374
374
|
e = re("svg"), t = re("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
376
|
m(n, o) {
|
|
377
|
-
A(n, e, o),
|
|
377
|
+
A(n, e, o), k(e, t);
|
|
378
378
|
},
|
|
379
379
|
p: I,
|
|
380
380
|
i: I,
|
|
381
381
|
o: I,
|
|
382
382
|
d(n) {
|
|
383
|
-
n &&
|
|
383
|
+
n && D(e);
|
|
384
384
|
}
|
|
385
385
|
};
|
|
386
386
|
}
|
|
387
|
-
class
|
|
387
|
+
class Ut extends ve {
|
|
388
388
|
constructor(e) {
|
|
389
|
-
super(),
|
|
389
|
+
super(), he(this, e, null, Ci, be, {});
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function Wi(i) {
|
|
393
393
|
let e, t;
|
|
394
394
|
return {
|
|
395
395
|
c() {
|
|
396
396
|
e = re("svg"), t = re("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
398
|
m(n, o) {
|
|
399
|
-
A(n, e, o),
|
|
399
|
+
A(n, e, o), k(e, t);
|
|
400
400
|
},
|
|
401
401
|
p: I,
|
|
402
402
|
i: I,
|
|
403
403
|
o: I,
|
|
404
404
|
d(n) {
|
|
405
|
-
n &&
|
|
405
|
+
n && D(e);
|
|
406
406
|
}
|
|
407
407
|
};
|
|
408
408
|
}
|
|
409
|
-
class
|
|
409
|
+
class It extends ve {
|
|
410
410
|
constructor(e) {
|
|
411
|
-
super(),
|
|
411
|
+
super(), he(this, e, null, Wi, be, {});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function Ri(i) {
|
|
415
415
|
let e, t;
|
|
416
416
|
return {
|
|
417
417
|
c() {
|
|
@@ -438,11 +438,11 @@ function Ui(i) {
|
|
|
438
438
|
);
|
|
439
439
|
},
|
|
440
440
|
d(n) {
|
|
441
|
-
n &&
|
|
441
|
+
n && D(e);
|
|
442
442
|
}
|
|
443
443
|
};
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function zi(i) {
|
|
446
446
|
let e, t;
|
|
447
447
|
return {
|
|
448
448
|
c() {
|
|
@@ -469,11 +469,11 @@ function Ii(i) {
|
|
|
469
469
|
);
|
|
470
470
|
},
|
|
471
471
|
d(n) {
|
|
472
|
-
n &&
|
|
472
|
+
n && D(e);
|
|
473
473
|
}
|
|
474
474
|
};
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function Oi(i) {
|
|
477
477
|
let e, t;
|
|
478
478
|
return {
|
|
479
479
|
c() {
|
|
@@ -500,11 +500,11 @@ function Ai(i) {
|
|
|
500
500
|
);
|
|
501
501
|
},
|
|
502
502
|
d(n) {
|
|
503
|
-
n &&
|
|
503
|
+
n && D(e);
|
|
504
504
|
}
|
|
505
505
|
};
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function Di(i) {
|
|
508
508
|
let e, t;
|
|
509
509
|
return {
|
|
510
510
|
c() {
|
|
@@ -531,11 +531,11 @@ function Bi(i) {
|
|
|
531
531
|
);
|
|
532
532
|
},
|
|
533
533
|
d(n) {
|
|
534
|
-
n &&
|
|
534
|
+
n && D(e);
|
|
535
535
|
}
|
|
536
536
|
};
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function Ui(i) {
|
|
539
539
|
let e, t;
|
|
540
540
|
return {
|
|
541
541
|
c() {
|
|
@@ -562,11 +562,11 @@ function Fi(i) {
|
|
|
562
562
|
);
|
|
563
563
|
},
|
|
564
564
|
d(n) {
|
|
565
|
-
n &&
|
|
565
|
+
n && D(e);
|
|
566
566
|
}
|
|
567
567
|
};
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function Ii(i) {
|
|
570
570
|
let e, t;
|
|
571
571
|
return {
|
|
572
572
|
c() {
|
|
@@ -593,11 +593,11 @@ function Hi(i) {
|
|
|
593
593
|
);
|
|
594
594
|
},
|
|
595
595
|
d(n) {
|
|
596
|
-
n &&
|
|
596
|
+
n && D(e);
|
|
597
597
|
}
|
|
598
598
|
};
|
|
599
599
|
}
|
|
600
|
-
function
|
|
600
|
+
function Ai(i) {
|
|
601
601
|
let e, t;
|
|
602
602
|
return {
|
|
603
603
|
c() {
|
|
@@ -624,11 +624,11 @@ function ji(i) {
|
|
|
624
624
|
);
|
|
625
625
|
},
|
|
626
626
|
d(n) {
|
|
627
|
-
n &&
|
|
627
|
+
n && D(e);
|
|
628
628
|
}
|
|
629
629
|
};
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function Bi(i) {
|
|
632
632
|
let e, t, n, o;
|
|
633
633
|
return {
|
|
634
634
|
c() {
|
|
@@ -640,57 +640,57 @@ function Pi(i) {
|
|
|
640
640
|
i[4]
|
|
641
641
|
), l(e, "class", "svelte-ltkwvy");
|
|
642
642
|
},
|
|
643
|
-
m(
|
|
644
|
-
A(
|
|
643
|
+
m(c, a) {
|
|
644
|
+
A(c, e, a), n || (o = V(
|
|
645
645
|
e,
|
|
646
646
|
"error",
|
|
647
647
|
/*error_handler*/
|
|
648
648
|
i[14]
|
|
649
649
|
), n = !0);
|
|
650
650
|
},
|
|
651
|
-
p(
|
|
651
|
+
p(c, a) {
|
|
652
652
|
a & /*imageUrl*/
|
|
653
653
|
32 && !K(e.src, t = /*imageUrl*/
|
|
654
|
-
|
|
654
|
+
c[5]) && l(e, "src", t), a & /*category*/
|
|
655
655
|
16 && l(
|
|
656
656
|
e,
|
|
657
657
|
"alt",
|
|
658
658
|
/*category*/
|
|
659
|
-
|
|
659
|
+
c[4]
|
|
660
660
|
);
|
|
661
661
|
},
|
|
662
|
-
d(
|
|
663
|
-
|
|
662
|
+
d(c) {
|
|
663
|
+
c && D(e), n = !1, o();
|
|
664
664
|
}
|
|
665
665
|
};
|
|
666
666
|
}
|
|
667
|
-
function
|
|
667
|
+
function bt(i) {
|
|
668
668
|
let e, t;
|
|
669
669
|
return {
|
|
670
670
|
c() {
|
|
671
|
-
e = z("span"), t =
|
|
671
|
+
e = z("span"), t = ue(
|
|
672
672
|
/*placeType*/
|
|
673
673
|
i[6]
|
|
674
674
|
), l(e, "class", "secondary svelte-ltkwvy");
|
|
675
675
|
},
|
|
676
676
|
m(n, o) {
|
|
677
|
-
A(n, e, o),
|
|
677
|
+
A(n, e, o), k(e, t);
|
|
678
678
|
},
|
|
679
679
|
p(n, o) {
|
|
680
680
|
o & /*placeType*/
|
|
681
|
-
64 &&
|
|
681
|
+
64 && ke(
|
|
682
682
|
t,
|
|
683
683
|
/*placeType*/
|
|
684
684
|
n[6]
|
|
685
685
|
);
|
|
686
686
|
},
|
|
687
687
|
d(n) {
|
|
688
|
-
n &&
|
|
688
|
+
n && D(e);
|
|
689
689
|
}
|
|
690
690
|
};
|
|
691
691
|
}
|
|
692
|
-
function
|
|
693
|
-
let e, t, n, o,
|
|
692
|
+
function Fi(i) {
|
|
693
|
+
let e, t, n, o, c, a, r, d, u, f = (
|
|
694
694
|
/*isReverse*/
|
|
695
695
|
(i[7] ? (
|
|
696
696
|
/*feature*/
|
|
@@ -699,7 +699,7 @@ function Zi(i) {
|
|
|
699
699
|
/*feature*/
|
|
700
700
|
i[0].place_name.replace(/,.*/, "")
|
|
701
701
|
)) + ""
|
|
702
|
-
),
|
|
702
|
+
), b, v, _ = (
|
|
703
703
|
/*showPlaceType*/
|
|
704
704
|
i[2] === "always" || /*showPlaceType*/
|
|
705
705
|
i[2] !== "never" && !/*feature*/
|
|
@@ -717,28 +717,28 @@ function Zi(i) {
|
|
|
717
717
|
i[0].place_name.replace(/[^,]*,?\s*/, "")
|
|
718
718
|
)) + ""
|
|
719
719
|
), E, C, R;
|
|
720
|
-
function p(m,
|
|
721
|
-
return
|
|
722
|
-
1 && (t = null),
|
|
723
|
-
1 && (n = null),
|
|
724
|
-
1 && (o = null),
|
|
725
|
-
1 && (
|
|
726
|
-
m[5] ?
|
|
720
|
+
function p(m, T) {
|
|
721
|
+
return T & /*feature*/
|
|
722
|
+
1 && (t = null), T & /*feature*/
|
|
723
|
+
1 && (n = null), T & /*feature*/
|
|
724
|
+
1 && (o = null), T & /*feature*/
|
|
725
|
+
1 && (c = null), /*imageUrl*/
|
|
726
|
+
m[5] ? Bi : (
|
|
727
727
|
/*feature*/
|
|
728
|
-
m[0].address ?
|
|
729
|
-
m[0].id.startsWith("road.")), t ?
|
|
730
|
-
m[0].id.startsWith("address.")), n ?
|
|
731
|
-
m[0].id.startsWith("postal_code.")), o ?
|
|
732
|
-
m[0].id.startsWith("poi.")),
|
|
728
|
+
m[0].address ? Ai : (t == null && (t = !!/*feature*/
|
|
729
|
+
m[0].id.startsWith("road.")), t ? Ii : (n == null && (n = !!/*feature*/
|
|
730
|
+
m[0].id.startsWith("address.")), n ? Ui : (o == null && (o = !!/*feature*/
|
|
731
|
+
m[0].id.startsWith("postal_code.")), o ? Di : (c == null && (c = !!/*feature*/
|
|
732
|
+
m[0].id.startsWith("poi.")), c ? Oi : (
|
|
733
733
|
/*isReverse*/
|
|
734
|
-
m[7] ?
|
|
734
|
+
m[7] ? zi : Ri
|
|
735
735
|
)))))
|
|
736
736
|
);
|
|
737
737
|
}
|
|
738
|
-
let
|
|
738
|
+
let q = p(i, -1), h = q(i), g = _ && bt(i);
|
|
739
739
|
return {
|
|
740
740
|
c() {
|
|
741
|
-
e = z("li"),
|
|
741
|
+
e = z("li"), h.c(), a = J(), r = z("span"), d = z("span"), u = z("span"), b = ue(f), v = J(), g && g.c(), w = J(), W = z("span"), E = ue(y), l(u, "class", "primary svelte-ltkwvy"), l(d, "class", "svelte-ltkwvy"), l(W, "class", "line2 svelte-ltkwvy"), l(r, "class", "texts svelte-ltkwvy"), l(e, "tabindex", "0"), l(
|
|
742
742
|
e,
|
|
743
743
|
"data-selected",
|
|
744
744
|
/*selected*/
|
|
@@ -750,8 +750,8 @@ function Zi(i) {
|
|
|
750
750
|
i[1]
|
|
751
751
|
);
|
|
752
752
|
},
|
|
753
|
-
m(m,
|
|
754
|
-
A(m, e,
|
|
753
|
+
m(m, T) {
|
|
754
|
+
A(m, e, T), h.m(e, null), k(e, a), k(e, r), k(r, d), k(d, u), k(u, b), k(d, v), g && g.m(d, null), k(r, w), k(r, W), k(W, E), C || (R = [
|
|
755
755
|
V(
|
|
756
756
|
e,
|
|
757
757
|
"mouseenter",
|
|
@@ -766,8 +766,8 @@ function Zi(i) {
|
|
|
766
766
|
)
|
|
767
767
|
], C = !0);
|
|
768
768
|
},
|
|
769
|
-
p(m, [
|
|
770
|
-
|
|
769
|
+
p(m, [T]) {
|
|
770
|
+
q === (q = p(m, T)) && h ? h.p(m, T) : (h.d(1), h = q(m), h && (h.c(), h.m(e, a))), T & /*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
|
+
)) + "") && ke(b, f), T & /*showPlaceType, feature, imageUrl*/
|
|
779
779
|
37 && (_ = /*showPlaceType*/
|
|
780
780
|
m[2] === "always" || /*showPlaceType*/
|
|
781
781
|
m[2] !== "never" && !/*feature*/
|
|
@@ -785,18 +785,18 @@ function Zi(i) {
|
|
|
785
785
|
m[0].id.startsWith("postal_code.") && (!/*feature*/
|
|
786
786
|
m[0].id.startsWith("poi.") || !/*imageUrl*/
|
|
787
787
|
m[5]) && !/*isReverse*/
|
|
788
|
-
m[7]), _ ? g ? g.p(m,
|
|
788
|
+
m[7]), _ ? g ? g.p(m, T) : (g = bt(m), g.c(), g.m(d, null)) : g && (g.d(1), g = null), T & /*feature*/
|
|
789
789
|
1 && y !== (y = /*isReverse*/
|
|
790
790
|
(m[7] ? "" : (
|
|
791
791
|
/*feature*/
|
|
792
792
|
m[0].place_name.replace(/[^,]*,?\s*/, "")
|
|
793
|
-
)) + "") &&
|
|
793
|
+
)) + "") && ke(E, y), T & /*selected*/
|
|
794
794
|
2 && l(
|
|
795
795
|
e,
|
|
796
796
|
"data-selected",
|
|
797
797
|
/*selected*/
|
|
798
798
|
m[1]
|
|
799
|
-
),
|
|
799
|
+
), T & /*selected*/
|
|
800
800
|
2 && ce(
|
|
801
801
|
e,
|
|
802
802
|
"selected",
|
|
@@ -807,42 +807,42 @@ function Zi(i) {
|
|
|
807
807
|
i: I,
|
|
808
808
|
o: I,
|
|
809
809
|
d(m) {
|
|
810
|
-
m &&
|
|
810
|
+
m && D(e), h.d(), g && g.d(), C = !1, ae(R);
|
|
811
811
|
}
|
|
812
812
|
};
|
|
813
813
|
}
|
|
814
|
-
function
|
|
814
|
+
function Hi(i, e, t) {
|
|
815
815
|
var R;
|
|
816
|
-
let n, o, { feature:
|
|
817
|
-
const f = (R =
|
|
818
|
-
let
|
|
816
|
+
let n, o, { feature: c } = e, { selected: a = !1 } = e, { showPlaceType: r } = e, { missingIconsCache: d } = e, { iconsBaseUrl: u } = e;
|
|
817
|
+
const f = (R = c.properties) == null ? void 0 : R.categories;
|
|
818
|
+
let b, v, _ = 0, w = c.place_type[0] === "reverse";
|
|
819
819
|
function W() {
|
|
820
820
|
v && d.add(v), t(10, _++, _);
|
|
821
821
|
}
|
|
822
822
|
function y(p) {
|
|
823
|
-
|
|
823
|
+
ft.call(this, i, p);
|
|
824
824
|
}
|
|
825
825
|
function E(p) {
|
|
826
|
-
|
|
826
|
+
ft.call(this, i, p);
|
|
827
827
|
}
|
|
828
828
|
const C = () => W();
|
|
829
829
|
return i.$$set = (p) => {
|
|
830
|
-
"feature" in p && t(0,
|
|
830
|
+
"feature" in p && t(0, c = p.feature), "selected" in p && t(1, a = p.selected), "showPlaceType" in p && t(2, r = p.showPlaceType), "missingIconsCache" in p && t(9, d = p.missingIconsCache), "iconsBaseUrl" in p && t(3, u = p.iconsBaseUrl);
|
|
831
831
|
}, i.$$.update = () => {
|
|
832
|
-
var p,
|
|
832
|
+
var p, q, h, g;
|
|
833
833
|
if (i.$$.dirty & /*loadIconAttempt, index, category, iconsBaseUrl, imageUrl, missingIconsCache*/
|
|
834
834
|
3640)
|
|
835
835
|
do
|
|
836
|
-
t(11, n--, n), t(4,
|
|
836
|
+
t(11, n--, n), t(4, b = f == null ? void 0 : f[n]), t(5, v = b ? u + b.replace(/ /g, "_") + ".svg" : void 0);
|
|
837
837
|
while (n > -1 && (!v || d.has(v)));
|
|
838
838
|
i.$$.dirty & /*feature*/
|
|
839
|
-
1 && t(6, o = ((
|
|
839
|
+
1 && t(6, o = ((q = (p = c.properties) == null ? void 0 : p.categories) == null ? void 0 : q.join(", ")) ?? ((g = (h = c.properties) == null ? void 0 : h.place_type_name) == null ? void 0 : g[0]) ?? c.place_type[0]);
|
|
840
840
|
}, t(11, n = (f == null ? void 0 : f.length) ?? 0), [
|
|
841
|
-
|
|
841
|
+
c,
|
|
842
842
|
a,
|
|
843
843
|
r,
|
|
844
|
-
|
|
845
|
-
|
|
844
|
+
u,
|
|
845
|
+
b,
|
|
846
846
|
v,
|
|
847
847
|
o,
|
|
848
848
|
w,
|
|
@@ -855,9 +855,9 @@ function Gi(i, e, t) {
|
|
|
855
855
|
C
|
|
856
856
|
];
|
|
857
857
|
}
|
|
858
|
-
class
|
|
858
|
+
class ji extends ve {
|
|
859
859
|
constructor(e) {
|
|
860
|
-
super(),
|
|
860
|
+
super(), he(this, e, Hi, Fi, be, {
|
|
861
861
|
feature: 0,
|
|
862
862
|
selected: 1,
|
|
863
863
|
showPlaceType: 2,
|
|
@@ -866,7 +866,7 @@ class qi extends Le {
|
|
|
866
866
|
});
|
|
867
867
|
}
|
|
868
868
|
}
|
|
869
|
-
function
|
|
869
|
+
function Pi(i) {
|
|
870
870
|
let e;
|
|
871
871
|
return {
|
|
872
872
|
c() {
|
|
@@ -879,89 +879,89 @@ function Qi(i) {
|
|
|
879
879
|
i: I,
|
|
880
880
|
o: I,
|
|
881
881
|
d(t) {
|
|
882
|
-
t &&
|
|
882
|
+
t && D(e);
|
|
883
883
|
}
|
|
884
884
|
};
|
|
885
885
|
}
|
|
886
|
-
class
|
|
886
|
+
class Zi extends ve {
|
|
887
887
|
constructor(e) {
|
|
888
|
-
super(),
|
|
888
|
+
super(), he(this, e, null, Pi, be, {});
|
|
889
889
|
}
|
|
890
890
|
}
|
|
891
|
-
function
|
|
891
|
+
function Gi(i) {
|
|
892
892
|
let e, t;
|
|
893
893
|
return {
|
|
894
894
|
c() {
|
|
895
895
|
e = re("svg"), t = re("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
897
|
m(n, o) {
|
|
898
|
-
A(n, e, o),
|
|
898
|
+
A(n, e, o), k(e, t);
|
|
899
899
|
},
|
|
900
900
|
p: I,
|
|
901
901
|
i: I,
|
|
902
902
|
o: I,
|
|
903
903
|
d(n) {
|
|
904
|
-
n &&
|
|
904
|
+
n && D(e);
|
|
905
905
|
}
|
|
906
906
|
};
|
|
907
907
|
}
|
|
908
|
-
class
|
|
908
|
+
class qi extends ve {
|
|
909
909
|
constructor(e) {
|
|
910
|
-
super(),
|
|
910
|
+
super(), he(this, e, null, Gi, be, {});
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
|
-
function
|
|
913
|
+
function Qi(i) {
|
|
914
914
|
let e, t, n;
|
|
915
915
|
return {
|
|
916
916
|
c() {
|
|
917
917
|
e = re("svg"), t = re("circle"), n = re("path"), l(t, "cx", "4.789"), l(t, "cy", "4.787"), l(t, "r", "3.85"), l(t, "class", "svelte-1aq105l"), l(n, "d", "M12.063 12.063 7.635 7.635"), l(n, "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
|
-
m(o,
|
|
920
|
-
A(o, e,
|
|
919
|
+
m(o, c) {
|
|
920
|
+
A(o, e, c), k(e, t), k(e, n);
|
|
921
921
|
},
|
|
922
922
|
p: I,
|
|
923
923
|
i: I,
|
|
924
924
|
o: I,
|
|
925
925
|
d(o) {
|
|
926
|
-
o &&
|
|
926
|
+
o && D(e);
|
|
927
927
|
}
|
|
928
928
|
};
|
|
929
929
|
}
|
|
930
|
-
class
|
|
930
|
+
class Ki extends ve {
|
|
931
931
|
constructor(e) {
|
|
932
|
-
super(),
|
|
932
|
+
super(), he(this, e, null, Qi, be, {});
|
|
933
933
|
}
|
|
934
934
|
}
|
|
935
|
-
function
|
|
936
|
-
const n = e[1], o = e[0],
|
|
937
|
-
return i === n && t ? i : ((i - o) %
|
|
935
|
+
function Vi(i, e, t) {
|
|
936
|
+
const n = e[1], o = e[0], c = n - o;
|
|
937
|
+
return i === n && t ? i : ((i - o) % c + c) % c + o;
|
|
938
938
|
}
|
|
939
|
-
function
|
|
939
|
+
function ht(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
|
|
944
|
-
async function
|
|
943
|
+
let pe;
|
|
944
|
+
async function xi(i, e, t) {
|
|
945
945
|
const n = i == null ? void 0 : i.getCenterAndZoom();
|
|
946
946
|
for (const o of e ?? [])
|
|
947
947
|
if (!(n && (o.minZoom != null && o.minZoom > n[0] || o.maxZoom != null && o.maxZoom < n[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
|
-
let
|
|
956
|
+
let c;
|
|
957
957
|
try {
|
|
958
|
-
return
|
|
958
|
+
return c = await new Promise((a, r) => {
|
|
959
959
|
t.signal.addEventListener("abort", () => {
|
|
960
960
|
r(Error("aborted"));
|
|
961
961
|
}), navigator.geolocation.getCurrentPosition(
|
|
962
962
|
(d) => {
|
|
963
963
|
a(
|
|
964
|
-
[d.coords.longitude, d.coords.latitude].map((
|
|
964
|
+
[d.coords.longitude, d.coords.latitude].map((u) => u.toFixed(6)).join(",")
|
|
965
965
|
);
|
|
966
966
|
},
|
|
967
967
|
(d) => {
|
|
@@ -969,12 +969,12 @@ async function $i(i, e, t) {
|
|
|
969
969
|
},
|
|
970
970
|
o
|
|
971
971
|
);
|
|
972
|
-
}),
|
|
972
|
+
}), c;
|
|
973
973
|
} catch {
|
|
974
974
|
} finally {
|
|
975
|
-
o.cachedLocationExpiry && (
|
|
975
|
+
o.cachedLocationExpiry && (pe = {
|
|
976
976
|
time: Date.now(),
|
|
977
|
-
coords:
|
|
977
|
+
coords: c
|
|
978
978
|
});
|
|
979
979
|
}
|
|
980
980
|
if (t.signal.aborted)
|
|
@@ -986,67 +986,67 @@ async function $i(i, e, t) {
|
|
|
986
986
|
return n[1].toFixed(6) + "," + n[2].toFixed(6);
|
|
987
987
|
}
|
|
988
988
|
}
|
|
989
|
-
const
|
|
990
|
-
function
|
|
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;
|
|
990
|
+
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]), n = Number(e[1]), o = Math.abs(t),
|
|
994
|
+
const e = this.decimalCoordinates.split(",").map((_) => Number(_.trim())), t = Number(e[0]), n = Number(e[1]), o = Math.abs(t), c = Math.abs(n), a = t > 0 ? "N" : "S", r = n > 0 ? "E" : "W";
|
|
995
995
|
let d;
|
|
996
|
-
i == "DD" && (d = `${o}° ${a}, ${
|
|
997
|
-
const
|
|
996
|
+
i == "DD" && (d = `${o}° ${a}, ${c}° ${r}`);
|
|
997
|
+
const u = Math.floor(o), f = Math.floor(c), b = (o - u) * 60, v = (c - f) * 60;
|
|
998
998
|
if (i == "DM") {
|
|
999
|
-
let _ =
|
|
1000
|
-
_.endsWith(".000") && w.endsWith(".000") && (_ = _.replace(/\.000$/, ""), w = w.replace(/\.000$/, "")), d = `${
|
|
999
|
+
let _ = Et(b, 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 = `${u}° ${_}' ${a}, ${f}° ${w}' ${r}`;
|
|
1001
1001
|
}
|
|
1002
1002
|
if (i == "DMS") {
|
|
1003
|
-
const _ = Math.floor(
|
|
1004
|
-
let W = ((
|
|
1003
|
+
const _ = Math.floor(b), w = Math.floor(v);
|
|
1004
|
+
let W = ((b - _) * 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 = `${
|
|
1006
|
+
W.endsWith(".0") && y.endsWith(".0") && (W = W.replace(/\.0$/, ""), y = y.replace(/\.0$/, "")), d = `${u}° ${E}' ${W}" ${a}, ${f}° ${C}' ${y}" ${r}`;
|
|
1007
1007
|
}
|
|
1008
1008
|
return d;
|
|
1009
1009
|
} else
|
|
1010
1010
|
throw new Error("no decimal coordinates to convert");
|
|
1011
1011
|
}
|
|
1012
|
-
function
|
|
1012
|
+
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 nt(i, e) {
|
|
1017
1017
|
e || (e = 5), i = i.replace(/\s+/g, " ").trim();
|
|
1018
|
-
let t = null, n = null, o = "",
|
|
1019
|
-
if (
|
|
1018
|
+
let t = null, n = null, o = "", c = "", a = null, r = [], d = !1;
|
|
1019
|
+
if (Ji.test(i))
|
|
1020
1020
|
throw new Error("invalid coordinate value");
|
|
1021
|
-
if (
|
|
1022
|
-
if (r =
|
|
1021
|
+
if (vt.test(i))
|
|
1022
|
+
if (r = vt.exec(i), d = Ne(r), d)
|
|
1023
1023
|
t = Math.abs(r[1]) + r[2] / 60, Number(r[1]) < 0 && (t *= -1), n = Math.abs(r[3]) + r[4] / 60, Number(r[3]) < 0 && (n *= -1), a = "DM";
|
|
1024
1024
|
else
|
|
1025
1025
|
throw new Error("invalid coordinate format");
|
|
1026
|
-
else if (
|
|
1027
|
-
if (r =
|
|
1026
|
+
else if (Lt.test(i))
|
|
1027
|
+
if (r = Lt.exec(i), d = Ne(r), d) {
|
|
1028
1028
|
if (t = r[2], n = r[6], t.includes(",") && (t = t.replace(",", ".")), n.includes(",") && (n = n.replace(",", ".")), a = "DD", Number(Math.round(t)) == Number(t))
|
|
1029
1029
|
throw new Error("integer only coordinate provided");
|
|
1030
1030
|
if (Number(Math.round(n)) == Number(n))
|
|
1031
1031
|
throw new Error("integer only coordinate provided");
|
|
1032
|
-
r[1] ? (o = r[1],
|
|
1032
|
+
r[1] ? (o = r[1], c = r[5]) : r[4] && (o = r[4], c = r[8]);
|
|
1033
1033
|
} else
|
|
1034
1034
|
throw new Error("invalid decimal coordinate format");
|
|
1035
|
-
else if (
|
|
1036
|
-
if (r =
|
|
1037
|
-
t = Math.abs(parseInt(r[2])), r[4] && (t += r[4] / 60, a = "DM"), r[6] && (t += r[6].replace(",", ".") / 3600, a = "DMS"), parseInt(r[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(r[9])), r[11] && (n += r[11] / 60), r[13] && (n += r[13].replace(",", ".") / 3600), parseInt(r[9]) < 0 && (n = -1 * n), r[1] ? (o = r[1],
|
|
1035
|
+
else if (_t.test(i))
|
|
1036
|
+
if (r = _t.exec(i), d = Ne(r), d)
|
|
1037
|
+
t = Math.abs(parseInt(r[2])), r[4] && (t += r[4] / 60, a = "DM"), r[6] && (t += r[6].replace(",", ".") / 3600, a = "DMS"), parseInt(r[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(r[9])), r[11] && (n += r[11] / 60), r[13] && (n += r[13].replace(",", ".") / 3600), parseInt(r[9]) < 0 && (n = -1 * n), r[1] ? (o = r[1], c = r[8]) : r[7] && (o = r[7], c = r[14]);
|
|
1038
1038
|
else
|
|
1039
1039
|
throw new Error("invalid DMS coordinates format");
|
|
1040
|
-
else if (
|
|
1041
|
-
if (r =
|
|
1042
|
-
t = Math.abs(parseInt(r[2])), r[4] && (t += r[4] / 60, a = "DM"), r[6] && (t += r[6] / 3600, a = "DMS"), parseInt(r[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(r[10])), r[12] && (n += r[12] / 60), r[14] && (n += r[14] / 3600), parseInt(r[10]) < 0 && (n = -1 * n), r[1] ? (o = r[1],
|
|
1040
|
+
else if (yt.test(i))
|
|
1041
|
+
if (r = yt.exec(i), d = Ne(r), d)
|
|
1042
|
+
t = Math.abs(parseInt(r[2])), r[4] && (t += r[4] / 60, a = "DM"), r[6] && (t += r[6] / 3600, a = "DMS"), parseInt(r[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(r[10])), r[12] && (n += r[12] / 60), r[14] && (n += r[14] / 3600), parseInt(r[10]) < 0 && (n = -1 * n), r[1] ? (o = r[1], c = r[9]) : r[8] && (o = r[8], c = r[16]);
|
|
1043
1043
|
else
|
|
1044
1044
|
throw new Error("invalid DMS coordinates format");
|
|
1045
|
-
else if (
|
|
1046
|
-
if (r =
|
|
1045
|
+
else if (wt.test(i)) {
|
|
1046
|
+
if (r = wt.exec(i), d = Ne(r), r.filter((u) => u).length <= 5)
|
|
1047
1047
|
throw new Error("invalid coordinates format");
|
|
1048
1048
|
if (d)
|
|
1049
|
-
t = Math.abs(parseInt(r[2])), r[4] && (t += r[4].replace(",", ".") / 60, a = "DM"), r[6] && (t += r[6].replace(",", ".") / 3600, a = "DMS"), parseInt(r[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(r[10])), r[12] && (n += r[12].replace(",", ".") / 60), r[14] && (n += r[14].replace(",", ".") / 3600), parseInt(r[10]) < 0 && (n = -1 * n), r[1] ? (o = r[1],
|
|
1049
|
+
t = Math.abs(parseInt(r[2])), r[4] && (t += r[4].replace(",", ".") / 60, a = "DM"), r[6] && (t += r[6].replace(",", ".") / 3600, a = "DMS"), parseInt(r[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(r[10])), r[12] && (n += r[12].replace(",", ".") / 60), r[14] && (n += r[14].replace(",", ".") / 3600), parseInt(r[10]) < 0 && (n = -1 * n), r[1] ? (o = r[1], c = r[9]) : r[8] && (o = r[8], c = r[16]);
|
|
1050
1050
|
else
|
|
1051
1051
|
throw new Error("invalid coordinates format");
|
|
1052
1052
|
}
|
|
@@ -1055,95 +1055,95 @@ function st(i, e) {
|
|
|
1055
1055
|
throw new Error("invalid longitude value");
|
|
1056
1056
|
if (Math.abs(t) >= 90)
|
|
1057
1057
|
throw new Error("invalid latitude value");
|
|
1058
|
-
if (o && !
|
|
1058
|
+
if (o && !c || !o && c)
|
|
1059
1059
|
throw new Error("invalid coordinates value");
|
|
1060
|
-
if (o && o ==
|
|
1060
|
+
if (o && o == c)
|
|
1061
1061
|
throw new Error("invalid coordinates format");
|
|
1062
1062
|
t.toString().includes(",") && (t = t.replace(",", ".")), n.toString().includes(",") && (n = n.replace(",", "."));
|
|
1063
|
-
let
|
|
1064
|
-
|
|
1063
|
+
let u = /S|SOUTH/i;
|
|
1064
|
+
u.test(o) && t > 0 && (t = -1 * t), u = /W|WEST/i, u.test(c) && n > 0 && (n = -1 * n);
|
|
1065
1065
|
const f = r[0].trim();
|
|
1066
|
-
let
|
|
1066
|
+
let b, v;
|
|
1067
1067
|
const _ = /[,/;\u0020]/g, w = f.match(_);
|
|
1068
1068
|
if (w == null) {
|
|
1069
1069
|
const E = Math.floor(i.length / 2);
|
|
1070
|
-
|
|
1070
|
+
b = f.substring(0, E).trim(), v = f.substring(E).trim();
|
|
1071
1071
|
} else {
|
|
1072
1072
|
let E;
|
|
1073
1073
|
w.length % 2 == 1 ? E = Math.floor(w.length / 2) : E = w.length / 2 - 1;
|
|
1074
1074
|
let C = 0;
|
|
1075
1075
|
if (E == 0)
|
|
1076
|
-
C = f.indexOf(w[0]),
|
|
1076
|
+
C = f.indexOf(w[0]), b = f.substring(0, C).trim(), v = f.substring(C + 1).trim();
|
|
1077
1077
|
else {
|
|
1078
1078
|
let R = 0, p = 0;
|
|
1079
1079
|
for (; R <= E; )
|
|
1080
1080
|
C = f.indexOf(w[R], p), p = C + 1, R++;
|
|
1081
|
-
|
|
1081
|
+
b = f.substring(0, C).trim(), v = f.substring(C + 1).trim();
|
|
1082
1082
|
}
|
|
1083
1083
|
}
|
|
1084
|
-
const W =
|
|
1084
|
+
const W = b.split(".");
|
|
1085
1085
|
if (W.length == 2 && W[1] == 0 && W[1].length != 2)
|
|
1086
1086
|
throw new Error("invalid coordinates format");
|
|
1087
1087
|
const y = v.split(".");
|
|
1088
1088
|
if (y.length == 2 && y[1] == 0 && y[1].length != 2)
|
|
1089
1089
|
throw new Error("invalid coordinates format");
|
|
1090
|
-
if (/^\d+$/.test(
|
|
1090
|
+
if (/^\d+$/.test(b) || /^\d+$/.test(v))
|
|
1091
1091
|
throw new Error("degree only coordinate/s provided");
|
|
1092
1092
|
return t = Number(Number(t).toFixed(e)), n = Number(Number(n).toFixed(e)), Object.freeze({
|
|
1093
1093
|
verbatimCoordinates: f,
|
|
1094
|
-
verbatimLatitude:
|
|
1094
|
+
verbatimLatitude: b,
|
|
1095
1095
|
verbatimLongitude: v,
|
|
1096
1096
|
decimalLatitude: t,
|
|
1097
1097
|
decimalLongitude: n,
|
|
1098
1098
|
decimalCoordinates: `${t},${n}`,
|
|
1099
1099
|
originalFormat: a,
|
|
1100
|
-
closeEnough:
|
|
1101
|
-
toCoordinateFormat:
|
|
1100
|
+
closeEnough: Yi,
|
|
1101
|
+
toCoordinateFormat: Xi
|
|
1102
1102
|
});
|
|
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
1112
|
const t = /^[-+]?\d+([\.,]\d+)?$/, n = /[eastsouthnorthwest]+/i, o = e.length / 2;
|
|
1113
|
-
for (let
|
|
1114
|
-
const a = e[
|
|
1113
|
+
for (let c = 0; c < o; c++) {
|
|
1114
|
+
const a = e[c], r = e[c + o], d = t.test(a) && t.test(r), u = n.test(a) && n.test(r), f = a == r;
|
|
1115
1115
|
if (!(a == null && r == null)) {
|
|
1116
1116
|
if (a == null || r == null)
|
|
1117
1117
|
return !1;
|
|
1118
|
-
if (d ||
|
|
1118
|
+
if (d || u || f)
|
|
1119
1119
|
continue;
|
|
1120
1120
|
return !1;
|
|
1121
1121
|
}
|
|
1122
1122
|
}
|
|
1123
1123
|
return !0;
|
|
1124
1124
|
}
|
|
1125
|
-
function
|
|
1125
|
+
function St(i, e) {
|
|
1126
1126
|
const t = Math.abs(i - e);
|
|
1127
1127
|
return Number(t.toFixed(6)) <= 1e-5;
|
|
1128
1128
|
}
|
|
1129
|
-
function
|
|
1129
|
+
function Yi(i) {
|
|
1130
1130
|
if (!i)
|
|
1131
1131
|
throw new Error("coords must be provided");
|
|
1132
1132
|
if (i.includes(",")) {
|
|
1133
1133
|
const e = i.split(",");
|
|
1134
1134
|
if (Number(e[0]) == NaN || Number(e[1]) == NaN)
|
|
1135
1135
|
throw new Error("coords are not valid decimals");
|
|
1136
|
-
return
|
|
1136
|
+
return St(this.decimalLatitude, Number(e[0])) && St(this.decimalLongitude, e[1]);
|
|
1137
1137
|
} else
|
|
1138
1138
|
throw new Error("coords being tested must be separated by a comma");
|
|
1139
1139
|
}
|
|
1140
|
-
const
|
|
1140
|
+
const $i = Object.freeze({
|
|
1141
1141
|
DMS: "DMS",
|
|
1142
1142
|
DM: "DM",
|
|
1143
1143
|
DD: "DD"
|
|
1144
1144
|
});
|
|
1145
|
-
|
|
1146
|
-
const
|
|
1145
|
+
nt.to = $i;
|
|
1146
|
+
const en = [
|
|
1147
1147
|
{
|
|
1148
1148
|
verbatimCoordinates: "40.123, -74.123",
|
|
1149
1149
|
verbatimLatitude: "40.123",
|
|
@@ -1284,10 +1284,10 @@ const on = [
|
|
|
1284
1284
|
verbatimLatitude: "40 7 22.8",
|
|
1285
1285
|
verbatimLongitude: "-74 7 22.8"
|
|
1286
1286
|
}
|
|
1287
|
-
],
|
|
1287
|
+
], tn = {
|
|
1288
1288
|
decimalLatitude: 40.123,
|
|
1289
1289
|
decimalLongitude: -74.123
|
|
1290
|
-
},
|
|
1290
|
+
}, nn = [
|
|
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 on = [
|
|
|
1372
1372
|
decimalLatitude: -18.4,
|
|
1373
1373
|
decimalLongitude: 22.75
|
|
1374
1374
|
}
|
|
1375
|
-
],
|
|
1375
|
+
], rn = [
|
|
1376
1376
|
{
|
|
1377
1377
|
verbatimCoordinates: "10.432342S 10.6345345E",
|
|
1378
1378
|
verbatimLatitude: "10.432342S",
|
|
@@ -1507,30 +1507,30 @@ const on = [
|
|
|
1507
1507
|
decimalLongitude: 18.33453
|
|
1508
1508
|
}
|
|
1509
1509
|
];
|
|
1510
|
-
function
|
|
1510
|
+
function on() {
|
|
1511
1511
|
const i = [];
|
|
1512
|
-
return
|
|
1513
|
-
e.decimalLatitude ? i.push(e) : i.push({ ...e, ...
|
|
1514
|
-
}), [...i, ...
|
|
1515
|
-
}
|
|
1516
|
-
const
|
|
1517
|
-
|
|
1518
|
-
const
|
|
1519
|
-
function
|
|
1512
|
+
return en.forEach((e) => {
|
|
1513
|
+
e.decimalLatitude ? i.push(e) : i.push({ ...e, ...tn });
|
|
1514
|
+
}), [...i, ...nn, ...rn];
|
|
1515
|
+
}
|
|
1516
|
+
const sn = on();
|
|
1517
|
+
nt.formats = sn.map((i) => i.verbatimCoordinates);
|
|
1518
|
+
const an = nt;
|
|
1519
|
+
function pt(i, e, t) {
|
|
1520
1520
|
const n = i.slice();
|
|
1521
|
-
return n[
|
|
1521
|
+
return n[83] = e[t], n[85] = t, n;
|
|
1522
1522
|
}
|
|
1523
|
-
function
|
|
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
1529
|
m(n, o) {
|
|
1530
1530
|
oe(e, n, o), t = !0;
|
|
1531
1531
|
},
|
|
1532
1532
|
i(n) {
|
|
1533
|
-
t || (
|
|
1533
|
+
t || (F(e.$$.fragment, n), t = !0);
|
|
1534
1534
|
},
|
|
1535
1535
|
o(n) {
|
|
1536
1536
|
Q(e.$$.fragment, n), t = !1;
|
|
@@ -1540,11 +1540,11 @@ function kt(i) {
|
|
|
1540
1540
|
}
|
|
1541
1541
|
};
|
|
1542
1542
|
}
|
|
1543
|
-
function
|
|
1544
|
-
let e, t, n, o,
|
|
1545
|
-
return t = new
|
|
1543
|
+
function Mt(i) {
|
|
1544
|
+
let e, t, n, o, c;
|
|
1545
|
+
return t = new qi({}), {
|
|
1546
1546
|
c() {
|
|
1547
|
-
e = z("button"),
|
|
1547
|
+
e = z("button"), de(t.$$.fragment), l(e, "type", "button"), l(
|
|
1548
1548
|
e,
|
|
1549
1549
|
"title",
|
|
1550
1550
|
/*reverseButtonTitle*/
|
|
@@ -1557,11 +1557,11 @@ function Ct(i) {
|
|
|
1557
1557
|
);
|
|
1558
1558
|
},
|
|
1559
1559
|
m(a, r) {
|
|
1560
|
-
A(a, e, r), oe(t, e, null), n = !0, o || (
|
|
1560
|
+
A(a, e, r), oe(t, e, null), n = !0, o || (c = V(
|
|
1561
1561
|
e,
|
|
1562
1562
|
"click",
|
|
1563
1563
|
/*click_handler_2*/
|
|
1564
|
-
i[
|
|
1564
|
+
i[68]
|
|
1565
1565
|
), o = !0);
|
|
1566
1566
|
},
|
|
1567
1567
|
p(a, r) {
|
|
@@ -1580,120 +1580,120 @@ function Ct(i) {
|
|
|
1580
1580
|
);
|
|
1581
1581
|
},
|
|
1582
1582
|
i(a) {
|
|
1583
|
-
n || (
|
|
1583
|
+
n || (F(t.$$.fragment, a), n = !0);
|
|
1584
1584
|
},
|
|
1585
1585
|
o(a) {
|
|
1586
1586
|
Q(t.$$.fragment, a), n = !1;
|
|
1587
1587
|
},
|
|
1588
1588
|
d(a) {
|
|
1589
|
-
a &&
|
|
1589
|
+
a && D(e), se(t), o = !1, c();
|
|
1590
1590
|
}
|
|
1591
1591
|
};
|
|
1592
1592
|
}
|
|
1593
|
-
function
|
|
1594
|
-
let e, t = [], n = /* @__PURE__ */ new Map(), o,
|
|
1593
|
+
function ln(i) {
|
|
1594
|
+
let e, t = [], n = /* @__PURE__ */ new Map(), o, c, a, r = gt(
|
|
1595
1595
|
/*listFeatures*/
|
|
1596
1596
|
i[14]
|
|
1597
1597
|
);
|
|
1598
|
-
const d = (
|
|
1598
|
+
const d = (u) => (
|
|
1599
1599
|
/*feature*/
|
|
1600
|
-
|
|
1601
|
-
(
|
|
1602
|
-
|
|
1600
|
+
u[83].id + /*feature*/
|
|
1601
|
+
(u[83].address ? "," + /*feature*/
|
|
1602
|
+
u[83].address : "")
|
|
1603
1603
|
);
|
|
1604
|
-
for (let
|
|
1605
|
-
let f =
|
|
1606
|
-
n.set(
|
|
1604
|
+
for (let u = 0; u < r.length; u += 1) {
|
|
1605
|
+
let f = pt(i, r, u), b = d(f);
|
|
1606
|
+
n.set(b, t[u] = kt(b, f));
|
|
1607
1607
|
}
|
|
1608
1608
|
return {
|
|
1609
1609
|
c() {
|
|
1610
1610
|
e = z("ul");
|
|
1611
|
-
for (let
|
|
1612
|
-
t[
|
|
1611
|
+
for (let u = 0; u < t.length; u += 1)
|
|
1612
|
+
t[u].c();
|
|
1613
1613
|
l(e, "class", "options svelte-bz0zu3");
|
|
1614
1614
|
},
|
|
1615
|
-
m(
|
|
1616
|
-
A(
|
|
1617
|
-
for (let
|
|
1618
|
-
t[
|
|
1619
|
-
o = !0,
|
|
1615
|
+
m(u, f) {
|
|
1616
|
+
A(u, e, f);
|
|
1617
|
+
for (let b = 0; b < t.length; b += 1)
|
|
1618
|
+
t[b] && t[b].m(e, null);
|
|
1619
|
+
o = !0, c || (a = [
|
|
1620
1620
|
V(
|
|
1621
1621
|
e,
|
|
1622
1622
|
"mouseleave",
|
|
1623
1623
|
/*mouseleave_handler*/
|
|
1624
|
-
i[
|
|
1624
|
+
i[72]
|
|
1625
1625
|
),
|
|
1626
1626
|
V(
|
|
1627
1627
|
e,
|
|
1628
1628
|
"blur",
|
|
1629
1629
|
/*blur_handler_1*/
|
|
1630
|
-
i[
|
|
1630
|
+
i[73]
|
|
1631
1631
|
)
|
|
1632
|
-
],
|
|
1632
|
+
], c = !0);
|
|
1633
1633
|
},
|
|
1634
|
-
p(
|
|
1634
|
+
p(u, f) {
|
|
1635
1635
|
f[0] & /*listFeatures, showPlaceType, selectedItemIndex, missingIconsCache, iconsBaseUrl, pick*/
|
|
1636
|
-
17880064 && (r =
|
|
1636
|
+
17880064 && (r = gt(
|
|
1637
1637
|
/*listFeatures*/
|
|
1638
|
-
|
|
1639
|
-
),
|
|
1638
|
+
u[14]
|
|
1639
|
+
), Ae(), t = Mi(t, f, d, 1, u, r, n, e, Ni, kt, null, pt), Be());
|
|
1640
1640
|
},
|
|
1641
|
-
i(
|
|
1641
|
+
i(u) {
|
|
1642
1642
|
if (!o) {
|
|
1643
1643
|
for (let f = 0; f < r.length; f += 1)
|
|
1644
|
-
|
|
1644
|
+
F(t[f]);
|
|
1645
1645
|
o = !0;
|
|
1646
1646
|
}
|
|
1647
1647
|
},
|
|
1648
|
-
o(
|
|
1648
|
+
o(u) {
|
|
1649
1649
|
for (let f = 0; f < t.length; f += 1)
|
|
1650
1650
|
Q(t[f]);
|
|
1651
1651
|
o = !1;
|
|
1652
1652
|
},
|
|
1653
|
-
d(
|
|
1654
|
-
|
|
1653
|
+
d(u) {
|
|
1654
|
+
u && D(e);
|
|
1655
1655
|
for (let f = 0; f < t.length; f += 1)
|
|
1656
1656
|
t[f].d();
|
|
1657
|
-
|
|
1657
|
+
c = !1, ae(a);
|
|
1658
1658
|
}
|
|
1659
1659
|
};
|
|
1660
1660
|
}
|
|
1661
|
-
function
|
|
1662
|
-
let e, t, n, o,
|
|
1663
|
-
return t = new
|
|
1661
|
+
function cn(i) {
|
|
1662
|
+
let e, t, n, o, c, a;
|
|
1663
|
+
return t = new It({}), {
|
|
1664
1664
|
c() {
|
|
1665
|
-
e = z("div"),
|
|
1665
|
+
e = z("div"), de(t.$$.fragment), n = J(), o = z("div"), c = ue(
|
|
1666
1666
|
/*noResultsMessage*/
|
|
1667
1667
|
i[7]
|
|
1668
1668
|
), l(o, "class", "svelte-bz0zu3"), l(e, "class", "no-results svelte-bz0zu3");
|
|
1669
1669
|
},
|
|
1670
1670
|
m(r, d) {
|
|
1671
|
-
A(r, e, d), oe(t, e, null),
|
|
1671
|
+
A(r, e, d), oe(t, e, null), k(e, n), k(e, o), k(o, c), a = !0;
|
|
1672
1672
|
},
|
|
1673
1673
|
p(r, d) {
|
|
1674
1674
|
(!a || d[0] & /*noResultsMessage*/
|
|
1675
|
-
128) &&
|
|
1676
|
-
|
|
1675
|
+
128) && ke(
|
|
1676
|
+
c,
|
|
1677
1677
|
/*noResultsMessage*/
|
|
1678
1678
|
r[7]
|
|
1679
1679
|
);
|
|
1680
1680
|
},
|
|
1681
1681
|
i(r) {
|
|
1682
|
-
a || (
|
|
1682
|
+
a || (F(t.$$.fragment, r), a = !0);
|
|
1683
1683
|
},
|
|
1684
1684
|
o(r) {
|
|
1685
1685
|
Q(t.$$.fragment, r), a = !1;
|
|
1686
1686
|
},
|
|
1687
1687
|
d(r) {
|
|
1688
|
-
r &&
|
|
1688
|
+
r && D(e), se(t);
|
|
1689
1689
|
}
|
|
1690
1690
|
};
|
|
1691
1691
|
}
|
|
1692
|
-
function
|
|
1692
|
+
function un(i) {
|
|
1693
1693
|
let e = "", t;
|
|
1694
1694
|
return {
|
|
1695
1695
|
c() {
|
|
1696
|
-
t =
|
|
1696
|
+
t = ue(e);
|
|
1697
1697
|
},
|
|
1698
1698
|
m(n, o) {
|
|
1699
1699
|
A(n, t, o);
|
|
@@ -1702,71 +1702,71 @@ function gn(i) {
|
|
|
1702
1702
|
i: I,
|
|
1703
1703
|
o: I,
|
|
1704
1704
|
d(n) {
|
|
1705
|
-
n &&
|
|
1705
|
+
n && D(t);
|
|
1706
1706
|
}
|
|
1707
1707
|
};
|
|
1708
1708
|
}
|
|
1709
|
-
function
|
|
1710
|
-
let e, t, n, o,
|
|
1711
|
-
return t = new
|
|
1709
|
+
function dn(i) {
|
|
1710
|
+
let e, t, n, o, c, a, r, d, u, f, b;
|
|
1711
|
+
return t = new It({}), d = new Ut({}), {
|
|
1712
1712
|
c() {
|
|
1713
|
-
e = z("div"),
|
|
1713
|
+
e = z("div"), de(t.$$.fragment), n = J(), o = z("div"), c = ue(
|
|
1714
1714
|
/*errorMessage*/
|
|
1715
1715
|
i[6]
|
|
1716
|
-
), a = J(), r = z("button"),
|
|
1716
|
+
), a = J(), r = z("button"), de(d.$$.fragment), l(o, "class", "svelte-bz0zu3"), l(r, "class", "svelte-bz0zu3"), l(e, "class", "error svelte-bz0zu3");
|
|
1717
1717
|
},
|
|
1718
1718
|
m(v, _) {
|
|
1719
|
-
A(v, e, _), oe(t, e, null),
|
|
1719
|
+
A(v, e, _), oe(t, e, null), k(e, n), k(e, o), k(o, c), k(e, a), k(e, r), oe(d, r, null), u = !0, f || (b = V(
|
|
1720
1720
|
r,
|
|
1721
1721
|
"click",
|
|
1722
1722
|
/*click_handler_3*/
|
|
1723
|
-
i[
|
|
1723
|
+
i[69]
|
|
1724
1724
|
), f = !0);
|
|
1725
1725
|
},
|
|
1726
1726
|
p(v, _) {
|
|
1727
|
-
(!
|
|
1728
|
-
64) &&
|
|
1729
|
-
|
|
1727
|
+
(!u || _[0] & /*errorMessage*/
|
|
1728
|
+
64) && ke(
|
|
1729
|
+
c,
|
|
1730
1730
|
/*errorMessage*/
|
|
1731
1731
|
v[6]
|
|
1732
1732
|
);
|
|
1733
1733
|
},
|
|
1734
1734
|
i(v) {
|
|
1735
|
-
|
|
1735
|
+
u || (F(t.$$.fragment, v), F(d.$$.fragment, v), u = !0);
|
|
1736
1736
|
},
|
|
1737
1737
|
o(v) {
|
|
1738
|
-
Q(t.$$.fragment, v), Q(d.$$.fragment, v),
|
|
1738
|
+
Q(t.$$.fragment, v), Q(d.$$.fragment, v), u = !1;
|
|
1739
1739
|
},
|
|
1740
1740
|
d(v) {
|
|
1741
|
-
v &&
|
|
1741
|
+
v && D(e), se(t), se(d), f = !1, b();
|
|
1742
1742
|
}
|
|
1743
1743
|
};
|
|
1744
1744
|
}
|
|
1745
|
-
function
|
|
1745
|
+
function kt(i, e) {
|
|
1746
1746
|
let t, n, o;
|
|
1747
|
-
function
|
|
1747
|
+
function c() {
|
|
1748
1748
|
return (
|
|
1749
1749
|
/*mouseenter_handler*/
|
|
1750
|
-
e[
|
|
1750
|
+
e[70](
|
|
1751
1751
|
/*i*/
|
|
1752
|
-
e[
|
|
1752
|
+
e[85]
|
|
1753
1753
|
)
|
|
1754
1754
|
);
|
|
1755
1755
|
}
|
|
1756
1756
|
function a() {
|
|
1757
1757
|
return (
|
|
1758
1758
|
/*focus_handler_1*/
|
|
1759
|
-
e[
|
|
1759
|
+
e[71](
|
|
1760
1760
|
/*feature*/
|
|
1761
|
-
e[
|
|
1761
|
+
e[83]
|
|
1762
1762
|
)
|
|
1763
1763
|
);
|
|
1764
1764
|
}
|
|
1765
|
-
return n = new
|
|
1765
|
+
return n = new ji({
|
|
1766
1766
|
props: {
|
|
1767
1767
|
feature: (
|
|
1768
1768
|
/*feature*/
|
|
1769
|
-
e[
|
|
1769
|
+
e[83]
|
|
1770
1770
|
),
|
|
1771
1771
|
showPlaceType: (
|
|
1772
1772
|
/*showPlaceType*/
|
|
@@ -1775,7 +1775,7 @@ function Wt(i, e) {
|
|
|
1775
1775
|
selected: (
|
|
1776
1776
|
/*selectedItemIndex*/
|
|
1777
1777
|
e[15] === /*i*/
|
|
1778
|
-
e[
|
|
1778
|
+
e[85]
|
|
1779
1779
|
),
|
|
1780
1780
|
missingIconsCache: (
|
|
1781
1781
|
/*missingIconsCache*/
|
|
@@ -1786,80 +1786,80 @@ function Wt(i, e) {
|
|
|
1786
1786
|
e[12]
|
|
1787
1787
|
)
|
|
1788
1788
|
}
|
|
1789
|
-
}), n.$on("mouseenter",
|
|
1789
|
+
}), n.$on("mouseenter", c), n.$on("focus", a), {
|
|
1790
1790
|
key: i,
|
|
1791
1791
|
first: null,
|
|
1792
1792
|
c() {
|
|
1793
|
-
t =
|
|
1793
|
+
t = bi(), de(n.$$.fragment), this.first = t;
|
|
1794
1794
|
},
|
|
1795
1795
|
m(r, d) {
|
|
1796
1796
|
A(r, t, d), oe(n, r, d), o = !0;
|
|
1797
1797
|
},
|
|
1798
1798
|
p(r, d) {
|
|
1799
1799
|
e = r;
|
|
1800
|
-
const
|
|
1800
|
+
const u = {};
|
|
1801
1801
|
d[0] & /*listFeatures*/
|
|
1802
|
-
16384 && (
|
|
1803
|
-
e[
|
|
1804
|
-
1024 && (
|
|
1802
|
+
16384 && (u.feature = /*feature*/
|
|
1803
|
+
e[83]), d[0] & /*showPlaceType*/
|
|
1804
|
+
1024 && (u.showPlaceType = /*showPlaceType*/
|
|
1805
1805
|
e[10]), d[0] & /*selectedItemIndex, listFeatures*/
|
|
1806
|
-
49152 && (
|
|
1806
|
+
49152 && (u.selected = /*selectedItemIndex*/
|
|
1807
1807
|
e[15] === /*i*/
|
|
1808
|
-
e[
|
|
1809
|
-
4096 && (
|
|
1810
|
-
e[12]), n.$set(
|
|
1808
|
+
e[85]), d[0] & /*iconsBaseUrl*/
|
|
1809
|
+
4096 && (u.iconsBaseUrl = /*iconsBaseUrl*/
|
|
1810
|
+
e[12]), n.$set(u);
|
|
1811
1811
|
},
|
|
1812
1812
|
i(r) {
|
|
1813
|
-
o || (
|
|
1813
|
+
o || (F(n.$$.fragment, r), o = !0);
|
|
1814
1814
|
},
|
|
1815
1815
|
o(r) {
|
|
1816
1816
|
Q(n.$$.fragment, r), o = !1;
|
|
1817
1817
|
},
|
|
1818
1818
|
d(r) {
|
|
1819
|
-
r &&
|
|
1819
|
+
r && D(t), se(n, r);
|
|
1820
1820
|
}
|
|
1821
1821
|
};
|
|
1822
1822
|
}
|
|
1823
|
-
function
|
|
1824
|
-
let e, t, n, o,
|
|
1825
|
-
|
|
1823
|
+
function fn(i) {
|
|
1824
|
+
let e, t, n, o, c, a, r, d, u, f, b, v, _, w, W, y, E, C, R, p, q, h = !1;
|
|
1825
|
+
c = new Ki({}), b = new Ut({});
|
|
1826
1826
|
let g = (
|
|
1827
1827
|
/*abortController*/
|
|
1828
|
-
i[19] &&
|
|
1828
|
+
i[19] && Nt()
|
|
1829
1829
|
), m = (
|
|
1830
1830
|
/*enableReverse*/
|
|
1831
|
-
i[5]
|
|
1831
|
+
i[5] === "button" && Mt(i)
|
|
1832
1832
|
);
|
|
1833
|
-
const
|
|
1833
|
+
const T = (
|
|
1834
1834
|
/*#slots*/
|
|
1835
|
-
i[
|
|
1836
|
-
),
|
|
1837
|
-
|
|
1835
|
+
i[60].default
|
|
1836
|
+
), H = di(
|
|
1837
|
+
T,
|
|
1838
1838
|
i,
|
|
1839
1839
|
/*$$scope*/
|
|
1840
|
-
i[
|
|
1840
|
+
i[59],
|
|
1841
1841
|
null
|
|
1842
|
-
), X = [
|
|
1843
|
-
function
|
|
1844
|
-
var
|
|
1842
|
+
), X = [dn, un, cn, ln], Y = [];
|
|
1843
|
+
function j(L, B) {
|
|
1844
|
+
var $, ne;
|
|
1845
1845
|
return (
|
|
1846
1846
|
/*error*/
|
|
1847
1847
|
L[18] ? 0 : (
|
|
1848
1848
|
/*focusedDelayed*/
|
|
1849
1849
|
L[16] ? (
|
|
1850
1850
|
/*listFeatures*/
|
|
1851
|
-
((
|
|
1851
|
+
(($ = L[14]) == null ? void 0 : $.length) === 0 ? 2 : (
|
|
1852
1852
|
/*focusedDelayed*/
|
|
1853
1853
|
L[16] && /*listFeatures*/
|
|
1854
|
-
((
|
|
1854
|
+
((ne = L[14]) != null && ne.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 = z("form"), n = z("div"), o = z("button"),
|
|
1862
|
+
e = J(), t = z("form"), n = z("div"), o = z("button"), de(c.$$.fragment), a = J(), r = z("input"), d = J(), u = z("div"), f = z("button"), de(b.$$.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-bz0zu3"), l(o, "type", "button"), l(
|
|
1863
1863
|
r,
|
|
1864
1864
|
"placeholder",
|
|
1865
1865
|
/*placeholder*/
|
|
@@ -1874,12 +1874,12 @@ function bn(i) {
|
|
|
1874
1874
|
"title",
|
|
1875
1875
|
/*clearButtonTitle*/
|
|
1876
1876
|
i[3]
|
|
1877
|
-
), l(f, "class", "svelte-bz0zu3"), l(
|
|
1878
|
-
|
|
1877
|
+
), l(f, "class", "svelte-bz0zu3"), l(u, "class", "clear-button-container svelte-bz0zu3"), ce(
|
|
1878
|
+
u,
|
|
1879
1879
|
"displayable",
|
|
1880
1880
|
/*searchValue*/
|
|
1881
1881
|
i[1] !== ""
|
|
1882
|
-
), l(n, "class", "input-group svelte-bz0zu3"), l(t, "tabindex", "0"), l(t, "class", C =
|
|
1882
|
+
), l(n, "class", "input-group svelte-bz0zu3"), l(t, "tabindex", "0"), l(t, "class", C = ut(
|
|
1883
1883
|
/*className*/
|
|
1884
1884
|
i[2]
|
|
1885
1885
|
) + " svelte-bz0zu3"), ce(
|
|
@@ -1890,35 +1890,35 @@ function bn(i) {
|
|
|
1890
1890
|
i[1] === ""
|
|
1891
1891
|
);
|
|
1892
1892
|
},
|
|
1893
|
-
m(L,
|
|
1894
|
-
A(L, e,
|
|
1893
|
+
m(L, B) {
|
|
1894
|
+
A(L, e, B), A(L, t, B), k(t, n), k(n, o), oe(c, o, null), k(n, a), k(n, r), i[62](r), dt(
|
|
1895
1895
|
r,
|
|
1896
1896
|
/*searchValue*/
|
|
1897
1897
|
i[1]
|
|
1898
|
-
),
|
|
1898
|
+
), k(n, d), k(n, u), k(u, f), oe(b, f, null), k(u, v), g && g.m(u, null), k(n, _), m && m.m(n, null), k(n, w), H && H.m(n, null), k(t, W), ~y && Y[y].m(t, null), R = !0, p || (q = [
|
|
1899
1899
|
V(
|
|
1900
1900
|
o,
|
|
1901
1901
|
"click",
|
|
1902
1902
|
/*click_handler*/
|
|
1903
|
-
i[
|
|
1903
|
+
i[61]
|
|
1904
1904
|
),
|
|
1905
1905
|
V(
|
|
1906
1906
|
r,
|
|
1907
1907
|
"input",
|
|
1908
1908
|
/*input_1_input_handler*/
|
|
1909
|
-
i[
|
|
1909
|
+
i[63]
|
|
1910
1910
|
),
|
|
1911
1911
|
V(
|
|
1912
1912
|
r,
|
|
1913
1913
|
"focus",
|
|
1914
1914
|
/*focus_handler*/
|
|
1915
|
-
i[
|
|
1915
|
+
i[64]
|
|
1916
1916
|
),
|
|
1917
1917
|
V(
|
|
1918
1918
|
r,
|
|
1919
1919
|
"blur",
|
|
1920
1920
|
/*blur_handler*/
|
|
1921
|
-
i[
|
|
1921
|
+
i[65]
|
|
1922
1922
|
),
|
|
1923
1923
|
V(
|
|
1924
1924
|
r,
|
|
@@ -1930,86 +1930,86 @@ function bn(i) {
|
|
|
1930
1930
|
r,
|
|
1931
1931
|
"input",
|
|
1932
1932
|
/*input_handler*/
|
|
1933
|
-
i[
|
|
1933
|
+
i[66]
|
|
1934
1934
|
),
|
|
1935
1935
|
V(
|
|
1936
1936
|
f,
|
|
1937
1937
|
"click",
|
|
1938
1938
|
/*click_handler_1*/
|
|
1939
|
-
i[
|
|
1939
|
+
i[67]
|
|
1940
1940
|
),
|
|
1941
|
-
V(t, "submit",
|
|
1942
|
-
/*
|
|
1941
|
+
V(t, "submit", hi(
|
|
1942
|
+
/*handleOnSubmit*/
|
|
1943
1943
|
i[21]
|
|
1944
1944
|
))
|
|
1945
1945
|
], p = !0);
|
|
1946
1946
|
},
|
|
1947
|
-
p(L,
|
|
1948
|
-
(!R ||
|
|
1947
|
+
p(L, B) {
|
|
1948
|
+
(!R || B[0] & /*placeholder*/
|
|
1949
1949
|
256) && l(
|
|
1950
1950
|
r,
|
|
1951
1951
|
"placeholder",
|
|
1952
1952
|
/*placeholder*/
|
|
1953
1953
|
L[8]
|
|
1954
|
-
), (!R ||
|
|
1954
|
+
), (!R || B[0] & /*placeholder*/
|
|
1955
1955
|
256) && l(
|
|
1956
1956
|
r,
|
|
1957
1957
|
"aria-label",
|
|
1958
1958
|
/*placeholder*/
|
|
1959
1959
|
L[8]
|
|
1960
|
-
),
|
|
1960
|
+
), B[0] & /*searchValue*/
|
|
1961
1961
|
2 && r.value !== /*searchValue*/
|
|
1962
|
-
L[1] &&
|
|
1962
|
+
L[1] && dt(
|
|
1963
1963
|
r,
|
|
1964
1964
|
/*searchValue*/
|
|
1965
1965
|
L[1]
|
|
1966
|
-
), (!R ||
|
|
1966
|
+
), (!R || B[0] & /*clearButtonTitle*/
|
|
1967
1967
|
8) && l(
|
|
1968
1968
|
f,
|
|
1969
1969
|
"title",
|
|
1970
1970
|
/*clearButtonTitle*/
|
|
1971
1971
|
L[3]
|
|
1972
1972
|
), /*abortController*/
|
|
1973
|
-
L[19] ? g ?
|
|
1974
|
-
524288 &&
|
|
1973
|
+
L[19] ? g ? B[0] & /*abortController*/
|
|
1974
|
+
524288 && F(g, 1) : (g = Nt(), g.c(), F(g, 1), g.m(u, null)) : g && (Ae(), Q(g, 1, 1, () => {
|
|
1975
1975
|
g = null;
|
|
1976
|
-
}),
|
|
1976
|
+
}), Be()), (!R || B[0] & /*searchValue*/
|
|
1977
1977
|
2) && ce(
|
|
1978
|
-
|
|
1978
|
+
u,
|
|
1979
1979
|
"displayable",
|
|
1980
1980
|
/*searchValue*/
|
|
1981
1981
|
L[1] !== ""
|
|
1982
1982
|
), /*enableReverse*/
|
|
1983
|
-
L[5]
|
|
1984
|
-
32 &&
|
|
1983
|
+
L[5] === "button" ? m ? (m.p(L, B), B[0] & /*enableReverse*/
|
|
1984
|
+
32 && F(m, 1)) : (m = Mt(L), m.c(), F(m, 1), m.m(n, w)) : m && (Ae(), Q(m, 1, 1, () => {
|
|
1985
1985
|
m = null;
|
|
1986
|
-
}),
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1986
|
+
}), Be()), H && H.p && (!R || B[1] & /*$$scope*/
|
|
1987
|
+
268435456) && mi(
|
|
1988
|
+
H,
|
|
1989
|
+
T,
|
|
1990
1990
|
L,
|
|
1991
1991
|
/*$$scope*/
|
|
1992
|
-
L[
|
|
1993
|
-
R ?
|
|
1994
|
-
|
|
1992
|
+
L[59],
|
|
1993
|
+
R ? fi(
|
|
1994
|
+
T,
|
|
1995
1995
|
/*$$scope*/
|
|
1996
|
-
L[
|
|
1997
|
-
|
|
1996
|
+
L[59],
|
|
1997
|
+
B,
|
|
1998
1998
|
null
|
|
1999
|
-
) :
|
|
1999
|
+
) : gi(
|
|
2000
2000
|
/*$$scope*/
|
|
2001
|
-
L[
|
|
2001
|
+
L[59]
|
|
2002
2002
|
),
|
|
2003
2003
|
null
|
|
2004
2004
|
);
|
|
2005
|
-
let
|
|
2006
|
-
y =
|
|
2007
|
-
|
|
2008
|
-
}),
|
|
2009
|
-
4 && C !== (C =
|
|
2005
|
+
let $ = y;
|
|
2006
|
+
y = j(L), y === $ ? ~y && Y[y].p(L, B) : (E && (Ae(), Q(Y[$], 1, 1, () => {
|
|
2007
|
+
Y[$] = null;
|
|
2008
|
+
}), Be()), ~y ? (E = Y[y], E ? E.p(L, B) : (E = Y[y] = X[y](L), E.c()), F(E, 1), E.m(t, null)) : E = null), (!R || B[0] & /*className*/
|
|
2009
|
+
4 && C !== (C = ut(
|
|
2010
2010
|
/*className*/
|
|
2011
2011
|
L[2]
|
|
2012
|
-
) + " svelte-bz0zu3")) && l(t, "class", C), (!R ||
|
|
2012
|
+
) + " svelte-bz0zu3")) && l(t, "class", C), (!R || B[0] & /*className, collapsed, searchValue*/
|
|
2013
2013
|
22) && ce(
|
|
2014
2014
|
t,
|
|
2015
2015
|
"can-collapse",
|
|
@@ -2019,18 +2019,18 @@ function bn(i) {
|
|
|
2019
2019
|
);
|
|
2020
2020
|
},
|
|
2021
2021
|
i(L) {
|
|
2022
|
-
R || (
|
|
2022
|
+
R || (F(h), F(c.$$.fragment, L), F(b.$$.fragment, L), F(g), F(m), F(H, L), F(E), R = !0);
|
|
2023
2023
|
},
|
|
2024
2024
|
o(L) {
|
|
2025
|
-
Q(
|
|
2025
|
+
Q(h), Q(c.$$.fragment, L), Q(b.$$.fragment, L), Q(g), Q(m), Q(H, L), Q(E), R = !1;
|
|
2026
2026
|
},
|
|
2027
2027
|
d(L) {
|
|
2028
|
-
L && (
|
|
2028
|
+
L && (D(e), D(t)), se(c), i[62](null), se(b), 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 n, { $$slots: o = {}, $$scope:
|
|
2032
|
+
function mn(i, e, t) {
|
|
2033
|
+
let n, { $$slots: o = {}, $$scope: c } = e;
|
|
2034
2034
|
const a = {
|
|
2035
2035
|
continental_marine: 4,
|
|
2036
2036
|
country: 4,
|
|
@@ -2055,299 +2055,289 @@ function vn(i, e, t) {
|
|
|
2055
2055
|
"poi.restaurant": 18,
|
|
2056
2056
|
"poi.aerodrome": 13
|
|
2057
2057
|
};
|
|
2058
|
-
let { class: r = void 0 } = e, { apiKey: d } = e, { bbox:
|
|
2058
|
+
let { class: r = void 0 } = e, { apiKey: d } = e, { bbox: u = void 0 } = e, { clearButtonTitle: f = "clear" } = e, { clearOnBlur: b = !1 } = e, { collapsed: v = !1 } = e, { country: _ = void 0 } = e, { debounceSearch: w = 200 } = e, { enableReverse: W = "never" } = e, { errorMessage: y = "Something went wrong…" } = e, { filter: E = () => !0 } = e, { flyTo: C = !0 } = e, { fuzzyMatch: R = !0 } = e, { language: p = void 0 } = e, { limit: q = void 0 } = e, { mapController: h = 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: T = "Search" } = e, { proximity: H = [{ type: "server-geolocation" }] } = e, { reverseActive: X = W === "always" } = e, { reverseButtonTitle: Y = "toggle reverse geocoding" } = e, { searchValue: j = "" } = e, { pickedResultStyle: L = "full-geometry" } = e, { showPlaceType: B = "if-needed" } = e, { showResultsWhileTyping: $ = !0 } = e, { selectFirst: ne = !0 } = e, { flyToSelected: Fe = !1 } = e, { markerOnSelected: Ce = !0 } = e, { types: fe = void 0 } = e, { exhaustiveReverseGeocoding: He = !1 } = e, { excludeTypes: We = !1 } = e, { zoom: Re = a } = e, { apiUrl: je = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: Pe = {} } = e, { iconsBaseUrl: rt = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.0-rc.5/icons/" } = e, { adjustUrlQuery: Ze = () => {
|
|
2059
2059
|
} } = e;
|
|
2060
|
-
function
|
|
2061
|
-
|
|
2060
|
+
function At() {
|
|
2061
|
+
ee.focus();
|
|
2062
2062
|
}
|
|
2063
|
-
function
|
|
2064
|
-
|
|
2063
|
+
function Bt() {
|
|
2064
|
+
ee.blur();
|
|
2065
2065
|
}
|
|
2066
|
-
function
|
|
2067
|
-
t(1,
|
|
2068
|
-
|
|
2066
|
+
function ot(s, U = !0, G = !1) {
|
|
2067
|
+
t(1, j = s), U ? (t(15, O = -1), at()) : (Ke(!G, G), setTimeout(() => {
|
|
2068
|
+
ee.focus(), ee.select();
|
|
2069
2069
|
}));
|
|
2070
2070
|
}
|
|
2071
|
-
function
|
|
2072
|
-
t(14,
|
|
2073
|
-
}
|
|
2074
|
-
function Zt() {
|
|
2075
|
-
t(56, P = []), t(57, S = void 0);
|
|
2071
|
+
function Ft() {
|
|
2072
|
+
t(14, M = void 0), t(56, S = void 0), t(15, O = -1);
|
|
2076
2073
|
}
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
function qt() {
|
|
2080
|
-
return !!Y;
|
|
2074
|
+
function Ht() {
|
|
2075
|
+
t(55, P = []), t(56, S = void 0);
|
|
2081
2076
|
}
|
|
2082
|
-
|
|
2083
|
-
|
|
2077
|
+
let Le = !1, M, P, S, st = "", ee, O = -1, te, ze = [], me, _e, Oe, Ge;
|
|
2078
|
+
const jt = /* @__PURE__ */ new Set(), le = yi();
|
|
2079
|
+
_i(() => {
|
|
2080
|
+
h && (h.setEventHandler(void 0), h.indicateReverse(!1), h.setSelectedMarker(-1), h.setMarkers(void 0, void 0));
|
|
2084
2081
|
});
|
|
2085
|
-
function
|
|
2086
|
-
if (
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
const U = s || !xe(B);
|
|
2094
|
-
Te(B, { exact: !0 }).then(() => {
|
|
2095
|
-
t(56, P = N), t(57, S = void 0), U && Qt();
|
|
2096
|
-
}).catch((Z) => t(18, ne = Z));
|
|
2082
|
+
function at(s) {
|
|
2083
|
+
if (_e && (clearTimeout(_e), _e = void 0), O > -1 && M)
|
|
2084
|
+
t(56, S = M[O]), 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, O = -1);
|
|
2085
|
+
else if (j) {
|
|
2086
|
+
const U = s || !qe(j);
|
|
2087
|
+
Qe(j, { exact: !0 }).then(() => {
|
|
2088
|
+
t(55, P = M), t(56, S = void 0), U && Pt();
|
|
2089
|
+
}).catch((G) => t(18, te = G));
|
|
2097
2090
|
}
|
|
2098
2091
|
}
|
|
2099
|
-
function
|
|
2092
|
+
function qe(s) {
|
|
2100
2093
|
try {
|
|
2101
|
-
return
|
|
2094
|
+
return an(s, 6);
|
|
2102
2095
|
} catch {
|
|
2103
2096
|
return !1;
|
|
2104
2097
|
}
|
|
2105
2098
|
}
|
|
2106
|
-
async function
|
|
2107
|
-
t(18,
|
|
2099
|
+
async function Qe(s, { byId: U = !1, exact: G = !1 } = {}) {
|
|
2100
|
+
t(18, te = void 0), me == null || me.abort();
|
|
2108
2101
|
const x = new AbortController();
|
|
2109
|
-
t(19,
|
|
2102
|
+
t(19, me = x);
|
|
2110
2103
|
try {
|
|
2111
|
-
const
|
|
2112
|
-
if (p !== void 0 &&
|
|
2113
|
-
const
|
|
2114
|
-
|
|
2104
|
+
const N = qe(s), Z = new URLSearchParams();
|
|
2105
|
+
if (p !== void 0 && Z.set("language", Array.isArray(p) ? p.join(",") : p ?? ""), fe && Z.set("types", fe.join(",")), We && Z.set("excludeTypes", String(We)), u && Z.set("bbox", u.map((De) => De.toFixed(6)).join(",")), _ && Z.set("country", Array.isArray(_) ? _.join(",") : _), !U && !N) {
|
|
2106
|
+
const De = await xi(h, H, x);
|
|
2107
|
+
De && Z.set("proximity", De), (G || !$) && Z.set("autocomplete", "false"), Z.set("fuzzyMatch", String(R));
|
|
2115
2108
|
}
|
|
2116
|
-
|
|
2117
|
-
const
|
|
2118
|
-
if (
|
|
2119
|
-
U ? (t(14,
|
|
2109
|
+
q !== void 0 && (He || !N || (fe == null ? void 0 : fe.length) === 1) && 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
|
+
U ? (t(14, M = void 0), t(56, S = ze[0])) : t(14, M = ze);
|
|
2120
2113
|
return;
|
|
2121
2114
|
}
|
|
2122
|
-
|
|
2123
|
-
const
|
|
2124
|
-
if (!
|
|
2125
|
-
throw new Error(await
|
|
2126
|
-
const
|
|
2127
|
-
|
|
2115
|
+
st = ie;
|
|
2116
|
+
const xe = await fetch(ie, { signal: x.signal, ...Pe });
|
|
2117
|
+
if (!xe.ok)
|
|
2118
|
+
throw new Error(await xe.text());
|
|
2119
|
+
const Je = await xe.json();
|
|
2120
|
+
le("response", { url: ie, featureCollection: Je }), U ? (t(14, M = void 0), t(56, S = Je.features[0]), ze = [S]) : (t(14, M = Je.features.filter(E)), N && M.unshift({
|
|
2128
2121
|
type: "Feature",
|
|
2129
2122
|
properties: {},
|
|
2130
|
-
id: "reverse_" +
|
|
2131
|
-
text:
|
|
2132
|
-
place_name:
|
|
2123
|
+
id: "reverse_" + N.decimalLongitude + "_" + N.decimalLatitude,
|
|
2124
|
+
text: N.decimalLatitude + ", " + N.decimalLongitude,
|
|
2125
|
+
place_name: N.decimalLatitude + ", " + N.decimalLongitude,
|
|
2133
2126
|
place_type: ["reverse"],
|
|
2134
|
-
center: [
|
|
2127
|
+
center: [N.decimalLongitude, N.decimalLatitude],
|
|
2135
2128
|
bbox: [
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2129
|
+
N.decimalLongitude,
|
|
2130
|
+
N.decimalLatitude,
|
|
2131
|
+
N.decimalLongitude,
|
|
2132
|
+
N.decimalLatitude
|
|
2140
2133
|
],
|
|
2141
2134
|
geometry: {
|
|
2142
2135
|
type: "Point",
|
|
2143
|
-
coordinates: [
|
|
2136
|
+
coordinates: [N.decimalLongitude, N.decimalLatitude]
|
|
2144
2137
|
}
|
|
2145
|
-
}),
|
|
2146
|
-
} catch (
|
|
2147
|
-
if (
|
|
2138
|
+
}), ze = M, N && ee.focus());
|
|
2139
|
+
} catch (N) {
|
|
2140
|
+
if (N && typeof N == "object" && "name" in N && N.name === "AbortError")
|
|
2148
2141
|
return;
|
|
2149
|
-
throw
|
|
2142
|
+
throw N;
|
|
2150
2143
|
} finally {
|
|
2151
|
-
x ===
|
|
2144
|
+
x === me && t(19, me = void 0);
|
|
2152
2145
|
}
|
|
2153
2146
|
}
|
|
2154
|
-
function
|
|
2155
|
-
var
|
|
2147
|
+
function Pt() {
|
|
2148
|
+
var x;
|
|
2156
2149
|
if (!(P != null && P.length) || !C)
|
|
2157
2150
|
return;
|
|
2158
|
-
const s = [180, 90, -180, -90], U = !P.some((
|
|
2159
|
-
let
|
|
2160
|
-
for (const
|
|
2161
|
-
const
|
|
2162
|
-
if (
|
|
2163
|
-
for (const
|
|
2164
|
-
s[
|
|
2151
|
+
const s = [180, 90, -180, -90], U = !P.some((N) => !N.matching_text);
|
|
2152
|
+
let G;
|
|
2153
|
+
for (const N of P) {
|
|
2154
|
+
const Z = Se(N);
|
|
2155
|
+
if (G = G === void 0 ? Z : Z === void 0 ? G : Math.max(G, Z), U || !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]);
|
|
2165
2158
|
}
|
|
2166
|
-
|
|
2159
|
+
h && P.length > 0 && (S && s[0] === s[2] && s[1] === s[3] ? h.flyTo(S.center, Se(S)) : h.fitBounds(ht(s), 50, G));
|
|
2167
2160
|
}
|
|
2168
|
-
function
|
|
2169
|
-
var
|
|
2161
|
+
function Se(s) {
|
|
2162
|
+
var G;
|
|
2170
2163
|
if (!s.bbox || s.bbox[0] !== s.bbox[2] && s.bbox[1] !== s.bbox[3])
|
|
2171
2164
|
return;
|
|
2172
2165
|
const U = s.id.replace(/\..*/, "");
|
|
2173
|
-
return (Array.isArray((
|
|
2174
|
-
(
|
|
2175
|
-
const
|
|
2176
|
-
return
|
|
2166
|
+
return (Array.isArray((G = s.properties) == null ? void 0 : G.categories) ? s.properties.categories.reduce(
|
|
2167
|
+
(x, N) => {
|
|
2168
|
+
const Z = Re[U + "." + N];
|
|
2169
|
+
return x === void 0 ? Z : Z === void 0 ? x : Math.max(x, Z);
|
|
2177
2170
|
},
|
|
2178
2171
|
void 0
|
|
2179
|
-
) : void 0) ??
|
|
2172
|
+
) : void 0) ?? Re[U];
|
|
2180
2173
|
}
|
|
2181
|
-
function
|
|
2182
|
-
t(0, X = W === "always"), t(14,
|
|
2174
|
+
function Zt(s) {
|
|
2175
|
+
t(0, X = W === "always"), t(14, M = void 0), t(56, S = void 0), t(15, O = -1), ot(s[1].toFixed(6) + ", " + Vi(s[0], [-180, 180], !0).toFixed(6), !1, !0);
|
|
2183
2176
|
}
|
|
2184
|
-
function
|
|
2185
|
-
if (!
|
|
2177
|
+
function Gt(s) {
|
|
2178
|
+
if (!M)
|
|
2186
2179
|
return;
|
|
2187
2180
|
let U = s.key === "ArrowDown" ? 1 : s.key === "ArrowUp" ? -1 : 0;
|
|
2188
|
-
U && (
|
|
2181
|
+
U && (O === (ne ? 0 : -1) && U === -1 && t(15, O = M.length), t(15, O += U), O >= M.length && t(15, O = -1), O < 0 && ne && t(15, O = 0), s.preventDefault());
|
|
2189
2182
|
}
|
|
2190
|
-
function
|
|
2191
|
-
if (t(18,
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
()
|
|
2203
|
-
t(58, Y = void 0), Te(Z, { appendSpace: !0 }).catch(($) => t(18, ne = $));
|
|
2204
|
-
},
|
|
2205
|
-
_e
|
|
2206
|
-
));
|
|
2183
|
+
function Ke(s = !0, U = !1) {
|
|
2184
|
+
if (t(18, te = void 0), $ || U) {
|
|
2185
|
+
if (_e && clearTimeout(_e), j.length < g)
|
|
2186
|
+
return;
|
|
2187
|
+
const G = j;
|
|
2188
|
+
_e = window.setTimeout(
|
|
2189
|
+
() => {
|
|
2190
|
+
Qe(G).catch((x) => t(18, te = x));
|
|
2191
|
+
},
|
|
2192
|
+
s ? w : 0
|
|
2193
|
+
);
|
|
2194
|
+
} else
|
|
2195
|
+
t(14, M = void 0), t(18, te = void 0);
|
|
2207
2196
|
}
|
|
2208
|
-
function
|
|
2209
|
-
t(
|
|
2197
|
+
function Ve(s) {
|
|
2198
|
+
t(56, S = s), t(1, j = s.place_name), t(15, O = -1);
|
|
2210
2199
|
}
|
|
2211
|
-
const
|
|
2212
|
-
function
|
|
2213
|
-
|
|
2214
|
-
|
|
2200
|
+
const qt = () => ee.focus();
|
|
2201
|
+
function Qt(s) {
|
|
2202
|
+
et[s ? "unshift" : "push"](() => {
|
|
2203
|
+
ee = s, t(17, ee);
|
|
2215
2204
|
});
|
|
2216
2205
|
}
|
|
2217
|
-
function
|
|
2218
|
-
|
|
2206
|
+
function Kt() {
|
|
2207
|
+
j = this.value, t(1, j), t(13, Le), t(28, b);
|
|
2219
2208
|
}
|
|
2220
|
-
const
|
|
2221
|
-
t(1,
|
|
2222
|
-
},
|
|
2223
|
-
|
|
2224
|
-
},
|
|
2209
|
+
const Vt = () => t(13, Le = !0), xt = () => t(13, Le = !1), Jt = () => Ke(), Xt = () => {
|
|
2210
|
+
t(1, j = ""), ee.focus();
|
|
2211
|
+
}, Yt = () => t(0, X = !X), $t = () => t(18, te = void 0), ei = (s) => t(15, O = s), ti = (s) => Ve(s), ii = () => {
|
|
2212
|
+
ne || t(15, O = -1);
|
|
2213
|
+
}, ni = () => {
|
|
2225
2214
|
};
|
|
2226
2215
|
return i.$$set = (s) => {
|
|
2227
|
-
"class" in s && t(2, r = s.class), "apiKey" in s && t(26, d = s.apiKey), "bbox" in s && t(27,
|
|
2216
|
+
"class" in s && t(2, r = s.class), "apiKey" in s && t(26, d = s.apiKey), "bbox" in s && t(27, u = s.bbox), "clearButtonTitle" in s && t(3, f = s.clearButtonTitle), "clearOnBlur" in s && t(28, b = 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, R = s.fuzzyMatch), "language" in s && t(34, p = s.language), "limit" in s && t(35, q = s.limit), "mapController" in s && t(36, h = s.mapController), "minLength" in s && t(37, g = s.minLength), "noResultsMessage" in s && t(7, m = s.noResultsMessage), "placeholder" in s && t(8, T = 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), "pickedResultStyle" in s && t(39, L = s.pickedResultStyle), "showPlaceType" in s && t(10, B = s.showPlaceType), "showResultsWhileTyping" in s && t(40, $ = s.showResultsWhileTyping), "selectFirst" in s && t(11, ne = s.selectFirst), "flyToSelected" in s && t(41, Fe = s.flyToSelected), "markerOnSelected" in s && t(42, Ce = s.markerOnSelected), "types" in s && t(43, fe = s.types), "exhaustiveReverseGeocoding" in s && t(44, He = s.exhaustiveReverseGeocoding), "excludeTypes" in s && t(45, We = s.excludeTypes), "zoom" in s && t(46, Re = s.zoom), "apiUrl" in s && t(47, je = s.apiUrl), "fetchParameters" in s && t(48, Pe = s.fetchParameters), "iconsBaseUrl" in s && t(12, rt = s.iconsBaseUrl), "adjustUrlQuery" in s && t(49, Ze = s.adjustUrlQuery), "$$scope" in s && t(59, c = s.$$scope);
|
|
2228
2217
|
}, i.$$.update = () => {
|
|
2229
2218
|
if (i.$$.dirty[0] & /*enableReverse*/
|
|
2230
2219
|
32 && t(0, X = W === "always"), i.$$.dirty[0] & /*focused, clearOnBlur*/
|
|
2231
2220
|
268443648 && setTimeout(() => {
|
|
2232
|
-
t(16,
|
|
2221
|
+
t(16, Oe = Le), b && !Le && t(1, j = "");
|
|
2233
2222
|
}), i.$$.dirty[0] & /*searchValue, listFeatures*/
|
|
2234
2223
|
16386 | i.$$.dirty[1] & /*minLength*/
|
|
2235
|
-
64 &&
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
18432 &&
|
|
2239
|
-
2 && t(15,
|
|
2224
|
+
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] & /*pickedResultStyle, picked*/
|
|
2225
|
+
33554688 && L !== "marker-only" && 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*/
|
|
2226
|
+
100663330 && (h && S && S.id !== Ge && C && (!S.bbox || S.bbox[0] === S.bbox[2] && S.bbox[1] === S.bbox[3] ? h.flyTo(S.center, Se(S)) : h.fitBounds(ht(S.bbox), 50, Se(S)), t(14, M = void 0), t(55, P = void 0), t(15, O = -1)), t(57, Ge = S == null ? void 0 : S.id)), i.$$.dirty[0] & /*selectFirst, listFeatures*/
|
|
2227
|
+
18432 && ne && M != null && M.length && t(15, O = 0), i.$$.dirty[0] & /*searchValue*/
|
|
2228
|
+
2 && t(15, O = -1), i.$$.dirty[0] & /*listFeatures*/
|
|
2240
2229
|
16384 | i.$$.dirty[1] & /*markedFeatures*/
|
|
2241
|
-
|
|
2230
|
+
16777216 && P !== M && t(55, P = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
|
|
2242
2231
|
81921 | i.$$.dirty[1] & /*mapController, markedFeatures*/
|
|
2243
|
-
|
|
2232
|
+
16777248 && h && h.setEventHandler((s) => {
|
|
2244
2233
|
switch (s.type) {
|
|
2245
2234
|
case "mapClick":
|
|
2246
|
-
X &&
|
|
2235
|
+
X && Zt(s.coordinates);
|
|
2247
2236
|
break;
|
|
2248
2237
|
case "markerClick":
|
|
2249
2238
|
{
|
|
2250
|
-
const U =
|
|
2251
|
-
U &&
|
|
2239
|
+
const U = M == null ? void 0 : M.find((G) => G.id === s.id);
|
|
2240
|
+
U && Ve(U);
|
|
2252
2241
|
}
|
|
2253
2242
|
break;
|
|
2254
2243
|
case "markerMouseEnter":
|
|
2255
|
-
P && t(15,
|
|
2244
|
+
P && t(15, O = Oe ? (M == null ? void 0 : M.findIndex((U) => U.id === s.id)) ?? -1 : -1);
|
|
2256
2245
|
break;
|
|
2257
2246
|
case "markerMouseLeave":
|
|
2258
|
-
P && t(15,
|
|
2247
|
+
P && t(15, O = -1);
|
|
2259
2248
|
break;
|
|
2260
2249
|
}
|
|
2261
2250
|
}), i.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
|
|
2262
|
-
49152 && t(
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2251
|
+
49152 && t(58, n = M == null ? void 0 : M[O]), i.$$.dirty[1] & /*mapController, selected, flyTo, flyToSelected*/
|
|
2252
|
+
134218786 && h && n && C && Fe && h.flyTo(n.center, Se(n)), i.$$.dirty[1] & /*markerOnSelected, mapController*/
|
|
2253
|
+
2080 && (Ce || h == null || h.setMarkers(void 0, void 0)), i.$$.dirty[1] & /*mapController, markerOnSelected, markedFeatures, selected*/
|
|
2254
|
+
150997024 && h && Ce && !P && (h.setMarkers(n ? [n] : void 0, void 0), h.setSelectedMarker(n ? 0 : -1)), i.$$.dirty[1] & /*mapController, markedFeatures, picked*/
|
|
2255
|
+
50331680 && h && h.setMarkers(P, S), i.$$.dirty[0] & /*selectedItemIndex*/
|
|
2267
2256
|
32768 | i.$$.dirty[1] & /*markedFeatures, mapController*/
|
|
2268
|
-
|
|
2269
|
-
671088640 && n && (window.clearTimeout(Y), t(58, Y = void 0)), i.$$.dirty[0] & /*searchValue*/
|
|
2257
|
+
16777248 && P && h && h.setSelectedMarker(O), i.$$.dirty[0] & /*searchValue*/
|
|
2270
2258
|
2 | i.$$.dirty[1] & /*mapController*/
|
|
2271
|
-
32 &&
|
|
2272
|
-
const s =
|
|
2273
|
-
|
|
2259
|
+
32 && h) {
|
|
2260
|
+
const s = qe(j);
|
|
2261
|
+
h.setReverseMarker(s ? [s.decimalLongitude, s.decimalLatitude] : void 0);
|
|
2274
2262
|
}
|
|
2275
2263
|
i.$$.dirty[1] & /*selected*/
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
81920 &&
|
|
2279
|
-
optionsVisible:
|
|
2264
|
+
134217728 && le("select", { feature: n }), i.$$.dirty[1] & /*picked*/
|
|
2265
|
+
33554432 && le("pick", { feature: S }), i.$$.dirty[0] & /*focusedDelayed, listFeatures*/
|
|
2266
|
+
81920 && le("optionsvisibilitychange", {
|
|
2267
|
+
optionsVisible: Oe && !!M
|
|
2280
2268
|
}), i.$$.dirty[0] & /*listFeatures*/
|
|
2281
|
-
16384 &&
|
|
2282
|
-
|
|
2283
|
-
1 &&
|
|
2284
|
-
2 &&
|
|
2269
|
+
16384 && le("featureslisted", { features: M }), i.$$.dirty[1] & /*markedFeatures*/
|
|
2270
|
+
16777216 && le("featuresmarked", { features: P }), i.$$.dirty[0] & /*reverseActive*/
|
|
2271
|
+
1 && le("reversetoggle", { reverse: X }), i.$$.dirty[0] & /*searchValue*/
|
|
2272
|
+
2 && le("querychange", { query: j }), i.$$.dirty[0] & /*reverseActive*/
|
|
2285
2273
|
1 | i.$$.dirty[1] & /*mapController*/
|
|
2286
|
-
32 &&
|
|
2274
|
+
32 && h && h.indicateReverse(X);
|
|
2287
2275
|
}, [
|
|
2288
2276
|
X,
|
|
2289
|
-
|
|
2277
|
+
j,
|
|
2290
2278
|
r,
|
|
2291
2279
|
f,
|
|
2292
2280
|
v,
|
|
2293
2281
|
W,
|
|
2294
2282
|
y,
|
|
2295
2283
|
m,
|
|
2296
|
-
|
|
2284
|
+
T,
|
|
2285
|
+
Y,
|
|
2286
|
+
B,
|
|
2287
|
+
ne,
|
|
2288
|
+
rt,
|
|
2289
|
+
Le,
|
|
2290
|
+
M,
|
|
2291
|
+
O,
|
|
2292
|
+
Oe,
|
|
2297
2293
|
ee,
|
|
2298
|
-
|
|
2299
|
-
|
|
2294
|
+
te,
|
|
2295
|
+
me,
|
|
2296
|
+
jt,
|
|
2300
2297
|
at,
|
|
2301
|
-
we,
|
|
2302
|
-
N,
|
|
2303
|
-
D,
|
|
2304
|
-
Ie,
|
|
2305
|
-
ie,
|
|
2306
|
-
ne,
|
|
2307
|
-
ge,
|
|
2308
2298
|
Gt,
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
Je,
|
|
2312
|
-
Xe,
|
|
2299
|
+
Ke,
|
|
2300
|
+
Ve,
|
|
2313
2301
|
a,
|
|
2314
2302
|
d,
|
|
2315
|
-
|
|
2316
|
-
|
|
2303
|
+
u,
|
|
2304
|
+
b,
|
|
2317
2305
|
_,
|
|
2318
2306
|
w,
|
|
2319
2307
|
E,
|
|
2320
2308
|
C,
|
|
2321
2309
|
R,
|
|
2322
2310
|
p,
|
|
2323
|
-
|
|
2324
|
-
|
|
2311
|
+
q,
|
|
2312
|
+
h,
|
|
2325
2313
|
g,
|
|
2326
|
-
|
|
2314
|
+
H,
|
|
2327
2315
|
L,
|
|
2328
|
-
|
|
2329
|
-
|
|
2316
|
+
$,
|
|
2317
|
+
Fe,
|
|
2318
|
+
Ce,
|
|
2319
|
+
fe,
|
|
2320
|
+
He,
|
|
2321
|
+
We,
|
|
2322
|
+
Re,
|
|
2323
|
+
je,
|
|
2324
|
+
Pe,
|
|
2330
2325
|
Ze,
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
Oe,
|
|
2336
|
-
qe,
|
|
2337
|
-
Qe,
|
|
2338
|
-
Ke,
|
|
2326
|
+
At,
|
|
2327
|
+
Bt,
|
|
2328
|
+
ot,
|
|
2329
|
+
Ft,
|
|
2339
2330
|
Ht,
|
|
2340
|
-
jt,
|
|
2341
|
-
lt,
|
|
2342
|
-
Pt,
|
|
2343
|
-
Zt,
|
|
2344
2331
|
P,
|
|
2345
2332
|
S,
|
|
2346
|
-
|
|
2347
|
-
Ve,
|
|
2333
|
+
Ge,
|
|
2348
2334
|
n,
|
|
2349
|
-
|
|
2335
|
+
c,
|
|
2350
2336
|
o,
|
|
2337
|
+
qt,
|
|
2338
|
+
Qt,
|
|
2339
|
+
Kt,
|
|
2340
|
+
Vt,
|
|
2351
2341
|
xt,
|
|
2352
2342
|
Jt,
|
|
2353
2343
|
Xt,
|
|
@@ -2356,20 +2346,16 @@ function vn(i, e, t) {
|
|
|
2356
2346
|
ei,
|
|
2357
2347
|
ti,
|
|
2358
2348
|
ii,
|
|
2359
|
-
ni
|
|
2360
|
-
ri,
|
|
2361
|
-
oi,
|
|
2362
|
-
si,
|
|
2363
|
-
ai
|
|
2349
|
+
ni
|
|
2364
2350
|
];
|
|
2365
2351
|
}
|
|
2366
|
-
class
|
|
2352
|
+
class gn extends ve {
|
|
2367
2353
|
constructor(e) {
|
|
2368
|
-
super(),
|
|
2354
|
+
super(), he(
|
|
2369
2355
|
this,
|
|
2370
2356
|
e,
|
|
2371
|
-
|
|
2372
|
-
|
|
2357
|
+
mn,
|
|
2358
|
+
fn,
|
|
2373
2359
|
be,
|
|
2374
2360
|
{
|
|
2375
2361
|
ZOOM_DEFAULTS: 25,
|
|
@@ -2399,23 +2385,22 @@ class Ln extends Le {
|
|
|
2399
2385
|
pickedResultStyle: 39,
|
|
2400
2386
|
showPlaceType: 10,
|
|
2401
2387
|
showResultsWhileTyping: 40,
|
|
2402
|
-
autocompleteTimeout: 41,
|
|
2403
2388
|
selectFirst: 11,
|
|
2404
|
-
flyToSelected:
|
|
2405
|
-
markerOnSelected:
|
|
2406
|
-
types:
|
|
2407
|
-
exhaustiveReverseGeocoding:
|
|
2408
|
-
excludeTypes:
|
|
2409
|
-
zoom:
|
|
2410
|
-
apiUrl:
|
|
2411
|
-
fetchParameters:
|
|
2389
|
+
flyToSelected: 41,
|
|
2390
|
+
markerOnSelected: 42,
|
|
2391
|
+
types: 43,
|
|
2392
|
+
exhaustiveReverseGeocoding: 44,
|
|
2393
|
+
excludeTypes: 45,
|
|
2394
|
+
zoom: 46,
|
|
2395
|
+
apiUrl: 47,
|
|
2396
|
+
fetchParameters: 48,
|
|
2412
2397
|
iconsBaseUrl: 12,
|
|
2413
|
-
adjustUrlQuery:
|
|
2414
|
-
focus:
|
|
2415
|
-
blur:
|
|
2416
|
-
setQuery:
|
|
2417
|
-
clearList:
|
|
2418
|
-
clearMap:
|
|
2398
|
+
adjustUrlQuery: 49,
|
|
2399
|
+
focus: 50,
|
|
2400
|
+
blur: 51,
|
|
2401
|
+
setQuery: 52,
|
|
2402
|
+
clearList: 53,
|
|
2403
|
+
clearMap: 54
|
|
2419
2404
|
},
|
|
2420
2405
|
null,
|
|
2421
2406
|
[-1, -1, -1]
|
|
@@ -2425,22 +2410,22 @@ class Ln extends Le {
|
|
|
2425
2410
|
return this.$$.ctx[25];
|
|
2426
2411
|
}
|
|
2427
2412
|
get focus() {
|
|
2428
|
-
return this.$$.ctx[
|
|
2413
|
+
return this.$$.ctx[50];
|
|
2429
2414
|
}
|
|
2430
2415
|
get blur() {
|
|
2431
|
-
return this.$$.ctx[
|
|
2416
|
+
return this.$$.ctx[51];
|
|
2432
2417
|
}
|
|
2433
2418
|
get setQuery() {
|
|
2434
|
-
return this.$$.ctx[
|
|
2419
|
+
return this.$$.ctx[52];
|
|
2435
2420
|
}
|
|
2436
2421
|
get clearList() {
|
|
2437
|
-
return this.$$.ctx[
|
|
2422
|
+
return this.$$.ctx[53];
|
|
2438
2423
|
}
|
|
2439
2424
|
get clearMap() {
|
|
2440
|
-
return this.$$.ctx[
|
|
2425
|
+
return this.$$.ctx[54];
|
|
2441
2426
|
}
|
|
2442
2427
|
}
|
|
2443
|
-
const
|
|
2428
|
+
const Tt = [
|
|
2444
2429
|
"featuresListed",
|
|
2445
2430
|
"featuresMarked",
|
|
2446
2431
|
"optionsVisibilityChange",
|
|
@@ -2449,7 +2434,7 @@ const Rt = [
|
|
|
2449
2434
|
"response",
|
|
2450
2435
|
"reverseToggle",
|
|
2451
2436
|
"select"
|
|
2452
|
-
],
|
|
2437
|
+
], bn = [
|
|
2453
2438
|
"adjustUrlQuery",
|
|
2454
2439
|
"apiKey",
|
|
2455
2440
|
"bbox",
|
|
@@ -2478,39 +2463,39 @@ const Rt = [
|
|
|
2478
2463
|
"types",
|
|
2479
2464
|
"zoom"
|
|
2480
2465
|
];
|
|
2481
|
-
function
|
|
2466
|
+
function Ct(i) {
|
|
2482
2467
|
return "on" + i[0].toUpperCase() + i.slice(1);
|
|
2483
2468
|
}
|
|
2484
|
-
const
|
|
2485
|
-
const n =
|
|
2486
|
-
for (const a of
|
|
2487
|
-
delete
|
|
2488
|
-
|
|
2469
|
+
const Ln = si(function(e, t) {
|
|
2470
|
+
const n = lt(), o = lt(), c = { ...e };
|
|
2471
|
+
for (const a of Tt)
|
|
2472
|
+
delete c[Ct(a)];
|
|
2473
|
+
Ye(() => {
|
|
2489
2474
|
if (!n.current)
|
|
2490
2475
|
throw new Error();
|
|
2491
|
-
const a = new
|
|
2476
|
+
const a = new gn({
|
|
2492
2477
|
target: n.current,
|
|
2493
|
-
props:
|
|
2478
|
+
props: c
|
|
2494
2479
|
});
|
|
2495
2480
|
return o.current = a, () => a.$destroy();
|
|
2496
2481
|
}, []);
|
|
2497
|
-
for (const a of
|
|
2498
|
-
|
|
2482
|
+
for (const a of bn)
|
|
2483
|
+
Ye(() => {
|
|
2499
2484
|
o.current && e[a] !== void 0 && o.current.$set({ [a]: e[a] });
|
|
2500
2485
|
}, [e[a]]);
|
|
2501
|
-
for (const a of
|
|
2502
|
-
const r = e[
|
|
2503
|
-
|
|
2486
|
+
for (const a of Tt) {
|
|
2487
|
+
const r = e[Ct(a)];
|
|
2488
|
+
Ye(
|
|
2504
2489
|
() => {
|
|
2505
2490
|
var d;
|
|
2506
|
-
return r && ((d = o.current) == null ? void 0 : d.$on(a, (
|
|
2507
|
-
r(
|
|
2491
|
+
return r && ((d = o.current) == null ? void 0 : d.$on(a, (u) => {
|
|
2492
|
+
r(u.detail);
|
|
2508
2493
|
}));
|
|
2509
2494
|
},
|
|
2510
2495
|
[r]
|
|
2511
2496
|
);
|
|
2512
2497
|
}
|
|
2513
|
-
return
|
|
2498
|
+
return ai(t, () => ({
|
|
2514
2499
|
setQuery: (a, r = !0) => {
|
|
2515
2500
|
var d;
|
|
2516
2501
|
return (d = o.current) == null ? void 0 : d.setQuery(a, r);
|
|
@@ -2531,9 +2516,9 @@ const En = ci(function(e, t) {
|
|
|
2531
2516
|
var a;
|
|
2532
2517
|
return (a = o.current) == null ? void 0 : a.blur();
|
|
2533
2518
|
}
|
|
2534
|
-
})),
|
|
2519
|
+
})), li("div", { ref: n });
|
|
2535
2520
|
});
|
|
2536
2521
|
export {
|
|
2537
|
-
|
|
2522
|
+
Ln as GeocodingControl
|
|
2538
2523
|
};
|
|
2539
2524
|
//# sourceMappingURL=react.js.map
|