@maptiler/geocoding-control 2.1.4 → 2.1.7

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 (55) hide show
  1. package/MapLibreBasedGeocodingControl.d.ts +51 -34
  2. package/README.md +6 -0
  3. package/leaflet-controller.js +1 -1
  4. package/leaflet-controller.js.map +1 -1
  5. package/leaflet-controller.umd.js +1 -1
  6. package/leaflet-controller.umd.js.map +1 -1
  7. package/leaflet.js +1442 -1415
  8. package/leaflet.js.map +1 -1
  9. package/leaflet.umd.js +3 -3
  10. package/leaflet.umd.js.map +1 -1
  11. package/maplibregl-controller.js +29 -29
  12. package/maplibregl-controller.js.map +1 -1
  13. package/maplibregl-controller.umd.js +1 -1
  14. package/maplibregl-controller.umd.js.map +1 -1
  15. package/maplibregl.d.ts +52 -35
  16. package/maplibregl.js +1677 -1648
  17. package/maplibregl.js.map +1 -1
  18. package/maplibregl.umd.js +5 -5
  19. package/maplibregl.umd.js.map +1 -1
  20. package/maptilersdk.d.ts +51 -34
  21. package/maptilersdk.js +1678 -1649
  22. package/maptilersdk.js.map +1 -1
  23. package/maptilersdk.umd.js +5 -5
  24. package/maptilersdk.umd.js.map +1 -1
  25. package/openlayers-controller.js +35 -35
  26. package/openlayers-controller.js.map +1 -1
  27. package/openlayers-controller.umd.js +1 -1
  28. package/openlayers-controller.umd.js.map +1 -1
  29. package/openlayers.js +1584 -1557
  30. package/openlayers.js.map +1 -1
  31. package/openlayers.umd.js +3 -3
  32. package/openlayers.umd.js.map +1 -1
  33. package/package.json +14 -13
  34. package/react.js +900 -873
  35. package/react.js.map +1 -1
  36. package/react.umd.js +7 -7
  37. package/react.umd.js.map +1 -1
  38. package/style.css +1 -1
  39. package/svelte/GeocodingControl.svelte +18 -14
  40. package/svelte/GeocodingControl.svelte.d.ts +1 -1
  41. package/svelte/LoadingIcon.svelte +2 -2
  42. package/svelte/MapLibreBasedGeocodingControl.d.ts +51 -34
  43. package/svelte/MapLibreBasedGeocodingControl.js +5 -1
  44. package/svelte/info.json +1 -1
  45. package/svelte/leaflet-controller.js +1 -1
  46. package/svelte/maplibregl-controller.js +1 -1
  47. package/svelte/maplibregl.d.ts +52 -35
  48. package/svelte/maptilersdk.d.ts +51 -34
  49. package/svelte/openlayers-controller.js +1 -1
  50. package/svelte/types.d.ts +1 -1
  51. package/types.d.ts +1 -1
  52. package/vanilla.js +840 -813
  53. package/vanilla.js.map +1 -1
  54. package/vanilla.umd.js +5 -5
  55. package/vanilla.umd.js.map +1 -1
package/vanilla.js CHANGED
@@ -1,63 +1,63 @@
1
- var Bi = Object.defineProperty;
2
- var Fi = Object.getPrototypeOf;
3
- var ji = Reflect.get;
1
+ var Fi = Object.defineProperty;
2
+ var ji = Object.getPrototypeOf;
3
+ var Gi = Reflect.get;
4
4
  var Pt = (i) => {
5
5
  throw TypeError(i);
6
6
  };
