@maptiler/geocoding-control 0.0.48 → 0.0.52

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.
@@ -6,7 +6,7 @@ var Bn = (r, t, e) => (Zs(r, t, "read from private field"), e ? e.call(r) : t.ge
6
6
  if (t.has(r))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  t instanceof WeakSet ? t.add(r) : t.set(r, e);
9
- }, Eo = (r, t, e, n) => (Zs(r, t, "write to private field"), n ? n.call(r, e) : t.set(r, e), e);
9
+ }, Io = (r, t, e, n) => (Zs(r, t, "write to private field"), n ? n.call(r, e) : t.set(r, e), e);
10
10
  function xt() {
11
11
  }
12
12
  function ol(r, t) {
@@ -26,7 +26,7 @@ function Or(r) {
26
26
  function Xa(r) {
27
27
  return typeof r == "function";
28
28
  }
29
- function Ri(r, t) {
29
+ function Di(r, t) {
30
30
  return r != r ? t == t : r !== t || r && typeof r == "object" || typeof r == "function";
31
31
  }
32
32
  function sl(r) {
@@ -113,7 +113,7 @@ function B(r, t, e) {
113
113
  function gl(r) {
114
114
  return Array.from(r.childNodes);
115
115
  }
116
- function Hi(r, t) {
116
+ function Wi(r, t) {
117
117
  t = "" + t, r.wholeText !== t && (r.data = t);
118
118
  }
119
119
  function ea(r, t) {
@@ -126,14 +126,14 @@ function pl(r, t, { bubbles: e = !1, cancelable: n = !1 } = {}) {
126
126
  const i = document.createEvent("CustomEvent");
127
127
  return i.initCustomEvent(r, e, n, t), i;
128
128
  }
129
- let Wi;
130
- function Xi(r) {
131
- Wi = r;
129
+ let ji;
130
+ function Yi(r) {
131
+ ji = r;
132
132
  }
133
133
  function Ha() {
134
- if (!Wi)
134
+ if (!ji)
135
135
  throw new Error("Function called outside component initialization");
136
- return Wi;
136
+ return ji;
137
137
  }
138
138
  function dl(r) {
139
139
  Ha().$$.on_destroy.push(r);
@@ -151,7 +151,7 @@ function vl() {
151
151
  return !0;
152
152
  };
153
153
  }
154
- const Vi = [], ds = [], Lo = [], na = [], yl = Promise.resolve();
154
+ const ai = [], ds = [], Lo = [], na = [], yl = Promise.resolve();
155
155
  let vs = !1;
156
156
  function ml() {
157
157
  vs || (vs = !0, yl.then(Wa));
@@ -160,25 +160,31 @@ function ys(r) {
160
160
  Lo.push(r);
161
161
  }
162
162
  const cs = /* @__PURE__ */ new Set();
163
- let Io = 0;
163
+ let si = 0;
164
164
  function Wa() {
165
- const r = Wi;
165
+ if (si !== 0)
166
+ return;
167
+ const r = ji;
166
168
  do {
167
- for (; Io < Vi.length; ) {
168
- const t = Vi[Io];
169
- Io++, Xi(t), _l(t.$$);
169
+ try {
170
+ for (; si < ai.length; ) {
171
+ const t = ai[si];
172
+ si++, Yi(t), _l(t.$$);
173
+ }
174
+ } catch (t) {
175
+ throw ai.length = 0, si = 0, t;
170
176
  }
171
- for (Xi(null), Vi.length = 0, Io = 0; ds.length; )
177
+ for (Yi(null), ai.length = 0, si = 0; ds.length; )
172
178
  ds.pop()();
173
179
  for (let t = 0; t < Lo.length; t += 1) {
174
180
  const e = Lo[t];
175
181
  cs.has(e) || (cs.add(e), e());
176
182
  }
177
183
  Lo.length = 0;
178
- } while (Vi.length);
184
+ } while (ai.length);
179
185
  for (; na.length; )
180
186
  na.pop()();
181
- vs = !1, cs.clear(), Xi(r);
187
+ vs = !1, cs.clear(), Yi(r);
182
188
  }
183
189
  function _l(r) {
184
190
  if (r.fragment !== null) {
@@ -212,26 +218,26 @@ function be(r, t, e, n) {
212
218
  } else
213
219
  n && n();
214
220
  }
215
- function ji(r) {
221
+ function Ki(r) {
216
222
  r && r.c();
217
223
  }
218
- function ai(r, t, e, n) {
224
+ function li(r, t, e, n) {
219
225
  const { fragment: i, after_update: o } = r.$$;
220
226
  i && i.m(t, e), n || ys(() => {
221
227
  const s = r.$$.on_mount.map(qa).filter(Xa);
222
228
  r.$$.on_destroy ? r.$$.on_destroy.push(...s) : Or(s), r.$$.on_mount = [];
223
229
  }), o.forEach(ys);
224
230
  }
225
- function ui(r, t) {
231
+ function ci(r, t) {
226
232
  const e = r.$$;
227
233
  e.fragment !== null && (Or(e.on_destroy), e.fragment && e.fragment.d(t), e.on_destroy = e.fragment = null, e.ctx = []);
228
234
  }
229
235
  function El(r, t) {
230
- r.$$.dirty[0] === -1 && (Vi.push(r), ml(), r.$$.dirty.fill(0)), r.$$.dirty[t / 31 | 0] |= 1 << t % 31;
236
+ r.$$.dirty[0] === -1 && (ai.push(r), ml(), r.$$.dirty.fill(0)), r.$$.dirty[t / 31 | 0] |= 1 << t % 31;
231
237
  }
232
- function Oi(r, t, e, n, i, o, s, a = [-1]) {
233
- const u = Wi;
234
- Xi(r);
238
+ function Ti(r, t, e, n, i, o, s, a = [-1]) {
239
+ const u = ji;
240
+ Yi(r);
235
241
  const l = r.$$ = {
236
242
  fragment: null,
237
243
  ctx: [],
@@ -261,13 +267,13 @@ function Oi(r, t, e, n, i, o, s, a = [-1]) {
261
267
  l.fragment && l.fragment.l(f), f.forEach(Ae);
262
268
  } else
263
269
  l.fragment && l.fragment.c();
264
- t.intro && Kt(r.$$.fragment), ai(r, t.target, t.anchor, t.customElement), Wa();
270
+ t.intro && Kt(r.$$.fragment), li(r, t.target, t.anchor, t.customElement), Wa();
265
271
  }
266
- Xi(u);
272
+ Yi(u);
267
273
  }
268
- class Di {
274
+ class Mi {
269
275
  $destroy() {
270
- ui(this, 1), this.$destroy = xt;
276
+ ci(this, 1), this.$destroy = xt;
271
277
  }
272
278
  $on(t, e) {
273
279
  if (!Xa(e))
@@ -299,9 +305,9 @@ function Il(r) {
299
305
  }
300
306
  };
301
307
  }
302
- class Cl extends Di {
308
+ class Cl extends Mi {
303
309
  constructor(t) {
304
- super(), Oi(this, t, null, Il, Ri, {});
310
+ super(), Ti(this, t, null, Il, Di, {});
305
311
  }
306
312
  }
307
313
  function Nl(r) {
@@ -321,9 +327,9 @@ function Nl(r) {
321
327
  }
322
328
  };
323
329
  }
324
- class xl extends Di {
330
+ class xl extends Mi {
325
331
  constructor(t) {
326
- super(), Oi(this, t, null, Nl, Ri, {});
332
+ super(), Ti(this, t, null, Nl, Di, {});
327
333
  }
328
334
  }
329
335
  function Sl(r) {
@@ -343,16 +349,16 @@ function Sl(r) {
343
349
  }
344
350
  };
345
351
  }
346
- class wl extends Di {
352
+ class wl extends Mi {
347
353
  constructor(t) {
348
- super(), Oi(this, t, null, Sl, Ri, {});
354
+ super(), Ti(this, t, null, Sl, Di, {});
349
355
  }
350
356
  }
351
357
  function Ll(r) {
352
358
  let t, e, n;
353
359
  return {
354
360
  c() {
355
- t = Er("svg"), e = Er("path"), B(e, "stroke-width", "4"), B(e, "fill-rule", "evenodd"), B(e, "clip-rule", "evenodd"), B(e, "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"), B(e, "class", "svelte-edyshv"), B(t, "width", n = r[0] !== "list" ? void 0 : "20"), B(t, "viewBox", "0 0 70 85"), B(t, "fill", "none"), B(t, "class", "svelte-edyshv"), rn(t, "in-map", r[0] !== "list"), rn(t, "list-icon", r[0] === "list");
361
+ t = Er("svg"), e = Er("path"), B(e, "stroke-width", "4"), B(e, "fill-rule", "evenodd"), B(e, "clip-rule", "evenodd"), B(e, "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"), B(e, "class", "svelte-1k1cmht"), B(t, "width", n = r[0] !== "list" ? void 0 : "20"), B(t, "viewBox", "0 0 70 85"), B(t, "fill", "none"), B(t, "class", "svelte-1k1cmht"), rn(t, "in-map", r[0] !== "list"), rn(t, "list-icon", r[0] === "list");
356
362
  },
357
363
  m(i, o) {
358
364
  Ke(i, t, o), lt(t, e);
@@ -373,9 +379,9 @@ function bl(r, t, e) {
373
379
  "displayIn" in i && e(0, n = i.displayIn);
374
380
  }, [n];
375
381
  }
376
- class ja extends Di {
382
+ class ja extends Mi {
377
383
  constructor(t) {
378
- super(), Oi(this, t, bl, Ll, Ri, { displayIn: 0 });
384
+ super(), Ti(this, t, bl, Ll, Di, { displayIn: 0 });
379
385
  }
380
386
  }
381
387
  function Pl(r) {
@@ -395,9 +401,9 @@ function Pl(r) {
395
401
  }
396
402
  };
397
403
  }
398
- class Rl extends Di {
404
+ class Rl extends Mi {
399
405
  constructor(t) {
400
- super(), Oi(this, t, null, Pl, Ri, {});
406
+ super(), Ti(this, t, null, Pl, Di, {});
401
407
  }
402
408
  }
403
409
  function ra(r, t, e) {
@@ -408,10 +414,10 @@ function ia(r) {
408
414
  let t, e;
409
415
  return t = new wl({}), {
410
416
  c() {
411
- ji(t.$$.fragment);
417
+ Ki(t.$$.fragment);
412
418
  },
413
419
  m(n, i) {
414
- ai(t, n, i), e = !0;
420
+ li(t, n, i), e = !0;
415
421
  },
416
422
  i(n) {
417
423
  e || (Kt(t.$$.fragment, n), e = !0);
@@ -420,7 +426,7 @@ function ia(r) {
420
426
  be(t.$$.fragment, n), e = !1;
421
427
  },
422
428
  d(n) {
423
- ui(t, n);
429
+ ci(t, n);
424
430
  }
425
431
  };
426
432
  }
@@ -428,10 +434,10 @@ function oa(r) {
428
434
  let t, e, n, i, o;
429
435
  return e = new Cl({}), {
430
436
  c() {
431
- t = Qt("button"), ji(e.$$.fragment), B(t, "type", "button"), B(t, "title", r[8]), B(t, "class", "svelte-1h1zm6d"), rn(t, "active", r[1]);
437
+ t = Qt("button"), Ki(e.$$.fragment), B(t, "type", "button"), B(t, "title", r[8]), B(t, "class", "svelte-1h1zm6d"), rn(t, "active", r[1]);
432
438
  },
433
439
  m(s, a) {
434
- Ke(s, t, a), ai(e, t, null), n = !0, i || (o = ke(t, "click", r[55]), i = !0);
440
+ Ke(s, t, a), li(e, t, null), n = !0, i || (o = ke(t, "click", r[55]), i = !0);
435
441
  },
436
442
  p(s, a) {
437
443
  (!n || a[0] & 256) && B(t, "title", s[8]), (!n || a[0] & 2) && rn(t, "active", s[1]);
@@ -443,7 +449,7 @@ function oa(r) {
443
449
  be(e.$$.fragment, s), n = !1;
444
450
  },
445
451
  d(s) {
446
- s && Ae(t), ui(e), i = !1, o();
452
+ s && Ae(t), ci(e), i = !1, o();
447
453
  }
448
454
  };
449
455
  }
@@ -511,7 +517,7 @@ function Dl(r) {
511
517
  Ke(n, t, i), lt(t, e);
512
518
  },
513
519
  p(n, i) {
514
- i[0] & 32 && Hi(e, n[5]);
520
+ i[0] & 32 && Wi(e, n[5]);
515
521
  },
516
522
  i: xt,
517
523
  o: xt,
@@ -521,38 +527,38 @@ function Dl(r) {
521
527
  };
522
528
  }
523
529
  function Tl(r) {
524
- let t, e;
530
+ let t = "", e;
525
531
  return {
526
532
  c() {
527
- t = Qt("div"), e = zr(r[4]), B(t, "class", "error svelte-1h1zm6d");
533
+ e = zr(t);
528
534
  },
529
535
  m(n, i) {
530
- Ke(n, t, i), lt(t, e);
531
- },
532
- p(n, i) {
533
- i[0] & 16 && Hi(e, n[4]);
536
+ Ke(n, e, i);
534
537
  },
538
+ p: xt,
535
539
  i: xt,
536
540
  o: xt,
537
541
  d(n) {
538
- n && Ae(t);
542
+ n && Ae(e);
539
543
  }
540
544
  };
541
545
  }
542
546
  function Ml(r) {
543
- let t = "", e;
547
+ let t, e;
544
548
  return {
545
549
  c() {
546
- e = zr(t);
550
+ t = Qt("div"), e = zr(r[4]), B(t, "class", "error svelte-1h1zm6d");
547
551
  },
548
552
  m(n, i) {
549
- Ke(n, e, i);
553
+ Ke(n, t, i), lt(t, e);
554
+ },
555
+ p(n, i) {
556
+ i[0] & 16 && Wi(e, n[4]);
550
557
  },
551
- p: xt,
552
558
  i: xt,
553
559
  o: xt,
554
560
  d(n) {
555
- n && Ae(e);
561
+ n && Ae(t);
556
562
  }
557
563
  };
558
564
  }
@@ -566,7 +572,7 @@ function sa(r) {
566
572
  Ke(i, t, o), lt(t, n);
567
573
  },
568
574
  p(i, o) {
569
- o[0] & 4096 && e !== (e = i[68].place_type + "") && Hi(n, e);
575
+ o[0] & 4096 && e !== (e = i[68].place_type + "") && Wi(n, e);
570
576
  },
571
577
  d(i) {
572
578
  i && Ae(t);
@@ -574,9 +580,9 @@ function sa(r) {
574
580
  };
575
581
  }
576
582
  function aa(r) {
577
- let t, e, n, i, o, s, a = r[68].place_name.replace(/,.*/, "") + "", u, l, c, f, h, g = r[68].place_name.replace(/[^,]*,?\s*/, "") + "", p, v, y, m, E, C;
583
+ let t, e, n, i, o, s, a = r[68].place_name.replace(/,.*/, "") + "", u, l, c, f, h, g = r[68].place_name.replace(/[^,]*,?\s*/, "") + "", p, v, y, m, E, N;
578
584
  e = new ja({ props: { displayIn: "list" } });
579
- let N = r[10] && sa(r);
585
+ let C = r[10] && sa(r);
580
586
  function L() {
581
587
  return r[56](r[70]);
582
588
  }
@@ -585,16 +591,16 @@ function aa(r) {
585
591
  }
586
592
  return {
587
593
  c() {
588
- t = Qt("li"), ji(e.$$.fragment), n = qn(), i = Qt("span"), o = Qt("span"), s = Qt("span"), u = zr(a), l = qn(), N && N.c(), c = qn(), f = Qt("span"), h = Qt("span"), p = zr(g), v = qn(), B(s, "class", "svelte-1h1zm6d"), B(o, "class", "svelte-1h1zm6d"), B(i, "class", "svelte-1h1zm6d"), B(h, "class", "svelte-1h1zm6d"), B(f, "class", "svelte-1h1zm6d"), B(t, "tabindex", "0"), B(t, "data-selected", y = r[13] === r[70]), B(t, "class", "svelte-1h1zm6d"), rn(t, "selected", r[13] === r[70]);
594
+ t = Qt("li"), Ki(e.$$.fragment), n = qn(), i = Qt("span"), o = Qt("span"), s = Qt("span"), u = zr(a), l = qn(), C && C.c(), c = qn(), f = Qt("span"), h = Qt("span"), p = zr(g), v = qn(), B(s, "class", "svelte-1h1zm6d"), B(o, "class", "svelte-1h1zm6d"), B(i, "class", "svelte-1h1zm6d"), B(h, "class", "svelte-1h1zm6d"), B(f, "class", "svelte-1h1zm6d"), B(t, "tabindex", "0"), B(t, "data-selected", y = r[13] === r[70]), B(t, "class", "svelte-1h1zm6d"), rn(t, "selected", r[13] === r[70]);
589
595
  },
590
596
  m(D, T) {
591
- Ke(D, t, T), ai(e, t, null), lt(t, n), lt(t, i), lt(i, o), lt(o, s), lt(s, u), lt(o, l), N && N.m(o, null), lt(t, c), lt(t, f), lt(f, h), lt(h, p), lt(t, v), m = !0, E || (C = [
597
+ Ke(D, t, T), li(e, t, null), lt(t, n), lt(t, i), lt(i, o), lt(o, s), lt(s, u), lt(o, l), C && C.m(o, null), lt(t, c), lt(t, f), lt(f, h), lt(h, p), lt(t, v), m = !0, E || (N = [
592
598
  ke(t, "mouseover", L),
593
599
  ke(t, "focus", w)
594
600
  ], E = !0);
595
601
  },
596
602
  p(D, T) {
597
- r = D, (!m || T[0] & 4096) && a !== (a = r[68].place_name.replace(/,.*/, "") + "") && Hi(u, a), r[10] ? N ? N.p(r, T) : (N = sa(r), N.c(), N.m(o, null)) : N && (N.d(1), N = null), (!m || T[0] & 4096) && g !== (g = r[68].place_name.replace(/[^,]*,?\s*/, "") + "") && Hi(p, g), (!m || T[0] & 8192 && y !== (y = r[13] === r[70])) && B(t, "data-selected", y), (!m || T[0] & 8192) && rn(t, "selected", r[13] === r[70]);
603
+ r = D, (!m || T[0] & 4096) && a !== (a = r[68].place_name.replace(/,.*/, "") + "") && Wi(u, a), r[10] ? C ? C.p(r, T) : (C = sa(r), C.c(), C.m(o, null)) : C && (C.d(1), C = null), (!m || T[0] & 4096) && g !== (g = r[68].place_name.replace(/[^,]*,?\s*/, "") + "") && Wi(p, g), (!m || T[0] & 8192 && y !== (y = r[13] === r[70])) && B(t, "data-selected", y), (!m || T[0] & 8192) && rn(t, "selected", r[13] === r[70]);
598
604
  },
599
605
  i(D) {
600
606
  m || (Kt(e.$$.fragment, D), m = !0);
@@ -603,25 +609,25 @@ function aa(r) {
603
609
  be(e.$$.fragment, D), m = !1;
604
610
  },
605
611
  d(D) {
606
- D && Ae(t), ui(e), N && N.d(), E = !1, Or(C);
612
+ D && Ae(t), ci(e), C && C.d(), E = !1, Or(N);
607
613
  }
608
614
  };
609
615
  }
610
616
  function Al(r) {
611
- let t, e, n, i, o, s, a, u, l, c, f, h, g, p, v, y, m, E, C, N;
617
+ let t, e, n, i, o, s, a, u, l, c, f, h, g, p, v, y, m, E, N, C;
612
618
  i = new Rl({}), c = new xl({});
613
619
  let L = r[17] && ia(), w = r[7] === !0 && oa(r);
614
620
  const D = r[47].default, T = al(D, r, r[46], null), F = [Ml, Tl, Dl, Ol], j = [];
615
621
  function k(O, Y) {
616
622
  var P, X;
617
- return O[14] ? O[16] ? 1 : ((P = O[12]) == null ? void 0 : P.length) === 0 ? 2 : O[14] && ((X = O[12]) != null && X.length) ? 3 : -1 : 0;
623
+ return O[16] ? 0 : O[14] ? ((P = O[12]) == null ? void 0 : P.length) === 0 ? 2 : O[14] && ((X = O[12]) != null && X.length) ? 3 : -1 : 1;
618
624
  }
619
625
  return ~(v = k(r)) && (y = j[v] = F[v](r)), {
620
626
  c() {
621
- t = Qt("form"), e = Qt("div"), n = Qt("button"), ji(i.$$.fragment), o = qn(), s = Qt("input"), a = qn(), u = Qt("div"), l = Qt("button"), ji(c.$$.fragment), f = qn(), L && L.c(), h = qn(), w && w.c(), g = qn(), T && T.c(), p = qn(), y && y.c(), B(n, "type", "button"), B(n, "class", "svelte-1h1zm6d"), B(s, "placeholder", r[3]), B(s, "aria-label", r[3]), B(s, "class", "svelte-1h1zm6d"), B(l, "type", "button"), B(l, "title", r[9]), B(l, "class", "svelte-1h1zm6d"), rn(l, "displayable", r[0] !== ""), B(u, "class", "clear-button-container svelte-1h1zm6d"), B(e, "class", "input-group svelte-1h1zm6d"), B(t, "tabindex", "0"), B(t, "class", m = ta(r[2]) + " svelte-1h1zm6d"), rn(t, "can-collapse", r[6] && r[0] === "");
627
+ t = Qt("form"), e = Qt("div"), n = Qt("button"), Ki(i.$$.fragment), o = qn(), s = Qt("input"), a = qn(), u = Qt("div"), l = Qt("button"), Ki(c.$$.fragment), f = qn(), L && L.c(), h = qn(), w && w.c(), g = qn(), T && T.c(), p = qn(), y && y.c(), B(n, "type", "button"), B(n, "class", "svelte-1h1zm6d"), B(s, "placeholder", r[3]), B(s, "aria-label", r[3]), B(s, "class", "svelte-1h1zm6d"), B(l, "type", "button"), B(l, "title", r[9]), B(l, "class", "svelte-1h1zm6d"), rn(l, "displayable", r[0] !== ""), B(u, "class", "clear-button-container svelte-1h1zm6d"), B(e, "class", "input-group svelte-1h1zm6d"), B(t, "tabindex", "0"), B(t, "class", m = ta(r[2]) + " svelte-1h1zm6d"), rn(t, "can-collapse", r[6] && r[0] === "");
622
628
  },
623
629
  m(O, Y) {
624
- Ke(O, t, Y), lt(t, e), lt(e, n), ai(i, n, null), lt(e, o), lt(e, s), r[49](s), ea(s, r[0]), lt(e, a), lt(e, u), lt(u, l), ai(c, l, null), lt(u, f), L && L.m(u, null), lt(e, h), w && w.m(e, null), lt(e, g), T && T.m(e, null), lt(t, p), ~v && j[v].m(t, null), E = !0, C || (N = [
630
+ Ke(O, t, Y), lt(t, e), lt(e, n), li(i, n, null), lt(e, o), lt(e, s), r[49](s), ea(s, r[0]), lt(e, a), lt(e, u), lt(u, l), li(c, l, null), lt(u, f), L && L.m(u, null), lt(e, h), w && w.m(e, null), lt(e, g), T && T.m(e, null), lt(t, p), ~v && j[v].m(t, null), E = !0, N || (C = [
625
631
  ke(n, "click", r[48]),
626
632
  ke(s, "input", r[50]),
627
633
  ke(s, "focus", r[51]),
@@ -630,7 +636,7 @@ function Al(r) {
630
636
  ke(s, "input", r[53]),
631
637
  ke(l, "click", r[54]),
632
638
  ke(t, "submit", hl(r[18]))
633
- ], C = !0);
639
+ ], N = !0);
634
640
  },
635
641
  p(O, Y) {
636
642
  (!E || Y[0] & 8) && B(s, "placeholder", O[3]), (!E || Y[0] & 8) && B(s, "aria-label", O[3]), Y[0] & 1 && s.value !== O[0] && ea(s, O[0]), (!E || Y[0] & 512) && B(l, "title", O[9]), (!E || Y[0] & 1) && rn(l, "displayable", O[0] !== ""), O[17] ? L ? Y[0] & 131072 && Kt(L, 1) : (L = ia(), L.c(), Kt(L, 1), L.m(u, null)) : L && (Po(), be(L, 1, 1, () => {
@@ -657,7 +663,7 @@ function Al(r) {
657
663
  be(i.$$.fragment, O), be(c.$$.fragment, O), be(L), be(w), be(T, O), be(y), E = !1;
658
664
  },
659
665
  d(O) {
660
- O && Ae(t), ui(i), r[49](null), ui(c), L && L.d(), w && w.d(), T && T.d(O), ~v && j[v].d(), C = !1, Or(N);
666
+ O && Ae(t), ci(i), r[49](null), ci(c), L && L.d(), w && w.d(), T && T.d(O), ~v && j[v].d(), N = !1, Or(C);
661
667
  }
662
668
  };
663
669
  }
@@ -666,7 +672,7 @@ function Fl(r, t, e) {
666
672
  return r === n && e ? r : ((r - i) % o + o) % o + i;
667
673
  }
668
674
  function Bl(r, t, e) {
669
- let n, { $$slots: i = {}, $$scope: o } = t, { class: s = void 0 } = t, { mapController: a = void 0 } = t, { apiKey: u } = t, { debounceSearch: l = 200 } = t, { placeholder: c = "Search" } = t, { errorMessage: f = "Searching failed" } = t, { noResultsMessage: h = "No results found" } = t, { proximity: g = void 0 } = t, { bbox: p = void 0 } = t, { trackProximity: v = !0 } = t, { minLength: y = 2 } = t, { language: m = void 0 } = t, { showResultsWhileTyping: E = !0 } = t, { zoom: C = 16 } = t, { flyTo: N = !0 } = t, { collapsed: L = !1 } = t, { clearOnBlur: w = !1 } = t, { enableReverse: D = !1 } = t, { reverseButtonTitle: T = "toggle reverse geocoding" } = t, { clearButtonTitle: F = "clear" } = t, { filter: j = () => !0 } = t, { searchValue: k = "" } = t, { reverseActive: O = D === "always" } = t, { showPlaceType: Y = !1 } = t, { showFullGeometry: P = !0 } = t, { limit: X = void 0 } = t, { fuzzyMatch: ut = !0 } = t, { countries: yt = void 0 } = t, { types: qt = void 0 } = t;
675
+ let n, { $$slots: i = {}, $$scope: o } = t, { class: s = void 0 } = t, { mapController: a = void 0 } = t, { apiKey: u } = t, { debounceSearch: l = 200 } = t, { placeholder: c = "Search" } = t, { errorMessage: f = "Searching failed" } = t, { noResultsMessage: h = "No results found" } = t, { proximity: g = void 0 } = t, { bbox: p = void 0 } = t, { trackProximity: v = !0 } = t, { minLength: y = 2 } = t, { language: m = void 0 } = t, { showResultsWhileTyping: E = !0 } = t, { zoom: N = 16 } = t, { flyTo: C = !0 } = t, { collapsed: L = !1 } = t, { clearOnBlur: w = !1 } = t, { enableReverse: D = !1 } = t, { reverseButtonTitle: T = "toggle reverse geocoding" } = t, { clearButtonTitle: F = "clear" } = t, { filter: j = () => !0 } = t, { searchValue: k = "" } = t, { reverseActive: O = D === "always" } = t, { showPlaceType: Y = !1 } = t, { showFullGeometry: P = !0 } = t, { limit: X = void 0 } = t, { fuzzyMatch: ut = !0 } = t, { country: yt = void 0 } = t, { types: qt = void 0 } = t;
670
676
  function we() {
671
677
  An.focus();
672
678
  }
@@ -678,7 +684,7 @@ function Bl(r, t, e) {
678
684
  An.focus(), An.select();
679
685
  }));
680
686
  }
681
- let Le = !1, J, Mt, it, Ks = "", An, At = -1, hr, mo = [], Ar, oi, _o;
687
+ let Le = !1, J, Mt, it, Ks = "", An, At = -1, hr, _o = [], Ar, oi, Eo;
682
688
  const gr = vl();
683
689
  dl(() => {
684
690
  a && (a.setEventHandler(void 0), a.indicateReverse(!1), a.setSelectedMarker(-1), a.setMarkers(void 0, void 0));
@@ -698,11 +704,11 @@ function Bl(r, t, e) {
698
704
  }
699
705
  async function os(x, { byId: Xt = !1, exact: Fn = !1 } = {}) {
700
706
  e(16, hr = void 0);
701
- const Gi = Js(), Ge = new URLSearchParams();
702
- m && Ge.set("language", Array.isArray(m) ? m.join(",") : m), yt && Ge.set("stack", Array.isArray(yt) ? yt.join(",") : yt), qt && Ge.set("types", qt.join(",")), Gi || (p && Ge.set("bbox", p.map((Br) => Br.toFixed(6)).join(",")), g && Ge.set("proximity", g.map((Br) => Br.toFixed(6)).join(",")), (Fn || !E) && Ge.set("autocomplete", "false"), Ge.set("fuzzyMatch", String(ut))), X !== void 0 && Ge.set("limit", String(X)), Ge.set("key", u);
707
+ const zi = Js(), Ge = new URLSearchParams();
708
+ m && Ge.set("language", Array.isArray(m) ? m.join(",") : m), yt && Ge.set("country", Array.isArray(yt) ? yt.join(",") : yt), qt && Ge.set("types", qt.join(",")), zi || (p && Ge.set("bbox", p.map((Br) => Br.toFixed(6)).join(",")), g && Ge.set("proximity", g.map((Br) => Br.toFixed(6)).join(",")), (Fn || !E) && Ge.set("autocomplete", "false"), Ge.set("fuzzyMatch", String(ut))), X !== void 0 && Ge.set("limit", String(X)), Ge.set("key", u);
703
709
  const Fr = "https://api.maptiler.com/geocoding/" + encodeURIComponent(x) + ".json?" + Ge.toString();
704
710
  if (Fr === Ks) {
705
- Xt ? (e(12, J = void 0), e(44, it = mo[0])) : e(12, J = mo);
711
+ Xt ? (e(12, J = void 0), e(44, it = _o[0])) : e(12, J = _o);
706
712
  return;
707
713
  }
708
714
  Ks = Fr, Ar == null || Ar.abort(), e(17, Ar = new AbortController());
@@ -719,16 +725,16 @@ function Bl(r, t, e) {
719
725
  if (!ve.ok)
720
726
  throw new Error();
721
727
  const us = await ve.json();
722
- gr("response", { url: Fr, featureCollection: us }), Xt ? (e(12, J = void 0), e(44, it = us.features[0]), mo = [it]) : (e(12, J = us.features.filter(j)), mo = J, Gi && An.focus());
728
+ gr("response", { url: Fr, featureCollection: us }), Xt ? (e(12, J = void 0), e(44, it = us.features[0]), _o = [it]) : (e(12, J = us.features.filter(j)), _o = J, zi && An.focus());
723
729
  }
724
730
  function Xu() {
725
- var Fn, Gi, Ge, Fr;
726
- if (!(Mt != null && Mt.length) || !N)
731
+ var Fn, zi, Ge, Fr;
732
+ if (!(Mt != null && Mt.length) || !C)
727
733
  return;
728
734
  const x = [180, 90, -180, -90], Xt = !Mt.some((ve) => !ve.matching_text);
729
735
  for (const ve of Mt)
730
- (Xt || !ve.matching_text) && (x[0] = Math.min(x[0], ((Fn = ve.bbox) == null ? void 0 : Fn[0]) ?? ve.center[0]), x[1] = Math.min(x[1], ((Gi = ve.bbox) == null ? void 0 : Gi[1]) ?? ve.center[1]), x[2] = Math.max(x[2], ((Ge = ve.bbox) == null ? void 0 : Ge[2]) ?? ve.center[0]), x[3] = Math.max(x[3], ((Fr = ve.bbox) == null ? void 0 : Fr[3]) ?? ve.center[1]));
731
- a && Mt.length > 0 && (it && x[0] === x[2] && x[1] === x[3] ? a.flyTo(it.center, C) : a.fitBounds(x, 50));
736
+ (Xt || !ve.matching_text) && (x[0] = Math.min(x[0], ((Fn = ve.bbox) == null ? void 0 : Fn[0]) ?? ve.center[0]), x[1] = Math.min(x[1], ((zi = ve.bbox) == null ? void 0 : zi[1]) ?? ve.center[1]), x[2] = Math.max(x[2], ((Ge = ve.bbox) == null ? void 0 : Ge[2]) ?? ve.center[0]), x[3] = Math.max(x[3], ((Fr = ve.bbox) == null ? void 0 : Fr[3]) ?? ve.center[1]));
737
+ a && Mt.length > 0 && (it && x[0] === x[2] && x[1] === x[3] ? a.flyTo(it.center, N) : a.fitBounds(x, 50));
732
738
  }
733
739
  function Yu(x) {
734
740
  e(1, O = D === "always"), Ze(Fl(x[0], [-180, 180], !0).toFixed(6) + "," + x[1].toFixed(6));
@@ -753,7 +759,7 @@ function Bl(r, t, e) {
753
759
  e(12, J = void 0), e(16, hr = void 0);
754
760
  }
755
761
  function as(x) {
756
- e(44, it = x), e(0, k = x.place_name.replace(/,.*/, "")), e(13, At = -1);
762
+ console.log(x), e(44, it = x), e(0, k = x.place_name), e(13, At = -1);
757
763
  }
758
764
  const Wu = () => An.focus();
759
765
  function ju(x) {
@@ -769,11 +775,11 @@ function Bl(r, t, e) {
769
775
  }, tl = () => e(1, O = !O), el = (x) => e(13, At = x), nl = (x) => as(x), rl = () => e(13, At = -1), il = () => {
770
776
  };
771
777
  return r.$$set = (x) => {
772
- "class" in x && e(2, s = x.class), "mapController" in x && e(23, a = x.mapController), "apiKey" in x && e(24, u = x.apiKey), "debounceSearch" in x && e(25, l = x.debounceSearch), "placeholder" in x && e(3, c = x.placeholder), "errorMessage" in x && e(4, f = x.errorMessage), "noResultsMessage" in x && e(5, h = x.noResultsMessage), "proximity" in x && e(22, g = x.proximity), "bbox" in x && e(26, p = x.bbox), "trackProximity" in x && e(27, v = x.trackProximity), "minLength" in x && e(28, y = x.minLength), "language" in x && e(29, m = x.language), "showResultsWhileTyping" in x && e(30, E = x.showResultsWhileTyping), "zoom" in x && e(31, C = x.zoom), "flyTo" in x && e(32, N = x.flyTo), "collapsed" in x && e(6, L = x.collapsed), "clearOnBlur" in x && e(33, w = x.clearOnBlur), "enableReverse" in x && e(7, D = x.enableReverse), "reverseButtonTitle" in x && e(8, T = x.reverseButtonTitle), "clearButtonTitle" in x && e(9, F = x.clearButtonTitle), "filter" in x && e(34, j = x.filter), "searchValue" in x && e(0, k = x.searchValue), "reverseActive" in x && e(1, O = x.reverseActive), "showPlaceType" in x && e(10, Y = x.showPlaceType), "showFullGeometry" in x && e(35, P = x.showFullGeometry), "limit" in x && e(36, X = x.limit), "fuzzyMatch" in x && e(37, ut = x.fuzzyMatch), "countries" in x && e(38, yt = x.countries), "types" in x && e(39, qt = x.types), "$$scope" in x && e(46, o = x.$$scope);
778
+ "class" in x && e(2, s = x.class), "mapController" in x && e(23, a = x.mapController), "apiKey" in x && e(24, u = x.apiKey), "debounceSearch" in x && e(25, l = x.debounceSearch), "placeholder" in x && e(3, c = x.placeholder), "errorMessage" in x && e(4, f = x.errorMessage), "noResultsMessage" in x && e(5, h = x.noResultsMessage), "proximity" in x && e(22, g = x.proximity), "bbox" in x && e(26, p = x.bbox), "trackProximity" in x && e(27, v = x.trackProximity), "minLength" in x && e(28, y = x.minLength), "language" in x && e(29, m = x.language), "showResultsWhileTyping" in x && e(30, E = x.showResultsWhileTyping), "zoom" in x && e(31, N = x.zoom), "flyTo" in x && e(32, C = x.flyTo), "collapsed" in x && e(6, L = x.collapsed), "clearOnBlur" in x && e(33, w = x.clearOnBlur), "enableReverse" in x && e(7, D = x.enableReverse), "reverseButtonTitle" in x && e(8, T = x.reverseButtonTitle), "clearButtonTitle" in x && e(9, F = x.clearButtonTitle), "filter" in x && e(34, j = x.filter), "searchValue" in x && e(0, k = x.searchValue), "reverseActive" in x && e(1, O = x.reverseActive), "showPlaceType" in x && e(10, Y = x.showPlaceType), "showFullGeometry" in x && e(35, P = x.showFullGeometry), "limit" in x && e(36, X = x.limit), "fuzzyMatch" in x && e(37, ut = x.fuzzyMatch), "country" in x && e(38, yt = x.country), "types" in x && e(39, qt = x.types), "$$scope" in x && e(46, o = x.$$scope);
773
779
  }, r.$$.update = () => {
774
780
  if (r.$$.dirty[0] & 134217728 && (v || e(22, g = void 0)), r.$$.dirty[0] & 2048 | r.$$.dirty[1] & 4 && setTimeout(() => {
775
- e(14, _o = Le), w && !Le && e(0, k = "");
776
- }), r.$$.dirty[0] & 4097 && (k || (e(44, it = void 0), e(12, J = void 0), e(16, hr = void 0), e(43, Mt = J))), r.$$.dirty[1] & 8208 && P && it && !it.address && it.geometry.type === "Point" && os(it.id, { byId: !0 }).catch((x) => e(16, hr = x)), r.$$.dirty[0] & 8388608 | r.$$.dirty[1] & 8195 && a && it && N && (!it.bbox || it.bbox[0] === it.bbox[2] && it.bbox[1] === it.bbox[3] ? a.flyTo(it.center, C) : a.fitBounds(it.bbox, 50), e(12, J = void 0), e(43, Mt = void 0), e(13, At = -1)), r.$$.dirty[0] & 4096 | r.$$.dirty[1] & 4096 && Mt !== J && e(43, Mt = void 0), r.$$.dirty[0] & 8388608 | r.$$.dirty[1] & 12288 && a && a.setMarkers(Mt, it), r.$$.dirty[0] & 1 && e(13, At = -1), r.$$.dirty[0] & 142626818 && a && a.setEventHandler((x) => {
781
+ e(14, Eo = Le), w && !Le && e(0, k = "");
782
+ }), r.$$.dirty[0] & 4097 && (k || (e(44, it = void 0), e(12, J = void 0), e(16, hr = void 0), e(43, Mt = J))), r.$$.dirty[1] & 8208 && P && it && !it.address && it.geometry.type === "Point" && os(it.id, { byId: !0 }).catch((x) => e(16, hr = x)), r.$$.dirty[0] & 8388608 | r.$$.dirty[1] & 8195 && a && it && C && (!it.bbox || it.bbox[0] === it.bbox[2] && it.bbox[1] === it.bbox[3] ? a.flyTo(it.center, N) : a.fitBounds(it.bbox, 50), e(12, J = void 0), e(43, Mt = void 0), e(13, At = -1)), r.$$.dirty[0] & 4096 | r.$$.dirty[1] & 4096 && Mt !== J && e(43, Mt = void 0), r.$$.dirty[0] & 8388608 | r.$$.dirty[1] & 12288 && a && a.setMarkers(Mt, it), r.$$.dirty[0] & 1 && e(13, At = -1), r.$$.dirty[0] & 142626818 && a && a.setEventHandler((x) => {
777
783
  switch (x.type) {
778
784
  case "mapClick":
779
785
  O && Yu(x.coordinates);
@@ -788,7 +794,7 @@ function Bl(r, t, e) {
788
794
  }
789
795
  break;
790
796
  case "markerMouseEnter":
791
- e(13, At = _o ? (J == null ? void 0 : J.findIndex((Xt) => Xt.id === x.id)) ?? -1 : -1);
797
+ e(13, At = Eo ? (J == null ? void 0 : J.findIndex((Xt) => Xt.id === x.id)) ?? -1 : -1);
792
798
  break;
793
799
  case "markerMouseLeave":
794
800
  e(13, At = -1);
@@ -798,7 +804,7 @@ function Bl(r, t, e) {
798
804
  const x = /^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(k);
799
805
  a == null || a.setReverseMarker(x ? [Number(x[1]), Number(x[2])] : void 0);
800
806
  }
801
- r.$$.dirty[1] & 16384 && gr("select", n), r.$$.dirty[1] & 8192 && gr("pick", it), r.$$.dirty[0] & 20480 && gr("optionsVisibilityChange", _o && !!J), r.$$.dirty[0] & 4096 && gr("featuresListed", J), r.$$.dirty[1] & 4096 && gr("featuresMarked", Mt), r.$$.dirty[0] & 2 && gr("reverseToggle", O), r.$$.dirty[0] & 1 && gr("queryChange", k), r.$$.dirty[0] & 8388610 && a && a.indicateReverse(O);
807
+ r.$$.dirty[1] & 16384 && gr("select", n), r.$$.dirty[1] & 8192 && gr("pick", it), r.$$.dirty[0] & 20480 && gr("optionsVisibilityChange", Eo && !!J), r.$$.dirty[0] & 4096 && gr("featuresListed", J), r.$$.dirty[1] & 4096 && gr("featuresMarked", Mt), r.$$.dirty[0] & 2 && gr("reverseToggle", O), r.$$.dirty[0] & 1 && gr("queryChange", k), r.$$.dirty[0] & 8388610 && a && a.indicateReverse(O);
802
808
  }, [
803
809
  k,
804
810
  O,
@@ -814,7 +820,7 @@ function Bl(r, t, e) {
814
820
  Le,
815
821
  J,
816
822
  At,
817
- _o,
823
+ Eo,
818
824
  An,
819
825
  hr,
820
826
  Ar,
@@ -831,8 +837,8 @@ function Bl(r, t, e) {
831
837
  y,
832
838
  m,
833
839
  E,
834
- C,
835
840
  N,
841
+ C,
836
842
  w,
837
843
  j,
838
844
  P,
@@ -862,14 +868,14 @@ function Bl(r, t, e) {
862
868
  il
863
869
  ];
864
870
  }
865
- let Gl = class extends Di {
871
+ let Gl = class extends Mi {
866
872
  constructor(t) {
867
- super(), Oi(
873
+ super(), Ti(
868
874
  this,
869
875
  t,
870
876
  Bl,
871
877
  Al,
872
- Ri,
878
+ Di,
873
879
  {
874
880
  class: 2,
875
881
  mapController: 23,
@@ -898,7 +904,7 @@ let Gl = class extends Di {
898
904
  showFullGeometry: 35,
899
905
  limit: 36,
900
906
  fuzzyMatch: 37,
901
- countries: 38,
907
+ country: 38,
902
908
  types: 39,
903
909
  focus: 40,
904
910
  blur: 41,
@@ -1291,7 +1297,7 @@ function la(r, t) {
1291
1297
  function Ee(r, t, e) {
1292
1298
  return t && la(r.prototype, t), e && la(r, e), r;
1293
1299
  }
1294
- var ki = function(t, e) {
1300
+ var Vi = function(t, e) {
1295
1301
  return t.ll.x <= e.x && e.x <= t.ur.x && t.ll.y <= e.y && e.y <= t.ur.y;
1296
1302
  }, Cs = function(t, e) {
1297
1303
  if (e.ur.x < t.ll.x || t.ur.x < e.ll.x || e.ur.y < t.ll.y || t.ur.y < e.ll.y)
@@ -1346,7 +1352,7 @@ var Yl = yr * yr, Ns = function(t, e) {
1346
1352
  return o !== null && Ns(n.key, o.key) === 0 ? (this.tree.remove(e), o.key) : e;
1347
1353
  }
1348
1354
  }]), r;
1349
- }(), Ki = new Hl(), Yi = function(t, e) {
1355
+ }(), Qi = new Hl(), Hi = function(t, e) {
1350
1356
  return t.x * e.y - t.y * e.x;
1351
1357
  }, Ka = function(t, e) {
1352
1358
  return t.x * e.x + t.y * e.y;
@@ -1357,7 +1363,7 @@ var Yl = yr * yr, Ns = function(t, e) {
1357
1363
  }, o = {
1358
1364
  x: n.x - t.x,
1359
1365
  y: n.y - t.y
1360
- }, s = Yi(i, o);
1366
+ }, s = Hi(i, o);
1361
1367
  return Ns(s, 0);
1362
1368
  }, To = function(t) {
1363
1369
  return Math.sqrt(Ka(t, t));
@@ -1369,7 +1375,7 @@ var Yl = yr * yr, Ns = function(t, e) {
1369
1375
  x: n.x - t.x,
1370
1376
  y: n.y - t.y
1371
1377
  };
1372
- return Yi(o, i) / To(o) / To(i);
1378
+ return Hi(o, i) / To(o) / To(i);
1373
1379
  }, jl = function(t, e, n) {
1374
1380
  var i = {
1375
1381
  x: e.x - t.x,
@@ -1398,13 +1404,13 @@ var Yl = yr * yr, Ns = function(t, e) {
1398
1404
  return ha(n, i, t.y);
1399
1405
  if (i.y === 0)
1400
1406
  return ha(t, e, n.y);
1401
- var o = Yi(e, i);
1407
+ var o = Hi(e, i);
1402
1408
  if (o == 0)
1403
1409
  return null;
1404
1410
  var s = {
1405
1411
  x: n.x - t.x,
1406
1412
  y: n.y - t.y
1407
- }, a = Yi(s, e) / o, u = Yi(s, i) / o, l = t.x + u * e.x, c = n.x + a * i.x, f = t.y + u * e.y, h = n.y + a * i.y, g = (l + c) / 2, p = (f + h) / 2;
1413
+ }, a = Hi(s, e) / o, u = Hi(s, i) / o, l = t.x + u * e.x, c = n.x + a * i.x, f = t.y + u * e.y, h = n.y + a * i.y, g = (l + c) / 2, p = (f + h) / 2;
1408
1414
  return {
1409
1415
  x: g,
1410
1416
  y: p
@@ -1525,10 +1531,10 @@ var Yl = yr * yr, Ns = function(t, e) {
1525
1531
  return -1;
1526
1532
  }
1527
1533
  if (s !== a) {
1528
- var E = c - u, C = s - i, N = f - l, L = a - o;
1529
- if (E > C && N < L)
1534
+ var E = c - u, N = s - i, C = f - l, L = a - o;
1535
+ if (E > N && C < L)
1530
1536
  return 1;
1531
- if (E < C && N > L)
1537
+ if (E < N && C > L)
1532
1538
  return -1;
1533
1539
  }
1534
1540
  return s > a ? 1 : s < a || c < f ? -1 : c > f ? 1 : e.id < n.id ? -1 : e.id > n.id ? 1 : 0;
@@ -1590,7 +1596,7 @@ var Yl = yr * yr, Ns = function(t, e) {
1590
1596
  var n = this.bbox(), i = e.bbox(), o = Cs(n, i);
1591
1597
  if (o === null)
1592
1598
  return null;
1593
- var s = this.leftSE.point, a = this.rightSE.point, u = e.leftSE.point, l = e.rightSE.point, c = ki(n, u) && this.comparePoint(u) === 0, f = ki(i, s) && e.comparePoint(s) === 0, h = ki(n, l) && this.comparePoint(l) === 0, g = ki(i, a) && e.comparePoint(a) === 0;
1599
+ var s = this.leftSE.point, a = this.rightSE.point, u = e.leftSE.point, l = e.rightSE.point, c = Vi(n, u) && this.comparePoint(u) === 0, f = Vi(i, s) && e.comparePoint(s) === 0, h = Vi(n, l) && this.comparePoint(l) === 0, g = Vi(i, a) && e.comparePoint(a) === 0;
1594
1600
  if (f && c)
1595
1601
  return g && !h ? a : !g && h ? l : null;
1596
1602
  if (f)
@@ -1604,7 +1610,7 @@ var Yl = yr * yr, Ns = function(t, e) {
1604
1610
  if (h)
1605
1611
  return l;
1606
1612
  var p = Kl(s, this.vector(), u, e.vector());
1607
- return p === null || !ki(o, p) ? null : Ki.round(p.x, p.y);
1613
+ return p === null || !Vi(o, p) ? null : Qi.round(p.x, p.y);
1608
1614
  }
1609
1615
  }, {
1610
1616
  key: "split",
@@ -1695,9 +1701,9 @@ var Yl = yr * yr, Ns = function(t, e) {
1695
1701
  m !== -1 && f.splice(m, 1);
1696
1702
  }
1697
1703
  }
1698
- for (var E = 0, C = f.length; E < C; E++) {
1699
- var N = f[E].multiPoly;
1700
- o.indexOf(N) === -1 && o.push(N);
1704
+ for (var E = 0, N = f.length; E < N; E++) {
1705
+ var C = f[E].multiPoly;
1706
+ o.indexOf(C) === -1 && o.push(C);
1701
1707
  }
1702
1708
  return this._afterState;
1703
1709
  }
@@ -1757,7 +1763,7 @@ var Yl = yr * yr, Ns = function(t, e) {
1757
1763
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
1758
1764
  if (this.poly = e, this.isExterior = n, this.segments = [], typeof t[0][0] != "number" || typeof t[0][1] != "number")
1759
1765
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
1760
- var i = Ki.round(t[0][0], t[0][1]);
1766
+ var i = Qi.round(t[0][0], t[0][1]);
1761
1767
  this.bbox = {
1762
1768
  ll: {
1763
1769
  x: i.x,
@@ -1771,7 +1777,7 @@ var Yl = yr * yr, Ns = function(t, e) {
1771
1777
  for (var o = i, s = 1, a = t.length; s < a; s++) {
1772
1778
  if (typeof t[s][0] != "number" || typeof t[s][1] != "number")
1773
1779
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
1774
- var u = Ki.round(t[s][0], t[s][1]);
1780
+ var u = Qi.round(t[s][0], t[s][1]);
1775
1781
  u.x === o.x && u.y === o.y || (this.segments.push(Mo.fromRing(o, u, this)), u.x < this.bbox.ll.x && (this.bbox.ll.x = u.x), u.y < this.bbox.ll.y && (this.bbox.ll.y = u.y), u.x > this.bbox.ur.x && (this.bbox.ur.x = u.x), u.y > this.bbox.ur.y && (this.bbox.ur.y = u.y), o = u);
1776
1782
  }
1777
1783
  (i.x !== o.x || i.y !== o.y) && this.segments.push(Mo.fromRing(o, i, this));
@@ -1872,8 +1878,8 @@ var Yl = yr * yr, Ns = function(t, e) {
1872
1878
  break;
1873
1879
  }
1874
1880
  if (y !== null) {
1875
- var C = h.splice(y)[0], N = c.splice(C.index);
1876
- N.unshift(N[0].otherSE), n.push(new r(N.reverse()));
1881
+ var N = h.splice(y)[0], C = c.splice(N.index);
1882
+ C.unshift(C[0].otherSE), n.push(new r(C.reverse()));
1877
1883
  continue;
1878
1884
  }
1879
1885
  h.push({
@@ -2024,21 +2030,21 @@ var Yl = yr * yr, Ns = function(t, e) {
2024
2030
  if (l) {
2025
2031
  var y = l.getIntersection(n);
2026
2032
  if (y !== null && (n.isAnEndpoint(y) || (v = y), !l.isAnEndpoint(y)))
2027
- for (var m = this._splitSafely(l, y), E = 0, C = m.length; E < C; E++)
2033
+ for (var m = this._splitSafely(l, y), E = 0, N = m.length; E < N; E++)
2028
2034
  i.push(m[E]);
2029
2035
  }
2030
2036
  if (c !== null || v !== null) {
2031
- var N = null;
2037
+ var C = null;
2032
2038
  if (c === null)
2033
- N = v;
2039
+ C = v;
2034
2040
  else if (v === null)
2035
- N = c;
2041
+ C = c;
2036
2042
  else {
2037
2043
  var L = Vn.comparePoints(c, v);
2038
- N = L <= 0 ? c : v;
2044
+ C = L <= 0 ? c : v;
2039
2045
  }
2040
2046
  this.queue.remove(n.rightSE), i.push(n.rightSE);
2041
- for (var w = n.split(N), D = 0, T = w.length; D < T; D++)
2047
+ for (var w = n.split(C), D = 0, T = w.length; D < T; D++)
2042
2048
  i.push(w[D]);
2043
2049
  }
2044
2050
  i.length > 0 ? (this.tree.remove(n), i.push(e)) : (this.segments.push(n), n.prev = u);
@@ -2075,7 +2081,7 @@ var Yl = yr * yr, Ns = function(t, e) {
2075
2081
  return Ee(r, [{
2076
2082
  key: "run",
2077
2083
  value: function(e, n, i) {
2078
- Cn.type = e, Ki.reset();
2084
+ Cn.type = e, Qi.reset();
2079
2085
  for (var o = [new da(n, !0)], s = 0, a = i.length; s < a; s++)
2080
2086
  o.push(new da(i[s], !1));
2081
2087
  if (Cn.numMultiPolys = o.length, Cn.type === "difference")
@@ -2088,8 +2094,8 @@ var Yl = yr * yr, Ns = function(t, e) {
2088
2094
  return [];
2089
2095
  }
2090
2096
  for (var v = new Ds(Vn.compare), y = 0, m = o.length; y < m; y++)
2091
- for (var E = o[y].getSweepEvents(), C = 0, N = E.length; C < N; C++)
2092
- if (v.insert(E[C]), v.size > ya)
2097
+ for (var E = o[y].getSweepEvents(), N = 0, C = E.length; N < C; N++)
2098
+ if (v.insert(E[N]), v.size > ya)
2093
2099
  throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");
2094
2100
  for (var L = new tc(v), w = v.size, D = v.pop(); D; ) {
2095
2101
  var T = D.key;
@@ -2107,7 +2113,7 @@ var Yl = yr * yr, Ns = function(t, e) {
2107
2113
  }
2108
2114
  w = v.size, D = v.pop();
2109
2115
  }
2110
- Ki.reset();
2116
+ Qi.reset();
2111
2117
  var P = Zl.factory(L.segments), X = new $l(P);
2112
2118
  return X.getGeom();
2113
2119
  }
@@ -2236,7 +2242,7 @@ function tu(r, t, e) {
2236
2242
  for (var n, i, o, s, a, u, l, c = 0, f = 0, h, g = r.type, p = g === "FeatureCollection", v = g === "Feature", y = p ? r.features.length : 1, m = 0; m < y; m++) {
2237
2243
  l = p ? r.features[m].geometry : v ? r.geometry : r, h = l ? l.type === "GeometryCollection" : !1, a = h ? l.geometries.length : 1;
2238
2244
  for (var E = 0; E < a; E++) {
2239
- var C = 0, N = 0;
2245
+ var N = 0, C = 0;
2240
2246
  if (s = h ? l.geometries[E] : l, s !== null) {
2241
2247
  u = s.coordinates;
2242
2248
  var L = s.type;
@@ -2248,11 +2254,11 @@ function tu(r, t, e) {
2248
2254
  u,
2249
2255
  f,
2250
2256
  m,
2251
- C,
2252
- N
2257
+ N,
2258
+ C
2253
2259
  ) === !1)
2254
2260
  return !1;
2255
- f++, C++;
2261
+ f++, N++;
2256
2262
  break;
2257
2263
  case "LineString":
2258
2264
  case "MultiPoint":
@@ -2261,13 +2267,13 @@ function tu(r, t, e) {
2261
2267
  u[n],
2262
2268
  f,
2263
2269
  m,
2264
- C,
2265
- N
2270
+ N,
2271
+ C
2266
2272
  ) === !1)
2267
2273
  return !1;
2268
- f++, L === "MultiPoint" && C++;
2274
+ f++, L === "MultiPoint" && N++;
2269
2275
  }
2270
- L === "LineString" && C++;
2276
+ L === "LineString" && N++;
2271
2277
  break;
2272
2278
  case "Polygon":
2273
2279
  case "MultiLineString":
@@ -2277,33 +2283,33 @@ function tu(r, t, e) {
2277
2283
  u[n][i],
2278
2284
  f,
2279
2285
  m,
2280
- C,
2281
- N
2286
+ N,
2287
+ C
2282
2288
  ) === !1)
2283
2289
  return !1;
2284
2290
  f++;
2285
2291
  }
2286
- L === "MultiLineString" && C++, L === "Polygon" && N++;
2292
+ L === "MultiLineString" && N++, L === "Polygon" && C++;
2287
2293
  }
2288
- L === "Polygon" && C++;
2294
+ L === "Polygon" && N++;
2289
2295
  break;
2290
2296
  case "MultiPolygon":
2291
2297
  for (n = 0; n < u.length; n++) {
2292
- for (N = 0, i = 0; i < u[n].length; i++) {
2298
+ for (C = 0, i = 0; i < u[n].length; i++) {
2293
2299
  for (o = 0; o < u[n][i].length - c; o++) {
2294
2300
  if (t(
2295
2301
  u[n][i][o],
2296
2302
  f,
2297
2303
  m,
2298
- C,
2299
- N
2304
+ N,
2305
+ C
2300
2306
  ) === !1)
2301
2307
  return !1;
2302
2308
  f++;
2303
2309
  }
2304
- N++;
2310
+ C++;
2305
2311
  }
2306
- C++;
2312
+ N++;
2307
2313
  }
2308
2314
  break;
2309
2315
  case "GeometryCollection":
@@ -2451,7 +2457,7 @@ nu.MAX_VALUE.get = function() {
2451
2457
  Object.defineProperties(V, nu);
2452
2458
  var Fe = function() {
2453
2459
  }, Wo = function() {
2454
- }, li = function() {
2460
+ }, fi = function() {
2455
2461
  };
2456
2462
  function Be() {
2457
2463
  }
@@ -2589,7 +2595,7 @@ tr.prototype.compare = function(t, e) {
2589
2595
  return a;
2590
2596
  };
2591
2597
  tr.prototype.interfaces_ = function() {
2592
- return [li];
2598
+ return [fi];
2593
2599
  };
2594
2600
  tr.prototype.getClass = function() {
2595
2601
  return tr;
@@ -2597,18 +2603,18 @@ tr.prototype.getClass = function() {
2597
2603
  tr.compare = function(t, e) {
2598
2604
  return t < e ? -1 : t > e ? 1 : V.isNaN(t) ? V.isNaN(e) ? 0 : -1 : V.isNaN(e) ? 1 : 0;
2599
2605
  };
2600
- var ci = function() {
2606
+ var hi = function() {
2601
2607
  };
2602
- ci.prototype.create = function() {
2608
+ hi.prototype.create = function() {
2603
2609
  };
2604
- ci.prototype.interfaces_ = function() {
2610
+ hi.prototype.interfaces_ = function() {
2605
2611
  return [];
2606
2612
  };
2607
- ci.prototype.getClass = function() {
2608
- return ci;
2613
+ hi.prototype.getClass = function() {
2614
+ return hi;
2609
2615
  };
2610
2616
  var _ = function() {
2611
- }, co = { INTERIOR: { configurable: !0 }, BOUNDARY: { configurable: !0 }, EXTERIOR: { configurable: !0 }, NONE: { configurable: !0 } };
2617
+ }, fo = { INTERIOR: { configurable: !0 }, BOUNDARY: { configurable: !0 }, EXTERIOR: { configurable: !0 }, NONE: { configurable: !0 } };
2612
2618
  _.prototype.interfaces_ = function() {
2613
2619
  return [];
2614
2620
  };
@@ -2628,19 +2634,19 @@ _.toLocationSymbol = function(t) {
2628
2634
  }
2629
2635
  throw new ft("Unknown location value: " + t);
2630
2636
  };
2631
- co.INTERIOR.get = function() {
2637
+ fo.INTERIOR.get = function() {
2632
2638
  return 0;
2633
2639
  };
2634
- co.BOUNDARY.get = function() {
2640
+ fo.BOUNDARY.get = function() {
2635
2641
  return 1;
2636
2642
  };
2637
- co.EXTERIOR.get = function() {
2643
+ fo.EXTERIOR.get = function() {
2638
2644
  return 2;
2639
2645
  };
2640
- co.NONE.get = function() {
2646
+ fo.NONE.get = function() {
2641
2647
  return -1;
2642
2648
  };
2643
- Object.defineProperties(_, co);
2649
+ Object.defineProperties(_, fo);
2644
2650
  var z = function(r, t) {
2645
2651
  return r.interfaces_ && r.interfaces_().indexOf(t) > -1;
2646
2652
  }, Ie = function() {
@@ -2711,12 +2717,12 @@ an.prototype.compareTo = function(t) {
2711
2717
  an.isNaN = function(t) {
2712
2718
  return Number.isNaN(t);
2713
2719
  };
2714
- var Qi = function() {
2720
+ var Ji = function() {
2715
2721
  };
2716
- Qi.isWhitespace = function(t) {
2722
+ Ji.isWhitespace = function(t) {
2717
2723
  return t <= 32 && t >= 0 || t === 127;
2718
2724
  };
2719
- Qi.toUpperCase = function(t) {
2725
+ Ji.toUpperCase = function(t) {
2720
2726
  return t.toUpperCase();
2721
2727
  };
2722
2728
  var I = function r() {
@@ -2886,8 +2892,8 @@ I.prototype.selfAdd = function() {
2886
2892
  } else if (arguments.length === 2) {
2887
2893
  var l = arguments[0], c = arguments[1], f = null, h = null, g = null, p = null, v = null, y = null, m = null, E = null;
2888
2894
  v = this._hi + l, g = this._lo + c, m = v - this._hi, E = g - this._lo, y = v - m, p = g - E, y = l - m + (this._hi - y), p = c - E + (this._lo - p), m = y + g, f = v + m, h = m + (v - f), m = p + h;
2889
- var C = f + m, N = m + (f - C);
2890
- return this._hi = C, this._lo = N, this;
2895
+ var N = f + m, C = m + (f - N);
2896
+ return this._hi = N, this._lo = C, this;
2891
2897
  }
2892
2898
  };
2893
2899
  I.prototype.selfMultiply = function() {
@@ -3042,7 +3048,7 @@ I.sqrt = function(t) {
3042
3048
  return I.valueOf(t).sqrt();
3043
3049
  };
3044
3050
  I.parse = function(t) {
3045
- for (var e = 0, n = t.length; Qi.isWhitespace(t.charAt(e)); )
3051
+ for (var e = 0, n = t.length; Ji.isWhitespace(t.charAt(e)); )
3046
3052
  e++;
3047
3053
  var i = !1;
3048
3054
  if (e < n) {
@@ -3051,7 +3057,7 @@ I.parse = function(t) {
3051
3057
  }
3052
3058
  for (var s = new I(), a = 0, u = 0, l = 0; !(e >= n); ) {
3053
3059
  var c = t.charAt(e);
3054
- if (e++, Qi.isDigit(c)) {
3060
+ if (e++, Ji.isDigit(c)) {
3055
3061
  var f = c - "0";
3056
3062
  s.selfMultiply(I.TEN), s.selfAdd(f), a++;
3057
3063
  continue;
@@ -3182,17 +3188,17 @@ iu.DP_SAFE_EPSILON.get = function() {
3182
3188
  };
3183
3189
  Object.defineProperties(ae, iu);
3184
3190
  var Q = function() {
3185
- }, fo = { X: { configurable: !0 }, Y: { configurable: !0 }, Z: { configurable: !0 }, M: { configurable: !0 } };
3186
- fo.X.get = function() {
3191
+ }, ho = { X: { configurable: !0 }, Y: { configurable: !0 }, Z: { configurable: !0 }, M: { configurable: !0 } };
3192
+ ho.X.get = function() {
3187
3193
  return 0;
3188
3194
  };
3189
- fo.Y.get = function() {
3195
+ ho.Y.get = function() {
3190
3196
  return 1;
3191
3197
  };
3192
- fo.Z.get = function() {
3198
+ ho.Z.get = function() {
3193
3199
  return 2;
3194
3200
  };
3195
- fo.M.get = function() {
3201
+ ho.M.get = function() {
3196
3202
  return 3;
3197
3203
  };
3198
3204
  Q.prototype.setOrdinate = function(t, e, n) {
@@ -3225,9 +3231,9 @@ Q.prototype.interfaces_ = function() {
3225
3231
  Q.prototype.getClass = function() {
3226
3232
  return Q;
3227
3233
  };
3228
- Object.defineProperties(Q, fo);
3234
+ Object.defineProperties(Q, ho);
3229
3235
  var ou = function() {
3230
- }, Ti = function(r) {
3236
+ }, Ai = function(r) {
3231
3237
  function t() {
3232
3238
  r.call(this, "Projective point not representable on the Cartesian plane.");
3233
3239
  }
@@ -3269,20 +3275,20 @@ var ze = function r() {
3269
3275
  var u = arguments[0], l = arguments[1], c = arguments[2];
3270
3276
  this.x = u, this.y = l, this.w = c;
3271
3277
  } else if (arguments.length === 4) {
3272
- var f = arguments[0], h = arguments[1], g = arguments[2], p = arguments[3], v = f.y - h.y, y = h.x - f.x, m = f.x * h.y - h.x * f.y, E = g.y - p.y, C = p.x - g.x, N = g.x * p.y - p.x * g.y;
3273
- this.x = y * N - C * m, this.y = E * m - v * N, this.w = v * C - E * y;
3278
+ var f = arguments[0], h = arguments[1], g = arguments[2], p = arguments[3], v = f.y - h.y, y = h.x - f.x, m = f.x * h.y - h.x * f.y, E = g.y - p.y, N = p.x - g.x, C = g.x * p.y - p.x * g.y;
3279
+ this.x = y * C - N * m, this.y = E * m - v * C, this.w = v * N - E * y;
3274
3280
  }
3275
3281
  };
3276
3282
  ze.prototype.getY = function() {
3277
3283
  var t = this.y / this.w;
3278
3284
  if (V.isNaN(t) || V.isInfinite(t))
3279
- throw new Ti();
3285
+ throw new Ai();
3280
3286
  return t;
3281
3287
  };
3282
3288
  ze.prototype.getX = function() {
3283
3289
  var t = this.x / this.w;
3284
3290
  if (V.isNaN(t) || V.isInfinite(t))
3285
- throw new Ti();
3291
+ throw new Ai();
3286
3292
  return t;
3287
3293
  };
3288
3294
  ze.prototype.getCoordinate = function() {
@@ -3298,7 +3304,7 @@ ze.prototype.getClass = function() {
3298
3304
  ze.intersection = function(t, e, n, i) {
3299
3305
  var o = t.y - e.y, s = e.x - t.x, a = t.x * e.y - e.x * t.y, u = n.y - i.y, l = i.x - n.x, c = n.x * i.y - i.x * n.y, f = s * c - l * a, h = u * a - o * c, g = o * l - u * s, p = f / g, v = h / g;
3300
3306
  if (V.isNaN(p) || V.isInfinite(p) || V.isNaN(v) || V.isInfinite(v))
3301
- throw new Ti();
3307
+ throw new Ai();
3302
3308
  return new d(p, v);
3303
3309
  };
3304
3310
  var M = function r() {
@@ -3519,7 +3525,7 @@ jo.prototype.read = function(t) {
3519
3525
  var e, n, i;
3520
3526
  t = t.replace(/[\n\r]/g, " ");
3521
3527
  var o = $e.typeStr.exec(t);
3522
- if (t.search("EMPTY") !== -1 && (o = $e.emptyTypeStr.exec(t), o[2] = void 0), o && (n = o[1].toLowerCase(), i = o[2], si[n] && (e = si[n].apply(this, [i]))), e === void 0)
3528
+ if (t.search("EMPTY") !== -1 && (o = $e.emptyTypeStr.exec(t), o[2] = void 0), o && (n = o[1].toLowerCase(), i = o[2], ui[n] && (e = ui[n].apply(this, [i]))), e === void 0)
3523
3529
  throw new Error("Could not parse WKT " + t);
3524
3530
  return e;
3525
3531
  };
@@ -3577,7 +3583,7 @@ var kn = {
3577
3583
  n.push(e.extractGeometry(t._geometries[i]));
3578
3584
  return n.join(",");
3579
3585
  }
3580
- }, si = {
3586
+ }, ui = {
3581
3587
  point: function(t) {
3582
3588
  if (t === void 0)
3583
3589
  return this.geometryFactory.createPoint();
@@ -3592,7 +3598,7 @@ var kn = {
3592
3598
  if (t === void 0)
3593
3599
  return this.geometryFactory.createMultiPoint();
3594
3600
  for (var n, i = t.trim().split(","), o = [], s = 0, a = i.length; s < a; ++s)
3595
- n = i[s].replace($e.trimParens, "$1"), o.push(si.point.apply(e, [n]));
3601
+ n = i[s].replace($e.trimParens, "$1"), o.push(ui.point.apply(e, [n]));
3596
3602
  return this.geometryFactory.createMultiPoint(o);
3597
3603
  },
3598
3604
  linestring: function(t) {
@@ -3614,7 +3620,7 @@ var kn = {
3614
3620
  if (t === void 0)
3615
3621
  return this.geometryFactory.createMultiLineString();
3616
3622
  for (var n, i = t.trim().split($e.parenComma), o = [], s = 0, a = i.length; s < a; ++s)
3617
- n = i[s].replace($e.trimParens, "$1"), o.push(si.linestring.apply(e, [n]));
3623
+ n = i[s].replace($e.trimParens, "$1"), o.push(ui.linestring.apply(e, [n]));
3618
3624
  return this.geometryFactory.createMultiLineString(o);
3619
3625
  },
3620
3626
  polygon: function(t) {
@@ -3622,7 +3628,7 @@ var kn = {
3622
3628
  if (t === void 0)
3623
3629
  return this.geometryFactory.createPolygon();
3624
3630
  for (var n, i, o, s = t.trim().split($e.parenComma), a, u = [], l = 0, c = s.length; l < c; ++l)
3625
- n = s[l].replace($e.trimParens, "$1"), i = si.linestring.apply(e, [n]), o = e.geometryFactory.createLinearRing(i._points), l === 0 ? a = o : u.push(o);
3631
+ n = s[l].replace($e.trimParens, "$1"), i = ui.linestring.apply(e, [n]), o = e.geometryFactory.createLinearRing(i._points), l === 0 ? a = o : u.push(o);
3626
3632
  return this.geometryFactory.createPolygon(a, u);
3627
3633
  },
3628
3634
  multipolygon: function(t) {
@@ -3630,7 +3636,7 @@ var kn = {
3630
3636
  if (t === void 0)
3631
3637
  return this.geometryFactory.createMultiPolygon();
3632
3638
  for (var n, i = t.trim().split($e.doubleParenComma), o = [], s = 0, a = i.length; s < a; ++s)
3633
- n = i[s].replace($e.trimParens, "$1"), o.push(si.polygon.apply(e, [n]));
3639
+ n = i[s].replace($e.trimParens, "$1"), o.push(ui.polygon.apply(e, [n]));
3634
3640
  return this.geometryFactory.createMultiPolygon(o);
3635
3641
  },
3636
3642
  geometrycollection: function(t) {
@@ -3841,7 +3847,7 @@ var Dr = function(r) {
3841
3847
  try {
3842
3848
  a = ze.intersection(n, i, o, s);
3843
3849
  } catch (u) {
3844
- if (u instanceof Ti)
3850
+ if (u instanceof Ai)
3845
3851
  a = t.nearestEndpoint(n, i, o, s);
3846
3852
  else
3847
3853
  throw u;
@@ -3866,8 +3872,8 @@ var Dr = function(r) {
3866
3872
  var a = M.intersects(n, i, o), u = M.intersects(n, i, s), l = M.intersects(o, s, n), c = M.intersects(o, s, i);
3867
3873
  return a && u ? (this._intPt[0] = o, this._intPt[1] = s, r.COLLINEAR_INTERSECTION) : l && c ? (this._intPt[0] = n, this._intPt[1] = i, r.COLLINEAR_INTERSECTION) : a && l ? (this._intPt[0] = o, this._intPt[1] = n, o.equals(n) && !u && !c ? r.POINT_INTERSECTION : r.COLLINEAR_INTERSECTION) : a && c ? (this._intPt[0] = o, this._intPt[1] = i, o.equals(i) && !u && !l ? r.POINT_INTERSECTION : r.COLLINEAR_INTERSECTION) : u && l ? (this._intPt[0] = s, this._intPt[1] = n, s.equals(n) && !a && !c ? r.POINT_INTERSECTION : r.COLLINEAR_INTERSECTION) : u && c ? (this._intPt[0] = s, this._intPt[1] = i, s.equals(i) && !a && !l ? r.POINT_INTERSECTION : r.COLLINEAR_INTERSECTION) : r.NO_INTERSECTION;
3868
3874
  }, t.prototype.normalizeToEnvCentre = function(n, i, o, s, a) {
3869
- var u = n.x < i.x ? n.x : i.x, l = n.y < i.y ? n.y : i.y, c = n.x > i.x ? n.x : i.x, f = n.y > i.y ? n.y : i.y, h = o.x < s.x ? o.x : s.x, g = o.y < s.y ? o.y : s.y, p = o.x > s.x ? o.x : s.x, v = o.y > s.y ? o.y : s.y, y = u > h ? u : h, m = c < p ? c : p, E = l > g ? l : g, C = f < v ? f : v, N = (y + m) / 2, L = (E + C) / 2;
3870
- a.x = N, a.y = L, n.x -= a.x, n.y -= a.y, i.x -= a.x, i.y -= a.y, o.x -= a.x, o.y -= a.y, s.x -= a.x, s.y -= a.y;
3875
+ var u = n.x < i.x ? n.x : i.x, l = n.y < i.y ? n.y : i.y, c = n.x > i.x ? n.x : i.x, f = n.y > i.y ? n.y : i.y, h = o.x < s.x ? o.x : s.x, g = o.y < s.y ? o.y : s.y, p = o.x > s.x ? o.x : s.x, v = o.y > s.y ? o.y : s.y, y = u > h ? u : h, m = c < p ? c : p, E = l > g ? l : g, N = f < v ? f : v, C = (y + m) / 2, L = (E + N) / 2;
3876
+ a.x = C, a.y = L, n.x -= a.x, n.y -= a.y, i.x -= a.x, i.y -= a.y, o.x -= a.x, o.y -= a.y, s.x -= a.x, s.y -= a.y;
3871
3877
  }, t.prototype.computeIntersect = function(n, i, o, s) {
3872
3878
  if (this._isProper = !1, !M.intersects(n, i, o, s))
3873
3879
  return r.NO_INTERSECTION;
@@ -4346,76 +4352,76 @@ De.prototype.getClass = function() {
4346
4352
  return De;
4347
4353
  };
4348
4354
  Zn.Mod2BoundaryNodeRule.get = function() {
4349
- return fi;
4355
+ return gi;
4350
4356
  };
4351
4357
  Zn.EndPointBoundaryNodeRule.get = function() {
4352
- return hi;
4358
+ return pi;
4353
4359
  };
4354
4360
  Zn.MultiValentEndPointBoundaryNodeRule.get = function() {
4355
- return gi;
4361
+ return di;
4356
4362
  };
4357
4363
  Zn.MonoValentEndPointBoundaryNodeRule.get = function() {
4358
- return pi;
4364
+ return vi;
4359
4365
  };
4360
4366
  Zn.MOD2_BOUNDARY_RULE.get = function() {
4361
- return new fi();
4367
+ return new gi();
4362
4368
  };
4363
4369
  Zn.ENDPOINT_BOUNDARY_RULE.get = function() {
4364
- return new hi();
4370
+ return new pi();
4365
4371
  };
4366
4372
  Zn.MULTIVALENT_ENDPOINT_BOUNDARY_RULE.get = function() {
4367
- return new gi();
4373
+ return new di();
4368
4374
  };
4369
4375
  Zn.MONOVALENT_ENDPOINT_BOUNDARY_RULE.get = function() {
4370
- return new pi();
4376
+ return new vi();
4371
4377
  };
4372
4378
  Zn.OGC_SFS_BOUNDARY_RULE.get = function() {
4373
4379
  return De.MOD2_BOUNDARY_RULE;
4374
4380
  };
4375
4381
  Object.defineProperties(De, Zn);
4376
- var fi = function() {
4382
+ var gi = function() {
4377
4383
  };
4378
- fi.prototype.isInBoundary = function(t) {
4384
+ gi.prototype.isInBoundary = function(t) {
4379
4385
  return t % 2 === 1;
4380
4386
  };
4381
- fi.prototype.interfaces_ = function() {
4387
+ gi.prototype.interfaces_ = function() {
4382
4388
  return [De];
4383
4389
  };
4384
- fi.prototype.getClass = function() {
4385
- return fi;
4390
+ gi.prototype.getClass = function() {
4391
+ return gi;
4386
4392
  };
4387
- var hi = function() {
4393
+ var pi = function() {
4388
4394
  };
4389
- hi.prototype.isInBoundary = function(t) {
4395
+ pi.prototype.isInBoundary = function(t) {
4390
4396
  return t > 0;
4391
4397
  };
4392
- hi.prototype.interfaces_ = function() {
4398
+ pi.prototype.interfaces_ = function() {
4393
4399
  return [De];
4394
4400
  };
4395
- hi.prototype.getClass = function() {
4396
- return hi;
4401
+ pi.prototype.getClass = function() {
4402
+ return pi;
4397
4403
  };
4398
- var gi = function() {
4404
+ var di = function() {
4399
4405
  };
4400
- gi.prototype.isInBoundary = function(t) {
4406
+ di.prototype.isInBoundary = function(t) {
4401
4407
  return t > 1;
4402
4408
  };
4403
- gi.prototype.interfaces_ = function() {
4409
+ di.prototype.interfaces_ = function() {
4404
4410
  return [De];
4405
4411
  };
4406
- gi.prototype.getClass = function() {
4407
- return gi;
4412
+ di.prototype.getClass = function() {
4413
+ return di;
4408
4414
  };
4409
- var pi = function() {
4415
+ var vi = function() {
4410
4416
  };
4411
- pi.prototype.isInBoundary = function(t) {
4417
+ vi.prototype.isInBoundary = function(t) {
4412
4418
  return t === 1;
4413
4419
  };
4414
- pi.prototype.interfaces_ = function() {
4420
+ vi.prototype.interfaces_ = function() {
4415
4421
  return [De];
4416
4422
  };
4417
- pi.prototype.getClass = function() {
4418
- return pi;
4423
+ vi.prototype.getClass = function() {
4424
+ return vi;
4419
4425
  };
4420
4426
  var wt = function() {
4421
4427
  };
@@ -4438,13 +4444,13 @@ function Ms(r) {
4438
4444
  }
4439
4445
  Ms.prototype = new Error();
4440
4446
  Ms.prototype.name = "IndexOutOfBoundsException";
4441
- var Mi = function() {
4447
+ var Fi = function() {
4442
4448
  };
4443
- Mi.prototype.hasNext = function() {
4449
+ Fi.prototype.hasNext = function() {
4444
4450
  };
4445
- Mi.prototype.next = function() {
4451
+ Fi.prototype.next = function() {
4446
4452
  };
4447
- Mi.prototype.remove = function() {
4453
+ Fi.prototype.remove = function() {
4448
4454
  };
4449
4455
  var Ve = function(r) {
4450
4456
  function t() {
@@ -4455,11 +4461,11 @@ var Ve = function(r) {
4455
4461
  }, t.prototype.isEmpty = function() {
4456
4462
  }, t;
4457
4463
  }(wt);
4458
- function Ai(r) {
4464
+ function Bi(r) {
4459
4465
  this.message = r || "";
4460
4466
  }
4461
- Ai.prototype = new Error();
4462
- Ai.prototype.name = "NoSuchElementException";
4467
+ Bi.prototype = new Error();
4468
+ Bi.prototype.name = "NoSuchElementException";
4463
4469
  var b = function(r) {
4464
4470
  function t() {
4465
4471
  r.call(this), this.array_ = [], arguments[0] instanceof wt && this.addAll(arguments[0]);
@@ -4506,7 +4512,7 @@ var b = function(r) {
4506
4512
  }
4507
4513
  return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t.prototype.next = function() {
4508
4514
  if (this.position_ === this.arrayList_.size())
4509
- throw new Ai();
4515
+ throw new Bi();
4510
4516
  return this.arrayList_.get(this.position_++);
4511
4517
  }, t.prototype.hasNext = function() {
4512
4518
  return this.position_ < this.arrayList_.size();
@@ -4515,7 +4521,7 @@ var b = function(r) {
4515
4521
  }, t.prototype.remove = function() {
4516
4522
  this.arrayList_.remove(this.arrayList_.get(this.position_));
4517
4523
  }, t;
4518
- }(Mi), ho = function(r) {
4524
+ }(Fi), go = function(r) {
4519
4525
  function t() {
4520
4526
  if (r.call(this), arguments.length !== 0) {
4521
4527
  if (arguments.length === 1) {
@@ -4579,23 +4585,23 @@ var b = function(r) {
4579
4585
  i.add(g[m], p);
4580
4586
  return !0;
4581
4587
  } else if (typeof arguments[2] == "boolean" && Number.isInteger(arguments[0]) && arguments[1] instanceof d) {
4582
- var E = arguments[0], C = arguments[1], N = arguments[2];
4583
- if (!N) {
4588
+ var E = arguments[0], N = arguments[1], C = arguments[2];
4589
+ if (!C) {
4584
4590
  var L = this.size();
4585
4591
  if (L > 0) {
4586
4592
  if (E > 0) {
4587
4593
  var w = this.get(E - 1);
4588
- if (w.equals2D(C))
4594
+ if (w.equals2D(N))
4589
4595
  return null;
4590
4596
  }
4591
4597
  if (E < L) {
4592
4598
  var D = this.get(E);
4593
- if (D.equals2D(C))
4599
+ if (D.equals2D(N))
4594
4600
  return null;
4595
4601
  }
4596
4602
  }
4597
4603
  }
4598
- r.prototype.add.call(this, E, C);
4604
+ r.prototype.add.call(this, E, N);
4599
4605
  }
4600
4606
  } else if (arguments.length === 4) {
4601
4607
  var T = arguments[0], F = arguments[1], j = arguments[2], k = arguments[3], O = 1;
@@ -4614,10 +4620,10 @@ var b = function(r) {
4614
4620
  }(b), W = function() {
4615
4621
  }, Ko = { ForwardComparator: { configurable: !0 }, BidirectionalComparator: { configurable: !0 }, coordArrayType: { configurable: !0 } };
4616
4622
  Ko.ForwardComparator.get = function() {
4617
- return Ji;
4623
+ return Zi;
4618
4624
  };
4619
4625
  Ko.BidirectionalComparator.get = function() {
4620
- return di;
4626
+ return yi;
4621
4627
  };
4622
4628
  Ko.coordArrayType.get = function() {
4623
4629
  return new Array(0).fill(null);
@@ -4670,7 +4676,7 @@ W.equals = function() {
4670
4676
  }
4671
4677
  };
4672
4678
  W.intersection = function(t, e) {
4673
- for (var n = new ho(), i = 0; i < t.length; i++)
4679
+ for (var n = new go(), i = 0; i < t.length; i++)
4674
4680
  e.intersects(t[i]) && n.add(t[i], !0);
4675
4681
  return n.toCoordinateArray();
4676
4682
  };
@@ -4683,7 +4689,7 @@ W.hasRepeatedPoints = function(t) {
4683
4689
  W.removeRepeatedPoints = function(t) {
4684
4690
  if (!W.hasRepeatedPoints(t))
4685
4691
  return t;
4686
- var e = new ho(t, !1);
4692
+ var e = new go(t, !1);
4687
4693
  return e.toCoordinateArray();
4688
4694
  };
4689
4695
  W.reverse = function(t) {
@@ -4770,21 +4776,21 @@ W.extract = function(t, e, n) {
4770
4776
  return o;
4771
4777
  };
4772
4778
  Object.defineProperties(W, Ko);
4773
- var Ji = function() {
4779
+ var Zi = function() {
4774
4780
  };
4775
- Ji.prototype.compare = function(t, e) {
4781
+ Zi.prototype.compare = function(t, e) {
4776
4782
  var n = t, i = e;
4777
4783
  return W.compare(n, i);
4778
4784
  };
4779
- Ji.prototype.interfaces_ = function() {
4780
- return [li];
4785
+ Zi.prototype.interfaces_ = function() {
4786
+ return [fi];
4781
4787
  };
4782
- Ji.prototype.getClass = function() {
4783
- return Ji;
4788
+ Zi.prototype.getClass = function() {
4789
+ return Zi;
4784
4790
  };
4785
- var di = function() {
4791
+ var yi = function() {
4786
4792
  };
4787
- di.prototype.compare = function(t, e) {
4793
+ yi.prototype.compare = function(t, e) {
4788
4794
  var n = t, i = e;
4789
4795
  if (n.length < i.length)
4790
4796
  return -1;
@@ -4795,7 +4801,7 @@ di.prototype.compare = function(t, e) {
4795
4801
  var o = W.compare(n, i), s = W.isEqualReversed(n, i);
4796
4802
  return s ? 0 : o;
4797
4803
  };
4798
- di.prototype.OLDcompare = function(t, e) {
4804
+ yi.prototype.OLDcompare = function(t, e) {
4799
4805
  var n = t, i = e;
4800
4806
  if (n.length < i.length)
4801
4807
  return -1;
@@ -4811,11 +4817,11 @@ di.prototype.OLDcompare = function(t, e) {
4811
4817
  }
4812
4818
  return 0;
4813
4819
  };
4814
- di.prototype.interfaces_ = function() {
4815
- return [li];
4820
+ yi.prototype.interfaces_ = function() {
4821
+ return [fi];
4816
4822
  };
4817
- di.prototype.getClass = function() {
4818
- return di;
4823
+ yi.prototype.getClass = function() {
4824
+ return yi;
4819
4825
  };
4820
4826
  var ri = function() {
4821
4827
  };
@@ -4835,11 +4841,11 @@ var pc = function(r) {
4835
4841
  }
4836
4842
  return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t;
4837
4843
  }(ri);
4838
- function go(r) {
4844
+ function po(r) {
4839
4845
  this.message = r || "";
4840
4846
  }
4841
- go.prototype = new Error();
4842
- go.prototype.name = "OperationNotSupported";
4847
+ po.prototype = new Error();
4848
+ po.prototype.name = "OperationNotSupported";
4843
4849
  function Qo() {
4844
4850
  }
4845
4851
  Qo.prototype = new wt();
@@ -4881,14 +4887,14 @@ var As = function(r) {
4881
4887
  }
4882
4888
  return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t.prototype.next = function() {
4883
4889
  if (this.position_ === this.hashSet_.size())
4884
- throw new Ai();
4890
+ throw new Bi();
4885
4891
  return this.hashSet_.array_[this.position_++];
4886
4892
  }, t.prototype.hasNext = function() {
4887
4893
  return this.position_ < this.hashSet_.size();
4888
4894
  }, t.prototype.remove = function() {
4889
- throw new go();
4895
+ throw new po();
4890
4896
  }, t;
4891
- }(Mi), Un = 0, pr = 1;
4897
+ }(Fi), Un = 0, pr = 1;
4892
4898
  function Ea(r) {
4893
4899
  return r === null ? Un : r.color;
4894
4900
  }
@@ -5024,13 +5030,13 @@ Ht.successor = function(r) {
5024
5030
  Ht.prototype.size = function() {
5025
5031
  return this.size_;
5026
5032
  };
5027
- var Zi = function() {
5033
+ var $i = function() {
5028
5034
  };
5029
- Zi.prototype.interfaces_ = function() {
5035
+ $i.prototype.interfaces_ = function() {
5030
5036
  return [];
5031
5037
  };
5032
- Zi.prototype.getClass = function() {
5033
- return Zi;
5038
+ $i.prototype.getClass = function() {
5039
+ return $i;
5034
5040
  };
5035
5041
  function au() {
5036
5042
  }
@@ -5064,7 +5070,7 @@ un.prototype.addAll = function(r) {
5064
5070
  return !0;
5065
5071
  };
5066
5072
  un.prototype.remove = function(r) {
5067
- throw new go();
5073
+ throw new po();
5068
5074
  };
5069
5075
  un.prototype.size = function() {
5070
5076
  return this.array_.length;
@@ -5085,14 +5091,14 @@ var Jo = function(r) {
5085
5091
  };
5086
5092
  Jo.prototype.next = function() {
5087
5093
  if (this.position_ === this.treeSet_.size())
5088
- throw new Ai();
5094
+ throw new Bi();
5089
5095
  return this.treeSet_.array_[this.position_++];
5090
5096
  };
5091
5097
  Jo.prototype.hasNext = function() {
5092
5098
  return this.position_ < this.treeSet_.size();
5093
5099
  };
5094
5100
  Jo.prototype.remove = function() {
5095
- throw new go();
5101
+ throw new po();
5096
5102
  };
5097
5103
  var mr = function() {
5098
5104
  };
@@ -5184,7 +5190,7 @@ Z.toDimensionSymbol = function(t) {
5184
5190
  throw new ft("Unknown dimension value: " + t);
5185
5191
  };
5186
5192
  Z.toDimensionValue = function(t) {
5187
- switch (Qi.toUpperCase(t)) {
5193
+ switch (Ji.toUpperCase(t)) {
5188
5194
  case Z.SYM_FALSE:
5189
5195
  return Z.FALSE;
5190
5196
  case Z.SYM_TRUE:
@@ -5394,7 +5400,7 @@ var ne = function(r) {
5394
5400
  o[s] = i._geometries[s].copy();
5395
5401
  return new t(o, this._factory);
5396
5402
  }, t.prototype.interfaces_ = function() {
5397
- return [Zi];
5403
+ return [$i];
5398
5404
  }, t.prototype.getClass = function() {
5399
5405
  return t;
5400
5406
  }, e.serialVersionUID.get = function() {
@@ -5742,19 +5748,19 @@ var dt = function(r) {
5742
5748
  }, t.prototype.getPointN = function(i) {
5743
5749
  return this.getFactory().createPoint(this._points.getCoordinate(i));
5744
5750
  }, t.prototype.interfaces_ = function() {
5745
- return [Zi];
5751
+ return [$i];
5746
5752
  }, t.prototype.getClass = function() {
5747
5753
  return t;
5748
5754
  }, e.serialVersionUID.get = function() {
5749
5755
  return 3110669828065365500;
5750
5756
  }, Object.defineProperties(t, e), t;
5751
- }(G), $i = function() {
5757
+ }(G), to = function() {
5752
5758
  };
5753
- $i.prototype.interfaces_ = function() {
5759
+ to.prototype.interfaces_ = function() {
5754
5760
  return [];
5755
5761
  };
5756
- $i.prototype.getClass = function() {
5757
- return $i;
5762
+ to.prototype.getClass = function() {
5763
+ return to;
5758
5764
  };
5759
5765
  var he = function(r) {
5760
5766
  function t(n, i) {
@@ -5840,7 +5846,7 @@ var he = function(r) {
5840
5846
  }, t.prototype.isSimple = function() {
5841
5847
  return !0;
5842
5848
  }, t.prototype.interfaces_ = function() {
5843
- return [$i];
5849
+ return [to];
5844
5850
  }, t.prototype.getClass = function() {
5845
5851
  return t;
5846
5852
  }, e.serialVersionUID.get = function() {
@@ -5969,9 +5975,9 @@ var Rt = function(r) {
5969
5975
  if (g !== 0)
5970
5976
  return g;
5971
5977
  for (var p = this.getNumInteriorRing(), v = c.getNumInteriorRing(), y = 0; y < p && y < v; ) {
5972
- var m = i.getInteriorRingN(y), E = c.getInteriorRingN(y), C = m.compareToSameClass(E, l);
5973
- if (C !== 0)
5974
- return C;
5978
+ var m = i.getInteriorRingN(y), E = c.getInteriorRingN(y), N = m.compareToSameClass(E, l);
5979
+ if (N !== 0)
5980
+ return N;
5975
5981
  y++;
5976
5982
  }
5977
5983
  return y < p ? 1 : y < v ? -1 : 0;
@@ -6028,7 +6034,7 @@ var Rt = function(r) {
6028
6034
  }, e.serialVersionUID.get = function() {
6029
6035
  return -3494792200821764600;
6030
6036
  }, Object.defineProperties(t, e), t;
6031
- }(G), vi = function(r) {
6037
+ }(G), mi = function(r) {
6032
6038
  function t() {
6033
6039
  r.apply(this, arguments);
6034
6040
  }
@@ -6063,7 +6069,7 @@ var Rt = function(r) {
6063
6069
  o[s] = i._geometries[s].copy();
6064
6070
  return new t(o, this._factory);
6065
6071
  }, t.prototype.interfaces_ = function() {
6066
- return [$i];
6072
+ return [to];
6067
6073
  }, t.prototype.getClass = function() {
6068
6074
  return t;
6069
6075
  }, e.serialVersionUID.get = function() {
@@ -6168,7 +6174,7 @@ Te.prototype.editGeometryCollection = function(t, e) {
6168
6174
  var a = n.edit(i.getGeometryN(s), e);
6169
6175
  a === null || a.isEmpty() || o.add(a);
6170
6176
  }
6171
- return i.getClass() === vi ? this._factory.createMultiPoint(o.toArray([])) : i.getClass() === Cr ? this._factory.createMultiLineString(o.toArray([])) : i.getClass() === Nn ? this._factory.createMultiPolygon(o.toArray([])) : this._factory.createGeometryCollection(o.toArray([]));
6177
+ return i.getClass() === mi ? this._factory.createMultiPoint(o.toArray([])) : i.getClass() === Cr ? this._factory.createMultiLineString(o.toArray([])) : i.getClass() === Nn ? this._factory.createMultiPolygon(o.toArray([])) : this._factory.createGeometryCollection(o.toArray([]));
6172
6178
  };
6173
6179
  Te.prototype.editPolygon = function(t, e) {
6174
6180
  var n = this, i = e.edit(t, this._factory);
@@ -6192,31 +6198,19 @@ Te.prototype.getClass = function() {
6192
6198
  Te.GeometryEditorOperation = function() {
6193
6199
  };
6194
6200
  Zo.NoOpGeometryOperation.get = function() {
6195
- return to;
6201
+ return eo;
6196
6202
  };
6197
6203
  Zo.CoordinateOperation.get = function() {
6198
- return eo;
6204
+ return no;
6199
6205
  };
6200
6206
  Zo.CoordinateSequenceOperation.get = function() {
6201
- return no;
6207
+ return ro;
6202
6208
  };
6203
6209
  Object.defineProperties(Te, Zo);
6204
- var to = function() {
6205
- };
6206
- to.prototype.edit = function(t, e) {
6207
- return t;
6208
- };
6209
- to.prototype.interfaces_ = function() {
6210
- return [Te.GeometryEditorOperation];
6211
- };
6212
- to.prototype.getClass = function() {
6213
- return to;
6214
- };
6215
6210
  var eo = function() {
6216
6211
  };
6217
6212
  eo.prototype.edit = function(t, e) {
6218
- var n = this.editCoordinates(t.getCoordinates(), t);
6219
- return n === null ? t : t instanceof wn ? e.createLinearRing(n) : t instanceof dt ? e.createLineString(n) : t instanceof he ? n.length > 0 ? e.createPoint(n[0]) : e.createPoint() : t;
6213
+ return t;
6220
6214
  };
6221
6215
  eo.prototype.interfaces_ = function() {
6222
6216
  return [Te.GeometryEditorOperation];
@@ -6227,7 +6221,8 @@ eo.prototype.getClass = function() {
6227
6221
  var no = function() {
6228
6222
  };
6229
6223
  no.prototype.edit = function(t, e) {
6230
- return t instanceof wn ? e.createLinearRing(this.edit(t.getCoordinateSequence(), t)) : t instanceof dt ? e.createLineString(this.edit(t.getCoordinateSequence(), t)) : t instanceof he ? e.createPoint(this.edit(t.getCoordinateSequence(), t)) : t;
6224
+ var n = this.editCoordinates(t.getCoordinates(), t);
6225
+ return n === null ? t : t instanceof wn ? e.createLinearRing(n) : t instanceof dt ? e.createLineString(n) : t instanceof he ? n.length > 0 ? e.createPoint(n[0]) : e.createPoint() : t;
6231
6226
  };
6232
6227
  no.prototype.interfaces_ = function() {
6233
6228
  return [Te.GeometryEditorOperation];
@@ -6235,6 +6230,17 @@ no.prototype.interfaces_ = function() {
6235
6230
  no.prototype.getClass = function() {
6236
6231
  return no;
6237
6232
  };
6233
+ var ro = function() {
6234
+ };
6235
+ ro.prototype.edit = function(t, e) {
6236
+ return t instanceof wn ? e.createLinearRing(this.edit(t.getCoordinateSequence(), t)) : t instanceof dt ? e.createLineString(this.edit(t.getCoordinateSequence(), t)) : t instanceof he ? e.createPoint(this.edit(t.getCoordinateSequence(), t)) : t;
6237
+ };
6238
+ ro.prototype.interfaces_ = function() {
6239
+ return [Te.GeometryEditorOperation];
6240
+ };
6241
+ ro.prototype.getClass = function() {
6242
+ return ro;
6243
+ };
6238
6244
  var mt = function() {
6239
6245
  var t = this;
6240
6246
  if (this._dimension = 3, this._coordinates = null, arguments.length === 1) {
@@ -6374,7 +6380,7 @@ Ln.prototype.create = function() {
6374
6380
  }
6375
6381
  };
6376
6382
  Ln.prototype.interfaces_ = function() {
6377
- return [ci, Be];
6383
+ return [hi, Be];
6378
6384
  };
6379
6385
  Ln.prototype.getClass = function() {
6380
6386
  return Ln;
@@ -6515,7 +6521,7 @@ tt.FIXED = new cn("FIXED");
6515
6521
  tt.FLOATING = new cn("FLOATING");
6516
6522
  tt.FLOATING_SINGLE = new cn("FLOATING SINGLE");
6517
6523
  var H = function r() {
6518
- this._precisionModel = new tt(), this._SRID = 0, this._coordinateSequenceFactory = r.getDefaultCoordinateSequenceFactory(), arguments.length === 0 || (arguments.length === 1 ? z(arguments[0], ci) ? this._coordinateSequenceFactory = arguments[0] : arguments[0] instanceof tt && (this._precisionModel = arguments[0]) : arguments.length === 2 ? (this._precisionModel = arguments[0], this._SRID = arguments[1]) : arguments.length === 3 && (this._precisionModel = arguments[0], this._SRID = arguments[1], this._coordinateSequenceFactory = arguments[2]));
6524
+ this._precisionModel = new tt(), this._SRID = 0, this._coordinateSequenceFactory = r.getDefaultCoordinateSequenceFactory(), arguments.length === 0 || (arguments.length === 1 ? z(arguments[0], hi) ? this._coordinateSequenceFactory = arguments[0] : arguments[0] instanceof tt && (this._precisionModel = arguments[0]) : arguments.length === 2 ? (this._precisionModel = arguments[0], this._SRID = arguments[1]) : arguments.length === 3 && (this._precisionModel = arguments[0], this._SRID = arguments[1], this._coordinateSequenceFactory = arguments[2]));
6519
6525
  }, cu = { serialVersionUID: { configurable: !0 } };
6520
6526
  H.prototype.toGeometry = function(t) {
6521
6527
  return t.isNull() ? this.createPoint(null) : t.getMinX() === t.getMaxX() && t.getMinY() === t.getMaxY() ? this.createPoint(new d(t.getMinX(), t.getMinY())) : t.getMinX() === t.getMaxX() || t.getMinY() === t.getMaxY() ? this.createLineString([new d(t.getMinX(), t.getMinY()), new d(t.getMaxX(), t.getMaxY())]) : this.createPolygon(this.createLinearRing([new d(t.getMinX(), t.getMinY()), new d(t.getMinX(), t.getMaxY()), new d(t.getMaxX(), t.getMaxY()), new d(t.getMaxX(), t.getMinY()), new d(t.getMinX(), t.getMinY())]), null);
@@ -6645,11 +6651,11 @@ H.prototype.createMultiPolygon = function() {
6645
6651
  H.prototype.createMultiPoint = function() {
6646
6652
  var t = this;
6647
6653
  if (arguments.length === 0)
6648
- return new vi(null, this);
6654
+ return new mi(null, this);
6649
6655
  if (arguments.length === 1) {
6650
6656
  if (arguments[0] instanceof Array) {
6651
6657
  var e = arguments[0];
6652
- return new vi(e, this);
6658
+ return new mi(e, this);
6653
6659
  } else if (arguments[0] instanceof Array) {
6654
6660
  var n = arguments[0];
6655
6661
  return this.createMultiPoint(n !== null ? this.getCoordinateSequenceFactory().create(n) : null);
@@ -7683,7 +7689,7 @@ hn.prototype.getClass = function() {
7683
7689
  return hn;
7684
7690
  };
7685
7691
  var rt = function() {
7686
- }, po = { NE: { configurable: !0 }, NW: { configurable: !0 }, SW: { configurable: !0 }, SE: { configurable: !0 } };
7692
+ }, vo = { NE: { configurable: !0 }, NW: { configurable: !0 }, SW: { configurable: !0 }, SE: { configurable: !0 } };
7687
7693
  rt.prototype.interfaces_ = function() {
7688
7694
  return [];
7689
7695
  };
@@ -7724,19 +7730,19 @@ rt.quadrant = function() {
7724
7730
  return i.x >= n.x ? i.y >= n.y ? rt.NE : rt.SE : i.y >= n.y ? rt.NW : rt.SW;
7725
7731
  }
7726
7732
  };
7727
- po.NE.get = function() {
7733
+ vo.NE.get = function() {
7728
7734
  return 0;
7729
7735
  };
7730
- po.NW.get = function() {
7736
+ vo.NW.get = function() {
7731
7737
  return 1;
7732
7738
  };
7733
- po.SW.get = function() {
7739
+ vo.SW.get = function() {
7734
7740
  return 2;
7735
7741
  };
7736
- po.SE.get = function() {
7742
+ vo.SE.get = function() {
7737
7743
  return 3;
7738
7744
  };
7739
- Object.defineProperties(rt, po);
7745
+ Object.defineProperties(rt, vo);
7740
7746
  var Wt = function() {
7741
7747
  if (this._edge = null, this._label = null, this._node = null, this._p0 = null, this._p1 = null, this._dx = null, this._dy = null, this._quadrant = null, arguments.length === 1) {
7742
7748
  var t = arguments[0];
@@ -7883,20 +7889,20 @@ var ws = function(r) {
7883
7889
  }, t.depthFactor = function(n, i) {
7884
7890
  return n === _.EXTERIOR && i === _.INTERIOR ? 1 : n === _.INTERIOR && i === _.EXTERIOR ? -1 : 0;
7885
7891
  }, t;
7886
- }(Wt), yi = function() {
7892
+ }(Wt), _i = function() {
7887
7893
  };
7888
- yi.prototype.createNode = function(t) {
7894
+ _i.prototype.createNode = function(t) {
7889
7895
  return new rs(t, null);
7890
7896
  };
7891
- yi.prototype.interfaces_ = function() {
7897
+ _i.prototype.interfaces_ = function() {
7892
7898
  return [];
7893
7899
  };
7894
- yi.prototype.getClass = function() {
7895
- return yi;
7900
+ _i.prototype.getClass = function() {
7901
+ return _i;
7896
7902
  };
7897
7903
  var gt = function() {
7898
7904
  if (this._edges = new b(), this._nodes = null, this._edgeEndList = new b(), arguments.length === 0)
7899
- this._nodes = new hn(new yi());
7905
+ this._nodes = new hn(new _i());
7900
7906
  else if (arguments.length === 1) {
7901
7907
  var t = arguments[0];
7902
7908
  this._nodes = new hn(t);
@@ -8115,15 +8121,15 @@ ge.prototype.interfaces_ = function() {
8115
8121
  ge.prototype.getClass = function() {
8116
8122
  return ge;
8117
8123
  };
8118
- var mi = function() {
8124
+ var Ei = function() {
8119
8125
  };
8120
- mi.prototype.getBounds = function() {
8126
+ Ei.prototype.getBounds = function() {
8121
8127
  };
8122
- mi.prototype.interfaces_ = function() {
8128
+ Ei.prototype.interfaces_ = function() {
8123
8129
  return [];
8124
8130
  };
8125
- mi.prototype.getClass = function() {
8126
- return mi;
8131
+ Ei.prototype.getClass = function() {
8132
+ return Ei;
8127
8133
  };
8128
8134
  var Xe = function() {
8129
8135
  this._bounds = null, this._item = null;
@@ -8137,7 +8143,7 @@ Xe.prototype.getBounds = function() {
8137
8143
  return this._bounds;
8138
8144
  };
8139
8145
  Xe.prototype.interfaces_ = function() {
8140
- return [mi, Be];
8146
+ return [Ei, Be];
8141
8147
  };
8142
8148
  Xe.prototype.getClass = function() {
8143
8149
  return Xe;
@@ -8230,7 +8236,7 @@ Pt.prototype.getBounds = function() {
8230
8236
  return this._bounds === null && (this._bounds = this.computeBounds()), this._bounds;
8231
8237
  };
8232
8238
  Pt.prototype.interfaces_ = function() {
8233
- return [mi, Be];
8239
+ return [Ei, Be];
8234
8240
  };
8235
8241
  Pt.prototype.getClass = function() {
8236
8242
  return Pt;
@@ -8489,15 +8495,15 @@ is.DEFAULT_NODE_CAPACITY.get = function() {
8489
8495
  };
8490
8496
  Object.defineProperties(Ot, is);
8491
8497
  var Sc = function() {
8492
- }, _i = function() {
8498
+ }, Ii = function() {
8493
8499
  };
8494
- _i.prototype.distance = function(t, e) {
8500
+ Ii.prototype.distance = function(t, e) {
8495
8501
  };
8496
- _i.prototype.interfaces_ = function() {
8502
+ Ii.prototype.interfaces_ = function() {
8497
8503
  return [];
8498
8504
  };
8499
- _i.prototype.getClass = function() {
8500
- return _i;
8505
+ Ii.prototype.getClass = function() {
8506
+ return Ii;
8501
8507
  };
8502
8508
  var gu = function(r) {
8503
8509
  function t(n) {
@@ -8570,7 +8576,7 @@ var gu = function(r) {
8570
8576
  return this.createParentBoundablesFromVerticalSlices(u, o);
8571
8577
  }, t.prototype.nearestNeighbour = function() {
8572
8578
  if (arguments.length === 1) {
8573
- if (z(arguments[0], _i)) {
8579
+ if (z(arguments[0], Ii)) {
8574
8580
  var i = arguments[0], o = new Ct(this.getRoot(), this.getRoot(), i);
8575
8581
  return this.nearestNeighbour(o);
8576
8582
  } else if (arguments[0] instanceof Ct) {
@@ -8578,7 +8584,7 @@ var gu = function(r) {
8578
8584
  return this.nearestNeighbour(s, V.POSITIVE_INFINITY);
8579
8585
  }
8580
8586
  } else if (arguments.length === 2) {
8581
- if (arguments[0] instanceof t && z(arguments[1], _i)) {
8587
+ if (arguments[0] instanceof t && z(arguments[1], Ii)) {
8582
8588
  var a = arguments[0], u = arguments[1], l = new Ct(this.getRoot(), a.getRoot(), u);
8583
8589
  return this.nearestNeighbour(l);
8584
8590
  } else if (arguments[0] instanceof Ct && typeof arguments[1] == "number") {
@@ -8592,7 +8598,7 @@ var gu = function(r) {
8592
8598
  return [g.getBoundable(0).getItem(), g.getBoundable(1).getItem()];
8593
8599
  }
8594
8600
  } else if (arguments.length === 3) {
8595
- var m = arguments[0], E = arguments[1], C = arguments[2], N = new Xe(m, E), L = new Ct(this.getRoot(), N, C);
8601
+ var m = arguments[0], E = arguments[1], N = arguments[2], C = new Xe(m, E), L = new Ct(this.getRoot(), C, N);
8596
8602
  return this.nearestNeighbour(L)[0];
8597
8603
  }
8598
8604
  }, t.prototype.interfaces_ = function() {
@@ -8612,7 +8618,7 @@ var gu = function(r) {
8612
8618
  }, e.xComparator.get = function() {
8613
8619
  return {
8614
8620
  interfaces_: function() {
8615
- return [li];
8621
+ return [fi];
8616
8622
  },
8617
8623
  compare: function(n, i) {
8618
8624
  return r.compareDoubles(t.centreX(n.getBounds()), t.centreX(i.getBounds()));
@@ -8621,7 +8627,7 @@ var gu = function(r) {
8621
8627
  }, e.yComparator.get = function() {
8622
8628
  return {
8623
8629
  interfaces_: function() {
8624
- return [li];
8630
+ return [fi];
8625
8631
  },
8626
8632
  compare: function(n, i) {
8627
8633
  return r.compareDoubles(t.centreY(n.getBounds()), t.centreY(i.getBounds()));
@@ -8726,7 +8732,7 @@ var ie = function() {
8726
8732
  this._edge = t;
8727
8733
  };
8728
8734
  ie.prototype.getSplitCoordinates = function() {
8729
- var t = this, e = new ho();
8735
+ var t = this, e = new go();
8730
8736
  this.addEndpoints();
8731
8737
  for (var n = this.iterator(), i = n.next(); n.hasNext(); ) {
8732
8738
  var o = n.next();
@@ -8861,15 +8867,15 @@ bn.prototype.interfaces_ = function() {
8861
8867
  bn.prototype.getClass = function() {
8862
8868
  return bn;
8863
8869
  };
8864
- var ro = function() {
8870
+ var io = function() {
8865
8871
  };
8866
- ro.prototype.addIntersection = function(t, e) {
8872
+ io.prototype.addIntersection = function(t, e) {
8867
8873
  };
8868
- ro.prototype.interfaces_ = function() {
8874
+ io.prototype.interfaces_ = function() {
8869
8875
  return [bn];
8870
8876
  };
8871
- ro.prototype.getClass = function() {
8872
- return ro;
8877
+ io.prototype.getClass = function() {
8878
+ return io;
8873
8879
  };
8874
8880
  var It = function() {
8875
8881
  this._nodeList = new ie(this), this._pts = null, this._data = null;
@@ -8929,7 +8935,7 @@ It.prototype.addIntersections = function(t, e, n) {
8929
8935
  i.addIntersection(t, e, n, o);
8930
8936
  };
8931
8937
  It.prototype.interfaces_ = function() {
8932
- return [ro];
8938
+ return [io];
8933
8939
  };
8934
8940
  It.prototype.getClass = function() {
8935
8941
  return It;
@@ -9073,7 +9079,7 @@ A.prototype.lineIntersection = function(t) {
9073
9079
  var e = ze.intersection(this.p0, this.p1, t.p0, t.p1);
9074
9080
  return e;
9075
9081
  } catch (n) {
9076
- if (!(n instanceof Ti))
9082
+ if (!(n instanceof Ai))
9077
9083
  throw n;
9078
9084
  } finally {
9079
9085
  }
@@ -9145,10 +9151,10 @@ pu.serialVersionUID.get = function() {
9145
9151
  return 3252005833466256400;
9146
9152
  };
9147
9153
  Object.defineProperties(A, pu);
9148
- var io = function() {
9154
+ var oo = function() {
9149
9155
  this.tempEnv1 = new M(), this.tempEnv2 = new M(), this._overlapSeg1 = new A(), this._overlapSeg2 = new A();
9150
9156
  };
9151
- io.prototype.overlap = function() {
9157
+ oo.prototype.overlap = function() {
9152
9158
  if (arguments.length !== 2) {
9153
9159
  if (arguments.length === 4) {
9154
9160
  var t = arguments[0], e = arguments[1], n = arguments[2], i = arguments[3];
@@ -9156,11 +9162,11 @@ io.prototype.overlap = function() {
9156
9162
  }
9157
9163
  }
9158
9164
  };
9159
- io.prototype.interfaces_ = function() {
9165
+ oo.prototype.interfaces_ = function() {
9160
9166
  return [];
9161
9167
  };
9162
- io.prototype.getClass = function() {
9163
- return io;
9168
+ oo.prototype.getClass = function() {
9169
+ return oo;
9164
9170
  };
9165
9171
  var pe = function() {
9166
9172
  this._pts = null, this._start = null, this._end = null, this._env = null, this._context = null, this._id = null;
@@ -9289,7 +9295,7 @@ Nr.prototype.interfaces_ = function() {
9289
9295
  Nr.prototype.getClass = function() {
9290
9296
  return Nr;
9291
9297
  };
9292
- var oo = function() {
9298
+ var so = function() {
9293
9299
  if (this._segInt = null, arguments.length !== 0) {
9294
9300
  if (arguments.length === 1) {
9295
9301
  var t = arguments[0];
@@ -9297,14 +9303,14 @@ var oo = function() {
9297
9303
  }
9298
9304
  }
9299
9305
  };
9300
- oo.prototype.setSegmentIntersector = function(t) {
9306
+ so.prototype.setSegmentIntersector = function(t) {
9301
9307
  this._segInt = t;
9302
9308
  };
9303
- oo.prototype.interfaces_ = function() {
9309
+ so.prototype.interfaces_ = function() {
9304
9310
  return [Nr];
9305
9311
  };
9306
- oo.prototype.getClass = function() {
9307
- return oo;
9312
+ so.prototype.getClass = function() {
9313
+ return so;
9308
9314
  };
9309
9315
  var Vs = function(r) {
9310
9316
  function t(n) {
@@ -9343,7 +9349,7 @@ var Vs = function(r) {
9343
9349
  }, e.SegmentOverlapAction.get = function() {
9344
9350
  return Na;
9345
9351
  }, Object.defineProperties(t, e), t;
9346
- }(oo), Na = function(r) {
9352
+ }(so), Na = function(r) {
9347
9353
  function t() {
9348
9354
  r.call(this), this._si = null;
9349
9355
  var e = arguments[0];
@@ -9360,7 +9366,7 @@ var Vs = function(r) {
9360
9366
  }, t.prototype.getClass = function() {
9361
9367
  return t;
9362
9368
  }, t;
9363
- }(io), $ = function r() {
9369
+ }(oo), $ = function r() {
9364
9370
  if (this._quadrantSegments = r.DEFAULT_QUADRANT_SEGMENTS, this._endCapStyle = r.CAP_ROUND, this._joinStyle = r.JOIN_ROUND, this._mitreLimit = r.DEFAULT_MITRE_LIMIT, this._isSingleSided = !1, this._simplifyFactor = r.DEFAULT_SIMPLIFY_FACTOR, arguments.length !== 0) {
9365
9371
  if (arguments.length === 1) {
9366
9372
  var t = arguments[0];
@@ -9450,7 +9456,7 @@ $n.DEFAULT_SIMPLIFY_FACTOR.get = function() {
9450
9456
  Object.defineProperties($, $n);
9451
9457
  var vt = function(t) {
9452
9458
  this._distanceTol = null, this._isDeleted = null, this._angleOrientation = R.COUNTERCLOCKWISE, this._inputLine = t || null;
9453
- }, vo = { INIT: { configurable: !0 }, DELETE: { configurable: !0 }, KEEP: { configurable: !0 }, NUM_PTS_TO_CHECK: { configurable: !0 } };
9459
+ }, yo = { INIT: { configurable: !0 }, DELETE: { configurable: !0 }, KEEP: { configurable: !0 }, NUM_PTS_TO_CHECK: { configurable: !0 } };
9454
9460
  vt.prototype.isDeletable = function(t, e, n, i) {
9455
9461
  var o = this._inputLine[t], s = this._inputLine[e], a = this._inputLine[n];
9456
9462
  return !this.isConcave(o, s, a) || !this.isShallow(o, s, a, i) ? !1 : this.isShallowSampled(o, s, t, n, i);
@@ -9500,7 +9506,7 @@ vt.prototype.isShallow = function(t, e, n, i) {
9500
9506
  return o < i;
9501
9507
  };
9502
9508
  vt.prototype.collapseLine = function() {
9503
- for (var t = this, e = new ho(), n = 0; n < this._inputLine.length; n++)
9509
+ for (var t = this, e = new go(), n = 0; n < this._inputLine.length; n++)
9504
9510
  t._isDeleted[n] !== vt.DELETE && e.add(t._inputLine[n]);
9505
9511
  return e.toCoordinateArray();
9506
9512
  };
@@ -9514,19 +9520,19 @@ vt.simplify = function(t, e) {
9514
9520
  var n = new vt(t);
9515
9521
  return n.simplify(e);
9516
9522
  };
9517
- vo.INIT.get = function() {
9523
+ yo.INIT.get = function() {
9518
9524
  return 0;
9519
9525
  };
9520
- vo.DELETE.get = function() {
9526
+ yo.DELETE.get = function() {
9521
9527
  return 1;
9522
9528
  };
9523
- vo.KEEP.get = function() {
9529
+ yo.KEEP.get = function() {
9524
9530
  return 1;
9525
9531
  };
9526
- vo.NUM_PTS_TO_CHECK.get = function() {
9532
+ yo.NUM_PTS_TO_CHECK.get = function() {
9527
9533
  return 10;
9528
9534
  };
9529
- Object.defineProperties(vt, vo);
9535
+ Object.defineProperties(vt, yo);
9530
9536
  var Ne = function() {
9531
9537
  this._ptList = null, this._precisionModel = null, this._minimimVertexDistance = 0, this._ptList = new b();
9532
9538
  }, du = { COORDINATE_ARRAY_TYPE: { configurable: !0 } };
@@ -9678,7 +9684,7 @@ var ct = function r() {
9678
9684
  this._maxCurveSegmentError = 0, this._filletAngleQuantum = null, this._closingSegLengthFactor = 1, this._segList = null, this._distance = 0, this._precisionModel = null, this._bufParams = null, this._li = null, this._s0 = null, this._s1 = null, this._s2 = null, this._seg0 = new A(), this._seg1 = new A(), this._offset0 = new A(), this._offset1 = new A(), this._side = 0, this._hasNarrowConcaveAngle = !1;
9679
9685
  var t = arguments[0], e = arguments[1], n = arguments[2];
9680
9686
  this._precisionModel = t, this._bufParams = e, this._li = new Dr(), this._filletAngleQuantum = Math.PI / 2 / e.getQuadrantSegments(), e.getQuadrantSegments() >= 8 && e.getJoinStyle() === $.JOIN_ROUND && (this._closingSegLengthFactor = r.MAX_CLOSING_SEG_LEN_FACTOR), this.init(n);
9681
- }, yo = { OFFSET_SEGMENT_SEPARATION_FACTOR: { configurable: !0 }, INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR: { configurable: !0 }, CURVE_VERTEX_SNAP_DISTANCE_FACTOR: { configurable: !0 }, MAX_CLOSING_SEG_LEN_FACTOR: { configurable: !0 } };
9687
+ }, mo = { OFFSET_SEGMENT_SEPARATION_FACTOR: { configurable: !0 }, INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR: { configurable: !0 }, CURVE_VERTEX_SNAP_DISTANCE_FACTOR: { configurable: !0 }, MAX_CLOSING_SEG_LEN_FACTOR: { configurable: !0 } };
9682
9688
  ct.prototype.addNextSegment = function(t, e) {
9683
9689
  if (this._s0 = this._s1, this._s1 = this._s2, this._s2 = t, this._seg0.setCoordinates(this._s0, this._s1), this.computeOffsetSegment(this._seg0, this._side, this._distance, this._offset0), this._seg1.setCoordinates(this._s1, this._s2), this.computeOffsetSegment(this._seg1, this._side, this._distance, this._offset1), this._s1.equals(this._s2))
9684
9690
  return null;
@@ -9717,7 +9723,7 @@ ct.prototype.addMitreJoin = function(t, e, n, i) {
9717
9723
  var a = i <= 0 ? 1 : s.distance(t) / Math.abs(i);
9718
9724
  a > this._bufParams.getMitreLimit() && (o = !1);
9719
9725
  } catch (u) {
9720
- if (u instanceof Ti)
9726
+ if (u instanceof Ai)
9721
9727
  s = new d(0, 0), o = !1;
9722
9728
  else
9723
9729
  throw u;
@@ -9750,8 +9756,8 @@ ct.prototype.initSideSegments = function(t, e, n) {
9750
9756
  this._s1 = t, this._s2 = e, this._side = n, this._seg1.setCoordinates(t, e), this.computeOffsetSegment(this._seg1, n, this._distance, this._offset1);
9751
9757
  };
9752
9758
  ct.prototype.addLimitedMitreJoin = function(t, e, n, i) {
9753
- var o = this._seg0.p1, s = K.angle(o, this._seg0.p0), a = K.angleBetweenOriented(this._seg0.p0, o, this._seg1.p1), u = a / 2, l = K.normalize(s + u), c = K.normalize(l + Math.PI), f = i * n, h = f * Math.abs(Math.sin(u)), g = n - h, p = o.x + f * Math.cos(c), v = o.y + f * Math.sin(c), y = new d(p, v), m = new A(o, y), E = m.pointAlongOffset(1, g), C = m.pointAlongOffset(1, -g);
9754
- this._side === S.LEFT ? (this._segList.addPt(E), this._segList.addPt(C)) : (this._segList.addPt(C), this._segList.addPt(E));
9759
+ var o = this._seg0.p1, s = K.angle(o, this._seg0.p0), a = K.angleBetweenOriented(this._seg0.p0, o, this._seg1.p1), u = a / 2, l = K.normalize(s + u), c = K.normalize(l + Math.PI), f = i * n, h = f * Math.abs(Math.sin(u)), g = n - h, p = o.x + f * Math.cos(c), v = o.y + f * Math.sin(c), y = new d(p, v), m = new A(o, y), E = m.pointAlongOffset(1, g), N = m.pointAlongOffset(1, -g);
9760
+ this._side === S.LEFT ? (this._segList.addPt(E), this._segList.addPt(N)) : (this._segList.addPt(N), this._segList.addPt(E));
9755
9761
  };
9756
9762
  ct.prototype.computeOffsetSegment = function(t, e, n, i) {
9757
9763
  var o = e === S.LEFT ? 1 : -1, s = t.p1.x - t.p0.x, a = t.p1.y - t.p0.y, u = Math.sqrt(s * s + a * a), l = o * n * s / u, c = o * n * a / u;
@@ -9809,19 +9815,19 @@ ct.prototype.interfaces_ = function() {
9809
9815
  ct.prototype.getClass = function() {
9810
9816
  return ct;
9811
9817
  };
9812
- yo.OFFSET_SEGMENT_SEPARATION_FACTOR.get = function() {
9818
+ mo.OFFSET_SEGMENT_SEPARATION_FACTOR.get = function() {
9813
9819
  return 1e-3;
9814
9820
  };
9815
- yo.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR.get = function() {
9821
+ mo.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR.get = function() {
9816
9822
  return 1e-3;
9817
9823
  };
9818
- yo.CURVE_VERTEX_SNAP_DISTANCE_FACTOR.get = function() {
9824
+ mo.CURVE_VERTEX_SNAP_DISTANCE_FACTOR.get = function() {
9819
9825
  return 1e-6;
9820
9826
  };
9821
- yo.MAX_CLOSING_SEG_LEN_FACTOR.get = function() {
9827
+ mo.MAX_CLOSING_SEG_LEN_FACTOR.get = function() {
9822
9828
  return 80;
9823
9829
  };
9824
- Object.defineProperties(ct, yo);
9830
+ Object.defineProperties(ct, mo);
9825
9831
  var ue = function() {
9826
9832
  this._distance = 0, this._precisionModel = null, this._bufParams = null;
9827
9833
  var t = arguments[0], e = arguments[1];
@@ -9969,8 +9975,8 @@ Yr.prototype.findStabbedSegments = function() {
9969
9975
  }
9970
9976
  else if (z(arguments[2], Ve) && arguments[0] instanceof d && z(arguments[1], Ve))
9971
9977
  for (var v = arguments[0], y = arguments[1], m = arguments[2], E = y.iterator(); E.hasNext(); ) {
9972
- var C = E.next();
9973
- C.isForward() && t.findStabbedSegments(v, C, m);
9978
+ var N = E.next();
9979
+ N.isForward() && t.findStabbedSegments(v, N, m);
9974
9980
  }
9975
9981
  }
9976
9982
  };
@@ -10153,7 +10159,7 @@ Me.prototype.addPolygonRing = function(t, e, n, i, o) {
10153
10159
  Me.prototype.add = function(t) {
10154
10160
  if (t.isEmpty())
10155
10161
  return null;
10156
- t instanceof Rt ? this.addPolygon(t) : t instanceof dt ? this.addLineString(t) : t instanceof he ? this.addPoint(t) : t instanceof vi ? this.addCollection(t) : t instanceof Cr ? this.addCollection(t) : t instanceof Nn ? this.addCollection(t) : t instanceof ne && this.addCollection(t);
10162
+ t instanceof Rt ? this.addPolygon(t) : t instanceof dt ? this.addLineString(t) : t instanceof he ? this.addPoint(t) : t instanceof mi ? this.addCollection(t) : t instanceof Cr ? this.addCollection(t) : t instanceof Nn ? this.addCollection(t) : t instanceof ne && this.addCollection(t);
10157
10163
  };
10158
10164
  Me.prototype.isErodedCompletely = function(t, e) {
10159
10165
  var n = t.getCoordinates();
@@ -10176,15 +10182,15 @@ Me.prototype.interfaces_ = function() {
10176
10182
  Me.prototype.getClass = function() {
10177
10183
  return Me;
10178
10184
  };
10179
- var Ei = function() {
10185
+ var Ci = function() {
10180
10186
  };
10181
- Ei.prototype.locate = function(t) {
10187
+ Ci.prototype.locate = function(t) {
10182
10188
  };
10183
- Ei.prototype.interfaces_ = function() {
10189
+ Ci.prototype.interfaces_ = function() {
10184
10190
  return [];
10185
10191
  };
10186
- Ei.prototype.getClass = function() {
10187
- return Ei;
10192
+ Ci.prototype.getClass = function() {
10193
+ return Ci;
10188
10194
  };
10189
10195
  var xn = function() {
10190
10196
  this._parent = null, this._atStart = null, this._max = null, this._index = null, this._subcollectionIterator = null;
@@ -10200,7 +10206,7 @@ xn.prototype.next = function() {
10200
10206
  this._subcollectionIterator = null;
10201
10207
  }
10202
10208
  if (this._index >= this._max)
10203
- throw new Ai();
10209
+ throw new Bi();
10204
10210
  var t = this._parent.getGeometryN(this._index++);
10205
10211
  return t instanceof ne ? (this._subcollectionIterator = new xn(t), this._subcollectionIterator.next()) : t;
10206
10212
  };
@@ -10218,7 +10224,7 @@ xn.prototype.hasNext = function() {
10218
10224
  return !(this._index >= this._max);
10219
10225
  };
10220
10226
  xn.prototype.interfaces_ = function() {
10221
- return [Mi];
10227
+ return [Fi];
10222
10228
  };
10223
10229
  xn.prototype.getClass = function() {
10224
10230
  return xn;
@@ -10235,7 +10241,7 @@ _e.prototype.locate = function(t) {
10235
10241
  return _e.locate(t, this._geom);
10236
10242
  };
10237
10243
  _e.prototype.interfaces_ = function() {
10238
- return [Ei];
10244
+ return [Ci];
10239
10245
  };
10240
10246
  _e.prototype.getClass = function() {
10241
10247
  return _e;
@@ -10562,7 +10568,7 @@ var wc = function(r) {
10562
10568
  }, t.prototype.getClass = function() {
10563
10569
  return t;
10564
10570
  }, t;
10565
- }(yi), sr = function r() {
10571
+ }(_i), sr = function r() {
10566
10572
  this._pts = null, this._orientation = null;
10567
10573
  var t = arguments[0];
10568
10574
  this._pts = t, this._orientation = r.orientation(t);
@@ -11248,9 +11254,9 @@ pn.prototype.checkInteriorIntersections = function() {
11248
11254
  var h = arguments[0], g = arguments[1], p = arguments[2], v = arguments[3];
11249
11255
  if (h === p && g === v)
11250
11256
  return null;
11251
- var y = h.getCoordinates()[g], m = h.getCoordinates()[g + 1], E = p.getCoordinates()[v], C = p.getCoordinates()[v + 1];
11252
- if (this._li.computeIntersection(y, m, E, C), this._li.hasIntersection() && (this._li.isProper() || this.hasInteriorIntersection(this._li, y, m) || this.hasInteriorIntersection(this._li, E, C)))
11253
- throw new Hn("found non-noded intersection at " + y + "-" + m + " and " + E + "-" + C);
11257
+ var y = h.getCoordinates()[g], m = h.getCoordinates()[g + 1], E = p.getCoordinates()[v], N = p.getCoordinates()[v + 1];
11258
+ if (this._li.computeIntersection(y, m, E, N), this._li.hasIntersection() && (this._li.isProper() || this.hasInteriorIntersection(this._li, y, m) || this.hasInteriorIntersection(this._li, E, N)))
11259
+ throw new Hn("found non-noded intersection at " + y + "-" + m + " and " + E + "-" + N);
11254
11260
  }
11255
11261
  };
11256
11262
  pn.prototype.checkValid = function() {
@@ -11347,10 +11353,10 @@ Eu.SAFE_ENV_EXPANSION_FACTOR.get = function() {
11347
11353
  return 0.75;
11348
11354
  };
11349
11355
  Object.defineProperties(le, Eu);
11350
- var so = function() {
11356
+ var ao = function() {
11351
11357
  this.tempEnv1 = new M(), this.selectedSegment = new A();
11352
11358
  };
11353
- so.prototype.select = function() {
11359
+ ao.prototype.select = function() {
11354
11360
  if (arguments.length !== 1) {
11355
11361
  if (arguments.length === 2) {
11356
11362
  var t = arguments[0], e = arguments[1];
@@ -11358,18 +11364,18 @@ so.prototype.select = function() {
11358
11364
  }
11359
11365
  }
11360
11366
  };
11361
- so.prototype.interfaces_ = function() {
11367
+ ao.prototype.interfaces_ = function() {
11362
11368
  return [];
11363
11369
  };
11364
- so.prototype.getClass = function() {
11365
- return so;
11370
+ ao.prototype.getClass = function() {
11371
+ return ao;
11366
11372
  };
11367
- var Ii = function() {
11373
+ var Ni = function() {
11368
11374
  this._index = null;
11369
11375
  var t = arguments[0];
11370
11376
  this._index = t;
11371
11377
  }, Iu = { HotPixelSnapAction: { configurable: !0 } };
11372
- Ii.prototype.snap = function() {
11378
+ Ni.prototype.snap = function() {
11373
11379
  if (arguments.length === 1) {
11374
11380
  var t = arguments[0];
11375
11381
  return this.snap(t, null, -1);
@@ -11386,16 +11392,16 @@ Ii.prototype.snap = function() {
11386
11392
  }), s.isNodeAdded();
11387
11393
  }
11388
11394
  };
11389
- Ii.prototype.interfaces_ = function() {
11395
+ Ni.prototype.interfaces_ = function() {
11390
11396
  return [];
11391
11397
  };
11392
- Ii.prototype.getClass = function() {
11393
- return Ii;
11398
+ Ni.prototype.getClass = function() {
11399
+ return Ni;
11394
11400
  };
11395
11401
  Iu.HotPixelSnapAction.get = function() {
11396
11402
  return Cu;
11397
11403
  };
11398
- Object.defineProperties(Ii, Iu);
11404
+ Object.defineProperties(Ni, Iu);
11399
11405
  var Cu = function(r) {
11400
11406
  function t() {
11401
11407
  r.call(this), this._hotPixel = null, this._parentEdge = null, this._hotPixelVertexIndex = null, this._isNodeAdded = !1;
@@ -11417,7 +11423,7 @@ var Cu = function(r) {
11417
11423
  }, t.prototype.getClass = function() {
11418
11424
  return t;
11419
11425
  }, t;
11420
- }(so), Hr = function() {
11426
+ }(ao), Hr = function() {
11421
11427
  this._li = null, this._interiorIntersections = null;
11422
11428
  var t = arguments[0];
11423
11429
  this._li = t, this._interiorIntersections = new b();
@@ -11487,7 +11493,7 @@ Rn.prototype.computeVertexSnaps = function() {
11487
11493
  }
11488
11494
  };
11489
11495
  Rn.prototype.computeNodes = function(t) {
11490
- this._nodedSegStrings = t, this._noder = new Vs(), this._pointSnapper = new Ii(this._noder.getIndex()), this.snapRound(t, this._li);
11496
+ this._nodedSegStrings = t, this._noder = new Vs(), this._pointSnapper = new Ni(this._noder.getIndex()), this.snapRound(t, this._li);
11491
11497
  };
11492
11498
  Rn.prototype.computeIntersectionSnaps = function(t) {
11493
11499
  for (var e = this, n = t.iterator(); n.hasNext(); ) {
@@ -11509,7 +11515,7 @@ var Bt = function() {
11509
11515
  var e = arguments[0], n = arguments[1];
11510
11516
  this._argGeom = e, this._bufParams = n;
11511
11517
  }
11512
- }, Fi = { CAP_ROUND: { configurable: !0 }, CAP_BUTT: { configurable: !0 }, CAP_FLAT: { configurable: !0 }, CAP_SQUARE: { configurable: !0 }, MAX_PRECISION_DIGITS: { configurable: !0 } };
11518
+ }, Gi = { CAP_ROUND: { configurable: !0 }, CAP_BUTT: { configurable: !0 }, CAP_FLAT: { configurable: !0 }, CAP_SQUARE: { configurable: !0 }, MAX_PRECISION_DIGITS: { configurable: !0 } };
11513
11519
  Bt.prototype.bufferFixedPrecision = function(t) {
11514
11520
  var e = new ar(new Rn(new tt(1)), t.getScale()), n = new ee(this._bufParams);
11515
11521
  n.setWorkingPrecisionModel(t), n.setNoder(e), this._resultGeometry = n.buffer(this._argGeom, this._distance);
@@ -11584,32 +11590,32 @@ Bt.bufferOp = function() {
11584
11590
  return p;
11585
11591
  }
11586
11592
  } else if (arguments.length === 4) {
11587
- var v = arguments[0], y = arguments[1], m = arguments[2], E = arguments[3], C = new Bt(v);
11588
- C.setQuadrantSegments(m), C.setEndCapStyle(E);
11589
- var N = C.getResultGeometry(y);
11590
- return N;
11593
+ var v = arguments[0], y = arguments[1], m = arguments[2], E = arguments[3], N = new Bt(v);
11594
+ N.setQuadrantSegments(m), N.setEndCapStyle(E);
11595
+ var C = N.getResultGeometry(y);
11596
+ return C;
11591
11597
  }
11592
11598
  };
11593
11599
  Bt.precisionScaleFactor = function(t, e, n) {
11594
11600
  var i = t.getEnvelopeInternal(), o = Ie.max(Math.abs(i.getMaxX()), Math.abs(i.getMaxY()), Math.abs(i.getMinX()), Math.abs(i.getMinY())), s = e > 0 ? e : 0, a = o + 2 * s, u = Math.trunc(Math.log(a) / Math.log(10) + 1), l = n - u, c = Math.pow(10, l);
11595
11601
  return c;
11596
11602
  };
11597
- Fi.CAP_ROUND.get = function() {
11603
+ Gi.CAP_ROUND.get = function() {
11598
11604
  return $.CAP_ROUND;
11599
11605
  };
11600
- Fi.CAP_BUTT.get = function() {
11606
+ Gi.CAP_BUTT.get = function() {
11601
11607
  return $.CAP_FLAT;
11602
11608
  };
11603
- Fi.CAP_FLAT.get = function() {
11609
+ Gi.CAP_FLAT.get = function() {
11604
11610
  return $.CAP_FLAT;
11605
11611
  };
11606
- Fi.CAP_SQUARE.get = function() {
11612
+ Gi.CAP_SQUARE.get = function() {
11607
11613
  return $.CAP_SQUARE;
11608
11614
  };
11609
- Fi.MAX_PRECISION_DIGITS.get = function() {
11615
+ Gi.MAX_PRECISION_DIGITS.get = function() {
11610
11616
  return 12;
11611
11617
  };
11612
- Object.defineProperties(Bt, Fi);
11618
+ Object.defineProperties(Bt, Gi);
11613
11619
  var Zt = function() {
11614
11620
  this._pt = [new d(), new d()], this._distance = V.NaN, this._isNull = !0;
11615
11621
  };
@@ -11697,8 +11703,8 @@ In.computeDistance = function() {
11697
11703
  else
11698
11704
  p.setMinimum(h.getCoordinate(), g);
11699
11705
  } else if (arguments[2] instanceof Zt && arguments[0] instanceof A && arguments[1] instanceof d) {
11700
- var E = arguments[0], C = arguments[1], N = arguments[2], L = E.closestPoint(C);
11701
- N.setMinimum(L, C);
11706
+ var E = arguments[0], N = arguments[1], C = arguments[2], L = E.closestPoint(N);
11707
+ C.setMinimum(L, N);
11702
11708
  }
11703
11709
  };
11704
11710
  var Lr = function(t) {
@@ -12099,7 +12105,7 @@ zt.prototype.computeMinDistance = function() {
12099
12105
  var E = R.distanceLineLine(p[y], p[y + 1], v[m], v[m + 1]);
12100
12106
  if (E < t._minDistance) {
12101
12107
  t._minDistance = E;
12102
- var C = new A(p[y], p[y + 1]), N = new A(v[m], v[m + 1]), L = C.closestPoints(N);
12108
+ var N = new A(p[y], p[y + 1]), C = new A(v[m], v[m + 1]), L = N.closestPoints(C);
12103
12109
  g[0] = new $t(f, y, L[0]), g[1] = new $t(h, m, L[1]);
12104
12110
  }
12105
12111
  if (t._minDistance <= t._terminateDistance)
@@ -12237,8 +12243,8 @@ nn.computeDistance = function() {
12237
12243
  else
12238
12244
  p.setMinimum(h.getCoordinate(), g);
12239
12245
  } else if (arguments[2] instanceof Yt && arguments[0] instanceof A && arguments[1] instanceof d) {
12240
- var E = arguments[0], C = arguments[1], N = arguments[2], L = E.closestPoint(C);
12241
- N.setMinimum(L, C);
12246
+ var E = arguments[0], N = arguments[1], C = arguments[2], L = E.closestPoint(N);
12247
+ C.setMinimum(L, N);
12242
12248
  }
12243
12249
  };
12244
12250
  var Oe = function() {
@@ -12812,7 +12818,7 @@ ce.prototype.transformGeometryCollection = function(t, e) {
12812
12818
  ce.prototype.transform = function(t) {
12813
12819
  if (this._inputGeom = t, this._factory = t.getFactory(), t instanceof he)
12814
12820
  return this.transformPoint(t, null);
12815
- if (t instanceof vi)
12821
+ if (t instanceof mi)
12816
12822
  return this.transformMultiPoint(t, null);
12817
12823
  if (t instanceof wn)
12818
12824
  return this.transformLinearRing(t, null);
@@ -12866,7 +12872,7 @@ On.prototype.findSnapForVertex = function(t, e) {
12866
12872
  return null;
12867
12873
  };
12868
12874
  On.prototype.snapTo = function(t) {
12869
- var e = new ho(this._srcPts);
12875
+ var e = new go(this._srcPts);
12870
12876
  this.snapVertices(e, t), this.snapSegments(e, t);
12871
12877
  var n = e.toCoordinateArray();
12872
12878
  return n;
@@ -13199,19 +13205,19 @@ oe.symDifference = function(t, e) {
13199
13205
  oe.difference = function(t, e) {
13200
13206
  return oe.overlayOp(t, e, U.DIFFERENCE);
13201
13207
  };
13202
- var ao = function() {
13208
+ var uo = function() {
13203
13209
  this.mce = null, this.chainIndex = null;
13204
13210
  var t = arguments[0], e = arguments[1];
13205
13211
  this.mce = t, this.chainIndex = e;
13206
13212
  };
13207
- ao.prototype.computeIntersections = function(t, e) {
13213
+ uo.prototype.computeIntersections = function(t, e) {
13208
13214
  this.mce.computeIntersectsForChain(this.chainIndex, t.mce, t.chainIndex, e);
13209
13215
  };
13210
- ao.prototype.interfaces_ = function() {
13216
+ uo.prototype.interfaces_ = function() {
13211
13217
  return [];
13212
13218
  };
13213
- ao.prototype.getClass = function() {
13214
- return ao;
13219
+ uo.prototype.getClass = function() {
13220
+ return uo;
13215
13221
  };
13216
13222
  var de = function r() {
13217
13223
  if (this._label = null, this._xValue = null, this._eventType = null, this._insertEvent = null, this._deleteEventIndex = null, this._obj = null, arguments.length === 2) {
@@ -13365,7 +13371,7 @@ var Lc = function(r) {
13365
13371
  }
13366
13372
  }, t.prototype.addEdge = function(n, i) {
13367
13373
  for (var o = this, s = n.getMonotoneChainEdge(), a = s.getStartIndexes(), u = 0; u < a.length - 1; u++) {
13368
- var l = new ao(s, u), c = new de(i, s.getMinX(u), l);
13374
+ var l = new uo(s, u), c = new de(i, s.getMinX(u), l);
13369
13375
  o.events.add(c), o.events.add(new de(s.getMaxX(u), c));
13370
13376
  }
13371
13377
  }, t.prototype.processOverlaps = function(n, i, o, s) {
@@ -13415,20 +13421,20 @@ Dn.prototype.getClass = function() {
13415
13421
  return Dn;
13416
13422
  };
13417
13423
  wu.NodeComparator.get = function() {
13418
- return uo;
13424
+ return lo;
13419
13425
  };
13420
13426
  Object.defineProperties(Dn, wu);
13421
- var uo = function() {
13427
+ var lo = function() {
13422
13428
  };
13423
- uo.prototype.compare = function(t, e) {
13429
+ lo.prototype.compare = function(t, e) {
13424
13430
  var n = t, i = e, o = (n._min + n._max) / 2, s = (i._min + i._max) / 2;
13425
13431
  return o < s ? -1 : o > s ? 1 : 0;
13426
13432
  };
13427
- uo.prototype.interfaces_ = function() {
13428
- return [li];
13433
+ lo.prototype.interfaces_ = function() {
13434
+ return [fi];
13429
13435
  };
13430
- uo.prototype.getClass = function() {
13431
- return uo;
13436
+ lo.prototype.getClass = function() {
13437
+ return lo;
13432
13438
  };
13433
13439
  var bc = function(r) {
13434
13440
  function t() {
@@ -13513,59 +13519,59 @@ Tn.prototype.interfaces_ = function() {
13513
13519
  Tn.prototype.getClass = function() {
13514
13520
  return Tn;
13515
13521
  };
13516
- var Ci = function() {
13522
+ var xi = function() {
13517
13523
  this._items = new b();
13518
13524
  };
13519
- Ci.prototype.visitItem = function(t) {
13525
+ xi.prototype.visitItem = function(t) {
13520
13526
  this._items.add(t);
13521
13527
  };
13522
- Ci.prototype.getItems = function() {
13528
+ xi.prototype.getItems = function() {
13523
13529
  return this._items;
13524
13530
  };
13525
- Ci.prototype.interfaces_ = function() {
13531
+ xi.prototype.interfaces_ = function() {
13526
13532
  return [ir];
13527
13533
  };
13528
- Ci.prototype.getClass = function() {
13529
- return Ci;
13534
+ xi.prototype.getClass = function() {
13535
+ return xi;
13530
13536
  };
13531
- var Ni = function() {
13537
+ var Si = function() {
13532
13538
  this._index = null;
13533
13539
  var t = arguments[0];
13534
13540
  if (!z(t, rr))
13535
13541
  throw new ft("Argument must be Polygonal");
13536
13542
  this._index = new Pr(t);
13537
13543
  }, js = { SegmentVisitor: { configurable: !0 }, IntervalIndexedGeometry: { configurable: !0 } };
13538
- Ni.prototype.locate = function(t) {
13539
- var e = new on(t), n = new xi(e);
13544
+ Si.prototype.locate = function(t) {
13545
+ var e = new on(t), n = new wi(e);
13540
13546
  return this._index.query(t.y, t.y, n), e.getLocation();
13541
13547
  };
13542
- Ni.prototype.interfaces_ = function() {
13543
- return [Ei];
13548
+ Si.prototype.interfaces_ = function() {
13549
+ return [Ci];
13544
13550
  };
13545
- Ni.prototype.getClass = function() {
13546
- return Ni;
13551
+ Si.prototype.getClass = function() {
13552
+ return Si;
13547
13553
  };
13548
13554
  js.SegmentVisitor.get = function() {
13549
- return xi;
13555
+ return wi;
13550
13556
  };
13551
13557
  js.IntervalIndexedGeometry.get = function() {
13552
13558
  return Pr;
13553
13559
  };
13554
- Object.defineProperties(Ni, js);
13555
- var xi = function() {
13560
+ Object.defineProperties(Si, js);
13561
+ var wi = function() {
13556
13562
  this._counter = null;
13557
13563
  var t = arguments[0];
13558
13564
  this._counter = t;
13559
13565
  };
13560
- xi.prototype.visitItem = function(t) {
13566
+ wi.prototype.visitItem = function(t) {
13561
13567
  var e = t;
13562
13568
  this._counter.countSegment(e.getCoordinate(0), e.getCoordinate(1));
13563
13569
  };
13564
- xi.prototype.interfaces_ = function() {
13570
+ wi.prototype.interfaces_ = function() {
13565
13571
  return [ir];
13566
13572
  };
13567
- xi.prototype.getClass = function() {
13568
- return xi;
13573
+ wi.prototype.getClass = function() {
13574
+ return wi;
13569
13575
  };
13570
13576
  var Pr = function() {
13571
13577
  this._index = new Tn();
@@ -13586,7 +13592,7 @@ Pr.prototype.addLine = function(t) {
13586
13592
  };
13587
13593
  Pr.prototype.query = function() {
13588
13594
  if (arguments.length === 2) {
13589
- var t = arguments[0], e = arguments[1], n = new Ci();
13595
+ var t = arguments[0], e = arguments[1], n = new xi();
13590
13596
  return this._index.query(t, e, n), n.getItems();
13591
13597
  } else if (arguments.length === 3) {
13592
13598
  var i = arguments[0], o = arguments[1], s = arguments[2];
@@ -13599,7 +13605,7 @@ Pr.prototype.interfaces_ = function() {
13599
13605
  Pr.prototype.getClass = function() {
13600
13606
  return Pr;
13601
13607
  };
13602
- var zi = function(r) {
13608
+ var Ui = function(r) {
13603
13609
  function t() {
13604
13610
  if (r.call(this), this._parentGeom = null, this._lineEdgeMap = new lu(), this._boundaryNodeRule = null, this._useBoundaryDeterminationRule = !0, this._argIndex = null, this._boundaryNodes = null, this._hasTooFewPoints = !1, this._invalidPoint = null, this._areaPtLocator = null, this._ptLocator = new We(), arguments.length === 2) {
13605
13611
  var e = arguments[0], n = arguments[1], i = De.OGC_SFS_BOUNDARY_RULE;
@@ -13711,7 +13717,7 @@ var zi = function(r) {
13711
13717
  this.addLineString(n);
13712
13718
  else if (n instanceof he)
13713
13719
  this.addPoint(n);
13714
- else if (n instanceof vi)
13720
+ else if (n instanceof mi)
13715
13721
  this.addCollection(n);
13716
13722
  else if (n instanceof Cr)
13717
13723
  this.addCollection(n);
@@ -13729,7 +13735,7 @@ var zi = function(r) {
13729
13735
  i.add(s);
13730
13736
  }
13731
13737
  }, t.prototype.locate = function(n) {
13732
- return z(this._parentGeom, rr) && this._parentGeom.getNumGeometries() > 50 ? (this._areaPtLocator === null && (this._areaPtLocator = new Ni(this._parentGeom)), this._areaPtLocator.locate(n)) : this._ptLocator.locate(n, this._parentGeom);
13738
+ return z(this._parentGeom, rr) && this._parentGeom.getNumGeometries() > 50 ? (this._areaPtLocator === null && (this._areaPtLocator = new Si(this._parentGeom)), this._areaPtLocator.locate(n)) : this._ptLocator.locate(n, this._parentGeom);
13733
13739
  }, t.prototype.findEdge = function() {
13734
13740
  if (arguments.length === 1) {
13735
13741
  var n = arguments[0];
@@ -13743,29 +13749,29 @@ var zi = function(r) {
13743
13749
  }, t.determineBoundary = function(n, i) {
13744
13750
  return n.isInBoundary(i) ? _.BOUNDARY : _.INTERIOR;
13745
13751
  }, t;
13746
- }(gt), Si = function() {
13752
+ }(gt), Li = function() {
13747
13753
  if (this._li = new Dr(), this._resultPrecisionModel = null, this._arg = null, arguments.length === 1) {
13748
13754
  var t = arguments[0];
13749
- this.setComputationPrecision(t.getPrecisionModel()), this._arg = new Array(1).fill(null), this._arg[0] = new zi(0, t);
13755
+ this.setComputationPrecision(t.getPrecisionModel()), this._arg = new Array(1).fill(null), this._arg[0] = new Ui(0, t);
13750
13756
  } else if (arguments.length === 2) {
13751
13757
  var e = arguments[0], n = arguments[1], i = De.OGC_SFS_BOUNDARY_RULE;
13752
- e.getPrecisionModel().compareTo(n.getPrecisionModel()) >= 0 ? this.setComputationPrecision(e.getPrecisionModel()) : this.setComputationPrecision(n.getPrecisionModel()), this._arg = new Array(2).fill(null), this._arg[0] = new zi(0, e, i), this._arg[1] = new zi(1, n, i);
13758
+ e.getPrecisionModel().compareTo(n.getPrecisionModel()) >= 0 ? this.setComputationPrecision(e.getPrecisionModel()) : this.setComputationPrecision(n.getPrecisionModel()), this._arg = new Array(2).fill(null), this._arg[0] = new Ui(0, e, i), this._arg[1] = new Ui(1, n, i);
13753
13759
  } else if (arguments.length === 3) {
13754
13760
  var o = arguments[0], s = arguments[1], a = arguments[2];
13755
- o.getPrecisionModel().compareTo(s.getPrecisionModel()) >= 0 ? this.setComputationPrecision(o.getPrecisionModel()) : this.setComputationPrecision(s.getPrecisionModel()), this._arg = new Array(2).fill(null), this._arg[0] = new zi(0, o, a), this._arg[1] = new zi(1, s, a);
13761
+ o.getPrecisionModel().compareTo(s.getPrecisionModel()) >= 0 ? this.setComputationPrecision(o.getPrecisionModel()) : this.setComputationPrecision(s.getPrecisionModel()), this._arg = new Array(2).fill(null), this._arg[0] = new Ui(0, o, a), this._arg[1] = new Ui(1, s, a);
13756
13762
  }
13757
13763
  };
13758
- Si.prototype.getArgGeometry = function(t) {
13764
+ Li.prototype.getArgGeometry = function(t) {
13759
13765
  return this._arg[t].getGeometry();
13760
13766
  };
13761
- Si.prototype.setComputationPrecision = function(t) {
13767
+ Li.prototype.setComputationPrecision = function(t) {
13762
13768
  this._resultPrecisionModel = t, this._li.setPrecisionModel(this._resultPrecisionModel);
13763
13769
  };
13764
- Si.prototype.interfaces_ = function() {
13770
+ Li.prototype.interfaces_ = function() {
13765
13771
  return [];
13766
13772
  };
13767
- Si.prototype.getClass = function() {
13768
- return Si;
13773
+ Li.prototype.getClass = function() {
13774
+ return Li;
13769
13775
  };
13770
13776
  var _r = function() {
13771
13777
  };
@@ -13898,7 +13904,7 @@ var U = function(r) {
13898
13904
  }, t.prototype.getClass = function() {
13899
13905
  return t;
13900
13906
  }, t;
13901
- }(Si);
13907
+ }(Li);
13902
13908
  U.overlayOp = function(r, t, e) {
13903
13909
  var n = new U(r, t), i = n.getResultGeometry(e);
13904
13910
  return i;
@@ -14011,7 +14017,7 @@ nr.prototype.getLocation = function(t) {
14011
14017
  return this.isWithinToleranceOfBoundary(t) ? _.BOUNDARY : this._ptLocator.locate(t, this._g);
14012
14018
  };
14013
14019
  nr.prototype.extractLinework = function(t) {
14014
- var e = new wi();
14020
+ var e = new bi();
14015
14021
  t.apply(e);
14016
14022
  var n = e.getLinework(), i = H.toLineStringArray(n);
14017
14023
  return t.getFactory().createMultiLineString(i);
@@ -14022,13 +14028,13 @@ nr.prototype.interfaces_ = function() {
14022
14028
  nr.prototype.getClass = function() {
14023
14029
  return nr;
14024
14030
  };
14025
- var wi = function() {
14031
+ var bi = function() {
14026
14032
  this._linework = null, this._linework = new b();
14027
14033
  };
14028
- wi.prototype.getLinework = function() {
14034
+ bi.prototype.getLinework = function() {
14029
14035
  return this._linework;
14030
14036
  };
14031
- wi.prototype.filter = function(t) {
14037
+ bi.prototype.filter = function(t) {
14032
14038
  var e = this;
14033
14039
  if (t instanceof Rt) {
14034
14040
  var n = t;
@@ -14037,11 +14043,11 @@ wi.prototype.filter = function(t) {
14037
14043
  e._linework.add(n.getInteriorRingN(i));
14038
14044
  }
14039
14045
  };
14040
- wi.prototype.interfaces_ = function() {
14046
+ bi.prototype.interfaces_ = function() {
14041
14047
  return [ln];
14042
14048
  };
14043
- wi.prototype.getClass = function() {
14044
- return wi;
14049
+ bi.prototype.getClass = function() {
14050
+ return bi;
14045
14051
  };
14046
14052
  var Rr = function() {
14047
14053
  this._g = null, this._doLeft = !0, this._doRight = !0;
@@ -14347,14 +14353,14 @@ function xa(r, t, e) {
14347
14353
  var n = r.s = t + e, i = n - t, o = n - i;
14348
14354
  r.t = t - o + (e - i);
14349
14355
  }
14350
- var pt = 1e-6, ot = Math.PI, Xn = ot / 2, Sa = ot / 4, Jn = ot * 2, dr = 180 / ot, tn = ot / 180, te = Math.abs, Rc = Math.atan, Li = Math.atan2, Lt = Math.cos, bt = Math.sin, Bi = Math.sqrt;
14356
+ var pt = 1e-6, ot = Math.PI, Xn = ot / 2, Sa = ot / 4, Jn = ot * 2, dr = 180 / ot, tn = ot / 180, te = Math.abs, Rc = Math.atan, Pi = Math.atan2, Lt = Math.cos, bt = Math.sin, ki = Math.sqrt;
14351
14357
  function Pu(r) {
14352
14358
  return r > 1 ? 0 : r < -1 ? ot : Math.acos(r);
14353
14359
  }
14354
14360
  function $r(r) {
14355
14361
  return r > 1 ? Xn : r < -1 ? -Xn : Math.asin(r);
14356
14362
  }
14357
- function Ui() {
14363
+ function qi() {
14358
14364
  }
14359
14365
  function Uo(r, t) {
14360
14366
  r && La.hasOwnProperty(r.type) && La[r.type](r, t);
@@ -14415,9 +14421,9 @@ function Oc(r, t) {
14415
14421
  Tr();
14416
14422
  Tr();
14417
14423
  function bs(r) {
14418
- return [Li(r[1], r[0]), $r(r[2])];
14424
+ return [Pi(r[1], r[0]), $r(r[2])];
14419
14425
  }
14420
- function bi(r) {
14426
+ function Ri(r) {
14421
14427
  var t = r[0], e = r[1], n = Lt(e);
14422
14428
  return [n * Lt(t), n * bt(t), bt(e)];
14423
14429
  }
@@ -14434,7 +14440,7 @@ function xo(r, t) {
14434
14440
  return [r[0] * t, r[1] * t, r[2] * t];
14435
14441
  }
14436
14442
  function Ps(r) {
14437
- var t = Bi(r[0] * r[0] + r[1] * r[1] + r[2] * r[2]);
14443
+ var t = ki(r[0] * r[0] + r[1] * r[1] + r[2] * r[2]);
14438
14444
  r[0] /= t, r[1] /= t, r[2] /= t;
14439
14445
  }
14440
14446
  Tr();
@@ -14467,14 +14473,14 @@ function Oa(r, t) {
14467
14473
  function s(a, u) {
14468
14474
  var l = Lt(u), c = Lt(a) * l, f = bt(a) * l, h = bt(u), g = h * e + c * n;
14469
14475
  return [
14470
- Li(f * i - g * o, c * e - h * n),
14476
+ Pi(f * i - g * o, c * e - h * n),
14471
14477
  $r(g * i + f * o)
14472
14478
  ];
14473
14479
  }
14474
14480
  return s.invert = function(a, u) {
14475
14481
  var l = Lt(u), c = Lt(a) * l, f = bt(a) * l, h = bt(u), g = h * i - f * o;
14476
14482
  return [
14477
- Li(f * i + h * o, c * e + g * n),
14483
+ Pi(f * i + h * o, c * e + g * n),
14478
14484
  $r(g * e - c * n)
14479
14485
  ];
14480
14486
  }, s;
@@ -14488,7 +14494,7 @@ function Tc(r, t, e, n, i, o) {
14488
14494
  }
14489
14495
  }
14490
14496
  function Da(r, t) {
14491
- t = bi(t), t[0] -= r, Ps(t);
14497
+ t = Ri(t), t[0] -= r, Ps(t);
14492
14498
  var e = Pu(-t[1]);
14493
14499
  return ((-t[2] < 0 ? -e : e) + Jn - pt) % Jn;
14494
14500
  }
@@ -14501,7 +14507,7 @@ function Ou() {
14501
14507
  lineStart: function() {
14502
14508
  r.push(t = []);
14503
14509
  },
14504
- lineEnd: Ui,
14510
+ lineEnd: qi,
14505
14511
  rejoin: function() {
14506
14512
  r.length > 1 && r.push(r.pop().concat(r.shift()));
14507
14513
  },
@@ -14650,7 +14656,7 @@ function Mu(r) {
14650
14656
  o[--i] = s[e];
14651
14657
  return o;
14652
14658
  }
14653
- var qi = 1e9, wo = -qi;
14659
+ var Xi = 1e9, wo = -Xi;
14654
14660
  function Bc(r, t, e, n) {
14655
14661
  function i(l, c) {
14656
14662
  return r <= l && l <= e && t <= c && c <= n;
@@ -14675,7 +14681,7 @@ function Bc(r, t, e, n) {
14675
14681
  return f !== h ? f - h : f === 0 ? c[1] - l[1] : f === 1 ? l[0] - c[0] : f === 2 ? l[1] - c[1] : c[0] - l[0];
14676
14682
  }
14677
14683
  return function(l) {
14678
- var c = l, f = Ou(), h, g, p, v, y, m, E, C, N, L, w, D = {
14684
+ var c = l, f = Ou(), h, g, p, v, y, m, E, N, C, L, w, D = {
14679
14685
  point: T,
14680
14686
  lineStart: O,
14681
14687
  lineEnd: Y,
@@ -14699,22 +14705,22 @@ function Bc(r, t, e, n) {
14699
14705
  (ut || yt) && (l.polygonStart(), ut && (l.lineStart(), o(null, null, 1, l), l.lineEnd()), yt && Du(h, a, X, o, l), l.polygonEnd()), c = l, h = g = p = null;
14700
14706
  }
14701
14707
  function O() {
14702
- D.point = P, g && g.push(p = []), L = !0, N = !1, E = C = NaN;
14708
+ D.point = P, g && g.push(p = []), L = !0, C = !1, E = N = NaN;
14703
14709
  }
14704
14710
  function Y() {
14705
- h && (P(v, y), m && N && f.rejoin(), h.push(f.result())), D.point = T, N && c.lineEnd();
14711
+ h && (P(v, y), m && C && f.rejoin(), h.push(f.result())), D.point = T, C && c.lineEnd();
14706
14712
  }
14707
14713
  function P(X, ut) {
14708
14714
  var yt = i(X, ut);
14709
14715
  if (g && p.push([X, ut]), L)
14710
14716
  v = X, y = ut, m = yt, L = !1, yt && (c.lineStart(), c.point(X, ut));
14711
- else if (yt && N)
14717
+ else if (yt && C)
14712
14718
  c.point(X, ut);
14713
14719
  else {
14714
- var qt = [E = Math.max(wo, Math.min(qi, E)), C = Math.max(wo, Math.min(qi, C))], we = [X = Math.max(wo, Math.min(qi, X)), ut = Math.max(wo, Math.min(qi, ut))];
14715
- Mc(qt, we, r, t, e, n) ? (N || (c.lineStart(), c.point(qt[0], qt[1])), c.point(we[0], we[1]), yt || c.lineEnd(), w = !1) : yt && (c.lineStart(), c.point(X, ut), w = !1);
14720
+ var qt = [E = Math.max(wo, Math.min(Xi, E)), N = Math.max(wo, Math.min(Xi, N))], we = [X = Math.max(wo, Math.min(Xi, X)), ut = Math.max(wo, Math.min(Xi, ut))];
14721
+ Mc(qt, we, r, t, e, n) ? (C || (c.lineStart(), c.point(qt[0], qt[1])), c.point(we[0], we[1]), yt || c.lineEnd(), w = !1) : yt && (c.lineStart(), c.point(X, ut), w = !1);
14716
14722
  }
14717
- E = X, C = ut, N = yt;
14723
+ E = X, N = ut, C = yt;
14718
14724
  }
14719
14725
  return D;
14720
14726
  };
@@ -14725,10 +14731,10 @@ function Gc(r, t) {
14725
14731
  ps.reset();
14726
14732
  for (var a = 0, u = r.length; a < u; ++a)
14727
14733
  if (c = (l = r[a]).length)
14728
- for (var l, c, f = l[c - 1], h = f[0], g = f[1] / 2 + Sa, p = bt(g), v = Lt(g), y = 0; y < c; ++y, h = E, p = N, v = L, f = m) {
14729
- var m = l[y], E = m[0], C = m[1] / 2 + Sa, N = bt(C), L = Lt(C), w = E - h, D = w >= 0 ? 1 : -1, T = D * w, F = T > ot, j = p * N;
14730
- if (ps.add(Li(j * D * bt(T), v * L + j * Lt(T))), o += F ? w + D * Jn : w, F ^ h >= e ^ E >= e) {
14731
- var k = qo(bi(f), bi(m));
14734
+ for (var l, c, f = l[c - 1], h = f[0], g = f[1] / 2 + Sa, p = bt(g), v = Lt(g), y = 0; y < c; ++y, h = E, p = C, v = L, f = m) {
14735
+ var m = l[y], E = m[0], N = m[1] / 2 + Sa, C = bt(N), L = Lt(N), w = E - h, D = w >= 0 ? 1 : -1, T = D * w, F = T > ot, j = p * C;
14736
+ if (ps.add(Pi(j * D * bt(T), v * L + j * Lt(T))), o += F ? w + D * Jn : w, F ^ h >= e ^ E >= e) {
14737
+ var k = qo(Ri(f), Ri(m));
14732
14738
  Ps(k);
14733
14739
  var O = qo(i, k);
14734
14740
  Ps(O);
@@ -14744,19 +14750,19 @@ function Ma(r) {
14744
14750
  }
14745
14751
  Tr();
14746
14752
  Tr();
14747
- var Pi = 1 / 0, Xo = Pi, lo = -Pi, Yo = lo, Aa = {
14753
+ var Oi = 1 / 0, Xo = Oi, co = -Oi, Yo = co, Aa = {
14748
14754
  point: kc,
14749
- lineStart: Ui,
14750
- lineEnd: Ui,
14751
- polygonStart: Ui,
14752
- polygonEnd: Ui,
14755
+ lineStart: qi,
14756
+ lineEnd: qi,
14757
+ polygonStart: qi,
14758
+ polygonEnd: qi,
14753
14759
  result: function() {
14754
- var r = [[Pi, Xo], [lo, Yo]];
14755
- return lo = Yo = -(Xo = Pi = 1 / 0), r;
14760
+ var r = [[Oi, Xo], [co, Yo]];
14761
+ return co = Yo = -(Xo = Oi = 1 / 0), r;
14756
14762
  }
14757
14763
  };
14758
14764
  function kc(r, t) {
14759
- r < Pi && (Pi = r), r > lo && (lo = r), t < Xo && (Xo = t), t > Yo && (Yo = t);
14765
+ r < Oi && (Oi = r), r > co && (co = r), t < Xo && (Xo = t), t > Yo && (Yo = t);
14760
14766
  }
14761
14767
  Tr();
14762
14768
  function Au(r, t, e, n) {
@@ -14766,7 +14772,7 @@ function Au(r, t, e, n) {
14766
14772
  lineStart: m,
14767
14773
  lineEnd: E,
14768
14774
  polygonStart: function() {
14769
- p.point = C, p.lineStart = N, p.lineEnd = L, h = [], f = [];
14775
+ p.point = N, p.lineStart = C, p.lineEnd = L, h = [], f = [];
14770
14776
  },
14771
14777
  polygonEnd: function() {
14772
14778
  p.point = v, p.lineStart = m, p.lineEnd = E, h = Mu(h);
@@ -14791,16 +14797,16 @@ function Au(r, t, e, n) {
14791
14797
  function E() {
14792
14798
  p.point = v, s.lineEnd();
14793
14799
  }
14794
- function C(w, D) {
14800
+ function N(w, D) {
14795
14801
  g.push([w, D]);
14796
14802
  var T = i(w, D);
14797
14803
  l.point(T[0], T[1]);
14798
14804
  }
14799
- function N() {
14805
+ function C() {
14800
14806
  l.lineStart(), g = [];
14801
14807
  }
14802
14808
  function L() {
14803
- C(g[0][0], g[0][1]), l.lineEnd();
14809
+ N(g[0][0], g[0][1]), l.lineEnd();
14804
14810
  var w = l.clean(), D = u.result(), T, F = D.length, j, k, O;
14805
14811
  if (g.pop(), f.push(g), g = null, !!F) {
14806
14812
  if (w & 1) {
@@ -14878,14 +14884,14 @@ function Yc(r, t) {
14878
14884
  p = g = !1, v = 1;
14879
14885
  },
14880
14886
  point: function(y, m) {
14881
- var E = [y, m], C, N = s(y, m), L = n ? N ? 0 : l(y, m) : N ? l(y + (y < 0 ? ot : -ot), m) : 0;
14882
- if (!f && (p = g = N) && c.lineStart(), N !== g && (C = u(f, E), (!C || Oo(f, C) || Oo(E, C)) && (E[0] += pt, E[1] += pt, N = s(E[0], E[1]))), N !== g)
14883
- v = 0, N ? (c.lineStart(), C = u(E, f), c.point(C[0], C[1])) : (C = u(f, E), c.point(C[0], C[1]), c.lineEnd()), f = C;
14884
- else if (i && f && n ^ N) {
14887
+ var E = [y, m], N, C = s(y, m), L = n ? C ? 0 : l(y, m) : C ? l(y + (y < 0 ? ot : -ot), m) : 0;
14888
+ if (!f && (p = g = C) && c.lineStart(), C !== g && (N = u(f, E), (!N || Oo(f, N) || Oo(E, N)) && (E[0] += pt, E[1] += pt, C = s(E[0], E[1]))), C !== g)
14889
+ v = 0, C ? (c.lineStart(), N = u(E, f), c.point(N[0], N[1])) : (N = u(f, E), c.point(N[0], N[1]), c.lineEnd()), f = N;
14890
+ else if (i && f && n ^ C) {
14885
14891
  var w;
14886
14892
  !(L & h) && (w = u(E, f, !0)) && (v = 0, n ? (c.lineStart(), c.point(w[0][0], w[0][1]), c.point(w[1][0], w[1][1]), c.lineEnd()) : (c.point(w[1][0], w[1][1]), c.lineEnd(), c.lineStart(), c.point(w[0][0], w[0][1])));
14887
14893
  }
14888
- N && (!f || !Oo(f, E)) && c.point(E[0], E[1]), f = E, g = N, h = L;
14894
+ C && (!f || !Oo(f, E)) && c.point(E[0], E[1]), f = E, g = C, h = L;
14889
14895
  },
14890
14896
  lineEnd: function() {
14891
14897
  g && c.lineEnd(), f = null;
@@ -14896,14 +14902,14 @@ function Yc(r, t) {
14896
14902
  };
14897
14903
  }
14898
14904
  function u(c, f, h) {
14899
- var g = bi(c), p = bi(f), v = [1, 0, 0], y = qo(g, p), m = No(y, y), E = y[0], C = m - E * E;
14900
- if (!C)
14905
+ var g = Ri(c), p = Ri(f), v = [1, 0, 0], y = qo(g, p), m = No(y, y), E = y[0], N = m - E * E;
14906
+ if (!N)
14901
14907
  return !h && c;
14902
- var N = e * m / C, L = -e * E / C, w = qo(v, y), D = xo(v, N), T = xo(y, L);
14908
+ var C = e * m / N, L = -e * E / N, w = qo(v, y), D = xo(v, C), T = xo(y, L);
14903
14909
  gs(D, T);
14904
14910
  var F = w, j = No(D, F), k = No(F, F), O = j * j - k * (No(D, D) - 1);
14905
14911
  if (!(O < 0)) {
14906
- var Y = Bi(O), P = xo(F, (-j - Y) / k);
14912
+ var Y = ki(O), P = xo(F, (-j - Y) / k);
14907
14913
  if (gs(P, D), P = bs(P), !h)
14908
14914
  return P;
14909
14915
  var X = c[0], ut = f[0], yt = c[1], qt = f[1], we;
@@ -14974,17 +14980,17 @@ function jc(r) {
14974
14980
  }
14975
14981
  function Kc(r, t) {
14976
14982
  function e(n, i, o, s, a, u, l, c, f, h, g, p, v, y) {
14977
- var m = l - n, E = c - i, C = m * m + E * E;
14978
- if (C > 4 * t && v--) {
14979
- var N = s + h, L = a + g, w = u + p, D = Bi(N * N + L * L + w * w), T = $r(w /= D), F = te(te(w) - 1) < pt || te(o - f) < pt ? (o + f) / 2 : Li(L, N), j = r(F, T), k = j[0], O = j[1], Y = k - n, P = O - i, X = E * Y - m * P;
14980
- (X * X / C > t || te((m * Y + E * P) / C - 0.5) > 0.3 || s * h + a * g + u * p < Wc) && (e(n, i, o, s, a, u, k, O, F, N /= D, L /= D, w, v, y), y.point(k, O), e(k, O, F, N, L, w, l, c, f, h, g, p, v, y));
14983
+ var m = l - n, E = c - i, N = m * m + E * E;
14984
+ if (N > 4 * t && v--) {
14985
+ var C = s + h, L = a + g, w = u + p, D = ki(C * C + L * L + w * w), T = $r(w /= D), F = te(te(w) - 1) < pt || te(o - f) < pt ? (o + f) / 2 : Pi(L, C), j = r(F, T), k = j[0], O = j[1], Y = k - n, P = O - i, X = E * Y - m * P;
14986
+ (X * X / N > t || te((m * Y + E * P) / N - 0.5) > 0.3 || s * h + a * g + u * p < Wc) && (e(n, i, o, s, a, u, k, O, F, C /= D, L /= D, w, v, y), y.point(k, O), e(k, O, F, C, L, w, l, c, f, h, g, p, v, y));
14981
14987
  }
14982
14988
  }
14983
14989
  return function(n) {
14984
14990
  var i, o, s, a, u, l, c, f, h, g, p, v, y = {
14985
14991
  point: m,
14986
14992
  lineStart: E,
14987
- lineEnd: N,
14993
+ lineEnd: C,
14988
14994
  polygonStart: function() {
14989
14995
  n.polygonStart(), y.lineStart = L;
14990
14996
  },
@@ -14996,23 +15002,23 @@ function Kc(r, t) {
14996
15002
  T = r(T, F), n.point(T[0], T[1]);
14997
15003
  }
14998
15004
  function E() {
14999
- f = NaN, y.point = C, n.lineStart();
15005
+ f = NaN, y.point = N, n.lineStart();
15000
15006
  }
15001
- function C(T, F) {
15002
- var j = bi([T, F]), k = r(T, F);
15007
+ function N(T, F) {
15008
+ var j = Ri([T, F]), k = r(T, F);
15003
15009
  e(f, h, c, g, p, v, f = k[0], h = k[1], c = T, g = j[0], p = j[1], v = j[2], Ba, n), n.point(f, h);
15004
15010
  }
15005
- function N() {
15011
+ function C() {
15006
15012
  y.point = m, n.lineEnd();
15007
15013
  }
15008
15014
  function L() {
15009
15015
  E(), y.point = w, y.lineEnd = D;
15010
15016
  }
15011
15017
  function w(T, F) {
15012
- C(i = T, F), o = f, s = h, a = g, u = p, l = v, y.point = C;
15018
+ N(i = T, F), o = f, s = h, a = g, u = p, l = v, y.point = N;
15013
15019
  }
15014
15020
  function D() {
15015
- e(f, h, c, g, p, v, o, s, i, a, u, l, Ba, n), y.lineEnd = N, N();
15021
+ e(f, h, c, g, p, v, o, s, i, a, u, l, Ba, n), y.lineEnd = C, C();
15016
15022
  }
15017
15023
  return y;
15018
15024
  };
@@ -15028,7 +15034,7 @@ function Jc(r) {
15028
15034
  })();
15029
15035
  }
15030
15036
  function Zc(r) {
15031
- var t, e = 150, n = 480, i = 250, o, s, a = 0, u = 0, l = 0, c = 0, f = 0, h, g, p = null, v = Fa, y = null, m, E, C, N = Ma, L = 0.5, w = Ga(k, L), D, T;
15037
+ var t, e = 150, n = 480, i = 250, o, s, a = 0, u = 0, l = 0, c = 0, f = 0, h, g, p = null, v = Fa, y = null, m, E, N, C = Ma, L = 0.5, w = Ga(k, L), D, T;
15032
15038
  function F(P) {
15033
15039
  return P = g(P[0] * tn, P[1] * tn), [P[0] * e + o, s - P[1] * e];
15034
15040
  }
@@ -15039,11 +15045,11 @@ function Zc(r) {
15039
15045
  return P = t(P, X), [P[0] * e + o, s - P[1] * e];
15040
15046
  }
15041
15047
  F.stream = function(P) {
15042
- return D && T === P ? D : D = Qc(v(h, w(N(T = P))));
15048
+ return D && T === P ? D : D = Qc(v(h, w(C(T = P))));
15043
15049
  }, F.clipAngle = function(P) {
15044
15050
  return arguments.length ? (v = +P ? Yc(p = P * tn, 6 * tn) : (p = null, Fa), Y()) : p * dr;
15045
15051
  }, F.clipExtent = function(P) {
15046
- return arguments.length ? (N = P == null ? (y = m = E = C = null, Ma) : Bc(y = +P[0][0], m = +P[0][1], E = +P[1][0], C = +P[1][1]), Y()) : y == null ? null : [[y, m], [E, C]];
15052
+ return arguments.length ? (C = P == null ? (y = m = E = N = null, Ma) : Bc(y = +P[0][0], m = +P[0][1], E = +P[1][0], N = +P[1][1]), Y()) : y == null ? null : [[y, m], [E, N]];
15047
15053
  }, F.scale = function(P) {
15048
15054
  return arguments.length ? (e = +P, O()) : e;
15049
15055
  }, F.translate = function(P) {
@@ -15053,7 +15059,7 @@ function Zc(r) {
15053
15059
  }, F.rotate = function(P) {
15054
15060
  return arguments.length ? (l = P[0] % 360 * tn, c = P[1] % 360 * tn, f = P.length > 2 ? P[2] % 360 * tn : 0, O()) : [l * dr, c * dr, f * dr];
15055
15061
  }, F.precision = function(P) {
15056
- return arguments.length ? (w = Ga(k, L = P * P), Y()) : Bi(L);
15062
+ return arguments.length ? (w = Ga(k, L = P * P), Y()) : ki(L);
15057
15063
  }, F.fitExtent = function(P, X) {
15058
15064
  return Bu(F, P, X);
15059
15065
  }, F.fitSize = function(P, X) {
@@ -15082,15 +15088,15 @@ function Gu(r) {
15082
15088
  }
15083
15089
  function ku(r) {
15084
15090
  return function(t, e) {
15085
- var n = Bi(t * t + e * e), i = r(n), o = bt(i), s = Lt(i);
15091
+ var n = ki(t * t + e * e), i = r(n), o = bt(i), s = Lt(i);
15086
15092
  return [
15087
- Li(t * o, n * s),
15093
+ Pi(t * o, n * s),
15088
15094
  $r(n && e * o / n)
15089
15095
  ];
15090
15096
  };
15091
15097
  }
15092
15098
  var $c = Gu(function(r) {
15093
- return Bi(2 / (1 + r));
15099
+ return ki(2 / (1 + r));
15094
15100
  });
15095
15101
  $c.invert = ku(function(r) {
15096
15102
  return 2 * $r(r / 2);
@@ -15301,15 +15307,15 @@ function rf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
15301
15307
  setMarkers(m, E) {
15302
15308
  if (!e)
15303
15309
  return;
15304
- function C(N) {
15310
+ function N(C) {
15305
15311
  var L;
15306
- (L = r.getSource("full-geom")) == null || L.setData(N);
15312
+ (L = r.getSource("full-geom")) == null || L.setData(C);
15307
15313
  }
15308
- for (const N of l)
15309
- N.remove();
15310
- if (l.length = 0, C(Ua), !!t) {
15314
+ for (const C of l)
15315
+ C.remove();
15316
+ if (l.length = 0, N(Ua), !!t) {
15311
15317
  if (E) {
15312
- let N = !1;
15318
+ let C = !1;
15313
15319
  if (E.geometry.type === "GeometryCollection") {
15314
15320
  const L = E.geometry.geometries.filter(
15315
15321
  (w) => w.type === "Polygon" || w.type === "MultiPolygon"
@@ -15318,22 +15324,22 @@ function rf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
15318
15324
  let w = L.pop();
15319
15325
  for (const D of L)
15320
15326
  w = cc(w, D);
15321
- Va({ ...E, geometry: w }, C), N = !0;
15327
+ Va({ ...E, geometry: w }, N), C = !0;
15322
15328
  } else {
15323
15329
  const w = E.geometry.geometries.filter(
15324
15330
  (D) => D.type === "LineString" || D.type === "MultiLineString"
15325
15331
  );
15326
- w.length > 0 && (C({
15332
+ w.length > 0 && (N({
15327
15333
  ...E,
15328
15334
  geometry: { type: "GeometryCollection", geometries: w }
15329
- }), N = !0);
15335
+ }), C = !0);
15330
15336
  }
15331
15337
  }
15332
- if (!N) {
15338
+ if (!C) {
15333
15339
  if (E.geometry.type === "Polygon" || E.geometry.type === "MultiPolygon")
15334
- Va(E, C);
15340
+ Va(E, N);
15335
15341
  else if (E.geometry.type === "LineString" || E.geometry.type === "MultiLineString") {
15336
- C(E);
15342
+ N(E);
15337
15343
  return;
15338
15344
  }
15339
15345
  }
@@ -15342,17 +15348,24 @@ function rf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
15342
15348
  );
15343
15349
  }
15344
15350
  if (n)
15345
- for (const N of m ?? []) {
15346
- if (N === E)
15351
+ for (const C of m ?? []) {
15352
+ if (C === E)
15347
15353
  continue;
15348
- const L = (typeof n == "object" ? new t.Marker(n) : v(!0)).setLngLat(N.center).addTo(r), w = L.getElement();
15354
+ const L = (typeof n == "object" ? new t.Marker(n) : v(!0)).setLngLat(C.center).setPopup(
15355
+ new t.Popup({
15356
+ offset: [1, -27],
15357
+ closeButton: !1,
15358
+ closeOnMove: !0,
15359
+ className: "maptiler-gc-popup"
15360
+ }).setText(C.place_name.replace(/,.*/, ""))
15361
+ ).addTo(r), w = L.getElement();
15349
15362
  w.addEventListener("click", (D) => {
15350
- D.stopPropagation(), a == null || a({ type: "markerClick", id: N.id });
15363
+ D.stopPropagation(), a == null || a({ type: "markerClick", id: C.id });
15351
15364
  }), w.addEventListener("mouseenter", () => {
15352
- a == null || a({ type: "markerMouseEnter", id: N.id });
15365
+ a == null || a({ type: "markerMouseEnter", id: C.id }), L.togglePopup();
15353
15366
  }), w.addEventListener("mouseleave", () => {
15354
- a == null || a({ type: "markerMouseLeave", id: N.id });
15355
- }), w.classList.toggle("marker-fuzzy", !!N.matching_text), l.push(L);
15367
+ a == null || a({ type: "markerMouseLeave", id: C.id }), L.togglePopup();
15368
+ }), w.classList.toggle("marker-fuzzy", !!C.matching_text), l.push(L);
15356
15369
  }
15357
15370
  }
15358
15371
  },
@@ -15367,7 +15380,7 @@ class af extends EventTarget {
15367
15380
  super();
15368
15381
  ls(this, En, void 0);
15369
15382
  ls(this, kr, void 0);
15370
- Eo(this, kr, e);
15383
+ Io(this, kr, e);
15371
15384
  }
15372
15385
  onAdd(e) {
15373
15386
  const n = document.createElement("div");
@@ -15388,7 +15401,7 @@ class af extends EventTarget {
15388
15401
  c,
15389
15402
  u
15390
15403
  );
15391
- Eo(this, En, new Gl({
15404
+ Io(this, En, new Gl({
15392
15405
  target: n,
15393
15406
  props: {
15394
15407
  mapController: f,
@@ -15411,7 +15424,7 @@ class af extends EventTarget {
15411
15424
  }
15412
15425
  setOptions(e) {
15413
15426
  var l;
15414
- Eo(this, kr, e);
15427
+ Io(this, kr, e);
15415
15428
  const {
15416
15429
  maplibregl: n,
15417
15430
  marker: i,