@maptiler/geocoding-control 1.4.2-dev.1 → 1.4.2-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/leaflet.js CHANGED
@@ -1,10 +1,10 @@
1
1
  var an = Object.defineProperty;
2
- var jt = (i) => {
2
+ var Zt = (i) => {
3
3
  throw TypeError(i);
4
4
  };
5
5
  var cn = (i, e, t) => e in i ? an(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
6
- var _t = (i, e, t) => cn(i, typeof e != "symbol" ? e + "" : e, t), Zt = (i, e, t) => e.has(i) || jt("Cannot " + t);
7
- var se = (i, e, t) => (Zt(i, e, "read from private field"), t ? t.call(i) : e.get(i)), Et = (i, e, t) => e.has(i) ? jt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), it = (i, e, t, n) => (Zt(i, e, "write to private field"), n ? n.call(i, t) : e.set(i, t), t);
6
+ var _t = (i, e, t) => cn(i, typeof e != "symbol" ? e + "" : e, t), qt = (i, e, t) => e.has(i) || Zt("Cannot " + t);
7
+ var se = (i, e, t) => (qt(i, e, "read from private field"), t ? t.call(i) : e.get(i)), Et = (i, e, t) => e.has(i) ? Zt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), it = (i, e, t, n) => (qt(i, e, "write to private field"), n ? n.call(i, t) : e.set(i, t), t);
8
8
  import * as de from "leaflet";
9
9
  function A() {
10
10
  }
