@maptiler/geocoding-control 2.0.0 → 2.0.1

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 (74) hide show
  1. package/MapLibreBasedGeocodingControl.d.ts +2616 -27
  2. package/leaflet-controller.d.ts +1 -1
  3. package/leaflet-controller.js +97 -95
  4. package/leaflet-controller.js.map +1 -1
  5. package/leaflet-controller.umd.js +2 -2
  6. package/leaflet-controller.umd.js.map +1 -1
  7. package/leaflet.d.ts +26 -4
  8. package/leaflet.js +906 -909
  9. package/leaflet.js.map +1 -1
  10. package/leaflet.umd.js +3 -3
  11. package/leaflet.umd.js.map +1 -1
  12. package/maplibregl-controller.d.ts +1 -1
  13. package/maplibregl-controller.js +480 -466
  14. package/maplibregl-controller.js.map +1 -1
  15. package/maplibregl-controller.umd.js +3 -3
  16. package/maplibregl-controller.umd.js.map +1 -1
  17. package/maplibregl.d.ts +2594 -9
  18. package/maplibregl.js +2094 -1969
  19. package/maplibregl.js.map +1 -1
  20. package/maplibregl.umd.js +3 -3
  21. package/maplibregl.umd.js.map +1 -1
  22. package/maptilersdk.d.ts +2594 -9
  23. package/maptilersdk.js +2086 -1964
  24. package/maptilersdk.js.map +1 -1
  25. package/maptilersdk.umd.js +3 -3
  26. package/maptilersdk.umd.js.map +1 -1
  27. package/openlayers-controller.d.ts +1 -1
  28. package/openlayers-controller.js +62 -60
  29. package/openlayers-controller.js.map +1 -1
  30. package/openlayers-controller.umd.js +2 -2
  31. package/openlayers-controller.umd.js.map +1 -1
  32. package/openlayers.d.ts +21 -0
  33. package/openlayers.js +754 -786
  34. package/openlayers.js.map +1 -1
  35. package/openlayers.umd.js +3 -3
  36. package/openlayers.umd.js.map +1 -1
  37. package/package.json +18 -18
  38. package/react.d.ts +4 -4
  39. package/react.js +619 -619
  40. package/react.js.map +1 -1
  41. package/react.umd.js +1 -1
  42. package/react.umd.js.map +1 -1
  43. package/style.css +1 -1
  44. package/svelte/FeatureItem.svelte +1 -1
  45. package/svelte/FeatureItem.svelte.d.ts +2 -2
  46. package/svelte/GeocodingControl.svelte +31 -32
  47. package/svelte/GeocodingControl.svelte.d.ts +26 -13
  48. package/svelte/MapLibreBasedGeocodingControl.d.ts +2616 -27
  49. package/svelte/MapLibreBasedGeocodingControl.js +120 -17
  50. package/svelte/leaflet-controller.d.ts +1 -1
  51. package/svelte/leaflet-controller.js +4 -1
  52. package/svelte/leaflet.d.ts +26 -4
  53. package/svelte/leaflet.js +17 -19
  54. package/svelte/maplibregl-controller.d.ts +1 -1
  55. package/svelte/maplibregl-controller.js +45 -36
  56. package/svelte/maplibregl.d.ts +2594 -9
  57. package/svelte/maplibregl.js +11 -3
  58. package/svelte/maptilersdk.d.ts +2594 -9
  59. package/svelte/maptilersdk.js +11 -3
  60. package/svelte/openlayers-controller.d.ts +1 -1
  61. package/svelte/openlayers-controller.js +4 -1
  62. package/svelte/openlayers.d.ts +21 -0
  63. package/svelte/openlayers.js +30 -45
  64. package/svelte/react.d.ts +4 -4
  65. package/svelte/react.js +5 -5
  66. package/svelte/types.d.ts +84 -35
  67. package/svelte/vanilla.d.ts +14 -1
  68. package/svelte/vanilla.js +31 -8
  69. package/types.d.ts +84 -35
  70. package/vanilla.d.ts +14 -1
  71. package/vanilla.js +929 -901
  72. package/vanilla.js.map +1 -1
  73. package/vanilla.umd.js +1 -1
  74. package/vanilla.umd.js.map +1 -1
