@maptiler/geocoding-control 0.0.57 → 0.0.59
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/README.md +1 -1
- package/dist/leaflet.js +631 -629
- package/dist/leaflet.umd.js +4 -4
- package/dist/maplibregl.js +631 -629
- package/dist/maplibregl.umd.js +4 -4
- package/package.json +1 -1
- package/src/lib/GeocodingControl.svelte +10 -4
package/dist/maplibregl.js
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
var
|
|
1
|
+
var $s = (r, t, e) => {
|
|
2
2
|
if (!t.has(r))
|
|
3
3
|
throw TypeError("Cannot " + e);
|
|
4
4
|
};
|
|
5
|
-
var Bn = (r, t, e) => (
|
|
5
|
+
var Bn = (r, t, e) => ($s(r, t, "read from private field"), e ? e.call(r) : t.get(r)), cs = (r, t, e) => {
|
|
6
6
|
if (t.has(r))
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
8
|
t instanceof WeakSet ? t.add(r) : t.set(r, e);
|
|
9
|
-
}, Io = (r, t, e, n) => (
|
|
9
|
+
}, Io = (r, t, e, n) => ($s(r, t, "write to private field"), n ? n.call(r, e) : t.set(r, e), e);
|
|
10
10
|
function xt() {
|
|
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 Xa(r) {
|
|
18
18
|
return r();
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function ta() {
|
|
21
21
|
return /* @__PURE__ */ Object.create(null);
|
|
22
22
|
}
|
|
23
23
|
function Or(r) {
|
|
24
|
-
r.forEach(
|
|
24
|
+
r.forEach(Xa);
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function Ya(r) {
|
|
27
27
|
return typeof r == "function";
|
|
28
28
|
}
|
|
29
29
|
function Di(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 = Ha(r, t, e, n);
|
|
38
38
|
return r[0](i);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
return r[1] && n ?
|
|
41
|
+
function Ha(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 = Ha(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++)
|
|
@@ -71,7 +71,7 @@ function cl(r) {
|
|
|
71
71
|
}
|
|
72
72
|
return -1;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function ea(r) {
|
|
75
75
|
return r ?? "";
|
|
76
76
|
}
|
|
77
77
|
function lt(r, t) {
|
|
@@ -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 qn() {
|
|
|
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,19 +110,19 @@ 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 Wi(r, t) {
|
|
117
117
|
t = "" + t, r.wholeText !== t && (r.data = t);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function na(r, t) {
|
|
120
120
|
r.value = t ?? "";
|
|
121
121
|
}
|
|
122
122
|
function rn(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 ji;
|
|
|
130
130
|
function Yi(r) {
|
|
131
131
|
ji = r;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function Wa() {
|
|
134
134
|
if (!ji)
|
|
135
135
|
throw new Error("Function called outside component initialization");
|
|
136
136
|
return ji;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
139
|
-
|
|
138
|
+
function vl(r) {
|
|
139
|
+
Wa().$$.on_destroy.push(r);
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
const r =
|
|
141
|
+
function yl() {
|
|
142
|
+
const r = Wa();
|
|
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;
|
|
@@ -151,17 +151,17 @@ function vl() {
|
|
|
151
151
|
return !0;
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
|
-
const ai = [],
|
|
155
|
-
let
|
|
156
|
-
function
|
|
157
|
-
|
|
154
|
+
const ai = [], vs = [], Lo = [], ra = [], ml = Promise.resolve();
|
|
155
|
+
let ys = !1;
|
|
156
|
+
function _l() {
|
|
157
|
+
ys || (ys = !0, ml.then(ja));
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function ms(r) {
|
|
160
160
|
Lo.push(r);
|
|
161
161
|
}
|
|
162
|
-
const
|
|
162
|
+
const fs = /* @__PURE__ */ new Set();
|
|
163
163
|
let si = 0;
|
|
164
|
-
function
|
|
164
|
+
function ja() {
|
|
165
165
|
if (si !== 0)
|
|
166
166
|
return;
|
|
167
167
|
const r = ji;
|
|
@@ -169,28 +169,28 @@ function Wa() {
|
|
|
169
169
|
try {
|
|
170
170
|
for (; si < ai.length; ) {
|
|
171
171
|
const t = ai[si];
|
|
172
|
-
si++, Yi(t),
|
|
172
|
+
si++, Yi(t), El(t.$$);
|
|
173
173
|
}
|
|
174
174
|
} catch (t) {
|
|
175
175
|
throw ai.length = 0, si = 0, t;
|
|
176
176
|
}
|
|
177
|
-
for (Yi(null), ai.length = 0, si = 0;
|
|
178
|
-
|
|
177
|
+
for (Yi(null), ai.length = 0, si = 0; vs.length; )
|
|
178
|
+
vs.pop()();
|
|
179
179
|
for (let t = 0; t < Lo.length; t += 1) {
|
|
180
180
|
const e = Lo[t];
|
|
181
|
-
|
|
181
|
+
fs.has(e) || (fs.add(e), e());
|
|
182
182
|
}
|
|
183
183
|
Lo.length = 0;
|
|
184
184
|
} while (ai.length);
|
|
185
|
-
for (;
|
|
186
|
-
|
|
187
|
-
|
|
185
|
+
for (; ra.length; )
|
|
186
|
+
ra.pop()();
|
|
187
|
+
ys = !1, fs.clear(), Yi(r);
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function El(r) {
|
|
190
190
|
if (r.fragment !== null) {
|
|
191
191
|
r.update(), Or(r.before_update);
|
|
192
192
|
const t = r.dirty;
|
|
193
|
-
r.dirty = [-1], r.fragment && r.fragment.p(r.ctx, t), r.after_update.forEach(
|
|
193
|
+
r.dirty = [-1], r.fragment && r.fragment.p(r.ctx, t), r.after_update.forEach(ms);
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
const bo = /* @__PURE__ */ new Set();
|
|
@@ -223,17 +223,17 @@ function Ki(r) {
|
|
|
223
223
|
}
|
|
224
224
|
function li(r, t, e, n) {
|
|
225
225
|
const { fragment: i, after_update: o } = r.$$;
|
|
226
|
-
i && i.m(t, e), n ||
|
|
227
|
-
const s = r.$$.on_mount.map(
|
|
226
|
+
i && i.m(t, e), n || ms(() => {
|
|
227
|
+
const s = r.$$.on_mount.map(Xa).filter(Ya);
|
|
228
228
|
r.$$.on_destroy ? r.$$.on_destroy.push(...s) : Or(s), r.$$.on_mount = [];
|
|
229
|
-
}), o.forEach(
|
|
229
|
+
}), o.forEach(ms);
|
|
230
230
|
}
|
|
231
231
|
function ci(r, t) {
|
|
232
232
|
const e = r.$$;
|
|
233
233
|
e.fragment !== null && (Or(e.on_destroy), e.fragment && e.fragment.d(t), e.on_destroy = e.fragment = null, e.ctx = []);
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
r.$$.dirty[0] === -1 && (ai.push(r),
|
|
235
|
+
function Il(r, t) {
|
|
236
|
+
r.$$.dirty[0] === -1 && (ai.push(r), _l(), r.$$.dirty.fill(0)), r.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
237
237
|
}
|
|
238
238
|
function Ti(r, t, e, n, i, o, s, a = [-1]) {
|
|
239
239
|
const u = ji;
|
|
@@ -244,14 +244,14 @@ function Ti(r, t, e, n, i, o, s, a = [-1]) {
|
|
|
244
244
|
props: o,
|
|
245
245
|
update: xt,
|
|
246
246
|
not_equal: i,
|
|
247
|
-
bound:
|
|
247
|
+
bound: ta(),
|
|
248
248
|
on_mount: [],
|
|
249
249
|
on_destroy: [],
|
|
250
250
|
on_disconnect: [],
|
|
251
251
|
before_update: [],
|
|
252
252
|
after_update: [],
|
|
253
253
|
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
254
|
-
callbacks:
|
|
254
|
+
callbacks: ta(),
|
|
255
255
|
dirty: a,
|
|
256
256
|
skip_bound: !1,
|
|
257
257
|
root: t.target || u.$$.root
|
|
@@ -260,14 +260,14 @@ function Ti(r, t, e, n, i, o, s, a = [-1]) {
|
|
|
260
260
|
let c = !1;
|
|
261
261
|
if (l.ctx = e ? e(r, t.props || {}, (f, h, ...g) => {
|
|
262
262
|
const p = g.length ? g[0] : h;
|
|
263
|
-
return l.ctx && i(l.ctx[f], l.ctx[f] = p) && (!l.skip_bound && l.bound[f] && l.bound[f](p), c &&
|
|
263
|
+
return l.ctx && i(l.ctx[f], l.ctx[f] = p) && (!l.skip_bound && l.bound[f] && l.bound[f](p), c && Il(r, f)), h;
|
|
264
264
|
}) : [], l.update(), c = !0, Or(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
265
265
|
if (t.hydrate) {
|
|
266
|
-
const f =
|
|
266
|
+
const f = pl(t.target);
|
|
267
267
|
l.fragment && l.fragment.l(f), f.forEach(Ae);
|
|
268
268
|
} else
|
|
269
269
|
l.fragment && l.fragment.c();
|
|
270
|
-
t.intro && Kt(r.$$.fragment), li(r, t.target, t.anchor, t.customElement),
|
|
270
|
+
t.intro && Kt(r.$$.fragment), li(r, t.target, t.anchor, t.customElement), ja();
|
|
271
271
|
}
|
|
272
272
|
Yi(u);
|
|
273
273
|
}
|
|
@@ -276,7 +276,7 @@ class Mi {
|
|
|
276
276
|
ci(this, 1), this.$destroy = xt;
|
|
277
277
|
}
|
|
278
278
|
$on(t, e) {
|
|
279
|
-
if (!
|
|
279
|
+
if (!Ya(e))
|
|
280
280
|
return xt;
|
|
281
281
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
282
282
|
return n.push(e), () => {
|
|
@@ -285,10 +285,10 @@ class Mi {
|
|
|
285
285
|
};
|
|
286
286
|
}
|
|
287
287
|
$set(t) {
|
|
288
|
-
this.$$set && !
|
|
288
|
+
this.$$set && !al(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function Cl(r) {
|
|
292
292
|
let t, e;
|
|
293
293
|
return {
|
|
294
294
|
c() {
|
|
@@ -305,12 +305,12 @@ function Il(r) {
|
|
|
305
305
|
}
|
|
306
306
|
};
|
|
307
307
|
}
|
|
308
|
-
class
|
|
308
|
+
class Nl extends Mi {
|
|
309
309
|
constructor(t) {
|
|
310
|
-
super(), Ti(this, t, null,
|
|
310
|
+
super(), Ti(this, t, null, Cl, Di, {});
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function xl(r) {
|
|
314
314
|
let t, e;
|
|
315
315
|
return {
|
|
316
316
|
c() {
|
|
@@ -327,12 +327,12 @@ function Nl(r) {
|
|
|
327
327
|
}
|
|
328
328
|
};
|
|
329
329
|
}
|
|
330
|
-
class
|
|
330
|
+
class Sl extends Mi {
|
|
331
331
|
constructor(t) {
|
|
332
|
-
super(), Ti(this, t, null,
|
|
332
|
+
super(), Ti(this, t, null, xl, Di, {});
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
|
-
function
|
|
335
|
+
function wl(r) {
|
|
336
336
|
let t;
|
|
337
337
|
return {
|
|
338
338
|
c() {
|
|
@@ -349,12 +349,12 @@ function Sl(r) {
|
|
|
349
349
|
}
|
|
350
350
|
};
|
|
351
351
|
}
|
|
352
|
-
class
|
|
352
|
+
class Ll extends Mi {
|
|
353
353
|
constructor(t) {
|
|
354
|
-
super(), Ti(this, t, null,
|
|
354
|
+
super(), Ti(this, t, null, wl, Di, {});
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function bl(r) {
|
|
358
358
|
let t, e, n;
|
|
359
359
|
return {
|
|
360
360
|
c() {
|
|
@@ -373,18 +373,18 @@ function Ll(r) {
|
|
|
373
373
|
}
|
|
374
374
|
};
|
|
375
375
|
}
|
|
376
|
-
function
|
|
376
|
+
function Pl(r, t, e) {
|
|
377
377
|
let { displayIn: n } = t;
|
|
378
378
|
return r.$$set = (i) => {
|
|
379
379
|
"displayIn" in i && e(0, n = i.displayIn);
|
|
380
380
|
}, [n];
|
|
381
381
|
}
|
|
382
|
-
class
|
|
382
|
+
class Ka extends Mi {
|
|
383
383
|
constructor(t) {
|
|
384
|
-
super(), Ti(this, t,
|
|
384
|
+
super(), Ti(this, t, Pl, bl, Di, { displayIn: 0 });
|
|
385
385
|
}
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function Rl(r) {
|
|
388
388
|
let t, e;
|
|
389
389
|
return {
|
|
390
390
|
c() {
|
|
@@ -401,18 +401,18 @@ function Pl(r) {
|
|
|
401
401
|
}
|
|
402
402
|
};
|
|
403
403
|
}
|
|
404
|
-
class
|
|
404
|
+
class Ol extends Mi {
|
|
405
405
|
constructor(t) {
|
|
406
|
-
super(), Ti(this, t, null,
|
|
406
|
+
super(), Ti(this, t, null, Rl, Di, {});
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function ia(r, t, e) {
|
|
410
410
|
const n = r.slice();
|
|
411
411
|
return n[68] = t[e], n[70] = e, n;
|
|
412
412
|
}
|
|
413
|
-
function
|
|
413
|
+
function oa(r) {
|
|
414
414
|
let t, e;
|
|
415
|
-
return t = new
|
|
415
|
+
return t = new Ll({}), {
|
|
416
416
|
c() {
|
|
417
417
|
Ki(t.$$.fragment);
|
|
418
418
|
},
|
|
@@ -430,9 +430,9 @@ function ia(r) {
|
|
|
430
430
|
}
|
|
431
431
|
};
|
|
432
432
|
}
|
|
433
|
-
function
|
|
433
|
+
function sa(r) {
|
|
434
434
|
let t, e, n, i, o;
|
|
435
|
-
return e = new
|
|
435
|
+
return e = new Nl({}), {
|
|
436
436
|
c() {
|
|
437
437
|
t = Qt("button"), Ki(e.$$.fragment), B(t, "type", "button"), B(t, "title", r[8]), B(t, "class", "svelte-1h1zm6d"), rn(t, "active", r[1]);
|
|
438
438
|
},
|
|
@@ -453,10 +453,10 @@ function oa(r) {
|
|
|
453
453
|
}
|
|
454
454
|
};
|
|
455
455
|
}
|
|
456
|
-
function
|
|
456
|
+
function Dl(r) {
|
|
457
457
|
let t, e, n, i, o = r[12], s = [];
|
|
458
458
|
for (let u = 0; u < o.length; u += 1)
|
|
459
|
-
s[u] =
|
|
459
|
+
s[u] = ua(ia(r, o, u));
|
|
460
460
|
const a = (u) => be(s[u], 1, 1, () => {
|
|
461
461
|
s[u] = null;
|
|
462
462
|
});
|
|
@@ -481,8 +481,8 @@ function Ol(r) {
|
|
|
481
481
|
o = u[12];
|
|
482
482
|
let c;
|
|
483
483
|
for (c = 0; c < o.length; c += 1) {
|
|
484
|
-
const f =
|
|
485
|
-
s[c] ? (s[c].p(f, l), Kt(s[c], 1)) : (s[c] =
|
|
484
|
+
const f = ia(u, o, c);
|
|
485
|
+
s[c] ? (s[c].p(f, l), Kt(s[c], 1)) : (s[c] = ua(f), s[c].c(), Kt(s[c], 1), s[c].m(t, null));
|
|
486
486
|
}
|
|
487
487
|
for (Po(), c = o.length; c < s.length; c += 1)
|
|
488
488
|
a(c);
|
|
@@ -503,11 +503,11 @@ function Ol(r) {
|
|
|
503
503
|
e = !1;
|
|
504
504
|
},
|
|
505
505
|
d(u) {
|
|
506
|
-
u && Ae(t),
|
|
506
|
+
u && Ae(t), hl(s, u), n = !1, Or(i);
|
|
507
507
|
}
|
|
508
508
|
};
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function Tl(r) {
|
|
511
511
|
let t, e;
|
|
512
512
|
return {
|
|
513
513
|
c() {
|
|
@@ -526,7 +526,7 @@ function Dl(r) {
|
|
|
526
526
|
}
|
|
527
527
|
};
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function Ml(r) {
|
|
530
530
|
let t = "", e;
|
|
531
531
|
return {
|
|
532
532
|
c() {
|
|
@@ -543,7 +543,7 @@ function Tl(r) {
|
|
|
543
543
|
}
|
|
544
544
|
};
|
|
545
545
|
}
|
|
546
|
-
function
|
|
546
|
+
function Al(r) {
|
|
547
547
|
let t, e;
|
|
548
548
|
return {
|
|
549
549
|
c() {
|
|
@@ -562,7 +562,7 @@ function Ml(r) {
|
|
|
562
562
|
}
|
|
563
563
|
};
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function aa(r) {
|
|
566
566
|
let t, e = r[68].place_type + "", n;
|
|
567
567
|
return {
|
|
568
568
|
c() {
|
|
@@ -579,10 +579,10 @@ function sa(r) {
|
|
|
579
579
|
}
|
|
580
580
|
};
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function ua(r) {
|
|
583
583
|
let t, e, n, i, o, s, a = r[68].place_name.replace(/,.*/, "") + "", u, l, c, f, h, g = r[68].place_name.replace(/[^,]*,?\s*/, "") + "", p, v, y, m, E, N;
|
|
584
|
-
e = new
|
|
585
|
-
let C = r[10] &&
|
|
584
|
+
e = new Ka({ props: { displayIn: "list" } });
|
|
585
|
+
let C = r[10] && aa(r);
|
|
586
586
|
function L() {
|
|
587
587
|
return r[56](r[70]);
|
|
588
588
|
}
|
|
@@ -600,7 +600,7 @@ function aa(r) {
|
|
|
600
600
|
], E = !0);
|
|
601
601
|
},
|
|
602
602
|
p(D, T) {
|
|
603
|
-
r = D, (!m || T[0] & 4096) && a !== (a = r[68].place_name.replace(/,.*/, "") + "") && Wi(u, a), r[10] ? C ? C.p(r, T) : (C =
|
|
603
|
+
r = D, (!m || T[0] & 4096) && a !== (a = r[68].place_name.replace(/,.*/, "") + "") && Wi(u, a), r[10] ? C ? C.p(r, T) : (C = aa(r), C.c(), C.m(o, null)) : C && (C.d(1), C = null), (!m || T[0] & 4096) && g !== (g = r[68].place_name.replace(/[^,]*,?\s*/, "") + "") && Wi(p, g), (!m || T[0] & 8192 && y !== (y = r[13] === r[70])) && B(t, "data-selected", y), (!m || T[0] & 8192) && rn(t, "selected", r[13] === r[70]);
|
|
604
604
|
},
|
|
605
605
|
i(D) {
|
|
606
606
|
m || (Kt(e.$$.fragment, D), m = !0);
|
|
@@ -613,21 +613,21 @@ function aa(r) {
|
|
|
613
613
|
}
|
|
614
614
|
};
|
|
615
615
|
}
|
|
616
|
-
function
|
|
616
|
+
function Fl(r) {
|
|
617
617
|
let t, e, n, i, o, s, a, u, l, c, f, h, g, p, v, y, m, E, N, C;
|
|
618
|
-
i = new
|
|
619
|
-
let L = r[17] &&
|
|
620
|
-
const D = r[47].default, T =
|
|
618
|
+
i = new Ol({}), c = new Sl({});
|
|
619
|
+
let L = r[17] && oa(), w = r[7] === !0 && sa(r);
|
|
620
|
+
const D = r[47].default, T = ul(D, r, r[46], null), F = [Al, Ml, Tl, Dl], j = [];
|
|
621
621
|
function k(O, Y) {
|
|
622
622
|
var P, X;
|
|
623
623
|
return O[16] ? 0 : O[14] ? ((P = O[12]) == null ? void 0 : P.length) === 0 ? 2 : O[14] && ((X = O[12]) != null && X.length) ? 3 : -1 : 1;
|
|
624
624
|
}
|
|
625
625
|
return ~(v = k(r)) && (y = j[v] = F[v](r)), {
|
|
626
626
|
c() {
|
|
627
|
-
t = Qt("form"), e = Qt("div"), n = Qt("button"), Ki(i.$$.fragment), o = qn(), s = Qt("input"), a = qn(), u = Qt("div"), l = Qt("button"), Ki(c.$$.fragment), f = qn(), L && L.c(), h = qn(), w && w.c(), g = qn(), T && T.c(), p = qn(), y && y.c(), B(n, "type", "button"), B(n, "class", "svelte-1h1zm6d"), B(s, "placeholder", r[3]), B(s, "aria-label", r[3]), B(s, "class", "svelte-1h1zm6d"), B(l, "type", "button"), B(l, "title", r[9]), B(l, "class", "svelte-1h1zm6d"), rn(l, "displayable", r[0] !== ""), B(u, "class", "clear-button-container svelte-1h1zm6d"), B(e, "class", "input-group svelte-1h1zm6d"), B(t, "tabindex", "0"), B(t, "class", m =
|
|
627
|
+
t = Qt("form"), e = Qt("div"), n = Qt("button"), Ki(i.$$.fragment), o = qn(), s = Qt("input"), a = qn(), u = Qt("div"), l = Qt("button"), Ki(c.$$.fragment), f = qn(), L && L.c(), h = qn(), w && w.c(), g = qn(), T && T.c(), p = qn(), y && y.c(), B(n, "type", "button"), B(n, "class", "svelte-1h1zm6d"), B(s, "placeholder", r[3]), B(s, "aria-label", r[3]), B(s, "class", "svelte-1h1zm6d"), B(l, "type", "button"), B(l, "title", r[9]), B(l, "class", "svelte-1h1zm6d"), rn(l, "displayable", r[0] !== ""), B(u, "class", "clear-button-container svelte-1h1zm6d"), B(e, "class", "input-group svelte-1h1zm6d"), B(t, "tabindex", "0"), B(t, "class", m = ea(r[2]) + " svelte-1h1zm6d"), rn(t, "can-collapse", r[6] && r[0] === "");
|
|
628
628
|
},
|
|
629
629
|
m(O, Y) {
|
|
630
|
-
Ke(O, t, Y), lt(t, e), lt(e, n), li(i, n, null), lt(e, o), lt(e, s), r[49](s),
|
|
630
|
+
Ke(O, t, Y), lt(t, e), lt(e, n), li(i, n, null), lt(e, o), lt(e, s), r[49](s), na(s, r[0]), lt(e, a), lt(e, u), lt(u, l), li(c, l, null), lt(u, f), L && L.m(u, null), lt(e, h), w && w.m(e, null), lt(e, g), T && T.m(e, null), lt(t, p), ~v && j[v].m(t, null), E = !0, N || (C = [
|
|
631
631
|
ke(n, "click", r[48]),
|
|
632
632
|
ke(s, "input", r[50]),
|
|
633
633
|
ke(s, "focus", r[51]),
|
|
@@ -635,26 +635,26 @@ function Al(r) {
|
|
|
635
635
|
ke(s, "keydown", r[19]),
|
|
636
636
|
ke(s, "input", r[53]),
|
|
637
637
|
ke(l, "click", r[54]),
|
|
638
|
-
ke(t, "submit",
|
|
638
|
+
ke(t, "submit", gl(r[18]))
|
|
639
639
|
], N = !0);
|
|
640
640
|
},
|
|
641
641
|
p(O, Y) {
|
|
642
|
-
(!E || Y[0] & 8) && B(s, "placeholder", O[3]), (!E || Y[0] & 8) && B(s, "aria-label", O[3]), Y[0] & 1 && s.value !== O[0] &&
|
|
642
|
+
(!E || Y[0] & 8) && B(s, "placeholder", O[3]), (!E || Y[0] & 8) && B(s, "aria-label", O[3]), Y[0] & 1 && s.value !== O[0] && na(s, O[0]), (!E || Y[0] & 512) && B(l, "title", O[9]), (!E || Y[0] & 1) && rn(l, "displayable", O[0] !== ""), O[17] ? L ? Y[0] & 131072 && Kt(L, 1) : (L = oa(), L.c(), Kt(L, 1), L.m(u, null)) : L && (Po(), be(L, 1, 1, () => {
|
|
643
643
|
L = null;
|
|
644
|
-
}), Ro()), O[7] === !0 ? w ? (w.p(O, Y), Y[0] & 128 && Kt(w, 1)) : (w =
|
|
644
|
+
}), Ro()), O[7] === !0 ? w ? (w.p(O, Y), Y[0] & 128 && Kt(w, 1)) : (w = sa(O), w.c(), Kt(w, 1), w.m(e, g)) : w && (Po(), be(w, 1, 1, () => {
|
|
645
645
|
w = null;
|
|
646
|
-
}), Ro()), T && T.p && (!E || Y[1] & 32768) &&
|
|
646
|
+
}), Ro()), T && T.p && (!E || Y[1] & 32768) && cl(
|
|
647
647
|
T,
|
|
648
648
|
D,
|
|
649
649
|
O,
|
|
650
650
|
O[46],
|
|
651
|
-
E ?
|
|
651
|
+
E ? ll(D, O[46], Y, null) : fl(O[46]),
|
|
652
652
|
null
|
|
653
653
|
);
|
|
654
654
|
let P = v;
|
|
655
655
|
v = k(O), v === P ? ~v && j[v].p(O, Y) : (y && (Po(), be(j[P], 1, 1, () => {
|
|
656
656
|
j[P] = null;
|
|
657
|
-
}), Ro()), ~v ? (y = j[v], y ? y.p(O, Y) : (y = j[v] = F[v](O), y.c()), Kt(y, 1), y.m(t, null)) : y = null), (!E || Y[0] & 4 && m !== (m =
|
|
657
|
+
}), Ro()), ~v ? (y = j[v], y ? y.p(O, Y) : (y = j[v] = F[v](O), y.c()), Kt(y, 1), y.m(t, null)) : y = null), (!E || Y[0] & 4 && m !== (m = ea(O[2]) + " svelte-1h1zm6d")) && B(t, "class", m), (!E || Y[0] & 69) && rn(t, "can-collapse", O[6] && O[0] === "");
|
|
658
658
|
},
|
|
659
659
|
i(O) {
|
|
660
660
|
E || (Kt(i.$$.fragment, O), Kt(c.$$.fragment, O), Kt(L), Kt(w), Kt(T, O), Kt(y), E = !0);
|
|
@@ -667,11 +667,11 @@ function Al(r) {
|
|
|
667
667
|
}
|
|
668
668
|
};
|
|
669
669
|
}
|
|
670
|
-
function
|
|
670
|
+
function Bl(r, t, e) {
|
|
671
671
|
const n = t[1], i = t[0], o = n - i;
|
|
672
672
|
return r === n && e ? r : ((r - i) % o + o) % o + i;
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function Gl(r, t, e) {
|
|
675
675
|
let n, { $$slots: i = {}, $$scope: o } = t, { class: s = void 0 } = t, { mapController: a = void 0 } = t, { apiKey: u } = t, { debounceSearch: l = 200 } = t, { placeholder: c = "Search" } = t, { errorMessage: f = "Searching failed" } = t, { noResultsMessage: h = "No results found" } = t, { proximity: g = void 0 } = t, { bbox: p = void 0 } = t, { trackProximity: v = !0 } = t, { minLength: y = 2 } = t, { language: m = void 0 } = t, { showResultsWhileTyping: E = !0 } = t, { zoom: N = 16 } = t, { flyTo: C = !0 } = t, { collapsed: L = !1 } = t, { clearOnBlur: w = !1 } = t, { enableReverse: D = !1 } = t, { reverseButtonTitle: T = "toggle reverse geocoding" } = t, { clearButtonTitle: F = "clear" } = t, { filter: j = () => !0 } = t, { searchValue: k = "" } = t, { reverseActive: O = D === "always" } = t, { showPlaceType: Y = !1 } = t, { showFullGeometry: P = !0 } = t, { limit: X = void 0 } = t, { fuzzyMatch: ut = !0 } = t, { country: yt = void 0 } = t, { types: Xt = void 0 } = t;
|
|
676
676
|
function we() {
|
|
677
677
|
An.focus();
|
|
@@ -680,54 +680,56 @@ function Bl(r, t, e) {
|
|
|
680
680
|
An.blur();
|
|
681
681
|
}
|
|
682
682
|
function Ze(x, Ft = !0) {
|
|
683
|
-
e(0, k = x), Ft ? (e(13, At = -1),
|
|
683
|
+
e(0, k = x), Ft ? (e(13, At = -1), Js()) : (ss(), setTimeout(() => {
|
|
684
684
|
An.focus(), An.select();
|
|
685
685
|
}));
|
|
686
686
|
}
|
|
687
|
-
let Le = !1, J, Mt, it,
|
|
688
|
-
const gr =
|
|
689
|
-
|
|
687
|
+
let Le = !1, J, Mt, it, Qs = "", An, At = -1, hr, _o = [], Ar, oi, Eo;
|
|
688
|
+
const gr = yl();
|
|
689
|
+
vl(() => {
|
|
690
690
|
a && (a.setEventHandler(void 0), a.indicateReverse(!1), a.setSelectedMarker(-1), a.setMarkers(void 0, void 0));
|
|
691
691
|
});
|
|
692
|
-
function
|
|
692
|
+
function Js(x) {
|
|
693
693
|
if (oi && (clearTimeout(oi), oi = void 0), At > -1 && J)
|
|
694
694
|
e(44, it = J[At]), e(0, k = it.place_name.replace(/,.*/, "")), e(16, hr = void 0), e(43, Mt = void 0), e(13, At = -1);
|
|
695
695
|
else if (k) {
|
|
696
|
-
const Ft = x || !
|
|
696
|
+
const Ft = x || !Zs();
|
|
697
697
|
os(k, { exact: !0 }).then(() => {
|
|
698
|
-
e(43, Mt = J), e(44, it = void 0), Ft &&
|
|
698
|
+
e(43, Mt = J), e(44, it = void 0), Ft && Yu();
|
|
699
699
|
}).catch((Fn) => e(16, hr = Fn));
|
|
700
700
|
}
|
|
701
701
|
}
|
|
702
|
-
function
|
|
702
|
+
function Zs() {
|
|
703
703
|
return /^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(k);
|
|
704
704
|
}
|
|
705
705
|
async function os(x, { byId: Ft = !1, exact: Fn = !1 } = {}) {
|
|
706
706
|
e(16, hr = void 0);
|
|
707
|
-
const zi =
|
|
708
|
-
m && Ge.set("language", Array.isArray(m) ? m.join(",") : m), Xt && Ge.set("types", Xt.join(",")), zi || (p && Ge.set("bbox", p.map((Br) => Br.toFixed(6)).join(",")), yt && Ge.set("country", Array.isArray(yt) ? yt.join(",") : yt)), Ft || (g && Ge.set("proximity", g.map((Br) => Br.toFixed(6)).join(",")), (Fn || !E) && Ge.set("autocomplete", "false"), Ge.set("fuzzyMatch", String(ut))), X !== void 0 && Ge.set("limit", String(X)), Ge.set("key", u);
|
|
707
|
+
const zi = Zs(), Ge = new URLSearchParams();
|
|
708
|
+
m != null && Ge.set("language", Array.isArray(m) ? m.join(",") : m), Xt && Ge.set("types", Xt.join(",")), zi || (p && Ge.set("bbox", p.map((Br) => Br.toFixed(6)).join(",")), yt && Ge.set("country", Array.isArray(yt) ? yt.join(",") : yt)), Ft || (g && Ge.set("proximity", g.map((Br) => Br.toFixed(6)).join(",")), (Fn || !E) && Ge.set("autocomplete", "false"), Ge.set("fuzzyMatch", String(ut))), X !== void 0 && Ge.set("limit", String(X)), Ge.set("key", u);
|
|
709
709
|
const Fr = "https://api.maptiler.com/geocoding/" + encodeURIComponent(x) + ".json?" + Ge.toString();
|
|
710
|
-
if (Fr ===
|
|
710
|
+
if (Fr === Qs) {
|
|
711
711
|
Ft ? (e(12, J = void 0), e(44, it = _o[0])) : e(12, J = _o);
|
|
712
712
|
return;
|
|
713
713
|
}
|
|
714
|
-
|
|
715
|
-
|
|
714
|
+
Qs = Fr, Ar == null || Ar.abort();
|
|
715
|
+
const ve = new AbortController();
|
|
716
|
+
e(17, Ar = ve);
|
|
717
|
+
let us;
|
|
716
718
|
try {
|
|
717
|
-
|
|
718
|
-
e(17, Ar = void 0);
|
|
719
|
+
console.log("fetch"), us = await fetch(Fr, { signal: ve.signal }).finally(() => {
|
|
720
|
+
ve === Ar && e(17, Ar = void 0);
|
|
719
721
|
});
|
|
720
722
|
} catch (Br) {
|
|
721
723
|
if (Br && typeof Br == "object" && Br.name === "AbortError")
|
|
722
724
|
return;
|
|
723
725
|
throw new Error();
|
|
724
726
|
}
|
|
725
|
-
if (!
|
|
727
|
+
if (!us.ok)
|
|
726
728
|
throw new Error();
|
|
727
|
-
const
|
|
728
|
-
gr("response", { url: Fr, featureCollection:
|
|
729
|
+
const ls = await us.json();
|
|
730
|
+
gr("response", { url: Fr, featureCollection: ls }), Ft ? (e(12, J = void 0), e(44, it = ls.features[0]), _o = [it]) : (e(12, J = ls.features.filter(j)), _o = J, zi && An.focus());
|
|
729
731
|
}
|
|
730
|
-
function
|
|
732
|
+
function Yu() {
|
|
731
733
|
var Fn, zi, Ge, Fr;
|
|
732
734
|
if (!(Mt != null && Mt.length) || !C)
|
|
733
735
|
return;
|
|
@@ -736,10 +738,10 @@ function Bl(r, t, e) {
|
|
|
736
738
|
(Ft || !ve.matching_text) && (x[0] = Math.min(x[0], ((Fn = ve.bbox) == null ? void 0 : Fn[0]) ?? ve.center[0]), x[1] = Math.min(x[1], ((zi = ve.bbox) == null ? void 0 : zi[1]) ?? ve.center[1]), x[2] = Math.max(x[2], ((Ge = ve.bbox) == null ? void 0 : Ge[2]) ?? ve.center[0]), x[3] = Math.max(x[3], ((Fr = ve.bbox) == null ? void 0 : Fr[3]) ?? ve.center[1]));
|
|
737
739
|
a && Mt.length > 0 && (it && x[0] === x[2] && x[1] === x[3] ? a.flyTo(it.center, N) : a.fitBounds(x, 50));
|
|
738
740
|
}
|
|
739
|
-
function Yu(x) {
|
|
740
|
-
e(1, O = D === "always"), Ze(Fl(x[0], [-180, 180], !0).toFixed(6) + "," + x[1].toFixed(6));
|
|
741
|
-
}
|
|
742
741
|
function Hu(x) {
|
|
742
|
+
e(1, O = D === "always"), Ze(Bl(x[0], [-180, 180], !0).toFixed(6) + "," + x[1].toFixed(6));
|
|
743
|
+
}
|
|
744
|
+
function Wu(x) {
|
|
743
745
|
if (!J)
|
|
744
746
|
return;
|
|
745
747
|
let Ft = x.key === "ArrowDown" ? 1 : x.key === "ArrowUp" ? -1 : 0;
|
|
@@ -761,18 +763,18 @@ function Bl(r, t, e) {
|
|
|
761
763
|
function as(x) {
|
|
762
764
|
e(44, it = x), e(0, k = x.place_name), e(13, At = -1);
|
|
763
765
|
}
|
|
764
|
-
const
|
|
765
|
-
function
|
|
766
|
-
|
|
766
|
+
const ju = () => An.focus();
|
|
767
|
+
function Ku(x) {
|
|
768
|
+
vs[x ? "unshift" : "push"](() => {
|
|
767
769
|
An = x, e(15, An);
|
|
768
770
|
});
|
|
769
771
|
}
|
|
770
|
-
function
|
|
772
|
+
function Qu() {
|
|
771
773
|
k = this.value, e(0, k), e(11, Le), e(33, w);
|
|
772
774
|
}
|
|
773
|
-
const
|
|
775
|
+
const Ju = () => e(11, Le = !0), Zu = () => e(11, Le = !1), $u = () => ss(), tl = () => {
|
|
774
776
|
e(0, k = ""), An.focus();
|
|
775
|
-
},
|
|
777
|
+
}, el = () => e(1, O = !O), nl = (x) => e(13, At = x), rl = (x) => as(x), il = () => e(13, At = -1), ol = () => {
|
|
776
778
|
};
|
|
777
779
|
return r.$$set = (x) => {
|
|
778
780
|
"class" in x && e(2, s = x.class), "mapController" in x && e(23, a = x.mapController), "apiKey" in x && e(24, u = x.apiKey), "debounceSearch" in x && e(25, l = x.debounceSearch), "placeholder" in x && e(3, c = x.placeholder), "errorMessage" in x && e(4, f = x.errorMessage), "noResultsMessage" in x && e(5, h = x.noResultsMessage), "proximity" in x && e(22, g = x.proximity), "bbox" in x && e(26, p = x.bbox), "trackProximity" in x && e(27, v = x.trackProximity), "minLength" in x && e(28, y = x.minLength), "language" in x && e(29, m = x.language), "showResultsWhileTyping" in x && e(30, E = x.showResultsWhileTyping), "zoom" in x && e(31, N = x.zoom), "flyTo" in x && e(32, C = x.flyTo), "collapsed" in x && e(6, L = x.collapsed), "clearOnBlur" in x && e(33, w = x.clearOnBlur), "enableReverse" in x && e(7, D = x.enableReverse), "reverseButtonTitle" in x && e(8, T = x.reverseButtonTitle), "clearButtonTitle" in x && e(9, F = x.clearButtonTitle), "filter" in x && e(34, j = x.filter), "searchValue" in x && e(0, k = x.searchValue), "reverseActive" in x && e(1, O = x.reverseActive), "showPlaceType" in x && e(10, Y = x.showPlaceType), "showFullGeometry" in x && e(35, P = x.showFullGeometry), "limit" in x && e(36, X = x.limit), "fuzzyMatch" in x && e(37, ut = x.fuzzyMatch), "country" in x && e(38, yt = x.country), "types" in x && e(39, Xt = x.types), "$$scope" in x && e(46, o = x.$$scope);
|
|
@@ -782,7 +784,7 @@ function Bl(r, t, e) {
|
|
|
782
784
|
}), r.$$.dirty[0] & 4097 && (k || (e(44, it = void 0), e(12, J = void 0), e(16, hr = void 0), e(43, Mt = J))), r.$$.dirty[1] & 8208 && P && it && !it.address && it.geometry.type === "Point" && os(it.id, { byId: !0 }).catch((x) => e(16, hr = x)), r.$$.dirty[0] & 8388608 | r.$$.dirty[1] & 8195 && a && it && C && (!it.bbox || it.bbox[0] === it.bbox[2] && it.bbox[1] === it.bbox[3] ? a.flyTo(it.center, N) : a.fitBounds(it.bbox, 50), e(12, J = void 0), e(43, Mt = void 0), e(13, At = -1)), r.$$.dirty[0] & 4096 | r.$$.dirty[1] & 4096 && Mt !== J && e(43, Mt = void 0), r.$$.dirty[0] & 8388608 | r.$$.dirty[1] & 12288 && a && a.setMarkers(Mt, it), r.$$.dirty[0] & 1 && e(13, At = -1), r.$$.dirty[0] & 142626818 && a && a.setEventHandler((x) => {
|
|
783
785
|
switch (x.type) {
|
|
784
786
|
case "mapClick":
|
|
785
|
-
O &&
|
|
787
|
+
O && Hu(x.coordinates);
|
|
786
788
|
break;
|
|
787
789
|
case "proximityChange":
|
|
788
790
|
e(22, g = v ? x.proximity : void 0);
|
|
@@ -824,8 +826,8 @@ function Bl(r, t, e) {
|
|
|
824
826
|
An,
|
|
825
827
|
hr,
|
|
826
828
|
Ar,
|
|
827
|
-
|
|
828
|
-
|
|
829
|
+
Js,
|
|
830
|
+
Wu,
|
|
829
831
|
ss,
|
|
830
832
|
as,
|
|
831
833
|
g,
|
|
@@ -854,7 +856,6 @@ function Bl(r, t, e) {
|
|
|
854
856
|
n,
|
|
855
857
|
o,
|
|
856
858
|
i,
|
|
857
|
-
Wu,
|
|
858
859
|
ju,
|
|
859
860
|
Ku,
|
|
860
861
|
Qu,
|
|
@@ -865,16 +866,17 @@ function Bl(r, t, e) {
|
|
|
865
866
|
el,
|
|
866
867
|
nl,
|
|
867
868
|
rl,
|
|
868
|
-
il
|
|
869
|
+
il,
|
|
870
|
+
ol
|
|
869
871
|
];
|
|
870
872
|
}
|
|
871
|
-
let
|
|
873
|
+
let kl = class extends Mi {
|
|
872
874
|
constructor(t) {
|
|
873
875
|
super(), Ti(
|
|
874
876
|
this,
|
|
875
877
|
t,
|
|
876
|
-
|
|
877
|
-
|
|
878
|
+
Gl,
|
|
879
|
+
Fl,
|
|
878
880
|
Di,
|
|
879
881
|
{
|
|
880
882
|
class: 2,
|
|
@@ -924,7 +926,7 @@ let Gl = class extends Mi {
|
|
|
924
926
|
return this.$$.ctx[42];
|
|
925
927
|
}
|
|
926
928
|
};
|
|
927
|
-
function
|
|
929
|
+
function zl(r, t) {
|
|
928
930
|
var e = { label: 0, sent: function() {
|
|
929
931
|
if (o[0] & 1)
|
|
930
932
|
throw o[1];
|
|
@@ -995,7 +997,7 @@ var Ir = function() {
|
|
|
995
997
|
}
|
|
996
998
|
return r;
|
|
997
999
|
}();
|
|
998
|
-
function
|
|
1000
|
+
function Vl(r, t) {
|
|
999
1001
|
return r > t ? 1 : r < t ? -1 : 0;
|
|
1000
1002
|
}
|
|
1001
1003
|
function vr(r, t, e) {
|
|
@@ -1024,7 +1026,7 @@ function vr(r, t, e) {
|
|
|
1024
1026
|
}
|
|
1025
1027
|
return i.right = t.left, o.left = t.right, t.left = n.right, t.right = n.left, t;
|
|
1026
1028
|
}
|
|
1027
|
-
function
|
|
1029
|
+
function hs(r, t, e, n) {
|
|
1028
1030
|
var i = new Ir(r, t);
|
|
1029
1031
|
if (e === null)
|
|
1030
1032
|
return i.left = i.right = null, i;
|
|
@@ -1032,7 +1034,7 @@ function fs(r, t, e, n) {
|
|
|
1032
1034
|
var o = n(r, e.key);
|
|
1033
1035
|
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;
|
|
1034
1036
|
}
|
|
1035
|
-
function
|
|
1037
|
+
function la(r, t, e) {
|
|
1036
1038
|
var n = null, i = null;
|
|
1037
1039
|
if (t) {
|
|
1038
1040
|
t = vr(r, t, e);
|
|
@@ -1041,23 +1043,23 @@ function ua(r, t, e) {
|
|
|
1041
1043
|
}
|
|
1042
1044
|
return { left: n, right: i };
|
|
1043
1045
|
}
|
|
1044
|
-
function
|
|
1046
|
+
function Ul(r, t, e) {
|
|
1045
1047
|
return t === null ? r : (r === null || (t = vr(r.key, t, e), t.left = r), t);
|
|
1046
1048
|
}
|
|
1047
|
-
function
|
|
1049
|
+
function _s(r, t, e, n, i) {
|
|
1048
1050
|
if (r) {
|
|
1049
1051
|
n("" + t + (e ? "└── " : "├── ") + i(r) + `
|
|
1050
1052
|
`);
|
|
1051
1053
|
var o = t + (e ? " " : "│ ");
|
|
1052
|
-
r.left &&
|
|
1054
|
+
r.left && _s(r.left, o, !1, n, i), r.right && _s(r.right, o, !0, n, i);
|
|
1053
1055
|
}
|
|
1054
1056
|
}
|
|
1055
|
-
var
|
|
1057
|
+
var Ts = function() {
|
|
1056
1058
|
function r(t) {
|
|
1057
|
-
t === void 0 && (t =
|
|
1059
|
+
t === void 0 && (t = Vl), this._root = null, this._size = 0, this._comparator = t;
|
|
1058
1060
|
}
|
|
1059
1061
|
return r.prototype.insert = function(t, e) {
|
|
1060
|
-
return this._size++, this._root =
|
|
1062
|
+
return this._size++, this._root = hs(t, e, this._root, this._comparator);
|
|
1061
1063
|
}, r.prototype.add = function(t, e) {
|
|
1062
1064
|
var n = new Ir(t, e);
|
|
1063
1065
|
this._root === null && (n.left = n.right = null, this._size++, this._root = n);
|
|
@@ -1182,15 +1184,15 @@ var Ds = function() {
|
|
|
1182
1184
|
}, r.prototype.clear = function() {
|
|
1183
1185
|
return this._root = null, this._size = 0, this;
|
|
1184
1186
|
}, r.prototype.toList = function() {
|
|
1185
|
-
return
|
|
1187
|
+
return Xl(this._root);
|
|
1186
1188
|
}, r.prototype.load = function(t, e, n) {
|
|
1187
1189
|
e === void 0 && (e = []), n === void 0 && (n = !1);
|
|
1188
1190
|
var i = t.length, o = this._comparator;
|
|
1189
|
-
if (n &&
|
|
1190
|
-
this._root =
|
|
1191
|
+
if (n && Cs(t, e, 0, i - 1, o), this._root === null)
|
|
1192
|
+
this._root = Es(t, e, 0, i), this._size = i;
|
|
1191
1193
|
else {
|
|
1192
|
-
var s =
|
|
1193
|
-
i = this._size + i, this._root =
|
|
1194
|
+
var s = Yl(this.toList(), ql(t, e), o);
|
|
1195
|
+
i = this._size + i, this._root = Is({ head: s }, 0, i);
|
|
1194
1196
|
}
|
|
1195
1197
|
return this;
|
|
1196
1198
|
}, r.prototype.isEmpty = function() {
|
|
@@ -1212,17 +1214,17 @@ var Ds = function() {
|
|
|
1212
1214
|
return String(n.key);
|
|
1213
1215
|
});
|
|
1214
1216
|
var e = [];
|
|
1215
|
-
return
|
|
1217
|
+
return _s(this._root, "", !0, function(n) {
|
|
1216
1218
|
return e.push(n);
|
|
1217
1219
|
}, t), e.join("");
|
|
1218
1220
|
}, r.prototype.update = function(t, e, n) {
|
|
1219
|
-
var i = this._comparator, o =
|
|
1220
|
-
i(t, e) < 0 ? a =
|
|
1221
|
+
var i = this._comparator, o = la(t, this._root, i), s = o.left, a = o.right;
|
|
1222
|
+
i(t, e) < 0 ? a = hs(e, n, a, i) : s = hs(e, n, s, i), this._root = Ul(s, a, i);
|
|
1221
1223
|
}, r.prototype.split = function(t) {
|
|
1222
|
-
return
|
|
1224
|
+
return la(t, this._root, this._comparator);
|
|
1223
1225
|
}, r.prototype[Symbol.iterator] = function() {
|
|
1224
1226
|
var t;
|
|
1225
|
-
return
|
|
1227
|
+
return zl(this, function(e) {
|
|
1226
1228
|
switch (e.label) {
|
|
1227
1229
|
case 0:
|
|
1228
1230
|
t = this.minNode(), e.label = 1;
|
|
@@ -1236,38 +1238,38 @@ var Ds = function() {
|
|
|
1236
1238
|
});
|
|
1237
1239
|
}, r;
|
|
1238
1240
|
}();
|
|
1239
|
-
function
|
|
1241
|
+
function Es(r, t, e, n) {
|
|
1240
1242
|
var i = n - e;
|
|
1241
1243
|
if (i > 0) {
|
|
1242
1244
|
var o = e + Math.floor(i / 2), s = r[o], a = t[o], u = new Ir(s, a);
|
|
1243
|
-
return u.left =
|
|
1245
|
+
return u.left = Es(r, t, e, o), u.right = Es(r, t, o + 1, n), u;
|
|
1244
1246
|
}
|
|
1245
1247
|
return null;
|
|
1246
1248
|
}
|
|
1247
|
-
function
|
|
1249
|
+
function ql(r, t) {
|
|
1248
1250
|
for (var e = new Ir(null, null), n = e, i = 0; i < r.length; i++)
|
|
1249
1251
|
n = n.next = new Ir(r[i], t[i]);
|
|
1250
1252
|
return n.next = null, e.next;
|
|
1251
1253
|
}
|
|
1252
|
-
function
|
|
1254
|
+
function Xl(r) {
|
|
1253
1255
|
for (var t = r, e = [], n = !1, i = new Ir(null, null), o = i; !n; )
|
|
1254
1256
|
t ? (e.push(t), t = t.left) : e.length > 0 ? (t = o = o.next = e.pop(), t = t.right) : n = !0;
|
|
1255
1257
|
return o.next = null, i.next;
|
|
1256
1258
|
}
|
|
1257
|
-
function
|
|
1259
|
+
function Is(r, t, e) {
|
|
1258
1260
|
var n = e - t;
|
|
1259
1261
|
if (n > 0) {
|
|
1260
|
-
var i = t + Math.floor(n / 2), o =
|
|
1261
|
-
return s.left = o, r.head = r.head.next, s.right =
|
|
1262
|
+
var i = t + Math.floor(n / 2), o = Is(r, t, i), s = r.head;
|
|
1263
|
+
return s.left = o, r.head = r.head.next, s.right = Is(r, i + 1, e), s;
|
|
1262
1264
|
}
|
|
1263
1265
|
return null;
|
|
1264
1266
|
}
|
|
1265
|
-
function
|
|
1267
|
+
function Yl(r, t, e) {
|
|
1266
1268
|
for (var n = new Ir(null, null), i = n, o = r, s = t; o !== null && s !== null; )
|
|
1267
1269
|
e(o.key, s.key) < 0 ? (i.next = o, o = o.next) : (i.next = s, s = s.next), i = i.next;
|
|
1268
1270
|
return o !== null ? i.next = o : s !== null && (i.next = s), n.next;
|
|
1269
1271
|
}
|
|
1270
|
-
function
|
|
1272
|
+
function Cs(r, t, e, n, i) {
|
|
1271
1273
|
if (!(e >= n)) {
|
|
1272
1274
|
for (var o = r[e + n >> 1], s = e - 1, a = n + 1; ; ) {
|
|
1273
1275
|
do
|
|
@@ -1281,25 +1283,25 @@ function Is(r, t, e, n, i) {
|
|
|
1281
1283
|
var u = r[s];
|
|
1282
1284
|
r[s] = r[a], r[a] = u, u = t[s], t[s] = t[a], t[a] = u;
|
|
1283
1285
|
}
|
|
1284
|
-
|
|
1286
|
+
Cs(r, t, e, a, i), Cs(r, t, a + 1, n, i);
|
|
1285
1287
|
}
|
|
1286
1288
|
}
|
|
1287
1289
|
function yn(r, t) {
|
|
1288
1290
|
if (!(r instanceof t))
|
|
1289
1291
|
throw new TypeError("Cannot call a class as a function");
|
|
1290
1292
|
}
|
|
1291
|
-
function
|
|
1293
|
+
function ca(r, t) {
|
|
1292
1294
|
for (var e = 0; e < t.length; e++) {
|
|
1293
1295
|
var n = t[e];
|
|
1294
1296
|
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n);
|
|
1295
1297
|
}
|
|
1296
1298
|
}
|
|
1297
1299
|
function Ee(r, t, e) {
|
|
1298
|
-
return t &&
|
|
1300
|
+
return t && ca(r.prototype, t), e && ca(r, e), r;
|
|
1299
1301
|
}
|
|
1300
1302
|
var Vi = function(t, e) {
|
|
1301
1303
|
return t.ll.x <= e.x && e.x <= t.ur.x && t.ll.y <= e.y && e.y <= t.ur.y;
|
|
1302
|
-
},
|
|
1304
|
+
}, Ns = function(t, e) {
|
|
1303
1305
|
if (e.ur.x < t.ll.x || t.ur.x < e.ll.x || e.ur.y < t.ll.y || t.ur.y < e.ll.y)
|
|
1304
1306
|
return null;
|
|
1305
1307
|
var n = t.ll.x < e.ll.x ? e.ll.x : t.ll.x, i = t.ur.x < e.ur.x ? t.ur.x : e.ur.x, o = t.ll.y < e.ll.y ? e.ll.y : t.ll.y, s = t.ur.y < e.ur.y ? t.ur.y : e.ur.y;
|
|
@@ -1315,19 +1317,19 @@ var Vi = function(t, e) {
|
|
|
1315
1317
|
};
|
|
1316
1318
|
}, yr = Number.EPSILON;
|
|
1317
1319
|
yr === void 0 && (yr = Math.pow(2, -52));
|
|
1318
|
-
var
|
|
1320
|
+
var Hl = yr * yr, xs = function(t, e) {
|
|
1319
1321
|
if (-yr < t && t < yr && -yr < e && e < yr)
|
|
1320
1322
|
return 0;
|
|
1321
1323
|
var n = t - e;
|
|
1322
|
-
return n * n <
|
|
1323
|
-
},
|
|
1324
|
+
return n * n < Hl * t * e ? 0 : t < e ? -1 : 1;
|
|
1325
|
+
}, Wl = /* @__PURE__ */ function() {
|
|
1324
1326
|
function r() {
|
|
1325
1327
|
yn(this, r), this.reset();
|
|
1326
1328
|
}
|
|
1327
1329
|
return Ee(r, [{
|
|
1328
1330
|
key: "reset",
|
|
1329
1331
|
value: function() {
|
|
1330
|
-
this.xRounder = new
|
|
1332
|
+
this.xRounder = new fa(), this.yRounder = new fa();
|
|
1331
1333
|
}
|
|
1332
1334
|
}, {
|
|
1333
1335
|
key: "round",
|
|
@@ -1338,25 +1340,25 @@ var Yl = yr * yr, Ns = function(t, e) {
|
|
|
1338
1340
|
};
|
|
1339
1341
|
}
|
|
1340
1342
|
}]), r;
|
|
1341
|
-
}(),
|
|
1343
|
+
}(), fa = /* @__PURE__ */ function() {
|
|
1342
1344
|
function r() {
|
|
1343
|
-
yn(this, r), this.tree = new
|
|
1345
|
+
yn(this, r), this.tree = new Ts(), this.round(0);
|
|
1344
1346
|
}
|
|
1345
1347
|
return Ee(r, [{
|
|
1346
1348
|
key: "round",
|
|
1347
1349
|
value: function(e) {
|
|
1348
1350
|
var n = this.tree.add(e), i = this.tree.prev(n);
|
|
1349
|
-
if (i !== null &&
|
|
1351
|
+
if (i !== null && xs(n.key, i.key) === 0)
|
|
1350
1352
|
return this.tree.remove(e), i.key;
|
|
1351
1353
|
var o = this.tree.next(n);
|
|
1352
|
-
return o !== null &&
|
|
1354
|
+
return o !== null && xs(n.key, o.key) === 0 ? (this.tree.remove(e), o.key) : e;
|
|
1353
1355
|
}
|
|
1354
1356
|
}]), r;
|
|
1355
|
-
}(), Qi = new
|
|
1357
|
+
}(), Qi = new Wl(), Hi = function(t, e) {
|
|
1356
1358
|
return t.x * e.y - t.y * e.x;
|
|
1357
|
-
},
|
|
1359
|
+
}, Qa = function(t, e) {
|
|
1358
1360
|
return t.x * e.x + t.y * e.y;
|
|
1359
|
-
},
|
|
1361
|
+
}, ha = function(t, e, n) {
|
|
1360
1362
|
var i = {
|
|
1361
1363
|
x: e.x - t.x,
|
|
1362
1364
|
y: e.y - t.y
|
|
@@ -1364,10 +1366,10 @@ var Yl = yr * yr, Ns = function(t, e) {
|
|
|
1364
1366
|
x: n.x - t.x,
|
|
1365
1367
|
y: n.y - t.y
|
|
1366
1368
|
}, s = Hi(i, o);
|
|
1367
|
-
return
|
|
1369
|
+
return xs(s, 0);
|
|
1368
1370
|
}, To = function(t) {
|
|
1369
|
-
return Math.sqrt(
|
|
1370
|
-
},
|
|
1371
|
+
return Math.sqrt(Qa(t, t));
|
|
1372
|
+
}, jl = function(t, e, n) {
|
|
1371
1373
|
var i = {
|
|
1372
1374
|
x: e.x - t.x,
|
|
1373
1375
|
y: e.y - t.y
|
|
@@ -1376,7 +1378,7 @@ var Yl = yr * yr, Ns = function(t, e) {
|
|
|
1376
1378
|
y: n.y - t.y
|
|
1377
1379
|
};
|
|
1378
1380
|
return Hi(o, i) / To(o) / To(i);
|
|
1379
|
-
},
|
|
1381
|
+
}, Kl = function(t, e, n) {
|
|
1380
1382
|
var i = {
|
|
1381
1383
|
x: e.x - t.x,
|
|
1382
1384
|
y: e.y - t.y
|
|
@@ -1384,26 +1386,26 @@ var Yl = yr * yr, Ns = function(t, e) {
|
|
|
1384
1386
|
x: n.x - t.x,
|
|
1385
1387
|
y: n.y - t.y
|
|
1386
1388
|
};
|
|
1387
|
-
return
|
|
1388
|
-
},
|
|
1389
|
+
return Qa(o, i) / To(o) / To(i);
|
|
1390
|
+
}, ga = function(t, e, n) {
|
|
1389
1391
|
return e.y === 0 ? null : {
|
|
1390
1392
|
x: t.x + e.x / e.y * (n - t.y),
|
|
1391
1393
|
y: n
|
|
1392
1394
|
};
|
|
1393
|
-
},
|
|
1395
|
+
}, pa = function(t, e, n) {
|
|
1394
1396
|
return e.x === 0 ? null : {
|
|
1395
1397
|
x: n,
|
|
1396
1398
|
y: t.y + e.y / e.x * (n - t.x)
|
|
1397
1399
|
};
|
|
1398
|
-
},
|
|
1400
|
+
}, Ql = function(t, e, n, i) {
|
|
1399
1401
|
if (e.x === 0)
|
|
1400
|
-
return
|
|
1402
|
+
return pa(n, i, t.x);
|
|
1401
1403
|
if (i.x === 0)
|
|
1402
|
-
return
|
|
1404
|
+
return pa(t, e, n.x);
|
|
1403
1405
|
if (e.y === 0)
|
|
1404
|
-
return
|
|
1406
|
+
return ga(n, i, t.y);
|
|
1405
1407
|
if (i.y === 0)
|
|
1406
|
-
return
|
|
1408
|
+
return ga(t, e, n.y);
|
|
1407
1409
|
var o = Hi(e, i);
|
|
1408
1410
|
if (o == 0)
|
|
1409
1411
|
return null;
|
|
@@ -1469,8 +1471,8 @@ var Yl = yr * yr, Ns = function(t, e) {
|
|
|
1469
1471
|
var n = this, i = /* @__PURE__ */ new Map(), o = function(a) {
|
|
1470
1472
|
var u = a.otherSE;
|
|
1471
1473
|
i.set(a, {
|
|
1472
|
-
sine:
|
|
1473
|
-
cosine:
|
|
1474
|
+
sine: jl(n.point, e.point, u.point),
|
|
1475
|
+
cosine: Kl(n.point, e.point, u.point)
|
|
1474
1476
|
});
|
|
1475
1477
|
};
|
|
1476
1478
|
return function(s, a) {
|
|
@@ -1480,7 +1482,7 @@ var Yl = yr * yr, Ns = function(t, e) {
|
|
|
1480
1482
|
};
|
|
1481
1483
|
}
|
|
1482
1484
|
}]), r;
|
|
1483
|
-
}(),
|
|
1485
|
+
}(), Jl = 0, Mo = /* @__PURE__ */ function() {
|
|
1484
1486
|
Ee(r, null, [{
|
|
1485
1487
|
key: "compare",
|
|
1486
1488
|
value: function(e, n) {
|
|
@@ -1541,7 +1543,7 @@ var Yl = yr * yr, Ns = function(t, e) {
|
|
|
1541
1543
|
}
|
|
1542
1544
|
}]);
|
|
1543
1545
|
function r(t, e, n, i) {
|
|
1544
|
-
yn(this, r), this.id = ++
|
|
1546
|
+
yn(this, r), this.id = ++Jl, this.leftSE = t, t.segment = this, t.otherSE = e, this.rightSE = e, e.segment = this, e.otherSE = t, this.rings = n, this.windings = i;
|
|
1545
1547
|
}
|
|
1546
1548
|
return Ee(r, [{
|
|
1547
1549
|
key: "replaceRightSE",
|
|
@@ -1593,7 +1595,7 @@ var Yl = yr * yr, Ns = function(t, e) {
|
|
|
1593
1595
|
}, {
|
|
1594
1596
|
key: "getIntersection",
|
|
1595
1597
|
value: function(e) {
|
|
1596
|
-
var n = this.bbox(), i = e.bbox(), o =
|
|
1598
|
+
var n = this.bbox(), i = e.bbox(), o = Ns(n, i);
|
|
1597
1599
|
if (o === null)
|
|
1598
1600
|
return null;
|
|
1599
1601
|
var s = this.leftSE.point, a = this.rightSE.point, u = e.leftSE.point, l = e.rightSE.point, c = Vi(n, u) && this.comparePoint(u) === 0, f = Vi(i, s) && e.comparePoint(s) === 0, h = Vi(n, l) && this.comparePoint(l) === 0, g = Vi(i, a) && e.comparePoint(a) === 0;
|
|
@@ -1609,7 +1611,7 @@ var Yl = yr * yr, Ns = function(t, e) {
|
|
|
1609
1611
|
return a;
|
|
1610
1612
|
if (h)
|
|
1611
1613
|
return l;
|
|
1612
|
-
var p =
|
|
1614
|
+
var p = Ql(s, this.vector(), u, e.vector());
|
|
1613
1615
|
return p === null || !Vi(o, p) ? null : Qi.round(p.x, p.y);
|
|
1614
1616
|
}
|
|
1615
1617
|
}, {
|
|
@@ -1757,7 +1759,7 @@ var Yl = yr * yr, Ns = function(t, e) {
|
|
|
1757
1759
|
return new r(l, c, [i], [a]);
|
|
1758
1760
|
}
|
|
1759
1761
|
}]), r;
|
|
1760
|
-
}(),
|
|
1762
|
+
}(), da = /* @__PURE__ */ function() {
|
|
1761
1763
|
function r(t, e, n) {
|
|
1762
1764
|
if (yn(this, r), !Array.isArray(t) || t.length === 0)
|
|
1763
1765
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
@@ -1792,11 +1794,11 @@ var Yl = yr * yr, Ns = function(t, e) {
|
|
|
1792
1794
|
return e;
|
|
1793
1795
|
}
|
|
1794
1796
|
}]), r;
|
|
1795
|
-
}(),
|
|
1797
|
+
}(), Zl = /* @__PURE__ */ function() {
|
|
1796
1798
|
function r(t, e) {
|
|
1797
1799
|
if (yn(this, r), !Array.isArray(t))
|
|
1798
1800
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
1799
|
-
this.exteriorRing = new
|
|
1801
|
+
this.exteriorRing = new da(t[0], this, !0), this.bbox = {
|
|
1800
1802
|
ll: {
|
|
1801
1803
|
x: this.exteriorRing.bbox.ll.x,
|
|
1802
1804
|
y: this.exteriorRing.bbox.ll.y
|
|
@@ -1807,7 +1809,7 @@ var Yl = yr * yr, Ns = function(t, e) {
|
|
|
1807
1809
|
}
|
|
1808
1810
|
}, this.interiorRings = [];
|
|
1809
1811
|
for (var n = 1, i = t.length; n < i; n++) {
|
|
1810
|
-
var o = new
|
|
1812
|
+
var o = new da(t[n], this, !1);
|
|
1811
1813
|
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);
|
|
1812
1814
|
}
|
|
1813
1815
|
this.multiPoly = e;
|
|
@@ -1821,7 +1823,7 @@ var Yl = yr * yr, Ns = function(t, e) {
|
|
|
1821
1823
|
return e;
|
|
1822
1824
|
}
|
|
1823
1825
|
}]), r;
|
|
1824
|
-
}(),
|
|
1826
|
+
}(), va = /* @__PURE__ */ function() {
|
|
1825
1827
|
function r(t, e) {
|
|
1826
1828
|
if (yn(this, r), !Array.isArray(t))
|
|
1827
1829
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
@@ -1840,7 +1842,7 @@ var Yl = yr * yr, Ns = function(t, e) {
|
|
|
1840
1842
|
}
|
|
1841
1843
|
};
|
|
1842
1844
|
for (var n = 0, i = t.length; n < i; n++) {
|
|
1843
|
-
var o = new
|
|
1845
|
+
var o = new Zl(t[n], this);
|
|
1844
1846
|
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);
|
|
1845
1847
|
}
|
|
1846
1848
|
this.isSubject = e;
|
|
@@ -1854,7 +1856,7 @@ var Yl = yr * yr, Ns = function(t, e) {
|
|
|
1854
1856
|
return e;
|
|
1855
1857
|
}
|
|
1856
1858
|
}]), r;
|
|
1857
|
-
}(),
|
|
1859
|
+
}(), $l = /* @__PURE__ */ function() {
|
|
1858
1860
|
Ee(r, null, [{
|
|
1859
1861
|
key: "factory",
|
|
1860
1862
|
value: function(e) {
|
|
@@ -1907,12 +1909,12 @@ var Yl = yr * yr, Ns = function(t, e) {
|
|
|
1907
1909
|
value: function() {
|
|
1908
1910
|
for (var e = this.events[0].point, n = [e], i = 1, o = this.events.length - 1; i < o; i++) {
|
|
1909
1911
|
var s = this.events[i].point, a = this.events[i + 1].point;
|
|
1910
|
-
|
|
1912
|
+
ha(s, e, a) !== 0 && (n.push(s), e = s);
|
|
1911
1913
|
}
|
|
1912
1914
|
if (n.length === 1)
|
|
1913
1915
|
return null;
|
|
1914
1916
|
var u = n[0], l = n[1];
|
|
1915
|
-
|
|
1917
|
+
ha(u, e, l) === 0 && n.shift(), n.push(n[0]);
|
|
1916
1918
|
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)
|
|
1917
1919
|
g.push([n[p].x, n[p].y]);
|
|
1918
1920
|
return g;
|
|
@@ -1949,7 +1951,7 @@ var Yl = yr * yr, Ns = function(t, e) {
|
|
|
1949
1951
|
}
|
|
1950
1952
|
}
|
|
1951
1953
|
}]), r;
|
|
1952
|
-
}(),
|
|
1954
|
+
}(), ya = /* @__PURE__ */ function() {
|
|
1953
1955
|
function r(t) {
|
|
1954
1956
|
yn(this, r), this.exteriorRing = t, t.poly = this, this.interiorRings = [];
|
|
1955
1957
|
}
|
|
@@ -1971,7 +1973,7 @@ var Yl = yr * yr, Ns = function(t, e) {
|
|
|
1971
1973
|
return e;
|
|
1972
1974
|
}
|
|
1973
1975
|
}]), r;
|
|
1974
|
-
}(),
|
|
1976
|
+
}(), tc = /* @__PURE__ */ function() {
|
|
1975
1977
|
function r(t) {
|
|
1976
1978
|
yn(this, r), this.rings = t, this.polys = this._composePolys(t);
|
|
1977
1979
|
}
|
|
@@ -1991,19 +1993,19 @@ var Yl = yr * yr, Ns = function(t, e) {
|
|
|
1991
1993
|
var s = e[i];
|
|
1992
1994
|
if (!s.poly)
|
|
1993
1995
|
if (s.isExteriorRing())
|
|
1994
|
-
n.push(new
|
|
1996
|
+
n.push(new ya(s));
|
|
1995
1997
|
else {
|
|
1996
1998
|
var a = s.enclosingRing();
|
|
1997
|
-
a.poly || n.push(new
|
|
1999
|
+
a.poly || n.push(new ya(a)), a.poly.addInterior(s);
|
|
1998
2000
|
}
|
|
1999
2001
|
}
|
|
2000
2002
|
return n;
|
|
2001
2003
|
}
|
|
2002
2004
|
}]), r;
|
|
2003
|
-
}(),
|
|
2005
|
+
}(), ec = /* @__PURE__ */ function() {
|
|
2004
2006
|
function r(t) {
|
|
2005
2007
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Mo.compare;
|
|
2006
|
-
yn(this, r), this.queue = t, this.tree = new
|
|
2008
|
+
yn(this, r), this.queue = t, this.tree = new Ts(e), this.segments = [];
|
|
2007
2009
|
}
|
|
2008
2010
|
return Ee(r, [{
|
|
2009
2011
|
key: "process",
|
|
@@ -2074,7 +2076,7 @@ var Yl = yr * yr, Ns = function(t, e) {
|
|
|
2074
2076
|
return o.push(i), e.consumedBy === void 0 && this.tree.insert(e), o;
|
|
2075
2077
|
}
|
|
2076
2078
|
}]), r;
|
|
2077
|
-
}(),
|
|
2079
|
+
}(), ma = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1e6, nc = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS || 1e6, rc = /* @__PURE__ */ function() {
|
|
2078
2080
|
function r() {
|
|
2079
2081
|
yn(this, r);
|
|
2080
2082
|
}
|
|
@@ -2082,30 +2084,30 @@ var Yl = yr * yr, Ns = function(t, e) {
|
|
|
2082
2084
|
key: "run",
|
|
2083
2085
|
value: function(e, n, i) {
|
|
2084
2086
|
Cn.type = e, Qi.reset();
|
|
2085
|
-
for (var o = [new
|
|
2086
|
-
o.push(new
|
|
2087
|
+
for (var o = [new va(n, !0)], s = 0, a = i.length; s < a; s++)
|
|
2088
|
+
o.push(new va(i[s], !1));
|
|
2087
2089
|
if (Cn.numMultiPolys = o.length, Cn.type === "difference")
|
|
2088
2090
|
for (var u = o[0], l = 1; l < o.length; )
|
|
2089
|
-
|
|
2091
|
+
Ns(o[l].bbox, u.bbox) !== null ? l++ : o.splice(l, 1);
|
|
2090
2092
|
if (Cn.type === "intersection") {
|
|
2091
2093
|
for (var c = 0, f = o.length; c < f; c++)
|
|
2092
2094
|
for (var h = o[c], g = c + 1, p = o.length; g < p; g++)
|
|
2093
|
-
if (
|
|
2095
|
+
if (Ns(h.bbox, o[g].bbox) === null)
|
|
2094
2096
|
return [];
|
|
2095
2097
|
}
|
|
2096
|
-
for (var v = new
|
|
2098
|
+
for (var v = new Ts(Vn.compare), y = 0, m = o.length; y < m; y++)
|
|
2097
2099
|
for (var E = o[y].getSweepEvents(), N = 0, C = E.length; N < C; N++)
|
|
2098
|
-
if (v.insert(E[N]), v.size >
|
|
2100
|
+
if (v.insert(E[N]), v.size > ma)
|
|
2099
2101
|
throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");
|
|
2100
|
-
for (var L = new
|
|
2102
|
+
for (var L = new ec(v), w = v.size, D = v.pop(); D; ) {
|
|
2101
2103
|
var T = D.key;
|
|
2102
2104
|
if (v.size === w) {
|
|
2103
2105
|
var F = T.segment;
|
|
2104
2106
|
throw new Error("Unable to pop() ".concat(T.isLeft ? "left" : "right", " SweepEvent ") + "[".concat(T.point.x, ", ").concat(T.point.y, "] from segment #").concat(F.id, " ") + "[".concat(F.leftSE.point.x, ", ").concat(F.leftSE.point.y, "] -> ") + "[".concat(F.rightSE.point.x, ", ").concat(F.rightSE.point.y, "] from queue. ") + "Please file a bug report.");
|
|
2105
2107
|
}
|
|
2106
|
-
if (v.size >
|
|
2108
|
+
if (v.size > ma)
|
|
2107
2109
|
throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big). Please file a bug report.");
|
|
2108
|
-
if (L.segments.length >
|
|
2110
|
+
if (L.segments.length > nc)
|
|
2109
2111
|
throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments). Please file a bug report.");
|
|
2110
2112
|
for (var j = L.process(T), k = 0, O = j.length; k < O; k++) {
|
|
2111
2113
|
var Y = j[k];
|
|
@@ -2114,32 +2116,32 @@ var Yl = yr * yr, Ns = function(t, e) {
|
|
|
2114
2116
|
w = v.size, D = v.pop();
|
|
2115
2117
|
}
|
|
2116
2118
|
Qi.reset();
|
|
2117
|
-
var P =
|
|
2119
|
+
var P = $l.factory(L.segments), X = new tc(P);
|
|
2118
2120
|
return X.getGeom();
|
|
2119
2121
|
}
|
|
2120
2122
|
}]), r;
|
|
2121
|
-
}(), Cn = new
|
|
2123
|
+
}(), Cn = new rc(), ic = function(t) {
|
|
2122
2124
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
2123
2125
|
n[i - 1] = arguments[i];
|
|
2124
2126
|
return Cn.run("union", t, n);
|
|
2125
|
-
},
|
|
2127
|
+
}, oc = function(t) {
|
|
2126
2128
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
2127
2129
|
n[i - 1] = arguments[i];
|
|
2128
2130
|
return Cn.run("intersection", t, n);
|
|
2129
|
-
},
|
|
2131
|
+
}, sc = function(t) {
|
|
2130
2132
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
2131
2133
|
n[i - 1] = arguments[i];
|
|
2132
2134
|
return Cn.run("xor", t, n);
|
|
2133
|
-
},
|
|
2135
|
+
}, ac = function(t) {
|
|
2134
2136
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
2135
2137
|
n[i - 1] = arguments[i];
|
|
2136
2138
|
return Cn.run("difference", t, n);
|
|
2137
|
-
},
|
|
2138
|
-
union:
|
|
2139
|
-
intersection:
|
|
2140
|
-
xor:
|
|
2141
|
-
difference:
|
|
2142
|
-
}, ye = 63710088e-1,
|
|
2139
|
+
}, Ja = {
|
|
2140
|
+
union: ic,
|
|
2141
|
+
intersection: oc,
|
|
2142
|
+
xor: sc,
|
|
2143
|
+
difference: ac
|
|
2144
|
+
}, ye = 63710088e-1, Za = {
|
|
2143
2145
|
centimeters: ye * 100,
|
|
2144
2146
|
centimetres: ye * 100,
|
|
2145
2147
|
degrees: ye / 111325,
|
|
@@ -2161,14 +2163,14 @@ function Ho(r, t, e) {
|
|
|
2161
2163
|
var n = { type: "Feature" };
|
|
2162
2164
|
return (e.id === 0 || e.id) && (n.id = e.id), e.bbox && (n.bbox = e.bbox), n.properties = t || {}, n.geometry = r, n;
|
|
2163
2165
|
}
|
|
2164
|
-
function
|
|
2166
|
+
function uc(r, t, e) {
|
|
2165
2167
|
if (e === void 0 && (e = {}), !r)
|
|
2166
2168
|
throw new Error("coordinates is required");
|
|
2167
2169
|
if (!Array.isArray(r))
|
|
2168
2170
|
throw new Error("coordinates must be an Array");
|
|
2169
2171
|
if (r.length < 2)
|
|
2170
2172
|
throw new Error("coordinates must be at least 2 numbers long");
|
|
2171
|
-
if (!
|
|
2173
|
+
if (!_a(r[0]) || !_a(r[1]))
|
|
2172
2174
|
throw new Error("coordinates must contain numbers");
|
|
2173
2175
|
var n = {
|
|
2174
2176
|
type: "Point",
|
|
@@ -2176,7 +2178,7 @@ function ac(r, t, e) {
|
|
|
2176
2178
|
};
|
|
2177
2179
|
return Ho(n, t, e);
|
|
2178
2180
|
}
|
|
2179
|
-
function
|
|
2181
|
+
function $a(r, t, e) {
|
|
2180
2182
|
e === void 0 && (e = {});
|
|
2181
2183
|
for (var n = 0, i = r; n < i.length; n++) {
|
|
2182
2184
|
var o = i[n];
|
|
@@ -2192,12 +2194,12 @@ function Za(r, t, e) {
|
|
|
2192
2194
|
};
|
|
2193
2195
|
return Ho(a, t, e);
|
|
2194
2196
|
}
|
|
2195
|
-
function
|
|
2197
|
+
function Ss(r, t) {
|
|
2196
2198
|
t === void 0 && (t = {});
|
|
2197
2199
|
var e = { type: "FeatureCollection" };
|
|
2198
2200
|
return t.id && (e.id = t.id), t.bbox && (e.bbox = t.bbox), e.features = r, e;
|
|
2199
2201
|
}
|
|
2200
|
-
function
|
|
2202
|
+
function tu(r, t, e) {
|
|
2201
2203
|
e === void 0 && (e = {});
|
|
2202
2204
|
var n = {
|
|
2203
2205
|
type: "MultiPolygon",
|
|
@@ -2205,39 +2207,39 @@ function $a(r, t, e) {
|
|
|
2205
2207
|
};
|
|
2206
2208
|
return Ho(n, t, e);
|
|
2207
2209
|
}
|
|
2208
|
-
function
|
|
2210
|
+
function lc(r, t) {
|
|
2209
2211
|
t === void 0 && (t = "kilometers");
|
|
2210
|
-
var e =
|
|
2212
|
+
var e = Za[t];
|
|
2211
2213
|
if (!e)
|
|
2212
2214
|
throw new Error(t + " units is invalid");
|
|
2213
2215
|
return r * e;
|
|
2214
2216
|
}
|
|
2215
|
-
function
|
|
2217
|
+
function cc(r, t) {
|
|
2216
2218
|
t === void 0 && (t = "kilometers");
|
|
2217
|
-
var e =
|
|
2219
|
+
var e = Za[t];
|
|
2218
2220
|
if (!e)
|
|
2219
2221
|
throw new Error(t + " units is invalid");
|
|
2220
2222
|
return r / e;
|
|
2221
2223
|
}
|
|
2222
|
-
function
|
|
2224
|
+
function _a(r) {
|
|
2223
2225
|
return !isNaN(r) && r !== null && !Array.isArray(r);
|
|
2224
2226
|
}
|
|
2225
2227
|
function Ao(r) {
|
|
2226
2228
|
return r.type === "Feature" ? r.geometry : r;
|
|
2227
2229
|
}
|
|
2228
|
-
function
|
|
2230
|
+
function fc(r, t, e) {
|
|
2229
2231
|
e === void 0 && (e = {});
|
|
2230
|
-
var n = Ao(r), i = Ao(t), o =
|
|
2231
|
-
return o.length === 0 ? null : o.length === 1 ?
|
|
2232
|
+
var n = Ao(r), i = Ao(t), o = Ja.union(n.coordinates, i.coordinates);
|
|
2233
|
+
return o.length === 0 ? null : o.length === 1 ? $a(o[0], e.properties) : tu(o, e.properties);
|
|
2232
2234
|
}
|
|
2233
|
-
function
|
|
2234
|
-
var e = Ao(r), n = Ao(t), i = r.properties || {}, o =
|
|
2235
|
+
function hc(r, t) {
|
|
2236
|
+
var e = Ao(r), n = Ao(t), i = r.properties || {}, o = Ja.difference(
|
|
2235
2237
|
e.coordinates,
|
|
2236
2238
|
n.coordinates
|
|
2237
2239
|
);
|
|
2238
|
-
return o.length === 0 ? null : o.length === 1 ?
|
|
2240
|
+
return o.length === 0 ? null : o.length === 1 ? $a(o[0], i) : tu(o, i);
|
|
2239
2241
|
}
|
|
2240
|
-
function
|
|
2242
|
+
function eu(r, t, e) {
|
|
2241
2243
|
if (r !== null)
|
|
2242
2244
|
for (var n, i, o, s, a, u, l, c = 0, f = 0, h, g = r.type, p = g === "FeatureCollection", v = g === "Feature", y = p ? r.features.length : 1, m = 0; m < y; m++) {
|
|
2243
2245
|
l = p ? r.features[m].geometry : v ? r.geometry : r, h = l ? l.type === "GeometryCollection" : !1, a = h ? l.geometries.length : 1;
|
|
@@ -2314,7 +2316,7 @@ function tu(r, t, e) {
|
|
|
2314
2316
|
break;
|
|
2315
2317
|
case "GeometryCollection":
|
|
2316
2318
|
for (n = 0; n < s.geometries.length; n++)
|
|
2317
|
-
if (
|
|
2319
|
+
if (eu(s.geometries[n], t, e) === !1)
|
|
2318
2320
|
return !1;
|
|
2319
2321
|
break;
|
|
2320
2322
|
default:
|
|
@@ -2324,14 +2326,14 @@ function tu(r, t, e) {
|
|
|
2324
2326
|
}
|
|
2325
2327
|
}
|
|
2326
2328
|
}
|
|
2327
|
-
function
|
|
2329
|
+
function Ea(r, t) {
|
|
2328
2330
|
if (r.type === "Feature")
|
|
2329
2331
|
t(r, 0);
|
|
2330
2332
|
else if (r.type === "FeatureCollection")
|
|
2331
2333
|
for (var e = 0; e < r.features.length && t(r.features[e], e) !== !1; e++)
|
|
2332
2334
|
;
|
|
2333
2335
|
}
|
|
2334
|
-
function
|
|
2336
|
+
function nu(r, t) {
|
|
2335
2337
|
var e, n, i, o, s, a, u, l, c, f, h = 0, g = r.type === "FeatureCollection", p = r.type === "Feature", v = g ? r.features.length : 1;
|
|
2336
2338
|
for (e = 0; e < v; e++) {
|
|
2337
2339
|
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++) {
|
|
@@ -2382,17 +2384,17 @@ function eu(r, t) {
|
|
|
2382
2384
|
h++;
|
|
2383
2385
|
}
|
|
2384
2386
|
}
|
|
2385
|
-
function
|
|
2387
|
+
function ws(r) {
|
|
2386
2388
|
var t = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
2387
|
-
return
|
|
2389
|
+
return eu(r, function(e) {
|
|
2388
2390
|
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]);
|
|
2389
2391
|
}), t;
|
|
2390
2392
|
}
|
|
2391
|
-
|
|
2392
|
-
function
|
|
2393
|
+
ws.default = ws;
|
|
2394
|
+
function gc(r, t) {
|
|
2393
2395
|
t === void 0 && (t = {});
|
|
2394
|
-
var e =
|
|
2395
|
-
return
|
|
2396
|
+
var e = ws(r), n = (e[0] + e[2]) / 2, i = (e[1] + e[3]) / 2;
|
|
2397
|
+
return uc([n, i], t.properties, t);
|
|
2396
2398
|
}
|
|
2397
2399
|
"fill" in Array.prototype || Object.defineProperty(Array.prototype, "fill", {
|
|
2398
2400
|
configurable: !0,
|
|
@@ -2438,7 +2440,7 @@ var ft = function(r) {
|
|
|
2438
2440
|
}
|
|
2439
2441
|
return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t;
|
|
2440
2442
|
}(Error), V = function() {
|
|
2441
|
-
},
|
|
2443
|
+
}, ru = { MAX_VALUE: { configurable: !0 } };
|
|
2442
2444
|
V.isNaN = function(t) {
|
|
2443
2445
|
return Number.isNaN(t);
|
|
2444
2446
|
};
|
|
@@ -2451,10 +2453,10 @@ V.longBitsToDouble = function(t) {
|
|
|
2451
2453
|
V.isInfinite = function(t) {
|
|
2452
2454
|
return !Number.isFinite(t);
|
|
2453
2455
|
};
|
|
2454
|
-
|
|
2456
|
+
ru.MAX_VALUE.get = function() {
|
|
2455
2457
|
return Number.MAX_VALUE;
|
|
2456
2458
|
};
|
|
2457
|
-
Object.defineProperties(V,
|
|
2459
|
+
Object.defineProperties(V, ru);
|
|
2458
2460
|
var Fe = function() {
|
|
2459
2461
|
}, Wo = function() {
|
|
2460
2462
|
}, fi = function() {
|
|
@@ -2650,7 +2652,7 @@ Object.defineProperties(_, fo);
|
|
|
2650
2652
|
var z = function(r, t) {
|
|
2651
2653
|
return r.interfaces_ && r.interfaces_().indexOf(t) > -1;
|
|
2652
2654
|
}, Ie = function() {
|
|
2653
|
-
},
|
|
2655
|
+
}, iu = { LOG_10: { configurable: !0 } };
|
|
2654
2656
|
Ie.prototype.interfaces_ = function() {
|
|
2655
2657
|
return [];
|
|
2656
2658
|
};
|
|
@@ -2689,10 +2691,10 @@ Ie.max = function() {
|
|
|
2689
2691
|
Ie.average = function(t, e) {
|
|
2690
2692
|
return (t + e) / 2;
|
|
2691
2693
|
};
|
|
2692
|
-
|
|
2694
|
+
iu.LOG_10.get = function() {
|
|
2693
2695
|
return Math.log(10);
|
|
2694
2696
|
};
|
|
2695
|
-
Object.defineProperties(Ie,
|
|
2697
|
+
Object.defineProperties(Ie, iu);
|
|
2696
2698
|
var mn = function(t) {
|
|
2697
2699
|
this.str = t;
|
|
2698
2700
|
};
|
|
@@ -3143,7 +3145,7 @@ Qe.SCI_NOT_ZERO.get = function() {
|
|
|
3143
3145
|
};
|
|
3144
3146
|
Object.defineProperties(I, Qe);
|
|
3145
3147
|
var ae = function() {
|
|
3146
|
-
},
|
|
3148
|
+
}, ou = { DP_SAFE_EPSILON: { configurable: !0 } };
|
|
3147
3149
|
ae.prototype.interfaces_ = function() {
|
|
3148
3150
|
return [];
|
|
3149
3151
|
};
|
|
@@ -3183,10 +3185,10 @@ ae.orientationIndexFilter = function(t, e, n) {
|
|
|
3183
3185
|
ae.signum = function(t) {
|
|
3184
3186
|
return t > 0 ? 1 : t < 0 ? -1 : 0;
|
|
3185
3187
|
};
|
|
3186
|
-
|
|
3188
|
+
ou.DP_SAFE_EPSILON.get = function() {
|
|
3187
3189
|
return 1e-15;
|
|
3188
3190
|
};
|
|
3189
|
-
Object.defineProperties(ae,
|
|
3191
|
+
Object.defineProperties(ae, ou);
|
|
3190
3192
|
var Q = function() {
|
|
3191
3193
|
}, ho = { X: { configurable: !0 }, Y: { configurable: !0 }, Z: { configurable: !0 }, M: { configurable: !0 } };
|
|
3192
3194
|
ho.X.get = function() {
|
|
@@ -3232,7 +3234,7 @@ Q.prototype.getClass = function() {
|
|
|
3232
3234
|
return Q;
|
|
3233
3235
|
};
|
|
3234
3236
|
Object.defineProperties(Q, ho);
|
|
3235
|
-
var
|
|
3237
|
+
var su = function() {
|
|
3236
3238
|
}, Ai = function(r) {
|
|
3237
3239
|
function t() {
|
|
3238
3240
|
r.call(this, "Projective point not representable on the Cartesian plane.");
|
|
@@ -3242,7 +3244,7 @@ var ou = function() {
|
|
|
3242
3244
|
}, t.prototype.getClass = function() {
|
|
3243
3245
|
return t;
|
|
3244
3246
|
}, t;
|
|
3245
|
-
}(
|
|
3247
|
+
}(su), zt = function() {
|
|
3246
3248
|
};
|
|
3247
3249
|
zt.arraycopy = function(t, e, n, i, o) {
|
|
3248
3250
|
for (var s = 0, a = e; a < e + o; a++)
|
|
@@ -3325,7 +3327,7 @@ var M = function r() {
|
|
|
3325
3327
|
var o = arguments[0], s = arguments[1], a = arguments[2], u = arguments[3];
|
|
3326
3328
|
this.init(o, s, a, u);
|
|
3327
3329
|
}
|
|
3328
|
-
},
|
|
3330
|
+
}, au = { serialVersionUID: { configurable: !0 } };
|
|
3329
3331
|
M.prototype.getArea = function() {
|
|
3330
3332
|
return this.getWidth() * this.getHeight();
|
|
3331
3333
|
};
|
|
@@ -3507,10 +3509,10 @@ M.intersects = function() {
|
|
|
3507
3509
|
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);
|
|
3508
3510
|
}
|
|
3509
3511
|
};
|
|
3510
|
-
|
|
3512
|
+
au.serialVersionUID.get = function() {
|
|
3511
3513
|
return 5873921885273102e3;
|
|
3512
3514
|
};
|
|
3513
|
-
Object.defineProperties(M,
|
|
3515
|
+
Object.defineProperties(M, au);
|
|
3514
3516
|
var $e = {
|
|
3515
3517
|
typeStr: /^\s*(\w+)\s*\(\s*(.*)\s*\)\s*$/,
|
|
3516
3518
|
emptyTypeStr: /^\s*(\w+)\s*EMPTY\s*$/,
|
|
@@ -4320,15 +4322,15 @@ Mn.SORTINDEX_GEOMETRYCOLLECTION.get = function() {
|
|
|
4320
4322
|
return 7;
|
|
4321
4323
|
};
|
|
4322
4324
|
Mn.geometryChangedFilter.get = function() {
|
|
4323
|
-
return
|
|
4325
|
+
return Ms;
|
|
4324
4326
|
};
|
|
4325
4327
|
Object.defineProperties(G, Mn);
|
|
4326
|
-
var
|
|
4328
|
+
var Ms = function() {
|
|
4327
4329
|
};
|
|
4328
|
-
|
|
4330
|
+
Ms.interfaces_ = function() {
|
|
4329
4331
|
return [Wn];
|
|
4330
4332
|
};
|
|
4331
|
-
|
|
4333
|
+
Ms.filter = function(t) {
|
|
4332
4334
|
t.geometryChangedAction();
|
|
4333
4335
|
};
|
|
4334
4336
|
var Sn = function() {
|
|
@@ -4439,11 +4441,11 @@ wt.prototype.toArray = function() {
|
|
|
4439
4441
|
};
|
|
4440
4442
|
wt.prototype.remove = function() {
|
|
4441
4443
|
};
|
|
4442
|
-
function
|
|
4444
|
+
function As(r) {
|
|
4443
4445
|
this.message = r || "";
|
|
4444
4446
|
}
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
+
As.prototype = new Error();
|
|
4448
|
+
As.prototype.name = "IndexOutOfBoundsException";
|
|
4447
4449
|
var Fi = function() {
|
|
4448
4450
|
};
|
|
4449
4451
|
Fi.prototype.hasNext = function() {
|
|
@@ -4485,10 +4487,10 @@ var b = function(r) {
|
|
|
4485
4487
|
var o = this.array_[n];
|
|
4486
4488
|
return this.array_[n] = i, o;
|
|
4487
4489
|
}, t.prototype.iterator = function() {
|
|
4488
|
-
return new
|
|
4490
|
+
return new pc(this);
|
|
4489
4491
|
}, t.prototype.get = function(n) {
|
|
4490
4492
|
if (n < 0 || n >= this.size())
|
|
4491
|
-
throw new
|
|
4493
|
+
throw new As();
|
|
4492
4494
|
return this.array_[n];
|
|
4493
4495
|
}, t.prototype.isEmpty = function() {
|
|
4494
4496
|
return this.array_.length === 0;
|
|
@@ -4506,7 +4508,7 @@ var b = function(r) {
|
|
|
4506
4508
|
}
|
|
4507
4509
|
return o;
|
|
4508
4510
|
}, t;
|
|
4509
|
-
}(Ve),
|
|
4511
|
+
}(Ve), pc = function(r) {
|
|
4510
4512
|
function t(e) {
|
|
4511
4513
|
r.call(this), this.arrayList_ = e, this.position_ = 0;
|
|
4512
4514
|
}
|
|
@@ -4835,7 +4837,7 @@ ri.prototype.values = function() {
|
|
|
4835
4837
|
};
|
|
4836
4838
|
ri.prototype.entrySet = function() {
|
|
4837
4839
|
};
|
|
4838
|
-
var
|
|
4840
|
+
var dc = function(r) {
|
|
4839
4841
|
function t() {
|
|
4840
4842
|
r.apply(this, arguments);
|
|
4841
4843
|
}
|
|
@@ -4851,7 +4853,7 @@ function Qo() {
|
|
|
4851
4853
|
Qo.prototype = new wt();
|
|
4852
4854
|
Qo.prototype.contains = function() {
|
|
4853
4855
|
};
|
|
4854
|
-
var
|
|
4856
|
+
var Fs = function(r) {
|
|
4855
4857
|
function t() {
|
|
4856
4858
|
r.call(this), this.array_ = [], arguments[0] instanceof wt && this.addAll(arguments[0]);
|
|
4857
4859
|
}
|
|
@@ -4879,9 +4881,9 @@ var As = function(r) {
|
|
|
4879
4881
|
i.push(n.array_[o]);
|
|
4880
4882
|
return i;
|
|
4881
4883
|
}, t.prototype.iterator = function() {
|
|
4882
|
-
return new
|
|
4884
|
+
return new vc(this);
|
|
4883
4885
|
}, t;
|
|
4884
|
-
}(Qo),
|
|
4886
|
+
}(Qo), vc = function(r) {
|
|
4885
4887
|
function t(e) {
|
|
4886
4888
|
r.call(this), this.hashSet_ = e, this.position_ = 0;
|
|
4887
4889
|
}
|
|
@@ -4895,7 +4897,7 @@ var As = function(r) {
|
|
|
4895
4897
|
throw new po();
|
|
4896
4898
|
}, t;
|
|
4897
4899
|
}(Fi), Un = 0, pr = 1;
|
|
4898
|
-
function
|
|
4900
|
+
function Ia(r) {
|
|
4899
4901
|
return r === null ? Un : r.color;
|
|
4900
4902
|
}
|
|
4901
4903
|
function st(r) {
|
|
@@ -4904,16 +4906,16 @@ function st(r) {
|
|
|
4904
4906
|
function Gn(r, t) {
|
|
4905
4907
|
r !== null && (r.color = t);
|
|
4906
4908
|
}
|
|
4907
|
-
function
|
|
4909
|
+
function gs(r) {
|
|
4908
4910
|
return r === null ? null : r.left;
|
|
4909
4911
|
}
|
|
4910
|
-
function
|
|
4912
|
+
function Ca(r) {
|
|
4911
4913
|
return r === null ? null : r.right;
|
|
4912
4914
|
}
|
|
4913
4915
|
function Ht() {
|
|
4914
4916
|
this.root_ = null, this.size_ = 0;
|
|
4915
4917
|
}
|
|
4916
|
-
Ht.prototype = new
|
|
4918
|
+
Ht.prototype = new dc();
|
|
4917
4919
|
Ht.prototype.get = function(r) {
|
|
4918
4920
|
for (var t = this.root_; t !== null; ) {
|
|
4919
4921
|
var e = r.compareTo(t.key);
|
|
@@ -4972,12 +4974,12 @@ Ht.prototype.put = function(r, t) {
|
|
|
4972
4974
|
Ht.prototype.fixAfterInsertion = function(r) {
|
|
4973
4975
|
var t = this;
|
|
4974
4976
|
for (r.color = pr; r != null && r !== this.root_ && r.parent.color === pr; )
|
|
4975
|
-
if (st(r) ===
|
|
4976
|
-
var e =
|
|
4977
|
-
|
|
4977
|
+
if (st(r) === gs(st(st(r)))) {
|
|
4978
|
+
var e = Ca(st(st(r)));
|
|
4979
|
+
Ia(e) === pr ? (Gn(st(r), Un), Gn(e, Un), Gn(st(st(r)), pr), r = st(st(r))) : (r === Ca(st(r)) && (r = st(r), t.rotateLeft(r)), Gn(st(r), Un), Gn(st(st(r)), pr), t.rotateRight(st(st(r))));
|
|
4978
4980
|
} else {
|
|
4979
|
-
var n =
|
|
4980
|
-
|
|
4981
|
+
var n = gs(st(st(r)));
|
|
4982
|
+
Ia(n) === pr ? (Gn(st(r), Un), Gn(n, Un), Gn(st(st(r)), pr), r = st(st(r))) : (r === gs(st(r)) && (r = st(r), t.rotateRight(r)), Gn(st(r), Un), Gn(st(st(r)), pr), t.rotateLeft(st(st(r))));
|
|
4981
4983
|
}
|
|
4982
4984
|
this.root_.color = Un;
|
|
4983
4985
|
};
|
|
@@ -4989,7 +4991,7 @@ Ht.prototype.values = function() {
|
|
|
4989
4991
|
return r;
|
|
4990
4992
|
};
|
|
4991
4993
|
Ht.prototype.entrySet = function() {
|
|
4992
|
-
var r = new
|
|
4994
|
+
var r = new Fs(), t = this.getFirstEntry();
|
|
4993
4995
|
if (t !== null)
|
|
4994
4996
|
for (r.add(t); (t = Ht.successor(t)) !== null; )
|
|
4995
4997
|
r.add(t);
|
|
@@ -5038,13 +5040,13 @@ $i.prototype.interfaces_ = function() {
|
|
|
5038
5040
|
$i.prototype.getClass = function() {
|
|
5039
5041
|
return $i;
|
|
5040
5042
|
};
|
|
5041
|
-
function
|
|
5043
|
+
function uu() {
|
|
5042
5044
|
}
|
|
5043
|
-
|
|
5045
|
+
uu.prototype = new Qo();
|
|
5044
5046
|
function un() {
|
|
5045
5047
|
this.array_ = [], arguments[0] instanceof wt && this.addAll(arguments[0]);
|
|
5046
5048
|
}
|
|
5047
|
-
un.prototype = new
|
|
5049
|
+
un.prototype = new uu();
|
|
5048
5050
|
un.prototype.contains = function(r) {
|
|
5049
5051
|
for (var t = this, e = 0, n = this.array_.length; e < n; e++) {
|
|
5050
5052
|
var i = t.array_[e];
|
|
@@ -5477,20 +5479,20 @@ Bo.prototype.interfaces_ = function() {
|
|
|
5477
5479
|
Bo.prototype.getClass = function() {
|
|
5478
5480
|
return Bo;
|
|
5479
5481
|
};
|
|
5480
|
-
function vc() {
|
|
5481
|
-
}
|
|
5482
5482
|
function yc() {
|
|
5483
5483
|
}
|
|
5484
|
-
|
|
5485
|
-
};
|
|
5486
|
-
function _c() {
|
|
5484
|
+
function mc() {
|
|
5487
5485
|
}
|
|
5486
|
+
var _c = function() {
|
|
5487
|
+
};
|
|
5488
5488
|
function Ec() {
|
|
5489
5489
|
}
|
|
5490
5490
|
function Ic() {
|
|
5491
5491
|
}
|
|
5492
|
+
function Cc() {
|
|
5493
|
+
}
|
|
5492
5494
|
var Re = function() {
|
|
5493
|
-
},
|
|
5495
|
+
}, Bs = { NEWLINE: { configurable: !0 }, SIMPLE_ORDINATE_FORMAT: { configurable: !0 } };
|
|
5494
5496
|
Re.prototype.interfaces_ = function() {
|
|
5495
5497
|
return [];
|
|
5496
5498
|
};
|
|
@@ -5504,16 +5506,16 @@ Re.chars = function(t, e) {
|
|
|
5504
5506
|
};
|
|
5505
5507
|
Re.getStackTrace = function() {
|
|
5506
5508
|
if (arguments.length === 1) {
|
|
5507
|
-
var t = arguments[0], e = new
|
|
5509
|
+
var t = arguments[0], e = new Ec(), n = new yc();
|
|
5508
5510
|
return t.printStackTrace(n), e.toString();
|
|
5509
5511
|
} else if (arguments.length === 2) {
|
|
5510
5512
|
var i = arguments[0], o = arguments[1], s = "";
|
|
5511
|
-
new
|
|
5512
|
-
for (var a = new
|
|
5513
|
+
new mc(Re.getStackTrace(i));
|
|
5514
|
+
for (var a = new Cc(), u = 0; u < o; u++)
|
|
5513
5515
|
try {
|
|
5514
5516
|
s += a.readLine() + Re.NEWLINE;
|
|
5515
5517
|
} catch (l) {
|
|
5516
|
-
if (l instanceof
|
|
5518
|
+
if (l instanceof Ic)
|
|
5517
5519
|
q.shouldNeverReachHere();
|
|
5518
5520
|
else
|
|
5519
5521
|
throw l;
|
|
@@ -5541,13 +5543,13 @@ Re.toString = function() {
|
|
|
5541
5543
|
Re.spaces = function(t) {
|
|
5542
5544
|
return Re.chars(" ", t);
|
|
5543
5545
|
};
|
|
5544
|
-
|
|
5546
|
+
Bs.NEWLINE.get = function() {
|
|
5545
5547
|
return zt.getProperty("line.separator");
|
|
5546
5548
|
};
|
|
5547
|
-
|
|
5548
|
-
return new
|
|
5549
|
+
Bs.SIMPLE_ORDINATE_FORMAT.get = function() {
|
|
5550
|
+
return new _c();
|
|
5549
5551
|
};
|
|
5550
|
-
Object.defineProperties(Re,
|
|
5552
|
+
Object.defineProperties(Re, Bs);
|
|
5551
5553
|
var Et = function() {
|
|
5552
5554
|
};
|
|
5553
5555
|
Et.prototype.interfaces_ = function() {
|
|
@@ -6270,7 +6272,7 @@ var mt = function() {
|
|
|
6270
6272
|
t._coordinates[c] = new d();
|
|
6271
6273
|
}
|
|
6272
6274
|
}
|
|
6273
|
-
},
|
|
6275
|
+
}, lu = { serialVersionUID: { configurable: !0 } };
|
|
6274
6276
|
mt.prototype.setOrdinate = function(t, e, n) {
|
|
6275
6277
|
switch (e) {
|
|
6276
6278
|
case Q.X:
|
|
@@ -6356,12 +6358,12 @@ mt.prototype.interfaces_ = function() {
|
|
|
6356
6358
|
mt.prototype.getClass = function() {
|
|
6357
6359
|
return mt;
|
|
6358
6360
|
};
|
|
6359
|
-
|
|
6361
|
+
lu.serialVersionUID.get = function() {
|
|
6360
6362
|
return -915438501601840600;
|
|
6361
6363
|
};
|
|
6362
|
-
Object.defineProperties(mt,
|
|
6364
|
+
Object.defineProperties(mt, lu);
|
|
6363
6365
|
var Ln = function() {
|
|
6364
|
-
},
|
|
6366
|
+
}, Gs = { serialVersionUID: { configurable: !0 }, instanceObject: { configurable: !0 } };
|
|
6365
6367
|
Ln.prototype.readResolve = function() {
|
|
6366
6368
|
return Ln.instance();
|
|
6367
6369
|
};
|
|
@@ -6388,14 +6390,14 @@ Ln.prototype.getClass = function() {
|
|
|
6388
6390
|
Ln.instance = function() {
|
|
6389
6391
|
return Ln.instanceObject;
|
|
6390
6392
|
};
|
|
6391
|
-
|
|
6393
|
+
Gs.serialVersionUID.get = function() {
|
|
6392
6394
|
return -4099577099607551500;
|
|
6393
6395
|
};
|
|
6394
|
-
|
|
6396
|
+
Gs.instanceObject.get = function() {
|
|
6395
6397
|
return new Ln();
|
|
6396
6398
|
};
|
|
6397
|
-
Object.defineProperties(Ln,
|
|
6398
|
-
var
|
|
6399
|
+
Object.defineProperties(Ln, Gs);
|
|
6400
|
+
var cu = function(r) {
|
|
6399
6401
|
function t() {
|
|
6400
6402
|
r.call(this), this.map_ = /* @__PURE__ */ new Map();
|
|
6401
6403
|
}
|
|
@@ -6408,7 +6410,7 @@ var lu = function(r) {
|
|
|
6408
6410
|
n.add(o.value), o = i.next();
|
|
6409
6411
|
return n;
|
|
6410
6412
|
}, t.prototype.entrySet = function() {
|
|
6411
|
-
var n = new
|
|
6413
|
+
var n = new Fs();
|
|
6412
6414
|
return this.map_.entries().forEach(function(i) {
|
|
6413
6415
|
return n.add(i);
|
|
6414
6416
|
}), n;
|
|
@@ -6430,7 +6432,7 @@ var lu = function(r) {
|
|
|
6430
6432
|
this._modelType = n._modelType, this._scale = n._scale;
|
|
6431
6433
|
}
|
|
6432
6434
|
}
|
|
6433
|
-
},
|
|
6435
|
+
}, ks = { serialVersionUID: { configurable: !0 }, maximumPreciseValue: { configurable: !0 } };
|
|
6434
6436
|
tt.prototype.equals = function(t) {
|
|
6435
6437
|
if (!(t instanceof tt))
|
|
6436
6438
|
return !1;
|
|
@@ -6487,16 +6489,16 @@ tt.prototype.getClass = function() {
|
|
|
6487
6489
|
tt.mostPrecise = function(t, e) {
|
|
6488
6490
|
return t.compareTo(e) >= 0 ? t : e;
|
|
6489
6491
|
};
|
|
6490
|
-
|
|
6492
|
+
ks.serialVersionUID.get = function() {
|
|
6491
6493
|
return 7777263578777804e3;
|
|
6492
6494
|
};
|
|
6493
|
-
|
|
6495
|
+
ks.maximumPreciseValue.get = function() {
|
|
6494
6496
|
return 9007199254740992;
|
|
6495
6497
|
};
|
|
6496
|
-
Object.defineProperties(tt,
|
|
6498
|
+
Object.defineProperties(tt, ks);
|
|
6497
6499
|
var cn = function r(t) {
|
|
6498
6500
|
this._name = t || null, r.nameToTypeMap.put(t, this);
|
|
6499
|
-
},
|
|
6501
|
+
}, zs = { serialVersionUID: { configurable: !0 }, nameToTypeMap: { configurable: !0 } };
|
|
6500
6502
|
cn.prototype.readResolve = function() {
|
|
6501
6503
|
return cn.nameToTypeMap.get(this._name);
|
|
6502
6504
|
};
|
|
@@ -6509,20 +6511,20 @@ cn.prototype.interfaces_ = function() {
|
|
|
6509
6511
|
cn.prototype.getClass = function() {
|
|
6510
6512
|
return cn;
|
|
6511
6513
|
};
|
|
6512
|
-
|
|
6514
|
+
zs.serialVersionUID.get = function() {
|
|
6513
6515
|
return -552860263173159e4;
|
|
6514
6516
|
};
|
|
6515
|
-
|
|
6516
|
-
return new
|
|
6517
|
+
zs.nameToTypeMap.get = function() {
|
|
6518
|
+
return new cu();
|
|
6517
6519
|
};
|
|
6518
|
-
Object.defineProperties(cn,
|
|
6520
|
+
Object.defineProperties(cn, zs);
|
|
6519
6521
|
tt.Type = cn;
|
|
6520
6522
|
tt.FIXED = new cn("FIXED");
|
|
6521
6523
|
tt.FLOATING = new cn("FLOATING");
|
|
6522
6524
|
tt.FLOATING_SINGLE = new cn("FLOATING SINGLE");
|
|
6523
6525
|
var H = function r() {
|
|
6524
6526
|
this._precisionModel = new tt(), this._SRID = 0, this._coordinateSequenceFactory = r.getDefaultCoordinateSequenceFactory(), arguments.length === 0 || (arguments.length === 1 ? z(arguments[0], hi) ? this._coordinateSequenceFactory = arguments[0] : arguments[0] instanceof tt && (this._precisionModel = arguments[0]) : arguments.length === 2 ? (this._precisionModel = arguments[0], this._SRID = arguments[1]) : arguments.length === 3 && (this._precisionModel = arguments[0], this._SRID = arguments[1], this._coordinateSequenceFactory = arguments[2]));
|
|
6525
|
-
},
|
|
6527
|
+
}, fu = { serialVersionUID: { configurable: !0 } };
|
|
6526
6528
|
H.prototype.toGeometry = function(t) {
|
|
6527
6529
|
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);
|
|
6528
6530
|
};
|
|
@@ -6717,11 +6719,11 @@ H.toPolygonArray = function(t) {
|
|
|
6717
6719
|
H.createPointFromInternalCoord = function(t, e) {
|
|
6718
6720
|
return e.getPrecisionModel().makePrecise(t), e.getFactory().createPoint(t);
|
|
6719
6721
|
};
|
|
6720
|
-
|
|
6722
|
+
fu.serialVersionUID.get = function() {
|
|
6721
6723
|
return -6820524753094096e3;
|
|
6722
6724
|
};
|
|
6723
|
-
Object.defineProperties(H,
|
|
6724
|
-
var
|
|
6725
|
+
Object.defineProperties(H, fu);
|
|
6726
|
+
var Nc = ["Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"], $o = function(t) {
|
|
6725
6727
|
this.geometryFactory = t || new H();
|
|
6726
6728
|
};
|
|
6727
6729
|
$o.prototype.read = function(t) {
|
|
@@ -6730,7 +6732,7 @@ $o.prototype.read = function(t) {
|
|
|
6730
6732
|
var n = e.type;
|
|
6731
6733
|
if (!en[n])
|
|
6732
6734
|
throw new Error("Unknown GeoJSON type: " + e.type);
|
|
6733
|
-
return
|
|
6735
|
+
return Nc.indexOf(n) !== -1 ? en[n].apply(this, [e.coordinates]) : n === "GeometryCollection" ? en[n].apply(this, [e.geometries]) : en[n].apply(this, [e]);
|
|
6734
6736
|
};
|
|
6735
6737
|
$o.prototype.write = function(t) {
|
|
6736
6738
|
var e = t.getGeometryType();
|
|
@@ -6888,14 +6890,14 @@ var en = {
|
|
|
6888
6890
|
geometries: e
|
|
6889
6891
|
};
|
|
6890
6892
|
}
|
|
6891
|
-
},
|
|
6893
|
+
}, Vs = function(t) {
|
|
6892
6894
|
this.geometryFactory = t || new H(), this.precisionModel = this.geometryFactory.getPrecisionModel(), this.parser = new $o(this.geometryFactory);
|
|
6893
6895
|
};
|
|
6894
|
-
|
|
6896
|
+
Vs.prototype.read = function(t) {
|
|
6895
6897
|
var e = this.parser.read(t);
|
|
6896
6898
|
return this.precisionModel.getType() === tt.FIXED && this.reducePrecision(e), e;
|
|
6897
6899
|
};
|
|
6898
|
-
|
|
6900
|
+
Vs.prototype.reducePrecision = function(t) {
|
|
6899
6901
|
var e = this, n, i;
|
|
6900
6902
|
if (t.coordinate)
|
|
6901
6903
|
this.precisionModel.makePrecise(t.coordinate);
|
|
@@ -6906,10 +6908,10 @@ zs.prototype.reducePrecision = function(t) {
|
|
|
6906
6908
|
for (n = 0, i = t.geometries.length; n < i; n++)
|
|
6907
6909
|
e.reducePrecision(t.geometries[n]);
|
|
6908
6910
|
};
|
|
6909
|
-
var
|
|
6911
|
+
var hu = function() {
|
|
6910
6912
|
this.parser = new $o(this.geometryFactory);
|
|
6911
6913
|
};
|
|
6912
|
-
|
|
6914
|
+
hu.prototype.write = function(t) {
|
|
6913
6915
|
return this.parser.write(t);
|
|
6914
6916
|
};
|
|
6915
6917
|
var S = function() {
|
|
@@ -7097,7 +7099,7 @@ re.prototype.findResultEdges = function() {
|
|
|
7097
7099
|
}
|
|
7098
7100
|
};
|
|
7099
7101
|
re.prototype.computeDepths = function(t) {
|
|
7100
|
-
var e = this, n = new
|
|
7102
|
+
var e = this, n = new Fs(), i = new ns(), o = t.getNode();
|
|
7101
7103
|
for (i.addLast(o), n.add(o), t.setVisited(!0); !i.isEmpty(); ) {
|
|
7102
7104
|
var s = i.removeFirst();
|
|
7103
7105
|
n.add(s), e.computeNodeDepth(s);
|
|
@@ -7484,7 +7486,7 @@ St.prototype.interfaces_ = function() {
|
|
|
7484
7486
|
St.prototype.getClass = function() {
|
|
7485
7487
|
return St;
|
|
7486
7488
|
};
|
|
7487
|
-
var
|
|
7489
|
+
var xc = function(r) {
|
|
7488
7490
|
function t() {
|
|
7489
7491
|
var e = arguments[0], n = arguments[1];
|
|
7490
7492
|
r.call(this, e, n);
|
|
@@ -7498,7 +7500,7 @@ var Nc = function(r) {
|
|
|
7498
7500
|
}, t.prototype.getClass = function() {
|
|
7499
7501
|
return t;
|
|
7500
7502
|
}, t;
|
|
7501
|
-
}(St),
|
|
7503
|
+
}(St), Sc = function(r) {
|
|
7502
7504
|
function t() {
|
|
7503
7505
|
var e = arguments[0], n = arguments[1];
|
|
7504
7506
|
r.call(this, e, n);
|
|
@@ -7507,7 +7509,7 @@ var Nc = function(r) {
|
|
|
7507
7509
|
var n = this, i = new b(), o = this._startDe;
|
|
7508
7510
|
do {
|
|
7509
7511
|
if (o.getMinEdgeRing() === null) {
|
|
7510
|
-
var s = new
|
|
7512
|
+
var s = new xc(o, n._geometryFactory);
|
|
7511
7513
|
i.add(s);
|
|
7512
7514
|
}
|
|
7513
7515
|
o = o.getNext();
|
|
@@ -7808,7 +7810,7 @@ Wt.prototype.interfaces_ = function() {
|
|
|
7808
7810
|
Wt.prototype.getClass = function() {
|
|
7809
7811
|
return Wt;
|
|
7810
7812
|
};
|
|
7811
|
-
var
|
|
7813
|
+
var Ls = function(r) {
|
|
7812
7814
|
function t() {
|
|
7813
7815
|
var e = arguments[0], n = arguments[1];
|
|
7814
7816
|
if (r.call(this, e), this._isForward = null, this._isInResult = !1, this._isVisited = !1, this._sym = null, this._next = null, this._nextMin = null, this._edgeRing = null, this._minEdgeRing = null, this._depth = [0, -999, -999], this._isForward = n, n)
|
|
@@ -7989,7 +7991,7 @@ gt.prototype.addEdges = function(t) {
|
|
|
7989
7991
|
for (var e = this, n = t.iterator(); n.hasNext(); ) {
|
|
7990
7992
|
var i = n.next();
|
|
7991
7993
|
e._edges.add(i);
|
|
7992
|
-
var o = new
|
|
7994
|
+
var o = new Ls(i, !0), s = new Ls(i, !1);
|
|
7993
7995
|
o.setSym(s), s.setSym(o), e.add(o), e.add(s);
|
|
7994
7996
|
}
|
|
7995
7997
|
};
|
|
@@ -8072,7 +8074,7 @@ ge.prototype.buildMaximalEdgeRings = function(t) {
|
|
|
8072
8074
|
for (var e = this, n = new b(), i = t.iterator(); i.hasNext(); ) {
|
|
8073
8075
|
var o = i.next();
|
|
8074
8076
|
if (o.isInResult() && o.getLabel().isArea() && o.getEdgeRing() === null) {
|
|
8075
|
-
var s = new
|
|
8077
|
+
var s = new Sc(o, e._geometryFactory);
|
|
8076
8078
|
n.add(s), s.setInResult();
|
|
8077
8079
|
}
|
|
8078
8080
|
}
|
|
@@ -8216,7 +8218,7 @@ var Pt = function() {
|
|
|
8216
8218
|
this._level = t;
|
|
8217
8219
|
}
|
|
8218
8220
|
}
|
|
8219
|
-
},
|
|
8221
|
+
}, gu = { serialVersionUID: { configurable: !0 } };
|
|
8220
8222
|
Pt.prototype.getLevel = function() {
|
|
8221
8223
|
return this._level;
|
|
8222
8224
|
};
|
|
@@ -8241,10 +8243,10 @@ Pt.prototype.interfaces_ = function() {
|
|
|
8241
8243
|
Pt.prototype.getClass = function() {
|
|
8242
8244
|
return Pt;
|
|
8243
8245
|
};
|
|
8244
|
-
|
|
8246
|
+
gu.serialVersionUID.get = function() {
|
|
8245
8247
|
return 6493722185909574e3;
|
|
8246
8248
|
};
|
|
8247
|
-
Object.defineProperties(Pt,
|
|
8249
|
+
Object.defineProperties(Pt, gu);
|
|
8248
8250
|
var Ye = function() {
|
|
8249
8251
|
};
|
|
8250
8252
|
Ye.reverseOrder = function() {
|
|
@@ -8485,7 +8487,7 @@ Ot.compareDoubles = function(t, e) {
|
|
|
8485
8487
|
return t > e ? 1 : t < e ? -1 : 0;
|
|
8486
8488
|
};
|
|
8487
8489
|
is.IntersectsOp.get = function() {
|
|
8488
|
-
return
|
|
8490
|
+
return wc;
|
|
8489
8491
|
};
|
|
8490
8492
|
is.serialVersionUID.get = function() {
|
|
8491
8493
|
return -3886435814360241e3;
|
|
@@ -8494,7 +8496,7 @@ is.DEFAULT_NODE_CAPACITY.get = function() {
|
|
|
8494
8496
|
return 10;
|
|
8495
8497
|
};
|
|
8496
8498
|
Object.defineProperties(Ot, is);
|
|
8497
|
-
var
|
|
8499
|
+
var wc = function() {
|
|
8498
8500
|
}, Ii = function() {
|
|
8499
8501
|
};
|
|
8500
8502
|
Ii.prototype.distance = function(t, e) {
|
|
@@ -8505,7 +8507,7 @@ Ii.prototype.interfaces_ = function() {
|
|
|
8505
8507
|
Ii.prototype.getClass = function() {
|
|
8506
8508
|
return Ii;
|
|
8507
8509
|
};
|
|
8508
|
-
var
|
|
8510
|
+
var pu = function(r) {
|
|
8509
8511
|
function t(n) {
|
|
8510
8512
|
n = n || t.DEFAULT_NODE_CAPACITY, r.call(this, n);
|
|
8511
8513
|
}
|
|
@@ -8518,7 +8520,7 @@ var gu = function(r) {
|
|
|
8518
8520
|
a.addAll(s.createParentBoundablesFromVerticalSlice(i[u], o));
|
|
8519
8521
|
return a;
|
|
8520
8522
|
}, t.prototype.createNode = function(i) {
|
|
8521
|
-
return new
|
|
8523
|
+
return new Na(i);
|
|
8522
8524
|
}, t.prototype.size = function() {
|
|
8523
8525
|
return arguments.length === 0 ? r.prototype.size.call(this) : r.prototype.size.apply(this, arguments);
|
|
8524
8526
|
}, t.prototype.insert = function() {
|
|
@@ -8612,7 +8614,7 @@ var gu = function(r) {
|
|
|
8612
8614
|
}, t.centreY = function(i) {
|
|
8613
8615
|
return t.avg(i.getMinY(), i.getMaxY());
|
|
8614
8616
|
}, e.STRtreeNode.get = function() {
|
|
8615
|
-
return
|
|
8617
|
+
return Na;
|
|
8616
8618
|
}, e.serialVersionUID.get = function() {
|
|
8617
8619
|
return 259274702368956900;
|
|
8618
8620
|
}, e.xComparator.get = function() {
|
|
@@ -8645,7 +8647,7 @@ var gu = function(r) {
|
|
|
8645
8647
|
}, e.DEFAULT_NODE_CAPACITY.get = function() {
|
|
8646
8648
|
return 10;
|
|
8647
8649
|
}, Object.defineProperties(t, e), t;
|
|
8648
|
-
}(Ot),
|
|
8650
|
+
}(Ot), Na = function(r) {
|
|
8649
8651
|
function t() {
|
|
8650
8652
|
var e = arguments[0];
|
|
8651
8653
|
r.call(this, e);
|
|
@@ -8962,7 +8964,7 @@ var A = function() {
|
|
|
8962
8964
|
var e = arguments[0], n = arguments[1], i = arguments[2], o = arguments[3];
|
|
8963
8965
|
this.p0 = new d(e, n), this.p1 = new d(i, o);
|
|
8964
8966
|
}
|
|
8965
|
-
},
|
|
8967
|
+
}, du = { serialVersionUID: { configurable: !0 } };
|
|
8966
8968
|
A.prototype.minX = function() {
|
|
8967
8969
|
return Math.min(this.p0.x, this.p1.x);
|
|
8968
8970
|
};
|
|
@@ -9147,10 +9149,10 @@ A.prototype.getClass = function() {
|
|
|
9147
9149
|
A.midPoint = function(t, e) {
|
|
9148
9150
|
return new d((t.x + e.x) / 2, (t.y + e.y) / 2);
|
|
9149
9151
|
};
|
|
9150
|
-
|
|
9152
|
+
du.serialVersionUID.get = function() {
|
|
9151
9153
|
return 3252005833466256400;
|
|
9152
9154
|
};
|
|
9153
|
-
Object.defineProperties(A,
|
|
9155
|
+
Object.defineProperties(A, du);
|
|
9154
9156
|
var oo = function() {
|
|
9155
9157
|
this.tempEnv1 = new M(), this.tempEnv2 = new M(), this._overlapSeg1 = new A(), this._overlapSeg2 = new A();
|
|
9156
9158
|
};
|
|
@@ -9312,9 +9314,9 @@ so.prototype.interfaces_ = function() {
|
|
|
9312
9314
|
so.prototype.getClass = function() {
|
|
9313
9315
|
return so;
|
|
9314
9316
|
};
|
|
9315
|
-
var
|
|
9317
|
+
var Us = function(r) {
|
|
9316
9318
|
function t(n) {
|
|
9317
|
-
n ? r.call(this, n) : r.call(this), this._monoChains = new b(), this._index = new
|
|
9319
|
+
n ? r.call(this, n) : r.call(this), this._monoChains = new b(), this._index = new pu(), this._idCounter = 0, this._nodedSegStrings = null, this._nOverlaps = 0;
|
|
9318
9320
|
}
|
|
9319
9321
|
r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t;
|
|
9320
9322
|
var e = { SegmentOverlapAction: { configurable: !0 } };
|
|
@@ -9336,7 +9338,7 @@ var Vs = function(r) {
|
|
|
9336
9338
|
o.add(s.next());
|
|
9337
9339
|
this.intersectChains();
|
|
9338
9340
|
}, t.prototype.intersectChains = function() {
|
|
9339
|
-
for (var i = this, o = new
|
|
9341
|
+
for (var i = this, o = new xa(this._segInt), s = this._monoChains.iterator(); s.hasNext(); )
|
|
9340
9342
|
for (var a = s.next(), u = i._index.query(a.getEnvelope()), l = u.iterator(); l.hasNext(); ) {
|
|
9341
9343
|
var c = l.next();
|
|
9342
9344
|
if (c.getId() > a.getId() && (a.computeOverlaps(c, o), i._nOverlaps++), i._segInt.isDone())
|
|
@@ -9347,9 +9349,9 @@ var Vs = function(r) {
|
|
|
9347
9349
|
}, t.prototype.getClass = function() {
|
|
9348
9350
|
return t;
|
|
9349
9351
|
}, e.SegmentOverlapAction.get = function() {
|
|
9350
|
-
return
|
|
9352
|
+
return xa;
|
|
9351
9353
|
}, Object.defineProperties(t, e), t;
|
|
9352
|
-
}(so),
|
|
9354
|
+
}(so), xa = function(r) {
|
|
9353
9355
|
function t() {
|
|
9354
9356
|
r.call(this), this._si = null;
|
|
9355
9357
|
var e = arguments[0];
|
|
@@ -9535,7 +9537,7 @@ yo.NUM_PTS_TO_CHECK.get = function() {
|
|
|
9535
9537
|
Object.defineProperties(vt, yo);
|
|
9536
9538
|
var Ne = function() {
|
|
9537
9539
|
this._ptList = null, this._precisionModel = null, this._minimimVertexDistance = 0, this._ptList = new b();
|
|
9538
|
-
},
|
|
9540
|
+
}, vu = { COORDINATE_ARRAY_TYPE: { configurable: !0 } };
|
|
9539
9541
|
Ne.prototype.getCoordinates = function() {
|
|
9540
9542
|
var t = this._ptList.toArray(Ne.COORDINATE_ARRAY_TYPE);
|
|
9541
9543
|
return t;
|
|
@@ -9587,10 +9589,10 @@ Ne.prototype.interfaces_ = function() {
|
|
|
9587
9589
|
Ne.prototype.getClass = function() {
|
|
9588
9590
|
return Ne;
|
|
9589
9591
|
};
|
|
9590
|
-
|
|
9592
|
+
vu.COORDINATE_ARRAY_TYPE.get = function() {
|
|
9591
9593
|
return new Array(0).fill(null);
|
|
9592
9594
|
};
|
|
9593
|
-
Object.defineProperties(Ne,
|
|
9595
|
+
Object.defineProperties(Ne, vu);
|
|
9594
9596
|
var K = function() {
|
|
9595
9597
|
}, 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 } };
|
|
9596
9598
|
K.prototype.interfaces_ = function() {
|
|
@@ -9952,7 +9954,7 @@ var Yr = function() {
|
|
|
9952
9954
|
this._subgraphs = null, this._seg = new A(), this._cga = new R();
|
|
9953
9955
|
var t = arguments[0];
|
|
9954
9956
|
this._subgraphs = t;
|
|
9955
|
-
},
|
|
9957
|
+
}, yu = { DepthSegment: { configurable: !0 } };
|
|
9956
9958
|
Yr.prototype.findStabbedSegments = function() {
|
|
9957
9959
|
var t = this;
|
|
9958
9960
|
if (arguments.length === 1) {
|
|
@@ -9962,7 +9964,7 @@ Yr.prototype.findStabbedSegments = function() {
|
|
|
9962
9964
|
}
|
|
9963
9965
|
return n;
|
|
9964
9966
|
} else if (arguments.length === 3) {
|
|
9965
|
-
if (z(arguments[2], Ve) && arguments[0] instanceof d && arguments[1] instanceof
|
|
9967
|
+
if (z(arguments[2], Ve) && arguments[0] instanceof d && arguments[1] instanceof Ls)
|
|
9966
9968
|
for (var a = arguments[0], u = arguments[1], l = arguments[2], c = u.getEdge().getCoordinates(), f = 0; f < c.length - 1; f++) {
|
|
9967
9969
|
t._seg.p0 = c[f], t._seg.p1 = c[f + 1], t._seg.p0.y > t._seg.p1.y && t._seg.reverse();
|
|
9968
9970
|
var h = Math.max(t._seg.p0.x, t._seg.p1.x);
|
|
@@ -9993,10 +9995,10 @@ Yr.prototype.interfaces_ = function() {
|
|
|
9993
9995
|
Yr.prototype.getClass = function() {
|
|
9994
9996
|
return Yr;
|
|
9995
9997
|
};
|
|
9996
|
-
|
|
9998
|
+
yu.DepthSegment.get = function() {
|
|
9997
9999
|
return xr;
|
|
9998
10000
|
};
|
|
9999
|
-
Object.defineProperties(Yr,
|
|
10001
|
+
Object.defineProperties(Yr, yu);
|
|
10000
10002
|
var xr = function() {
|
|
10001
10003
|
this._upwardSeg = null, this._leftDepth = null;
|
|
10002
10004
|
var t = arguments[0], e = arguments[1];
|
|
@@ -10404,7 +10406,7 @@ jt.prototype.interfaces_ = function() {
|
|
|
10404
10406
|
jt.prototype.getClass = function() {
|
|
10405
10407
|
return jt;
|
|
10406
10408
|
};
|
|
10407
|
-
var
|
|
10409
|
+
var Lc = function(r) {
|
|
10408
10410
|
function t() {
|
|
10409
10411
|
r.call(this), this._resultAreaEdgeList = null, this._label = null, this._SCANNING_FOR_INCOMING = 1, this._LINKING_TO_OUTGOING = 2;
|
|
10410
10412
|
}
|
|
@@ -10557,12 +10559,12 @@ var wc = function(r) {
|
|
|
10557
10559
|
}, t.prototype.getClass = function() {
|
|
10558
10560
|
return t;
|
|
10559
10561
|
}, t;
|
|
10560
|
-
}(jt),
|
|
10562
|
+
}(jt), mu = function(r) {
|
|
10561
10563
|
function t() {
|
|
10562
10564
|
r.apply(this, arguments);
|
|
10563
10565
|
}
|
|
10564
10566
|
return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t.prototype.createNode = function(n) {
|
|
10565
|
-
return new rs(n, new
|
|
10567
|
+
return new rs(n, new Lc());
|
|
10566
10568
|
}, t.prototype.interfaces_ = function() {
|
|
10567
10569
|
return [];
|
|
10568
10570
|
}, t.prototype.getClass = function() {
|
|
@@ -10892,7 +10894,7 @@ var kt = function r() {
|
|
|
10892
10894
|
for (var e = 0; e < 2; e++)
|
|
10893
10895
|
for (var n = 0; n < 3; n++)
|
|
10894
10896
|
t._depth[e][n] = r.NULL_VALUE;
|
|
10895
|
-
},
|
|
10897
|
+
}, _u = { NULL_VALUE: { configurable: !0 } };
|
|
10896
10898
|
kt.prototype.getDepth = function(t, e) {
|
|
10897
10899
|
return this._depth[t][e];
|
|
10898
10900
|
};
|
|
@@ -10957,10 +10959,10 @@ kt.prototype.getClass = function() {
|
|
|
10957
10959
|
kt.depthAtLocation = function(t) {
|
|
10958
10960
|
return t === _.EXTERIOR ? 0 : t === _.INTERIOR ? 1 : kt.NULL_VALUE;
|
|
10959
10961
|
};
|
|
10960
|
-
|
|
10962
|
+
_u.NULL_VALUE.get = function() {
|
|
10961
10963
|
return -1;
|
|
10962
10964
|
};
|
|
10963
|
-
Object.defineProperties(kt,
|
|
10965
|
+
Object.defineProperties(kt, _u);
|
|
10964
10966
|
var Go = function(r) {
|
|
10965
10967
|
function t() {
|
|
10966
10968
|
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) {
|
|
@@ -11116,7 +11118,7 @@ ee.prototype.createEmptyResultGeometry = function() {
|
|
|
11116
11118
|
ee.prototype.getNoder = function(t) {
|
|
11117
11119
|
if (this._workingNoder !== null)
|
|
11118
11120
|
return this._workingNoder;
|
|
11119
|
-
var e = new
|
|
11121
|
+
var e = new Us(), n = new Dr();
|
|
11120
11122
|
return n.setPrecisionModel(t), e.setSegmentIntersector(new xe(n)), e;
|
|
11121
11123
|
};
|
|
11122
11124
|
ee.prototype.buffer = function(t, e) {
|
|
@@ -11125,7 +11127,7 @@ ee.prototype.buffer = function(t, e) {
|
|
|
11125
11127
|
var i = new ue(n, this._bufParams), o = new Me(t, e, i), s = o.getCurves();
|
|
11126
11128
|
if (s.size() <= 0)
|
|
11127
11129
|
return this.createEmptyResultGeometry();
|
|
11128
|
-
this.computeNodedEdges(s, n), this._graph = new gt(new
|
|
11130
|
+
this.computeNodedEdges(s, n), this._graph = new gt(new mu()), this._graph.addEdges(this._edgeList.getEdges());
|
|
11129
11131
|
var a = this.createSubgraphs(this._graph), u = new ge(this._geomFact);
|
|
11130
11132
|
this.buildSubgraphs(a, u);
|
|
11131
11133
|
var l = u.getPolygons();
|
|
@@ -11223,7 +11225,7 @@ var pn = function() {
|
|
|
11223
11225
|
this._li = new Dr(), this._segStrings = null;
|
|
11224
11226
|
var t = arguments[0];
|
|
11225
11227
|
this._segStrings = t;
|
|
11226
|
-
},
|
|
11228
|
+
}, Eu = { fact: { configurable: !0 } };
|
|
11227
11229
|
pn.prototype.checkEndPtVertexIntersections = function() {
|
|
11228
11230
|
var t = this;
|
|
11229
11231
|
if (arguments.length === 0)
|
|
@@ -11291,17 +11293,17 @@ pn.prototype.interfaces_ = function() {
|
|
|
11291
11293
|
pn.prototype.getClass = function() {
|
|
11292
11294
|
return pn;
|
|
11293
11295
|
};
|
|
11294
|
-
|
|
11296
|
+
Eu.fact.get = function() {
|
|
11295
11297
|
return new H();
|
|
11296
11298
|
};
|
|
11297
|
-
Object.defineProperties(pn,
|
|
11299
|
+
Object.defineProperties(pn, Eu);
|
|
11298
11300
|
var le = function() {
|
|
11299
11301
|
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;
|
|
11300
11302
|
var t = arguments[0], e = arguments[1], n = arguments[2];
|
|
11301
11303
|
if (this._originalPt = t, this._pt = t, this._scaleFactor = e, this._li = n, e <= 0)
|
|
11302
11304
|
throw new ft("Scale factor must be non-zero");
|
|
11303
11305
|
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);
|
|
11304
|
-
},
|
|
11306
|
+
}, Iu = { SAFE_ENV_EXPANSION_FACTOR: { configurable: !0 } };
|
|
11305
11307
|
le.prototype.intersectsScaled = function(t, e) {
|
|
11306
11308
|
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;
|
|
11307
11309
|
if (a)
|
|
@@ -11349,10 +11351,10 @@ le.prototype.interfaces_ = function() {
|
|
|
11349
11351
|
le.prototype.getClass = function() {
|
|
11350
11352
|
return le;
|
|
11351
11353
|
};
|
|
11352
|
-
|
|
11354
|
+
Iu.SAFE_ENV_EXPANSION_FACTOR.get = function() {
|
|
11353
11355
|
return 0.75;
|
|
11354
11356
|
};
|
|
11355
|
-
Object.defineProperties(le,
|
|
11357
|
+
Object.defineProperties(le, Iu);
|
|
11356
11358
|
var ao = function() {
|
|
11357
11359
|
this.tempEnv1 = new M(), this.selectedSegment = new A();
|
|
11358
11360
|
};
|
|
@@ -11374,13 +11376,13 @@ var Ni = function() {
|
|
|
11374
11376
|
this._index = null;
|
|
11375
11377
|
var t = arguments[0];
|
|
11376
11378
|
this._index = t;
|
|
11377
|
-
},
|
|
11379
|
+
}, Cu = { HotPixelSnapAction: { configurable: !0 } };
|
|
11378
11380
|
Ni.prototype.snap = function() {
|
|
11379
11381
|
if (arguments.length === 1) {
|
|
11380
11382
|
var t = arguments[0];
|
|
11381
11383
|
return this.snap(t, null, -1);
|
|
11382
11384
|
} else if (arguments.length === 3) {
|
|
11383
|
-
var e = arguments[0], n = arguments[1], i = arguments[2], o = e.getSafeEnvelope(), s = new
|
|
11385
|
+
var e = arguments[0], n = arguments[1], i = arguments[2], o = e.getSafeEnvelope(), s = new Nu(e, n, i);
|
|
11384
11386
|
return this._index.query(o, {
|
|
11385
11387
|
interfaces_: function() {
|
|
11386
11388
|
return [ir];
|
|
@@ -11398,11 +11400,11 @@ Ni.prototype.interfaces_ = function() {
|
|
|
11398
11400
|
Ni.prototype.getClass = function() {
|
|
11399
11401
|
return Ni;
|
|
11400
11402
|
};
|
|
11401
|
-
|
|
11402
|
-
return
|
|
11403
|
+
Cu.HotPixelSnapAction.get = function() {
|
|
11404
|
+
return Nu;
|
|
11403
11405
|
};
|
|
11404
|
-
Object.defineProperties(Ni,
|
|
11405
|
-
var
|
|
11406
|
+
Object.defineProperties(Ni, Cu);
|
|
11407
|
+
var Nu = function(r) {
|
|
11406
11408
|
function t() {
|
|
11407
11409
|
r.call(this), this._hotPixel = null, this._parentEdge = null, this._hotPixelVertexIndex = null, this._isNodeAdded = !1;
|
|
11408
11410
|
var e = arguments[0], n = arguments[1], i = arguments[2];
|
|
@@ -11461,7 +11463,7 @@ Rn.prototype.checkCorrectness = function(t) {
|
|
|
11461
11463
|
try {
|
|
11462
11464
|
n.checkValid();
|
|
11463
11465
|
} catch (i) {
|
|
11464
|
-
if (i instanceof
|
|
11466
|
+
if (i instanceof su)
|
|
11465
11467
|
i.printStackTrace();
|
|
11466
11468
|
else
|
|
11467
11469
|
throw i;
|
|
@@ -11493,7 +11495,7 @@ Rn.prototype.computeVertexSnaps = function() {
|
|
|
11493
11495
|
}
|
|
11494
11496
|
};
|
|
11495
11497
|
Rn.prototype.computeNodes = function(t) {
|
|
11496
|
-
this._nodedSegStrings = t, this._noder = new
|
|
11498
|
+
this._nodedSegStrings = t, this._noder = new Us(), this._pointSnapper = new Ni(this._noder.getIndex()), this.snapRound(t, this._li);
|
|
11497
11499
|
};
|
|
11498
11500
|
Rn.prototype.computeIntersectionSnaps = function(t) {
|
|
11499
11501
|
for (var e = this, n = t.iterator(); n.hasNext(); ) {
|
|
@@ -11709,7 +11711,7 @@ In.computeDistance = function() {
|
|
|
11709
11711
|
};
|
|
11710
11712
|
var Lr = function(t) {
|
|
11711
11713
|
this._maxPtDist = new Zt(), this._inputGeom = t || null;
|
|
11712
|
-
},
|
|
11714
|
+
}, qs = { MaxPointDistanceFilter: { configurable: !0 }, MaxMidpointDistanceFilter: { configurable: !0 } };
|
|
11713
11715
|
Lr.prototype.computeMaxMidpointDistance = function(t) {
|
|
11714
11716
|
var e = new ur(this._inputGeom);
|
|
11715
11717
|
t.apply(e), this._maxPtDist.setMaximum(e.getMaxPointDistance());
|
|
@@ -11730,13 +11732,13 @@ Lr.prototype.interfaces_ = function() {
|
|
|
11730
11732
|
Lr.prototype.getClass = function() {
|
|
11731
11733
|
return Lr;
|
|
11732
11734
|
};
|
|
11733
|
-
|
|
11735
|
+
qs.MaxPointDistanceFilter.get = function() {
|
|
11734
11736
|
return Wr;
|
|
11735
11737
|
};
|
|
11736
|
-
|
|
11738
|
+
qs.MaxMidpointDistanceFilter.get = function() {
|
|
11737
11739
|
return ur;
|
|
11738
11740
|
};
|
|
11739
|
-
Object.defineProperties(Lr,
|
|
11741
|
+
Object.defineProperties(Lr, qs);
|
|
11740
11742
|
var Wr = function(t) {
|
|
11741
11743
|
this._maxPtDist = new Zt(), this._minPtDist = new Zt(), this._geom = t || null;
|
|
11742
11744
|
};
|
|
@@ -11950,7 +11952,7 @@ var $t = function r() {
|
|
|
11950
11952
|
var n = arguments[0], i = arguments[1], o = arguments[2];
|
|
11951
11953
|
this._component = n, this._segIndex = i, this._pt = o;
|
|
11952
11954
|
}
|
|
11953
|
-
},
|
|
11955
|
+
}, xu = { INSIDE_AREA: { configurable: !0 } };
|
|
11954
11956
|
$t.prototype.isInsideArea = function() {
|
|
11955
11957
|
return this._segIndex === $t.INSIDE_AREA;
|
|
11956
11958
|
};
|
|
@@ -11969,10 +11971,10 @@ $t.prototype.interfaces_ = function() {
|
|
|
11969
11971
|
$t.prototype.getClass = function() {
|
|
11970
11972
|
return $t;
|
|
11971
11973
|
};
|
|
11972
|
-
|
|
11974
|
+
xu.INSIDE_AREA.get = function() {
|
|
11973
11975
|
return -1;
|
|
11974
11976
|
};
|
|
11975
|
-
Object.defineProperties($t,
|
|
11977
|
+
Object.defineProperties($t, xu);
|
|
11976
11978
|
var er = function(t) {
|
|
11977
11979
|
this._pts = t || null;
|
|
11978
11980
|
};
|
|
@@ -12251,7 +12253,7 @@ var Oe = function() {
|
|
|
12251
12253
|
this._g0 = null, this._g1 = null, this._ptDist = new Yt(), this._densifyFrac = 0;
|
|
12252
12254
|
var t = arguments[0], e = arguments[1];
|
|
12253
12255
|
this._g0 = t, this._g1 = e;
|
|
12254
|
-
},
|
|
12256
|
+
}, Xs = { MaxPointDistanceFilter: { configurable: !0 }, MaxDensifiedByFractionDistanceFilter: { configurable: !0 } };
|
|
12255
12257
|
Oe.prototype.getCoordinates = function() {
|
|
12256
12258
|
return this._ptDist.getCoordinates();
|
|
12257
12259
|
};
|
|
@@ -12291,13 +12293,13 @@ Oe.distance = function() {
|
|
|
12291
12293
|
return a.setDensifyFraction(s), a.distance();
|
|
12292
12294
|
}
|
|
12293
12295
|
};
|
|
12294
|
-
|
|
12296
|
+
Xs.MaxPointDistanceFilter.get = function() {
|
|
12295
12297
|
return Kr;
|
|
12296
12298
|
};
|
|
12297
|
-
|
|
12299
|
+
Xs.MaxDensifiedByFractionDistanceFilter.get = function() {
|
|
12298
12300
|
return lr;
|
|
12299
12301
|
};
|
|
12300
|
-
Object.defineProperties(Oe,
|
|
12302
|
+
Object.defineProperties(Oe, Xs);
|
|
12301
12303
|
var Kr = function() {
|
|
12302
12304
|
this._maxPtDist = new Yt(), this._minPtDist = new Yt(), this._euclideanDist = new nn(), this._geom = null;
|
|
12303
12305
|
var t = arguments[0];
|
|
@@ -12346,7 +12348,7 @@ lr.prototype.getClass = function() {
|
|
|
12346
12348
|
};
|
|
12347
12349
|
var fe = function(t, e, n) {
|
|
12348
12350
|
this._minValidDistance = null, this._maxValidDistance = null, this._minDistanceFound = null, this._maxDistanceFound = null, this._isValid = !0, this._errMsg = null, this._errorLocation = null, this._errorIndicator = null, this._input = t || null, this._bufDistance = e || null, this._result = n || null;
|
|
12349
|
-
},
|
|
12351
|
+
}, Ys = { VERBOSE: { configurable: !0 }, MAX_DISTANCE_DIFF_FRAC: { configurable: !0 } };
|
|
12350
12352
|
fe.prototype.checkMaximumDistance = function(t, e, n) {
|
|
12351
12353
|
var i = new Oe(e, t);
|
|
12352
12354
|
if (i.setDensifyFraction(0.25), this._maxDistanceFound = i.orientedDistance(), this._maxDistanceFound > n) {
|
|
@@ -12403,16 +12405,16 @@ fe.prototype.interfaces_ = function() {
|
|
|
12403
12405
|
fe.prototype.getClass = function() {
|
|
12404
12406
|
return fe;
|
|
12405
12407
|
};
|
|
12406
|
-
|
|
12408
|
+
Ys.VERBOSE.get = function() {
|
|
12407
12409
|
return !1;
|
|
12408
12410
|
};
|
|
12409
|
-
|
|
12411
|
+
Ys.MAX_DISTANCE_DIFF_FRAC.get = function() {
|
|
12410
12412
|
return 0.012;
|
|
12411
12413
|
};
|
|
12412
|
-
Object.defineProperties(fe,
|
|
12414
|
+
Object.defineProperties(fe, Ys);
|
|
12413
12415
|
var Ut = function(t, e, n) {
|
|
12414
12416
|
this._isValid = !0, this._errorMsg = null, this._errorLocation = null, this._errorIndicator = null, this._input = t || null, this._distance = e || null, this._result = n || null;
|
|
12415
|
-
},
|
|
12417
|
+
}, Hs = { VERBOSE: { configurable: !0 }, MAX_ENV_DIFF_FRAC: { configurable: !0 } };
|
|
12416
12418
|
Ut.prototype.isValid = function() {
|
|
12417
12419
|
return this.checkPolygonal(), this._isValid ? (this.checkExpectedEmpty(), this._isValid ? (this.checkEnvelope(), this._isValid ? (this.checkArea(), this._isValid ? (this.checkDistance(), this._isValid) : this._isValid) : this._isValid) : this._isValid) : this._isValid;
|
|
12418
12420
|
};
|
|
@@ -12470,13 +12472,13 @@ Ut.isValid = function(t, e, n) {
|
|
|
12470
12472
|
var i = new Ut(t, e, n);
|
|
12471
12473
|
return !!i.isValid();
|
|
12472
12474
|
};
|
|
12473
|
-
|
|
12475
|
+
Hs.VERBOSE.get = function() {
|
|
12474
12476
|
return !1;
|
|
12475
12477
|
};
|
|
12476
|
-
|
|
12478
|
+
Hs.MAX_ENV_DIFF_FRAC.get = function() {
|
|
12477
12479
|
return 0.012;
|
|
12478
12480
|
};
|
|
12479
|
-
Object.defineProperties(Ut,
|
|
12481
|
+
Object.defineProperties(Ut, Hs);
|
|
12480
12482
|
var dn = function() {
|
|
12481
12483
|
this._pts = null, this._data = null;
|
|
12482
12484
|
var t = arguments[0], e = arguments[1];
|
|
@@ -12596,7 +12598,7 @@ je.prototype.setFindAllIntersections = function(t) {
|
|
|
12596
12598
|
};
|
|
12597
12599
|
je.prototype.checkInteriorIntersections = function() {
|
|
12598
12600
|
this._isValid = !0, this._segInt = new Dt(this._li), this._segInt.setFindAllIntersections(this._findAllIntersections);
|
|
12599
|
-
var t = new
|
|
12601
|
+
var t = new Us();
|
|
12600
12602
|
if (t.setSegmentIntersector(this._segInt), t.computeNodes(this._segStrings), this._segInt.hasIntersection())
|
|
12601
12603
|
return this._isValid = !1, null;
|
|
12602
12604
|
};
|
|
@@ -12914,13 +12916,13 @@ On.isClosed = function(t) {
|
|
|
12914
12916
|
};
|
|
12915
12917
|
var _t = function(t) {
|
|
12916
12918
|
this._srcGeom = t || null;
|
|
12917
|
-
},
|
|
12919
|
+
}, Su = { SNAP_PRECISION_FACTOR: { configurable: !0 } };
|
|
12918
12920
|
_t.prototype.snapTo = function(t, e) {
|
|
12919
|
-
var n = this.extractTargetCoordinates(t), i = new
|
|
12921
|
+
var n = this.extractTargetCoordinates(t), i = new wu(e, n);
|
|
12920
12922
|
return i.transform(this._srcGeom);
|
|
12921
12923
|
};
|
|
12922
12924
|
_t.prototype.snapToSelf = function(t, e) {
|
|
12923
|
-
var n = this.extractTargetCoordinates(this._srcGeom), i = new
|
|
12925
|
+
var n = this.extractTargetCoordinates(this._srcGeom), i = new wu(t, n, !0), o = i.transform(this._srcGeom), s = o;
|
|
12924
12926
|
return e && z(s, rr) && (s = o.buffer(0)), s;
|
|
12925
12927
|
};
|
|
12926
12928
|
_t.prototype.computeSnapTolerance = function(t) {
|
|
@@ -12972,11 +12974,11 @@ _t.snapToSelf = function(t, e, n) {
|
|
|
12972
12974
|
var i = new _t(t);
|
|
12973
12975
|
return i.snapToSelf(e, n);
|
|
12974
12976
|
};
|
|
12975
|
-
|
|
12977
|
+
Su.SNAP_PRECISION_FACTOR.get = function() {
|
|
12976
12978
|
return 1e-9;
|
|
12977
12979
|
};
|
|
12978
|
-
Object.defineProperties(_t,
|
|
12979
|
-
var
|
|
12980
|
+
Object.defineProperties(_t, Su);
|
|
12981
|
+
var wu = function(r) {
|
|
12980
12982
|
function t(e, n, i) {
|
|
12981
12983
|
r.call(this), this._snapTolerance = e || null, this._snapPts = n || null, this._isSelfSnap = i !== void 0 ? i : !1;
|
|
12982
12984
|
}
|
|
@@ -13039,7 +13041,7 @@ Jt.numCommonMostSigMantissaBits = function(t, e) {
|
|
|
13039
13041
|
};
|
|
13040
13042
|
var cr = function() {
|
|
13041
13043
|
this._commonCoord = null, this._ccFilter = new Zr();
|
|
13042
|
-
},
|
|
13044
|
+
}, Ws = { CommonCoordinateFilter: { configurable: !0 }, Translater: { configurable: !0 } };
|
|
13043
13045
|
cr.prototype.addCommonBits = function(t) {
|
|
13044
13046
|
var e = new fr(this._commonCoord);
|
|
13045
13047
|
t.apply(e), t.geometryChanged();
|
|
@@ -13064,13 +13066,13 @@ cr.prototype.interfaces_ = function() {
|
|
|
13064
13066
|
cr.prototype.getClass = function() {
|
|
13065
13067
|
return cr;
|
|
13066
13068
|
};
|
|
13067
|
-
|
|
13069
|
+
Ws.CommonCoordinateFilter.get = function() {
|
|
13068
13070
|
return Zr;
|
|
13069
13071
|
};
|
|
13070
|
-
|
|
13072
|
+
Ws.Translater.get = function() {
|
|
13071
13073
|
return fr;
|
|
13072
13074
|
};
|
|
13073
|
-
Object.defineProperties(cr,
|
|
13075
|
+
Object.defineProperties(cr, Ws);
|
|
13074
13076
|
var Zr = function() {
|
|
13075
13077
|
this._commonBitsX = new Jt(), this._commonBitsY = new Jt();
|
|
13076
13078
|
};
|
|
@@ -13227,7 +13229,7 @@ var de = function r() {
|
|
|
13227
13229
|
var n = arguments[0], i = arguments[1], o = arguments[2];
|
|
13228
13230
|
this._eventType = r.INSERT, this._label = n, this._xValue = i, this._obj = o;
|
|
13229
13231
|
}
|
|
13230
|
-
},
|
|
13232
|
+
}, js = { INSERT: { configurable: !0 }, DELETE: { configurable: !0 } };
|
|
13231
13233
|
de.prototype.isDelete = function() {
|
|
13232
13234
|
return this._eventType === de.DELETE;
|
|
13233
13235
|
};
|
|
@@ -13259,13 +13261,13 @@ de.prototype.interfaces_ = function() {
|
|
|
13259
13261
|
de.prototype.getClass = function() {
|
|
13260
13262
|
return de;
|
|
13261
13263
|
};
|
|
13262
|
-
|
|
13264
|
+
js.INSERT.get = function() {
|
|
13263
13265
|
return 1;
|
|
13264
13266
|
};
|
|
13265
|
-
|
|
13267
|
+
js.DELETE.get = function() {
|
|
13266
13268
|
return 2;
|
|
13267
13269
|
};
|
|
13268
|
-
Object.defineProperties(de,
|
|
13270
|
+
Object.defineProperties(de, js);
|
|
13269
13271
|
var ko = function() {
|
|
13270
13272
|
};
|
|
13271
13273
|
ko.prototype.interfaces_ = function() {
|
|
@@ -13339,7 +13341,7 @@ qt.prototype.getClass = function() {
|
|
|
13339
13341
|
qt.isAdjacentSegments = function(t, e) {
|
|
13340
13342
|
return Math.abs(t - e) === 1;
|
|
13341
13343
|
};
|
|
13342
|
-
var
|
|
13344
|
+
var bc = function(r) {
|
|
13343
13345
|
function t() {
|
|
13344
13346
|
r.call(this), this.events = new b(), this.nOverlaps = null;
|
|
13345
13347
|
}
|
|
@@ -13401,7 +13403,7 @@ var Lc = function(r) {
|
|
|
13401
13403
|
}, t;
|
|
13402
13404
|
}(ko), Dn = function() {
|
|
13403
13405
|
this._min = V.POSITIVE_INFINITY, this._max = V.NEGATIVE_INFINITY;
|
|
13404
|
-
},
|
|
13406
|
+
}, Lu = { NodeComparator: { configurable: !0 } };
|
|
13405
13407
|
Dn.prototype.getMin = function() {
|
|
13406
13408
|
return this._min;
|
|
13407
13409
|
};
|
|
@@ -13420,10 +13422,10 @@ Dn.prototype.interfaces_ = function() {
|
|
|
13420
13422
|
Dn.prototype.getClass = function() {
|
|
13421
13423
|
return Dn;
|
|
13422
13424
|
};
|
|
13423
|
-
|
|
13425
|
+
Lu.NodeComparator.get = function() {
|
|
13424
13426
|
return lo;
|
|
13425
13427
|
};
|
|
13426
|
-
Object.defineProperties(Dn,
|
|
13428
|
+
Object.defineProperties(Dn, Lu);
|
|
13427
13429
|
var lo = function() {
|
|
13428
13430
|
};
|
|
13429
13431
|
lo.prototype.compare = function(t, e) {
|
|
@@ -13436,7 +13438,7 @@ lo.prototype.interfaces_ = function() {
|
|
|
13436
13438
|
lo.prototype.getClass = function() {
|
|
13437
13439
|
return lo;
|
|
13438
13440
|
};
|
|
13439
|
-
var
|
|
13441
|
+
var Pc = function(r) {
|
|
13440
13442
|
function t() {
|
|
13441
13443
|
r.call(this), this._item = null;
|
|
13442
13444
|
var e = arguments[0], n = arguments[1], i = arguments[2];
|
|
@@ -13451,7 +13453,7 @@ var bc = function(r) {
|
|
|
13451
13453
|
}, t.prototype.getClass = function() {
|
|
13452
13454
|
return t;
|
|
13453
13455
|
}, t;
|
|
13454
|
-
}(Dn),
|
|
13456
|
+
}(Dn), Rc = function(r) {
|
|
13455
13457
|
function t() {
|
|
13456
13458
|
r.call(this), this._node1 = null, this._node2 = null;
|
|
13457
13459
|
var e = arguments[0], n = arguments[1];
|
|
@@ -13483,7 +13485,7 @@ Tn.prototype.buildTree = function() {
|
|
|
13483
13485
|
Tn.prototype.insert = function(t, e, n) {
|
|
13484
13486
|
if (this._root !== null)
|
|
13485
13487
|
throw new Error("Index cannot be added to once it has been queried");
|
|
13486
|
-
this._leaves.add(new
|
|
13488
|
+
this._leaves.add(new Pc(t, e, n));
|
|
13487
13489
|
};
|
|
13488
13490
|
Tn.prototype.query = function(t, e, n) {
|
|
13489
13491
|
this.init(), this._root.query(t, e, n);
|
|
@@ -13508,7 +13510,7 @@ Tn.prototype.buildLevel = function(t, e) {
|
|
|
13508
13510
|
if (o === null)
|
|
13509
13511
|
e.add(i);
|
|
13510
13512
|
else {
|
|
13511
|
-
var s = new
|
|
13513
|
+
var s = new Rc(t.get(n), t.get(n + 1));
|
|
13512
13514
|
e.add(s);
|
|
13513
13515
|
}
|
|
13514
13516
|
}
|
|
@@ -13540,7 +13542,7 @@ var Si = function() {
|
|
|
13540
13542
|
if (!z(t, rr))
|
|
13541
13543
|
throw new ft("Argument must be Polygonal");
|
|
13542
13544
|
this._index = new Pr(t);
|
|
13543
|
-
},
|
|
13545
|
+
}, Ks = { SegmentVisitor: { configurable: !0 }, IntervalIndexedGeometry: { configurable: !0 } };
|
|
13544
13546
|
Si.prototype.locate = function(t) {
|
|
13545
13547
|
var e = new on(t), n = new wi(e);
|
|
13546
13548
|
return this._index.query(t.y, t.y, n), e.getLocation();
|
|
@@ -13551,13 +13553,13 @@ Si.prototype.interfaces_ = function() {
|
|
|
13551
13553
|
Si.prototype.getClass = function() {
|
|
13552
13554
|
return Si;
|
|
13553
13555
|
};
|
|
13554
|
-
|
|
13556
|
+
Ks.SegmentVisitor.get = function() {
|
|
13555
13557
|
return wi;
|
|
13556
13558
|
};
|
|
13557
|
-
|
|
13559
|
+
Ks.IntervalIndexedGeometry.get = function() {
|
|
13558
13560
|
return Pr;
|
|
13559
13561
|
};
|
|
13560
|
-
Object.defineProperties(Si,
|
|
13562
|
+
Object.defineProperties(Si, Ks);
|
|
13561
13563
|
var wi = function() {
|
|
13562
13564
|
this._counter = null;
|
|
13563
13565
|
var t = arguments[0];
|
|
@@ -13607,7 +13609,7 @@ Pr.prototype.getClass = function() {
|
|
|
13607
13609
|
};
|
|
13608
13610
|
var Ui = function(r) {
|
|
13609
13611
|
function t() {
|
|
13610
|
-
if (r.call(this), this._parentGeom = null, this._lineEdgeMap = new
|
|
13612
|
+
if (r.call(this), this._parentGeom = null, this._lineEdgeMap = new cu(), 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) {
|
|
13611
13613
|
var e = arguments[0], n = arguments[1], i = De.OGC_SFS_BOUNDARY_RULE;
|
|
13612
13614
|
this._argIndex = e, this._parentGeom = n, this._boundaryNodeRule = i, n !== null && this.add(n);
|
|
13613
13615
|
} else if (arguments.length === 3) {
|
|
@@ -13699,7 +13701,7 @@ var Ui = function(r) {
|
|
|
13699
13701
|
var s = this._nodes.addNode(i), a = s.getLabel();
|
|
13700
13702
|
a === null ? s._label = new nt(n, o) : a.setLocation(n, o);
|
|
13701
13703
|
}, t.prototype.createEdgeSetIntersector = function() {
|
|
13702
|
-
return new
|
|
13704
|
+
return new bc();
|
|
13703
13705
|
}, t.prototype.addSelfIntersectionNodes = function(n) {
|
|
13704
13706
|
for (var i = this, o = this._edges.iterator(); o.hasNext(); )
|
|
13705
13707
|
for (var s = o.next(), a = s.getLabel().getLocation(n), u = s.eiList.iterator(); u.hasNext(); ) {
|
|
@@ -13801,7 +13803,7 @@ _r.MapOp = function() {
|
|
|
13801
13803
|
var U = function(r) {
|
|
13802
13804
|
function t() {
|
|
13803
13805
|
var e = arguments[0], n = arguments[1];
|
|
13804
|
-
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 gt(new
|
|
13806
|
+
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 gt(new mu()), this._geomFact = e.getFactory();
|
|
13805
13807
|
}
|
|
13806
13808
|
return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t.prototype.insertUniqueEdge = function(n) {
|
|
13807
13809
|
var i = this._edgeList.findEqualEdge(n);
|
|
@@ -14089,7 +14091,7 @@ var Se = function r() {
|
|
|
14089
14091
|
this._geom = null, this._locFinder = null, this._location = new Array(3).fill(null), this._invalidLocation = null, this._boundaryDistanceTolerance = r.TOLERANCE, this._testCoords = new b();
|
|
14090
14092
|
var t = arguments[0], e = arguments[1], n = arguments[2];
|
|
14091
14093
|
this._boundaryDistanceTolerance = r.computeBoundaryDistanceTolerance(t, e), this._geom = [t, e, n], this._locFinder = [new nr(this._geom[0], this._boundaryDistanceTolerance), new nr(this._geom[1], this._boundaryDistanceTolerance), new nr(this._geom[2], this._boundaryDistanceTolerance)];
|
|
14092
|
-
},
|
|
14094
|
+
}, bu = { TOLERANCE: { configurable: !0 } };
|
|
14093
14095
|
Se.prototype.reportResult = function(t, e, n) {
|
|
14094
14096
|
zt.out.println("Overlay result invalid - A:" + _.toLocationSymbol(e[0]) + " B:" + _.toLocationSymbol(e[1]) + " expected:" + (n ? "i" : "e") + " actual:" + _.toLocationSymbol(e[2]));
|
|
14095
14097
|
};
|
|
@@ -14142,10 +14144,10 @@ Se.isValid = function(t, e, n, i) {
|
|
|
14142
14144
|
var o = new Se(t, e, i);
|
|
14143
14145
|
return o.isValid(n);
|
|
14144
14146
|
};
|
|
14145
|
-
|
|
14147
|
+
bu.TOLERANCE.get = function() {
|
|
14146
14148
|
return 1e-6;
|
|
14147
14149
|
};
|
|
14148
|
-
Object.defineProperties(Se,
|
|
14150
|
+
Object.defineProperties(Se, bu);
|
|
14149
14151
|
var me = function r(t) {
|
|
14150
14152
|
this._geomFactory = null, this._skipEmpty = !1, this._inputGeoms = null, this._geomFactory = r.extractFactory(t), this._inputGeoms = t;
|
|
14151
14153
|
};
|
|
@@ -14199,7 +14201,7 @@ var Nt = function() {
|
|
|
14199
14201
|
this._inputPolys = null, this._geomFactory = null;
|
|
14200
14202
|
var t = arguments[0];
|
|
14201
14203
|
this._inputPolys = t, this._inputPolys === null && (this._inputPolys = new b());
|
|
14202
|
-
},
|
|
14204
|
+
}, Pu = { STRTREE_NODE_CAPACITY: { configurable: !0 } };
|
|
14203
14205
|
Nt.prototype.reduceToGeometries = function(t) {
|
|
14204
14206
|
for (var e = this, n = new b(), i = t.iterator(); i.hasNext(); ) {
|
|
14205
14207
|
var o = i.next(), s = null;
|
|
@@ -14231,7 +14233,7 @@ Nt.prototype.union = function() {
|
|
|
14231
14233
|
if (this._inputPolys.isEmpty())
|
|
14232
14234
|
return null;
|
|
14233
14235
|
this._geomFactory = this._inputPolys.iterator().next().getFactory();
|
|
14234
|
-
for (var t = new
|
|
14236
|
+
for (var t = new pu(Nt.STRTREE_NODE_CAPACITY), e = this._inputPolys.iterator(); e.hasNext(); ) {
|
|
14235
14237
|
var n = e.next();
|
|
14236
14238
|
t.insert(n.getEnvelopeInternal(), n);
|
|
14237
14239
|
}
|
|
@@ -14307,10 +14309,10 @@ Nt.union = function(t) {
|
|
|
14307
14309
|
var e = new Nt(t);
|
|
14308
14310
|
return e.union();
|
|
14309
14311
|
};
|
|
14310
|
-
|
|
14312
|
+
Pu.STRTREE_NODE_CAPACITY.get = function() {
|
|
14311
14313
|
return 4;
|
|
14312
14314
|
};
|
|
14313
|
-
Object.defineProperties(Nt,
|
|
14315
|
+
Object.defineProperties(Nt, Pu);
|
|
14314
14316
|
var zo = function() {
|
|
14315
14317
|
};
|
|
14316
14318
|
zo.prototype.interfaces_ = function() {
|
|
@@ -14342,19 +14344,19 @@ Vo.prototype = {
|
|
|
14342
14344
|
this.s = this.t = 0;
|
|
14343
14345
|
},
|
|
14344
14346
|
add: function(r) {
|
|
14345
|
-
|
|
14347
|
+
Sa(Co, r, this.t), Sa(this, Co.s, this.s), this.s ? this.t += Co.t : this.s = Co.t;
|
|
14346
14348
|
},
|
|
14347
14349
|
valueOf: function() {
|
|
14348
14350
|
return this.s;
|
|
14349
14351
|
}
|
|
14350
14352
|
};
|
|
14351
14353
|
var Co = new Vo();
|
|
14352
|
-
function
|
|
14354
|
+
function Sa(r, t, e) {
|
|
14353
14355
|
var n = r.s = t + e, i = n - t, o = n - i;
|
|
14354
14356
|
r.t = t - o + (e - i);
|
|
14355
14357
|
}
|
|
14356
|
-
var pt = 1e-6, ot = Math.PI, Xn = ot / 2,
|
|
14357
|
-
function
|
|
14358
|
+
var pt = 1e-6, ot = Math.PI, Xn = ot / 2, wa = ot / 4, Jn = ot * 2, dr = 180 / ot, tn = ot / 180, te = Math.abs, Oc = Math.atan, Pi = Math.atan2, Lt = Math.cos, bt = Math.sin, ki = Math.sqrt;
|
|
14359
|
+
function Ru(r) {
|
|
14358
14360
|
return r > 1 ? 0 : r < -1 ? ot : Math.acos(r);
|
|
14359
14361
|
}
|
|
14360
14362
|
function $r(r) {
|
|
@@ -14363,9 +14365,9 @@ function $r(r) {
|
|
|
14363
14365
|
function qi() {
|
|
14364
14366
|
}
|
|
14365
14367
|
function Uo(r, t) {
|
|
14366
|
-
r &&
|
|
14368
|
+
r && ba.hasOwnProperty(r.type) && ba[r.type](r, t);
|
|
14367
14369
|
}
|
|
14368
|
-
var
|
|
14370
|
+
var La = {
|
|
14369
14371
|
Feature: function(r, t) {
|
|
14370
14372
|
Uo(r.geometry, t);
|
|
14371
14373
|
},
|
|
@@ -14373,7 +14375,7 @@ var wa = {
|
|
|
14373
14375
|
for (var e = r.features, n = -1, i = e.length; ++n < i; )
|
|
14374
14376
|
Uo(e[n].geometry, t);
|
|
14375
14377
|
}
|
|
14376
|
-
},
|
|
14378
|
+
}, ba = {
|
|
14377
14379
|
Sphere: function(r, t) {
|
|
14378
14380
|
t.sphere();
|
|
14379
14381
|
},
|
|
@@ -14385,42 +14387,42 @@ var wa = {
|
|
|
14385
14387
|
r = e[n], t.point(r[0], r[1], r[2]);
|
|
14386
14388
|
},
|
|
14387
14389
|
LineString: function(r, t) {
|
|
14388
|
-
|
|
14390
|
+
bs(r.coordinates, t, 0);
|
|
14389
14391
|
},
|
|
14390
14392
|
MultiLineString: function(r, t) {
|
|
14391
14393
|
for (var e = r.coordinates, n = -1, i = e.length; ++n < i; )
|
|
14392
|
-
|
|
14394
|
+
bs(e[n], t, 0);
|
|
14393
14395
|
},
|
|
14394
14396
|
Polygon: function(r, t) {
|
|
14395
|
-
|
|
14397
|
+
Pa(r.coordinates, t);
|
|
14396
14398
|
},
|
|
14397
14399
|
MultiPolygon: function(r, t) {
|
|
14398
14400
|
for (var e = r.coordinates, n = -1, i = e.length; ++n < i; )
|
|
14399
|
-
|
|
14401
|
+
Pa(e[n], t);
|
|
14400
14402
|
},
|
|
14401
14403
|
GeometryCollection: function(r, t) {
|
|
14402
14404
|
for (var e = r.geometries, n = -1, i = e.length; ++n < i; )
|
|
14403
14405
|
Uo(e[n], t);
|
|
14404
14406
|
}
|
|
14405
14407
|
};
|
|
14406
|
-
function
|
|
14408
|
+
function bs(r, t, e) {
|
|
14407
14409
|
var n = -1, i = r.length - e, o;
|
|
14408
14410
|
for (t.lineStart(); ++n < i; )
|
|
14409
14411
|
o = r[n], t.point(o[0], o[1], o[2]);
|
|
14410
14412
|
t.lineEnd();
|
|
14411
14413
|
}
|
|
14412
|
-
function
|
|
14414
|
+
function Pa(r, t) {
|
|
14413
14415
|
var e = -1, n = r.length;
|
|
14414
14416
|
for (t.polygonStart(); ++e < n; )
|
|
14415
|
-
|
|
14417
|
+
bs(r[e], t, 1);
|
|
14416
14418
|
t.polygonEnd();
|
|
14417
14419
|
}
|
|
14418
|
-
function
|
|
14419
|
-
r &&
|
|
14420
|
+
function Dc(r, t) {
|
|
14421
|
+
r && La.hasOwnProperty(r.type) ? La[r.type](r, t) : Uo(r, t);
|
|
14420
14422
|
}
|
|
14421
14423
|
Tr();
|
|
14422
14424
|
Tr();
|
|
14423
|
-
function
|
|
14425
|
+
function Ps(r) {
|
|
14424
14426
|
return [Pi(r[1], r[0]), $r(r[2])];
|
|
14425
14427
|
}
|
|
14426
14428
|
function Ri(r) {
|
|
@@ -14433,18 +14435,18 @@ function No(r, t) {
|
|
|
14433
14435
|
function qo(r, t) {
|
|
14434
14436
|
return [r[1] * t[2] - r[2] * t[1], r[2] * t[0] - r[0] * t[2], r[0] * t[1] - r[1] * t[0]];
|
|
14435
14437
|
}
|
|
14436
|
-
function
|
|
14438
|
+
function ps(r, t) {
|
|
14437
14439
|
r[0] += t[0], r[1] += t[1], r[2] += t[2];
|
|
14438
14440
|
}
|
|
14439
14441
|
function xo(r, t) {
|
|
14440
14442
|
return [r[0] * t, r[1] * t, r[2] * t];
|
|
14441
14443
|
}
|
|
14442
|
-
function
|
|
14444
|
+
function Rs(r) {
|
|
14443
14445
|
var t = ki(r[0] * r[0] + r[1] * r[1] + r[2] * r[2]);
|
|
14444
14446
|
r[0] /= t, r[1] /= t, r[2] /= t;
|
|
14445
14447
|
}
|
|
14446
14448
|
Tr();
|
|
14447
|
-
function
|
|
14449
|
+
function Ou(r, t) {
|
|
14448
14450
|
function e(n, i) {
|
|
14449
14451
|
return n = r(n, i), t(n[0], n[1]);
|
|
14450
14452
|
}
|
|
@@ -14452,23 +14454,23 @@ function Ru(r, t) {
|
|
|
14452
14454
|
return n = t.invert(n, i), n && r.invert(n[0], n[1]);
|
|
14453
14455
|
}), e;
|
|
14454
14456
|
}
|
|
14455
|
-
function
|
|
14457
|
+
function Os(r, t) {
|
|
14456
14458
|
return [r > ot ? r - Jn : r < -ot ? r + Jn : r, t];
|
|
14457
14459
|
}
|
|
14458
|
-
|
|
14459
|
-
function
|
|
14460
|
-
return (r %= Jn) ? t || e ?
|
|
14460
|
+
Os.invert = Os;
|
|
14461
|
+
function Tc(r, t, e) {
|
|
14462
|
+
return (r %= Jn) ? t || e ? Ou(Oa(r), Da(t, e)) : Oa(r) : t || e ? Da(t, e) : Os;
|
|
14461
14463
|
}
|
|
14462
|
-
function
|
|
14464
|
+
function Ra(r) {
|
|
14463
14465
|
return function(t, e) {
|
|
14464
14466
|
return t += r, [t > ot ? t - Jn : t < -ot ? t + Jn : t, e];
|
|
14465
14467
|
};
|
|
14466
14468
|
}
|
|
14467
|
-
function
|
|
14468
|
-
var t =
|
|
14469
|
-
return t.invert =
|
|
14469
|
+
function Oa(r) {
|
|
14470
|
+
var t = Ra(r);
|
|
14471
|
+
return t.invert = Ra(-r), t;
|
|
14470
14472
|
}
|
|
14471
|
-
function
|
|
14473
|
+
function Da(r, t) {
|
|
14472
14474
|
var e = Lt(r), n = bt(r), i = Lt(t), o = bt(t);
|
|
14473
14475
|
function s(a, u) {
|
|
14474
14476
|
var l = Lt(u), c = Lt(a) * l, f = bt(a) * l, h = bt(u), g = h * e + c * n;
|
|
@@ -14485,20 +14487,20 @@ function Oa(r, t) {
|
|
|
14485
14487
|
];
|
|
14486
14488
|
}, s;
|
|
14487
14489
|
}
|
|
14488
|
-
function
|
|
14490
|
+
function Mc(r, t, e, n, i, o) {
|
|
14489
14491
|
if (e) {
|
|
14490
14492
|
var s = Lt(t), a = bt(t), u = n * e;
|
|
14491
|
-
i == null ? (i = t + n * Jn, o = t - u / 2) : (i =
|
|
14493
|
+
i == null ? (i = t + n * Jn, o = t - u / 2) : (i = Ta(s, i), o = Ta(s, o), (n > 0 ? i < o : i > o) && (i += n * Jn));
|
|
14492
14494
|
for (var l, c = i; n > 0 ? c > o : c < o; c -= u)
|
|
14493
|
-
l =
|
|
14495
|
+
l = Ps([s, -a * Lt(c), -a * bt(c)]), r.point(l[0], l[1]);
|
|
14494
14496
|
}
|
|
14495
14497
|
}
|
|
14496
|
-
function
|
|
14497
|
-
t = Ri(t), t[0] -= r,
|
|
14498
|
-
var e =
|
|
14498
|
+
function Ta(r, t) {
|
|
14499
|
+
t = Ri(t), t[0] -= r, Rs(t);
|
|
14500
|
+
var e = Ru(-t[1]);
|
|
14499
14501
|
return ((-t[2] < 0 ? -e : e) + Jn - pt) % Jn;
|
|
14500
14502
|
}
|
|
14501
|
-
function
|
|
14503
|
+
function Du() {
|
|
14502
14504
|
var r = [], t;
|
|
14503
14505
|
return {
|
|
14504
14506
|
point: function(e, n) {
|
|
@@ -14517,7 +14519,7 @@ function Ou() {
|
|
|
14517
14519
|
}
|
|
14518
14520
|
};
|
|
14519
14521
|
}
|
|
14520
|
-
function
|
|
14522
|
+
function Ac(r, t, e, n, i, o) {
|
|
14521
14523
|
var s = r[0], a = r[1], u = t[0], l = t[1], c = 0, f = 1, h = u - s, g = l - a, p;
|
|
14522
14524
|
if (p = e - s, !(!h && p > 0)) {
|
|
14523
14525
|
if (p /= h, h < 0) {
|
|
@@ -14571,7 +14573,7 @@ function Oo(r, t) {
|
|
|
14571
14573
|
function So(r, t, e, n) {
|
|
14572
14574
|
this.x = r, this.z = t, this.o = e, this.e = n, this.v = !1, this.n = this.p = null;
|
|
14573
14575
|
}
|
|
14574
|
-
function
|
|
14576
|
+
function Tu(r, t, e, n, i) {
|
|
14575
14577
|
var o = [], s = [], a, u;
|
|
14576
14578
|
if (r.forEach(function(p) {
|
|
14577
14579
|
if (!((v = p.length - 1) <= 0)) {
|
|
@@ -14585,7 +14587,7 @@ function Du(r, t, e, n, i) {
|
|
|
14585
14587
|
o.push(E = new So(y, p, null, !0)), s.push(E.o = new So(y, null, E, !1)), o.push(E = new So(m, p, null, !1)), s.push(E.o = new So(m, null, E, !0));
|
|
14586
14588
|
}
|
|
14587
14589
|
}), !!o.length) {
|
|
14588
|
-
for (s.sort(t),
|
|
14590
|
+
for (s.sort(t), Ma(o), Ma(s), a = 0, u = s.length; a < u; ++a)
|
|
14589
14591
|
s[a].e = e = !e;
|
|
14590
14592
|
for (var l = o[0], c, f; ; ) {
|
|
14591
14593
|
for (var h = l, g = !0; h.v; )
|
|
@@ -14614,18 +14616,18 @@ function Du(r, t, e, n, i) {
|
|
|
14614
14616
|
}
|
|
14615
14617
|
}
|
|
14616
14618
|
}
|
|
14617
|
-
function
|
|
14619
|
+
function Ma(r) {
|
|
14618
14620
|
if (t = r.length) {
|
|
14619
14621
|
for (var t, e = 0, n = r[0], i; ++e < t; )
|
|
14620
14622
|
n.n = i = r[e], i.p = n, n = i;
|
|
14621
14623
|
n.n = i = r[0], i.p = n;
|
|
14622
14624
|
}
|
|
14623
14625
|
}
|
|
14624
|
-
function
|
|
14626
|
+
function Mu(r, t) {
|
|
14625
14627
|
return r < t ? -1 : r > t ? 1 : r >= t ? 0 : NaN;
|
|
14626
14628
|
}
|
|
14627
|
-
function
|
|
14628
|
-
return r.length === 1 && (r =
|
|
14629
|
+
function Fc(r) {
|
|
14630
|
+
return r.length === 1 && (r = Bc(r)), {
|
|
14629
14631
|
left: function(t, e, n, i) {
|
|
14630
14632
|
for (n == null && (n = 0), i == null && (i = t.length); n < i; ) {
|
|
14631
14633
|
var o = n + i >>> 1;
|
|
@@ -14642,13 +14644,13 @@ function Ac(r) {
|
|
|
14642
14644
|
}
|
|
14643
14645
|
};
|
|
14644
14646
|
}
|
|
14645
|
-
function
|
|
14647
|
+
function Bc(r) {
|
|
14646
14648
|
return function(t, e) {
|
|
14647
|
-
return
|
|
14649
|
+
return Mu(r(t), e);
|
|
14648
14650
|
};
|
|
14649
14651
|
}
|
|
14650
|
-
|
|
14651
|
-
function
|
|
14652
|
+
Fc(Mu);
|
|
14653
|
+
function Au(r) {
|
|
14652
14654
|
for (var t = r.length, e, n = -1, i = 0, o, s; ++n < t; )
|
|
14653
14655
|
i += r[n].length;
|
|
14654
14656
|
for (o = new Array(i); --t >= 0; )
|
|
@@ -14657,7 +14659,7 @@ function Mu(r) {
|
|
|
14657
14659
|
return o;
|
|
14658
14660
|
}
|
|
14659
14661
|
var Xi = 1e9, wo = -Xi;
|
|
14660
|
-
function
|
|
14662
|
+
function Gc(r, t, e, n) {
|
|
14661
14663
|
function i(l, c) {
|
|
14662
14664
|
return r <= l && l <= e && t <= c && c <= n;
|
|
14663
14665
|
}
|
|
@@ -14681,7 +14683,7 @@ function Bc(r, t, e, n) {
|
|
|
14681
14683
|
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];
|
|
14682
14684
|
}
|
|
14683
14685
|
return function(l) {
|
|
14684
|
-
var c = l, f =
|
|
14686
|
+
var c = l, f = Du(), h, g, p, v, y, m, E, N, C, L, w, D = {
|
|
14685
14687
|
point: T,
|
|
14686
14688
|
lineStart: O,
|
|
14687
14689
|
lineEnd: Y,
|
|
@@ -14701,8 +14703,8 @@ function Bc(r, t, e, n) {
|
|
|
14701
14703
|
c = f, h = [], g = [], w = !0;
|
|
14702
14704
|
}
|
|
14703
14705
|
function k() {
|
|
14704
|
-
var X = F(), ut = w && X, yt = (h =
|
|
14705
|
-
(ut || yt) && (l.polygonStart(), ut && (l.lineStart(), o(null, null, 1, l), l.lineEnd()), yt &&
|
|
14706
|
+
var X = F(), ut = w && X, yt = (h = Au(h)).length;
|
|
14707
|
+
(ut || yt) && (l.polygonStart(), ut && (l.lineStart(), o(null, null, 1, l), l.lineEnd()), yt && Tu(h, a, X, o, l), l.polygonEnd()), c = l, h = g = p = null;
|
|
14706
14708
|
}
|
|
14707
14709
|
function O() {
|
|
14708
14710
|
D.point = P, g && g.push(p = []), L = !0, C = !1, E = N = NaN;
|
|
@@ -14718,40 +14720,40 @@ function Bc(r, t, e, n) {
|
|
|
14718
14720
|
c.point(X, ut);
|
|
14719
14721
|
else {
|
|
14720
14722
|
var Xt = [E = Math.max(wo, Math.min(Xi, E)), N = Math.max(wo, Math.min(Xi, N))], we = [X = Math.max(wo, Math.min(Xi, X)), ut = Math.max(wo, Math.min(Xi, ut))];
|
|
14721
|
-
|
|
14723
|
+
Ac(Xt, we, r, t, e, n) ? (C || (c.lineStart(), c.point(Xt[0], Xt[1])), c.point(we[0], we[1]), yt || c.lineEnd(), w = !1) : yt && (c.lineStart(), c.point(X, ut), w = !1);
|
|
14722
14724
|
}
|
|
14723
14725
|
E = X, N = ut, C = yt;
|
|
14724
14726
|
}
|
|
14725
14727
|
return D;
|
|
14726
14728
|
};
|
|
14727
14729
|
}
|
|
14728
|
-
var
|
|
14729
|
-
function
|
|
14730
|
+
var ds = Tr();
|
|
14731
|
+
function kc(r, t) {
|
|
14730
14732
|
var e = t[0], n = t[1], i = [bt(e), -Lt(e), 0], o = 0, s = 0;
|
|
14731
|
-
|
|
14733
|
+
ds.reset();
|
|
14732
14734
|
for (var a = 0, u = r.length; a < u; ++a)
|
|
14733
14735
|
if (c = (l = r[a]).length)
|
|
14734
|
-
for (var l, c, f = l[c - 1], h = f[0], g = f[1] / 2 +
|
|
14735
|
-
var m = l[y], E = m[0], N = m[1] / 2 +
|
|
14736
|
-
if (
|
|
14736
|
+
for (var l, c, f = l[c - 1], h = f[0], g = f[1] / 2 + wa, p = bt(g), v = Lt(g), y = 0; y < c; ++y, h = E, p = C, v = L, f = m) {
|
|
14737
|
+
var m = l[y], E = m[0], N = m[1] / 2 + wa, C = bt(N), L = Lt(N), w = E - h, D = w >= 0 ? 1 : -1, T = D * w, F = T > ot, j = p * C;
|
|
14738
|
+
if (ds.add(Pi(j * D * bt(T), v * L + j * Lt(T))), o += F ? w + D * Jn : w, F ^ h >= e ^ E >= e) {
|
|
14737
14739
|
var k = qo(Ri(f), Ri(m));
|
|
14738
|
-
|
|
14740
|
+
Rs(k);
|
|
14739
14741
|
var O = qo(i, k);
|
|
14740
|
-
|
|
14742
|
+
Rs(O);
|
|
14741
14743
|
var Y = (F ^ w >= 0 ? -1 : 1) * $r(O[2]);
|
|
14742
14744
|
(n > Y || n === Y && (k[0] || k[1])) && (s += F ^ w >= 0 ? 1 : -1);
|
|
14743
14745
|
}
|
|
14744
14746
|
}
|
|
14745
|
-
return (o < -pt || o < pt &&
|
|
14747
|
+
return (o < -pt || o < pt && ds < -pt) ^ s & 1;
|
|
14746
14748
|
}
|
|
14747
14749
|
Tr();
|
|
14748
|
-
function
|
|
14750
|
+
function Aa(r) {
|
|
14749
14751
|
return r;
|
|
14750
14752
|
}
|
|
14751
14753
|
Tr();
|
|
14752
14754
|
Tr();
|
|
14753
|
-
var Oi = 1 / 0, Xo = Oi, co = -Oi, Yo = co,
|
|
14754
|
-
point:
|
|
14755
|
+
var Oi = 1 / 0, Xo = Oi, co = -Oi, Yo = co, Fa = {
|
|
14756
|
+
point: zc,
|
|
14755
14757
|
lineStart: qi,
|
|
14756
14758
|
lineEnd: qi,
|
|
14757
14759
|
polygonStart: qi,
|
|
@@ -14761,13 +14763,13 @@ var Oi = 1 / 0, Xo = Oi, co = -Oi, Yo = co, Aa = {
|
|
|
14761
14763
|
return co = Yo = -(Xo = Oi = 1 / 0), r;
|
|
14762
14764
|
}
|
|
14763
14765
|
};
|
|
14764
|
-
function
|
|
14766
|
+
function zc(r, t) {
|
|
14765
14767
|
r < Oi && (Oi = r), r > co && (co = r), t < Xo && (Xo = t), t > Yo && (Yo = t);
|
|
14766
14768
|
}
|
|
14767
14769
|
Tr();
|
|
14768
|
-
function
|
|
14770
|
+
function Fu(r, t, e, n) {
|
|
14769
14771
|
return function(i, o) {
|
|
14770
|
-
var s = t(o), a = i.invert(n[0], n[1]), u =
|
|
14772
|
+
var s = t(o), a = i.invert(n[0], n[1]), u = Du(), l = t(u), c = !1, f, h, g, p = {
|
|
14771
14773
|
point: v,
|
|
14772
14774
|
lineStart: m,
|
|
14773
14775
|
lineEnd: E,
|
|
@@ -14775,9 +14777,9 @@ function Au(r, t, e, n) {
|
|
|
14775
14777
|
p.point = N, p.lineStart = C, p.lineEnd = L, h = [], f = [];
|
|
14776
14778
|
},
|
|
14777
14779
|
polygonEnd: function() {
|
|
14778
|
-
p.point = v, p.lineStart = m, p.lineEnd = E, h =
|
|
14779
|
-
var w =
|
|
14780
|
-
h.length ? (c || (o.polygonStart(), c = !0),
|
|
14780
|
+
p.point = v, p.lineStart = m, p.lineEnd = E, h = Au(h);
|
|
14781
|
+
var w = kc(f, a);
|
|
14782
|
+
h.length ? (c || (o.polygonStart(), c = !0), Tu(h, Uc, w, e, o)) : w && (c || (o.polygonStart(), c = !0), o.lineStart(), e(null, null, 1, o), o.lineEnd()), c && (o.polygonEnd(), c = !1), h = f = null;
|
|
14781
14783
|
},
|
|
14782
14784
|
sphere: function() {
|
|
14783
14785
|
o.polygonStart(), o.lineStart(), e(null, null, 1, o), o.lineEnd(), o.polygonEnd();
|
|
@@ -14817,27 +14819,27 @@ function Au(r, t, e, n) {
|
|
|
14817
14819
|
}
|
|
14818
14820
|
return;
|
|
14819
14821
|
}
|
|
14820
|
-
F > 1 && w & 2 && D.push(D.pop().concat(D.shift())), h.push(D.filter(
|
|
14822
|
+
F > 1 && w & 2 && D.push(D.pop().concat(D.shift())), h.push(D.filter(Vc));
|
|
14821
14823
|
}
|
|
14822
14824
|
}
|
|
14823
14825
|
return p;
|
|
14824
14826
|
};
|
|
14825
14827
|
}
|
|
14826
|
-
function
|
|
14828
|
+
function Vc(r) {
|
|
14827
14829
|
return r.length > 1;
|
|
14828
14830
|
}
|
|
14829
|
-
function
|
|
14831
|
+
function Uc(r, t) {
|
|
14830
14832
|
return ((r = r.x)[0] < 0 ? r[1] - Xn - pt : Xn - r[1]) - ((t = t.x)[0] < 0 ? t[1] - Xn - pt : Xn - t[1]);
|
|
14831
14833
|
}
|
|
14832
|
-
const
|
|
14834
|
+
const Ba = Fu(
|
|
14833
14835
|
function() {
|
|
14834
14836
|
return !0;
|
|
14835
14837
|
},
|
|
14836
|
-
|
|
14837
|
-
|
|
14838
|
+
qc,
|
|
14839
|
+
Yc,
|
|
14838
14840
|
[-ot, -Xn]
|
|
14839
14841
|
);
|
|
14840
|
-
function
|
|
14842
|
+
function qc(r) {
|
|
14841
14843
|
var t = NaN, e = NaN, n = NaN, i;
|
|
14842
14844
|
return {
|
|
14843
14845
|
lineStart: function() {
|
|
@@ -14845,7 +14847,7 @@ function Uc(r) {
|
|
|
14845
14847
|
},
|
|
14846
14848
|
point: function(o, s) {
|
|
14847
14849
|
var a = o > 0 ? ot : -ot, u = te(o - t);
|
|
14848
|
-
te(u - ot) < pt ? (r.point(t, e = (e + s) / 2 > 0 ? Xn : -Xn), r.point(n, e), r.lineEnd(), r.lineStart(), r.point(a, e), r.point(o, e), i = 0) : n !== a && u >= ot && (te(t - n) < pt && (t -= n * pt), te(o - a) < pt && (o -= a * pt), e =
|
|
14850
|
+
te(u - ot) < pt ? (r.point(t, e = (e + s) / 2 > 0 ? Xn : -Xn), r.point(n, e), r.lineEnd(), r.lineStart(), r.point(a, e), r.point(o, e), i = 0) : n !== a && u >= ot && (te(t - n) < pt && (t -= n * pt), te(o - a) < pt && (o -= a * pt), e = Xc(t, e, o, s), r.point(n, e), r.lineEnd(), r.lineStart(), r.point(a, e), i = 0), r.point(t = o, e = s), n = a;
|
|
14849
14851
|
},
|
|
14850
14852
|
lineEnd: function() {
|
|
14851
14853
|
r.lineEnd(), t = e = NaN;
|
|
@@ -14855,11 +14857,11 @@ function Uc(r) {
|
|
|
14855
14857
|
}
|
|
14856
14858
|
};
|
|
14857
14859
|
}
|
|
14858
|
-
function
|
|
14860
|
+
function Xc(r, t, e, n) {
|
|
14859
14861
|
var i, o, s = bt(r - e);
|
|
14860
|
-
return te(s) > pt ?
|
|
14862
|
+
return te(s) > pt ? Oc((bt(t) * (o = Lt(n)) * bt(e) - bt(n) * (i = Lt(t)) * bt(r)) / (i * o * s)) : (t + n) / 2;
|
|
14861
14863
|
}
|
|
14862
|
-
function
|
|
14864
|
+
function Yc(r, t, e, n) {
|
|
14863
14865
|
var i;
|
|
14864
14866
|
if (r == null)
|
|
14865
14867
|
i = e * Xn, n.point(-ot, i), n.point(0, i), n.point(ot, i), n.point(ot, 0), n.point(ot, -i), n.point(0, -i), n.point(-ot, -i), n.point(-ot, 0), n.point(-ot, i);
|
|
@@ -14869,10 +14871,10 @@ function Xc(r, t, e, n) {
|
|
|
14869
14871
|
} else
|
|
14870
14872
|
n.point(t[0], t[1]);
|
|
14871
14873
|
}
|
|
14872
|
-
function
|
|
14874
|
+
function Hc(r, t) {
|
|
14873
14875
|
var e = Lt(r), n = e > 0, i = te(e) > pt;
|
|
14874
14876
|
function o(c, f, h, g) {
|
|
14875
|
-
|
|
14877
|
+
Mc(g, r, t, h, c, f);
|
|
14876
14878
|
}
|
|
14877
14879
|
function s(c, f) {
|
|
14878
14880
|
return Lt(c) * Lt(f) > e;
|
|
@@ -14906,18 +14908,18 @@ function Yc(r, t) {
|
|
|
14906
14908
|
if (!N)
|
|
14907
14909
|
return !h && c;
|
|
14908
14910
|
var C = e * m / N, L = -e * E / N, w = qo(v, y), D = xo(v, C), T = xo(y, L);
|
|
14909
|
-
|
|
14911
|
+
ps(D, T);
|
|
14910
14912
|
var F = w, j = No(D, F), k = No(F, F), O = j * j - k * (No(D, D) - 1);
|
|
14911
14913
|
if (!(O < 0)) {
|
|
14912
14914
|
var Y = ki(O), P = xo(F, (-j - Y) / k);
|
|
14913
|
-
if (
|
|
14915
|
+
if (ps(P, D), P = Ps(P), !h)
|
|
14914
14916
|
return P;
|
|
14915
14917
|
var X = c[0], ut = f[0], yt = c[1], Xt = f[1], we;
|
|
14916
14918
|
ut < X && (we = X, X = ut, ut = we);
|
|
14917
14919
|
var Mr = ut - X, Ze = te(Mr - ot) < pt, Le = Ze || Mr < pt;
|
|
14918
14920
|
if (!Ze && Xt < yt && (we = yt, yt = Xt, Xt = we), Le ? Ze ? yt + Xt > 0 ^ P[1] < (te(P[0] - X) < pt ? yt : Xt) : yt <= P[1] && P[1] <= Xt : Mr > ot ^ (X <= P[0] && P[0] <= ut)) {
|
|
14919
14921
|
var J = xo(F, (-j + Y) / k);
|
|
14920
|
-
return
|
|
14922
|
+
return ps(J, D), [P, Ps(J)];
|
|
14921
14923
|
}
|
|
14922
14924
|
}
|
|
14923
14925
|
}
|
|
@@ -14925,20 +14927,20 @@ function Yc(r, t) {
|
|
|
14925
14927
|
var h = n ? r : ot - r, g = 0;
|
|
14926
14928
|
return c < -h ? g |= 1 : c > h && (g |= 2), f < -h ? g |= 4 : f > h && (g |= 8), g;
|
|
14927
14929
|
}
|
|
14928
|
-
return
|
|
14930
|
+
return Fu(s, a, o, n ? [0, -r] : [-ot, r - ot]);
|
|
14929
14931
|
}
|
|
14930
|
-
function
|
|
14932
|
+
function Bu(r) {
|
|
14931
14933
|
return function(t) {
|
|
14932
|
-
var e = new
|
|
14934
|
+
var e = new Ds();
|
|
14933
14935
|
for (var n in r)
|
|
14934
14936
|
e[n] = r[n];
|
|
14935
14937
|
return e.stream = t, e;
|
|
14936
14938
|
};
|
|
14937
14939
|
}
|
|
14938
|
-
function
|
|
14940
|
+
function Ds() {
|
|
14939
14941
|
}
|
|
14940
|
-
|
|
14941
|
-
constructor:
|
|
14942
|
+
Ds.prototype = {
|
|
14943
|
+
constructor: Ds,
|
|
14942
14944
|
point: function(r, t) {
|
|
14943
14945
|
this.stream.point(r, t);
|
|
14944
14946
|
},
|
|
@@ -14958,32 +14960,32 @@ Os.prototype = {
|
|
|
14958
14960
|
this.stream.polygonEnd();
|
|
14959
14961
|
}
|
|
14960
14962
|
};
|
|
14961
|
-
function
|
|
14963
|
+
function Gu(r, t, e) {
|
|
14962
14964
|
var n = t[1][0] - t[0][0], i = t[1][1] - t[0][1], o = r.clipExtent && r.clipExtent();
|
|
14963
|
-
r.scale(150).translate([0, 0]), o != null && r.clipExtent(null),
|
|
14964
|
-
var s =
|
|
14965
|
+
r.scale(150).translate([0, 0]), o != null && r.clipExtent(null), Dc(e, r.stream(Fa));
|
|
14966
|
+
var s = Fa.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;
|
|
14965
14967
|
return o != null && r.clipExtent(o), r.scale(a * 150).translate([u, l]);
|
|
14966
14968
|
}
|
|
14967
|
-
function
|
|
14968
|
-
return
|
|
14969
|
+
function Wc(r, t, e) {
|
|
14970
|
+
return Gu(r, [[0, 0], t], e);
|
|
14969
14971
|
}
|
|
14970
|
-
var
|
|
14971
|
-
function
|
|
14972
|
-
return +t ?
|
|
14972
|
+
var Ga = 16, jc = Lt(30 * tn);
|
|
14973
|
+
function ka(r, t) {
|
|
14974
|
+
return +t ? Qc(r, t) : Kc(r);
|
|
14973
14975
|
}
|
|
14974
|
-
function
|
|
14975
|
-
return
|
|
14976
|
+
function Kc(r) {
|
|
14977
|
+
return Bu({
|
|
14976
14978
|
point: function(t, e) {
|
|
14977
14979
|
t = r(t, e), this.stream.point(t[0], t[1]);
|
|
14978
14980
|
}
|
|
14979
14981
|
});
|
|
14980
14982
|
}
|
|
14981
|
-
function
|
|
14983
|
+
function Qc(r, t) {
|
|
14982
14984
|
function e(n, i, o, s, a, u, l, c, f, h, g, p, v, y) {
|
|
14983
14985
|
var m = l - n, E = c - i, N = m * m + E * E;
|
|
14984
14986
|
if (N > 4 * t && v--) {
|
|
14985
14987
|
var C = s + h, L = a + g, w = u + p, D = ki(C * C + L * L + w * w), T = $r(w /= D), F = te(te(w) - 1) < pt || te(o - f) < pt ? (o + f) / 2 : Pi(L, C), j = r(F, T), k = j[0], O = j[1], Y = k - n, P = O - i, X = E * Y - m * P;
|
|
14986
|
-
(X * X / N > t || te((m * Y + E * P) / N - 0.5) > 0.3 || s * h + a * g + u * p <
|
|
14988
|
+
(X * X / N > t || te((m * Y + E * P) / N - 0.5) > 0.3 || s * h + a * g + u * p < jc) && (e(n, i, o, s, a, u, k, O, F, C /= D, L /= D, w, v, y), y.point(k, O), e(k, O, F, C, L, w, l, c, f, h, g, p, v, y));
|
|
14987
14989
|
}
|
|
14988
14990
|
}
|
|
14989
14991
|
return function(n) {
|
|
@@ -15006,7 +15008,7 @@ function Kc(r, t) {
|
|
|
15006
15008
|
}
|
|
15007
15009
|
function N(T, F) {
|
|
15008
15010
|
var j = Ri([T, F]), k = r(T, F);
|
|
15009
|
-
e(f, h, c, g, p, v, f = k[0], h = k[1], c = T, g = j[0], p = j[1], v = j[2],
|
|
15011
|
+
e(f, h, c, g, p, v, f = k[0], h = k[1], c = T, g = j[0], p = j[1], v = j[2], Ga, n), n.point(f, h);
|
|
15010
15012
|
}
|
|
15011
15013
|
function C() {
|
|
15012
15014
|
y.point = m, n.lineEnd();
|
|
@@ -15018,23 +15020,23 @@ function Kc(r, t) {
|
|
|
15018
15020
|
N(i = T, F), o = f, s = h, a = g, u = p, l = v, y.point = N;
|
|
15019
15021
|
}
|
|
15020
15022
|
function D() {
|
|
15021
|
-
e(f, h, c, g, p, v, o, s, i, a, u, l,
|
|
15023
|
+
e(f, h, c, g, p, v, o, s, i, a, u, l, Ga, n), y.lineEnd = C, C();
|
|
15022
15024
|
}
|
|
15023
15025
|
return y;
|
|
15024
15026
|
};
|
|
15025
15027
|
}
|
|
15026
|
-
var
|
|
15028
|
+
var Jc = Bu({
|
|
15027
15029
|
point: function(r, t) {
|
|
15028
15030
|
this.stream.point(r * tn, t * tn);
|
|
15029
15031
|
}
|
|
15030
15032
|
});
|
|
15031
|
-
function
|
|
15032
|
-
return
|
|
15033
|
+
function Zc(r) {
|
|
15034
|
+
return $c(function() {
|
|
15033
15035
|
return r;
|
|
15034
15036
|
})();
|
|
15035
15037
|
}
|
|
15036
|
-
function
|
|
15037
|
-
var t, e = 150, n = 480, i = 250, o, s, a = 0, u = 0, l = 0, c = 0, f = 0, h, g, p = null, v =
|
|
15038
|
+
function $c(r) {
|
|
15039
|
+
var t, e = 150, n = 480, i = 250, o, s, a = 0, u = 0, l = 0, c = 0, f = 0, h, g, p = null, v = Ba, y = null, m, E, N, C = Aa, L = 0.5, w = ka(k, L), D, T;
|
|
15038
15040
|
function F(P) {
|
|
15039
15041
|
return P = g(P[0] * tn, P[1] * tn), [P[0] * e + o, s - P[1] * e];
|
|
15040
15042
|
}
|
|
@@ -15045,11 +15047,11 @@ function Zc(r) {
|
|
|
15045
15047
|
return P = t(P, X), [P[0] * e + o, s - P[1] * e];
|
|
15046
15048
|
}
|
|
15047
15049
|
F.stream = function(P) {
|
|
15048
|
-
return D && T === P ? D : D =
|
|
15050
|
+
return D && T === P ? D : D = Jc(v(h, w(C(T = P))));
|
|
15049
15051
|
}, F.clipAngle = function(P) {
|
|
15050
|
-
return arguments.length ? (v = +P ?
|
|
15052
|
+
return arguments.length ? (v = +P ? Hc(p = P * tn, 6 * tn) : (p = null, Ba), Y()) : p * dr;
|
|
15051
15053
|
}, F.clipExtent = function(P) {
|
|
15052
|
-
return arguments.length ? (C = P == null ? (y = m = E = N = null,
|
|
15054
|
+
return arguments.length ? (C = P == null ? (y = m = E = N = null, Aa) : Gc(y = +P[0][0], m = +P[0][1], E = +P[1][0], N = +P[1][1]), Y()) : y == null ? null : [[y, m], [E, N]];
|
|
15053
15055
|
}, F.scale = function(P) {
|
|
15054
15056
|
return arguments.length ? (e = +P, O()) : e;
|
|
15055
15057
|
}, F.translate = function(P) {
|
|
@@ -15059,14 +15061,14 @@ function Zc(r) {
|
|
|
15059
15061
|
}, F.rotate = function(P) {
|
|
15060
15062
|
return arguments.length ? (l = P[0] % 360 * tn, c = P[1] % 360 * tn, f = P.length > 2 ? P[2] % 360 * tn : 0, O()) : [l * dr, c * dr, f * dr];
|
|
15061
15063
|
}, F.precision = function(P) {
|
|
15062
|
-
return arguments.length ? (w =
|
|
15064
|
+
return arguments.length ? (w = ka(k, L = P * P), Y()) : ki(L);
|
|
15063
15065
|
}, F.fitExtent = function(P, X) {
|
|
15064
|
-
return
|
|
15066
|
+
return Gu(F, P, X);
|
|
15065
15067
|
}, F.fitSize = function(P, X) {
|
|
15066
|
-
return
|
|
15068
|
+
return Wc(F, P, X);
|
|
15067
15069
|
};
|
|
15068
15070
|
function O() {
|
|
15069
|
-
g =
|
|
15071
|
+
g = Ou(h = Tc(l, c, f), t);
|
|
15070
15072
|
var P = t(a, u);
|
|
15071
15073
|
return o = n - P[0] * e, s = i + P[1] * e, Y();
|
|
15072
15074
|
}
|
|
@@ -15077,7 +15079,7 @@ function Zc(r) {
|
|
|
15077
15079
|
return t = r.apply(this, arguments), F.invert = t.invert && j, O();
|
|
15078
15080
|
};
|
|
15079
15081
|
}
|
|
15080
|
-
function
|
|
15082
|
+
function ku(r) {
|
|
15081
15083
|
return function(t, e) {
|
|
15082
15084
|
var n = Lt(t), i = Lt(e), o = r(n * i);
|
|
15083
15085
|
return [
|
|
@@ -15086,7 +15088,7 @@ function Gu(r) {
|
|
|
15086
15088
|
];
|
|
15087
15089
|
};
|
|
15088
15090
|
}
|
|
15089
|
-
function
|
|
15091
|
+
function zu(r) {
|
|
15090
15092
|
return function(t, e) {
|
|
15091
15093
|
var n = ki(t * t + e * e), i = r(n), o = bt(i), s = Lt(i);
|
|
15092
15094
|
return [
|
|
@@ -15095,26 +15097,26 @@ function ku(r) {
|
|
|
15095
15097
|
];
|
|
15096
15098
|
};
|
|
15097
15099
|
}
|
|
15098
|
-
var
|
|
15100
|
+
var tf = ku(function(r) {
|
|
15099
15101
|
return ki(2 / (1 + r));
|
|
15100
15102
|
});
|
|
15101
|
-
|
|
15103
|
+
tf.invert = zu(function(r) {
|
|
15102
15104
|
return 2 * $r(r / 2);
|
|
15103
15105
|
});
|
|
15104
|
-
var
|
|
15105
|
-
return (r =
|
|
15106
|
+
var Vu = ku(function(r) {
|
|
15107
|
+
return (r = Ru(r)) && r / bt(r);
|
|
15106
15108
|
});
|
|
15107
|
-
|
|
15109
|
+
Vu.invert = zu(function(r) {
|
|
15108
15110
|
return r;
|
|
15109
15111
|
});
|
|
15110
|
-
function
|
|
15111
|
-
return
|
|
15112
|
+
function ef() {
|
|
15113
|
+
return Zc(Vu).scale(79.4188).clipAngle(180 - 1e-3);
|
|
15112
15114
|
}
|
|
15113
|
-
function
|
|
15115
|
+
function za(r, t) {
|
|
15114
15116
|
return [r, t];
|
|
15115
15117
|
}
|
|
15116
|
-
|
|
15117
|
-
function
|
|
15118
|
+
za.invert = za;
|
|
15119
|
+
function nf(r, t, e) {
|
|
15118
15120
|
e = e || {};
|
|
15119
15121
|
var n = e.units || "kilometers", i = e.steps || 8;
|
|
15120
15122
|
if (!r)
|
|
@@ -15130,17 +15132,17 @@ function ef(r, t, e) {
|
|
|
15130
15132
|
var o = [];
|
|
15131
15133
|
switch (r.type) {
|
|
15132
15134
|
case "GeometryCollection":
|
|
15133
|
-
return
|
|
15135
|
+
return nu(r, function(s) {
|
|
15134
15136
|
var a = Do(s, t, n, i);
|
|
15135
15137
|
a && o.push(a);
|
|
15136
|
-
}),
|
|
15138
|
+
}), Ss(o);
|
|
15137
15139
|
case "FeatureCollection":
|
|
15138
|
-
return
|
|
15140
|
+
return Ea(r, function(s) {
|
|
15139
15141
|
var a = Do(s, t, n, i);
|
|
15140
|
-
a &&
|
|
15142
|
+
a && Ea(a, function(u) {
|
|
15141
15143
|
u && o.push(u);
|
|
15142
15144
|
});
|
|
15143
|
-
}),
|
|
15145
|
+
}), Ss(o);
|
|
15144
15146
|
}
|
|
15145
15147
|
return Do(r, t, n, i);
|
|
15146
15148
|
}
|
|
@@ -15148,47 +15150,47 @@ function Do(r, t, e, n) {
|
|
|
15148
15150
|
var i = r.properties || {}, o = r.type === "Feature" ? r.geometry : r;
|
|
15149
15151
|
if (o.type === "GeometryCollection") {
|
|
15150
15152
|
var s = [];
|
|
15151
|
-
return
|
|
15153
|
+
return nu(r, function(v) {
|
|
15152
15154
|
var y = Do(v, t, e, n);
|
|
15153
15155
|
y && s.push(y);
|
|
15154
|
-
}),
|
|
15156
|
+
}), Ss(s);
|
|
15155
15157
|
}
|
|
15156
|
-
var a =
|
|
15158
|
+
var a = rf(o), u = {
|
|
15157
15159
|
type: o.type,
|
|
15158
|
-
coordinates:
|
|
15159
|
-
}, l = new
|
|
15160
|
-
if (h = g.write(h), !
|
|
15160
|
+
coordinates: qu(o.coordinates, a)
|
|
15161
|
+
}, l = new Vs(), c = l.read(u), f = lc(cc(t, e), "meters"), h = Gt.bufferOp(c, f, n), g = new hu();
|
|
15162
|
+
if (h = g.write(h), !Uu(h.coordinates)) {
|
|
15161
15163
|
var p = {
|
|
15162
15164
|
type: h.type,
|
|
15163
|
-
coordinates:
|
|
15165
|
+
coordinates: Xu(h.coordinates, a)
|
|
15164
15166
|
};
|
|
15165
15167
|
return Ho(p, i);
|
|
15166
15168
|
}
|
|
15167
15169
|
}
|
|
15168
|
-
function
|
|
15169
|
-
return Array.isArray(r[0]) ?
|
|
15170
|
+
function Uu(r) {
|
|
15171
|
+
return Array.isArray(r[0]) ? Uu(r[0]) : isNaN(r[0]);
|
|
15170
15172
|
}
|
|
15171
|
-
function
|
|
15173
|
+
function qu(r, t) {
|
|
15172
15174
|
return typeof r[0] != "object" ? t(r) : r.map(function(e) {
|
|
15173
|
-
return
|
|
15175
|
+
return qu(e, t);
|
|
15174
15176
|
});
|
|
15175
15177
|
}
|
|
15176
|
-
function
|
|
15178
|
+
function Xu(r, t) {
|
|
15177
15179
|
return typeof r[0] != "object" ? t.invert(r) : r.map(function(e) {
|
|
15178
|
-
return
|
|
15180
|
+
return Xu(e, t);
|
|
15179
15181
|
});
|
|
15180
15182
|
}
|
|
15181
|
-
function
|
|
15182
|
-
var t =
|
|
15183
|
-
return
|
|
15183
|
+
function rf(r) {
|
|
15184
|
+
var t = gc(r).geometry.coordinates, e = [-t[0], -t[1]];
|
|
15185
|
+
return ef().rotate(e).scale(ye);
|
|
15184
15186
|
}
|
|
15185
|
-
function
|
|
15187
|
+
function Va(r) {
|
|
15186
15188
|
let t;
|
|
15187
15189
|
for (const e of r)
|
|
15188
15190
|
t && e[0] - t[0] >= 180 ? e[0] -= 360 : t && e[0] - t[0] < -180 && (e[0] += 360), t = e;
|
|
15189
15191
|
}
|
|
15190
|
-
function
|
|
15191
|
-
const e =
|
|
15192
|
+
function Ua(r, t) {
|
|
15193
|
+
const e = hc(
|
|
15192
15194
|
{
|
|
15193
15195
|
type: "Polygon",
|
|
15194
15196
|
coordinates: [
|
|
@@ -15206,24 +15208,24 @@ function Va(r, t) {
|
|
|
15206
15208
|
if (!e)
|
|
15207
15209
|
return;
|
|
15208
15210
|
e.properties = { isMask: "y" };
|
|
15209
|
-
const n =
|
|
15211
|
+
const n = nf(r, 0);
|
|
15210
15212
|
if (n.geometry.type === "Polygon")
|
|
15211
15213
|
for (const i of n.geometry.coordinates)
|
|
15212
|
-
|
|
15214
|
+
Va(i);
|
|
15213
15215
|
else
|
|
15214
15216
|
for (const i of n.geometry.coordinates)
|
|
15215
15217
|
for (const o of i)
|
|
15216
|
-
|
|
15218
|
+
Va(o);
|
|
15217
15219
|
t({
|
|
15218
15220
|
type: "FeatureCollection",
|
|
15219
15221
|
features: [n, e]
|
|
15220
15222
|
});
|
|
15221
15223
|
}
|
|
15222
|
-
let
|
|
15224
|
+
let qa = {
|
|
15223
15225
|
type: "FeatureCollection",
|
|
15224
15226
|
features: []
|
|
15225
15227
|
};
|
|
15226
|
-
function
|
|
15228
|
+
function of(r, t, e = !0, n = !0, i = {}, o = {}, s = {
|
|
15227
15229
|
fill: {
|
|
15228
15230
|
paint: {
|
|
15229
15231
|
"fill-color": "#000",
|
|
@@ -15247,7 +15249,7 @@ function rf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
|
|
|
15247
15249
|
function h() {
|
|
15248
15250
|
(s != null && s.fill || s != null && s.line) && r.addSource("full-geom", {
|
|
15249
15251
|
type: "geojson",
|
|
15250
|
-
data:
|
|
15252
|
+
data: qa
|
|
15251
15253
|
}), s != null && s.fill && r.addLayer({
|
|
15252
15254
|
...s == null ? void 0 : s.fill,
|
|
15253
15255
|
id: "full-geom-fill",
|
|
@@ -15277,7 +15279,7 @@ function rf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
|
|
|
15277
15279
|
if (!t)
|
|
15278
15280
|
throw new Error();
|
|
15279
15281
|
const E = document.createElement("div");
|
|
15280
|
-
return m && E.classList.add("marker-interactive"), new
|
|
15282
|
+
return m && E.classList.add("marker-interactive"), new Ka({
|
|
15281
15283
|
props: { displayIn: "maplibre" },
|
|
15282
15284
|
target: E
|
|
15283
15285
|
}), new t.Marker({ element: E, offset: [1, -13] });
|
|
@@ -15313,7 +15315,7 @@ function rf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
|
|
|
15313
15315
|
}
|
|
15314
15316
|
for (const C of l)
|
|
15315
15317
|
C.remove();
|
|
15316
|
-
if (l.length = 0, N(
|
|
15318
|
+
if (l.length = 0, N(qa), !!t) {
|
|
15317
15319
|
if (E) {
|
|
15318
15320
|
let C = !1;
|
|
15319
15321
|
if (E.geometry.type === "GeometryCollection") {
|
|
@@ -15323,8 +15325,8 @@ function rf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
|
|
|
15323
15325
|
if (L.length > 0) {
|
|
15324
15326
|
let w = L.pop();
|
|
15325
15327
|
for (const D of L)
|
|
15326
|
-
w =
|
|
15327
|
-
|
|
15328
|
+
w = fc(w, D);
|
|
15329
|
+
Ua({ ...E, geometry: w }, N), C = !0;
|
|
15328
15330
|
} else {
|
|
15329
15331
|
const w = E.geometry.geometries.filter(
|
|
15330
15332
|
(D) => D.type === "LineString" || D.type === "MultiLineString"
|
|
@@ -15337,7 +15339,7 @@ function rf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
|
|
|
15337
15339
|
}
|
|
15338
15340
|
if (!C) {
|
|
15339
15341
|
if (E.geometry.type === "Polygon" || E.geometry.type === "MultiPolygon")
|
|
15340
|
-
|
|
15342
|
+
Ua(E, N);
|
|
15341
15343
|
else if (E.geometry.type === "LineString" || E.geometry.type === "MultiLineString") {
|
|
15342
15344
|
N(E);
|
|
15343
15345
|
return;
|
|
@@ -15375,11 +15377,11 @@ function rf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
|
|
|
15375
15377
|
};
|
|
15376
15378
|
}
|
|
15377
15379
|
var En, kr;
|
|
15378
|
-
class
|
|
15380
|
+
class uf extends EventTarget {
|
|
15379
15381
|
constructor(e) {
|
|
15380
15382
|
super();
|
|
15381
|
-
|
|
15382
|
-
|
|
15383
|
+
cs(this, En, void 0);
|
|
15384
|
+
cs(this, kr, void 0);
|
|
15383
15385
|
Io(this, kr, e);
|
|
15384
15386
|
}
|
|
15385
15387
|
onAdd(e) {
|
|
@@ -15392,7 +15394,7 @@ class af extends EventTarget {
|
|
|
15392
15394
|
flyTo: a,
|
|
15393
15395
|
fullGeometryStyle: u,
|
|
15394
15396
|
...l
|
|
15395
|
-
} = Bn(this, kr), c = typeof a == "boolean" ? {} : a, f =
|
|
15397
|
+
} = Bn(this, kr), c = typeof a == "boolean" ? {} : a, f = of(
|
|
15396
15398
|
e,
|
|
15397
15399
|
i,
|
|
15398
15400
|
o,
|
|
@@ -15401,7 +15403,7 @@ class af extends EventTarget {
|
|
|
15401
15403
|
c,
|
|
15402
15404
|
u
|
|
15403
15405
|
);
|
|
15404
|
-
Io(this, En, new
|
|
15406
|
+
Io(this, En, new kl({
|
|
15405
15407
|
target: n,
|
|
15406
15408
|
props: {
|
|
15407
15409
|
mapController: f,
|
|
@@ -15458,6 +15460,6 @@ class af extends EventTarget {
|
|
|
15458
15460
|
}
|
|
15459
15461
|
En = new WeakMap(), kr = new WeakMap();
|
|
15460
15462
|
export {
|
|
15461
|
-
|
|
15462
|
-
|
|
15463
|
+
uf as GeocodingControl,
|
|
15464
|
+
of as createMaplibreglMapController
|
|
15463
15465
|
};
|