@maptiler/geocoding-control 2.1.1 → 2.1.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.
Files changed (33) hide show
  1. package/leaflet.js +1 -1
  2. package/leaflet.umd.js +1 -1
  3. package/maplibregl.js +1 -1
  4. package/maplibregl.umd.js +1 -1
  5. package/maptilersdk.js +169 -170
  6. package/maptilersdk.js.map +1 -1
  7. package/maptilersdk.umd.js +1 -1
  8. package/maptilersdk.umd.js.map +1 -1
  9. package/openlayers.js +1 -1
  10. package/openlayers.umd.js +1 -1
  11. package/package.json +6 -6
  12. package/react.js +1 -1
  13. package/react.umd.js +1 -1
  14. package/svelte/GeocodingControl.svelte +1 -1
  15. package/svelte/info.json +1 -0
  16. package/svelte/maptilersdk.js +1 -1
  17. package/vanilla.js +1 -1
  18. package/vanilla.umd.js +1 -1
  19. /package/{src/MapLibreBasedGeocodingControl.d.ts → MapLibreBasedGeocodingControl.d.ts} +0 -0
  20. /package/{src/geo-coordinates-parser.t.d.ts → geo-coordinates-parser.t.d.ts} +0 -0
  21. /package/{src/geoUtils.d.ts → geoUtils.d.ts} +0 -0
  22. /package/{src/leaflet-controller.d.ts → leaflet-controller.d.ts} +0 -0
  23. /package/{src/leaflet.d.ts → leaflet.d.ts} +0 -0
  24. /package/{src/maplibregl-controller.d.ts → maplibregl-controller.d.ts} +0 -0
  25. /package/{src/maplibregl.d.ts → maplibregl.d.ts} +0 -0
  26. /package/{src/maptilersdk.d.ts → maptilersdk.d.ts} +0 -0
  27. /package/{src/mask.d.ts → mask.d.ts} +0 -0
  28. /package/{src/openlayers-controller.d.ts → openlayers-controller.d.ts} +0 -0
  29. /package/{src/openlayers.d.ts → openlayers.d.ts} +0 -0
  30. /package/{src/proximity.d.ts → proximity.d.ts} +0 -0
  31. /package/{src/react.d.ts → react.d.ts} +0 -0
  32. /package/{src/types.d.ts → types.d.ts} +0 -0
  33. /package/{src/vanilla.d.ts → vanilla.d.ts} +0 -0
