@maptiler/geocoding-control 0.0.76 → 0.0.77

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/react.js CHANGED
@@ -1,4 +1,4 @@
1
- import { forwardRef as Ct, useRef as qe, useEffect as Ge, useImperativeHandle as Rt, createElement as Et } from "react";
1
+ import { forwardRef as Ct, useRef as qe, useEffect as xe, useImperativeHandle as Rt, createElement as Et } from "react";
2
2
  function w() {
3
3
  }
4
4
  function Bt(t, e) {
@@ -18,7 +18,7 @@ function ee(t) {
18
18
  function it(t) {
19
19
  return typeof t == "function";
20
20
  }
21
- function he(t, e) {
21
+ function me(t, e) {
22
22
  return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
23
23
  }
24
24
  function Lt(t) {
@@ -99,13 +99,13 @@ function jt(t) {
99
99
  return e.preventDefault(), t.call(this, e);
100
100
  };
101
101
  }
102
- function o(t, e, n) {
102
+ function s(t, e, n) {
103
103
  n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
104
104
  }
105
- function Gt(t) {
105
+ function xt(t) {
106
106
  return Array.from(t.childNodes);
107
107
  }
108
- function we(t, e) {
108
+ function ke(t, e) {
109
109
  e = "" + e, t.wholeText !== e && (t.data = e);
110
110
  }
111
111
  function Ze(t, e) {
@@ -114,28 +114,28 @@ function Ze(t, e) {
114
114
  function Q(t, e, n) {
115
115
  t.classList[n ? "add" : "remove"](e);
116
116
  }
117
- function xt(t, e, { bubbles: n = !1, cancelable: l = !1 } = {}) {
117
+ function Gt(t, e, { bubbles: n = !1, cancelable: l = !1 } = {}) {
118
118
  const c = document.createEvent("CustomEvent");
119
119
  return c.initCustomEvent(t, n, l, e), c;
120
120
  }
121
- let ke;
122
- function be(t) {
123
- ke = t;
121
+ let ve;
122
+ function we(t) {
123
+ ve = t;
124
124
  }
125
- function ot() {
126
- if (!ke)
125
+ function st() {
126
+ if (!ve)
127
127
  throw new Error("Function called outside component initialization");
128
- return ke;
128
+ return ve;
129
129
  }
130
130
  function Ot(t) {
131
- ot().$$.on_destroy.push(t);
131
+ st().$$.on_destroy.push(t);
132
132
  }
133
133
  function Dt() {
134
- const t = ot();
134
+ const t = st();
135
135
  return (e, n, { cancelable: l = !1 } = {}) => {
136
136
  const c = t.$$.callbacks[e];
137
137
  if (c) {
138
- const u = xt(e, n, { cancelable: l });
138
+ const u = Gt(e, n, { cancelable: l });
139
139
  return c.slice().forEach((i) => {
140
140
  i.call(t, u);
141
141
  }), !u.defaultPrevented;
@@ -143,40 +143,42 @@ function Dt() {
143
143
  return !0;
144
144
  };
145
145
  }
146
- const fe = [], Oe = [], Re = [], Je = [], Ft = Promise.resolve();
146
+ const fe = [], Oe = [];
147
+ let ae = [];
148
+ const Je = [], Ft = /* @__PURE__ */ Promise.resolve();
147
149
  let De = !1;
148
150
  function Vt() {
149
- De || (De = !0, Ft.then(st));
151
+ De || (De = !0, Ft.then(ot));
150
152
  }
151
153
  function Fe(t) {
152
- Re.push(t);
154
+ ae.push(t);
153
155
  }
154
- const xe = /* @__PURE__ */ new Set();
156
+ const Ge = /* @__PURE__ */ new Set();
155
157
  let ue = 0;
156
- function st() {
158
+ function ot() {
157
159
  if (ue !== 0)
158
160
  return;
159
- const t = ke;
161
+ const t = ve;
160
162
  do {
161
163
  try {
162
164
  for (; ue < fe.length; ) {
163
165
  const e = fe[ue];
164
- ue++, be(e), Ht(e.$$);
166
+ ue++, we(e), Ht(e.$$);
165
167
  }
166
168
  } catch (e) {
167
169
  throw fe.length = 0, ue = 0, e;
168
170
  }
169
- for (be(null), fe.length = 0, ue = 0; Oe.length; )
171
+ for (we(null), fe.length = 0, ue = 0; Oe.length; )
170
172
  Oe.pop()();
171
- for (let e = 0; e < Re.length; e += 1) {
172
- const n = Re[e];
173
- xe.has(n) || (xe.add(n), n());
173
+ for (let e = 0; e < ae.length; e += 1) {
174
+ const n = ae[e];
175
+ Ge.has(n) || (Ge.add(n), n());
174
176
  }
175
- Re.length = 0;
177
+ ae.length = 0;
176
178
  } while (fe.length);
177
179
  for (; Je.length; )
178
180
  Je.pop()();
179
- De = !1, xe.clear(), be(t);
181
+ De = !1, Ge.clear(), we(t);
180
182
  }
181
183
  function Ht(t) {
182
184
  if (t.fragment !== null) {
@@ -185,6 +187,10 @@ function Ht(t) {
185
187
  t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(Fe);
186
188
  }
187
189
  }
190
+ function Kt(t) {
191
+ const e = [], n = [];
192
+ ae.forEach((l) => t.indexOf(l) === -1 ? e.push(l) : n.push(l)), n.forEach((l) => l()), ae = e;
193
+ }
188
194
  const Ee = /* @__PURE__ */ new Set();
189
195
  let ie;
190
196
  function Be() {
@@ -211,26 +217,26 @@ function O(t, e, n, l) {
211
217
  } else
212
218
  l && l();
213
219
  }
214
- function ve(t) {
220
+ function pe(t) {
215
221
  t && t.c();
216
222
  }
217
- function ae(t, e, n, l) {
223
+ function de(t, e, n, l) {
218
224
  const { fragment: c, after_update: u } = t.$$;
219
225
  c && c.m(e, n), l || Fe(() => {
220
226
  const i = t.$$.on_mount.map(rt).filter(it);
221
227
  t.$$.on_destroy ? t.$$.on_destroy.push(...i) : ee(i), t.$$.on_mount = [];
222
228
  }), u.forEach(Fe);
223
229
  }
224
- function de(t, e) {
230
+ function he(t, e) {
225
231
  const n = t.$$;
226
- n.fragment !== null && (ee(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
232
+ n.fragment !== null && (Kt(n.after_update), ee(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
227
233
  }
228
- function Kt(t, e) {
234
+ function Qt(t, e) {
229
235
  t.$$.dirty[0] === -1 && (fe.push(t), Vt(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
230
236
  }
231
- function me(t, e, n, l, c, u, i, m = [-1]) {
232
- const f = ke;
233
- be(t);
237
+ function _e(t, e, n, l, c, u, i, m = [-1]) {
238
+ const f = ve;
239
+ we(t);
234
240
  const a = t.$$ = {
235
241
  fragment: null,
236
242
  ctx: [],
@@ -255,21 +261,21 @@ function me(t, e, n, l, c, u, i, m = [-1]) {
255
261
  i && i(a.root);
256
262
  let h = !1;
257
263
  if (a.ctx = n ? n(t, e.props || {}, (v, I, ...N) => {
258
- const x = N.length ? N[0] : I;
259
- return a.ctx && c(a.ctx[v], a.ctx[v] = x) && (!a.skip_bound && a.bound[v] && a.bound[v](x), h && Kt(t, v)), I;
264
+ const G = N.length ? N[0] : I;
265
+ return a.ctx && c(a.ctx[v], a.ctx[v] = G) && (!a.skip_bound && a.bound[v] && a.bound[v](G), h && Qt(t, v)), I;
260
266
  }) : [], a.update(), h = !0, ee(a.before_update), a.fragment = l ? l(a.ctx) : !1, e.target) {
261
267
  if (e.hydrate) {
262
- const v = Gt(e.target);
268
+ const v = xt(e.target);
263
269
  a.fragment && a.fragment.l(v), v.forEach(D);
264
270
  } else
265
271
  a.fragment && a.fragment.c();
266
- e.intro && L(t.$$.fragment), ae(t, e.target, e.anchor, e.customElement), st();
272
+ e.intro && L(t.$$.fragment), de(t, e.target, e.anchor, e.customElement), ot();
267
273
  }
268
- be(f);
274
+ we(f);
269
275
  }
270
- class _e {
276
+ class ge {
271
277
  $destroy() {
272
- de(this, 1), this.$destroy = w;
278
+ he(this, 1), this.$destroy = w;
273
279
  }
274
280
  $on(e, n) {
275
281
  if (!it(n))
@@ -284,11 +290,11 @@ class _e {
284
290
  this.$$set && !Lt(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
285
291
  }
286
292
  }
287
- function Qt(t) {
293
+ function qt(t) {
288
294
  let e, n;
289
295
  return {
290
296
  c() {
291
- e = $("svg"), n = $("path"), o(n, "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"), o(e, "viewBox", "0 0 60.006 21.412"), o(e, "width", "14"), o(e, "height", "20"), o(e, "class", "svelte-en2qvf");
297
+ e = $("svg"), n = $("path"), s(n, "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"), s(e, "viewBox", "0 0 60.006 21.412"), s(e, "width", "14"), s(e, "height", "20"), s(e, "class", "svelte-en2qvf");
292
298
  },
293
299
  m(l, c) {
294
300
  K(l, e, c), _(e, n);
@@ -301,16 +307,16 @@ function Qt(t) {
301
307
  }
302
308
  };
303
309
  }
304
- class qt extends _e {
310
+ class Ut extends ge {
305
311
  constructor(e) {
306
- super(), me(this, e, null, Qt, he, {});
312
+ super(), _e(this, e, null, qt, me, {});
307
313
  }
308
314
  }
309
- function Ut(t) {
315
+ function Wt(t) {
310
316
  let e, n;
311
317
  return {
312
318
  c() {
313
- e = $("svg"), n = $("path"), o(n, "d", "M3.8 2.5c-.6 0-1.3.7-1.3 1.3 0 .3.2.7.5.8L7.2 9 3 13.2c-.3.3-.5.7-.5 1 0 .6.7 1.3 1.3 1.3.3 0 .7-.2 1-.5L9 10.8l4.2 4.2c.2.3.7.3 1 .3.6 0 1.3-.7 1.3-1.3 0-.3-.2-.7-.3-1l-4.4-4L15 4.6c.3-.2.5-.5.5-.8 0-.7-.7-1.3-1.3-1.3-.3 0-.7.2-1 .3L9 7.1 4.8 2.8c-.3-.1-.7-.3-1-.3z"), o(e, "viewBox", "0 0 18 18"), o(e, "width", "16"), o(e, "height", "16"), o(e, "class", "svelte-en2qvf");
319
+ e = $("svg"), n = $("path"), s(n, "d", "M3.8 2.5c-.6 0-1.3.7-1.3 1.3 0 .3.2.7.5.8L7.2 9 3 13.2c-.3.3-.5.7-.5 1 0 .6.7 1.3 1.3 1.3.3 0 .7-.2 1-.5L9 10.8l4.2 4.2c.2.3.7.3 1 .3.6 0 1.3-.7 1.3-1.3 0-.3-.2-.7-.3-1l-4.4-4L15 4.6c.3-.2.5-.5.5-.8 0-.7-.7-1.3-1.3-1.3-.3 0-.7.2-1 .3L9 7.1 4.8 2.8c-.3-.1-.7-.3-1-.3z"), s(e, "viewBox", "0 0 18 18"), s(e, "width", "16"), s(e, "height", "16"), s(e, "class", "svelte-en2qvf");
314
320
  },
315
321
  m(l, c) {
316
322
  K(l, e, c), _(e, n);
@@ -323,16 +329,16 @@ function Ut(t) {
323
329
  }
324
330
  };
325
331
  }
326
- class Wt extends _e {
332
+ class Zt extends ge {
327
333
  constructor(e) {
328
- super(), me(this, e, null, Ut, he, {});
334
+ super(), _e(this, e, null, Wt, me, {});
329
335
  }
330
336
  }
331
- function Zt(t) {
337
+ function Jt(t) {
332
338
  let e;
333
339
  return {
334
340
  c() {
335
- e = S("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>', o(e, "class", "svelte-7cmwmc");
341
+ e = S("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>', s(e, "class", "svelte-7cmwmc");
336
342
  },
337
343
  m(n, l) {
338
344
  K(n, e, l);
@@ -345,17 +351,17 @@ function Zt(t) {
345
351
  }
346
352
  };
347
353
  }
348
- class Jt extends _e {
354
+ class Xt extends ge {
349
355
  constructor(e) {
350
- super(), me(this, e, null, Zt, he, {});
356
+ super(), _e(this, e, null, Jt, me, {});
351
357
  }
352
358
  }
353
- function Xt(t) {
359
+ function Yt(t) {
354
360
  let e, n, l;
355
361
  return {
356
362
  c() {
357
- e = $("svg"), n = $("path"), o(n, "stroke-width", "4"), o(n, "fill-rule", "evenodd"), o(n, "clip-rule", "evenodd"), o(n, "d", "M 5,33.103579 C 5,17.607779 18.457,5 35,5 C 51.543,5 65,17.607779 65,33.103579 C 65,56.388679 40.4668,76.048179 36.6112,79.137779 C 36.3714,79.329879 36.2116,79.457979 36.1427,79.518879 C 35.8203,79.800879 35.4102,79.942779 35,79.942779 C 34.5899,79.942779 34.1797,79.800879 33.8575,79.518879 C 33.7886,79.457979 33.6289,79.330079 33.3893,79.138079 C 29.5346,76.049279 5,56.389379 5,33.103579 Z M 35.0001,49.386379 C 43.1917,49.386379 49.8323,42.646079 49.8323,34.331379 C 49.8323,26.016779 43.1917,19.276479 35.0001,19.276479 C 26.8085,19.276479 20.1679,26.016779 20.1679,34.331379 C 20.1679,42.646079 26.8085,49.386379 35.0001,49.386379 Z"), o(n, "class", "svelte-1k1cmht"), o(e, "width", l = /*displayIn*/
358
- t[0] !== "list" ? void 0 : "20"), o(e, "viewBox", "0 0 70 85"), o(e, "fill", "none"), o(e, "class", "svelte-1k1cmht"), Q(
363
+ e = $("svg"), n = $("path"), s(n, "stroke-width", "4"), s(n, "fill-rule", "evenodd"), s(n, "clip-rule", "evenodd"), s(n, "d", "M 5,33.103579 C 5,17.607779 18.457,5 35,5 C 51.543,5 65,17.607779 65,33.103579 C 65,56.388679 40.4668,76.048179 36.6112,79.137779 C 36.3714,79.329879 36.2116,79.457979 36.1427,79.518879 C 35.8203,79.800879 35.4102,79.942779 35,79.942779 C 34.5899,79.942779 34.1797,79.800879 33.8575,79.518879 C 33.7886,79.457979 33.6289,79.330079 33.3893,79.138079 C 29.5346,76.049279 5,56.389379 5,33.103579 Z M 35.0001,49.386379 C 43.1917,49.386379 49.8323,42.646079 49.8323,34.331379 C 49.8323,26.016779 43.1917,19.276479 35.0001,19.276479 C 26.8085,19.276479 20.1679,26.016779 20.1679,34.331379 C 20.1679,42.646079 26.8085,49.386379 35.0001,49.386379 Z"), s(n, "class", "svelte-1k1cmht"), s(e, "width", l = /*displayIn*/
364
+ t[0] !== "list" ? void 0 : "20"), s(e, "viewBox", "0 0 70 85"), s(e, "fill", "none"), s(e, "class", "svelte-1k1cmht"), Q(
359
365
  e,
360
366
  "in-map",
361
367
  /*displayIn*/
@@ -373,7 +379,7 @@ function Xt(t) {
373
379
  p(c, [u]) {
374
380
  u & /*displayIn*/
375
381
  1 && l !== (l = /*displayIn*/
376
- c[0] !== "list" ? void 0 : "20") && o(e, "width", l), u & /*displayIn*/
382
+ c[0] !== "list" ? void 0 : "20") && s(e, "width", l), u & /*displayIn*/
377
383
  1 && Q(
378
384
  e,
379
385
  "in-map",
@@ -394,22 +400,22 @@ function Xt(t) {
394
400
  }
395
401
  };
396
402
  }
397
- function Yt(t, e, n) {
403
+ function $t(t, e, n) {
398
404
  let { displayIn: l } = e;
399
405
  return t.$$set = (c) => {
400
406
  "displayIn" in c && n(0, l = c.displayIn);
401
407
  }, [l];
402
408
  }
403
- class $t extends _e {
409
+ class en extends ge {
404
410
  constructor(e) {
405
- super(), me(this, e, Yt, Xt, he, { displayIn: 0 });
411
+ super(), _e(this, e, $t, Yt, me, { displayIn: 0 });
406
412
  }
407
413
  }
408
- function en(t) {
414
+ function tn(t) {
409
415
  let e, n;
410
416
  return {
411
417
  c() {
412
- e = $("svg"), n = $("path"), o(n, "d", "M7.4 2.5c-2.7 0-4.9 2.2-4.9 4.9s2.2 4.9 4.9 4.9c1 0 1.8-.2 2.5-.8l3.7 3.7c.2.2.4.3.8.3.7 0 1.1-.4 1.1-1.1 0-.3-.1-.5-.3-.8L11.4 10c.4-.8.8-1.6.8-2.5.1-2.8-2.1-5-4.8-5zm0 1.6c1.8 0 3.2 1.4 3.2 3.2s-1.4 3.2-3.2 3.2-3.3-1.3-3.3-3.1 1.4-3.3 3.3-3.3z"), o(e, "viewBox", "0 0 18 18"), o(e, "xml:space", "preserve"), o(e, "width", "20"), o(e, "class", "svelte-en2qvf");
418
+ e = $("svg"), n = $("path"), s(n, "d", "M7.4 2.5c-2.7 0-4.9 2.2-4.9 4.9s2.2 4.9 4.9 4.9c1 0 1.8-.2 2.5-.8l3.7 3.7c.2.2.4.3.8.3.7 0 1.1-.4 1.1-1.1 0-.3-.1-.5-.3-.8L11.4 10c.4-.8.8-1.6.8-2.5.1-2.8-2.1-5-4.8-5zm0 1.6c1.8 0 3.2 1.4 3.2 3.2s-1.4 3.2-3.2 3.2-3.3-1.3-3.3-3.1 1.4-3.3 3.3-3.3z"), s(e, "viewBox", "0 0 18 18"), s(e, "xml:space", "preserve"), s(e, "width", "20"), s(e, "class", "svelte-en2qvf");
413
419
  },
414
420
  m(l, c) {
415
421
  K(l, e, c), _(e, n);
@@ -422,9 +428,9 @@ function en(t) {
422
428
  }
423
429
  };
424
430
  }
425
- class tn extends _e {
431
+ class nn extends ge {
426
432
  constructor(e) {
427
- super(), me(this, e, null, en, he, {});
433
+ super(), _e(this, e, null, tn, me, {});
428
434
  }
429
435
  }
430
436
  function Xe(t, e, n) {
@@ -433,12 +439,12 @@ function Xe(t, e, n) {
433
439
  }
434
440
  function Ye(t) {
435
441
  let e, n;
436
- return e = new Jt({}), {
442
+ return e = new Xt({}), {
437
443
  c() {
438
- ve(e.$$.fragment);
444
+ pe(e.$$.fragment);
439
445
  },
440
446
  m(l, c) {
441
- ae(e, l, c), n = !0;
447
+ de(e, l, c), n = !0;
442
448
  },
443
449
  i(l) {
444
450
  n || (L(e.$$.fragment, l), n = !0);
@@ -447,20 +453,20 @@ function Ye(t) {
447
453
  O(e.$$.fragment, l), n = !1;
448
454
  },
449
455
  d(l) {
450
- de(e, l);
456
+ he(e, l);
451
457
  }
452
458
  };
453
459
  }
454
460
  function $e(t) {
455
461
  let e, n, l, c, u;
456
- return n = new qt({}), {
462
+ return n = new Ut({}), {
457
463
  c() {
458
- e = S("button"), ve(n.$$.fragment), o(e, "type", "button"), o(
464
+ e = S("button"), pe(n.$$.fragment), s(e, "type", "button"), s(
459
465
  e,
460
466
  "title",
461
467
  /*reverseButtonTitle*/
462
468
  t[9]
463
- ), o(e, "class", "svelte-z0d4ta"), Q(
469
+ ), s(e, "class", "svelte-z0d4ta"), Q(
464
470
  e,
465
471
  "active",
466
472
  /*reverseActive*/
@@ -468,7 +474,7 @@ function $e(t) {
468
474
  );
469
475
  },
470
476
  m(i, m) {
471
- K(i, e, m), ae(n, e, null), l = !0, c || (u = H(
477
+ K(i, e, m), de(n, e, null), l = !0, c || (u = H(
472
478
  e,
473
479
  "click",
474
480
  /*click_handler_2*/
@@ -477,7 +483,7 @@ function $e(t) {
477
483
  },
478
484
  p(i, m) {
479
485
  (!l || m[0] & /*reverseButtonTitle*/
480
- 512) && o(
486
+ 512) && s(
481
487
  e,
482
488
  "title",
483
489
  /*reverseButtonTitle*/
@@ -497,11 +503,11 @@ function $e(t) {
497
503
  O(n.$$.fragment, i), l = !1;
498
504
  },
499
505
  d(i) {
500
- i && D(e), de(n), c = !1, u();
506
+ i && D(e), he(n), c = !1, u();
501
507
  }
502
508
  };
503
509
  }
504
- function nn(t) {
510
+ function ln(t) {
505
511
  let e, n, l, c, u = (
506
512
  /*listFeatures*/
507
513
  t[12]
@@ -516,12 +522,12 @@ function nn(t) {
516
522
  e = S("ul");
517
523
  for (let f = 0; f < i.length; f += 1)
518
524
  i[f].c();
519
- o(e, "class", "svelte-z0d4ta");
525
+ s(e, "class", "svelte-z0d4ta");
520
526
  },
521
527
  m(f, a) {
522
528
  K(f, e, a);
523
529
  for (let h = 0; h < i.length; h += 1)
524
- i[h].m(e, null);
530
+ i[h] && i[h].m(e, null);
525
531
  n = !0, l || (c = [
526
532
  H(
527
533
  e,
@@ -570,21 +576,21 @@ function nn(t) {
570
576
  }
571
577
  };
572
578
  }
573
- function ln(t) {
579
+ function rn(t) {
574
580
  let e, n;
575
581
  return {
576
582
  c() {
577
583
  e = S("div"), n = ce(
578
584
  /*noResultsMessage*/
579
585
  t[7]
580
- ), o(e, "class", "no-results svelte-z0d4ta");
586
+ ), s(e, "class", "no-results svelte-z0d4ta");
581
587
  },
582
588
  m(l, c) {
583
589
  K(l, e, c), _(e, n);
584
590
  },
585
591
  p(l, c) {
586
592
  c[0] & /*noResultsMessage*/
587
- 128 && we(
593
+ 128 && ke(
588
594
  n,
589
595
  /*noResultsMessage*/
590
596
  l[7]
@@ -597,7 +603,7 @@ function ln(t) {
597
603
  }
598
604
  };
599
605
  }
600
- function rn(t) {
606
+ function cn(t) {
601
607
  let e = "", n;
602
608
  return {
603
609
  c() {
@@ -614,21 +620,21 @@ function rn(t) {
614
620
  }
615
621
  };
616
622
  }
617
- function cn(t) {
623
+ function sn(t) {
618
624
  let e, n;
619
625
  return {
620
626
  c() {
621
627
  e = S("div"), n = ce(
622
628
  /*errorMessage*/
623
629
  t[6]
624
- ), o(e, "class", "error svelte-z0d4ta");
630
+ ), s(e, "class", "error svelte-z0d4ta");
625
631
  },
626
632
  m(l, c) {
627
633
  K(l, e, c), _(e, n);
628
634
  },
629
635
  p(l, c) {
630
636
  c[0] & /*errorMessage*/
631
- 64 && we(
637
+ 64 && ke(
632
638
  n,
633
639
  /*errorMessage*/
634
640
  l[6]
@@ -650,7 +656,7 @@ function et(t) {
650
656
  ), l;
651
657
  return {
652
658
  c() {
653
- e = S("span"), l = ce(n), o(e, "class", "svelte-z0d4ta");
659
+ e = S("span"), l = ce(n), s(e, "class", "svelte-z0d4ta");
654
660
  },
655
661
  m(i, m) {
656
662
  K(i, e, m), _(e, l);
@@ -660,7 +666,7 @@ function et(t) {
660
666
  m[0] & /*listFeatures*/
661
667
  4096 && n !== (n = /*feature*/
662
668
  (((a = (f = i[69].properties) == null ? void 0 : f.place_type_name) == null ? void 0 : a[0]) ?? /*feature*/
663
- i[69].place_type[0]) + "") && we(l, n);
669
+ i[69].place_type[0]) + "") && ke(l, n);
664
670
  },
665
671
  d(i) {
666
672
  i && D(e);
@@ -674,8 +680,8 @@ function tt(t) {
674
680
  ), f, a, h, v, I, N = (
675
681
  /*feature*/
676
682
  t[69].place_name.replace(/[^,]*,?\s*/, "") + ""
677
- ), x, p, k, B, C, F;
678
- n = new $t({ props: { displayIn: "list" } });
683
+ ), G, p, k, B, C, F;
684
+ n = new en({ props: { displayIn: "list" } });
679
685
  let z = (
680
686
  /*showPlaceType*/
681
687
  t[10] && et(t)
@@ -700,9 +706,9 @@ function tt(t) {
700
706
  }
701
707
  return {
702
708
  c() {
703
- e = S("li"), ve(n.$$.fragment), l = W(), c = S("span"), u = S("span"), i = S("span"), f = ce(m), a = W(), z && z.c(), h = W(), v = S("span"), I = S("span"), x = ce(N), p = W(), o(i, "class", "svelte-z0d4ta"), o(u, "class", "svelte-z0d4ta"), o(c, "class", "svelte-z0d4ta"), o(I, "class", "svelte-z0d4ta"), o(v, "class", "svelte-z0d4ta"), o(e, "tabindex", "0"), o(e, "data-selected", k = /*selectedItemIndex*/
709
+ e = S("li"), pe(n.$$.fragment), l = W(), c = S("span"), u = S("span"), i = S("span"), f = ce(m), a = W(), z && z.c(), h = W(), v = S("span"), I = S("span"), G = ce(N), p = W(), s(i, "class", "svelte-z0d4ta"), s(u, "class", "svelte-z0d4ta"), s(c, "class", "svelte-z0d4ta"), s(I, "class", "svelte-z0d4ta"), s(v, "class", "svelte-z0d4ta"), s(e, "tabindex", "0"), s(e, "data-selected", k = /*selectedItemIndex*/
704
710
  t[13] === /*i*/
705
- t[71]), o(e, "class", "svelte-z0d4ta"), Q(
711
+ t[71]), s(e, "class", "svelte-z0d4ta"), Q(
706
712
  e,
707
713
  "selected",
708
714
  /*selectedItemIndex*/
@@ -711,7 +717,7 @@ function tt(t) {
711
717
  );
712
718
  },
713
719
  m(P, M) {
714
- K(P, e, M), ae(n, e, null), _(e, l), _(e, c), _(c, u), _(u, i), _(i, f), _(u, a), z && z.m(u, null), _(e, h), _(e, v), _(v, I), _(I, x), _(e, p), B = !0, C || (F = [
720
+ K(P, e, M), de(n, e, null), _(e, l), _(e, c), _(c, u), _(u, i), _(i, f), _(u, a), z && z.m(u, null), _(e, h), _(e, v), _(v, I), _(I, G), _(e, p), B = !0, C || (F = [
715
721
  H(e, "mouseenter", d),
716
722
  H(e, "focus", b)
717
723
  ], C = !0);
@@ -719,13 +725,13 @@ function tt(t) {
719
725
  p(P, M) {
720
726
  t = P, (!B || M[0] & /*listFeatures*/
721
727
  4096) && m !== (m = /*feature*/
722
- t[69].place_name.replace(/,.*/, "") + "") && we(f, m), /*showPlaceType*/
728
+ t[69].place_name.replace(/,.*/, "") + "") && ke(f, m), /*showPlaceType*/
723
729
  t[10] ? z ? z.p(t, M) : (z = et(t), z.c(), z.m(u, null)) : z && (z.d(1), z = null), (!B || M[0] & /*listFeatures*/
724
730
  4096) && N !== (N = /*feature*/
725
- t[69].place_name.replace(/[^,]*,?\s*/, "") + "") && we(x, N), (!B || M[0] & /*selectedItemIndex*/
731
+ t[69].place_name.replace(/[^,]*,?\s*/, "") + "") && ke(G, N), (!B || M[0] & /*selectedItemIndex*/
726
732
  8192 && k !== (k = /*selectedItemIndex*/
727
733
  t[13] === /*i*/
728
- t[71])) && o(e, "data-selected", k), (!B || M[0] & /*selectedItemIndex*/
734
+ t[71])) && s(e, "data-selected", k), (!B || M[0] & /*selectedItemIndex*/
729
735
  8192) && Q(
730
736
  e,
731
737
  "selected",
@@ -741,13 +747,13 @@ function tt(t) {
741
747
  O(n.$$.fragment, P), B = !1;
742
748
  },
743
749
  d(P) {
744
- P && D(e), de(n), z && z.d(), C = !1, ee(F);
750
+ P && D(e), he(n), z && z.d(), C = !1, ee(F);
745
751
  }
746
752
  };
747
753
  }
748
754
  function on(t) {
749
- let e, n, l, c, u, i, m, f, a, h, v, I, N, x, p, k, B, C, F, z;
750
- c = new tn({}), h = new Wt({});
755
+ let e, n, l, c, u, i, m, f, a, h, v, I, N, G, p, k, B, C, F, z;
756
+ c = new nn({}), h = new Zt({});
751
757
  let d = (
752
758
  /*abortController*/
753
759
  t[17] && Ye()
@@ -764,47 +770,47 @@ function on(t) {
764
770
  /*$$scope*/
765
771
  t[47],
766
772
  null
767
- ), Z = [cn, rn, ln, nn], A = [];
768
- function ge(s, T) {
773
+ ), Z = [sn, cn, rn, ln], A = [];
774
+ function ye(o, T) {
769
775
  var J, te;
770
776
  return (
771
777
  /*error*/
772
- s[16] ? 0 : (
778
+ o[16] ? 0 : (
773
779
  /*focusedDelayed*/
774
- s[14] ? (
780
+ o[14] ? (
775
781
  /*listFeatures*/
776
- ((J = s[12]) == null ? void 0 : J.length) === 0 ? 2 : (
782
+ ((J = o[12]) == null ? void 0 : J.length) === 0 ? 2 : (
777
783
  /*focusedDelayed*/
778
- s[14] && /*listFeatures*/
779
- ((te = s[12]) != null && te.length) ? 3 : -1
784
+ o[14] && /*listFeatures*/
785
+ ((te = o[12]) != null && te.length) ? 3 : -1
780
786
  )
781
787
  ) : 1
782
788
  )
783
789
  );
784
790
  }
785
- return ~(p = ge(t)) && (k = A[p] = Z[p](t)), {
791
+ return ~(p = ye(t)) && (k = A[p] = Z[p](t)), {
786
792
  c() {
787
- e = S("form"), n = S("div"), l = S("button"), ve(c.$$.fragment), u = W(), i = S("input"), m = W(), f = S("div"), a = S("button"), ve(h.$$.fragment), v = W(), d && d.c(), I = W(), b && b.c(), N = W(), M && M.c(), x = W(), k && k.c(), o(l, "type", "button"), o(l, "class", "svelte-z0d4ta"), o(
793
+ e = S("form"), n = S("div"), l = S("button"), pe(c.$$.fragment), u = W(), i = S("input"), m = W(), f = S("div"), a = S("button"), pe(h.$$.fragment), v = W(), d && d.c(), I = W(), b && b.c(), N = W(), M && M.c(), G = W(), k && k.c(), s(l, "type", "button"), s(l, "class", "svelte-z0d4ta"), s(
788
794
  i,
789
795
  "placeholder",
790
796
  /*placeholder*/
791
797
  t[8]
792
- ), o(
798
+ ), s(
793
799
  i,
794
800
  "aria-label",
795
801
  /*placeholder*/
796
802
  t[8]
797
- ), o(i, "class", "svelte-z0d4ta"), o(a, "type", "button"), o(
803
+ ), s(i, "class", "svelte-z0d4ta"), s(a, "type", "button"), s(
798
804
  a,
799
805
  "title",
800
806
  /*clearButtonTitle*/
801
807
  t[3]
802
- ), o(a, "class", "svelte-z0d4ta"), Q(
808
+ ), s(a, "class", "svelte-z0d4ta"), Q(
803
809
  a,
804
810
  "displayable",
805
811
  /*searchValue*/
806
812
  t[1] !== ""
807
- ), o(f, "class", "clear-button-container svelte-z0d4ta"), o(n, "class", "input-group svelte-z0d4ta"), o(e, "tabindex", "0"), o(e, "class", B = We(
813
+ ), s(f, "class", "clear-button-container svelte-z0d4ta"), s(n, "class", "input-group svelte-z0d4ta"), s(e, "tabindex", "0"), s(e, "class", B = We(
808
814
  /*className*/
809
815
  t[2]
810
816
  ) + " svelte-z0d4ta"), Q(
@@ -815,12 +821,12 @@ function on(t) {
815
821
  t[1] === ""
816
822
  );
817
823
  },
818
- m(s, T) {
819
- K(s, e, T), _(e, n), _(n, l), ae(c, l, null), _(n, u), _(n, i), t[50](i), Ze(
824
+ m(o, T) {
825
+ K(o, e, T), _(e, n), _(n, l), de(c, l, null), _(n, u), _(n, i), t[50](i), Ze(
820
826
  i,
821
827
  /*searchValue*/
822
828
  t[1]
823
- ), _(n, m), _(n, f), _(f, a), ae(h, a, null), _(f, v), d && d.m(f, null), _(n, I), b && b.m(n, null), _(n, N), M && M.m(n, null), _(e, x), ~p && A[p].m(e, null), C = !0, F || (z = [
829
+ ), _(n, m), _(n, f), _(f, a), de(h, a, null), _(f, v), d && d.m(f, null), _(n, I), b && b.m(n, null), _(n, N), M && M.m(n, null), _(e, G), ~p && A[p].m(e, null), C = !0, F || (z = [
824
830
  H(
825
831
  l,
826
832
  "click",
@@ -869,97 +875,97 @@ function on(t) {
869
875
  ))
870
876
  ], F = !0);
871
877
  },
872
- p(s, T) {
878
+ p(o, T) {
873
879
  (!C || T[0] & /*placeholder*/
874
- 256) && o(
880
+ 256) && s(
875
881
  i,
876
882
  "placeholder",
877
883
  /*placeholder*/
878
- s[8]
884
+ o[8]
879
885
  ), (!C || T[0] & /*placeholder*/
880
- 256) && o(
886
+ 256) && s(
881
887
  i,
882
888
  "aria-label",
883
889
  /*placeholder*/
884
- s[8]
890
+ o[8]
885
891
  ), T[0] & /*searchValue*/
886
892
  2 && i.value !== /*searchValue*/
887
- s[1] && Ze(
893
+ o[1] && Ze(
888
894
  i,
889
895
  /*searchValue*/
890
- s[1]
896
+ o[1]
891
897
  ), (!C || T[0] & /*clearButtonTitle*/
892
- 8) && o(
898
+ 8) && s(
893
899
  a,
894
900
  "title",
895
901
  /*clearButtonTitle*/
896
- s[3]
902
+ o[3]
897
903
  ), (!C || T[0] & /*searchValue*/
898
904
  2) && Q(
899
905
  a,
900
906
  "displayable",
901
907
  /*searchValue*/
902
- s[1] !== ""
908
+ o[1] !== ""
903
909
  ), /*abortController*/
904
- s[17] ? d ? T[0] & /*abortController*/
910
+ o[17] ? d ? T[0] & /*abortController*/
905
911
  131072 && L(d, 1) : (d = Ye(), d.c(), L(d, 1), d.m(f, null)) : d && (Be(), O(d, 1, 1, () => {
906
912
  d = null;
907
913
  }), Le()), /*enableReverse*/
908
- s[5] === !0 ? b ? (b.p(s, T), T[0] & /*enableReverse*/
909
- 32 && L(b, 1)) : (b = $e(s), b.c(), L(b, 1), b.m(n, N)) : b && (Be(), O(b, 1, 1, () => {
914
+ o[5] === !0 ? b ? (b.p(o, T), T[0] & /*enableReverse*/
915
+ 32 && L(b, 1)) : (b = $e(o), b.c(), L(b, 1), b.m(n, N)) : b && (Be(), O(b, 1, 1, () => {
910
916
  b = null;
911
917
  }), Le()), M && M.p && (!C || T[1] & /*$$scope*/
912
918
  65536) && At(
913
919
  M,
914
920
  P,
915
- s,
921
+ o,
916
922
  /*$$scope*/
917
- s[47],
923
+ o[47],
918
924
  C ? It(
919
925
  P,
920
926
  /*$$scope*/
921
- s[47],
927
+ o[47],
922
928
  T,
923
929
  null
924
930
  ) : Pt(
925
931
  /*$$scope*/
926
- s[47]
932
+ o[47]
927
933
  ),
928
934
  null
929
935
  );
930
936
  let J = p;
931
- p = ge(s), p === J ? ~p && A[p].p(s, T) : (k && (Be(), O(A[J], 1, 1, () => {
937
+ p = ye(o), p === J ? ~p && A[p].p(o, T) : (k && (Be(), O(A[J], 1, 1, () => {
932
938
  A[J] = null;
933
- }), Le()), ~p ? (k = A[p], k ? k.p(s, T) : (k = A[p] = Z[p](s), k.c()), L(k, 1), k.m(e, null)) : k = null), (!C || T[0] & /*className*/
939
+ }), Le()), ~p ? (k = A[p], k ? k.p(o, T) : (k = A[p] = Z[p](o), k.c()), L(k, 1), k.m(e, null)) : k = null), (!C || T[0] & /*className*/
934
940
  4 && B !== (B = We(
935
941
  /*className*/
936
- s[2]
937
- ) + " svelte-z0d4ta")) && o(e, "class", B), (!C || T[0] & /*className, collapsed, searchValue*/
942
+ o[2]
943
+ ) + " svelte-z0d4ta")) && s(e, "class", B), (!C || T[0] & /*className, collapsed, searchValue*/
938
944
  22) && Q(
939
945
  e,
940
946
  "can-collapse",
941
947
  /*collapsed*/
942
- s[4] && /*searchValue*/
943
- s[1] === ""
948
+ o[4] && /*searchValue*/
949
+ o[1] === ""
944
950
  );
945
951
  },
946
- i(s) {
947
- C || (L(c.$$.fragment, s), L(h.$$.fragment, s), L(d), L(b), L(M, s), L(k), C = !0);
952
+ i(o) {
953
+ C || (L(c.$$.fragment, o), L(h.$$.fragment, o), L(d), L(b), L(M, o), L(k), C = !0);
948
954
  },
949
- o(s) {
950
- O(c.$$.fragment, s), O(h.$$.fragment, s), O(d), O(b), O(M, s), O(k), C = !1;
955
+ o(o) {
956
+ O(c.$$.fragment, o), O(h.$$.fragment, o), O(d), O(b), O(M, o), O(k), C = !1;
951
957
  },
952
- d(s) {
953
- s && D(e), de(c), t[50](null), de(h), d && d.d(), b && b.d(), M && M.d(s), ~p && A[p].d(), F = !1, ee(z);
958
+ d(o) {
959
+ o && D(e), he(c), t[50](null), he(h), d && d.d(), b && b.d(), M && M.d(o), ~p && A[p].d(), F = !1, ee(z);
954
960
  }
955
961
  };
956
962
  }
957
- function sn(t, e, n) {
963
+ function un(t, e, n) {
958
964
  const l = e[1], c = e[0], u = l - c;
959
965
  return t === l && n ? t : ((t - c) % u + u) % u + c;
960
966
  }
961
- function un(t, e, n) {
962
- let l, { $$slots: c = {}, $$scope: u } = e, { class: i = void 0 } = e, { apiKey: m } = e, { bbox: f = void 0 } = e, { clearButtonTitle: a = "clear" } = e, { clearOnBlur: h = !1 } = e, { collapsed: v = !1 } = e, { country: I = void 0 } = e, { debounceSearch: N = 200 } = e, { enableReverse: x = !1 } = e, { errorMessage: p = "Searching failed" } = e, { filter: k = () => !0 } = e, { flyTo: B = !0 } = e, { fuzzyMatch: C = !0 } = e, { language: F = void 0 } = e, { limit: z = void 0 } = e, { mapController: d = void 0 } = e, { minLength: b = 2 } = e, { noResultsMessage: P = "No results found" } = e, { placeholder: M = "Search" } = e, { proximity: Z = void 0 } = e, { reverseActive: A = x === "always" } = e, { reverseButtonTitle: ge = "toggle reverse geocoding" } = e, { searchValue: s = "" } = e, { showFullGeometry: T = !0 } = e, { showPlaceType: J = !1 } = e, { showResultsWhileTyping: te = !0 } = e, { trackProximity: pe = !0 } = e, { types: ze = void 0 } = e, { zoom: Me = 16 } = e, { fetchParameters: Se = {} } = e;
967
+ function fn(t, e, n) {
968
+ let l, { $$slots: c = {}, $$scope: u } = e, { class: i = void 0 } = e, { apiKey: m } = e, { bbox: f = void 0 } = e, { clearButtonTitle: a = "clear" } = e, { clearOnBlur: h = !1 } = e, { collapsed: v = !1 } = e, { country: I = void 0 } = e, { debounceSearch: N = 200 } = e, { enableReverse: G = !1 } = e, { errorMessage: p = "Searching failed" } = e, { filter: k = () => !0 } = e, { flyTo: B = !0 } = e, { fuzzyMatch: C = !0 } = e, { language: F = void 0 } = e, { limit: z = void 0 } = e, { mapController: d = void 0 } = e, { minLength: b = 2 } = e, { noResultsMessage: P = "No results found" } = e, { placeholder: M = "Search" } = e, { proximity: Z = void 0 } = e, { reverseActive: A = G === "always" } = e, { reverseButtonTitle: ye = "toggle reverse geocoding" } = e, { searchValue: o = "" } = e, { showFullGeometry: T = !0 } = e, { showPlaceType: J = !1 } = e, { showResultsWhileTyping: te = !0 } = e, { trackProximity: ze = !0 } = e, { types: Me = void 0 } = e, { zoom: Te = 16 } = e, { fetchParameters: Se = {} } = e;
963
969
  function ut() {
964
970
  q.focus();
965
971
  }
@@ -967,44 +973,44 @@ function un(t, e, n) {
967
973
  q.blur();
968
974
  }
969
975
  function Ve(r, E = !0) {
970
- n(1, s = r), E ? (n(13, R = -1), Ke()) : (Ae(), setTimeout(() => {
976
+ n(1, o = r), E ? (n(13, R = -1), Ke()) : (Ae(), setTimeout(() => {
971
977
  q.focus(), q.select();
972
978
  }));
973
979
  }
974
- let oe = !1, g, j, y, He = "", q, R = -1, X, Te = [], ne, se, Ce;
980
+ let se = !1, g, j, y, He = "", q, R = -1, X, Ce = [], ne, oe, Re;
975
981
  const Y = Dt();
976
982
  Ot(() => {
977
983
  d && (d.setEventHandler(void 0), d.indicateReverse(!1), d.setSelectedMarker(-1), d.setMarkers(void 0, void 0));
978
984
  });
979
985
  function Ke(r) {
980
- if (se && (clearTimeout(se), se = void 0), R > -1 && g)
981
- n(45, y = g[R]), n(1, s = y.place_name.replace(/,.*/, "")), n(16, X = void 0), n(44, j = void 0), n(13, R = -1);
982
- else if (s) {
986
+ if (oe && (clearTimeout(oe), oe = void 0), R > -1 && g)
987
+ n(45, y = g[R]), n(1, o = y.place_name.replace(/,.*/, "")), n(16, X = void 0), n(44, j = void 0), n(13, R = -1);
988
+ else if (o) {
983
989
  const E = r || !Qe();
984
- Ie(s, { exact: !0 }).then(() => {
990
+ Ie(o, { exact: !0 }).then(() => {
985
991
  n(44, j = g), n(45, y = void 0), E && at();
986
992
  }).catch((U) => n(16, X = U));
987
993
  }
988
994
  }
989
995
  function Qe() {
990
- return /^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(s);
996
+ return /^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(o);
991
997
  }
992
998
  async function Ie(r, { byId: E = !1, exact: U = !1 } = {}) {
993
999
  n(16, X = void 0);
994
- const ye = Qe(), V = new URLSearchParams();
995
- F != null && V.set("language", Array.isArray(F) ? F.join(",") : F), ze && V.set("types", ze.join(",")), ye || (f && V.set("bbox", f.map((re) => re.toFixed(6)).join(",")), I && V.set("country", Array.isArray(I) ? I.join(",") : I)), E || (Z && V.set("proximity", Z.map((re) => re.toFixed(6)).join(",")), (U || !te) && V.set("autocomplete", "false"), V.set("fuzzyMatch", String(C))), z !== void 0 && V.set("limit", String(z)), V.set("key", m);
996
- const le = "https://api.maptiler.com/geocoding/" + encodeURIComponent(r) + ".json?" + V.toString();
1000
+ const be = Qe(), V = new URLSearchParams();
1001
+ F != null && V.set("language", Array.isArray(F) ? F.join(",") : F), Me && V.set("types", Me.join(",")), be || (f && V.set("bbox", f.map((re) => re.toFixed(6)).join(",")), I && V.set("country", Array.isArray(I) ? I.join(",") : I)), E || (Z && V.set("proximity", Z.map((re) => re.toFixed(6)).join(",")), (U || !te) && V.set("autocomplete", "false"), V.set("fuzzyMatch", String(C))), z !== void 0 && V.set("limit", String(z)), V.set("key", m);
1002
+ const le = "https://api.maptiler.com/geocoding/" + encodeURIComponent(r.replaceAll(";", ",")) + ".json?" + V.toString();
997
1003
  if (le === He) {
998
- E ? (n(12, g = void 0), n(45, y = Te[0])) : n(12, g = Te);
1004
+ E ? (n(12, g = void 0), n(45, y = Ce[0])) : n(12, g = Ce);
999
1005
  return;
1000
1006
  }
1001
1007
  He = le, ne == null || ne.abort();
1002
- const G = new AbortController();
1003
- n(17, ne = G);
1008
+ const x = new AbortController();
1009
+ n(17, ne = x);
1004
1010
  let Ne;
1005
1011
  try {
1006
- Ne = await fetch(le, { signal: G.signal, ...Se }).finally(() => {
1007
- G === ne && n(17, ne = void 0);
1012
+ Ne = await fetch(le, { signal: x.signal, ...Se }).finally(() => {
1013
+ x === ne && n(17, ne = void 0);
1008
1014
  });
1009
1015
  } catch (re) {
1010
1016
  if (re && typeof re == "object" && re.name === "AbortError")
@@ -1014,19 +1020,19 @@ function un(t, e, n) {
1014
1020
  if (!Ne.ok)
1015
1021
  throw new Error();
1016
1022
  const je = await Ne.json();
1017
- Y("response", { url: le, featureCollection: je }), E ? (n(12, g = void 0), n(45, y = je.features[0]), Te = [y]) : (n(12, g = je.features.filter(k)), Te = g, ye && q.focus());
1023
+ Y("response", { url: le, featureCollection: je }), E ? (n(12, g = void 0), n(45, y = je.features[0]), Ce = [y]) : (n(12, g = je.features.filter(k)), Ce = g, be && q.focus());
1018
1024
  }
1019
1025
  function at() {
1020
- var U, ye, V, le;
1026
+ var U, be, V, le;
1021
1027
  if (!(j != null && j.length) || !B)
1022
1028
  return;
1023
- const r = [180, 90, -180, -90], E = !j.some((G) => !G.matching_text);
1024
- for (const G of j)
1025
- (E || !G.matching_text) && (r[0] = Math.min(r[0], ((U = G.bbox) == null ? void 0 : U[0]) ?? G.center[0]), r[1] = Math.min(r[1], ((ye = G.bbox) == null ? void 0 : ye[1]) ?? G.center[1]), r[2] = Math.max(r[2], ((V = G.bbox) == null ? void 0 : V[2]) ?? G.center[0]), r[3] = Math.max(r[3], ((le = G.bbox) == null ? void 0 : le[3]) ?? G.center[1]));
1026
- d && j.length > 0 && (y && r[0] === r[2] && r[1] === r[3] ? d.flyTo(y.center, Me) : d.fitBounds(r, 50));
1029
+ const r = [180, 90, -180, -90], E = !j.some((x) => !x.matching_text);
1030
+ for (const x of j)
1031
+ (E || !x.matching_text) && (r[0] = Math.min(r[0], ((U = x.bbox) == null ? void 0 : U[0]) ?? x.center[0]), r[1] = Math.min(r[1], ((be = x.bbox) == null ? void 0 : be[1]) ?? x.center[1]), r[2] = Math.max(r[2], ((V = x.bbox) == null ? void 0 : V[2]) ?? x.center[0]), r[3] = Math.max(r[3], ((le = x.bbox) == null ? void 0 : le[3]) ?? x.center[1]));
1032
+ d && j.length > 0 && (y && r[0] === r[2] && r[1] === r[3] ? d.flyTo(y.center, Te) : d.fitBounds(r, 50));
1027
1033
  }
1028
1034
  function dt(r) {
1029
- n(0, A = x === "always"), Ve(sn(r[0], [-180, 180], !0).toFixed(6) + "," + r[1].toFixed(6));
1035
+ n(0, A = G === "always"), Ve(un(r[0], [-180, 180], !0).toFixed(6) + "," + r[1].toFixed(6));
1030
1036
  }
1031
1037
  function ht(r) {
1032
1038
  if (!g)
@@ -1035,10 +1041,10 @@ function un(t, e, n) {
1035
1041
  E ? (R === -1 && E === -1 && n(13, R = g.length), n(13, R += E), R >= g.length && n(13, R = -1), r.preventDefault()) : ["ArrowLeft", "ArrowRight", "Home", "End"].includes(r.key) && n(13, R = -1);
1036
1042
  }
1037
1043
  function Ae(r = !0) {
1038
- if (te && s.length > b) {
1039
- se && clearTimeout(se);
1040
- const E = s;
1041
- se = window.setTimeout(
1044
+ if (te && o.length > b) {
1045
+ oe && clearTimeout(oe);
1046
+ const E = o;
1047
+ oe = window.setTimeout(
1042
1048
  () => {
1043
1049
  Ie(E).catch((U) => n(16, X = U));
1044
1050
  },
@@ -1048,7 +1054,7 @@ function un(t, e, n) {
1048
1054
  n(12, g = void 0), n(16, X = void 0);
1049
1055
  }
1050
1056
  function Pe(r) {
1051
- n(45, y = r), n(1, s = r.place_name), n(13, R = -1);
1057
+ n(45, y = r), n(1, o = r.place_name), n(13, R = -1);
1052
1058
  }
1053
1059
  const mt = () => q.focus();
1054
1060
  function _t(r) {
@@ -1057,24 +1063,24 @@ function un(t, e, n) {
1057
1063
  });
1058
1064
  }
1059
1065
  function gt() {
1060
- s = this.value, n(1, s), n(11, oe), n(25, h);
1066
+ o = this.value, n(1, o), n(11, se), n(25, h);
1061
1067
  }
1062
- const yt = () => n(11, oe = !0), bt = () => n(11, oe = !1), wt = () => Ae(), kt = () => {
1063
- n(1, s = ""), q.focus();
1068
+ const yt = () => n(11, se = !0), bt = () => n(11, se = !1), wt = () => Ae(), kt = () => {
1069
+ n(1, o = ""), q.focus();
1064
1070
  }, vt = () => n(0, A = !A), pt = (r) => n(13, R = r), zt = (r) => Pe(r), Mt = () => n(13, R = -1), Tt = () => {
1065
1071
  };
1066
1072
  return t.$$set = (r) => {
1067
- "class" in r && n(2, i = r.class), "apiKey" in r && n(23, m = r.apiKey), "bbox" in r && n(24, f = r.bbox), "clearButtonTitle" in r && n(3, a = r.clearButtonTitle), "clearOnBlur" in r && n(25, h = r.clearOnBlur), "collapsed" in r && n(4, v = r.collapsed), "country" in r && n(26, I = r.country), "debounceSearch" in r && n(27, N = r.debounceSearch), "enableReverse" in r && n(5, x = r.enableReverse), "errorMessage" in r && n(6, p = r.errorMessage), "filter" in r && n(28, k = r.filter), "flyTo" in r && n(29, B = r.flyTo), "fuzzyMatch" in r && n(30, C = r.fuzzyMatch), "language" in r && n(31, F = r.language), "limit" in r && n(32, z = r.limit), "mapController" in r && n(33, d = r.mapController), "minLength" in r && n(34, b = r.minLength), "noResultsMessage" in r && n(7, P = r.noResultsMessage), "placeholder" in r && n(8, M = r.placeholder), "proximity" in r && n(22, Z = r.proximity), "reverseActive" in r && n(0, A = r.reverseActive), "reverseButtonTitle" in r && n(9, ge = r.reverseButtonTitle), "searchValue" in r && n(1, s = r.searchValue), "showFullGeometry" in r && n(35, T = r.showFullGeometry), "showPlaceType" in r && n(10, J = r.showPlaceType), "showResultsWhileTyping" in r && n(36, te = r.showResultsWhileTyping), "trackProximity" in r && n(37, pe = r.trackProximity), "types" in r && n(38, ze = r.types), "zoom" in r && n(39, Me = r.zoom), "fetchParameters" in r && n(40, Se = r.fetchParameters), "$$scope" in r && n(47, u = r.$$scope);
1073
+ "class" in r && n(2, i = r.class), "apiKey" in r && n(23, m = r.apiKey), "bbox" in r && n(24, f = r.bbox), "clearButtonTitle" in r && n(3, a = r.clearButtonTitle), "clearOnBlur" in r && n(25, h = r.clearOnBlur), "collapsed" in r && n(4, v = r.collapsed), "country" in r && n(26, I = r.country), "debounceSearch" in r && n(27, N = r.debounceSearch), "enableReverse" in r && n(5, G = r.enableReverse), "errorMessage" in r && n(6, p = r.errorMessage), "filter" in r && n(28, k = r.filter), "flyTo" in r && n(29, B = r.flyTo), "fuzzyMatch" in r && n(30, C = r.fuzzyMatch), "language" in r && n(31, F = r.language), "limit" in r && n(32, z = r.limit), "mapController" in r && n(33, d = r.mapController), "minLength" in r && n(34, b = r.minLength), "noResultsMessage" in r && n(7, P = r.noResultsMessage), "placeholder" in r && n(8, M = r.placeholder), "proximity" in r && n(22, Z = r.proximity), "reverseActive" in r && n(0, A = r.reverseActive), "reverseButtonTitle" in r && n(9, ye = r.reverseButtonTitle), "searchValue" in r && n(1, o = r.searchValue), "showFullGeometry" in r && n(35, T = r.showFullGeometry), "showPlaceType" in r && n(10, J = r.showPlaceType), "showResultsWhileTyping" in r && n(36, te = r.showResultsWhileTyping), "trackProximity" in r && n(37, ze = r.trackProximity), "types" in r && n(38, Me = r.types), "zoom" in r && n(39, Te = r.zoom), "fetchParameters" in r && n(40, Se = r.fetchParameters), "$$scope" in r && n(47, u = r.$$scope);
1068
1074
  }, t.$$.update = () => {
1069
1075
  if (t.$$.dirty[1] & /*trackProximity*/
1070
- 64 && (pe || n(22, Z = void 0)), t.$$.dirty[0] & /*focused, clearOnBlur*/
1076
+ 64 && (ze || n(22, Z = void 0)), t.$$.dirty[0] & /*focused, clearOnBlur*/
1071
1077
  33556480 && setTimeout(() => {
1072
- n(14, Ce = oe), h && !oe && n(1, s = "");
1078
+ n(14, Re = se), h && !se && n(1, o = "");
1073
1079
  }), t.$$.dirty[0] & /*searchValue, listFeatures*/
1074
- 4098 && (s || (n(45, y = void 0), n(12, g = void 0), n(16, X = void 0), n(44, j = g))), t.$$.dirty[1] & /*showFullGeometry, picked*/
1080
+ 4098 && (o || (n(45, y = void 0), n(12, g = void 0), n(16, X = void 0), n(44, j = g))), t.$$.dirty[1] & /*showFullGeometry, picked*/
1075
1081
  16400 && T && y && !y.address && y.geometry.type === "Point" && Ie(y.id, { byId: !0 }).catch((r) => n(16, X = r)), t.$$.dirty[0] & /*flyTo*/
1076
1082
  536870912 | t.$$.dirty[1] & /*mapController, picked, zoom*/
1077
- 16644 && d && y && B && (!y.bbox || y.bbox[0] === y.bbox[2] && y.bbox[1] === y.bbox[3] ? d.flyTo(y.center, Me) : d.fitBounds(y.bbox, 50), n(12, g = void 0), n(44, j = void 0), n(13, R = -1)), t.$$.dirty[0] & /*listFeatures*/
1083
+ 16644 && d && y && B && (!y.bbox || y.bbox[0] === y.bbox[2] && y.bbox[1] === y.bbox[3] ? d.flyTo(y.center, Te) : d.fitBounds(y.bbox, 50), n(12, g = void 0), n(44, j = void 0), n(13, R = -1)), t.$$.dirty[0] & /*listFeatures*/
1078
1084
  4096 | t.$$.dirty[1] & /*markedFeatures*/
1079
1085
  8192 && j !== g && n(44, j = void 0), t.$$.dirty[1] & /*mapController, markedFeatures, picked*/
1080
1086
  24580 && d && d.setMarkers(j, y), t.$$.dirty[0] & /*searchValue*/
@@ -1086,7 +1092,7 @@ function un(t, e, n) {
1086
1092
  A && dt(r.coordinates);
1087
1093
  break;
1088
1094
  case "proximityChange":
1089
- n(22, Z = pe ? r.proximity : void 0);
1095
+ n(22, Z = ze ? r.proximity : void 0);
1090
1096
  break;
1091
1097
  case "markerClick":
1092
1098
  {
@@ -1095,7 +1101,7 @@ function un(t, e, n) {
1095
1101
  }
1096
1102
  break;
1097
1103
  case "markerMouseEnter":
1098
- n(13, R = Ce ? (g == null ? void 0 : g.findIndex((E) => E.id === r.id)) ?? -1 : -1);
1104
+ n(13, R = Re ? (g == null ? void 0 : g.findIndex((E) => E.id === r.id)) ?? -1 : -1);
1099
1105
  break;
1100
1106
  case "markerMouseLeave":
1101
1107
  n(13, R = -1);
@@ -1107,35 +1113,35 @@ function un(t, e, n) {
1107
1113
  12288 && n(46, l = g == null ? void 0 : g[R]), t.$$.dirty[0] & /*searchValue*/
1108
1114
  2 | t.$$.dirty[1] & /*mapController*/
1109
1115
  4) {
1110
- const r = /^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(s);
1116
+ const r = /^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(o);
1111
1117
  d == null || d.setReverseMarker(r ? [Number(r[1]), Number(r[2])] : void 0);
1112
1118
  }
1113
1119
  t.$$.dirty[1] & /*selected*/
1114
1120
  32768 && Y("select", l), t.$$.dirty[1] & /*picked*/
1115
1121
  16384 && Y("pick", y), t.$$.dirty[0] & /*focusedDelayed, listFeatures*/
1116
- 20480 && Y("optionsVisibilityChange", Ce && !!g), t.$$.dirty[0] & /*listFeatures*/
1122
+ 20480 && Y("optionsVisibilityChange", Re && !!g), t.$$.dirty[0] & /*listFeatures*/
1117
1123
  4096 && Y("featuresListed", g), t.$$.dirty[1] & /*markedFeatures*/
1118
1124
  8192 && Y("featuresMarked", j), t.$$.dirty[0] & /*reverseActive*/
1119
1125
  1 && Y("reverseToggle", A), t.$$.dirty[0] & /*searchValue*/
1120
- 2 && Y("queryChange", s), t.$$.dirty[0] & /*reverseActive*/
1126
+ 2 && Y("queryChange", o), t.$$.dirty[0] & /*reverseActive*/
1121
1127
  1 | t.$$.dirty[1] & /*mapController*/
1122
1128
  4 && d && d.indicateReverse(A);
1123
1129
  }, [
1124
1130
  A,
1125
- s,
1131
+ o,
1126
1132
  i,
1127
1133
  a,
1128
1134
  v,
1129
- x,
1135
+ G,
1130
1136
  p,
1131
1137
  P,
1132
1138
  M,
1133
- ge,
1139
+ ye,
1134
1140
  J,
1135
- oe,
1141
+ se,
1136
1142
  g,
1137
1143
  R,
1138
- Ce,
1144
+ Re,
1139
1145
  q,
1140
1146
  X,
1141
1147
  ne,
@@ -1158,9 +1164,9 @@ function un(t, e, n) {
1158
1164
  b,
1159
1165
  T,
1160
1166
  te,
1161
- pe,
1162
1167
  ze,
1163
1168
  Me,
1169
+ Te,
1164
1170
  Se,
1165
1171
  ut,
1166
1172
  ft,
@@ -1184,14 +1190,14 @@ function un(t, e, n) {
1184
1190
  Tt
1185
1191
  ];
1186
1192
  }
1187
- class fn extends _e {
1193
+ class an extends ge {
1188
1194
  constructor(e) {
1189
- super(), me(
1195
+ super(), _e(
1190
1196
  this,
1191
1197
  e,
1192
- un,
1198
+ fn,
1193
1199
  on,
1194
- he,
1200
+ me,
1195
1201
  {
1196
1202
  class: 2,
1197
1203
  apiKey: 23,
@@ -1250,7 +1256,7 @@ const nt = [
1250
1256
  "response",
1251
1257
  "reversetoggle",
1252
1258
  "select"
1253
- ], an = [
1259
+ ], dn = [
1254
1260
  "apiKey",
1255
1261
  "bbox",
1256
1262
  "clearButtonTitle",
@@ -1280,26 +1286,26 @@ const nt = [
1280
1286
  function lt(t) {
1281
1287
  return "on" + t[0].toUpperCase() + t.slice(1);
1282
1288
  }
1283
- const hn = Ct(function(e, n) {
1289
+ const mn = Ct(function(e, n) {
1284
1290
  const l = qe(), c = qe(), u = { ...e };
1285
1291
  for (const i of nt)
1286
1292
  delete u[lt(i)];
1287
- Ge(() => {
1293
+ xe(() => {
1288
1294
  if (!l.current)
1289
1295
  throw new Error();
1290
- const i = new fn({
1296
+ const i = new an({
1291
1297
  target: l.current,
1292
1298
  props: u
1293
1299
  });
1294
1300
  return c.current = i, () => i.$destroy();
1295
1301
  }, []);
1296
- for (const i of an)
1297
- Ge(() => {
1302
+ for (const i of dn)
1303
+ xe(() => {
1298
1304
  c.current && e[i] !== void 0 && c.current.$set({ [i]: e[i] });
1299
1305
  }, [e[i]]);
1300
1306
  for (const i of nt) {
1301
1307
  const m = e[lt(i)];
1302
- Ge(() => {
1308
+ xe(() => {
1303
1309
  var f;
1304
1310
  (f = c.current) == null || f.$on(
1305
1311
  i,
@@ -1325,5 +1331,5 @@ const hn = Ct(function(e, n) {
1325
1331
  })), Et("div", { ref: l });
1326
1332
  });
1327
1333
  export {
1328
- hn as GeocodingControl
1334
+ mn as GeocodingControl
1329
1335
  };