@corpsmap/corpsmap 4.1.17 → 4.1.20
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/dist/corpsmap.es.js
CHANGED
|
@@ -767,10 +767,10 @@ function requireDebounce() {
|
|
|
767
767
|
hasRequiredDebounce = 1;
|
|
768
768
|
var e = requireIsObject(), t = requireNow(), r = requireToNumber(), a = "Expected a function", o = Math.max, d = Math.min;
|
|
769
769
|
function g(m, y, b) {
|
|
770
|
-
var E, I, x, S, T, N, k = 0, L = !1,
|
|
770
|
+
var E, I, x, S, T, N, k = 0, L = !1, M = !1, G = !0;
|
|
771
771
|
if (typeof m != "function")
|
|
772
772
|
throw new TypeError(a);
|
|
773
|
-
y = r(y) || 0, e(b) && (L = !!b.leading,
|
|
773
|
+
y = r(y) || 0, e(b) && (L = !!b.leading, M = "maxWait" in b, x = M ? o(r(b.maxWait) || 0, y) : x, G = "trailing" in b ? !!b.trailing : G);
|
|
774
774
|
function U(ie) {
|
|
775
775
|
var te = E, ue = I;
|
|
776
776
|
return E = I = void 0, k = ie, S = m.apply(ue, te), S;
|
|
@@ -780,11 +780,11 @@ function requireDebounce() {
|
|
|
780
780
|
}
|
|
781
781
|
function Y(ie) {
|
|
782
782
|
var te = ie - N, ue = ie - k, le = y - te;
|
|
783
|
-
return
|
|
783
|
+
return M ? d(le, x - ue) : le;
|
|
784
784
|
}
|
|
785
785
|
function X(ie) {
|
|
786
786
|
var te = ie - N, ue = ie - k;
|
|
787
|
-
return N === void 0 || te >= y || te < 0 ||
|
|
787
|
+
return N === void 0 || te >= y || te < 0 || M && ue >= x;
|
|
788
788
|
}
|
|
789
789
|
function Q() {
|
|
790
790
|
var ie = t();
|
|
@@ -793,7 +793,7 @@ function requireDebounce() {
|
|
|
793
793
|
T = setTimeout(Q, Y(ie));
|
|
794
794
|
}
|
|
795
795
|
function H(ie) {
|
|
796
|
-
return T = void 0,
|
|
796
|
+
return T = void 0, G && E ? U(ie) : (E = I = void 0, S);
|
|
797
797
|
}
|
|
798
798
|
function K() {
|
|
799
799
|
T !== void 0 && clearTimeout(T), k = 0, E = N = I = T = void 0;
|
|
@@ -806,7 +806,7 @@ function requireDebounce() {
|
|
|
806
806
|
if (E = arguments, I = this, N = ie, te) {
|
|
807
807
|
if (T === void 0)
|
|
808
808
|
return V(N);
|
|
809
|
-
if (
|
|
809
|
+
if (M)
|
|
810
810
|
return clearTimeout(T), T = setTimeout(Q, y), U(N);
|
|
811
811
|
}
|
|
812
812
|
return T === void 0 && (T = setTimeout(Q, y)), S;
|
|
@@ -1402,30 +1402,30 @@ function requireAsyncEachOfLimit() {
|
|
|
1402
1402
|
function d(g, m, y, b) {
|
|
1403
1403
|
let E = !1, I = !1, x = !1, S = 0, T = 0;
|
|
1404
1404
|
function N() {
|
|
1405
|
-
S >= m || x || E || (x = !0, g.next().then(({ value:
|
|
1405
|
+
S >= m || x || E || (x = !0, g.next().then(({ value: M, done: G }) => {
|
|
1406
1406
|
if (!(I || E)) {
|
|
1407
|
-
if (x = !1,
|
|
1407
|
+
if (x = !1, G) {
|
|
1408
1408
|
E = !0, S <= 0 && b(null);
|
|
1409
1409
|
return;
|
|
1410
1410
|
}
|
|
1411
|
-
S++, y(
|
|
1411
|
+
S++, y(M, T, k), T++, N();
|
|
1412
1412
|
}
|
|
1413
1413
|
}).catch(L));
|
|
1414
1414
|
}
|
|
1415
|
-
function k(
|
|
1415
|
+
function k(M, G) {
|
|
1416
1416
|
if (S -= 1, !I) {
|
|
1417
|
-
if (
|
|
1418
|
-
if (
|
|
1417
|
+
if (M) return L(M);
|
|
1418
|
+
if (M === !1) {
|
|
1419
1419
|
E = !0, I = !0;
|
|
1420
1420
|
return;
|
|
1421
1421
|
}
|
|
1422
|
-
if (
|
|
1422
|
+
if (G === a.default || E && S <= 0)
|
|
1423
1423
|
return E = !0, b(null);
|
|
1424
1424
|
N();
|
|
1425
1425
|
}
|
|
1426
1426
|
}
|
|
1427
|
-
function L(
|
|
1428
|
-
I || (x = !1, E = !0, b(
|
|
1427
|
+
function L(M) {
|
|
1428
|
+
I || (x = !1, E = !0, b(M));
|
|
1429
1429
|
}
|
|
1430
1430
|
N();
|
|
1431
1431
|
}
|
|
@@ -1451,24 +1451,24 @@ function requireEachOfLimit$1() {
|
|
|
1451
1451
|
return (0, E.default)(N, T, k, L);
|
|
1452
1452
|
if ((0, y.isAsyncIterable)(N))
|
|
1453
1453
|
return (0, E.default)(N[Symbol.asyncIterator](), T, k, L);
|
|
1454
|
-
var
|
|
1454
|
+
var M = (0, d.default)(N), G = !1, U = !1, V = 0, Y = !1;
|
|
1455
1455
|
function X(H, K) {
|
|
1456
1456
|
if (!U)
|
|
1457
1457
|
if (V -= 1, H)
|
|
1458
|
-
|
|
1458
|
+
G = !0, L(H);
|
|
1459
1459
|
else if (H === !1)
|
|
1460
|
-
|
|
1460
|
+
G = !0, U = !0;
|
|
1461
1461
|
else {
|
|
1462
|
-
if (K === x.default ||
|
|
1463
|
-
return
|
|
1462
|
+
if (K === x.default || G && V <= 0)
|
|
1463
|
+
return G = !0, L(null);
|
|
1464
1464
|
Y || Q();
|
|
1465
1465
|
}
|
|
1466
1466
|
}
|
|
1467
1467
|
function Q() {
|
|
1468
|
-
for (Y = !0; V < T && !
|
|
1469
|
-
var H =
|
|
1468
|
+
for (Y = !0; V < T && !G; ) {
|
|
1469
|
+
var H = M();
|
|
1470
1470
|
if (H === null) {
|
|
1471
|
-
|
|
1471
|
+
G = !0, V <= 0 && L(null);
|
|
1472
1472
|
return;
|
|
1473
1473
|
}
|
|
1474
1474
|
V += 1, k(H.value, H.key, (0, m.default)(X));
|
|
@@ -1536,14 +1536,14 @@ function requireEachOf() {
|
|
|
1536
1536
|
for (; X < H; X++)
|
|
1537
1537
|
V(U[X], X, (0, I.default)(ee));
|
|
1538
1538
|
}
|
|
1539
|
-
function
|
|
1539
|
+
function M(U, V, Y) {
|
|
1540
1540
|
return (0, m.default)(U, 1 / 0, V, Y);
|
|
1541
1541
|
}
|
|
1542
|
-
function
|
|
1543
|
-
var X = (0, a.default)(U) ? L :
|
|
1542
|
+
function G(U, V, Y) {
|
|
1543
|
+
var X = (0, a.default)(U) ? L : M;
|
|
1544
1544
|
return X(U, (0, S.default)(V), Y);
|
|
1545
1545
|
}
|
|
1546
|
-
t.default = (0, N.default)(
|
|
1546
|
+
t.default = (0, N.default)(G, 3), e.exports = t.default;
|
|
1547
1547
|
})(eachOf, eachOf.exports)), eachOf.exports;
|
|
1548
1548
|
}
|
|
1549
1549
|
var parallel$1 = { exports: {} }, hasRequiredParallel$1;
|
|
@@ -1756,9 +1756,9 @@ function coordEach(e, t, r) {
|
|
|
1756
1756
|
// @ts-expect-error: Known type conflict
|
|
1757
1757
|
e.geometry
|
|
1758
1758
|
) : e, x = b ? b.type === "GeometryCollection" : !1, m = x ? b.geometries.length : 1;
|
|
1759
|
-
for (var
|
|
1760
|
-
var
|
|
1761
|
-
if (g = x ? b.geometries[
|
|
1759
|
+
for (var M = 0; M < m; M++) {
|
|
1760
|
+
var G = 0, U = 0;
|
|
1761
|
+
if (g = x ? b.geometries[M] : b, g !== null) {
|
|
1762
1762
|
y = g.coordinates;
|
|
1763
1763
|
var V = g.type;
|
|
1764
1764
|
switch (E = 0, V) {
|
|
@@ -1771,12 +1771,12 @@ function coordEach(e, t, r) {
|
|
|
1771
1771
|
y,
|
|
1772
1772
|
I,
|
|
1773
1773
|
L,
|
|
1774
|
-
|
|
1774
|
+
G,
|
|
1775
1775
|
U
|
|
1776
1776
|
) === !1
|
|
1777
1777
|
)
|
|
1778
1778
|
return !1;
|
|
1779
|
-
I++,
|
|
1779
|
+
I++, G++;
|
|
1780
1780
|
break;
|
|
1781
1781
|
case "LineString":
|
|
1782
1782
|
case "MultiPoint":
|
|
@@ -1787,14 +1787,14 @@ function coordEach(e, t, r) {
|
|
|
1787
1787
|
y[a],
|
|
1788
1788
|
I,
|
|
1789
1789
|
L,
|
|
1790
|
-
|
|
1790
|
+
G,
|
|
1791
1791
|
U
|
|
1792
1792
|
) === !1
|
|
1793
1793
|
)
|
|
1794
1794
|
return !1;
|
|
1795
|
-
I++, V === "MultiPoint" &&
|
|
1795
|
+
I++, V === "MultiPoint" && G++;
|
|
1796
1796
|
}
|
|
1797
|
-
V === "LineString" &&
|
|
1797
|
+
V === "LineString" && G++;
|
|
1798
1798
|
break;
|
|
1799
1799
|
case "Polygon":
|
|
1800
1800
|
case "MultiLineString":
|
|
@@ -1806,16 +1806,16 @@ function coordEach(e, t, r) {
|
|
|
1806
1806
|
y[a][o],
|
|
1807
1807
|
I,
|
|
1808
1808
|
L,
|
|
1809
|
-
|
|
1809
|
+
G,
|
|
1810
1810
|
U
|
|
1811
1811
|
) === !1
|
|
1812
1812
|
)
|
|
1813
1813
|
return !1;
|
|
1814
1814
|
I++;
|
|
1815
1815
|
}
|
|
1816
|
-
V === "MultiLineString" &&
|
|
1816
|
+
V === "MultiLineString" && G++, V === "Polygon" && U++;
|
|
1817
1817
|
}
|
|
1818
|
-
V === "Polygon" &&
|
|
1818
|
+
V === "Polygon" && G++;
|
|
1819
1819
|
break;
|
|
1820
1820
|
case "MultiPolygon":
|
|
1821
1821
|
for (a = 0; a < y.length; a++) {
|
|
@@ -1827,7 +1827,7 @@ function coordEach(e, t, r) {
|
|
|
1827
1827
|
y[a][o][d],
|
|
1828
1828
|
I,
|
|
1829
1829
|
L,
|
|
1830
|
-
|
|
1830
|
+
G,
|
|
1831
1831
|
U
|
|
1832
1832
|
) === !1
|
|
1833
1833
|
)
|
|
@@ -1836,7 +1836,7 @@ function coordEach(e, t, r) {
|
|
|
1836
1836
|
}
|
|
1837
1837
|
U++;
|
|
1838
1838
|
}
|
|
1839
|
-
|
|
1839
|
+
G++;
|
|
1840
1840
|
}
|
|
1841
1841
|
break;
|
|
1842
1842
|
case "GeometryCollection":
|
|
@@ -2150,9 +2150,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2150
2150
|
return s === "Object" && f.constructor && (s = f.constructor.name), s === "Map" || s === "Set" ? Array.from(f) : s === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s) ? r(f, n) : void 0;
|
|
2151
2151
|
}
|
|
2152
2152
|
}
|
|
2153
|
-
function
|
|
2153
|
+
function M(f) {
|
|
2154
2154
|
var n = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
2155
|
-
return
|
|
2155
|
+
return M = function(s) {
|
|
2156
2156
|
if (s === null || !(function(v) {
|
|
2157
2157
|
try {
|
|
2158
2158
|
return Function.toString.call(v).indexOf("[native code]") !== -1;
|
|
@@ -2169,9 +2169,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2169
2169
|
return d(s, arguments, E(this).constructor);
|
|
2170
2170
|
}
|
|
2171
2171
|
return h.prototype = Object.create(s.prototype, { constructor: { value: h, enumerable: !1, writable: !0, configurable: !0 } }), S(h, s);
|
|
2172
|
-
},
|
|
2172
|
+
}, M(f);
|
|
2173
2173
|
}
|
|
2174
|
-
var
|
|
2174
|
+
var G = (function() {
|
|
2175
2175
|
function f() {
|
|
2176
2176
|
o(this, f), f.constructor_.apply(this, arguments);
|
|
2177
2177
|
}
|
|
@@ -2217,7 +2217,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2217
2217
|
return 1 - Math.cos(s / 2);
|
|
2218
2218
|
} }]);
|
|
2219
2219
|
})();
|
|
2220
|
-
|
|
2220
|
+
G.CAP_ROUND = 1, G.CAP_FLAT = 2, G.CAP_SQUARE = 3, G.JOIN_ROUND = 1, G.JOIN_MITRE = 2, G.JOIN_BEVEL = 3, G.DEFAULT_QUADRANT_SEGMENTS = 8, G.DEFAULT_MITRE_LIMIT = 5, G.DEFAULT_SIMPLIFY_FACTOR = 0.01;
|
|
2221
2221
|
var U = (function(f) {
|
|
2222
2222
|
function n(s) {
|
|
2223
2223
|
var h;
|
|
@@ -2226,7 +2226,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2226
2226
|
return I(n, f), m(n, [{ key: "toString", value: function() {
|
|
2227
2227
|
return this.message;
|
|
2228
2228
|
} }]);
|
|
2229
|
-
})(
|
|
2229
|
+
})(M(Error)), V = (function(f) {
|
|
2230
2230
|
function n(s) {
|
|
2231
2231
|
var h;
|
|
2232
2232
|
return o(this, n), (h = a(this, n, [s])).name = Object.keys({ IllegalArgumentException: n })[0], h;
|
|
@@ -3386,10 +3386,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3386
3386
|
do
|
|
3387
3387
|
(et -= 1) < 0 && (et = _e), He = oe.getCoordinate(et);
|
|
3388
3388
|
while (He.equals2D(Se) && et !== Ne);
|
|
3389
|
-
var nt = null,
|
|
3389
|
+
var nt = null, Yt = Ne;
|
|
3390
3390
|
do
|
|
3391
|
-
|
|
3392
|
-
while (nt.equals2D(Se) &&
|
|
3391
|
+
Yt = (Yt + 1) % _e, nt = oe.getCoordinate(Yt);
|
|
3392
|
+
while (nt.equals2D(Se) && Yt !== Ne);
|
|
3393
3393
|
if (He.equals2D(Se) || nt.equals2D(Se) || He.equals2D(nt)) return !1;
|
|
3394
3394
|
var lr = f.index(He, Se, nt);
|
|
3395
3395
|
return lr === 0 ? He.x > nt.x : lr > 0;
|
|
@@ -3595,7 +3595,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3595
3595
|
return m((function f() {
|
|
3596
3596
|
o(this, f);
|
|
3597
3597
|
}), null, [{ key: "intersection", value: function(f, n, s, h) {
|
|
3598
|
-
var v = f.x < n.x ? f.x : n.x, C = f.y < n.y ? f.y : n.y, A = f.x > n.x ? f.x : n.x, R = f.y > n.y ? f.y : n.y, O = s.x < h.x ? s.x : h.x, W = s.y < h.y ? s.y : h.y, re = s.x > h.x ? s.x : h.x, ne = s.y > h.y ? s.y : h.y, oe = ((v > O ? v : O) + (A < re ? A : re)) / 2, _e = ((C > W ? C : W) + (R < ne ? R : ne)) / 2, Se = f.x - oe, Ne = f.y - _e, qe = n.x - oe, Ge = n.y - _e, He = s.x - oe, et = s.y - _e, nt = h.x - oe,
|
|
3598
|
+
var v = f.x < n.x ? f.x : n.x, C = f.y < n.y ? f.y : n.y, A = f.x > n.x ? f.x : n.x, R = f.y > n.y ? f.y : n.y, O = s.x < h.x ? s.x : h.x, W = s.y < h.y ? s.y : h.y, re = s.x > h.x ? s.x : h.x, ne = s.y > h.y ? s.y : h.y, oe = ((v > O ? v : O) + (A < re ? A : re)) / 2, _e = ((C > W ? C : W) + (R < ne ? R : ne)) / 2, Se = f.x - oe, Ne = f.y - _e, qe = n.x - oe, Ge = n.y - _e, He = s.x - oe, et = s.y - _e, nt = h.x - oe, Yt = h.y - _e, lr = Ne - Ge, cn = qe - Se, dn = Se * Ge - qe * Ne, hn = et - Yt, fn = nt - He, pn = He * Yt - nt * et, gn = lr * fn - hn * cn, Tr = (cn * pn - fn * dn) / gn, Rr = (hn * dn - lr * pn) / gn;
|
|
3599
3599
|
return ce.isNaN(Tr) || ce.isInfinite(Tr) || ce.isNaN(Rr) || ce.isInfinite(Rr) ? null : new J(Tr + oe, Rr + _e);
|
|
3600
3600
|
} }]);
|
|
3601
3601
|
})(), Je = (function() {
|
|
@@ -4023,7 +4023,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4023
4023
|
var s = arguments[0], h = arguments[1];
|
|
4024
4024
|
de.constructor_.call(this, h), this.init(s);
|
|
4025
4025
|
} }]);
|
|
4026
|
-
})(de),
|
|
4026
|
+
})(de), Ze = (function() {
|
|
4027
4027
|
function f() {
|
|
4028
4028
|
o(this, f);
|
|
4029
4029
|
}
|
|
@@ -4057,7 +4057,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4057
4057
|
return _e / 2;
|
|
4058
4058
|
}
|
|
4059
4059
|
} }]);
|
|
4060
|
-
})(),
|
|
4060
|
+
})(), Ye = (function() {
|
|
4061
4061
|
return m((function f() {
|
|
4062
4062
|
o(this, f);
|
|
4063
4063
|
}), null, [{ key: "sort", value: function() {
|
|
@@ -4135,8 +4135,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4135
4135
|
return s;
|
|
4136
4136
|
} }, { key: "getArea", value: function() {
|
|
4137
4137
|
var s = 0;
|
|
4138
|
-
s +=
|
|
4139
|
-
for (var h = 0; h < this._holes.length; h++) s -=
|
|
4138
|
+
s += Ze.ofRing(this._shell.getCoordinateSequence());
|
|
4139
|
+
for (var h = 0; h < this._holes.length; h++) s -= Ze.ofRing(this._holes[h].getCoordinateSequence());
|
|
4140
4140
|
return s;
|
|
4141
4141
|
} }, { key: "copyInternal", value: function() {
|
|
4142
4142
|
for (var s = this._shell.copy(), h = new Array(this._holes.length).fill(null), v = 0; v < this._holes.length; v++) h[v] = this._holes[v].copy();
|
|
@@ -4169,7 +4169,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4169
4169
|
if (arguments.length === 0) {
|
|
4170
4170
|
this._shell = this.normalized(this._shell, !0);
|
|
4171
4171
|
for (var s = 0; s < this._holes.length; s++) this._holes[s] = this.normalized(this._holes[s], !1);
|
|
4172
|
-
|
|
4172
|
+
Ye.sort(this._holes);
|
|
4173
4173
|
} else if (arguments.length === 2) {
|
|
4174
4174
|
var h = arguments[0], v = arguments[1];
|
|
4175
4175
|
if (h.isEmpty()) return null;
|
|
@@ -4304,9 +4304,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4304
4304
|
} }, { key: "toArray", value: function() {
|
|
4305
4305
|
return this.array.slice();
|
|
4306
4306
|
} }, { key: "iterator", value: function() {
|
|
4307
|
-
return new
|
|
4307
|
+
return new Zt(this.array);
|
|
4308
4308
|
} }]);
|
|
4309
|
-
})(Rt),
|
|
4309
|
+
})(Rt), Zt = (function() {
|
|
4310
4310
|
return m((function f(n) {
|
|
4311
4311
|
o(this, f), this.array = n, this.position = 0;
|
|
4312
4312
|
}), [{ key: "next", value: function() {
|
|
@@ -4348,7 +4348,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4348
4348
|
return T(n, "equalsExact", this, 1).apply(this, arguments);
|
|
4349
4349
|
} }, { key: "normalize", value: function() {
|
|
4350
4350
|
for (var s = 0; s < this._geometries.length; s++) this._geometries[s].normalize();
|
|
4351
|
-
|
|
4351
|
+
Ye.sort(this._geometries);
|
|
4352
4352
|
} }, { key: "getCoordinate", value: function() {
|
|
4353
4353
|
return this.isEmpty() ? null : this._geometries[0].getCoordinate();
|
|
4354
4354
|
} }, { key: "getBoundaryDimension", value: function() {
|
|
@@ -4372,7 +4372,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4372
4372
|
return this._geometries.length;
|
|
4373
4373
|
} }, { key: "compareToSameClass", value: function() {
|
|
4374
4374
|
if (arguments.length === 1) {
|
|
4375
|
-
var s = arguments[0], h = new xt(
|
|
4375
|
+
var s = arguments[0], h = new xt(Ye.asList(this._geometries)), v = new xt(Ye.asList(s._geometries));
|
|
4376
4376
|
return this.compare(h, v);
|
|
4377
4377
|
}
|
|
4378
4378
|
if (arguments.length === 2) {
|
|
@@ -6708,7 +6708,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6708
6708
|
return tr.sort(f), f.get(0);
|
|
6709
6709
|
}, sort: function(f, n) {
|
|
6710
6710
|
var s = f.toArray();
|
|
6711
|
-
n ?
|
|
6711
|
+
n ? Ye.sort(s, n) : Ye.sort(s);
|
|
6712
6712
|
for (var h = f.iterator(), v = 0, C = s.length; v < C; v++) h.next(), h.set(s[v]);
|
|
6713
6713
|
}, singletonList: function(f) {
|
|
6714
6714
|
var n = new Te();
|
|
@@ -7608,7 +7608,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7608
7608
|
for (var h = s.iterator(); h.hasNext(); ) this.add(h.next());
|
|
7609
7609
|
this.intersectChains();
|
|
7610
7610
|
} }, { key: "intersectChains", value: function() {
|
|
7611
|
-
for (var s = new
|
|
7611
|
+
for (var s = new Yr(this._segInt), h = this._monoChains.iterator(); h.hasNext(); ) for (var v = h.next(), C = this._index.query(v.getEnvelope()).iterator(); C.hasNext(); ) {
|
|
7612
7612
|
var A = C.next();
|
|
7613
7613
|
if (A.getId() > v.getId() && (v.computeOverlaps(A, s), this._nOverlaps++), this._segInt.isDone()) return null;
|
|
7614
7614
|
}
|
|
@@ -7620,7 +7620,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7620
7620
|
}
|
|
7621
7621
|
}
|
|
7622
7622
|
} }]);
|
|
7623
|
-
})(Xr),
|
|
7623
|
+
})(Xr), Yr = (function(f) {
|
|
7624
7624
|
function n() {
|
|
7625
7625
|
var s;
|
|
7626
7626
|
return o(this, n), s = a(this, n), n.constructor_.apply(s, arguments), s;
|
|
@@ -7635,7 +7635,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7635
7635
|
this._si = s;
|
|
7636
7636
|
} }]);
|
|
7637
7637
|
})(jn);
|
|
7638
|
-
Sr.SegmentOverlapAction =
|
|
7638
|
+
Sr.SegmentOverlapAction = Yr;
|
|
7639
7639
|
var Tt = (function() {
|
|
7640
7640
|
function f() {
|
|
7641
7641
|
o(this, f), f.constructor_.apply(this, arguments);
|
|
@@ -7683,7 +7683,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7683
7683
|
} }]);
|
|
7684
7684
|
})();
|
|
7685
7685
|
Tt.INIT = 0, Tt.DELETE = 1, Tt.KEEP = 1, Tt.NUM_PTS_TO_CHECK = 10;
|
|
7686
|
-
var
|
|
7686
|
+
var Zr = (function() {
|
|
7687
7687
|
function f() {
|
|
7688
7688
|
o(this, f), f.constructor_.apply(this, arguments);
|
|
7689
7689
|
}
|
|
@@ -7716,7 +7716,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7716
7716
|
this._ptList = null, this._precisionModel = null, this._minimimVertexDistance = 0, this._ptList = new Te();
|
|
7717
7717
|
} }]);
|
|
7718
7718
|
})();
|
|
7719
|
-
|
|
7719
|
+
Zr.COORDINATE_ARRAY_TYPE = new Array(0).fill(null);
|
|
7720
7720
|
var pt = (function() {
|
|
7721
7721
|
function f() {
|
|
7722
7722
|
o(this, f);
|
|
@@ -7786,13 +7786,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7786
7786
|
this.computeOffsetSegment(h, he.RIGHT, this._distance, C);
|
|
7787
7787
|
var A = s.x - n.x, R = s.y - n.y, O = Math.atan2(R, A);
|
|
7788
7788
|
switch (this._bufParams.getEndCapStyle()) {
|
|
7789
|
-
case
|
|
7789
|
+
case G.CAP_ROUND:
|
|
7790
7790
|
this._segList.addPt(v.p1), this.addDirectedFillet(s, O + Math.PI / 2, O - Math.PI / 2, ke.CLOCKWISE, this._distance), this._segList.addPt(C.p1);
|
|
7791
7791
|
break;
|
|
7792
|
-
case
|
|
7792
|
+
case G.CAP_FLAT:
|
|
7793
7793
|
this._segList.addPt(v.p1), this._segList.addPt(C.p1);
|
|
7794
7794
|
break;
|
|
7795
|
-
case
|
|
7795
|
+
case G.CAP_SQUARE:
|
|
7796
7796
|
var W = new J();
|
|
7797
7797
|
W.x = Math.abs(this._distance) * Math.cos(O), W.y = Math.abs(this._distance) * Math.sin(O);
|
|
7798
7798
|
var re = new J(v.p1.x + W.x, v.p1.y + W.y), ne = new J(C.p1.x + W.x, C.p1.y + W.y);
|
|
@@ -7806,7 +7806,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7806
7806
|
this.addLimitedMitreJoin(s, h, v, this._bufParams.getMitreLimit());
|
|
7807
7807
|
} }, { key: "addOutsideTurn", value: function(n, s) {
|
|
7808
7808
|
if (this._offset0.p1.distance(this._offset1.p0) < this._distance * f.OFFSET_SEGMENT_SEPARATION_FACTOR) return this._segList.addPt(this._offset0.p1), null;
|
|
7809
|
-
this._bufParams.getJoinStyle() ===
|
|
7809
|
+
this._bufParams.getJoinStyle() === G.JOIN_MITRE ? this.addMitreJoin(this._s1, this._offset0, this._offset1, this._distance) : this._bufParams.getJoinStyle() === G.JOIN_BEVEL ? this.addBevelJoin(this._offset0, this._offset1) : (s && this._segList.addPt(this._offset0.p1), this.addCornerFillet(this._s1, this._offset0.p1, this._offset1.p0, n, this._distance), this._segList.addPt(this._offset1.p0));
|
|
7810
7810
|
} }, { key: "createSquare", value: function(n) {
|
|
7811
7811
|
this._segList.addPt(new J(n.x + this._distance, n.y + this._distance)), this._segList.addPt(new J(n.x + this._distance, n.y - this._distance)), this._segList.addPt(new J(n.x - this._distance, n.y - this._distance)), this._segList.addPt(new J(n.x - this._distance, n.y + this._distance)), this._segList.closeRing();
|
|
7812
7812
|
} }, { key: "addSegments", value: function(n, s) {
|
|
@@ -7851,9 +7851,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7851
7851
|
} }, { key: "addBevelJoin", value: function(n, s) {
|
|
7852
7852
|
this._segList.addPt(n.p1), this._segList.addPt(s.p0);
|
|
7853
7853
|
} }, { key: "init", value: function(n) {
|
|
7854
|
-
this._distance = n, this._maxCurveSegmentError = n * (1 - Math.cos(this._filletAngleQuantum / 2)), this._segList = new
|
|
7854
|
+
this._distance = n, this._maxCurveSegmentError = n * (1 - Math.cos(this._filletAngleQuantum / 2)), this._segList = new Zr(), this._segList.setPrecisionModel(this._precisionModel), this._segList.setMinimumVertexDistance(n * f.CURVE_VERTEX_SNAP_DISTANCE_FACTOR);
|
|
7855
7855
|
} }, { key: "addCollinear", value: function(n) {
|
|
7856
|
-
this._li.computeIntersection(this._s0, this._s1, this._s1, this._s2), this._li.getIntersectionNum() >= 2 && (this._bufParams.getJoinStyle() ===
|
|
7856
|
+
this._li.computeIntersection(this._s0, this._s1, this._s1, this._s2), this._li.getIntersectionNum() >= 2 && (this._bufParams.getJoinStyle() === G.JOIN_BEVEL || this._bufParams.getJoinStyle() === G.JOIN_MITRE ? (n && this._segList.addPt(this._offset0.p1), this._segList.addPt(this._offset1.p0)) : this.addCornerFillet(this._s1, this._offset0.p1, this._offset1.p0, ke.CLOCKWISE, this._distance));
|
|
7857
7857
|
} }, { key: "closeRing", value: function() {
|
|
7858
7858
|
this._segList.closeRing();
|
|
7859
7859
|
} }, { key: "hasNarrowConcaveAngle", value: function() {
|
|
@@ -7861,7 +7861,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7861
7861
|
} }], [{ key: "constructor_", value: function() {
|
|
7862
7862
|
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 ft(), this._seg1 = new ft(), this._offset0 = new ft(), this._offset1 = new ft(), this._side = 0, this._hasNarrowConcaveAngle = !1;
|
|
7863
7863
|
var n = arguments[0], s = arguments[1], h = arguments[2];
|
|
7864
|
-
this._precisionModel = n, this._bufParams = s, this._li = new Wt(), this._filletAngleQuantum = Math.PI / 2 / s.getQuadrantSegments(), s.getQuadrantSegments() >= 8 && s.getJoinStyle() ===
|
|
7864
|
+
this._precisionModel = n, this._bufParams = s, this._li = new Wt(), this._filletAngleQuantum = Math.PI / 2 / s.getQuadrantSegments(), s.getQuadrantSegments() >= 8 && s.getJoinStyle() === G.JOIN_ROUND && (this._closingSegLengthFactor = f.MAX_CLOSING_SEG_LEN_FACTOR), this.init(h);
|
|
7865
7865
|
} }]);
|
|
7866
7866
|
})();
|
|
7867
7867
|
or.OFFSET_SEGMENT_SEPARATION_FACTOR = 1e-3, or.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR = 1e-3, or.CURVE_VERTEX_SNAP_DISTANCE_FACTOR = 1e-6, or.MAX_CLOSING_SEG_LEN_FACTOR = 80;
|
|
@@ -7910,10 +7910,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7910
7910
|
s.addLastSegment(), s.addLineEndCap(R[1], R[0]), s.closeRing();
|
|
7911
7911
|
} }, { key: "computePointCurve", value: function(n, s) {
|
|
7912
7912
|
switch (this._bufParams.getEndCapStyle()) {
|
|
7913
|
-
case
|
|
7913
|
+
case G.CAP_ROUND:
|
|
7914
7914
|
s.createCircle(n);
|
|
7915
7915
|
break;
|
|
7916
|
-
case
|
|
7916
|
+
case G.CAP_SQUARE:
|
|
7917
7917
|
s.createSquare(n);
|
|
7918
7918
|
}
|
|
7919
7919
|
} }, { key: "getLineCurve", value: function(n, s) {
|
|
@@ -8271,7 +8271,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8271
8271
|
} }, { key: "locate", value: function(n, s) {
|
|
8272
8272
|
return s.isEmpty() ? q.EXTERIOR : s.getEnvelopeInternal().intersects(n) ? f.locateInGeometry(n, s) : q.EXTERIOR;
|
|
8273
8273
|
} }]);
|
|
8274
|
-
})(),
|
|
8274
|
+
})(), Yn = (function() {
|
|
8275
8275
|
return m((function f() {
|
|
8276
8276
|
o(this, f), f.constructor_.apply(this, arguments);
|
|
8277
8277
|
}), [{ key: "getNextCW", value: function(f) {
|
|
@@ -8359,7 +8359,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8359
8359
|
} }], [{ key: "constructor_", value: function() {
|
|
8360
8360
|
this._edgeMap = new ur(), this._edgeList = null, this._ptInAreaLocation = [q.NONE, q.NONE];
|
|
8361
8361
|
} }]);
|
|
8362
|
-
})(),
|
|
8362
|
+
})(), Zn = (function(f) {
|
|
8363
8363
|
function n() {
|
|
8364
8364
|
var s;
|
|
8365
8365
|
return o(this, n), s = a(this, n), n.constructor_.apply(s, arguments), s;
|
|
@@ -8489,12 +8489,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8489
8489
|
} }], [{ key: "constructor_", value: function() {
|
|
8490
8490
|
this._resultAreaEdgeList = null, this._label = null, this._SCANNING_FOR_INCOMING = 1, this._LINKING_TO_OUTGOING = 2;
|
|
8491
8491
|
} }]);
|
|
8492
|
-
})(
|
|
8492
|
+
})(Yn), Jn = (function(f) {
|
|
8493
8493
|
function n() {
|
|
8494
8494
|
return o(this, n), a(this, n);
|
|
8495
8495
|
}
|
|
8496
8496
|
return I(n, f), m(n, [{ key: "createNode", value: function(s) {
|
|
8497
|
-
return new gr(s, new
|
|
8497
|
+
return new gr(s, new Zn());
|
|
8498
8498
|
} }]);
|
|
8499
8499
|
})(Vr), en = (function() {
|
|
8500
8500
|
function f() {
|
|
@@ -8763,7 +8763,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8763
8763
|
} }, { key: "ensureCapacity", value: function(n) {
|
|
8764
8764
|
if (n <= this._data.length) return null;
|
|
8765
8765
|
var s = Math.max(n, 2 * this._data.length);
|
|
8766
|
-
this._data =
|
|
8766
|
+
this._data = Ye.copyOf(this._data, s);
|
|
8767
8767
|
} }, { key: "toArray", value: function() {
|
|
8768
8768
|
var n = new Array(this._size).fill(null);
|
|
8769
8769
|
return Je.arraycopy(this._data, 0, n, 0, this._size), n;
|
|
@@ -9353,7 +9353,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9353
9353
|
} }, { key: "setEndCapStyle", value: function(n) {
|
|
9354
9354
|
this._bufParams.setEndCapStyle(n);
|
|
9355
9355
|
} }], [{ key: "constructor_", value: function() {
|
|
9356
|
-
if (this._argGeom = null, this._distance = null, this._bufParams = new
|
|
9356
|
+
if (this._argGeom = null, this._distance = null, this._bufParams = new G(), this._resultGeometry = null, this._saveException = null, arguments.length === 1) {
|
|
9357
9357
|
var n = arguments[0];
|
|
9358
9358
|
this._argGeom = n;
|
|
9359
9359
|
} else if (arguments.length === 2) {
|
|
@@ -9370,7 +9370,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9370
9370
|
var s = arguments[1], h = arguments[2], v = new f(arguments[0]);
|
|
9371
9371
|
return v.setQuadrantSegments(h), v.getResultGeometry(s);
|
|
9372
9372
|
}
|
|
9373
|
-
if (arguments[2] instanceof
|
|
9373
|
+
if (arguments[2] instanceof G && arguments[0] instanceof de && typeof arguments[1] == "number") {
|
|
9374
9374
|
var C = arguments[1];
|
|
9375
9375
|
return new f(arguments[0], arguments[2]).getResultGeometry(C);
|
|
9376
9376
|
}
|
|
@@ -9383,7 +9383,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9383
9383
|
return Math.pow(10, A);
|
|
9384
9384
|
} }]);
|
|
9385
9385
|
})();
|
|
9386
|
-
ir.CAP_ROUND =
|
|
9386
|
+
ir.CAP_ROUND = G.CAP_ROUND, ir.CAP_BUTT = G.CAP_FLAT, ir.CAP_FLAT = G.CAP_FLAT, ir.CAP_SQUARE = G.CAP_SQUARE, ir.MAX_PRECISION_DIGITS = 12;
|
|
9387
9387
|
var ci = ["Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"], ln = (function() {
|
|
9388
9388
|
return m((function f(n) {
|
|
9389
9389
|
o(this, f), this.geometryFactory = n || new Qt();
|
|
@@ -9743,13 +9743,13 @@ function clipPolygon(e, t, r, a, o) {
|
|
|
9743
9743
|
var d = [], g = [], m, y;
|
|
9744
9744
|
if (e.forEach(function(T) {
|
|
9745
9745
|
if (!((N = T.length - 1) <= 0)) {
|
|
9746
|
-
var N, k = T[0], L = T[N],
|
|
9746
|
+
var N, k = T[0], L = T[N], M;
|
|
9747
9747
|
if (pointEqual(k, L)) {
|
|
9748
9748
|
for (o.lineStart(), m = 0; m < N; ++m) o.point((k = T[m])[0], k[1]);
|
|
9749
9749
|
o.lineEnd();
|
|
9750
9750
|
return;
|
|
9751
9751
|
}
|
|
9752
|
-
d.push(
|
|
9752
|
+
d.push(M = new Intersection(k, T, null, !0)), g.push(M.o = new Intersection(k, null, M, !1)), d.push(M = new Intersection(L, T, null, !1)), g.push(M.o = new Intersection(L, null, M, !0));
|
|
9753
9753
|
}
|
|
9754
9754
|
}), !!d.length) {
|
|
9755
9755
|
for (g.sort(t), link$1(d), link$1(g), m = 0, y = g.length; m < y; ++m)
|
|
@@ -9843,7 +9843,7 @@ function clipExtent(e, t, r, a) {
|
|
|
9843
9843
|
return I !== x ? I - x : I === 0 ? E[1] - b[1] : I === 1 ? b[0] - E[0] : I === 2 ? b[1] - E[1] : E[0] - b[0];
|
|
9844
9844
|
}
|
|
9845
9845
|
return function(b) {
|
|
9846
|
-
var E = b, I = clipBuffer(), x, S, T, N, k, L,
|
|
9846
|
+
var E = b, I = clipBuffer(), x, S, T, N, k, L, M, G, U, V, Y, X = {
|
|
9847
9847
|
point: Q,
|
|
9848
9848
|
lineStart: ae,
|
|
9849
9849
|
lineEnd: ie,
|
|
@@ -9867,7 +9867,7 @@ function clipExtent(e, t, r, a) {
|
|
|
9867
9867
|
(le || fe) && (b.polygonStart(), le && (b.lineStart(), d(null, null, 1, b), b.lineEnd()), fe && clipPolygon(x, m, ue, d, b), b.polygonEnd()), E = b, x = S = T = null;
|
|
9868
9868
|
}
|
|
9869
9869
|
function ae() {
|
|
9870
|
-
X.point = te, S && S.push(T = []), V = !0, U = !1,
|
|
9870
|
+
X.point = te, S && S.push(T = []), V = !0, U = !1, M = G = NaN;
|
|
9871
9871
|
}
|
|
9872
9872
|
function ie() {
|
|
9873
9873
|
x && (te(N, k), L && U && I.rejoin(), x.push(I.result())), X.point = Q, U && E.lineEnd();
|
|
@@ -9878,10 +9878,10 @@ function clipExtent(e, t, r, a) {
|
|
|
9878
9878
|
N = ue, k = le, L = fe, V = !1, fe && (E.lineStart(), E.point(ue, le));
|
|
9879
9879
|
else if (fe && U) E.point(ue, le);
|
|
9880
9880
|
else {
|
|
9881
|
-
var ve = [
|
|
9881
|
+
var ve = [M = Math.max(clipMin, Math.min(clipMax, M)), G = Math.max(clipMin, Math.min(clipMax, G))], Ee = [ue = Math.max(clipMin, Math.min(clipMax, ue)), le = Math.max(clipMin, Math.min(clipMax, le))];
|
|
9882
9882
|
clipLine(ve, Ee, e, t, r, a) ? (U || (E.lineStart(), E.point(ve[0], ve[1])), E.point(Ee[0], Ee[1]), fe || E.lineEnd(), Y = !1) : fe && (E.lineStart(), E.point(ue, le), Y = !1);
|
|
9883
9883
|
}
|
|
9884
|
-
|
|
9884
|
+
M = ue, G = le, U = fe;
|
|
9885
9885
|
}
|
|
9886
9886
|
return X;
|
|
9887
9887
|
};
|
|
@@ -9892,9 +9892,9 @@ function polygonContains(e, t) {
|
|
|
9892
9892
|
sum$2.reset();
|
|
9893
9893
|
for (var m = 0, y = e.length; m < y; ++m)
|
|
9894
9894
|
if (E = (b = e[m]).length)
|
|
9895
|
-
for (var b, E, I = b[E - 1], x = I[0], S = I[1] / 2 + quarterPi, T = sin(S), N = cos(S), k = 0; k < E; ++k, x =
|
|
9896
|
-
var L = b[k],
|
|
9897
|
-
if (sum$2.add(atan2(K * X * sin(Q), N * V + K * cos(Q))), d += H ? Y + X * tau : Y, H ^ x >= r ^
|
|
9895
|
+
for (var b, E, I = b[E - 1], x = I[0], S = I[1] / 2 + quarterPi, T = sin(S), N = cos(S), k = 0; k < E; ++k, x = M, T = U, N = V, I = L) {
|
|
9896
|
+
var L = b[k], M = L[0], G = L[1] / 2 + quarterPi, U = sin(G), V = cos(G), Y = M - x, X = Y >= 0 ? 1 : -1, Q = X * Y, H = Q > pi, K = T * U;
|
|
9897
|
+
if (sum$2.add(atan2(K * X * sin(Q), N * V + K * cos(Q))), d += H ? Y + X * tau : Y, H ^ x >= r ^ M >= r) {
|
|
9898
9898
|
var ee = cartesianCross(cartesian(I), cartesian(L));
|
|
9899
9899
|
cartesianNormalizeInPlace(ee);
|
|
9900
9900
|
var ae = cartesianCross(o, ee);
|
|
@@ -9931,12 +9931,12 @@ function clip(e, t, r, a) {
|
|
|
9931
9931
|
var g = t(d), m = o.invert(a[0], a[1]), y = clipBuffer(), b = t(y), E = !1, I, x, S, T = {
|
|
9932
9932
|
point: N,
|
|
9933
9933
|
lineStart: L,
|
|
9934
|
-
lineEnd:
|
|
9934
|
+
lineEnd: M,
|
|
9935
9935
|
polygonStart: function() {
|
|
9936
|
-
T.point =
|
|
9936
|
+
T.point = G, T.lineStart = U, T.lineEnd = V, x = [], I = [];
|
|
9937
9937
|
},
|
|
9938
9938
|
polygonEnd: function() {
|
|
9939
|
-
T.point = N, T.lineStart = L, T.lineEnd =
|
|
9939
|
+
T.point = N, T.lineStart = L, T.lineEnd = M, x = merge(x);
|
|
9940
9940
|
var Y = polygonContains(I, m);
|
|
9941
9941
|
x.length ? (E || (d.polygonStart(), E = !0), clipPolygon(x, compareIntersection, Y, r, d)) : Y && (E || (d.polygonStart(), E = !0), d.lineStart(), r(null, null, 1, d), d.lineEnd()), E && (d.polygonEnd(), E = !1), x = I = null;
|
|
9942
9942
|
},
|
|
@@ -9955,10 +9955,10 @@ function clip(e, t, r, a) {
|
|
|
9955
9955
|
function L() {
|
|
9956
9956
|
T.point = k, g.lineStart();
|
|
9957
9957
|
}
|
|
9958
|
-
function
|
|
9958
|
+
function M() {
|
|
9959
9959
|
T.point = N, g.lineEnd();
|
|
9960
9960
|
}
|
|
9961
|
-
function
|
|
9961
|
+
function G(Y, X) {
|
|
9962
9962
|
S.push([Y, X]);
|
|
9963
9963
|
var Q = o(Y, X);
|
|
9964
9964
|
b.point(Q[0], Q[1]);
|
|
@@ -9967,7 +9967,7 @@ function clip(e, t, r, a) {
|
|
|
9967
9967
|
b.lineStart(), S = [];
|
|
9968
9968
|
}
|
|
9969
9969
|
function V() {
|
|
9970
|
-
|
|
9970
|
+
G(S[0][0], S[0][1]), b.lineEnd();
|
|
9971
9971
|
var Y = b.clean(), X = y.result(), Q, H = X.length, K, ee, ae;
|
|
9972
9972
|
if (S.pop(), I.push(S), S = null, !!H) {
|
|
9973
9973
|
if (Y & 1) {
|
|
@@ -10044,14 +10044,14 @@ function clipCircle(e, t) {
|
|
|
10044
10044
|
T = S = !1, N = 1;
|
|
10045
10045
|
},
|
|
10046
10046
|
point: function(k, L) {
|
|
10047
|
-
var
|
|
10048
|
-
if (!I && (T = S = U) && E.lineStart(), U !== S && (
|
|
10049
|
-
N = 0, U ? (E.lineStart(),
|
|
10047
|
+
var M = [k, L], G, U = g(k, L), V = a ? U ? 0 : b(k, L) : U ? b(k + (k < 0 ? pi : -pi), L) : 0;
|
|
10048
|
+
if (!I && (T = S = U) && E.lineStart(), U !== S && (G = y(I, M), (!G || pointEqual(I, G) || pointEqual(M, G)) && (M[0] += epsilon$1, M[1] += epsilon$1, U = g(M[0], M[1]))), U !== S)
|
|
10049
|
+
N = 0, U ? (E.lineStart(), G = y(M, I), E.point(G[0], G[1])) : (G = y(I, M), E.point(G[0], G[1]), E.lineEnd()), I = G;
|
|
10050
10050
|
else if (o && I && a ^ U) {
|
|
10051
10051
|
var Y;
|
|
10052
|
-
!(V & x) && (Y = y(
|
|
10052
|
+
!(V & x) && (Y = y(M, I, !0)) && (N = 0, a ? (E.lineStart(), E.point(Y[0][0], Y[0][1]), E.point(Y[1][0], Y[1][1]), E.lineEnd()) : (E.point(Y[1][0], Y[1][1]), E.lineEnd(), E.lineStart(), E.point(Y[0][0], Y[0][1])));
|
|
10053
10053
|
}
|
|
10054
|
-
U && (!I || !pointEqual(I,
|
|
10054
|
+
U && (!I || !pointEqual(I, M)) && E.point(M[0], M[1]), I = M, S = U, x = V;
|
|
10055
10055
|
},
|
|
10056
10056
|
lineEnd: function() {
|
|
10057
10057
|
S && E.lineEnd(), I = null;
|
|
@@ -10064,9 +10064,9 @@ function clipCircle(e, t) {
|
|
|
10064
10064
|
};
|
|
10065
10065
|
}
|
|
10066
10066
|
function y(E, I, x) {
|
|
10067
|
-
var S = cartesian(E), T = cartesian(I), N = [1, 0, 0], k = cartesianCross(S, T), L = cartesianDot(k, k),
|
|
10068
|
-
if (!
|
|
10069
|
-
var U = r * L /
|
|
10067
|
+
var S = cartesian(E), T = cartesian(I), N = [1, 0, 0], k = cartesianCross(S, T), L = cartesianDot(k, k), M = k[0], G = L - M * M;
|
|
10068
|
+
if (!G) return !x && E;
|
|
10069
|
+
var U = r * L / G, V = -r * M / G, Y = cartesianCross(N, k), X = cartesianScale(N, U), Q = cartesianScale(k, V);
|
|
10070
10070
|
cartesianAddInPlace(X, Q);
|
|
10071
10071
|
var H = Y, K = cartesianDot(X, H), ee = cartesianDot(H, H), ae = K * K - ee * (cartesianDot(X, X) - 1);
|
|
10072
10072
|
if (!(ae < 0)) {
|
|
@@ -10139,31 +10139,31 @@ function resampleNone(e) {
|
|
|
10139
10139
|
}
|
|
10140
10140
|
function resample$1(e, t) {
|
|
10141
10141
|
function r(a, o, d, g, m, y, b, E, I, x, S, T, N, k) {
|
|
10142
|
-
var L = b - a,
|
|
10143
|
-
if (
|
|
10144
|
-
var U = g + x, V = m + S, Y = y + T, X = sqrt(U * U + V * V + Y * Y), Q = asin(Y /= X), H = abs$1(abs$1(Y) - 1) < epsilon$1 || abs$1(d - I) < epsilon$1 ? (d + I) / 2 : atan2(V, U), K = e(H, Q), ee = K[0], ae = K[1], ie = ee - a, te = ae - o, ue =
|
|
10145
|
-
(ue * ue /
|
|
10142
|
+
var L = b - a, M = E - o, G = L * L + M * M;
|
|
10143
|
+
if (G > 4 * t && N--) {
|
|
10144
|
+
var U = g + x, V = m + S, Y = y + T, X = sqrt(U * U + V * V + Y * Y), Q = asin(Y /= X), H = abs$1(abs$1(Y) - 1) < epsilon$1 || abs$1(d - I) < epsilon$1 ? (d + I) / 2 : atan2(V, U), K = e(H, Q), ee = K[0], ae = K[1], ie = ee - a, te = ae - o, ue = M * ie - L * te;
|
|
10145
|
+
(ue * ue / G > t || abs$1((L * ie + M * te) / G - 0.5) > 0.3 || g * x + m * S + y * T < cosMinDistance) && (r(a, o, d, g, m, y, ee, ae, H, U /= X, V /= X, Y, N, k), k.point(ee, ae), r(ee, ae, H, U, V, Y, b, E, I, x, S, T, N, k));
|
|
10146
10146
|
}
|
|
10147
10147
|
}
|
|
10148
10148
|
return function(a) {
|
|
10149
10149
|
var o, d, g, m, y, b, E, I, x, S, T, N, k = {
|
|
10150
10150
|
point: L,
|
|
10151
|
-
lineStart:
|
|
10151
|
+
lineStart: M,
|
|
10152
10152
|
lineEnd: U,
|
|
10153
10153
|
polygonStart: function() {
|
|
10154
10154
|
a.polygonStart(), k.lineStart = V;
|
|
10155
10155
|
},
|
|
10156
10156
|
polygonEnd: function() {
|
|
10157
|
-
a.polygonEnd(), k.lineStart =
|
|
10157
|
+
a.polygonEnd(), k.lineStart = M;
|
|
10158
10158
|
}
|
|
10159
10159
|
};
|
|
10160
10160
|
function L(Q, H) {
|
|
10161
10161
|
Q = e(Q, H), a.point(Q[0], Q[1]);
|
|
10162
10162
|
}
|
|
10163
|
-
function
|
|
10164
|
-
I = NaN, k.point =
|
|
10163
|
+
function M() {
|
|
10164
|
+
I = NaN, k.point = G, a.lineStart();
|
|
10165
10165
|
}
|
|
10166
|
-
function
|
|
10166
|
+
function G(Q, H) {
|
|
10167
10167
|
var K = cartesian([Q, H]), ee = e(Q, H);
|
|
10168
10168
|
r(I, x, E, S, T, N, I = ee[0], x = ee[1], E = Q, S = K[0], T = K[1], N = K[2], maxDepth, a), a.point(I, x);
|
|
10169
10169
|
}
|
|
@@ -10171,10 +10171,10 @@ function resample$1(e, t) {
|
|
|
10171
10171
|
k.point = L, a.lineEnd();
|
|
10172
10172
|
}
|
|
10173
10173
|
function V() {
|
|
10174
|
-
|
|
10174
|
+
M(), k.point = Y, k.lineEnd = X;
|
|
10175
10175
|
}
|
|
10176
10176
|
function Y(Q, H) {
|
|
10177
|
-
|
|
10177
|
+
G(o = Q, H), d = I, g = x, m = S, y = T, b = N, k.point = G;
|
|
10178
10178
|
}
|
|
10179
10179
|
function X() {
|
|
10180
10180
|
r(I, x, E, S, T, N, d, g, o, m, y, b, maxDepth, a), k.lineEnd = U, U();
|
|
@@ -10193,7 +10193,7 @@ function projection(e) {
|
|
|
10193
10193
|
})();
|
|
10194
10194
|
}
|
|
10195
10195
|
function projectionMutator(e) {
|
|
10196
|
-
var t, r = 150, a = 480, o = 250, d, g, m = 0, y = 0, b = 0, E = 0, I = 0, x, S, T = null, N = clipAntimeridian, k = null, L,
|
|
10196
|
+
var t, r = 150, a = 480, o = 250, d, g, m = 0, y = 0, b = 0, E = 0, I = 0, x, S, T = null, N = clipAntimeridian, k = null, L, M, G, U = identity, V = 0.5, Y = resample(ee, V), X, Q;
|
|
10197
10197
|
function H(te) {
|
|
10198
10198
|
return te = S(te[0] * radians, te[1] * radians), [te[0] * r + d, g - te[1] * r];
|
|
10199
10199
|
}
|
|
@@ -10208,7 +10208,7 @@ function projectionMutator(e) {
|
|
|
10208
10208
|
}, H.clipAngle = function(te) {
|
|
10209
10209
|
return arguments.length ? (N = +te ? clipCircle(T = te * radians, 6 * radians) : (T = null, clipAntimeridian), ie()) : T * degrees;
|
|
10210
10210
|
}, H.clipExtent = function(te) {
|
|
10211
|
-
return arguments.length ? (U = te == null ? (k = L =
|
|
10211
|
+
return arguments.length ? (U = te == null ? (k = L = M = G = null, identity) : clipExtent(k = +te[0][0], L = +te[0][1], M = +te[1][0], G = +te[1][1]), ie()) : k == null ? null : [[k, L], [M, G]];
|
|
10212
10212
|
}, H.scale = function(te) {
|
|
10213
10213
|
return arguments.length ? (r = +te, ae()) : r;
|
|
10214
10214
|
}, H.translate = function(te) {
|
|
@@ -10790,14 +10790,14 @@ const mapBasemapBundle = {
|
|
|
10790
10790
|
maxZoom: k
|
|
10791
10791
|
};
|
|
10792
10792
|
I && (L.extent = I);
|
|
10793
|
-
const
|
|
10793
|
+
const M = new View(L), G = new olMap({
|
|
10794
10794
|
controls: [new ScaleBar({ units: "us" })],
|
|
10795
10795
|
target: a,
|
|
10796
|
-
view:
|
|
10796
|
+
view: M
|
|
10797
10797
|
});
|
|
10798
|
-
|
|
10798
|
+
G.on("moveend", debounce(g.doMapUpdateViewState, 200)), G.on("precompose", debounce(g.doMapPreCompose, 50)), G.on("rendercomplete", debounce(g.doMapRenderComplete, 200)), d({
|
|
10799
10799
|
type: "MAP_INITIALIZED",
|
|
10800
|
-
payload: { map:
|
|
10800
|
+
payload: { map: G, opts: o }
|
|
10801
10801
|
});
|
|
10802
10802
|
},
|
|
10803
10803
|
doMapPreCompose: () => ({ dispatch: a }) => {
|
|
@@ -12841,7 +12841,7 @@ const config$1 = {
|
|
|
12841
12841
|
path: "depricated"
|
|
12842
12842
|
}
|
|
12843
12843
|
]
|
|
12844
|
-
}, version = "4.1.
|
|
12844
|
+
}, version = "4.1.20", pkg = {
|
|
12845
12845
|
version
|
|
12846
12846
|
};
|
|
12847
12847
|
console.log("------ RUNNING CORPSMAP V." + pkg.version + " ------");
|
|
@@ -14152,7 +14152,7 @@ function requireDom() {
|
|
|
14152
14152
|
}
|
|
14153
14153
|
z.constructor != F && (typeof F != "function" && console.error("unknown Class:" + F), z.constructor = F);
|
|
14154
14154
|
}
|
|
14155
|
-
var E = {}, I = E.ELEMENT_NODE = 1, x = E.ATTRIBUTE_NODE = 2, S = E.TEXT_NODE = 3, T = E.CDATA_SECTION_NODE = 4, N = E.ENTITY_REFERENCE_NODE = 5, k = E.ENTITY_NODE = 6, L = E.PROCESSING_INSTRUCTION_NODE = 7,
|
|
14155
|
+
var E = {}, I = E.ELEMENT_NODE = 1, x = E.ATTRIBUTE_NODE = 2, S = E.TEXT_NODE = 3, T = E.CDATA_SECTION_NODE = 4, N = E.ENTITY_REFERENCE_NODE = 5, k = E.ENTITY_NODE = 6, L = E.PROCESSING_INSTRUCTION_NODE = 7, M = E.COMMENT_NODE = 8, G = E.DOCUMENT_NODE = 9, U = E.DOCUMENT_TYPE_NODE = 10, V = E.DOCUMENT_FRAGMENT_NODE = 11, Y = E.NOTATION_NODE = 12, X = {}, Q = {};
|
|
14156
14156
|
X.INDEX_SIZE_ERR = (Q[1] = "Index size error", 1), X.DOMSTRING_SIZE_ERR = (Q[2] = "DOMString size error", 2);
|
|
14157
14157
|
var H = X.HIERARCHY_REQUEST_ERR = (Q[3] = "Hierarchy request error", 3);
|
|
14158
14158
|
X.WRONG_DOCUMENT_ERR = (Q[4] = "Wrong document", 4);
|
|
@@ -14641,8 +14641,8 @@ function requireDom() {
|
|
|
14641
14641
|
if (Be($) && !dt(F, z))
|
|
14642
14642
|
throw new te(H, "Only one element can be added and only after doctype");
|
|
14643
14643
|
if (Oe($)) {
|
|
14644
|
-
if (t(se, function(
|
|
14645
|
-
return Oe(
|
|
14644
|
+
if (t(se, function(Ze) {
|
|
14645
|
+
return Oe(Ze) && Ze !== z;
|
|
14646
14646
|
}))
|
|
14647
14647
|
throw new te(H, "Only one doctype is allowed");
|
|
14648
14648
|
var me = t(se, Be);
|
|
@@ -14664,8 +14664,8 @@ function requireDom() {
|
|
|
14664
14664
|
Ce.previousSibling = ze, me.nextSibling = z, ze ? ze.nextSibling = Ce : F.firstChild = Ce, z == null ? F.lastChild = me : z.previousSibling = me;
|
|
14665
14665
|
do {
|
|
14666
14666
|
Ce.parentNode = F;
|
|
14667
|
-
var
|
|
14668
|
-
gt(Ce,
|
|
14667
|
+
var Ze = F.ownerDocument || F;
|
|
14668
|
+
gt(Ce, Ze);
|
|
14669
14669
|
} while (Ce !== me && (Ce = Ce.nextSibling));
|
|
14670
14670
|
return ye(F.ownerDocument || F, F), $.nodeType == V && ($.firstChild = $.lastChild = null), $;
|
|
14671
14671
|
}
|
|
@@ -14688,7 +14688,7 @@ function requireDom() {
|
|
|
14688
14688
|
Pe.prototype = {
|
|
14689
14689
|
//implementation : null,
|
|
14690
14690
|
nodeName: "#document",
|
|
14691
|
-
nodeType:
|
|
14691
|
+
nodeType: G,
|
|
14692
14692
|
/**
|
|
14693
14693
|
* The DocumentType node of the document.
|
|
14694
14694
|
*
|
|
@@ -14954,7 +14954,7 @@ function requireDom() {
|
|
|
14954
14954
|
}
|
|
14955
14955
|
Lt.prototype = {
|
|
14956
14956
|
nodeName: "#comment",
|
|
14957
|
-
nodeType:
|
|
14957
|
+
nodeType: M
|
|
14958
14958
|
}, b(Lt, yt);
|
|
14959
14959
|
function Me() {
|
|
14960
14960
|
}
|
|
@@ -14990,12 +14990,12 @@ function requireDom() {
|
|
|
14990
14990
|
if (ze && me == null) {
|
|
14991
14991
|
var me = Ce.lookupPrefix(ze);
|
|
14992
14992
|
if (me == null)
|
|
14993
|
-
var
|
|
14993
|
+
var Ze = [
|
|
14994
14994
|
{ namespace: ze, prefix: null }
|
|
14995
14995
|
//{namespace:uri,prefix:''}
|
|
14996
14996
|
];
|
|
14997
14997
|
}
|
|
14998
|
-
return Qe(this, be, F, $,
|
|
14998
|
+
return Qe(this, be, F, $, Ze, se), be.join("");
|
|
14999
14999
|
}
|
|
15000
15000
|
function Je(F, $, z) {
|
|
15001
15001
|
var se = F.prefix || "", be = F.namespaceURI;
|
|
@@ -15014,7 +15014,7 @@ function requireDom() {
|
|
|
15014
15014
|
function Qe(F, $, z, se, be, Ce) {
|
|
15015
15015
|
be || (be = []), De(F, { ns: be, isHTML: z }, {
|
|
15016
15016
|
enter: function(me, ze) {
|
|
15017
|
-
var
|
|
15017
|
+
var Ze = ze.ns, Ye = ze.isHTML;
|
|
15018
15018
|
if (se)
|
|
15019
15019
|
if (me = se(me), me) {
|
|
15020
15020
|
if (typeof me == "string")
|
|
@@ -15024,25 +15024,25 @@ function requireDom() {
|
|
|
15024
15024
|
switch (me.nodeType) {
|
|
15025
15025
|
case I:
|
|
15026
15026
|
var vt = me.attributes, Pt = vt.length, Rt = me.tagName;
|
|
15027
|
-
|
|
15027
|
+
Ye = r.isHTML(me.namespaceURI) || Ye;
|
|
15028
15028
|
var xt = Rt;
|
|
15029
|
-
if (!
|
|
15030
|
-
for (var
|
|
15029
|
+
if (!Ye && !me.prefix && me.namespaceURI) {
|
|
15030
|
+
for (var Zt, Ke = 0; Ke < vt.length; Ke++)
|
|
15031
15031
|
if (vt.item(Ke).name === "xmlns") {
|
|
15032
|
-
|
|
15032
|
+
Zt = vt.item(Ke).value;
|
|
15033
15033
|
break;
|
|
15034
15034
|
}
|
|
15035
|
-
if (!
|
|
15036
|
-
for (var St =
|
|
15037
|
-
var ht =
|
|
15035
|
+
if (!Zt)
|
|
15036
|
+
for (var St = Ze.length - 1; St >= 0; St--) {
|
|
15037
|
+
var ht = Ze[St];
|
|
15038
15038
|
if (ht.prefix === "" && ht.namespace === me.namespaceURI) {
|
|
15039
|
-
|
|
15039
|
+
Zt = ht.namespace;
|
|
15040
15040
|
break;
|
|
15041
15041
|
}
|
|
15042
15042
|
}
|
|
15043
|
-
if (
|
|
15044
|
-
for (var St =
|
|
15045
|
-
var ht =
|
|
15043
|
+
if (Zt !== me.namespaceURI)
|
|
15044
|
+
for (var St = Ze.length - 1; St >= 0; St--) {
|
|
15045
|
+
var ht = Ze[St];
|
|
15046
15046
|
if (ht.namespace === me.namespaceURI) {
|
|
15047
15047
|
ht.prefix && (xt = ht.prefix + ":" + Rt);
|
|
15048
15048
|
break;
|
|
@@ -15050,36 +15050,36 @@ function requireDom() {
|
|
|
15050
15050
|
}
|
|
15051
15051
|
}
|
|
15052
15052
|
$.push("<", xt);
|
|
15053
|
-
for (var rt =
|
|
15053
|
+
for (var rt = Ze.slice(), ut = 0; ut < Pt; ut++) {
|
|
15054
15054
|
var ot = vt.item(ut);
|
|
15055
15055
|
ot.prefix == "xmlns" ? rt.push({ prefix: ot.localName, namespace: ot.value }) : ot.nodeName == "xmlns" && rt.push({ prefix: "", namespace: ot.value });
|
|
15056
15056
|
}
|
|
15057
15057
|
for (var ut = 0; ut < Pt; ut++) {
|
|
15058
15058
|
var ot = vt.item(ut);
|
|
15059
|
-
if (Je(ot,
|
|
15059
|
+
if (Je(ot, Ye, rt)) {
|
|
15060
15060
|
var jt = ot.prefix || "", At = ot.namespaceURI;
|
|
15061
15061
|
ct($, jt ? "xmlns:" + jt : "xmlns", At), rt.push({ prefix: jt, namespace: At });
|
|
15062
15062
|
}
|
|
15063
15063
|
var We = se ? se(ot) : ot;
|
|
15064
15064
|
We && (typeof We == "string" ? $.push(We) : ct($, We.name, We.value));
|
|
15065
15065
|
}
|
|
15066
|
-
if (Rt === xt && Je(me,
|
|
15066
|
+
if (Rt === xt && Je(me, Ye, rt)) {
|
|
15067
15067
|
var ar = me.prefix || "", At = me.namespaceURI;
|
|
15068
15068
|
ct($, ar ? "xmlns:" + ar : "xmlns", At), rt.push({ prefix: ar, namespace: At });
|
|
15069
15069
|
}
|
|
15070
15070
|
var Ft = me.firstChild;
|
|
15071
|
-
if (Ft ||
|
|
15072
|
-
if ($.push(">"),
|
|
15071
|
+
if (Ft || Ye && !/^(?:meta|link|img|br|hr|input)$/i.test(Rt)) {
|
|
15072
|
+
if ($.push(">"), Ye && /^script$/i.test(Rt)) {
|
|
15073
15073
|
for (; Ft; )
|
|
15074
|
-
Ft.data ? $.push(Ft.data) : Qe(Ft, $,
|
|
15074
|
+
Ft.data ? $.push(Ft.data) : Qe(Ft, $, Ye, se, rt.slice(), Ce), Ft = Ft.nextSibling;
|
|
15075
15075
|
return $.push("</", Rt, ">"), null;
|
|
15076
15076
|
}
|
|
15077
|
-
return { ns: rt, isHTML:
|
|
15077
|
+
return { ns: rt, isHTML: Ye, tag: xt };
|
|
15078
15078
|
} else
|
|
15079
15079
|
return $.push("/>"), null;
|
|
15080
|
-
case
|
|
15080
|
+
case G:
|
|
15081
15081
|
case V:
|
|
15082
|
-
return { ns:
|
|
15082
|
+
return { ns: Ze.slice(), isHTML: Ye, tag: null };
|
|
15083
15083
|
case x:
|
|
15084
15084
|
return ct($, me.name, me.value), null;
|
|
15085
15085
|
case S:
|
|
@@ -15088,7 +15088,7 @@ function requireDom() {
|
|
|
15088
15088
|
if (Ce && me.data.indexOf("]]>") !== -1)
|
|
15089
15089
|
throw new te(ie, 'The CDATASection data contains "]]>"');
|
|
15090
15090
|
return $.push("<![CDATA[", me.data.replace(/]]>/g, "]]]]><![CDATA[>"), "]]>"), null;
|
|
15091
|
-
case
|
|
15091
|
+
case M:
|
|
15092
15092
|
if (Ce && me.data.indexOf("-->") !== -1)
|
|
15093
15093
|
throw new te(ie, 'The comment node data contains "-->"');
|
|
15094
15094
|
return $.push("<!--", me.data, "-->"), null;
|
|
@@ -15146,11 +15146,11 @@ function requireDom() {
|
|
|
15146
15146
|
var me = new be.constructor();
|
|
15147
15147
|
for (var ze in be)
|
|
15148
15148
|
if (Object.prototype.hasOwnProperty.call(be, ze)) {
|
|
15149
|
-
var
|
|
15150
|
-
typeof
|
|
15149
|
+
var Ze = be[ze];
|
|
15150
|
+
typeof Ze != "object" && Ze != me[ze] && (me[ze] = Ze);
|
|
15151
15151
|
}
|
|
15152
15152
|
be.childNodes && (me.childNodes = new ue()), me.ownerDocument = F;
|
|
15153
|
-
var
|
|
15153
|
+
var Ye = z;
|
|
15154
15154
|
switch (me.nodeType) {
|
|
15155
15155
|
case I:
|
|
15156
15156
|
var vt = be.attributes, Pt = me.attributes = new ve(), Rt = vt.length;
|
|
@@ -15159,9 +15159,9 @@ function requireDom() {
|
|
|
15159
15159
|
me.setAttributeNode(zt(F, vt.item(xt), !0));
|
|
15160
15160
|
break;
|
|
15161
15161
|
case x:
|
|
15162
|
-
|
|
15162
|
+
Ye = !0;
|
|
15163
15163
|
}
|
|
15164
|
-
return Ce !== null ? Ce.appendChild(me) : se = me,
|
|
15164
|
+
return Ce !== null ? Ce.appendChild(me) : se = me, Ye ? me : null;
|
|
15165
15165
|
}
|
|
15166
15166
|
}), se;
|
|
15167
15167
|
}
|
|
@@ -15181,7 +15181,7 @@ function requireDom() {
|
|
|
15181
15181
|
enter: function($) {
|
|
15182
15182
|
if ($.nodeType === I || $.nodeType === V)
|
|
15183
15183
|
return !0;
|
|
15184
|
-
if ($.nodeType === L || $.nodeType ===
|
|
15184
|
+
if ($.nodeType === L || $.nodeType === M)
|
|
15185
15185
|
return null;
|
|
15186
15186
|
F.push($.nodeValue);
|
|
15187
15187
|
}
|
|
@@ -17429,7 +17429,7 @@ function requireSax() {
|
|
|
17429
17429
|
default:
|
|
17430
17430
|
Re && fe(Ie);
|
|
17431
17431
|
var Oe = new X(), Be = xe[xe.length - 1].currentNSMap, Fe = k(H, Ie, Oe, Be, ue, ie), it = Oe.length;
|
|
17432
|
-
if (!Oe.closed &&
|
|
17432
|
+
if (!Oe.closed && G(H, Fe, Oe.tagName, ge) && (Oe.closed = !0, ee.nbsp || ie.warning("unclosed xml attribute")), Re && it) {
|
|
17433
17433
|
for (var dt = N(Re, {}), he = 0; he < it; he++) {
|
|
17434
17434
|
var at = Oe[he];
|
|
17435
17435
|
fe(at.offset), at.locator = N(Re, {});
|
|
@@ -17437,7 +17437,7 @@ function requireSax() {
|
|
|
17437
17437
|
ae.locator = dt, L(Oe, ae, Be) && xe.push(Oe), ae.locator = Re;
|
|
17438
17438
|
} else
|
|
17439
17439
|
L(Oe, ae, Be) && xe.push(Oe);
|
|
17440
|
-
e.isHTML(Oe.uri) && !Oe.closed ? Fe =
|
|
17440
|
+
e.isHTML(Oe.uri) && !Oe.closed ? Fe = M(H, Fe, Oe.tagName, ue, ae) : Fe++;
|
|
17441
17441
|
}
|
|
17442
17442
|
} catch (je) {
|
|
17443
17443
|
if (je instanceof x)
|
|
@@ -17592,7 +17592,7 @@ function requireSax() {
|
|
|
17592
17592
|
} else
|
|
17593
17593
|
return H.currentNSMap = ee, H.localNSMap = ie, !0;
|
|
17594
17594
|
}
|
|
17595
|
-
function
|
|
17595
|
+
function M(H, K, ee, ae, ie) {
|
|
17596
17596
|
if (/^(?:script|textarea)$/i.test(ee)) {
|
|
17597
17597
|
var te = H.indexOf("</" + ee + ">", K), ue = H.substring(K + 1, te);
|
|
17598
17598
|
if (/[&<]/.test(ue))
|
|
@@ -17600,7 +17600,7 @@ function requireSax() {
|
|
|
17600
17600
|
}
|
|
17601
17601
|
return K + 1;
|
|
17602
17602
|
}
|
|
17603
|
-
function
|
|
17603
|
+
function G(H, K, ee, ae) {
|
|
17604
17604
|
var ie = ae[ee];
|
|
17605
17605
|
return ie == null && (ie = H.lastIndexOf("</" + ee + ">"), ie < K && (ie = H.lastIndexOf("</" + ee)), ae[ee] = ie), ie < K;
|
|
17606
17606
|
}
|
|
@@ -17702,33 +17702,33 @@ function requireDomParser() {
|
|
|
17702
17702
|
this.options = k || { locator: {} };
|
|
17703
17703
|
}
|
|
17704
17704
|
b.prototype.parseFromString = function(k, L) {
|
|
17705
|
-
var
|
|
17706
|
-
Y && U.setDocumentLocator(Y),
|
|
17707
|
-
var K =
|
|
17708
|
-
return k && typeof k == "string" ?
|
|
17705
|
+
var M = this.options, G = new m(), U = M.domBuilder || new I(), V = M.errorHandler, Y = M.locator, X = M.xmlns || {}, Q = /\/x?html?$/.test(L), H = Q ? r.HTML_ENTITIES : r.XML_ENTITIES;
|
|
17706
|
+
Y && U.setDocumentLocator(Y), G.errorHandler = E(V, U, Y), G.domBuilder = M.domBuilder || U, Q && (X[""] = d.HTML), X.xml = X.xml || d.XML;
|
|
17707
|
+
var K = M.normalizeLineEndings || y;
|
|
17708
|
+
return k && typeof k == "string" ? G.parse(
|
|
17709
17709
|
K(k),
|
|
17710
17710
|
X,
|
|
17711
17711
|
H
|
|
17712
|
-
) :
|
|
17712
|
+
) : G.errorHandler.error("invalid doc source"), U.doc;
|
|
17713
17713
|
};
|
|
17714
|
-
function E(k, L,
|
|
17714
|
+
function E(k, L, M) {
|
|
17715
17715
|
if (!k) {
|
|
17716
17716
|
if (L instanceof I)
|
|
17717
17717
|
return L;
|
|
17718
17718
|
k = L;
|
|
17719
17719
|
}
|
|
17720
|
-
var
|
|
17721
|
-
|
|
17720
|
+
var G = {}, U = k instanceof Function;
|
|
17721
|
+
M = M || {};
|
|
17722
17722
|
function V(Y) {
|
|
17723
17723
|
var X = k[Y];
|
|
17724
17724
|
!X && U && (X = k.length == 2 ? function(Q) {
|
|
17725
17725
|
k(Y, Q);
|
|
17726
|
-
} : k),
|
|
17727
|
-
X("[xmldom " + Y + "] " + Q + S(
|
|
17726
|
+
} : k), G[Y] = X && function(Q) {
|
|
17727
|
+
X("[xmldom " + Y + "] " + Q + S(M));
|
|
17728
17728
|
} || function() {
|
|
17729
17729
|
};
|
|
17730
17730
|
}
|
|
17731
|
-
return V("warning"), V("error"), V("fatalError"),
|
|
17731
|
+
return V("warning"), V("error"), V("fatalError"), G;
|
|
17732
17732
|
}
|
|
17733
17733
|
function I() {
|
|
17734
17734
|
this.cdata = !1;
|
|
@@ -17740,35 +17740,35 @@ function requireDomParser() {
|
|
|
17740
17740
|
startDocument: function() {
|
|
17741
17741
|
this.doc = new o().createDocument(null, null, null), this.locator && (this.doc.documentURI = this.locator.systemId);
|
|
17742
17742
|
},
|
|
17743
|
-
startElement: function(k, L,
|
|
17744
|
-
var U = this.doc, V = U.createElementNS(k,
|
|
17743
|
+
startElement: function(k, L, M, G) {
|
|
17744
|
+
var U = this.doc, V = U.createElementNS(k, M || L), Y = G.length;
|
|
17745
17745
|
N(this, V), this.currentElement = V, this.locator && x(this.locator, V);
|
|
17746
17746
|
for (var X = 0; X < Y; X++) {
|
|
17747
|
-
var k =
|
|
17748
|
-
this.locator && x(
|
|
17747
|
+
var k = G.getURI(X), Q = G.getValue(X), M = G.getQName(X), H = U.createAttributeNS(k, M);
|
|
17748
|
+
this.locator && x(G.getLocator(X), H), H.value = H.nodeValue = Q, V.setAttributeNode(H);
|
|
17749
17749
|
}
|
|
17750
17750
|
},
|
|
17751
|
-
endElement: function(k, L,
|
|
17752
|
-
var
|
|
17753
|
-
|
|
17751
|
+
endElement: function(k, L, M) {
|
|
17752
|
+
var G = this.currentElement;
|
|
17753
|
+
G.tagName, this.currentElement = G.parentNode;
|
|
17754
17754
|
},
|
|
17755
17755
|
startPrefixMapping: function(k, L) {
|
|
17756
17756
|
},
|
|
17757
17757
|
endPrefixMapping: function(k) {
|
|
17758
17758
|
},
|
|
17759
17759
|
processingInstruction: function(k, L) {
|
|
17760
|
-
var
|
|
17761
|
-
this.locator && x(this.locator,
|
|
17760
|
+
var M = this.doc.createProcessingInstruction(k, L);
|
|
17761
|
+
this.locator && x(this.locator, M), N(this, M);
|
|
17762
17762
|
},
|
|
17763
|
-
ignorableWhitespace: function(k, L,
|
|
17763
|
+
ignorableWhitespace: function(k, L, M) {
|
|
17764
17764
|
},
|
|
17765
|
-
characters: function(k, L,
|
|
17765
|
+
characters: function(k, L, M) {
|
|
17766
17766
|
if (k = T.apply(this, arguments), k) {
|
|
17767
17767
|
if (this.cdata)
|
|
17768
|
-
var
|
|
17768
|
+
var G = this.doc.createCDATASection(k);
|
|
17769
17769
|
else
|
|
17770
|
-
var
|
|
17771
|
-
this.currentElement ? this.currentElement.appendChild(
|
|
17770
|
+
var G = this.doc.createTextNode(k);
|
|
17771
|
+
this.currentElement ? this.currentElement.appendChild(G) : /^\s*$/.test(k) && this.doc.appendChild(G), this.locator && x(this.locator, G);
|
|
17772
17772
|
}
|
|
17773
17773
|
},
|
|
17774
17774
|
skippedEntity: function(k) {
|
|
@@ -17780,10 +17780,10 @@ function requireDomParser() {
|
|
|
17780
17780
|
(this.locator = k) && (k.lineNumber = 0);
|
|
17781
17781
|
},
|
|
17782
17782
|
//LexicalHandler
|
|
17783
|
-
comment: function(k, L,
|
|
17783
|
+
comment: function(k, L, M) {
|
|
17784
17784
|
k = T.apply(this, arguments);
|
|
17785
|
-
var
|
|
17786
|
-
this.locator && x(this.locator,
|
|
17785
|
+
var G = this.doc.createComment(k);
|
|
17786
|
+
this.locator && x(this.locator, G), N(this, G);
|
|
17787
17787
|
},
|
|
17788
17788
|
startCDATA: function() {
|
|
17789
17789
|
this.cdata = !0;
|
|
@@ -17791,10 +17791,10 @@ function requireDomParser() {
|
|
|
17791
17791
|
endCDATA: function() {
|
|
17792
17792
|
this.cdata = !1;
|
|
17793
17793
|
},
|
|
17794
|
-
startDTD: function(k, L,
|
|
17795
|
-
var
|
|
17796
|
-
if (
|
|
17797
|
-
var U =
|
|
17794
|
+
startDTD: function(k, L, M) {
|
|
17795
|
+
var G = this.doc.implementation;
|
|
17796
|
+
if (G && G.createDocumentType) {
|
|
17797
|
+
var U = G.createDocumentType(k, L, M);
|
|
17798
17798
|
this.locator && x(this.locator, U), N(this, U), this.doc.doctype = U;
|
|
17799
17799
|
}
|
|
17800
17800
|
},
|
|
@@ -17817,8 +17817,8 @@ function requireDomParser() {
|
|
|
17817
17817
|
return `
|
|
17818
17818
|
@` + (k.systemId || "") + "#[line:" + k.lineNumber + ",col:" + k.columnNumber + "]";
|
|
17819
17819
|
}
|
|
17820
|
-
function T(k, L,
|
|
17821
|
-
return typeof k == "string" ? k.substr(L,
|
|
17820
|
+
function T(k, L, M) {
|
|
17821
|
+
return typeof k == "string" ? k.substr(L, M) : k.length >= L + M || L ? new java.lang.String(k, L, M) + "" : k;
|
|
17822
17822
|
}
|
|
17823
17823
|
"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g, function(k) {
|
|
17824
17824
|
I.prototype[k] = function() {
|
|
@@ -17889,7 +17889,7 @@ function requireTogeojson() {
|
|
|
17889
17889
|
ee.push(k(K[ae]));
|
|
17890
17890
|
return ee;
|
|
17891
17891
|
}
|
|
17892
|
-
function
|
|
17892
|
+
function M(H) {
|
|
17893
17893
|
var K = [b(H, "lon"), b(H, "lat")], ee = E(H, "ele"), ae = E(H, "gpxtpx:hr") || E(H, "hr"), ie = E(H, "time"), te;
|
|
17894
17894
|
return ee && (te = parseFloat(S(ee)), isNaN(te) || K.push(te)), {
|
|
17895
17895
|
coordinates: K,
|
|
@@ -17897,7 +17897,7 @@ function requireTogeojson() {
|
|
|
17897
17897
|
heartRate: ae ? parseFloat(S(ae)) : null
|
|
17898
17898
|
};
|
|
17899
17899
|
}
|
|
17900
|
-
function
|
|
17900
|
+
function G() {
|
|
17901
17901
|
return {
|
|
17902
17902
|
type: "FeatureCollection",
|
|
17903
17903
|
features: []
|
|
@@ -17918,7 +17918,7 @@ function requireTogeojson() {
|
|
|
17918
17918
|
}
|
|
17919
17919
|
var Q = {
|
|
17920
17920
|
kml: function(H) {
|
|
17921
|
-
for (var K =
|
|
17921
|
+
for (var K = G(), ee = {}, ae = {}, ie = {}, te = ["Polygon", "LineString", "Point", "Track", "gx:Track"], ue = m(H, "Placemark"), le = m(H, "Style"), fe = m(H, "StyleMap"), ve = 0; ve < le.length; ve++) {
|
|
17922
17922
|
var Ee = g(X(le[ve])).toString(16);
|
|
17923
17923
|
ee["#" + y(le[ve], "id")] = Ee, ae[Ee] = le[ve];
|
|
17924
17924
|
}
|
|
@@ -18040,7 +18040,7 @@ function requireTogeojson() {
|
|
|
18040
18040
|
return K;
|
|
18041
18041
|
},
|
|
18042
18042
|
gpx: function(H) {
|
|
18043
|
-
var K, ee = m(H, "trk"), ae = m(H, "rte"), ie = m(H, "wpt"), te =
|
|
18043
|
+
var K, ee = m(H, "trk"), ae = m(H, "rte"), ie = m(H, "wpt"), te = G(), ue;
|
|
18044
18044
|
for (K = 0; K < ee.length; K++)
|
|
18045
18045
|
ue = ve(ee[K]), ue && te.features.push(ue);
|
|
18046
18046
|
for (K = 0; K < ae.length; K++)
|
|
@@ -18056,7 +18056,7 @@ function requireTogeojson() {
|
|
|
18056
18056
|
var Ie = m(ge, pe), De = [], Pe = [], J = [], $e = Ie.length;
|
|
18057
18057
|
if ($e < 2) return {};
|
|
18058
18058
|
for (var ye = 0; ye < $e; ye++) {
|
|
18059
|
-
var de =
|
|
18059
|
+
var de = M(Ie[ye]);
|
|
18060
18060
|
De.push(de.coordinates), de.time && Pe.push(de.time), (de.heartRate || J.length) && (J.length || le(J, ye), J.push(de.heartRate || null));
|
|
18061
18061
|
}
|
|
18062
18062
|
return {
|
|
@@ -18108,7 +18108,7 @@ function requireTogeojson() {
|
|
|
18108
18108
|
properties: pe,
|
|
18109
18109
|
geometry: {
|
|
18110
18110
|
type: "Point",
|
|
18111
|
-
coordinates:
|
|
18111
|
+
coordinates: M(ge).coordinates
|
|
18112
18112
|
}
|
|
18113
18113
|
};
|
|
18114
18114
|
}
|
|
@@ -18388,13 +18388,13 @@ const bundle$k = {
|
|
|
18388
18388
|
m.layers = `all:${x}`;
|
|
18389
18389
|
const S = Object.assign({}, m, { root: I }), T = formatUrl$1(S);
|
|
18390
18390
|
y.push((N) => {
|
|
18391
|
-
r(T, (k, L,
|
|
18391
|
+
r(T, (k, L, M) => {
|
|
18392
18392
|
if (k || L.statusCode !== 200)
|
|
18393
18393
|
N(`Error for ${b.displayName}`);
|
|
18394
18394
|
else
|
|
18395
18395
|
try {
|
|
18396
|
-
let
|
|
18397
|
-
|
|
18396
|
+
let G = JSON.parse(M);
|
|
18397
|
+
G = identifyColumnsArcgisrest(G, d), b.identifyFields && G.results.forEach((U) => {
|
|
18398
18398
|
if (U.attributes)
|
|
18399
18399
|
for (const [V, Y] of Object.entries(U.attributes)) {
|
|
18400
18400
|
let X = [];
|
|
@@ -18402,7 +18402,7 @@ const bundle$k = {
|
|
|
18402
18402
|
U.attributes[Q] && (X[Q] = U.attributes[Q]);
|
|
18403
18403
|
}), U.attributes = X;
|
|
18404
18404
|
}
|
|
18405
|
-
}), b.identifyRenameColums &&
|
|
18405
|
+
}), b.identifyRenameColums && G.results.forEach((U) => {
|
|
18406
18406
|
if (U.attributes)
|
|
18407
18407
|
for (const [V, Y] of Object.entries(U.attributes))
|
|
18408
18408
|
for (const [X, Q] of Object.entries(b.identifyRenameColums))
|
|
@@ -18414,7 +18414,7 @@ const bundle$k = {
|
|
|
18414
18414
|
result: {
|
|
18415
18415
|
[b.uid]: {
|
|
18416
18416
|
type: "FeatureCollection",
|
|
18417
|
-
features:
|
|
18417
|
+
features: G.results.map((U) => ({
|
|
18418
18418
|
type: "Feature",
|
|
18419
18419
|
geometry: {
|
|
18420
18420
|
type: g,
|
|
@@ -18425,8 +18425,8 @@ const bundle$k = {
|
|
|
18425
18425
|
}
|
|
18426
18426
|
}
|
|
18427
18427
|
});
|
|
18428
|
-
} catch (
|
|
18429
|
-
N(`Error for ${b.displayName}`,
|
|
18428
|
+
} catch (G) {
|
|
18429
|
+
N(`Error for ${b.displayName}`, G);
|
|
18430
18430
|
}
|
|
18431
18431
|
});
|
|
18432
18432
|
});
|
|
@@ -18923,11 +18923,11 @@ function _objectWithoutProperties(e, t) {
|
|
|
18923
18923
|
}
|
|
18924
18924
|
var _excluded$6 = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
18925
18925
|
function useStateManager(e) {
|
|
18926
|
-
var t = e.defaultInputValue, r = t === void 0 ? "" : t, a = e.defaultMenuIsOpen, o = a === void 0 ? !1 : a, d = e.defaultValue, g = d === void 0 ? null : d, m = e.inputValue, y = e.menuIsOpen, b = e.onChange, E = e.onInputChange, I = e.onMenuClose, x = e.onMenuOpen, S = e.value, T = _objectWithoutProperties(e, _excluded$6), N = useState$1(m !== void 0 ? m : r), k = _slicedToArray(N, 2), L = k[0],
|
|
18926
|
+
var t = e.defaultInputValue, r = t === void 0 ? "" : t, a = e.defaultMenuIsOpen, o = a === void 0 ? !1 : a, d = e.defaultValue, g = d === void 0 ? null : d, m = e.inputValue, y = e.menuIsOpen, b = e.onChange, E = e.onInputChange, I = e.onMenuClose, x = e.onMenuOpen, S = e.value, T = _objectWithoutProperties(e, _excluded$6), N = useState$1(m !== void 0 ? m : r), k = _slicedToArray(N, 2), L = k[0], M = k[1], G = useState$1(y !== void 0 ? y : o), U = _slicedToArray(G, 2), V = U[0], Y = U[1], X = useState$1(S !== void 0 ? S : g), Q = _slicedToArray(X, 2), H = Q[0], K = Q[1], ee = useCallback(function(ve, Ee) {
|
|
18927
18927
|
typeof b == "function" && b(ve, Ee), K(ve);
|
|
18928
18928
|
}, [b]), ae = useCallback(function(ve, Ee) {
|
|
18929
18929
|
var ce;
|
|
18930
|
-
typeof E == "function" && (ce = E(ve, Ee)),
|
|
18930
|
+
typeof E == "function" && (ce = E(ve, Ee)), M(ce !== void 0 ? ce : ve);
|
|
18931
18931
|
}, [E]), ie = useCallback(function() {
|
|
18932
18932
|
typeof x == "function" && x(), Y(!0);
|
|
18933
18933
|
}, [x]), te = useCallback(function() {
|
|
@@ -19224,19 +19224,19 @@ function compile$1(e) {
|
|
|
19224
19224
|
return dealloc(parse("", null, null, null, [""], e = alloc(e), 0, [0], e));
|
|
19225
19225
|
}
|
|
19226
19226
|
function parse(e, t, r, a, o, d, g, m, y) {
|
|
19227
|
-
for (var b = 0, E = 0, I = g, x = 0, S = 0, T = 0, N = 1, k = 1, L = 1,
|
|
19228
|
-
switch (T =
|
|
19227
|
+
for (var b = 0, E = 0, I = g, x = 0, S = 0, T = 0, N = 1, k = 1, L = 1, M = 0, G = "", U = o, V = d, Y = a, X = G; k; )
|
|
19228
|
+
switch (T = M, M = next()) {
|
|
19229
19229
|
// (
|
|
19230
19230
|
case 40:
|
|
19231
19231
|
if (T != 108 && charat(X, I - 1) == 58) {
|
|
19232
|
-
indexof(X += replace$1(delimit(
|
|
19232
|
+
indexof(X += replace$1(delimit(M), "&", "&\f"), "&\f") != -1 && (L = -1);
|
|
19233
19233
|
break;
|
|
19234
19234
|
}
|
|
19235
19235
|
// " ' [
|
|
19236
19236
|
case 34:
|
|
19237
19237
|
case 39:
|
|
19238
19238
|
case 91:
|
|
19239
|
-
X += delimit(
|
|
19239
|
+
X += delimit(M);
|
|
19240
19240
|
break;
|
|
19241
19241
|
// \t \n \r \s
|
|
19242
19242
|
case 9:
|
|
@@ -19267,7 +19267,7 @@ function parse(e, t, r, a, o, d, g, m, y) {
|
|
|
19267
19267
|
case 125 * N:
|
|
19268
19268
|
case 59:
|
|
19269
19269
|
case 0:
|
|
19270
|
-
switch (
|
|
19270
|
+
switch (M) {
|
|
19271
19271
|
// \0 }
|
|
19272
19272
|
case 0:
|
|
19273
19273
|
case 125:
|
|
@@ -19281,7 +19281,7 @@ function parse(e, t, r, a, o, d, g, m, y) {
|
|
|
19281
19281
|
X += ";";
|
|
19282
19282
|
// { rule/at-rule
|
|
19283
19283
|
default:
|
|
19284
|
-
if (append(Y = ruleset(X, t, r, b, E, o, m,
|
|
19284
|
+
if (append(Y = ruleset(X, t, r, b, E, o, m, G, U = [], V = [], I), d), M === 123)
|
|
19285
19285
|
if (E === 0)
|
|
19286
19286
|
parse(X, t, Y, Y, U, d, I, m, V);
|
|
19287
19287
|
else
|
|
@@ -19291,25 +19291,25 @@ function parse(e, t, r, a, o, d, g, m, y) {
|
|
|
19291
19291
|
case 108:
|
|
19292
19292
|
case 109:
|
|
19293
19293
|
case 115:
|
|
19294
|
-
parse(e, Y, Y, a && append(ruleset(e, Y, Y, 0, 0, o, m,
|
|
19294
|
+
parse(e, Y, Y, a && append(ruleset(e, Y, Y, 0, 0, o, m, G, o, U = [], I), V), o, V, I, m, a ? U : V);
|
|
19295
19295
|
break;
|
|
19296
19296
|
default:
|
|
19297
19297
|
parse(X, Y, Y, Y, [""], V, 0, m, V);
|
|
19298
19298
|
}
|
|
19299
19299
|
}
|
|
19300
|
-
b = E = S = 0, N = L = 1,
|
|
19300
|
+
b = E = S = 0, N = L = 1, G = X = "", I = g;
|
|
19301
19301
|
break;
|
|
19302
19302
|
// :
|
|
19303
19303
|
case 58:
|
|
19304
19304
|
I = 1 + strlen(X), S = T;
|
|
19305
19305
|
default:
|
|
19306
19306
|
if (N < 1) {
|
|
19307
|
-
if (
|
|
19307
|
+
if (M == 123)
|
|
19308
19308
|
--N;
|
|
19309
|
-
else if (
|
|
19309
|
+
else if (M == 125 && N++ == 0 && prev() == 125)
|
|
19310
19310
|
continue;
|
|
19311
19311
|
}
|
|
19312
|
-
switch (X += from(
|
|
19312
|
+
switch (X += from(M), M * N) {
|
|
19313
19313
|
// &
|
|
19314
19314
|
case 38:
|
|
19315
19315
|
L = E > 0 ? 1 : (X += "\f", -1);
|
|
@@ -19320,7 +19320,7 @@ function parse(e, t, r, a, o, d, g, m, y) {
|
|
|
19320
19320
|
break;
|
|
19321
19321
|
// @
|
|
19322
19322
|
case 64:
|
|
19323
|
-
peek() === 45 && (X += delimit(next())), x = peek(), E = I = strlen(
|
|
19323
|
+
peek() === 45 && (X += delimit(next())), x = peek(), E = I = strlen(G = X += identifier(caret())), M++;
|
|
19324
19324
|
break;
|
|
19325
19325
|
// -
|
|
19326
19326
|
case 45:
|
|
@@ -19331,8 +19331,8 @@ function parse(e, t, r, a, o, d, g, m, y) {
|
|
|
19331
19331
|
}
|
|
19332
19332
|
function ruleset(e, t, r, a, o, d, g, m, y, b, E) {
|
|
19333
19333
|
for (var I = o - 1, x = o === 0 ? d : [""], S = sizeof(x), T = 0, N = 0, k = 0; T < a; ++T)
|
|
19334
|
-
for (var L = 0,
|
|
19335
|
-
(
|
|
19334
|
+
for (var L = 0, M = substr(e, I + 1, I = abs(N = g[T])), G = e; L < S; ++L)
|
|
19335
|
+
(G = trim(N > 0 ? x[L] + " " + M : replace$1(M, /&\f/g, x[L]))) && (y[k++] = G);
|
|
19336
19336
|
return node(e, t, r, o === 0 ? RULESET : m, y, b, E);
|
|
19337
19337
|
}
|
|
19338
19338
|
function comment$1(e, t, r) {
|
|
@@ -19629,8 +19629,8 @@ var prefixer = function e(t, r, a, o) {
|
|
|
19629
19629
|
})], x = middleware(b.concat(o, I)), S = function(k) {
|
|
19630
19630
|
return serialize(compile$1(k), x);
|
|
19631
19631
|
};
|
|
19632
|
-
y = function(k, L,
|
|
19633
|
-
E =
|
|
19632
|
+
y = function(k, L, M, G) {
|
|
19633
|
+
E = M, S(k ? k + "{" + L.styles + "}" : L.styles), G && (T.inserted[L.name] = !0);
|
|
19634
19634
|
};
|
|
19635
19635
|
}
|
|
19636
19636
|
var T = {
|
|
@@ -19654,8 +19654,8 @@ var hasRequiredReactIs_production_min;
|
|
|
19654
19654
|
function requireReactIs_production_min() {
|
|
19655
19655
|
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
19656
19656
|
hasRequiredReactIs_production_min = 1;
|
|
19657
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, a = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, d = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, g = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, m = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, y = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, b = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, E = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, I = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, x = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, S = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, T = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, N = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, k = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, L = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118,
|
|
19658
|
-
function
|
|
19657
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, a = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, d = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, g = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, m = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, y = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, b = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, E = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, I = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, x = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, S = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, T = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, N = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, k = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, L = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, M = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
19658
|
+
function G(V) {
|
|
19659
19659
|
if (typeof V == "object" && V !== null) {
|
|
19660
19660
|
var Y = V.$$typeof;
|
|
19661
19661
|
switch (Y) {
|
|
@@ -19686,43 +19686,43 @@ function requireReactIs_production_min() {
|
|
|
19686
19686
|
}
|
|
19687
19687
|
}
|
|
19688
19688
|
function U(V) {
|
|
19689
|
-
return
|
|
19689
|
+
return G(V) === b;
|
|
19690
19690
|
}
|
|
19691
19691
|
return reactIs_production_min.AsyncMode = y, reactIs_production_min.ConcurrentMode = b, reactIs_production_min.ContextConsumer = m, reactIs_production_min.ContextProvider = g, reactIs_production_min.Element = t, reactIs_production_min.ForwardRef = E, reactIs_production_min.Fragment = a, reactIs_production_min.Lazy = T, reactIs_production_min.Memo = S, reactIs_production_min.Portal = r, reactIs_production_min.Profiler = d, reactIs_production_min.StrictMode = o, reactIs_production_min.Suspense = I, reactIs_production_min.isAsyncMode = function(V) {
|
|
19692
|
-
return U(V) ||
|
|
19692
|
+
return U(V) || G(V) === y;
|
|
19693
19693
|
}, reactIs_production_min.isConcurrentMode = U, reactIs_production_min.isContextConsumer = function(V) {
|
|
19694
|
-
return
|
|
19694
|
+
return G(V) === m;
|
|
19695
19695
|
}, reactIs_production_min.isContextProvider = function(V) {
|
|
19696
|
-
return
|
|
19696
|
+
return G(V) === g;
|
|
19697
19697
|
}, reactIs_production_min.isElement = function(V) {
|
|
19698
19698
|
return typeof V == "object" && V !== null && V.$$typeof === t;
|
|
19699
19699
|
}, reactIs_production_min.isForwardRef = function(V) {
|
|
19700
|
-
return
|
|
19700
|
+
return G(V) === E;
|
|
19701
19701
|
}, reactIs_production_min.isFragment = function(V) {
|
|
19702
|
-
return
|
|
19702
|
+
return G(V) === a;
|
|
19703
19703
|
}, reactIs_production_min.isLazy = function(V) {
|
|
19704
|
-
return
|
|
19704
|
+
return G(V) === T;
|
|
19705
19705
|
}, reactIs_production_min.isMemo = function(V) {
|
|
19706
|
-
return
|
|
19706
|
+
return G(V) === S;
|
|
19707
19707
|
}, reactIs_production_min.isPortal = function(V) {
|
|
19708
|
-
return
|
|
19708
|
+
return G(V) === r;
|
|
19709
19709
|
}, reactIs_production_min.isProfiler = function(V) {
|
|
19710
|
-
return
|
|
19710
|
+
return G(V) === d;
|
|
19711
19711
|
}, reactIs_production_min.isStrictMode = function(V) {
|
|
19712
|
-
return
|
|
19712
|
+
return G(V) === o;
|
|
19713
19713
|
}, reactIs_production_min.isSuspense = function(V) {
|
|
19714
|
-
return
|
|
19714
|
+
return G(V) === I;
|
|
19715
19715
|
}, reactIs_production_min.isValidElementType = function(V) {
|
|
19716
|
-
return typeof V == "string" || typeof V == "function" || V === a || V === b || V === d || V === o || V === I || V === x || typeof V == "object" && V !== null && (V.$$typeof === T || V.$$typeof === S || V.$$typeof === g || V.$$typeof === m || V.$$typeof === E || V.$$typeof === k || V.$$typeof === L || V.$$typeof ===
|
|
19717
|
-
}, reactIs_production_min.typeOf =
|
|
19716
|
+
return typeof V == "string" || typeof V == "function" || V === a || V === b || V === d || V === o || V === I || V === x || typeof V == "object" && V !== null && (V.$$typeof === T || V.$$typeof === S || V.$$typeof === g || V.$$typeof === m || V.$$typeof === E || V.$$typeof === k || V.$$typeof === L || V.$$typeof === M || V.$$typeof === N);
|
|
19717
|
+
}, reactIs_production_min.typeOf = G, reactIs_production_min;
|
|
19718
19718
|
}
|
|
19719
19719
|
var reactIs_development = {}, hasRequiredReactIs_development;
|
|
19720
19720
|
function requireReactIs_development() {
|
|
19721
19721
|
return hasRequiredReactIs_development || (hasRequiredReactIs_development = 1, process$1.env.NODE_ENV !== "production" && (function() {
|
|
19722
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, a = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, d = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, g = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, m = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, y = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, b = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, E = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, I = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, x = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, S = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, T = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, N = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, k = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, L = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118,
|
|
19723
|
-
function
|
|
19722
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, a = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, d = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, g = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, m = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, y = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, b = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, E = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, I = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, x = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, S = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, T = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, N = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, k = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, L = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, M = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
19723
|
+
function G(q) {
|
|
19724
19724
|
return typeof q == "string" || typeof q == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
19725
|
-
q === a || q === b || q === d || q === o || q === I || q === x || typeof q == "object" && q !== null && (q.$$typeof === T || q.$$typeof === S || q.$$typeof === g || q.$$typeof === m || q.$$typeof === E || q.$$typeof === k || q.$$typeof === L || q.$$typeof ===
|
|
19725
|
+
q === a || q === b || q === d || q === o || q === I || q === x || typeof q == "object" && q !== null && (q.$$typeof === T || q.$$typeof === S || q.$$typeof === g || q.$$typeof === m || q.$$typeof === E || q.$$typeof === k || q.$$typeof === L || q.$$typeof === M || q.$$typeof === N);
|
|
19726
19726
|
}
|
|
19727
19727
|
function U(q) {
|
|
19728
19728
|
if (typeof q == "object" && q !== null) {
|
|
@@ -19796,7 +19796,7 @@ function requireReactIs_development() {
|
|
|
19796
19796
|
function de(q) {
|
|
19797
19797
|
return U(q) === I;
|
|
19798
19798
|
}
|
|
19799
|
-
reactIs_development.AsyncMode = V, reactIs_development.ConcurrentMode = Y, reactIs_development.ContextConsumer = X, reactIs_development.ContextProvider = Q, reactIs_development.Element = H, reactIs_development.ForwardRef = K, reactIs_development.Fragment = ee, reactIs_development.Lazy = ae, reactIs_development.Memo = ie, reactIs_development.Portal = te, reactIs_development.Profiler = ue, reactIs_development.StrictMode = le, reactIs_development.Suspense = fe, reactIs_development.isAsyncMode = Ee, reactIs_development.isConcurrentMode = ce, reactIs_development.isContextConsumer = Re, reactIs_development.isContextProvider = xe, reactIs_development.isElement = ge, reactIs_development.isForwardRef = pe, reactIs_development.isFragment = Ie, reactIs_development.isLazy = De, reactIs_development.isMemo = Pe, reactIs_development.isPortal = J, reactIs_development.isProfiler = $e, reactIs_development.isStrictMode = ye, reactIs_development.isSuspense = de, reactIs_development.isValidElementType =
|
|
19799
|
+
reactIs_development.AsyncMode = V, reactIs_development.ConcurrentMode = Y, reactIs_development.ContextConsumer = X, reactIs_development.ContextProvider = Q, reactIs_development.Element = H, reactIs_development.ForwardRef = K, reactIs_development.Fragment = ee, reactIs_development.Lazy = ae, reactIs_development.Memo = ie, reactIs_development.Portal = te, reactIs_development.Profiler = ue, reactIs_development.StrictMode = le, reactIs_development.Suspense = fe, reactIs_development.isAsyncMode = Ee, reactIs_development.isConcurrentMode = ce, reactIs_development.isContextConsumer = Re, reactIs_development.isContextProvider = xe, reactIs_development.isElement = ge, reactIs_development.isForwardRef = pe, reactIs_development.isFragment = Ie, reactIs_development.isLazy = De, reactIs_development.isMemo = Pe, reactIs_development.isPortal = J, reactIs_development.isProfiler = $e, reactIs_development.isStrictMode = ye, reactIs_development.isSuspense = de, reactIs_development.isValidElementType = G, reactIs_development.typeOf = U;
|
|
19800
19800
|
})()), reactIs_development;
|
|
19801
19801
|
}
|
|
19802
19802
|
var hasRequiredReactIs;
|
|
@@ -19852,11 +19852,11 @@ function requireHoistNonReactStatics_cjs() {
|
|
|
19852
19852
|
var L = I(N);
|
|
19853
19853
|
L && L !== x && S(T, L, k);
|
|
19854
19854
|
}
|
|
19855
|
-
var
|
|
19856
|
-
b && (
|
|
19857
|
-
for (var
|
|
19858
|
-
var Y =
|
|
19859
|
-
if (!r[Y] && !(k && k[Y]) && !(U && U[Y]) && !(
|
|
19855
|
+
var M = y(N);
|
|
19856
|
+
b && (M = M.concat(b(N)));
|
|
19857
|
+
for (var G = g(T), U = g(N), V = 0; V < M.length; ++V) {
|
|
19858
|
+
var Y = M[V];
|
|
19859
|
+
if (!r[Y] && !(k && k[Y]) && !(U && U[Y]) && !(G && G[Y])) {
|
|
19860
19860
|
var X = E(N, Y);
|
|
19861
19861
|
try {
|
|
19862
19862
|
m(T, Y, X);
|
|
@@ -20315,8 +20315,8 @@ function getBoundingClientRect(e, t, r, a) {
|
|
|
20315
20315
|
const x = getWindow(d), S = a;
|
|
20316
20316
|
let T = x, N = getFrameElement(T);
|
|
20317
20317
|
for (; N && a && S !== T; ) {
|
|
20318
|
-
const k = getScale(N), L = N.getBoundingClientRect(),
|
|
20319
|
-
y *= k.x, b *= k.y, E *= k.x, I *= k.y, y +=
|
|
20318
|
+
const k = getScale(N), L = N.getBoundingClientRect(), M = getComputedStyle$1(N), G = L.left + (N.clientLeft + parseFloat(M.paddingLeft)) * k.x, U = L.top + (N.clientTop + parseFloat(M.paddingTop)) * k.y;
|
|
20319
|
+
y *= k.x, b *= k.y, E *= k.x, I *= k.y, y += G, b += U, T = getWindow(N), N = getFrameElement(T);
|
|
20320
20320
|
}
|
|
20321
20321
|
}
|
|
20322
20322
|
return rectToClientRect({
|
|
@@ -20346,7 +20346,7 @@ function observeMove(e, t) {
|
|
|
20346
20346
|
} = b;
|
|
20347
20347
|
if (m || t(), !x || !S)
|
|
20348
20348
|
return;
|
|
20349
|
-
const T = floor$1(I), N = floor$1(o.clientWidth - (E + x)), k = floor$1(o.clientHeight - (I + S)), L = floor$1(E),
|
|
20349
|
+
const T = floor$1(I), N = floor$1(o.clientWidth - (E + x)), k = floor$1(o.clientHeight - (I + S)), L = floor$1(E), G = {
|
|
20350
20350
|
rootMargin: -T + "px " + -N + "px " + -k + "px " + -L + "px",
|
|
20351
20351
|
threshold: max$1(0, min(1, y)) || 1
|
|
20352
20352
|
};
|
|
@@ -20364,12 +20364,12 @@ function observeMove(e, t) {
|
|
|
20364
20364
|
}
|
|
20365
20365
|
try {
|
|
20366
20366
|
r = new IntersectionObserver(V, {
|
|
20367
|
-
...
|
|
20367
|
+
...G,
|
|
20368
20368
|
// Handle <iframe>s
|
|
20369
20369
|
root: o.ownerDocument
|
|
20370
20370
|
});
|
|
20371
20371
|
} catch {
|
|
20372
|
-
r = new IntersectionObserver(V,
|
|
20372
|
+
r = new IntersectionObserver(V, G);
|
|
20373
20373
|
}
|
|
20374
20374
|
r.observe(e);
|
|
20375
20375
|
}
|
|
@@ -20392,10 +20392,10 @@ function autoUpdate(e, t, r, a) {
|
|
|
20392
20392
|
const I = b && m ? observeMove(b, r) : null;
|
|
20393
20393
|
let x = -1, S = null;
|
|
20394
20394
|
g && (S = new ResizeObserver((L) => {
|
|
20395
|
-
let [
|
|
20396
|
-
|
|
20397
|
-
var
|
|
20398
|
-
(
|
|
20395
|
+
let [M] = L;
|
|
20396
|
+
M && M.target === b && S && t && (S.unobserve(t), cancelAnimationFrame(x), x = requestAnimationFrame(() => {
|
|
20397
|
+
var G;
|
|
20398
|
+
(G = S) == null || G.observe(t);
|
|
20399
20399
|
})), r();
|
|
20400
20400
|
}), b && !y && S.observe(b), t && S.observe(t));
|
|
20401
20401
|
let T, N = y ? getBoundingClientRect(e) : null;
|
|
@@ -20406,8 +20406,8 @@ function autoUpdate(e, t, r, a) {
|
|
|
20406
20406
|
}
|
|
20407
20407
|
return r(), () => {
|
|
20408
20408
|
var L;
|
|
20409
|
-
E.forEach((
|
|
20410
|
-
o &&
|
|
20409
|
+
E.forEach((M) => {
|
|
20410
|
+
o && M.removeEventListener("scroll", r), d && M.removeEventListener("resize", r);
|
|
20411
20411
|
}), I?.(), (L = S) == null || L.disconnect(), S = null, y && cancelAnimationFrame(T);
|
|
20412
20412
|
};
|
|
20413
20413
|
}
|
|
@@ -20547,7 +20547,7 @@ function getMenuPlacement(e) {
|
|
|
20547
20547
|
maxHeight: t
|
|
20548
20548
|
};
|
|
20549
20549
|
if (!r || !r.offsetParent) return b;
|
|
20550
|
-
var E = y.getBoundingClientRect(), I = E.height, x = r.getBoundingClientRect(), S = x.bottom, T = x.height, N = x.top, k = r.offsetParent.getBoundingClientRect(), L = k.top,
|
|
20550
|
+
var E = y.getBoundingClientRect(), I = E.height, x = r.getBoundingClientRect(), S = x.bottom, T = x.height, N = x.top, k = r.offsetParent.getBoundingClientRect(), L = k.top, M = g ? window.innerHeight : normalizedHeight(y), G = getScrollTop(y), U = parseInt(getComputedStyle(r).marginBottom, 10), V = parseInt(getComputedStyle(r).marginTop, 10), Y = L - V, X = M - N, Q = Y + G, H = I - G - N, K = S - M + G + U, ee = G + N - V, ae = 160;
|
|
20551
20551
|
switch (o) {
|
|
20552
20552
|
case "auto":
|
|
20553
20553
|
case "bottom":
|
|
@@ -20630,7 +20630,7 @@ var coercePlacement = function e(t) {
|
|
|
20630
20630
|
marginTop: m.menuGutter
|
|
20631
20631
|
});
|
|
20632
20632
|
}, PortalPlacementContext = /* @__PURE__ */ createContext(null), MenuPlacer = function e(t) {
|
|
20633
|
-
var r = t.children, a = t.minMenuHeight, o = t.maxMenuHeight, d = t.menuPlacement, g = t.menuPosition, m = t.menuShouldScrollIntoView, y = t.theme, b = useContext$1(PortalPlacementContext) || {}, E = b.setPortalPlacement, I = useRef(null), x = useState$1(o), S = _slicedToArray(x, 2), T = S[0], N = S[1], k = useState$1(null), L = _slicedToArray(k, 2),
|
|
20633
|
+
var r = t.children, a = t.minMenuHeight, o = t.maxMenuHeight, d = t.menuPlacement, g = t.menuPosition, m = t.menuShouldScrollIntoView, y = t.theme, b = useContext$1(PortalPlacementContext) || {}, E = b.setPortalPlacement, I = useRef(null), x = useState$1(o), S = _slicedToArray(x, 2), T = S[0], N = S[1], k = useState$1(null), L = _slicedToArray(k, 2), M = L[0], G = L[1], U = y.spacing.controlHeight;
|
|
20634
20634
|
return index(function() {
|
|
20635
20635
|
var V = I.current;
|
|
20636
20636
|
if (V) {
|
|
@@ -20643,12 +20643,12 @@ var coercePlacement = function e(t) {
|
|
|
20643
20643
|
isFixedPosition: Y,
|
|
20644
20644
|
controlHeight: U
|
|
20645
20645
|
});
|
|
20646
|
-
N(Q.maxHeight),
|
|
20646
|
+
N(Q.maxHeight), G(Q.placement), E?.(Q.placement);
|
|
20647
20647
|
}
|
|
20648
20648
|
}, [o, d, g, m, a, E, U]), r({
|
|
20649
20649
|
ref: I,
|
|
20650
20650
|
placerProps: _objectSpread2(_objectSpread2({}, t), {}, {
|
|
20651
|
-
placement:
|
|
20651
|
+
placement: M || coercePlacement(d),
|
|
20652
20652
|
maxHeight: T
|
|
20653
20653
|
})
|
|
20654
20654
|
});
|
|
@@ -20719,23 +20719,23 @@ var coercePlacement = function e(t) {
|
|
|
20719
20719
|
return {
|
|
20720
20720
|
setPortalPlacement: S
|
|
20721
20721
|
};
|
|
20722
|
-
}, []), N = useState$1(null), k = _slicedToArray(N, 2), L = k[0],
|
|
20722
|
+
}, []), N = useState$1(null), k = _slicedToArray(N, 2), L = k[0], M = k[1], G = useCallback(function() {
|
|
20723
20723
|
if (o) {
|
|
20724
20724
|
var X = getBoundingClientObj(o), Q = m === "fixed" ? 0 : window.pageYOffset, H = X[x] + Q;
|
|
20725
|
-
(H !== L?.offset || X.left !== L?.rect.left || X.width !== L?.rect.width) &&
|
|
20725
|
+
(H !== L?.offset || X.left !== L?.rect.left || X.width !== L?.rect.width) && M({
|
|
20726
20726
|
offset: H,
|
|
20727
20727
|
rect: X
|
|
20728
20728
|
});
|
|
20729
20729
|
}
|
|
20730
20730
|
}, [o, m, x, L?.offset, L?.rect.left, L?.rect.width]);
|
|
20731
20731
|
index(function() {
|
|
20732
|
-
|
|
20733
|
-
}, [
|
|
20732
|
+
G();
|
|
20733
|
+
}, [G]);
|
|
20734
20734
|
var U = useCallback(function() {
|
|
20735
|
-
typeof b.current == "function" && (b.current(), b.current = null), o && y.current && (b.current = autoUpdate(o, y.current,
|
|
20735
|
+
typeof b.current == "function" && (b.current(), b.current = null), o && y.current && (b.current = autoUpdate(o, y.current, G, {
|
|
20736
20736
|
elementResize: "ResizeObserver" in window
|
|
20737
20737
|
}));
|
|
20738
|
-
}, [o,
|
|
20738
|
+
}, [o, G]);
|
|
20739
20739
|
index(function() {
|
|
20740
20740
|
U();
|
|
20741
20741
|
}, [U]);
|
|
@@ -21321,7 +21321,7 @@ var _ref = process$1.env.NODE_ENV === "production" ? {
|
|
|
21321
21321
|
return "".concat(a).concat(r ? " for search term " + r : "", ".");
|
|
21322
21322
|
}
|
|
21323
21323
|
}, LiveRegion = function e(t) {
|
|
21324
|
-
var r = t.ariaSelection, a = t.focusedOption, o = t.focusedValue, d = t.focusableOptions, g = t.isFocused, m = t.selectValue, y = t.selectProps, b = t.id, E = t.isAppleDevice, I = y.ariaLiveMessages, x = y.getOptionLabel, S = y.inputValue, T = y.isMulti, N = y.isOptionDisabled, k = y.isSearchable, L = y.menuIsOpen,
|
|
21324
|
+
var r = t.ariaSelection, a = t.focusedOption, o = t.focusedValue, d = t.focusableOptions, g = t.isFocused, m = t.selectValue, y = t.selectProps, b = t.id, E = t.isAppleDevice, I = y.ariaLiveMessages, x = y.getOptionLabel, S = y.inputValue, T = y.isMulti, N = y.isOptionDisabled, k = y.isSearchable, L = y.menuIsOpen, M = y.options, G = y.screenReaderStatus, U = y.tabSelectsValue, V = y.isLoading, Y = y["aria-label"], X = y["aria-live"], Q = useMemo$1(function() {
|
|
21325
21325
|
return _objectSpread2(_objectSpread2({}, defaultAriaLiveMessages), I || {});
|
|
21326
21326
|
}, [I]), H = useMemo$1(function() {
|
|
21327
21327
|
var ue = "";
|
|
@@ -21356,8 +21356,8 @@ var _ref = process$1.env.NODE_ENV === "production" ? {
|
|
|
21356
21356
|
return ue;
|
|
21357
21357
|
}, [a, o, x, N, Q, d, m, E]), ee = useMemo$1(function() {
|
|
21358
21358
|
var ue = "";
|
|
21359
|
-
if (L &&
|
|
21360
|
-
var le =
|
|
21359
|
+
if (L && M.length && !V && Q.onFilter) {
|
|
21360
|
+
var le = G({
|
|
21361
21361
|
count: d.length
|
|
21362
21362
|
});
|
|
21363
21363
|
ue = Q.onFilter({
|
|
@@ -21366,7 +21366,7 @@ var _ref = process$1.env.NODE_ENV === "production" ? {
|
|
|
21366
21366
|
});
|
|
21367
21367
|
}
|
|
21368
21368
|
return ue;
|
|
21369
|
-
}, [d, S, L, Q,
|
|
21369
|
+
}, [d, S, L, Q, M, G, V]), ae = r?.action === "initial-input-focus", ie = useMemo$1(function() {
|
|
21370
21370
|
var ue = "";
|
|
21371
21371
|
if (Q.guidance) {
|
|
21372
21372
|
var le = o ? "value" : L ? "menu" : "input";
|
|
@@ -21711,8 +21711,8 @@ var cancelScroll = function e(t) {
|
|
|
21711
21711
|
function useScrollCapture(e) {
|
|
21712
21712
|
var t = e.isEnabled, r = e.onBottomArrive, a = e.onBottomLeave, o = e.onTopArrive, d = e.onTopLeave, g = useRef(!1), m = useRef(!1), y = useRef(0), b = useRef(null), E = useCallback(function(k, L) {
|
|
21713
21713
|
if (b.current !== null) {
|
|
21714
|
-
var
|
|
21715
|
-
Q > L && g.current && (a && a(k), g.current = !1), X && m.current && (d && d(k), m.current = !1), X && L > Q ? (r && !g.current && r(k), Y.scrollTop = U, H = !0, g.current = !0) : !X && -L >
|
|
21714
|
+
var M = b.current, G = M.scrollTop, U = M.scrollHeight, V = M.clientHeight, Y = b.current, X = L > 0, Q = U - V - G, H = !1;
|
|
21715
|
+
Q > L && g.current && (a && a(k), g.current = !1), X && m.current && (d && d(k), m.current = !1), X && L > Q ? (r && !g.current && r(k), Y.scrollTop = U, H = !0, g.current = !0) : !X && -L > G && (o && !m.current && o(k), Y.scrollTop = 0, H = !0, m.current = !0), H && cancelScroll(k);
|
|
21716
21716
|
}
|
|
21717
21717
|
}, [r, a, o, d]), I = useCallback(function(k) {
|
|
21718
21718
|
E(k, k.deltaY);
|
|
@@ -22293,7 +22293,7 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
22293
22293
|
}, o.onValueInputFocus = function(y) {
|
|
22294
22294
|
y.preventDefault(), y.stopPropagation(), o.focus();
|
|
22295
22295
|
}, o.onKeyDown = function(y) {
|
|
22296
|
-
var b = o.props, E = b.isMulti, I = b.backspaceRemovesValue, x = b.escapeClearsValue, S = b.inputValue, T = b.isClearable, N = b.isDisabled, k = b.menuIsOpen, L = b.onKeyDown,
|
|
22296
|
+
var b = o.props, E = b.isMulti, I = b.backspaceRemovesValue, x = b.escapeClearsValue, S = b.inputValue, T = b.isClearable, N = b.isDisabled, k = b.menuIsOpen, L = b.onKeyDown, M = b.tabSelectsValue, G = b.openMenuOnFocus, U = o.state, V = U.focusedOption, Y = U.focusedValue, X = U.selectValue;
|
|
22297
22297
|
if (!N && !(typeof L == "function" && (L(y), y.defaultPrevented))) {
|
|
22298
22298
|
switch (o.blockOptionHover = !0, y.key) {
|
|
22299
22299
|
case "ArrowLeft":
|
|
@@ -22315,9 +22315,9 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
22315
22315
|
}
|
|
22316
22316
|
break;
|
|
22317
22317
|
case "Tab":
|
|
22318
|
-
if (o.isComposing || y.shiftKey || !k || !
|
|
22318
|
+
if (o.isComposing || y.shiftKey || !k || !M || !V || // don't capture the event if the menu opens on focus and the focused
|
|
22319
22319
|
// option is already selected; it breaks the flow of navigation
|
|
22320
|
-
|
|
22320
|
+
G && o.isOptionSelected(V, X))
|
|
22321
22321
|
return;
|
|
22322
22322
|
o.selectOption(V);
|
|
22323
22323
|
break;
|
|
@@ -22617,7 +22617,7 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
22617
22617
|
// Renderers
|
|
22618
22618
|
// ==============================
|
|
22619
22619
|
function() {
|
|
22620
|
-
var o = this.props, d = o.isDisabled, g = o.isSearchable, m = o.inputId, y = o.inputValue, b = o.tabIndex, E = o.form, I = o.menuIsOpen, x = o.required, S = this.getComponents(), T = S.Input, N = this.state, k = N.inputIsHidden, L = N.ariaSelection,
|
|
22620
|
+
var o = this.props, d = o.isDisabled, g = o.isSearchable, m = o.inputId, y = o.inputValue, b = o.tabIndex, E = o.form, I = o.menuIsOpen, x = o.required, S = this.getComponents(), T = S.Input, N = this.state, k = N.inputIsHidden, L = N.ariaSelection, M = this.commonProps, G = m || this.getElementId("input"), U = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
22621
22621
|
"aria-autocomplete": "list",
|
|
22622
22622
|
"aria-expanded": I,
|
|
22623
22623
|
"aria-haspopup": !0,
|
|
@@ -22637,11 +22637,11 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
22637
22637
|
} : {
|
|
22638
22638
|
"aria-describedby": this.getElementId("placeholder")
|
|
22639
22639
|
});
|
|
22640
|
-
return g ? /* @__PURE__ */ React.createElement(T, _extends({},
|
|
22640
|
+
return g ? /* @__PURE__ */ React.createElement(T, _extends({}, M, {
|
|
22641
22641
|
autoCapitalize: "none",
|
|
22642
22642
|
autoComplete: "off",
|
|
22643
22643
|
autoCorrect: "off",
|
|
22644
|
-
id:
|
|
22644
|
+
id: G,
|
|
22645
22645
|
innerRef: this.getInputRef,
|
|
22646
22646
|
isDisabled: d,
|
|
22647
22647
|
isHidden: k,
|
|
@@ -22654,7 +22654,7 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
22654
22654
|
type: "text",
|
|
22655
22655
|
value: y
|
|
22656
22656
|
}, U)) : /* @__PURE__ */ React.createElement(DummyInput, _extends({
|
|
22657
|
-
id:
|
|
22657
|
+
id: G,
|
|
22658
22658
|
innerRef: this.getInputRef,
|
|
22659
22659
|
onBlur: this.onInputBlur,
|
|
22660
22660
|
onChange: noop,
|
|
@@ -22670,7 +22670,7 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
22670
22670
|
}, {
|
|
22671
22671
|
key: "renderPlaceholderOrValue",
|
|
22672
22672
|
value: function() {
|
|
22673
|
-
var o = this, d = this.getComponents(), g = d.MultiValue, m = d.MultiValueContainer, y = d.MultiValueLabel, b = d.MultiValueRemove, E = d.SingleValue, I = d.Placeholder, x = this.commonProps, S = this.props, T = S.controlShouldRenderValue, N = S.isDisabled, k = S.isMulti, L = S.inputValue,
|
|
22673
|
+
var o = this, d = this.getComponents(), g = d.MultiValue, m = d.MultiValueContainer, y = d.MultiValueLabel, b = d.MultiValueRemove, E = d.SingleValue, I = d.Placeholder, x = this.commonProps, S = this.props, T = S.controlShouldRenderValue, N = S.isDisabled, k = S.isMulti, L = S.inputValue, M = S.placeholder, G = this.state, U = G.selectValue, V = G.focusedValue, Y = G.isFocused;
|
|
22674
22674
|
if (!this.hasValue() || !T)
|
|
22675
22675
|
return L ? null : /* @__PURE__ */ React.createElement(I, _extends({}, x, {
|
|
22676
22676
|
key: "placeholder",
|
|
@@ -22679,7 +22679,7 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
22679
22679
|
innerProps: {
|
|
22680
22680
|
id: this.getElementId("placeholder")
|
|
22681
22681
|
}
|
|
22682
|
-
}),
|
|
22682
|
+
}), M);
|
|
22683
22683
|
if (k)
|
|
22684
22684
|
return U.map(function(Q, H) {
|
|
22685
22685
|
var K = Q === V, ee = "".concat(o.getOptionLabel(Q), "-").concat(o.getOptionValue(Q));
|
|
@@ -22775,7 +22775,7 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
22775
22775
|
}, {
|
|
22776
22776
|
key: "renderMenu",
|
|
22777
22777
|
value: function() {
|
|
22778
|
-
var o = this, d = this.getComponents(), g = d.Group, m = d.GroupHeading, y = d.Menu, b = d.MenuList, E = d.MenuPortal, I = d.LoadingMessage, x = d.NoOptionsMessage, S = d.Option, T = this.commonProps, N = this.state.focusedOption, k = this.props, L = k.captureMenuScroll,
|
|
22778
|
+
var o = this, d = this.getComponents(), g = d.Group, m = d.GroupHeading, y = d.Menu, b = d.MenuList, E = d.MenuPortal, I = d.LoadingMessage, x = d.NoOptionsMessage, S = d.Option, T = this.commonProps, N = this.state.focusedOption, k = this.props, L = k.captureMenuScroll, M = k.inputValue, G = k.isLoading, U = k.loadingMessage, V = k.minMenuHeight, Y = k.maxMenuHeight, X = k.menuIsOpen, Q = k.menuPlacement, H = k.menuPosition, K = k.menuPortalTarget, ee = k.menuShouldBlockScroll, ae = k.menuShouldScrollIntoView, ie = k.noOptionsMessage, te = k.onMenuScrollToTop, ue = k.onMenuScrollToBottom;
|
|
22779
22779
|
if (!X) return null;
|
|
22780
22780
|
var le = function(ge, pe) {
|
|
22781
22781
|
var Ie = ge.type, De = ge.data, Pe = ge.isDisabled, J = ge.isSelected, $e = ge.label, ye = ge.value, de = N === De, q = Pe ? void 0 : function() {
|
|
@@ -22825,15 +22825,15 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
22825
22825
|
} else if (xe.type === "option")
|
|
22826
22826
|
return le(xe, "".concat(xe.index));
|
|
22827
22827
|
});
|
|
22828
|
-
else if (
|
|
22828
|
+
else if (G) {
|
|
22829
22829
|
var ve = U({
|
|
22830
|
-
inputValue:
|
|
22830
|
+
inputValue: M
|
|
22831
22831
|
});
|
|
22832
22832
|
if (ve === null) return null;
|
|
22833
22833
|
fe = /* @__PURE__ */ React.createElement(I, T, ve);
|
|
22834
22834
|
} else {
|
|
22835
22835
|
var Ee = ie({
|
|
22836
|
-
inputValue:
|
|
22836
|
+
inputValue: M
|
|
22837
22837
|
});
|
|
22838
22838
|
if (Ee === null) return null;
|
|
22839
22839
|
fe = /* @__PURE__ */ React.createElement(x, T, Ee);
|
|
@@ -22852,7 +22852,7 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
22852
22852
|
onMouseDown: o.onMenuMouseDown,
|
|
22853
22853
|
onMouseMove: o.onMenuMouseMove
|
|
22854
22854
|
},
|
|
22855
|
-
isLoading:
|
|
22855
|
+
isLoading: G,
|
|
22856
22856
|
placement: Ie
|
|
22857
22857
|
}), /* @__PURE__ */ React.createElement(ScrollManager, {
|
|
22858
22858
|
captureEnabled: L,
|
|
@@ -22869,7 +22869,7 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
22869
22869
|
"aria-multiselectable": T.isMulti,
|
|
22870
22870
|
id: o.getElementId("listbox")
|
|
22871
22871
|
},
|
|
22872
|
-
isLoading:
|
|
22872
|
+
isLoading: G,
|
|
22873
22873
|
maxHeight: De,
|
|
22874
22874
|
focusedOption: N
|
|
22875
22875
|
}), fe);
|
|
@@ -22971,11 +22971,11 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
22971
22971
|
}], [{
|
|
22972
22972
|
key: "getDerivedStateFromProps",
|
|
22973
22973
|
value: function(o, d) {
|
|
22974
|
-
var g = d.prevProps, m = d.clearFocusValueOnUpdate, y = d.inputIsHiddenAfterUpdate, b = d.ariaSelection, E = d.isFocused, I = d.prevWasFocused, x = d.instancePrefix, S = o.options, T = o.value, N = o.menuIsOpen, k = o.inputValue, L = o.isMulti,
|
|
22974
|
+
var g = d.prevProps, m = d.clearFocusValueOnUpdate, y = d.inputIsHiddenAfterUpdate, b = d.ariaSelection, E = d.isFocused, I = d.prevWasFocused, x = d.instancePrefix, S = o.options, T = o.value, N = o.menuIsOpen, k = o.inputValue, L = o.isMulti, M = cleanValue(T), G = {};
|
|
22975
22975
|
if (g && (T !== g.value || S !== g.options || N !== g.menuIsOpen || k !== g.inputValue)) {
|
|
22976
|
-
var U = N ? buildFocusableOptions(o,
|
|
22977
|
-
|
|
22978
|
-
selectValue:
|
|
22976
|
+
var U = N ? buildFocusableOptions(o, M) : [], V = N ? buildFocusableOptionsWithIds(buildCategorizedOptions(o, M), "".concat(x, "-option")) : [], Y = m ? getNextFocusedValue(d, M) : null, X = getNextFocusedOption(d, U), Q = getFocusedOptionId(V, X);
|
|
22977
|
+
G = {
|
|
22978
|
+
selectValue: M,
|
|
22979
22979
|
focusedOption: X,
|
|
22980
22980
|
focusedOptionId: Q,
|
|
22981
22981
|
focusableOptionsWithIds: V,
|
|
@@ -22988,10 +22988,10 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
22988
22988
|
inputIsHiddenAfterUpdate: void 0
|
|
22989
22989
|
} : {}, K = b, ee = E && I;
|
|
22990
22990
|
return E && !ee && (K = {
|
|
22991
|
-
value: valueTernary(L,
|
|
22992
|
-
options:
|
|
22991
|
+
value: valueTernary(L, M, M[0] || null),
|
|
22992
|
+
options: M,
|
|
22993
22993
|
action: "initial-input-focus"
|
|
22994
|
-
}, ee = !I), b?.action === "initial-input-focus" && (K = null), _objectSpread2(_objectSpread2(_objectSpread2({},
|
|
22994
|
+
}, ee = !I), b?.action === "initial-input-focus" && (K = null), _objectSpread2(_objectSpread2(_objectSpread2({}, G), H), {}, {
|
|
22995
22995
|
prevProps: o,
|
|
22996
22996
|
ariaSelection: K,
|
|
22997
22997
|
prevWasFocused: ee
|
|
@@ -24504,18 +24504,18 @@ const DrawButton$1 = connect(
|
|
|
24504
24504
|
HIDE: `${o}_HIDE`,
|
|
24505
24505
|
ACTIVATE: `${o}_ACTIVATE`,
|
|
24506
24506
|
DEACTIVATE: `${o}_DEACTIVATE`
|
|
24507
|
-
}, g = `do${a}Initialize`, m = `do${a}AddLayer`, y = `do${a}RemoveLayer`, b = `do${a}AddInteractions`, E = `do${a}RemoveInteractions`, I = `do${a}ToggleVisible`, x = `do${a}ToggleInteractions`, S = `select${a}Layer`, T = `select${a}DrawInteraction`, N = `select${a}InterselectInteractions`, k = `select${a}Active`, L = `select${a}Visible`,
|
|
24507
|
+
}, g = `do${a}Initialize`, m = `do${a}AddLayer`, y = `do${a}RemoveLayer`, b = `do${a}AddInteractions`, E = `do${a}RemoveInteractions`, I = `do${a}ToggleVisible`, x = `do${a}ToggleInteractions`, S = `select${a}Layer`, T = `select${a}DrawInteraction`, N = `select${a}InterselectInteractions`, k = `select${a}Active`, L = `select${a}Visible`, M = `react${a}ShouldInitialize`;
|
|
24508
24508
|
return {
|
|
24509
24509
|
name: r.name,
|
|
24510
24510
|
getReducer() {
|
|
24511
|
-
const
|
|
24511
|
+
const G = {
|
|
24512
24512
|
active: r.active,
|
|
24513
24513
|
visible: r.visible,
|
|
24514
24514
|
layer: null,
|
|
24515
24515
|
drawInteraction: null,
|
|
24516
24516
|
shouldInitialize: !1
|
|
24517
24517
|
};
|
|
24518
|
-
return (U =
|
|
24518
|
+
return (U = G, { type: V, payload: Y }) => {
|
|
24519
24519
|
switch (V) {
|
|
24520
24520
|
case d.INITIALIZE_START:
|
|
24521
24521
|
case d.INITIALIZE_FINISH:
|
|
@@ -24533,8 +24533,8 @@ const DrawButton$1 = connect(
|
|
|
24533
24533
|
}
|
|
24534
24534
|
};
|
|
24535
24535
|
},
|
|
24536
|
-
[g]: () => ({ dispatch:
|
|
24537
|
-
|
|
24536
|
+
[g]: () => ({ dispatch: G, store: U }) => {
|
|
24537
|
+
G({
|
|
24538
24538
|
type: d.INITIALIZE_START,
|
|
24539
24539
|
payload: {
|
|
24540
24540
|
shouldInitialize: !1
|
|
@@ -24557,7 +24557,7 @@ const DrawButton$1 = connect(
|
|
|
24557
24557
|
source: X,
|
|
24558
24558
|
type: r.type
|
|
24559
24559
|
});
|
|
24560
|
-
r.visible && U.selectMap().addLayer(Q),
|
|
24560
|
+
r.visible && U.selectMap().addLayer(Q), G({
|
|
24561
24561
|
type: d.INITIALIZE_FINISH,
|
|
24562
24562
|
payload: {
|
|
24563
24563
|
layer: Q,
|
|
@@ -24565,61 +24565,61 @@ const DrawButton$1 = connect(
|
|
|
24565
24565
|
}
|
|
24566
24566
|
});
|
|
24567
24567
|
},
|
|
24568
|
-
[m]: () => ({ dispatch:
|
|
24568
|
+
[m]: () => ({ dispatch: G, store: U }) => {
|
|
24569
24569
|
const V = U.selectMap(), Y = U[S]();
|
|
24570
|
-
V.addLayer(Y),
|
|
24570
|
+
V.addLayer(Y), G({
|
|
24571
24571
|
type: d.SHOW,
|
|
24572
24572
|
payload: {
|
|
24573
24573
|
visible: !0
|
|
24574
24574
|
}
|
|
24575
24575
|
});
|
|
24576
24576
|
},
|
|
24577
|
-
[y]: () => ({ dispatch:
|
|
24577
|
+
[y]: () => ({ dispatch: G, store: U }) => {
|
|
24578
24578
|
const V = U.selectMap(), Y = U[S]();
|
|
24579
|
-
V.removeLayer(Y),
|
|
24579
|
+
V.removeLayer(Y), G({
|
|
24580
24580
|
type: d.HIDE,
|
|
24581
24581
|
payload: {
|
|
24582
24582
|
visible: !1
|
|
24583
24583
|
}
|
|
24584
24584
|
});
|
|
24585
24585
|
},
|
|
24586
|
-
[I]: () => ({ dispatch:
|
|
24586
|
+
[I]: () => ({ dispatch: G, store: U }) => {
|
|
24587
24587
|
U[L]() ? U[y]() : U[m]();
|
|
24588
24588
|
},
|
|
24589
|
-
[b]: () => ({ dispatch:
|
|
24589
|
+
[b]: () => ({ dispatch: G, store: U }) => {
|
|
24590
24590
|
U.doSetCursor("crosshair");
|
|
24591
24591
|
const V = U.selectMap();
|
|
24592
24592
|
U[N]().forEach((X) => {
|
|
24593
24593
|
V.addInteraction(X);
|
|
24594
|
-
}),
|
|
24594
|
+
}), G({
|
|
24595
24595
|
type: d.ACTIVATE,
|
|
24596
24596
|
payload: {
|
|
24597
24597
|
active: !0
|
|
24598
24598
|
}
|
|
24599
24599
|
});
|
|
24600
24600
|
},
|
|
24601
|
-
[E]: () => ({ dispatch:
|
|
24601
|
+
[E]: () => ({ dispatch: G, store: U }) => {
|
|
24602
24602
|
U.doSetCursor();
|
|
24603
24603
|
const V = U.selectMap();
|
|
24604
24604
|
U[N]().forEach((X) => {
|
|
24605
24605
|
V.removeInteraction(X);
|
|
24606
|
-
}),
|
|
24606
|
+
}), G({
|
|
24607
24607
|
type: d.DEACTIVATE,
|
|
24608
24608
|
payload: {
|
|
24609
24609
|
active: !1
|
|
24610
24610
|
}
|
|
24611
24611
|
});
|
|
24612
24612
|
},
|
|
24613
|
-
[x]: () => ({ store:
|
|
24614
|
-
|
|
24613
|
+
[x]: () => ({ store: G }) => {
|
|
24614
|
+
G.selectActive() ? G[E]() : G[b]();
|
|
24615
24615
|
},
|
|
24616
|
-
[k]: (
|
|
24617
|
-
[L]: (
|
|
24618
|
-
[S]: (
|
|
24619
|
-
[T]: (
|
|
24620
|
-
[N]: createSelector(T, (
|
|
24621
|
-
[
|
|
24622
|
-
if (
|
|
24616
|
+
[k]: (G) => G[r.name].active,
|
|
24617
|
+
[L]: (G) => G[r.name].visible,
|
|
24618
|
+
[S]: (G) => G[r.name].layer,
|
|
24619
|
+
[T]: (G) => G[r.name].drawInteraction,
|
|
24620
|
+
[N]: createSelector(T, (G) => [G]),
|
|
24621
|
+
[M]: (G) => {
|
|
24622
|
+
if (G[r.name].shouldInitialize)
|
|
24623
24623
|
return { actionCreator: g };
|
|
24624
24624
|
}
|
|
24625
24625
|
};
|
|
@@ -24865,13 +24865,13 @@ function requireFileSaver_min() {
|
|
|
24865
24865
|
if ((N || S && T || m) && typeof FileReader < "u") {
|
|
24866
24866
|
var k = new FileReader();
|
|
24867
24867
|
k.onloadend = function() {
|
|
24868
|
-
var
|
|
24869
|
-
|
|
24868
|
+
var G = k.result;
|
|
24869
|
+
G = N ? G : G.replace(/^data:[^;]*;/, "data:attachment/file;"), x ? x.location.href = G : location = G, x = null;
|
|
24870
24870
|
}, k.readAsDataURL(b);
|
|
24871
24871
|
} else {
|
|
24872
|
-
var L = g.URL || g.webkitURL,
|
|
24873
|
-
x ? x.location =
|
|
24874
|
-
L.revokeObjectURL(
|
|
24872
|
+
var L = g.URL || g.webkitURL, M = L.createObjectURL(b);
|
|
24873
|
+
x ? x.location = M : location.href = M, x = null, setTimeout(function() {
|
|
24874
|
+
L.revokeObjectURL(M);
|
|
24875
24875
|
}, 4e4);
|
|
24876
24876
|
}
|
|
24877
24877
|
});
|
|
@@ -25299,16 +25299,16 @@ function vec(e) {
|
|
|
25299
25299
|
}
|
|
25300
25300
|
const ccwerrboundA = (3 + 16 * epsilon) * epsilon, ccwerrboundB = (2 + 12 * epsilon) * epsilon, ccwerrboundC = (9 + 64 * epsilon) * epsilon * epsilon, B = vec(4), C1 = vec(8), C2 = vec(12), D = vec(16), u = vec(4);
|
|
25301
25301
|
function orient2dadapt(e, t, r, a, o, d, g) {
|
|
25302
|
-
let m, y, b, E, I, x, S, T, N, k, L,
|
|
25302
|
+
let m, y, b, E, I, x, S, T, N, k, L, M, G, U, V, Y, X, Q;
|
|
25303
25303
|
const H = e - o, K = r - o, ee = t - d, ae = a - d;
|
|
25304
|
-
U = H * ae, x = splitter * H, S = x - (x - H), T = H - S, x = splitter * ae, N = x - (x - ae), k = ae - N, V = T * k - (U - S * N - T * N - S * k), Y = ee * K, x = splitter * ee, S = x - (x - ee), T = ee - S, x = splitter * K, N = x - (x - K), k = K - N, X = T * k - (Y - S * N - T * N - S * k), L = V - X, I = V - L, B[0] = V - (L + I) + (I - X),
|
|
25304
|
+
U = H * ae, x = splitter * H, S = x - (x - H), T = H - S, x = splitter * ae, N = x - (x - ae), k = ae - N, V = T * k - (U - S * N - T * N - S * k), Y = ee * K, x = splitter * ee, S = x - (x - ee), T = ee - S, x = splitter * K, N = x - (x - K), k = K - N, X = T * k - (Y - S * N - T * N - S * k), L = V - X, I = V - L, B[0] = V - (L + I) + (I - X), M = U + L, I = M - U, G = U - (M - I) + (L - I), L = G - Y, I = G - L, B[1] = G - (L + I) + (I - Y), Q = M + L, I = Q - M, B[2] = M - (Q - I) + (L - I), B[3] = Q;
|
|
25305
25305
|
let ie = estimate(4, B), te = ccwerrboundB * g;
|
|
25306
25306
|
if (ie >= te || -ie >= te || (I = e - H, m = e - (H + I) + (I - o), I = r - K, b = r - (K + I) + (I - o), I = t - ee, y = t - (ee + I) + (I - d), I = a - ae, E = a - (ae + I) + (I - d), m === 0 && y === 0 && b === 0 && E === 0) || (te = ccwerrboundC * g + resulterrbound * Math.abs(ie), ie += H * E + ae * m - (ee * b + K * y), ie >= te || -ie >= te)) return ie;
|
|
25307
|
-
U = m * ae, x = splitter * m, S = x - (x - m), T = m - S, x = splitter * ae, N = x - (x - ae), k = ae - N, V = T * k - (U - S * N - T * N - S * k), Y = y * K, x = splitter * y, S = x - (x - y), T = y - S, x = splitter * K, N = x - (x - K), k = K - N, X = T * k - (Y - S * N - T * N - S * k), L = V - X, I = V - L, u[0] = V - (L + I) + (I - X),
|
|
25307
|
+
U = m * ae, x = splitter * m, S = x - (x - m), T = m - S, x = splitter * ae, N = x - (x - ae), k = ae - N, V = T * k - (U - S * N - T * N - S * k), Y = y * K, x = splitter * y, S = x - (x - y), T = y - S, x = splitter * K, N = x - (x - K), k = K - N, X = T * k - (Y - S * N - T * N - S * k), L = V - X, I = V - L, u[0] = V - (L + I) + (I - X), M = U + L, I = M - U, G = U - (M - I) + (L - I), L = G - Y, I = G - L, u[1] = G - (L + I) + (I - Y), Q = M + L, I = Q - M, u[2] = M - (Q - I) + (L - I), u[3] = Q;
|
|
25308
25308
|
const ue = sum$1(4, B, 4, u, C1);
|
|
25309
|
-
U = H * E, x = splitter * H, S = x - (x - H), T = H - S, x = splitter * E, N = x - (x - E), k = E - N, V = T * k - (U - S * N - T * N - S * k), Y = ee * b, x = splitter * ee, S = x - (x - ee), T = ee - S, x = splitter * b, N = x - (x - b), k = b - N, X = T * k - (Y - S * N - T * N - S * k), L = V - X, I = V - L, u[0] = V - (L + I) + (I - X),
|
|
25309
|
+
U = H * E, x = splitter * H, S = x - (x - H), T = H - S, x = splitter * E, N = x - (x - E), k = E - N, V = T * k - (U - S * N - T * N - S * k), Y = ee * b, x = splitter * ee, S = x - (x - ee), T = ee - S, x = splitter * b, N = x - (x - b), k = b - N, X = T * k - (Y - S * N - T * N - S * k), L = V - X, I = V - L, u[0] = V - (L + I) + (I - X), M = U + L, I = M - U, G = U - (M - I) + (L - I), L = G - Y, I = G - L, u[1] = G - (L + I) + (I - Y), Q = M + L, I = Q - M, u[2] = M - (Q - I) + (L - I), u[3] = Q;
|
|
25310
25310
|
const le = sum$1(ue, C1, 4, u, C2);
|
|
25311
|
-
U = m * E, x = splitter * m, S = x - (x - m), T = m - S, x = splitter * E, N = x - (x - E), k = E - N, V = T * k - (U - S * N - T * N - S * k), Y = y * b, x = splitter * y, S = x - (x - y), T = y - S, x = splitter * b, N = x - (x - b), k = b - N, X = T * k - (Y - S * N - T * N - S * k), L = V - X, I = V - L, u[0] = V - (L + I) + (I - X),
|
|
25311
|
+
U = m * E, x = splitter * m, S = x - (x - m), T = m - S, x = splitter * E, N = x - (x - E), k = E - N, V = T * k - (U - S * N - T * N - S * k), Y = y * b, x = splitter * y, S = x - (x - y), T = y - S, x = splitter * b, N = x - (x - b), k = b - N, X = T * k - (Y - S * N - T * N - S * k), L = V - X, I = V - L, u[0] = V - (L + I) + (I - X), M = U + L, I = M - U, G = U - (M - I) + (L - I), L = G - Y, I = G - L, u[1] = G - (L + I) + (I - Y), Q = M + L, I = Q - M, u[2] = M - (Q - I) + (L - I), u[3] = Q;
|
|
25312
25312
|
const fe = sum$1(le, C2, 4, u, D);
|
|
25313
25313
|
return D[fe - 1];
|
|
25314
25314
|
}
|
|
@@ -25722,10 +25722,10 @@ function requirePathBrowserify() {
|
|
|
25722
25722
|
break;
|
|
25723
25723
|
k === 47 && (T = N);
|
|
25724
25724
|
}
|
|
25725
|
-
var
|
|
25725
|
+
var M = "";
|
|
25726
25726
|
for (N = m + T + 1; N <= y; ++N)
|
|
25727
|
-
(N === y || d.charCodeAt(N) === 47) && (
|
|
25728
|
-
return
|
|
25727
|
+
(N === y || d.charCodeAt(N) === 47) && (M.length === 0 ? M += ".." : M += "/..");
|
|
25728
|
+
return M.length > 0 ? M + g.slice(E + T) : (E += T, g.charCodeAt(E) === 47 && ++E, g.slice(E));
|
|
25729
25729
|
},
|
|
25730
25730
|
_makeLong: function(d) {
|
|
25731
25731
|
return d;
|
|
@@ -25974,9 +25974,9 @@ var _unicodeToArray, hasRequired_unicodeToArray;
|
|
|
25974
25974
|
function require_unicodeToArray() {
|
|
25975
25975
|
if (hasRequired_unicodeToArray) return _unicodeToArray;
|
|
25976
25976
|
hasRequired_unicodeToArray = 1;
|
|
25977
|
-
var e = "\\ud800-\\udfff", t = "\\u0300-\\u036f", r = "\\ufe20-\\ufe2f", a = "\\u20d0-\\u20ff", o = t + r + a, d = "\\ufe0e\\ufe0f", g = "[" + e + "]", m = "[" + o + "]", y = "\\ud83c[\\udffb-\\udfff]", b = "(?:" + m + "|" + y + ")", E = "[^" + e + "]", I = "(?:\\ud83c[\\udde6-\\uddff]){2}", x = "[\\ud800-\\udbff][\\udc00-\\udfff]", S = "\\u200d", T = b + "?", N = "[" + d + "]?", k = "(?:" + S + "(?:" + [E, I, x].join("|") + ")" + N + T + ")*", L = N + T + k,
|
|
25977
|
+
var e = "\\ud800-\\udfff", t = "\\u0300-\\u036f", r = "\\ufe20-\\ufe2f", a = "\\u20d0-\\u20ff", o = t + r + a, d = "\\ufe0e\\ufe0f", g = "[" + e + "]", m = "[" + o + "]", y = "\\ud83c[\\udffb-\\udfff]", b = "(?:" + m + "|" + y + ")", E = "[^" + e + "]", I = "(?:\\ud83c[\\udde6-\\uddff]){2}", x = "[\\ud800-\\udbff][\\udc00-\\udfff]", S = "\\u200d", T = b + "?", N = "[" + d + "]?", k = "(?:" + S + "(?:" + [E, I, x].join("|") + ")" + N + T + ")*", L = N + T + k, M = "(?:" + [E + m + "?", m, I, x, g].join("|") + ")", G = RegExp(y + "(?=" + y + ")|" + M + L, "g");
|
|
25978
25978
|
function U(V) {
|
|
25979
|
-
return V.match(
|
|
25979
|
+
return V.match(G) || [];
|
|
25980
25980
|
}
|
|
25981
25981
|
return _unicodeToArray = U, _unicodeToArray;
|
|
25982
25982
|
}
|
|
@@ -26932,7 +26932,7 @@ function require_equalArrays() {
|
|
|
26932
26932
|
var N = I.get(g), k = I.get(m);
|
|
26933
26933
|
if (N && k)
|
|
26934
26934
|
return N == m && k == g;
|
|
26935
|
-
var L = -1,
|
|
26935
|
+
var L = -1, M = !0, G = y & o ? new e() : void 0;
|
|
26936
26936
|
for (I.set(g, m), I.set(m, g); ++L < S; ) {
|
|
26937
26937
|
var U = g[L], V = m[L];
|
|
26938
26938
|
if (b)
|
|
@@ -26940,23 +26940,23 @@ function require_equalArrays() {
|
|
|
26940
26940
|
if (Y !== void 0) {
|
|
26941
26941
|
if (Y)
|
|
26942
26942
|
continue;
|
|
26943
|
-
|
|
26943
|
+
M = !1;
|
|
26944
26944
|
break;
|
|
26945
26945
|
}
|
|
26946
|
-
if (
|
|
26946
|
+
if (G) {
|
|
26947
26947
|
if (!t(m, function(X, Q) {
|
|
26948
|
-
if (!r(
|
|
26949
|
-
return
|
|
26948
|
+
if (!r(G, Q) && (U === X || E(U, X, y, b, I)))
|
|
26949
|
+
return G.push(Q);
|
|
26950
26950
|
})) {
|
|
26951
|
-
|
|
26951
|
+
M = !1;
|
|
26952
26952
|
break;
|
|
26953
26953
|
}
|
|
26954
26954
|
} else if (!(U === V || E(U, V, y, b, I))) {
|
|
26955
|
-
|
|
26955
|
+
M = !1;
|
|
26956
26956
|
break;
|
|
26957
26957
|
}
|
|
26958
26958
|
}
|
|
26959
|
-
return I.delete(g), I.delete(m),
|
|
26959
|
+
return I.delete(g), I.delete(m), M;
|
|
26960
26960
|
}
|
|
26961
26961
|
return _equalArrays = d, _equalArrays;
|
|
26962
26962
|
}
|
|
@@ -26995,10 +26995,10 @@ var _equalByTag, hasRequired_equalByTag;
|
|
|
26995
26995
|
function require_equalByTag() {
|
|
26996
26996
|
if (hasRequired_equalByTag) return _equalByTag;
|
|
26997
26997
|
hasRequired_equalByTag = 1;
|
|
26998
|
-
var e = require_Symbol(), t = require_Uint8Array(), r = requireEq(), a = require_equalArrays(), o = require_mapToArray(), d = require_setToArray(), g = 1, m = 2, y = "[object Boolean]", b = "[object Date]", E = "[object Error]", I = "[object Map]", x = "[object Number]", S = "[object RegExp]", T = "[object Set]", N = "[object String]", k = "[object Symbol]", L = "[object ArrayBuffer]",
|
|
26998
|
+
var e = require_Symbol(), t = require_Uint8Array(), r = requireEq(), a = require_equalArrays(), o = require_mapToArray(), d = require_setToArray(), g = 1, m = 2, y = "[object Boolean]", b = "[object Date]", E = "[object Error]", I = "[object Map]", x = "[object Number]", S = "[object RegExp]", T = "[object Set]", N = "[object String]", k = "[object Symbol]", L = "[object ArrayBuffer]", M = "[object DataView]", G = e ? e.prototype : void 0, U = G ? G.valueOf : void 0;
|
|
26999
26999
|
function V(Y, X, Q, H, K, ee, ae) {
|
|
27000
27000
|
switch (Q) {
|
|
27001
|
-
case
|
|
27001
|
+
case M:
|
|
27002
27002
|
if (Y.byteLength != X.byteLength || Y.byteOffset != X.byteOffset)
|
|
27003
27003
|
return !1;
|
|
27004
27004
|
Y = Y.buffer, X = X.buffer;
|
|
@@ -27130,8 +27130,8 @@ var _baseIsTypedArray, hasRequired_baseIsTypedArray;
|
|
|
27130
27130
|
function require_baseIsTypedArray() {
|
|
27131
27131
|
if (hasRequired_baseIsTypedArray) return _baseIsTypedArray;
|
|
27132
27132
|
hasRequired_baseIsTypedArray = 1;
|
|
27133
|
-
var e = require_baseGetTag(), t = requireIsLength(), r = requireIsObjectLike(), a = "[object Arguments]", o = "[object Array]", d = "[object Boolean]", g = "[object Date]", m = "[object Error]", y = "[object Function]", b = "[object Map]", E = "[object Number]", I = "[object Object]", x = "[object RegExp]", S = "[object Set]", T = "[object String]", N = "[object WeakMap]", k = "[object ArrayBuffer]", L = "[object DataView]",
|
|
27134
|
-
ee[
|
|
27133
|
+
var e = require_baseGetTag(), t = requireIsLength(), r = requireIsObjectLike(), a = "[object Arguments]", o = "[object Array]", d = "[object Boolean]", g = "[object Date]", m = "[object Error]", y = "[object Function]", b = "[object Map]", E = "[object Number]", I = "[object Object]", x = "[object RegExp]", S = "[object Set]", T = "[object String]", N = "[object WeakMap]", k = "[object ArrayBuffer]", L = "[object DataView]", M = "[object Float32Array]", G = "[object Float64Array]", U = "[object Int8Array]", V = "[object Int16Array]", Y = "[object Int32Array]", X = "[object Uint8Array]", Q = "[object Uint8ClampedArray]", H = "[object Uint16Array]", K = "[object Uint32Array]", ee = {};
|
|
27134
|
+
ee[M] = ee[G] = ee[U] = ee[V] = ee[Y] = ee[X] = ee[Q] = ee[H] = ee[K] = !0, ee[a] = ee[o] = ee[k] = ee[d] = ee[L] = ee[g] = ee[m] = ee[y] = ee[b] = ee[E] = ee[I] = ee[x] = ee[S] = ee[T] = ee[N] = !1;
|
|
27135
27135
|
function ae(ie) {
|
|
27136
27136
|
return r(ie) && t(ie.length) && !!ee[e(ie)];
|
|
27137
27137
|
}
|
|
@@ -27177,12 +27177,12 @@ function require_arrayLikeKeys() {
|
|
|
27177
27177
|
var e = require_baseTimes(), t = requireIsArguments(), r = requireIsArray(), a = requireIsBuffer(), o = require_isIndex(), d = requireIsTypedArray(), g = Object.prototype, m = g.hasOwnProperty;
|
|
27178
27178
|
function y(b, E) {
|
|
27179
27179
|
var I = r(b), x = !I && t(b), S = !I && !x && a(b), T = !I && !x && !S && d(b), N = I || x || S || T, k = N ? e(b.length, String) : [], L = k.length;
|
|
27180
|
-
for (var
|
|
27181
|
-
(E || m.call(b,
|
|
27182
|
-
(
|
|
27183
|
-
S && (
|
|
27184
|
-
T && (
|
|
27185
|
-
o(
|
|
27180
|
+
for (var M in b)
|
|
27181
|
+
(E || m.call(b, M)) && !(N && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
27182
|
+
(M == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
27183
|
+
S && (M == "offset" || M == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
27184
|
+
T && (M == "buffer" || M == "byteLength" || M == "byteOffset") || // Skip index properties.
|
|
27185
|
+
o(M, L))) && k.push(M);
|
|
27186
27186
|
return k;
|
|
27187
27187
|
}
|
|
27188
27188
|
return _arrayLikeKeys = y, _arrayLikeKeys;
|
|
@@ -27275,9 +27275,9 @@ function require_equalObjects() {
|
|
|
27275
27275
|
if (!(I ? L in g : a.call(g, L)))
|
|
27276
27276
|
return !1;
|
|
27277
27277
|
}
|
|
27278
|
-
var
|
|
27279
|
-
if (
|
|
27280
|
-
return
|
|
27278
|
+
var M = E.get(d), G = E.get(g);
|
|
27279
|
+
if (M && G)
|
|
27280
|
+
return M == g && G == d;
|
|
27281
27281
|
var U = !0;
|
|
27282
27282
|
E.set(d, g), E.set(g, d);
|
|
27283
27283
|
for (var V = I; ++k < S; ) {
|
|
@@ -27331,9 +27331,9 @@ var _getTag, hasRequired_getTag;
|
|
|
27331
27331
|
function require_getTag() {
|
|
27332
27332
|
if (hasRequired_getTag) return _getTag;
|
|
27333
27333
|
hasRequired_getTag = 1;
|
|
27334
|
-
var e = require_DataView(), t = require_Map(), r = require_Promise(), a = require_Set(), o = require_WeakMap(), d = require_baseGetTag(), g = require_toSource(), m = "[object Map]", y = "[object Object]", b = "[object Promise]", E = "[object Set]", I = "[object WeakMap]", x = "[object DataView]", S = g(e), T = g(t), N = g(r), k = g(a), L = g(o),
|
|
27335
|
-
return (e &&
|
|
27336
|
-
var U = d(
|
|
27334
|
+
var e = require_DataView(), t = require_Map(), r = require_Promise(), a = require_Set(), o = require_WeakMap(), d = require_baseGetTag(), g = require_toSource(), m = "[object Map]", y = "[object Object]", b = "[object Promise]", E = "[object Set]", I = "[object WeakMap]", x = "[object DataView]", S = g(e), T = g(t), N = g(r), k = g(a), L = g(o), M = d;
|
|
27335
|
+
return (e && M(new e(new ArrayBuffer(1))) != x || t && M(new t()) != m || r && M(r.resolve()) != b || a && M(new a()) != E || o && M(new o()) != I) && (M = function(G) {
|
|
27336
|
+
var U = d(G), V = U == y ? G.constructor : void 0, Y = V ? g(V) : "";
|
|
27337
27337
|
if (Y)
|
|
27338
27338
|
switch (Y) {
|
|
27339
27339
|
case S:
|
|
@@ -27348,14 +27348,14 @@ function require_getTag() {
|
|
|
27348
27348
|
return I;
|
|
27349
27349
|
}
|
|
27350
27350
|
return U;
|
|
27351
|
-
}), _getTag =
|
|
27351
|
+
}), _getTag = M, _getTag;
|
|
27352
27352
|
}
|
|
27353
27353
|
var _baseIsEqualDeep, hasRequired_baseIsEqualDeep;
|
|
27354
27354
|
function require_baseIsEqualDeep() {
|
|
27355
27355
|
if (hasRequired_baseIsEqualDeep) return _baseIsEqualDeep;
|
|
27356
27356
|
hasRequired_baseIsEqualDeep = 1;
|
|
27357
27357
|
var e = require_Stack(), t = require_equalArrays(), r = require_equalByTag(), a = require_equalObjects(), o = require_getTag(), d = requireIsArray(), g = requireIsBuffer(), m = requireIsTypedArray(), y = 1, b = "[object Arguments]", E = "[object Array]", I = "[object Object]", x = Object.prototype, S = x.hasOwnProperty;
|
|
27358
|
-
function T(N, k, L,
|
|
27358
|
+
function T(N, k, L, M, G, U) {
|
|
27359
27359
|
var V = d(N), Y = d(k), X = V ? E : o(N), Q = Y ? E : o(k);
|
|
27360
27360
|
X = X == b ? I : X, Q = Q == b ? I : Q;
|
|
27361
27361
|
var H = X == I, K = Q == I, ee = X == Q;
|
|
@@ -27365,15 +27365,15 @@ function require_baseIsEqualDeep() {
|
|
|
27365
27365
|
V = !0, H = !1;
|
|
27366
27366
|
}
|
|
27367
27367
|
if (ee && !H)
|
|
27368
|
-
return U || (U = new e()), V || m(N) ? t(N, k, L,
|
|
27368
|
+
return U || (U = new e()), V || m(N) ? t(N, k, L, M, G, U) : r(N, k, X, L, M, G, U);
|
|
27369
27369
|
if (!(L & y)) {
|
|
27370
27370
|
var ae = H && S.call(N, "__wrapped__"), ie = K && S.call(k, "__wrapped__");
|
|
27371
27371
|
if (ae || ie) {
|
|
27372
27372
|
var te = ae ? N.value() : N, ue = ie ? k.value() : k;
|
|
27373
|
-
return U || (U = new e()),
|
|
27373
|
+
return U || (U = new e()), G(te, ue, L, M, U);
|
|
27374
27374
|
}
|
|
27375
27375
|
}
|
|
27376
|
-
return ee ? (U || (U = new e()), a(N, k, L,
|
|
27376
|
+
return ee ? (U || (U = new e()), a(N, k, L, M, G, U)) : !1;
|
|
27377
27377
|
}
|
|
27378
27378
|
return _baseIsEqualDeep = T, _baseIsEqualDeep;
|
|
27379
27379
|
}
|
|
@@ -28777,14 +28777,14 @@ const ArcGisListener = {
|
|
|
28777
28777
|
[y.uid]: {
|
|
28778
28778
|
type: "FeatureCollection",
|
|
28779
28779
|
features: k.results.map((L) => {
|
|
28780
|
-
const
|
|
28780
|
+
const G = esrijsonFormat.readFeature(L, {
|
|
28781
28781
|
featureProjection: "EPSG:3857"
|
|
28782
28782
|
}).getGeometry();
|
|
28783
28783
|
return {
|
|
28784
28784
|
type: "Feature",
|
|
28785
28785
|
geometry: {
|
|
28786
|
-
type:
|
|
28787
|
-
coordinates:
|
|
28786
|
+
type: G.getType(),
|
|
28787
|
+
coordinates: G.getCoordinates()
|
|
28788
28788
|
},
|
|
28789
28789
|
properties: formatArcgisrest(L.attributes)
|
|
28790
28790
|
};
|
|
@@ -29020,10 +29020,10 @@ function require_baseOrderBy() {
|
|
|
29020
29020
|
var S = -1;
|
|
29021
29021
|
I = e(I, d(r));
|
|
29022
29022
|
var T = a(E, function(N, k, L) {
|
|
29023
|
-
var
|
|
29024
|
-
return
|
|
29023
|
+
var M = e(I, function(G) {
|
|
29024
|
+
return G(N);
|
|
29025
29025
|
});
|
|
29026
|
-
return { criteria:
|
|
29026
|
+
return { criteria: M, index: ++S, value: N };
|
|
29027
29027
|
});
|
|
29028
29028
|
return o(T, function(N, k) {
|
|
29029
29029
|
return g(N, k, x);
|
|
@@ -29454,12 +29454,12 @@ Url.prototype.parse = function(e, t) {
|
|
|
29454
29454
|
for (let N = 0, k = T.length; N < k; N++) {
|
|
29455
29455
|
const L = T[N];
|
|
29456
29456
|
if (L && !L.match(hostnamePartPattern)) {
|
|
29457
|
-
let
|
|
29458
|
-
for (let
|
|
29459
|
-
L.charCodeAt(
|
|
29460
|
-
if (!
|
|
29461
|
-
const
|
|
29462
|
-
V && (
|
|
29457
|
+
let M = "";
|
|
29458
|
+
for (let G = 0, U = L.length; G < U; G++)
|
|
29459
|
+
L.charCodeAt(G) > 127 ? M += "x" : M += L[G];
|
|
29460
|
+
if (!M.match(hostnamePartPattern)) {
|
|
29461
|
+
const G = T.slice(0, N), U = T.slice(N + 1), V = L.match(hostnamePartStart);
|
|
29462
|
+
V && (G.push(V[1]), U.unshift(V[2])), U.length && (d = U.join(".") + d), this.hostname = G.join(".");
|
|
29463
29463
|
break;
|
|
29464
29464
|
}
|
|
29465
29465
|
}
|
|
@@ -30364,10 +30364,10 @@ function linkify$1(e) {
|
|
|
30364
30364
|
const V = new e.Token("text", "", 0);
|
|
30365
30365
|
V.content = y.slice(x, L), V.level = I, E.push(V);
|
|
30366
30366
|
}
|
|
30367
|
-
const
|
|
30368
|
-
|
|
30369
|
-
const
|
|
30370
|
-
|
|
30367
|
+
const M = new e.Token("link_open", "a", 1);
|
|
30368
|
+
M.attrs = [["href", N]], M.level = I++, M.markup = "linkify", M.info = "auto", E.push(M);
|
|
30369
|
+
const G = new e.Token("text", "", 0);
|
|
30370
|
+
G.content = k, G.level = I, E.push(G);
|
|
30371
30371
|
const U = new e.Token("link_close", "a", -1);
|
|
30372
30372
|
U.level = --I, U.markup = "linkify", U.info = "auto", E.push(U), x = b[S].lastIndex;
|
|
30373
30373
|
}
|
|
@@ -30449,8 +30449,8 @@ function process_inlines(e, t) {
|
|
|
30449
30449
|
N = e[r].content.charCodeAt(0);
|
|
30450
30450
|
break;
|
|
30451
30451
|
}
|
|
30452
|
-
const k = isMdAsciiPunct(T) || isPunctChar(String.fromCharCode(T)), L = isMdAsciiPunct(N) || isPunctChar(String.fromCharCode(N)),
|
|
30453
|
-
if (
|
|
30452
|
+
const k = isMdAsciiPunct(T) || isPunctChar(String.fromCharCode(T)), L = isMdAsciiPunct(N) || isPunctChar(String.fromCharCode(N)), M = isWhiteSpace(T), G = isWhiteSpace(N);
|
|
30453
|
+
if (G ? I = !1 : L && (M || k || (I = !1)), M ? x = !1 : k && (G || L || (x = !1)), N === 34 && E[0] === '"' && T >= 48 && T <= 57 && (x = I = !1), I && x && (I = k, x = L), !I && !x) {
|
|
30454
30454
|
S && (d.content = replaceAt(d.content, E.index, APOSTROPHE));
|
|
30455
30455
|
continue;
|
|
30456
30456
|
}
|
|
@@ -30667,7 +30667,7 @@ function table(e, t, r, a) {
|
|
|
30667
30667
|
Y.content = b[U].trim(), Y.children = [], e.push("th_close", "th", -1);
|
|
30668
30668
|
}
|
|
30669
30669
|
e.push("tr_close", "tr", -1), e.push("thead_close", "thead", -1);
|
|
30670
|
-
let
|
|
30670
|
+
let M, G = 0;
|
|
30671
30671
|
for (o = t + 2; o < r && !(e.sCount[o] < e.blkIndent); o++) {
|
|
30672
30672
|
let U = !1;
|
|
30673
30673
|
for (let Y = 0, X = S.length; Y < X; Y++)
|
|
@@ -30675,11 +30675,11 @@ function table(e, t, r, a) {
|
|
|
30675
30675
|
U = !0;
|
|
30676
30676
|
break;
|
|
30677
30677
|
}
|
|
30678
|
-
if (U || (y = getLine(e, o).trim(), !y) || e.sCount[o] - e.blkIndent >= 4 || (b = escapedSplit(y), b.length && b[0] === "" && b.shift(), b.length && b[b.length - 1] === "" && b.pop(),
|
|
30678
|
+
if (U || (y = getLine(e, o).trim(), !y) || e.sCount[o] - e.blkIndent >= 4 || (b = escapedSplit(y), b.length && b[0] === "" && b.shift(), b.length && b[b.length - 1] === "" && b.pop(), G += I - b.length, G > MAX_AUTOCOMPLETED_CELLS))
|
|
30679
30679
|
break;
|
|
30680
30680
|
if (o === t + 2) {
|
|
30681
30681
|
const Y = e.push("tbody_open", "tbody", 1);
|
|
30682
|
-
Y.map =
|
|
30682
|
+
Y.map = M = [t + 2, 0];
|
|
30683
30683
|
}
|
|
30684
30684
|
const V = e.push("tr_open", "tr", 1);
|
|
30685
30685
|
V.map = [o, o + 1];
|
|
@@ -30691,7 +30691,7 @@ function table(e, t, r, a) {
|
|
|
30691
30691
|
}
|
|
30692
30692
|
e.push("tr_close", "tr", -1);
|
|
30693
30693
|
}
|
|
30694
|
-
return
|
|
30694
|
+
return M && (e.push("tbody_close", "tbody", -1), M[1] = o), e.push("table_close", "table", -1), N[1] = o, e.parentType = x, e.line = o, !0;
|
|
30695
30695
|
}
|
|
30696
30696
|
function code(e, t, r) {
|
|
30697
30697
|
if (e.sCount[t] - e.blkIndent < 4)
|
|
@@ -30751,10 +30751,10 @@ function blockquote(e, t, r, a) {
|
|
|
30751
30751
|
e.parentType = "blockquote";
|
|
30752
30752
|
let S = !1, T;
|
|
30753
30753
|
for (T = t; T < r; T++) {
|
|
30754
|
-
const
|
|
30754
|
+
const G = e.sCount[T] < e.blkIndent;
|
|
30755
30755
|
if (o = e.bMarks[T] + e.tShift[T], d = e.eMarks[T], o >= d)
|
|
30756
30756
|
break;
|
|
30757
|
-
if (e.src.charCodeAt(o++) === 62 && !
|
|
30757
|
+
if (e.src.charCodeAt(o++) === 62 && !G) {
|
|
30758
30758
|
let V = e.sCount[T] + 1, Y, X;
|
|
30759
30759
|
e.src.charCodeAt(o) === 32 ? (o++, V++, X = !1, Y = !0) : e.src.charCodeAt(o) === 9 ? (Y = !0, (e.bsCount[T] + V) % 4 === 3 ? (o++, V++, X = !1) : X = !0) : Y = !1;
|
|
30760
30760
|
let Q = V;
|
|
@@ -30789,10 +30789,10 @@ function blockquote(e, t, r, a) {
|
|
|
30789
30789
|
k.markup = ">";
|
|
30790
30790
|
const L = [t, 0];
|
|
30791
30791
|
k.map = L, e.md.block.tokenize(e, t, T);
|
|
30792
|
-
const
|
|
30793
|
-
|
|
30794
|
-
for (let
|
|
30795
|
-
e.bMarks[
|
|
30792
|
+
const M = e.push("blockquote_close", "blockquote", -1);
|
|
30793
|
+
M.markup = ">", e.lineMax = g, e.parentType = x, L[1] = e.line;
|
|
30794
|
+
for (let G = 0; G < E.length; G++)
|
|
30795
|
+
e.bMarks[G + t] = m[G], e.tShift[G + t] = E[G], e.sCount[G + t] = b[G], e.bsCount[G + t] = y[G];
|
|
30796
30796
|
return e.blkIndent = N, !0;
|
|
30797
30797
|
}
|
|
30798
30798
|
function hr(e, t, r, a) {
|
|
@@ -30880,7 +30880,7 @@ function list(e, t, r, a) {
|
|
|
30880
30880
|
const k = [y, 0];
|
|
30881
30881
|
m.map = k, m.markup = String.fromCharCode(T);
|
|
30882
30882
|
let L = !1;
|
|
30883
|
-
const
|
|
30883
|
+
const M = e.md.block.ruler.getRules("list"), G = e.parentType;
|
|
30884
30884
|
for (e.parentType = "list"; y < r; ) {
|
|
30885
30885
|
d = S, o = e.eMarks[y];
|
|
30886
30886
|
const U = e.sCount[y] + S - (e.bMarks[y] + e.tShift[y]);
|
|
@@ -30906,8 +30906,8 @@ function list(e, t, r, a) {
|
|
|
30906
30906
|
if (e.listIndent = e.blkIndent, e.blkIndent = Q, e.tight = !0, e.tShift[y] = Y - e.bMarks[y], e.sCount[y] = V, Y >= o && e.isEmpty(y + 1) ? e.line = Math.min(e.line + 2, r) : e.md.block.tokenize(e, y, r, !0), (!e.tight || L) && (b = !1), L = e.line - y > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = ie, e.tShift[y] = ee, e.sCount[y] = ae, e.tight = K, m = e.push("list_item_close", "li", -1), m.markup = String.fromCharCode(T), y = e.line, H[1] = y, y >= r || e.sCount[y] < e.blkIndent || e.sCount[y] - e.blkIndent >= 4)
|
|
30907
30907
|
break;
|
|
30908
30908
|
let te = !1;
|
|
30909
|
-
for (let ue = 0, le =
|
|
30910
|
-
if (
|
|
30909
|
+
for (let ue = 0, le = M.length; ue < le; ue++)
|
|
30910
|
+
if (M[ue](e, y, r, !0)) {
|
|
30911
30911
|
te = !0;
|
|
30912
30912
|
break;
|
|
30913
30913
|
}
|
|
@@ -30922,58 +30922,58 @@ function list(e, t, r, a) {
|
|
|
30922
30922
|
if (T !== e.src.charCodeAt(S - 1))
|
|
30923
30923
|
break;
|
|
30924
30924
|
}
|
|
30925
|
-
return I ? m = e.push("ordered_list_close", "ol", -1) : m = e.push("bullet_list_close", "ul", -1), m.markup = String.fromCharCode(T), k[1] = y, e.line = y, e.parentType =
|
|
30925
|
+
return I ? m = e.push("ordered_list_close", "ol", -1) : m = e.push("bullet_list_close", "ul", -1), m.markup = String.fromCharCode(T), k[1] = y, e.line = y, e.parentType = G, b && markTightParagraphs(e, N), !0;
|
|
30926
30926
|
}
|
|
30927
30927
|
function reference(e, t, r, a) {
|
|
30928
30928
|
let o = e.bMarks[t] + e.tShift[t], d = e.eMarks[t], g = t + 1;
|
|
30929
30929
|
if (e.sCount[t] - e.blkIndent >= 4 || e.src.charCodeAt(o) !== 91)
|
|
30930
30930
|
return !1;
|
|
30931
|
-
function m(
|
|
30932
|
-
const
|
|
30933
|
-
if (
|
|
30931
|
+
function m(M) {
|
|
30932
|
+
const G = e.lineMax;
|
|
30933
|
+
if (M >= G || e.isEmpty(M))
|
|
30934
30934
|
return null;
|
|
30935
30935
|
let U = !1;
|
|
30936
|
-
if (e.sCount[
|
|
30936
|
+
if (e.sCount[M] - e.blkIndent > 3 && (U = !0), e.sCount[M] < 0 && (U = !0), !U) {
|
|
30937
30937
|
const X = e.md.block.ruler.getRules("reference"), Q = e.parentType;
|
|
30938
30938
|
e.parentType = "reference";
|
|
30939
30939
|
let H = !1;
|
|
30940
30940
|
for (let K = 0, ee = X.length; K < ee; K++)
|
|
30941
|
-
if (X[K](e,
|
|
30941
|
+
if (X[K](e, M, G, !0)) {
|
|
30942
30942
|
H = !0;
|
|
30943
30943
|
break;
|
|
30944
30944
|
}
|
|
30945
30945
|
if (e.parentType = Q, H)
|
|
30946
30946
|
return null;
|
|
30947
30947
|
}
|
|
30948
|
-
const V = e.bMarks[
|
|
30948
|
+
const V = e.bMarks[M] + e.tShift[M], Y = e.eMarks[M];
|
|
30949
30949
|
return e.src.slice(V, Y + 1);
|
|
30950
30950
|
}
|
|
30951
30951
|
let y = e.src.slice(o, d + 1);
|
|
30952
30952
|
d = y.length;
|
|
30953
30953
|
let b = -1;
|
|
30954
30954
|
for (o = 1; o < d; o++) {
|
|
30955
|
-
const
|
|
30956
|
-
if (
|
|
30955
|
+
const M = y.charCodeAt(o);
|
|
30956
|
+
if (M === 91)
|
|
30957
30957
|
return !1;
|
|
30958
|
-
if (
|
|
30958
|
+
if (M === 93) {
|
|
30959
30959
|
b = o;
|
|
30960
30960
|
break;
|
|
30961
|
-
} else if (
|
|
30962
|
-
const
|
|
30963
|
-
|
|
30964
|
-
} else if (
|
|
30965
|
-
const
|
|
30966
|
-
|
|
30961
|
+
} else if (M === 10) {
|
|
30962
|
+
const G = m(g);
|
|
30963
|
+
G !== null && (y += G, d = y.length, g++);
|
|
30964
|
+
} else if (M === 92 && (o++, o < d && y.charCodeAt(o) === 10)) {
|
|
30965
|
+
const G = m(g);
|
|
30966
|
+
G !== null && (y += G, d = y.length, g++);
|
|
30967
30967
|
}
|
|
30968
30968
|
}
|
|
30969
30969
|
if (b < 0 || y.charCodeAt(b + 1) !== 58)
|
|
30970
30970
|
return !1;
|
|
30971
30971
|
for (o = b + 2; o < d; o++) {
|
|
30972
|
-
const
|
|
30973
|
-
if (
|
|
30974
|
-
const
|
|
30975
|
-
|
|
30976
|
-
} else if (!isSpace(
|
|
30972
|
+
const M = y.charCodeAt(o);
|
|
30973
|
+
if (M === 10) {
|
|
30974
|
+
const G = m(g);
|
|
30975
|
+
G !== null && (y += G, d = y.length, g++);
|
|
30976
|
+
} else if (!isSpace(M)) break;
|
|
30977
30977
|
}
|
|
30978
30978
|
const E = e.md.helpers.parseLinkDestination(y, o, d);
|
|
30979
30979
|
if (!E.ok)
|
|
@@ -30984,29 +30984,29 @@ function reference(e, t, r, a) {
|
|
|
30984
30984
|
o = E.pos;
|
|
30985
30985
|
const x = o, S = g, T = o;
|
|
30986
30986
|
for (; o < d; o++) {
|
|
30987
|
-
const
|
|
30988
|
-
if (
|
|
30989
|
-
const
|
|
30990
|
-
|
|
30991
|
-
} else if (!isSpace(
|
|
30987
|
+
const M = y.charCodeAt(o);
|
|
30988
|
+
if (M === 10) {
|
|
30989
|
+
const G = m(g);
|
|
30990
|
+
G !== null && (y += G, d = y.length, g++);
|
|
30991
|
+
} else if (!isSpace(M)) break;
|
|
30992
30992
|
}
|
|
30993
30993
|
let N = e.md.helpers.parseLinkTitle(y, o, d);
|
|
30994
30994
|
for (; N.can_continue; ) {
|
|
30995
|
-
const
|
|
30996
|
-
if (
|
|
30997
|
-
y +=
|
|
30995
|
+
const M = m(g);
|
|
30996
|
+
if (M === null) break;
|
|
30997
|
+
y += M, o = d, d = y.length, g++, N = e.md.helpers.parseLinkTitle(y, o, d, N);
|
|
30998
30998
|
}
|
|
30999
30999
|
let k;
|
|
31000
31000
|
for (o < d && T !== o && N.ok ? (k = N.str, o = N.pos) : (k = "", o = x, g = S); o < d; ) {
|
|
31001
|
-
const
|
|
31002
|
-
if (!isSpace(
|
|
31001
|
+
const M = y.charCodeAt(o);
|
|
31002
|
+
if (!isSpace(M))
|
|
31003
31003
|
break;
|
|
31004
31004
|
o++;
|
|
31005
31005
|
}
|
|
31006
31006
|
if (o < d && y.charCodeAt(o) !== 10 && k)
|
|
31007
31007
|
for (k = "", o = x, g = S; o < d; ) {
|
|
31008
|
-
const
|
|
31009
|
-
if (!isSpace(
|
|
31008
|
+
const M = y.charCodeAt(o);
|
|
31009
|
+
if (!isSpace(M))
|
|
31010
31010
|
break;
|
|
31011
31011
|
o++;
|
|
31012
31012
|
}
|
|
@@ -33078,7 +33078,7 @@ class LegendItemMultiple extends React__default.Component {
|
|
|
33078
33078
|
return /* @__PURE__ */ jsx$1("div", { children: /* @__PURE__ */ jsxs("li", { className: "cm-list-group-item corpsmap-legend-item-multiple", children: [
|
|
33079
33079
|
/* @__PURE__ */ jsx$1(Header, { layer: t }),
|
|
33080
33080
|
r.map((a, o) => /* @__PURE__ */ jsxs("div", { children: [
|
|
33081
|
-
typeof a == "string" ? a : /* @__PURE__ */ jsx$1("img", { alt: a.alt, src: a.src }),
|
|
33081
|
+
typeof a == "string" ? a : /* @__PURE__ */ jsx$1("img", { alt: a.alt, src: a.src, style: { marginRight: "5px" } }),
|
|
33082
33082
|
t.type === "WMS" ? null : a.title,
|
|
33083
33083
|
/* @__PURE__ */ jsx$1("br", {}),
|
|
33084
33084
|
t.attributions ? /* @__PURE__ */ jsx$1("div", { children: /* @__PURE__ */ jsxs("label", { children: [
|
|
@@ -33157,7 +33157,7 @@ class LegendButton extends React__default.Component {
|
|
|
33157
33157
|
}
|
|
33158
33158
|
}
|
|
33159
33159
|
let req$1 = null;
|
|
33160
|
-
const bundle$c = {
|
|
33160
|
+
const safeRgba = (e, t = [0, 0, 0, 0]) => e ? `rgba(${e.join()})` : `rgba(${t.join()})`, bundle$c = {
|
|
33161
33161
|
name: "legend",
|
|
33162
33162
|
getReducer: () => {
|
|
33163
33163
|
const e = {
|
|
@@ -33230,10 +33230,10 @@ const bundle$c = {
|
|
|
33230
33230
|
});
|
|
33231
33231
|
else
|
|
33232
33232
|
try {
|
|
33233
|
-
const
|
|
33234
|
-
|
|
33235
|
-
} catch (
|
|
33236
|
-
console.log(
|
|
33233
|
+
const M = JSON.parse(L);
|
|
33234
|
+
m === "EsriFeatureService" ? S === !0 ? r.doGenerateArcImages(M, d) : r.doGenerateEsriImages(M, d) : r.doGenerateArcImages(M, d);
|
|
33235
|
+
} catch (M) {
|
|
33236
|
+
console.log(M), a[b] = ["Legend not available!"], t({
|
|
33237
33237
|
type: "LEGEND_LAYERS_UPDATE_ERROR",
|
|
33238
33238
|
payload: {
|
|
33239
33239
|
legendLayers: a,
|
|
@@ -33262,9 +33262,9 @@ const bundle$c = {
|
|
|
33262
33262
|
return k.addEventListener(
|
|
33263
33263
|
"load",
|
|
33264
33264
|
function() {
|
|
33265
|
-
let L = document.createElement("canvas"),
|
|
33266
|
-
const
|
|
33267
|
-
L.width = Number(N.width) +
|
|
33265
|
+
let L = document.createElement("canvas"), M = L.getContext("2d");
|
|
33266
|
+
const G = Number(M.measureText(N.label).width);
|
|
33267
|
+
L.width = Number(N.width) + G + 4, L.height = N.height, E[o].widths.push(L.width), E[o].heights.push(L.height), M.fillStyle = "white", M.fillRect(0, 0, L.width, L.height), M.drawImage(k, 0, 0), M.font = "10px Arial", M.fillStyle = "black", M.fillText(N.label, N.width + 2, N.height / 2), E[o].canvas.push(L), r({
|
|
33268
33268
|
type: "LEGEND_CANVAS_ADDED",
|
|
33269
33269
|
payload: {
|
|
33270
33270
|
legendCanvases: E,
|
|
@@ -33287,20 +33287,20 @@ const bundle$c = {
|
|
|
33287
33287
|
const { uid: o, displayName: d, layerDescription: g, attributions: m } = t;
|
|
33288
33288
|
let y = a.selectLegendLayers(), b = a.selectLegendCanvases();
|
|
33289
33289
|
const E = e.drawingInfo;
|
|
33290
|
-
switch (b[o] = {
|
|
33290
|
+
switch (console.log("[legend] doGenerateEsriImages", d, e.geometryType, E?.renderer?.type, "uniqueValueInfos:", E?.renderer?.uniqueValueInfos?.length), b[o] = {
|
|
33291
33291
|
displayName: d,
|
|
33292
33292
|
layerDescription: g,
|
|
33293
33293
|
attributions: m,
|
|
33294
33294
|
canvas: [],
|
|
33295
33295
|
widths: [],
|
|
33296
33296
|
heights: []
|
|
33297
|
-
}, y[o] = [],
|
|
33297
|
+
}, y[o] = [], e.geometryType) {
|
|
33298
33298
|
case "esriGeometryPolygon":
|
|
33299
33299
|
if (E.renderer.symbol && E.renderer.symbol.type === "esriSFS" && E.renderer.symbol.style === "esriSFSSolid") {
|
|
33300
33300
|
let I = new Image();
|
|
33301
|
-
const x = E.renderer.symbol.
|
|
33301
|
+
const x = E.renderer.symbol.color, S = E.renderer.symbol.outline?.color ?? x;
|
|
33302
33302
|
let T = document.createElement("canvas"), N = T.getContext("2d");
|
|
33303
|
-
T.width = 20, T.height = 20, b[o].widths.push(T.width), b[o].heights.push(T.height), N.beginPath(), N.lineWidth = "2", N.strokeStyle =
|
|
33303
|
+
T.width = 20, T.height = 20, b[o].widths.push(T.width), b[o].heights.push(T.height), N.beginPath(), N.lineWidth = "2", N.strokeStyle = safeRgba(S), N.rect(0, 0, 20, 20), N.stroke(), N.fillStyle = safeRgba(x), N.fillRect(1, 1, 18, 18), I.src = T.toDataURL(), I.alt = `Style for ${d}`, I.crossOrigin = "anonymous", b[o].canvas.push(T), r({
|
|
33304
33304
|
type: "LEGEND_CANVAS_ADDED",
|
|
33305
33305
|
payload: {
|
|
33306
33306
|
legendCanvases: b,
|
|
@@ -33315,10 +33315,9 @@ const bundle$c = {
|
|
|
33315
33315
|
});
|
|
33316
33316
|
} else if (E.renderer.symbol && E.renderer.symbol.type === "esriSFS" && E.renderer.symbol.style === "esriSFSBackwardDiagonal") {
|
|
33317
33317
|
let I = new Image();
|
|
33318
|
-
const x = E.renderer.symbol.outline
|
|
33319
|
-
|
|
33320
|
-
|
|
33321
|
-
S.width = 20, S.height = 20, b[o].widths.push(S.width), b[o].heights.push(S.height), T.beginPath(), T.moveTo(0, 10), T.lineTo(10, 0), T.moveTo(0, 20), T.lineTo(20, 0), T.moveTo(10, 20), T.lineTo(20, 10), T.lineWidth = "2", T.strokeStyle = `rgba(${x.join()})`, T.rect(0, 0, 20, 20), T.stroke(), I.src = S.toDataURL(), I.alt = `Style for ${d}`, I.crossOrigin = "anonymous", b[o].canvas.push(S), r({
|
|
33318
|
+
const x = E.renderer.symbol.color, S = E.renderer.symbol.outline?.color ?? x;
|
|
33319
|
+
let T = document.createElement("canvas"), N = T.getContext("2d");
|
|
33320
|
+
T.width = 20, T.height = 20, b[o].widths.push(T.width), b[o].heights.push(T.height), N.beginPath(), N.moveTo(0, 10), N.lineTo(10, 0), N.moveTo(0, 20), N.lineTo(20, 0), N.moveTo(10, 20), N.lineTo(20, 10), N.lineWidth = "2", N.strokeStyle = safeRgba(S), N.rect(0, 0, 20, 20), N.stroke(), I.src = T.toDataURL(), I.alt = `Style for ${d}`, I.crossOrigin = "anonymous", b[o].canvas.push(T), r({
|
|
33322
33321
|
type: "LEGEND_CANVAS_ADDED",
|
|
33323
33322
|
payload: {
|
|
33324
33323
|
legendCanvases: b,
|
|
@@ -33331,32 +33330,36 @@ const bundle$c = {
|
|
|
33331
33330
|
loading: !1
|
|
33332
33331
|
}
|
|
33333
33332
|
});
|
|
33334
|
-
} else E.renderer.type === "uniqueValue" && E.renderer.uniqueValueInfos
|
|
33335
|
-
|
|
33336
|
-
|
|
33337
|
-
|
|
33338
|
-
|
|
33339
|
-
|
|
33340
|
-
|
|
33341
|
-
|
|
33333
|
+
} else if (E.renderer.type === "uniqueValue" && E.renderer.uniqueValueInfos) {
|
|
33334
|
+
const I = /* @__PURE__ */ new Set();
|
|
33335
|
+
E.renderer.uniqueValueInfos.forEach((x) => {
|
|
33336
|
+
if (!x.label || I.has(x.label)) return;
|
|
33337
|
+
I.add(x.label);
|
|
33338
|
+
let S = new Image();
|
|
33339
|
+
const T = x.symbol.color, N = x.symbol.outline?.color ?? T;
|
|
33340
|
+
let k = document.createElement("canvas"), L = k.getContext("2d");
|
|
33341
|
+
const M = Number(L.measureText(x.label).width);
|
|
33342
|
+
k.width = 20 + M + 4, k.height = 20, b[o].widths.push(k.width), b[o].heights.push(k.height), L.beginPath(), L.lineWidth = "2", L.strokeStyle = safeRgba(N), L.rect(0, 0, 20, 20), L.stroke(), L.fillStyle = safeRgba(T), L.fillRect(1, 1, 18, 18), L.font = "10px Arial", L.fillStyle = "black", L.fillText(x.label, 22, k.height / 2), S.src = k.toDataURL(), S.alt = `Style for ${d}`, S.crossOrigin = "anonymous", b[o].canvas.push(k), r({
|
|
33343
|
+
type: "LEGEND_CANVAS_ADDED",
|
|
33344
|
+
payload: {
|
|
33345
|
+
legendCanvases: b,
|
|
33346
|
+
loading: !1
|
|
33347
|
+
}
|
|
33348
|
+
}), y[o].push(S);
|
|
33349
|
+
}), r({
|
|
33350
|
+
type: "LEGEND_LAYERS_UPDATED",
|
|
33342
33351
|
payload: {
|
|
33343
|
-
|
|
33352
|
+
legendLayers: y,
|
|
33344
33353
|
loading: !1
|
|
33345
33354
|
}
|
|
33346
|
-
})
|
|
33347
|
-
}
|
|
33348
|
-
type: "LEGEND_LAYERS_UPDATED",
|
|
33349
|
-
payload: {
|
|
33350
|
-
legendLayers: y,
|
|
33351
|
-
loading: !1
|
|
33352
|
-
}
|
|
33353
|
-
}));
|
|
33355
|
+
});
|
|
33356
|
+
}
|
|
33354
33357
|
break;
|
|
33355
33358
|
case "esriGeometryPolyline":
|
|
33356
33359
|
if (E.renderer.symbol && E.renderer.symbol.type === "esriSLS" && E.renderer.symbol.style === "esriSLSSolid") {
|
|
33357
33360
|
let I = new Image(), x = document.createElement("canvas"), S = x.getContext("2d");
|
|
33358
33361
|
const T = E.renderer.symbol.color;
|
|
33359
|
-
x.width = 20, x.height = 20, b[o].widths.push(x.width), b[o].heights.push(x.height), S.beginPath(), S.strokeStyle =
|
|
33362
|
+
x.width = 20, x.height = 20, b[o].widths.push(x.width), b[o].heights.push(x.height), S.beginPath(), S.strokeStyle = safeRgba(T), S.moveTo(0, 0), S.lineTo(20, 20), S.stroke(), I.src = x.toDataURL(), I.alt = `Style for ${d}`, I.crossOrigin = "anonymous", b[o].canvas.push(x), r({
|
|
33360
33363
|
type: "LEGEND_CANVAS_ADDED",
|
|
33361
33364
|
payload: {
|
|
33362
33365
|
legendCanvases: b,
|
|
@@ -33369,23 +33372,28 @@ const bundle$c = {
|
|
|
33369
33372
|
loading: !1
|
|
33370
33373
|
}
|
|
33371
33374
|
});
|
|
33372
|
-
} else E.renderer.type === "uniqueValue" && E.renderer.uniqueValueInfos
|
|
33373
|
-
|
|
33374
|
-
|
|
33375
|
-
|
|
33376
|
-
|
|
33375
|
+
} else if (E.renderer.type === "uniqueValue" && E.renderer.uniqueValueInfos) {
|
|
33376
|
+
const I = /* @__PURE__ */ new Set();
|
|
33377
|
+
E.renderer.uniqueValueInfos.forEach((x) => {
|
|
33378
|
+
if (!x.label || I.has(x.label)) return;
|
|
33379
|
+
I.add(x.label);
|
|
33380
|
+
let S = new Image(), T = document.createElement("canvas"), N = T.getContext("2d");
|
|
33381
|
+
const k = Number(N.measureText(x.label).width), L = x.symbol.color;
|
|
33382
|
+
T.width = 20 + k + 4, T.height = 20, b[o].widths.push(T.width), b[o].heights.push(T.height), N.beginPath(), N.strokeStyle = safeRgba(L), N.moveTo(0, 0), N.lineTo(20, 20), N.stroke(), N.font = "10px Arial", N.fillStyle = "black", N.fillText(x.label, 22, T.height / 2), S.src = T.toDataURL(), S.alt = `Style for ${d}`, S.crossOrigin = "anonymous", b[o].canvas.push(T), r({
|
|
33383
|
+
type: "LEGEND_CANVAS_ADDED",
|
|
33384
|
+
payload: {
|
|
33385
|
+
legendCanvases: b,
|
|
33386
|
+
loading: !1
|
|
33387
|
+
}
|
|
33388
|
+
}), y[o].push(S);
|
|
33389
|
+
}), r({
|
|
33390
|
+
type: "LEGEND_LAYERS_UPDATED",
|
|
33377
33391
|
payload: {
|
|
33378
|
-
|
|
33392
|
+
legendLayers: y,
|
|
33379
33393
|
loading: !1
|
|
33380
33394
|
}
|
|
33381
|
-
})
|
|
33382
|
-
}
|
|
33383
|
-
type: "LEGEND_LAYERS_UPDATED",
|
|
33384
|
-
payload: {
|
|
33385
|
-
legendLayers: y,
|
|
33386
|
-
loading: !1
|
|
33387
|
-
}
|
|
33388
|
-
}));
|
|
33395
|
+
});
|
|
33396
|
+
}
|
|
33389
33397
|
break;
|
|
33390
33398
|
case "esriGeometryPoint":
|
|
33391
33399
|
if (E.renderer.symbol && E.renderer.symbol.type === "esriPMS") {
|
|
@@ -33412,9 +33420,9 @@ const bundle$c = {
|
|
|
33412
33420
|
});
|
|
33413
33421
|
} else if (E.renderer.symbol && E.renderer.symbol.type === "esriSMS") {
|
|
33414
33422
|
let I = new Image();
|
|
33415
|
-
const x = E.renderer.symbol.
|
|
33423
|
+
const x = E.renderer.symbol.color, S = E.renderer.symbol.outline?.color ?? x, T = E.renderer.symbol.outline?.width ?? 1, N = E.renderer.symbol.size;
|
|
33416
33424
|
let k = document.createElement("canvas"), L = k.getContext("2d");
|
|
33417
|
-
k.width = 20, k.height = 20, b[o].widths.push(k.width), b[o].heights.push(k.height), L.beginPath(), L.strokeStyle =
|
|
33425
|
+
k.width = 20, k.height = 20, b[o].widths.push(k.width), b[o].heights.push(k.height), L.beginPath(), L.strokeStyle = safeRgba(S), L.lineWidth = T, L.arc(N, N, N / 1.5, 0, Math.PI * 2), L.fillStyle = safeRgba(x), L.fill(), L.stroke(), I.src = k.toDataURL(), I.alt = `Style for ${d}`, I.crossOrigin = "anonymous", b[o].canvas.push(k), r({
|
|
33418
33426
|
type: "LEGEND_CANVAS_ADDED",
|
|
33419
33427
|
payload: {
|
|
33420
33428
|
legendCanvases: b,
|
|
@@ -33429,12 +33437,16 @@ const bundle$c = {
|
|
|
33429
33437
|
});
|
|
33430
33438
|
} else if (E.renderer.uniqueValueInfos) {
|
|
33431
33439
|
let I = [];
|
|
33432
|
-
E.renderer.uniqueValueInfos.forEach((x) => {
|
|
33433
|
-
let S = x.label, T = new Image();
|
|
33434
|
-
T.src = `data:image/png;base64,${x.symbol.imageData}`;
|
|
33435
|
-
let N = document.createElement("canvas"), k = N.getContext("2d");
|
|
33440
|
+
console.log("[legend] esriGeometryPoint uniqueValueInfos count:", E.renderer.uniqueValueInfos.length), E.renderer.uniqueValueInfos.forEach((x) => {
|
|
33441
|
+
let S = x.label, T = new Image(), N = document.createElement("canvas"), k = N.getContext("2d");
|
|
33436
33442
|
const L = Number(k.measureText(S).width);
|
|
33437
|
-
|
|
33443
|
+
if (console.log("[legend] processing val:", S, "symbol type:", x.symbol.type), x.symbol.type === "esriPMS")
|
|
33444
|
+
T.src = `data:image/png;base64,${x.symbol.imageData}`, N.width = Number(x.symbol.width) + L + 4, N.height = x.symbol.height, k.fillStyle = "white", k.fillRect(0, 0, N.width, N.height), k.drawImage(T, 0, 0);
|
|
33445
|
+
else if (x.symbol.type === "esriSMS") {
|
|
33446
|
+
const M = x.symbol.size || 10;
|
|
33447
|
+
N.width = M * 2, N.height = M * 2, k.fillStyle = safeRgba(x.symbol.color), k.beginPath(), k.arc(M, M, M / 1.5, 0, Math.PI * 2), k.fill(), x.symbol.outline && (k.strokeStyle = safeRgba(x.symbol.outline.color), k.lineWidth = x.symbol.outline.width, k.stroke()), T.src = N.toDataURL(), console.log("[legend] esriSMS canvas size:", N.width, "x", N.height, "src length:", T.src.length);
|
|
33448
|
+
}
|
|
33449
|
+
T.alt = `Style for ${S}`, T.crossOrigin = "anonymous", T.title = S, I.push({
|
|
33438
33450
|
canvas: N,
|
|
33439
33451
|
image: T
|
|
33440
33452
|
});
|
|
@@ -33446,12 +33458,18 @@ const bundle$c = {
|
|
|
33446
33458
|
loading: !1
|
|
33447
33459
|
}
|
|
33448
33460
|
});
|
|
33461
|
+
}), console.log("[legend] dispatching LEGEND_LAYERS_UPDATED, legendLayers[uid] count:", y[o]?.length, "img srcs:", y[o]?.map((x) => x.src?.substring(0, 30))), r({
|
|
33462
|
+
type: "LEGEND_LAYERS_UPDATED",
|
|
33463
|
+
payload: {
|
|
33464
|
+
legendLayers: y,
|
|
33465
|
+
loading: !1
|
|
33466
|
+
}
|
|
33449
33467
|
});
|
|
33450
33468
|
} else E.renderer.classBreakInfos ? E.renderer.classBreakInfos.forEach((I) => {
|
|
33451
33469
|
let x = new Image();
|
|
33452
|
-
const S = I.symbol.
|
|
33453
|
-
let L = document.createElement("canvas"),
|
|
33454
|
-
L.width = 20 * 2.5, L.height = 20, b[o].widths.push(L.width), b[o].heights.push(L.height),
|
|
33470
|
+
const S = I.symbol.color, T = I.symbol.outline?.color ?? S, N = I.symbol.outline?.width ?? 1, k = I.symbol.size;
|
|
33471
|
+
let L = document.createElement("canvas"), M = L.getContext("2d");
|
|
33472
|
+
L.width = 20 * 2.5, L.height = 20, b[o].widths.push(L.width), b[o].heights.push(L.height), M.font = "11px Arial", M.fillText(I.label, k * 3, k * 2, 30), M.beginPath(), M.strokeStyle = safeRgba(T), M.lineWidth = N, M.arc(k, k * 1.5, k / 1.5, 0, Math.PI * 2), M.fillStyle = safeRgba(S), M.fill(), M.stroke(), x.src = L.toDataURL(), x.alt = `Style for ${d}`, x.crossOrigin = "anonymous", b[o].canvas.push(L), r({
|
|
33455
33473
|
type: "LEGEND_CANVAS_ADDED",
|
|
33456
33474
|
payload: {
|
|
33457
33475
|
legendCanvases: b,
|
|
@@ -35861,15 +35879,15 @@ const treeViewDownload = {
|
|
|
35861
35879
|
if (T.properties)
|
|
35862
35880
|
for (const [N, k] of Object.entries(T.properties)) {
|
|
35863
35881
|
let L = {};
|
|
35864
|
-
a[0].identifyFields.forEach((
|
|
35865
|
-
T.properties[
|
|
35882
|
+
a[0].identifyFields.forEach((M) => {
|
|
35883
|
+
T.properties[M] && (L[M] = T.properties[M]);
|
|
35866
35884
|
}), T.properties = L;
|
|
35867
35885
|
}
|
|
35868
35886
|
}), a[0].identifyRenameColums && I.forEach((T) => {
|
|
35869
35887
|
if (T.properties)
|
|
35870
35888
|
for (const [N, k] of Object.entries(T.properties))
|
|
35871
|
-
for (const [L,
|
|
35872
|
-
N === L && (T.properties[
|
|
35889
|
+
for (const [L, M] of Object.entries(a[0].identifyRenameColums))
|
|
35890
|
+
N === L && (T.properties[M] = T.properties[N], delete T.properties[N]);
|
|
35873
35891
|
}), m.push({
|
|
35874
35892
|
dataset: b.uid,
|
|
35875
35893
|
layerName: b.displayName,
|