7
- var Gi = (i, e, t) => e in i ? Bi(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
8
- var vt = (i, e, t) => Gi(i, typeof e != "symbol" ? e + "" : e, t), Lt = (i, e, t) => e.has(i) || Pt("Cannot " + t);
9
- var se = (i, e, t) => (Lt(i, e, "read from private field"), t ? t.call(i) : e.get(i)), _t = (i, e, t) => e.has(i) ? Pt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), Bt = (i, e, t, n) => (Lt(i, e, "write to private field"), n ? n.call(i, t) : e.set(i, t), t), Ft = (i, e, t) => (Lt(i, e, "access private method"), t);
10
- var jt = (i, e, t) => ji(Fi(i), t, e);
11
- function P() {
7
+ var Hi = (i, e, t) => e in i ? Fi(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
8
+ var vt = (i, e, t) => Hi(i, typeof e != "symbol" ? e + "" : e, t), Lt = (i, e, t) => e.has(i) || Pt("Cannot " + t);
9
+ var re = (i, e, t) => (Lt(i, e, "read from private field"), t ? t.call(i) : e.get(i)), _t = (i, e, t) => e.has(i) ? Pt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), Bt = (i, e, t, n) => (Lt(i, e, "write to private field"), n ? n.call(i, t) : e.set(i, t), t), Ft = (i, e, t) => (Lt(i, e, "access private method"), t);
10
+ var jt = (i, e, t) => Gi(ji(i), t, e);
11
+ function j() {
12
12
  }
13
- function Hi(i, e) {
13
+ function Zi(i, e) {
14
14
  for (const t in e) i[t] = e[t];
15
15
  return (
16
16
  /** @type {T & S} */
17
17
  i
18
18
  );
19
19
  }
20
- function oi(i) {
20
+ function ai(i) {
21
21
  return i();
22
22
  }
23
23
  function Gt() {
24
24
  return /* @__PURE__ */ Object.create(null);
25
25
  }
26
26
  function he(i) {
27
- i.forEach(oi);
27
+ i.forEach(ai);
28
28
  }
29
- function ai(i) {
29
+ function li(i) {
30
30
  return typeof i == "function";
31
31
  }
32
- function Se(i, e) {
32
+ function Ee(i, e) {
33
33
  return i != i ? e == e : i !== e || i && typeof i == "object" || typeof i == "function";
34
34
  }
35
- let Je;
36
- function Y(i, e) {
37
- return i === e ? !0 : (Je || (Je = document.createElement("a")), Je.href = e, i === Je.href);
35
+ let $e;
36
+ function X(i, e) {
37
+ return i === e ? !0 : ($e || ($e = document.createElement("a")), $e.href = e, i === $e.href);
38
38
  }
39
- function Zi(i) {
39
+ function qi(i) {
40
40
  return Object.keys(i).length === 0;
41
41
  }
42
- function qi(i, e, t, n) {
42
+ function Qi(i, e, t, n) {
43
43
  if (i) {
44
- const r = li(i, e, t, n);
44
+ const r = ui(i, e, t, n);
45
45
  return i[0](r);
46
46
  }
47
47
  }
48
- function li(i, e, t, n) {
49
- return i[1] && n ? Hi(t.ctx.slice(), i[1](n(e))) : t.ctx;
48
+ function ui(i, e, t, n) {
49
+ return i[1] && n ? Zi(t.ctx.slice(), i[1](n(e))) : t.ctx;
50
50
  }
51
- function Qi(i, e, t, n) {
51
+ function Ki(i, e, t, n) {
52
52
  return i[2], e.dirty;
53
53
  }
54
- function Ki(i, e, t, n, r, l) {
54
+ function Vi(i, e, t, n, r, l) {
55
55
  if (r) {
56
- const c = li(e, t, n, l);
57
- i.p(c, r);
56
+ const u = ui(e, t, n, l);
57
+ i.p(u, r);
58
58
  }
59
59
  }
60
- function Vi(i) {
60
+ function Yi(i) {
61
61
  if (i.ctx.length > 32) {
62
62
  const e = [], t = i.ctx.length / 32;
63
63
  for (let n = 0; n < t; n++)
@@ -69,16 +69,16 @@ function Vi(i) {
69
69
  function it(i) {
70
70
  return i ?? "";
71
71
  }
72
- function M(i, e) {
72
+ function N(i, e) {
73
73
  i.appendChild(e);
74
74
  }
75
- function I(i, e, t) {
75
+ function A(i, e, t) {
76
76
  i.insertBefore(e, t || null);
77
77
  }
78
- function U(i) {
78
+ function I(i) {
79
79
  i.parentNode && i.parentNode.removeChild(i);
80
80
  }
81
- function D(i) {
81
+ function R(i) {
82
82
  return document.createElement(i);
83
83
  }
84
84
  function fe(i) {
@@ -90,13 +90,13 @@ function Le(i) {
90
90
  function ee() {
91
91
  return Le(" ");
92
92
  }
93
- function Yi() {
93
+ function Xi() {
94
94
  return Le("");
95
95
  }
96
- function Z(i, e, t, n) {
96
+ function Q(i, e, t, n) {
97
97
  return i.addEventListener(e, t, n), () => i.removeEventListener(e, t, n);
98
98
  }
99
- function Xi(i) {
99
+ function Ji(i) {
100
100
  return function(e) {
101
101
  return e.preventDefault(), i.call(this, e);
102
102
  };
@@ -104,10 +104,10 @@ function Xi(i) {
104
104
  function a(i, e, t) {
105
105
  t == null ? i.removeAttribute(e) : i.getAttribute(e) !== t && i.setAttribute(e, t);
106
106
  }
107
- function Ji(i) {
107
+ function xi(i) {
108
108
  return Array.from(i.childNodes);
109
109
  }
110
- function Fe(i, e) {
110
+ function Ge(i, e) {
111
111
  e = "" + e, i.data !== e && (i.data = /** @type {string} */
112
112
  e);
113
113
  }
@@ -117,68 +117,68 @@ function Ht(i, e) {
117
117
  function Oe(i, e, t) {
118
118
  i.classList.toggle(e, !!t);
119
119
  }
120
- function xi(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
120
+ function $i(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
121
121
  return new CustomEvent(i, { detail: e, bubbles: t, cancelable: n });
122
122
  }
123
- let je;
124
- function Be(i) {
125
- je = i;
123
+ let He;
124
+ function je(i) {
125
+ He = i;
126
126
  }
127
- function ui() {
128
- if (!je) throw new Error("Function called outside component initialization");
129
- return je;
127
+ function ci() {
128
+ if (!He) throw new Error("Function called outside component initialization");
129
+ return He;
130
130
  }
131
- function $i(i) {
132
- ui().$$.on_destroy.push(i);
131
+ function en(i) {
132
+ ci().$$.on_destroy.push(i);
133
133
  }
134
- function ci() {
135
- const i = ui();
134
+ function di() {
135
+ const i = ci();
136
136
  return (e, t, { cancelable: n = !1 } = {}) => {
137
137
  const r = i.$$.callbacks[e];
138
138
  if (r) {
139
- const l = xi(
139
+ const l = $i(
140
140
  /** @type {string} */
141
141
  e,
142
142
  t,
143
143
  { cancelable: n }
144
144
  );
145
- return r.slice().forEach((c) => {
146
- c.call(i, l);
145
+ return r.slice().forEach((u) => {
146
+ u.call(i, l);
147
147
  }), !l.defaultPrevented;
148
148
  }
149
149
  return !0;
150
150
  };
151
151
  }
152
- function en(i, e) {
152
+ function tn(i, e) {
153
153
  const t = i.$$.callbacks[e.type];
154
154
  t && t.slice().forEach((n) => n.call(this, e));
155
155
  }
156
156
  const We = [], wt = [];
157
157
  let ze = [];
158
- const Zt = [], tn = /* @__PURE__ */ Promise.resolve();
158
+ const Zt = [], nn = /* @__PURE__ */ Promise.resolve();
159
159
  let Et = !1;
160
- function nn() {
161
- Et || (Et = !0, tn.then(di));
160
+ function rn() {
161
+ Et || (Et = !0, nn.then(fi));
162
162
  }
163
163
  function St(i) {
164
164
  ze.push(i);
165
165
  }
166
166
  const yt = /* @__PURE__ */ new Set();
167
167
  let Ce = 0;
168
- function di() {
168
+ function fi() {
169
169
  if (Ce !== 0)
170
170
  return;
171
- const i = je;
171
+ const i = He;
172
172
  do {
173
173
  try {
174
174
  for (; Ce < We.length; ) {
175
175
  const e = We[Ce];
176
- Ce++, Be(e), rn(e.$$);
176
+ Ce++, je(e), sn(e.$$);
177
177
  }
178
178
  } catch (e) {
179
179
  throw We.length = 0, Ce = 0, e;
180
180
  }
181
- for (Be(null), We.length = 0, Ce = 0; wt.length; ) wt.pop()();
181
+ for (je(null), We.length = 0, Ce = 0; wt.length; ) wt.pop()();
182
182
  for (let e = 0; e < ze.length; e += 1) {
183
183
  const t = ze[e];
184
184
  yt.has(t) || (yt.add(t), t());
@@ -187,75 +187,75 @@ function di() {
187
187
  } while (We.length);
188
188
  for (; Zt.length; )
189
189
  Zt.pop()();
190
- Et = !1, yt.clear(), Be(i);
190
+ Et = !1, yt.clear(), je(i);
191
191
  }
192
- function rn(i) {
192
+ function sn(i) {
193
193
  if (i.fragment !== null) {
194
194
  i.update(), he(i.before_update);
195
195
  const e = i.dirty;
196
196
  i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(St);
197
197
  }
198
198
  }
199
- function sn(i) {
199
+ function on(i) {
200
200
  const e = [], t = [];
201
201
  ze.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), ze = e;
202
202
  }
203
- const $e = /* @__PURE__ */ new Set();
204
- let Ee;
205
- function et() {
206
- Ee = {
203
+ const tt = /* @__PURE__ */ new Set();
204
+ let we;
205
+ function Be() {
206
+ we = {
207
207
  r: 0,
208
208
  c: [],
209
- p: Ee
209
+ p: we
210
210
  // parent group
211
211
  };
212
212
  }
213
- function tt() {
214
- Ee.r || he(Ee.c), Ee = Ee.p;
213
+ function Fe() {
214
+ we.r || he(we.c), we = we.p;
215
215
  }
216
- function j(i, e) {
217
- i && i.i && ($e.delete(i), i.i(e));
216
+ function P(i, e) {
217
+ i && i.i && (tt.delete(i), i.i(e));
218
218
  }
219
219
  function q(i, e, t, n) {
220
220
  if (i && i.o) {
221
- if ($e.has(i)) return;
222
- $e.add(i), Ee.c.push(() => {
223
- $e.delete(i), n && (t && i.d(1), n());
221
+ if (tt.has(i)) return;
222
+ tt.add(i), we.c.push(() => {
223
+ tt.delete(i), n && (t && i.d(1), n());
224
224
  }), i.o(e);
225
225
  } else n && n();
226
226
  }
227
227
  function qt(i) {
228
228
  return (i == null ? void 0 : i.length) !== void 0 ? i : Array.from(i);
229
229
  }
230
- function on(i, e) {
230
+ function an(i, e) {
231
231
  q(i, 1, 1, () => {
232
232
  e.delete(i.key);
233
233
  });
234
234
  }
235
- function an(i, e, t, n, r, l, c, s, f, u, d, h) {
236
- let v = i.length, y = l.length, E = v;
237
- const O = {};
238
- for (; E--; ) O[i[E].key] = E;
239
- const p = [], S = /* @__PURE__ */ new Map(), W = /* @__PURE__ */ new Map(), C = [];
240
- for (E = y; E--; ) {
241
- const w = h(r, l, E), g = t(w);
242
- let N = c.get(g);
243
- N ? C.push(() => N.p(w, e)) : (N = u(g, w), N.c()), S.set(g, p[E] = N), g in O && W.set(g, Math.abs(E - O[g]));
235
+ function ln(i, e, t, n, r, l, u, s, d, c, f, L) {
236
+ let b = i.length, E = l.length, g = b;
237
+ const p = {};
238
+ for (; g--; ) p[i[g].key] = g;
239
+ const D = [], k = /* @__PURE__ */ new Map(), W = /* @__PURE__ */ new Map(), B = [];
240
+ for (g = E; g--; ) {
241
+ const w = L(r, l, g), _ = t(w);
242
+ let S = u.get(_);
243
+ S ? B.push(() => S.p(w, e)) : (S = c(_, w), S.c()), k.set(_, D[g] = S), _ in p && W.set(_, Math.abs(g - p[_]));
244
244
  }
245
- const H = /* @__PURE__ */ new Set(), X = /* @__PURE__ */ new Set();
246
- function Q(w) {
247
- j(w, 1), w.m(s, d), c.set(w.key, w), d = w.first, y--;
245
+ const K = /* @__PURE__ */ new Set(), C = /* @__PURE__ */ new Set();
246
+ function M(w) {
247
+ P(w, 1), w.m(s, f), u.set(w.key, w), f = w.first, E--;
248
248
  }
249
- for (; v && y; ) {
250
- const w = p[y - 1], g = i[v - 1], N = w.key, T = g.key;
251
- w === g ? (d = w.first, v--, y--) : S.has(T) ? !c.has(N) || H.has(N) ? Q(w) : X.has(T) ? v-- : W.get(N) > W.get(T) ? (X.add(N), Q(w)) : (H.add(T), v--) : (f(g, c), v--);
249
+ for (; b && E; ) {
250
+ const w = D[E - 1], _ = i[b - 1], S = w.key, U = _.key;
251
+ w === _ ? (f = w.first, b--, E--) : k.has(U) ? !u.has(S) || K.has(S) ? M(w) : C.has(U) ? b-- : W.get(S) > W.get(U) ? (C.add(S), M(w)) : (K.add(U), b--) : (d(_, u), b--);
252
252
  }
253
- for (; v--; ) {
254
- const w = i[v];
255
- S.has(w.key) || f(w, c);
253
+ for (; b--; ) {
254
+ const w = i[b];
255
+ k.has(w.key) || d(w, u);
256
256
  }
257
- for (; y; ) Q(p[y - 1]);
258
- return he(C), p;
257
+ for (; E; ) M(D[E - 1]);
258
+ return he(B), D;
259
259
  }
260
260
  function _e(i) {
261
261
  i && i.c();
@@ -263,26 +263,26 @@ function _e(i) {
263
263
  function me(i, e, t) {
264
264
  const { fragment: n, after_update: r } = i.$$;
265
265
  n && n.m(e, t), St(() => {
266
- const l = i.$$.on_mount.map(oi).filter(ai);
266
+ const l = i.$$.on_mount.map(ai).filter(li);
267
267
  i.$$.on_destroy ? i.$$.on_destroy.push(...l) : he(l), i.$$.on_mount = [];
268
268
  }), r.forEach(St);
269
269
  }
270
270
  function ge(i, e) {
271
271
  const t = i.$$;
272
- t.fragment !== null && (sn(t.after_update), he(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
272
+ t.fragment !== null && (on(t.after_update), he(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
273
273
  }
274
- function ln(i, e) {
275
- i.$$.dirty[0] === -1 && (We.push(i), nn(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
274
+ function un(i, e) {
275
+ i.$$.dirty[0] === -1 && (We.push(i), rn(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
276
276
  }
277
- function pe(i, e, t, n, r, l, c = null, s = [-1]) {
278
- const f = je;
279
- Be(i);
280
- const u = i.$$ = {
277
+ function Se(i, e, t, n, r, l, u = null, s = [-1]) {
278
+ const d = He;
279
+ je(i);
280
+ const c = i.$$ = {
281
281
  fragment: null,
282
282
  ctx: [],
283
283
  // state
284
284
  props: l,
285
- update: P,
285
+ update: j,
286
286
  not_equal: r,
287
287
  bound: Gt(),
288
288
  // lifecycle
@@ -291,29 +291,29 @@ function pe(i, e, t, n, r, l, c = null, s = [-1]) {
291
291
  on_disconnect: [],
292
292
  before_update: [],
293
293
  after_update: [],
294
- context: new Map(e.context || (f ? f.$$.context : [])),
294
+ context: new Map(e.context || (d ? d.$$.context : [])),
295
295
  // everything else
296
296
  callbacks: Gt(),
297
297
  dirty: s,
298
298
  skip_bound: !1,
299
- root: e.target || f.$$.root
299
+ root: e.target || d.$$.root
300
300
  };
301
- c && c(u.root);
302
- let d = !1;
303
- if (u.ctx = t ? t(i, e.props || {}, (h, v, ...y) => {
304
- const E = y.length ? y[0] : v;
305
- return u.ctx && r(u.ctx[h], u.ctx[h] = E) && (!u.skip_bound && u.bound[h] && u.bound[h](E), d && ln(i, h)), v;
306
- }) : [], u.update(), d = !0, he(u.before_update), u.fragment = n ? n(u.ctx) : !1, e.target) {
301
+ u && u(c.root);
302
+ let f = !1;
303
+ if (c.ctx = t ? t(i, e.props || {}, (L, b, ...E) => {
304
+ const g = E.length ? E[0] : b;
305
+ return c.ctx && r(c.ctx[L], c.ctx[L] = g) && (!c.skip_bound && c.bound[L] && c.bound[L](g), f && un(i, L)), b;
306
+ }) : [], c.update(), f = !0, he(c.before_update), c.fragment = n ? n(c.ctx) : !1, e.target) {
307
307
  if (e.hydrate) {
308
- const h = Ji(e.target);
309
- u.fragment && u.fragment.l(h), h.forEach(U);
308
+ const L = xi(e.target);
309
+ c.fragment && c.fragment.l(L), L.forEach(I);
310
310
  } else
311
- u.fragment && u.fragment.c();
312
- e.intro && j(i.$$.fragment), me(i, e.target, e.anchor), di();
311
+ c.fragment && c.fragment.c();
312
+ e.intro && P(i.$$.fragment), me(i, e.target, e.anchor), fi();
313
313
  }
314
- Be(f);
314
+ je(d);
315
315
  }
316
- class ke {
316
+ class pe {
317
317
  constructor() {
318
318
  /**
319
319
  * ### PRIVATE API
@@ -334,7 +334,7 @@ class ke {
334
334
  }
335
335
  /** @returns {void} */
336
336
  $destroy() {
337
- ge(this, 1), this.$destroy = P;
337
+ ge(this, 1), this.$destroy = j;
338
338
  }
339
339
  /**
340
340
  * @template {Extract<keyof Events, string>} K
@@ -343,8 +343,8 @@ class ke {
343
343
  * @returns {() => void}
344
344
  */
345
345
  $on(e, t) {
346
- if (!ai(t))
347
- return P;
346
+ if (!li(t))
347
+ return j;
348
348
  const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
349
349
  return n.push(t), () => {
350
350
  const r = n.indexOf(t);
@@ -356,60 +356,60 @@ class ke {
356
356
  * @returns {void}
357
357
  */
358
358
  $set(e) {
359
- this.$$set && !Zi(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
359
+ this.$$set && !qi(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
360
360
  }
361
361
  }
362
- const un = "4";
363
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(un);
364
- function cn(i) {
362
+ const cn = "4";
363
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(cn);
364
+ function dn(i) {
365
365
  let e, t;
366
366
  return {
367
367
  c() {
368
368
  e = fe("svg"), t = fe("path"), a(t, "d", "M13.12.706a.982.982 0 0 0-1.391 0L6.907 5.517 2.087.696a.982.982 0 1 0-1.391 1.39l4.821 4.821L.696 11.73a.982.982 0 1 0 1.39 1.39l4.821-4.821 4.822 4.821a.982.982 0 1 0 1.39-1.39L8.298 6.908l4.821-4.822a.988.988 0 0 0 0-1.38Z"), a(e, "viewBox", "0 0 14 14"), a(e, "width", "13"), a(e, "height", "13"), a(e, "class", "svelte-en2qvf");
369
369
  },
370
370
  m(n, r) {
371
- I(n, e, r), M(e, t);
371
+ A(n, e, r), N(e, t);
372
372
  },
373
- p: P,
374
- i: P,
375
- o: P,
373
+ p: j,
374
+ i: j,
375
+ o: j,
376
376
  d(n) {
377
- n && U(e);
377
+ n && I(e);
378
378
  }
379
379
  };
380
380
  }
381
- class fi extends ke {
381
+ class mi extends pe {
382
382
  constructor(e) {
383
- super(), pe(this, e, null, cn, Se, {});
383
+ super(), Se(this, e, null, dn, Ee, {});
384
384
  }
385
385
  }
386
- function dn(i) {
386
+ function fn(i) {
387
387
  let e, t;
388
388
  return {
389
389
  c() {
390
390
  e = fe("svg"), t = fe("path"), a(t, "d", "M15 0C6.705 0 0 6.705 0 15C0 23.295 6.705 30 15 30C23.295 30 30 23.295 30 15C30 6.705 23.295 0 15 0ZM22.5 20.385L20.385 22.5L15 17.115L9.615 22.5L7.5 20.385L12.885 15L7.5 9.615L9.615 7.5L15 12.885L20.385 7.5L22.5 9.615L17.115 15L22.5 20.385Z"), a(e, "viewBox", "0 0 30 30"), a(e, "fill", "none"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "class", "svelte-d2loi5");
391
391
  },
392
392
  m(n, r) {
393
- I(n, e, r), M(e, t);
393
+ A(n, e, r), N(e, t);
394
394
  },
395
- p: P,
396
- i: P,
397
- o: P,
395
+ p: j,
396
+ i: j,
397
+ o: j,
398
398
  d(n) {
399
- n && U(e);
399
+ n && I(e);
400
400
  }
401
401
  };
402
402
  }
403
- class mi extends ke {
403
+ class gi extends pe {
404
404
  constructor(e) {
405
- super(), pe(this, e, null, dn, Se, {});
405
+ super(), Se(this, e, null, fn, Ee, {});
406
406
  }
407
407
  }
408
- function fn(i) {
408
+ function mn(i) {
409
409
  let e, t;
410
410
  return {
411
411
  c() {
412
- e = D("img"), Y(e.src, t = /*iconsBaseUrl*/
412
+ e = R("img"), X(e.src, t = /*iconsBaseUrl*/
413
413
  i[3] + "area.svg") || a(e, "src", t), a(
414
414
  e,
415
415
  "alt",
@@ -423,11 +423,11 @@ function fn(i) {
423
423
  ), a(e, "class", "svelte-w9y5n9");
424
424
  },
425
425
  m(n, r) {
426
- I(n, e, r);
426
+ A(n, e, r);
427
427
  },
428
428
  p(n, r) {
429
429
  r & /*iconsBaseUrl*/
430
- 8 && !Y(e.src, t = /*iconsBaseUrl*/
430
+ 8 && !X(e.src, t = /*iconsBaseUrl*/
431
431
  n[3] + "area.svg") && a(e, "src", t), r & /*placeType*/
432
432
  128 && a(
433
433
  e,
@@ -443,15 +443,15 @@ function fn(i) {
443
443
  );
444
444
  },
445
445
  d(n) {
446
- n && U(e);
446
+ n && I(e);
447
447
  }
448
448
  };
449
449
  }
450
- function mn(i) {
450
+ function gn(i) {
451
451
  let e, t;
452
452
  return {
453
453
  c() {
454
- e = D("img"), Y(e.src, t = /*iconsBaseUrl*/
454
+ e = R("img"), X(e.src, t = /*iconsBaseUrl*/
455
455
  i[3] + "reverse.svg") || a(e, "src", t), a(
456
456
  e,
457
457
  "alt",
@@ -465,11 +465,11 @@ function mn(i) {
465
465
  ), a(e, "class", "svelte-w9y5n9");
466
466
  },
467
467
  m(n, r) {
468
- I(n, e, r);
468
+ A(n, e, r);
469
469
  },
470
470
  p(n, r) {
471
471
  r & /*iconsBaseUrl*/
472
- 8 && !Y(e.src, t = /*iconsBaseUrl*/
472
+ 8 && !X(e.src, t = /*iconsBaseUrl*/
473
473
  n[3] + "reverse.svg") && a(e, "src", t), r & /*placeType*/
474
474
  128 && a(
475
475
  e,
@@ -485,15 +485,15 @@ function mn(i) {
485
485
  );
486
486
  },
487
487
  d(n) {
488
- n && U(e);
488
+ n && I(e);
489
489
  }
490
490
  };
491
491
  }
492
- function gn(i) {
492
+ function hn(i) {
493
493
  let e, t;
494
494
  return {
495
495
  c() {
496
- e = D("img"), Y(e.src, t = /*iconsBaseUrl*/
496
+ e = R("img"), X(e.src, t = /*iconsBaseUrl*/
497
497
  i[3] + "poi.svg") || a(e, "src", t), a(
498
498
  e,
499
499
  "alt",
@@ -507,11 +507,11 @@ function gn(i) {
507
507
  ), a(e, "class", "svelte-w9y5n9");
508
508
  },
509
509
  m(n, r) {
510
- I(n, e, r);
510
+ A(n, e, r);
511
511
  },
512
512
  p(n, r) {
513
513
  r & /*iconsBaseUrl*/
514
- 8 && !Y(e.src, t = /*iconsBaseUrl*/
514
+ 8 && !X(e.src, t = /*iconsBaseUrl*/
515
515
  n[3] + "poi.svg") && a(e, "src", t), r & /*placeType*/
516
516
  128 && a(
517
517
  e,
@@ -527,15 +527,15 @@ function gn(i) {
527
527
  );
528
528
  },
529
529
  d(n) {
530
- n && U(e);
530
+ n && I(e);
531
531
  }
532
532
  };
533
533
  }
534
- function hn(i) {
534
+ function bn(i) {
535
535
  let e, t;
536
536
  return {
537
537
  c() {
538
- e = D("img"), Y(e.src, t = /*iconsBaseUrl*/
538
+ e = R("img"), X(e.src, t = /*iconsBaseUrl*/
539
539
  i[3] + "postal_code.svg") || a(e, "src", t), a(
540
540
  e,
541
541
  "alt",
@@ -549,11 +549,11 @@ function hn(i) {
549
549
  ), a(e, "class", "svelte-w9y5n9");
550
550
  },
551
551
  m(n, r) {
552
- I(n, e, r);
552
+ A(n, e, r);
553
553
  },
554
554
  p(n, r) {
555
555
  r & /*iconsBaseUrl*/
556
- 8 && !Y(e.src, t = /*iconsBaseUrl*/
556
+ 8 && !X(e.src, t = /*iconsBaseUrl*/
557
557
  n[3] + "postal_code.svg") && a(e, "src", t), r & /*placeType*/
558
558
  128 && a(
559
559
  e,
@@ -569,15 +569,15 @@ function hn(i) {
569
569
  );
570
570
  },
571
571
  d(n) {
572
- n && U(e);
572
+ n && I(e);
573
573
  }
574
574
  };
575
575
  }
576
- function bn(i) {
576
+ function vn(i) {
577
577
  let e, t;
578
578
  return {
579
579
  c() {
580
- e = D("img"), Y(e.src, t = /*iconsBaseUrl*/
580
+ e = R("img"), X(e.src, t = /*iconsBaseUrl*/
581
581
  i[3] + "street.svg") || a(e, "src", t), a(
582
582
  e,
583
583
  "alt",
@@ -591,11 +591,11 @@ function bn(i) {
591
591
  ), a(e, "class", "svelte-w9y5n9");
592
592
  },
593
593
  m(n, r) {
594
- I(n, e, r);
594
+ A(n, e, r);
595
595
  },
596
596
  p(n, r) {
597
597
  r & /*iconsBaseUrl*/
598
- 8 && !Y(e.src, t = /*iconsBaseUrl*/
598
+ 8 && !X(e.src, t = /*iconsBaseUrl*/
599
599
  n[3] + "street.svg") && a(e, "src", t), r & /*placeType*/
600
600
  128 && a(
601
601
  e,
@@ -611,15 +611,15 @@ function bn(i) {
611
611
  );
612
612
  },
613
613
  d(n) {
614
- n && U(e);
614
+ n && I(e);
615
615
  }
616
616
  };
617
617
  }
618
- function vn(i) {
618
+ function Ln(i) {
619
619
  let e, t;
620
620
  return {
621
621
  c() {
622
- e = D("img"), Y(e.src, t = /*iconsBaseUrl*/
622
+ e = R("img"), X(e.src, t = /*iconsBaseUrl*/
623
623
  i[3] + "road.svg") || a(e, "src", t), a(
624
624
  e,
625
625
  "alt",
@@ -633,11 +633,11 @@ function vn(i) {
633
633
  ), a(e, "class", "svelte-w9y5n9");
634
634
  },
635
635
  m(n, r) {
636
- I(n, e, r);
636
+ A(n, e, r);
637
637
  },
638
638
  p(n, r) {
639
639
  r & /*iconsBaseUrl*/
640
- 8 && !Y(e.src, t = /*iconsBaseUrl*/
640
+ 8 && !X(e.src, t = /*iconsBaseUrl*/
641
641
  n[3] + "road.svg") && a(e, "src", t), r & /*placeType*/
642
642
  128 && a(
643
643
  e,
@@ -653,15 +653,15 @@ function vn(i) {
653
653
  );
654
654
  },
655
655
  d(n) {
656
- n && U(e);
656
+ n && I(e);
657
657
  }
658
658
  };
659
659
  }
660
- function Ln(i) {
660
+ function _n(i) {
661
661
  let e, t;
662
662
  return {
663
663
  c() {
664
- e = D("img"), Y(e.src, t = /*iconsBaseUrl*/
664
+ e = R("img"), X(e.src, t = /*iconsBaseUrl*/
665
665
  i[3] + "housenumber.svg") || a(e, "src", t), a(
666
666
  e,
667
667
  "alt",
@@ -675,11 +675,11 @@ function Ln(i) {
675
675
  ), a(e, "class", "svelte-w9y5n9");
676
676
  },
677
677
  m(n, r) {
678
- I(n, e, r);
678
+ A(n, e, r);
679
679
  },
680
680
  p(n, r) {
681
681
  r & /*iconsBaseUrl*/
682
- 8 && !Y(e.src, t = /*iconsBaseUrl*/
682
+ 8 && !X(e.src, t = /*iconsBaseUrl*/
683
683
  n[3] + "housenumber.svg") && a(e, "src", t), r & /*placeType*/
684
684
  128 && a(
685
685
  e,
@@ -695,15 +695,15 @@ function Ln(i) {
695
695
  );
696
696
  },
697
697
  d(n) {
698
- n && U(e);
698
+ n && I(e);
699
699
  }
700
700
  };
701
701
  }
702
- function _n(i) {
702
+ function yn(i) {
703
703
  let e, t, n, r;
704
704
  return {
705
705
  c() {
706
- e = D("img"), Y(e.src, t = /*imageUrl*/
706
+ e = R("img"), X(e.src, t = /*imageUrl*/
707
707
  i[5]) || a(e, "src", t), a(
708
708
  e,
709
709
  "alt",
@@ -716,24 +716,24 @@ function _n(i) {
716
716
  i[7]
717
717
  ), a(e, "class", "svelte-w9y5n9");
718
718
  },
719
- m(l, c) {
720
- I(l, e, c), n || (r = Z(
719
+ m(l, u) {
720
+ A(l, e, u), n || (r = Q(
721
721
  e,
722
722
  "error",
723
723
  /*error_handler*/
724
724
  i[14]
725
725
  ), n = !0);
726
726
  },
727
- p(l, c) {
728
- c & /*imageUrl*/
729
- 32 && !Y(e.src, t = /*imageUrl*/
730
- l[5]) && a(e, "src", t), c & /*category*/
727
+ p(l, u) {
728
+ u & /*imageUrl*/
729
+ 32 && !X(e.src, t = /*imageUrl*/
730
+ l[5]) && a(e, "src", t), u & /*category*/
731
731
  16 && a(
732
732
  e,
733
733
  "alt",
734
734
  /*category*/
735
735
  l[4]
736
- ), c & /*placeType*/
736
+ ), u & /*placeType*/
737
737
  128 && a(
738
738
  e,
739
739
  "title",
@@ -742,25 +742,25 @@ function _n(i) {
742
742
  );
743
743
  },
744
744
  d(l) {
745
- l && U(e), n = !1, r();
745
+ l && I(e), n = !1, r();
746
746
  }
747
747
  };
748
748
  }
749
- function yn(i) {
749
+ function wn(i) {
750
750
  let e, t;
751
751
  return {
752
752
  c() {
753
- e = D("div"), a(e, "class", "sprite-icon svelte-w9y5n9"), a(e, "style", t = `
753
+ e = R("div"), a(e, "class", "sprite-icon svelte-w9y5n9"), a(e, "style", t = `
754
754
  width: ${/*spriteIcon*/
755
- i[6].width / ne}px;
755
+ i[6].width / ie}px;
756
756
  height: ${/*spriteIcon*/
757
- i[6].height / ne}px;
757
+ i[6].height / ie}px;
758
758
  background-image: url(${/*iconsBaseUrl*/
759
759
  i[3]}sprite${pt}.png);
760
760
  background-position: -${/*spriteIcon*/
761
- i[6].x / ne}px -${/*spriteIcon*/
762
- i[6].y / ne}px;
763
- background-size: ${oe.width / ne}px ${oe.height / ne}px;
761
+ i[6].x / ie}px -${/*spriteIcon*/
762
+ i[6].y / ie}px;
763
+ background-size: ${se.width / ie}px ${se.height / ie}px;
764
764
  `), a(
765
765
  e,
766
766
  "title",
@@ -769,21 +769,21 @@ function yn(i) {
769
769
  );
770
770
  },
771
771
  m(n, r) {
772
- I(n, e, r);
772
+ A(n, e, r);
773
773
  },
774
774
  p(n, r) {
775
775
  r & /*spriteIcon, iconsBaseUrl*/
776
776
  72 && t !== (t = `
777
777
  width: ${/*spriteIcon*/
778
- n[6].width / ne}px;
778
+ n[6].width / ie}px;
779
779
  height: ${/*spriteIcon*/
780
- n[6].height / ne}px;
780
+ n[6].height / ie}px;
781
781
  background-image: url(${/*iconsBaseUrl*/
782
782
  n[3]}sprite${pt}.png);
783
783
  background-position: -${/*spriteIcon*/
784
- n[6].x / ne}px -${/*spriteIcon*/
785
- n[6].y / ne}px;
786
- background-size: ${oe.width / ne}px ${oe.height / ne}px;
784
+ n[6].x / ie}px -${/*spriteIcon*/
785
+ n[6].y / ie}px;
786
+ background-size: ${se.width / ie}px ${se.height / ie}px;
787
787
  `) && a(e, "style", t), r & /*placeType*/
788
788
  128 && a(
789
789
  e,
@@ -793,7 +793,7 @@ function yn(i) {
793
793
  );
794
794
  },
795
795
  d(n) {
796
- n && U(e);
796
+ n && I(e);
797
797
  }
798
798
  };
799
799
  }
@@ -801,29 +801,29 @@ function Qt(i) {
801
801
  let e, t;
802
802
  return {
803
803
  c() {
804
- e = D("span"), t = Le(
804
+ e = R("span"), t = Le(
805
805
  /*placeType*/
806
806
  i[7]
807
807
  ), a(e, "class", "secondary svelte-w9y5n9");
808
808
  },
809
809
  m(n, r) {
810
- I(n, e, r), M(e, t);
810
+ A(n, e, r), N(e, t);
811
811
  },
812
812
  p(n, r) {
813
813
  r & /*placeType*/
814
- 128 && Fe(
814
+ 128 && Ge(
815
815
  t,
816
816
  /*placeType*/
817
817
  n[7]
818
818
  );
819
819
  },
820
820
  d(n) {
821
- n && U(e);
821
+ n && I(e);
822
822
  }
823
823
  };
824
824
  }
825
- function wn(i) {
826
- let e, t, n, r, l, c, s, f, u, d = (
825
+ function En(i) {
826
+ let e, t, n, r, l, u, s, d, c, f = (
827
827
  /*isReverse*/
828
828
  (i[8] ? (
829
829
  /*feature*/
@@ -832,7 +832,7 @@ function wn(i) {
832
832
  /*feature*/
833
833
  i[0].place_name.replace(/,.*/, "")
834
834
  )) + ""
835
- ), h, v, y = (
835
+ ), L, b, E = (
836
836
  /*showPlaceType*/
837
837
  i[2] === "always" || /*showPlaceType*/
838
838
  i[2] !== "never" && !/*feature*/
@@ -843,171 +843,171 @@ function wn(i) {
843
843
  i[0].id.startsWith("poi.") || !/*imageUrl*/
844
844
  i[5]) && !/*isReverse*/
845
845
  i[8]
846
- ), E, O, p = (
846
+ ), g, p, D = (
847
847
  /*isReverse*/
848
848
  (i[8] ? "" : (
849
849
  /*feature*/
850
850
  i[0].place_name.replace(/[^,]*,?\s*/, "")
851
851
  )) + ""
852
- ), S, W, C, H, X, Q;
853
- function w(L, m) {
852
+ ), k, W, B, K, C, M;
853
+ function w(v, m) {
854
854
  return m & /*feature*/
855
855
  1 && (t = null), m & /*feature*/
856
856
  1 && (n = null), m & /*feature*/
857
857
  1 && (r = null), m & /*feature*/
858
- 1 && (l = null), oe && /*spriteIcon*/
859
- L[6] ? yn : (
858
+ 1 && (l = null), se && /*spriteIcon*/
859
+ v[6] ? wn : (
860
860
  /*imageUrl*/
861
- L[5] ? _n : (
861
+ v[5] ? yn : (
862
862
  /*feature*/
863
- L[0].address ? Ln : (t == null && (t = !!/*feature*/
864
- L[0].id.startsWith("road.")), t ? vn : (n == null && (n = !!/*feature*/
865
- L[0].id.startsWith("address.")), n ? bn : (r == null && (r = !!/*feature*/
866
- L[0].id.startsWith("postal_code.")), r ? hn : (l == null && (l = !!/*feature*/
867
- L[0].id.startsWith("poi.")), l ? gn : (
863
+ v[0].address ? _n : (t == null && (t = !!/*feature*/
864
+ v[0].id.startsWith("road.")), t ? Ln : (n == null && (n = !!/*feature*/
865
+ v[0].id.startsWith("address.")), n ? vn : (r == null && (r = !!/*feature*/
866
+ v[0].id.startsWith("postal_code.")), r ? bn : (l == null && (l = !!/*feature*/
867
+ v[0].id.startsWith("poi.")), l ? hn : (
868
868
  /*isReverse*/
869
- L[8] ? mn : fn
869
+ v[8] ? gn : mn
870
870
  )))))
871
871
  )
872
872
  );
873
873
  }
874
- let g = w(i, -1), N = g(i), T = y && Qt(i);
874
+ let _ = w(i, -1), S = _(i), U = E && Qt(i);
875
875
  return {
876
876
  c() {
877
- e = D("li"), N.c(), c = ee(), s = D("span"), f = D("span"), u = D("span"), h = Le(d), v = ee(), T && T.c(), E = ee(), O = D("span"), S = Le(p), a(u, "class", "primary svelte-w9y5n9"), a(f, "class", "svelte-w9y5n9"), a(O, "class", "line2 svelte-w9y5n9"), a(s, "class", "texts svelte-w9y5n9"), a(e, "tabindex", "-1"), a(e, "role", "option"), a(e, "aria-selected", W = /*style*/
878
- i[1] === "selected"), a(e, "aria-checked", C = /*style*/
879
- i[1] === "picked"), a(e, "class", H = it(
877
+ e = R("li"), S.c(), u = ee(), s = R("span"), d = R("span"), c = R("span"), L = Le(f), b = ee(), U && U.c(), g = ee(), p = R("span"), k = Le(D), a(c, "class", "primary svelte-w9y5n9"), a(d, "class", "svelte-w9y5n9"), a(p, "class", "line2 svelte-w9y5n9"), a(s, "class", "texts svelte-w9y5n9"), a(e, "tabindex", "-1"), a(e, "role", "option"), a(e, "aria-selected", W = /*style*/
878
+ i[1] === "selected"), a(e, "aria-checked", B = /*style*/
879
+ i[1] === "picked"), a(e, "class", K = it(
880
880
  /*style*/
881
881
  i[1]
882
882
  ) + " svelte-w9y5n9");
883
883
  },
884
- m(L, m) {
885
- I(L, e, m), N.m(e, null), M(e, c), M(e, s), M(s, f), M(f, u), M(u, h), M(f, v), T && T.m(f, null), M(s, E), M(s, O), M(O, S), X || (Q = [
886
- Z(
884
+ m(v, m) {
885
+ A(v, e, m), S.m(e, null), N(e, u), N(e, s), N(s, d), N(d, c), N(c, L), N(d, b), U && U.m(d, null), N(s, g), N(s, p), N(p, k), C || (M = [
886
+ Q(
887
887
  e,
888
888
  "mouseenter",
889
889
  /*mouseenter_handler*/
890
890
  i[13]
891
891
  ),
892
- Z(
892
+ Q(
893
893
  e,
894
894
  "focus",
895
895
  /*focus_handler*/
896
896
  i[15]
897
897
  ),
898
- Z(
898
+ Q(
899
899
  e,
900
900
  "click",
901
901
  /*click_handler*/
902
902
  i[16]
903
903
  )
904
- ], X = !0);
904
+ ], C = !0);
905
905
  },
906
- p(L, [m]) {
907
- g === (g = w(L, m)) && N ? N.p(L, m) : (N.d(1), N = g(L), N && (N.c(), N.m(e, c))), m & /*isReverse, feature*/
908
- 257 && d !== (d = /*isReverse*/
909
- (L[8] ? (
906
+ p(v, [m]) {
907
+ _ === (_ = w(v, m)) && S ? S.p(v, m) : (S.d(1), S = _(v), S && (S.c(), S.m(e, u))), m & /*isReverse, feature*/
908
+ 257 && f !== (f = /*isReverse*/
909
+ (v[8] ? (
910
910
  /*feature*/
911
- L[0].place_name
911
+ v[0].place_name
912
912
  ) : (
913
913
  /*feature*/
914
- L[0].place_name.replace(/,.*/, "")
915
- )) + "") && Fe(h, d), m & /*showPlaceType, feature, imageUrl, isReverse*/
916
- 293 && (y = /*showPlaceType*/
917
- L[2] === "always" || /*showPlaceType*/
918
- L[2] !== "never" && !/*feature*/
919
- L[0].address && !/*feature*/
920
- L[0].id.startsWith("road.") && !/*feature*/
921
- L[0].id.startsWith("address.") && !/*feature*/
922
- L[0].id.startsWith("postal_code.") && (!/*feature*/
923
- L[0].id.startsWith("poi.") || !/*imageUrl*/
924
- L[5]) && !/*isReverse*/
925
- L[8]), y ? T ? T.p(L, m) : (T = Qt(L), T.c(), T.m(f, null)) : T && (T.d(1), T = null), m & /*isReverse, feature*/
926
- 257 && p !== (p = /*isReverse*/
927
- (L[8] ? "" : (
914
+ v[0].place_name.replace(/,.*/, "")
915
+ )) + "") && Ge(L, f), m & /*showPlaceType, feature, imageUrl, isReverse*/
916
+ 293 && (E = /*showPlaceType*/
917
+ v[2] === "always" || /*showPlaceType*/
918
+ v[2] !== "never" && !/*feature*/
919
+ v[0].address && !/*feature*/
920
+ v[0].id.startsWith("road.") && !/*feature*/
921
+ v[0].id.startsWith("address.") && !/*feature*/
922
+ v[0].id.startsWith("postal_code.") && (!/*feature*/
923
+ v[0].id.startsWith("poi.") || !/*imageUrl*/
924
+ v[5]) && !/*isReverse*/
925
+ v[8]), E ? U ? U.p(v, m) : (U = Qt(v), U.c(), U.m(d, null)) : U && (U.d(1), U = null), m & /*isReverse, feature*/
926
+ 257 && D !== (D = /*isReverse*/
927
+ (v[8] ? "" : (
928
928
  /*feature*/
929
- L[0].place_name.replace(/[^,]*,?\s*/, "")
930
- )) + "") && Fe(S, p), m & /*style*/
929
+ v[0].place_name.replace(/[^,]*,?\s*/, "")
930
+ )) + "") && Ge(k, D), m & /*style*/
931
931
  2 && W !== (W = /*style*/
932
- L[1] === "selected") && a(e, "aria-selected", W), m & /*style*/
933
- 2 && C !== (C = /*style*/
934
- L[1] === "picked") && a(e, "aria-checked", C), m & /*style*/
935
- 2 && H !== (H = it(
932
+ v[1] === "selected") && a(e, "aria-selected", W), m & /*style*/
933
+ 2 && B !== (B = /*style*/
934
+ v[1] === "picked") && a(e, "aria-checked", B), m & /*style*/
935
+ 2 && K !== (K = it(
936
936
  /*style*/
937
- L[1]
938
- ) + " svelte-w9y5n9") && a(e, "class", H);
937
+ v[1]
938
+ ) + " svelte-w9y5n9") && a(e, "class", K);
939
939
  },
940
- i: P,
941
- o: P,
942
- d(L) {
943
- L && U(e), N.d(), T && T.d(), X = !1, he(Q);
940
+ i: j,
941
+ o: j,
942
+ d(v) {
943
+ v && I(e), S.d(), U && U.d(), C = !1, he(M);
944
944
  }
945
945
  };
946
946
  }
947
- const gi = typeof devicePixelRatio > "u" ? 1 : devicePixelRatio > 1.25, pt = gi ? "@2x" : "", ne = gi ? 2 : 1;
948
- let oe, xe;
949
- function En(i, e, t) {
950
- let n, r, l, { feature: c } = e, { style: s = "default" } = e, { showPlaceType: f } = e, { missingIconsCache: u } = e, { iconsBaseUrl: d } = e;
951
- const h = ci();
952
- let v, y, E, O;
953
- function p() {
954
- xe ?? (xe = fetch(`${d}sprite${pt}.json`).then((g) => g.json()).then((g) => {
955
- oe = g;
947
+ const hi = typeof devicePixelRatio > "u" ? 1 : devicePixelRatio > 1.25, pt = hi ? "@2x" : "", ie = hi ? 2 : 1;
948
+ let se, et;
949
+ function Sn(i, e, t) {
950
+ let n, r, l, { feature: u } = e, { style: s = "default" } = e, { showPlaceType: d } = e, { missingIconsCache: c } = e, { iconsBaseUrl: f } = e;
951
+ const L = di();
952
+ let b, E, g, p;
953
+ function D() {
954
+ et ?? (et = fetch(`${f}sprite${pt}.json`).then((_) => _.json()).then((_) => {
955
+ se = _;
956
956
  }).catch(() => {
957
- oe = null;
957
+ se = null;
958
958
  }));
959
959
  }
960
- function S() {
961
- y && u.add(y), W();
960
+ function k() {
961
+ E && c.add(E), W();
962
962
  }
963
963
  function W() {
964
- oe !== void 0 ? C() : (p(), xe == null || xe.then(C));
964
+ se !== void 0 ? B() : (D(), et == null || et.then(B));
965
965
  }
966
- function C() {
966
+ function B() {
967
967
  do {
968
- if (O--, t(4, v = n == null ? void 0 : n[O]), t(6, E = v ? oe == null ? void 0 : oe.icons[v] : void 0), E)
968
+ if (p--, t(4, b = n == null ? void 0 : n[p]), t(6, g = b ? se == null ? void 0 : se.icons[b] : void 0), g)
969
969
  break;
970
- t(5, y = v ? d + v.replace(/ /g, "_") + ".svg" : void 0);
971
- } while (O > -1 && (!y || u.has(y)));
970
+ t(5, E = b ? f + b.replace(/ /g, "_") + ".svg" : void 0);
971
+ } while (p > -1 && (!E || c.has(E)));
972
972
  }
973
- function H(g) {
974
- en.call(this, i, g);
973
+ function K(_) {
974
+ tn.call(this, i, _);
975
975
  }
976
- const X = () => S(), Q = () => h("select", void 0), w = (g) => {
977
- document.activeElement !== g.target && h("select", void 0);
976
+ const C = () => k(), M = () => L("select", void 0), w = (_) => {
977
+ document.activeElement !== _.target && L("select", void 0);
978
978
  };
979
- return i.$$set = (g) => {
980
- "feature" in g && t(0, c = g.feature), "style" in g && t(1, s = g.style), "showPlaceType" in g && t(2, f = g.showPlaceType), "missingIconsCache" in g && t(11, u = g.missingIconsCache), "iconsBaseUrl" in g && t(3, d = g.iconsBaseUrl);
979
+ return i.$$set = (_) => {
980
+ "feature" in _ && t(0, u = _.feature), "style" in _ && t(1, s = _.style), "showPlaceType" in _ && t(2, d = _.showPlaceType), "missingIconsCache" in _ && t(11, c = _.missingIconsCache), "iconsBaseUrl" in _ && t(3, f = _.iconsBaseUrl);
981
981
  }, i.$$.update = () => {
982
- var g, N, T, L, m;
982
+ var _, S, U, v, m;
983
983
  i.$$.dirty & /*feature*/
984
- 1 && t(12, n = (g = c.properties) == null ? void 0 : g.categories), i.$$.dirty & /*feature*/
985
- 1 && t(8, r = c.place_type[0] === "reverse"), i.$$.dirty & /*feature*/
986
- 1 && t(7, l = ((T = (N = c.properties) == null ? void 0 : N.categories) == null ? void 0 : T.join(", ")) ?? ((m = (L = c.properties) == null ? void 0 : L.place_type_name) == null ? void 0 : m[0]) ?? c.place_type[0]), i.$$.dirty & /*categories*/
987
- 4096 && (O = (n == null ? void 0 : n.length) ?? 0, W());
984
+ 1 && t(12, n = (_ = u.properties) == null ? void 0 : _.categories), i.$$.dirty & /*feature*/
985
+ 1 && t(8, r = u.place_type[0] === "reverse"), i.$$.dirty & /*feature*/
986
+ 1 && t(7, l = ((U = (S = u.properties) == null ? void 0 : S.categories) == null ? void 0 : U.join(", ")) ?? ((m = (v = u.properties) == null ? void 0 : v.place_type_name) == null ? void 0 : m[0]) ?? u.place_type[0]), i.$$.dirty & /*categories*/
987
+ 4096 && (p = (n == null ? void 0 : n.length) ?? 0, W());
988
988
  }, [
989
- c,
989
+ u,
990
990
  s,
991
- f,
992
991
  d,
993
- v,
994
- y,
992
+ f,
993
+ b,
995
994
  E,
995
+ g,
996
996
  l,
997
997
  r,
998
- h,
999
- S,
1000
- u,
998
+ L,
999
+ k,
1000
+ c,
1001
1001
  n,
1002
- H,
1003
- X,
1004
- Q,
1002
+ K,
1003
+ C,
1004
+ M,
1005
1005
  w
1006
1006
  ];
1007
1007
  }
1008
- class Sn extends ke {
1008
+ class pn extends pe {
1009
1009
  constructor(e) {
1010
- super(), pe(this, e, En, wn, Se, {
1010
+ super(), Se(this, e, Sn, En, Ee, {
1011
1011
  feature: 0,
1012
1012
  style: 1,
1013
1013
  showPlaceType: 2,
@@ -1016,73 +1016,73 @@ class Sn extends ke {
1016
1016
  });
1017
1017
  }
1018
1018
  }
1019
- function pn(i) {
1019
+ function kn(i) {
1020
1020
  let e;
1021
1021
  return {
1022
1022
  c() {
1023
- e = D("div"), e.innerHTML = '<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>', a(e, "class", "svelte-7cmwmc");
1023
+ e = R("div"), e.innerHTML = '<svg viewBox="0 0 18 18" width="24" height="24" class="loading-icon svelte-1ocfouu"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>', a(e, "class", "svelte-1ocfouu");
1024
1024
  },
1025
1025
  m(t, n) {
1026
- I(t, e, n);
1026
+ A(t, e, n);
1027
1027
  },
1028
- p: P,
1029
- i: P,
1030
- o: P,
1028
+ p: j,
1029
+ i: j,
1030
+ o: j,
1031
1031
  d(t) {
1032
- t && U(e);
1032
+ t && I(e);
1033
1033
  }
1034
1034
  };
1035
1035
  }
1036
- class kn extends ke {
1036
+ class Tn extends pe {
1037
1037
  constructor(e) {
1038
- super(), pe(this, e, null, pn, Se, {});
1038
+ super(), Se(this, e, null, kn, Ee, {});
1039
1039
  }
1040
1040
  }
1041
- function Tn(i) {
1041
+ function Nn(i) {
1042
1042
  let e, t;
1043
1043
  return {
1044
1044
  c() {
1045
1045
  e = fe("svg"), t = fe("path"), a(t, "d", "M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"), a(e, "viewBox", "0 0 60.006 21.412"), a(e, "width", "14"), a(e, "height", "20"), a(e, "class", "svelte-en2qvf");
1046
1046
  },
1047
1047
  m(n, r) {
1048
- I(n, e, r), M(e, t);
1048
+ A(n, e, r), N(e, t);
1049
1049
  },
1050
- p: P,
1051
- i: P,
1052
- o: P,
1050
+ p: j,
1051
+ i: j,
1052
+ o: j,
1053
1053
  d(n) {
1054
- n && U(e);
1054
+ n && I(e);
1055
1055
  }
1056
1056
  };
1057
1057
  }
1058
- class Nn extends ke {
1058
+ class Mn extends pe {
1059
1059
  constructor(e) {
1060
- super(), pe(this, e, null, Tn, Se, {});
1060
+ super(), Se(this, e, null, Nn, Ee, {});
1061
1061
  }
1062
1062
  }
1063
- function Mn(i) {
1063
+ function Cn(i) {
1064
1064
  let e, t, n;
1065
1065
  return {
1066
1066
  c() {
1067
1067
  e = fe("svg"), t = fe("circle"), n = fe("path"), a(t, "cx", "4.789"), a(t, "cy", "4.787"), a(t, "r", "3.85"), a(t, "class", "svelte-1aq105l"), a(n, "d", "M12.063 12.063 7.635 7.635"), a(n, "class", "svelte-1aq105l"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "width", "13"), a(e, "height", "13"), a(e, "viewBox", "0 0 13 13"), a(e, "class", "svelte-1aq105l");
1068
1068
  },
1069
1069
  m(r, l) {
1070
- I(r, e, l), M(e, t), M(e, n);
1070
+ A(r, e, l), N(e, t), N(e, n);
1071
1071
  },
1072
- p: P,
1073
- i: P,
1074
- o: P,
1072
+ p: j,
1073
+ i: j,
1074
+ o: j,
1075
1075
  d(r) {
1076
- r && U(e);
1076
+ r && I(e);
1077
1077
  }
1078
1078
  };
1079
1079
  }
1080
- class Cn extends ke {
1080
+ class Wn extends pe {
1081
1081
  constructor(e) {
1082
- super(), pe(this, e, null, Mn, Se, {});
1082
+ super(), Se(this, e, null, Cn, Ee, {});
1083
1083
  }
1084
1084
  }
1085
- function Wn(i, e, t) {
1085
+ function On(i, e, t) {
1086
1086
  const n = e[1], r = e[0], l = n - r;
1087
1087
  return i === n && t ? i : ((i - r) % l + l) % l + r;
1088
1088
  }
@@ -1091,7 +1091,7 @@ function Kt(i) {
1091
1091
  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;
1092
1092
  }
1093
1093
  let Ae;
1094
- async function On(i, e, t) {
1094
+ async function zn(i, e, t) {
1095
1095
  const n = i == null ? void 0 : i.getCenterAndZoom();
1096
1096
  for (const r of e ?? [])
1097
1097
  if (!(n && (r.minZoom != null && r.minZoom > n[0] || r.maxZoom != null && r.maxZoom < n[0]))) {
@@ -1105,17 +1105,17 @@ async function On(i, e, t) {
1105
1105
  }
1106
1106
  let l;
1107
1107
  try {
1108
- return l = await new Promise((c, s) => {
1108
+ return l = await new Promise((u, s) => {
1109
1109
  t.signal.addEventListener("abort", () => {
1110
1110
  s(Error("aborted"));
1111
1111
  }), navigator.geolocation.getCurrentPosition(
1112
- (f) => {
1113
- c(
1114
- [f.coords.longitude, f.coords.latitude].map((u) => u.toFixed(6)).join(",")
1112
+ (d) => {
1113
+ u(
1114
+ [d.coords.longitude, d.coords.latitude].map((c) => c.toFixed(6)).join(",")
1115
1115
  );
1116
1116
  },
1117
- (f) => {
1118
- s(f);
1117
+ (d) => {
1118
+ s(d);
1119
1119
  },
1120
1120
  r
1121
1121
  );
@@ -1136,26 +1136,26 @@ async function On(i, e, t) {
1136
1136
  return n[1].toFixed(6) + "," + n[2].toFixed(6);
1137
1137
  }
1138
1138
  }
1139
- const zn = /^(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, Vt = /^([+-]?[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,})$/, Yt = /^(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, Xt = /^(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, Jt = /^(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, xt = /^(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;
1140
- function Rn(i) {
1139
+ const Rn = /^(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, Vt = /^([+-]?[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,})$/, Yt = /^(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, Xt = /^(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, Jt = /^(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, xt = /^(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;
1140
+ function Dn(i) {
1141
1141
  if (!["DMS", "DM", "DD"].includes(i))
1142
1142
  throw new Error("invalid format specified");
1143
1143
  if (this.decimalCoordinates && this.decimalCoordinates.trim()) {
1144
- const e = this.decimalCoordinates.split(",").map((y) => Number(y.trim())), t = Number(e[0]), n = Number(e[1]), r = Math.abs(t), l = Math.abs(n), c = t > 0 ? "N" : "S", s = n > 0 ? "E" : "W";
1145
- let f;
1146
- i == "DD" && (f = `${r}° ${c}, ${l}° ${s}`);
1147
- const u = Math.floor(r), d = Math.floor(l), h = (r - u) * 60, v = (l - d) * 60;
1144
+ const e = this.decimalCoordinates.split(",").map((E) => Number(E.trim())), t = Number(e[0]), n = Number(e[1]), r = Math.abs(t), l = Math.abs(n), u = t > 0 ? "N" : "S", s = n > 0 ? "E" : "W";
1145
+ let d;
1146
+ i == "DD" && (d = `${r}° ${u}, ${l}° ${s}`);
1147
+ const c = Math.floor(r), f = Math.floor(l), L = (r - c) * 60, b = (l - f) * 60;
1148
1148
  if (i == "DM") {
1149
- let y = $t(h, 3).toFixed(3).padStart(6, "0"), E = $t(v, 3).toFixed(3).padStart(6, "0");
1150
- y.endsWith(".000") && E.endsWith(".000") && (y = y.replace(/\.000$/, ""), E = E.replace(/\.000$/, "")), f = `${u}° ${y}' ${c}, ${d}° ${E}' ${s}`;
1149
+ let E = $t(L, 3).toFixed(3).padStart(6, "0"), g = $t(b, 3).toFixed(3).padStart(6, "0");
1150
+ E.endsWith(".000") && g.endsWith(".000") && (E = E.replace(/\.000$/, ""), g = g.replace(/\.000$/, "")), d = `${c}° ${E}' ${u}, ${f}° ${g}' ${s}`;
1151
1151
  }
1152
1152
  if (i == "DMS") {
1153
- const y = Math.floor(h), E = Math.floor(v);
1154
- let O = ((h - y) * 60).toFixed(1).padStart(4, "0"), p = ((v - E) * 60).toFixed(1).padStart(4, "0");
1155
- const S = y.toString().padStart(2, "0"), W = E.toString().padStart(2, "0");
1156
- O.endsWith(".0") && p.endsWith(".0") && (O = O.replace(/\.0$/, ""), p = p.replace(/\.0$/, "")), f = `${u}° ${S}' ${O}" ${c}, ${d}° ${W}' ${p}" ${s}`;
1153
+ const E = Math.floor(L), g = Math.floor(b);
1154
+ let p = ((L - E) * 60).toFixed(1).padStart(4, "0"), D = ((b - g) * 60).toFixed(1).padStart(4, "0");
1155
+ const k = E.toString().padStart(2, "0"), W = g.toString().padStart(2, "0");
1156
+ p.endsWith(".0") && D.endsWith(".0") && (p = p.replace(/\.0$/, ""), D = D.replace(/\.0$/, "")), d = `${c}° ${k}' ${p}" ${u}, ${f}° ${W}' ${D}" ${s}`;
1157
1157
  }
1158
- return f;
1158
+ return d;
1159
1159
  } else
1160
1160
  throw new Error("no decimal coordinates to convert");
1161
1161
  }
@@ -1165,17 +1165,17 @@ function $t(i, e) {
1165
1165
  }
1166
1166
  function kt(i, e) {
1167
1167
  e || (e = 5), i = i.replace(/\s+/g, " ").trim();
1168
- let t = null, n = null, r = "", l = "", c = null, s = [], f = !1;
1169
- if (zn.test(i))
1168
+ let t = null, n = null, r = "", l = "", u = null, s = [], d = !1;
1169
+ if (Rn.test(i))
1170
1170
  throw new Error("invalid coordinate value");
1171
1171
  if (Vt.test(i))
1172
- if (s = Vt.exec(i), f = Pe(s), f)
1173
- 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), c = "DM";
1172
+ if (s = Vt.exec(i), d = Pe(s), d)
1173
+ 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";
1174
1174
  else
1175
1175
  throw new Error("invalid coordinate format");
1176
1176
  else if (Yt.test(i))
1177
- if (s = Yt.exec(i), f = Pe(s), f) {
1178
- if (t = s[2], n = s[6], t.includes(",") && (t = t.replace(",", ".")), n.includes(",") && (n = n.replace(",", ".")), c = "DD", Number(Math.round(t)) == Number(t))
1177
+ if (s = Yt.exec(i), d = Pe(s), d) {
1178
+ 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))
1179
1179
  throw new Error("integer only coordinate provided");
1180
1180
  if (Number(Math.round(n)) == Number(n))
1181
1181
  throw new Error("integer only coordinate provided");
@@ -1183,24 +1183,24 @@ function kt(i, e) {
1183
1183
  } else
1184
1184
  throw new Error("invalid decimal coordinate format");
1185
1185
  else if (Xt.test(i))
1186
- if (s = Xt.exec(i), f = Pe(s), f)
1187
- t = Math.abs(parseInt(s[2])), s[4] && (t += s[4] / 60, c = "DM"), s[6] && (t += s[6].replace(",", ".") / 3600, c = "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], l = s[8]) : s[7] && (r = s[7], l = s[14]);
1186
+ if (s = Xt.exec(i), d = Pe(s), d)
1187
+ 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], l = s[8]) : s[7] && (r = s[7], l = s[14]);
1188
1188
  else
1189
1189
  throw new Error("invalid DMS coordinates format");
1190
1190
  else if (Jt.test(i))
1191
- if (s = Jt.exec(i), f = Pe(s), f)
1192
- t = Math.abs(parseInt(s[2])), s[4] && (t += s[4] / 60, c = "DM"), s[6] && (t += s[6] / 3600, c = "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], l = s[9]) : s[8] && (r = s[8], l = s[16]);
1191
+ if (s = Jt.exec(i), d = Pe(s), d)
1192
+ 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], l = s[9]) : s[8] && (r = s[8], l = s[16]);
1193
1193
  else
1194
1194
  throw new Error("invalid DMS coordinates format");
1195
1195
  else if (xt.test(i)) {
1196
- if (s = xt.exec(i), f = Pe(s), s.filter((u) => u).length <= 5)
1196
+ if (s = xt.exec(i), d = Pe(s), s.filter((c) => c).length <= 5)
1197
1197
  throw new Error("invalid coordinates format");
1198
- if (f)
1199
- t = Math.abs(parseInt(s[2])), s[4] && (t += s[4].replace(",", ".") / 60, c = "DM"), s[6] && (t += s[6].replace(",", ".") / 3600, c = "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], l = s[9]) : s[8] && (r = s[8], l = s[16]);
1198
+ if (d)
1199
+ 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], l = s[9]) : s[8] && (r = s[8], l = s[16]);
1200
1200
  else
1201
1201
  throw new Error("invalid coordinates format");
1202
1202
  }
1203
- if (f) {
1203
+ if (d) {
1204
1204
  if (Math.abs(n) >= 180)
1205
1205
  throw new Error("invalid longitude value");
1206
1206
  if (Math.abs(t) >= 90)
@@ -1210,45 +1210,45 @@ function kt(i, e) {
1210
1210
  if (r && r == l)
1211
1211
  throw new Error("invalid coordinates format");
1212
1212
  t.toString().includes(",") && (t = t.replace(",", ".")), n.toString().includes(",") && (n = n.replace(",", "."));
1213
- let u = /S|SOUTH/i;
1214
- u.test(r) && t > 0 && (t = -1 * t), u = /W|WEST/i, u.test(l) && n > 0 && (n = -1 * n);
1215
- const d = s[0].trim();
1216
- let h, v;
1217
- const y = /[,/;\u0020]/g, E = d.match(y);
1218
- if (E == null) {
1219
- const S = Math.floor(i.length / 2);
1220
- h = d.substring(0, S).trim(), v = d.substring(S).trim();
1213
+ let c = /S|SOUTH/i;
1214
+ c.test(r) && t > 0 && (t = -1 * t), c = /W|WEST/i, c.test(l) && n > 0 && (n = -1 * n);
1215
+ const f = s[0].trim();
1216
+ let L, b;
1217
+ const E = /[,/;\u0020]/g, g = f.match(E);
1218
+ if (g == null) {
1219
+ const k = Math.floor(i.length / 2);
1220
+ L = f.substring(0, k).trim(), b = f.substring(k).trim();
1221
1221
  } else {
1222
- let S;
1223
- E.length % 2 == 1 ? S = Math.floor(E.length / 2) : S = E.length / 2 - 1;
1222
+ let k;
1223
+ g.length % 2 == 1 ? k = Math.floor(g.length / 2) : k = g.length / 2 - 1;
1224
1224
  let W = 0;
1225
- if (S == 0)
1226
- W = d.indexOf(E[0]), h = d.substring(0, W).trim(), v = d.substring(W + 1).trim();
1225
+ if (k == 0)
1226
+ W = f.indexOf(g[0]), L = f.substring(0, W).trim(), b = f.substring(W + 1).trim();
1227
1227
  else {
1228
- let C = 0, H = 0;
1229
- for (; C <= S; )
1230
- W = d.indexOf(E[C], H), H = W + 1, C++;
1231
- h = d.substring(0, W).trim(), v = d.substring(W + 1).trim();
1228
+ let B = 0, K = 0;
1229
+ for (; B <= k; )
1230
+ W = f.indexOf(g[B], K), K = W + 1, B++;
1231
+ L = f.substring(0, W).trim(), b = f.substring(W + 1).trim();
1232
1232
  }
1233
1233
  }
1234
- const O = h.split(".");
1235
- if (O.length == 2 && O[1] == 0 && O[1].length != 2)
1236
- throw new Error("invalid coordinates format");
1237
- const p = v.split(".");
1234
+ const p = L.split(".");
1238
1235
  if (p.length == 2 && p[1] == 0 && p[1].length != 2)
1239
1236
  throw new Error("invalid coordinates format");
1240
- if (/^\d+$/.test(h) || /^\d+$/.test(v))
1237
+ const D = b.split(".");
1238
+ if (D.length == 2 && D[1] == 0 && D[1].length != 2)
1239
+ throw new Error("invalid coordinates format");
1240
+ if (/^\d+$/.test(L) || /^\d+$/.test(b))
1241
1241
  throw new Error("degree only coordinate/s provided");
1242
1242
  return t = Number(Number(t).toFixed(e)), n = Number(Number(n).toFixed(e)), Object.freeze({
1243
- verbatimCoordinates: d,
1244
- verbatimLatitude: h,
1245
- verbatimLongitude: v,
1243
+ verbatimCoordinates: f,
1244
+ verbatimLatitude: L,
1245
+ verbatimLongitude: b,
1246
1246
  decimalLatitude: t,
1247
1247
  decimalLongitude: n,
1248
1248
  decimalCoordinates: `${t},${n}`,
1249
- originalFormat: c,
1250
- closeEnough: Dn,
1251
- toCoordinateFormat: Rn
1249
+ originalFormat: u,
1250
+ closeEnough: Un,
1251
+ toCoordinateFormat: Dn
1252
1252
  });
1253
1253
  } else
1254
1254
  throw new Error("coordinates pattern match failed");
@@ -1261,11 +1261,11 @@ function Pe(i) {
1261
1261
  return !1;
1262
1262
  const t = /^[-+]?\d+([\.,]\d+)?$/, n = /[eastsouthnorthwest]+/i, r = e.length / 2;
1263
1263
  for (let l = 0; l < r; l++) {
1264
- const c = e[l], s = e[l + r], f = t.test(c) && t.test(s), u = n.test(c) && n.test(s), d = c == s;
1265
- if (!(c == null && s == null)) {
1266
- if (c == null || s == null)
1264
+ const u = e[l], s = e[l + r], d = t.test(u) && t.test(s), c = n.test(u) && n.test(s), f = u == s;
1265
+ if (!(u == null && s == null)) {
1266
+ if (u == null || s == null)
1267
1267
  return !1;
1268
- if (f || u || d)
1268
+ if (d || c || f)
1269
1269
  continue;
1270
1270
  return !1;
1271
1271
  }
@@ -1276,7 +1276,7 @@ function ei(i, e) {
1276
1276
  const t = Math.abs(i - e);
1277
1277
  return Number(t.toFixed(6)) <= 1e-5;
1278
1278
  }
1279
- function Dn(i) {
1279
+ function Un(i) {
1280
1280
  if (!i)
1281
1281
  throw new Error("coords must be provided");
1282
1282
  if (i.includes(",")) {
@@ -1287,13 +1287,13 @@ function Dn(i) {
1287
1287
  } else
1288
1288
  throw new Error("coords being tested must be separated by a comma");
1289
1289
  }
1290
- const Un = Object.freeze({
1290
+ const In = Object.freeze({
1291
1291
  DMS: "DMS",
1292
1292
  DM: "DM",
1293
1293
  DD: "DD"
1294
1294
  });
1295
- kt.to = Un;
1296
- const In = [
1295
+ kt.to = In;
1296
+ const An = [
1297
1297
  {
1298
1298
  verbatimCoordinates: "40.123, -74.123",
1299
1299
  verbatimLatitude: "40.123",
@@ -1434,10 +1434,10 @@ const In = [
1434
1434
  verbatimLatitude: "40 7 22.8",
1435
1435
  verbatimLongitude: "-74 7 22.8"
1436
1436
  }
1437
- ], An = {
1437
+ ], Pn = {
1438
1438
  decimalLatitude: 40.123,
1439
1439
  decimalLongitude: -74.123
1440
- }, Pn = [
1440
+ }, Bn = [
1441
1441
  {
1442
1442
  verbatimCoordinates: `50°4'17.698"south, 14°24'2.826"east`,
1443
1443
  verbatimLatitude: `50°4'17.698"south`,
@@ -1522,7 +1522,7 @@ const In = [
1522
1522
  decimalLatitude: -18.4,
1523
1523
  decimalLongitude: 22.75
1524
1524
  }
1525
- ], Bn = [
1525
+ ], Fn = [
1526
1526
  {
1527
1527
  verbatimCoordinates: "10.432342S 10.6345345E",
1528
1528
  verbatimLatitude: "10.432342S",
@@ -1657,22 +1657,61 @@ const In = [
1657
1657
  decimalLongitude: 18.33453
1658
1658
  }
1659
1659
  ];
1660
- function Fn() {
1660
+ function jn() {
1661
1661
  const i = [];
1662
- return In.forEach((e) => {
1663
- e.decimalLatitude ? i.push(e) : i.push({ ...e, ...An });
1664
- }), [...i, ...Pn, ...Bn];
1662
+ return An.forEach((e) => {
1663
+ e.decimalLatitude ? i.push(e) : i.push({ ...e, ...Pn });
1664
+ }), [...i, ...Bn, ...Fn];
1665
1665
  }
1666
- const jn = Fn();
1667
- kt.formats = jn.map((i) => i.verbatimCoordinates);
1668
- const Gn = kt;
1666
+ const Gn = jn();
1667
+ kt.formats = Gn.map((i) => i.verbatimCoordinates);
1668
+ const Hn = kt;
1669
1669
  function ti(i, e, t) {
1670
1670
  const n = i.slice();
1671
1671
  return n[97] = e[t], n[99] = t, n;
1672
1672
  }
1673
1673
  function ii(i) {
1674
+ let e, t, n, r, l;
1675
+ return t = new mi({}), {
1676
+ c() {
1677
+ e = R("button"), _e(t.$$.fragment), a(e, "type", "button"), a(
1678
+ e,
1679
+ "title",
1680
+ /*clearButtonTitle*/
1681
+ i[3]
1682
+ ), a(e, "class", "svelte-bz0zu3");
1683
+ },
1684
+ m(u, s) {
1685
+ A(u, e, s), me(t, e, null), n = !0, r || (l = Q(
1686
+ e,
1687
+ "click",
1688
+ /*click_handler_2*/
1689
+ i[78]
1690
+ ), r = !0);
1691
+ },
1692
+ p(u, s) {
1693
+ (!n || s[0] & /*clearButtonTitle*/
1694
+ 8) && a(
1695
+ e,
1696
+ "title",
1697
+ /*clearButtonTitle*/
1698
+ u[3]
1699
+ );
1700
+ },
1701
+ i(u) {
1702
+ n || (P(t.$$.fragment, u), n = !0);
1703
+ },
1704
+ o(u) {
1705
+ q(t.$$.fragment, u), n = !1;
1706
+ },
1707
+ d(u) {
1708
+ u && I(e), ge(t), r = !1, l();
1709
+ }
1710
+ };
1711
+ }
1712
+ function ni(i) {
1674
1713
  let e, t;
1675
- return e = new kn({}), {
1714
+ return e = new Tn({}), {
1676
1715
  c() {
1677
1716
  _e(e.$$.fragment);
1678
1717
  },
@@ -1680,7 +1719,7 @@ function ii(i) {
1680
1719
  me(e, n, r), t = !0;
1681
1720
  },
1682
1721
  i(n) {
1683
- t || (j(e.$$.fragment, n), t = !0);
1722
+ t || (P(e.$$.fragment, n), t = !0);
1684
1723
  },
1685
1724
  o(n) {
1686
1725
  q(e.$$.fragment, n), t = !1;
@@ -1690,11 +1729,11 @@ function ii(i) {
1690
1729
  }
1691
1730
  };
1692
1731
  }
1693
- function ni(i) {
1732
+ function ri(i) {
1694
1733
  let e, t, n, r, l;
1695
- return t = new Nn({}), {
1734
+ return t = new Mn({}), {
1696
1735
  c() {
1697
- e = D("button"), _e(t.$$.fragment), a(e, "type", "button"), a(
1736
+ e = R("button"), _e(t.$$.fragment), a(e, "type", "button"), a(
1698
1737
  e,
1699
1738
  "title",
1700
1739
  /*reverseButtonTitle*/
@@ -1706,80 +1745,80 @@ function ni(i) {
1706
1745
  i[0]
1707
1746
  );
1708
1747
  },
1709
- m(c, s) {
1710
- I(c, e, s), me(t, e, null), n = !0, r || (l = Z(
1748
+ m(u, s) {
1749
+ A(u, e, s), me(t, e, null), n = !0, r || (l = Q(
1711
1750
  e,
1712
1751
  "click",
1713
1752
  /*click_handler_3*/
1714
1753
  i[79]
1715
1754
  ), r = !0);
1716
1755
  },
1717
- p(c, s) {
1756
+ p(u, s) {
1718
1757
  (!n || s[0] & /*reverseButtonTitle*/
1719
1758
  1024) && a(
1720
1759
  e,
1721
1760
  "title",
1722
1761
  /*reverseButtonTitle*/
1723
- c[10]
1762
+ u[10]
1724
1763
  ), (!n || s[0] & /*reverseActive*/
1725
1764
  1) && Oe(
1726
1765
  e,
1727
1766
  "active",
1728
1767
  /*reverseActive*/
1729
- c[0]
1768
+ u[0]
1730
1769
  );
1731
1770
  },
1732
- i(c) {
1733
- n || (j(t.$$.fragment, c), n = !0);
1771
+ i(u) {
1772
+ n || (P(t.$$.fragment, u), n = !0);
1734
1773
  },
1735
- o(c) {
1736
- q(t.$$.fragment, c), n = !1;
1774
+ o(u) {
1775
+ q(t.$$.fragment, u), n = !1;
1737
1776
  },
1738
- d(c) {
1739
- c && U(e), ge(t), r = !1, l();
1777
+ d(u) {
1778
+ u && I(e), ge(t), r = !1, l();
1740
1779
  }
1741
1780
  };
1742
1781
  }
1743
- function Hn(i) {
1744
- let e, t = [], n = /* @__PURE__ */ new Map(), r, l, c, s = qt(
1782
+ function Zn(i) {
1783
+ let e, t = [], n = /* @__PURE__ */ new Map(), r, l, u, s = qt(
1745
1784
  /*listFeatures*/
1746
1785
  i[13]
1747
1786
  );
1748
- const f = (u) => (
1787
+ const d = (c) => (
1749
1788
  /*feature*/
1750
- u[97].id + /*feature*/
1751
- (u[97].address ? "," + /*feature*/
1752
- u[97].address : "")
1789
+ c[97].id + /*feature*/
1790
+ (c[97].address ? "," + /*feature*/
1791
+ c[97].address : "")
1753
1792
  );
1754
- for (let u = 0; u < s.length; u += 1) {
1755
- let d = ti(i, s, u), h = f(d);
1756
- n.set(h, t[u] = ri(h, d));
1793
+ for (let c = 0; c < s.length; c += 1) {
1794
+ let f = ti(i, s, c), L = d(f);
1795
+ n.set(L, t[c] = si(L, f));
1757
1796
  }
1758
1797
  return {
1759
1798
  c() {
1760
- e = D("ul");
1761
- for (let u = 0; u < t.length; u += 1)
1762
- t[u].c();
1799
+ e = R("ul");
1800
+ for (let c = 0; c < t.length; c += 1)
1801
+ t[c].c();
1763
1802
  a(e, "class", "options svelte-bz0zu3"), a(e, "role", "listbox");
1764
1803
  },
1765
- m(u, d) {
1766
- I(u, e, d);
1767
- for (let h = 0; h < t.length; h += 1)
1768
- t[h] && t[h].m(e, null);
1769
- r = !0, l || (c = [
1770
- Z(
1804
+ m(c, f) {
1805
+ A(c, e, f);
1806
+ for (let L = 0; L < t.length; L += 1)
1807
+ t[L] && t[L].m(e, null);
1808
+ r = !0, l || (u = [
1809
+ Q(
1771
1810
  e,
1772
1811
  "mouseleave",
1773
1812
  /*handleMouseLeave*/
1774
1813
  i[27]
1775
1814
  ),
1776
- Z(
1815
+ Q(
1777
1816
  e,
1778
1817
  "blur",
1779
1818
  /*blur_handler_1*/
1780
1819
  i[83]
1781
1820
  ),
1782
- Z(
1821
+ Q(
1783
1822
  e,
1784
1823
  "keydown",
1785
1824
  /*handleKeyDown*/
@@ -1787,118 +1826,118 @@ function Hn(i) {
1787
1826
  )
1788
1827
  ], l = !0);
1789
1828
  },
1790
- p(u, d) {
1791
- d[0] & /*listFeatures, showPlaceType, selectedItemIndex, picked, missingIconsCache, iconsBaseUrl, handleMouseEnter, pick*/
1829
+ p(c, f) {
1830
+ f[0] & /*listFeatures, showPlaceType, selectedItemIndex, picked, missingIconsCache, iconsBaseUrl, handleMouseEnter, pick*/
1792
1831
  102823936 && (s = qt(
1793
1832
  /*listFeatures*/
1794
- u[13]
1795
- ), et(), t = an(t, d, f, 1, u, s, n, e, on, ri, null, ti), tt());
1833
+ c[13]
1834
+ ), Be(), t = ln(t, f, d, 1, c, s, n, e, an, si, null, ti), Fe());
1796
1835
  },
1797
- i(u) {
1836
+ i(c) {
1798
1837
  if (!r) {
1799
- for (let d = 0; d < s.length; d += 1)
1800
- j(t[d]);
1838
+ for (let f = 0; f < s.length; f += 1)
1839
+ P(t[f]);
1801
1840
  r = !0;
1802
1841
  }
1803
1842
  },
1804
- o(u) {
1805
- for (let d = 0; d < t.length; d += 1)
1806
- q(t[d]);
1843
+ o(c) {
1844
+ for (let f = 0; f < t.length; f += 1)
1845
+ q(t[f]);
1807
1846
  r = !1;
1808
1847
  },
1809
- d(u) {
1810
- u && U(e);
1811
- for (let d = 0; d < t.length; d += 1)
1812
- t[d].d();
1813
- l = !1, he(c);
1848
+ d(c) {
1849
+ c && I(e);
1850
+ for (let f = 0; f < t.length; f += 1)
1851
+ t[f].d();
1852
+ l = !1, he(u);
1814
1853
  }
1815
1854
  };
1816
1855
  }
1817
- function Zn(i) {
1818
- let e, t, n, r, l, c;
1819
- return t = new mi({}), {
1856
+ function qn(i) {
1857
+ let e, t, n, r, l, u;
1858
+ return t = new gi({}), {
1820
1859
  c() {
1821
- e = D("div"), _e(t.$$.fragment), n = ee(), r = D("div"), l = Le(
1860
+ e = R("div"), _e(t.$$.fragment), n = ee(), r = R("div"), l = Le(
1822
1861
  /*noResultsMessage*/
1823
1862
  i[8]
1824
1863
  ), a(r, "class", "svelte-bz0zu3"), a(e, "class", "no-results svelte-bz0zu3");
1825
1864
  },
1826
- m(s, f) {
1827
- I(s, e, f), me(t, e, null), M(e, n), M(e, r), M(r, l), c = !0;
1865
+ m(s, d) {
1866
+ A(s, e, d), me(t, e, null), N(e, n), N(e, r), N(r, l), u = !0;
1828
1867
  },
1829
- p(s, f) {
1830
- (!c || f[0] & /*noResultsMessage*/
1831
- 256) && Fe(
1868
+ p(s, d) {
1869
+ (!u || d[0] & /*noResultsMessage*/
1870
+ 256) && Ge(
1832
1871
  l,
1833
1872
  /*noResultsMessage*/
1834
1873
  s[8]
1835
1874
  );
1836
1875
  },
1837
1876
  i(s) {
1838
- c || (j(t.$$.fragment, s), c = !0);
1877
+ u || (P(t.$$.fragment, s), u = !0);
1839
1878
  },
1840
1879
  o(s) {
1841
- q(t.$$.fragment, s), c = !1;
1880
+ q(t.$$.fragment, s), u = !1;
1842
1881
  },
1843
1882
  d(s) {
1844
- s && U(e), ge(t);
1883
+ s && I(e), ge(t);
1845
1884
  }
1846
1885
  };
1847
1886
  }
1848
- function qn(i) {
1887
+ function Qn(i) {
1849
1888
  let e = "", t;
1850
1889
  return {
1851
1890
  c() {
1852
1891
  t = Le(e);
1853
1892
  },
1854
1893
  m(n, r) {
1855
- I(n, t, r);
1894
+ A(n, t, r);
1856
1895
  },
1857
- p: P,
1858
- i: P,
1859
- o: P,
1896
+ p: j,
1897
+ i: j,
1898
+ o: j,
1860
1899
  d(n) {
1861
- n && U(t);
1900
+ n && I(t);
1862
1901
  }
1863
1902
  };
1864
1903
  }
1865
- function Qn(i) {
1866
- let e, t, n, r, l, c, s, f, u, d, h;
1867
- return t = new mi({}), f = new fi({}), {
1904
+ function Kn(i) {
1905
+ let e, t, n, r, l, u, s, d, c, f, L;
1906
+ return t = new gi({}), d = new mi({}), {
1868
1907
  c() {
1869
- e = D("div"), _e(t.$$.fragment), n = ee(), r = D("div"), l = Le(
1908
+ e = R("div"), _e(t.$$.fragment), n = ee(), r = R("div"), l = Le(
1870
1909
  /*errorMessage*/
1871
1910
  i[7]
1872
- ), c = ee(), s = D("button"), _e(f.$$.fragment), a(r, "class", "svelte-bz0zu3"), a(s, "class", "svelte-bz0zu3"), a(e, "class", "error svelte-bz0zu3");
1911
+ ), u = ee(), s = R("button"), _e(d.$$.fragment), a(r, "class", "svelte-bz0zu3"), a(s, "class", "svelte-bz0zu3"), a(e, "class", "error svelte-bz0zu3");
1873
1912
  },
1874
- m(v, y) {
1875
- I(v, e, y), me(t, e, null), M(e, n), M(e, r), M(r, l), M(e, c), M(e, s), me(f, s, null), u = !0, d || (h = Z(
1913
+ m(b, E) {
1914
+ A(b, e, E), me(t, e, null), N(e, n), N(e, r), N(r, l), N(e, u), N(e, s), me(d, s, null), c = !0, f || (L = Q(
1876
1915
  s,
1877
1916
  "click",
1878
1917
  /*click_handler_4*/
1879
1918
  i[80]
1880
- ), d = !0);
1919
+ ), f = !0);
1881
1920
  },
1882
- p(v, y) {
1883
- (!u || y[0] & /*errorMessage*/
1884
- 128) && Fe(
1921
+ p(b, E) {
1922
+ (!c || E[0] & /*errorMessage*/
1923
+ 128) && Ge(
1885
1924
  l,
1886
1925
  /*errorMessage*/
1887
- v[7]
1926
+ b[7]
1888
1927
  );
1889
1928
  },
1890
- i(v) {
1891
- u || (j(t.$$.fragment, v), j(f.$$.fragment, v), u = !0);
1929
+ i(b) {
1930
+ c || (P(t.$$.fragment, b), P(d.$$.fragment, b), c = !0);
1892
1931
  },
1893
- o(v) {
1894
- q(t.$$.fragment, v), q(f.$$.fragment, v), u = !1;
1932
+ o(b) {
1933
+ q(t.$$.fragment, b), q(d.$$.fragment, b), c = !1;
1895
1934
  },
1896
- d(v) {
1897
- v && U(e), ge(t), ge(f), d = !1, h();
1935
+ d(b) {
1936
+ b && I(e), ge(t), ge(d), f = !1, L();
1898
1937
  }
1899
1938
  };
1900
1939
  }
1901
- function ri(i, e) {
1940
+ function si(i, e) {
1902
1941
  var s;
1903
1942
  let t, n, r;
1904
1943
  function l() {
@@ -1910,7 +1949,7 @@ function ri(i, e) {
1910
1949
  )
1911
1950
  );
1912
1951
  }
1913
- function c() {
1952
+ function u() {
1914
1953
  return (
1915
1954
  /*select_handler*/
1916
1955
  e[82](
@@ -1919,7 +1958,7 @@ function ri(i, e) {
1919
1958
  )
1920
1959
  );
1921
1960
  }
1922
- return n = new Sn({
1961
+ return n = new pn({
1923
1962
  props: {
1924
1963
  feature: (
1925
1964
  /*feature*/
@@ -1947,85 +1986,86 @@ function ri(i, e) {
1947
1986
  e[12]
1948
1987
  )
1949
1988
  }
1950
- }), n.$on("mouseenter", l), n.$on("select", c), {
1989
+ }), n.$on("mouseenter", l), n.$on("select", u), {
1951
1990
  key: i,
1952
1991
  first: null,
1953
1992
  c() {
1954
- t = Yi(), _e(n.$$.fragment), this.first = t;
1955
- },
1956
- m(f, u) {
1957
- I(f, t, u), me(n, f, u), r = !0;
1958
- },
1959
- p(f, u) {
1960
- var h;
1961
- e = f;
1962
- const d = {};
1963
- u[0] & /*listFeatures*/
1964
- 8192 && (d.feature = /*feature*/
1965
- e[97]), u[0] & /*showPlaceType*/
1966
- 2048 && (d.showPlaceType = /*showPlaceType*/
1967
- e[11]), u[0] & /*selectedItemIndex, listFeatures, picked*/
1968
- 57344 && (d.style = /*selectedItemIndex*/
1993
+ t = Xi(), _e(n.$$.fragment), this.first = t;
1994
+ },
1995
+ m(d, c) {
1996
+ A(d, t, c), me(n, d, c), r = !0;
1997
+ },
1998
+ p(d, c) {
1999
+ var L;
2000
+ e = d;
2001
+ const f = {};
2002
+ c[0] & /*listFeatures*/
2003
+ 8192 && (f.feature = /*feature*/
2004
+ e[97]), c[0] & /*showPlaceType*/
2005
+ 2048 && (f.showPlaceType = /*showPlaceType*/
2006
+ e[11]), c[0] & /*selectedItemIndex, listFeatures, picked*/
2007
+ 57344 && (f.style = /*selectedItemIndex*/
1969
2008
  e[15] === /*i*/
1970
2009
  e[99] ? "selected" : (
1971
2010
  /*picked*/
1972
- ((h = e[14]) == null ? void 0 : h.id) === /*feature*/
2011
+ ((L = e[14]) == null ? void 0 : L.id) === /*feature*/
1973
2012
  e[97].id ? "picked" : "default"
1974
- )), u[0] & /*iconsBaseUrl*/
1975
- 4096 && (d.iconsBaseUrl = /*iconsBaseUrl*/
1976
- e[12]), n.$set(d);
2013
+ )), c[0] & /*iconsBaseUrl*/
2014
+ 4096 && (f.iconsBaseUrl = /*iconsBaseUrl*/
2015
+ e[12]), n.$set(f);
1977
2016
  },
1978
- i(f) {
1979
- r || (j(n.$$.fragment, f), r = !0);
2017
+ i(d) {
2018
+ r || (P(n.$$.fragment, d), r = !0);
1980
2019
  },
1981
- o(f) {
1982
- q(n.$$.fragment, f), r = !1;
2020
+ o(d) {
2021
+ q(n.$$.fragment, d), r = !1;
1983
2022
  },
1984
- d(f) {
1985
- f && U(t), ge(n, f);
2023
+ d(d) {
2024
+ d && I(t), ge(n, d);
1986
2025
  }
1987
2026
  };
1988
2027
  }
1989
- function Kn(i) {
1990
- let e, t, n, r, l, c, s, f, u, d, h, v, y, E, O, p, S, W, C, H, X, Q = !1;
1991
- l = new Cn({}), h = new fi({});
1992
- let w = (
2028
+ function Vn(i) {
2029
+ let e, t, n, r, l, u, s, d, c, f, L, b, E, g, p, D, k, W, B, K = !1;
2030
+ l = new Wn({});
2031
+ let C = !/*abortController*/
2032
+ i[20] && ii(i), M = (
1993
2033
  /*abortController*/
1994
- i[20] && ii()
1995
- ), g = (
2034
+ i[20] && ni()
2035
+ ), w = (
1996
2036
  /*enableReverse*/
1997
- i[6] === "button" && ni(i)
2037
+ i[6] === "button" && ri(i)
1998
2038
  );
1999
- const N = (
2039
+ const _ = (
2000
2040
  /*#slots*/
2001
2041
  i[70].default
2002
- ), T = qi(
2003
- N,
2042
+ ), S = Qi(
2043
+ _,
2004
2044
  i,
2005
2045
  /*$$scope*/
2006
2046
  i[69],
2007
2047
  null
2008
- ), L = [Qn, qn, Zn, Hn], m = [];
2009
- function ye(_, B) {
2010
- var ae, te;
2048
+ ), U = [Kn, Qn, qn, Zn], v = [];
2049
+ function m(y, G) {
2050
+ var ue, ke;
2011
2051
  return (
2012
2052
  /*error*/
2013
- _[19] ? 0 : !/*focusedDelayed*/
2014
- _[16] && !/*keepListOpen*/
2015
- _[4] ? 1 : (
2053
+ y[19] ? 0 : !/*focusedDelayed*/
2054
+ y[16] && !/*keepListOpen*/
2055
+ y[4] ? 1 : (
2016
2056
  /*listFeatures*/
2017
- ((ae = _[13]) == null ? void 0 : ae.length) === 0 ? 2 : (
2057
+ ((ue = y[13]) == null ? void 0 : ue.length) === 0 ? 2 : (
2018
2058
  /*listFeatures*/
2019
- (te = _[13]) != null && te.length && /*focusedDelayed*/
2020
- (_[16] || /*keepListOpen*/
2021
- _[4]) ? 3 : -1
2059
+ (ke = y[13]) != null && ke.length && /*focusedDelayed*/
2060
+ (y[16] || /*keepListOpen*/
2061
+ y[4]) ? 3 : -1
2022
2062
  )
2023
2063
  )
2024
2064
  );
2025
2065
  }
2026
- return ~(p = ye(i)) && (S = m[p] = L[p](i)), {
2066
+ return ~(g = m(i)) && (p = v[g] = U[g](i)), {
2027
2067
  c() {
2028
- e = ee(), t = D("form"), n = D("div"), r = D("button"), _e(l.$$.fragment), c = ee(), s = D("input"), f = ee(), u = D("div"), d = D("button"), _e(h.$$.fragment), v = ee(), w && w.c(), y = ee(), g && g.c(), E = ee(), T && T.c(), O = ee(), S && S.c(), a(r, "class", "search-button svelte-bz0zu3"), a(r, "type", "button"), a(
2068
+ e = ee(), t = R("form"), n = R("div"), r = R("button"), _e(l.$$.fragment), u = ee(), s = R("input"), d = ee(), c = R("div"), C && C.c(), f = ee(), M && M.c(), L = ee(), w && w.c(), b = ee(), S && S.c(), E = ee(), p && p.c(), a(r, "class", "search-button svelte-bz0zu3"), a(r, "type", "button"), a(
2029
2069
  s,
2030
2070
  "placeholder",
2031
2071
  /*placeholder*/
@@ -2035,17 +2075,12 @@ function Kn(i) {
2035
2075
  "aria-label",
2036
2076
  /*placeholder*/
2037
2077
  i[9]
2038
- ), a(s, "class", "svelte-bz0zu3"), a(d, "type", "button"), a(
2039
- d,
2040
- "title",
2041
- /*clearButtonTitle*/
2042
- i[3]
2043
- ), a(d, "class", "svelte-bz0zu3"), a(u, "class", "clear-button-container svelte-bz0zu3"), Oe(
2044
- u,
2078
+ ), a(s, "class", "svelte-bz0zu3"), a(c, "class", "clear-button-container svelte-bz0zu3"), Oe(
2079
+ c,
2045
2080
  "displayable",
2046
2081
  /*searchValue*/
2047
2082
  i[1] !== ""
2048
- ), a(n, "class", "input-group svelte-bz0zu3"), a(t, "class", W = it(
2083
+ ), a(n, "class", "input-group svelte-bz0zu3"), a(t, "class", D = it(
2049
2084
  /*className*/
2050
2085
  i[2]
2051
2086
  ) + " svelte-bz0zu3"), Oe(
@@ -2056,160 +2091,152 @@ function Kn(i) {
2056
2091
  i[1] === ""
2057
2092
  );
2058
2093
  },
2059
- m(_, B) {
2060
- I(_, e, B), I(_, t, B), M(t, n), M(n, r), me(l, r, null), M(n, c), M(n, s), i[72](s), Ht(
2094
+ m(y, G) {
2095
+ A(y, e, G), A(y, t, G), N(t, n), N(n, r), me(l, r, null), N(n, u), N(n, s), i[72](s), Ht(
2061
2096
  s,
2062
2097
  /*searchValue*/
2063
2098
  i[1]
2064
- ), M(n, f), M(n, u), M(u, d), me(h, d, null), M(u, v), w && w.m(u, null), M(n, y), g && g.m(n, null), M(n, E), T && T.m(n, null), M(t, O), ~p && m[p].m(t, null), C = !0, H || (X = [
2065
- Z(
2099
+ ), N(n, d), N(n, c), C && C.m(c, null), N(c, f), M && M.m(c, null), N(n, L), w && w.m(n, null), N(n, b), S && S.m(n, null), N(t, E), ~g && v[g].m(t, null), k = !0, W || (B = [
2100
+ Q(
2066
2101
  r,
2067
2102
  "click",
2068
2103
  /*click_handler*/
2069
2104
  i[71]
2070
2105
  ),
2071
- Z(
2106
+ Q(
2072
2107
  s,
2073
2108
  "input",
2074
2109
  /*input_1_input_handler*/
2075
2110
  i[73]
2076
2111
  ),
2077
- Z(
2112
+ Q(
2078
2113
  s,
2079
2114
  "focus",
2080
2115
  /*focus_handler*/
2081
2116
  i[74]
2082
2117
  ),
2083
- Z(
2118
+ Q(
2084
2119
  s,
2085
2120
  "blur",
2086
2121
  /*blur_handler*/
2087
2122
  i[75]
2088
2123
  ),
2089
- Z(
2124
+ Q(
2090
2125
  s,
2091
2126
  "click",
2092
2127
  /*click_handler_1*/
2093
2128
  i[76]
2094
2129
  ),
2095
- Z(
2130
+ Q(
2096
2131
  s,
2097
2132
  "keydown",
2098
2133
  /*handleKeyDown*/
2099
2134
  i[23]
2100
2135
  ),
2101
- Z(
2136
+ Q(
2102
2137
  s,
2103
2138
  "input",
2104
2139
  /*handleInput*/
2105
2140
  i[24]
2106
2141
  ),
2107
- Z(
2142
+ Q(
2108
2143
  s,
2109
2144
  "change",
2110
2145
  /*change_handler*/
2111
2146
  i[77]
2112
2147
  ),
2113
- Z(
2114
- d,
2115
- "click",
2116
- /*click_handler_2*/
2117
- i[78]
2118
- ),
2119
- Z(t, "submit", Xi(
2148
+ Q(t, "submit", Ji(
2120
2149
  /*handleSubmit*/
2121
2150
  i[22]
2122
2151
  ))
2123
- ], H = !0);
2152
+ ], W = !0);
2124
2153
  },
2125
- p(_, B) {
2126
- (!C || B[0] & /*placeholder*/
2154
+ p(y, G) {
2155
+ (!k || G[0] & /*placeholder*/
2127
2156
  512) && a(
2128
2157
  s,
2129
2158
  "placeholder",
2130
2159
  /*placeholder*/
2131
- _[9]
2132
- ), (!C || B[0] & /*placeholder*/
2160
+ y[9]
2161
+ ), (!k || G[0] & /*placeholder*/
2133
2162
  512) && a(
2134
2163
  s,
2135
2164
  "aria-label",
2136
2165
  /*placeholder*/
2137
- _[9]
2138
- ), B[0] & /*searchValue*/
2166
+ y[9]
2167
+ ), G[0] & /*searchValue*/
2139
2168
  2 && s.value !== /*searchValue*/
2140
- _[1] && Ht(
2169
+ y[1] && Ht(
2141
2170
  s,
2142
2171
  /*searchValue*/
2143
- _[1]
2144
- ), (!C || B[0] & /*clearButtonTitle*/
2145
- 8) && a(
2146
- d,
2147
- "title",
2148
- /*clearButtonTitle*/
2149
- _[3]
2172
+ y[1]
2150
2173
  ), /*abortController*/
2151
- _[20] ? w ? B[0] & /*abortController*/
2152
- 1048576 && j(w, 1) : (w = ii(), w.c(), j(w, 1), w.m(u, null)) : w && (et(), q(w, 1, 1, () => {
2153
- w = null;
2154
- }), tt()), (!C || B[0] & /*searchValue*/
2174
+ y[20] ? C && (Be(), q(C, 1, 1, () => {
2175
+ C = null;
2176
+ }), Fe()) : C ? (C.p(y, G), G[0] & /*abortController*/
2177
+ 1048576 && P(C, 1)) : (C = ii(y), C.c(), P(C, 1), C.m(c, f)), /*abortController*/
2178
+ y[20] ? M ? G[0] & /*abortController*/
2179
+ 1048576 && P(M, 1) : (M = ni(), M.c(), P(M, 1), M.m(c, null)) : M && (Be(), q(M, 1, 1, () => {
2180
+ M = null;
2181
+ }), Fe()), (!k || G[0] & /*searchValue*/
2155
2182
  2) && Oe(
2156
- u,
2183
+ c,
2157
2184
  "displayable",
2158
2185
  /*searchValue*/
2159
- _[1] !== ""
2186
+ y[1] !== ""
2160
2187
  ), /*enableReverse*/
2161
- _[6] === "button" ? g ? (g.p(_, B), B[0] & /*enableReverse*/
2162
- 64 && j(g, 1)) : (g = ni(_), g.c(), j(g, 1), g.m(n, E)) : g && (et(), q(g, 1, 1, () => {
2163
- g = null;
2164
- }), tt()), T && T.p && (!C || B[2] & /*$$scope*/
2165
- 128) && Ki(
2166
- T,
2167
- N,
2188
+ y[6] === "button" ? w ? (w.p(y, G), G[0] & /*enableReverse*/
2189
+ 64 && P(w, 1)) : (w = ri(y), w.c(), P(w, 1), w.m(n, b)) : w && (Be(), q(w, 1, 1, () => {
2190
+ w = null;
2191
+ }), Fe()), S && S.p && (!k || G[2] & /*$$scope*/
2192
+ 128) && Vi(
2193
+ S,
2168
2194
  _,
2195
+ y,
2169
2196
  /*$$scope*/
2170
- _[69],
2171
- C ? Qi(
2172
- N,
2197
+ y[69],
2198
+ k ? Ki(
2199
+ _,
2173
2200
  /*$$scope*/
2174
- _[69],
2175
- B,
2201
+ y[69],
2202
+ G,
2176
2203
  null
2177
- ) : Vi(
2204
+ ) : Yi(
2178
2205
  /*$$scope*/
2179
- _[69]
2206
+ y[69]
2180
2207
  ),
2181
2208
  null
2182
2209
  );
2183
- let ae = p;
2184
- p = ye(_), p === ae ? ~p && m[p].p(_, B) : (S && (et(), q(m[ae], 1, 1, () => {
2185
- m[ae] = null;
2186
- }), tt()), ~p ? (S = m[p], S ? S.p(_, B) : (S = m[p] = L[p](_), S.c()), j(S, 1), S.m(t, null)) : S = null), (!C || B[0] & /*className*/
2187
- 4 && W !== (W = it(
2210
+ let ue = g;
2211
+ g = m(y), g === ue ? ~g && v[g].p(y, G) : (p && (Be(), q(v[ue], 1, 1, () => {
2212
+ v[ue] = null;
2213
+ }), Fe()), ~g ? (p = v[g], p ? p.p(y, G) : (p = v[g] = U[g](y), p.c()), P(p, 1), p.m(t, null)) : p = null), (!k || G[0] & /*className*/
2214
+ 4 && D !== (D = it(
2188
2215
  /*className*/
2189
- _[2]
2190
- ) + " svelte-bz0zu3")) && a(t, "class", W), (!C || B[0] & /*className, collapsed, searchValue*/
2216
+ y[2]
2217
+ ) + " svelte-bz0zu3")) && a(t, "class", D), (!k || G[0] & /*className, collapsed, searchValue*/
2191
2218
  38) && Oe(
2192
2219
  t,
2193
2220
  "can-collapse",
2194
2221
  /*collapsed*/
2195
- _[5] && /*searchValue*/
2196
- _[1] === ""
2222
+ y[5] && /*searchValue*/
2223
+ y[1] === ""
2197
2224
  );
2198
2225
  },
2199
- i(_) {
2200
- C || (j(Q), j(l.$$.fragment, _), j(h.$$.fragment, _), j(w), j(g), j(T, _), j(S), C = !0);
2226
+ i(y) {
2227
+ k || (P(K), P(l.$$.fragment, y), P(C), P(M), P(w), P(S, y), P(p), k = !0);
2201
2228
  },
2202
- o(_) {
2203
- q(Q), q(l.$$.fragment, _), q(h.$$.fragment, _), q(w), q(g), q(T, _), q(S), C = !1;
2229
+ o(y) {
2230
+ q(K), q(l.$$.fragment, y), q(C), q(M), q(w), q(S, y), q(p), k = !1;
2204
2231
  },
2205
- d(_) {
2206
- _ && (U(e), U(t)), ge(l), i[72](null), ge(h), w && w.d(), g && g.d(), T && T.d(_), ~p && m[p].d(), H = !1, he(X);
2232
+ d(y) {
2233
+ y && (I(e), I(t)), ge(l), i[72](null), C && C.d(), M && M.d(), w && w.d(), S && S.d(y), ~g && v[g].d(), W = !1, he(B);
2207
2234
  }
2208
2235
  };
2209
2236
  }
2210
- function Vn(i, e, t) {
2211
- let n, r, l, { $$slots: c = {}, $$scope: s } = e;
2212
- const f = {
2237
+ function Yn(i, e, t) {
2238
+ let n, r, l, { $$slots: u = {}, $$scope: s } = e;
2239
+ const d = {
2213
2240
  continental_marine: 4,
2214
2241
  country: 4,
2215
2242
  major_landform: 8,
@@ -2233,334 +2260,333 @@ function Vn(i, e, t) {
2233
2260
  "poi.restaurant": 18,
2234
2261
  "poi.aerodrome": 13
2235
2262
  };
2236
- let { class: u = void 0 } = e, { apiKey: d } = e, { bbox: h = void 0 } = e, { clearButtonTitle: v = "clear" } = e, { clearOnBlur: y = !1 } = e, { clearListOnPick: E = !1 } = e, { keepListOpen: O = !1 } = e, { collapsed: p = !1 } = e, { country: S = void 0 } = e, { debounceSearch: W = 200 } = e, { enableReverse: C = "never" } = e, { errorMessage: H = "Something went wrong…" } = e, { filter: X = () => !0 } = e, { flyTo: Q = !0 } = e, { fuzzyMatch: w = !0 } = e, { language: g = void 0 } = e, { limit: N = void 0 } = e;
2237
- const T = 41415112612;
2238
- let { reverseGeocodingLimit: L = T } = e, { mapController: m = void 0 } = e, { minLength: ye = 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: B = "Search" } = e, { proximity: ae = [{ type: "server-geolocation" }] } = e, { reverseActive: te = C === "always" } = e, { reverseButtonTitle: Nt = "toggle reverse geocoding" } = e, { searchValue: K = "" } = e, { pickedResultStyle: Ge = "full-geometry" } = e, { showPlaceType: Mt = "if-needed" } = e, { showResultsWhileTyping: He = !0 } = e, { selectFirst: Te = !0 } = e, { flyToSelected: Ze = !1 } = e, { markerOnSelected: qe = !0 } = e, { types: rt = void 0 } = e;
2263
+ let { class: c = void 0 } = e, { apiKey: f = void 0 } = e, { bbox: L = void 0 } = e, { clearButtonTitle: b = "clear" } = e, { clearOnBlur: E = !1 } = e, { clearListOnPick: g = !1 } = e, { keepListOpen: p = !1 } = e, { collapsed: D = !1 } = e, { country: k = void 0 } = e, { debounceSearch: W = 200 } = e, { enableReverse: B = "never" } = e, { errorMessage: K = "Something went wrong…" } = e, { filter: C = () => !0 } = e, { flyTo: M = !0 } = e, { fuzzyMatch: w = !0 } = e, { language: _ = void 0 } = e, { limit: S = void 0 } = e;
2264
+ const U = 41415112612;
2265
+ let { reverseGeocodingLimit: v = U } = e, { mapController: m = void 0 } = e, { minLength: y = 2 } = e, { noResultsMessage: G = "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: ue = "Search" } = e, { proximity: ke = [{ type: "server-geolocation" }] } = e, { reverseActive: ce = B === "always" } = e, { reverseButtonTitle: Nt = "toggle reverse geocoding" } = e, { searchValue: V = "" } = e, { pickedResultStyle: Ze = "full-geometry" } = e, { showPlaceType: Mt = "if-needed" } = e, { showResultsWhileTyping: qe = !0 } = e, { selectFirst: Te = !0 } = e, { flyToSelected: Qe = !1 } = e, { markerOnSelected: Ke = !0 } = e, { types: rt = void 0 } = e;
2239
2266
  const Ct = [];
2240
- let { reverseGeocodingTypes: Qe = Ct } = e, { exhaustiveReverseGeocoding: st = !1 } = e, { excludeTypes: ot = !1 } = e;
2267
+ let { reverseGeocodingTypes: Ve = Ct } = e, { exhaustiveReverseGeocoding: st = !1 } = e, { excludeTypes: ot = !1 } = e;
2241
2268
  const Wt = void 0;
2242
- let { reverseGeocodingExcludeTypes: Ke = Wt } = e, { zoom: Ve = f } = e, { apiUrl: at = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: lt = {} } = e, { iconsBaseUrl: Ot = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.1.4/icons/" } = e, { adjustUrlQuery: ut = () => {
2269
+ let { reverseGeocodingExcludeTypes: Ye = Wt } = e, { zoom: Xe = d } = e, { apiUrl: at = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: lt = {} } = e, { iconsBaseUrl: Ot = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.1.7/icons/" } = e, { adjustUrlQuery: ut = () => {
2243
2270
  } } = e, { adjustUrl: ct = () => {
2244
2271
  } } = e;
2245
- function bi(o) {
2246
- re.focus(o);
2272
+ function vi(o) {
2273
+ ne.focus(o);
2247
2274
  }
2248
- function vi() {
2249
- re.blur();
2275
+ function Li() {
2276
+ ne.blur();
2250
2277
  }
2251
- function zt(o, A = !0, F = !1) {
2252
- t(1, K = o), A ? (t(15, z = -1), Dt()) : (Ut(void 0, !F, F), setTimeout(() => {
2253
- re.focus(), re.select();
2278
+ function zt(o, F = !0, H = !1) {
2279
+ t(1, V = o), F ? (t(15, O = -1), Dt()) : (Ut(void 0, !H, H), setTimeout(() => {
2280
+ ne.focus(), ne.select();
2254
2281
  }));
2255
2282
  }
2256
- function Li() {
2257
- t(13, k = void 0), t(14, b = void 0), t(15, z = -1);
2258
- }
2259
2283
  function _i() {
2260
- t(64, G = []), t(14, b = void 0);
2284
+ t(13, T = void 0), t(14, h = void 0), t(15, O = -1);
2261
2285
  }
2262
- let k, G, b, Rt = "", re, z = -1, le, Ye = [], we, Ne, Me, dt, de = !1;
2263
- const yi = /* @__PURE__ */ new Set(), be = ci();
2264
- $i(() => {
2286
+ function yi() {
2287
+ t(64, Z = []), t(14, h = void 0);
2288
+ }
2289
+ let T, Z, h, Rt = "", ne, O = -1, oe, Je = [], ye, Ne, Me, dt, de = !1;
2290
+ const wi = /* @__PURE__ */ new Set(), be = di();
2291
+ en(() => {
2265
2292
  m && (m.setEventHandler(void 0), m.indicateReverse(!1), m.setSelectedMarker(-1), m.setFeatures(void 0, void 0, !1));
2266
2293
  });
2267
2294
  function Dt(o) {
2268
- if (t(17, de = !1), Ne && (clearTimeout(Ne), Ne = void 0), z > -1 && k)
2269
- t(14, b = k[z]), t(1, K = b.place_type[0] === "reverse" ? b.place_name : b.place_name.replace(/,.*/, "")), t(19, le = void 0), t(64, G = void 0), t(15, z = -1);
2270
- else if (K) {
2271
- const A = o || !ft(K);
2272
- mt(K, { exact: !0 }).then(() => {
2273
- t(64, G = k), t(14, b = void 0), A && wi();
2274
- }).catch((F) => t(19, le = F));
2295
+ if (t(17, de = !1), Ne && (clearTimeout(Ne), Ne = void 0), O > -1 && T)
2296
+ t(14, h = T[O]), t(1, V = h.place_type[0] === "reverse" ? h.place_name : h.place_name.replace(/,.*/, "")), t(19, oe = void 0), t(64, Z = void 0), t(15, O = -1);
2297
+ else if (V) {
2298
+ const F = o || !ft(V);
2299
+ mt(V, { exact: !0 }).then(() => {
2300
+ t(64, Z = T), t(14, h = void 0), F && Ei();
2301
+ }).catch((H) => t(19, oe = H));
2275
2302
  }
2276
2303
  }
2277
2304
  function ft(o) {
2278
2305
  try {
2279
- return Gn(o, 6);
2306
+ return Hn(o, 6);
2280
2307
  } catch {
2281
2308
  return !1;
2282
2309
  }
2283
2310
  }
2284
- async function mt(o, { byId: A = !1, exact: F = !1 } = {}) {
2285
- var $, ue, ve;
2286
- t(19, le = void 0), we == null || we.abort();
2311
+ async function mt(o, { byId: F = !1, exact: H = !1 } = {}) {
2312
+ var $, ae, ve;
2313
+ t(19, oe = void 0), ye == null || ye.abort();
2287
2314
  const x = new AbortController();
2288
- t(20, we = x);
2315
+ t(20, ye = x);
2289
2316
  try {
2290
- const R = ft(o), De = new URL(at + "/" + encodeURIComponent(R ? R.decimalLongitude + "," + R.decimalLatitude : o) + ".json"), ie = De.searchParams;
2291
- g !== void 0 && ie.set("language", Array.isArray(g) ? g.join(",") : g ?? "");
2317
+ const z = ft(o), De = new URL(at + "/" + encodeURIComponent(z ? z.decimalLongitude + "," + z.decimalLatitude : o) + ".json"), te = De.searchParams;
2318
+ _ !== void 0 && te.set("language", Array.isArray(_) ? _.join(",") : _ ?? "");
2292
2319
  const [bt] = (m == null ? void 0 : m.getCenterAndZoom()) ?? [];
2293
- let ce = ($ = !R || Qe === Ct ? rt : Qe) == null ? void 0 : $.map((V) => typeof V == "string" ? V : bt === void 0 || (V[0] ?? 0) <= bt && bt < (V[1] ?? 1 / 0) ? V[2] : void 0).filter((V) => V !== void 0);
2294
- ce && (ce = [...new Set(ce)], ie.set("types", ce.join(",")));
2295
- const At = !R || Ke === Wt ? ot : Ke;
2296
- if (At && ie.set("excludeTypes", String(At)), h && ie.set("bbox", h.map((V) => V.toFixed(6)).join(",")), S && ie.set("country", Array.isArray(S) ? S.join(",") : S), !A && !R) {
2297
- const V = await On(m, ae, x);
2298
- V && ie.set("proximity", V), (F || !He) && ie.set("autocomplete", "false"), ie.set("fuzzyMatch", String(w));
2320
+ let le = ($ = !z || Ve === Ct ? rt : Ve) == null ? void 0 : $.map((Y) => typeof Y == "string" ? Y : bt === void 0 || (Y[0] ?? 0) <= bt && bt < (Y[1] ?? 1 / 0) ? Y[2] : void 0).filter((Y) => Y !== void 0);
2321
+ le && (le = [...new Set(le)], te.set("types", le.join(",")));
2322
+ const At = !z || Ye === Wt ? ot : Ye;
2323
+ if (At && te.set("excludeTypes", String(At)), L && te.set("bbox", L.map((Y) => Y.toFixed(6)).join(",")), k && te.set("country", Array.isArray(k) ? k.join(",") : k), !F && !z) {
2324
+ const Y = await zn(m, ke, x);
2325
+ Y && te.set("proximity", Y), (H || !qe) && te.set("autocomplete", "false"), te.set("fuzzyMatch", String(w));
2299
2326
  }
2300
- const Ue = L === T ? N : L;
2301
- Ue !== void 0 && Ue > 1 && (ce == null ? void 0 : ce.length) !== 1 && console.warn("For reverse geocoding when limit > 1 then types must contain single value."), R ? (Ue === 1 || Ue !== void 0 && (st || (ce == null ? void 0 : ce.length) === 1)) && ie.set("limit", String(Ue)) : N !== void 0 && ie.set("limit", String(N)), ie.set("key", d), ut(ie), ct(De);
2302
- const Pi = De.searchParams.get("types") === "" && De.searchParams.get("excludeTypes") !== "true", Xe = De.toString();
2303
- if (Xe === Rt) {
2304
- A ? (E && t(13, k = void 0), t(14, b = Ye[0])) : (t(13, k = Ye), ((ue = k[z]) == null ? void 0 : ue.id) !== (r == null ? void 0 : r.id) && t(15, z = -1));
2327
+ const Ue = v === U ? S : v;
2328
+ Ue !== void 0 && Ue > 1 && (le == null ? void 0 : le.length) !== 1 && console.warn("For reverse geocoding when limit > 1 then types must contain single value."), z ? (Ue === 1 || Ue !== void 0 && (st || (le == null ? void 0 : le.length) === 1)) && te.set("limit", String(Ue)) : S !== void 0 && te.set("limit", String(S)), f && te.set("key", f), ut(te), ct(De);
2329
+ const Bi = De.searchParams.get("types") === "" && De.searchParams.get("excludeTypes") !== "true", xe = De.toString();
2330
+ if (xe === Rt) {
2331
+ F ? (g && t(13, T = void 0), t(14, h = Je[0])) : (t(13, T = Je), ((ae = T[O]) == null ? void 0 : ae.id) !== (r == null ? void 0 : r.id) && t(15, O = -1));
2305
2332
  return;
2306
2333
  }
2307
- Rt = Xe;
2334
+ Rt = xe;
2308
2335
  let Ie;
2309
- if (Pi)
2336
+ if (Bi)
2310
2337
  Ie = { type: "FeatureCollection", features: [] };
2311
2338
  else {
2312
- const V = await fetch(Xe, { signal: x.signal, ...lt });
2313
- if (!V.ok)
2314
- throw new Error(await V.text());
2315
- Ie = await V.json();
2339
+ const Y = await fetch(xe, { signal: x.signal, ...lt });
2340
+ if (!Y.ok)
2341
+ throw new Error(await Y.text());
2342
+ Ie = await Y.json();
2316
2343
  }
2317
- be("response", { url: Xe, featureCollection: Ie }), A ? (E && t(13, k = void 0), t(14, b = Ie.features[0]), Ye = [b]) : (t(13, k = Ie.features.filter(X)), R && k.unshift({
2344
+ be("response", { url: xe, featureCollection: Ie }), F ? (g && t(13, T = void 0), t(14, h = Ie.features[0]), Je = [h]) : (t(13, T = Ie.features.filter(C)), z && T.unshift({
2318
2345
  type: "Feature",
2319
2346
  properties: {},
2320
- id: "reverse_" + R.decimalLongitude + "_" + R.decimalLatitude,
2321
- text: R.decimalLatitude + ", " + R.decimalLongitude,
2322
- place_name: R.decimalLatitude + ", " + R.decimalLongitude,
2347
+ id: "reverse_" + z.decimalLongitude + "_" + z.decimalLatitude,
2348
+ text: z.decimalLatitude + ", " + z.decimalLongitude,
2349
+ place_name: z.decimalLatitude + ", " + z.decimalLongitude,
2323
2350
  place_type: ["reverse"],
2324
- center: [R.decimalLongitude, R.decimalLatitude],
2351
+ center: [z.decimalLongitude, z.decimalLatitude],
2325
2352
  bbox: [
2326
- R.decimalLongitude,
2327
- R.decimalLatitude,
2328
- R.decimalLongitude,
2329
- R.decimalLatitude
2353
+ z.decimalLongitude,
2354
+ z.decimalLatitude,
2355
+ z.decimalLongitude,
2356
+ z.decimalLatitude
2330
2357
  ],
2331
2358
  geometry: {
2332
2359
  type: "Point",
2333
- coordinates: [R.decimalLongitude, R.decimalLatitude]
2360
+ coordinates: [z.decimalLongitude, z.decimalLatitude]
2334
2361
  }
2335
- }), Ye = k, ((ve = k[z]) == null ? void 0 : ve.id) !== (r == null ? void 0 : r.id) && t(15, z = -1), R && re.focus());
2336
- } catch (R) {
2337
- if (R && typeof R == "object" && "name" in R && R.name === "AbortError")
2362
+ }), Je = T, ((ve = T[O]) == null ? void 0 : ve.id) !== (r == null ? void 0 : r.id) && t(15, O = -1), z && ne.focus());
2363
+ } catch (z) {
2364
+ if (z && typeof z == "object" && "name" in z && z.name === "AbortError")
2338
2365
  return;
2339
- throw R;
2366
+ throw z;
2340
2367
  } finally {
2341
- x === we && t(20, we = void 0);
2368
+ x === ye && t(20, ye = void 0);
2342
2369
  }
2343
2370
  }
2344
- function wi() {
2371
+ function Ei() {
2345
2372
  var x;
2346
- if (!(G != null && G.length) || !Q)
2373
+ if (!(Z != null && Z.length) || !M)
2347
2374
  return;
2348
- const o = [180, 90, -180, -90], A = !G.some(($) => !$.matching_text);
2349
- let F;
2350
- for (const $ of G) {
2351
- const ue = Re($);
2352
- if (F = F === void 0 ? ue : ue === void 0 ? F : Math.max(F, ue), A || !$.matching_text)
2375
+ const o = [180, 90, -180, -90], F = !Z.some(($) => !$.matching_text);
2376
+ let H;
2377
+ for (const $ of Z) {
2378
+ const ae = Re($);
2379
+ if (H = H === void 0 ? ae : ae === void 0 ? H : Math.max(H, ae), F || !$.matching_text)
2353
2380
  for (const ve of [0, 1, 2, 3])
2354
2381
  o[ve] = Math[ve < 2 ? "min" : "max"](o[ve], ((x = $.bbox) == null ? void 0 : x[ve]) ?? $.center[ve % 2]);
2355
2382
  }
2356
- m && G.length > 0 && (b && o[0] === o[2] && o[1] === o[3] ? m.flyTo(b.center, Re(b)) : m.fitBounds(Kt(o), 50, F));
2383
+ m && Z.length > 0 && (h && o[0] === o[2] && o[1] === o[3] ? m.flyTo(h.center, Re(h)) : m.fitBounds(Kt(o), 50, H));
2357
2384
  }
2358
2385
  function gt() {
2359
- !b || !m || (!b.bbox || b.bbox[0] === b.bbox[2] && b.bbox[1] === b.bbox[3] ? m.flyTo(b.center, Re(b)) : m.fitBounds(Kt(b.bbox), 50, Re(b)));
2386
+ !h || !m || (!h.bbox || h.bbox[0] === h.bbox[2] && h.bbox[1] === h.bbox[3] ? m.flyTo(h.center, Re(h)) : m.fitBounds(Kt(h.bbox), 50, Re(h)));
2360
2387
  }
2361
2388
  function Re(o) {
2362
- var F;
2389
+ var H;
2363
2390
  if (!o.bbox || o.bbox[0] !== o.bbox[2] && o.bbox[1] !== o.bbox[3])
2364
2391
  return;
2365
- const A = o.id.replace(/\..*/, "");
2366
- return (Array.isArray((F = o.properties) == null ? void 0 : F.categories) ? o.properties.categories.reduce(
2392
+ const F = o.id.replace(/\..*/, "");
2393
+ return (Array.isArray((H = o.properties) == null ? void 0 : H.categories) ? o.properties.categories.reduce(
2367
2394
  (x, $) => {
2368
- const ue = Ve[A + "." + $];
2369
- return x === void 0 ? ue : ue === void 0 ? x : Math.max(x, ue);
2395
+ const ae = Xe[F + "." + $];
2396
+ return x === void 0 ? ae : ae === void 0 ? x : Math.max(x, ae);
2370
2397
  },
2371
2398
  void 0
2372
- ) : void 0) ?? Ve[A];
2373
- }
2374
- function Ei(o) {
2375
- t(0, te = C === "always"), t(13, k = void 0), t(14, b = void 0), t(15, z = -1), zt(o[1].toFixed(6) + ", " + Wn(o[0], [-180, 180], !0).toFixed(6), !1, !0);
2399
+ ) : void 0) ?? Xe[F];
2376
2400
  }
2377
2401
  function Si(o) {
2378
- if (!k)
2402
+ t(0, ce = B === "always"), t(13, T = void 0), t(14, h = void 0), t(15, O = -1), zt(o[1].toFixed(6) + ", " + On(o[0], [-180, 180], !0).toFixed(6), !1, !0);
2403
+ }
2404
+ function pi(o) {
2405
+ if (!T)
2379
2406
  return;
2380
- let A = o.key === "ArrowDown" ? 1 : o.key === "ArrowUp" ? -1 : 0;
2381
- A && (re.focus(), t(17, de = !0), o.preventDefault(), b && z === -1 && t(15, z = k.findIndex((F) => F.id === (b == null ? void 0 : b.id))), z === (b || Te ? 0 : -1) && A === -1 && t(15, z = k.length), t(15, z += A), z >= k.length && t(15, z = -1), z < 0 && (b || Te) && t(15, z = 0));
2407
+ let F = o.key === "ArrowDown" ? 1 : o.key === "ArrowUp" ? -1 : 0;
2408
+ F && (ne.focus(), t(17, de = !0), o.preventDefault(), h && O === -1 && t(15, O = T.findIndex((H) => H.id === (h == null ? void 0 : h.id))), O === (h || Te ? 0 : -1) && F === -1 && t(15, O = T.length), t(15, O += F), O >= T.length && t(15, O = -1), O < 0 && (h || Te) && t(15, O = 0));
2382
2409
  }
2383
- function Ut(o, A = !0, F = !1) {
2384
- if (t(19, le = void 0), t(14, b = void 0), t(17, de = !0), He || F) {
2385
- if (Ne && clearTimeout(Ne), K.length < ye)
2410
+ function Ut(o, F = !0, H = !1) {
2411
+ if (t(19, oe = void 0), t(14, h = void 0), t(17, de = !0), qe || H) {
2412
+ if (Ne && clearTimeout(Ne), V.length < y)
2386
2413
  return;
2387
- const x = K;
2414
+ const x = V;
2388
2415
  Ne = window.setTimeout(
2389
2416
  () => {
2390
- mt(x).catch(($) => t(19, le = $));
2417
+ mt(x).catch(($) => t(19, oe = $));
2391
2418
  },
2392
- A ? W : 0
2419
+ F ? W : 0
2393
2420
  );
2394
2421
  } else
2395
- t(13, k = void 0), t(19, le = void 0);
2422
+ t(13, T = void 0), t(19, oe = void 0);
2396
2423
  }
2397
2424
  function ht(o) {
2398
- b && (b == null ? void 0 : b.id) === (o == null ? void 0 : o.id) ? gt() : (t(14, b = o), t(1, K = o.place_name));
2425
+ h && (h == null ? void 0 : h.id) === (o == null ? void 0 : o.id) ? gt() : (t(14, h = o), t(1, V = o.place_name));
2399
2426
  }
2400
2427
  function It(o) {
2401
- t(15, z = o);
2428
+ t(15, O = o);
2402
2429
  }
2403
- function pi() {
2404
- (!Te || b) && t(15, z = -1), Ze && gt();
2430
+ function ki() {
2431
+ (!Te || h) && t(15, O = -1), Qe && gt();
2405
2432
  }
2406
- const ki = () => re.focus();
2407
- function Ti(o) {
2433
+ const Ti = () => ne.focus();
2434
+ function Ni(o) {
2408
2435
  wt[o ? "unshift" : "push"](() => {
2409
- re = o, t(18, re);
2436
+ ne = o, t(18, ne);
2410
2437
  });
2411
2438
  }
2412
- function Ni() {
2413
- K = this.value, t(1, K), t(17, de), t(31, y), t(16, Me);
2439
+ function Mi() {
2440
+ V = this.value, t(1, V), t(17, de), t(31, E), t(16, Me);
2414
2441
  }
2415
- const Mi = () => t(17, de = !0), Ci = () => t(17, de = !1), Wi = () => t(17, de = !0), Oi = () => t(14, b = void 0), zi = () => {
2416
- t(1, K = ""), t(14, b = void 0), re.focus();
2417
- }, Ri = () => t(0, te = !te), Di = () => t(19, le = void 0), Ui = (o) => It(o), Ii = (o) => ht(o), Ai = () => {
2442
+ const Ci = () => t(17, de = !0), Wi = () => t(17, de = !1), Oi = () => t(17, de = !0), zi = () => t(14, h = void 0), Ri = () => {
2443
+ t(1, V = ""), t(14, h = void 0), ne.focus();
2444
+ }, Di = () => t(0, ce = !ce), Ui = () => t(19, oe = void 0), Ii = (o) => It(o), Ai = (o) => ht(o), Pi = () => {
2418
2445
  };
2419
2446
  return i.$$set = (o) => {
2420
- "class" in o && t(2, u = o.class), "apiKey" in o && t(29, d = o.apiKey), "bbox" in o && t(30, h = o.bbox), "clearButtonTitle" in o && t(3, v = o.clearButtonTitle), "clearOnBlur" in o && t(31, y = o.clearOnBlur), "clearListOnPick" in o && t(32, E = o.clearListOnPick), "keepListOpen" in o && t(4, O = o.keepListOpen), "collapsed" in o && t(5, p = o.collapsed), "country" in o && t(33, S = o.country), "debounceSearch" in o && t(34, W = o.debounceSearch), "enableReverse" in o && t(6, C = o.enableReverse), "errorMessage" in o && t(7, H = o.errorMessage), "filter" in o && t(35, X = o.filter), "flyTo" in o && t(36, Q = o.flyTo), "fuzzyMatch" in o && t(37, w = o.fuzzyMatch), "language" in o && t(38, g = o.language), "limit" in o && t(39, N = o.limit), "reverseGeocodingLimit" in o && t(40, L = o.reverseGeocodingLimit), "mapController" in o && t(41, m = o.mapController), "minLength" in o && t(42, ye = o.minLength), "noResultsMessage" in o && t(8, _ = o.noResultsMessage), "placeholder" in o && t(9, B = o.placeholder), "proximity" in o && t(43, ae = o.proximity), "reverseActive" in o && t(0, te = o.reverseActive), "reverseButtonTitle" in o && t(10, Nt = o.reverseButtonTitle), "searchValue" in o && t(1, K = o.searchValue), "pickedResultStyle" in o && t(44, Ge = o.pickedResultStyle), "showPlaceType" in o && t(11, Mt = o.showPlaceType), "showResultsWhileTyping" in o && t(45, He = o.showResultsWhileTyping), "selectFirst" in o && t(46, Te = o.selectFirst), "flyToSelected" in o && t(47, Ze = o.flyToSelected), "markerOnSelected" in o && t(48, qe = o.markerOnSelected), "types" in o && t(49, rt = o.types), "reverseGeocodingTypes" in o && t(50, Qe = o.reverseGeocodingTypes), "exhaustiveReverseGeocoding" in o && t(51, st = o.exhaustiveReverseGeocoding), "excludeTypes" in o && t(52, ot = o.excludeTypes), "reverseGeocodingExcludeTypes" in o && t(53, Ke = o.reverseGeocodingExcludeTypes), "zoom" in o && t(54, Ve = o.zoom), "apiUrl" in o && t(55, at = o.apiUrl), "fetchParameters" in o && t(56, lt = o.fetchParameters), "iconsBaseUrl" in o && t(12, Ot = o.iconsBaseUrl), "adjustUrlQuery" in o && t(57, ut = o.adjustUrlQuery), "adjustUrl" in o && t(58, ct = o.adjustUrl), "$$scope" in o && t(69, s = o.$$scope);
2447
+ "class" in o && t(2, c = o.class), "apiKey" in o && t(29, f = o.apiKey), "bbox" in o && t(30, L = o.bbox), "clearButtonTitle" in o && t(3, b = o.clearButtonTitle), "clearOnBlur" in o && t(31, E = o.clearOnBlur), "clearListOnPick" in o && t(32, g = o.clearListOnPick), "keepListOpen" in o && t(4, p = o.keepListOpen), "collapsed" in o && t(5, D = o.collapsed), "country" in o && t(33, k = o.country), "debounceSearch" in o && t(34, W = o.debounceSearch), "enableReverse" in o && t(6, B = o.enableReverse), "errorMessage" in o && t(7, K = o.errorMessage), "filter" in o && t(35, C = o.filter), "flyTo" in o && t(36, M = o.flyTo), "fuzzyMatch" in o && t(37, w = o.fuzzyMatch), "language" in o && t(38, _ = o.language), "limit" in o && t(39, S = o.limit), "reverseGeocodingLimit" in o && t(40, v = o.reverseGeocodingLimit), "mapController" in o && t(41, m = o.mapController), "minLength" in o && t(42, y = o.minLength), "noResultsMessage" in o && t(8, G = o.noResultsMessage), "placeholder" in o && t(9, ue = o.placeholder), "proximity" in o && t(43, ke = o.proximity), "reverseActive" in o && t(0, ce = o.reverseActive), "reverseButtonTitle" in o && t(10, Nt = o.reverseButtonTitle), "searchValue" in o && t(1, V = o.searchValue), "pickedResultStyle" in o && t(44, Ze = o.pickedResultStyle), "showPlaceType" in o && t(11, Mt = o.showPlaceType), "showResultsWhileTyping" in o && t(45, qe = o.showResultsWhileTyping), "selectFirst" in o && t(46, Te = o.selectFirst), "flyToSelected" in o && t(47, Qe = o.flyToSelected), "markerOnSelected" in o && t(48, Ke = o.markerOnSelected), "types" in o && t(49, rt = o.types), "reverseGeocodingTypes" in o && t(50, Ve = o.reverseGeocodingTypes), "exhaustiveReverseGeocoding" in o && t(51, st = o.exhaustiveReverseGeocoding), "excludeTypes" in o && t(52, ot = o.excludeTypes), "reverseGeocodingExcludeTypes" in o && t(53, Ye = o.reverseGeocodingExcludeTypes), "zoom" in o && t(54, Xe = o.zoom), "apiUrl" in o && t(55, at = o.apiUrl), "fetchParameters" in o && t(56, lt = o.fetchParameters), "iconsBaseUrl" in o && t(12, Ot = o.iconsBaseUrl), "adjustUrlQuery" in o && t(57, ut = o.adjustUrlQuery), "adjustUrl" in o && t(58, ct = o.adjustUrl), "$$scope" in o && t(69, s = o.$$scope);
2421
2448
  }, i.$$.update = () => {
2422
2449
  if (i.$$.dirty[0] & /*enableReverse*/
2423
- 64 && t(0, te = C === "always"), i.$$.dirty[0] & /*picked*/
2450
+ 64 && t(0, ce = B === "always"), i.$$.dirty[0] & /*picked*/
2424
2451
  16384 | i.$$.dirty[1] & /*pickedResultStyle*/
2425
- 8192 && Ge !== "marker-only" && b && !b.address && b.geometry.type === "Point" && b.place_type[0] !== "reverse" && mt(b.id, { byId: !0 }).catch((o) => t(19, le = o)), i.$$.dirty[0] & /*picked*/
2452
+ 8192 && Ze !== "marker-only" && h && !h.address && h.geometry.type === "Point" && h.place_type[0] !== "reverse" && mt(h.id, { byId: !0 }).catch((o) => t(19, oe = o)), i.$$.dirty[0] & /*picked*/
2426
2453
  16384 | i.$$.dirty[1] & /*mapController, flyTo, clearListOnPick*/
2427
2454
  1058 | i.$$.dirty[2] & /*prevIdToFly*/
2428
- 8 && (m && b && b.id !== dt && Q && (gt(), E && t(13, k = void 0), t(64, G = void 0), t(15, z = -1)), t(65, dt = b == null ? void 0 : b.id)), i.$$.dirty[0] & /*focused, focusedDelayed*/
2455
+ 8 && (m && h && h.id !== dt && M && (gt(), g && t(13, T = void 0), t(64, Z = void 0), t(15, O = -1)), t(65, dt = h == null ? void 0 : h.id)), i.$$.dirty[0] & /*focused, focusedDelayed*/
2429
2456
  196608 | i.$$.dirty[1] & /*clearOnBlur*/
2430
2457
  1 && setTimeout(() => {
2431
- t(16, Me = de), y && !Me && t(1, K = "");
2458
+ t(16, Me = de), E && !Me && t(1, V = "");
2432
2459
  }), i.$$.dirty[0] & /*searchValue, listFeatures*/
2433
2460
  8194 | i.$$.dirty[1] & /*minLength*/
2434
- 2048 && K.length < ye && (t(13, k = void 0), t(19, le = void 0), t(64, G = k)), i.$$.dirty[0] & /*listFeatures, selectedItemIndex, picked*/
2461
+ 2048 && V.length < y && (t(13, T = void 0), t(19, oe = void 0), t(64, Z = T)), i.$$.dirty[0] & /*listFeatures, selectedItemIndex, picked*/
2435
2462
  57344 | i.$$.dirty[1] & /*selectFirst*/
2436
- 32768 && Te && k != null && k.length && z == -1 && !b && t(15, z = 0), i.$$.dirty[0] & /*listFeatures*/
2463
+ 32768 && Te && T != null && T.length && O == -1 && !h && t(15, O = 0), i.$$.dirty[0] & /*listFeatures*/
2437
2464
  8192 | i.$$.dirty[2] & /*markedFeatures*/
2438
- 4 && G !== k && t(64, G = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
2465
+ 4 && Z !== T && t(64, Z = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
2439
2466
  73729 | i.$$.dirty[1] & /*mapController*/
2440
2467
  1024 | i.$$.dirty[2] & /*markedFeatures*/
2441
2468
  4 && m && m.setEventHandler((o) => {
2442
2469
  switch (o.type) {
2443
2470
  case "mapClick":
2444
- te && Ei(o.coordinates);
2471
+ ce && Si(o.coordinates);
2445
2472
  break;
2446
2473
  case "markerClick":
2447
2474
  {
2448
- const A = k == null ? void 0 : k.find((F) => F.id === o.id);
2449
- A && ht(A);
2475
+ const F = T == null ? void 0 : T.find((H) => H.id === o.id);
2476
+ F && ht(F);
2450
2477
  }
2451
2478
  break;
2452
2479
  case "markerMouseEnter":
2453
- G && t(15, z = Me ? (k == null ? void 0 : k.findIndex((A) => A.id === o.id)) ?? -1 : -1);
2480
+ Z && t(15, O = Me ? (T == null ? void 0 : T.findIndex((F) => F.id === o.id)) ?? -1 : -1);
2454
2481
  break;
2455
2482
  case "markerMouseLeave":
2456
- G && t(15, z = -1);
2483
+ Z && t(15, O = -1);
2457
2484
  break;
2458
2485
  }
2459
2486
  }), i.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
2460
- 40960 && t(66, r = k == null ? void 0 : k[z]), i.$$.dirty[1] & /*mapController, flyTo, flyToSelected*/
2487
+ 40960 && t(66, r = T == null ? void 0 : T[O]), i.$$.dirty[1] & /*mapController, flyTo, flyToSelected*/
2461
2488
  66592 | i.$$.dirty[2] & /*selected*/
2462
- 16 && m && r && Q && Ze && m.flyTo(r.center, Re(r)), i.$$.dirty[1] & /*pickedResultStyle*/
2463
- 8192 && t(68, n = Ge === "full-geometry-including-polygon-center-marker"), i.$$.dirty[1] & /*markerOnSelected, mapController*/
2489
+ 16 && m && r && M && Qe && m.flyTo(r.center, Re(r)), i.$$.dirty[1] & /*pickedResultStyle*/
2490
+ 8192 && t(68, n = Ze === "full-geometry-including-polygon-center-marker"), i.$$.dirty[1] & /*markerOnSelected, mapController*/
2464
2491
  132096 | i.$$.dirty[2] & /*showPolygonMarker*/
2465
- 64 && (qe || m == null || m.setFeatures(void 0, void 0, n)), i.$$.dirty[0] & /*picked*/
2492
+ 64 && (Ke || m == null || m.setFeatures(void 0, void 0, n)), i.$$.dirty[0] & /*picked*/
2466
2493
  16384 | i.$$.dirty[1] & /*mapController, markerOnSelected*/
2467
2494
  132096 | i.$$.dirty[2] & /*markedFeatures, selected, showPolygonMarker*/
2468
- 84 && m && qe && !G && (m.setFeatures(r ? [r] : void 0, b, n), m.setSelectedMarker(r ? 0 : -1)), i.$$.dirty[0] & /*picked*/
2495
+ 84 && m && Ke && !Z && (m.setFeatures(r ? [r] : void 0, h, n), m.setSelectedMarker(r ? 0 : -1)), i.$$.dirty[0] & /*picked*/
2469
2496
  16384 | i.$$.dirty[1] & /*mapController*/
2470
2497
  1024 | i.$$.dirty[2] & /*markedFeatures, showPolygonMarker*/
2471
- 68 && m && m.setFeatures(G, b, n), i.$$.dirty[0] & /*selectedItemIndex*/
2498
+ 68 && m && m.setFeatures(Z, h, n), i.$$.dirty[0] & /*selectedItemIndex*/
2472
2499
  32768 | i.$$.dirty[1] & /*mapController*/
2473
2500
  1024 | i.$$.dirty[2] & /*markedFeatures*/
2474
- 4 && G && m && m.setSelectedMarker(z), i.$$.dirty[0] & /*searchValue*/
2501
+ 4 && Z && m && m.setSelectedMarker(O), i.$$.dirty[0] & /*searchValue*/
2475
2502
  2 | i.$$.dirty[1] & /*mapController*/
2476
2503
  1024 && m) {
2477
- const o = ft(K);
2504
+ const o = ft(V);
2478
2505
  m.setReverseMarker(o ? [o.decimalLongitude, o.decimalLatitude] : void 0);
2479
2506
  }
2480
2507
  i.$$.dirty[2] & /*selected*/
2481
2508
  16 && be("select", { feature: r }), i.$$.dirty[0] & /*picked*/
2482
- 16384 && be("pick", { feature: b }), i.$$.dirty[0] & /*listFeatures, focusedDelayed, keepListOpen*/
2483
- 73744 && t(67, l = !!(k != null && k.length) && (Me || O)), i.$$.dirty[2] & /*optionsVisible*/
2509
+ 16384 && be("pick", { feature: h }), i.$$.dirty[0] & /*listFeatures, focusedDelayed, keepListOpen*/
2510
+ 73744 && t(67, l = !!(T != null && T.length) && (Me || p)), i.$$.dirty[2] & /*optionsVisible*/
2484
2511
  32 && be("optionsvisibilitychange", { optionsVisible: l }), i.$$.dirty[0] & /*listFeatures*/
2485
- 8192 && be("featureslisted", { features: k }), i.$$.dirty[2] & /*markedFeatures*/
2486
- 4 && be("featuresmarked", { features: G }), i.$$.dirty[0] & /*reverseActive*/
2487
- 1 && be("reversetoggle", { reverse: te }), i.$$.dirty[0] & /*searchValue*/
2488
- 2 && be("querychange", { query: K }), i.$$.dirty[0] & /*reverseActive*/
2512
+ 8192 && be("featureslisted", { features: T }), i.$$.dirty[2] & /*markedFeatures*/
2513
+ 4 && be("featuresmarked", { features: Z }), i.$$.dirty[0] & /*reverseActive*/
2514
+ 1 && be("reversetoggle", { reverse: ce }), i.$$.dirty[0] & /*searchValue*/
2515
+ 2 && be("querychange", { query: V }), i.$$.dirty[0] & /*reverseActive*/
2489
2516
  1 | i.$$.dirty[1] & /*mapController*/
2490
- 1024 && m && m.indicateReverse(te);
2517
+ 1024 && m && m.indicateReverse(ce);
2491
2518
  }, [
2492
- te,
2493
- K,
2494
- u,
2495
- v,
2496
- O,
2519
+ ce,
2520
+ V,
2521
+ c,
2522
+ b,
2497
2523
  p,
2498
- C,
2499
- H,
2500
- _,
2524
+ D,
2501
2525
  B,
2526
+ K,
2527
+ G,
2528
+ ue,
2502
2529
  Nt,
2503
2530
  Mt,
2504
2531
  Ot,
2505
- k,
2506
- b,
2507
- z,
2532
+ T,
2533
+ h,
2534
+ O,
2508
2535
  Me,
2509
2536
  de,
2510
- re,
2511
- le,
2512
- we,
2513
- yi,
2537
+ ne,
2538
+ oe,
2539
+ ye,
2540
+ wi,
2514
2541
  Dt,
2515
- Si,
2542
+ pi,
2516
2543
  Ut,
2517
2544
  ht,
2518
2545
  It,
2519
- pi,
2520
- f,
2546
+ ki,
2521
2547
  d,
2522
- h,
2523
- y,
2548
+ f,
2549
+ L,
2524
2550
  E,
2525
- S,
2551
+ g,
2552
+ k,
2526
2553
  W,
2527
- X,
2528
- Q,
2554
+ C,
2555
+ M,
2529
2556
  w,
2530
- g,
2531
- N,
2532
- L,
2557
+ _,
2558
+ S,
2559
+ v,
2533
2560
  m,
2534
- ye,
2535
- ae,
2536
- Ge,
2537
- He,
2538
- Te,
2561
+ y,
2562
+ ke,
2539
2563
  Ze,
2540
2564
  qe,
2541
- rt,
2565
+ Te,
2542
2566
  Qe,
2543
- st,
2544
- ot,
2545
2567
  Ke,
2568
+ rt,
2546
2569
  Ve,
2570
+ st,
2571
+ ot,
2572
+ Ye,
2573
+ Xe,
2547
2574
  at,
2548
2575
  lt,
2549
2576
  ut,
2550
2577
  ct,
2551
- bi,
2552
2578
  vi,
2553
- zt,
2554
2579
  Li,
2580
+ zt,
2555
2581
  _i,
2556
- G,
2582
+ yi,
2583
+ Z,
2557
2584
  dt,
2558
2585
  r,
2559
2586
  l,
2560
2587
  n,
2561
2588
  s,
2562
- c,
2563
- ki,
2589
+ u,
2564
2590
  Ti,
2565
2591
  Ni,
2566
2592
  Mi,
@@ -2572,17 +2598,18 @@ function Vn(i, e, t) {
2572
2598
  Di,
2573
2599
  Ui,
2574
2600
  Ii,
2575
- Ai
2601
+ Ai,
2602
+ Pi
2576
2603
  ];
2577
2604
  }
2578
- let Yn = class extends ke {
2605
+ let Xn = class extends pe {
2579
2606
  constructor(e) {
2580
- super(), pe(
2607
+ super(), Se(
2581
2608
  this,
2582
2609
  e,
2610
+ Yn,
2583
2611
  Vn,
2584
- Kn,
2585
- Se,
2612
+ Ee,
2586
2613
  {
2587
2614
  ZOOM_DEFAULTS: 28,
2588
2615
  class: 2,
@@ -2657,16 +2684,16 @@ let Yn = class extends ke {
2657
2684
  return this.$$.ctx[63];
2658
2685
  }
2659
2686
  };
2660
- const Xn = new FinalizationRegistry((i) => {
2687
+ const Jn = new FinalizationRegistry((i) => {
2661
2688
  i.$destroy();
2662
2689
  });
2663
- var J, nt, hi;
2690
+ var J, nt, bi;
2664
2691
  const Tt = class Tt extends EventTarget {
2665
2692
  constructor({ target: t, ...n }) {
2666
2693
  super();
2667
2694
  _t(this, nt);
2668
2695
  _t(this, J);
2669
- Bt(this, J, new Yn({
2696
+ Bt(this, J, new Xn({
2670
2697
  target: t,
2671
2698
  props: n
2672
2699
  }));
@@ -2680,15 +2707,15 @@ const Tt = class Tt extends EventTarget {
2680
2707
  "reversetoggle",
2681
2708
  "querychange"
2682
2709
  ])
2683
- se(this, J).$on(r, (l) => {
2684
- Ft(this, nt, hi).call(this, r, l.detail);
2710
+ re(this, J).$on(r, (l) => {
2711
+ Ft(this, nt, bi).call(this, r, l.detail);
2685
2712
  });
2686
- se(this, J).$on("select", (r) => {
2713
+ re(this, J).$on("select", (r) => {
2687
2714
  const l = new CustomEvent(r.type, {
2688
2715
  detail: r.detail
2689
2716
  });
2690
2717
  this.dispatchEvent(l);
2691
- }), Xn.register(this, se(this, J));
2718
+ }), Jn.register(this, re(this, J));
2692
2719
  }
2693
2720
  /**
2694
2721
  * Update the control options.
@@ -2696,7 +2723,7 @@ const Tt = class Tt extends EventTarget {
2696
2723
  * @param options options to update
2697
2724
  */
2698
2725
  setOptions(t) {
2699
- se(this, J).$set(t);
2726
+ re(this, J).$set(t);
2700
2727
  }
2701
2728
  /**
2702
2729
  * Set the content of search input box.
@@ -2706,21 +2733,21 @@ const Tt = class Tt extends EventTarget {
2706
2733
  */
2707
2734
  setQuery(t, n = !0) {
2708
2735
  var r;
2709
- (r = se(this, J)) == null || r.setQuery(t, n);
2736
+ (r = re(this, J)) == null || r.setQuery(t, n);
2710
2737
  }
2711
2738
  /**
2712
2739
  * Clear geocoding search results from the map.
2713
2740
  */
2714
2741
  clearMap() {
2715
2742
  var t;
2716
- (t = se(this, J)) == null || t.clearMap();
2743
+ (t = re(this, J)) == null || t.clearMap();
2717
2744
  }
2718
2745
  /**
2719
2746
  * Clear search result list.
2720
2747
  */
2721
2748
  clearList() {
2722
2749
  var t;
2723
- (t = se(this, J)) == null || t.clearList();
2750
+ (t = re(this, J)) == null || t.clearList();
2724
2751
  }
2725
2752
  /**
2726
2753
  * Set reverse geocoding mode.
@@ -2729,7 +2756,7 @@ const Tt = class Tt extends EventTarget {
2729
2756
  */
2730
2757
  setReverseMode(t) {
2731
2758
  var n;
2732
- (n = se(this, J)) == null || n.$set({ reverseActive: t });
2759
+ (n = re(this, J)) == null || n.$set({ reverseActive: t });
2733
2760
  }
2734
2761
  /**
2735
2762
  * Focus the search input box.
@@ -2738,14 +2765,14 @@ const Tt = class Tt extends EventTarget {
2738
2765
  */
2739
2766
  focus(t) {
2740
2767
  var n;
2741
- (n = se(this, J)) == null || n.focus(t);
2768
+ (n = re(this, J)) == null || n.focus(t);
2742
2769
  }
2743
2770
  /**
2744
2771
  * Blur the search input box.
2745
2772
  */
2746
2773
  blur() {
2747
2774
  var t;
2748
- (t = se(this, J)) == null || t.blur();
2775
+ (t = re(this, J)) == null || t.blur();
2749
2776
  }
2750
2777
  addEventListener(t, n, r) {
2751
2778
  super.addEventListener(t, n, r);
@@ -2757,7 +2784,7 @@ const Tt = class Tt extends EventTarget {
2757
2784
  return super.dispatchEvent(t);
2758
2785
  }
2759
2786
  };
2760
- J = new WeakMap(), nt = new WeakSet(), hi = function(t, n) {
2787
+ J = new WeakMap(), nt = new WeakSet(), bi = function(t, n) {
2761
2788
  return jt(Tt.prototype, this, "dispatchEvent").call(
2762
2789
  this,
2763
2790
  new CustomEvent(t, {
@@ -2765,8 +2792,8 @@ J = new WeakMap(), nt = new WeakSet(), hi = function(t, n) {
2765
2792
  })
2766
2793
  );
2767
2794
  };
2768
- let si = Tt;
2795
+ let oi = Tt;
2769
2796
  export {
2770
- si as GeocodingControl
2797
+ oi as GeocodingControl
2771
2798
  };
2772
2799
  //# sourceMappingURL=vanilla.js.map