@maptiler/geocoding-control 0.0.82 → 0.0.83
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/GeocodingControl.svelte +5 -0
- package/README.md +6 -7
- package/leaflet.js +13 -13
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +1 -1
- package/leaflet.umd.js.map +1 -1
- package/maplibregl-controller.d.ts +4 -2
- package/maplibregl-controller.js.map +1 -1
- package/maplibregl-controller.umd.js.map +1 -1
- package/maplibregl.d.ts +9 -5
- package/maplibregl.js +805 -795
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +5 -5
- package/maplibregl.umd.js.map +1 -1
- package/package.json +6 -2
- package/react.js +217 -217
- package/react.js.map +1 -1
- package/react.umd.js +1 -1
- package/react.umd.js.map +1 -1
- package/style.css +1 -1
package/maplibregl.js
CHANGED
|
@@ -2,14 +2,16 @@ var Zs = (r, t, e) => {
|
|
|
2
2
|
if (!t.has(r))
|
|
3
3
|
throw TypeError("Cannot " + e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
5
|
+
var _n = (r, t, e) => (Zs(r, t, "read from private field"), e ? e.call(r) : t.get(r)), ls = (r, t, e) => {
|
|
6
6
|
if (t.has(r))
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
8
|
t instanceof WeakSet ? t.add(r) : t.set(r, e);
|
|
9
9
|
}, Co = (r, t, e, n) => (Zs(r, t, "write to private field"), n ? n.call(r, e) : t.set(r, e), e);
|
|
10
|
+
import * as ol from "maplibre-gl";
|
|
11
|
+
import * as sl from "@maptiler/sdk";
|
|
10
12
|
function Zt() {
|
|
11
13
|
}
|
|
12
|
-
function
|
|
14
|
+
function al(r, t) {
|
|
13
15
|
for (const e in t)
|
|
14
16
|
r[e] = t[e];
|
|
15
17
|
return r;
|
|
@@ -20,7 +22,7 @@ function Ha(r) {
|
|
|
20
22
|
function $s() {
|
|
21
23
|
return /* @__PURE__ */ Object.create(null);
|
|
22
24
|
}
|
|
23
|
-
function
|
|
25
|
+
function Tr(r) {
|
|
24
26
|
r.forEach(Ha);
|
|
25
27
|
}
|
|
26
28
|
function Wa(r) {
|
|
@@ -29,19 +31,19 @@ function Wa(r) {
|
|
|
29
31
|
function Di(r, t) {
|
|
30
32
|
return r != r ? t == t : r !== t || r && typeof r == "object" || typeof r == "function";
|
|
31
33
|
}
|
|
32
|
-
function
|
|
34
|
+
function ul(r) {
|
|
33
35
|
return Object.keys(r).length === 0;
|
|
34
36
|
}
|
|
35
|
-
function
|
|
37
|
+
function ll(r, t, e, n) {
|
|
36
38
|
if (r) {
|
|
37
39
|
const i = ja(r, t, e, n);
|
|
38
40
|
return r[0](i);
|
|
39
41
|
}
|
|
40
42
|
}
|
|
41
43
|
function ja(r, t, e, n) {
|
|
42
|
-
return r[1] && n ?
|
|
44
|
+
return r[1] && n ? al(e.ctx.slice(), r[1](n(t))) : e.ctx;
|
|
43
45
|
}
|
|
44
|
-
function
|
|
46
|
+
function cl(r, t, e, n) {
|
|
45
47
|
if (r[2] && n) {
|
|
46
48
|
const i = r[2](n(e));
|
|
47
49
|
if (t.dirty === void 0)
|
|
@@ -56,13 +58,13 @@ function ul(r, t, e, n) {
|
|
|
56
58
|
}
|
|
57
59
|
return t.dirty;
|
|
58
60
|
}
|
|
59
|
-
function
|
|
61
|
+
function fl(r, t, e, n, i, o) {
|
|
60
62
|
if (i) {
|
|
61
63
|
const s = ja(t, e, n, o);
|
|
62
64
|
r.p(s, i);
|
|
63
65
|
}
|
|
64
66
|
}
|
|
65
|
-
function
|
|
67
|
+
function hl(r) {
|
|
66
68
|
if (r.ctx.length > 32) {
|
|
67
69
|
const t = [], e = r.ctx.length / 32;
|
|
68
70
|
for (let n = 0; n < e; n++)
|
|
@@ -83,14 +85,14 @@ function We(r, t, e) {
|
|
|
83
85
|
function Te(r) {
|
|
84
86
|
r.parentNode && r.parentNode.removeChild(r);
|
|
85
87
|
}
|
|
86
|
-
function
|
|
88
|
+
function gl(r, t) {
|
|
87
89
|
for (let e = 0; e < r.length; e += 1)
|
|
88
90
|
r[e] && r[e].d(t);
|
|
89
91
|
}
|
|
90
92
|
function oe(r) {
|
|
91
93
|
return document.createElement(r);
|
|
92
94
|
}
|
|
93
|
-
function
|
|
95
|
+
function Cr(r) {
|
|
94
96
|
return document.createElementNS("http://www.w3.org/2000/svg", r);
|
|
95
97
|
}
|
|
96
98
|
function Vr(r) {
|
|
@@ -102,7 +104,7 @@ function tr() {
|
|
|
102
104
|
function Be(r, t, e, n) {
|
|
103
105
|
return r.addEventListener(t, e, n), () => r.removeEventListener(t, e, n);
|
|
104
106
|
}
|
|
105
|
-
function
|
|
107
|
+
function pl(r) {
|
|
106
108
|
return function(t) {
|
|
107
109
|
return t.preventDefault(), r.call(this, t);
|
|
108
110
|
};
|
|
@@ -110,7 +112,7 @@ function hl(r) {
|
|
|
110
112
|
function B(r, t, e) {
|
|
111
113
|
e == null ? r.removeAttribute(t) : r.getAttribute(t) !== e && r.setAttribute(t, e);
|
|
112
114
|
}
|
|
113
|
-
function
|
|
115
|
+
function dl(r) {
|
|
114
116
|
return Array.from(r.childNodes);
|
|
115
117
|
}
|
|
116
118
|
function Hi(r, t) {
|
|
@@ -122,7 +124,7 @@ function ea(r, t) {
|
|
|
122
124
|
function en(r, t, e) {
|
|
123
125
|
r.classList[e ? "add" : "remove"](t);
|
|
124
126
|
}
|
|
125
|
-
function
|
|
127
|
+
function vl(r, t, { bubbles: e = !1, cancelable: n = !1 } = {}) {
|
|
126
128
|
const i = document.createEvent("CustomEvent");
|
|
127
129
|
return i.initCustomEvent(r, e, n, t), i;
|
|
128
130
|
}
|
|
@@ -135,15 +137,15 @@ function Ka() {
|
|
|
135
137
|
throw new Error("Function called outside component initialization");
|
|
136
138
|
return Wi;
|
|
137
139
|
}
|
|
138
|
-
function
|
|
140
|
+
function yl(r) {
|
|
139
141
|
Ka().$$.on_destroy.push(r);
|
|
140
142
|
}
|
|
141
|
-
function
|
|
143
|
+
function ml() {
|
|
142
144
|
const r = Ka();
|
|
143
145
|
return (t, e, { cancelable: n = !1 } = {}) => {
|
|
144
146
|
const i = r.$$.callbacks[t];
|
|
145
147
|
if (i) {
|
|
146
|
-
const o =
|
|
148
|
+
const o = vl(t, e, { cancelable: n });
|
|
147
149
|
return i.slice().forEach((s) => {
|
|
148
150
|
s.call(r, o);
|
|
149
151
|
}), !o.defaultPrevented;
|
|
@@ -153,10 +155,10 @@ function vl() {
|
|
|
153
155
|
}
|
|
154
156
|
const ai = [], ds = [];
|
|
155
157
|
let li = [];
|
|
156
|
-
const na = [],
|
|
158
|
+
const na = [], _l = /* @__PURE__ */ Promise.resolve();
|
|
157
159
|
let vs = !1;
|
|
158
|
-
function
|
|
159
|
-
vs || (vs = !0,
|
|
160
|
+
function El() {
|
|
161
|
+
vs || (vs = !0, _l.then(Qa));
|
|
160
162
|
}
|
|
161
163
|
function ys(r) {
|
|
162
164
|
li.push(r);
|
|
@@ -171,7 +173,7 @@ function Qa() {
|
|
|
171
173
|
try {
|
|
172
174
|
for (; si < ai.length; ) {
|
|
173
175
|
const t = ai[si];
|
|
174
|
-
si++, Xi(t),
|
|
176
|
+
si++, Xi(t), Il(t.$$);
|
|
175
177
|
}
|
|
176
178
|
} catch (t) {
|
|
177
179
|
throw ai.length = 0, si = 0, t;
|
|
@@ -188,29 +190,29 @@ function Qa() {
|
|
|
188
190
|
na.pop()();
|
|
189
191
|
vs = !1, cs.clear(), Xi(r);
|
|
190
192
|
}
|
|
191
|
-
function
|
|
193
|
+
function Il(r) {
|
|
192
194
|
if (r.fragment !== null) {
|
|
193
|
-
r.update(),
|
|
195
|
+
r.update(), Tr(r.before_update);
|
|
194
196
|
const t = r.dirty;
|
|
195
197
|
r.dirty = [-1], r.fragment && r.fragment.p(r.ctx, t), r.after_update.forEach(ys);
|
|
196
198
|
}
|
|
197
199
|
}
|
|
198
|
-
function
|
|
200
|
+
function Cl(r) {
|
|
199
201
|
const t = [], e = [];
|
|
200
202
|
li.forEach((n) => r.indexOf(n) === -1 ? t.push(n) : e.push(n)), e.forEach((n) => n()), li = t;
|
|
201
203
|
}
|
|
202
204
|
const bo = /* @__PURE__ */ new Set();
|
|
203
|
-
let
|
|
205
|
+
let zr;
|
|
204
206
|
function ra() {
|
|
205
|
-
|
|
207
|
+
zr = {
|
|
206
208
|
r: 0,
|
|
207
209
|
c: [],
|
|
208
|
-
p:
|
|
210
|
+
p: zr
|
|
209
211
|
// parent group
|
|
210
212
|
};
|
|
211
213
|
}
|
|
212
214
|
function ia() {
|
|
213
|
-
|
|
215
|
+
zr.r || Tr(zr.c), zr = zr.p;
|
|
214
216
|
}
|
|
215
217
|
function Je(r, t) {
|
|
216
218
|
r && r.i && (bo.delete(r), r.i(t));
|
|
@@ -219,7 +221,7 @@ function $n(r, t, e, n) {
|
|
|
219
221
|
if (r && r.o) {
|
|
220
222
|
if (bo.has(r))
|
|
221
223
|
return;
|
|
222
|
-
bo.add(r),
|
|
224
|
+
bo.add(r), zr.c.push(() => {
|
|
223
225
|
bo.delete(r), n && (e && r.d(1), n());
|
|
224
226
|
}), r.o(t);
|
|
225
227
|
} else
|
|
@@ -232,15 +234,15 @@ function ji(r, t, e, n) {
|
|
|
232
234
|
const { fragment: i, after_update: o } = r.$$;
|
|
233
235
|
i && i.m(t, e), n || ys(() => {
|
|
234
236
|
const s = r.$$.on_mount.map(Ha).filter(Wa);
|
|
235
|
-
r.$$.on_destroy ? r.$$.on_destroy.push(...s) :
|
|
237
|
+
r.$$.on_destroy ? r.$$.on_destroy.push(...s) : Tr(s), r.$$.on_mount = [];
|
|
236
238
|
}), o.forEach(ys);
|
|
237
239
|
}
|
|
238
240
|
function Ki(r, t) {
|
|
239
241
|
const e = r.$$;
|
|
240
|
-
e.fragment !== null && (
|
|
242
|
+
e.fragment !== null && (Cl(e.after_update), Tr(e.on_destroy), e.fragment && e.fragment.d(t), e.on_destroy = e.fragment = null, e.ctx = []);
|
|
241
243
|
}
|
|
242
|
-
function
|
|
243
|
-
r.$$.dirty[0] === -1 && (ai.push(r),
|
|
244
|
+
function xl(r, t) {
|
|
245
|
+
r.$$.dirty[0] === -1 && (ai.push(r), El(), r.$$.dirty.fill(0)), r.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
244
246
|
}
|
|
245
247
|
function Ti(r, t, e, n, i, o, s, a = [-1]) {
|
|
246
248
|
const u = Wi;
|
|
@@ -270,10 +272,10 @@ function Ti(r, t, e, n, i, o, s, a = [-1]) {
|
|
|
270
272
|
let c = !1;
|
|
271
273
|
if (l.ctx = e ? e(r, t.props || {}, (f, h, ...g) => {
|
|
272
274
|
const p = g.length ? g[0] : h;
|
|
273
|
-
return l.ctx && i(l.ctx[f], l.ctx[f] = p) && (!l.skip_bound && l.bound[f] && l.bound[f](p), c &&
|
|
274
|
-
}) : [], l.update(), c = !0,
|
|
275
|
+
return l.ctx && i(l.ctx[f], l.ctx[f] = p) && (!l.skip_bound && l.bound[f] && l.bound[f](p), c && xl(r, f)), h;
|
|
276
|
+
}) : [], l.update(), c = !0, Tr(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
275
277
|
if (t.hydrate) {
|
|
276
|
-
const f =
|
|
278
|
+
const f = dl(t.target);
|
|
277
279
|
l.fragment && l.fragment.l(f), f.forEach(Te);
|
|
278
280
|
} else
|
|
279
281
|
l.fragment && l.fragment.c();
|
|
@@ -295,14 +297,14 @@ class Mi {
|
|
|
295
297
|
};
|
|
296
298
|
}
|
|
297
299
|
$set(t) {
|
|
298
|
-
this.$$set && !
|
|
300
|
+
this.$$set && !ul(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
299
301
|
}
|
|
300
302
|
}
|
|
301
|
-
function
|
|
303
|
+
function Nl(r) {
|
|
302
304
|
let t, e;
|
|
303
305
|
return {
|
|
304
306
|
c() {
|
|
305
|
-
t =
|
|
307
|
+
t = Cr("svg"), e = Cr("path"), B(e, "d", "M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"), B(t, "viewBox", "0 0 60.006 21.412"), B(t, "width", "14"), B(t, "height", "20"), B(t, "class", "svelte-en2qvf");
|
|
306
308
|
},
|
|
307
309
|
m(n, i) {
|
|
308
310
|
We(n, t, i), ct(t, e);
|
|
@@ -315,16 +317,16 @@ function Cl(r) {
|
|
|
315
317
|
}
|
|
316
318
|
};
|
|
317
319
|
}
|
|
318
|
-
class
|
|
320
|
+
class Sl extends Mi {
|
|
319
321
|
constructor(t) {
|
|
320
|
-
super(), Ti(this, t, null,
|
|
322
|
+
super(), Ti(this, t, null, Nl, Di, {});
|
|
321
323
|
}
|
|
322
324
|
}
|
|
323
|
-
function
|
|
325
|
+
function wl(r) {
|
|
324
326
|
let t, e;
|
|
325
327
|
return {
|
|
326
328
|
c() {
|
|
327
|
-
t =
|
|
329
|
+
t = Cr("svg"), e = Cr("path"), B(e, "d", "M3.8 2.5c-.6 0-1.3.7-1.3 1.3 0 .3.2.7.5.8L7.2 9 3 13.2c-.3.3-.5.7-.5 1 0 .6.7 1.3 1.3 1.3.3 0 .7-.2 1-.5L9 10.8l4.2 4.2c.2.3.7.3 1 .3.6 0 1.3-.7 1.3-1.3 0-.3-.2-.7-.3-1l-4.4-4L15 4.6c.3-.2.5-.5.5-.8 0-.7-.7-1.3-1.3-1.3-.3 0-.7.2-1 .3L9 7.1 4.8 2.8c-.3-.1-.7-.3-1-.3z"), B(t, "viewBox", "0 0 18 18"), B(t, "width", "16"), B(t, "height", "16"), B(t, "class", "svelte-en2qvf");
|
|
328
330
|
},
|
|
329
331
|
m(n, i) {
|
|
330
332
|
We(n, t, i), ct(t, e);
|
|
@@ -337,12 +339,12 @@ function Nl(r) {
|
|
|
337
339
|
}
|
|
338
340
|
};
|
|
339
341
|
}
|
|
340
|
-
class
|
|
342
|
+
class Ll extends Mi {
|
|
341
343
|
constructor(t) {
|
|
342
|
-
super(), Ti(this, t, null,
|
|
344
|
+
super(), Ti(this, t, null, wl, Di, {});
|
|
343
345
|
}
|
|
344
346
|
}
|
|
345
|
-
function
|
|
347
|
+
function bl(r) {
|
|
346
348
|
let t;
|
|
347
349
|
return {
|
|
348
350
|
c() {
|
|
@@ -359,16 +361,16 @@ function wl(r) {
|
|
|
359
361
|
}
|
|
360
362
|
};
|
|
361
363
|
}
|
|
362
|
-
class
|
|
364
|
+
class Pl extends Mi {
|
|
363
365
|
constructor(t) {
|
|
364
|
-
super(), Ti(this, t, null,
|
|
366
|
+
super(), Ti(this, t, null, bl, Di, {});
|
|
365
367
|
}
|
|
366
368
|
}
|
|
367
|
-
function
|
|
369
|
+
function Rl(r) {
|
|
368
370
|
let t, e, n;
|
|
369
371
|
return {
|
|
370
372
|
c() {
|
|
371
|
-
t =
|
|
373
|
+
t = Cr("svg"), e = Cr("path"), B(e, "stroke-width", "4"), B(e, "fill-rule", "evenodd"), B(e, "clip-rule", "evenodd"), B(e, "d", "M 5,33.103579 C 5,17.607779 18.457,5 35,5 C 51.543,5 65,17.607779 65,33.103579 C 65,56.388679 40.4668,76.048179 36.6112,79.137779 C 36.3714,79.329879 36.2116,79.457979 36.1427,79.518879 C 35.8203,79.800879 35.4102,79.942779 35,79.942779 C 34.5899,79.942779 34.1797,79.800879 33.8575,79.518879 C 33.7886,79.457979 33.6289,79.330079 33.3893,79.138079 C 29.5346,76.049279 5,56.389379 5,33.103579 Z M 35.0001,49.386379 C 43.1917,49.386379 49.8323,42.646079 49.8323,34.331379 C 49.8323,26.016779 43.1917,19.276479 35.0001,19.276479 C 26.8085,19.276479 20.1679,26.016779 20.1679,34.331379 C 20.1679,42.646079 26.8085,49.386379 35.0001,49.386379 Z"), B(e, "class", "svelte-1k1cmht"), B(t, "width", n = /*displayIn*/
|
|
372
374
|
r[0] !== "list" ? void 0 : "20"), B(t, "viewBox", "0 0 70 85"), B(t, "fill", "none"), B(t, "class", "svelte-1k1cmht"), en(
|
|
373
375
|
t,
|
|
374
376
|
"in-map",
|
|
@@ -408,22 +410,22 @@ function bl(r) {
|
|
|
408
410
|
}
|
|
409
411
|
};
|
|
410
412
|
}
|
|
411
|
-
function
|
|
413
|
+
function Ol(r, t, e) {
|
|
412
414
|
let { displayIn: n } = t;
|
|
413
415
|
return r.$$set = (i) => {
|
|
414
416
|
"displayIn" in i && e(0, n = i.displayIn);
|
|
415
417
|
}, [n];
|
|
416
418
|
}
|
|
417
|
-
class
|
|
419
|
+
class Dl extends Mi {
|
|
418
420
|
constructor(t) {
|
|
419
|
-
super(), Ti(this, t,
|
|
421
|
+
super(), Ti(this, t, Ol, Rl, Di, { displayIn: 0 });
|
|
420
422
|
}
|
|
421
423
|
}
|
|
422
|
-
function
|
|
424
|
+
function Tl(r) {
|
|
423
425
|
let t, e;
|
|
424
426
|
return {
|
|
425
427
|
c() {
|
|
426
|
-
t =
|
|
428
|
+
t = Cr("svg"), e = Cr("path"), B(e, "d", "M7.4 2.5c-2.7 0-4.9 2.2-4.9 4.9s2.2 4.9 4.9 4.9c1 0 1.8-.2 2.5-.8l3.7 3.7c.2.2.4.3.8.3.7 0 1.1-.4 1.1-1.1 0-.3-.1-.5-.3-.8L11.4 10c.4-.8.8-1.6.8-2.5.1-2.8-2.1-5-4.8-5zm0 1.6c1.8 0 3.2 1.4 3.2 3.2s-1.4 3.2-3.2 3.2-3.3-1.3-3.3-3.1 1.4-3.3 3.3-3.3z"), B(t, "viewBox", "0 0 18 18"), B(t, "xml:space", "preserve"), B(t, "width", "20"), B(t, "class", "svelte-en2qvf");
|
|
427
429
|
},
|
|
428
430
|
m(n, i) {
|
|
429
431
|
We(n, t, i), ct(t, e);
|
|
@@ -436,9 +438,9 @@ function Ol(r) {
|
|
|
436
438
|
}
|
|
437
439
|
};
|
|
438
440
|
}
|
|
439
|
-
class
|
|
441
|
+
class Ml extends Mi {
|
|
440
442
|
constructor(t) {
|
|
441
|
-
super(), Ti(this, t, null,
|
|
443
|
+
super(), Ti(this, t, null, Tl, Di, {});
|
|
442
444
|
}
|
|
443
445
|
}
|
|
444
446
|
function oa(r, t, e) {
|
|
@@ -447,7 +449,7 @@ function oa(r, t, e) {
|
|
|
447
449
|
}
|
|
448
450
|
function sa(r) {
|
|
449
451
|
let t, e;
|
|
450
|
-
return t = new
|
|
452
|
+
return t = new Pl({}), {
|
|
451
453
|
c() {
|
|
452
454
|
Oo(t.$$.fragment);
|
|
453
455
|
},
|
|
@@ -467,14 +469,14 @@ function sa(r) {
|
|
|
467
469
|
}
|
|
468
470
|
function aa(r) {
|
|
469
471
|
let t, e, n, i, o;
|
|
470
|
-
return e = new
|
|
472
|
+
return e = new Sl({}), {
|
|
471
473
|
c() {
|
|
472
474
|
t = oe("button"), Oo(e.$$.fragment), B(t, "type", "button"), B(
|
|
473
475
|
t,
|
|
474
476
|
"title",
|
|
475
477
|
/*reverseButtonTitle*/
|
|
476
478
|
r[9]
|
|
477
|
-
), B(t, "class", "svelte-
|
|
479
|
+
), B(t, "class", "svelte-gpexd2"), en(
|
|
478
480
|
t,
|
|
479
481
|
"active",
|
|
480
482
|
/*reverseActive*/
|
|
@@ -515,7 +517,7 @@ function aa(r) {
|
|
|
515
517
|
}
|
|
516
518
|
};
|
|
517
519
|
}
|
|
518
|
-
function
|
|
520
|
+
function Al(r) {
|
|
519
521
|
let t, e, n, i = (
|
|
520
522
|
/*listFeatures*/
|
|
521
523
|
r[12]
|
|
@@ -527,7 +529,7 @@ function Tl(r) {
|
|
|
527
529
|
t = oe("ul");
|
|
528
530
|
for (let s = 0; s < o.length; s += 1)
|
|
529
531
|
o[s].c();
|
|
530
|
-
B(t, "class", "svelte-
|
|
532
|
+
B(t, "class", "svelte-gpexd2");
|
|
531
533
|
},
|
|
532
534
|
m(s, a) {
|
|
533
535
|
We(s, t, a);
|
|
@@ -564,18 +566,18 @@ function Tl(r) {
|
|
|
564
566
|
}
|
|
565
567
|
},
|
|
566
568
|
d(s) {
|
|
567
|
-
s && Te(t),
|
|
569
|
+
s && Te(t), gl(o, s), e = !1, Tr(n);
|
|
568
570
|
}
|
|
569
571
|
};
|
|
570
572
|
}
|
|
571
|
-
function
|
|
573
|
+
function Fl(r) {
|
|
572
574
|
let t, e;
|
|
573
575
|
return {
|
|
574
576
|
c() {
|
|
575
577
|
t = oe("div"), e = Vr(
|
|
576
578
|
/*noResultsMessage*/
|
|
577
579
|
r[7]
|
|
578
|
-
), B(t, "class", "no-results svelte-
|
|
580
|
+
), B(t, "class", "no-results svelte-gpexd2");
|
|
579
581
|
},
|
|
580
582
|
m(n, i) {
|
|
581
583
|
We(n, t, i), ct(t, e);
|
|
@@ -593,7 +595,7 @@ function Ml(r) {
|
|
|
593
595
|
}
|
|
594
596
|
};
|
|
595
597
|
}
|
|
596
|
-
function
|
|
598
|
+
function Bl(r) {
|
|
597
599
|
let t = "", e;
|
|
598
600
|
return {
|
|
599
601
|
c() {
|
|
@@ -608,14 +610,14 @@ function Al(r) {
|
|
|
608
610
|
}
|
|
609
611
|
};
|
|
610
612
|
}
|
|
611
|
-
function
|
|
613
|
+
function kl(r) {
|
|
612
614
|
let t, e;
|
|
613
615
|
return {
|
|
614
616
|
c() {
|
|
615
617
|
t = oe("div"), e = Vr(
|
|
616
618
|
/*errorMessage*/
|
|
617
619
|
r[6]
|
|
618
|
-
), B(t, "class", "error svelte-
|
|
620
|
+
), B(t, "class", "error svelte-gpexd2");
|
|
619
621
|
},
|
|
620
622
|
m(n, i) {
|
|
621
623
|
We(n, t, i), ct(t, e);
|
|
@@ -642,7 +644,7 @@ function ua(r) {
|
|
|
642
644
|
), n;
|
|
643
645
|
return {
|
|
644
646
|
c() {
|
|
645
|
-
t = oe("span"), n = Vr(e), B(t, "class", "line2 svelte-
|
|
647
|
+
t = oe("span"), n = Vr(e), B(t, "class", "line2 svelte-gpexd2");
|
|
646
648
|
},
|
|
647
649
|
m(s, a) {
|
|
648
650
|
We(s, t, a), ct(t, n);
|
|
@@ -690,9 +692,9 @@ function la(r) {
|
|
|
690
692
|
}
|
|
691
693
|
return {
|
|
692
694
|
c() {
|
|
693
|
-
t = oe("li"), e = oe("span"), n = oe("span"), i = oe("span"), s = Vr(o), a = tr(), u = oe("span"), c = Vr(l), f = tr(), d && d.c(), h = tr(), B(i, "class", "primary svelte-
|
|
695
|
+
t = oe("li"), e = oe("span"), n = oe("span"), i = oe("span"), s = Vr(o), a = tr(), u = oe("span"), c = Vr(l), f = tr(), d && d.c(), h = tr(), B(i, "class", "primary svelte-gpexd2"), B(u, "class", "secondary svelte-gpexd2"), B(n, "class", "line1 svelte-gpexd2"), B(e, "class", "texts svelte-gpexd2"), B(t, "tabindex", "0"), B(t, "data-selected", g = /*selectedItemIndex*/
|
|
694
696
|
r[13] === /*i*/
|
|
695
|
-
r[71]), B(t, "class", "svelte-
|
|
697
|
+
r[71]), B(t, "class", "svelte-gpexd2"), en(
|
|
696
698
|
t,
|
|
697
699
|
"selected",
|
|
698
700
|
/*selectedItemIndex*/
|
|
@@ -725,13 +727,13 @@ function la(r) {
|
|
|
725
727
|
);
|
|
726
728
|
},
|
|
727
729
|
d(C) {
|
|
728
|
-
C && Te(t), d && d.d(), p = !1,
|
|
730
|
+
C && Te(t), d && d.d(), p = !1, Tr(m);
|
|
729
731
|
}
|
|
730
732
|
};
|
|
731
733
|
}
|
|
732
|
-
function
|
|
734
|
+
function Gl(r) {
|
|
733
735
|
let t, e, n, i, o, s, a, u, l, c, f, h, g, p, m, d, _, I;
|
|
734
|
-
i = new
|
|
736
|
+
i = new Ml({}), c = new Ll({});
|
|
735
737
|
let C = (
|
|
736
738
|
/*abortController*/
|
|
737
739
|
r[17] && sa()
|
|
@@ -742,7 +744,7 @@ function Bl(r) {
|
|
|
742
744
|
const S = (
|
|
743
745
|
/*#slots*/
|
|
744
746
|
r[48].default
|
|
745
|
-
), b =
|
|
747
|
+
), b = ll(
|
|
746
748
|
S,
|
|
747
749
|
r,
|
|
748
750
|
/*$$scope*/
|
|
@@ -755,26 +757,26 @@ function Bl(r) {
|
|
|
755
757
|
/*error*/
|
|
756
758
|
R[16]
|
|
757
759
|
)
|
|
758
|
-
return
|
|
760
|
+
return kl;
|
|
759
761
|
if (!/*focusedDelayed*/
|
|
760
762
|
R[14])
|
|
761
|
-
return
|
|
763
|
+
return Bl;
|
|
762
764
|
if (
|
|
763
765
|
/*listFeatures*/
|
|
764
766
|
((q = R[12]) == null ? void 0 : q.length) === 0
|
|
765
767
|
)
|
|
766
|
-
return
|
|
768
|
+
return Fl;
|
|
767
769
|
if (
|
|
768
770
|
/*focusedDelayed*/
|
|
769
771
|
R[14] && /*listFeatures*/
|
|
770
772
|
((rt = R[12]) != null && rt.length)
|
|
771
773
|
)
|
|
772
|
-
return
|
|
774
|
+
return Al;
|
|
773
775
|
}
|
|
774
776
|
let F = A(r), D = F && F(r);
|
|
775
777
|
return {
|
|
776
778
|
c() {
|
|
777
|
-
t = oe("form"), e = oe("div"), n = oe("button"), Oo(i.$$.fragment), o = tr(), s = oe("input"), a = tr(), u = oe("div"), l = oe("button"), Oo(c.$$.fragment), f = tr(), C && C.c(), h = tr(), x && x.c(), g = tr(), b && b.c(), p = tr(), D && D.c(), B(n, "type", "button"), B(n, "class", "svelte-
|
|
779
|
+
t = oe("form"), e = oe("div"), n = oe("button"), Oo(i.$$.fragment), o = tr(), s = oe("input"), a = tr(), u = oe("div"), l = oe("button"), Oo(c.$$.fragment), f = tr(), C && C.c(), h = tr(), x && x.c(), g = tr(), b && b.c(), p = tr(), D && D.c(), B(n, "type", "button"), B(n, "class", "svelte-gpexd2"), B(
|
|
778
780
|
s,
|
|
779
781
|
"placeholder",
|
|
780
782
|
/*placeholder*/
|
|
@@ -784,20 +786,20 @@ function Bl(r) {
|
|
|
784
786
|
"aria-label",
|
|
785
787
|
/*placeholder*/
|
|
786
788
|
r[8]
|
|
787
|
-
), B(s, "class", "svelte-
|
|
789
|
+
), B(s, "class", "svelte-gpexd2"), B(l, "type", "button"), B(
|
|
788
790
|
l,
|
|
789
791
|
"title",
|
|
790
792
|
/*clearButtonTitle*/
|
|
791
793
|
r[3]
|
|
792
|
-
), B(l, "class", "svelte-
|
|
794
|
+
), B(l, "class", "svelte-gpexd2"), en(
|
|
793
795
|
l,
|
|
794
796
|
"displayable",
|
|
795
797
|
/*searchValue*/
|
|
796
798
|
r[1] !== ""
|
|
797
|
-
), B(u, "class", "clear-button-container svelte-
|
|
799
|
+
), B(u, "class", "clear-button-container svelte-gpexd2"), B(e, "class", "input-group svelte-gpexd2"), B(t, "tabindex", "0"), B(t, "class", m = ta(
|
|
798
800
|
/*className*/
|
|
799
801
|
r[2]
|
|
800
|
-
) + " svelte-
|
|
802
|
+
) + " svelte-gpexd2"), en(
|
|
801
803
|
t,
|
|
802
804
|
"can-collapse",
|
|
803
805
|
/*collapsed*/
|
|
@@ -853,7 +855,7 @@ function Bl(r) {
|
|
|
853
855
|
/*click_handler_1*/
|
|
854
856
|
r[55]
|
|
855
857
|
),
|
|
856
|
-
Be(t, "submit",
|
|
858
|
+
Be(t, "submit", pl(
|
|
857
859
|
/*handleOnSubmit*/
|
|
858
860
|
r[18]
|
|
859
861
|
))
|
|
@@ -899,19 +901,19 @@ function Bl(r) {
|
|
|
899
901
|
32 && Je(x, 1)) : (x = aa(R), x.c(), Je(x, 1), x.m(e, g)) : x && (ra(), $n(x, 1, 1, () => {
|
|
900
902
|
x = null;
|
|
901
903
|
}), ia()), b && b.p && (!d || z[1] & /*$$scope*/
|
|
902
|
-
65536) &&
|
|
904
|
+
65536) && fl(
|
|
903
905
|
b,
|
|
904
906
|
S,
|
|
905
907
|
R,
|
|
906
908
|
/*$$scope*/
|
|
907
909
|
R[47],
|
|
908
|
-
d ?
|
|
910
|
+
d ? cl(
|
|
909
911
|
S,
|
|
910
912
|
/*$$scope*/
|
|
911
913
|
R[47],
|
|
912
914
|
z,
|
|
913
915
|
null
|
|
914
|
-
) :
|
|
916
|
+
) : hl(
|
|
915
917
|
/*$$scope*/
|
|
916
918
|
R[47]
|
|
917
919
|
),
|
|
@@ -920,7 +922,7 @@ function Bl(r) {
|
|
|
920
922
|
4 && m !== (m = ta(
|
|
921
923
|
/*className*/
|
|
922
924
|
R[2]
|
|
923
|
-
) + " svelte-
|
|
925
|
+
) + " svelte-gpexd2")) && B(t, "class", m), (!d || z[0] & /*className, collapsed, searchValue*/
|
|
924
926
|
22) && en(
|
|
925
927
|
t,
|
|
926
928
|
"can-collapse",
|
|
@@ -936,11 +938,11 @@ function Bl(r) {
|
|
|
936
938
|
$n(i.$$.fragment, R), $n(c.$$.fragment, R), $n(C), $n(x), $n(b, R), d = !1;
|
|
937
939
|
},
|
|
938
940
|
d(R) {
|
|
939
|
-
R && Te(t), Ki(i), r[50](null), Ki(c), C && C.d(), x && x.d(), b && b.d(R), D && D.d(), _ = !1,
|
|
941
|
+
R && Te(t), Ki(i), r[50](null), Ki(c), C && C.d(), x && x.d(), b && b.d(R), D && D.d(), _ = !1, Tr(I);
|
|
940
942
|
}
|
|
941
943
|
};
|
|
942
944
|
}
|
|
943
|
-
function
|
|
945
|
+
function zl(r, t, e) {
|
|
944
946
|
const n = t[1], i = t[0], o = n - i;
|
|
945
947
|
return r === n && e ? r : ((r - i) % o + o) % o + i;
|
|
946
948
|
}
|
|
@@ -948,22 +950,22 @@ function ca(r) {
|
|
|
948
950
|
let t = [...r];
|
|
949
951
|
return t[2] < t[0] && (t[2] += 360), t;
|
|
950
952
|
}
|
|
951
|
-
function
|
|
953
|
+
function Vl(r, t, e) {
|
|
952
954
|
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: _ = !0 } = t, { fuzzyMatch: I = !0 } = t, { language: C = void 0 } = t, { limit: x = void 0 } = t, { mapController: S = void 0 } = t, { minLength: b = 2 } = t, { noResultsMessage: A = "No results found" } = t, { placeholder: F = "Search" } = t, { proximity: D = void 0 } = t, { reverseActive: R = p === "always" } = t, { reverseButtonTitle: z = "toggle reverse geocoding" } = t, { searchValue: q = "" } = t, { showFullGeometry: rt = !0 } = t, { showPlaceType: O = !1 } = t, { showResultsWhileTyping: Y = !0 } = t, { trackProximity: at = !0 } = t, { types: Nt = void 0 } = t, { zoom: qt = 16 } = t, { fetchParameters: ce = {} } = t;
|
|
953
|
-
function
|
|
954
|
-
|
|
955
|
+
function Fr() {
|
|
956
|
+
Fn.focus();
|
|
955
957
|
}
|
|
956
958
|
function mn() {
|
|
957
|
-
|
|
959
|
+
Fn.blur();
|
|
958
960
|
}
|
|
959
|
-
function
|
|
961
|
+
function An(N, At = !0) {
|
|
960
962
|
e(1, q = N), At ? (e(13, Mt = -1), Qs()) : (os(), setTimeout(() => {
|
|
961
|
-
|
|
963
|
+
Fn.focus(), Fn.select();
|
|
962
964
|
}));
|
|
963
965
|
}
|
|
964
|
-
let fe = !1, et, Rt, vt, Ks = "",
|
|
965
|
-
const pr =
|
|
966
|
-
|
|
966
|
+
let fe = !1, et, Rt, vt, Ks = "", Fn, Mt = -1, gr, Eo = [], Br, oi, Io;
|
|
967
|
+
const pr = ml();
|
|
968
|
+
yl(() => {
|
|
967
969
|
S && (S.setEventHandler(void 0), S.indicateReverse(!1), S.setSelectedMarker(-1), S.setMarkers(void 0, void 0));
|
|
968
970
|
});
|
|
969
971
|
function Qs(N) {
|
|
@@ -973,28 +975,28 @@ function kl(r, t, e) {
|
|
|
973
975
|
const At = N || !Js();
|
|
974
976
|
is(q, { exact: !0 }).then(() => {
|
|
975
977
|
e(44, Rt = et), e(45, vt = void 0), At && Xu();
|
|
976
|
-
}).catch((
|
|
978
|
+
}).catch((Bn) => e(16, gr = Bn));
|
|
977
979
|
}
|
|
978
980
|
}
|
|
979
981
|
function Js() {
|
|
980
982
|
return /^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(q);
|
|
981
983
|
}
|
|
982
|
-
async function is(N, { byId: At = !1, exact:
|
|
984
|
+
async function is(N, { byId: At = !1, exact: Bn = !1 } = {}) {
|
|
983
985
|
e(16, gr = void 0);
|
|
984
|
-
const
|
|
985
|
-
C != null && Fe.set("language", Array.isArray(C) ? C.join(",") : C), Nt && Fe.set("types", Nt.join(",")),
|
|
986
|
-
const
|
|
987
|
-
if (
|
|
986
|
+
const Gi = Js(), Fe = new URLSearchParams();
|
|
987
|
+
C != null && Fe.set("language", Array.isArray(C) ? C.join(",") : C), Nt && Fe.set("types", Nt.join(",")), Gi || (u && Fe.set("bbox", u.map((Gr) => Gr.toFixed(6)).join(",")), h && Fe.set("country", Array.isArray(h) ? h.join(",") : h)), At || (D && Fe.set("proximity", D.map((Gr) => Gr.toFixed(6)).join(",")), (Bn || !Y) && Fe.set("autocomplete", "false"), Fe.set("fuzzyMatch", String(I))), x !== void 0 && Fe.set("limit", String(x)), Fe.set("key", a);
|
|
988
|
+
const kr = "https://api.maptiler.com/geocoding/" + encodeURIComponent(N) + ".json?" + Fe.toString();
|
|
989
|
+
if (kr === Ks) {
|
|
988
990
|
At ? (e(12, et = void 0), e(45, vt = Eo[0])) : e(12, et = Eo);
|
|
989
991
|
return;
|
|
990
992
|
}
|
|
991
|
-
Ks =
|
|
993
|
+
Ks = kr, Br == null || Br.abort();
|
|
992
994
|
const ye = new AbortController();
|
|
993
|
-
e(17,
|
|
995
|
+
e(17, Br = ye);
|
|
994
996
|
let as;
|
|
995
997
|
try {
|
|
996
|
-
as = await fetch(
|
|
997
|
-
ye ===
|
|
998
|
+
as = await fetch(kr, { signal: ye.signal, ...ce }).finally(() => {
|
|
999
|
+
ye === Br && e(17, Br = void 0);
|
|
998
1000
|
});
|
|
999
1001
|
} catch (Gr) {
|
|
1000
1002
|
if (Gr && typeof Gr == "object" && Gr.name === "AbortError")
|
|
@@ -1004,19 +1006,19 @@ function kl(r, t, e) {
|
|
|
1004
1006
|
if (!as.ok)
|
|
1005
1007
|
throw new Error();
|
|
1006
1008
|
const us = await as.json();
|
|
1007
|
-
pr("response", { url:
|
|
1009
|
+
pr("response", { url: kr, featureCollection: us }), At ? (e(12, et = void 0), e(45, vt = us.features[0]), Eo = [vt]) : (e(12, et = us.features.filter(d)), Eo = et, Gi && Fn.focus());
|
|
1008
1010
|
}
|
|
1009
1011
|
function Xu() {
|
|
1010
|
-
var
|
|
1012
|
+
var Bn, Gi, Fe, kr;
|
|
1011
1013
|
if (!(Rt != null && Rt.length) || !_)
|
|
1012
1014
|
return;
|
|
1013
1015
|
const N = [180, 90, -180, -90], At = !Rt.some((ye) => !ye.matching_text);
|
|
1014
1016
|
for (const ye of Rt)
|
|
1015
|
-
(At || !ye.matching_text) && (N[0] = Math.min(N[0], ((
|
|
1017
|
+
(At || !ye.matching_text) && (N[0] = Math.min(N[0], ((Bn = ye.bbox) == null ? void 0 : Bn[0]) ?? ye.center[0]), N[1] = Math.min(N[1], ((Gi = ye.bbox) == null ? void 0 : Gi[1]) ?? ye.center[1]), N[2] = Math.max(N[2], ((Fe = ye.bbox) == null ? void 0 : Fe[2]) ?? ye.center[0]), N[3] = Math.max(N[3], ((kr = ye.bbox) == null ? void 0 : kr[3]) ?? ye.center[1]));
|
|
1016
1018
|
S && Rt.length > 0 && (vt && N[0] === N[2] && N[1] === N[3] ? S.flyTo(vt.center, qt) : S.fitBounds(ca(N), 50));
|
|
1017
1019
|
}
|
|
1018
1020
|
function Yu(N) {
|
|
1019
|
-
e(0, R = p === "always"),
|
|
1021
|
+
e(0, R = p === "always"), An(zl(N[0], [-180, 180], !0).toFixed(6) + "," + N[1].toFixed(6));
|
|
1020
1022
|
}
|
|
1021
1023
|
function Hu(N) {
|
|
1022
1024
|
if (!et)
|
|
@@ -1030,7 +1032,7 @@ function kl(r, t, e) {
|
|
|
1030
1032
|
const At = q;
|
|
1031
1033
|
oi = window.setTimeout(
|
|
1032
1034
|
() => {
|
|
1033
|
-
is(At).catch((
|
|
1035
|
+
is(At).catch((Bn) => e(16, gr = Bn));
|
|
1034
1036
|
},
|
|
1035
1037
|
N ? g : 0
|
|
1036
1038
|
);
|
|
@@ -1040,17 +1042,17 @@ function kl(r, t, e) {
|
|
|
1040
1042
|
function ss(N) {
|
|
1041
1043
|
e(45, vt = N), e(1, q = N.place_name), e(13, Mt = -1);
|
|
1042
1044
|
}
|
|
1043
|
-
const Wu = () =>
|
|
1045
|
+
const Wu = () => Fn.focus();
|
|
1044
1046
|
function ju(N) {
|
|
1045
1047
|
ds[N ? "unshift" : "push"](() => {
|
|
1046
|
-
|
|
1048
|
+
Fn = N, e(15, Fn);
|
|
1047
1049
|
});
|
|
1048
1050
|
}
|
|
1049
1051
|
function Ku() {
|
|
1050
1052
|
q = this.value, e(1, q), e(11, fe), e(25, c);
|
|
1051
1053
|
}
|
|
1052
1054
|
const Qu = () => e(11, fe = !0), Ju = () => e(11, fe = !1), Zu = () => os(), $u = () => {
|
|
1053
|
-
e(1, q = ""),
|
|
1055
|
+
e(1, q = ""), Fn.focus();
|
|
1054
1056
|
}, tl = () => e(0, R = !R), el = (N) => e(13, Mt = N), nl = (N) => ss(N), rl = () => e(13, Mt = -1), il = () => {
|
|
1055
1057
|
};
|
|
1056
1058
|
return r.$$set = (N) => {
|
|
@@ -1080,7 +1082,7 @@ function kl(r, t, e) {
|
|
|
1080
1082
|
break;
|
|
1081
1083
|
case "markerClick":
|
|
1082
1084
|
{
|
|
1083
|
-
const At = et == null ? void 0 : et.find((
|
|
1085
|
+
const At = et == null ? void 0 : et.find((Bn) => Bn.id === N.id);
|
|
1084
1086
|
At && ss(At);
|
|
1085
1087
|
}
|
|
1086
1088
|
break;
|
|
@@ -1126,9 +1128,9 @@ function kl(r, t, e) {
|
|
|
1126
1128
|
et,
|
|
1127
1129
|
Mt,
|
|
1128
1130
|
Io,
|
|
1129
|
-
|
|
1131
|
+
Fn,
|
|
1130
1132
|
gr,
|
|
1131
|
-
|
|
1133
|
+
Br,
|
|
1132
1134
|
Qs,
|
|
1133
1135
|
Hu,
|
|
1134
1136
|
os,
|
|
@@ -1152,9 +1154,9 @@ function kl(r, t, e) {
|
|
|
1152
1154
|
Nt,
|
|
1153
1155
|
qt,
|
|
1154
1156
|
ce,
|
|
1155
|
-
|
|
1157
|
+
Fr,
|
|
1156
1158
|
mn,
|
|
1157
|
-
|
|
1159
|
+
An,
|
|
1158
1160
|
Rt,
|
|
1159
1161
|
vt,
|
|
1160
1162
|
n,
|
|
@@ -1174,13 +1176,13 @@ function kl(r, t, e) {
|
|
|
1174
1176
|
il
|
|
1175
1177
|
];
|
|
1176
1178
|
}
|
|
1177
|
-
let
|
|
1179
|
+
let Ul = class extends Mi {
|
|
1178
1180
|
constructor(t) {
|
|
1179
1181
|
super(), Ti(
|
|
1180
1182
|
this,
|
|
1181
1183
|
t,
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
+
Vl,
|
|
1185
|
+
Gl,
|
|
1184
1186
|
Di,
|
|
1185
1187
|
{
|
|
1186
1188
|
class: 2,
|
|
@@ -1253,7 +1255,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
1253
1255
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
1254
1256
|
and limitations under the License.
|
|
1255
1257
|
***************************************************************************** */
|
|
1256
|
-
function
|
|
1258
|
+
function ql(r, t) {
|
|
1257
1259
|
var e = { label: 0, sent: function() {
|
|
1258
1260
|
if (o[0] & 1)
|
|
1259
1261
|
throw o[1];
|
|
@@ -1318,7 +1320,7 @@ function Vl(r, t) {
|
|
|
1318
1320
|
return { value: l[0] ? l[1] : void 0, done: !0 };
|
|
1319
1321
|
}
|
|
1320
1322
|
}
|
|
1321
|
-
var
|
|
1323
|
+
var xr = (
|
|
1322
1324
|
/** @class */
|
|
1323
1325
|
function() {
|
|
1324
1326
|
function r(t, e) {
|
|
@@ -1327,11 +1329,11 @@ var Cr = (
|
|
|
1327
1329
|
return r;
|
|
1328
1330
|
}()
|
|
1329
1331
|
);
|
|
1330
|
-
function
|
|
1332
|
+
function Xl(r, t) {
|
|
1331
1333
|
return r > t ? 1 : r < t ? -1 : 0;
|
|
1332
1334
|
}
|
|
1333
1335
|
function yr(r, t, e) {
|
|
1334
|
-
for (var n = new
|
|
1336
|
+
for (var n = new xr(null, null), i = n, o = n; ; ) {
|
|
1335
1337
|
var s = e(r, t.key);
|
|
1336
1338
|
if (s < 0) {
|
|
1337
1339
|
if (t.left === null)
|
|
@@ -1357,7 +1359,7 @@ function yr(r, t, e) {
|
|
|
1357
1359
|
return i.right = t.left, o.left = t.right, t.left = n.right, t.right = n.left, t;
|
|
1358
1360
|
}
|
|
1359
1361
|
function fs(r, t, e, n) {
|
|
1360
|
-
var i = new
|
|
1362
|
+
var i = new xr(r, t);
|
|
1361
1363
|
if (e === null)
|
|
1362
1364
|
return i.left = i.right = null, i;
|
|
1363
1365
|
e = yr(r, e, n);
|
|
@@ -1373,7 +1375,7 @@ function fa(r, t, e) {
|
|
|
1373
1375
|
}
|
|
1374
1376
|
return { left: n, right: i };
|
|
1375
1377
|
}
|
|
1376
|
-
function
|
|
1378
|
+
function Yl(r, t, e) {
|
|
1377
1379
|
return t === null ? r : (r === null || (t = yr(r.key, t, e), t.left = r), t);
|
|
1378
1380
|
}
|
|
1379
1381
|
function ms(r, t, e, n, i) {
|
|
@@ -1388,12 +1390,12 @@ var Ds = (
|
|
|
1388
1390
|
/** @class */
|
|
1389
1391
|
function() {
|
|
1390
1392
|
function r(t) {
|
|
1391
|
-
t === void 0 && (t =
|
|
1393
|
+
t === void 0 && (t = Xl), this._root = null, this._size = 0, this._comparator = t;
|
|
1392
1394
|
}
|
|
1393
1395
|
return r.prototype.insert = function(t, e) {
|
|
1394
1396
|
return this._size++, this._root = fs(t, e, this._root, this._comparator);
|
|
1395
1397
|
}, r.prototype.add = function(t, e) {
|
|
1396
|
-
var n = new
|
|
1398
|
+
var n = new xr(t, e);
|
|
1397
1399
|
this._root === null && (n.left = n.right = null, this._size++, this._root = n);
|
|
1398
1400
|
var i = this._comparator, o = yr(t, this._root, i), s = i(t, o.key);
|
|
1399
1401
|
return s === 0 ? this._root = o : (s < 0 ? (n.left = o.left, n.right = o, o.left = null) : s > 0 && (n.right = o.right, n.left = o, o.right = null), this._size++, this._root = n), this._root;
|
|
@@ -1516,14 +1518,14 @@ var Ds = (
|
|
|
1516
1518
|
}, r.prototype.clear = function() {
|
|
1517
1519
|
return this._root = null, this._size = 0, this;
|
|
1518
1520
|
}, r.prototype.toList = function() {
|
|
1519
|
-
return
|
|
1521
|
+
return Wl(this._root);
|
|
1520
1522
|
}, r.prototype.load = function(t, e, n) {
|
|
1521
1523
|
e === void 0 && (e = []), n === void 0 && (n = !1);
|
|
1522
1524
|
var i = t.length, o = this._comparator;
|
|
1523
1525
|
if (n && Is(t, e, 0, i - 1, o), this._root === null)
|
|
1524
1526
|
this._root = _s(t, e, 0, i), this._size = i;
|
|
1525
1527
|
else {
|
|
1526
|
-
var s =
|
|
1528
|
+
var s = jl(this.toList(), Hl(t, e), o);
|
|
1527
1529
|
i = this._size + i, this._root = Es({ head: s }, 0, i);
|
|
1528
1530
|
}
|
|
1529
1531
|
return this;
|
|
@@ -1551,12 +1553,12 @@ var Ds = (
|
|
|
1551
1553
|
}, t), e.join("");
|
|
1552
1554
|
}, r.prototype.update = function(t, e, n) {
|
|
1553
1555
|
var i = this._comparator, o = fa(t, this._root, i), s = o.left, a = o.right;
|
|
1554
|
-
i(t, e) < 0 ? a = fs(e, n, a, i) : s = fs(e, n, s, i), this._root =
|
|
1556
|
+
i(t, e) < 0 ? a = fs(e, n, a, i) : s = fs(e, n, s, i), this._root = Yl(s, a, i);
|
|
1555
1557
|
}, r.prototype.split = function(t) {
|
|
1556
1558
|
return fa(t, this._root, this._comparator);
|
|
1557
1559
|
}, r.prototype[Symbol.iterator] = function() {
|
|
1558
1560
|
var t;
|
|
1559
|
-
return
|
|
1561
|
+
return ql(this, function(e) {
|
|
1560
1562
|
switch (e.label) {
|
|
1561
1563
|
case 0:
|
|
1562
1564
|
t = this.minNode(), e.label = 1;
|
|
@@ -1577,18 +1579,18 @@ var Ds = (
|
|
|
1577
1579
|
function _s(r, t, e, n) {
|
|
1578
1580
|
var i = n - e;
|
|
1579
1581
|
if (i > 0) {
|
|
1580
|
-
var o = e + Math.floor(i / 2), s = r[o], a = t[o], u = new
|
|
1582
|
+
var o = e + Math.floor(i / 2), s = r[o], a = t[o], u = new xr(s, a);
|
|
1581
1583
|
return u.left = _s(r, t, e, o), u.right = _s(r, t, o + 1, n), u;
|
|
1582
1584
|
}
|
|
1583
1585
|
return null;
|
|
1584
1586
|
}
|
|
1585
|
-
function
|
|
1586
|
-
for (var e = new
|
|
1587
|
-
n = n.next = new
|
|
1587
|
+
function Hl(r, t) {
|
|
1588
|
+
for (var e = new xr(null, null), n = e, i = 0; i < r.length; i++)
|
|
1589
|
+
n = n.next = new xr(r[i], t[i]);
|
|
1588
1590
|
return n.next = null, e.next;
|
|
1589
1591
|
}
|
|
1590
|
-
function
|
|
1591
|
-
for (var t = r, e = [], n = !1, i = new
|
|
1592
|
+
function Wl(r) {
|
|
1593
|
+
for (var t = r, e = [], n = !1, i = new xr(null, null), o = i; !n; )
|
|
1592
1594
|
t ? (e.push(t), t = t.left) : e.length > 0 ? (t = o = o.next = e.pop(), t = t.right) : n = !0;
|
|
1593
1595
|
return o.next = null, i.next;
|
|
1594
1596
|
}
|
|
@@ -1600,8 +1602,8 @@ function Es(r, t, e) {
|
|
|
1600
1602
|
}
|
|
1601
1603
|
return null;
|
|
1602
1604
|
}
|
|
1603
|
-
function
|
|
1604
|
-
for (var n = new
|
|
1605
|
+
function jl(r, t, e) {
|
|
1606
|
+
for (var n = new xr(null, null), i = n, o = r, s = t; o !== null && s !== null; )
|
|
1605
1607
|
e(o.key, s.key) < 0 ? (i.next = o, o = o.next) : (i.next = s, s = s.next), i = i.next;
|
|
1606
1608
|
return o !== null ? i.next = o : s !== null && (i.next = s), n.next;
|
|
1607
1609
|
}
|
|
@@ -1651,14 +1653,14 @@ var zi = function(t, e) {
|
|
|
1651
1653
|
y: s
|
|
1652
1654
|
}
|
|
1653
1655
|
};
|
|
1654
|
-
},
|
|
1655
|
-
|
|
1656
|
-
var
|
|
1657
|
-
if (-
|
|
1656
|
+
}, _r = Number.EPSILON;
|
|
1657
|
+
_r === void 0 && (_r = Math.pow(2, -52));
|
|
1658
|
+
var Kl = _r * _r, xs = function(t, e) {
|
|
1659
|
+
if (-_r < t && t < _r && -_r < e && e < _r)
|
|
1658
1660
|
return 0;
|
|
1659
1661
|
var n = t - e;
|
|
1660
|
-
return n * n <
|
|
1661
|
-
},
|
|
1662
|
+
return n * n < Kl * t * e ? 0 : t < e ? -1 : 1;
|
|
1663
|
+
}, Ql = /* @__PURE__ */ function() {
|
|
1662
1664
|
function r() {
|
|
1663
1665
|
dn(this, r), this.reset();
|
|
1664
1666
|
}
|
|
@@ -1690,7 +1692,7 @@ var Wl = mr * mr, xs = function(t, e) {
|
|
|
1690
1692
|
return o !== null && xs(n.key, o.key) === 0 ? (this.tree.remove(e), o.key) : e;
|
|
1691
1693
|
}
|
|
1692
1694
|
}]), r;
|
|
1693
|
-
}(), Qi = new
|
|
1695
|
+
}(), Qi = new Ql(), Yi = function(t, e) {
|
|
1694
1696
|
return t.x * e.y - t.y * e.x;
|
|
1695
1697
|
}, Ja = function(t, e) {
|
|
1696
1698
|
return t.x * e.x + t.y * e.y;
|
|
@@ -1705,7 +1707,7 @@ var Wl = mr * mr, xs = function(t, e) {
|
|
|
1705
1707
|
return xs(s, 0);
|
|
1706
1708
|
}, Do = function(t) {
|
|
1707
1709
|
return Math.sqrt(Ja(t, t));
|
|
1708
|
-
},
|
|
1710
|
+
}, Jl = function(t, e, n) {
|
|
1709
1711
|
var i = {
|
|
1710
1712
|
x: e.x - t.x,
|
|
1711
1713
|
y: e.y - t.y
|
|
@@ -1714,7 +1716,7 @@ var Wl = mr * mr, xs = function(t, e) {
|
|
|
1714
1716
|
y: n.y - t.y
|
|
1715
1717
|
};
|
|
1716
1718
|
return Yi(o, i) / Do(o) / Do(i);
|
|
1717
|
-
},
|
|
1719
|
+
}, Zl = function(t, e, n) {
|
|
1718
1720
|
var i = {
|
|
1719
1721
|
x: e.x - t.x,
|
|
1720
1722
|
y: e.y - t.y
|
|
@@ -1733,7 +1735,7 @@ var Wl = mr * mr, xs = function(t, e) {
|
|
|
1733
1735
|
x: n,
|
|
1734
1736
|
y: t.y + e.y / e.x * (n - t.x)
|
|
1735
1737
|
};
|
|
1736
|
-
},
|
|
1738
|
+
}, $l = function(t, e, n, i) {
|
|
1737
1739
|
if (e.x === 0)
|
|
1738
1740
|
return va(n, i, t.x);
|
|
1739
1741
|
if (i.x === 0)
|
|
@@ -1822,8 +1824,8 @@ var Wl = mr * mr, xs = function(t, e) {
|
|
|
1822
1824
|
var n = this, i = /* @__PURE__ */ new Map(), o = function(a) {
|
|
1823
1825
|
var u = a.otherSE;
|
|
1824
1826
|
i.set(a, {
|
|
1825
|
-
sine:
|
|
1826
|
-
cosine:
|
|
1827
|
+
sine: Jl(n.point, e.point, u.point),
|
|
1828
|
+
cosine: Zl(n.point, e.point, u.point)
|
|
1827
1829
|
});
|
|
1828
1830
|
};
|
|
1829
1831
|
return function(s, a) {
|
|
@@ -1833,7 +1835,7 @@ var Wl = mr * mr, xs = function(t, e) {
|
|
|
1833
1835
|
};
|
|
1834
1836
|
}
|
|
1835
1837
|
}]), r;
|
|
1836
|
-
}(),
|
|
1838
|
+
}(), tc = 0, To = /* @__PURE__ */ function() {
|
|
1837
1839
|
Ie(r, null, [{
|
|
1838
1840
|
key: "compare",
|
|
1839
1841
|
/* This compare() function is for ordering segments in the sweep
|
|
@@ -1909,7 +1911,7 @@ var Wl = mr * mr, xs = function(t, e) {
|
|
|
1909
1911
|
* and possibly will be later modified */
|
|
1910
1912
|
}]);
|
|
1911
1913
|
function r(t, e, n, i) {
|
|
1912
|
-
dn(this, r), this.id = ++
|
|
1914
|
+
dn(this, r), this.id = ++tc, this.leftSE = t, t.segment = this, t.otherSE = e, this.rightSE = e, e.segment = this, e.otherSE = t, this.rings = n, this.windings = i;
|
|
1913
1915
|
}
|
|
1914
1916
|
return Ie(r, [{
|
|
1915
1917
|
key: "replaceRightSE",
|
|
@@ -2007,7 +2009,7 @@ var Wl = mr * mr, xs = function(t, e) {
|
|
|
2007
2009
|
return a;
|
|
2008
2010
|
if (h)
|
|
2009
2011
|
return l;
|
|
2010
|
-
var p =
|
|
2012
|
+
var p = $l(s, this.vector(), u, e.vector());
|
|
2011
2013
|
return p === null || !zi(o, p) ? null : Qi.round(p.x, p.y);
|
|
2012
2014
|
}
|
|
2013
2015
|
/**
|
|
@@ -2130,7 +2132,7 @@ var Wl = mr * mr, xs = function(t, e) {
|
|
|
2130
2132
|
if (this._isInResult !== void 0)
|
|
2131
2133
|
return this._isInResult;
|
|
2132
2134
|
var e = this.beforeState().multiPolys, n = this.afterState().multiPolys;
|
|
2133
|
-
switch (
|
|
2135
|
+
switch (Cn.type) {
|
|
2134
2136
|
case "union": {
|
|
2135
2137
|
var i = e.length === 0, o = n.length === 0;
|
|
2136
2138
|
this._isInResult = i !== o;
|
|
@@ -2138,7 +2140,7 @@ var Wl = mr * mr, xs = function(t, e) {
|
|
|
2138
2140
|
}
|
|
2139
2141
|
case "intersection": {
|
|
2140
2142
|
var s, a;
|
|
2141
|
-
e.length < n.length ? (s = e.length, a = n.length) : (s = n.length, a = e.length), this._isInResult = a ===
|
|
2143
|
+
e.length < n.length ? (s = e.length, a = n.length) : (s = n.length, a = e.length), this._isInResult = a === Cn.numMultiPolys && s < a;
|
|
2142
2144
|
break;
|
|
2143
2145
|
}
|
|
2144
2146
|
case "xor": {
|
|
@@ -2154,7 +2156,7 @@ var Wl = mr * mr, xs = function(t, e) {
|
|
|
2154
2156
|
break;
|
|
2155
2157
|
}
|
|
2156
2158
|
default:
|
|
2157
|
-
throw new Error("Unrecognized operation type found ".concat(
|
|
2159
|
+
throw new Error("Unrecognized operation type found ".concat(Cn.type));
|
|
2158
2160
|
}
|
|
2159
2161
|
return this._isInResult;
|
|
2160
2162
|
}
|
|
@@ -2207,7 +2209,7 @@ var Wl = mr * mr, xs = function(t, e) {
|
|
|
2207
2209
|
return e;
|
|
2208
2210
|
}
|
|
2209
2211
|
}]), r;
|
|
2210
|
-
}(),
|
|
2212
|
+
}(), ec = /* @__PURE__ */ function() {
|
|
2211
2213
|
function r(t, e) {
|
|
2212
2214
|
if (dn(this, r), !Array.isArray(t))
|
|
2213
2215
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
@@ -2255,7 +2257,7 @@ var Wl = mr * mr, xs = function(t, e) {
|
|
|
2255
2257
|
}
|
|
2256
2258
|
};
|
|
2257
2259
|
for (var n = 0, i = t.length; n < i; n++) {
|
|
2258
|
-
var o = new
|
|
2260
|
+
var o = new ec(t[n], this);
|
|
2259
2261
|
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);
|
|
2260
2262
|
}
|
|
2261
2263
|
this.isSubject = e;
|
|
@@ -2269,7 +2271,7 @@ var Wl = mr * mr, xs = function(t, e) {
|
|
|
2269
2271
|
return e;
|
|
2270
2272
|
}
|
|
2271
2273
|
}]), r;
|
|
2272
|
-
}(),
|
|
2274
|
+
}(), nc = /* @__PURE__ */ function() {
|
|
2273
2275
|
Ie(r, null, [{
|
|
2274
2276
|
key: "factory",
|
|
2275
2277
|
/* Given the segments from the sweep line pass, compute & return a series
|
|
@@ -2389,7 +2391,7 @@ var Wl = mr * mr, xs = function(t, e) {
|
|
|
2389
2391
|
return e;
|
|
2390
2392
|
}
|
|
2391
2393
|
}]), r;
|
|
2392
|
-
}(),
|
|
2394
|
+
}(), rc = /* @__PURE__ */ function() {
|
|
2393
2395
|
function r(t) {
|
|
2394
2396
|
dn(this, r), this.rings = t, this.polys = this._composePolys(t);
|
|
2395
2397
|
}
|
|
@@ -2418,7 +2420,7 @@ var Wl = mr * mr, xs = function(t, e) {
|
|
|
2418
2420
|
return n;
|
|
2419
2421
|
}
|
|
2420
2422
|
}]), r;
|
|
2421
|
-
}(),
|
|
2423
|
+
}(), ic = /* @__PURE__ */ function() {
|
|
2422
2424
|
function r(t) {
|
|
2423
2425
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : To.compare;
|
|
2424
2426
|
dn(this, r), this.queue = t, this.tree = new Ds(e), this.segments = [];
|
|
@@ -2494,20 +2496,20 @@ var Wl = mr * mr, xs = function(t, e) {
|
|
|
2494
2496
|
return o.push(i), e.consumedBy === void 0 && this.tree.insert(e), o;
|
|
2495
2497
|
}
|
|
2496
2498
|
}]), r;
|
|
2497
|
-
}(), Ea = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1e6,
|
|
2499
|
+
}(), Ea = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1e6, oc = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS || 1e6, sc = /* @__PURE__ */ function() {
|
|
2498
2500
|
function r() {
|
|
2499
2501
|
dn(this, r);
|
|
2500
2502
|
}
|
|
2501
2503
|
return Ie(r, [{
|
|
2502
2504
|
key: "run",
|
|
2503
2505
|
value: function(e, n, i) {
|
|
2504
|
-
|
|
2506
|
+
Cn.type = e, Qi.reset();
|
|
2505
2507
|
for (var o = [new ma(n, !0)], s = 0, a = i.length; s < a; s++)
|
|
2506
2508
|
o.push(new ma(i[s], !1));
|
|
2507
|
-
if (
|
|
2509
|
+
if (Cn.numMultiPolys = o.length, Cn.type === "difference")
|
|
2508
2510
|
for (var u = o[0], l = 1; l < o.length; )
|
|
2509
2511
|
Cs(o[l].bbox, u.bbox) !== null ? l++ : o.splice(l, 1);
|
|
2510
|
-
if (
|
|
2512
|
+
if (Cn.type === "intersection") {
|
|
2511
2513
|
for (var c = 0, f = o.length; c < f; c++)
|
|
2512
2514
|
for (var h = o[c], g = c + 1, p = o.length; g < p; g++)
|
|
2513
2515
|
if (Cs(h.bbox, o[g].bbox) === null)
|
|
@@ -2517,7 +2519,7 @@ var Wl = mr * mr, xs = function(t, e) {
|
|
|
2517
2519
|
for (var I = o[d].getSweepEvents(), C = 0, x = I.length; C < x; C++)
|
|
2518
2520
|
if (m.insert(I[C]), m.size > Ea)
|
|
2519
2521
|
throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");
|
|
2520
|
-
for (var S = new
|
|
2522
|
+
for (var S = new ic(m), b = m.size, A = m.pop(); A; ) {
|
|
2521
2523
|
var F = A.key;
|
|
2522
2524
|
if (m.size === b) {
|
|
2523
2525
|
var D = F.segment;
|
|
@@ -2525,7 +2527,7 @@ var Wl = mr * mr, xs = function(t, e) {
|
|
|
2525
2527
|
}
|
|
2526
2528
|
if (m.size > Ea)
|
|
2527
2529
|
throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big). Please file a bug report.");
|
|
2528
|
-
if (S.segments.length >
|
|
2530
|
+
if (S.segments.length > oc)
|
|
2529
2531
|
throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments). Please file a bug report.");
|
|
2530
2532
|
for (var R = S.process(F), z = 0, q = R.length; z < q; z++) {
|
|
2531
2533
|
var rt = R[z];
|
|
@@ -2534,31 +2536,31 @@ var Wl = mr * mr, xs = function(t, e) {
|
|
|
2534
2536
|
b = m.size, A = m.pop();
|
|
2535
2537
|
}
|
|
2536
2538
|
Qi.reset();
|
|
2537
|
-
var O =
|
|
2539
|
+
var O = nc.factory(S.segments), Y = new rc(O);
|
|
2538
2540
|
return Y.getGeom();
|
|
2539
2541
|
}
|
|
2540
2542
|
}]), r;
|
|
2541
|
-
}(),
|
|
2543
|
+
}(), Cn = new sc(), ac = function(t) {
|
|
2542
2544
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
2543
2545
|
n[i - 1] = arguments[i];
|
|
2544
|
-
return
|
|
2545
|
-
},
|
|
2546
|
+
return Cn.run("union", t, n);
|
|
2547
|
+
}, uc = function(t) {
|
|
2546
2548
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
2547
2549
|
n[i - 1] = arguments[i];
|
|
2548
|
-
return
|
|
2549
|
-
},
|
|
2550
|
+
return Cn.run("intersection", t, n);
|
|
2551
|
+
}, lc = function(t) {
|
|
2550
2552
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
2551
2553
|
n[i - 1] = arguments[i];
|
|
2552
|
-
return
|
|
2553
|
-
},
|
|
2554
|
+
return Cn.run("xor", t, n);
|
|
2555
|
+
}, cc = function(t) {
|
|
2554
2556
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
2555
2557
|
n[i - 1] = arguments[i];
|
|
2556
|
-
return
|
|
2558
|
+
return Cn.run("difference", t, n);
|
|
2557
2559
|
}, Za = {
|
|
2558
|
-
union:
|
|
2559
|
-
intersection:
|
|
2560
|
-
xor:
|
|
2561
|
-
difference:
|
|
2560
|
+
union: ac,
|
|
2561
|
+
intersection: uc,
|
|
2562
|
+
xor: lc,
|
|
2563
|
+
difference: cc
|
|
2562
2564
|
}, me = 63710088e-1, $a = {
|
|
2563
2565
|
centimeters: me * 100,
|
|
2564
2566
|
centimetres: me * 100,
|
|
@@ -2581,7 +2583,7 @@ function Yo(r, t, e) {
|
|
|
2581
2583
|
var n = { type: "Feature" };
|
|
2582
2584
|
return (e.id === 0 || e.id) && (n.id = e.id), e.bbox && (n.bbox = e.bbox), n.properties = t || {}, n.geometry = r, n;
|
|
2583
2585
|
}
|
|
2584
|
-
function
|
|
2586
|
+
function fc(r, t, e) {
|
|
2585
2587
|
if (e === void 0 && (e = {}), !r)
|
|
2586
2588
|
throw new Error("coordinates is required");
|
|
2587
2589
|
if (!Array.isArray(r))
|
|
@@ -2625,14 +2627,14 @@ function eu(r, t, e) {
|
|
|
2625
2627
|
};
|
|
2626
2628
|
return Yo(n, t, e);
|
|
2627
2629
|
}
|
|
2628
|
-
function
|
|
2630
|
+
function hc(r, t) {
|
|
2629
2631
|
t === void 0 && (t = "kilometers");
|
|
2630
2632
|
var e = $a[t];
|
|
2631
2633
|
if (!e)
|
|
2632
2634
|
throw new Error(t + " units is invalid");
|
|
2633
2635
|
return r * e;
|
|
2634
2636
|
}
|
|
2635
|
-
function
|
|
2637
|
+
function gc(r, t) {
|
|
2636
2638
|
t === void 0 && (t = "kilometers");
|
|
2637
2639
|
var e = $a[t];
|
|
2638
2640
|
if (!e)
|
|
@@ -2645,12 +2647,12 @@ function Ia(r) {
|
|
|
2645
2647
|
function Mo(r) {
|
|
2646
2648
|
return r.type === "Feature" ? r.geometry : r;
|
|
2647
2649
|
}
|
|
2648
|
-
function
|
|
2650
|
+
function pc(r, t, e) {
|
|
2649
2651
|
e === void 0 && (e = {});
|
|
2650
2652
|
var n = Mo(r), i = Mo(t), o = Za.union(n.coordinates, i.coordinates);
|
|
2651
2653
|
return o.length === 0 ? null : o.length === 1 ? tu(o[0], e.properties) : eu(o, e.properties);
|
|
2652
2654
|
}
|
|
2653
|
-
function
|
|
2655
|
+
function dc(r, t) {
|
|
2654
2656
|
var e = Mo(r), n = Mo(t), i = r.properties || {}, o = Za.difference(
|
|
2655
2657
|
e.coordinates,
|
|
2656
2658
|
n.coordinates
|
|
@@ -2809,10 +2811,10 @@ function Ss(r) {
|
|
|
2809
2811
|
}), t;
|
|
2810
2812
|
}
|
|
2811
2813
|
Ss.default = Ss;
|
|
2812
|
-
function
|
|
2814
|
+
function vc(r, t) {
|
|
2813
2815
|
t === void 0 && (t = {});
|
|
2814
2816
|
var e = Ss(r), n = (e[0] + e[2]) / 2, i = (e[1] + e[3]) / 2;
|
|
2815
|
-
return
|
|
2817
|
+
return fc([n, i], t.properties, t);
|
|
2816
2818
|
}
|
|
2817
2819
|
"fill" in Array.prototype || Object.defineProperty(Array.prototype, "fill", {
|
|
2818
2820
|
configurable: !0,
|
|
@@ -3067,7 +3069,7 @@ fo.NONE.get = function() {
|
|
|
3067
3069
|
return -1;
|
|
3068
3070
|
};
|
|
3069
3071
|
Object.defineProperties(y, fo);
|
|
3070
|
-
var
|
|
3072
|
+
var G = function(r, t) {
|
|
3071
3073
|
return r.interfaces_ && r.interfaces_().indexOf(t) > -1;
|
|
3072
3074
|
}, Ce = function() {
|
|
3073
3075
|
}, ou = { LOG_10: { configurable: !0 } };
|
|
@@ -3662,19 +3664,19 @@ var au = function() {
|
|
|
3662
3664
|
}, t.prototype.getClass = function() {
|
|
3663
3665
|
return t;
|
|
3664
3666
|
}, t;
|
|
3665
|
-
}(au),
|
|
3667
|
+
}(au), Gt = function() {
|
|
3666
3668
|
};
|
|
3667
|
-
|
|
3669
|
+
Gt.arraycopy = function(t, e, n, i, o) {
|
|
3668
3670
|
for (var s = 0, a = e; a < e + o; a++)
|
|
3669
3671
|
n[i + s] = t[a], s++;
|
|
3670
3672
|
};
|
|
3671
|
-
|
|
3673
|
+
Gt.getProperty = function(t) {
|
|
3672
3674
|
return {
|
|
3673
3675
|
"line.separator": `
|
|
3674
3676
|
`
|
|
3675
3677
|
}[t];
|
|
3676
3678
|
};
|
|
3677
|
-
var
|
|
3679
|
+
var ke = function r() {
|
|
3678
3680
|
if (this.x = null, this.y = null, this.w = null, arguments.length === 0)
|
|
3679
3681
|
this.x = 0, this.y = 0, this.w = 1;
|
|
3680
3682
|
else if (arguments.length === 1) {
|
|
@@ -3699,29 +3701,29 @@ var Ge = function r() {
|
|
|
3699
3701
|
this.x = d * x - C * _, this.y = I * _ - m * x, this.w = m * C - I * d;
|
|
3700
3702
|
}
|
|
3701
3703
|
};
|
|
3702
|
-
|
|
3704
|
+
ke.prototype.getY = function() {
|
|
3703
3705
|
var t = this.y / this.w;
|
|
3704
3706
|
if (V.isNaN(t) || V.isInfinite(t))
|
|
3705
3707
|
throw new Ai();
|
|
3706
3708
|
return t;
|
|
3707
3709
|
};
|
|
3708
|
-
|
|
3710
|
+
ke.prototype.getX = function() {
|
|
3709
3711
|
var t = this.x / this.w;
|
|
3710
3712
|
if (V.isNaN(t) || V.isInfinite(t))
|
|
3711
3713
|
throw new Ai();
|
|
3712
3714
|
return t;
|
|
3713
3715
|
};
|
|
3714
|
-
|
|
3716
|
+
ke.prototype.getCoordinate = function() {
|
|
3715
3717
|
var t = new v();
|
|
3716
3718
|
return t.x = this.getX(), t.y = this.getY(), t;
|
|
3717
3719
|
};
|
|
3718
|
-
|
|
3720
|
+
ke.prototype.interfaces_ = function() {
|
|
3719
3721
|
return [];
|
|
3720
3722
|
};
|
|
3721
|
-
|
|
3722
|
-
return
|
|
3723
|
+
ke.prototype.getClass = function() {
|
|
3724
|
+
return ke;
|
|
3723
3725
|
};
|
|
3724
|
-
|
|
3726
|
+
ke.intersection = function(t, e, n, i) {
|
|
3725
3727
|
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;
|
|
3726
3728
|
if (V.isNaN(p) || V.isInfinite(p) || V.isNaN(m) || V.isInfinite(m))
|
|
3727
3729
|
throw new Ai();
|
|
@@ -3955,12 +3957,12 @@ Wo.prototype.write = function(t) {
|
|
|
3955
3957
|
};
|
|
3956
3958
|
Wo.prototype.extractGeometry = function(t) {
|
|
3957
3959
|
var e = t.getGeometryType().toLowerCase();
|
|
3958
|
-
if (!
|
|
3960
|
+
if (!Gn[e])
|
|
3959
3961
|
return null;
|
|
3960
3962
|
var n = e.toUpperCase(), i;
|
|
3961
|
-
return t.isEmpty() ? i = n + " EMPTY" : i = n + "(" +
|
|
3963
|
+
return t.isEmpty() ? i = n + " EMPTY" : i = n + "(" + Gn[e].apply(this, [t]) + ")", i;
|
|
3962
3964
|
};
|
|
3963
|
-
var
|
|
3965
|
+
var Gn = {
|
|
3964
3966
|
coordinate: function(t) {
|
|
3965
3967
|
return t.x + " " + t.y;
|
|
3966
3968
|
},
|
|
@@ -3972,7 +3974,7 @@ var kn = {
|
|
|
3972
3974
|
* @return {String} A string of coordinates representing the point.
|
|
3973
3975
|
*/
|
|
3974
3976
|
point: function(t) {
|
|
3975
|
-
return
|
|
3977
|
+
return Gn.coordinate.call(this, t._coordinates._coordinates[0]);
|
|
3976
3978
|
},
|
|
3977
3979
|
/**
|
|
3978
3980
|
* Return a comma delimited string of point coordinates from a multipoint.
|
|
@@ -3984,7 +3986,7 @@ var kn = {
|
|
|
3984
3986
|
*/
|
|
3985
3987
|
multipoint: function(t) {
|
|
3986
3988
|
for (var e = this, n = [], i = 0, o = t._geometries.length; i < o; ++i)
|
|
3987
|
-
n.push("(" +
|
|
3989
|
+
n.push("(" + Gn.point.apply(e, [t._geometries[i]]) + ")");
|
|
3988
3990
|
return n.join(",");
|
|
3989
3991
|
},
|
|
3990
3992
|
/**
|
|
@@ -3995,12 +3997,12 @@ var kn = {
|
|
|
3995
3997
|
*/
|
|
3996
3998
|
linestring: function(t) {
|
|
3997
3999
|
for (var e = this, n = [], i = 0, o = t._points._coordinates.length; i < o; ++i)
|
|
3998
|
-
n.push(
|
|
4000
|
+
n.push(Gn.coordinate.apply(e, [t._points._coordinates[i]]));
|
|
3999
4001
|
return n.join(",");
|
|
4000
4002
|
},
|
|
4001
4003
|
linearring: function(t) {
|
|
4002
4004
|
for (var e = this, n = [], i = 0, o = t._points._coordinates.length; i < o; ++i)
|
|
4003
|
-
n.push(
|
|
4005
|
+
n.push(Gn.coordinate.apply(e, [t._points._coordinates[i]]));
|
|
4004
4006
|
return n.join(",");
|
|
4005
4007
|
},
|
|
4006
4008
|
/**
|
|
@@ -4012,7 +4014,7 @@ var kn = {
|
|
|
4012
4014
|
*/
|
|
4013
4015
|
multilinestring: function(t) {
|
|
4014
4016
|
for (var e = this, n = [], i = 0, o = t._geometries.length; i < o; ++i)
|
|
4015
|
-
n.push("(" +
|
|
4017
|
+
n.push("(" + Gn.linestring.apply(e, [t._geometries[i]]) + ")");
|
|
4016
4018
|
return n.join(",");
|
|
4017
4019
|
},
|
|
4018
4020
|
/**
|
|
@@ -4023,9 +4025,9 @@ var kn = {
|
|
|
4023
4025
|
*/
|
|
4024
4026
|
polygon: function(t) {
|
|
4025
4027
|
var e = this, n = [];
|
|
4026
|
-
n.push("(" +
|
|
4028
|
+
n.push("(" + Gn.linestring.apply(this, [t._shell]) + ")");
|
|
4027
4029
|
for (var i = 0, o = t._holes.length; i < o; ++i)
|
|
4028
|
-
n.push("(" +
|
|
4030
|
+
n.push("(" + Gn.linestring.apply(e, [t._holes[i]]) + ")");
|
|
4029
4031
|
return n.join(",");
|
|
4030
4032
|
},
|
|
4031
4033
|
/**
|
|
@@ -4036,7 +4038,7 @@ var kn = {
|
|
|
4036
4038
|
*/
|
|
4037
4039
|
multipolygon: function(t) {
|
|
4038
4040
|
for (var e = this, n = [], i = 0, o = t._geometries.length; i < o; ++i)
|
|
4039
|
-
n.push("(" +
|
|
4041
|
+
n.push("(" + Gn.polygon.apply(e, [t._geometries[i]]) + ")");
|
|
4040
4042
|
return n.join(",");
|
|
4041
4043
|
},
|
|
4042
4044
|
/**
|
|
@@ -4349,7 +4351,7 @@ ei.COLLINEAR_INTERSECTION.get = function() {
|
|
|
4349
4351
|
return 2;
|
|
4350
4352
|
};
|
|
4351
4353
|
Object.defineProperties(ft, ei);
|
|
4352
|
-
var
|
|
4354
|
+
var Mr = function(r) {
|
|
4353
4355
|
function t() {
|
|
4354
4356
|
r.apply(this, arguments);
|
|
4355
4357
|
}
|
|
@@ -4369,7 +4371,7 @@ var Tr = function(r) {
|
|
|
4369
4371
|
}, t.prototype.safeHCoordinateIntersection = function(n, i, o, s) {
|
|
4370
4372
|
var a = null;
|
|
4371
4373
|
try {
|
|
4372
|
-
a =
|
|
4374
|
+
a = ke.intersection(n, i, o, s);
|
|
4373
4375
|
} catch (u) {
|
|
4374
4376
|
if (u instanceof Ai)
|
|
4375
4377
|
a = t.nearestEndpoint(n, i, o, s);
|
|
@@ -4386,7 +4388,7 @@ var Tr = function(r) {
|
|
|
4386
4388
|
return Math.abs(i) < u && (a = i, u = Math.abs(i)), Math.abs(o) < u && (a = o, u = Math.abs(o)), Math.abs(s) < u && (a = s), a;
|
|
4387
4389
|
}, t.prototype.checkDD = function(n, i, o, s, a) {
|
|
4388
4390
|
var u = se.intersection(n, i, o, s), l = this.isInSegmentEnvelopes(u);
|
|
4389
|
-
|
|
4391
|
+
Gt.out.println("DD in env = " + l + " --------------------- " + u), a.distance(u) > 1e-4 && Gt.out.println("Distance = " + a.distance(u));
|
|
4390
4392
|
}, t.prototype.intersectionWithNormalization = function(n, i, o, s) {
|
|
4391
4393
|
var a = new v(n), u = new v(i), l = new v(o), c = new v(s), f = new v();
|
|
4392
4394
|
this.normalizeToEnvCentre(a, u, l, c, f);
|
|
@@ -4519,7 +4521,7 @@ nn.prototype.getClass = function() {
|
|
|
4519
4521
|
return nn;
|
|
4520
4522
|
};
|
|
4521
4523
|
nn.locatePointInRing = function() {
|
|
4522
|
-
if (arguments[0] instanceof v &&
|
|
4524
|
+
if (arguments[0] instanceof v && G(arguments[1], K)) {
|
|
4523
4525
|
for (var t = arguments[0], e = arguments[1], n = new nn(t), i = new v(), o = new v(), s = 1; s < e.size(); s++)
|
|
4524
4526
|
if (e.getCoordinate(s, i), e.getCoordinate(s - 1, o), n.countSegment(i, o), n.isOnSegment())
|
|
4525
4527
|
return n.getLocation();
|
|
@@ -4554,7 +4556,7 @@ P.signedArea = function() {
|
|
|
4554
4556
|
e += o * (a - s);
|
|
4555
4557
|
}
|
|
4556
4558
|
return e / 2;
|
|
4557
|
-
} else if (
|
|
4559
|
+
} else if (G(arguments[0], K)) {
|
|
4558
4560
|
var u = arguments[0], l = u.size();
|
|
4559
4561
|
if (l < 3)
|
|
4560
4562
|
return 0;
|
|
@@ -4658,7 +4660,7 @@ P.distancePointLine = function() {
|
|
|
4658
4660
|
}
|
|
4659
4661
|
};
|
|
4660
4662
|
P.isOnLine = function(t, e) {
|
|
4661
|
-
for (var n = new
|
|
4663
|
+
for (var n = new Mr(), i = 1; i < e.length; i++) {
|
|
4662
4664
|
var o = e[i - 1], s = e[i];
|
|
4663
4665
|
if (n.computeIntersection(t, o, s), n.hasIntersection())
|
|
4664
4666
|
return !0;
|
|
@@ -4694,56 +4696,56 @@ Hn.prototype.interfaces_ = function() {
|
|
|
4694
4696
|
Hn.prototype.getClass = function() {
|
|
4695
4697
|
return Hn;
|
|
4696
4698
|
};
|
|
4697
|
-
var
|
|
4699
|
+
var k = function() {
|
|
4698
4700
|
var t = arguments[0];
|
|
4699
4701
|
this._envelope = null, this._factory = null, this._SRID = null, this._userData = null, this._factory = t, this._SRID = t.getSRID();
|
|
4700
|
-
},
|
|
4701
|
-
|
|
4702
|
-
return this.getSortIndex() ===
|
|
4702
|
+
}, Mn = { serialVersionUID: { configurable: !0 }, SORTINDEX_POINT: { configurable: !0 }, SORTINDEX_MULTIPOINT: { configurable: !0 }, SORTINDEX_LINESTRING: { configurable: !0 }, SORTINDEX_LINEARRING: { configurable: !0 }, SORTINDEX_MULTILINESTRING: { configurable: !0 }, SORTINDEX_POLYGON: { configurable: !0 }, SORTINDEX_MULTIPOLYGON: { configurable: !0 }, SORTINDEX_GEOMETRYCOLLECTION: { configurable: !0 }, geometryChangedFilter: { configurable: !0 } };
|
|
4703
|
+
k.prototype.isGeometryCollection = function() {
|
|
4704
|
+
return this.getSortIndex() === k.SORTINDEX_GEOMETRYCOLLECTION;
|
|
4703
4705
|
};
|
|
4704
|
-
|
|
4706
|
+
k.prototype.getFactory = function() {
|
|
4705
4707
|
return this._factory;
|
|
4706
4708
|
};
|
|
4707
|
-
|
|
4709
|
+
k.prototype.getGeometryN = function(t) {
|
|
4708
4710
|
return this;
|
|
4709
4711
|
};
|
|
4710
|
-
|
|
4712
|
+
k.prototype.getArea = function() {
|
|
4711
4713
|
return 0;
|
|
4712
4714
|
};
|
|
4713
|
-
|
|
4715
|
+
k.prototype.isRectangle = function() {
|
|
4714
4716
|
return !1;
|
|
4715
4717
|
};
|
|
4716
|
-
|
|
4717
|
-
if (arguments[0] instanceof
|
|
4718
|
+
k.prototype.equals = function() {
|
|
4719
|
+
if (arguments[0] instanceof k) {
|
|
4718
4720
|
var t = arguments[0];
|
|
4719
4721
|
return t === null ? !1 : this.equalsTopo(t);
|
|
4720
4722
|
} else if (arguments[0] instanceof Object) {
|
|
4721
4723
|
var e = arguments[0];
|
|
4722
|
-
if (!(e instanceof
|
|
4724
|
+
if (!(e instanceof k))
|
|
4723
4725
|
return !1;
|
|
4724
4726
|
var n = e;
|
|
4725
4727
|
return this.equalsExact(n);
|
|
4726
4728
|
}
|
|
4727
4729
|
};
|
|
4728
|
-
|
|
4730
|
+
k.prototype.equalsExact = function(t) {
|
|
4729
4731
|
return this === t || this.equalsExact(t, 0);
|
|
4730
4732
|
};
|
|
4731
|
-
|
|
4732
|
-
this.apply(
|
|
4733
|
+
k.prototype.geometryChanged = function() {
|
|
4734
|
+
this.apply(k.geometryChangedFilter);
|
|
4733
4735
|
};
|
|
4734
|
-
|
|
4736
|
+
k.prototype.geometryChangedAction = function() {
|
|
4735
4737
|
this._envelope = null;
|
|
4736
4738
|
};
|
|
4737
|
-
|
|
4739
|
+
k.prototype.equalsNorm = function(t) {
|
|
4738
4740
|
return t === null ? !1 : this.norm().equalsExact(t.norm());
|
|
4739
4741
|
};
|
|
4740
|
-
|
|
4742
|
+
k.prototype.getLength = function() {
|
|
4741
4743
|
return 0;
|
|
4742
4744
|
};
|
|
4743
|
-
|
|
4745
|
+
k.prototype.getNumGeometries = function() {
|
|
4744
4746
|
return 1;
|
|
4745
4747
|
};
|
|
4746
|
-
|
|
4748
|
+
k.prototype.compareTo = function() {
|
|
4747
4749
|
if (arguments.length === 1) {
|
|
4748
4750
|
var t = arguments[0], e = t;
|
|
4749
4751
|
return this.getSortIndex() !== e.getSortIndex() ? this.getSortIndex() - e.getSortIndex() : this.isEmpty() && e.isEmpty() ? 0 : this.isEmpty() ? -1 : e.isEmpty() ? 1 : this.compareToSameClass(t);
|
|
@@ -4752,39 +4754,39 @@ G.prototype.compareTo = function() {
|
|
|
4752
4754
|
return this.getSortIndex() !== n.getSortIndex() ? this.getSortIndex() - n.getSortIndex() : this.isEmpty() && n.isEmpty() ? 0 : this.isEmpty() ? -1 : n.isEmpty() ? 1 : this.compareToSameClass(n, i);
|
|
4753
4755
|
}
|
|
4754
4756
|
};
|
|
4755
|
-
|
|
4757
|
+
k.prototype.getUserData = function() {
|
|
4756
4758
|
return this._userData;
|
|
4757
4759
|
};
|
|
4758
|
-
|
|
4760
|
+
k.prototype.getSRID = function() {
|
|
4759
4761
|
return this._SRID;
|
|
4760
4762
|
};
|
|
4761
|
-
|
|
4763
|
+
k.prototype.getEnvelope = function() {
|
|
4762
4764
|
return this.getFactory().toGeometry(this.getEnvelopeInternal());
|
|
4763
4765
|
};
|
|
4764
|
-
|
|
4765
|
-
if (t.getSortIndex() ===
|
|
4766
|
+
k.prototype.checkNotGeometryCollection = function(t) {
|
|
4767
|
+
if (t.getSortIndex() === k.SORTINDEX_GEOMETRYCOLLECTION)
|
|
4766
4768
|
throw new lt("This method does not support GeometryCollection arguments");
|
|
4767
4769
|
};
|
|
4768
|
-
|
|
4770
|
+
k.prototype.equal = function(t, e, n) {
|
|
4769
4771
|
return n === 0 ? t.equals(e) : t.distance(e) <= n;
|
|
4770
4772
|
};
|
|
4771
|
-
|
|
4773
|
+
k.prototype.norm = function() {
|
|
4772
4774
|
var t = this.copy();
|
|
4773
4775
|
return t.normalize(), t;
|
|
4774
4776
|
};
|
|
4775
|
-
|
|
4777
|
+
k.prototype.getPrecisionModel = function() {
|
|
4776
4778
|
return this._factory.getPrecisionModel();
|
|
4777
4779
|
};
|
|
4778
|
-
|
|
4780
|
+
k.prototype.getEnvelopeInternal = function() {
|
|
4779
4781
|
return this._envelope === null && (this._envelope = this.computeEnvelopeInternal()), new T(this._envelope);
|
|
4780
4782
|
};
|
|
4781
|
-
|
|
4783
|
+
k.prototype.setSRID = function(t) {
|
|
4782
4784
|
this._SRID = t;
|
|
4783
4785
|
};
|
|
4784
|
-
|
|
4786
|
+
k.prototype.setUserData = function(t) {
|
|
4785
4787
|
this._userData = t;
|
|
4786
4788
|
};
|
|
4787
|
-
|
|
4789
|
+
k.prototype.compare = function(t, e) {
|
|
4788
4790
|
for (var n = t.iterator(), i = e.iterator(); n.hasNext() && i.hasNext(); ) {
|
|
4789
4791
|
var o = n.next(), s = i.next(), a = o.compareTo(s);
|
|
4790
4792
|
if (a !== 0)
|
|
@@ -4792,61 +4794,61 @@ G.prototype.compare = function(t, e) {
|
|
|
4792
4794
|
}
|
|
4793
4795
|
return n.hasNext() ? 1 : i.hasNext() ? -1 : 0;
|
|
4794
4796
|
};
|
|
4795
|
-
|
|
4797
|
+
k.prototype.hashCode = function() {
|
|
4796
4798
|
return this.getEnvelopeInternal().hashCode();
|
|
4797
4799
|
};
|
|
4798
|
-
|
|
4799
|
-
return this.getSortIndex() ===
|
|
4800
|
+
k.prototype.isGeometryCollectionOrDerived = function() {
|
|
4801
|
+
return this.getSortIndex() === k.SORTINDEX_GEOMETRYCOLLECTION || this.getSortIndex() === k.SORTINDEX_MULTIPOINT || this.getSortIndex() === k.SORTINDEX_MULTILINESTRING || this.getSortIndex() === k.SORTINDEX_MULTIPOLYGON;
|
|
4800
4802
|
};
|
|
4801
|
-
|
|
4803
|
+
k.prototype.interfaces_ = function() {
|
|
4802
4804
|
return [Ho, Me, Ae];
|
|
4803
4805
|
};
|
|
4804
|
-
|
|
4805
|
-
return
|
|
4806
|
+
k.prototype.getClass = function() {
|
|
4807
|
+
return k;
|
|
4806
4808
|
};
|
|
4807
|
-
|
|
4809
|
+
k.hasNonEmptyElements = function(t) {
|
|
4808
4810
|
for (var e = 0; e < t.length; e++)
|
|
4809
4811
|
if (!t[e].isEmpty())
|
|
4810
4812
|
return !0;
|
|
4811
4813
|
return !1;
|
|
4812
4814
|
};
|
|
4813
|
-
|
|
4815
|
+
k.hasNullElements = function(t) {
|
|
4814
4816
|
for (var e = 0; e < t.length; e++)
|
|
4815
4817
|
if (t[e] === null)
|
|
4816
4818
|
return !0;
|
|
4817
4819
|
return !1;
|
|
4818
4820
|
};
|
|
4819
|
-
|
|
4821
|
+
Mn.serialVersionUID.get = function() {
|
|
4820
4822
|
return 8763622679187377e3;
|
|
4821
4823
|
};
|
|
4822
|
-
|
|
4824
|
+
Mn.SORTINDEX_POINT.get = function() {
|
|
4823
4825
|
return 0;
|
|
4824
4826
|
};
|
|
4825
|
-
|
|
4827
|
+
Mn.SORTINDEX_MULTIPOINT.get = function() {
|
|
4826
4828
|
return 1;
|
|
4827
4829
|
};
|
|
4828
|
-
|
|
4830
|
+
Mn.SORTINDEX_LINESTRING.get = function() {
|
|
4829
4831
|
return 2;
|
|
4830
4832
|
};
|
|
4831
|
-
|
|
4833
|
+
Mn.SORTINDEX_LINEARRING.get = function() {
|
|
4832
4834
|
return 3;
|
|
4833
4835
|
};
|
|
4834
|
-
|
|
4836
|
+
Mn.SORTINDEX_MULTILINESTRING.get = function() {
|
|
4835
4837
|
return 4;
|
|
4836
4838
|
};
|
|
4837
|
-
|
|
4839
|
+
Mn.SORTINDEX_POLYGON.get = function() {
|
|
4838
4840
|
return 5;
|
|
4839
4841
|
};
|
|
4840
|
-
|
|
4842
|
+
Mn.SORTINDEX_MULTIPOLYGON.get = function() {
|
|
4841
4843
|
return 6;
|
|
4842
4844
|
};
|
|
4843
|
-
|
|
4845
|
+
Mn.SORTINDEX_GEOMETRYCOLLECTION.get = function() {
|
|
4844
4846
|
return 7;
|
|
4845
4847
|
};
|
|
4846
|
-
|
|
4848
|
+
Mn.geometryChangedFilter.get = function() {
|
|
4847
4849
|
return Ts;
|
|
4848
4850
|
};
|
|
4849
|
-
Object.defineProperties(
|
|
4851
|
+
Object.defineProperties(k, Mn);
|
|
4850
4852
|
var Ts = function() {
|
|
4851
4853
|
};
|
|
4852
4854
|
Ts.interfaces_ = function() {
|
|
@@ -4855,15 +4857,15 @@ Ts.interfaces_ = function() {
|
|
|
4855
4857
|
Ts.filter = function(t) {
|
|
4856
4858
|
t.geometryChangedAction();
|
|
4857
4859
|
};
|
|
4858
|
-
var
|
|
4860
|
+
var Sn = function() {
|
|
4859
4861
|
};
|
|
4860
|
-
|
|
4862
|
+
Sn.prototype.filter = function(t) {
|
|
4861
4863
|
};
|
|
4862
|
-
|
|
4864
|
+
Sn.prototype.interfaces_ = function() {
|
|
4863
4865
|
return [];
|
|
4864
4866
|
};
|
|
4865
|
-
|
|
4866
|
-
return
|
|
4867
|
+
Sn.prototype.getClass = function() {
|
|
4868
|
+
return Sn;
|
|
4867
4869
|
};
|
|
4868
4870
|
var Re = function() {
|
|
4869
4871
|
}, Jn = { Mod2BoundaryNodeRule: { configurable: !0 }, EndPointBoundaryNodeRule: { configurable: !0 }, MultiValentEndPointBoundaryNodeRule: { configurable: !0 }, MonoValentEndPointBoundaryNodeRule: { configurable: !0 }, MOD2_BOUNDARY_RULE: { configurable: !0 }, ENDPOINT_BOUNDARY_RULE: { configurable: !0 }, MULTIVALENT_ENDPOINT_BOUNDARY_RULE: { configurable: !0 }, MONOVALENT_ENDPOINT_BOUNDARY_RULE: { configurable: !0 }, OGC_SFS_BOUNDARY_RULE: { configurable: !0 } };
|
|
@@ -4976,7 +4978,7 @@ Fi.prototype.next = function() {
|
|
|
4976
4978
|
};
|
|
4977
4979
|
Fi.prototype.remove = function() {
|
|
4978
4980
|
};
|
|
4979
|
-
var
|
|
4981
|
+
var Ge = function(r) {
|
|
4980
4982
|
function t() {
|
|
4981
4983
|
r.apply(this, arguments);
|
|
4982
4984
|
}
|
|
@@ -5009,7 +5011,7 @@ var L = function(r) {
|
|
|
5009
5011
|
var o = this.array_[n];
|
|
5010
5012
|
return this.array_[n] = i, o;
|
|
5011
5013
|
}, t.prototype.iterator = function() {
|
|
5012
|
-
return new
|
|
5014
|
+
return new yc(this);
|
|
5013
5015
|
}, t.prototype.get = function(n) {
|
|
5014
5016
|
if (n < 0 || n >= this.size())
|
|
5015
5017
|
throw new Ms();
|
|
@@ -5030,7 +5032,7 @@ var L = function(r) {
|
|
|
5030
5032
|
}
|
|
5031
5033
|
return o;
|
|
5032
5034
|
}, t;
|
|
5033
|
-
}(
|
|
5035
|
+
}(Ge), yc = function(r) {
|
|
5034
5036
|
function t(e) {
|
|
5035
5037
|
r.call(this), this.arrayList_ = e, this.position_ = 0;
|
|
5036
5038
|
}
|
|
@@ -5174,7 +5176,7 @@ W.scroll = function(t, e) {
|
|
|
5174
5176
|
if (n < 0)
|
|
5175
5177
|
return null;
|
|
5176
5178
|
var i = new Array(t.length).fill(null);
|
|
5177
|
-
|
|
5179
|
+
Gt.arraycopy(t, n, i, 0, t.length - n), Gt.arraycopy(t, 0, i, t.length - n, n), Gt.arraycopy(i, 0, t, 0, t.length);
|
|
5178
5180
|
};
|
|
5179
5181
|
W.equals = function() {
|
|
5180
5182
|
if (arguments.length === 2) {
|
|
@@ -5359,7 +5361,7 @@ ri.prototype.values = function() {
|
|
|
5359
5361
|
};
|
|
5360
5362
|
ri.prototype.entrySet = function() {
|
|
5361
5363
|
};
|
|
5362
|
-
var
|
|
5364
|
+
var mc = function(r) {
|
|
5363
5365
|
function t() {
|
|
5364
5366
|
r.apply(this, arguments);
|
|
5365
5367
|
}
|
|
@@ -5403,9 +5405,9 @@ var As = function(r) {
|
|
|
5403
5405
|
i.push(n.array_[o]);
|
|
5404
5406
|
return i;
|
|
5405
5407
|
}, t.prototype.iterator = function() {
|
|
5406
|
-
return new
|
|
5408
|
+
return new _c(this);
|
|
5407
5409
|
}, t;
|
|
5408
|
-
}(Ko),
|
|
5410
|
+
}(Ko), _c = function(r) {
|
|
5409
5411
|
function t(e) {
|
|
5410
5412
|
r.call(this), this.hashSet_ = e, this.position_ = 0;
|
|
5411
5413
|
}
|
|
@@ -5425,7 +5427,7 @@ function xa(r) {
|
|
|
5425
5427
|
function ot(r) {
|
|
5426
5428
|
return r === null ? null : r.parent;
|
|
5427
5429
|
}
|
|
5428
|
-
function
|
|
5430
|
+
function kn(r, t) {
|
|
5429
5431
|
r !== null && (r.color = t);
|
|
5430
5432
|
}
|
|
5431
5433
|
function hs(r) {
|
|
@@ -5437,7 +5439,7 @@ function Na(r) {
|
|
|
5437
5439
|
function Yt() {
|
|
5438
5440
|
this.root_ = null, this.size_ = 0;
|
|
5439
5441
|
}
|
|
5440
|
-
Yt.prototype = new
|
|
5442
|
+
Yt.prototype = new mc();
|
|
5441
5443
|
Yt.prototype.get = function(r) {
|
|
5442
5444
|
for (var t = this.root_; t !== null; ) {
|
|
5443
5445
|
var e = r.compareTo(t.key);
|
|
@@ -5498,10 +5500,10 @@ Yt.prototype.fixAfterInsertion = function(r) {
|
|
|
5498
5500
|
for (r.color = dr; r != null && r !== this.root_ && r.parent.color === dr; )
|
|
5499
5501
|
if (ot(r) === hs(ot(ot(r)))) {
|
|
5500
5502
|
var e = Na(ot(ot(r)));
|
|
5501
|
-
xa(e) === dr ? (
|
|
5503
|
+
xa(e) === dr ? (kn(ot(r), Un), kn(e, Un), kn(ot(ot(r)), dr), r = ot(ot(r))) : (r === Na(ot(r)) && (r = ot(r), t.rotateLeft(r)), kn(ot(r), Un), kn(ot(ot(r)), dr), t.rotateRight(ot(ot(r))));
|
|
5502
5504
|
} else {
|
|
5503
5505
|
var n = hs(ot(ot(r)));
|
|
5504
|
-
xa(n) === dr ? (
|
|
5506
|
+
xa(n) === dr ? (kn(ot(r), Un), kn(n, Un), kn(ot(ot(r)), dr), r = ot(ot(r))) : (r === hs(ot(r)) && (r = ot(r), t.rotateRight(r)), kn(ot(r), Un), kn(ot(ot(r)), dr), t.rotateLeft(ot(ot(r))));
|
|
5505
5507
|
}
|
|
5506
5508
|
this.root_.color = Un;
|
|
5507
5509
|
};
|
|
@@ -5624,9 +5626,9 @@ Qo.prototype.hasNext = function() {
|
|
|
5624
5626
|
Qo.prototype.remove = function() {
|
|
5625
5627
|
throw new po();
|
|
5626
5628
|
};
|
|
5627
|
-
var
|
|
5629
|
+
var Er = function() {
|
|
5628
5630
|
};
|
|
5629
|
-
|
|
5631
|
+
Er.sort = function() {
|
|
5630
5632
|
var t = arguments[0], e, n, i, o;
|
|
5631
5633
|
if (arguments.length === 1)
|
|
5632
5634
|
o = function(a, u) {
|
|
@@ -5647,7 +5649,7 @@ _r.sort = function() {
|
|
|
5647
5649
|
}, n.sort(o), s = t.slice(0, arguments[1]).concat(n, t.slice(arguments[2], t.length)), t.splice(0, t.length), e = 0; e < s.length; e++)
|
|
5648
5650
|
t.push(s[e]);
|
|
5649
5651
|
};
|
|
5650
|
-
|
|
5652
|
+
Er.asList = function(t) {
|
|
5651
5653
|
for (var e = new L(), n = 0, i = t.length; n < i; n++)
|
|
5652
5654
|
e.add(t[n]);
|
|
5653
5655
|
return e;
|
|
@@ -5797,7 +5799,7 @@ var te = function(r) {
|
|
|
5797
5799
|
}, t.prototype.normalize = function() {
|
|
5798
5800
|
for (var i = this, o = 0; o < this._geometries.length; o++)
|
|
5799
5801
|
i._geometries[o].normalize();
|
|
5800
|
-
|
|
5802
|
+
Er.sort(this._geometries);
|
|
5801
5803
|
}, t.prototype.getCoordinate = function() {
|
|
5802
5804
|
return this.isEmpty() ? null : this._geometries[0].getCoordinate();
|
|
5803
5805
|
}, t.prototype.getBoundaryDimension = function() {
|
|
@@ -5825,7 +5827,7 @@ var te = function(r) {
|
|
|
5825
5827
|
}, t.prototype.compareToSameClass = function() {
|
|
5826
5828
|
var i = this;
|
|
5827
5829
|
if (arguments.length === 1) {
|
|
5828
|
-
var o = arguments[0], s = new sn(
|
|
5830
|
+
var o = arguments[0], s = new sn(Er.asList(this._geometries)), a = new sn(Er.asList(o._geometries));
|
|
5829
5831
|
return this.compare(s, a);
|
|
5830
5832
|
} else if (arguments.length === 2) {
|
|
5831
5833
|
for (var u = arguments[0], l = arguments[1], c = u, f = this.getNumGeometries(), h = c.getNumGeometries(), g = 0; g < f && g < h; ) {
|
|
@@ -5838,22 +5840,22 @@ var te = function(r) {
|
|
|
5838
5840
|
}
|
|
5839
5841
|
}, t.prototype.apply = function() {
|
|
5840
5842
|
var i = this;
|
|
5841
|
-
if (
|
|
5843
|
+
if (G(arguments[0], Sn))
|
|
5842
5844
|
for (var o = arguments[0], s = 0; s < this._geometries.length; s++)
|
|
5843
5845
|
i._geometries[s].apply(o);
|
|
5844
|
-
else if (
|
|
5846
|
+
else if (G(arguments[0], Ve)) {
|
|
5845
5847
|
var a = arguments[0];
|
|
5846
5848
|
if (this._geometries.length === 0)
|
|
5847
5849
|
return null;
|
|
5848
5850
|
for (var u = 0; u < this._geometries.length && (i._geometries[u].apply(a), !a.isDone()); u++)
|
|
5849
5851
|
;
|
|
5850
5852
|
a.isGeometryChanged() && this.geometryChanged();
|
|
5851
|
-
} else if (
|
|
5853
|
+
} else if (G(arguments[0], an)) {
|
|
5852
5854
|
var l = arguments[0];
|
|
5853
5855
|
l.filter(this);
|
|
5854
5856
|
for (var c = 0; c < this._geometries.length; c++)
|
|
5855
5857
|
i._geometries[c].apply(l);
|
|
5856
|
-
} else if (
|
|
5858
|
+
} else if (G(arguments[0], Hn)) {
|
|
5857
5859
|
var f = arguments[0];
|
|
5858
5860
|
f.filter(this);
|
|
5859
5861
|
for (var h = 0; h < this._geometries.length; h++)
|
|
@@ -5885,14 +5887,14 @@ var te = function(r) {
|
|
|
5885
5887
|
}, e.serialVersionUID.get = function() {
|
|
5886
5888
|
return -5694727726395021e3;
|
|
5887
5889
|
}, Object.defineProperties(t, e), t;
|
|
5888
|
-
}(
|
|
5890
|
+
}(k), Nr = function(r) {
|
|
5889
5891
|
function t() {
|
|
5890
5892
|
r.apply(this, arguments);
|
|
5891
5893
|
}
|
|
5892
5894
|
r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t;
|
|
5893
5895
|
var e = { serialVersionUID: { configurable: !0 } };
|
|
5894
5896
|
return t.prototype.getSortIndex = function() {
|
|
5895
|
-
return
|
|
5897
|
+
return k.SORTINDEX_MULTILINESTRING;
|
|
5896
5898
|
}, t.prototype.equalsExact = function() {
|
|
5897
5899
|
if (arguments.length === 2) {
|
|
5898
5900
|
var i = arguments[0], o = arguments[1];
|
|
@@ -5946,7 +5948,7 @@ Le.prototype.boundaryMultiLineString = function(t) {
|
|
|
5946
5948
|
return e.length === 1 ? this._geomFact.createPoint(e[0]) : this._geomFact.createMultiPointFromCoords(e);
|
|
5947
5949
|
};
|
|
5948
5950
|
Le.prototype.getBoundary = function() {
|
|
5949
|
-
return this._geom instanceof pt ? this.boundaryLineString(this._geom) : this._geom instanceof
|
|
5951
|
+
return this._geom instanceof pt ? this.boundaryLineString(this._geom) : this._geom instanceof Nr ? this.boundaryMultiLineString(this._geom) : this._geom.getBoundary();
|
|
5950
5952
|
};
|
|
5951
5953
|
Le.prototype.boundaryLineString = function(t) {
|
|
5952
5954
|
if (this._geom.isEmpty())
|
|
@@ -6001,17 +6003,17 @@ Fo.prototype.interfaces_ = function() {
|
|
|
6001
6003
|
Fo.prototype.getClass = function() {
|
|
6002
6004
|
return Fo;
|
|
6003
6005
|
};
|
|
6004
|
-
function
|
|
6006
|
+
function Ec() {
|
|
6005
6007
|
}
|
|
6006
|
-
function
|
|
6008
|
+
function Ic() {
|
|
6007
6009
|
}
|
|
6008
|
-
var
|
|
6010
|
+
var Cc = function() {
|
|
6009
6011
|
};
|
|
6010
|
-
function
|
|
6012
|
+
function xc() {
|
|
6011
6013
|
}
|
|
6012
|
-
function
|
|
6014
|
+
function Nc() {
|
|
6013
6015
|
}
|
|
6014
|
-
function
|
|
6016
|
+
function Sc() {
|
|
6015
6017
|
}
|
|
6016
6018
|
var be = function() {
|
|
6017
6019
|
}, Fs = { NEWLINE: { configurable: !0 }, SIMPLE_ORDINATE_FORMAT: { configurable: !0 } };
|
|
@@ -6028,16 +6030,16 @@ be.chars = function(t, e) {
|
|
|
6028
6030
|
};
|
|
6029
6031
|
be.getStackTrace = function() {
|
|
6030
6032
|
if (arguments.length === 1) {
|
|
6031
|
-
var t = arguments[0], e = new
|
|
6033
|
+
var t = arguments[0], e = new xc(), n = new Ec();
|
|
6032
6034
|
return t.printStackTrace(n), e.toString();
|
|
6033
6035
|
} else if (arguments.length === 2) {
|
|
6034
6036
|
var i = arguments[0], o = arguments[1], s = "";
|
|
6035
|
-
new
|
|
6036
|
-
for (var a = new
|
|
6037
|
+
new Ic(be.getStackTrace(i));
|
|
6038
|
+
for (var a = new Sc(), u = 0; u < o; u++)
|
|
6037
6039
|
try {
|
|
6038
6040
|
s += a.readLine() + be.NEWLINE;
|
|
6039
6041
|
} catch (l) {
|
|
6040
|
-
if (l instanceof
|
|
6042
|
+
if (l instanceof Nc)
|
|
6041
6043
|
X.shouldNeverReachHere();
|
|
6042
6044
|
else
|
|
6043
6045
|
throw l;
|
|
@@ -6066,10 +6068,10 @@ be.spaces = function(t) {
|
|
|
6066
6068
|
return be.chars(" ", t);
|
|
6067
6069
|
};
|
|
6068
6070
|
Fs.NEWLINE.get = function() {
|
|
6069
|
-
return
|
|
6071
|
+
return Gt.getProperty("line.separator");
|
|
6070
6072
|
};
|
|
6071
6073
|
Fs.SIMPLE_ORDINATE_FORMAT.get = function() {
|
|
6072
|
-
return new
|
|
6074
|
+
return new Cc();
|
|
6073
6075
|
};
|
|
6074
6076
|
Object.defineProperties(be, Fs);
|
|
6075
6077
|
var _t = function() {
|
|
@@ -6224,20 +6226,20 @@ var pt = function(r) {
|
|
|
6224
6226
|
}
|
|
6225
6227
|
}, t.prototype.apply = function() {
|
|
6226
6228
|
var i = this;
|
|
6227
|
-
if (
|
|
6229
|
+
if (G(arguments[0], Sn))
|
|
6228
6230
|
for (var o = arguments[0], s = 0; s < this._points.size(); s++)
|
|
6229
6231
|
o.filter(i._points.getCoordinate(s));
|
|
6230
|
-
else if (
|
|
6232
|
+
else if (G(arguments[0], Ve)) {
|
|
6231
6233
|
var a = arguments[0];
|
|
6232
6234
|
if (this._points.size() === 0)
|
|
6233
6235
|
return null;
|
|
6234
6236
|
for (var u = 0; u < this._points.size() && (a.filter(i._points, u), !a.isDone()); u++)
|
|
6235
6237
|
;
|
|
6236
6238
|
a.isGeometryChanged() && this.geometryChanged();
|
|
6237
|
-
} else if (
|
|
6239
|
+
} else if (G(arguments[0], an)) {
|
|
6238
6240
|
var l = arguments[0];
|
|
6239
6241
|
l.filter(this);
|
|
6240
|
-
} else if (
|
|
6242
|
+
} else if (G(arguments[0], Hn)) {
|
|
6241
6243
|
var c = arguments[0];
|
|
6242
6244
|
c.filter(this);
|
|
6243
6245
|
}
|
|
@@ -6278,7 +6280,7 @@ var pt = function(r) {
|
|
|
6278
6280
|
}, e.serialVersionUID.get = function() {
|
|
6279
6281
|
return 3110669828065365500;
|
|
6280
6282
|
}, Object.defineProperties(t, e), t;
|
|
6281
|
-
}(
|
|
6283
|
+
}(k), to = function() {
|
|
6282
6284
|
};
|
|
6283
6285
|
to.prototype.interfaces_ = function() {
|
|
6284
6286
|
return [];
|
|
@@ -6331,20 +6333,20 @@ var ge = function(r) {
|
|
|
6331
6333
|
return a.compare(this._coordinates, u._coordinates);
|
|
6332
6334
|
}
|
|
6333
6335
|
}, t.prototype.apply = function() {
|
|
6334
|
-
if (
|
|
6336
|
+
if (G(arguments[0], Sn)) {
|
|
6335
6337
|
var i = arguments[0];
|
|
6336
6338
|
if (this.isEmpty())
|
|
6337
6339
|
return null;
|
|
6338
6340
|
i.filter(this.getCoordinate());
|
|
6339
|
-
} else if (
|
|
6341
|
+
} else if (G(arguments[0], Ve)) {
|
|
6340
6342
|
var o = arguments[0];
|
|
6341
6343
|
if (this.isEmpty())
|
|
6342
6344
|
return null;
|
|
6343
6345
|
o.filter(this._coordinates, 0), o.isGeometryChanged() && this.geometryChanged();
|
|
6344
|
-
} else if (
|
|
6346
|
+
} else if (G(arguments[0], an)) {
|
|
6345
6347
|
var s = arguments[0];
|
|
6346
6348
|
s.filter(this);
|
|
6347
|
-
} else if (
|
|
6349
|
+
} else if (G(arguments[0], Hn)) {
|
|
6348
6350
|
var a = arguments[0];
|
|
6349
6351
|
a.filter(this);
|
|
6350
6352
|
}
|
|
@@ -6376,7 +6378,7 @@ var ge = function(r) {
|
|
|
6376
6378
|
}, e.serialVersionUID.get = function() {
|
|
6377
6379
|
return 4902022702746615e3;
|
|
6378
6380
|
}, Object.defineProperties(t, e), t;
|
|
6379
|
-
}(
|
|
6381
|
+
}(k), ir = function() {
|
|
6380
6382
|
};
|
|
6381
6383
|
ir.prototype.interfaces_ = function() {
|
|
6382
6384
|
return [];
|
|
@@ -6453,15 +6455,15 @@ var Pt = function(r) {
|
|
|
6453
6455
|
this.normalize(this._shell, !0);
|
|
6454
6456
|
for (var o = 0; o < this._holes.length; o++)
|
|
6455
6457
|
i.normalize(i._holes[o], !1);
|
|
6456
|
-
|
|
6458
|
+
Er.sort(this._holes);
|
|
6457
6459
|
} else if (arguments.length === 2) {
|
|
6458
6460
|
var s = arguments[0], a = arguments[1];
|
|
6459
6461
|
if (s.isEmpty())
|
|
6460
6462
|
return null;
|
|
6461
6463
|
var u = new Array(s.getCoordinates().length - 1).fill(null);
|
|
6462
|
-
|
|
6464
|
+
Gt.arraycopy(s.getCoordinates(), 0, u, 0, u.length);
|
|
6463
6465
|
var l = W.minCoordinate(s.getCoordinates());
|
|
6464
|
-
W.scroll(u, l),
|
|
6466
|
+
W.scroll(u, l), Gt.arraycopy(u, 0, s.getCoordinates(), 0, u.length), s.getCoordinates()[u.length] = u[0], P.isCCW(s.getCoordinates()) === a && W.reverse(s.getCoordinates());
|
|
6465
6467
|
}
|
|
6466
6468
|
}, t.prototype.getCoordinate = function() {
|
|
6467
6469
|
return this._shell.getCoordinate();
|
|
@@ -6508,18 +6510,18 @@ var Pt = function(r) {
|
|
|
6508
6510
|
}
|
|
6509
6511
|
}, t.prototype.apply = function(i) {
|
|
6510
6512
|
var o = this;
|
|
6511
|
-
if (
|
|
6513
|
+
if (G(i, Sn)) {
|
|
6512
6514
|
this._shell.apply(i);
|
|
6513
6515
|
for (var s = 0; s < this._holes.length; s++)
|
|
6514
6516
|
o._holes[s].apply(i);
|
|
6515
|
-
} else if (
|
|
6517
|
+
} else if (G(i, Ve)) {
|
|
6516
6518
|
if (this._shell.apply(i), !i.isDone())
|
|
6517
6519
|
for (var a = 0; a < this._holes.length && (o._holes[a].apply(i), !i.isDone()); a++)
|
|
6518
6520
|
;
|
|
6519
6521
|
i.isGeometryChanged() && this.geometryChanged();
|
|
6520
|
-
} else if (
|
|
6522
|
+
} else if (G(i, an))
|
|
6521
6523
|
i.filter(this);
|
|
6522
|
-
else if (
|
|
6524
|
+
else if (G(i, Hn)) {
|
|
6523
6525
|
i.filter(this), this._shell.apply(i);
|
|
6524
6526
|
for (var u = 0; u < this._holes.length; u++)
|
|
6525
6527
|
o._holes[u].apply(i);
|
|
@@ -6558,14 +6560,14 @@ var Pt = function(r) {
|
|
|
6558
6560
|
}, e.serialVersionUID.get = function() {
|
|
6559
6561
|
return -3494792200821764600;
|
|
6560
6562
|
}, Object.defineProperties(t, e), t;
|
|
6561
|
-
}(
|
|
6563
|
+
}(k), yi = function(r) {
|
|
6562
6564
|
function t() {
|
|
6563
6565
|
r.apply(this, arguments);
|
|
6564
6566
|
}
|
|
6565
6567
|
r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t;
|
|
6566
6568
|
var e = { serialVersionUID: { configurable: !0 } };
|
|
6567
6569
|
return t.prototype.getSortIndex = function() {
|
|
6568
|
-
return
|
|
6570
|
+
return k.SORTINDEX_MULTIPOINT;
|
|
6569
6571
|
}, t.prototype.isValid = function() {
|
|
6570
6572
|
return !0;
|
|
6571
6573
|
}, t.prototype.equalsExact = function() {
|
|
@@ -6599,14 +6601,14 @@ var Pt = function(r) {
|
|
|
6599
6601
|
}, e.serialVersionUID.get = function() {
|
|
6600
6602
|
return -8048474874175356e3;
|
|
6601
6603
|
}, Object.defineProperties(t, e), t;
|
|
6602
|
-
}(te),
|
|
6604
|
+
}(te), wn = function(r) {
|
|
6603
6605
|
function t(n, i) {
|
|
6604
6606
|
n instanceof v && i instanceof H && (n = i.getCoordinateSequenceFactory().create(n)), r.call(this, n, i), this.validateConstruction();
|
|
6605
6607
|
}
|
|
6606
6608
|
r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t;
|
|
6607
6609
|
var e = { MINIMUM_VALID_SIZE: { configurable: !0 }, serialVersionUID: { configurable: !0 } };
|
|
6608
6610
|
return t.prototype.getSortIndex = function() {
|
|
6609
|
-
return
|
|
6611
|
+
return k.SORTINDEX_LINEARRING;
|
|
6610
6612
|
}, t.prototype.getBoundaryDimension = function() {
|
|
6611
6613
|
return Q.FALSE;
|
|
6612
6614
|
}, t.prototype.isClosed = function() {
|
|
@@ -6634,14 +6636,14 @@ var Pt = function(r) {
|
|
|
6634
6636
|
}, e.serialVersionUID.get = function() {
|
|
6635
6637
|
return -4261142084085851600;
|
|
6636
6638
|
}, Object.defineProperties(t, e), t;
|
|
6637
|
-
}(pt),
|
|
6639
|
+
}(pt), xn = function(r) {
|
|
6638
6640
|
function t() {
|
|
6639
6641
|
r.apply(this, arguments);
|
|
6640
6642
|
}
|
|
6641
6643
|
r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t;
|
|
6642
6644
|
var e = { serialVersionUID: { configurable: !0 } };
|
|
6643
6645
|
return t.prototype.getSortIndex = function() {
|
|
6644
|
-
return
|
|
6646
|
+
return k.SORTINDEX_MULTIPOLYGON;
|
|
6645
6647
|
}, t.prototype.equalsExact = function() {
|
|
6646
6648
|
if (arguments.length === 2) {
|
|
6647
6649
|
var i = arguments[0], o = arguments[1];
|
|
@@ -6698,7 +6700,7 @@ Oe.prototype.editGeometryCollection = function(t, e) {
|
|
|
6698
6700
|
var a = n.edit(i.getGeometryN(s), e);
|
|
6699
6701
|
a === null || a.isEmpty() || o.add(a);
|
|
6700
6702
|
}
|
|
6701
|
-
return i.getClass() === yi ? this._factory.createMultiPoint(o.toArray([])) : i.getClass() ===
|
|
6703
|
+
return i.getClass() === yi ? this._factory.createMultiPoint(o.toArray([])) : i.getClass() === Nr ? this._factory.createMultiLineString(o.toArray([])) : i.getClass() === xn ? this._factory.createMultiPolygon(o.toArray([])) : this._factory.createGeometryCollection(o.toArray([]));
|
|
6702
6704
|
};
|
|
6703
6705
|
Oe.prototype.editPolygon = function(t, e) {
|
|
6704
6706
|
var n = this, i = e.edit(t, this._factory);
|
|
@@ -6746,7 +6748,7 @@ var no = function() {
|
|
|
6746
6748
|
};
|
|
6747
6749
|
no.prototype.edit = function(t, e) {
|
|
6748
6750
|
var n = this.editCoordinates(t.getCoordinates(), t);
|
|
6749
|
-
return n === null ? t : t instanceof
|
|
6751
|
+
return n === null ? t : t instanceof wn ? e.createLinearRing(n) : t instanceof pt ? e.createLineString(n) : t instanceof ge ? n.length > 0 ? e.createPoint(n[0]) : e.createPoint() : t;
|
|
6750
6752
|
};
|
|
6751
6753
|
no.prototype.interfaces_ = function() {
|
|
6752
6754
|
return [Oe.GeometryEditorOperation];
|
|
@@ -6757,7 +6759,7 @@ no.prototype.getClass = function() {
|
|
|
6757
6759
|
var ro = function() {
|
|
6758
6760
|
};
|
|
6759
6761
|
ro.prototype.edit = function(t, e) {
|
|
6760
|
-
return t instanceof
|
|
6762
|
+
return t instanceof wn ? e.createLinearRing(this.edit(t.getCoordinateSequence(), t)) : t instanceof pt ? e.createLineString(this.edit(t.getCoordinateSequence(), t)) : t instanceof ge ? e.createPoint(this.edit(t.getCoordinateSequence(), t)) : t;
|
|
6761
6763
|
};
|
|
6762
6764
|
ro.prototype.interfaces_ = function() {
|
|
6763
6765
|
return [Oe.GeometryEditorOperation];
|
|
@@ -6775,7 +6777,7 @@ var yt = function() {
|
|
|
6775
6777
|
this._coordinates = new Array(e).fill(null);
|
|
6776
6778
|
for (var n = 0; n < e; n++)
|
|
6777
6779
|
t._coordinates[n] = new v();
|
|
6778
|
-
} else if (
|
|
6780
|
+
} else if (G(arguments[0], K)) {
|
|
6779
6781
|
var i = arguments[0];
|
|
6780
6782
|
if (i === null)
|
|
6781
6783
|
return this._coordinates = new Array(0).fill(null), null;
|
|
@@ -6884,17 +6886,17 @@ cu.serialVersionUID.get = function() {
|
|
|
6884
6886
|
return -915438501601840600;
|
|
6885
6887
|
};
|
|
6886
6888
|
Object.defineProperties(yt, cu);
|
|
6887
|
-
var
|
|
6889
|
+
var Ln = function() {
|
|
6888
6890
|
}, Bs = { serialVersionUID: { configurable: !0 }, instanceObject: { configurable: !0 } };
|
|
6889
|
-
|
|
6890
|
-
return
|
|
6891
|
+
Ln.prototype.readResolve = function() {
|
|
6892
|
+
return Ln.instance();
|
|
6891
6893
|
};
|
|
6892
|
-
|
|
6894
|
+
Ln.prototype.create = function() {
|
|
6893
6895
|
if (arguments.length === 1) {
|
|
6894
6896
|
if (arguments[0] instanceof Array) {
|
|
6895
6897
|
var t = arguments[0];
|
|
6896
6898
|
return new yt(t);
|
|
6897
|
-
} else if (
|
|
6899
|
+
} else if (G(arguments[0], K)) {
|
|
6898
6900
|
var e = arguments[0];
|
|
6899
6901
|
return new yt(e);
|
|
6900
6902
|
}
|
|
@@ -6903,22 +6905,22 @@ wn.prototype.create = function() {
|
|
|
6903
6905
|
return i > 3 && (i = 3), i < 2 ? new yt(n) : new yt(n, i);
|
|
6904
6906
|
}
|
|
6905
6907
|
};
|
|
6906
|
-
|
|
6908
|
+
Ln.prototype.interfaces_ = function() {
|
|
6907
6909
|
return [fi, Ae];
|
|
6908
6910
|
};
|
|
6909
|
-
|
|
6910
|
-
return
|
|
6911
|
+
Ln.prototype.getClass = function() {
|
|
6912
|
+
return Ln;
|
|
6911
6913
|
};
|
|
6912
|
-
|
|
6913
|
-
return
|
|
6914
|
+
Ln.instance = function() {
|
|
6915
|
+
return Ln.instanceObject;
|
|
6914
6916
|
};
|
|
6915
6917
|
Bs.serialVersionUID.get = function() {
|
|
6916
6918
|
return -4099577099607551500;
|
|
6917
6919
|
};
|
|
6918
6920
|
Bs.instanceObject.get = function() {
|
|
6919
|
-
return new
|
|
6921
|
+
return new Ln();
|
|
6920
6922
|
};
|
|
6921
|
-
Object.defineProperties(
|
|
6923
|
+
Object.defineProperties(Ln, Bs);
|
|
6922
6924
|
var fu = function(r) {
|
|
6923
6925
|
function t() {
|
|
6924
6926
|
r.call(this), this.map_ = /* @__PURE__ */ new Map();
|
|
@@ -6954,7 +6956,7 @@ var fu = function(r) {
|
|
|
6954
6956
|
this._modelType = n._modelType, this._scale = n._scale;
|
|
6955
6957
|
}
|
|
6956
6958
|
}
|
|
6957
|
-
},
|
|
6959
|
+
}, ks = { serialVersionUID: { configurable: !0 }, maximumPreciseValue: { configurable: !0 } };
|
|
6958
6960
|
Z.prototype.equals = function(t) {
|
|
6959
6961
|
if (!(t instanceof Z))
|
|
6960
6962
|
return !1;
|
|
@@ -7011,16 +7013,16 @@ Z.prototype.getClass = function() {
|
|
|
7011
7013
|
Z.mostPrecise = function(t, e) {
|
|
7012
7014
|
return t.compareTo(e) >= 0 ? t : e;
|
|
7013
7015
|
};
|
|
7014
|
-
|
|
7016
|
+
ks.serialVersionUID.get = function() {
|
|
7015
7017
|
return 7777263578777804e3;
|
|
7016
7018
|
};
|
|
7017
|
-
|
|
7019
|
+
ks.maximumPreciseValue.get = function() {
|
|
7018
7020
|
return 9007199254740992;
|
|
7019
7021
|
};
|
|
7020
|
-
Object.defineProperties(Z,
|
|
7022
|
+
Object.defineProperties(Z, ks);
|
|
7021
7023
|
var un = function r(t) {
|
|
7022
7024
|
this._name = t || null, r.nameToTypeMap.put(t, this);
|
|
7023
|
-
},
|
|
7025
|
+
}, Gs = { serialVersionUID: { configurable: !0 }, nameToTypeMap: { configurable: !0 } };
|
|
7024
7026
|
un.prototype.readResolve = function() {
|
|
7025
7027
|
return un.nameToTypeMap.get(this._name);
|
|
7026
7028
|
};
|
|
@@ -7033,19 +7035,19 @@ un.prototype.interfaces_ = function() {
|
|
|
7033
7035
|
un.prototype.getClass = function() {
|
|
7034
7036
|
return un;
|
|
7035
7037
|
};
|
|
7036
|
-
|
|
7038
|
+
Gs.serialVersionUID.get = function() {
|
|
7037
7039
|
return -552860263173159e4;
|
|
7038
7040
|
};
|
|
7039
|
-
|
|
7041
|
+
Gs.nameToTypeMap.get = function() {
|
|
7040
7042
|
return new fu();
|
|
7041
7043
|
};
|
|
7042
|
-
Object.defineProperties(un,
|
|
7044
|
+
Object.defineProperties(un, Gs);
|
|
7043
7045
|
Z.Type = un;
|
|
7044
7046
|
Z.FIXED = new un("FIXED");
|
|
7045
7047
|
Z.FLOATING = new un("FLOATING");
|
|
7046
7048
|
Z.FLOATING_SINGLE = new un("FLOATING SINGLE");
|
|
7047
7049
|
var H = function r() {
|
|
7048
|
-
this._precisionModel = new Z(), this._SRID = 0, this._coordinateSequenceFactory = r.getDefaultCoordinateSequenceFactory(), arguments.length === 0 || (arguments.length === 1 ?
|
|
7050
|
+
this._precisionModel = new Z(), this._SRID = 0, this._coordinateSequenceFactory = r.getDefaultCoordinateSequenceFactory(), arguments.length === 0 || (arguments.length === 1 ? G(arguments[0], fi) ? this._coordinateSequenceFactory = arguments[0] : arguments[0] instanceof Z && (this._precisionModel = arguments[0]) : arguments.length === 2 ? (this._precisionModel = arguments[0], this._SRID = arguments[1]) : arguments.length === 3 && (this._precisionModel = arguments[0], this._SRID = arguments[1], this._coordinateSequenceFactory = arguments[2]));
|
|
7049
7051
|
}, hu = { serialVersionUID: { configurable: !0 } };
|
|
7050
7052
|
H.prototype.toGeometry = function(t) {
|
|
7051
7053
|
return t.isNull() ? this.createPoint(null) : t.getMinX() === t.getMaxX() && t.getMinY() === t.getMaxY() ? this.createPoint(new v(t.getMinX(), t.getMinY())) : t.getMinX() === t.getMaxX() || t.getMinY() === t.getMaxY() ? this.createLineString([new v(t.getMinX(), t.getMinY()), new v(t.getMaxX(), t.getMaxY())]) : this.createPolygon(this.createLinearRing([new v(t.getMinX(), t.getMinY()), new v(t.getMinX(), t.getMaxY()), new v(t.getMaxX(), t.getMaxY()), new v(t.getMaxX(), t.getMinY()), new v(t.getMinX(), t.getMinY())]), null);
|
|
@@ -7054,17 +7056,17 @@ H.prototype.createLineString = function(t) {
|
|
|
7054
7056
|
if (t) {
|
|
7055
7057
|
if (t instanceof Array)
|
|
7056
7058
|
return new pt(this.getCoordinateSequenceFactory().create(t), this);
|
|
7057
|
-
if (
|
|
7059
|
+
if (G(t, K))
|
|
7058
7060
|
return new pt(t, this);
|
|
7059
7061
|
} else
|
|
7060
7062
|
return new pt(this.getCoordinateSequenceFactory().create([]), this);
|
|
7061
7063
|
};
|
|
7062
7064
|
H.prototype.createMultiLineString = function() {
|
|
7063
7065
|
if (arguments.length === 0)
|
|
7064
|
-
return new
|
|
7066
|
+
return new Nr(null, this);
|
|
7065
7067
|
if (arguments.length === 1) {
|
|
7066
7068
|
var t = arguments[0];
|
|
7067
|
-
return new
|
|
7069
|
+
return new Nr(t, this);
|
|
7068
7070
|
}
|
|
7069
7071
|
};
|
|
7070
7072
|
H.prototype.buildGeometry = function(t) {
|
|
@@ -7098,7 +7100,7 @@ H.prototype.createPoint = function() {
|
|
|
7098
7100
|
if (arguments[0] instanceof v) {
|
|
7099
7101
|
var t = arguments[0];
|
|
7100
7102
|
return this.createPoint(t !== null ? this.getCoordinateSequenceFactory().create([t]) : null);
|
|
7101
|
-
} else if (
|
|
7103
|
+
} else if (G(arguments[0], K)) {
|
|
7102
7104
|
var e = arguments[0];
|
|
7103
7105
|
return new ge(e, this);
|
|
7104
7106
|
}
|
|
@@ -7111,13 +7113,13 @@ H.prototype.createPolygon = function() {
|
|
|
7111
7113
|
if (arguments.length === 0)
|
|
7112
7114
|
return new Pt(null, null, this);
|
|
7113
7115
|
if (arguments.length === 1) {
|
|
7114
|
-
if (
|
|
7116
|
+
if (G(arguments[0], K)) {
|
|
7115
7117
|
var t = arguments[0];
|
|
7116
7118
|
return this.createPolygon(this.createLinearRing(t));
|
|
7117
7119
|
} else if (arguments[0] instanceof Array) {
|
|
7118
7120
|
var e = arguments[0];
|
|
7119
7121
|
return this.createPolygon(this.createLinearRing(e));
|
|
7120
|
-
} else if (arguments[0] instanceof
|
|
7122
|
+
} else if (arguments[0] instanceof wn) {
|
|
7121
7123
|
var n = arguments[0];
|
|
7122
7124
|
return this.createPolygon(n, null);
|
|
7123
7125
|
}
|
|
@@ -7158,18 +7160,18 @@ H.prototype.createLinearRing = function() {
|
|
|
7158
7160
|
if (arguments[0] instanceof Array) {
|
|
7159
7161
|
var t = arguments[0];
|
|
7160
7162
|
return this.createLinearRing(t !== null ? this.getCoordinateSequenceFactory().create(t) : null);
|
|
7161
|
-
} else if (
|
|
7163
|
+
} else if (G(arguments[0], K)) {
|
|
7162
7164
|
var e = arguments[0];
|
|
7163
|
-
return new
|
|
7165
|
+
return new wn(e, this);
|
|
7164
7166
|
}
|
|
7165
7167
|
}
|
|
7166
7168
|
};
|
|
7167
7169
|
H.prototype.createMultiPolygon = function() {
|
|
7168
7170
|
if (arguments.length === 0)
|
|
7169
|
-
return new
|
|
7171
|
+
return new xn(null, this);
|
|
7170
7172
|
if (arguments.length === 1) {
|
|
7171
7173
|
var t = arguments[0];
|
|
7172
|
-
return new
|
|
7174
|
+
return new xn(t, this);
|
|
7173
7175
|
}
|
|
7174
7176
|
};
|
|
7175
7177
|
H.prototype.createMultiPoint = function() {
|
|
@@ -7183,7 +7185,7 @@ H.prototype.createMultiPoint = function() {
|
|
|
7183
7185
|
} else if (arguments[0] instanceof Array) {
|
|
7184
7186
|
var n = arguments[0];
|
|
7185
7187
|
return this.createMultiPoint(n !== null ? this.getCoordinateSequenceFactory().create(n) : null);
|
|
7186
|
-
} else if (
|
|
7188
|
+
} else if (G(arguments[0], K)) {
|
|
7187
7189
|
var i = arguments[0];
|
|
7188
7190
|
if (i === null)
|
|
7189
7191
|
return this.createMultiPoint(new Array(0).fill(null));
|
|
@@ -7212,7 +7214,7 @@ H.toGeometryArray = function(t) {
|
|
|
7212
7214
|
return t.toArray(e);
|
|
7213
7215
|
};
|
|
7214
7216
|
H.getDefaultCoordinateSequenceFactory = function() {
|
|
7215
|
-
return
|
|
7217
|
+
return Ln.instance();
|
|
7216
7218
|
};
|
|
7217
7219
|
H.toMultiLineStringArray = function(t) {
|
|
7218
7220
|
var e = new Array(t.size()).fill(null);
|
|
@@ -7245,7 +7247,7 @@ hu.serialVersionUID.get = function() {
|
|
|
7245
7247
|
return -6820524753094096e3;
|
|
7246
7248
|
};
|
|
7247
7249
|
Object.defineProperties(H, hu);
|
|
7248
|
-
var
|
|
7250
|
+
var wc = ["Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"], Zo = function(t) {
|
|
7249
7251
|
this.geometryFactory = t || new H();
|
|
7250
7252
|
};
|
|
7251
7253
|
Zo.prototype.read = function(t) {
|
|
@@ -7254,7 +7256,7 @@ Zo.prototype.read = function(t) {
|
|
|
7254
7256
|
var n = e.type;
|
|
7255
7257
|
if (!$e[n])
|
|
7256
7258
|
throw new Error("Unknown GeoJSON type: " + e.type);
|
|
7257
|
-
return
|
|
7259
|
+
return wc.indexOf(n) !== -1 ? $e[n].apply(this, [e.coordinates]) : n === "GeometryCollection" ? $e[n].apply(this, [e.geometries]) : $e[n].apply(this, [e]);
|
|
7258
7260
|
};
|
|
7259
7261
|
Zo.prototype.write = function(t) {
|
|
7260
7262
|
var e = t.getGeometryType();
|
|
@@ -7617,7 +7619,7 @@ ts.prototype.name = "EmptyStackException";
|
|
|
7617
7619
|
function yn() {
|
|
7618
7620
|
this.array_ = [];
|
|
7619
7621
|
}
|
|
7620
|
-
yn.prototype = new
|
|
7622
|
+
yn.prototype = new Ge();
|
|
7621
7623
|
yn.prototype.add = function(r) {
|
|
7622
7624
|
return this.array_.push(r), !0;
|
|
7623
7625
|
};
|
|
@@ -8160,7 +8162,7 @@ xt.prototype.interfaces_ = function() {
|
|
|
8160
8162
|
xt.prototype.getClass = function() {
|
|
8161
8163
|
return xt;
|
|
8162
8164
|
};
|
|
8163
|
-
var
|
|
8165
|
+
var Lc = function(r) {
|
|
8164
8166
|
function t() {
|
|
8165
8167
|
var e = arguments[0], n = arguments[1];
|
|
8166
8168
|
r.call(this, e, n);
|
|
@@ -8174,7 +8176,7 @@ var Sc = function(r) {
|
|
|
8174
8176
|
}, t.prototype.getClass = function() {
|
|
8175
8177
|
return t;
|
|
8176
8178
|
}, t;
|
|
8177
|
-
}(xt),
|
|
8179
|
+
}(xt), bc = function(r) {
|
|
8178
8180
|
function t() {
|
|
8179
8181
|
var e = arguments[0], n = arguments[1];
|
|
8180
8182
|
r.call(this, e, n);
|
|
@@ -8183,7 +8185,7 @@ var Sc = function(r) {
|
|
|
8183
8185
|
var n = this, i = new L(), o = this._startDe;
|
|
8184
8186
|
do {
|
|
8185
8187
|
if (o.getMinEdgeRing() === null) {
|
|
8186
|
-
var s = new
|
|
8188
|
+
var s = new Lc(o, n._geometryFactory);
|
|
8187
8189
|
i.add(s);
|
|
8188
8190
|
}
|
|
8189
8191
|
o = o.getNext();
|
|
@@ -8615,7 +8617,7 @@ ht.prototype.linkResultDirectedEdges = function() {
|
|
|
8615
8617
|
}
|
|
8616
8618
|
};
|
|
8617
8619
|
ht.prototype.debugPrintln = function(t) {
|
|
8618
|
-
|
|
8620
|
+
Gt.out.println(t);
|
|
8619
8621
|
};
|
|
8620
8622
|
ht.prototype.isBoundaryNode = function(t, e) {
|
|
8621
8623
|
var n = this._nodes.find(e);
|
|
@@ -8637,7 +8639,7 @@ ht.prototype.getEdgeEnds = function() {
|
|
|
8637
8639
|
return this._edgeEndList;
|
|
8638
8640
|
};
|
|
8639
8641
|
ht.prototype.debugPrint = function(t) {
|
|
8640
|
-
|
|
8642
|
+
Gt.out.print(t);
|
|
8641
8643
|
};
|
|
8642
8644
|
ht.prototype.getEdgeIterator = function() {
|
|
8643
8645
|
return this._edges.iterator();
|
|
@@ -8748,7 +8750,7 @@ pe.prototype.buildMaximalEdgeRings = function(t) {
|
|
|
8748
8750
|
for (var e = this, n = new L(), i = t.iterator(); i.hasNext(); ) {
|
|
8749
8751
|
var o = i.next();
|
|
8750
8752
|
if (o.isInResult() && o.getLabel().isArea() && o.getEdgeRing() === null) {
|
|
8751
|
-
var s = new
|
|
8753
|
+
var s = new bc(o, e._geometryFactory);
|
|
8752
8754
|
n.add(s), s.setInResult();
|
|
8753
8755
|
}
|
|
8754
8756
|
}
|
|
@@ -8935,7 +8937,7 @@ qe.min = function(t) {
|
|
|
8935
8937
|
};
|
|
8936
8938
|
qe.sort = function(t, e) {
|
|
8937
8939
|
var n = t.toArray();
|
|
8938
|
-
e ?
|
|
8940
|
+
e ? Er.sort(n, e) : Er.sort(n);
|
|
8939
8941
|
for (var i = t.iterator(), o = 0, s = n.length; o < s; o++)
|
|
8940
8942
|
i.next(), i.set(n[o]);
|
|
8941
8943
|
};
|
|
@@ -9076,12 +9078,12 @@ Ot.prototype.query = function() {
|
|
|
9076
9078
|
return null;
|
|
9077
9079
|
this.getIntersectsOp().intersects(this._root.getBounds(), i) && this.query(i, this._root, o);
|
|
9078
9080
|
} else if (arguments.length === 3) {
|
|
9079
|
-
if (
|
|
9081
|
+
if (G(arguments[2], or) && arguments[0] instanceof Object && arguments[1] instanceof bt)
|
|
9080
9082
|
for (var s = arguments[0], a = arguments[1], u = arguments[2], l = a.getChildBoundables(), c = 0; c < l.size(); c++) {
|
|
9081
9083
|
var f = l.get(c);
|
|
9082
9084
|
t.getIntersectsOp().intersects(f.getBounds(), s) && (f instanceof bt ? t.query(s, f, u) : f instanceof Ue ? u.visitItem(f.getItem()) : X.shouldNeverReachHere());
|
|
9083
9085
|
}
|
|
9084
|
-
else if (
|
|
9086
|
+
else if (G(arguments[2], Ge) && arguments[0] instanceof Object && arguments[1] instanceof bt)
|
|
9085
9087
|
for (var h = arguments[0], g = arguments[1], p = arguments[2], m = g.getChildBoundables(), d = 0; d < m.size(); d++) {
|
|
9086
9088
|
var _ = m.get(d);
|
|
9087
9089
|
t.getIntersectsOp().intersects(_.getBounds(), h) && (_ instanceof bt ? t.query(h, _, p) : _ instanceof Ue ? p.add(_.getItem()) : X.shouldNeverReachHere());
|
|
@@ -9161,7 +9163,7 @@ Ot.compareDoubles = function(t, e) {
|
|
|
9161
9163
|
return t > e ? 1 : t < e ? -1 : 0;
|
|
9162
9164
|
};
|
|
9163
9165
|
rs.IntersectsOp.get = function() {
|
|
9164
|
-
return
|
|
9166
|
+
return Pc;
|
|
9165
9167
|
};
|
|
9166
9168
|
rs.serialVersionUID.get = function() {
|
|
9167
9169
|
return -3886435814360241e3;
|
|
@@ -9170,7 +9172,7 @@ rs.DEFAULT_NODE_CAPACITY.get = function() {
|
|
|
9170
9172
|
return 10;
|
|
9171
9173
|
};
|
|
9172
9174
|
Object.defineProperties(Ot, rs);
|
|
9173
|
-
var
|
|
9175
|
+
var Pc = function() {
|
|
9174
9176
|
}, Ei = function() {
|
|
9175
9177
|
};
|
|
9176
9178
|
Ei.prototype.distance = function(t, e) {
|
|
@@ -9224,10 +9226,10 @@ var du = function(r) {
|
|
|
9224
9226
|
var o = arguments[0], s = arguments[1];
|
|
9225
9227
|
r.prototype.query.call(this, o, s);
|
|
9226
9228
|
} else if (arguments.length === 3) {
|
|
9227
|
-
if (
|
|
9229
|
+
if (G(arguments[2], or) && arguments[0] instanceof Object && arguments[1] instanceof bt) {
|
|
9228
9230
|
var a = arguments[0], u = arguments[1], l = arguments[2];
|
|
9229
9231
|
r.prototype.query.call(this, a, u, l);
|
|
9230
|
-
} else if (
|
|
9232
|
+
} else if (G(arguments[2], Ge) && arguments[0] instanceof Object && arguments[1] instanceof bt) {
|
|
9231
9233
|
var c = arguments[0], f = arguments[1], h = arguments[2];
|
|
9232
9234
|
r.prototype.query.call(this, c, f, h);
|
|
9233
9235
|
}
|
|
@@ -9252,7 +9254,7 @@ var du = function(r) {
|
|
|
9252
9254
|
return this.createParentBoundablesFromVerticalSlices(u, o);
|
|
9253
9255
|
}, t.prototype.nearestNeighbour = function() {
|
|
9254
9256
|
if (arguments.length === 1) {
|
|
9255
|
-
if (
|
|
9257
|
+
if (G(arguments[0], Ei)) {
|
|
9256
9258
|
var i = arguments[0], o = new It(this.getRoot(), this.getRoot(), i);
|
|
9257
9259
|
return this.nearestNeighbour(o);
|
|
9258
9260
|
} else if (arguments[0] instanceof It) {
|
|
@@ -9260,7 +9262,7 @@ var du = function(r) {
|
|
|
9260
9262
|
return this.nearestNeighbour(s, V.POSITIVE_INFINITY);
|
|
9261
9263
|
}
|
|
9262
9264
|
} else if (arguments.length === 2) {
|
|
9263
|
-
if (arguments[0] instanceof t &&
|
|
9265
|
+
if (arguments[0] instanceof t && G(arguments[1], Ei)) {
|
|
9264
9266
|
var a = arguments[0], u = arguments[1], l = new It(this.getRoot(), a.getRoot(), u);
|
|
9265
9267
|
return this.nearestNeighbour(l);
|
|
9266
9268
|
} else if (arguments[0] instanceof It && typeof arguments[1] == "number") {
|
|
@@ -9523,32 +9525,32 @@ Yr.octant = function() {
|
|
|
9523
9525
|
return Yr.octant(a, u);
|
|
9524
9526
|
}
|
|
9525
9527
|
};
|
|
9526
|
-
var
|
|
9528
|
+
var bn = function() {
|
|
9527
9529
|
};
|
|
9528
|
-
|
|
9530
|
+
bn.prototype.getCoordinates = function() {
|
|
9529
9531
|
};
|
|
9530
|
-
|
|
9532
|
+
bn.prototype.size = function() {
|
|
9531
9533
|
};
|
|
9532
|
-
|
|
9534
|
+
bn.prototype.getCoordinate = function(t) {
|
|
9533
9535
|
};
|
|
9534
|
-
|
|
9536
|
+
bn.prototype.isClosed = function() {
|
|
9535
9537
|
};
|
|
9536
|
-
|
|
9538
|
+
bn.prototype.setData = function(t) {
|
|
9537
9539
|
};
|
|
9538
|
-
|
|
9540
|
+
bn.prototype.getData = function() {
|
|
9539
9541
|
};
|
|
9540
|
-
|
|
9542
|
+
bn.prototype.interfaces_ = function() {
|
|
9541
9543
|
return [];
|
|
9542
9544
|
};
|
|
9543
|
-
|
|
9544
|
-
return
|
|
9545
|
+
bn.prototype.getClass = function() {
|
|
9546
|
+
return bn;
|
|
9545
9547
|
};
|
|
9546
9548
|
var io = function() {
|
|
9547
9549
|
};
|
|
9548
9550
|
io.prototype.addIntersection = function(t, e) {
|
|
9549
9551
|
};
|
|
9550
9552
|
io.prototype.interfaces_ = function() {
|
|
9551
|
-
return [
|
|
9553
|
+
return [bn];
|
|
9552
9554
|
};
|
|
9553
9555
|
io.prototype.getClass = function() {
|
|
9554
9556
|
return io;
|
|
@@ -9664,7 +9666,7 @@ M.prototype.equals = function(t) {
|
|
|
9664
9666
|
return this.p0.equals(e.p0) && this.p1.equals(e.p1);
|
|
9665
9667
|
};
|
|
9666
9668
|
M.prototype.intersection = function(t) {
|
|
9667
|
-
var e = new
|
|
9669
|
+
var e = new Mr();
|
|
9668
9670
|
return e.computeIntersection(this.p0, this.p1, t.p0, t.p1), e.hasIntersection() ? e.getIntersection(0) : null;
|
|
9669
9671
|
};
|
|
9670
9672
|
M.prototype.project = function() {
|
|
@@ -9752,7 +9754,7 @@ M.prototype.equalsTopo = function(t) {
|
|
|
9752
9754
|
};
|
|
9753
9755
|
M.prototype.lineIntersection = function(t) {
|
|
9754
9756
|
try {
|
|
9755
|
-
var e =
|
|
9757
|
+
var e = ke.intersection(this.p0, this.p1, t.p0, t.p1);
|
|
9756
9758
|
return e;
|
|
9757
9759
|
} catch (n) {
|
|
9758
9760
|
if (!(n instanceof Ai))
|
|
@@ -9959,17 +9961,17 @@ rn.toIntArray = function(t) {
|
|
|
9959
9961
|
e[n] = t.get(n).intValue();
|
|
9960
9962
|
return e;
|
|
9961
9963
|
};
|
|
9962
|
-
var
|
|
9964
|
+
var Sr = function() {
|
|
9963
9965
|
};
|
|
9964
|
-
|
|
9966
|
+
Sr.prototype.computeNodes = function(t) {
|
|
9965
9967
|
};
|
|
9966
|
-
|
|
9968
|
+
Sr.prototype.getNodedSubstrings = function() {
|
|
9967
9969
|
};
|
|
9968
|
-
|
|
9970
|
+
Sr.prototype.interfaces_ = function() {
|
|
9969
9971
|
return [];
|
|
9970
9972
|
};
|
|
9971
|
-
|
|
9972
|
-
return
|
|
9973
|
+
Sr.prototype.getClass = function() {
|
|
9974
|
+
return Sr;
|
|
9973
9975
|
};
|
|
9974
9976
|
var so = function() {
|
|
9975
9977
|
if (this._segInt = null, arguments.length !== 0) {
|
|
@@ -9983,7 +9985,7 @@ so.prototype.setSegmentIntersector = function(t) {
|
|
|
9983
9985
|
this._segInt = t;
|
|
9984
9986
|
};
|
|
9985
9987
|
so.prototype.interfaces_ = function() {
|
|
9986
|
-
return [
|
|
9988
|
+
return [Sr];
|
|
9987
9989
|
};
|
|
9988
9990
|
so.prototype.getClass = function() {
|
|
9989
9991
|
return so;
|
|
@@ -10359,7 +10361,7 @@ Object.defineProperties(j, ii);
|
|
|
10359
10361
|
var ut = function r() {
|
|
10360
10362
|
this._maxCurveSegmentError = 0, this._filletAngleQuantum = null, this._closingSegLengthFactor = 1, this._segList = null, this._distance = 0, this._precisionModel = null, this._bufParams = null, this._li = null, this._s0 = null, this._s1 = null, this._s2 = null, this._seg0 = new M(), this._seg1 = new M(), this._offset0 = new M(), this._offset1 = new M(), this._side = 0, this._hasNarrowConcaveAngle = !1;
|
|
10361
10363
|
var t = arguments[0], e = arguments[1], n = arguments[2];
|
|
10362
|
-
this._precisionModel = t, this._bufParams = e, this._li = new
|
|
10364
|
+
this._precisionModel = t, this._bufParams = e, this._li = new Mr(), this._filletAngleQuantum = Math.PI / 2 / e.getQuadrantSegments(), e.getQuadrantSegments() >= 8 && e.getJoinStyle() === J.JOIN_ROUND && (this._closingSegLengthFactor = r.MAX_CLOSING_SEG_LEN_FACTOR), this.init(n);
|
|
10363
10365
|
}, mo = { OFFSET_SEGMENT_SEPARATION_FACTOR: { configurable: !0 }, INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR: { configurable: !0 }, CURVE_VERTEX_SNAP_DISTANCE_FACTOR: { configurable: !0 }, MAX_CLOSING_SEG_LEN_FACTOR: { configurable: !0 } };
|
|
10364
10366
|
ut.prototype.addNextSegment = function(t, e) {
|
|
10365
10367
|
if (this._s0 = this._s1, this._s1 = this._s2, this._s2 = t, this._seg0.setCoordinates(this._s0, this._s1), this.computeOffsetSegment(this._seg0, this._side, this._distance, this._offset0), this._seg1.setCoordinates(this._s1, this._s2), this.computeOffsetSegment(this._seg1, this._side, this._distance, this._offset1), this._s1.equals(this._s2))
|
|
@@ -10395,7 +10397,7 @@ ut.prototype.getCoordinates = function() {
|
|
|
10395
10397
|
ut.prototype.addMitreJoin = function(t, e, n, i) {
|
|
10396
10398
|
var o = !0, s = null;
|
|
10397
10399
|
try {
|
|
10398
|
-
s =
|
|
10400
|
+
s = ke.intersection(e.p0, e.p1, n.p0, n.p1);
|
|
10399
10401
|
var a = i <= 0 ? 1 : s.distance(t) / Math.abs(i);
|
|
10400
10402
|
a > this._bufParams.getMitreLimit() && (o = !1);
|
|
10401
10403
|
} catch (u) {
|
|
@@ -10638,18 +10640,18 @@ Hr.prototype.findStabbedSegments = function() {
|
|
|
10638
10640
|
}
|
|
10639
10641
|
return n;
|
|
10640
10642
|
} else if (arguments.length === 3) {
|
|
10641
|
-
if (
|
|
10643
|
+
if (G(arguments[2], Ge) && arguments[0] instanceof v && arguments[1] instanceof ws)
|
|
10642
10644
|
for (var a = arguments[0], u = arguments[1], l = arguments[2], c = u.getEdge().getCoordinates(), f = 0; f < c.length - 1; f++) {
|
|
10643
10645
|
t._seg.p0 = c[f], t._seg.p1 = c[f + 1], t._seg.p0.y > t._seg.p1.y && t._seg.reverse();
|
|
10644
10646
|
var h = Math.max(t._seg.p0.x, t._seg.p1.x);
|
|
10645
10647
|
if (!(h < a.x) && !t._seg.isHorizontal() && !(a.y < t._seg.p0.y || a.y > t._seg.p1.y) && P.computeOrientation(t._seg.p0, t._seg.p1, a) !== P.RIGHT) {
|
|
10646
10648
|
var g = u.getDepth(w.LEFT);
|
|
10647
10649
|
t._seg.p0.equals(c[f]) || (g = u.getDepth(w.RIGHT));
|
|
10648
|
-
var p = new
|
|
10650
|
+
var p = new wr(t._seg, g);
|
|
10649
10651
|
l.add(p);
|
|
10650
10652
|
}
|
|
10651
10653
|
}
|
|
10652
|
-
else if (
|
|
10654
|
+
else if (G(arguments[2], Ge) && arguments[0] instanceof v && G(arguments[1], Ge))
|
|
10653
10655
|
for (var m = arguments[0], d = arguments[1], _ = arguments[2], I = d.iterator(); I.hasNext(); ) {
|
|
10654
10656
|
var C = I.next();
|
|
10655
10657
|
C.isForward() && t.findStabbedSegments(m, C, _);
|
|
@@ -10670,15 +10672,15 @@ Hr.prototype.getClass = function() {
|
|
|
10670
10672
|
return Hr;
|
|
10671
10673
|
};
|
|
10672
10674
|
mu.DepthSegment.get = function() {
|
|
10673
|
-
return
|
|
10675
|
+
return wr;
|
|
10674
10676
|
};
|
|
10675
10677
|
Object.defineProperties(Hr, mu);
|
|
10676
|
-
var
|
|
10678
|
+
var wr = function() {
|
|
10677
10679
|
this._upwardSeg = null, this._leftDepth = null;
|
|
10678
10680
|
var t = arguments[0], e = arguments[1];
|
|
10679
10681
|
this._upwardSeg = new M(t), this._leftDepth = e;
|
|
10680
10682
|
};
|
|
10681
|
-
|
|
10683
|
+
wr.prototype.compareTo = function(t) {
|
|
10682
10684
|
var e = t;
|
|
10683
10685
|
if (this._upwardSeg.minX() >= e._upwardSeg.maxX())
|
|
10684
10686
|
return 1;
|
|
@@ -10687,18 +10689,18 @@ Sr.prototype.compareTo = function(t) {
|
|
|
10687
10689
|
var n = this._upwardSeg.orientationIndex(e._upwardSeg);
|
|
10688
10690
|
return n !== 0 || (n = -1 * e._upwardSeg.orientationIndex(this._upwardSeg), n !== 0) ? n : this._upwardSeg.compareTo(e._upwardSeg);
|
|
10689
10691
|
};
|
|
10690
|
-
|
|
10692
|
+
wr.prototype.compareX = function(t, e) {
|
|
10691
10693
|
var n = t.p0.compareTo(e.p0);
|
|
10692
10694
|
return n !== 0 ? n : t.p1.compareTo(e.p1);
|
|
10693
10695
|
};
|
|
10694
|
-
|
|
10696
|
+
wr.prototype.toString = function() {
|
|
10695
10697
|
return this._upwardSeg.toString();
|
|
10696
10698
|
};
|
|
10697
|
-
|
|
10699
|
+
wr.prototype.interfaces_ = function() {
|
|
10698
10700
|
return [Me];
|
|
10699
10701
|
};
|
|
10700
|
-
|
|
10701
|
-
return
|
|
10702
|
+
wr.prototype.getClass = function() {
|
|
10703
|
+
return wr;
|
|
10702
10704
|
};
|
|
10703
10705
|
var $ = function(t, e, n) {
|
|
10704
10706
|
this.p0 = t || null, this.p1 = e || null, this.p2 = n || null;
|
|
@@ -10763,8 +10765,8 @@ $.circumcentre = function(t, e, n) {
|
|
|
10763
10765
|
return new v(g, p);
|
|
10764
10766
|
};
|
|
10765
10767
|
$.perpendicularBisector = function(t, e) {
|
|
10766
|
-
var n = e.x - t.x, i = e.y - t.y, o = new
|
|
10767
|
-
return new
|
|
10768
|
+
var n = e.x - t.x, i = e.y - t.y, o = new ke(t.x + n / 2, t.y + i / 2, 1), s = new ke(t.x - i + n / 2, t.y + n + i / 2, 1);
|
|
10769
|
+
return new ke(o, s);
|
|
10768
10770
|
};
|
|
10769
10771
|
$.angleBisector = function(t, e, n) {
|
|
10770
10772
|
var i = e.distance(t), o = e.distance(n), s = i / (i + o), a = n.x - t.x, u = n.y - t.y, l = new v(t.x + s * a, t.y + s * u);
|
|
@@ -10825,17 +10827,17 @@ De.prototype.getCurves = function() {
|
|
|
10825
10827
|
return this.add(this._inputGeom), this._curveList;
|
|
10826
10828
|
};
|
|
10827
10829
|
De.prototype.addPolygonRing = function(t, e, n, i, o) {
|
|
10828
|
-
if (e === 0 && t.length <
|
|
10830
|
+
if (e === 0 && t.length < wn.MINIMUM_VALID_SIZE)
|
|
10829
10831
|
return null;
|
|
10830
10832
|
var s = i, a = o;
|
|
10831
|
-
t.length >=
|
|
10833
|
+
t.length >= wn.MINIMUM_VALID_SIZE && P.isCCW(t) && (s = o, a = i, n = w.opposite(n));
|
|
10832
10834
|
var u = this._curveBuilder.getRingCurve(t, n, e);
|
|
10833
10835
|
this.addCurve(u, s, a);
|
|
10834
10836
|
};
|
|
10835
10837
|
De.prototype.add = function(t) {
|
|
10836
10838
|
if (t.isEmpty())
|
|
10837
10839
|
return null;
|
|
10838
|
-
t instanceof Pt ? this.addPolygon(t) : t instanceof pt ? this.addLineString(t) : t instanceof ge ? this.addPoint(t) : t instanceof yi ? this.addCollection(t) : t instanceof
|
|
10840
|
+
t instanceof Pt ? this.addPolygon(t) : t instanceof pt ? this.addLineString(t) : t instanceof ge ? this.addPoint(t) : t instanceof yi ? this.addCollection(t) : t instanceof Nr ? this.addCollection(t) : t instanceof xn ? this.addCollection(t) : t instanceof te && this.addCollection(t);
|
|
10839
10841
|
};
|
|
10840
10842
|
De.prototype.isErodedCompletely = function(t, e) {
|
|
10841
10843
|
var n = t.getCoordinates();
|
|
@@ -10868,14 +10870,14 @@ Ii.prototype.interfaces_ = function() {
|
|
|
10868
10870
|
Ii.prototype.getClass = function() {
|
|
10869
10871
|
return Ii;
|
|
10870
10872
|
};
|
|
10871
|
-
var
|
|
10873
|
+
var Nn = function() {
|
|
10872
10874
|
this._parent = null, this._atStart = null, this._max = null, this._index = null, this._subcollectionIterator = null;
|
|
10873
10875
|
var t = arguments[0];
|
|
10874
10876
|
this._parent = t, this._atStart = !0, this._index = 0, this._max = t.getNumGeometries();
|
|
10875
10877
|
};
|
|
10876
|
-
|
|
10878
|
+
Nn.prototype.next = function() {
|
|
10877
10879
|
if (this._atStart)
|
|
10878
|
-
return this._atStart = !1,
|
|
10880
|
+
return this._atStart = !1, Nn.isAtomic(this._parent) && this._index++, this._parent;
|
|
10879
10881
|
if (this._subcollectionIterator !== null) {
|
|
10880
10882
|
if (this._subcollectionIterator.hasNext())
|
|
10881
10883
|
return this._subcollectionIterator.next();
|
|
@@ -10884,12 +10886,12 @@ xn.prototype.next = function() {
|
|
|
10884
10886
|
if (this._index >= this._max)
|
|
10885
10887
|
throw new Bi();
|
|
10886
10888
|
var t = this._parent.getGeometryN(this._index++);
|
|
10887
|
-
return t instanceof te ? (this._subcollectionIterator = new
|
|
10889
|
+
return t instanceof te ? (this._subcollectionIterator = new Nn(t), this._subcollectionIterator.next()) : t;
|
|
10888
10890
|
};
|
|
10889
|
-
|
|
10891
|
+
Nn.prototype.remove = function() {
|
|
10890
10892
|
throw new Error(this.getClass().getName());
|
|
10891
10893
|
};
|
|
10892
|
-
|
|
10894
|
+
Nn.prototype.hasNext = function() {
|
|
10893
10895
|
if (this._atStart)
|
|
10894
10896
|
return !0;
|
|
10895
10897
|
if (this._subcollectionIterator !== null) {
|
|
@@ -10899,13 +10901,13 @@ xn.prototype.hasNext = function() {
|
|
|
10899
10901
|
}
|
|
10900
10902
|
return !(this._index >= this._max);
|
|
10901
10903
|
};
|
|
10902
|
-
|
|
10904
|
+
Nn.prototype.interfaces_ = function() {
|
|
10903
10905
|
return [Fi];
|
|
10904
10906
|
};
|
|
10905
|
-
|
|
10906
|
-
return
|
|
10907
|
+
Nn.prototype.getClass = function() {
|
|
10908
|
+
return Nn;
|
|
10907
10909
|
};
|
|
10908
|
-
|
|
10910
|
+
Nn.isAtomic = function(t) {
|
|
10909
10911
|
return !(t instanceof te);
|
|
10910
10912
|
};
|
|
10911
10913
|
var Ee = function() {
|
|
@@ -10942,7 +10944,7 @@ Ee.containsPoint = function(t, e) {
|
|
|
10942
10944
|
if (e instanceof Pt)
|
|
10943
10945
|
return Ee.containsPointInPolygon(t, e);
|
|
10944
10946
|
if (e instanceof te)
|
|
10945
|
-
for (var n = new
|
|
10947
|
+
for (var n = new Nn(e); n.hasNext(); ) {
|
|
10946
10948
|
var i = n.next();
|
|
10947
10949
|
if (i !== e && Ee.containsPoint(t, i))
|
|
10948
10950
|
return !0;
|
|
@@ -10988,7 +10990,7 @@ Wt.prototype.getCoordinate = function() {
|
|
|
10988
10990
|
return e.getCoordinate();
|
|
10989
10991
|
};
|
|
10990
10992
|
Wt.prototype.print = function(t) {
|
|
10991
|
-
|
|
10993
|
+
Gt.out.println("EdgeEndStar: " + this.getCoordinate());
|
|
10992
10994
|
for (var e = this.iterator(); e.hasNext(); ) {
|
|
10993
10995
|
var n = e.next();
|
|
10994
10996
|
n.print(t);
|
|
@@ -11080,7 +11082,7 @@ Wt.prototype.interfaces_ = function() {
|
|
|
11080
11082
|
Wt.prototype.getClass = function() {
|
|
11081
11083
|
return Wt;
|
|
11082
11084
|
};
|
|
11083
|
-
var
|
|
11085
|
+
var Rc = function(r) {
|
|
11084
11086
|
function t() {
|
|
11085
11087
|
r.call(this), this._resultAreaEdgeList = null, this._label = null, this._SCANNING_FOR_INCOMING = 1, this._LINKING_TO_OUTGOING = 2;
|
|
11086
11088
|
}
|
|
@@ -11121,7 +11123,7 @@ var bc = function(r) {
|
|
|
11121
11123
|
var s = n.get(i - 1), a = o.getQuadrant(), u = s.getQuadrant();
|
|
11122
11124
|
return nt.isNorthern(a) && nt.isNorthern(u) ? o : !nt.isNorthern(a) && !nt.isNorthern(u) ? s : o.getDy() !== 0 ? o : s.getDy() !== 0 ? s : (X.shouldNeverReachHere("found two horizontal edges incident on node"), null);
|
|
11123
11125
|
}, t.prototype.print = function(n) {
|
|
11124
|
-
|
|
11126
|
+
Gt.out.println("DirectedEdgeStar: " + this.getCoordinate());
|
|
11125
11127
|
for (var i = this.iterator(); i.hasNext(); ) {
|
|
11126
11128
|
var o = i.next();
|
|
11127
11129
|
n.print("out "), o.print(n), n.println(), n.print("in "), o.getSym().print(n), n.println();
|
|
@@ -11238,7 +11240,7 @@ var bc = function(r) {
|
|
|
11238
11240
|
r.apply(this, arguments);
|
|
11239
11241
|
}
|
|
11240
11242
|
return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t.prototype.createNode = function(n) {
|
|
11241
|
-
return new ns(n, new
|
|
11243
|
+
return new ns(n, new Rc());
|
|
11242
11244
|
}, t.prototype.interfaces_ = function() {
|
|
11243
11245
|
return [];
|
|
11244
11246
|
}, t.prototype.getClass = function() {
|
|
@@ -11326,17 +11328,17 @@ Xe.prototype.interfaces_ = function() {
|
|
|
11326
11328
|
Xe.prototype.getClass = function() {
|
|
11327
11329
|
return Xe;
|
|
11328
11330
|
};
|
|
11329
|
-
var
|
|
11331
|
+
var Lr = function() {
|
|
11330
11332
|
};
|
|
11331
|
-
|
|
11333
|
+
Lr.prototype.processIntersections = function(t, e, n, i) {
|
|
11332
11334
|
};
|
|
11333
|
-
|
|
11335
|
+
Lr.prototype.isDone = function() {
|
|
11334
11336
|
};
|
|
11335
|
-
|
|
11337
|
+
Lr.prototype.interfaces_ = function() {
|
|
11336
11338
|
return [];
|
|
11337
11339
|
};
|
|
11338
|
-
|
|
11339
|
-
return
|
|
11340
|
+
Lr.prototype.getClass = function() {
|
|
11341
|
+
return Lr;
|
|
11340
11342
|
};
|
|
11341
11343
|
var Se = function() {
|
|
11342
11344
|
this._hasIntersection = !1, this._hasProper = !1, this._hasProperInterior = !1, this._hasInterior = !1, this._properIntersectionPoint = null, this._li = null, this._isSelfIntersection = null, this.numIntersections = 0, this.numInteriorIntersections = 0, this.numProperIntersections = 0, this.numTests = 0;
|
|
@@ -11384,7 +11386,7 @@ Se.prototype.hasInteriorIntersection = function() {
|
|
|
11384
11386
|
return this._hasInterior;
|
|
11385
11387
|
};
|
|
11386
11388
|
Se.prototype.interfaces_ = function() {
|
|
11387
|
-
return [
|
|
11389
|
+
return [Lr];
|
|
11388
11390
|
};
|
|
11389
11391
|
Se.prototype.getClass = function() {
|
|
11390
11392
|
return Se;
|
|
@@ -11428,22 +11430,22 @@ fn.prototype.interfaces_ = function() {
|
|
|
11428
11430
|
fn.prototype.getClass = function() {
|
|
11429
11431
|
return fn;
|
|
11430
11432
|
};
|
|
11431
|
-
var
|
|
11433
|
+
var Pn = function() {
|
|
11432
11434
|
this._nodeMap = new Yt(), this.edge = null;
|
|
11433
11435
|
var t = arguments[0];
|
|
11434
11436
|
this.edge = t;
|
|
11435
11437
|
};
|
|
11436
|
-
|
|
11438
|
+
Pn.prototype.print = function(t) {
|
|
11437
11439
|
t.println("Intersections:");
|
|
11438
11440
|
for (var e = this.iterator(); e.hasNext(); ) {
|
|
11439
11441
|
var n = e.next();
|
|
11440
11442
|
n.print(t);
|
|
11441
11443
|
}
|
|
11442
11444
|
};
|
|
11443
|
-
|
|
11445
|
+
Pn.prototype.iterator = function() {
|
|
11444
11446
|
return this._nodeMap.values().iterator();
|
|
11445
11447
|
};
|
|
11446
|
-
|
|
11448
|
+
Pn.prototype.addSplitEdges = function(t) {
|
|
11447
11449
|
var e = this;
|
|
11448
11450
|
this.addEndpoints();
|
|
11449
11451
|
for (var n = this.iterator(), i = n.next(); n.hasNext(); ) {
|
|
@@ -11451,11 +11453,11 @@ bn.prototype.addSplitEdges = function(t) {
|
|
|
11451
11453
|
t.add(s), i = o;
|
|
11452
11454
|
}
|
|
11453
11455
|
};
|
|
11454
|
-
|
|
11456
|
+
Pn.prototype.addEndpoints = function() {
|
|
11455
11457
|
var t = this.edge.pts.length - 1;
|
|
11456
11458
|
this.add(this.edge.pts[0], 0, 0), this.add(this.edge.pts[t], t, 0);
|
|
11457
11459
|
};
|
|
11458
|
-
|
|
11460
|
+
Pn.prototype.createSplitEdge = function(t, e) {
|
|
11459
11461
|
var n = this, i = e.segmentIndex - t.segmentIndex + 2, o = this.edge.pts[e.segmentIndex], s = e.dist > 0 || !e.coord.equals2D(o);
|
|
11460
11462
|
s || i--;
|
|
11461
11463
|
var a = new Array(i).fill(null), u = 0;
|
|
@@ -11464,11 +11466,11 @@ bn.prototype.createSplitEdge = function(t, e) {
|
|
|
11464
11466
|
a[u++] = n.edge.pts[l];
|
|
11465
11467
|
return s && (a[u] = e.coord), new Bo(a, new tt(this.edge._label));
|
|
11466
11468
|
};
|
|
11467
|
-
|
|
11469
|
+
Pn.prototype.add = function(t, e, n) {
|
|
11468
11470
|
var i = new fn(t, e, n), o = this._nodeMap.get(i);
|
|
11469
11471
|
return o !== null ? o : (this._nodeMap.put(i, i), i);
|
|
11470
11472
|
};
|
|
11471
|
-
|
|
11473
|
+
Pn.prototype.isIntersection = function(t) {
|
|
11472
11474
|
for (var e = this.iterator(); e.hasNext(); ) {
|
|
11473
11475
|
var n = e.next();
|
|
11474
11476
|
if (n.coord.equals(t))
|
|
@@ -11476,25 +11478,25 @@ bn.prototype.isIntersection = function(t) {
|
|
|
11476
11478
|
}
|
|
11477
11479
|
return !1;
|
|
11478
11480
|
};
|
|
11479
|
-
|
|
11481
|
+
Pn.prototype.interfaces_ = function() {
|
|
11480
11482
|
return [];
|
|
11481
11483
|
};
|
|
11482
|
-
|
|
11483
|
-
return
|
|
11484
|
+
Pn.prototype.getClass = function() {
|
|
11485
|
+
return Pn;
|
|
11484
11486
|
};
|
|
11485
|
-
var
|
|
11487
|
+
var br = function() {
|
|
11486
11488
|
};
|
|
11487
|
-
|
|
11489
|
+
br.prototype.getChainStartIndices = function(t) {
|
|
11488
11490
|
var e = this, n = 0, i = new L();
|
|
11489
11491
|
i.add(new on(n));
|
|
11490
11492
|
do {
|
|
11491
11493
|
var o = e.findChainEnd(t, n);
|
|
11492
11494
|
i.add(new on(o)), n = o;
|
|
11493
11495
|
} while (n < t.length - 1);
|
|
11494
|
-
var s =
|
|
11496
|
+
var s = br.toIntArray(i);
|
|
11495
11497
|
return s;
|
|
11496
11498
|
};
|
|
11497
|
-
|
|
11499
|
+
br.prototype.findChainEnd = function(t, e) {
|
|
11498
11500
|
for (var n = nt.quadrant(t[e], t[e + 1]), i = e + 1; i < t.length; ) {
|
|
11499
11501
|
var o = nt.quadrant(t[i - 1], t[i]);
|
|
11500
11502
|
if (o !== n)
|
|
@@ -11503,13 +11505,13 @@ Lr.prototype.findChainEnd = function(t, e) {
|
|
|
11503
11505
|
}
|
|
11504
11506
|
return i - 1;
|
|
11505
11507
|
};
|
|
11506
|
-
|
|
11508
|
+
br.prototype.interfaces_ = function() {
|
|
11507
11509
|
return [];
|
|
11508
11510
|
};
|
|
11509
|
-
|
|
11510
|
-
return
|
|
11511
|
+
br.prototype.getClass = function() {
|
|
11512
|
+
return br;
|
|
11511
11513
|
};
|
|
11512
|
-
|
|
11514
|
+
br.toIntArray = function(t) {
|
|
11513
11515
|
for (var e = new Array(t.size()).fill(null), n = 0; n < e.length; n++)
|
|
11514
11516
|
e[n] = t.get(n).intValue();
|
|
11515
11517
|
return e;
|
|
@@ -11518,7 +11520,7 @@ var Kn = function() {
|
|
|
11518
11520
|
this.e = null, this.pts = null, this.startIndex = null, this.env1 = new T(), this.env2 = new T();
|
|
11519
11521
|
var t = arguments[0];
|
|
11520
11522
|
this.e = t, this.pts = t.getCoordinates();
|
|
11521
|
-
var e = new
|
|
11523
|
+
var e = new br();
|
|
11522
11524
|
this.startIndex = e.getChainStartIndices(this.pts);
|
|
11523
11525
|
};
|
|
11524
11526
|
Kn.prototype.getCoordinates = function() {
|
|
@@ -11560,7 +11562,7 @@ Kn.prototype.interfaces_ = function() {
|
|
|
11560
11562
|
Kn.prototype.getClass = function() {
|
|
11561
11563
|
return Kn;
|
|
11562
11564
|
};
|
|
11563
|
-
var
|
|
11565
|
+
var kt = function r() {
|
|
11564
11566
|
var t = this;
|
|
11565
11567
|
this._depth = Array(2).fill().map(function() {
|
|
11566
11568
|
return Array(3);
|
|
@@ -11569,29 +11571,29 @@ var Gt = function r() {
|
|
|
11569
11571
|
for (var n = 0; n < 3; n++)
|
|
11570
11572
|
t._depth[e][n] = r.NULL_VALUE;
|
|
11571
11573
|
}, Eu = { NULL_VALUE: { configurable: !0 } };
|
|
11572
|
-
|
|
11574
|
+
kt.prototype.getDepth = function(t, e) {
|
|
11573
11575
|
return this._depth[t][e];
|
|
11574
11576
|
};
|
|
11575
|
-
|
|
11577
|
+
kt.prototype.setDepth = function(t, e, n) {
|
|
11576
11578
|
this._depth[t][e] = n;
|
|
11577
11579
|
};
|
|
11578
|
-
|
|
11580
|
+
kt.prototype.isNull = function() {
|
|
11579
11581
|
var t = this;
|
|
11580
11582
|
if (arguments.length === 0) {
|
|
11581
11583
|
for (var e = 0; e < 2; e++)
|
|
11582
11584
|
for (var n = 0; n < 3; n++)
|
|
11583
|
-
if (t._depth[e][n] !==
|
|
11585
|
+
if (t._depth[e][n] !== kt.NULL_VALUE)
|
|
11584
11586
|
return !1;
|
|
11585
11587
|
return !0;
|
|
11586
11588
|
} else if (arguments.length === 1) {
|
|
11587
11589
|
var i = arguments[0];
|
|
11588
|
-
return this._depth[i][1] ===
|
|
11590
|
+
return this._depth[i][1] === kt.NULL_VALUE;
|
|
11589
11591
|
} else if (arguments.length === 2) {
|
|
11590
11592
|
var o = arguments[0], s = arguments[1];
|
|
11591
|
-
return this._depth[o][s] ===
|
|
11593
|
+
return this._depth[o][s] === kt.NULL_VALUE;
|
|
11592
11594
|
}
|
|
11593
11595
|
};
|
|
11594
|
-
|
|
11596
|
+
kt.prototype.normalize = function() {
|
|
11595
11597
|
for (var t = this, e = 0; e < 2; e++)
|
|
11596
11598
|
if (!t.isNull(e)) {
|
|
11597
11599
|
var n = t._depth[e][1];
|
|
@@ -11602,44 +11604,44 @@ Gt.prototype.normalize = function() {
|
|
|
11602
11604
|
}
|
|
11603
11605
|
}
|
|
11604
11606
|
};
|
|
11605
|
-
|
|
11607
|
+
kt.prototype.getDelta = function(t) {
|
|
11606
11608
|
return this._depth[t][w.RIGHT] - this._depth[t][w.LEFT];
|
|
11607
11609
|
};
|
|
11608
|
-
|
|
11610
|
+
kt.prototype.getLocation = function(t, e) {
|
|
11609
11611
|
return this._depth[t][e] <= 0 ? y.EXTERIOR : y.INTERIOR;
|
|
11610
11612
|
};
|
|
11611
|
-
|
|
11613
|
+
kt.prototype.toString = function() {
|
|
11612
11614
|
return "A: " + this._depth[0][1] + "," + this._depth[0][2] + " B: " + this._depth[1][1] + "," + this._depth[1][2];
|
|
11613
11615
|
};
|
|
11614
|
-
|
|
11616
|
+
kt.prototype.add = function() {
|
|
11615
11617
|
var t = this;
|
|
11616
11618
|
if (arguments.length === 1)
|
|
11617
11619
|
for (var e = arguments[0], n = 0; n < 2; n++)
|
|
11618
11620
|
for (var i = 1; i < 3; i++) {
|
|
11619
11621
|
var o = e.getLocation(n, i);
|
|
11620
|
-
(o === y.EXTERIOR || o === y.INTERIOR) && (t.isNull(n, i) ? t._depth[n][i] =
|
|
11622
|
+
(o === y.EXTERIOR || o === y.INTERIOR) && (t.isNull(n, i) ? t._depth[n][i] = kt.depthAtLocation(o) : t._depth[n][i] += kt.depthAtLocation(o));
|
|
11621
11623
|
}
|
|
11622
11624
|
else if (arguments.length === 3) {
|
|
11623
11625
|
var s = arguments[0], a = arguments[1], u = arguments[2];
|
|
11624
11626
|
u === y.INTERIOR && this._depth[s][a]++;
|
|
11625
11627
|
}
|
|
11626
11628
|
};
|
|
11627
|
-
|
|
11629
|
+
kt.prototype.interfaces_ = function() {
|
|
11628
11630
|
return [];
|
|
11629
11631
|
};
|
|
11630
|
-
|
|
11631
|
-
return
|
|
11632
|
+
kt.prototype.getClass = function() {
|
|
11633
|
+
return kt;
|
|
11632
11634
|
};
|
|
11633
|
-
|
|
11634
|
-
return t === y.EXTERIOR ? 0 : t === y.INTERIOR ? 1 :
|
|
11635
|
+
kt.depthAtLocation = function(t) {
|
|
11636
|
+
return t === y.EXTERIOR ? 0 : t === y.INTERIOR ? 1 : kt.NULL_VALUE;
|
|
11635
11637
|
};
|
|
11636
11638
|
Eu.NULL_VALUE.get = function() {
|
|
11637
11639
|
return -1;
|
|
11638
11640
|
};
|
|
11639
|
-
Object.defineProperties(
|
|
11641
|
+
Object.defineProperties(kt, Eu);
|
|
11640
11642
|
var Bo = function(r) {
|
|
11641
11643
|
function t() {
|
|
11642
|
-
if (r.call(this), this.pts = null, this._env = null, this.eiList = new
|
|
11644
|
+
if (r.call(this), this.pts = null, this._env = null, this.eiList = new Pn(this), this._name = null, this._mce = null, this._isIsolated = !0, this._depth = new kt(), this._depthDelta = 0, arguments.length === 1) {
|
|
11643
11645
|
var e = arguments[0];
|
|
11644
11646
|
t.call(this, e, null);
|
|
11645
11647
|
} else if (arguments.length === 2) {
|
|
@@ -11792,7 +11794,7 @@ $t.prototype.createEmptyResultGeometry = function() {
|
|
|
11792
11794
|
$t.prototype.getNoder = function(t) {
|
|
11793
11795
|
if (this._workingNoder !== null)
|
|
11794
11796
|
return this._workingNoder;
|
|
11795
|
-
var e = new Vs(), n = new
|
|
11797
|
+
var e = new Vs(), n = new Mr();
|
|
11796
11798
|
return n.setPrecisionModel(t), e.setSegmentIntersector(new Se(n)), e;
|
|
11797
11799
|
};
|
|
11798
11800
|
$t.prototype.buffer = function(t, e) {
|
|
@@ -11852,7 +11854,7 @@ var ur = function() {
|
|
|
11852
11854
|
};
|
|
11853
11855
|
ur.prototype.rescale = function() {
|
|
11854
11856
|
var t = this;
|
|
11855
|
-
if (
|
|
11857
|
+
if (G(arguments[0], St))
|
|
11856
11858
|
for (var e = arguments[0], n = e.iterator(); n.hasNext(); ) {
|
|
11857
11859
|
var i = n.next();
|
|
11858
11860
|
t.rescale(i.getCoordinates());
|
|
@@ -11860,12 +11862,12 @@ ur.prototype.rescale = function() {
|
|
|
11860
11862
|
else if (arguments[0] instanceof Array) {
|
|
11861
11863
|
for (var o = arguments[0], s = 0; s < o.length; s++)
|
|
11862
11864
|
o[s].x = o[s].x / t._scaleFactor + t._offsetX, o[s].y = o[s].y / t._scaleFactor + t._offsetY;
|
|
11863
|
-
o.length === 2 && o[0].equals2D(o[1]) &&
|
|
11865
|
+
o.length === 2 && o[0].equals2D(o[1]) && Gt.out.println(o);
|
|
11864
11866
|
}
|
|
11865
11867
|
};
|
|
11866
11868
|
ur.prototype.scale = function() {
|
|
11867
11869
|
var t = this;
|
|
11868
|
-
if (
|
|
11870
|
+
if (G(arguments[0], St)) {
|
|
11869
11871
|
for (var e = arguments[0], n = new L(), i = e.iterator(); i.hasNext(); ) {
|
|
11870
11872
|
var o = i.next();
|
|
11871
11873
|
n.add(new Et(t.scale(o.getCoordinates()), o.getData()));
|
|
@@ -11890,13 +11892,13 @@ ur.prototype.computeNodes = function(t) {
|
|
|
11890
11892
|
this._isScaled && (e = this.scale(t)), this._noder.computeNodes(e);
|
|
11891
11893
|
};
|
|
11892
11894
|
ur.prototype.interfaces_ = function() {
|
|
11893
|
-
return [
|
|
11895
|
+
return [Sr];
|
|
11894
11896
|
};
|
|
11895
11897
|
ur.prototype.getClass = function() {
|
|
11896
11898
|
return ur;
|
|
11897
11899
|
};
|
|
11898
11900
|
var hn = function() {
|
|
11899
|
-
this._li = new
|
|
11901
|
+
this._li = new Mr(), this._segStrings = null;
|
|
11900
11902
|
var t = arguments[0];
|
|
11901
11903
|
this._segStrings = t;
|
|
11902
11904
|
}, Iu = { fact: { configurable: !0 } };
|
|
@@ -12122,17 +12124,17 @@ Wr.prototype.getInteriorIntersections = function() {
|
|
|
12122
12124
|
return this._interiorIntersections;
|
|
12123
12125
|
};
|
|
12124
12126
|
Wr.prototype.interfaces_ = function() {
|
|
12125
|
-
return [
|
|
12127
|
+
return [Lr];
|
|
12126
12128
|
};
|
|
12127
12129
|
Wr.prototype.getClass = function() {
|
|
12128
12130
|
return Wr;
|
|
12129
12131
|
};
|
|
12130
|
-
var
|
|
12132
|
+
var Rn = function() {
|
|
12131
12133
|
this._pm = null, this._li = null, this._scaleFactor = null, this._noder = null, this._pointSnapper = null, this._nodedSegStrings = null;
|
|
12132
12134
|
var t = arguments[0];
|
|
12133
|
-
this._pm = t, this._li = new
|
|
12135
|
+
this._pm = t, this._li = new Mr(), this._li.setPrecisionModel(t), this._scaleFactor = t.getScale();
|
|
12134
12136
|
};
|
|
12135
|
-
|
|
12137
|
+
Rn.prototype.checkCorrectness = function(t) {
|
|
12136
12138
|
var e = Et.getNodedSubstrings(t), n = new hn(e);
|
|
12137
12139
|
try {
|
|
12138
12140
|
n.checkValid();
|
|
@@ -12144,20 +12146,20 @@ Pn.prototype.checkCorrectness = function(t) {
|
|
|
12144
12146
|
} finally {
|
|
12145
12147
|
}
|
|
12146
12148
|
};
|
|
12147
|
-
|
|
12149
|
+
Rn.prototype.getNodedSubstrings = function() {
|
|
12148
12150
|
return Et.getNodedSubstrings(this._nodedSegStrings);
|
|
12149
12151
|
};
|
|
12150
|
-
|
|
12152
|
+
Rn.prototype.snapRound = function(t, e) {
|
|
12151
12153
|
var n = this.findInteriorIntersections(t, e);
|
|
12152
12154
|
this.computeIntersectionSnaps(n), this.computeVertexSnaps(t);
|
|
12153
12155
|
};
|
|
12154
|
-
|
|
12156
|
+
Rn.prototype.findInteriorIntersections = function(t, e) {
|
|
12155
12157
|
var n = new Wr(e);
|
|
12156
12158
|
return this._noder.setSegmentIntersector(n), this._noder.computeNodes(t), n.getInteriorIntersections();
|
|
12157
12159
|
};
|
|
12158
|
-
|
|
12160
|
+
Rn.prototype.computeVertexSnaps = function() {
|
|
12159
12161
|
var t = this;
|
|
12160
|
-
if (
|
|
12162
|
+
if (G(arguments[0], St))
|
|
12161
12163
|
for (var e = arguments[0], n = e.iterator(); n.hasNext(); ) {
|
|
12162
12164
|
var i = n.next();
|
|
12163
12165
|
t.computeVertexSnaps(i);
|
|
@@ -12168,20 +12170,20 @@ Pn.prototype.computeVertexSnaps = function() {
|
|
|
12168
12170
|
l && o.addIntersection(s[a], a);
|
|
12169
12171
|
}
|
|
12170
12172
|
};
|
|
12171
|
-
|
|
12173
|
+
Rn.prototype.computeNodes = function(t) {
|
|
12172
12174
|
this._nodedSegStrings = t, this._noder = new Vs(), this._pointSnapper = new Ci(this._noder.getIndex()), this.snapRound(t, this._li);
|
|
12173
12175
|
};
|
|
12174
|
-
|
|
12176
|
+
Rn.prototype.computeIntersectionSnaps = function(t) {
|
|
12175
12177
|
for (var e = this, n = t.iterator(); n.hasNext(); ) {
|
|
12176
12178
|
var i = n.next(), o = new ue(i, e._scaleFactor, e._li);
|
|
12177
12179
|
e._pointSnapper.snap(o);
|
|
12178
12180
|
}
|
|
12179
12181
|
};
|
|
12180
|
-
|
|
12181
|
-
return [
|
|
12182
|
+
Rn.prototype.interfaces_ = function() {
|
|
12183
|
+
return [Sr];
|
|
12182
12184
|
};
|
|
12183
|
-
|
|
12184
|
-
return
|
|
12185
|
+
Rn.prototype.getClass = function() {
|
|
12186
|
+
return Rn;
|
|
12185
12187
|
};
|
|
12186
12188
|
var Bt = function() {
|
|
12187
12189
|
if (this._argGeom = null, this._distance = null, this._bufParams = new J(), this._resultGeometry = null, this._saveException = null, arguments.length === 1) {
|
|
@@ -12191,9 +12193,9 @@ var Bt = function() {
|
|
|
12191
12193
|
var e = arguments[0], n = arguments[1];
|
|
12192
12194
|
this._argGeom = e, this._bufParams = n;
|
|
12193
12195
|
}
|
|
12194
|
-
},
|
|
12196
|
+
}, ki = { CAP_ROUND: { configurable: !0 }, CAP_BUTT: { configurable: !0 }, CAP_FLAT: { configurable: !0 }, CAP_SQUARE: { configurable: !0 }, MAX_PRECISION_DIGITS: { configurable: !0 } };
|
|
12195
12197
|
Bt.prototype.bufferFixedPrecision = function(t) {
|
|
12196
|
-
var e = new ur(new
|
|
12198
|
+
var e = new ur(new Rn(new Z(1)), t.getScale()), n = new $t(this._bufParams);
|
|
12197
12199
|
n.setWorkingPrecisionModel(t), n.setNoder(e), this._resultGeometry = n.buffer(this._argGeom, this._distance);
|
|
12198
12200
|
};
|
|
12199
12201
|
Bt.prototype.bufferReducedPrecision = function() {
|
|
@@ -12256,12 +12258,12 @@ Bt.bufferOp = function() {
|
|
|
12256
12258
|
var t = arguments[0], e = arguments[1], n = new Bt(t), i = n.getResultGeometry(e);
|
|
12257
12259
|
return i;
|
|
12258
12260
|
} else if (arguments.length === 3) {
|
|
12259
|
-
if (Number.isInteger(arguments[2]) && arguments[0] instanceof
|
|
12261
|
+
if (Number.isInteger(arguments[2]) && arguments[0] instanceof k && typeof arguments[1] == "number") {
|
|
12260
12262
|
var o = arguments[0], s = arguments[1], a = arguments[2], u = new Bt(o);
|
|
12261
12263
|
u.setQuadrantSegments(a);
|
|
12262
12264
|
var l = u.getResultGeometry(s);
|
|
12263
12265
|
return l;
|
|
12264
|
-
} else if (arguments[2] instanceof J && arguments[0] instanceof
|
|
12266
|
+
} else if (arguments[2] instanceof J && arguments[0] instanceof k && typeof arguments[1] == "number") {
|
|
12265
12267
|
var c = arguments[0], f = arguments[1], h = arguments[2], g = new Bt(c, h), p = g.getResultGeometry(f);
|
|
12266
12268
|
return p;
|
|
12267
12269
|
}
|
|
@@ -12276,22 +12278,22 @@ Bt.precisionScaleFactor = function(t, e, n) {
|
|
|
12276
12278
|
var i = t.getEnvelopeInternal(), o = Ce.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);
|
|
12277
12279
|
return c;
|
|
12278
12280
|
};
|
|
12279
|
-
|
|
12281
|
+
ki.CAP_ROUND.get = function() {
|
|
12280
12282
|
return J.CAP_ROUND;
|
|
12281
12283
|
};
|
|
12282
|
-
|
|
12284
|
+
ki.CAP_BUTT.get = function() {
|
|
12283
12285
|
return J.CAP_FLAT;
|
|
12284
12286
|
};
|
|
12285
|
-
|
|
12287
|
+
ki.CAP_FLAT.get = function() {
|
|
12286
12288
|
return J.CAP_FLAT;
|
|
12287
12289
|
};
|
|
12288
|
-
|
|
12290
|
+
ki.CAP_SQUARE.get = function() {
|
|
12289
12291
|
return J.CAP_SQUARE;
|
|
12290
12292
|
};
|
|
12291
|
-
|
|
12293
|
+
ki.MAX_PRECISION_DIGITS.get = function() {
|
|
12292
12294
|
return 12;
|
|
12293
12295
|
};
|
|
12294
|
-
Object.defineProperties(Bt,
|
|
12296
|
+
Object.defineProperties(Bt, ki);
|
|
12295
12297
|
var Kt = function() {
|
|
12296
12298
|
this._pt = [new v(), new v()], this._distance = V.NaN, this._isNull = !0;
|
|
12297
12299
|
};
|
|
@@ -12345,15 +12347,15 @@ Kt.prototype.interfaces_ = function() {
|
|
|
12345
12347
|
Kt.prototype.getClass = function() {
|
|
12346
12348
|
return Kt;
|
|
12347
12349
|
};
|
|
12348
|
-
var
|
|
12350
|
+
var In = function() {
|
|
12349
12351
|
};
|
|
12350
|
-
|
|
12352
|
+
In.prototype.interfaces_ = function() {
|
|
12351
12353
|
return [];
|
|
12352
12354
|
};
|
|
12353
|
-
|
|
12354
|
-
return
|
|
12355
|
+
In.prototype.getClass = function() {
|
|
12356
|
+
return In;
|
|
12355
12357
|
};
|
|
12356
|
-
|
|
12358
|
+
In.computeDistance = function() {
|
|
12357
12359
|
if (arguments[2] instanceof Kt && arguments[0] instanceof pt && arguments[1] instanceof v)
|
|
12358
12360
|
for (var t = arguments[0], e = arguments[1], n = arguments[2], i = t.getCoordinates(), o = new M(), s = 0; s < i.length - 1; s++) {
|
|
12359
12361
|
o.setCoordinates(i[s], i[s + 1]);
|
|
@@ -12362,19 +12364,19 @@ En.computeDistance = function() {
|
|
|
12362
12364
|
}
|
|
12363
12365
|
else if (arguments[2] instanceof Kt && arguments[0] instanceof Pt && arguments[1] instanceof v) {
|
|
12364
12366
|
var u = arguments[0], l = arguments[1], c = arguments[2];
|
|
12365
|
-
|
|
12367
|
+
In.computeDistance(u.getExteriorRing(), l, c);
|
|
12366
12368
|
for (var f = 0; f < u.getNumInteriorRing(); f++)
|
|
12367
|
-
|
|
12368
|
-
} else if (arguments[2] instanceof Kt && arguments[0] instanceof
|
|
12369
|
+
In.computeDistance(u.getInteriorRingN(f), l, c);
|
|
12370
|
+
} else if (arguments[2] instanceof Kt && arguments[0] instanceof k && arguments[1] instanceof v) {
|
|
12369
12371
|
var h = arguments[0], g = arguments[1], p = arguments[2];
|
|
12370
12372
|
if (h instanceof pt)
|
|
12371
|
-
|
|
12373
|
+
In.computeDistance(h, g, p);
|
|
12372
12374
|
else if (h instanceof Pt)
|
|
12373
|
-
|
|
12375
|
+
In.computeDistance(h, g, p);
|
|
12374
12376
|
else if (h instanceof te)
|
|
12375
12377
|
for (var m = h, d = 0; d < m.getNumGeometries(); d++) {
|
|
12376
12378
|
var _ = m.getGeometryN(d);
|
|
12377
|
-
|
|
12379
|
+
In.computeDistance(_, g, p);
|
|
12378
12380
|
}
|
|
12379
12381
|
else
|
|
12380
12382
|
p.setMinimum(h.getCoordinate(), g);
|
|
@@ -12383,28 +12385,28 @@ En.computeDistance = function() {
|
|
|
12383
12385
|
x.setMinimum(S, C);
|
|
12384
12386
|
}
|
|
12385
12387
|
};
|
|
12386
|
-
var
|
|
12388
|
+
var Pr = function(t) {
|
|
12387
12389
|
this._maxPtDist = new Kt(), this._inputGeom = t || null;
|
|
12388
12390
|
}, Us = { MaxPointDistanceFilter: { configurable: !0 }, MaxMidpointDistanceFilter: { configurable: !0 } };
|
|
12389
|
-
|
|
12391
|
+
Pr.prototype.computeMaxMidpointDistance = function(t) {
|
|
12390
12392
|
var e = new lr(this._inputGeom);
|
|
12391
12393
|
t.apply(e), this._maxPtDist.setMaximum(e.getMaxPointDistance());
|
|
12392
12394
|
};
|
|
12393
|
-
|
|
12395
|
+
Pr.prototype.computeMaxVertexDistance = function(t) {
|
|
12394
12396
|
var e = new jr(this._inputGeom);
|
|
12395
12397
|
t.apply(e), this._maxPtDist.setMaximum(e.getMaxPointDistance());
|
|
12396
12398
|
};
|
|
12397
|
-
|
|
12399
|
+
Pr.prototype.findDistance = function(t) {
|
|
12398
12400
|
return this.computeMaxVertexDistance(t), this.computeMaxMidpointDistance(t), this._maxPtDist.getDistance();
|
|
12399
12401
|
};
|
|
12400
|
-
|
|
12402
|
+
Pr.prototype.getDistancePoints = function() {
|
|
12401
12403
|
return this._maxPtDist;
|
|
12402
12404
|
};
|
|
12403
|
-
|
|
12405
|
+
Pr.prototype.interfaces_ = function() {
|
|
12404
12406
|
return [];
|
|
12405
12407
|
};
|
|
12406
|
-
|
|
12407
|
-
return
|
|
12408
|
+
Pr.prototype.getClass = function() {
|
|
12409
|
+
return Pr;
|
|
12408
12410
|
};
|
|
12409
12411
|
Us.MaxPointDistanceFilter.get = function() {
|
|
12410
12412
|
return jr;
|
|
@@ -12412,18 +12414,18 @@ Us.MaxPointDistanceFilter.get = function() {
|
|
|
12412
12414
|
Us.MaxMidpointDistanceFilter.get = function() {
|
|
12413
12415
|
return lr;
|
|
12414
12416
|
};
|
|
12415
|
-
Object.defineProperties(
|
|
12417
|
+
Object.defineProperties(Pr, Us);
|
|
12416
12418
|
var jr = function(t) {
|
|
12417
12419
|
this._maxPtDist = new Kt(), this._minPtDist = new Kt(), this._geom = t || null;
|
|
12418
12420
|
};
|
|
12419
12421
|
jr.prototype.filter = function(t) {
|
|
12420
|
-
this._minPtDist.initialize(),
|
|
12422
|
+
this._minPtDist.initialize(), In.computeDistance(this._geom, t, this._minPtDist), this._maxPtDist.setMaximum(this._minPtDist);
|
|
12421
12423
|
};
|
|
12422
12424
|
jr.prototype.getMaxPointDistance = function() {
|
|
12423
12425
|
return this._maxPtDist;
|
|
12424
12426
|
};
|
|
12425
12427
|
jr.prototype.interfaces_ = function() {
|
|
12426
|
-
return [
|
|
12428
|
+
return [Sn];
|
|
12427
12429
|
};
|
|
12428
12430
|
jr.prototype.getClass = function() {
|
|
12429
12431
|
return jr;
|
|
@@ -12435,7 +12437,7 @@ lr.prototype.filter = function(t, e) {
|
|
|
12435
12437
|
if (e === 0)
|
|
12436
12438
|
return null;
|
|
12437
12439
|
var n = t.getCoordinate(e - 1), i = t.getCoordinate(e), o = new v((n.x + i.x) / 2, (n.y + i.y) / 2);
|
|
12438
|
-
this._minPtDist.initialize(),
|
|
12440
|
+
this._minPtDist.initialize(), In.computeDistance(this._geom, o, this._minPtDist), this._maxPtDist.setMaximum(this._minPtDist);
|
|
12439
12441
|
};
|
|
12440
12442
|
lr.prototype.isDone = function() {
|
|
12441
12443
|
return !1;
|
|
@@ -12483,7 +12485,7 @@ var Ft = function() {
|
|
|
12483
12485
|
}
|
|
12484
12486
|
};
|
|
12485
12487
|
Ft.prototype.filter = function(t) {
|
|
12486
|
-
if (this._isForcedToLineString && t instanceof
|
|
12488
|
+
if (this._isForcedToLineString && t instanceof wn) {
|
|
12487
12489
|
var e = t.getFactory().createLineString(t.getCoordinateSequence());
|
|
12488
12490
|
return this._lines.add(e), null;
|
|
12489
12491
|
}
|
|
@@ -12512,27 +12514,27 @@ Ft.getLines = function() {
|
|
|
12512
12514
|
var t = arguments[0];
|
|
12513
12515
|
return Ft.getLines(t, !1);
|
|
12514
12516
|
} else if (arguments.length === 2) {
|
|
12515
|
-
if (
|
|
12517
|
+
if (G(arguments[0], St) && G(arguments[1], St)) {
|
|
12516
12518
|
for (var e = arguments[0], n = arguments[1], i = e.iterator(); i.hasNext(); ) {
|
|
12517
12519
|
var o = i.next();
|
|
12518
12520
|
Ft.getLines(o, n);
|
|
12519
12521
|
}
|
|
12520
12522
|
return n;
|
|
12521
|
-
} else if (arguments[0] instanceof
|
|
12523
|
+
} else if (arguments[0] instanceof k && typeof arguments[1] == "boolean") {
|
|
12522
12524
|
var s = arguments[0], a = arguments[1], u = new L();
|
|
12523
12525
|
return s.apply(new Ft(u, a)), u;
|
|
12524
|
-
} else if (arguments[0] instanceof
|
|
12526
|
+
} else if (arguments[0] instanceof k && G(arguments[1], St)) {
|
|
12525
12527
|
var l = arguments[0], c = arguments[1];
|
|
12526
12528
|
return l instanceof pt ? c.add(l) : l.apply(new Ft(c)), c;
|
|
12527
12529
|
}
|
|
12528
12530
|
} else if (arguments.length === 3) {
|
|
12529
|
-
if (typeof arguments[2] == "boolean" &&
|
|
12531
|
+
if (typeof arguments[2] == "boolean" && G(arguments[0], St) && G(arguments[1], St)) {
|
|
12530
12532
|
for (var f = arguments[0], h = arguments[1], g = arguments[2], p = f.iterator(); p.hasNext(); ) {
|
|
12531
12533
|
var m = p.next();
|
|
12532
12534
|
Ft.getLines(m, h, g);
|
|
12533
12535
|
}
|
|
12534
12536
|
return h;
|
|
12535
|
-
} else if (typeof arguments[2] == "boolean" && arguments[0] instanceof
|
|
12537
|
+
} else if (typeof arguments[2] == "boolean" && arguments[0] instanceof k && G(arguments[1], St)) {
|
|
12536
12538
|
var d = arguments[0], _ = arguments[1], I = arguments[2];
|
|
12537
12539
|
return d.apply(new Ft(_, I)), _;
|
|
12538
12540
|
}
|
|
@@ -12593,18 +12595,18 @@ Ye.prototype.computeLocation = function(t, e) {
|
|
|
12593
12595
|
this.updateLocationInfo(this.locateInternal(t, e));
|
|
12594
12596
|
else if (e instanceof Pt)
|
|
12595
12597
|
this.updateLocationInfo(this.locateInternal(t, e));
|
|
12596
|
-
else if (e instanceof
|
|
12598
|
+
else if (e instanceof Nr)
|
|
12597
12599
|
for (var i = e, o = 0; o < i.getNumGeometries(); o++) {
|
|
12598
12600
|
var s = i.getGeometryN(o);
|
|
12599
12601
|
n.updateLocationInfo(n.locateInternal(t, s));
|
|
12600
12602
|
}
|
|
12601
|
-
else if (e instanceof
|
|
12603
|
+
else if (e instanceof xn)
|
|
12602
12604
|
for (var a = e, u = 0; u < a.getNumGeometries(); u++) {
|
|
12603
12605
|
var l = a.getGeometryN(u);
|
|
12604
12606
|
n.updateLocationInfo(n.locateInternal(t, l));
|
|
12605
12607
|
}
|
|
12606
12608
|
else if (e instanceof te)
|
|
12607
|
-
for (var c = new
|
|
12609
|
+
for (var c = new Nn(e); c.hasNext(); ) {
|
|
12608
12610
|
var f = c.next();
|
|
12609
12611
|
f !== e && n.computeLocation(t, f);
|
|
12610
12612
|
}
|
|
@@ -12712,7 +12714,7 @@ zt.prototype.computeContainmentDistance = function() {
|
|
|
12712
12714
|
return this._minDistanceLocation[o] = i[0], this._minDistanceLocation[n] = i[1], null;
|
|
12713
12715
|
}
|
|
12714
12716
|
} else if (arguments.length === 3) {
|
|
12715
|
-
if (arguments[2] instanceof Array &&
|
|
12717
|
+
if (arguments[2] instanceof Array && G(arguments[0], Ge) && G(arguments[1], Ge)) {
|
|
12716
12718
|
for (var u = arguments[0], l = arguments[1], c = arguments[2], f = 0; f < u.size(); f++)
|
|
12717
12719
|
for (var h = u.get(f), g = 0; g < l.size(); g++)
|
|
12718
12720
|
if (t.computeContainmentDistance(h, l.get(g), c), t._minDistance <= t._terminateDistance)
|
|
@@ -12905,7 +12907,7 @@ tn.computeDistance = function() {
|
|
|
12905
12907
|
tn.computeDistance(u.getExteriorRing(), l, c);
|
|
12906
12908
|
for (var f = 0; f < u.getNumInteriorRing(); f++)
|
|
12907
12909
|
tn.computeDistance(u.getInteriorRingN(f), l, c);
|
|
12908
|
-
} else if (arguments[2] instanceof Xt && arguments[0] instanceof
|
|
12910
|
+
} else if (arguments[2] instanceof Xt && arguments[0] instanceof k && arguments[1] instanceof v) {
|
|
12909
12911
|
var h = arguments[0], g = arguments[1], p = arguments[2];
|
|
12910
12912
|
if (h instanceof pt)
|
|
12911
12913
|
tn.computeDistance(h, g, p);
|
|
@@ -12986,7 +12988,7 @@ Qr.prototype.getMaxPointDistance = function() {
|
|
|
12986
12988
|
return this._maxPtDist;
|
|
12987
12989
|
};
|
|
12988
12990
|
Qr.prototype.interfaces_ = function() {
|
|
12989
|
-
return [
|
|
12991
|
+
return [Sn];
|
|
12990
12992
|
};
|
|
12991
12993
|
Qr.prototype.getClass = function() {
|
|
12992
12994
|
return Qr;
|
|
@@ -13033,10 +13035,10 @@ he.prototype.checkMaximumDistance = function(t, e, n) {
|
|
|
13033
13035
|
};
|
|
13034
13036
|
he.prototype.isValid = function() {
|
|
13035
13037
|
var t = Math.abs(this._bufDistance), e = he.MAX_DISTANCE_DIFF_FRAC * t;
|
|
13036
|
-
return this._minValidDistance = t - e, this._maxValidDistance = t + e, this._input.isEmpty() || this._result.isEmpty() ? !0 : (this._bufDistance > 0 ? this.checkPositiveValid() : this.checkNegativeValid(), he.VERBOSE &&
|
|
13038
|
+
return this._minValidDistance = t - e, this._maxValidDistance = t + e, this._input.isEmpty() || this._result.isEmpty() ? !0 : (this._bufDistance > 0 ? this.checkPositiveValid() : this.checkNegativeValid(), he.VERBOSE && Gt.out.println("Min Dist= " + this._minDistanceFound + " err= " + (1 - this._minDistanceFound / this._bufDistance) + " Max Dist= " + this._maxDistanceFound + " err= " + (this._maxDistanceFound / this._bufDistance - 1)), this._isValid);
|
|
13037
13039
|
};
|
|
13038
13040
|
he.prototype.checkNegativeValid = function() {
|
|
13039
|
-
if (!(this._input instanceof Pt || this._input instanceof
|
|
13041
|
+
if (!(this._input instanceof Pt || this._input instanceof xn || this._input instanceof te))
|
|
13040
13042
|
return null;
|
|
13041
13043
|
var t = this.getPolygonLines(this._input);
|
|
13042
13044
|
if (this.checkMinimumDistance(t, this._result, this._minValidDistance), !this._isValid)
|
|
@@ -13111,7 +13113,7 @@ Vt.prototype.checkArea = function() {
|
|
|
13111
13113
|
this._distance > 0 && t > e && (this._isValid = !1, this._errorMsg = "Area of positive buffer is smaller than input", this._errorIndicator = this._result), this._distance < 0 && t < e && (this._isValid = !1, this._errorMsg = "Area of negative buffer is larger than input", this._errorIndicator = this._result), this.report("Area");
|
|
13112
13114
|
};
|
|
13113
13115
|
Vt.prototype.checkPolygonal = function() {
|
|
13114
|
-
this._result instanceof Pt || this._result instanceof
|
|
13116
|
+
this._result instanceof Pt || this._result instanceof xn || (this._isValid = !1), this._errorMsg = "Result is not polygonal", this._errorIndicator = this._result, this.report("Polygonal");
|
|
13115
13117
|
};
|
|
13116
13118
|
Vt.prototype.getErrorIndicator = function() {
|
|
13117
13119
|
return this._errorIndicator;
|
|
@@ -13127,7 +13129,7 @@ Vt.prototype.checkExpectedEmpty = function() {
|
|
|
13127
13129
|
Vt.prototype.report = function(t) {
|
|
13128
13130
|
if (!Vt.VERBOSE)
|
|
13129
13131
|
return null;
|
|
13130
|
-
|
|
13132
|
+
Gt.out.println("Check " + t + ": " + (this._isValid ? "passed" : "FAILED"));
|
|
13131
13133
|
};
|
|
13132
13134
|
Vt.prototype.getErrorMessage = function() {
|
|
13133
13135
|
return this._errorMsg;
|
|
@@ -13183,7 +13185,7 @@ gn.prototype.toString = function() {
|
|
|
13183
13185
|
return ze.toLineString(new yt(this._pts));
|
|
13184
13186
|
};
|
|
13185
13187
|
gn.prototype.interfaces_ = function() {
|
|
13186
|
-
return [
|
|
13188
|
+
return [bn];
|
|
13187
13189
|
};
|
|
13188
13190
|
gn.prototype.getClass = function() {
|
|
13189
13191
|
return gn;
|
|
@@ -13235,7 +13237,7 @@ Dt.prototype.isDone = function() {
|
|
|
13235
13237
|
return this._findAllIntersections ? !1 : this._interiorIntersection !== null;
|
|
13236
13238
|
};
|
|
13237
13239
|
Dt.prototype.interfaces_ = function() {
|
|
13238
|
-
return [
|
|
13240
|
+
return [Lr];
|
|
13239
13241
|
};
|
|
13240
13242
|
Dt.prototype.getClass = function() {
|
|
13241
13243
|
return Dt;
|
|
@@ -13252,7 +13254,7 @@ Dt.createIntersectionCounter = function(t) {
|
|
|
13252
13254
|
return e.setFindAllIntersections(!0), e.setKeepIntersections(!1), e;
|
|
13253
13255
|
};
|
|
13254
13256
|
var He = function() {
|
|
13255
|
-
this._li = new
|
|
13257
|
+
this._li = new Mr(), this._segStrings = null, this._findAllIntersections = !1, this._segInt = null, this._isValid = !0;
|
|
13256
13258
|
var t = arguments[0];
|
|
13257
13259
|
this._segStrings = t;
|
|
13258
13260
|
};
|
|
@@ -13296,29 +13298,29 @@ He.computeIntersections = function(t) {
|
|
|
13296
13298
|
var e = new He(t);
|
|
13297
13299
|
return e.setFindAllIntersections(!0), e.isValid(), e.getIntersections();
|
|
13298
13300
|
};
|
|
13299
|
-
var
|
|
13301
|
+
var Rr = function r() {
|
|
13300
13302
|
this._nv = null;
|
|
13301
13303
|
var t = arguments[0];
|
|
13302
13304
|
this._nv = new He(r.toSegmentStrings(t));
|
|
13303
13305
|
};
|
|
13304
|
-
|
|
13306
|
+
Rr.prototype.checkValid = function() {
|
|
13305
13307
|
this._nv.checkValid();
|
|
13306
13308
|
};
|
|
13307
|
-
|
|
13309
|
+
Rr.prototype.interfaces_ = function() {
|
|
13308
13310
|
return [];
|
|
13309
13311
|
};
|
|
13310
|
-
|
|
13311
|
-
return
|
|
13312
|
+
Rr.prototype.getClass = function() {
|
|
13313
|
+
return Rr;
|
|
13312
13314
|
};
|
|
13313
|
-
|
|
13315
|
+
Rr.toSegmentStrings = function(t) {
|
|
13314
13316
|
for (var e = new L(), n = t.iterator(); n.hasNext(); ) {
|
|
13315
13317
|
var i = n.next();
|
|
13316
13318
|
e.add(new gn(i.getCoordinates(), i));
|
|
13317
13319
|
}
|
|
13318
13320
|
return e;
|
|
13319
13321
|
};
|
|
13320
|
-
|
|
13321
|
-
var e = new
|
|
13322
|
+
Rr.checkValid = function(t) {
|
|
13323
|
+
var e = new Rr(t);
|
|
13322
13324
|
e.checkValid();
|
|
13323
13325
|
};
|
|
13324
13326
|
var Jr = function(t) {
|
|
@@ -13438,10 +13440,10 @@ le.prototype.transformPoint = function(t, e) {
|
|
|
13438
13440
|
};
|
|
13439
13441
|
le.prototype.transformPolygon = function(t, e) {
|
|
13440
13442
|
var n = this, i = !0, o = this.transformLinearRing(t.getExteriorRing(), t);
|
|
13441
|
-
(o === null || !(o instanceof
|
|
13443
|
+
(o === null || !(o instanceof wn) || o.isEmpty()) && (i = !1);
|
|
13442
13444
|
for (var s = new L(), a = 0; a < t.getNumInteriorRing(); a++) {
|
|
13443
13445
|
var u = n.transformLinearRing(t.getInteriorRingN(a), t);
|
|
13444
|
-
u === null || u.isEmpty() || (u instanceof
|
|
13446
|
+
u === null || u.isEmpty() || (u instanceof wn || (i = !1), s.add(u));
|
|
13445
13447
|
}
|
|
13446
13448
|
if (i)
|
|
13447
13449
|
return this._factory.createPolygon(o, s.toArray([]));
|
|
@@ -13496,15 +13498,15 @@ le.prototype.transform = function(t) {
|
|
|
13496
13498
|
return this.transformPoint(t, null);
|
|
13497
13499
|
if (t instanceof yi)
|
|
13498
13500
|
return this.transformMultiPoint(t, null);
|
|
13499
|
-
if (t instanceof
|
|
13501
|
+
if (t instanceof wn)
|
|
13500
13502
|
return this.transformLinearRing(t, null);
|
|
13501
13503
|
if (t instanceof pt)
|
|
13502
13504
|
return this.transformLineString(t, null);
|
|
13503
|
-
if (t instanceof
|
|
13505
|
+
if (t instanceof Nr)
|
|
13504
13506
|
return this.transformMultiLineString(t, null);
|
|
13505
13507
|
if (t instanceof Pt)
|
|
13506
13508
|
return this.transformPolygon(t, null);
|
|
13507
|
-
if (t instanceof
|
|
13509
|
+
if (t instanceof xn)
|
|
13508
13510
|
return this.transformMultiPolygon(t, null);
|
|
13509
13511
|
if (t instanceof te)
|
|
13510
13512
|
return this.transformGeometryCollection(t, null);
|
|
@@ -13523,7 +13525,7 @@ le.prototype.interfaces_ = function() {
|
|
|
13523
13525
|
le.prototype.getClass = function() {
|
|
13524
13526
|
return le;
|
|
13525
13527
|
};
|
|
13526
|
-
var
|
|
13528
|
+
var On = function r() {
|
|
13527
13529
|
if (this._snapTolerance = 0, this._srcPts = null, this._seg = new M(), this._allowSnappingToSourceVertices = !1, this._isClosed = !1, arguments[0] instanceof pt && typeof arguments[1] == "number") {
|
|
13528
13530
|
var t = arguments[0], e = arguments[1];
|
|
13529
13531
|
r.call(this, t.getCoordinates(), e);
|
|
@@ -13532,13 +13534,13 @@ var Rn = function r() {
|
|
|
13532
13534
|
this._srcPts = n, this._isClosed = r.isClosed(n), this._snapTolerance = i;
|
|
13533
13535
|
}
|
|
13534
13536
|
};
|
|
13535
|
-
|
|
13537
|
+
On.prototype.snapVertices = function(t, e) {
|
|
13536
13538
|
for (var n = this, i = this._isClosed ? t.size() - 1 : t.size(), o = 0; o < i; o++) {
|
|
13537
13539
|
var s = t.get(o), a = n.findSnapForVertex(s, e);
|
|
13538
13540
|
a !== null && (t.set(o, new v(a)), o === 0 && n._isClosed && t.set(t.size() - 1, new v(a)));
|
|
13539
13541
|
}
|
|
13540
13542
|
};
|
|
13541
|
-
|
|
13543
|
+
On.prototype.findSnapForVertex = function(t, e) {
|
|
13542
13544
|
for (var n = this, i = 0; i < e.length; i++) {
|
|
13543
13545
|
if (t.equals2D(e[i]))
|
|
13544
13546
|
return null;
|
|
@@ -13547,13 +13549,13 @@ Rn.prototype.findSnapForVertex = function(t, e) {
|
|
|
13547
13549
|
}
|
|
13548
13550
|
return null;
|
|
13549
13551
|
};
|
|
13550
|
-
|
|
13552
|
+
On.prototype.snapTo = function(t) {
|
|
13551
13553
|
var e = new go(this._srcPts);
|
|
13552
13554
|
this.snapVertices(e, t), this.snapSegments(e, t);
|
|
13553
13555
|
var n = e.toCoordinateArray();
|
|
13554
13556
|
return n;
|
|
13555
13557
|
};
|
|
13556
|
-
|
|
13558
|
+
On.prototype.snapSegments = function(t, e) {
|
|
13557
13559
|
var n = this;
|
|
13558
13560
|
if (e.length === 0)
|
|
13559
13561
|
return null;
|
|
@@ -13564,7 +13566,7 @@ Rn.prototype.snapSegments = function(t, e) {
|
|
|
13564
13566
|
a >= 0 && t.add(a + 1, new v(s), !1);
|
|
13565
13567
|
}
|
|
13566
13568
|
};
|
|
13567
|
-
|
|
13569
|
+
On.prototype.findSegmentIndexToSnap = function(t, e) {
|
|
13568
13570
|
for (var n = this, i = V.MAX_VALUE, o = -1, s = 0; s < e.size() - 1; s++) {
|
|
13569
13571
|
if (n._seg.p0 = e.get(s), n._seg.p1 = e.get(s + 1), n._seg.p0.equals2D(t) || n._seg.p1.equals2D(t)) {
|
|
13570
13572
|
if (n._allowSnappingToSourceVertices)
|
|
@@ -13576,16 +13578,16 @@ Rn.prototype.findSegmentIndexToSnap = function(t, e) {
|
|
|
13576
13578
|
}
|
|
13577
13579
|
return o;
|
|
13578
13580
|
};
|
|
13579
|
-
|
|
13581
|
+
On.prototype.setAllowSnappingToSourceVertices = function(t) {
|
|
13580
13582
|
this._allowSnappingToSourceVertices = t;
|
|
13581
13583
|
};
|
|
13582
|
-
|
|
13584
|
+
On.prototype.interfaces_ = function() {
|
|
13583
13585
|
return [];
|
|
13584
13586
|
};
|
|
13585
|
-
|
|
13586
|
-
return
|
|
13587
|
+
On.prototype.getClass = function() {
|
|
13588
|
+
return On;
|
|
13587
13589
|
};
|
|
13588
|
-
|
|
13590
|
+
On.isClosed = function(t) {
|
|
13589
13591
|
return t.length <= 1 ? !1 : t[0].equals2D(t[t.length - 1]);
|
|
13590
13592
|
};
|
|
13591
13593
|
var mt = function(t) {
|
|
@@ -13597,7 +13599,7 @@ mt.prototype.snapTo = function(t, e) {
|
|
|
13597
13599
|
};
|
|
13598
13600
|
mt.prototype.snapToSelf = function(t, e) {
|
|
13599
13601
|
var n = this.extractTargetCoordinates(this._srcGeom), i = new Lu(t, n, !0), o = i.transform(this._srcGeom), s = o;
|
|
13600
|
-
return e &&
|
|
13602
|
+
return e && G(s, ir) && (s = o.buffer(0)), s;
|
|
13601
13603
|
};
|
|
13602
13604
|
mt.prototype.computeSnapTolerance = function(t) {
|
|
13603
13605
|
var e = this.computeMinimumSegmentLength(t), n = e / 10;
|
|
@@ -13657,7 +13659,7 @@ var Lu = function(r) {
|
|
|
13657
13659
|
r.call(this), this._snapTolerance = e || null, this._snapPts = n || null, this._isSelfSnap = i !== void 0 ? i : !1;
|
|
13658
13660
|
}
|
|
13659
13661
|
return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t.prototype.snapLine = function(n, i) {
|
|
13660
|
-
var o = new
|
|
13662
|
+
var o = new On(n, this._snapTolerance);
|
|
13661
13663
|
return o.setAllowSnappingToSourceVertices(this._isSelfSnap), o.snapTo(i);
|
|
13662
13664
|
}, t.prototype.transformCoordinates = function(n, i) {
|
|
13663
13665
|
var o = n.toCoordinateArray(), s = this.snapLine(o, this._snapPts);
|
|
@@ -13757,7 +13759,7 @@ $r.prototype.getCommonCoordinate = function() {
|
|
|
13757
13759
|
return new v(this._commonBitsX.getCommon(), this._commonBitsY.getCommon());
|
|
13758
13760
|
};
|
|
13759
13761
|
$r.prototype.interfaces_ = function() {
|
|
13760
|
-
return [
|
|
13762
|
+
return [Sn];
|
|
13761
13763
|
};
|
|
13762
13764
|
$r.prototype.getClass = function() {
|
|
13763
13765
|
return $r;
|
|
@@ -13803,7 +13805,7 @@ Tt.prototype.getResultGeometry = function(t) {
|
|
|
13803
13805
|
return this.prepareResult(n);
|
|
13804
13806
|
};
|
|
13805
13807
|
Tt.prototype.checkValid = function(t) {
|
|
13806
|
-
t.isValid() ||
|
|
13808
|
+
t.isValid() || Gt.out.println("Snapped geometry is invalid");
|
|
13807
13809
|
};
|
|
13808
13810
|
Tt.prototype.computeSnapTolerance = function() {
|
|
13809
13811
|
this._snapTolerance = mt.computeOverlaySnapTolerance(this._geom[0], this._geom[1]);
|
|
@@ -13942,13 +13944,13 @@ Ws.DELETE.get = function() {
|
|
|
13942
13944
|
return 2;
|
|
13943
13945
|
};
|
|
13944
13946
|
Object.defineProperties(ve, Ws);
|
|
13945
|
-
var
|
|
13947
|
+
var ko = function() {
|
|
13946
13948
|
};
|
|
13947
|
-
|
|
13949
|
+
ko.prototype.interfaces_ = function() {
|
|
13948
13950
|
return [];
|
|
13949
13951
|
};
|
|
13950
|
-
|
|
13951
|
-
return
|
|
13952
|
+
ko.prototype.getClass = function() {
|
|
13953
|
+
return ko;
|
|
13952
13954
|
};
|
|
13953
13955
|
var Ut = function() {
|
|
13954
13956
|
this._hasIntersection = !1, this._hasProper = !1, this._hasProperInterior = !1, this._properIntersectionPoint = null, this._li = null, this._includeProper = null, this._recordIsolated = null, this._isSelfIntersection = null, this._numIntersections = 0, this.numTests = 0, this._bdyNodes = null, this._isDone = !1, this._isDoneWhenProperInt = !1;
|
|
@@ -14015,7 +14017,7 @@ Ut.prototype.getClass = function() {
|
|
|
14015
14017
|
Ut.isAdjacentSegments = function(t, e) {
|
|
14016
14018
|
return Math.abs(t - e) === 1;
|
|
14017
14019
|
};
|
|
14018
|
-
var
|
|
14020
|
+
var Oc = function(r) {
|
|
14019
14021
|
function t() {
|
|
14020
14022
|
r.call(this), this.events = new L(), this.nOverlaps = null;
|
|
14021
14023
|
}
|
|
@@ -14037,10 +14039,10 @@ var Pc = function(r) {
|
|
|
14037
14039
|
break;
|
|
14038
14040
|
}
|
|
14039
14041
|
} else if (arguments.length === 3) {
|
|
14040
|
-
if (arguments[2] instanceof Ut &&
|
|
14042
|
+
if (arguments[2] instanceof Ut && G(arguments[0], Ge) && G(arguments[1], Ge)) {
|
|
14041
14043
|
var a = arguments[0], u = arguments[1], l = arguments[2];
|
|
14042
14044
|
this.addEdges(a, a), this.addEdges(u, u), this.computeIntersections(l);
|
|
14043
|
-
} else if (typeof arguments[2] == "boolean" &&
|
|
14045
|
+
} else if (typeof arguments[2] == "boolean" && G(arguments[0], Ge) && arguments[1] instanceof Ut) {
|
|
14044
14046
|
var c = arguments[0], f = arguments[1], h = arguments[2];
|
|
14045
14047
|
h ? this.addEdges(c, null) : this.addEdges(c), this.computeIntersections(f);
|
|
14046
14048
|
}
|
|
@@ -14075,31 +14077,31 @@ var Pc = function(r) {
|
|
|
14075
14077
|
}, t.prototype.getClass = function() {
|
|
14076
14078
|
return t;
|
|
14077
14079
|
}, t;
|
|
14078
|
-
}(
|
|
14080
|
+
}(ko), Dn = function() {
|
|
14079
14081
|
this._min = V.POSITIVE_INFINITY, this._max = V.NEGATIVE_INFINITY;
|
|
14080
14082
|
}, bu = { NodeComparator: { configurable: !0 } };
|
|
14081
|
-
|
|
14083
|
+
Dn.prototype.getMin = function() {
|
|
14082
14084
|
return this._min;
|
|
14083
14085
|
};
|
|
14084
|
-
|
|
14086
|
+
Dn.prototype.intersects = function(t, e) {
|
|
14085
14087
|
return !(this._min > e || this._max < t);
|
|
14086
14088
|
};
|
|
14087
|
-
|
|
14089
|
+
Dn.prototype.getMax = function() {
|
|
14088
14090
|
return this._max;
|
|
14089
14091
|
};
|
|
14090
|
-
|
|
14092
|
+
Dn.prototype.toString = function() {
|
|
14091
14093
|
return ze.toLineString(new v(this._min, 0), new v(this._max, 0));
|
|
14092
14094
|
};
|
|
14093
|
-
|
|
14095
|
+
Dn.prototype.interfaces_ = function() {
|
|
14094
14096
|
return [];
|
|
14095
14097
|
};
|
|
14096
|
-
|
|
14097
|
-
return
|
|
14098
|
+
Dn.prototype.getClass = function() {
|
|
14099
|
+
return Dn;
|
|
14098
14100
|
};
|
|
14099
14101
|
bu.NodeComparator.get = function() {
|
|
14100
14102
|
return lo;
|
|
14101
14103
|
};
|
|
14102
|
-
Object.defineProperties(
|
|
14104
|
+
Object.defineProperties(Dn, bu);
|
|
14103
14105
|
var lo = function() {
|
|
14104
14106
|
};
|
|
14105
14107
|
lo.prototype.compare = function(t, e) {
|
|
@@ -14112,7 +14114,7 @@ lo.prototype.interfaces_ = function() {
|
|
|
14112
14114
|
lo.prototype.getClass = function() {
|
|
14113
14115
|
return lo;
|
|
14114
14116
|
};
|
|
14115
|
-
var
|
|
14117
|
+
var Dc = function(r) {
|
|
14116
14118
|
function t() {
|
|
14117
14119
|
r.call(this), this._item = null;
|
|
14118
14120
|
var e = arguments[0], n = arguments[1], i = arguments[2];
|
|
@@ -14127,7 +14129,7 @@ var Rc = function(r) {
|
|
|
14127
14129
|
}, t.prototype.getClass = function() {
|
|
14128
14130
|
return t;
|
|
14129
14131
|
}, t;
|
|
14130
|
-
}(
|
|
14132
|
+
}(Dn), Tc = function(r) {
|
|
14131
14133
|
function t() {
|
|
14132
14134
|
r.call(this), this._node1 = null, this._node2 = null;
|
|
14133
14135
|
var e = arguments[0], n = arguments[1];
|
|
@@ -14144,56 +14146,56 @@ var Rc = function(r) {
|
|
|
14144
14146
|
}, t.prototype.getClass = function() {
|
|
14145
14147
|
return t;
|
|
14146
14148
|
}, t;
|
|
14147
|
-
}(
|
|
14149
|
+
}(Dn), Tn = function() {
|
|
14148
14150
|
this._leaves = new L(), this._root = null, this._level = 0;
|
|
14149
14151
|
};
|
|
14150
|
-
|
|
14152
|
+
Tn.prototype.buildTree = function() {
|
|
14151
14153
|
var t = this;
|
|
14152
|
-
qe.sort(this._leaves, new
|
|
14154
|
+
qe.sort(this._leaves, new Dn.NodeComparator());
|
|
14153
14155
|
for (var e = this._leaves, n = null, i = new L(); ; ) {
|
|
14154
14156
|
if (t.buildLevel(e, i), i.size() === 1)
|
|
14155
14157
|
return i.get(0);
|
|
14156
14158
|
n = e, e = i, i = n;
|
|
14157
14159
|
}
|
|
14158
14160
|
};
|
|
14159
|
-
|
|
14161
|
+
Tn.prototype.insert = function(t, e, n) {
|
|
14160
14162
|
if (this._root !== null)
|
|
14161
14163
|
throw new Error("Index cannot be added to once it has been queried");
|
|
14162
|
-
this._leaves.add(new
|
|
14164
|
+
this._leaves.add(new Dc(t, e, n));
|
|
14163
14165
|
};
|
|
14164
|
-
|
|
14166
|
+
Tn.prototype.query = function(t, e, n) {
|
|
14165
14167
|
this.init(), this._root.query(t, e, n);
|
|
14166
14168
|
};
|
|
14167
|
-
|
|
14169
|
+
Tn.prototype.buildRoot = function() {
|
|
14168
14170
|
if (this._root !== null)
|
|
14169
14171
|
return null;
|
|
14170
14172
|
this._root = this.buildTree();
|
|
14171
14173
|
};
|
|
14172
|
-
|
|
14173
|
-
|
|
14174
|
+
Tn.prototype.printNode = function(t) {
|
|
14175
|
+
Gt.out.println(ze.toLineString(new v(t._min, this._level), new v(t._max, this._level)));
|
|
14174
14176
|
};
|
|
14175
|
-
|
|
14177
|
+
Tn.prototype.init = function() {
|
|
14176
14178
|
if (this._root !== null)
|
|
14177
14179
|
return null;
|
|
14178
14180
|
this.buildRoot();
|
|
14179
14181
|
};
|
|
14180
|
-
|
|
14182
|
+
Tn.prototype.buildLevel = function(t, e) {
|
|
14181
14183
|
this._level++, e.clear();
|
|
14182
14184
|
for (var n = 0; n < t.size(); n += 2) {
|
|
14183
14185
|
var i = t.get(n), o = n + 1 < t.size() ? t.get(n) : null;
|
|
14184
14186
|
if (o === null)
|
|
14185
14187
|
e.add(i);
|
|
14186
14188
|
else {
|
|
14187
|
-
var s = new
|
|
14189
|
+
var s = new Tc(t.get(n), t.get(n + 1));
|
|
14188
14190
|
e.add(s);
|
|
14189
14191
|
}
|
|
14190
14192
|
}
|
|
14191
14193
|
};
|
|
14192
|
-
|
|
14194
|
+
Tn.prototype.interfaces_ = function() {
|
|
14193
14195
|
return [];
|
|
14194
14196
|
};
|
|
14195
|
-
|
|
14196
|
-
return
|
|
14197
|
+
Tn.prototype.getClass = function() {
|
|
14198
|
+
return Tn;
|
|
14197
14199
|
};
|
|
14198
14200
|
var xi = function() {
|
|
14199
14201
|
this._items = new L();
|
|
@@ -14213,9 +14215,9 @@ xi.prototype.getClass = function() {
|
|
|
14213
14215
|
var Ni = function() {
|
|
14214
14216
|
this._index = null;
|
|
14215
14217
|
var t = arguments[0];
|
|
14216
|
-
if (!
|
|
14218
|
+
if (!G(t, ir))
|
|
14217
14219
|
throw new lt("Argument must be Polygonal");
|
|
14218
|
-
this._index = new
|
|
14220
|
+
this._index = new Or(t);
|
|
14219
14221
|
}, js = { SegmentVisitor: { configurable: !0 }, IntervalIndexedGeometry: { configurable: !0 } };
|
|
14220
14222
|
Ni.prototype.locate = function(t) {
|
|
14221
14223
|
var e = new nn(t), n = new Si(e);
|
|
@@ -14231,7 +14233,7 @@ js.SegmentVisitor.get = function() {
|
|
|
14231
14233
|
return Si;
|
|
14232
14234
|
};
|
|
14233
14235
|
js.IntervalIndexedGeometry.get = function() {
|
|
14234
|
-
return
|
|
14236
|
+
return Or;
|
|
14235
14237
|
};
|
|
14236
14238
|
Object.defineProperties(Ni, js);
|
|
14237
14239
|
var Si = function() {
|
|
@@ -14249,24 +14251,24 @@ Si.prototype.interfaces_ = function() {
|
|
|
14249
14251
|
Si.prototype.getClass = function() {
|
|
14250
14252
|
return Si;
|
|
14251
14253
|
};
|
|
14252
|
-
var
|
|
14253
|
-
this._index = new
|
|
14254
|
+
var Or = function() {
|
|
14255
|
+
this._index = new Tn();
|
|
14254
14256
|
var t = arguments[0];
|
|
14255
14257
|
this.init(t);
|
|
14256
14258
|
};
|
|
14257
|
-
|
|
14259
|
+
Or.prototype.init = function(t) {
|
|
14258
14260
|
for (var e = this, n = Ft.getLines(t), i = n.iterator(); i.hasNext(); ) {
|
|
14259
14261
|
var o = i.next(), s = o.getCoordinates();
|
|
14260
14262
|
e.addLine(s);
|
|
14261
14263
|
}
|
|
14262
14264
|
};
|
|
14263
|
-
|
|
14265
|
+
Or.prototype.addLine = function(t) {
|
|
14264
14266
|
for (var e = this, n = 1; n < t.length; n++) {
|
|
14265
14267
|
var i = new M(t[n - 1], t[n]), o = Math.min(i.p0.y, i.p1.y), s = Math.max(i.p0.y, i.p1.y);
|
|
14266
14268
|
e._index.insert(o, s, i);
|
|
14267
14269
|
}
|
|
14268
14270
|
};
|
|
14269
|
-
|
|
14271
|
+
Or.prototype.query = function() {
|
|
14270
14272
|
if (arguments.length === 2) {
|
|
14271
14273
|
var t = arguments[0], e = arguments[1], n = new xi();
|
|
14272
14274
|
return this._index.query(t, e, n), n.getItems();
|
|
@@ -14275,11 +14277,11 @@ Rr.prototype.query = function() {
|
|
|
14275
14277
|
this._index.query(i, o, s);
|
|
14276
14278
|
}
|
|
14277
14279
|
};
|
|
14278
|
-
|
|
14280
|
+
Or.prototype.interfaces_ = function() {
|
|
14279
14281
|
return [];
|
|
14280
14282
|
};
|
|
14281
|
-
|
|
14282
|
-
return
|
|
14283
|
+
Or.prototype.getClass = function() {
|
|
14284
|
+
return Or;
|
|
14283
14285
|
};
|
|
14284
14286
|
var Vi = function(r) {
|
|
14285
14287
|
function t() {
|
|
@@ -14303,7 +14305,7 @@ var Vi = function(r) {
|
|
|
14303
14305
|
} else if (arguments.length === 3) {
|
|
14304
14306
|
var o = arguments[0], s = arguments[1], a = arguments[2], u = new Ut(o, !0, !1);
|
|
14305
14307
|
u.setIsDoneIfProperInt(a);
|
|
14306
|
-
var l = this.createEdgeSetIntersector(), c = this._parentGeom instanceof
|
|
14308
|
+
var l = this.createEdgeSetIntersector(), c = this._parentGeom instanceof wn || this._parentGeom instanceof Pt || this._parentGeom instanceof xn, f = s || !c;
|
|
14307
14309
|
return l.computeIntersections(this._edges, u, f), this.addSelfIntersectionNodes(this._argIndex), u;
|
|
14308
14310
|
}
|
|
14309
14311
|
}, t.prototype.computeSplitEdges = function(n) {
|
|
@@ -14375,7 +14377,7 @@ var Vi = function(r) {
|
|
|
14375
14377
|
var s = this._nodes.addNode(i), a = s.getLabel();
|
|
14376
14378
|
a === null ? s._label = new tt(n, o) : a.setLocation(n, o);
|
|
14377
14379
|
}, t.prototype.createEdgeSetIntersector = function() {
|
|
14378
|
-
return new
|
|
14380
|
+
return new Oc();
|
|
14379
14381
|
}, t.prototype.addSelfIntersectionNodes = function(n) {
|
|
14380
14382
|
for (var i = this, o = this._edges.iterator(); o.hasNext(); )
|
|
14381
14383
|
for (var s = o.next(), a = s.getLabel().getLocation(n), u = s.eiList.iterator(); u.hasNext(); ) {
|
|
@@ -14387,7 +14389,7 @@ var Vi = function(r) {
|
|
|
14387
14389
|
var n = arguments[0];
|
|
14388
14390
|
if (n.isEmpty())
|
|
14389
14391
|
return null;
|
|
14390
|
-
if (n instanceof
|
|
14392
|
+
if (n instanceof xn && (this._useBoundaryDeterminationRule = !1), n instanceof Pt)
|
|
14391
14393
|
this.addPolygon(n);
|
|
14392
14394
|
else if (n instanceof pt)
|
|
14393
14395
|
this.addLineString(n);
|
|
@@ -14395,9 +14397,9 @@ var Vi = function(r) {
|
|
|
14395
14397
|
this.addPoint(n);
|
|
14396
14398
|
else if (n instanceof yi)
|
|
14397
14399
|
this.addCollection(n);
|
|
14398
|
-
else if (n instanceof
|
|
14400
|
+
else if (n instanceof Nr)
|
|
14399
14401
|
this.addCollection(n);
|
|
14400
|
-
else if (n instanceof
|
|
14402
|
+
else if (n instanceof xn)
|
|
14401
14403
|
this.addCollection(n);
|
|
14402
14404
|
else if (n instanceof te)
|
|
14403
14405
|
this.addCollection(n);
|
|
@@ -14411,7 +14413,7 @@ var Vi = function(r) {
|
|
|
14411
14413
|
i.add(s);
|
|
14412
14414
|
}
|
|
14413
14415
|
}, t.prototype.locate = function(n) {
|
|
14414
|
-
return
|
|
14416
|
+
return G(this._parentGeom, ir) && this._parentGeom.getNumGeometries() > 50 ? (this._areaPtLocator === null && (this._areaPtLocator = new Ni(this._parentGeom)), this._areaPtLocator.locate(n)) : this._ptLocator.locate(n, this._parentGeom);
|
|
14415
14417
|
}, t.prototype.findEdge = function() {
|
|
14416
14418
|
if (arguments.length === 1) {
|
|
14417
14419
|
var n = arguments[0];
|
|
@@ -14426,7 +14428,7 @@ var Vi = function(r) {
|
|
|
14426
14428
|
return n.isInBoundary(i) ? y.BOUNDARY : y.INTERIOR;
|
|
14427
14429
|
}, t;
|
|
14428
14430
|
}(ht), wi = function() {
|
|
14429
|
-
if (this._li = new
|
|
14431
|
+
if (this._li = new Mr(), this._resultPrecisionModel = null, this._arg = null, arguments.length === 1) {
|
|
14430
14432
|
var t = arguments[0];
|
|
14431
14433
|
this.setComputationPrecision(t.getPrecisionModel()), this._arg = new Array(1).fill(null), this._arg[0] = new Vi(0, t);
|
|
14432
14434
|
} else if (arguments.length === 2) {
|
|
@@ -14449,22 +14451,22 @@ wi.prototype.interfaces_ = function() {
|
|
|
14449
14451
|
wi.prototype.getClass = function() {
|
|
14450
14452
|
return wi;
|
|
14451
14453
|
};
|
|
14452
|
-
var
|
|
14454
|
+
var Ir = function() {
|
|
14453
14455
|
};
|
|
14454
|
-
|
|
14456
|
+
Ir.prototype.interfaces_ = function() {
|
|
14455
14457
|
return [];
|
|
14456
14458
|
};
|
|
14457
|
-
|
|
14458
|
-
return
|
|
14459
|
+
Ir.prototype.getClass = function() {
|
|
14460
|
+
return Ir;
|
|
14459
14461
|
};
|
|
14460
|
-
|
|
14461
|
-
if (arguments[0] instanceof
|
|
14462
|
+
Ir.map = function() {
|
|
14463
|
+
if (arguments[0] instanceof k && G(arguments[1], Ir.MapOp)) {
|
|
14462
14464
|
for (var t = arguments[0], e = arguments[1], n = new L(), i = 0; i < t.getNumGeometries(); i++) {
|
|
14463
14465
|
var o = e.map(t.getGeometryN(i));
|
|
14464
14466
|
o !== null && n.add(o);
|
|
14465
14467
|
}
|
|
14466
14468
|
return t.getFactory().buildGeometry(n);
|
|
14467
|
-
} else if (
|
|
14469
|
+
} else if (G(arguments[0], St) && G(arguments[1], Ir.MapOp)) {
|
|
14468
14470
|
for (var s = arguments[0], a = arguments[1], u = new L(), l = s.iterator(); l.hasNext(); ) {
|
|
14469
14471
|
var c = l.next(), f = a.map(c);
|
|
14470
14472
|
f !== null && u.add(f);
|
|
@@ -14472,7 +14474,7 @@ Er.map = function() {
|
|
|
14472
14474
|
return u;
|
|
14473
14475
|
}
|
|
14474
14476
|
};
|
|
14475
|
-
|
|
14477
|
+
Ir.MapOp = function() {
|
|
14476
14478
|
};
|
|
14477
14479
|
var U = function(r) {
|
|
14478
14480
|
function t() {
|
|
@@ -14533,7 +14535,7 @@ var U = function(r) {
|
|
|
14533
14535
|
}, t.prototype.computeOverlay = function(n) {
|
|
14534
14536
|
this.copyPoints(0), this.copyPoints(1), this._arg[0].computeSelfNodes(this._li, !1), this._arg[1].computeSelfNodes(this._li, !1), this._arg[0].computeEdgeIntersections(this._arg[1], this._li, !0);
|
|
14535
14537
|
var i = new L();
|
|
14536
|
-
this._arg[0].computeSplitEdges(i), this._arg[1].computeSplitEdges(i), this.insertUniqueEdges(i), this.computeLabelsFromDepths(), this.replaceCollapsedEdges(),
|
|
14538
|
+
this._arg[0].computeSplitEdges(i), this._arg[1].computeSplitEdges(i), this.insertUniqueEdges(i), this.computeLabelsFromDepths(), this.replaceCollapsedEdges(), Rr.checkValid(this._edgeList.getEdges()), this._graph.addEdges(this._edgeList.getEdges()), this.computeLabelling(), this.labelIncompleteNodes(), this.findResultAreaEdges(n), this.cancelDuplicateResultEdges();
|
|
14537
14539
|
var o = new pe(this._geomFact);
|
|
14538
14540
|
o.add(this._graph), this._resultPolyList = o.getPolygons();
|
|
14539
14541
|
var s = new pn(this, this._geomFact, this._ptLocator);
|
|
@@ -14592,7 +14594,7 @@ U.intersection = function(r, t) {
|
|
|
14592
14594
|
var e = t;
|
|
14593
14595
|
return Jr.map(r, {
|
|
14594
14596
|
interfaces_: function() {
|
|
14595
|
-
return [
|
|
14597
|
+
return [Ir.MapOp];
|
|
14596
14598
|
},
|
|
14597
14599
|
map: function(n) {
|
|
14598
14600
|
return n.intersection(e);
|
|
@@ -14725,26 +14727,26 @@ Li.prototype.interfaces_ = function() {
|
|
|
14725
14727
|
Li.prototype.getClass = function() {
|
|
14726
14728
|
return Li;
|
|
14727
14729
|
};
|
|
14728
|
-
var
|
|
14730
|
+
var Dr = function() {
|
|
14729
14731
|
this._g = null, this._doLeft = !0, this._doRight = !0;
|
|
14730
14732
|
var t = arguments[0];
|
|
14731
14733
|
this._g = t;
|
|
14732
14734
|
};
|
|
14733
|
-
|
|
14735
|
+
Dr.prototype.extractPoints = function(t, e, n) {
|
|
14734
14736
|
for (var i = this, o = t.getCoordinates(), s = 0; s < o.length - 1; s++)
|
|
14735
14737
|
i.computeOffsetPoints(o[s], o[s + 1], e, n);
|
|
14736
14738
|
};
|
|
14737
|
-
|
|
14739
|
+
Dr.prototype.setSidesToGenerate = function(t, e) {
|
|
14738
14740
|
this._doLeft = t, this._doRight = e;
|
|
14739
14741
|
};
|
|
14740
|
-
|
|
14742
|
+
Dr.prototype.getPoints = function(t) {
|
|
14741
14743
|
for (var e = this, n = new L(), i = Ft.getLines(this._g), o = i.iterator(); o.hasNext(); ) {
|
|
14742
14744
|
var s = o.next();
|
|
14743
14745
|
e.extractPoints(s, t, n);
|
|
14744
14746
|
}
|
|
14745
14747
|
return n;
|
|
14746
14748
|
};
|
|
14747
|
-
|
|
14749
|
+
Dr.prototype.computeOffsetPoints = function(t, e, n, i) {
|
|
14748
14750
|
var o = e.x - t.x, s = e.y - t.y, a = Math.sqrt(o * o + s * s), u = n * o / a, l = n * s / a, c = (e.x + t.x) / 2, f = (e.y + t.y) / 2;
|
|
14749
14751
|
if (this._doLeft) {
|
|
14750
14752
|
var h = new v(c - l, f + u);
|
|
@@ -14755,11 +14757,11 @@ Or.prototype.computeOffsetPoints = function(t, e, n, i) {
|
|
|
14755
14757
|
i.add(g);
|
|
14756
14758
|
}
|
|
14757
14759
|
};
|
|
14758
|
-
|
|
14760
|
+
Dr.prototype.interfaces_ = function() {
|
|
14759
14761
|
return [];
|
|
14760
14762
|
};
|
|
14761
|
-
|
|
14762
|
-
return
|
|
14763
|
+
Dr.prototype.getClass = function() {
|
|
14764
|
+
return Dr;
|
|
14763
14765
|
};
|
|
14764
14766
|
var we = function r() {
|
|
14765
14767
|
this._geom = null, this._locFinder = null, this._location = new Array(3).fill(null), this._invalidLocation = null, this._boundaryDistanceTolerance = r.TOLERANCE, this._testCoords = new L();
|
|
@@ -14767,7 +14769,7 @@ var we = function r() {
|
|
|
14767
14769
|
this._boundaryDistanceTolerance = r.computeBoundaryDistanceTolerance(t, e), this._geom = [t, e, n], this._locFinder = [new rr(this._geom[0], this._boundaryDistanceTolerance), new rr(this._geom[1], this._boundaryDistanceTolerance), new rr(this._geom[2], this._boundaryDistanceTolerance)];
|
|
14768
14770
|
}, Pu = { TOLERANCE: { configurable: !0 } };
|
|
14769
14771
|
we.prototype.reportResult = function(t, e, n) {
|
|
14770
|
-
|
|
14772
|
+
Gt.out.println("Overlay result invalid - A:" + y.toLocationSymbol(e[0]) + " B:" + y.toLocationSymbol(e[1]) + " expected:" + (n ? "i" : "e") + " actual:" + y.toLocationSymbol(e[2]));
|
|
14771
14773
|
};
|
|
14772
14774
|
we.prototype.isValid = function(t) {
|
|
14773
14775
|
this.addTestPts(this._geom[0]), this.addTestPts(this._geom[1]);
|
|
@@ -14789,7 +14791,7 @@ we.prototype.checkValid = function() {
|
|
|
14789
14791
|
}
|
|
14790
14792
|
};
|
|
14791
14793
|
we.prototype.addTestPts = function(t) {
|
|
14792
|
-
var e = new
|
|
14794
|
+
var e = new Dr(t);
|
|
14793
14795
|
this._testCoords.addAll(e.getPoints(5 * this._boundaryDistanceTolerance));
|
|
14794
14796
|
};
|
|
14795
14797
|
we.prototype.isValidResult = function(t, e) {
|
|
@@ -14879,7 +14881,7 @@ var Ct = function() {
|
|
|
14879
14881
|
Ct.prototype.reduceToGeometries = function(t) {
|
|
14880
14882
|
for (var e = this, n = new L(), i = t.iterator(); i.hasNext(); ) {
|
|
14881
14883
|
var o = i.next(), s = null;
|
|
14882
|
-
|
|
14884
|
+
G(o, Ge) ? s = e.unionTree(o) : o instanceof k && (s = o), n.add(s);
|
|
14883
14885
|
}
|
|
14884
14886
|
return n;
|
|
14885
14887
|
};
|
|
@@ -14971,7 +14973,7 @@ Ct.prototype.getClass = function() {
|
|
|
14971
14973
|
return Ct;
|
|
14972
14974
|
};
|
|
14973
14975
|
Ct.restrictToPolygons = function(t) {
|
|
14974
|
-
if (
|
|
14976
|
+
if (G(t, ir))
|
|
14975
14977
|
return t;
|
|
14976
14978
|
var e = Xn.getPolygons(t);
|
|
14977
14979
|
return e.size() === 1 ? e.get(0) : t.getFactory().createMultiPolygon(H.toPolygonArray(e));
|
|
@@ -14987,15 +14989,15 @@ Ru.STRTREE_NODE_CAPACITY.get = function() {
|
|
|
14987
14989
|
return 4;
|
|
14988
14990
|
};
|
|
14989
14991
|
Object.defineProperties(Ct, Ru);
|
|
14990
|
-
var
|
|
14992
|
+
var Go = function() {
|
|
14991
14993
|
};
|
|
14992
|
-
|
|
14994
|
+
Go.prototype.interfaces_ = function() {
|
|
14993
14995
|
return [];
|
|
14994
14996
|
};
|
|
14995
|
-
|
|
14996
|
-
return
|
|
14997
|
+
Go.prototype.getClass = function() {
|
|
14998
|
+
return Go;
|
|
14997
14999
|
};
|
|
14998
|
-
|
|
15000
|
+
Go.union = function(t, e) {
|
|
14999
15001
|
if (t.isEmpty() || e.isEmpty()) {
|
|
15000
15002
|
if (t.isEmpty() && e.isEmpty())
|
|
15001
15003
|
return U.createEmptyResult(U.UNION, t, e, t.getFactory());
|
|
@@ -15006,7 +15008,7 @@ ko.union = function(t, e) {
|
|
|
15006
15008
|
}
|
|
15007
15009
|
return t.checkNotGeometryCollection(t), t.checkNotGeometryCollection(e), re.overlayOp(t, e, U.UNION);
|
|
15008
15010
|
};
|
|
15009
|
-
function
|
|
15011
|
+
function Ar() {
|
|
15010
15012
|
return new zo();
|
|
15011
15013
|
}
|
|
15012
15014
|
function zo() {
|
|
@@ -15030,7 +15032,7 @@ function La(r, t, e) {
|
|
|
15030
15032
|
var n = r.s = t + e, i = n - t, o = n - i;
|
|
15031
15033
|
r.t = t - o + (e - i);
|
|
15032
15034
|
}
|
|
15033
|
-
var gt = 1e-6, it = Math.PI, qn = it / 2, ba = it / 4, Qn = it * 2, vr = 180 / it, Ze = it / 180, Jt = Math.abs,
|
|
15035
|
+
var gt = 1e-6, it = Math.PI, qn = it / 2, ba = it / 4, Qn = it * 2, vr = 180 / it, Ze = it / 180, Jt = Math.abs, Mc = Math.atan, bi = Math.atan2, wt = Math.cos, Lt = Math.sin, _o = Math.sqrt;
|
|
15034
15036
|
function Ou(r) {
|
|
15035
15037
|
return r > 1 ? 0 : r < -1 ? it : Math.acos(r);
|
|
15036
15038
|
}
|
|
@@ -15092,11 +15094,11 @@ function Oa(r, t) {
|
|
|
15092
15094
|
Ls(r[e], t, 1);
|
|
15093
15095
|
t.polygonEnd();
|
|
15094
15096
|
}
|
|
15095
|
-
function
|
|
15097
|
+
function Ac(r, t) {
|
|
15096
15098
|
r && Pa.hasOwnProperty(r.type) ? Pa[r.type](r, t) : Vo(r, t);
|
|
15097
15099
|
}
|
|
15098
|
-
|
|
15099
|
-
|
|
15100
|
+
Ar();
|
|
15101
|
+
Ar();
|
|
15100
15102
|
function bs(r) {
|
|
15101
15103
|
return [bi(r[1], r[0]), Pi(r[2])];
|
|
15102
15104
|
}
|
|
@@ -15120,7 +15122,7 @@ function Ps(r) {
|
|
|
15120
15122
|
var t = _o(r[0] * r[0] + r[1] * r[1] + r[2] * r[2]);
|
|
15121
15123
|
r[0] /= t, r[1] /= t, r[2] /= t;
|
|
15122
15124
|
}
|
|
15123
|
-
|
|
15125
|
+
Ar();
|
|
15124
15126
|
function Du(r, t) {
|
|
15125
15127
|
function e(n, i) {
|
|
15126
15128
|
return n = r(n, i), t(n[0], n[1]);
|
|
@@ -15133,7 +15135,7 @@ function Rs(r, t) {
|
|
|
15133
15135
|
return [r > it ? r - Qn : r < -it ? r + Qn : r, t];
|
|
15134
15136
|
}
|
|
15135
15137
|
Rs.invert = Rs;
|
|
15136
|
-
function
|
|
15138
|
+
function Fc(r, t, e) {
|
|
15137
15139
|
return (r %= Qn) ? t || e ? Du(Ta(r), Ma(t, e)) : Ta(r) : t || e ? Ma(t, e) : Rs;
|
|
15138
15140
|
}
|
|
15139
15141
|
function Da(r) {
|
|
@@ -15162,7 +15164,7 @@ function Ma(r, t) {
|
|
|
15162
15164
|
];
|
|
15163
15165
|
}, s;
|
|
15164
15166
|
}
|
|
15165
|
-
function
|
|
15167
|
+
function Bc(r, t, e, n, i, o) {
|
|
15166
15168
|
if (e) {
|
|
15167
15169
|
var s = wt(t), a = Lt(t), u = n * e;
|
|
15168
15170
|
i == null ? (i = t + n * Qn, o = t - u / 2) : (i = Aa(s, i), o = Aa(s, o), (n > 0 ? i < o : i > o) && (i += n * Qn));
|
|
@@ -15194,7 +15196,7 @@ function Tu() {
|
|
|
15194
15196
|
}
|
|
15195
15197
|
};
|
|
15196
15198
|
}
|
|
15197
|
-
function
|
|
15199
|
+
function kc(r, t, e, n, i, o) {
|
|
15198
15200
|
var s = r[0], a = r[1], u = t[0], l = t[1], c = 0, f = 1, h = u - s, g = l - a, p;
|
|
15199
15201
|
if (p = e - s, !(!h && p > 0)) {
|
|
15200
15202
|
if (p /= h, h < 0) {
|
|
@@ -15301,8 +15303,8 @@ function Fa(r) {
|
|
|
15301
15303
|
function Au(r, t) {
|
|
15302
15304
|
return r < t ? -1 : r > t ? 1 : r >= t ? 0 : NaN;
|
|
15303
15305
|
}
|
|
15304
|
-
function
|
|
15305
|
-
return r.length === 1 && (r =
|
|
15306
|
+
function Gc(r) {
|
|
15307
|
+
return r.length === 1 && (r = zc(r)), {
|
|
15306
15308
|
left: function(t, e, n, i) {
|
|
15307
15309
|
for (n == null && (n = 0), i == null && (i = t.length); n < i; ) {
|
|
15308
15310
|
var o = n + i >>> 1;
|
|
@@ -15319,12 +15321,12 @@ function Bc(r) {
|
|
|
15319
15321
|
}
|
|
15320
15322
|
};
|
|
15321
15323
|
}
|
|
15322
|
-
function
|
|
15324
|
+
function zc(r) {
|
|
15323
15325
|
return function(t, e) {
|
|
15324
15326
|
return Au(r(t), e);
|
|
15325
15327
|
};
|
|
15326
15328
|
}
|
|
15327
|
-
|
|
15329
|
+
Gc(Au);
|
|
15328
15330
|
function Fu(r) {
|
|
15329
15331
|
for (var t = r.length, e, n = -1, i = 0, o, s; ++n < t; )
|
|
15330
15332
|
i += r[n].length;
|
|
@@ -15334,7 +15336,7 @@ function Fu(r) {
|
|
|
15334
15336
|
return o;
|
|
15335
15337
|
}
|
|
15336
15338
|
var qi = 1e9, Lo = -qi;
|
|
15337
|
-
function
|
|
15339
|
+
function Vc(r, t, e, n) {
|
|
15338
15340
|
function i(l, c) {
|
|
15339
15341
|
return r <= l && l <= e && t <= c && c <= n;
|
|
15340
15342
|
}
|
|
@@ -15370,8 +15372,8 @@ function kc(r, t, e, n) {
|
|
|
15370
15372
|
}
|
|
15371
15373
|
function D() {
|
|
15372
15374
|
for (var Y = 0, at = 0, Nt = g.length; at < Nt; ++at)
|
|
15373
|
-
for (var qt = g[at], ce = 1,
|
|
15374
|
-
|
|
15375
|
+
for (var qt = g[at], ce = 1, Fr = qt.length, mn = qt[0], An, fe, et = mn[0], Rt = mn[1]; ce < Fr; ++ce)
|
|
15376
|
+
An = et, fe = Rt, mn = qt[ce], et = mn[0], Rt = mn[1], fe <= n ? Rt > n && (et - An) * (n - fe) > (Rt - fe) * (r - An) && ++Y : Rt <= n && (et - An) * (n - fe) < (Rt - fe) * (r - An) && --Y;
|
|
15375
15377
|
return Y;
|
|
15376
15378
|
}
|
|
15377
15379
|
function R() {
|
|
@@ -15395,15 +15397,15 @@ function kc(r, t, e, n) {
|
|
|
15395
15397
|
c.point(Y, at);
|
|
15396
15398
|
else {
|
|
15397
15399
|
var qt = [I = Math.max(Lo, Math.min(qi, I)), C = Math.max(Lo, Math.min(qi, C))], ce = [Y = Math.max(Lo, Math.min(qi, Y)), at = Math.max(Lo, Math.min(qi, at))];
|
|
15398
|
-
|
|
15400
|
+
kc(qt, ce, r, t, e, n) ? (x || (c.lineStart(), c.point(qt[0], qt[1])), c.point(ce[0], ce[1]), Nt || c.lineEnd(), b = !1) : Nt && (c.lineStart(), c.point(Y, at), b = !1);
|
|
15399
15401
|
}
|
|
15400
15402
|
I = Y, C = at, x = Nt;
|
|
15401
15403
|
}
|
|
15402
15404
|
return A;
|
|
15403
15405
|
};
|
|
15404
15406
|
}
|
|
15405
|
-
var ps =
|
|
15406
|
-
function
|
|
15407
|
+
var ps = Ar();
|
|
15408
|
+
function Uc(r, t) {
|
|
15407
15409
|
var e = t[0], n = t[1], i = [Lt(e), -wt(e), 0], o = 0, s = 0;
|
|
15408
15410
|
ps.reset();
|
|
15409
15411
|
for (var a = 0, u = r.length; a < u; ++a)
|
|
@@ -15421,14 +15423,14 @@ function zc(r, t) {
|
|
|
15421
15423
|
}
|
|
15422
15424
|
return (o < -gt || o < gt && ps < -gt) ^ s & 1;
|
|
15423
15425
|
}
|
|
15424
|
-
|
|
15426
|
+
Ar();
|
|
15425
15427
|
function Ba(r) {
|
|
15426
15428
|
return r;
|
|
15427
15429
|
}
|
|
15428
|
-
|
|
15429
|
-
|
|
15430
|
-
var Oi = 1 / 0, qo = Oi, co = -Oi, Xo = co,
|
|
15431
|
-
point:
|
|
15430
|
+
Ar();
|
|
15431
|
+
Ar();
|
|
15432
|
+
var Oi = 1 / 0, qo = Oi, co = -Oi, Xo = co, ka = {
|
|
15433
|
+
point: qc,
|
|
15432
15434
|
lineStart: Ui,
|
|
15433
15435
|
lineEnd: Ui,
|
|
15434
15436
|
polygonStart: Ui,
|
|
@@ -15438,10 +15440,10 @@ var Oi = 1 / 0, qo = Oi, co = -Oi, Xo = co, Ga = {
|
|
|
15438
15440
|
return co = Xo = -(qo = Oi = 1 / 0), r;
|
|
15439
15441
|
}
|
|
15440
15442
|
};
|
|
15441
|
-
function
|
|
15443
|
+
function qc(r, t) {
|
|
15442
15444
|
r < Oi && (Oi = r), r > co && (co = r), t < qo && (qo = t), t > Xo && (Xo = t);
|
|
15443
15445
|
}
|
|
15444
|
-
|
|
15446
|
+
Ar();
|
|
15445
15447
|
function Bu(r, t, e, n) {
|
|
15446
15448
|
return function(i, o) {
|
|
15447
15449
|
var s = t(o), a = i.invert(n[0], n[1]), u = Tu(), l = t(u), c = !1, f, h, g, p = {
|
|
@@ -15453,8 +15455,8 @@ function Bu(r, t, e, n) {
|
|
|
15453
15455
|
},
|
|
15454
15456
|
polygonEnd: function() {
|
|
15455
15457
|
p.point = m, p.lineStart = _, p.lineEnd = I, h = Fu(h);
|
|
15456
|
-
var b =
|
|
15457
|
-
h.length ? (c || (o.polygonStart(), c = !0), Mu(h,
|
|
15458
|
+
var b = Uc(f, a);
|
|
15459
|
+
h.length ? (c || (o.polygonStart(), c = !0), Mu(h, Yc, b, e, o)) : b && (c || (o.polygonStart(), c = !0), o.lineStart(), e(null, null, 1, o), o.lineEnd()), c && (o.polygonEnd(), c = !1), h = f = null;
|
|
15458
15460
|
},
|
|
15459
15461
|
sphere: function() {
|
|
15460
15462
|
o.polygonStart(), o.lineStart(), e(null, null, 1, o), o.lineEnd(), o.polygonEnd();
|
|
@@ -15494,27 +15496,27 @@ function Bu(r, t, e, n) {
|
|
|
15494
15496
|
}
|
|
15495
15497
|
return;
|
|
15496
15498
|
}
|
|
15497
|
-
D > 1 && b & 2 && A.push(A.pop().concat(A.shift())), h.push(A.filter(
|
|
15499
|
+
D > 1 && b & 2 && A.push(A.pop().concat(A.shift())), h.push(A.filter(Xc));
|
|
15498
15500
|
}
|
|
15499
15501
|
}
|
|
15500
15502
|
return p;
|
|
15501
15503
|
};
|
|
15502
15504
|
}
|
|
15503
|
-
function
|
|
15505
|
+
function Xc(r) {
|
|
15504
15506
|
return r.length > 1;
|
|
15505
15507
|
}
|
|
15506
|
-
function
|
|
15508
|
+
function Yc(r, t) {
|
|
15507
15509
|
return ((r = r.x)[0] < 0 ? r[1] - qn - gt : qn - r[1]) - ((t = t.x)[0] < 0 ? t[1] - qn - gt : qn - t[1]);
|
|
15508
15510
|
}
|
|
15509
|
-
const
|
|
15511
|
+
const Ga = Bu(
|
|
15510
15512
|
function() {
|
|
15511
15513
|
return !0;
|
|
15512
15514
|
},
|
|
15513
|
-
Xc,
|
|
15514
15515
|
Hc,
|
|
15516
|
+
jc,
|
|
15515
15517
|
[-it, -qn]
|
|
15516
15518
|
);
|
|
15517
|
-
function
|
|
15519
|
+
function Hc(r) {
|
|
15518
15520
|
var t = NaN, e = NaN, n = NaN, i;
|
|
15519
15521
|
return {
|
|
15520
15522
|
lineStart: function() {
|
|
@@ -15522,7 +15524,7 @@ function Xc(r) {
|
|
|
15522
15524
|
},
|
|
15523
15525
|
point: function(o, s) {
|
|
15524
15526
|
var a = o > 0 ? it : -it, u = Jt(o - t);
|
|
15525
|
-
Jt(u - it) < gt ? (r.point(t, e = (e + s) / 2 > 0 ? qn : -qn), r.point(n, e), r.lineEnd(), r.lineStart(), r.point(a, e), r.point(o, e), i = 0) : n !== a && u >= it && (Jt(t - n) < gt && (t -= n * gt), Jt(o - a) < gt && (o -= a * gt), e =
|
|
15527
|
+
Jt(u - it) < gt ? (r.point(t, e = (e + s) / 2 > 0 ? qn : -qn), r.point(n, e), r.lineEnd(), r.lineStart(), r.point(a, e), r.point(o, e), i = 0) : n !== a && u >= it && (Jt(t - n) < gt && (t -= n * gt), Jt(o - a) < gt && (o -= a * gt), e = Wc(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;
|
|
15526
15528
|
},
|
|
15527
15529
|
lineEnd: function() {
|
|
15528
15530
|
r.lineEnd(), t = e = NaN;
|
|
@@ -15532,11 +15534,11 @@ function Xc(r) {
|
|
|
15532
15534
|
}
|
|
15533
15535
|
};
|
|
15534
15536
|
}
|
|
15535
|
-
function
|
|
15537
|
+
function Wc(r, t, e, n) {
|
|
15536
15538
|
var i, o, s = Lt(r - e);
|
|
15537
|
-
return Jt(s) > gt ?
|
|
15539
|
+
return Jt(s) > gt ? Mc((Lt(t) * (o = wt(n)) * Lt(e) - Lt(n) * (i = wt(t)) * Lt(r)) / (i * o * s)) : (t + n) / 2;
|
|
15538
15540
|
}
|
|
15539
|
-
function
|
|
15541
|
+
function jc(r, t, e, n) {
|
|
15540
15542
|
var i;
|
|
15541
15543
|
if (r == null)
|
|
15542
15544
|
i = e * qn, n.point(-it, i), n.point(0, i), n.point(it, i), n.point(it, 0), n.point(it, -i), n.point(0, -i), n.point(-it, -i), n.point(-it, 0), n.point(-it, i);
|
|
@@ -15546,10 +15548,10 @@ function Hc(r, t, e, n) {
|
|
|
15546
15548
|
} else
|
|
15547
15549
|
n.point(t[0], t[1]);
|
|
15548
15550
|
}
|
|
15549
|
-
function
|
|
15551
|
+
function Kc(r, t) {
|
|
15550
15552
|
var e = wt(r), n = e > 0, i = Jt(e) > gt;
|
|
15551
15553
|
function o(c, f, h, g) {
|
|
15552
|
-
|
|
15554
|
+
Bc(g, r, t, h, c, f);
|
|
15553
15555
|
}
|
|
15554
15556
|
function s(c, f) {
|
|
15555
15557
|
return wt(c) * wt(f) > e;
|
|
@@ -15593,8 +15595,8 @@ function Wc(r, t) {
|
|
|
15593
15595
|
return O;
|
|
15594
15596
|
var Y = c[0], at = f[0], Nt = c[1], qt = f[1], ce;
|
|
15595
15597
|
at < Y && (ce = Y, Y = at, at = ce);
|
|
15596
|
-
var
|
|
15597
|
-
if (!mn && qt < Nt && (ce = Nt, Nt = qt, qt = ce),
|
|
15598
|
+
var Fr = at - Y, mn = Jt(Fr - it) < gt, An = mn || Fr < gt;
|
|
15599
|
+
if (!mn && qt < Nt && (ce = Nt, Nt = qt, qt = ce), An ? mn ? Nt + qt > 0 ^ O[1] < (Jt(O[0] - Y) < gt ? Nt : qt) : Nt <= O[1] && O[1] <= qt : Fr > it ^ (Y <= O[0] && O[0] <= at)) {
|
|
15598
15600
|
var fe = So(D, (-R + rt) / z);
|
|
15599
15601
|
return gs(fe, A), [O, bs(fe)];
|
|
15600
15602
|
}
|
|
@@ -15606,7 +15608,7 @@ function Wc(r, t) {
|
|
|
15606
15608
|
}
|
|
15607
15609
|
return Bu(s, a, o, n ? [0, -r] : [-it, r - it]);
|
|
15608
15610
|
}
|
|
15609
|
-
function
|
|
15611
|
+
function ku(r) {
|
|
15610
15612
|
return function(t) {
|
|
15611
15613
|
var e = new Os();
|
|
15612
15614
|
for (var n in r)
|
|
@@ -15637,32 +15639,32 @@ Os.prototype = {
|
|
|
15637
15639
|
this.stream.polygonEnd();
|
|
15638
15640
|
}
|
|
15639
15641
|
};
|
|
15640
|
-
function
|
|
15642
|
+
function Gu(r, t, e) {
|
|
15641
15643
|
var n = t[1][0] - t[0][0], i = t[1][1] - t[0][1], o = r.clipExtent && r.clipExtent();
|
|
15642
|
-
r.scale(150).translate([0, 0]), o != null && r.clipExtent(null),
|
|
15643
|
-
var s =
|
|
15644
|
+
r.scale(150).translate([0, 0]), o != null && r.clipExtent(null), Ac(e, r.stream(ka));
|
|
15645
|
+
var s = ka.result(), a = Math.min(n / (s[1][0] - s[0][0]), i / (s[1][1] - s[0][1])), u = +t[0][0] + (n - a * (s[1][0] + s[0][0])) / 2, l = +t[0][1] + (i - a * (s[1][1] + s[0][1])) / 2;
|
|
15644
15646
|
return o != null && r.clipExtent(o), r.scale(a * 150).translate([u, l]);
|
|
15645
15647
|
}
|
|
15646
|
-
function
|
|
15647
|
-
return
|
|
15648
|
+
function Qc(r, t, e) {
|
|
15649
|
+
return Gu(r, [[0, 0], t], e);
|
|
15648
15650
|
}
|
|
15649
|
-
var za = 16,
|
|
15651
|
+
var za = 16, Jc = wt(30 * Ze);
|
|
15650
15652
|
function Va(r, t) {
|
|
15651
|
-
return +t ?
|
|
15653
|
+
return +t ? $c(r, t) : Zc(r);
|
|
15652
15654
|
}
|
|
15653
|
-
function
|
|
15654
|
-
return
|
|
15655
|
+
function Zc(r) {
|
|
15656
|
+
return ku({
|
|
15655
15657
|
point: function(t, e) {
|
|
15656
15658
|
t = r(t, e), this.stream.point(t[0], t[1]);
|
|
15657
15659
|
}
|
|
15658
15660
|
});
|
|
15659
15661
|
}
|
|
15660
|
-
function
|
|
15662
|
+
function $c(r, t) {
|
|
15661
15663
|
function e(n, i, o, s, a, u, l, c, f, h, g, p, m, d) {
|
|
15662
15664
|
var _ = l - n, I = c - i, C = _ * _ + I * I;
|
|
15663
15665
|
if (C > 4 * t && m--) {
|
|
15664
15666
|
var x = s + h, S = a + g, b = u + p, A = _o(x * x + S * S + b * b), F = Pi(b /= A), D = Jt(Jt(b) - 1) < gt || Jt(o - f) < gt ? (o + f) / 2 : bi(S, x), R = r(D, F), z = R[0], q = R[1], rt = z - n, O = q - i, Y = I * rt - _ * O;
|
|
15665
|
-
(Y * Y / C > t || Jt((_ * rt + I * O) / C - 0.5) > 0.3 || s * h + a * g + u * p <
|
|
15667
|
+
(Y * Y / C > t || Jt((_ * rt + I * O) / C - 0.5) > 0.3 || s * h + a * g + u * p < Jc) && (e(n, i, o, s, a, u, z, q, D, x /= A, S /= A, b, m, d), d.point(z, q), e(z, q, D, x, S, b, l, c, f, h, g, p, m, d));
|
|
15666
15668
|
}
|
|
15667
15669
|
}
|
|
15668
15670
|
return function(n) {
|
|
@@ -15702,18 +15704,18 @@ function Jc(r, t) {
|
|
|
15702
15704
|
return d;
|
|
15703
15705
|
};
|
|
15704
15706
|
}
|
|
15705
|
-
var
|
|
15707
|
+
var tf = ku({
|
|
15706
15708
|
point: function(r, t) {
|
|
15707
15709
|
this.stream.point(r * Ze, t * Ze);
|
|
15708
15710
|
}
|
|
15709
15711
|
});
|
|
15710
|
-
function
|
|
15711
|
-
return
|
|
15712
|
+
function ef(r) {
|
|
15713
|
+
return nf(function() {
|
|
15712
15714
|
return r;
|
|
15713
15715
|
})();
|
|
15714
15716
|
}
|
|
15715
|
-
function
|
|
15716
|
-
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 =
|
|
15717
|
+
function nf(r) {
|
|
15718
|
+
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 = Ga, d = null, _, I, C, x = Ba, S = 0.5, b = Va(z, S), A, F;
|
|
15717
15719
|
function D(O) {
|
|
15718
15720
|
return O = g(O[0] * Ze, O[1] * Ze), [O[0] * e + o, s - O[1] * e];
|
|
15719
15721
|
}
|
|
@@ -15724,11 +15726,11 @@ function tf(r) {
|
|
|
15724
15726
|
return O = t(O, Y), [O[0] * e + o, s - O[1] * e];
|
|
15725
15727
|
}
|
|
15726
15728
|
D.stream = function(O) {
|
|
15727
|
-
return A && F === O ? A : A =
|
|
15729
|
+
return A && F === O ? A : A = tf(m(h, b(x(F = O))));
|
|
15728
15730
|
}, D.clipAngle = function(O) {
|
|
15729
|
-
return arguments.length ? (m = +O ?
|
|
15731
|
+
return arguments.length ? (m = +O ? Kc(p = O * Ze, 6 * Ze) : (p = null, Ga), rt()) : p * vr;
|
|
15730
15732
|
}, D.clipExtent = function(O) {
|
|
15731
|
-
return arguments.length ? (x = O == null ? (d = _ = I = C = null, Ba) :
|
|
15733
|
+
return arguments.length ? (x = O == null ? (d = _ = I = C = null, Ba) : Vc(d = +O[0][0], _ = +O[0][1], I = +O[1][0], C = +O[1][1]), rt()) : d == null ? null : [[d, _], [I, C]];
|
|
15732
15734
|
}, D.scale = function(O) {
|
|
15733
15735
|
return arguments.length ? (e = +O, q()) : e;
|
|
15734
15736
|
}, D.translate = function(O) {
|
|
@@ -15740,12 +15742,12 @@ function tf(r) {
|
|
|
15740
15742
|
}, D.precision = function(O) {
|
|
15741
15743
|
return arguments.length ? (b = Va(z, S = O * O), rt()) : _o(S);
|
|
15742
15744
|
}, D.fitExtent = function(O, Y) {
|
|
15743
|
-
return
|
|
15745
|
+
return Gu(D, O, Y);
|
|
15744
15746
|
}, D.fitSize = function(O, Y) {
|
|
15745
|
-
return
|
|
15747
|
+
return Qc(D, O, Y);
|
|
15746
15748
|
};
|
|
15747
15749
|
function q() {
|
|
15748
|
-
g = Du(h =
|
|
15750
|
+
g = Du(h = Fc(l, c, f), t);
|
|
15749
15751
|
var O = t(a, u);
|
|
15750
15752
|
return o = n - O[0] * e, s = i + O[1] * e, rt();
|
|
15751
15753
|
}
|
|
@@ -15756,7 +15758,7 @@ function tf(r) {
|
|
|
15756
15758
|
return t = r.apply(this, arguments), D.invert = t.invert && R, q();
|
|
15757
15759
|
};
|
|
15758
15760
|
}
|
|
15759
|
-
function
|
|
15761
|
+
function rf(r) {
|
|
15760
15762
|
return function(t, e) {
|
|
15761
15763
|
var n = wt(t), i = wt(e), o = r(n * i);
|
|
15762
15764
|
return [
|
|
@@ -15765,7 +15767,7 @@ function ef(r) {
|
|
|
15765
15767
|
];
|
|
15766
15768
|
};
|
|
15767
15769
|
}
|
|
15768
|
-
function
|
|
15770
|
+
function of(r) {
|
|
15769
15771
|
return function(t, e) {
|
|
15770
15772
|
var n = _o(t * t + e * e), i = r(n), o = Lt(i), s = wt(i);
|
|
15771
15773
|
return [
|
|
@@ -15774,20 +15776,20 @@ function nf(r) {
|
|
|
15774
15776
|
];
|
|
15775
15777
|
};
|
|
15776
15778
|
}
|
|
15777
|
-
var zu =
|
|
15779
|
+
var zu = rf(function(r) {
|
|
15778
15780
|
return (r = Ou(r)) && r / Lt(r);
|
|
15779
15781
|
});
|
|
15780
|
-
zu.invert =
|
|
15782
|
+
zu.invert = of(function(r) {
|
|
15781
15783
|
return r;
|
|
15782
15784
|
});
|
|
15783
|
-
function
|
|
15784
|
-
return
|
|
15785
|
+
function sf() {
|
|
15786
|
+
return ef(zu).scale(79.4188).clipAngle(180 - 1e-3);
|
|
15785
15787
|
}
|
|
15786
15788
|
function Ua(r, t) {
|
|
15787
15789
|
return [r, t];
|
|
15788
15790
|
}
|
|
15789
15791
|
Ua.invert = Ua;
|
|
15790
|
-
function
|
|
15792
|
+
function af(r, t, e) {
|
|
15791
15793
|
e = e || {};
|
|
15792
15794
|
var n = e.units || "kilometers", i = e.steps || 8;
|
|
15793
15795
|
if (!r)
|
|
@@ -15826,10 +15828,10 @@ function Ro(r, t, e, n) {
|
|
|
15826
15828
|
d && s.push(d);
|
|
15827
15829
|
}), Ns(s);
|
|
15828
15830
|
}
|
|
15829
|
-
var a =
|
|
15831
|
+
var a = uf(o), u = {
|
|
15830
15832
|
type: o.type,
|
|
15831
15833
|
coordinates: Uu(o.coordinates, a)
|
|
15832
|
-
}, l = new zs(), c = l.read(u), f =
|
|
15834
|
+
}, l = new zs(), c = l.read(u), f = hc(gc(t, e), "meters"), h = Bt.bufferOp(c, f, n), g = new gu();
|
|
15833
15835
|
if (h = g.write(h), !Vu(h.coordinates)) {
|
|
15834
15836
|
var p = {
|
|
15835
15837
|
type: h.type,
|
|
@@ -15851,9 +15853,9 @@ function qu(r, t) {
|
|
|
15851
15853
|
return qu(e, t);
|
|
15852
15854
|
});
|
|
15853
15855
|
}
|
|
15854
|
-
function
|
|
15855
|
-
var t =
|
|
15856
|
-
return
|
|
15856
|
+
function uf(r) {
|
|
15857
|
+
var t = vc(r).geometry.coordinates, e = [-t[0], -t[1]];
|
|
15858
|
+
return sf().rotate(e).scale(me);
|
|
15857
15859
|
}
|
|
15858
15860
|
function qa(r) {
|
|
15859
15861
|
let t;
|
|
@@ -15861,7 +15863,7 @@ function qa(r) {
|
|
|
15861
15863
|
t && e[0] - t[0] >= 180 ? e[0] -= 360 : t && e[0] - t[0] < -180 && (e[0] += 360), t = e;
|
|
15862
15864
|
}
|
|
15863
15865
|
function Xa(r, t) {
|
|
15864
|
-
const e =
|
|
15866
|
+
const e = dc(
|
|
15865
15867
|
{
|
|
15866
15868
|
type: "Polygon",
|
|
15867
15869
|
coordinates: [
|
|
@@ -15879,7 +15881,7 @@ function Xa(r, t) {
|
|
|
15879
15881
|
if (!e)
|
|
15880
15882
|
return;
|
|
15881
15883
|
e.properties = { isMask: "y" };
|
|
15882
|
-
const n =
|
|
15884
|
+
const n = af(r, 0);
|
|
15883
15885
|
if (n.geometry.type === "Polygon")
|
|
15884
15886
|
for (const i of n.geometry.coordinates)
|
|
15885
15887
|
qa(i);
|
|
@@ -15896,7 +15898,7 @@ let Ya = {
|
|
|
15896
15898
|
type: "FeatureCollection",
|
|
15897
15899
|
features: []
|
|
15898
15900
|
};
|
|
15899
|
-
function
|
|
15901
|
+
function lf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
|
|
15900
15902
|
fill: {
|
|
15901
15903
|
paint: {
|
|
15902
15904
|
"fill-color": "#000",
|
|
@@ -15950,7 +15952,7 @@ function af(r, t, e = !0, n = !0, i = {}, o = {}, s = {
|
|
|
15950
15952
|
if (!t)
|
|
15951
15953
|
throw new Error();
|
|
15952
15954
|
const I = document.createElement("div");
|
|
15953
|
-
return _ && I.classList.add("marker-interactive"), new
|
|
15955
|
+
return _ && I.classList.add("marker-interactive"), new Dl({
|
|
15954
15956
|
props: { displayIn: "maplibre" },
|
|
15955
15957
|
target: I
|
|
15956
15958
|
}), new t.Marker({ element: I, offset: [1, -13] });
|
|
@@ -15996,7 +15998,7 @@ function af(r, t, e = !0, n = !0, i = {}, o = {}, s = {
|
|
|
15996
15998
|
if (S.length > 0) {
|
|
15997
15999
|
let b = S.pop();
|
|
15998
16000
|
for (const A of S)
|
|
15999
|
-
b =
|
|
16001
|
+
b = pc(b, A);
|
|
16000
16002
|
Xa({ ...I, geometry: b }, C), x = !0;
|
|
16001
16003
|
} else {
|
|
16002
16004
|
const b = I.geometry.geometries.filter(
|
|
@@ -16047,42 +16049,50 @@ function af(r, t, e = !0, n = !0, i = {}, o = {}, s = {
|
|
|
16047
16049
|
}
|
|
16048
16050
|
};
|
|
16049
16051
|
}
|
|
16050
|
-
var
|
|
16051
|
-
class
|
|
16052
|
-
constructor(e) {
|
|
16052
|
+
var En, mr;
|
|
16053
|
+
class hf extends EventTarget {
|
|
16054
|
+
constructor(e = {}) {
|
|
16053
16055
|
super();
|
|
16054
|
-
ls(this,
|
|
16055
|
-
ls(this,
|
|
16056
|
-
Co(this,
|
|
16056
|
+
ls(this, En, void 0);
|
|
16057
|
+
ls(this, mr, void 0);
|
|
16058
|
+
Co(this, mr, e);
|
|
16057
16059
|
}
|
|
16058
16060
|
onAdd(e) {
|
|
16059
16061
|
const n = document.createElement("div");
|
|
16060
16062
|
n.className = "mapboxgl-ctrl-geocoder mapboxgl-ctrl maplibregl-ctrl-geocoder maplibregl-ctrl";
|
|
16061
16063
|
const {
|
|
16062
|
-
|
|
16063
|
-
|
|
16064
|
-
|
|
16065
|
-
|
|
16066
|
-
|
|
16067
|
-
|
|
16068
|
-
|
|
16069
|
-
e
|
|
16070
|
-
|
|
16071
|
-
|
|
16072
|
-
|
|
16073
|
-
|
|
16074
|
-
|
|
16075
|
-
|
|
16076
|
-
|
|
16077
|
-
|
|
16078
|
-
|
|
16079
|
-
|
|
16080
|
-
|
|
16081
|
-
|
|
16082
|
-
|
|
16083
|
-
|
|
16084
|
-
|
|
16085
|
-
|
|
16064
|
+
marker: i,
|
|
16065
|
+
showResultMarkers: o,
|
|
16066
|
+
flyTo: s,
|
|
16067
|
+
fullGeometryStyle: a,
|
|
16068
|
+
...u
|
|
16069
|
+
} = _n(this, mr), l = typeof s == "boolean" ? {} : s, c = {};
|
|
16070
|
+
if ("getSdkConfig" in e && typeof e.getSdkConfig == "function") {
|
|
16071
|
+
const { primaryLanguage: g, apiKey: p } = e.getSdkConfig();
|
|
16072
|
+
c.apiKey = p;
|
|
16073
|
+
const m = /^([a-z]{2})($|_|-)/.exec(g);
|
|
16074
|
+
m && (c.language = m[1]);
|
|
16075
|
+
}
|
|
16076
|
+
const h = {
|
|
16077
|
+
mapController: lf(
|
|
16078
|
+
e,
|
|
16079
|
+
sl ?? ol ?? _n(this, mr).maplibregl,
|
|
16080
|
+
i,
|
|
16081
|
+
o,
|
|
16082
|
+
l,
|
|
16083
|
+
l,
|
|
16084
|
+
a
|
|
16085
|
+
),
|
|
16086
|
+
flyTo: s === void 0 ? !0 : !!s,
|
|
16087
|
+
apiKey: "",
|
|
16088
|
+
// just to satisfy apiKey; TODO find a better solution
|
|
16089
|
+
...c,
|
|
16090
|
+
...u
|
|
16091
|
+
};
|
|
16092
|
+
if (!h.apiKey)
|
|
16093
|
+
throw new Error("no apiKey provided");
|
|
16094
|
+
Co(this, En, new Ul({ target: n, props: h }));
|
|
16095
|
+
for (const g of [
|
|
16086
16096
|
"select",
|
|
16087
16097
|
"pick",
|
|
16088
16098
|
"featuresListed",
|
|
@@ -16092,12 +16102,12 @@ class cf extends EventTarget {
|
|
|
16092
16102
|
"reverseToggle",
|
|
16093
16103
|
"queryChange"
|
|
16094
16104
|
])
|
|
16095
|
-
|
|
16105
|
+
_n(this, En).$on(g, (p) => this.dispatchEvent(p));
|
|
16096
16106
|
return n;
|
|
16097
16107
|
}
|
|
16098
16108
|
setOptions(e) {
|
|
16099
16109
|
var l;
|
|
16100
|
-
Co(this,
|
|
16110
|
+
Co(this, mr, e);
|
|
16101
16111
|
const {
|
|
16102
16112
|
maplibregl: n,
|
|
16103
16113
|
marker: i,
|
|
@@ -16105,33 +16115,33 @@ class cf extends EventTarget {
|
|
|
16105
16115
|
flyTo: s,
|
|
16106
16116
|
fullGeometryStyle: a,
|
|
16107
16117
|
...u
|
|
16108
|
-
} =
|
|
16109
|
-
(l =
|
|
16118
|
+
} = _n(this, mr);
|
|
16119
|
+
(l = _n(this, En)) == null || l.$set(u);
|
|
16110
16120
|
}
|
|
16111
16121
|
setQuery(e, n = !0) {
|
|
16112
16122
|
var i;
|
|
16113
|
-
(i =
|
|
16123
|
+
(i = _n(this, En)) == null || i.setQuery(e, n);
|
|
16114
16124
|
}
|
|
16115
16125
|
setReverseMode(e) {
|
|
16116
16126
|
var n;
|
|
16117
|
-
(n =
|
|
16127
|
+
(n = _n(this, En)) == null || n.$set({ reverseActive: e });
|
|
16118
16128
|
}
|
|
16119
16129
|
focus() {
|
|
16120
16130
|
var e;
|
|
16121
|
-
(e =
|
|
16131
|
+
(e = _n(this, En)) == null || e.focus();
|
|
16122
16132
|
}
|
|
16123
16133
|
blur() {
|
|
16124
16134
|
var e;
|
|
16125
|
-
(e =
|
|
16135
|
+
(e = _n(this, En)) == null || e.blur();
|
|
16126
16136
|
}
|
|
16127
16137
|
onRemove() {
|
|
16128
16138
|
var e;
|
|
16129
|
-
(e =
|
|
16139
|
+
(e = _n(this, En)) == null || e.$destroy();
|
|
16130
16140
|
}
|
|
16131
16141
|
}
|
|
16132
|
-
|
|
16142
|
+
En = new WeakMap(), mr = new WeakMap();
|
|
16133
16143
|
export {
|
|
16134
|
-
|
|
16135
|
-
|
|
16144
|
+
hf as GeocodingControl,
|
|
16145
|
+
lf as createMaplibreglMapController
|
|
16136
16146
|
};
|
|
16137
16147
|
//# sourceMappingURL=maplibregl.js.map
|