@maptiler/geocoding-control 2.1.0-with-autocomplete-timeout → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/MapLibreBasedGeocodingControl.d.ts +35 -69
- package/leaflet-controller.js +1942 -1523
- package/leaflet-controller.js.map +1 -1
- package/leaflet-controller.umd.js +1 -22
- package/leaflet-controller.umd.js.map +1 -1
- package/leaflet.js +2798 -2385
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +1 -22
- package/leaflet.umd.js.map +1 -1
- package/maplibregl-controller.js +1918 -1498
- package/maplibregl-controller.js.map +1 -1
- package/maplibregl-controller.umd.js +1 -22
- package/maplibregl-controller.umd.js.map +1 -1
- package/maplibregl.d.ts +34 -68
- package/maplibregl.js +2892 -2478
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +1 -22
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.d.ts +34 -68
- package/maptilersdk.js +2896 -2481
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +1 -22
- package/maptilersdk.umd.js.map +1 -1
- package/openlayers-controller.js +1686 -1264
- package/openlayers-controller.js.map +1 -1
- package/openlayers-controller.umd.js +1 -22
- package/openlayers-controller.umd.js.map +1 -1
- package/openlayers.js +2778 -2365
- package/openlayers.js.map +1 -1
- package/openlayers.umd.js +1 -22
- package/openlayers.umd.js.map +1 -1
- package/package.json +23 -23
- package/react.js +753 -756
- package/react.js.map +1 -1
- package/react.umd.js +1 -1
- package/react.umd.js.map +1 -1
- package/svelte/GeocodingControl.svelte +71 -58
- package/svelte/GeocodingControl.svelte.d.ts +5 -3
- package/svelte/MapLibreBasedGeocodingControl.d.ts +35 -69
- package/svelte/info.json +1 -0
- package/svelte/maplibregl.d.ts +34 -68
- package/svelte/maptilersdk.d.ts +34 -68
- package/svelte/maptilersdk.js +2 -0
- package/svelte/react.js +3 -0
- package/svelte/types.d.ts +175 -128
- package/types.d.ts +175 -128
- package/vanilla.js +847 -853
- 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,57 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { forwardRef as
|
|
1
|
+
var Ni = Object.defineProperty;
|
|
2
|
+
var ki = (i, e, t) => e in i ? Ni(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
|
+
var dt = (i, e, t) => ki(i, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { forwardRef as Mi, useRef as Ct, useEffect as ft, useImperativeHandle as Ci, createElement as Wi } from "react";
|
|
5
5
|
function P() {
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function zi(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 Yt(i) {
|
|
15
15
|
return i();
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function Wt() {
|
|
18
18
|
return /* @__PURE__ */ Object.create(null);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
i.forEach(
|
|
20
|
+
function de(i) {
|
|
21
|
+
i.forEach(Yt);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Xt(i) {
|
|
24
24
|
return typeof i == "function";
|
|
25
25
|
}
|
|
26
26
|
function _e(i, e) {
|
|
27
27
|
return i != i ? e == e : i !== e || i && typeof i == "object" || typeof i == "function";
|
|
28
28
|
}
|
|
29
|
-
let
|
|
29
|
+
let Ke;
|
|
30
30
|
function X(i, e) {
|
|
31
|
-
return i === e ? !0 : (
|
|
31
|
+
return i === e ? !0 : (Ke || (Ke = document.createElement("a")), Ke.href = e, i === Ke.href);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Oi(i) {
|
|
34
34
|
return Object.keys(i).length === 0;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function Ri(i, e, t, n) {
|
|
37
37
|
if (i) {
|
|
38
|
-
const r =
|
|
38
|
+
const r = Jt(i, e, t, n);
|
|
39
39
|
return i[0](r);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
return i[1] && n ?
|
|
44
|
-
}
|
|
45
|
-
function
|
|
46
|
-
|
|
47
|
-
const r = i[2](n(t));
|
|
48
|
-
if (e.dirty === void 0)
|
|
49
|
-
return r;
|
|
50
|
-
if (typeof r == "object") {
|
|
51
|
-
const u = [], l = Math.max(e.dirty.length, r.length);
|
|
52
|
-
for (let o = 0; o < l; o += 1)
|
|
53
|
-
u[o] = e.dirty[o] | r[o];
|
|
54
|
-
return u;
|
|
55
|
-
}
|
|
56
|
-
return e.dirty | r;
|
|
57
|
-
}
|
|
58
|
-
return e.dirty;
|
|
42
|
+
function Jt(i, e, t, n) {
|
|
43
|
+
return i[1] && n ? zi(t.ctx.slice(), i[1](n(e))) : t.ctx;
|
|
44
|
+
}
|
|
45
|
+
function Ui(i, e, t, n) {
|
|
46
|
+
return i[2], e.dirty;
|
|
59
47
|
}
|
|
60
|
-
function
|
|
48
|
+
function Di(i, e, t, n, r, u) {
|
|
61
49
|
if (r) {
|
|
62
|
-
const l =
|
|
50
|
+
const l = Jt(e, t, n, u);
|
|
63
51
|
i.p(l, r);
|
|
64
52
|
}
|
|
65
53
|
}
|
|
66
|
-
function
|
|
54
|
+
function Ii(i) {
|
|
67
55
|
if (i.ctx.length > 32) {
|
|
68
56
|
const e = [], t = i.ctx.length / 32;
|
|
69
57
|
for (let n = 0; n < t; n++)
|
|
@@ -72,37 +60,37 @@ function Ci(i) {
|
|
|
72
60
|
}
|
|
73
61
|
return -1;
|
|
74
62
|
}
|
|
75
|
-
function
|
|
63
|
+
function Je(i) {
|
|
76
64
|
return i ?? "";
|
|
77
65
|
}
|
|
78
|
-
function
|
|
66
|
+
function M(i, e) {
|
|
79
67
|
i.appendChild(e);
|
|
80
68
|
}
|
|
81
|
-
function
|
|
69
|
+
function B(i, e, t) {
|
|
82
70
|
i.insertBefore(e, t || null);
|
|
83
71
|
}
|
|
84
|
-
function
|
|
72
|
+
function I(i) {
|
|
85
73
|
i.parentNode && i.parentNode.removeChild(i);
|
|
86
74
|
}
|
|
87
75
|
function U(i) {
|
|
88
76
|
return document.createElement(i);
|
|
89
77
|
}
|
|
90
|
-
function
|
|
78
|
+
function le(i) {
|
|
91
79
|
return document.createElementNS("http://www.w3.org/2000/svg", i);
|
|
92
80
|
}
|
|
93
|
-
function
|
|
81
|
+
function ge(i) {
|
|
94
82
|
return document.createTextNode(i);
|
|
95
83
|
}
|
|
96
|
-
function
|
|
97
|
-
return
|
|
84
|
+
function $() {
|
|
85
|
+
return ge(" ");
|
|
98
86
|
}
|
|
99
|
-
function
|
|
100
|
-
return
|
|
87
|
+
function Ai() {
|
|
88
|
+
return ge("");
|
|
101
89
|
}
|
|
102
|
-
function
|
|
90
|
+
function q(i, e, t, n) {
|
|
103
91
|
return i.addEventListener(e, t, n), () => i.removeEventListener(e, t, n);
|
|
104
92
|
}
|
|
105
|
-
function
|
|
93
|
+
function Pi(i) {
|
|
106
94
|
return function(e) {
|
|
107
95
|
return e.preventDefault(), i.call(this, e);
|
|
108
96
|
};
|
|
@@ -110,39 +98,39 @@ function zi(i) {
|
|
|
110
98
|
function a(i, e, t) {
|
|
111
99
|
t == null ? i.removeAttribute(e) : i.getAttribute(e) !== t && i.setAttribute(e, t);
|
|
112
100
|
}
|
|
113
|
-
function
|
|
101
|
+
function Bi(i) {
|
|
114
102
|
return Array.from(i.childNodes);
|
|
115
103
|
}
|
|
116
|
-
function
|
|
104
|
+
function Ie(i, e) {
|
|
117
105
|
e = "" + e, i.data !== e && (i.data = /** @type {string} */
|
|
118
106
|
e);
|
|
119
107
|
}
|
|
120
|
-
function
|
|
108
|
+
function zt(i, e) {
|
|
121
109
|
i.value = e ?? "";
|
|
122
110
|
}
|
|
123
|
-
function
|
|
111
|
+
function ke(i, e, t) {
|
|
124
112
|
i.classList.toggle(e, !!t);
|
|
125
113
|
}
|
|
126
|
-
function
|
|
114
|
+
function Fi(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
|
|
127
115
|
return new CustomEvent(i, { detail: e, bubbles: t, cancelable: n });
|
|
128
116
|
}
|
|
129
|
-
let
|
|
130
|
-
function
|
|
131
|
-
|
|
117
|
+
let Ae;
|
|
118
|
+
function De(i) {
|
|
119
|
+
Ae = i;
|
|
132
120
|
}
|
|
133
|
-
function
|
|
134
|
-
if (!
|
|
135
|
-
return
|
|
121
|
+
function xt() {
|
|
122
|
+
if (!Ae) throw new Error("Function called outside component initialization");
|
|
123
|
+
return Ae;
|
|
136
124
|
}
|
|
137
|
-
function
|
|
138
|
-
|
|
125
|
+
function Gi(i) {
|
|
126
|
+
xt().$$.on_destroy.push(i);
|
|
139
127
|
}
|
|
140
|
-
function
|
|
141
|
-
const i =
|
|
128
|
+
function $t() {
|
|
129
|
+
const i = xt();
|
|
142
130
|
return (e, t, { cancelable: n = !1 } = {}) => {
|
|
143
131
|
const r = i.$$.callbacks[e];
|
|
144
132
|
if (r) {
|
|
145
|
-
const u =
|
|
133
|
+
const u = Fi(
|
|
146
134
|
/** @type {string} */
|
|
147
135
|
e,
|
|
148
136
|
t,
|
|
@@ -155,60 +143,60 @@ function Qt() {
|
|
|
155
143
|
return !0;
|
|
156
144
|
};
|
|
157
145
|
}
|
|
158
|
-
function
|
|
146
|
+
function ji(i, e) {
|
|
159
147
|
const t = i.$$.callbacks[e.type];
|
|
160
148
|
t && t.slice().forEach((n) => n.call(this, e));
|
|
161
149
|
}
|
|
162
|
-
const
|
|
163
|
-
let
|
|
164
|
-
const
|
|
165
|
-
let
|
|
166
|
-
function
|
|
167
|
-
|
|
150
|
+
const Ne = [], gt = [];
|
|
151
|
+
let Me = [];
|
|
152
|
+
const Ot = [], Hi = /* @__PURE__ */ Promise.resolve();
|
|
153
|
+
let ht = !1;
|
|
154
|
+
function Zi() {
|
|
155
|
+
ht || (ht = !0, Hi.then(ei));
|
|
168
156
|
}
|
|
169
|
-
function
|
|
170
|
-
|
|
157
|
+
function bt(i) {
|
|
158
|
+
Me.push(i);
|
|
171
159
|
}
|
|
172
|
-
const
|
|
173
|
-
let
|
|
174
|
-
function
|
|
175
|
-
if (
|
|
160
|
+
const mt = /* @__PURE__ */ new Set();
|
|
161
|
+
let Te = 0;
|
|
162
|
+
function ei() {
|
|
163
|
+
if (Te !== 0)
|
|
176
164
|
return;
|
|
177
|
-
const i =
|
|
165
|
+
const i = Ae;
|
|
178
166
|
do {
|
|
179
167
|
try {
|
|
180
|
-
for (;
|
|
181
|
-
const e =
|
|
182
|
-
|
|
168
|
+
for (; Te < Ne.length; ) {
|
|
169
|
+
const e = Ne[Te];
|
|
170
|
+
Te++, De(e), qi(e.$$);
|
|
183
171
|
}
|
|
184
172
|
} catch (e) {
|
|
185
|
-
throw
|
|
173
|
+
throw Ne.length = 0, Te = 0, e;
|
|
186
174
|
}
|
|
187
|
-
for (
|
|
188
|
-
for (let e = 0; e <
|
|
189
|
-
const t =
|
|
190
|
-
|
|
175
|
+
for (De(null), Ne.length = 0, Te = 0; gt.length; ) gt.pop()();
|
|
176
|
+
for (let e = 0; e < Me.length; e += 1) {
|
|
177
|
+
const t = Me[e];
|
|
178
|
+
mt.has(t) || (mt.add(t), t());
|
|
191
179
|
}
|
|
192
|
-
|
|
193
|
-
} while (
|
|
194
|
-
for (;
|
|
195
|
-
|
|
196
|
-
|
|
180
|
+
Me.length = 0;
|
|
181
|
+
} while (Ne.length);
|
|
182
|
+
for (; Ot.length; )
|
|
183
|
+
Ot.pop()();
|
|
184
|
+
ht = !1, mt.clear(), De(i);
|
|
197
185
|
}
|
|
198
|
-
function
|
|
186
|
+
function qi(i) {
|
|
199
187
|
if (i.fragment !== null) {
|
|
200
|
-
i.update(),
|
|
188
|
+
i.update(), de(i.before_update);
|
|
201
189
|
const e = i.dirty;
|
|
202
|
-
i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(
|
|
190
|
+
i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(bt);
|
|
203
191
|
}
|
|
204
192
|
}
|
|
205
|
-
function
|
|
193
|
+
function Qi(i) {
|
|
206
194
|
const e = [], t = [];
|
|
207
|
-
|
|
195
|
+
Me.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), Me = e;
|
|
208
196
|
}
|
|
209
|
-
const
|
|
197
|
+
const Ve = /* @__PURE__ */ new Set();
|
|
210
198
|
let Le;
|
|
211
|
-
function
|
|
199
|
+
function Ye() {
|
|
212
200
|
Le = {
|
|
213
201
|
r: 0,
|
|
214
202
|
c: [],
|
|
@@ -216,73 +204,73 @@ function Qe() {
|
|
|
216
204
|
// parent group
|
|
217
205
|
};
|
|
218
206
|
}
|
|
219
|
-
function
|
|
220
|
-
Le.r ||
|
|
207
|
+
function Xe() {
|
|
208
|
+
Le.r || de(Le.c), Le = Le.p;
|
|
221
209
|
}
|
|
222
|
-
function
|
|
223
|
-
i && i.i && (
|
|
210
|
+
function j(i, e) {
|
|
211
|
+
i && i.i && (Ve.delete(i), i.i(e));
|
|
224
212
|
}
|
|
225
|
-
function
|
|
213
|
+
function Q(i, e, t, n) {
|
|
226
214
|
if (i && i.o) {
|
|
227
|
-
if (
|
|
228
|
-
|
|
229
|
-
|
|
215
|
+
if (Ve.has(i)) return;
|
|
216
|
+
Ve.add(i), Le.c.push(() => {
|
|
217
|
+
Ve.delete(i), n && (t && i.d(1), n());
|
|
230
218
|
}), i.o(e);
|
|
231
219
|
} else n && n();
|
|
232
220
|
}
|
|
233
|
-
function
|
|
221
|
+
function Rt(i) {
|
|
234
222
|
return (i == null ? void 0 : i.length) !== void 0 ? i : Array.from(i);
|
|
235
223
|
}
|
|
236
|
-
function
|
|
237
|
-
|
|
224
|
+
function Ki(i, e) {
|
|
225
|
+
Q(i, 1, 1, () => {
|
|
238
226
|
e.delete(i.key);
|
|
239
227
|
});
|
|
240
228
|
}
|
|
241
|
-
function
|
|
229
|
+
function Vi(i, e, t, n, r, u, l, o, d, c, f, g) {
|
|
242
230
|
let b = i.length, _ = u.length, w = b;
|
|
243
|
-
const
|
|
244
|
-
for (; w--; )
|
|
245
|
-
const
|
|
231
|
+
const D = {};
|
|
232
|
+
for (; w--; ) D[i[w].key] = w;
|
|
233
|
+
const E = [], S = /* @__PURE__ */ new Map(), z = /* @__PURE__ */ new Map(), W = [];
|
|
246
234
|
for (w = _; w--; ) {
|
|
247
|
-
const
|
|
248
|
-
let
|
|
249
|
-
|
|
235
|
+
const v = g(r, u, w), y = t(v);
|
|
236
|
+
let N = l.get(y);
|
|
237
|
+
N ? W.push(() => N.p(v, e)) : (N = c(y, v), N.c()), S.set(y, E[w] = N), y in D && z.set(y, Math.abs(w - D[y]));
|
|
250
238
|
}
|
|
251
|
-
const
|
|
252
|
-
function
|
|
253
|
-
|
|
239
|
+
const Z = /* @__PURE__ */ new Set(), V = /* @__PURE__ */ new Set();
|
|
240
|
+
function C(v) {
|
|
241
|
+
j(v, 1), v.m(o, f), l.set(v.key, v), f = v.first, _--;
|
|
254
242
|
}
|
|
255
243
|
for (; b && _; ) {
|
|
256
|
-
const
|
|
257
|
-
|
|
244
|
+
const v = E[_ - 1], y = i[b - 1], N = v.key, k = y.key;
|
|
245
|
+
v === y ? (f = v.first, b--, _--) : S.has(k) ? !l.has(N) || Z.has(N) ? C(v) : V.has(k) ? b-- : z.get(N) > z.get(k) ? (V.add(N), C(v)) : (Z.add(k), b--) : (d(y, l), b--);
|
|
258
246
|
}
|
|
259
247
|
for (; b--; ) {
|
|
260
|
-
const
|
|
261
|
-
|
|
248
|
+
const v = i[b];
|
|
249
|
+
S.has(v.key) || d(v, l);
|
|
262
250
|
}
|
|
263
|
-
for (; _; )
|
|
264
|
-
return
|
|
251
|
+
for (; _; ) C(E[_ - 1]);
|
|
252
|
+
return de(W), E;
|
|
265
253
|
}
|
|
266
|
-
function
|
|
254
|
+
function he(i) {
|
|
267
255
|
i && i.c();
|
|
268
256
|
}
|
|
269
|
-
function
|
|
257
|
+
function ue(i, e, t) {
|
|
270
258
|
const { fragment: n, after_update: r } = i.$$;
|
|
271
|
-
n && n.m(e, t),
|
|
272
|
-
const u = i.$$.on_mount.map(
|
|
273
|
-
i.$$.on_destroy ? i.$$.on_destroy.push(...u) :
|
|
274
|
-
}), r.forEach(
|
|
259
|
+
n && n.m(e, t), bt(() => {
|
|
260
|
+
const u = i.$$.on_mount.map(Yt).filter(Xt);
|
|
261
|
+
i.$$.on_destroy ? i.$$.on_destroy.push(...u) : de(u), i.$$.on_mount = [];
|
|
262
|
+
}), r.forEach(bt);
|
|
275
263
|
}
|
|
276
|
-
function
|
|
264
|
+
function ce(i, e) {
|
|
277
265
|
const t = i.$$;
|
|
278
|
-
t.fragment !== null && (
|
|
266
|
+
t.fragment !== null && (Qi(t.after_update), de(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
|
|
279
267
|
}
|
|
280
|
-
function
|
|
281
|
-
i.$$.dirty[0] === -1 && (
|
|
268
|
+
function Yi(i, e) {
|
|
269
|
+
i.$$.dirty[0] === -1 && (Ne.push(i), Zi(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
282
270
|
}
|
|
283
271
|
function ye(i, e, t, n, r, u, l = null, o = [-1]) {
|
|
284
|
-
const d =
|
|
285
|
-
|
|
272
|
+
const d = Ae;
|
|
273
|
+
De(i);
|
|
286
274
|
const c = i.$$ = {
|
|
287
275
|
fragment: null,
|
|
288
276
|
ctx: [],
|
|
@@ -290,7 +278,7 @@ function ye(i, e, t, n, r, u, l = null, o = [-1]) {
|
|
|
290
278
|
props: u,
|
|
291
279
|
update: P,
|
|
292
280
|
not_equal: r,
|
|
293
|
-
bound:
|
|
281
|
+
bound: Wt(),
|
|
294
282
|
// lifecycle
|
|
295
283
|
on_mount: [],
|
|
296
284
|
on_destroy: [],
|
|
@@ -299,7 +287,7 @@ function ye(i, e, t, n, r, u, l = null, o = [-1]) {
|
|
|
299
287
|
after_update: [],
|
|
300
288
|
context: new Map(e.context || (d ? d.$$.context : [])),
|
|
301
289
|
// everything else
|
|
302
|
-
callbacks:
|
|
290
|
+
callbacks: Wt(),
|
|
303
291
|
dirty: o,
|
|
304
292
|
skip_bound: !1,
|
|
305
293
|
root: e.target || d.$$.root
|
|
@@ -308,16 +296,16 @@ function ye(i, e, t, n, r, u, l = null, o = [-1]) {
|
|
|
308
296
|
let f = !1;
|
|
309
297
|
if (c.ctx = t ? t(i, e.props || {}, (g, b, ..._) => {
|
|
310
298
|
const w = _.length ? _[0] : b;
|
|
311
|
-
return c.ctx && r(c.ctx[g], c.ctx[g] = w) && (!c.skip_bound && c.bound[g] && c.bound[g](w), f &&
|
|
312
|
-
}) : [], c.update(), f = !0,
|
|
299
|
+
return c.ctx && r(c.ctx[g], c.ctx[g] = w) && (!c.skip_bound && c.bound[g] && c.bound[g](w), f && Yi(i, g)), b;
|
|
300
|
+
}) : [], c.update(), f = !0, de(c.before_update), c.fragment = n ? n(c.ctx) : !1, e.target) {
|
|
313
301
|
if (e.hydrate) {
|
|
314
|
-
const g =
|
|
315
|
-
c.fragment && c.fragment.l(g), g.forEach(
|
|
302
|
+
const g = Bi(e.target);
|
|
303
|
+
c.fragment && c.fragment.l(g), g.forEach(I);
|
|
316
304
|
} else
|
|
317
305
|
c.fragment && c.fragment.c();
|
|
318
|
-
e.intro &&
|
|
306
|
+
e.intro && j(i.$$.fragment), ue(i, e.target, e.anchor), ei();
|
|
319
307
|
}
|
|
320
|
-
|
|
308
|
+
De(d);
|
|
321
309
|
}
|
|
322
310
|
class we {
|
|
323
311
|
constructor() {
|
|
@@ -328,7 +316,7 @@ class we {
|
|
|
328
316
|
*
|
|
329
317
|
* @type {any}
|
|
330
318
|
*/
|
|
331
|
-
|
|
319
|
+
dt(this, "$$");
|
|
332
320
|
/**
|
|
333
321
|
* ### PRIVATE API
|
|
334
322
|
*
|
|
@@ -336,11 +324,11 @@ class we {
|
|
|
336
324
|
*
|
|
337
325
|
* @type {any}
|
|
338
326
|
*/
|
|
339
|
-
|
|
327
|
+
dt(this, "$$set");
|
|
340
328
|
}
|
|
341
329
|
/** @returns {void} */
|
|
342
330
|
$destroy() {
|
|
343
|
-
|
|
331
|
+
ce(this, 1), this.$destroy = P;
|
|
344
332
|
}
|
|
345
333
|
/**
|
|
346
334
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -349,7 +337,7 @@ class we {
|
|
|
349
337
|
* @returns {() => void}
|
|
350
338
|
*/
|
|
351
339
|
$on(e, t) {
|
|
352
|
-
if (!
|
|
340
|
+
if (!Xt(t))
|
|
353
341
|
return P;
|
|
354
342
|
const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
355
343
|
return n.push(t), () => {
|
|
@@ -362,56 +350,56 @@ class we {
|
|
|
362
350
|
* @returns {void}
|
|
363
351
|
*/
|
|
364
352
|
$set(e) {
|
|
365
|
-
this.$$set && !
|
|
353
|
+
this.$$set && !Oi(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
366
354
|
}
|
|
367
355
|
}
|
|
368
|
-
const
|
|
369
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
370
|
-
function
|
|
356
|
+
const Xi = "4";
|
|
357
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Xi);
|
|
358
|
+
function Ji(i) {
|
|
371
359
|
let e, t;
|
|
372
360
|
return {
|
|
373
361
|
c() {
|
|
374
|
-
e =
|
|
362
|
+
e = le("svg"), t = le("path"), a(t, "d", "M13.12.706a.982.982 0 0 0-1.391 0L6.907 5.517 2.087.696a.982.982 0 1 0-1.391 1.39l4.821 4.821L.696 11.73a.982.982 0 1 0 1.39 1.39l4.821-4.821 4.822 4.821a.982.982 0 1 0 1.39-1.39L8.298 6.908l4.821-4.822a.988.988 0 0 0 0-1.38Z"), a(e, "viewBox", "0 0 14 14"), a(e, "width", "13"), a(e, "height", "13"), a(e, "class", "svelte-en2qvf");
|
|
375
363
|
},
|
|
376
364
|
m(n, r) {
|
|
377
|
-
|
|
365
|
+
B(n, e, r), M(e, t);
|
|
378
366
|
},
|
|
379
367
|
p: P,
|
|
380
368
|
i: P,
|
|
381
369
|
o: P,
|
|
382
370
|
d(n) {
|
|
383
|
-
n &&
|
|
371
|
+
n && I(e);
|
|
384
372
|
}
|
|
385
373
|
};
|
|
386
374
|
}
|
|
387
|
-
class
|
|
375
|
+
class ti extends we {
|
|
388
376
|
constructor(e) {
|
|
389
|
-
super(), ye(this, e, null,
|
|
377
|
+
super(), ye(this, e, null, Ji, _e, {});
|
|
390
378
|
}
|
|
391
379
|
}
|
|
392
|
-
function
|
|
380
|
+
function xi(i) {
|
|
393
381
|
let e, t;
|
|
394
382
|
return {
|
|
395
383
|
c() {
|
|
396
|
-
e =
|
|
384
|
+
e = le("svg"), t = le("path"), a(t, "d", "M15 0C6.705 0 0 6.705 0 15C0 23.295 6.705 30 15 30C23.295 30 30 23.295 30 15C30 6.705 23.295 0 15 0ZM22.5 20.385L20.385 22.5L15 17.115L9.615 22.5L7.5 20.385L12.885 15L7.5 9.615L9.615 7.5L15 12.885L20.385 7.5L22.5 9.615L17.115 15L22.5 20.385Z"), a(e, "viewBox", "0 0 30 30"), a(e, "fill", "none"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "class", "svelte-d2loi5");
|
|
397
385
|
},
|
|
398
386
|
m(n, r) {
|
|
399
|
-
|
|
387
|
+
B(n, e, r), M(e, t);
|
|
400
388
|
},
|
|
401
389
|
p: P,
|
|
402
390
|
i: P,
|
|
403
391
|
o: P,
|
|
404
392
|
d(n) {
|
|
405
|
-
n &&
|
|
393
|
+
n && I(e);
|
|
406
394
|
}
|
|
407
395
|
};
|
|
408
396
|
}
|
|
409
|
-
class
|
|
397
|
+
class ii extends we {
|
|
410
398
|
constructor(e) {
|
|
411
|
-
super(), ye(this, e, null,
|
|
399
|
+
super(), ye(this, e, null, xi, _e, {});
|
|
412
400
|
}
|
|
413
401
|
}
|
|
414
|
-
function
|
|
402
|
+
function $i(i) {
|
|
415
403
|
let e, t;
|
|
416
404
|
return {
|
|
417
405
|
c() {
|
|
@@ -429,7 +417,7 @@ function Qi(i) {
|
|
|
429
417
|
), a(e, "class", "svelte-z7p9pp");
|
|
430
418
|
},
|
|
431
419
|
m(n, r) {
|
|
432
|
-
|
|
420
|
+
B(n, e, r);
|
|
433
421
|
},
|
|
434
422
|
p(n, r) {
|
|
435
423
|
r & /*iconsBaseUrl*/
|
|
@@ -449,11 +437,11 @@ function Qi(i) {
|
|
|
449
437
|
);
|
|
450
438
|
},
|
|
451
439
|
d(n) {
|
|
452
|
-
n &&
|
|
440
|
+
n && I(e);
|
|
453
441
|
}
|
|
454
442
|
};
|
|
455
443
|
}
|
|
456
|
-
function
|
|
444
|
+
function en(i) {
|
|
457
445
|
let e, t;
|
|
458
446
|
return {
|
|
459
447
|
c() {
|
|
@@ -471,7 +459,7 @@ function Ki(i) {
|
|
|
471
459
|
), a(e, "class", "svelte-z7p9pp");
|
|
472
460
|
},
|
|
473
461
|
m(n, r) {
|
|
474
|
-
|
|
462
|
+
B(n, e, r);
|
|
475
463
|
},
|
|
476
464
|
p(n, r) {
|
|
477
465
|
r & /*iconsBaseUrl*/
|
|
@@ -491,11 +479,11 @@ function Ki(i) {
|
|
|
491
479
|
);
|
|
492
480
|
},
|
|
493
481
|
d(n) {
|
|
494
|
-
n &&
|
|
482
|
+
n && I(e);
|
|
495
483
|
}
|
|
496
484
|
};
|
|
497
485
|
}
|
|
498
|
-
function
|
|
486
|
+
function tn(i) {
|
|
499
487
|
let e, t;
|
|
500
488
|
return {
|
|
501
489
|
c() {
|
|
@@ -513,7 +501,7 @@ function Vi(i) {
|
|
|
513
501
|
), a(e, "class", "svelte-z7p9pp");
|
|
514
502
|
},
|
|
515
503
|
m(n, r) {
|
|
516
|
-
|
|
504
|
+
B(n, e, r);
|
|
517
505
|
},
|
|
518
506
|
p(n, r) {
|
|
519
507
|
r & /*iconsBaseUrl*/
|
|
@@ -533,11 +521,11 @@ function Vi(i) {
|
|
|
533
521
|
);
|
|
534
522
|
},
|
|
535
523
|
d(n) {
|
|
536
|
-
n &&
|
|
524
|
+
n && I(e);
|
|
537
525
|
}
|
|
538
526
|
};
|
|
539
527
|
}
|
|
540
|
-
function
|
|
528
|
+
function nn(i) {
|
|
541
529
|
let e, t;
|
|
542
530
|
return {
|
|
543
531
|
c() {
|
|
@@ -555,7 +543,7 @@ function Ji(i) {
|
|
|
555
543
|
), a(e, "class", "svelte-z7p9pp");
|
|
556
544
|
},
|
|
557
545
|
m(n, r) {
|
|
558
|
-
|
|
546
|
+
B(n, e, r);
|
|
559
547
|
},
|
|
560
548
|
p(n, r) {
|
|
561
549
|
r & /*iconsBaseUrl*/
|
|
@@ -575,11 +563,11 @@ function Ji(i) {
|
|
|
575
563
|
);
|
|
576
564
|
},
|
|
577
565
|
d(n) {
|
|
578
|
-
n &&
|
|
566
|
+
n && I(e);
|
|
579
567
|
}
|
|
580
568
|
};
|
|
581
569
|
}
|
|
582
|
-
function
|
|
570
|
+
function rn(i) {
|
|
583
571
|
let e, t;
|
|
584
572
|
return {
|
|
585
573
|
c() {
|
|
@@ -597,7 +585,7 @@ function Xi(i) {
|
|
|
597
585
|
), a(e, "class", "svelte-z7p9pp");
|
|
598
586
|
},
|
|
599
587
|
m(n, r) {
|
|
600
|
-
|
|
588
|
+
B(n, e, r);
|
|
601
589
|
},
|
|
602
590
|
p(n, r) {
|
|
603
591
|
r & /*iconsBaseUrl*/
|
|
@@ -617,11 +605,11 @@ function Xi(i) {
|
|
|
617
605
|
);
|
|
618
606
|
},
|
|
619
607
|
d(n) {
|
|
620
|
-
n &&
|
|
608
|
+
n && I(e);
|
|
621
609
|
}
|
|
622
610
|
};
|
|
623
611
|
}
|
|
624
|
-
function
|
|
612
|
+
function on(i) {
|
|
625
613
|
let e, t;
|
|
626
614
|
return {
|
|
627
615
|
c() {
|
|
@@ -639,7 +627,7 @@ function Yi(i) {
|
|
|
639
627
|
), a(e, "class", "svelte-z7p9pp");
|
|
640
628
|
},
|
|
641
629
|
m(n, r) {
|
|
642
|
-
|
|
630
|
+
B(n, e, r);
|
|
643
631
|
},
|
|
644
632
|
p(n, r) {
|
|
645
633
|
r & /*iconsBaseUrl*/
|
|
@@ -659,11 +647,11 @@ function Yi(i) {
|
|
|
659
647
|
);
|
|
660
648
|
},
|
|
661
649
|
d(n) {
|
|
662
|
-
n &&
|
|
650
|
+
n && I(e);
|
|
663
651
|
}
|
|
664
652
|
};
|
|
665
653
|
}
|
|
666
|
-
function
|
|
654
|
+
function sn(i) {
|
|
667
655
|
let e, t;
|
|
668
656
|
return {
|
|
669
657
|
c() {
|
|
@@ -681,7 +669,7 @@ function xi(i) {
|
|
|
681
669
|
), a(e, "class", "svelte-z7p9pp");
|
|
682
670
|
},
|
|
683
671
|
m(n, r) {
|
|
684
|
-
|
|
672
|
+
B(n, e, r);
|
|
685
673
|
},
|
|
686
674
|
p(n, r) {
|
|
687
675
|
r & /*iconsBaseUrl*/
|
|
@@ -701,11 +689,11 @@ function xi(i) {
|
|
|
701
689
|
);
|
|
702
690
|
},
|
|
703
691
|
d(n) {
|
|
704
|
-
n &&
|
|
692
|
+
n && I(e);
|
|
705
693
|
}
|
|
706
694
|
};
|
|
707
695
|
}
|
|
708
|
-
function
|
|
696
|
+
function an(i) {
|
|
709
697
|
let e, t, n, r;
|
|
710
698
|
return {
|
|
711
699
|
c() {
|
|
@@ -723,7 +711,7 @@ function $i(i) {
|
|
|
723
711
|
), a(e, "class", "svelte-z7p9pp");
|
|
724
712
|
},
|
|
725
713
|
m(u, l) {
|
|
726
|
-
|
|
714
|
+
B(u, e, l), n || (r = q(
|
|
727
715
|
e,
|
|
728
716
|
"error",
|
|
729
717
|
/*error_handler*/
|
|
@@ -748,36 +736,36 @@ function $i(i) {
|
|
|
748
736
|
);
|
|
749
737
|
},
|
|
750
738
|
d(u) {
|
|
751
|
-
u &&
|
|
739
|
+
u && I(e), n = !1, r();
|
|
752
740
|
}
|
|
753
741
|
};
|
|
754
742
|
}
|
|
755
|
-
function
|
|
743
|
+
function Ut(i) {
|
|
756
744
|
let e, t;
|
|
757
745
|
return {
|
|
758
746
|
c() {
|
|
759
|
-
e = U("span"), t =
|
|
747
|
+
e = U("span"), t = ge(
|
|
760
748
|
/*placeType*/
|
|
761
749
|
i[6]
|
|
762
750
|
), a(e, "class", "secondary svelte-z7p9pp");
|
|
763
751
|
},
|
|
764
752
|
m(n, r) {
|
|
765
|
-
|
|
753
|
+
B(n, e, r), M(e, t);
|
|
766
754
|
},
|
|
767
755
|
p(n, r) {
|
|
768
756
|
r & /*placeType*/
|
|
769
|
-
64 &&
|
|
757
|
+
64 && Ie(
|
|
770
758
|
t,
|
|
771
759
|
/*placeType*/
|
|
772
760
|
n[6]
|
|
773
761
|
);
|
|
774
762
|
},
|
|
775
763
|
d(n) {
|
|
776
|
-
n &&
|
|
764
|
+
n && I(e);
|
|
777
765
|
}
|
|
778
766
|
};
|
|
779
767
|
}
|
|
780
|
-
function
|
|
768
|
+
function ln(i) {
|
|
781
769
|
let e, t, n, r, u, l, o, d, c, f = (
|
|
782
770
|
/*isReverse*/
|
|
783
771
|
(i[8] ? (
|
|
@@ -798,65 +786,65 @@ function en(i) {
|
|
|
798
786
|
i[0].id.startsWith("poi.") || !/*imageUrl*/
|
|
799
787
|
i[5]) && !/*isReverse*/
|
|
800
788
|
i[8]
|
|
801
|
-
), w,
|
|
789
|
+
), w, D, E = (
|
|
802
790
|
/*isReverse*/
|
|
803
791
|
(i[8] ? "" : (
|
|
804
792
|
/*feature*/
|
|
805
793
|
i[0].place_name.replace(/[^,]*,?\s*/, "")
|
|
806
794
|
)) + ""
|
|
807
|
-
),
|
|
808
|
-
function
|
|
809
|
-
return
|
|
810
|
-
1 && (t = null),
|
|
811
|
-
1 && (n = null),
|
|
812
|
-
1 && (r = null),
|
|
795
|
+
), S, z, W, Z, V, C;
|
|
796
|
+
function v(p, m) {
|
|
797
|
+
return m & /*feature*/
|
|
798
|
+
1 && (t = null), m & /*feature*/
|
|
799
|
+
1 && (n = null), m & /*feature*/
|
|
800
|
+
1 && (r = null), m & /*feature*/
|
|
813
801
|
1 && (u = null), /*imageUrl*/
|
|
814
|
-
p[5] ?
|
|
802
|
+
p[5] ? an : (
|
|
815
803
|
/*feature*/
|
|
816
|
-
p[0].address ?
|
|
817
|
-
p[0].id.startsWith("road.")), t ?
|
|
818
|
-
p[0].id.startsWith("address.")), n ?
|
|
819
|
-
p[0].id.startsWith("postal_code.")), r ?
|
|
820
|
-
p[0].id.startsWith("poi.")), u ?
|
|
804
|
+
p[0].address ? sn : (t == null && (t = !!/*feature*/
|
|
805
|
+
p[0].id.startsWith("road.")), t ? on : (n == null && (n = !!/*feature*/
|
|
806
|
+
p[0].id.startsWith("address.")), n ? rn : (r == null && (r = !!/*feature*/
|
|
807
|
+
p[0].id.startsWith("postal_code.")), r ? nn : (u == null && (u = !!/*feature*/
|
|
808
|
+
p[0].id.startsWith("poi.")), u ? tn : (
|
|
821
809
|
/*isReverse*/
|
|
822
|
-
p[8] ?
|
|
810
|
+
p[8] ? en : $i
|
|
823
811
|
)))))
|
|
824
812
|
);
|
|
825
813
|
}
|
|
826
|
-
let y =
|
|
814
|
+
let y = v(i, -1), N = y(i), k = _ && Ut(i);
|
|
827
815
|
return {
|
|
828
816
|
c() {
|
|
829
|
-
e = U("li"),
|
|
830
|
-
i[1] === "selected"), a(e, "aria-checked",
|
|
831
|
-
i[1] === "picked"), a(e, "class",
|
|
817
|
+
e = U("li"), N.c(), l = $(), o = U("span"), d = U("span"), c = U("span"), g = ge(f), b = $(), k && k.c(), w = $(), D = U("span"), S = ge(E), a(c, "class", "primary svelte-z7p9pp"), a(d, "class", "svelte-z7p9pp"), a(D, "class", "line2 svelte-z7p9pp"), a(o, "class", "texts svelte-z7p9pp"), a(e, "tabindex", "-1"), a(e, "role", "option"), a(e, "aria-selected", z = /*style*/
|
|
818
|
+
i[1] === "selected"), a(e, "aria-checked", W = /*style*/
|
|
819
|
+
i[1] === "picked"), a(e, "class", Z = Je(
|
|
832
820
|
/*style*/
|
|
833
821
|
i[1]
|
|
834
822
|
) + " svelte-z7p9pp");
|
|
835
823
|
},
|
|
836
|
-
m(p,
|
|
837
|
-
|
|
838
|
-
|
|
824
|
+
m(p, m) {
|
|
825
|
+
B(p, e, m), N.m(e, null), M(e, l), M(e, o), M(o, d), M(d, c), M(c, g), M(d, b), k && k.m(d, null), M(o, w), M(o, D), M(D, S), V || (C = [
|
|
826
|
+
q(
|
|
839
827
|
e,
|
|
840
828
|
"mouseenter",
|
|
841
829
|
/*mouseenter_handler*/
|
|
842
830
|
i[13]
|
|
843
831
|
),
|
|
844
|
-
|
|
832
|
+
q(
|
|
845
833
|
e,
|
|
846
834
|
"focus",
|
|
847
835
|
/*focus_handler*/
|
|
848
836
|
i[15]
|
|
849
837
|
),
|
|
850
|
-
|
|
838
|
+
q(
|
|
851
839
|
e,
|
|
852
840
|
"click",
|
|
853
841
|
/*click_handler*/
|
|
854
842
|
i[16]
|
|
855
843
|
)
|
|
856
|
-
],
|
|
844
|
+
], V = !0);
|
|
857
845
|
},
|
|
858
|
-
p(p, [
|
|
859
|
-
y === (y =
|
|
846
|
+
p(p, [m]) {
|
|
847
|
+
y === (y = v(p, m)) && N ? N.p(p, m) : (N.d(1), N = y(p), N && (N.c(), N.m(e, l))), m & /*feature*/
|
|
860
848
|
1 && f !== (f = /*isReverse*/
|
|
861
849
|
(p[8] ? (
|
|
862
850
|
/*feature*/
|
|
@@ -864,7 +852,7 @@ function en(i) {
|
|
|
864
852
|
) : (
|
|
865
853
|
/*feature*/
|
|
866
854
|
p[0].place_name.replace(/,.*/, "")
|
|
867
|
-
)) + "") &&
|
|
855
|
+
)) + "") && Ie(g, f), m & /*showPlaceType, feature, imageUrl*/
|
|
868
856
|
37 && (_ = /*showPlaceType*/
|
|
869
857
|
p[2] === "always" || /*showPlaceType*/
|
|
870
858
|
p[2] !== "never" && !/*feature*/
|
|
@@ -874,53 +862,53 @@ function en(i) {
|
|
|
874
862
|
p[0].id.startsWith("postal_code.") && (!/*feature*/
|
|
875
863
|
p[0].id.startsWith("poi.") || !/*imageUrl*/
|
|
876
864
|
p[5]) && !/*isReverse*/
|
|
877
|
-
p[8]), _ ?
|
|
878
|
-
1 &&
|
|
865
|
+
p[8]), _ ? k ? k.p(p, m) : (k = Ut(p), k.c(), k.m(d, null)) : k && (k.d(1), k = null), m & /*feature*/
|
|
866
|
+
1 && E !== (E = /*isReverse*/
|
|
879
867
|
(p[8] ? "" : (
|
|
880
868
|
/*feature*/
|
|
881
869
|
p[0].place_name.replace(/[^,]*,?\s*/, "")
|
|
882
|
-
)) + "") &&
|
|
870
|
+
)) + "") && Ie(S, E), m & /*style*/
|
|
883
871
|
2 && z !== (z = /*style*/
|
|
884
|
-
p[1] === "selected") && a(e, "aria-selected", z),
|
|
885
|
-
2 &&
|
|
886
|
-
p[1] === "picked") && a(e, "aria-checked",
|
|
887
|
-
2 &&
|
|
872
|
+
p[1] === "selected") && a(e, "aria-selected", z), m & /*style*/
|
|
873
|
+
2 && W !== (W = /*style*/
|
|
874
|
+
p[1] === "picked") && a(e, "aria-checked", W), m & /*style*/
|
|
875
|
+
2 && Z !== (Z = Je(
|
|
888
876
|
/*style*/
|
|
889
877
|
p[1]
|
|
890
|
-
) + " svelte-z7p9pp") && a(e, "class",
|
|
878
|
+
) + " svelte-z7p9pp") && a(e, "class", Z);
|
|
891
879
|
},
|
|
892
880
|
i: P,
|
|
893
881
|
o: P,
|
|
894
882
|
d(p) {
|
|
895
|
-
p &&
|
|
883
|
+
p && I(e), N.d(), k && k.d(), V = !1, de(C);
|
|
896
884
|
}
|
|
897
885
|
};
|
|
898
886
|
}
|
|
899
|
-
function
|
|
900
|
-
var
|
|
887
|
+
function un(i, e, t) {
|
|
888
|
+
var V;
|
|
901
889
|
let n, r, { feature: u } = e, { style: l = "default" } = e, { showPlaceType: o } = e, { missingIconsCache: d } = e, { iconsBaseUrl: c } = e;
|
|
902
|
-
const f =
|
|
903
|
-
let b, _, w = 0,
|
|
904
|
-
function
|
|
890
|
+
const f = $t(), g = (V = u.properties) == null ? void 0 : V.categories;
|
|
891
|
+
let b, _, w = 0, D = u.place_type[0] === "reverse";
|
|
892
|
+
function E() {
|
|
905
893
|
_ && d.add(_), t(11, w++, w);
|
|
906
894
|
}
|
|
907
|
-
function
|
|
908
|
-
|
|
895
|
+
function S(C) {
|
|
896
|
+
ji.call(this, i, C);
|
|
909
897
|
}
|
|
910
|
-
const z = () =>
|
|
911
|
-
document.activeElement !==
|
|
898
|
+
const z = () => E(), W = () => f("select", void 0), Z = (C) => {
|
|
899
|
+
document.activeElement !== C.target && f("select", void 0);
|
|
912
900
|
};
|
|
913
|
-
return i.$$set = (
|
|
914
|
-
"feature" in
|
|
901
|
+
return i.$$set = (C) => {
|
|
902
|
+
"feature" in C && t(0, u = C.feature), "style" in C && t(1, l = C.style), "showPlaceType" in C && t(2, o = C.showPlaceType), "missingIconsCache" in C && t(10, d = C.missingIconsCache), "iconsBaseUrl" in C && t(3, c = C.iconsBaseUrl);
|
|
915
903
|
}, i.$$.update = () => {
|
|
916
|
-
var
|
|
904
|
+
var C, v, y, N;
|
|
917
905
|
if (i.$$.dirty & /*loadIconAttempt, index, category, iconsBaseUrl, imageUrl, missingIconsCache*/
|
|
918
906
|
7224)
|
|
919
907
|
do
|
|
920
908
|
t(12, n--, n), t(4, b = g == null ? void 0 : g[n]), t(5, _ = b ? c + b.replace(/ /g, "_") + ".svg" : void 0);
|
|
921
909
|
while (n > -1 && (!_ || d.has(_)));
|
|
922
910
|
i.$$.dirty & /*feature*/
|
|
923
|
-
1 && t(6, r = ((
|
|
911
|
+
1 && t(6, r = ((v = (C = u.properties) == null ? void 0 : C.categories) == null ? void 0 : v.join(", ")) ?? ((N = (y = u.properties) == null ? void 0 : y.place_type_name) == null ? void 0 : N[0]) ?? u.place_type[0]);
|
|
924
912
|
}, t(12, n = (g == null ? void 0 : g.length) ?? 0), [
|
|
925
913
|
u,
|
|
926
914
|
l,
|
|
@@ -930,20 +918,20 @@ function tn(i, e, t) {
|
|
|
930
918
|
_,
|
|
931
919
|
r,
|
|
932
920
|
f,
|
|
933
|
-
|
|
934
|
-
|
|
921
|
+
D,
|
|
922
|
+
E,
|
|
935
923
|
d,
|
|
936
924
|
w,
|
|
937
925
|
n,
|
|
938
|
-
|
|
926
|
+
S,
|
|
939
927
|
z,
|
|
940
|
-
|
|
941
|
-
|
|
928
|
+
W,
|
|
929
|
+
Z
|
|
942
930
|
];
|
|
943
931
|
}
|
|
944
|
-
class
|
|
932
|
+
class cn extends we {
|
|
945
933
|
constructor(e) {
|
|
946
|
-
super(), ye(this, e,
|
|
934
|
+
super(), ye(this, e, un, ln, _e, {
|
|
947
935
|
feature: 0,
|
|
948
936
|
style: 1,
|
|
949
937
|
showPlaceType: 2,
|
|
@@ -952,92 +940,92 @@ class nn extends we {
|
|
|
952
940
|
});
|
|
953
941
|
}
|
|
954
942
|
}
|
|
955
|
-
function
|
|
943
|
+
function dn(i) {
|
|
956
944
|
let e;
|
|
957
945
|
return {
|
|
958
946
|
c() {
|
|
959
947
|
e = U("div"), e.innerHTML = '<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>', a(e, "class", "svelte-7cmwmc");
|
|
960
948
|
},
|
|
961
949
|
m(t, n) {
|
|
962
|
-
|
|
950
|
+
B(t, e, n);
|
|
963
951
|
},
|
|
964
952
|
p: P,
|
|
965
953
|
i: P,
|
|
966
954
|
o: P,
|
|
967
955
|
d(t) {
|
|
968
|
-
t &&
|
|
956
|
+
t && I(e);
|
|
969
957
|
}
|
|
970
958
|
};
|
|
971
959
|
}
|
|
972
|
-
class
|
|
960
|
+
class fn extends we {
|
|
973
961
|
constructor(e) {
|
|
974
|
-
super(), ye(this, e, null,
|
|
962
|
+
super(), ye(this, e, null, dn, _e, {});
|
|
975
963
|
}
|
|
976
964
|
}
|
|
977
|
-
function
|
|
965
|
+
function mn(i) {
|
|
978
966
|
let e, t;
|
|
979
967
|
return {
|
|
980
968
|
c() {
|
|
981
|
-
e =
|
|
969
|
+
e = le("svg"), t = le("path"), a(t, "d", "M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"), a(e, "viewBox", "0 0 60.006 21.412"), a(e, "width", "14"), a(e, "height", "20"), a(e, "class", "svelte-en2qvf");
|
|
982
970
|
},
|
|
983
971
|
m(n, r) {
|
|
984
|
-
|
|
972
|
+
B(n, e, r), M(e, t);
|
|
985
973
|
},
|
|
986
974
|
p: P,
|
|
987
975
|
i: P,
|
|
988
976
|
o: P,
|
|
989
977
|
d(n) {
|
|
990
|
-
n &&
|
|
978
|
+
n && I(e);
|
|
991
979
|
}
|
|
992
980
|
};
|
|
993
981
|
}
|
|
994
|
-
class
|
|
982
|
+
class gn extends we {
|
|
995
983
|
constructor(e) {
|
|
996
|
-
super(), ye(this, e, null,
|
|
984
|
+
super(), ye(this, e, null, mn, _e, {});
|
|
997
985
|
}
|
|
998
986
|
}
|
|
999
|
-
function
|
|
987
|
+
function hn(i) {
|
|
1000
988
|
let e, t, n;
|
|
1001
989
|
return {
|
|
1002
990
|
c() {
|
|
1003
|
-
e =
|
|
991
|
+
e = le("svg"), t = le("circle"), n = le("path"), a(t, "cx", "4.789"), a(t, "cy", "4.787"), a(t, "r", "3.85"), a(t, "class", "svelte-1aq105l"), a(n, "d", "M12.063 12.063 7.635 7.635"), a(n, "class", "svelte-1aq105l"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "width", "13"), a(e, "height", "13"), a(e, "viewBox", "0 0 13 13"), a(e, "class", "svelte-1aq105l");
|
|
1004
992
|
},
|
|
1005
993
|
m(r, u) {
|
|
1006
|
-
|
|
994
|
+
B(r, e, u), M(e, t), M(e, n);
|
|
1007
995
|
},
|
|
1008
996
|
p: P,
|
|
1009
997
|
i: P,
|
|
1010
998
|
o: P,
|
|
1011
999
|
d(r) {
|
|
1012
|
-
r &&
|
|
1000
|
+
r && I(e);
|
|
1013
1001
|
}
|
|
1014
1002
|
};
|
|
1015
1003
|
}
|
|
1016
|
-
class
|
|
1004
|
+
class bn extends we {
|
|
1017
1005
|
constructor(e) {
|
|
1018
|
-
super(), ye(this, e, null,
|
|
1006
|
+
super(), ye(this, e, null, hn, _e, {});
|
|
1019
1007
|
}
|
|
1020
1008
|
}
|
|
1021
|
-
function
|
|
1009
|
+
function vn(i, e, t) {
|
|
1022
1010
|
const n = e[1], r = e[0], u = n - r;
|
|
1023
1011
|
return i === n && t ? i : ((i - r) % u + u) % u + r;
|
|
1024
1012
|
}
|
|
1025
|
-
function
|
|
1013
|
+
function Dt(i) {
|
|
1026
1014
|
const e = [...i];
|
|
1027
1015
|
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;
|
|
1028
1016
|
}
|
|
1029
|
-
let
|
|
1030
|
-
async function
|
|
1017
|
+
let Re;
|
|
1018
|
+
async function Ln(i, e, t) {
|
|
1031
1019
|
const n = i == null ? void 0 : i.getCenterAndZoom();
|
|
1032
1020
|
for (const r of e ?? [])
|
|
1033
1021
|
if (!(n && (r.minZoom != null && r.minZoom > n[0] || r.maxZoom != null && r.maxZoom < n[0]))) {
|
|
1034
1022
|
if (r.type === "fixed")
|
|
1035
1023
|
return r.coordinates.join(",");
|
|
1036
1024
|
e: if (r.type === "client-geolocation") {
|
|
1037
|
-
if (
|
|
1038
|
-
if (!
|
|
1025
|
+
if (Re && r.cachedLocationExpiry && Re.time + r.cachedLocationExpiry > Date.now()) {
|
|
1026
|
+
if (!Re.coords)
|
|
1039
1027
|
break e;
|
|
1040
|
-
return
|
|
1028
|
+
return Re.coords;
|
|
1041
1029
|
}
|
|
1042
1030
|
let u;
|
|
1043
1031
|
try {
|
|
@@ -1058,7 +1046,7 @@ async function dn(i, e, t) {
|
|
|
1058
1046
|
}), u;
|
|
1059
1047
|
} catch {
|
|
1060
1048
|
} finally {
|
|
1061
|
-
r.cachedLocationExpiry && (
|
|
1049
|
+
r.cachedLocationExpiry && (Re = {
|
|
1062
1050
|
time: Date.now(),
|
|
1063
1051
|
coords: u
|
|
1064
1052
|
});
|
|
@@ -1072,8 +1060,8 @@ async function dn(i, e, t) {
|
|
|
1072
1060
|
return n[1].toFixed(6) + "," + n[2].toFixed(6);
|
|
1073
1061
|
}
|
|
1074
1062
|
}
|
|
1075
|
-
const
|
|
1076
|
-
function
|
|
1063
|
+
const _n = /^(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, It = /^([+-]?[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,})$/, At = /^(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, Pt = /^(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, Bt = /^(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, Ft = /^(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;
|
|
1064
|
+
function yn(i) {
|
|
1077
1065
|
if (!["DMS", "DM", "DD"].includes(i))
|
|
1078
1066
|
throw new Error("invalid format specified");
|
|
1079
1067
|
if (this.decimalCoordinates && this.decimalCoordinates.trim()) {
|
|
@@ -1082,35 +1070,35 @@ function mn(i) {
|
|
|
1082
1070
|
i == "DD" && (d = `${r}° ${l}, ${u}° ${o}`);
|
|
1083
1071
|
const c = Math.floor(r), f = Math.floor(u), g = (r - c) * 60, b = (u - f) * 60;
|
|
1084
1072
|
if (i == "DM") {
|
|
1085
|
-
let _ =
|
|
1073
|
+
let _ = Gt(g, 3).toFixed(3).padStart(6, "0"), w = Gt(b, 3).toFixed(3).padStart(6, "0");
|
|
1086
1074
|
_.endsWith(".000") && w.endsWith(".000") && (_ = _.replace(/\.000$/, ""), w = w.replace(/\.000$/, "")), d = `${c}° ${_}' ${l}, ${f}° ${w}' ${o}`;
|
|
1087
1075
|
}
|
|
1088
1076
|
if (i == "DMS") {
|
|
1089
1077
|
const _ = Math.floor(g), w = Math.floor(b);
|
|
1090
|
-
let
|
|
1091
|
-
const
|
|
1092
|
-
|
|
1078
|
+
let D = ((g - _) * 60).toFixed(1).padStart(4, "0"), E = ((b - w) * 60).toFixed(1).padStart(4, "0");
|
|
1079
|
+
const S = _.toString().padStart(2, "0"), z = w.toString().padStart(2, "0");
|
|
1080
|
+
D.endsWith(".0") && E.endsWith(".0") && (D = D.replace(/\.0$/, ""), E = E.replace(/\.0$/, "")), d = `${c}° ${S}' ${D}" ${l}, ${f}° ${z}' ${E}" ${o}`;
|
|
1093
1081
|
}
|
|
1094
1082
|
return d;
|
|
1095
1083
|
} else
|
|
1096
1084
|
throw new Error("no decimal coordinates to convert");
|
|
1097
1085
|
}
|
|
1098
|
-
function
|
|
1086
|
+
function Gt(i, e) {
|
|
1099
1087
|
const t = Math.pow(10, e);
|
|
1100
1088
|
return Math.round((i + Number.EPSILON) * t) / t;
|
|
1101
1089
|
}
|
|
1102
|
-
function
|
|
1090
|
+
function vt(i, e) {
|
|
1103
1091
|
e || (e = 5), i = i.replace(/\s+/g, " ").trim();
|
|
1104
1092
|
let t = null, n = null, r = "", u = "", l = null, o = [], d = !1;
|
|
1105
|
-
if (
|
|
1093
|
+
if (_n.test(i))
|
|
1106
1094
|
throw new Error("invalid coordinate value");
|
|
1107
|
-
if (
|
|
1108
|
-
if (o =
|
|
1095
|
+
if (It.test(i))
|
|
1096
|
+
if (o = It.exec(i), d = Ue(o), d)
|
|
1109
1097
|
t = Math.abs(o[1]) + o[2] / 60, Number(o[1]) < 0 && (t *= -1), n = Math.abs(o[3]) + o[4] / 60, Number(o[3]) < 0 && (n *= -1), l = "DM";
|
|
1110
1098
|
else
|
|
1111
1099
|
throw new Error("invalid coordinate format");
|
|
1112
|
-
else if (
|
|
1113
|
-
if (o =
|
|
1100
|
+
else if (At.test(i))
|
|
1101
|
+
if (o = At.exec(i), d = Ue(o), d) {
|
|
1114
1102
|
if (t = o[2], n = o[6], t.includes(",") && (t = t.replace(",", ".")), n.includes(",") && (n = n.replace(",", ".")), l = "DD", Number(Math.round(t)) == Number(t))
|
|
1115
1103
|
throw new Error("integer only coordinate provided");
|
|
1116
1104
|
if (Number(Math.round(n)) == Number(n))
|
|
@@ -1118,18 +1106,18 @@ function gt(i, e) {
|
|
|
1118
1106
|
o[1] ? (r = o[1], u = o[5]) : o[4] && (r = o[4], u = o[8]);
|
|
1119
1107
|
} else
|
|
1120
1108
|
throw new Error("invalid decimal coordinate format");
|
|
1121
|
-
else if (
|
|
1122
|
-
if (o =
|
|
1109
|
+
else if (Pt.test(i))
|
|
1110
|
+
if (o = Pt.exec(i), d = Ue(o), d)
|
|
1123
1111
|
t = Math.abs(parseInt(o[2])), o[4] && (t += o[4] / 60, l = "DM"), o[6] && (t += o[6].replace(",", ".") / 3600, l = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[9])), o[11] && (n += o[11] / 60), o[13] && (n += o[13].replace(",", ".") / 3600), parseInt(o[9]) < 0 && (n = -1 * n), o[1] ? (r = o[1], u = o[8]) : o[7] && (r = o[7], u = o[14]);
|
|
1124
1112
|
else
|
|
1125
1113
|
throw new Error("invalid DMS coordinates format");
|
|
1126
|
-
else if (
|
|
1127
|
-
if (o =
|
|
1114
|
+
else if (Bt.test(i))
|
|
1115
|
+
if (o = Bt.exec(i), d = Ue(o), d)
|
|
1128
1116
|
t = Math.abs(parseInt(o[2])), o[4] && (t += o[4] / 60, l = "DM"), o[6] && (t += o[6] / 3600, l = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[10])), o[12] && (n += o[12] / 60), o[14] && (n += o[14] / 3600), parseInt(o[10]) < 0 && (n = -1 * n), o[1] ? (r = o[1], u = o[9]) : o[8] && (r = o[8], u = o[16]);
|
|
1129
1117
|
else
|
|
1130
1118
|
throw new Error("invalid DMS coordinates format");
|
|
1131
|
-
else if (
|
|
1132
|
-
if (o =
|
|
1119
|
+
else if (Ft.test(i)) {
|
|
1120
|
+
if (o = Ft.exec(i), d = Ue(o), o.filter((c) => c).length <= 5)
|
|
1133
1121
|
throw new Error("invalid coordinates format");
|
|
1134
1122
|
if (d)
|
|
1135
1123
|
t = Math.abs(parseInt(o[2])), o[4] && (t += o[4].replace(",", ".") / 60, l = "DM"), o[6] && (t += o[6].replace(",", ".") / 3600, l = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[10])), o[12] && (n += o[12].replace(",", ".") / 60), o[14] && (n += o[14].replace(",", ".") / 3600), parseInt(o[10]) < 0 && (n = -1 * n), o[1] ? (r = o[1], u = o[9]) : o[8] && (r = o[8], u = o[16]);
|
|
@@ -1152,26 +1140,26 @@ function gt(i, e) {
|
|
|
1152
1140
|
let g, b;
|
|
1153
1141
|
const _ = /[,/;\u0020]/g, w = f.match(_);
|
|
1154
1142
|
if (w == null) {
|
|
1155
|
-
const
|
|
1156
|
-
g = f.substring(0,
|
|
1143
|
+
const S = Math.floor(i.length / 2);
|
|
1144
|
+
g = f.substring(0, S).trim(), b = f.substring(S).trim();
|
|
1157
1145
|
} else {
|
|
1158
|
-
let
|
|
1159
|
-
w.length % 2 == 1 ?
|
|
1146
|
+
let S;
|
|
1147
|
+
w.length % 2 == 1 ? S = Math.floor(w.length / 2) : S = w.length / 2 - 1;
|
|
1160
1148
|
let z = 0;
|
|
1161
|
-
if (
|
|
1149
|
+
if (S == 0)
|
|
1162
1150
|
z = f.indexOf(w[0]), g = f.substring(0, z).trim(), b = f.substring(z + 1).trim();
|
|
1163
1151
|
else {
|
|
1164
|
-
let
|
|
1165
|
-
for (;
|
|
1166
|
-
z = f.indexOf(w[
|
|
1152
|
+
let W = 0, Z = 0;
|
|
1153
|
+
for (; W <= S; )
|
|
1154
|
+
z = f.indexOf(w[W], Z), Z = z + 1, W++;
|
|
1167
1155
|
g = f.substring(0, z).trim(), b = f.substring(z + 1).trim();
|
|
1168
1156
|
}
|
|
1169
1157
|
}
|
|
1170
|
-
const
|
|
1171
|
-
if (
|
|
1158
|
+
const D = g.split(".");
|
|
1159
|
+
if (D.length == 2 && D[1] == 0 && D[1].length != 2)
|
|
1172
1160
|
throw new Error("invalid coordinates format");
|
|
1173
|
-
const
|
|
1174
|
-
if (
|
|
1161
|
+
const E = b.split(".");
|
|
1162
|
+
if (E.length == 2 && E[1] == 0 && E[1].length != 2)
|
|
1175
1163
|
throw new Error("invalid coordinates format");
|
|
1176
1164
|
if (/^\d+$/.test(g) || /^\d+$/.test(b))
|
|
1177
1165
|
throw new Error("degree only coordinate/s provided");
|
|
@@ -1183,13 +1171,13 @@ function gt(i, e) {
|
|
|
1183
1171
|
decimalLongitude: n,
|
|
1184
1172
|
decimalCoordinates: `${t},${n}`,
|
|
1185
1173
|
originalFormat: l,
|
|
1186
|
-
closeEnough:
|
|
1187
|
-
toCoordinateFormat:
|
|
1174
|
+
closeEnough: wn,
|
|
1175
|
+
toCoordinateFormat: yn
|
|
1188
1176
|
});
|
|
1189
1177
|
} else
|
|
1190
1178
|
throw new Error("coordinates pattern match failed");
|
|
1191
1179
|
}
|
|
1192
|
-
function
|
|
1180
|
+
function Ue(i) {
|
|
1193
1181
|
if (!isNaN(i[0]))
|
|
1194
1182
|
return !1;
|
|
1195
1183
|
const e = [...i];
|
|
@@ -1208,28 +1196,28 @@ function ze(i) {
|
|
|
1208
1196
|
}
|
|
1209
1197
|
return !0;
|
|
1210
1198
|
}
|
|
1211
|
-
function
|
|
1199
|
+
function jt(i, e) {
|
|
1212
1200
|
const t = Math.abs(i - e);
|
|
1213
1201
|
return Number(t.toFixed(6)) <= 1e-5;
|
|
1214
1202
|
}
|
|
1215
|
-
function
|
|
1203
|
+
function wn(i) {
|
|
1216
1204
|
if (!i)
|
|
1217
1205
|
throw new Error("coords must be provided");
|
|
1218
1206
|
if (i.includes(",")) {
|
|
1219
1207
|
const e = i.split(",");
|
|
1220
1208
|
if (Number(e[0]) == NaN || Number(e[1]) == NaN)
|
|
1221
1209
|
throw new Error("coords are not valid decimals");
|
|
1222
|
-
return
|
|
1210
|
+
return jt(this.decimalLatitude, Number(e[0])) && jt(this.decimalLongitude, e[1]);
|
|
1223
1211
|
} else
|
|
1224
1212
|
throw new Error("coords being tested must be separated by a comma");
|
|
1225
1213
|
}
|
|
1226
|
-
const
|
|
1214
|
+
const pn = Object.freeze({
|
|
1227
1215
|
DMS: "DMS",
|
|
1228
1216
|
DM: "DM",
|
|
1229
1217
|
DD: "DD"
|
|
1230
1218
|
});
|
|
1231
|
-
|
|
1232
|
-
const
|
|
1219
|
+
vt.to = pn;
|
|
1220
|
+
const En = [
|
|
1233
1221
|
{
|
|
1234
1222
|
verbatimCoordinates: "40.123, -74.123",
|
|
1235
1223
|
verbatimLatitude: "40.123",
|
|
@@ -1370,10 +1358,10 @@ const bn = [
|
|
|
1370
1358
|
verbatimLatitude: "40 7 22.8",
|
|
1371
1359
|
verbatimLongitude: "-74 7 22.8"
|
|
1372
1360
|
}
|
|
1373
|
-
],
|
|
1361
|
+
], Sn = {
|
|
1374
1362
|
decimalLatitude: 40.123,
|
|
1375
1363
|
decimalLongitude: -74.123
|
|
1376
|
-
},
|
|
1364
|
+
}, Tn = [
|
|
1377
1365
|
{
|
|
1378
1366
|
verbatimCoordinates: `50°4'17.698"south, 14°24'2.826"east`,
|
|
1379
1367
|
verbatimLatitude: `50°4'17.698"south`,
|
|
@@ -1458,7 +1446,7 @@ const bn = [
|
|
|
1458
1446
|
decimalLatitude: -18.4,
|
|
1459
1447
|
decimalLongitude: 22.75
|
|
1460
1448
|
}
|
|
1461
|
-
],
|
|
1449
|
+
], Nn = [
|
|
1462
1450
|
{
|
|
1463
1451
|
verbatimCoordinates: "10.432342S 10.6345345E",
|
|
1464
1452
|
verbatimLatitude: "10.432342S",
|
|
@@ -1593,49 +1581,49 @@ const bn = [
|
|
|
1593
1581
|
decimalLongitude: 18.33453
|
|
1594
1582
|
}
|
|
1595
1583
|
];
|
|
1596
|
-
function
|
|
1584
|
+
function kn() {
|
|
1597
1585
|
const i = [];
|
|
1598
|
-
return
|
|
1599
|
-
e.decimalLatitude ? i.push(e) : i.push({ ...e, ...
|
|
1600
|
-
}), [...i, ...
|
|
1601
|
-
}
|
|
1602
|
-
const
|
|
1603
|
-
|
|
1604
|
-
const
|
|
1605
|
-
function
|
|
1586
|
+
return En.forEach((e) => {
|
|
1587
|
+
e.decimalLatitude ? i.push(e) : i.push({ ...e, ...Sn });
|
|
1588
|
+
}), [...i, ...Tn, ...Nn];
|
|
1589
|
+
}
|
|
1590
|
+
const Mn = kn();
|
|
1591
|
+
vt.formats = Mn.map((i) => i.verbatimCoordinates);
|
|
1592
|
+
const Cn = vt;
|
|
1593
|
+
function Ht(i, e, t) {
|
|
1606
1594
|
const n = i.slice();
|
|
1607
|
-
return n[
|
|
1595
|
+
return n[97] = e[t], n[99] = t, n;
|
|
1608
1596
|
}
|
|
1609
|
-
function
|
|
1597
|
+
function Zt(i) {
|
|
1610
1598
|
let e, t;
|
|
1611
|
-
return e = new
|
|
1599
|
+
return e = new fn({}), {
|
|
1612
1600
|
c() {
|
|
1613
|
-
|
|
1601
|
+
he(e.$$.fragment);
|
|
1614
1602
|
},
|
|
1615
1603
|
m(n, r) {
|
|
1616
|
-
|
|
1604
|
+
ue(e, n, r), t = !0;
|
|
1617
1605
|
},
|
|
1618
1606
|
i(n) {
|
|
1619
|
-
t || (
|
|
1607
|
+
t || (j(e.$$.fragment, n), t = !0);
|
|
1620
1608
|
},
|
|
1621
1609
|
o(n) {
|
|
1622
|
-
|
|
1610
|
+
Q(e.$$.fragment, n), t = !1;
|
|
1623
1611
|
},
|
|
1624
1612
|
d(n) {
|
|
1625
|
-
|
|
1613
|
+
ce(e, n);
|
|
1626
1614
|
}
|
|
1627
1615
|
};
|
|
1628
1616
|
}
|
|
1629
|
-
function
|
|
1617
|
+
function qt(i) {
|
|
1630
1618
|
let e, t, n, r, u;
|
|
1631
|
-
return t = new
|
|
1619
|
+
return t = new gn({}), {
|
|
1632
1620
|
c() {
|
|
1633
|
-
e = U("button"),
|
|
1621
|
+
e = U("button"), he(t.$$.fragment), a(e, "type", "button"), a(
|
|
1634
1622
|
e,
|
|
1635
1623
|
"title",
|
|
1636
1624
|
/*reverseButtonTitle*/
|
|
1637
1625
|
i[10]
|
|
1638
|
-
), a(e, "class", "svelte-bz0zu3"),
|
|
1626
|
+
), a(e, "class", "svelte-bz0zu3"), ke(
|
|
1639
1627
|
e,
|
|
1640
1628
|
"active",
|
|
1641
1629
|
/*reverseActive*/
|
|
@@ -1643,11 +1631,11 @@ function Bt(i) {
|
|
|
1643
1631
|
);
|
|
1644
1632
|
},
|
|
1645
1633
|
m(l, o) {
|
|
1646
|
-
|
|
1634
|
+
B(l, e, o), ue(t, e, null), n = !0, r || (u = q(
|
|
1647
1635
|
e,
|
|
1648
1636
|
"click",
|
|
1649
1637
|
/*click_handler_3*/
|
|
1650
|
-
i[
|
|
1638
|
+
i[79]
|
|
1651
1639
|
), r = !0);
|
|
1652
1640
|
},
|
|
1653
1641
|
p(l, o) {
|
|
@@ -1658,7 +1646,7 @@ function Bt(i) {
|
|
|
1658
1646
|
/*reverseButtonTitle*/
|
|
1659
1647
|
l[10]
|
|
1660
1648
|
), (!n || o[0] & /*reverseActive*/
|
|
1661
|
-
1) &&
|
|
1649
|
+
1) && ke(
|
|
1662
1650
|
e,
|
|
1663
1651
|
"active",
|
|
1664
1652
|
/*reverseActive*/
|
|
@@ -1666,30 +1654,30 @@ function Bt(i) {
|
|
|
1666
1654
|
);
|
|
1667
1655
|
},
|
|
1668
1656
|
i(l) {
|
|
1669
|
-
n || (
|
|
1657
|
+
n || (j(t.$$.fragment, l), n = !0);
|
|
1670
1658
|
},
|
|
1671
1659
|
o(l) {
|
|
1672
|
-
|
|
1660
|
+
Q(t.$$.fragment, l), n = !1;
|
|
1673
1661
|
},
|
|
1674
1662
|
d(l) {
|
|
1675
|
-
l &&
|
|
1663
|
+
l && I(e), ce(t), r = !1, u();
|
|
1676
1664
|
}
|
|
1677
1665
|
};
|
|
1678
1666
|
}
|
|
1679
|
-
function
|
|
1680
|
-
let e, t = [], n = /* @__PURE__ */ new Map(), r, u, l, o =
|
|
1667
|
+
function Wn(i) {
|
|
1668
|
+
let e, t = [], n = /* @__PURE__ */ new Map(), r, u, l, o = Rt(
|
|
1681
1669
|
/*listFeatures*/
|
|
1682
1670
|
i[13]
|
|
1683
1671
|
);
|
|
1684
1672
|
const d = (c) => (
|
|
1685
1673
|
/*feature*/
|
|
1686
|
-
c[
|
|
1687
|
-
(c[
|
|
1688
|
-
c[
|
|
1674
|
+
c[97].id + /*feature*/
|
|
1675
|
+
(c[97].address ? "," + /*feature*/
|
|
1676
|
+
c[97].address : "")
|
|
1689
1677
|
);
|
|
1690
1678
|
for (let c = 0; c < o.length; c += 1) {
|
|
1691
|
-
let f =
|
|
1692
|
-
n.set(g, t[c] =
|
|
1679
|
+
let f = Ht(i, o, c), g = d(f);
|
|
1680
|
+
n.set(g, t[c] = Qt(g, f));
|
|
1693
1681
|
}
|
|
1694
1682
|
return {
|
|
1695
1683
|
c() {
|
|
@@ -1699,23 +1687,23 @@ function En(i) {
|
|
|
1699
1687
|
a(e, "class", "options svelte-bz0zu3"), a(e, "role", "listbox");
|
|
1700
1688
|
},
|
|
1701
1689
|
m(c, f) {
|
|
1702
|
-
|
|
1690
|
+
B(c, e, f);
|
|
1703
1691
|
for (let g = 0; g < t.length; g += 1)
|
|
1704
1692
|
t[g] && t[g].m(e, null);
|
|
1705
1693
|
r = !0, u || (l = [
|
|
1706
|
-
|
|
1694
|
+
q(
|
|
1707
1695
|
e,
|
|
1708
1696
|
"mouseleave",
|
|
1709
1697
|
/*handleMouseLeave*/
|
|
1710
1698
|
i[27]
|
|
1711
1699
|
),
|
|
1712
|
-
|
|
1700
|
+
q(
|
|
1713
1701
|
e,
|
|
1714
1702
|
"blur",
|
|
1715
1703
|
/*blur_handler_1*/
|
|
1716
|
-
i[
|
|
1704
|
+
i[83]
|
|
1717
1705
|
),
|
|
1718
|
-
|
|
1706
|
+
q(
|
|
1719
1707
|
e,
|
|
1720
1708
|
"keydown",
|
|
1721
1709
|
/*handleKeyDown*/
|
|
@@ -1725,141 +1713,141 @@ function En(i) {
|
|
|
1725
1713
|
},
|
|
1726
1714
|
p(c, f) {
|
|
1727
1715
|
f[0] & /*listFeatures, showPlaceType, selectedItemIndex, picked, missingIconsCache, iconsBaseUrl, handleMouseEnter, pick*/
|
|
1728
|
-
102823936 && (o =
|
|
1716
|
+
102823936 && (o = Rt(
|
|
1729
1717
|
/*listFeatures*/
|
|
1730
1718
|
c[13]
|
|
1731
|
-
),
|
|
1719
|
+
), Ye(), t = Vi(t, f, d, 1, c, o, n, e, Ki, Qt, null, Ht), Xe());
|
|
1732
1720
|
},
|
|
1733
1721
|
i(c) {
|
|
1734
1722
|
if (!r) {
|
|
1735
1723
|
for (let f = 0; f < o.length; f += 1)
|
|
1736
|
-
|
|
1724
|
+
j(t[f]);
|
|
1737
1725
|
r = !0;
|
|
1738
1726
|
}
|
|
1739
1727
|
},
|
|
1740
1728
|
o(c) {
|
|
1741
1729
|
for (let f = 0; f < t.length; f += 1)
|
|
1742
|
-
|
|
1730
|
+
Q(t[f]);
|
|
1743
1731
|
r = !1;
|
|
1744
1732
|
},
|
|
1745
1733
|
d(c) {
|
|
1746
|
-
c &&
|
|
1734
|
+
c && I(e);
|
|
1747
1735
|
for (let f = 0; f < t.length; f += 1)
|
|
1748
1736
|
t[f].d();
|
|
1749
|
-
u = !1,
|
|
1737
|
+
u = !1, de(l);
|
|
1750
1738
|
}
|
|
1751
1739
|
};
|
|
1752
1740
|
}
|
|
1753
|
-
function
|
|
1741
|
+
function zn(i) {
|
|
1754
1742
|
let e, t, n, r, u, l;
|
|
1755
|
-
return t = new
|
|
1743
|
+
return t = new ii({}), {
|
|
1756
1744
|
c() {
|
|
1757
|
-
e = U("div"),
|
|
1745
|
+
e = U("div"), he(t.$$.fragment), n = $(), r = U("div"), u = ge(
|
|
1758
1746
|
/*noResultsMessage*/
|
|
1759
1747
|
i[8]
|
|
1760
1748
|
), a(r, "class", "svelte-bz0zu3"), a(e, "class", "no-results svelte-bz0zu3");
|
|
1761
1749
|
},
|
|
1762
1750
|
m(o, d) {
|
|
1763
|
-
|
|
1751
|
+
B(o, e, d), ue(t, e, null), M(e, n), M(e, r), M(r, u), l = !0;
|
|
1764
1752
|
},
|
|
1765
1753
|
p(o, d) {
|
|
1766
1754
|
(!l || d[0] & /*noResultsMessage*/
|
|
1767
|
-
256) &&
|
|
1755
|
+
256) && Ie(
|
|
1768
1756
|
u,
|
|
1769
1757
|
/*noResultsMessage*/
|
|
1770
1758
|
o[8]
|
|
1771
1759
|
);
|
|
1772
1760
|
},
|
|
1773
1761
|
i(o) {
|
|
1774
|
-
l || (
|
|
1762
|
+
l || (j(t.$$.fragment, o), l = !0);
|
|
1775
1763
|
},
|
|
1776
1764
|
o(o) {
|
|
1777
|
-
|
|
1765
|
+
Q(t.$$.fragment, o), l = !1;
|
|
1778
1766
|
},
|
|
1779
1767
|
d(o) {
|
|
1780
|
-
o &&
|
|
1768
|
+
o && I(e), ce(t);
|
|
1781
1769
|
}
|
|
1782
1770
|
};
|
|
1783
1771
|
}
|
|
1784
|
-
function
|
|
1772
|
+
function On(i) {
|
|
1785
1773
|
let e = "", t;
|
|
1786
1774
|
return {
|
|
1787
1775
|
c() {
|
|
1788
|
-
t =
|
|
1776
|
+
t = ge(e);
|
|
1789
1777
|
},
|
|
1790
1778
|
m(n, r) {
|
|
1791
|
-
|
|
1779
|
+
B(n, t, r);
|
|
1792
1780
|
},
|
|
1793
1781
|
p: P,
|
|
1794
1782
|
i: P,
|
|
1795
1783
|
o: P,
|
|
1796
1784
|
d(n) {
|
|
1797
|
-
n &&
|
|
1785
|
+
n && I(t);
|
|
1798
1786
|
}
|
|
1799
1787
|
};
|
|
1800
1788
|
}
|
|
1801
|
-
function
|
|
1789
|
+
function Rn(i) {
|
|
1802
1790
|
let e, t, n, r, u, l, o, d, c, f, g;
|
|
1803
|
-
return t = new
|
|
1791
|
+
return t = new ii({}), d = new ti({}), {
|
|
1804
1792
|
c() {
|
|
1805
|
-
e = U("div"),
|
|
1793
|
+
e = U("div"), he(t.$$.fragment), n = $(), r = U("div"), u = ge(
|
|
1806
1794
|
/*errorMessage*/
|
|
1807
1795
|
i[7]
|
|
1808
|
-
), l =
|
|
1796
|
+
), l = $(), o = U("button"), he(d.$$.fragment), a(r, "class", "svelte-bz0zu3"), a(o, "class", "svelte-bz0zu3"), a(e, "class", "error svelte-bz0zu3");
|
|
1809
1797
|
},
|
|
1810
1798
|
m(b, _) {
|
|
1811
|
-
|
|
1799
|
+
B(b, e, _), ue(t, e, null), M(e, n), M(e, r), M(r, u), M(e, l), M(e, o), ue(d, o, null), c = !0, f || (g = q(
|
|
1812
1800
|
o,
|
|
1813
1801
|
"click",
|
|
1814
1802
|
/*click_handler_4*/
|
|
1815
|
-
i[
|
|
1803
|
+
i[80]
|
|
1816
1804
|
), f = !0);
|
|
1817
1805
|
},
|
|
1818
1806
|
p(b, _) {
|
|
1819
1807
|
(!c || _[0] & /*errorMessage*/
|
|
1820
|
-
128) &&
|
|
1808
|
+
128) && Ie(
|
|
1821
1809
|
u,
|
|
1822
1810
|
/*errorMessage*/
|
|
1823
1811
|
b[7]
|
|
1824
1812
|
);
|
|
1825
1813
|
},
|
|
1826
1814
|
i(b) {
|
|
1827
|
-
c || (
|
|
1815
|
+
c || (j(t.$$.fragment, b), j(d.$$.fragment, b), c = !0);
|
|
1828
1816
|
},
|
|
1829
1817
|
o(b) {
|
|
1830
|
-
|
|
1818
|
+
Q(t.$$.fragment, b), Q(d.$$.fragment, b), c = !1;
|
|
1831
1819
|
},
|
|
1832
1820
|
d(b) {
|
|
1833
|
-
b &&
|
|
1821
|
+
b && I(e), ce(t), ce(d), f = !1, g();
|
|
1834
1822
|
}
|
|
1835
1823
|
};
|
|
1836
1824
|
}
|
|
1837
|
-
function
|
|
1825
|
+
function Qt(i, e) {
|
|
1838
1826
|
var o;
|
|
1839
1827
|
let t, n, r;
|
|
1840
1828
|
function u() {
|
|
1841
1829
|
return (
|
|
1842
1830
|
/*mouseenter_handler*/
|
|
1843
|
-
e[
|
|
1831
|
+
e[81](
|
|
1844
1832
|
/*i*/
|
|
1845
|
-
e[
|
|
1833
|
+
e[99]
|
|
1846
1834
|
)
|
|
1847
1835
|
);
|
|
1848
1836
|
}
|
|
1849
1837
|
function l() {
|
|
1850
1838
|
return (
|
|
1851
1839
|
/*select_handler*/
|
|
1852
|
-
e[
|
|
1840
|
+
e[82](
|
|
1853
1841
|
/*feature*/
|
|
1854
|
-
e[
|
|
1842
|
+
e[97]
|
|
1855
1843
|
)
|
|
1856
1844
|
);
|
|
1857
1845
|
}
|
|
1858
|
-
return n = new
|
|
1846
|
+
return n = new cn({
|
|
1859
1847
|
props: {
|
|
1860
1848
|
feature: (
|
|
1861
1849
|
/*feature*/
|
|
1862
|
-
e[
|
|
1850
|
+
e[97]
|
|
1863
1851
|
),
|
|
1864
1852
|
showPlaceType: (
|
|
1865
1853
|
/*showPlaceType*/
|
|
@@ -1868,10 +1856,10 @@ function Pt(i, e) {
|
|
|
1868
1856
|
style: (
|
|
1869
1857
|
/*selectedItemIndex*/
|
|
1870
1858
|
e[15] === /*i*/
|
|
1871
|
-
e[
|
|
1859
|
+
e[99] ? "selected" : (
|
|
1872
1860
|
/*picked*/
|
|
1873
1861
|
((o = e[14]) == null ? void 0 : o.id) === /*feature*/
|
|
1874
|
-
e[
|
|
1862
|
+
e[97].id ? "picked" : "default"
|
|
1875
1863
|
)
|
|
1876
1864
|
),
|
|
1877
1865
|
missingIconsCache: (
|
|
@@ -1887,10 +1875,10 @@ function Pt(i, e) {
|
|
|
1887
1875
|
key: i,
|
|
1888
1876
|
first: null,
|
|
1889
1877
|
c() {
|
|
1890
|
-
t =
|
|
1878
|
+
t = Ai(), he(n.$$.fragment), this.first = t;
|
|
1891
1879
|
},
|
|
1892
1880
|
m(d, c) {
|
|
1893
|
-
|
|
1881
|
+
B(d, t, c), ue(n, d, c), r = !0;
|
|
1894
1882
|
},
|
|
1895
1883
|
p(d, c) {
|
|
1896
1884
|
var g;
|
|
@@ -1898,70 +1886,70 @@ function Pt(i, e) {
|
|
|
1898
1886
|
const f = {};
|
|
1899
1887
|
c[0] & /*listFeatures*/
|
|
1900
1888
|
8192 && (f.feature = /*feature*/
|
|
1901
|
-
e[
|
|
1889
|
+
e[97]), c[0] & /*showPlaceType*/
|
|
1902
1890
|
2048 && (f.showPlaceType = /*showPlaceType*/
|
|
1903
1891
|
e[11]), c[0] & /*selectedItemIndex, listFeatures, picked*/
|
|
1904
1892
|
57344 && (f.style = /*selectedItemIndex*/
|
|
1905
1893
|
e[15] === /*i*/
|
|
1906
|
-
e[
|
|
1894
|
+
e[99] ? "selected" : (
|
|
1907
1895
|
/*picked*/
|
|
1908
1896
|
((g = e[14]) == null ? void 0 : g.id) === /*feature*/
|
|
1909
|
-
e[
|
|
1897
|
+
e[97].id ? "picked" : "default"
|
|
1910
1898
|
)), c[0] & /*iconsBaseUrl*/
|
|
1911
1899
|
4096 && (f.iconsBaseUrl = /*iconsBaseUrl*/
|
|
1912
1900
|
e[12]), n.$set(f);
|
|
1913
1901
|
},
|
|
1914
1902
|
i(d) {
|
|
1915
|
-
r || (
|
|
1903
|
+
r || (j(n.$$.fragment, d), r = !0);
|
|
1916
1904
|
},
|
|
1917
1905
|
o(d) {
|
|
1918
|
-
|
|
1906
|
+
Q(n.$$.fragment, d), r = !1;
|
|
1919
1907
|
},
|
|
1920
1908
|
d(d) {
|
|
1921
|
-
d &&
|
|
1909
|
+
d && I(t), ce(n, d);
|
|
1922
1910
|
}
|
|
1923
1911
|
};
|
|
1924
1912
|
}
|
|
1925
|
-
function
|
|
1926
|
-
let e, t, n, r, u, l, o, d, c, f, g, b, _, w,
|
|
1927
|
-
u = new
|
|
1928
|
-
let
|
|
1913
|
+
function Un(i) {
|
|
1914
|
+
let e, t, n, r, u, l, o, d, c, f, g, b, _, w, D, E, S, z, W, Z, V, C = !1;
|
|
1915
|
+
u = new bn({}), g = new ti({});
|
|
1916
|
+
let v = (
|
|
1929
1917
|
/*abortController*/
|
|
1930
|
-
i[20] &&
|
|
1918
|
+
i[20] && Zt()
|
|
1931
1919
|
), y = (
|
|
1932
1920
|
/*enableReverse*/
|
|
1933
|
-
i[6] === "button" &&
|
|
1921
|
+
i[6] === "button" && qt(i)
|
|
1934
1922
|
);
|
|
1935
|
-
const
|
|
1923
|
+
const N = (
|
|
1936
1924
|
/*#slots*/
|
|
1937
|
-
i[
|
|
1938
|
-
),
|
|
1939
|
-
|
|
1925
|
+
i[70].default
|
|
1926
|
+
), k = Ri(
|
|
1927
|
+
N,
|
|
1940
1928
|
i,
|
|
1941
1929
|
/*$$scope*/
|
|
1942
|
-
i[
|
|
1930
|
+
i[69],
|
|
1943
1931
|
null
|
|
1944
|
-
), p = [
|
|
1945
|
-
function
|
|
1946
|
-
var
|
|
1932
|
+
), p = [Rn, On, zn, Wn], m = [];
|
|
1933
|
+
function be(L, F) {
|
|
1934
|
+
var ne, ee;
|
|
1947
1935
|
return (
|
|
1948
1936
|
/*error*/
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1937
|
+
L[19] ? 0 : !/*focusedDelayed*/
|
|
1938
|
+
L[16] && !/*keepListOpen*/
|
|
1939
|
+
L[4] ? 1 : (
|
|
1952
1940
|
/*listFeatures*/
|
|
1953
|
-
((
|
|
1941
|
+
((ne = L[13]) == null ? void 0 : ne.length) === 0 ? 2 : (
|
|
1954
1942
|
/*listFeatures*/
|
|
1955
|
-
(
|
|
1956
|
-
(
|
|
1957
|
-
|
|
1943
|
+
(ee = L[13]) != null && ee.length && /*focusedDelayed*/
|
|
1944
|
+
(L[16] || /*keepListOpen*/
|
|
1945
|
+
L[4]) ? 3 : -1
|
|
1958
1946
|
)
|
|
1959
1947
|
)
|
|
1960
1948
|
);
|
|
1961
1949
|
}
|
|
1962
|
-
return ~(
|
|
1950
|
+
return ~(E = be(i)) && (S = m[E] = p[E](i)), {
|
|
1963
1951
|
c() {
|
|
1964
|
-
e =
|
|
1952
|
+
e = $(), t = U("form"), n = U("div"), r = U("button"), he(u.$$.fragment), l = $(), o = U("input"), d = $(), c = U("div"), f = U("button"), he(g.$$.fragment), b = $(), v && v.c(), _ = $(), y && y.c(), w = $(), k && k.c(), D = $(), S && S.c(), a(r, "class", "search-button svelte-bz0zu3"), a(r, "type", "button"), a(
|
|
1965
1953
|
o,
|
|
1966
1954
|
"placeholder",
|
|
1967
1955
|
/*placeholder*/
|
|
@@ -1976,15 +1964,15 @@ function kn(i) {
|
|
|
1976
1964
|
"title",
|
|
1977
1965
|
/*clearButtonTitle*/
|
|
1978
1966
|
i[3]
|
|
1979
|
-
), a(f, "class", "svelte-bz0zu3"), a(c, "class", "clear-button-container svelte-bz0zu3"),
|
|
1967
|
+
), a(f, "class", "svelte-bz0zu3"), a(c, "class", "clear-button-container svelte-bz0zu3"), ke(
|
|
1980
1968
|
c,
|
|
1981
1969
|
"displayable",
|
|
1982
1970
|
/*searchValue*/
|
|
1983
1971
|
i[1] !== ""
|
|
1984
|
-
), a(n, "class", "input-group svelte-bz0zu3"), a(t, "class", z =
|
|
1972
|
+
), a(n, "class", "input-group svelte-bz0zu3"), a(t, "class", z = Je(
|
|
1985
1973
|
/*className*/
|
|
1986
1974
|
i[2]
|
|
1987
|
-
) + " svelte-bz0zu3"),
|
|
1975
|
+
) + " svelte-bz0zu3"), ke(
|
|
1988
1976
|
t,
|
|
1989
1977
|
"can-collapse",
|
|
1990
1978
|
/*collapsed*/
|
|
@@ -1992,158 +1980,158 @@ function kn(i) {
|
|
|
1992
1980
|
i[1] === ""
|
|
1993
1981
|
);
|
|
1994
1982
|
},
|
|
1995
|
-
m(
|
|
1996
|
-
|
|
1983
|
+
m(L, F) {
|
|
1984
|
+
B(L, e, F), B(L, t, F), M(t, n), M(n, r), ue(u, r, null), M(n, l), M(n, o), i[72](o), zt(
|
|
1997
1985
|
o,
|
|
1998
1986
|
/*searchValue*/
|
|
1999
1987
|
i[1]
|
|
2000
|
-
),
|
|
2001
|
-
|
|
1988
|
+
), M(n, d), M(n, c), M(c, f), ue(g, f, null), M(c, b), v && v.m(c, null), M(n, _), y && y.m(n, null), M(n, w), k && k.m(n, null), M(t, D), ~E && m[E].m(t, null), W = !0, Z || (V = [
|
|
1989
|
+
q(
|
|
2002
1990
|
r,
|
|
2003
1991
|
"click",
|
|
2004
1992
|
/*click_handler*/
|
|
2005
|
-
i[
|
|
1993
|
+
i[71]
|
|
2006
1994
|
),
|
|
2007
|
-
|
|
1995
|
+
q(
|
|
2008
1996
|
o,
|
|
2009
1997
|
"input",
|
|
2010
1998
|
/*input_1_input_handler*/
|
|
2011
|
-
i[
|
|
1999
|
+
i[73]
|
|
2012
2000
|
),
|
|
2013
|
-
|
|
2001
|
+
q(
|
|
2014
2002
|
o,
|
|
2015
2003
|
"focus",
|
|
2016
2004
|
/*focus_handler*/
|
|
2017
|
-
i[
|
|
2005
|
+
i[74]
|
|
2018
2006
|
),
|
|
2019
|
-
|
|
2007
|
+
q(
|
|
2020
2008
|
o,
|
|
2021
2009
|
"blur",
|
|
2022
2010
|
/*blur_handler*/
|
|
2023
|
-
i[
|
|
2011
|
+
i[75]
|
|
2024
2012
|
),
|
|
2025
|
-
|
|
2013
|
+
q(
|
|
2026
2014
|
o,
|
|
2027
2015
|
"click",
|
|
2028
2016
|
/*click_handler_1*/
|
|
2029
|
-
i[
|
|
2017
|
+
i[76]
|
|
2030
2018
|
),
|
|
2031
|
-
|
|
2019
|
+
q(
|
|
2032
2020
|
o,
|
|
2033
2021
|
"keydown",
|
|
2034
2022
|
/*handleKeyDown*/
|
|
2035
2023
|
i[23]
|
|
2036
2024
|
),
|
|
2037
|
-
|
|
2025
|
+
q(
|
|
2038
2026
|
o,
|
|
2039
2027
|
"input",
|
|
2040
2028
|
/*handleInput*/
|
|
2041
2029
|
i[24]
|
|
2042
2030
|
),
|
|
2043
|
-
|
|
2031
|
+
q(
|
|
2044
2032
|
o,
|
|
2045
2033
|
"change",
|
|
2046
2034
|
/*change_handler*/
|
|
2047
|
-
i[
|
|
2035
|
+
i[77]
|
|
2048
2036
|
),
|
|
2049
|
-
|
|
2037
|
+
q(
|
|
2050
2038
|
f,
|
|
2051
2039
|
"click",
|
|
2052
2040
|
/*click_handler_2*/
|
|
2053
|
-
i[
|
|
2041
|
+
i[78]
|
|
2054
2042
|
),
|
|
2055
|
-
|
|
2043
|
+
q(t, "submit", Pi(
|
|
2056
2044
|
/*handleSubmit*/
|
|
2057
2045
|
i[22]
|
|
2058
2046
|
))
|
|
2059
|
-
],
|
|
2047
|
+
], Z = !0);
|
|
2060
2048
|
},
|
|
2061
|
-
p(
|
|
2062
|
-
(!
|
|
2049
|
+
p(L, F) {
|
|
2050
|
+
(!W || F[0] & /*placeholder*/
|
|
2063
2051
|
512) && a(
|
|
2064
2052
|
o,
|
|
2065
2053
|
"placeholder",
|
|
2066
2054
|
/*placeholder*/
|
|
2067
|
-
|
|
2068
|
-
), (!
|
|
2055
|
+
L[9]
|
|
2056
|
+
), (!W || F[0] & /*placeholder*/
|
|
2069
2057
|
512) && a(
|
|
2070
2058
|
o,
|
|
2071
2059
|
"aria-label",
|
|
2072
2060
|
/*placeholder*/
|
|
2073
|
-
|
|
2074
|
-
),
|
|
2061
|
+
L[9]
|
|
2062
|
+
), F[0] & /*searchValue*/
|
|
2075
2063
|
2 && o.value !== /*searchValue*/
|
|
2076
|
-
|
|
2064
|
+
L[1] && zt(
|
|
2077
2065
|
o,
|
|
2078
2066
|
/*searchValue*/
|
|
2079
|
-
|
|
2080
|
-
), (!
|
|
2067
|
+
L[1]
|
|
2068
|
+
), (!W || F[0] & /*clearButtonTitle*/
|
|
2081
2069
|
8) && a(
|
|
2082
2070
|
f,
|
|
2083
2071
|
"title",
|
|
2084
2072
|
/*clearButtonTitle*/
|
|
2085
|
-
|
|
2073
|
+
L[3]
|
|
2086
2074
|
), /*abortController*/
|
|
2087
|
-
|
|
2088
|
-
1048576 &&
|
|
2089
|
-
|
|
2090
|
-
}),
|
|
2091
|
-
2) &&
|
|
2075
|
+
L[20] ? v ? F[0] & /*abortController*/
|
|
2076
|
+
1048576 && j(v, 1) : (v = Zt(), v.c(), j(v, 1), v.m(c, null)) : v && (Ye(), Q(v, 1, 1, () => {
|
|
2077
|
+
v = null;
|
|
2078
|
+
}), Xe()), (!W || F[0] & /*searchValue*/
|
|
2079
|
+
2) && ke(
|
|
2092
2080
|
c,
|
|
2093
2081
|
"displayable",
|
|
2094
2082
|
/*searchValue*/
|
|
2095
|
-
|
|
2083
|
+
L[1] !== ""
|
|
2096
2084
|
), /*enableReverse*/
|
|
2097
|
-
|
|
2098
|
-
64 &&
|
|
2085
|
+
L[6] === "button" ? y ? (y.p(L, F), F[0] & /*enableReverse*/
|
|
2086
|
+
64 && j(y, 1)) : (y = qt(L), y.c(), j(y, 1), y.m(n, w)) : y && (Ye(), Q(y, 1, 1, () => {
|
|
2099
2087
|
y = null;
|
|
2100
|
-
}),
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2088
|
+
}), Xe()), k && k.p && (!W || F[2] & /*$$scope*/
|
|
2089
|
+
128) && Di(
|
|
2090
|
+
k,
|
|
2091
|
+
N,
|
|
2092
|
+
L,
|
|
2105
2093
|
/*$$scope*/
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2094
|
+
L[69],
|
|
2095
|
+
W ? Ui(
|
|
2096
|
+
N,
|
|
2109
2097
|
/*$$scope*/
|
|
2110
|
-
|
|
2111
|
-
|
|
2098
|
+
L[69],
|
|
2099
|
+
F,
|
|
2112
2100
|
null
|
|
2113
|
-
) :
|
|
2101
|
+
) : Ii(
|
|
2114
2102
|
/*$$scope*/
|
|
2115
|
-
|
|
2103
|
+
L[69]
|
|
2116
2104
|
),
|
|
2117
2105
|
null
|
|
2118
2106
|
);
|
|
2119
|
-
let
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
}),
|
|
2123
|
-
4 && z !== (z =
|
|
2107
|
+
let ne = E;
|
|
2108
|
+
E = be(L), E === ne ? ~E && m[E].p(L, F) : (S && (Ye(), Q(m[ne], 1, 1, () => {
|
|
2109
|
+
m[ne] = null;
|
|
2110
|
+
}), Xe()), ~E ? (S = m[E], S ? S.p(L, F) : (S = m[E] = p[E](L), S.c()), j(S, 1), S.m(t, null)) : S = null), (!W || F[0] & /*className*/
|
|
2111
|
+
4 && z !== (z = Je(
|
|
2124
2112
|
/*className*/
|
|
2125
|
-
|
|
2126
|
-
) + " svelte-bz0zu3")) && a(t, "class", z), (!
|
|
2127
|
-
38) &&
|
|
2113
|
+
L[2]
|
|
2114
|
+
) + " svelte-bz0zu3")) && a(t, "class", z), (!W || F[0] & /*className, collapsed, searchValue*/
|
|
2115
|
+
38) && ke(
|
|
2128
2116
|
t,
|
|
2129
2117
|
"can-collapse",
|
|
2130
2118
|
/*collapsed*/
|
|
2131
|
-
|
|
2132
|
-
|
|
2119
|
+
L[5] && /*searchValue*/
|
|
2120
|
+
L[1] === ""
|
|
2133
2121
|
);
|
|
2134
2122
|
},
|
|
2135
|
-
i(
|
|
2136
|
-
|
|
2123
|
+
i(L) {
|
|
2124
|
+
W || (j(C), j(u.$$.fragment, L), j(g.$$.fragment, L), j(v), j(y), j(k, L), j(S), W = !0);
|
|
2137
2125
|
},
|
|
2138
|
-
o(
|
|
2139
|
-
|
|
2126
|
+
o(L) {
|
|
2127
|
+
Q(C), Q(u.$$.fragment, L), Q(g.$$.fragment, L), Q(v), Q(y), Q(k, L), Q(S), W = !1;
|
|
2140
2128
|
},
|
|
2141
|
-
d(
|
|
2142
|
-
|
|
2129
|
+
d(L) {
|
|
2130
|
+
L && (I(e), I(t)), ce(u), i[72](null), ce(g), v && v.d(), y && y.d(), k && k.d(L), ~E && m[E].d(), Z = !1, de(V);
|
|
2143
2131
|
}
|
|
2144
2132
|
};
|
|
2145
2133
|
}
|
|
2146
|
-
function
|
|
2134
|
+
function Dn(i, e, t) {
|
|
2147
2135
|
let n, r, u, { $$slots: l = {}, $$scope: o } = e;
|
|
2148
2136
|
const d = {
|
|
2149
2137
|
continental_marine: 4,
|
|
@@ -2169,351 +2157,355 @@ function Mn(i, e, t) {
|
|
|
2169
2157
|
"poi.restaurant": 18,
|
|
2170
2158
|
"poi.aerodrome": 13
|
|
2171
2159
|
};
|
|
2172
|
-
let { class: c = void 0 } = e, { apiKey: f } = e, { bbox: g = void 0 } = e, { clearButtonTitle: b = "clear" } = e, { clearOnBlur: _ = !1 } = e, { clearListOnPick: w = !1 } = e, { keepListOpen:
|
|
2173
|
-
|
|
2160
|
+
let { class: c = void 0 } = e, { apiKey: f } = e, { bbox: g = void 0 } = e, { clearButtonTitle: b = "clear" } = e, { clearOnBlur: _ = !1 } = e, { clearListOnPick: w = !1 } = e, { keepListOpen: D = !1 } = e, { collapsed: E = !1 } = e, { country: S = void 0 } = e, { debounceSearch: z = 200 } = e, { enableReverse: W = "never" } = e, { errorMessage: Z = "Something went wrong…" } = e, { filter: V = () => !0 } = e, { flyTo: C = !0 } = e, { fuzzyMatch: v = !0 } = e, { language: y = void 0 } = e, { limit: N = void 0 } = e;
|
|
2161
|
+
const k = 41415112612;
|
|
2162
|
+
let { reverseGeocodingLimit: p = k } = e, { mapController: m = void 0 } = e, { minLength: be = 2 } = e, { noResultsMessage: L = "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: F = "Search" } = e, { proximity: ne = [{ type: "server-geolocation" }] } = e, { reverseActive: ee = W === "always" } = e, { reverseButtonTitle: Lt = "toggle reverse geocoding" } = e, { searchValue: K = "" } = e, { pickedResultStyle: Pe = "full-geometry" } = e, { showPlaceType: _t = "if-needed" } = e, { showResultsWhileTyping: Be = !0 } = e, { selectFirst: pe = !0 } = e, { flyToSelected: Fe = !1 } = e, { markerOnSelected: Ge = !0 } = e, { types: xe = void 0 } = e;
|
|
2163
|
+
const yt = [];
|
|
2164
|
+
let { reverseGeocodingTypes: je = yt } = e, { exhaustiveReverseGeocoding: $e = !1 } = e, { excludeTypes: et = !1 } = e;
|
|
2165
|
+
const wt = void 0;
|
|
2166
|
+
let { reverseGeocodingExcludeTypes: He = wt } = e, { zoom: Ze = d } = e, { apiUrl: tt = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: it = {} } = e, { iconsBaseUrl: pt = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.1.2/icons/" } = e, { adjustUrlQuery: nt = () => {
|
|
2167
|
+
} } = e, { adjustUrl: rt = () => {
|
|
2174
2168
|
} } = e;
|
|
2175
|
-
function
|
|
2176
|
-
|
|
2169
|
+
function ni(s) {
|
|
2170
|
+
ie.focus(s);
|
|
2177
2171
|
}
|
|
2178
|
-
function
|
|
2179
|
-
|
|
2172
|
+
function ri() {
|
|
2173
|
+
ie.blur();
|
|
2180
2174
|
}
|
|
2181
|
-
function
|
|
2182
|
-
t(1,
|
|
2183
|
-
|
|
2175
|
+
function Et(s, A = !0, G = !1) {
|
|
2176
|
+
t(1, K = s), A ? (t(15, O = -1), Tt()) : (Nt(void 0, !G, G), setTimeout(() => {
|
|
2177
|
+
ie.focus(), ie.select();
|
|
2184
2178
|
}));
|
|
2185
2179
|
}
|
|
2186
|
-
function
|
|
2187
|
-
t(13,
|
|
2188
|
-
}
|
|
2189
|
-
function $t() {
|
|
2190
|
-
t(62, G = []), t(14, h = void 0);
|
|
2180
|
+
function oi() {
|
|
2181
|
+
t(13, T = void 0), t(14, h = void 0), t(15, O = -1);
|
|
2191
2182
|
}
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
function ti() {
|
|
2195
|
-
return !!x;
|
|
2183
|
+
function si() {
|
|
2184
|
+
t(64, H = []), t(14, h = void 0);
|
|
2196
2185
|
}
|
|
2197
|
-
|
|
2186
|
+
let T, H, h, St = "", ie, O = -1, re, qe = [], ve, Ee, Se, ot, ae = !1;
|
|
2187
|
+
const ai = /* @__PURE__ */ new Set(), fe = $t();
|
|
2188
|
+
Gi(() => {
|
|
2198
2189
|
m && (m.setEventHandler(void 0), m.indicateReverse(!1), m.setSelectedMarker(-1), m.setFeatures(void 0, void 0, !1));
|
|
2199
2190
|
});
|
|
2200
|
-
function
|
|
2201
|
-
if (t(17,
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
const B = s || !it(F);
|
|
2209
|
-
Me(F, { exact: !0 }).then(() => {
|
|
2210
|
-
t(62, G = E), t(14, h = void 0), B && ii();
|
|
2211
|
-
}).catch((H) => t(19, ie = H));
|
|
2191
|
+
function Tt(s) {
|
|
2192
|
+
if (t(17, ae = !1), Ee && (clearTimeout(Ee), Ee = void 0), O > -1 && T)
|
|
2193
|
+
t(14, h = T[O]), t(1, K = h.place_type[0] === "reverse" ? h.place_name : h.place_name.replace(/,.*/, "")), t(19, re = void 0), t(64, H = void 0), t(15, O = -1);
|
|
2194
|
+
else if (K) {
|
|
2195
|
+
const A = s || !st(K);
|
|
2196
|
+
at(K, { exact: !0 }).then(() => {
|
|
2197
|
+
t(64, H = T), t(14, h = void 0), A && li();
|
|
2198
|
+
}).catch((G) => t(19, re = G));
|
|
2212
2199
|
}
|
|
2213
2200
|
}
|
|
2214
|
-
function
|
|
2201
|
+
function st(s) {
|
|
2215
2202
|
try {
|
|
2216
|
-
return
|
|
2203
|
+
return Cn(s, 6);
|
|
2217
2204
|
} catch {
|
|
2218
2205
|
return !1;
|
|
2219
2206
|
}
|
|
2220
2207
|
}
|
|
2221
|
-
async function
|
|
2222
|
-
var
|
|
2223
|
-
t(19,
|
|
2224
|
-
const
|
|
2225
|
-
t(20, ve =
|
|
2208
|
+
async function at(s, { byId: A = !1, exact: G = !1 } = {}) {
|
|
2209
|
+
var x, oe, me;
|
|
2210
|
+
t(19, re = void 0), ve == null || ve.abort();
|
|
2211
|
+
const J = new AbortController();
|
|
2212
|
+
t(20, ve = J);
|
|
2226
2213
|
try {
|
|
2227
|
-
const
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2214
|
+
const R = st(s), We = new URL(tt + "/" + encodeURIComponent(R ? R.decimalLongitude + "," + R.decimalLatitude : s) + ".json"), te = We.searchParams;
|
|
2215
|
+
y !== void 0 && te.set("language", Array.isArray(y) ? y.join(",") : y ?? "");
|
|
2216
|
+
const [ct] = (m == null ? void 0 : m.getCenterAndZoom()) ?? [];
|
|
2217
|
+
let se = (x = !R || je === yt ? xe : je) == null ? void 0 : x.map((Y) => typeof Y == "string" ? Y : ct === void 0 || (Y[0] ?? 0) <= ct && ct < (Y[1] ?? 1 / 0) ? Y[2] : void 0).filter((Y) => Y !== void 0);
|
|
2218
|
+
se && (se = [...new Set(se)], te.set("types", se.join(",")));
|
|
2219
|
+
const Mt = !R || He === wt ? et : He;
|
|
2220
|
+
if (Mt && te.set("excludeTypes", String(Mt)), g && te.set("bbox", g.map((Y) => Y.toFixed(6)).join(",")), S && te.set("country", Array.isArray(S) ? S.join(",") : S), !A && !R) {
|
|
2221
|
+
const Y = await Ln(m, ne, J);
|
|
2222
|
+
Y && te.set("proximity", Y), (G || !Be) && te.set("autocomplete", "false"), te.set("fuzzyMatch", String(v));
|
|
2231
2223
|
}
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2224
|
+
const ze = p === k ? N : p;
|
|
2225
|
+
ze !== void 0 && ze > 1 && (se == null ? void 0 : se.length) !== 1 && console.warn("For reverse geocoding when limit > 1 then types must contain single value."), R ? (ze === 1 || ze !== void 0 && ($e || (se == null ? void 0 : se.length) === 1)) && te.set("limit", String(ze)) : N !== void 0 && te.set("limit", String(N)), te.set("key", f), nt(te), rt(We);
|
|
2226
|
+
const Ti = We.searchParams.get("types") === "" && We.searchParams.get("excludeTypes") !== "true", Qe = We.toString();
|
|
2227
|
+
if (Qe === St) {
|
|
2228
|
+
A ? (w && t(13, T = void 0), t(14, h = qe[0])) : (t(13, T = qe), ((oe = T[O]) == null ? void 0 : oe.id) !== (r == null ? void 0 : r.id) && t(15, O = -1));
|
|
2236
2229
|
return;
|
|
2237
2230
|
}
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
if (
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2231
|
+
St = Qe;
|
|
2232
|
+
let Oe;
|
|
2233
|
+
if (Ti)
|
|
2234
|
+
Oe = { type: "FeatureCollection", features: [] };
|
|
2235
|
+
else {
|
|
2236
|
+
const Y = await fetch(Qe, { signal: J.signal, ...it });
|
|
2237
|
+
if (!Y.ok)
|
|
2238
|
+
throw new Error(await Y.text());
|
|
2239
|
+
Oe = await Y.json();
|
|
2240
|
+
}
|
|
2241
|
+
fe("response", { url: Qe, featureCollection: Oe }), A ? (w && t(13, T = void 0), t(14, h = Oe.features[0]), qe = [h]) : (t(13, T = Oe.features.filter(V)), R && T.unshift({
|
|
2244
2242
|
type: "Feature",
|
|
2245
2243
|
properties: {},
|
|
2246
|
-
id: "reverse_" +
|
|
2247
|
-
text:
|
|
2248
|
-
place_name:
|
|
2244
|
+
id: "reverse_" + R.decimalLongitude + "_" + R.decimalLatitude,
|
|
2245
|
+
text: R.decimalLatitude + ", " + R.decimalLongitude,
|
|
2246
|
+
place_name: R.decimalLatitude + ", " + R.decimalLongitude,
|
|
2249
2247
|
place_type: ["reverse"],
|
|
2250
|
-
center: [
|
|
2248
|
+
center: [R.decimalLongitude, R.decimalLatitude],
|
|
2251
2249
|
bbox: [
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2250
|
+
R.decimalLongitude,
|
|
2251
|
+
R.decimalLatitude,
|
|
2252
|
+
R.decimalLongitude,
|
|
2253
|
+
R.decimalLatitude
|
|
2256
2254
|
],
|
|
2257
2255
|
geometry: {
|
|
2258
2256
|
type: "Point",
|
|
2259
|
-
coordinates: [
|
|
2257
|
+
coordinates: [R.decimalLongitude, R.decimalLatitude]
|
|
2260
2258
|
}
|
|
2261
|
-
}),
|
|
2262
|
-
} catch (
|
|
2263
|
-
if (
|
|
2259
|
+
}), qe = T, ((me = T[O]) == null ? void 0 : me.id) !== (r == null ? void 0 : r.id) && t(15, O = -1), R && ie.focus());
|
|
2260
|
+
} catch (R) {
|
|
2261
|
+
if (R && typeof R == "object" && "name" in R && R.name === "AbortError")
|
|
2264
2262
|
return;
|
|
2265
|
-
throw
|
|
2263
|
+
throw R;
|
|
2266
2264
|
} finally {
|
|
2267
|
-
|
|
2265
|
+
J === ve && t(20, ve = void 0);
|
|
2268
2266
|
}
|
|
2269
2267
|
}
|
|
2270
|
-
function
|
|
2271
|
-
var
|
|
2272
|
-
if (!(
|
|
2268
|
+
function li() {
|
|
2269
|
+
var J;
|
|
2270
|
+
if (!(H != null && H.length) || !C)
|
|
2273
2271
|
return;
|
|
2274
|
-
const s = [180, 90, -180, -90],
|
|
2275
|
-
let
|
|
2276
|
-
for (const
|
|
2277
|
-
const
|
|
2278
|
-
if (
|
|
2279
|
-
for (const
|
|
2280
|
-
s[
|
|
2272
|
+
const s = [180, 90, -180, -90], A = !H.some((x) => !x.matching_text);
|
|
2273
|
+
let G;
|
|
2274
|
+
for (const x of H) {
|
|
2275
|
+
const oe = Ce(x);
|
|
2276
|
+
if (G = G === void 0 ? oe : oe === void 0 ? G : Math.max(G, oe), A || !x.matching_text)
|
|
2277
|
+
for (const me of [0, 1, 2, 3])
|
|
2278
|
+
s[me] = Math[me < 2 ? "min" : "max"](s[me], ((J = x.bbox) == null ? void 0 : J[me]) ?? x.center[me % 2]);
|
|
2281
2279
|
}
|
|
2282
|
-
m &&
|
|
2280
|
+
m && H.length > 0 && (h && s[0] === s[2] && s[1] === s[3] ? m.flyTo(h.center, Ce(h)) : m.fitBounds(Dt(s), 50, G));
|
|
2283
2281
|
}
|
|
2284
|
-
function
|
|
2285
|
-
!h || !m || (!h.bbox || h.bbox[0] === h.bbox[2] && h.bbox[1] === h.bbox[3] ? m.flyTo(h.center, Ce(h)) : m.fitBounds(
|
|
2282
|
+
function lt() {
|
|
2283
|
+
!h || !m || (!h.bbox || h.bbox[0] === h.bbox[2] && h.bbox[1] === h.bbox[3] ? m.flyTo(h.center, Ce(h)) : m.fitBounds(Dt(h.bbox), 50, Ce(h)));
|
|
2286
2284
|
}
|
|
2287
2285
|
function Ce(s) {
|
|
2288
|
-
var
|
|
2286
|
+
var G;
|
|
2289
2287
|
if (!s.bbox || s.bbox[0] !== s.bbox[2] && s.bbox[1] !== s.bbox[3])
|
|
2290
2288
|
return;
|
|
2291
|
-
const
|
|
2292
|
-
return (Array.isArray((
|
|
2293
|
-
(
|
|
2294
|
-
const
|
|
2295
|
-
return
|
|
2289
|
+
const A = s.id.replace(/\..*/, "");
|
|
2290
|
+
return (Array.isArray((G = s.properties) == null ? void 0 : G.categories) ? s.properties.categories.reduce(
|
|
2291
|
+
(J, x) => {
|
|
2292
|
+
const oe = Ze[A + "." + x];
|
|
2293
|
+
return J === void 0 ? oe : oe === void 0 ? J : Math.max(J, oe);
|
|
2296
2294
|
},
|
|
2297
2295
|
void 0
|
|
2298
|
-
) : void 0) ??
|
|
2296
|
+
) : void 0) ?? Ze[A];
|
|
2299
2297
|
}
|
|
2300
|
-
function
|
|
2301
|
-
t(0,
|
|
2298
|
+
function ui(s) {
|
|
2299
|
+
t(0, ee = W === "always"), t(13, T = void 0), t(14, h = void 0), t(15, O = -1), Et(s[1].toFixed(6) + ", " + vn(s[0], [-180, 180], !0).toFixed(6), !1, !0);
|
|
2302
2300
|
}
|
|
2303
|
-
function
|
|
2304
|
-
if (!
|
|
2301
|
+
function ci(s) {
|
|
2302
|
+
if (!T)
|
|
2305
2303
|
return;
|
|
2306
|
-
let
|
|
2307
|
-
|
|
2304
|
+
let A = s.key === "ArrowDown" ? 1 : s.key === "ArrowUp" ? -1 : 0;
|
|
2305
|
+
A && (ie.focus(), t(17, ae = !0), s.preventDefault(), h && O === -1 && t(15, O = T.findIndex((G) => G.id === (h == null ? void 0 : h.id))), O === (h || pe ? 0 : -1) && A === -1 && t(15, O = T.length), t(15, O += A), O >= T.length && t(15, O = -1), O < 0 && (h || pe) && t(15, O = 0));
|
|
2308
2306
|
}
|
|
2309
|
-
function
|
|
2310
|
-
if (t(19,
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
()
|
|
2322
|
-
t(63, x = void 0), Me(ee, { appendSpace: !0 }).catch((V) => t(19, ie = V));
|
|
2323
|
-
},
|
|
2324
|
-
Je
|
|
2325
|
-
));
|
|
2307
|
+
function Nt(s, A = !0, G = !1) {
|
|
2308
|
+
if (t(19, re = void 0), t(14, h = void 0), t(17, ae = !0), Be || G) {
|
|
2309
|
+
if (Ee && clearTimeout(Ee), K.length < be)
|
|
2310
|
+
return;
|
|
2311
|
+
const J = K;
|
|
2312
|
+
Ee = window.setTimeout(
|
|
2313
|
+
() => {
|
|
2314
|
+
at(J).catch((x) => t(19, re = x));
|
|
2315
|
+
},
|
|
2316
|
+
A ? z : 0
|
|
2317
|
+
);
|
|
2318
|
+
} else
|
|
2319
|
+
t(13, T = void 0), t(19, re = void 0);
|
|
2326
2320
|
}
|
|
2327
|
-
function
|
|
2328
|
-
h && (h == null ? void 0 : h.id) === (s == null ? void 0 : s.id) ?
|
|
2321
|
+
function ut(s) {
|
|
2322
|
+
h && (h == null ? void 0 : h.id) === (s == null ? void 0 : s.id) ? lt() : (t(14, h = s), t(1, K = s.place_name));
|
|
2329
2323
|
}
|
|
2330
|
-
function
|
|
2331
|
-
t(15,
|
|
2324
|
+
function kt(s) {
|
|
2325
|
+
t(15, O = s);
|
|
2332
2326
|
}
|
|
2333
|
-
function
|
|
2334
|
-
(!
|
|
2327
|
+
function di() {
|
|
2328
|
+
(!pe || h) && t(15, O = -1), Fe && lt();
|
|
2335
2329
|
}
|
|
2336
|
-
const
|
|
2337
|
-
function
|
|
2338
|
-
|
|
2339
|
-
|
|
2330
|
+
const fi = () => ie.focus();
|
|
2331
|
+
function mi(s) {
|
|
2332
|
+
gt[s ? "unshift" : "push"](() => {
|
|
2333
|
+
ie = s, t(18, ie);
|
|
2340
2334
|
});
|
|
2341
2335
|
}
|
|
2342
|
-
function
|
|
2343
|
-
|
|
2336
|
+
function gi() {
|
|
2337
|
+
K = this.value, t(1, K), t(17, ae), t(31, _), t(16, Se);
|
|
2344
2338
|
}
|
|
2345
|
-
const
|
|
2346
|
-
t(1,
|
|
2347
|
-
},
|
|
2339
|
+
const hi = () => t(17, ae = !0), bi = () => t(17, ae = !1), vi = () => t(17, ae = !0), Li = () => t(14, h = void 0), _i = () => {
|
|
2340
|
+
t(1, K = ""), ie.focus();
|
|
2341
|
+
}, yi = () => t(0, ee = !ee), wi = () => t(19, re = void 0), pi = (s) => kt(s), Ei = (s) => ut(s), Si = () => {
|
|
2348
2342
|
};
|
|
2349
2343
|
return i.$$set = (s) => {
|
|
2350
|
-
"class" in s && t(2, c = s.class), "apiKey" in s && t(29, f = s.apiKey), "bbox" in s && t(30, g = s.bbox), "clearButtonTitle" in s && t(3, b = s.clearButtonTitle), "clearOnBlur" in s && t(31, _ = s.clearOnBlur), "clearListOnPick" in s && t(32, w = s.clearListOnPick), "keepListOpen" in s && t(4,
|
|
2344
|
+
"class" in s && t(2, c = s.class), "apiKey" in s && t(29, f = s.apiKey), "bbox" in s && t(30, g = s.bbox), "clearButtonTitle" in s && t(3, b = s.clearButtonTitle), "clearOnBlur" in s && t(31, _ = s.clearOnBlur), "clearListOnPick" in s && t(32, w = s.clearListOnPick), "keepListOpen" in s && t(4, D = s.keepListOpen), "collapsed" in s && t(5, E = s.collapsed), "country" in s && t(33, S = s.country), "debounceSearch" in s && t(34, z = s.debounceSearch), "enableReverse" in s && t(6, W = s.enableReverse), "errorMessage" in s && t(7, Z = s.errorMessage), "filter" in s && t(35, V = s.filter), "flyTo" in s && t(36, C = s.flyTo), "fuzzyMatch" in s && t(37, v = s.fuzzyMatch), "language" in s && t(38, y = s.language), "limit" in s && t(39, N = s.limit), "reverseGeocodingLimit" in s && t(40, p = s.reverseGeocodingLimit), "mapController" in s && t(41, m = s.mapController), "minLength" in s && t(42, be = s.minLength), "noResultsMessage" in s && t(8, L = s.noResultsMessage), "placeholder" in s && t(9, F = s.placeholder), "proximity" in s && t(43, ne = s.proximity), "reverseActive" in s && t(0, ee = s.reverseActive), "reverseButtonTitle" in s && t(10, Lt = s.reverseButtonTitle), "searchValue" in s && t(1, K = s.searchValue), "pickedResultStyle" in s && t(44, Pe = s.pickedResultStyle), "showPlaceType" in s && t(11, _t = s.showPlaceType), "showResultsWhileTyping" in s && t(45, Be = s.showResultsWhileTyping), "selectFirst" in s && t(46, pe = s.selectFirst), "flyToSelected" in s && t(47, Fe = s.flyToSelected), "markerOnSelected" in s && t(48, Ge = s.markerOnSelected), "types" in s && t(49, xe = s.types), "reverseGeocodingTypes" in s && t(50, je = s.reverseGeocodingTypes), "exhaustiveReverseGeocoding" in s && t(51, $e = s.exhaustiveReverseGeocoding), "excludeTypes" in s && t(52, et = s.excludeTypes), "reverseGeocodingExcludeTypes" in s && t(53, He = s.reverseGeocodingExcludeTypes), "zoom" in s && t(54, Ze = s.zoom), "apiUrl" in s && t(55, tt = s.apiUrl), "fetchParameters" in s && t(56, it = s.fetchParameters), "iconsBaseUrl" in s && t(12, pt = s.iconsBaseUrl), "adjustUrlQuery" in s && t(57, nt = s.adjustUrlQuery), "adjustUrl" in s && t(58, rt = s.adjustUrl), "$$scope" in s && t(69, o = s.$$scope);
|
|
2351
2345
|
}, i.$$.update = () => {
|
|
2352
2346
|
if (i.$$.dirty[0] & /*enableReverse*/
|
|
2353
|
-
64 && t(0,
|
|
2347
|
+
64 && t(0, ee = W === "always"), i.$$.dirty[0] & /*picked*/
|
|
2354
2348
|
16384 | i.$$.dirty[1] & /*pickedResultStyle*/
|
|
2355
|
-
|
|
2349
|
+
8192 && Pe !== "marker-only" && h && !h.address && h.geometry.type === "Point" && h.place_type[0] !== "reverse" && at(h.id, { byId: !0 }).catch((s) => t(19, re = s)), i.$$.dirty[0] & /*picked*/
|
|
2356
2350
|
16384 | i.$$.dirty[1] & /*mapController, flyTo, clearListOnPick*/
|
|
2357
|
-
|
|
2358
|
-
|
|
2351
|
+
1058 | i.$$.dirty[2] & /*prevIdToFly*/
|
|
2352
|
+
8 && (m && h && h.id !== ot && C && (lt(), w && t(13, T = void 0), t(64, H = void 0), t(15, O = -1)), t(65, ot = h == null ? void 0 : h.id)), i.$$.dirty[0] & /*focused, focusedDelayed*/
|
|
2359
2353
|
196608 | i.$$.dirty[1] & /*clearOnBlur*/
|
|
2360
2354
|
1 && setTimeout(() => {
|
|
2361
|
-
t(16,
|
|
2355
|
+
t(16, Se = ae), _ && !Se && t(1, K = "");
|
|
2362
2356
|
}), i.$$.dirty[0] & /*searchValue, listFeatures*/
|
|
2363
2357
|
8194 | i.$$.dirty[1] & /*minLength*/
|
|
2364
|
-
|
|
2365
|
-
8192 | i.$$.dirty[1] & /*selectFirst*/
|
|
2366
|
-
32768 && he && E != null && E.length && (ti() || t(15, W = 0)), i.$$.dirty[0] & /*listFeatures, selectedItemIndex, picked*/
|
|
2358
|
+
2048 && K.length < be && (t(13, T = void 0), t(19, re = void 0), t(64, H = T)), i.$$.dirty[0] & /*listFeatures, selectedItemIndex, picked*/
|
|
2367
2359
|
57344 | i.$$.dirty[1] & /*selectFirst*/
|
|
2368
|
-
32768 &&
|
|
2360
|
+
32768 && pe && T != null && T.length && O == -1 && !h && t(15, O = 0), i.$$.dirty[0] & /*listFeatures*/
|
|
2369
2361
|
8192 | i.$$.dirty[2] & /*markedFeatures*/
|
|
2370
|
-
|
|
2362
|
+
4 && H !== T && t(64, H = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
|
|
2371
2363
|
73729 | i.$$.dirty[1] & /*mapController*/
|
|
2372
|
-
|
|
2373
|
-
|
|
2364
|
+
1024 | i.$$.dirty[2] & /*markedFeatures*/
|
|
2365
|
+
4 && m && m.setEventHandler((s) => {
|
|
2374
2366
|
switch (s.type) {
|
|
2375
2367
|
case "mapClick":
|
|
2376
|
-
|
|
2368
|
+
ee && ui(s.coordinates);
|
|
2377
2369
|
break;
|
|
2378
2370
|
case "markerClick":
|
|
2379
2371
|
{
|
|
2380
|
-
const
|
|
2381
|
-
|
|
2372
|
+
const A = T == null ? void 0 : T.find((G) => G.id === s.id);
|
|
2373
|
+
A && ut(A);
|
|
2382
2374
|
}
|
|
2383
2375
|
break;
|
|
2384
2376
|
case "markerMouseEnter":
|
|
2385
|
-
|
|
2377
|
+
H && t(15, O = Se ? (T == null ? void 0 : T.findIndex((A) => A.id === s.id)) ?? -1 : -1);
|
|
2386
2378
|
break;
|
|
2387
2379
|
case "markerMouseLeave":
|
|
2388
|
-
|
|
2380
|
+
H && t(15, O = -1);
|
|
2389
2381
|
break;
|
|
2390
2382
|
}
|
|
2391
2383
|
}), i.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
|
|
2392
|
-
40960 && t(
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2384
|
+
40960 && t(66, r = T == null ? void 0 : T[O]), i.$$.dirty[1] & /*mapController, flyTo, flyToSelected*/
|
|
2385
|
+
66592 | i.$$.dirty[2] & /*selected*/
|
|
2386
|
+
16 && m && r && C && Fe && m.flyTo(r.center, Ce(r)), i.$$.dirty[1] & /*pickedResultStyle*/
|
|
2387
|
+
8192 && t(68, n = Pe === "full-geometry-including-polygon-center-marker"), i.$$.dirty[1] & /*markerOnSelected, mapController*/
|
|
2388
|
+
132096 | i.$$.dirty[2] & /*showPolygonMarker*/
|
|
2389
|
+
64 && (Ge || m == null || m.setFeatures(void 0, void 0, n)), i.$$.dirty[0] & /*picked*/
|
|
2398
2390
|
16384 | i.$$.dirty[1] & /*mapController, markerOnSelected*/
|
|
2399
|
-
|
|
2400
|
-
|
|
2391
|
+
132096 | i.$$.dirty[2] & /*markedFeatures, selected, showPolygonMarker*/
|
|
2392
|
+
84 && m && Ge && !H && (m.setFeatures(r ? [r] : void 0, h, n), m.setSelectedMarker(r ? 0 : -1)), i.$$.dirty[0] & /*picked*/
|
|
2401
2393
|
16384 | i.$$.dirty[1] & /*mapController*/
|
|
2402
|
-
|
|
2403
|
-
|
|
2394
|
+
1024 | i.$$.dirty[2] & /*markedFeatures, showPolygonMarker*/
|
|
2395
|
+
68 && m && m.setFeatures(H, h, n), i.$$.dirty[0] & /*selectedItemIndex*/
|
|
2404
2396
|
32768 | i.$$.dirty[1] & /*mapController*/
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
10 && r && (window.clearTimeout(x), t(63, x = void 0)), i.$$.dirty[0] & /*searchValue*/
|
|
2397
|
+
1024 | i.$$.dirty[2] & /*markedFeatures*/
|
|
2398
|
+
4 && H && m && m.setSelectedMarker(O), i.$$.dirty[0] & /*searchValue*/
|
|
2408
2399
|
2 | i.$$.dirty[1] & /*mapController*/
|
|
2409
|
-
|
|
2410
|
-
const s =
|
|
2400
|
+
1024 && m) {
|
|
2401
|
+
const s = st(K);
|
|
2411
2402
|
m.setReverseMarker(s ? [s.decimalLongitude, s.decimalLatitude] : void 0);
|
|
2412
2403
|
}
|
|
2413
2404
|
i.$$.dirty[2] & /*selected*/
|
|
2414
|
-
|
|
2415
|
-
16384 &&
|
|
2416
|
-
73744 && t(
|
|
2417
|
-
|
|
2418
|
-
8192 &&
|
|
2419
|
-
|
|
2420
|
-
1 &&
|
|
2421
|
-
2 &&
|
|
2405
|
+
16 && fe("select", { feature: r }), i.$$.dirty[0] & /*picked*/
|
|
2406
|
+
16384 && fe("pick", { feature: h }), i.$$.dirty[0] & /*listFeatures, focusedDelayed, keepListOpen*/
|
|
2407
|
+
73744 && t(67, u = !!(T != null && T.length) && (Se || D)), i.$$.dirty[2] & /*optionsVisible*/
|
|
2408
|
+
32 && fe("optionsvisibilitychange", { optionsVisible: u }), i.$$.dirty[0] & /*listFeatures*/
|
|
2409
|
+
8192 && fe("featureslisted", { features: T }), i.$$.dirty[2] & /*markedFeatures*/
|
|
2410
|
+
4 && fe("featuresmarked", { features: H }), i.$$.dirty[0] & /*reverseActive*/
|
|
2411
|
+
1 && fe("reversetoggle", { reverse: ee }), i.$$.dirty[0] & /*searchValue*/
|
|
2412
|
+
2 && fe("querychange", { query: K }), i.$$.dirty[0] & /*reverseActive*/
|
|
2422
2413
|
1 | i.$$.dirty[1] & /*mapController*/
|
|
2423
|
-
|
|
2414
|
+
1024 && m && m.indicateReverse(ee);
|
|
2424
2415
|
}, [
|
|
2425
|
-
|
|
2426
|
-
|
|
2416
|
+
ee,
|
|
2417
|
+
K,
|
|
2427
2418
|
c,
|
|
2428
2419
|
b,
|
|
2429
|
-
|
|
2430
|
-
S,
|
|
2431
|
-
C,
|
|
2432
|
-
q,
|
|
2433
|
-
R,
|
|
2434
|
-
ke,
|
|
2435
|
-
re,
|
|
2436
|
-
ht,
|
|
2437
|
-
bt,
|
|
2420
|
+
D,
|
|
2438
2421
|
E,
|
|
2439
|
-
h,
|
|
2440
2422
|
W,
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2423
|
+
Z,
|
|
2424
|
+
L,
|
|
2425
|
+
F,
|
|
2426
|
+
Lt,
|
|
2427
|
+
_t,
|
|
2428
|
+
pt,
|
|
2429
|
+
T,
|
|
2430
|
+
h,
|
|
2431
|
+
O,
|
|
2432
|
+
Se,
|
|
2433
|
+
ae,
|
|
2444
2434
|
ie,
|
|
2435
|
+
re,
|
|
2445
2436
|
ve,
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2437
|
+
ai,
|
|
2438
|
+
Tt,
|
|
2439
|
+
ci,
|
|
2440
|
+
Nt,
|
|
2441
|
+
ut,
|
|
2442
|
+
kt,
|
|
2443
|
+
di,
|
|
2453
2444
|
d,
|
|
2454
2445
|
f,
|
|
2455
2446
|
g,
|
|
2456
2447
|
_,
|
|
2457
2448
|
w,
|
|
2458
|
-
|
|
2449
|
+
S,
|
|
2459
2450
|
z,
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2451
|
+
V,
|
|
2452
|
+
C,
|
|
2453
|
+
v,
|
|
2463
2454
|
y,
|
|
2464
|
-
|
|
2465
|
-
m,
|
|
2455
|
+
N,
|
|
2466
2456
|
p,
|
|
2467
|
-
|
|
2468
|
-
De,
|
|
2469
|
-
Ie,
|
|
2470
|
-
Je,
|
|
2471
|
-
he,
|
|
2472
|
-
Ae,
|
|
2473
|
-
Be,
|
|
2457
|
+
m,
|
|
2474
2458
|
be,
|
|
2475
|
-
|
|
2459
|
+
ne,
|
|
2476
2460
|
Pe,
|
|
2477
|
-
|
|
2478
|
-
|
|
2461
|
+
Be,
|
|
2462
|
+
pe,
|
|
2463
|
+
Fe,
|
|
2464
|
+
Ge,
|
|
2479
2465
|
xe,
|
|
2466
|
+
je,
|
|
2480
2467
|
$e,
|
|
2481
2468
|
et,
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
vt,
|
|
2485
|
-
xt,
|
|
2486
|
-
$t,
|
|
2487
|
-
G,
|
|
2488
|
-
x,
|
|
2469
|
+
He,
|
|
2470
|
+
Ze,
|
|
2489
2471
|
tt,
|
|
2472
|
+
it,
|
|
2473
|
+
nt,
|
|
2474
|
+
rt,
|
|
2475
|
+
ni,
|
|
2476
|
+
ri,
|
|
2477
|
+
Et,
|
|
2478
|
+
oi,
|
|
2479
|
+
si,
|
|
2480
|
+
H,
|
|
2481
|
+
ot,
|
|
2490
2482
|
r,
|
|
2491
2483
|
u,
|
|
2492
2484
|
n,
|
|
2493
2485
|
o,
|
|
2494
2486
|
l,
|
|
2495
|
-
si,
|
|
2496
|
-
ai,
|
|
2497
|
-
li,
|
|
2498
|
-
ui,
|
|
2499
|
-
ci,
|
|
2500
|
-
di,
|
|
2501
2487
|
fi,
|
|
2502
2488
|
mi,
|
|
2503
2489
|
gi,
|
|
2504
2490
|
hi,
|
|
2505
2491
|
bi,
|
|
2506
2492
|
vi,
|
|
2507
|
-
Li
|
|
2493
|
+
Li,
|
|
2494
|
+
_i,
|
|
2495
|
+
yi,
|
|
2496
|
+
wi,
|
|
2497
|
+
pi,
|
|
2498
|
+
Ei,
|
|
2499
|
+
Si
|
|
2508
2500
|
];
|
|
2509
2501
|
}
|
|
2510
|
-
class
|
|
2502
|
+
class In extends we {
|
|
2511
2503
|
constructor(e) {
|
|
2512
2504
|
super(), ye(
|
|
2513
2505
|
this,
|
|
2514
2506
|
e,
|
|
2515
|
-
|
|
2516
|
-
|
|
2507
|
+
Dn,
|
|
2508
|
+
Un,
|
|
2517
2509
|
_e,
|
|
2518
2510
|
{
|
|
2519
2511
|
ZOOM_DEFAULTS: 28,
|
|
@@ -2534,35 +2526,37 @@ class Cn extends we {
|
|
|
2534
2526
|
fuzzyMatch: 37,
|
|
2535
2527
|
language: 38,
|
|
2536
2528
|
limit: 39,
|
|
2537
|
-
|
|
2538
|
-
|
|
2529
|
+
reverseGeocodingLimit: 40,
|
|
2530
|
+
mapController: 41,
|
|
2531
|
+
minLength: 42,
|
|
2539
2532
|
noResultsMessage: 8,
|
|
2540
2533
|
placeholder: 9,
|
|
2541
|
-
proximity:
|
|
2534
|
+
proximity: 43,
|
|
2542
2535
|
reverseActive: 0,
|
|
2543
2536
|
reverseButtonTitle: 10,
|
|
2544
2537
|
searchValue: 1,
|
|
2545
|
-
pickedResultStyle:
|
|
2538
|
+
pickedResultStyle: 44,
|
|
2546
2539
|
showPlaceType: 11,
|
|
2547
|
-
showResultsWhileTyping:
|
|
2548
|
-
autocompleteTimeout: 45,
|
|
2540
|
+
showResultsWhileTyping: 45,
|
|
2549
2541
|
selectFirst: 46,
|
|
2550
2542
|
flyToSelected: 47,
|
|
2551
2543
|
markerOnSelected: 48,
|
|
2552
2544
|
types: 49,
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2545
|
+
reverseGeocodingTypes: 50,
|
|
2546
|
+
exhaustiveReverseGeocoding: 51,
|
|
2547
|
+
excludeTypes: 52,
|
|
2548
|
+
reverseGeocodingExcludeTypes: 53,
|
|
2549
|
+
zoom: 54,
|
|
2550
|
+
apiUrl: 55,
|
|
2551
|
+
fetchParameters: 56,
|
|
2558
2552
|
iconsBaseUrl: 12,
|
|
2559
|
-
adjustUrlQuery:
|
|
2560
|
-
adjustUrl:
|
|
2561
|
-
focus:
|
|
2562
|
-
blur:
|
|
2563
|
-
setQuery:
|
|
2564
|
-
clearList:
|
|
2565
|
-
clearMap:
|
|
2553
|
+
adjustUrlQuery: 57,
|
|
2554
|
+
adjustUrl: 58,
|
|
2555
|
+
focus: 59,
|
|
2556
|
+
blur: 60,
|
|
2557
|
+
setQuery: 61,
|
|
2558
|
+
clearList: 62,
|
|
2559
|
+
clearMap: 63
|
|
2566
2560
|
},
|
|
2567
2561
|
null,
|
|
2568
2562
|
[-1, -1, -1, -1]
|
|
@@ -2572,22 +2566,22 @@ class Cn extends we {
|
|
|
2572
2566
|
return this.$$.ctx[28];
|
|
2573
2567
|
}
|
|
2574
2568
|
get focus() {
|
|
2575
|
-
return this.$$.ctx[
|
|
2569
|
+
return this.$$.ctx[59];
|
|
2576
2570
|
}
|
|
2577
2571
|
get blur() {
|
|
2578
|
-
return this.$$.ctx[
|
|
2572
|
+
return this.$$.ctx[60];
|
|
2579
2573
|
}
|
|
2580
2574
|
get setQuery() {
|
|
2581
|
-
return this.$$.ctx[
|
|
2575
|
+
return this.$$.ctx[61];
|
|
2582
2576
|
}
|
|
2583
2577
|
get clearList() {
|
|
2584
|
-
return this.$$.ctx[
|
|
2578
|
+
return this.$$.ctx[62];
|
|
2585
2579
|
}
|
|
2586
2580
|
get clearMap() {
|
|
2587
|
-
return this.$$.ctx[
|
|
2581
|
+
return this.$$.ctx[63];
|
|
2588
2582
|
}
|
|
2589
2583
|
}
|
|
2590
|
-
const
|
|
2584
|
+
const Kt = [
|
|
2591
2585
|
"featuresListed",
|
|
2592
2586
|
"featuresMarked",
|
|
2593
2587
|
"optionsVisibilityChange",
|
|
@@ -2596,7 +2590,7 @@ const jt = [
|
|
|
2596
2590
|
"response",
|
|
2597
2591
|
"reverseToggle",
|
|
2598
2592
|
"select"
|
|
2599
|
-
],
|
|
2593
|
+
], An = [
|
|
2600
2594
|
"adjustUrlQuery",
|
|
2601
2595
|
"adjustUrl",
|
|
2602
2596
|
"apiKey",
|
|
@@ -2612,6 +2606,7 @@ const jt = [
|
|
|
2612
2606
|
"enableReverse",
|
|
2613
2607
|
"errorMessage",
|
|
2614
2608
|
"excludeTypes",
|
|
2609
|
+
"reverseGeocodingExcludeTypes",
|
|
2615
2610
|
"exhaustiveReverseGeocoding",
|
|
2616
2611
|
"fetchParameters",
|
|
2617
2612
|
"filter",
|
|
@@ -2621,6 +2616,7 @@ const jt = [
|
|
|
2621
2616
|
"keepListOpen",
|
|
2622
2617
|
"language",
|
|
2623
2618
|
"limit",
|
|
2619
|
+
"reverseGeocodingLimit",
|
|
2624
2620
|
"mapController",
|
|
2625
2621
|
"markerOnSelected",
|
|
2626
2622
|
"minLength",
|
|
@@ -2634,31 +2630,32 @@ const jt = [
|
|
|
2634
2630
|
"showPlaceType",
|
|
2635
2631
|
"showResultsWhileTyping",
|
|
2636
2632
|
"types",
|
|
2633
|
+
"reverseGeocodingTypes",
|
|
2637
2634
|
"zoom"
|
|
2638
2635
|
];
|
|
2639
|
-
function
|
|
2636
|
+
function Vt(i) {
|
|
2640
2637
|
return "on" + i[0].toUpperCase() + i.slice(1);
|
|
2641
2638
|
}
|
|
2642
|
-
const
|
|
2643
|
-
const n =
|
|
2644
|
-
for (const l of
|
|
2645
|
-
delete u[
|
|
2646
|
-
|
|
2639
|
+
const Fn = Mi(function(e, t) {
|
|
2640
|
+
const n = Ct(void 0), r = Ct(void 0), u = { ...e };
|
|
2641
|
+
for (const l of Kt)
|
|
2642
|
+
delete u[Vt(l)];
|
|
2643
|
+
ft(() => {
|
|
2647
2644
|
if (!n.current)
|
|
2648
2645
|
throw new Error();
|
|
2649
|
-
const l = new
|
|
2646
|
+
const l = new In({
|
|
2650
2647
|
target: n.current,
|
|
2651
2648
|
props: u
|
|
2652
2649
|
});
|
|
2653
2650
|
return r.current = l, () => l.$destroy();
|
|
2654
2651
|
}, []);
|
|
2655
|
-
for (const l of
|
|
2656
|
-
|
|
2652
|
+
for (const l of An)
|
|
2653
|
+
ft(() => {
|
|
2657
2654
|
r.current && e[l] !== void 0 && r.current.$set({ [l]: e[l] });
|
|
2658
2655
|
}, [e[l]]);
|
|
2659
|
-
for (const l of
|
|
2660
|
-
const o = e[
|
|
2661
|
-
|
|
2656
|
+
for (const l of Kt) {
|
|
2657
|
+
const o = e[Vt(l)];
|
|
2658
|
+
ft(
|
|
2662
2659
|
() => {
|
|
2663
2660
|
var d;
|
|
2664
2661
|
return o && ((d = r.current) == null ? void 0 : d.$on(l.toLowerCase(), (c) => {
|
|
@@ -2668,7 +2665,7 @@ const On = wi(function(e, t) {
|
|
|
2668
2665
|
[o]
|
|
2669
2666
|
);
|
|
2670
2667
|
}
|
|
2671
|
-
return
|
|
2668
|
+
return Ci(t, () => ({
|
|
2672
2669
|
setQuery: (l, o = !0) => {
|
|
2673
2670
|
var d;
|
|
2674
2671
|
return (d = r.current) == null ? void 0 : d.setQuery(l, o);
|
|
@@ -2693,9 +2690,9 @@ const On = wi(function(e, t) {
|
|
|
2693
2690
|
var o;
|
|
2694
2691
|
return (o = r.current) == null ? void 0 : o.$set({ reverseActive: l });
|
|
2695
2692
|
}
|
|
2696
|
-
})),
|
|
2693
|
+
})), Wi("div", { ref: n });
|
|
2697
2694
|
});
|
|
2698
2695
|
export {
|
|
2699
|
-
|
|
2696
|
+
Fn as GeocodingControl
|
|
2700
2697
|
};
|
|
2701
2698
|
//# sourceMappingURL=react.js.map
|