@maptiler/geocoding-control 2.1.3-rc1 → 2.1.3

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