@maptiler/geocoding-control 0.0.76 → 0.0.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/leaflet-controller.js +307 -307
- package/leaflet-controller.umd.js +5 -5
- package/leaflet.js +362 -362
- package/leaflet.umd.js +5 -5
- package/maplibregl-controller.js +301 -301
- package/maplibregl-controller.umd.js +5 -5
- package/maplibregl.js +362 -362
- package/maplibregl.umd.js +5 -5
- package/package.json +10 -10
- package/react.js +211 -205
- package/react.umd.js +1 -1
- package/src/lib/GeocodingControl.svelte +1 -1
package/leaflet.js
CHANGED
|
@@ -6,11 +6,11 @@ var Gn = (r, t, e) => (ea(r, t, "read from private field"), e ? e.call(r) : t.ge
|
|
|
6
6
|
if (t.has(r))
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
8
|
t instanceof WeakSet ? t.add(r) : t.set(r, e);
|
|
9
|
-
},
|
|
9
|
+
}, xo = (r, t, e, n) => (ea(r, t, "write to private field"), n ? n.call(r, e) : t.set(r, e), e);
|
|
10
10
|
import * as er from "leaflet";
|
|
11
11
|
function Nt() {
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function ol(r, t) {
|
|
14
14
|
for (const e in t)
|
|
15
15
|
r[e] = t[e];
|
|
16
16
|
return r;
|
|
@@ -27,22 +27,22 @@ function Tr(r) {
|
|
|
27
27
|
function Ha(r) {
|
|
28
28
|
return typeof r == "function";
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Ai(r, t) {
|
|
31
31
|
return r != r ? t == t : r !== t || r && typeof r == "object" || typeof r == "function";
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function sl(r) {
|
|
34
34
|
return Object.keys(r).length === 0;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function al(r, t, e, n) {
|
|
37
37
|
if (r) {
|
|
38
38
|
const i = Wa(r, t, e, n);
|
|
39
39
|
return r[0](i);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
function Wa(r, t, e, n) {
|
|
43
|
-
return r[1] && n ?
|
|
43
|
+
return r[1] && n ? ol(e.ctx.slice(), r[1](n(t))) : e.ctx;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function ul(r, t, e, n) {
|
|
46
46
|
if (r[2] && n) {
|
|
47
47
|
const i = r[2](n(e));
|
|
48
48
|
if (t.dirty === void 0)
|
|
@@ -57,13 +57,13 @@ function cl(r, t, e, n) {
|
|
|
57
57
|
}
|
|
58
58
|
return t.dirty;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function ll(r, t, e, n, i, o) {
|
|
61
61
|
if (i) {
|
|
62
62
|
const s = Wa(t, e, n, o);
|
|
63
63
|
r.p(s, i);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function cl(r) {
|
|
67
67
|
if (r.ctx.length > 32) {
|
|
68
68
|
const t = [], e = r.ctx.length / 32;
|
|
69
69
|
for (let n = 0; n < e; n++)
|
|
@@ -84,7 +84,7 @@ function Ke(r, t, e) {
|
|
|
84
84
|
function Ae(r) {
|
|
85
85
|
r.parentNode && r.parentNode.removeChild(r);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function fl(r, t) {
|
|
88
88
|
for (let e = 0; e < r.length; e += 1)
|
|
89
89
|
r[e] && r[e].d(t);
|
|
90
90
|
}
|
|
@@ -103,7 +103,7 @@ function Xn() {
|
|
|
103
103
|
function ke(r, t, e, n) {
|
|
104
104
|
return r.addEventListener(t, e, n), () => r.removeEventListener(t, e, n);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function hl(r) {
|
|
107
107
|
return function(t) {
|
|
108
108
|
return t.preventDefault(), r.call(this, t);
|
|
109
109
|
};
|
|
@@ -111,7 +111,7 @@ function pl(r) {
|
|
|
111
111
|
function B(r, t, e) {
|
|
112
112
|
e == null ? r.removeAttribute(t) : r.getAttribute(t) !== e && r.setAttribute(t, e);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function gl(r) {
|
|
115
115
|
return Array.from(r.childNodes);
|
|
116
116
|
}
|
|
117
117
|
function Ki(r, t) {
|
|
@@ -123,7 +123,7 @@ function ia(r, t) {
|
|
|
123
123
|
function nn(r, t, e) {
|
|
124
124
|
r.classList[e ? "add" : "remove"](t);
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function pl(r, t, { bubbles: e = !1, cancelable: n = !1 } = {}) {
|
|
127
127
|
const i = document.createEvent("CustomEvent");
|
|
128
128
|
return i.initCustomEvent(r, e, n, t), i;
|
|
129
129
|
}
|
|
@@ -136,15 +136,15 @@ function ja() {
|
|
|
136
136
|
throw new Error("Function called outside component initialization");
|
|
137
137
|
return Qi;
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function dl(r) {
|
|
140
140
|
ja().$$.on_destroy.push(r);
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function vl() {
|
|
143
143
|
const r = ja();
|
|
144
144
|
return (t, e, { cancelable: n = !1 } = {}) => {
|
|
145
145
|
const i = r.$$.callbacks[t];
|
|
146
146
|
if (i) {
|
|
147
|
-
const o =
|
|
147
|
+
const o = pl(t, e, { cancelable: n });
|
|
148
148
|
return i.slice().forEach((s) => {
|
|
149
149
|
s.call(r, o);
|
|
150
150
|
}), !o.defaultPrevented;
|
|
@@ -152,48 +152,54 @@ function ml() {
|
|
|
152
152
|
return !0;
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
|
-
const
|
|
155
|
+
const ui = [], ms = [];
|
|
156
|
+
let ci = [];
|
|
157
|
+
const oa = [], yl = /* @__PURE__ */ Promise.resolve();
|
|
156
158
|
let _s = !1;
|
|
157
|
-
function
|
|
158
|
-
_s || (_s = !0,
|
|
159
|
+
function ml() {
|
|
160
|
+
_s || (_s = !0, yl.then(Ka));
|
|
159
161
|
}
|
|
160
162
|
function Es(r) {
|
|
161
|
-
|
|
163
|
+
ci.push(r);
|
|
162
164
|
}
|
|
163
165
|
const gs = /* @__PURE__ */ new Set();
|
|
164
|
-
let
|
|
166
|
+
let ai = 0;
|
|
165
167
|
function Ka() {
|
|
166
|
-
if (
|
|
168
|
+
if (ai !== 0)
|
|
167
169
|
return;
|
|
168
170
|
const r = Qi;
|
|
169
171
|
do {
|
|
170
172
|
try {
|
|
171
|
-
for (;
|
|
172
|
-
const t =
|
|
173
|
-
|
|
173
|
+
for (; ai < ui.length; ) {
|
|
174
|
+
const t = ui[ai];
|
|
175
|
+
ai++, Wi(t), _l(t.$$);
|
|
174
176
|
}
|
|
175
177
|
} catch (t) {
|
|
176
|
-
throw
|
|
178
|
+
throw ui.length = 0, ai = 0, t;
|
|
177
179
|
}
|
|
178
|
-
for (Wi(null),
|
|
180
|
+
for (Wi(null), ui.length = 0, ai = 0; ms.length; )
|
|
179
181
|
ms.pop()();
|
|
180
|
-
for (let t = 0; t <
|
|
181
|
-
const e =
|
|
182
|
+
for (let t = 0; t < ci.length; t += 1) {
|
|
183
|
+
const e = ci[t];
|
|
182
184
|
gs.has(e) || (gs.add(e), e());
|
|
183
185
|
}
|
|
184
|
-
|
|
185
|
-
} while (
|
|
186
|
+
ci.length = 0;
|
|
187
|
+
} while (ui.length);
|
|
186
188
|
for (; oa.length; )
|
|
187
189
|
oa.pop()();
|
|
188
190
|
_s = !1, gs.clear(), Wi(r);
|
|
189
191
|
}
|
|
190
|
-
function
|
|
192
|
+
function _l(r) {
|
|
191
193
|
if (r.fragment !== null) {
|
|
192
194
|
r.update(), Tr(r.before_update);
|
|
193
195
|
const t = r.dirty;
|
|
194
196
|
r.dirty = [-1], r.fragment && r.fragment.p(r.ctx, t), r.after_update.forEach(Es);
|
|
195
197
|
}
|
|
196
198
|
}
|
|
199
|
+
function El(r) {
|
|
200
|
+
const t = [], e = [];
|
|
201
|
+
ci.forEach((n) => r.indexOf(n) === -1 ? t.push(n) : e.push(n)), e.forEach((n) => n()), ci = t;
|
|
202
|
+
}
|
|
197
203
|
const Ro = /* @__PURE__ */ new Set();
|
|
198
204
|
let zr;
|
|
199
205
|
function Oo() {
|
|
@@ -232,12 +238,12 @@ function fi(r, t, e, n) {
|
|
|
232
238
|
}
|
|
233
239
|
function hi(r, t) {
|
|
234
240
|
const e = r.$$;
|
|
235
|
-
e.fragment !== null && (Tr(e.on_destroy), e.fragment && e.fragment.d(t), e.on_destroy = e.fragment = null, e.ctx = []);
|
|
241
|
+
e.fragment !== null && (El(e.after_update), Tr(e.on_destroy), e.fragment && e.fragment.d(t), e.on_destroy = e.fragment = null, e.ctx = []);
|
|
236
242
|
}
|
|
237
|
-
function
|
|
238
|
-
r.$$.dirty[0] === -1 && (
|
|
243
|
+
function Il(r, t) {
|
|
244
|
+
r.$$.dirty[0] === -1 && (ui.push(r), ml(), r.$$.dirty.fill(0)), r.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
239
245
|
}
|
|
240
|
-
function
|
|
246
|
+
function Fi(r, t, e, n, i, o, s, a = [-1]) {
|
|
241
247
|
const u = Qi;
|
|
242
248
|
Wi(r);
|
|
243
249
|
const l = r.$$ = {
|
|
@@ -265,10 +271,10 @@ function Ai(r, t, e, n, i, o, s, a = [-1]) {
|
|
|
265
271
|
let c = !1;
|
|
266
272
|
if (l.ctx = e ? e(r, t.props || {}, (f, h, ...g) => {
|
|
267
273
|
const p = g.length ? g[0] : h;
|
|
268
|
-
return l.ctx && i(l.ctx[f], l.ctx[f] = p) && (!l.skip_bound && l.bound[f] && l.bound[f](p), c &&
|
|
274
|
+
return l.ctx && i(l.ctx[f], l.ctx[f] = p) && (!l.skip_bound && l.bound[f] && l.bound[f](p), c && Il(r, f)), h;
|
|
269
275
|
}) : [], l.update(), c = !0, Tr(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
270
276
|
if (t.hydrate) {
|
|
271
|
-
const f =
|
|
277
|
+
const f = gl(t.target);
|
|
272
278
|
l.fragment && l.fragment.l(f), f.forEach(Ae);
|
|
273
279
|
} else
|
|
274
280
|
l.fragment && l.fragment.c();
|
|
@@ -276,7 +282,7 @@ function Ai(r, t, e, n, i, o, s, a = [-1]) {
|
|
|
276
282
|
}
|
|
277
283
|
Wi(u);
|
|
278
284
|
}
|
|
279
|
-
class
|
|
285
|
+
class Bi {
|
|
280
286
|
$destroy() {
|
|
281
287
|
hi(this, 1), this.$destroy = Nt;
|
|
282
288
|
}
|
|
@@ -290,10 +296,10 @@ class Fi {
|
|
|
290
296
|
};
|
|
291
297
|
}
|
|
292
298
|
$set(t) {
|
|
293
|
-
this.$$set && !
|
|
299
|
+
this.$$set && !sl(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
294
300
|
}
|
|
295
301
|
}
|
|
296
|
-
function
|
|
302
|
+
function Cl(r) {
|
|
297
303
|
let t, e;
|
|
298
304
|
return {
|
|
299
305
|
c() {
|
|
@@ -310,12 +316,12 @@ function Nl(r) {
|
|
|
310
316
|
}
|
|
311
317
|
};
|
|
312
318
|
}
|
|
313
|
-
class
|
|
319
|
+
class Nl extends Bi {
|
|
314
320
|
constructor(t) {
|
|
315
|
-
super(),
|
|
321
|
+
super(), Fi(this, t, null, Cl, Ai, {});
|
|
316
322
|
}
|
|
317
323
|
}
|
|
318
|
-
function
|
|
324
|
+
function xl(r) {
|
|
319
325
|
let t, e;
|
|
320
326
|
return {
|
|
321
327
|
c() {
|
|
@@ -332,12 +338,12 @@ function Sl(r) {
|
|
|
332
338
|
}
|
|
333
339
|
};
|
|
334
340
|
}
|
|
335
|
-
class
|
|
341
|
+
class Sl extends Bi {
|
|
336
342
|
constructor(t) {
|
|
337
|
-
super(),
|
|
343
|
+
super(), Fi(this, t, null, xl, Ai, {});
|
|
338
344
|
}
|
|
339
345
|
}
|
|
340
|
-
function
|
|
346
|
+
function wl(r) {
|
|
341
347
|
let t;
|
|
342
348
|
return {
|
|
343
349
|
c() {
|
|
@@ -354,12 +360,12 @@ function Ll(r) {
|
|
|
354
360
|
}
|
|
355
361
|
};
|
|
356
362
|
}
|
|
357
|
-
class
|
|
363
|
+
class Ll extends Bi {
|
|
358
364
|
constructor(t) {
|
|
359
|
-
super(),
|
|
365
|
+
super(), Fi(this, t, null, wl, Ai, {});
|
|
360
366
|
}
|
|
361
367
|
}
|
|
362
|
-
function
|
|
368
|
+
function bl(r) {
|
|
363
369
|
let t, e, n;
|
|
364
370
|
return {
|
|
365
371
|
c() {
|
|
@@ -403,18 +409,18 @@ function Pl(r) {
|
|
|
403
409
|
}
|
|
404
410
|
};
|
|
405
411
|
}
|
|
406
|
-
function
|
|
412
|
+
function Pl(r, t, e) {
|
|
407
413
|
let { displayIn: n } = t;
|
|
408
414
|
return r.$$set = (i) => {
|
|
409
415
|
"displayIn" in i && e(0, n = i.displayIn);
|
|
410
416
|
}, [n];
|
|
411
417
|
}
|
|
412
|
-
class Qa extends
|
|
418
|
+
class Qa extends Bi {
|
|
413
419
|
constructor(t) {
|
|
414
|
-
super(),
|
|
420
|
+
super(), Fi(this, t, Pl, bl, Ai, { displayIn: 0 });
|
|
415
421
|
}
|
|
416
422
|
}
|
|
417
|
-
function
|
|
423
|
+
function Rl(r) {
|
|
418
424
|
let t, e;
|
|
419
425
|
return {
|
|
420
426
|
c() {
|
|
@@ -431,9 +437,9 @@ function Ol(r) {
|
|
|
431
437
|
}
|
|
432
438
|
};
|
|
433
439
|
}
|
|
434
|
-
class
|
|
440
|
+
class Ol extends Bi {
|
|
435
441
|
constructor(t) {
|
|
436
|
-
super(),
|
|
442
|
+
super(), Fi(this, t, null, Rl, Ai, {});
|
|
437
443
|
}
|
|
438
444
|
}
|
|
439
445
|
function sa(r, t, e) {
|
|
@@ -442,7 +448,7 @@ function sa(r, t, e) {
|
|
|
442
448
|
}
|
|
443
449
|
function aa(r) {
|
|
444
450
|
let t, e;
|
|
445
|
-
return t = new
|
|
451
|
+
return t = new Ll({}), {
|
|
446
452
|
c() {
|
|
447
453
|
Ji(t.$$.fragment);
|
|
448
454
|
},
|
|
@@ -462,7 +468,7 @@ function aa(r) {
|
|
|
462
468
|
}
|
|
463
469
|
function ua(r) {
|
|
464
470
|
let t, e, n, i, o;
|
|
465
|
-
return e = new
|
|
471
|
+
return e = new Nl({}), {
|
|
466
472
|
c() {
|
|
467
473
|
t = Qt("button"), Ji(e.$$.fragment), B(t, "type", "button"), B(
|
|
468
474
|
t,
|
|
@@ -510,7 +516,7 @@ function ua(r) {
|
|
|
510
516
|
}
|
|
511
517
|
};
|
|
512
518
|
}
|
|
513
|
-
function
|
|
519
|
+
function Dl(r) {
|
|
514
520
|
let t, e, n, i, o = (
|
|
515
521
|
/*listFeatures*/
|
|
516
522
|
r[12]
|
|
@@ -530,7 +536,7 @@ function Tl(r) {
|
|
|
530
536
|
m(u, l) {
|
|
531
537
|
Ke(u, t, l);
|
|
532
538
|
for (let c = 0; c < s.length; c += 1)
|
|
533
|
-
s[c].m(t, null);
|
|
539
|
+
s[c] && s[c].m(t, null);
|
|
534
540
|
e = !0, n || (i = [
|
|
535
541
|
ke(
|
|
536
542
|
t,
|
|
@@ -575,11 +581,11 @@ function Tl(r) {
|
|
|
575
581
|
e = !1;
|
|
576
582
|
},
|
|
577
583
|
d(u) {
|
|
578
|
-
u && Ae(t),
|
|
584
|
+
u && Ae(t), fl(s, u), n = !1, Tr(i);
|
|
579
585
|
}
|
|
580
586
|
};
|
|
581
587
|
}
|
|
582
|
-
function
|
|
588
|
+
function Tl(r) {
|
|
583
589
|
let t, e;
|
|
584
590
|
return {
|
|
585
591
|
c() {
|
|
@@ -606,7 +612,7 @@ function Ml(r) {
|
|
|
606
612
|
}
|
|
607
613
|
};
|
|
608
614
|
}
|
|
609
|
-
function
|
|
615
|
+
function Ml(r) {
|
|
610
616
|
let t = "", e;
|
|
611
617
|
return {
|
|
612
618
|
c() {
|
|
@@ -623,7 +629,7 @@ function Al(r) {
|
|
|
623
629
|
}
|
|
624
630
|
};
|
|
625
631
|
}
|
|
626
|
-
function
|
|
632
|
+
function Al(r) {
|
|
627
633
|
let t, e;
|
|
628
634
|
return {
|
|
629
635
|
c() {
|
|
@@ -754,9 +760,9 @@ function ca(r) {
|
|
|
754
760
|
}
|
|
755
761
|
};
|
|
756
762
|
}
|
|
757
|
-
function
|
|
763
|
+
function Fl(r) {
|
|
758
764
|
let t, e, n, i, o, s, a, u, l, c, f, h, g, p, m, d, y, I, C, S;
|
|
759
|
-
i = new
|
|
765
|
+
i = new Ol({}), c = new Sl({});
|
|
760
766
|
let x = (
|
|
761
767
|
/*abortController*/
|
|
762
768
|
r[17] && aa()
|
|
@@ -767,13 +773,13 @@ function Bl(r) {
|
|
|
767
773
|
const D = (
|
|
768
774
|
/*#slots*/
|
|
769
775
|
r[48].default
|
|
770
|
-
), T =
|
|
776
|
+
), T = al(
|
|
771
777
|
D,
|
|
772
778
|
r,
|
|
773
779
|
/*$$scope*/
|
|
774
780
|
r[47],
|
|
775
781
|
null
|
|
776
|
-
), A = [
|
|
782
|
+
), A = [Al, Ml, Tl, Dl], q = [];
|
|
777
783
|
function j(P, X) {
|
|
778
784
|
var R, Y;
|
|
779
785
|
return (
|
|
@@ -872,7 +878,7 @@ function Bl(r) {
|
|
|
872
878
|
/*click_handler_1*/
|
|
873
879
|
r[55]
|
|
874
880
|
),
|
|
875
|
-
ke(t, "submit",
|
|
881
|
+
ke(t, "submit", hl(
|
|
876
882
|
/*handleOnSubmit*/
|
|
877
883
|
r[18]
|
|
878
884
|
))
|
|
@@ -918,19 +924,19 @@ function Bl(r) {
|
|
|
918
924
|
32 && Kt(L, 1)) : (L = ua(P), L.c(), Kt(L, 1), L.m(e, g)) : L && (Oo(), be(L, 1, 1, () => {
|
|
919
925
|
L = null;
|
|
920
926
|
}), Do()), T && T.p && (!I || X[1] & /*$$scope*/
|
|
921
|
-
65536) &&
|
|
927
|
+
65536) && ll(
|
|
922
928
|
T,
|
|
923
929
|
D,
|
|
924
930
|
P,
|
|
925
931
|
/*$$scope*/
|
|
926
932
|
P[47],
|
|
927
|
-
I ?
|
|
933
|
+
I ? ul(
|
|
928
934
|
D,
|
|
929
935
|
/*$$scope*/
|
|
930
936
|
P[47],
|
|
931
937
|
X,
|
|
932
938
|
null
|
|
933
|
-
) :
|
|
939
|
+
) : cl(
|
|
934
940
|
/*$$scope*/
|
|
935
941
|
P[47]
|
|
936
942
|
),
|
|
@@ -963,11 +969,11 @@ function Bl(r) {
|
|
|
963
969
|
}
|
|
964
970
|
};
|
|
965
971
|
}
|
|
966
|
-
function
|
|
972
|
+
function Bl(r, t, e) {
|
|
967
973
|
const n = t[1], i = t[0], o = n - i;
|
|
968
974
|
return r === n && e ? r : ((r - i) % o + o) % o + i;
|
|
969
975
|
}
|
|
970
|
-
function
|
|
976
|
+
function Gl(r, t, e) {
|
|
971
977
|
let n, { $$slots: i = {}, $$scope: o } = t, { class: s = void 0 } = t, { apiKey: a } = t, { bbox: u = void 0 } = t, { clearButtonTitle: l = "clear" } = t, { clearOnBlur: c = !1 } = t, { collapsed: f = !1 } = t, { country: h = void 0 } = t, { debounceSearch: g = 200 } = t, { enableReverse: p = !1 } = t, { errorMessage: m = "Searching failed" } = t, { filter: d = () => !0 } = t, { flyTo: y = !0 } = t, { fuzzyMatch: I = !0 } = t, { language: C = void 0 } = t, { limit: S = void 0 } = t, { mapController: x = void 0 } = t, { minLength: L = 2 } = t, { noResultsMessage: D = "No results found" } = t, { placeholder: T = "Search" } = t, { proximity: A = void 0 } = t, { reverseActive: q = p === "always" } = t, { reverseButtonTitle: j = "toggle reverse geocoding" } = t, { searchValue: P = "" } = t, { showFullGeometry: X = !0 } = t, { showPlaceType: R = !1 } = t, { showResultsWhileTyping: Y = !0 } = t, { trackProximity: at = !0 } = t, { types: St = void 0 } = t, { zoom: Xt = 16 } = t, { fetchParameters: fe = {} } = t;
|
|
972
978
|
function Fr() {
|
|
973
979
|
Fn.focus();
|
|
@@ -980,18 +986,18 @@ function kl(r, t, e) {
|
|
|
980
986
|
Fn.focus(), Fn.select();
|
|
981
987
|
}));
|
|
982
988
|
}
|
|
983
|
-
let he = !1, nt, Ot, vt, Zs = "", Fn, At = -1, pr,
|
|
984
|
-
const dr =
|
|
985
|
-
|
|
989
|
+
let he = !1, nt, Ot, vt, Zs = "", Fn, At = -1, pr, Co = [], Br, si, No;
|
|
990
|
+
const dr = vl();
|
|
991
|
+
dl(() => {
|
|
986
992
|
x && (x.setEventHandler(void 0), x.indicateReverse(!1), x.setSelectedMarker(-1), x.setMarkers(void 0, void 0));
|
|
987
993
|
});
|
|
988
994
|
function $s(N) {
|
|
989
|
-
if (
|
|
995
|
+
if (si && (clearTimeout(si), si = void 0), At > -1 && nt)
|
|
990
996
|
e(45, vt = nt[At]), e(1, P = vt.place_name.replace(/,.*/, "")), e(16, pr = void 0), e(44, Ot = void 0), e(13, At = -1);
|
|
991
997
|
else if (P) {
|
|
992
998
|
const Ft = N || !ta();
|
|
993
999
|
as(P, { exact: !0 }).then(() => {
|
|
994
|
-
e(44, Ot = nt), e(45, vt = void 0), Ft &&
|
|
1000
|
+
e(44, Ot = nt), e(45, vt = void 0), Ft && Xu();
|
|
995
1001
|
}).catch((Bn) => e(16, pr = Bn));
|
|
996
1002
|
}
|
|
997
1003
|
}
|
|
@@ -1002,9 +1008,9 @@ function kl(r, t, e) {
|
|
|
1002
1008
|
e(16, pr = void 0);
|
|
1003
1009
|
const Ui = ta(), Ge = new URLSearchParams();
|
|
1004
1010
|
C != null && Ge.set("language", Array.isArray(C) ? C.join(",") : C), St && Ge.set("types", St.join(",")), Ui || (u && Ge.set("bbox", u.map((kr) => kr.toFixed(6)).join(",")), h && Ge.set("country", Array.isArray(h) ? h.join(",") : h)), Ft || (A && Ge.set("proximity", A.map((kr) => kr.toFixed(6)).join(",")), (Bn || !Y) && Ge.set("autocomplete", "false"), Ge.set("fuzzyMatch", String(I))), S !== void 0 && Ge.set("limit", String(S)), Ge.set("key", a);
|
|
1005
|
-
const Gr = "https://api.maptiler.com/geocoding/" + encodeURIComponent(N) + ".json?" + Ge.toString();
|
|
1011
|
+
const Gr = "https://api.maptiler.com/geocoding/" + encodeURIComponent(N.replaceAll(";", ",")) + ".json?" + Ge.toString();
|
|
1006
1012
|
if (Gr === Zs) {
|
|
1007
|
-
Ft ? (e(12, nt = void 0), e(45, vt =
|
|
1013
|
+
Ft ? (e(12, nt = void 0), e(45, vt = Co[0])) : e(12, nt = Co);
|
|
1008
1014
|
return;
|
|
1009
1015
|
}
|
|
1010
1016
|
Zs = Gr, Br == null || Br.abort();
|
|
@@ -1023,9 +1029,9 @@ function kl(r, t, e) {
|
|
|
1023
1029
|
if (!cs.ok)
|
|
1024
1030
|
throw new Error();
|
|
1025
1031
|
const fs = await cs.json();
|
|
1026
|
-
dr("response", { url: Gr, featureCollection: fs }), Ft ? (e(12, nt = void 0), e(45, vt = fs.features[0]),
|
|
1032
|
+
dr("response", { url: Gr, featureCollection: fs }), Ft ? (e(12, nt = void 0), e(45, vt = fs.features[0]), Co = [vt]) : (e(12, nt = fs.features.filter(d)), Co = nt, Ui && Fn.focus());
|
|
1027
1033
|
}
|
|
1028
|
-
function
|
|
1034
|
+
function Xu() {
|
|
1029
1035
|
var Bn, Ui, Ge, Gr;
|
|
1030
1036
|
if (!(Ot != null && Ot.length) || !y)
|
|
1031
1037
|
return;
|
|
@@ -1034,10 +1040,10 @@ function kl(r, t, e) {
|
|
|
1034
1040
|
(Ft || !me.matching_text) && (N[0] = Math.min(N[0], ((Bn = me.bbox) == null ? void 0 : Bn[0]) ?? me.center[0]), N[1] = Math.min(N[1], ((Ui = me.bbox) == null ? void 0 : Ui[1]) ?? me.center[1]), N[2] = Math.max(N[2], ((Ge = me.bbox) == null ? void 0 : Ge[2]) ?? me.center[0]), N[3] = Math.max(N[3], ((Gr = me.bbox) == null ? void 0 : Gr[3]) ?? me.center[1]));
|
|
1035
1041
|
x && Ot.length > 0 && (vt && N[0] === N[2] && N[1] === N[3] ? x.flyTo(vt.center, Xt) : x.fitBounds(N, 50));
|
|
1036
1042
|
}
|
|
1037
|
-
function
|
|
1038
|
-
e(0, q = p === "always"), An(
|
|
1043
|
+
function Yu(N) {
|
|
1044
|
+
e(0, q = p === "always"), An(Bl(N[0], [-180, 180], !0).toFixed(6) + "," + N[1].toFixed(6));
|
|
1039
1045
|
}
|
|
1040
|
-
function
|
|
1046
|
+
function Hu(N) {
|
|
1041
1047
|
if (!nt)
|
|
1042
1048
|
return;
|
|
1043
1049
|
let Ft = N.key === "ArrowDown" ? 1 : N.key === "ArrowUp" ? -1 : 0;
|
|
@@ -1045,9 +1051,9 @@ function kl(r, t, e) {
|
|
|
1045
1051
|
}
|
|
1046
1052
|
function us(N = !0) {
|
|
1047
1053
|
if (Y && P.length > L) {
|
|
1048
|
-
|
|
1054
|
+
si && clearTimeout(si);
|
|
1049
1055
|
const Ft = P;
|
|
1050
|
-
|
|
1056
|
+
si = window.setTimeout(
|
|
1051
1057
|
() => {
|
|
1052
1058
|
as(Ft).catch((Bn) => e(16, pr = Bn));
|
|
1053
1059
|
},
|
|
@@ -1059,18 +1065,18 @@ function kl(r, t, e) {
|
|
|
1059
1065
|
function ls(N) {
|
|
1060
1066
|
e(45, vt = N), e(1, P = N.place_name), e(13, At = -1);
|
|
1061
1067
|
}
|
|
1062
|
-
const
|
|
1063
|
-
function
|
|
1068
|
+
const Wu = () => Fn.focus();
|
|
1069
|
+
function ju(N) {
|
|
1064
1070
|
ms[N ? "unshift" : "push"](() => {
|
|
1065
1071
|
Fn = N, e(15, Fn);
|
|
1066
1072
|
});
|
|
1067
1073
|
}
|
|
1068
|
-
function
|
|
1074
|
+
function Ku() {
|
|
1069
1075
|
P = this.value, e(1, P), e(11, he), e(25, c);
|
|
1070
1076
|
}
|
|
1071
|
-
const
|
|
1077
|
+
const Qu = () => e(11, he = !0), Ju = () => e(11, he = !1), Zu = () => us(), $u = () => {
|
|
1072
1078
|
e(1, P = ""), Fn.focus();
|
|
1073
|
-
},
|
|
1079
|
+
}, tl = () => e(0, q = !q), el = (N) => e(13, At = N), nl = (N) => ls(N), rl = () => e(13, At = -1), il = () => {
|
|
1074
1080
|
};
|
|
1075
1081
|
return r.$$set = (N) => {
|
|
1076
1082
|
"class" in N && e(2, s = N.class), "apiKey" in N && e(23, a = N.apiKey), "bbox" in N && e(24, u = N.bbox), "clearButtonTitle" in N && e(3, l = N.clearButtonTitle), "clearOnBlur" in N && e(25, c = N.clearOnBlur), "collapsed" in N && e(4, f = N.collapsed), "country" in N && e(26, h = N.country), "debounceSearch" in N && e(27, g = N.debounceSearch), "enableReverse" in N && e(5, p = N.enableReverse), "errorMessage" in N && e(6, m = N.errorMessage), "filter" in N && e(28, d = N.filter), "flyTo" in N && e(29, y = N.flyTo), "fuzzyMatch" in N && e(30, I = N.fuzzyMatch), "language" in N && e(31, C = N.language), "limit" in N && e(32, S = N.limit), "mapController" in N && e(33, x = N.mapController), "minLength" in N && e(34, L = N.minLength), "noResultsMessage" in N && e(7, D = N.noResultsMessage), "placeholder" in N && e(8, T = N.placeholder), "proximity" in N && e(22, A = N.proximity), "reverseActive" in N && e(0, q = N.reverseActive), "reverseButtonTitle" in N && e(9, j = N.reverseButtonTitle), "searchValue" in N && e(1, P = N.searchValue), "showFullGeometry" in N && e(35, X = N.showFullGeometry), "showPlaceType" in N && e(10, R = N.showPlaceType), "showResultsWhileTyping" in N && e(36, Y = N.showResultsWhileTyping), "trackProximity" in N && e(37, at = N.trackProximity), "types" in N && e(38, St = N.types), "zoom" in N && e(39, Xt = N.zoom), "fetchParameters" in N && e(40, fe = N.fetchParameters), "$$scope" in N && e(47, o = N.$$scope);
|
|
@@ -1078,7 +1084,7 @@ function kl(r, t, e) {
|
|
|
1078
1084
|
if (r.$$.dirty[1] & /*trackProximity*/
|
|
1079
1085
|
64 && (at || e(22, A = void 0)), r.$$.dirty[0] & /*focused, clearOnBlur*/
|
|
1080
1086
|
33556480 && setTimeout(() => {
|
|
1081
|
-
e(14,
|
|
1087
|
+
e(14, No = he), c && !he && e(1, P = "");
|
|
1082
1088
|
}), r.$$.dirty[0] & /*searchValue, listFeatures*/
|
|
1083
1089
|
4098 && (P || (e(45, vt = void 0), e(12, nt = void 0), e(16, pr = void 0), e(44, Ot = nt))), r.$$.dirty[1] & /*showFullGeometry, picked*/
|
|
1084
1090
|
16400 && X && vt && !vt.address && vt.geometry.type === "Point" && as(vt.id, { byId: !0 }).catch((N) => e(16, pr = N)), r.$$.dirty[0] & /*flyTo*/
|
|
@@ -1092,7 +1098,7 @@ function kl(r, t, e) {
|
|
|
1092
1098
|
68 && x && x.setEventHandler((N) => {
|
|
1093
1099
|
switch (N.type) {
|
|
1094
1100
|
case "mapClick":
|
|
1095
|
-
q &&
|
|
1101
|
+
q && Yu(N.coordinates);
|
|
1096
1102
|
break;
|
|
1097
1103
|
case "proximityChange":
|
|
1098
1104
|
e(22, A = at ? N.proximity : void 0);
|
|
@@ -1104,7 +1110,7 @@ function kl(r, t, e) {
|
|
|
1104
1110
|
}
|
|
1105
1111
|
break;
|
|
1106
1112
|
case "markerMouseEnter":
|
|
1107
|
-
e(13, At =
|
|
1113
|
+
e(13, At = No ? (nt == null ? void 0 : nt.findIndex((Ft) => Ft.id === N.id)) ?? -1 : -1);
|
|
1108
1114
|
break;
|
|
1109
1115
|
case "markerMouseLeave":
|
|
1110
1116
|
e(13, At = -1);
|
|
@@ -1122,7 +1128,7 @@ function kl(r, t, e) {
|
|
|
1122
1128
|
r.$$.dirty[1] & /*selected*/
|
|
1123
1129
|
32768 && dr("select", n), r.$$.dirty[1] & /*picked*/
|
|
1124
1130
|
16384 && dr("pick", vt), r.$$.dirty[0] & /*focusedDelayed, listFeatures*/
|
|
1125
|
-
20480 && dr("optionsVisibilityChange",
|
|
1131
|
+
20480 && dr("optionsVisibilityChange", No && !!nt), r.$$.dirty[0] & /*listFeatures*/
|
|
1126
1132
|
4096 && dr("featuresListed", nt), r.$$.dirty[1] & /*markedFeatures*/
|
|
1127
1133
|
8192 && dr("featuresMarked", Ot), r.$$.dirty[0] & /*reverseActive*/
|
|
1128
1134
|
1 && dr("reverseToggle", q), r.$$.dirty[0] & /*searchValue*/
|
|
@@ -1144,12 +1150,12 @@ function kl(r, t, e) {
|
|
|
1144
1150
|
he,
|
|
1145
1151
|
nt,
|
|
1146
1152
|
At,
|
|
1147
|
-
|
|
1153
|
+
No,
|
|
1148
1154
|
Fn,
|
|
1149
1155
|
pr,
|
|
1150
1156
|
Br,
|
|
1151
1157
|
$s,
|
|
1152
|
-
|
|
1158
|
+
Hu,
|
|
1153
1159
|
us,
|
|
1154
1160
|
ls,
|
|
1155
1161
|
A,
|
|
@@ -1179,6 +1185,8 @@ function kl(r, t, e) {
|
|
|
1179
1185
|
n,
|
|
1180
1186
|
o,
|
|
1181
1187
|
i,
|
|
1188
|
+
Wu,
|
|
1189
|
+
ju,
|
|
1182
1190
|
Ku,
|
|
1183
1191
|
Qu,
|
|
1184
1192
|
Ju,
|
|
@@ -1188,19 +1196,17 @@ function kl(r, t, e) {
|
|
|
1188
1196
|
el,
|
|
1189
1197
|
nl,
|
|
1190
1198
|
rl,
|
|
1191
|
-
il
|
|
1192
|
-
ol,
|
|
1193
|
-
sl
|
|
1199
|
+
il
|
|
1194
1200
|
];
|
|
1195
1201
|
}
|
|
1196
|
-
let
|
|
1202
|
+
let kl = class extends Bi {
|
|
1197
1203
|
constructor(t) {
|
|
1198
|
-
super(),
|
|
1204
|
+
super(), Fi(
|
|
1199
1205
|
this,
|
|
1200
1206
|
t,
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1207
|
+
Gl,
|
|
1208
|
+
Fl,
|
|
1209
|
+
Ai,
|
|
1204
1210
|
{
|
|
1205
1211
|
class: 2,
|
|
1206
1212
|
apiKey: 23,
|
|
@@ -1272,7 +1278,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
1272
1278
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
1273
1279
|
and limitations under the License.
|
|
1274
1280
|
***************************************************************************** */
|
|
1275
|
-
function
|
|
1281
|
+
function zl(r, t) {
|
|
1276
1282
|
var e = { label: 0, sent: function() {
|
|
1277
1283
|
if (o[0] & 1)
|
|
1278
1284
|
throw o[1];
|
|
@@ -1346,7 +1352,7 @@ var Nr = (
|
|
|
1346
1352
|
return r;
|
|
1347
1353
|
}()
|
|
1348
1354
|
);
|
|
1349
|
-
function
|
|
1355
|
+
function Vl(r, t) {
|
|
1350
1356
|
return r > t ? 1 : r < t ? -1 : 0;
|
|
1351
1357
|
}
|
|
1352
1358
|
function mr(r, t, e) {
|
|
@@ -1392,7 +1398,7 @@ function fa(r, t, e) {
|
|
|
1392
1398
|
}
|
|
1393
1399
|
return { left: n, right: i };
|
|
1394
1400
|
}
|
|
1395
|
-
function
|
|
1401
|
+
function Ul(r, t, e) {
|
|
1396
1402
|
return t === null ? r : (r === null || (t = mr(r.key, t, e), t.left = r), t);
|
|
1397
1403
|
}
|
|
1398
1404
|
function Is(r, t, e, n, i) {
|
|
@@ -1407,7 +1413,7 @@ var As = (
|
|
|
1407
1413
|
/** @class */
|
|
1408
1414
|
function() {
|
|
1409
1415
|
function r(t) {
|
|
1410
|
-
t === void 0 && (t =
|
|
1416
|
+
t === void 0 && (t = Vl), this._root = null, this._size = 0, this._comparator = t;
|
|
1411
1417
|
}
|
|
1412
1418
|
return r.prototype.insert = function(t, e) {
|
|
1413
1419
|
return this._size++, this._root = ps(t, e, this._root, this._comparator);
|
|
@@ -1535,14 +1541,14 @@ var As = (
|
|
|
1535
1541
|
}, r.prototype.clear = function() {
|
|
1536
1542
|
return this._root = null, this._size = 0, this;
|
|
1537
1543
|
}, r.prototype.toList = function() {
|
|
1538
|
-
return
|
|
1544
|
+
return Xl(this._root);
|
|
1539
1545
|
}, r.prototype.load = function(t, e, n) {
|
|
1540
1546
|
e === void 0 && (e = []), n === void 0 && (n = !1);
|
|
1541
1547
|
var i = t.length, o = this._comparator;
|
|
1542
1548
|
if (n && xs(t, e, 0, i - 1, o), this._root === null)
|
|
1543
1549
|
this._root = Cs(t, e, 0, i), this._size = i;
|
|
1544
1550
|
else {
|
|
1545
|
-
var s =
|
|
1551
|
+
var s = Yl(this.toList(), ql(t, e), o);
|
|
1546
1552
|
i = this._size + i, this._root = Ns({ head: s }, 0, i);
|
|
1547
1553
|
}
|
|
1548
1554
|
return this;
|
|
@@ -1570,12 +1576,12 @@ var As = (
|
|
|
1570
1576
|
}, t), e.join("");
|
|
1571
1577
|
}, r.prototype.update = function(t, e, n) {
|
|
1572
1578
|
var i = this._comparator, o = fa(t, this._root, i), s = o.left, a = o.right;
|
|
1573
|
-
i(t, e) < 0 ? a = ps(e, n, a, i) : s = ps(e, n, s, i), this._root =
|
|
1579
|
+
i(t, e) < 0 ? a = ps(e, n, a, i) : s = ps(e, n, s, i), this._root = Ul(s, a, i);
|
|
1574
1580
|
}, r.prototype.split = function(t) {
|
|
1575
1581
|
return fa(t, this._root, this._comparator);
|
|
1576
1582
|
}, r.prototype[Symbol.iterator] = function() {
|
|
1577
1583
|
var t;
|
|
1578
|
-
return
|
|
1584
|
+
return zl(this, function(e) {
|
|
1579
1585
|
switch (e.label) {
|
|
1580
1586
|
case 0:
|
|
1581
1587
|
t = this.minNode(), e.label = 1;
|
|
@@ -1601,12 +1607,12 @@ function Cs(r, t, e, n) {
|
|
|
1601
1607
|
}
|
|
1602
1608
|
return null;
|
|
1603
1609
|
}
|
|
1604
|
-
function
|
|
1610
|
+
function ql(r, t) {
|
|
1605
1611
|
for (var e = new Nr(null, null), n = e, i = 0; i < r.length; i++)
|
|
1606
1612
|
n = n.next = new Nr(r[i], t[i]);
|
|
1607
1613
|
return n.next = null, e.next;
|
|
1608
1614
|
}
|
|
1609
|
-
function
|
|
1615
|
+
function Xl(r) {
|
|
1610
1616
|
for (var t = r, e = [], n = !1, i = new Nr(null, null), o = i; !n; )
|
|
1611
1617
|
t ? (e.push(t), t = t.left) : e.length > 0 ? (t = o = o.next = e.pop(), t = t.right) : n = !0;
|
|
1612
1618
|
return o.next = null, i.next;
|
|
@@ -1619,7 +1625,7 @@ function Ns(r, t, e) {
|
|
|
1619
1625
|
}
|
|
1620
1626
|
return null;
|
|
1621
1627
|
}
|
|
1622
|
-
function
|
|
1628
|
+
function Yl(r, t, e) {
|
|
1623
1629
|
for (var n = new Nr(null, null), i = n, o = r, s = t; o !== null && s !== null; )
|
|
1624
1630
|
e(o.key, s.key) < 0 ? (i.next = o, o = o.next) : (i.next = s, s = s.next), i = i.next;
|
|
1625
1631
|
return o !== null ? i.next = o : s !== null && (i.next = s), n.next;
|
|
@@ -1672,12 +1678,12 @@ var qi = function(t, e) {
|
|
|
1672
1678
|
};
|
|
1673
1679
|
}, _r = Number.EPSILON;
|
|
1674
1680
|
_r === void 0 && (_r = Math.pow(2, -52));
|
|
1675
|
-
var
|
|
1681
|
+
var Hl = _r * _r, ws = function(t, e) {
|
|
1676
1682
|
if (-_r < t && t < _r && -_r < e && e < _r)
|
|
1677
1683
|
return 0;
|
|
1678
1684
|
var n = t - e;
|
|
1679
|
-
return n * n <
|
|
1680
|
-
},
|
|
1685
|
+
return n * n < Hl * t * e ? 0 : t < e ? -1 : 1;
|
|
1686
|
+
}, Wl = /* @__PURE__ */ function() {
|
|
1681
1687
|
function r() {
|
|
1682
1688
|
vn(this, r), this.reset();
|
|
1683
1689
|
}
|
|
@@ -1709,7 +1715,7 @@ var Wl = _r * _r, ws = function(t, e) {
|
|
|
1709
1715
|
return o !== null && ws(n.key, o.key) === 0 ? (this.tree.remove(e), o.key) : e;
|
|
1710
1716
|
}
|
|
1711
1717
|
}]), r;
|
|
1712
|
-
}(), Zi = new
|
|
1718
|
+
}(), Zi = new Wl(), ji = function(t, e) {
|
|
1713
1719
|
return t.x * e.y - t.y * e.x;
|
|
1714
1720
|
}, Ja = function(t, e) {
|
|
1715
1721
|
return t.x * e.x + t.y * e.y;
|
|
@@ -1724,7 +1730,7 @@ var Wl = _r * _r, ws = function(t, e) {
|
|
|
1724
1730
|
return ws(s, 0);
|
|
1725
1731
|
}, Ao = function(t) {
|
|
1726
1732
|
return Math.sqrt(Ja(t, t));
|
|
1727
|
-
},
|
|
1733
|
+
}, jl = function(t, e, n) {
|
|
1728
1734
|
var i = {
|
|
1729
1735
|
x: e.x - t.x,
|
|
1730
1736
|
y: e.y - t.y
|
|
@@ -1733,7 +1739,7 @@ var Wl = _r * _r, ws = function(t, e) {
|
|
|
1733
1739
|
y: n.y - t.y
|
|
1734
1740
|
};
|
|
1735
1741
|
return ji(o, i) / Ao(o) / Ao(i);
|
|
1736
|
-
},
|
|
1742
|
+
}, Kl = function(t, e, n) {
|
|
1737
1743
|
var i = {
|
|
1738
1744
|
x: e.x - t.x,
|
|
1739
1745
|
y: e.y - t.y
|
|
@@ -1752,7 +1758,7 @@ var Wl = _r * _r, ws = function(t, e) {
|
|
|
1752
1758
|
x: n,
|
|
1753
1759
|
y: t.y + e.y / e.x * (n - t.x)
|
|
1754
1760
|
};
|
|
1755
|
-
},
|
|
1761
|
+
}, Ql = function(t, e, n, i) {
|
|
1756
1762
|
if (e.x === 0)
|
|
1757
1763
|
return va(n, i, t.x);
|
|
1758
1764
|
if (i.x === 0)
|
|
@@ -1841,8 +1847,8 @@ var Wl = _r * _r, ws = function(t, e) {
|
|
|
1841
1847
|
var n = this, i = /* @__PURE__ */ new Map(), o = function(a) {
|
|
1842
1848
|
var u = a.otherSE;
|
|
1843
1849
|
i.set(a, {
|
|
1844
|
-
sine:
|
|
1845
|
-
cosine:
|
|
1850
|
+
sine: jl(n.point, e.point, u.point),
|
|
1851
|
+
cosine: Kl(n.point, e.point, u.point)
|
|
1846
1852
|
});
|
|
1847
1853
|
};
|
|
1848
1854
|
return function(s, a) {
|
|
@@ -1852,7 +1858,7 @@ var Wl = _r * _r, ws = function(t, e) {
|
|
|
1852
1858
|
};
|
|
1853
1859
|
}
|
|
1854
1860
|
}]), r;
|
|
1855
|
-
}(),
|
|
1861
|
+
}(), Jl = 0, Fo = /* @__PURE__ */ function() {
|
|
1856
1862
|
Ce(r, null, [{
|
|
1857
1863
|
key: "compare",
|
|
1858
1864
|
/* This compare() function is for ordering segments in the sweep
|
|
@@ -1928,7 +1934,7 @@ var Wl = _r * _r, ws = function(t, e) {
|
|
|
1928
1934
|
* and possibly will be later modified */
|
|
1929
1935
|
}]);
|
|
1930
1936
|
function r(t, e, n, i) {
|
|
1931
|
-
vn(this, r), this.id = ++
|
|
1937
|
+
vn(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;
|
|
1932
1938
|
}
|
|
1933
1939
|
return Ce(r, [{
|
|
1934
1940
|
key: "replaceRightSE",
|
|
@@ -2026,7 +2032,7 @@ var Wl = _r * _r, ws = function(t, e) {
|
|
|
2026
2032
|
return a;
|
|
2027
2033
|
if (h)
|
|
2028
2034
|
return l;
|
|
2029
|
-
var p =
|
|
2035
|
+
var p = Ql(s, this.vector(), u, e.vector());
|
|
2030
2036
|
return p === null || !qi(o, p) ? null : Zi.round(p.x, p.y);
|
|
2031
2037
|
}
|
|
2032
2038
|
/**
|
|
@@ -2226,7 +2232,7 @@ var Wl = _r * _r, ws = function(t, e) {
|
|
|
2226
2232
|
return e;
|
|
2227
2233
|
}
|
|
2228
2234
|
}]), r;
|
|
2229
|
-
}(),
|
|
2235
|
+
}(), Zl = /* @__PURE__ */ function() {
|
|
2230
2236
|
function r(t, e) {
|
|
2231
2237
|
if (vn(this, r), !Array.isArray(t))
|
|
2232
2238
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
@@ -2274,7 +2280,7 @@ var Wl = _r * _r, ws = function(t, e) {
|
|
|
2274
2280
|
}
|
|
2275
2281
|
};
|
|
2276
2282
|
for (var n = 0, i = t.length; n < i; n++) {
|
|
2277
|
-
var o = new
|
|
2283
|
+
var o = new Zl(t[n], this);
|
|
2278
2284
|
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);
|
|
2279
2285
|
}
|
|
2280
2286
|
this.isSubject = e;
|
|
@@ -2288,7 +2294,7 @@ var Wl = _r * _r, ws = function(t, e) {
|
|
|
2288
2294
|
return e;
|
|
2289
2295
|
}
|
|
2290
2296
|
}]), r;
|
|
2291
|
-
}(),
|
|
2297
|
+
}(), $l = /* @__PURE__ */ function() {
|
|
2292
2298
|
Ce(r, null, [{
|
|
2293
2299
|
key: "factory",
|
|
2294
2300
|
/* Given the segments from the sweep line pass, compute & return a series
|
|
@@ -2408,7 +2414,7 @@ var Wl = _r * _r, ws = function(t, e) {
|
|
|
2408
2414
|
return e;
|
|
2409
2415
|
}
|
|
2410
2416
|
}]), r;
|
|
2411
|
-
}(),
|
|
2417
|
+
}(), tc = /* @__PURE__ */ function() {
|
|
2412
2418
|
function r(t) {
|
|
2413
2419
|
vn(this, r), this.rings = t, this.polys = this._composePolys(t);
|
|
2414
2420
|
}
|
|
@@ -2437,7 +2443,7 @@ var Wl = _r * _r, ws = function(t, e) {
|
|
|
2437
2443
|
return n;
|
|
2438
2444
|
}
|
|
2439
2445
|
}]), r;
|
|
2440
|
-
}(),
|
|
2446
|
+
}(), ec = /* @__PURE__ */ function() {
|
|
2441
2447
|
function r(t) {
|
|
2442
2448
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Fo.compare;
|
|
2443
2449
|
vn(this, r), this.queue = t, this.tree = new As(e), this.segments = [];
|
|
@@ -2513,7 +2519,7 @@ var Wl = _r * _r, ws = function(t, e) {
|
|
|
2513
2519
|
return o.push(i), e.consumedBy === void 0 && this.tree.insert(e), o;
|
|
2514
2520
|
}
|
|
2515
2521
|
}]), r;
|
|
2516
|
-
}(), Ea = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1e6,
|
|
2522
|
+
}(), Ea = 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() {
|
|
2517
2523
|
function r() {
|
|
2518
2524
|
vn(this, r);
|
|
2519
2525
|
}
|
|
@@ -2536,7 +2542,7 @@ var Wl = _r * _r, ws = function(t, e) {
|
|
|
2536
2542
|
for (var I = o[d].getSweepEvents(), C = 0, S = I.length; C < S; C++)
|
|
2537
2543
|
if (m.insert(I[C]), m.size > Ea)
|
|
2538
2544
|
throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");
|
|
2539
|
-
for (var x = new
|
|
2545
|
+
for (var x = new ec(m), L = m.size, D = m.pop(); D; ) {
|
|
2540
2546
|
var T = D.key;
|
|
2541
2547
|
if (m.size === L) {
|
|
2542
2548
|
var A = T.segment;
|
|
@@ -2544,7 +2550,7 @@ var Wl = _r * _r, ws = function(t, e) {
|
|
|
2544
2550
|
}
|
|
2545
2551
|
if (m.size > Ea)
|
|
2546
2552
|
throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big). Please file a bug report.");
|
|
2547
|
-
if (x.segments.length >
|
|
2553
|
+
if (x.segments.length > nc)
|
|
2548
2554
|
throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments). Please file a bug report.");
|
|
2549
2555
|
for (var q = x.process(T), j = 0, P = q.length; j < P; j++) {
|
|
2550
2556
|
var X = q[j];
|
|
@@ -2553,31 +2559,31 @@ var Wl = _r * _r, ws = function(t, e) {
|
|
|
2553
2559
|
L = m.size, D = m.pop();
|
|
2554
2560
|
}
|
|
2555
2561
|
Zi.reset();
|
|
2556
|
-
var R =
|
|
2562
|
+
var R = $l.factory(x.segments), Y = new tc(R);
|
|
2557
2563
|
return Y.getGeom();
|
|
2558
2564
|
}
|
|
2559
2565
|
}]), r;
|
|
2560
|
-
}(), Cn = new
|
|
2566
|
+
}(), Cn = new rc(), ic = function(t) {
|
|
2561
2567
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
2562
2568
|
n[i - 1] = arguments[i];
|
|
2563
2569
|
return Cn.run("union", t, n);
|
|
2564
|
-
},
|
|
2570
|
+
}, oc = function(t) {
|
|
2565
2571
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
2566
2572
|
n[i - 1] = arguments[i];
|
|
2567
2573
|
return Cn.run("intersection", t, n);
|
|
2568
|
-
},
|
|
2574
|
+
}, sc = function(t) {
|
|
2569
2575
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
2570
2576
|
n[i - 1] = arguments[i];
|
|
2571
2577
|
return Cn.run("xor", t, n);
|
|
2572
|
-
},
|
|
2578
|
+
}, ac = function(t) {
|
|
2573
2579
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
2574
2580
|
n[i - 1] = arguments[i];
|
|
2575
2581
|
return Cn.run("difference", t, n);
|
|
2576
2582
|
}, Za = {
|
|
2577
|
-
union:
|
|
2578
|
-
intersection:
|
|
2579
|
-
xor:
|
|
2580
|
-
difference:
|
|
2583
|
+
union: ic,
|
|
2584
|
+
intersection: oc,
|
|
2585
|
+
xor: sc,
|
|
2586
|
+
difference: ac
|
|
2581
2587
|
}, _e = 63710088e-1, $a = {
|
|
2582
2588
|
centimeters: _e * 100,
|
|
2583
2589
|
centimetres: _e * 100,
|
|
@@ -2600,7 +2606,7 @@ function jo(r, t, e) {
|
|
|
2600
2606
|
var n = { type: "Feature" };
|
|
2601
2607
|
return (e.id === 0 || e.id) && (n.id = e.id), e.bbox && (n.bbox = e.bbox), n.properties = t || {}, n.geometry = r, n;
|
|
2602
2608
|
}
|
|
2603
|
-
function
|
|
2609
|
+
function uc(r, t, e) {
|
|
2604
2610
|
if (e === void 0 && (e = {}), !r)
|
|
2605
2611
|
throw new Error("coordinates is required");
|
|
2606
2612
|
if (!Array.isArray(r))
|
|
@@ -2644,14 +2650,14 @@ function eu(r, t, e) {
|
|
|
2644
2650
|
};
|
|
2645
2651
|
return jo(n, t, e);
|
|
2646
2652
|
}
|
|
2647
|
-
function
|
|
2653
|
+
function lc(r, t) {
|
|
2648
2654
|
t === void 0 && (t = "kilometers");
|
|
2649
2655
|
var e = $a[t];
|
|
2650
2656
|
if (!e)
|
|
2651
2657
|
throw new Error(t + " units is invalid");
|
|
2652
2658
|
return r * e;
|
|
2653
2659
|
}
|
|
2654
|
-
function
|
|
2660
|
+
function cc(r, t) {
|
|
2655
2661
|
t === void 0 && (t = "kilometers");
|
|
2656
2662
|
var e = $a[t];
|
|
2657
2663
|
if (!e)
|
|
@@ -2664,12 +2670,12 @@ function Ia(r) {
|
|
|
2664
2670
|
function Bo(r) {
|
|
2665
2671
|
return r.type === "Feature" ? r.geometry : r;
|
|
2666
2672
|
}
|
|
2667
|
-
function
|
|
2673
|
+
function fc(r, t, e) {
|
|
2668
2674
|
e === void 0 && (e = {});
|
|
2669
2675
|
var n = Bo(r), i = Bo(t), o = Za.union(n.coordinates, i.coordinates);
|
|
2670
2676
|
return o.length === 0 ? null : o.length === 1 ? tu(o[0], e.properties) : eu(o, e.properties);
|
|
2671
2677
|
}
|
|
2672
|
-
function
|
|
2678
|
+
function hc(r, t) {
|
|
2673
2679
|
var e = Bo(r), n = Bo(t), i = r.properties || {}, o = Za.difference(
|
|
2674
2680
|
e.coordinates,
|
|
2675
2681
|
n.coordinates
|
|
@@ -2828,10 +2834,10 @@ function bs(r) {
|
|
|
2828
2834
|
}), t;
|
|
2829
2835
|
}
|
|
2830
2836
|
bs.default = bs;
|
|
2831
|
-
function
|
|
2837
|
+
function gc(r, t) {
|
|
2832
2838
|
t === void 0 && (t = {});
|
|
2833
2839
|
var e = bs(r), n = (e[0] + e[2]) / 2, i = (e[1] + e[3]) / 2;
|
|
2834
|
-
return
|
|
2840
|
+
return uc([n, i], t.properties, t);
|
|
2835
2841
|
}
|
|
2836
2842
|
"fill" in Array.prototype || Object.defineProperty(Array.prototype, "fill", {
|
|
2837
2843
|
configurable: !0,
|
|
@@ -2908,7 +2914,7 @@ var v = function r() {
|
|
|
2908
2914
|
this.x = t.x, this.y = t.y, this.z = t.z;
|
|
2909
2915
|
} else
|
|
2910
2916
|
arguments.length === 2 ? (this.x = arguments[0], this.y = arguments[1], this.z = r.NULL_ORDINATE) : arguments.length === 3 && (this.x = arguments[0], this.y = arguments[1], this.z = arguments[2]);
|
|
2911
|
-
},
|
|
2917
|
+
}, ei = { DimensionalComparator: { configurable: !0 }, serialVersionUID: { configurable: !0 }, NULL_ORDINATE: { configurable: !0 }, X: { configurable: !0 }, Y: { configurable: !0 }, Z: { configurable: !0 } };
|
|
2912
2918
|
v.prototype.setOrdinate = function(t, e) {
|
|
2913
2919
|
switch (t) {
|
|
2914
2920
|
case v.X:
|
|
@@ -2992,25 +2998,25 @@ v.hashCode = function() {
|
|
|
2992
2998
|
return Math.trunc((e ^ e) >>> 32);
|
|
2993
2999
|
}
|
|
2994
3000
|
};
|
|
2995
|
-
|
|
3001
|
+
ei.DimensionalComparator.get = function() {
|
|
2996
3002
|
return nr;
|
|
2997
3003
|
};
|
|
2998
|
-
|
|
3004
|
+
ei.serialVersionUID.get = function() {
|
|
2999
3005
|
return 6683108902428367e3;
|
|
3000
3006
|
};
|
|
3001
|
-
|
|
3007
|
+
ei.NULL_ORDINATE.get = function() {
|
|
3002
3008
|
return z.NaN;
|
|
3003
3009
|
};
|
|
3004
|
-
|
|
3010
|
+
ei.X.get = function() {
|
|
3005
3011
|
return 0;
|
|
3006
3012
|
};
|
|
3007
|
-
|
|
3013
|
+
ei.Y.get = function() {
|
|
3008
3014
|
return 1;
|
|
3009
3015
|
};
|
|
3010
|
-
|
|
3016
|
+
ei.Z.get = function() {
|
|
3011
3017
|
return 2;
|
|
3012
3018
|
};
|
|
3013
|
-
Object.defineProperties(v,
|
|
3019
|
+
Object.defineProperties(v, ei);
|
|
3014
3020
|
var nr = function(t) {
|
|
3015
3021
|
if (this._dimensionsToTest = 2, arguments.length !== 0) {
|
|
3016
3022
|
if (arguments.length === 1) {
|
|
@@ -3672,7 +3678,7 @@ Q.prototype.getClass = function() {
|
|
|
3672
3678
|
};
|
|
3673
3679
|
Object.defineProperties(Q, po);
|
|
3674
3680
|
var au = function() {
|
|
3675
|
-
},
|
|
3681
|
+
}, Gi = function(r) {
|
|
3676
3682
|
function t() {
|
|
3677
3683
|
r.call(this, "Projective point not representable on the Cartesian plane.");
|
|
3678
3684
|
}
|
|
@@ -3721,13 +3727,13 @@ var ze = function r() {
|
|
|
3721
3727
|
ze.prototype.getY = function() {
|
|
3722
3728
|
var t = this.y / this.w;
|
|
3723
3729
|
if (z.isNaN(t) || z.isInfinite(t))
|
|
3724
|
-
throw new
|
|
3730
|
+
throw new Gi();
|
|
3725
3731
|
return t;
|
|
3726
3732
|
};
|
|
3727
3733
|
ze.prototype.getX = function() {
|
|
3728
3734
|
var t = this.x / this.w;
|
|
3729
3735
|
if (z.isNaN(t) || z.isInfinite(t))
|
|
3730
|
-
throw new
|
|
3736
|
+
throw new Gi();
|
|
3731
3737
|
return t;
|
|
3732
3738
|
};
|
|
3733
3739
|
ze.prototype.getCoordinate = function() {
|
|
@@ -3743,7 +3749,7 @@ ze.prototype.getClass = function() {
|
|
|
3743
3749
|
ze.intersection = function(t, e, n, i) {
|
|
3744
3750
|
var o = t.y - e.y, s = e.x - t.x, a = t.x * e.y - e.x * t.y, u = n.y - i.y, l = i.x - n.x, c = n.x * i.y - i.x * n.y, f = s * c - l * a, h = u * a - o * c, g = o * l - u * s, p = f / g, m = h / g;
|
|
3745
3751
|
if (z.isNaN(p) || z.isInfinite(p) || z.isNaN(m) || z.isInfinite(m))
|
|
3746
|
-
throw new
|
|
3752
|
+
throw new Gi();
|
|
3747
3753
|
return new v(p, m);
|
|
3748
3754
|
};
|
|
3749
3755
|
var M = function r() {
|
|
@@ -3965,7 +3971,7 @@ Qo.prototype.read = function(t) {
|
|
|
3965
3971
|
var e, n, i;
|
|
3966
3972
|
t = t.replace(/[\n\r]/g, " ");
|
|
3967
3973
|
var o = Ze.typeStr.exec(t);
|
|
3968
|
-
if (t.search("EMPTY") !== -1 && (o = Ze.emptyTypeStr.exec(t), o[2] = void 0), o && (n = o[1].toLowerCase(), i = o[2],
|
|
3974
|
+
if (t.search("EMPTY") !== -1 && (o = Ze.emptyTypeStr.exec(t), o[2] = void 0), o && (n = o[1].toLowerCase(), i = o[2], li[n] && (e = li[n].apply(this, [i]))), e === void 0)
|
|
3969
3975
|
throw new Error("Could not parse WKT " + t);
|
|
3970
3976
|
return e;
|
|
3971
3977
|
};
|
|
@@ -4070,7 +4076,7 @@ var zn = {
|
|
|
4070
4076
|
n.push(e.extractGeometry(t._geometries[i]));
|
|
4071
4077
|
return n.join(",");
|
|
4072
4078
|
}
|
|
4073
|
-
},
|
|
4079
|
+
}, li = {
|
|
4074
4080
|
/**
|
|
4075
4081
|
* Return point geometry given a point WKT fragment.
|
|
4076
4082
|
*
|
|
@@ -4099,7 +4105,7 @@ var zn = {
|
|
|
4099
4105
|
if (t === void 0)
|
|
4100
4106
|
return this.geometryFactory.createMultiPoint();
|
|
4101
4107
|
for (var n, i = t.trim().split(","), o = [], s = 0, a = i.length; s < a; ++s)
|
|
4102
|
-
n = i[s].replace(Ze.trimParens, "$1"), o.push(
|
|
4108
|
+
n = i[s].replace(Ze.trimParens, "$1"), o.push(li.point.apply(e, [n]));
|
|
4103
4109
|
return this.geometryFactory.createMultiPoint(o);
|
|
4104
4110
|
},
|
|
4105
4111
|
/**
|
|
@@ -4142,7 +4148,7 @@ var zn = {
|
|
|
4142
4148
|
if (t === void 0)
|
|
4143
4149
|
return this.geometryFactory.createMultiLineString();
|
|
4144
4150
|
for (var n, i = t.trim().split(Ze.parenComma), o = [], s = 0, a = i.length; s < a; ++s)
|
|
4145
|
-
n = i[s].replace(Ze.trimParens, "$1"), o.push(
|
|
4151
|
+
n = i[s].replace(Ze.trimParens, "$1"), o.push(li.linestring.apply(e, [n]));
|
|
4146
4152
|
return this.geometryFactory.createMultiLineString(o);
|
|
4147
4153
|
},
|
|
4148
4154
|
/**
|
|
@@ -4157,7 +4163,7 @@ var zn = {
|
|
|
4157
4163
|
if (t === void 0)
|
|
4158
4164
|
return this.geometryFactory.createPolygon();
|
|
4159
4165
|
for (var n, i, o, s = t.trim().split(Ze.parenComma), a, u = [], l = 0, c = s.length; l < c; ++l)
|
|
4160
|
-
n = s[l].replace(Ze.trimParens, "$1"), i =
|
|
4166
|
+
n = s[l].replace(Ze.trimParens, "$1"), i = li.linestring.apply(e, [n]), o = e.geometryFactory.createLinearRing(i._points), l === 0 ? a = o : u.push(o);
|
|
4161
4167
|
return this.geometryFactory.createPolygon(a, u);
|
|
4162
4168
|
},
|
|
4163
4169
|
/**
|
|
@@ -4172,7 +4178,7 @@ var zn = {
|
|
|
4172
4178
|
if (t === void 0)
|
|
4173
4179
|
return this.geometryFactory.createMultiPolygon();
|
|
4174
4180
|
for (var n, i = t.trim().split(Ze.doubleParenComma), o = [], s = 0, a = i.length; s < a; ++s)
|
|
4175
|
-
n = i[s].replace(Ze.trimParens, "$1"), o.push(
|
|
4181
|
+
n = i[s].replace(Ze.trimParens, "$1"), o.push(li.polygon.apply(e, [n]));
|
|
4176
4182
|
return this.geometryFactory.createMultiPolygon(o);
|
|
4177
4183
|
},
|
|
4178
4184
|
/**
|
|
@@ -4255,7 +4261,7 @@ var ft = function() {
|
|
|
4255
4261
|
this._result = null, this._inputLines = Array(2).fill().map(function() {
|
|
4256
4262
|
return Array(2);
|
|
4257
4263
|
}), this._intPt = new Array(2).fill(null), this._intLineIndex = null, this._isProper = null, this._pa = null, this._pb = null, this._precisionModel = null, this._intPt[0] = new v(), this._intPt[1] = new v(), this._pa = this._intPt[0], this._pb = this._intPt[1], this._result = 0;
|
|
4258
|
-
},
|
|
4264
|
+
}, ni = { DONT_INTERSECT: { configurable: !0 }, DO_INTERSECT: { configurable: !0 }, COLLINEAR: { configurable: !0 }, NO_INTERSECTION: { configurable: !0 }, POINT_INTERSECTION: { configurable: !0 }, COLLINEAR_INTERSECTION: { configurable: !0 } };
|
|
4259
4265
|
ft.prototype.getIndexAlongSegment = function(t, e) {
|
|
4260
4266
|
return this.computeIntLineIndex(), this._intLineIndex[t][e];
|
|
4261
4267
|
};
|
|
@@ -4349,25 +4355,25 @@ ft.nonRobustComputeEdgeDistance = function(t, e, n) {
|
|
|
4349
4355
|
var i = t.x - e.x, o = t.y - e.y, s = Math.sqrt(i * i + o * o);
|
|
4350
4356
|
return U.isTrue(!(s === 0 && !t.equals(e)), "Invalid distance calculation"), s;
|
|
4351
4357
|
};
|
|
4352
|
-
|
|
4358
|
+
ni.DONT_INTERSECT.get = function() {
|
|
4353
4359
|
return 0;
|
|
4354
4360
|
};
|
|
4355
|
-
|
|
4361
|
+
ni.DO_INTERSECT.get = function() {
|
|
4356
4362
|
return 1;
|
|
4357
4363
|
};
|
|
4358
|
-
|
|
4364
|
+
ni.COLLINEAR.get = function() {
|
|
4359
4365
|
return 2;
|
|
4360
4366
|
};
|
|
4361
|
-
|
|
4367
|
+
ni.NO_INTERSECTION.get = function() {
|
|
4362
4368
|
return 0;
|
|
4363
4369
|
};
|
|
4364
|
-
|
|
4370
|
+
ni.POINT_INTERSECTION.get = function() {
|
|
4365
4371
|
return 1;
|
|
4366
4372
|
};
|
|
4367
|
-
|
|
4373
|
+
ni.COLLINEAR_INTERSECTION.get = function() {
|
|
4368
4374
|
return 2;
|
|
4369
4375
|
};
|
|
4370
|
-
Object.defineProperties(ft,
|
|
4376
|
+
Object.defineProperties(ft, ni);
|
|
4371
4377
|
var Mr = function(r) {
|
|
4372
4378
|
function t() {
|
|
4373
4379
|
r.apply(this, arguments);
|
|
@@ -4390,7 +4396,7 @@ var Mr = function(r) {
|
|
|
4390
4396
|
try {
|
|
4391
4397
|
a = ze.intersection(n, i, o, s);
|
|
4392
4398
|
} catch (u) {
|
|
4393
|
-
if (u instanceof
|
|
4399
|
+
if (u instanceof Gi)
|
|
4394
4400
|
a = t.nearestEndpoint(n, i, o, s);
|
|
4395
4401
|
else
|
|
4396
4402
|
throw u;
|
|
@@ -4553,7 +4559,7 @@ rn.locatePointInRing = function() {
|
|
|
4553
4559
|
}
|
|
4554
4560
|
};
|
|
4555
4561
|
var O = function() {
|
|
4556
|
-
},
|
|
4562
|
+
}, ri = { CLOCKWISE: { configurable: !0 }, RIGHT: { configurable: !0 }, COUNTERCLOCKWISE: { configurable: !0 }, LEFT: { configurable: !0 }, COLLINEAR: { configurable: !0 }, STRAIGHT: { configurable: !0 } };
|
|
4557
4563
|
O.prototype.interfaces_ = function() {
|
|
4558
4564
|
return [];
|
|
4559
4565
|
};
|
|
@@ -4684,25 +4690,25 @@ O.isOnLine = function(t, e) {
|
|
|
4684
4690
|
}
|
|
4685
4691
|
return !1;
|
|
4686
4692
|
};
|
|
4687
|
-
|
|
4693
|
+
ri.CLOCKWISE.get = function() {
|
|
4688
4694
|
return -1;
|
|
4689
4695
|
};
|
|
4690
|
-
|
|
4696
|
+
ri.RIGHT.get = function() {
|
|
4691
4697
|
return O.CLOCKWISE;
|
|
4692
4698
|
};
|
|
4693
|
-
|
|
4699
|
+
ri.COUNTERCLOCKWISE.get = function() {
|
|
4694
4700
|
return 1;
|
|
4695
4701
|
};
|
|
4696
|
-
|
|
4702
|
+
ri.LEFT.get = function() {
|
|
4697
4703
|
return O.COUNTERCLOCKWISE;
|
|
4698
4704
|
};
|
|
4699
|
-
|
|
4705
|
+
ri.COLLINEAR.get = function() {
|
|
4700
4706
|
return 0;
|
|
4701
4707
|
};
|
|
4702
|
-
|
|
4708
|
+
ri.STRAIGHT.get = function() {
|
|
4703
4709
|
return O.COLLINEAR;
|
|
4704
4710
|
};
|
|
4705
|
-
Object.defineProperties(O,
|
|
4711
|
+
Object.defineProperties(O, ri);
|
|
4706
4712
|
var jn = function() {
|
|
4707
4713
|
};
|
|
4708
4714
|
jn.prototype.filter = function(t) {
|
|
@@ -4987,13 +4993,13 @@ function Bs(r) {
|
|
|
4987
4993
|
}
|
|
4988
4994
|
Bs.prototype = new Error();
|
|
4989
4995
|
Bs.prototype.name = "IndexOutOfBoundsException";
|
|
4990
|
-
var
|
|
4996
|
+
var ki = function() {
|
|
4991
4997
|
};
|
|
4992
|
-
|
|
4998
|
+
ki.prototype.hasNext = function() {
|
|
4993
4999
|
};
|
|
4994
|
-
|
|
5000
|
+
ki.prototype.next = function() {
|
|
4995
5001
|
};
|
|
4996
|
-
|
|
5002
|
+
ki.prototype.remove = function() {
|
|
4997
5003
|
};
|
|
4998
5004
|
var Ve = function(r) {
|
|
4999
5005
|
function t() {
|
|
@@ -5004,11 +5010,11 @@ var Ve = function(r) {
|
|
|
5004
5010
|
}, t.prototype.isEmpty = function() {
|
|
5005
5011
|
}, t;
|
|
5006
5012
|
}(wt);
|
|
5007
|
-
function
|
|
5013
|
+
function zi(r) {
|
|
5008
5014
|
this.message = r || "";
|
|
5009
5015
|
}
|
|
5010
|
-
|
|
5011
|
-
|
|
5016
|
+
zi.prototype = new Error();
|
|
5017
|
+
zi.prototype.name = "NoSuchElementException";
|
|
5012
5018
|
var b = function(r) {
|
|
5013
5019
|
function t() {
|
|
5014
5020
|
r.call(this), this.array_ = [], arguments[0] instanceof wt && this.addAll(arguments[0]);
|
|
@@ -5028,7 +5034,7 @@ var b = function(r) {
|
|
|
5028
5034
|
var o = this.array_[n];
|
|
5029
5035
|
return this.array_[n] = i, o;
|
|
5030
5036
|
}, t.prototype.iterator = function() {
|
|
5031
|
-
return new
|
|
5037
|
+
return new pc(this);
|
|
5032
5038
|
}, t.prototype.get = function(n) {
|
|
5033
5039
|
if (n < 0 || n >= this.size())
|
|
5034
5040
|
throw new Bs();
|
|
@@ -5049,13 +5055,13 @@ var b = function(r) {
|
|
|
5049
5055
|
}
|
|
5050
5056
|
return o;
|
|
5051
5057
|
}, t;
|
|
5052
|
-
}(Ve),
|
|
5058
|
+
}(Ve), pc = function(r) {
|
|
5053
5059
|
function t(e) {
|
|
5054
5060
|
r.call(this), this.arrayList_ = e, this.position_ = 0;
|
|
5055
5061
|
}
|
|
5056
5062
|
return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t.prototype.next = function() {
|
|
5057
5063
|
if (this.position_ === this.arrayList_.size())
|
|
5058
|
-
throw new
|
|
5064
|
+
throw new zi();
|
|
5059
5065
|
return this.arrayList_.get(this.position_++);
|
|
5060
5066
|
}, t.prototype.hasNext = function() {
|
|
5061
5067
|
return this.position_ < this.arrayList_.size();
|
|
@@ -5064,7 +5070,7 @@ var b = function(r) {
|
|
|
5064
5070
|
}, t.prototype.remove = function() {
|
|
5065
5071
|
this.arrayList_.remove(this.arrayList_.get(this.position_));
|
|
5066
5072
|
}, t;
|
|
5067
|
-
}(
|
|
5073
|
+
}(ki), vo = function(r) {
|
|
5068
5074
|
function t() {
|
|
5069
5075
|
if (r.call(this), arguments.length !== 0) {
|
|
5070
5076
|
if (arguments.length === 1) {
|
|
@@ -5366,24 +5372,24 @@ _i.prototype.interfaces_ = function() {
|
|
|
5366
5372
|
_i.prototype.getClass = function() {
|
|
5367
5373
|
return _i;
|
|
5368
5374
|
};
|
|
5369
|
-
var
|
|
5375
|
+
var ii = function() {
|
|
5370
5376
|
};
|
|
5371
|
-
|
|
5377
|
+
ii.prototype.get = function() {
|
|
5372
5378
|
};
|
|
5373
|
-
|
|
5379
|
+
ii.prototype.put = function() {
|
|
5374
5380
|
};
|
|
5375
|
-
|
|
5381
|
+
ii.prototype.size = function() {
|
|
5376
5382
|
};
|
|
5377
|
-
|
|
5383
|
+
ii.prototype.values = function() {
|
|
5378
5384
|
};
|
|
5379
|
-
|
|
5385
|
+
ii.prototype.entrySet = function() {
|
|
5380
5386
|
};
|
|
5381
|
-
var
|
|
5387
|
+
var dc = function(r) {
|
|
5382
5388
|
function t() {
|
|
5383
5389
|
r.apply(this, arguments);
|
|
5384
5390
|
}
|
|
5385
5391
|
return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t;
|
|
5386
|
-
}(
|
|
5392
|
+
}(ii);
|
|
5387
5393
|
function yo(r) {
|
|
5388
5394
|
this.message = r || "";
|
|
5389
5395
|
}
|
|
@@ -5422,22 +5428,22 @@ var Gs = function(r) {
|
|
|
5422
5428
|
i.push(n.array_[o]);
|
|
5423
5429
|
return i;
|
|
5424
5430
|
}, t.prototype.iterator = function() {
|
|
5425
|
-
return new
|
|
5431
|
+
return new vc(this);
|
|
5426
5432
|
}, t;
|
|
5427
|
-
}(Zo),
|
|
5433
|
+
}(Zo), vc = function(r) {
|
|
5428
5434
|
function t(e) {
|
|
5429
5435
|
r.call(this), this.hashSet_ = e, this.position_ = 0;
|
|
5430
5436
|
}
|
|
5431
5437
|
return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t.prototype.next = function() {
|
|
5432
5438
|
if (this.position_ === this.hashSet_.size())
|
|
5433
|
-
throw new
|
|
5439
|
+
throw new zi();
|
|
5434
5440
|
return this.hashSet_.array_[this.position_++];
|
|
5435
5441
|
}, t.prototype.hasNext = function() {
|
|
5436
5442
|
return this.position_ < this.hashSet_.size();
|
|
5437
5443
|
}, t.prototype.remove = function() {
|
|
5438
5444
|
throw new yo();
|
|
5439
5445
|
}, t;
|
|
5440
|
-
}(
|
|
5446
|
+
}(ki), qn = 0, vr = 1;
|
|
5441
5447
|
function Na(r) {
|
|
5442
5448
|
return r === null ? qn : r.color;
|
|
5443
5449
|
}
|
|
@@ -5456,7 +5462,7 @@ function xa(r) {
|
|
|
5456
5462
|
function Ht() {
|
|
5457
5463
|
this.root_ = null, this.size_ = 0;
|
|
5458
5464
|
}
|
|
5459
|
-
Ht.prototype = new
|
|
5465
|
+
Ht.prototype = new dc();
|
|
5460
5466
|
Ht.prototype.get = function(r) {
|
|
5461
5467
|
for (var t = this.root_; t !== null; ) {
|
|
5462
5468
|
var e = r.compareTo(t.key);
|
|
@@ -5634,7 +5640,7 @@ var $o = function(r) {
|
|
|
5634
5640
|
};
|
|
5635
5641
|
$o.prototype.next = function() {
|
|
5636
5642
|
if (this.position_ === this.treeSet_.size())
|
|
5637
|
-
throw new
|
|
5643
|
+
throw new zi();
|
|
5638
5644
|
return this.treeSet_.array_[this.position_++];
|
|
5639
5645
|
};
|
|
5640
5646
|
$o.prototype.hasNext = function() {
|
|
@@ -6020,18 +6026,18 @@ ko.prototype.interfaces_ = function() {
|
|
|
6020
6026
|
ko.prototype.getClass = function() {
|
|
6021
6027
|
return ko;
|
|
6022
6028
|
};
|
|
6023
|
-
function
|
|
6029
|
+
function yc() {
|
|
6024
6030
|
}
|
|
6025
|
-
function
|
|
6031
|
+
function mc() {
|
|
6026
6032
|
}
|
|
6027
|
-
var
|
|
6033
|
+
var _c = function() {
|
|
6028
6034
|
};
|
|
6035
|
+
function Ec() {
|
|
6036
|
+
}
|
|
6029
6037
|
function Ic() {
|
|
6030
6038
|
}
|
|
6031
6039
|
function Cc() {
|
|
6032
6040
|
}
|
|
6033
|
-
function Nc() {
|
|
6034
|
-
}
|
|
6035
6041
|
var Re = function() {
|
|
6036
6042
|
}, ks = { NEWLINE: { configurable: !0 }, SIMPLE_ORDINATE_FORMAT: { configurable: !0 } };
|
|
6037
6043
|
Re.prototype.interfaces_ = function() {
|
|
@@ -6047,16 +6053,16 @@ Re.chars = function(t, e) {
|
|
|
6047
6053
|
};
|
|
6048
6054
|
Re.getStackTrace = function() {
|
|
6049
6055
|
if (arguments.length === 1) {
|
|
6050
|
-
var t = arguments[0], e = new
|
|
6056
|
+
var t = arguments[0], e = new Ec(), n = new yc();
|
|
6051
6057
|
return t.printStackTrace(n), e.toString();
|
|
6052
6058
|
} else if (arguments.length === 2) {
|
|
6053
6059
|
var i = arguments[0], o = arguments[1], s = "";
|
|
6054
|
-
new
|
|
6055
|
-
for (var a = new
|
|
6060
|
+
new mc(Re.getStackTrace(i));
|
|
6061
|
+
for (var a = new Cc(), u = 0; u < o; u++)
|
|
6056
6062
|
try {
|
|
6057
6063
|
s += a.readLine() + Re.NEWLINE;
|
|
6058
6064
|
} catch (l) {
|
|
6059
|
-
if (l instanceof
|
|
6065
|
+
if (l instanceof Ic)
|
|
6060
6066
|
U.shouldNeverReachHere();
|
|
6061
6067
|
else
|
|
6062
6068
|
throw l;
|
|
@@ -6088,7 +6094,7 @@ ks.NEWLINE.get = function() {
|
|
|
6088
6094
|
return zt.getProperty("line.separator");
|
|
6089
6095
|
};
|
|
6090
6096
|
ks.SIMPLE_ORDINATE_FORMAT.get = function() {
|
|
6091
|
-
return new
|
|
6097
|
+
return new _c();
|
|
6092
6098
|
};
|
|
6093
6099
|
Object.defineProperties(Re, ks);
|
|
6094
6100
|
var _t = function() {
|
|
@@ -6958,7 +6964,7 @@ var fu = function(r) {
|
|
|
6958
6964
|
}, t.prototype.size = function() {
|
|
6959
6965
|
return this.map_.size();
|
|
6960
6966
|
}, t;
|
|
6961
|
-
}(
|
|
6967
|
+
}(ii), $ = function r() {
|
|
6962
6968
|
if (this._modelType = null, this._scale = null, arguments.length === 0)
|
|
6963
6969
|
this._modelType = r.FLOATING;
|
|
6964
6970
|
else if (arguments.length === 1) {
|
|
@@ -7264,7 +7270,7 @@ hu.serialVersionUID.get = function() {
|
|
|
7264
7270
|
return -6820524753094096e3;
|
|
7265
7271
|
};
|
|
7266
7272
|
Object.defineProperties(H, hu);
|
|
7267
|
-
var
|
|
7273
|
+
var Nc = ["Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"], es = function(t) {
|
|
7268
7274
|
this.geometryFactory = t || new H();
|
|
7269
7275
|
};
|
|
7270
7276
|
es.prototype.read = function(t) {
|
|
@@ -7273,7 +7279,7 @@ es.prototype.read = function(t) {
|
|
|
7273
7279
|
var n = e.type;
|
|
7274
7280
|
if (!tn[n])
|
|
7275
7281
|
throw new Error("Unknown GeoJSON type: " + e.type);
|
|
7276
|
-
return
|
|
7282
|
+
return Nc.indexOf(n) !== -1 ? tn[n].apply(this, [e.coordinates]) : n === "GeometryCollection" ? tn[n].apply(this, [e.geometries]) : tn[n].apply(this, [e]);
|
|
7277
7283
|
};
|
|
7278
7284
|
es.prototype.write = function(t) {
|
|
7279
7285
|
var e = t.getGeometryType();
|
|
@@ -8179,7 +8185,7 @@ xt.prototype.interfaces_ = function() {
|
|
|
8179
8185
|
xt.prototype.getClass = function() {
|
|
8180
8186
|
return xt;
|
|
8181
8187
|
};
|
|
8182
|
-
var
|
|
8188
|
+
var xc = function(r) {
|
|
8183
8189
|
function t() {
|
|
8184
8190
|
var e = arguments[0], n = arguments[1];
|
|
8185
8191
|
r.call(this, e, n);
|
|
@@ -8193,7 +8199,7 @@ var Sc = function(r) {
|
|
|
8193
8199
|
}, t.prototype.getClass = function() {
|
|
8194
8200
|
return t;
|
|
8195
8201
|
}, t;
|
|
8196
|
-
}(xt),
|
|
8202
|
+
}(xt), Sc = function(r) {
|
|
8197
8203
|
function t() {
|
|
8198
8204
|
var e = arguments[0], n = arguments[1];
|
|
8199
8205
|
r.call(this, e, n);
|
|
@@ -8202,7 +8208,7 @@ var Sc = function(r) {
|
|
|
8202
8208
|
var n = this, i = new b(), o = this._startDe;
|
|
8203
8209
|
do {
|
|
8204
8210
|
if (o.getMinEdgeRing() === null) {
|
|
8205
|
-
var s = new
|
|
8211
|
+
var s = new xc(o, n._geometryFactory);
|
|
8206
8212
|
i.add(s);
|
|
8207
8213
|
}
|
|
8208
8214
|
o = o.getNext();
|
|
@@ -8767,7 +8773,7 @@ de.prototype.buildMaximalEdgeRings = function(t) {
|
|
|
8767
8773
|
for (var e = this, n = new b(), i = t.iterator(); i.hasNext(); ) {
|
|
8768
8774
|
var o = i.next();
|
|
8769
8775
|
if (o.isInResult() && o.getLabel().isArea() && o.getEdgeRing() === null) {
|
|
8770
|
-
var s = new
|
|
8776
|
+
var s = new Sc(o, e._geometryFactory);
|
|
8771
8777
|
n.add(s), s.setInResult();
|
|
8772
8778
|
}
|
|
8773
8779
|
}
|
|
@@ -9180,7 +9186,7 @@ Dt.compareDoubles = function(t, e) {
|
|
|
9180
9186
|
return t > e ? 1 : t < e ? -1 : 0;
|
|
9181
9187
|
};
|
|
9182
9188
|
ss.IntersectsOp.get = function() {
|
|
9183
|
-
return
|
|
9189
|
+
return wc;
|
|
9184
9190
|
};
|
|
9185
9191
|
ss.serialVersionUID.get = function() {
|
|
9186
9192
|
return -3886435814360241e3;
|
|
@@ -9189,7 +9195,7 @@ ss.DEFAULT_NODE_CAPACITY.get = function() {
|
|
|
9189
9195
|
return 10;
|
|
9190
9196
|
};
|
|
9191
9197
|
Object.defineProperties(Dt, ss);
|
|
9192
|
-
var
|
|
9198
|
+
var wc = function() {
|
|
9193
9199
|
}, Ni = function() {
|
|
9194
9200
|
};
|
|
9195
9201
|
Ni.prototype.distance = function(t, e) {
|
|
@@ -9774,7 +9780,7 @@ F.prototype.lineIntersection = function(t) {
|
|
|
9774
9780
|
var e = ze.intersection(this.p0, this.p1, t.p0, t.p1);
|
|
9775
9781
|
return e;
|
|
9776
9782
|
} catch (n) {
|
|
9777
|
-
if (!(n instanceof
|
|
9783
|
+
if (!(n instanceof Gi))
|
|
9778
9784
|
throw n;
|
|
9779
9785
|
} finally {
|
|
9780
9786
|
}
|
|
@@ -10287,7 +10293,7 @@ yu.COORDINATE_ARRAY_TYPE.get = function() {
|
|
|
10287
10293
|
};
|
|
10288
10294
|
Object.defineProperties(Se, yu);
|
|
10289
10295
|
var K = function() {
|
|
10290
|
-
},
|
|
10296
|
+
}, oi = { PI_TIMES_2: { configurable: !0 }, PI_OVER_2: { configurable: !0 }, PI_OVER_4: { configurable: !0 }, COUNTERCLOCKWISE: { configurable: !0 }, CLOCKWISE: { configurable: !0 }, NONE: { configurable: !0 } };
|
|
10291
10297
|
K.prototype.interfaces_ = function() {
|
|
10292
10298
|
return [];
|
|
10293
10299
|
};
|
|
@@ -10356,25 +10362,25 @@ K.angleBetweenOriented = function(t, e, n) {
|
|
|
10356
10362
|
var i = K.angle(e, t), o = K.angle(e, n), s = o - i;
|
|
10357
10363
|
return s <= -Math.PI ? s + K.PI_TIMES_2 : s > Math.PI ? s - K.PI_TIMES_2 : s;
|
|
10358
10364
|
};
|
|
10359
|
-
|
|
10365
|
+
oi.PI_TIMES_2.get = function() {
|
|
10360
10366
|
return 2 * Math.PI;
|
|
10361
10367
|
};
|
|
10362
|
-
|
|
10368
|
+
oi.PI_OVER_2.get = function() {
|
|
10363
10369
|
return Math.PI / 2;
|
|
10364
10370
|
};
|
|
10365
|
-
|
|
10371
|
+
oi.PI_OVER_4.get = function() {
|
|
10366
10372
|
return Math.PI / 4;
|
|
10367
10373
|
};
|
|
10368
|
-
|
|
10374
|
+
oi.COUNTERCLOCKWISE.get = function() {
|
|
10369
10375
|
return O.COUNTERCLOCKWISE;
|
|
10370
10376
|
};
|
|
10371
|
-
|
|
10377
|
+
oi.CLOCKWISE.get = function() {
|
|
10372
10378
|
return O.CLOCKWISE;
|
|
10373
10379
|
};
|
|
10374
|
-
|
|
10380
|
+
oi.NONE.get = function() {
|
|
10375
10381
|
return O.COLLINEAR;
|
|
10376
10382
|
};
|
|
10377
|
-
Object.defineProperties(K,
|
|
10383
|
+
Object.defineProperties(K, oi);
|
|
10378
10384
|
var lt = function r() {
|
|
10379
10385
|
this._maxCurveSegmentError = 0, this._filletAngleQuantum = null, this._closingSegLengthFactor = 1, this._segList = null, this._distance = 0, this._precisionModel = null, this._bufParams = null, this._li = null, this._s0 = null, this._s1 = null, this._s2 = null, this._seg0 = new F(), this._seg1 = new F(), this._offset0 = new F(), this._offset1 = new F(), this._side = 0, this._hasNarrowConcaveAngle = !1;
|
|
10380
10386
|
var t = arguments[0], e = arguments[1], n = arguments[2];
|
|
@@ -10418,7 +10424,7 @@ lt.prototype.addMitreJoin = function(t, e, n, i) {
|
|
|
10418
10424
|
var a = i <= 0 ? 1 : s.distance(t) / Math.abs(i);
|
|
10419
10425
|
a > this._bufParams.getMitreLimit() && (o = !1);
|
|
10420
10426
|
} catch (u) {
|
|
10421
|
-
if (u instanceof
|
|
10427
|
+
if (u instanceof Gi)
|
|
10422
10428
|
s = new v(0, 0), o = !1;
|
|
10423
10429
|
else
|
|
10424
10430
|
throw u;
|
|
@@ -10901,7 +10907,7 @@ xn.prototype.next = function() {
|
|
|
10901
10907
|
this._subcollectionIterator = null;
|
|
10902
10908
|
}
|
|
10903
10909
|
if (this._index >= this._max)
|
|
10904
|
-
throw new
|
|
10910
|
+
throw new zi();
|
|
10905
10911
|
var t = this._parent.getGeometryN(this._index++);
|
|
10906
10912
|
return t instanceof ne ? (this._subcollectionIterator = new xn(t), this._subcollectionIterator.next()) : t;
|
|
10907
10913
|
};
|
|
@@ -10919,7 +10925,7 @@ xn.prototype.hasNext = function() {
|
|
|
10919
10925
|
return !(this._index >= this._max);
|
|
10920
10926
|
};
|
|
10921
10927
|
xn.prototype.interfaces_ = function() {
|
|
10922
|
-
return [
|
|
10928
|
+
return [ki];
|
|
10923
10929
|
};
|
|
10924
10930
|
xn.prototype.getClass = function() {
|
|
10925
10931
|
return xn;
|
|
@@ -11099,7 +11105,7 @@ jt.prototype.interfaces_ = function() {
|
|
|
11099
11105
|
jt.prototype.getClass = function() {
|
|
11100
11106
|
return jt;
|
|
11101
11107
|
};
|
|
11102
|
-
var
|
|
11108
|
+
var Lc = function(r) {
|
|
11103
11109
|
function t() {
|
|
11104
11110
|
r.call(this), this._resultAreaEdgeList = null, this._label = null, this._SCANNING_FOR_INCOMING = 1, this._LINKING_TO_OUTGOING = 2;
|
|
11105
11111
|
}
|
|
@@ -11257,7 +11263,7 @@ var bc = function(r) {
|
|
|
11257
11263
|
r.apply(this, arguments);
|
|
11258
11264
|
}
|
|
11259
11265
|
return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t.prototype.createNode = function(n) {
|
|
11260
|
-
return new os(n, new
|
|
11266
|
+
return new os(n, new Lc());
|
|
11261
11267
|
}, t.prototype.interfaces_ = function() {
|
|
11262
11268
|
return [];
|
|
11263
11269
|
}, t.prototype.getClass = function() {
|
|
@@ -12210,7 +12216,7 @@ var Gt = function() {
|
|
|
12210
12216
|
var e = arguments[0], n = arguments[1];
|
|
12211
12217
|
this._argGeom = e, this._bufParams = n;
|
|
12212
12218
|
}
|
|
12213
|
-
},
|
|
12219
|
+
}, Vi = { CAP_ROUND: { configurable: !0 }, CAP_BUTT: { configurable: !0 }, CAP_FLAT: { configurable: !0 }, CAP_SQUARE: { configurable: !0 }, MAX_PRECISION_DIGITS: { configurable: !0 } };
|
|
12214
12220
|
Gt.prototype.bufferFixedPrecision = function(t) {
|
|
12215
12221
|
var e = new lr(new Rn(new $(1)), t.getScale()), n = new ee(this._bufParams);
|
|
12216
12222
|
n.setWorkingPrecisionModel(t), n.setNoder(e), this._resultGeometry = n.buffer(this._argGeom, this._distance);
|
|
@@ -12295,22 +12301,22 @@ Gt.precisionScaleFactor = function(t, e, n) {
|
|
|
12295
12301
|
var i = t.getEnvelopeInternal(), o = Ne.max(Math.abs(i.getMaxX()), Math.abs(i.getMaxY()), Math.abs(i.getMinX()), Math.abs(i.getMinY())), s = e > 0 ? e : 0, a = o + 2 * s, u = Math.trunc(Math.log(a) / Math.log(10) + 1), l = n - u, c = Math.pow(10, l);
|
|
12296
12302
|
return c;
|
|
12297
12303
|
};
|
|
12298
|
-
|
|
12304
|
+
Vi.CAP_ROUND.get = function() {
|
|
12299
12305
|
return Z.CAP_ROUND;
|
|
12300
12306
|
};
|
|
12301
|
-
|
|
12307
|
+
Vi.CAP_BUTT.get = function() {
|
|
12302
12308
|
return Z.CAP_FLAT;
|
|
12303
12309
|
};
|
|
12304
|
-
|
|
12310
|
+
Vi.CAP_FLAT.get = function() {
|
|
12305
12311
|
return Z.CAP_FLAT;
|
|
12306
12312
|
};
|
|
12307
|
-
|
|
12313
|
+
Vi.CAP_SQUARE.get = function() {
|
|
12308
12314
|
return Z.CAP_SQUARE;
|
|
12309
12315
|
};
|
|
12310
|
-
|
|
12316
|
+
Vi.MAX_PRECISION_DIGITS.get = function() {
|
|
12311
12317
|
return 12;
|
|
12312
12318
|
};
|
|
12313
|
-
Object.defineProperties(Gt,
|
|
12319
|
+
Object.defineProperties(Gt, Vi);
|
|
12314
12320
|
var Zt = function() {
|
|
12315
12321
|
this._pt = [new v(), new v()], this._distance = z.NaN, this._isNull = !0;
|
|
12316
12322
|
};
|
|
@@ -14034,7 +14040,7 @@ qt.prototype.getClass = function() {
|
|
|
14034
14040
|
qt.isAdjacentSegments = function(t, e) {
|
|
14035
14041
|
return Math.abs(t - e) === 1;
|
|
14036
14042
|
};
|
|
14037
|
-
var
|
|
14043
|
+
var bc = function(r) {
|
|
14038
14044
|
function t() {
|
|
14039
14045
|
r.call(this), this.events = new b(), this.nOverlaps = null;
|
|
14040
14046
|
}
|
|
@@ -14131,7 +14137,7 @@ fo.prototype.interfaces_ = function() {
|
|
|
14131
14137
|
fo.prototype.getClass = function() {
|
|
14132
14138
|
return fo;
|
|
14133
14139
|
};
|
|
14134
|
-
var
|
|
14140
|
+
var Pc = function(r) {
|
|
14135
14141
|
function t() {
|
|
14136
14142
|
r.call(this), this._item = null;
|
|
14137
14143
|
var e = arguments[0], n = arguments[1], i = arguments[2];
|
|
@@ -14146,7 +14152,7 @@ var Rc = function(r) {
|
|
|
14146
14152
|
}, t.prototype.getClass = function() {
|
|
14147
14153
|
return t;
|
|
14148
14154
|
}, t;
|
|
14149
|
-
}(Dn),
|
|
14155
|
+
}(Dn), Rc = function(r) {
|
|
14150
14156
|
function t() {
|
|
14151
14157
|
r.call(this), this._node1 = null, this._node2 = null;
|
|
14152
14158
|
var e = arguments[0], n = arguments[1];
|
|
@@ -14178,7 +14184,7 @@ Tn.prototype.buildTree = function() {
|
|
|
14178
14184
|
Tn.prototype.insert = function(t, e, n) {
|
|
14179
14185
|
if (this._root !== null)
|
|
14180
14186
|
throw new Error("Index cannot be added to once it has been queried");
|
|
14181
|
-
this._leaves.add(new
|
|
14187
|
+
this._leaves.add(new Pc(t, e, n));
|
|
14182
14188
|
};
|
|
14183
14189
|
Tn.prototype.query = function(t, e, n) {
|
|
14184
14190
|
this.init(), this._root.query(t, e, n);
|
|
@@ -14203,7 +14209,7 @@ Tn.prototype.buildLevel = function(t, e) {
|
|
|
14203
14209
|
if (o === null)
|
|
14204
14210
|
e.add(i);
|
|
14205
14211
|
else {
|
|
14206
|
-
var s = new
|
|
14212
|
+
var s = new Rc(t.get(n), t.get(n + 1));
|
|
14207
14213
|
e.add(s);
|
|
14208
14214
|
}
|
|
14209
14215
|
}
|
|
@@ -14394,7 +14400,7 @@ var Xi = function(r) {
|
|
|
14394
14400
|
var s = this._nodes.addNode(i), a = s.getLabel();
|
|
14395
14401
|
a === null ? s._label = new et(n, o) : a.setLocation(n, o);
|
|
14396
14402
|
}, t.prototype.createEdgeSetIntersector = function() {
|
|
14397
|
-
return new
|
|
14403
|
+
return new bc();
|
|
14398
14404
|
}, t.prototype.addSelfIntersectionNodes = function(n) {
|
|
14399
14405
|
for (var i = this, o = this._edges.iterator(); o.hasNext(); )
|
|
14400
14406
|
for (var s = o.next(), a = s.getLabel().getLocation(n), u = s.eiList.iterator(); u.hasNext(); ) {
|
|
@@ -15038,22 +15044,22 @@ qo.prototype = {
|
|
|
15038
15044
|
this.t = 0;
|
|
15039
15045
|
},
|
|
15040
15046
|
add: function(r) {
|
|
15041
|
-
La(
|
|
15047
|
+
La(So, r, this.t), La(this, So.s, this.s), this.s ? this.t += So.t : this.s = So.t;
|
|
15042
15048
|
},
|
|
15043
15049
|
valueOf: function() {
|
|
15044
15050
|
return this.s;
|
|
15045
15051
|
}
|
|
15046
15052
|
};
|
|
15047
|
-
var
|
|
15053
|
+
var So = new qo();
|
|
15048
15054
|
function La(r, t, e) {
|
|
15049
15055
|
var n = r.s = t + e, i = n - t, o = n - i;
|
|
15050
15056
|
r.t = t - o + (e - i);
|
|
15051
15057
|
}
|
|
15052
|
-
var gt = 1e-6, it = Math.PI, Yn = it / 2, ba = it / 4, Zn = it * 2, yr = 180 / it, $e = it / 180, te = Math.abs,
|
|
15058
|
+
var gt = 1e-6, it = Math.PI, Yn = it / 2, ba = it / 4, Zn = it * 2, yr = 180 / it, $e = it / 180, te = Math.abs, Oc = Math.atan, Oi = Math.atan2, Lt = Math.cos, bt = Math.sin, Io = Math.sqrt;
|
|
15053
15059
|
function Ou(r) {
|
|
15054
15060
|
return r > 1 ? 0 : r < -1 ? it : Math.acos(r);
|
|
15055
15061
|
}
|
|
15056
|
-
function
|
|
15062
|
+
function Di(r) {
|
|
15057
15063
|
return r > 1 ? Yn : r < -1 ? -Yn : Math.asin(r);
|
|
15058
15064
|
}
|
|
15059
15065
|
function Yi() {
|
|
@@ -15111,19 +15117,19 @@ function Oa(r, t) {
|
|
|
15111
15117
|
Rs(r[e], t, 1);
|
|
15112
15118
|
t.polygonEnd();
|
|
15113
15119
|
}
|
|
15114
|
-
function
|
|
15120
|
+
function Dc(r, t) {
|
|
15115
15121
|
r && Pa.hasOwnProperty(r.type) ? Pa[r.type](r, t) : Xo(r, t);
|
|
15116
15122
|
}
|
|
15117
15123
|
Ar();
|
|
15118
15124
|
Ar();
|
|
15119
15125
|
function Os(r) {
|
|
15120
|
-
return [Oi(r[1], r[0]),
|
|
15126
|
+
return [Oi(r[1], r[0]), Di(r[2])];
|
|
15121
15127
|
}
|
|
15122
|
-
function
|
|
15128
|
+
function Ti(r) {
|
|
15123
15129
|
var t = r[0], e = r[1], n = Lt(e);
|
|
15124
15130
|
return [n * Lt(t), n * bt(t), bt(e)];
|
|
15125
15131
|
}
|
|
15126
|
-
function
|
|
15132
|
+
function wo(r, t) {
|
|
15127
15133
|
return r[0] * t[0] + r[1] * t[1] + r[2] * t[2];
|
|
15128
15134
|
}
|
|
15129
15135
|
function Yo(r, t) {
|
|
@@ -15132,11 +15138,11 @@ function Yo(r, t) {
|
|
|
15132
15138
|
function vs(r, t) {
|
|
15133
15139
|
r[0] += t[0], r[1] += t[1], r[2] += t[2];
|
|
15134
15140
|
}
|
|
15135
|
-
function
|
|
15141
|
+
function Lo(r, t) {
|
|
15136
15142
|
return [r[0] * t, r[1] * t, r[2] * t];
|
|
15137
15143
|
}
|
|
15138
15144
|
function Ds(r) {
|
|
15139
|
-
var t =
|
|
15145
|
+
var t = Io(r[0] * r[0] + r[1] * r[1] + r[2] * r[2]);
|
|
15140
15146
|
r[0] /= t, r[1] /= t, r[2] /= t;
|
|
15141
15147
|
}
|
|
15142
15148
|
Ar();
|
|
@@ -15152,7 +15158,7 @@ function Ts(r, t) {
|
|
|
15152
15158
|
return [r > it ? r - Zn : r < -it ? r + Zn : r, t];
|
|
15153
15159
|
}
|
|
15154
15160
|
Ts.invert = Ts;
|
|
15155
|
-
function
|
|
15161
|
+
function Tc(r, t, e) {
|
|
15156
15162
|
return (r %= Zn) ? t || e ? Du(Ta(r), Ma(t, e)) : Ta(r) : t || e ? Ma(t, e) : Ts;
|
|
15157
15163
|
}
|
|
15158
15164
|
function Da(r) {
|
|
@@ -15170,18 +15176,18 @@ function Ma(r, t) {
|
|
|
15170
15176
|
var l = Lt(u), c = Lt(a) * l, f = bt(a) * l, h = bt(u), g = h * e + c * n;
|
|
15171
15177
|
return [
|
|
15172
15178
|
Oi(f * i - g * o, c * e - h * n),
|
|
15173
|
-
|
|
15179
|
+
Di(g * i + f * o)
|
|
15174
15180
|
];
|
|
15175
15181
|
}
|
|
15176
15182
|
return s.invert = function(a, u) {
|
|
15177
15183
|
var l = Lt(u), c = Lt(a) * l, f = bt(a) * l, h = bt(u), g = h * i - f * o;
|
|
15178
15184
|
return [
|
|
15179
15185
|
Oi(f * i + h * o, c * e + g * n),
|
|
15180
|
-
|
|
15186
|
+
Di(g * e - c * n)
|
|
15181
15187
|
];
|
|
15182
15188
|
}, s;
|
|
15183
15189
|
}
|
|
15184
|
-
function
|
|
15190
|
+
function Mc(r, t, e, n, i, o) {
|
|
15185
15191
|
if (e) {
|
|
15186
15192
|
var s = Lt(t), a = bt(t), u = n * e;
|
|
15187
15193
|
i == null ? (i = t + n * Zn, o = t - u / 2) : (i = Aa(s, i), o = Aa(s, o), (n > 0 ? i < o : i > o) && (i += n * Zn));
|
|
@@ -15190,7 +15196,7 @@ function Ac(r, t, e, n, i, o) {
|
|
|
15190
15196
|
}
|
|
15191
15197
|
}
|
|
15192
15198
|
function Aa(r, t) {
|
|
15193
|
-
t =
|
|
15199
|
+
t = Ti(t), t[0] -= r, Ds(t);
|
|
15194
15200
|
var e = Ou(-t[1]);
|
|
15195
15201
|
return ((-t[2] < 0 ? -e : e) + Zn - gt) % Zn;
|
|
15196
15202
|
}
|
|
@@ -15213,7 +15219,7 @@ function Tu() {
|
|
|
15213
15219
|
}
|
|
15214
15220
|
};
|
|
15215
15221
|
}
|
|
15216
|
-
function
|
|
15222
|
+
function Ac(r, t, e, n, i, o) {
|
|
15217
15223
|
var s = r[0], a = r[1], u = t[0], l = t[1], c = 0, f = 1, h = u - s, g = l - a, p;
|
|
15218
15224
|
if (p = e - s, !(!h && p > 0)) {
|
|
15219
15225
|
if (p /= h, h < 0) {
|
|
@@ -15264,7 +15270,7 @@ function Fc(r, t, e, n, i, o) {
|
|
|
15264
15270
|
function To(r, t) {
|
|
15265
15271
|
return te(r[0] - t[0]) < gt && te(r[1] - t[1]) < gt;
|
|
15266
15272
|
}
|
|
15267
|
-
function
|
|
15273
|
+
function bo(r, t, e, n) {
|
|
15268
15274
|
this.x = r, this.z = t, this.o = e, this.e = n, this.v = !1, this.n = this.p = null;
|
|
15269
15275
|
}
|
|
15270
15276
|
function Mu(r, t, e, n, i) {
|
|
@@ -15278,7 +15284,7 @@ function Mu(r, t, e, n, i) {
|
|
|
15278
15284
|
i.lineEnd();
|
|
15279
15285
|
return;
|
|
15280
15286
|
}
|
|
15281
|
-
o.push(I = new
|
|
15287
|
+
o.push(I = new bo(d, p, null, !0)), s.push(I.o = new bo(d, null, I, !1)), o.push(I = new bo(y, p, null, !1)), s.push(I.o = new bo(y, null, I, !0));
|
|
15282
15288
|
}
|
|
15283
15289
|
}), !!o.length) {
|
|
15284
15290
|
for (s.sort(t), Fa(o), Fa(s), a = 0, u = s.length; a < u; ++a)
|
|
@@ -15320,8 +15326,8 @@ function Fa(r) {
|
|
|
15320
15326
|
function Au(r, t) {
|
|
15321
15327
|
return r < t ? -1 : r > t ? 1 : r >= t ? 0 : NaN;
|
|
15322
15328
|
}
|
|
15323
|
-
function
|
|
15324
|
-
return r.length === 1 && (r =
|
|
15329
|
+
function Fc(r) {
|
|
15330
|
+
return r.length === 1 && (r = Bc(r)), {
|
|
15325
15331
|
left: function(t, e, n, i) {
|
|
15326
15332
|
for (n == null && (n = 0), i == null && (i = t.length); n < i; ) {
|
|
15327
15333
|
var o = n + i >>> 1;
|
|
@@ -15338,12 +15344,12 @@ function Bc(r) {
|
|
|
15338
15344
|
}
|
|
15339
15345
|
};
|
|
15340
15346
|
}
|
|
15341
|
-
function
|
|
15347
|
+
function Bc(r) {
|
|
15342
15348
|
return function(t, e) {
|
|
15343
15349
|
return Au(r(t), e);
|
|
15344
15350
|
};
|
|
15345
15351
|
}
|
|
15346
|
-
|
|
15352
|
+
Fc(Au);
|
|
15347
15353
|
function Fu(r) {
|
|
15348
15354
|
for (var t = r.length, e, n = -1, i = 0, o, s; ++n < t; )
|
|
15349
15355
|
i += r[n].length;
|
|
@@ -15352,8 +15358,8 @@ function Fu(r) {
|
|
|
15352
15358
|
o[--i] = s[e];
|
|
15353
15359
|
return o;
|
|
15354
15360
|
}
|
|
15355
|
-
var Hi = 1e9,
|
|
15356
|
-
function
|
|
15361
|
+
var Hi = 1e9, Po = -Hi;
|
|
15362
|
+
function Gc(r, t, e, n) {
|
|
15357
15363
|
function i(l, c) {
|
|
15358
15364
|
return r <= l && l <= e && t <= c && c <= n;
|
|
15359
15365
|
}
|
|
@@ -15413,8 +15419,8 @@ function kc(r, t, e, n) {
|
|
|
15413
15419
|
else if (St && S)
|
|
15414
15420
|
c.point(Y, at);
|
|
15415
15421
|
else {
|
|
15416
|
-
var Xt = [I = Math.max(
|
|
15417
|
-
|
|
15422
|
+
var Xt = [I = Math.max(Po, Math.min(Hi, I)), C = Math.max(Po, Math.min(Hi, C))], fe = [Y = Math.max(Po, Math.min(Hi, Y)), at = Math.max(Po, Math.min(Hi, at))];
|
|
15423
|
+
Ac(Xt, fe, r, t, e, n) ? (S || (c.lineStart(), c.point(Xt[0], Xt[1])), c.point(fe[0], fe[1]), St || c.lineEnd(), L = !1) : St && (c.lineStart(), c.point(Y, at), L = !1);
|
|
15418
15424
|
}
|
|
15419
15425
|
I = Y, C = at, S = St;
|
|
15420
15426
|
}
|
|
@@ -15422,7 +15428,7 @@ function kc(r, t, e, n) {
|
|
|
15422
15428
|
};
|
|
15423
15429
|
}
|
|
15424
15430
|
var ys = Ar();
|
|
15425
|
-
function
|
|
15431
|
+
function kc(r, t) {
|
|
15426
15432
|
var e = t[0], n = t[1], i = [bt(e), -Lt(e), 0], o = 0, s = 0;
|
|
15427
15433
|
ys.reset();
|
|
15428
15434
|
for (var a = 0, u = r.length; a < u; ++a)
|
|
@@ -15430,11 +15436,11 @@ function zc(r, t) {
|
|
|
15430
15436
|
for (var l, c, f = l[c - 1], h = f[0], g = f[1] / 2 + ba, p = bt(g), m = Lt(g), d = 0; d < c; ++d, h = I, p = S, m = x, f = y) {
|
|
15431
15437
|
var y = l[d], I = y[0], C = y[1] / 2 + ba, S = bt(C), x = Lt(C), L = I - h, D = L >= 0 ? 1 : -1, T = D * L, A = T > it, q = p * S;
|
|
15432
15438
|
if (ys.add(Oi(q * D * bt(T), m * x + q * Lt(T))), o += A ? L + D * Zn : L, A ^ h >= e ^ I >= e) {
|
|
15433
|
-
var j = Yo(
|
|
15439
|
+
var j = Yo(Ti(f), Ti(y));
|
|
15434
15440
|
Ds(j);
|
|
15435
15441
|
var P = Yo(i, j);
|
|
15436
15442
|
Ds(P);
|
|
15437
|
-
var X = (A ^ L >= 0 ? -1 : 1) *
|
|
15443
|
+
var X = (A ^ L >= 0 ? -1 : 1) * Di(P[2]);
|
|
15438
15444
|
(n > X || n === X && (j[0] || j[1])) && (s += A ^ L >= 0 ? 1 : -1);
|
|
15439
15445
|
}
|
|
15440
15446
|
}
|
|
@@ -15446,19 +15452,19 @@ function Ba(r) {
|
|
|
15446
15452
|
}
|
|
15447
15453
|
Ar();
|
|
15448
15454
|
Ar();
|
|
15449
|
-
var
|
|
15450
|
-
point:
|
|
15455
|
+
var Mi = 1 / 0, Ho = Mi, ho = -Mi, Wo = ho, Ga = {
|
|
15456
|
+
point: zc,
|
|
15451
15457
|
lineStart: Yi,
|
|
15452
15458
|
lineEnd: Yi,
|
|
15453
15459
|
polygonStart: Yi,
|
|
15454
15460
|
polygonEnd: Yi,
|
|
15455
15461
|
result: function() {
|
|
15456
|
-
var r = [[
|
|
15457
|
-
return ho = Wo = -(Ho =
|
|
15462
|
+
var r = [[Mi, Ho], [ho, Wo]];
|
|
15463
|
+
return ho = Wo = -(Ho = Mi = 1 / 0), r;
|
|
15458
15464
|
}
|
|
15459
15465
|
};
|
|
15460
|
-
function
|
|
15461
|
-
r <
|
|
15466
|
+
function zc(r, t) {
|
|
15467
|
+
r < Mi && (Mi = r), r > ho && (ho = r), t < Ho && (Ho = t), t > Wo && (Wo = t);
|
|
15462
15468
|
}
|
|
15463
15469
|
Ar();
|
|
15464
15470
|
function Bu(r, t, e, n) {
|
|
@@ -15472,8 +15478,8 @@ function Bu(r, t, e, n) {
|
|
|
15472
15478
|
},
|
|
15473
15479
|
polygonEnd: function() {
|
|
15474
15480
|
p.point = m, p.lineStart = y, p.lineEnd = I, h = Fu(h);
|
|
15475
|
-
var L =
|
|
15476
|
-
h.length ? (c || (o.polygonStart(), c = !0), Mu(h,
|
|
15481
|
+
var L = kc(f, a);
|
|
15482
|
+
h.length ? (c || (o.polygonStart(), c = !0), Mu(h, Uc, L, e, o)) : L && (c || (o.polygonStart(), c = !0), o.lineStart(), e(null, null, 1, o), o.lineEnd()), c && (o.polygonEnd(), c = !1), h = f = null;
|
|
15477
15483
|
},
|
|
15478
15484
|
sphere: function() {
|
|
15479
15485
|
o.polygonStart(), o.lineStart(), e(null, null, 1, o), o.lineEnd(), o.polygonEnd();
|
|
@@ -15513,27 +15519,27 @@ function Bu(r, t, e, n) {
|
|
|
15513
15519
|
}
|
|
15514
15520
|
return;
|
|
15515
15521
|
}
|
|
15516
|
-
A > 1 && L & 2 && D.push(D.pop().concat(D.shift())), h.push(D.filter(
|
|
15522
|
+
A > 1 && L & 2 && D.push(D.pop().concat(D.shift())), h.push(D.filter(Vc));
|
|
15517
15523
|
}
|
|
15518
15524
|
}
|
|
15519
15525
|
return p;
|
|
15520
15526
|
};
|
|
15521
15527
|
}
|
|
15522
|
-
function
|
|
15528
|
+
function Vc(r) {
|
|
15523
15529
|
return r.length > 1;
|
|
15524
15530
|
}
|
|
15525
|
-
function
|
|
15531
|
+
function Uc(r, t) {
|
|
15526
15532
|
return ((r = r.x)[0] < 0 ? r[1] - Yn - gt : Yn - r[1]) - ((t = t.x)[0] < 0 ? t[1] - Yn - gt : Yn - t[1]);
|
|
15527
15533
|
}
|
|
15528
15534
|
const ka = Bu(
|
|
15529
15535
|
function() {
|
|
15530
15536
|
return !0;
|
|
15531
15537
|
},
|
|
15532
|
-
|
|
15533
|
-
|
|
15538
|
+
qc,
|
|
15539
|
+
Yc,
|
|
15534
15540
|
[-it, -Yn]
|
|
15535
15541
|
);
|
|
15536
|
-
function
|
|
15542
|
+
function qc(r) {
|
|
15537
15543
|
var t = NaN, e = NaN, n = NaN, i;
|
|
15538
15544
|
return {
|
|
15539
15545
|
lineStart: function() {
|
|
@@ -15541,7 +15547,7 @@ function Xc(r) {
|
|
|
15541
15547
|
},
|
|
15542
15548
|
point: function(o, s) {
|
|
15543
15549
|
var a = o > 0 ? it : -it, u = te(o - t);
|
|
15544
|
-
te(u - it) < gt ? (r.point(t, e = (e + s) / 2 > 0 ? Yn : -Yn), r.point(n, e), r.lineEnd(), r.lineStart(), r.point(a, e), r.point(o, e), i = 0) : n !== a && u >= it && (te(t - n) < gt && (t -= n * gt), te(o - a) < gt && (o -= a * gt), e =
|
|
15550
|
+
te(u - it) < gt ? (r.point(t, e = (e + s) / 2 > 0 ? Yn : -Yn), r.point(n, e), r.lineEnd(), r.lineStart(), r.point(a, e), r.point(o, e), i = 0) : n !== a && u >= it && (te(t - n) < gt && (t -= n * gt), te(o - a) < gt && (o -= a * gt), e = 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;
|
|
15545
15551
|
},
|
|
15546
15552
|
lineEnd: function() {
|
|
15547
15553
|
r.lineEnd(), t = e = NaN;
|
|
@@ -15551,11 +15557,11 @@ function Xc(r) {
|
|
|
15551
15557
|
}
|
|
15552
15558
|
};
|
|
15553
15559
|
}
|
|
15554
|
-
function
|
|
15560
|
+
function Xc(r, t, e, n) {
|
|
15555
15561
|
var i, o, s = bt(r - e);
|
|
15556
|
-
return te(s) > gt ?
|
|
15562
|
+
return te(s) > gt ? Oc((bt(t) * (o = Lt(n)) * bt(e) - bt(n) * (i = Lt(t)) * bt(r)) / (i * o * s)) : (t + n) / 2;
|
|
15557
15563
|
}
|
|
15558
|
-
function
|
|
15564
|
+
function Yc(r, t, e, n) {
|
|
15559
15565
|
var i;
|
|
15560
15566
|
if (r == null)
|
|
15561
15567
|
i = e * Yn, n.point(-it, i), n.point(0, i), n.point(it, i), n.point(it, 0), n.point(it, -i), n.point(0, -i), n.point(-it, -i), n.point(-it, 0), n.point(-it, i);
|
|
@@ -15565,10 +15571,10 @@ function Hc(r, t, e, n) {
|
|
|
15565
15571
|
} else
|
|
15566
15572
|
n.point(t[0], t[1]);
|
|
15567
15573
|
}
|
|
15568
|
-
function
|
|
15574
|
+
function Hc(r, t) {
|
|
15569
15575
|
var e = Lt(r), n = e > 0, i = te(e) > gt;
|
|
15570
15576
|
function o(c, f, h, g) {
|
|
15571
|
-
|
|
15577
|
+
Mc(g, r, t, h, c, f);
|
|
15572
15578
|
}
|
|
15573
15579
|
function s(c, f) {
|
|
15574
15580
|
return Lt(c) * Lt(f) > e;
|
|
@@ -15600,21 +15606,21 @@ function Wc(r, t) {
|
|
|
15600
15606
|
};
|
|
15601
15607
|
}
|
|
15602
15608
|
function u(c, f, h) {
|
|
15603
|
-
var g =
|
|
15609
|
+
var g = Ti(c), p = Ti(f), m = [1, 0, 0], d = Yo(g, p), y = wo(d, d), I = d[0], C = y - I * I;
|
|
15604
15610
|
if (!C)
|
|
15605
15611
|
return !h && c;
|
|
15606
|
-
var S = e * y / C, x = -e * I / C, L = Yo(m, d), D =
|
|
15612
|
+
var S = e * y / C, x = -e * I / C, L = Yo(m, d), D = Lo(m, S), T = Lo(d, x);
|
|
15607
15613
|
vs(D, T);
|
|
15608
|
-
var A = L, q =
|
|
15614
|
+
var A = L, q = wo(D, A), j = wo(A, A), P = q * q - j * (wo(D, D) - 1);
|
|
15609
15615
|
if (!(P < 0)) {
|
|
15610
|
-
var X =
|
|
15616
|
+
var X = Io(P), R = Lo(A, (-q - X) / j);
|
|
15611
15617
|
if (vs(R, D), R = Os(R), !h)
|
|
15612
15618
|
return R;
|
|
15613
15619
|
var Y = c[0], at = f[0], St = c[1], Xt = f[1], fe;
|
|
15614
15620
|
at < Y && (fe = Y, Y = at, at = fe);
|
|
15615
15621
|
var Fr = at - Y, _n = te(Fr - it) < gt, An = _n || Fr < gt;
|
|
15616
15622
|
if (!_n && Xt < St && (fe = St, St = Xt, Xt = fe), An ? _n ? St + Xt > 0 ^ R[1] < (te(R[0] - Y) < gt ? St : Xt) : St <= R[1] && R[1] <= Xt : Fr > it ^ (Y <= R[0] && R[0] <= at)) {
|
|
15617
|
-
var he =
|
|
15623
|
+
var he = Lo(A, (-q + X) / j);
|
|
15618
15624
|
return vs(he, D), [R, Os(he)];
|
|
15619
15625
|
}
|
|
15620
15626
|
}
|
|
@@ -15658,30 +15664,30 @@ Ms.prototype = {
|
|
|
15658
15664
|
};
|
|
15659
15665
|
function ku(r, t, e) {
|
|
15660
15666
|
var n = t[1][0] - t[0][0], i = t[1][1] - t[0][1], o = r.clipExtent && r.clipExtent();
|
|
15661
|
-
r.scale(150).translate([0, 0]), o != null && r.clipExtent(null),
|
|
15667
|
+
r.scale(150).translate([0, 0]), o != null && r.clipExtent(null), Dc(e, r.stream(Ga));
|
|
15662
15668
|
var s = Ga.result(), a = Math.min(n / (s[1][0] - s[0][0]), i / (s[1][1] - s[0][1])), u = +t[0][0] + (n - a * (s[1][0] + s[0][0])) / 2, l = +t[0][1] + (i - a * (s[1][1] + s[0][1])) / 2;
|
|
15663
15669
|
return o != null && r.clipExtent(o), r.scale(a * 150).translate([u, l]);
|
|
15664
15670
|
}
|
|
15665
|
-
function
|
|
15671
|
+
function Wc(r, t, e) {
|
|
15666
15672
|
return ku(r, [[0, 0], t], e);
|
|
15667
15673
|
}
|
|
15668
|
-
var za = 16,
|
|
15674
|
+
var za = 16, jc = Lt(30 * $e);
|
|
15669
15675
|
function Va(r, t) {
|
|
15670
|
-
return +t ?
|
|
15676
|
+
return +t ? Qc(r, t) : Kc(r);
|
|
15671
15677
|
}
|
|
15672
|
-
function
|
|
15678
|
+
function Kc(r) {
|
|
15673
15679
|
return Gu({
|
|
15674
15680
|
point: function(t, e) {
|
|
15675
15681
|
t = r(t, e), this.stream.point(t[0], t[1]);
|
|
15676
15682
|
}
|
|
15677
15683
|
});
|
|
15678
15684
|
}
|
|
15679
|
-
function
|
|
15685
|
+
function Qc(r, t) {
|
|
15680
15686
|
function e(n, i, o, s, a, u, l, c, f, h, g, p, m, d) {
|
|
15681
15687
|
var y = l - n, I = c - i, C = y * y + I * I;
|
|
15682
15688
|
if (C > 4 * t && m--) {
|
|
15683
|
-
var S = s + h, x = a + g, L = u + p, D =
|
|
15684
|
-
(Y * Y / C > t || te((y * X + I * R) / C - 0.5) > 0.3 || s * h + a * g + u * p <
|
|
15689
|
+
var S = s + h, x = a + g, L = u + p, D = Io(S * S + x * x + L * L), T = Di(L /= D), A = te(te(L) - 1) < gt || te(o - f) < gt ? (o + f) / 2 : Oi(x, S), q = r(A, T), j = q[0], P = q[1], X = j - n, R = P - i, Y = I * X - y * R;
|
|
15690
|
+
(Y * Y / C > t || te((y * X + I * R) / C - 0.5) > 0.3 || s * h + a * g + u * p < jc) && (e(n, i, o, s, a, u, j, P, A, S /= D, x /= D, L, m, d), d.point(j, P), e(j, P, A, S, x, L, l, c, f, h, g, p, m, d));
|
|
15685
15691
|
}
|
|
15686
15692
|
}
|
|
15687
15693
|
return function(n) {
|
|
@@ -15703,7 +15709,7 @@ function Jc(r, t) {
|
|
|
15703
15709
|
f = NaN, d.point = C, n.lineStart();
|
|
15704
15710
|
}
|
|
15705
15711
|
function C(T, A) {
|
|
15706
|
-
var q =
|
|
15712
|
+
var q = Ti([T, A]), j = r(T, A);
|
|
15707
15713
|
e(f, h, c, g, p, m, f = j[0], h = j[1], c = T, g = q[0], p = q[1], m = q[2], za, n), n.point(f, h);
|
|
15708
15714
|
}
|
|
15709
15715
|
function S() {
|
|
@@ -15721,17 +15727,17 @@ function Jc(r, t) {
|
|
|
15721
15727
|
return d;
|
|
15722
15728
|
};
|
|
15723
15729
|
}
|
|
15724
|
-
var
|
|
15730
|
+
var Jc = Gu({
|
|
15725
15731
|
point: function(r, t) {
|
|
15726
15732
|
this.stream.point(r * $e, t * $e);
|
|
15727
15733
|
}
|
|
15728
15734
|
});
|
|
15729
|
-
function
|
|
15730
|
-
return
|
|
15735
|
+
function Zc(r) {
|
|
15736
|
+
return $c(function() {
|
|
15731
15737
|
return r;
|
|
15732
15738
|
})();
|
|
15733
15739
|
}
|
|
15734
|
-
function
|
|
15740
|
+
function $c(r) {
|
|
15735
15741
|
var t, e = 150, n = 480, i = 250, o, s, a = 0, u = 0, l = 0, c = 0, f = 0, h, g, p = null, m = ka, d = null, y, I, C, S = Ba, x = 0.5, L = Va(j, x), D, T;
|
|
15736
15742
|
function A(R) {
|
|
15737
15743
|
return R = g(R[0] * $e, R[1] * $e), [R[0] * e + o, s - R[1] * e];
|
|
@@ -15743,11 +15749,11 @@ function tf(r) {
|
|
|
15743
15749
|
return R = t(R, Y), [R[0] * e + o, s - R[1] * e];
|
|
15744
15750
|
}
|
|
15745
15751
|
A.stream = function(R) {
|
|
15746
|
-
return D && T === R ? D : D =
|
|
15752
|
+
return D && T === R ? D : D = Jc(m(h, L(S(T = R))));
|
|
15747
15753
|
}, A.clipAngle = function(R) {
|
|
15748
|
-
return arguments.length ? (m = +R ?
|
|
15754
|
+
return arguments.length ? (m = +R ? Hc(p = R * $e, 6 * $e) : (p = null, ka), X()) : p * yr;
|
|
15749
15755
|
}, A.clipExtent = function(R) {
|
|
15750
|
-
return arguments.length ? (S = R == null ? (d = y = I = C = null, Ba) :
|
|
15756
|
+
return arguments.length ? (S = R == null ? (d = y = I = C = null, Ba) : Gc(d = +R[0][0], y = +R[0][1], I = +R[1][0], C = +R[1][1]), X()) : d == null ? null : [[d, y], [I, C]];
|
|
15751
15757
|
}, A.scale = function(R) {
|
|
15752
15758
|
return arguments.length ? (e = +R, P()) : e;
|
|
15753
15759
|
}, A.translate = function(R) {
|
|
@@ -15757,14 +15763,14 @@ function tf(r) {
|
|
|
15757
15763
|
}, A.rotate = function(R) {
|
|
15758
15764
|
return arguments.length ? (l = R[0] % 360 * $e, c = R[1] % 360 * $e, f = R.length > 2 ? R[2] % 360 * $e : 0, P()) : [l * yr, c * yr, f * yr];
|
|
15759
15765
|
}, A.precision = function(R) {
|
|
15760
|
-
return arguments.length ? (L = Va(j, x = R * R), X()) :
|
|
15766
|
+
return arguments.length ? (L = Va(j, x = R * R), X()) : Io(x);
|
|
15761
15767
|
}, A.fitExtent = function(R, Y) {
|
|
15762
15768
|
return ku(A, R, Y);
|
|
15763
15769
|
}, A.fitSize = function(R, Y) {
|
|
15764
|
-
return
|
|
15770
|
+
return Wc(A, R, Y);
|
|
15765
15771
|
};
|
|
15766
15772
|
function P() {
|
|
15767
|
-
g = Du(h =
|
|
15773
|
+
g = Du(h = Tc(l, c, f), t);
|
|
15768
15774
|
var R = t(a, u);
|
|
15769
15775
|
return o = n - R[0] * e, s = i + R[1] * e, X();
|
|
15770
15776
|
}
|
|
@@ -15775,7 +15781,7 @@ function tf(r) {
|
|
|
15775
15781
|
return t = r.apply(this, arguments), A.invert = t.invert && q, P();
|
|
15776
15782
|
};
|
|
15777
15783
|
}
|
|
15778
|
-
function
|
|
15784
|
+
function tf(r) {
|
|
15779
15785
|
return function(t, e) {
|
|
15780
15786
|
var n = Lt(t), i = Lt(e), o = r(n * i);
|
|
15781
15787
|
return [
|
|
@@ -15784,29 +15790,23 @@ function zu(r) {
|
|
|
15784
15790
|
];
|
|
15785
15791
|
};
|
|
15786
15792
|
}
|
|
15787
|
-
function
|
|
15793
|
+
function ef(r) {
|
|
15788
15794
|
return function(t, e) {
|
|
15789
|
-
var n =
|
|
15795
|
+
var n = Io(t * t + e * e), i = r(n), o = bt(i), s = Lt(i);
|
|
15790
15796
|
return [
|
|
15791
15797
|
Oi(t * o, n * s),
|
|
15792
|
-
|
|
15798
|
+
Di(n && e * o / n)
|
|
15793
15799
|
];
|
|
15794
15800
|
};
|
|
15795
15801
|
}
|
|
15796
|
-
var
|
|
15797
|
-
return Vi(2 / (1 + r));
|
|
15798
|
-
});
|
|
15799
|
-
ef.invert = Vu(function(r) {
|
|
15800
|
-
return 2 * ei(r / 2);
|
|
15801
|
-
});
|
|
15802
|
-
var Uu = zu(function(r) {
|
|
15802
|
+
var zu = tf(function(r) {
|
|
15803
15803
|
return (r = Ou(r)) && r / bt(r);
|
|
15804
15804
|
});
|
|
15805
|
-
|
|
15805
|
+
zu.invert = ef(function(r) {
|
|
15806
15806
|
return r;
|
|
15807
15807
|
});
|
|
15808
15808
|
function nf() {
|
|
15809
|
-
return
|
|
15809
|
+
return Zc(zu).scale(79.4188).clipAngle(180 - 1e-3);
|
|
15810
15810
|
}
|
|
15811
15811
|
function Ua(r, t) {
|
|
15812
15812
|
return [r, t];
|
|
@@ -15853,31 +15853,31 @@ function Mo(r, t, e, n) {
|
|
|
15853
15853
|
}
|
|
15854
15854
|
var a = of(o), u = {
|
|
15855
15855
|
type: o.type,
|
|
15856
|
-
coordinates:
|
|
15857
|
-
}, l = new qs(), c = l.read(u), f = cc(
|
|
15858
|
-
if (h = g.write(h), !
|
|
15856
|
+
coordinates: Uu(o.coordinates, a)
|
|
15857
|
+
}, l = new qs(), c = l.read(u), f = lc(cc(t, e), "meters"), h = Gt.bufferOp(c, f, n), g = new gu();
|
|
15858
|
+
if (h = g.write(h), !Vu(h.coordinates)) {
|
|
15859
15859
|
var p = {
|
|
15860
15860
|
type: h.type,
|
|
15861
|
-
coordinates:
|
|
15861
|
+
coordinates: qu(h.coordinates, a)
|
|
15862
15862
|
};
|
|
15863
15863
|
return jo(p, i);
|
|
15864
15864
|
}
|
|
15865
15865
|
}
|
|
15866
|
-
function
|
|
15867
|
-
return Array.isArray(r[0]) ?
|
|
15866
|
+
function Vu(r) {
|
|
15867
|
+
return Array.isArray(r[0]) ? Vu(r[0]) : isNaN(r[0]);
|
|
15868
15868
|
}
|
|
15869
|
-
function
|
|
15869
|
+
function Uu(r, t) {
|
|
15870
15870
|
return typeof r[0] != "object" ? t(r) : r.map(function(e) {
|
|
15871
|
-
return
|
|
15871
|
+
return Uu(e, t);
|
|
15872
15872
|
});
|
|
15873
15873
|
}
|
|
15874
|
-
function
|
|
15874
|
+
function qu(r, t) {
|
|
15875
15875
|
return typeof r[0] != "object" ? t.invert(r) : r.map(function(e) {
|
|
15876
|
-
return
|
|
15876
|
+
return qu(e, t);
|
|
15877
15877
|
});
|
|
15878
15878
|
}
|
|
15879
15879
|
function of(r) {
|
|
15880
|
-
var t =
|
|
15880
|
+
var t = gc(r).geometry.coordinates, e = [-t[0], -t[1]];
|
|
15881
15881
|
return nf().rotate(e).scale(_e);
|
|
15882
15882
|
}
|
|
15883
15883
|
function qa(r) {
|
|
@@ -15886,7 +15886,7 @@ function qa(r) {
|
|
|
15886
15886
|
t && e[0] - t[0] >= 180 ? e[0] -= 360 : t && e[0] - t[0] < -180 && (e[0] += 360), t = e;
|
|
15887
15887
|
}
|
|
15888
15888
|
function Xa(r, t) {
|
|
15889
|
-
const e =
|
|
15889
|
+
const e = hc(
|
|
15890
15890
|
{
|
|
15891
15891
|
type: "Polygon",
|
|
15892
15892
|
coordinates: [
|
|
@@ -15999,7 +15999,7 @@ function sf(r, t = !0, e = !0, n = {}, i = {}, o = (s) => {
|
|
|
15999
15999
|
if (x.length > 0) {
|
|
16000
16000
|
let L = x.pop();
|
|
16001
16001
|
for (const D of x)
|
|
16002
|
-
L =
|
|
16002
|
+
L = fc(L, D);
|
|
16003
16003
|
Xa({ ...y, geometry: L }, I), C = !0;
|
|
16004
16004
|
} else {
|
|
16005
16005
|
const L = y.geometry.geometries.filter(
|
|
@@ -16057,7 +16057,7 @@ class af extends er.Control {
|
|
|
16057
16057
|
super();
|
|
16058
16058
|
hs(this, En, void 0);
|
|
16059
16059
|
hs(this, Vr, void 0);
|
|
16060
|
-
|
|
16060
|
+
xo(this, Vr, e);
|
|
16061
16061
|
}
|
|
16062
16062
|
onAdd(e) {
|
|
16063
16063
|
const n = document.createElement("div");
|
|
@@ -16076,7 +16076,7 @@ class af extends er.Control {
|
|
|
16076
16076
|
l,
|
|
16077
16077
|
a
|
|
16078
16078
|
);
|
|
16079
|
-
|
|
16079
|
+
xo(this, En, new kl({
|
|
16080
16080
|
target: n,
|
|
16081
16081
|
props: {
|
|
16082
16082
|
mapController: c,
|
|
@@ -16102,7 +16102,7 @@ class af extends er.Control {
|
|
|
16102
16102
|
}
|
|
16103
16103
|
setOptions(e) {
|
|
16104
16104
|
var u;
|
|
16105
|
-
|
|
16105
|
+
xo(this, Vr, e);
|
|
16106
16106
|
const {
|
|
16107
16107
|
marker: n,
|
|
16108
16108
|
showResultMarkers: i,
|