@maptiler/geocoding-control 0.0.91-git.4d23c0 → 0.0.91-git.896be4

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,21 +1,21 @@
1
- import { forwardRef as It, useRef as Je, useEffect as Ze, useImperativeHandle as Wt, createElement as Nt } from "react";
1
+ import { forwardRef as Wt, useRef as Xe, useEffect as Fe, useImperativeHandle as Nt, createElement as jt } from "react";
2
2
  function P() {
3
3
  }
4
- function jt(t, e) {
4
+ function Gt(t, e) {
5
5
  for (const n in e)
6
6
  t[n] = e[n];
7
7
  return t;
8
8
  }
9
- function ft(t) {
9
+ function ut(t) {
10
10
  return t();
11
11
  }
12
- function Xe() {
12
+ function Ye() {
13
13
  return /* @__PURE__ */ Object.create(null);
14
14
  }
15
15
  function ee(t) {
16
- t.forEach(ft);
16
+ t.forEach(ut);
17
17
  }
18
- function ut(t) {
18
+ function at(t) {
19
19
  return typeof t == "function";
20
20
  }
21
21
  function he(t, e) {
@@ -25,19 +25,19 @@ let Be;
25
25
  function le(t, e) {
26
26
  return Be || (Be = document.createElement("a")), Be.href = e, t === Be.href;
27
27
  }
28
- function Gt(t) {
28
+ function Ot(t) {
29
29
  return Object.keys(t).length === 0;
30
30
  }
31
- function Ot(t, e, n, r) {
31
+ function Zt(t, e, n, r) {
32
32
  if (t) {
33
- const l = at(t, e, n, r);
33
+ const l = dt(t, e, n, r);
34
34
  return t[0](l);
35
35
  }
36
36
  }
37
- function at(t, e, n, r) {
38
- return t[1] && r ? jt(n.ctx.slice(), t[1](r(e))) : n.ctx;
37
+ function dt(t, e, n, r) {
38
+ return t[1] && r ? Gt(n.ctx.slice(), t[1](r(e))) : n.ctx;
39
39
  }
40
- function Zt(t, e, n, r) {
40
+ function Ft(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,9 +52,9 @@ function Zt(t, e, n, r) {
52
52
  }
53
53
  return e.dirty;
54
54
  }
55
- function Ft(t, e, n, r, l, a) {
55
+ function Ut(t, e, n, r, l, a) {
56
56
  if (l) {
57
- const s = at(e, n, r, a);
57
+ const s = dt(e, n, r, a);
58
58
  t.p(s, l);
59
59
  }
60
60
  }
@@ -67,7 +67,7 @@ function qt(t) {
67
67
  }
68
68
  return -1;
69
69
  }
70
- function Ye(t) {
70
+ function xe(t) {
71
71
  return t ?? "";
72
72
  }
73
73
  function v(t, e) {
@@ -88,13 +88,13 @@ function ie(t) {
88
88
  function se(t) {
89
89
  return document.createTextNode(t);
90
90
  }
91
- function H() {
91
+ function V() {
92
92
  return se(" ");
93
93
  }
94
94
  function Dt() {
95
95
  return se("");
96
96
  }
97
- function K(t, e, n, r) {
97
+ function D(t, e, n, r) {
98
98
  return t.addEventListener(e, n, r), () => t.removeEventListener(e, n, r);
99
99
  }
100
100
  function Kt(t) {
@@ -111,7 +111,7 @@ function Vt(t) {
111
111
  function Me(t, e) {
112
112
  e = "" + e, t.data !== e && (t.data = e);
113
113
  }
114
- function xe(t, e) {
114
+ function $e(t, e) {
115
115
  t.value = e ?? "";
116
116
  }
117
117
  function re(t, e, n) {
@@ -125,16 +125,16 @@ let Re;
125
125
  function Te(t) {
126
126
  Re = t;
127
127
  }
128
- function dt() {
128
+ function ht() {
129
129
  if (!Re)
130
130
  throw new Error("Function called outside component initialization");
131
131
  return Re;
132
132
  }
133
133
  function Qt(t) {
134
- dt().$$.on_destroy.push(t);
134
+ ht().$$.on_destroy.push(t);
135
135
  }
136
- function Ut() {
137
- const t = dt();
136
+ function Jt() {
137
+ const t = ht();
138
138
  return (e, n, { cancelable: r = !1 } = {}) => {
139
139
  const l = t.$$.callbacks[e];
140
140
  if (l) {
@@ -146,23 +146,23 @@ function Ut() {
146
146
  return !0;
147
147
  };
148
148
  }
149
- function $e(t, e) {
149
+ function et(t, e) {
150
150
  const n = t.$$.callbacks[e.type];
151
151
  n && n.slice().forEach((r) => r.call(this, e));
152
152
  }
153
153
  const ke = [], qe = [];
154
154
  let ve = [];
155
- const et = [], Jt = /* @__PURE__ */ Promise.resolve();
155
+ const tt = [], Xt = /* @__PURE__ */ Promise.resolve();
156
156
  let De = !1;
157
- function Xt() {
158
- De || (De = !0, Jt.then(ht));
157
+ function Yt() {
158
+ De || (De = !0, Xt.then(_t));
159
159
  }
160
160
  function Ke(t) {
161
161
  ve.push(t);
162
162
  }
163
- const Fe = /* @__PURE__ */ new Set();
163
+ const Ue = /* @__PURE__ */ new Set();
164
164
  let we = 0;
165
- function ht() {
165
+ function _t() {
166
166
  if (we !== 0)
167
167
  return;
168
168
  const t = Re;
@@ -170,7 +170,7 @@ function ht() {
170
170
  try {
171
171
  for (; we < ke.length; ) {
172
172
  const e = ke[we];
173
- we++, Te(e), Yt(e.$$);
173
+ we++, Te(e), xt(e.$$);
174
174
  }
175
175
  } catch (e) {
176
176
  throw ke.length = 0, we = 0, e;
@@ -179,22 +179,22 @@ function ht() {
179
179
  qe.pop()();
180
180
  for (let e = 0; e < ve.length; e += 1) {
181
181
  const n = ve[e];
182
- Fe.has(n) || (Fe.add(n), n());
182
+ Ue.has(n) || (Ue.add(n), n());
183
183
  }
184
184
  ve.length = 0;
185
185
  } while (ke.length);
186
- for (; et.length; )
187
- et.pop()();
188
- De = !1, Fe.clear(), Te(t);
186
+ for (; tt.length; )
187
+ tt.pop()();
188
+ De = !1, Ue.clear(), Te(t);
189
189
  }
190
- function Yt(t) {
190
+ function xt(t) {
191
191
  if (t.fragment !== null) {
192
192
  t.update(), ee(t.before_update);
193
193
  const e = t.dirty;
194
194
  t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(Ke);
195
195
  }
196
196
  }
197
- function xt(t) {
197
+ function $t(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
  }
@@ -224,12 +224,12 @@ function Z(t, e, n, r) {
224
224
  } else
225
225
  r && r();
226
226
  }
227
- function $t(t, e) {
227
+ function en(t, e) {
228
228
  Z(t, 1, 1, () => {
229
229
  e.delete(t.key);
230
230
  });
231
231
  }
232
- function en(t, e, n, r, l, a, s, c, d, f, _, k) {
232
+ function tn(t, e, n, r, l, a, s, c, d, f, _, k) {
233
233
  let b = t.length, L = a.length, z = b;
234
234
  const p = {};
235
235
  for (; z--; )
@@ -262,16 +262,16 @@ function oe(t) {
262
262
  function x(t, e, n, r) {
263
263
  const { fragment: l, after_update: a } = t.$$;
264
264
  l && l.m(e, n), r || Ke(() => {
265
- const s = t.$$.on_mount.map(ft).filter(ut);
265
+ const s = t.$$.on_mount.map(ut).filter(at);
266
266
  t.$$.on_destroy ? t.$$.on_destroy.push(...s) : ee(s), t.$$.on_mount = [];
267
267
  }), a.forEach(Ke);
268
268
  }
269
269
  function $(t, e) {
270
270
  const n = t.$$;
271
- n.fragment !== null && (xt(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 && ($t(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 tn(t, e) {
274
- t.$$.dirty[0] === -1 && (ke.push(t), Xt(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
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;
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: Xe(),
286
+ bound: Ye(),
287
287
  // lifecycle
288
288
  on_mount: [],
289
289
  on_destroy: [],
@@ -292,7 +292,7 @@ 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: Xe(),
295
+ callbacks: Ye(),
296
296
  dirty: c,
297
297
  skip_bound: !1,
298
298
  root: e.target || d.$$.root
@@ -301,14 +301,14 @@ function _e(t, e, n, r, l, a, s, c = [-1]) {
301
301
  let _ = !1;
302
302
  if (f.ctx = n ? n(t, e.props || {}, (k, b, ...L) => {
303
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), _ && tn(t, k)), 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;
305
305
  }) : [], f.update(), _ = !0, ee(f.before_update), f.fragment = r ? r(f.ctx) : !1, e.target) {
306
306
  if (e.hydrate) {
307
307
  const k = Vt(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), ht();
311
+ e.intro && G(t.$$.fragment), x(t, e.target, e.anchor, e.customElement), _t();
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 (!ut(n))
320
+ if (!at(n))
321
321
  return P;
322
322
  const r = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
323
323
  return r.push(n), () => {
@@ -326,10 +326,10 @@ class me {
326
326
  };
327
327
  }
328
328
  $set(e) {
329
- this.$$set && !Gt(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
329
+ this.$$set && !Ot(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
330
330
  }
331
331
  }
332
- function nn(t) {
332
+ function rn(t) {
333
333
  let e, n;
334
334
  return {
335
335
  c() {
@@ -346,12 +346,12 @@ function nn(t) {
346
346
  }
347
347
  };
348
348
  }
349
- class _t extends me {
349
+ class mt extends me {
350
350
  constructor(e) {
351
- super(), _e(this, e, null, nn, he, {});
351
+ super(), _e(this, e, null, rn, he, {});
352
352
  }
353
353
  }
354
- function rn(t) {
354
+ function ln(t) {
355
355
  let e, n;
356
356
  return {
357
357
  c() {
@@ -368,12 +368,12 @@ function rn(t) {
368
368
  }
369
369
  };
370
370
  }
371
- class mt extends me {
371
+ class gt extends me {
372
372
  constructor(e) {
373
- super(), _e(this, e, null, rn, he, {});
373
+ super(), _e(this, e, null, ln, he, {});
374
374
  }
375
375
  }
376
- function ln(t) {
376
+ function sn(t) {
377
377
  let e, n;
378
378
  return {
379
379
  c() {
@@ -401,7 +401,7 @@ function ln(t) {
401
401
  }
402
402
  };
403
403
  }
404
- function sn(t) {
404
+ function on(t) {
405
405
  let e, n;
406
406
  return {
407
407
  c() {
@@ -429,7 +429,7 @@ function sn(t) {
429
429
  }
430
430
  };
431
431
  }
432
- function on(t) {
432
+ function cn(t) {
433
433
  let e, n;
434
434
  return {
435
435
  c() {
@@ -457,7 +457,7 @@ function on(t) {
457
457
  }
458
458
  };
459
459
  }
460
- function cn(t) {
460
+ function fn(t) {
461
461
  let e, n;
462
462
  return {
463
463
  c() {
@@ -485,7 +485,7 @@ function cn(t) {
485
485
  }
486
486
  };
487
487
  }
488
- function fn(t) {
488
+ function un(t) {
489
489
  let e, n;
490
490
  return {
491
491
  c() {
@@ -513,7 +513,7 @@ function fn(t) {
513
513
  }
514
514
  };
515
515
  }
516
- function un(t) {
516
+ function an(t) {
517
517
  let e, n;
518
518
  return {
519
519
  c() {
@@ -541,7 +541,7 @@ function un(t) {
541
541
  }
542
542
  };
543
543
  }
544
- function an(t) {
544
+ function dn(t) {
545
545
  let e, n, r, l;
546
546
  return {
547
547
  c() {
@@ -554,7 +554,7 @@ function an(t) {
554
554
  ), o(e, "class", "svelte-ltkwvy");
555
555
  },
556
556
  m(a, s) {
557
- I(a, e, s), r || (l = K(
557
+ I(a, e, s), r || (l = D(
558
558
  e,
559
559
  "error",
560
560
  /*error_handler*/
@@ -577,7 +577,7 @@ function an(t) {
577
577
  }
578
578
  };
579
579
  }
580
- function tt(t) {
580
+ function nt(t) {
581
581
  let e, n;
582
582
  return {
583
583
  c() {
@@ -602,7 +602,7 @@ function tt(t) {
602
602
  }
603
603
  };
604
604
  }
605
- function dn(t) {
605
+ function hn(t) {
606
606
  var T, M;
607
607
  let e, n, r, l, a, s, c, d, f = (
608
608
  /*feature*/
@@ -623,27 +623,27 @@ function dn(t) {
623
623
  t[0].place_name.replace(/[^,]*,?\s*/, "") + ""
624
624
  ), g, W, B;
625
625
  function O(m, w) {
626
- var Q, u;
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] ? an : (
631
+ m[5] ? dn : (
632
632
  /*feature*/
633
- m[0].address ? un : (
633
+ m[0].address ? an : (
634
634
  /*feature*/
635
- ((Q = m[0].properties) == null ? void 0 : Q.kind) === "road" || /*feature*/
636
- ((u = m[0].properties) == null ? void 0 : u.kind) === "road_relation" ? fn : (n == null && (n = !!/*feature*/
637
- m[0].id.startsWith("address.")), n ? cn : (r == null && (r = !!/*feature*/
638
- m[0].id.startsWith("postal_code.")), r ? on : (l == null && (l = !!/*feature*/
639
- m[0].id.startsWith("poi.")), l ? sn : ln)))
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)))
640
640
  )
641
641
  );
642
642
  }
643
- let F = O(t, -1), h = F(t), y = b && tt(t);
643
+ let F = O(t, -1), h = F(t), y = b && nt(t);
644
644
  return {
645
645
  c() {
646
- e = C("li"), h.c(), a = H(), s = C("span"), c = C("span"), d = C("span"), _ = se(f), k = H(), y && y.c(), L = H(), 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(), 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(
647
647
  e,
648
648
  "data-selected",
649
649
  /*selected*/
@@ -657,13 +657,13 @@ function dn(t) {
657
657
  },
658
658
  m(m, w) {
659
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 = [
660
- K(
660
+ D(
661
661
  e,
662
662
  "mouseenter",
663
663
  /*mouseenter_handler*/
664
664
  t[8]
665
665
  ),
666
- K(
666
+ D(
667
667
  e,
668
668
  "focus",
669
669
  /*focus_handler*/
@@ -672,7 +672,7 @@ function dn(t) {
672
672
  ], W = !0);
673
673
  },
674
674
  p(m, [w]) {
675
- var Q, u;
675
+ var H, u;
676
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*/
677
677
  1 && f !== (f = /*feature*/
678
678
  m[0].place_name.replace(/,.*/, "") + "") && Me(_, f), w & /*showPlaceType, feature, imageUrl*/
@@ -680,12 +680,12 @@ function dn(t) {
680
680
  m[2] === "always" || /*showPlaceType*/
681
681
  m[2] && !/*feature*/
682
682
  m[0].address && /*feature*/
683
- ((Q = m[0].properties) == null ? void 0 : Q.kind) !== "road" && /*feature*/
683
+ ((H = m[0].properties) == null ? void 0 : H.kind) !== "road" && /*feature*/
684
684
  ((u = m[0].properties) == null ? void 0 : u.kind) !== "road_relation" && !/*feature*/
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 = tt(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 = nt(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 dn(t) {
708
708
  }
709
709
  };
710
710
  }
711
- function hn(t, e, n) {
711
+ function _n(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,10 +716,10 @@ function hn(t, e, n) {
716
716
  r > -1 ? n(7, r--, r) : g.style.visibility = "hidden";
717
717
  }
718
718
  function b(g) {
719
- $e.call(this, t, g);
719
+ et.call(this, t, g);
720
720
  }
721
721
  function L(g) {
722
- $e.call(this, t, g);
722
+ et.call(this, t, g);
723
723
  }
724
724
  const z = (g) => k(g.currentTarget);
725
725
  return t.$$set = (g) => {
@@ -729,7 +729,7 @@ function hn(t, e, n) {
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(", ") : ((O = (B = c.properties) == null ? void 0 : B.place_type_name) == null ? void 0 : O[0]) ?? c.place_type[0]);
733
733
  }, n(7, r = ((_ == null ? void 0 : _.length) ?? 0) - 1), [
734
734
  c,
735
735
  d,
@@ -744,16 +744,16 @@ function hn(t, e, n) {
744
744
  z
745
745
  ];
746
746
  }
747
- class _n extends me {
747
+ class mn extends me {
748
748
  constructor(e) {
749
- super(), _e(this, e, hn, dn, he, {
749
+ super(), _e(this, e, _n, hn, he, {
750
750
  feature: 0,
751
751
  selected: 1,
752
752
  showPlaceType: 2
753
753
  });
754
754
  }
755
755
  }
756
- function mn(t) {
756
+ function gn(t) {
757
757
  let e;
758
758
  return {
759
759
  c() {
@@ -770,12 +770,12 @@ function mn(t) {
770
770
  }
771
771
  };
772
772
  }
773
- class gn extends me {
773
+ class yn extends me {
774
774
  constructor(e) {
775
- super(), _e(this, e, null, mn, he, {});
775
+ super(), _e(this, e, null, gn, he, {});
776
776
  }
777
777
  }
778
- function yn(t) {
778
+ function bn(t) {
779
779
  let e, n;
780
780
  return {
781
781
  c() {
@@ -792,12 +792,12 @@ function yn(t) {
792
792
  }
793
793
  };
794
794
  }
795
- class bn extends me {
795
+ class wn extends me {
796
796
  constructor(e) {
797
- super(), _e(this, e, null, yn, he, {});
797
+ super(), _e(this, e, null, bn, he, {});
798
798
  }
799
799
  }
800
- function wn(t) {
800
+ function kn(t) {
801
801
  let e, n;
802
802
  return {
803
803
  c() {
@@ -814,18 +814,18 @@ function wn(t) {
814
814
  }
815
815
  };
816
816
  }
817
- class kn extends me {
817
+ class vn extends me {
818
818
  constructor(e) {
819
- super(), _e(this, e, null, wn, he, {});
819
+ super(), _e(this, e, null, kn, he, {});
820
820
  }
821
821
  }
822
- function nt(t, e, n) {
822
+ function rt(t, e, n) {
823
823
  const r = t.slice();
824
- return r[71] = e[n], r[73] = n, r;
824
+ return r[72] = e[n], r[74] = n, r;
825
825
  }
826
- function rt(t) {
826
+ function lt(t) {
827
827
  let e, n;
828
- return e = new gn({}), {
828
+ return e = new yn({}), {
829
829
  c() {
830
830
  oe(e.$$.fragment);
831
831
  },
@@ -843,9 +843,9 @@ function rt(t) {
843
843
  }
844
844
  };
845
845
  }
846
- function lt(t) {
846
+ function it(t) {
847
847
  let e, n, r, l, a;
848
- return n = new bn({}), {
848
+ return n = new wn({}), {
849
849
  c() {
850
850
  e = C("button"), oe(n.$$.fragment), o(e, "type", "button"), o(
851
851
  e,
@@ -860,11 +860,11 @@ function lt(t) {
860
860
  );
861
861
  },
862
862
  m(s, c) {
863
- I(s, e, c), x(n, e, null), r = !0, l || (a = K(
863
+ I(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[57]
867
+ t[58]
868
868
  ), l = !0);
869
869
  },
870
870
  p(s, c) {
@@ -893,18 +893,18 @@ function lt(t) {
893
893
  }
894
894
  };
895
895
  }
896
- function vn(t) {
896
+ function pn(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[71].id
903
+ f[72].id
904
904
  );
905
905
  for (let f = 0; f < c.length; f += 1) {
906
- let _ = nt(t, c, f), k = d(_);
907
- r.set(k, n[f] = it(k, _));
906
+ let _ = rt(t, c, f), k = d(_);
907
+ r.set(k, n[f] = st(k, _));
908
908
  }
909
909
  return {
910
910
  c() {
@@ -918,24 +918,24 @@ function vn(t) {
918
918
  for (let k = 0; k < n.length; k += 1)
919
919
  n[k] && n[k].m(e, null);
920
920
  l = !0, a || (s = [
921
- K(
921
+ D(
922
922
  e,
923
923
  "mouseleave",
924
924
  /*mouseleave_handler*/
925
- t[61]
925
+ t[62]
926
926
  ),
927
- K(
927
+ D(
928
928
  e,
929
929
  "blur",
930
930
  /*blur_handler_1*/
931
- t[62]
931
+ t[63]
932
932
  )
933
933
  ], a = !0);
934
934
  },
935
935
  p(f, _) {
936
936
  _[0] & /*listFeatures, showPlaceType, selectedItemIndex, pick*/
937
937
  2110464 && (c = /*listFeatures*/
938
- f[12], Se(), n = en(n, _, d, 1, f, c, r, e, $t, it, null, nt), Ae());
938
+ f[12], Se(), n = tn(n, _, d, 1, f, c, r, e, en, st, null, rt), Ae());
939
939
  },
940
940
  i(f) {
941
941
  if (!l) {
@@ -957,11 +957,11 @@ function vn(t) {
957
957
  }
958
958
  };
959
959
  }
960
- function pn(t) {
960
+ function Tn(t) {
961
961
  let e, n, r, l, a, s;
962
- return n = new mt({}), {
962
+ return n = new gt({}), {
963
963
  c() {
964
- e = C("div"), oe(n.$$.fragment), r = H(), l = C("div"), a = se(
964
+ e = C("div"), oe(n.$$.fragment), r = V(), l = C("div"), a = se(
965
965
  /*noResultsMessage*/
966
966
  t[7]
967
967
  ), o(l, "class", "svelte-1r7dvt7"), o(e, "class", "no-results svelte-1r7dvt7");
@@ -988,7 +988,7 @@ function pn(t) {
988
988
  }
989
989
  };
990
990
  }
991
- function Tn(t) {
991
+ function Mn(t) {
992
992
  let e = "", n;
993
993
  return {
994
994
  c() {
@@ -1005,21 +1005,21 @@ function Tn(t) {
1005
1005
  }
1006
1006
  };
1007
1007
  }
1008
- function Mn(t) {
1008
+ function Rn(t) {
1009
1009
  let e, n, r, l, a, s, c, d, f, _, k;
1010
- return n = new mt({}), d = new _t({}), {
1010
+ return n = new gt({}), d = new mt({}), {
1011
1011
  c() {
1012
- e = C("div"), oe(n.$$.fragment), r = H(), l = C("div"), a = se(
1012
+ e = C("div"), oe(n.$$.fragment), r = V(), l = C("div"), a = se(
1013
1013
  /*errorMessage*/
1014
1014
  t[6]
1015
- ), s = H(), c = C("button"), oe(d.$$.fragment), o(l, "class", "svelte-1r7dvt7"), o(c, "class", "svelte-1r7dvt7"), o(e, "class", "error svelte-1r7dvt7");
1015
+ ), 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
1016
  },
1017
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 = K(
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
1019
  c,
1020
1020
  "click",
1021
1021
  /*click_handler_3*/
1022
- t[58]
1022
+ t[59]
1023
1023
  ), _ = !0);
1024
1024
  },
1025
1025
  p(b, L) {
@@ -1041,31 +1041,31 @@ function Mn(t) {
1041
1041
  }
1042
1042
  };
1043
1043
  }
1044
- function it(t, e) {
1044
+ function st(t, e) {
1045
1045
  let n, r, l;
1046
1046
  function a() {
1047
1047
  return (
1048
1048
  /*mouseenter_handler*/
1049
- e[59](
1049
+ e[60](
1050
1050
  /*i*/
1051
- e[73]
1051
+ e[74]
1052
1052
  )
1053
1053
  );
1054
1054
  }
1055
1055
  function s() {
1056
1056
  return (
1057
1057
  /*focus_handler_1*/
1058
- e[60](
1058
+ e[61](
1059
1059
  /*feature*/
1060
- e[71]
1060
+ e[72]
1061
1061
  )
1062
1062
  );
1063
1063
  }
1064
- return r = new _n({
1064
+ return r = new mn({
1065
1065
  props: {
1066
1066
  feature: (
1067
1067
  /*feature*/
1068
- e[71]
1068
+ e[72]
1069
1069
  ),
1070
1070
  showPlaceType: (
1071
1071
  /*showPlaceType*/
@@ -1074,7 +1074,7 @@ function it(t, e) {
1074
1074
  selected: (
1075
1075
  /*selectedItemIndex*/
1076
1076
  e[13] === /*i*/
1077
- e[73]
1077
+ e[74]
1078
1078
  )
1079
1079
  }
1080
1080
  }), r.$on("mouseenter", a), r.$on("focus", s), {
@@ -1091,12 +1091,12 @@ function it(t, e) {
1091
1091
  const f = {};
1092
1092
  d[0] & /*listFeatures*/
1093
1093
  4096 && (f.feature = /*feature*/
1094
- e[71]), d[0] & /*showPlaceType*/
1094
+ e[72]), d[0] & /*showPlaceType*/
1095
1095
  1024 && (f.showPlaceType = /*showPlaceType*/
1096
1096
  e[10]), d[0] & /*selectedItemIndex, listFeatures*/
1097
1097
  12288 && (f.selected = /*selectedItemIndex*/
1098
1098
  e[13] === /*i*/
1099
- e[73]), r.$set(f);
1099
+ e[74]), r.$set(f);
1100
1100
  },
1101
1101
  i(c) {
1102
1102
  l || (G(r.$$.fragment, c), l = !0);
@@ -1109,27 +1109,27 @@ function it(t, e) {
1109
1109
  }
1110
1110
  };
1111
1111
  }
1112
- function Rn(t) {
1112
+ function Ln(t) {
1113
1113
  let e, n, r, l, a, s, c, d, f, _, k, b, L, z, p, g, W, B, O, F;
1114
- l = new kn({}), _ = new _t({});
1114
+ l = new vn({}), _ = new mt({});
1115
1115
  let h = (
1116
1116
  /*abortController*/
1117
- t[17] && rt()
1117
+ t[17] && lt()
1118
1118
  ), y = (
1119
1119
  /*enableReverse*/
1120
- t[5] === !0 && lt(t)
1120
+ t[5] === !0 && it(t)
1121
1121
  );
1122
1122
  const T = (
1123
1123
  /*#slots*/
1124
- t[49].default
1125
- ), M = Ot(
1124
+ t[50].default
1125
+ ), M = Zt(
1126
1126
  T,
1127
1127
  t,
1128
1128
  /*$$scope*/
1129
- t[48],
1129
+ t[49],
1130
1130
  null
1131
- ), m = [Mn, Tn, pn, vn], w = [];
1132
- function Q(u, A) {
1131
+ ), m = [Rn, Mn, Tn, pn], w = [];
1132
+ function H(u, A) {
1133
1133
  var Y, ce;
1134
1134
  return (
1135
1135
  /*error*/
@@ -1146,9 +1146,9 @@ function Rn(t) {
1146
1146
  )
1147
1147
  );
1148
1148
  }
1149
- return ~(p = Q(t)) && (g = w[p] = m[p](t)), {
1149
+ return ~(p = H(t)) && (g = w[p] = m[p](t)), {
1150
1150
  c() {
1151
- e = C("form"), n = C("div"), r = C("button"), oe(l.$$.fragment), a = H(), s = C("input"), c = H(), d = C("div"), f = C("button"), oe(_.$$.fragment), k = H(), h && h.c(), b = H(), y && y.c(), L = H(), M && M.c(), z = H(), g && g.c(), o(r, "class", "search-button svelte-1r7dvt7"), o(r, "type", "button"), o(
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(
1152
1152
  s,
1153
1153
  "placeholder",
1154
1154
  /*placeholder*/
@@ -1168,7 +1168,7 @@ function Rn(t) {
1168
1168
  "displayable",
1169
1169
  /*searchValue*/
1170
1170
  t[1] !== ""
1171
- ), o(n, "class", "input-group svelte-1r7dvt7"), o(e, "tabindex", "0"), o(e, "class", W = Ye(
1171
+ ), o(n, "class", "input-group svelte-1r7dvt7"), o(e, "tabindex", "0"), o(e, "class", W = xe(
1172
1172
  /*className*/
1173
1173
  t[2]
1174
1174
  ) + " svelte-1r7dvt7"), re(
@@ -1180,54 +1180,54 @@ function Rn(t) {
1180
1180
  );
1181
1181
  },
1182
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[51](s), xe(
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
1184
  s,
1185
1185
  /*searchValue*/
1186
1186
  t[1]
1187
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 = [
1188
- K(
1188
+ D(
1189
1189
  r,
1190
1190
  "click",
1191
1191
  /*click_handler*/
1192
- t[50]
1192
+ t[51]
1193
1193
  ),
1194
- K(
1194
+ D(
1195
1195
  s,
1196
1196
  "input",
1197
1197
  /*input_1_input_handler*/
1198
- t[52]
1198
+ t[53]
1199
1199
  ),
1200
- K(
1200
+ D(
1201
1201
  s,
1202
1202
  "focus",
1203
1203
  /*focus_handler*/
1204
- t[53]
1204
+ t[54]
1205
1205
  ),
1206
- K(
1206
+ D(
1207
1207
  s,
1208
1208
  "blur",
1209
1209
  /*blur_handler*/
1210
- t[54]
1210
+ t[55]
1211
1211
  ),
1212
- K(
1212
+ D(
1213
1213
  s,
1214
1214
  "keydown",
1215
1215
  /*handleKeyDown*/
1216
1216
  t[19]
1217
1217
  ),
1218
- K(
1218
+ D(
1219
1219
  s,
1220
1220
  "input",
1221
1221
  /*input_handler*/
1222
- t[55]
1222
+ t[56]
1223
1223
  ),
1224
- K(
1224
+ D(
1225
1225
  f,
1226
1226
  "click",
1227
1227
  /*click_handler_1*/
1228
- t[56]
1228
+ t[57]
1229
1229
  ),
1230
- K(e, "submit", Kt(
1230
+ D(e, "submit", Kt(
1231
1231
  /*handleOnSubmit*/
1232
1232
  t[18]
1233
1233
  ))
@@ -1248,7 +1248,7 @@ function Rn(t) {
1248
1248
  u[8]
1249
1249
  ), A[0] & /*searchValue*/
1250
1250
  2 && s.value !== /*searchValue*/
1251
- u[1] && xe(
1251
+ u[1] && $e(
1252
1252
  s,
1253
1253
  /*searchValue*/
1254
1254
  u[1]
@@ -1260,7 +1260,7 @@ function Rn(t) {
1260
1260
  u[3]
1261
1261
  ), /*abortController*/
1262
1262
  u[17] ? h ? A[0] & /*abortController*/
1263
- 131072 && G(h, 1) : (h = rt(), h.c(), G(h, 1), h.m(d, null)) : h && (Se(), Z(h, 1, 1, () => {
1263
+ 131072 && G(h, 1) : (h = lt(), h.c(), G(h, 1), h.m(d, null)) : h && (Se(), Z(h, 1, 1, () => {
1264
1264
  h = null;
1265
1265
  }), Ae()), (!B || A[0] & /*searchValue*/
1266
1266
  2) && re(
@@ -1270,32 +1270,32 @@ function Rn(t) {
1270
1270
  u[1] !== ""
1271
1271
  ), /*enableReverse*/
1272
1272
  u[5] === !0 ? y ? (y.p(u, A), A[0] & /*enableReverse*/
1273
- 32 && G(y, 1)) : (y = lt(u), y.c(), G(y, 1), y.m(n, L)) : y && (Se(), Z(y, 1, 1, () => {
1273
+ 32 && G(y, 1)) : (y = it(u), y.c(), G(y, 1), y.m(n, L)) : y && (Se(), Z(y, 1, 1, () => {
1274
1274
  y = null;
1275
1275
  }), Ae()), M && M.p && (!B || A[1] & /*$$scope*/
1276
- 131072) && Ft(
1276
+ 262144) && Ut(
1277
1277
  M,
1278
1278
  T,
1279
1279
  u,
1280
1280
  /*$$scope*/
1281
- u[48],
1282
- B ? Zt(
1281
+ u[49],
1282
+ B ? Ft(
1283
1283
  T,
1284
1284
  /*$$scope*/
1285
- u[48],
1285
+ u[49],
1286
1286
  A,
1287
1287
  null
1288
1288
  ) : qt(
1289
1289
  /*$$scope*/
1290
- u[48]
1290
+ u[49]
1291
1291
  ),
1292
1292
  null
1293
1293
  );
1294
1294
  let Y = p;
1295
- p = Q(u), p === Y ? ~p && w[p].p(u, A) : (g && (Se(), Z(w[Y], 1, 1, () => {
1295
+ p = H(u), p === Y ? ~p && w[p].p(u, A) : (g && (Se(), Z(w[Y], 1, 1, () => {
1296
1296
  w[Y] = null;
1297
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 = Ye(
1298
+ 4 && W !== (W = xe(
1299
1299
  /*className*/
1300
1300
  u[2]
1301
1301
  ) + " svelte-1r7dvt7")) && o(e, "class", W), (!B || A[0] & /*className, collapsed, searchValue*/
@@ -1314,126 +1314,126 @@ function Rn(t) {
1314
1314
  Z(l.$$.fragment, u), Z(_.$$.fragment, u), Z(h), Z(y), Z(M, u), Z(g), B = !1;
1315
1315
  },
1316
1316
  d(u) {
1317
- u && S(e), $(l), t[51](null), $(_), h && h.d(), y && y.d(), M && M.d(u), ~p && w[p].d(), O = !1, ee(F);
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);
1318
1318
  }
1319
1319
  };
1320
1320
  }
1321
- function Ln(t, e, n) {
1321
+ function En(t, e, n) {
1322
1322
  const r = e[1], l = e[0], a = r - l;
1323
1323
  return t === r && n ? t : ((t - l) % a + a) % a + l;
1324
1324
  }
1325
- function st(t) {
1325
+ function ot(t) {
1326
1326
  let e = [...t];
1327
1327
  return e[2] < e[0] && (e[2] += 360), e;
1328
1328
  }
1329
- function En(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: Q = "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, { fetchParameters: Ie = {} } = e;
1331
- function gt() {
1332
- U.focus();
1333
- }
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;
1334
1331
  function yt() {
1335
- U.blur();
1332
+ Q.focus();
1333
+ }
1334
+ function bt() {
1335
+ Q.blur();
1336
1336
  }
1337
1337
  function Ve(i, j = !0) {
1338
- n(1, u = i), j ? (n(13, N = -1), Qe()) : (Ne(), setTimeout(() => {
1339
- U.focus(), U.select();
1338
+ n(1, u = i), j ? (n(13, N = -1), Qe()) : (je(), setTimeout(() => {
1339
+ Q.focus(), Q.select();
1340
1340
  }));
1341
1341
  }
1342
- let ge = !1, R, q, E, He = "", U, N = -1, J, Ce = [], ue, ye, ze;
1343
- const te = Ut();
1342
+ let ge = !1, R, U, E, He = "", Q, N = -1, J, Ce = [], ue, ye, ze;
1343
+ const te = Jt();
1344
1344
  Qt(() => {
1345
1345
  h && (h.setEventHandler(void 0), h.indicateReverse(!1), h.setSelectedMarker(-1), h.setMarkers(void 0, void 0));
1346
1346
  });
1347
1347
  function Qe(i) {
1348
1348
  if (ye && (clearTimeout(ye), ye = void 0), N > -1 && R)
1349
- n(46, E = R[N]), n(1, u = E.place_name.replace(/,.*/, "")), n(16, J = void 0), n(45, q = void 0), n(13, N = -1);
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);
1350
1350
  else if (u) {
1351
- const j = i || !Ue();
1352
- We(u, { exact: !0 }).then(() => {
1353
- n(45, q = R), n(46, E = void 0), j && bt();
1351
+ const j = i || !Je();
1352
+ Ne(u, { exact: !0 }).then(() => {
1353
+ n(46, U = R), n(47, E = void 0), j && wt();
1354
1354
  }).catch((X) => n(16, J = X));
1355
1355
  }
1356
1356
  }
1357
- function Ue() {
1357
+ function Je() {
1358
1358
  return /^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(u);
1359
1359
  }
1360
- async function We(i, { byId: j = !1, exact: X = !1 } = {}) {
1360
+ async function Ne(i, { byId: j = !1, exact: X = !1 } = {}) {
1361
1361
  n(16, J = void 0);
1362
- const be = Ue(), V = new URLSearchParams();
1363
- O != null && V.set("language", Array.isArray(O) ? O.join(",") : O), fe && V.set("types", fe.join(",")), be || (d && V.set("bbox", d.map((ne) => ne.toFixed(6)).join(",")), b && V.set("country", Array.isArray(b) ? b.join(",") : b)), j || (m && V.set("proximity", m.map((ne) => ne.toFixed(6)).join(",")), (X || !ce) && V.set("autocomplete", "false"), V.set("fuzzyMatch", String(B))), F !== void 0 && (!be || (fe == null ? void 0 : fe.length) === 1) && V.set("limit", String(F)), V.set("key", c);
1364
- const ae = "https://api.maptiler.com/geocoding/" + encodeURIComponent(i) + ".json?" + V.toString();
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
1365
  if (ae === He) {
1366
- j ? (n(12, R = void 0), n(46, E = Ce[0])) : n(12, R = Ce);
1366
+ j ? (n(12, R = void 0), n(47, E = Ce[0])) : n(12, R = Ce);
1367
1367
  return;
1368
1368
  }
1369
1369
  He = ae, ue == null || ue.abort();
1370
- const D = new AbortController();
1371
- n(17, ue = D);
1372
- let Ge;
1370
+ const q = new AbortController();
1371
+ n(17, ue = q);
1372
+ let Oe;
1373
1373
  try {
1374
- Ge = await fetch(ae, { signal: D.signal, ...Ie }).finally(() => {
1375
- D === ue && n(17, ue = void 0);
1374
+ Oe = await fetch(ae, { signal: q.signal, ...We }).finally(() => {
1375
+ q === ue && n(17, ue = void 0);
1376
1376
  });
1377
1377
  } catch (ne) {
1378
1378
  if (ne && typeof ne == "object" && "name" in ne && ne.name === "AbortError")
1379
1379
  return;
1380
1380
  throw new Error();
1381
1381
  }
1382
- if (!Ge.ok)
1382
+ if (!Oe.ok)
1383
1383
  throw new Error();
1384
- const Oe = await Ge.json();
1385
- te("response", { url: ae, featureCollection: Oe }), j ? (n(12, R = void 0), n(46, E = Oe.features[0]), Ce = [E]) : (n(12, R = Oe.features.filter(g)), Ce = R, be && U.focus());
1384
+ 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());
1386
1386
  }
1387
- function bt() {
1388
- var X, be, V, ae;
1389
- if (!(q != null && q.length) || !W)
1387
+ function wt() {
1388
+ var X, be, K, ae;
1389
+ if (!(U != null && U.length) || !W)
1390
1390
  return;
1391
- const i = [180, 90, -180, -90], j = !q.some((D) => !D.matching_text);
1392
- for (const D of q)
1393
- (j || !D.matching_text) && (i[0] = Math.min(i[0], ((X = D.bbox) == null ? void 0 : X[0]) ?? D.center[0]), i[1] = Math.min(i[1], ((be = D.bbox) == null ? void 0 : be[1]) ?? D.center[1]), i[2] = Math.max(i[2], ((V = D.bbox) == null ? void 0 : V[2]) ?? D.center[0]), i[3] = Math.max(i[3], ((ae = D.bbox) == null ? void 0 : ae[3]) ?? D.center[1]));
1394
- h && q.length > 0 && (E && i[0] === i[2] && i[1] === i[3] ? h.flyTo(E.center, Ee) : h.fitBounds(st(i), 50, pe));
1395
- }
1396
- function wt(i) {
1397
- n(0, w = z === "always"), Ve(Ln(i[0], [-180, 180], !0).toFixed(6) + "," + i[1].toFixed(6));
1391
+ const i = [180, 90, -180, -90], j = !U.some((q) => !q.matching_text);
1392
+ for (const q of U)
1393
+ (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));
1398
1395
  }
1399
1396
  function kt(i) {
1397
+ n(0, w = z === "always"), Ve(En(i[0], [-180, 180], !0).toFixed(6) + "," + i[1].toFixed(6));
1398
+ }
1399
+ function vt(i) {
1400
1400
  if (!R)
1401
1401
  return;
1402
1402
  let j = i.key === "ArrowDown" ? 1 : i.key === "ArrowUp" ? -1 : 0;
1403
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);
1404
1404
  }
1405
- function Ne(i = !0) {
1405
+ function je(i = !0) {
1406
1406
  if (n(16, J = void 0), ce) {
1407
1407
  if (ye && clearTimeout(ye), u.length < y)
1408
1408
  return;
1409
1409
  const j = u;
1410
1410
  ye = window.setTimeout(
1411
1411
  () => {
1412
- We(j).catch((X) => n(16, J = X));
1412
+ Ne(j).catch((X) => n(16, J = X));
1413
1413
  },
1414
1414
  i ? L : 0
1415
1415
  );
1416
1416
  } else
1417
1417
  n(12, R = void 0), n(16, J = void 0);
1418
1418
  }
1419
- function je(i) {
1420
- n(46, E = i), n(1, u = i.place_name), n(13, N = -1);
1419
+ function Ge(i) {
1420
+ n(47, E = i), n(1, u = i.place_name), n(13, N = -1);
1421
1421
  }
1422
- const vt = () => U.focus();
1423
- function pt(i) {
1422
+ const pt = () => Q.focus();
1423
+ function Tt(i) {
1424
1424
  qe[i ? "unshift" : "push"](() => {
1425
- U = i, n(15, U);
1425
+ Q = i, n(15, Q);
1426
1426
  });
1427
1427
  }
1428
- function Tt() {
1428
+ function Mt() {
1429
1429
  u = this.value, n(1, u), n(11, ge), n(25, _);
1430
1430
  }
1431
- const Mt = () => n(11, ge = !0), Rt = () => n(11, ge = !1), Lt = () => Ne(), Et = () => {
1432
- n(1, u = ""), U.focus();
1433
- }, Ct = () => n(0, w = !w), zt = () => n(16, J = void 0), Bt = (i) => n(13, N = i), Pt = (i) => je(i), St = () => n(13, N = -1), At = () => {
1431
+ const Rt = () => n(11, ge = !0), Lt = () => n(11, ge = !1), Et = () => je(), Ct = () => {
1432
+ 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 = () => {
1434
1434
  };
1435
1435
  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, Q = 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), "fetchParameters" in i && n(41, Ie = i.fetchParameters), "$$scope" in i && n(48, a = i.$$scope);
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);
1437
1437
  }, t.$$.update = () => {
1438
1438
  if (t.$$.dirty[1] & /*trackProximity*/
1439
1439
  64 && (Le || n(22, m = void 0)), t.$$.dirty[0] & /*focused, clearOnBlur*/
@@ -1441,19 +1441,19 @@ function En(t, e, n) {
1441
1441
  n(14, ze = ge), _ && !ge && n(1, u = "");
1442
1442
  }), t.$$.dirty[0] & /*searchValue, listFeatures*/
1443
1443
  4098 | t.$$.dirty[1] & /*minLength*/
1444
- 8 && u.length < y && (n(46, E = void 0), n(12, R = void 0), n(16, J = void 0), n(45, q = R)), t.$$.dirty[1] & /*showFullGeometry, picked*/
1445
- 32784 && A && E && !E.address && E.geometry.type === "Point" && We(E.id, { byId: !0 }).catch((i) => n(16, J = i)), t.$$.dirty[0] & /*flyTo*/
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
1446
  536870912 | t.$$.dirty[1] & /*mapController, picked, maxZoom, zoom*/
1447
- 33540 && 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(st(E.bbox), 50, pe), n(12, R = void 0), n(45, q = void 0), n(13, N = -1)), t.$$.dirty[0] & /*listFeatures*/
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*/
1448
1448
  4096 | t.$$.dirty[1] & /*markedFeatures*/
1449
- 16384 && q !== R && n(45, q = void 0), t.$$.dirty[1] & /*mapController, markedFeatures, picked*/
1450
- 49156 && h && h.setMarkers(q, E), t.$$.dirty[0] & /*searchValue*/
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
1451
  2 && n(13, N = -1), t.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
1452
1452
  20481 | t.$$.dirty[1] & /*mapController, trackProximity*/
1453
1453
  68 && h && h.setEventHandler((i) => {
1454
1454
  switch (i.type) {
1455
1455
  case "mapClick":
1456
- w && wt(i.coordinates);
1456
+ w && kt(i.coordinates);
1457
1457
  break;
1458
1458
  case "proximityChange":
1459
1459
  n(22, m = Le ? i.proximity : void 0);
@@ -1461,7 +1461,7 @@ function En(t, e, n) {
1461
1461
  case "markerClick":
1462
1462
  {
1463
1463
  const j = R == null ? void 0 : R.find((X) => X.id === i.id);
1464
- j && je(j);
1464
+ j && Ge(j);
1465
1465
  }
1466
1466
  break;
1467
1467
  case "markerMouseEnter":
@@ -1474,18 +1474,18 @@ function En(t, e, n) {
1474
1474
  }), t.$$.dirty[0] & /*selectedItemIndex*/
1475
1475
  8192 | t.$$.dirty[1] & /*mapController*/
1476
1476
  4 && (h == null || h.setSelectedMarker(N)), t.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
1477
- 12288 && n(47, r = R == null ? void 0 : R[N]), t.$$.dirty[0] & /*searchValue*/
1477
+ 12288 && n(48, r = R == null ? void 0 : R[N]), t.$$.dirty[0] & /*searchValue*/
1478
1478
  2 | t.$$.dirty[1] & /*mapController*/
1479
1479
  4) {
1480
1480
  const i = /^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(u);
1481
1481
  h == null || h.setReverseMarker(i ? [Number(i[1]), Number(i[2])] : void 0);
1482
1482
  }
1483
1483
  t.$$.dirty[1] & /*selected*/
1484
- 65536 && te("select", r), t.$$.dirty[1] & /*picked*/
1485
- 32768 && te("pick", E), t.$$.dirty[0] & /*focusedDelayed, listFeatures*/
1484
+ 131072 && te("select", r), t.$$.dirty[1] & /*picked*/
1485
+ 65536 && te("pick", E), t.$$.dirty[0] & /*focusedDelayed, listFeatures*/
1486
1486
  20480 && te("optionsVisibilityChange", ze && !!R), t.$$.dirty[0] & /*listFeatures*/
1487
1487
  4096 && te("featuresListed", R), t.$$.dirty[1] & /*markedFeatures*/
1488
- 16384 && te("featuresMarked", q), t.$$.dirty[0] & /*reverseActive*/
1488
+ 32768 && te("featuresMarked", U), t.$$.dirty[0] & /*reverseActive*/
1489
1489
  1 && te("reverseToggle", w), t.$$.dirty[0] & /*searchValue*/
1490
1490
  2 && te("queryChange", u), t.$$.dirty[0] & /*reverseActive*/
1491
1491
  1 | t.$$.dirty[1] & /*mapController*/
@@ -1500,19 +1500,19 @@ function En(t, e, n) {
1500
1500
  p,
1501
1501
  T,
1502
1502
  M,
1503
- Q,
1503
+ H,
1504
1504
  Y,
1505
1505
  ge,
1506
1506
  R,
1507
1507
  N,
1508
1508
  ze,
1509
- U,
1509
+ Q,
1510
1510
  J,
1511
1511
  ue,
1512
1512
  Qe,
1513
- kt,
1514
- Ne,
1513
+ vt,
1515
1514
  je,
1515
+ Ge,
1516
1516
  m,
1517
1517
  c,
1518
1518
  d,
@@ -1533,15 +1533,15 @@ function En(t, e, n) {
1533
1533
  Ee,
1534
1534
  pe,
1535
1535
  Ie,
1536
- gt,
1536
+ We,
1537
1537
  yt,
1538
+ bt,
1538
1539
  Ve,
1539
- q,
1540
+ U,
1540
1541
  E,
1541
1542
  r,
1542
1543
  a,
1543
1544
  l,
1544
- vt,
1545
1545
  pt,
1546
1546
  Tt,
1547
1547
  Mt,
@@ -1553,16 +1553,17 @@ function En(t, e, n) {
1553
1553
  Bt,
1554
1554
  Pt,
1555
1555
  St,
1556
- At
1556
+ At,
1557
+ It
1557
1558
  ];
1558
1559
  }
1559
- class Cn extends me {
1560
+ class zn extends me {
1560
1561
  constructor(e) {
1561
1562
  super(), _e(
1562
1563
  this,
1563
1564
  e,
1564
- En,
1565
- Rn,
1565
+ Cn,
1566
+ Ln,
1566
1567
  he,
1567
1568
  {
1568
1569
  class: 2,
@@ -1595,26 +1596,27 @@ class Cn extends me {
1595
1596
  types: 38,
1596
1597
  zoom: 39,
1597
1598
  maxZoom: 40,
1598
- fetchParameters: 41,
1599
- focus: 42,
1600
- blur: 43,
1601
- setQuery: 44
1599
+ apiUrl: 41,
1600
+ fetchParameters: 42,
1601
+ focus: 43,
1602
+ blur: 44,
1603
+ setQuery: 45
1602
1604
  },
1603
1605
  null,
1604
1606
  [-1, -1, -1]
1605
1607
  );
1606
1608
  }
1607
1609
  get focus() {
1608
- return this.$$.ctx[42];
1610
+ return this.$$.ctx[43];
1609
1611
  }
1610
1612
  get blur() {
1611
- return this.$$.ctx[43];
1613
+ return this.$$.ctx[44];
1612
1614
  }
1613
1615
  get setQuery() {
1614
- return this.$$.ctx[44];
1616
+ return this.$$.ctx[45];
1615
1617
  }
1616
1618
  }
1617
- const ot = [
1619
+ const ct = [
1618
1620
  "featuresListed",
1619
1621
  "featuresMarked",
1620
1622
  "optionsVisibilityChange",
@@ -1623,7 +1625,7 @@ const ot = [
1623
1625
  "response",
1624
1626
  "reverseToggle",
1625
1627
  "select"
1626
- ], zn = [
1628
+ ], Bn = [
1627
1629
  "apiKey",
1628
1630
  "bbox",
1629
1631
  "clearButtonTitle",
@@ -1650,29 +1652,29 @@ const ot = [
1650
1652
  "zoom",
1651
1653
  "mapController"
1652
1654
  ];
1653
- function ct(t) {
1655
+ function ft(t) {
1654
1656
  return "on" + t[0].toUpperCase() + t.slice(1);
1655
1657
  }
1656
- const Pn = It(function(e, n) {
1657
- const r = Je(), l = Je(), a = { ...e };
1658
- for (const s of ot)
1659
- delete a[ct(s)];
1660
- Ze(() => {
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
1663
  if (!r.current)
1662
1664
  throw new Error();
1663
- const s = new Cn({
1665
+ const s = new zn({
1664
1666
  target: r.current,
1665
1667
  props: a
1666
1668
  });
1667
1669
  return l.current = s, () => s.$destroy();
1668
1670
  }, []);
1669
- for (const s of zn)
1670
- Ze(() => {
1671
+ for (const s of Bn)
1672
+ Fe(() => {
1671
1673
  l.current && e[s] !== void 0 && l.current.$set({ [s]: e[s] });
1672
1674
  }, [e[s]]);
1673
- for (const s of ot) {
1674
- const c = e[ct(s)];
1675
- Ze(() => {
1675
+ for (const s of ct) {
1676
+ const c = e[ft(s)];
1677
+ Fe(() => {
1676
1678
  var d;
1677
1679
  (d = l.current) == null || d.$on(
1678
1680
  s,
@@ -1682,7 +1684,7 @@ const Pn = It(function(e, n) {
1682
1684
  );
1683
1685
  }, [c]);
1684
1686
  }
1685
- return Wt(n, () => ({
1687
+ return Nt(n, () => ({
1686
1688
  setQuery: (s, c = !0) => {
1687
1689
  var d;
1688
1690
  return (d = l.current) == null ? void 0 : d.setQuery(s, c);
@@ -1695,9 +1697,9 @@ const Pn = It(function(e, n) {
1695
1697
  var s;
1696
1698
  return (s = l.current) == null ? void 0 : s.blur();
1697
1699
  }
1698
- })), Nt("div", { ref: r });
1700
+ })), jt("div", { ref: r });
1699
1701
  });
1700
1702
  export {
1701
- Pn as GeocodingControl
1703
+ Sn as GeocodingControl
1702
1704
  };
1703
1705
  //# sourceMappingURL=react.js.map