@maptiler/geocoding-control 0.0.77 → 0.0.79
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/leaflet.js +457 -453
- package/leaflet.umd.js +5 -5
- package/maplibregl.js +457 -453
- package/maplibregl.umd.js +5 -5
- package/package.json +4 -4
- package/react.js +319 -315
- package/react.umd.js +1 -1
- package/src/lib/GeocodingControl.svelte +16 -4
- package/src/main.ts +12 -12
package/maplibregl.js
CHANGED
|
@@ -9,39 +9,39 @@ var Gn = (r, t, e) => (ta(r, t, "read from private field"), e ? e.call(r) : t.ge
|
|
|
9
9
|
}, No = (r, t, e, n) => (ta(r, t, "write to private field"), n ? n.call(r, e) : t.set(r, e), e);
|
|
10
10
|
function Nt() {
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function sl(r, t) {
|
|
13
13
|
for (const e in t)
|
|
14
14
|
r[e] = t[e];
|
|
15
15
|
return r;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function Ha(r) {
|
|
18
18
|
return r();
|
|
19
19
|
}
|
|
20
20
|
function ea() {
|
|
21
21
|
return /* @__PURE__ */ Object.create(null);
|
|
22
22
|
}
|
|
23
23
|
function Dr(r) {
|
|
24
|
-
r.forEach(
|
|
24
|
+
r.forEach(Ha);
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function Wa(r) {
|
|
27
27
|
return typeof r == "function";
|
|
28
28
|
}
|
|
29
29
|
function Mi(r, t) {
|
|
30
30
|
return r != r ? t == t : r !== t || r && typeof r == "object" || typeof r == "function";
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function al(r) {
|
|
33
33
|
return Object.keys(r).length === 0;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function ul(r, t, e, n) {
|
|
36
36
|
if (r) {
|
|
37
|
-
const i =
|
|
37
|
+
const i = ja(r, t, e, n);
|
|
38
38
|
return r[0](i);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
return r[1] && n ?
|
|
41
|
+
function ja(r, t, e, n) {
|
|
42
|
+
return r[1] && n ? sl(e.ctx.slice(), r[1](n(t))) : e.ctx;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function ll(r, t, e, n) {
|
|
45
45
|
if (r[2] && n) {
|
|
46
46
|
const i = r[2](n(e));
|
|
47
47
|
if (t.dirty === void 0)
|
|
@@ -56,13 +56,13 @@ function ul(r, t, e, n) {
|
|
|
56
56
|
}
|
|
57
57
|
return t.dirty;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function cl(r, t, e, n, i, o) {
|
|
60
60
|
if (i) {
|
|
61
|
-
const s =
|
|
61
|
+
const s = ja(t, e, n, o);
|
|
62
62
|
r.p(s, i);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function fl(r) {
|
|
66
66
|
if (r.ctx.length > 32) {
|
|
67
67
|
const t = [], e = r.ctx.length / 32;
|
|
68
68
|
for (let n = 0; n < e; n++)
|
|
@@ -83,7 +83,7 @@ function Ke(r, t, e) {
|
|
|
83
83
|
function Ae(r) {
|
|
84
84
|
r.parentNode && r.parentNode.removeChild(r);
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function hl(r, t) {
|
|
87
87
|
for (let e = 0; e < r.length; e += 1)
|
|
88
88
|
r[e] && r[e].d(t);
|
|
89
89
|
}
|
|
@@ -102,7 +102,7 @@ function Xn() {
|
|
|
102
102
|
function ke(r, t, e, n) {
|
|
103
103
|
return r.addEventListener(t, e, n), () => r.removeEventListener(t, e, n);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function gl(r) {
|
|
106
106
|
return function(t) {
|
|
107
107
|
return t.preventDefault(), r.call(this, t);
|
|
108
108
|
};
|
|
@@ -110,7 +110,7 @@ function hl(r) {
|
|
|
110
110
|
function B(r, t, e) {
|
|
111
111
|
e == null ? r.removeAttribute(t) : r.getAttribute(t) !== e && r.setAttribute(t, e);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function pl(r) {
|
|
114
114
|
return Array.from(r.childNodes);
|
|
115
115
|
}
|
|
116
116
|
function ji(r, t) {
|
|
@@ -122,7 +122,7 @@ function ra(r, t) {
|
|
|
122
122
|
function nn(r, t, e) {
|
|
123
123
|
r.classList[e ? "add" : "remove"](t);
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function dl(r, t, { bubbles: e = !1, cancelable: n = !1 } = {}) {
|
|
126
126
|
const i = document.createEvent("CustomEvent");
|
|
127
127
|
return i.initCustomEvent(r, e, n, t), i;
|
|
128
128
|
}
|
|
@@ -130,20 +130,20 @@ let Ki;
|
|
|
130
130
|
function Hi(r) {
|
|
131
131
|
Ki = r;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function Ka() {
|
|
134
134
|
if (!Ki)
|
|
135
135
|
throw new Error("Function called outside component initialization");
|
|
136
136
|
return Ki;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
139
|
-
|
|
138
|
+
function vl(r) {
|
|
139
|
+
Ka().$$.on_destroy.push(r);
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
const r =
|
|
141
|
+
function yl() {
|
|
142
|
+
const r = Ka();
|
|
143
143
|
return (t, e, { cancelable: n = !1 } = {}) => {
|
|
144
144
|
const i = r.$$.callbacks[t];
|
|
145
145
|
if (i) {
|
|
146
|
-
const o =
|
|
146
|
+
const o = dl(t, e, { cancelable: n });
|
|
147
147
|
return i.slice().forEach((s) => {
|
|
148
148
|
s.call(r, o);
|
|
149
149
|
}), !o.defaultPrevented;
|
|
@@ -153,17 +153,17 @@ function vl() {
|
|
|
153
153
|
}
|
|
154
154
|
const ai = [], ys = [];
|
|
155
155
|
let li = [];
|
|
156
|
-
const ia = [],
|
|
156
|
+
const ia = [], ml = /* @__PURE__ */ Promise.resolve();
|
|
157
157
|
let ms = !1;
|
|
158
|
-
function
|
|
159
|
-
ms || (ms = !0,
|
|
158
|
+
function _l() {
|
|
159
|
+
ms || (ms = !0, ml.then(Qa));
|
|
160
160
|
}
|
|
161
161
|
function _s(r) {
|
|
162
162
|
li.push(r);
|
|
163
163
|
}
|
|
164
164
|
const hs = /* @__PURE__ */ new Set();
|
|
165
165
|
let si = 0;
|
|
166
|
-
function
|
|
166
|
+
function Qa() {
|
|
167
167
|
if (si !== 0)
|
|
168
168
|
return;
|
|
169
169
|
const r = Ki;
|
|
@@ -171,7 +171,7 @@ function Ka() {
|
|
|
171
171
|
try {
|
|
172
172
|
for (; si < ai.length; ) {
|
|
173
173
|
const t = ai[si];
|
|
174
|
-
si++, Hi(t),
|
|
174
|
+
si++, Hi(t), El(t.$$);
|
|
175
175
|
}
|
|
176
176
|
} catch (t) {
|
|
177
177
|
throw ai.length = 0, si = 0, t;
|
|
@@ -188,14 +188,14 @@ function Ka() {
|
|
|
188
188
|
ia.pop()();
|
|
189
189
|
ms = !1, hs.clear(), Hi(r);
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function El(r) {
|
|
192
192
|
if (r.fragment !== null) {
|
|
193
193
|
r.update(), Dr(r.before_update);
|
|
194
194
|
const t = r.dirty;
|
|
195
195
|
r.dirty = [-1], r.fragment && r.fragment.p(r.ctx, t), r.after_update.forEach(_s);
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function Il(r) {
|
|
199
199
|
const t = [], e = [];
|
|
200
200
|
li.forEach((n) => r.indexOf(n) === -1 ? t.push(n) : e.push(n)), e.forEach((n) => n()), li = t;
|
|
201
201
|
}
|
|
@@ -231,16 +231,16 @@ function Qi(r) {
|
|
|
231
231
|
function ci(r, t, e, n) {
|
|
232
232
|
const { fragment: i, after_update: o } = r.$$;
|
|
233
233
|
i && i.m(t, e), n || _s(() => {
|
|
234
|
-
const s = r.$$.on_mount.map(
|
|
234
|
+
const s = r.$$.on_mount.map(Ha).filter(Wa);
|
|
235
235
|
r.$$.on_destroy ? r.$$.on_destroy.push(...s) : Dr(s), r.$$.on_mount = [];
|
|
236
236
|
}), o.forEach(_s);
|
|
237
237
|
}
|
|
238
238
|
function fi(r, t) {
|
|
239
239
|
const e = r.$$;
|
|
240
|
-
e.fragment !== null && (
|
|
240
|
+
e.fragment !== null && (Il(e.after_update), Dr(e.on_destroy), e.fragment && e.fragment.d(t), e.on_destroy = e.fragment = null, e.ctx = []);
|
|
241
241
|
}
|
|
242
|
-
function
|
|
243
|
-
r.$$.dirty[0] === -1 && (ai.push(r),
|
|
242
|
+
function Cl(r, t) {
|
|
243
|
+
r.$$.dirty[0] === -1 && (ai.push(r), _l(), r.$$.dirty.fill(0)), r.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
244
244
|
}
|
|
245
245
|
function Ai(r, t, e, n, i, o, s, a = [-1]) {
|
|
246
246
|
const u = Ki;
|
|
@@ -270,14 +270,14 @@ function Ai(r, t, e, n, i, o, s, a = [-1]) {
|
|
|
270
270
|
let c = !1;
|
|
271
271
|
if (l.ctx = e ? e(r, t.props || {}, (f, h, ...g) => {
|
|
272
272
|
const p = g.length ? g[0] : h;
|
|
273
|
-
return l.ctx && i(l.ctx[f], l.ctx[f] = p) && (!l.skip_bound && l.bound[f] && l.bound[f](p), c &&
|
|
273
|
+
return l.ctx && i(l.ctx[f], l.ctx[f] = p) && (!l.skip_bound && l.bound[f] && l.bound[f](p), c && Cl(r, f)), h;
|
|
274
274
|
}) : [], l.update(), c = !0, Dr(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
275
275
|
if (t.hydrate) {
|
|
276
|
-
const f =
|
|
276
|
+
const f = pl(t.target);
|
|
277
277
|
l.fragment && l.fragment.l(f), f.forEach(Ae);
|
|
278
278
|
} else
|
|
279
279
|
l.fragment && l.fragment.c();
|
|
280
|
-
t.intro && Kt(r.$$.fragment), ci(r, t.target, t.anchor, t.customElement),
|
|
280
|
+
t.intro && Kt(r.$$.fragment), ci(r, t.target, t.anchor, t.customElement), Qa();
|
|
281
281
|
}
|
|
282
282
|
Hi(u);
|
|
283
283
|
}
|
|
@@ -286,7 +286,7 @@ class Fi {
|
|
|
286
286
|
fi(this, 1), this.$destroy = Nt;
|
|
287
287
|
}
|
|
288
288
|
$on(t, e) {
|
|
289
|
-
if (!
|
|
289
|
+
if (!Wa(e))
|
|
290
290
|
return Nt;
|
|
291
291
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
292
292
|
return n.push(e), () => {
|
|
@@ -295,10 +295,10 @@ class Fi {
|
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
297
|
$set(t) {
|
|
298
|
-
this.$$set && !
|
|
298
|
+
this.$$set && !al(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function Nl(r) {
|
|
302
302
|
let t, e;
|
|
303
303
|
return {
|
|
304
304
|
c() {
|
|
@@ -315,12 +315,12 @@ function Cl(r) {
|
|
|
315
315
|
}
|
|
316
316
|
};
|
|
317
317
|
}
|
|
318
|
-
class
|
|
318
|
+
class xl extends Fi {
|
|
319
319
|
constructor(t) {
|
|
320
|
-
super(), Ai(this, t, null,
|
|
320
|
+
super(), Ai(this, t, null, Nl, Mi, {});
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
|
-
function
|
|
323
|
+
function Sl(r) {
|
|
324
324
|
let t, e;
|
|
325
325
|
return {
|
|
326
326
|
c() {
|
|
@@ -337,12 +337,12 @@ function xl(r) {
|
|
|
337
337
|
}
|
|
338
338
|
};
|
|
339
339
|
}
|
|
340
|
-
class
|
|
340
|
+
class wl extends Fi {
|
|
341
341
|
constructor(t) {
|
|
342
|
-
super(), Ai(this, t, null,
|
|
342
|
+
super(), Ai(this, t, null, Sl, Mi, {});
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function Ll(r) {
|
|
346
346
|
let t;
|
|
347
347
|
return {
|
|
348
348
|
c() {
|
|
@@ -359,12 +359,12 @@ function wl(r) {
|
|
|
359
359
|
}
|
|
360
360
|
};
|
|
361
361
|
}
|
|
362
|
-
class
|
|
362
|
+
class bl extends Fi {
|
|
363
363
|
constructor(t) {
|
|
364
|
-
super(), Ai(this, t, null,
|
|
364
|
+
super(), Ai(this, t, null, Ll, Mi, {});
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function Pl(r) {
|
|
368
368
|
let t, e, n;
|
|
369
369
|
return {
|
|
370
370
|
c() {
|
|
@@ -408,18 +408,18 @@ function bl(r) {
|
|
|
408
408
|
}
|
|
409
409
|
};
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function Rl(r, t, e) {
|
|
412
412
|
let { displayIn: n } = t;
|
|
413
413
|
return r.$$set = (i) => {
|
|
414
414
|
"displayIn" in i && e(0, n = i.displayIn);
|
|
415
415
|
}, [n];
|
|
416
416
|
}
|
|
417
|
-
class
|
|
417
|
+
class Ja extends Fi {
|
|
418
418
|
constructor(t) {
|
|
419
|
-
super(), Ai(this, t,
|
|
419
|
+
super(), Ai(this, t, Rl, Pl, Mi, { displayIn: 0 });
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
function
|
|
422
|
+
function Ol(r) {
|
|
423
423
|
let t, e;
|
|
424
424
|
return {
|
|
425
425
|
c() {
|
|
@@ -436,9 +436,9 @@ function Rl(r) {
|
|
|
436
436
|
}
|
|
437
437
|
};
|
|
438
438
|
}
|
|
439
|
-
class
|
|
439
|
+
class Dl extends Fi {
|
|
440
440
|
constructor(t) {
|
|
441
|
-
super(), Ai(this, t, null,
|
|
441
|
+
super(), Ai(this, t, null, Ol, Mi, {});
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
444
|
function oa(r, t, e) {
|
|
@@ -447,7 +447,7 @@ function oa(r, t, e) {
|
|
|
447
447
|
}
|
|
448
448
|
function sa(r) {
|
|
449
449
|
let t, e;
|
|
450
|
-
return t = new
|
|
450
|
+
return t = new bl({}), {
|
|
451
451
|
c() {
|
|
452
452
|
Qi(t.$$.fragment);
|
|
453
453
|
},
|
|
@@ -467,7 +467,7 @@ function sa(r) {
|
|
|
467
467
|
}
|
|
468
468
|
function aa(r) {
|
|
469
469
|
let t, e, n, i, o;
|
|
470
|
-
return e = new
|
|
470
|
+
return e = new xl({}), {
|
|
471
471
|
c() {
|
|
472
472
|
t = Qt("button"), Qi(e.$$.fragment), B(t, "type", "button"), B(
|
|
473
473
|
t,
|
|
@@ -515,7 +515,7 @@ function aa(r) {
|
|
|
515
515
|
}
|
|
516
516
|
};
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function Tl(r) {
|
|
519
519
|
let t, e, n, i, o = (
|
|
520
520
|
/*listFeatures*/
|
|
521
521
|
r[12]
|
|
@@ -580,11 +580,11 @@ function Dl(r) {
|
|
|
580
580
|
e = !1;
|
|
581
581
|
},
|
|
582
582
|
d(u) {
|
|
583
|
-
u && Ae(t),
|
|
583
|
+
u && Ae(t), hl(s, u), n = !1, Dr(i);
|
|
584
584
|
}
|
|
585
585
|
};
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function Ml(r) {
|
|
588
588
|
let t, e;
|
|
589
589
|
return {
|
|
590
590
|
c() {
|
|
@@ -611,7 +611,7 @@ function Tl(r) {
|
|
|
611
611
|
}
|
|
612
612
|
};
|
|
613
613
|
}
|
|
614
|
-
function
|
|
614
|
+
function Al(r) {
|
|
615
615
|
let t = "", e;
|
|
616
616
|
return {
|
|
617
617
|
c() {
|
|
@@ -628,7 +628,7 @@ function Ml(r) {
|
|
|
628
628
|
}
|
|
629
629
|
};
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function Fl(r) {
|
|
632
632
|
let t, e;
|
|
633
633
|
return {
|
|
634
634
|
c() {
|
|
@@ -689,7 +689,7 @@ function la(r) {
|
|
|
689
689
|
/*feature*/
|
|
690
690
|
r[69].place_name.replace(/[^,]*,?\s*/, "") + ""
|
|
691
691
|
), p, y, v, m, E, C;
|
|
692
|
-
e = new
|
|
692
|
+
e = new Ja({ props: { displayIn: "list" } });
|
|
693
693
|
let N = (
|
|
694
694
|
/*showPlaceType*/
|
|
695
695
|
r[10] && ua(r)
|
|
@@ -759,9 +759,9 @@ function la(r) {
|
|
|
759
759
|
}
|
|
760
760
|
};
|
|
761
761
|
}
|
|
762
|
-
function
|
|
762
|
+
function Bl(r) {
|
|
763
763
|
let t, e, n, i, o, s, a, u, l, c, f, h, g, p, y, v, m, E, C, N;
|
|
764
|
-
i = new
|
|
764
|
+
i = new Dl({}), c = new wl({});
|
|
765
765
|
let x = (
|
|
766
766
|
/*abortController*/
|
|
767
767
|
r[17] && sa()
|
|
@@ -772,13 +772,13 @@ function Fl(r) {
|
|
|
772
772
|
const D = (
|
|
773
773
|
/*#slots*/
|
|
774
774
|
r[48].default
|
|
775
|
-
), T =
|
|
775
|
+
), T = ul(
|
|
776
776
|
D,
|
|
777
777
|
r,
|
|
778
778
|
/*$$scope*/
|
|
779
779
|
r[47],
|
|
780
780
|
null
|
|
781
|
-
), A = [Al, Ml, Tl
|
|
781
|
+
), A = [Fl, Al, Ml, Tl], q = [];
|
|
782
782
|
function j(P, X) {
|
|
783
783
|
var R, Y;
|
|
784
784
|
return (
|
|
@@ -877,7 +877,7 @@ function Fl(r) {
|
|
|
877
877
|
/*click_handler_1*/
|
|
878
878
|
r[55]
|
|
879
879
|
),
|
|
880
|
-
ke(t, "submit",
|
|
880
|
+
ke(t, "submit", gl(
|
|
881
881
|
/*handleOnSubmit*/
|
|
882
882
|
r[18]
|
|
883
883
|
))
|
|
@@ -923,19 +923,19 @@ function Fl(r) {
|
|
|
923
923
|
32 && Kt(L, 1)) : (L = aa(P), L.c(), Kt(L, 1), L.m(e, g)) : L && (Ro(), be(L, 1, 1, () => {
|
|
924
924
|
L = null;
|
|
925
925
|
}), Oo()), T && T.p && (!E || X[1] & /*$$scope*/
|
|
926
|
-
65536) &&
|
|
926
|
+
65536) && cl(
|
|
927
927
|
T,
|
|
928
928
|
D,
|
|
929
929
|
P,
|
|
930
930
|
/*$$scope*/
|
|
931
931
|
P[47],
|
|
932
|
-
E ?
|
|
932
|
+
E ? ll(
|
|
933
933
|
D,
|
|
934
934
|
/*$$scope*/
|
|
935
935
|
P[47],
|
|
936
936
|
X,
|
|
937
937
|
null
|
|
938
|
-
) :
|
|
938
|
+
) : fl(
|
|
939
939
|
/*$$scope*/
|
|
940
940
|
P[47]
|
|
941
941
|
),
|
|
@@ -968,11 +968,15 @@ function Fl(r) {
|
|
|
968
968
|
}
|
|
969
969
|
};
|
|
970
970
|
}
|
|
971
|
-
function
|
|
971
|
+
function Gl(r, t, e) {
|
|
972
972
|
const n = t[1], i = t[0], o = n - i;
|
|
973
973
|
return r === n && e ? r : ((r - i) % o + o) % o + i;
|
|
974
974
|
}
|
|
975
|
-
function
|
|
975
|
+
function ca(r) {
|
|
976
|
+
let t = [...r];
|
|
977
|
+
return t[2] < t[0] && (t[2] += 360), t;
|
|
978
|
+
}
|
|
979
|
+
function kl(r, t, e) {
|
|
976
980
|
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: y = "Searching failed" } = t, { filter: v = () => !0 } = t, { flyTo: m = !0 } = t, { fuzzyMatch: E = !0 } = t, { language: C = void 0 } = t, { limit: N = void 0 } = t, { mapController: x = void 0 } = t, { minLength: L = 2 } = t, { noResultsMessage: D = "No results found" } = t, { placeholder: T = "Search" } = t, { proximity: A = void 0 } = t, { reverseActive: q = p === "always" } = t, { reverseButtonTitle: j = "toggle reverse geocoding" } = t, { searchValue: P = "" } = t, { showFullGeometry: X = !0 } = t, { showPlaceType: R = !1 } = t, { showResultsWhileTyping: Y = !0 } = t, { trackProximity: at = !0 } = t, { types: St = void 0 } = t, { zoom: Xt = 16 } = t, { fetchParameters: fe = {} } = t;
|
|
977
981
|
function Ar() {
|
|
978
982
|
Fn.focus();
|
|
@@ -986,8 +990,8 @@ function Gl(r, t, e) {
|
|
|
986
990
|
}));
|
|
987
991
|
}
|
|
988
992
|
let he = !1, nt, Ot, vt, Js = "", Fn, At = -1, gr, Io = [], Fr, oi, Co;
|
|
989
|
-
const pr =
|
|
990
|
-
|
|
993
|
+
const pr = yl();
|
|
994
|
+
vl(() => {
|
|
991
995
|
x && (x.setEventHandler(void 0), x.indicateReverse(!1), x.setSelectedMarker(-1), x.setMarkers(void 0, void 0));
|
|
992
996
|
});
|
|
993
997
|
function Zs(S) {
|
|
@@ -996,7 +1000,7 @@ function Gl(r, t, e) {
|
|
|
996
1000
|
else if (P) {
|
|
997
1001
|
const Ft = S || !$s();
|
|
998
1002
|
ss(P, { exact: !0 }).then(() => {
|
|
999
|
-
e(44, Ot = nt), e(45, vt = void 0), Ft &&
|
|
1003
|
+
e(44, Ot = nt), e(45, vt = void 0), Ft && Yu();
|
|
1000
1004
|
}).catch((Bn) => e(16, gr = Bn));
|
|
1001
1005
|
}
|
|
1002
1006
|
}
|
|
@@ -1007,7 +1011,7 @@ function Gl(r, t, e) {
|
|
|
1007
1011
|
e(16, gr = void 0);
|
|
1008
1012
|
const Vi = $s(), Ge = new URLSearchParams();
|
|
1009
1013
|
C != null && Ge.set("language", Array.isArray(C) ? C.join(",") : C), St && Ge.set("types", St.join(",")), Vi || (u && Ge.set("bbox", u.map((Gr) => Gr.toFixed(6)).join(",")), h && Ge.set("country", Array.isArray(h) ? h.join(",") : h)), Ft || (A && Ge.set("proximity", A.map((Gr) => Gr.toFixed(6)).join(",")), (Bn || !Y) && Ge.set("autocomplete", "false"), Ge.set("fuzzyMatch", String(E))), N !== void 0 && Ge.set("limit", String(N)), Ge.set("key", a);
|
|
1010
|
-
const Br = "https://api.maptiler.com/geocoding/" + encodeURIComponent(S
|
|
1014
|
+
const Br = "https://api.maptiler.com/geocoding/" + encodeURIComponent(S) + ".json?" + Ge.toString();
|
|
1011
1015
|
if (Br === Js) {
|
|
1012
1016
|
Ft ? (e(12, nt = void 0), e(45, vt = Io[0])) : e(12, nt = Io);
|
|
1013
1017
|
return;
|
|
@@ -1030,19 +1034,19 @@ function Gl(r, t, e) {
|
|
|
1030
1034
|
const cs = await ls.json();
|
|
1031
1035
|
pr("response", { url: Br, featureCollection: cs }), Ft ? (e(12, nt = void 0), e(45, vt = cs.features[0]), Io = [vt]) : (e(12, nt = cs.features.filter(v)), Io = nt, Vi && Fn.focus());
|
|
1032
1036
|
}
|
|
1033
|
-
function
|
|
1037
|
+
function Yu() {
|
|
1034
1038
|
var Bn, Vi, Ge, Br;
|
|
1035
1039
|
if (!(Ot != null && Ot.length) || !m)
|
|
1036
1040
|
return;
|
|
1037
1041
|
const S = [180, 90, -180, -90], Ft = !Ot.some((me) => !me.matching_text);
|
|
1038
1042
|
for (const me of Ot)
|
|
1039
1043
|
(Ft || !me.matching_text) && (S[0] = Math.min(S[0], ((Bn = me.bbox) == null ? void 0 : Bn[0]) ?? me.center[0]), S[1] = Math.min(S[1], ((Vi = me.bbox) == null ? void 0 : Vi[1]) ?? me.center[1]), S[2] = Math.max(S[2], ((Ge = me.bbox) == null ? void 0 : Ge[2]) ?? me.center[0]), S[3] = Math.max(S[3], ((Br = me.bbox) == null ? void 0 : Br[3]) ?? me.center[1]));
|
|
1040
|
-
x && Ot.length > 0 && (vt && S[0] === S[2] && S[1] === S[3] ? x.flyTo(vt.center, Xt) : x.fitBounds(S, 50));
|
|
1041
|
-
}
|
|
1042
|
-
function Yu(S) {
|
|
1043
|
-
e(0, q = p === "always"), An(Bl(S[0], [-180, 180], !0).toFixed(6) + "," + S[1].toFixed(6));
|
|
1044
|
+
x && Ot.length > 0 && (vt && S[0] === S[2] && S[1] === S[3] ? x.flyTo(vt.center, Xt) : x.fitBounds(ca(S), 50));
|
|
1044
1045
|
}
|
|
1045
1046
|
function Hu(S) {
|
|
1047
|
+
e(0, q = p === "always"), An(Gl(S[0], [-180, 180], !0).toFixed(6) + "," + S[1].toFixed(6));
|
|
1048
|
+
}
|
|
1049
|
+
function Wu(S) {
|
|
1046
1050
|
if (!nt)
|
|
1047
1051
|
return;
|
|
1048
1052
|
let Ft = S.key === "ArrowDown" ? 1 : S.key === "ArrowUp" ? -1 : 0;
|
|
@@ -1064,18 +1068,18 @@ function Gl(r, t, e) {
|
|
|
1064
1068
|
function us(S) {
|
|
1065
1069
|
e(45, vt = S), e(1, P = S.place_name), e(13, At = -1);
|
|
1066
1070
|
}
|
|
1067
|
-
const
|
|
1068
|
-
function
|
|
1071
|
+
const ju = () => Fn.focus();
|
|
1072
|
+
function Ku(S) {
|
|
1069
1073
|
ys[S ? "unshift" : "push"](() => {
|
|
1070
1074
|
Fn = S, e(15, Fn);
|
|
1071
1075
|
});
|
|
1072
1076
|
}
|
|
1073
|
-
function
|
|
1077
|
+
function Qu() {
|
|
1074
1078
|
P = this.value, e(1, P), e(11, he), e(25, c);
|
|
1075
1079
|
}
|
|
1076
|
-
const
|
|
1080
|
+
const Ju = () => e(11, he = !0), Zu = () => e(11, he = !1), $u = () => as(), tl = () => {
|
|
1077
1081
|
e(1, P = ""), Fn.focus();
|
|
1078
|
-
},
|
|
1082
|
+
}, el = () => e(0, q = !q), nl = (S) => e(13, At = S), rl = (S) => us(S), il = () => e(13, At = -1), ol = () => {
|
|
1079
1083
|
};
|
|
1080
1084
|
return r.$$set = (S) => {
|
|
1081
1085
|
"class" in S && e(2, s = S.class), "apiKey" in S && e(23, a = S.apiKey), "bbox" in S && e(24, u = S.bbox), "clearButtonTitle" in S && e(3, l = S.clearButtonTitle), "clearOnBlur" in S && e(25, c = S.clearOnBlur), "collapsed" in S && e(4, f = S.collapsed), "country" in S && e(26, h = S.country), "debounceSearch" in S && e(27, g = S.debounceSearch), "enableReverse" in S && e(5, p = S.enableReverse), "errorMessage" in S && e(6, y = S.errorMessage), "filter" in S && e(28, v = S.filter), "flyTo" in S && e(29, m = S.flyTo), "fuzzyMatch" in S && e(30, E = S.fuzzyMatch), "language" in S && e(31, C = S.language), "limit" in S && e(32, N = S.limit), "mapController" in S && e(33, x = S.mapController), "minLength" in S && e(34, L = S.minLength), "noResultsMessage" in S && e(7, D = S.noResultsMessage), "placeholder" in S && e(8, T = S.placeholder), "proximity" in S && e(22, A = S.proximity), "reverseActive" in S && e(0, q = S.reverseActive), "reverseButtonTitle" in S && e(9, j = S.reverseButtonTitle), "searchValue" in S && e(1, P = S.searchValue), "showFullGeometry" in S && e(35, X = S.showFullGeometry), "showPlaceType" in S && e(10, R = S.showPlaceType), "showResultsWhileTyping" in S && e(36, Y = S.showResultsWhileTyping), "trackProximity" in S && e(37, at = S.trackProximity), "types" in S && e(38, St = S.types), "zoom" in S && e(39, Xt = S.zoom), "fetchParameters" in S && e(40, fe = S.fetchParameters), "$$scope" in S && e(47, o = S.$$scope);
|
|
@@ -1088,7 +1092,7 @@ function Gl(r, t, e) {
|
|
|
1088
1092
|
4098 && (P || (e(45, vt = void 0), e(12, nt = void 0), e(16, gr = void 0), e(44, Ot = nt))), r.$$.dirty[1] & /*showFullGeometry, picked*/
|
|
1089
1093
|
16400 && X && vt && !vt.address && vt.geometry.type === "Point" && ss(vt.id, { byId: !0 }).catch((S) => e(16, gr = S)), r.$$.dirty[0] & /*flyTo*/
|
|
1090
1094
|
536870912 | r.$$.dirty[1] & /*mapController, picked, zoom*/
|
|
1091
|
-
16644 && x && vt && m && (!vt.bbox || vt.bbox[0] === vt.bbox[2] && vt.bbox[1] === vt.bbox[3] ? x.flyTo(vt.center, Xt) : x.fitBounds(vt.bbox, 50), e(12, nt = void 0), e(44, Ot = void 0), e(13, At = -1)), r.$$.dirty[0] & /*listFeatures*/
|
|
1095
|
+
16644 && x && vt && m && (!vt.bbox || vt.bbox[0] === vt.bbox[2] && vt.bbox[1] === vt.bbox[3] ? x.flyTo(vt.center, Xt) : x.fitBounds(ca(vt.bbox), 50), e(12, nt = void 0), e(44, Ot = void 0), e(13, At = -1)), r.$$.dirty[0] & /*listFeatures*/
|
|
1092
1096
|
4096 | r.$$.dirty[1] & /*markedFeatures*/
|
|
1093
1097
|
8192 && Ot !== nt && e(44, Ot = void 0), r.$$.dirty[1] & /*mapController, markedFeatures, picked*/
|
|
1094
1098
|
24580 && x && x.setMarkers(Ot, vt), r.$$.dirty[0] & /*searchValue*/
|
|
@@ -1097,7 +1101,7 @@ function Gl(r, t, e) {
|
|
|
1097
1101
|
68 && x && x.setEventHandler((S) => {
|
|
1098
1102
|
switch (S.type) {
|
|
1099
1103
|
case "mapClick":
|
|
1100
|
-
q &&
|
|
1104
|
+
q && Hu(S.coordinates);
|
|
1101
1105
|
break;
|
|
1102
1106
|
case "proximityChange":
|
|
1103
1107
|
e(22, A = at ? S.proximity : void 0);
|
|
@@ -1154,7 +1158,7 @@ function Gl(r, t, e) {
|
|
|
1154
1158
|
gr,
|
|
1155
1159
|
Fr,
|
|
1156
1160
|
Zs,
|
|
1157
|
-
|
|
1161
|
+
Wu,
|
|
1158
1162
|
as,
|
|
1159
1163
|
us,
|
|
1160
1164
|
A,
|
|
@@ -1184,7 +1188,6 @@ function Gl(r, t, e) {
|
|
|
1184
1188
|
n,
|
|
1185
1189
|
o,
|
|
1186
1190
|
i,
|
|
1187
|
-
Wu,
|
|
1188
1191
|
ju,
|
|
1189
1192
|
Ku,
|
|
1190
1193
|
Qu,
|
|
@@ -1195,16 +1198,17 @@ function Gl(r, t, e) {
|
|
|
1195
1198
|
el,
|
|
1196
1199
|
nl,
|
|
1197
1200
|
rl,
|
|
1198
|
-
il
|
|
1201
|
+
il,
|
|
1202
|
+
ol
|
|
1199
1203
|
];
|
|
1200
1204
|
}
|
|
1201
|
-
let
|
|
1205
|
+
let zl = class extends Fi {
|
|
1202
1206
|
constructor(t) {
|
|
1203
1207
|
super(), Ai(
|
|
1204
1208
|
this,
|
|
1205
1209
|
t,
|
|
1206
|
-
|
|
1207
|
-
|
|
1210
|
+
kl,
|
|
1211
|
+
Bl,
|
|
1208
1212
|
Mi,
|
|
1209
1213
|
{
|
|
1210
1214
|
class: 2,
|
|
@@ -1277,7 +1281,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
1277
1281
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
1278
1282
|
and limitations under the License.
|
|
1279
1283
|
***************************************************************************** */
|
|
1280
|
-
function
|
|
1284
|
+
function Vl(r, t) {
|
|
1281
1285
|
var e = { label: 0, sent: function() {
|
|
1282
1286
|
if (o[0] & 1)
|
|
1283
1287
|
throw o[1];
|
|
@@ -1351,7 +1355,7 @@ var Cr = (
|
|
|
1351
1355
|
return r;
|
|
1352
1356
|
}()
|
|
1353
1357
|
);
|
|
1354
|
-
function
|
|
1358
|
+
function Ul(r, t) {
|
|
1355
1359
|
return r > t ? 1 : r < t ? -1 : 0;
|
|
1356
1360
|
}
|
|
1357
1361
|
function yr(r, t, e) {
|
|
@@ -1388,7 +1392,7 @@ function gs(r, t, e, n) {
|
|
|
1388
1392
|
var o = n(r, e.key);
|
|
1389
1393
|
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;
|
|
1390
1394
|
}
|
|
1391
|
-
function
|
|
1395
|
+
function fa(r, t, e) {
|
|
1392
1396
|
var n = null, i = null;
|
|
1393
1397
|
if (t) {
|
|
1394
1398
|
t = yr(r, t, e);
|
|
@@ -1397,7 +1401,7 @@ function ca(r, t, e) {
|
|
|
1397
1401
|
}
|
|
1398
1402
|
return { left: n, right: i };
|
|
1399
1403
|
}
|
|
1400
|
-
function
|
|
1404
|
+
function ql(r, t, e) {
|
|
1401
1405
|
return t === null ? r : (r === null || (t = yr(r.key, t, e), t.left = r), t);
|
|
1402
1406
|
}
|
|
1403
1407
|
function Es(r, t, e, n, i) {
|
|
@@ -1412,7 +1416,7 @@ var Ms = (
|
|
|
1412
1416
|
/** @class */
|
|
1413
1417
|
function() {
|
|
1414
1418
|
function r(t) {
|
|
1415
|
-
t === void 0 && (t =
|
|
1419
|
+
t === void 0 && (t = Ul), this._root = null, this._size = 0, this._comparator = t;
|
|
1416
1420
|
}
|
|
1417
1421
|
return r.prototype.insert = function(t, e) {
|
|
1418
1422
|
return this._size++, this._root = gs(t, e, this._root, this._comparator);
|
|
@@ -1540,14 +1544,14 @@ var Ms = (
|
|
|
1540
1544
|
}, r.prototype.clear = function() {
|
|
1541
1545
|
return this._root = null, this._size = 0, this;
|
|
1542
1546
|
}, r.prototype.toList = function() {
|
|
1543
|
-
return
|
|
1547
|
+
return Yl(this._root);
|
|
1544
1548
|
}, r.prototype.load = function(t, e, n) {
|
|
1545
1549
|
e === void 0 && (e = []), n === void 0 && (n = !1);
|
|
1546
1550
|
var i = t.length, o = this._comparator;
|
|
1547
1551
|
if (n && Ns(t, e, 0, i - 1, o), this._root === null)
|
|
1548
1552
|
this._root = Is(t, e, 0, i), this._size = i;
|
|
1549
1553
|
else {
|
|
1550
|
-
var s =
|
|
1554
|
+
var s = Hl(this.toList(), Xl(t, e), o);
|
|
1551
1555
|
i = this._size + i, this._root = Cs({ head: s }, 0, i);
|
|
1552
1556
|
}
|
|
1553
1557
|
return this;
|
|
@@ -1574,13 +1578,13 @@ var Ms = (
|
|
|
1574
1578
|
return e.push(n);
|
|
1575
1579
|
}, t), e.join("");
|
|
1576
1580
|
}, r.prototype.update = function(t, e, n) {
|
|
1577
|
-
var i = this._comparator, o =
|
|
1578
|
-
i(t, e) < 0 ? a = gs(e, n, a, i) : s = gs(e, n, s, i), this._root =
|
|
1581
|
+
var i = this._comparator, o = fa(t, this._root, i), s = o.left, a = o.right;
|
|
1582
|
+
i(t, e) < 0 ? a = gs(e, n, a, i) : s = gs(e, n, s, i), this._root = ql(s, a, i);
|
|
1579
1583
|
}, r.prototype.split = function(t) {
|
|
1580
|
-
return
|
|
1584
|
+
return fa(t, this._root, this._comparator);
|
|
1581
1585
|
}, r.prototype[Symbol.iterator] = function() {
|
|
1582
1586
|
var t;
|
|
1583
|
-
return
|
|
1587
|
+
return Vl(this, function(e) {
|
|
1584
1588
|
switch (e.label) {
|
|
1585
1589
|
case 0:
|
|
1586
1590
|
t = this.minNode(), e.label = 1;
|
|
@@ -1606,12 +1610,12 @@ function Is(r, t, e, n) {
|
|
|
1606
1610
|
}
|
|
1607
1611
|
return null;
|
|
1608
1612
|
}
|
|
1609
|
-
function
|
|
1613
|
+
function Xl(r, t) {
|
|
1610
1614
|
for (var e = new Cr(null, null), n = e, i = 0; i < r.length; i++)
|
|
1611
1615
|
n = n.next = new Cr(r[i], t[i]);
|
|
1612
1616
|
return n.next = null, e.next;
|
|
1613
1617
|
}
|
|
1614
|
-
function
|
|
1618
|
+
function Yl(r) {
|
|
1615
1619
|
for (var t = r, e = [], n = !1, i = new Cr(null, null), o = i; !n; )
|
|
1616
1620
|
t ? (e.push(t), t = t.left) : e.length > 0 ? (t = o = o.next = e.pop(), t = t.right) : n = !0;
|
|
1617
1621
|
return o.next = null, i.next;
|
|
@@ -1624,7 +1628,7 @@ function Cs(r, t, e) {
|
|
|
1624
1628
|
}
|
|
1625
1629
|
return null;
|
|
1626
1630
|
}
|
|
1627
|
-
function
|
|
1631
|
+
function Hl(r, t, e) {
|
|
1628
1632
|
for (var n = new Cr(null, null), i = n, o = r, s = t; o !== null && s !== null; )
|
|
1629
1633
|
e(o.key, s.key) < 0 ? (i.next = o, o = o.next) : (i.next = s, s = s.next), i = i.next;
|
|
1630
1634
|
return o !== null ? i.next = o : s !== null && (i.next = s), n.next;
|
|
@@ -1650,14 +1654,14 @@ function vn(r, t) {
|
|
|
1650
1654
|
if (!(r instanceof t))
|
|
1651
1655
|
throw new TypeError("Cannot call a class as a function");
|
|
1652
1656
|
}
|
|
1653
|
-
function
|
|
1657
|
+
function ha(r, t) {
|
|
1654
1658
|
for (var e = 0; e < t.length; e++) {
|
|
1655
1659
|
var n = t[e];
|
|
1656
1660
|
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n);
|
|
1657
1661
|
}
|
|
1658
1662
|
}
|
|
1659
1663
|
function Ce(r, t, e) {
|
|
1660
|
-
return t &&
|
|
1664
|
+
return t && ha(r.prototype, t), e && ha(r, e), r;
|
|
1661
1665
|
}
|
|
1662
1666
|
var Ui = function(t, e) {
|
|
1663
1667
|
return t.ll.x <= e.x && e.x <= t.ur.x && t.ll.y <= e.y && e.y <= t.ur.y;
|
|
@@ -1677,19 +1681,19 @@ var Ui = function(t, e) {
|
|
|
1677
1681
|
};
|
|
1678
1682
|
}, mr = Number.EPSILON;
|
|
1679
1683
|
mr === void 0 && (mr = Math.pow(2, -52));
|
|
1680
|
-
var
|
|
1684
|
+
var Wl = mr * mr, Ss = function(t, e) {
|
|
1681
1685
|
if (-mr < t && t < mr && -mr < e && e < mr)
|
|
1682
1686
|
return 0;
|
|
1683
1687
|
var n = t - e;
|
|
1684
|
-
return n * n <
|
|
1685
|
-
},
|
|
1688
|
+
return n * n < Wl * t * e ? 0 : t < e ? -1 : 1;
|
|
1689
|
+
}, jl = /* @__PURE__ */ function() {
|
|
1686
1690
|
function r() {
|
|
1687
1691
|
vn(this, r), this.reset();
|
|
1688
1692
|
}
|
|
1689
1693
|
return Ce(r, [{
|
|
1690
1694
|
key: "reset",
|
|
1691
1695
|
value: function() {
|
|
1692
|
-
this.xRounder = new
|
|
1696
|
+
this.xRounder = new ga(), this.yRounder = new ga();
|
|
1693
1697
|
}
|
|
1694
1698
|
}, {
|
|
1695
1699
|
key: "round",
|
|
@@ -1700,7 +1704,7 @@ var Hl = mr * mr, Ss = function(t, e) {
|
|
|
1700
1704
|
};
|
|
1701
1705
|
}
|
|
1702
1706
|
}]), r;
|
|
1703
|
-
}(),
|
|
1707
|
+
}(), ga = /* @__PURE__ */ function() {
|
|
1704
1708
|
function r() {
|
|
1705
1709
|
vn(this, r), this.tree = new Ms(), this.round(0);
|
|
1706
1710
|
}
|
|
@@ -1714,11 +1718,11 @@ var Hl = mr * mr, Ss = function(t, e) {
|
|
|
1714
1718
|
return o !== null && Ss(n.key, o.key) === 0 ? (this.tree.remove(e), o.key) : e;
|
|
1715
1719
|
}
|
|
1716
1720
|
}]), r;
|
|
1717
|
-
}(), Ji = new
|
|
1721
|
+
}(), Ji = new jl(), Wi = function(t, e) {
|
|
1718
1722
|
return t.x * e.y - t.y * e.x;
|
|
1719
|
-
},
|
|
1723
|
+
}, Za = function(t, e) {
|
|
1720
1724
|
return t.x * e.x + t.y * e.y;
|
|
1721
|
-
},
|
|
1725
|
+
}, pa = function(t, e, n) {
|
|
1722
1726
|
var i = {
|
|
1723
1727
|
x: e.x - t.x,
|
|
1724
1728
|
y: e.y - t.y
|
|
@@ -1728,8 +1732,8 @@ var Hl = mr * mr, Ss = function(t, e) {
|
|
|
1728
1732
|
}, s = Wi(i, o);
|
|
1729
1733
|
return Ss(s, 0);
|
|
1730
1734
|
}, Mo = function(t) {
|
|
1731
|
-
return Math.sqrt(
|
|
1732
|
-
},
|
|
1735
|
+
return Math.sqrt(Za(t, t));
|
|
1736
|
+
}, Kl = function(t, e, n) {
|
|
1733
1737
|
var i = {
|
|
1734
1738
|
x: e.x - t.x,
|
|
1735
1739
|
y: e.y - t.y
|
|
@@ -1738,7 +1742,7 @@ var Hl = mr * mr, Ss = function(t, e) {
|
|
|
1738
1742
|
y: n.y - t.y
|
|
1739
1743
|
};
|
|
1740
1744
|
return Wi(o, i) / Mo(o) / Mo(i);
|
|
1741
|
-
},
|
|
1745
|
+
}, Ql = function(t, e, n) {
|
|
1742
1746
|
var i = {
|
|
1743
1747
|
x: e.x - t.x,
|
|
1744
1748
|
y: e.y - t.y
|
|
@@ -1746,26 +1750,26 @@ var Hl = mr * mr, Ss = function(t, e) {
|
|
|
1746
1750
|
x: n.x - t.x,
|
|
1747
1751
|
y: n.y - t.y
|
|
1748
1752
|
};
|
|
1749
|
-
return
|
|
1750
|
-
},
|
|
1753
|
+
return Za(o, i) / Mo(o) / Mo(i);
|
|
1754
|
+
}, da = function(t, e, n) {
|
|
1751
1755
|
return e.y === 0 ? null : {
|
|
1752
1756
|
x: t.x + e.x / e.y * (n - t.y),
|
|
1753
1757
|
y: n
|
|
1754
1758
|
};
|
|
1755
|
-
},
|
|
1759
|
+
}, va = function(t, e, n) {
|
|
1756
1760
|
return e.x === 0 ? null : {
|
|
1757
1761
|
x: n,
|
|
1758
1762
|
y: t.y + e.y / e.x * (n - t.x)
|
|
1759
1763
|
};
|
|
1760
|
-
},
|
|
1764
|
+
}, Jl = function(t, e, n, i) {
|
|
1761
1765
|
if (e.x === 0)
|
|
1762
|
-
return
|
|
1766
|
+
return va(n, i, t.x);
|
|
1763
1767
|
if (i.x === 0)
|
|
1764
|
-
return
|
|
1768
|
+
return va(t, e, n.x);
|
|
1765
1769
|
if (e.y === 0)
|
|
1766
|
-
return
|
|
1770
|
+
return da(n, i, t.y);
|
|
1767
1771
|
if (i.y === 0)
|
|
1768
|
-
return
|
|
1772
|
+
return da(t, e, n.y);
|
|
1769
1773
|
var o = Wi(e, i);
|
|
1770
1774
|
if (o == 0)
|
|
1771
1775
|
return null;
|
|
@@ -1846,8 +1850,8 @@ var Hl = mr * mr, Ss = function(t, e) {
|
|
|
1846
1850
|
var n = this, i = /* @__PURE__ */ new Map(), o = function(a) {
|
|
1847
1851
|
var u = a.otherSE;
|
|
1848
1852
|
i.set(a, {
|
|
1849
|
-
sine:
|
|
1850
|
-
cosine:
|
|
1853
|
+
sine: Kl(n.point, e.point, u.point),
|
|
1854
|
+
cosine: Ql(n.point, e.point, u.point)
|
|
1851
1855
|
});
|
|
1852
1856
|
};
|
|
1853
1857
|
return function(s, a) {
|
|
@@ -1857,7 +1861,7 @@ var Hl = mr * mr, Ss = function(t, e) {
|
|
|
1857
1861
|
};
|
|
1858
1862
|
}
|
|
1859
1863
|
}]), r;
|
|
1860
|
-
}(),
|
|
1864
|
+
}(), Zl = 0, Ao = /* @__PURE__ */ function() {
|
|
1861
1865
|
Ce(r, null, [{
|
|
1862
1866
|
key: "compare",
|
|
1863
1867
|
/* This compare() function is for ordering segments in the sweep
|
|
@@ -1933,7 +1937,7 @@ var Hl = mr * mr, Ss = function(t, e) {
|
|
|
1933
1937
|
* and possibly will be later modified */
|
|
1934
1938
|
}]);
|
|
1935
1939
|
function r(t, e, n, i) {
|
|
1936
|
-
vn(this, r), this.id = ++
|
|
1940
|
+
vn(this, r), this.id = ++Zl, this.leftSE = t, t.segment = this, t.otherSE = e, this.rightSE = e, e.segment = this, e.otherSE = t, this.rings = n, this.windings = i;
|
|
1937
1941
|
}
|
|
1938
1942
|
return Ce(r, [{
|
|
1939
1943
|
key: "replaceRightSE",
|
|
@@ -2031,7 +2035,7 @@ var Hl = mr * mr, Ss = function(t, e) {
|
|
|
2031
2035
|
return a;
|
|
2032
2036
|
if (h)
|
|
2033
2037
|
return l;
|
|
2034
|
-
var p =
|
|
2038
|
+
var p = Jl(s, this.vector(), u, e.vector());
|
|
2035
2039
|
return p === null || !Ui(o, p) ? null : Ji.round(p.x, p.y);
|
|
2036
2040
|
}
|
|
2037
2041
|
/**
|
|
@@ -2196,7 +2200,7 @@ var Hl = mr * mr, Ss = function(t, e) {
|
|
|
2196
2200
|
return new r(l, c, [i], [a]);
|
|
2197
2201
|
}
|
|
2198
2202
|
}]), r;
|
|
2199
|
-
}(),
|
|
2203
|
+
}(), ya = /* @__PURE__ */ function() {
|
|
2200
2204
|
function r(t, e, n) {
|
|
2201
2205
|
if (vn(this, r), !Array.isArray(t) || t.length === 0)
|
|
2202
2206
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
@@ -2231,11 +2235,11 @@ var Hl = mr * mr, Ss = function(t, e) {
|
|
|
2231
2235
|
return e;
|
|
2232
2236
|
}
|
|
2233
2237
|
}]), r;
|
|
2234
|
-
}(),
|
|
2238
|
+
}(), $l = /* @__PURE__ */ function() {
|
|
2235
2239
|
function r(t, e) {
|
|
2236
2240
|
if (vn(this, r), !Array.isArray(t))
|
|
2237
2241
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
2238
|
-
this.exteriorRing = new
|
|
2242
|
+
this.exteriorRing = new ya(t[0], this, !0), this.bbox = {
|
|
2239
2243
|
ll: {
|
|
2240
2244
|
x: this.exteriorRing.bbox.ll.x,
|
|
2241
2245
|
y: this.exteriorRing.bbox.ll.y
|
|
@@ -2246,7 +2250,7 @@ var Hl = mr * mr, Ss = function(t, e) {
|
|
|
2246
2250
|
}
|
|
2247
2251
|
}, this.interiorRings = [];
|
|
2248
2252
|
for (var n = 1, i = t.length; n < i; n++) {
|
|
2249
|
-
var o = new
|
|
2253
|
+
var o = new ya(t[n], this, !1);
|
|
2250
2254
|
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.interiorRings.push(o);
|
|
2251
2255
|
}
|
|
2252
2256
|
this.multiPoly = e;
|
|
@@ -2260,7 +2264,7 @@ var Hl = mr * mr, Ss = function(t, e) {
|
|
|
2260
2264
|
return e;
|
|
2261
2265
|
}
|
|
2262
2266
|
}]), r;
|
|
2263
|
-
}(),
|
|
2267
|
+
}(), ma = /* @__PURE__ */ function() {
|
|
2264
2268
|
function r(t, e) {
|
|
2265
2269
|
if (vn(this, r), !Array.isArray(t))
|
|
2266
2270
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
@@ -2279,7 +2283,7 @@ var Hl = mr * mr, Ss = function(t, e) {
|
|
|
2279
2283
|
}
|
|
2280
2284
|
};
|
|
2281
2285
|
for (var n = 0, i = t.length; n < i; n++) {
|
|
2282
|
-
var o = new
|
|
2286
|
+
var o = new $l(t[n], this);
|
|
2283
2287
|
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);
|
|
2284
2288
|
}
|
|
2285
2289
|
this.isSubject = e;
|
|
@@ -2293,7 +2297,7 @@ var Hl = mr * mr, Ss = function(t, e) {
|
|
|
2293
2297
|
return e;
|
|
2294
2298
|
}
|
|
2295
2299
|
}]), r;
|
|
2296
|
-
}(),
|
|
2300
|
+
}(), tc = /* @__PURE__ */ function() {
|
|
2297
2301
|
Ce(r, null, [{
|
|
2298
2302
|
key: "factory",
|
|
2299
2303
|
/* Given the segments from the sweep line pass, compute & return a series
|
|
@@ -2348,12 +2352,12 @@ var Hl = mr * mr, Ss = function(t, e) {
|
|
|
2348
2352
|
value: function() {
|
|
2349
2353
|
for (var e = this.events[0].point, n = [e], i = 1, o = this.events.length - 1; i < o; i++) {
|
|
2350
2354
|
var s = this.events[i].point, a = this.events[i + 1].point;
|
|
2351
|
-
|
|
2355
|
+
pa(s, e, a) !== 0 && (n.push(s), e = s);
|
|
2352
2356
|
}
|
|
2353
2357
|
if (n.length === 1)
|
|
2354
2358
|
return null;
|
|
2355
2359
|
var u = n[0], l = n[1];
|
|
2356
|
-
|
|
2360
|
+
pa(u, e, l) === 0 && n.shift(), n.push(n[0]);
|
|
2357
2361
|
for (var c = this.isExteriorRing() ? 1 : -1, f = this.isExteriorRing() ? 0 : n.length - 1, h = this.isExteriorRing() ? n.length : -1, g = [], p = f; p != h; p += c)
|
|
2358
2362
|
g.push([n[p].x, n[p].y]);
|
|
2359
2363
|
return g;
|
|
@@ -2391,7 +2395,7 @@ var Hl = mr * mr, Ss = function(t, e) {
|
|
|
2391
2395
|
}
|
|
2392
2396
|
}
|
|
2393
2397
|
}]), r;
|
|
2394
|
-
}(),
|
|
2398
|
+
}(), _a = /* @__PURE__ */ function() {
|
|
2395
2399
|
function r(t) {
|
|
2396
2400
|
vn(this, r), this.exteriorRing = t, t.poly = this, this.interiorRings = [];
|
|
2397
2401
|
}
|
|
@@ -2413,7 +2417,7 @@ var Hl = mr * mr, Ss = function(t, e) {
|
|
|
2413
2417
|
return e;
|
|
2414
2418
|
}
|
|
2415
2419
|
}]), r;
|
|
2416
|
-
}(),
|
|
2420
|
+
}(), ec = /* @__PURE__ */ function() {
|
|
2417
2421
|
function r(t) {
|
|
2418
2422
|
vn(this, r), this.rings = t, this.polys = this._composePolys(t);
|
|
2419
2423
|
}
|
|
@@ -2433,16 +2437,16 @@ var Hl = mr * mr, Ss = function(t, e) {
|
|
|
2433
2437
|
var s = e[i];
|
|
2434
2438
|
if (!s.poly)
|
|
2435
2439
|
if (s.isExteriorRing())
|
|
2436
|
-
n.push(new
|
|
2440
|
+
n.push(new _a(s));
|
|
2437
2441
|
else {
|
|
2438
2442
|
var a = s.enclosingRing();
|
|
2439
|
-
a.poly || n.push(new
|
|
2443
|
+
a.poly || n.push(new _a(a)), a.poly.addInterior(s);
|
|
2440
2444
|
}
|
|
2441
2445
|
}
|
|
2442
2446
|
return n;
|
|
2443
2447
|
}
|
|
2444
2448
|
}]), r;
|
|
2445
|
-
}(),
|
|
2449
|
+
}(), nc = /* @__PURE__ */ function() {
|
|
2446
2450
|
function r(t) {
|
|
2447
2451
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Ao.compare;
|
|
2448
2452
|
vn(this, r), this.queue = t, this.tree = new Ms(e), this.segments = [];
|
|
@@ -2518,7 +2522,7 @@ var Hl = mr * mr, Ss = function(t, e) {
|
|
|
2518
2522
|
return o.push(i), e.consumedBy === void 0 && this.tree.insert(e), o;
|
|
2519
2523
|
}
|
|
2520
2524
|
}]), r;
|
|
2521
|
-
}(),
|
|
2525
|
+
}(), Ea = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1e6, rc = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS || 1e6, ic = /* @__PURE__ */ function() {
|
|
2522
2526
|
function r() {
|
|
2523
2527
|
vn(this, r);
|
|
2524
2528
|
}
|
|
@@ -2526,8 +2530,8 @@ var Hl = mr * mr, Ss = function(t, e) {
|
|
|
2526
2530
|
key: "run",
|
|
2527
2531
|
value: function(e, n, i) {
|
|
2528
2532
|
Cn.type = e, Ji.reset();
|
|
2529
|
-
for (var o = [new
|
|
2530
|
-
o.push(new
|
|
2533
|
+
for (var o = [new ma(n, !0)], s = 0, a = i.length; s < a; s++)
|
|
2534
|
+
o.push(new ma(i[s], !1));
|
|
2531
2535
|
if (Cn.numMultiPolys = o.length, Cn.type === "difference")
|
|
2532
2536
|
for (var u = o[0], l = 1; l < o.length; )
|
|
2533
2537
|
xs(o[l].bbox, u.bbox) !== null ? l++ : o.splice(l, 1);
|
|
@@ -2539,17 +2543,17 @@ var Hl = mr * mr, Ss = function(t, e) {
|
|
|
2539
2543
|
}
|
|
2540
2544
|
for (var y = new Ms(Un.compare), v = 0, m = o.length; v < m; v++)
|
|
2541
2545
|
for (var E = o[v].getSweepEvents(), C = 0, N = E.length; C < N; C++)
|
|
2542
|
-
if (y.insert(E[C]), y.size >
|
|
2546
|
+
if (y.insert(E[C]), y.size > Ea)
|
|
2543
2547
|
throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");
|
|
2544
|
-
for (var x = new
|
|
2548
|
+
for (var x = new nc(y), L = y.size, D = y.pop(); D; ) {
|
|
2545
2549
|
var T = D.key;
|
|
2546
2550
|
if (y.size === L) {
|
|
2547
2551
|
var A = T.segment;
|
|
2548
2552
|
throw new Error("Unable to pop() ".concat(T.isLeft ? "left" : "right", " SweepEvent ") + "[".concat(T.point.x, ", ").concat(T.point.y, "] from segment #").concat(A.id, " ") + "[".concat(A.leftSE.point.x, ", ").concat(A.leftSE.point.y, "] -> ") + "[".concat(A.rightSE.point.x, ", ").concat(A.rightSE.point.y, "] from queue. ") + "Please file a bug report.");
|
|
2549
2553
|
}
|
|
2550
|
-
if (y.size >
|
|
2554
|
+
if (y.size > Ea)
|
|
2551
2555
|
throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big). Please file a bug report.");
|
|
2552
|
-
if (x.segments.length >
|
|
2556
|
+
if (x.segments.length > rc)
|
|
2553
2557
|
throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments). Please file a bug report.");
|
|
2554
2558
|
for (var q = x.process(T), j = 0, P = q.length; j < P; j++) {
|
|
2555
2559
|
var X = q[j];
|
|
@@ -2558,32 +2562,32 @@ var Hl = mr * mr, Ss = function(t, e) {
|
|
|
2558
2562
|
L = y.size, D = y.pop();
|
|
2559
2563
|
}
|
|
2560
2564
|
Ji.reset();
|
|
2561
|
-
var R =
|
|
2565
|
+
var R = tc.factory(x.segments), Y = new ec(R);
|
|
2562
2566
|
return Y.getGeom();
|
|
2563
2567
|
}
|
|
2564
2568
|
}]), r;
|
|
2565
|
-
}(), Cn = new
|
|
2569
|
+
}(), Cn = new ic(), oc = function(t) {
|
|
2566
2570
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
2567
2571
|
n[i - 1] = arguments[i];
|
|
2568
2572
|
return Cn.run("union", t, n);
|
|
2569
|
-
},
|
|
2573
|
+
}, sc = function(t) {
|
|
2570
2574
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
2571
2575
|
n[i - 1] = arguments[i];
|
|
2572
2576
|
return Cn.run("intersection", t, n);
|
|
2573
|
-
},
|
|
2577
|
+
}, ac = function(t) {
|
|
2574
2578
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
2575
2579
|
n[i - 1] = arguments[i];
|
|
2576
2580
|
return Cn.run("xor", t, n);
|
|
2577
|
-
},
|
|
2581
|
+
}, uc = function(t) {
|
|
2578
2582
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
2579
2583
|
n[i - 1] = arguments[i];
|
|
2580
2584
|
return Cn.run("difference", t, n);
|
|
2581
|
-
},
|
|
2582
|
-
union:
|
|
2583
|
-
intersection:
|
|
2584
|
-
xor:
|
|
2585
|
-
difference:
|
|
2586
|
-
}, _e = 63710088e-1,
|
|
2585
|
+
}, $a = {
|
|
2586
|
+
union: oc,
|
|
2587
|
+
intersection: sc,
|
|
2588
|
+
xor: ac,
|
|
2589
|
+
difference: uc
|
|
2590
|
+
}, _e = 63710088e-1, tu = {
|
|
2587
2591
|
centimeters: _e * 100,
|
|
2588
2592
|
centimetres: _e * 100,
|
|
2589
2593
|
degrees: _e / 111325,
|
|
@@ -2605,14 +2609,14 @@ function Wo(r, t, e) {
|
|
|
2605
2609
|
var n = { type: "Feature" };
|
|
2606
2610
|
return (e.id === 0 || e.id) && (n.id = e.id), e.bbox && (n.bbox = e.bbox), n.properties = t || {}, n.geometry = r, n;
|
|
2607
2611
|
}
|
|
2608
|
-
function
|
|
2612
|
+
function lc(r, t, e) {
|
|
2609
2613
|
if (e === void 0 && (e = {}), !r)
|
|
2610
2614
|
throw new Error("coordinates is required");
|
|
2611
2615
|
if (!Array.isArray(r))
|
|
2612
2616
|
throw new Error("coordinates must be an Array");
|
|
2613
2617
|
if (r.length < 2)
|
|
2614
2618
|
throw new Error("coordinates must be at least 2 numbers long");
|
|
2615
|
-
if (!
|
|
2619
|
+
if (!Ia(r[0]) || !Ia(r[1]))
|
|
2616
2620
|
throw new Error("coordinates must contain numbers");
|
|
2617
2621
|
var n = {
|
|
2618
2622
|
type: "Point",
|
|
@@ -2620,7 +2624,7 @@ function uc(r, t, e) {
|
|
|
2620
2624
|
};
|
|
2621
2625
|
return Wo(n, t, e);
|
|
2622
2626
|
}
|
|
2623
|
-
function
|
|
2627
|
+
function eu(r, t, e) {
|
|
2624
2628
|
e === void 0 && (e = {});
|
|
2625
2629
|
for (var n = 0, i = r; n < i.length; n++) {
|
|
2626
2630
|
var o = i[n];
|
|
@@ -2641,7 +2645,7 @@ function ws(r, t) {
|
|
|
2641
2645
|
var e = { type: "FeatureCollection" };
|
|
2642
2646
|
return t.id && (e.id = t.id), t.bbox && (e.bbox = t.bbox), e.features = r, e;
|
|
2643
2647
|
}
|
|
2644
|
-
function
|
|
2648
|
+
function nu(r, t, e) {
|
|
2645
2649
|
e === void 0 && (e = {});
|
|
2646
2650
|
var n = {
|
|
2647
2651
|
type: "MultiPolygon",
|
|
@@ -2649,39 +2653,39 @@ function eu(r, t, e) {
|
|
|
2649
2653
|
};
|
|
2650
2654
|
return Wo(n, t, e);
|
|
2651
2655
|
}
|
|
2652
|
-
function
|
|
2656
|
+
function cc(r, t) {
|
|
2653
2657
|
t === void 0 && (t = "kilometers");
|
|
2654
|
-
var e =
|
|
2658
|
+
var e = tu[t];
|
|
2655
2659
|
if (!e)
|
|
2656
2660
|
throw new Error(t + " units is invalid");
|
|
2657
2661
|
return r * e;
|
|
2658
2662
|
}
|
|
2659
|
-
function
|
|
2663
|
+
function fc(r, t) {
|
|
2660
2664
|
t === void 0 && (t = "kilometers");
|
|
2661
|
-
var e =
|
|
2665
|
+
var e = tu[t];
|
|
2662
2666
|
if (!e)
|
|
2663
2667
|
throw new Error(t + " units is invalid");
|
|
2664
2668
|
return r / e;
|
|
2665
2669
|
}
|
|
2666
|
-
function
|
|
2670
|
+
function Ia(r) {
|
|
2667
2671
|
return !isNaN(r) && r !== null && !Array.isArray(r);
|
|
2668
2672
|
}
|
|
2669
2673
|
function Fo(r) {
|
|
2670
2674
|
return r.type === "Feature" ? r.geometry : r;
|
|
2671
2675
|
}
|
|
2672
|
-
function
|
|
2676
|
+
function hc(r, t, e) {
|
|
2673
2677
|
e === void 0 && (e = {});
|
|
2674
|
-
var n = Fo(r), i = Fo(t), o =
|
|
2675
|
-
return o.length === 0 ? null : o.length === 1 ?
|
|
2678
|
+
var n = Fo(r), i = Fo(t), o = $a.union(n.coordinates, i.coordinates);
|
|
2679
|
+
return o.length === 0 ? null : o.length === 1 ? eu(o[0], e.properties) : nu(o, e.properties);
|
|
2676
2680
|
}
|
|
2677
|
-
function
|
|
2678
|
-
var e = Fo(r), n = Fo(t), i = r.properties || {}, o =
|
|
2681
|
+
function gc(r, t) {
|
|
2682
|
+
var e = Fo(r), n = Fo(t), i = r.properties || {}, o = $a.difference(
|
|
2679
2683
|
e.coordinates,
|
|
2680
2684
|
n.coordinates
|
|
2681
2685
|
);
|
|
2682
|
-
return o.length === 0 ? null : o.length === 1 ?
|
|
2686
|
+
return o.length === 0 ? null : o.length === 1 ? eu(o[0], i) : nu(o, i);
|
|
2683
2687
|
}
|
|
2684
|
-
function
|
|
2688
|
+
function ru(r, t, e) {
|
|
2685
2689
|
if (r !== null)
|
|
2686
2690
|
for (var n, i, o, s, a, u, l, c = 0, f = 0, h, g = r.type, p = g === "FeatureCollection", y = g === "Feature", v = p ? r.features.length : 1, m = 0; m < v; m++) {
|
|
2687
2691
|
l = p ? r.features[m].geometry : y ? r.geometry : r, h = l ? l.type === "GeometryCollection" : !1, a = h ? l.geometries.length : 1;
|
|
@@ -2758,7 +2762,7 @@ function nu(r, t, e) {
|
|
|
2758
2762
|
break;
|
|
2759
2763
|
case "GeometryCollection":
|
|
2760
2764
|
for (n = 0; n < s.geometries.length; n++)
|
|
2761
|
-
if (
|
|
2765
|
+
if (ru(s.geometries[n], t, e) === !1)
|
|
2762
2766
|
return !1;
|
|
2763
2767
|
break;
|
|
2764
2768
|
default:
|
|
@@ -2768,14 +2772,14 @@ function nu(r, t, e) {
|
|
|
2768
2772
|
}
|
|
2769
2773
|
}
|
|
2770
2774
|
}
|
|
2771
|
-
function
|
|
2775
|
+
function Ca(r, t) {
|
|
2772
2776
|
if (r.type === "Feature")
|
|
2773
2777
|
t(r, 0);
|
|
2774
2778
|
else if (r.type === "FeatureCollection")
|
|
2775
2779
|
for (var e = 0; e < r.features.length && t(r.features[e], e) !== !1; e++)
|
|
2776
2780
|
;
|
|
2777
2781
|
}
|
|
2778
|
-
function
|
|
2782
|
+
function iu(r, t) {
|
|
2779
2783
|
var e, n, i, o, s, a, u, l, c, f, h = 0, g = r.type === "FeatureCollection", p = r.type === "Feature", y = g ? r.features.length : 1;
|
|
2780
2784
|
for (e = 0; e < y; e++) {
|
|
2781
2785
|
for (a = g ? r.features[e].geometry : p ? r.geometry : r, l = g ? r.features[e].properties : p ? r.properties : {}, c = g ? r.features[e].bbox : p ? r.bbox : void 0, f = g ? r.features[e].id : p ? r.id : void 0, u = a ? a.type === "GeometryCollection" : !1, s = u ? a.geometries.length : 1, i = 0; i < s; i++) {
|
|
@@ -2828,15 +2832,15 @@ function ru(r, t) {
|
|
|
2828
2832
|
}
|
|
2829
2833
|
function Ls(r) {
|
|
2830
2834
|
var t = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
2831
|
-
return
|
|
2835
|
+
return ru(r, function(e) {
|
|
2832
2836
|
t[0] > e[0] && (t[0] = e[0]), t[1] > e[1] && (t[1] = e[1]), t[2] < e[0] && (t[2] = e[0]), t[3] < e[1] && (t[3] = e[1]);
|
|
2833
2837
|
}), t;
|
|
2834
2838
|
}
|
|
2835
2839
|
Ls.default = Ls;
|
|
2836
|
-
function
|
|
2840
|
+
function pc(r, t) {
|
|
2837
2841
|
t === void 0 && (t = {});
|
|
2838
2842
|
var e = Ls(r), n = (e[0] + e[2]) / 2, i = (e[1] + e[3]) / 2;
|
|
2839
|
-
return
|
|
2843
|
+
return lc([n, i], t.properties, t);
|
|
2840
2844
|
}
|
|
2841
2845
|
"fill" in Array.prototype || Object.defineProperty(Array.prototype, "fill", {
|
|
2842
2846
|
configurable: !0,
|
|
@@ -2882,7 +2886,7 @@ var ct = function(r) {
|
|
|
2882
2886
|
}
|
|
2883
2887
|
return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t;
|
|
2884
2888
|
}(Error), z = function() {
|
|
2885
|
-
},
|
|
2889
|
+
}, ou = { MAX_VALUE: { configurable: !0 } };
|
|
2886
2890
|
z.isNaN = function(t) {
|
|
2887
2891
|
return Number.isNaN(t);
|
|
2888
2892
|
};
|
|
@@ -2895,10 +2899,10 @@ z.longBitsToDouble = function(t) {
|
|
|
2895
2899
|
z.isInfinite = function(t) {
|
|
2896
2900
|
return !Number.isFinite(t);
|
|
2897
2901
|
};
|
|
2898
|
-
|
|
2902
|
+
ou.MAX_VALUE.get = function() {
|
|
2899
2903
|
return Number.MAX_VALUE;
|
|
2900
2904
|
};
|
|
2901
|
-
Object.defineProperties(z,
|
|
2905
|
+
Object.defineProperties(z, ou);
|
|
2902
2906
|
var Fe = function() {
|
|
2903
2907
|
}, jo = function() {
|
|
2904
2908
|
}, hi = function() {
|
|
@@ -3094,7 +3098,7 @@ Object.defineProperties(_, ho);
|
|
|
3094
3098
|
var k = function(r, t) {
|
|
3095
3099
|
return r.interfaces_ && r.interfaces_().indexOf(t) > -1;
|
|
3096
3100
|
}, Ne = function() {
|
|
3097
|
-
},
|
|
3101
|
+
}, su = { LOG_10: { configurable: !0 } };
|
|
3098
3102
|
Ne.prototype.interfaces_ = function() {
|
|
3099
3103
|
return [];
|
|
3100
3104
|
};
|
|
@@ -3133,10 +3137,10 @@ Ne.max = function() {
|
|
|
3133
3137
|
Ne.average = function(t, e) {
|
|
3134
3138
|
return (t + e) / 2;
|
|
3135
3139
|
};
|
|
3136
|
-
|
|
3140
|
+
su.LOG_10.get = function() {
|
|
3137
3141
|
return Math.log(10);
|
|
3138
3142
|
};
|
|
3139
|
-
Object.defineProperties(Ne,
|
|
3143
|
+
Object.defineProperties(Ne, su);
|
|
3140
3144
|
var yn = function(t) {
|
|
3141
3145
|
this.str = t;
|
|
3142
3146
|
};
|
|
@@ -3587,7 +3591,7 @@ Qe.SCI_NOT_ZERO.get = function() {
|
|
|
3587
3591
|
};
|
|
3588
3592
|
Object.defineProperties(I, Qe);
|
|
3589
3593
|
var ae = function() {
|
|
3590
|
-
},
|
|
3594
|
+
}, au = { DP_SAFE_EPSILON: { configurable: !0 } };
|
|
3591
3595
|
ae.prototype.interfaces_ = function() {
|
|
3592
3596
|
return [];
|
|
3593
3597
|
};
|
|
@@ -3627,10 +3631,10 @@ ae.orientationIndexFilter = function(t, e, n) {
|
|
|
3627
3631
|
ae.signum = function(t) {
|
|
3628
3632
|
return t > 0 ? 1 : t < 0 ? -1 : 0;
|
|
3629
3633
|
};
|
|
3630
|
-
|
|
3634
|
+
au.DP_SAFE_EPSILON.get = function() {
|
|
3631
3635
|
return 1e-15;
|
|
3632
3636
|
};
|
|
3633
|
-
Object.defineProperties(ae,
|
|
3637
|
+
Object.defineProperties(ae, au);
|
|
3634
3638
|
var Q = function() {
|
|
3635
3639
|
}, go = { X: { configurable: !0 }, Y: { configurable: !0 }, Z: { configurable: !0 }, M: { configurable: !0 } };
|
|
3636
3640
|
go.X.get = function() {
|
|
@@ -3676,7 +3680,7 @@ Q.prototype.getClass = function() {
|
|
|
3676
3680
|
return Q;
|
|
3677
3681
|
};
|
|
3678
3682
|
Object.defineProperties(Q, go);
|
|
3679
|
-
var
|
|
3683
|
+
var uu = function() {
|
|
3680
3684
|
}, Bi = function(r) {
|
|
3681
3685
|
function t() {
|
|
3682
3686
|
r.call(this, "Projective point not representable on the Cartesian plane.");
|
|
@@ -3686,7 +3690,7 @@ var au = function() {
|
|
|
3686
3690
|
}, t.prototype.getClass = function() {
|
|
3687
3691
|
return t;
|
|
3688
3692
|
}, t;
|
|
3689
|
-
}(
|
|
3693
|
+
}(uu), zt = function() {
|
|
3690
3694
|
};
|
|
3691
3695
|
zt.arraycopy = function(t, e, n, i, o) {
|
|
3692
3696
|
for (var s = 0, a = e; a < e + o; a++)
|
|
@@ -3769,7 +3773,7 @@ var M = function r() {
|
|
|
3769
3773
|
var o = arguments[0], s = arguments[1], a = arguments[2], u = arguments[3];
|
|
3770
3774
|
this.init(o, s, a, u);
|
|
3771
3775
|
}
|
|
3772
|
-
},
|
|
3776
|
+
}, lu = { serialVersionUID: { configurable: !0 } };
|
|
3773
3777
|
M.prototype.getArea = function() {
|
|
3774
3778
|
return this.getWidth() * this.getHeight();
|
|
3775
3779
|
};
|
|
@@ -3951,10 +3955,10 @@ M.intersects = function() {
|
|
|
3951
3955
|
return !(c > l || f < u || (u = Math.min(s.y, a.y), l = Math.max(s.y, a.y), c = Math.min(i.y, o.y), f = Math.max(i.y, o.y), c > l) || f < u);
|
|
3952
3956
|
}
|
|
3953
3957
|
};
|
|
3954
|
-
|
|
3958
|
+
lu.serialVersionUID.get = function() {
|
|
3955
3959
|
return 5873921885273102e3;
|
|
3956
3960
|
};
|
|
3957
|
-
Object.defineProperties(M,
|
|
3961
|
+
Object.defineProperties(M, lu);
|
|
3958
3962
|
var Ze = {
|
|
3959
3963
|
typeStr: /^\s*(\w+)\s*\(\s*(.*)\s*\)\s*$/,
|
|
3960
3964
|
emptyTypeStr: /^\s*(\w+)\s*EMPTY\s*$/,
|
|
@@ -5033,7 +5037,7 @@ var b = function(r) {
|
|
|
5033
5037
|
var o = this.array_[n];
|
|
5034
5038
|
return this.array_[n] = i, o;
|
|
5035
5039
|
}, t.prototype.iterator = function() {
|
|
5036
|
-
return new
|
|
5040
|
+
return new dc(this);
|
|
5037
5041
|
}, t.prototype.get = function(n) {
|
|
5038
5042
|
if (n < 0 || n >= this.size())
|
|
5039
5043
|
throw new Fs();
|
|
@@ -5054,7 +5058,7 @@ var b = function(r) {
|
|
|
5054
5058
|
}
|
|
5055
5059
|
return o;
|
|
5056
5060
|
}, t;
|
|
5057
|
-
}(Ve),
|
|
5061
|
+
}(Ve), dc = function(r) {
|
|
5058
5062
|
function t(e) {
|
|
5059
5063
|
r.call(this), this.arrayList_ = e, this.position_ = 0;
|
|
5060
5064
|
}
|
|
@@ -5383,7 +5387,7 @@ ri.prototype.values = function() {
|
|
|
5383
5387
|
};
|
|
5384
5388
|
ri.prototype.entrySet = function() {
|
|
5385
5389
|
};
|
|
5386
|
-
var
|
|
5390
|
+
var vc = function(r) {
|
|
5387
5391
|
function t() {
|
|
5388
5392
|
r.apply(this, arguments);
|
|
5389
5393
|
}
|
|
@@ -5427,9 +5431,9 @@ var Bs = function(r) {
|
|
|
5427
5431
|
i.push(n.array_[o]);
|
|
5428
5432
|
return i;
|
|
5429
5433
|
}, t.prototype.iterator = function() {
|
|
5430
|
-
return new
|
|
5434
|
+
return new yc(this);
|
|
5431
5435
|
}, t;
|
|
5432
|
-
}(Jo),
|
|
5436
|
+
}(Jo), yc = function(r) {
|
|
5433
5437
|
function t(e) {
|
|
5434
5438
|
r.call(this), this.hashSet_ = e, this.position_ = 0;
|
|
5435
5439
|
}
|
|
@@ -5443,7 +5447,7 @@ var Bs = function(r) {
|
|
|
5443
5447
|
throw new vo();
|
|
5444
5448
|
}, t;
|
|
5445
5449
|
}(Gi), qn = 0, dr = 1;
|
|
5446
|
-
function
|
|
5450
|
+
function Na(r) {
|
|
5447
5451
|
return r === null ? qn : r.color;
|
|
5448
5452
|
}
|
|
5449
5453
|
function ot(r) {
|
|
@@ -5455,13 +5459,13 @@ function kn(r, t) {
|
|
|
5455
5459
|
function ps(r) {
|
|
5456
5460
|
return r === null ? null : r.left;
|
|
5457
5461
|
}
|
|
5458
|
-
function
|
|
5462
|
+
function xa(r) {
|
|
5459
5463
|
return r === null ? null : r.right;
|
|
5460
5464
|
}
|
|
5461
5465
|
function Ht() {
|
|
5462
5466
|
this.root_ = null, this.size_ = 0;
|
|
5463
5467
|
}
|
|
5464
|
-
Ht.prototype = new
|
|
5468
|
+
Ht.prototype = new vc();
|
|
5465
5469
|
Ht.prototype.get = function(r) {
|
|
5466
5470
|
for (var t = this.root_; t !== null; ) {
|
|
5467
5471
|
var e = r.compareTo(t.key);
|
|
@@ -5521,11 +5525,11 @@ Ht.prototype.fixAfterInsertion = function(r) {
|
|
|
5521
5525
|
var t = this;
|
|
5522
5526
|
for (r.color = dr; r != null && r !== this.root_ && r.parent.color === dr; )
|
|
5523
5527
|
if (ot(r) === ps(ot(ot(r)))) {
|
|
5524
|
-
var e =
|
|
5525
|
-
|
|
5528
|
+
var e = xa(ot(ot(r)));
|
|
5529
|
+
Na(e) === dr ? (kn(ot(r), qn), kn(e, qn), kn(ot(ot(r)), dr), r = ot(ot(r))) : (r === xa(ot(r)) && (r = ot(r), t.rotateLeft(r)), kn(ot(r), qn), kn(ot(ot(r)), dr), t.rotateRight(ot(ot(r))));
|
|
5526
5530
|
} else {
|
|
5527
5531
|
var n = ps(ot(ot(r)));
|
|
5528
|
-
|
|
5532
|
+
Na(n) === dr ? (kn(ot(r), qn), kn(n, qn), kn(ot(ot(r)), dr), r = ot(ot(r))) : (r === ps(ot(r)) && (r = ot(r), t.rotateRight(r)), kn(ot(r), qn), kn(ot(ot(r)), dr), t.rotateLeft(ot(ot(r))));
|
|
5529
5533
|
}
|
|
5530
5534
|
this.root_.color = qn;
|
|
5531
5535
|
};
|
|
@@ -5586,13 +5590,13 @@ to.prototype.interfaces_ = function() {
|
|
|
5586
5590
|
to.prototype.getClass = function() {
|
|
5587
5591
|
return to;
|
|
5588
5592
|
};
|
|
5589
|
-
function
|
|
5593
|
+
function cu() {
|
|
5590
5594
|
}
|
|
5591
|
-
|
|
5595
|
+
cu.prototype = new Jo();
|
|
5592
5596
|
function an() {
|
|
5593
5597
|
this.array_ = [], arguments[0] instanceof wt && this.addAll(arguments[0]);
|
|
5594
5598
|
}
|
|
5595
|
-
an.prototype = new
|
|
5599
|
+
an.prototype = new cu();
|
|
5596
5600
|
an.prototype.contains = function(r) {
|
|
5597
5601
|
for (var t = this, e = 0, n = this.array_.length; e < n; e++) {
|
|
5598
5602
|
var i = t.array_[e];
|
|
@@ -6025,18 +6029,18 @@ Go.prototype.interfaces_ = function() {
|
|
|
6025
6029
|
Go.prototype.getClass = function() {
|
|
6026
6030
|
return Go;
|
|
6027
6031
|
};
|
|
6028
|
-
function yc() {
|
|
6029
|
-
}
|
|
6030
6032
|
function mc() {
|
|
6031
6033
|
}
|
|
6032
|
-
|
|
6033
|
-
};
|
|
6034
|
-
function Ec() {
|
|
6034
|
+
function _c() {
|
|
6035
6035
|
}
|
|
6036
|
+
var Ec = function() {
|
|
6037
|
+
};
|
|
6036
6038
|
function Ic() {
|
|
6037
6039
|
}
|
|
6038
6040
|
function Cc() {
|
|
6039
6041
|
}
|
|
6042
|
+
function Nc() {
|
|
6043
|
+
}
|
|
6040
6044
|
var Re = function() {
|
|
6041
6045
|
}, Gs = { NEWLINE: { configurable: !0 }, SIMPLE_ORDINATE_FORMAT: { configurable: !0 } };
|
|
6042
6046
|
Re.prototype.interfaces_ = function() {
|
|
@@ -6052,16 +6056,16 @@ Re.chars = function(t, e) {
|
|
|
6052
6056
|
};
|
|
6053
6057
|
Re.getStackTrace = function() {
|
|
6054
6058
|
if (arguments.length === 1) {
|
|
6055
|
-
var t = arguments[0], e = new
|
|
6059
|
+
var t = arguments[0], e = new Ic(), n = new mc();
|
|
6056
6060
|
return t.printStackTrace(n), e.toString();
|
|
6057
6061
|
} else if (arguments.length === 2) {
|
|
6058
6062
|
var i = arguments[0], o = arguments[1], s = "";
|
|
6059
|
-
new
|
|
6060
|
-
for (var a = new
|
|
6063
|
+
new _c(Re.getStackTrace(i));
|
|
6064
|
+
for (var a = new Nc(), u = 0; u < o; u++)
|
|
6061
6065
|
try {
|
|
6062
6066
|
s += a.readLine() + Re.NEWLINE;
|
|
6063
6067
|
} catch (l) {
|
|
6064
|
-
if (l instanceof
|
|
6068
|
+
if (l instanceof Cc)
|
|
6065
6069
|
U.shouldNeverReachHere();
|
|
6066
6070
|
else
|
|
6067
6071
|
throw l;
|
|
@@ -6093,7 +6097,7 @@ Gs.NEWLINE.get = function() {
|
|
|
6093
6097
|
return zt.getProperty("line.separator");
|
|
6094
6098
|
};
|
|
6095
6099
|
Gs.SIMPLE_ORDINATE_FORMAT.get = function() {
|
|
6096
|
-
return new
|
|
6100
|
+
return new Ec();
|
|
6097
6101
|
};
|
|
6098
6102
|
Object.defineProperties(Re, Gs);
|
|
6099
6103
|
var _t = function() {
|
|
@@ -6818,7 +6822,7 @@ var yt = function() {
|
|
|
6818
6822
|
t._coordinates[c] = new d();
|
|
6819
6823
|
}
|
|
6820
6824
|
}
|
|
6821
|
-
},
|
|
6825
|
+
}, fu = { serialVersionUID: { configurable: !0 } };
|
|
6822
6826
|
yt.prototype.setOrdinate = function(t, e, n) {
|
|
6823
6827
|
switch (e) {
|
|
6824
6828
|
case Q.X:
|
|
@@ -6904,10 +6908,10 @@ yt.prototype.interfaces_ = function() {
|
|
|
6904
6908
|
yt.prototype.getClass = function() {
|
|
6905
6909
|
return yt;
|
|
6906
6910
|
};
|
|
6907
|
-
|
|
6911
|
+
fu.serialVersionUID.get = function() {
|
|
6908
6912
|
return -915438501601840600;
|
|
6909
6913
|
};
|
|
6910
|
-
Object.defineProperties(yt,
|
|
6914
|
+
Object.defineProperties(yt, fu);
|
|
6911
6915
|
var Ln = function() {
|
|
6912
6916
|
}, ks = { serialVersionUID: { configurable: !0 }, instanceObject: { configurable: !0 } };
|
|
6913
6917
|
Ln.prototype.readResolve = function() {
|
|
@@ -6943,7 +6947,7 @@ ks.instanceObject.get = function() {
|
|
|
6943
6947
|
return new Ln();
|
|
6944
6948
|
};
|
|
6945
6949
|
Object.defineProperties(Ln, ks);
|
|
6946
|
-
var
|
|
6950
|
+
var hu = function(r) {
|
|
6947
6951
|
function t() {
|
|
6948
6952
|
r.call(this), this.map_ = /* @__PURE__ */ new Map();
|
|
6949
6953
|
}
|
|
@@ -7061,7 +7065,7 @@ Vs.serialVersionUID.get = function() {
|
|
|
7061
7065
|
return -552860263173159e4;
|
|
7062
7066
|
};
|
|
7063
7067
|
Vs.nameToTypeMap.get = function() {
|
|
7064
|
-
return new
|
|
7068
|
+
return new hu();
|
|
7065
7069
|
};
|
|
7066
7070
|
Object.defineProperties(ln, Vs);
|
|
7067
7071
|
$.Type = ln;
|
|
@@ -7070,7 +7074,7 @@ $.FLOATING = new ln("FLOATING");
|
|
|
7070
7074
|
$.FLOATING_SINGLE = new ln("FLOATING SINGLE");
|
|
7071
7075
|
var H = function r() {
|
|
7072
7076
|
this._precisionModel = new $(), this._SRID = 0, this._coordinateSequenceFactory = r.getDefaultCoordinateSequenceFactory(), arguments.length === 0 || (arguments.length === 1 ? k(arguments[0], gi) ? this._coordinateSequenceFactory = arguments[0] : arguments[0] instanceof $ && (this._precisionModel = arguments[0]) : arguments.length === 2 ? (this._precisionModel = arguments[0], this._SRID = arguments[1]) : arguments.length === 3 && (this._precisionModel = arguments[0], this._SRID = arguments[1], this._coordinateSequenceFactory = arguments[2]));
|
|
7073
|
-
},
|
|
7077
|
+
}, gu = { serialVersionUID: { configurable: !0 } };
|
|
7074
7078
|
H.prototype.toGeometry = function(t) {
|
|
7075
7079
|
return t.isNull() ? this.createPoint(null) : t.getMinX() === t.getMaxX() && t.getMinY() === t.getMaxY() ? this.createPoint(new d(t.getMinX(), t.getMinY())) : t.getMinX() === t.getMaxX() || t.getMinY() === t.getMaxY() ? this.createLineString([new d(t.getMinX(), t.getMinY()), new d(t.getMaxX(), t.getMaxY())]) : this.createPolygon(this.createLinearRing([new d(t.getMinX(), t.getMinY()), new d(t.getMinX(), t.getMaxY()), new d(t.getMaxX(), t.getMaxY()), new d(t.getMaxX(), t.getMinY()), new d(t.getMinX(), t.getMinY())]), null);
|
|
7076
7080
|
};
|
|
@@ -7265,11 +7269,11 @@ H.toPolygonArray = function(t) {
|
|
|
7265
7269
|
H.createPointFromInternalCoord = function(t, e) {
|
|
7266
7270
|
return e.getPrecisionModel().makePrecise(t), e.getFactory().createPoint(t);
|
|
7267
7271
|
};
|
|
7268
|
-
|
|
7272
|
+
gu.serialVersionUID.get = function() {
|
|
7269
7273
|
return -6820524753094096e3;
|
|
7270
7274
|
};
|
|
7271
|
-
Object.defineProperties(H,
|
|
7272
|
-
var
|
|
7275
|
+
Object.defineProperties(H, gu);
|
|
7276
|
+
var xc = ["Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"], ts = function(t) {
|
|
7273
7277
|
this.geometryFactory = t || new H();
|
|
7274
7278
|
};
|
|
7275
7279
|
ts.prototype.read = function(t) {
|
|
@@ -7278,7 +7282,7 @@ ts.prototype.read = function(t) {
|
|
|
7278
7282
|
var n = e.type;
|
|
7279
7283
|
if (!tn[n])
|
|
7280
7284
|
throw new Error("Unknown GeoJSON type: " + e.type);
|
|
7281
|
-
return
|
|
7285
|
+
return xc.indexOf(n) !== -1 ? tn[n].apply(this, [e.coordinates]) : n === "GeometryCollection" ? tn[n].apply(this, [e.geometries]) : tn[n].apply(this, [e]);
|
|
7282
7286
|
};
|
|
7283
7287
|
ts.prototype.write = function(t) {
|
|
7284
7288
|
var e = t.getGeometryType();
|
|
@@ -7606,10 +7610,10 @@ Us.prototype.reducePrecision = function(t) {
|
|
|
7606
7610
|
for (n = 0, i = t.geometries.length; n < i; n++)
|
|
7607
7611
|
e.reducePrecision(t.geometries[n]);
|
|
7608
7612
|
};
|
|
7609
|
-
var
|
|
7613
|
+
var pu = function() {
|
|
7610
7614
|
this.parser = new ts(this.geometryFactory);
|
|
7611
7615
|
};
|
|
7612
|
-
|
|
7616
|
+
pu.prototype.write = function(t) {
|
|
7613
7617
|
return this.parser.write(t);
|
|
7614
7618
|
};
|
|
7615
7619
|
var w = function() {
|
|
@@ -8184,7 +8188,7 @@ xt.prototype.interfaces_ = function() {
|
|
|
8184
8188
|
xt.prototype.getClass = function() {
|
|
8185
8189
|
return xt;
|
|
8186
8190
|
};
|
|
8187
|
-
var
|
|
8191
|
+
var Sc = function(r) {
|
|
8188
8192
|
function t() {
|
|
8189
8193
|
var e = arguments[0], n = arguments[1];
|
|
8190
8194
|
r.call(this, e, n);
|
|
@@ -8198,7 +8202,7 @@ var xc = function(r) {
|
|
|
8198
8202
|
}, t.prototype.getClass = function() {
|
|
8199
8203
|
return t;
|
|
8200
8204
|
}, t;
|
|
8201
|
-
}(xt),
|
|
8205
|
+
}(xt), wc = function(r) {
|
|
8202
8206
|
function t() {
|
|
8203
8207
|
var e = arguments[0], n = arguments[1];
|
|
8204
8208
|
r.call(this, e, n);
|
|
@@ -8207,7 +8211,7 @@ var xc = function(r) {
|
|
|
8207
8211
|
var n = this, i = new b(), o = this._startDe;
|
|
8208
8212
|
do {
|
|
8209
8213
|
if (o.getMinEdgeRing() === null) {
|
|
8210
|
-
var s = new
|
|
8214
|
+
var s = new Sc(o, n._geometryFactory);
|
|
8211
8215
|
i.add(s);
|
|
8212
8216
|
}
|
|
8213
8217
|
o = o.getNext();
|
|
@@ -8772,7 +8776,7 @@ de.prototype.buildMaximalEdgeRings = function(t) {
|
|
|
8772
8776
|
for (var e = this, n = new b(), i = t.iterator(); i.hasNext(); ) {
|
|
8773
8777
|
var o = i.next();
|
|
8774
8778
|
if (o.isInResult() && o.getLabel().isArea() && o.getEdgeRing() === null) {
|
|
8775
|
-
var s = new
|
|
8779
|
+
var s = new wc(o, e._geometryFactory);
|
|
8776
8780
|
n.add(s), s.setInResult();
|
|
8777
8781
|
}
|
|
8778
8782
|
}
|
|
@@ -8916,7 +8920,7 @@ var Pt = function() {
|
|
|
8916
8920
|
this._level = t;
|
|
8917
8921
|
}
|
|
8918
8922
|
}
|
|
8919
|
-
},
|
|
8923
|
+
}, du = { serialVersionUID: { configurable: !0 } };
|
|
8920
8924
|
Pt.prototype.getLevel = function() {
|
|
8921
8925
|
return this._level;
|
|
8922
8926
|
};
|
|
@@ -8941,10 +8945,10 @@ Pt.prototype.interfaces_ = function() {
|
|
|
8941
8945
|
Pt.prototype.getClass = function() {
|
|
8942
8946
|
return Pt;
|
|
8943
8947
|
};
|
|
8944
|
-
|
|
8948
|
+
du.serialVersionUID.get = function() {
|
|
8945
8949
|
return 6493722185909574e3;
|
|
8946
8950
|
};
|
|
8947
|
-
Object.defineProperties(Pt,
|
|
8951
|
+
Object.defineProperties(Pt, du);
|
|
8948
8952
|
var Ye = function() {
|
|
8949
8953
|
};
|
|
8950
8954
|
Ye.reverseOrder = function() {
|
|
@@ -9185,7 +9189,7 @@ Dt.compareDoubles = function(t, e) {
|
|
|
9185
9189
|
return t > e ? 1 : t < e ? -1 : 0;
|
|
9186
9190
|
};
|
|
9187
9191
|
os.IntersectsOp.get = function() {
|
|
9188
|
-
return
|
|
9192
|
+
return Lc;
|
|
9189
9193
|
};
|
|
9190
9194
|
os.serialVersionUID.get = function() {
|
|
9191
9195
|
return -3886435814360241e3;
|
|
@@ -9194,7 +9198,7 @@ os.DEFAULT_NODE_CAPACITY.get = function() {
|
|
|
9194
9198
|
return 10;
|
|
9195
9199
|
};
|
|
9196
9200
|
Object.defineProperties(Dt, os);
|
|
9197
|
-
var
|
|
9201
|
+
var Lc = function() {
|
|
9198
9202
|
}, Ci = function() {
|
|
9199
9203
|
};
|
|
9200
9204
|
Ci.prototype.distance = function(t, e) {
|
|
@@ -9205,7 +9209,7 @@ Ci.prototype.interfaces_ = function() {
|
|
|
9205
9209
|
Ci.prototype.getClass = function() {
|
|
9206
9210
|
return Ci;
|
|
9207
9211
|
};
|
|
9208
|
-
var
|
|
9212
|
+
var vu = function(r) {
|
|
9209
9213
|
function t(n) {
|
|
9210
9214
|
n = n || t.DEFAULT_NODE_CAPACITY, r.call(this, n);
|
|
9211
9215
|
}
|
|
@@ -9218,7 +9222,7 @@ var du = function(r) {
|
|
|
9218
9222
|
a.addAll(s.createParentBoundablesFromVerticalSlice(i[u], o));
|
|
9219
9223
|
return a;
|
|
9220
9224
|
}, t.prototype.createNode = function(i) {
|
|
9221
|
-
return new
|
|
9225
|
+
return new Sa(i);
|
|
9222
9226
|
}, t.prototype.size = function() {
|
|
9223
9227
|
return arguments.length === 0 ? r.prototype.size.call(this) : r.prototype.size.apply(this, arguments);
|
|
9224
9228
|
}, t.prototype.insert = function() {
|
|
@@ -9312,7 +9316,7 @@ var du = function(r) {
|
|
|
9312
9316
|
}, t.centreY = function(i) {
|
|
9313
9317
|
return t.avg(i.getMinY(), i.getMaxY());
|
|
9314
9318
|
}, e.STRtreeNode.get = function() {
|
|
9315
|
-
return
|
|
9319
|
+
return Sa;
|
|
9316
9320
|
}, e.serialVersionUID.get = function() {
|
|
9317
9321
|
return 259274702368956900;
|
|
9318
9322
|
}, e.xComparator.get = function() {
|
|
@@ -9345,7 +9349,7 @@ var du = function(r) {
|
|
|
9345
9349
|
}, e.DEFAULT_NODE_CAPACITY.get = function() {
|
|
9346
9350
|
return 10;
|
|
9347
9351
|
}, Object.defineProperties(t, e), t;
|
|
9348
|
-
}(Dt),
|
|
9352
|
+
}(Dt), Sa = function(r) {
|
|
9349
9353
|
function t() {
|
|
9350
9354
|
var e = arguments[0];
|
|
9351
9355
|
r.call(this, e);
|
|
@@ -9662,7 +9666,7 @@ var F = function() {
|
|
|
9662
9666
|
var e = arguments[0], n = arguments[1], i = arguments[2], o = arguments[3];
|
|
9663
9667
|
this.p0 = new d(e, n), this.p1 = new d(i, o);
|
|
9664
9668
|
}
|
|
9665
|
-
},
|
|
9669
|
+
}, yu = { serialVersionUID: { configurable: !0 } };
|
|
9666
9670
|
F.prototype.minX = function() {
|
|
9667
9671
|
return Math.min(this.p0.x, this.p1.x);
|
|
9668
9672
|
};
|
|
@@ -9847,10 +9851,10 @@ F.prototype.getClass = function() {
|
|
|
9847
9851
|
F.midPoint = function(t, e) {
|
|
9848
9852
|
return new d((t.x + e.x) / 2, (t.y + e.y) / 2);
|
|
9849
9853
|
};
|
|
9850
|
-
|
|
9854
|
+
yu.serialVersionUID.get = function() {
|
|
9851
9855
|
return 3252005833466256400;
|
|
9852
9856
|
};
|
|
9853
|
-
Object.defineProperties(F,
|
|
9857
|
+
Object.defineProperties(F, yu);
|
|
9854
9858
|
var so = function() {
|
|
9855
9859
|
this.tempEnv1 = new M(), this.tempEnv2 = new M(), this._overlapSeg1 = new F(), this._overlapSeg2 = new F();
|
|
9856
9860
|
};
|
|
@@ -10014,7 +10018,7 @@ ao.prototype.getClass = function() {
|
|
|
10014
10018
|
};
|
|
10015
10019
|
var qs = function(r) {
|
|
10016
10020
|
function t(n) {
|
|
10017
|
-
n ? r.call(this, n) : r.call(this), this._monoChains = new b(), this._index = new
|
|
10021
|
+
n ? r.call(this, n) : r.call(this), this._monoChains = new b(), this._index = new vu(), this._idCounter = 0, this._nodedSegStrings = null, this._nOverlaps = 0;
|
|
10018
10022
|
}
|
|
10019
10023
|
r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t;
|
|
10020
10024
|
var e = { SegmentOverlapAction: { configurable: !0 } };
|
|
@@ -10036,7 +10040,7 @@ var qs = function(r) {
|
|
|
10036
10040
|
o.add(s.next());
|
|
10037
10041
|
this.intersectChains();
|
|
10038
10042
|
}, t.prototype.intersectChains = function() {
|
|
10039
|
-
for (var i = this, o = new
|
|
10043
|
+
for (var i = this, o = new wa(this._segInt), s = this._monoChains.iterator(); s.hasNext(); )
|
|
10040
10044
|
for (var a = s.next(), u = i._index.query(a.getEnvelope()), l = u.iterator(); l.hasNext(); ) {
|
|
10041
10045
|
var c = l.next();
|
|
10042
10046
|
if (c.getId() > a.getId() && (a.computeOverlaps(c, o), i._nOverlaps++), i._segInt.isDone())
|
|
@@ -10047,9 +10051,9 @@ var qs = function(r) {
|
|
|
10047
10051
|
}, t.prototype.getClass = function() {
|
|
10048
10052
|
return t;
|
|
10049
10053
|
}, e.SegmentOverlapAction.get = function() {
|
|
10050
|
-
return
|
|
10054
|
+
return wa;
|
|
10051
10055
|
}, Object.defineProperties(t, e), t;
|
|
10052
|
-
}(ao),
|
|
10056
|
+
}(ao), wa = function(r) {
|
|
10053
10057
|
function t() {
|
|
10054
10058
|
r.call(this), this._si = null;
|
|
10055
10059
|
var e = arguments[0];
|
|
@@ -10235,7 +10239,7 @@ mo.NUM_PTS_TO_CHECK.get = function() {
|
|
|
10235
10239
|
Object.defineProperties(dt, mo);
|
|
10236
10240
|
var Se = function() {
|
|
10237
10241
|
this._ptList = null, this._precisionModel = null, this._minimimVertexDistance = 0, this._ptList = new b();
|
|
10238
|
-
},
|
|
10242
|
+
}, mu = { COORDINATE_ARRAY_TYPE: { configurable: !0 } };
|
|
10239
10243
|
Se.prototype.getCoordinates = function() {
|
|
10240
10244
|
var t = this._ptList.toArray(Se.COORDINATE_ARRAY_TYPE);
|
|
10241
10245
|
return t;
|
|
@@ -10287,10 +10291,10 @@ Se.prototype.interfaces_ = function() {
|
|
|
10287
10291
|
Se.prototype.getClass = function() {
|
|
10288
10292
|
return Se;
|
|
10289
10293
|
};
|
|
10290
|
-
|
|
10294
|
+
mu.COORDINATE_ARRAY_TYPE.get = function() {
|
|
10291
10295
|
return new Array(0).fill(null);
|
|
10292
10296
|
};
|
|
10293
|
-
Object.defineProperties(Se,
|
|
10297
|
+
Object.defineProperties(Se, mu);
|
|
10294
10298
|
var K = function() {
|
|
10295
10299
|
}, ii = { PI_TIMES_2: { configurable: !0 }, PI_OVER_2: { configurable: !0 }, PI_OVER_4: { configurable: !0 }, COUNTERCLOCKWISE: { configurable: !0 }, CLOCKWISE: { configurable: !0 }, NONE: { configurable: !0 } };
|
|
10296
10300
|
K.prototype.interfaces_ = function() {
|
|
@@ -10652,7 +10656,7 @@ var Hr = function() {
|
|
|
10652
10656
|
this._subgraphs = null, this._seg = new F(), this._cga = new O();
|
|
10653
10657
|
var t = arguments[0];
|
|
10654
10658
|
this._subgraphs = t;
|
|
10655
|
-
},
|
|
10659
|
+
}, _u = { DepthSegment: { configurable: !0 } };
|
|
10656
10660
|
Hr.prototype.findStabbedSegments = function() {
|
|
10657
10661
|
var t = this;
|
|
10658
10662
|
if (arguments.length === 1) {
|
|
@@ -10693,10 +10697,10 @@ Hr.prototype.interfaces_ = function() {
|
|
|
10693
10697
|
Hr.prototype.getClass = function() {
|
|
10694
10698
|
return Hr;
|
|
10695
10699
|
};
|
|
10696
|
-
|
|
10700
|
+
_u.DepthSegment.get = function() {
|
|
10697
10701
|
return Sr;
|
|
10698
10702
|
};
|
|
10699
|
-
Object.defineProperties(Hr,
|
|
10703
|
+
Object.defineProperties(Hr, _u);
|
|
10700
10704
|
var Sr = function() {
|
|
10701
10705
|
this._upwardSeg = null, this._leftDepth = null;
|
|
10702
10706
|
var t = arguments[0], e = arguments[1];
|
|
@@ -11104,7 +11108,7 @@ jt.prototype.interfaces_ = function() {
|
|
|
11104
11108
|
jt.prototype.getClass = function() {
|
|
11105
11109
|
return jt;
|
|
11106
11110
|
};
|
|
11107
|
-
var
|
|
11111
|
+
var bc = function(r) {
|
|
11108
11112
|
function t() {
|
|
11109
11113
|
r.call(this), this._resultAreaEdgeList = null, this._label = null, this._SCANNING_FOR_INCOMING = 1, this._LINKING_TO_OUTGOING = 2;
|
|
11110
11114
|
}
|
|
@@ -11257,12 +11261,12 @@ var Lc = function(r) {
|
|
|
11257
11261
|
}, t.prototype.getClass = function() {
|
|
11258
11262
|
return t;
|
|
11259
11263
|
}, t;
|
|
11260
|
-
}(jt),
|
|
11264
|
+
}(jt), Eu = function(r) {
|
|
11261
11265
|
function t() {
|
|
11262
11266
|
r.apply(this, arguments);
|
|
11263
11267
|
}
|
|
11264
11268
|
return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t.prototype.createNode = function(n) {
|
|
11265
|
-
return new is(n, new
|
|
11269
|
+
return new is(n, new bc());
|
|
11266
11270
|
}, t.prototype.interfaces_ = function() {
|
|
11267
11271
|
return [];
|
|
11268
11272
|
}, t.prototype.getClass = function() {
|
|
@@ -11592,7 +11596,7 @@ var kt = function r() {
|
|
|
11592
11596
|
for (var e = 0; e < 2; e++)
|
|
11593
11597
|
for (var n = 0; n < 3; n++)
|
|
11594
11598
|
t._depth[e][n] = r.NULL_VALUE;
|
|
11595
|
-
},
|
|
11599
|
+
}, Iu = { NULL_VALUE: { configurable: !0 } };
|
|
11596
11600
|
kt.prototype.getDepth = function(t, e) {
|
|
11597
11601
|
return this._depth[t][e];
|
|
11598
11602
|
};
|
|
@@ -11657,10 +11661,10 @@ kt.prototype.getClass = function() {
|
|
|
11657
11661
|
kt.depthAtLocation = function(t) {
|
|
11658
11662
|
return t === _.EXTERIOR ? 0 : t === _.INTERIOR ? 1 : kt.NULL_VALUE;
|
|
11659
11663
|
};
|
|
11660
|
-
|
|
11664
|
+
Iu.NULL_VALUE.get = function() {
|
|
11661
11665
|
return -1;
|
|
11662
11666
|
};
|
|
11663
|
-
Object.defineProperties(kt,
|
|
11667
|
+
Object.defineProperties(kt, Iu);
|
|
11664
11668
|
var ko = function(r) {
|
|
11665
11669
|
function t() {
|
|
11666
11670
|
if (r.call(this), this.pts = null, this._env = null, this.eiList = new Pn(this), this._name = null, this._mce = null, this._isIsolated = !0, this._depth = new kt(), this._depthDelta = 0, arguments.length === 1) {
|
|
@@ -11825,7 +11829,7 @@ ee.prototype.buffer = function(t, e) {
|
|
|
11825
11829
|
var i = new ue(n, this._bufParams), o = new Me(t, e, i), s = o.getCurves();
|
|
11826
11830
|
if (s.size() <= 0)
|
|
11827
11831
|
return this.createEmptyResultGeometry();
|
|
11828
|
-
this.computeNodedEdges(s, n), this._graph = new ht(new
|
|
11832
|
+
this.computeNodedEdges(s, n), this._graph = new ht(new Eu()), this._graph.addEdges(this._edgeList.getEdges());
|
|
11829
11833
|
var a = this.createSubgraphs(this._graph), u = new de(this._geomFact);
|
|
11830
11834
|
this.buildSubgraphs(a, u);
|
|
11831
11835
|
var l = u.getPolygons();
|
|
@@ -11923,7 +11927,7 @@ var gn = function() {
|
|
|
11923
11927
|
this._li = new Tr(), this._segStrings = null;
|
|
11924
11928
|
var t = arguments[0];
|
|
11925
11929
|
this._segStrings = t;
|
|
11926
|
-
},
|
|
11930
|
+
}, Cu = { fact: { configurable: !0 } };
|
|
11927
11931
|
gn.prototype.checkEndPtVertexIntersections = function() {
|
|
11928
11932
|
var t = this;
|
|
11929
11933
|
if (arguments.length === 0)
|
|
@@ -11991,17 +11995,17 @@ gn.prototype.interfaces_ = function() {
|
|
|
11991
11995
|
gn.prototype.getClass = function() {
|
|
11992
11996
|
return gn;
|
|
11993
11997
|
};
|
|
11994
|
-
|
|
11998
|
+
Cu.fact.get = function() {
|
|
11995
11999
|
return new H();
|
|
11996
12000
|
};
|
|
11997
|
-
Object.defineProperties(gn,
|
|
12001
|
+
Object.defineProperties(gn, Cu);
|
|
11998
12002
|
var le = function() {
|
|
11999
12003
|
this._li = null, this._pt = null, this._originalPt = null, this._ptScaled = null, this._p0Scaled = null, this._p1Scaled = null, this._scaleFactor = null, this._minx = null, this._maxx = null, this._miny = null, this._maxy = null, this._corner = new Array(4).fill(null), this._safeEnv = null;
|
|
12000
12004
|
var t = arguments[0], e = arguments[1], n = arguments[2];
|
|
12001
12005
|
if (this._originalPt = t, this._pt = t, this._scaleFactor = e, this._li = n, e <= 0)
|
|
12002
12006
|
throw new ct("Scale factor must be non-zero");
|
|
12003
12007
|
e !== 1 && (this._pt = new d(this.scale(t.x), this.scale(t.y)), this._p0Scaled = new d(), this._p1Scaled = new d()), this.initCorners(this._pt);
|
|
12004
|
-
},
|
|
12008
|
+
}, Nu = { SAFE_ENV_EXPANSION_FACTOR: { configurable: !0 } };
|
|
12005
12009
|
le.prototype.intersectsScaled = function(t, e) {
|
|
12006
12010
|
var n = Math.min(t.x, e.x), i = Math.max(t.x, e.x), o = Math.min(t.y, e.y), s = Math.max(t.y, e.y), a = this._maxx < n || this._minx > i || this._maxy < o || this._miny > s;
|
|
12007
12011
|
if (a)
|
|
@@ -12049,10 +12053,10 @@ le.prototype.interfaces_ = function() {
|
|
|
12049
12053
|
le.prototype.getClass = function() {
|
|
12050
12054
|
return le;
|
|
12051
12055
|
};
|
|
12052
|
-
|
|
12056
|
+
Nu.SAFE_ENV_EXPANSION_FACTOR.get = function() {
|
|
12053
12057
|
return 0.75;
|
|
12054
12058
|
};
|
|
12055
|
-
Object.defineProperties(le,
|
|
12059
|
+
Object.defineProperties(le, Nu);
|
|
12056
12060
|
var uo = function() {
|
|
12057
12061
|
this.tempEnv1 = new M(), this.selectedSegment = new F();
|
|
12058
12062
|
};
|
|
@@ -12074,13 +12078,13 @@ var xi = function() {
|
|
|
12074
12078
|
this._index = null;
|
|
12075
12079
|
var t = arguments[0];
|
|
12076
12080
|
this._index = t;
|
|
12077
|
-
},
|
|
12081
|
+
}, xu = { HotPixelSnapAction: { configurable: !0 } };
|
|
12078
12082
|
xi.prototype.snap = function() {
|
|
12079
12083
|
if (arguments.length === 1) {
|
|
12080
12084
|
var t = arguments[0];
|
|
12081
12085
|
return this.snap(t, null, -1);
|
|
12082
12086
|
} else if (arguments.length === 3) {
|
|
12083
|
-
var e = arguments[0], n = arguments[1], i = arguments[2], o = e.getSafeEnvelope(), s = new
|
|
12087
|
+
var e = arguments[0], n = arguments[1], i = arguments[2], o = e.getSafeEnvelope(), s = new Su(e, n, i);
|
|
12084
12088
|
return this._index.query(o, {
|
|
12085
12089
|
interfaces_: function() {
|
|
12086
12090
|
return [or];
|
|
@@ -12098,11 +12102,11 @@ xi.prototype.interfaces_ = function() {
|
|
|
12098
12102
|
xi.prototype.getClass = function() {
|
|
12099
12103
|
return xi;
|
|
12100
12104
|
};
|
|
12101
|
-
|
|
12102
|
-
return
|
|
12105
|
+
xu.HotPixelSnapAction.get = function() {
|
|
12106
|
+
return Su;
|
|
12103
12107
|
};
|
|
12104
|
-
Object.defineProperties(xi,
|
|
12105
|
-
var
|
|
12108
|
+
Object.defineProperties(xi, xu);
|
|
12109
|
+
var Su = function(r) {
|
|
12106
12110
|
function t() {
|
|
12107
12111
|
r.call(this), this._hotPixel = null, this._parentEdge = null, this._hotPixelVertexIndex = null, this._isNodeAdded = !1;
|
|
12108
12112
|
var e = arguments[0], n = arguments[1], i = arguments[2];
|
|
@@ -12161,7 +12165,7 @@ Rn.prototype.checkCorrectness = function(t) {
|
|
|
12161
12165
|
try {
|
|
12162
12166
|
n.checkValid();
|
|
12163
12167
|
} catch (i) {
|
|
12164
|
-
if (i instanceof
|
|
12168
|
+
if (i instanceof uu)
|
|
12165
12169
|
i.printStackTrace();
|
|
12166
12170
|
else
|
|
12167
12171
|
throw i;
|
|
@@ -12650,7 +12654,7 @@ var $t = function r() {
|
|
|
12650
12654
|
var n = arguments[0], i = arguments[1], o = arguments[2];
|
|
12651
12655
|
this._component = n, this._segIndex = i, this._pt = o;
|
|
12652
12656
|
}
|
|
12653
|
-
},
|
|
12657
|
+
}, wu = { INSIDE_AREA: { configurable: !0 } };
|
|
12654
12658
|
$t.prototype.isInsideArea = function() {
|
|
12655
12659
|
return this._segIndex === $t.INSIDE_AREA;
|
|
12656
12660
|
};
|
|
@@ -12669,10 +12673,10 @@ $t.prototype.interfaces_ = function() {
|
|
|
12669
12673
|
$t.prototype.getClass = function() {
|
|
12670
12674
|
return $t;
|
|
12671
12675
|
};
|
|
12672
|
-
|
|
12676
|
+
wu.INSIDE_AREA.get = function() {
|
|
12673
12677
|
return -1;
|
|
12674
12678
|
};
|
|
12675
|
-
Object.defineProperties($t,
|
|
12679
|
+
Object.defineProperties($t, wu);
|
|
12676
12680
|
var nr = function(t) {
|
|
12677
12681
|
this._pts = t || null;
|
|
12678
12682
|
};
|
|
@@ -13614,13 +13618,13 @@ On.isClosed = function(t) {
|
|
|
13614
13618
|
};
|
|
13615
13619
|
var mt = function(t) {
|
|
13616
13620
|
this._srcGeom = t || null;
|
|
13617
|
-
},
|
|
13621
|
+
}, Lu = { SNAP_PRECISION_FACTOR: { configurable: !0 } };
|
|
13618
13622
|
mt.prototype.snapTo = function(t, e) {
|
|
13619
|
-
var n = this.extractTargetCoordinates(t), i = new
|
|
13623
|
+
var n = this.extractTargetCoordinates(t), i = new bu(e, n);
|
|
13620
13624
|
return i.transform(this._srcGeom);
|
|
13621
13625
|
};
|
|
13622
13626
|
mt.prototype.snapToSelf = function(t, e) {
|
|
13623
|
-
var n = this.extractTargetCoordinates(this._srcGeom), i = new
|
|
13627
|
+
var n = this.extractTargetCoordinates(this._srcGeom), i = new bu(t, n, !0), o = i.transform(this._srcGeom), s = o;
|
|
13624
13628
|
return e && k(s, ir) && (s = o.buffer(0)), s;
|
|
13625
13629
|
};
|
|
13626
13630
|
mt.prototype.computeSnapTolerance = function(t) {
|
|
@@ -13672,11 +13676,11 @@ mt.snapToSelf = function(t, e, n) {
|
|
|
13672
13676
|
var i = new mt(t);
|
|
13673
13677
|
return i.snapToSelf(e, n);
|
|
13674
13678
|
};
|
|
13675
|
-
|
|
13679
|
+
Lu.SNAP_PRECISION_FACTOR.get = function() {
|
|
13676
13680
|
return 1e-9;
|
|
13677
13681
|
};
|
|
13678
|
-
Object.defineProperties(mt,
|
|
13679
|
-
var
|
|
13682
|
+
Object.defineProperties(mt, Lu);
|
|
13683
|
+
var bu = function(r) {
|
|
13680
13684
|
function t(e, n, i) {
|
|
13681
13685
|
r.call(this), this._snapTolerance = e || null, this._snapPts = n || null, this._isSelfSnap = i !== void 0 ? i : !1;
|
|
13682
13686
|
}
|
|
@@ -14039,7 +14043,7 @@ qt.prototype.getClass = function() {
|
|
|
14039
14043
|
qt.isAdjacentSegments = function(t, e) {
|
|
14040
14044
|
return Math.abs(t - e) === 1;
|
|
14041
14045
|
};
|
|
14042
|
-
var
|
|
14046
|
+
var Pc = function(r) {
|
|
14043
14047
|
function t() {
|
|
14044
14048
|
r.call(this), this.events = new b(), this.nOverlaps = null;
|
|
14045
14049
|
}
|
|
@@ -14101,7 +14105,7 @@ var bc = function(r) {
|
|
|
14101
14105
|
}, t;
|
|
14102
14106
|
}(zo), Dn = function() {
|
|
14103
14107
|
this._min = z.POSITIVE_INFINITY, this._max = z.NEGATIVE_INFINITY;
|
|
14104
|
-
},
|
|
14108
|
+
}, Pu = { NodeComparator: { configurable: !0 } };
|
|
14105
14109
|
Dn.prototype.getMin = function() {
|
|
14106
14110
|
return this._min;
|
|
14107
14111
|
};
|
|
@@ -14120,10 +14124,10 @@ Dn.prototype.interfaces_ = function() {
|
|
|
14120
14124
|
Dn.prototype.getClass = function() {
|
|
14121
14125
|
return Dn;
|
|
14122
14126
|
};
|
|
14123
|
-
|
|
14127
|
+
Pu.NodeComparator.get = function() {
|
|
14124
14128
|
return co;
|
|
14125
14129
|
};
|
|
14126
|
-
Object.defineProperties(Dn,
|
|
14130
|
+
Object.defineProperties(Dn, Pu);
|
|
14127
14131
|
var co = function() {
|
|
14128
14132
|
};
|
|
14129
14133
|
co.prototype.compare = function(t, e) {
|
|
@@ -14136,7 +14140,7 @@ co.prototype.interfaces_ = function() {
|
|
|
14136
14140
|
co.prototype.getClass = function() {
|
|
14137
14141
|
return co;
|
|
14138
14142
|
};
|
|
14139
|
-
var
|
|
14143
|
+
var Rc = function(r) {
|
|
14140
14144
|
function t() {
|
|
14141
14145
|
r.call(this), this._item = null;
|
|
14142
14146
|
var e = arguments[0], n = arguments[1], i = arguments[2];
|
|
@@ -14151,7 +14155,7 @@ var Pc = function(r) {
|
|
|
14151
14155
|
}, t.prototype.getClass = function() {
|
|
14152
14156
|
return t;
|
|
14153
14157
|
}, t;
|
|
14154
|
-
}(Dn),
|
|
14158
|
+
}(Dn), Oc = function(r) {
|
|
14155
14159
|
function t() {
|
|
14156
14160
|
r.call(this), this._node1 = null, this._node2 = null;
|
|
14157
14161
|
var e = arguments[0], n = arguments[1];
|
|
@@ -14183,7 +14187,7 @@ Tn.prototype.buildTree = function() {
|
|
|
14183
14187
|
Tn.prototype.insert = function(t, e, n) {
|
|
14184
14188
|
if (this._root !== null)
|
|
14185
14189
|
throw new Error("Index cannot be added to once it has been queried");
|
|
14186
|
-
this._leaves.add(new
|
|
14190
|
+
this._leaves.add(new Rc(t, e, n));
|
|
14187
14191
|
};
|
|
14188
14192
|
Tn.prototype.query = function(t, e, n) {
|
|
14189
14193
|
this.init(), this._root.query(t, e, n);
|
|
@@ -14208,7 +14212,7 @@ Tn.prototype.buildLevel = function(t, e) {
|
|
|
14208
14212
|
if (o === null)
|
|
14209
14213
|
e.add(i);
|
|
14210
14214
|
else {
|
|
14211
|
-
var s = new
|
|
14215
|
+
var s = new Oc(t.get(n), t.get(n + 1));
|
|
14212
14216
|
e.add(s);
|
|
14213
14217
|
}
|
|
14214
14218
|
}
|
|
@@ -14307,7 +14311,7 @@ Rr.prototype.getClass = function() {
|
|
|
14307
14311
|
};
|
|
14308
14312
|
var qi = function(r) {
|
|
14309
14313
|
function t() {
|
|
14310
|
-
if (r.call(this), this._parentGeom = null, this._lineEdgeMap = new
|
|
14314
|
+
if (r.call(this), this._parentGeom = null, this._lineEdgeMap = new hu(), this._boundaryNodeRule = null, this._useBoundaryDeterminationRule = !0, this._argIndex = null, this._boundaryNodes = null, this._hasTooFewPoints = !1, this._invalidPoint = null, this._areaPtLocator = null, this._ptLocator = new We(), arguments.length === 2) {
|
|
14311
14315
|
var e = arguments[0], n = arguments[1], i = De.OGC_SFS_BOUNDARY_RULE;
|
|
14312
14316
|
this._argIndex = e, this._parentGeom = n, this._boundaryNodeRule = i, n !== null && this.add(n);
|
|
14313
14317
|
} else if (arguments.length === 3) {
|
|
@@ -14399,7 +14403,7 @@ var qi = function(r) {
|
|
|
14399
14403
|
var s = this._nodes.addNode(i), a = s.getLabel();
|
|
14400
14404
|
a === null ? s._label = new et(n, o) : a.setLocation(n, o);
|
|
14401
14405
|
}, t.prototype.createEdgeSetIntersector = function() {
|
|
14402
|
-
return new
|
|
14406
|
+
return new Pc();
|
|
14403
14407
|
}, t.prototype.addSelfIntersectionNodes = function(n) {
|
|
14404
14408
|
for (var i = this, o = this._edges.iterator(); o.hasNext(); )
|
|
14405
14409
|
for (var s = o.next(), a = s.getLabel().getLocation(n), u = s.eiList.iterator(); u.hasNext(); ) {
|
|
@@ -14501,7 +14505,7 @@ Er.MapOp = function() {
|
|
|
14501
14505
|
var V = function(r) {
|
|
14502
14506
|
function t() {
|
|
14503
14507
|
var e = arguments[0], n = arguments[1];
|
|
14504
|
-
r.call(this, e, n), this._ptLocator = new We(), this._geomFact = null, this._resultGeom = null, this._graph = null, this._edgeList = new He(), this._resultPolyList = new b(), this._resultLineList = new b(), this._resultPointList = new b(), this._graph = new ht(new
|
|
14508
|
+
r.call(this, e, n), this._ptLocator = new We(), this._geomFact = null, this._resultGeom = null, this._graph = null, this._edgeList = new He(), this._resultPolyList = new b(), this._resultLineList = new b(), this._resultPointList = new b(), this._graph = new ht(new Eu()), this._geomFact = e.getFactory();
|
|
14505
14509
|
}
|
|
14506
14510
|
return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t.prototype.insertUniqueEdge = function(n) {
|
|
14507
14511
|
var i = this._edgeList.findEqualEdge(n);
|
|
@@ -14789,7 +14793,7 @@ var Le = function r() {
|
|
|
14789
14793
|
this._geom = null, this._locFinder = null, this._location = new Array(3).fill(null), this._invalidLocation = null, this._boundaryDistanceTolerance = r.TOLERANCE, this._testCoords = new b();
|
|
14790
14794
|
var t = arguments[0], e = arguments[1], n = arguments[2];
|
|
14791
14795
|
this._boundaryDistanceTolerance = r.computeBoundaryDistanceTolerance(t, e), this._geom = [t, e, n], this._locFinder = [new rr(this._geom[0], this._boundaryDistanceTolerance), new rr(this._geom[1], this._boundaryDistanceTolerance), new rr(this._geom[2], this._boundaryDistanceTolerance)];
|
|
14792
|
-
},
|
|
14796
|
+
}, Ru = { TOLERANCE: { configurable: !0 } };
|
|
14793
14797
|
Le.prototype.reportResult = function(t, e, n) {
|
|
14794
14798
|
zt.out.println("Overlay result invalid - A:" + _.toLocationSymbol(e[0]) + " B:" + _.toLocationSymbol(e[1]) + " expected:" + (n ? "i" : "e") + " actual:" + _.toLocationSymbol(e[2]));
|
|
14795
14799
|
};
|
|
@@ -14842,10 +14846,10 @@ Le.isValid = function(t, e, n, i) {
|
|
|
14842
14846
|
var o = new Le(t, e, i);
|
|
14843
14847
|
return o.isValid(n);
|
|
14844
14848
|
};
|
|
14845
|
-
|
|
14849
|
+
Ru.TOLERANCE.get = function() {
|
|
14846
14850
|
return 1e-6;
|
|
14847
14851
|
};
|
|
14848
|
-
Object.defineProperties(Le,
|
|
14852
|
+
Object.defineProperties(Le, Ru);
|
|
14849
14853
|
var Ee = function r(t) {
|
|
14850
14854
|
this._geomFactory = null, this._skipEmpty = !1, this._inputGeoms = null, this._geomFactory = r.extractFactory(t), this._inputGeoms = t;
|
|
14851
14855
|
};
|
|
@@ -14899,7 +14903,7 @@ var Ct = function() {
|
|
|
14899
14903
|
this._inputPolys = null, this._geomFactory = null;
|
|
14900
14904
|
var t = arguments[0];
|
|
14901
14905
|
this._inputPolys = t, this._inputPolys === null && (this._inputPolys = new b());
|
|
14902
|
-
},
|
|
14906
|
+
}, Ou = { STRTREE_NODE_CAPACITY: { configurable: !0 } };
|
|
14903
14907
|
Ct.prototype.reduceToGeometries = function(t) {
|
|
14904
14908
|
for (var e = this, n = new b(), i = t.iterator(); i.hasNext(); ) {
|
|
14905
14909
|
var o = i.next(), s = null;
|
|
@@ -14931,7 +14935,7 @@ Ct.prototype.union = function() {
|
|
|
14931
14935
|
if (this._inputPolys.isEmpty())
|
|
14932
14936
|
return null;
|
|
14933
14937
|
this._geomFactory = this._inputPolys.iterator().next().getFactory();
|
|
14934
|
-
for (var t = new
|
|
14938
|
+
for (var t = new vu(Ct.STRTREE_NODE_CAPACITY), e = this._inputPolys.iterator(); e.hasNext(); ) {
|
|
14935
14939
|
var n = e.next();
|
|
14936
14940
|
t.insert(n.getEnvelopeInternal(), n);
|
|
14937
14941
|
}
|
|
@@ -15007,10 +15011,10 @@ Ct.union = function(t) {
|
|
|
15007
15011
|
var e = new Ct(t);
|
|
15008
15012
|
return e.union();
|
|
15009
15013
|
};
|
|
15010
|
-
|
|
15014
|
+
Ou.STRTREE_NODE_CAPACITY.get = function() {
|
|
15011
15015
|
return 4;
|
|
15012
15016
|
};
|
|
15013
|
-
Object.defineProperties(Ct,
|
|
15017
|
+
Object.defineProperties(Ct, Ou);
|
|
15014
15018
|
var Vo = function() {
|
|
15015
15019
|
};
|
|
15016
15020
|
Vo.prototype.interfaces_ = function() {
|
|
@@ -15043,19 +15047,19 @@ Uo.prototype = {
|
|
|
15043
15047
|
this.t = 0;
|
|
15044
15048
|
},
|
|
15045
15049
|
add: function(r) {
|
|
15046
|
-
|
|
15050
|
+
La(xo, r, this.t), La(this, xo.s, this.s), this.s ? this.t += xo.t : this.s = xo.t;
|
|
15047
15051
|
},
|
|
15048
15052
|
valueOf: function() {
|
|
15049
15053
|
return this.s;
|
|
15050
15054
|
}
|
|
15051
15055
|
};
|
|
15052
15056
|
var xo = new Uo();
|
|
15053
|
-
function
|
|
15057
|
+
function La(r, t, e) {
|
|
15054
15058
|
var n = r.s = t + e, i = n - t, o = n - i;
|
|
15055
15059
|
r.t = t - o + (e - i);
|
|
15056
15060
|
}
|
|
15057
|
-
var gt = 1e-6, it = Math.PI, Yn = it / 2,
|
|
15058
|
-
function
|
|
15061
|
+
var gt = 1e-6, it = Math.PI, Yn = it / 2, ba = it / 4, Zn = it * 2, vr = 180 / it, $e = it / 180, te = Math.abs, Dc = Math.atan, Ri = Math.atan2, Lt = Math.cos, bt = Math.sin, Eo = Math.sqrt;
|
|
15062
|
+
function Du(r) {
|
|
15059
15063
|
return r > 1 ? 0 : r < -1 ? it : Math.acos(r);
|
|
15060
15064
|
}
|
|
15061
15065
|
function Oi(r) {
|
|
@@ -15064,9 +15068,9 @@ function Oi(r) {
|
|
|
15064
15068
|
function Xi() {
|
|
15065
15069
|
}
|
|
15066
15070
|
function qo(r, t) {
|
|
15067
|
-
r &&
|
|
15071
|
+
r && Ra.hasOwnProperty(r.type) && Ra[r.type](r, t);
|
|
15068
15072
|
}
|
|
15069
|
-
var
|
|
15073
|
+
var Pa = {
|
|
15070
15074
|
Feature: function(r, t) {
|
|
15071
15075
|
qo(r.geometry, t);
|
|
15072
15076
|
},
|
|
@@ -15074,7 +15078,7 @@ var ba = {
|
|
|
15074
15078
|
for (var e = r.features, n = -1, i = e.length; ++n < i; )
|
|
15075
15079
|
qo(e[n].geometry, t);
|
|
15076
15080
|
}
|
|
15077
|
-
},
|
|
15081
|
+
}, Ra = {
|
|
15078
15082
|
Sphere: function(r, t) {
|
|
15079
15083
|
t.sphere();
|
|
15080
15084
|
},
|
|
@@ -15093,11 +15097,11 @@ var ba = {
|
|
|
15093
15097
|
Ps(e[n], t, 0);
|
|
15094
15098
|
},
|
|
15095
15099
|
Polygon: function(r, t) {
|
|
15096
|
-
|
|
15100
|
+
Oa(r.coordinates, t);
|
|
15097
15101
|
},
|
|
15098
15102
|
MultiPolygon: function(r, t) {
|
|
15099
15103
|
for (var e = r.coordinates, n = -1, i = e.length; ++n < i; )
|
|
15100
|
-
|
|
15104
|
+
Oa(e[n], t);
|
|
15101
15105
|
},
|
|
15102
15106
|
GeometryCollection: function(r, t) {
|
|
15103
15107
|
for (var e = r.geometries, n = -1, i = e.length; ++n < i; )
|
|
@@ -15110,14 +15114,14 @@ function Ps(r, t, e) {
|
|
|
15110
15114
|
o = r[n], t.point(o[0], o[1], o[2]);
|
|
15111
15115
|
t.lineEnd();
|
|
15112
15116
|
}
|
|
15113
|
-
function
|
|
15117
|
+
function Oa(r, t) {
|
|
15114
15118
|
var e = -1, n = r.length;
|
|
15115
15119
|
for (t.polygonStart(); ++e < n; )
|
|
15116
15120
|
Ps(r[e], t, 1);
|
|
15117
15121
|
t.polygonEnd();
|
|
15118
15122
|
}
|
|
15119
|
-
function
|
|
15120
|
-
r &&
|
|
15123
|
+
function Tc(r, t) {
|
|
15124
|
+
r && Pa.hasOwnProperty(r.type) ? Pa[r.type](r, t) : qo(r, t);
|
|
15121
15125
|
}
|
|
15122
15126
|
Mr();
|
|
15123
15127
|
Mr();
|
|
@@ -15145,7 +15149,7 @@ function Os(r) {
|
|
|
15145
15149
|
r[0] /= t, r[1] /= t, r[2] /= t;
|
|
15146
15150
|
}
|
|
15147
15151
|
Mr();
|
|
15148
|
-
function
|
|
15152
|
+
function Tu(r, t) {
|
|
15149
15153
|
function e(n, i) {
|
|
15150
15154
|
return n = r(n, i), t(n[0], n[1]);
|
|
15151
15155
|
}
|
|
@@ -15157,19 +15161,19 @@ function Ds(r, t) {
|
|
|
15157
15161
|
return [r > it ? r - Zn : r < -it ? r + Zn : r, t];
|
|
15158
15162
|
}
|
|
15159
15163
|
Ds.invert = Ds;
|
|
15160
|
-
function
|
|
15161
|
-
return (r %= Zn) ? t || e ?
|
|
15164
|
+
function Mc(r, t, e) {
|
|
15165
|
+
return (r %= Zn) ? t || e ? Tu(Ta(r), Ma(t, e)) : Ta(r) : t || e ? Ma(t, e) : Ds;
|
|
15162
15166
|
}
|
|
15163
|
-
function
|
|
15167
|
+
function Da(r) {
|
|
15164
15168
|
return function(t, e) {
|
|
15165
15169
|
return t += r, [t > it ? t - Zn : t < -it ? t + Zn : t, e];
|
|
15166
15170
|
};
|
|
15167
15171
|
}
|
|
15168
|
-
function
|
|
15169
|
-
var t =
|
|
15170
|
-
return t.invert =
|
|
15172
|
+
function Ta(r) {
|
|
15173
|
+
var t = Da(r);
|
|
15174
|
+
return t.invert = Da(-r), t;
|
|
15171
15175
|
}
|
|
15172
|
-
function
|
|
15176
|
+
function Ma(r, t) {
|
|
15173
15177
|
var e = Lt(r), n = bt(r), i = Lt(t), o = bt(t);
|
|
15174
15178
|
function s(a, u) {
|
|
15175
15179
|
var l = Lt(u), c = Lt(a) * l, f = bt(a) * l, h = bt(u), g = h * e + c * n;
|
|
@@ -15186,20 +15190,20 @@ function Ta(r, t) {
|
|
|
15186
15190
|
];
|
|
15187
15191
|
}, s;
|
|
15188
15192
|
}
|
|
15189
|
-
function
|
|
15193
|
+
function Ac(r, t, e, n, i, o) {
|
|
15190
15194
|
if (e) {
|
|
15191
15195
|
var s = Lt(t), a = bt(t), u = n * e;
|
|
15192
|
-
i == null ? (i = t + n * Zn, o = t - u / 2) : (i =
|
|
15196
|
+
i == null ? (i = t + n * Zn, o = t - u / 2) : (i = Aa(s, i), o = Aa(s, o), (n > 0 ? i < o : i > o) && (i += n * Zn));
|
|
15193
15197
|
for (var l, c = i; n > 0 ? c > o : c < o; c -= u)
|
|
15194
15198
|
l = Rs([s, -a * Lt(c), -a * bt(c)]), r.point(l[0], l[1]);
|
|
15195
15199
|
}
|
|
15196
15200
|
}
|
|
15197
|
-
function
|
|
15201
|
+
function Aa(r, t) {
|
|
15198
15202
|
t = Di(t), t[0] -= r, Os(t);
|
|
15199
|
-
var e =
|
|
15203
|
+
var e = Du(-t[1]);
|
|
15200
15204
|
return ((-t[2] < 0 ? -e : e) + Zn - gt) % Zn;
|
|
15201
15205
|
}
|
|
15202
|
-
function
|
|
15206
|
+
function Mu() {
|
|
15203
15207
|
var r = [], t;
|
|
15204
15208
|
return {
|
|
15205
15209
|
point: function(e, n) {
|
|
@@ -15218,7 +15222,7 @@ function Tu() {
|
|
|
15218
15222
|
}
|
|
15219
15223
|
};
|
|
15220
15224
|
}
|
|
15221
|
-
function
|
|
15225
|
+
function Fc(r, t, e, n, i, o) {
|
|
15222
15226
|
var s = r[0], a = r[1], u = t[0], l = t[1], c = 0, f = 1, h = u - s, g = l - a, p;
|
|
15223
15227
|
if (p = e - s, !(!h && p > 0)) {
|
|
15224
15228
|
if (p /= h, h < 0) {
|
|
@@ -15272,7 +15276,7 @@ function Do(r, t) {
|
|
|
15272
15276
|
function Lo(r, t, e, n) {
|
|
15273
15277
|
this.x = r, this.z = t, this.o = e, this.e = n, this.v = !1, this.n = this.p = null;
|
|
15274
15278
|
}
|
|
15275
|
-
function
|
|
15279
|
+
function Au(r, t, e, n, i) {
|
|
15276
15280
|
var o = [], s = [], a, u;
|
|
15277
15281
|
if (r.forEach(function(p) {
|
|
15278
15282
|
if (!((y = p.length - 1) <= 0)) {
|
|
@@ -15286,7 +15290,7 @@ function Mu(r, t, e, n, i) {
|
|
|
15286
15290
|
o.push(E = new Lo(v, p, null, !0)), s.push(E.o = new Lo(v, null, E, !1)), o.push(E = new Lo(m, p, null, !1)), s.push(E.o = new Lo(m, null, E, !0));
|
|
15287
15291
|
}
|
|
15288
15292
|
}), !!o.length) {
|
|
15289
|
-
for (s.sort(t),
|
|
15293
|
+
for (s.sort(t), Fa(o), Fa(s), a = 0, u = s.length; a < u; ++a)
|
|
15290
15294
|
s[a].e = e = !e;
|
|
15291
15295
|
for (var l = o[0], c, f; ; ) {
|
|
15292
15296
|
for (var h = l, g = !0; h.v; )
|
|
@@ -15315,18 +15319,18 @@ function Mu(r, t, e, n, i) {
|
|
|
15315
15319
|
}
|
|
15316
15320
|
}
|
|
15317
15321
|
}
|
|
15318
|
-
function
|
|
15322
|
+
function Fa(r) {
|
|
15319
15323
|
if (t = r.length) {
|
|
15320
15324
|
for (var t, e = 0, n = r[0], i; ++e < t; )
|
|
15321
15325
|
n.n = i = r[e], i.p = n, n = i;
|
|
15322
15326
|
n.n = i = r[0], i.p = n;
|
|
15323
15327
|
}
|
|
15324
15328
|
}
|
|
15325
|
-
function
|
|
15329
|
+
function Fu(r, t) {
|
|
15326
15330
|
return r < t ? -1 : r > t ? 1 : r >= t ? 0 : NaN;
|
|
15327
15331
|
}
|
|
15328
|
-
function
|
|
15329
|
-
return r.length === 1 && (r =
|
|
15332
|
+
function Bc(r) {
|
|
15333
|
+
return r.length === 1 && (r = Gc(r)), {
|
|
15330
15334
|
left: function(t, e, n, i) {
|
|
15331
15335
|
for (n == null && (n = 0), i == null && (i = t.length); n < i; ) {
|
|
15332
15336
|
var o = n + i >>> 1;
|
|
@@ -15343,13 +15347,13 @@ function Fc(r) {
|
|
|
15343
15347
|
}
|
|
15344
15348
|
};
|
|
15345
15349
|
}
|
|
15346
|
-
function
|
|
15350
|
+
function Gc(r) {
|
|
15347
15351
|
return function(t, e) {
|
|
15348
|
-
return
|
|
15352
|
+
return Fu(r(t), e);
|
|
15349
15353
|
};
|
|
15350
15354
|
}
|
|
15351
|
-
|
|
15352
|
-
function
|
|
15355
|
+
Bc(Fu);
|
|
15356
|
+
function Bu(r) {
|
|
15353
15357
|
for (var t = r.length, e, n = -1, i = 0, o, s; ++n < t; )
|
|
15354
15358
|
i += r[n].length;
|
|
15355
15359
|
for (o = new Array(i); --t >= 0; )
|
|
@@ -15358,7 +15362,7 @@ function Fu(r) {
|
|
|
15358
15362
|
return o;
|
|
15359
15363
|
}
|
|
15360
15364
|
var Yi = 1e9, bo = -Yi;
|
|
15361
|
-
function
|
|
15365
|
+
function kc(r, t, e, n) {
|
|
15362
15366
|
function i(l, c) {
|
|
15363
15367
|
return r <= l && l <= e && t <= c && c <= n;
|
|
15364
15368
|
}
|
|
@@ -15382,7 +15386,7 @@ function Gc(r, t, e, n) {
|
|
|
15382
15386
|
return f !== h ? f - h : f === 0 ? c[1] - l[1] : f === 1 ? l[0] - c[0] : f === 2 ? l[1] - c[1] : c[0] - l[0];
|
|
15383
15387
|
}
|
|
15384
15388
|
return function(l) {
|
|
15385
|
-
var c = l, f =
|
|
15389
|
+
var c = l, f = Mu(), h, g, p, y, v, m, E, C, N, x, L, D = {
|
|
15386
15390
|
point: T,
|
|
15387
15391
|
lineStart: P,
|
|
15388
15392
|
lineEnd: X,
|
|
@@ -15402,8 +15406,8 @@ function Gc(r, t, e, n) {
|
|
|
15402
15406
|
c = f, h = [], g = [], L = !0;
|
|
15403
15407
|
}
|
|
15404
15408
|
function j() {
|
|
15405
|
-
var Y = A(), at = L && Y, St = (h =
|
|
15406
|
-
(at || St) && (l.polygonStart(), at && (l.lineStart(), o(null, null, 1, l), l.lineEnd()), St &&
|
|
15409
|
+
var Y = A(), at = L && Y, St = (h = Bu(h)).length;
|
|
15410
|
+
(at || St) && (l.polygonStart(), at && (l.lineStart(), o(null, null, 1, l), l.lineEnd()), St && Au(h, a, Y, o, l), l.polygonEnd()), c = l, h = g = p = null;
|
|
15407
15411
|
}
|
|
15408
15412
|
function P() {
|
|
15409
15413
|
D.point = R, g && g.push(p = []), x = !0, N = !1, E = C = NaN;
|
|
@@ -15419,7 +15423,7 @@ function Gc(r, t, e, n) {
|
|
|
15419
15423
|
c.point(Y, at);
|
|
15420
15424
|
else {
|
|
15421
15425
|
var Xt = [E = Math.max(bo, Math.min(Yi, E)), C = Math.max(bo, Math.min(Yi, C))], fe = [Y = Math.max(bo, Math.min(Yi, Y)), at = Math.max(bo, Math.min(Yi, at))];
|
|
15422
|
-
|
|
15426
|
+
Fc(Xt, fe, r, t, e, n) ? (N || (c.lineStart(), c.point(Xt[0], Xt[1])), c.point(fe[0], fe[1]), St || c.lineEnd(), L = !1) : St && (c.lineStart(), c.point(Y, at), L = !1);
|
|
15423
15427
|
}
|
|
15424
15428
|
E = Y, C = at, N = St;
|
|
15425
15429
|
}
|
|
@@ -15427,13 +15431,13 @@ function Gc(r, t, e, n) {
|
|
|
15427
15431
|
};
|
|
15428
15432
|
}
|
|
15429
15433
|
var vs = Mr();
|
|
15430
|
-
function
|
|
15434
|
+
function zc(r, t) {
|
|
15431
15435
|
var e = t[0], n = t[1], i = [bt(e), -Lt(e), 0], o = 0, s = 0;
|
|
15432
15436
|
vs.reset();
|
|
15433
15437
|
for (var a = 0, u = r.length; a < u; ++a)
|
|
15434
15438
|
if (c = (l = r[a]).length)
|
|
15435
|
-
for (var l, c, f = l[c - 1], h = f[0], g = f[1] / 2 +
|
|
15436
|
-
var m = l[v], E = m[0], C = m[1] / 2 +
|
|
15439
|
+
for (var l, c, f = l[c - 1], h = f[0], g = f[1] / 2 + ba, p = bt(g), y = Lt(g), v = 0; v < c; ++v, h = E, p = N, y = x, f = m) {
|
|
15440
|
+
var m = l[v], E = m[0], C = m[1] / 2 + ba, N = bt(C), x = Lt(C), L = E - h, D = L >= 0 ? 1 : -1, T = D * L, A = T > it, q = p * N;
|
|
15437
15441
|
if (vs.add(Ri(q * D * bt(T), y * x + q * Lt(T))), o += A ? L + D * Zn : L, A ^ h >= e ^ E >= e) {
|
|
15438
15442
|
var j = Xo(Di(f), Di(m));
|
|
15439
15443
|
Os(j);
|
|
@@ -15446,13 +15450,13 @@ function kc(r, t) {
|
|
|
15446
15450
|
return (o < -gt || o < gt && vs < -gt) ^ s & 1;
|
|
15447
15451
|
}
|
|
15448
15452
|
Mr();
|
|
15449
|
-
function
|
|
15453
|
+
function Ba(r) {
|
|
15450
15454
|
return r;
|
|
15451
15455
|
}
|
|
15452
15456
|
Mr();
|
|
15453
15457
|
Mr();
|
|
15454
|
-
var Ti = 1 / 0, Yo = Ti, fo = -Ti, Ho = fo,
|
|
15455
|
-
point:
|
|
15458
|
+
var Ti = 1 / 0, Yo = Ti, fo = -Ti, Ho = fo, Ga = {
|
|
15459
|
+
point: Vc,
|
|
15456
15460
|
lineStart: Xi,
|
|
15457
15461
|
lineEnd: Xi,
|
|
15458
15462
|
polygonStart: Xi,
|
|
@@ -15462,13 +15466,13 @@ var Ti = 1 / 0, Yo = Ti, fo = -Ti, Ho = fo, Ba = {
|
|
|
15462
15466
|
return fo = Ho = -(Yo = Ti = 1 / 0), r;
|
|
15463
15467
|
}
|
|
15464
15468
|
};
|
|
15465
|
-
function
|
|
15469
|
+
function Vc(r, t) {
|
|
15466
15470
|
r < Ti && (Ti = r), r > fo && (fo = r), t < Yo && (Yo = t), t > Ho && (Ho = t);
|
|
15467
15471
|
}
|
|
15468
15472
|
Mr();
|
|
15469
|
-
function
|
|
15473
|
+
function Gu(r, t, e, n) {
|
|
15470
15474
|
return function(i, o) {
|
|
15471
|
-
var s = t(o), a = i.invert(n[0], n[1]), u =
|
|
15475
|
+
var s = t(o), a = i.invert(n[0], n[1]), u = Mu(), l = t(u), c = !1, f, h, g, p = {
|
|
15472
15476
|
point: y,
|
|
15473
15477
|
lineStart: m,
|
|
15474
15478
|
lineEnd: E,
|
|
@@ -15476,9 +15480,9 @@ function Bu(r, t, e, n) {
|
|
|
15476
15480
|
p.point = C, p.lineStart = N, p.lineEnd = x, h = [], f = [];
|
|
15477
15481
|
},
|
|
15478
15482
|
polygonEnd: function() {
|
|
15479
|
-
p.point = y, p.lineStart = m, p.lineEnd = E, h =
|
|
15480
|
-
var L =
|
|
15481
|
-
h.length ? (c || (o.polygonStart(), c = !0),
|
|
15483
|
+
p.point = y, p.lineStart = m, p.lineEnd = E, h = Bu(h);
|
|
15484
|
+
var L = zc(f, a);
|
|
15485
|
+
h.length ? (c || (o.polygonStart(), c = !0), Au(h, qc, L, e, o)) : L && (c || (o.polygonStart(), c = !0), o.lineStart(), e(null, null, 1, o), o.lineEnd()), c && (o.polygonEnd(), c = !1), h = f = null;
|
|
15482
15486
|
},
|
|
15483
15487
|
sphere: function() {
|
|
15484
15488
|
o.polygonStart(), o.lineStart(), e(null, null, 1, o), o.lineEnd(), o.polygonEnd();
|
|
@@ -15518,27 +15522,27 @@ function Bu(r, t, e, n) {
|
|
|
15518
15522
|
}
|
|
15519
15523
|
return;
|
|
15520
15524
|
}
|
|
15521
|
-
A > 1 && L & 2 && D.push(D.pop().concat(D.shift())), h.push(D.filter(
|
|
15525
|
+
A > 1 && L & 2 && D.push(D.pop().concat(D.shift())), h.push(D.filter(Uc));
|
|
15522
15526
|
}
|
|
15523
15527
|
}
|
|
15524
15528
|
return p;
|
|
15525
15529
|
};
|
|
15526
15530
|
}
|
|
15527
|
-
function
|
|
15531
|
+
function Uc(r) {
|
|
15528
15532
|
return r.length > 1;
|
|
15529
15533
|
}
|
|
15530
|
-
function
|
|
15534
|
+
function qc(r, t) {
|
|
15531
15535
|
return ((r = r.x)[0] < 0 ? r[1] - Yn - gt : Yn - r[1]) - ((t = t.x)[0] < 0 ? t[1] - Yn - gt : Yn - t[1]);
|
|
15532
15536
|
}
|
|
15533
|
-
const
|
|
15537
|
+
const ka = Gu(
|
|
15534
15538
|
function() {
|
|
15535
15539
|
return !0;
|
|
15536
15540
|
},
|
|
15537
|
-
|
|
15538
|
-
|
|
15541
|
+
Xc,
|
|
15542
|
+
Hc,
|
|
15539
15543
|
[-it, -Yn]
|
|
15540
15544
|
);
|
|
15541
|
-
function
|
|
15545
|
+
function Xc(r) {
|
|
15542
15546
|
var t = NaN, e = NaN, n = NaN, i;
|
|
15543
15547
|
return {
|
|
15544
15548
|
lineStart: function() {
|
|
@@ -15546,7 +15550,7 @@ function qc(r) {
|
|
|
15546
15550
|
},
|
|
15547
15551
|
point: function(o, s) {
|
|
15548
15552
|
var a = o > 0 ? it : -it, u = te(o - t);
|
|
15549
|
-
te(u - it) < gt ? (r.point(t, e = (e + s) / 2 > 0 ? Yn : -Yn), r.point(n, e), r.lineEnd(), r.lineStart(), r.point(a, e), r.point(o, e), i = 0) : n !== a && u >= it && (te(t - n) < gt && (t -= n * gt), te(o - a) < gt && (o -= a * gt), e =
|
|
15553
|
+
te(u - it) < gt ? (r.point(t, e = (e + s) / 2 > 0 ? Yn : -Yn), r.point(n, e), r.lineEnd(), r.lineStart(), r.point(a, e), r.point(o, e), i = 0) : n !== a && u >= it && (te(t - n) < gt && (t -= n * gt), te(o - a) < gt && (o -= a * gt), e = Yc(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;
|
|
15550
15554
|
},
|
|
15551
15555
|
lineEnd: function() {
|
|
15552
15556
|
r.lineEnd(), t = e = NaN;
|
|
@@ -15556,11 +15560,11 @@ function qc(r) {
|
|
|
15556
15560
|
}
|
|
15557
15561
|
};
|
|
15558
15562
|
}
|
|
15559
|
-
function
|
|
15563
|
+
function Yc(r, t, e, n) {
|
|
15560
15564
|
var i, o, s = bt(r - e);
|
|
15561
|
-
return te(s) > gt ?
|
|
15565
|
+
return te(s) > gt ? Dc((bt(t) * (o = Lt(n)) * bt(e) - bt(n) * (i = Lt(t)) * bt(r)) / (i * o * s)) : (t + n) / 2;
|
|
15562
15566
|
}
|
|
15563
|
-
function
|
|
15567
|
+
function Hc(r, t, e, n) {
|
|
15564
15568
|
var i;
|
|
15565
15569
|
if (r == null)
|
|
15566
15570
|
i = e * Yn, 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);
|
|
@@ -15570,10 +15574,10 @@ function Yc(r, t, e, n) {
|
|
|
15570
15574
|
} else
|
|
15571
15575
|
n.point(t[0], t[1]);
|
|
15572
15576
|
}
|
|
15573
|
-
function
|
|
15577
|
+
function Wc(r, t) {
|
|
15574
15578
|
var e = Lt(r), n = e > 0, i = te(e) > gt;
|
|
15575
15579
|
function o(c, f, h, g) {
|
|
15576
|
-
|
|
15580
|
+
Ac(g, r, t, h, c, f);
|
|
15577
15581
|
}
|
|
15578
15582
|
function s(c, f) {
|
|
15579
15583
|
return Lt(c) * Lt(f) > e;
|
|
@@ -15628,9 +15632,9 @@ function Hc(r, t) {
|
|
|
15628
15632
|
var h = n ? r : it - r, g = 0;
|
|
15629
15633
|
return c < -h ? g |= 1 : c > h && (g |= 2), f < -h ? g |= 4 : f > h && (g |= 8), g;
|
|
15630
15634
|
}
|
|
15631
|
-
return
|
|
15635
|
+
return Gu(s, a, o, n ? [0, -r] : [-it, r - it]);
|
|
15632
15636
|
}
|
|
15633
|
-
function
|
|
15637
|
+
function ku(r) {
|
|
15634
15638
|
return function(t) {
|
|
15635
15639
|
var e = new Ts();
|
|
15636
15640
|
for (var n in r)
|
|
@@ -15661,32 +15665,32 @@ Ts.prototype = {
|
|
|
15661
15665
|
this.stream.polygonEnd();
|
|
15662
15666
|
}
|
|
15663
15667
|
};
|
|
15664
|
-
function
|
|
15668
|
+
function zu(r, t, e) {
|
|
15665
15669
|
var n = t[1][0] - t[0][0], i = t[1][1] - t[0][1], o = r.clipExtent && r.clipExtent();
|
|
15666
|
-
r.scale(150).translate([0, 0]), o != null && r.clipExtent(null),
|
|
15667
|
-
var s =
|
|
15670
|
+
r.scale(150).translate([0, 0]), o != null && r.clipExtent(null), Tc(e, r.stream(Ga));
|
|
15671
|
+
var s = Ga.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;
|
|
15668
15672
|
return o != null && r.clipExtent(o), r.scale(a * 150).translate([u, l]);
|
|
15669
15673
|
}
|
|
15670
|
-
function
|
|
15671
|
-
return
|
|
15674
|
+
function jc(r, t, e) {
|
|
15675
|
+
return zu(r, [[0, 0], t], e);
|
|
15672
15676
|
}
|
|
15673
|
-
var
|
|
15674
|
-
function
|
|
15675
|
-
return +t ?
|
|
15677
|
+
var za = 16, Kc = Lt(30 * $e);
|
|
15678
|
+
function Va(r, t) {
|
|
15679
|
+
return +t ? Jc(r, t) : Qc(r);
|
|
15676
15680
|
}
|
|
15677
|
-
function
|
|
15678
|
-
return
|
|
15681
|
+
function Qc(r) {
|
|
15682
|
+
return ku({
|
|
15679
15683
|
point: function(t, e) {
|
|
15680
15684
|
t = r(t, e), this.stream.point(t[0], t[1]);
|
|
15681
15685
|
}
|
|
15682
15686
|
});
|
|
15683
15687
|
}
|
|
15684
|
-
function
|
|
15688
|
+
function Jc(r, t) {
|
|
15685
15689
|
function e(n, i, o, s, a, u, l, c, f, h, g, p, y, v) {
|
|
15686
15690
|
var m = l - n, E = c - i, C = m * m + E * E;
|
|
15687
15691
|
if (C > 4 * t && y--) {
|
|
15688
15692
|
var N = s + h, x = a + g, L = u + p, D = Eo(N * N + x * x + L * L), T = Oi(L /= D), A = te(te(L) - 1) < gt || te(o - f) < gt ? (o + f) / 2 : Ri(x, N), q = r(A, T), j = q[0], P = q[1], X = j - n, R = P - i, Y = E * X - m * R;
|
|
15689
|
-
(Y * Y / C > t || te((m * X + E * R) / C - 0.5) > 0.3 || s * h + a * g + u * p <
|
|
15693
|
+
(Y * Y / C > t || te((m * X + E * R) / C - 0.5) > 0.3 || s * h + a * g + u * p < Kc) && (e(n, i, o, s, a, u, j, P, A, N /= D, x /= D, L, y, v), v.point(j, P), e(j, P, A, N, x, L, l, c, f, h, g, p, y, v));
|
|
15690
15694
|
}
|
|
15691
15695
|
}
|
|
15692
15696
|
return function(n) {
|
|
@@ -15709,7 +15713,7 @@ function Qc(r, t) {
|
|
|
15709
15713
|
}
|
|
15710
15714
|
function C(T, A) {
|
|
15711
15715
|
var q = Di([T, A]), j = r(T, A);
|
|
15712
|
-
e(f, h, c, g, p, y, f = j[0], h = j[1], c = T, g = q[0], p = q[1], y = q[2],
|
|
15716
|
+
e(f, h, c, g, p, y, f = j[0], h = j[1], c = T, g = q[0], p = q[1], y = q[2], za, n), n.point(f, h);
|
|
15713
15717
|
}
|
|
15714
15718
|
function N() {
|
|
15715
15719
|
v.point = m, n.lineEnd();
|
|
@@ -15721,23 +15725,23 @@ function Qc(r, t) {
|
|
|
15721
15725
|
C(i = T, A), o = f, s = h, a = g, u = p, l = y, v.point = C;
|
|
15722
15726
|
}
|
|
15723
15727
|
function D() {
|
|
15724
|
-
e(f, h, c, g, p, y, o, s, i, a, u, l,
|
|
15728
|
+
e(f, h, c, g, p, y, o, s, i, a, u, l, za, n), v.lineEnd = N, N();
|
|
15725
15729
|
}
|
|
15726
15730
|
return v;
|
|
15727
15731
|
};
|
|
15728
15732
|
}
|
|
15729
|
-
var
|
|
15733
|
+
var Zc = ku({
|
|
15730
15734
|
point: function(r, t) {
|
|
15731
15735
|
this.stream.point(r * $e, t * $e);
|
|
15732
15736
|
}
|
|
15733
15737
|
});
|
|
15734
|
-
function
|
|
15735
|
-
return
|
|
15738
|
+
function $c(r) {
|
|
15739
|
+
return tf(function() {
|
|
15736
15740
|
return r;
|
|
15737
15741
|
})();
|
|
15738
15742
|
}
|
|
15739
|
-
function
|
|
15740
|
-
var t, e = 150, n = 480, i = 250, o, s, a = 0, u = 0, l = 0, c = 0, f = 0, h, g, p = null, y =
|
|
15743
|
+
function tf(r) {
|
|
15744
|
+
var t, e = 150, n = 480, i = 250, o, s, a = 0, u = 0, l = 0, c = 0, f = 0, h, g, p = null, y = ka, v = null, m, E, C, N = Ba, x = 0.5, L = Va(j, x), D, T;
|
|
15741
15745
|
function A(R) {
|
|
15742
15746
|
return R = g(R[0] * $e, R[1] * $e), [R[0] * e + o, s - R[1] * e];
|
|
15743
15747
|
}
|
|
@@ -15748,11 +15752,11 @@ function $c(r) {
|
|
|
15748
15752
|
return R = t(R, Y), [R[0] * e + o, s - R[1] * e];
|
|
15749
15753
|
}
|
|
15750
15754
|
A.stream = function(R) {
|
|
15751
|
-
return D && T === R ? D : D =
|
|
15755
|
+
return D && T === R ? D : D = Zc(y(h, L(N(T = R))));
|
|
15752
15756
|
}, A.clipAngle = function(R) {
|
|
15753
|
-
return arguments.length ? (y = +R ?
|
|
15757
|
+
return arguments.length ? (y = +R ? Wc(p = R * $e, 6 * $e) : (p = null, ka), X()) : p * vr;
|
|
15754
15758
|
}, A.clipExtent = function(R) {
|
|
15755
|
-
return arguments.length ? (N = R == null ? (v = m = E = C = null,
|
|
15759
|
+
return arguments.length ? (N = R == null ? (v = m = E = C = null, Ba) : kc(v = +R[0][0], m = +R[0][1], E = +R[1][0], C = +R[1][1]), X()) : v == null ? null : [[v, m], [E, C]];
|
|
15756
15760
|
}, A.scale = function(R) {
|
|
15757
15761
|
return arguments.length ? (e = +R, P()) : e;
|
|
15758
15762
|
}, A.translate = function(R) {
|
|
@@ -15762,14 +15766,14 @@ function $c(r) {
|
|
|
15762
15766
|
}, A.rotate = function(R) {
|
|
15763
15767
|
return arguments.length ? (l = R[0] % 360 * $e, c = R[1] % 360 * $e, f = R.length > 2 ? R[2] % 360 * $e : 0, P()) : [l * vr, c * vr, f * vr];
|
|
15764
15768
|
}, A.precision = function(R) {
|
|
15765
|
-
return arguments.length ? (L =
|
|
15769
|
+
return arguments.length ? (L = Va(j, x = R * R), X()) : Eo(x);
|
|
15766
15770
|
}, A.fitExtent = function(R, Y) {
|
|
15767
|
-
return
|
|
15771
|
+
return zu(A, R, Y);
|
|
15768
15772
|
}, A.fitSize = function(R, Y) {
|
|
15769
|
-
return
|
|
15773
|
+
return jc(A, R, Y);
|
|
15770
15774
|
};
|
|
15771
15775
|
function P() {
|
|
15772
|
-
g =
|
|
15776
|
+
g = Tu(h = Mc(l, c, f), t);
|
|
15773
15777
|
var R = t(a, u);
|
|
15774
15778
|
return o = n - R[0] * e, s = i + R[1] * e, X();
|
|
15775
15779
|
}
|
|
@@ -15780,7 +15784,7 @@ function $c(r) {
|
|
|
15780
15784
|
return t = r.apply(this, arguments), A.invert = t.invert && q, P();
|
|
15781
15785
|
};
|
|
15782
15786
|
}
|
|
15783
|
-
function
|
|
15787
|
+
function ef(r) {
|
|
15784
15788
|
return function(t, e) {
|
|
15785
15789
|
var n = Lt(t), i = Lt(e), o = r(n * i);
|
|
15786
15790
|
return [
|
|
@@ -15789,7 +15793,7 @@ function tf(r) {
|
|
|
15789
15793
|
];
|
|
15790
15794
|
};
|
|
15791
15795
|
}
|
|
15792
|
-
function
|
|
15796
|
+
function nf(r) {
|
|
15793
15797
|
return function(t, e) {
|
|
15794
15798
|
var n = Eo(t * t + e * e), i = r(n), o = bt(i), s = Lt(i);
|
|
15795
15799
|
return [
|
|
@@ -15798,20 +15802,20 @@ function ef(r) {
|
|
|
15798
15802
|
];
|
|
15799
15803
|
};
|
|
15800
15804
|
}
|
|
15801
|
-
var
|
|
15802
|
-
return (r =
|
|
15805
|
+
var Vu = ef(function(r) {
|
|
15806
|
+
return (r = Du(r)) && r / bt(r);
|
|
15803
15807
|
});
|
|
15804
|
-
|
|
15808
|
+
Vu.invert = nf(function(r) {
|
|
15805
15809
|
return r;
|
|
15806
15810
|
});
|
|
15807
|
-
function
|
|
15808
|
-
return
|
|
15811
|
+
function rf() {
|
|
15812
|
+
return $c(Vu).scale(79.4188).clipAngle(180 - 1e-3);
|
|
15809
15813
|
}
|
|
15810
|
-
function
|
|
15814
|
+
function Ua(r, t) {
|
|
15811
15815
|
return [r, t];
|
|
15812
15816
|
}
|
|
15813
|
-
|
|
15814
|
-
function
|
|
15817
|
+
Ua.invert = Ua;
|
|
15818
|
+
function of(r, t, e) {
|
|
15815
15819
|
e = e || {};
|
|
15816
15820
|
var n = e.units || "kilometers", i = e.steps || 8;
|
|
15817
15821
|
if (!r)
|
|
@@ -15827,14 +15831,14 @@ function rf(r, t, e) {
|
|
|
15827
15831
|
var o = [];
|
|
15828
15832
|
switch (r.type) {
|
|
15829
15833
|
case "GeometryCollection":
|
|
15830
|
-
return
|
|
15834
|
+
return iu(r, function(s) {
|
|
15831
15835
|
var a = To(s, t, n, i);
|
|
15832
15836
|
a && o.push(a);
|
|
15833
15837
|
}), ws(o);
|
|
15834
15838
|
case "FeatureCollection":
|
|
15835
|
-
return
|
|
15839
|
+
return Ca(r, function(s) {
|
|
15836
15840
|
var a = To(s, t, n, i);
|
|
15837
|
-
a &&
|
|
15841
|
+
a && Ca(a, function(u) {
|
|
15838
15842
|
u && o.push(u);
|
|
15839
15843
|
});
|
|
15840
15844
|
}), ws(o);
|
|
@@ -15845,47 +15849,47 @@ function To(r, t, e, n) {
|
|
|
15845
15849
|
var i = r.properties || {}, o = r.type === "Feature" ? r.geometry : r;
|
|
15846
15850
|
if (o.type === "GeometryCollection") {
|
|
15847
15851
|
var s = [];
|
|
15848
|
-
return
|
|
15852
|
+
return iu(r, function(y) {
|
|
15849
15853
|
var v = To(y, t, e, n);
|
|
15850
15854
|
v && s.push(v);
|
|
15851
15855
|
}), ws(s);
|
|
15852
15856
|
}
|
|
15853
|
-
var a =
|
|
15857
|
+
var a = sf(o), u = {
|
|
15854
15858
|
type: o.type,
|
|
15855
|
-
coordinates:
|
|
15856
|
-
}, l = new Us(), c = l.read(u), f =
|
|
15857
|
-
if (h = g.write(h), !
|
|
15859
|
+
coordinates: qu(o.coordinates, a)
|
|
15860
|
+
}, l = new Us(), c = l.read(u), f = cc(fc(t, e), "meters"), h = Gt.bufferOp(c, f, n), g = new pu();
|
|
15861
|
+
if (h = g.write(h), !Uu(h.coordinates)) {
|
|
15858
15862
|
var p = {
|
|
15859
15863
|
type: h.type,
|
|
15860
|
-
coordinates:
|
|
15864
|
+
coordinates: Xu(h.coordinates, a)
|
|
15861
15865
|
};
|
|
15862
15866
|
return Wo(p, i);
|
|
15863
15867
|
}
|
|
15864
15868
|
}
|
|
15865
|
-
function
|
|
15866
|
-
return Array.isArray(r[0]) ?
|
|
15869
|
+
function Uu(r) {
|
|
15870
|
+
return Array.isArray(r[0]) ? Uu(r[0]) : isNaN(r[0]);
|
|
15867
15871
|
}
|
|
15868
|
-
function
|
|
15872
|
+
function qu(r, t) {
|
|
15869
15873
|
return typeof r[0] != "object" ? t(r) : r.map(function(e) {
|
|
15870
|
-
return
|
|
15874
|
+
return qu(e, t);
|
|
15871
15875
|
});
|
|
15872
15876
|
}
|
|
15873
|
-
function
|
|
15877
|
+
function Xu(r, t) {
|
|
15874
15878
|
return typeof r[0] != "object" ? t.invert(r) : r.map(function(e) {
|
|
15875
|
-
return
|
|
15879
|
+
return Xu(e, t);
|
|
15876
15880
|
});
|
|
15877
15881
|
}
|
|
15878
|
-
function
|
|
15879
|
-
var t =
|
|
15880
|
-
return
|
|
15882
|
+
function sf(r) {
|
|
15883
|
+
var t = pc(r).geometry.coordinates, e = [-t[0], -t[1]];
|
|
15884
|
+
return rf().rotate(e).scale(_e);
|
|
15881
15885
|
}
|
|
15882
|
-
function
|
|
15886
|
+
function qa(r) {
|
|
15883
15887
|
let t;
|
|
15884
15888
|
for (const e of r)
|
|
15885
15889
|
t && e[0] - t[0] >= 180 ? e[0] -= 360 : t && e[0] - t[0] < -180 && (e[0] += 360), t = e;
|
|
15886
15890
|
}
|
|
15887
|
-
function
|
|
15888
|
-
const e =
|
|
15891
|
+
function Xa(r, t) {
|
|
15892
|
+
const e = gc(
|
|
15889
15893
|
{
|
|
15890
15894
|
type: "Polygon",
|
|
15891
15895
|
coordinates: [
|
|
@@ -15903,24 +15907,24 @@ function qa(r, t) {
|
|
|
15903
15907
|
if (!e)
|
|
15904
15908
|
return;
|
|
15905
15909
|
e.properties = { isMask: "y" };
|
|
15906
|
-
const n =
|
|
15910
|
+
const n = of(r, 0);
|
|
15907
15911
|
if (n.geometry.type === "Polygon")
|
|
15908
15912
|
for (const i of n.geometry.coordinates)
|
|
15909
|
-
|
|
15913
|
+
qa(i);
|
|
15910
15914
|
else
|
|
15911
15915
|
for (const i of n.geometry.coordinates)
|
|
15912
15916
|
for (const o of i)
|
|
15913
|
-
|
|
15917
|
+
qa(o);
|
|
15914
15918
|
t({
|
|
15915
15919
|
type: "FeatureCollection",
|
|
15916
15920
|
features: [n, e]
|
|
15917
15921
|
});
|
|
15918
15922
|
}
|
|
15919
|
-
let
|
|
15923
|
+
let Ya = {
|
|
15920
15924
|
type: "FeatureCollection",
|
|
15921
15925
|
features: []
|
|
15922
15926
|
};
|
|
15923
|
-
function
|
|
15927
|
+
function af(r, t, e = !0, n = !0, i = {}, o = {}, s = {
|
|
15924
15928
|
fill: {
|
|
15925
15929
|
paint: {
|
|
15926
15930
|
"fill-color": "#000",
|
|
@@ -15944,7 +15948,7 @@ function sf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
|
|
|
15944
15948
|
function h() {
|
|
15945
15949
|
(s != null && s.fill || s != null && s.line) && r.addSource("full-geom", {
|
|
15946
15950
|
type: "geojson",
|
|
15947
|
-
data:
|
|
15951
|
+
data: Ya
|
|
15948
15952
|
}), s != null && s.fill && r.addLayer({
|
|
15949
15953
|
...s == null ? void 0 : s.fill,
|
|
15950
15954
|
id: "full-geom-fill",
|
|
@@ -15974,7 +15978,7 @@ function sf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
|
|
|
15974
15978
|
if (!t)
|
|
15975
15979
|
throw new Error();
|
|
15976
15980
|
const E = document.createElement("div");
|
|
15977
|
-
return m && E.classList.add("marker-interactive"), new
|
|
15981
|
+
return m && E.classList.add("marker-interactive"), new Ja({
|
|
15978
15982
|
props: { displayIn: "maplibre" },
|
|
15979
15983
|
target: E
|
|
15980
15984
|
}), new t.Marker({ element: E, offset: [1, -13] });
|
|
@@ -16010,7 +16014,7 @@ function sf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
|
|
|
16010
16014
|
}
|
|
16011
16015
|
for (const N of l)
|
|
16012
16016
|
N.remove();
|
|
16013
|
-
if (l.length = 0, C(
|
|
16017
|
+
if (l.length = 0, C(Ya), !!t) {
|
|
16014
16018
|
if (E) {
|
|
16015
16019
|
let N = !1;
|
|
16016
16020
|
if (E.geometry.type === "GeometryCollection") {
|
|
@@ -16020,8 +16024,8 @@ function sf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
|
|
|
16020
16024
|
if (x.length > 0) {
|
|
16021
16025
|
let L = x.pop();
|
|
16022
16026
|
for (const D of x)
|
|
16023
|
-
L =
|
|
16024
|
-
|
|
16027
|
+
L = hc(L, D);
|
|
16028
|
+
Xa({ ...E, geometry: L }, C), N = !0;
|
|
16025
16029
|
} else {
|
|
16026
16030
|
const L = E.geometry.geometries.filter(
|
|
16027
16031
|
(D) => D.type === "LineString" || D.type === "MultiLineString"
|
|
@@ -16034,7 +16038,7 @@ function sf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
|
|
|
16034
16038
|
}
|
|
16035
16039
|
if (!N) {
|
|
16036
16040
|
if (E.geometry.type === "Polygon" || E.geometry.type === "MultiPolygon")
|
|
16037
|
-
|
|
16041
|
+
Xa(E, C);
|
|
16038
16042
|
else if (E.geometry.type === "LineString" || E.geometry.type === "MultiLineString") {
|
|
16039
16043
|
C(E);
|
|
16040
16044
|
return;
|
|
@@ -16072,7 +16076,7 @@ function sf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
|
|
|
16072
16076
|
};
|
|
16073
16077
|
}
|
|
16074
16078
|
var En, zr;
|
|
16075
|
-
class
|
|
16079
|
+
class cf extends EventTarget {
|
|
16076
16080
|
constructor(e) {
|
|
16077
16081
|
super();
|
|
16078
16082
|
fs(this, En, void 0);
|
|
@@ -16089,7 +16093,7 @@ class lf extends EventTarget {
|
|
|
16089
16093
|
flyTo: a,
|
|
16090
16094
|
fullGeometryStyle: u,
|
|
16091
16095
|
...l
|
|
16092
|
-
} = Gn(this, zr), c = typeof a == "boolean" ? {} : a, f =
|
|
16096
|
+
} = Gn(this, zr), c = typeof a == "boolean" ? {} : a, f = af(
|
|
16093
16097
|
e,
|
|
16094
16098
|
i,
|
|
16095
16099
|
o,
|
|
@@ -16098,7 +16102,7 @@ class lf extends EventTarget {
|
|
|
16098
16102
|
c,
|
|
16099
16103
|
u
|
|
16100
16104
|
);
|
|
16101
|
-
No(this, En, new
|
|
16105
|
+
No(this, En, new zl({
|
|
16102
16106
|
target: n,
|
|
16103
16107
|
props: {
|
|
16104
16108
|
mapController: f,
|
|
@@ -16155,6 +16159,6 @@ class lf extends EventTarget {
|
|
|
16155
16159
|
}
|
|
16156
16160
|
En = new WeakMap(), zr = new WeakMap();
|
|
16157
16161
|
export {
|
|
16158
|
-
|
|
16159
|
-
|
|
16162
|
+
cf as GeocodingControl,
|
|
16163
|
+
af as createMaplibreglMapController
|
|
16160
16164
|
};
|