@maptiler/geocoding-control 0.0.78 → 0.0.81
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/ClearIcon.svelte.d.ts +23 -0
- package/GeocodingControl.svelte +685 -0
- package/GeocodingControl.svelte.d.ts +66 -0
- package/LoadingIcon.svelte.d.ts +23 -0
- package/{src/lib/MarkerIcon.svelte → MarkerIcon.svelte} +1 -2
- package/MarkerIcon.svelte.d.ts +16 -0
- package/ReverseGeocodingIcon.svelte.d.ts +23 -0
- package/SearchIcon.svelte.d.ts +23 -0
- package/leaflet-controller.js +1 -0
- package/leaflet-controller.js.map +1 -0
- package/leaflet-controller.umd.js +1 -0
- package/leaflet-controller.umd.js.map +1 -0
- package/leaflet.js +3998 -4021
- package/leaflet.js.map +1 -0
- package/leaflet.umd.js +6 -5
- package/leaflet.umd.js.map +1 -0
- package/maplibregl-controller.js +1 -0
- package/maplibregl-controller.js.map +1 -0
- package/maplibregl-controller.umd.js +1 -0
- package/maplibregl-controller.umd.js.map +1 -0
- package/maplibregl.js +4089 -4112
- package/maplibregl.js.map +1 -0
- package/maplibregl.umd.js +6 -5
- package/maplibregl.umd.js.map +1 -0
- package/package.json +23 -23
- package/react.js +571 -649
- package/react.js.map +1 -0
- package/react.umd.js +2 -1
- package/react.umd.js.map +1 -0
- package/style.css +1 -1
- package/src/AppLeaflet.svelte +0 -55
- package/src/AppMaplibregl.svelte +0 -45
- package/src/lib/GeocodingControl.svelte +0 -839
- package/src/lib/LeafletGeocodingControl.ts +0 -154
- package/src/lib/MaplibreglGeocodingControl.ts +0 -160
- package/src/lib/ReactGeocodingControl.ts +0 -158
- package/src/lib/leafletMapController.ts +0 -305
- package/src/lib/maplibreglMapController.ts +0 -366
- package/src/lib/mask.ts +0 -70
- package/src/lib/types.ts +0 -235
- package/src/main-copy.ts +0 -59
- package/src/main.ts +0 -65
- package/src/vite-env.d.ts +0 -2
- /package/{src/lib/ClearIcon.svelte → ClearIcon.svelte} +0 -0
- /package/{src/lib/LoadingIcon.svelte → LoadingIcon.svelte} +0 -0
- /package/{src/lib/ReverseGeocodingIcon.svelte → ReverseGeocodingIcon.svelte} +0 -0
- /package/{src/lib/SearchIcon.svelte → SearchIcon.svelte} +0 -0
- /package/{maplibre.d.ts → maplibregl.d.ts} +0 -0
package/react.js
CHANGED
|
@@ -1,141 +1,141 @@
|
|
|
1
|
-
import { forwardRef as
|
|
2
|
-
function
|
|
1
|
+
import { forwardRef as Et, useRef as Ke, useEffect as Pe, useImperativeHandle as zt, createElement as Bt } from "react";
|
|
2
|
+
function z() {
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function Ct(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 it(t) {
|
|
10
10
|
return t();
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Qe() {
|
|
13
13
|
return /* @__PURE__ */ Object.create(null);
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
t.forEach(
|
|
15
|
+
function X(t) {
|
|
16
|
+
t.forEach(it);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function ct(t) {
|
|
19
19
|
return typeof t == "function";
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function ye(t, e) {
|
|
22
22
|
return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
|
|
23
23
|
}
|
|
24
24
|
function Lt(t) {
|
|
25
25
|
return Object.keys(t).length === 0;
|
|
26
26
|
}
|
|
27
|
-
function St(t, e, n,
|
|
27
|
+
function St(t, e, n, r) {
|
|
28
28
|
if (t) {
|
|
29
|
-
const c =
|
|
29
|
+
const c = ut(t, e, n, r);
|
|
30
30
|
return t[0](c);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
return t[1] &&
|
|
33
|
+
function ut(t, e, n, r) {
|
|
34
|
+
return t[1] && r ? Ct(n.ctx.slice(), t[1](r(e))) : n.ctx;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
if (t[2] &&
|
|
38
|
-
const c = t[2](
|
|
36
|
+
function At(t, e, n, r) {
|
|
37
|
+
if (t[2] && r) {
|
|
38
|
+
const c = t[2](r(n));
|
|
39
39
|
if (e.dirty === void 0)
|
|
40
40
|
return c;
|
|
41
41
|
if (typeof c == "object") {
|
|
42
42
|
const u = [], i = Math.max(e.dirty.length, c.length);
|
|
43
|
-
for (let
|
|
44
|
-
u[
|
|
43
|
+
for (let d = 0; d < i; d += 1)
|
|
44
|
+
u[d] = e.dirty[d] | c[d];
|
|
45
45
|
return u;
|
|
46
46
|
}
|
|
47
47
|
return e.dirty | c;
|
|
48
48
|
}
|
|
49
49
|
return e.dirty;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function Pt(t, e, n, r, c, u) {
|
|
52
52
|
if (c) {
|
|
53
|
-
const i =
|
|
53
|
+
const i = ut(e, n, r, u);
|
|
54
54
|
t.p(i, c);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function Nt(t) {
|
|
58
58
|
if (t.ctx.length > 32) {
|
|
59
59
|
const e = [], n = t.ctx.length / 32;
|
|
60
|
-
for (let
|
|
61
|
-
e[
|
|
60
|
+
for (let r = 0; r < n; r++)
|
|
61
|
+
e[r] = -1;
|
|
62
62
|
return e;
|
|
63
63
|
}
|
|
64
64
|
return -1;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function qe(t) {
|
|
67
67
|
return t ?? "";
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function b(t, e) {
|
|
70
70
|
t.appendChild(e);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function O(t, e, n) {
|
|
73
73
|
t.insertBefore(e, n || null);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function j(t) {
|
|
76
76
|
t.parentNode && t.parentNode.removeChild(t);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function It(t, e) {
|
|
79
79
|
for (let n = 0; n < t.length; n += 1)
|
|
80
80
|
t[n] && t[n].d(e);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function E(t) {
|
|
83
83
|
return document.createElement(t);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function se(t) {
|
|
86
86
|
return document.createElementNS("http://www.w3.org/2000/svg", t);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function ne(t) {
|
|
89
89
|
return document.createTextNode(t);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
return
|
|
91
|
+
function q() {
|
|
92
|
+
return ne(" ");
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
return t.addEventListener(e, n,
|
|
94
|
+
function I(t, e, n, r) {
|
|
95
|
+
return t.addEventListener(e, n, r), () => t.removeEventListener(e, n, r);
|
|
96
96
|
}
|
|
97
97
|
function jt(t) {
|
|
98
98
|
return function(e) {
|
|
99
99
|
return e.preventDefault(), t.call(this, e);
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
|
-
function
|
|
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 Gt(t) {
|
|
106
106
|
return Array.from(t.childNodes);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function he(t, e) {
|
|
109
109
|
e = "" + e, t.wholeText !== e && (t.data = e);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function Ue(t, e) {
|
|
112
112
|
t.value = e ?? "";
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function J(t, e, n) {
|
|
115
115
|
t.classList[n ? "add" : "remove"](e);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Ot(t, e, { bubbles: n = !1, cancelable: r = !1 } = {}) {
|
|
118
118
|
const c = document.createEvent("CustomEvent");
|
|
119
|
-
return c.initCustomEvent(t, n,
|
|
119
|
+
return c.initCustomEvent(t, n, r, e), c;
|
|
120
120
|
}
|
|
121
|
-
let
|
|
122
|
-
function
|
|
123
|
-
|
|
121
|
+
let me;
|
|
122
|
+
function de(t) {
|
|
123
|
+
me = t;
|
|
124
124
|
}
|
|
125
|
-
function
|
|
126
|
-
if (!
|
|
125
|
+
function ot() {
|
|
126
|
+
if (!me)
|
|
127
127
|
throw new Error("Function called outside component initialization");
|
|
128
|
-
return
|
|
128
|
+
return me;
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
|
|
130
|
+
function Dt(t) {
|
|
131
|
+
ot().$$.on_destroy.push(t);
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
const t =
|
|
135
|
-
return (e, n, { cancelable:
|
|
133
|
+
function Ft() {
|
|
134
|
+
const t = ot();
|
|
135
|
+
return (e, n, { cancelable: r = !1 } = {}) => {
|
|
136
136
|
const c = t.$$.callbacks[e];
|
|
137
137
|
if (c) {
|
|
138
|
-
const u =
|
|
138
|
+
const u = Ot(e, n, { cancelable: r });
|
|
139
139
|
return c.slice().forEach((i) => {
|
|
140
140
|
i.call(t, u);
|
|
141
141
|
}), !u.defaultPrevented;
|
|
@@ -143,353 +143,298 @@ function Dt() {
|
|
|
143
143
|
return !0;
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
|
-
const
|
|
147
|
-
let
|
|
148
|
-
const
|
|
149
|
-
let
|
|
150
|
-
function
|
|
151
|
-
|
|
146
|
+
const ue = [], Ie = [];
|
|
147
|
+
let oe = [];
|
|
148
|
+
const We = [], Vt = /* @__PURE__ */ Promise.resolve();
|
|
149
|
+
let je = !1;
|
|
150
|
+
function Ht() {
|
|
151
|
+
je || (je = !0, Vt.then(st));
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
|
|
153
|
+
function Ge(t) {
|
|
154
|
+
oe.push(t);
|
|
155
155
|
}
|
|
156
|
-
const
|
|
157
|
-
let
|
|
158
|
-
function
|
|
159
|
-
if (
|
|
156
|
+
const Ne = /* @__PURE__ */ new Set();
|
|
157
|
+
let ce = 0;
|
|
158
|
+
function st() {
|
|
159
|
+
if (ce !== 0)
|
|
160
160
|
return;
|
|
161
|
-
const t =
|
|
161
|
+
const t = me;
|
|
162
162
|
do {
|
|
163
163
|
try {
|
|
164
|
-
for (;
|
|
165
|
-
const e =
|
|
166
|
-
|
|
164
|
+
for (; ce < ue.length; ) {
|
|
165
|
+
const e = ue[ce];
|
|
166
|
+
ce++, de(e), Kt(e.$$);
|
|
167
167
|
}
|
|
168
168
|
} catch (e) {
|
|
169
|
-
throw
|
|
169
|
+
throw ue.length = 0, ce = 0, e;
|
|
170
170
|
}
|
|
171
|
-
for (
|
|
172
|
-
|
|
173
|
-
for (let e = 0; e <
|
|
174
|
-
const n =
|
|
175
|
-
|
|
171
|
+
for (de(null), ue.length = 0, ce = 0; Ie.length; )
|
|
172
|
+
Ie.pop()();
|
|
173
|
+
for (let e = 0; e < oe.length; e += 1) {
|
|
174
|
+
const n = oe[e];
|
|
175
|
+
Ne.has(n) || (Ne.add(n), n());
|
|
176
176
|
}
|
|
177
|
-
|
|
178
|
-
} while (
|
|
179
|
-
for (;
|
|
180
|
-
|
|
181
|
-
|
|
177
|
+
oe.length = 0;
|
|
178
|
+
} while (ue.length);
|
|
179
|
+
for (; We.length; )
|
|
180
|
+
We.pop()();
|
|
181
|
+
je = !1, Ne.clear(), de(t);
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function Kt(t) {
|
|
184
184
|
if (t.fragment !== null) {
|
|
185
|
-
t.update(),
|
|
185
|
+
t.update(), X(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(Ge);
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function Qt(t) {
|
|
191
191
|
const e = [], n = [];
|
|
192
|
-
|
|
192
|
+
oe.forEach((r) => t.indexOf(r) === -1 ? e.push(r) : n.push(r)), n.forEach((r) => r()), oe = e;
|
|
193
193
|
}
|
|
194
|
-
const
|
|
195
|
-
let
|
|
196
|
-
function
|
|
197
|
-
|
|
194
|
+
const xe = /* @__PURE__ */ new Set();
|
|
195
|
+
let te;
|
|
196
|
+
function Ze() {
|
|
197
|
+
te = {
|
|
198
198
|
r: 0,
|
|
199
199
|
c: [],
|
|
200
|
-
p:
|
|
200
|
+
p: te
|
|
201
201
|
// parent group
|
|
202
202
|
};
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
|
|
204
|
+
function Je() {
|
|
205
|
+
te.r || X(te.c), te = te.p;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
t && t.i && (
|
|
207
|
+
function G(t, e) {
|
|
208
|
+
t && t.i && (xe.delete(t), t.i(e));
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function Q(t, e, n, r) {
|
|
211
211
|
if (t && t.o) {
|
|
212
|
-
if (
|
|
212
|
+
if (xe.has(t))
|
|
213
213
|
return;
|
|
214
|
-
|
|
215
|
-
|
|
214
|
+
xe.add(t), te.c.push(() => {
|
|
215
|
+
xe.delete(t), r && (n && t.d(1), r());
|
|
216
216
|
}), t.o(e);
|
|
217
217
|
} else
|
|
218
|
-
|
|
218
|
+
r && r();
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function Ee(t) {
|
|
221
221
|
t && t.c();
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function _e(t, e, n, r) {
|
|
224
224
|
const { fragment: c, after_update: u } = t.$$;
|
|
225
|
-
c && c.m(e, n),
|
|
226
|
-
const i = t.$$.on_mount.map(
|
|
227
|
-
t.$$.on_destroy ? t.$$.on_destroy.push(...i) :
|
|
228
|
-
}), u.forEach(
|
|
225
|
+
c && c.m(e, n), r || Ge(() => {
|
|
226
|
+
const i = t.$$.on_mount.map(it).filter(ct);
|
|
227
|
+
t.$$.on_destroy ? t.$$.on_destroy.push(...i) : X(i), t.$$.on_mount = [];
|
|
228
|
+
}), u.forEach(Ge);
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function ge(t, e) {
|
|
231
231
|
const n = t.$$;
|
|
232
|
-
n.fragment !== null && (
|
|
232
|
+
n.fragment !== null && (Qt(n.after_update), X(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 && (ue.push(t), Ht(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
236
236
|
}
|
|
237
|
-
function
|
|
238
|
-
const
|
|
239
|
-
|
|
237
|
+
function be(t, e, n, r, c, u, i, d = [-1]) {
|
|
238
|
+
const o = me;
|
|
239
|
+
de(t);
|
|
240
240
|
const a = t.$$ = {
|
|
241
241
|
fragment: null,
|
|
242
242
|
ctx: [],
|
|
243
243
|
// state
|
|
244
244
|
props: u,
|
|
245
|
-
update:
|
|
245
|
+
update: z,
|
|
246
246
|
not_equal: c,
|
|
247
|
-
bound:
|
|
247
|
+
bound: Qe(),
|
|
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 || (o ? o.$$.context : [])),
|
|
255
255
|
// everything else
|
|
256
|
-
callbacks:
|
|
257
|
-
dirty:
|
|
256
|
+
callbacks: Qe(),
|
|
257
|
+
dirty: d,
|
|
258
258
|
skip_bound: !1,
|
|
259
|
-
root: e.target ||
|
|
259
|
+
root: e.target || o.$$.root
|
|
260
260
|
};
|
|
261
261
|
i && i(a.root);
|
|
262
|
-
let
|
|
263
|
-
if (a.ctx = n ? n(t, e.props || {}, (
|
|
264
|
-
const
|
|
265
|
-
return a.ctx && c(a.ctx[
|
|
266
|
-
}) : [], a.update(),
|
|
262
|
+
let R = !1;
|
|
263
|
+
if (a.ctx = n ? n(t, e.props || {}, (x, B, ...C) => {
|
|
264
|
+
const P = C.length ? C[0] : B;
|
|
265
|
+
return a.ctx && c(a.ctx[x], a.ctx[x] = P) && (!a.skip_bound && a.bound[x] && a.bound[x](P), R && qt(t, x)), B;
|
|
266
|
+
}) : [], a.update(), R = !0, X(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 x = Gt(e.target);
|
|
269
|
+
a.fragment && a.fragment.l(x), x.forEach(j);
|
|
270
270
|
} else
|
|
271
271
|
a.fragment && a.fragment.c();
|
|
272
|
-
e.intro &&
|
|
272
|
+
e.intro && G(t.$$.fragment), _e(t, e.target, e.anchor, e.customElement), st();
|
|
273
273
|
}
|
|
274
|
-
|
|
274
|
+
de(o);
|
|
275
275
|
}
|
|
276
|
-
class
|
|
276
|
+
class we {
|
|
277
277
|
$destroy() {
|
|
278
|
-
|
|
278
|
+
ge(this, 1), this.$destroy = z;
|
|
279
279
|
}
|
|
280
280
|
$on(e, n) {
|
|
281
|
-
if (!
|
|
282
|
-
return
|
|
283
|
-
const
|
|
284
|
-
return
|
|
285
|
-
const c =
|
|
286
|
-
c !== -1 &&
|
|
281
|
+
if (!ct(n))
|
|
282
|
+
return z;
|
|
283
|
+
const r = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
284
|
+
return r.push(n), () => {
|
|
285
|
+
const c = r.indexOf(n);
|
|
286
|
+
c !== -1 && r.splice(c, 1);
|
|
287
287
|
};
|
|
288
288
|
}
|
|
289
289
|
$set(e) {
|
|
290
290
|
this.$$set && !Lt(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function Ut(t) {
|
|
294
294
|
let e, n;
|
|
295
295
|
return {
|
|
296
296
|
c() {
|
|
297
|
-
e =
|
|
297
|
+
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");
|
|
298
298
|
},
|
|
299
|
-
m(
|
|
300
|
-
|
|
299
|
+
m(r, c) {
|
|
300
|
+
O(r, e, c), b(e, n);
|
|
301
301
|
},
|
|
302
|
-
p:
|
|
303
|
-
i:
|
|
304
|
-
o:
|
|
305
|
-
d(
|
|
306
|
-
|
|
302
|
+
p: z,
|
|
303
|
+
i: z,
|
|
304
|
+
o: z,
|
|
305
|
+
d(r) {
|
|
306
|
+
r && j(e);
|
|
307
307
|
}
|
|
308
308
|
};
|
|
309
309
|
}
|
|
310
|
-
class
|
|
310
|
+
class Wt extends we {
|
|
311
311
|
constructor(e) {
|
|
312
|
-
super(),
|
|
312
|
+
super(), be(this, e, null, Ut, ye, {});
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
|
-
function
|
|
315
|
+
function Zt(t) {
|
|
316
316
|
let e, n;
|
|
317
317
|
return {
|
|
318
318
|
c() {
|
|
319
|
-
e =
|
|
319
|
+
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");
|
|
320
320
|
},
|
|
321
|
-
m(
|
|
322
|
-
|
|
321
|
+
m(r, c) {
|
|
322
|
+
O(r, e, c), b(e, n);
|
|
323
323
|
},
|
|
324
|
-
p:
|
|
325
|
-
i:
|
|
326
|
-
o:
|
|
327
|
-
d(
|
|
328
|
-
|
|
324
|
+
p: z,
|
|
325
|
+
i: z,
|
|
326
|
+
o: z,
|
|
327
|
+
d(r) {
|
|
328
|
+
r && j(e);
|
|
329
329
|
}
|
|
330
330
|
};
|
|
331
331
|
}
|
|
332
|
-
class
|
|
332
|
+
class Jt extends we {
|
|
333
333
|
constructor(e) {
|
|
334
|
-
super(),
|
|
334
|
+
super(), be(this, e, null, Zt, ye, {});
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function Xt(t) {
|
|
338
338
|
let e;
|
|
339
339
|
return {
|
|
340
340
|
c() {
|
|
341
|
-
e =
|
|
341
|
+
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");
|
|
342
342
|
},
|
|
343
|
-
m(n,
|
|
344
|
-
|
|
343
|
+
m(n, r) {
|
|
344
|
+
O(n, e, r);
|
|
345
345
|
},
|
|
346
|
-
p:
|
|
347
|
-
i:
|
|
348
|
-
o:
|
|
346
|
+
p: z,
|
|
347
|
+
i: z,
|
|
348
|
+
o: z,
|
|
349
349
|
d(n) {
|
|
350
|
-
n &&
|
|
350
|
+
n && j(e);
|
|
351
351
|
}
|
|
352
352
|
};
|
|
353
353
|
}
|
|
354
|
-
class
|
|
354
|
+
class Yt extends we {
|
|
355
355
|
constructor(e) {
|
|
356
|
-
super(),
|
|
356
|
+
super(), be(this, e, null, Xt, ye, {});
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
-
function
|
|
360
|
-
let e, n, l;
|
|
361
|
-
return {
|
|
362
|
-
c() {
|
|
363
|
-
e = $("svg"), n = $("path"), s(n, "stroke-width", "4"), s(n, "fill-rule", "evenodd"), s(n, "clip-rule", "evenodd"), s(n, "d", "M 5,33.103579 C 5,17.607779 18.457,5 35,5 C 51.543,5 65,17.607779 65,33.103579 C 65,56.388679 40.4668,76.048179 36.6112,79.137779 C 36.3714,79.329879 36.2116,79.457979 36.1427,79.518879 C 35.8203,79.800879 35.4102,79.942779 35,79.942779 C 34.5899,79.942779 34.1797,79.800879 33.8575,79.518879 C 33.7886,79.457979 33.6289,79.330079 33.3893,79.138079 C 29.5346,76.049279 5,56.389379 5,33.103579 Z M 35.0001,49.386379 C 43.1917,49.386379 49.8323,42.646079 49.8323,34.331379 C 49.8323,26.016779 43.1917,19.276479 35.0001,19.276479 C 26.8085,19.276479 20.1679,26.016779 20.1679,34.331379 C 20.1679,42.646079 26.8085,49.386379 35.0001,49.386379 Z"), s(n, "class", "svelte-1k1cmht"), s(e, "width", l = /*displayIn*/
|
|
364
|
-
t[0] !== "list" ? void 0 : "20"), s(e, "viewBox", "0 0 70 85"), s(e, "fill", "none"), s(e, "class", "svelte-1k1cmht"), Q(
|
|
365
|
-
e,
|
|
366
|
-
"in-map",
|
|
367
|
-
/*displayIn*/
|
|
368
|
-
t[0] !== "list"
|
|
369
|
-
), Q(
|
|
370
|
-
e,
|
|
371
|
-
"list-icon",
|
|
372
|
-
/*displayIn*/
|
|
373
|
-
t[0] === "list"
|
|
374
|
-
);
|
|
375
|
-
},
|
|
376
|
-
m(c, u) {
|
|
377
|
-
K(c, e, u), _(e, n);
|
|
378
|
-
},
|
|
379
|
-
p(c, [u]) {
|
|
380
|
-
u & /*displayIn*/
|
|
381
|
-
1 && l !== (l = /*displayIn*/
|
|
382
|
-
c[0] !== "list" ? void 0 : "20") && s(e, "width", l), u & /*displayIn*/
|
|
383
|
-
1 && Q(
|
|
384
|
-
e,
|
|
385
|
-
"in-map",
|
|
386
|
-
/*displayIn*/
|
|
387
|
-
c[0] !== "list"
|
|
388
|
-
), u & /*displayIn*/
|
|
389
|
-
1 && Q(
|
|
390
|
-
e,
|
|
391
|
-
"list-icon",
|
|
392
|
-
/*displayIn*/
|
|
393
|
-
c[0] === "list"
|
|
394
|
-
);
|
|
395
|
-
},
|
|
396
|
-
i: w,
|
|
397
|
-
o: w,
|
|
398
|
-
d(c) {
|
|
399
|
-
c && D(e);
|
|
400
|
-
}
|
|
401
|
-
};
|
|
402
|
-
}
|
|
403
|
-
function $t(t, e, n) {
|
|
404
|
-
let { displayIn: l } = e;
|
|
405
|
-
return t.$$set = (c) => {
|
|
406
|
-
"displayIn" in c && n(0, l = c.displayIn);
|
|
407
|
-
}, [l];
|
|
408
|
-
}
|
|
409
|
-
class en extends ge {
|
|
410
|
-
constructor(e) {
|
|
411
|
-
super(), _e(this, e, $t, Yt, me, { displayIn: 0 });
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
function tn(t) {
|
|
359
|
+
function $t(t) {
|
|
415
360
|
let e, n;
|
|
416
361
|
return {
|
|
417
362
|
c() {
|
|
418
|
-
e =
|
|
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");
|
|
419
364
|
},
|
|
420
|
-
m(
|
|
421
|
-
|
|
365
|
+
m(r, c) {
|
|
366
|
+
O(r, e, c), b(e, n);
|
|
422
367
|
},
|
|
423
|
-
p:
|
|
424
|
-
i:
|
|
425
|
-
o:
|
|
426
|
-
d(
|
|
427
|
-
|
|
368
|
+
p: z,
|
|
369
|
+
i: z,
|
|
370
|
+
o: z,
|
|
371
|
+
d(r) {
|
|
372
|
+
r && j(e);
|
|
428
373
|
}
|
|
429
374
|
};
|
|
430
375
|
}
|
|
431
|
-
class
|
|
376
|
+
class en extends we {
|
|
432
377
|
constructor(e) {
|
|
433
|
-
super(),
|
|
378
|
+
super(), be(this, e, null, $t, ye, {});
|
|
434
379
|
}
|
|
435
380
|
}
|
|
436
381
|
function Xe(t, e, n) {
|
|
437
|
-
const
|
|
438
|
-
return
|
|
382
|
+
const r = t.slice();
|
|
383
|
+
return r[69] = e[n], r[71] = n, r;
|
|
439
384
|
}
|
|
440
385
|
function Ye(t) {
|
|
441
386
|
let e, n;
|
|
442
|
-
return e = new
|
|
387
|
+
return e = new Yt({}), {
|
|
443
388
|
c() {
|
|
444
|
-
|
|
389
|
+
Ee(e.$$.fragment);
|
|
445
390
|
},
|
|
446
|
-
m(
|
|
447
|
-
|
|
391
|
+
m(r, c) {
|
|
392
|
+
_e(e, r, c), n = !0;
|
|
448
393
|
},
|
|
449
|
-
i(
|
|
450
|
-
n || (
|
|
394
|
+
i(r) {
|
|
395
|
+
n || (G(e.$$.fragment, r), n = !0);
|
|
451
396
|
},
|
|
452
|
-
o(
|
|
453
|
-
|
|
397
|
+
o(r) {
|
|
398
|
+
Q(e.$$.fragment, r), n = !1;
|
|
454
399
|
},
|
|
455
|
-
d(
|
|
456
|
-
|
|
400
|
+
d(r) {
|
|
401
|
+
ge(e, r);
|
|
457
402
|
}
|
|
458
403
|
};
|
|
459
404
|
}
|
|
460
405
|
function $e(t) {
|
|
461
|
-
let e, n,
|
|
462
|
-
return n = new
|
|
406
|
+
let e, n, r, c, u;
|
|
407
|
+
return n = new Wt({}), {
|
|
463
408
|
c() {
|
|
464
|
-
e =
|
|
409
|
+
e = E("button"), Ee(n.$$.fragment), f(e, "type", "button"), f(
|
|
465
410
|
e,
|
|
466
411
|
"title",
|
|
467
412
|
/*reverseButtonTitle*/
|
|
468
413
|
t[9]
|
|
469
|
-
),
|
|
414
|
+
), f(e, "class", "svelte-1xi1e9d"), J(
|
|
470
415
|
e,
|
|
471
416
|
"active",
|
|
472
417
|
/*reverseActive*/
|
|
473
418
|
t[0]
|
|
474
419
|
);
|
|
475
420
|
},
|
|
476
|
-
m(i,
|
|
477
|
-
|
|
421
|
+
m(i, d) {
|
|
422
|
+
O(i, e, d), _e(n, e, null), r = !0, c || (u = I(
|
|
478
423
|
e,
|
|
479
424
|
"click",
|
|
480
425
|
/*click_handler_2*/
|
|
481
426
|
t[56]
|
|
482
427
|
), c = !0);
|
|
483
428
|
},
|
|
484
|
-
p(i,
|
|
485
|
-
(!
|
|
486
|
-
512) &&
|
|
429
|
+
p(i, d) {
|
|
430
|
+
(!r || d[0] & /*reverseButtonTitle*/
|
|
431
|
+
512) && f(
|
|
487
432
|
e,
|
|
488
433
|
"title",
|
|
489
434
|
/*reverseButtonTitle*/
|
|
490
435
|
i[9]
|
|
491
|
-
), (!
|
|
492
|
-
1) &&
|
|
436
|
+
), (!r || d[0] & /*reverseActive*/
|
|
437
|
+
1) && J(
|
|
493
438
|
e,
|
|
494
439
|
"active",
|
|
495
440
|
/*reverseActive*/
|
|
@@ -497,153 +442,131 @@ function $e(t) {
|
|
|
497
442
|
);
|
|
498
443
|
},
|
|
499
444
|
i(i) {
|
|
500
|
-
|
|
445
|
+
r || (G(n.$$.fragment, i), r = !0);
|
|
501
446
|
},
|
|
502
447
|
o(i) {
|
|
503
|
-
|
|
448
|
+
Q(n.$$.fragment, i), r = !1;
|
|
504
449
|
},
|
|
505
450
|
d(i) {
|
|
506
|
-
i &&
|
|
451
|
+
i && j(e), ge(n), c = !1, u();
|
|
507
452
|
}
|
|
508
453
|
};
|
|
509
454
|
}
|
|
510
|
-
function
|
|
511
|
-
let e, n,
|
|
455
|
+
function tn(t) {
|
|
456
|
+
let e, n, r, c = (
|
|
512
457
|
/*listFeatures*/
|
|
513
458
|
t[12]
|
|
514
|
-
),
|
|
515
|
-
for (let
|
|
516
|
-
i
|
|
517
|
-
const m = (f) => O(i[f], 1, 1, () => {
|
|
518
|
-
i[f] = null;
|
|
519
|
-
});
|
|
459
|
+
), u = [];
|
|
460
|
+
for (let i = 0; i < c.length; i += 1)
|
|
461
|
+
u[i] = tt(Xe(t, c, i));
|
|
520
462
|
return {
|
|
521
463
|
c() {
|
|
522
|
-
e =
|
|
523
|
-
for (let
|
|
524
|
-
i
|
|
525
|
-
|
|
464
|
+
e = E("ul");
|
|
465
|
+
for (let i = 0; i < u.length; i += 1)
|
|
466
|
+
u[i].c();
|
|
467
|
+
f(e, "class", "svelte-1xi1e9d");
|
|
526
468
|
},
|
|
527
|
-
m(
|
|
528
|
-
|
|
529
|
-
for (let
|
|
530
|
-
|
|
531
|
-
n
|
|
532
|
-
|
|
469
|
+
m(i, d) {
|
|
470
|
+
O(i, e, d);
|
|
471
|
+
for (let o = 0; o < u.length; o += 1)
|
|
472
|
+
u[o] && u[o].m(e, null);
|
|
473
|
+
n || (r = [
|
|
474
|
+
I(
|
|
533
475
|
e,
|
|
534
476
|
"mouseleave",
|
|
535
477
|
/*mouseleave_handler*/
|
|
536
478
|
t[59]
|
|
537
479
|
),
|
|
538
|
-
|
|
480
|
+
I(
|
|
539
481
|
e,
|
|
540
482
|
"blur",
|
|
541
483
|
/*blur_handler_1*/
|
|
542
484
|
t[60]
|
|
543
485
|
)
|
|
544
|
-
],
|
|
486
|
+
], n = !0);
|
|
545
487
|
},
|
|
546
|
-
p(
|
|
547
|
-
if (
|
|
488
|
+
p(i, d) {
|
|
489
|
+
if (d[0] & /*selectedItemIndex, pick, listFeatures, showPlaceType*/
|
|
548
490
|
2110464) {
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
let
|
|
552
|
-
for (
|
|
553
|
-
const
|
|
554
|
-
|
|
491
|
+
c = /*listFeatures*/
|
|
492
|
+
i[12];
|
|
493
|
+
let o;
|
|
494
|
+
for (o = 0; o < c.length; o += 1) {
|
|
495
|
+
const a = Xe(i, c, o);
|
|
496
|
+
u[o] ? u[o].p(a, d) : (u[o] = tt(a), u[o].c(), u[o].m(e, null));
|
|
555
497
|
}
|
|
556
|
-
for (
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
}
|
|
560
|
-
},
|
|
561
|
-
i(f) {
|
|
562
|
-
if (!n) {
|
|
563
|
-
for (let a = 0; a < u.length; a += 1)
|
|
564
|
-
L(i[a]);
|
|
565
|
-
n = !0;
|
|
498
|
+
for (; o < u.length; o += 1)
|
|
499
|
+
u[o].d(1);
|
|
500
|
+
u.length = c.length;
|
|
566
501
|
}
|
|
567
502
|
},
|
|
568
|
-
|
|
569
|
-
i =
|
|
570
|
-
for (let a = 0; a < i.length; a += 1)
|
|
571
|
-
O(i[a]);
|
|
572
|
-
n = !1;
|
|
573
|
-
},
|
|
574
|
-
d(f) {
|
|
575
|
-
f && D(e), Nt(i, f), l = !1, ee(c);
|
|
503
|
+
d(i) {
|
|
504
|
+
i && j(e), It(u, i), n = !1, X(r);
|
|
576
505
|
}
|
|
577
506
|
};
|
|
578
507
|
}
|
|
579
|
-
function
|
|
508
|
+
function nn(t) {
|
|
580
509
|
let e, n;
|
|
581
510
|
return {
|
|
582
511
|
c() {
|
|
583
|
-
e =
|
|
512
|
+
e = E("div"), n = ne(
|
|
584
513
|
/*noResultsMessage*/
|
|
585
514
|
t[7]
|
|
586
|
-
),
|
|
515
|
+
), f(e, "class", "no-results svelte-1xi1e9d");
|
|
587
516
|
},
|
|
588
|
-
m(
|
|
589
|
-
|
|
517
|
+
m(r, c) {
|
|
518
|
+
O(r, e, c), b(e, n);
|
|
590
519
|
},
|
|
591
|
-
p(
|
|
520
|
+
p(r, c) {
|
|
592
521
|
c[0] & /*noResultsMessage*/
|
|
593
|
-
128 &&
|
|
522
|
+
128 && he(
|
|
594
523
|
n,
|
|
595
524
|
/*noResultsMessage*/
|
|
596
|
-
|
|
525
|
+
r[7]
|
|
597
526
|
);
|
|
598
527
|
},
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
d(l) {
|
|
602
|
-
l && D(e);
|
|
528
|
+
d(r) {
|
|
529
|
+
r && j(e);
|
|
603
530
|
}
|
|
604
531
|
};
|
|
605
532
|
}
|
|
606
|
-
function
|
|
533
|
+
function rn(t) {
|
|
607
534
|
let e = "", n;
|
|
608
535
|
return {
|
|
609
536
|
c() {
|
|
610
|
-
n =
|
|
537
|
+
n = ne(e);
|
|
611
538
|
},
|
|
612
|
-
m(
|
|
613
|
-
|
|
539
|
+
m(r, c) {
|
|
540
|
+
O(r, n, c);
|
|
614
541
|
},
|
|
615
|
-
p:
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
d(l) {
|
|
619
|
-
l && D(n);
|
|
542
|
+
p: z,
|
|
543
|
+
d(r) {
|
|
544
|
+
r && j(n);
|
|
620
545
|
}
|
|
621
546
|
};
|
|
622
547
|
}
|
|
623
|
-
function
|
|
548
|
+
function ln(t) {
|
|
624
549
|
let e, n;
|
|
625
550
|
return {
|
|
626
551
|
c() {
|
|
627
|
-
e =
|
|
552
|
+
e = E("div"), n = ne(
|
|
628
553
|
/*errorMessage*/
|
|
629
554
|
t[6]
|
|
630
|
-
),
|
|
555
|
+
), f(e, "class", "error svelte-1xi1e9d");
|
|
631
556
|
},
|
|
632
|
-
m(
|
|
633
|
-
|
|
557
|
+
m(r, c) {
|
|
558
|
+
O(r, e, c), b(e, n);
|
|
634
559
|
},
|
|
635
|
-
p(
|
|
560
|
+
p(r, c) {
|
|
636
561
|
c[0] & /*errorMessage*/
|
|
637
|
-
64 &&
|
|
562
|
+
64 && he(
|
|
638
563
|
n,
|
|
639
564
|
/*errorMessage*/
|
|
640
|
-
|
|
565
|
+
r[6]
|
|
641
566
|
);
|
|
642
567
|
},
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
d(l) {
|
|
646
|
-
l && D(e);
|
|
568
|
+
d(r) {
|
|
569
|
+
r && j(e);
|
|
647
570
|
}
|
|
648
571
|
};
|
|
649
572
|
}
|
|
@@ -653,40 +576,38 @@ function et(t) {
|
|
|
653
576
|
/*feature*/
|
|
654
577
|
(((u = (c = t[69].properties) == null ? void 0 : c.place_type_name) == null ? void 0 : u[0]) ?? /*feature*/
|
|
655
578
|
t[69].place_type[0]) + ""
|
|
656
|
-
),
|
|
579
|
+
), r;
|
|
657
580
|
return {
|
|
658
581
|
c() {
|
|
659
|
-
e =
|
|
582
|
+
e = E("span"), r = ne(n), f(e, "class", "line2 svelte-1xi1e9d");
|
|
660
583
|
},
|
|
661
|
-
m(i,
|
|
662
|
-
|
|
584
|
+
m(i, d) {
|
|
585
|
+
O(i, e, d), b(e, r);
|
|
663
586
|
},
|
|
664
|
-
p(i,
|
|
665
|
-
var
|
|
666
|
-
|
|
587
|
+
p(i, d) {
|
|
588
|
+
var o, a;
|
|
589
|
+
d[0] & /*listFeatures*/
|
|
667
590
|
4096 && n !== (n = /*feature*/
|
|
668
|
-
(((a = (
|
|
669
|
-
i[69].place_type[0]) + "") &&
|
|
591
|
+
(((a = (o = i[69].properties) == null ? void 0 : o.place_type_name) == null ? void 0 : a[0]) ?? /*feature*/
|
|
592
|
+
i[69].place_type[0]) + "") && he(r, n);
|
|
670
593
|
},
|
|
671
594
|
d(i) {
|
|
672
|
-
i &&
|
|
595
|
+
i && j(e);
|
|
673
596
|
}
|
|
674
597
|
};
|
|
675
598
|
}
|
|
676
599
|
function tt(t) {
|
|
677
|
-
let e, n,
|
|
600
|
+
let e, n, r, c, u = (
|
|
678
601
|
/*feature*/
|
|
679
602
|
t[69].place_name.replace(/,.*/, "") + ""
|
|
680
|
-
),
|
|
603
|
+
), i, d, o, a = (
|
|
681
604
|
/*feature*/
|
|
682
605
|
t[69].place_name.replace(/[^,]*,?\s*/, "") + ""
|
|
683
|
-
),
|
|
684
|
-
n = new en({ props: { displayIn: "list" } });
|
|
685
|
-
let z = (
|
|
606
|
+
), R, x, B, C, P, D, h = (
|
|
686
607
|
/*showPlaceType*/
|
|
687
608
|
t[10] && et(t)
|
|
688
609
|
);
|
|
689
|
-
function
|
|
610
|
+
function F() {
|
|
690
611
|
return (
|
|
691
612
|
/*mouseenter_handler*/
|
|
692
613
|
t[57](
|
|
@@ -695,7 +616,7 @@ function tt(t) {
|
|
|
695
616
|
)
|
|
696
617
|
);
|
|
697
618
|
}
|
|
698
|
-
function
|
|
619
|
+
function U() {
|
|
699
620
|
return (
|
|
700
621
|
/*focus_handler_1*/
|
|
701
622
|
t[58](
|
|
@@ -706,9 +627,9 @@ function tt(t) {
|
|
|
706
627
|
}
|
|
707
628
|
return {
|
|
708
629
|
c() {
|
|
709
|
-
e =
|
|
630
|
+
e = E("li"), n = E("span"), r = E("span"), c = E("span"), i = ne(u), d = q(), o = E("span"), R = ne(a), x = q(), h && h.c(), B = q(), f(c, "class", "primary svelte-1xi1e9d"), f(o, "class", "secondary svelte-1xi1e9d"), f(r, "class", "line1 svelte-1xi1e9d"), f(n, "class", "texts svelte-1xi1e9d"), f(e, "tabindex", "0"), f(e, "data-selected", C = /*selectedItemIndex*/
|
|
710
631
|
t[13] === /*i*/
|
|
711
|
-
t[71]),
|
|
632
|
+
t[71]), f(e, "class", "svelte-1xi1e9d"), J(
|
|
712
633
|
e,
|
|
713
634
|
"selected",
|
|
714
635
|
/*selectedItemIndex*/
|
|
@@ -716,23 +637,23 @@ function tt(t) {
|
|
|
716
637
|
t[71]
|
|
717
638
|
);
|
|
718
639
|
},
|
|
719
|
-
m(
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
],
|
|
640
|
+
m(_, m) {
|
|
641
|
+
O(_, e, m), b(e, n), b(n, r), b(r, c), b(c, i), b(r, d), b(r, o), b(o, R), b(n, x), h && h.m(n, null), b(e, B), P || (D = [
|
|
642
|
+
I(e, "mouseenter", F),
|
|
643
|
+
I(e, "focus", U)
|
|
644
|
+
], P = !0);
|
|
724
645
|
},
|
|
725
|
-
p(
|
|
726
|
-
t =
|
|
727
|
-
4096
|
|
728
|
-
t[69].place_name.replace(/,.*/, "") + "") &&
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
t[
|
|
732
|
-
8192 &&
|
|
646
|
+
p(_, m) {
|
|
647
|
+
t = _, m[0] & /*listFeatures*/
|
|
648
|
+
4096 && u !== (u = /*feature*/
|
|
649
|
+
t[69].place_name.replace(/,.*/, "") + "") && he(i, u), m[0] & /*listFeatures*/
|
|
650
|
+
4096 && a !== (a = /*feature*/
|
|
651
|
+
t[69].place_name.replace(/[^,]*,?\s*/, "") + "") && he(R, a), /*showPlaceType*/
|
|
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 && C !== (C = /*selectedItemIndex*/
|
|
733
654
|
t[13] === /*i*/
|
|
734
|
-
t[71])
|
|
735
|
-
8192
|
|
655
|
+
t[71]) && f(e, "data-selected", C), m[0] & /*selectedItemIndex*/
|
|
656
|
+
8192 && J(
|
|
736
657
|
e,
|
|
737
658
|
"selected",
|
|
738
659
|
/*selectedItemIndex*/
|
|
@@ -740,80 +661,80 @@ function tt(t) {
|
|
|
740
661
|
t[71]
|
|
741
662
|
);
|
|
742
663
|
},
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
},
|
|
746
|
-
o(P) {
|
|
747
|
-
O(n.$$.fragment, P), B = !1;
|
|
748
|
-
},
|
|
749
|
-
d(P) {
|
|
750
|
-
P && D(e), he(n), z && z.d(), C = !1, ee(F);
|
|
664
|
+
d(_) {
|
|
665
|
+
_ && j(e), h && h.d(), P = !1, X(D);
|
|
751
666
|
}
|
|
752
667
|
};
|
|
753
668
|
}
|
|
754
|
-
function
|
|
755
|
-
let e, n,
|
|
756
|
-
c = new
|
|
757
|
-
let
|
|
669
|
+
function cn(t) {
|
|
670
|
+
let e, n, r, c, u, i, d, o, a, R, x, B, C, P, D, h, F, U;
|
|
671
|
+
c = new en({}), R = new Jt({});
|
|
672
|
+
let _ = (
|
|
758
673
|
/*abortController*/
|
|
759
674
|
t[17] && Ye()
|
|
760
|
-
),
|
|
675
|
+
), m = (
|
|
761
676
|
/*enableReverse*/
|
|
762
677
|
t[5] === !0 && $e(t)
|
|
763
678
|
);
|
|
764
|
-
const
|
|
679
|
+
const g = (
|
|
765
680
|
/*#slots*/
|
|
766
681
|
t[48].default
|
|
767
|
-
),
|
|
768
|
-
|
|
682
|
+
), L = St(
|
|
683
|
+
g,
|
|
769
684
|
t,
|
|
770
685
|
/*$$scope*/
|
|
771
686
|
t[47],
|
|
772
687
|
null
|
|
773
|
-
)
|
|
774
|
-
function
|
|
775
|
-
var
|
|
776
|
-
|
|
688
|
+
);
|
|
689
|
+
function fe(s, p) {
|
|
690
|
+
var v, re;
|
|
691
|
+
if (
|
|
777
692
|
/*error*/
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
693
|
+
s[16]
|
|
694
|
+
)
|
|
695
|
+
return ln;
|
|
696
|
+
if (!/*focusedDelayed*/
|
|
697
|
+
s[14])
|
|
698
|
+
return rn;
|
|
699
|
+
if (
|
|
700
|
+
/*listFeatures*/
|
|
701
|
+
((v = s[12]) == null ? void 0 : v.length) === 0
|
|
702
|
+
)
|
|
703
|
+
return nn;
|
|
704
|
+
if (
|
|
705
|
+
/*focusedDelayed*/
|
|
706
|
+
s[14] && /*listFeatures*/
|
|
707
|
+
((re = s[12]) != null && re.length)
|
|
708
|
+
)
|
|
709
|
+
return tn;
|
|
790
710
|
}
|
|
791
|
-
|
|
711
|
+
let K = fe(t), k = K && K(t);
|
|
712
|
+
return {
|
|
792
713
|
c() {
|
|
793
|
-
e =
|
|
714
|
+
e = E("form"), n = E("div"), r = E("button"), Ee(c.$$.fragment), u = q(), i = E("input"), d = q(), o = E("div"), a = E("button"), Ee(R.$$.fragment), x = q(), _ && _.c(), B = q(), m && m.c(), C = q(), L && L.c(), P = q(), k && k.c(), f(r, "type", "button"), f(r, "class", "svelte-1xi1e9d"), f(
|
|
794
715
|
i,
|
|
795
716
|
"placeholder",
|
|
796
717
|
/*placeholder*/
|
|
797
718
|
t[8]
|
|
798
|
-
),
|
|
719
|
+
), f(
|
|
799
720
|
i,
|
|
800
721
|
"aria-label",
|
|
801
722
|
/*placeholder*/
|
|
802
723
|
t[8]
|
|
803
|
-
),
|
|
724
|
+
), f(i, "class", "svelte-1xi1e9d"), f(a, "type", "button"), f(
|
|
804
725
|
a,
|
|
805
726
|
"title",
|
|
806
727
|
/*clearButtonTitle*/
|
|
807
728
|
t[3]
|
|
808
|
-
),
|
|
729
|
+
), f(a, "class", "svelte-1xi1e9d"), J(
|
|
809
730
|
a,
|
|
810
731
|
"displayable",
|
|
811
732
|
/*searchValue*/
|
|
812
733
|
t[1] !== ""
|
|
813
|
-
),
|
|
734
|
+
), f(o, "class", "clear-button-container svelte-1xi1e9d"), f(n, "class", "input-group svelte-1xi1e9d"), f(e, "tabindex", "0"), f(e, "class", D = qe(
|
|
814
735
|
/*className*/
|
|
815
736
|
t[2]
|
|
816
|
-
) + " svelte-
|
|
737
|
+
) + " svelte-1xi1e9d"), J(
|
|
817
738
|
e,
|
|
818
739
|
"can-collapse",
|
|
819
740
|
/*collapsed*/
|
|
@@ -821,362 +742,361 @@ function on(t) {
|
|
|
821
742
|
t[1] === ""
|
|
822
743
|
);
|
|
823
744
|
},
|
|
824
|
-
m(
|
|
825
|
-
|
|
745
|
+
m(s, p) {
|
|
746
|
+
O(s, e, p), b(e, n), b(n, r), _e(c, r, null), b(n, u), b(n, i), t[50](i), Ue(
|
|
826
747
|
i,
|
|
827
748
|
/*searchValue*/
|
|
828
749
|
t[1]
|
|
829
|
-
),
|
|
830
|
-
|
|
831
|
-
|
|
750
|
+
), b(n, d), b(n, o), b(o, a), _e(R, a, null), b(o, x), _ && _.m(o, null), b(n, B), m && m.m(n, null), b(n, C), L && L.m(n, null), b(e, P), k && k.m(e, null), h = !0, F || (U = [
|
|
751
|
+
I(
|
|
752
|
+
r,
|
|
832
753
|
"click",
|
|
833
754
|
/*click_handler*/
|
|
834
755
|
t[49]
|
|
835
756
|
),
|
|
836
|
-
|
|
757
|
+
I(
|
|
837
758
|
i,
|
|
838
759
|
"input",
|
|
839
760
|
/*input_1_input_handler*/
|
|
840
761
|
t[51]
|
|
841
762
|
),
|
|
842
|
-
|
|
763
|
+
I(
|
|
843
764
|
i,
|
|
844
765
|
"focus",
|
|
845
766
|
/*focus_handler*/
|
|
846
767
|
t[52]
|
|
847
768
|
),
|
|
848
|
-
|
|
769
|
+
I(
|
|
849
770
|
i,
|
|
850
771
|
"blur",
|
|
851
772
|
/*blur_handler*/
|
|
852
773
|
t[53]
|
|
853
774
|
),
|
|
854
|
-
|
|
775
|
+
I(
|
|
855
776
|
i,
|
|
856
777
|
"keydown",
|
|
857
778
|
/*handleKeyDown*/
|
|
858
779
|
t[19]
|
|
859
780
|
),
|
|
860
|
-
|
|
781
|
+
I(
|
|
861
782
|
i,
|
|
862
783
|
"input",
|
|
863
784
|
/*input_handler*/
|
|
864
785
|
t[54]
|
|
865
786
|
),
|
|
866
|
-
|
|
787
|
+
I(
|
|
867
788
|
a,
|
|
868
789
|
"click",
|
|
869
790
|
/*click_handler_1*/
|
|
870
791
|
t[55]
|
|
871
792
|
),
|
|
872
|
-
|
|
793
|
+
I(e, "submit", jt(
|
|
873
794
|
/*handleOnSubmit*/
|
|
874
795
|
t[18]
|
|
875
796
|
))
|
|
876
797
|
], F = !0);
|
|
877
798
|
},
|
|
878
|
-
p(
|
|
879
|
-
(!
|
|
880
|
-
256) &&
|
|
799
|
+
p(s, p) {
|
|
800
|
+
(!h || p[0] & /*placeholder*/
|
|
801
|
+
256) && f(
|
|
881
802
|
i,
|
|
882
803
|
"placeholder",
|
|
883
804
|
/*placeholder*/
|
|
884
|
-
|
|
885
|
-
), (!
|
|
886
|
-
256) &&
|
|
805
|
+
s[8]
|
|
806
|
+
), (!h || p[0] & /*placeholder*/
|
|
807
|
+
256) && f(
|
|
887
808
|
i,
|
|
888
809
|
"aria-label",
|
|
889
810
|
/*placeholder*/
|
|
890
|
-
|
|
891
|
-
),
|
|
811
|
+
s[8]
|
|
812
|
+
), p[0] & /*searchValue*/
|
|
892
813
|
2 && i.value !== /*searchValue*/
|
|
893
|
-
|
|
814
|
+
s[1] && Ue(
|
|
894
815
|
i,
|
|
895
816
|
/*searchValue*/
|
|
896
|
-
|
|
897
|
-
), (!
|
|
898
|
-
8) &&
|
|
817
|
+
s[1]
|
|
818
|
+
), (!h || p[0] & /*clearButtonTitle*/
|
|
819
|
+
8) && f(
|
|
899
820
|
a,
|
|
900
821
|
"title",
|
|
901
822
|
/*clearButtonTitle*/
|
|
902
|
-
|
|
903
|
-
), (!
|
|
904
|
-
2) &&
|
|
823
|
+
s[3]
|
|
824
|
+
), (!h || p[0] & /*searchValue*/
|
|
825
|
+
2) && J(
|
|
905
826
|
a,
|
|
906
827
|
"displayable",
|
|
907
828
|
/*searchValue*/
|
|
908
|
-
|
|
829
|
+
s[1] !== ""
|
|
909
830
|
), /*abortController*/
|
|
910
|
-
|
|
911
|
-
131072 &&
|
|
912
|
-
|
|
913
|
-
}),
|
|
914
|
-
|
|
915
|
-
32 &&
|
|
916
|
-
|
|
917
|
-
}),
|
|
918
|
-
65536) &&
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
831
|
+
s[17] ? _ ? p[0] & /*abortController*/
|
|
832
|
+
131072 && G(_, 1) : (_ = Ye(), _.c(), G(_, 1), _.m(o, null)) : _ && (Ze(), Q(_, 1, 1, () => {
|
|
833
|
+
_ = null;
|
|
834
|
+
}), Je()), /*enableReverse*/
|
|
835
|
+
s[5] === !0 ? m ? (m.p(s, p), p[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, () => {
|
|
837
|
+
m = null;
|
|
838
|
+
}), Je()), L && L.p && (!h || p[1] & /*$$scope*/
|
|
839
|
+
65536) && Pt(
|
|
840
|
+
L,
|
|
841
|
+
g,
|
|
842
|
+
s,
|
|
922
843
|
/*$$scope*/
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
844
|
+
s[47],
|
|
845
|
+
h ? At(
|
|
846
|
+
g,
|
|
926
847
|
/*$$scope*/
|
|
927
|
-
|
|
928
|
-
|
|
848
|
+
s[47],
|
|
849
|
+
p,
|
|
929
850
|
null
|
|
930
|
-
) :
|
|
851
|
+
) : Nt(
|
|
931
852
|
/*$$scope*/
|
|
932
|
-
|
|
853
|
+
s[47]
|
|
933
854
|
),
|
|
934
855
|
null
|
|
935
|
-
)
|
|
936
|
-
|
|
937
|
-
p = ye(o), p === J ? ~p && A[p].p(o, T) : (k && (Be(), O(A[J], 1, 1, () => {
|
|
938
|
-
A[J] = null;
|
|
939
|
-
}), Le()), ~p ? (k = A[p], k ? k.p(o, T) : (k = A[p] = Z[p](o), k.c()), L(k, 1), k.m(e, null)) : k = null), (!C || T[0] & /*className*/
|
|
940
|
-
4 && B !== (B = We(
|
|
856
|
+
), K === (K = fe(s)) && k ? k.p(s, p) : (k && k.d(1), k = K && K(s), k && (k.c(), k.m(e, null))), (!h || p[0] & /*className*/
|
|
857
|
+
4 && D !== (D = qe(
|
|
941
858
|
/*className*/
|
|
942
|
-
|
|
943
|
-
) + " svelte-
|
|
944
|
-
22) &&
|
|
859
|
+
s[2]
|
|
860
|
+
) + " svelte-1xi1e9d")) && f(e, "class", D), (!h || p[0] & /*className, collapsed, searchValue*/
|
|
861
|
+
22) && J(
|
|
945
862
|
e,
|
|
946
863
|
"can-collapse",
|
|
947
864
|
/*collapsed*/
|
|
948
|
-
|
|
949
|
-
|
|
865
|
+
s[4] && /*searchValue*/
|
|
866
|
+
s[1] === ""
|
|
950
867
|
);
|
|
951
868
|
},
|
|
952
|
-
i(
|
|
953
|
-
|
|
869
|
+
i(s) {
|
|
870
|
+
h || (G(c.$$.fragment, s), G(R.$$.fragment, s), G(_), G(m), G(L, s), h = !0);
|
|
954
871
|
},
|
|
955
|
-
o(
|
|
956
|
-
|
|
872
|
+
o(s) {
|
|
873
|
+
Q(c.$$.fragment, s), Q(R.$$.fragment, s), Q(_), Q(m), Q(L, s), h = !1;
|
|
957
874
|
},
|
|
958
|
-
d(
|
|
959
|
-
|
|
875
|
+
d(s) {
|
|
876
|
+
s && j(e), ge(c), t[50](null), ge(R), _ && _.d(), m && m.d(), L && L.d(s), k && k.d(), F = !1, X(U);
|
|
960
877
|
}
|
|
961
878
|
};
|
|
962
879
|
}
|
|
963
880
|
function un(t, e, n) {
|
|
964
|
-
const
|
|
965
|
-
return t ===
|
|
881
|
+
const r = e[1], c = e[0], u = r - c;
|
|
882
|
+
return t === r && n ? t : ((t - c) % u + u) % u + c;
|
|
966
883
|
}
|
|
967
|
-
function
|
|
968
|
-
let
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
884
|
+
function nt(t) {
|
|
885
|
+
let e = [...t];
|
|
886
|
+
return e[2] < e[0] && (e[2] += 360), e;
|
|
887
|
+
}
|
|
888
|
+
function on(t, e, n) {
|
|
889
|
+
let r, { $$slots: c = {}, $$scope: u } = e, { class: i = void 0 } = e, { apiKey: d } = e, { bbox: o = void 0 } = e, { clearButtonTitle: a = "clear" } = e, { clearOnBlur: R = !1 } = e, { collapsed: x = !1 } = e, { country: B = void 0 } = e, { debounceSearch: C = 200 } = e, { enableReverse: P = !1 } = e, { errorMessage: D = "Searching failed" } = e, { filter: h = () => !0 } = e, { flyTo: F = !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: K = "Search" } = e, { proximity: k = void 0 } = e, { reverseActive: s = P === "always" } = e, { reverseButtonTitle: p = "toggle reverse geocoding" } = e, { searchValue: v = "" } = e, { showFullGeometry: re = !0 } = e, { showPlaceType: Oe = !1 } = e, { showResultsWhileTyping: ke = !0 } = e, { trackProximity: ve = !0 } = e, { types: Me = void 0 } = e, { zoom: Te = 16 } = e, { fetchParameters: ze = {} } = e;
|
|
972
890
|
function ft() {
|
|
973
|
-
|
|
891
|
+
V.focus();
|
|
892
|
+
}
|
|
893
|
+
function at() {
|
|
894
|
+
V.blur();
|
|
974
895
|
}
|
|
975
|
-
function
|
|
976
|
-
n(1,
|
|
977
|
-
|
|
896
|
+
function De(l, T = !0) {
|
|
897
|
+
n(1, v = l), T ? (n(13, M = -1), Ve()) : (Ce(), setTimeout(() => {
|
|
898
|
+
V.focus(), V.select();
|
|
978
899
|
}));
|
|
979
900
|
}
|
|
980
|
-
let
|
|
981
|
-
const
|
|
982
|
-
|
|
983
|
-
|
|
901
|
+
let le = !1, y, S, w, Fe = "", V, M = -1, W, pe = [], Y, ie, Re;
|
|
902
|
+
const Z = Ft();
|
|
903
|
+
Dt(() => {
|
|
904
|
+
g && (g.setEventHandler(void 0), g.indicateReverse(!1), g.setSelectedMarker(-1), g.setMarkers(void 0, void 0));
|
|
984
905
|
});
|
|
985
|
-
function
|
|
986
|
-
if (
|
|
987
|
-
n(45,
|
|
988
|
-
else if (
|
|
989
|
-
const
|
|
990
|
-
|
|
991
|
-
n(44,
|
|
992
|
-
}).catch((
|
|
906
|
+
function Ve(l) {
|
|
907
|
+
if (ie && (clearTimeout(ie), ie = void 0), M > -1 && y)
|
|
908
|
+
n(45, w = y[M]), n(1, v = w.place_name.replace(/,.*/, "")), n(16, W = void 0), n(44, S = void 0), n(13, M = -1);
|
|
909
|
+
else if (v) {
|
|
910
|
+
const T = l || !He();
|
|
911
|
+
Be(v, { exact: !0 }).then(() => {
|
|
912
|
+
n(44, S = y), n(45, w = void 0), T && dt();
|
|
913
|
+
}).catch((H) => n(16, W = H));
|
|
993
914
|
}
|
|
994
915
|
}
|
|
995
|
-
function
|
|
996
|
-
return /^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(
|
|
916
|
+
function He() {
|
|
917
|
+
return /^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(v);
|
|
997
918
|
}
|
|
998
|
-
async function
|
|
999
|
-
n(16,
|
|
1000
|
-
const
|
|
1001
|
-
|
|
1002
|
-
const
|
|
1003
|
-
if (
|
|
1004
|
-
|
|
919
|
+
async function Be(l, { byId: T = !1, exact: H = !1 } = {}) {
|
|
920
|
+
n(16, W = void 0);
|
|
921
|
+
const ae = He(), N = new URLSearchParams();
|
|
922
|
+
_ != null && N.set("language", Array.isArray(_) ? _.join(",") : _), Me && N.set("types", Me.join(",")), ae || (o && N.set("bbox", o.map((ee) => ee.toFixed(6)).join(",")), B && N.set("country", Array.isArray(B) ? B.join(",") : B)), T || (k && N.set("proximity", k.map((ee) => ee.toFixed(6)).join(",")), (H || !ke) && N.set("autocomplete", "false"), N.set("fuzzyMatch", String(U))), m !== void 0 && N.set("limit", String(m)), N.set("key", d);
|
|
923
|
+
const $ = "https://api.maptiler.com/geocoding/" + encodeURIComponent(l) + ".json?" + N.toString();
|
|
924
|
+
if ($ === Fe) {
|
|
925
|
+
T ? (n(12, y = void 0), n(45, w = pe[0])) : n(12, y = pe);
|
|
1005
926
|
return;
|
|
1006
927
|
}
|
|
1007
|
-
|
|
1008
|
-
const
|
|
1009
|
-
n(17,
|
|
1010
|
-
let
|
|
928
|
+
Fe = $, Y == null || Y.abort();
|
|
929
|
+
const A = new AbortController();
|
|
930
|
+
n(17, Y = A);
|
|
931
|
+
let Se;
|
|
1011
932
|
try {
|
|
1012
|
-
|
|
1013
|
-
|
|
933
|
+
Se = await fetch($, { signal: A.signal, ...ze }).finally(() => {
|
|
934
|
+
A === Y && n(17, Y = void 0);
|
|
1014
935
|
});
|
|
1015
|
-
} catch (
|
|
1016
|
-
if (
|
|
936
|
+
} catch (ee) {
|
|
937
|
+
if (ee && typeof ee == "object" && ee.name === "AbortError")
|
|
1017
938
|
return;
|
|
1018
939
|
throw new Error();
|
|
1019
940
|
}
|
|
1020
|
-
if (!
|
|
941
|
+
if (!Se.ok)
|
|
1021
942
|
throw new Error();
|
|
1022
|
-
const
|
|
1023
|
-
|
|
943
|
+
const Ae = await Se.json();
|
|
944
|
+
Z("response", { url: $, featureCollection: Ae }), T ? (n(12, y = void 0), n(45, w = Ae.features[0]), pe = [w]) : (n(12, y = Ae.features.filter(h)), pe = y, ae && V.focus());
|
|
1024
945
|
}
|
|
1025
|
-
function
|
|
1026
|
-
var
|
|
1027
|
-
if (!(
|
|
946
|
+
function dt() {
|
|
947
|
+
var H, ae, N, $;
|
|
948
|
+
if (!(S != null && S.length) || !F)
|
|
1028
949
|
return;
|
|
1029
|
-
const
|
|
1030
|
-
for (const
|
|
1031
|
-
(
|
|
1032
|
-
|
|
950
|
+
const l = [180, 90, -180, -90], T = !S.some((A) => !A.matching_text);
|
|
951
|
+
for (const A of S)
|
|
952
|
+
(T || !A.matching_text) && (l[0] = Math.min(l[0], ((H = A.bbox) == null ? void 0 : H[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], (($ = A.bbox) == null ? void 0 : $[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));
|
|
1033
954
|
}
|
|
1034
|
-
function
|
|
1035
|
-
n(0,
|
|
955
|
+
function ht(l) {
|
|
956
|
+
n(0, s = P === "always"), De(un(l[0], [-180, 180], !0).toFixed(6) + "," + l[1].toFixed(6));
|
|
1036
957
|
}
|
|
1037
|
-
function
|
|
1038
|
-
if (!
|
|
958
|
+
function mt(l) {
|
|
959
|
+
if (!y)
|
|
1039
960
|
return;
|
|
1040
|
-
let
|
|
1041
|
-
|
|
961
|
+
let T = l.key === "ArrowDown" ? 1 : l.key === "ArrowUp" ? -1 : 0;
|
|
962
|
+
T ? (M === -1 && T === -1 && n(13, M = y.length), n(13, M += T), M >= y.length && n(13, M = -1), l.preventDefault()) : ["ArrowLeft", "ArrowRight", "Home", "End"].includes(l.key) && n(13, M = -1);
|
|
1042
963
|
}
|
|
1043
|
-
function
|
|
1044
|
-
if (
|
|
1045
|
-
|
|
1046
|
-
const
|
|
1047
|
-
|
|
964
|
+
function Ce(l = !0) {
|
|
965
|
+
if (ke && v.length > L) {
|
|
966
|
+
ie && clearTimeout(ie);
|
|
967
|
+
const T = v;
|
|
968
|
+
ie = window.setTimeout(
|
|
1048
969
|
() => {
|
|
1049
|
-
|
|
970
|
+
Be(T).catch((H) => n(16, W = H));
|
|
1050
971
|
},
|
|
1051
|
-
|
|
972
|
+
l ? C : 0
|
|
1052
973
|
);
|
|
1053
974
|
} else
|
|
1054
|
-
n(12,
|
|
975
|
+
n(12, y = void 0), n(16, W = void 0);
|
|
1055
976
|
}
|
|
1056
|
-
function
|
|
1057
|
-
n(45,
|
|
977
|
+
function Le(l) {
|
|
978
|
+
n(45, w = l), n(1, v = l.place_name), n(13, M = -1);
|
|
1058
979
|
}
|
|
1059
|
-
const
|
|
1060
|
-
function
|
|
1061
|
-
|
|
1062
|
-
|
|
980
|
+
const _t = () => V.focus();
|
|
981
|
+
function gt(l) {
|
|
982
|
+
Ie[l ? "unshift" : "push"](() => {
|
|
983
|
+
V = l, n(15, V);
|
|
1063
984
|
});
|
|
1064
985
|
}
|
|
1065
|
-
function
|
|
1066
|
-
|
|
986
|
+
function yt() {
|
|
987
|
+
v = this.value, n(1, v), n(11, le), n(25, R);
|
|
1067
988
|
}
|
|
1068
|
-
const
|
|
1069
|
-
n(1,
|
|
1070
|
-
},
|
|
989
|
+
const bt = () => n(11, le = !0), wt = () => n(11, le = !1), kt = () => Ce(), vt = () => {
|
|
990
|
+
n(1, v = ""), V.focus();
|
|
991
|
+
}, Mt = () => n(0, s = !s), Tt = (l) => n(13, M = l), pt = (l) => Le(l), Rt = () => n(13, M = -1), xt = () => {
|
|
1071
992
|
};
|
|
1072
|
-
return t.$$set = (
|
|
1073
|
-
"class" in
|
|
993
|
+
return t.$$set = (l) => {
|
|
994
|
+
"class" in l && n(2, i = l.class), "apiKey" in l && n(23, d = l.apiKey), "bbox" in l && n(24, o = l.bbox), "clearButtonTitle" in l && n(3, a = l.clearButtonTitle), "clearOnBlur" in l && n(25, R = l.clearOnBlur), "collapsed" in l && n(4, x = l.collapsed), "country" in l && n(26, B = l.country), "debounceSearch" in l && n(27, C = l.debounceSearch), "enableReverse" in l && n(5, P = l.enableReverse), "errorMessage" in l && n(6, D = l.errorMessage), "filter" in l && n(28, h = l.filter), "flyTo" in l && n(29, F = 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, K = l.placeholder), "proximity" in l && n(22, k = l.proximity), "reverseActive" in l && n(0, s = l.reverseActive), "reverseButtonTitle" in l && n(9, p = l.reverseButtonTitle), "searchValue" in l && n(1, v = l.searchValue), "showFullGeometry" in l && n(35, re = l.showFullGeometry), "showPlaceType" in l && n(10, Oe = l.showPlaceType), "showResultsWhileTyping" in l && n(36, ke = l.showResultsWhileTyping), "trackProximity" in l && n(37, ve = l.trackProximity), "types" in l && n(38, Me = l.types), "zoom" in l && n(39, Te = l.zoom), "fetchParameters" in l && n(40, ze = l.fetchParameters), "$$scope" in l && n(47, u = l.$$scope);
|
|
1074
995
|
}, t.$$.update = () => {
|
|
1075
996
|
if (t.$$.dirty[1] & /*trackProximity*/
|
|
1076
|
-
64 && (
|
|
997
|
+
64 && (ve || n(22, k = void 0)), t.$$.dirty[0] & /*focused, clearOnBlur*/
|
|
1077
998
|
33556480 && setTimeout(() => {
|
|
1078
|
-
n(14, Re =
|
|
999
|
+
n(14, Re = le), R && !le && n(1, v = "");
|
|
1079
1000
|
}), t.$$.dirty[0] & /*searchValue, listFeatures*/
|
|
1080
|
-
4098 && (
|
|
1081
|
-
16400 &&
|
|
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
|
+
16400 && re && w && !w.address && w.geometry.type === "Point" && Be(w.id, { byId: !0 }).catch((l) => n(16, W = l)), t.$$.dirty[0] & /*flyTo*/
|
|
1082
1003
|
536870912 | t.$$.dirty[1] & /*mapController, picked, zoom*/
|
|
1083
|
-
16644 &&
|
|
1004
|
+
16644 && g && w && F && (!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, M = -1)), t.$$.dirty[0] & /*listFeatures*/
|
|
1084
1005
|
4096 | t.$$.dirty[1] & /*markedFeatures*/
|
|
1085
|
-
8192 &&
|
|
1086
|
-
24580 &&
|
|
1087
|
-
2 && n(13,
|
|
1006
|
+
8192 && S !== y && n(44, S = void 0), t.$$.dirty[1] & /*mapController, markedFeatures, picked*/
|
|
1007
|
+
24580 && g && g.setMarkers(S, w), t.$$.dirty[0] & /*searchValue*/
|
|
1008
|
+
2 && n(13, M = -1), t.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
|
|
1088
1009
|
20481 | t.$$.dirty[1] & /*mapController, trackProximity*/
|
|
1089
|
-
68 &&
|
|
1090
|
-
switch (
|
|
1010
|
+
68 && g && g.setEventHandler((l) => {
|
|
1011
|
+
switch (l.type) {
|
|
1091
1012
|
case "mapClick":
|
|
1092
|
-
|
|
1013
|
+
s && ht(l.coordinates);
|
|
1093
1014
|
break;
|
|
1094
1015
|
case "proximityChange":
|
|
1095
|
-
n(22,
|
|
1016
|
+
n(22, k = ve ? l.proximity : void 0);
|
|
1096
1017
|
break;
|
|
1097
1018
|
case "markerClick":
|
|
1098
1019
|
{
|
|
1099
|
-
const
|
|
1100
|
-
|
|
1020
|
+
const T = y == null ? void 0 : y.find((H) => H.id === l.id);
|
|
1021
|
+
T && Le(T);
|
|
1101
1022
|
}
|
|
1102
1023
|
break;
|
|
1103
1024
|
case "markerMouseEnter":
|
|
1104
|
-
n(13,
|
|
1025
|
+
n(13, M = Re ? (y == null ? void 0 : y.findIndex((T) => T.id === l.id)) ?? -1 : -1);
|
|
1105
1026
|
break;
|
|
1106
1027
|
case "markerMouseLeave":
|
|
1107
|
-
n(13,
|
|
1028
|
+
n(13, M = -1);
|
|
1108
1029
|
break;
|
|
1109
1030
|
}
|
|
1110
1031
|
}), t.$$.dirty[0] & /*selectedItemIndex*/
|
|
1111
1032
|
8192 | t.$$.dirty[1] & /*mapController*/
|
|
1112
|
-
4 && (
|
|
1113
|
-
12288 && n(46,
|
|
1033
|
+
4 && (g == null || g.setSelectedMarker(M)), t.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
|
|
1034
|
+
12288 && n(46, r = y == null ? void 0 : y[M]), t.$$.dirty[0] & /*searchValue*/
|
|
1114
1035
|
2 | t.$$.dirty[1] & /*mapController*/
|
|
1115
1036
|
4) {
|
|
1116
|
-
const
|
|
1117
|
-
|
|
1037
|
+
const l = /^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(v);
|
|
1038
|
+
g == null || g.setReverseMarker(l ? [Number(l[1]), Number(l[2])] : void 0);
|
|
1118
1039
|
}
|
|
1119
1040
|
t.$$.dirty[1] & /*selected*/
|
|
1120
|
-
32768 &&
|
|
1121
|
-
16384 &&
|
|
1122
|
-
20480 &&
|
|
1123
|
-
4096 &&
|
|
1124
|
-
8192 &&
|
|
1125
|
-
1 &&
|
|
1126
|
-
2 &&
|
|
1041
|
+
32768 && Z("select", r), t.$$.dirty[1] & /*picked*/
|
|
1042
|
+
16384 && Z("pick", w), t.$$.dirty[0] & /*focusedDelayed, listFeatures*/
|
|
1043
|
+
20480 && Z("optionsVisibilityChange", Re && !!y), t.$$.dirty[0] & /*listFeatures*/
|
|
1044
|
+
4096 && Z("featuresListed", y), t.$$.dirty[1] & /*markedFeatures*/
|
|
1045
|
+
8192 && Z("featuresMarked", S), t.$$.dirty[0] & /*reverseActive*/
|
|
1046
|
+
1 && Z("reverseToggle", s), t.$$.dirty[0] & /*searchValue*/
|
|
1047
|
+
2 && Z("queryChange", v), t.$$.dirty[0] & /*reverseActive*/
|
|
1127
1048
|
1 | t.$$.dirty[1] & /*mapController*/
|
|
1128
|
-
4 &&
|
|
1049
|
+
4 && g && g.indicateReverse(s);
|
|
1129
1050
|
}, [
|
|
1130
|
-
|
|
1131
|
-
|
|
1051
|
+
s,
|
|
1052
|
+
v,
|
|
1132
1053
|
i,
|
|
1133
1054
|
a,
|
|
1134
|
-
|
|
1135
|
-
G,
|
|
1136
|
-
p,
|
|
1055
|
+
x,
|
|
1137
1056
|
P,
|
|
1057
|
+
D,
|
|
1058
|
+
fe,
|
|
1059
|
+
K,
|
|
1060
|
+
p,
|
|
1061
|
+
Oe,
|
|
1062
|
+
le,
|
|
1063
|
+
y,
|
|
1138
1064
|
M,
|
|
1139
|
-
ye,
|
|
1140
|
-
J,
|
|
1141
|
-
se,
|
|
1142
|
-
g,
|
|
1143
|
-
R,
|
|
1144
1065
|
Re,
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
Z,
|
|
1153
|
-
m,
|
|
1154
|
-
f,
|
|
1155
|
-
h,
|
|
1156
|
-
I,
|
|
1157
|
-
N,
|
|
1066
|
+
V,
|
|
1067
|
+
W,
|
|
1068
|
+
Y,
|
|
1069
|
+
Ve,
|
|
1070
|
+
mt,
|
|
1071
|
+
Ce,
|
|
1072
|
+
Le,
|
|
1158
1073
|
k,
|
|
1074
|
+
d,
|
|
1075
|
+
o,
|
|
1076
|
+
R,
|
|
1159
1077
|
B,
|
|
1160
1078
|
C,
|
|
1079
|
+
h,
|
|
1161
1080
|
F,
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1081
|
+
U,
|
|
1082
|
+
_,
|
|
1083
|
+
m,
|
|
1084
|
+
g,
|
|
1085
|
+
L,
|
|
1086
|
+
re,
|
|
1087
|
+
ke,
|
|
1088
|
+
ve,
|
|
1168
1089
|
Me,
|
|
1169
1090
|
Te,
|
|
1170
|
-
|
|
1171
|
-
ut,
|
|
1091
|
+
ze,
|
|
1172
1092
|
ft,
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1093
|
+
at,
|
|
1094
|
+
De,
|
|
1095
|
+
S,
|
|
1096
|
+
w,
|
|
1097
|
+
r,
|
|
1177
1098
|
u,
|
|
1178
1099
|
c,
|
|
1179
|
-
mt,
|
|
1180
1100
|
_t,
|
|
1181
1101
|
gt,
|
|
1182
1102
|
yt,
|
|
@@ -1184,20 +1104,21 @@ function fn(t, e, n) {
|
|
|
1184
1104
|
wt,
|
|
1185
1105
|
kt,
|
|
1186
1106
|
vt,
|
|
1187
|
-
pt,
|
|
1188
|
-
zt,
|
|
1189
1107
|
Mt,
|
|
1190
|
-
Tt
|
|
1108
|
+
Tt,
|
|
1109
|
+
pt,
|
|
1110
|
+
Rt,
|
|
1111
|
+
xt
|
|
1191
1112
|
];
|
|
1192
1113
|
}
|
|
1193
|
-
class
|
|
1114
|
+
class sn extends we {
|
|
1194
1115
|
constructor(e) {
|
|
1195
|
-
super(),
|
|
1116
|
+
super(), be(
|
|
1196
1117
|
this,
|
|
1197
1118
|
e,
|
|
1198
|
-
fn,
|
|
1199
1119
|
on,
|
|
1200
|
-
|
|
1120
|
+
cn,
|
|
1121
|
+
ye,
|
|
1201
1122
|
{
|
|
1202
1123
|
class: 2,
|
|
1203
1124
|
apiKey: 23,
|
|
@@ -1247,7 +1168,7 @@ class an extends ge {
|
|
|
1247
1168
|
return this.$$.ctx[43];
|
|
1248
1169
|
}
|
|
1249
1170
|
}
|
|
1250
|
-
const
|
|
1171
|
+
const rt = [
|
|
1251
1172
|
"featuresListed",
|
|
1252
1173
|
"featuresMarked",
|
|
1253
1174
|
"optionsVisibilityChange",
|
|
@@ -1256,7 +1177,7 @@ const nt = [
|
|
|
1256
1177
|
"response",
|
|
1257
1178
|
"reversetoggle",
|
|
1258
1179
|
"select"
|
|
1259
|
-
],
|
|
1180
|
+
], fn = [
|
|
1260
1181
|
"apiKey",
|
|
1261
1182
|
"bbox",
|
|
1262
1183
|
"clearButtonTitle",
|
|
@@ -1286,39 +1207,39 @@ const nt = [
|
|
|
1286
1207
|
function lt(t) {
|
|
1287
1208
|
return "on" + t[0].toUpperCase() + t.slice(1);
|
|
1288
1209
|
}
|
|
1289
|
-
const
|
|
1290
|
-
const
|
|
1291
|
-
for (const i of
|
|
1210
|
+
const dn = Et(function(e, n) {
|
|
1211
|
+
const r = Ke(), c = Ke(), u = { ...e };
|
|
1212
|
+
for (const i of rt)
|
|
1292
1213
|
delete u[lt(i)];
|
|
1293
|
-
|
|
1294
|
-
if (!
|
|
1214
|
+
Pe(() => {
|
|
1215
|
+
if (!r.current)
|
|
1295
1216
|
throw new Error();
|
|
1296
|
-
const i = new
|
|
1297
|
-
target:
|
|
1217
|
+
const i = new sn({
|
|
1218
|
+
target: r.current,
|
|
1298
1219
|
props: u
|
|
1299
1220
|
});
|
|
1300
1221
|
return c.current = i, () => i.$destroy();
|
|
1301
1222
|
}, []);
|
|
1302
|
-
for (const i of
|
|
1303
|
-
|
|
1223
|
+
for (const i of fn)
|
|
1224
|
+
Pe(() => {
|
|
1304
1225
|
c.current && e[i] !== void 0 && c.current.$set({ [i]: e[i] });
|
|
1305
1226
|
}, [e[i]]);
|
|
1306
|
-
for (const i of
|
|
1307
|
-
const
|
|
1308
|
-
|
|
1309
|
-
var
|
|
1310
|
-
(
|
|
1227
|
+
for (const i of rt) {
|
|
1228
|
+
const d = e[lt(i)];
|
|
1229
|
+
Pe(() => {
|
|
1230
|
+
var o;
|
|
1231
|
+
(o = c.current) == null || o.$on(
|
|
1311
1232
|
i,
|
|
1312
|
-
|
|
1313
|
-
|
|
1233
|
+
d ? (a) => {
|
|
1234
|
+
d(a.detail);
|
|
1314
1235
|
} : void 0
|
|
1315
1236
|
);
|
|
1316
|
-
}, [
|
|
1237
|
+
}, [d]);
|
|
1317
1238
|
}
|
|
1318
|
-
return
|
|
1319
|
-
setQuery: (i,
|
|
1320
|
-
var
|
|
1321
|
-
return (
|
|
1239
|
+
return zt(n, () => ({
|
|
1240
|
+
setQuery: (i, d = !0) => {
|
|
1241
|
+
var o;
|
|
1242
|
+
return (o = c.current) == null ? void 0 : o.setQuery(i, d);
|
|
1322
1243
|
},
|
|
1323
1244
|
focus: () => {
|
|
1324
1245
|
var i;
|
|
@@ -1328,8 +1249,9 @@ const mn = Ct(function(e, n) {
|
|
|
1328
1249
|
var i;
|
|
1329
1250
|
return (i = c.current) == null ? void 0 : i.blur();
|
|
1330
1251
|
}
|
|
1331
|
-
})),
|
|
1252
|
+
})), Bt("div", { ref: r });
|
|
1332
1253
|
});
|
|
1333
1254
|
export {
|
|
1334
|
-
|
|
1255
|
+
dn as GeocodingControl
|
|
1335
1256
|
};
|
|
1257
|
+
//# sourceMappingURL=react.js.map
|