@maptiler/geocoding-control 2.0.0-rc.5 → 2.0.0-rc.6

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
@@ -4,7 +4,7 @@ var Zt = (i) => {
4
4
  };
5
5
  var hn = (i, e, t) => e in i ? dn(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
6
6
  var Lt = (i, e, t) => hn(i, typeof e != "symbol" ? e + "" : e, t), Qt = (i, e, t) => e.has(i) || Zt("Cannot " + t);
7
- var ie = (i, e, t) => (Qt(i, e, "read from private field"), t ? t.call(i) : e.get(i)), nt = (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), Be = (i, e, t, n) => (Qt(i, e, "write to private field"), n ? n.call(i, t) : e.set(i, t), t);
7
+ var $ = (i, e, t) => (Qt(i, e, "read from private field"), t ? t.call(i) : e.get(i)), it = (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), nt = (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 le from "leaflet";
9
9
  function W() {
10
10
  }
@@ -27,7 +27,7 @@ function ye(i) {
27
27
  function Ni(i) {
28
28
  return typeof i == "function";
29
29
  }
30
- function Se(i, e) {
30
+ function xe(i, e) {
31
31
  return i != i ? e == e : i !== e || i && typeof i == "object" || typeof i == "function";
32
32
  }
33
33
  let rt;
@@ -61,13 +61,13 @@ function pn(i, e, t, n) {
61
61
  }
62
62
  return e.dirty;
63
63
  }
64
- function vn(i, e, t, n, r, o) {
64
+ function bn(i, e, t, n, r, o) {
65
65
  if (r) {
66
66
  const u = Pi(e, t, n, o);
67
67
  i.p(u, r);
68
68
  }
69
69
  }
70
- function bn(i) {
70
+ function vn(i) {
71
71
  if (i.ctx.length > 32) {
72
72
  const e = [], t = i.ctx.length / 32;
73
73
  for (let n = 0; n < t; n++)
@@ -94,14 +94,14 @@ function A(i) {
94
94
  function ae(i) {
95
95
  return document.createElementNS("http://www.w3.org/2000/svg", i);
96
96
  }
97
- function _e(i) {
97
+ function Ee(i) {
98
98
  return document.createTextNode(i);
99
99
  }
100
- function te() {
101
- return _e(" ");
100
+ function ie() {
101
+ return Ee(" ");
102
102
  }
103
103
  function wn() {
104
- return _e("");
104
+ return Ee("");
105
105
  }
106
106
  function J(i, e, t, n) {
107
107
  return i.addEventListener(e, t, n), () => i.removeEventListener(e, t, n);
@@ -117,7 +117,7 @@ function p(i, e, t) {
117
117
  function En(i) {
118
118
  return Array.from(i.childNodes);
119
119
  }
120
- function je(i, e) {
120
+ function Ge(i, e) {
121
121
  e = "" + e, i.data !== e && (i.data = /** @type {string} */
122
122
  e);
123
123
  }
@@ -130,13 +130,13 @@ function oe(i, e, t) {
130
130
  function Ln(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
131
131
  return new CustomEvent(i, { detail: e, bubbles: t, cancelable: n });
132
132
  }
133
- let qe;
134
- function Ge(i) {
135
- qe = i;
133
+ let je;
134
+ function Fe(i) {
135
+ je = i;
136
136
  }
137
137
  function Ti() {
138
- if (!qe) throw new Error("Function called outside component initialization");
139
- return qe;
138
+ if (!je) throw new Error("Function called outside component initialization");
139
+ return je;
140
140
  }
141
141
  function Sn(i) {
142
142
  Ti().$$.on_destroy.push(i);
@@ -178,17 +178,17 @@ let Ie = 0;
178
178
  function Ri() {
179
179
  if (Ie !== 0)
180
180
  return;
181
- const i = qe;
181
+ const i = je;
182
182
  do {
183
183
  try {
184
184
  for (; Ie < Ae.length; ) {
185
185
  const e = Ae[Ie];
186
- Ie++, Ge(e), kn(e.$$);
186
+ Ie++, Fe(e), kn(e.$$);
187
187
  }
188
188
  } catch (e) {
189
189
  throw Ae.length = 0, Ie = 0, e;
190
190
  }
191
- for (Ge(null), Ae.length = 0, Ie = 0; Ct.length; ) Ct.pop()();
191
+ for (Fe(null), Ae.length = 0, Ie = 0; Ct.length; ) Ct.pop()();
192
192
  for (let e = 0; e < We.length; e += 1) {
193
193
  const t = We[e];
194
194
  St.has(t) || (St.add(t), t());
@@ -197,7 +197,7 @@ function Ri() {
197
197
  } while (Ae.length);
198
198
  for (; Kt.length; )
199
199
  Kt.pop()();
200
- kt = !1, St.clear(), Ge(i);
200
+ kt = !1, St.clear(), Fe(i);
201
201
  }
202
202
  function kn(i) {
203
203
  if (i.fragment !== null) {
@@ -211,17 +211,17 @@ function Nn(i) {
211
211
  We.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), We = e;
212
212
  }
213
213
  const ot = /* @__PURE__ */ new Set();
214
- let Ne;
214
+ let Pe;
215
215
  function st() {
216
- Ne = {
216
+ Pe = {
217
217
  r: 0,
218
218
  c: [],
219
- p: Ne
219
+ p: Pe
220
220
  // parent group
221
221
  };
222
222
  }
223
223
  function lt() {
224
- Ne.r || ye(Ne.c), Ne = Ne.p;
224
+ Pe.r || ye(Pe.c), Pe = Pe.p;
225
225
  }
226
226
  function q(i, e) {
227
227
  i && i.i && (ot.delete(i), i.i(e));
@@ -229,7 +229,7 @@ function q(i, e) {
229
229
  function V(i, e, t, n) {
230
230
  if (i && i.o) {
231
231
  if (ot.has(i)) return;
232
- ot.add(i), Ne.c.push(() => {
232
+ ot.add(i), Pe.c.push(() => {
233
233
  ot.delete(i), n && (t && i.d(1), n());
234
234
  }), i.o(e);
235
235
  } else n && n();
@@ -243,14 +243,14 @@ function Pn(i, e) {
243
243
  });
244
244
  }
245
245
  function Tn(i, e, t, n, r, o, u, s, c, l, d, a) {
246
- let f = i.length, h = o.length, b = f;
246
+ let f = i.length, h = o.length, v = f;
247
247
  const m = {};
248
- for (; b--; ) m[i[b].key] = b;
249
- const y = [], v = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), S = [];
250
- for (b = h; b--; ) {
251
- const x = a(r, o, b), _ = t(x);
248
+ for (; v--; ) m[i[v].key] = v;
249
+ const y = [], b = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), S = [];
250
+ for (v = h; v--; ) {
251
+ const x = a(r, o, v), _ = t(x);
252
252
  let k = u.get(_);
253
- k ? S.push(() => k.p(x, e)) : (k = l(_, x), k.c()), v.set(_, y[b] = k), _ in m && E.set(_, Math.abs(b - m[_]));
253
+ k ? S.push(() => k.p(x, e)) : (k = l(_, x), k.c()), b.set(_, y[v] = k), _ in m && E.set(_, Math.abs(v - m[_]));
254
254
  }
255
255
  const w = /* @__PURE__ */ new Set(), M = /* @__PURE__ */ new Set();
256
256
  function L(x) {
@@ -258,16 +258,16 @@ function Tn(i, e, t, n, r, o, u, s, c, l, d, a) {
258
258
  }
259
259
  for (; f && h; ) {
260
260
  const x = y[h - 1], _ = i[f - 1], k = x.key, I = _.key;
261
- x === _ ? (d = x.first, f--, h--) : v.has(I) ? !u.has(k) || w.has(k) ? L(x) : M.has(I) ? f-- : E.get(k) > E.get(I) ? (M.add(k), L(x)) : (w.add(I), f--) : (c(_, u), f--);
261
+ x === _ ? (d = x.first, f--, h--) : b.has(I) ? !u.has(k) || w.has(k) ? L(x) : M.has(I) ? f-- : E.get(k) > E.get(I) ? (M.add(k), L(x)) : (w.add(I), f--) : (c(_, u), f--);
262
262
  }
263
263
  for (; f--; ) {
264
264
  const x = i[f];
265
- v.has(x.key) || c(x, u);
265
+ b.has(x.key) || c(x, u);
266
266
  }
267
267
  for (; h; ) L(y[h - 1]);
268
268
  return ye(S), y;
269
269
  }
270
- function Ee(i) {
270
+ function Le(i) {
271
271
  i && i.c();
272
272
  }
273
273
  function ge(i, e, t) {
@@ -284,9 +284,9 @@ function me(i, e) {
284
284
  function Rn(i, e) {
285
285
  i.$$.dirty[0] === -1 && (Ae.push(i), Cn(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
286
286
  }
287
- function xe(i, e, t, n, r, o, u = null, s = [-1]) {
288
- const c = qe;
289
- Ge(i);
287
+ function Me(i, e, t, n, r, o, u = null, s = [-1]) {
288
+ const c = je;
289
+ Fe(i);
290
290
  const l = i.$$ = {
291
291
  fragment: null,
292
292
  ctx: [],
@@ -311,8 +311,8 @@ function xe(i, e, t, n, r, o, u = null, s = [-1]) {
311
311
  u && u(l.root);
312
312
  let d = !1;
313
313
  if (l.ctx = t ? t(i, e.props || {}, (a, f, ...h) => {
314
- const b = h.length ? h[0] : f;
315
- return l.ctx && r(l.ctx[a], l.ctx[a] = b) && (!l.skip_bound && l.bound[a] && l.bound[a](b), d && Rn(i, a)), f;
314
+ const v = h.length ? h[0] : f;
315
+ return l.ctx && r(l.ctx[a], l.ctx[a] = v) && (!l.skip_bound && l.bound[a] && l.bound[a](v), d && Rn(i, a)), f;
316
316
  }) : [], l.update(), d = !0, ye(l.before_update), l.fragment = n ? n(l.ctx) : !1, e.target) {
317
317
  if (e.hydrate) {
318
318
  const a = En(e.target);
@@ -321,9 +321,9 @@ function xe(i, e, t, n, r, o, u = null, s = [-1]) {
321
321
  l.fragment && l.fragment.c();
322
322
  e.intro && q(i.$$.fragment), ge(i, e.target, e.anchor), Ri();
323
323
  }
324
- Ge(c);
324
+ Fe(c);
325
325
  }
326
- class Me {
326
+ class Ce {
327
327
  constructor() {
328
328
  /**
329
329
  * ### PRIVATE API
@@ -388,9 +388,9 @@ function On(i) {
388
388
  }
389
389
  };
390
390
  }
391
- class Ii extends Me {
391
+ class Ii extends Ce {
392
392
  constructor(e) {
393
- super(), xe(this, e, null, On, Se, {});
393
+ super(), Me(this, e, null, On, xe, {});
394
394
  }
395
395
  }
396
396
  function An(i) {
@@ -410,9 +410,9 @@ function An(i) {
410
410
  }
411
411
  };
412
412
  }
413
- class Oi extends Me {
413
+ class Oi extends Ce {
414
414
  constructor(e) {
415
- super(), xe(this, e, null, An, Se, {});
415
+ super(), Me(this, e, null, An, xe, {});
416
416
  }
417
417
  }
418
418
  function Wn(i) {
@@ -672,7 +672,7 @@ function $t(i) {
672
672
  let e, t;
673
673
  return {
674
674
  c() {
675
- e = A("span"), t = _e(
675
+ e = A("span"), t = Ee(
676
676
  /*placeType*/
677
677
  i[6]
678
678
  ), p(e, "class", "secondary svelte-ltkwvy");
@@ -682,7 +682,7 @@ function $t(i) {
682
682
  },
683
683
  p(n, r) {
684
684
  r & /*placeType*/
685
- 64 && je(
685
+ 64 && Ge(
686
686
  t,
687
687
  /*placeType*/
688
688
  n[6]
@@ -714,13 +714,13 @@ function qn(i) {
714
714
  i[0].id.startsWith("poi.") || !/*imageUrl*/
715
715
  i[5]) && !/*isReverse*/
716
716
  i[7]
717
- ), b, m, y = (
717
+ ), v, m, y = (
718
718
  /*isReverse*/
719
719
  (i[7] ? "" : (
720
720
  /*feature*/
721
721
  i[0].place_name.replace(/[^,]*,?\s*/, "")
722
722
  )) + ""
723
- ), v, E, S;
723
+ ), b, E, S;
724
724
  function w(_, k) {
725
725
  return k & /*feature*/
726
726
  1 && (t = null), k & /*feature*/
@@ -742,7 +742,7 @@ function qn(i) {
742
742
  let M = w(i, -1), L = M(i), x = h && $t(i);
743
743
  return {
744
744
  c() {
745
- e = A("li"), L.c(), u = te(), s = A("span"), c = A("span"), l = A("span"), a = _e(d), f = te(), x && x.c(), b = te(), m = A("span"), v = _e(y), p(l, "class", "primary svelte-ltkwvy"), p(c, "class", "svelte-ltkwvy"), p(m, "class", "line2 svelte-ltkwvy"), p(s, "class", "texts svelte-ltkwvy"), p(e, "tabindex", "0"), p(
745
+ e = A("li"), L.c(), u = ie(), s = A("span"), c = A("span"), l = A("span"), a = Ee(d), f = ie(), x && x.c(), v = ie(), m = A("span"), b = Ee(y), p(l, "class", "primary svelte-ltkwvy"), p(c, "class", "svelte-ltkwvy"), p(m, "class", "line2 svelte-ltkwvy"), p(s, "class", "texts svelte-ltkwvy"), p(e, "tabindex", "0"), p(
746
746
  e,
747
747
  "data-selected",
748
748
  /*selected*/
@@ -755,7 +755,7 @@ function qn(i) {
755
755
  );
756
756
  },
757
757
  m(_, k) {
758
- U(_, e, k), L.m(e, null), T(e, u), T(e, s), T(s, c), T(c, l), T(l, a), T(c, f), x && x.m(c, null), T(s, b), T(s, m), T(m, v), E || (S = [
758
+ U(_, e, k), L.m(e, null), T(e, u), T(e, s), T(s, c), T(c, l), T(l, a), T(c, f), x && x.m(c, null), T(s, v), T(s, m), T(m, b), E || (S = [
759
759
  J(
760
760
  e,
761
761
  "mouseenter",
@@ -779,7 +779,7 @@ function qn(i) {
779
779
  ) : (
780
780
  /*feature*/
781
781
  _[0].place_name.replace(/,.*/, "")
782
- )) + "") && je(a, d), k & /*showPlaceType, feature, imageUrl*/
782
+ )) + "") && Ge(a, d), k & /*showPlaceType, feature, imageUrl*/
783
783
  37 && (h = /*showPlaceType*/
784
784
  _[2] === "always" || /*showPlaceType*/
785
785
  _[2] !== "never" && !/*feature*/
@@ -794,7 +794,7 @@ function qn(i) {
794
794
  (_[7] ? "" : (
795
795
  /*feature*/
796
796
  _[0].place_name.replace(/[^,]*,?\s*/, "")
797
- )) + "") && je(v, y), k & /*selected*/
797
+ )) + "") && Ge(b, y), k & /*selected*/
798
798
  2 && p(
799
799
  e,
800
800
  "data-selected",
@@ -819,14 +819,14 @@ function Zn(i, e, t) {
819
819
  var S;
820
820
  let n, r, { feature: o } = e, { selected: u = !1 } = e, { showPlaceType: s } = e, { missingIconsCache: c } = e, { iconsBaseUrl: l } = e;
821
821
  const d = (S = o.properties) == null ? void 0 : S.categories;
822
- let a, f, h = 0, b = o.place_type[0] === "reverse";
822
+ let a, f, h = 0, v = o.place_type[0] === "reverse";
823
823
  function m() {
824
824
  f && c.add(f), t(10, h++, h);
825
825
  }
826
826
  function y(w) {
827
827
  Xt.call(this, i, w);
828
828
  }
829
- function v(w) {
829
+ function b(w) {
830
830
  Xt.call(this, i, w);
831
831
  }
832
832
  const E = () => m();
@@ -849,19 +849,19 @@ function Zn(i, e, t) {
849
849
  a,
850
850
  f,
851
851
  r,
852
- b,
852
+ v,
853
853
  m,
854
854
  c,
855
855
  h,
856
856
  n,
857
857
  y,
858
- v,
858
+ b,
859
859
  E
860
860
  ];
861
861
  }
862
- class Qn extends Me {
862
+ class Qn extends Ce {
863
863
  constructor(e) {
864
- super(), xe(this, e, Zn, qn, Se, {
864
+ super(), Me(this, e, Zn, qn, xe, {
865
865
  feature: 0,
866
866
  selected: 1,
867
867
  showPlaceType: 2,
@@ -887,9 +887,9 @@ function Hn(i) {
887
887
  }
888
888
  };
889
889
  }
890
- class Vn extends Me {
890
+ class Vn extends Ce {
891
891
  constructor(e) {
892
- super(), xe(this, e, null, Hn, Se, {});
892
+ super(), Me(this, e, null, Hn, xe, {});
893
893
  }
894
894
  }
895
895
  function Yn(i) {
@@ -942,9 +942,9 @@ function Xn(i, e, t) {
942
942
  "displayIn" in r && t(0, n = r.displayIn);
943
943
  }, [n];
944
944
  }
945
- class Kn extends Me {
945
+ class Kn extends Ce {
946
946
  constructor(e) {
947
- super(), xe(this, e, Xn, Yn, Se, { displayIn: 0 });
947
+ super(), Me(this, e, Xn, Yn, xe, { displayIn: 0 });
948
948
  }
949
949
  }
950
950
  function Jn(i) {
@@ -964,9 +964,9 @@ function Jn(i) {
964
964
  }
965
965
  };
966
966
  }
967
- class $n extends Me {
967
+ class $n extends Ce {
968
968
  constructor(e) {
969
- super(), xe(this, e, null, Jn, Se, {});
969
+ super(), Me(this, e, null, Jn, xe, {});
970
970
  }
971
971
  }
972
972
  function er(i) {
@@ -986,20 +986,20 @@ function er(i) {
986
986
  }
987
987
  };
988
988
  }
989
- class tr extends Me {
989
+ class tr extends Ce {
990
990
  constructor(e) {
991
- super(), xe(this, e, null, er, Se, {});
991
+ super(), Me(this, e, null, er, xe, {});
992
992
  }
993
993
  }
994
994
  function ir(i, e, t) {
995
995
  const n = e[1], r = e[0], o = n - r;
996
996
  return i === n && t ? i : ((i - r) % o + o) % o + r;
997
997
  }
998
- function Ze(i) {
998
+ function qe(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 De;
1002
+ let Be;
1003
1003
  async function nr(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 nr(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 (De && r.cachedLocationExpiry && De.time + r.cachedLocationExpiry > Date.now()) {
1011
- if (!De.coords)
1010
+ if (Be && r.cachedLocationExpiry && Be.time + r.cachedLocationExpiry > Date.now()) {
1011
+ if (!Be.coords)
1012
1012
  break e;
1013
- return De.coords;
1013
+ return Be.coords;
1014
1014
  }
1015
1015
  let o;
1016
1016
  try {
@@ -1031,7 +1031,7 @@ async function nr(i, e, t) {
1031
1031
  }), o;
1032
1032
  } catch {
1033
1033
  } finally {
1034
- r.cachedLocationExpiry && (De = {
1034
+ r.cachedLocationExpiry && (Be = {
1035
1035
  time: Date.now(),
1036
1036
  coords: o
1037
1037
  });
@@ -1055,14 +1055,14 @@ function or(i) {
1055
1055
  i == "DD" && (c = `${r}° ${u}, ${o}° ${s}`);
1056
1056
  const l = Math.floor(r), d = Math.floor(o), a = (r - l) * 60, f = (o - d) * 60;
1057
1057
  if (i == "DM") {
1058
- let h = oi(a, 3).toFixed(3).padStart(6, "0"), b = oi(f, 3).toFixed(3).padStart(6, "0");
1059
- h.endsWith(".000") && b.endsWith(".000") && (h = h.replace(/\.000$/, ""), b = b.replace(/\.000$/, "")), c = `${l}° ${h}' ${u}, ${d}° ${b}' ${s}`;
1058
+ let h = oi(a, 3).toFixed(3).padStart(6, "0"), v = oi(f, 3).toFixed(3).padStart(6, "0");
1059
+ h.endsWith(".000") && v.endsWith(".000") && (h = h.replace(/\.000$/, ""), v = v.replace(/\.000$/, "")), c = `${l}° ${h}' ${u}, ${d}° ${v}' ${s}`;
1060
1060
  }
1061
1061
  if (i == "DMS") {
1062
- const h = Math.floor(a), b = Math.floor(f);
1063
- let m = ((a - h) * 60).toFixed(1).padStart(4, "0"), y = ((f - b) * 60).toFixed(1).padStart(4, "0");
1064
- const v = h.toString().padStart(2, "0"), E = b.toString().padStart(2, "0");
1065
- m.endsWith(".0") && y.endsWith(".0") && (m = m.replace(/\.0$/, ""), y = y.replace(/\.0$/, "")), c = `${l}° ${v}' ${m}" ${u}, ${d}° ${E}' ${y}" ${s}`;
1062
+ const h = Math.floor(a), v = Math.floor(f);
1063
+ let m = ((a - h) * 60).toFixed(1).padStart(4, "0"), y = ((f - v) * 60).toFixed(1).padStart(4, "0");
1064
+ const b = h.toString().padStart(2, "0"), E = v.toString().padStart(2, "0");
1065
+ m.endsWith(".0") && y.endsWith(".0") && (m = m.replace(/\.0$/, ""), y = y.replace(/\.0$/, "")), c = `${l}° ${b}' ${m}" ${u}, ${d}° ${E}' ${y}" ${s}`;
1066
1066
  }
1067
1067
  return c;
1068
1068
  } else
@@ -1078,12 +1078,12 @@ function Wt(i, e) {
1078
1078
  if (rr.test(i))
1079
1079
  throw new Error("invalid coordinate value");
1080
1080
  if (ei.test(i))
1081
- if (s = ei.exec(i), c = Ue(s), c)
1081
+ if (s = ei.exec(i), c = De(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), u = "DM";
1083
1083
  else
1084
1084
  throw new Error("invalid coordinate format");
1085
1085
  else if (ti.test(i))
1086
- if (s = ti.exec(i), c = Ue(s), c) {
1086
+ if (s = ti.exec(i), c = De(s), c) {
1087
1087
  if (t = s[2], n = s[6], t.includes(",") && (t = t.replace(",", ".")), n.includes(",") && (n = n.replace(",", ".")), u = "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 (ii.test(i))
1095
- if (s = ii.exec(i), c = Ue(s), c)
1095
+ if (s = ii.exec(i), c = De(s), c)
1096
1096
  t = Math.abs(parseInt(s[2])), s[4] && (t += s[4] / 60, u = "DM"), s[6] && (t += s[6].replace(",", ".") / 3600, u = "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 (ni.test(i))
1100
- if (s = ni.exec(i), c = Ue(s), c)
1100
+ if (s = ni.exec(i), c = De(s), c)
1101
1101
  t = Math.abs(parseInt(s[2])), s[4] && (t += s[4] / 60, u = "DM"), s[6] && (t += s[6] / 3600, u = "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 (ri.test(i)) {
1105
- if (s = ri.exec(i), c = Ue(s), s.filter((l) => l).length <= 5)
1105
+ if (s = ri.exec(i), c = De(s), s.filter((l) => l).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, u = "DM"), s[6] && (t += s[6].replace(",", ".") / 3600, u = "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]);
@@ -1123,20 +1123,20 @@ function Wt(i, e) {
1123
1123
  l.test(r) && t > 0 && (t = -1 * t), l = /W|WEST/i, l.test(o) && n > 0 && (n = -1 * n);
1124
1124
  const d = s[0].trim();
1125
1125
  let a, f;
1126
- const h = /[,/;\u0020]/g, b = d.match(h);
1127
- if (b == null) {
1128
- const v = Math.floor(i.length / 2);
1129
- a = d.substring(0, v).trim(), f = d.substring(v).trim();
1126
+ const h = /[,/;\u0020]/g, v = d.match(h);
1127
+ if (v == null) {
1128
+ const b = Math.floor(i.length / 2);
1129
+ a = d.substring(0, b).trim(), f = d.substring(b).trim();
1130
1130
  } else {
1131
- let v;
1132
- b.length % 2 == 1 ? v = Math.floor(b.length / 2) : v = b.length / 2 - 1;
1131
+ let b;
1132
+ v.length % 2 == 1 ? b = Math.floor(v.length / 2) : b = v.length / 2 - 1;
1133
1133
  let E = 0;
1134
- if (v == 0)
1135
- E = d.indexOf(b[0]), a = d.substring(0, E).trim(), f = d.substring(E + 1).trim();
1134
+ if (b == 0)
1135
+ E = d.indexOf(v[0]), a = d.substring(0, E).trim(), f = d.substring(E + 1).trim();
1136
1136
  else {
1137
1137
  let S = 0, w = 0;
1138
- for (; S <= v; )
1139
- E = d.indexOf(b[S], w), w = E + 1, S++;
1138
+ for (; S <= b; )
1139
+ E = d.indexOf(v[S], w), w = E + 1, S++;
1140
1140
  a = d.substring(0, E).trim(), f = d.substring(E + 1).trim();
1141
1141
  }
1142
1142
  }
@@ -1162,7 +1162,7 @@ function Wt(i, e) {
1162
1162
  } else
1163
1163
  throw new Error("coordinates pattern match failed");
1164
1164
  }
1165
- function Ue(i) {
1165
+ function De(i) {
1166
1166
  if (!isNaN(i[0]))
1167
1167
  return !1;
1168
1168
  const e = [...i];
@@ -1583,7 +1583,7 @@ function ui(i) {
1583
1583
  let e, t;
1584
1584
  return e = new Vn({}), {
1585
1585
  c() {
1586
- Ee(e.$$.fragment);
1586
+ Le(e.$$.fragment);
1587
1587
  },
1588
1588
  m(n, r) {
1589
1589
  ge(e, n, r), t = !0;
@@ -1603,7 +1603,7 @@ function ai(i) {
1603
1603
  let e, t, n, r, o;
1604
1604
  return t = new $n({}), {
1605
1605
  c() {
1606
- e = A("button"), Ee(t.$$.fragment), p(e, "type", "button"), p(
1606
+ e = A("button"), Le(t.$$.fragment), p(e, "type", "button"), p(
1607
1607
  e,
1608
1608
  "title",
1609
1609
  /*reverseButtonTitle*/
@@ -1721,7 +1721,7 @@ function yr(i) {
1721
1721
  let e, t, n, r, o, u;
1722
1722
  return t = new Oi({}), {
1723
1723
  c() {
1724
- e = A("div"), Ee(t.$$.fragment), n = te(), r = A("div"), o = _e(
1724
+ e = A("div"), Le(t.$$.fragment), n = ie(), r = A("div"), o = Ee(
1725
1725
  /*noResultsMessage*/
1726
1726
  i[7]
1727
1727
  ), p(r, "class", "svelte-bz0zu3"), p(e, "class", "no-results svelte-bz0zu3");
@@ -1731,7 +1731,7 @@ function yr(i) {
1731
1731
  },
1732
1732
  p(s, c) {
1733
1733
  (!u || c[0] & /*noResultsMessage*/
1734
- 128) && je(
1734
+ 128) && Ge(
1735
1735
  o,
1736
1736
  /*noResultsMessage*/
1737
1737
  s[7]
@@ -1752,7 +1752,7 @@ function pr(i) {
1752
1752
  let e = "", t;
1753
1753
  return {
1754
1754
  c() {
1755
- t = _e(e);
1755
+ t = Ee(e);
1756
1756
  },
1757
1757
  m(n, r) {
1758
1758
  U(n, t, r);
@@ -1765,14 +1765,14 @@ function pr(i) {
1765
1765
  }
1766
1766
  };
1767
1767
  }
1768
- function vr(i) {
1768
+ function br(i) {
1769
1769
  let e, t, n, r, o, u, s, c, l, d, a;
1770
1770
  return t = new Oi({}), c = new Ii({}), {
1771
1771
  c() {
1772
- e = A("div"), Ee(t.$$.fragment), n = te(), r = A("div"), o = _e(
1772
+ e = A("div"), Le(t.$$.fragment), n = ie(), r = A("div"), o = Ee(
1773
1773
  /*errorMessage*/
1774
1774
  i[6]
1775
- ), u = te(), s = A("button"), Ee(c.$$.fragment), p(r, "class", "svelte-bz0zu3"), p(s, "class", "svelte-bz0zu3"), p(e, "class", "error svelte-bz0zu3");
1775
+ ), u = ie(), s = A("button"), Le(c.$$.fragment), p(r, "class", "svelte-bz0zu3"), p(s, "class", "svelte-bz0zu3"), p(e, "class", "error svelte-bz0zu3");
1776
1776
  },
1777
1777
  m(f, h) {
1778
1778
  U(f, e, h), ge(t, e, null), T(e, n), T(e, r), T(r, o), T(e, u), T(e, s), ge(c, s, null), l = !0, d || (a = J(
@@ -1784,7 +1784,7 @@ function vr(i) {
1784
1784
  },
1785
1785
  p(f, h) {
1786
1786
  (!l || h[0] & /*errorMessage*/
1787
- 64) && je(
1787
+ 64) && Ge(
1788
1788
  o,
1789
1789
  /*errorMessage*/
1790
1790
  f[6]
@@ -1849,7 +1849,7 @@ function ci(i, e) {
1849
1849
  key: i,
1850
1850
  first: null,
1851
1851
  c() {
1852
- t = wn(), Ee(n.$$.fragment), this.first = t;
1852
+ t = wn(), Le(n.$$.fragment), this.first = t;
1853
1853
  },
1854
1854
  m(s, c) {
1855
1855
  U(s, t, c), ge(n, s, c), r = !0;
@@ -1879,8 +1879,8 @@ function ci(i, e) {
1879
1879
  }
1880
1880
  };
1881
1881
  }
1882
- function br(i) {
1883
- let e, t, n, r, o, u, s, c, l, d, a, f, h, b, m, y, v, E, S, w, M, L = !1;
1882
+ function vr(i) {
1883
+ let e, t, n, r, o, u, s, c, l, d, a, f, h, v, m, y, b, E, S, w, M, L = !1;
1884
1884
  o = new tr({}), a = new Ii({});
1885
1885
  let x = (
1886
1886
  /*abortController*/
@@ -1898,16 +1898,16 @@ function br(i) {
1898
1898
  /*$$scope*/
1899
1899
  i[59],
1900
1900
  null
1901
- ), B = [vr, pr, yr, mr], F = [];
1901
+ ), B = [br, pr, yr, mr], F = [];
1902
1902
  function O(C, G) {
1903
- var $, se;
1903
+ var ee, se;
1904
1904
  return (
1905
1905
  /*error*/
1906
1906
  C[18] ? 0 : (
1907
1907
  /*focusedDelayed*/
1908
1908
  C[16] ? (
1909
1909
  /*listFeatures*/
1910
- (($ = C[14]) == null ? void 0 : $.length) === 0 ? 2 : (
1910
+ ((ee = C[14]) == null ? void 0 : ee.length) === 0 ? 2 : (
1911
1911
  /*focusedDelayed*/
1912
1912
  C[16] && /*listFeatures*/
1913
1913
  ((se = C[14]) != null && se.length) ? 3 : -1
@@ -1916,9 +1916,9 @@ function br(i) {
1916
1916
  )
1917
1917
  );
1918
1918
  }
1919
- return ~(y = O(i)) && (v = F[y] = B[y](i)), {
1919
+ return ~(y = O(i)) && (b = F[y] = B[y](i)), {
1920
1920
  c() {
1921
- e = te(), t = A("form"), n = A("div"), r = A("button"), Ee(o.$$.fragment), u = te(), s = A("input"), c = te(), l = A("div"), d = A("button"), Ee(a.$$.fragment), f = te(), x && x.c(), h = te(), _ && _.c(), b = te(), I && I.c(), m = te(), v && v.c(), p(r, "class", "search-button svelte-bz0zu3"), p(r, "type", "button"), p(
1921
+ e = ie(), t = A("form"), n = A("div"), r = A("button"), Le(o.$$.fragment), u = ie(), s = A("input"), c = ie(), l = A("div"), d = A("button"), Le(a.$$.fragment), f = ie(), x && x.c(), h = ie(), _ && _.c(), v = ie(), I && I.c(), m = ie(), b && b.c(), p(r, "class", "search-button svelte-bz0zu3"), p(r, "type", "button"), p(
1922
1922
  s,
1923
1923
  "placeholder",
1924
1924
  /*placeholder*/
@@ -1954,7 +1954,7 @@ function br(i) {
1954
1954
  s,
1955
1955
  /*searchValue*/
1956
1956
  i[1]
1957
- ), T(n, c), T(n, l), T(l, d), ge(a, d, null), T(l, f), x && x.m(l, null), T(n, h), _ && _.m(n, null), T(n, b), I && I.m(n, null), T(t, m), ~y && F[y].m(t, null), S = !0, w || (M = [
1957
+ ), T(n, c), T(n, l), T(l, d), ge(a, d, null), T(l, f), x && x.m(l, null), T(n, h), _ && _.m(n, null), T(n, v), I && I.m(n, null), T(t, m), ~y && F[y].m(t, null), S = !0, w || (M = [
1958
1958
  J(
1959
1959
  r,
1960
1960
  "click",
@@ -2040,10 +2040,10 @@ function br(i) {
2040
2040
  C[1] !== ""
2041
2041
  ), /*enableReverse*/
2042
2042
  C[5] === "button" ? _ ? (_.p(C, G), G[0] & /*enableReverse*/
2043
- 32 && q(_, 1)) : (_ = ai(C), _.c(), q(_, 1), _.m(n, b)) : _ && (st(), V(_, 1, 1, () => {
2043
+ 32 && q(_, 1)) : (_ = ai(C), _.c(), q(_, 1), _.m(n, v)) : _ && (st(), V(_, 1, 1, () => {
2044
2044
  _ = null;
2045
2045
  }), lt()), I && I.p && (!S || G[1] & /*$$scope*/
2046
- 268435456) && vn(
2046
+ 268435456) && bn(
2047
2047
  I,
2048
2048
  k,
2049
2049
  C,
@@ -2055,16 +2055,16 @@ function br(i) {
2055
2055
  C[59],
2056
2056
  G,
2057
2057
  null
2058
- ) : bn(
2058
+ ) : vn(
2059
2059
  /*$$scope*/
2060
2060
  C[59]
2061
2061
  ),
2062
2062
  null
2063
2063
  );
2064
- let $ = y;
2065
- y = O(C), y === $ ? ~y && F[y].p(C, G) : (v && (st(), V(F[$], 1, 1, () => {
2066
- F[$] = null;
2067
- }), lt()), ~y ? (v = F[y], v ? v.p(C, G) : (v = F[y] = B[y](C), v.c()), q(v, 1), v.m(t, null)) : v = null), (!S || G[0] & /*className*/
2064
+ let ee = y;
2065
+ y = O(C), y === ee ? ~y && F[y].p(C, G) : (b && (st(), V(F[ee], 1, 1, () => {
2066
+ F[ee] = null;
2067
+ }), lt()), ~y ? (b = F[y], b ? b.p(C, G) : (b = F[y] = B[y](C), b.c()), q(b, 1), b.m(t, null)) : b = null), (!S || G[0] & /*className*/
2068
2068
  4 && E !== (E = Vt(
2069
2069
  /*className*/
2070
2070
  C[2]
@@ -2078,10 +2078,10 @@ function br(i) {
2078
2078
  );
2079
2079
  },
2080
2080
  i(C) {
2081
- S || (q(L), q(o.$$.fragment, C), q(a.$$.fragment, C), q(x), q(_), q(I, C), q(v), S = !0);
2081
+ S || (q(L), q(o.$$.fragment, C), q(a.$$.fragment, C), q(x), q(_), q(I, C), q(b), S = !0);
2082
2082
  },
2083
2083
  o(C) {
2084
- V(L), V(o.$$.fragment, C), V(a.$$.fragment, C), V(x), V(_), V(I, C), V(v), S = !1;
2084
+ V(L), V(o.$$.fragment, C), V(a.$$.fragment, C), V(x), V(_), V(I, C), V(b), S = !1;
2085
2085
  },
2086
2086
  d(C) {
2087
2087
  C && (z(e), z(t)), me(o), i[62](null), me(a), x && x.d(), _ && _.d(), I && I.d(C), ~y && F[y].d(), w = !1, ye(M);
@@ -2114,7 +2114,7 @@ function wr(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: l = void 0 } = e, { clearButtonTitle: d = "clear" } = e, { clearOnBlur: a = !1 } = e, { collapsed: f = !1 } = e, { country: h = void 0 } = e, { debounceSearch: b = 200 } = e, { enableReverse: m = "never" } = e, { errorMessage: y = "Something went wrong…" } = e, { filter: v = () => !0 } = e, { flyTo: E = !0 } = e, { fuzzyMatch: S = !0 } = e, { language: w = void 0 } = e, { limit: M = void 0 } = e, { mapController: L = void 0 } = e, { minLength: x = 2 } = e, { noResultsMessage: _ = "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: B = m === "always" } = e, { reverseButtonTitle: F = "toggle reverse geocoding" } = e, { searchValue: O = "" } = e, { pickedResultStyle: C = "full-geometry" } = e, { showPlaceType: G = "if-needed" } = e, { showResultsWhileTyping: $ = !0 } = e, { selectFirst: se = !0 } = e, { flyToSelected: ft = !1 } = e, { markerOnSelected: Ke = !0 } = e, { types: Ce = void 0 } = e, { exhaustiveReverseGeocoding: dt = !1 } = e, { excludeTypes: Je = !1 } = e, { zoom: $e = u } = e, { apiUrl: ht = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: gt = {} } = e, { iconsBaseUrl: Ft = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.0-rc.5/icons/" } = e, { adjustUrlQuery: mt = () => {
2117
+ let { class: s = void 0 } = e, { apiKey: c } = e, { bbox: l = void 0 } = e, { clearButtonTitle: d = "clear" } = e, { clearOnBlur: a = !1 } = e, { collapsed: f = !1 } = e, { country: h = void 0 } = e, { debounceSearch: v = 200 } = e, { enableReverse: m = "never" } = e, { errorMessage: y = "Something went wrong…" } = e, { filter: b = () => !0 } = e, { flyTo: E = !0 } = e, { fuzzyMatch: S = !0 } = e, { language: w = void 0 } = e, { limit: M = void 0 } = e, { mapController: L = void 0 } = e, { minLength: x = 2 } = e, { noResultsMessage: _ = "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: B = m === "always" } = e, { reverseButtonTitle: F = "toggle reverse geocoding" } = e, { searchValue: O = "" } = e, { pickedResultStyle: C = "full-geometry" } = e, { showPlaceType: G = "if-needed" } = e, { showResultsWhileTyping: ee = !0 } = e, { selectFirst: se = !0 } = e, { flyToSelected: ft = !1 } = e, { markerOnSelected: Xe = !0 } = e, { types: ke = void 0 } = e, { exhaustiveReverseGeocoding: dt = !1 } = e, { excludeTypes: Ke = !1 } = e, { zoom: Je = u } = e, { apiUrl: ht = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: gt = {} } = e, { iconsBaseUrl: Ft = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.0-rc.6/icons/" } = e, { adjustUrlQuery: mt = () => {
2118
2118
  } } = e;
2119
2119
  function qi() {
2120
2120
  ce.focus();
@@ -2123,7 +2123,7 @@ function wr(i, e, t) {
2123
2123
  ce.blur();
2124
2124
  }
2125
2125
  function Gt(g, j = !0, H = !1) {
2126
- t(1, O = g), j ? (t(15, D = -1), qt()) : (bt(!H, H), setTimeout(() => {
2126
+ t(1, O = g), j ? (t(15, D = -1), qt()) : (vt(!H, H), setTimeout(() => {
2127
2127
  ce.focus(), ce.select();
2128
2128
  }));
2129
2129
  }
@@ -2133,7 +2133,7 @@ function wr(i, e, t) {
2133
2133
  function Hi() {
2134
2134
  t(55, Z = []), t(56, N = void 0);
2135
2135
  }
2136
- let Te = !1, R, Z, N, jt = "", ce, D = -1, fe, et = [], ke, Re, tt, yt;
2136
+ let Te = !1, R, Z, N, jt = "", ce, D = -1, fe, $e = [], Ne, Re, et, yt;
2137
2137
  const Vi = /* @__PURE__ */ new Set(), pe = xn();
2138
2138
  Sn(() => {
2139
2139
  L && (L.setEventHandler(void 0), L.indicateReverse(!1), L.setSelectedMarker(-1), L.setMarkers(void 0, void 0));
@@ -2143,7 +2143,7 @@ function wr(i, e, t) {
2143
2143
  t(56, N = R[D]), t(1, O = N.place_type[0] === "reverse" ? N.place_name : N.place_name.replace(/,.*/, "")), t(18, fe = void 0), t(55, Z = void 0), t(15, D = -1);
2144
2144
  else if (O) {
2145
2145
  const j = g || !pt(O);
2146
- vt(O, { exact: !0 }).then(() => {
2146
+ bt(O, { exact: !0 }).then(() => {
2147
2147
  t(55, Z = R), t(56, N = void 0), j && Yi();
2148
2148
  }).catch((H) => t(18, fe = H));
2149
2149
  }
@@ -2155,28 +2155,28 @@ function wr(i, e, t) {
2155
2155
  return !1;
2156
2156
  }
2157
2157
  }
2158
- async function vt(g, { byId: j = !1, exact: H = !1 } = {}) {
2159
- t(18, fe = void 0), ke == null || ke.abort();
2160
- const ee = new AbortController();
2161
- t(19, ke = ee);
2158
+ async function bt(g, { byId: j = !1, exact: H = !1 } = {}) {
2159
+ t(18, fe = void 0), Ne == null || Ne.abort();
2160
+ const te = new AbortController();
2161
+ t(19, Ne = te);
2162
2162
  try {
2163
2163
  const P = pt(g), Q = new URLSearchParams();
2164
- if (w !== void 0 && Q.set("language", Array.isArray(w) ? w.join(",") : w ?? ""), Ce && Q.set("types", Ce.join(",")), Je && Q.set("excludeTypes", String(Je)), l && Q.set("bbox", l.map((it) => it.toFixed(6)).join(",")), h && Q.set("country", Array.isArray(h) ? h.join(",") : h), !j && !P) {
2165
- const it = await nr(L, I, ee);
2166
- it && Q.set("proximity", it), (H || !$) && Q.set("autocomplete", "false"), Q.set("fuzzyMatch", String(S));
2164
+ if (w !== void 0 && Q.set("language", Array.isArray(w) ? w.join(",") : w ?? ""), ke && Q.set("types", ke.join(",")), Ke && Q.set("excludeTypes", String(Ke)), l && Q.set("bbox", l.map((tt) => tt.toFixed(6)).join(",")), h && Q.set("country", Array.isArray(h) ? h.join(",") : h), !j && !P) {
2165
+ const tt = await nr(L, I, te);
2166
+ tt && Q.set("proximity", tt), (H || !ee) && Q.set("autocomplete", "false"), Q.set("fuzzyMatch", String(S));
2167
2167
  }
2168
- M !== void 0 && (dt || !P || (Ce == null ? void 0 : Ce.length) === 1) && Q.set("limit", String(M)), Q.set("key", c), mt(Q);
2168
+ M !== void 0 && (dt || !P || (ke == null ? void 0 : ke.length) === 1) && Q.set("limit", String(M)), Q.set("key", c), mt(Q);
2169
2169
  const de = ht + "/" + encodeURIComponent(P ? P.decimalLongitude + "," + P.decimalLatitude : g) + ".json?" + Q.toString();
2170
2170
  if (de === jt) {
2171
- j ? (t(14, R = void 0), t(56, N = et[0])) : t(14, R = et);
2171
+ j ? (t(14, R = void 0), t(56, N = $e[0])) : t(14, R = $e);
2172
2172
  return;
2173
2173
  }
2174
2174
  jt = de;
2175
- const _t = await fetch(de, { signal: ee.signal, ...gt });
2175
+ const _t = await fetch(de, { signal: te.signal, ...gt });
2176
2176
  if (!_t.ok)
2177
2177
  throw new Error(await _t.text());
2178
2178
  const Et = await _t.json();
2179
- pe("response", { url: de, featureCollection: Et }), j ? (t(14, R = void 0), t(56, N = Et.features[0]), et = [N]) : (t(14, R = Et.features.filter(v)), P && R.unshift({
2179
+ pe("response", { url: de, featureCollection: Et }), j ? (t(14, R = void 0), t(56, N = Et.features[0]), $e = [N]) : (t(14, R = Et.features.filter(b)), P && R.unshift({
2180
2180
  type: "Feature",
2181
2181
  properties: {},
2182
2182
  id: "reverse_" + P.decimalLongitude + "_" + P.decimalLatitude,
@@ -2194,17 +2194,17 @@ function wr(i, e, t) {
2194
2194
  type: "Point",
2195
2195
  coordinates: [P.decimalLongitude, P.decimalLatitude]
2196
2196
  }
2197
- }), et = R, P && ce.focus());
2197
+ }), $e = R, P && ce.focus());
2198
2198
  } catch (P) {
2199
2199
  if (P && typeof P == "object" && "name" in P && P.name === "AbortError")
2200
2200
  return;
2201
2201
  throw P;
2202
2202
  } finally {
2203
- ee === ke && t(19, ke = void 0);
2203
+ te === Ne && t(19, Ne = void 0);
2204
2204
  }
2205
2205
  }
2206
2206
  function Yi() {
2207
- var ee;
2207
+ var te;
2208
2208
  if (!(Z != null && Z.length) || !E)
2209
2209
  return;
2210
2210
  const g = [180, 90, -180, -90], j = !Z.some((P) => !P.matching_text);
@@ -2213,9 +2213,9 @@ function wr(i, e, t) {
2213
2213
  const Q = ze(P);
2214
2214
  if (H = H === void 0 ? Q : Q === void 0 ? H : Math.max(H, Q), j || !P.matching_text)
2215
2215
  for (const de of [0, 1, 2, 3])
2216
- g[de] = Math[de < 2 ? "min" : "max"](g[de], ((ee = P.bbox) == null ? void 0 : ee[de]) ?? P.center[de % 2]);
2216
+ g[de] = Math[de < 2 ? "min" : "max"](g[de], ((te = P.bbox) == null ? void 0 : te[de]) ?? P.center[de % 2]);
2217
2217
  }
2218
- L && Z.length > 0 && (N && g[0] === g[2] && g[1] === g[3] ? L.flyTo(N.center, ze(N)) : L.fitBounds(Ze(g), 50, H));
2218
+ L && Z.length > 0 && (N && g[0] === g[2] && g[1] === g[3] ? L.flyTo(N.center, ze(N)) : L.fitBounds(qe(g), 50, H));
2219
2219
  }
2220
2220
  function ze(g) {
2221
2221
  var H;
@@ -2223,12 +2223,12 @@ function wr(i, e, t) {
2223
2223
  return;
2224
2224
  const j = g.id.replace(/\..*/, "");
2225
2225
  return (Array.isArray((H = g.properties) == null ? void 0 : H.categories) ? g.properties.categories.reduce(
2226
- (ee, P) => {
2227
- const Q = $e[j + "." + P];
2228
- return ee === void 0 ? Q : Q === void 0 ? ee : Math.max(ee, Q);
2226
+ (te, P) => {
2227
+ const Q = Je[j + "." + P];
2228
+ return te === void 0 ? Q : Q === void 0 ? te : Math.max(te, Q);
2229
2229
  },
2230
2230
  void 0
2231
- ) : void 0) ?? $e[j];
2231
+ ) : void 0) ?? Je[j];
2232
2232
  }
2233
2233
  function Xi(g) {
2234
2234
  t(0, B = m === "always"), t(14, R = void 0), t(56, N = void 0), t(15, D = -1), Gt(g[1].toFixed(6) + ", " + ir(g[0], [-180, 180], !0).toFixed(6), !1, !0);
@@ -2239,16 +2239,16 @@ function wr(i, e, t) {
2239
2239
  let j = g.key === "ArrowDown" ? 1 : g.key === "ArrowUp" ? -1 : 0;
2240
2240
  j && (D === (se ? 0 : -1) && j === -1 && t(15, D = R.length), t(15, D += j), D >= R.length && t(15, D = -1), D < 0 && se && t(15, D = 0), g.preventDefault());
2241
2241
  }
2242
- function bt(g = !0, j = !1) {
2243
- if (t(18, fe = void 0), $ || j) {
2242
+ function vt(g = !0, j = !1) {
2243
+ if (t(18, fe = void 0), ee || j) {
2244
2244
  if (Re && clearTimeout(Re), O.length < x)
2245
2245
  return;
2246
2246
  const H = O;
2247
2247
  Re = window.setTimeout(
2248
2248
  () => {
2249
- vt(H).catch((ee) => t(18, fe = ee));
2249
+ bt(H).catch((te) => t(18, fe = te));
2250
2250
  },
2251
- g ? b : 0
2251
+ g ? v : 0
2252
2252
  );
2253
2253
  } else
2254
2254
  t(14, R = void 0), t(18, fe = void 0);
@@ -2265,24 +2265,24 @@ function wr(i, e, t) {
2265
2265
  function en() {
2266
2266
  O = this.value, t(1, O), t(13, Te), t(28, a);
2267
2267
  }
2268
- const tn = () => t(13, Te = !0), nn = () => t(13, Te = !1), rn = () => bt(), on = () => {
2268
+ const tn = () => t(13, Te = !0), nn = () => t(13, Te = !1), rn = () => vt(), on = () => {
2269
2269
  t(1, O = ""), ce.focus();
2270
2270
  }, sn = () => t(0, B = !B), ln = () => t(18, fe = void 0), un = (g) => t(15, D = g), an = (g) => wt(g), cn = () => {
2271
2271
  se || t(15, D = -1);
2272
2272
  }, fn = () => {
2273
2273
  };
2274
2274
  return i.$$set = (g) => {
2275
- "class" in g && t(2, s = g.class), "apiKey" in g && t(26, c = g.apiKey), "bbox" in g && t(27, l = g.bbox), "clearButtonTitle" in g && t(3, d = g.clearButtonTitle), "clearOnBlur" in g && t(28, a = g.clearOnBlur), "collapsed" in g && t(4, f = g.collapsed), "country" in g && t(29, h = g.country), "debounceSearch" in g && t(30, b = g.debounceSearch), "enableReverse" in g && t(5, m = g.enableReverse), "errorMessage" in g && t(6, y = g.errorMessage), "filter" in g && t(31, v = g.filter), "flyTo" in g && t(32, E = g.flyTo), "fuzzyMatch" in g && t(33, S = g.fuzzyMatch), "language" in g && t(34, w = g.language), "limit" in g && t(35, M = g.limit), "mapController" in g && t(36, L = g.mapController), "minLength" in g && t(37, x = g.minLength), "noResultsMessage" in g && t(7, _ = g.noResultsMessage), "placeholder" in g && t(8, k = g.placeholder), "proximity" in g && t(38, I = g.proximity), "reverseActive" in g && t(0, B = g.reverseActive), "reverseButtonTitle" in g && t(9, F = g.reverseButtonTitle), "searchValue" in g && t(1, O = g.searchValue), "pickedResultStyle" in g && t(39, C = g.pickedResultStyle), "showPlaceType" in g && t(10, G = g.showPlaceType), "showResultsWhileTyping" in g && t(40, $ = g.showResultsWhileTyping), "selectFirst" in g && t(11, se = g.selectFirst), "flyToSelected" in g && t(41, ft = g.flyToSelected), "markerOnSelected" in g && t(42, Ke = g.markerOnSelected), "types" in g && t(43, Ce = g.types), "exhaustiveReverseGeocoding" in g && t(44, dt = g.exhaustiveReverseGeocoding), "excludeTypes" in g && t(45, Je = g.excludeTypes), "zoom" in g && t(46, $e = g.zoom), "apiUrl" in g && t(47, ht = g.apiUrl), "fetchParameters" in g && t(48, gt = g.fetchParameters), "iconsBaseUrl" in g && t(12, Ft = g.iconsBaseUrl), "adjustUrlQuery" in g && t(49, mt = g.adjustUrlQuery), "$$scope" in g && t(59, o = g.$$scope);
2275
+ "class" in g && t(2, s = g.class), "apiKey" in g && t(26, c = g.apiKey), "bbox" in g && t(27, l = g.bbox), "clearButtonTitle" in g && t(3, d = g.clearButtonTitle), "clearOnBlur" in g && t(28, a = g.clearOnBlur), "collapsed" in g && t(4, f = g.collapsed), "country" in g && t(29, h = g.country), "debounceSearch" in g && t(30, v = g.debounceSearch), "enableReverse" in g && t(5, m = g.enableReverse), "errorMessage" in g && t(6, y = g.errorMessage), "filter" in g && t(31, b = g.filter), "flyTo" in g && t(32, E = g.flyTo), "fuzzyMatch" in g && t(33, S = g.fuzzyMatch), "language" in g && t(34, w = g.language), "limit" in g && t(35, M = g.limit), "mapController" in g && t(36, L = g.mapController), "minLength" in g && t(37, x = g.minLength), "noResultsMessage" in g && t(7, _ = g.noResultsMessage), "placeholder" in g && t(8, k = g.placeholder), "proximity" in g && t(38, I = g.proximity), "reverseActive" in g && t(0, B = g.reverseActive), "reverseButtonTitle" in g && t(9, F = g.reverseButtonTitle), "searchValue" in g && t(1, O = g.searchValue), "pickedResultStyle" in g && t(39, C = g.pickedResultStyle), "showPlaceType" in g && t(10, G = g.showPlaceType), "showResultsWhileTyping" in g && t(40, ee = g.showResultsWhileTyping), "selectFirst" in g && t(11, se = g.selectFirst), "flyToSelected" in g && t(41, ft = g.flyToSelected), "markerOnSelected" in g && t(42, Xe = g.markerOnSelected), "types" in g && t(43, ke = g.types), "exhaustiveReverseGeocoding" in g && t(44, dt = g.exhaustiveReverseGeocoding), "excludeTypes" in g && t(45, Ke = g.excludeTypes), "zoom" in g && t(46, Je = g.zoom), "apiUrl" in g && t(47, ht = g.apiUrl), "fetchParameters" in g && t(48, gt = g.fetchParameters), "iconsBaseUrl" in g && t(12, Ft = g.iconsBaseUrl), "adjustUrlQuery" in g && t(49, mt = g.adjustUrlQuery), "$$scope" in g && t(59, o = g.$$scope);
2276
2276
  }, i.$$.update = () => {
2277
2277
  if (i.$$.dirty[0] & /*enableReverse*/
2278
2278
  32 && t(0, B = m === "always"), i.$$.dirty[0] & /*focused, clearOnBlur*/
2279
2279
  268443648 && setTimeout(() => {
2280
- t(16, tt = Te), a && !Te && t(1, O = "");
2280
+ t(16, et = Te), a && !Te && t(1, O = "");
2281
2281
  }), i.$$.dirty[0] & /*searchValue, listFeatures*/
2282
2282
  16386 | i.$$.dirty[1] & /*minLength*/
2283
2283
  64 && O.length < x && (t(56, N = void 0), t(14, R = void 0), t(18, fe = void 0), t(55, Z = R)), i.$$.dirty[1] & /*pickedResultStyle, picked*/
2284
- 33554688 && C !== "marker-only" && N && !N.address && N.geometry.type === "Point" && N.place_type[0] !== "reverse" && vt(N.id, { byId: !0 }).catch((g) => t(18, fe = g)), i.$$.dirty[1] & /*mapController, picked, prevIdToFly, flyTo*/
2285
- 100663330 && (L && N && N.id !== yt && E && (!N.bbox || N.bbox[0] === N.bbox[2] && N.bbox[1] === N.bbox[3] ? L.flyTo(N.center, ze(N)) : L.fitBounds(Ze(N.bbox), 50, ze(N)), t(14, R = void 0), t(55, Z = void 0), t(15, D = -1)), t(57, yt = N == null ? void 0 : N.id)), i.$$.dirty[0] & /*selectFirst, listFeatures*/
2284
+ 33554688 && C !== "marker-only" && N && !N.address && N.geometry.type === "Point" && N.place_type[0] !== "reverse" && bt(N.id, { byId: !0 }).catch((g) => t(18, fe = g)), i.$$.dirty[1] & /*mapController, picked, prevIdToFly, flyTo*/
2285
+ 100663330 && (L && N && N.id !== yt && E && (!N.bbox || N.bbox[0] === N.bbox[2] && N.bbox[1] === N.bbox[3] ? L.flyTo(N.center, ze(N)) : L.fitBounds(qe(N.bbox), 50, ze(N)), t(14, R = void 0), t(55, Z = void 0), t(15, D = -1)), t(57, yt = N == null ? void 0 : N.id)), i.$$.dirty[0] & /*selectFirst, listFeatures*/
2286
2286
  18432 && se && R != null && R.length && t(15, D = 0), i.$$.dirty[0] & /*searchValue*/
2287
2287
  2 && t(15, D = -1), i.$$.dirty[0] & /*listFeatures*/
2288
2288
  16384 | i.$$.dirty[1] & /*markedFeatures*/
@@ -2300,7 +2300,7 @@ function wr(i, e, t) {
2300
2300
  }
2301
2301
  break;
2302
2302
  case "markerMouseEnter":
2303
- Z && t(15, D = tt ? (R == null ? void 0 : R.findIndex((j) => j.id === g.id)) ?? -1 : -1);
2303
+ Z && t(15, D = et ? (R == null ? void 0 : R.findIndex((j) => j.id === g.id)) ?? -1 : -1);
2304
2304
  break;
2305
2305
  case "markerMouseLeave":
2306
2306
  Z && t(15, D = -1);
@@ -2309,8 +2309,8 @@ function wr(i, e, t) {
2309
2309
  }), i.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
2310
2310
  49152 && t(58, n = R == null ? void 0 : R[D]), i.$$.dirty[1] & /*mapController, selected, flyTo, flyToSelected*/
2311
2311
  134218786 && L && n && E && ft && L.flyTo(n.center, ze(n)), i.$$.dirty[1] & /*markerOnSelected, mapController*/
2312
- 2080 && (Ke || L == null || L.setMarkers(void 0, void 0)), i.$$.dirty[1] & /*mapController, markerOnSelected, markedFeatures, selected*/
2313
- 150997024 && L && Ke && !Z && (L.setMarkers(n ? [n] : void 0, void 0), L.setSelectedMarker(n ? 0 : -1)), i.$$.dirty[1] & /*mapController, markedFeatures, picked*/
2312
+ 2080 && (Xe || L == null || L.setMarkers(void 0, void 0)), i.$$.dirty[1] & /*mapController, markerOnSelected, markedFeatures, selected*/
2313
+ 150997024 && L && Xe && !Z && (L.setMarkers(n ? [n] : void 0, void 0), L.setSelectedMarker(n ? 0 : -1)), i.$$.dirty[1] & /*mapController, markedFeatures, picked*/
2314
2314
  50331680 && L && L.setMarkers(Z, N), i.$$.dirty[0] & /*selectedItemIndex*/
2315
2315
  32768 | i.$$.dirty[1] & /*markedFeatures, mapController*/
2316
2316
  16777248 && Z && L && L.setSelectedMarker(D), i.$$.dirty[0] & /*searchValue*/
@@ -2323,7 +2323,7 @@ function wr(i, e, t) {
2323
2323
  134217728 && pe("select", { feature: n }), i.$$.dirty[1] & /*picked*/
2324
2324
  33554432 && pe("pick", { feature: N }), i.$$.dirty[0] & /*focusedDelayed, listFeatures*/
2325
2325
  81920 && pe("optionsvisibilitychange", {
2326
- optionsVisible: tt && !!R
2326
+ optionsVisible: et && !!R
2327
2327
  }), i.$$.dirty[0] & /*listFeatures*/
2328
2328
  16384 && pe("featureslisted", { features: R }), i.$$.dirty[1] & /*markedFeatures*/
2329
2329
  16777216 && pe("featuresmarked", { features: Z }), i.$$.dirty[0] & /*reverseActive*/
@@ -2348,22 +2348,22 @@ function wr(i, e, t) {
2348
2348
  Te,
2349
2349
  R,
2350
2350
  D,
2351
- tt,
2351
+ et,
2352
2352
  ce,
2353
2353
  fe,
2354
- ke,
2354
+ Ne,
2355
2355
  Vi,
2356
2356
  qt,
2357
2357
  Ki,
2358
- bt,
2358
+ vt,
2359
2359
  wt,
2360
2360
  u,
2361
2361
  c,
2362
2362
  l,
2363
2363
  a,
2364
2364
  h,
2365
- b,
2366
2365
  v,
2366
+ b,
2367
2367
  E,
2368
2368
  S,
2369
2369
  w,
@@ -2372,13 +2372,13 @@ function wr(i, e, t) {
2372
2372
  x,
2373
2373
  I,
2374
2374
  C,
2375
- $,
2375
+ ee,
2376
2376
  ft,
2377
- Ke,
2378
- Ce,
2377
+ Xe,
2378
+ ke,
2379
2379
  dt,
2380
+ Ke,
2380
2381
  Je,
2381
- $e,
2382
2382
  ht,
2383
2383
  gt,
2384
2384
  mt,
@@ -2408,14 +2408,14 @@ function wr(i, e, t) {
2408
2408
  fn
2409
2409
  ];
2410
2410
  }
2411
- let _r = class extends Me {
2411
+ let _r = class extends Ce {
2412
2412
  constructor(e) {
2413
- super(), xe(
2413
+ super(), Me(
2414
2414
  this,
2415
2415
  e,
2416
2416
  wr,
2417
- br,
2418
- Se,
2417
+ vr,
2418
+ xe,
2419
2419
  {
2420
2420
  ZOOM_DEFAULTS: 25,
2421
2421
  class: 2,
@@ -2484,7 +2484,7 @@ let _r = class extends Me {
2484
2484
  return this.$$.ctx[54];
2485
2485
  }
2486
2486
  };
2487
- function Qe(i, e, t = {}) {
2487
+ function Ze(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 zt(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 Ze({
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 Ai(i, e, t = {}) {
2513
- return Qe({
2513
+ return Ze({
2514
2514
  type: "MultiPolygon",
2515
2515
  coordinates: i
2516
2516
  }, e, t);
2517
2517
  }
2518
2518
  function Wi(i, e, t) {
2519
2519
  if (i !== null)
2520
- for (var n, r, o, u, s, c, l, d = 0, a = 0, f, h = i.type, b = h === "FeatureCollection", m = h === "Feature", y = b ? i.features.length : 1, v = 0; v < y; v++) {
2521
- l = b ? i.features[v].geometry : m ? i.geometry : i, f = l ? l.type === "GeometryCollection" : !1, s = f ? l.geometries.length : 1;
2520
+ for (var n, r, o, u, s, c, l, d = 0, a = 0, f, h = i.type, v = h === "FeatureCollection", m = h === "Feature", y = v ? i.features.length : 1, b = 0; b < y; b++) {
2521
+ l = v ? i.features[b].geometry : m ? i.geometry : i, f = l ? l.type === "GeometryCollection" : !1, s = f ? l.geometries.length : 1;
2522
2522
  for (var E = 0; E < s; E++) {
2523
2523
  var S = 0, w = 0;
2524
2524
  if (u = f ? l.geometries[E] : l, u !== null) {
@@ -2531,7 +2531,7 @@ function Wi(i, e, t) {
2531
2531
  if (e(
2532
2532
  c,
2533
2533
  a,
2534
- v,
2534
+ b,
2535
2535
  S,
2536
2536
  w
2537
2537
  ) === !1)
@@ -2544,7 +2544,7 @@ function Wi(i, e, t) {
2544
2544
  if (e(
2545
2545
  c[n],
2546
2546
  a,
2547
- v,
2547
+ b,
2548
2548
  S,
2549
2549
  w
2550
2550
  ) === !1)
@@ -2560,7 +2560,7 @@ function Wi(i, e, t) {
2560
2560
  if (e(
2561
2561
  c[n][r],
2562
2562
  a,
2563
- v,
2563
+ b,
2564
2564
  S,
2565
2565
  w
2566
2566
  ) === !1)
@@ -2578,7 +2578,7 @@ function Wi(i, e, t) {
2578
2578
  if (e(
2579
2579
  c[n][r][o],
2580
2580
  a,
2581
- v,
2581
+ b,
2582
2582
  S,
2583
2583
  w
2584
2584
  ) === !1)
@@ -2603,9 +2603,9 @@ function Wi(i, e, t) {
2603
2603
  }
2604
2604
  }
2605
2605
  function Bt(i, e) {
2606
- var t, n, r, o, u, s, c, l, d, a, f = 0, h = i.type === "FeatureCollection", b = i.type === "Feature", m = h ? i.features.length : 1;
2606
+ var t, n, r, o, u, s, c, l, d, a, f = 0, h = i.type === "FeatureCollection", v = i.type === "Feature", m = h ? i.features.length : 1;
2607
2607
  for (t = 0; t < m; t++) {
2608
- for (s = h ? i.features[t].geometry : b ? i.geometry : i, l = h ? i.features[t].properties : b ? i.properties : {}, d = h ? i.features[t].bbox : b ? i.bbox : void 0, a = h ? i.features[t].id : b ? i.id : void 0, c = s ? s.type === "GeometryCollection" : !1, u = c ? s.geometries.length : 1, r = 0; r < u; r++) {
2608
+ for (s = h ? i.features[t].geometry : v ? i.geometry : i, l = h ? i.features[t].properties : v ? i.properties : {}, d = h ? i.features[t].bbox : v ? i.bbox : void 0, a = h ? i.features[t].id : v ? i.id : void 0, c = s ? s.type === "GeometryCollection" : !1, u = c ? s.geometries.length : 1, r = 0; r < u; r++) {
2609
2609
  if (o = c ? s.geometries[r] : s, o === null) {
2610
2610
  if (e(
2611
2611
  null,
@@ -2662,7 +2662,7 @@ function Er(i, e) {
2662
2662
  case "LineString":
2663
2663
  case "Polygon":
2664
2664
  return e(
2665
- Qe(t, r, { bbox: o, id: u }),
2665
+ Ze(t, r, { bbox: o, id: u }),
2666
2666
  n,
2667
2667
  0
2668
2668
  ) === !1 ? !1 : void 0;
@@ -2684,7 +2684,7 @@ function Er(i, e) {
2684
2684
  type: c,
2685
2685
  coordinates: d
2686
2686
  };
2687
- if (e(Qe(a, r), n, l) === !1)
2687
+ if (e(Ze(a, r), n, l) === !1)
2688
2688
  return !1;
2689
2689
  }
2690
2690
  });
@@ -2841,7 +2841,7 @@ function Cr(i, e) {
2841
2841
  return { value: l[0] ? l[1] : void 0, done: !0 };
2842
2842
  }
2843
2843
  }
2844
- var Le = (
2844
+ var Se = (
2845
2845
  /** @class */
2846
2846
  /* @__PURE__ */ function() {
2847
2847
  function i(e, t) {
@@ -2853,8 +2853,8 @@ var Le = (
2853
2853
  function kr(i, e) {
2854
2854
  return i > e ? 1 : i < e ? -1 : 0;
2855
2855
  }
2856
- function ve(i, e, t) {
2857
- for (var n = new Le(null, null), r = n, o = n; ; ) {
2856
+ function be(i, e, t) {
2857
+ for (var n = new Se(null, null), r = n, o = n; ; ) {
2858
2858
  var u = t(i, e.key);
2859
2859
  if (u < 0) {
2860
2860
  if (e.left === null)
@@ -2880,24 +2880,24 @@ function ve(i, e, t) {
2880
2880
  return r.right = e.left, o.left = e.right, e.left = n.right, e.right = n.left, e;
2881
2881
  }
2882
2882
  function xt(i, e, t, n) {
2883
- var r = new Le(i, e);
2883
+ var r = new Se(i, e);
2884
2884
  if (t === null)
2885
2885
  return r.left = r.right = null, r;
2886
- t = ve(i, t, n);
2886
+ t = be(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 fi(i, e, t) {
2891
2891
  var n = null, r = null;
2892
2892
  if (e) {
2893
- e = ve(i, e, t);
2893
+ e = be(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 Nr(i, e, t) {
2900
- return e === null ? i : (i === null || (e = ve(i.key, e, t), e.left = i), e);
2900
+ return e === null ? i : (i === null || (e = be(i.key, e, t), e.left = i), e);
2901
2901
  }
2902
2902
  function Tt(i, e, t, n, r) {
2903
2903
  if (i) {
@@ -2916,9 +2916,9 @@ var Ut = (
2916
2916
  return i.prototype.insert = function(e, t) {
2917
2917
  return this._size++, this._root = xt(e, t, this._root, this._comparator);
2918
2918
  }, i.prototype.add = function(e, t) {
2919
- var n = new Le(e, t);
2919
+ var n = new Se(e, t);
2920
2920
  this._root === null && (n.left = n.right = null, this._size++, this._root = n);
2921
- var r = this._comparator, o = ve(e, this._root, r), u = r(e, o.key);
2921
+ var r = this._comparator, o = be(e, this._root, r), u = r(e, o.key);
2922
2922
  return u === 0 ? this._root = o : (u < 0 ? (n.left = o.left, n.right = o, o.left = null) : u > 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 = ve(e, t, n);
2929
+ t = be(e, t, n);
2930
2930
  var o = n(e, t.key);
2931
- return o === 0 ? (t.left === null ? r = t.right : (r = ve(e, t.left, n), r.right = t.right), this._size--, r) : t;
2931
+ return o === 0 ? (t.left === null ? r = t.right : (r = be(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 = ve(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 = be(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 = ve(e, this._root, this._comparator), this._comparator(e, this._root.key) !== 0) ? null : this._root;
2949
+ return this._root && (this._root = be(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);
@@ -3106,18 +3106,18 @@ var Ut = (
3106
3106
  function Rt(i, e, t, n) {
3107
3107
  var r = n - t;
3108
3108
  if (r > 0) {
3109
- var o = t + Math.floor(r / 2), u = i[o], s = e[o], c = new Le(u, s);
3109
+ var o = t + Math.floor(r / 2), u = i[o], s = e[o], c = new Se(u, s);
3110
3110
  return c.left = Rt(i, e, t, o), c.right = Rt(i, e, o + 1, n), c;
3111
3111
  }
3112
3112
  return null;
3113
3113
  }
3114
3114
  function Pr(i, e) {
3115
- for (var t = new Le(null, null), n = t, r = 0; r < i.length; r++)
3116
- n = n.next = new Le(i[r], e[r]);
3115
+ for (var t = new Se(null, null), n = t, r = 0; r < i.length; r++)
3116
+ n = n.next = new Se(i[r], e[r]);
3117
3117
  return n.next = null, t.next;
3118
3118
  }
3119
3119
  function Tr(i) {
3120
- for (var e = i, t = [], n = !1, r = new Le(null, null), o = r; !n; )
3120
+ for (var e = i, t = [], n = !1, r = new Se(null, null), o = r; !n; )
3121
3121
  e ? (t.push(e), e = e.left) : t.length > 0 ? (e = o = o.next = t.pop(), e = e.right) : n = !0;
3122
3122
  return o.next = null, r.next;
3123
3123
  }
@@ -3130,7 +3130,7 @@ function It(i, e, t) {
3130
3130
  return null;
3131
3131
  }
3132
3132
  function Rr(i, e, t) {
3133
- for (var n = new Le(null, null), r = n, o = i, u = e; o !== null && u !== null; )
3133
+ for (var n = new Se(null, null), r = n, o = i, u = e; o !== null && u !== null; )
3134
3134
  t(o.key, u.key) < 0 ? (r.next = o, o = o.next) : (r.next = u, u = u.next), r = r.next;
3135
3135
  return o !== null ? r.next = o : u !== null && (r.next = u), n.next;
3136
3136
  }
@@ -3170,29 +3170,29 @@ function Or(i, e) {
3170
3170
  for (let n = 1; n < i; n++) t += e[n];
3171
3171
  return t;
3172
3172
  }
3173
- function Xe(i) {
3173
+ function Ye(i) {
3174
3174
  return new Float64Array(i);
3175
3175
  }
3176
- const Ar = (3 + 16 * he) * he, Wr = (2 + 12 * he) * he, zr = (9 + 64 * he) * he * he, Oe = Xe(4), di = Xe(8), hi = Xe(12), gi = Xe(16), K = Xe(4);
3176
+ const Ar = (3 + 16 * he) * he, Wr = (2 + 12 * he) * he, zr = (9 + 64 * he) * he * he, Oe = Ye(4), di = Ye(8), hi = Ye(12), gi = Ye(16), K = Ye(4);
3177
3177
  function Br(i, e, t, n, r, o, u) {
3178
- let s, c, l, d, a, f, h, b, m, y, v, E, S, w, M, L, x, _;
3178
+ let s, c, l, d, a, f, h, v, m, y, b, E, S, w, M, L, x, _;
3179
3179
  const k = i - r, I = t - r, B = e - o, F = n - o;
3180
- w = k * F, f = Y * k, h = f - (f - k), b = k - h, f = Y * F, m = f - (f - F), y = F - m, M = b * y - (w - h * m - b * m - h * y), L = B * I, f = Y * B, h = f - (f - B), b = B - h, f = Y * I, m = f - (f - I), y = I - m, x = b * y - (L - h * m - b * m - h * y), v = M - x, a = M - v, Oe[0] = M - (v + a) + (a - x), E = w + v, a = E - w, S = w - (E - a) + (v - a), v = S - L, a = S - v, Oe[1] = S - (v + a) + (a - L), _ = E + v, a = _ - E, Oe[2] = E - (_ - a) + (v - a), Oe[3] = _;
3180
+ w = k * F, f = Y * k, h = f - (f - k), v = k - h, f = Y * F, m = f - (f - F), y = F - m, M = v * y - (w - h * m - v * m - h * y), L = B * I, f = Y * B, h = f - (f - B), v = B - h, f = Y * I, m = f - (f - I), y = I - m, x = v * y - (L - h * m - v * m - h * y), b = M - x, a = M - b, Oe[0] = M - (b + a) + (a - x), E = w + b, a = E - w, S = w - (E - a) + (b - a), b = S - L, a = S - b, Oe[1] = S - (b + a) + (a - L), _ = E + b, a = _ - E, Oe[2] = E - (_ - a) + (b - a), Oe[3] = _;
3181
3181
  let O = Or(4, Oe), C = Wr * u;
3182
3182
  if (O >= C || -O >= C || (a = i - k, s = i - (k + a) + (a - r), a = t - I, l = t - (I + a) + (a - r), a = e - B, c = e - (B + a) + (a - o), a = n - F, d = n - (F + a) + (a - o), s === 0 && c === 0 && l === 0 && d === 0) || (C = zr * u + Ir * Math.abs(O), O += k * d + F * s - (B * l + I * c), O >= C || -O >= C)) return O;
3183
- w = s * F, f = Y * s, h = f - (f - s), b = s - h, f = Y * F, m = f - (f - F), y = F - m, M = b * y - (w - h * m - b * m - h * y), L = c * I, f = Y * c, h = f - (f - c), b = c - h, f = Y * I, m = f - (f - I), y = I - m, x = b * y - (L - h * m - b * m - h * y), v = M - x, a = M - v, K[0] = M - (v + a) + (a - x), E = w + v, a = E - w, S = w - (E - a) + (v - a), v = S - L, a = S - v, K[1] = S - (v + a) + (a - L), _ = E + v, a = _ - E, K[2] = E - (_ - a) + (v - a), K[3] = _;
3183
+ w = s * F, f = Y * s, h = f - (f - s), v = s - h, f = Y * F, m = f - (f - F), y = F - m, M = v * y - (w - h * m - v * m - h * y), L = c * I, f = Y * c, h = f - (f - c), v = c - h, f = Y * I, m = f - (f - I), y = I - m, x = v * y - (L - h * m - v * m - h * y), b = M - x, a = M - b, K[0] = M - (b + a) + (a - x), E = w + b, a = E - w, S = w - (E - a) + (b - a), b = S - L, a = S - b, K[1] = S - (b + a) + (a - L), _ = E + b, a = _ - E, K[2] = E - (_ - a) + (b - a), K[3] = _;
3184
3184
  const G = Mt(4, Oe, 4, K, di);
3185
- w = k * d, f = Y * k, h = f - (f - k), b = k - h, f = Y * d, m = f - (f - d), y = d - m, M = b * y - (w - h * m - b * m - h * y), L = B * l, f = Y * B, h = f - (f - B), b = B - h, f = Y * l, m = f - (f - l), y = l - m, x = b * y - (L - h * m - b * m - h * y), v = M - x, a = M - v, K[0] = M - (v + a) + (a - x), E = w + v, a = E - w, S = w - (E - a) + (v - a), v = S - L, a = S - v, K[1] = S - (v + a) + (a - L), _ = E + v, a = _ - E, K[2] = E - (_ - a) + (v - a), K[3] = _;
3186
- const $ = Mt(G, di, 4, K, hi);
3187
- w = s * d, f = Y * s, h = f - (f - s), b = s - h, f = Y * d, m = f - (f - d), y = d - m, M = b * y - (w - h * m - b * m - h * y), L = c * l, f = Y * c, h = f - (f - c), b = c - h, f = Y * l, m = f - (f - l), y = l - m, x = b * y - (L - h * m - b * m - h * y), v = M - x, a = M - v, K[0] = M - (v + a) + (a - x), E = w + v, a = E - w, S = w - (E - a) + (v - a), v = S - L, a = S - v, K[1] = S - (v + a) + (a - L), _ = E + v, a = _ - E, K[2] = E - (_ - a) + (v - a), K[3] = _;
3188
- const se = Mt($, hi, 4, K, gi);
3185
+ w = k * d, f = Y * k, h = f - (f - k), v = k - h, f = Y * d, m = f - (f - d), y = d - m, M = v * y - (w - h * m - v * m - h * y), L = B * l, f = Y * B, h = f - (f - B), v = B - h, f = Y * l, m = f - (f - l), y = l - m, x = v * y - (L - h * m - v * m - h * y), b = M - x, a = M - b, K[0] = M - (b + a) + (a - x), E = w + b, a = E - w, S = w - (E - a) + (b - a), b = S - L, a = S - b, K[1] = S - (b + a) + (a - L), _ = E + b, a = _ - E, K[2] = E - (_ - a) + (b - a), K[3] = _;
3186
+ const ee = Mt(G, di, 4, K, hi);
3187
+ w = s * d, f = Y * s, h = f - (f - s), v = s - h, f = Y * d, m = f - (f - d), y = d - m, M = v * y - (w - h * m - v * m - h * y), L = c * l, f = Y * c, h = f - (f - c), v = c - h, f = Y * l, m = f - (f - l), y = l - m, x = v * y - (L - h * m - v * m - h * y), b = M - x, a = M - b, K[0] = M - (b + a) + (a - x), E = w + b, a = E - w, S = w - (E - a) + (b - a), b = S - L, a = S - b, K[1] = S - (b + a) + (a - L), _ = E + b, a = _ - E, K[2] = E - (_ - a) + (b - a), K[3] = _;
3188
+ const se = Mt(ee, hi, 4, K, gi);
3189
3189
  return gi[se - 1];
3190
3190
  }
3191
3191
  function Dr(i, e, t, n, r, o) {
3192
3192
  const u = (e - o) * (t - r), s = (i - r) * (n - o), c = u - s, l = Math.abs(u + s);
3193
3193
  return Math.abs(c) >= Ar * l ? c : -Br(i, e, t, n, r, o, l);
3194
3194
  }
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, At = (i, e) => {
3195
+ const Ue = (i, e) => i.ll.x <= e.x && e.x <= i.ur.x && i.ll.y <= e.y && e.y <= i.ur.y, At = (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 Fe = (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 be = Number.EPSILON;
3210
- be === void 0 && (be = Math.pow(2, -52));
3211
- const Ur = be * be, mi = (i, e) => {
3212
- if (-be < i && i < be && -be < e && e < be)
3209
+ let we = Number.EPSILON;
3210
+ we === void 0 && (we = Math.pow(2, -52));
3211
+ const Ur = we * we, mi = (i, e) => {
3212
+ if (-we < i && i < we && -we < e && e < we)
3213
3213
  return 0;
3214
3214
  const t = i - e;
3215
3215
  return t * t < Ur * i * e ? 0 : i < e ? -1 : 1;
@@ -3247,7 +3247,7 @@ class yi {
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 Fr(), ut = (i, e) => i.x * e.y - i.y * e.x, Ui = (i, e) => i.x * e.x + i.y * e.y, pi = (i, e, t) => {
3250
+ const He = new Fr(), ut = (i, e) => i.x * e.y - i.y * e.x, Ui = (i, e) => i.x * e.x + i.y * e.y, pi = (i, e, t) => {
3251
3251
  const n = Dr(i.x, i.y, e.x, e.y, t.x, t.y);
3252
3252
  return n > 0 ? -1 : n < 0 ? 1 : 0;
3253
3253
  }, at = (i) => Math.sqrt(Ui(i, i)), Gr = (i, e, t) => {
@@ -3268,17 +3268,17 @@ const Ve = new Fr(), ut = (i, e) => i.x * e.y - i.y * e.x, Ui = (i, e) => i.x *
3268
3268
  y: t.y - i.y
3269
3269
  };
3270
3270
  return Ui(r, n) / at(r) / at(n);
3271
- }, vi = (i, e, t) => e.y === 0 ? null : {
3271
+ }, bi = (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
  }, qr = (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);
3280
- if (e.y === 0) return vi(t, n, i.y);
3281
- if (n.y === 0) return vi(i, e, t.y);
3278
+ if (e.x === 0) return vi(t, n, i.x);
3279
+ if (n.x === 0) return vi(i, e, t.x);
3280
+ if (e.y === 0) return bi(t, n, i.y);
3281
+ if (n.y === 0) return bi(i, e, t.y);
3282
3282
  const r = ut(e, n);
3283
3283
  if (r == 0) return null;
3284
3284
  const o = {
@@ -3294,7 +3294,7 @@ class re {
3294
3294
  // for ordering sweep events in the sweep event queue
3295
3295
  static compare(e, t) {
3296
3296
  const n = re.comparePoints(e.point, t.point);
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));
3297
+ return n !== 0 ? n : (e.point !== t.point && e.link(t), e.isLeft !== t.isLeft ? e.isLeft ? 1 : -1 : _e.compare(e.segment, t.segment));
3298
3298
  }
3299
3299
  // for ordering points in sweep line order
3300
3300
  static comparePoints(e, t) {
@@ -3367,7 +3367,7 @@ class re {
3367
3367
  }
3368
3368
  }
3369
3369
  let Zr = 0;
3370
- class we {
3370
+ class _e {
3371
3371
  /* This compare() function is for ordering segments in the sweep
3372
3372
  * line tree, and does so according to the following criteria:
3373
3373
  *
@@ -3415,9 +3415,9 @@ class we {
3415
3415
  if (a > 0) return -1;
3416
3416
  }
3417
3417
  if (o !== u) {
3418
- const a = l - s, f = o - n, h = d - c, b = u - r;
3419
- if (a > f && h < b) return 1;
3420
- if (a < f && h > b) return -1;
3418
+ const a = l - s, f = o - n, h = d - c, v = u - r;
3419
+ if (a > f && h < v) return 1;
3420
+ if (a < f && h > v) return -1;
3421
3421
  }
3422
3422
  return o > u ? 1 : o < u || l < d ? -1 : l > d ? 1 : e.id < t.id ? -1 : e.id > t.id ? 1 : 0;
3423
3423
  }
@@ -3435,7 +3435,7 @@ class we {
3435
3435
  r = t, o = e, u = -1;
3436
3436
  else throw new Error(`Tried to create degenerate segment at [${e.x}, ${e.y}]`);
3437
3437
  const c = new re(r, !0), l = new re(o, !1);
3438
- return new we(c, l, [n], [u]);
3438
+ return new _e(c, l, [n], [u]);
3439
3439
  }
3440
3440
  /* When a segment is split, the rightSE is replaced with a new sweep event */
3441
3441
  replaceRightSE(e) {
@@ -3505,7 +3505,7 @@ class we {
3505
3505
  getIntersection(e) {
3506
3506
  const t = this.bbox(), n = e.bbox(), r = At(t, n);
3507
3507
  if (r === null) return null;
3508
- const o = this.leftSE.point, u = this.rightSE.point, s = e.leftSE.point, c = e.rightSE.point, l = Fe(t, s) && this.comparePoint(s) === 0, d = Fe(n, o) && e.comparePoint(o) === 0, a = Fe(t, c) && this.comparePoint(c) === 0, f = Fe(n, u) && e.comparePoint(u) === 0;
3508
+ const o = this.leftSE.point, u = this.rightSE.point, s = e.leftSE.point, c = e.rightSE.point, l = Ue(t, s) && this.comparePoint(s) === 0, d = Ue(n, o) && e.comparePoint(o) === 0, a = Ue(t, c) && this.comparePoint(c) === 0, f = Ue(n, u) && e.comparePoint(u) === 0;
3509
3509
  if (d && l)
3510
3510
  return f && !a ? u : !f && a ? c : null;
3511
3511
  if (d)
@@ -3516,7 +3516,7 @@ class we {
3516
3516
  if (f) return u;
3517
3517
  if (a) return c;
3518
3518
  const h = qr(o, this.vector(), s, e.vector());
3519
- return h === null || !Fe(r, h) ? null : Ve.round(h.x, h.y);
3519
+ return h === null || !Ue(r, h) ? null : He.round(h.x, h.y);
3520
3520
  }
3521
3521
  /**
3522
3522
  * Split the given segment into multiple segments on the given points.
@@ -3533,7 +3533,7 @@ class we {
3533
3533
  split(e) {
3534
3534
  const t = [], n = e.events !== void 0, r = new re(e, !0), o = new re(e, !1), u = this.rightSE;
3535
3535
  this.replaceRightSE(o), t.push(o), t.push(r);
3536
- const s = new we(r, u, this.rings.slice(), this.windings.slice());
3536
+ const s = new _e(r, u, this.rings.slice(), this.windings.slice());
3537
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;
3538
3538
  }
3539
3539
  /* Swap which event is left and right */
@@ -3549,7 +3549,7 @@ class we {
3549
3549
  let t = this, n = e;
3550
3550
  for (; t.consumedBy; ) t = t.consumedBy;
3551
3551
  for (; n.consumedBy; ) n = n.consumedBy;
3552
- const r = we.compare(t, n);
3552
+ const r = _e.compare(t, n);
3553
3553
  if (r !== 0) {
3554
3554
  if (r > 0) {
3555
3555
  const o = t;
@@ -3652,7 +3652,7 @@ class wi {
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,10 +3667,10 @@ class wi {
3667
3667
  for (let u = 1, s = e.length; u < s; u++) {
3668
3668
  if (typeof e[u][0] != "number" || typeof e[u][1] != "number")
3669
3669
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
3670
- let c = Ve.round(e[u][0], e[u][1]);
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);
3670
+ let c = He.round(e[u][0], e[u][1]);
3671
+ c.x === o.x && c.y === o.y || (this.segments.push(_e.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
- (r.x !== o.x || r.y !== o.y) && this.segments.push(we.fromRing(o, r, this));
3673
+ (r.x !== o.x || r.y !== o.y) && this.segments.push(_e.fromRing(o, r, this));
3674
3674
  }
3675
3675
  getSweepEvents() {
3676
3676
  const e = [];
@@ -3781,8 +3781,8 @@ class ct {
3781
3781
  index: l.length,
3782
3782
  point: s.point
3783
3783
  });
3784
- const b = s.getLeftmostComparator(u);
3785
- c = f.sort(b)[0].otherSE;
3784
+ const v = s.getLeftmostComparator(u);
3785
+ c = f.sort(v)[0].otherSE;
3786
3786
  break;
3787
3787
  }
3788
3788
  t.push(new ct(l));
@@ -3881,7 +3881,7 @@ class Hr {
3881
3881
  }
3882
3882
  class Vr {
3883
3883
  constructor(e) {
3884
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : we.compare;
3884
+ let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _e.compare;
3885
3885
  this.queue = e, this.tree = new Ut(t), this.segments = [];
3886
3886
  }
3887
3887
  process(e) {
@@ -3901,7 +3901,7 @@ class Vr {
3901
3901
  const a = s.getIntersection(t);
3902
3902
  if (a !== null && (t.isAnEndpoint(a) || (l = a), !s.isAnEndpoint(a))) {
3903
3903
  const f = this._splitSafely(s, a);
3904
- for (let h = 0, b = f.length; h < b; h++)
3904
+ for (let h = 0, v = f.length; h < v; h++)
3905
3905
  n.push(f[h]);
3906
3906
  }
3907
3907
  }
@@ -3910,7 +3910,7 @@ class Vr {
3910
3910
  const a = c.getIntersection(t);
3911
3911
  if (a !== null && (t.isAnEndpoint(a) || (d = a), !c.isAnEndpoint(a))) {
3912
3912
  const f = this._splitSafely(c, a);
3913
- for (let h = 0, b = f.length; h < b; h++)
3913
+ for (let h = 0, v = f.length; h < v; h++)
3914
3914
  n.push(f[h]);
3915
3915
  }
3916
3916
  }
@@ -3918,7 +3918,7 @@ class Vr {
3918
3918
  let a = null;
3919
3919
  l === null ? a = d : d === null ? a = l : a = re.comparePoints(l, d) <= 0 ? l : d, this.queue.remove(t.rightSE), n.push(t.rightSE);
3920
3920
  const f = t.split(a);
3921
- for (let h = 0, b = f.length; h < b; h++)
3921
+ for (let h = 0, v = f.length; h < v; h++)
3922
3922
  n.push(f[h]);
3923
3923
  }
3924
3924
  n.length > 0 ? (this.tree.remove(t), n.push(e)) : (this.segments.push(t), t.prev = s);
@@ -3955,7 +3955,7 @@ class Vr {
3955
3955
  const Li = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1e6, Yr = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS || 1e6;
3956
3956
  class Xr {
3957
3957
  run(e, t, n) {
3958
- ue.type = e, Ve.reset();
3958
+ ue.type = e, He.reset();
3959
3959
  const r = [new _i(t, !0)];
3960
3960
  for (let a = 0, f = n.length; a < f; a++)
3961
3961
  r.push(new _i(n[a], !1));
@@ -3968,14 +3968,14 @@ class Xr {
3968
3968
  if (ue.type === "intersection")
3969
3969
  for (let a = 0, f = r.length; a < f; a++) {
3970
3970
  const h = r[a];
3971
- for (let b = a + 1, m = r.length; b < m; b++)
3972
- if (At(h.bbox, r[b].bbox) === null) return [];
3971
+ for (let v = a + 1, m = r.length; v < m; v++)
3972
+ if (At(h.bbox, r[v].bbox) === null) return [];
3973
3973
  }
3974
3974
  const o = new Ut(re.compare);
3975
3975
  for (let a = 0, f = r.length; a < f; a++) {
3976
3976
  const h = r[a].getSweepEvents();
3977
- for (let b = 0, m = h.length; b < m; b++)
3978
- if (o.insert(h[b]), o.size > Li)
3977
+ for (let v = 0, m = h.length; v < m; v++)
3978
+ if (o.insert(h[v]), o.size > Li)
3979
3979
  throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big).");
3980
3980
  }
3981
3981
  const u = new Vr(o);
@@ -3991,13 +3991,13 @@ class Xr {
3991
3991
  if (u.segments.length > Yr)
3992
3992
  throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments).");
3993
3993
  const f = u.process(a);
3994
- for (let h = 0, b = f.length; h < b; h++) {
3994
+ for (let h = 0, v = f.length; h < v; h++) {
3995
3995
  const m = f[h];
3996
3996
  m.consumedBy === void 0 && o.insert(m);
3997
3997
  }
3998
3998
  s = o.size, c = o.pop();
3999
3999
  }
4000
- Ve.reset();
4000
+ He.reset();
4001
4001
  const l = ct.factory(u.segments);
4002
4002
  return new Hr(l).getGeom();
4003
4003
  }
@@ -4051,12 +4051,12 @@ function ro(i) {
4051
4051
  var e = [];
4052
4052
  return Er(i, function(t) {
4053
4053
  e.push(t);
4054
- }), He(e);
4054
+ }), Qe(e);
4055
4055
  }
4056
4056
  var oo = ro;
4057
4057
  function Si(i, e) {
4058
4058
  const t = no(
4059
- He([
4059
+ Qe([
4060
4060
  zt([
4061
4061
  [
4062
4062
  [180, 90],
@@ -4072,10 +4072,10 @@ function Si(i, e) {
4072
4072
  if (!t)
4073
4073
  return;
4074
4074
  t.properties = { isMask: !0 };
4075
- const n = Ze(Pt(i)), r = (n[2] - n[0]) / 360 / 1e3, o = n[0] < -180, u = n[2] > 180, s = oo(i);
4075
+ const n = qe(Pt(i)), r = (n[2] - n[0]) / 360 / 1e3, o = n[0] < -180, u = n[2] > 180, s = oo(i);
4076
4076
  if (s.features.length > 1 && (o || u))
4077
4077
  for (const c of s.features) {
4078
- const l = Ze(Pt(c));
4078
+ const l = qe(Pt(c));
4079
4079
  if (u && l[0] < -180 + r)
4080
4080
  for (const d of c.geometry.coordinates)
4081
4081
  for (const a of d)
@@ -4086,7 +4086,7 @@ function Si(i, e) {
4086
4086
  a[0] -= 360 - r;
4087
4087
  }
4088
4088
  e(
4089
- He([
4089
+ Qe([
4090
4090
  s.features.length < 2 ? i : Gi(s) ?? i,
4091
4091
  t
4092
4092
  ])
@@ -4117,12 +4117,12 @@ function so(i, e = !0, t = !0, n = {}, r = {}, o = xi, u = !1) {
4117
4117
  coordinates: [m.latlng.lng, m.latlng.lat]
4118
4118
  });
4119
4119
  };
4120
- function b(m, y = !1) {
4121
- const v = document.createElement("div");
4122
- return new Kn({ props: { displayIn: "leaflet" }, target: v }), new le.Marker(m, {
4120
+ function v(m, y = !1) {
4121
+ const b = document.createElement("div");
4122
+ return new Kn({ props: { displayIn: "leaflet" }, target: b }), new le.Marker(m, {
4123
4123
  interactive: y,
4124
4124
  icon: new le.DivIcon({
4125
- html: v,
4125
+ html: b,
4126
4126
  className: "",
4127
4127
  iconAnchor: [12, 26],
4128
4128
  iconSize: [25, 30],
@@ -4137,7 +4137,7 @@ function so(i, e = !0, t = !0, n = {}, r = {}, o = xi, u = !1) {
4137
4137
  flyTo(m, y) {
4138
4138
  i.flyTo([m[1], m[0]], y, { duration: 2, ...n });
4139
4139
  },
4140
- fitBounds(m, y, v) {
4140
+ fitBounds(m, y, b) {
4141
4141
  i.flyToBounds(
4142
4142
  [
4143
4143
  [m[1], m[0]],
@@ -4146,7 +4146,7 @@ function so(i, e = !0, t = !0, n = {}, r = {}, o = xi, u = !1) {
4146
4146
  {
4147
4147
  padding: [y, y],
4148
4148
  duration: 2,
4149
- ...v ? { maxZoom: v } : {},
4149
+ ...b ? { maxZoom: b } : {},
4150
4150
  ...r
4151
4151
  }
4152
4152
  );
@@ -4155,19 +4155,19 @@ function so(i, e = !0, t = !0, n = {}, r = {}, o = xi, u = !1) {
4155
4155
  i.getContainer().style.cursor = m ? "crosshair" : "";
4156
4156
  },
4157
4157
  setReverseMarker(m) {
4158
- var v;
4158
+ var b;
4159
4159
  if (!e)
4160
4160
  return;
4161
4161
  const y = m && [m[1], m[0]];
4162
- d ? y ? d.setLatLng(y) : (d.remove(), d = void 0) : y && (e instanceof Function ? d = e(i) ?? void 0 : (d = (typeof e == "object" ? new le.Marker(y, e) : b(y)).addTo(i), (v = d.getElement()) == null || v.classList.add("marker-reverse")));
4162
+ d ? y ? d.setLatLng(y) : (d.remove(), d = void 0) : y && (e instanceof Function ? d = e(i) ?? void 0 : (d = (typeof e == "object" ? new le.Marker(y, e) : v(y)).addTo(i), (b = d.getElement()) == null || b.classList.add("marker-reverse")));
4163
4163
  },
4164
4164
  setMarkers(m, y) {
4165
- function v(E) {
4165
+ function b(E) {
4166
4166
  f.clearLayers(), E && f.addData(E);
4167
4167
  }
4168
4168
  for (const E of c)
4169
4169
  E.remove();
4170
- if (c.length = 0, v(), y) {
4170
+ if (c.length = 0, b(), y) {
4171
4171
  let E = !1;
4172
4172
  if (y.geometry.type === "GeometryCollection") {
4173
4173
  const S = y.geometry.geometries.filter(
@@ -4175,7 +4175,7 @@ function so(i, e = !0, t = !0, n = {}, r = {}, o = xi, u = !1) {
4175
4175
  );
4176
4176
  e: if (S.length > 0) {
4177
4177
  const w = Gi(
4178
- He(S.map((M) => Qe(M)))
4178
+ Qe(S.map((M) => Ze(M)))
4179
4179
  );
4180
4180
  if (!w)
4181
4181
  break e;
@@ -4184,13 +4184,13 @@ function so(i, e = !0, t = !0, n = {}, r = {}, o = xi, u = !1) {
4184
4184
  ...y,
4185
4185
  geometry: w.geometry
4186
4186
  },
4187
- v
4187
+ b
4188
4188
  ), E = !0;
4189
4189
  } else {
4190
4190
  const w = y.geometry.geometries.filter(
4191
4191
  (M) => M.type === "LineString" || M.type === "MultiLineString"
4192
4192
  );
4193
- w.length > 0 && (v({
4193
+ w.length > 0 && (b({
4194
4194
  ...y,
4195
4195
  geometry: { type: "GeometryCollection", geometries: w }
4196
4196
  }), E = !0);
@@ -4201,11 +4201,11 @@ function so(i, e = !0, t = !0, n = {}, r = {}, o = xi, u = !1) {
4201
4201
  Si(y, (S) => {
4202
4202
  if (!S)
4203
4203
  return;
4204
- const w = [...S.features], M = Ze(Pt(y)), L = M[2] - M[0];
4205
- M[0] - L / 4 < -180 && w.push(...Mi(S, -360).features), M[2] + L / 4 > 180 && w.push(...Mi(S, 360).features), v(He(w));
4204
+ const w = [...S.features], M = qe(Pt(y)), L = M[2] - M[0];
4205
+ M[0] - L / 4 < -180 && w.push(...Mi(S, -360).features), M[2] + L / 4 > 180 && w.push(...Mi(S, 360).features), b(Qe(w));
4206
4206
  });
4207
4207
  else if (y.geometry.type === "LineString" || y.geometry.type === "MultiLineString") {
4208
- v(y);
4208
+ b(y);
4209
4209
  return;
4210
4210
  }
4211
4211
  }
@@ -4217,7 +4217,7 @@ function so(i, e = !0, t = !0, n = {}, r = {}, o = xi, u = !1) {
4217
4217
  } else if (e) {
4218
4218
  const S = [y.center[1], y.center[0]];
4219
4219
  c.push(
4220
- typeof e == "object" ? new le.Marker(S, e) : b(S).addTo(i)
4220
+ typeof e == "object" ? new le.Marker(S, e) : v(S).addTo(i)
4221
4221
  );
4222
4222
  }
4223
4223
  }
@@ -4234,7 +4234,7 @@ function so(i, e = !0, t = !0, n = {}, r = {}, o = xi, u = !1) {
4234
4234
  if (w = t(i, E), !w)
4235
4235
  continue;
4236
4236
  } else
4237
- w = (typeof t == "object" ? new le.Marker(S, t) : b(S, !0)).addTo(i).bindTooltip(
4237
+ w = (typeof t == "object" ? new le.Marker(S, t) : v(S, !0)).addTo(i).bindTooltip(
4238
4238
  E.place_type[0] === "reverse" ? E.place_name : E.place_name.replace(/,.*/, ""),
4239
4239
  {
4240
4240
  direction: "top"
@@ -4251,8 +4251,8 @@ function so(i, e = !0, t = !0, n = {}, r = {}, o = xi, u = !1) {
4251
4251
  }
4252
4252
  },
4253
4253
  setSelectedMarker(m) {
4254
- var y, v;
4255
- l && ((y = l.getElement()) == null || y.classList.toggle("marker-selected", !1)), l = m > -1 ? c[m] : void 0, (v = l == null ? void 0 : l.getElement()) == null || v.classList.toggle("marker-selected", !0);
4254
+ var y, b;
4255
+ l && ((y = l.getElement()) == null || y.classList.toggle("marker-selected", !1)), l = m > -1 ? c[m] : void 0, (b = l == null ? void 0 : l.getElement()) == null || b.classList.toggle("marker-selected", !0);
4256
4256
  },
4257
4257
  getCenterAndZoom() {
4258
4258
  const m = i.getCenter();
@@ -4281,14 +4281,14 @@ function Ci(i, e) {
4281
4281
  class ji extends le.Control {
4282
4282
  }
4283
4283
  le.Util.extend(ji.prototype, le.Evented.prototype);
4284
- var ne, Pe, Ye;
4284
+ var ne, ve, Ve;
4285
4285
  class lo extends ji {
4286
4286
  constructor(t) {
4287
4287
  super(t);
4288
- nt(this, ne);
4289
- nt(this, Pe);
4290
- nt(this, Ye);
4291
- Be(this, Pe, t);
4288
+ it(this, ne);
4289
+ it(this, ve);
4290
+ it(this, Ve);
4291
+ nt(this, ve, t);
4292
4292
  }
4293
4293
  onAdd(t) {
4294
4294
  const n = document.createElement("div");
@@ -4300,7 +4300,7 @@ class lo extends ji {
4300
4300
  fullGeometryStyle: s,
4301
4301
  position: c,
4302
4302
  ...l
4303
- } = ie(this, Pe), d = typeof u == "boolean" ? {} : u, a = so(
4303
+ } = $(this, ve), d = typeof u == "boolean" ? {} : u, a = so(
4304
4304
  t,
4305
4305
  r,
4306
4306
  o,
@@ -4309,7 +4309,7 @@ class lo extends ji {
4309
4309
  s,
4310
4310
  l.pickedResultStyle === "full-geometry-including-polygon-center-marker"
4311
4311
  );
4312
- Be(this, Ye, a), Be(this, ne, new _r({
4312
+ nt(this, Ve, a), nt(this, ne, new _r({
4313
4313
  target: n,
4314
4314
  props: {
4315
4315
  mapController: a,
@@ -4328,49 +4328,49 @@ class lo extends ji {
4328
4328
  querychange: void 0
4329
4329
  };
4330
4330
  for (const h in f)
4331
- ie(this, ne).$on(h, (b) => this.fire(h, b.detail));
4331
+ $(this, ne).$on(h, (v) => this.fire(h, v.detail));
4332
4332
  return n;
4333
4333
  }
4334
4334
  setOptions(t) {
4335
4335
  var c, l;
4336
- Be(this, Pe, t);
4336
+ Object.assign($(this, ve), t);
4337
4337
  const {
4338
4338
  marker: n,
4339
4339
  showResultMarkers: r,
4340
4340
  flyTo: o,
4341
4341
  fullGeometryStyle: u,
4342
4342
  ...s
4343
- } = ie(this, Pe);
4344
- (c = ie(this, ne)) == null || c.$set(s), (l = ie(this, Ye)) == null || l.setShowPolygonMarker(
4345
- t.pickedResultStyle === "full-geometry-including-polygon-center-marker"
4343
+ } = $(this, ve);
4344
+ (c = $(this, ne)) == null || c.$set(s), (l = $(this, Ve)) == null || l.setShowPolygonMarker(
4345
+ $(this, ve).pickedResultStyle === "full-geometry-including-polygon-center-marker"
4346
4346
  );
4347
4347
  }
4348
4348
  setQuery(t, n = !0) {
4349
4349
  var r;
4350
- (r = ie(this, ne)) == null || r.setQuery(t, n);
4350
+ (r = $(this, ne)) == null || r.setQuery(t, n);
4351
4351
  }
4352
4352
  clearMap() {
4353
4353
  var t;
4354
- (t = ie(this, ne)) == null || t.clearMap();
4354
+ (t = $(this, ne)) == null || t.clearMap();
4355
4355
  }
4356
4356
  clearList() {
4357
4357
  var t;
4358
- (t = ie(this, ne)) == null || t.clearList();
4358
+ (t = $(this, ne)) == null || t.clearList();
4359
4359
  }
4360
4360
  focus() {
4361
4361
  var t;
4362
- (t = ie(this, ne)) == null || t.focus();
4362
+ (t = $(this, ne)) == null || t.focus();
4363
4363
  }
4364
4364
  blur() {
4365
4365
  var t;
4366
- (t = ie(this, ne)) == null || t.blur();
4366
+ (t = $(this, ne)) == null || t.blur();
4367
4367
  }
4368
4368
  onRemove() {
4369
4369
  var t;
4370
- (t = ie(this, ne)) == null || t.$destroy();
4370
+ (t = $(this, ne)) == null || t.$destroy();
4371
4371
  }
4372
4372
  }
4373
- ne = new WeakMap(), Pe = new WeakMap(), Ye = new WeakMap();
4373
+ ne = new WeakMap(), ve = new WeakMap(), Ve = new WeakMap();
4374
4374
  function uo(...i) {
4375
4375
  return new lo(...i);
4376
4376
  }