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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/MapLibreBasedGeocodingControl.d.ts +1 -18
  2. package/leaflet-controller.d.ts +2 -3
  3. package/leaflet-controller.js +450 -453
  4. package/leaflet-controller.js.map +1 -1
  5. package/leaflet-controller.umd.js +3 -3
  6. package/leaflet-controller.umd.js.map +1 -1
  7. package/leaflet.js +949 -954
  8. package/leaflet.js.map +1 -1
  9. package/leaflet.umd.js +3 -3
  10. package/leaflet.umd.js.map +1 -1
  11. package/maplibregl-controller.d.ts +2 -3
  12. package/maplibregl-controller.js +140 -143
  13. package/maplibregl-controller.js.map +1 -1
  14. package/maplibregl-controller.umd.js +2 -2
  15. package/maplibregl-controller.umd.js.map +1 -1
  16. package/maplibregl.d.ts +0 -17
  17. package/maplibregl.js +1673 -1680
  18. package/maplibregl.js.map +1 -1
  19. package/maplibregl.umd.js +3 -3
  20. package/maplibregl.umd.js.map +1 -1
  21. package/maptilersdk.d.ts +0 -17
  22. package/maptilersdk.js +1670 -1677
  23. package/maptilersdk.js.map +1 -1
  24. package/maptilersdk.umd.js +3 -3
  25. package/maptilersdk.umd.js.map +1 -1
  26. package/openlayers-controller.d.ts +2 -3
  27. package/openlayers-controller.js +366 -369
  28. package/openlayers-controller.js.map +1 -1
  29. package/openlayers-controller.umd.js +3 -3
  30. package/openlayers-controller.umd.js.map +1 -1
  31. package/openlayers.js +1075 -1079
  32. package/openlayers.js.map +1 -1
  33. package/openlayers.umd.js +3 -3
  34. package/openlayers.umd.js.map +1 -1
  35. package/package.json +1 -1
  36. package/react.js +739 -737
  37. package/react.js.map +1 -1
  38. package/react.umd.js +1 -1
  39. package/react.umd.js.map +1 -1
  40. package/svelte/GeocodingControl.svelte +7 -5
  41. package/svelte/MapLibreBasedGeocodingControl.d.ts +1 -18
  42. package/svelte/MapLibreBasedGeocodingControl.js +2 -7
  43. package/svelte/leaflet-controller.d.ts +2 -3
  44. package/svelte/leaflet-controller.js +3 -7
  45. package/svelte/leaflet.js +2 -7
  46. package/svelte/maplibregl-controller.d.ts +2 -3
  47. package/svelte/maplibregl-controller.js +3 -7
  48. package/svelte/maplibregl.d.ts +0 -17
  49. package/svelte/maptilersdk.d.ts +0 -17
  50. package/svelte/openlayers-controller.d.ts +2 -3
  51. package/svelte/openlayers-controller.js +3 -7
  52. package/svelte/openlayers.js +2 -5
  53. package/svelte/types.d.ts +1 -2
  54. package/types.d.ts +1 -2
  55. package/vanilla.js +760 -758
  56. package/vanilla.js.map +1 -1
  57. package/vanilla.umd.js +1 -1
  58. package/vanilla.umd.js.map +1 -1
