@maptiler/geocoding-control 0.0.91-git.896be4 → 0.0.91-git.9f388b

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/react.js CHANGED
@@ -1,4 +1,4 @@
1
- import { forwardRef as Wt, useRef as Xe, useEffect as Fe, useImperativeHandle as Nt, createElement as jt } from "react";
1
+ import { forwardRef as Nt, useRef as Ye, useEffect as Ue, useImperativeHandle as jt, createElement as Ft } from "react";
2
2
  function P() {
3
3
  }
4
4
  function Gt(t, e) {
@@ -6,16 +6,16 @@ function Gt(t, e) {
6
6
  t[n] = e[n];
7
7
  return t;
8
8
  }
9
- function ut(t) {
9
+ function at(t) {
10
10
  return t();
11
11
  }
12
- function Ye() {
12
+ function xe() {
13
13
  return /* @__PURE__ */ Object.create(null);
14
14
  }
15
15
  function ee(t) {
16
- t.forEach(ut);
16
+ t.forEach(at);
17
17
  }
18
- function at(t) {
18
+ function dt(t) {
19
19
  return typeof t == "function";
20
20
  }
21
21
  function he(t, e) {
@@ -30,14 +30,14 @@ function Ot(t) {
30
30
  }
31
31
  function Zt(t, e, n, r) {
32
32
  if (t) {
33
- const l = dt(t, e, n, r);
33
+ const l = ht(t, e, n, r);
34
34
  return t[0](l);
35
35
  }
36
36
  }
37
- function dt(t, e, n, r) {
37
+ function ht(t, e, n, r) {
38
38
  return t[1] && r ? Gt(n.ctx.slice(), t[1](r(e))) : n.ctx;
39
39
  }
40
- function Ft(t, e, n, r) {
40
+ function Ut(t, e, n, r) {
41
41
  if (t[2] && r) {
42
42
  const l = t[2](r(n));
43
43
  if (e.dirty === void 0)
@@ -52,13 +52,13 @@ function Ft(t, e, n, r) {
52
52
  }
53
53
  return e.dirty;
54
54
  }
55
- function Ut(t, e, n, r, l, a) {
55
+ function qt(t, e, n, r, l, a) {
56
56
  if (l) {
57
- const s = dt(e, n, r, a);
57
+ const s = ht(e, n, r, a);
58
58
  t.p(s, l);
59
59
  }
60
60
  }
61
- function qt(t) {
61
+ function Dt(t) {
62
62
  if (t.ctx.length > 32) {
63
63
  const e = [], n = t.ctx.length / 32;
64
64
  for (let r = 0; r < n; r++)
@@ -67,13 +67,13 @@ function qt(t) {
67
67
  }
68
68
  return -1;
69
69
  }
70
- function xe(t) {
70
+ function $e(t) {
71
71
  return t ?? "";
72
72
  }
73
73
  function v(t, e) {
74
74
  t.appendChild(e);
75
75
  }
76
- function I(t, e, n) {
76
+ function A(t, e, n) {
77
77
  t.insertBefore(e, n || null);
78
78
  }
79
79
  function S(t) {
@@ -91,13 +91,13 @@ function se(t) {
91
91
  function V() {
92
92
  return se(" ");
93
93
  }
94
- function Dt() {
94
+ function Kt() {
95
95
  return se("");
96
96
  }
97
97
  function D(t, e, n, r) {
98
98
  return t.addEventListener(e, n, r), () => t.removeEventListener(e, n, r);
99
99
  }
100
- function Kt(t) {
100
+ function Vt(t) {
101
101
  return function(e) {
102
102
  return e.preventDefault(), t.call(this, e);
103
103
  };
@@ -105,19 +105,19 @@ function Kt(t) {
105
105
  function o(t, e, n) {
106
106
  n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
107
107
  }
108
- function Vt(t) {
108
+ function Ht(t) {
109
109
  return Array.from(t.childNodes);
110
110
  }
111
111
  function Me(t, e) {
112
112
  e = "" + e, t.data !== e && (t.data = e);
113
113
  }
114
- function $e(t, e) {
114
+ function et(t, e) {
115
115
  t.value = e ?? "";
116
116
  }
117
117
  function re(t, e, n) {
118
118
  t.classList[n ? "add" : "remove"](e);
119
119
  }
120
- function Ht(t, e, { bubbles: n = !1, cancelable: r = !1 } = {}) {
120
+ function Qt(t, e, { bubbles: n = !1, cancelable: r = !1 } = {}) {
121
121
  const l = document.createEvent("CustomEvent");
122
122
  return l.initCustomEvent(t, n, r, e), l;
123
123
  }
@@ -125,20 +125,20 @@ let Re;
125
125
  function Te(t) {
126
126
  Re = t;
127
127
  }
128
- function ht() {
128
+ function _t() {
129
129
  if (!Re)
130
130
  throw new Error("Function called outside component initialization");
131
131
  return Re;
132
132
  }
133
- function Qt(t) {
134
- ht().$$.on_destroy.push(t);
133
+ function Jt(t) {
134
+ _t().$$.on_destroy.push(t);
135
135
  }
136
- function Jt() {
137
- const t = ht();
136
+ function Xt() {
137
+ const t = _t();
138
138
  return (e, n, { cancelable: r = !1 } = {}) => {
139
139
  const l = t.$$.callbacks[e];
140
140
  if (l) {
141
- const a = Ht(e, n, { cancelable: r });
141
+ const a = Qt(e, n, { cancelable: r });
142
142
  return l.slice().forEach((s) => {
143
143
  s.call(t, a);
144
144
  }), !a.defaultPrevented;
@@ -146,23 +146,23 @@ function Jt() {
146
146
  return !0;
147
147
  };
148
148
  }
149
- function et(t, e) {
149
+ function tt(t, e) {
150
150
  const n = t.$$.callbacks[e.type];
151
151
  n && n.slice().forEach((r) => r.call(this, e));
152
152
  }
153
- const ke = [], qe = [];
153
+ const ke = [], De = [];
154
154
  let ve = [];
155
- const tt = [], Xt = /* @__PURE__ */ Promise.resolve();
156
- let De = !1;
157
- function Yt() {
158
- De || (De = !0, Xt.then(_t));
155
+ const nt = [], Yt = /* @__PURE__ */ Promise.resolve();
156
+ let Ke = !1;
157
+ function xt() {
158
+ Ke || (Ke = !0, Yt.then(mt));
159
159
  }
160
- function Ke(t) {
160
+ function Ve(t) {
161
161
  ve.push(t);
162
162
  }
163
- const Ue = /* @__PURE__ */ new Set();
163
+ const qe = /* @__PURE__ */ new Set();
164
164
  let we = 0;
165
- function _t() {
165
+ function mt() {
166
166
  if (we !== 0)
167
167
  return;
168
168
  const t = Re;
@@ -170,31 +170,31 @@ function _t() {
170
170
  try {
171
171
  for (; we < ke.length; ) {
172
172
  const e = ke[we];
173
- we++, Te(e), xt(e.$$);
173
+ we++, Te(e), $t(e.$$);
174
174
  }
175
175
  } catch (e) {
176
176
  throw ke.length = 0, we = 0, e;
177
177
  }
178
- for (Te(null), ke.length = 0, we = 0; qe.length; )
179
- qe.pop()();
178
+ for (Te(null), ke.length = 0, we = 0; De.length; )
179
+ De.pop()();
180
180
  for (let e = 0; e < ve.length; e += 1) {
181
181
  const n = ve[e];
182
- Ue.has(n) || (Ue.add(n), n());
182
+ qe.has(n) || (qe.add(n), n());
183
183
  }
184
184
  ve.length = 0;
185
185
  } while (ke.length);
186
- for (; tt.length; )
187
- tt.pop()();
188
- De = !1, Ue.clear(), Te(t);
186
+ for (; nt.length; )
187
+ nt.pop()();
188
+ Ke = !1, qe.clear(), Te(t);
189
189
  }
190
- function xt(t) {
190
+ function $t(t) {
191
191
  if (t.fragment !== null) {
192
192
  t.update(), ee(t.before_update);
193
193
  const e = t.dirty;
194
- t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(Ke);
194
+ t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(Ve);
195
195
  }
196
196
  }
197
- function $t(t) {
197
+ function en(t) {
198
198
  const e = [], n = [];
199
199
  ve.forEach((r) => t.indexOf(r) === -1 ? e.push(r) : n.push(r)), n.forEach((r) => r()), ve = e;
200
200
  }
@@ -208,13 +208,13 @@ function Se() {
208
208
  // parent group
209
209
  };
210
210
  }
211
- function Ae() {
211
+ function Ie() {
212
212
  de.r || ee(de.c), de = de.p;
213
213
  }
214
- function G(t, e) {
214
+ function F(t, e) {
215
215
  t && t.i && (Pe.delete(t), t.i(e));
216
216
  }
217
- function Z(t, e, n, r) {
217
+ function O(t, e, n, r) {
218
218
  if (t && t.o) {
219
219
  if (Pe.has(t))
220
220
  return;
@@ -224,54 +224,54 @@ function Z(t, e, n, r) {
224
224
  } else
225
225
  r && r();
226
226
  }
227
- function en(t, e) {
228
- Z(t, 1, 1, () => {
227
+ function tn(t, e) {
228
+ O(t, 1, 1, () => {
229
229
  e.delete(t.key);
230
230
  });
231
231
  }
232
- function tn(t, e, n, r, l, a, s, c, d, f, _, k) {
233
- let b = t.length, L = a.length, z = b;
232
+ function nn(t, e, n, r, l, a, s, c, d, f, _, k) {
233
+ let b = t.length, E = a.length, z = b;
234
234
  const p = {};
235
235
  for (; z--; )
236
236
  p[t[z].key] = z;
237
- const g = [], W = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map(), O = [];
238
- for (z = L; z--; ) {
239
- const T = k(l, a, z), M = n(T);
240
- let m = s.get(M);
241
- m ? r && O.push(() => m.p(T, e)) : (m = f(M, T), m.c()), W.set(M, g[z] = m), M in p && B.set(M, Math.abs(z - p[M]));
237
+ const g = [], W = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map(), G = [];
238
+ for (z = E; z--; ) {
239
+ const M = k(l, a, z), R = n(M);
240
+ let m = s.get(R);
241
+ m ? r && G.push(() => m.p(M, e)) : (m = f(R, M), m.c()), W.set(R, g[z] = m), R in p && B.set(R, Math.abs(z - p[R]));
242
242
  }
243
- const F = /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Set();
244
- function y(T) {
245
- G(T, 1), T.m(c, _), s.set(T.key, T), _ = T.first, L--;
243
+ const Z = /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Set();
244
+ function y(M) {
245
+ F(M, 1), M.m(c, _), s.set(M.key, M), _ = M.first, E--;
246
246
  }
247
- for (; b && L; ) {
248
- const T = g[L - 1], M = t[b - 1], m = T.key, w = M.key;
249
- T === M ? (_ = T.first, b--, L--) : W.has(w) ? !s.has(m) || F.has(m) ? y(T) : h.has(w) ? b-- : B.get(m) > B.get(w) ? (h.add(m), y(T)) : (F.add(w), b--) : (d(M, s), b--);
247
+ for (; b && E; ) {
248
+ const M = g[E - 1], R = t[b - 1], m = M.key, w = R.key;
249
+ M === R ? (_ = M.first, b--, E--) : W.has(w) ? !s.has(m) || Z.has(m) ? y(M) : h.has(w) ? b-- : B.get(m) > B.get(w) ? (h.add(m), y(M)) : (Z.add(w), b--) : (d(R, s), b--);
250
250
  }
251
251
  for (; b--; ) {
252
- const T = t[b];
253
- W.has(T.key) || d(T, s);
252
+ const M = t[b];
253
+ W.has(M.key) || d(M, s);
254
254
  }
255
- for (; L; )
256
- y(g[L - 1]);
257
- return ee(O), g;
255
+ for (; E; )
256
+ y(g[E - 1]);
257
+ return ee(G), g;
258
258
  }
259
259
  function oe(t) {
260
260
  t && t.c();
261
261
  }
262
262
  function x(t, e, n, r) {
263
263
  const { fragment: l, after_update: a } = t.$$;
264
- l && l.m(e, n), r || Ke(() => {
265
- const s = t.$$.on_mount.map(ut).filter(at);
264
+ l && l.m(e, n), r || Ve(() => {
265
+ const s = t.$$.on_mount.map(at).filter(dt);
266
266
  t.$$.on_destroy ? t.$$.on_destroy.push(...s) : ee(s), t.$$.on_mount = [];
267
- }), a.forEach(Ke);
267
+ }), a.forEach(Ve);
268
268
  }
269
269
  function $(t, e) {
270
270
  const n = t.$$;
271
- n.fragment !== null && ($t(n.after_update), ee(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
271
+ n.fragment !== null && (en(n.after_update), ee(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
272
272
  }
273
- function nn(t, e) {
274
- t.$$.dirty[0] === -1 && (ke.push(t), Yt(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
273
+ function rn(t, e) {
274
+ t.$$.dirty[0] === -1 && (ke.push(t), xt(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
275
275
  }
276
276
  function _e(t, e, n, r, l, a, s, c = [-1]) {
277
277
  const d = Re;
@@ -283,7 +283,7 @@ function _e(t, e, n, r, l, a, s, c = [-1]) {
283
283
  props: a,
284
284
  update: P,
285
285
  not_equal: l,
286
- bound: Ye(),
286
+ bound: xe(),
287
287
  // lifecycle
288
288
  on_mount: [],
289
289
  on_destroy: [],
@@ -292,23 +292,23 @@ function _e(t, e, n, r, l, a, s, c = [-1]) {
292
292
  after_update: [],
293
293
  context: new Map(e.context || (d ? d.$$.context : [])),
294
294
  // everything else
295
- callbacks: Ye(),
295
+ callbacks: xe(),
296
296
  dirty: c,
297
297
  skip_bound: !1,
298
298
  root: e.target || d.$$.root
299
299
  };
300
300
  s && s(f.root);
301
301
  let _ = !1;
302
- if (f.ctx = n ? n(t, e.props || {}, (k, b, ...L) => {
303
- const z = L.length ? L[0] : b;
304
- return f.ctx && l(f.ctx[k], f.ctx[k] = z) && (!f.skip_bound && f.bound[k] && f.bound[k](z), _ && nn(t, k)), b;
302
+ if (f.ctx = n ? n(t, e.props || {}, (k, b, ...E) => {
303
+ const z = E.length ? E[0] : b;
304
+ return f.ctx && l(f.ctx[k], f.ctx[k] = z) && (!f.skip_bound && f.bound[k] && f.bound[k](z), _ && rn(t, k)), b;
305
305
  }) : [], f.update(), _ = !0, ee(f.before_update), f.fragment = r ? r(f.ctx) : !1, e.target) {
306
306
  if (e.hydrate) {
307
- const k = Vt(e.target);
307
+ const k = Ht(e.target);
308
308
  f.fragment && f.fragment.l(k), k.forEach(S);
309
309
  } else
310
310
  f.fragment && f.fragment.c();
311
- e.intro && G(t.$$.fragment), x(t, e.target, e.anchor, e.customElement), _t();
311
+ e.intro && F(t.$$.fragment), x(t, e.target, e.anchor, e.customElement), mt();
312
312
  }
313
313
  Te(d);
314
314
  }
@@ -317,7 +317,7 @@ class me {
317
317
  $(this, 1), this.$destroy = P;
318
318
  }
319
319
  $on(e, n) {
320
- if (!at(n))
320
+ if (!dt(n))
321
321
  return P;
322
322
  const r = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
323
323
  return r.push(n), () => {
@@ -329,14 +329,14 @@ class me {
329
329
  this.$$set && !Ot(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
330
330
  }
331
331
  }
332
- function rn(t) {
332
+ function ln(t) {
333
333
  let e, n;
334
334
  return {
335
335
  c() {
336
336
  e = ie("svg"), n = ie("path"), o(n, "d", "M13.12.706a.982.982 0 0 0-1.391 0L6.907 5.517 2.087.696a.982.982 0 1 0-1.391 1.39l4.821 4.821L.696 11.73a.982.982 0 1 0 1.39 1.39l4.821-4.821 4.822 4.821a.982.982 0 1 0 1.39-1.39L8.298 6.908l4.821-4.822a.988.988 0 0 0 0-1.38Z"), o(e, "viewBox", "0 0 14 14"), o(e, "width", "13"), o(e, "height", "13"), o(e, "class", "svelte-en2qvf");
337
337
  },
338
338
  m(r, l) {
339
- I(r, e, l), v(e, n);
339
+ A(r, e, l), v(e, n);
340
340
  },
341
341
  p: P,
342
342
  i: P,
@@ -346,19 +346,19 @@ function rn(t) {
346
346
  }
347
347
  };
348
348
  }
349
- class mt extends me {
349
+ class gt extends me {
350
350
  constructor(e) {
351
- super(), _e(this, e, null, rn, he, {});
351
+ super(), _e(this, e, null, ln, he, {});
352
352
  }
353
353
  }
354
- function ln(t) {
354
+ function sn(t) {
355
355
  let e, n;
356
356
  return {
357
357
  c() {
358
358
  e = ie("svg"), n = ie("path"), o(n, "d", "M15 0C6.705 0 0 6.705 0 15C0 23.295 6.705 30 15 30C23.295 30 30 23.295 30 15C30 6.705 23.295 0 15 0ZM22.5 20.385L20.385 22.5L15 17.115L9.615 22.5L7.5 20.385L12.885 15L7.5 9.615L9.615 7.5L15 12.885L20.385 7.5L22.5 9.615L17.115 15L22.5 20.385Z"), o(e, "viewBox", "0 0 30 30"), o(e, "fill", "none"), o(e, "xmlns", "http://www.w3.org/2000/svg"), o(e, "class", "svelte-d2loi5");
359
359
  },
360
360
  m(r, l) {
361
- I(r, e, l), v(e, n);
361
+ A(r, e, l), v(e, n);
362
362
  },
363
363
  p: P,
364
364
  i: P,
@@ -368,12 +368,12 @@ function ln(t) {
368
368
  }
369
369
  };
370
370
  }
371
- class gt extends me {
371
+ class yt extends me {
372
372
  constructor(e) {
373
- super(), _e(this, e, null, ln, he, {});
373
+ super(), _e(this, e, null, sn, he, {});
374
374
  }
375
375
  }
376
- function sn(t) {
376
+ function on(t) {
377
377
  let e, n;
378
378
  return {
379
379
  c() {
@@ -385,7 +385,7 @@ function sn(t) {
385
385
  ), o(e, "class", "svelte-ltkwvy");
386
386
  },
387
387
  m(r, l) {
388
- I(r, e, l);
388
+ A(r, e, l);
389
389
  },
390
390
  p(r, l) {
391
391
  l & /*placeType*/
@@ -401,7 +401,7 @@ function sn(t) {
401
401
  }
402
402
  };
403
403
  }
404
- function on(t) {
404
+ function cn(t) {
405
405
  let e, n;
406
406
  return {
407
407
  c() {
@@ -413,7 +413,7 @@ function on(t) {
413
413
  ), o(e, "class", "svelte-ltkwvy");
414
414
  },
415
415
  m(r, l) {
416
- I(r, e, l);
416
+ A(r, e, l);
417
417
  },
418
418
  p(r, l) {
419
419
  l & /*placeType*/
@@ -429,7 +429,7 @@ function on(t) {
429
429
  }
430
430
  };
431
431
  }
432
- function cn(t) {
432
+ function fn(t) {
433
433
  let e, n;
434
434
  return {
435
435
  c() {
@@ -441,7 +441,7 @@ function cn(t) {
441
441
  ), o(e, "class", "svelte-ltkwvy");
442
442
  },
443
443
  m(r, l) {
444
- I(r, e, l);
444
+ A(r, e, l);
445
445
  },
446
446
  p(r, l) {
447
447
  l & /*placeType*/
@@ -457,7 +457,7 @@ function cn(t) {
457
457
  }
458
458
  };
459
459
  }
460
- function fn(t) {
460
+ function un(t) {
461
461
  let e, n;
462
462
  return {
463
463
  c() {
@@ -469,7 +469,7 @@ function fn(t) {
469
469
  ), o(e, "class", "svelte-ltkwvy");
470
470
  },
471
471
  m(r, l) {
472
- I(r, e, l);
472
+ A(r, e, l);
473
473
  },
474
474
  p(r, l) {
475
475
  l & /*placeType*/
@@ -485,7 +485,7 @@ function fn(t) {
485
485
  }
486
486
  };
487
487
  }
488
- function un(t) {
488
+ function an(t) {
489
489
  let e, n;
490
490
  return {
491
491
  c() {
@@ -497,7 +497,7 @@ function un(t) {
497
497
  ), o(e, "class", "svelte-ltkwvy");
498
498
  },
499
499
  m(r, l) {
500
- I(r, e, l);
500
+ A(r, e, l);
501
501
  },
502
502
  p(r, l) {
503
503
  l & /*placeType*/
@@ -513,7 +513,7 @@ function un(t) {
513
513
  }
514
514
  };
515
515
  }
516
- function an(t) {
516
+ function dn(t) {
517
517
  let e, n;
518
518
  return {
519
519
  c() {
@@ -525,7 +525,7 @@ function an(t) {
525
525
  ), o(e, "class", "svelte-ltkwvy");
526
526
  },
527
527
  m(r, l) {
528
- I(r, e, l);
528
+ A(r, e, l);
529
529
  },
530
530
  p(r, l) {
531
531
  l & /*placeType*/
@@ -541,7 +541,7 @@ function an(t) {
541
541
  }
542
542
  };
543
543
  }
544
- function dn(t) {
544
+ function hn(t) {
545
545
  let e, n, r, l;
546
546
  return {
547
547
  c() {
@@ -554,7 +554,7 @@ function dn(t) {
554
554
  ), o(e, "class", "svelte-ltkwvy");
555
555
  },
556
556
  m(a, s) {
557
- I(a, e, s), r || (l = D(
557
+ A(a, e, s), r || (l = D(
558
558
  e,
559
559
  "error",
560
560
  /*error_handler*/
@@ -577,7 +577,7 @@ function dn(t) {
577
577
  }
578
578
  };
579
579
  }
580
- function nt(t) {
580
+ function rt(t) {
581
581
  let e, n;
582
582
  return {
583
583
  c() {
@@ -587,7 +587,7 @@ function nt(t) {
587
587
  ), o(e, "class", "secondary svelte-ltkwvy");
588
588
  },
589
589
  m(r, l) {
590
- I(r, e, l), v(e, n);
590
+ A(r, e, l), v(e, n);
591
591
  },
592
592
  p(r, l) {
593
593
  l & /*placeType*/
@@ -602,8 +602,8 @@ function nt(t) {
602
602
  }
603
603
  };
604
604
  }
605
- function hn(t) {
606
- var T, M;
605
+ function _n(t) {
606
+ var M, R;
607
607
  let e, n, r, l, a, s, c, d, f = (
608
608
  /*feature*/
609
609
  t[0].place_name.replace(/,.*/, "") + ""
@@ -612,38 +612,38 @@ function hn(t) {
612
612
  t[2] === "always" || /*showPlaceType*/
613
613
  t[2] && !/*feature*/
614
614
  t[0].address && /*feature*/
615
- ((T = t[0].properties) == null ? void 0 : T.kind) !== "road" && /*feature*/
616
- ((M = t[0].properties) == null ? void 0 : M.kind) !== "road_relation" && !/*feature*/
615
+ ((M = t[0].properties) == null ? void 0 : M.kind) !== "road" && /*feature*/
616
+ ((R = t[0].properties) == null ? void 0 : R.kind) !== "road_relation" && !/*feature*/
617
617
  t[0].id.startsWith("address.") && !/*feature*/
618
618
  t[0].id.startsWith("postal_code.") && (!/*feature*/
619
619
  t[0].id.startsWith("poi.") || !/*imageUrl*/
620
620
  t[5])
621
- ), L, z, p = (
621
+ ), E, z, p = (
622
622
  /*feature*/
623
623
  t[0].place_name.replace(/[^,]*,?\s*/, "") + ""
624
624
  ), g, W, B;
625
- function O(m, w) {
625
+ function G(m, w) {
626
626
  var H, u;
627
627
  return w & /*feature*/
628
628
  1 && (n = null), w & /*feature*/
629
629
  1 && (r = null), w & /*feature*/
630
630
  1 && (l = null), /*imageUrl*/
631
- m[5] ? dn : (
631
+ m[5] ? hn : (
632
632
  /*feature*/
633
- m[0].address ? an : (
633
+ m[0].address ? dn : (
634
634
  /*feature*/
635
635
  ((H = m[0].properties) == null ? void 0 : H.kind) === "road" || /*feature*/
636
- ((u = m[0].properties) == null ? void 0 : u.kind) === "road_relation" ? un : (n == null && (n = !!/*feature*/
637
- m[0].id.startsWith("address.")), n ? fn : (r == null && (r = !!/*feature*/
638
- m[0].id.startsWith("postal_code.")), r ? cn : (l == null && (l = !!/*feature*/
639
- m[0].id.startsWith("poi.")), l ? on : sn)))
636
+ ((u = m[0].properties) == null ? void 0 : u.kind) === "road_relation" ? an : (n == null && (n = !!/*feature*/
637
+ m[0].id.startsWith("address.")), n ? un : (r == null && (r = !!/*feature*/
638
+ m[0].id.startsWith("postal_code.")), r ? fn : (l == null && (l = !!/*feature*/
639
+ m[0].id.startsWith("poi.")), l ? cn : on)))
640
640
  )
641
641
  );
642
642
  }
643
- let F = O(t, -1), h = F(t), y = b && nt(t);
643
+ let Z = G(t, -1), h = Z(t), y = b && rt(t);
644
644
  return {
645
645
  c() {
646
- e = C("li"), h.c(), a = V(), s = C("span"), c = C("span"), d = C("span"), _ = se(f), k = V(), y && y.c(), L = V(), z = C("span"), g = se(p), o(d, "class", "primary svelte-ltkwvy"), o(c, "class", "svelte-ltkwvy"), o(z, "class", "line2 svelte-ltkwvy"), o(s, "class", "texts svelte-ltkwvy"), o(e, "tabindex", "0"), o(
646
+ e = C("li"), h.c(), a = V(), s = C("span"), c = C("span"), d = C("span"), _ = se(f), k = V(), y && y.c(), E = V(), z = C("span"), g = se(p), o(d, "class", "primary svelte-ltkwvy"), o(c, "class", "svelte-ltkwvy"), o(z, "class", "line2 svelte-ltkwvy"), o(s, "class", "texts svelte-ltkwvy"), o(e, "tabindex", "0"), o(
647
647
  e,
648
648
  "data-selected",
649
649
  /*selected*/
@@ -656,7 +656,7 @@ function hn(t) {
656
656
  );
657
657
  },
658
658
  m(m, w) {
659
- I(m, e, w), h.m(e, null), v(e, a), v(e, s), v(s, c), v(c, d), v(d, _), v(c, k), y && y.m(c, null), v(s, L), v(s, z), v(z, g), W || (B = [
659
+ A(m, e, w), h.m(e, null), v(e, a), v(e, s), v(s, c), v(c, d), v(d, _), v(c, k), y && y.m(c, null), v(s, E), v(s, z), v(z, g), W || (B = [
660
660
  D(
661
661
  e,
662
662
  "mouseenter",
@@ -673,7 +673,7 @@ function hn(t) {
673
673
  },
674
674
  p(m, [w]) {
675
675
  var H, u;
676
- F === (F = O(m, w)) && h ? h.p(m, w) : (h.d(1), h = F(m), h && (h.c(), h.m(e, a))), w & /*feature*/
676
+ Z === (Z = G(m, w)) && h ? h.p(m, w) : (h.d(1), h = Z(m), h && (h.c(), h.m(e, a))), w & /*feature*/
677
677
  1 && f !== (f = /*feature*/
678
678
  m[0].place_name.replace(/,.*/, "") + "") && Me(_, f), w & /*showPlaceType, feature, imageUrl*/
679
679
  37 && (b = /*showPlaceType*/
@@ -685,7 +685,7 @@ function hn(t) {
685
685
  m[0].id.startsWith("address.") && !/*feature*/
686
686
  m[0].id.startsWith("postal_code.") && (!/*feature*/
687
687
  m[0].id.startsWith("poi.") || !/*imageUrl*/
688
- m[5])), b ? y ? y.p(m, w) : (y = nt(m), y.c(), y.m(c, null)) : y && (y.d(1), y = null), w & /*feature*/
688
+ m[5])), b ? y ? y.p(m, w) : (y = rt(m), y.c(), y.m(c, null)) : y && (y.d(1), y = null), w & /*feature*/
689
689
  1 && p !== (p = /*feature*/
690
690
  m[0].place_name.replace(/[^,]*,?\s*/, "") + "") && Me(g, p), w & /*selected*/
691
691
  2 && o(
@@ -708,7 +708,7 @@ function hn(t) {
708
708
  }
709
709
  };
710
710
  }
711
- function _n(t, e, n) {
711
+ function mn(t, e, n) {
712
712
  var p;
713
713
  let r, l, a, s, { feature: c } = e, { selected: d = !1 } = e, { showPlaceType: f } = e;
714
714
  const _ = (p = c.properties) == null ? void 0 : p.categories;
@@ -716,20 +716,20 @@ function _n(t, e, n) {
716
716
  r > -1 ? n(7, r--, r) : g.style.visibility = "hidden";
717
717
  }
718
718
  function b(g) {
719
- et.call(this, t, g);
719
+ tt.call(this, t, g);
720
720
  }
721
- function L(g) {
722
- et.call(this, t, g);
721
+ function E(g) {
722
+ tt.call(this, t, g);
723
723
  }
724
724
  const z = (g) => k(g.currentTarget);
725
725
  return t.$$set = (g) => {
726
726
  "feature" in g && n(0, c = g.feature), "selected" in g && n(1, d = g.selected), "showPlaceType" in g && n(2, f = g.showPlaceType);
727
727
  }, t.$$.update = () => {
728
- var g, W, B, O;
728
+ var g, W, B, G;
729
729
  t.$$.dirty & /*index*/
730
730
  128 && n(3, l = _ == null ? void 0 : _[r]), t.$$.dirty & /*category*/
731
731
  8 && n(5, a = l ? `/icons/${l.replace(/ /g, "_")}.svg` : void 0), t.$$.dirty & /*feature*/
732
- 1 && n(4, s = c.id.startsWith("poi.") ? (W = (g = c.properties) == null ? void 0 : g.categories) == null ? void 0 : W.join(", ") : ((O = (B = c.properties) == null ? void 0 : B.place_type_name) == null ? void 0 : O[0]) ?? c.place_type[0]);
732
+ 1 && n(4, s = c.id.startsWith("poi.") ? (W = (g = c.properties) == null ? void 0 : g.categories) == null ? void 0 : W.join(", ") : ((G = (B = c.properties) == null ? void 0 : B.place_type_name) == null ? void 0 : G[0]) ?? c.place_type[0]);
733
733
  }, n(7, r = ((_ == null ? void 0 : _.length) ?? 0) - 1), [
734
734
  c,
735
735
  d,
@@ -740,27 +740,27 @@ function _n(t, e, n) {
740
740
  k,
741
741
  r,
742
742
  b,
743
- L,
743
+ E,
744
744
  z
745
745
  ];
746
746
  }
747
- class mn extends me {
747
+ class gn extends me {
748
748
  constructor(e) {
749
- super(), _e(this, e, _n, hn, he, {
749
+ super(), _e(this, e, mn, _n, he, {
750
750
  feature: 0,
751
751
  selected: 1,
752
752
  showPlaceType: 2
753
753
  });
754
754
  }
755
755
  }
756
- function gn(t) {
756
+ function yn(t) {
757
757
  let e;
758
758
  return {
759
759
  c() {
760
760
  e = C("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>', o(e, "class", "svelte-7cmwmc");
761
761
  },
762
762
  m(n, r) {
763
- I(n, e, r);
763
+ A(n, e, r);
764
764
  },
765
765
  p: P,
766
766
  i: P,
@@ -770,19 +770,19 @@ function gn(t) {
770
770
  }
771
771
  };
772
772
  }
773
- class yn extends me {
773
+ class bn extends me {
774
774
  constructor(e) {
775
- super(), _e(this, e, null, gn, he, {});
775
+ super(), _e(this, e, null, yn, he, {});
776
776
  }
777
777
  }
778
- function bn(t) {
778
+ function wn(t) {
779
779
  let e, n;
780
780
  return {
781
781
  c() {
782
782
  e = ie("svg"), n = ie("path"), o(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"), o(e, "viewBox", "0 0 60.006 21.412"), o(e, "width", "14"), o(e, "height", "20"), o(e, "class", "svelte-en2qvf");
783
783
  },
784
784
  m(r, l) {
785
- I(r, e, l), v(e, n);
785
+ A(r, e, l), v(e, n);
786
786
  },
787
787
  p: P,
788
788
  i: P,
@@ -792,19 +792,19 @@ function bn(t) {
792
792
  }
793
793
  };
794
794
  }
795
- class wn extends me {
795
+ class kn extends me {
796
796
  constructor(e) {
797
- super(), _e(this, e, null, bn, he, {});
797
+ super(), _e(this, e, null, wn, he, {});
798
798
  }
799
799
  }
800
- function kn(t) {
800
+ function vn(t) {
801
801
  let e, n;
802
802
  return {
803
803
  c() {
804
804
  e = ie("svg"), n = ie("path"), o(n, "d", "M13.101 14.261 8.74 9.899a4.797 4.797 0 0 1-1.425.748 5.165 5.165 0 0 1-1.603.248c-1.446 0-2.677-.5-3.693-1.503S.495 7.164.495 5.717c0-1.446.508-2.678 1.524-3.693C3.035 1.008 4.266.5 5.712.5c1.448 0 2.672.508 3.675 1.524 1.002 1.015 1.503 2.247 1.503 3.693 0 .558-.08 1.092-.239 1.603-.159.512-.411.98-.757 1.405l4.382 4.4a.74.74 0 0 1 .229.568.81.81 0 0 1-.249.568.787.787 0 0 1-.577.239.787.787 0 0 1-.578-.239ZM5.712 9.223c.97 0 1.796-.342 2.48-1.026a3.378 3.378 0 0 0 1.026-2.48c0-.982-.34-1.818-1.016-2.509-.677-.69-1.507-1.035-2.49-1.035a3.42 3.42 0 0 0-2.509 1.035 3.42 3.42 0 0 0-1.035 2.51c0 .982.345 1.812 1.035 2.488.691.678 1.527 1.017 2.51 1.017Z"), o(e, "width", "14"), o(e, "height", "14"), o(e, "viewBox", "0 0 15 15"), o(e, "class", "svelte-en2qvf");
805
805
  },
806
806
  m(r, l) {
807
- I(r, e, l), v(e, n);
807
+ A(r, e, l), v(e, n);
808
808
  },
809
809
  p: P,
810
810
  i: P,
@@ -814,18 +814,18 @@ function kn(t) {
814
814
  }
815
815
  };
816
816
  }
817
- class vn extends me {
817
+ class pn extends me {
818
818
  constructor(e) {
819
- super(), _e(this, e, null, kn, he, {});
819
+ super(), _e(this, e, null, vn, he, {});
820
820
  }
821
821
  }
822
- function rt(t, e, n) {
822
+ function lt(t, e, n) {
823
823
  const r = t.slice();
824
- return r[72] = e[n], r[74] = n, r;
824
+ return r[73] = e[n], r[75] = n, r;
825
825
  }
826
- function lt(t) {
826
+ function it(t) {
827
827
  let e, n;
828
- return e = new yn({}), {
828
+ return e = new bn({}), {
829
829
  c() {
830
830
  oe(e.$$.fragment);
831
831
  },
@@ -833,19 +833,19 @@ function lt(t) {
833
833
  x(e, r, l), n = !0;
834
834
  },
835
835
  i(r) {
836
- n || (G(e.$$.fragment, r), n = !0);
836
+ n || (F(e.$$.fragment, r), n = !0);
837
837
  },
838
838
  o(r) {
839
- Z(e.$$.fragment, r), n = !1;
839
+ O(e.$$.fragment, r), n = !1;
840
840
  },
841
841
  d(r) {
842
842
  $(e, r);
843
843
  }
844
844
  };
845
845
  }
846
- function it(t) {
846
+ function st(t) {
847
847
  let e, n, r, l, a;
848
- return n = new wn({}), {
848
+ return n = new kn({}), {
849
849
  c() {
850
850
  e = C("button"), oe(n.$$.fragment), o(e, "type", "button"), o(
851
851
  e,
@@ -860,11 +860,11 @@ function it(t) {
860
860
  );
861
861
  },
862
862
  m(s, c) {
863
- I(s, e, c), x(n, e, null), r = !0, l || (a = D(
863
+ A(s, e, c), x(n, e, null), r = !0, l || (a = D(
864
864
  e,
865
865
  "click",
866
866
  /*click_handler_2*/
867
- t[58]
867
+ t[59]
868
868
  ), l = !0);
869
869
  },
870
870
  p(s, c) {
@@ -883,28 +883,30 @@ function it(t) {
883
883
  );
884
884
  },
885
885
  i(s) {
886
- r || (G(n.$$.fragment, s), r = !0);
886
+ r || (F(n.$$.fragment, s), r = !0);
887
887
  },
888
888
  o(s) {
889
- Z(n.$$.fragment, s), r = !1;
889
+ O(n.$$.fragment, s), r = !1;
890
890
  },
891
891
  d(s) {
892
892
  s && S(e), $(n), l = !1, a();
893
893
  }
894
894
  };
895
895
  }
896
- function pn(t) {
896
+ function Tn(t) {
897
897
  let e, n = [], r = /* @__PURE__ */ new Map(), l, a, s, c = (
898
898
  /*listFeatures*/
899
899
  t[12]
900
900
  );
901
901
  const d = (f) => (
902
902
  /*feature*/
903
- f[72].id
903
+ f[73].id + /*feature*/
904
+ (f[73].address ? "," + /*feature*/
905
+ f[73].address : "")
904
906
  );
905
907
  for (let f = 0; f < c.length; f += 1) {
906
- let _ = rt(t, c, f), k = d(_);
907
- r.set(k, n[f] = st(k, _));
908
+ let _ = lt(t, c, f), k = d(_);
909
+ r.set(k, n[f] = ot(k, _));
908
910
  }
909
911
  return {
910
912
  c() {
@@ -914,7 +916,7 @@ function pn(t) {
914
916
  o(e, "class", "svelte-1r7dvt7");
915
917
  },
916
918
  m(f, _) {
917
- I(f, e, _);
919
+ A(f, e, _);
918
920
  for (let k = 0; k < n.length; k += 1)
919
921
  n[k] && n[k].m(e, null);
920
922
  l = !0, a || (s = [
@@ -922,31 +924,31 @@ function pn(t) {
922
924
  e,
923
925
  "mouseleave",
924
926
  /*mouseleave_handler*/
925
- t[62]
927
+ t[63]
926
928
  ),
927
929
  D(
928
930
  e,
929
931
  "blur",
930
932
  /*blur_handler_1*/
931
- t[63]
933
+ t[64]
932
934
  )
933
935
  ], a = !0);
934
936
  },
935
937
  p(f, _) {
936
938
  _[0] & /*listFeatures, showPlaceType, selectedItemIndex, pick*/
937
939
  2110464 && (c = /*listFeatures*/
938
- f[12], Se(), n = tn(n, _, d, 1, f, c, r, e, en, st, null, rt), Ae());
940
+ f[12], Se(), n = nn(n, _, d, 1, f, c, r, e, tn, ot, null, lt), Ie());
939
941
  },
940
942
  i(f) {
941
943
  if (!l) {
942
944
  for (let _ = 0; _ < c.length; _ += 1)
943
- G(n[_]);
945
+ F(n[_]);
944
946
  l = !0;
945
947
  }
946
948
  },
947
949
  o(f) {
948
950
  for (let _ = 0; _ < n.length; _ += 1)
949
- Z(n[_]);
951
+ O(n[_]);
950
952
  l = !1;
951
953
  },
952
954
  d(f) {
@@ -957,9 +959,9 @@ function pn(t) {
957
959
  }
958
960
  };
959
961
  }
960
- function Tn(t) {
962
+ function Mn(t) {
961
963
  let e, n, r, l, a, s;
962
- return n = new gt({}), {
964
+ return n = new yt({}), {
963
965
  c() {
964
966
  e = C("div"), oe(n.$$.fragment), r = V(), l = C("div"), a = se(
965
967
  /*noResultsMessage*/
@@ -967,7 +969,7 @@ function Tn(t) {
967
969
  ), o(l, "class", "svelte-1r7dvt7"), o(e, "class", "no-results svelte-1r7dvt7");
968
970
  },
969
971
  m(c, d) {
970
- I(c, e, d), x(n, e, null), v(e, r), v(e, l), v(l, a), s = !0;
972
+ A(c, e, d), x(n, e, null), v(e, r), v(e, l), v(l, a), s = !0;
971
973
  },
972
974
  p(c, d) {
973
975
  (!s || d[0] & /*noResultsMessage*/
@@ -978,24 +980,24 @@ function Tn(t) {
978
980
  );
979
981
  },
980
982
  i(c) {
981
- s || (G(n.$$.fragment, c), s = !0);
983
+ s || (F(n.$$.fragment, c), s = !0);
982
984
  },
983
985
  o(c) {
984
- Z(n.$$.fragment, c), s = !1;
986
+ O(n.$$.fragment, c), s = !1;
985
987
  },
986
988
  d(c) {
987
989
  c && S(e), $(n);
988
990
  }
989
991
  };
990
992
  }
991
- function Mn(t) {
993
+ function Rn(t) {
992
994
  let e = "", n;
993
995
  return {
994
996
  c() {
995
997
  n = se(e);
996
998
  },
997
999
  m(r, l) {
998
- I(r, n, l);
1000
+ A(r, n, l);
999
1001
  },
1000
1002
  p: P,
1001
1003
  i: P,
@@ -1005,25 +1007,25 @@ function Mn(t) {
1005
1007
  }
1006
1008
  };
1007
1009
  }
1008
- function Rn(t) {
1010
+ function Ln(t) {
1009
1011
  let e, n, r, l, a, s, c, d, f, _, k;
1010
- return n = new gt({}), d = new mt({}), {
1012
+ return n = new yt({}), d = new gt({}), {
1011
1013
  c() {
1012
1014
  e = C("div"), oe(n.$$.fragment), r = V(), l = C("div"), a = se(
1013
1015
  /*errorMessage*/
1014
1016
  t[6]
1015
1017
  ), s = V(), c = C("button"), oe(d.$$.fragment), o(l, "class", "svelte-1r7dvt7"), o(c, "class", "svelte-1r7dvt7"), o(e, "class", "error svelte-1r7dvt7");
1016
1018
  },
1017
- m(b, L) {
1018
- I(b, e, L), x(n, e, null), v(e, r), v(e, l), v(l, a), v(e, s), v(e, c), x(d, c, null), f = !0, _ || (k = D(
1019
+ m(b, E) {
1020
+ A(b, e, E), x(n, e, null), v(e, r), v(e, l), v(l, a), v(e, s), v(e, c), x(d, c, null), f = !0, _ || (k = D(
1019
1021
  c,
1020
1022
  "click",
1021
1023
  /*click_handler_3*/
1022
- t[59]
1024
+ t[60]
1023
1025
  ), _ = !0);
1024
1026
  },
1025
- p(b, L) {
1026
- (!f || L[0] & /*errorMessage*/
1027
+ p(b, E) {
1028
+ (!f || E[0] & /*errorMessage*/
1027
1029
  64) && Me(
1028
1030
  a,
1029
1031
  /*errorMessage*/
@@ -1031,41 +1033,41 @@ function Rn(t) {
1031
1033
  );
1032
1034
  },
1033
1035
  i(b) {
1034
- f || (G(n.$$.fragment, b), G(d.$$.fragment, b), f = !0);
1036
+ f || (F(n.$$.fragment, b), F(d.$$.fragment, b), f = !0);
1035
1037
  },
1036
1038
  o(b) {
1037
- Z(n.$$.fragment, b), Z(d.$$.fragment, b), f = !1;
1039
+ O(n.$$.fragment, b), O(d.$$.fragment, b), f = !1;
1038
1040
  },
1039
1041
  d(b) {
1040
1042
  b && S(e), $(n), $(d), _ = !1, k();
1041
1043
  }
1042
1044
  };
1043
1045
  }
1044
- function st(t, e) {
1046
+ function ot(t, e) {
1045
1047
  let n, r, l;
1046
1048
  function a() {
1047
1049
  return (
1048
1050
  /*mouseenter_handler*/
1049
- e[60](
1051
+ e[61](
1050
1052
  /*i*/
1051
- e[74]
1053
+ e[75]
1052
1054
  )
1053
1055
  );
1054
1056
  }
1055
1057
  function s() {
1056
1058
  return (
1057
1059
  /*focus_handler_1*/
1058
- e[61](
1060
+ e[62](
1059
1061
  /*feature*/
1060
- e[72]
1062
+ e[73]
1061
1063
  )
1062
1064
  );
1063
1065
  }
1064
- return r = new mn({
1066
+ return r = new gn({
1065
1067
  props: {
1066
1068
  feature: (
1067
1069
  /*feature*/
1068
- e[72]
1070
+ e[73]
1069
1071
  ),
1070
1072
  showPlaceType: (
1071
1073
  /*showPlaceType*/
@@ -1074,62 +1076,62 @@ function st(t, e) {
1074
1076
  selected: (
1075
1077
  /*selectedItemIndex*/
1076
1078
  e[13] === /*i*/
1077
- e[74]
1079
+ e[75]
1078
1080
  )
1079
1081
  }
1080
1082
  }), r.$on("mouseenter", a), r.$on("focus", s), {
1081
1083
  key: t,
1082
1084
  first: null,
1083
1085
  c() {
1084
- n = Dt(), oe(r.$$.fragment), this.first = n;
1086
+ n = Kt(), oe(r.$$.fragment), this.first = n;
1085
1087
  },
1086
1088
  m(c, d) {
1087
- I(c, n, d), x(r, c, d), l = !0;
1089
+ A(c, n, d), x(r, c, d), l = !0;
1088
1090
  },
1089
1091
  p(c, d) {
1090
1092
  e = c;
1091
1093
  const f = {};
1092
1094
  d[0] & /*listFeatures*/
1093
1095
  4096 && (f.feature = /*feature*/
1094
- e[72]), d[0] & /*showPlaceType*/
1096
+ e[73]), d[0] & /*showPlaceType*/
1095
1097
  1024 && (f.showPlaceType = /*showPlaceType*/
1096
1098
  e[10]), d[0] & /*selectedItemIndex, listFeatures*/
1097
1099
  12288 && (f.selected = /*selectedItemIndex*/
1098
1100
  e[13] === /*i*/
1099
- e[74]), r.$set(f);
1101
+ e[75]), r.$set(f);
1100
1102
  },
1101
1103
  i(c) {
1102
- l || (G(r.$$.fragment, c), l = !0);
1104
+ l || (F(r.$$.fragment, c), l = !0);
1103
1105
  },
1104
1106
  o(c) {
1105
- Z(r.$$.fragment, c), l = !1;
1107
+ O(r.$$.fragment, c), l = !1;
1106
1108
  },
1107
1109
  d(c) {
1108
1110
  c && S(n), $(r, c);
1109
1111
  }
1110
1112
  };
1111
1113
  }
1112
- function Ln(t) {
1113
- let e, n, r, l, a, s, c, d, f, _, k, b, L, z, p, g, W, B, O, F;
1114
- l = new vn({}), _ = new mt({});
1114
+ function En(t) {
1115
+ let e, n, r, l, a, s, c, d, f, _, k, b, E, z, p, g, W, B, G, Z;
1116
+ l = new pn({}), _ = new gt({});
1115
1117
  let h = (
1116
1118
  /*abortController*/
1117
- t[17] && lt()
1119
+ t[17] && it()
1118
1120
  ), y = (
1119
1121
  /*enableReverse*/
1120
- t[5] === !0 && it(t)
1122
+ t[5] === !0 && st(t)
1121
1123
  );
1122
- const T = (
1124
+ const M = (
1123
1125
  /*#slots*/
1124
- t[50].default
1125
- ), M = Zt(
1126
- T,
1126
+ t[51].default
1127
+ ), R = Zt(
1128
+ M,
1127
1129
  t,
1128
1130
  /*$$scope*/
1129
- t[49],
1131
+ t[50],
1130
1132
  null
1131
- ), m = [Rn, Mn, Tn, pn], w = [];
1132
- function H(u, A) {
1133
+ ), m = [Ln, Rn, Mn, Tn], w = [];
1134
+ function H(u, I) {
1133
1135
  var Y, ce;
1134
1136
  return (
1135
1137
  /*error*/
@@ -1148,7 +1150,7 @@ function Ln(t) {
1148
1150
  }
1149
1151
  return ~(p = H(t)) && (g = w[p] = m[p](t)), {
1150
1152
  c() {
1151
- e = C("form"), n = C("div"), r = C("button"), oe(l.$$.fragment), a = V(), s = C("input"), c = V(), d = C("div"), f = C("button"), oe(_.$$.fragment), k = V(), h && h.c(), b = V(), y && y.c(), L = V(), M && M.c(), z = V(), g && g.c(), o(r, "class", "search-button svelte-1r7dvt7"), o(r, "type", "button"), o(
1153
+ e = C("form"), n = C("div"), r = C("button"), oe(l.$$.fragment), a = V(), s = C("input"), c = V(), d = C("div"), f = C("button"), oe(_.$$.fragment), k = V(), h && h.c(), b = V(), y && y.c(), E = V(), R && R.c(), z = V(), g && g.c(), o(r, "class", "search-button svelte-1r7dvt7"), o(r, "type", "button"), o(
1152
1154
  s,
1153
1155
  "placeholder",
1154
1156
  /*placeholder*/
@@ -1168,7 +1170,7 @@ function Ln(t) {
1168
1170
  "displayable",
1169
1171
  /*searchValue*/
1170
1172
  t[1] !== ""
1171
- ), o(n, "class", "input-group svelte-1r7dvt7"), o(e, "tabindex", "0"), o(e, "class", W = xe(
1173
+ ), o(n, "class", "input-group svelte-1r7dvt7"), o(e, "tabindex", "0"), o(e, "class", W = $e(
1172
1174
  /*className*/
1173
1175
  t[2]
1174
1176
  ) + " svelte-1r7dvt7"), re(
@@ -1179,35 +1181,35 @@ function Ln(t) {
1179
1181
  t[1] === ""
1180
1182
  );
1181
1183
  },
1182
- m(u, A) {
1183
- I(u, e, A), v(e, n), v(n, r), x(l, r, null), v(n, a), v(n, s), t[52](s), $e(
1184
+ m(u, I) {
1185
+ A(u, e, I), v(e, n), v(n, r), x(l, r, null), v(n, a), v(n, s), t[53](s), et(
1184
1186
  s,
1185
1187
  /*searchValue*/
1186
1188
  t[1]
1187
- ), v(n, c), v(n, d), v(d, f), x(_, f, null), v(d, k), h && h.m(d, null), v(n, b), y && y.m(n, null), v(n, L), M && M.m(n, null), v(e, z), ~p && w[p].m(e, null), B = !0, O || (F = [
1189
+ ), v(n, c), v(n, d), v(d, f), x(_, f, null), v(d, k), h && h.m(d, null), v(n, b), y && y.m(n, null), v(n, E), R && R.m(n, null), v(e, z), ~p && w[p].m(e, null), B = !0, G || (Z = [
1188
1190
  D(
1189
1191
  r,
1190
1192
  "click",
1191
1193
  /*click_handler*/
1192
- t[51]
1194
+ t[52]
1193
1195
  ),
1194
1196
  D(
1195
1197
  s,
1196
1198
  "input",
1197
1199
  /*input_1_input_handler*/
1198
- t[53]
1200
+ t[54]
1199
1201
  ),
1200
1202
  D(
1201
1203
  s,
1202
1204
  "focus",
1203
1205
  /*focus_handler*/
1204
- t[54]
1206
+ t[55]
1205
1207
  ),
1206
1208
  D(
1207
1209
  s,
1208
1210
  "blur",
1209
1211
  /*blur_handler*/
1210
- t[55]
1212
+ t[56]
1211
1213
  ),
1212
1214
  D(
1213
1215
  s,
@@ -1219,86 +1221,86 @@ function Ln(t) {
1219
1221
  s,
1220
1222
  "input",
1221
1223
  /*input_handler*/
1222
- t[56]
1224
+ t[57]
1223
1225
  ),
1224
1226
  D(
1225
1227
  f,
1226
1228
  "click",
1227
1229
  /*click_handler_1*/
1228
- t[57]
1230
+ t[58]
1229
1231
  ),
1230
- D(e, "submit", Kt(
1232
+ D(e, "submit", Vt(
1231
1233
  /*handleOnSubmit*/
1232
1234
  t[18]
1233
1235
  ))
1234
- ], O = !0);
1236
+ ], G = !0);
1235
1237
  },
1236
- p(u, A) {
1237
- (!B || A[0] & /*placeholder*/
1238
+ p(u, I) {
1239
+ (!B || I[0] & /*placeholder*/
1238
1240
  256) && o(
1239
1241
  s,
1240
1242
  "placeholder",
1241
1243
  /*placeholder*/
1242
1244
  u[8]
1243
- ), (!B || A[0] & /*placeholder*/
1245
+ ), (!B || I[0] & /*placeholder*/
1244
1246
  256) && o(
1245
1247
  s,
1246
1248
  "aria-label",
1247
1249
  /*placeholder*/
1248
1250
  u[8]
1249
- ), A[0] & /*searchValue*/
1251
+ ), I[0] & /*searchValue*/
1250
1252
  2 && s.value !== /*searchValue*/
1251
- u[1] && $e(
1253
+ u[1] && et(
1252
1254
  s,
1253
1255
  /*searchValue*/
1254
1256
  u[1]
1255
- ), (!B || A[0] & /*clearButtonTitle*/
1257
+ ), (!B || I[0] & /*clearButtonTitle*/
1256
1258
  8) && o(
1257
1259
  f,
1258
1260
  "title",
1259
1261
  /*clearButtonTitle*/
1260
1262
  u[3]
1261
1263
  ), /*abortController*/
1262
- u[17] ? h ? A[0] & /*abortController*/
1263
- 131072 && G(h, 1) : (h = lt(), h.c(), G(h, 1), h.m(d, null)) : h && (Se(), Z(h, 1, 1, () => {
1264
+ u[17] ? h ? I[0] & /*abortController*/
1265
+ 131072 && F(h, 1) : (h = it(), h.c(), F(h, 1), h.m(d, null)) : h && (Se(), O(h, 1, 1, () => {
1264
1266
  h = null;
1265
- }), Ae()), (!B || A[0] & /*searchValue*/
1267
+ }), Ie()), (!B || I[0] & /*searchValue*/
1266
1268
  2) && re(
1267
1269
  d,
1268
1270
  "displayable",
1269
1271
  /*searchValue*/
1270
1272
  u[1] !== ""
1271
1273
  ), /*enableReverse*/
1272
- u[5] === !0 ? y ? (y.p(u, A), A[0] & /*enableReverse*/
1273
- 32 && G(y, 1)) : (y = it(u), y.c(), G(y, 1), y.m(n, L)) : y && (Se(), Z(y, 1, 1, () => {
1274
+ u[5] === !0 ? y ? (y.p(u, I), I[0] & /*enableReverse*/
1275
+ 32 && F(y, 1)) : (y = st(u), y.c(), F(y, 1), y.m(n, E)) : y && (Se(), O(y, 1, 1, () => {
1274
1276
  y = null;
1275
- }), Ae()), M && M.p && (!B || A[1] & /*$$scope*/
1276
- 262144) && Ut(
1277
+ }), Ie()), R && R.p && (!B || I[1] & /*$$scope*/
1278
+ 524288) && qt(
1279
+ R,
1277
1280
  M,
1278
- T,
1279
1281
  u,
1280
1282
  /*$$scope*/
1281
- u[49],
1282
- B ? Ft(
1283
- T,
1283
+ u[50],
1284
+ B ? Ut(
1285
+ M,
1284
1286
  /*$$scope*/
1285
- u[49],
1286
- A,
1287
+ u[50],
1288
+ I,
1287
1289
  null
1288
- ) : qt(
1290
+ ) : Dt(
1289
1291
  /*$$scope*/
1290
- u[49]
1292
+ u[50]
1291
1293
  ),
1292
1294
  null
1293
1295
  );
1294
1296
  let Y = p;
1295
- p = H(u), p === Y ? ~p && w[p].p(u, A) : (g && (Se(), Z(w[Y], 1, 1, () => {
1297
+ p = H(u), p === Y ? ~p && w[p].p(u, I) : (g && (Se(), O(w[Y], 1, 1, () => {
1296
1298
  w[Y] = null;
1297
- }), Ae()), ~p ? (g = w[p], g ? g.p(u, A) : (g = w[p] = m[p](u), g.c()), G(g, 1), g.m(e, null)) : g = null), (!B || A[0] & /*className*/
1298
- 4 && W !== (W = xe(
1299
+ }), Ie()), ~p ? (g = w[p], g ? g.p(u, I) : (g = w[p] = m[p](u), g.c()), F(g, 1), g.m(e, null)) : g = null), (!B || I[0] & /*className*/
1300
+ 4 && W !== (W = $e(
1299
1301
  /*className*/
1300
1302
  u[2]
1301
- ) + " svelte-1r7dvt7")) && o(e, "class", W), (!B || A[0] & /*className, collapsed, searchValue*/
1303
+ ) + " svelte-1r7dvt7")) && o(e, "class", W), (!B || I[0] & /*className, collapsed, searchValue*/
1302
1304
  22) && re(
1303
1305
  e,
1304
1306
  "can-collapse",
@@ -1308,65 +1310,65 @@ function Ln(t) {
1308
1310
  );
1309
1311
  },
1310
1312
  i(u) {
1311
- B || (G(l.$$.fragment, u), G(_.$$.fragment, u), G(h), G(y), G(M, u), G(g), B = !0);
1313
+ B || (F(l.$$.fragment, u), F(_.$$.fragment, u), F(h), F(y), F(R, u), F(g), B = !0);
1312
1314
  },
1313
1315
  o(u) {
1314
- Z(l.$$.fragment, u), Z(_.$$.fragment, u), Z(h), Z(y), Z(M, u), Z(g), B = !1;
1316
+ O(l.$$.fragment, u), O(_.$$.fragment, u), O(h), O(y), O(R, u), O(g), B = !1;
1315
1317
  },
1316
1318
  d(u) {
1317
- u && S(e), $(l), t[52](null), $(_), h && h.d(), y && y.d(), M && M.d(u), ~p && w[p].d(), O = !1, ee(F);
1319
+ u && S(e), $(l), t[53](null), $(_), h && h.d(), y && y.d(), R && R.d(u), ~p && w[p].d(), G = !1, ee(Z);
1318
1320
  }
1319
1321
  };
1320
1322
  }
1321
- function En(t, e, n) {
1323
+ function Cn(t, e, n) {
1322
1324
  const r = e[1], l = e[0], a = r - l;
1323
1325
  return t === r && n ? t : ((t - l) % a + a) % a + l;
1324
1326
  }
1325
- function ot(t) {
1327
+ function ct(t) {
1326
1328
  let e = [...t];
1327
1329
  return e[2] < e[0] && (e[2] += 360), e;
1328
1330
  }
1329
- function Cn(t, e, n) {
1330
- let r, { $$slots: l = {}, $$scope: a } = e, { class: s = void 0 } = e, { apiKey: c } = e, { bbox: d = void 0 } = e, { clearButtonTitle: f = "clear" } = e, { clearOnBlur: _ = !1 } = e, { collapsed: k = !1 } = e, { country: b = void 0 } = e, { debounceSearch: L = 200 } = e, { enableReverse: z = !1 } = e, { errorMessage: p = "Something went wrong…" } = e, { filter: g = () => !0 } = e, { flyTo: W = !0 } = e, { fuzzyMatch: B = !0 } = e, { language: O = void 0 } = e, { limit: F = void 0 } = e, { mapController: h = void 0 } = e, { minLength: y = 2 } = e, { noResultsMessage: T = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = e, { placeholder: M = "Search" } = e, { proximity: m = void 0 } = e, { reverseActive: w = z === "always" } = e, { reverseButtonTitle: H = "toggle reverse geocoding" } = e, { searchValue: u = "" } = e, { showFullGeometry: A = !0 } = e, { showPlaceType: Y = "ifNeeded" } = e, { showResultsWhileTyping: ce = !0 } = e, { trackProximity: Le = !0 } = e, { types: fe = void 0 } = e, { zoom: Ee = 16 } = e, { maxZoom: pe = 18 } = e, { apiUrl: Ie = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: We = {} } = e;
1331
- function yt() {
1331
+ function zn(t, e, n) {
1332
+ let r, { $$slots: l = {}, $$scope: a } = e, { class: s = void 0 } = e, { apiKey: c } = e, { bbox: d = void 0 } = e, { clearButtonTitle: f = "clear" } = e, { clearOnBlur: _ = !1 } = e, { collapsed: k = !1 } = e, { country: b = void 0 } = e, { debounceSearch: E = 200 } = e, { enableReverse: z = !1 } = e, { errorMessage: p = "Something went wrong…" } = e, { filter: g = () => !0 } = e, { flyTo: W = !0 } = e, { fuzzyMatch: B = !0 } = e, { language: G = void 0 } = e, { limit: Z = void 0 } = e, { mapController: h = void 0 } = e, { minLength: y = 2 } = e, { noResultsMessage: M = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = e, { placeholder: R = "Search" } = e, { proximity: m = void 0 } = e, { reverseActive: w = z === "always" } = e, { reverseButtonTitle: H = "toggle reverse geocoding" } = e, { searchValue: u = "" } = e, { showFullGeometry: I = !0 } = e, { showPlaceType: Y = "ifNeeded" } = e, { showResultsWhileTyping: ce = !0 } = e, { trackProximity: Le = !0 } = e, { types: fe = void 0 } = e, { zoom: Ee = 16 } = e, { maxZoom: pe = 18 } = e, { apiUrl: Ae = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: We = {} } = e;
1333
+ function bt() {
1332
1334
  Q.focus();
1333
1335
  }
1334
- function bt() {
1336
+ function wt() {
1335
1337
  Q.blur();
1336
1338
  }
1337
- function Ve(i, j = !0) {
1338
- n(1, u = i), j ? (n(13, N = -1), Qe()) : (je(), setTimeout(() => {
1339
+ function He(i, j = !0) {
1340
+ n(1, u = i), j ? (n(13, N = -1), Je()) : (Fe(), setTimeout(() => {
1339
1341
  Q.focus(), Q.select();
1340
1342
  }));
1341
1343
  }
1342
- let ge = !1, R, U, E, He = "", Q, N = -1, J, Ce = [], ue, ye, ze;
1343
- const te = Jt();
1344
- Qt(() => {
1344
+ let ge = !1, L, U, T, Qe = "", Q, N = -1, J, Ce = [], ue, ye, ze, Ne;
1345
+ const te = Xt();
1346
+ Jt(() => {
1345
1347
  h && (h.setEventHandler(void 0), h.indicateReverse(!1), h.setSelectedMarker(-1), h.setMarkers(void 0, void 0));
1346
1348
  });
1347
- function Qe(i) {
1348
- if (ye && (clearTimeout(ye), ye = void 0), N > -1 && R)
1349
- n(47, E = R[N]), n(1, u = E.place_name.replace(/,.*/, "")), n(16, J = void 0), n(46, U = void 0), n(13, N = -1);
1349
+ function Je(i) {
1350
+ if (ye && (clearTimeout(ye), ye = void 0), N > -1 && L)
1351
+ n(47, T = L[N]), n(1, u = T.place_name.replace(/,.*/, "")), n(16, J = void 0), n(46, U = void 0), n(13, N = -1);
1350
1352
  else if (u) {
1351
- const j = i || !Je();
1352
- Ne(u, { exact: !0 }).then(() => {
1353
- n(46, U = R), n(47, E = void 0), j && wt();
1353
+ const j = i || !Xe();
1354
+ je(u, { exact: !0 }).then(() => {
1355
+ n(46, U = L), n(47, T = void 0), j && kt();
1354
1356
  }).catch((X) => n(16, J = X));
1355
1357
  }
1356
1358
  }
1357
- function Je() {
1359
+ function Xe() {
1358
1360
  return /^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(u);
1359
1361
  }
1360
- async function Ne(i, { byId: j = !1, exact: X = !1 } = {}) {
1362
+ async function je(i, { byId: j = !1, exact: X = !1 } = {}) {
1361
1363
  n(16, J = void 0);
1362
- const be = Je(), K = new URLSearchParams();
1363
- O != null && K.set("language", Array.isArray(O) ? O.join(",") : O), fe && K.set("types", fe.join(",")), be || (d && K.set("bbox", d.map((ne) => ne.toFixed(6)).join(",")), b && K.set("country", Array.isArray(b) ? b.join(",") : b)), j || (m && K.set("proximity", m.map((ne) => ne.toFixed(6)).join(",")), (X || !ce) && K.set("autocomplete", "false"), K.set("fuzzyMatch", String(B))), F !== void 0 && (!be || (fe == null ? void 0 : fe.length) === 1) && K.set("limit", String(F)), K.set("key", c);
1364
- const ae = Ie + "/" + encodeURIComponent(i) + ".json?" + K.toString();
1365
- if (ae === He) {
1366
- j ? (n(12, R = void 0), n(47, E = Ce[0])) : n(12, R = Ce);
1364
+ const be = Xe(), K = new URLSearchParams();
1365
+ G != null && K.set("language", Array.isArray(G) ? G.join(",") : G), fe && K.set("types", fe.join(",")), be || (d && K.set("bbox", d.map((ne) => ne.toFixed(6)).join(",")), b && K.set("country", Array.isArray(b) ? b.join(",") : b)), j || (m && K.set("proximity", m.map((ne) => ne.toFixed(6)).join(",")), (X || !ce) && K.set("autocomplete", "false"), K.set("fuzzyMatch", String(B))), Z !== void 0 && (!be || (fe == null ? void 0 : fe.length) === 1) && K.set("limit", String(Z)), K.set("key", c);
1366
+ const ae = Ae + "/" + encodeURIComponent(i) + ".json?" + K.toString();
1367
+ if (ae === Qe) {
1368
+ j ? (n(12, L = void 0), n(47, T = Ce[0])) : n(12, L = Ce);
1367
1369
  return;
1368
1370
  }
1369
- He = ae, ue == null || ue.abort();
1371
+ Qe = ae, ue == null || ue.abort();
1370
1372
  const q = new AbortController();
1371
1373
  n(17, ue = q);
1372
1374
  let Oe;
@@ -1382,58 +1384,58 @@ function Cn(t, e, n) {
1382
1384
  if (!Oe.ok)
1383
1385
  throw new Error();
1384
1386
  const Ze = await Oe.json();
1385
- te("response", { url: ae, featureCollection: Ze }), j ? (n(12, R = void 0), n(47, E = Ze.features[0]), Ce = [E]) : (n(12, R = Ze.features.filter(g)), Ce = R, be && Q.focus());
1387
+ te("response", { url: ae, featureCollection: Ze }), j ? (n(12, L = void 0), n(47, T = Ze.features[0]), Ce = [T]) : (n(12, L = Ze.features.filter(g)), Ce = L, be && Q.focus());
1386
1388
  }
1387
- function wt() {
1389
+ function kt() {
1388
1390
  var X, be, K, ae;
1389
1391
  if (!(U != null && U.length) || !W)
1390
1392
  return;
1391
1393
  const i = [180, 90, -180, -90], j = !U.some((q) => !q.matching_text);
1392
1394
  for (const q of U)
1393
1395
  (j || !q.matching_text) && (i[0] = Math.min(i[0], ((X = q.bbox) == null ? void 0 : X[0]) ?? q.center[0]), i[1] = Math.min(i[1], ((be = q.bbox) == null ? void 0 : be[1]) ?? q.center[1]), i[2] = Math.max(i[2], ((K = q.bbox) == null ? void 0 : K[2]) ?? q.center[0]), i[3] = Math.max(i[3], ((ae = q.bbox) == null ? void 0 : ae[3]) ?? q.center[1]));
1394
- h && U.length > 0 && (E && i[0] === i[2] && i[1] === i[3] ? h.flyTo(E.center, Ee) : h.fitBounds(ot(i), 50, pe));
1395
- }
1396
- function kt(i) {
1397
- n(0, w = z === "always"), Ve(En(i[0], [-180, 180], !0).toFixed(6) + "," + i[1].toFixed(6));
1396
+ h && U.length > 0 && (T && i[0] === i[2] && i[1] === i[3] ? h.flyTo(T.center, Ee) : h.fitBounds(ct(i), 50, pe));
1398
1397
  }
1399
1398
  function vt(i) {
1400
- if (!R)
1399
+ n(0, w = z === "always"), He(Cn(i[0], [-180, 180], !0).toFixed(6) + "," + i[1].toFixed(6));
1400
+ }
1401
+ function pt(i) {
1402
+ if (!L)
1401
1403
  return;
1402
1404
  let j = i.key === "ArrowDown" ? 1 : i.key === "ArrowUp" ? -1 : 0;
1403
- j ? (N === -1 && j === -1 && n(13, N = R.length), n(13, N += j), N >= R.length && n(13, N = -1), i.preventDefault()) : ["ArrowLeft", "ArrowRight", "Home", "End"].includes(i.key) && n(13, N = -1);
1405
+ j ? (N === -1 && j === -1 && n(13, N = L.length), n(13, N += j), N >= L.length && n(13, N = -1), i.preventDefault()) : ["ArrowLeft", "ArrowRight", "Home", "End"].includes(i.key) && n(13, N = -1);
1404
1406
  }
1405
- function je(i = !0) {
1407
+ function Fe(i = !0) {
1406
1408
  if (n(16, J = void 0), ce) {
1407
1409
  if (ye && clearTimeout(ye), u.length < y)
1408
1410
  return;
1409
1411
  const j = u;
1410
1412
  ye = window.setTimeout(
1411
1413
  () => {
1412
- Ne(j).catch((X) => n(16, J = X));
1414
+ je(j).catch((X) => n(16, J = X));
1413
1415
  },
1414
- i ? L : 0
1416
+ i ? E : 0
1415
1417
  );
1416
1418
  } else
1417
- n(12, R = void 0), n(16, J = void 0);
1419
+ n(12, L = void 0), n(16, J = void 0);
1418
1420
  }
1419
1421
  function Ge(i) {
1420
- n(47, E = i), n(1, u = i.place_name), n(13, N = -1);
1422
+ n(47, T = i), n(1, u = i.place_name), n(13, N = -1);
1421
1423
  }
1422
- const pt = () => Q.focus();
1423
- function Tt(i) {
1424
- qe[i ? "unshift" : "push"](() => {
1424
+ const Tt = () => Q.focus();
1425
+ function Mt(i) {
1426
+ De[i ? "unshift" : "push"](() => {
1425
1427
  Q = i, n(15, Q);
1426
1428
  });
1427
1429
  }
1428
- function Mt() {
1430
+ function Rt() {
1429
1431
  u = this.value, n(1, u), n(11, ge), n(25, _);
1430
1432
  }
1431
- const Rt = () => n(11, ge = !0), Lt = () => n(11, ge = !1), Et = () => je(), Ct = () => {
1433
+ const Lt = () => n(11, ge = !0), Et = () => n(11, ge = !1), Ct = () => Fe(), zt = () => {
1432
1434
  n(1, u = ""), Q.focus();
1433
- }, zt = () => n(0, w = !w), Bt = () => n(16, J = void 0), Pt = (i) => n(13, N = i), St = (i) => Ge(i), At = () => n(13, N = -1), It = () => {
1435
+ }, Bt = () => n(0, w = !w), Pt = () => n(16, J = void 0), St = (i) => n(13, N = i), It = (i) => Ge(i), At = () => n(13, N = -1), Wt = () => {
1434
1436
  };
1435
1437
  return t.$$set = (i) => {
1436
- "class" in i && n(2, s = i.class), "apiKey" in i && n(23, c = i.apiKey), "bbox" in i && n(24, d = i.bbox), "clearButtonTitle" in i && n(3, f = i.clearButtonTitle), "clearOnBlur" in i && n(25, _ = i.clearOnBlur), "collapsed" in i && n(4, k = i.collapsed), "country" in i && n(26, b = i.country), "debounceSearch" in i && n(27, L = i.debounceSearch), "enableReverse" in i && n(5, z = i.enableReverse), "errorMessage" in i && n(6, p = i.errorMessage), "filter" in i && n(28, g = i.filter), "flyTo" in i && n(29, W = i.flyTo), "fuzzyMatch" in i && n(30, B = i.fuzzyMatch), "language" in i && n(31, O = i.language), "limit" in i && n(32, F = i.limit), "mapController" in i && n(33, h = i.mapController), "minLength" in i && n(34, y = i.minLength), "noResultsMessage" in i && n(7, T = i.noResultsMessage), "placeholder" in i && n(8, M = i.placeholder), "proximity" in i && n(22, m = i.proximity), "reverseActive" in i && n(0, w = i.reverseActive), "reverseButtonTitle" in i && n(9, H = i.reverseButtonTitle), "searchValue" in i && n(1, u = i.searchValue), "showFullGeometry" in i && n(35, A = i.showFullGeometry), "showPlaceType" in i && n(10, Y = i.showPlaceType), "showResultsWhileTyping" in i && n(36, ce = i.showResultsWhileTyping), "trackProximity" in i && n(37, Le = i.trackProximity), "types" in i && n(38, fe = i.types), "zoom" in i && n(39, Ee = i.zoom), "maxZoom" in i && n(40, pe = i.maxZoom), "apiUrl" in i && n(41, Ie = i.apiUrl), "fetchParameters" in i && n(42, We = i.fetchParameters), "$$scope" in i && n(49, a = i.$$scope);
1438
+ "class" in i && n(2, s = i.class), "apiKey" in i && n(23, c = i.apiKey), "bbox" in i && n(24, d = i.bbox), "clearButtonTitle" in i && n(3, f = i.clearButtonTitle), "clearOnBlur" in i && n(25, _ = i.clearOnBlur), "collapsed" in i && n(4, k = i.collapsed), "country" in i && n(26, b = i.country), "debounceSearch" in i && n(27, E = i.debounceSearch), "enableReverse" in i && n(5, z = i.enableReverse), "errorMessage" in i && n(6, p = i.errorMessage), "filter" in i && n(28, g = i.filter), "flyTo" in i && n(29, W = i.flyTo), "fuzzyMatch" in i && n(30, B = i.fuzzyMatch), "language" in i && n(31, G = i.language), "limit" in i && n(32, Z = i.limit), "mapController" in i && n(33, h = i.mapController), "minLength" in i && n(34, y = i.minLength), "noResultsMessage" in i && n(7, M = i.noResultsMessage), "placeholder" in i && n(8, R = i.placeholder), "proximity" in i && n(22, m = i.proximity), "reverseActive" in i && n(0, w = i.reverseActive), "reverseButtonTitle" in i && n(9, H = i.reverseButtonTitle), "searchValue" in i && n(1, u = i.searchValue), "showFullGeometry" in i && n(35, I = i.showFullGeometry), "showPlaceType" in i && n(10, Y = i.showPlaceType), "showResultsWhileTyping" in i && n(36, ce = i.showResultsWhileTyping), "trackProximity" in i && n(37, Le = i.trackProximity), "types" in i && n(38, fe = i.types), "zoom" in i && n(39, Ee = i.zoom), "maxZoom" in i && n(40, pe = i.maxZoom), "apiUrl" in i && n(41, Ae = i.apiUrl), "fetchParameters" in i && n(42, We = i.fetchParameters), "$$scope" in i && n(50, a = i.$$scope);
1437
1439
  }, t.$$.update = () => {
1438
1440
  if (t.$$.dirty[1] & /*trackProximity*/
1439
1441
  64 && (Le || n(22, m = void 0)), t.$$.dirty[0] & /*focused, clearOnBlur*/
@@ -1441,31 +1443,31 @@ function Cn(t, e, n) {
1441
1443
  n(14, ze = ge), _ && !ge && n(1, u = "");
1442
1444
  }), t.$$.dirty[0] & /*searchValue, listFeatures*/
1443
1445
  4098 | t.$$.dirty[1] & /*minLength*/
1444
- 8 && u.length < y && (n(47, E = void 0), n(12, R = void 0), n(16, J = void 0), n(46, U = R)), t.$$.dirty[1] & /*showFullGeometry, picked*/
1445
- 65552 && A && E && !E.address && E.geometry.type === "Point" && Ne(E.id, { byId: !0 }).catch((i) => n(16, J = i)), t.$$.dirty[0] & /*flyTo*/
1446
- 536870912 | t.$$.dirty[1] & /*mapController, picked, maxZoom, zoom*/
1447
- 66308 && h && E && W && (!E.bbox || E.bbox[0] === E.bbox[2] && E.bbox[1] === E.bbox[3] ? h.flyTo(E.center, E.id.startsWith("poi.") || E.id.startsWith("address.") ? pe : Ee) : h.fitBounds(ot(E.bbox), 50, pe), n(12, R = void 0), n(46, U = void 0), n(13, N = -1)), t.$$.dirty[0] & /*listFeatures*/
1446
+ 8 && u.length < y && (n(47, T = void 0), n(12, L = void 0), n(16, J = void 0), n(46, U = L)), t.$$.dirty[1] & /*showFullGeometry, picked*/
1447
+ 65552 && I && T && !T.address && T.geometry.type === "Point" && je(T.id, { byId: !0 }).catch((i) => n(16, J = i)), t.$$.dirty[0] & /*flyTo*/
1448
+ 536870912 | t.$$.dirty[1] & /*mapController, picked, prevIdToFly, maxZoom, zoom*/
1449
+ 197380 && (h && T && T.id !== Ne && W && (!T.bbox || T.bbox[0] === T.bbox[2] && T.bbox[1] === T.bbox[3] ? h.flyTo(T.center, T.id.startsWith("poi.") || T.id.startsWith("address.") ? pe : Ee) : h.fitBounds(ct(T.bbox), 50, pe), n(12, L = void 0), n(46, U = void 0), n(13, N = -1)), n(48, Ne = T == null ? void 0 : T.id)), t.$$.dirty[0] & /*listFeatures*/
1448
1450
  4096 | t.$$.dirty[1] & /*markedFeatures*/
1449
- 32768 && U !== R && n(46, U = void 0), t.$$.dirty[1] & /*mapController, markedFeatures, picked*/
1450
- 98308 && h && h.setMarkers(U, E), t.$$.dirty[0] & /*searchValue*/
1451
+ 32768 && U !== L && n(46, U = void 0), t.$$.dirty[1] & /*mapController, markedFeatures, picked*/
1452
+ 98308 && h && h.setMarkers(U, T), t.$$.dirty[0] & /*searchValue*/
1451
1453
  2 && n(13, N = -1), t.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
1452
1454
  20481 | t.$$.dirty[1] & /*mapController, trackProximity*/
1453
1455
  68 && h && h.setEventHandler((i) => {
1454
1456
  switch (i.type) {
1455
1457
  case "mapClick":
1456
- w && kt(i.coordinates);
1458
+ w && vt(i.coordinates);
1457
1459
  break;
1458
1460
  case "proximityChange":
1459
1461
  n(22, m = Le ? i.proximity : void 0);
1460
1462
  break;
1461
1463
  case "markerClick":
1462
1464
  {
1463
- const j = R == null ? void 0 : R.find((X) => X.id === i.id);
1465
+ const j = L == null ? void 0 : L.find((X) => X.id === i.id);
1464
1466
  j && Ge(j);
1465
1467
  }
1466
1468
  break;
1467
1469
  case "markerMouseEnter":
1468
- n(13, N = ze ? (R == null ? void 0 : R.findIndex((j) => j.id === i.id)) ?? -1 : -1);
1470
+ n(13, N = ze ? (L == null ? void 0 : L.findIndex((j) => j.id === i.id)) ?? -1 : -1);
1469
1471
  break;
1470
1472
  case "markerMouseLeave":
1471
1473
  n(13, N = -1);
@@ -1474,17 +1476,17 @@ function Cn(t, e, n) {
1474
1476
  }), t.$$.dirty[0] & /*selectedItemIndex*/
1475
1477
  8192 | t.$$.dirty[1] & /*mapController*/
1476
1478
  4 && (h == null || h.setSelectedMarker(N)), t.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
1477
- 12288 && n(48, r = R == null ? void 0 : R[N]), t.$$.dirty[0] & /*searchValue*/
1479
+ 12288 && n(49, r = L == null ? void 0 : L[N]), t.$$.dirty[0] & /*searchValue*/
1478
1480
  2 | t.$$.dirty[1] & /*mapController*/
1479
1481
  4) {
1480
1482
  const i = /^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(u);
1481
1483
  h == null || h.setReverseMarker(i ? [Number(i[1]), Number(i[2])] : void 0);
1482
1484
  }
1483
1485
  t.$$.dirty[1] & /*selected*/
1484
- 131072 && te("select", r), t.$$.dirty[1] & /*picked*/
1485
- 65536 && te("pick", E), t.$$.dirty[0] & /*focusedDelayed, listFeatures*/
1486
- 20480 && te("optionsVisibilityChange", ze && !!R), t.$$.dirty[0] & /*listFeatures*/
1487
- 4096 && te("featuresListed", R), t.$$.dirty[1] & /*markedFeatures*/
1486
+ 262144 && te("select", r), t.$$.dirty[1] & /*picked*/
1487
+ 65536 && te("pick", T), t.$$.dirty[0] & /*focusedDelayed, listFeatures*/
1488
+ 20480 && te("optionsVisibilityChange", ze && !!L), t.$$.dirty[0] & /*listFeatures*/
1489
+ 4096 && te("featuresListed", L), t.$$.dirty[1] & /*markedFeatures*/
1488
1490
  32768 && te("featuresMarked", U), t.$$.dirty[0] & /*reverseActive*/
1489
1491
  1 && te("reverseToggle", w), t.$$.dirty[0] & /*searchValue*/
1490
1492
  2 && te("queryChange", u), t.$$.dirty[0] & /*reverseActive*/
@@ -1498,51 +1500,51 @@ function Cn(t, e, n) {
1498
1500
  k,
1499
1501
  z,
1500
1502
  p,
1501
- T,
1502
1503
  M,
1504
+ R,
1503
1505
  H,
1504
1506
  Y,
1505
1507
  ge,
1506
- R,
1508
+ L,
1507
1509
  N,
1508
1510
  ze,
1509
1511
  Q,
1510
1512
  J,
1511
1513
  ue,
1512
- Qe,
1513
- vt,
1514
- je,
1514
+ Je,
1515
+ pt,
1516
+ Fe,
1515
1517
  Ge,
1516
1518
  m,
1517
1519
  c,
1518
1520
  d,
1519
1521
  _,
1520
1522
  b,
1521
- L,
1523
+ E,
1522
1524
  g,
1523
1525
  W,
1524
1526
  B,
1525
- O,
1526
- F,
1527
+ G,
1528
+ Z,
1527
1529
  h,
1528
1530
  y,
1529
- A,
1531
+ I,
1530
1532
  ce,
1531
1533
  Le,
1532
1534
  fe,
1533
1535
  Ee,
1534
1536
  pe,
1535
- Ie,
1537
+ Ae,
1536
1538
  We,
1537
- yt,
1538
1539
  bt,
1539
- Ve,
1540
+ wt,
1541
+ He,
1540
1542
  U,
1541
- E,
1543
+ T,
1544
+ Ne,
1542
1545
  r,
1543
1546
  a,
1544
1547
  l,
1545
- pt,
1546
1548
  Tt,
1547
1549
  Mt,
1548
1550
  Rt,
@@ -1553,17 +1555,18 @@ function Cn(t, e, n) {
1553
1555
  Bt,
1554
1556
  Pt,
1555
1557
  St,
1558
+ It,
1556
1559
  At,
1557
- It
1560
+ Wt
1558
1561
  ];
1559
1562
  }
1560
- class zn extends me {
1563
+ class Bn extends me {
1561
1564
  constructor(e) {
1562
1565
  super(), _e(
1563
1566
  this,
1564
1567
  e,
1565
- Cn,
1566
- Ln,
1568
+ zn,
1569
+ En,
1567
1570
  he,
1568
1571
  {
1569
1572
  class: 2,
@@ -1616,7 +1619,7 @@ class zn extends me {
1616
1619
  return this.$$.ctx[45];
1617
1620
  }
1618
1621
  }
1619
- const ct = [
1622
+ const ft = [
1620
1623
  "featuresListed",
1621
1624
  "featuresMarked",
1622
1625
  "optionsVisibilityChange",
@@ -1625,7 +1628,7 @@ const ct = [
1625
1628
  "response",
1626
1629
  "reverseToggle",
1627
1630
  "select"
1628
- ], Bn = [
1631
+ ], Pn = [
1629
1632
  "apiKey",
1630
1633
  "bbox",
1631
1634
  "clearButtonTitle",
@@ -1652,29 +1655,29 @@ const ct = [
1652
1655
  "zoom",
1653
1656
  "mapController"
1654
1657
  ];
1655
- function ft(t) {
1658
+ function ut(t) {
1656
1659
  return "on" + t[0].toUpperCase() + t.slice(1);
1657
1660
  }
1658
- const Sn = Wt(function(e, n) {
1659
- const r = Xe(), l = Xe(), a = { ...e };
1660
- for (const s of ct)
1661
- delete a[ft(s)];
1662
- Fe(() => {
1661
+ const In = Nt(function(e, n) {
1662
+ const r = Ye(), l = Ye(), a = { ...e };
1663
+ for (const s of ft)
1664
+ delete a[ut(s)];
1665
+ Ue(() => {
1663
1666
  if (!r.current)
1664
1667
  throw new Error();
1665
- const s = new zn({
1668
+ const s = new Bn({
1666
1669
  target: r.current,
1667
1670
  props: a
1668
1671
  });
1669
1672
  return l.current = s, () => s.$destroy();
1670
1673
  }, []);
1671
- for (const s of Bn)
1672
- Fe(() => {
1674
+ for (const s of Pn)
1675
+ Ue(() => {
1673
1676
  l.current && e[s] !== void 0 && l.current.$set({ [s]: e[s] });
1674
1677
  }, [e[s]]);
1675
- for (const s of ct) {
1676
- const c = e[ft(s)];
1677
- Fe(() => {
1678
+ for (const s of ft) {
1679
+ const c = e[ut(s)];
1680
+ Ue(() => {
1678
1681
  var d;
1679
1682
  (d = l.current) == null || d.$on(
1680
1683
  s,
@@ -1684,7 +1687,7 @@ const Sn = Wt(function(e, n) {
1684
1687
  );
1685
1688
  }, [c]);
1686
1689
  }
1687
- return Nt(n, () => ({
1690
+ return jt(n, () => ({
1688
1691
  setQuery: (s, c = !0) => {
1689
1692
  var d;
1690
1693
  return (d = l.current) == null ? void 0 : d.setQuery(s, c);
@@ -1697,9 +1700,9 @@ const Sn = Wt(function(e, n) {
1697
1700
  var s;
1698
1701
  return (s = l.current) == null ? void 0 : s.blur();
1699
1702
  }
1700
- })), jt("div", { ref: r });
1703
+ })), Ft("div", { ref: r });
1701
1704
  });
1702
1705
  export {
1703
- Sn as GeocodingControl
1706
+ In as GeocodingControl
1704
1707
  };
1705
1708
  //# sourceMappingURL=react.js.map