@maptiler/geocoding-control 0.0.83 → 0.0.85
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/DispatcherType.d.ts +14 -0
- package/GeocodingControl.svelte +193 -207
- package/GeocodingControl.svelte.d.ts +9 -12
- package/README.md +32 -5
- package/leaflet-controller.js +450 -450
- package/leaflet-controller.js.map +1 -1
- package/leaflet-controller.umd.js +5 -5
- package/leaflet-controller.umd.js.map +1 -1
- package/leaflet.d.ts +2 -2
- package/leaflet.js +428 -428
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +5 -5
- package/leaflet.umd.js.map +1 -1
- package/maplibregl-controller.d.ts +2 -2
- package/maplibregl-controller.js +450 -450
- package/maplibregl-controller.js.map +1 -1
- package/maplibregl-controller.umd.js +5 -5
- package/maplibregl-controller.umd.js.map +1 -1
- package/maplibregl.d.ts +2 -2
- package/maplibregl.js +672 -672
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +5 -5
- package/maplibregl.umd.js.map +1 -1
- package/mask.d.ts +1 -1
- package/package.json +8 -6
- package/react.d.ts +11 -18
- package/react.js +410 -410
- package/react.js.map +1 -1
- package/react.umd.js +1 -1
- package/react.umd.js.map +1 -1
- package/style.css +1 -1
package/react.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { forwardRef as Et, useRef as
|
|
2
|
-
function
|
|
1
|
+
import { forwardRef as Et, useRef as He, useEffect as Pe, useImperativeHandle as Ct, createElement as Bt } from "react";
|
|
2
|
+
function C() {
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function qt(t, e) {
|
|
5
5
|
for (const n in e)
|
|
6
6
|
t[n] = e[n];
|
|
7
7
|
return t;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function ot(t) {
|
|
10
10
|
return t();
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Ke() {
|
|
13
13
|
return /* @__PURE__ */ Object.create(null);
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
t.forEach(
|
|
15
|
+
function Y(t) {
|
|
16
|
+
t.forEach(ot);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function ct(t) {
|
|
19
19
|
return typeof t == "function";
|
|
20
20
|
}
|
|
21
21
|
function ye(t, e) {
|
|
@@ -26,32 +26,32 @@ function Lt(t) {
|
|
|
26
26
|
}
|
|
27
27
|
function St(t, e, n, r) {
|
|
28
28
|
if (t) {
|
|
29
|
-
const
|
|
30
|
-
return t[0](
|
|
29
|
+
const c = it(t, e, n, r);
|
|
30
|
+
return t[0](c);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
return t[1] && r ?
|
|
33
|
+
function it(t, e, n, r) {
|
|
34
|
+
return t[1] && r ? qt(n.ctx.slice(), t[1](r(e))) : n.ctx;
|
|
35
35
|
}
|
|
36
36
|
function At(t, e, n, r) {
|
|
37
37
|
if (t[2] && r) {
|
|
38
|
-
const
|
|
38
|
+
const c = t[2](r(n));
|
|
39
39
|
if (e.dirty === void 0)
|
|
40
|
+
return c;
|
|
41
|
+
if (typeof c == "object") {
|
|
42
|
+
const i = [], o = Math.max(e.dirty.length, c.length);
|
|
43
|
+
for (let d = 0; d < o; d += 1)
|
|
44
|
+
i[d] = e.dirty[d] | c[d];
|
|
40
45
|
return i;
|
|
41
|
-
if (typeof i == "object") {
|
|
42
|
-
const u = [], c = Math.max(e.dirty.length, i.length);
|
|
43
|
-
for (let d = 0; d < c; d += 1)
|
|
44
|
-
u[d] = e.dirty[d] | i[d];
|
|
45
|
-
return u;
|
|
46
46
|
}
|
|
47
|
-
return e.dirty |
|
|
47
|
+
return e.dirty | c;
|
|
48
48
|
}
|
|
49
49
|
return e.dirty;
|
|
50
50
|
}
|
|
51
|
-
function Pt(t, e, n, r,
|
|
52
|
-
if (
|
|
53
|
-
const
|
|
54
|
-
t.p(
|
|
51
|
+
function Pt(t, e, n, r, c, i) {
|
|
52
|
+
if (c) {
|
|
53
|
+
const o = it(e, n, r, i);
|
|
54
|
+
t.p(o, c);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
function Nt(t) {
|
|
@@ -63,19 +63,19 @@ function Nt(t) {
|
|
|
63
63
|
}
|
|
64
64
|
return -1;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function Qe(t) {
|
|
67
67
|
return t ?? "";
|
|
68
68
|
}
|
|
69
69
|
function b(t, e) {
|
|
70
70
|
t.appendChild(e);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function G(t, e, n) {
|
|
73
73
|
t.insertBefore(e, n || null);
|
|
74
74
|
}
|
|
75
75
|
function j(t) {
|
|
76
76
|
t.parentNode && t.parentNode.removeChild(t);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function xt(t, e) {
|
|
79
79
|
for (let n = 0; n < t.length; n += 1)
|
|
80
80
|
t[n] && t[n].d(e);
|
|
81
81
|
}
|
|
@@ -88,10 +88,10 @@ function se(t) {
|
|
|
88
88
|
function ne(t) {
|
|
89
89
|
return document.createTextNode(t);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Q() {
|
|
92
92
|
return ne(" ");
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function x(t, e, n, r) {
|
|
95
95
|
return t.addEventListener(e, n, r), () => t.removeEventListener(e, n, r);
|
|
96
96
|
}
|
|
97
97
|
function jt(t) {
|
|
@@ -102,96 +102,96 @@ function jt(t) {
|
|
|
102
102
|
function f(t, e, n) {
|
|
103
103
|
n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function It(t) {
|
|
106
106
|
return Array.from(t.childNodes);
|
|
107
107
|
}
|
|
108
108
|
function he(t, e) {
|
|
109
|
-
e = "" + e, t.
|
|
109
|
+
e = "" + e, t.data !== e && (t.data = e);
|
|
110
110
|
}
|
|
111
111
|
function Ue(t, e) {
|
|
112
112
|
t.value = e ?? "";
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function X(t, e, n) {
|
|
115
115
|
t.classList[n ? "add" : "remove"](e);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
118
|
-
const
|
|
119
|
-
return
|
|
117
|
+
function Gt(t, e, { bubbles: n = !1, cancelable: r = !1 } = {}) {
|
|
118
|
+
const c = document.createEvent("CustomEvent");
|
|
119
|
+
return c.initCustomEvent(t, n, r, e), c;
|
|
120
120
|
}
|
|
121
121
|
let me;
|
|
122
122
|
function de(t) {
|
|
123
123
|
me = t;
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function ut() {
|
|
126
126
|
if (!me)
|
|
127
127
|
throw new Error("Function called outside component initialization");
|
|
128
128
|
return me;
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
|
|
130
|
+
function Ot(t) {
|
|
131
|
+
ut().$$.on_destroy.push(t);
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
const t =
|
|
133
|
+
function Dt() {
|
|
134
|
+
const t = ut();
|
|
135
135
|
return (e, n, { cancelable: r = !1 } = {}) => {
|
|
136
|
-
const
|
|
137
|
-
if (
|
|
138
|
-
const
|
|
139
|
-
return
|
|
140
|
-
|
|
141
|
-
}), !
|
|
136
|
+
const c = t.$$.callbacks[e];
|
|
137
|
+
if (c) {
|
|
138
|
+
const i = Gt(e, n, { cancelable: r });
|
|
139
|
+
return c.slice().forEach((o) => {
|
|
140
|
+
o.call(t, i);
|
|
141
|
+
}), !i.defaultPrevented;
|
|
142
142
|
}
|
|
143
143
|
return !0;
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
|
-
const
|
|
147
|
-
let
|
|
148
|
-
const We = [],
|
|
146
|
+
const ie = [], xe = [];
|
|
147
|
+
let ue = [];
|
|
148
|
+
const We = [], Ft = /* @__PURE__ */ Promise.resolve();
|
|
149
149
|
let je = !1;
|
|
150
|
-
function
|
|
151
|
-
je || (je = !0,
|
|
150
|
+
function Vt() {
|
|
151
|
+
je || (je = !0, Ft.then(st));
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
|
|
153
|
+
function Ie(t) {
|
|
154
|
+
ue.push(t);
|
|
155
155
|
}
|
|
156
156
|
const Ne = /* @__PURE__ */ new Set();
|
|
157
|
-
let
|
|
157
|
+
let ce = 0;
|
|
158
158
|
function st() {
|
|
159
|
-
if (
|
|
159
|
+
if (ce !== 0)
|
|
160
160
|
return;
|
|
161
161
|
const t = me;
|
|
162
162
|
do {
|
|
163
163
|
try {
|
|
164
|
-
for (;
|
|
165
|
-
const e =
|
|
166
|
-
|
|
164
|
+
for (; ce < ie.length; ) {
|
|
165
|
+
const e = ie[ce];
|
|
166
|
+
ce++, de(e), Ht(e.$$);
|
|
167
167
|
}
|
|
168
168
|
} catch (e) {
|
|
169
|
-
throw
|
|
169
|
+
throw ie.length = 0, ce = 0, e;
|
|
170
170
|
}
|
|
171
|
-
for (de(null),
|
|
172
|
-
|
|
173
|
-
for (let e = 0; e <
|
|
174
|
-
const n =
|
|
171
|
+
for (de(null), ie.length = 0, ce = 0; xe.length; )
|
|
172
|
+
xe.pop()();
|
|
173
|
+
for (let e = 0; e < ue.length; e += 1) {
|
|
174
|
+
const n = ue[e];
|
|
175
175
|
Ne.has(n) || (Ne.add(n), n());
|
|
176
176
|
}
|
|
177
|
-
|
|
178
|
-
} while (
|
|
177
|
+
ue.length = 0;
|
|
178
|
+
} while (ie.length);
|
|
179
179
|
for (; We.length; )
|
|
180
180
|
We.pop()();
|
|
181
181
|
je = !1, Ne.clear(), de(t);
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function Ht(t) {
|
|
184
184
|
if (t.fragment !== null) {
|
|
185
|
-
t.update(),
|
|
185
|
+
t.update(), Y(t.before_update);
|
|
186
186
|
const e = t.dirty;
|
|
187
|
-
t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(
|
|
187
|
+
t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(Ie);
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function Kt(t) {
|
|
191
191
|
const e = [], n = [];
|
|
192
|
-
|
|
192
|
+
ue.forEach((r) => t.indexOf(r) === -1 ? e.push(r) : n.push(r)), n.forEach((r) => r()), ue = e;
|
|
193
193
|
}
|
|
194
|
-
const
|
|
194
|
+
const Re = /* @__PURE__ */ new Set();
|
|
195
195
|
let te;
|
|
196
196
|
function Ze() {
|
|
197
197
|
te = {
|
|
@@ -202,17 +202,17 @@ function Ze() {
|
|
|
202
202
|
};
|
|
203
203
|
}
|
|
204
204
|
function Je() {
|
|
205
|
-
te.r ||
|
|
205
|
+
te.r || Y(te.c), te = te.p;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
t && t.i && (
|
|
207
|
+
function I(t, e) {
|
|
208
|
+
t && t.i && (Re.delete(t), t.i(e));
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function K(t, e, n, r) {
|
|
211
211
|
if (t && t.o) {
|
|
212
|
-
if (
|
|
212
|
+
if (Re.has(t))
|
|
213
213
|
return;
|
|
214
|
-
|
|
215
|
-
|
|
214
|
+
Re.add(t), te.c.push(() => {
|
|
215
|
+
Re.delete(t), r && (n && t.d(1), r());
|
|
216
216
|
}), t.o(e);
|
|
217
217
|
} else
|
|
218
218
|
r && r();
|
|
@@ -221,69 +221,69 @@ function Ee(t) {
|
|
|
221
221
|
t && t.c();
|
|
222
222
|
}
|
|
223
223
|
function _e(t, e, n, r) {
|
|
224
|
-
const { fragment:
|
|
225
|
-
|
|
226
|
-
const
|
|
227
|
-
t.$$.on_destroy ? t.$$.on_destroy.push(...
|
|
228
|
-
}),
|
|
224
|
+
const { fragment: c, after_update: i } = t.$$;
|
|
225
|
+
c && c.m(e, n), r || Ie(() => {
|
|
226
|
+
const o = t.$$.on_mount.map(ot).filter(ct);
|
|
227
|
+
t.$$.on_destroy ? t.$$.on_destroy.push(...o) : Y(o), t.$$.on_mount = [];
|
|
228
|
+
}), i.forEach(Ie);
|
|
229
229
|
}
|
|
230
230
|
function ge(t, e) {
|
|
231
231
|
const n = t.$$;
|
|
232
|
-
n.fragment !== null && (
|
|
232
|
+
n.fragment !== null && (Kt(n.after_update), Y(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
233
233
|
}
|
|
234
|
-
function
|
|
235
|
-
t.$$.dirty[0] === -1 && (
|
|
234
|
+
function Qt(t, e) {
|
|
235
|
+
t.$$.dirty[0] === -1 && (ie.push(t), Vt(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
236
236
|
}
|
|
237
|
-
function be(t, e, n, r,
|
|
238
|
-
const
|
|
237
|
+
function be(t, e, n, r, c, i, o, d = [-1]) {
|
|
238
|
+
const u = me;
|
|
239
239
|
de(t);
|
|
240
240
|
const a = t.$$ = {
|
|
241
241
|
fragment: null,
|
|
242
242
|
ctx: [],
|
|
243
243
|
// state
|
|
244
|
-
props:
|
|
245
|
-
update:
|
|
246
|
-
not_equal:
|
|
247
|
-
bound:
|
|
244
|
+
props: i,
|
|
245
|
+
update: C,
|
|
246
|
+
not_equal: c,
|
|
247
|
+
bound: Ke(),
|
|
248
248
|
// lifecycle
|
|
249
249
|
on_mount: [],
|
|
250
250
|
on_destroy: [],
|
|
251
251
|
on_disconnect: [],
|
|
252
252
|
before_update: [],
|
|
253
253
|
after_update: [],
|
|
254
|
-
context: new Map(e.context || (
|
|
254
|
+
context: new Map(e.context || (u ? u.$$.context : [])),
|
|
255
255
|
// everything else
|
|
256
|
-
callbacks:
|
|
256
|
+
callbacks: Ke(),
|
|
257
257
|
dirty: d,
|
|
258
258
|
skip_bound: !1,
|
|
259
|
-
root: e.target ||
|
|
259
|
+
root: e.target || u.$$.root
|
|
260
260
|
};
|
|
261
|
-
|
|
262
|
-
let
|
|
263
|
-
if (a.ctx = n ? n(t, e.props || {}, (
|
|
264
|
-
const P =
|
|
265
|
-
return a.ctx &&
|
|
266
|
-
}) : [], a.update(),
|
|
261
|
+
o && o(a.root);
|
|
262
|
+
let p = !1;
|
|
263
|
+
if (a.ctx = n ? n(t, e.props || {}, (R, B, ...q) => {
|
|
264
|
+
const P = q.length ? q[0] : B;
|
|
265
|
+
return a.ctx && c(a.ctx[R], a.ctx[R] = P) && (!a.skip_bound && a.bound[R] && a.bound[R](P), p && Qt(t, R)), B;
|
|
266
|
+
}) : [], a.update(), p = !0, Y(a.before_update), a.fragment = r ? r(a.ctx) : !1, e.target) {
|
|
267
267
|
if (e.hydrate) {
|
|
268
|
-
const
|
|
269
|
-
a.fragment && a.fragment.l(
|
|
268
|
+
const R = It(e.target);
|
|
269
|
+
a.fragment && a.fragment.l(R), R.forEach(j);
|
|
270
270
|
} else
|
|
271
271
|
a.fragment && a.fragment.c();
|
|
272
|
-
e.intro &&
|
|
272
|
+
e.intro && I(t.$$.fragment), _e(t, e.target, e.anchor, e.customElement), st();
|
|
273
273
|
}
|
|
274
|
-
de(
|
|
274
|
+
de(u);
|
|
275
275
|
}
|
|
276
276
|
class we {
|
|
277
277
|
$destroy() {
|
|
278
|
-
ge(this, 1), this.$destroy =
|
|
278
|
+
ge(this, 1), this.$destroy = C;
|
|
279
279
|
}
|
|
280
280
|
$on(e, n) {
|
|
281
|
-
if (!
|
|
282
|
-
return
|
|
281
|
+
if (!ct(n))
|
|
282
|
+
return C;
|
|
283
283
|
const r = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
284
284
|
return r.push(n), () => {
|
|
285
|
-
const
|
|
286
|
-
|
|
285
|
+
const c = r.indexOf(n);
|
|
286
|
+
c !== -1 && r.splice(c, 1);
|
|
287
287
|
};
|
|
288
288
|
}
|
|
289
289
|
$set(e) {
|
|
@@ -294,14 +294,14 @@ function Ut(t) {
|
|
|
294
294
|
let e, n;
|
|
295
295
|
return {
|
|
296
296
|
c() {
|
|
297
|
-
e = se("svg"), n = se("path"), f(n, "d", "
|
|
297
|
+
e = se("svg"), n = se("path"), f(n, "d", "M3.8 2.5c-.6 0-1.3.7-1.3 1.3 0 .3.2.7.5.8L7.2 9 3 13.2c-.3.3-.5.7-.5 1 0 .6.7 1.3 1.3 1.3.3 0 .7-.2 1-.5L9 10.8l4.2 4.2c.2.3.7.3 1 .3.6 0 1.3-.7 1.3-1.3 0-.3-.2-.7-.3-1l-4.4-4L15 4.6c.3-.2.5-.5.5-.8 0-.7-.7-1.3-1.3-1.3-.3 0-.7.2-1 .3L9 7.1 4.8 2.8c-.3-.1-.7-.3-1-.3z"), f(e, "viewBox", "0 0 18 18"), f(e, "width", "16"), f(e, "height", "16"), f(e, "class", "svelte-en2qvf");
|
|
298
298
|
},
|
|
299
|
-
m(r,
|
|
300
|
-
|
|
299
|
+
m(r, c) {
|
|
300
|
+
G(r, e, c), b(e, n);
|
|
301
301
|
},
|
|
302
|
-
p:
|
|
303
|
-
i:
|
|
304
|
-
o:
|
|
302
|
+
p: C,
|
|
303
|
+
i: C,
|
|
304
|
+
o: C,
|
|
305
305
|
d(r) {
|
|
306
306
|
r && j(e);
|
|
307
307
|
}
|
|
@@ -313,19 +313,19 @@ class Wt extends we {
|
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
function Zt(t) {
|
|
316
|
-
let e
|
|
316
|
+
let e;
|
|
317
317
|
return {
|
|
318
318
|
c() {
|
|
319
|
-
e =
|
|
319
|
+
e = E("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>', f(e, "class", "svelte-7cmwmc");
|
|
320
320
|
},
|
|
321
|
-
m(
|
|
322
|
-
|
|
321
|
+
m(n, r) {
|
|
322
|
+
G(n, e, r);
|
|
323
323
|
},
|
|
324
|
-
p:
|
|
325
|
-
i:
|
|
326
|
-
o:
|
|
327
|
-
d(
|
|
328
|
-
|
|
324
|
+
p: C,
|
|
325
|
+
i: C,
|
|
326
|
+
o: C,
|
|
327
|
+
d(n) {
|
|
328
|
+
n && j(e);
|
|
329
329
|
}
|
|
330
330
|
};
|
|
331
331
|
}
|
|
@@ -335,19 +335,19 @@ class Jt extends we {
|
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
337
|
function Xt(t) {
|
|
338
|
-
let e;
|
|
338
|
+
let e, n;
|
|
339
339
|
return {
|
|
340
340
|
c() {
|
|
341
|
-
e =
|
|
341
|
+
e = se("svg"), n = se("path"), f(n, "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"), f(e, "viewBox", "0 0 60.006 21.412"), f(e, "width", "14"), f(e, "height", "20"), f(e, "class", "svelte-en2qvf");
|
|
342
342
|
},
|
|
343
|
-
m(
|
|
344
|
-
|
|
343
|
+
m(r, c) {
|
|
344
|
+
G(r, e, c), b(e, n);
|
|
345
345
|
},
|
|
346
|
-
p:
|
|
347
|
-
i:
|
|
348
|
-
o:
|
|
349
|
-
d(
|
|
350
|
-
|
|
346
|
+
p: C,
|
|
347
|
+
i: C,
|
|
348
|
+
o: C,
|
|
349
|
+
d(r) {
|
|
350
|
+
r && j(e);
|
|
351
351
|
}
|
|
352
352
|
};
|
|
353
353
|
}
|
|
@@ -362,12 +362,12 @@ function $t(t) {
|
|
|
362
362
|
c() {
|
|
363
363
|
e = se("svg"), n = se("path"), f(n, "d", "M7.4 2.5c-2.7 0-4.9 2.2-4.9 4.9s2.2 4.9 4.9 4.9c1 0 1.8-.2 2.5-.8l3.7 3.7c.2.2.4.3.8.3.7 0 1.1-.4 1.1-1.1 0-.3-.1-.5-.3-.8L11.4 10c.4-.8.8-1.6.8-2.5.1-2.8-2.1-5-4.8-5zm0 1.6c1.8 0 3.2 1.4 3.2 3.2s-1.4 3.2-3.2 3.2-3.3-1.3-3.3-3.1 1.4-3.3 3.3-3.3z"), f(e, "viewBox", "0 0 18 18"), f(e, "xml:space", "preserve"), f(e, "width", "20"), f(e, "class", "svelte-en2qvf");
|
|
364
364
|
},
|
|
365
|
-
m(r,
|
|
366
|
-
|
|
365
|
+
m(r, c) {
|
|
366
|
+
G(r, e, c), b(e, n);
|
|
367
367
|
},
|
|
368
|
-
p:
|
|
369
|
-
i:
|
|
370
|
-
o:
|
|
368
|
+
p: C,
|
|
369
|
+
i: C,
|
|
370
|
+
o: C,
|
|
371
371
|
d(r) {
|
|
372
372
|
r && j(e);
|
|
373
373
|
}
|
|
@@ -384,18 +384,18 @@ function Xe(t, e, n) {
|
|
|
384
384
|
}
|
|
385
385
|
function Ye(t) {
|
|
386
386
|
let e, n;
|
|
387
|
-
return e = new
|
|
387
|
+
return e = new Jt({}), {
|
|
388
388
|
c() {
|
|
389
389
|
Ee(e.$$.fragment);
|
|
390
390
|
},
|
|
391
|
-
m(r,
|
|
392
|
-
_e(e, r,
|
|
391
|
+
m(r, c) {
|
|
392
|
+
_e(e, r, c), n = !0;
|
|
393
393
|
},
|
|
394
394
|
i(r) {
|
|
395
|
-
n || (
|
|
395
|
+
n || (I(e.$$.fragment, r), n = !0);
|
|
396
396
|
},
|
|
397
397
|
o(r) {
|
|
398
|
-
|
|
398
|
+
K(e.$$.fragment, r), n = !1;
|
|
399
399
|
},
|
|
400
400
|
d(r) {
|
|
401
401
|
ge(e, r);
|
|
@@ -403,81 +403,81 @@ function Ye(t) {
|
|
|
403
403
|
};
|
|
404
404
|
}
|
|
405
405
|
function $e(t) {
|
|
406
|
-
let e, n, r,
|
|
407
|
-
return n = new
|
|
406
|
+
let e, n, r, c, i;
|
|
407
|
+
return n = new Yt({}), {
|
|
408
408
|
c() {
|
|
409
409
|
e = E("button"), Ee(n.$$.fragment), f(e, "type", "button"), f(
|
|
410
410
|
e,
|
|
411
411
|
"title",
|
|
412
412
|
/*reverseButtonTitle*/
|
|
413
413
|
t[9]
|
|
414
|
-
), f(e, "class", "svelte-
|
|
414
|
+
), f(e, "class", "svelte-1qszo8o"), X(
|
|
415
415
|
e,
|
|
416
416
|
"active",
|
|
417
417
|
/*reverseActive*/
|
|
418
418
|
t[0]
|
|
419
419
|
);
|
|
420
420
|
},
|
|
421
|
-
m(
|
|
422
|
-
|
|
421
|
+
m(o, d) {
|
|
422
|
+
G(o, e, d), _e(n, e, null), r = !0, c || (i = x(
|
|
423
423
|
e,
|
|
424
424
|
"click",
|
|
425
425
|
/*click_handler_2*/
|
|
426
426
|
t[56]
|
|
427
|
-
),
|
|
427
|
+
), c = !0);
|
|
428
428
|
},
|
|
429
|
-
p(
|
|
429
|
+
p(o, d) {
|
|
430
430
|
(!r || d[0] & /*reverseButtonTitle*/
|
|
431
431
|
512) && f(
|
|
432
432
|
e,
|
|
433
433
|
"title",
|
|
434
434
|
/*reverseButtonTitle*/
|
|
435
|
-
|
|
435
|
+
o[9]
|
|
436
436
|
), (!r || d[0] & /*reverseActive*/
|
|
437
|
-
1) &&
|
|
437
|
+
1) && X(
|
|
438
438
|
e,
|
|
439
439
|
"active",
|
|
440
440
|
/*reverseActive*/
|
|
441
|
-
|
|
441
|
+
o[0]
|
|
442
442
|
);
|
|
443
443
|
},
|
|
444
|
-
i(
|
|
445
|
-
r || (
|
|
444
|
+
i(o) {
|
|
445
|
+
r || (I(n.$$.fragment, o), r = !0);
|
|
446
446
|
},
|
|
447
|
-
o(
|
|
448
|
-
|
|
447
|
+
o(o) {
|
|
448
|
+
K(n.$$.fragment, o), r = !1;
|
|
449
449
|
},
|
|
450
|
-
d(
|
|
451
|
-
|
|
450
|
+
d(o) {
|
|
451
|
+
o && j(e), ge(n), c = !1, i();
|
|
452
452
|
}
|
|
453
453
|
};
|
|
454
454
|
}
|
|
455
455
|
function tn(t) {
|
|
456
|
-
let e, n, r,
|
|
456
|
+
let e, n, r, c = (
|
|
457
457
|
/*listFeatures*/
|
|
458
458
|
t[12]
|
|
459
|
-
),
|
|
460
|
-
for (let
|
|
461
|
-
|
|
459
|
+
), i = [];
|
|
460
|
+
for (let o = 0; o < c.length; o += 1)
|
|
461
|
+
i[o] = tt(Xe(t, c, o));
|
|
462
462
|
return {
|
|
463
463
|
c() {
|
|
464
464
|
e = E("ul");
|
|
465
|
-
for (let
|
|
466
|
-
|
|
467
|
-
f(e, "class", "svelte-
|
|
465
|
+
for (let o = 0; o < i.length; o += 1)
|
|
466
|
+
i[o].c();
|
|
467
|
+
f(e, "class", "svelte-1qszo8o");
|
|
468
468
|
},
|
|
469
|
-
m(
|
|
470
|
-
|
|
471
|
-
for (let
|
|
472
|
-
u
|
|
469
|
+
m(o, d) {
|
|
470
|
+
G(o, e, d);
|
|
471
|
+
for (let u = 0; u < i.length; u += 1)
|
|
472
|
+
i[u] && i[u].m(e, null);
|
|
473
473
|
n || (r = [
|
|
474
|
-
|
|
474
|
+
x(
|
|
475
475
|
e,
|
|
476
476
|
"mouseleave",
|
|
477
477
|
/*mouseleave_handler*/
|
|
478
478
|
t[59]
|
|
479
479
|
),
|
|
480
|
-
|
|
480
|
+
x(
|
|
481
481
|
e,
|
|
482
482
|
"blur",
|
|
483
483
|
/*blur_handler_1*/
|
|
@@ -485,23 +485,23 @@ function tn(t) {
|
|
|
485
485
|
)
|
|
486
486
|
], n = !0);
|
|
487
487
|
},
|
|
488
|
-
p(
|
|
488
|
+
p(o, d) {
|
|
489
489
|
if (d[0] & /*selectedItemIndex, pick, listFeatures, showPlaceType*/
|
|
490
490
|
2110464) {
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
let
|
|
494
|
-
for (
|
|
495
|
-
const a = Xe(
|
|
496
|
-
u
|
|
491
|
+
c = /*listFeatures*/
|
|
492
|
+
o[12];
|
|
493
|
+
let u;
|
|
494
|
+
for (u = 0; u < c.length; u += 1) {
|
|
495
|
+
const a = Xe(o, c, u);
|
|
496
|
+
i[u] ? i[u].p(a, d) : (i[u] = tt(a), i[u].c(), i[u].m(e, null));
|
|
497
497
|
}
|
|
498
|
-
for (;
|
|
499
|
-
u
|
|
500
|
-
|
|
498
|
+
for (; u < i.length; u += 1)
|
|
499
|
+
i[u].d(1);
|
|
500
|
+
i.length = c.length;
|
|
501
501
|
}
|
|
502
502
|
},
|
|
503
|
-
d(
|
|
504
|
-
|
|
503
|
+
d(o) {
|
|
504
|
+
o && j(e), xt(i, o), n = !1, Y(r);
|
|
505
505
|
}
|
|
506
506
|
};
|
|
507
507
|
}
|
|
@@ -512,13 +512,13 @@ function nn(t) {
|
|
|
512
512
|
e = E("div"), n = ne(
|
|
513
513
|
/*noResultsMessage*/
|
|
514
514
|
t[7]
|
|
515
|
-
), f(e, "class", "no-results svelte-
|
|
515
|
+
), f(e, "class", "no-results svelte-1qszo8o");
|
|
516
516
|
},
|
|
517
|
-
m(r,
|
|
518
|
-
|
|
517
|
+
m(r, c) {
|
|
518
|
+
G(r, e, c), b(e, n);
|
|
519
519
|
},
|
|
520
|
-
p(r,
|
|
521
|
-
|
|
520
|
+
p(r, c) {
|
|
521
|
+
c[0] & /*noResultsMessage*/
|
|
522
522
|
128 && he(
|
|
523
523
|
n,
|
|
524
524
|
/*noResultsMessage*/
|
|
@@ -536,10 +536,10 @@ function rn(t) {
|
|
|
536
536
|
c() {
|
|
537
537
|
n = ne(e);
|
|
538
538
|
},
|
|
539
|
-
m(r,
|
|
540
|
-
|
|
539
|
+
m(r, c) {
|
|
540
|
+
G(r, n, c);
|
|
541
541
|
},
|
|
542
|
-
p:
|
|
542
|
+
p: C,
|
|
543
543
|
d(r) {
|
|
544
544
|
r && j(n);
|
|
545
545
|
}
|
|
@@ -552,13 +552,13 @@ function ln(t) {
|
|
|
552
552
|
e = E("div"), n = ne(
|
|
553
553
|
/*errorMessage*/
|
|
554
554
|
t[6]
|
|
555
|
-
), f(e, "class", "error svelte-
|
|
555
|
+
), f(e, "class", "error svelte-1qszo8o");
|
|
556
556
|
},
|
|
557
|
-
m(r,
|
|
558
|
-
|
|
557
|
+
m(r, c) {
|
|
558
|
+
G(r, e, c), b(e, n);
|
|
559
559
|
},
|
|
560
|
-
p(r,
|
|
561
|
-
|
|
560
|
+
p(r, c) {
|
|
561
|
+
c[0] & /*errorMessage*/
|
|
562
562
|
64 && he(
|
|
563
563
|
n,
|
|
564
564
|
/*errorMessage*/
|
|
@@ -571,43 +571,43 @@ function ln(t) {
|
|
|
571
571
|
};
|
|
572
572
|
}
|
|
573
573
|
function et(t) {
|
|
574
|
-
var
|
|
574
|
+
var c, i;
|
|
575
575
|
let e, n = (
|
|
576
576
|
/*feature*/
|
|
577
|
-
(((
|
|
577
|
+
(((i = (c = t[69].properties) == null ? void 0 : c.place_type_name) == null ? void 0 : i[0]) ?? /*feature*/
|
|
578
578
|
t[69].place_type[0]) + ""
|
|
579
579
|
), r;
|
|
580
580
|
return {
|
|
581
581
|
c() {
|
|
582
|
-
e = E("span"), r = ne(n), f(e, "class", "line2 svelte-
|
|
582
|
+
e = E("span"), r = ne(n), f(e, "class", "line2 svelte-1qszo8o");
|
|
583
583
|
},
|
|
584
|
-
m(
|
|
585
|
-
|
|
584
|
+
m(o, d) {
|
|
585
|
+
G(o, e, d), b(e, r);
|
|
586
586
|
},
|
|
587
|
-
p(
|
|
588
|
-
var
|
|
587
|
+
p(o, d) {
|
|
588
|
+
var u, a;
|
|
589
589
|
d[0] & /*listFeatures*/
|
|
590
590
|
4096 && n !== (n = /*feature*/
|
|
591
|
-
(((a = (
|
|
592
|
-
|
|
591
|
+
(((a = (u = o[69].properties) == null ? void 0 : u.place_type_name) == null ? void 0 : a[0]) ?? /*feature*/
|
|
592
|
+
o[69].place_type[0]) + "") && he(r, n);
|
|
593
593
|
},
|
|
594
|
-
d(
|
|
595
|
-
|
|
594
|
+
d(o) {
|
|
595
|
+
o && j(e);
|
|
596
596
|
}
|
|
597
597
|
};
|
|
598
598
|
}
|
|
599
599
|
function tt(t) {
|
|
600
|
-
let e, n, r,
|
|
600
|
+
let e, n, r, c, i = (
|
|
601
601
|
/*feature*/
|
|
602
602
|
t[69].place_name.replace(/,.*/, "") + ""
|
|
603
|
-
),
|
|
603
|
+
), o, d, u, a = (
|
|
604
604
|
/*feature*/
|
|
605
605
|
t[69].place_name.replace(/[^,]*,?\s*/, "") + ""
|
|
606
|
-
),
|
|
606
|
+
), p, R, B, q, P, O, h = (
|
|
607
607
|
/*showPlaceType*/
|
|
608
608
|
t[10] && et(t)
|
|
609
609
|
);
|
|
610
|
-
function
|
|
610
|
+
function D() {
|
|
611
611
|
return (
|
|
612
612
|
/*mouseenter_handler*/
|
|
613
613
|
t[57](
|
|
@@ -627,9 +627,9 @@ function tt(t) {
|
|
|
627
627
|
}
|
|
628
628
|
return {
|
|
629
629
|
c() {
|
|
630
|
-
e = E("li"), n = E("span"), r = E("span"),
|
|
630
|
+
e = E("li"), n = E("span"), r = E("span"), c = E("span"), o = ne(i), d = Q(), u = E("span"), p = ne(a), R = Q(), h && h.c(), B = Q(), f(c, "class", "primary svelte-1qszo8o"), f(u, "class", "secondary svelte-1qszo8o"), f(r, "class", "line1 svelte-1qszo8o"), f(n, "class", "texts svelte-1qszo8o"), f(e, "tabindex", "0"), f(e, "data-selected", q = /*selectedItemIndex*/
|
|
631
631
|
t[13] === /*i*/
|
|
632
|
-
t[71]), f(e, "class", "svelte-
|
|
632
|
+
t[71]), f(e, "class", "svelte-1qszo8o"), X(
|
|
633
633
|
e,
|
|
634
634
|
"selected",
|
|
635
635
|
/*selectedItemIndex*/
|
|
@@ -638,22 +638,22 @@ function tt(t) {
|
|
|
638
638
|
);
|
|
639
639
|
},
|
|
640
640
|
m(_, m) {
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
641
|
+
G(_, e, m), b(e, n), b(n, r), b(r, c), b(c, o), b(r, d), b(r, u), b(u, p), b(n, R), h && h.m(n, null), b(e, B), P || (O = [
|
|
642
|
+
x(e, "mouseenter", D),
|
|
643
|
+
x(e, "focus", U)
|
|
644
644
|
], P = !0);
|
|
645
645
|
},
|
|
646
646
|
p(_, m) {
|
|
647
647
|
t = _, m[0] & /*listFeatures*/
|
|
648
|
-
4096 &&
|
|
649
|
-
t[69].place_name.replace(/,.*/, "") + "") && he(
|
|
648
|
+
4096 && i !== (i = /*feature*/
|
|
649
|
+
t[69].place_name.replace(/,.*/, "") + "") && he(o, i), m[0] & /*listFeatures*/
|
|
650
650
|
4096 && a !== (a = /*feature*/
|
|
651
|
-
t[69].place_name.replace(/[^,]*,?\s*/, "") + "") && he(
|
|
651
|
+
t[69].place_name.replace(/[^,]*,?\s*/, "") + "") && he(p, a), /*showPlaceType*/
|
|
652
652
|
t[10] ? h ? h.p(t, m) : (h = et(t), h.c(), h.m(n, null)) : h && (h.d(1), h = null), m[0] & /*selectedItemIndex*/
|
|
653
|
-
8192 &&
|
|
653
|
+
8192 && q !== (q = /*selectedItemIndex*/
|
|
654
654
|
t[13] === /*i*/
|
|
655
|
-
t[71]) && f(e, "data-selected",
|
|
656
|
-
8192 &&
|
|
655
|
+
t[71]) && f(e, "data-selected", q), m[0] & /*selectedItemIndex*/
|
|
656
|
+
8192 && X(
|
|
657
657
|
e,
|
|
658
658
|
"selected",
|
|
659
659
|
/*selectedItemIndex*/
|
|
@@ -662,13 +662,13 @@ function tt(t) {
|
|
|
662
662
|
);
|
|
663
663
|
},
|
|
664
664
|
d(_) {
|
|
665
|
-
_ && j(e), h && h.d(), P = !1,
|
|
665
|
+
_ && j(e), h && h.d(), P = !1, Y(O);
|
|
666
666
|
}
|
|
667
667
|
};
|
|
668
668
|
}
|
|
669
|
-
function
|
|
670
|
-
let e, n, r,
|
|
671
|
-
|
|
669
|
+
function on(t) {
|
|
670
|
+
let e, n, r, c, i, o, d, u, a, p, R, B, q, P, O, h, D, U;
|
|
671
|
+
c = new en({}), p = new Wt({});
|
|
672
672
|
let _ = (
|
|
673
673
|
/*abortController*/
|
|
674
674
|
t[17] && Ye()
|
|
@@ -686,8 +686,8 @@ function cn(t) {
|
|
|
686
686
|
t[47],
|
|
687
687
|
null
|
|
688
688
|
);
|
|
689
|
-
function fe(s,
|
|
690
|
-
var
|
|
689
|
+
function fe(s, M) {
|
|
690
|
+
var v, re;
|
|
691
691
|
if (
|
|
692
692
|
/*error*/
|
|
693
693
|
s[16]
|
|
@@ -698,7 +698,7 @@ function cn(t) {
|
|
|
698
698
|
return rn;
|
|
699
699
|
if (
|
|
700
700
|
/*listFeatures*/
|
|
701
|
-
((
|
|
701
|
+
((v = s[12]) == null ? void 0 : v.length) === 0
|
|
702
702
|
)
|
|
703
703
|
return nn;
|
|
704
704
|
if (
|
|
@@ -708,33 +708,33 @@ function cn(t) {
|
|
|
708
708
|
)
|
|
709
709
|
return tn;
|
|
710
710
|
}
|
|
711
|
-
let
|
|
711
|
+
let H = fe(t), k = H && H(t);
|
|
712
712
|
return {
|
|
713
713
|
c() {
|
|
714
|
-
e = E("form"), n = E("div"), r = E("button"), Ee(
|
|
715
|
-
|
|
714
|
+
e = E("form"), n = E("div"), r = E("button"), Ee(c.$$.fragment), i = Q(), o = E("input"), d = Q(), u = E("div"), a = E("button"), Ee(p.$$.fragment), R = Q(), _ && _.c(), B = Q(), m && m.c(), q = Q(), L && L.c(), P = Q(), k && k.c(), f(r, "type", "button"), f(r, "class", "svelte-1qszo8o"), f(
|
|
715
|
+
o,
|
|
716
716
|
"placeholder",
|
|
717
717
|
/*placeholder*/
|
|
718
718
|
t[8]
|
|
719
719
|
), f(
|
|
720
|
-
|
|
720
|
+
o,
|
|
721
721
|
"aria-label",
|
|
722
722
|
/*placeholder*/
|
|
723
723
|
t[8]
|
|
724
|
-
), f(
|
|
724
|
+
), f(o, "class", "svelte-1qszo8o"), f(a, "type", "button"), f(
|
|
725
725
|
a,
|
|
726
726
|
"title",
|
|
727
727
|
/*clearButtonTitle*/
|
|
728
728
|
t[3]
|
|
729
|
-
), f(a, "class", "svelte-
|
|
730
|
-
|
|
729
|
+
), f(a, "class", "svelte-1qszo8o"), f(u, "class", "clear-button-container svelte-1qszo8o"), X(
|
|
730
|
+
u,
|
|
731
731
|
"displayable",
|
|
732
732
|
/*searchValue*/
|
|
733
733
|
t[1] !== ""
|
|
734
|
-
), f(
|
|
734
|
+
), f(n, "class", "input-group svelte-1qszo8o"), f(e, "tabindex", "0"), f(e, "class", O = Qe(
|
|
735
735
|
/*className*/
|
|
736
736
|
t[2]
|
|
737
|
-
) + " svelte-
|
|
737
|
+
) + " svelte-1qszo8o"), X(
|
|
738
738
|
e,
|
|
739
739
|
"can-collapse",
|
|
740
740
|
/*collapsed*/
|
|
@@ -742,100 +742,100 @@ function cn(t) {
|
|
|
742
742
|
t[1] === ""
|
|
743
743
|
);
|
|
744
744
|
},
|
|
745
|
-
m(s,
|
|
746
|
-
|
|
747
|
-
|
|
745
|
+
m(s, M) {
|
|
746
|
+
G(s, e, M), b(e, n), b(n, r), _e(c, r, null), b(n, i), b(n, o), t[50](o), Ue(
|
|
747
|
+
o,
|
|
748
748
|
/*searchValue*/
|
|
749
749
|
t[1]
|
|
750
|
-
), b(n, d), b(n,
|
|
751
|
-
|
|
750
|
+
), b(n, d), b(n, u), b(u, a), _e(p, a, null), b(u, R), _ && _.m(u, null), b(n, B), m && m.m(n, null), b(n, q), L && L.m(n, null), b(e, P), k && k.m(e, null), h = !0, D || (U = [
|
|
751
|
+
x(
|
|
752
752
|
r,
|
|
753
753
|
"click",
|
|
754
754
|
/*click_handler*/
|
|
755
755
|
t[49]
|
|
756
756
|
),
|
|
757
|
-
|
|
758
|
-
|
|
757
|
+
x(
|
|
758
|
+
o,
|
|
759
759
|
"input",
|
|
760
760
|
/*input_1_input_handler*/
|
|
761
761
|
t[51]
|
|
762
762
|
),
|
|
763
|
-
|
|
764
|
-
|
|
763
|
+
x(
|
|
764
|
+
o,
|
|
765
765
|
"focus",
|
|
766
766
|
/*focus_handler*/
|
|
767
767
|
t[52]
|
|
768
768
|
),
|
|
769
|
-
|
|
770
|
-
|
|
769
|
+
x(
|
|
770
|
+
o,
|
|
771
771
|
"blur",
|
|
772
772
|
/*blur_handler*/
|
|
773
773
|
t[53]
|
|
774
774
|
),
|
|
775
|
-
|
|
776
|
-
|
|
775
|
+
x(
|
|
776
|
+
o,
|
|
777
777
|
"keydown",
|
|
778
778
|
/*handleKeyDown*/
|
|
779
779
|
t[19]
|
|
780
780
|
),
|
|
781
|
-
|
|
782
|
-
|
|
781
|
+
x(
|
|
782
|
+
o,
|
|
783
783
|
"input",
|
|
784
784
|
/*input_handler*/
|
|
785
785
|
t[54]
|
|
786
786
|
),
|
|
787
|
-
|
|
787
|
+
x(
|
|
788
788
|
a,
|
|
789
789
|
"click",
|
|
790
790
|
/*click_handler_1*/
|
|
791
791
|
t[55]
|
|
792
792
|
),
|
|
793
|
-
|
|
793
|
+
x(e, "submit", jt(
|
|
794
794
|
/*handleOnSubmit*/
|
|
795
795
|
t[18]
|
|
796
796
|
))
|
|
797
|
-
],
|
|
797
|
+
], D = !0);
|
|
798
798
|
},
|
|
799
|
-
p(s,
|
|
800
|
-
(!h ||
|
|
799
|
+
p(s, M) {
|
|
800
|
+
(!h || M[0] & /*placeholder*/
|
|
801
801
|
256) && f(
|
|
802
|
-
|
|
802
|
+
o,
|
|
803
803
|
"placeholder",
|
|
804
804
|
/*placeholder*/
|
|
805
805
|
s[8]
|
|
806
|
-
), (!h ||
|
|
806
|
+
), (!h || M[0] & /*placeholder*/
|
|
807
807
|
256) && f(
|
|
808
|
-
|
|
808
|
+
o,
|
|
809
809
|
"aria-label",
|
|
810
810
|
/*placeholder*/
|
|
811
811
|
s[8]
|
|
812
|
-
),
|
|
813
|
-
2 &&
|
|
812
|
+
), M[0] & /*searchValue*/
|
|
813
|
+
2 && o.value !== /*searchValue*/
|
|
814
814
|
s[1] && Ue(
|
|
815
|
-
|
|
815
|
+
o,
|
|
816
816
|
/*searchValue*/
|
|
817
817
|
s[1]
|
|
818
|
-
), (!h ||
|
|
818
|
+
), (!h || M[0] & /*clearButtonTitle*/
|
|
819
819
|
8) && f(
|
|
820
820
|
a,
|
|
821
821
|
"title",
|
|
822
822
|
/*clearButtonTitle*/
|
|
823
823
|
s[3]
|
|
824
|
-
),
|
|
825
|
-
|
|
826
|
-
|
|
824
|
+
), /*abortController*/
|
|
825
|
+
s[17] ? _ ? M[0] & /*abortController*/
|
|
826
|
+
131072 && I(_, 1) : (_ = Ye(), _.c(), I(_, 1), _.m(u, null)) : _ && (Ze(), K(_, 1, 1, () => {
|
|
827
|
+
_ = null;
|
|
828
|
+
}), Je()), (!h || M[0] & /*searchValue*/
|
|
829
|
+
2) && X(
|
|
830
|
+
u,
|
|
827
831
|
"displayable",
|
|
828
832
|
/*searchValue*/
|
|
829
833
|
s[1] !== ""
|
|
830
|
-
), /*
|
|
831
|
-
s[
|
|
832
|
-
|
|
833
|
-
_ = null;
|
|
834
|
-
}), Je()), /*enableReverse*/
|
|
835
|
-
s[5] === !0 ? m ? (m.p(s, T), T[0] & /*enableReverse*/
|
|
836
|
-
32 && G(m, 1)) : (m = $e(s), m.c(), G(m, 1), m.m(n, C)) : m && (Ze(), Q(m, 1, 1, () => {
|
|
834
|
+
), /*enableReverse*/
|
|
835
|
+
s[5] === !0 ? m ? (m.p(s, M), M[0] & /*enableReverse*/
|
|
836
|
+
32 && I(m, 1)) : (m = $e(s), m.c(), I(m, 1), m.m(n, q)) : m && (Ze(), K(m, 1, 1, () => {
|
|
837
837
|
m = null;
|
|
838
|
-
}), Je()), L && L.p && (!h ||
|
|
838
|
+
}), Je()), L && L.p && (!h || M[1] & /*$$scope*/
|
|
839
839
|
65536) && Pt(
|
|
840
840
|
L,
|
|
841
841
|
g,
|
|
@@ -846,19 +846,19 @@ function cn(t) {
|
|
|
846
846
|
g,
|
|
847
847
|
/*$$scope*/
|
|
848
848
|
s[47],
|
|
849
|
-
|
|
849
|
+
M,
|
|
850
850
|
null
|
|
851
851
|
) : Nt(
|
|
852
852
|
/*$$scope*/
|
|
853
853
|
s[47]
|
|
854
854
|
),
|
|
855
855
|
null
|
|
856
|
-
),
|
|
857
|
-
4 &&
|
|
856
|
+
), H === (H = fe(s)) && k ? k.p(s, M) : (k && k.d(1), k = H && H(s), k && (k.c(), k.m(e, null))), (!h || M[0] & /*className*/
|
|
857
|
+
4 && O !== (O = Qe(
|
|
858
858
|
/*className*/
|
|
859
859
|
s[2]
|
|
860
|
-
) + " svelte-
|
|
861
|
-
22) &&
|
|
860
|
+
) + " svelte-1qszo8o")) && f(e, "class", O), (!h || M[0] & /*className, collapsed, searchValue*/
|
|
861
|
+
22) && X(
|
|
862
862
|
e,
|
|
863
863
|
"can-collapse",
|
|
864
864
|
/*collapsed*/
|
|
@@ -867,145 +867,145 @@ function cn(t) {
|
|
|
867
867
|
);
|
|
868
868
|
},
|
|
869
869
|
i(s) {
|
|
870
|
-
h || (
|
|
870
|
+
h || (I(c.$$.fragment, s), I(p.$$.fragment, s), I(_), I(m), I(L, s), h = !0);
|
|
871
871
|
},
|
|
872
872
|
o(s) {
|
|
873
|
-
|
|
873
|
+
K(c.$$.fragment, s), K(p.$$.fragment, s), K(_), K(m), K(L, s), h = !1;
|
|
874
874
|
},
|
|
875
875
|
d(s) {
|
|
876
|
-
s && j(e), ge(
|
|
876
|
+
s && j(e), ge(c), t[50](null), ge(p), _ && _.d(), m && m.d(), L && L.d(s), k && k.d(), D = !1, Y(U);
|
|
877
877
|
}
|
|
878
878
|
};
|
|
879
879
|
}
|
|
880
|
-
function
|
|
881
|
-
const r = e[1],
|
|
882
|
-
return t === r && n ? t : ((t -
|
|
880
|
+
function cn(t, e, n) {
|
|
881
|
+
const r = e[1], c = e[0], i = r - c;
|
|
882
|
+
return t === r && n ? t : ((t - c) % i + i) % i + c;
|
|
883
883
|
}
|
|
884
884
|
function nt(t) {
|
|
885
885
|
let e = [...t];
|
|
886
886
|
return e[2] < e[0] && (e[2] += 360), e;
|
|
887
887
|
}
|
|
888
|
-
function
|
|
889
|
-
let r, { $$slots:
|
|
888
|
+
function un(t, e, n) {
|
|
889
|
+
let r, { $$slots: c = {}, $$scope: i } = e, { class: o = void 0 } = e, { apiKey: d } = e, { bbox: u = void 0 } = e, { clearButtonTitle: a = "clear" } = e, { clearOnBlur: p = !1 } = e, { collapsed: R = !1 } = e, { country: B = void 0 } = e, { debounceSearch: q = 200 } = e, { enableReverse: P = !1 } = e, { errorMessage: O = "Searching failed" } = e, { filter: h = () => !0 } = e, { flyTo: D = !0 } = e, { fuzzyMatch: U = !0 } = e, { language: _ = void 0 } = e, { limit: m = void 0 } = e, { mapController: g = void 0 } = e, { minLength: L = 2 } = e, { noResultsMessage: fe = "No results found" } = e, { placeholder: H = "Search" } = e, { proximity: k = void 0 } = e, { reverseActive: s = P === "always" } = e, { reverseButtonTitle: M = "toggle reverse geocoding" } = e, { searchValue: v = "" } = e, { showFullGeometry: re = !0 } = e, { showPlaceType: Ge = !1 } = e, { showResultsWhileTyping: ke = !0 } = e, { trackProximity: ve = !0 } = e, { types: ze = void 0 } = e, { zoom: Te = 16 } = e, { fetchParameters: Ce = {} } = e;
|
|
890
890
|
function ft() {
|
|
891
|
-
|
|
891
|
+
F.focus();
|
|
892
892
|
}
|
|
893
893
|
function at() {
|
|
894
|
-
|
|
894
|
+
F.blur();
|
|
895
895
|
}
|
|
896
|
-
function
|
|
897
|
-
n(1,
|
|
898
|
-
|
|
896
|
+
function Oe(l, T = !0) {
|
|
897
|
+
n(1, v = l), T ? (n(13, z = -1), Fe()) : (qe(), setTimeout(() => {
|
|
898
|
+
F.focus(), F.select();
|
|
899
899
|
}));
|
|
900
900
|
}
|
|
901
|
-
let le = !1, y, S, w,
|
|
902
|
-
const Z =
|
|
903
|
-
|
|
901
|
+
let le = !1, y, S, w, De = "", F, z = -1, W, Me = [], $, oe, pe;
|
|
902
|
+
const Z = Dt();
|
|
903
|
+
Ot(() => {
|
|
904
904
|
g && (g.setEventHandler(void 0), g.indicateReverse(!1), g.setSelectedMarker(-1), g.setMarkers(void 0, void 0));
|
|
905
905
|
});
|
|
906
|
-
function
|
|
907
|
-
if (
|
|
908
|
-
n(45, w = y[
|
|
909
|
-
else if (
|
|
910
|
-
const
|
|
911
|
-
Be(
|
|
912
|
-
n(44, S = y), n(45, w = void 0),
|
|
913
|
-
}).catch((
|
|
906
|
+
function Fe(l) {
|
|
907
|
+
if (oe && (clearTimeout(oe), oe = void 0), z > -1 && y)
|
|
908
|
+
n(45, w = y[z]), n(1, v = w.place_name.replace(/,.*/, "")), n(16, W = void 0), n(44, S = void 0), n(13, z = -1);
|
|
909
|
+
else if (v) {
|
|
910
|
+
const T = l || !Ve();
|
|
911
|
+
Be(v, { exact: !0 }).then(() => {
|
|
912
|
+
n(44, S = y), n(45, w = void 0), T && dt();
|
|
913
|
+
}).catch((V) => n(16, W = V));
|
|
914
914
|
}
|
|
915
915
|
}
|
|
916
|
-
function
|
|
917
|
-
return /^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(
|
|
916
|
+
function Ve() {
|
|
917
|
+
return /^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(v);
|
|
918
918
|
}
|
|
919
|
-
async function Be(l, { byId:
|
|
919
|
+
async function Be(l, { byId: T = !1, exact: V = !1 } = {}) {
|
|
920
920
|
n(16, W = void 0);
|
|
921
|
-
const ae =
|
|
922
|
-
_ != null && N.set("language", Array.isArray(_) ? _.join(",") : _),
|
|
923
|
-
const
|
|
924
|
-
if (
|
|
925
|
-
|
|
921
|
+
const ae = Ve(), N = new URLSearchParams();
|
|
922
|
+
_ != null && N.set("language", Array.isArray(_) ? _.join(",") : _), ze && N.set("types", ze.join(",")), ae || (u && N.set("bbox", u.map((J) => J.toFixed(6)).join(",")), B && N.set("country", Array.isArray(B) ? B.join(",") : B)), T || (k && N.set("proximity", k.map((J) => J.toFixed(6)).join(",")), (V || !ke) && N.set("autocomplete", "false"), N.set("fuzzyMatch", String(U))), m !== void 0 && N.set("limit", String(m)), N.set("key", d);
|
|
923
|
+
const ee = "https://api.maptiler.com/geocoding/" + encodeURIComponent(l) + ".json?" + N.toString();
|
|
924
|
+
if (ee === De) {
|
|
925
|
+
T ? (n(12, y = void 0), n(45, w = Me[0])) : n(12, y = Me);
|
|
926
926
|
return;
|
|
927
927
|
}
|
|
928
|
-
|
|
928
|
+
De = ee, $ == null || $.abort();
|
|
929
929
|
const A = new AbortController();
|
|
930
|
-
n(17,
|
|
930
|
+
n(17, $ = A);
|
|
931
931
|
let Se;
|
|
932
932
|
try {
|
|
933
|
-
Se = await fetch(
|
|
934
|
-
A ===
|
|
933
|
+
Se = await fetch(ee, { signal: A.signal, ...Ce }).finally(() => {
|
|
934
|
+
A === $ && n(17, $ = void 0);
|
|
935
935
|
});
|
|
936
|
-
} catch (
|
|
937
|
-
if (
|
|
936
|
+
} catch (J) {
|
|
937
|
+
if (J && typeof J == "object" && "name" in J && J.name === "AbortError")
|
|
938
938
|
return;
|
|
939
939
|
throw new Error();
|
|
940
940
|
}
|
|
941
941
|
if (!Se.ok)
|
|
942
942
|
throw new Error();
|
|
943
943
|
const Ae = await Se.json();
|
|
944
|
-
Z("response", { url:
|
|
944
|
+
Z("response", { url: ee, featureCollection: Ae }), T ? (n(12, y = void 0), n(45, w = Ae.features[0]), Me = [w]) : (n(12, y = Ae.features.filter(h)), Me = y, ae && F.focus());
|
|
945
945
|
}
|
|
946
946
|
function dt() {
|
|
947
|
-
var
|
|
948
|
-
if (!(S != null && S.length) || !
|
|
947
|
+
var V, ae, N, ee;
|
|
948
|
+
if (!(S != null && S.length) || !D)
|
|
949
949
|
return;
|
|
950
|
-
const l = [180, 90, -180, -90],
|
|
950
|
+
const l = [180, 90, -180, -90], T = !S.some((A) => !A.matching_text);
|
|
951
951
|
for (const A of S)
|
|
952
|
-
(
|
|
953
|
-
g && S.length > 0 && (w && l[0] === l[2] && l[1] === l[3] ? g.flyTo(w.center,
|
|
952
|
+
(T || !A.matching_text) && (l[0] = Math.min(l[0], ((V = A.bbox) == null ? void 0 : V[0]) ?? A.center[0]), l[1] = Math.min(l[1], ((ae = A.bbox) == null ? void 0 : ae[1]) ?? A.center[1]), l[2] = Math.max(l[2], ((N = A.bbox) == null ? void 0 : N[2]) ?? A.center[0]), l[3] = Math.max(l[3], ((ee = A.bbox) == null ? void 0 : ee[3]) ?? A.center[1]));
|
|
953
|
+
g && S.length > 0 && (w && l[0] === l[2] && l[1] === l[3] ? g.flyTo(w.center, Te) : g.fitBounds(nt(l), 50));
|
|
954
954
|
}
|
|
955
955
|
function ht(l) {
|
|
956
|
-
n(0, s = P === "always"),
|
|
956
|
+
n(0, s = P === "always"), Oe(cn(l[0], [-180, 180], !0).toFixed(6) + "," + l[1].toFixed(6));
|
|
957
957
|
}
|
|
958
958
|
function mt(l) {
|
|
959
959
|
if (!y)
|
|
960
960
|
return;
|
|
961
|
-
let
|
|
962
|
-
|
|
961
|
+
let T = l.key === "ArrowDown" ? 1 : l.key === "ArrowUp" ? -1 : 0;
|
|
962
|
+
T ? (z === -1 && T === -1 && n(13, z = y.length), n(13, z += T), z >= y.length && n(13, z = -1), l.preventDefault()) : ["ArrowLeft", "ArrowRight", "Home", "End"].includes(l.key) && n(13, z = -1);
|
|
963
963
|
}
|
|
964
|
-
function
|
|
965
|
-
if (ke &&
|
|
966
|
-
|
|
967
|
-
const
|
|
968
|
-
|
|
964
|
+
function qe(l = !0) {
|
|
965
|
+
if (ke && v.length > L) {
|
|
966
|
+
oe && clearTimeout(oe);
|
|
967
|
+
const T = v;
|
|
968
|
+
oe = window.setTimeout(
|
|
969
969
|
() => {
|
|
970
|
-
Be(
|
|
970
|
+
Be(T).catch((V) => n(16, W = V));
|
|
971
971
|
},
|
|
972
|
-
l ?
|
|
972
|
+
l ? q : 0
|
|
973
973
|
);
|
|
974
974
|
} else
|
|
975
975
|
n(12, y = void 0), n(16, W = void 0);
|
|
976
976
|
}
|
|
977
977
|
function Le(l) {
|
|
978
|
-
n(45, w = l), n(1,
|
|
978
|
+
n(45, w = l), n(1, v = l.place_name), n(13, z = -1);
|
|
979
979
|
}
|
|
980
|
-
const _t = () =>
|
|
980
|
+
const _t = () => F.focus();
|
|
981
981
|
function gt(l) {
|
|
982
|
-
|
|
983
|
-
|
|
982
|
+
xe[l ? "unshift" : "push"](() => {
|
|
983
|
+
F = l, n(15, F);
|
|
984
984
|
});
|
|
985
985
|
}
|
|
986
986
|
function yt() {
|
|
987
|
-
|
|
987
|
+
v = this.value, n(1, v), n(11, le), n(25, p);
|
|
988
988
|
}
|
|
989
|
-
const bt = () => n(11, le = !0), wt = () => n(11, le = !1), kt = () =>
|
|
990
|
-
n(1,
|
|
991
|
-
},
|
|
989
|
+
const bt = () => n(11, le = !0), wt = () => n(11, le = !1), kt = () => qe(), vt = () => {
|
|
990
|
+
n(1, v = ""), F.focus();
|
|
991
|
+
}, zt = () => n(0, s = !s), Tt = (l) => n(13, z = l), Mt = (l) => Le(l), pt = () => n(13, z = -1), Rt = () => {
|
|
992
992
|
};
|
|
993
993
|
return t.$$set = (l) => {
|
|
994
|
-
"class" in l && n(2,
|
|
994
|
+
"class" in l && n(2, o = l.class), "apiKey" in l && n(23, d = l.apiKey), "bbox" in l && n(24, u = l.bbox), "clearButtonTitle" in l && n(3, a = l.clearButtonTitle), "clearOnBlur" in l && n(25, p = l.clearOnBlur), "collapsed" in l && n(4, R = l.collapsed), "country" in l && n(26, B = l.country), "debounceSearch" in l && n(27, q = l.debounceSearch), "enableReverse" in l && n(5, P = l.enableReverse), "errorMessage" in l && n(6, O = l.errorMessage), "filter" in l && n(28, h = l.filter), "flyTo" in l && n(29, D = l.flyTo), "fuzzyMatch" in l && n(30, U = l.fuzzyMatch), "language" in l && n(31, _ = l.language), "limit" in l && n(32, m = l.limit), "mapController" in l && n(33, g = l.mapController), "minLength" in l && n(34, L = l.minLength), "noResultsMessage" in l && n(7, fe = l.noResultsMessage), "placeholder" in l && n(8, H = l.placeholder), "proximity" in l && n(22, k = l.proximity), "reverseActive" in l && n(0, s = l.reverseActive), "reverseButtonTitle" in l && n(9, M = l.reverseButtonTitle), "searchValue" in l && n(1, v = l.searchValue), "showFullGeometry" in l && n(35, re = l.showFullGeometry), "showPlaceType" in l && n(10, Ge = l.showPlaceType), "showResultsWhileTyping" in l && n(36, ke = l.showResultsWhileTyping), "trackProximity" in l && n(37, ve = l.trackProximity), "types" in l && n(38, ze = l.types), "zoom" in l && n(39, Te = l.zoom), "fetchParameters" in l && n(40, Ce = l.fetchParameters), "$$scope" in l && n(47, i = l.$$scope);
|
|
995
995
|
}, t.$$.update = () => {
|
|
996
996
|
if (t.$$.dirty[1] & /*trackProximity*/
|
|
997
|
-
64 && (
|
|
997
|
+
64 && (ve || n(22, k = void 0)), t.$$.dirty[0] & /*focused, clearOnBlur*/
|
|
998
998
|
33556480 && setTimeout(() => {
|
|
999
|
-
n(14,
|
|
999
|
+
n(14, pe = le), p && !le && n(1, v = "");
|
|
1000
1000
|
}), t.$$.dirty[0] & /*searchValue, listFeatures*/
|
|
1001
|
-
4098 && (
|
|
1001
|
+
4098 && (v || (n(45, w = void 0), n(12, y = void 0), n(16, W = void 0), n(44, S = y))), t.$$.dirty[1] & /*showFullGeometry, picked*/
|
|
1002
1002
|
16400 && re && w && !w.address && w.geometry.type === "Point" && Be(w.id, { byId: !0 }).catch((l) => n(16, W = l)), t.$$.dirty[0] & /*flyTo*/
|
|
1003
1003
|
536870912 | t.$$.dirty[1] & /*mapController, picked, zoom*/
|
|
1004
|
-
16644 && g && w &&
|
|
1004
|
+
16644 && g && w && D && (!w.bbox || w.bbox[0] === w.bbox[2] && w.bbox[1] === w.bbox[3] ? g.flyTo(w.center, Te) : g.fitBounds(nt(w.bbox), 50), n(12, y = void 0), n(44, S = void 0), n(13, z = -1)), t.$$.dirty[0] & /*listFeatures*/
|
|
1005
1005
|
4096 | t.$$.dirty[1] & /*markedFeatures*/
|
|
1006
1006
|
8192 && S !== y && n(44, S = void 0), t.$$.dirty[1] & /*mapController, markedFeatures, picked*/
|
|
1007
1007
|
24580 && g && g.setMarkers(S, w), t.$$.dirty[0] & /*searchValue*/
|
|
1008
|
-
2 && n(13,
|
|
1008
|
+
2 && n(13, z = -1), t.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
|
|
1009
1009
|
20481 | t.$$.dirty[1] & /*mapController, trackProximity*/
|
|
1010
1010
|
68 && g && g.setEventHandler((l) => {
|
|
1011
1011
|
switch (l.type) {
|
|
@@ -1013,71 +1013,71 @@ function on(t, e, n) {
|
|
|
1013
1013
|
s && ht(l.coordinates);
|
|
1014
1014
|
break;
|
|
1015
1015
|
case "proximityChange":
|
|
1016
|
-
n(22, k =
|
|
1016
|
+
n(22, k = ve ? l.proximity : void 0);
|
|
1017
1017
|
break;
|
|
1018
1018
|
case "markerClick":
|
|
1019
1019
|
{
|
|
1020
|
-
const
|
|
1021
|
-
|
|
1020
|
+
const T = y == null ? void 0 : y.find((V) => V.id === l.id);
|
|
1021
|
+
T && Le(T);
|
|
1022
1022
|
}
|
|
1023
1023
|
break;
|
|
1024
1024
|
case "markerMouseEnter":
|
|
1025
|
-
n(13,
|
|
1025
|
+
n(13, z = pe ? (y == null ? void 0 : y.findIndex((T) => T.id === l.id)) ?? -1 : -1);
|
|
1026
1026
|
break;
|
|
1027
1027
|
case "markerMouseLeave":
|
|
1028
|
-
n(13,
|
|
1028
|
+
n(13, z = -1);
|
|
1029
1029
|
break;
|
|
1030
1030
|
}
|
|
1031
1031
|
}), t.$$.dirty[0] & /*selectedItemIndex*/
|
|
1032
1032
|
8192 | t.$$.dirty[1] & /*mapController*/
|
|
1033
|
-
4 && (g == null || g.setSelectedMarker(
|
|
1034
|
-
12288 && n(46, r = y == null ? void 0 : y[
|
|
1033
|
+
4 && (g == null || g.setSelectedMarker(z)), t.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
|
|
1034
|
+
12288 && n(46, r = y == null ? void 0 : y[z]), t.$$.dirty[0] & /*searchValue*/
|
|
1035
1035
|
2 | t.$$.dirty[1] & /*mapController*/
|
|
1036
1036
|
4) {
|
|
1037
|
-
const l = /^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(
|
|
1037
|
+
const l = /^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(v);
|
|
1038
1038
|
g == null || g.setReverseMarker(l ? [Number(l[1]), Number(l[2])] : void 0);
|
|
1039
1039
|
}
|
|
1040
1040
|
t.$$.dirty[1] & /*selected*/
|
|
1041
1041
|
32768 && Z("select", r), t.$$.dirty[1] & /*picked*/
|
|
1042
1042
|
16384 && Z("pick", w), t.$$.dirty[0] & /*focusedDelayed, listFeatures*/
|
|
1043
|
-
20480 && Z("optionsVisibilityChange",
|
|
1043
|
+
20480 && Z("optionsVisibilityChange", pe && !!y), t.$$.dirty[0] & /*listFeatures*/
|
|
1044
1044
|
4096 && Z("featuresListed", y), t.$$.dirty[1] & /*markedFeatures*/
|
|
1045
1045
|
8192 && Z("featuresMarked", S), t.$$.dirty[0] & /*reverseActive*/
|
|
1046
1046
|
1 && Z("reverseToggle", s), t.$$.dirty[0] & /*searchValue*/
|
|
1047
|
-
2 && Z("queryChange",
|
|
1047
|
+
2 && Z("queryChange", v), t.$$.dirty[0] & /*reverseActive*/
|
|
1048
1048
|
1 | t.$$.dirty[1] & /*mapController*/
|
|
1049
1049
|
4 && g && g.indicateReverse(s);
|
|
1050
1050
|
}, [
|
|
1051
1051
|
s,
|
|
1052
|
-
|
|
1053
|
-
|
|
1052
|
+
v,
|
|
1053
|
+
o,
|
|
1054
1054
|
a,
|
|
1055
|
-
|
|
1055
|
+
R,
|
|
1056
1056
|
P,
|
|
1057
|
-
|
|
1057
|
+
O,
|
|
1058
1058
|
fe,
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1059
|
+
H,
|
|
1060
|
+
M,
|
|
1061
|
+
Ge,
|
|
1062
1062
|
le,
|
|
1063
1063
|
y,
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1064
|
+
z,
|
|
1065
|
+
pe,
|
|
1066
|
+
F,
|
|
1067
1067
|
W,
|
|
1068
|
-
|
|
1069
|
-
|
|
1068
|
+
$,
|
|
1069
|
+
Fe,
|
|
1070
1070
|
mt,
|
|
1071
|
-
|
|
1071
|
+
qe,
|
|
1072
1072
|
Le,
|
|
1073
1073
|
k,
|
|
1074
1074
|
d,
|
|
1075
|
-
|
|
1076
|
-
|
|
1075
|
+
u,
|
|
1076
|
+
p,
|
|
1077
1077
|
B,
|
|
1078
|
-
|
|
1078
|
+
q,
|
|
1079
1079
|
h,
|
|
1080
|
-
|
|
1080
|
+
D,
|
|
1081
1081
|
U,
|
|
1082
1082
|
_,
|
|
1083
1083
|
m,
|
|
@@ -1085,30 +1085,30 @@ function on(t, e, n) {
|
|
|
1085
1085
|
L,
|
|
1086
1086
|
re,
|
|
1087
1087
|
ke,
|
|
1088
|
-
pe,
|
|
1089
1088
|
ve,
|
|
1090
|
-
Me,
|
|
1091
1089
|
ze,
|
|
1090
|
+
Te,
|
|
1091
|
+
Ce,
|
|
1092
1092
|
ft,
|
|
1093
1093
|
at,
|
|
1094
|
-
|
|
1094
|
+
Oe,
|
|
1095
1095
|
S,
|
|
1096
1096
|
w,
|
|
1097
1097
|
r,
|
|
1098
|
-
u,
|
|
1099
1098
|
i,
|
|
1099
|
+
c,
|
|
1100
1100
|
_t,
|
|
1101
1101
|
gt,
|
|
1102
1102
|
yt,
|
|
1103
1103
|
bt,
|
|
1104
1104
|
wt,
|
|
1105
1105
|
kt,
|
|
1106
|
-
pt,
|
|
1107
1106
|
vt,
|
|
1108
|
-
|
|
1107
|
+
zt,
|
|
1109
1108
|
Tt,
|
|
1110
|
-
|
|
1111
|
-
|
|
1109
|
+
Mt,
|
|
1110
|
+
pt,
|
|
1111
|
+
Rt
|
|
1112
1112
|
];
|
|
1113
1113
|
}
|
|
1114
1114
|
class sn extends we {
|
|
@@ -1116,8 +1116,8 @@ class sn extends we {
|
|
|
1116
1116
|
super(), be(
|
|
1117
1117
|
this,
|
|
1118
1118
|
e,
|
|
1119
|
+
un,
|
|
1119
1120
|
on,
|
|
1120
|
-
cn,
|
|
1121
1121
|
ye,
|
|
1122
1122
|
{
|
|
1123
1123
|
class: 2,
|
|
@@ -1173,9 +1173,9 @@ const rt = [
|
|
|
1173
1173
|
"featuresMarked",
|
|
1174
1174
|
"optionsVisibilityChange",
|
|
1175
1175
|
"pick",
|
|
1176
|
-
"
|
|
1176
|
+
"queryChange",
|
|
1177
1177
|
"response",
|
|
1178
|
-
"
|
|
1178
|
+
"reverseToggle",
|
|
1179
1179
|
"select"
|
|
1180
1180
|
], fn = [
|
|
1181
1181
|
"apiKey",
|
|
@@ -1208,46 +1208,46 @@ function lt(t) {
|
|
|
1208
1208
|
return "on" + t[0].toUpperCase() + t.slice(1);
|
|
1209
1209
|
}
|
|
1210
1210
|
const dn = Et(function(e, n) {
|
|
1211
|
-
const r =
|
|
1212
|
-
for (const
|
|
1213
|
-
delete
|
|
1211
|
+
const r = He(), c = He(), i = { ...e };
|
|
1212
|
+
for (const o of rt)
|
|
1213
|
+
delete i[lt(o)];
|
|
1214
1214
|
Pe(() => {
|
|
1215
1215
|
if (!r.current)
|
|
1216
1216
|
throw new Error();
|
|
1217
|
-
const
|
|
1217
|
+
const o = new sn({
|
|
1218
1218
|
target: r.current,
|
|
1219
|
-
props:
|
|
1219
|
+
props: i
|
|
1220
1220
|
});
|
|
1221
|
-
return
|
|
1221
|
+
return c.current = o, () => o.$destroy();
|
|
1222
1222
|
}, []);
|
|
1223
|
-
for (const
|
|
1223
|
+
for (const o of fn)
|
|
1224
1224
|
Pe(() => {
|
|
1225
|
-
|
|
1226
|
-
}, [e[
|
|
1227
|
-
for (const
|
|
1228
|
-
const d = e[lt(
|
|
1225
|
+
c.current && e[o] !== void 0 && c.current.$set({ [o]: e[o] });
|
|
1226
|
+
}, [e[o]]);
|
|
1227
|
+
for (const o of rt) {
|
|
1228
|
+
const d = e[lt(o)];
|
|
1229
1229
|
Pe(() => {
|
|
1230
|
-
var
|
|
1231
|
-
(
|
|
1232
|
-
|
|
1230
|
+
var u;
|
|
1231
|
+
(u = c.current) == null || u.$on(
|
|
1232
|
+
o,
|
|
1233
1233
|
d ? (a) => {
|
|
1234
1234
|
d(a.detail);
|
|
1235
1235
|
} : void 0
|
|
1236
1236
|
);
|
|
1237
1237
|
}, [d]);
|
|
1238
1238
|
}
|
|
1239
|
-
return
|
|
1240
|
-
setQuery: (
|
|
1241
|
-
var
|
|
1242
|
-
return (
|
|
1239
|
+
return Ct(n, () => ({
|
|
1240
|
+
setQuery: (o, d = !0) => {
|
|
1241
|
+
var u;
|
|
1242
|
+
return (u = c.current) == null ? void 0 : u.setQuery(o, d);
|
|
1243
1243
|
},
|
|
1244
1244
|
focus: () => {
|
|
1245
|
-
var
|
|
1246
|
-
return (
|
|
1245
|
+
var o;
|
|
1246
|
+
return (o = c.current) == null ? void 0 : o.focus();
|
|
1247
1247
|
},
|
|
1248
1248
|
blur: () => {
|
|
1249
|
-
var
|
|
1250
|
-
return (
|
|
1249
|
+
var o;
|
|
1250
|
+
return (o = c.current) == null ? void 0 : o.blur();
|
|
1251
1251
|
}
|
|
1252
1252
|
})), Bt("div", { ref: r });
|
|
1253
1253
|
});
|