package/vanilla.js CHANGED
@@ -1,61 +1,61 @@
1
- var fi = Object.defineProperty;
2
- var mi = Object.getPrototypeOf;
3
- var gi = Reflect.get;
4
- var mt = (i) => {
1
+ var mi = Object.defineProperty;
2
+ var gi = Object.getPrototypeOf;
3
+ var hi = Reflect.get;
4
+ var gt = (i) => {
5
5
  throw TypeError(i);
6
6
  };
7
- var hi = (i, e, t) => e in i ? fi(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
8
- var et = (i, e, t) => hi(i, typeof e != "symbol" ? e + "" : e, t), tt = (i, e, t) => e.has(i) || mt("Cannot " + t);
9
- var re = (i, e, t) => (tt(i, e, "read from private field"), t ? t.call(i) : e.get(i)), it = (i, e, t) => e.has(i) ? mt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), gt = (i, e, t, n) => (tt(i, e, "write to private field"), n ? n.call(i, t) : e.set(i, t), t), ht = (i, e, t) => (tt(i, e, "access private method"), t);
10
- var bt = (i, e, t) => gi(mi(i), t, e);
11
- function I() {
7
+ var bi = (i, e, t) => e in i ? mi(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
8
+ var tt = (i, e, t) => bi(i, typeof e != "symbol" ? e + "" : e, t), it = (i, e, t) => e.has(i) || gt("Cannot " + t);
9
+ var te = (i, e, t) => (it(i, e, "read from private field"), t ? t.call(i) : e.get(i)), nt = (i, e, t) => e.has(i) ? gt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), ht = (i, e, t, n) => (it(i, e, "write to private field"), n ? n.call(i, t) : e.set(i, t), t), bt = (i, e, t) => (it(i, e, "access private method"), t);
10
+ var vt = (i, e, t) => hi(gi(i), t, e);
11
+ function A() {
12
12
  }
13
- function bi(i, e) {
13
+ function vi(i, e) {
14
14
  for (const t in e) i[t] = e[t];
15
15
  return (
16
16
  /** @type {T & S} */
17
17
  i
18
18
  );
19
19
  }
20
- function At(i) {
20
+ function Bt(i) {
21
21
  return i();
22
22
  }
23
- function vt() {
23
+ function Lt() {
24
24
  return /* @__PURE__ */ Object.create(null);
25
25
  }
26
- function ue(i) {
27
- i.forEach(At);
26
+ function se(i) {
27
+ i.forEach(Bt);
28
28
  }
29
- function Bt(i) {
29
+ function Ft(i) {
30
30
  return typeof i == "function";
31
31
  }
32
- function ve(i, e) {
32
+ function he(i, e) {
33
33
  return i != i ? e == e : i !== e || i && typeof i == "object" || typeof i == "function";
34
34
  }
35
- let Ae;
35
+ let Be;
36
36
  function K(i, e) {
37
- return i === e ? !0 : (Ae || (Ae = document.createElement("a")), Ae.href = e, i === Ae.href);
37
+ return i === e ? !0 : (Be || (Be = document.createElement("a")), Be.href = e, i === Be.href);
38
38
  }
39
- function vi(i) {
39
+ function Li(i) {
40
40
  return Object.keys(i).length === 0;
41
41
  }
42
- function Li(i, e, t, n) {
42
+ function _i(i, e, t, n) {
43
43
  if (i) {
44
- const r = Ft(i, e, t, n);
44
+ const r = Ht(i, e, t, n);
45
45
  return i[0](r);
46
46
  }
47
47
  }
48
- function Ft(i, e, t, n) {
49
- return i[1] && n ? bi(t.ctx.slice(), i[1](n(e))) : t.ctx;
48
+ function Ht(i, e, t, n) {
49
+ return i[1] && n ? vi(t.ctx.slice(), i[1](n(e))) : t.ctx;
50
50
  }
51
- function _i(i, e, t, n) {
51
+ function yi(i, e, t, n) {
52
52
  if (i[2] && n) {
53
53
  const r = i[2](n(t));
54
54
  if (e.dirty === void 0)
55
55
  return r;
56
56
  if (typeof r == "object") {
57
- const l = [], c = Math.max(e.dirty.length, r.length);
58
- for (let o = 0; o < c; o += 1)
57
+ const l = [], d = Math.max(e.dirty.length, r.length);
58
+ for (let o = 0; o < d; o += 1)
59
59
  l[o] = e.dirty[o] | r[o];
60
60
  return l;
61
61
  }
@@ -63,13 +63,13 @@ function _i(i, e, t, n) {
63
63
  }
64
64
  return e.dirty;
65
65
  }
66
- function yi(i, e, t, n, r, l) {
66
+ function wi(i, e, t, n, r, l) {
67
67
  if (r) {
68
- const c = Ft(e, t, n, l);
69
- i.p(c, r);
68
+ const d = Ht(e, t, n, l);
69
+ i.p(d, r);
70
70
  }
71
71
  }
72
- function wi(i) {
72
+ function Ei(i) {
73
73
  if (i.ctx.length > 32) {
74
74
  const e = [], t = i.ctx.length / 32;
75
75
  for (let n = 0; n < t; n++)
@@ -78,37 +78,37 @@ function wi(i) {
78
78
  }
79
79
  return -1;
80
80
  }
81
- function Lt(i) {
81
+ function _t(i) {
82
82
  return i ?? "";
83
83
  }
84
- function M(i, e) {
84
+ function k(i, e) {
85
85
  i.appendChild(e);
86
86
  }
87
- function A(i, e, t) {
87
+ function B(i, e, t) {
88
88
  i.insertBefore(e, t || null);
89
89
  }
90
90
  function D(i) {
91
91
  i.parentNode && i.parentNode.removeChild(i);
92
92
  }
93
- function R(i) {
93
+ function W(i) {
94
94
  return document.createElement(i);
95
95
  }
96
- function se(i) {
96
+ function ne(i) {
97
97
  return document.createElementNS("http://www.w3.org/2000/svg", i);
98
98
  }
99
- function fe(i) {
99
+ function ue(i) {
100
100
  return document.createTextNode(i);
101
101
  }
102
102
  function X() {
103
- return fe(" ");
103
+ return ue(" ");
104
104
  }
105
- function Ei() {
106
- return fe("");
105
+ function Si() {
106
+ return ue("");
107
107
  }
108
108
  function V(i, e, t, n) {
109
109
  return i.addEventListener(e, t, n), () => i.removeEventListener(e, t, n);
110
110
  }
111
- function Si(i) {
111
+ function pi(i) {
112
112
  return function(e) {
113
113
  return e.preventDefault(), i.call(this, e);
114
114
  };
@@ -116,216 +116,216 @@ function Si(i) {
116
116
  function a(i, e, t) {
117
117
  t == null ? i.removeAttribute(e) : i.getAttribute(e) !== t && i.setAttribute(e, t);
118
118
  }
119
- function pi(i) {
119
+ function Ni(i) {
120
120
  return Array.from(i.childNodes);
121
121
  }
122
- function Ce(i, e) {
122
+ function We(i, e) {
123
123
  e = "" + e, i.data !== e && (i.data = /** @type {string} */
124
124
  e);
125
125
  }
126
- function _t(i, e) {
126
+ function yt(i, e) {
127
127
  i.value = e ?? "";
128
128
  }
129
- function de(i, e, t) {
129
+ function le(i, e, t) {
130
130
  i.classList.toggle(e, !!t);
131
131
  }
132
- function Ni(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
132
+ function ki(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
133
133
  return new CustomEvent(i, { detail: e, bubbles: t, cancelable: n });
134
134
  }
135
- let We;
136
- function Te(i) {
137
- We = i;
135
+ let ze;
136
+ function Ce(i) {
137
+ ze = i;
138
138
  }
139
- function Ht() {
140
- if (!We) throw new Error("Function called outside component initialization");
141
- return We;
139
+ function Pt() {
140
+ if (!ze) throw new Error("Function called outside component initialization");
141
+ return ze;
142
142
  }
143
- function ki(i) {
144
- Ht().$$.on_destroy.push(i);
143
+ function Mi(i) {
144
+ Pt().$$.on_destroy.push(i);
145
145
  }
146
- function Mi() {
147
- const i = Ht();
146
+ function Ti() {
147
+ const i = Pt();
148
148
  return (e, t, { cancelable: n = !1 } = {}) => {
149
149
  const r = i.$$.callbacks[e];
150
150
  if (r) {
151
- const l = Ni(
151
+ const l = ki(
152
152
  /** @type {string} */
153
153
  e,
154
154
  t,
155
155
  { cancelable: n }
156
156
  );
157
- return r.slice().forEach((c) => {
158
- c.call(i, l);
157
+ return r.slice().forEach((d) => {
158
+ d.call(i, l);
159
159
  }), !l.defaultPrevented;
160
160
  }
161
161
  return !0;
162
162
  };
163
163
  }
164
- function yt(i, e) {
164
+ function wt(i, e) {
165
165
  const t = i.$$.callbacks[e.type];
166
166
  t && t.slice().forEach((n) => n.call(this, e));
167
167
  }
168
- const Se = [], rt = [];
168
+ const Se = [], ot = [];
169
169
  let pe = [];
170
- const wt = [], Ti = /* @__PURE__ */ Promise.resolve();
171
- let ot = !1;
172
- function Ci() {
173
- ot || (ot = !0, Ti.then(jt));
170
+ const Et = [], Ci = /* @__PURE__ */ Promise.resolve();
171
+ let st = !1;
172
+ function Wi() {
173
+ st || (st = !0, Ci.then(jt));
174
174
  }
175
- function st(i) {
175
+ function at(i) {
176
176
  pe.push(i);
177
177
  }
178
- const nt = /* @__PURE__ */ new Set();
178
+ const rt = /* @__PURE__ */ new Set();
179
179
  let Ee = 0;
180
180
  function jt() {
181
181
  if (Ee !== 0)
182
182
  return;
183
- const i = We;
183
+ const i = ze;
184
184
  do {
185
185
  try {
186
186
  for (; Ee < Se.length; ) {
187
187
  const e = Se[Ee];
188
- Ee++, Te(e), Wi(e.$$);
188
+ Ee++, Ce(e), zi(e.$$);
189
189
  }
190
190
  } catch (e) {
191
191
  throw Se.length = 0, Ee = 0, e;
192
192
  }
193
- for (Te(null), Se.length = 0, Ee = 0; rt.length; ) rt.pop()();
193
+ for (Ce(null), Se.length = 0, Ee = 0; ot.length; ) ot.pop()();
194
194
  for (let e = 0; e < pe.length; e += 1) {
195
195
  const t = pe[e];
196
- nt.has(t) || (nt.add(t), t());
196
+ rt.has(t) || (rt.add(t), t());
197
197
  }
198
198
  pe.length = 0;
199
199
  } while (Se.length);
200
- for (; wt.length; )
201
- wt.pop()();
202
- ot = !1, nt.clear(), Te(i);
200
+ for (; Et.length; )
201
+ Et.pop()();
202
+ st = !1, rt.clear(), Ce(i);
203
203
  }
204
- function Wi(i) {
204
+ function zi(i) {
205
205
  if (i.fragment !== null) {
206
- i.update(), ue(i.before_update);
206
+ i.update(), se(i.before_update);
207
207
  const e = i.dirty;
208
- i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(st);
208
+ i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(at);
209
209
  }
210
210
  }
211
- function zi(i) {
211
+ function Ri(i) {
212
212
  const e = [], t = [];
213
213
  pe.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), pe = e;
214
214
  }
215
- const Be = /* @__PURE__ */ new Set();
216
- let be;
217
- function Fe() {
218
- be = {
215
+ const Fe = /* @__PURE__ */ new Set();
216
+ let ge;
217
+ function He() {
218
+ ge = {
219
219
  r: 0,
220
220
  c: [],
221
- p: be
221
+ p: ge
222
222
  // parent group
223
223
  };
224
224
  }
225
- function He() {
226
- be.r || ue(be.c), be = be.p;
225
+ function Pe() {
226
+ ge.r || se(ge.c), ge = ge.p;
227
227
  }
228
228
  function F(i, e) {
229
- i && i.i && (Be.delete(i), i.i(e));
229
+ i && i.i && (Fe.delete(i), i.i(e));
230
230
  }
231
231
  function Q(i, e, t, n) {
232
232
  if (i && i.o) {
233
- if (Be.has(i)) return;
234
- Be.add(i), be.c.push(() => {
235
- Be.delete(i), n && (t && i.d(1), n());
233
+ if (Fe.has(i)) return;
234
+ Fe.add(i), ge.c.push(() => {
235
+ Fe.delete(i), n && (t && i.d(1), n());
236
236
  }), i.o(e);
237
237
  } else n && n();
238
238
  }
239
- function Et(i) {
239
+ function St(i) {
240
240
  return (i == null ? void 0 : i.length) !== void 0 ? i : Array.from(i);
241
241
  }
242
- function Ri(i, e) {
242
+ function Oi(i, e) {
243
243
  Q(i, 1, 1, () => {
244
244
  e.delete(i.key);
245
245
  });
246
246
  }
247
- function Oi(i, e, t, n, r, l, c, o, d, u, f, h) {
248
- let v = i.length, _ = l.length, w = v;
249
- const W = {};
250
- for (; w--; ) W[i[w].key] = w;
251
- const y = [], E = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), z = [];
252
- for (w = _; w--; ) {
253
- const g = h(r, l, w), m = t(g);
254
- let T = c.get(m);
255
- T ? z.push(() => T.p(g, e)) : (T = u(m, g), T.c()), E.set(m, y[w] = T), m in W && C.set(m, Math.abs(w - W[m]));
247
+ function Di(i, e, t, n, r, l, d, o, m, u, f, v) {
248
+ let b = i.length, y = l.length, _ = b;
249
+ const z = {};
250
+ for (; _--; ) z[i[_].key] = _;
251
+ const L = [], E = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), T = [];
252
+ for (_ = y; _--; ) {
253
+ const c = v(r, l, _), g = t(c);
254
+ let M = d.get(g);
255
+ M ? T.push(() => M.p(c, e)) : (M = u(g, c), M.c()), E.set(g, L[_] = M), g in z && C.set(g, Math.abs(_ - z[g]));
256
256
  }
257
- const p = /* @__PURE__ */ new Set(), G = /* @__PURE__ */ new Set();
258
- function b(g) {
259
- F(g, 1), g.m(o, f), c.set(g.key, g), f = g.first, _--;
257
+ const p = /* @__PURE__ */ new Set(), H = /* @__PURE__ */ new Set();
258
+ function R(c) {
259
+ F(c, 1), c.m(o, f), d.set(c.key, c), f = c.first, y--;
260
260
  }
261
- for (; v && _; ) {
262
- const g = y[_ - 1], m = i[v - 1], T = g.key, H = m.key;
263
- g === m ? (f = g.first, v--, _--) : E.has(H) ? !c.has(T) || p.has(T) ? b(g) : G.has(H) ? v-- : C.get(T) > C.get(H) ? (G.add(T), b(g)) : (p.add(H), v--) : (d(m, c), v--);
261
+ for (; b && y; ) {
262
+ const c = L[y - 1], g = i[b - 1], M = c.key, Z = g.key;
263
+ c === g ? (f = c.first, b--, y--) : E.has(Z) ? !d.has(M) || p.has(M) ? R(c) : H.has(Z) ? b-- : C.get(M) > C.get(Z) ? (H.add(M), R(c)) : (p.add(Z), b--) : (m(g, d), b--);
264
264
  }
265
- for (; v--; ) {
266
- const g = i[v];
267
- E.has(g.key) || d(g, c);
265
+ for (; b--; ) {
266
+ const c = i[b];
267
+ E.has(c.key) || m(c, d);
268
268
  }
269
- for (; _; ) b(y[_ - 1]);
270
- return ue(z), y;
269
+ for (; y; ) R(L[y - 1]);
270
+ return se(T), L;
271
271
  }
272
- function me(i) {
272
+ function ce(i) {
273
273
  i && i.c();
274
274
  }
275
- function ae(i, e, t) {
275
+ function re(i, e, t) {
276
276
  const { fragment: n, after_update: r } = i.$$;
277
- n && n.m(e, t), st(() => {
278
- const l = i.$$.on_mount.map(At).filter(Bt);
279
- i.$$.on_destroy ? i.$$.on_destroy.push(...l) : ue(l), i.$$.on_mount = [];
280
- }), r.forEach(st);
277
+ n && n.m(e, t), at(() => {
278
+ const l = i.$$.on_mount.map(Bt).filter(Ft);
279
+ i.$$.on_destroy ? i.$$.on_destroy.push(...l) : se(l), i.$$.on_mount = [];
280
+ }), r.forEach(at);
281
281
  }
282
- function le(i, e) {
282
+ function oe(i, e) {
283
283
  const t = i.$$;
284
- t.fragment !== null && (zi(t.after_update), ue(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
284
+ t.fragment !== null && (Ri(t.after_update), se(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
285
285
  }
286
- function Di(i, e) {
287
- i.$$.dirty[0] === -1 && (Se.push(i), Ci(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
286
+ function Ui(i, e) {
287
+ i.$$.dirty[0] === -1 && (Se.push(i), Wi(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
288
288
  }
289
- function Le(i, e, t, n, r, l, c = null, o = [-1]) {
290
- const d = We;
291
- Te(i);
289
+ function be(i, e, t, n, r, l, d = null, o = [-1]) {
290
+ const m = ze;
291
+ Ce(i);
292
292
  const u = i.$$ = {
293
293
  fragment: null,
294
294
  ctx: [],
295
295
  // state
296
296
  props: l,
297
- update: I,
297
+ update: A,
298
298
  not_equal: r,
299
- bound: vt(),
299
+ bound: Lt(),
300
300
  // lifecycle
301
301
  on_mount: [],
302
302
  on_destroy: [],
303
303
  on_disconnect: [],
304
304
  before_update: [],
305
305
  after_update: [],
306
- context: new Map(e.context || (d ? d.$$.context : [])),
306
+ context: new Map(e.context || (m ? m.$$.context : [])),
307
307
  // everything else
308
- callbacks: vt(),
308
+ callbacks: Lt(),
309
309
  dirty: o,
310
310
  skip_bound: !1,
311
- root: e.target || d.$$.root
311
+ root: e.target || m.$$.root
312
312
  };
313
- c && c(u.root);
313
+ d && d(u.root);
314
314
  let f = !1;
315
- if (u.ctx = t ? t(i, e.props || {}, (h, v, ..._) => {
316
- const w = _.length ? _[0] : v;
317
- return u.ctx && r(u.ctx[h], u.ctx[h] = w) && (!u.skip_bound && u.bound[h] && u.bound[h](w), f && Di(i, h)), v;
318
- }) : [], u.update(), f = !0, ue(u.before_update), u.fragment = n ? n(u.ctx) : !1, e.target) {
315
+ if (u.ctx = t ? t(i, e.props || {}, (v, b, ...y) => {
316
+ const _ = y.length ? y[0] : b;
317
+ return u.ctx && r(u.ctx[v], u.ctx[v] = _) && (!u.skip_bound && u.bound[v] && u.bound[v](_), f && Ui(i, v)), b;
318
+ }) : [], u.update(), f = !0, se(u.before_update), u.fragment = n ? n(u.ctx) : !1, e.target) {
319
319
  if (e.hydrate) {
320
- const h = pi(e.target);
321
- u.fragment && u.fragment.l(h), h.forEach(D);
320
+ const v = Ni(e.target);
321
+ u.fragment && u.fragment.l(v), v.forEach(D);
322
322
  } else
323
323
  u.fragment && u.fragment.c();
324
- e.intro && F(i.$$.fragment), ae(i, e.target, e.anchor), jt();
324
+ e.intro && F(i.$$.fragment), re(i, e.target, e.anchor), jt();
325
325
  }
326
- Te(d);
326
+ Ce(m);
327
327
  }
328
- class _e {
328
+ class ve {
329
329
  constructor() {
330
330
  /**
331
331
  * ### PRIVATE API
@@ -334,7 +334,7 @@ class _e {
334
334
  *
335
335
  * @type {any}
336
336
  */
337
- et(this, "$$");
337
+ tt(this, "$$");
338
338
  /**
339
339
  * ### PRIVATE API
340
340
  *
@@ -342,11 +342,11 @@ class _e {
342
342
  *
343
343
  * @type {any}
344
344
  */
345
- et(this, "$$set");
345
+ tt(this, "$$set");
346
346
  }
347
347
  /** @returns {void} */
348
348
  $destroy() {
349
- le(this, 1), this.$destroy = I;
349
+ oe(this, 1), this.$destroy = A;
350
350
  }
351
351
  /**
352
352
  * @template {Extract<keyof Events, string>} K
@@ -355,8 +355,8 @@ class _e {
355
355
  * @returns {() => void}
356
356
  */
357
357
  $on(e, t) {
358
- if (!Bt(t))
359
- return I;
358
+ if (!Ft(t))
359
+ return A;
360
360
  const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
361
361
  return n.push(t), () => {
362
362
  const r = n.indexOf(t);
@@ -368,60 +368,60 @@ class _e {
368
368
  * @returns {void}
369
369
  */
370
370
  $set(e) {
371
- this.$$set && !vi(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
371
+ this.$$set && !Li(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
372
372
  }
373
373
  }
374
- const Ui = "4";
375
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ui);
376
- function Ii(i) {
374
+ const Ii = "4";
375
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ii);
376
+ function Ai(i) {
377
377
  let e, t;
378
378
  return {
379
379
  c() {
380
- e = se("svg"), t = se("path"), a(t, "d", "M13.12.706a.982.982 0 0 0-1.391 0L6.907 5.517 2.087.696a.982.982 0 1 0-1.391 1.39l4.821 4.821L.696 11.73a.982.982 0 1 0 1.39 1.39l4.821-4.821 4.822 4.821a.982.982 0 1 0 1.39-1.39L8.298 6.908l4.821-4.822a.988.988 0 0 0 0-1.38Z"), a(e, "viewBox", "0 0 14 14"), a(e, "width", "13"), a(e, "height", "13"), a(e, "class", "svelte-en2qvf");
380
+ e = ne("svg"), t = ne("path"), a(t, "d", "M13.12.706a.982.982 0 0 0-1.391 0L6.907 5.517 2.087.696a.982.982 0 1 0-1.391 1.39l4.821 4.821L.696 11.73a.982.982 0 1 0 1.39 1.39l4.821-4.821 4.822 4.821a.982.982 0 1 0 1.39-1.39L8.298 6.908l4.821-4.822a.988.988 0 0 0 0-1.38Z"), a(e, "viewBox", "0 0 14 14"), a(e, "width", "13"), a(e, "height", "13"), a(e, "class", "svelte-en2qvf");
381
381
  },
382
382
  m(n, r) {
383
- A(n, e, r), M(e, t);
383
+ B(n, e, r), k(e, t);
384
384
  },
385
- p: I,
386
- i: I,
387
- o: I,
385
+ p: A,
386
+ i: A,
387
+ o: A,
388
388
  d(n) {
389
389
  n && D(e);
390
390
  }
391
391
  };
392
392
  }
393
- class Pt extends _e {
393
+ class Zt extends ve {
394
394
  constructor(e) {
395
- super(), Le(this, e, null, Ii, ve, {});
395
+ super(), be(this, e, null, Ai, he, {});
396
396
  }
397
397
  }
398
- function Ai(i) {
398
+ function Bi(i) {
399
399
  let e, t;
400
400
  return {
401
401
  c() {
402
- e = se("svg"), t = se("path"), a(t, "d", "M15 0C6.705 0 0 6.705 0 15C0 23.295 6.705 30 15 30C23.295 30 30 23.295 30 15C30 6.705 23.295 0 15 0ZM22.5 20.385L20.385 22.5L15 17.115L9.615 22.5L7.5 20.385L12.885 15L7.5 9.615L9.615 7.5L15 12.885L20.385 7.5L22.5 9.615L17.115 15L22.5 20.385Z"), a(e, "viewBox", "0 0 30 30"), a(e, "fill", "none"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "class", "svelte-d2loi5");
402
+ e = ne("svg"), t = ne("path"), a(t, "d", "M15 0C6.705 0 0 6.705 0 15C0 23.295 6.705 30 15 30C23.295 30 30 23.295 30 15C30 6.705 23.295 0 15 0ZM22.5 20.385L20.385 22.5L15 17.115L9.615 22.5L7.5 20.385L12.885 15L7.5 9.615L9.615 7.5L15 12.885L20.385 7.5L22.5 9.615L17.115 15L22.5 20.385Z"), a(e, "viewBox", "0 0 30 30"), a(e, "fill", "none"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "class", "svelte-d2loi5");
403
403
  },
404
404
  m(n, r) {
405
- A(n, e, r), M(e, t);
405
+ B(n, e, r), k(e, t);
406
406
  },
407
- p: I,
408
- i: I,
409
- o: I,
407
+ p: A,
408
+ i: A,
409
+ o: A,
410
410
  d(n) {
411
411
  n && D(e);
412
412
  }
413
413
  };
414
414
  }
415
- class Zt extends _e {
415
+ class qt extends ve {
416
416
  constructor(e) {
417
- super(), Le(this, e, null, Ai, ve, {});
417
+ super(), be(this, e, null, Bi, he, {});
418
418
  }
419
419
  }
420
- function Bi(i) {
420
+ function Fi(i) {
421
421
  let e, t;
422
422
  return {
423
423
  c() {
424
- e = R("img"), K(e.src, t = /*iconsBaseUrl*/
424
+ e = W("img"), K(e.src, t = /*iconsBaseUrl*/
425
425
  i[3] + "area.svg") || a(e, "src", t), a(
426
426
  e,
427
427
  "alt",
@@ -430,7 +430,7 @@ function Bi(i) {
430
430
  ), a(e, "class", "svelte-ltkwvy");
431
431
  },
432
432
  m(n, r) {
433
- A(n, e, r);
433
+ B(n, e, r);
434
434
  },
435
435
  p(n, r) {
436
436
  r & /*iconsBaseUrl*/
@@ -448,11 +448,11 @@ function Bi(i) {
448
448
  }
449
449
  };
450
450
  }
451
- function Fi(i) {
451
+ function Hi(i) {
452
452
  let e, t;
453
453
  return {
454
454
  c() {
455
- e = R("img"), K(e.src, t = /*iconsBaseUrl*/
455
+ e = W("img"), K(e.src, t = /*iconsBaseUrl*/
456
456
  i[3] + "reverse.svg") || a(e, "src", t), a(
457
457
  e,
458
458
  "alt",
@@ -461,7 +461,7 @@ function Fi(i) {
461
461
  ), a(e, "class", "svelte-ltkwvy");
462
462
  },
463
463
  m(n, r) {
464
- A(n, e, r);
464
+ B(n, e, r);
465
465
  },
466
466
  p(n, r) {
467
467
  r & /*iconsBaseUrl*/
@@ -479,11 +479,11 @@ function Fi(i) {
479
479
  }
480
480
  };
481
481
  }
482
- function Hi(i) {
482
+ function Pi(i) {
483
483
  let e, t;
484
484
  return {
485
485
  c() {
486
- e = R("img"), K(e.src, t = /*iconsBaseUrl*/
486
+ e = W("img"), K(e.src, t = /*iconsBaseUrl*/
487
487
  i[3] + "poi.svg") || a(e, "src", t), a(
488
488
  e,
489
489
  "alt",
@@ -492,7 +492,7 @@ function Hi(i) {
492
492
  ), a(e, "class", "svelte-ltkwvy");
493
493
  },
494
494
  m(n, r) {
495
- A(n, e, r);
495
+ B(n, e, r);
496
496
  },
497
497
  p(n, r) {
498
498
  r & /*iconsBaseUrl*/
@@ -514,7 +514,7 @@ function ji(i) {
514
514
  let e, t;
515
515
  return {
516
516
  c() {
517
- e = R("img"), K(e.src, t = /*iconsBaseUrl*/
517
+ e = W("img"), K(e.src, t = /*iconsBaseUrl*/
518
518
  i[3] + "postal_code.svg") || a(e, "src", t), a(
519
519
  e,
520
520
  "alt",
@@ -523,7 +523,7 @@ function ji(i) {
523
523
  ), a(e, "class", "svelte-ltkwvy");
524
524
  },
525
525
  m(n, r) {
526
- A(n, e, r);
526
+ B(n, e, r);
527
527
  },
528
528
  p(n, r) {
529
529
  r & /*iconsBaseUrl*/
@@ -541,11 +541,11 @@ function ji(i) {
541
541
  }
542
542
  };
543
543
  }
544
- function Pi(i) {
544
+ function Zi(i) {
545
545
  let e, t;
546
546
  return {
547
547
  c() {
548
- e = R("img"), K(e.src, t = /*iconsBaseUrl*/
548
+ e = W("img"), K(e.src, t = /*iconsBaseUrl*/
549
549
  i[3] + "street.svg") || a(e, "src", t), a(
550
550
  e,
551
551
  "alt",
@@ -554,7 +554,7 @@ function Pi(i) {
554
554
  ), a(e, "class", "svelte-ltkwvy");
555
555
  },
556
556
  m(n, r) {
557
- A(n, e, r);
557
+ B(n, e, r);
558
558
  },
559
559
  p(n, r) {
560
560
  r & /*iconsBaseUrl*/
@@ -572,11 +572,11 @@ function Pi(i) {
572
572
  }
573
573
  };
574
574
  }
575
- function Zi(i) {
575
+ function qi(i) {
576
576
  let e, t;
577
577
  return {
578
578
  c() {
579
- e = R("img"), K(e.src, t = /*iconsBaseUrl*/
579
+ e = W("img"), K(e.src, t = /*iconsBaseUrl*/
580
580
  i[3] + "road.svg") || a(e, "src", t), a(
581
581
  e,
582
582
  "alt",
@@ -585,7 +585,7 @@ function Zi(i) {
585
585
  ), a(e, "class", "svelte-ltkwvy");
586
586
  },
587
587
  m(n, r) {
588
- A(n, e, r);
588
+ B(n, e, r);
589
589
  },
590
590
  p(n, r) {
591
591
  r & /*iconsBaseUrl*/
@@ -603,11 +603,11 @@ function Zi(i) {
603
603
  }
604
604
  };
605
605
  }
606
- function qi(i) {
606
+ function Gi(i) {
607
607
  let e, t;
608
608
  return {
609
609
  c() {
610
- e = R("img"), K(e.src, t = /*iconsBaseUrl*/
610
+ e = W("img"), K(e.src, t = /*iconsBaseUrl*/
611
611
  i[3] + "housenumber.svg") || a(e, "src", t), a(
612
612
  e,
613
613
  "alt",
@@ -616,7 +616,7 @@ function qi(i) {
616
616
  ), a(e, "class", "svelte-ltkwvy");
617
617
  },
618
618
  m(n, r) {
619
- A(n, e, r);
619
+ B(n, e, r);
620
620
  },
621
621
  p(n, r) {
622
622
  r & /*iconsBaseUrl*/
@@ -634,11 +634,11 @@ function qi(i) {
634
634
  }
635
635
  };
636
636
  }
637
- function Gi(i) {
637
+ function Qi(i) {
638
638
  let e, t, n, r;
639
639
  return {
640
640
  c() {
641
- e = R("img"), K(e.src, t = /*imageUrl*/
641
+ e = W("img"), K(e.src, t = /*imageUrl*/
642
642
  i[5]) || a(e, "src", t), a(
643
643
  e,
644
644
  "alt",
@@ -646,18 +646,18 @@ function Gi(i) {
646
646
  i[4]
647
647
  ), a(e, "class", "svelte-ltkwvy");
648
648
  },
649
- m(l, c) {
650
- A(l, e, c), n || (r = V(
649
+ m(l, d) {
650
+ B(l, e, d), n || (r = V(
651
651
  e,
652
652
  "error",
653
653
  /*error_handler*/
654
654
  i[14]
655
655
  ), n = !0);
656
656
  },
657
- p(l, c) {
658
- c & /*imageUrl*/
657
+ p(l, d) {
658
+ d & /*imageUrl*/
659
659
  32 && !K(e.src, t = /*imageUrl*/
660
- l[5]) && a(e, "src", t), c & /*category*/
660
+ l[5]) && a(e, "src", t), d & /*category*/
661
661
  16 && a(
662
662
  e,
663
663
  "alt",
@@ -670,21 +670,21 @@ function Gi(i) {
670
670
  }
671
671
  };
672
672
  }
673
- function St(i) {
673
+ function pt(i) {
674
674
  let e, t;
675
675
  return {
676
676
  c() {
677
- e = R("span"), t = fe(
677
+ e = W("span"), t = ue(
678
678
  /*placeType*/
679
679
  i[6]
680
680
  ), a(e, "class", "secondary svelte-ltkwvy");
681
681
  },
682
682
  m(n, r) {
683
- A(n, e, r), M(e, t);
683
+ B(n, e, r), k(e, t);
684
684
  },
685
685
  p(n, r) {
686
686
  r & /*placeType*/
687
- 64 && Ce(
687
+ 64 && We(
688
688
  t,
689
689
  /*placeType*/
690
690
  n[6]
@@ -695,8 +695,8 @@ function St(i) {
695
695
  }
696
696
  };
697
697
  }
698
- function Qi(i) {
699
- let e, t, n, r, l, c, o, d, u, f = (
698
+ function Ki(i) {
699
+ let e, t, n, r, l, d, o, m, u, f = (
700
700
  /*isReverse*/
701
701
  (i[7] ? (
702
702
  /*feature*/
@@ -705,7 +705,7 @@ function Qi(i) {
705
705
  /*feature*/
706
706
  i[0].place_name.replace(/,.*/, "")
707
707
  )) + ""
708
- ), h, v, _ = (
708
+ ), v, b, y = (
709
709
  /*showPlaceType*/
710
710
  i[2] === "always" || /*showPlaceType*/
711
711
  i[2] !== "never" && !/*feature*/
@@ -716,48 +716,48 @@ function Qi(i) {
716
716
  i[0].id.startsWith("poi.") || !/*imageUrl*/
717
717
  i[5]) && !/*isReverse*/
718
718
  i[7]
719
- ), w, W, y = (
719
+ ), _, z, L = (
720
720
  /*isReverse*/
721
721
  (i[7] ? "" : (
722
722
  /*feature*/
723
723
  i[0].place_name.replace(/[^,]*,?\s*/, "")
724
724
  )) + ""
725
- ), E, C, z;
726
- function p(m, T) {
727
- return T & /*feature*/
728
- 1 && (t = null), T & /*feature*/
729
- 1 && (n = null), T & /*feature*/
730
- 1 && (r = null), T & /*feature*/
725
+ ), E, C, T;
726
+ function p(g, M) {
727
+ return M & /*feature*/
728
+ 1 && (t = null), M & /*feature*/
729
+ 1 && (n = null), M & /*feature*/
730
+ 1 && (r = null), M & /*feature*/
731
731
  1 && (l = null), /*imageUrl*/
732
- m[5] ? Gi : (
732
+ g[5] ? Qi : (
733
733
  /*feature*/
734
- m[0].address ? qi : (t == null && (t = !!/*feature*/
735
- m[0].id.startsWith("road.")), t ? Zi : (n == null && (n = !!/*feature*/
736
- m[0].id.startsWith("address.")), n ? Pi : (r == null && (r = !!/*feature*/
737
- m[0].id.startsWith("postal_code.")), r ? ji : (l == null && (l = !!/*feature*/
738
- m[0].id.startsWith("poi.")), l ? Hi : (
734
+ g[0].address ? Gi : (t == null && (t = !!/*feature*/
735
+ g[0].id.startsWith("road.")), t ? qi : (n == null && (n = !!/*feature*/
736
+ g[0].id.startsWith("address.")), n ? Zi : (r == null && (r = !!/*feature*/
737
+ g[0].id.startsWith("postal_code.")), r ? ji : (l == null && (l = !!/*feature*/
738
+ g[0].id.startsWith("poi.")), l ? Pi : (
739
739
  /*isReverse*/
740
- m[7] ? Fi : Bi
740
+ g[7] ? Hi : Fi
741
741
  )))))
742
742
  );
743
743
  }
744
- let G = p(i, -1), b = G(i), g = _ && St(i);
744
+ let H = p(i, -1), R = H(i), c = y && pt(i);
745
745
  return {
746
746
  c() {
747
- e = R("li"), b.c(), c = X(), o = R("span"), d = R("span"), u = R("span"), h = fe(f), v = X(), g && g.c(), w = X(), W = R("span"), E = fe(y), a(u, "class", "primary svelte-ltkwvy"), a(d, "class", "svelte-ltkwvy"), a(W, "class", "line2 svelte-ltkwvy"), a(o, "class", "texts svelte-ltkwvy"), a(e, "tabindex", "0"), a(
747
+ e = W("li"), R.c(), d = X(), o = W("span"), m = W("span"), u = W("span"), v = ue(f), b = X(), c && c.c(), _ = X(), z = W("span"), E = ue(L), a(u, "class", "primary svelte-ltkwvy"), a(m, "class", "svelte-ltkwvy"), a(z, "class", "line2 svelte-ltkwvy"), a(o, "class", "texts svelte-ltkwvy"), a(e, "tabindex", "0"), a(
748
748
  e,
749
749
  "data-selected",
750
750
  /*selected*/
751
751
  i[1]
752
- ), a(e, "class", "svelte-ltkwvy"), de(
752
+ ), a(e, "class", "svelte-ltkwvy"), le(
753
753
  e,
754
754
  "selected",
755
755
  /*selected*/
756
756
  i[1]
757
757
  );
758
758
  },
759
- m(m, T) {
760
- A(m, e, T), b.m(e, null), M(e, c), M(e, o), M(o, d), M(d, u), M(u, h), M(d, v), g && g.m(d, null), M(o, w), M(o, W), M(W, E), C || (z = [
759
+ m(g, M) {
760
+ B(g, e, M), R.m(e, null), k(e, d), k(e, o), k(o, m), k(m, u), k(u, v), k(m, b), c && c.m(m, null), k(o, _), k(o, z), k(z, E), C || (T = [
761
761
  V(
762
762
  e,
763
763
  "mouseenter",
@@ -772,98 +772,98 @@ function Qi(i) {
772
772
  )
773
773
  ], C = !0);
774
774
  },
775
- p(m, [T]) {
776
- G === (G = p(m, T)) && b ? b.p(m, T) : (b.d(1), b = G(m), b && (b.c(), b.m(e, c))), T & /*feature*/
775
+ p(g, [M]) {
776
+ H === (H = p(g, M)) && R ? R.p(g, M) : (R.d(1), R = H(g), R && (R.c(), R.m(e, d))), M & /*feature*/
777
777
  1 && f !== (f = /*isReverse*/
778
- (m[7] ? (
778
+ (g[7] ? (
779
779
  /*feature*/
780
- m[0].place_name
780
+ g[0].place_name
781
781
  ) : (
782
782
  /*feature*/
783
- m[0].place_name.replace(/,.*/, "")
784
- )) + "") && Ce(h, f), T & /*showPlaceType, feature, imageUrl*/
785
- 37 && (_ = /*showPlaceType*/
786
- m[2] === "always" || /*showPlaceType*/
787
- m[2] !== "never" && !/*feature*/
788
- m[0].address && !/*feature*/
789
- m[0].id.startsWith("road.") && !/*feature*/
790
- m[0].id.startsWith("address.") && !/*feature*/
791
- m[0].id.startsWith("postal_code.") && (!/*feature*/
792
- m[0].id.startsWith("poi.") || !/*imageUrl*/
793
- m[5]) && !/*isReverse*/
794
- m[7]), _ ? g ? g.p(m, T) : (g = St(m), g.c(), g.m(d, null)) : g && (g.d(1), g = null), T & /*feature*/
795
- 1 && y !== (y = /*isReverse*/
796
- (m[7] ? "" : (
783
+ g[0].place_name.replace(/,.*/, "")
784
+ )) + "") && We(v, f), M & /*showPlaceType, feature, imageUrl*/
785
+ 37 && (y = /*showPlaceType*/
786
+ g[2] === "always" || /*showPlaceType*/
787
+ g[2] !== "never" && !/*feature*/
788
+ g[0].address && !/*feature*/
789
+ g[0].id.startsWith("road.") && !/*feature*/
790
+ g[0].id.startsWith("address.") && !/*feature*/
791
+ g[0].id.startsWith("postal_code.") && (!/*feature*/
792
+ g[0].id.startsWith("poi.") || !/*imageUrl*/
793
+ g[5]) && !/*isReverse*/
794
+ g[7]), y ? c ? c.p(g, M) : (c = pt(g), c.c(), c.m(m, null)) : c && (c.d(1), c = null), M & /*feature*/
795
+ 1 && L !== (L = /*isReverse*/
796
+ (g[7] ? "" : (
797
797
  /*feature*/
798
- m[0].place_name.replace(/[^,]*,?\s*/, "")
799
- )) + "") && Ce(E, y), T & /*selected*/
798
+ g[0].place_name.replace(/[^,]*,?\s*/, "")
799
+ )) + "") && We(E, L), M & /*selected*/
800
800
  2 && a(
801
801
  e,
802
802
  "data-selected",
803
803
  /*selected*/
804
- m[1]
805
- ), T & /*selected*/
806
- 2 && de(
804
+ g[1]
805
+ ), M & /*selected*/
806
+ 2 && le(
807
807
  e,
808
808
  "selected",
809
809
  /*selected*/
810
- m[1]
810
+ g[1]
811
811
  );
812
812
  },
813
- i: I,
814
- o: I,
815
- d(m) {
816
- m && D(e), b.d(), g && g.d(), C = !1, ue(z);
813
+ i: A,
814
+ o: A,
815
+ d(g) {
816
+ g && D(e), R.d(), c && c.d(), C = !1, se(T);
817
817
  }
818
818
  };
819
819
  }
820
- function Ki(i, e, t) {
821
- var z;
822
- let n, r, { feature: l } = e, { selected: c = !1 } = e, { showPlaceType: o } = e, { missingIconsCache: d } = e, { iconsBaseUrl: u } = e;
823
- const f = (z = l.properties) == null ? void 0 : z.categories;
824
- let h, v, _ = 0, w = l.place_type[0] === "reverse";
825
- function W() {
826
- v && d.add(v), t(10, _++, _);
820
+ function Vi(i, e, t) {
821
+ var T;
822
+ let n, r, { feature: l } = e, { selected: d = !1 } = e, { showPlaceType: o } = e, { missingIconsCache: m } = e, { iconsBaseUrl: u } = e;
823
+ const f = (T = l.properties) == null ? void 0 : T.categories;
824
+ let v, b, y = 0, _ = l.place_type[0] === "reverse";
825
+ function z() {
826
+ b && m.add(b), t(10, y++, y);
827
827
  }
828
- function y(p) {
829
- yt.call(this, i, p);
828
+ function L(p) {
829
+ wt.call(this, i, p);
830
830
  }
831
831
  function E(p) {
832
- yt.call(this, i, p);
832
+ wt.call(this, i, p);
833
833
  }
834
- const C = () => W();
834
+ const C = () => z();
835
835
  return i.$$set = (p) => {
836
- "feature" in p && t(0, l = p.feature), "selected" in p && t(1, c = p.selected), "showPlaceType" in p && t(2, o = p.showPlaceType), "missingIconsCache" in p && t(9, d = p.missingIconsCache), "iconsBaseUrl" in p && t(3, u = p.iconsBaseUrl);
836
+ "feature" in p && t(0, l = p.feature), "selected" in p && t(1, d = p.selected), "showPlaceType" in p && t(2, o = p.showPlaceType), "missingIconsCache" in p && t(9, m = p.missingIconsCache), "iconsBaseUrl" in p && t(3, u = p.iconsBaseUrl);
837
837
  }, i.$$.update = () => {
838
- var p, G, b, g;
838
+ var p, H, R, c;
839
839
  if (i.$$.dirty & /*loadIconAttempt, index, category, iconsBaseUrl, imageUrl, missingIconsCache*/
840
840
  3640)
841
841
  do
842
- t(11, n--, n), t(4, h = f == null ? void 0 : f[n]), t(5, v = h ? u + h.replace(/ /g, "_") + ".svg" : void 0);
843
- while (n > -1 && (!v || d.has(v)));
842
+ t(11, n--, n), t(4, v = f == null ? void 0 : f[n]), t(5, b = v ? u + v.replace(/ /g, "_") + ".svg" : void 0);
843
+ while (n > -1 && (!b || m.has(b)));
844
844
  i.$$.dirty & /*feature*/
845
- 1 && t(6, r = ((G = (p = l.properties) == null ? void 0 : p.categories) == null ? void 0 : G.join(", ")) ?? ((g = (b = l.properties) == null ? void 0 : b.place_type_name) == null ? void 0 : g[0]) ?? l.place_type[0]);
845
+ 1 && t(6, r = ((H = (p = l.properties) == null ? void 0 : p.categories) == null ? void 0 : H.join(", ")) ?? ((c = (R = l.properties) == null ? void 0 : R.place_type_name) == null ? void 0 : c[0]) ?? l.place_type[0]);
846
846
  }, t(11, n = (f == null ? void 0 : f.length) ?? 0), [
847
847
  l,
848
- c,
848
+ d,
849
849
  o,
850
850
  u,
851
- h,
852
851
  v,
852
+ b,
853
853
  r,
854
- w,
855
- W,
856
- d,
857
854
  _,
858
- n,
855
+ z,
856
+ m,
859
857
  y,
858
+ n,
859
+ L,
860
860
  E,
861
861
  C
862
862
  ];
863
863
  }
864
- class Vi extends _e {
864
+ class xi extends ve {
865
865
  constructor(e) {
866
- super(), Le(this, e, Ki, Qi, ve, {
866
+ super(), be(this, e, Vi, Ki, he, {
867
867
  feature: 0,
868
868
  selected: 1,
869
869
  showPlaceType: 2,
@@ -872,113 +872,113 @@ class Vi extends _e {
872
872
  });
873
873
  }
874
874
  }
875
- function xi(i) {
875
+ function Ji(i) {
876
876
  let e;
877
877
  return {
878
878
  c() {
879
- e = R("div"), e.innerHTML = '<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>', a(e, "class", "svelte-7cmwmc");
879
+ 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>', a(e, "class", "svelte-7cmwmc");
880
880
  },
881
881
  m(t, n) {
882
- A(t, e, n);
882
+ B(t, e, n);
883
883
  },
884
- p: I,
885
- i: I,
886
- o: I,
884
+ p: A,
885
+ i: A,
886
+ o: A,
887
887
  d(t) {
888
888
  t && D(e);
889
889
  }
890
890
  };
891
891
  }
892
- class Ji extends _e {
892
+ class Xi extends ve {
893
893
  constructor(e) {
894
- super(), Le(this, e, null, xi, ve, {});
894
+ super(), be(this, e, null, Ji, he, {});
895
895
  }
896
896
  }
897
- function Xi(i) {
897
+ function Yi(i) {
898
898
  let e, t;
899
899
  return {
900
900
  c() {
901
- e = se("svg"), t = se("path"), a(t, "d", "M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"), a(e, "viewBox", "0 0 60.006 21.412"), a(e, "width", "14"), a(e, "height", "20"), a(e, "class", "svelte-en2qvf");
901
+ e = ne("svg"), t = ne("path"), a(t, "d", "M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"), a(e, "viewBox", "0 0 60.006 21.412"), a(e, "width", "14"), a(e, "height", "20"), a(e, "class", "svelte-en2qvf");
902
902
  },
903
903
  m(n, r) {
904
- A(n, e, r), M(e, t);
904
+ B(n, e, r), k(e, t);
905
905
  },
906
- p: I,
907
- i: I,
908
- o: I,
906
+ p: A,
907
+ i: A,
908
+ o: A,
909
909
  d(n) {
910
910
  n && D(e);
911
911
  }
912
912
  };
913
913
  }
914
- class Yi extends _e {
914
+ class $i extends ve {
915
915
  constructor(e) {
916
- super(), Le(this, e, null, Xi, ve, {});
916
+ super(), be(this, e, null, Yi, he, {});
917
917
  }
918
918
  }
919
- function $i(i) {
919
+ function en(i) {
920
920
  let e, t, n;
921
921
  return {
922
922
  c() {
923
- e = se("svg"), t = se("circle"), n = se("path"), a(t, "cx", "4.789"), a(t, "cy", "4.787"), a(t, "r", "3.85"), a(t, "class", "svelte-1aq105l"), a(n, "d", "M12.063 12.063 7.635 7.635"), a(n, "class", "svelte-1aq105l"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "width", "13"), a(e, "height", "13"), a(e, "viewBox", "0 0 13 13"), a(e, "class", "svelte-1aq105l");
923
+ e = ne("svg"), t = ne("circle"), n = ne("path"), a(t, "cx", "4.789"), a(t, "cy", "4.787"), a(t, "r", "3.85"), a(t, "class", "svelte-1aq105l"), a(n, "d", "M12.063 12.063 7.635 7.635"), a(n, "class", "svelte-1aq105l"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "width", "13"), a(e, "height", "13"), a(e, "viewBox", "0 0 13 13"), a(e, "class", "svelte-1aq105l");
924
924
  },
925
925
  m(r, l) {
926
- A(r, e, l), M(e, t), M(e, n);
926
+ B(r, e, l), k(e, t), k(e, n);
927
927
  },
928
- p: I,
929
- i: I,
930
- o: I,
928
+ p: A,
929
+ i: A,
930
+ o: A,
931
931
  d(r) {
932
932
  r && D(e);
933
933
  }
934
934
  };
935
935
  }
936
- class en extends _e {
936
+ class tn extends ve {
937
937
  constructor(e) {
938
- super(), Le(this, e, null, $i, ve, {});
938
+ super(), be(this, e, null, en, he, {});
939
939
  }
940
940
  }
941
- function tn(i, e, t) {
941
+ function nn(i, e, t) {
942
942
  const n = e[1], r = e[0], l = n - r;
943
943
  return i === n && t ? i : ((i - r) % l + l) % l + r;
944
944
  }
945
- function pt(i) {
945
+ function Nt(i) {
946
946
  const e = [...i];
947
947
  return e[2] < e[0] && (Math.abs((e[0] + e[2] + 360) / 2) > Math.abs((e[0] - 360 + e[2]) / 2) ? e[0] -= 360 : e[2] += 360), e;
948
948
  }
949
- let ke;
950
- async function nn(i, e, t) {
949
+ let Me;
950
+ async function rn(i, e, t) {
951
951
  const n = i == null ? void 0 : i.getCenterAndZoom();
952
952
  for (const r of e ?? [])
953
953
  if (!(n && (r.minZoom != null && r.minZoom > n[0] || r.maxZoom != null && r.maxZoom < n[0]))) {
954
954
  if (r.type === "fixed")
955
955
  return r.coordinates.join(",");
956
956
  e: if (r.type === "client-geolocation") {
957
- if (ke && r.cachedLocationExpiry && ke.time + r.cachedLocationExpiry > Date.now()) {
958
- if (!ke.coords)
957
+ if (Me && r.cachedLocationExpiry && Me.time + r.cachedLocationExpiry > Date.now()) {
958
+ if (!Me.coords)
959
959
  break e;
960
- return ke.coords;
960
+ return Me.coords;
961
961
  }
962
962
  let l;
963
963
  try {
964
- return l = await new Promise((c, o) => {
964
+ return l = await new Promise((d, o) => {
965
965
  t.signal.addEventListener("abort", () => {
966
966
  o(Error("aborted"));
967
967
  }), navigator.geolocation.getCurrentPosition(
968
- (d) => {
969
- c(
970
- [d.coords.longitude, d.coords.latitude].map((u) => u.toFixed(6)).join(",")
968
+ (m) => {
969
+ d(
970
+ [m.coords.longitude, m.coords.latitude].map((u) => u.toFixed(6)).join(",")
971
971
  );
972
972
  },
973
- (d) => {
974
- o(d);
973
+ (m) => {
974
+ o(m);
975
975
  },
976
976
  r
977
977
  );
978
978
  }), l;
979
979
  } catch {
980
980
  } finally {
981
- r.cachedLocationExpiry && (ke = {
981
+ r.cachedLocationExpiry && (Me = {
982
982
  time: Date.now(),
983
983
  coords: l
984
984
  });
@@ -992,71 +992,71 @@ async function nn(i, e, t) {
992
992
  return n[1].toFixed(6) + "," + n[2].toFixed(6);
993
993
  }
994
994
  }
995
- const rn = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(EAST|WEST|[EW])?$/i, Nt = /^([+-]?[0-8]?[0-9])\s+([0-5]?[0-9]\.\d{3,})[\s,]{1,}([+-]?[0-1]?[0-9]?[0-9])\s+([0-5]?[0-9]\.\d{3,})$/, kt = /^(NORTH|SOUTH|[NS])?[\s]*([+-]?[0-8]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(NORTH|SOUTH|[NS])?[\s]*[,/;]?[\s]*(EAST|WEST|[EW])?[\s]*([+-]?[0-1]?[0-9]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(EAST|WEST|[EW])?$/i, Mt = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(EAST|WEST|[EW])?$/i, Tt = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)\s*(EAST|WEST|[EW])?$/i, Ct = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|’’|´´|["″”\.])?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|´´|’’|["″”\.])?\s*(EAST|WEST|[EW])?$/i;
996
- function on(i) {
995
+ const on = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(EAST|WEST|[EW])?$/i, kt = /^([+-]?[0-8]?[0-9])\s+([0-5]?[0-9]\.\d{3,})[\s,]{1,}([+-]?[0-1]?[0-9]?[0-9])\s+([0-5]?[0-9]\.\d{3,})$/, Mt = /^(NORTH|SOUTH|[NS])?[\s]*([+-]?[0-8]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(NORTH|SOUTH|[NS])?[\s]*[,/;]?[\s]*(EAST|WEST|[EW])?[\s]*([+-]?[0-1]?[0-9]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(EAST|WEST|[EW])?$/i, Tt = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(EAST|WEST|[EW])?$/i, Ct = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)\s*(EAST|WEST|[EW])?$/i, Wt = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|’’|´´|["″”\.])?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|´´|’’|["″”\.])?\s*(EAST|WEST|[EW])?$/i;
996
+ function sn(i) {
997
997
  if (!["DMS", "DM", "DD"].includes(i))
998
998
  throw new Error("invalid format specified");
999
999
  if (this.decimalCoordinates && this.decimalCoordinates.trim()) {
1000
- const e = this.decimalCoordinates.split(",").map((_) => Number(_.trim())), t = Number(e[0]), n = Number(e[1]), r = Math.abs(t), l = Math.abs(n), c = t > 0 ? "N" : "S", o = n > 0 ? "E" : "W";
1001
- let d;
1002
- i == "DD" && (d = `${r}° ${c}, ${l}° ${o}`);
1003
- const u = Math.floor(r), f = Math.floor(l), h = (r - u) * 60, v = (l - f) * 60;
1000
+ const e = this.decimalCoordinates.split(",").map((y) => Number(y.trim())), t = Number(e[0]), n = Number(e[1]), r = Math.abs(t), l = Math.abs(n), d = t > 0 ? "N" : "S", o = n > 0 ? "E" : "W";
1001
+ let m;
1002
+ i == "DD" && (m = `${r}° ${d}, ${l}° ${o}`);
1003
+ const u = Math.floor(r), f = Math.floor(l), v = (r - u) * 60, b = (l - f) * 60;
1004
1004
  if (i == "DM") {
1005
- let _ = Wt(h, 3).toFixed(3).padStart(6, "0"), w = Wt(v, 3).toFixed(3).padStart(6, "0");
1006
- _.endsWith(".000") && w.endsWith(".000") && (_ = _.replace(/\.000$/, ""), w = w.replace(/\.000$/, "")), d = `${u}° ${_}' ${c}, ${f}° ${w}' ${o}`;
1005
+ let y = zt(v, 3).toFixed(3).padStart(6, "0"), _ = zt(b, 3).toFixed(3).padStart(6, "0");
1006
+ y.endsWith(".000") && _.endsWith(".000") && (y = y.replace(/\.000$/, ""), _ = _.replace(/\.000$/, "")), m = `${u}° ${y}' ${d}, ${f}° ${_}' ${o}`;
1007
1007
  }
1008
1008
  if (i == "DMS") {
1009
- const _ = Math.floor(h), w = Math.floor(v);
1010
- let W = ((h - _) * 60).toFixed(1).padStart(4, "0"), y = ((v - w) * 60).toFixed(1).padStart(4, "0");
1011
- const E = _.toString().padStart(2, "0"), C = w.toString().padStart(2, "0");
1012
- W.endsWith(".0") && y.endsWith(".0") && (W = W.replace(/\.0$/, ""), y = y.replace(/\.0$/, "")), d = `${u}° ${E}' ${W}" ${c}, ${f}° ${C}' ${y}" ${o}`;
1009
+ const y = Math.floor(v), _ = Math.floor(b);
1010
+ let z = ((v - y) * 60).toFixed(1).padStart(4, "0"), L = ((b - _) * 60).toFixed(1).padStart(4, "0");
1011
+ const E = y.toString().padStart(2, "0"), C = _.toString().padStart(2, "0");
1012
+ z.endsWith(".0") && L.endsWith(".0") && (z = z.replace(/\.0$/, ""), L = L.replace(/\.0$/, "")), m = `${u}° ${E}' ${z}" ${d}, ${f}° ${C}' ${L}" ${o}`;
1013
1013
  }
1014
- return d;
1014
+ return m;
1015
1015
  } else
1016
1016
  throw new Error("no decimal coordinates to convert");
1017
1017
  }
1018
- function Wt(i, e) {
1018
+ function zt(i, e) {
1019
1019
  const t = Math.pow(10, e);
1020
1020
  return Math.round((i + Number.EPSILON) * t) / t;
1021
1021
  }
1022
- function at(i, e) {
1022
+ function lt(i, e) {
1023
1023
  e || (e = 5), i = i.replace(/\s+/g, " ").trim();
1024
- let t = null, n = null, r = "", l = "", c = null, o = [], d = !1;
1025
- if (rn.test(i))
1024
+ let t = null, n = null, r = "", l = "", d = null, o = [], m = !1;
1025
+ if (on.test(i))
1026
1026
  throw new Error("invalid coordinate value");
1027
- if (Nt.test(i))
1028
- if (o = Nt.exec(i), d = Me(o), d)
1029
- t = Math.abs(o[1]) + o[2] / 60, Number(o[1]) < 0 && (t *= -1), n = Math.abs(o[3]) + o[4] / 60, Number(o[3]) < 0 && (n *= -1), c = "DM";
1027
+ if (kt.test(i))
1028
+ if (o = kt.exec(i), m = Te(o), m)
1029
+ t = Math.abs(o[1]) + o[2] / 60, Number(o[1]) < 0 && (t *= -1), n = Math.abs(o[3]) + o[4] / 60, Number(o[3]) < 0 && (n *= -1), d = "DM";
1030
1030
  else
1031
1031
  throw new Error("invalid coordinate format");
1032
- else if (kt.test(i))
1033
- if (o = kt.exec(i), d = Me(o), d) {
1034
- if (t = o[2], n = o[6], t.includes(",") && (t = t.replace(",", ".")), n.includes(",") && (n = n.replace(",", ".")), c = "DD", Number(Math.round(t)) == Number(t))
1032
+ else if (Mt.test(i))
1033
+ if (o = Mt.exec(i), m = Te(o), m) {
1034
+ if (t = o[2], n = o[6], t.includes(",") && (t = t.replace(",", ".")), n.includes(",") && (n = n.replace(",", ".")), d = "DD", Number(Math.round(t)) == Number(t))
1035
1035
  throw new Error("integer only coordinate provided");
1036
1036
  if (Number(Math.round(n)) == Number(n))
1037
1037
  throw new Error("integer only coordinate provided");
1038
1038
  o[1] ? (r = o[1], l = o[5]) : o[4] && (r = o[4], l = o[8]);
1039
1039
  } else
1040
1040
  throw new Error("invalid decimal coordinate format");
1041
- else if (Mt.test(i))
1042
- if (o = Mt.exec(i), d = Me(o), d)
1043
- t = Math.abs(parseInt(o[2])), o[4] && (t += o[4] / 60, c = "DM"), o[6] && (t += o[6].replace(",", ".") / 3600, c = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[9])), o[11] && (n += o[11] / 60), o[13] && (n += o[13].replace(",", ".") / 3600), parseInt(o[9]) < 0 && (n = -1 * n), o[1] ? (r = o[1], l = o[8]) : o[7] && (r = o[7], l = o[14]);
1041
+ else if (Tt.test(i))
1042
+ if (o = Tt.exec(i), m = Te(o), m)
1043
+ t = Math.abs(parseInt(o[2])), o[4] && (t += o[4] / 60, d = "DM"), o[6] && (t += o[6].replace(",", ".") / 3600, d = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[9])), o[11] && (n += o[11] / 60), o[13] && (n += o[13].replace(",", ".") / 3600), parseInt(o[9]) < 0 && (n = -1 * n), o[1] ? (r = o[1], l = o[8]) : o[7] && (r = o[7], l = o[14]);
1044
1044
  else
1045
1045
  throw new Error("invalid DMS coordinates format");
1046
- else if (Tt.test(i))
1047
- if (o = Tt.exec(i), d = Me(o), d)
1048
- t = Math.abs(parseInt(o[2])), o[4] && (t += o[4] / 60, c = "DM"), o[6] && (t += o[6] / 3600, c = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[10])), o[12] && (n += o[12] / 60), o[14] && (n += o[14] / 3600), parseInt(o[10]) < 0 && (n = -1 * n), o[1] ? (r = o[1], l = o[9]) : o[8] && (r = o[8], l = o[16]);
1046
+ else if (Ct.test(i))
1047
+ if (o = Ct.exec(i), m = Te(o), m)
1048
+ t = Math.abs(parseInt(o[2])), o[4] && (t += o[4] / 60, d = "DM"), o[6] && (t += o[6] / 3600, d = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[10])), o[12] && (n += o[12] / 60), o[14] && (n += o[14] / 3600), parseInt(o[10]) < 0 && (n = -1 * n), o[1] ? (r = o[1], l = o[9]) : o[8] && (r = o[8], l = o[16]);
1049
1049
  else
1050
1050
  throw new Error("invalid DMS coordinates format");
1051
- else if (Ct.test(i)) {
1052
- if (o = Ct.exec(i), d = Me(o), o.filter((u) => u).length <= 5)
1051
+ else if (Wt.test(i)) {
1052
+ if (o = Wt.exec(i), m = Te(o), o.filter((u) => u).length <= 5)
1053
1053
  throw new Error("invalid coordinates format");
1054
- if (d)
1055
- t = Math.abs(parseInt(o[2])), o[4] && (t += o[4].replace(",", ".") / 60, c = "DM"), o[6] && (t += o[6].replace(",", ".") / 3600, c = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[10])), o[12] && (n += o[12].replace(",", ".") / 60), o[14] && (n += o[14].replace(",", ".") / 3600), parseInt(o[10]) < 0 && (n = -1 * n), o[1] ? (r = o[1], l = o[9]) : o[8] && (r = o[8], l = o[16]);
1054
+ if (m)
1055
+ t = Math.abs(parseInt(o[2])), o[4] && (t += o[4].replace(",", ".") / 60, d = "DM"), o[6] && (t += o[6].replace(",", ".") / 3600, d = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[10])), o[12] && (n += o[12].replace(",", ".") / 60), o[14] && (n += o[14].replace(",", ".") / 3600), parseInt(o[10]) < 0 && (n = -1 * n), o[1] ? (r = o[1], l = o[9]) : o[8] && (r = o[8], l = o[16]);
1056
1056
  else
1057
1057
  throw new Error("invalid coordinates format");
1058
1058
  }
1059
- if (d) {
1059
+ if (m) {
1060
1060
  if (Math.abs(n) >= 180)
1061
1061
  throw new Error("invalid longitude value");
1062
1062
  if (Math.abs(t) >= 90)
@@ -1069,47 +1069,47 @@ function at(i, e) {
1069
1069
  let u = /S|SOUTH/i;
1070
1070
  u.test(r) && t > 0 && (t = -1 * t), u = /W|WEST/i, u.test(l) && n > 0 && (n = -1 * n);
1071
1071
  const f = o[0].trim();
1072
- let h, v;
1073
- const _ = /[,/;\u0020]/g, w = f.match(_);
1074
- if (w == null) {
1072
+ let v, b;
1073
+ const y = /[,/;\u0020]/g, _ = f.match(y);
1074
+ if (_ == null) {
1075
1075
  const E = Math.floor(i.length / 2);
1076
- h = f.substring(0, E).trim(), v = f.substring(E).trim();
1076
+ v = f.substring(0, E).trim(), b = f.substring(E).trim();
1077
1077
  } else {
1078
1078
  let E;
1079
- w.length % 2 == 1 ? E = Math.floor(w.length / 2) : E = w.length / 2 - 1;
1079
+ _.length % 2 == 1 ? E = Math.floor(_.length / 2) : E = _.length / 2 - 1;
1080
1080
  let C = 0;
1081
1081
  if (E == 0)
1082
- C = f.indexOf(w[0]), h = f.substring(0, C).trim(), v = f.substring(C + 1).trim();
1082
+ C = f.indexOf(_[0]), v = f.substring(0, C).trim(), b = f.substring(C + 1).trim();
1083
1083
  else {
1084
- let z = 0, p = 0;
1085
- for (; z <= E; )
1086
- C = f.indexOf(w[z], p), p = C + 1, z++;
1087
- h = f.substring(0, C).trim(), v = f.substring(C + 1).trim();
1084
+ let T = 0, p = 0;
1085
+ for (; T <= E; )
1086
+ C = f.indexOf(_[T], p), p = C + 1, T++;
1087
+ v = f.substring(0, C).trim(), b = f.substring(C + 1).trim();
1088
1088
  }
1089
1089
  }
1090
- const W = h.split(".");
1091
- if (W.length == 2 && W[1] == 0 && W[1].length != 2)
1090
+ const z = v.split(".");
1091
+ if (z.length == 2 && z[1] == 0 && z[1].length != 2)
1092
1092
  throw new Error("invalid coordinates format");
1093
- const y = v.split(".");
1094
- if (y.length == 2 && y[1] == 0 && y[1].length != 2)
1093
+ const L = b.split(".");
1094
+ if (L.length == 2 && L[1] == 0 && L[1].length != 2)
1095
1095
  throw new Error("invalid coordinates format");
1096
- if (/^\d+$/.test(h) || /^\d+$/.test(v))
1096
+ if (/^\d+$/.test(v) || /^\d+$/.test(b))
1097
1097
  throw new Error("degree only coordinate/s provided");
1098
1098
  return t = Number(Number(t).toFixed(e)), n = Number(Number(n).toFixed(e)), Object.freeze({
1099
1099
  verbatimCoordinates: f,
1100
- verbatimLatitude: h,
1101
- verbatimLongitude: v,
1100
+ verbatimLatitude: v,
1101
+ verbatimLongitude: b,
1102
1102
  decimalLatitude: t,
1103
1103
  decimalLongitude: n,
1104
1104
  decimalCoordinates: `${t},${n}`,
1105
- originalFormat: c,
1106
- closeEnough: sn,
1107
- toCoordinateFormat: on
1105
+ originalFormat: d,
1106
+ closeEnough: an,
1107
+ toCoordinateFormat: sn
1108
1108
  });
1109
1109
  } else
1110
1110
  throw new Error("coordinates pattern match failed");
1111
1111
  }
1112
- function Me(i) {
1112
+ function Te(i) {
1113
1113
  if (!isNaN(i[0]))
1114
1114
  return !1;
1115
1115
  const e = [...i];
@@ -1117,39 +1117,39 @@ function Me(i) {
1117
1117
  return !1;
1118
1118
  const t = /^[-+]?\d+([\.,]\d+)?$/, n = /[eastsouthnorthwest]+/i, r = e.length / 2;
1119
1119
  for (let l = 0; l < r; l++) {
1120
- const c = e[l], o = e[l + r], d = t.test(c) && t.test(o), u = n.test(c) && n.test(o), f = c == o;
1121
- if (!(c == null && o == null)) {
1122
- if (c == null || o == null)
1120
+ const d = e[l], o = e[l + r], m = t.test(d) && t.test(o), u = n.test(d) && n.test(o), f = d == o;
1121
+ if (!(d == null && o == null)) {
1122
+ if (d == null || o == null)
1123
1123
  return !1;
1124
- if (d || u || f)
1124
+ if (m || u || f)
1125
1125
  continue;
1126
1126
  return !1;
1127
1127
  }
1128
1128
  }
1129
1129
  return !0;
1130
1130
  }
1131
- function zt(i, e) {
1131
+ function Rt(i, e) {
1132
1132
  const t = Math.abs(i - e);
1133
1133
  return Number(t.toFixed(6)) <= 1e-5;
1134
1134
  }
1135
- function sn(i) {
1135
+ function an(i) {
1136
1136
  if (!i)
1137
1137
  throw new Error("coords must be provided");
1138
1138
  if (i.includes(",")) {
1139
1139
  const e = i.split(",");
1140
1140
  if (Number(e[0]) == NaN || Number(e[1]) == NaN)
1141
1141
  throw new Error("coords are not valid decimals");
1142
- return zt(this.decimalLatitude, Number(e[0])) && zt(this.decimalLongitude, e[1]);
1142
+ return Rt(this.decimalLatitude, Number(e[0])) && Rt(this.decimalLongitude, e[1]);
1143
1143
  } else
1144
1144
  throw new Error("coords being tested must be separated by a comma");
1145
1145
  }
1146
- const an = Object.freeze({
1146
+ const ln = Object.freeze({
1147
1147
  DMS: "DMS",
1148
1148
  DM: "DM",
1149
1149
  DD: "DD"
1150
1150
  });
1151
- at.to = an;
1152
- const ln = [
1151
+ lt.to = ln;
1152
+ const un = [
1153
1153
  {
1154
1154
  verbatimCoordinates: "40.123, -74.123",
1155
1155
  verbatimLatitude: "40.123",
@@ -1290,10 +1290,10 @@ const ln = [
1290
1290
  verbatimLatitude: "40 7 22.8",
1291
1291
  verbatimLongitude: "-74 7 22.8"
1292
1292
  }
1293
- ], un = {
1293
+ ], cn = {
1294
1294
  decimalLatitude: 40.123,
1295
1295
  decimalLongitude: -74.123
1296
- }, cn = [
1296
+ }, dn = [
1297
1297
  {
1298
1298
  verbatimCoordinates: `50°4'17.698"south, 14°24'2.826"east`,
1299
1299
  verbatimLatitude: `50°4'17.698"south`,
@@ -1378,7 +1378,7 @@ const ln = [
1378
1378
  decimalLatitude: -18.4,
1379
1379
  decimalLongitude: 22.75
1380
1380
  }
1381
- ], dn = [
1381
+ ], fn = [
1382
1382
  {
1383
1383
  verbatimCoordinates: "10.432342S 10.6345345E",
1384
1384
  verbatimLatitude: "10.432342S",
@@ -1513,27 +1513,27 @@ const ln = [
1513
1513
  decimalLongitude: 18.33453
1514
1514
  }
1515
1515
  ];
1516
- function fn() {
1516
+ function mn() {
1517
1517
  const i = [];
1518
- return ln.forEach((e) => {
1519
- e.decimalLatitude ? i.push(e) : i.push({ ...e, ...un });
1520
- }), [...i, ...cn, ...dn];
1521
- }
1522
- const mn = fn();
1523
- at.formats = mn.map((i) => i.verbatimCoordinates);
1524
- const gn = at;
1525
- function Rt(i, e, t) {
1518
+ return un.forEach((e) => {
1519
+ e.decimalLatitude ? i.push(e) : i.push({ ...e, ...cn });
1520
+ }), [...i, ...dn, ...fn];
1521
+ }
1522
+ const gn = mn();
1523
+ lt.formats = gn.map((i) => i.verbatimCoordinates);
1524
+ const hn = lt;
1525
+ function Ot(i, e, t) {
1526
1526
  const n = i.slice();
1527
- return n[83] = e[t], n[85] = t, n;
1527
+ return n[84] = e[t], n[86] = t, n;
1528
1528
  }
1529
- function Ot(i) {
1529
+ function Dt(i) {
1530
1530
  let e, t;
1531
- return e = new Ji({}), {
1531
+ return e = new Xi({}), {
1532
1532
  c() {
1533
- me(e.$$.fragment);
1533
+ ce(e.$$.fragment);
1534
1534
  },
1535
1535
  m(n, r) {
1536
- ae(e, n, r), t = !0;
1536
+ re(e, n, r), t = !0;
1537
1537
  },
1538
1538
  i(n) {
1539
1539
  t || (F(e.$$.fragment, n), t = !0);
@@ -1542,107 +1542,107 @@ function Ot(i) {
1542
1542
  Q(e.$$.fragment, n), t = !1;
1543
1543
  },
1544
1544
  d(n) {
1545
- le(e, n);
1545
+ oe(e, n);
1546
1546
  }
1547
1547
  };
1548
1548
  }
1549
- function Dt(i) {
1549
+ function Ut(i) {
1550
1550
  let e, t, n, r, l;
1551
- return t = new Yi({}), {
1551
+ return t = new $i({}), {
1552
1552
  c() {
1553
- e = R("button"), me(t.$$.fragment), a(e, "type", "button"), a(
1553
+ e = W("button"), ce(t.$$.fragment), a(e, "type", "button"), a(
1554
1554
  e,
1555
1555
  "title",
1556
1556
  /*reverseButtonTitle*/
1557
1557
  i[9]
1558
- ), a(e, "class", "svelte-bz0zu3"), de(
1558
+ ), a(e, "class", "svelte-bz0zu3"), le(
1559
1559
  e,
1560
1560
  "active",
1561
1561
  /*reverseActive*/
1562
1562
  i[0]
1563
1563
  );
1564
1564
  },
1565
- m(c, o) {
1566
- A(c, e, o), ae(t, e, null), n = !0, r || (l = V(
1565
+ m(d, o) {
1566
+ B(d, e, o), re(t, e, null), n = !0, r || (l = V(
1567
1567
  e,
1568
1568
  "click",
1569
1569
  /*click_handler_2*/
1570
- i[68]
1570
+ i[69]
1571
1571
  ), r = !0);
1572
1572
  },
1573
- p(c, o) {
1573
+ p(d, o) {
1574
1574
  (!n || o[0] & /*reverseButtonTitle*/
1575
1575
  512) && a(
1576
1576
  e,
1577
1577
  "title",
1578
1578
  /*reverseButtonTitle*/
1579
- c[9]
1579
+ d[9]
1580
1580
  ), (!n || o[0] & /*reverseActive*/
1581
- 1) && de(
1581
+ 1) && le(
1582
1582
  e,
1583
1583
  "active",
1584
1584
  /*reverseActive*/
1585
- c[0]
1585
+ d[0]
1586
1586
  );
1587
1587
  },
1588
- i(c) {
1589
- n || (F(t.$$.fragment, c), n = !0);
1588
+ i(d) {
1589
+ n || (F(t.$$.fragment, d), n = !0);
1590
1590
  },
1591
- o(c) {
1592
- Q(t.$$.fragment, c), n = !1;
1591
+ o(d) {
1592
+ Q(t.$$.fragment, d), n = !1;
1593
1593
  },
1594
- d(c) {
1595
- c && D(e), le(t), r = !1, l();
1594
+ d(d) {
1595
+ d && D(e), oe(t), r = !1, l();
1596
1596
  }
1597
1597
  };
1598
1598
  }
1599
- function hn(i) {
1600
- let e, t = [], n = /* @__PURE__ */ new Map(), r, l, c, o = Et(
1599
+ function bn(i) {
1600
+ let e, t = [], n = /* @__PURE__ */ new Map(), r, l, d, o = St(
1601
1601
  /*listFeatures*/
1602
1602
  i[14]
1603
1603
  );
1604
- const d = (u) => (
1604
+ const m = (u) => (
1605
1605
  /*feature*/
1606
- u[83].id + /*feature*/
1607
- (u[83].address ? "," + /*feature*/
1608
- u[83].address : "")
1606
+ u[84].id + /*feature*/
1607
+ (u[84].address ? "," + /*feature*/
1608
+ u[84].address : "")
1609
1609
  );
1610
1610
  for (let u = 0; u < o.length; u += 1) {
1611
- let f = Rt(i, o, u), h = d(f);
1612
- n.set(h, t[u] = Ut(h, f));
1611
+ let f = Ot(i, o, u), v = m(f);
1612
+ n.set(v, t[u] = It(v, f));
1613
1613
  }
1614
1614
  return {
1615
1615
  c() {
1616
- e = R("ul");
1616
+ e = W("ul");
1617
1617
  for (let u = 0; u < t.length; u += 1)
1618
1618
  t[u].c();
1619
1619
  a(e, "class", "options svelte-bz0zu3");
1620
1620
  },
1621
1621
  m(u, f) {
1622
- A(u, e, f);
1623
- for (let h = 0; h < t.length; h += 1)
1624
- t[h] && t[h].m(e, null);
1625
- r = !0, l || (c = [
1622
+ B(u, e, f);
1623
+ for (let v = 0; v < t.length; v += 1)
1624
+ t[v] && t[v].m(e, null);
1625
+ r = !0, l || (d = [
1626
1626
  V(
1627
1627
  e,
1628
1628
  "mouseleave",
1629
1629
  /*mouseleave_handler*/
1630
- i[72]
1630
+ i[73]
1631
1631
  ),
1632
1632
  V(
1633
1633
  e,
1634
1634
  "blur",
1635
1635
  /*blur_handler_1*/
1636
- i[73]
1636
+ i[74]
1637
1637
  )
1638
1638
  ], l = !0);
1639
1639
  },
1640
1640
  p(u, f) {
1641
1641
  f[0] & /*listFeatures, showPlaceType, selectedItemIndex, missingIconsCache, iconsBaseUrl, pick*/
1642
- 17880064 && (o = Et(
1642
+ 17880064 && (o = St(
1643
1643
  /*listFeatures*/
1644
1644
  u[14]
1645
- ), Fe(), t = Oi(t, f, d, 1, u, o, n, e, Ri, Ut, null, Rt), He());
1645
+ ), He(), t = Di(t, f, m, 1, u, o, n, e, Oi, It, null, Ot), Pe());
1646
1646
  },
1647
1647
  i(u) {
1648
1648
  if (!r) {
@@ -1660,119 +1660,119 @@ function hn(i) {
1660
1660
  u && D(e);
1661
1661
  for (let f = 0; f < t.length; f += 1)
1662
1662
  t[f].d();
1663
- l = !1, ue(c);
1663
+ l = !1, se(d);
1664
1664
  }
1665
1665
  };
1666
1666
  }
1667
- function bn(i) {
1668
- let e, t, n, r, l, c;
1669
- return t = new Zt({}), {
1667
+ function vn(i) {
1668
+ let e, t, n, r, l, d;
1669
+ return t = new qt({}), {
1670
1670
  c() {
1671
- e = R("div"), me(t.$$.fragment), n = X(), r = R("div"), l = fe(
1671
+ e = W("div"), ce(t.$$.fragment), n = X(), r = W("div"), l = ue(
1672
1672
  /*noResultsMessage*/
1673
1673
  i[7]
1674
1674
  ), a(r, "class", "svelte-bz0zu3"), a(e, "class", "no-results svelte-bz0zu3");
1675
1675
  },
1676
- m(o, d) {
1677
- A(o, e, d), ae(t, e, null), M(e, n), M(e, r), M(r, l), c = !0;
1676
+ m(o, m) {
1677
+ B(o, e, m), re(t, e, null), k(e, n), k(e, r), k(r, l), d = !0;
1678
1678
  },
1679
- p(o, d) {
1680
- (!c || d[0] & /*noResultsMessage*/
1681
- 128) && Ce(
1679
+ p(o, m) {
1680
+ (!d || m[0] & /*noResultsMessage*/
1681
+ 128) && We(
1682
1682
  l,
1683
1683
  /*noResultsMessage*/
1684
1684
  o[7]
1685
1685
  );
1686
1686
  },
1687
1687
  i(o) {
1688
- c || (F(t.$$.fragment, o), c = !0);
1688
+ d || (F(t.$$.fragment, o), d = !0);
1689
1689
  },
1690
1690
  o(o) {
1691
- Q(t.$$.fragment, o), c = !1;
1691
+ Q(t.$$.fragment, o), d = !1;
1692
1692
  },
1693
1693
  d(o) {
1694
- o && D(e), le(t);
1694
+ o && D(e), oe(t);
1695
1695
  }
1696
1696
  };
1697
1697
  }
1698
- function vn(i) {
1698
+ function Ln(i) {
1699
1699
  let e = "", t;
1700
1700
  return {
1701
1701
  c() {
1702
- t = fe(e);
1702
+ t = ue(e);
1703
1703
  },
1704
1704
  m(n, r) {
1705
- A(n, t, r);
1705
+ B(n, t, r);
1706
1706
  },
1707
- p: I,
1708
- i: I,
1709
- o: I,
1707
+ p: A,
1708
+ i: A,
1709
+ o: A,
1710
1710
  d(n) {
1711
1711
  n && D(t);
1712
1712
  }
1713
1713
  };
1714
1714
  }
1715
- function Ln(i) {
1716
- let e, t, n, r, l, c, o, d, u, f, h;
1717
- return t = new Zt({}), d = new Pt({}), {
1715
+ function _n(i) {
1716
+ let e, t, n, r, l, d, o, m, u, f, v;
1717
+ return t = new qt({}), m = new Zt({}), {
1718
1718
  c() {
1719
- e = R("div"), me(t.$$.fragment), n = X(), r = R("div"), l = fe(
1719
+ e = W("div"), ce(t.$$.fragment), n = X(), r = W("div"), l = ue(
1720
1720
  /*errorMessage*/
1721
1721
  i[6]
1722
- ), c = X(), o = R("button"), me(d.$$.fragment), a(r, "class", "svelte-bz0zu3"), a(o, "class", "svelte-bz0zu3"), a(e, "class", "error svelte-bz0zu3");
1722
+ ), d = X(), o = W("button"), ce(m.$$.fragment), a(r, "class", "svelte-bz0zu3"), a(o, "class", "svelte-bz0zu3"), a(e, "class", "error svelte-bz0zu3");
1723
1723
  },
1724
- m(v, _) {
1725
- A(v, e, _), ae(t, e, null), M(e, n), M(e, r), M(r, l), M(e, c), M(e, o), ae(d, o, null), u = !0, f || (h = V(
1724
+ m(b, y) {
1725
+ B(b, e, y), re(t, e, null), k(e, n), k(e, r), k(r, l), k(e, d), k(e, o), re(m, o, null), u = !0, f || (v = V(
1726
1726
  o,
1727
1727
  "click",
1728
1728
  /*click_handler_3*/
1729
- i[69]
1729
+ i[70]
1730
1730
  ), f = !0);
1731
1731
  },
1732
- p(v, _) {
1733
- (!u || _[0] & /*errorMessage*/
1734
- 64) && Ce(
1732
+ p(b, y) {
1733
+ (!u || y[0] & /*errorMessage*/
1734
+ 64) && We(
1735
1735
  l,
1736
1736
  /*errorMessage*/
1737
- v[6]
1737
+ b[6]
1738
1738
  );
1739
1739
  },
1740
- i(v) {
1741
- u || (F(t.$$.fragment, v), F(d.$$.fragment, v), u = !0);
1740
+ i(b) {
1741
+ u || (F(t.$$.fragment, b), F(m.$$.fragment, b), u = !0);
1742
1742
  },
1743
- o(v) {
1744
- Q(t.$$.fragment, v), Q(d.$$.fragment, v), u = !1;
1743
+ o(b) {
1744
+ Q(t.$$.fragment, b), Q(m.$$.fragment, b), u = !1;
1745
1745
  },
1746
- d(v) {
1747
- v && D(e), le(t), le(d), f = !1, h();
1746
+ d(b) {
1747
+ b && D(e), oe(t), oe(m), f = !1, v();
1748
1748
  }
1749
1749
  };
1750
1750
  }
1751
- function Ut(i, e) {
1751
+ function It(i, e) {
1752
1752
  let t, n, r;
1753
1753
  function l() {
1754
1754
  return (
1755
1755
  /*mouseenter_handler*/
1756
- e[70](
1756
+ e[71](
1757
1757
  /*i*/
1758
- e[85]
1758
+ e[86]
1759
1759
  )
1760
1760
  );
1761
1761
  }
1762
- function c() {
1762
+ function d() {
1763
1763
  return (
1764
1764
  /*focus_handler_1*/
1765
- e[71](
1765
+ e[72](
1766
1766
  /*feature*/
1767
- e[83]
1767
+ e[84]
1768
1768
  )
1769
1769
  );
1770
1770
  }
1771
- return n = new Vi({
1771
+ return n = new xi({
1772
1772
  props: {
1773
1773
  feature: (
1774
1774
  /*feature*/
1775
- e[83]
1775
+ e[84]
1776
1776
  ),
1777
1777
  showPlaceType: (
1778
1778
  /*showPlaceType*/
@@ -1781,7 +1781,7 @@ function Ut(i, e) {
1781
1781
  selected: (
1782
1782
  /*selectedItemIndex*/
1783
1783
  e[15] === /*i*/
1784
- e[85]
1784
+ e[86]
1785
1785
  ),
1786
1786
  missingIconsCache: (
1787
1787
  /*missingIconsCache*/
@@ -1792,26 +1792,26 @@ function Ut(i, e) {
1792
1792
  e[12]
1793
1793
  )
1794
1794
  }
1795
- }), n.$on("mouseenter", l), n.$on("focus", c), {
1795
+ }), n.$on("mouseenter", l), n.$on("focus", d), {
1796
1796
  key: i,
1797
1797
  first: null,
1798
1798
  c() {
1799
- t = Ei(), me(n.$$.fragment), this.first = t;
1799
+ t = Si(), ce(n.$$.fragment), this.first = t;
1800
1800
  },
1801
- m(o, d) {
1802
- A(o, t, d), ae(n, o, d), r = !0;
1801
+ m(o, m) {
1802
+ B(o, t, m), re(n, o, m), r = !0;
1803
1803
  },
1804
- p(o, d) {
1804
+ p(o, m) {
1805
1805
  e = o;
1806
1806
  const u = {};
1807
- d[0] & /*listFeatures*/
1807
+ m[0] & /*listFeatures*/
1808
1808
  16384 && (u.feature = /*feature*/
1809
- e[83]), d[0] & /*showPlaceType*/
1809
+ e[84]), m[0] & /*showPlaceType*/
1810
1810
  1024 && (u.showPlaceType = /*showPlaceType*/
1811
- e[10]), d[0] & /*selectedItemIndex, listFeatures*/
1811
+ e[10]), m[0] & /*selectedItemIndex, listFeatures*/
1812
1812
  49152 && (u.selected = /*selectedItemIndex*/
1813
1813
  e[15] === /*i*/
1814
- e[85]), d[0] & /*iconsBaseUrl*/
1814
+ e[86]), m[0] & /*iconsBaseUrl*/
1815
1815
  4096 && (u.iconsBaseUrl = /*iconsBaseUrl*/
1816
1816
  e[12]), n.$set(u);
1817
1817
  },
@@ -1822,50 +1822,50 @@ function Ut(i, e) {
1822
1822
  Q(n.$$.fragment, o), r = !1;
1823
1823
  },
1824
1824
  d(o) {
1825
- o && D(t), le(n, o);
1825
+ o && D(t), oe(n, o);
1826
1826
  }
1827
1827
  };
1828
1828
  }
1829
- function _n(i) {
1830
- let e, t, n, r, l, c, o, d, u, f, h, v, _, w, W, y, E, C, z, p, G, b = !1;
1831
- l = new en({}), h = new Pt({});
1832
- let g = (
1829
+ function yn(i) {
1830
+ let e, t, n, r, l, d, o, m, u, f, v, b, y, _, z, L, E, C, T, p, H, R = !1;
1831
+ l = new tn({}), v = new Zt({});
1832
+ let c = (
1833
1833
  /*abortController*/
1834
- i[19] && Ot()
1835
- ), m = (
1834
+ i[19] && Dt()
1835
+ ), g = (
1836
1836
  /*enableReverse*/
1837
- i[5] === "button" && Dt(i)
1837
+ i[5] === "button" && Ut(i)
1838
1838
  );
1839
- const T = (
1839
+ const M = (
1840
1840
  /*#slots*/
1841
- i[60].default
1842
- ), H = Li(
1843
- T,
1841
+ i[61].default
1842
+ ), Z = _i(
1843
+ M,
1844
1844
  i,
1845
1845
  /*$$scope*/
1846
- i[59],
1846
+ i[60],
1847
1847
  null
1848
- ), Y = [Ln, vn, bn, hn], $ = [];
1849
- function j(L, B) {
1850
- var ee, oe;
1848
+ ), Le = [_n, Ln, vn, bn], G = [];
1849
+ function Ne(h, U) {
1850
+ var ie, de;
1851
1851
  return (
1852
1852
  /*error*/
1853
- L[18] ? 0 : (
1853
+ h[18] ? 0 : (
1854
1854
  /*focusedDelayed*/
1855
- L[16] ? (
1855
+ h[16] ? (
1856
1856
  /*listFeatures*/
1857
- ((ee = L[14]) == null ? void 0 : ee.length) === 0 ? 2 : (
1857
+ ((ie = h[14]) == null ? void 0 : ie.length) === 0 ? 2 : (
1858
1858
  /*focusedDelayed*/
1859
- L[16] && /*listFeatures*/
1860
- ((oe = L[14]) != null && oe.length) ? 3 : -1
1859
+ h[16] && /*listFeatures*/
1860
+ ((de = h[14]) != null && de.length) ? 3 : -1
1861
1861
  )
1862
1862
  ) : 1
1863
1863
  )
1864
1864
  );
1865
1865
  }
1866
- return ~(y = j(i)) && (E = $[y] = Y[y](i)), {
1866
+ return ~(L = Ne(i)) && (E = G[L] = Le[L](i)), {
1867
1867
  c() {
1868
- e = X(), t = R("form"), n = R("div"), r = R("button"), me(l.$$.fragment), c = X(), o = R("input"), d = X(), u = R("div"), f = R("button"), me(h.$$.fragment), v = X(), g && g.c(), _ = X(), m && m.c(), w = X(), H && H.c(), W = X(), E && E.c(), a(r, "class", "search-button svelte-bz0zu3"), a(r, "type", "button"), a(
1868
+ e = X(), t = W("form"), n = W("div"), r = W("button"), ce(l.$$.fragment), d = X(), o = W("input"), m = X(), u = W("div"), f = W("button"), ce(v.$$.fragment), b = X(), c && c.c(), y = X(), g && g.c(), _ = X(), Z && Z.c(), z = X(), E && E.c(), a(r, "class", "search-button svelte-bz0zu3"), a(r, "type", "button"), a(
1869
1869
  o,
1870
1870
  "placeholder",
1871
1871
  /*placeholder*/
@@ -1880,15 +1880,15 @@ function _n(i) {
1880
1880
  "title",
1881
1881
  /*clearButtonTitle*/
1882
1882
  i[3]
1883
- ), a(f, "class", "svelte-bz0zu3"), a(u, "class", "clear-button-container svelte-bz0zu3"), de(
1883
+ ), a(f, "class", "svelte-bz0zu3"), a(u, "class", "clear-button-container svelte-bz0zu3"), le(
1884
1884
  u,
1885
1885
  "displayable",
1886
1886
  /*searchValue*/
1887
1887
  i[1] !== ""
1888
- ), a(n, "class", "input-group svelte-bz0zu3"), a(t, "tabindex", "0"), a(t, "class", C = Lt(
1888
+ ), a(n, "class", "input-group svelte-bz0zu3"), a(t, "tabindex", "0"), a(t, "class", C = _t(
1889
1889
  /*className*/
1890
1890
  i[2]
1891
- ) + " svelte-bz0zu3"), de(
1891
+ ) + " svelte-bz0zu3"), le(
1892
1892
  t,
1893
1893
  "can-collapse",
1894
1894
  /*collapsed*/
@@ -1896,35 +1896,35 @@ function _n(i) {
1896
1896
  i[1] === ""
1897
1897
  );
1898
1898
  },
1899
- m(L, B) {
1900
- A(L, e, B), A(L, t, B), M(t, n), M(n, r), ae(l, r, null), M(n, c), M(n, o), i[62](o), _t(
1899
+ m(h, U) {
1900
+ B(h, e, U), B(h, t, U), k(t, n), k(n, r), re(l, r, null), k(n, d), k(n, o), i[63](o), yt(
1901
1901
  o,
1902
1902
  /*searchValue*/
1903
1903
  i[1]
1904
- ), M(n, d), M(n, u), M(u, f), ae(h, f, null), M(u, v), g && g.m(u, null), M(n, _), m && m.m(n, null), M(n, w), H && H.m(n, null), M(t, W), ~y && $[y].m(t, null), z = !0, p || (G = [
1904
+ ), k(n, m), k(n, u), k(u, f), re(v, f, null), k(u, b), c && c.m(u, null), k(n, y), g && g.m(n, null), k(n, _), Z && Z.m(n, null), k(t, z), ~L && G[L].m(t, null), T = !0, p || (H = [
1905
1905
  V(
1906
1906
  r,
1907
1907
  "click",
1908
1908
  /*click_handler*/
1909
- i[61]
1909
+ i[62]
1910
1910
  ),
1911
1911
  V(
1912
1912
  o,
1913
1913
  "input",
1914
1914
  /*input_1_input_handler*/
1915
- i[63]
1915
+ i[64]
1916
1916
  ),
1917
1917
  V(
1918
1918
  o,
1919
1919
  "focus",
1920
1920
  /*focus_handler*/
1921
- i[64]
1921
+ i[65]
1922
1922
  ),
1923
1923
  V(
1924
1924
  o,
1925
1925
  "blur",
1926
1926
  /*blur_handler*/
1927
- i[65]
1927
+ i[66]
1928
1928
  ),
1929
1929
  V(
1930
1930
  o,
@@ -1936,108 +1936,108 @@ function _n(i) {
1936
1936
  o,
1937
1937
  "input",
1938
1938
  /*input_handler*/
1939
- i[66]
1939
+ i[67]
1940
1940
  ),
1941
1941
  V(
1942
1942
  f,
1943
1943
  "click",
1944
1944
  /*click_handler_1*/
1945
- i[67]
1945
+ i[68]
1946
1946
  ),
1947
- V(t, "submit", Si(
1947
+ V(t, "submit", pi(
1948
1948
  /*handleOnSubmit*/
1949
1949
  i[21]
1950
1950
  ))
1951
1951
  ], p = !0);
1952
1952
  },
1953
- p(L, B) {
1954
- (!z || B[0] & /*placeholder*/
1953
+ p(h, U) {
1954
+ (!T || U[0] & /*placeholder*/
1955
1955
  256) && a(
1956
1956
  o,
1957
1957
  "placeholder",
1958
1958
  /*placeholder*/
1959
- L[8]
1960
- ), (!z || B[0] & /*placeholder*/
1959
+ h[8]
1960
+ ), (!T || U[0] & /*placeholder*/
1961
1961
  256) && a(
1962
1962
  o,
1963
1963
  "aria-label",
1964
1964
  /*placeholder*/
1965
- L[8]
1966
- ), B[0] & /*searchValue*/
1965
+ h[8]
1966
+ ), U[0] & /*searchValue*/
1967
1967
  2 && o.value !== /*searchValue*/
1968
- L[1] && _t(
1968
+ h[1] && yt(
1969
1969
  o,
1970
1970
  /*searchValue*/
1971
- L[1]
1972
- ), (!z || B[0] & /*clearButtonTitle*/
1971
+ h[1]
1972
+ ), (!T || U[0] & /*clearButtonTitle*/
1973
1973
  8) && a(
1974
1974
  f,
1975
1975
  "title",
1976
1976
  /*clearButtonTitle*/
1977
- L[3]
1977
+ h[3]
1978
1978
  ), /*abortController*/
1979
- L[19] ? g ? B[0] & /*abortController*/
1980
- 524288 && F(g, 1) : (g = Ot(), g.c(), F(g, 1), g.m(u, null)) : g && (Fe(), Q(g, 1, 1, () => {
1981
- g = null;
1982
- }), He()), (!z || B[0] & /*searchValue*/
1983
- 2) && de(
1979
+ h[19] ? c ? U[0] & /*abortController*/
1980
+ 524288 && F(c, 1) : (c = Dt(), c.c(), F(c, 1), c.m(u, null)) : c && (He(), Q(c, 1, 1, () => {
1981
+ c = null;
1982
+ }), Pe()), (!T || U[0] & /*searchValue*/
1983
+ 2) && le(
1984
1984
  u,
1985
1985
  "displayable",
1986
1986
  /*searchValue*/
1987
- L[1] !== ""
1987
+ h[1] !== ""
1988
1988
  ), /*enableReverse*/
1989
- L[5] === "button" ? m ? (m.p(L, B), B[0] & /*enableReverse*/
1990
- 32 && F(m, 1)) : (m = Dt(L), m.c(), F(m, 1), m.m(n, w)) : m && (Fe(), Q(m, 1, 1, () => {
1991
- m = null;
1992
- }), He()), H && H.p && (!z || B[1] & /*$$scope*/
1993
- 268435456) && yi(
1994
- H,
1995
- T,
1996
- L,
1989
+ h[5] === "button" ? g ? (g.p(h, U), U[0] & /*enableReverse*/
1990
+ 32 && F(g, 1)) : (g = Ut(h), g.c(), F(g, 1), g.m(n, _)) : g && (He(), Q(g, 1, 1, () => {
1991
+ g = null;
1992
+ }), Pe()), Z && Z.p && (!T || U[1] & /*$$scope*/
1993
+ 536870912) && wi(
1994
+ Z,
1995
+ M,
1996
+ h,
1997
1997
  /*$$scope*/
1998
- L[59],
1999
- z ? _i(
2000
- T,
1998
+ h[60],
1999
+ T ? yi(
2000
+ M,
2001
2001
  /*$$scope*/
2002
- L[59],
2003
- B,
2002
+ h[60],
2003
+ U,
2004
2004
  null
2005
- ) : wi(
2005
+ ) : Ei(
2006
2006
  /*$$scope*/
2007
- L[59]
2007
+ h[60]
2008
2008
  ),
2009
2009
  null
2010
2010
  );
2011
- let ee = y;
2012
- y = j(L), y === ee ? ~y && $[y].p(L, B) : (E && (Fe(), Q($[ee], 1, 1, () => {
2013
- $[ee] = null;
2014
- }), He()), ~y ? (E = $[y], E ? E.p(L, B) : (E = $[y] = Y[y](L), E.c()), F(E, 1), E.m(t, null)) : E = null), (!z || B[0] & /*className*/
2015
- 4 && C !== (C = Lt(
2011
+ let ie = L;
2012
+ L = Ne(h), L === ie ? ~L && G[L].p(h, U) : (E && (He(), Q(G[ie], 1, 1, () => {
2013
+ G[ie] = null;
2014
+ }), Pe()), ~L ? (E = G[L], E ? E.p(h, U) : (E = G[L] = Le[L](h), E.c()), F(E, 1), E.m(t, null)) : E = null), (!T || U[0] & /*className*/
2015
+ 4 && C !== (C = _t(
2016
2016
  /*className*/
2017
- L[2]
2018
- ) + " svelte-bz0zu3")) && a(t, "class", C), (!z || B[0] & /*className, collapsed, searchValue*/
2019
- 22) && de(
2017
+ h[2]
2018
+ ) + " svelte-bz0zu3")) && a(t, "class", C), (!T || U[0] & /*className, collapsed, searchValue*/
2019
+ 22) && le(
2020
2020
  t,
2021
2021
  "can-collapse",
2022
2022
  /*collapsed*/
2023
- L[4] && /*searchValue*/
2024
- L[1] === ""
2023
+ h[4] && /*searchValue*/
2024
+ h[1] === ""
2025
2025
  );
2026
2026
  },
2027
- i(L) {
2028
- z || (F(b), F(l.$$.fragment, L), F(h.$$.fragment, L), F(g), F(m), F(H, L), F(E), z = !0);
2027
+ i(h) {
2028
+ T || (F(R), F(l.$$.fragment, h), F(v.$$.fragment, h), F(c), F(g), F(Z, h), F(E), T = !0);
2029
2029
  },
2030
- o(L) {
2031
- Q(b), Q(l.$$.fragment, L), Q(h.$$.fragment, L), Q(g), Q(m), Q(H, L), Q(E), z = !1;
2030
+ o(h) {
2031
+ Q(R), Q(l.$$.fragment, h), Q(v.$$.fragment, h), Q(c), Q(g), Q(Z, h), Q(E), T = !1;
2032
2032
  },
2033
- d(L) {
2034
- L && (D(e), D(t)), le(l), i[62](null), le(h), g && g.d(), m && m.d(), H && H.d(L), ~y && $[y].d(), p = !1, ue(G);
2033
+ d(h) {
2034
+ h && (D(e), D(t)), oe(l), i[63](null), oe(v), c && c.d(), g && g.d(), Z && Z.d(h), ~L && G[L].d(), p = !1, se(H);
2035
2035
  }
2036
2036
  };
2037
2037
  }
2038
- function yn(i, e, t) {
2039
- let n, { $$slots: r = {}, $$scope: l } = e;
2040
- const c = {
2038
+ function wn(i, e, t) {
2039
+ let n, r, { $$slots: l = {}, $$scope: d } = e;
2040
+ const o = {
2041
2041
  continental_marine: 4,
2042
2042
  country: 4,
2043
2043
  major_landform: 8,
@@ -2061,286 +2061,287 @@ function yn(i, e, t) {
2061
2061
  "poi.restaurant": 18,
2062
2062
  "poi.aerodrome": 13
2063
2063
  };
2064
- let { class: o = void 0 } = e, { apiKey: d } = e, { bbox: u = 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 = "never" } = e, { errorMessage: y = "Something went wrong…" } = e, { filter: E = () => !0 } = e, { flyTo: C = !0 } = e, { fuzzyMatch: z = !0 } = e, { language: p = void 0 } = e, { limit: G = 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: T = "Search" } = e, { proximity: H = [{ type: "server-geolocation" }] } = e, { reverseActive: Y = W === "always" } = e, { reverseButtonTitle: $ = "toggle reverse geocoding" } = e, { searchValue: j = "" } = e, { pickedResultStyle: L = "full-geometry" } = e, { showPlaceType: B = "if-needed" } = e, { showResultsWhileTyping: ee = !0 } = e, { selectFirst: oe = !0 } = e, { flyToSelected: Pe = !1 } = e, { markerOnSelected: ze = !0 } = e, { types: ge = void 0 } = e, { exhaustiveReverseGeocoding: Ze = !1 } = e, { excludeTypes: Re = !1 } = e, { zoom: Oe = c } = e, { apiUrl: qe = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: Ge = {} } = e, { iconsBaseUrl: ut = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.0-rc.5/icons/" } = e, { adjustUrlQuery: Qe = () => {
2064
+ let { class: m = void 0 } = e, { apiKey: u } = e, { bbox: f = void 0 } = e, { clearButtonTitle: v = "clear" } = e, { clearOnBlur: b = !1 } = e, { collapsed: y = !1 } = e, { country: _ = void 0 } = e, { debounceSearch: z = 200 } = e, { enableReverse: L = "never" } = e, { errorMessage: E = "Something went wrong…" } = e, { filter: C = () => !0 } = e, { flyTo: T = !0 } = e, { fuzzyMatch: p = !0 } = e, { language: H = void 0 } = e, { limit: R = void 0 } = e, { mapController: c = 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: Z = "Search" } = e, { proximity: Le = [{ type: "server-geolocation" }] } = e, { reverseActive: G = L === "always" } = e, { reverseButtonTitle: Ne = "toggle reverse geocoding" } = e, { searchValue: h = "" } = e, { pickedResultStyle: U = "full-geometry" } = e, { showPlaceType: ie = "if-needed" } = e, { showResultsWhileTyping: de = !0 } = e, { selectFirst: _e = !0 } = e, { flyToSelected: Ze = !1 } = e, { markerOnSelected: Re = !0 } = e, { types: fe = void 0 } = e, { exhaustiveReverseGeocoding: qe = !1 } = e, { excludeTypes: Oe = !1 } = e, { zoom: De = o } = e, { apiUrl: Ge = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: Qe = {} } = e, { iconsBaseUrl: ct = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.0-rc.7/icons/" } = e, { adjustUrlQuery: Ke = () => {
2065
2065
  } } = e;
2066
- function Gt() {
2067
- te.focus();
2068
- }
2069
2066
  function Qt() {
2070
- te.blur();
2071
- }
2072
- function ct(s, U = !0, q = !1) {
2073
- t(1, j = s), U ? (t(15, O = -1), ft()) : (Je(!q, q), setTimeout(() => {
2074
- te.focus(), te.select();
2075
- }));
2067
+ Y.focus();
2076
2068
  }
2077
2069
  function Kt() {
2078
- t(14, k = void 0), t(56, S = void 0), t(15, O = -1);
2070
+ Y.blur();
2071
+ }
2072
+ function dt(s, I = !0, q = !1) {
2073
+ t(1, h = s), I ? (t(15, O = -1), mt()) : (Xe(!q, q), setTimeout(() => {
2074
+ Y.focus(), Y.select();
2075
+ }));
2079
2076
  }
2080
2077
  function Vt() {
2081
- t(55, P = []), t(56, S = void 0);
2078
+ t(14, N = void 0), t(56, w = void 0), t(15, O = -1);
2082
2079
  }
2083
- let ye = !1, k, P, S, dt = "", te, O = -1, ie, De = [], he, we, Ue, Ke;
2084
- const xt = /* @__PURE__ */ new Set(), ce = Mi();
2085
- ki(() => {
2086
- b && (b.setEventHandler(void 0), b.indicateReverse(!1), b.setSelectedMarker(-1), b.setMarkers(void 0, void 0));
2080
+ function xt() {
2081
+ t(55, P = []), t(56, w = void 0);
2082
+ }
2083
+ let ye = !1, N, P, w, ft = "", Y, O = -1, $, Ue = [], me, we, Ie, Ve;
2084
+ const Jt = /* @__PURE__ */ new Set(), ae = Ti();
2085
+ Mi(() => {
2086
+ c && (c.setEventHandler(void 0), c.indicateReverse(!1), c.setSelectedMarker(-1), c.setMarkers(void 0, void 0, !1));
2087
2087
  });
2088
- function ft(s) {
2089
- if (we && (clearTimeout(we), we = void 0), O > -1 && k)
2090
- t(56, S = k[O]), t(1, j = S.place_type[0] === "reverse" ? S.place_name : S.place_name.replace(/,.*/, "")), t(18, ie = void 0), t(55, P = void 0), t(15, O = -1);
2091
- else if (j) {
2092
- const U = s || !Ve(j);
2093
- xe(j, { exact: !0 }).then(() => {
2094
- t(55, P = k), t(56, S = void 0), U && Jt();
2095
- }).catch((q) => t(18, ie = q));
2088
+ function mt(s) {
2089
+ if (we && (clearTimeout(we), we = void 0), O > -1 && N)
2090
+ t(56, w = N[O]), t(1, h = w.place_type[0] === "reverse" ? w.place_name : w.place_name.replace(/,.*/, "")), t(18, $ = void 0), t(55, P = void 0), t(15, O = -1);
2091
+ else if (h) {
2092
+ const I = s || !xe(h);
2093
+ Je(h, { exact: !0 }).then(() => {
2094
+ t(55, P = N), t(56, w = void 0), I && Xt();
2095
+ }).catch((q) => t(18, $ = q));
2096
2096
  }
2097
2097
  }
2098
- function Ve(s) {
2098
+ function xe(s) {
2099
2099
  try {
2100
- return gn(s, 6);
2100
+ return hn(s, 6);
2101
2101
  } catch {
2102
2102
  return !1;
2103
2103
  }
2104
2104
  }
2105
- async function xe(s, { byId: U = !1, exact: q = !1 } = {}) {
2106
- t(18, ie = void 0), he == null || he.abort();
2105
+ async function Je(s, { byId: I = !1, exact: q = !1 } = {}) {
2106
+ t(18, $ = void 0), me == null || me.abort();
2107
2107
  const x = new AbortController();
2108
- t(19, he = x);
2108
+ t(19, me = x);
2109
2109
  try {
2110
- const N = Ve(s), Z = new URLSearchParams();
2111
- if (p !== void 0 && Z.set("language", Array.isArray(p) ? p.join(",") : p ?? ""), ge && Z.set("types", ge.join(",")), Re && Z.set("excludeTypes", String(Re)), u && Z.set("bbox", u.map((Ie) => Ie.toFixed(6)).join(",")), _ && Z.set("country", Array.isArray(_) ? _.join(",") : _), !U && !N) {
2112
- const Ie = await nn(b, H, x);
2113
- Ie && Z.set("proximity", Ie), (q || !ee) && Z.set("autocomplete", "false"), Z.set("fuzzyMatch", String(z));
2110
+ const S = xe(s), j = new URLSearchParams();
2111
+ if (H !== void 0 && j.set("language", Array.isArray(H) ? H.join(",") : H ?? ""), fe && j.set("types", fe.join(",")), Oe && j.set("excludeTypes", String(Oe)), f && j.set("bbox", f.map((Ae) => Ae.toFixed(6)).join(",")), _ && j.set("country", Array.isArray(_) ? _.join(",") : _), !I && !S) {
2112
+ const Ae = await rn(c, Le, x);
2113
+ Ae && j.set("proximity", Ae), (q || !de) && j.set("autocomplete", "false"), j.set("fuzzyMatch", String(p));
2114
2114
  }
2115
- G !== void 0 && (Ze || !N || (ge == null ? void 0 : ge.length) === 1) && Z.set("limit", String(G)), Z.set("key", d), Qe(Z);
2116
- const ne = qe + "/" + encodeURIComponent(N ? N.decimalLongitude + "," + N.decimalLatitude : s) + ".json?" + Z.toString();
2117
- if (ne === dt) {
2118
- U ? (t(14, k = void 0), t(56, S = De[0])) : t(14, k = De);
2115
+ R !== void 0 && (qe || !S || (fe == null ? void 0 : fe.length) === 1) && j.set("limit", String(R)), j.set("key", u), Ke(j);
2116
+ const ee = Ge + "/" + encodeURIComponent(S ? S.decimalLongitude + "," + S.decimalLatitude : s) + ".json?" + j.toString();
2117
+ if (ee === ft) {
2118
+ I ? (t(14, N = void 0), t(56, w = Ue[0])) : t(14, N = Ue);
2119
2119
  return;
2120
2120
  }
2121
- dt = ne;
2122
- const Ye = await fetch(ne, { signal: x.signal, ...Ge });
2123
- if (!Ye.ok)
2124
- throw new Error(await Ye.text());
2125
- const $e = await Ye.json();
2126
- ce("response", { url: ne, featureCollection: $e }), U ? (t(14, k = void 0), t(56, S = $e.features[0]), De = [S]) : (t(14, k = $e.features.filter(E)), N && k.unshift({
2121
+ ft = ee;
2122
+ const $e = await fetch(ee, { signal: x.signal, ...Qe });
2123
+ if (!$e.ok)
2124
+ throw new Error(await $e.text());
2125
+ const et = await $e.json();
2126
+ ae("response", { url: ee, featureCollection: et }), I ? (t(14, N = void 0), t(56, w = et.features[0]), Ue = [w]) : (t(14, N = et.features.filter(C)), S && N.unshift({
2127
2127
  type: "Feature",
2128
2128
  properties: {},
2129
- id: "reverse_" + N.decimalLongitude + "_" + N.decimalLatitude,
2130
- text: N.decimalLatitude + ", " + N.decimalLongitude,
2131
- place_name: N.decimalLatitude + ", " + N.decimalLongitude,
2129
+ id: "reverse_" + S.decimalLongitude + "_" + S.decimalLatitude,
2130
+ text: S.decimalLatitude + ", " + S.decimalLongitude,
2131
+ place_name: S.decimalLatitude + ", " + S.decimalLongitude,
2132
2132
  place_type: ["reverse"],
2133
- center: [N.decimalLongitude, N.decimalLatitude],
2133
+ center: [S.decimalLongitude, S.decimalLatitude],
2134
2134
  bbox: [
2135
- N.decimalLongitude,
2136
- N.decimalLatitude,
2137
- N.decimalLongitude,
2138
- N.decimalLatitude
2135
+ S.decimalLongitude,
2136
+ S.decimalLatitude,
2137
+ S.decimalLongitude,
2138
+ S.decimalLatitude
2139
2139
  ],
2140
2140
  geometry: {
2141
2141
  type: "Point",
2142
- coordinates: [N.decimalLongitude, N.decimalLatitude]
2142
+ coordinates: [S.decimalLongitude, S.decimalLatitude]
2143
2143
  }
2144
- }), De = k, N && te.focus());
2145
- } catch (N) {
2146
- if (N && typeof N == "object" && "name" in N && N.name === "AbortError")
2144
+ }), Ue = N, S && Y.focus());
2145
+ } catch (S) {
2146
+ if (S && typeof S == "object" && "name" in S && S.name === "AbortError")
2147
2147
  return;
2148
- throw N;
2148
+ throw S;
2149
2149
  } finally {
2150
- x === he && t(19, he = void 0);
2150
+ x === me && t(19, me = void 0);
2151
2151
  }
2152
2152
  }
2153
- function Jt() {
2153
+ function Xt() {
2154
2154
  var x;
2155
- if (!(P != null && P.length) || !C)
2155
+ if (!(P != null && P.length) || !T)
2156
2156
  return;
2157
- const s = [180, 90, -180, -90], U = !P.some((N) => !N.matching_text);
2157
+ const s = [180, 90, -180, -90], I = !P.some((S) => !S.matching_text);
2158
2158
  let q;
2159
- for (const N of P) {
2160
- const Z = Ne(N);
2161
- if (q = q === void 0 ? Z : Z === void 0 ? q : Math.max(q, Z), U || !N.matching_text)
2162
- for (const ne of [0, 1, 2, 3])
2163
- s[ne] = Math[ne < 2 ? "min" : "max"](s[ne], ((x = N.bbox) == null ? void 0 : x[ne]) ?? N.center[ne % 2]);
2159
+ for (const S of P) {
2160
+ const j = ke(S);
2161
+ if (q = q === void 0 ? j : j === void 0 ? q : Math.max(q, j), I || !S.matching_text)
2162
+ for (const ee of [0, 1, 2, 3])
2163
+ s[ee] = Math[ee < 2 ? "min" : "max"](s[ee], ((x = S.bbox) == null ? void 0 : x[ee]) ?? S.center[ee % 2]);
2164
2164
  }
2165
- b && P.length > 0 && (S && s[0] === s[2] && s[1] === s[3] ? b.flyTo(S.center, Ne(S)) : b.fitBounds(pt(s), 50, q));
2165
+ c && P.length > 0 && (w && s[0] === s[2] && s[1] === s[3] ? c.flyTo(w.center, ke(w)) : c.fitBounds(Nt(s), 50, q));
2166
2166
  }
2167
- function Ne(s) {
2167
+ function ke(s) {
2168
2168
  var q;
2169
2169
  if (!s.bbox || s.bbox[0] !== s.bbox[2] && s.bbox[1] !== s.bbox[3])
2170
2170
  return;
2171
- const U = s.id.replace(/\..*/, "");
2171
+ const I = s.id.replace(/\..*/, "");
2172
2172
  return (Array.isArray((q = s.properties) == null ? void 0 : q.categories) ? s.properties.categories.reduce(
2173
- (x, N) => {
2174
- const Z = Oe[U + "." + N];
2175
- return x === void 0 ? Z : Z === void 0 ? x : Math.max(x, Z);
2173
+ (x, S) => {
2174
+ const j = De[I + "." + S];
2175
+ return x === void 0 ? j : j === void 0 ? x : Math.max(x, j);
2176
2176
  },
2177
2177
  void 0
2178
- ) : void 0) ?? Oe[U];
2179
- }
2180
- function Xt(s) {
2181
- t(0, Y = W === "always"), t(14, k = void 0), t(56, S = void 0), t(15, O = -1), ct(s[1].toFixed(6) + ", " + tn(s[0], [-180, 180], !0).toFixed(6), !1, !0);
2178
+ ) : void 0) ?? De[I];
2182
2179
  }
2183
2180
  function Yt(s) {
2184
- if (!k)
2181
+ t(0, G = L === "always"), t(14, N = void 0), t(56, w = void 0), t(15, O = -1), dt(s[1].toFixed(6) + ", " + nn(s[0], [-180, 180], !0).toFixed(6), !1, !0);
2182
+ }
2183
+ function $t(s) {
2184
+ if (!N)
2185
2185
  return;
2186
- let U = s.key === "ArrowDown" ? 1 : s.key === "ArrowUp" ? -1 : 0;
2187
- U && (O === (oe ? 0 : -1) && U === -1 && t(15, O = k.length), t(15, O += U), O >= k.length && t(15, O = -1), O < 0 && oe && t(15, O = 0), s.preventDefault());
2186
+ let I = s.key === "ArrowDown" ? 1 : s.key === "ArrowUp" ? -1 : 0;
2187
+ I && (O === (_e ? 0 : -1) && I === -1 && t(15, O = N.length), t(15, O += I), O >= N.length && t(15, O = -1), O < 0 && _e && t(15, O = 0), s.preventDefault());
2188
2188
  }
2189
- function Je(s = !0, U = !1) {
2190
- if (t(18, ie = void 0), ee || U) {
2191
- if (we && clearTimeout(we), j.length < g)
2189
+ function Xe(s = !0, I = !1) {
2190
+ if (t(18, $ = void 0), de || I) {
2191
+ if (we && clearTimeout(we), h.length < g)
2192
2192
  return;
2193
- const q = j;
2193
+ const q = h;
2194
2194
  we = window.setTimeout(
2195
2195
  () => {
2196
- xe(q).catch((x) => t(18, ie = x));
2196
+ Je(q).catch((x) => t(18, $ = x));
2197
2197
  },
2198
- s ? w : 0
2198
+ s ? z : 0
2199
2199
  );
2200
2200
  } else
2201
- t(14, k = void 0), t(18, ie = void 0);
2201
+ t(14, N = void 0), t(18, $ = void 0);
2202
2202
  }
2203
- function Xe(s) {
2204
- t(56, S = s), t(1, j = s.place_name), t(15, O = -1);
2203
+ function Ye(s) {
2204
+ t(56, w = s), t(1, h = s.place_name), t(15, O = -1);
2205
2205
  }
2206
- const $t = () => te.focus();
2207
- function ei(s) {
2208
- rt[s ? "unshift" : "push"](() => {
2209
- te = s, t(17, te);
2206
+ const ei = () => Y.focus();
2207
+ function ti(s) {
2208
+ ot[s ? "unshift" : "push"](() => {
2209
+ Y = s, t(17, Y);
2210
2210
  });
2211
2211
  }
2212
- function ti() {
2213
- j = this.value, t(1, j), t(13, ye), t(28, h);
2212
+ function ii() {
2213
+ h = this.value, t(1, h), t(13, ye), t(28, b);
2214
2214
  }
2215
- const ii = () => t(13, ye = !0), ni = () => t(13, ye = !1), ri = () => Je(), oi = () => {
2216
- t(1, j = ""), te.focus();
2217
- }, si = () => t(0, Y = !Y), ai = () => t(18, ie = void 0), li = (s) => t(15, O = s), ui = (s) => Xe(s), ci = () => {
2218
- oe || t(15, O = -1);
2219
- }, di = () => {
2215
+ const ni = () => t(13, ye = !0), ri = () => t(13, ye = !1), oi = () => Xe(), si = () => {
2216
+ t(1, h = ""), Y.focus();
2217
+ }, ai = () => t(0, G = !G), li = () => t(18, $ = void 0), ui = (s) => t(15, O = s), ci = (s) => Ye(s), di = () => {
2218
+ _e || t(15, O = -1);
2219
+ }, fi = () => {
2220
2220
  };
2221
2221
  return i.$$set = (s) => {
2222
- "class" in s && t(2, o = s.class), "apiKey" in s && t(26, d = s.apiKey), "bbox" in s && t(27, u = 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, z = s.fuzzyMatch), "language" in s && t(34, p = s.language), "limit" in s && t(35, G = 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, T = s.placeholder), "proximity" in s && t(38, H = s.proximity), "reverseActive" in s && t(0, Y = s.reverseActive), "reverseButtonTitle" in s && t(9, $ = s.reverseButtonTitle), "searchValue" in s && t(1, j = s.searchValue), "pickedResultStyle" in s && t(39, L = s.pickedResultStyle), "showPlaceType" in s && t(10, B = s.showPlaceType), "showResultsWhileTyping" in s && t(40, ee = s.showResultsWhileTyping), "selectFirst" in s && t(11, oe = s.selectFirst), "flyToSelected" in s && t(41, Pe = s.flyToSelected), "markerOnSelected" in s && t(42, ze = s.markerOnSelected), "types" in s && t(43, ge = s.types), "exhaustiveReverseGeocoding" in s && t(44, Ze = s.exhaustiveReverseGeocoding), "excludeTypes" in s && t(45, Re = s.excludeTypes), "zoom" in s && t(46, Oe = s.zoom), "apiUrl" in s && t(47, qe = s.apiUrl), "fetchParameters" in s && t(48, Ge = s.fetchParameters), "iconsBaseUrl" in s && t(12, ut = s.iconsBaseUrl), "adjustUrlQuery" in s && t(49, Qe = s.adjustUrlQuery), "$$scope" in s && t(59, l = s.$$scope);
2222
+ "class" in s && t(2, m = s.class), "apiKey" in s && t(26, u = s.apiKey), "bbox" in s && t(27, f = s.bbox), "clearButtonTitle" in s && t(3, v = s.clearButtonTitle), "clearOnBlur" in s && t(28, b = s.clearOnBlur), "collapsed" in s && t(4, y = s.collapsed), "country" in s && t(29, _ = s.country), "debounceSearch" in s && t(30, z = 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, T = s.flyTo), "fuzzyMatch" in s && t(33, p = s.fuzzyMatch), "language" in s && t(34, H = s.language), "limit" in s && t(35, R = s.limit), "mapController" in s && t(36, c = s.mapController), "minLength" in s && t(37, g = s.minLength), "noResultsMessage" in s && t(7, M = s.noResultsMessage), "placeholder" in s && t(8, Z = s.placeholder), "proximity" in s && t(38, Le = s.proximity), "reverseActive" in s && t(0, G = s.reverseActive), "reverseButtonTitle" in s && t(9, Ne = s.reverseButtonTitle), "searchValue" in s && t(1, h = s.searchValue), "pickedResultStyle" in s && t(39, U = s.pickedResultStyle), "showPlaceType" in s && t(10, ie = s.showPlaceType), "showResultsWhileTyping" in s && t(40, de = s.showResultsWhileTyping), "selectFirst" in s && t(11, _e = s.selectFirst), "flyToSelected" in s && t(41, Ze = s.flyToSelected), "markerOnSelected" in s && t(42, Re = s.markerOnSelected), "types" in s && t(43, fe = s.types), "exhaustiveReverseGeocoding" in s && t(44, qe = s.exhaustiveReverseGeocoding), "excludeTypes" in s && t(45, Oe = s.excludeTypes), "zoom" in s && t(46, De = s.zoom), "apiUrl" in s && t(47, Ge = s.apiUrl), "fetchParameters" in s && t(48, Qe = s.fetchParameters), "iconsBaseUrl" in s && t(12, ct = s.iconsBaseUrl), "adjustUrlQuery" in s && t(49, Ke = s.adjustUrlQuery), "$$scope" in s && t(60, d = s.$$scope);
2223
2223
  }, i.$$.update = () => {
2224
2224
  if (i.$$.dirty[0] & /*enableReverse*/
2225
- 32 && t(0, Y = W === "always"), i.$$.dirty[0] & /*focused, clearOnBlur*/
2225
+ 32 && t(0, G = L === "always"), i.$$.dirty[0] & /*focused, clearOnBlur*/
2226
2226
  268443648 && setTimeout(() => {
2227
- t(16, Ue = ye), h && !ye && t(1, j = "");
2227
+ t(16, Ie = ye), b && !ye && t(1, h = "");
2228
2228
  }), i.$$.dirty[0] & /*searchValue, listFeatures*/
2229
2229
  16386 | i.$$.dirty[1] & /*minLength*/
2230
- 64 && j.length < g && (t(56, S = void 0), t(14, k = void 0), t(18, ie = void 0), t(55, P = k)), i.$$.dirty[1] & /*pickedResultStyle, picked*/
2231
- 33554688 && L !== "marker-only" && S && !S.address && S.geometry.type === "Point" && S.place_type[0] !== "reverse" && xe(S.id, { byId: !0 }).catch((s) => t(18, ie = s)), i.$$.dirty[1] & /*mapController, picked, prevIdToFly, flyTo*/
2232
- 100663330 && (b && S && S.id !== Ke && C && (!S.bbox || S.bbox[0] === S.bbox[2] && S.bbox[1] === S.bbox[3] ? b.flyTo(S.center, Ne(S)) : b.fitBounds(pt(S.bbox), 50, Ne(S)), t(14, k = void 0), t(55, P = void 0), t(15, O = -1)), t(57, Ke = S == null ? void 0 : S.id)), i.$$.dirty[0] & /*selectFirst, listFeatures*/
2233
- 18432 && oe && k != null && k.length && t(15, O = 0), i.$$.dirty[0] & /*searchValue*/
2230
+ 64 && h.length < g && (t(56, w = void 0), t(14, N = void 0), t(18, $ = void 0), t(55, P = N)), i.$$.dirty[1] & /*pickedResultStyle, picked*/
2231
+ 33554688 && U !== "marker-only" && w && !w.address && w.geometry.type === "Point" && w.place_type[0] !== "reverse" && Je(w.id, { byId: !0 }).catch((s) => t(18, $ = s)), i.$$.dirty[1] & /*mapController, picked, prevIdToFly, flyTo*/
2232
+ 100663330 && (c && w && w.id !== Ve && T && (!w.bbox || w.bbox[0] === w.bbox[2] && w.bbox[1] === w.bbox[3] ? c.flyTo(w.center, ke(w)) : c.fitBounds(Nt(w.bbox), 50, ke(w)), t(14, N = void 0), t(55, P = void 0), t(15, O = -1)), t(57, Ve = w == null ? void 0 : w.id)), i.$$.dirty[0] & /*selectFirst, listFeatures*/
2233
+ 18432 && _e && N != null && N.length && t(15, O = 0), i.$$.dirty[0] & /*searchValue*/
2234
2234
  2 && t(15, O = -1), i.$$.dirty[0] & /*listFeatures*/
2235
2235
  16384 | i.$$.dirty[1] & /*markedFeatures*/
2236
- 16777216 && P !== k && t(55, P = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
2236
+ 16777216 && P !== N && t(55, P = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
2237
2237
  81921 | i.$$.dirty[1] & /*mapController, markedFeatures*/
2238
- 16777248 && b && b.setEventHandler((s) => {
2238
+ 16777248 && c && c.setEventHandler((s) => {
2239
2239
  switch (s.type) {
2240
2240
  case "mapClick":
2241
- Y && Xt(s.coordinates);
2241
+ G && Yt(s.coordinates);
2242
2242
  break;
2243
2243
  case "markerClick":
2244
2244
  {
2245
- const U = k == null ? void 0 : k.find((q) => q.id === s.id);
2246
- U && Xe(U);
2245
+ const I = N == null ? void 0 : N.find((q) => q.id === s.id);
2246
+ I && Ye(I);
2247
2247
  }
2248
2248
  break;
2249
2249
  case "markerMouseEnter":
2250
- P && t(15, O = Ue ? (k == null ? void 0 : k.findIndex((U) => U.id === s.id)) ?? -1 : -1);
2250
+ P && t(15, O = Ie ? (N == null ? void 0 : N.findIndex((I) => I.id === s.id)) ?? -1 : -1);
2251
2251
  break;
2252
2252
  case "markerMouseLeave":
2253
2253
  P && t(15, O = -1);
2254
2254
  break;
2255
2255
  }
2256
2256
  }), i.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
2257
- 49152 && t(58, n = k == null ? void 0 : k[O]), i.$$.dirty[1] & /*mapController, selected, flyTo, flyToSelected*/
2258
- 134218786 && b && n && C && Pe && b.flyTo(n.center, Ne(n)), i.$$.dirty[1] & /*markerOnSelected, mapController*/
2259
- 2080 && (ze || b == null || b.setMarkers(void 0, void 0)), i.$$.dirty[1] & /*mapController, markerOnSelected, markedFeatures, selected*/
2260
- 150997024 && b && ze && !P && (b.setMarkers(n ? [n] : void 0, void 0), b.setSelectedMarker(n ? 0 : -1)), i.$$.dirty[1] & /*mapController, markedFeatures, picked*/
2261
- 50331680 && b && b.setMarkers(P, S), i.$$.dirty[0] & /*selectedItemIndex*/
2257
+ 49152 && t(58, r = N == null ? void 0 : N[O]), i.$$.dirty[1] & /*mapController, selected, flyTo, flyToSelected*/
2258
+ 134218786 && c && r && T && Ze && c.flyTo(r.center, ke(r)), i.$$.dirty[1] & /*pickedResultStyle*/
2259
+ 256 && t(59, n = U === "full-geometry-including-polygon-center-marker"), i.$$.dirty[1] & /*markerOnSelected, mapController, showPolygonMarker*/
2260
+ 268437536 && (Re || c == null || c.setMarkers(void 0, void 0, n)), i.$$.dirty[1] & /*mapController, markerOnSelected, markedFeatures, selected, showPolygonMarker*/
2261
+ 419432480 && c && Re && !P && (c.setMarkers(r ? [r] : void 0, void 0, n), c.setSelectedMarker(r ? 0 : -1)), i.$$.dirty[1] & /*mapController, markedFeatures, picked, showPolygonMarker*/
2262
+ 318767136 && c && c.setMarkers(P, w, n), i.$$.dirty[0] & /*selectedItemIndex*/
2262
2263
  32768 | i.$$.dirty[1] & /*markedFeatures, mapController*/
2263
- 16777248 && P && b && b.setSelectedMarker(O), i.$$.dirty[0] & /*searchValue*/
2264
+ 16777248 && P && c && c.setSelectedMarker(O), i.$$.dirty[0] & /*searchValue*/
2264
2265
  2 | i.$$.dirty[1] & /*mapController*/
2265
- 32 && b) {
2266
- const s = Ve(j);
2267
- b.setReverseMarker(s ? [s.decimalLongitude, s.decimalLatitude] : void 0);
2266
+ 32 && c) {
2267
+ const s = xe(h);
2268
+ c.setReverseMarker(s ? [s.decimalLongitude, s.decimalLatitude] : void 0);
2268
2269
  }
2269
2270
  i.$$.dirty[1] & /*selected*/
2270
- 134217728 && ce("select", { feature: n }), i.$$.dirty[1] & /*picked*/
2271
- 33554432 && ce("pick", { feature: S }), i.$$.dirty[0] & /*focusedDelayed, listFeatures*/
2272
- 81920 && ce("optionsvisibilitychange", {
2273
- optionsVisible: Ue && !!k
2271
+ 134217728 && ae("select", { feature: r }), i.$$.dirty[1] & /*picked*/
2272
+ 33554432 && ae("pick", { feature: w }), i.$$.dirty[0] & /*focusedDelayed, listFeatures*/
2273
+ 81920 && ae("optionsvisibilitychange", {
2274
+ optionsVisible: Ie && !!N
2274
2275
  }), i.$$.dirty[0] & /*listFeatures*/
2275
- 16384 && ce("featureslisted", { features: k }), i.$$.dirty[1] & /*markedFeatures*/
2276
- 16777216 && ce("featuresmarked", { features: P }), i.$$.dirty[0] & /*reverseActive*/
2277
- 1 && ce("reversetoggle", { reverse: Y }), i.$$.dirty[0] & /*searchValue*/
2278
- 2 && ce("querychange", { query: j }), i.$$.dirty[0] & /*reverseActive*/
2276
+ 16384 && ae("featureslisted", { features: N }), i.$$.dirty[1] & /*markedFeatures*/
2277
+ 16777216 && ae("featuresmarked", { features: P }), i.$$.dirty[0] & /*reverseActive*/
2278
+ 1 && ae("reversetoggle", { reverse: G }), i.$$.dirty[0] & /*searchValue*/
2279
+ 2 && ae("querychange", { query: h }), i.$$.dirty[0] & /*reverseActive*/
2279
2280
  1 | i.$$.dirty[1] & /*mapController*/
2280
- 32 && b && b.indicateReverse(Y);
2281
+ 32 && c && c.indicateReverse(G);
2281
2282
  }, [
2282
- Y,
2283
- j,
2284
- o,
2285
- f,
2283
+ G,
2284
+ h,
2285
+ m,
2286
2286
  v,
2287
- W,
2288
2287
  y,
2289
- m,
2290
- T,
2291
- $,
2292
- B,
2293
- oe,
2294
- ut,
2288
+ L,
2289
+ E,
2290
+ M,
2291
+ Z,
2292
+ Ne,
2293
+ ie,
2294
+ _e,
2295
+ ct,
2295
2296
  ye,
2296
- k,
2297
+ N,
2297
2298
  O,
2298
- Ue,
2299
- te,
2300
- ie,
2301
- he,
2302
- xt,
2303
- ft,
2304
- Yt,
2305
- Je,
2299
+ Ie,
2300
+ Y,
2301
+ $,
2302
+ me,
2303
+ Jt,
2304
+ mt,
2305
+ $t,
2306
2306
  Xe,
2307
- c,
2308
- d,
2307
+ Ye,
2308
+ o,
2309
2309
  u,
2310
- h,
2310
+ f,
2311
+ b,
2311
2312
  _,
2312
- w,
2313
- E,
2314
- C,
2315
2313
  z,
2314
+ C,
2315
+ T,
2316
2316
  p,
2317
- G,
2318
- b,
2319
- g,
2320
2317
  H,
2321
- L,
2322
- ee,
2323
- Pe,
2324
- ze,
2325
- ge,
2318
+ R,
2319
+ c,
2320
+ g,
2321
+ Le,
2322
+ U,
2323
+ de,
2326
2324
  Ze,
2327
2325
  Re,
2328
- Oe,
2326
+ fe,
2329
2327
  qe,
2328
+ Oe,
2329
+ De,
2330
2330
  Ge,
2331
2331
  Qe,
2332
- Gt,
2332
+ Ke,
2333
2333
  Qt,
2334
- ct,
2335
2334
  Kt,
2335
+ dt,
2336
2336
  Vt,
2337
+ xt,
2337
2338
  P,
2338
- S,
2339
- Ke,
2339
+ w,
2340
+ Ve,
2341
+ r,
2340
2342
  n,
2343
+ d,
2341
2344
  l,
2342
- r,
2343
- $t,
2344
2345
  ei,
2345
2346
  ti,
2346
2347
  ii,
@@ -2352,17 +2353,18 @@ function yn(i, e, t) {
2352
2353
  li,
2353
2354
  ui,
2354
2355
  ci,
2355
- di
2356
+ di,
2357
+ fi
2356
2358
  ];
2357
2359
  }
2358
- let wn = class extends _e {
2360
+ let En = class extends ve {
2359
2361
  constructor(e) {
2360
- super(), Le(
2362
+ super(), be(
2361
2363
  this,
2362
2364
  e,
2365
+ wn,
2363
2366
  yn,
2364
- _n,
2365
- ve,
2367
+ he,
2366
2368
  {
2367
2369
  ZOOM_DEFAULTS: 25,
2368
2370
  class: 2,
@@ -2431,16 +2433,16 @@ let wn = class extends _e {
2431
2433
  return this.$$.ctx[54];
2432
2434
  }
2433
2435
  };
2434
- const En = new FinalizationRegistry((i) => {
2436
+ const Sn = new FinalizationRegistry((i) => {
2435
2437
  i.$destroy();
2436
2438
  });
2437
- var J, je, qt;
2438
- const lt = class lt extends EventTarget {
2439
+ var J, je, Gt;
2440
+ const ut = class ut extends EventTarget {
2439
2441
  constructor({ target: t, ...n }) {
2440
2442
  super();
2441
- it(this, je);
2442
- it(this, J);
2443
- gt(this, J, new wn({
2443
+ nt(this, je);
2444
+ nt(this, J);
2445
+ ht(this, J, new En({
2444
2446
  target: t,
2445
2447
  props: n
2446
2448
  }));
@@ -2454,38 +2456,38 @@ const lt = class lt extends EventTarget {
2454
2456
  "reversetoggle",
2455
2457
  "querychange"
2456
2458
  ])
2457
- re(this, J).$on(r, (l) => {
2458
- ht(this, je, qt).call(this, r, l.detail);
2459
+ te(this, J).$on(r, (l) => {
2460
+ bt(this, je, Gt).call(this, r, l.detail);
2459
2461
  });
2460
- re(this, J).$on("select", (r) => {
2462
+ te(this, J).$on("select", (r) => {
2461
2463
  const l = new CustomEvent(r.type, {
2462
2464
  detail: r.detail
2463
2465
  });
2464
2466
  this.dispatchEvent(l);
2465
- }), En.register(this, re(this, J));
2467
+ }), Sn.register(this, te(this, J));
2466
2468
  }
2467
2469
  setOptions(t) {
2468
- re(this, J).$set(t);
2470
+ te(this, J).$set(t);
2469
2471
  }
2470
2472
  setQuery(t, n = !0) {
2471
2473
  var r;
2472
- (r = re(this, J)) == null || r.setQuery(t, n);
2474
+ (r = te(this, J)) == null || r.setQuery(t, n);
2473
2475
  }
2474
2476
  clearMap() {
2475
2477
  var t;
2476
- (t = re(this, J)) == null || t.clearMap();
2478
+ (t = te(this, J)) == null || t.clearMap();
2477
2479
  }
2478
2480
  clearList() {
2479
2481
  var t;
2480
- (t = re(this, J)) == null || t.clearList();
2482
+ (t = te(this, J)) == null || t.clearList();
2481
2483
  }
2482
2484
  focus() {
2483
2485
  var t;
2484
- (t = re(this, J)) == null || t.focus();
2486
+ (t = te(this, J)) == null || t.focus();
2485
2487
  }
2486
2488
  blur() {
2487
2489
  var t;
2488
- (t = re(this, J)) == null || t.blur();
2490
+ (t = te(this, J)) == null || t.blur();
2489
2491
  }
2490
2492
  addEventListener(t, n, r) {
2491
2493
  super.addEventListener(t, n, r);
@@ -2497,16 +2499,16 @@ const lt = class lt extends EventTarget {
2497
2499
  return super.dispatchEvent(t);
2498
2500
  }
2499
2501
  };
2500
- J = new WeakMap(), je = new WeakSet(), qt = function(t, n) {
2501
- return bt(lt.prototype, this, "dispatchEvent").call(
2502
+ J = new WeakMap(), je = new WeakSet(), Gt = function(t, n) {
2503
+ return vt(ut.prototype, this, "dispatchEvent").call(
2502
2504
  this,
2503
2505
  new CustomEvent(t, {
2504
2506
  detail: n
2505
2507
  })
2506
2508
  );
2507
2509
  };
2508
- let It = lt;
2510
+ let At = ut;
2509
2511
  export {
2510
- It as GeocodingControl
2512
+ At as GeocodingControl
2511
2513
  };
2512
2514
  //# sourceMappingURL=vanilla.js.map