@@ -106,7 +106,7 @@ function pn() {
106
106
  function J(i, e, t, n) {
107
107
  return i.addEventListener(e, t, n), () => i.removeEventListener(e, t, n);
108
108
  }
109
- function bn(i) {
109
+ function vn(i) {
110
110
  return function(e) {
111
111
  return e.preventDefault(), i.call(this, e);
112
112
  };
@@ -114,24 +114,24 @@ function bn(i) {
114
114
  function y(i, e, t) {
115
115
  t == null ? i.removeAttribute(e) : i.getAttribute(e) !== t && i.setAttribute(e, t);
116
116
  }
117
- function vn(i) {
117
+ function bn(i) {
118
118
  return Array.from(i.childNodes);
119
119
  }
120
- function qe(i, e) {
120
+ function Ge(i, e) {
121
121
  e = "" + e, i.data !== e && (i.data = /** @type {string} */
122
122
  e);
123
123
  }
124
124
  function Vt(i, e) {
125
125
  i.value = e ?? "";
126
126
  }
127
- function oe(i, e, t) {
127
+ function re(i, e, t) {
128
128
  i.classList.toggle(e, !!t);
129
129
  }
130
130
  function wn(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
131
131
  return new CustomEvent(i, { detail: e, bubbles: t, cancelable: n });
132
132
  }
133
133
  let je;
134
- function Ge(i) {
134
+ function ze(i) {
135
135
  je = i;
136
136
  }
137
137
  function Ni() {
@@ -163,41 +163,41 @@ function Yt(i, e) {
163
163
  const t = i.$$.callbacks[e.type];
164
164
  t && t.slice().forEach((n) => n.call(this, e));
165
165
  }
166
- const Ae = [], Mt = [];
167
- let Be = [];
166
+ const We = [], Mt = [];
167
+ let Ae = [];
168
168
  const Xt = [], Ln = /* @__PURE__ */ Promise.resolve();
169
169
  let Ct = !1;
170
170
  function Sn() {
171
171
  Ct || (Ct = !0, Ln.then(Pi));
172
172
  }
173
173
  function kt(i) {
174
- Be.push(i);
174
+ Ae.push(i);
175
175
  }
176
176
  const Lt = /* @__PURE__ */ new Set();
177
- let Oe = 0;
177
+ let Ie = 0;
178
178
  function Pi() {
179
- if (Oe !== 0)
179
+ if (Ie !== 0)
180
180
  return;
181
181
  const i = je;
182
182
  do {
183
183
  try {
184
- for (; Oe < Ae.length; ) {
185
- const e = Ae[Oe];
186
- Oe++, Ge(e), xn(e.$$);
184
+ for (; Ie < We.length; ) {
185
+ const e = We[Ie];
186
+ Ie++, ze(e), xn(e.$$);
187
187
  }
188
188
  } catch (e) {
189
- throw Ae.length = 0, Oe = 0, e;
189
+ throw We.length = 0, Ie = 0, e;
190
190
  }
191
- for (Ge(null), Ae.length = 0, Oe = 0; Mt.length; ) Mt.pop()();
192
- for (let e = 0; e < Be.length; e += 1) {
193
- const t = Be[e];
191
+ for (ze(null), We.length = 0, Ie = 0; Mt.length; ) Mt.pop()();
192
+ for (let e = 0; e < Ae.length; e += 1) {
193
+ const t = Ae[e];
194
194
  Lt.has(t) || (Lt.add(t), t());
195
195
  }
196
- Be.length = 0;
197
- } while (Ae.length);
196
+ Ae.length = 0;
197
+ } while (We.length);
198
198
  for (; Xt.length; )
199
199
  Xt.pop()();
200
- Ct = !1, Lt.clear(), Ge(i);
200
+ Ct = !1, Lt.clear(), ze(i);
201
201
  }
202
202
  function xn(i) {
203
203
  if (i.fragment !== null) {
@@ -208,28 +208,28 @@ function xn(i) {
208
208
  }
209
209
  function Mn(i) {
210
210
  const e = [], t = [];
211
- Be.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), Be = e;
211
+ Ae.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), Ae = e;
212
212
  }
213
213
  const rt = /* @__PURE__ */ new Set();
214
- let Ne;
214
+ let ke;
215
215
  function ot() {
216
- Ne = {
216
+ ke = {
217
217
  r: 0,
218
218
  c: [],
219
- p: Ne
219
+ p: ke
220
220
  // parent group
221
221
  };
222
222
  }
223
223
  function st() {
224
- Ne.r || ye(Ne.c), Ne = Ne.p;
224
+ ke.r || ye(ke.c), ke = ke.p;
225
225
  }
226
- function j(i, e) {
226
+ function Z(i, e) {
227
227
  i && i.i && (rt.delete(i), i.i(e));
228
228
  }
229
229
  function V(i, e, t, n) {
230
230
  if (i && i.o) {
231
231
  if (rt.has(i)) return;
232
- rt.add(i), Ne.c.push(() => {
232
+ rt.add(i), ke.c.push(() => {
233
233
  rt.delete(i), n && (t && i.d(1), n());
234
234
  }), i.o(e);
235
235
  } else n && n();
@@ -246,26 +246,26 @@ function kn(i, e, t, n, r, o, l, s, c, u, h, a) {
246
246
  let f = i.length, d = o.length, g = f;
247
247
  const p = {};
248
248
  for (; g--; ) p[i[g].key] = g;
249
- const b = [], v = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Map(), E = [];
249
+ const v = [], b = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Map(), E = [];
250
250
  for (g = d; g--; ) {
251
251
  const L = a(r, o, g), w = t(L);
252
252
  let k = l.get(w);
253
- k ? E.push(() => k.p(L, e)) : (k = u(w, L), k.c()), v.set(w, b[g] = k), w in p && S.set(w, Math.abs(g - p[w]));
253
+ k ? E.push(() => k.p(L, e)) : (k = u(w, L), k.c()), b.set(w, v[g] = k), w in p && S.set(w, Math.abs(g - p[w]));
254
254
  }
255
255
  const _ = /* @__PURE__ */ new Set(), C = /* @__PURE__ */ new Set();
256
256
  function x(L) {
257
- j(L, 1), L.m(s, h), l.set(L.key, L), h = L.first, d--;
257
+ Z(L, 1), L.m(s, h), l.set(L.key, L), h = L.first, d--;
258
258
  }
259
259
  for (; f && d; ) {
260
- const L = b[d - 1], w = i[f - 1], k = L.key, I = w.key;
261
- L === w ? (h = L.first, f--, d--) : v.has(I) ? !l.has(k) || _.has(k) ? x(L) : C.has(I) ? f-- : S.get(k) > S.get(I) ? (C.add(k), x(L)) : (_.add(I), f--) : (c(w, l), f--);
260
+ const L = v[d - 1], w = i[f - 1], k = L.key, I = w.key;
261
+ L === w ? (h = L.first, f--, d--) : b.has(I) ? !l.has(k) || _.has(k) ? x(L) : C.has(I) ? f-- : S.get(k) > S.get(I) ? (C.add(k), x(L)) : (_.add(I), f--) : (c(w, l), f--);
262
262
  }
263
263
  for (; f--; ) {
264
264
  const L = i[f];
265
- v.has(L.key) || c(L, l);
265
+ b.has(L.key) || c(L, l);
266
266
  }
267
- for (; d; ) x(b[d - 1]);
268
- return ye(E), b;
267
+ for (; d; ) x(v[d - 1]);
268
+ return ye(E), v;
269
269
  }
270
270
  function Ee(i) {
271
271
  i && i.c();
@@ -282,11 +282,11 @@ function ge(i, e) {
282
282
  t.fragment !== null && (Mn(t.after_update), ye(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
283
283
  }
284
284
  function Nn(i, e) {
285
- i.$$.dirty[0] === -1 && (Ae.push(i), Sn(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
285
+ i.$$.dirty[0] === -1 && (We.push(i), Sn(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
286
286
  }
287
287
  function xe(i, e, t, n, r, o, l = null, s = [-1]) {
288
288
  const c = je;
289
- Ge(i);
289
+ ze(i);
290
290
  const u = i.$$ = {
291
291
  fragment: null,
292
292
  ctx: [],
@@ -315,13 +315,13 @@ function xe(i, e, t, n, r, o, l = null, s = [-1]) {
315
315
  return u.ctx && r(u.ctx[a], u.ctx[a] = g) && (!u.skip_bound && u.bound[a] && u.bound[a](g), h && Nn(i, a)), f;
316
316
  }) : [], u.update(), h = !0, ye(u.before_update), u.fragment = n ? n(u.ctx) : !1, e.target) {
317
317
  if (e.hydrate) {
318
- const a = vn(e.target);
318
+ const a = bn(e.target);
319
319
  u.fragment && u.fragment.l(a), a.forEach(B);
320
320
  } else
321
321
  u.fragment && u.fragment.c();
322
- e.intro && j(i.$$.fragment), me(i, e.target, e.anchor), Pi();
322
+ e.intro && Z(i.$$.fragment), me(i, e.target, e.anchor), Pi();
323
323
  }
324
- Ge(c);
324
+ ze(c);
325
325
  }
326
326
  class Me {
327
327
  constructor() {
@@ -682,7 +682,7 @@ function Jt(i) {
682
682
  },
683
683
  p(n, r) {
684
684
  r & /*placeType*/
685
- 64 && qe(
685
+ 64 && Ge(
686
686
  t,
687
687
  /*placeType*/
688
688
  n[6]
@@ -714,13 +714,13 @@ function zn(i) {
714
714
  i[0].id.startsWith("poi.") || !/*imageUrl*/
715
715
  i[5]) && !/*isReverse*/
716
716
  i[7]
717
- ), g, p, b = (
717
+ ), g, p, v = (
718
718
  /*isReverse*/
719
719
  (i[7] ? "" : (
720
720
  /*feature*/
721
721
  i[0].place_name.replace(/[^,]*,?\s*/, "")
722
722
  )) + ""
723
- ), v, S, E;
723
+ ), b, S, E;
724
724
  function _(w, k) {
725
725
  return k & /*feature*/
726
726
  1 && (t = null), k & /*feature*/
@@ -742,12 +742,12 @@ function zn(i) {
742
742
  let C = _(i, -1), x = C(i), L = d && Jt(i);
743
743
  return {
744
744
  c() {
745
- e = W("li"), x.c(), l = te(), s = W("span"), c = W("span"), u = W("span"), a = _e(h), f = te(), L && L.c(), g = te(), p = W("span"), v = _e(b), y(u, "class", "primary svelte-ltkwvy"), y(c, "class", "svelte-ltkwvy"), y(p, "class", "line2 svelte-ltkwvy"), y(s, "class", "texts svelte-ltkwvy"), y(e, "tabindex", "0"), y(
745
+ e = W("li"), x.c(), l = te(), s = W("span"), c = W("span"), u = W("span"), a = _e(h), f = te(), L && L.c(), g = te(), p = W("span"), b = _e(v), y(u, "class", "primary svelte-ltkwvy"), y(c, "class", "svelte-ltkwvy"), y(p, "class", "line2 svelte-ltkwvy"), y(s, "class", "texts svelte-ltkwvy"), y(e, "tabindex", "0"), y(
746
746
  e,
747
747
  "data-selected",
748
748
  /*selected*/
749
749
  i[1]
750
- ), y(e, "class", "svelte-ltkwvy"), oe(
750
+ ), y(e, "class", "svelte-ltkwvy"), re(
751
751
  e,
752
752
  "selected",
753
753
  /*selected*/
@@ -755,7 +755,7 @@ function zn(i) {
755
755
  );
756
756
  },
757
757
  m(w, k) {
758
- F(w, e, k), x.m(e, null), T(e, l), T(e, s), T(s, c), T(c, u), T(u, a), T(c, f), L && L.m(c, null), T(s, g), T(s, p), T(p, v), S || (E = [
758
+ F(w, e, k), x.m(e, null), T(e, l), T(e, s), T(s, c), T(c, u), T(u, a), T(c, f), L && L.m(c, null), T(s, g), T(s, p), T(p, b), S || (E = [
759
759
  J(
760
760
  e,
761
761
  "mouseenter",
@@ -779,7 +779,7 @@ function zn(i) {
779
779
  ) : (
780
780
  /*feature*/
781
781
  w[0].place_name.replace(/,.*/, "")
782
- )) + "") && qe(a, h), k & /*showPlaceType, feature, imageUrl*/
782
+ )) + "") && Ge(a, h), k & /*showPlaceType, feature, imageUrl*/
783
783
  37 && (d = /*showPlaceType*/
784
784
  w[2] === "always" || /*showPlaceType*/
785
785
  w[2] && !/*feature*/
@@ -790,18 +790,18 @@ function zn(i) {
790
790
  w[0].id.startsWith("poi.") || !/*imageUrl*/
791
791
  w[5]) && !/*isReverse*/
792
792
  w[7]), d ? L ? L.p(w, k) : (L = Jt(w), L.c(), L.m(c, null)) : L && (L.d(1), L = null), k & /*feature*/
793
- 1 && b !== (b = /*isReverse*/
793
+ 1 && v !== (v = /*isReverse*/
794
794
  (w[7] ? "" : (
795
795
  /*feature*/
796
796
  w[0].place_name.replace(/[^,]*,?\s*/, "")
797
- )) + "") && qe(v, b), k & /*selected*/
797
+ )) + "") && Ge(b, v), k & /*selected*/
798
798
  2 && y(
799
799
  e,
800
800
  "data-selected",
801
801
  /*selected*/
802
802
  w[1]
803
803
  ), k & /*selected*/
804
- 2 && oe(
804
+ 2 && re(
805
805
  e,
806
806
  "selected",
807
807
  /*selected*/
@@ -823,10 +823,10 @@ function Gn(i, e, t) {
823
823
  function p() {
824
824
  f && c.add(f), t(10, d++, d);
825
825
  }
826
- function b(_) {
826
+ function v(_) {
827
827
  Yt.call(this, i, _);
828
828
  }
829
- function v(_) {
829
+ function b(_) {
830
830
  Yt.call(this, i, _);
831
831
  }
832
832
  const S = () => p();
@@ -854,12 +854,12 @@ function Gn(i, e, t) {
854
854
  c,
855
855
  d,
856
856
  n,
857
- b,
858
857
  v,
858
+ b,
859
859
  S
860
860
  ];
861
861
  }
862
- class qn extends Me {
862
+ class jn extends Me {
863
863
  constructor(e) {
864
864
  super(), xe(this, e, Gn, zn, Se, {
865
865
  feature: 0,
@@ -870,7 +870,7 @@ class qn extends Me {
870
870
  });
871
871
  }
872
872
  }
873
- function jn(i) {
873
+ function Zn(i) {
874
874
  let e;
875
875
  return {
876
876
  c() {
@@ -887,9 +887,9 @@ function jn(i) {
887
887
  }
888
888
  };
889
889
  }
890
- class Zn extends Me {
890
+ class qn extends Me {
891
891
  constructor(e) {
892
- super(), xe(this, e, null, jn, Se, {});
892
+ super(), xe(this, e, null, Zn, Se, {});
893
893
  }
894
894
  }
895
895
  function Qn(i) {
@@ -897,12 +897,12 @@ function Qn(i) {
897
897
  return {
898
898
  c() {
899
899
  e = ue("svg"), t = ue("path"), y(t, "stroke-width", "4"), y(t, "d", "M 5,33.103579 C 5,17.607779 18.457,5 35,5 C 51.543,5 65,17.607779 65,33.103579 C 65,56.388679 40.4668,76.048179 36.6112,79.137779 C 36.3714,79.329879 36.2116,79.457979 36.1427,79.518879 C 35.8203,79.800879 35.4102,79.942779 35,79.942779 C 34.5899,79.942779 34.1797,79.800879 33.8575,79.518879 C 33.7886,79.457979 33.6289,79.330079 33.3893,79.138079 C 29.5346,76.049279 5,56.389379 5,33.103579 Z M 35.0001,49.386379 C 43.1917,49.386379 49.8323,42.646079 49.8323,34.331379 C 49.8323,26.016779 43.1917,19.276479 35.0001,19.276479 C 26.8085,19.276479 20.1679,26.016779 20.1679,34.331379 C 20.1679,42.646079 26.8085,49.386379 35.0001,49.386379 Z"), y(t, "class", "svelte-gzo3ar"), y(e, "width", n = /*displayIn*/
900
- i[0] === "list" ? 20 : void 0), y(e, "viewBox", "0 0 70 85"), y(e, "fill", "none"), y(e, "class", "svelte-gzo3ar"), oe(
900
+ i[0] === "list" ? 20 : void 0), y(e, "viewBox", "0 0 70 85"), y(e, "fill", "none"), y(e, "class", "svelte-gzo3ar"), re(
901
901
  e,
902
902
  "in-map",
903
903
  /*displayIn*/
904
904
  i[0] !== "list"
905
- ), oe(
905
+ ), re(
906
906
  e,
907
907
  "list-icon",
908
908
  /*displayIn*/
@@ -916,13 +916,13 @@ function Qn(i) {
916
916
  o & /*displayIn*/
917
917
  1 && n !== (n = /*displayIn*/
918
918
  r[0] === "list" ? 20 : void 0) && y(e, "width", n), o & /*displayIn*/
919
- 1 && oe(
919
+ 1 && re(
920
920
  e,
921
921
  "in-map",
922
922
  /*displayIn*/
923
923
  r[0] !== "list"
924
924
  ), o & /*displayIn*/
925
- 1 && oe(
925
+ 1 && re(
926
926
  e,
927
927
  "list-icon",
928
928
  /*displayIn*/
@@ -999,7 +999,7 @@ function Ze(i) {
999
999
  const e = [...i];
1000
1000
  return e[2] < e[0] && (Math.abs((e[0] + e[2] + 360) / 2) > Math.abs((e[0] - 360 + e[2]) / 2) ? e[0] -= 360 : e[2] += 360), e;
1001
1001
  }
1002
- let Ue;
1002
+ let De;
1003
1003
  async function er(i, e, t) {
1004
1004
  const n = i == null ? void 0 : i.getCenterAndZoom();
1005
1005
  for (const r of e ?? [])
@@ -1007,10 +1007,10 @@ async function er(i, e, t) {
1007
1007
  if (r.type === "fixed")
1008
1008
  return r.coordinates.join(",");
1009
1009
  e: if (r.type === "client-geolocation") {
1010
- if (Ue && r.cachedLocationExpiry && Ue.time + r.cachedLocationExpiry > Date.now()) {
1011
- if (!Ue.coords)
1010
+ if (De && r.cachedLocationExpiry && De.time + r.cachedLocationExpiry > Date.now()) {
1011
+ if (!De.coords)
1012
1012
  break e;
1013
- return Ue.coords;
1013
+ return De.coords;
1014
1014
  }
1015
1015
  let o;
1016
1016
  try {
@@ -1031,7 +1031,7 @@ async function er(i, e, t) {
1031
1031
  }), o;
1032
1032
  } catch {
1033
1033
  } finally {
1034
- r.cachedLocationExpiry && (Ue = {
1034
+ r.cachedLocationExpiry && (De = {
1035
1035
  time: Date.now(),
1036
1036
  coords: o
1037
1037
  });
@@ -1060,9 +1060,9 @@ function ir(i) {
1060
1060
  }
1061
1061
  if (i == "DMS") {
1062
1062
  const d = Math.floor(a), g = Math.floor(f);
1063
- let p = ((a - d) * 60).toFixed(1).padStart(4, "0"), b = ((f - g) * 60).toFixed(1).padStart(4, "0");
1064
- const v = d.toString().padStart(2, "0"), S = g.toString().padStart(2, "0");
1065
- p.endsWith(".0") && b.endsWith(".0") && (p = p.replace(/\.0$/, ""), b = b.replace(/\.0$/, "")), c = `${u}° ${v}' ${p}" ${l}, ${h}° ${S}' ${b}" ${s}`;
1063
+ let p = ((a - d) * 60).toFixed(1).padStart(4, "0"), v = ((f - g) * 60).toFixed(1).padStart(4, "0");
1064
+ const b = d.toString().padStart(2, "0"), S = g.toString().padStart(2, "0");
1065
+ p.endsWith(".0") && v.endsWith(".0") && (p = p.replace(/\.0$/, ""), v = v.replace(/\.0$/, "")), c = `${u}° ${b}' ${p}" ${l}, ${h}° ${S}' ${v}" ${s}`;
1066
1066
  }
1067
1067
  return c;
1068
1068
  } else
@@ -1078,12 +1078,12 @@ function Wt(i, e) {
1078
1078
  if (tr.test(i))
1079
1079
  throw new Error("invalid coordinate value");
1080
1080
  if ($t.test(i))
1081
- if (s = $t.exec(i), c = Fe(s), c)
1081
+ if (s = $t.exec(i), c = Ue(s), c)
1082
1082
  t = Math.abs(s[1]) + s[2] / 60, Number(s[1]) < 0 && (t *= -1), n = Math.abs(s[3]) + s[4] / 60, Number(s[3]) < 0 && (n *= -1), l = "DM";
1083
1083
  else
1084
1084
  throw new Error("invalid coordinate format");
1085
1085
  else if (ei.test(i))
1086
- if (s = ei.exec(i), c = Fe(s), c) {
1086
+ if (s = ei.exec(i), c = Ue(s), c) {
1087
1087
  if (t = s[2], n = s[6], t.includes(",") && (t = t.replace(",", ".")), n.includes(",") && (n = n.replace(",", ".")), l = "DD", Number(Math.round(t)) == Number(t))
1088
1088
  throw new Error("integer only coordinate provided");
1089
1089
  if (Number(Math.round(n)) == Number(n))
@@ -1092,17 +1092,17 @@ function Wt(i, e) {
1092
1092
  } else
1093
1093
  throw new Error("invalid decimal coordinate format");
1094
1094
  else if (ti.test(i))
1095
- if (s = ti.exec(i), c = Fe(s), c)
1095
+ if (s = ti.exec(i), c = Ue(s), c)
1096
1096
  t = Math.abs(parseInt(s[2])), s[4] && (t += s[4] / 60, l = "DM"), s[6] && (t += s[6].replace(",", ".") / 3600, l = "DMS"), parseInt(s[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(s[9])), s[11] && (n += s[11] / 60), s[13] && (n += s[13].replace(",", ".") / 3600), parseInt(s[9]) < 0 && (n = -1 * n), s[1] ? (r = s[1], o = s[8]) : s[7] && (r = s[7], o = s[14]);
1097
1097
  else
1098
1098
  throw new Error("invalid DMS coordinates format");
1099
1099
  else if (ii.test(i))
1100
- if (s = ii.exec(i), c = Fe(s), c)
1100
+ if (s = ii.exec(i), c = Ue(s), c)
1101
1101
  t = Math.abs(parseInt(s[2])), s[4] && (t += s[4] / 60, l = "DM"), s[6] && (t += s[6] / 3600, l = "DMS"), parseInt(s[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(s[10])), s[12] && (n += s[12] / 60), s[14] && (n += s[14] / 3600), parseInt(s[10]) < 0 && (n = -1 * n), s[1] ? (r = s[1], o = s[9]) : s[8] && (r = s[8], o = s[16]);
1102
1102
  else
1103
1103
  throw new Error("invalid DMS coordinates format");
1104
1104
  else if (ni.test(i)) {
1105
- if (s = ni.exec(i), c = Fe(s), s.filter((u) => u).length <= 5)
1105
+ if (s = ni.exec(i), c = Ue(s), s.filter((u) => u).length <= 5)
1106
1106
  throw new Error("invalid coordinates format");
1107
1107
  if (c)
1108
1108
  t = Math.abs(parseInt(s[2])), s[4] && (t += s[4].replace(",", ".") / 60, l = "DM"), s[6] && (t += s[6].replace(",", ".") / 3600, l = "DMS"), parseInt(s[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(s[10])), s[12] && (n += s[12].replace(",", ".") / 60), s[14] && (n += s[14].replace(",", ".") / 3600), parseInt(s[10]) < 0 && (n = -1 * n), s[1] ? (r = s[1], o = s[9]) : s[8] && (r = s[8], o = s[16]);
@@ -1125,17 +1125,17 @@ function Wt(i, e) {
1125
1125
  let a, f;
1126
1126
  const d = /[,/;\u0020]/g, g = h.match(d);
1127
1127
  if (g == null) {
1128
- const v = Math.floor(i.length / 2);
1129
- a = h.substring(0, v).trim(), f = h.substring(v).trim();
1128
+ const b = Math.floor(i.length / 2);
1129
+ a = h.substring(0, b).trim(), f = h.substring(b).trim();
1130
1130
  } else {
1131
- let v;
1132
- g.length % 2 == 1 ? v = Math.floor(g.length / 2) : v = g.length / 2 - 1;
1131
+ let b;
1132
+ g.length % 2 == 1 ? b = Math.floor(g.length / 2) : b = g.length / 2 - 1;
1133
1133
  let S = 0;
1134
- if (v == 0)
1134
+ if (b == 0)
1135
1135
  S = h.indexOf(g[0]), a = h.substring(0, S).trim(), f = h.substring(S + 1).trim();
1136
1136
  else {
1137
1137
  let E = 0, _ = 0;
1138
- for (; E <= v; )
1138
+ for (; E <= b; )
1139
1139
  S = h.indexOf(g[E], _), _ = S + 1, E++;
1140
1140
  a = h.substring(0, S).trim(), f = h.substring(S + 1).trim();
1141
1141
  }
@@ -1143,8 +1143,8 @@ function Wt(i, e) {
1143
1143
  const p = a.split(".");
1144
1144
  if (p.length == 2 && p[1] == 0 && p[1].length != 2)
1145
1145
  throw new Error("invalid coordinates format");
1146
- const b = f.split(".");
1147
- if (b.length == 2 && b[1] == 0 && b[1].length != 2)
1146
+ const v = f.split(".");
1147
+ if (v.length == 2 && v[1] == 0 && v[1].length != 2)
1148
1148
  throw new Error("invalid coordinates format");
1149
1149
  if (/^\d+$/.test(a) || /^\d+$/.test(f))
1150
1150
  throw new Error("degree only coordinate/s provided");
@@ -1162,7 +1162,7 @@ function Wt(i, e) {
1162
1162
  } else
1163
1163
  throw new Error("coordinates pattern match failed");
1164
1164
  }
1165
- function Fe(i) {
1165
+ function Ue(i) {
1166
1166
  if (!isNaN(i[0]))
1167
1167
  return !1;
1168
1168
  const e = [...i];
@@ -1581,7 +1581,7 @@ function si(i, e, t) {
1581
1581
  }
1582
1582
  function li(i) {
1583
1583
  let e, t;
1584
- return e = new Zn({}), {
1584
+ return e = new qn({}), {
1585
1585
  c() {
1586
1586
  Ee(e.$$.fragment);
1587
1587
  },
@@ -1589,7 +1589,7 @@ function li(i) {
1589
1589
  me(e, n, r), t = !0;
1590
1590
  },
1591
1591
  i(n) {
1592
- t || (j(e.$$.fragment, n), t = !0);
1592
+ t || (Z(e.$$.fragment, n), t = !0);
1593
1593
  },
1594
1594
  o(n) {
1595
1595
  V(e.$$.fragment, n), t = !1;
@@ -1608,7 +1608,7 @@ function ui(i) {
1608
1608
  "title",
1609
1609
  /*reverseButtonTitle*/
1610
1610
  i[9]
1611
- ), y(e, "class", "svelte-qnu791"), oe(
1611
+ ), y(e, "class", "svelte-1uvos7g"), re(
1612
1612
  e,
1613
1613
  "active",
1614
1614
  /*reverseActive*/
@@ -1631,7 +1631,7 @@ function ui(i) {
1631
1631
  /*reverseButtonTitle*/
1632
1632
  l[9]
1633
1633
  ), (!n || s[0] & /*reverseActive*/
1634
- 1) && oe(
1634
+ 1) && re(
1635
1635
  e,
1636
1636
  "active",
1637
1637
  /*reverseActive*/
@@ -1639,7 +1639,7 @@ function ui(i) {
1639
1639
  );
1640
1640
  },
1641
1641
  i(l) {
1642
- n || (j(t.$$.fragment, l), n = !0);
1642
+ n || (Z(t.$$.fragment, l), n = !0);
1643
1643
  },
1644
1644
  o(l) {
1645
1645
  V(t.$$.fragment, l), n = !1;
@@ -1669,7 +1669,7 @@ function dr(i) {
1669
1669
  e = W("ul");
1670
1670
  for (let u = 0; u < t.length; u += 1)
1671
1671
  t[u].c();
1672
- y(e, "class", "svelte-qnu791");
1672
+ y(e, "class", "svelte-1uvos7g");
1673
1673
  },
1674
1674
  m(u, h) {
1675
1675
  F(u, e, h);
@@ -1700,7 +1700,7 @@ function dr(i) {
1700
1700
  i(u) {
1701
1701
  if (!r) {
1702
1702
  for (let h = 0; h < s.length; h += 1)
1703
- j(t[h]);
1703
+ Z(t[h]);
1704
1704
  r = !0;
1705
1705
  }
1706
1706
  },
@@ -1724,21 +1724,21 @@ function hr(i) {
1724
1724
  e = W("div"), Ee(t.$$.fragment), n = te(), r = W("div"), o = _e(
1725
1725
  /*noResultsMessage*/
1726
1726
  i[7]
1727
- ), y(r, "class", "svelte-qnu791"), y(e, "class", "no-results svelte-qnu791");
1727
+ ), y(r, "class", "svelte-1uvos7g"), y(e, "class", "no-results svelte-1uvos7g");
1728
1728
  },
1729
1729
  m(s, c) {
1730
1730
  F(s, e, c), me(t, e, null), T(e, n), T(e, r), T(r, o), l = !0;
1731
1731
  },
1732
1732
  p(s, c) {
1733
1733
  (!l || c[0] & /*noResultsMessage*/
1734
- 128) && qe(
1734
+ 128) && Ge(
1735
1735
  o,
1736
1736
  /*noResultsMessage*/
1737
1737
  s[7]
1738
1738
  );
1739
1739
  },
1740
1740
  i(s) {
1741
- l || (j(t.$$.fragment, s), l = !0);
1741
+ l || (Z(t.$$.fragment, s), l = !0);
1742
1742
  },
1743
1743
  o(s) {
1744
1744
  V(t.$$.fragment, s), l = !1;
@@ -1772,7 +1772,7 @@ function gr(i) {
1772
1772
  e = W("div"), Ee(t.$$.fragment), n = te(), r = W("div"), o = _e(
1773
1773
  /*errorMessage*/
1774
1774
  i[6]
1775
- ), l = te(), s = W("button"), Ee(c.$$.fragment), y(r, "class", "svelte-qnu791"), y(s, "class", "svelte-qnu791"), y(e, "class", "error svelte-qnu791");
1775
+ ), l = te(), s = W("button"), Ee(c.$$.fragment), y(r, "class", "svelte-1uvos7g"), y(s, "class", "svelte-1uvos7g"), y(e, "class", "error svelte-1uvos7g");
1776
1776
  },
1777
1777
  m(f, d) {
1778
1778
  F(f, e, d), me(t, e, null), T(e, n), T(e, r), T(r, o), T(e, l), T(e, s), me(c, s, null), u = !0, h || (a = J(
@@ -1784,14 +1784,14 @@ function gr(i) {
1784
1784
  },
1785
1785
  p(f, d) {
1786
1786
  (!u || d[0] & /*errorMessage*/
1787
- 64) && qe(
1787
+ 64) && Ge(
1788
1788
  o,
1789
1789
  /*errorMessage*/
1790
1790
  f[6]
1791
1791
  );
1792
1792
  },
1793
1793
  i(f) {
1794
- u || (j(t.$$.fragment, f), j(c.$$.fragment, f), u = !0);
1794
+ u || (Z(t.$$.fragment, f), Z(c.$$.fragment, f), u = !0);
1795
1795
  },
1796
1796
  o(f) {
1797
1797
  V(t.$$.fragment, f), V(c.$$.fragment, f), u = !1;
@@ -1821,7 +1821,7 @@ function ai(i, e) {
1821
1821
  )
1822
1822
  );
1823
1823
  }
1824
- return n = new qn({
1824
+ return n = new jn({
1825
1825
  props: {
1826
1826
  feature: (
1827
1827
  /*feature*/
@@ -1869,7 +1869,7 @@ function ai(i, e) {
1869
1869
  e[12]), n.$set(u);
1870
1870
  },
1871
1871
  i(s) {
1872
- r || (j(n.$$.fragment, s), r = !0);
1872
+ r || (Z(n.$$.fragment, s), r = !0);
1873
1873
  },
1874
1874
  o(s) {
1875
1875
  V(n.$$.fragment, s), r = !1;
@@ -1880,7 +1880,7 @@ function ai(i, e) {
1880
1880
  };
1881
1881
  }
1882
1882
  function yr(i) {
1883
- let e, t, n, r, o, l, s, c, u, h, a, f, d, g, p, b, v, S, E, _, C, x = !1;
1883
+ let e, t, n, r, o, l, s, c, u, h, a, f, d, g, p, v, b, S, E, _, C, x = !1;
1884
1884
  o = new Jn({}), a = new Ti({});
1885
1885
  let L = (
1886
1886
  /*abortController*/
@@ -1900,7 +1900,7 @@ function yr(i) {
1900
1900
  null
1901
1901
  ), D = [gr, mr, hr, dr], z = [];
1902
1902
  function O(M, G) {
1903
- var $, ie;
1903
+ var $, oe;
1904
1904
  return (
1905
1905
  /*error*/
1906
1906
  M[18] ? 0 : (
@@ -1910,15 +1910,15 @@ function yr(i) {
1910
1910
  (($ = M[14]) == null ? void 0 : $.length) === 0 ? 2 : (
1911
1911
  /*focusedDelayed*/
1912
1912
  M[16] && /*listFeatures*/
1913
- ((ie = M[14]) != null && ie.length) ? 3 : -1
1913
+ ((oe = M[14]) != null && oe.length) ? 3 : -1
1914
1914
  )
1915
1915
  ) : 1
1916
1916
  )
1917
1917
  );
1918
1918
  }
1919
- return ~(b = O(i)) && (v = z[b] = D[b](i)), {
1919
+ return ~(v = O(i)) && (b = z[v] = D[v](i)), {
1920
1920
  c() {
1921
- e = te(), t = W("form"), n = W("div"), r = W("button"), Ee(o.$$.fragment), l = te(), s = W("input"), c = te(), u = W("div"), h = W("button"), Ee(a.$$.fragment), f = te(), L && L.c(), d = te(), w && w.c(), g = te(), I && I.c(), p = te(), v && v.c(), y(r, "class", "search-button svelte-qnu791"), y(r, "type", "button"), y(
1921
+ e = te(), t = W("form"), n = W("div"), r = W("button"), Ee(o.$$.fragment), l = te(), s = W("input"), c = te(), u = W("div"), h = W("button"), Ee(a.$$.fragment), f = te(), L && L.c(), d = te(), w && w.c(), g = te(), I && I.c(), p = te(), b && b.c(), y(r, "class", "search-button svelte-1uvos7g"), y(r, "type", "button"), y(
1922
1922
  s,
1923
1923
  "placeholder",
1924
1924
  /*placeholder*/
@@ -1928,20 +1928,20 @@ function yr(i) {
1928
1928
  "aria-label",
1929
1929
  /*placeholder*/
1930
1930
  i[8]
1931
- ), y(s, "class", "svelte-qnu791"), y(h, "type", "button"), y(
1931
+ ), y(s, "class", "svelte-1uvos7g"), y(h, "type", "button"), y(
1932
1932
  h,
1933
1933
  "title",
1934
1934
  /*clearButtonTitle*/
1935
1935
  i[3]
1936
- ), y(h, "class", "svelte-qnu791"), y(u, "class", "clear-button-container svelte-qnu791"), oe(
1936
+ ), y(h, "class", "svelte-1uvos7g"), y(u, "class", "clear-button-container svelte-1uvos7g"), re(
1937
1937
  u,
1938
1938
  "displayable",
1939
1939
  /*searchValue*/
1940
1940
  i[1] !== ""
1941
- ), y(n, "class", "input-group svelte-qnu791"), y(t, "tabindex", "0"), y(t, "class", S = Ht(
1941
+ ), y(n, "class", "input-group svelte-1uvos7g"), y(t, "tabindex", "0"), y(t, "class", S = Ht(
1942
1942
  /*className*/
1943
1943
  i[2]
1944
- ) + " svelte-qnu791"), oe(
1944
+ ) + " svelte-1uvos7g"), re(
1945
1945
  t,
1946
1946
  "can-collapse",
1947
1947
  /*collapsed*/
@@ -1954,7 +1954,7 @@ function yr(i) {
1954
1954
  s,
1955
1955
  /*searchValue*/
1956
1956
  i[1]
1957
- ), T(n, c), T(n, u), T(u, h), me(a, h, null), T(u, f), L && L.m(u, null), T(n, d), w && w.m(n, null), T(n, g), I && I.m(n, null), T(t, p), ~b && z[b].m(t, null), E = !0, _ || (C = [
1957
+ ), T(n, c), T(n, u), T(u, h), me(a, h, null), T(u, f), L && L.m(u, null), T(n, d), w && w.m(n, null), T(n, g), I && I.m(n, null), T(t, p), ~v && z[v].m(t, null), E = !0, _ || (C = [
1958
1958
  J(
1959
1959
  r,
1960
1960
  "click",
@@ -1997,7 +1997,7 @@ function yr(i) {
1997
1997
  /*click_handler_1*/
1998
1998
  i[67]
1999
1999
  ),
2000
- J(t, "submit", bn(
2000
+ J(t, "submit", vn(
2001
2001
  /*handleOnSubmit*/
2002
2002
  i[21]
2003
2003
  ))
@@ -2030,17 +2030,17 @@ function yr(i) {
2030
2030
  M[3]
2031
2031
  ), /*abortController*/
2032
2032
  M[19] ? L ? G[0] & /*abortController*/
2033
- 524288 && j(L, 1) : (L = li(), L.c(), j(L, 1), L.m(u, null)) : L && (ot(), V(L, 1, 1, () => {
2033
+ 524288 && Z(L, 1) : (L = li(), L.c(), Z(L, 1), L.m(u, null)) : L && (ot(), V(L, 1, 1, () => {
2034
2034
  L = null;
2035
2035
  }), st()), (!E || G[0] & /*searchValue*/
2036
- 2) && oe(
2036
+ 2) && re(
2037
2037
  u,
2038
2038
  "displayable",
2039
2039
  /*searchValue*/
2040
2040
  M[1] !== ""
2041
2041
  ), /*enableReverse*/
2042
2042
  M[5] === !0 ? w ? (w.p(M, G), G[0] & /*enableReverse*/
2043
- 32 && j(w, 1)) : (w = ui(M), w.c(), j(w, 1), w.m(n, g)) : w && (ot(), V(w, 1, 1, () => {
2043
+ 32 && Z(w, 1)) : (w = ui(M), w.c(), Z(w, 1), w.m(n, g)) : w && (ot(), V(w, 1, 1, () => {
2044
2044
  w = null;
2045
2045
  }), st()), I && I.p && (!E || G[1] & /*$$scope*/
2046
2046
  268435456) && gn(
@@ -2061,15 +2061,15 @@ function yr(i) {
2061
2061
  ),
2062
2062
  null
2063
2063
  );
2064
- let $ = b;
2065
- b = O(M), b === $ ? ~b && z[b].p(M, G) : (v && (ot(), V(z[$], 1, 1, () => {
2064
+ let $ = v;
2065
+ v = O(M), v === $ ? ~v && z[v].p(M, G) : (b && (ot(), V(z[$], 1, 1, () => {
2066
2066
  z[$] = null;
2067
- }), st()), ~b ? (v = z[b], v ? v.p(M, G) : (v = z[b] = D[b](M), v.c()), j(v, 1), v.m(t, null)) : v = null), (!E || G[0] & /*className*/
2067
+ }), st()), ~v ? (b = z[v], b ? b.p(M, G) : (b = z[v] = D[v](M), b.c()), Z(b, 1), b.m(t, null)) : b = null), (!E || G[0] & /*className*/
2068
2068
  4 && S !== (S = Ht(
2069
2069
  /*className*/
2070
2070
  M[2]
2071
- ) + " svelte-qnu791")) && y(t, "class", S), (!E || G[0] & /*className, collapsed, searchValue*/
2072
- 22) && oe(
2071
+ ) + " svelte-1uvos7g")) && y(t, "class", S), (!E || G[0] & /*className, collapsed, searchValue*/
2072
+ 22) && re(
2073
2073
  t,
2074
2074
  "can-collapse",
2075
2075
  /*collapsed*/
@@ -2078,13 +2078,13 @@ function yr(i) {
2078
2078
  );
2079
2079
  },
2080
2080
  i(M) {
2081
- E || (j(x), j(o.$$.fragment, M), j(a.$$.fragment, M), j(L), j(w), j(I, M), j(v), E = !0);
2081
+ E || (Z(x), Z(o.$$.fragment, M), Z(a.$$.fragment, M), Z(L), Z(w), Z(I, M), Z(b), E = !0);
2082
2082
  },
2083
2083
  o(M) {
2084
- V(x), V(o.$$.fragment, M), V(a.$$.fragment, M), V(L), V(w), V(I, M), V(v), E = !1;
2084
+ V(x), V(o.$$.fragment, M), V(a.$$.fragment, M), V(L), V(w), V(I, M), V(b), E = !1;
2085
2085
  },
2086
2086
  d(M) {
2087
- M && (B(e), B(t)), ge(o), i[62](null), ge(a), L && L.d(), w && w.d(), I && I.d(M), ~b && z[b].d(), _ = !1, ye(C);
2087
+ M && (B(e), B(t)), ge(o), i[62](null), ge(a), L && L.d(), w && w.d(), I && I.d(M), ~v && z[v].d(), _ = !1, ye(C);
2088
2088
  }
2089
2089
  };
2090
2090
  }
@@ -2114,7 +2114,7 @@ function pr(i, e, t) {
2114
2114
  "poi.restaurant": 18,
2115
2115
  "poi.aerodrome": 13
2116
2116
  };
2117
- let { class: s = void 0 } = e, { apiKey: c } = e, { bbox: u = void 0 } = e, { clearButtonTitle: h = "clear" } = e, { clearOnBlur: a = !1 } = e, { collapsed: f = !1 } = e, { country: d = void 0 } = e, { debounceSearch: g = 200 } = e, { enableReverse: p = !1 } = e, { errorMessage: b = "Something went wrong…" } = e, { filter: v = () => !0 } = e, { flyTo: S = !0 } = e, { fuzzyMatch: E = !0 } = e, { language: _ = void 0 } = e, { limit: C = void 0 } = e, { mapController: x = void 0 } = e, { minLength: L = 2 } = e, { noResultsMessage: w = "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: k = "Search" } = e, { proximity: I = [{ type: "server-geolocation" }] } = e, { reverseActive: D = p === "always" } = e, { reverseButtonTitle: z = "toggle reverse geocoding" } = e, { searchValue: O = "" } = e, { showFullGeometry: M = !0 } = e, { showPlaceType: G = "ifNeeded" } = e, { showResultsWhileTyping: $ = !0 } = e, { selectFirst: ie = !0 } = e, { flyToSelected: ct = !1 } = e, { markerOnSelected: Xe = !0 } = e, { types: Ce = void 0 } = e, { excludeTypes: Ke = !1 } = e, { zoom: Te = l } = e, { maxZoom: Je = void 0 } = e, { apiUrl: ft = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: dt = {} } = e, { iconsBaseUrl: Ft = "https://cdn.maptiler.com/maptiler-geocoding-control/v1.4.2-dev.1/icons/" } = e, { adjustUrlQuery: ht = () => {
2117
+ let { class: s = void 0 } = e, { apiKey: c } = e, { bbox: u = void 0 } = e, { clearButtonTitle: h = "clear" } = e, { clearOnBlur: a = !1 } = e, { collapsed: f = !1 } = e, { country: d = void 0 } = e, { debounceSearch: g = 200 } = e, { enableReverse: p = !1 } = e, { errorMessage: v = "Something went wrong…" } = e, { filter: b = () => !0 } = e, { flyTo: S = !0 } = e, { fuzzyMatch: E = !0 } = e, { language: _ = void 0 } = e, { limit: C = void 0 } = e, { mapController: x = void 0 } = e, { minLength: L = 2 } = e, { noResultsMessage: w = "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: k = "Search" } = e, { proximity: I = [{ type: "server-geolocation" }] } = e, { reverseActive: D = p === "always" } = e, { reverseButtonTitle: z = "toggle reverse geocoding" } = e, { searchValue: O = "" } = e, { showFullGeometry: M = !0 } = e, { showPlaceType: G = "ifNeeded" } = e, { showResultsWhileTyping: $ = !0 } = e, { selectFirst: oe = !0 } = e, { flyToSelected: ct = !1 } = e, { markerOnSelected: Ye = !0 } = e, { types: Xe = void 0 } = e, { excludeTypes: Ke = !1 } = e, { zoom: Pe = l } = e, { maxZoom: Je = void 0 } = e, { apiUrl: ft = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: dt = {} } = e, { iconsBaseUrl: Ft = "https://cdn.maptiler.com/maptiler-geocoding-control/v1.4.2-dev.2/icons/" } = e, { adjustUrlQuery: ht = () => {
2118
2118
  } } = e;
2119
2119
  function zi() {
2120
2120
  ae.focus();
@@ -2122,29 +2122,29 @@ function pr(i, e, t) {
2122
2122
  function Gi() {
2123
2123
  ae.blur();
2124
2124
  }
2125
- function zt(m, q = !0, H = !1) {
2126
- t(1, O = m), q ? (t(15, U = -1), qt()) : (pt(!H, H), setTimeout(() => {
2125
+ function zt(m, j = !0, H = !1) {
2126
+ t(1, O = m), j ? (t(15, U = -1), jt()) : (pt(!H, H), setTimeout(() => {
2127
2127
  ae.focus(), ae.select();
2128
2128
  }));
2129
2129
  }
2130
- function qi() {
2130
+ function ji() {
2131
2131
  t(14, R = void 0), t(56, N = void 0), t(15, U = -1);
2132
2132
  }
2133
- function ji() {
2134
- t(55, Z = []), t(56, N = void 0);
2133
+ function Zi() {
2134
+ t(55, q = []), t(56, N = void 0);
2135
2135
  }
2136
- let Re = !1, R, Z, N, Gt = "", ae, U = -1, ce, $e = [], ke, Ie, et, mt;
2137
- const Zi = /* @__PURE__ */ new Set(), pe = En();
2136
+ let Te = !1, R, q, N, Gt = "", ae, U = -1, ce, $e = [], Ce, Re, et, mt;
2137
+ const qi = /* @__PURE__ */ new Set(), pe = En();
2138
2138
  _n(() => {
2139
2139
  x && (x.setEventHandler(void 0), x.indicateReverse(!1), x.setSelectedMarker(-1), x.setMarkers(void 0, void 0));
2140
2140
  });
2141
- function qt(m) {
2142
- if (Ie && (clearTimeout(Ie), Ie = void 0), U > -1 && R)
2143
- t(56, N = R[U]), t(1, O = N.place_type[0] === "reverse" ? N.place_name : N.place_name.replace(/,.*/, "")), t(18, ce = void 0), t(55, Z = void 0), t(15, U = -1);
2141
+ function jt(m) {
2142
+ if (Re && (clearTimeout(Re), Re = void 0), U > -1 && R)
2143
+ t(56, N = R[U]), t(1, O = N.place_type[0] === "reverse" ? N.place_name : N.place_name.replace(/,.*/, "")), t(18, ce = void 0), t(55, q = void 0), t(15, U = -1);
2144
2144
  else if (O) {
2145
- const q = m || !gt(O);
2145
+ const j = m || !gt(O);
2146
2146
  yt(O, { exact: !0 }).then(() => {
2147
- t(55, Z = R), t(56, N = void 0), q && Qi();
2147
+ t(55, q = R), t(56, N = void 0), j && Qi();
2148
2148
  }).catch((H) => t(18, ce = H));
2149
2149
  }
2150
2150
  }
@@ -2155,28 +2155,28 @@ function pr(i, e, t) {
2155
2155
  return !1;
2156
2156
  }
2157
2157
  }
2158
- async function yt(m, { byId: q = !1, exact: H = !1 } = {}) {
2159
- t(18, ce = void 0), ke == null || ke.abort();
2158
+ async function yt(m, { byId: j = !1, exact: H = !1 } = {}) {
2159
+ t(18, ce = void 0), Ce == null || Ce.abort();
2160
2160
  const ee = new AbortController();
2161
- t(19, ke = ee);
2161
+ t(19, Ce = ee);
2162
2162
  try {
2163
2163
  const P = gt(m), Q = new URLSearchParams();
2164
- if (_ !== void 0 && Q.set("language", Array.isArray(_) ? _.join(",") : _ ?? ""), Ce && Q.set("types", Ce.join(",")), Ke && Q.set("excludeTypes", String(Ke)), u && Q.set("bbox", u.map((tt) => tt.toFixed(6)).join(",")), d && Q.set("country", Array.isArray(d) ? d.join(",") : d), !q && !P) {
2164
+ if (_ !== void 0 && Q.set("language", Array.isArray(_) ? _.join(",") : _ ?? ""), Xe && Q.set("types", Xe.join(",")), Ke && Q.set("excludeTypes", String(Ke)), u && Q.set("bbox", u.map((tt) => tt.toFixed(6)).join(",")), d && Q.set("country", Array.isArray(d) ? d.join(",") : d), !j && !P) {
2165
2165
  const tt = await er(x, I, ee);
2166
2166
  tt && Q.set("proximity", tt), (H || !$) && Q.set("autocomplete", "false"), Q.set("fuzzyMatch", String(E));
2167
2167
  }
2168
- C !== void 0 && (!P || (Ce == null ? void 0 : Ce.length) === 1) && Q.set("limit", String(C)), Q.set("key", c), ht(Q);
2168
+ C !== void 0 && Q.set("limit", String(C)), Q.set("key", c), ht(Q);
2169
2169
  const fe = ft + "/" + encodeURIComponent(P ? P.decimalLongitude + "," + P.decimalLatitude : m) + ".json?" + Q.toString();
2170
2170
  if (fe === Gt) {
2171
- q ? (t(14, R = void 0), t(56, N = $e[0])) : t(14, R = $e);
2171
+ j ? (t(14, R = void 0), t(56, N = $e[0])) : t(14, R = $e);
2172
2172
  return;
2173
2173
  }
2174
2174
  Gt = fe;
2175
- const vt = await fetch(fe, { signal: ee.signal, ...dt });
2176
- if (!vt.ok)
2177
- throw new Error(await vt.text());
2178
- const wt = await vt.json();
2179
- pe("response", { url: fe, featureCollection: wt }), q ? (t(14, R = void 0), t(56, N = wt.features[0]), $e = [N]) : (t(14, R = wt.features.filter(v)), P && R.unshift({
2175
+ const bt = await fetch(fe, { signal: ee.signal, ...dt });
2176
+ if (!bt.ok)
2177
+ throw new Error(await bt.text());
2178
+ const wt = await bt.json();
2179
+ pe("response", { url: fe, featureCollection: wt }), j ? (t(14, R = void 0), t(56, N = wt.features[0]), $e = [N]) : (t(14, R = wt.features.filter(b)), P && R.unshift({
2180
2180
  type: "Feature",
2181
2181
  properties: {},
2182
2182
  id: "reverse_" + P.decimalLongitude + "_" + P.decimalLatitude,
@@ -2200,37 +2200,37 @@ function pr(i, e, t) {
2200
2200
  return;
2201
2201
  throw P;
2202
2202
  } finally {
2203
- ee === ke && t(19, ke = void 0);
2203
+ ee === Ce && t(19, Ce = void 0);
2204
2204
  }
2205
2205
  }
2206
2206
  function Qi() {
2207
2207
  var ee;
2208
- if (!(Z != null && Z.length) || !S)
2208
+ if (!(q != null && q.length) || !S)
2209
2209
  return;
2210
- const m = [180, 90, -180, -90], q = !Z.some((P) => !P.matching_text);
2210
+ const m = [180, 90, -180, -90], j = !q.some((P) => !P.matching_text);
2211
2211
  let H;
2212
- for (const P of Z) {
2213
- const Q = De(P);
2214
- if (H = Je ?? (H === void 0 ? Q : Q === void 0 ? H : Math.max(H, Q)), q || !P.matching_text)
2212
+ for (const P of q) {
2213
+ const Q = Be(P);
2214
+ if (H = Je ?? (H === void 0 ? Q : Q === void 0 ? H : Math.max(H, Q)), j || !P.matching_text)
2215
2215
  for (const fe of [0, 1, 2, 3])
2216
2216
  m[fe] = Math[fe < 2 ? "min" : "max"](m[fe], ((ee = P.bbox) == null ? void 0 : ee[fe]) ?? P.center[fe % 2]);
2217
2217
  }
2218
- x && Z.length > 0 && (N && m[0] === m[2] && m[1] === m[3] ? x.flyTo(N.center, De(N)) : x.fitBounds(Ze(m), 50, H));
2218
+ x && q.length > 0 && (N && m[0] === m[2] && m[1] === m[3] ? x.flyTo(N.center, Be(N)) : x.fitBounds(Ze(m), 50, H));
2219
2219
  }
2220
- function De(m) {
2220
+ function Be(m) {
2221
2221
  var H;
2222
2222
  if (!m.bbox || m.bbox[0] !== m.bbox[2] && m.bbox[1] !== m.bbox[3])
2223
2223
  return;
2224
- if (typeof Te == "number")
2225
- return m.id.startsWith("poi.") || m.id.startsWith("address.") ? Je : Te;
2226
- const q = m.id.replace(/\..*/, "");
2224
+ if (typeof Pe == "number")
2225
+ return m.id.startsWith("poi.") || m.id.startsWith("address.") ? Je : Pe;
2226
+ const j = m.id.replace(/\..*/, "");
2227
2227
  return (Array.isArray((H = m.properties) == null ? void 0 : H.categories) ? m.properties.categories.reduce(
2228
2228
  (ee, P) => {
2229
- const Q = Te[q + "." + P];
2229
+ const Q = Pe[j + "." + P];
2230
2230
  return ee === void 0 ? Q : Q === void 0 ? ee : Math.max(ee, Q);
2231
2231
  },
2232
2232
  void 0
2233
- ) : void 0) ?? Te[q];
2233
+ ) : void 0) ?? Pe[j];
2234
2234
  }
2235
2235
  function Hi(m) {
2236
2236
  t(0, D = p === "always"), t(14, R = void 0), t(56, N = void 0), t(15, U = -1), zt(m[1].toFixed(6) + ", " + $n(m[0], [-180, 180], !0).toFixed(6), !1, !0);
@@ -2238,15 +2238,15 @@ function pr(i, e, t) {
2238
2238
  function Vi(m) {
2239
2239
  if (!R)
2240
2240
  return;
2241
- let q = m.key === "ArrowDown" ? 1 : m.key === "ArrowUp" ? -1 : 0;
2242
- q && (U === (ie ? 0 : -1) && q === -1 && t(15, U = R.length), t(15, U += q), U >= R.length && t(15, U = -1), U < 0 && ie && t(15, U = 0), m.preventDefault());
2241
+ let j = m.key === "ArrowDown" ? 1 : m.key === "ArrowUp" ? -1 : 0;
2242
+ j && (U === (oe ? 0 : -1) && j === -1 && t(15, U = R.length), t(15, U += j), U >= R.length && t(15, U = -1), U < 0 && oe && t(15, U = 0), m.preventDefault());
2243
2243
  }
2244
- function pt(m = !0, q = !1) {
2245
- if (t(18, ce = void 0), $ || q) {
2246
- if (Ie && clearTimeout(Ie), O.length < L)
2244
+ function pt(m = !0, j = !1) {
2245
+ if (t(18, ce = void 0), $ || j) {
2246
+ if (Re && clearTimeout(Re), O.length < L)
2247
2247
  return;
2248
2248
  const H = O;
2249
- Ie = window.setTimeout(
2249
+ Re = window.setTimeout(
2250
2250
  () => {
2251
2251
  yt(H).catch((ee) => t(18, ce = ee));
2252
2252
  },
@@ -2255,7 +2255,7 @@ function pr(i, e, t) {
2255
2255
  } else
2256
2256
  t(14, R = void 0), t(18, ce = void 0);
2257
2257
  }
2258
- function bt(m) {
2258
+ function vt(m) {
2259
2259
  t(56, N = m), t(1, O = m.place_name), t(15, U = -1);
2260
2260
  }
2261
2261
  const Yi = () => ae.focus();
@@ -2265,30 +2265,30 @@ function pr(i, e, t) {
2265
2265
  });
2266
2266
  }
2267
2267
  function Ki() {
2268
- O = this.value, t(1, O), t(13, Re), t(28, a);
2268
+ O = this.value, t(1, O), t(13, Te), t(28, a);
2269
2269
  }
2270
- const Ji = () => t(13, Re = !0), $i = () => t(13, Re = !1), en = () => pt(), tn = () => {
2270
+ const Ji = () => t(13, Te = !0), $i = () => t(13, Te = !1), en = () => pt(), tn = () => {
2271
2271
  t(1, O = ""), ae.focus();
2272
- }, nn = () => t(0, D = !D), rn = () => t(18, ce = void 0), on = (m) => t(15, U = m), sn = (m) => bt(m), ln = () => {
2273
- ie || t(15, U = -1);
2272
+ }, nn = () => t(0, D = !D), rn = () => t(18, ce = void 0), on = (m) => t(15, U = m), sn = (m) => vt(m), ln = () => {
2273
+ oe || t(15, U = -1);
2274
2274
  }, un = () => {
2275
2275
  };
2276
2276
  return i.$$set = (m) => {
2277
- "class" in m && t(2, s = m.class), "apiKey" in m && t(26, c = m.apiKey), "bbox" in m && t(27, u = m.bbox), "clearButtonTitle" in m && t(3, h = m.clearButtonTitle), "clearOnBlur" in m && t(28, a = m.clearOnBlur), "collapsed" in m && t(4, f = m.collapsed), "country" in m && t(29, d = m.country), "debounceSearch" in m && t(30, g = m.debounceSearch), "enableReverse" in m && t(5, p = m.enableReverse), "errorMessage" in m && t(6, b = m.errorMessage), "filter" in m && t(31, v = m.filter), "flyTo" in m && t(32, S = m.flyTo), "fuzzyMatch" in m && t(33, E = m.fuzzyMatch), "language" in m && t(34, _ = m.language), "limit" in m && t(35, C = m.limit), "mapController" in m && t(36, x = m.mapController), "minLength" in m && t(37, L = m.minLength), "noResultsMessage" in m && t(7, w = m.noResultsMessage), "placeholder" in m && t(8, k = m.placeholder), "proximity" in m && t(38, I = m.proximity), "reverseActive" in m && t(0, D = m.reverseActive), "reverseButtonTitle" in m && t(9, z = m.reverseButtonTitle), "searchValue" in m && t(1, O = m.searchValue), "showFullGeometry" in m && t(39, M = m.showFullGeometry), "showPlaceType" in m && t(10, G = m.showPlaceType), "showResultsWhileTyping" in m && t(40, $ = m.showResultsWhileTyping), "selectFirst" in m && t(11, ie = m.selectFirst), "flyToSelected" in m && t(41, ct = m.flyToSelected), "markerOnSelected" in m && t(42, Xe = m.markerOnSelected), "types" in m && t(43, Ce = m.types), "excludeTypes" in m && t(44, Ke = m.excludeTypes), "zoom" in m && t(45, Te = m.zoom), "maxZoom" in m && t(46, Je = m.maxZoom), "apiUrl" in m && t(47, ft = m.apiUrl), "fetchParameters" in m && t(48, dt = m.fetchParameters), "iconsBaseUrl" in m && t(12, Ft = m.iconsBaseUrl), "adjustUrlQuery" in m && t(49, ht = m.adjustUrlQuery), "$$scope" in m && t(59, o = m.$$scope);
2277
+ "class" in m && t(2, s = m.class), "apiKey" in m && t(26, c = m.apiKey), "bbox" in m && t(27, u = m.bbox), "clearButtonTitle" in m && t(3, h = m.clearButtonTitle), "clearOnBlur" in m && t(28, a = m.clearOnBlur), "collapsed" in m && t(4, f = m.collapsed), "country" in m && t(29, d = m.country), "debounceSearch" in m && t(30, g = m.debounceSearch), "enableReverse" in m && t(5, p = m.enableReverse), "errorMessage" in m && t(6, v = m.errorMessage), "filter" in m && t(31, b = m.filter), "flyTo" in m && t(32, S = m.flyTo), "fuzzyMatch" in m && t(33, E = m.fuzzyMatch), "language" in m && t(34, _ = m.language), "limit" in m && t(35, C = m.limit), "mapController" in m && t(36, x = m.mapController), "minLength" in m && t(37, L = m.minLength), "noResultsMessage" in m && t(7, w = m.noResultsMessage), "placeholder" in m && t(8, k = m.placeholder), "proximity" in m && t(38, I = m.proximity), "reverseActive" in m && t(0, D = m.reverseActive), "reverseButtonTitle" in m && t(9, z = m.reverseButtonTitle), "searchValue" in m && t(1, O = m.searchValue), "showFullGeometry" in m && t(39, M = m.showFullGeometry), "showPlaceType" in m && t(10, G = m.showPlaceType), "showResultsWhileTyping" in m && t(40, $ = m.showResultsWhileTyping), "selectFirst" in m && t(11, oe = m.selectFirst), "flyToSelected" in m && t(41, ct = m.flyToSelected), "markerOnSelected" in m && t(42, Ye = m.markerOnSelected), "types" in m && t(43, Xe = m.types), "excludeTypes" in m && t(44, Ke = m.excludeTypes), "zoom" in m && t(45, Pe = m.zoom), "maxZoom" in m && t(46, Je = m.maxZoom), "apiUrl" in m && t(47, ft = m.apiUrl), "fetchParameters" in m && t(48, dt = m.fetchParameters), "iconsBaseUrl" in m && t(12, Ft = m.iconsBaseUrl), "adjustUrlQuery" in m && t(49, ht = m.adjustUrlQuery), "$$scope" in m && t(59, o = m.$$scope);
2278
2278
  }, i.$$.update = () => {
2279
2279
  if (i.$$.dirty[0] & /*enableReverse*/
2280
2280
  32 && t(0, D = p === "always"), i.$$.dirty[0] & /*focused, clearOnBlur*/
2281
2281
  268443648 && setTimeout(() => {
2282
- t(16, et = Re), a && !Re && t(1, O = "");
2282
+ t(16, et = Te), a && !Te && t(1, O = "");
2283
2283
  }), i.$$.dirty[0] & /*searchValue, listFeatures*/
2284
2284
  16386 | i.$$.dirty[1] & /*minLength*/
2285
- 64 && O.length < L && (t(56, N = void 0), t(14, R = void 0), t(18, ce = void 0), t(55, Z = R)), i.$$.dirty[1] & /*showFullGeometry, picked*/
2285
+ 64 && O.length < L && (t(56, N = void 0), t(14, R = void 0), t(18, ce = void 0), t(55, q = R)), i.$$.dirty[1] & /*showFullGeometry, picked*/
2286
2286
  33554688 && M && N && !N.address && N.geometry.type === "Point" && N.place_type[0] !== "reverse" && yt(N.id, { byId: !0 }).catch((m) => t(18, ce = m)), i.$$.dirty[1] & /*mapController, picked, prevIdToFly, flyTo*/
2287
- 100663330 && (x && N && N.id !== mt && S && (!N.bbox || N.bbox[0] === N.bbox[2] && N.bbox[1] === N.bbox[3] ? x.flyTo(N.center, De(N)) : x.fitBounds(Ze(N.bbox), 50, De(N)), t(14, R = void 0), t(55, Z = void 0), t(15, U = -1)), t(57, mt = N == null ? void 0 : N.id)), i.$$.dirty[0] & /*selectFirst, listFeatures*/
2288
- 18432 && ie && R != null && R.length && t(15, U = 0), i.$$.dirty[0] & /*selectFirst, searchValue*/
2289
- 2050 && (ie || t(15, U = -1)), i.$$.dirty[0] & /*listFeatures*/
2287
+ 100663330 && (x && N && N.id !== mt && S && (!N.bbox || N.bbox[0] === N.bbox[2] && N.bbox[1] === N.bbox[3] ? x.flyTo(N.center, Be(N)) : x.fitBounds(Ze(N.bbox), 50, Be(N)), t(14, R = void 0), t(55, q = void 0), t(15, U = -1)), t(57, mt = N == null ? void 0 : N.id)), i.$$.dirty[0] & /*selectFirst, listFeatures*/
2288
+ 18432 && oe && R != null && R.length && t(15, U = 0), i.$$.dirty[0] & /*searchValue*/
2289
+ 2 && t(15, U = -1), i.$$.dirty[0] & /*listFeatures*/
2290
2290
  16384 | i.$$.dirty[1] & /*markedFeatures*/
2291
- 16777216 && Z !== R && t(55, Z = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
2291
+ 16777216 && q !== R && t(55, q = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
2292
2292
  81921 | i.$$.dirty[1] & /*mapController, markedFeatures*/
2293
2293
  16777248 && x && x.setEventHandler((m) => {
2294
2294
  switch (m.type) {
@@ -2297,25 +2297,25 @@ function pr(i, e, t) {
2297
2297
  break;
2298
2298
  case "markerClick":
2299
2299
  {
2300
- const q = R == null ? void 0 : R.find((H) => H.id === m.id);
2301
- q && bt(q);
2300
+ const j = R == null ? void 0 : R.find((H) => H.id === m.id);
2301
+ j && vt(j);
2302
2302
  }
2303
2303
  break;
2304
2304
  case "markerMouseEnter":
2305
- Z && t(15, U = et ? (R == null ? void 0 : R.findIndex((q) => q.id === m.id)) ?? -1 : -1);
2305
+ q && t(15, U = et ? (R == null ? void 0 : R.findIndex((j) => j.id === m.id)) ?? -1 : -1);
2306
2306
  break;
2307
2307
  case "markerMouseLeave":
2308
- Z && t(15, U = -1);
2308
+ q && t(15, U = -1);
2309
2309
  break;
2310
2310
  }
2311
2311
  }), i.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
2312
2312
  49152 && t(58, n = R == null ? void 0 : R[U]), i.$$.dirty[1] & /*mapController, selected, flyTo, flyToSelected*/
2313
- 134218786 && x && n && S && ct && x.flyTo(n.center, De(n)), i.$$.dirty[1] & /*markerOnSelected, mapController*/
2314
- 2080 && (Xe || x == null || x.setMarkers(void 0, void 0)), i.$$.dirty[1] & /*mapController, markerOnSelected, markedFeatures, selected*/
2315
- 150997024 && x && Xe && !Z && (x.setMarkers(n ? [n] : void 0, void 0), x.setSelectedMarker(n ? 0 : -1)), i.$$.dirty[1] & /*mapController, markedFeatures, picked*/
2316
- 50331680 && x && x.setMarkers(Z, N), i.$$.dirty[0] & /*selectedItemIndex*/
2313
+ 134218786 && x && n && S && ct && x.flyTo(n.center, Be(n)), i.$$.dirty[1] & /*markerOnSelected, mapController*/
2314
+ 2080 && (Ye || x == null || x.setMarkers(void 0, void 0)), i.$$.dirty[1] & /*mapController, markerOnSelected, markedFeatures, selected*/
2315
+ 150997024 && x && Ye && !q && (x.setMarkers(n ? [n] : void 0, void 0), x.setSelectedMarker(n ? 0 : -1)), i.$$.dirty[1] & /*mapController, markedFeatures, picked*/
2316
+ 50331680 && x && x.setMarkers(q, N), i.$$.dirty[0] & /*selectedItemIndex*/
2317
2317
  32768 | i.$$.dirty[1] & /*markedFeatures, mapController*/
2318
- 16777248 && Z && x && x.setSelectedMarker(U), i.$$.dirty[0] & /*searchValue*/
2318
+ 16777248 && q && x && x.setSelectedMarker(U), i.$$.dirty[0] & /*searchValue*/
2319
2319
  2 | i.$$.dirty[1] & /*mapController*/
2320
2320
  32 && x) {
2321
2321
  const m = gt(O);
@@ -2326,7 +2326,7 @@ function pr(i, e, t) {
2326
2326
  33554432 && pe("pick", N), i.$$.dirty[0] & /*focusedDelayed, listFeatures*/
2327
2327
  81920 && pe("optionsVisibilityChange", et && !!R), i.$$.dirty[0] & /*listFeatures*/
2328
2328
  16384 && pe("featuresListed", R), i.$$.dirty[1] & /*markedFeatures*/
2329
- 16777216 && pe("featuresMarked", Z), i.$$.dirty[0] & /*reverseActive*/
2329
+ 16777216 && pe("featuresMarked", q), i.$$.dirty[0] & /*reverseActive*/
2330
2330
  1 && pe("reverseToggle", D), i.$$.dirty[0] & /*searchValue*/
2331
2331
  2 && pe("queryChange", O), i.$$.dirty[0] & /*reverseActive*/
2332
2332
  1 | i.$$.dirty[1] & /*mapController*/
@@ -2338,32 +2338,32 @@ function pr(i, e, t) {
2338
2338
  h,
2339
2339
  f,
2340
2340
  p,
2341
- b,
2341
+ v,
2342
2342
  w,
2343
2343
  k,
2344
2344
  z,
2345
2345
  G,
2346
- ie,
2346
+ oe,
2347
2347
  Ft,
2348
- Re,
2348
+ Te,
2349
2349
  R,
2350
2350
  U,
2351
2351
  et,
2352
2352
  ae,
2353
2353
  ce,
2354
- ke,
2355
- Zi,
2356
- qt,
2354
+ Ce,
2355
+ qi,
2356
+ jt,
2357
2357
  Vi,
2358
2358
  pt,
2359
- bt,
2359
+ vt,
2360
2360
  l,
2361
2361
  c,
2362
2362
  u,
2363
2363
  a,
2364
2364
  d,
2365
2365
  g,
2366
- v,
2366
+ b,
2367
2367
  S,
2368
2368
  E,
2369
2369
  _,
@@ -2374,10 +2374,10 @@ function pr(i, e, t) {
2374
2374
  M,
2375
2375
  $,
2376
2376
  ct,
2377
+ Ye,
2377
2378
  Xe,
2378
- Ce,
2379
2379
  Ke,
2380
- Te,
2380
+ Pe,
2381
2381
  Je,
2382
2382
  ft,
2383
2383
  dt,
@@ -2385,9 +2385,9 @@ function pr(i, e, t) {
2385
2385
  zi,
2386
2386
  Gi,
2387
2387
  zt,
2388
- qi,
2389
2388
  ji,
2390
- Z,
2389
+ Zi,
2390
+ q,
2391
2391
  N,
2392
2392
  mt,
2393
2393
  n,
@@ -2408,7 +2408,7 @@ function pr(i, e, t) {
2408
2408
  un
2409
2409
  ];
2410
2410
  }
2411
- let br = class extends Me {
2411
+ let vr = class extends Me {
2412
2412
  constructor(e) {
2413
2413
  super(), xe(
2414
2414
  this,
@@ -2484,7 +2484,7 @@ let br = class extends Me {
2484
2484
  return this.$$.ctx[54];
2485
2485
  }
2486
2486
  };
2487
- function Qe(i, e, t = {}) {
2487
+ function qe(i, e, t = {}) {
2488
2488
  const n = { type: "Feature" };
2489
2489
  return (t.id === 0 || t.id) && (n.id = t.id), t.bbox && (n.bbox = t.bbox), n.properties = e || {}, n.geometry = i, n;
2490
2490
  }
@@ -2500,25 +2500,25 @@ function At(i, e, t = {}) {
2500
2500
  if (r[r.length - 1][o] !== r[0][o])
2501
2501
  throw new Error("First and last Position are not equivalent.");
2502
2502
  }
2503
- return Qe({
2503
+ return qe({
2504
2504
  type: "Polygon",
2505
2505
  coordinates: i
2506
2506
  }, e, t);
2507
2507
  }
2508
- function He(i, e = {}) {
2508
+ function Qe(i, e = {}) {
2509
2509
  const t = { type: "FeatureCollection" };
2510
2510
  return e.id && (t.id = e.id), e.bbox && (t.bbox = e.bbox), t.features = i, t;
2511
2511
  }
2512
2512
  function Ii(i, e, t = {}) {
2513
- return Qe({
2513
+ return qe({
2514
2514
  type: "MultiPolygon",
2515
2515
  coordinates: i
2516
2516
  }, e, t);
2517
2517
  }
2518
2518
  function Oi(i, e, t) {
2519
2519
  if (i !== null)
2520
- for (var n, r, o, l, s, c, u, h = 0, a = 0, f, d = i.type, g = d === "FeatureCollection", p = d === "Feature", b = g ? i.features.length : 1, v = 0; v < b; v++) {
2521
- u = g ? i.features[v].geometry : p ? i.geometry : i, f = u ? u.type === "GeometryCollection" : !1, s = f ? u.geometries.length : 1;
2520
+ for (var n, r, o, l, s, c, u, h = 0, a = 0, f, d = i.type, g = d === "FeatureCollection", p = d === "Feature", v = g ? i.features.length : 1, b = 0; b < v; b++) {
2521
+ u = g ? i.features[b].geometry : p ? i.geometry : i, f = u ? u.type === "GeometryCollection" : !1, s = f ? u.geometries.length : 1;
2522
2522
  for (var S = 0; S < s; S++) {
2523
2523
  var E = 0, _ = 0;
2524
2524
  if (l = f ? u.geometries[S] : u, l !== null) {
@@ -2531,7 +2531,7 @@ function Oi(i, e, t) {
2531
2531
  if (e(
2532
2532
  c,
2533
2533
  a,
2534
- v,
2534
+ b,
2535
2535
  E,
2536
2536
  _
2537
2537
  ) === !1)
@@ -2544,7 +2544,7 @@ function Oi(i, e, t) {
2544
2544
  if (e(
2545
2545
  c[n],
2546
2546
  a,
2547
- v,
2547
+ b,
2548
2548
  E,
2549
2549
  _
2550
2550
  ) === !1)
@@ -2560,7 +2560,7 @@ function Oi(i, e, t) {
2560
2560
  if (e(
2561
2561
  c[n][r],
2562
2562
  a,
2563
- v,
2563
+ b,
2564
2564
  E,
2565
2565
  _
2566
2566
  ) === !1)
@@ -2578,7 +2578,7 @@ function Oi(i, e, t) {
2578
2578
  if (e(
2579
2579
  c[n][r][o],
2580
2580
  a,
2581
- v,
2581
+ b,
2582
2582
  E,
2583
2583
  _
2584
2584
  ) === !1)
@@ -2653,7 +2653,7 @@ function Bt(i, e) {
2653
2653
  f++;
2654
2654
  }
2655
2655
  }
2656
- function vr(i, e) {
2656
+ function br(i, e) {
2657
2657
  Bt(i, function(t, n, r, o, l) {
2658
2658
  var s = t === null ? null : t.type;
2659
2659
  switch (s) {
@@ -2662,7 +2662,7 @@ function vr(i, e) {
2662
2662
  case "LineString":
2663
2663
  case "Polygon":
2664
2664
  return e(
2665
- Qe(t, r, { bbox: o, id: l }),
2665
+ qe(t, r, { bbox: o, id: l }),
2666
2666
  n,
2667
2667
  0
2668
2668
  ) === !1 ? !1 : void 0;
@@ -2684,7 +2684,7 @@ function vr(i, e) {
2684
2684
  type: c,
2685
2685
  coordinates: h
2686
2686
  };
2687
- if (e(Qe(a, r), n, u) === !1)
2687
+ if (e(qe(a, r), n, u) === !1)
2688
2688
  return !1;
2689
2689
  }
2690
2690
  });
@@ -2853,7 +2853,7 @@ var Le = (
2853
2853
  function xr(i, e) {
2854
2854
  return i > e ? 1 : i < e ? -1 : 0;
2855
2855
  }
2856
- function be(i, e, t) {
2856
+ function ve(i, e, t) {
2857
2857
  for (var n = new Le(null, null), r = n, o = n; ; ) {
2858
2858
  var l = t(i, e.key);
2859
2859
  if (l < 0) {
@@ -2883,21 +2883,21 @@ function St(i, e, t, n) {
2883
2883
  var r = new Le(i, e);
2884
2884
  if (t === null)
2885
2885
  return r.left = r.right = null, r;
2886
- t = be(i, t, n);
2886
+ t = ve(i, t, n);
2887
2887
  var o = n(i, t.key);
2888
2888
  return o < 0 ? (r.left = t.left, r.right = t, t.left = null) : o >= 0 && (r.right = t.right, r.left = t, t.right = null), r;
2889
2889
  }
2890
2890
  function ci(i, e, t) {
2891
2891
  var n = null, r = null;
2892
2892
  if (e) {
2893
- e = be(i, e, t);
2893
+ e = ve(i, e, t);
2894
2894
  var o = t(e.key, i);
2895
2895
  o === 0 ? (n = e.left, r = e.right) : o < 0 ? (r = e.right, e.right = null, n = e) : (n = e.left, e.left = null, r = e);
2896
2896
  }
2897
2897
  return { left: n, right: r };
2898
2898
  }
2899
2899
  function Mr(i, e, t) {
2900
- return e === null ? i : (i === null || (e = be(i.key, e, t), e.left = i), e);
2900
+ return e === null ? i : (i === null || (e = ve(i.key, e, t), e.left = i), e);
2901
2901
  }
2902
2902
  function Pt(i, e, t, n, r) {
2903
2903
  if (i) {
@@ -2918,7 +2918,7 @@ var Ut = (
2918
2918
  }, i.prototype.add = function(e, t) {
2919
2919
  var n = new Le(e, t);
2920
2920
  this._root === null && (n.left = n.right = null, this._size++, this._root = n);
2921
- var r = this._comparator, o = be(e, this._root, r), l = r(e, o.key);
2921
+ var r = this._comparator, o = ve(e, this._root, r), l = r(e, o.key);
2922
2922
  return l === 0 ? this._root = o : (l < 0 ? (n.left = o.left, n.right = o, o.left = null) : l > 0 && (n.right = o.right, n.left = o, o.right = null), this._size++, this._root = n), this._root;
2923
2923
  }, i.prototype.remove = function(e) {
2924
2924
  this._root = this._remove(e, this._root, this._comparator);
@@ -2926,15 +2926,15 @@ var Ut = (
2926
2926
  var r;
2927
2927
  if (t === null)
2928
2928
  return null;
2929
- t = be(e, t, n);
2929
+ t = ve(e, t, n);
2930
2930
  var o = n(e, t.key);
2931
- return o === 0 ? (t.left === null ? r = t.right : (r = be(e, t.left, n), r.right = t.right), this._size--, r) : t;
2931
+ return o === 0 ? (t.left === null ? r = t.right : (r = ve(e, t.left, n), r.right = t.right), this._size--, r) : t;
2932
2932
  }, i.prototype.pop = function() {
2933
2933
  var e = this._root;
2934
2934
  if (e) {
2935
2935
  for (; e.left; )
2936
2936
  e = e.left;
2937
- return this._root = be(e.key, this._root, this._comparator), this._root = this._remove(e.key, this._root, this._comparator), { key: e.key, data: e.data };
2937
+ return this._root = ve(e.key, this._root, this._comparator), this._root = this._remove(e.key, this._root, this._comparator), { key: e.key, data: e.data };
2938
2938
  }
2939
2939
  return null;
2940
2940
  }, i.prototype.findStatic = function(e) {
@@ -2946,7 +2946,7 @@ var Ut = (
2946
2946
  }
2947
2947
  return null;
2948
2948
  }, i.prototype.find = function(e) {
2949
- return this._root && (this._root = be(e, this._root, this._comparator), this._comparator(e, this._root.key) !== 0) ? null : this._root;
2949
+ return this._root && (this._root = ve(e, this._root, this._comparator), this._comparator(e, this._root.key) !== 0) ? null : this._root;
2950
2950
  }, i.prototype.contains = function(e) {
2951
2951
  for (var t = this._root, n = this._comparator; t; ) {
2952
2952
  var r = n(e, t.key);
@@ -3170,29 +3170,29 @@ function Tr(i, e) {
3170
3170
  for (let n = 1; n < i; n++) t += e[n];
3171
3171
  return t;
3172
3172
  }
3173
- function Ye(i) {
3173
+ function Ve(i) {
3174
3174
  return new Float64Array(i);
3175
3175
  }
3176
- const Rr = (3 + 16 * he) * he, Ir = (2 + 12 * he) * he, Or = (9 + 64 * he) * he * he, We = Ye(4), fi = Ye(8), di = Ye(12), hi = Ye(16), K = Ye(4);
3176
+ const Rr = (3 + 16 * he) * he, Ir = (2 + 12 * he) * he, Or = (9 + 64 * he) * he * he, Oe = Ve(4), fi = Ve(8), di = Ve(12), hi = Ve(16), K = Ve(4);
3177
3177
  function Wr(i, e, t, n, r, o, l) {
3178
- let s, c, u, h, a, f, d, g, p, b, v, S, E, _, C, x, L, w;
3178
+ let s, c, u, h, a, f, d, g, p, v, b, S, E, _, C, x, L, w;
3179
3179
  const k = i - r, I = t - r, D = e - o, z = n - o;
3180
- _ = k * z, f = Y * k, d = f - (f - k), g = k - d, f = Y * z, p = f - (f - z), b = z - p, C = g * b - (_ - d * p - g * p - d * b), x = D * I, f = Y * D, d = f - (f - D), g = D - d, f = Y * I, p = f - (f - I), b = I - p, L = g * b - (x - d * p - g * p - d * b), v = C - L, a = C - v, We[0] = C - (v + a) + (a - L), S = _ + v, a = S - _, E = _ - (S - a) + (v - a), v = E - x, a = E - v, We[1] = E - (v + a) + (a - x), w = S + v, a = w - S, We[2] = S - (w - a) + (v - a), We[3] = w;
3181
- let O = Tr(4, We), M = Ir * l;
3180
+ _ = k * z, f = Y * k, d = f - (f - k), g = k - d, f = Y * z, p = f - (f - z), v = z - p, C = g * v - (_ - d * p - g * p - d * v), x = D * I, f = Y * D, d = f - (f - D), g = D - d, f = Y * I, p = f - (f - I), v = I - p, L = g * v - (x - d * p - g * p - d * v), b = C - L, a = C - b, Oe[0] = C - (b + a) + (a - L), S = _ + b, a = S - _, E = _ - (S - a) + (b - a), b = E - x, a = E - b, Oe[1] = E - (b + a) + (a - x), w = S + b, a = w - S, Oe[2] = S - (w - a) + (b - a), Oe[3] = w;
3181
+ let O = Tr(4, Oe), M = Ir * l;
3182
3182
  if (O >= M || -O >= M || (a = i - k, s = i - (k + a) + (a - r), a = t - I, u = t - (I + a) + (a - r), a = e - D, c = e - (D + a) + (a - o), a = n - z, h = n - (z + a) + (a - o), s === 0 && c === 0 && u === 0 && h === 0) || (M = Or * l + Pr * Math.abs(O), O += k * h + z * s - (D * u + I * c), O >= M || -O >= M)) return O;
3183
- _ = s * z, f = Y * s, d = f - (f - s), g = s - d, f = Y * z, p = f - (f - z), b = z - p, C = g * b - (_ - d * p - g * p - d * b), x = c * I, f = Y * c, d = f - (f - c), g = c - d, f = Y * I, p = f - (f - I), b = I - p, L = g * b - (x - d * p - g * p - d * b), v = C - L, a = C - v, K[0] = C - (v + a) + (a - L), S = _ + v, a = S - _, E = _ - (S - a) + (v - a), v = E - x, a = E - v, K[1] = E - (v + a) + (a - x), w = S + v, a = w - S, K[2] = S - (w - a) + (v - a), K[3] = w;
3184
- const G = xt(4, We, 4, K, fi);
3185
- _ = k * h, f = Y * k, d = f - (f - k), g = k - d, f = Y * h, p = f - (f - h), b = h - p, C = g * b - (_ - d * p - g * p - d * b), x = D * u, f = Y * D, d = f - (f - D), g = D - d, f = Y * u, p = f - (f - u), b = u - p, L = g * b - (x - d * p - g * p - d * b), v = C - L, a = C - v, K[0] = C - (v + a) + (a - L), S = _ + v, a = S - _, E = _ - (S - a) + (v - a), v = E - x, a = E - v, K[1] = E - (v + a) + (a - x), w = S + v, a = w - S, K[2] = S - (w - a) + (v - a), K[3] = w;
3183
+ _ = s * z, f = Y * s, d = f - (f - s), g = s - d, f = Y * z, p = f - (f - z), v = z - p, C = g * v - (_ - d * p - g * p - d * v), x = c * I, f = Y * c, d = f - (f - c), g = c - d, f = Y * I, p = f - (f - I), v = I - p, L = g * v - (x - d * p - g * p - d * v), b = C - L, a = C - b, K[0] = C - (b + a) + (a - L), S = _ + b, a = S - _, E = _ - (S - a) + (b - a), b = E - x, a = E - b, K[1] = E - (b + a) + (a - x), w = S + b, a = w - S, K[2] = S - (w - a) + (b - a), K[3] = w;
3184
+ const G = xt(4, Oe, 4, K, fi);
3185
+ _ = k * h, f = Y * k, d = f - (f - k), g = k - d, f = Y * h, p = f - (f - h), v = h - p, C = g * v - (_ - d * p - g * p - d * v), x = D * u, f = Y * D, d = f - (f - D), g = D - d, f = Y * u, p = f - (f - u), v = u - p, L = g * v - (x - d * p - g * p - d * v), b = C - L, a = C - b, K[0] = C - (b + a) + (a - L), S = _ + b, a = S - _, E = _ - (S - a) + (b - a), b = E - x, a = E - b, K[1] = E - (b + a) + (a - x), w = S + b, a = w - S, K[2] = S - (w - a) + (b - a), K[3] = w;
3186
3186
  const $ = xt(G, fi, 4, K, di);
3187
- _ = s * h, f = Y * s, d = f - (f - s), g = s - d, f = Y * h, p = f - (f - h), b = h - p, C = g * b - (_ - d * p - g * p - d * b), x = c * u, f = Y * c, d = f - (f - c), g = c - d, f = Y * u, p = f - (f - u), b = u - p, L = g * b - (x - d * p - g * p - d * b), v = C - L, a = C - v, K[0] = C - (v + a) + (a - L), S = _ + v, a = S - _, E = _ - (S - a) + (v - a), v = E - x, a = E - v, K[1] = E - (v + a) + (a - x), w = S + v, a = w - S, K[2] = S - (w - a) + (v - a), K[3] = w;
3188
- const ie = xt($, di, 4, K, hi);
3189
- return hi[ie - 1];
3187
+ _ = s * h, f = Y * s, d = f - (f - s), g = s - d, f = Y * h, p = f - (f - h), v = h - p, C = g * v - (_ - d * p - g * p - d * v), x = c * u, f = Y * c, d = f - (f - c), g = c - d, f = Y * u, p = f - (f - u), v = u - p, L = g * v - (x - d * p - g * p - d * v), b = C - L, a = C - b, K[0] = C - (b + a) + (a - L), S = _ + b, a = S - _, E = _ - (S - a) + (b - a), b = E - x, a = E - b, K[1] = E - (b + a) + (a - x), w = S + b, a = w - S, K[2] = S - (w - a) + (b - a), K[3] = w;
3188
+ const oe = xt($, di, 4, K, hi);
3189
+ return hi[oe - 1];
3190
3190
  }
3191
3191
  function Ar(i, e, t, n, r, o) {
3192
3192
  const l = (e - o) * (t - r), s = (i - r) * (n - o), c = l - s, u = Math.abs(l + s);
3193
3193
  return Math.abs(c) >= Rr * u ? c : -Wr(i, e, t, n, r, o, u);
3194
3194
  }
3195
- const ze = (i, e) => i.ll.x <= e.x && e.x <= i.ur.x && i.ll.y <= e.y && e.y <= i.ur.y, Ot = (i, e) => {
3195
+ const Fe = (i, e) => i.ll.x <= e.x && e.x <= i.ur.x && i.ll.y <= e.y && e.y <= i.ur.y, Ot = (i, e) => {
3196
3196
  if (e.ur.x < i.ll.x || i.ur.x < e.ll.x || e.ur.y < i.ll.y || i.ur.y < e.ll.y) return null;
3197
3197
  const t = i.ll.x < e.ll.x ? e.ll.x : i.ll.x, n = i.ur.x < e.ur.x ? i.ur.x : e.ur.x, r = i.ll.y < e.ll.y ? e.ll.y : i.ll.y, o = i.ur.y < e.ur.y ? i.ur.y : e.ur.y;
3198
3198
  return {
@@ -3206,10 +3206,10 @@ const ze = (i, e) => i.ll.x <= e.x && e.x <= i.ur.x && i.ll.y <= e.y && e.y <= i
3206
3206
  }
3207
3207
  };
3208
3208
  };
3209
- let ve = Number.EPSILON;
3210
- ve === void 0 && (ve = Math.pow(2, -52));
3211
- const Br = ve * ve, mi = (i, e) => {
3212
- if (-ve < i && i < ve && -ve < e && e < ve)
3209
+ let be = Number.EPSILON;
3210
+ be === void 0 && (be = Math.pow(2, -52));
3211
+ const Br = be * be, mi = (i, e) => {
3212
+ if (-be < i && i < be && -be < e && e < be)
3213
3213
  return 0;
3214
3214
  const t = i - e;
3215
3215
  return t * t < Br * i * e ? 0 : i < e ? -1 : 1;
@@ -3247,7 +3247,7 @@ class gi {
3247
3247
  return r !== null && mi(t.key, r.key) === 0 ? (this.tree.remove(e), r.key) : e;
3248
3248
  }
3249
3249
  }
3250
- const Ve = new Dr(), lt = (i, e) => i.x * e.y - i.y * e.x, Di = (i, e) => i.x * e.x + i.y * e.y, yi = (i, e, t) => {
3250
+ const He = new Dr(), lt = (i, e) => i.x * e.y - i.y * e.x, Di = (i, e) => i.x * e.x + i.y * e.y, yi = (i, e, t) => {
3251
3251
  const n = Ar(i.x, i.y, e.x, e.y, t.x, t.y);
3252
3252
  return n > 0 ? -1 : n < 0 ? 1 : 0;
3253
3253
  }, ut = (i) => Math.sqrt(Di(i, i)), Ur = (i, e, t) => {
@@ -3271,12 +3271,12 @@ const Ve = new Dr(), lt = (i, e) => i.x * e.y - i.y * e.x, Di = (i, e) => i.x *
3271
3271
  }, pi = (i, e, t) => e.y === 0 ? null : {
3272
3272
  x: i.x + e.x / e.y * (t - i.y),
3273
3273
  y: t
3274
- }, bi = (i, e, t) => e.x === 0 ? null : {
3274
+ }, vi = (i, e, t) => e.x === 0 ? null : {
3275
3275
  x: t,
3276
3276
  y: i.y + e.y / e.x * (t - i.x)
3277
3277
  }, zr = (i, e, t, n) => {
3278
- if (e.x === 0) return bi(t, n, i.x);
3279
- if (n.x === 0) return bi(i, e, t.x);
3278
+ if (e.x === 0) return vi(t, n, i.x);
3279
+ if (n.x === 0) return vi(i, e, t.x);
3280
3280
  if (e.y === 0) return pi(t, n, i.y);
3281
3281
  if (n.y === 0) return pi(i, e, t.y);
3282
3282
  const r = lt(e, n);
@@ -3290,10 +3290,10 @@ const Ve = new Dr(), lt = (i, e) => i.x * e.y - i.y * e.x, Di = (i, e) => i.x *
3290
3290
  y: d
3291
3291
  };
3292
3292
  };
3293
- class re {
3293
+ class ne {
3294
3294
  // for ordering sweep events in the sweep event queue
3295
3295
  static compare(e, t) {
3296
- const n = re.comparePoints(e.point, t.point);
3296
+ const n = ne.comparePoints(e.point, t.point);
3297
3297
  return n !== 0 ? n : (e.point !== t.point && e.link(t), e.isLeft !== t.isLeft ? e.isLeft ? 1 : -1 : we.compare(e.segment, t.segment));
3298
3298
  }
3299
3299
  // for ordering points in sweep line order
@@ -3428,13 +3428,13 @@ class we {
3428
3428
  }
3429
3429
  static fromRing(e, t, n) {
3430
3430
  let r, o, l;
3431
- const s = re.comparePoints(e, t);
3431
+ const s = ne.comparePoints(e, t);
3432
3432
  if (s < 0)
3433
3433
  r = e, o = t, l = 1;
3434
3434
  else if (s > 0)
3435
3435
  r = t, o = e, l = -1;
3436
3436
  else throw new Error(`Tried to create degenerate segment at [${e.x}, ${e.y}]`);
3437
- const c = new re(r, !0), u = new re(o, !1);
3437
+ const c = new ne(r, !0), u = new ne(o, !1);
3438
3438
  return new we(c, u, [n], [l]);
3439
3439
  }
3440
3440
  /* When a segment is split, the rightSE is replaced with a new sweep event */
@@ -3505,7 +3505,7 @@ class we {
3505
3505
  getIntersection(e) {
3506
3506
  const t = this.bbox(), n = e.bbox(), r = Ot(t, n);
3507
3507
  if (r === null) return null;
3508
- const o = this.leftSE.point, l = this.rightSE.point, s = e.leftSE.point, c = e.rightSE.point, u = ze(t, s) && this.comparePoint(s) === 0, h = ze(n, o) && e.comparePoint(o) === 0, a = ze(t, c) && this.comparePoint(c) === 0, f = ze(n, l) && e.comparePoint(l) === 0;
3508
+ const o = this.leftSE.point, l = this.rightSE.point, s = e.leftSE.point, c = e.rightSE.point, u = Fe(t, s) && this.comparePoint(s) === 0, h = Fe(n, o) && e.comparePoint(o) === 0, a = Fe(t, c) && this.comparePoint(c) === 0, f = Fe(n, l) && e.comparePoint(l) === 0;
3509
3509
  if (h && u)
3510
3510
  return f && !a ? l : !f && a ? c : null;
3511
3511
  if (h)
@@ -3516,7 +3516,7 @@ class we {
3516
3516
  if (f) return l;
3517
3517
  if (a) return c;
3518
3518
  const d = zr(o, this.vector(), s, e.vector());
3519
- return d === null || !ze(r, d) ? null : Ve.round(d.x, d.y);
3519
+ return d === null || !Fe(r, d) ? null : He.round(d.x, d.y);
3520
3520
  }
3521
3521
  /**
3522
3522
  * Split the given segment into multiple segments on the given points.
@@ -3531,10 +3531,10 @@ class we {
3531
3531
  * Warning: input array of points is modified
3532
3532
  */
3533
3533
  split(e) {
3534
- const t = [], n = e.events !== void 0, r = new re(e, !0), o = new re(e, !1), l = this.rightSE;
3534
+ const t = [], n = e.events !== void 0, r = new ne(e, !0), o = new ne(e, !1), l = this.rightSE;
3535
3535
  this.replaceRightSE(o), t.push(o), t.push(r);
3536
3536
  const s = new we(r, l, this.rings.slice(), this.windings.slice());
3537
- return re.comparePoints(s.leftSE.point, s.rightSE.point) > 0 && s.swapEvents(), re.comparePoints(this.leftSE.point, this.rightSE.point) > 0 && this.swapEvents(), n && (r.checkForConsuming(), o.checkForConsuming()), t;
3537
+ return ne.comparePoints(s.leftSE.point, s.rightSE.point) > 0 && s.swapEvents(), ne.comparePoints(this.leftSE.point, this.rightSE.point) > 0 && this.swapEvents(), n && (r.checkForConsuming(), o.checkForConsuming()), t;
3538
3538
  }
3539
3539
  /* Swap which event is left and right */
3540
3540
  swapEvents() {
@@ -3646,13 +3646,13 @@ class we {
3646
3646
  return this._isInResult;
3647
3647
  }
3648
3648
  }
3649
- class vi {
3649
+ class bi {
3650
3650
  constructor(e, t, n) {
3651
3651
  if (!Array.isArray(e) || e.length === 0)
3652
3652
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
3653
3653
  if (this.poly = t, this.isExterior = n, this.segments = [], typeof e[0][0] != "number" || typeof e[0][1] != "number")
3654
3654
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
3655
- const r = Ve.round(e[0][0], e[0][1]);
3655
+ const r = He.round(e[0][0], e[0][1]);
3656
3656
  this.bbox = {
3657
3657
  ll: {
3658
3658
  x: r.x,
@@ -3667,7 +3667,7 @@ class vi {
3667
3667
  for (let l = 1, s = e.length; l < s; l++) {
3668
3668
  if (typeof e[l][0] != "number" || typeof e[l][1] != "number")
3669
3669
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
3670
- let c = Ve.round(e[l][0], e[l][1]);
3670
+ let c = He.round(e[l][0], e[l][1]);
3671
3671
  c.x === o.x && c.y === o.y || (this.segments.push(we.fromRing(o, c, this)), c.x < this.bbox.ll.x && (this.bbox.ll.x = c.x), c.y < this.bbox.ll.y && (this.bbox.ll.y = c.y), c.x > this.bbox.ur.x && (this.bbox.ur.x = c.x), c.y > this.bbox.ur.y && (this.bbox.ur.y = c.y), o = c);
3672
3672
  }
3673
3673
  (r.x !== o.x || r.y !== o.y) && this.segments.push(we.fromRing(o, r, this));
@@ -3681,11 +3681,11 @@ class vi {
3681
3681
  return e;
3682
3682
  }
3683
3683
  }
3684
- class qr {
3684
+ class jr {
3685
3685
  constructor(e, t) {
3686
3686
  if (!Array.isArray(e))
3687
3687
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
3688
- this.exteriorRing = new vi(e[0], this, !0), this.bbox = {
3688
+ this.exteriorRing = new bi(e[0], this, !0), this.bbox = {
3689
3689
  ll: {
3690
3690
  x: this.exteriorRing.bbox.ll.x,
3691
3691
  y: this.exteriorRing.bbox.ll.y
@@ -3696,7 +3696,7 @@ class qr {
3696
3696
  }
3697
3697
  }, this.interiorRings = [];
3698
3698
  for (let n = 1, r = e.length; n < r; n++) {
3699
- const o = new vi(e[n], this, !1);
3699
+ const o = new bi(e[n], this, !1);
3700
3700
  o.bbox.ll.x < this.bbox.ll.x && (this.bbox.ll.x = o.bbox.ll.x), o.bbox.ll.y < this.bbox.ll.y && (this.bbox.ll.y = o.bbox.ll.y), o.bbox.ur.x > this.bbox.ur.x && (this.bbox.ur.x = o.bbox.ur.x), o.bbox.ur.y > this.bbox.ur.y && (this.bbox.ur.y = o.bbox.ur.y), this.interiorRings.push(o);
3701
3701
  }
3702
3702
  this.multiPoly = t;
@@ -3730,7 +3730,7 @@ class wi {
3730
3730
  }
3731
3731
  };
3732
3732
  for (let n = 0, r = e.length; n < r; n++) {
3733
- const o = new qr(e[n], this);
3733
+ const o = new jr(e[n], this);
3734
3734
  o.bbox.ll.x < this.bbox.ll.x && (this.bbox.ll.x = o.bbox.ll.x), o.bbox.ll.y < this.bbox.ll.y && (this.bbox.ll.y = o.bbox.ll.y), o.bbox.ur.x > this.bbox.ur.x && (this.bbox.ur.x = o.bbox.ur.x), o.bbox.ur.y > this.bbox.ur.y && (this.bbox.ur.y = o.bbox.ur.y), this.polys.push(o);
3735
3735
  }
3736
3736
  this.isSubject = t;
@@ -3759,22 +3759,22 @@ class at {
3759
3759
  for (; ; ) {
3760
3760
  const f = s.getAvailableLinkedEvents();
3761
3761
  if (f.length === 0) {
3762
- const p = u[0].point, b = u[u.length - 1].point;
3763
- throw new Error(`Unable to complete output ring starting at [${p.x}, ${p.y}]. Last matching segment found ends at [${b.x}, ${b.y}].`);
3762
+ const p = u[0].point, v = u[u.length - 1].point;
3763
+ throw new Error(`Unable to complete output ring starting at [${p.x}, ${p.y}]. Last matching segment found ends at [${v.x}, ${v.y}].`);
3764
3764
  }
3765
3765
  if (f.length === 1) {
3766
3766
  c = f[0].otherSE;
3767
3767
  break;
3768
3768
  }
3769
3769
  let d = null;
3770
- for (let p = 0, b = a.length; p < b; p++)
3770
+ for (let p = 0, v = a.length; p < v; p++)
3771
3771
  if (a[p].point === s.point) {
3772
3772
  d = p;
3773
3773
  break;
3774
3774
  }
3775
3775
  if (d !== null) {
3776
- const p = a.splice(d)[0], b = u.splice(p.index);
3777
- b.unshift(b[0].otherSE), t.push(new at(b.reverse()));
3776
+ const p = a.splice(d)[0], v = u.splice(p.index);
3777
+ v.unshift(v[0].otherSE), t.push(new at(v.reverse()));
3778
3778
  continue;
3779
3779
  }
3780
3780
  a.push({
@@ -3824,7 +3824,7 @@ class at {
3824
3824
  let e = this.events[0];
3825
3825
  for (let r = 1, o = this.events.length; r < o; r++) {
3826
3826
  const l = this.events[r];
3827
- re.compare(e, l) > 0 && (e = l);
3827
+ ne.compare(e, l) > 0 && (e = l);
3828
3828
  }
3829
3829
  let t = e.segment.prevInResult(), n = t ? t.prevInResult() : null;
3830
3830
  for (; ; ) {
@@ -3853,7 +3853,7 @@ class _i {
3853
3853
  return e;
3854
3854
  }
3855
3855
  }
3856
- class jr {
3856
+ class Zr {
3857
3857
  constructor(e) {
3858
3858
  this.rings = e, this.polys = this._composePolys(e);
3859
3859
  }
@@ -3879,7 +3879,7 @@ class jr {
3879
3879
  return t;
3880
3880
  }
3881
3881
  }
3882
- class Zr {
3882
+ class qr {
3883
3883
  constructor(e) {
3884
3884
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : we.compare;
3885
3885
  this.queue = e, this.tree = new Ut(t), this.segments = [];
@@ -3916,7 +3916,7 @@ class Zr {
3916
3916
  }
3917
3917
  if (u !== null || h !== null) {
3918
3918
  let a = null;
3919
- u === null ? a = h : h === null ? a = u : a = re.comparePoints(u, h) <= 0 ? u : h, this.queue.remove(t.rightSE), n.push(t.rightSE);
3919
+ u === null ? a = h : h === null ? a = u : a = ne.comparePoints(u, h) <= 0 ? u : h, this.queue.remove(t.rightSE), n.push(t.rightSE);
3920
3920
  const f = t.split(a);
3921
3921
  for (let d = 0, g = f.length; d < g; d++)
3922
3922
  n.push(f[d]);
@@ -3955,7 +3955,7 @@ class Zr {
3955
3955
  const Ei = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1e6, Qr = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS || 1e6;
3956
3956
  class Hr {
3957
3957
  run(e, t, n) {
3958
- le.type = e, Ve.reset();
3958
+ le.type = e, He.reset();
3959
3959
  const r = [new wi(t, !0)];
3960
3960
  for (let a = 0, f = n.length; a < f; a++)
3961
3961
  r.push(new wi(n[a], !1));
@@ -3971,14 +3971,14 @@ class Hr {
3971
3971
  for (let g = a + 1, p = r.length; g < p; g++)
3972
3972
  if (Ot(d.bbox, r[g].bbox) === null) return [];
3973
3973
  }
3974
- const o = new Ut(re.compare);
3974
+ const o = new Ut(ne.compare);
3975
3975
  for (let a = 0, f = r.length; a < f; a++) {
3976
3976
  const d = r[a].getSweepEvents();
3977
3977
  for (let g = 0, p = d.length; g < p; g++)
3978
3978
  if (o.insert(d[g]), o.size > Ei)
3979
3979
  throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big).");
3980
3980
  }
3981
- const l = new Zr(o);
3981
+ const l = new qr(o);
3982
3982
  let s = o.size, c = o.pop();
3983
3983
  for (; c; ) {
3984
3984
  const a = c.key;
@@ -3997,9 +3997,9 @@ class Hr {
3997
3997
  }
3998
3998
  s = o.size, c = o.pop();
3999
3999
  }
4000
- Ve.reset();
4000
+ He.reset();
4001
4001
  const u = at.factory(l.segments);
4002
- return new jr(u).getGeom();
4002
+ return new Zr(u).getGeom();
4003
4003
  }
4004
4004
  }
4005
4005
  const le = new Hr(), Vr = function(i) {
@@ -4049,14 +4049,14 @@ function to(i) {
4049
4049
  if (!i)
4050
4050
  throw new Error("geojson is required");
4051
4051
  var e = [];
4052
- return vr(i, function(t) {
4052
+ return br(i, function(t) {
4053
4053
  e.push(t);
4054
- }), He(e);
4054
+ }), Qe(e);
4055
4055
  }
4056
4056
  var io = to;
4057
4057
  function Li(i, e) {
4058
4058
  const t = eo(
4059
- He([
4059
+ Qe([
4060
4060
  At([
4061
4061
  [
4062
4062
  [180, 90],
@@ -4086,7 +4086,7 @@ function Li(i, e) {
4086
4086
  a[0] -= 360 - r;
4087
4087
  }
4088
4088
  e(
4089
- He([
4089
+ Qe([
4090
4090
  s.features.length < 2 ? i : Fi(s) ?? i,
4091
4091
  t
4092
4092
  ])
@@ -4163,20 +4163,20 @@ function no(i, e = !0, t = !0, n = {}, r = {}, o = (l) => {
4163
4163
  setMarkers(d, g) {
4164
4164
  if (!e)
4165
4165
  return;
4166
- function p(b) {
4167
- h.clearLayers(), b && h.addData(b);
4166
+ function p(v) {
4167
+ h.clearLayers(), v && h.addData(v);
4168
4168
  }
4169
- for (const b of s)
4170
- b.remove();
4169
+ for (const v of s)
4170
+ v.remove();
4171
4171
  if (s.length = 0, p(), g) {
4172
- let b = !1;
4172
+ let v = !1;
4173
4173
  if (g.geometry.type === "GeometryCollection") {
4174
4174
  const S = g.geometry.geometries.filter(
4175
4175
  (E) => E.type === "Polygon" || E.type === "MultiPolygon"
4176
4176
  );
4177
4177
  e: if (S.length > 0) {
4178
4178
  const E = Fi(
4179
- He(S.map((_) => Qe(_)))
4179
+ Qe(S.map((_) => qe(_)))
4180
4180
  );
4181
4181
  if (!E)
4182
4182
  break e;
@@ -4186,7 +4186,7 @@ function no(i, e = !0, t = !0, n = {}, r = {}, o = (l) => {
4186
4186
  geometry: E.geometry
4187
4187
  },
4188
4188
  p
4189
- ), b = !0;
4189
+ ), v = !0;
4190
4190
  } else {
4191
4191
  const E = g.geometry.geometries.filter(
4192
4192
  (_) => _.type === "LineString" || _.type === "MultiLineString"
@@ -4194,49 +4194,49 @@ function no(i, e = !0, t = !0, n = {}, r = {}, o = (l) => {
4194
4194
  E.length > 0 && (p({
4195
4195
  ...g,
4196
4196
  geometry: { type: "GeometryCollection", geometries: E }
4197
- }), b = !0);
4197
+ }), v = !0);
4198
4198
  }
4199
4199
  }
4200
- if (!b) {
4200
+ if (!v) {
4201
4201
  if (g.geometry.type === "Polygon" || g.geometry.type === "MultiPolygon")
4202
4202
  Li(g, (S) => {
4203
4203
  if (!S)
4204
4204
  return;
4205
4205
  const E = [...S.features], _ = Ze(Nt(g)), C = _[2] - _[0];
4206
- _[0] - C / 4 < -180 && E.push(...Si(S, -360).features), _[2] + C / 4 > 180 && E.push(...Si(S, 360).features), p(He(E));
4206
+ _[0] - C / 4 < -180 && E.push(...Si(S, -360).features), _[2] + C / 4 > 180 && E.push(...Si(S, 360).features), p(Qe(E));
4207
4207
  });
4208
4208
  else if (g.geometry.type === "LineString" || g.geometry.type === "MultiLineString") {
4209
4209
  p(g);
4210
4210
  return;
4211
4211
  }
4212
4212
  }
4213
- const v = [g.center[1], g.center[0]];
4213
+ const b = [g.center[1], g.center[0]];
4214
4214
  s.push(
4215
- (typeof e == "object" ? new de.Marker(v, e) : f(v)).addTo(i)
4215
+ (typeof e == "object" ? new de.Marker(b, e) : f(b)).addTo(i)
4216
4216
  );
4217
4217
  }
4218
4218
  if (t)
4219
- for (const b of d ?? []) {
4220
- if (b === g)
4219
+ for (const v of d ?? []) {
4220
+ if (v === g)
4221
4221
  continue;
4222
- const v = [
4223
- b.center[1],
4224
- b.center[0]
4225
- ], S = typeof t == "object" ? new de.Marker(v, t) : f(v, !0);
4222
+ const b = [
4223
+ v.center[1],
4224
+ v.center[0]
4225
+ ], S = typeof t == "object" ? new de.Marker(b, t) : f(b, !0);
4226
4226
  S.addTo(i).bindTooltip(
4227
- b.place_type[0] === "reverse" ? b.place_name : b.place_name.replace(/,.*/, ""),
4227
+ v.place_type[0] === "reverse" ? v.place_name : v.place_name.replace(/,.*/, ""),
4228
4228
  {
4229
4229
  direction: "top"
4230
4230
  }
4231
4231
  );
4232
4232
  const E = S.getElement();
4233
4233
  E && (E.addEventListener("click", (_) => {
4234
- _.stopPropagation(), l == null || l({ type: "markerClick", id: b.id });
4234
+ _.stopPropagation(), l == null || l({ type: "markerClick", id: v.id });
4235
4235
  }), E.addEventListener("mouseenter", () => {
4236
- l == null || l({ type: "markerMouseEnter", id: b.id });
4236
+ l == null || l({ type: "markerMouseEnter", id: v.id });
4237
4237
  }), E.addEventListener("mouseleave", () => {
4238
- l == null || l({ type: "markerMouseLeave", id: b.id });
4239
- }), E.classList.toggle("marker-fuzzy", !!b.matching_text)), s.push(S);
4238
+ l == null || l({ type: "markerMouseLeave", id: v.id });
4239
+ }), E.classList.toggle("marker-fuzzy", !!v.matching_text)), s.push(S);
4240
4240
  }
4241
4241
  },
4242
4242
  setSelectedMarker(d) {
@@ -4264,13 +4264,13 @@ function xi(i, e) {
4264
4264
  for (const n of t)
4265
4265
  n[0] += e;
4266
4266
  }
4267
- var ne, Pe;
4267
+ var ie, Ne;
4268
4268
  class ro extends de.Control {
4269
4269
  constructor(t) {
4270
4270
  super();
4271
- Et(this, ne);
4272
- Et(this, Pe);
4273
- it(this, Pe, t);
4271
+ Et(this, ie);
4272
+ Et(this, Ne);
4273
+ it(this, Ne, t);
4274
4274
  }
4275
4275
  onAdd(t) {
4276
4276
  const n = document.createElement("div");
@@ -4281,7 +4281,7 @@ class ro extends de.Control {
4281
4281
  flyTo: l,
4282
4282
  fullGeometryStyle: s,
4283
4283
  ...c
4284
- } = se(this, Pe), u = typeof l == "boolean" ? {} : l, h = no(
4284
+ } = se(this, Ne), u = typeof l == "boolean" ? {} : l, h = no(
4285
4285
  t,
4286
4286
  r,
4287
4287
  o,
@@ -4289,7 +4289,7 @@ class ro extends de.Control {
4289
4289
  u,
4290
4290
  s
4291
4291
  );
4292
- it(this, ne, new br({
4292
+ it(this, ie, new vr({
4293
4293
  target: n,
4294
4294
  props: {
4295
4295
  mapController: h,
@@ -4307,7 +4307,7 @@ class ro extends de.Control {
4307
4307
  "reverseToggle",
4308
4308
  "queryChange"
4309
4309
  ])
4310
- se(this, ne).$on(
4310
+ se(this, ie).$on(
4311
4311
  a,
4312
4312
  (f) => t.fire(a.toLowerCase(), f.detail)
4313
4313
  );
@@ -4315,42 +4315,42 @@ class ro extends de.Control {
4315
4315
  }
4316
4316
  setOptions(t) {
4317
4317
  var c;
4318
- it(this, Pe, t);
4318
+ it(this, Ne, t);
4319
4319
  const {
4320
4320
  marker: n,
4321
4321
  showResultMarkers: r,
4322
4322
  flyTo: o,
4323
4323
  fullGeometryStyle: l,
4324
4324
  ...s
4325
- } = se(this, Pe);
4326
- (c = se(this, ne)) == null || c.$set(s);
4325
+ } = se(this, Ne);
4326
+ (c = se(this, ie)) == null || c.$set(s);
4327
4327
  }
4328
4328
  setQuery(t, n = !0) {
4329
4329
  var r;
4330
- (r = se(this, ne)) == null || r.setQuery(t, n);
4330
+ (r = se(this, ie)) == null || r.setQuery(t, n);
4331
4331
  }
4332
4332
  clearMap() {
4333
4333
  var t;
4334
- (t = se(this, ne)) == null || t.clearMap();
4334
+ (t = se(this, ie)) == null || t.clearMap();
4335
4335
  }
4336
4336
  clearList() {
4337
4337
  var t;
4338
- (t = se(this, ne)) == null || t.clearList();
4338
+ (t = se(this, ie)) == null || t.clearList();
4339
4339
  }
4340
4340
  focus() {
4341
4341
  var t;
4342
- (t = se(this, ne)) == null || t.focus();
4342
+ (t = se(this, ie)) == null || t.focus();
4343
4343
  }
4344
4344
  blur() {
4345
4345
  var t;
4346
- (t = se(this, ne)) == null || t.blur();
4346
+ (t = se(this, ie)) == null || t.blur();
4347
4347
  }
4348
4348
  onRemove() {
4349
4349
  var t;
4350
- (t = se(this, ne)) == null || t.$destroy();
4350
+ (t = se(this, ie)) == null || t.$destroy();
4351
4351
  }
4352
4352
  }
4353
- ne = new WeakMap(), Pe = new WeakMap();
4353
+ ie = new WeakMap(), Ne = new WeakMap();
4354
4354
  function oo(...i) {
4355
4355
  return new ro(...i);
4356
4356
  }