package/maptilersdk.js CHANGED
@@ -6,10 +6,9 @@ var Bn = (i, e, t) => e in i ? In(i, e, { enumerable: !0, configurable: !0, writ
6
6
  var P = (i, e, t) => Bn(i, typeof e != "symbol" ? e + "" : e, t), yi = (i, e, t) => e.has(i) || pi("Cannot " + t);
7
7
  var ue = (i, e, t) => (yi(i, e, "read from private field"), t ? t.call(i) : e.get(i)), Kt = (i, e, t) => e.has(i) ? pi("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), Yt = (i, e, t, n) => (yi(i, e, "write to private field"), n ? n.call(i, t) : e.set(i, t), t);
8
8
  import * as vi from "@maptiler/sdk";
9
- const zn = "@maptiler/geocoding-control", Wn = "2.1.1";
10
9
  function $() {
11
10
  }
12
- function Gn(i, e) {
11
+ function zn(i, e) {
13
12
  for (const t in e) i[t] = e[t];
14
13
  return (
15
14
  /** @type {T & S} */
@@ -35,28 +34,28 @@ let xt;
35
34
  function me(i, e) {
36
35
  return i === e ? !0 : (xt || (xt = document.createElement("a")), xt.href = e, i === xt.href);
37
36
  }
38
- function Dn(i) {
37
+ function Wn(i) {
39
38
  return Object.keys(i).length === 0;
40
39
  }
41
- function Un(i, e, t, n) {
40
+ function Gn(i, e, t, n) {
42
41
  if (i) {
43
42
  const r = Xi(i, e, t, n);
44
43
  return i[0](r);
45
44
  }
46
45
  }
47
46
  function Xi(i, e, t, n) {
48
- return i[1] && n ? Gn(t.ctx.slice(), i[1](n(e))) : t.ctx;
47
+ return i[1] && n ? zn(t.ctx.slice(), i[1](n(e))) : t.ctx;
49
48
  }
50
- function qn(i, e, t, n) {
49
+ function Dn(i, e, t, n) {
51
50
  return i[2], e.dirty;
52
51
  }
53
- function Fn(i, e, t, n, r, u) {
52
+ function Un(i, e, t, n, r, u) {
54
53
  if (r) {
55
54
  const h = Xi(e, t, n, u);
56
55
  i.p(h, r);
57
56
  }
58
57
  }
59
- function jn(i) {
58
+ function qn(i) {
60
59
  if (i.ctx.length > 32) {
61
60
  const e = [], t = i.ctx.length / 32;
62
61
  for (let n = 0; n < t; n++)
@@ -89,13 +88,13 @@ function He(i) {
89
88
  function Ee() {
90
89
  return He(" ");
91
90
  }
92
- function Zn() {
91
+ function Fn() {
93
92
  return He("");
94
93
  }
95
94
  function ce(i, e, t, n) {
96
95
  return i.addEventListener(e, t, n), () => i.removeEventListener(e, t, n);
97
96
  }
98
- function Hn(i) {
97
+ function jn(i) {
99
98
  return function(e) {
100
99
  return e.preventDefault(), i.call(this, e);
101
100
  };
@@ -103,7 +102,7 @@ function Hn(i) {
103
102
  function x(i, e, t) {
104
103
  t == null ? i.removeAttribute(e) : i.getAttribute(e) !== t && i.setAttribute(e, t);
105
104
  }
106
- function Vn(i) {
105
+ function Zn(i) {
107
106
  return Array.from(i.childNodes);
108
107
  }
109
108
  function bt(i, e) {
@@ -116,7 +115,7 @@ function wi(i, e) {
116
115
  function Ae(i, e, t) {
117
116
  i.classList.toggle(e, !!t);
118
117
  }
119
- function Kn(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
118
+ function Hn(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
120
119
  return new CustomEvent(i, { detail: e, bubbles: t, cancelable: n });
121
120
  }
122
121
  let wt;
@@ -127,7 +126,7 @@ function Ji() {
127
126
  if (!wt) throw new Error("Function called outside component initialization");
128
127
  return wt;
129
128
  }
130
- function Yn(i) {
129
+ function Vn(i) {
131
130
  Ji().$$.on_destroy.push(i);
132
131
  }
133
132
  function $i() {
@@ -135,7 +134,7 @@ function $i() {
135
134
  return (e, t, { cancelable: n = !1 } = {}) => {
136
135
  const r = i.$$.callbacks[e];
137
136
  if (r) {
138
- const u = Kn(
137
+ const u = Hn(
139
138
  /** @type {string} */
140
139
  e,
141
140
  t,
@@ -148,16 +147,16 @@ function $i() {
148
147
  return !0;
149
148
  };
150
149
  }
151
- function Qn(i, e) {
150
+ function Kn(i, e) {
152
151
  const t = i.$$.callbacks[e.type];
153
152
  t && t.slice().forEach((n) => n.call(this, e));
154
153
  }
155
154
  const ot = [], $t = [];
156
155
  let lt = [];
157
- const Ei = [], Xn = /* @__PURE__ */ Promise.resolve();
156
+ const Ei = [], Yn = /* @__PURE__ */ Promise.resolve();
158
157
  let ei = !1;
159
- function Jn() {
160
- ei || (ei = !0, Xn.then(en));
158
+ function Qn() {
159
+ ei || (ei = !0, Yn.then(en));
161
160
  }
162
161
  function ti(i) {
163
162
  lt.push(i);
@@ -172,7 +171,7 @@ function en() {
172
171
  try {
173
172
  for (; st < ot.length; ) {
174
173
  const e = ot[st];
175
- st++, vt(e), $n(e.$$);
174
+ st++, vt(e), Xn(e.$$);
176
175
  }
177
176
  } catch (e) {
178
177
  throw ot.length = 0, st = 0, e;
@@ -188,14 +187,14 @@ function en() {
188
187
  Ei.pop()();
189
188
  ei = !1, Qt.clear(), vt(i);
190
189
  }
191
- function $n(i) {
190
+ function Xn(i) {
192
191
  if (i.fragment !== null) {
193
192
  i.update(), qe(i.before_update);
194
193
  const e = i.dirty;
195
194
  i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(ti);
196
195
  }
197
196
  }
198
- function er(i) {
197
+ function Jn(i) {
199
198
  const e = [], t = [];
200
199
  lt.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), lt = e;
201
200
  }
@@ -226,12 +225,12 @@ function he(i, e, t, n) {
226
225
  function Li(i) {
227
226
  return (i == null ? void 0 : i.length) !== void 0 ? i : Array.from(i);
228
227
  }
229
- function tr(i, e) {
228
+ function $n(i, e) {
230
229
  he(i, 1, 1, () => {
231
230
  e.delete(i.key);
232
231
  });
233
232
  }
234
- function ir(i, e, t, n, r, u, h, o, g, c, E, S) {
233
+ function er(i, e, t, n, r, u, h, o, g, c, E, S) {
235
234
  let C = i.length, R = u.length, O = C;
236
235
  const z = {};
237
236
  for (; O--; ) z[i[O].key] = O;
@@ -268,10 +267,10 @@ function Ge(i, e, t) {
268
267
  }
269
268
  function De(i, e) {
270
269
  const t = i.$$;
271
- t.fragment !== null && (er(t.after_update), qe(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
270
+ t.fragment !== null && (Jn(t.after_update), qe(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
272
271
  }
273
- function nr(i, e) {
274
- i.$$.dirty[0] === -1 && (ot.push(i), Jn(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
272
+ function tr(i, e) {
273
+ i.$$.dirty[0] === -1 && (ot.push(i), Qn(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
275
274
  }
276
275
  function Ye(i, e, t, n, r, u, h = null, o = [-1]) {
277
276
  const g = wt;
@@ -301,10 +300,10 @@ function Ye(i, e, t, n, r, u, h = null, o = [-1]) {
301
300
  let E = !1;
302
301
  if (c.ctx = t ? t(i, e.props || {}, (S, C, ...R) => {
303
302
  const O = R.length ? R[0] : C;
304
- return c.ctx && r(c.ctx[S], c.ctx[S] = O) && (!c.skip_bound && c.bound[S] && c.bound[S](O), E && nr(i, S)), C;
303
+ return c.ctx && r(c.ctx[S], c.ctx[S] = O) && (!c.skip_bound && c.bound[S] && c.bound[S](O), E && tr(i, S)), C;
305
304
  }) : [], c.update(), E = !0, qe(c.before_update), c.fragment = n ? n(c.ctx) : !1, e.target) {
306
305
  if (e.hydrate) {
307
- const S = Vn(e.target);
306
+ const S = Zn(e.target);
308
307
  c.fragment && c.fragment.l(S), S.forEach(ee);
309
308
  } else
310
309
  c.fragment && c.fragment.c();
@@ -355,12 +354,12 @@ class Qe {
355
354
  * @returns {void}
356
355
  */
357
356
  $set(e) {
358
- this.$$set && !Dn(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
357
+ this.$$set && !Wn(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
359
358
  }
360
359
  }
361
- const rr = "4";
362
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(rr);
363
- function sr(i) {
360
+ const ir = "4";
361
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ir);
362
+ function nr(i) {
364
363
  let e, t;
365
364
  return {
366
365
  c() {
@@ -379,10 +378,10 @@ function sr(i) {
379
378
  }
380
379
  class tn extends Qe {
381
380
  constructor(e) {
382
- super(), Ye(this, e, null, sr, Ke, {});
381
+ super(), Ye(this, e, null, nr, Ke, {});
383
382
  }
384
383
  }
385
- function or(i) {
384
+ function rr(i) {
386
385
  let e, t;
387
386
  return {
388
387
  c() {
@@ -401,10 +400,10 @@ function or(i) {
401
400
  }
402
401
  class nn extends Qe {
403
402
  constructor(e) {
404
- super(), Ye(this, e, null, or, Ke, {});
403
+ super(), Ye(this, e, null, rr, Ke, {});
405
404
  }
406
405
  }
407
- function lr(i) {
406
+ function sr(i) {
408
407
  let e, t;
409
408
  return {
410
409
  c() {
@@ -446,7 +445,7 @@ function lr(i) {
446
445
  }
447
446
  };
448
447
  }
449
- function ur(i) {
448
+ function or(i) {
450
449
  let e, t;
451
450
  return {
452
451
  c() {
@@ -488,7 +487,7 @@ function ur(i) {
488
487
  }
489
488
  };
490
489
  }
491
- function ar(i) {
490
+ function lr(i) {
492
491
  let e, t;
493
492
  return {
494
493
  c() {
@@ -530,7 +529,7 @@ function ar(i) {
530
529
  }
531
530
  };
532
531
  }
533
- function fr(i) {
532
+ function ur(i) {
534
533
  let e, t;
535
534
  return {
536
535
  c() {
@@ -572,7 +571,7 @@ function fr(i) {
572
571
  }
573
572
  };
574
573
  }
575
- function cr(i) {
574
+ function ar(i) {
576
575
  let e, t;
577
576
  return {
578
577
  c() {
@@ -614,7 +613,7 @@ function cr(i) {
614
613
  }
615
614
  };
616
615
  }
617
- function hr(i) {
616
+ function fr(i) {
618
617
  let e, t;
619
618
  return {
620
619
  c() {
@@ -656,7 +655,7 @@ function hr(i) {
656
655
  }
657
656
  };
658
657
  }
659
- function dr(i) {
658
+ function cr(i) {
660
659
  let e, t;
661
660
  return {
662
661
  c() {
@@ -698,7 +697,7 @@ function dr(i) {
698
697
  }
699
698
  };
700
699
  }
701
- function gr(i) {
700
+ function hr(i) {
702
701
  let e, t, n, r;
703
702
  return {
704
703
  c() {
@@ -770,7 +769,7 @@ function _i(i) {
770
769
  }
771
770
  };
772
771
  }
773
- function mr(i) {
772
+ function dr(i) {
774
773
  let e, t, n, r, u, h, o, g, c, E = (
775
774
  /*isReverse*/
776
775
  (i[8] ? (
@@ -804,15 +803,15 @@ function mr(i) {
804
803
  1 && (n = null), a & /*feature*/
805
804
  1 && (r = null), a & /*feature*/
806
805
  1 && (u = null), /*imageUrl*/
807
- m[5] ? gr : (
806
+ m[5] ? hr : (
808
807
  /*feature*/
809
- m[0].address ? dr : (t == null && (t = !!/*feature*/
810
- m[0].id.startsWith("road.")), t ? hr : (n == null && (n = !!/*feature*/
811
- m[0].id.startsWith("address.")), n ? cr : (r == null && (r = !!/*feature*/
812
- m[0].id.startsWith("postal_code.")), r ? fr : (u == null && (u = !!/*feature*/
813
- m[0].id.startsWith("poi.")), u ? ar : (
808
+ m[0].address ? cr : (t == null && (t = !!/*feature*/
809
+ m[0].id.startsWith("road.")), t ? fr : (n == null && (n = !!/*feature*/
810
+ m[0].id.startsWith("address.")), n ? ar : (r == null && (r = !!/*feature*/
811
+ m[0].id.startsWith("postal_code.")), r ? ur : (u == null && (u = !!/*feature*/
812
+ m[0].id.startsWith("poi.")), u ? lr : (
814
813
  /*isReverse*/
815
- m[8] ? ur : lr
814
+ m[8] ? or : sr
816
815
  )))))
817
816
  );
818
817
  }
@@ -889,7 +888,7 @@ function mr(i) {
889
888
  }
890
889
  };
891
890
  }
892
- function pr(i, e, t) {
891
+ function gr(i, e, t) {
893
892
  var U;
894
893
  let n, r, { feature: u } = e, { style: h = "default" } = e, { showPlaceType: o } = e, { missingIconsCache: g } = e, { iconsBaseUrl: c } = e;
895
894
  const E = $i(), S = (U = u.properties) == null ? void 0 : U.categories;
@@ -898,7 +897,7 @@ function pr(i, e, t) {
898
897
  R && g.add(R), t(11, O++, O);
899
898
  }
900
899
  function k(B) {
901
- Qn.call(this, i, B);
900
+ Kn.call(this, i, B);
902
901
  }
903
902
  const v = () => T(), N = () => E("select", void 0), D = (B) => {
904
903
  document.activeElement !== B.target && E("select", void 0);
@@ -934,9 +933,9 @@ function pr(i, e, t) {
934
933
  D
935
934
  ];
936
935
  }
937
- class yr extends Qe {
936
+ class mr extends Qe {
938
937
  constructor(e) {
939
- super(), Ye(this, e, pr, mr, Ke, {
938
+ super(), Ye(this, e, gr, dr, Ke, {
940
939
  feature: 0,
941
940
  style: 1,
942
941
  showPlaceType: 2,
@@ -945,7 +944,7 @@ class yr extends Qe {
945
944
  });
946
945
  }
947
946
  }
948
- function vr(i) {
947
+ function pr(i) {
949
948
  let e;
950
949
  return {
951
950
  c() {
@@ -962,12 +961,12 @@ function vr(i) {
962
961
  }
963
962
  };
964
963
  }
965
- class br extends Qe {
964
+ class yr extends Qe {
966
965
  constructor(e) {
967
- super(), Ye(this, e, null, vr, Ke, {});
966
+ super(), Ye(this, e, null, pr, Ke, {});
968
967
  }
969
968
  }
970
- function wr(i) {
969
+ function vr(i) {
971
970
  let e, t, n;
972
971
  return {
973
972
  c() {
@@ -1011,18 +1010,18 @@ function wr(i) {
1011
1010
  }
1012
1011
  };
1013
1012
  }
1014
- function Er(i, e, t) {
1013
+ function br(i, e, t) {
1015
1014
  let { displayIn: n } = e;
1016
1015
  return i.$$set = (r) => {
1017
1016
  "displayIn" in r && t(0, n = r.displayIn);
1018
1017
  }, [n];
1019
1018
  }
1020
- class Lr extends Qe {
1019
+ class wr extends Qe {
1021
1020
  constructor(e) {
1022
- super(), Ye(this, e, Er, wr, Ke, { displayIn: 0 });
1021
+ super(), Ye(this, e, br, vr, Ke, { displayIn: 0 });
1023
1022
  }
1024
1023
  }
1025
- function _r(i) {
1024
+ function Er(i) {
1026
1025
  let e, t;
1027
1026
  return {
1028
1027
  c() {
@@ -1039,12 +1038,12 @@ function _r(i) {
1039
1038
  }
1040
1039
  };
1041
1040
  }
1042
- class Sr extends Qe {
1041
+ class Lr extends Qe {
1043
1042
  constructor(e) {
1044
- super(), Ye(this, e, null, _r, Ke, {});
1043
+ super(), Ye(this, e, null, Er, Ke, {});
1045
1044
  }
1046
1045
  }
1047
- function xr(i) {
1046
+ function _r(i) {
1048
1047
  let e, t, n;
1049
1048
  return {
1050
1049
  c() {
@@ -1061,12 +1060,12 @@ function xr(i) {
1061
1060
  }
1062
1061
  };
1063
1062
  }
1064
- class Tr extends Qe {
1063
+ class Sr extends Qe {
1065
1064
  constructor(e) {
1066
- super(), Ye(this, e, null, xr, Ke, {});
1065
+ super(), Ye(this, e, null, _r, Ke, {});
1067
1066
  }
1068
1067
  }
1069
- function Mr(i, e, t) {
1068
+ function xr(i, e, t) {
1070
1069
  const n = e[1], r = e[0], u = n - r;
1071
1070
  return i === n && t ? i : ((i - r) % u + u) % u + r;
1072
1071
  }
@@ -1075,7 +1074,7 @@ function It(i) {
1075
1074
  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;
1076
1075
  }
1077
1076
  let ht;
1078
- async function Cr(i, e, t) {
1077
+ async function Tr(i, e, t) {
1079
1078
  const n = i == null ? void 0 : i.getCenterAndZoom();
1080
1079
  for (const r of e ?? [])
1081
1080
  if (!(n && (r.minZoom != null && r.minZoom > n[0] || r.maxZoom != null && r.maxZoom < n[0]))) {
@@ -1120,8 +1119,8 @@ async function Cr(i, e, t) {
1120
1119
  return n[1].toFixed(6) + "," + n[2].toFixed(6);
1121
1120
  }
1122
1121
  }
1123
- const Nr = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(EAST|WEST|[EW])?$/i, Si = /^([+-]?[0-8]?[0-9])\s+([0-5]?[0-9]\.\d{3,})[\s,]{1,}([+-]?[0-1]?[0-9]?[0-9])\s+([0-5]?[0-9]\.\d{3,})$/, xi = /^(NORTH|SOUTH|[NS])?[\s]*([+-]?[0-8]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(NORTH|SOUTH|[NS])?[\s]*[,/;]?[\s]*(EAST|WEST|[EW])?[\s]*([+-]?[0-1]?[0-9]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(EAST|WEST|[EW])?$/i, Ti = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(EAST|WEST|[EW])?$/i, Mi = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)\s*(EAST|WEST|[EW])?$/i, Ci = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|’’|´´|["″”\.])?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|´´|’’|["″”\.])?\s*(EAST|WEST|[EW])?$/i;
1124
- function kr(i) {
1122
+ const Mr = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(EAST|WEST|[EW])?$/i, Si = /^([+-]?[0-8]?[0-9])\s+([0-5]?[0-9]\.\d{3,})[\s,]{1,}([+-]?[0-1]?[0-9]?[0-9])\s+([0-5]?[0-9]\.\d{3,})$/, xi = /^(NORTH|SOUTH|[NS])?[\s]*([+-]?[0-8]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(NORTH|SOUTH|[NS])?[\s]*[,/;]?[\s]*(EAST|WEST|[EW])?[\s]*([+-]?[0-1]?[0-9]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(EAST|WEST|[EW])?$/i, Ti = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(EAST|WEST|[EW])?$/i, Mi = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)\s*(EAST|WEST|[EW])?$/i, Ci = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|’’|´´|["″”\.])?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|´´|’’|["″”\.])?\s*(EAST|WEST|[EW])?$/i;
1123
+ function Cr(i) {
1125
1124
  if (!["DMS", "DM", "DD"].includes(i))
1126
1125
  throw new Error("invalid format specified");
1127
1126
  if (this.decimalCoordinates && this.decimalCoordinates.trim()) {
@@ -1150,7 +1149,7 @@ function Ni(i, e) {
1150
1149
  function oi(i, e) {
1151
1150
  e || (e = 5), i = i.replace(/\s+/g, " ").trim();
1152
1151
  let t = null, n = null, r = "", u = "", h = null, o = [], g = !1;
1153
- if (Nr.test(i))
1152
+ if (Mr.test(i))
1154
1153
  throw new Error("invalid coordinate value");
1155
1154
  if (Si.test(i))
1156
1155
  if (o = Si.exec(i), g = dt(o), g)
@@ -1231,8 +1230,8 @@ function oi(i, e) {
1231
1230
  decimalLongitude: n,
1232
1231
  decimalCoordinates: `${t},${n}`,
1233
1232
  originalFormat: h,
1234
- closeEnough: Or,
1235
- toCoordinateFormat: kr
1233
+ closeEnough: Nr,
1234
+ toCoordinateFormat: Cr
1236
1235
  });
1237
1236
  } else
1238
1237
  throw new Error("coordinates pattern match failed");
@@ -1260,7 +1259,7 @@ function ki(i, e) {
1260
1259
  const t = Math.abs(i - e);
1261
1260
  return Number(t.toFixed(6)) <= 1e-5;
1262
1261
  }
1263
- function Or(i) {
1262
+ function Nr(i) {
1264
1263
  if (!i)
1265
1264
  throw new Error("coords must be provided");
1266
1265
  if (i.includes(",")) {
@@ -1271,13 +1270,13 @@ function Or(i) {
1271
1270
  } else
1272
1271
  throw new Error("coords being tested must be separated by a comma");
1273
1272
  }
1274
- const Rr = Object.freeze({
1273
+ const kr = Object.freeze({
1275
1274
  DMS: "DMS",
1276
1275
  DM: "DM",
1277
1276
  DD: "DD"
1278
1277
  });
1279
- oi.to = Rr;
1280
- const Pr = [
1278
+ oi.to = kr;
1279
+ const Or = [
1281
1280
  {
1282
1281
  verbatimCoordinates: "40.123, -74.123",
1283
1282
  verbatimLatitude: "40.123",
@@ -1418,10 +1417,10 @@ const Pr = [
1418
1417
  verbatimLatitude: "40 7 22.8",
1419
1418
  verbatimLongitude: "-74 7 22.8"
1420
1419
  }
1421
- ], Ar = {
1420
+ ], Rr = {
1422
1421
  decimalLatitude: 40.123,
1423
1422
  decimalLongitude: -74.123
1424
- }, Ir = [
1423
+ }, Pr = [
1425
1424
  {
1426
1425
  verbatimCoordinates: `50°4'17.698"south, 14°24'2.826"east`,
1427
1426
  verbatimLatitude: `50°4'17.698"south`,
@@ -1506,7 +1505,7 @@ const Pr = [
1506
1505
  decimalLatitude: -18.4,
1507
1506
  decimalLongitude: 22.75
1508
1507
  }
1509
- ], Br = [
1508
+ ], Ar = [
1510
1509
  {
1511
1510
  verbatimCoordinates: "10.432342S 10.6345345E",
1512
1511
  verbatimLatitude: "10.432342S",
@@ -1641,22 +1640,22 @@ const Pr = [
1641
1640
  decimalLongitude: 18.33453
1642
1641
  }
1643
1642
  ];
1644
- function zr() {
1643
+ function Ir() {
1645
1644
  const i = [];
1646
- return Pr.forEach((e) => {
1647
- e.decimalLatitude ? i.push(e) : i.push({ ...e, ...Ar });
1648
- }), [...i, ...Ir, ...Br];
1645
+ return Or.forEach((e) => {
1646
+ e.decimalLatitude ? i.push(e) : i.push({ ...e, ...Rr });
1647
+ }), [...i, ...Pr, ...Ar];
1649
1648
  }
1650
- const Wr = zr();
1651
- oi.formats = Wr.map((i) => i.verbatimCoordinates);
1652
- const Gr = oi;
1649
+ const Br = Ir();
1650
+ oi.formats = Br.map((i) => i.verbatimCoordinates);
1651
+ const zr = oi;
1653
1652
  function Oi(i, e, t) {
1654
1653
  const n = i.slice();
1655
1654
  return n[97] = e[t], n[99] = t, n;
1656
1655
  }
1657
1656
  function Ri(i) {
1658
1657
  let e, t;
1659
- return e = new br({}), {
1658
+ return e = new yr({}), {
1660
1659
  c() {
1661
1660
  Ve(e.$$.fragment);
1662
1661
  },
@@ -1676,7 +1675,7 @@ function Ri(i) {
1676
1675
  }
1677
1676
  function Pi(i) {
1678
1677
  let e, t, n, r, u;
1679
- return t = new Sr({}), {
1678
+ return t = new Lr({}), {
1680
1679
  c() {
1681
1680
  e = X("button"), Ve(t.$$.fragment), x(e, "type", "button"), x(
1682
1681
  e,
@@ -1724,7 +1723,7 @@ function Pi(i) {
1724
1723
  }
1725
1724
  };
1726
1725
  }
1727
- function Dr(i) {
1726
+ function Wr(i) {
1728
1727
  let e, t = [], n = /* @__PURE__ */ new Map(), r, u, h, o = Li(
1729
1728
  /*listFeatures*/
1730
1729
  i[13]
@@ -1776,7 +1775,7 @@ function Dr(i) {
1776
1775
  102823936 && (o = Li(
1777
1776
  /*listFeatures*/
1778
1777
  c[13]
1779
- ), kt(), t = ir(t, E, g, 1, c, o, n, e, tr, Ai, null, Oi), Ot());
1778
+ ), kt(), t = er(t, E, g, 1, c, o, n, e, $n, Ai, null, Oi), Ot());
1780
1779
  },
1781
1780
  i(c) {
1782
1781
  if (!r) {
@@ -1798,7 +1797,7 @@ function Dr(i) {
1798
1797
  }
1799
1798
  };
1800
1799
  }
1801
- function Ur(i) {
1800
+ function Gr(i) {
1802
1801
  let e, t, n, r, u, h;
1803
1802
  return t = new nn({}), {
1804
1803
  c() {
@@ -1829,7 +1828,7 @@ function Ur(i) {
1829
1828
  }
1830
1829
  };
1831
1830
  }
1832
- function qr(i) {
1831
+ function Dr(i) {
1833
1832
  let e = "", t;
1834
1833
  return {
1835
1834
  c() {
@@ -1846,7 +1845,7 @@ function qr(i) {
1846
1845
  }
1847
1846
  };
1848
1847
  }
1849
- function Fr(i) {
1848
+ function Ur(i) {
1850
1849
  let e, t, n, r, u, h, o, g, c, E, S;
1851
1850
  return t = new nn({}), g = new tn({}), {
1852
1851
  c() {
@@ -1903,7 +1902,7 @@ function Ai(i, e) {
1903
1902
  )
1904
1903
  );
1905
1904
  }
1906
- return n = new yr({
1905
+ return n = new mr({
1907
1906
  props: {
1908
1907
  feature: (
1909
1908
  /*feature*/
@@ -1935,7 +1934,7 @@ function Ai(i, e) {
1935
1934
  key: i,
1936
1935
  first: null,
1937
1936
  c() {
1938
- t = Zn(), Ve(n.$$.fragment), this.first = t;
1937
+ t = Fn(), Ve(n.$$.fragment), this.first = t;
1939
1938
  },
1940
1939
  m(g, c) {
1941
1940
  ie(g, t, c), Ge(n, g, c), r = !0;
@@ -1970,9 +1969,9 @@ function Ai(i, e) {
1970
1969
  }
1971
1970
  };
1972
1971
  }
1973
- function jr(i) {
1972
+ function qr(i) {
1974
1973
  let e, t, n, r, u, h, o, g, c, E, S, C, R, O, z, T, k, v, N, D, U, B = !1;
1975
- u = new Tr({}), S = new tn({});
1974
+ u = new Sr({}), S = new tn({});
1976
1975
  let A = (
1977
1976
  /*abortController*/
1978
1977
  i[20] && Ri()
@@ -1983,13 +1982,13 @@ function jr(i) {
1983
1982
  const l = (
1984
1983
  /*#slots*/
1985
1984
  i[70].default
1986
- ), f = Un(
1985
+ ), f = Gn(
1987
1986
  l,
1988
1987
  i,
1989
1988
  /*$$scope*/
1990
1989
  i[69],
1991
1990
  null
1992
- ), m = [Fr, qr, Ur, Dr], a = [];
1991
+ ), m = [Ur, Dr, Gr, Wr], a = [];
1993
1992
  function b(p, d) {
1994
1993
  var y, w;
1995
1994
  return (
@@ -2100,7 +2099,7 @@ function jr(i) {
2100
2099
  /*click_handler_2*/
2101
2100
  i[78]
2102
2101
  ),
2103
- ce(t, "submit", Hn(
2102
+ ce(t, "submit", jn(
2104
2103
  /*handleSubmit*/
2105
2104
  i[22]
2106
2105
  ))
@@ -2146,19 +2145,19 @@ function jr(i) {
2146
2145
  64 && oe(s, 1)) : (s = Pi(p), s.c(), oe(s, 1), s.m(n, O)) : s && (kt(), he(s, 1, 1, () => {
2147
2146
  s = null;
2148
2147
  }), Ot()), f && f.p && (!N || d[2] & /*$$scope*/
2149
- 128) && Fn(
2148
+ 128) && Un(
2150
2149
  f,
2151
2150
  l,
2152
2151
  p,
2153
2152
  /*$$scope*/
2154
2153
  p[69],
2155
- N ? qn(
2154
+ N ? Dn(
2156
2155
  l,
2157
2156
  /*$$scope*/
2158
2157
  p[69],
2159
2158
  d,
2160
2159
  null
2161
- ) : jn(
2160
+ ) : qn(
2162
2161
  /*$$scope*/
2163
2162
  p[69]
2164
2163
  ),
@@ -2191,7 +2190,7 @@ function jr(i) {
2191
2190
  }
2192
2191
  };
2193
2192
  }
2194
- function Zr(i, e, t) {
2193
+ function Fr(i, e, t) {
2195
2194
  let n, r, u, { $$slots: h = {}, $$scope: o } = e;
2196
2195
  const g = {
2197
2196
  continental_marine: 4,
@@ -2223,7 +2222,7 @@ function Zr(i, e, t) {
2223
2222
  const ae = [];
2224
2223
  let { reverseGeocodingTypes: Be = ae } = e, { exhaustiveReverseGeocoding: Je = !1 } = e, { excludeTypes: $e = !1 } = e;
2225
2224
  const ye = void 0;
2226
- let { reverseGeocodingExcludeTypes: Ne = ye } = e, { zoom: de = g } = e, { apiUrl: fe = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: J = {} } = e, { iconsBaseUrl: ai = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.1.1/icons/" } = e, { adjustUrlQuery: Dt = () => {
2225
+ let { reverseGeocodingExcludeTypes: Ne = ye } = e, { zoom: de = g } = e, { apiUrl: fe = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: J = {} } = e, { iconsBaseUrl: ai = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.1.2/icons/" } = e, { adjustUrlQuery: Dt = () => {
2227
2226
  } } = e, { adjustUrl: Ut = () => {
2228
2227
  } } = e;
2229
2228
  function hn(_) {
@@ -2245,7 +2244,7 @@ function Zr(i, e, t) {
2245
2244
  }
2246
2245
  let F, le, G, ci = "", Te, Y = -1, ke, _t = [], et, nt, rt, qt, ze = !1;
2247
2246
  const pn = /* @__PURE__ */ new Set(), Fe = $i();
2248
- Yn(() => {
2247
+ Vn(() => {
2249
2248
  a && (a.setEventHandler(void 0), a.indicateReverse(!1), a.setSelectedMarker(-1), a.setFeatures(void 0, void 0, !1));
2250
2249
  });
2251
2250
  function hi(_) {
@@ -2260,7 +2259,7 @@ function Zr(i, e, t) {
2260
2259
  }
2261
2260
  function Ft(_) {
2262
2261
  try {
2263
- return Gr(_, 6);
2262
+ return zr(_, 6);
2264
2263
  } catch {
2265
2264
  return !1;
2266
2265
  }
@@ -2278,7 +2277,7 @@ function Zr(i, e, t) {
2278
2277
  Re && (Re = [...new Set(Re)], Le.set("types", Re.join(",")));
2279
2278
  const mi = !Q || Ne === ye ? $e : Ne;
2280
2279
  if (mi && Le.set("excludeTypes", String(mi)), S && Le.set("bbox", S.map((ge) => ge.toFixed(6)).join(",")), k && Le.set("country", Array.isArray(k) ? k.join(",") : k), !ne && !Q) {
2281
- const ge = await Cr(a, y, ve);
2280
+ const ge = await Tr(a, y, ve);
2282
2281
  ge && Le.set("proximity", ge), (se || !Z) && Le.set("autocomplete", "false"), Le.set("fuzzyMatch", String(A));
2283
2282
  }
2284
2283
  const ft = m === f ? l : m;
@@ -2356,7 +2355,7 @@ function Zr(i, e, t) {
2356
2355
  ) : void 0) ?? de[ne];
2357
2356
  }
2358
2357
  function vn(_) {
2359
- t(0, w = N === "always"), t(13, F = void 0), t(14, G = void 0), t(15, Y = -1), fi(_[1].toFixed(6) + ", " + Mr(_[0], [-180, 180], !0).toFixed(6), !1, !0);
2358
+ t(0, w = N === "always"), t(13, F = void 0), t(14, G = void 0), t(15, Y = -1), fi(_[1].toFixed(6) + ", " + xr(_[0], [-180, 180], !0).toFixed(6), !1, !0);
2360
2359
  }
2361
2360
  function bn(_) {
2362
2361
  if (!F)
@@ -2559,13 +2558,13 @@ function Zr(i, e, t) {
2559
2558
  Pn
2560
2559
  ];
2561
2560
  }
2562
- let Hr = class extends Qe {
2561
+ let jr = class extends Qe {
2563
2562
  constructor(e) {
2564
2563
  super(), Ye(
2565
2564
  this,
2566
2565
  e,
2567
- Zr,
2568
- jr,
2566
+ Fr,
2567
+ qr,
2569
2568
  Ke,
2570
2569
  {
2571
2570
  ZOOM_DEFAULTS: 28,
@@ -2672,7 +2671,7 @@ function rn(i, e, t = {}) {
2672
2671
  coordinates: i
2673
2672
  }, e, t);
2674
2673
  }
2675
- var Vr = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Xt = Math.ceil, Se = Math.floor, pe = "[BigNumber Error] ", Ii = pe + "Number primitive has more than 15 significant digits: ", Me = 1e14, q = 14, Bi = 9007199254740991, Jt = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], Ze = 1e7, we = 1e9;
2674
+ var Zr = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Xt = Math.ceil, Se = Math.floor, pe = "[BigNumber Error] ", Ii = pe + "Number primitive has more than 15 significant digits: ", Me = 1e14, q = 14, Bi = 9007199254740991, Jt = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], Ze = 1e7, we = 1e9;
2676
2675
  function sn(i) {
2677
2676
  var e, t, n, r = v.prototype = { constructor: v, toString: null, valueOf: null }, u = new v(1), h = 20, o = 4, g = -7, c = 21, E = -1e7, S = 1e7, C = !1, R = 1, O = 0, z = {
2678
2677
  prefix: "",
@@ -2701,7 +2700,7 @@ function sn(i) {
2701
2700
  }
2702
2701
  w = String(s);
2703
2702
  } else {
2704
- if (!Vr.test(w = String(s))) return n(L, w, d);
2703
+ if (!Zr.test(w = String(s))) return n(L, w, d);
2705
2704
  L.s = w.charCodeAt(0) == 45 ? (w = w.slice(1), -1) : 1;
2706
2705
  }
2707
2706
  (b = w.indexOf(".")) > -1 && (w = w.replace(".", "")), (p = w.search(/e/i)) > 0 ? (b < 0 && (b = p), b += +w.slice(p + 1), w = w.substring(0, p)) : b < 0 && (b = w.length);
@@ -3289,18 +3288,18 @@ function We(i, e, t) {
3289
3288
  } else e < n && (i = i.slice(0, e) + "." + i.slice(e));
3290
3289
  return i;
3291
3290
  }
3292
- var Ie = sn(), Kr = class {
3291
+ var Ie = sn(), Hr = class {
3293
3292
  constructor(i) {
3294
3293
  P(this, "key");
3295
3294
  P(this, "left", null);
3296
3295
  P(this, "right", null);
3297
3296
  this.key = i;
3298
3297
  }
3299
- }, gt = class extends Kr {
3298
+ }, gt = class extends Hr {
3300
3299
  constructor(i) {
3301
3300
  super(i);
3302
3301
  }
3303
- }, Yr = class {
3302
+ }, Vr = class {
3304
3303
  constructor() {
3305
3304
  P(this, "size", 0);
3306
3305
  P(this, "modificationCount", 0);
@@ -3398,7 +3397,7 @@ var Ie = sn(), Kr = class {
3398
3397
  has: (i) => this.has(i)
3399
3398
  };
3400
3399
  }
3401
- }, Vi, Ki, Bt = class pt extends Yr {
3400
+ }, Vi, Ki, Bt = class pt extends Vr {
3402
3401
  constructor(t, n) {
3403
3402
  super();
3404
3403
  P(this, "root", null);
@@ -3527,7 +3526,7 @@ var Ie = sn(), Kr = class {
3527
3526
  return this.clone();
3528
3527
  }
3529
3528
  entries() {
3530
- return new Xr(this.wrap());
3529
+ return new Yr(this.wrap());
3531
3530
  }
3532
3531
  keys() {
3533
3532
  return this[Symbol.iterator]();
@@ -3536,7 +3535,7 @@ var Ie = sn(), Kr = class {
3536
3535
  return this[Symbol.iterator]();
3537
3536
  }
3538
3537
  [(Ki = Symbol.iterator, Vi = Symbol.toStringTag, Ki)]() {
3539
- return new Qr(this.wrap());
3538
+ return new Kr(this.wrap());
3540
3539
  }
3541
3540
  }, on = class {
3542
3541
  constructor(i) {
@@ -3587,11 +3586,11 @@ var Ie = sn(), Kr = class {
3587
3586
  i = this.path.pop();
3588
3587
  return this.path.length > 0;
3589
3588
  }
3590
- }, Qr = class extends on {
3589
+ }, Kr = class extends on {
3591
3590
  getValue(i) {
3592
3591
  return i.key;
3593
3592
  }
3594
- }, Xr = class extends on {
3593
+ }, Yr = class extends on {
3595
3594
  getValue(i) {
3596
3595
  return [i.key, i.key];
3597
3596
  }
@@ -3599,7 +3598,7 @@ var Ie = sn(), Kr = class {
3599
3598
  const e = i ? (t, n) => n.minus(t).abs().isLessThanOrEqualTo(i) : ln(!1);
3600
3599
  return (t, n) => e(t, n) ? 0 : t.comparedTo(n);
3601
3600
  };
3602
- function Jr(i) {
3601
+ function Qr(i) {
3603
3602
  const e = i ? (t, n, r, u, h) => t.exponentiatedBy(2).isLessThanOrEqualTo(
3604
3603
  u.minus(n).exponentiatedBy(2).plus(h.minus(r).exponentiatedBy(2)).times(i)
3605
3604
  ) : ln(!1);
@@ -3608,7 +3607,7 @@ function Jr(i) {
3608
3607
  return e(c, u, h, o, g) ? 0 : c.comparedTo(0);
3609
3608
  };
3610
3609
  }
3611
- var $r = (i) => i, es = (i) => {
3610
+ var Xr = (i) => i, Jr = (i) => {
3612
3611
  if (i) {
3613
3612
  const e = new Bt(ii(i)), t = new Bt(ii(i)), n = (u, h) => h.addAndReturn(u), r = (u) => ({
3614
3613
  x: n(u.x, e),
@@ -3616,27 +3615,27 @@ var $r = (i) => i, es = (i) => {
3616
3615
  });
3617
3616
  return r({ x: new Ie(0), y: new Ie(0) }), r;
3618
3617
  }
3619
- return $r;
3618
+ return Xr;
3620
3619
  }, ni = (i) => ({
3621
3620
  set: (e) => {
3622
3621
  Ue = ni(e);
3623
3622
  },
3624
3623
  reset: () => ni(i),
3625
3624
  compare: ii(i),
3626
- snap: es(i),
3627
- orient: Jr(i)
3625
+ snap: Jr(i),
3626
+ orient: Qr(i)
3628
3627
  }), Ue = ni(), mt = (i, e) => i.ll.x.isLessThanOrEqualTo(e.x) && e.x.isLessThanOrEqualTo(i.ur.x) && i.ll.y.isLessThanOrEqualTo(e.y) && e.y.isLessThanOrEqualTo(i.ur.y), ri = (i, e) => {
3629
3628
  if (e.ur.x.isLessThan(i.ll.x) || i.ur.x.isLessThan(e.ll.x) || e.ur.y.isLessThan(i.ll.y) || i.ur.y.isLessThan(e.ll.y))
3630
3629
  return null;
3631
3630
  const t = i.ll.x.isLessThan(e.ll.x) ? e.ll.x : i.ll.x, n = i.ur.x.isLessThan(e.ur.x) ? i.ur.x : e.ur.x, r = i.ll.y.isLessThan(e.ll.y) ? e.ll.y : i.ll.y, u = i.ur.y.isLessThan(e.ur.y) ? i.ur.y : e.ur.y;
3632
3631
  return { ll: { x: t, y: r }, ur: { x: n, y: u } };
3633
- }, Rt = (i, e) => i.x.times(e.y).minus(i.y.times(e.x)), un = (i, e) => i.x.times(e.x).plus(i.y.times(e.y)), zt = (i) => un(i, i).sqrt(), ts = (i, e, t) => {
3632
+ }, Rt = (i, e) => i.x.times(e.y).minus(i.y.times(e.x)), un = (i, e) => i.x.times(e.x).plus(i.y.times(e.y)), zt = (i) => un(i, i).sqrt(), $r = (i, e, t) => {
3634
3633
  const n = { x: e.x.minus(i.x), y: e.y.minus(i.y) }, r = { x: t.x.minus(i.x), y: t.y.minus(i.y) };
3635
3634
  return Rt(r, n).div(zt(r)).div(zt(n));
3636
- }, is = (i, e, t) => {
3635
+ }, es = (i, e, t) => {
3637
3636
  const n = { x: e.x.minus(i.x), y: e.y.minus(i.y) }, r = { x: t.x.minus(i.x), y: t.y.minus(i.y) };
3638
3637
  return un(r, n).div(zt(r)).div(zt(n));
3639
- }, zi = (i, e, t) => e.y.isZero() ? null : { x: i.x.plus(e.x.div(e.y).times(t.minus(i.y))), y: t }, Wi = (i, e, t) => e.x.isZero() ? null : { x: t, y: i.y.plus(e.y.div(e.x).times(t.minus(i.x))) }, ns = (i, e, t, n) => {
3638
+ }, zi = (i, e, t) => e.y.isZero() ? null : { x: i.x.plus(e.x.div(e.y).times(t.minus(i.y))), y: t }, Wi = (i, e, t) => e.x.isZero() ? null : { x: t, y: i.y.plus(e.y.div(e.x).times(t.minus(i.x))) }, ts = (i, e, t, n) => {
3640
3639
  if (e.x.isZero()) return Wi(t, n, i.x);
3641
3640
  if (n.x.isZero()) return Wi(i, e, t.x);
3642
3641
  if (e.y.isZero()) return zi(t, n, i.y);
@@ -3709,8 +3708,8 @@ var $r = (i) => i, es = (i) => {
3709
3708
  const t = /* @__PURE__ */ new Map(), n = (r) => {
3710
3709
  const u = r.otherSE;
3711
3710
  t.set(r, {
3712
- sine: ts(this.point, e.point, u.point),
3713
- cosine: is(this.point, e.point, u.point)
3711
+ sine: $r(this.point, e.point, u.point),
3712
+ cosine: es(this.point, e.point, u.point)
3714
3713
  });
3715
3714
  };
3716
3715
  return (r, u) => {
@@ -3719,7 +3718,7 @@ var $r = (i) => i, es = (i) => {
3719
3718
  return h.isGreaterThanOrEqualTo(0) && g.isGreaterThanOrEqualTo(0) ? o.isLessThan(c) ? 1 : o.isGreaterThan(c) ? -1 : 0 : h.isLessThan(0) && g.isLessThan(0) ? o.isLessThan(c) ? -1 : o.isGreaterThan(c) ? 1 : 0 : g.isLessThan(h) ? -1 : g.isGreaterThan(h) ? 1 : 0;
3720
3719
  };
3721
3720
  }
3722
- }, rs = class si {
3721
+ }, is = class si {
3723
3722
  constructor(e) {
3724
3723
  P(this, "events");
3725
3724
  P(this, "poly");
@@ -3836,7 +3835,7 @@ var $r = (i) => i, es = (i) => {
3836
3835
  }
3837
3836
  return e;
3838
3837
  }
3839
- }, ss = class {
3838
+ }, ns = class {
3840
3839
  constructor(i) {
3841
3840
  P(this, "rings");
3842
3841
  P(this, "polys");
@@ -3864,7 +3863,7 @@ var $r = (i) => i, es = (i) => {
3864
3863
  }
3865
3864
  return e;
3866
3865
  }
3867
- }, os = class {
3866
+ }, rs = class {
3868
3867
  constructor(i, e = Gt.compare) {
3869
3868
  P(this, "queue");
3870
3869
  P(this, "tree");
@@ -3942,7 +3941,7 @@ var $r = (i) => i, es = (i) => {
3942
3941
  const n = i.split(e);
3943
3942
  return n.push(t), i.consumedBy === void 0 && this.tree.add(i), n;
3944
3943
  }
3945
- }, ls = class {
3944
+ }, ss = class {
3946
3945
  constructor() {
3947
3946
  P(this, "type");
3948
3947
  P(this, "numMultiPolys");
@@ -3970,7 +3969,7 @@ var $r = (i) => i, es = (i) => {
3970
3969
  for (let C = 0, R = S.length; C < R; C++)
3971
3970
  r.add(S[C]);
3972
3971
  }
3973
- const u = new os(r);
3972
+ const u = new rs(r);
3974
3973
  let h = null;
3975
3974
  for (r.size != 0 && (h = r.first(), r.delete(h)); h; ) {
3976
3975
  const c = u.process(h);
@@ -3981,10 +3980,10 @@ var $r = (i) => i, es = (i) => {
3981
3980
  r.size != 0 ? (h = r.first(), r.delete(h)) : h = null;
3982
3981
  }
3983
3982
  Ue.reset();
3984
- const o = rs.factory(u.segments);
3985
- return new ss(o).getGeom();
3983
+ const o = is.factory(u.segments);
3984
+ return new ns(o).getGeom();
3986
3985
  }
3987
- }, yt = new ls(), Wt = yt, us = 0, Gt = class Pt {
3986
+ }, yt = new ss(), Wt = yt, os = 0, Gt = class Pt {
3988
3987
  /* Warning: a reference to ringWindings input will be stored,
3989
3988
  * and possibly will be later modified */
3990
3989
  constructor(e, t, n, r) {
@@ -4000,7 +3999,7 @@ var $r = (i) => i, es = (i) => {
4000
3999
  P(this, "_beforeState");
4001
4000
  P(this, "_afterState");
4002
4001
  P(this, "_isInResult");
4003
- this.id = ++us, this.leftSE = e, e.segment = this, e.otherSE = t, this.rightSE = t, t.segment = this, t.otherSE = e, this.rings = n, this.windings = r;
4002
+ this.id = ++os, this.leftSE = e, e.segment = this, e.otherSE = t, this.rightSE = t, t.segment = this, t.otherSE = e, this.rings = n, this.windings = r;
4004
4003
  }
4005
4004
  /* This compare() function is for ordering segments in the sweep
4006
4005
  * line tree, and does so according to the following criteria:
@@ -4134,7 +4133,7 @@ var $r = (i) => i, es = (i) => {
4134
4133
  if (C && S) return null;
4135
4134
  if (C) return h;
4136
4135
  if (S) return g;
4137
- const R = ns(u, this.vector(), o, e.vector());
4136
+ const R = ts(u, this.vector(), o, e.vector());
4138
4137
  return R === null || !mt(r, R) ? null : Ue.snap(R);
4139
4138
  }
4140
4139
  /**
@@ -4300,7 +4299,7 @@ var $r = (i) => i, es = (i) => {
4300
4299
  }
4301
4300
  return i;
4302
4301
  }
4303
- }, as = class {
4302
+ }, ls = class {
4304
4303
  constructor(i, e) {
4305
4304
  P(this, "multiPoly");
4306
4305
  P(this, "exteriorRing");
@@ -4343,7 +4342,7 @@ var $r = (i) => i, es = (i) => {
4343
4342
  ur: { x: new Ie(Number.NEGATIVE_INFINITY), y: new Ie(Number.NEGATIVE_INFINITY) }
4344
4343
  };
4345
4344
  for (let t = 0, n = i.length; t < n; t++) {
4346
- const r = new as(i[t], this);
4345
+ const r = new ls(i[t], this);
4347
4346
  r.bbox.ll.x.isLessThan(this.bbox.ll.x) && (this.bbox.ll.x = r.bbox.ll.x), r.bbox.ll.y.isLessThan(this.bbox.ll.y) && (this.bbox.ll.y = r.bbox.ll.y), r.bbox.ur.x.isGreaterThan(this.bbox.ur.x) && (this.bbox.ur.x = r.bbox.ur.x), r.bbox.ur.y.isGreaterThan(this.bbox.ur.y) && (this.bbox.ur.y = r.bbox.ur.y), this.polys.push(r);
4348
4347
  }
4349
4348
  this.isSubject = e;
@@ -4357,7 +4356,7 @@ var $r = (i) => i, es = (i) => {
4357
4356
  }
4358
4357
  return i;
4359
4358
  }
4360
- }, fs = (i, ...e) => Wt.run("union", i, e), cs = (i, ...e) => Wt.run("difference", i, e);
4359
+ }, us = (i, ...e) => Wt.run("union", i, e), as = (i, ...e) => Wt.run("difference", i, e);
4361
4360
  Ue.set;
4362
4361
  function fn(i, e, t) {
4363
4362
  if (i !== null)
@@ -4497,7 +4496,7 @@ function ui(i, e) {
4497
4496
  C++;
4498
4497
  }
4499
4498
  }
4500
- function hs(i, e) {
4499
+ function fs(i, e) {
4501
4500
  ui(i, function(t, n, r, u, h) {
4502
4501
  var o = t === null ? null : t.type;
4503
4502
  switch (o) {
@@ -4533,17 +4532,17 @@ function hs(i, e) {
4533
4532
  }
4534
4533
  });
4535
4534
  }
4536
- function ds(i, e = {}) {
4535
+ function cs(i, e = {}) {
4537
4536
  const t = [];
4538
4537
  if (ui(i, (r) => {
4539
4538
  t.push(r.coordinates);
4540
4539
  }), t.length < 2)
4541
4540
  throw new Error("Must have at least 2 geometries");
4542
- const n = fs(t[0], ...t.slice(1));
4541
+ const n = us(t[0], ...t.slice(1));
4543
4542
  return n.length === 0 ? null : n.length === 1 ? li(n[0], e.properties) : rn(n, e.properties);
4544
4543
  }
4545
- var cn = ds;
4546
- function gs(i, e = {}) {
4544
+ var cn = cs;
4545
+ function hs(i, e = {}) {
4547
4546
  if (i.bbox != null && e.recompute !== !0)
4548
4547
  return i.bbox;
4549
4548
  const t = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
@@ -4551,27 +4550,27 @@ function gs(i, e = {}) {
4551
4550
  t[0] > n[0] && (t[0] = n[0]), t[1] > n[1] && (t[1] = n[1]), t[2] < n[0] && (t[2] = n[0]), t[3] < n[1] && (t[3] = n[1]);
4552
4551
  }), t;
4553
4552
  }
4554
- var qi = gs;
4555
- function ms(i) {
4553
+ var qi = hs;
4554
+ function ds(i) {
4556
4555
  const e = [];
4557
4556
  if (ui(i, (r) => {
4558
4557
  e.push(r.coordinates);
4559
4558
  }), e.length < 2)
4560
4559
  throw new Error("Must have at least two features");
4561
- const t = i.features[0].properties || {}, n = cs(e[0], ...e.slice(1));
4560
+ const t = i.features[0].properties || {}, n = as(e[0], ...e.slice(1));
4562
4561
  return n.length === 0 ? null : n.length === 1 ? li(n[0], t) : rn(n, t);
4563
4562
  }
4564
- var ps = ms;
4565
- function ys(i) {
4563
+ var gs = ds;
4564
+ function ms(i) {
4566
4565
  if (!i) throw new Error("geojson is required");
4567
4566
  var e = [];
4568
- return hs(i, function(t) {
4567
+ return fs(i, function(t) {
4569
4568
  e.push(t);
4570
4569
  }), Lt(e);
4571
4570
  }
4572
- var vs = ys;
4571
+ var ps = ms;
4573
4572
  function Fi(i, e) {
4574
- const t = ps(
4573
+ const t = gs(
4575
4574
  Lt([
4576
4575
  li([
4577
4576
  [
@@ -4588,7 +4587,7 @@ function Fi(i, e) {
4588
4587
  if (!t)
4589
4588
  return;
4590
4589
  t.properties = { isMask: !0 };
4591
- const n = It(qi(i)), r = (n[2] - n[0]) / 360 / 1e3, u = n[0] < -180, h = n[2] > 180, o = vs(i);
4590
+ const n = It(qi(i)), r = (n[2] - n[0]) / 360 / 1e3, u = n[0] < -180, h = n[2] > 180, o = ps(i);
4592
4591
  if (o.features.length > 1 && (u || h))
4593
4592
  for (const g of o.features) {
4594
4593
  const c = It(qi(g));
@@ -4628,7 +4627,7 @@ const ji = {
4628
4627
  filter: ["!", ["has", "isMask"]]
4629
4628
  }
4630
4629
  }, Ct = "mtlr-gc-full-geom", Zi = "mtlr-gc-full-geom-fill", Hi = "mtlr-gc-full-geom-line";
4631
- function bs(i, e, t = !0, n = !0, r = {}, u = {}, h = ji) {
4630
+ function ys(i, e, t = !0, n = !0, r = {}, u = {}, h = ji) {
4632
4631
  let o;
4633
4632
  const g = [];
4634
4633
  let c, E, S;
@@ -4680,7 +4679,7 @@ function bs(i, e, t = !0, n = !0, r = {}, u = {}, h = ji) {
4680
4679
  if (!e)
4681
4680
  throw new Error();
4682
4681
  const k = document.createElement("div");
4683
- return T && k.classList.add("marker-interactive"), new Lr({
4682
+ return T && k.classList.add("marker-interactive"), new wr({
4684
4683
  props: { displayIn: "maplibre" },
4685
4684
  target: k
4686
4685
  }), new e.Marker({ element: k, offset: [1, -13] });
@@ -4796,7 +4795,7 @@ function bs(i, e, t = !0, n = !0, r = {}, u = {}, h = ji) {
4796
4795
  }
4797
4796
  };
4798
4797
  }
4799
- function ws(i, e, t) {
4798
+ function vs(i, e, t) {
4800
4799
  var O, z;
4801
4800
  class n {
4802
4801
  constructor(k, v) {
@@ -4879,7 +4878,7 @@ function ws(i, e, t) {
4879
4878
  fullGeometryStyle: A,
4880
4879
  ...s
4881
4880
  } = ue(this, z), l = typeof B == "boolean" ? {} : B, m = {
4882
- mapController: bs(
4881
+ mapController: ys(
4883
4882
  v,
4884
4883
  e,
4885
4884
  D,
@@ -4896,7 +4895,7 @@ function ws(i, e, t) {
4896
4895
  };
4897
4896
  if (!m.apiKey)
4898
4897
  throw new Error("no apiKey provided");
4899
- return Yt(this, O, new Hr({ target: N, props: m })), ue(this, O).$on("select", (a) => {
4898
+ return Yt(this, O, new jr({ target: N, props: m })), ue(this, O).$on("select", (a) => {
4900
4899
  this.fire(new r(this, a.detail));
4901
4900
  }), ue(this, O).$on("pick", (a) => {
4902
4901
  this.fire(new g(this, a.detail.feature));
@@ -5019,7 +5018,7 @@ function ws(i, e, t) {
5019
5018
  }
5020
5019
  };
5021
5020
  }
5022
- const { MapLibreBasedGeocodingControl: Es, events: Xe } = ws(
5021
+ const bs = "@maptiler/geocoding-control", ws = "2.1.2", { MapLibreBasedGeocodingControl: Es, events: Xe } = vs(
5023
5022
  vi.Evented,
5024
5023
  vi,
5025
5024
  (i, e) => {
@@ -5035,7 +5034,7 @@ const { MapLibreBasedGeocodingControl: Es, events: Xe } = ws(
5035
5034
  class Ss extends Es {
5036
5035
  onAdd(e) {
5037
5036
  var t;
5038
- return (t = e.telemetry) == null || t.registerModule(zn, Wn), super.onAddInt(e);
5037
+ return (t = e.telemetry) == null || t.registerModule(bs, ws), super.onAddInt(e);
5039
5038
  }
5040
5039
  }
5041
5040
  const xs = Xe.SelectEvent, Ts = Xe.FeaturesListedEvent, Ms = Xe.FeaturesMarkedEvent, Cs = Xe.OptionsVisibilityChangeEvent, Ns = Xe.PickEvent, ks = Xe.QueryChangeEvent, Os = Xe.ResponseEvent, Rs = Xe.ReverseToggleEvent;
@@ -5049,6 +5048,6 @@ export {
5049
5048
  Os as ResponseEvent,
5050
5049
  Rs as ReverseToggleEvent,
5051
5050
  xs as SelectEvent,
5052
- bs as createMapLibreGlMapController
5051
+ ys as createMapLibreGlMapController
5053
5052
  };
5054
5053
  //# sourceMappingURL=maptilersdk.js.map