@maptiler/geocoding-control 0.0.82 → 0.0.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DispatcherType.d.ts +14 -0
- package/GeocodingControl.svelte +10 -3
- package/GeocodingControl.svelte.d.ts +9 -12
- package/README.md +38 -12
- package/leaflet-controller.js +450 -450
- package/leaflet-controller.js.map +1 -1
- package/leaflet-controller.umd.js +5 -5
- package/leaflet-controller.umd.js.map +1 -1
- package/leaflet.d.ts +2 -2
- package/leaflet.js +420 -420
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +5 -5
- package/leaflet.umd.js.map +1 -1
- package/maplibregl-controller.d.ts +5 -3
- package/maplibregl-controller.js +450 -450
- package/maplibregl-controller.js.map +1 -1
- package/maplibregl-controller.umd.js +5 -5
- package/maplibregl-controller.umd.js.map +1 -1
- package/maplibregl.d.ts +11 -7
- package/maplibregl.js +871 -861
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +5 -5
- package/maplibregl.umd.js.map +1 -1
- package/mask.d.ts +1 -1
- package/package.json +12 -7
- package/react.d.ts +11 -18
- package/react.js +333 -333
- package/react.js.map +1 -1
- package/react.umd.js +1 -1
- package/react.umd.js.map +1 -1
- package/style.css +1 -1
package/leaflet.js
CHANGED
|
@@ -21,7 +21,7 @@ function Ha(r) {
|
|
|
21
21
|
function ta() {
|
|
22
22
|
return /* @__PURE__ */ Object.create(null);
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function Mr(r) {
|
|
25
25
|
r.forEach(Ha);
|
|
26
26
|
}
|
|
27
27
|
function Wa(r) {
|
|
@@ -91,7 +91,7 @@ function fl(r, t) {
|
|
|
91
91
|
function oe(r) {
|
|
92
92
|
return document.createElement(r);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function Nr(r) {
|
|
95
95
|
return document.createElementNS("http://www.w3.org/2000/svg", r);
|
|
96
96
|
}
|
|
97
97
|
function Ur(r) {
|
|
@@ -115,7 +115,7 @@ function gl(r) {
|
|
|
115
115
|
return Array.from(r.childNodes);
|
|
116
116
|
}
|
|
117
117
|
function Wi(r, t) {
|
|
118
|
-
t = "" + t, r.
|
|
118
|
+
t = "" + t, r.data !== t && (r.data = t);
|
|
119
119
|
}
|
|
120
120
|
function na(r, t) {
|
|
121
121
|
r.value = t ?? "";
|
|
@@ -191,7 +191,7 @@ function Qa() {
|
|
|
191
191
|
}
|
|
192
192
|
function _l(r) {
|
|
193
193
|
if (r.fragment !== null) {
|
|
194
|
-
r.update(),
|
|
194
|
+
r.update(), Mr(r.before_update);
|
|
195
195
|
const t = r.dirty;
|
|
196
196
|
r.dirty = [-1], r.fragment && r.fragment.p(r.ctx, t), r.after_update.forEach(ms);
|
|
197
197
|
}
|
|
@@ -211,7 +211,7 @@ function ia() {
|
|
|
211
211
|
};
|
|
212
212
|
}
|
|
213
213
|
function oa() {
|
|
214
|
-
zr.r ||
|
|
214
|
+
zr.r || Mr(zr.c), zr = zr.p;
|
|
215
215
|
}
|
|
216
216
|
function Je(r, t) {
|
|
217
217
|
r && r.i && (Po.delete(r), r.i(t));
|
|
@@ -233,12 +233,12 @@ function Ki(r, t, e, n) {
|
|
|
233
233
|
const { fragment: i, after_update: o } = r.$$;
|
|
234
234
|
i && i.m(t, e), n || ms(() => {
|
|
235
235
|
const s = r.$$.on_mount.map(Ha).filter(Wa);
|
|
236
|
-
r.$$.on_destroy ? r.$$.on_destroy.push(...s) :
|
|
236
|
+
r.$$.on_destroy ? r.$$.on_destroy.push(...s) : Mr(s), r.$$.on_mount = [];
|
|
237
237
|
}), o.forEach(ms);
|
|
238
238
|
}
|
|
239
239
|
function Qi(r, t) {
|
|
240
240
|
const e = r.$$;
|
|
241
|
-
e.fragment !== null && (El(e.after_update),
|
|
241
|
+
e.fragment !== null && (El(e.after_update), Mr(e.on_destroy), e.fragment && e.fragment.d(t), e.on_destroy = e.fragment = null, e.ctx = []);
|
|
242
242
|
}
|
|
243
243
|
function Il(r, t) {
|
|
244
244
|
r.$$.dirty[0] === -1 && (ui.push(r), ml(), r.$$.dirty.fill(0)), r.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
@@ -272,7 +272,7 @@ function Mi(r, t, e, n, i, o, s, a = [-1]) {
|
|
|
272
272
|
if (l.ctx = e ? e(r, t.props || {}, (f, h, ...g) => {
|
|
273
273
|
const p = g.length ? g[0] : h;
|
|
274
274
|
return l.ctx && i(l.ctx[f], l.ctx[f] = p) && (!l.skip_bound && l.bound[f] && l.bound[f](p), c && Il(r, f)), h;
|
|
275
|
-
}) : [], l.update(), c = !0,
|
|
275
|
+
}) : [], l.update(), c = !0, Mr(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
276
276
|
if (t.hydrate) {
|
|
277
277
|
const f = gl(t.target);
|
|
278
278
|
l.fragment && l.fragment.l(f), f.forEach(Te);
|
|
@@ -303,7 +303,7 @@ function Cl(r) {
|
|
|
303
303
|
let t, e;
|
|
304
304
|
return {
|
|
305
305
|
c() {
|
|
306
|
-
t =
|
|
306
|
+
t = Nr("svg"), e = Nr("path"), B(e, "d", "M3.8 2.5c-.6 0-1.3.7-1.3 1.3 0 .3.2.7.5.8L7.2 9 3 13.2c-.3.3-.5.7-.5 1 0 .6.7 1.3 1.3 1.3.3 0 .7-.2 1-.5L9 10.8l4.2 4.2c.2.3.7.3 1 .3.6 0 1.3-.7 1.3-1.3 0-.3-.2-.7-.3-1l-4.4-4L15 4.6c.3-.2.5-.5.5-.8 0-.7-.7-1.3-1.3-1.3-.3 0-.7.2-1 .3L9 7.1 4.8 2.8c-.3-.1-.7-.3-1-.3z"), B(t, "viewBox", "0 0 18 18"), B(t, "width", "16"), B(t, "height", "16"), B(t, "class", "svelte-en2qvf");
|
|
307
307
|
},
|
|
308
308
|
m(n, i) {
|
|
309
309
|
We(n, t, i), ct(t, e);
|
|
@@ -322,19 +322,19 @@ class Nl extends Ai {
|
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
function xl(r) {
|
|
325
|
-
let t
|
|
325
|
+
let t;
|
|
326
326
|
return {
|
|
327
327
|
c() {
|
|
328
|
-
t =
|
|
328
|
+
t = oe("div"), t.innerHTML = '<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>', B(t, "class", "svelte-7cmwmc");
|
|
329
329
|
},
|
|
330
|
-
m(
|
|
331
|
-
We(
|
|
330
|
+
m(e, n) {
|
|
331
|
+
We(e, t, n);
|
|
332
332
|
},
|
|
333
333
|
p: Zt,
|
|
334
334
|
i: Zt,
|
|
335
335
|
o: Zt,
|
|
336
|
-
d(
|
|
337
|
-
|
|
336
|
+
d(e) {
|
|
337
|
+
e && Te(t);
|
|
338
338
|
}
|
|
339
339
|
};
|
|
340
340
|
}
|
|
@@ -344,19 +344,19 @@ class Sl extends Ai {
|
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
function wl(r) {
|
|
347
|
-
let t;
|
|
347
|
+
let t, e;
|
|
348
348
|
return {
|
|
349
349
|
c() {
|
|
350
|
-
t =
|
|
350
|
+
t = Nr("svg"), e = Nr("path"), B(e, "d", "M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"), B(t, "viewBox", "0 0 60.006 21.412"), B(t, "width", "14"), B(t, "height", "20"), B(t, "class", "svelte-en2qvf");
|
|
351
351
|
},
|
|
352
|
-
m(
|
|
353
|
-
We(
|
|
352
|
+
m(n, i) {
|
|
353
|
+
We(n, t, i), ct(t, e);
|
|
354
354
|
},
|
|
355
355
|
p: Zt,
|
|
356
356
|
i: Zt,
|
|
357
357
|
o: Zt,
|
|
358
|
-
d(
|
|
359
|
-
|
|
358
|
+
d(n) {
|
|
359
|
+
n && Te(t);
|
|
360
360
|
}
|
|
361
361
|
};
|
|
362
362
|
}
|
|
@@ -366,65 +366,10 @@ class Ll extends Ai {
|
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
368
|
function bl(r) {
|
|
369
|
-
let t, e, n;
|
|
370
|
-
return {
|
|
371
|
-
c() {
|
|
372
|
-
t = Cr("svg"), e = Cr("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 = /*displayIn*/
|
|
373
|
-
r[0] !== "list" ? void 0 : "20"), B(t, "viewBox", "0 0 70 85"), B(t, "fill", "none"), B(t, "class", "svelte-1k1cmht"), en(
|
|
374
|
-
t,
|
|
375
|
-
"in-map",
|
|
376
|
-
/*displayIn*/
|
|
377
|
-
r[0] !== "list"
|
|
378
|
-
), en(
|
|
379
|
-
t,
|
|
380
|
-
"list-icon",
|
|
381
|
-
/*displayIn*/
|
|
382
|
-
r[0] === "list"
|
|
383
|
-
);
|
|
384
|
-
},
|
|
385
|
-
m(i, o) {
|
|
386
|
-
We(i, t, o), ct(t, e);
|
|
387
|
-
},
|
|
388
|
-
p(i, [o]) {
|
|
389
|
-
o & /*displayIn*/
|
|
390
|
-
1 && n !== (n = /*displayIn*/
|
|
391
|
-
i[0] !== "list" ? void 0 : "20") && B(t, "width", n), o & /*displayIn*/
|
|
392
|
-
1 && en(
|
|
393
|
-
t,
|
|
394
|
-
"in-map",
|
|
395
|
-
/*displayIn*/
|
|
396
|
-
i[0] !== "list"
|
|
397
|
-
), o & /*displayIn*/
|
|
398
|
-
1 && en(
|
|
399
|
-
t,
|
|
400
|
-
"list-icon",
|
|
401
|
-
/*displayIn*/
|
|
402
|
-
i[0] === "list"
|
|
403
|
-
);
|
|
404
|
-
},
|
|
405
|
-
i: Zt,
|
|
406
|
-
o: Zt,
|
|
407
|
-
d(i) {
|
|
408
|
-
i && Te(t);
|
|
409
|
-
}
|
|
410
|
-
};
|
|
411
|
-
}
|
|
412
|
-
function Pl(r, t, e) {
|
|
413
|
-
let { displayIn: n } = t;
|
|
414
|
-
return r.$$set = (i) => {
|
|
415
|
-
"displayIn" in i && e(0, n = i.displayIn);
|
|
416
|
-
}, [n];
|
|
417
|
-
}
|
|
418
|
-
class Rl extends Ai {
|
|
419
|
-
constructor(t) {
|
|
420
|
-
super(), Mi(this, t, Pl, bl, Ti, { displayIn: 0 });
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
function Ol(r) {
|
|
424
369
|
let t, e;
|
|
425
370
|
return {
|
|
426
371
|
c() {
|
|
427
|
-
t =
|
|
372
|
+
t = Nr("svg"), e = Nr("path"), B(e, "d", "M7.4 2.5c-2.7 0-4.9 2.2-4.9 4.9s2.2 4.9 4.9 4.9c1 0 1.8-.2 2.5-.8l3.7 3.7c.2.2.4.3.8.3.7 0 1.1-.4 1.1-1.1 0-.3-.1-.5-.3-.8L11.4 10c.4-.8.8-1.6.8-2.5.1-2.8-2.1-5-4.8-5zm0 1.6c1.8 0 3.2 1.4 3.2 3.2s-1.4 3.2-3.2 3.2-3.3-1.3-3.3-3.1 1.4-3.3 3.3-3.3z"), B(t, "viewBox", "0 0 18 18"), B(t, "xml:space", "preserve"), B(t, "width", "20"), B(t, "class", "svelte-en2qvf");
|
|
428
373
|
},
|
|
429
374
|
m(n, i) {
|
|
430
375
|
We(n, t, i), ct(t, e);
|
|
@@ -437,9 +382,9 @@ function Ol(r) {
|
|
|
437
382
|
}
|
|
438
383
|
};
|
|
439
384
|
}
|
|
440
|
-
class
|
|
385
|
+
class Pl extends Ai {
|
|
441
386
|
constructor(t) {
|
|
442
|
-
super(), Mi(this, t, null,
|
|
387
|
+
super(), Mi(this, t, null, bl, Ti, {});
|
|
443
388
|
}
|
|
444
389
|
}
|
|
445
390
|
function sa(r, t, e) {
|
|
@@ -448,7 +393,7 @@ function sa(r, t, e) {
|
|
|
448
393
|
}
|
|
449
394
|
function aa(r) {
|
|
450
395
|
let t, e;
|
|
451
|
-
return t = new
|
|
396
|
+
return t = new Sl({}), {
|
|
452
397
|
c() {
|
|
453
398
|
Do(t.$$.fragment);
|
|
454
399
|
},
|
|
@@ -468,14 +413,14 @@ function aa(r) {
|
|
|
468
413
|
}
|
|
469
414
|
function ua(r) {
|
|
470
415
|
let t, e, n, i, o;
|
|
471
|
-
return e = new
|
|
416
|
+
return e = new Ll({}), {
|
|
472
417
|
c() {
|
|
473
418
|
t = oe("button"), Do(e.$$.fragment), B(t, "type", "button"), B(
|
|
474
419
|
t,
|
|
475
420
|
"title",
|
|
476
421
|
/*reverseButtonTitle*/
|
|
477
422
|
r[9]
|
|
478
|
-
), B(t, "class", "svelte-
|
|
423
|
+
), B(t, "class", "svelte-gpexd2"), en(
|
|
479
424
|
t,
|
|
480
425
|
"active",
|
|
481
426
|
/*reverseActive*/
|
|
@@ -516,7 +461,7 @@ function ua(r) {
|
|
|
516
461
|
}
|
|
517
462
|
};
|
|
518
463
|
}
|
|
519
|
-
function
|
|
464
|
+
function Rl(r) {
|
|
520
465
|
let t, e, n, i = (
|
|
521
466
|
/*listFeatures*/
|
|
522
467
|
r[12]
|
|
@@ -528,7 +473,7 @@ function Tl(r) {
|
|
|
528
473
|
t = oe("ul");
|
|
529
474
|
for (let s = 0; s < o.length; s += 1)
|
|
530
475
|
o[s].c();
|
|
531
|
-
B(t, "class", "svelte-
|
|
476
|
+
B(t, "class", "svelte-gpexd2");
|
|
532
477
|
},
|
|
533
478
|
m(s, a) {
|
|
534
479
|
We(s, t, a);
|
|
@@ -565,18 +510,18 @@ function Tl(r) {
|
|
|
565
510
|
}
|
|
566
511
|
},
|
|
567
512
|
d(s) {
|
|
568
|
-
s && Te(t), fl(o, s), e = !1,
|
|
513
|
+
s && Te(t), fl(o, s), e = !1, Mr(n);
|
|
569
514
|
}
|
|
570
515
|
};
|
|
571
516
|
}
|
|
572
|
-
function
|
|
517
|
+
function Ol(r) {
|
|
573
518
|
let t, e;
|
|
574
519
|
return {
|
|
575
520
|
c() {
|
|
576
521
|
t = oe("div"), e = Ur(
|
|
577
522
|
/*noResultsMessage*/
|
|
578
523
|
r[7]
|
|
579
|
-
), B(t, "class", "no-results svelte-
|
|
524
|
+
), B(t, "class", "no-results svelte-gpexd2");
|
|
580
525
|
},
|
|
581
526
|
m(n, i) {
|
|
582
527
|
We(n, t, i), ct(t, e);
|
|
@@ -594,7 +539,7 @@ function Ml(r) {
|
|
|
594
539
|
}
|
|
595
540
|
};
|
|
596
541
|
}
|
|
597
|
-
function
|
|
542
|
+
function Dl(r) {
|
|
598
543
|
let t = "", e;
|
|
599
544
|
return {
|
|
600
545
|
c() {
|
|
@@ -609,14 +554,14 @@ function Al(r) {
|
|
|
609
554
|
}
|
|
610
555
|
};
|
|
611
556
|
}
|
|
612
|
-
function
|
|
557
|
+
function Tl(r) {
|
|
613
558
|
let t, e;
|
|
614
559
|
return {
|
|
615
560
|
c() {
|
|
616
561
|
t = oe("div"), e = Ur(
|
|
617
562
|
/*errorMessage*/
|
|
618
563
|
r[6]
|
|
619
|
-
), B(t, "class", "error svelte-
|
|
564
|
+
), B(t, "class", "error svelte-gpexd2");
|
|
620
565
|
},
|
|
621
566
|
m(n, i) {
|
|
622
567
|
We(n, t, i), ct(t, e);
|
|
@@ -643,7 +588,7 @@ function la(r) {
|
|
|
643
588
|
), n;
|
|
644
589
|
return {
|
|
645
590
|
c() {
|
|
646
|
-
t = oe("span"), n = Ur(e), B(t, "class", "line2 svelte-
|
|
591
|
+
t = oe("span"), n = Ur(e), B(t, "class", "line2 svelte-gpexd2");
|
|
647
592
|
},
|
|
648
593
|
m(s, a) {
|
|
649
594
|
We(s, t, a), ct(t, n);
|
|
@@ -691,9 +636,9 @@ function ca(r) {
|
|
|
691
636
|
}
|
|
692
637
|
return {
|
|
693
638
|
c() {
|
|
694
|
-
t = oe("li"), e = oe("span"), n = oe("span"), i = oe("span"), s = Ur(o), a = er(), u = oe("span"), c = Ur(l), f = er(), d && d.c(), h = er(), B(i, "class", "primary svelte-
|
|
639
|
+
t = oe("li"), e = oe("span"), n = oe("span"), i = oe("span"), s = Ur(o), a = er(), u = oe("span"), c = Ur(l), f = er(), d && d.c(), h = er(), B(i, "class", "primary svelte-gpexd2"), B(u, "class", "secondary svelte-gpexd2"), B(n, "class", "line1 svelte-gpexd2"), B(e, "class", "texts svelte-gpexd2"), B(t, "tabindex", "0"), B(t, "data-selected", g = /*selectedItemIndex*/
|
|
695
640
|
r[13] === /*i*/
|
|
696
|
-
r[71]), B(t, "class", "svelte-
|
|
641
|
+
r[71]), B(t, "class", "svelte-gpexd2"), en(
|
|
697
642
|
t,
|
|
698
643
|
"selected",
|
|
699
644
|
/*selectedItemIndex*/
|
|
@@ -726,13 +671,13 @@ function ca(r) {
|
|
|
726
671
|
);
|
|
727
672
|
},
|
|
728
673
|
d(E) {
|
|
729
|
-
E && Te(t), d && d.d(), p = !1,
|
|
674
|
+
E && Te(t), d && d.d(), p = !1, Mr(_);
|
|
730
675
|
}
|
|
731
676
|
};
|
|
732
677
|
}
|
|
733
|
-
function
|
|
678
|
+
function Ml(r) {
|
|
734
679
|
let t, e, n, i, o, s, a, u, l, c, f, h, g, p, _, d, y, C;
|
|
735
|
-
i = new
|
|
680
|
+
i = new Pl({}), c = new Nl({});
|
|
736
681
|
let E = (
|
|
737
682
|
/*abortController*/
|
|
738
683
|
r[17] && aa()
|
|
@@ -756,26 +701,26 @@ function Bl(r) {
|
|
|
756
701
|
/*error*/
|
|
757
702
|
R[16]
|
|
758
703
|
)
|
|
759
|
-
return
|
|
704
|
+
return Tl;
|
|
760
705
|
if (!/*focusedDelayed*/
|
|
761
706
|
R[14])
|
|
762
|
-
return
|
|
707
|
+
return Dl;
|
|
763
708
|
if (
|
|
764
709
|
/*listFeatures*/
|
|
765
710
|
((q = R[12]) == null ? void 0 : q.length) === 0
|
|
766
711
|
)
|
|
767
|
-
return
|
|
712
|
+
return Ol;
|
|
768
713
|
if (
|
|
769
714
|
/*focusedDelayed*/
|
|
770
715
|
R[14] && /*listFeatures*/
|
|
771
716
|
((rt = R[12]) != null && rt.length)
|
|
772
717
|
)
|
|
773
|
-
return
|
|
718
|
+
return Rl;
|
|
774
719
|
}
|
|
775
720
|
let F = A(r), D = F && F(r);
|
|
776
721
|
return {
|
|
777
722
|
c() {
|
|
778
|
-
t = oe("form"), e = oe("div"), n = oe("button"), Do(i.$$.fragment), o = er(), s = oe("input"), a = er(), u = oe("div"), l = oe("button"), Do(c.$$.fragment), f = er(), E && E.c(), h = er(), N && N.c(), g = er(), b && b.c(), p = er(), D && D.c(), B(n, "type", "button"), B(n, "class", "svelte-
|
|
723
|
+
t = oe("form"), e = oe("div"), n = oe("button"), Do(i.$$.fragment), o = er(), s = oe("input"), a = er(), u = oe("div"), l = oe("button"), Do(c.$$.fragment), f = er(), E && E.c(), h = er(), N && N.c(), g = er(), b && b.c(), p = er(), D && D.c(), B(n, "type", "button"), B(n, "class", "svelte-gpexd2"), B(
|
|
779
724
|
s,
|
|
780
725
|
"placeholder",
|
|
781
726
|
/*placeholder*/
|
|
@@ -785,20 +730,20 @@ function Bl(r) {
|
|
|
785
730
|
"aria-label",
|
|
786
731
|
/*placeholder*/
|
|
787
732
|
r[8]
|
|
788
|
-
), B(s, "class", "svelte-
|
|
733
|
+
), B(s, "class", "svelte-gpexd2"), B(l, "type", "button"), B(
|
|
789
734
|
l,
|
|
790
735
|
"title",
|
|
791
736
|
/*clearButtonTitle*/
|
|
792
737
|
r[3]
|
|
793
|
-
), B(l, "class", "svelte-
|
|
738
|
+
), B(l, "class", "svelte-gpexd2"), en(
|
|
794
739
|
l,
|
|
795
740
|
"displayable",
|
|
796
741
|
/*searchValue*/
|
|
797
742
|
r[1] !== ""
|
|
798
|
-
), B(u, "class", "clear-button-container svelte-
|
|
743
|
+
), B(u, "class", "clear-button-container svelte-gpexd2"), B(e, "class", "input-group svelte-gpexd2"), B(t, "tabindex", "0"), B(t, "class", _ = ea(
|
|
799
744
|
/*className*/
|
|
800
745
|
r[2]
|
|
801
|
-
) + " svelte-
|
|
746
|
+
) + " svelte-gpexd2"), en(
|
|
802
747
|
t,
|
|
803
748
|
"can-collapse",
|
|
804
749
|
/*collapsed*/
|
|
@@ -921,7 +866,7 @@ function Bl(r) {
|
|
|
921
866
|
4 && _ !== (_ = ea(
|
|
922
867
|
/*className*/
|
|
923
868
|
R[2]
|
|
924
|
-
) + " svelte-
|
|
869
|
+
) + " svelte-gpexd2")) && B(t, "class", _), (!d || z[0] & /*className, collapsed, searchValue*/
|
|
925
870
|
22) && en(
|
|
926
871
|
t,
|
|
927
872
|
"can-collapse",
|
|
@@ -937,11 +882,11 @@ function Bl(r) {
|
|
|
937
882
|
$n(i.$$.fragment, R), $n(c.$$.fragment, R), $n(E), $n(N), $n(b, R), d = !1;
|
|
938
883
|
},
|
|
939
884
|
d(R) {
|
|
940
|
-
R && Te(t), Qi(i), r[50](null), Qi(c), E && E.d(), N && N.d(), b && b.d(R), D && D.d(), y = !1,
|
|
885
|
+
R && Te(t), Qi(i), r[50](null), Qi(c), E && E.d(), N && N.d(), b && b.d(R), D && D.d(), y = !1, Mr(C);
|
|
941
886
|
}
|
|
942
887
|
};
|
|
943
888
|
}
|
|
944
|
-
function
|
|
889
|
+
function Al(r, t, e) {
|
|
945
890
|
const n = t[1], i = t[0], o = n - i;
|
|
946
891
|
return r === n && e ? r : ((r - i) % o + o) % o + i;
|
|
947
892
|
}
|
|
@@ -949,9 +894,9 @@ function fa(r) {
|
|
|
949
894
|
let t = [...r];
|
|
950
895
|
return t[2] < t[0] && (t[2] += 360), t;
|
|
951
896
|
}
|
|
952
|
-
function
|
|
897
|
+
function Fl(r, t, e) {
|
|
953
898
|
let n, { $$slots: i = {}, $$scope: o } = t, { class: s = void 0 } = t, { apiKey: a } = t, { bbox: u = void 0 } = t, { clearButtonTitle: l = "clear" } = t, { clearOnBlur: c = !1 } = t, { collapsed: f = !1 } = t, { country: h = void 0 } = t, { debounceSearch: g = 200 } = t, { enableReverse: p = !1 } = t, { errorMessage: _ = "Searching failed" } = t, { filter: d = () => !0 } = t, { flyTo: y = !0 } = t, { fuzzyMatch: C = !0 } = t, { language: E = void 0 } = t, { limit: N = void 0 } = t, { mapController: w = void 0 } = t, { minLength: b = 2 } = t, { noResultsMessage: A = "No results found" } = t, { placeholder: F = "Search" } = t, { proximity: D = void 0 } = t, { reverseActive: R = p === "always" } = t, { reverseButtonTitle: z = "toggle reverse geocoding" } = t, { searchValue: q = "" } = t, { showFullGeometry: rt = !0 } = t, { showPlaceType: O = !1 } = t, { showResultsWhileTyping: Y = !0 } = t, { trackProximity: at = !0 } = t, { types: xt = void 0 } = t, { zoom: qt = 16 } = t, { fetchParameters: ce = {} } = t;
|
|
954
|
-
function
|
|
899
|
+
function Br() {
|
|
955
900
|
An.focus();
|
|
956
901
|
}
|
|
957
902
|
function mn() {
|
|
@@ -962,7 +907,7 @@ function kl(r, t, e) {
|
|
|
962
907
|
An.focus(), An.select();
|
|
963
908
|
}));
|
|
964
909
|
}
|
|
965
|
-
let fe = !1, et, Rt, vt, Qs = "", An, Mt = -1, pr, Io = [],
|
|
910
|
+
let fe = !1, et, Rt, vt, Qs = "", An, Mt = -1, pr, Io = [], Gr, si, Co;
|
|
966
911
|
const dr = vl();
|
|
967
912
|
dl(() => {
|
|
968
913
|
w && (w.setEventHandler(void 0), w.indicateReverse(!1), w.setSelectedMarker(-1), w.setMarkers(void 0, void 0));
|
|
@@ -983,41 +928,41 @@ function kl(r, t, e) {
|
|
|
983
928
|
async function os(x, { byId: At = !1, exact: Fn = !1 } = {}) {
|
|
984
929
|
e(16, pr = void 0);
|
|
985
930
|
const zi = Zs(), Fe = new URLSearchParams();
|
|
986
|
-
E != null && Fe.set("language", Array.isArray(E) ? E.join(",") : E), xt && Fe.set("types", xt.join(",")), zi || (u && Fe.set("bbox", u.map((
|
|
987
|
-
const
|
|
988
|
-
if (
|
|
931
|
+
E != null && Fe.set("language", Array.isArray(E) ? E.join(",") : E), xt && Fe.set("types", xt.join(",")), zi || (u && Fe.set("bbox", u.map((vr) => vr.toFixed(6)).join(",")), h && Fe.set("country", Array.isArray(h) ? h.join(",") : h)), At || (D && Fe.set("proximity", D.map((vr) => vr.toFixed(6)).join(",")), (Fn || !Y) && Fe.set("autocomplete", "false"), Fe.set("fuzzyMatch", String(C))), N !== void 0 && Fe.set("limit", String(N)), Fe.set("key", a);
|
|
932
|
+
const kr = "https://api.maptiler.com/geocoding/" + encodeURIComponent(x) + ".json?" + Fe.toString();
|
|
933
|
+
if (kr === Qs) {
|
|
989
934
|
At ? (e(12, et = void 0), e(45, vt = Io[0])) : e(12, et = Io);
|
|
990
935
|
return;
|
|
991
936
|
}
|
|
992
|
-
Qs =
|
|
937
|
+
Qs = kr, Gr == null || Gr.abort();
|
|
993
938
|
const ye = new AbortController();
|
|
994
|
-
e(17,
|
|
939
|
+
e(17, Gr = ye);
|
|
995
940
|
let us;
|
|
996
941
|
try {
|
|
997
|
-
us = await fetch(
|
|
998
|
-
ye ===
|
|
942
|
+
us = await fetch(kr, { signal: ye.signal, ...ce }).finally(() => {
|
|
943
|
+
ye === Gr && e(17, Gr = void 0);
|
|
999
944
|
});
|
|
1000
|
-
} catch (
|
|
1001
|
-
if (
|
|
945
|
+
} catch (vr) {
|
|
946
|
+
if (vr && typeof vr == "object" && "name" in vr && vr.name === "AbortError")
|
|
1002
947
|
return;
|
|
1003
948
|
throw new Error();
|
|
1004
949
|
}
|
|
1005
950
|
if (!us.ok)
|
|
1006
951
|
throw new Error();
|
|
1007
952
|
const ls = await us.json();
|
|
1008
|
-
dr("response", { url:
|
|
953
|
+
dr("response", { url: kr, featureCollection: ls }), At ? (e(12, et = void 0), e(45, vt = ls.features[0]), Io = [vt]) : (e(12, et = ls.features.filter(d)), Io = et, zi && An.focus());
|
|
1009
954
|
}
|
|
1010
955
|
function Xu() {
|
|
1011
|
-
var Fn, zi, Fe,
|
|
956
|
+
var Fn, zi, Fe, kr;
|
|
1012
957
|
if (!(Rt != null && Rt.length) || !y)
|
|
1013
958
|
return;
|
|
1014
959
|
const x = [180, 90, -180, -90], At = !Rt.some((ye) => !ye.matching_text);
|
|
1015
960
|
for (const ye of Rt)
|
|
1016
|
-
(At || !ye.matching_text) && (x[0] = Math.min(x[0], ((Fn = ye.bbox) == null ? void 0 : Fn[0]) ?? ye.center[0]), x[1] = Math.min(x[1], ((zi = ye.bbox) == null ? void 0 : zi[1]) ?? ye.center[1]), x[2] = Math.max(x[2], ((Fe = ye.bbox) == null ? void 0 : Fe[2]) ?? ye.center[0]), x[3] = Math.max(x[3], ((
|
|
961
|
+
(At || !ye.matching_text) && (x[0] = Math.min(x[0], ((Fn = ye.bbox) == null ? void 0 : Fn[0]) ?? ye.center[0]), x[1] = Math.min(x[1], ((zi = ye.bbox) == null ? void 0 : zi[1]) ?? ye.center[1]), x[2] = Math.max(x[2], ((Fe = ye.bbox) == null ? void 0 : Fe[2]) ?? ye.center[0]), x[3] = Math.max(x[3], ((kr = ye.bbox) == null ? void 0 : kr[3]) ?? ye.center[1]));
|
|
1017
962
|
w && Rt.length > 0 && (vt && x[0] === x[2] && x[1] === x[3] ? w.flyTo(vt.center, qt) : w.fitBounds(fa(x), 50));
|
|
1018
963
|
}
|
|
1019
964
|
function Yu(x) {
|
|
1020
|
-
e(0, R = p === "always"), Mn(
|
|
965
|
+
e(0, R = p === "always"), Mn(Al(x[0], [-180, 180], !0).toFixed(6) + "," + x[1].toFixed(6));
|
|
1021
966
|
}
|
|
1022
967
|
function Hu(x) {
|
|
1023
968
|
if (!et)
|
|
@@ -1129,7 +1074,7 @@ function kl(r, t, e) {
|
|
|
1129
1074
|
Co,
|
|
1130
1075
|
An,
|
|
1131
1076
|
pr,
|
|
1132
|
-
|
|
1077
|
+
Gr,
|
|
1133
1078
|
Js,
|
|
1134
1079
|
Hu,
|
|
1135
1080
|
ss,
|
|
@@ -1153,7 +1098,7 @@ function kl(r, t, e) {
|
|
|
1153
1098
|
xt,
|
|
1154
1099
|
qt,
|
|
1155
1100
|
ce,
|
|
1156
|
-
|
|
1101
|
+
Br,
|
|
1157
1102
|
mn,
|
|
1158
1103
|
Mn,
|
|
1159
1104
|
Rt,
|
|
@@ -1175,13 +1120,13 @@ function kl(r, t, e) {
|
|
|
1175
1120
|
il
|
|
1176
1121
|
];
|
|
1177
1122
|
}
|
|
1178
|
-
let
|
|
1123
|
+
let Bl = class extends Ai {
|
|
1179
1124
|
constructor(t) {
|
|
1180
1125
|
super(), Mi(
|
|
1181
1126
|
this,
|
|
1182
1127
|
t,
|
|
1183
|
-
|
|
1184
|
-
|
|
1128
|
+
Fl,
|
|
1129
|
+
Ml,
|
|
1185
1130
|
Ti,
|
|
1186
1131
|
{
|
|
1187
1132
|
class: 2,
|
|
@@ -1254,7 +1199,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
1254
1199
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
1255
1200
|
and limitations under the License.
|
|
1256
1201
|
***************************************************************************** */
|
|
1257
|
-
function
|
|
1202
|
+
function Gl(r, t) {
|
|
1258
1203
|
var e = { label: 0, sent: function() {
|
|
1259
1204
|
if (o[0] & 1)
|
|
1260
1205
|
throw o[1];
|
|
@@ -1319,7 +1264,7 @@ function Vl(r, t) {
|
|
|
1319
1264
|
return { value: l[0] ? l[1] : void 0, done: !0 };
|
|
1320
1265
|
}
|
|
1321
1266
|
}
|
|
1322
|
-
var
|
|
1267
|
+
var xr = (
|
|
1323
1268
|
/** @class */
|
|
1324
1269
|
function() {
|
|
1325
1270
|
function r(t, e) {
|
|
@@ -1328,11 +1273,11 @@ var Nr = (
|
|
|
1328
1273
|
return r;
|
|
1329
1274
|
}()
|
|
1330
1275
|
);
|
|
1331
|
-
function
|
|
1276
|
+
function kl(r, t) {
|
|
1332
1277
|
return r > t ? 1 : r < t ? -1 : 0;
|
|
1333
1278
|
}
|
|
1334
|
-
function
|
|
1335
|
-
for (var n = new
|
|
1279
|
+
function _r(r, t, e) {
|
|
1280
|
+
for (var n = new xr(null, null), i = n, o = n; ; ) {
|
|
1336
1281
|
var s = e(r, t.key);
|
|
1337
1282
|
if (s < 0) {
|
|
1338
1283
|
if (t.left === null)
|
|
@@ -1358,24 +1303,24 @@ function mr(r, t, e) {
|
|
|
1358
1303
|
return i.right = t.left, o.left = t.right, t.left = n.right, t.right = n.left, t;
|
|
1359
1304
|
}
|
|
1360
1305
|
function hs(r, t, e, n) {
|
|
1361
|
-
var i = new
|
|
1306
|
+
var i = new xr(r, t);
|
|
1362
1307
|
if (e === null)
|
|
1363
1308
|
return i.left = i.right = null, i;
|
|
1364
|
-
e =
|
|
1309
|
+
e = _r(r, e, n);
|
|
1365
1310
|
var o = n(r, e.key);
|
|
1366
1311
|
return o < 0 ? (i.left = e.left, i.right = e, e.left = null) : o >= 0 && (i.right = e.right, i.left = e, e.right = null), i;
|
|
1367
1312
|
}
|
|
1368
1313
|
function ha(r, t, e) {
|
|
1369
1314
|
var n = null, i = null;
|
|
1370
1315
|
if (t) {
|
|
1371
|
-
t =
|
|
1316
|
+
t = _r(r, t, e);
|
|
1372
1317
|
var o = e(t.key, r);
|
|
1373
1318
|
o === 0 ? (n = t.left, i = t.right) : o < 0 ? (i = t.right, t.right = null, n = t) : (n = t.left, t.left = null, i = t);
|
|
1374
1319
|
}
|
|
1375
1320
|
return { left: n, right: i };
|
|
1376
1321
|
}
|
|
1377
|
-
function
|
|
1378
|
-
return t === null ? r : (r === null || (t =
|
|
1322
|
+
function zl(r, t, e) {
|
|
1323
|
+
return t === null ? r : (r === null || (t = _r(r.key, t, e), t.left = r), t);
|
|
1379
1324
|
}
|
|
1380
1325
|
function _s(r, t, e, n, i) {
|
|
1381
1326
|
if (r) {
|
|
@@ -1389,14 +1334,14 @@ var Ts = (
|
|
|
1389
1334
|
/** @class */
|
|
1390
1335
|
function() {
|
|
1391
1336
|
function r(t) {
|
|
1392
|
-
t === void 0 && (t =
|
|
1337
|
+
t === void 0 && (t = kl), this._root = null, this._size = 0, this._comparator = t;
|
|
1393
1338
|
}
|
|
1394
1339
|
return r.prototype.insert = function(t, e) {
|
|
1395
1340
|
return this._size++, this._root = hs(t, e, this._root, this._comparator);
|
|
1396
1341
|
}, r.prototype.add = function(t, e) {
|
|
1397
|
-
var n = new
|
|
1342
|
+
var n = new xr(t, e);
|
|
1398
1343
|
this._root === null && (n.left = n.right = null, this._size++, this._root = n);
|
|
1399
|
-
var i = this._comparator, o =
|
|
1344
|
+
var i = this._comparator, o = _r(t, this._root, i), s = i(t, o.key);
|
|
1400
1345
|
return s === 0 ? this._root = o : (s < 0 ? (n.left = o.left, n.right = o, o.left = null) : s > 0 && (n.right = o.right, n.left = o, o.right = null), this._size++, this._root = n), this._root;
|
|
1401
1346
|
}, r.prototype.remove = function(t) {
|
|
1402
1347
|
this._root = this._remove(t, this._root, this._comparator);
|
|
@@ -1404,15 +1349,15 @@ var Ts = (
|
|
|
1404
1349
|
var i;
|
|
1405
1350
|
if (e === null)
|
|
1406
1351
|
return null;
|
|
1407
|
-
e =
|
|
1352
|
+
e = _r(t, e, n);
|
|
1408
1353
|
var o = n(t, e.key);
|
|
1409
|
-
return o === 0 ? (e.left === null ? i = e.right : (i =
|
|
1354
|
+
return o === 0 ? (e.left === null ? i = e.right : (i = _r(t, e.left, n), i.right = e.right), this._size--, i) : e;
|
|
1410
1355
|
}, r.prototype.pop = function() {
|
|
1411
1356
|
var t = this._root;
|
|
1412
1357
|
if (t) {
|
|
1413
1358
|
for (; t.left; )
|
|
1414
1359
|
t = t.left;
|
|
1415
|
-
return this._root =
|
|
1360
|
+
return this._root = _r(t.key, this._root, this._comparator), this._root = this._remove(t.key, this._root, this._comparator), { key: t.key, data: t.data };
|
|
1416
1361
|
}
|
|
1417
1362
|
return null;
|
|
1418
1363
|
}, r.prototype.findStatic = function(t) {
|
|
@@ -1424,7 +1369,7 @@ var Ts = (
|
|
|
1424
1369
|
}
|
|
1425
1370
|
return null;
|
|
1426
1371
|
}, r.prototype.find = function(t) {
|
|
1427
|
-
return this._root && (this._root =
|
|
1372
|
+
return this._root && (this._root = _r(t, this._root, this._comparator), this._comparator(t, this._root.key) !== 0) ? null : this._root;
|
|
1428
1373
|
}, r.prototype.contains = function(t) {
|
|
1429
1374
|
for (var e = this._root, n = this._comparator; e; ) {
|
|
1430
1375
|
var i = n(t, e.key);
|
|
@@ -1517,14 +1462,14 @@ var Ts = (
|
|
|
1517
1462
|
}, r.prototype.clear = function() {
|
|
1518
1463
|
return this._root = null, this._size = 0, this;
|
|
1519
1464
|
}, r.prototype.toList = function() {
|
|
1520
|
-
return
|
|
1465
|
+
return Ul(this._root);
|
|
1521
1466
|
}, r.prototype.load = function(t, e, n) {
|
|
1522
1467
|
e === void 0 && (e = []), n === void 0 && (n = !1);
|
|
1523
1468
|
var i = t.length, o = this._comparator;
|
|
1524
1469
|
if (n && Cs(t, e, 0, i - 1, o), this._root === null)
|
|
1525
1470
|
this._root = Es(t, e, 0, i), this._size = i;
|
|
1526
1471
|
else {
|
|
1527
|
-
var s =
|
|
1472
|
+
var s = ql(this.toList(), Vl(t, e), o);
|
|
1528
1473
|
i = this._size + i, this._root = Is({ head: s }, 0, i);
|
|
1529
1474
|
}
|
|
1530
1475
|
return this;
|
|
@@ -1552,12 +1497,12 @@ var Ts = (
|
|
|
1552
1497
|
}, t), e.join("");
|
|
1553
1498
|
}, r.prototype.update = function(t, e, n) {
|
|
1554
1499
|
var i = this._comparator, o = ha(t, this._root, i), s = o.left, a = o.right;
|
|
1555
|
-
i(t, e) < 0 ? a = hs(e, n, a, i) : s = hs(e, n, s, i), this._root =
|
|
1500
|
+
i(t, e) < 0 ? a = hs(e, n, a, i) : s = hs(e, n, s, i), this._root = zl(s, a, i);
|
|
1556
1501
|
}, r.prototype.split = function(t) {
|
|
1557
1502
|
return ha(t, this._root, this._comparator);
|
|
1558
1503
|
}, r.prototype[Symbol.iterator] = function() {
|
|
1559
1504
|
var t;
|
|
1560
|
-
return
|
|
1505
|
+
return Gl(this, function(e) {
|
|
1561
1506
|
switch (e.label) {
|
|
1562
1507
|
case 0:
|
|
1563
1508
|
t = this.minNode(), e.label = 1;
|
|
@@ -1578,18 +1523,18 @@ var Ts = (
|
|
|
1578
1523
|
function Es(r, t, e, n) {
|
|
1579
1524
|
var i = n - e;
|
|
1580
1525
|
if (i > 0) {
|
|
1581
|
-
var o = e + Math.floor(i / 2), s = r[o], a = t[o], u = new
|
|
1526
|
+
var o = e + Math.floor(i / 2), s = r[o], a = t[o], u = new xr(s, a);
|
|
1582
1527
|
return u.left = Es(r, t, e, o), u.right = Es(r, t, o + 1, n), u;
|
|
1583
1528
|
}
|
|
1584
1529
|
return null;
|
|
1585
1530
|
}
|
|
1586
|
-
function
|
|
1587
|
-
for (var e = new
|
|
1588
|
-
n = n.next = new
|
|
1531
|
+
function Vl(r, t) {
|
|
1532
|
+
for (var e = new xr(null, null), n = e, i = 0; i < r.length; i++)
|
|
1533
|
+
n = n.next = new xr(r[i], t[i]);
|
|
1589
1534
|
return n.next = null, e.next;
|
|
1590
1535
|
}
|
|
1591
|
-
function
|
|
1592
|
-
for (var t = r, e = [], n = !1, i = new
|
|
1536
|
+
function Ul(r) {
|
|
1537
|
+
for (var t = r, e = [], n = !1, i = new xr(null, null), o = i; !n; )
|
|
1593
1538
|
t ? (e.push(t), t = t.left) : e.length > 0 ? (t = o = o.next = e.pop(), t = t.right) : n = !0;
|
|
1594
1539
|
return o.next = null, i.next;
|
|
1595
1540
|
}
|
|
@@ -1601,8 +1546,8 @@ function Is(r, t, e) {
|
|
|
1601
1546
|
}
|
|
1602
1547
|
return null;
|
|
1603
1548
|
}
|
|
1604
|
-
function
|
|
1605
|
-
for (var n = new
|
|
1549
|
+
function ql(r, t, e) {
|
|
1550
|
+
for (var n = new xr(null, null), i = n, o = r, s = t; o !== null && s !== null; )
|
|
1606
1551
|
e(o.key, s.key) < 0 ? (i.next = o, o = o.next) : (i.next = s, s = s.next), i = i.next;
|
|
1607
1552
|
return o !== null ? i.next = o : s !== null && (i.next = s), n.next;
|
|
1608
1553
|
}
|
|
@@ -1652,14 +1597,14 @@ var Vi = function(t, e) {
|
|
|
1652
1597
|
y: s
|
|
1653
1598
|
}
|
|
1654
1599
|
};
|
|
1655
|
-
},
|
|
1656
|
-
|
|
1657
|
-
var
|
|
1658
|
-
if (-
|
|
1600
|
+
}, Er = Number.EPSILON;
|
|
1601
|
+
Er === void 0 && (Er = Math.pow(2, -52));
|
|
1602
|
+
var Xl = Er * Er, xs = function(t, e) {
|
|
1603
|
+
if (-Er < t && t < Er && -Er < e && e < Er)
|
|
1659
1604
|
return 0;
|
|
1660
1605
|
var n = t - e;
|
|
1661
|
-
return n * n <
|
|
1662
|
-
},
|
|
1606
|
+
return n * n < Xl * t * e ? 0 : t < e ? -1 : 1;
|
|
1607
|
+
}, Yl = /* @__PURE__ */ function() {
|
|
1663
1608
|
function r() {
|
|
1664
1609
|
dn(this, r), this.reset();
|
|
1665
1610
|
}
|
|
@@ -1691,7 +1636,7 @@ var Wl = _r * _r, xs = function(t, e) {
|
|
|
1691
1636
|
return o !== null && xs(n.key, o.key) === 0 ? (this.tree.remove(e), o.key) : e;
|
|
1692
1637
|
}
|
|
1693
1638
|
}]), r;
|
|
1694
|
-
}(), Ji = new
|
|
1639
|
+
}(), Ji = new Yl(), Hi = function(t, e) {
|
|
1695
1640
|
return t.x * e.y - t.y * e.x;
|
|
1696
1641
|
}, Ja = function(t, e) {
|
|
1697
1642
|
return t.x * e.x + t.y * e.y;
|
|
@@ -1706,7 +1651,7 @@ var Wl = _r * _r, xs = function(t, e) {
|
|
|
1706
1651
|
return xs(s, 0);
|
|
1707
1652
|
}, To = function(t) {
|
|
1708
1653
|
return Math.sqrt(Ja(t, t));
|
|
1709
|
-
},
|
|
1654
|
+
}, Hl = function(t, e, n) {
|
|
1710
1655
|
var i = {
|
|
1711
1656
|
x: e.x - t.x,
|
|
1712
1657
|
y: e.y - t.y
|
|
@@ -1715,7 +1660,7 @@ var Wl = _r * _r, xs = function(t, e) {
|
|
|
1715
1660
|
y: n.y - t.y
|
|
1716
1661
|
};
|
|
1717
1662
|
return Hi(o, i) / To(o) / To(i);
|
|
1718
|
-
},
|
|
1663
|
+
}, Wl = function(t, e, n) {
|
|
1719
1664
|
var i = {
|
|
1720
1665
|
x: e.x - t.x,
|
|
1721
1666
|
y: e.y - t.y
|
|
@@ -1734,7 +1679,7 @@ var Wl = _r * _r, xs = function(t, e) {
|
|
|
1734
1679
|
x: n,
|
|
1735
1680
|
y: t.y + e.y / e.x * (n - t.x)
|
|
1736
1681
|
};
|
|
1737
|
-
},
|
|
1682
|
+
}, jl = function(t, e, n, i) {
|
|
1738
1683
|
if (e.x === 0)
|
|
1739
1684
|
return ya(n, i, t.x);
|
|
1740
1685
|
if (i.x === 0)
|
|
@@ -1823,8 +1768,8 @@ var Wl = _r * _r, xs = function(t, e) {
|
|
|
1823
1768
|
var n = this, i = /* @__PURE__ */ new Map(), o = function(a) {
|
|
1824
1769
|
var u = a.otherSE;
|
|
1825
1770
|
i.set(a, {
|
|
1826
|
-
sine:
|
|
1827
|
-
cosine:
|
|
1771
|
+
sine: Hl(n.point, e.point, u.point),
|
|
1772
|
+
cosine: Wl(n.point, e.point, u.point)
|
|
1828
1773
|
});
|
|
1829
1774
|
};
|
|
1830
1775
|
return function(s, a) {
|
|
@@ -1834,7 +1779,7 @@ var Wl = _r * _r, xs = function(t, e) {
|
|
|
1834
1779
|
};
|
|
1835
1780
|
}
|
|
1836
1781
|
}]), r;
|
|
1837
|
-
}(),
|
|
1782
|
+
}(), Kl = 0, Mo = /* @__PURE__ */ function() {
|
|
1838
1783
|
Ie(r, null, [{
|
|
1839
1784
|
key: "compare",
|
|
1840
1785
|
/* This compare() function is for ordering segments in the sweep
|
|
@@ -1910,7 +1855,7 @@ var Wl = _r * _r, xs = function(t, e) {
|
|
|
1910
1855
|
* and possibly will be later modified */
|
|
1911
1856
|
}]);
|
|
1912
1857
|
function r(t, e, n, i) {
|
|
1913
|
-
dn(this, r), this.id = ++
|
|
1858
|
+
dn(this, r), this.id = ++Kl, this.leftSE = t, t.segment = this, t.otherSE = e, this.rightSE = e, e.segment = this, e.otherSE = t, this.rings = n, this.windings = i;
|
|
1914
1859
|
}
|
|
1915
1860
|
return Ie(r, [{
|
|
1916
1861
|
key: "replaceRightSE",
|
|
@@ -2008,7 +1953,7 @@ var Wl = _r * _r, xs = function(t, e) {
|
|
|
2008
1953
|
return a;
|
|
2009
1954
|
if (h)
|
|
2010
1955
|
return l;
|
|
2011
|
-
var p =
|
|
1956
|
+
var p = jl(s, this.vector(), u, e.vector());
|
|
2012
1957
|
return p === null || !Vi(o, p) ? null : Ji.round(p.x, p.y);
|
|
2013
1958
|
}
|
|
2014
1959
|
/**
|
|
@@ -2208,7 +2153,7 @@ var Wl = _r * _r, xs = function(t, e) {
|
|
|
2208
2153
|
return e;
|
|
2209
2154
|
}
|
|
2210
2155
|
}]), r;
|
|
2211
|
-
}(),
|
|
2156
|
+
}(), Ql = /* @__PURE__ */ function() {
|
|
2212
2157
|
function r(t, e) {
|
|
2213
2158
|
if (dn(this, r), !Array.isArray(t))
|
|
2214
2159
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
@@ -2256,7 +2201,7 @@ var Wl = _r * _r, xs = function(t, e) {
|
|
|
2256
2201
|
}
|
|
2257
2202
|
};
|
|
2258
2203
|
for (var n = 0, i = t.length; n < i; n++) {
|
|
2259
|
-
var o = new
|
|
2204
|
+
var o = new Ql(t[n], this);
|
|
2260
2205
|
o.bbox.ll.x < this.bbox.ll.x && (this.bbox.ll.x = o.bbox.ll.x), o.bbox.ll.y < this.bbox.ll.y && (this.bbox.ll.y = o.bbox.ll.y), o.bbox.ur.x > this.bbox.ur.x && (this.bbox.ur.x = o.bbox.ur.x), o.bbox.ur.y > this.bbox.ur.y && (this.bbox.ur.y = o.bbox.ur.y), this.polys.push(o);
|
|
2261
2206
|
}
|
|
2262
2207
|
this.isSubject = e;
|
|
@@ -2270,7 +2215,7 @@ var Wl = _r * _r, xs = function(t, e) {
|
|
|
2270
2215
|
return e;
|
|
2271
2216
|
}
|
|
2272
2217
|
}]), r;
|
|
2273
|
-
}(),
|
|
2218
|
+
}(), Jl = /* @__PURE__ */ function() {
|
|
2274
2219
|
Ie(r, null, [{
|
|
2275
2220
|
key: "factory",
|
|
2276
2221
|
/* Given the segments from the sweep line pass, compute & return a series
|
|
@@ -2390,7 +2335,7 @@ var Wl = _r * _r, xs = function(t, e) {
|
|
|
2390
2335
|
return e;
|
|
2391
2336
|
}
|
|
2392
2337
|
}]), r;
|
|
2393
|
-
}(),
|
|
2338
|
+
}(), Zl = /* @__PURE__ */ function() {
|
|
2394
2339
|
function r(t) {
|
|
2395
2340
|
dn(this, r), this.rings = t, this.polys = this._composePolys(t);
|
|
2396
2341
|
}
|
|
@@ -2419,7 +2364,7 @@ var Wl = _r * _r, xs = function(t, e) {
|
|
|
2419
2364
|
return n;
|
|
2420
2365
|
}
|
|
2421
2366
|
}]), r;
|
|
2422
|
-
}(),
|
|
2367
|
+
}(), $l = /* @__PURE__ */ function() {
|
|
2423
2368
|
function r(t) {
|
|
2424
2369
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Mo.compare;
|
|
2425
2370
|
dn(this, r), this.queue = t, this.tree = new Ts(e), this.segments = [];
|
|
@@ -2495,7 +2440,7 @@ var Wl = _r * _r, xs = function(t, e) {
|
|
|
2495
2440
|
return o.push(i), e.consumedBy === void 0 && this.tree.insert(e), o;
|
|
2496
2441
|
}
|
|
2497
2442
|
}]), r;
|
|
2498
|
-
}(), Ia = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1e6,
|
|
2443
|
+
}(), Ia = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1e6, tc = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS || 1e6, ec = /* @__PURE__ */ function() {
|
|
2499
2444
|
function r() {
|
|
2500
2445
|
dn(this, r);
|
|
2501
2446
|
}
|
|
@@ -2518,7 +2463,7 @@ var Wl = _r * _r, xs = function(t, e) {
|
|
|
2518
2463
|
for (var C = o[d].getSweepEvents(), E = 0, N = C.length; E < N; E++)
|
|
2519
2464
|
if (_.insert(C[E]), _.size > Ia)
|
|
2520
2465
|
throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");
|
|
2521
|
-
for (var w = new
|
|
2466
|
+
for (var w = new $l(_), b = _.size, A = _.pop(); A; ) {
|
|
2522
2467
|
var F = A.key;
|
|
2523
2468
|
if (_.size === b) {
|
|
2524
2469
|
var D = F.segment;
|
|
@@ -2526,7 +2471,7 @@ var Wl = _r * _r, xs = function(t, e) {
|
|
|
2526
2471
|
}
|
|
2527
2472
|
if (_.size > Ia)
|
|
2528
2473
|
throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big). Please file a bug report.");
|
|
2529
|
-
if (w.segments.length >
|
|
2474
|
+
if (w.segments.length > tc)
|
|
2530
2475
|
throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments). Please file a bug report.");
|
|
2531
2476
|
for (var R = w.process(F), z = 0, q = R.length; z < q; z++) {
|
|
2532
2477
|
var rt = R[z];
|
|
@@ -2535,31 +2480,31 @@ var Wl = _r * _r, xs = function(t, e) {
|
|
|
2535
2480
|
b = _.size, A = _.pop();
|
|
2536
2481
|
}
|
|
2537
2482
|
Ji.reset();
|
|
2538
|
-
var O =
|
|
2483
|
+
var O = Jl.factory(w.segments), Y = new Zl(O);
|
|
2539
2484
|
return Y.getGeom();
|
|
2540
2485
|
}
|
|
2541
2486
|
}]), r;
|
|
2542
|
-
}(), In = new
|
|
2487
|
+
}(), In = new ec(), nc = function(t) {
|
|
2543
2488
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
2544
2489
|
n[i - 1] = arguments[i];
|
|
2545
2490
|
return In.run("union", t, n);
|
|
2546
|
-
},
|
|
2491
|
+
}, rc = function(t) {
|
|
2547
2492
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
2548
2493
|
n[i - 1] = arguments[i];
|
|
2549
2494
|
return In.run("intersection", t, n);
|
|
2550
|
-
},
|
|
2495
|
+
}, ic = function(t) {
|
|
2551
2496
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
2552
2497
|
n[i - 1] = arguments[i];
|
|
2553
2498
|
return In.run("xor", t, n);
|
|
2554
|
-
},
|
|
2499
|
+
}, oc = function(t) {
|
|
2555
2500
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
2556
2501
|
n[i - 1] = arguments[i];
|
|
2557
2502
|
return In.run("difference", t, n);
|
|
2558
2503
|
}, Za = {
|
|
2559
|
-
union:
|
|
2560
|
-
intersection:
|
|
2561
|
-
xor:
|
|
2562
|
-
difference:
|
|
2504
|
+
union: nc,
|
|
2505
|
+
intersection: rc,
|
|
2506
|
+
xor: ic,
|
|
2507
|
+
difference: oc
|
|
2563
2508
|
}, me = 63710088e-1, $a = {
|
|
2564
2509
|
centimeters: me * 100,
|
|
2565
2510
|
centimetres: me * 100,
|
|
@@ -2582,7 +2527,7 @@ function Ho(r, t, e) {
|
|
|
2582
2527
|
var n = { type: "Feature" };
|
|
2583
2528
|
return (e.id === 0 || e.id) && (n.id = e.id), e.bbox && (n.bbox = e.bbox), n.properties = t || {}, n.geometry = r, n;
|
|
2584
2529
|
}
|
|
2585
|
-
function
|
|
2530
|
+
function sc(r, t, e) {
|
|
2586
2531
|
if (e === void 0 && (e = {}), !r)
|
|
2587
2532
|
throw new Error("coordinates is required");
|
|
2588
2533
|
if (!Array.isArray(r))
|
|
@@ -2626,14 +2571,14 @@ function eu(r, t, e) {
|
|
|
2626
2571
|
};
|
|
2627
2572
|
return Ho(n, t, e);
|
|
2628
2573
|
}
|
|
2629
|
-
function
|
|
2574
|
+
function ac(r, t) {
|
|
2630
2575
|
t === void 0 && (t = "kilometers");
|
|
2631
2576
|
var e = $a[t];
|
|
2632
2577
|
if (!e)
|
|
2633
2578
|
throw new Error(t + " units is invalid");
|
|
2634
2579
|
return r * e;
|
|
2635
2580
|
}
|
|
2636
|
-
function
|
|
2581
|
+
function uc(r, t) {
|
|
2637
2582
|
t === void 0 && (t = "kilometers");
|
|
2638
2583
|
var e = $a[t];
|
|
2639
2584
|
if (!e)
|
|
@@ -2646,17 +2591,65 @@ function Ca(r) {
|
|
|
2646
2591
|
function Ao(r) {
|
|
2647
2592
|
return r.type === "Feature" ? r.geometry : r;
|
|
2648
2593
|
}
|
|
2649
|
-
function
|
|
2594
|
+
function lc(r, t, e) {
|
|
2650
2595
|
e === void 0 && (e = {});
|
|
2651
2596
|
var n = Ao(r), i = Ao(t), o = Za.union(n.coordinates, i.coordinates);
|
|
2652
2597
|
return o.length === 0 ? null : o.length === 1 ? tu(o[0], e.properties) : eu(o, e.properties);
|
|
2653
2598
|
}
|
|
2654
|
-
function
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2599
|
+
function cc(r) {
|
|
2600
|
+
let t, e, n;
|
|
2601
|
+
return {
|
|
2602
|
+
c() {
|
|
2603
|
+
t = Nr("svg"), e = Nr("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 = /*displayIn*/
|
|
2604
|
+
r[0] !== "list" ? void 0 : "20"), B(t, "viewBox", "0 0 70 85"), B(t, "fill", "none"), B(t, "class", "svelte-1k1cmht"), en(
|
|
2605
|
+
t,
|
|
2606
|
+
"in-map",
|
|
2607
|
+
/*displayIn*/
|
|
2608
|
+
r[0] !== "list"
|
|
2609
|
+
), en(
|
|
2610
|
+
t,
|
|
2611
|
+
"list-icon",
|
|
2612
|
+
/*displayIn*/
|
|
2613
|
+
r[0] === "list"
|
|
2614
|
+
);
|
|
2615
|
+
},
|
|
2616
|
+
m(i, o) {
|
|
2617
|
+
We(i, t, o), ct(t, e);
|
|
2618
|
+
},
|
|
2619
|
+
p(i, [o]) {
|
|
2620
|
+
o & /*displayIn*/
|
|
2621
|
+
1 && n !== (n = /*displayIn*/
|
|
2622
|
+
i[0] !== "list" ? void 0 : "20") && B(t, "width", n), o & /*displayIn*/
|
|
2623
|
+
1 && en(
|
|
2624
|
+
t,
|
|
2625
|
+
"in-map",
|
|
2626
|
+
/*displayIn*/
|
|
2627
|
+
i[0] !== "list"
|
|
2628
|
+
), o & /*displayIn*/
|
|
2629
|
+
1 && en(
|
|
2630
|
+
t,
|
|
2631
|
+
"list-icon",
|
|
2632
|
+
/*displayIn*/
|
|
2633
|
+
i[0] === "list"
|
|
2634
|
+
);
|
|
2635
|
+
},
|
|
2636
|
+
i: Zt,
|
|
2637
|
+
o: Zt,
|
|
2638
|
+
d(i) {
|
|
2639
|
+
i && Te(t);
|
|
2640
|
+
}
|
|
2641
|
+
};
|
|
2642
|
+
}
|
|
2643
|
+
function fc(r, t, e) {
|
|
2644
|
+
let { displayIn: n } = t;
|
|
2645
|
+
return r.$$set = (i) => {
|
|
2646
|
+
"displayIn" in i && e(0, n = i.displayIn);
|
|
2647
|
+
}, [n];
|
|
2648
|
+
}
|
|
2649
|
+
class hc extends Ai {
|
|
2650
|
+
constructor(t) {
|
|
2651
|
+
super(), Mi(this, t, fc, cc, Ti, { displayIn: 0 });
|
|
2652
|
+
}
|
|
2660
2653
|
}
|
|
2661
2654
|
function nu(r, t, e) {
|
|
2662
2655
|
if (r !== null)
|
|
@@ -2810,10 +2803,10 @@ function ws(r) {
|
|
|
2810
2803
|
}), t;
|
|
2811
2804
|
}
|
|
2812
2805
|
ws.default = ws;
|
|
2813
|
-
function
|
|
2806
|
+
function gc(r, t) {
|
|
2814
2807
|
t === void 0 && (t = {});
|
|
2815
2808
|
var e = ws(r), n = (e[0] + e[2]) / 2, i = (e[1] + e[3]) / 2;
|
|
2816
|
-
return
|
|
2809
|
+
return sc([n, i], t.properties, t);
|
|
2817
2810
|
}
|
|
2818
2811
|
"fill" in Array.prototype || Object.defineProperty(Array.prototype, "fill", {
|
|
2819
2812
|
configurable: !0,
|
|
@@ -4350,7 +4343,7 @@ ni.COLLINEAR_INTERSECTION.get = function() {
|
|
|
4350
4343
|
return 2;
|
|
4351
4344
|
};
|
|
4352
4345
|
Object.defineProperties(ft, ni);
|
|
4353
|
-
var
|
|
4346
|
+
var Ar = function(r) {
|
|
4354
4347
|
function t() {
|
|
4355
4348
|
r.apply(this, arguments);
|
|
4356
4349
|
}
|
|
@@ -4659,7 +4652,7 @@ P.distancePointLine = function() {
|
|
|
4659
4652
|
}
|
|
4660
4653
|
};
|
|
4661
4654
|
P.isOnLine = function(t, e) {
|
|
4662
|
-
for (var n = new
|
|
4655
|
+
for (var n = new Ar(), i = 1; i < e.length; i++) {
|
|
4663
4656
|
var o = e[i - 1], s = e[i];
|
|
4664
4657
|
if (n.computeIntersection(t, o, s), n.hasIntersection())
|
|
4665
4658
|
return !0;
|
|
@@ -5010,7 +5003,7 @@ var L = function(r) {
|
|
|
5010
5003
|
var o = this.array_[n];
|
|
5011
5004
|
return this.array_[n] = i, o;
|
|
5012
5005
|
}, t.prototype.iterator = function() {
|
|
5013
|
-
return new
|
|
5006
|
+
return new pc(this);
|
|
5014
5007
|
}, t.prototype.get = function(n) {
|
|
5015
5008
|
if (n < 0 || n >= this.size())
|
|
5016
5009
|
throw new As();
|
|
@@ -5031,7 +5024,7 @@ var L = function(r) {
|
|
|
5031
5024
|
}
|
|
5032
5025
|
return o;
|
|
5033
5026
|
}, t;
|
|
5034
|
-
}(ke),
|
|
5027
|
+
}(ke), pc = function(r) {
|
|
5035
5028
|
function t(e) {
|
|
5036
5029
|
r.call(this), this.arrayList_ = e, this.position_ = 0;
|
|
5037
5030
|
}
|
|
@@ -5360,7 +5353,7 @@ ii.prototype.values = function() {
|
|
|
5360
5353
|
};
|
|
5361
5354
|
ii.prototype.entrySet = function() {
|
|
5362
5355
|
};
|
|
5363
|
-
var
|
|
5356
|
+
var dc = function(r) {
|
|
5364
5357
|
function t() {
|
|
5365
5358
|
r.apply(this, arguments);
|
|
5366
5359
|
}
|
|
@@ -5404,9 +5397,9 @@ var Fs = function(r) {
|
|
|
5404
5397
|
i.push(n.array_[o]);
|
|
5405
5398
|
return i;
|
|
5406
5399
|
}, t.prototype.iterator = function() {
|
|
5407
|
-
return new
|
|
5400
|
+
return new vc(this);
|
|
5408
5401
|
}, t;
|
|
5409
|
-
}(Qo),
|
|
5402
|
+
}(Qo), vc = function(r) {
|
|
5410
5403
|
function t(e) {
|
|
5411
5404
|
r.call(this), this.hashSet_ = e, this.position_ = 0;
|
|
5412
5405
|
}
|
|
@@ -5419,7 +5412,7 @@ var Fs = function(r) {
|
|
|
5419
5412
|
}, t.prototype.remove = function() {
|
|
5420
5413
|
throw new vo();
|
|
5421
5414
|
}, t;
|
|
5422
|
-
}(Bi), Un = 0,
|
|
5415
|
+
}(Bi), Un = 0, yr = 1;
|
|
5423
5416
|
function xa(r) {
|
|
5424
5417
|
return r === null ? Un : r.color;
|
|
5425
5418
|
}
|
|
@@ -5438,7 +5431,7 @@ function Sa(r) {
|
|
|
5438
5431
|
function Yt() {
|
|
5439
5432
|
this.root_ = null, this.size_ = 0;
|
|
5440
5433
|
}
|
|
5441
|
-
Yt.prototype = new
|
|
5434
|
+
Yt.prototype = new dc();
|
|
5442
5435
|
Yt.prototype.get = function(r) {
|
|
5443
5436
|
for (var t = this.root_; t !== null; ) {
|
|
5444
5437
|
var e = r.compareTo(t.key);
|
|
@@ -5496,13 +5489,13 @@ Yt.prototype.put = function(r, t) {
|
|
|
5496
5489
|
};
|
|
5497
5490
|
Yt.prototype.fixAfterInsertion = function(r) {
|
|
5498
5491
|
var t = this;
|
|
5499
|
-
for (r.color =
|
|
5492
|
+
for (r.color = yr; r != null && r !== this.root_ && r.parent.color === yr; )
|
|
5500
5493
|
if (ot(r) === gs(ot(ot(r)))) {
|
|
5501
5494
|
var e = Sa(ot(ot(r)));
|
|
5502
|
-
xa(e) ===
|
|
5495
|
+
xa(e) === yr ? (Gn(ot(r), Un), Gn(e, Un), Gn(ot(ot(r)), yr), r = ot(ot(r))) : (r === Sa(ot(r)) && (r = ot(r), t.rotateLeft(r)), Gn(ot(r), Un), Gn(ot(ot(r)), yr), t.rotateRight(ot(ot(r))));
|
|
5503
5496
|
} else {
|
|
5504
5497
|
var n = gs(ot(ot(r)));
|
|
5505
|
-
xa(n) ===
|
|
5498
|
+
xa(n) === yr ? (Gn(ot(r), Un), Gn(n, Un), Gn(ot(ot(r)), yr), r = ot(ot(r))) : (r === gs(ot(r)) && (r = ot(r), t.rotateRight(r)), Gn(ot(r), Un), Gn(ot(ot(r)), yr), t.rotateLeft(ot(ot(r))));
|
|
5506
5499
|
}
|
|
5507
5500
|
this.root_.color = Un;
|
|
5508
5501
|
};
|
|
@@ -5625,9 +5618,9 @@ Jo.prototype.hasNext = function() {
|
|
|
5625
5618
|
Jo.prototype.remove = function() {
|
|
5626
5619
|
throw new vo();
|
|
5627
5620
|
};
|
|
5628
|
-
var
|
|
5621
|
+
var Ir = function() {
|
|
5629
5622
|
};
|
|
5630
|
-
|
|
5623
|
+
Ir.sort = function() {
|
|
5631
5624
|
var t = arguments[0], e, n, i, o;
|
|
5632
5625
|
if (arguments.length === 1)
|
|
5633
5626
|
o = function(a, u) {
|
|
@@ -5648,7 +5641,7 @@ Er.sort = function() {
|
|
|
5648
5641
|
}, n.sort(o), s = t.slice(0, arguments[1]).concat(n, t.slice(arguments[2], t.length)), t.splice(0, t.length), e = 0; e < s.length; e++)
|
|
5649
5642
|
t.push(s[e]);
|
|
5650
5643
|
};
|
|
5651
|
-
|
|
5644
|
+
Ir.asList = function(t) {
|
|
5652
5645
|
for (var e = new L(), n = 0, i = t.length; n < i; n++)
|
|
5653
5646
|
e.add(t[n]);
|
|
5654
5647
|
return e;
|
|
@@ -5798,7 +5791,7 @@ var te = function(r) {
|
|
|
5798
5791
|
}, t.prototype.normalize = function() {
|
|
5799
5792
|
for (var i = this, o = 0; o < this._geometries.length; o++)
|
|
5800
5793
|
i._geometries[o].normalize();
|
|
5801
|
-
|
|
5794
|
+
Ir.sort(this._geometries);
|
|
5802
5795
|
}, t.prototype.getCoordinate = function() {
|
|
5803
5796
|
return this.isEmpty() ? null : this._geometries[0].getCoordinate();
|
|
5804
5797
|
}, t.prototype.getBoundaryDimension = function() {
|
|
@@ -5826,7 +5819,7 @@ var te = function(r) {
|
|
|
5826
5819
|
}, t.prototype.compareToSameClass = function() {
|
|
5827
5820
|
var i = this;
|
|
5828
5821
|
if (arguments.length === 1) {
|
|
5829
|
-
var o = arguments[0], s = new sn(
|
|
5822
|
+
var o = arguments[0], s = new sn(Ir.asList(this._geometries)), a = new sn(Ir.asList(o._geometries));
|
|
5830
5823
|
return this.compare(s, a);
|
|
5831
5824
|
} else if (arguments.length === 2) {
|
|
5832
5825
|
for (var u = arguments[0], l = arguments[1], c = u, f = this.getNumGeometries(), h = c.getNumGeometries(), g = 0; g < f && g < h; ) {
|
|
@@ -5886,7 +5879,7 @@ var te = function(r) {
|
|
|
5886
5879
|
}, e.serialVersionUID.get = function() {
|
|
5887
5880
|
return -5694727726395021e3;
|
|
5888
5881
|
}, Object.defineProperties(t, e), t;
|
|
5889
|
-
}(G),
|
|
5882
|
+
}(G), Sr = function(r) {
|
|
5890
5883
|
function t() {
|
|
5891
5884
|
r.apply(this, arguments);
|
|
5892
5885
|
}
|
|
@@ -5947,7 +5940,7 @@ Le.prototype.boundaryMultiLineString = function(t) {
|
|
|
5947
5940
|
return e.length === 1 ? this._geomFact.createPoint(e[0]) : this._geomFact.createMultiPointFromCoords(e);
|
|
5948
5941
|
};
|
|
5949
5942
|
Le.prototype.getBoundary = function() {
|
|
5950
|
-
return this._geom instanceof pt ? this.boundaryLineString(this._geom) : this._geom instanceof
|
|
5943
|
+
return this._geom instanceof pt ? this.boundaryLineString(this._geom) : this._geom instanceof Sr ? this.boundaryMultiLineString(this._geom) : this._geom.getBoundary();
|
|
5951
5944
|
};
|
|
5952
5945
|
Le.prototype.boundaryLineString = function(t) {
|
|
5953
5946
|
if (this._geom.isEmpty())
|
|
@@ -6002,18 +5995,18 @@ Bo.prototype.interfaces_ = function() {
|
|
|
6002
5995
|
Bo.prototype.getClass = function() {
|
|
6003
5996
|
return Bo;
|
|
6004
5997
|
};
|
|
6005
|
-
function
|
|
5998
|
+
function yc() {
|
|
6006
5999
|
}
|
|
6007
|
-
function
|
|
6000
|
+
function mc() {
|
|
6008
6001
|
}
|
|
6009
|
-
var
|
|
6002
|
+
var _c = function() {
|
|
6010
6003
|
};
|
|
6004
|
+
function Ec() {
|
|
6005
|
+
}
|
|
6011
6006
|
function Ic() {
|
|
6012
6007
|
}
|
|
6013
6008
|
function Cc() {
|
|
6014
6009
|
}
|
|
6015
|
-
function Nc() {
|
|
6016
|
-
}
|
|
6017
6010
|
var be = function() {
|
|
6018
6011
|
}, Bs = { NEWLINE: { configurable: !0 }, SIMPLE_ORDINATE_FORMAT: { configurable: !0 } };
|
|
6019
6012
|
be.prototype.interfaces_ = function() {
|
|
@@ -6029,16 +6022,16 @@ be.chars = function(t, e) {
|
|
|
6029
6022
|
};
|
|
6030
6023
|
be.getStackTrace = function() {
|
|
6031
6024
|
if (arguments.length === 1) {
|
|
6032
|
-
var t = arguments[0], e = new
|
|
6025
|
+
var t = arguments[0], e = new Ec(), n = new yc();
|
|
6033
6026
|
return t.printStackTrace(n), e.toString();
|
|
6034
6027
|
} else if (arguments.length === 2) {
|
|
6035
6028
|
var i = arguments[0], o = arguments[1], s = "";
|
|
6036
|
-
new
|
|
6037
|
-
for (var a = new
|
|
6029
|
+
new mc(be.getStackTrace(i));
|
|
6030
|
+
for (var a = new Cc(), u = 0; u < o; u++)
|
|
6038
6031
|
try {
|
|
6039
6032
|
s += a.readLine() + be.NEWLINE;
|
|
6040
6033
|
} catch (l) {
|
|
6041
|
-
if (l instanceof
|
|
6034
|
+
if (l instanceof Ic)
|
|
6042
6035
|
X.shouldNeverReachHere();
|
|
6043
6036
|
else
|
|
6044
6037
|
throw l;
|
|
@@ -6070,7 +6063,7 @@ Bs.NEWLINE.get = function() {
|
|
|
6070
6063
|
return kt.getProperty("line.separator");
|
|
6071
6064
|
};
|
|
6072
6065
|
Bs.SIMPLE_ORDINATE_FORMAT.get = function() {
|
|
6073
|
-
return new
|
|
6066
|
+
return new _c();
|
|
6074
6067
|
};
|
|
6075
6068
|
Object.defineProperties(be, Bs);
|
|
6076
6069
|
var _t = function() {
|
|
@@ -6454,7 +6447,7 @@ var Pt = function(r) {
|
|
|
6454
6447
|
this.normalize(this._shell, !0);
|
|
6455
6448
|
for (var o = 0; o < this._holes.length; o++)
|
|
6456
6449
|
i.normalize(i._holes[o], !1);
|
|
6457
|
-
|
|
6450
|
+
Ir.sort(this._holes);
|
|
6458
6451
|
} else if (arguments.length === 2) {
|
|
6459
6452
|
var s = arguments[0], a = arguments[1];
|
|
6460
6453
|
if (s.isEmpty())
|
|
@@ -6699,7 +6692,7 @@ Oe.prototype.editGeometryCollection = function(t, e) {
|
|
|
6699
6692
|
var a = n.edit(i.getGeometryN(s), e);
|
|
6700
6693
|
a === null || a.isEmpty() || o.add(a);
|
|
6701
6694
|
}
|
|
6702
|
-
return i.getClass() === mi ? this._factory.createMultiPoint(o.toArray([])) : i.getClass() ===
|
|
6695
|
+
return i.getClass() === mi ? this._factory.createMultiPoint(o.toArray([])) : i.getClass() === Sr ? this._factory.createMultiLineString(o.toArray([])) : i.getClass() === Cn ? this._factory.createMultiPolygon(o.toArray([])) : this._factory.createGeometryCollection(o.toArray([]));
|
|
6703
6696
|
};
|
|
6704
6697
|
Oe.prototype.editPolygon = function(t, e) {
|
|
6705
6698
|
var n = this, i = e.edit(t, this._factory);
|
|
@@ -7062,10 +7055,10 @@ H.prototype.createLineString = function(t) {
|
|
|
7062
7055
|
};
|
|
7063
7056
|
H.prototype.createMultiLineString = function() {
|
|
7064
7057
|
if (arguments.length === 0)
|
|
7065
|
-
return new
|
|
7058
|
+
return new Sr(null, this);
|
|
7066
7059
|
if (arguments.length === 1) {
|
|
7067
7060
|
var t = arguments[0];
|
|
7068
|
-
return new
|
|
7061
|
+
return new Sr(t, this);
|
|
7069
7062
|
}
|
|
7070
7063
|
};
|
|
7071
7064
|
H.prototype.buildGeometry = function(t) {
|
|
@@ -7246,7 +7239,7 @@ hu.serialVersionUID.get = function() {
|
|
|
7246
7239
|
return -6820524753094096e3;
|
|
7247
7240
|
};
|
|
7248
7241
|
Object.defineProperties(H, hu);
|
|
7249
|
-
var
|
|
7242
|
+
var Nc = ["Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"], $o = function(t) {
|
|
7250
7243
|
this.geometryFactory = t || new H();
|
|
7251
7244
|
};
|
|
7252
7245
|
$o.prototype.read = function(t) {
|
|
@@ -7255,7 +7248,7 @@ $o.prototype.read = function(t) {
|
|
|
7255
7248
|
var n = e.type;
|
|
7256
7249
|
if (!$e[n])
|
|
7257
7250
|
throw new Error("Unknown GeoJSON type: " + e.type);
|
|
7258
|
-
return
|
|
7251
|
+
return Nc.indexOf(n) !== -1 ? $e[n].apply(this, [e.coordinates]) : n === "GeometryCollection" ? $e[n].apply(this, [e.geometries]) : $e[n].apply(this, [e]);
|
|
7259
7252
|
};
|
|
7260
7253
|
$o.prototype.write = function(t) {
|
|
7261
7254
|
var e = t.getGeometryType();
|
|
@@ -8161,7 +8154,7 @@ Nt.prototype.interfaces_ = function() {
|
|
|
8161
8154
|
Nt.prototype.getClass = function() {
|
|
8162
8155
|
return Nt;
|
|
8163
8156
|
};
|
|
8164
|
-
var
|
|
8157
|
+
var xc = function(r) {
|
|
8165
8158
|
function t() {
|
|
8166
8159
|
var e = arguments[0], n = arguments[1];
|
|
8167
8160
|
r.call(this, e, n);
|
|
@@ -8175,7 +8168,7 @@ var Sc = function(r) {
|
|
|
8175
8168
|
}, t.prototype.getClass = function() {
|
|
8176
8169
|
return t;
|
|
8177
8170
|
}, t;
|
|
8178
|
-
}(Nt),
|
|
8171
|
+
}(Nt), Sc = function(r) {
|
|
8179
8172
|
function t() {
|
|
8180
8173
|
var e = arguments[0], n = arguments[1];
|
|
8181
8174
|
r.call(this, e, n);
|
|
@@ -8184,7 +8177,7 @@ var Sc = function(r) {
|
|
|
8184
8177
|
var n = this, i = new L(), o = this._startDe;
|
|
8185
8178
|
do {
|
|
8186
8179
|
if (o.getMinEdgeRing() === null) {
|
|
8187
|
-
var s = new
|
|
8180
|
+
var s = new xc(o, n._geometryFactory);
|
|
8188
8181
|
i.add(s);
|
|
8189
8182
|
}
|
|
8190
8183
|
o = o.getNext();
|
|
@@ -8749,7 +8742,7 @@ pe.prototype.buildMaximalEdgeRings = function(t) {
|
|
|
8749
8742
|
for (var e = this, n = new L(), i = t.iterator(); i.hasNext(); ) {
|
|
8750
8743
|
var o = i.next();
|
|
8751
8744
|
if (o.isInResult() && o.getLabel().isArea() && o.getEdgeRing() === null) {
|
|
8752
|
-
var s = new
|
|
8745
|
+
var s = new Sc(o, e._geometryFactory);
|
|
8753
8746
|
n.add(s), s.setInResult();
|
|
8754
8747
|
}
|
|
8755
8748
|
}
|
|
@@ -8936,7 +8929,7 @@ qe.min = function(t) {
|
|
|
8936
8929
|
};
|
|
8937
8930
|
qe.sort = function(t, e) {
|
|
8938
8931
|
var n = t.toArray();
|
|
8939
|
-
e ?
|
|
8932
|
+
e ? Ir.sort(n, e) : Ir.sort(n);
|
|
8940
8933
|
for (var i = t.iterator(), o = 0, s = n.length; o < s; o++)
|
|
8941
8934
|
i.next(), i.set(n[o]);
|
|
8942
8935
|
};
|
|
@@ -9162,7 +9155,7 @@ Ot.compareDoubles = function(t, e) {
|
|
|
9162
9155
|
return t > e ? 1 : t < e ? -1 : 0;
|
|
9163
9156
|
};
|
|
9164
9157
|
is.IntersectsOp.get = function() {
|
|
9165
|
-
return
|
|
9158
|
+
return wc;
|
|
9166
9159
|
};
|
|
9167
9160
|
is.serialVersionUID.get = function() {
|
|
9168
9161
|
return -3886435814360241e3;
|
|
@@ -9171,7 +9164,7 @@ is.DEFAULT_NODE_CAPACITY.get = function() {
|
|
|
9171
9164
|
return 10;
|
|
9172
9165
|
};
|
|
9173
9166
|
Object.defineProperties(Ot, is);
|
|
9174
|
-
var
|
|
9167
|
+
var wc = function() {
|
|
9175
9168
|
}, Ii = function() {
|
|
9176
9169
|
};
|
|
9177
9170
|
Ii.prototype.distance = function(t, e) {
|
|
@@ -9665,7 +9658,7 @@ M.prototype.equals = function(t) {
|
|
|
9665
9658
|
return this.p0.equals(e.p0) && this.p1.equals(e.p1);
|
|
9666
9659
|
};
|
|
9667
9660
|
M.prototype.intersection = function(t) {
|
|
9668
|
-
var e = new
|
|
9661
|
+
var e = new Ar();
|
|
9669
9662
|
return e.computeIntersection(this.p0, this.p1, t.p0, t.p1), e.hasIntersection() ? e.getIntersection(0) : null;
|
|
9670
9663
|
};
|
|
9671
9664
|
M.prototype.project = function() {
|
|
@@ -9960,17 +9953,17 @@ rn.toIntArray = function(t) {
|
|
|
9960
9953
|
e[n] = t.get(n).intValue();
|
|
9961
9954
|
return e;
|
|
9962
9955
|
};
|
|
9963
|
-
var
|
|
9956
|
+
var wr = function() {
|
|
9964
9957
|
};
|
|
9965
|
-
|
|
9958
|
+
wr.prototype.computeNodes = function(t) {
|
|
9966
9959
|
};
|
|
9967
|
-
|
|
9960
|
+
wr.prototype.getNodedSubstrings = function() {
|
|
9968
9961
|
};
|
|
9969
|
-
|
|
9962
|
+
wr.prototype.interfaces_ = function() {
|
|
9970
9963
|
return [];
|
|
9971
9964
|
};
|
|
9972
|
-
|
|
9973
|
-
return
|
|
9965
|
+
wr.prototype.getClass = function() {
|
|
9966
|
+
return wr;
|
|
9974
9967
|
};
|
|
9975
9968
|
var ao = function() {
|
|
9976
9969
|
if (this._segInt = null, arguments.length !== 0) {
|
|
@@ -9984,7 +9977,7 @@ ao.prototype.setSegmentIntersector = function(t) {
|
|
|
9984
9977
|
this._segInt = t;
|
|
9985
9978
|
};
|
|
9986
9979
|
ao.prototype.interfaces_ = function() {
|
|
9987
|
-
return [
|
|
9980
|
+
return [wr];
|
|
9988
9981
|
};
|
|
9989
9982
|
ao.prototype.getClass = function() {
|
|
9990
9983
|
return ao;
|
|
@@ -10360,7 +10353,7 @@ Object.defineProperties(j, oi);
|
|
|
10360
10353
|
var ut = function r() {
|
|
10361
10354
|
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 M(), this._seg1 = new M(), this._offset0 = new M(), this._offset1 = new M(), this._side = 0, this._hasNarrowConcaveAngle = !1;
|
|
10362
10355
|
var t = arguments[0], e = arguments[1], n = arguments[2];
|
|
10363
|
-
this._precisionModel = t, this._bufParams = e, this._li = new
|
|
10356
|
+
this._precisionModel = t, this._bufParams = e, this._li = new Ar(), this._filletAngleQuantum = Math.PI / 2 / e.getQuadrantSegments(), e.getQuadrantSegments() >= 8 && e.getJoinStyle() === J.JOIN_ROUND && (this._closingSegLengthFactor = r.MAX_CLOSING_SEG_LEN_FACTOR), this.init(n);
|
|
10364
10357
|
}, _o = { 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 } };
|
|
10365
10358
|
ut.prototype.addNextSegment = function(t, e) {
|
|
10366
10359
|
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))
|
|
@@ -10646,7 +10639,7 @@ Wr.prototype.findStabbedSegments = function() {
|
|
|
10646
10639
|
if (!(h < a.x) && !t._seg.isHorizontal() && !(a.y < t._seg.p0.y || a.y > t._seg.p1.y) && P.computeOrientation(t._seg.p0, t._seg.p1, a) !== P.RIGHT) {
|
|
10647
10640
|
var g = u.getDepth(S.LEFT);
|
|
10648
10641
|
t._seg.p0.equals(c[f]) || (g = u.getDepth(S.RIGHT));
|
|
10649
|
-
var p = new
|
|
10642
|
+
var p = new Lr(t._seg, g);
|
|
10650
10643
|
l.add(p);
|
|
10651
10644
|
}
|
|
10652
10645
|
}
|
|
@@ -10671,15 +10664,15 @@ Wr.prototype.getClass = function() {
|
|
|
10671
10664
|
return Wr;
|
|
10672
10665
|
};
|
|
10673
10666
|
mu.DepthSegment.get = function() {
|
|
10674
|
-
return
|
|
10667
|
+
return Lr;
|
|
10675
10668
|
};
|
|
10676
10669
|
Object.defineProperties(Wr, mu);
|
|
10677
|
-
var
|
|
10670
|
+
var Lr = function() {
|
|
10678
10671
|
this._upwardSeg = null, this._leftDepth = null;
|
|
10679
10672
|
var t = arguments[0], e = arguments[1];
|
|
10680
10673
|
this._upwardSeg = new M(t), this._leftDepth = e;
|
|
10681
10674
|
};
|
|
10682
|
-
|
|
10675
|
+
Lr.prototype.compareTo = function(t) {
|
|
10683
10676
|
var e = t;
|
|
10684
10677
|
if (this._upwardSeg.minX() >= e._upwardSeg.maxX())
|
|
10685
10678
|
return 1;
|
|
@@ -10688,18 +10681,18 @@ wr.prototype.compareTo = function(t) {
|
|
|
10688
10681
|
var n = this._upwardSeg.orientationIndex(e._upwardSeg);
|
|
10689
10682
|
return n !== 0 || (n = -1 * e._upwardSeg.orientationIndex(this._upwardSeg), n !== 0) ? n : this._upwardSeg.compareTo(e._upwardSeg);
|
|
10690
10683
|
};
|
|
10691
|
-
|
|
10684
|
+
Lr.prototype.compareX = function(t, e) {
|
|
10692
10685
|
var n = t.p0.compareTo(e.p0);
|
|
10693
10686
|
return n !== 0 ? n : t.p1.compareTo(e.p1);
|
|
10694
10687
|
};
|
|
10695
|
-
|
|
10688
|
+
Lr.prototype.toString = function() {
|
|
10696
10689
|
return this._upwardSeg.toString();
|
|
10697
10690
|
};
|
|
10698
|
-
|
|
10691
|
+
Lr.prototype.interfaces_ = function() {
|
|
10699
10692
|
return [Me];
|
|
10700
10693
|
};
|
|
10701
|
-
|
|
10702
|
-
return
|
|
10694
|
+
Lr.prototype.getClass = function() {
|
|
10695
|
+
return Lr;
|
|
10703
10696
|
};
|
|
10704
10697
|
var $ = function(t, e, n) {
|
|
10705
10698
|
this.p0 = t || null, this.p1 = e || null, this.p2 = n || null;
|
|
@@ -10836,7 +10829,7 @@ De.prototype.addPolygonRing = function(t, e, n, i, o) {
|
|
|
10836
10829
|
De.prototype.add = function(t) {
|
|
10837
10830
|
if (t.isEmpty())
|
|
10838
10831
|
return null;
|
|
10839
|
-
t instanceof Pt ? this.addPolygon(t) : t instanceof pt ? this.addLineString(t) : t instanceof ge ? this.addPoint(t) : t instanceof mi ? this.addCollection(t) : t instanceof
|
|
10832
|
+
t instanceof Pt ? this.addPolygon(t) : t instanceof pt ? this.addLineString(t) : t instanceof ge ? this.addPoint(t) : t instanceof mi ? this.addCollection(t) : t instanceof Sr ? this.addCollection(t) : t instanceof Cn ? this.addCollection(t) : t instanceof te && this.addCollection(t);
|
|
10840
10833
|
};
|
|
10841
10834
|
De.prototype.isErodedCompletely = function(t, e) {
|
|
10842
10835
|
var n = t.getCoordinates();
|
|
@@ -11081,7 +11074,7 @@ Wt.prototype.interfaces_ = function() {
|
|
|
11081
11074
|
Wt.prototype.getClass = function() {
|
|
11082
11075
|
return Wt;
|
|
11083
11076
|
};
|
|
11084
|
-
var
|
|
11077
|
+
var Lc = function(r) {
|
|
11085
11078
|
function t() {
|
|
11086
11079
|
r.call(this), this._resultAreaEdgeList = null, this._label = null, this._SCANNING_FOR_INCOMING = 1, this._LINKING_TO_OUTGOING = 2;
|
|
11087
11080
|
}
|
|
@@ -11239,7 +11232,7 @@ var bc = function(r) {
|
|
|
11239
11232
|
r.apply(this, arguments);
|
|
11240
11233
|
}
|
|
11241
11234
|
return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t.prototype.createNode = function(n) {
|
|
11242
|
-
return new rs(n, new
|
|
11235
|
+
return new rs(n, new Lc());
|
|
11243
11236
|
}, t.prototype.interfaces_ = function() {
|
|
11244
11237
|
return [];
|
|
11245
11238
|
}, t.prototype.getClass = function() {
|
|
@@ -11327,17 +11320,17 @@ Xe.prototype.interfaces_ = function() {
|
|
|
11327
11320
|
Xe.prototype.getClass = function() {
|
|
11328
11321
|
return Xe;
|
|
11329
11322
|
};
|
|
11330
|
-
var
|
|
11323
|
+
var br = function() {
|
|
11331
11324
|
};
|
|
11332
|
-
|
|
11325
|
+
br.prototype.processIntersections = function(t, e, n, i) {
|
|
11333
11326
|
};
|
|
11334
|
-
|
|
11327
|
+
br.prototype.isDone = function() {
|
|
11335
11328
|
};
|
|
11336
|
-
|
|
11329
|
+
br.prototype.interfaces_ = function() {
|
|
11337
11330
|
return [];
|
|
11338
11331
|
};
|
|
11339
|
-
|
|
11340
|
-
return
|
|
11332
|
+
br.prototype.getClass = function() {
|
|
11333
|
+
return br;
|
|
11341
11334
|
};
|
|
11342
11335
|
var Se = function() {
|
|
11343
11336
|
this._hasIntersection = !1, this._hasProper = !1, this._hasProperInterior = !1, this._hasInterior = !1, this._properIntersectionPoint = null, this._li = null, this._isSelfIntersection = null, this.numIntersections = 0, this.numInteriorIntersections = 0, this.numProperIntersections = 0, this.numTests = 0;
|
|
@@ -11385,7 +11378,7 @@ Se.prototype.hasInteriorIntersection = function() {
|
|
|
11385
11378
|
return this._hasInterior;
|
|
11386
11379
|
};
|
|
11387
11380
|
Se.prototype.interfaces_ = function() {
|
|
11388
|
-
return [
|
|
11381
|
+
return [br];
|
|
11389
11382
|
};
|
|
11390
11383
|
Se.prototype.getClass = function() {
|
|
11391
11384
|
return Se;
|
|
@@ -11483,19 +11476,19 @@ bn.prototype.interfaces_ = function() {
|
|
|
11483
11476
|
bn.prototype.getClass = function() {
|
|
11484
11477
|
return bn;
|
|
11485
11478
|
};
|
|
11486
|
-
var
|
|
11479
|
+
var Pr = function() {
|
|
11487
11480
|
};
|
|
11488
|
-
|
|
11481
|
+
Pr.prototype.getChainStartIndices = function(t) {
|
|
11489
11482
|
var e = this, n = 0, i = new L();
|
|
11490
11483
|
i.add(new on(n));
|
|
11491
11484
|
do {
|
|
11492
11485
|
var o = e.findChainEnd(t, n);
|
|
11493
11486
|
i.add(new on(o)), n = o;
|
|
11494
11487
|
} while (n < t.length - 1);
|
|
11495
|
-
var s =
|
|
11488
|
+
var s = Pr.toIntArray(i);
|
|
11496
11489
|
return s;
|
|
11497
11490
|
};
|
|
11498
|
-
|
|
11491
|
+
Pr.prototype.findChainEnd = function(t, e) {
|
|
11499
11492
|
for (var n = nt.quadrant(t[e], t[e + 1]), i = e + 1; i < t.length; ) {
|
|
11500
11493
|
var o = nt.quadrant(t[i - 1], t[i]);
|
|
11501
11494
|
if (o !== n)
|
|
@@ -11504,13 +11497,13 @@ br.prototype.findChainEnd = function(t, e) {
|
|
|
11504
11497
|
}
|
|
11505
11498
|
return i - 1;
|
|
11506
11499
|
};
|
|
11507
|
-
|
|
11500
|
+
Pr.prototype.interfaces_ = function() {
|
|
11508
11501
|
return [];
|
|
11509
11502
|
};
|
|
11510
|
-
|
|
11511
|
-
return
|
|
11503
|
+
Pr.prototype.getClass = function() {
|
|
11504
|
+
return Pr;
|
|
11512
11505
|
};
|
|
11513
|
-
|
|
11506
|
+
Pr.toIntArray = function(t) {
|
|
11514
11507
|
for (var e = new Array(t.size()).fill(null), n = 0; n < e.length; n++)
|
|
11515
11508
|
e[n] = t.get(n).intValue();
|
|
11516
11509
|
return e;
|
|
@@ -11519,7 +11512,7 @@ var Kn = function() {
|
|
|
11519
11512
|
this.e = null, this.pts = null, this.startIndex = null, this.env1 = new T(), this.env2 = new T();
|
|
11520
11513
|
var t = arguments[0];
|
|
11521
11514
|
this.e = t, this.pts = t.getCoordinates();
|
|
11522
|
-
var e = new
|
|
11515
|
+
var e = new Pr();
|
|
11523
11516
|
this.startIndex = e.getChainStartIndices(this.pts);
|
|
11524
11517
|
};
|
|
11525
11518
|
Kn.prototype.getCoordinates = function() {
|
|
@@ -11793,7 +11786,7 @@ $t.prototype.createEmptyResultGeometry = function() {
|
|
|
11793
11786
|
$t.prototype.getNoder = function(t) {
|
|
11794
11787
|
if (this._workingNoder !== null)
|
|
11795
11788
|
return this._workingNoder;
|
|
11796
|
-
var e = new Us(), n = new
|
|
11789
|
+
var e = new Us(), n = new Ar();
|
|
11797
11790
|
return n.setPrecisionModel(t), e.setSegmentIntersector(new Se(n)), e;
|
|
11798
11791
|
};
|
|
11799
11792
|
$t.prototype.buffer = function(t, e) {
|
|
@@ -11891,13 +11884,13 @@ lr.prototype.computeNodes = function(t) {
|
|
|
11891
11884
|
this._isScaled && (e = this.scale(t)), this._noder.computeNodes(e);
|
|
11892
11885
|
};
|
|
11893
11886
|
lr.prototype.interfaces_ = function() {
|
|
11894
|
-
return [
|
|
11887
|
+
return [wr];
|
|
11895
11888
|
};
|
|
11896
11889
|
lr.prototype.getClass = function() {
|
|
11897
11890
|
return lr;
|
|
11898
11891
|
};
|
|
11899
11892
|
var hn = function() {
|
|
11900
|
-
this._li = new
|
|
11893
|
+
this._li = new Ar(), this._segStrings = null;
|
|
11901
11894
|
var t = arguments[0];
|
|
11902
11895
|
this._segStrings = t;
|
|
11903
11896
|
}, Iu = { fact: { configurable: !0 } };
|
|
@@ -12123,7 +12116,7 @@ jr.prototype.getInteriorIntersections = function() {
|
|
|
12123
12116
|
return this._interiorIntersections;
|
|
12124
12117
|
};
|
|
12125
12118
|
jr.prototype.interfaces_ = function() {
|
|
12126
|
-
return [
|
|
12119
|
+
return [br];
|
|
12127
12120
|
};
|
|
12128
12121
|
jr.prototype.getClass = function() {
|
|
12129
12122
|
return jr;
|
|
@@ -12131,7 +12124,7 @@ jr.prototype.getClass = function() {
|
|
|
12131
12124
|
var Pn = function() {
|
|
12132
12125
|
this._pm = null, this._li = null, this._scaleFactor = null, this._noder = null, this._pointSnapper = null, this._nodedSegStrings = null;
|
|
12133
12126
|
var t = arguments[0];
|
|
12134
|
-
this._pm = t, this._li = new
|
|
12127
|
+
this._pm = t, this._li = new Ar(), this._li.setPrecisionModel(t), this._scaleFactor = t.getScale();
|
|
12135
12128
|
};
|
|
12136
12129
|
Pn.prototype.checkCorrectness = function(t) {
|
|
12137
12130
|
var e = Et.getNodedSubstrings(t), n = new hn(e);
|
|
@@ -12179,7 +12172,7 @@ Pn.prototype.computeIntersectionSnaps = function(t) {
|
|
|
12179
12172
|
}
|
|
12180
12173
|
};
|
|
12181
12174
|
Pn.prototype.interfaces_ = function() {
|
|
12182
|
-
return [
|
|
12175
|
+
return [wr];
|
|
12183
12176
|
};
|
|
12184
12177
|
Pn.prototype.getClass = function() {
|
|
12185
12178
|
return Pn;
|
|
@@ -12384,28 +12377,28 @@ En.computeDistance = function() {
|
|
|
12384
12377
|
N.setMinimum(w, E);
|
|
12385
12378
|
}
|
|
12386
12379
|
};
|
|
12387
|
-
var
|
|
12380
|
+
var Rr = function(t) {
|
|
12388
12381
|
this._maxPtDist = new Kt(), this._inputGeom = t || null;
|
|
12389
12382
|
}, qs = { MaxPointDistanceFilter: { configurable: !0 }, MaxMidpointDistanceFilter: { configurable: !0 } };
|
|
12390
|
-
|
|
12383
|
+
Rr.prototype.computeMaxMidpointDistance = function(t) {
|
|
12391
12384
|
var e = new cr(this._inputGeom);
|
|
12392
12385
|
t.apply(e), this._maxPtDist.setMaximum(e.getMaxPointDistance());
|
|
12393
12386
|
};
|
|
12394
|
-
|
|
12387
|
+
Rr.prototype.computeMaxVertexDistance = function(t) {
|
|
12395
12388
|
var e = new Kr(this._inputGeom);
|
|
12396
12389
|
t.apply(e), this._maxPtDist.setMaximum(e.getMaxPointDistance());
|
|
12397
12390
|
};
|
|
12398
|
-
|
|
12391
|
+
Rr.prototype.findDistance = function(t) {
|
|
12399
12392
|
return this.computeMaxVertexDistance(t), this.computeMaxMidpointDistance(t), this._maxPtDist.getDistance();
|
|
12400
12393
|
};
|
|
12401
|
-
|
|
12394
|
+
Rr.prototype.getDistancePoints = function() {
|
|
12402
12395
|
return this._maxPtDist;
|
|
12403
12396
|
};
|
|
12404
|
-
|
|
12397
|
+
Rr.prototype.interfaces_ = function() {
|
|
12405
12398
|
return [];
|
|
12406
12399
|
};
|
|
12407
|
-
|
|
12408
|
-
return
|
|
12400
|
+
Rr.prototype.getClass = function() {
|
|
12401
|
+
return Rr;
|
|
12409
12402
|
};
|
|
12410
12403
|
qs.MaxPointDistanceFilter.get = function() {
|
|
12411
12404
|
return Kr;
|
|
@@ -12413,7 +12406,7 @@ qs.MaxPointDistanceFilter.get = function() {
|
|
|
12413
12406
|
qs.MaxMidpointDistanceFilter.get = function() {
|
|
12414
12407
|
return cr;
|
|
12415
12408
|
};
|
|
12416
|
-
Object.defineProperties(
|
|
12409
|
+
Object.defineProperties(Rr, qs);
|
|
12417
12410
|
var Kr = function(t) {
|
|
12418
12411
|
this._maxPtDist = new Kt(), this._minPtDist = new Kt(), this._geom = t || null;
|
|
12419
12412
|
};
|
|
@@ -12594,7 +12587,7 @@ Ye.prototype.computeLocation = function(t, e) {
|
|
|
12594
12587
|
this.updateLocationInfo(this.locateInternal(t, e));
|
|
12595
12588
|
else if (e instanceof Pt)
|
|
12596
12589
|
this.updateLocationInfo(this.locateInternal(t, e));
|
|
12597
|
-
else if (e instanceof
|
|
12590
|
+
else if (e instanceof Sr)
|
|
12598
12591
|
for (var i = e, o = 0; o < i.getNumGeometries(); o++) {
|
|
12599
12592
|
var s = i.getGeometryN(o);
|
|
12600
12593
|
n.updateLocationInfo(n.locateInternal(t, s));
|
|
@@ -13236,7 +13229,7 @@ Dt.prototype.isDone = function() {
|
|
|
13236
13229
|
return this._findAllIntersections ? !1 : this._interiorIntersection !== null;
|
|
13237
13230
|
};
|
|
13238
13231
|
Dt.prototype.interfaces_ = function() {
|
|
13239
|
-
return [
|
|
13232
|
+
return [br];
|
|
13240
13233
|
};
|
|
13241
13234
|
Dt.prototype.getClass = function() {
|
|
13242
13235
|
return Dt;
|
|
@@ -13253,7 +13246,7 @@ Dt.createIntersectionCounter = function(t) {
|
|
|
13253
13246
|
return e.setFindAllIntersections(!0), e.setKeepIntersections(!1), e;
|
|
13254
13247
|
};
|
|
13255
13248
|
var He = function() {
|
|
13256
|
-
this._li = new
|
|
13249
|
+
this._li = new Ar(), this._segStrings = null, this._findAllIntersections = !1, this._segInt = null, this._isValid = !0;
|
|
13257
13250
|
var t = arguments[0];
|
|
13258
13251
|
this._segStrings = t;
|
|
13259
13252
|
};
|
|
@@ -13297,29 +13290,29 @@ He.computeIntersections = function(t) {
|
|
|
13297
13290
|
var e = new He(t);
|
|
13298
13291
|
return e.setFindAllIntersections(!0), e.isValid(), e.getIntersections();
|
|
13299
13292
|
};
|
|
13300
|
-
var
|
|
13293
|
+
var Or = function r() {
|
|
13301
13294
|
this._nv = null;
|
|
13302
13295
|
var t = arguments[0];
|
|
13303
13296
|
this._nv = new He(r.toSegmentStrings(t));
|
|
13304
13297
|
};
|
|
13305
|
-
|
|
13298
|
+
Or.prototype.checkValid = function() {
|
|
13306
13299
|
this._nv.checkValid();
|
|
13307
13300
|
};
|
|
13308
|
-
|
|
13301
|
+
Or.prototype.interfaces_ = function() {
|
|
13309
13302
|
return [];
|
|
13310
13303
|
};
|
|
13311
|
-
|
|
13312
|
-
return
|
|
13304
|
+
Or.prototype.getClass = function() {
|
|
13305
|
+
return Or;
|
|
13313
13306
|
};
|
|
13314
|
-
|
|
13307
|
+
Or.toSegmentStrings = function(t) {
|
|
13315
13308
|
for (var e = new L(), n = t.iterator(); n.hasNext(); ) {
|
|
13316
13309
|
var i = n.next();
|
|
13317
13310
|
e.add(new gn(i.getCoordinates(), i));
|
|
13318
13311
|
}
|
|
13319
13312
|
return e;
|
|
13320
13313
|
};
|
|
13321
|
-
|
|
13322
|
-
var e = new
|
|
13314
|
+
Or.checkValid = function(t) {
|
|
13315
|
+
var e = new Or(t);
|
|
13323
13316
|
e.checkValid();
|
|
13324
13317
|
};
|
|
13325
13318
|
var Zr = function(t) {
|
|
@@ -13501,7 +13494,7 @@ le.prototype.transform = function(t) {
|
|
|
13501
13494
|
return this.transformLinearRing(t, null);
|
|
13502
13495
|
if (t instanceof pt)
|
|
13503
13496
|
return this.transformLineString(t, null);
|
|
13504
|
-
if (t instanceof
|
|
13497
|
+
if (t instanceof Sr)
|
|
13505
13498
|
return this.transformMultiLineString(t, null);
|
|
13506
13499
|
if (t instanceof Pt)
|
|
13507
13500
|
return this.transformPolygon(t, null);
|
|
@@ -14016,7 +14009,7 @@ Ut.prototype.getClass = function() {
|
|
|
14016
14009
|
Ut.isAdjacentSegments = function(t, e) {
|
|
14017
14010
|
return Math.abs(t - e) === 1;
|
|
14018
14011
|
};
|
|
14019
|
-
var
|
|
14012
|
+
var bc = function(r) {
|
|
14020
14013
|
function t() {
|
|
14021
14014
|
r.call(this), this.events = new L(), this.nOverlaps = null;
|
|
14022
14015
|
}
|
|
@@ -14113,7 +14106,7 @@ co.prototype.interfaces_ = function() {
|
|
|
14113
14106
|
co.prototype.getClass = function() {
|
|
14114
14107
|
return co;
|
|
14115
14108
|
};
|
|
14116
|
-
var
|
|
14109
|
+
var Pc = function(r) {
|
|
14117
14110
|
function t() {
|
|
14118
14111
|
r.call(this), this._item = null;
|
|
14119
14112
|
var e = arguments[0], n = arguments[1], i = arguments[2];
|
|
@@ -14128,7 +14121,7 @@ var Rc = function(r) {
|
|
|
14128
14121
|
}, t.prototype.getClass = function() {
|
|
14129
14122
|
return t;
|
|
14130
14123
|
}, t;
|
|
14131
|
-
}(On),
|
|
14124
|
+
}(On), Rc = function(r) {
|
|
14132
14125
|
function t() {
|
|
14133
14126
|
r.call(this), this._node1 = null, this._node2 = null;
|
|
14134
14127
|
var e = arguments[0], n = arguments[1];
|
|
@@ -14160,7 +14153,7 @@ Dn.prototype.buildTree = function() {
|
|
|
14160
14153
|
Dn.prototype.insert = function(t, e, n) {
|
|
14161
14154
|
if (this._root !== null)
|
|
14162
14155
|
throw new Error("Index cannot be added to once it has been queried");
|
|
14163
|
-
this._leaves.add(new
|
|
14156
|
+
this._leaves.add(new Pc(t, e, n));
|
|
14164
14157
|
};
|
|
14165
14158
|
Dn.prototype.query = function(t, e, n) {
|
|
14166
14159
|
this.init(), this._root.query(t, e, n);
|
|
@@ -14185,7 +14178,7 @@ Dn.prototype.buildLevel = function(t, e) {
|
|
|
14185
14178
|
if (o === null)
|
|
14186
14179
|
e.add(i);
|
|
14187
14180
|
else {
|
|
14188
|
-
var s = new
|
|
14181
|
+
var s = new Rc(t.get(n), t.get(n + 1));
|
|
14189
14182
|
e.add(s);
|
|
14190
14183
|
}
|
|
14191
14184
|
}
|
|
@@ -14216,7 +14209,7 @@ var Si = function() {
|
|
|
14216
14209
|
var t = arguments[0];
|
|
14217
14210
|
if (!k(t, or))
|
|
14218
14211
|
throw new lt("Argument must be Polygonal");
|
|
14219
|
-
this._index = new
|
|
14212
|
+
this._index = new Dr(t);
|
|
14220
14213
|
}, Ks = { SegmentVisitor: { configurable: !0 }, IntervalIndexedGeometry: { configurable: !0 } };
|
|
14221
14214
|
Si.prototype.locate = function(t) {
|
|
14222
14215
|
var e = new nn(t), n = new wi(e);
|
|
@@ -14232,7 +14225,7 @@ Ks.SegmentVisitor.get = function() {
|
|
|
14232
14225
|
return wi;
|
|
14233
14226
|
};
|
|
14234
14227
|
Ks.IntervalIndexedGeometry.get = function() {
|
|
14235
|
-
return
|
|
14228
|
+
return Dr;
|
|
14236
14229
|
};
|
|
14237
14230
|
Object.defineProperties(Si, Ks);
|
|
14238
14231
|
var wi = function() {
|
|
@@ -14250,24 +14243,24 @@ wi.prototype.interfaces_ = function() {
|
|
|
14250
14243
|
wi.prototype.getClass = function() {
|
|
14251
14244
|
return wi;
|
|
14252
14245
|
};
|
|
14253
|
-
var
|
|
14246
|
+
var Dr = function() {
|
|
14254
14247
|
this._index = new Dn();
|
|
14255
14248
|
var t = arguments[0];
|
|
14256
14249
|
this.init(t);
|
|
14257
14250
|
};
|
|
14258
|
-
|
|
14251
|
+
Dr.prototype.init = function(t) {
|
|
14259
14252
|
for (var e = this, n = Ft.getLines(t), i = n.iterator(); i.hasNext(); ) {
|
|
14260
14253
|
var o = i.next(), s = o.getCoordinates();
|
|
14261
14254
|
e.addLine(s);
|
|
14262
14255
|
}
|
|
14263
14256
|
};
|
|
14264
|
-
|
|
14257
|
+
Dr.prototype.addLine = function(t) {
|
|
14265
14258
|
for (var e = this, n = 1; n < t.length; n++) {
|
|
14266
14259
|
var i = new M(t[n - 1], t[n]), o = Math.min(i.p0.y, i.p1.y), s = Math.max(i.p0.y, i.p1.y);
|
|
14267
14260
|
e._index.insert(o, s, i);
|
|
14268
14261
|
}
|
|
14269
14262
|
};
|
|
14270
|
-
|
|
14263
|
+
Dr.prototype.query = function() {
|
|
14271
14264
|
if (arguments.length === 2) {
|
|
14272
14265
|
var t = arguments[0], e = arguments[1], n = new xi();
|
|
14273
14266
|
return this._index.query(t, e, n), n.getItems();
|
|
@@ -14276,11 +14269,11 @@ Or.prototype.query = function() {
|
|
|
14276
14269
|
this._index.query(i, o, s);
|
|
14277
14270
|
}
|
|
14278
14271
|
};
|
|
14279
|
-
|
|
14272
|
+
Dr.prototype.interfaces_ = function() {
|
|
14280
14273
|
return [];
|
|
14281
14274
|
};
|
|
14282
|
-
|
|
14283
|
-
return
|
|
14275
|
+
Dr.prototype.getClass = function() {
|
|
14276
|
+
return Dr;
|
|
14284
14277
|
};
|
|
14285
14278
|
var Ui = function(r) {
|
|
14286
14279
|
function t() {
|
|
@@ -14376,7 +14369,7 @@ var Ui = function(r) {
|
|
|
14376
14369
|
var s = this._nodes.addNode(i), a = s.getLabel();
|
|
14377
14370
|
a === null ? s._label = new tt(n, o) : a.setLocation(n, o);
|
|
14378
14371
|
}, t.prototype.createEdgeSetIntersector = function() {
|
|
14379
|
-
return new
|
|
14372
|
+
return new bc();
|
|
14380
14373
|
}, t.prototype.addSelfIntersectionNodes = function(n) {
|
|
14381
14374
|
for (var i = this, o = this._edges.iterator(); o.hasNext(); )
|
|
14382
14375
|
for (var s = o.next(), a = s.getLabel().getLocation(n), u = s.eiList.iterator(); u.hasNext(); ) {
|
|
@@ -14396,7 +14389,7 @@ var Ui = function(r) {
|
|
|
14396
14389
|
this.addPoint(n);
|
|
14397
14390
|
else if (n instanceof mi)
|
|
14398
14391
|
this.addCollection(n);
|
|
14399
|
-
else if (n instanceof
|
|
14392
|
+
else if (n instanceof Sr)
|
|
14400
14393
|
this.addCollection(n);
|
|
14401
14394
|
else if (n instanceof Cn)
|
|
14402
14395
|
this.addCollection(n);
|
|
@@ -14427,7 +14420,7 @@ var Ui = function(r) {
|
|
|
14427
14420
|
return n.isInBoundary(i) ? m.BOUNDARY : m.INTERIOR;
|
|
14428
14421
|
}, t;
|
|
14429
14422
|
}(ht), Li = function() {
|
|
14430
|
-
if (this._li = new
|
|
14423
|
+
if (this._li = new Ar(), this._resultPrecisionModel = null, this._arg = null, arguments.length === 1) {
|
|
14431
14424
|
var t = arguments[0];
|
|
14432
14425
|
this.setComputationPrecision(t.getPrecisionModel()), this._arg = new Array(1).fill(null), this._arg[0] = new Ui(0, t);
|
|
14433
14426
|
} else if (arguments.length === 2) {
|
|
@@ -14450,22 +14443,22 @@ Li.prototype.interfaces_ = function() {
|
|
|
14450
14443
|
Li.prototype.getClass = function() {
|
|
14451
14444
|
return Li;
|
|
14452
14445
|
};
|
|
14453
|
-
var
|
|
14446
|
+
var Cr = function() {
|
|
14454
14447
|
};
|
|
14455
|
-
|
|
14448
|
+
Cr.prototype.interfaces_ = function() {
|
|
14456
14449
|
return [];
|
|
14457
14450
|
};
|
|
14458
|
-
|
|
14459
|
-
return
|
|
14451
|
+
Cr.prototype.getClass = function() {
|
|
14452
|
+
return Cr;
|
|
14460
14453
|
};
|
|
14461
|
-
|
|
14462
|
-
if (arguments[0] instanceof G && k(arguments[1],
|
|
14454
|
+
Cr.map = function() {
|
|
14455
|
+
if (arguments[0] instanceof G && k(arguments[1], Cr.MapOp)) {
|
|
14463
14456
|
for (var t = arguments[0], e = arguments[1], n = new L(), i = 0; i < t.getNumGeometries(); i++) {
|
|
14464
14457
|
var o = e.map(t.getGeometryN(i));
|
|
14465
14458
|
o !== null && n.add(o);
|
|
14466
14459
|
}
|
|
14467
14460
|
return t.getFactory().buildGeometry(n);
|
|
14468
|
-
} else if (k(arguments[0], St) && k(arguments[1],
|
|
14461
|
+
} else if (k(arguments[0], St) && k(arguments[1], Cr.MapOp)) {
|
|
14469
14462
|
for (var s = arguments[0], a = arguments[1], u = new L(), l = s.iterator(); l.hasNext(); ) {
|
|
14470
14463
|
var c = l.next(), f = a.map(c);
|
|
14471
14464
|
f !== null && u.add(f);
|
|
@@ -14473,7 +14466,7 @@ Ir.map = function() {
|
|
|
14473
14466
|
return u;
|
|
14474
14467
|
}
|
|
14475
14468
|
};
|
|
14476
|
-
|
|
14469
|
+
Cr.MapOp = function() {
|
|
14477
14470
|
};
|
|
14478
14471
|
var U = function(r) {
|
|
14479
14472
|
function t() {
|
|
@@ -14534,7 +14527,7 @@ var U = function(r) {
|
|
|
14534
14527
|
}, t.prototype.computeOverlay = function(n) {
|
|
14535
14528
|
this.copyPoints(0), this.copyPoints(1), this._arg[0].computeSelfNodes(this._li, !1), this._arg[1].computeSelfNodes(this._li, !1), this._arg[0].computeEdgeIntersections(this._arg[1], this._li, !0);
|
|
14536
14529
|
var i = new L();
|
|
14537
|
-
this._arg[0].computeSplitEdges(i), this._arg[1].computeSplitEdges(i), this.insertUniqueEdges(i), this.computeLabelsFromDepths(), this.replaceCollapsedEdges(),
|
|
14530
|
+
this._arg[0].computeSplitEdges(i), this._arg[1].computeSplitEdges(i), this.insertUniqueEdges(i), this.computeLabelsFromDepths(), this.replaceCollapsedEdges(), Or.checkValid(this._edgeList.getEdges()), this._graph.addEdges(this._edgeList.getEdges()), this.computeLabelling(), this.labelIncompleteNodes(), this.findResultAreaEdges(n), this.cancelDuplicateResultEdges();
|
|
14538
14531
|
var o = new pe(this._geomFact);
|
|
14539
14532
|
o.add(this._graph), this._resultPolyList = o.getPolygons();
|
|
14540
14533
|
var s = new pn(this, this._geomFact, this._ptLocator);
|
|
@@ -14593,7 +14586,7 @@ U.intersection = function(r, t) {
|
|
|
14593
14586
|
var e = t;
|
|
14594
14587
|
return Zr.map(r, {
|
|
14595
14588
|
interfaces_: function() {
|
|
14596
|
-
return [
|
|
14589
|
+
return [Cr.MapOp];
|
|
14597
14590
|
},
|
|
14598
14591
|
map: function(n) {
|
|
14599
14592
|
return n.intersection(e);
|
|
@@ -14726,26 +14719,26 @@ bi.prototype.interfaces_ = function() {
|
|
|
14726
14719
|
bi.prototype.getClass = function() {
|
|
14727
14720
|
return bi;
|
|
14728
14721
|
};
|
|
14729
|
-
var
|
|
14722
|
+
var Tr = function() {
|
|
14730
14723
|
this._g = null, this._doLeft = !0, this._doRight = !0;
|
|
14731
14724
|
var t = arguments[0];
|
|
14732
14725
|
this._g = t;
|
|
14733
14726
|
};
|
|
14734
|
-
|
|
14727
|
+
Tr.prototype.extractPoints = function(t, e, n) {
|
|
14735
14728
|
for (var i = this, o = t.getCoordinates(), s = 0; s < o.length - 1; s++)
|
|
14736
14729
|
i.computeOffsetPoints(o[s], o[s + 1], e, n);
|
|
14737
14730
|
};
|
|
14738
|
-
|
|
14731
|
+
Tr.prototype.setSidesToGenerate = function(t, e) {
|
|
14739
14732
|
this._doLeft = t, this._doRight = e;
|
|
14740
14733
|
};
|
|
14741
|
-
|
|
14734
|
+
Tr.prototype.getPoints = function(t) {
|
|
14742
14735
|
for (var e = this, n = new L(), i = Ft.getLines(this._g), o = i.iterator(); o.hasNext(); ) {
|
|
14743
14736
|
var s = o.next();
|
|
14744
14737
|
e.extractPoints(s, t, n);
|
|
14745
14738
|
}
|
|
14746
14739
|
return n;
|
|
14747
14740
|
};
|
|
14748
|
-
|
|
14741
|
+
Tr.prototype.computeOffsetPoints = function(t, e, n, i) {
|
|
14749
14742
|
var o = e.x - t.x, s = e.y - t.y, a = Math.sqrt(o * o + s * s), u = n * o / a, l = n * s / a, c = (e.x + t.x) / 2, f = (e.y + t.y) / 2;
|
|
14750
14743
|
if (this._doLeft) {
|
|
14751
14744
|
var h = new v(c - l, f + u);
|
|
@@ -14756,11 +14749,11 @@ Dr.prototype.computeOffsetPoints = function(t, e, n, i) {
|
|
|
14756
14749
|
i.add(g);
|
|
14757
14750
|
}
|
|
14758
14751
|
};
|
|
14759
|
-
|
|
14752
|
+
Tr.prototype.interfaces_ = function() {
|
|
14760
14753
|
return [];
|
|
14761
14754
|
};
|
|
14762
|
-
|
|
14763
|
-
return
|
|
14755
|
+
Tr.prototype.getClass = function() {
|
|
14756
|
+
return Tr;
|
|
14764
14757
|
};
|
|
14765
14758
|
var we = function r() {
|
|
14766
14759
|
this._geom = null, this._locFinder = null, this._location = new Array(3).fill(null), this._invalidLocation = null, this._boundaryDistanceTolerance = r.TOLERANCE, this._testCoords = new L();
|
|
@@ -14790,7 +14783,7 @@ we.prototype.checkValid = function() {
|
|
|
14790
14783
|
}
|
|
14791
14784
|
};
|
|
14792
14785
|
we.prototype.addTestPts = function(t) {
|
|
14793
|
-
var e = new
|
|
14786
|
+
var e = new Tr(t);
|
|
14794
14787
|
this._testCoords.addAll(e.getPoints(5 * this._boundaryDistanceTolerance));
|
|
14795
14788
|
};
|
|
14796
14789
|
we.prototype.isValidResult = function(t, e) {
|
|
@@ -15007,7 +15000,7 @@ zo.union = function(t, e) {
|
|
|
15007
15000
|
}
|
|
15008
15001
|
return t.checkNotGeometryCollection(t), t.checkNotGeometryCollection(e), re.overlayOp(t, e, U.UNION);
|
|
15009
15002
|
};
|
|
15010
|
-
function
|
|
15003
|
+
function Fr() {
|
|
15011
15004
|
return new Vo();
|
|
15012
15005
|
}
|
|
15013
15006
|
function Vo() {
|
|
@@ -15031,7 +15024,7 @@ function ba(r, t, e) {
|
|
|
15031
15024
|
var n = r.s = t + e, i = n - t, o = n - i;
|
|
15032
15025
|
r.t = t - o + (e - i);
|
|
15033
15026
|
}
|
|
15034
|
-
var gt = 1e-6, it = Math.PI, qn = it / 2, Pa = it / 4, Qn = it * 2,
|
|
15027
|
+
var gt = 1e-6, it = Math.PI, qn = it / 2, Pa = it / 4, Qn = it * 2, mr = 180 / it, Ze = it / 180, Jt = Math.abs, Oc = Math.atan, Pi = Math.atan2, wt = Math.cos, Lt = Math.sin, Eo = Math.sqrt;
|
|
15035
15028
|
function Ou(r) {
|
|
15036
15029
|
return r > 1 ? 0 : r < -1 ? it : Math.acos(r);
|
|
15037
15030
|
}
|
|
@@ -15093,11 +15086,11 @@ function Da(r, t) {
|
|
|
15093
15086
|
bs(r[e], t, 1);
|
|
15094
15087
|
t.polygonEnd();
|
|
15095
15088
|
}
|
|
15096
|
-
function
|
|
15089
|
+
function Dc(r, t) {
|
|
15097
15090
|
r && Ra.hasOwnProperty(r.type) ? Ra[r.type](r, t) : Uo(r, t);
|
|
15098
15091
|
}
|
|
15099
|
-
|
|
15100
|
-
|
|
15092
|
+
Fr();
|
|
15093
|
+
Fr();
|
|
15101
15094
|
function Ps(r) {
|
|
15102
15095
|
return [Pi(r[1], r[0]), Ri(r[2])];
|
|
15103
15096
|
}
|
|
@@ -15121,7 +15114,7 @@ function Rs(r) {
|
|
|
15121
15114
|
var t = Eo(r[0] * r[0] + r[1] * r[1] + r[2] * r[2]);
|
|
15122
15115
|
r[0] /= t, r[1] /= t, r[2] /= t;
|
|
15123
15116
|
}
|
|
15124
|
-
|
|
15117
|
+
Fr();
|
|
15125
15118
|
function Du(r, t) {
|
|
15126
15119
|
function e(n, i) {
|
|
15127
15120
|
return n = r(n, i), t(n[0], n[1]);
|
|
@@ -15134,7 +15127,7 @@ function Os(r, t) {
|
|
|
15134
15127
|
return [r > it ? r - Qn : r < -it ? r + Qn : r, t];
|
|
15135
15128
|
}
|
|
15136
15129
|
Os.invert = Os;
|
|
15137
|
-
function
|
|
15130
|
+
function Tc(r, t, e) {
|
|
15138
15131
|
return (r %= Qn) ? t || e ? Du(Ma(r), Aa(t, e)) : Ma(r) : t || e ? Aa(t, e) : Os;
|
|
15139
15132
|
}
|
|
15140
15133
|
function Ta(r) {
|
|
@@ -15163,7 +15156,7 @@ function Aa(r, t) {
|
|
|
15163
15156
|
];
|
|
15164
15157
|
}, s;
|
|
15165
15158
|
}
|
|
15166
|
-
function
|
|
15159
|
+
function Mc(r, t, e, n, i, o) {
|
|
15167
15160
|
if (e) {
|
|
15168
15161
|
var s = wt(t), a = Lt(t), u = n * e;
|
|
15169
15162
|
i == null ? (i = t + n * Qn, o = t - u / 2) : (i = Fa(s, i), o = Fa(s, o), (n > 0 ? i < o : i > o) && (i += n * Qn));
|
|
@@ -15195,7 +15188,7 @@ function Tu() {
|
|
|
15195
15188
|
}
|
|
15196
15189
|
};
|
|
15197
15190
|
}
|
|
15198
|
-
function
|
|
15191
|
+
function Ac(r, t, e, n, i, o) {
|
|
15199
15192
|
var s = r[0], a = r[1], u = t[0], l = t[1], c = 0, f = 1, h = u - s, g = l - a, p;
|
|
15200
15193
|
if (p = e - s, !(!h && p > 0)) {
|
|
15201
15194
|
if (p /= h, h < 0) {
|
|
@@ -15302,8 +15295,8 @@ function Ba(r) {
|
|
|
15302
15295
|
function Au(r, t) {
|
|
15303
15296
|
return r < t ? -1 : r > t ? 1 : r >= t ? 0 : NaN;
|
|
15304
15297
|
}
|
|
15305
|
-
function
|
|
15306
|
-
return r.length === 1 && (r =
|
|
15298
|
+
function Fc(r) {
|
|
15299
|
+
return r.length === 1 && (r = Bc(r)), {
|
|
15307
15300
|
left: function(t, e, n, i) {
|
|
15308
15301
|
for (n == null && (n = 0), i == null && (i = t.length); n < i; ) {
|
|
15309
15302
|
var o = n + i >>> 1;
|
|
@@ -15320,12 +15313,12 @@ function Bc(r) {
|
|
|
15320
15313
|
}
|
|
15321
15314
|
};
|
|
15322
15315
|
}
|
|
15323
|
-
function
|
|
15316
|
+
function Bc(r) {
|
|
15324
15317
|
return function(t, e) {
|
|
15325
15318
|
return Au(r(t), e);
|
|
15326
15319
|
};
|
|
15327
15320
|
}
|
|
15328
|
-
|
|
15321
|
+
Fc(Au);
|
|
15329
15322
|
function Fu(r) {
|
|
15330
15323
|
for (var t = r.length, e, n = -1, i = 0, o, s; ++n < t; )
|
|
15331
15324
|
i += r[n].length;
|
|
@@ -15335,7 +15328,7 @@ function Fu(r) {
|
|
|
15335
15328
|
return o;
|
|
15336
15329
|
}
|
|
15337
15330
|
var Xi = 1e9, bo = -Xi;
|
|
15338
|
-
function
|
|
15331
|
+
function Gc(r, t, e, n) {
|
|
15339
15332
|
function i(l, c) {
|
|
15340
15333
|
return r <= l && l <= e && t <= c && c <= n;
|
|
15341
15334
|
}
|
|
@@ -15371,7 +15364,7 @@ function kc(r, t, e, n) {
|
|
|
15371
15364
|
}
|
|
15372
15365
|
function D() {
|
|
15373
15366
|
for (var Y = 0, at = 0, xt = g.length; at < xt; ++at)
|
|
15374
|
-
for (var qt = g[at], ce = 1,
|
|
15367
|
+
for (var qt = g[at], ce = 1, Br = qt.length, mn = qt[0], Mn, fe, et = mn[0], Rt = mn[1]; ce < Br; ++ce)
|
|
15375
15368
|
Mn = et, fe = Rt, mn = qt[ce], et = mn[0], Rt = mn[1], fe <= n ? Rt > n && (et - Mn) * (n - fe) > (Rt - fe) * (r - Mn) && ++Y : Rt <= n && (et - Mn) * (n - fe) < (Rt - fe) * (r - Mn) && --Y;
|
|
15376
15369
|
return Y;
|
|
15377
15370
|
}
|
|
@@ -15396,15 +15389,15 @@ function kc(r, t, e, n) {
|
|
|
15396
15389
|
c.point(Y, at);
|
|
15397
15390
|
else {
|
|
15398
15391
|
var qt = [C = Math.max(bo, Math.min(Xi, C)), E = Math.max(bo, Math.min(Xi, E))], ce = [Y = Math.max(bo, Math.min(Xi, Y)), at = Math.max(bo, Math.min(Xi, at))];
|
|
15399
|
-
|
|
15392
|
+
Ac(qt, ce, r, t, e, n) ? (N || (c.lineStart(), c.point(qt[0], qt[1])), c.point(ce[0], ce[1]), xt || c.lineEnd(), b = !1) : xt && (c.lineStart(), c.point(Y, at), b = !1);
|
|
15400
15393
|
}
|
|
15401
15394
|
C = Y, E = at, N = xt;
|
|
15402
15395
|
}
|
|
15403
15396
|
return A;
|
|
15404
15397
|
};
|
|
15405
15398
|
}
|
|
15406
|
-
var ds =
|
|
15407
|
-
function
|
|
15399
|
+
var ds = Fr();
|
|
15400
|
+
function kc(r, t) {
|
|
15408
15401
|
var e = t[0], n = t[1], i = [Lt(e), -wt(e), 0], o = 0, s = 0;
|
|
15409
15402
|
ds.reset();
|
|
15410
15403
|
for (var a = 0, u = r.length; a < u; ++a)
|
|
@@ -15422,14 +15415,14 @@ function zc(r, t) {
|
|
|
15422
15415
|
}
|
|
15423
15416
|
return (o < -gt || o < gt && ds < -gt) ^ s & 1;
|
|
15424
15417
|
}
|
|
15425
|
-
|
|
15418
|
+
Fr();
|
|
15426
15419
|
function Ga(r) {
|
|
15427
15420
|
return r;
|
|
15428
15421
|
}
|
|
15429
|
-
|
|
15430
|
-
|
|
15422
|
+
Fr();
|
|
15423
|
+
Fr();
|
|
15431
15424
|
var Di = 1 / 0, Xo = Di, fo = -Di, Yo = fo, ka = {
|
|
15432
|
-
point:
|
|
15425
|
+
point: zc,
|
|
15433
15426
|
lineStart: qi,
|
|
15434
15427
|
lineEnd: qi,
|
|
15435
15428
|
polygonStart: qi,
|
|
@@ -15439,10 +15432,10 @@ var Di = 1 / 0, Xo = Di, fo = -Di, Yo = fo, ka = {
|
|
|
15439
15432
|
return fo = Yo = -(Xo = Di = 1 / 0), r;
|
|
15440
15433
|
}
|
|
15441
15434
|
};
|
|
15442
|
-
function
|
|
15435
|
+
function zc(r, t) {
|
|
15443
15436
|
r < Di && (Di = r), r > fo && (fo = r), t < Xo && (Xo = t), t > Yo && (Yo = t);
|
|
15444
15437
|
}
|
|
15445
|
-
|
|
15438
|
+
Fr();
|
|
15446
15439
|
function Bu(r, t, e, n) {
|
|
15447
15440
|
return function(i, o) {
|
|
15448
15441
|
var s = t(o), a = i.invert(n[0], n[1]), u = Tu(), l = t(u), c = !1, f, h, g, p = {
|
|
@@ -15454,8 +15447,8 @@ function Bu(r, t, e, n) {
|
|
|
15454
15447
|
},
|
|
15455
15448
|
polygonEnd: function() {
|
|
15456
15449
|
p.point = _, p.lineStart = y, p.lineEnd = C, h = Fu(h);
|
|
15457
|
-
var b =
|
|
15458
|
-
h.length ? (c || (o.polygonStart(), c = !0), Mu(h,
|
|
15450
|
+
var b = kc(f, a);
|
|
15451
|
+
h.length ? (c || (o.polygonStart(), c = !0), Mu(h, Uc, b, e, o)) : b && (c || (o.polygonStart(), c = !0), o.lineStart(), e(null, null, 1, o), o.lineEnd()), c && (o.polygonEnd(), c = !1), h = f = null;
|
|
15459
15452
|
},
|
|
15460
15453
|
sphere: function() {
|
|
15461
15454
|
o.polygonStart(), o.lineStart(), e(null, null, 1, o), o.lineEnd(), o.polygonEnd();
|
|
@@ -15495,27 +15488,27 @@ function Bu(r, t, e, n) {
|
|
|
15495
15488
|
}
|
|
15496
15489
|
return;
|
|
15497
15490
|
}
|
|
15498
|
-
D > 1 && b & 2 && A.push(A.pop().concat(A.shift())), h.push(A.filter(
|
|
15491
|
+
D > 1 && b & 2 && A.push(A.pop().concat(A.shift())), h.push(A.filter(Vc));
|
|
15499
15492
|
}
|
|
15500
15493
|
}
|
|
15501
15494
|
return p;
|
|
15502
15495
|
};
|
|
15503
15496
|
}
|
|
15504
|
-
function
|
|
15497
|
+
function Vc(r) {
|
|
15505
15498
|
return r.length > 1;
|
|
15506
15499
|
}
|
|
15507
|
-
function
|
|
15500
|
+
function Uc(r, t) {
|
|
15508
15501
|
return ((r = r.x)[0] < 0 ? r[1] - qn - gt : qn - r[1]) - ((t = t.x)[0] < 0 ? t[1] - qn - gt : qn - t[1]);
|
|
15509
15502
|
}
|
|
15510
15503
|
const za = Bu(
|
|
15511
15504
|
function() {
|
|
15512
15505
|
return !0;
|
|
15513
15506
|
},
|
|
15514
|
-
|
|
15515
|
-
|
|
15507
|
+
qc,
|
|
15508
|
+
Yc,
|
|
15516
15509
|
[-it, -qn]
|
|
15517
15510
|
);
|
|
15518
|
-
function
|
|
15511
|
+
function qc(r) {
|
|
15519
15512
|
var t = NaN, e = NaN, n = NaN, i;
|
|
15520
15513
|
return {
|
|
15521
15514
|
lineStart: function() {
|
|
@@ -15523,7 +15516,7 @@ function Xc(r) {
|
|
|
15523
15516
|
},
|
|
15524
15517
|
point: function(o, s) {
|
|
15525
15518
|
var a = o > 0 ? it : -it, u = Jt(o - t);
|
|
15526
|
-
Jt(u - it) < gt ? (r.point(t, e = (e + s) / 2 > 0 ? qn : -qn), r.point(n, e), r.lineEnd(), r.lineStart(), r.point(a, e), r.point(o, e), i = 0) : n !== a && u >= it && (Jt(t - n) < gt && (t -= n * gt), Jt(o - a) < gt && (o -= a * gt), e =
|
|
15519
|
+
Jt(u - it) < gt ? (r.point(t, e = (e + s) / 2 > 0 ? qn : -qn), r.point(n, e), r.lineEnd(), r.lineStart(), r.point(a, e), r.point(o, e), i = 0) : n !== a && u >= it && (Jt(t - n) < gt && (t -= n * gt), Jt(o - a) < gt && (o -= a * gt), e = Xc(t, e, o, s), r.point(n, e), r.lineEnd(), r.lineStart(), r.point(a, e), i = 0), r.point(t = o, e = s), n = a;
|
|
15527
15520
|
},
|
|
15528
15521
|
lineEnd: function() {
|
|
15529
15522
|
r.lineEnd(), t = e = NaN;
|
|
@@ -15533,11 +15526,11 @@ function Xc(r) {
|
|
|
15533
15526
|
}
|
|
15534
15527
|
};
|
|
15535
15528
|
}
|
|
15536
|
-
function
|
|
15529
|
+
function Xc(r, t, e, n) {
|
|
15537
15530
|
var i, o, s = Lt(r - e);
|
|
15538
|
-
return Jt(s) > gt ?
|
|
15531
|
+
return Jt(s) > gt ? Oc((Lt(t) * (o = wt(n)) * Lt(e) - Lt(n) * (i = wt(t)) * Lt(r)) / (i * o * s)) : (t + n) / 2;
|
|
15539
15532
|
}
|
|
15540
|
-
function
|
|
15533
|
+
function Yc(r, t, e, n) {
|
|
15541
15534
|
var i;
|
|
15542
15535
|
if (r == null)
|
|
15543
15536
|
i = e * qn, n.point(-it, i), n.point(0, i), n.point(it, i), n.point(it, 0), n.point(it, -i), n.point(0, -i), n.point(-it, -i), n.point(-it, 0), n.point(-it, i);
|
|
@@ -15547,10 +15540,10 @@ function Hc(r, t, e, n) {
|
|
|
15547
15540
|
} else
|
|
15548
15541
|
n.point(t[0], t[1]);
|
|
15549
15542
|
}
|
|
15550
|
-
function
|
|
15543
|
+
function Hc(r, t) {
|
|
15551
15544
|
var e = wt(r), n = e > 0, i = Jt(e) > gt;
|
|
15552
15545
|
function o(c, f, h, g) {
|
|
15553
|
-
|
|
15546
|
+
Mc(g, r, t, h, c, f);
|
|
15554
15547
|
}
|
|
15555
15548
|
function s(c, f) {
|
|
15556
15549
|
return wt(c) * wt(f) > e;
|
|
@@ -15594,8 +15587,8 @@ function Wc(r, t) {
|
|
|
15594
15587
|
return O;
|
|
15595
15588
|
var Y = c[0], at = f[0], xt = c[1], qt = f[1], ce;
|
|
15596
15589
|
at < Y && (ce = Y, Y = at, at = ce);
|
|
15597
|
-
var
|
|
15598
|
-
if (!mn && qt < xt && (ce = xt, xt = qt, qt = ce), Mn ? mn ? xt + qt > 0 ^ O[1] < (Jt(O[0] - Y) < gt ? xt : qt) : xt <= O[1] && O[1] <= qt :
|
|
15590
|
+
var Br = at - Y, mn = Jt(Br - it) < gt, Mn = mn || Br < gt;
|
|
15591
|
+
if (!mn && qt < xt && (ce = xt, xt = qt, qt = ce), Mn ? mn ? xt + qt > 0 ^ O[1] < (Jt(O[0] - Y) < gt ? xt : qt) : xt <= O[1] && O[1] <= qt : Br > it ^ (Y <= O[0] && O[0] <= at)) {
|
|
15599
15592
|
var fe = wo(D, (-R + rt) / z);
|
|
15600
15593
|
return ps(fe, A), [O, Ps(fe)];
|
|
15601
15594
|
}
|
|
@@ -15640,30 +15633,30 @@ Ds.prototype = {
|
|
|
15640
15633
|
};
|
|
15641
15634
|
function ku(r, t, e) {
|
|
15642
15635
|
var n = t[1][0] - t[0][0], i = t[1][1] - t[0][1], o = r.clipExtent && r.clipExtent();
|
|
15643
|
-
r.scale(150).translate([0, 0]), o != null && r.clipExtent(null),
|
|
15636
|
+
r.scale(150).translate([0, 0]), o != null && r.clipExtent(null), Dc(e, r.stream(ka));
|
|
15644
15637
|
var s = ka.result(), a = Math.min(n / (s[1][0] - s[0][0]), i / (s[1][1] - s[0][1])), u = +t[0][0] + (n - a * (s[1][0] + s[0][0])) / 2, l = +t[0][1] + (i - a * (s[1][1] + s[0][1])) / 2;
|
|
15645
15638
|
return o != null && r.clipExtent(o), r.scale(a * 150).translate([u, l]);
|
|
15646
15639
|
}
|
|
15647
|
-
function
|
|
15640
|
+
function Wc(r, t, e) {
|
|
15648
15641
|
return ku(r, [[0, 0], t], e);
|
|
15649
15642
|
}
|
|
15650
|
-
var Va = 16,
|
|
15643
|
+
var Va = 16, jc = wt(30 * Ze);
|
|
15651
15644
|
function Ua(r, t) {
|
|
15652
|
-
return +t ?
|
|
15645
|
+
return +t ? Qc(r, t) : Kc(r);
|
|
15653
15646
|
}
|
|
15654
|
-
function
|
|
15647
|
+
function Kc(r) {
|
|
15655
15648
|
return Gu({
|
|
15656
15649
|
point: function(t, e) {
|
|
15657
15650
|
t = r(t, e), this.stream.point(t[0], t[1]);
|
|
15658
15651
|
}
|
|
15659
15652
|
});
|
|
15660
15653
|
}
|
|
15661
|
-
function
|
|
15654
|
+
function Qc(r, t) {
|
|
15662
15655
|
function e(n, i, o, s, a, u, l, c, f, h, g, p, _, d) {
|
|
15663
15656
|
var y = l - n, C = c - i, E = y * y + C * C;
|
|
15664
15657
|
if (E > 4 * t && _--) {
|
|
15665
15658
|
var N = s + h, w = a + g, b = u + p, A = Eo(N * N + w * w + b * b), F = Ri(b /= A), D = Jt(Jt(b) - 1) < gt || Jt(o - f) < gt ? (o + f) / 2 : Pi(w, N), R = r(D, F), z = R[0], q = R[1], rt = z - n, O = q - i, Y = C * rt - y * O;
|
|
15666
|
-
(Y * Y / E > t || Jt((y * rt + C * O) / E - 0.5) > 0.3 || s * h + a * g + u * p <
|
|
15659
|
+
(Y * Y / E > t || Jt((y * rt + C * O) / E - 0.5) > 0.3 || s * h + a * g + u * p < jc) && (e(n, i, o, s, a, u, z, q, D, N /= A, w /= A, b, _, d), d.point(z, q), e(z, q, D, N, w, b, l, c, f, h, g, p, _, d));
|
|
15667
15660
|
}
|
|
15668
15661
|
}
|
|
15669
15662
|
return function(n) {
|
|
@@ -15703,50 +15696,50 @@ function Jc(r, t) {
|
|
|
15703
15696
|
return d;
|
|
15704
15697
|
};
|
|
15705
15698
|
}
|
|
15706
|
-
var
|
|
15699
|
+
var Jc = Gu({
|
|
15707
15700
|
point: function(r, t) {
|
|
15708
15701
|
this.stream.point(r * Ze, t * Ze);
|
|
15709
15702
|
}
|
|
15710
15703
|
});
|
|
15711
|
-
function
|
|
15712
|
-
return
|
|
15704
|
+
function Zc(r) {
|
|
15705
|
+
return $c(function() {
|
|
15713
15706
|
return r;
|
|
15714
15707
|
})();
|
|
15715
15708
|
}
|
|
15716
|
-
function
|
|
15709
|
+
function $c(r) {
|
|
15717
15710
|
var t, e = 150, n = 480, i = 250, o, s, a = 0, u = 0, l = 0, c = 0, f = 0, h, g, p = null, _ = za, d = null, y, C, E, N = Ga, w = 0.5, b = Ua(z, w), A, F;
|
|
15718
15711
|
function D(O) {
|
|
15719
15712
|
return O = g(O[0] * Ze, O[1] * Ze), [O[0] * e + o, s - O[1] * e];
|
|
15720
15713
|
}
|
|
15721
15714
|
function R(O) {
|
|
15722
|
-
return O = g.invert((O[0] - o) / e, (s - O[1]) / e), O && [O[0] *
|
|
15715
|
+
return O = g.invert((O[0] - o) / e, (s - O[1]) / e), O && [O[0] * mr, O[1] * mr];
|
|
15723
15716
|
}
|
|
15724
15717
|
function z(O, Y) {
|
|
15725
15718
|
return O = t(O, Y), [O[0] * e + o, s - O[1] * e];
|
|
15726
15719
|
}
|
|
15727
15720
|
D.stream = function(O) {
|
|
15728
|
-
return A && F === O ? A : A =
|
|
15721
|
+
return A && F === O ? A : A = Jc(_(h, b(N(F = O))));
|
|
15729
15722
|
}, D.clipAngle = function(O) {
|
|
15730
|
-
return arguments.length ? (_ = +O ?
|
|
15723
|
+
return arguments.length ? (_ = +O ? Hc(p = O * Ze, 6 * Ze) : (p = null, za), rt()) : p * mr;
|
|
15731
15724
|
}, D.clipExtent = function(O) {
|
|
15732
|
-
return arguments.length ? (N = O == null ? (d = y = C = E = null, Ga) :
|
|
15725
|
+
return arguments.length ? (N = O == null ? (d = y = C = E = null, Ga) : Gc(d = +O[0][0], y = +O[0][1], C = +O[1][0], E = +O[1][1]), rt()) : d == null ? null : [[d, y], [C, E]];
|
|
15733
15726
|
}, D.scale = function(O) {
|
|
15734
15727
|
return arguments.length ? (e = +O, q()) : e;
|
|
15735
15728
|
}, D.translate = function(O) {
|
|
15736
15729
|
return arguments.length ? (n = +O[0], i = +O[1], q()) : [n, i];
|
|
15737
15730
|
}, D.center = function(O) {
|
|
15738
|
-
return arguments.length ? (a = O[0] % 360 * Ze, u = O[1] % 360 * Ze, q()) : [a *
|
|
15731
|
+
return arguments.length ? (a = O[0] % 360 * Ze, u = O[1] % 360 * Ze, q()) : [a * mr, u * mr];
|
|
15739
15732
|
}, D.rotate = function(O) {
|
|
15740
|
-
return arguments.length ? (l = O[0] % 360 * Ze, c = O[1] % 360 * Ze, f = O.length > 2 ? O[2] % 360 * Ze : 0, q()) : [l *
|
|
15733
|
+
return arguments.length ? (l = O[0] % 360 * Ze, c = O[1] % 360 * Ze, f = O.length > 2 ? O[2] % 360 * Ze : 0, q()) : [l * mr, c * mr, f * mr];
|
|
15741
15734
|
}, D.precision = function(O) {
|
|
15742
15735
|
return arguments.length ? (b = Ua(z, w = O * O), rt()) : Eo(w);
|
|
15743
15736
|
}, D.fitExtent = function(O, Y) {
|
|
15744
15737
|
return ku(D, O, Y);
|
|
15745
15738
|
}, D.fitSize = function(O, Y) {
|
|
15746
|
-
return
|
|
15739
|
+
return Wc(D, O, Y);
|
|
15747
15740
|
};
|
|
15748
15741
|
function q() {
|
|
15749
|
-
g = Du(h =
|
|
15742
|
+
g = Du(h = Tc(l, c, f), t);
|
|
15750
15743
|
var O = t(a, u);
|
|
15751
15744
|
return o = n - O[0] * e, s = i + O[1] * e, rt();
|
|
15752
15745
|
}
|
|
@@ -15757,7 +15750,7 @@ function tf(r) {
|
|
|
15757
15750
|
return t = r.apply(this, arguments), D.invert = t.invert && R, q();
|
|
15758
15751
|
};
|
|
15759
15752
|
}
|
|
15760
|
-
function
|
|
15753
|
+
function tf(r) {
|
|
15761
15754
|
return function(t, e) {
|
|
15762
15755
|
var n = wt(t), i = wt(e), o = r(n * i);
|
|
15763
15756
|
return [
|
|
@@ -15766,7 +15759,7 @@ function ef(r) {
|
|
|
15766
15759
|
];
|
|
15767
15760
|
};
|
|
15768
15761
|
}
|
|
15769
|
-
function
|
|
15762
|
+
function ef(r) {
|
|
15770
15763
|
return function(t, e) {
|
|
15771
15764
|
var n = Eo(t * t + e * e), i = r(n), o = Lt(i), s = wt(i);
|
|
15772
15765
|
return [
|
|
@@ -15775,20 +15768,20 @@ function nf(r) {
|
|
|
15775
15768
|
];
|
|
15776
15769
|
};
|
|
15777
15770
|
}
|
|
15778
|
-
var zu =
|
|
15771
|
+
var zu = tf(function(r) {
|
|
15779
15772
|
return (r = Ou(r)) && r / Lt(r);
|
|
15780
15773
|
});
|
|
15781
|
-
zu.invert =
|
|
15774
|
+
zu.invert = ef(function(r) {
|
|
15782
15775
|
return r;
|
|
15783
15776
|
});
|
|
15784
|
-
function
|
|
15785
|
-
return
|
|
15777
|
+
function nf() {
|
|
15778
|
+
return Zc(zu).scale(79.4188).clipAngle(180 - 1e-3);
|
|
15786
15779
|
}
|
|
15787
15780
|
function qa(r, t) {
|
|
15788
15781
|
return [r, t];
|
|
15789
15782
|
}
|
|
15790
15783
|
qa.invert = qa;
|
|
15791
|
-
function
|
|
15784
|
+
function rf(r, t, e) {
|
|
15792
15785
|
e = e || {};
|
|
15793
15786
|
var n = e.units || "kilometers", i = e.steps || 8;
|
|
15794
15787
|
if (!r)
|
|
@@ -15827,10 +15820,10 @@ function Oo(r, t, e, n) {
|
|
|
15827
15820
|
d && s.push(d);
|
|
15828
15821
|
}), Ss(s);
|
|
15829
15822
|
}
|
|
15830
|
-
var a =
|
|
15823
|
+
var a = of(o), u = {
|
|
15831
15824
|
type: o.type,
|
|
15832
15825
|
coordinates: Uu(o.coordinates, a)
|
|
15833
|
-
}, l = new Vs(), c = l.read(u), f =
|
|
15826
|
+
}, l = new Vs(), c = l.read(u), f = ac(uc(t, e), "meters"), h = Bt.bufferOp(c, f, n), g = new gu();
|
|
15834
15827
|
if (h = g.write(h), !Vu(h.coordinates)) {
|
|
15835
15828
|
var p = {
|
|
15836
15829
|
type: h.type,
|
|
@@ -15852,9 +15845,16 @@ function qu(r, t) {
|
|
|
15852
15845
|
return qu(e, t);
|
|
15853
15846
|
});
|
|
15854
15847
|
}
|
|
15855
|
-
function
|
|
15856
|
-
var t =
|
|
15857
|
-
return
|
|
15848
|
+
function of(r) {
|
|
15849
|
+
var t = gc(r).geometry.coordinates, e = [-t[0], -t[1]];
|
|
15850
|
+
return nf().rotate(e).scale(me);
|
|
15851
|
+
}
|
|
15852
|
+
function sf(r, t) {
|
|
15853
|
+
var e = Ao(r), n = Ao(t), i = r.properties || {}, o = Za.difference(
|
|
15854
|
+
e.coordinates,
|
|
15855
|
+
n.coordinates
|
|
15856
|
+
);
|
|
15857
|
+
return o.length === 0 ? null : o.length === 1 ? tu(o[0], i) : eu(o, i);
|
|
15858
15858
|
}
|
|
15859
15859
|
function Xa(r) {
|
|
15860
15860
|
let t;
|
|
@@ -15862,7 +15862,7 @@ function Xa(r) {
|
|
|
15862
15862
|
t && e[0] - t[0] >= 180 ? e[0] -= 360 : t && e[0] - t[0] < -180 && (e[0] += 360), t = e;
|
|
15863
15863
|
}
|
|
15864
15864
|
function Ya(r, t) {
|
|
15865
|
-
const e =
|
|
15865
|
+
const e = sf(
|
|
15866
15866
|
{
|
|
15867
15867
|
type: "Polygon",
|
|
15868
15868
|
coordinates: [
|
|
@@ -15880,7 +15880,7 @@ function Ya(r, t) {
|
|
|
15880
15880
|
if (!e)
|
|
15881
15881
|
return;
|
|
15882
15882
|
e.properties = { isMask: "y" };
|
|
15883
|
-
const n =
|
|
15883
|
+
const n = rf(r, 0);
|
|
15884
15884
|
if (n.geometry.type === "Polygon")
|
|
15885
15885
|
for (const i of n.geometry.coordinates)
|
|
15886
15886
|
Xa(i);
|
|
@@ -15921,7 +15921,7 @@ function af(r, t = !0, e = !0, n = {}, i = {}, o = (s) => {
|
|
|
15921
15921
|
};
|
|
15922
15922
|
function p(d, y = !1) {
|
|
15923
15923
|
const C = document.createElement("div");
|
|
15924
|
-
return new
|
|
15924
|
+
return new hc({ props: { displayIn: "leaflet" }, target: C }), new tr.Marker(d, {
|
|
15925
15925
|
interactive: y,
|
|
15926
15926
|
icon: new tr.DivIcon({
|
|
15927
15927
|
html: C,
|
|
@@ -15975,7 +15975,7 @@ function af(r, t = !0, e = !0, n = {}, i = {}, o = (s) => {
|
|
|
15975
15975
|
if (w.length > 0) {
|
|
15976
15976
|
let b = w.pop();
|
|
15977
15977
|
for (const A of w)
|
|
15978
|
-
b =
|
|
15978
|
+
b = lc(b, A);
|
|
15979
15979
|
Ya({ ...y, geometry: b }, C), E = !0;
|
|
15980
15980
|
} else {
|
|
15981
15981
|
const b = y.geometry.geometries.filter(
|
|
@@ -16052,7 +16052,7 @@ class uf extends tr.Control {
|
|
|
16052
16052
|
l,
|
|
16053
16053
|
a
|
|
16054
16054
|
);
|
|
16055
|
-
No(this, _n, new
|
|
16055
|
+
No(this, _n, new Bl({
|
|
16056
16056
|
target: n,
|
|
16057
16057
|
props: {
|
|
16058
16058
|
mapController: c,
|