package/react.js CHANGED
@@ -17,29 +17,29 @@ function Rt(i) {
17
17
  function ct() {
18
18
  return /* @__PURE__ */ Object.create(null);
19
19
  }
20
- function ae(i) {
20
+ function re(i) {
21
21
  i.forEach(Rt);
22
22
  }
23
- function Ot(i) {
23
+ function zt(i) {
24
24
  return typeof i == "function";
25
25
  }
26
- function he(i, e) {
26
+ function me(i, e) {
27
27
  return i != i ? e == e : i !== e || i && typeof i == "object" || typeof i == "function";
28
28
  }
29
- let Ae;
30
- function x(i, e) {
31
- return i === e ? !0 : (Ae || (Ae = document.createElement("a")), Ae.href = e, i === Ae.href);
29
+ let Ie;
30
+ function K(i, e) {
31
+ return i === e ? !0 : (Ie || (Ie = document.createElement("a")), Ie.href = e, i === Ie.href);
32
32
  }
33
33
  function di(i) {
34
34
  return Object.keys(i).length === 0;
35
35
  }
36
36
  function fi(i, e, t, n) {
37
37
  if (i) {
38
- const o = Dt(i, e, t, n);
38
+ const o = Ot(i, e, t, n);
39
39
  return i[0](o);
40
40
  }
41
41
  }
42
- function Dt(i, e, t, n) {
42
+ function Ot(i, e, t, n) {
43
43
  return i[1] && n ? ci(t.ctx.slice(), i[1](n(e))) : t.ctx;
44
44
  }
45
45
  function mi(i, e, t, n) {
@@ -59,11 +59,11 @@ function mi(i, e, t, n) {
59
59
  }
60
60
  function gi(i, e, t, n, o, u) {
61
61
  if (o) {
62
- const a = Dt(e, t, n, u);
62
+ const a = Ot(e, t, n, u);
63
63
  i.p(a, o);
64
64
  }
65
65
  }
66
- function hi(i) {
66
+ function bi(i) {
67
67
  if (i.ctx.length > 32) {
68
68
  const e = [], t = i.ctx.length / 32;
69
69
  for (let n = 0; n < t; n++)
@@ -75,31 +75,31 @@ function hi(i) {
75
75
  function dt(i) {
76
76
  return i ?? "";
77
77
  }
78
- function T(i, e) {
78
+ function M(i, e) {
79
79
  i.appendChild(e);
80
80
  }
81
81
  function B(i, e, t) {
82
82
  i.insertBefore(e, t || null);
83
83
  }
84
- function U(i) {
84
+ function D(i) {
85
85
  i.parentNode && i.parentNode.removeChild(i);
86
86
  }
87
- function O(i) {
87
+ function W(i) {
88
88
  return document.createElement(i);
89
89
  }
90
- function re(i) {
90
+ function te(i) {
91
91
  return document.createElementNS("http://www.w3.org/2000/svg", i);
92
92
  }
93
- function ce(i) {
93
+ function ae(i) {
94
94
  return document.createTextNode(i);
95
95
  }
96
96
  function J() {
97
- return ce(" ");
97
+ return ae(" ");
98
98
  }
99
- function bi() {
100
- return ce("");
99
+ function hi() {
100
+ return ae("");
101
101
  }
102
- function K(i, e, t, n) {
102
+ function V(i, e, t, n) {
103
103
  return i.addEventListener(e, t, n), () => i.removeEventListener(e, t, n);
104
104
  }
105
105
  function vi(i) {
@@ -120,7 +120,7 @@ function ke(i, e) {
120
120
  function ft(i, e) {
121
121
  i.value = e ?? "";
122
122
  }
123
- function ue(i, e, t) {
123
+ function se(i, e, t) {
124
124
  i.classList.toggle(e, !!t);
125
125
  }
126
126
  function _i(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
@@ -130,15 +130,15 @@ let Ce;
130
130
  function Te(i) {
131
131
  Ce = i;
132
132
  }
133
- function Ut() {
133
+ function Dt() {
134
134
  if (!Ce) throw new Error("Function called outside component initialization");
135
135
  return Ce;
136
136
  }
137
137
  function yi(i) {
138
- Ut().$$.on_destroy.push(i);
138
+ Dt().$$.on_destroy.push(i);
139
139
  }
140
140
  function wi() {
141
- const i = Ut();
141
+ const i = Dt();
142
142
  return (e, t, { cancelable: n = !1 } = {}) => {
143
143
  const o = i.$$.callbacks[e];
144
144
  if (o) {
@@ -159,78 +159,78 @@ function mt(i, e) {
159
159
  const t = i.$$.callbacks[e.type];
160
160
  t && t.slice().forEach((n) => n.call(this, e));
161
161
  }
162
- const Ee = [], tt = [];
163
- let Se = [];
162
+ const we = [], tt = [];
163
+ let Ee = [];
164
164
  const gt = [], Ei = /* @__PURE__ */ Promise.resolve();
165
165
  let it = !1;
166
166
  function Si() {
167
- it || (it = !0, Ei.then(It));
167
+ it || (it = !0, Ei.then(Ut));
168
168
  }
169
169
  function nt(i) {
170
- Se.push(i);
170
+ Ee.push(i);
171
171
  }
172
172
  const et = /* @__PURE__ */ new Set();
173
- let we = 0;
174
- function It() {
175
- if (we !== 0)
173
+ let ye = 0;
174
+ function Ut() {
175
+ if (ye !== 0)
176
176
  return;
177
177
  const i = Ce;
178
178
  do {
179
179
  try {
180
- for (; we < Ee.length; ) {
181
- const e = Ee[we];
182
- we++, Te(e), pi(e.$$);
180
+ for (; ye < we.length; ) {
181
+ const e = we[ye];
182
+ ye++, Te(e), pi(e.$$);
183
183
  }
184
184
  } catch (e) {
185
- throw Ee.length = 0, we = 0, e;
185
+ throw we.length = 0, ye = 0, e;
186
186
  }
187
- for (Te(null), Ee.length = 0, we = 0; tt.length; ) tt.pop()();
188
- for (let e = 0; e < Se.length; e += 1) {
189
- const t = Se[e];
187
+ for (Te(null), we.length = 0, ye = 0; tt.length; ) tt.pop()();
188
+ for (let e = 0; e < Ee.length; e += 1) {
189
+ const t = Ee[e];
190
190
  et.has(t) || (et.add(t), t());
191
191
  }
192
- Se.length = 0;
193
- } while (Ee.length);
192
+ Ee.length = 0;
193
+ } while (we.length);
194
194
  for (; gt.length; )
195
195
  gt.pop()();
196
196
  it = !1, et.clear(), Te(i);
197
197
  }
198
198
  function pi(i) {
199
199
  if (i.fragment !== null) {
200
- i.update(), ae(i.before_update);
200
+ i.update(), re(i.before_update);
201
201
  const e = i.dirty;
202
202
  i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(nt);
203
203
  }
204
204
  }
205
205
  function Ni(i) {
206
206
  const e = [], t = [];
207
- Se.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), Se = e;
207
+ Ee.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), Ee = e;
208
208
  }
209
- const Be = /* @__PURE__ */ new Set();
210
- let ge;
211
- function Fe() {
212
- ge = {
209
+ const Ae = /* @__PURE__ */ new Set();
210
+ let fe;
211
+ function Be() {
212
+ fe = {
213
213
  r: 0,
214
214
  c: [],
215
- p: ge
215
+ p: fe
216
216
  // parent group
217
217
  };
218
218
  }
219
- function ze() {
220
- ge.r || ae(ge.c), ge = ge.p;
219
+ function Fe() {
220
+ fe.r || re(fe.c), fe = fe.p;
221
221
  }
222
- function z(i, e) {
223
- i && i.i && (Be.delete(i), i.i(e));
222
+ function F(i, e) {
223
+ i && i.i && (Ae.delete(i), i.i(e));
224
224
  }
225
225
  function Q(i, e, t, n) {
226
226
  if (i && i.o) {
227
- if (Be.has(i)) return;
228
- Be.add(i), ge.c.push(() => {
229
- Be.delete(i), n && (t && i.d(1), n());
227
+ if (Ae.has(i)) return;
228
+ Ae.add(i), fe.c.push(() => {
229
+ Ae.delete(i), n && (t && i.d(1), n());
230
230
  }), i.o(e);
231
231
  } else n && n();
232
232
  }
233
- function ht(i) {
233
+ function bt(i) {
234
234
  return (i == null ? void 0 : i.length) !== void 0 ? i : Array.from(i);
235
235
  }
236
236
  function Mi(i, e) {
@@ -238,50 +238,50 @@ function Mi(i, e) {
238
238
  e.delete(i.key);
239
239
  });
240
240
  }
241
- function Ti(i, e, t, n, o, u, a, r, d, c, f, h) {
242
- let v = i.length, _ = u.length, w = v;
243
- const W = {};
244
- for (; w--; ) W[i[w].key] = w;
245
- const y = [], E = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), R = [];
246
- for (w = _; w--; ) {
247
- const g = h(o, u, w), m = t(g);
248
- let k = a.get(m);
249
- k ? R.push(() => k.p(g, e)) : (k = c(m, g), k.c()), E.set(m, y[w] = k), m in W && C.set(m, Math.abs(w - W[m]));
241
+ function Ti(i, e, t, n, o, u, a, r, f, c, m, v) {
242
+ let h = i.length, y = u.length, _ = h;
243
+ const R = {};
244
+ for (; _--; ) R[i[_].key] = _;
245
+ const L = [], E = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), k = [];
246
+ for (_ = y; _--; ) {
247
+ const d = v(o, u, _), g = t(d);
248
+ let T = a.get(g);
249
+ T ? k.push(() => T.p(d, e)) : (T = c(g, d), T.c()), E.set(g, L[_] = T), g in R && C.set(g, Math.abs(_ - R[g]));
250
250
  }
251
- const p = /* @__PURE__ */ new Set(), q = /* @__PURE__ */ new Set();
252
- function b(g) {
253
- z(g, 1), g.m(r, f), a.set(g.key, g), f = g.first, _--;
251
+ const p = /* @__PURE__ */ new Set(), H = /* @__PURE__ */ new Set();
252
+ function z(d) {
253
+ F(d, 1), d.m(r, m), a.set(d.key, d), m = d.first, y--;
254
254
  }
255
- for (; v && _; ) {
256
- const g = y[_ - 1], m = i[v - 1], k = g.key, H = m.key;
257
- g === m ? (f = g.first, v--, _--) : E.has(H) ? !a.has(k) || p.has(k) ? b(g) : q.has(H) ? v-- : C.get(k) > C.get(H) ? (q.add(k), b(g)) : (p.add(H), v--) : (d(m, a), v--);
255
+ for (; h && y; ) {
256
+ const d = L[y - 1], g = i[h - 1], T = d.key, Z = g.key;
257
+ d === g ? (m = d.first, h--, y--) : E.has(Z) ? !a.has(T) || p.has(T) ? z(d) : H.has(Z) ? h-- : C.get(T) > C.get(Z) ? (H.add(T), z(d)) : (p.add(Z), h--) : (f(g, a), h--);
258
258
  }
259
- for (; v--; ) {
260
- const g = i[v];
261
- E.has(g.key) || d(g, a);
259
+ for (; h--; ) {
260
+ const d = i[h];
261
+ E.has(d.key) || f(d, a);
262
262
  }
263
- for (; _; ) b(y[_ - 1]);
264
- return ae(R), y;
263
+ for (; y; ) z(L[y - 1]);
264
+ return re(k), L;
265
265
  }
266
- function de(i) {
266
+ function le(i) {
267
267
  i && i.c();
268
268
  }
269
- function oe(i, e, t) {
269
+ function ie(i, e, t) {
270
270
  const { fragment: n, after_update: o } = i.$$;
271
271
  n && n.m(e, t), nt(() => {
272
- const u = i.$$.on_mount.map(Rt).filter(Ot);
273
- i.$$.on_destroy ? i.$$.on_destroy.push(...u) : ae(u), i.$$.on_mount = [];
272
+ const u = i.$$.on_mount.map(Rt).filter(zt);
273
+ i.$$.on_destroy ? i.$$.on_destroy.push(...u) : re(u), i.$$.on_mount = [];
274
274
  }), o.forEach(nt);
275
275
  }
276
- function se(i, e) {
276
+ function ne(i, e) {
277
277
  const t = i.$$;
278
- t.fragment !== null && (Ni(t.after_update), ae(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
278
+ t.fragment !== null && (Ni(t.after_update), re(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
279
279
  }
280
280
  function ki(i, e) {
281
- i.$$.dirty[0] === -1 && (Ee.push(i), Si(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
281
+ i.$$.dirty[0] === -1 && (we.push(i), Si(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
282
282
  }
283
- function be(i, e, t, n, o, u, a = null, r = [-1]) {
284
- const d = Ce;
283
+ function ge(i, e, t, n, o, u, a = null, r = [-1]) {
284
+ const f = Ce;
285
285
  Te(i);
286
286
  const c = i.$$ = {
287
287
  fragment: null,
@@ -297,29 +297,29 @@ function be(i, e, t, n, o, u, a = null, r = [-1]) {
297
297
  on_disconnect: [],
298
298
  before_update: [],
299
299
  after_update: [],
300
- context: new Map(e.context || (d ? d.$$.context : [])),
300
+ context: new Map(e.context || (f ? f.$$.context : [])),
301
301
  // everything else
302
302
  callbacks: ct(),
303
303
  dirty: r,
304
304
  skip_bound: !1,
305
- root: e.target || d.$$.root
305
+ root: e.target || f.$$.root
306
306
  };
307
307
  a && a(c.root);
308
- let f = !1;
309
- if (c.ctx = t ? t(i, e.props || {}, (h, v, ..._) => {
310
- const w = _.length ? _[0] : v;
311
- return c.ctx && o(c.ctx[h], c.ctx[h] = w) && (!c.skip_bound && c.bound[h] && c.bound[h](w), f && ki(i, h)), v;
312
- }) : [], c.update(), f = !0, ae(c.before_update), c.fragment = n ? n(c.ctx) : !1, e.target) {
308
+ let m = !1;
309
+ if (c.ctx = t ? t(i, e.props || {}, (v, h, ...y) => {
310
+ const _ = y.length ? y[0] : h;
311
+ return c.ctx && o(c.ctx[v], c.ctx[v] = _) && (!c.skip_bound && c.bound[v] && c.bound[v](_), m && ki(i, v)), h;
312
+ }) : [], c.update(), m = !0, re(c.before_update), c.fragment = n ? n(c.ctx) : !1, e.target) {
313
313
  if (e.hydrate) {
314
- const h = Li(e.target);
315
- c.fragment && c.fragment.l(h), h.forEach(U);
314
+ const v = Li(e.target);
315
+ c.fragment && c.fragment.l(v), v.forEach(D);
316
316
  } else
317
317
  c.fragment && c.fragment.c();
318
- e.intro && z(i.$$.fragment), oe(i, e.target, e.anchor), It();
318
+ e.intro && F(i.$$.fragment), ie(i, e.target, e.anchor), Ut();
319
319
  }
320
- Te(d);
320
+ Te(f);
321
321
  }
322
- class ve {
322
+ class be {
323
323
  constructor() {
324
324
  /**
325
325
  * ### PRIVATE API
@@ -340,7 +340,7 @@ class ve {
340
340
  }
341
341
  /** @returns {void} */
342
342
  $destroy() {
343
- se(this, 1), this.$destroy = A;
343
+ ne(this, 1), this.$destroy = A;
344
344
  }
345
345
  /**
346
346
  * @template {Extract<keyof Events, string>} K
@@ -349,7 +349,7 @@ class ve {
349
349
  * @returns {() => void}
350
350
  */
351
351
  $on(e, t) {
352
- if (!Ot(t))
352
+ if (!zt(t))
353
353
  return A;
354
354
  const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
355
355
  return n.push(t), () => {
@@ -371,51 +371,51 @@ function Wi(i) {
371
371
  let e, t;
372
372
  return {
373
373
  c() {
374
- e = re("svg"), t = re("path"), l(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"), l(e, "viewBox", "0 0 14 14"), l(e, "width", "13"), l(e, "height", "13"), l(e, "class", "svelte-en2qvf");
374
+ e = te("svg"), t = te("path"), l(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"), l(e, "viewBox", "0 0 14 14"), l(e, "width", "13"), l(e, "height", "13"), l(e, "class", "svelte-en2qvf");
375
375
  },
376
376
  m(n, o) {
377
- B(n, e, o), T(e, t);
377
+ B(n, e, o), M(e, t);
378
378
  },
379
379
  p: A,
380
380
  i: A,
381
381
  o: A,
382
382
  d(n) {
383
- n && U(e);
383
+ n && D(e);
384
384
  }
385
385
  };
386
386
  }
387
- class At extends ve {
387
+ class It extends be {
388
388
  constructor(e) {
389
- super(), be(this, e, null, Wi, he, {});
389
+ super(), ge(this, e, null, Wi, me, {});
390
390
  }
391
391
  }
392
392
  function Ri(i) {
393
393
  let e, t;
394
394
  return {
395
395
  c() {
396
- e = re("svg"), t = re("path"), l(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"), l(e, "viewBox", "0 0 30 30"), l(e, "fill", "none"), l(e, "xmlns", "http://www.w3.org/2000/svg"), l(e, "class", "svelte-d2loi5");
396
+ e = te("svg"), t = te("path"), l(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"), l(e, "viewBox", "0 0 30 30"), l(e, "fill", "none"), l(e, "xmlns", "http://www.w3.org/2000/svg"), l(e, "class", "svelte-d2loi5");
397
397
  },
398
398
  m(n, o) {
399
- B(n, e, o), T(e, t);
399
+ B(n, e, o), M(e, t);
400
400
  },
401
401
  p: A,
402
402
  i: A,
403
403
  o: A,
404
404
  d(n) {
405
- n && U(e);
405
+ n && D(e);
406
406
  }
407
407
  };
408
408
  }
409
- class Bt extends ve {
409
+ class At extends be {
410
410
  constructor(e) {
411
- super(), be(this, e, null, Ri, he, {});
411
+ super(), ge(this, e, null, Ri, me, {});
412
412
  }
413
413
  }
414
- function Oi(i) {
414
+ function zi(i) {
415
415
  let e, t;
416
416
  return {
417
417
  c() {
418
- e = O("img"), x(e.src, t = /*iconsBaseUrl*/
418
+ e = W("img"), K(e.src, t = /*iconsBaseUrl*/
419
419
  i[3] + "area.svg") || l(e, "src", t), l(
420
420
  e,
421
421
  "alt",
@@ -428,7 +428,7 @@ function Oi(i) {
428
428
  },
429
429
  p(n, o) {
430
430
  o & /*iconsBaseUrl*/
431
- 8 && !x(e.src, t = /*iconsBaseUrl*/
431
+ 8 && !K(e.src, t = /*iconsBaseUrl*/
432
432
  n[3] + "area.svg") && l(e, "src", t), o & /*placeType*/
433
433
  64 && l(
434
434
  e,
@@ -438,15 +438,15 @@ function Oi(i) {
438
438
  );
439
439
  },
440
440
  d(n) {
441
- n && U(e);
441
+ n && D(e);
442
442
  }
443
443
  };
444
444
  }
445
- function Di(i) {
445
+ function Oi(i) {
446
446
  let e, t;
447
447
  return {
448
448
  c() {
449
- e = O("img"), x(e.src, t = /*iconsBaseUrl*/
449
+ e = W("img"), K(e.src, t = /*iconsBaseUrl*/
450
450
  i[3] + "reverse.svg") || l(e, "src", t), l(
451
451
  e,
452
452
  "alt",
@@ -459,7 +459,7 @@ function Di(i) {
459
459
  },
460
460
  p(n, o) {
461
461
  o & /*iconsBaseUrl*/
462
- 8 && !x(e.src, t = /*iconsBaseUrl*/
462
+ 8 && !K(e.src, t = /*iconsBaseUrl*/
463
463
  n[3] + "reverse.svg") && l(e, "src", t), o & /*placeType*/
464
464
  64 && l(
465
465
  e,
@@ -469,15 +469,15 @@ function Di(i) {
469
469
  );
470
470
  },
471
471
  d(n) {
472
- n && U(e);
472
+ n && D(e);
473
473
  }
474
474
  };
475
475
  }
476
- function Ui(i) {
476
+ function Di(i) {
477
477
  let e, t;
478
478
  return {
479
479
  c() {
480
- e = O("img"), x(e.src, t = /*iconsBaseUrl*/
480
+ e = W("img"), K(e.src, t = /*iconsBaseUrl*/
481
481
  i[3] + "poi.svg") || l(e, "src", t), l(
482
482
  e,
483
483
  "alt",
@@ -490,7 +490,7 @@ function Ui(i) {
490
490
  },
491
491
  p(n, o) {
492
492
  o & /*iconsBaseUrl*/
493
- 8 && !x(e.src, t = /*iconsBaseUrl*/
493
+ 8 && !K(e.src, t = /*iconsBaseUrl*/
494
494
  n[3] + "poi.svg") && l(e, "src", t), o & /*placeType*/
495
495
  64 && l(
496
496
  e,
@@ -500,15 +500,15 @@ function Ui(i) {
500
500
  );
501
501
  },
502
502
  d(n) {
503
- n && U(e);
503
+ n && D(e);
504
504
  }
505
505
  };
506
506
  }
507
- function Ii(i) {
507
+ function Ui(i) {
508
508
  let e, t;
509
509
  return {
510
510
  c() {
511
- e = O("img"), x(e.src, t = /*iconsBaseUrl*/
511
+ e = W("img"), K(e.src, t = /*iconsBaseUrl*/
512
512
  i[3] + "postal_code.svg") || l(e, "src", t), l(
513
513
  e,
514
514
  "alt",
@@ -521,7 +521,7 @@ function Ii(i) {
521
521
  },
522
522
  p(n, o) {
523
523
  o & /*iconsBaseUrl*/
524
- 8 && !x(e.src, t = /*iconsBaseUrl*/
524
+ 8 && !K(e.src, t = /*iconsBaseUrl*/
525
525
  n[3] + "postal_code.svg") && l(e, "src", t), o & /*placeType*/
526
526
  64 && l(
527
527
  e,
@@ -531,15 +531,15 @@ function Ii(i) {
531
531
  );
532
532
  },
533
533
  d(n) {
534
- n && U(e);
534
+ n && D(e);
535
535
  }
536
536
  };
537
537
  }
538
- function Ai(i) {
538
+ function Ii(i) {
539
539
  let e, t;
540
540
  return {
541
541
  c() {
542
- e = O("img"), x(e.src, t = /*iconsBaseUrl*/
542
+ e = W("img"), K(e.src, t = /*iconsBaseUrl*/
543
543
  i[3] + "street.svg") || l(e, "src", t), l(
544
544
  e,
545
545
  "alt",
@@ -552,7 +552,7 @@ function Ai(i) {
552
552
  },
553
553
  p(n, o) {
554
554
  o & /*iconsBaseUrl*/
555
- 8 && !x(e.src, t = /*iconsBaseUrl*/
555
+ 8 && !K(e.src, t = /*iconsBaseUrl*/
556
556
  n[3] + "street.svg") && l(e, "src", t), o & /*placeType*/
557
557
  64 && l(
558
558
  e,
@@ -562,15 +562,15 @@ function Ai(i) {
562
562
  );
563
563
  },
564
564
  d(n) {
565
- n && U(e);
565
+ n && D(e);
566
566
  }
567
567
  };
568
568
  }
569
- function Bi(i) {
569
+ function Ai(i) {
570
570
  let e, t;
571
571
  return {
572
572
  c() {
573
- e = O("img"), x(e.src, t = /*iconsBaseUrl*/
573
+ e = W("img"), K(e.src, t = /*iconsBaseUrl*/
574
574
  i[3] + "road.svg") || l(e, "src", t), l(
575
575
  e,
576
576
  "alt",
@@ -583,7 +583,7 @@ function Bi(i) {
583
583
  },
584
584
  p(n, o) {
585
585
  o & /*iconsBaseUrl*/
586
- 8 && !x(e.src, t = /*iconsBaseUrl*/
586
+ 8 && !K(e.src, t = /*iconsBaseUrl*/
587
587
  n[3] + "road.svg") && l(e, "src", t), o & /*placeType*/
588
588
  64 && l(
589
589
  e,
@@ -593,15 +593,15 @@ function Bi(i) {
593
593
  );
594
594
  },
595
595
  d(n) {
596
- n && U(e);
596
+ n && D(e);
597
597
  }
598
598
  };
599
599
  }
600
- function Fi(i) {
600
+ function Bi(i) {
601
601
  let e, t;
602
602
  return {
603
603
  c() {
604
- e = O("img"), x(e.src, t = /*iconsBaseUrl*/
604
+ e = W("img"), K(e.src, t = /*iconsBaseUrl*/
605
605
  i[3] + "housenumber.svg") || l(e, "src", t), l(
606
606
  e,
607
607
  "alt",
@@ -614,7 +614,7 @@ function Fi(i) {
614
614
  },
615
615
  p(n, o) {
616
616
  o & /*iconsBaseUrl*/
617
- 8 && !x(e.src, t = /*iconsBaseUrl*/
617
+ 8 && !K(e.src, t = /*iconsBaseUrl*/
618
618
  n[3] + "housenumber.svg") && l(e, "src", t), o & /*placeType*/
619
619
  64 && l(
620
620
  e,
@@ -624,15 +624,15 @@ function Fi(i) {
624
624
  );
625
625
  },
626
626
  d(n) {
627
- n && U(e);
627
+ n && D(e);
628
628
  }
629
629
  };
630
630
  }
631
- function zi(i) {
631
+ function Fi(i) {
632
632
  let e, t, n, o;
633
633
  return {
634
634
  c() {
635
- e = O("img"), x(e.src, t = /*imageUrl*/
635
+ e = W("img"), K(e.src, t = /*imageUrl*/
636
636
  i[5]) || l(e, "src", t), l(
637
637
  e,
638
638
  "alt",
@@ -641,7 +641,7 @@ function zi(i) {
641
641
  ), l(e, "class", "svelte-ltkwvy");
642
642
  },
643
643
  m(u, a) {
644
- B(u, e, a), n || (o = K(
644
+ B(u, e, a), n || (o = V(
645
645
  e,
646
646
  "error",
647
647
  /*error_handler*/
@@ -650,7 +650,7 @@ function zi(i) {
650
650
  },
651
651
  p(u, a) {
652
652
  a & /*imageUrl*/
653
- 32 && !x(e.src, t = /*imageUrl*/
653
+ 32 && !K(e.src, t = /*imageUrl*/
654
654
  u[5]) && l(e, "src", t), a & /*category*/
655
655
  16 && l(
656
656
  e,
@@ -660,21 +660,21 @@ function zi(i) {
660
660
  );
661
661
  },
662
662
  d(u) {
663
- u && U(e), n = !1, o();
663
+ u && D(e), n = !1, o();
664
664
  }
665
665
  };
666
666
  }
667
- function bt(i) {
667
+ function ht(i) {
668
668
  let e, t;
669
669
  return {
670
670
  c() {
671
- e = O("span"), t = ce(
671
+ e = W("span"), t = ae(
672
672
  /*placeType*/
673
673
  i[6]
674
674
  ), l(e, "class", "secondary svelte-ltkwvy");
675
675
  },
676
676
  m(n, o) {
677
- B(n, e, o), T(e, t);
677
+ B(n, e, o), M(e, t);
678
678
  },
679
679
  p(n, o) {
680
680
  o & /*placeType*/
@@ -685,12 +685,12 @@ function bt(i) {
685
685
  );
686
686
  },
687
687
  d(n) {
688
- n && U(e);
688
+ n && D(e);
689
689
  }
690
690
  };
691
691
  }
692
692
  function Hi(i) {
693
- let e, t, n, o, u, a, r, d, c, f = (
693
+ let e, t, n, o, u, a, r, f, c, m = (
694
694
  /*isReverse*/
695
695
  (i[7] ? (
696
696
  /*feature*/
@@ -699,10 +699,10 @@ function Hi(i) {
699
699
  /*feature*/
700
700
  i[0].place_name.replace(/,.*/, "")
701
701
  )) + ""
702
- ), h, v, _ = (
702
+ ), v, h, y = (
703
703
  /*showPlaceType*/
704
704
  i[2] === "always" || /*showPlaceType*/
705
- i[2] && !/*feature*/
705
+ i[2] !== "never" && !/*feature*/
706
706
  i[0].address && !/*feature*/
707
707
  i[0].id.startsWith("road.") && !/*feature*/
708
708
  i[0].id.startsWith("address.") && !/*feature*/
@@ -710,55 +710,55 @@ function Hi(i) {
710
710
  i[0].id.startsWith("poi.") || !/*imageUrl*/
711
711
  i[5]) && !/*isReverse*/
712
712
  i[7]
713
- ), w, W, y = (
713
+ ), _, R, L = (
714
714
  /*isReverse*/
715
715
  (i[7] ? "" : (
716
716
  /*feature*/
717
717
  i[0].place_name.replace(/[^,]*,?\s*/, "")
718
718
  )) + ""
719
- ), E, C, R;
720
- function p(m, k) {
721
- return k & /*feature*/
722
- 1 && (t = null), k & /*feature*/
723
- 1 && (n = null), k & /*feature*/
724
- 1 && (o = null), k & /*feature*/
719
+ ), E, C, k;
720
+ function p(g, T) {
721
+ return T & /*feature*/
722
+ 1 && (t = null), T & /*feature*/
723
+ 1 && (n = null), T & /*feature*/
724
+ 1 && (o = null), T & /*feature*/
725
725
  1 && (u = null), /*imageUrl*/
726
- m[5] ? zi : (
726
+ g[5] ? Fi : (
727
727
  /*feature*/
728
- m[0].address ? Fi : (t == null && (t = !!/*feature*/
729
- m[0].id.startsWith("road.")), t ? Bi : (n == null && (n = !!/*feature*/
730
- m[0].id.startsWith("address.")), n ? Ai : (o == null && (o = !!/*feature*/
731
- m[0].id.startsWith("postal_code.")), o ? Ii : (u == null && (u = !!/*feature*/
732
- m[0].id.startsWith("poi.")), u ? Ui : (
728
+ g[0].address ? Bi : (t == null && (t = !!/*feature*/
729
+ g[0].id.startsWith("road.")), t ? Ai : (n == null && (n = !!/*feature*/
730
+ g[0].id.startsWith("address.")), n ? Ii : (o == null && (o = !!/*feature*/
731
+ g[0].id.startsWith("postal_code.")), o ? Ui : (u == null && (u = !!/*feature*/
732
+ g[0].id.startsWith("poi.")), u ? Di : (
733
733
  /*isReverse*/
734
- m[7] ? Di : Oi
734
+ g[7] ? Oi : zi
735
735
  )))))
736
736
  );
737
737
  }
738
- let q = p(i, -1), b = q(i), g = _ && bt(i);
738
+ let H = p(i, -1), z = H(i), d = y && ht(i);
739
739
  return {
740
740
  c() {
741
- e = O("li"), b.c(), a = J(), r = O("span"), d = O("span"), c = O("span"), h = ce(f), v = J(), g && g.c(), w = J(), W = O("span"), E = ce(y), l(c, "class", "primary svelte-ltkwvy"), l(d, "class", "svelte-ltkwvy"), l(W, "class", "line2 svelte-ltkwvy"), l(r, "class", "texts svelte-ltkwvy"), l(e, "tabindex", "0"), l(
741
+ e = W("li"), z.c(), a = J(), r = W("span"), f = W("span"), c = W("span"), v = ae(m), h = J(), d && d.c(), _ = J(), R = W("span"), E = ae(L), l(c, "class", "primary svelte-ltkwvy"), l(f, "class", "svelte-ltkwvy"), l(R, "class", "line2 svelte-ltkwvy"), l(r, "class", "texts svelte-ltkwvy"), l(e, "tabindex", "0"), l(
742
742
  e,
743
743
  "data-selected",
744
744
  /*selected*/
745
745
  i[1]
746
- ), l(e, "class", "svelte-ltkwvy"), ue(
746
+ ), l(e, "class", "svelte-ltkwvy"), se(
747
747
  e,
748
748
  "selected",
749
749
  /*selected*/
750
750
  i[1]
751
751
  );
752
752
  },
753
- m(m, k) {
754
- B(m, e, k), b.m(e, null), T(e, a), T(e, r), T(r, d), T(d, c), T(c, h), T(d, v), g && g.m(d, null), T(r, w), T(r, W), T(W, E), C || (R = [
755
- K(
753
+ m(g, T) {
754
+ B(g, e, T), z.m(e, null), M(e, a), M(e, r), M(r, f), M(f, c), M(c, v), M(f, h), d && d.m(f, null), M(r, _), M(r, R), M(R, E), C || (k = [
755
+ V(
756
756
  e,
757
757
  "mouseenter",
758
758
  /*mouseenter_handler*/
759
759
  i[12]
760
760
  ),
761
- K(
761
+ V(
762
762
  e,
763
763
  "focus",
764
764
  /*focus_handler*/
@@ -766,98 +766,98 @@ function Hi(i) {
766
766
  )
767
767
  ], C = !0);
768
768
  },
769
- p(m, [k]) {
770
- q === (q = p(m, k)) && b ? b.p(m, k) : (b.d(1), b = q(m), b && (b.c(), b.m(e, a))), k & /*feature*/
771
- 1 && f !== (f = /*isReverse*/
772
- (m[7] ? (
769
+ p(g, [T]) {
770
+ H === (H = p(g, T)) && z ? z.p(g, T) : (z.d(1), z = H(g), z && (z.c(), z.m(e, a))), T & /*feature*/
771
+ 1 && m !== (m = /*isReverse*/
772
+ (g[7] ? (
773
773
  /*feature*/
774
- m[0].place_name
774
+ g[0].place_name
775
775
  ) : (
776
776
  /*feature*/
777
- m[0].place_name.replace(/,.*/, "")
778
- )) + "") && ke(h, f), k & /*showPlaceType, feature, imageUrl*/
779
- 37 && (_ = /*showPlaceType*/
780
- m[2] === "always" || /*showPlaceType*/
781
- m[2] && !/*feature*/
782
- m[0].address && !/*feature*/
783
- m[0].id.startsWith("road.") && !/*feature*/
784
- m[0].id.startsWith("address.") && !/*feature*/
785
- m[0].id.startsWith("postal_code.") && (!/*feature*/
786
- m[0].id.startsWith("poi.") || !/*imageUrl*/
787
- m[5]) && !/*isReverse*/
788
- m[7]), _ ? g ? g.p(m, k) : (g = bt(m), g.c(), g.m(d, null)) : g && (g.d(1), g = null), k & /*feature*/
789
- 1 && y !== (y = /*isReverse*/
790
- (m[7] ? "" : (
777
+ g[0].place_name.replace(/,.*/, "")
778
+ )) + "") && ke(v, m), T & /*showPlaceType, feature, imageUrl*/
779
+ 37 && (y = /*showPlaceType*/
780
+ g[2] === "always" || /*showPlaceType*/
781
+ g[2] !== "never" && !/*feature*/
782
+ g[0].address && !/*feature*/
783
+ g[0].id.startsWith("road.") && !/*feature*/
784
+ g[0].id.startsWith("address.") && !/*feature*/
785
+ g[0].id.startsWith("postal_code.") && (!/*feature*/
786
+ g[0].id.startsWith("poi.") || !/*imageUrl*/
787
+ g[5]) && !/*isReverse*/
788
+ g[7]), y ? d ? d.p(g, T) : (d = ht(g), d.c(), d.m(f, null)) : d && (d.d(1), d = null), T & /*feature*/
789
+ 1 && L !== (L = /*isReverse*/
790
+ (g[7] ? "" : (
791
791
  /*feature*/
792
- m[0].place_name.replace(/[^,]*,?\s*/, "")
793
- )) + "") && ke(E, y), k & /*selected*/
792
+ g[0].place_name.replace(/[^,]*,?\s*/, "")
793
+ )) + "") && ke(E, L), T & /*selected*/
794
794
  2 && l(
795
795
  e,
796
796
  "data-selected",
797
797
  /*selected*/
798
- m[1]
799
- ), k & /*selected*/
800
- 2 && ue(
798
+ g[1]
799
+ ), T & /*selected*/
800
+ 2 && se(
801
801
  e,
802
802
  "selected",
803
803
  /*selected*/
804
- m[1]
804
+ g[1]
805
805
  );
806
806
  },
807
807
  i: A,
808
808
  o: A,
809
- d(m) {
810
- m && U(e), b.d(), g && g.d(), C = !1, ae(R);
809
+ d(g) {
810
+ g && D(e), z.d(), d && d.d(), C = !1, re(k);
811
811
  }
812
812
  };
813
813
  }
814
- function ji(i, e, t) {
815
- var R;
816
- let n, o, { feature: u } = e, { selected: a = !1 } = e, { showPlaceType: r } = e, { missingIconsCache: d } = e, { iconsBaseUrl: c } = e;
817
- const f = (R = u.properties) == null ? void 0 : R.categories;
818
- let h, v, _ = 0, w = u.place_type[0] === "reverse";
819
- function W() {
820
- v && d.add(v), t(10, _++, _);
814
+ function Pi(i, e, t) {
815
+ var k;
816
+ let n, o, { feature: u } = e, { selected: a = !1 } = e, { showPlaceType: r } = e, { missingIconsCache: f } = e, { iconsBaseUrl: c } = e;
817
+ const m = (k = u.properties) == null ? void 0 : k.categories;
818
+ let v, h, y = 0, _ = u.place_type[0] === "reverse";
819
+ function R() {
820
+ h && f.add(h), t(10, y++, y);
821
821
  }
822
- function y(p) {
822
+ function L(p) {
823
823
  mt.call(this, i, p);
824
824
  }
825
825
  function E(p) {
826
826
  mt.call(this, i, p);
827
827
  }
828
- const C = () => W();
828
+ const C = () => R();
829
829
  return i.$$set = (p) => {
830
- "feature" in p && t(0, u = p.feature), "selected" in p && t(1, a = p.selected), "showPlaceType" in p && t(2, r = p.showPlaceType), "missingIconsCache" in p && t(9, d = p.missingIconsCache), "iconsBaseUrl" in p && t(3, c = p.iconsBaseUrl);
830
+ "feature" in p && t(0, u = p.feature), "selected" in p && t(1, a = p.selected), "showPlaceType" in p && t(2, r = p.showPlaceType), "missingIconsCache" in p && t(9, f = p.missingIconsCache), "iconsBaseUrl" in p && t(3, c = p.iconsBaseUrl);
831
831
  }, i.$$.update = () => {
832
- var p, q, b, g;
832
+ var p, H, z, d;
833
833
  if (i.$$.dirty & /*loadIconAttempt, index, category, iconsBaseUrl, imageUrl, missingIconsCache*/
834
834
  3640)
835
835
  do
836
- t(11, n--, n), t(4, h = f == null ? void 0 : f[n]), t(5, v = h ? c + h.replace(/ /g, "_") + ".svg" : void 0);
837
- while (n > -1 && (!v || d.has(v)));
836
+ t(11, n--, n), t(4, v = m == null ? void 0 : m[n]), t(5, h = v ? c + v.replace(/ /g, "_") + ".svg" : void 0);
837
+ while (n > -1 && (!h || f.has(h)));
838
838
  i.$$.dirty & /*feature*/
839
- 1 && t(6, o = ((q = (p = u.properties) == null ? void 0 : p.categories) == null ? void 0 : q.join(", ")) ?? ((g = (b = u.properties) == null ? void 0 : b.place_type_name) == null ? void 0 : g[0]) ?? u.place_type[0]);
840
- }, t(11, n = (f == null ? void 0 : f.length) ?? 0), [
839
+ 1 && t(6, o = ((H = (p = u.properties) == null ? void 0 : p.categories) == null ? void 0 : H.join(", ")) ?? ((d = (z = u.properties) == null ? void 0 : z.place_type_name) == null ? void 0 : d[0]) ?? u.place_type[0]);
840
+ }, t(11, n = (m == null ? void 0 : m.length) ?? 0), [
841
841
  u,
842
842
  a,
843
843
  r,
844
844
  c,
845
- h,
846
845
  v,
846
+ h,
847
847
  o,
848
- w,
849
- W,
850
- d,
851
848
  _,
852
- n,
849
+ R,
850
+ f,
853
851
  y,
852
+ n,
853
+ L,
854
854
  E,
855
855
  C
856
856
  ];
857
857
  }
858
- class Pi extends ve {
858
+ class ji extends be {
859
859
  constructor(e) {
860
- super(), be(this, e, ji, Hi, he, {
860
+ super(), ge(this, e, Pi, Hi, me, {
861
861
  feature: 0,
862
862
  selected: 1,
863
863
  showPlaceType: 2,
@@ -870,7 +870,7 @@ function Zi(i) {
870
870
  let e;
871
871
  return {
872
872
  c() {
873
- e = O("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>', l(e, "class", "svelte-7cmwmc");
873
+ e = W("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>', l(e, "class", "svelte-7cmwmc");
874
874
  },
875
875
  m(t, n) {
876
876
  B(t, e, n);
@@ -879,60 +879,60 @@ function Zi(i) {
879
879
  i: A,
880
880
  o: A,
881
881
  d(t) {
882
- t && U(e);
882
+ t && D(e);
883
883
  }
884
884
  };
885
885
  }
886
- class Gi extends ve {
886
+ class Gi extends be {
887
887
  constructor(e) {
888
- super(), be(this, e, null, Zi, he, {});
888
+ super(), ge(this, e, null, Zi, me, {});
889
889
  }
890
890
  }
891
891
  function qi(i) {
892
892
  let e, t;
893
893
  return {
894
894
  c() {
895
- e = re("svg"), t = re("path"), l(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"), l(e, "viewBox", "0 0 60.006 21.412"), l(e, "width", "14"), l(e, "height", "20"), l(e, "class", "svelte-en2qvf");
895
+ e = te("svg"), t = te("path"), l(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"), l(e, "viewBox", "0 0 60.006 21.412"), l(e, "width", "14"), l(e, "height", "20"), l(e, "class", "svelte-en2qvf");
896
896
  },
897
897
  m(n, o) {
898
- B(n, e, o), T(e, t);
898
+ B(n, e, o), M(e, t);
899
899
  },
900
900
  p: A,
901
901
  i: A,
902
902
  o: A,
903
903
  d(n) {
904
- n && U(e);
904
+ n && D(e);
905
905
  }
906
906
  };
907
907
  }
908
- class Qi extends ve {
908
+ class Qi extends be {
909
909
  constructor(e) {
910
- super(), be(this, e, null, qi, he, {});
910
+ super(), ge(this, e, null, qi, me, {});
911
911
  }
912
912
  }
913
- function xi(i) {
913
+ function Ki(i) {
914
914
  let e, t, n;
915
915
  return {
916
916
  c() {
917
- e = re("svg"), t = re("circle"), n = re("path"), l(t, "cx", "4.789"), l(t, "cy", "4.787"), l(t, "r", "3.85"), l(t, "class", "svelte-1aq105l"), l(n, "d", "M12.063 12.063 7.635 7.635"), l(n, "class", "svelte-1aq105l"), l(e, "xmlns", "http://www.w3.org/2000/svg"), l(e, "width", "13"), l(e, "height", "13"), l(e, "viewBox", "0 0 13 13"), l(e, "class", "svelte-1aq105l");
917
+ e = te("svg"), t = te("circle"), n = te("path"), l(t, "cx", "4.789"), l(t, "cy", "4.787"), l(t, "r", "3.85"), l(t, "class", "svelte-1aq105l"), l(n, "d", "M12.063 12.063 7.635 7.635"), l(n, "class", "svelte-1aq105l"), l(e, "xmlns", "http://www.w3.org/2000/svg"), l(e, "width", "13"), l(e, "height", "13"), l(e, "viewBox", "0 0 13 13"), l(e, "class", "svelte-1aq105l");
918
918
  },
919
919
  m(o, u) {
920
- B(o, e, u), T(e, t), T(e, n);
920
+ B(o, e, u), M(e, t), M(e, n);
921
921
  },
922
922
  p: A,
923
923
  i: A,
924
924
  o: A,
925
925
  d(o) {
926
- o && U(e);
926
+ o && D(e);
927
927
  }
928
928
  };
929
929
  }
930
- class Ki extends ve {
930
+ class Vi extends be {
931
931
  constructor(e) {
932
- super(), be(this, e, null, xi, he, {});
932
+ super(), ge(this, e, null, Ki, me, {});
933
933
  }
934
934
  }
935
- function Vi(i, e, t) {
935
+ function xi(i, e, t) {
936
936
  const n = e[1], o = e[0], u = n - o;
937
937
  return i === n && t ? i : ((i - o) % u + u) % u + o;
938
938
  }
@@ -959,13 +959,13 @@ async function Ji(i, e, t) {
959
959
  t.signal.addEventListener("abort", () => {
960
960
  r(Error("aborted"));
961
961
  }), navigator.geolocation.getCurrentPosition(
962
- (d) => {
962
+ (f) => {
963
963
  a(
964
- [d.coords.longitude, d.coords.latitude].map((c) => c.toFixed(6)).join(",")
964
+ [f.coords.longitude, f.coords.latitude].map((c) => c.toFixed(6)).join(",")
965
965
  );
966
966
  },
967
- (d) => {
968
- r(d);
967
+ (f) => {
968
+ r(f);
969
969
  },
970
970
  o
971
971
  );
@@ -991,21 +991,21 @@ function Yi(i) {
991
991
  if (!["DMS", "DM", "DD"].includes(i))
992
992
  throw new Error("invalid format specified");
993
993
  if (this.decimalCoordinates && this.decimalCoordinates.trim()) {
994
- const e = this.decimalCoordinates.split(",").map((_) => Number(_.trim())), t = Number(e[0]), n = Number(e[1]), o = Math.abs(t), u = Math.abs(n), a = t > 0 ? "N" : "S", r = n > 0 ? "E" : "W";
995
- let d;
996
- i == "DD" && (d = `${o}° ${a}, ${u}° ${r}`);
997
- const c = Math.floor(o), f = Math.floor(u), h = (o - c) * 60, v = (u - f) * 60;
994
+ const e = this.decimalCoordinates.split(",").map((y) => Number(y.trim())), t = Number(e[0]), n = Number(e[1]), o = Math.abs(t), u = Math.abs(n), a = t > 0 ? "N" : "S", r = n > 0 ? "E" : "W";
995
+ let f;
996
+ i == "DD" && (f = `${o}° ${a}, ${u}° ${r}`);
997
+ const c = Math.floor(o), m = Math.floor(u), v = (o - c) * 60, h = (u - m) * 60;
998
998
  if (i == "DM") {
999
- let _ = St(h, 3).toFixed(3).padStart(6, "0"), w = St(v, 3).toFixed(3).padStart(6, "0");
1000
- _.endsWith(".000") && w.endsWith(".000") && (_ = _.replace(/\.000$/, ""), w = w.replace(/\.000$/, "")), d = `${c}° ${_}' ${a}, ${f}° ${w}' ${r}`;
999
+ let y = St(v, 3).toFixed(3).padStart(6, "0"), _ = St(h, 3).toFixed(3).padStart(6, "0");
1000
+ y.endsWith(".000") && _.endsWith(".000") && (y = y.replace(/\.000$/, ""), _ = _.replace(/\.000$/, "")), f = `${c}° ${y}' ${a}, ${m}° ${_}' ${r}`;
1001
1001
  }
1002
1002
  if (i == "DMS") {
1003
- const _ = Math.floor(h), w = Math.floor(v);
1004
- let W = ((h - _) * 60).toFixed(1).padStart(4, "0"), y = ((v - w) * 60).toFixed(1).padStart(4, "0");
1005
- const E = _.toString().padStart(2, "0"), C = w.toString().padStart(2, "0");
1006
- W.endsWith(".0") && y.endsWith(".0") && (W = W.replace(/\.0$/, ""), y = y.replace(/\.0$/, "")), d = `${c}° ${E}' ${W}" ${a}, ${f}° ${C}' ${y}" ${r}`;
1003
+ const y = Math.floor(v), _ = Math.floor(h);
1004
+ let R = ((v - y) * 60).toFixed(1).padStart(4, "0"), L = ((h - _) * 60).toFixed(1).padStart(4, "0");
1005
+ const E = y.toString().padStart(2, "0"), C = _.toString().padStart(2, "0");
1006
+ R.endsWith(".0") && L.endsWith(".0") && (R = R.replace(/\.0$/, ""), L = L.replace(/\.0$/, "")), f = `${c}° ${E}' ${R}" ${a}, ${m}° ${C}' ${L}" ${r}`;
1007
1007
  }
1008
- return d;
1008
+ return f;
1009
1009
  } else
1010
1010
  throw new Error("no decimal coordinates to convert");
1011
1011
  }
@@ -1015,16 +1015,16 @@ function St(i, e) {
1015
1015
  }
1016
1016
  function rt(i, e) {
1017
1017
  e || (e = 5), i = i.replace(/\s+/g, " ").trim();
1018
- let t = null, n = null, o = "", u = "", a = null, r = [], d = !1;
1018
+ let t = null, n = null, o = "", u = "", a = null, r = [], f = !1;
1019
1019
  if (Xi.test(i))
1020
1020
  throw new Error("invalid coordinate value");
1021
1021
  if (Lt.test(i))
1022
- if (r = Lt.exec(i), d = Me(r), d)
1022
+ if (r = Lt.exec(i), f = Me(r), f)
1023
1023
  t = Math.abs(r[1]) + r[2] / 60, Number(r[1]) < 0 && (t *= -1), n = Math.abs(r[3]) + r[4] / 60, Number(r[3]) < 0 && (n *= -1), a = "DM";
1024
1024
  else
1025
1025
  throw new Error("invalid coordinate format");
1026
1026
  else if (_t.test(i))
1027
- if (r = _t.exec(i), d = Me(r), d) {
1027
+ if (r = _t.exec(i), f = Me(r), f) {
1028
1028
  if (t = r[2], n = r[6], t.includes(",") && (t = t.replace(",", ".")), n.includes(",") && (n = n.replace(",", ".")), a = "DD", Number(Math.round(t)) == Number(t))
1029
1029
  throw new Error("integer only coordinate provided");
1030
1030
  if (Number(Math.round(n)) == Number(n))
@@ -1033,24 +1033,24 @@ function rt(i, e) {
1033
1033
  } else
1034
1034
  throw new Error("invalid decimal coordinate format");
1035
1035
  else if (yt.test(i))
1036
- if (r = yt.exec(i), d = Me(r), d)
1036
+ if (r = yt.exec(i), f = Me(r), f)
1037
1037
  t = Math.abs(parseInt(r[2])), r[4] && (t += r[4] / 60, a = "DM"), r[6] && (t += r[6].replace(",", ".") / 3600, a = "DMS"), parseInt(r[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(r[9])), r[11] && (n += r[11] / 60), r[13] && (n += r[13].replace(",", ".") / 3600), parseInt(r[9]) < 0 && (n = -1 * n), r[1] ? (o = r[1], u = r[8]) : r[7] && (o = r[7], u = r[14]);
1038
1038
  else
1039
1039
  throw new Error("invalid DMS coordinates format");
1040
1040
  else if (wt.test(i))
1041
- if (r = wt.exec(i), d = Me(r), d)
1041
+ if (r = wt.exec(i), f = Me(r), f)
1042
1042
  t = Math.abs(parseInt(r[2])), r[4] && (t += r[4] / 60, a = "DM"), r[6] && (t += r[6] / 3600, a = "DMS"), parseInt(r[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(r[10])), r[12] && (n += r[12] / 60), r[14] && (n += r[14] / 3600), parseInt(r[10]) < 0 && (n = -1 * n), r[1] ? (o = r[1], u = r[9]) : r[8] && (o = r[8], u = r[16]);
1043
1043
  else
1044
1044
  throw new Error("invalid DMS coordinates format");
1045
1045
  else if (Et.test(i)) {
1046
- if (r = Et.exec(i), d = Me(r), r.filter((c) => c).length <= 5)
1046
+ if (r = Et.exec(i), f = Me(r), r.filter((c) => c).length <= 5)
1047
1047
  throw new Error("invalid coordinates format");
1048
- if (d)
1048
+ if (f)
1049
1049
  t = Math.abs(parseInt(r[2])), r[4] && (t += r[4].replace(",", ".") / 60, a = "DM"), r[6] && (t += r[6].replace(",", ".") / 3600, a = "DMS"), parseInt(r[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(r[10])), r[12] && (n += r[12].replace(",", ".") / 60), r[14] && (n += r[14].replace(",", ".") / 3600), parseInt(r[10]) < 0 && (n = -1 * n), r[1] ? (o = r[1], u = r[9]) : r[8] && (o = r[8], u = r[16]);
1050
1050
  else
1051
1051
  throw new Error("invalid coordinates format");
1052
1052
  }
1053
- if (d) {
1053
+ if (f) {
1054
1054
  if (Math.abs(n) >= 180)
1055
1055
  throw new Error("invalid longitude value");
1056
1056
  if (Math.abs(t) >= 90)
@@ -1062,37 +1062,37 @@ function rt(i, e) {
1062
1062
  t.toString().includes(",") && (t = t.replace(",", ".")), n.toString().includes(",") && (n = n.replace(",", "."));
1063
1063
  let c = /S|SOUTH/i;
1064
1064
  c.test(o) && t > 0 && (t = -1 * t), c = /W|WEST/i, c.test(u) && n > 0 && (n = -1 * n);
1065
- const f = r[0].trim();
1066
- let h, v;
1067
- const _ = /[,/;\u0020]/g, w = f.match(_);
1068
- if (w == null) {
1065
+ const m = r[0].trim();
1066
+ let v, h;
1067
+ const y = /[,/;\u0020]/g, _ = m.match(y);
1068
+ if (_ == null) {
1069
1069
  const E = Math.floor(i.length / 2);
1070
- h = f.substring(0, E).trim(), v = f.substring(E).trim();
1070
+ v = m.substring(0, E).trim(), h = m.substring(E).trim();
1071
1071
  } else {
1072
1072
  let E;
1073
- w.length % 2 == 1 ? E = Math.floor(w.length / 2) : E = w.length / 2 - 1;
1073
+ _.length % 2 == 1 ? E = Math.floor(_.length / 2) : E = _.length / 2 - 1;
1074
1074
  let C = 0;
1075
1075
  if (E == 0)
1076
- C = f.indexOf(w[0]), h = f.substring(0, C).trim(), v = f.substring(C + 1).trim();
1076
+ C = m.indexOf(_[0]), v = m.substring(0, C).trim(), h = m.substring(C + 1).trim();
1077
1077
  else {
1078
- let R = 0, p = 0;
1079
- for (; R <= E; )
1080
- C = f.indexOf(w[R], p), p = C + 1, R++;
1081
- h = f.substring(0, C).trim(), v = f.substring(C + 1).trim();
1078
+ let k = 0, p = 0;
1079
+ for (; k <= E; )
1080
+ C = m.indexOf(_[k], p), p = C + 1, k++;
1081
+ v = m.substring(0, C).trim(), h = m.substring(C + 1).trim();
1082
1082
  }
1083
1083
  }
1084
- const W = h.split(".");
1085
- if (W.length == 2 && W[1] == 0 && W[1].length != 2)
1084
+ const R = v.split(".");
1085
+ if (R.length == 2 && R[1] == 0 && R[1].length != 2)
1086
1086
  throw new Error("invalid coordinates format");
1087
- const y = v.split(".");
1088
- if (y.length == 2 && y[1] == 0 && y[1].length != 2)
1087
+ const L = h.split(".");
1088
+ if (L.length == 2 && L[1] == 0 && L[1].length != 2)
1089
1089
  throw new Error("invalid coordinates format");
1090
- if (/^\d+$/.test(h) || /^\d+$/.test(v))
1090
+ if (/^\d+$/.test(v) || /^\d+$/.test(h))
1091
1091
  throw new Error("degree only coordinate/s provided");
1092
1092
  return t = Number(Number(t).toFixed(e)), n = Number(Number(n).toFixed(e)), Object.freeze({
1093
- verbatimCoordinates: f,
1094
- verbatimLatitude: h,
1095
- verbatimLongitude: v,
1093
+ verbatimCoordinates: m,
1094
+ verbatimLatitude: v,
1095
+ verbatimLongitude: h,
1096
1096
  decimalLatitude: t,
1097
1097
  decimalLongitude: n,
1098
1098
  decimalCoordinates: `${t},${n}`,
@@ -1111,11 +1111,11 @@ function Me(i) {
1111
1111
  return !1;
1112
1112
  const t = /^[-+]?\d+([\.,]\d+)?$/, n = /[eastsouthnorthwest]+/i, o = e.length / 2;
1113
1113
  for (let u = 0; u < o; u++) {
1114
- const a = e[u], r = e[u + o], d = t.test(a) && t.test(r), c = n.test(a) && n.test(r), f = a == r;
1114
+ const a = e[u], r = e[u + o], f = t.test(a) && t.test(r), c = n.test(a) && n.test(r), m = a == r;
1115
1115
  if (!(a == null && r == null)) {
1116
1116
  if (a == null || r == null)
1117
1117
  return !1;
1118
- if (d || c || f)
1118
+ if (f || c || m)
1119
1119
  continue;
1120
1120
  return !1;
1121
1121
  }
@@ -1524,19 +1524,19 @@ function Mt(i) {
1524
1524
  let e, t;
1525
1525
  return e = new Gi({}), {
1526
1526
  c() {
1527
- de(e.$$.fragment);
1527
+ le(e.$$.fragment);
1528
1528
  },
1529
1529
  m(n, o) {
1530
- oe(e, n, o), t = !0;
1530
+ ie(e, n, o), t = !0;
1531
1531
  },
1532
1532
  i(n) {
1533
- t || (z(e.$$.fragment, n), t = !0);
1533
+ t || (F(e.$$.fragment, n), t = !0);
1534
1534
  },
1535
1535
  o(n) {
1536
1536
  Q(e.$$.fragment, n), t = !1;
1537
1537
  },
1538
1538
  d(n) {
1539
- se(e, n);
1539
+ ne(e, n);
1540
1540
  }
1541
1541
  };
1542
1542
  }
@@ -1544,12 +1544,12 @@ function Tt(i) {
1544
1544
  let e, t, n, o, u;
1545
1545
  return t = new Qi({}), {
1546
1546
  c() {
1547
- e = O("button"), de(t.$$.fragment), l(e, "type", "button"), l(
1547
+ e = W("button"), le(t.$$.fragment), l(e, "type", "button"), l(
1548
1548
  e,
1549
1549
  "title",
1550
1550
  /*reverseButtonTitle*/
1551
1551
  i[9]
1552
- ), l(e, "class", "svelte-1uvos7g"), ue(
1552
+ ), l(e, "class", "svelte-bz0zu3"), se(
1553
1553
  e,
1554
1554
  "active",
1555
1555
  /*reverseActive*/
@@ -1557,7 +1557,7 @@ function Tt(i) {
1557
1557
  );
1558
1558
  },
1559
1559
  m(a, r) {
1560
- B(a, e, r), oe(t, e, null), n = !0, o || (u = K(
1560
+ B(a, e, r), ie(t, e, null), n = !0, o || (u = V(
1561
1561
  e,
1562
1562
  "click",
1563
1563
  /*click_handler_2*/
@@ -1572,7 +1572,7 @@ function Tt(i) {
1572
1572
  /*reverseButtonTitle*/
1573
1573
  a[9]
1574
1574
  ), (!n || r[0] & /*reverseActive*/
1575
- 1) && ue(
1575
+ 1) && se(
1576
1576
  e,
1577
1577
  "active",
1578
1578
  /*reverseActive*/
@@ -1580,50 +1580,50 @@ function Tt(i) {
1580
1580
  );
1581
1581
  },
1582
1582
  i(a) {
1583
- n || (z(t.$$.fragment, a), n = !0);
1583
+ n || (F(t.$$.fragment, a), n = !0);
1584
1584
  },
1585
1585
  o(a) {
1586
1586
  Q(t.$$.fragment, a), n = !1;
1587
1587
  },
1588
1588
  d(a) {
1589
- a && U(e), se(t), o = !1, u();
1589
+ a && D(e), ne(t), o = !1, u();
1590
1590
  }
1591
1591
  };
1592
1592
  }
1593
1593
  function un(i) {
1594
- let e, t = [], n = /* @__PURE__ */ new Map(), o, u, a, r = ht(
1594
+ let e, t = [], n = /* @__PURE__ */ new Map(), o, u, a, r = bt(
1595
1595
  /*listFeatures*/
1596
1596
  i[14]
1597
1597
  );
1598
- const d = (c) => (
1598
+ const f = (c) => (
1599
1599
  /*feature*/
1600
1600
  c[84].id + /*feature*/
1601
1601
  (c[84].address ? "," + /*feature*/
1602
1602
  c[84].address : "")
1603
1603
  );
1604
1604
  for (let c = 0; c < r.length; c += 1) {
1605
- let f = Nt(i, r, c), h = d(f);
1606
- n.set(h, t[c] = kt(h, f));
1605
+ let m = Nt(i, r, c), v = f(m);
1606
+ n.set(v, t[c] = kt(v, m));
1607
1607
  }
1608
1608
  return {
1609
1609
  c() {
1610
- e = O("ul");
1610
+ e = W("ul");
1611
1611
  for (let c = 0; c < t.length; c += 1)
1612
1612
  t[c].c();
1613
- l(e, "class", "svelte-1uvos7g");
1613
+ l(e, "class", "options svelte-bz0zu3");
1614
1614
  },
1615
- m(c, f) {
1616
- B(c, e, f);
1617
- for (let h = 0; h < t.length; h += 1)
1618
- t[h] && t[h].m(e, null);
1615
+ m(c, m) {
1616
+ B(c, e, m);
1617
+ for (let v = 0; v < t.length; v += 1)
1618
+ t[v] && t[v].m(e, null);
1619
1619
  o = !0, u || (a = [
1620
- K(
1620
+ V(
1621
1621
  e,
1622
1622
  "mouseleave",
1623
1623
  /*mouseleave_handler*/
1624
1624
  i[73]
1625
1625
  ),
1626
- K(
1626
+ V(
1627
1627
  e,
1628
1628
  "blur",
1629
1629
  /*blur_handler_1*/
@@ -1631,47 +1631,47 @@ function un(i) {
1631
1631
  )
1632
1632
  ], u = !0);
1633
1633
  },
1634
- p(c, f) {
1635
- f[0] & /*listFeatures, showPlaceType, selectedItemIndex, missingIconsCache, iconsBaseUrl, pick*/
1636
- 17880064 && (r = ht(
1634
+ p(c, m) {
1635
+ m[0] & /*listFeatures, showPlaceType, selectedItemIndex, missingIconsCache, iconsBaseUrl, pick*/
1636
+ 17880064 && (r = bt(
1637
1637
  /*listFeatures*/
1638
1638
  c[14]
1639
- ), Fe(), t = Ti(t, f, d, 1, c, r, n, e, Mi, kt, null, Nt), ze());
1639
+ ), Be(), t = Ti(t, m, f, 1, c, r, n, e, Mi, kt, null, Nt), Fe());
1640
1640
  },
1641
1641
  i(c) {
1642
1642
  if (!o) {
1643
- for (let f = 0; f < r.length; f += 1)
1644
- z(t[f]);
1643
+ for (let m = 0; m < r.length; m += 1)
1644
+ F(t[m]);
1645
1645
  o = !0;
1646
1646
  }
1647
1647
  },
1648
1648
  o(c) {
1649
- for (let f = 0; f < t.length; f += 1)
1650
- Q(t[f]);
1649
+ for (let m = 0; m < t.length; m += 1)
1650
+ Q(t[m]);
1651
1651
  o = !1;
1652
1652
  },
1653
1653
  d(c) {
1654
- c && U(e);
1655
- for (let f = 0; f < t.length; f += 1)
1656
- t[f].d();
1657
- u = !1, ae(a);
1654
+ c && D(e);
1655
+ for (let m = 0; m < t.length; m += 1)
1656
+ t[m].d();
1657
+ u = !1, re(a);
1658
1658
  }
1659
1659
  };
1660
1660
  }
1661
1661
  function cn(i) {
1662
1662
  let e, t, n, o, u, a;
1663
- return t = new Bt({}), {
1663
+ return t = new At({}), {
1664
1664
  c() {
1665
- e = O("div"), de(t.$$.fragment), n = J(), o = O("div"), u = ce(
1665
+ e = W("div"), le(t.$$.fragment), n = J(), o = W("div"), u = ae(
1666
1666
  /*noResultsMessage*/
1667
1667
  i[7]
1668
- ), l(o, "class", "svelte-1uvos7g"), l(e, "class", "no-results svelte-1uvos7g");
1668
+ ), l(o, "class", "svelte-bz0zu3"), l(e, "class", "no-results svelte-bz0zu3");
1669
1669
  },
1670
- m(r, d) {
1671
- B(r, e, d), oe(t, e, null), T(e, n), T(e, o), T(o, u), a = !0;
1670
+ m(r, f) {
1671
+ B(r, e, f), ie(t, e, null), M(e, n), M(e, o), M(o, u), a = !0;
1672
1672
  },
1673
- p(r, d) {
1674
- (!a || d[0] & /*noResultsMessage*/
1673
+ p(r, f) {
1674
+ (!a || f[0] & /*noResultsMessage*/
1675
1675
  128) && ke(
1676
1676
  u,
1677
1677
  /*noResultsMessage*/
@@ -1679,13 +1679,13 @@ function cn(i) {
1679
1679
  );
1680
1680
  },
1681
1681
  i(r) {
1682
- a || (z(t.$$.fragment, r), a = !0);
1682
+ a || (F(t.$$.fragment, r), a = !0);
1683
1683
  },
1684
1684
  o(r) {
1685
1685
  Q(t.$$.fragment, r), a = !1;
1686
1686
  },
1687
1687
  d(r) {
1688
- r && U(e), se(t);
1688
+ r && D(e), ne(t);
1689
1689
  }
1690
1690
  };
1691
1691
  }
@@ -1693,7 +1693,7 @@ function dn(i) {
1693
1693
  let e = "", t;
1694
1694
  return {
1695
1695
  c() {
1696
- t = ce(e);
1696
+ t = ae(e);
1697
1697
  },
1698
1698
  m(n, o) {
1699
1699
  B(n, t, o);
@@ -1702,43 +1702,43 @@ function dn(i) {
1702
1702
  i: A,
1703
1703
  o: A,
1704
1704
  d(n) {
1705
- n && U(t);
1705
+ n && D(t);
1706
1706
  }
1707
1707
  };
1708
1708
  }
1709
1709
  function fn(i) {
1710
- let e, t, n, o, u, a, r, d, c, f, h;
1711
- return t = new Bt({}), d = new At({}), {
1710
+ let e, t, n, o, u, a, r, f, c, m, v;
1711
+ return t = new At({}), f = new It({}), {
1712
1712
  c() {
1713
- e = O("div"), de(t.$$.fragment), n = J(), o = O("div"), u = ce(
1713
+ e = W("div"), le(t.$$.fragment), n = J(), o = W("div"), u = ae(
1714
1714
  /*errorMessage*/
1715
1715
  i[6]
1716
- ), a = J(), r = O("button"), de(d.$$.fragment), l(o, "class", "svelte-1uvos7g"), l(r, "class", "svelte-1uvos7g"), l(e, "class", "error svelte-1uvos7g");
1716
+ ), a = J(), r = W("button"), le(f.$$.fragment), l(o, "class", "svelte-bz0zu3"), l(r, "class", "svelte-bz0zu3"), l(e, "class", "error svelte-bz0zu3");
1717
1717
  },
1718
- m(v, _) {
1719
- B(v, e, _), oe(t, e, null), T(e, n), T(e, o), T(o, u), T(e, a), T(e, r), oe(d, r, null), c = !0, f || (h = K(
1718
+ m(h, y) {
1719
+ B(h, e, y), ie(t, e, null), M(e, n), M(e, o), M(o, u), M(e, a), M(e, r), ie(f, r, null), c = !0, m || (v = V(
1720
1720
  r,
1721
1721
  "click",
1722
1722
  /*click_handler_3*/
1723
1723
  i[70]
1724
- ), f = !0);
1724
+ ), m = !0);
1725
1725
  },
1726
- p(v, _) {
1727
- (!c || _[0] & /*errorMessage*/
1726
+ p(h, y) {
1727
+ (!c || y[0] & /*errorMessage*/
1728
1728
  64) && ke(
1729
1729
  u,
1730
1730
  /*errorMessage*/
1731
- v[6]
1731
+ h[6]
1732
1732
  );
1733
1733
  },
1734
- i(v) {
1735
- c || (z(t.$$.fragment, v), z(d.$$.fragment, v), c = !0);
1734
+ i(h) {
1735
+ c || (F(t.$$.fragment, h), F(f.$$.fragment, h), c = !0);
1736
1736
  },
1737
- o(v) {
1738
- Q(t.$$.fragment, v), Q(d.$$.fragment, v), c = !1;
1737
+ o(h) {
1738
+ Q(t.$$.fragment, h), Q(f.$$.fragment, h), c = !1;
1739
1739
  },
1740
- d(v) {
1741
- v && U(e), se(t), se(d), f = !1, h();
1740
+ d(h) {
1741
+ h && D(e), ne(t), ne(f), m = !1, v();
1742
1742
  }
1743
1743
  };
1744
1744
  }
@@ -1762,7 +1762,7 @@ function kt(i, e) {
1762
1762
  )
1763
1763
  );
1764
1764
  }
1765
- return n = new Pi({
1765
+ return n = new ji({
1766
1766
  props: {
1767
1767
  feature: (
1768
1768
  /*feature*/
@@ -1790,76 +1790,76 @@ function kt(i, e) {
1790
1790
  key: i,
1791
1791
  first: null,
1792
1792
  c() {
1793
- t = bi(), de(n.$$.fragment), this.first = t;
1793
+ t = hi(), le(n.$$.fragment), this.first = t;
1794
1794
  },
1795
- m(r, d) {
1796
- B(r, t, d), oe(n, r, d), o = !0;
1795
+ m(r, f) {
1796
+ B(r, t, f), ie(n, r, f), o = !0;
1797
1797
  },
1798
- p(r, d) {
1798
+ p(r, f) {
1799
1799
  e = r;
1800
1800
  const c = {};
1801
- d[0] & /*listFeatures*/
1801
+ f[0] & /*listFeatures*/
1802
1802
  16384 && (c.feature = /*feature*/
1803
- e[84]), d[0] & /*showPlaceType*/
1803
+ e[84]), f[0] & /*showPlaceType*/
1804
1804
  1024 && (c.showPlaceType = /*showPlaceType*/
1805
- e[10]), d[0] & /*selectedItemIndex, listFeatures*/
1805
+ e[10]), f[0] & /*selectedItemIndex, listFeatures*/
1806
1806
  49152 && (c.selected = /*selectedItemIndex*/
1807
1807
  e[15] === /*i*/
1808
- e[86]), d[0] & /*iconsBaseUrl*/
1808
+ e[86]), f[0] & /*iconsBaseUrl*/
1809
1809
  4096 && (c.iconsBaseUrl = /*iconsBaseUrl*/
1810
1810
  e[12]), n.$set(c);
1811
1811
  },
1812
1812
  i(r) {
1813
- o || (z(n.$$.fragment, r), o = !0);
1813
+ o || (F(n.$$.fragment, r), o = !0);
1814
1814
  },
1815
1815
  o(r) {
1816
1816
  Q(n.$$.fragment, r), o = !1;
1817
1817
  },
1818
1818
  d(r) {
1819
- r && U(t), se(n, r);
1819
+ r && D(t), ne(n, r);
1820
1820
  }
1821
1821
  };
1822
1822
  }
1823
1823
  function mn(i) {
1824
- let e, t, n, o, u, a, r, d, c, f, h, v, _, w, W, y, E, C, R, p, q, b = !1;
1825
- u = new Ki({}), h = new At({});
1826
- let g = (
1824
+ let e, t, n, o, u, a, r, f, c, m, v, h, y, _, R, L, E, C, k, p, H, z = !1;
1825
+ u = new Vi({}), v = new It({});
1826
+ let d = (
1827
1827
  /*abortController*/
1828
1828
  i[19] && Mt()
1829
- ), m = (
1829
+ ), g = (
1830
1830
  /*enableReverse*/
1831
- i[5] === !0 && Tt(i)
1831
+ i[5] === "button" && Tt(i)
1832
1832
  );
1833
- const k = (
1833
+ const T = (
1834
1834
  /*#slots*/
1835
1835
  i[61].default
1836
- ), H = fi(
1837
- k,
1836
+ ), Z = fi(
1837
+ T,
1838
1838
  i,
1839
1839
  /*$$scope*/
1840
1840
  i[60],
1841
1841
  null
1842
- ), X = [fn, dn, cn, un], Y = [];
1843
- function j(L, F) {
1844
- var $, ne;
1842
+ ), he = [fn, dn, cn, un], q = [];
1843
+ function Se(b, U) {
1844
+ var ee, ue;
1845
1845
  return (
1846
1846
  /*error*/
1847
- L[18] ? 0 : (
1847
+ b[18] ? 0 : (
1848
1848
  /*focusedDelayed*/
1849
- L[16] ? (
1849
+ b[16] ? (
1850
1850
  /*listFeatures*/
1851
- (($ = L[14]) == null ? void 0 : $.length) === 0 ? 2 : (
1851
+ ((ee = b[14]) == null ? void 0 : ee.length) === 0 ? 2 : (
1852
1852
  /*focusedDelayed*/
1853
- L[16] && /*listFeatures*/
1854
- ((ne = L[14]) != null && ne.length) ? 3 : -1
1853
+ b[16] && /*listFeatures*/
1854
+ ((ue = b[14]) != null && ue.length) ? 3 : -1
1855
1855
  )
1856
1856
  ) : 1
1857
1857
  )
1858
1858
  );
1859
1859
  }
1860
- return ~(y = j(i)) && (E = Y[y] = X[y](i)), {
1860
+ return ~(L = Se(i)) && (E = q[L] = he[L](i)), {
1861
1861
  c() {
1862
- e = J(), t = O("form"), n = O("div"), o = O("button"), de(u.$$.fragment), a = J(), r = O("input"), d = J(), c = O("div"), f = O("button"), de(h.$$.fragment), v = J(), g && g.c(), _ = J(), m && m.c(), w = J(), H && H.c(), W = J(), E && E.c(), l(o, "class", "search-button svelte-1uvos7g"), l(o, "type", "button"), l(
1862
+ e = J(), t = W("form"), n = W("div"), o = W("button"), le(u.$$.fragment), a = J(), r = W("input"), f = J(), c = W("div"), m = W("button"), le(v.$$.fragment), h = J(), d && d.c(), y = J(), g && g.c(), _ = J(), Z && Z.c(), R = J(), E && E.c(), l(o, "class", "search-button svelte-bz0zu3"), l(o, "type", "button"), l(
1863
1863
  r,
1864
1864
  "placeholder",
1865
1865
  /*placeholder*/
@@ -1869,20 +1869,20 @@ function mn(i) {
1869
1869
  "aria-label",
1870
1870
  /*placeholder*/
1871
1871
  i[8]
1872
- ), l(r, "class", "svelte-1uvos7g"), l(f, "type", "button"), l(
1873
- f,
1872
+ ), l(r, "class", "svelte-bz0zu3"), l(m, "type", "button"), l(
1873
+ m,
1874
1874
  "title",
1875
1875
  /*clearButtonTitle*/
1876
1876
  i[3]
1877
- ), l(f, "class", "svelte-1uvos7g"), l(c, "class", "clear-button-container svelte-1uvos7g"), ue(
1877
+ ), l(m, "class", "svelte-bz0zu3"), l(c, "class", "clear-button-container svelte-bz0zu3"), se(
1878
1878
  c,
1879
1879
  "displayable",
1880
1880
  /*searchValue*/
1881
1881
  i[1] !== ""
1882
- ), l(n, "class", "input-group svelte-1uvos7g"), l(t, "tabindex", "0"), l(t, "class", C = dt(
1882
+ ), l(n, "class", "input-group svelte-bz0zu3"), l(t, "tabindex", "0"), l(t, "class", C = dt(
1883
1883
  /*className*/
1884
1884
  i[2]
1885
- ) + " svelte-1uvos7g"), ue(
1885
+ ) + " svelte-bz0zu3"), se(
1886
1886
  t,
1887
1887
  "can-collapse",
1888
1888
  /*collapsed*/
@@ -1890,148 +1890,148 @@ function mn(i) {
1890
1890
  i[1] === ""
1891
1891
  );
1892
1892
  },
1893
- m(L, F) {
1894
- B(L, e, F), B(L, t, F), T(t, n), T(n, o), oe(u, o, null), T(n, a), T(n, r), i[63](r), ft(
1893
+ m(b, U) {
1894
+ B(b, e, U), B(b, t, U), M(t, n), M(n, o), ie(u, o, null), M(n, a), M(n, r), i[63](r), ft(
1895
1895
  r,
1896
1896
  /*searchValue*/
1897
1897
  i[1]
1898
- ), T(n, d), T(n, c), T(c, f), oe(h, f, null), T(c, v), g && g.m(c, null), T(n, _), m && m.m(n, null), T(n, w), H && H.m(n, null), T(t, W), ~y && Y[y].m(t, null), R = !0, p || (q = [
1899
- K(
1898
+ ), M(n, f), M(n, c), M(c, m), ie(v, m, null), M(c, h), d && d.m(c, null), M(n, y), g && g.m(n, null), M(n, _), Z && Z.m(n, null), M(t, R), ~L && q[L].m(t, null), k = !0, p || (H = [
1899
+ V(
1900
1900
  o,
1901
1901
  "click",
1902
1902
  /*click_handler*/
1903
1903
  i[62]
1904
1904
  ),
1905
- K(
1905
+ V(
1906
1906
  r,
1907
1907
  "input",
1908
1908
  /*input_1_input_handler*/
1909
1909
  i[64]
1910
1910
  ),
1911
- K(
1911
+ V(
1912
1912
  r,
1913
1913
  "focus",
1914
1914
  /*focus_handler*/
1915
1915
  i[65]
1916
1916
  ),
1917
- K(
1917
+ V(
1918
1918
  r,
1919
1919
  "blur",
1920
1920
  /*blur_handler*/
1921
1921
  i[66]
1922
1922
  ),
1923
- K(
1923
+ V(
1924
1924
  r,
1925
1925
  "keydown",
1926
1926
  /*handleKeyDown*/
1927
1927
  i[22]
1928
1928
  ),
1929
- K(
1929
+ V(
1930
1930
  r,
1931
1931
  "input",
1932
1932
  /*input_handler*/
1933
1933
  i[67]
1934
1934
  ),
1935
- K(
1936
- f,
1935
+ V(
1936
+ m,
1937
1937
  "click",
1938
1938
  /*click_handler_1*/
1939
1939
  i[68]
1940
1940
  ),
1941
- K(t, "submit", vi(
1941
+ V(t, "submit", vi(
1942
1942
  /*handleOnSubmit*/
1943
1943
  i[21]
1944
1944
  ))
1945
1945
  ], p = !0);
1946
1946
  },
1947
- p(L, F) {
1948
- (!R || F[0] & /*placeholder*/
1947
+ p(b, U) {
1948
+ (!k || U[0] & /*placeholder*/
1949
1949
  256) && l(
1950
1950
  r,
1951
1951
  "placeholder",
1952
1952
  /*placeholder*/
1953
- L[8]
1954
- ), (!R || F[0] & /*placeholder*/
1953
+ b[8]
1954
+ ), (!k || U[0] & /*placeholder*/
1955
1955
  256) && l(
1956
1956
  r,
1957
1957
  "aria-label",
1958
1958
  /*placeholder*/
1959
- L[8]
1960
- ), F[0] & /*searchValue*/
1959
+ b[8]
1960
+ ), U[0] & /*searchValue*/
1961
1961
  2 && r.value !== /*searchValue*/
1962
- L[1] && ft(
1962
+ b[1] && ft(
1963
1963
  r,
1964
1964
  /*searchValue*/
1965
- L[1]
1966
- ), (!R || F[0] & /*clearButtonTitle*/
1965
+ b[1]
1966
+ ), (!k || U[0] & /*clearButtonTitle*/
1967
1967
  8) && l(
1968
- f,
1968
+ m,
1969
1969
  "title",
1970
1970
  /*clearButtonTitle*/
1971
- L[3]
1971
+ b[3]
1972
1972
  ), /*abortController*/
1973
- L[19] ? g ? F[0] & /*abortController*/
1974
- 524288 && z(g, 1) : (g = Mt(), g.c(), z(g, 1), g.m(c, null)) : g && (Fe(), Q(g, 1, 1, () => {
1975
- g = null;
1976
- }), ze()), (!R || F[0] & /*searchValue*/
1977
- 2) && ue(
1973
+ b[19] ? d ? U[0] & /*abortController*/
1974
+ 524288 && F(d, 1) : (d = Mt(), d.c(), F(d, 1), d.m(c, null)) : d && (Be(), Q(d, 1, 1, () => {
1975
+ d = null;
1976
+ }), Fe()), (!k || U[0] & /*searchValue*/
1977
+ 2) && se(
1978
1978
  c,
1979
1979
  "displayable",
1980
1980
  /*searchValue*/
1981
- L[1] !== ""
1981
+ b[1] !== ""
1982
1982
  ), /*enableReverse*/
1983
- L[5] === !0 ? m ? (m.p(L, F), F[0] & /*enableReverse*/
1984
- 32 && z(m, 1)) : (m = Tt(L), m.c(), z(m, 1), m.m(n, w)) : m && (Fe(), Q(m, 1, 1, () => {
1985
- m = null;
1986
- }), ze()), H && H.p && (!R || F[1] & /*$$scope*/
1983
+ b[5] === "button" ? g ? (g.p(b, U), U[0] & /*enableReverse*/
1984
+ 32 && F(g, 1)) : (g = Tt(b), g.c(), F(g, 1), g.m(n, _)) : g && (Be(), Q(g, 1, 1, () => {
1985
+ g = null;
1986
+ }), Fe()), Z && Z.p && (!k || U[1] & /*$$scope*/
1987
1987
  536870912) && gi(
1988
- H,
1989
- k,
1990
- L,
1988
+ Z,
1989
+ T,
1990
+ b,
1991
1991
  /*$$scope*/
1992
- L[60],
1993
- R ? mi(
1994
- k,
1992
+ b[60],
1993
+ k ? mi(
1994
+ T,
1995
1995
  /*$$scope*/
1996
- L[60],
1997
- F,
1996
+ b[60],
1997
+ U,
1998
1998
  null
1999
- ) : hi(
1999
+ ) : bi(
2000
2000
  /*$$scope*/
2001
- L[60]
2001
+ b[60]
2002
2002
  ),
2003
2003
  null
2004
2004
  );
2005
- let $ = y;
2006
- y = j(L), y === $ ? ~y && Y[y].p(L, F) : (E && (Fe(), Q(Y[$], 1, 1, () => {
2007
- Y[$] = null;
2008
- }), ze()), ~y ? (E = Y[y], E ? E.p(L, F) : (E = Y[y] = X[y](L), E.c()), z(E, 1), E.m(t, null)) : E = null), (!R || F[0] & /*className*/
2005
+ let ee = L;
2006
+ L = Se(b), L === ee ? ~L && q[L].p(b, U) : (E && (Be(), Q(q[ee], 1, 1, () => {
2007
+ q[ee] = null;
2008
+ }), Fe()), ~L ? (E = q[L], E ? E.p(b, U) : (E = q[L] = he[L](b), E.c()), F(E, 1), E.m(t, null)) : E = null), (!k || U[0] & /*className*/
2009
2009
  4 && C !== (C = dt(
2010
2010
  /*className*/
2011
- L[2]
2012
- ) + " svelte-1uvos7g")) && l(t, "class", C), (!R || F[0] & /*className, collapsed, searchValue*/
2013
- 22) && ue(
2011
+ b[2]
2012
+ ) + " svelte-bz0zu3")) && l(t, "class", C), (!k || U[0] & /*className, collapsed, searchValue*/
2013
+ 22) && se(
2014
2014
  t,
2015
2015
  "can-collapse",
2016
2016
  /*collapsed*/
2017
- L[4] && /*searchValue*/
2018
- L[1] === ""
2017
+ b[4] && /*searchValue*/
2018
+ b[1] === ""
2019
2019
  );
2020
2020
  },
2021
- i(L) {
2022
- R || (z(b), z(u.$$.fragment, L), z(h.$$.fragment, L), z(g), z(m), z(H, L), z(E), R = !0);
2021
+ i(b) {
2022
+ k || (F(z), F(u.$$.fragment, b), F(v.$$.fragment, b), F(d), F(g), F(Z, b), F(E), k = !0);
2023
2023
  },
2024
- o(L) {
2025
- Q(b), Q(u.$$.fragment, L), Q(h.$$.fragment, L), Q(g), Q(m), Q(H, L), Q(E), R = !1;
2024
+ o(b) {
2025
+ Q(z), Q(u.$$.fragment, b), Q(v.$$.fragment, b), Q(d), Q(g), Q(Z, b), Q(E), k = !1;
2026
2026
  },
2027
- d(L) {
2028
- L && (U(e), U(t)), se(u), i[63](null), se(h), g && g.d(), m && m.d(), H && H.d(L), ~y && Y[y].d(), p = !1, ae(q);
2027
+ d(b) {
2028
+ b && (D(e), D(t)), ne(u), i[63](null), ne(v), d && d.d(), g && g.d(), Z && Z.d(b), ~L && q[L].d(), p = !1, re(H);
2029
2029
  }
2030
2030
  };
2031
2031
  }
2032
2032
  function gn(i, e, t) {
2033
- let n, { $$slots: o = {}, $$scope: u } = e;
2034
- const a = {
2033
+ let n, o, { $$slots: u = {}, $$scope: a } = e;
2034
+ const r = {
2035
2035
  continental_marine: 4,
2036
2036
  country: 4,
2037
2037
  major_landform: 8,
@@ -2055,38 +2055,38 @@ function gn(i, e, t) {
2055
2055
  "poi.restaurant": 18,
2056
2056
  "poi.aerodrome": 13
2057
2057
  };
2058
- let { class: r = void 0 } = e, { apiKey: d } = e, { bbox: c = void 0 } = e, { clearButtonTitle: f = "clear" } = e, { clearOnBlur: h = !1 } = e, { collapsed: v = !1 } = e, { country: _ = void 0 } = e, { debounceSearch: w = 200 } = e, { enableReverse: W = !1 } = e, { errorMessage: y = "Something went wrong…" } = e, { filter: E = () => !0 } = e, { flyTo: C = !0 } = e, { fuzzyMatch: R = !0 } = e, { language: p = void 0 } = e, { limit: q = void 0 } = e, { mapController: b = void 0 } = e, { minLength: g = 2 } = e, { noResultsMessage: m = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = e, { placeholder: k = "Search" } = e, { proximity: H = [{ type: "server-geolocation" }] } = e, { reverseActive: X = W === "always" } = e, { reverseButtonTitle: Y = "toggle reverse geocoding" } = e, { searchValue: j = "" } = e, { showFullGeometry: L = !0 } = e, { showPlaceType: F = "ifNeeded" } = e, { showResultsWhileTyping: $ = !0 } = e, { selectFirst: ne = !0 } = e, { flyToSelected: He = !1 } = e, { markerOnSelected: We = !0 } = e, { types: fe = void 0 } = e, { exhaustiveReverseGeocoding: je = !1 } = e, { excludeTypes: Re = !1 } = e, { zoom: Le = a } = e, { maxZoom: Oe = void 0 } = e, { apiUrl: Pe = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: Ze = {} } = e, { iconsBaseUrl: ot = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.0/icons/" } = e, { adjustUrlQuery: Ge = () => {
2058
+ let { class: f = void 0 } = e, { apiKey: c } = e, { bbox: m = void 0 } = e, { clearButtonTitle: v = "clear" } = e, { clearOnBlur: h = !1 } = e, { collapsed: y = !1 } = e, { country: _ = void 0 } = e, { debounceSearch: R = 200 } = e, { enableReverse: L = "never" } = e, { errorMessage: E = "Something went wrong…" } = e, { filter: C = () => !0 } = e, { flyTo: k = !0 } = e, { fuzzyMatch: p = !0 } = e, { language: H = void 0 } = e, { limit: z = void 0 } = e, { mapController: d = void 0 } = e, { minLength: g = 2 } = e, { noResultsMessage: T = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = e, { placeholder: Z = "Search" } = e, { proximity: he = [{ type: "server-geolocation" }] } = e, { reverseActive: q = L === "always" } = e, { reverseButtonTitle: Se = "toggle reverse geocoding" } = e, { searchValue: b = "" } = e, { pickedResultStyle: U = "full-geometry" } = e, { showPlaceType: ee = "if-needed" } = e, { showResultsWhileTyping: ue = !0 } = e, { selectFirst: ve = !0 } = e, { flyToSelected: He = !1 } = e, { markerOnSelected: We = !0 } = e, { types: ce = void 0 } = e, { exhaustiveReverseGeocoding: Pe = !1 } = e, { excludeTypes: Re = !1 } = e, { zoom: ze = r } = e, { apiUrl: je = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: Ze = {} } = e, { iconsBaseUrl: ot = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.1/icons/" } = e, { adjustUrlQuery: Ge = () => {
2059
2059
  } } = e;
2060
- function Ft() {
2061
- ee.focus();
2060
+ function Bt() {
2061
+ X.focus();
2062
2062
  }
2063
- function zt() {
2064
- ee.blur();
2063
+ function Ft() {
2064
+ X.blur();
2065
2065
  }
2066
2066
  function st(s, I = !0, G = !1) {
2067
- t(1, j = s), I ? (t(15, D = -1), lt()) : (Ke(!G, G), setTimeout(() => {
2068
- ee.focus(), ee.select();
2067
+ t(1, b = s), I ? (t(15, O = -1), lt()) : (Ve(!G, G), setTimeout(() => {
2068
+ X.focus(), X.select();
2069
2069
  }));
2070
2070
  }
2071
2071
  function Ht() {
2072
- t(14, M = void 0), t(57, S = void 0), t(15, D = -1);
2072
+ t(14, N = void 0), t(56, w = void 0), t(15, O = -1);
2073
2073
  }
2074
- function jt() {
2075
- t(56, P = []), t(57, S = void 0);
2074
+ function Pt() {
2075
+ t(55, P = []), t(56, w = void 0);
2076
2076
  }
2077
- let _e = !1, M, P, S, at = "", ee, D = -1, te, De = [], me, ye, Ue, qe;
2078
- const Pt = /* @__PURE__ */ new Set(), le = wi();
2077
+ let Le = !1, N, P, w, at = "", X, O = -1, Y, Oe = [], de, _e, De, qe;
2078
+ const jt = /* @__PURE__ */ new Set(), oe = wi();
2079
2079
  yi(() => {
2080
- b && (b.setEventHandler(void 0), b.indicateReverse(!1), b.setSelectedMarker(-1), b.setMarkers(void 0, void 0));
2080
+ d && (d.setEventHandler(void 0), d.indicateReverse(!1), d.setSelectedMarker(-1), d.setFeatures(void 0, void 0, !1));
2081
2081
  });
2082
2082
  function lt(s) {
2083
- if (ye && (clearTimeout(ye), ye = void 0), D > -1 && M)
2084
- t(57, S = M[D]), t(1, j = S.place_type[0] === "reverse" ? S.place_name : S.place_name.replace(/,.*/, "")), t(18, te = void 0), t(56, P = void 0), t(15, D = -1);
2085
- else if (j) {
2086
- const I = s || !Qe(j);
2087
- xe(j, { exact: !0 }).then(() => {
2088
- t(56, P = M), t(57, S = void 0), I && Zt();
2089
- }).catch((G) => t(18, te = G));
2083
+ if (_e && (clearTimeout(_e), _e = void 0), O > -1 && N)
2084
+ t(56, w = N[O]), t(1, b = w.place_type[0] === "reverse" ? w.place_name : w.place_name.replace(/,.*/, "")), t(18, Y = void 0), t(55, P = void 0), t(15, O = -1);
2085
+ else if (b) {
2086
+ const I = s || !Qe(b);
2087
+ Ke(b, { exact: !0 }).then(() => {
2088
+ t(55, P = N), t(56, w = void 0), I && Zt();
2089
+ }).catch((G) => t(18, Y = G));
2090
2090
  }
2091
2091
  }
2092
2092
  function Qe(s) {
@@ -2096,249 +2096,250 @@ function gn(i, e, t) {
2096
2096
  return !1;
2097
2097
  }
2098
2098
  }
2099
- async function xe(s, { byId: I = !1, exact: G = !1 } = {}) {
2100
- t(18, te = void 0), me == null || me.abort();
2101
- const V = new AbortController();
2102
- t(19, me = V);
2099
+ async function Ke(s, { byId: I = !1, exact: G = !1 } = {}) {
2100
+ t(18, Y = void 0), de == null || de.abort();
2101
+ const x = new AbortController();
2102
+ t(19, de = x);
2103
2103
  try {
2104
- const N = Qe(s), Z = new URLSearchParams();
2105
- if (p !== void 0 && Z.set("language", Array.isArray(p) ? p.join(",") : p ?? ""), fe && Z.set("types", fe.join(",")), Re && Z.set("excludeTypes", String(Re)), c && Z.set("bbox", c.map((Ie) => Ie.toFixed(6)).join(",")), _ && Z.set("country", Array.isArray(_) ? _.join(",") : _), !I && !N) {
2106
- const Ie = await Ji(b, H, V);
2107
- Ie && Z.set("proximity", Ie), (G || !$) && Z.set("autocomplete", "false"), Z.set("fuzzyMatch", String(R));
2104
+ const S = Qe(s), j = new URLSearchParams();
2105
+ if (H !== void 0 && j.set("language", Array.isArray(H) ? H.join(",") : H ?? ""), ce && j.set("types", ce.join(",")), Re && j.set("excludeTypes", String(Re)), m && j.set("bbox", m.map((Ue) => Ue.toFixed(6)).join(",")), _ && j.set("country", Array.isArray(_) ? _.join(",") : _), !I && !S) {
2106
+ const Ue = await Ji(d, he, x);
2107
+ Ue && j.set("proximity", Ue), (G || !ue) && j.set("autocomplete", "false"), j.set("fuzzyMatch", String(p));
2108
2108
  }
2109
- q !== void 0 && (je || !N || (fe == null ? void 0 : fe.length) === 1) && Z.set("limit", String(q)), Z.set("key", d), Ge(Z);
2110
- const ie = Pe + "/" + encodeURIComponent(N ? N.decimalLongitude + "," + N.decimalLatitude : s) + ".json?" + Z.toString();
2111
- if (ie === at) {
2112
- I ? (t(14, M = void 0), t(57, S = De[0])) : t(14, M = De);
2109
+ z !== void 0 && (Pe || !S || (ce == null ? void 0 : ce.length) === 1) && j.set("limit", String(z)), j.set("key", c), Ge(j);
2110
+ const $ = je + "/" + encodeURIComponent(S ? S.decimalLongitude + "," + S.decimalLatitude : s) + ".json?" + j.toString();
2111
+ if ($ === at) {
2112
+ I ? (t(14, N = void 0), t(56, w = Oe[0])) : t(14, N = Oe);
2113
2113
  return;
2114
2114
  }
2115
- at = ie;
2116
- const Je = await fetch(ie, { signal: V.signal, ...Ze });
2115
+ at = $;
2116
+ const Je = await fetch($, { signal: x.signal, ...Ze });
2117
2117
  if (!Je.ok)
2118
2118
  throw new Error(await Je.text());
2119
2119
  const Xe = await Je.json();
2120
- le("response", { url: ie, featureCollection: Xe }), I ? (t(14, M = void 0), t(57, S = Xe.features[0]), De = [S]) : (t(14, M = Xe.features.filter(E)), N && M.unshift({
2120
+ oe("response", { url: $, featureCollection: Xe }), I ? (t(14, N = void 0), t(56, w = Xe.features[0]), Oe = [w]) : (t(14, N = Xe.features.filter(C)), S && N.unshift({
2121
2121
  type: "Feature",
2122
2122
  properties: {},
2123
- id: "reverse_" + N.decimalLongitude + "_" + N.decimalLatitude,
2124
- text: N.decimalLatitude + ", " + N.decimalLongitude,
2125
- place_name: N.decimalLatitude + ", " + N.decimalLongitude,
2123
+ id: "reverse_" + S.decimalLongitude + "_" + S.decimalLatitude,
2124
+ text: S.decimalLatitude + ", " + S.decimalLongitude,
2125
+ place_name: S.decimalLatitude + ", " + S.decimalLongitude,
2126
2126
  place_type: ["reverse"],
2127
- center: [N.decimalLongitude, N.decimalLatitude],
2127
+ center: [S.decimalLongitude, S.decimalLatitude],
2128
2128
  bbox: [
2129
- N.decimalLongitude,
2130
- N.decimalLatitude,
2131
- N.decimalLongitude,
2132
- N.decimalLatitude
2129
+ S.decimalLongitude,
2130
+ S.decimalLatitude,
2131
+ S.decimalLongitude,
2132
+ S.decimalLatitude
2133
2133
  ],
2134
2134
  geometry: {
2135
2135
  type: "Point",
2136
- coordinates: [N.decimalLongitude, N.decimalLatitude]
2136
+ coordinates: [S.decimalLongitude, S.decimalLatitude]
2137
2137
  }
2138
- }), De = M, N && ee.focus());
2139
- } catch (N) {
2140
- if (N && typeof N == "object" && "name" in N && N.name === "AbortError")
2138
+ }), Oe = N, S && X.focus());
2139
+ } catch (S) {
2140
+ if (S && typeof S == "object" && "name" in S && S.name === "AbortError")
2141
2141
  return;
2142
- throw N;
2142
+ throw S;
2143
2143
  } finally {
2144
- V === me && t(19, me = void 0);
2144
+ x === de && t(19, de = void 0);
2145
2145
  }
2146
2146
  }
2147
2147
  function Zt() {
2148
- var V;
2149
- if (!(P != null && P.length) || !C)
2148
+ var x;
2149
+ if (!(P != null && P.length) || !k)
2150
2150
  return;
2151
- const s = [180, 90, -180, -90], I = !P.some((N) => !N.matching_text);
2151
+ const s = [180, 90, -180, -90], I = !P.some((S) => !S.matching_text);
2152
2152
  let G;
2153
- for (const N of P) {
2154
- const Z = pe(N);
2155
- if (G = Oe ?? (G === void 0 ? Z : Z === void 0 ? G : Math.max(G, Z)), I || !N.matching_text)
2156
- for (const ie of [0, 1, 2, 3])
2157
- s[ie] = Math[ie < 2 ? "min" : "max"](s[ie], ((V = N.bbox) == null ? void 0 : V[ie]) ?? N.center[ie % 2]);
2153
+ for (const S of P) {
2154
+ const j = pe(S);
2155
+ if (G = G === void 0 ? j : j === void 0 ? G : Math.max(G, j), I || !S.matching_text)
2156
+ for (const $ of [0, 1, 2, 3])
2157
+ s[$] = Math[$ < 2 ? "min" : "max"](s[$], ((x = S.bbox) == null ? void 0 : x[$]) ?? S.center[$ % 2]);
2158
2158
  }
2159
- b && P.length > 0 && (S && s[0] === s[2] && s[1] === s[3] ? b.flyTo(S.center, pe(S)) : b.fitBounds(vt(s), 50, G));
2159
+ d && P.length > 0 && (w && s[0] === s[2] && s[1] === s[3] ? d.flyTo(w.center, pe(w)) : d.fitBounds(vt(s), 50, G));
2160
2160
  }
2161
2161
  function pe(s) {
2162
2162
  var G;
2163
2163
  if (!s.bbox || s.bbox[0] !== s.bbox[2] && s.bbox[1] !== s.bbox[3])
2164
2164
  return;
2165
- if (typeof Le == "number")
2166
- return s.id.startsWith("poi.") || s.id.startsWith("address.") ? Oe : Le;
2167
2165
  const I = s.id.replace(/\..*/, "");
2168
2166
  return (Array.isArray((G = s.properties) == null ? void 0 : G.categories) ? s.properties.categories.reduce(
2169
- (V, N) => {
2170
- const Z = Le[I + "." + N];
2171
- return V === void 0 ? Z : Z === void 0 ? V : Math.max(V, Z);
2167
+ (x, S) => {
2168
+ const j = ze[I + "." + S];
2169
+ return x === void 0 ? j : j === void 0 ? x : Math.max(x, j);
2172
2170
  },
2173
2171
  void 0
2174
- ) : void 0) ?? Le[I];
2172
+ ) : void 0) ?? ze[I];
2175
2173
  }
2176
2174
  function Gt(s) {
2177
- t(0, X = W === "always"), t(14, M = void 0), t(57, S = void 0), t(15, D = -1), st(s[1].toFixed(6) + ", " + Vi(s[0], [-180, 180], !0).toFixed(6), !1, !0);
2175
+ t(0, q = L === "always"), t(14, N = void 0), t(56, w = void 0), t(15, O = -1), st(s[1].toFixed(6) + ", " + xi(s[0], [-180, 180], !0).toFixed(6), !1, !0);
2178
2176
  }
2179
2177
  function qt(s) {
2180
- if (!M)
2178
+ if (!N)
2181
2179
  return;
2182
2180
  let I = s.key === "ArrowDown" ? 1 : s.key === "ArrowUp" ? -1 : 0;
2183
- I && (D === (ne ? 0 : -1) && I === -1 && t(15, D = M.length), t(15, D += I), D >= M.length && t(15, D = -1), D < 0 && ne && t(15, D = 0), s.preventDefault());
2181
+ I && (O === (ve ? 0 : -1) && I === -1 && t(15, O = N.length), t(15, O += I), O >= N.length && t(15, O = -1), O < 0 && ve && t(15, O = 0), s.preventDefault());
2184
2182
  }
2185
- function Ke(s = !0, I = !1) {
2186
- if (t(18, te = void 0), $ || I) {
2187
- if (ye && clearTimeout(ye), j.length < g)
2183
+ function Ve(s = !0, I = !1) {
2184
+ if (t(18, Y = void 0), ue || I) {
2185
+ if (_e && clearTimeout(_e), b.length < g)
2188
2186
  return;
2189
- const G = j;
2190
- ye = window.setTimeout(
2187
+ const G = b;
2188
+ _e = window.setTimeout(
2191
2189
  () => {
2192
- xe(G).catch((V) => t(18, te = V));
2190
+ Ke(G).catch((x) => t(18, Y = x));
2193
2191
  },
2194
- s ? w : 0
2192
+ s ? R : 0
2195
2193
  );
2196
2194
  } else
2197
- t(14, M = void 0), t(18, te = void 0);
2195
+ t(14, N = void 0), t(18, Y = void 0);
2198
2196
  }
2199
- function Ve(s) {
2200
- t(57, S = s), t(1, j = s.place_name), t(15, D = -1);
2197
+ function xe(s) {
2198
+ t(56, w = s), t(1, b = s.place_name), t(15, O = -1);
2201
2199
  }
2202
- const Qt = () => ee.focus();
2203
- function xt(s) {
2200
+ const Qt = () => X.focus();
2201
+ function Kt(s) {
2204
2202
  tt[s ? "unshift" : "push"](() => {
2205
- ee = s, t(17, ee);
2203
+ X = s, t(17, X);
2206
2204
  });
2207
2205
  }
2208
- function Kt() {
2209
- j = this.value, t(1, j), t(13, _e), t(28, h);
2206
+ function Vt() {
2207
+ b = this.value, t(1, b), t(13, Le), t(28, h);
2210
2208
  }
2211
- const Vt = () => t(13, _e = !0), Jt = () => t(13, _e = !1), Xt = () => Ke(), Yt = () => {
2212
- t(1, j = ""), ee.focus();
2213
- }, $t = () => t(0, X = !X), ei = () => t(18, te = void 0), ti = (s) => t(15, D = s), ii = (s) => Ve(s), ni = () => {
2214
- ne || t(15, D = -1);
2209
+ const xt = () => t(13, Le = !0), Jt = () => t(13, Le = !1), Xt = () => Ve(), Yt = () => {
2210
+ t(1, b = ""), X.focus();
2211
+ }, $t = () => t(0, q = !q), ei = () => t(18, Y = void 0), ti = (s) => t(15, O = s), ii = (s) => xe(s), ni = () => {
2212
+ ve || t(15, O = -1);
2215
2213
  }, ri = () => {
2216
2214
  };
2217
2215
  return i.$$set = (s) => {
2218
- "class" in s && t(2, r = s.class), "apiKey" in s && t(26, d = s.apiKey), "bbox" in s && t(27, c = s.bbox), "clearButtonTitle" in s && t(3, f = s.clearButtonTitle), "clearOnBlur" in s && t(28, h = s.clearOnBlur), "collapsed" in s && t(4, v = s.collapsed), "country" in s && t(29, _ = s.country), "debounceSearch" in s && t(30, w = s.debounceSearch), "enableReverse" in s && t(5, W = s.enableReverse), "errorMessage" in s && t(6, y = s.errorMessage), "filter" in s && t(31, E = s.filter), "flyTo" in s && t(32, C = s.flyTo), "fuzzyMatch" in s && t(33, R = s.fuzzyMatch), "language" in s && t(34, p = s.language), "limit" in s && t(35, q = s.limit), "mapController" in s && t(36, b = s.mapController), "minLength" in s && t(37, g = s.minLength), "noResultsMessage" in s && t(7, m = s.noResultsMessage), "placeholder" in s && t(8, k = s.placeholder), "proximity" in s && t(38, H = s.proximity), "reverseActive" in s && t(0, X = s.reverseActive), "reverseButtonTitle" in s && t(9, Y = s.reverseButtonTitle), "searchValue" in s && t(1, j = s.searchValue), "showFullGeometry" in s && t(39, L = s.showFullGeometry), "showPlaceType" in s && t(10, F = s.showPlaceType), "showResultsWhileTyping" in s && t(40, $ = s.showResultsWhileTyping), "selectFirst" in s && t(11, ne = s.selectFirst), "flyToSelected" in s && t(41, He = s.flyToSelected), "markerOnSelected" in s && t(42, We = s.markerOnSelected), "types" in s && t(43, fe = s.types), "exhaustiveReverseGeocoding" in s && t(44, je = s.exhaustiveReverseGeocoding), "excludeTypes" in s && t(45, Re = s.excludeTypes), "zoom" in s && t(46, Le = s.zoom), "maxZoom" in s && t(47, Oe = s.maxZoom), "apiUrl" in s && t(48, Pe = s.apiUrl), "fetchParameters" in s && t(49, Ze = s.fetchParameters), "iconsBaseUrl" in s && t(12, ot = s.iconsBaseUrl), "adjustUrlQuery" in s && t(50, Ge = s.adjustUrlQuery), "$$scope" in s && t(60, u = s.$$scope);
2216
+ "class" in s && t(2, f = s.class), "apiKey" in s && t(26, c = s.apiKey), "bbox" in s && t(27, m = s.bbox), "clearButtonTitle" in s && t(3, v = s.clearButtonTitle), "clearOnBlur" in s && t(28, h = s.clearOnBlur), "collapsed" in s && t(4, y = s.collapsed), "country" in s && t(29, _ = s.country), "debounceSearch" in s && t(30, R = s.debounceSearch), "enableReverse" in s && t(5, L = s.enableReverse), "errorMessage" in s && t(6, E = s.errorMessage), "filter" in s && t(31, C = s.filter), "flyTo" in s && t(32, k = s.flyTo), "fuzzyMatch" in s && t(33, p = s.fuzzyMatch), "language" in s && t(34, H = s.language), "limit" in s && t(35, z = s.limit), "mapController" in s && t(36, d = s.mapController), "minLength" in s && t(37, g = s.minLength), "noResultsMessage" in s && t(7, T = s.noResultsMessage), "placeholder" in s && t(8, Z = s.placeholder), "proximity" in s && t(38, he = s.proximity), "reverseActive" in s && t(0, q = s.reverseActive), "reverseButtonTitle" in s && t(9, Se = s.reverseButtonTitle), "searchValue" in s && t(1, b = s.searchValue), "pickedResultStyle" in s && t(39, U = s.pickedResultStyle), "showPlaceType" in s && t(10, ee = s.showPlaceType), "showResultsWhileTyping" in s && t(40, ue = s.showResultsWhileTyping), "selectFirst" in s && t(11, ve = s.selectFirst), "flyToSelected" in s && t(41, He = s.flyToSelected), "markerOnSelected" in s && t(42, We = s.markerOnSelected), "types" in s && t(43, ce = s.types), "exhaustiveReverseGeocoding" in s && t(44, Pe = s.exhaustiveReverseGeocoding), "excludeTypes" in s && t(45, Re = s.excludeTypes), "zoom" in s && t(46, ze = s.zoom), "apiUrl" in s && t(47, je = s.apiUrl), "fetchParameters" in s && t(48, Ze = s.fetchParameters), "iconsBaseUrl" in s && t(12, ot = s.iconsBaseUrl), "adjustUrlQuery" in s && t(49, Ge = s.adjustUrlQuery), "$$scope" in s && t(60, a = s.$$scope);
2219
2217
  }, i.$$.update = () => {
2220
2218
  if (i.$$.dirty[0] & /*enableReverse*/
2221
- 32 && t(0, X = W === "always"), i.$$.dirty[0] & /*focused, clearOnBlur*/
2219
+ 32 && t(0, q = L === "always"), i.$$.dirty[0] & /*focused, clearOnBlur*/
2222
2220
  268443648 && setTimeout(() => {
2223
- t(16, Ue = _e), h && !_e && t(1, j = "");
2221
+ t(16, De = Le), h && !Le && t(1, b = "");
2224
2222
  }), i.$$.dirty[0] & /*searchValue, listFeatures*/
2225
2223
  16386 | i.$$.dirty[1] & /*minLength*/
2226
- 64 && j.length < g && (t(57, S = void 0), t(14, M = void 0), t(18, te = void 0), t(56, P = M)), i.$$.dirty[1] & /*showFullGeometry, picked*/
2227
- 67109120 && L && S && !S.address && S.geometry.type === "Point" && S.place_type[0] !== "reverse" && xe(S.id, { byId: !0 }).catch((s) => t(18, te = s)), i.$$.dirty[1] & /*mapController, picked, prevIdToFly, flyTo*/
2228
- 201326626 && (b && S && S.id !== qe && C && (!S.bbox || S.bbox[0] === S.bbox[2] && S.bbox[1] === S.bbox[3] ? b.flyTo(S.center, pe(S)) : b.fitBounds(vt(S.bbox), 50, pe(S)), t(14, M = void 0), t(56, P = void 0), t(15, D = -1)), t(58, qe = S == null ? void 0 : S.id)), i.$$.dirty[0] & /*selectFirst, listFeatures*/
2229
- 18432 && ne && M != null && M.length && t(15, D = 0), i.$$.dirty[0] & /*searchValue*/
2230
- 2 && t(15, D = -1), i.$$.dirty[0] & /*listFeatures*/
2224
+ 64 && b.length < g && (t(56, w = void 0), t(14, N = void 0), t(18, Y = void 0), t(55, P = N)), i.$$.dirty[1] & /*pickedResultStyle, picked*/
2225
+ 33554688 && U !== "marker-only" && w && !w.address && w.geometry.type === "Point" && w.place_type[0] !== "reverse" && Ke(w.id, { byId: !0 }).catch((s) => t(18, Y = s)), i.$$.dirty[1] & /*mapController, picked, prevIdToFly, flyTo*/
2226
+ 100663330 && (d && w && w.id !== qe && k && (!w.bbox || w.bbox[0] === w.bbox[2] && w.bbox[1] === w.bbox[3] ? d.flyTo(w.center, pe(w)) : d.fitBounds(vt(w.bbox), 50, pe(w)), t(14, N = void 0), t(55, P = void 0), t(15, O = -1)), t(57, qe = w == null ? void 0 : w.id)), i.$$.dirty[0] & /*selectFirst, listFeatures*/
2227
+ 18432 && ve && N != null && N.length && t(15, O = 0), i.$$.dirty[0] & /*searchValue*/
2228
+ 2 && t(15, O = -1), i.$$.dirty[0] & /*listFeatures*/
2231
2229
  16384 | i.$$.dirty[1] & /*markedFeatures*/
2232
- 33554432 && P !== M && t(56, P = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
2230
+ 16777216 && P !== N && t(55, P = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
2233
2231
  81921 | i.$$.dirty[1] & /*mapController, markedFeatures*/
2234
- 33554464 && b && b.setEventHandler((s) => {
2232
+ 16777248 && d && d.setEventHandler((s) => {
2235
2233
  switch (s.type) {
2236
2234
  case "mapClick":
2237
- X && Gt(s.coordinates);
2235
+ q && Gt(s.coordinates);
2238
2236
  break;
2239
2237
  case "markerClick":
2240
2238
  {
2241
- const I = M == null ? void 0 : M.find((G) => G.id === s.id);
2242
- I && Ve(I);
2239
+ const I = N == null ? void 0 : N.find((G) => G.id === s.id);
2240
+ I && xe(I);
2243
2241
  }
2244
2242
  break;
2245
2243
  case "markerMouseEnter":
2246
- P && t(15, D = Ue ? (M == null ? void 0 : M.findIndex((I) => I.id === s.id)) ?? -1 : -1);
2244
+ P && t(15, O = De ? (N == null ? void 0 : N.findIndex((I) => I.id === s.id)) ?? -1 : -1);
2247
2245
  break;
2248
2246
  case "markerMouseLeave":
2249
- P && t(15, D = -1);
2247
+ P && t(15, O = -1);
2250
2248
  break;
2251
2249
  }
2252
2250
  }), i.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
2253
- 49152 && t(59, n = M == null ? void 0 : M[D]), i.$$.dirty[1] & /*mapController, selected, flyTo, flyToSelected*/
2254
- 268436514 && b && n && C && He && b.flyTo(n.center, pe(n)), i.$$.dirty[1] & /*markerOnSelected, mapController*/
2255
- 2080 && (We || b == null || b.setMarkers(void 0, void 0)), i.$$.dirty[1] & /*mapController, markerOnSelected, markedFeatures, selected*/
2256
- 301991968 && b && We && !P && (b.setMarkers(n ? [n] : void 0, void 0), b.setSelectedMarker(n ? 0 : -1)), i.$$.dirty[1] & /*mapController, markedFeatures, picked*/
2257
- 100663328 && b && b.setMarkers(P, S), i.$$.dirty[0] & /*selectedItemIndex*/
2251
+ 49152 && t(58, o = N == null ? void 0 : N[O]), i.$$.dirty[1] & /*mapController, selected, flyTo, flyToSelected*/
2252
+ 134218786 && d && o && k && He && d.flyTo(o.center, pe(o)), i.$$.dirty[1] & /*pickedResultStyle*/
2253
+ 256 && t(59, n = U === "full-geometry-including-polygon-center-marker"), i.$$.dirty[1] & /*markerOnSelected, mapController, showPolygonMarker*/
2254
+ 268437536 && (We || d == null || d.setFeatures(void 0, void 0, n)), i.$$.dirty[1] & /*mapController, markerOnSelected, markedFeatures, selected, showPolygonMarker*/
2255
+ 419432480 && d && We && !P && (d.setFeatures(o ? [o] : void 0, void 0, n), d.setSelectedMarker(o ? 0 : -1)), i.$$.dirty[1] & /*mapController, markedFeatures, picked, showPolygonMarker*/
2256
+ 318767136 && d && d.setFeatures(P, w, n), i.$$.dirty[0] & /*selectedItemIndex*/
2258
2257
  32768 | i.$$.dirty[1] & /*markedFeatures, mapController*/
2259
- 33554464 && P && b && b.setSelectedMarker(D), i.$$.dirty[0] & /*searchValue*/
2258
+ 16777248 && P && d && d.setSelectedMarker(O), i.$$.dirty[0] & /*searchValue*/
2260
2259
  2 | i.$$.dirty[1] & /*mapController*/
2261
- 32 && b) {
2262
- const s = Qe(j);
2263
- b.setReverseMarker(s ? [s.decimalLongitude, s.decimalLatitude] : void 0);
2260
+ 32 && d) {
2261
+ const s = Qe(b);
2262
+ d.setReverseMarker(s ? [s.decimalLongitude, s.decimalLatitude] : void 0);
2264
2263
  }
2265
2264
  i.$$.dirty[1] & /*selected*/
2266
- 268435456 && le("select", n), i.$$.dirty[1] & /*picked*/
2267
- 67108864 && le("pick", S), i.$$.dirty[0] & /*focusedDelayed, listFeatures*/
2268
- 81920 && le("optionsVisibilityChange", Ue && !!M), i.$$.dirty[0] & /*listFeatures*/
2269
- 16384 && le("featuresListed", M), i.$$.dirty[1] & /*markedFeatures*/
2270
- 33554432 && le("featuresMarked", P), i.$$.dirty[0] & /*reverseActive*/
2271
- 1 && le("reverseToggle", X), i.$$.dirty[0] & /*searchValue*/
2272
- 2 && le("queryChange", j), i.$$.dirty[0] & /*reverseActive*/
2265
+ 134217728 && oe("select", { feature: o }), i.$$.dirty[1] & /*picked*/
2266
+ 33554432 && oe("pick", { feature: w }), i.$$.dirty[0] & /*focusedDelayed, listFeatures*/
2267
+ 81920 && oe("optionsvisibilitychange", {
2268
+ optionsVisible: De && !!N
2269
+ }), i.$$.dirty[0] & /*listFeatures*/
2270
+ 16384 && oe("featureslisted", { features: N }), i.$$.dirty[1] & /*markedFeatures*/
2271
+ 16777216 && oe("featuresmarked", { features: P }), i.$$.dirty[0] & /*reverseActive*/
2272
+ 1 && oe("reversetoggle", { reverse: q }), i.$$.dirty[0] & /*searchValue*/
2273
+ 2 && oe("querychange", { query: b }), i.$$.dirty[0] & /*reverseActive*/
2273
2274
  1 | i.$$.dirty[1] & /*mapController*/
2274
- 32 && b && b.indicateReverse(X);
2275
+ 32 && d && d.indicateReverse(q);
2275
2276
  }, [
2276
- X,
2277
- j,
2278
- r,
2277
+ q,
2278
+ b,
2279
2279
  f,
2280
2280
  v,
2281
- W,
2282
2281
  y,
2283
- m,
2284
- k,
2285
- Y,
2286
- F,
2287
- ne,
2288
- ot,
2289
- _e,
2290
- M,
2291
- D,
2292
- Ue,
2282
+ L,
2283
+ E,
2284
+ T,
2285
+ Z,
2286
+ Se,
2293
2287
  ee,
2294
- te,
2295
- me,
2296
- Pt,
2288
+ ve,
2289
+ ot,
2290
+ Le,
2291
+ N,
2292
+ O,
2293
+ De,
2294
+ X,
2295
+ Y,
2296
+ de,
2297
+ jt,
2297
2298
  lt,
2298
2299
  qt,
2299
- Ke,
2300
2300
  Ve,
2301
- a,
2302
- d,
2301
+ xe,
2302
+ r,
2303
2303
  c,
2304
+ m,
2304
2305
  h,
2305
2306
  _,
2306
- w,
2307
- E,
2308
- C,
2309
2307
  R,
2308
+ C,
2309
+ k,
2310
2310
  p,
2311
- q,
2312
- b,
2313
- g,
2314
2311
  H,
2315
- L,
2316
- $,
2312
+ z,
2313
+ d,
2314
+ g,
2315
+ he,
2316
+ U,
2317
+ ue,
2317
2318
  He,
2318
2319
  We,
2319
- fe,
2320
- je,
2321
- Re,
2322
- Le,
2323
- Oe,
2320
+ ce,
2324
2321
  Pe,
2322
+ Re,
2323
+ ze,
2324
+ je,
2325
2325
  Ze,
2326
2326
  Ge,
2327
+ Bt,
2327
2328
  Ft,
2328
- zt,
2329
2329
  st,
2330
2330
  Ht,
2331
- jt,
2331
+ Pt,
2332
2332
  P,
2333
- S,
2333
+ w,
2334
2334
  qe,
2335
+ o,
2335
2336
  n,
2337
+ a,
2336
2338
  u,
2337
- o,
2338
2339
  Qt,
2339
- xt,
2340
2340
  Kt,
2341
2341
  Vt,
2342
+ xt,
2342
2343
  Jt,
2343
2344
  Xt,
2344
2345
  Yt,
@@ -2350,14 +2351,14 @@ function gn(i, e, t) {
2350
2351
  ri
2351
2352
  ];
2352
2353
  }
2353
- class hn extends ve {
2354
+ class bn extends be {
2354
2355
  constructor(e) {
2355
- super(), be(
2356
+ super(), ge(
2356
2357
  this,
2357
2358
  e,
2358
2359
  gn,
2359
2360
  mn,
2360
- he,
2361
+ me,
2361
2362
  {
2362
2363
  ZOOM_DEFAULTS: 25,
2363
2364
  class: 2,
@@ -2383,7 +2384,7 @@ class hn extends ve {
2383
2384
  reverseActive: 0,
2384
2385
  reverseButtonTitle: 9,
2385
2386
  searchValue: 1,
2386
- showFullGeometry: 39,
2387
+ pickedResultStyle: 39,
2387
2388
  showPlaceType: 10,
2388
2389
  showResultsWhileTyping: 40,
2389
2390
  selectFirst: 11,
@@ -2393,16 +2394,15 @@ class hn extends ve {
2393
2394
  exhaustiveReverseGeocoding: 44,
2394
2395
  excludeTypes: 45,
2395
2396
  zoom: 46,
2396
- maxZoom: 47,
2397
- apiUrl: 48,
2398
- fetchParameters: 49,
2397
+ apiUrl: 47,
2398
+ fetchParameters: 48,
2399
2399
  iconsBaseUrl: 12,
2400
- adjustUrlQuery: 50,
2401
- focus: 51,
2402
- blur: 52,
2403
- setQuery: 53,
2404
- clearList: 54,
2405
- clearMap: 55
2400
+ adjustUrlQuery: 49,
2401
+ focus: 50,
2402
+ blur: 51,
2403
+ setQuery: 52,
2404
+ clearList: 53,
2405
+ clearMap: 54
2406
2406
  },
2407
2407
  null,
2408
2408
  [-1, -1, -1]
@@ -2412,19 +2412,19 @@ class hn extends ve {
2412
2412
  return this.$$.ctx[25];
2413
2413
  }
2414
2414
  get focus() {
2415
- return this.$$.ctx[51];
2415
+ return this.$$.ctx[50];
2416
2416
  }
2417
2417
  get blur() {
2418
- return this.$$.ctx[52];
2418
+ return this.$$.ctx[51];
2419
2419
  }
2420
2420
  get setQuery() {
2421
- return this.$$.ctx[53];
2421
+ return this.$$.ctx[52];
2422
2422
  }
2423
2423
  get clearList() {
2424
- return this.$$.ctx[54];
2424
+ return this.$$.ctx[53];
2425
2425
  }
2426
2426
  get clearMap() {
2427
- return this.$$.ctx[55];
2427
+ return this.$$.ctx[54];
2428
2428
  }
2429
2429
  }
2430
2430
  const Ct = [
@@ -2436,7 +2436,8 @@ const Ct = [
2436
2436
  "response",
2437
2437
  "reverseToggle",
2438
2438
  "select"
2439
- ], bn = [
2439
+ ], hn = [
2440
+ "adjustUrlQuery",
2440
2441
  "apiKey",
2441
2442
  "bbox",
2442
2443
  "clearButtonTitle",
@@ -2445,25 +2446,24 @@ const Ct = [
2445
2446
  "country",
2446
2447
  "debounceSearch",
2447
2448
  "enableReverse",
2448
- "reverseActive",
2449
2449
  "errorMessage",
2450
+ "excludeTypes",
2450
2451
  "filter",
2451
2452
  "fuzzyMatch",
2452
2453
  "language",
2453
2454
  "limit",
2455
+ "mapController",
2454
2456
  "minLength",
2455
2457
  "noResultsMessage",
2458
+ "pickedResultStyle",
2456
2459
  "placeholder",
2457
2460
  "proximity",
2461
+ "reverseActive",
2458
2462
  "reverseButtonTitle",
2459
- "showFullGeometry",
2460
2463
  "showPlaceType",
2461
2464
  "showResultsWhileTyping",
2462
- "adjustUrlQuery",
2463
2465
  "types",
2464
- "excludeTypes",
2465
- "zoom",
2466
- "mapController"
2466
+ "zoom"
2467
2467
  ];
2468
2468
  function Wt(i) {
2469
2469
  return "on" + i[0].toUpperCase() + i.slice(1);
@@ -2475,13 +2475,13 @@ const _n = ai(function(e, t) {
2475
2475
  $e(() => {
2476
2476
  if (!n.current)
2477
2477
  throw new Error();
2478
- const a = new hn({
2478
+ const a = new bn({
2479
2479
  target: n.current,
2480
2480
  props: u
2481
2481
  });
2482
2482
  return o.current = a, () => a.$destroy();
2483
2483
  }, []);
2484
- for (const a of bn)
2484
+ for (const a of hn)
2485
2485
  $e(() => {
2486
2486
  o.current && e[a] !== void 0 && o.current.$set({ [a]: e[a] });
2487
2487
  }, [e[a]]);
@@ -2489,8 +2489,8 @@ const _n = ai(function(e, t) {
2489
2489
  const r = e[Wt(a)];
2490
2490
  $e(
2491
2491
  () => {
2492
- var d;
2493
- return r && ((d = o.current) == null ? void 0 : d.$on(a, (c) => {
2492
+ var f;
2493
+ return r && ((f = o.current) == null ? void 0 : f.$on(a, (c) => {
2494
2494
  r(c.detail);
2495
2495
  }));
2496
2496
  },
@@ -2499,8 +2499,8 @@ const _n = ai(function(e, t) {
2499
2499
  }
2500
2500
  return li(t, () => ({
2501
2501
  setQuery: (a, r = !0) => {
2502
- var d;
2503
- return (d = o.current) == null ? void 0 : d.setQuery(a, r);
2502
+ var f;
2503
+ return (f = o.current) == null ? void 0 : f.setQuery(a, r);
2504
2504
  },
2505
2505
  clearMap: () => {
2506
2506
  var a;