@vcmap/ui 6.2.0 → 6.2.2
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/build/postInstall.js +1 -1
- package/dist/assets/{cesium-4e58d2c7.js → cesium-b021f072.js} +1513 -1313
- package/dist/assets/cesium.js +1 -1
- package/dist/assets/{core-8997fca8.js → core-4cd2e30d.js} +2676 -2663
- package/dist/assets/core-workers/panoramaImageWorker.js +1 -1
- package/dist/assets/core.js +1 -1
- package/dist/assets/{ol-e7017bf9.js → ol-c927b883.js} +1 -1
- package/dist/assets/ol.js +1 -1
- package/dist/assets/ui-b13e28a1.css +1 -0
- package/dist/assets/{ui-f99d019b.js → ui-b13e28a1.js} +5542 -5402
- package/dist/assets/ui.js +1 -1
- package/dist/assets/vue.js +1 -1
- package/dist/assets/{vuetify-bfd8e6ac.js → vuetify-a1930526.js} +1 -1
- package/dist/assets/vuetify.js +1 -1
- package/index.d.ts +1 -1
- package/index.js +1 -0
- package/package.json +4 -3
- package/plugins/@vcmap-show-case/category-tester/src/CollectionComponentOptions.vue +41 -2
- package/plugins/@vcmap-show-case/category-tester/src/index.js +2 -0
- package/plugins/package.json +1 -1
- package/src/application/VcsSplashScreen.vue +9 -1
- package/src/components/lists/VcsTreeNode.vue +2 -1
- package/src/components/lists/VcsTreeNode.vue.d.ts +4 -0
- package/src/contentTree/LayerSwap.vue +9 -0
- package/src/contentTree/LayerSwap.vue.d.ts +14 -0
- package/src/featureInfo/balloonFeatureInfoView.d.ts +15 -2
- package/src/featureInfo/balloonFeatureInfoView.js +8 -103
- package/src/featureInfo/balloonHelper.d.ts +13 -0
- package/src/featureInfo/balloonHelper.js +77 -0
- package/src/featureInfo/featureInfo.d.ts +2 -1
- package/src/featureInfo/featureInfo.js +11 -3
- package/src/featureInfo/featureInfoInteraction.js +4 -1
- package/src/featureInfo/iframeWmsFeatureInfoView.js +12 -2
- package/src/i18n/de.d.ts +3 -0
- package/src/i18n/de.js +3 -0
- package/src/i18n/en.d.ts +3 -0
- package/src/i18n/en.js +3 -0
- package/src/legend/legendHelper.js +5 -0
- package/src/manager/collectionManager/CollectionComponentContent.vue +67 -3
- package/src/manager/collectionManager/CollectionComponentContent.vue.d.ts +3 -0
- package/src/manager/collectionManager/collectionComponentClass.d.ts +44 -1
- package/src/manager/collectionManager/collectionComponentClass.js +152 -2
- package/src/manager/panel/PanelComponent.vue +9 -1
- package/src/state.js +19 -6
- package/dist/assets/ui-f99d019b.css +0 -1
- /package/dist/assets/core-workers/{panoramaImageWorker.js-0010ea67.js → panoramaImageWorker.js-90c60e81.js} +0 -0
- /package/dist/assets/{vue-7499093d.js → vue-6a295c0b.js} +0 -0
- /package/dist/assets/{vuetify-bfd8e6ac.css → vuetify-a1930526.css} +0 -0
|
@@ -1416,8 +1416,8 @@ Matrix4.getRotation = function(e, t) {
|
|
|
1416
1416
|
return t[0] = e[0] / n.x, t[1] = e[1] / n.x, t[2] = e[2] / n.x, t[3] = e[4] / n.y, t[4] = e[5] / n.y, t[5] = e[6] / n.y, t[6] = e[8] / n.z, t[7] = e[9] / n.z, t[8] = e[10] / n.z, t;
|
|
1417
1417
|
};
|
|
1418
1418
|
Matrix4.multiply = function(e, t, n) {
|
|
1419
|
-
const i = e[0], r = e[1], o = e[2], s = e[3], c = e[4], l = e[5], d = e[6], f = e[7], h = e[8], p = e[9], m = e[10], _ = e[11], y = e[12], C = e[13], T = e[14], x = e[15], b = t[0], S = t[1], E = t[2], A = t[3], D = t[4], P = t[5], I = t[6], M = t[7], R = t[8], L = t[9], g = t[10], w = t[11], O = t[12], N = t[13], F = t[14], B = t[15], V = i * b + c * S + h * E + y * A, U = r * b + l * S + p * E + C * A, k = o * b + d * S + m * E + T * A, $ = s * b + f * S + _ * E + x * A, G = i * D + c * P + h * I + y * M, q = r * D + l * P + p * I + C * M, z = o * D + d * P + m * I + T * M, H = s * D + f * P + _ * I + x * M,
|
|
1420
|
-
return n[0] = V, n[1] = U, n[2] = k, n[3] = $, n[4] = G, n[5] = q, n[6] = z, n[7] = H, n[8] =
|
|
1419
|
+
const i = e[0], r = e[1], o = e[2], s = e[3], c = e[4], l = e[5], d = e[6], f = e[7], h = e[8], p = e[9], m = e[10], _ = e[11], y = e[12], C = e[13], T = e[14], x = e[15], b = t[0], S = t[1], E = t[2], A = t[3], D = t[4], P = t[5], I = t[6], M = t[7], R = t[8], L = t[9], g = t[10], w = t[11], O = t[12], N = t[13], F = t[14], B = t[15], V = i * b + c * S + h * E + y * A, U = r * b + l * S + p * E + C * A, k = o * b + d * S + m * E + T * A, $ = s * b + f * S + _ * E + x * A, G = i * D + c * P + h * I + y * M, q = r * D + l * P + p * I + C * M, z = o * D + d * P + m * I + T * M, H = s * D + f * P + _ * I + x * M, K = i * R + c * L + h * g + y * w, X = r * R + l * L + p * g + C * w, J = o * R + d * L + m * g + T * w, ee = s * R + f * L + _ * g + x * w, te = i * O + c * N + h * F + y * B, oe = r * O + l * N + p * F + C * B, Q = o * O + d * N + m * F + T * B, he = s * O + f * N + _ * F + x * B;
|
|
1420
|
+
return n[0] = V, n[1] = U, n[2] = k, n[3] = $, n[4] = G, n[5] = q, n[6] = z, n[7] = H, n[8] = K, n[9] = X, n[10] = J, n[11] = ee, n[12] = te, n[13] = oe, n[14] = Q, n[15] = he, n;
|
|
1421
1421
|
};
|
|
1422
1422
|
Matrix4.add = function(e, t, n) {
|
|
1423
1423
|
return n[0] = e[0] + t[0], n[1] = e[1] + t[1], n[2] = e[2] + t[2], n[3] = e[3] + t[3], n[4] = e[4] + t[4], n[5] = e[5] + t[5], n[6] = e[6] + t[6], n[7] = e[7] + t[7], n[8] = e[8] + t[8], n[9] = e[9] + t[9], n[10] = e[10] + t[10], n[11] = e[11] + t[11], n[12] = e[12] + t[12], n[13] = e[13] + t[13], n[14] = e[14] + t[14], n[15] = e[15] + t[15], n;
|
|
@@ -1490,9 +1490,9 @@ Matrix4.inverse = function(e, t) {
|
|
|
1490
1490
|
let x = p * T, b = m * C, S = h * T, E = m * y, A = h * C, D = p * y, P = f * T, I = m * _, M = f * C, R = p * _, L = f * y, g = h * _;
|
|
1491
1491
|
const w = x * c + E * l + A * d - (b * c + S * l + D * d), O = b * s + P * l + R * d - (x * s + I * l + M * d), N = S * s + I * c + L * d - (E * s + P * c + g * d), F = D * s + M * c + g * l - (A * s + R * c + L * l), B = b * i + S * r + D * o - (x * i + E * r + A * o), V = x * n + I * r + M * o - (b * n + P * r + R * o), U = E * n + P * i + g * o - (S * n + I * i + L * o), k = A * n + R * i + L * r - (D * n + M * i + g * r);
|
|
1492
1492
|
x = r * d, b = o * l, S = i * d, E = o * c, A = i * l, D = r * c, P = n * d, I = o * s, M = n * l, R = r * s, L = n * c, g = i * s;
|
|
1493
|
-
const $ = x * y + E * C + A * T - (b * y + S * C + D * T), G = b * _ + P * C + R * T - (x * _ + I * C + M * T), q = S * _ + I * y + L * T - (E * _ + P * y + g * T), z = D * _ + M * y + g * C - (A * _ + R * y + L * C), H = S * p + D * m + b * h - (A * m + x * h + E * p),
|
|
1494
|
-
let
|
|
1495
|
-
if (Math.abs(
|
|
1493
|
+
const $ = x * y + E * C + A * T - (b * y + S * C + D * T), G = b * _ + P * C + R * T - (x * _ + I * C + M * T), q = S * _ + I * y + L * T - (E * _ + P * y + g * T), z = D * _ + M * y + g * C - (A * _ + R * y + L * C), H = S * p + D * m + b * h - (A * m + x * h + E * p), K = M * m + x * f + I * p - (P * p + R * m + b * f), X = P * h + g * m + E * f - (L * m + S * f + I * h), J = L * p + A * f + R * h - (M * h + g * p + D * f);
|
|
1494
|
+
let ee = n * w + i * O + r * N + o * F;
|
|
1495
|
+
if (Math.abs(ee) < CesiumMath.EPSILON21) {
|
|
1496
1496
|
if (Matrix3.equalsEpsilon(
|
|
1497
1497
|
Matrix4.getMatrix3(e, scratchInverseRotation),
|
|
1498
1498
|
scratchMatrix3Zero,
|
|
@@ -1506,7 +1506,7 @@ Matrix4.inverse = function(e, t) {
|
|
|
1506
1506
|
"matrix is not invertible because its determinate is zero."
|
|
1507
1507
|
);
|
|
1508
1508
|
}
|
|
1509
|
-
return
|
|
1509
|
+
return ee = 1 / ee, t[0] = w * ee, t[1] = O * ee, t[2] = N * ee, t[3] = F * ee, t[4] = B * ee, t[5] = V * ee, t[6] = U * ee, t[7] = k * ee, t[8] = $ * ee, t[9] = G * ee, t[10] = q * ee, t[11] = z * ee, t[12] = H * ee, t[13] = K * ee, t[14] = X * ee, t[15] = J * ee, t;
|
|
1510
1510
|
};
|
|
1511
1511
|
Matrix4.inverseTransformation = function(e, t) {
|
|
1512
1512
|
const n = e[0], i = e[1], r = e[2], o = e[4], s = e[5], c = e[6], l = e[8], d = e[9], f = e[10], h = e[12], p = e[13], m = e[14], _ = -n * h - i * p - r * m, y = -o * h - s * p - c * m, C = -l * h - d * p - f * m;
|
|
@@ -5829,30 +5829,30 @@ function requirePunycode() {
|
|
|
5829
5829
|
return E(G + (S + 1) * U / (U + h));
|
|
5830
5830
|
}
|
|
5831
5831
|
function N(U) {
|
|
5832
|
-
var k = [], $ = U.length, G, q = 0, z = _, H = m,
|
|
5833
|
-
for (
|
|
5834
|
-
U.charCodeAt(
|
|
5835
|
-
for (
|
|
5836
|
-
for (
|
|
5837
|
-
|
|
5838
|
-
G = k.length + 1, H = O(q -
|
|
5832
|
+
var k = [], $ = U.length, G, q = 0, z = _, H = m, K, X, J, ee, te, oe, Q, he, ue;
|
|
5833
|
+
for (K = U.lastIndexOf(y), K < 0 && (K = 0), X = 0; X < K; ++X)
|
|
5834
|
+
U.charCodeAt(X) >= 128 && P("not-basic"), k.push(U.charCodeAt(X));
|
|
5835
|
+
for (J = K > 0 ? K + 1 : 0; J < $; ) {
|
|
5836
|
+
for (ee = q, te = 1, oe = l; J >= $ && P("invalid-input"), Q = g(U.charCodeAt(J++)), (Q >= l || Q > E((c - q) / te)) && P("overflow"), q += Q * te, he = oe <= H ? d : oe >= H + f ? f : oe - H, !(Q < he); oe += l)
|
|
5837
|
+
ue = l - he, te > E(c / ue) && P("overflow"), te *= ue;
|
|
5838
|
+
G = k.length + 1, H = O(q - ee, G, ee == 0), E(q / G) > c - z && P("overflow"), z += E(q / G), q %= G, k.splice(q++, 0, z);
|
|
5839
5839
|
}
|
|
5840
5840
|
return L(k);
|
|
5841
5841
|
}
|
|
5842
5842
|
function F(U) {
|
|
5843
|
-
var k, $, G, q, z, H,
|
|
5844
|
-
for (U = R(U),
|
|
5845
|
-
|
|
5846
|
-
for (G = q = oe.length, q && oe.push(y); G <
|
|
5847
|
-
for (
|
|
5848
|
-
|
|
5849
|
-
for (he = G + 1,
|
|
5850
|
-
if (
|
|
5851
|
-
for (
|
|
5852
|
-
|
|
5853
|
-
A(w(
|
|
5854
|
-
),
|
|
5855
|
-
oe.push(A(w(
|
|
5843
|
+
var k, $, G, q, z, H, K, X, J, ee, te, oe = [], Q, he, ue, se;
|
|
5844
|
+
for (U = R(U), Q = U.length, k = _, $ = 0, z = m, H = 0; H < Q; ++H)
|
|
5845
|
+
te = U[H], te < 128 && oe.push(A(te));
|
|
5846
|
+
for (G = q = oe.length, q && oe.push(y); G < Q; ) {
|
|
5847
|
+
for (K = c, H = 0; H < Q; ++H)
|
|
5848
|
+
te = U[H], te >= k && te < K && (K = te);
|
|
5849
|
+
for (he = G + 1, K - k > E((c - $) / he) && P("overflow"), $ += (K - k) * he, k = K, H = 0; H < Q; ++H)
|
|
5850
|
+
if (te = U[H], te < k && ++$ > c && P("overflow"), te == k) {
|
|
5851
|
+
for (X = $, J = l; ee = J <= z ? d : J >= z + f ? f : J - z, !(X < ee); J += l)
|
|
5852
|
+
se = X - ee, ue = l - ee, oe.push(
|
|
5853
|
+
A(w(ee + se % ue, 0))
|
|
5854
|
+
), X = E(se / ue);
|
|
5855
|
+
oe.push(A(w(X, 0))), z = O($, he, G == q), $ = 0, ++G;
|
|
5856
5856
|
}
|
|
5857
5857
|
++$, ++k;
|
|
5858
5858
|
}
|
|
@@ -6617,20 +6617,20 @@ function requireSecondLevelDomains() {
|
|
|
6617
6617
|
continue;
|
|
6618
6618
|
}
|
|
6619
6619
|
for (var q = $ + g.slice($).search(F), z = g.slice($, q), H = -1; ; ) {
|
|
6620
|
-
var
|
|
6621
|
-
if (!
|
|
6620
|
+
var K = V.exec(z);
|
|
6621
|
+
if (!K)
|
|
6622
6622
|
break;
|
|
6623
|
-
var
|
|
6624
|
-
H = Math.max(H,
|
|
6623
|
+
var X = K.index + K[0].length;
|
|
6624
|
+
H = Math.max(H, X);
|
|
6625
6625
|
}
|
|
6626
6626
|
if (H > -1 ? z = z.slice(0, H) + z.slice(H).replace(B, "") : z = z.replace(B, ""), !(z.length <= k[0].length) && !(O.ignore && O.ignore.test(z))) {
|
|
6627
6627
|
q = $ + z.length;
|
|
6628
|
-
var
|
|
6629
|
-
if (
|
|
6628
|
+
var J = w(z, $, q, g);
|
|
6629
|
+
if (J === void 0) {
|
|
6630
6630
|
N.lastIndex = q;
|
|
6631
6631
|
continue;
|
|
6632
6632
|
}
|
|
6633
|
-
|
|
6633
|
+
J = String(J), g = g.slice(0, $) + J + g.slice(q), N.lastIndex = $ + J.length;
|
|
6634
6634
|
}
|
|
6635
6635
|
}
|
|
6636
6636
|
return N.lastIndex = 0, g;
|
|
@@ -26102,8 +26102,8 @@ function computeRealRoots(e, t, n, i) {
|
|
|
26102
26102
|
f * d >= l * h ? (k = r, $ = p, G = -2 * o * p + r * m) : (k = c, $ = _, G = -c * m + 2 * s * _);
|
|
26103
26103
|
const z = -(G < 0 ? -1 : 1) * Math.abs(k) * Math.sqrt(-y);
|
|
26104
26104
|
T = -G + z;
|
|
26105
|
-
const H = T / 2,
|
|
26106
|
-
return C = $ <= 0 ?
|
|
26105
|
+
const H = T / 2, K = H < 0 ? -Math.pow(-H, 1 / 3) : Math.pow(H, 1 / 3), X = T === z ? -K : -$ / K;
|
|
26106
|
+
return C = $ <= 0 ? K + X : -G / (K * K + X * X + $), f * d >= l * h ? [(C - o) / r] : [-c / (C + s)];
|
|
26107
26107
|
}
|
|
26108
26108
|
const x = p, b = -2 * o * p + r * m, S = _, E = -c * m + 2 * s * _, A = Math.sqrt(y), D = Math.sqrt(3) / 2;
|
|
26109
26109
|
let P = Math.abs(Math.atan2(r * A, -b) / 3);
|
|
@@ -33681,26 +33681,26 @@ function generateGeometryAttributes(e, t, n, i, r, o, s) {
|
|
|
33681
33681
|
segmentEndNormalScratch
|
|
33682
33682
|
);
|
|
33683
33683
|
if (e) {
|
|
33684
|
-
const
|
|
33684
|
+
const Q = Cartesian3.unpack(
|
|
33685
33685
|
n,
|
|
33686
33686
|
n.length - 6,
|
|
33687
33687
|
segmentStartBottomScratch
|
|
33688
33688
|
);
|
|
33689
|
-
breakMiter(z,
|
|
33689
|
+
breakMiter(z, Q, G, q) && (z = Cartesian3.negate(
|
|
33690
33690
|
z,
|
|
33691
33691
|
z
|
|
33692
33692
|
));
|
|
33693
33693
|
}
|
|
33694
|
-
let H = 0,
|
|
33694
|
+
let H = 0, K = 0, X = 0;
|
|
33695
33695
|
for (c = 0; c < f; c++) {
|
|
33696
|
-
const
|
|
33697
|
-
let
|
|
33696
|
+
const Q = Cartesian3.clone(G, segmentStartBottomScratch), he = Cartesian3.clone(q, segmentStartTopScratch);
|
|
33697
|
+
let ue = Cartesian3.clone(
|
|
33698
33698
|
z,
|
|
33699
33699
|
segmentStartNormalScratch
|
|
33700
33700
|
);
|
|
33701
|
-
$ && (
|
|
33702
|
-
|
|
33703
|
-
|
|
33701
|
+
$ && (ue = Cartesian3.negate(
|
|
33702
|
+
ue,
|
|
33703
|
+
ue
|
|
33704
33704
|
)), G = Cartesian3.unpack(
|
|
33705
33705
|
n,
|
|
33706
33706
|
l,
|
|
@@ -33709,17 +33709,17 @@ function generateGeometryAttributes(e, t, n, i, r, o, s) {
|
|
|
33709
33709
|
r,
|
|
33710
33710
|
l,
|
|
33711
33711
|
segmentEndNormalScratch
|
|
33712
|
-
), $ = breakMiter(z,
|
|
33713
|
-
let
|
|
33712
|
+
), $ = breakMiter(z, Q, G, q), R.latitude = o[B], R.longitude = o[B + 1], L.latitude = o[B + 2], L.longitude = o[B + 3];
|
|
33713
|
+
let se, _e, me, re;
|
|
33714
33714
|
if (s) {
|
|
33715
|
-
const
|
|
33716
|
-
|
|
33717
|
-
const $e = direction(_e,
|
|
33718
|
-
$e.y = Math.abs($e.y),
|
|
33715
|
+
const Ae = nudgeCartographic(R, L);
|
|
33716
|
+
se = t.project(R, segmentStart2DScratch), _e = t.project(L, segmentEnd2DScratch);
|
|
33717
|
+
const $e = direction(_e, se, forwardOffset2DScratch);
|
|
33718
|
+
$e.y = Math.abs($e.y), me = segmentStartNormal2DScratch, re = segmentEndNormal2DScratch, Ae === 0 || Cartesian3.dot($e, Cartesian3.UNIT_Y) > MITER_BREAK_SMALL ? (me = projectNormal(
|
|
33719
33719
|
t,
|
|
33720
33720
|
R,
|
|
33721
|
-
|
|
33722
|
-
|
|
33721
|
+
ue,
|
|
33722
|
+
se,
|
|
33723
33723
|
segmentStartNormal2DScratch
|
|
33724
33724
|
), re = projectNormal(
|
|
33725
33725
|
t,
|
|
@@ -33727,152 +33727,152 @@ function generateGeometryAttributes(e, t, n, i, r, o, s) {
|
|
|
33727
33727
|
z,
|
|
33728
33728
|
_e,
|
|
33729
33729
|
segmentEndNormal2DScratch
|
|
33730
|
-
)) :
|
|
33730
|
+
)) : Ae === 1 ? (re = projectNormal(
|
|
33731
33731
|
t,
|
|
33732
33732
|
L,
|
|
33733
33733
|
z,
|
|
33734
33734
|
_e,
|
|
33735
33735
|
segmentEndNormal2DScratch
|
|
33736
|
-
),
|
|
33736
|
+
), me.x = 0, me.y = CesiumMath.sign(
|
|
33737
33737
|
R.longitude - Math.abs(L.longitude)
|
|
33738
|
-
),
|
|
33738
|
+
), me.z = 0) : (me = projectNormal(
|
|
33739
33739
|
t,
|
|
33740
33740
|
R,
|
|
33741
|
-
|
|
33742
|
-
|
|
33741
|
+
ue,
|
|
33742
|
+
se,
|
|
33743
33743
|
segmentStartNormal2DScratch
|
|
33744
33744
|
), re.x = 0, re.y = CesiumMath.sign(
|
|
33745
33745
|
R.longitude - L.longitude
|
|
33746
33746
|
), re.z = 0);
|
|
33747
33747
|
}
|
|
33748
|
-
const
|
|
33749
|
-
|
|
33748
|
+
const xe = Cartesian3.distance(he, q), pe = EncodedCartesian3.fromCartesian(
|
|
33749
|
+
Q,
|
|
33750
33750
|
encodeScratch
|
|
33751
|
-
),
|
|
33751
|
+
), Ce = Cartesian3.subtract(
|
|
33752
33752
|
G,
|
|
33753
|
-
|
|
33753
|
+
Q,
|
|
33754
33754
|
offsetScratch$a
|
|
33755
|
-
),
|
|
33756
|
-
let W = Cartesian3.subtract(he,
|
|
33755
|
+
), be = Cartesian3.normalize(Ce, rightScratch);
|
|
33756
|
+
let W = Cartesian3.subtract(he, Q, startUpScratch);
|
|
33757
33757
|
W = Cartesian3.normalize(W, W);
|
|
33758
|
-
let j = Cartesian3.cross(
|
|
33758
|
+
let j = Cartesian3.cross(be, W, rightScratch);
|
|
33759
33759
|
j = Cartesian3.normalize(j, j);
|
|
33760
|
-
let
|
|
33760
|
+
let ce = Cartesian3.cross(
|
|
33761
33761
|
W,
|
|
33762
|
-
|
|
33762
|
+
ue,
|
|
33763
33763
|
startPlaneNormalScratch
|
|
33764
33764
|
);
|
|
33765
|
-
|
|
33766
|
-
let
|
|
33767
|
-
|
|
33765
|
+
ce = Cartesian3.normalize(ce, ce);
|
|
33766
|
+
let Ee = Cartesian3.subtract(q, G, endUpScratch);
|
|
33767
|
+
Ee = Cartesian3.normalize(Ee, Ee);
|
|
33768
33768
|
let le = Cartesian3.cross(
|
|
33769
33769
|
z,
|
|
33770
|
-
|
|
33770
|
+
Ee,
|
|
33771
33771
|
endPlaneNormalScratch
|
|
33772
33772
|
);
|
|
33773
33773
|
le = Cartesian3.normalize(le, le);
|
|
33774
|
-
const De =
|
|
33775
|
-
let Ge = 0, Le, Ue,
|
|
33774
|
+
const De = xe / N, Re = H / N;
|
|
33775
|
+
let Ge = 0, Le, Ue, Z, ae = 0, ne = 0;
|
|
33776
33776
|
if (s) {
|
|
33777
|
-
Ge = Cartesian3.distance(
|
|
33778
|
-
|
|
33777
|
+
Ge = Cartesian3.distance(se, _e), Le = EncodedCartesian3.fromCartesian(
|
|
33778
|
+
se,
|
|
33779
33779
|
encodeScratch2D
|
|
33780
33780
|
), Ue = Cartesian3.subtract(
|
|
33781
33781
|
_e,
|
|
33782
|
-
|
|
33782
|
+
se,
|
|
33783
33783
|
forwardOffset2DScratch
|
|
33784
|
-
),
|
|
33785
|
-
const
|
|
33786
|
-
|
|
33784
|
+
), Z = Cartesian3.normalize(Ue, right2DScratch);
|
|
33785
|
+
const Ae = Z.x;
|
|
33786
|
+
Z.x = Z.y, Z.y = -Ae, ae = Ge / M, ne = K / M;
|
|
33787
33787
|
}
|
|
33788
33788
|
for (F = 0; F < 8; F++) {
|
|
33789
|
-
const
|
|
33790
|
-
Cartesian3.pack(pe.high, C,
|
|
33791
|
-
|
|
33789
|
+
const Ae = k + F * 4, $e = V + F * 2, Fe = Ae + 3, Ke = F < 4 ? 1 : -1, ve = F === 2 || F === 3 || F === 6 || F === 7 ? 1 : -1;
|
|
33790
|
+
Cartesian3.pack(pe.high, C, Ae), C[Fe] = Ce.x, Cartesian3.pack(pe.low, T, Ae), T[Fe] = Ce.y, Cartesian3.pack(
|
|
33791
|
+
ce,
|
|
33792
33792
|
x,
|
|
33793
|
-
|
|
33794
|
-
), x[Fe] =
|
|
33793
|
+
Ae
|
|
33794
|
+
), x[Fe] = Ce.z, Cartesian3.pack(
|
|
33795
33795
|
le,
|
|
33796
33796
|
b,
|
|
33797
|
-
|
|
33797
|
+
Ae
|
|
33798
33798
|
), b[Fe] = De * Ke, Cartesian3.pack(
|
|
33799
33799
|
j,
|
|
33800
33800
|
S,
|
|
33801
|
-
|
|
33801
|
+
Ae
|
|
33802
33802
|
);
|
|
33803
33803
|
let Ne = Re * ve;
|
|
33804
|
-
Ne === 0 && ve < 0 && (Ne = 9), S[Fe] = Ne, s && (E[
|
|
33804
|
+
Ne === 0 && ve < 0 && (Ne = 9), S[Fe] = Ne, s && (E[Ae] = Le.high.x, E[Ae + 1] = Le.high.y, E[Ae + 2] = Le.low.x, E[Ae + 3] = Le.low.y, D[Ae] = -me.y, D[Ae + 1] = me.x, D[Ae + 2] = re.y, D[Ae + 3] = -re.x, A[Ae] = Ue.x, A[Ae + 1] = Ue.y, A[Ae + 2] = Z.x, A[Ae + 3] = Z.y, P[$e] = ae * Ke, Ne = ne * ve, Ne === 0 && ve < 0 && (Ne = 9), P[$e + 1] = Ne);
|
|
33805
33805
|
}
|
|
33806
|
-
const ie = adjustHeightStartBottomScratch,
|
|
33806
|
+
const ie = adjustHeightStartBottomScratch, de = adjustHeightEndBottomScratch, ge = adjustHeightStartTopScratch, Se = adjustHeightEndTopScratch, Ie = Rectangle.fromCartographicArray(
|
|
33807
33807
|
getHeightCartographics,
|
|
33808
33808
|
getHeightRectangleScratch
|
|
33809
33809
|
), we = ApproximateTerrainHeights.getMinimumMaximumHeights(
|
|
33810
33810
|
Ie,
|
|
33811
33811
|
d
|
|
33812
33812
|
), He = we.minimumTerrainHeight, We = we.maximumTerrainHeight;
|
|
33813
|
-
|
|
33814
|
-
|
|
33813
|
+
X += Math.abs(He), X += Math.abs(We), adjustHeights(
|
|
33814
|
+
Q,
|
|
33815
33815
|
he,
|
|
33816
33816
|
He,
|
|
33817
33817
|
We,
|
|
33818
33818
|
ie,
|
|
33819
|
-
|
|
33819
|
+
ge
|
|
33820
33820
|
), adjustHeights(
|
|
33821
33821
|
G,
|
|
33822
33822
|
q,
|
|
33823
33823
|
He,
|
|
33824
33824
|
We,
|
|
33825
|
-
|
|
33826
|
-
|
|
33825
|
+
de,
|
|
33826
|
+
Se
|
|
33827
33827
|
);
|
|
33828
|
-
let
|
|
33828
|
+
let Pe = Cartesian3.multiplyByScalar(
|
|
33829
33829
|
j,
|
|
33830
33830
|
CesiumMath.EPSILON5,
|
|
33831
33831
|
normalNudgeScratch
|
|
33832
33832
|
);
|
|
33833
33833
|
Cartesian3.add(
|
|
33834
33834
|
ie,
|
|
33835
|
-
|
|
33835
|
+
Pe,
|
|
33836
33836
|
ie
|
|
33837
|
-
), Cartesian3.add(
|
|
33837
|
+
), Cartesian3.add(de, Pe, de), Cartesian3.add(ge, Pe, ge), Cartesian3.add(Se, Pe, Se), nudgeXZ(ie, de), nudgeXZ(ge, Se), Cartesian3.pack(ie, y, U), Cartesian3.pack(de, y, U + 3), Cartesian3.pack(Se, y, U + 6), Cartesian3.pack(ge, y, U + 9), Pe = Cartesian3.multiplyByScalar(
|
|
33838
33838
|
j,
|
|
33839
33839
|
-2 * CesiumMath.EPSILON5,
|
|
33840
33840
|
normalNudgeScratch
|
|
33841
33841
|
), Cartesian3.add(
|
|
33842
33842
|
ie,
|
|
33843
|
-
|
|
33843
|
+
Pe,
|
|
33844
33844
|
ie
|
|
33845
|
-
), Cartesian3.add(
|
|
33845
|
+
), Cartesian3.add(de, Pe, de), Cartesian3.add(ge, Pe, ge), Cartesian3.add(Se, Pe, Se), nudgeXZ(ie, de), nudgeXZ(ge, Se), Cartesian3.pack(
|
|
33846
33846
|
ie,
|
|
33847
33847
|
y,
|
|
33848
33848
|
U + 12
|
|
33849
33849
|
), Cartesian3.pack(
|
|
33850
|
-
|
|
33850
|
+
de,
|
|
33851
33851
|
y,
|
|
33852
33852
|
U + 15
|
|
33853
|
-
), Cartesian3.pack(
|
|
33853
|
+
), Cartesian3.pack(Se, y, U + 18), Cartesian3.pack(ge, y, U + 21), B += 2, l += 3, V += 16, U += 24, k += 32, H += xe, K += Ge;
|
|
33854
33854
|
}
|
|
33855
33855
|
l = 0;
|
|
33856
|
-
let
|
|
33856
|
+
let J = 0;
|
|
33857
33857
|
for (c = 0; c < f; c++) {
|
|
33858
33858
|
for (F = 0; F < REFERENCE_INDICES_LENGTH; F++)
|
|
33859
|
-
_[l + F] = REFERENCE_INDICES[F] +
|
|
33860
|
-
|
|
33859
|
+
_[l + F] = REFERENCE_INDICES[F] + J;
|
|
33860
|
+
J += 8, l += REFERENCE_INDICES_LENGTH;
|
|
33861
33861
|
}
|
|
33862
|
-
const
|
|
33862
|
+
const ee = scratchBoundingSpheres;
|
|
33863
33863
|
BoundingSphere.fromVertices(
|
|
33864
33864
|
n,
|
|
33865
33865
|
Cartesian3.ZERO,
|
|
33866
33866
|
3,
|
|
33867
|
-
|
|
33867
|
+
ee[0]
|
|
33868
33868
|
), BoundingSphere.fromVertices(
|
|
33869
33869
|
i,
|
|
33870
33870
|
Cartesian3.ZERO,
|
|
33871
33871
|
3,
|
|
33872
|
-
|
|
33872
|
+
ee[1]
|
|
33873
33873
|
);
|
|
33874
|
-
const
|
|
33875
|
-
|
|
33874
|
+
const te = BoundingSphere.fromBoundingSpheres(ee);
|
|
33875
|
+
te.radius += X / (f * 2);
|
|
33876
33876
|
const oe = {
|
|
33877
33877
|
position: new GeometryAttribute({
|
|
33878
33878
|
componentDatatype: ComponentDatatype$1.DOUBLE,
|
|
@@ -33904,7 +33904,7 @@ function generateGeometryAttributes(e, t, n, i, r, o, s) {
|
|
|
33904
33904
|
})), new Geometry({
|
|
33905
33905
|
attributes: oe,
|
|
33906
33906
|
indices: _,
|
|
33907
|
-
boundingSphere:
|
|
33907
|
+
boundingSphere: te
|
|
33908
33908
|
});
|
|
33909
33909
|
}
|
|
33910
33910
|
function getVec4GeometryAttribute(e) {
|
|
@@ -39243,28 +39243,28 @@ function createDOMPurify() {
|
|
|
39243
39243
|
enumerable: !0,
|
|
39244
39244
|
value: !1
|
|
39245
39245
|
}
|
|
39246
|
-
})), H = null,
|
|
39247
|
-
const
|
|
39248
|
-
let
|
|
39249
|
-
const
|
|
39246
|
+
})), H = null, K = null, X = !0, J = !0, ee = !1, te = !0, oe = !1, Q = !0, he = !1, ue = !1, se = !1, _e = !1, me = !1, re = !1, xe = !0, pe = !1;
|
|
39247
|
+
const Ce = "user-content-";
|
|
39248
|
+
let be = !0, W = !1, j = {}, ce = null;
|
|
39249
|
+
const Ee = addToSet({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
39250
39250
|
let le = null;
|
|
39251
39251
|
const De = addToSet({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
39252
39252
|
let Re = null;
|
|
39253
|
-
const Ge = addToSet({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Le = "http://www.w3.org/1998/Math/MathML", Ue = "http://www.w3.org/2000/svg",
|
|
39254
|
-
let ae =
|
|
39255
|
-
const
|
|
39256
|
-
let
|
|
39253
|
+
const Ge = addToSet({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Le = "http://www.w3.org/1998/Math/MathML", Ue = "http://www.w3.org/2000/svg", Z = "http://www.w3.org/1999/xhtml";
|
|
39254
|
+
let ae = Z, ne = !1, ie = null;
|
|
39255
|
+
const de = addToSet({}, [Le, Ue, Z], stringToString);
|
|
39256
|
+
let ge = addToSet({}, ["mi", "mo", "mn", "ms", "mtext"]), Se = addToSet({}, ["annotation-xml"]);
|
|
39257
39257
|
const Ie = addToSet({}, ["title", "style", "font", "a", "script"]);
|
|
39258
39258
|
let we = null;
|
|
39259
39259
|
const He = ["application/xhtml+xml", "text/html"], We = "text/html";
|
|
39260
|
-
let
|
|
39260
|
+
let Pe = null, Ae = null;
|
|
39261
39261
|
const $e = n.createElement("form"), Fe = function(Y) {
|
|
39262
39262
|
return Y instanceof RegExp || Y instanceof Function;
|
|
39263
39263
|
}, Ke = function() {
|
|
39264
39264
|
let Y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
39265
|
-
if (!(
|
|
39265
|
+
if (!(Ae && Ae === Y)) {
|
|
39266
39266
|
if ((!Y || typeof Y != "object") && (Y = {}), Y = clone(Y), we = // eslint-disable-next-line unicorn/prefer-includes
|
|
39267
|
-
He.indexOf(Y.PARSER_MEDIA_TYPE) === -1 ? We : Y.PARSER_MEDIA_TYPE,
|
|
39267
|
+
He.indexOf(Y.PARSER_MEDIA_TYPE) === -1 ? We : Y.PARSER_MEDIA_TYPE, Pe = we === "application/xhtml+xml" ? stringToString : stringToLowerCase, k = objectHasOwnProperty(Y, "ALLOWED_TAGS") ? addToSet({}, Y.ALLOWED_TAGS, Pe) : $, G = objectHasOwnProperty(Y, "ALLOWED_ATTR") ? addToSet({}, Y.ALLOWED_ATTR, Pe) : q, ie = objectHasOwnProperty(Y, "ALLOWED_NAMESPACES") ? addToSet({}, Y.ALLOWED_NAMESPACES, stringToString) : de, Re = objectHasOwnProperty(Y, "ADD_URI_SAFE_ATTR") ? addToSet(clone(Ge), Y.ADD_URI_SAFE_ATTR, Pe) : Ge, le = objectHasOwnProperty(Y, "ADD_DATA_URI_TAGS") ? addToSet(clone(De), Y.ADD_DATA_URI_TAGS, Pe) : De, ce = objectHasOwnProperty(Y, "FORBID_CONTENTS") ? addToSet({}, Y.FORBID_CONTENTS, Pe) : Ee, H = objectHasOwnProperty(Y, "FORBID_TAGS") ? addToSet({}, Y.FORBID_TAGS, Pe) : {}, K = objectHasOwnProperty(Y, "FORBID_ATTR") ? addToSet({}, Y.FORBID_ATTR, Pe) : {}, j = objectHasOwnProperty(Y, "USE_PROFILES") ? Y.USE_PROFILES : !1, X = Y.ALLOW_ARIA_ATTR !== !1, J = Y.ALLOW_DATA_ATTR !== !1, ee = Y.ALLOW_UNKNOWN_PROTOCOLS || !1, te = Y.ALLOW_SELF_CLOSE_IN_ATTR !== !1, oe = Y.SAFE_FOR_TEMPLATES || !1, Q = Y.SAFE_FOR_XML !== !1, he = Y.WHOLE_DOCUMENT || !1, _e = Y.RETURN_DOM || !1, me = Y.RETURN_DOM_FRAGMENT || !1, re = Y.RETURN_TRUSTED_TYPE || !1, se = Y.FORCE_BODY || !1, xe = Y.SANITIZE_DOM !== !1, pe = Y.SANITIZE_NAMED_PROPS || !1, be = Y.KEEP_CONTENT !== !1, W = Y.IN_PLACE || !1, U = Y.ALLOWED_URI_REGEXP || IS_ALLOWED_URI, ae = Y.NAMESPACE || Z, ge = Y.MATHML_TEXT_INTEGRATION_POINTS || ge, Se = Y.HTML_INTEGRATION_POINTS || Se, z = Y.CUSTOM_ELEMENT_HANDLING || {}, Y.CUSTOM_ELEMENT_HANDLING && Fe(Y.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (z.tagNameCheck = Y.CUSTOM_ELEMENT_HANDLING.tagNameCheck), Y.CUSTOM_ELEMENT_HANDLING && Fe(Y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (z.attributeNameCheck = Y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), Y.CUSTOM_ELEMENT_HANDLING && typeof Y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (z.allowCustomizedBuiltInElements = Y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), oe && (J = !1), me && (_e = !0), j && (k = addToSet({}, text), G = [], j.html === !0 && (addToSet(k, html$1), addToSet(G, html)), j.svg === !0 && (addToSet(k, svg$1), addToSet(G, svg), addToSet(G, xml)), j.svgFilters === !0 && (addToSet(k, svgFilters), addToSet(G, svg), addToSet(G, xml)), j.mathMl === !0 && (addToSet(k, mathMl$1), addToSet(G, mathMl), addToSet(G, xml))), Y.ADD_TAGS && (k === $ && (k = clone(k)), addToSet(k, Y.ADD_TAGS, Pe)), Y.ADD_ATTR && (G === q && (G = clone(G)), addToSet(G, Y.ADD_ATTR, Pe)), Y.ADD_URI_SAFE_ATTR && addToSet(Re, Y.ADD_URI_SAFE_ATTR, Pe), Y.FORBID_CONTENTS && (ce === Ee && (ce = clone(ce)), addToSet(ce, Y.FORBID_CONTENTS, Pe)), be && (k["#text"] = !0), he && addToSet(k, ["html", "head", "body"]), k.table && (addToSet(k, ["tbody"]), delete H.tbody), Y.TRUSTED_TYPES_POLICY) {
|
|
39268
39268
|
if (typeof Y.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
39269
39269
|
throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
39270
39270
|
if (typeof Y.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -39272,7 +39272,7 @@ function createDOMPurify() {
|
|
|
39272
39272
|
S = Y.TRUSTED_TYPES_POLICY, E = S.createHTML("");
|
|
39273
39273
|
} else
|
|
39274
39274
|
S === void 0 && (S = _createTrustedTypesPolicy(m, r)), S !== null && typeof E == "string" && (E = S.createHTML(""));
|
|
39275
|
-
freeze && freeze(Y),
|
|
39275
|
+
freeze && freeze(Y), Ae = Y;
|
|
39276
39276
|
}
|
|
39277
39277
|
}, ve = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]), Ne = addToSet({}, [...mathMl$1, ...mathMlDisallowed]), rt = function(Y) {
|
|
39278
39278
|
let fe = b(Y);
|
|
@@ -39280,8 +39280,8 @@ function createDOMPurify() {
|
|
|
39280
39280
|
namespaceURI: ae,
|
|
39281
39281
|
tagName: "template"
|
|
39282
39282
|
});
|
|
39283
|
-
const
|
|
39284
|
-
return ie[Y.namespaceURI] ? Y.namespaceURI === Ue ? fe.namespaceURI ===
|
|
39283
|
+
const Te = stringToLowerCase(Y.tagName), Oe = stringToLowerCase(fe.tagName);
|
|
39284
|
+
return ie[Y.namespaceURI] ? Y.namespaceURI === Ue ? fe.namespaceURI === Z ? Te === "svg" : fe.namespaceURI === Le ? Te === "svg" && (Oe === "annotation-xml" || ge[Oe]) : !!ve[Te] : Y.namespaceURI === Le ? fe.namespaceURI === Z ? Te === "math" : fe.namespaceURI === Ue ? Te === "math" && Se[Oe] : !!Ne[Te] : Y.namespaceURI === Z ? fe.namespaceURI === Ue && !Se[Oe] || fe.namespaceURI === Le && !ge[Oe] ? !1 : !Ne[Te] && (Ie[Te] || !ve[Te]) : !!(we === "application/xhtml+xml" && ie[Y.namespaceURI]) : !1;
|
|
39285
39285
|
}, Be = function(Y) {
|
|
39286
39286
|
arrayPush(t.removed, {
|
|
39287
39287
|
element: Y
|
|
@@ -39291,7 +39291,7 @@ function createDOMPurify() {
|
|
|
39291
39291
|
} catch {
|
|
39292
39292
|
C(Y);
|
|
39293
39293
|
}
|
|
39294
|
-
},
|
|
39294
|
+
}, Je = function(Y, fe) {
|
|
39295
39295
|
try {
|
|
39296
39296
|
arrayPush(t.removed, {
|
|
39297
39297
|
attribute: fe.getAttributeNode(Y),
|
|
@@ -39304,7 +39304,7 @@ function createDOMPurify() {
|
|
|
39304
39304
|
});
|
|
39305
39305
|
}
|
|
39306
39306
|
if (fe.removeAttribute(Y), Y === "is")
|
|
39307
|
-
if (_e ||
|
|
39307
|
+
if (_e || me)
|
|
39308
39308
|
try {
|
|
39309
39309
|
Be(fe);
|
|
39310
39310
|
} catch {
|
|
@@ -39315,16 +39315,16 @@ function createDOMPurify() {
|
|
|
39315
39315
|
} catch {
|
|
39316
39316
|
}
|
|
39317
39317
|
}, je = function(Y) {
|
|
39318
|
-
let fe = null,
|
|
39319
|
-
if (
|
|
39318
|
+
let fe = null, Te = null;
|
|
39319
|
+
if (se)
|
|
39320
39320
|
Y = "<remove></remove>" + Y;
|
|
39321
39321
|
else {
|
|
39322
39322
|
const ze = stringMatch(Y, /^[\r\n\t ]+/);
|
|
39323
|
-
|
|
39323
|
+
Te = ze && ze[0];
|
|
39324
39324
|
}
|
|
39325
|
-
we === "application/xhtml+xml" && ae ===
|
|
39325
|
+
we === "application/xhtml+xml" && ae === Z && (Y = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + Y + "</body></html>");
|
|
39326
39326
|
const Oe = S ? S.createHTML(Y) : Y;
|
|
39327
|
-
if (ae ===
|
|
39327
|
+
if (ae === Z)
|
|
39328
39328
|
try {
|
|
39329
39329
|
fe = new p().parseFromString(Oe, we);
|
|
39330
39330
|
} catch {
|
|
@@ -39332,12 +39332,12 @@ function createDOMPurify() {
|
|
|
39332
39332
|
if (!fe || !fe.documentElement) {
|
|
39333
39333
|
fe = A.createDocument(ae, "template", null);
|
|
39334
39334
|
try {
|
|
39335
|
-
fe.documentElement.innerHTML =
|
|
39335
|
+
fe.documentElement.innerHTML = ne ? E : Oe;
|
|
39336
39336
|
} catch {
|
|
39337
39337
|
}
|
|
39338
39338
|
}
|
|
39339
39339
|
const qe = fe.body || fe.documentElement;
|
|
39340
|
-
return Y &&
|
|
39340
|
+
return Y && Te && qe.insertBefore(n.createTextNode(Te), qe.childNodes[0] || null), ae === Z ? I.call(fe, he ? "html" : "body")[0] : he ? fe.documentElement : qe;
|
|
39341
39341
|
}, at = function(Y) {
|
|
39342
39342
|
return D.call(
|
|
39343
39343
|
Y.ownerDocument || Y,
|
|
@@ -39352,59 +39352,59 @@ function createDOMPurify() {
|
|
|
39352
39352
|
return typeof c == "function" && Y instanceof c;
|
|
39353
39353
|
};
|
|
39354
39354
|
function Ye(ye, Y, fe) {
|
|
39355
|
-
arrayForEach(ye, (
|
|
39356
|
-
|
|
39355
|
+
arrayForEach(ye, (Te) => {
|
|
39356
|
+
Te.call(t, Y, fe, Ae);
|
|
39357
39357
|
});
|
|
39358
39358
|
}
|
|
39359
39359
|
const Ve = function(Y) {
|
|
39360
39360
|
let fe = null;
|
|
39361
39361
|
if (Ye(R.beforeSanitizeElements, Y, null), ke(Y))
|
|
39362
39362
|
return Be(Y), !0;
|
|
39363
|
-
const
|
|
39363
|
+
const Te = Pe(Y.nodeName);
|
|
39364
39364
|
if (Ye(R.uponSanitizeElement, Y, {
|
|
39365
|
-
tagName:
|
|
39365
|
+
tagName: Te,
|
|
39366
39366
|
allowedTags: k
|
|
39367
|
-
}), Y.hasChildNodes() && !Qe(Y.firstElementChild) && regExpTest(/<[/\w]/g, Y.innerHTML) && regExpTest(/<[/\w]/g, Y.textContent) || Y.nodeType === NODE_TYPE.progressingInstruction ||
|
|
39367
|
+
}), Y.hasChildNodes() && !Qe(Y.firstElementChild) && regExpTest(/<[/\w]/g, Y.innerHTML) && regExpTest(/<[/\w]/g, Y.textContent) || Y.nodeType === NODE_TYPE.progressingInstruction || Q && Y.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, Y.data))
|
|
39368
39368
|
return Be(Y), !0;
|
|
39369
|
-
if (!k[
|
|
39370
|
-
if (!H[
|
|
39369
|
+
if (!k[Te] || H[Te]) {
|
|
39370
|
+
if (!H[Te] && tt(Te) && (z.tagNameCheck instanceof RegExp && regExpTest(z.tagNameCheck, Te) || z.tagNameCheck instanceof Function && z.tagNameCheck(Te)))
|
|
39371
39371
|
return !1;
|
|
39372
|
-
if (
|
|
39372
|
+
if (be && !ce[Te]) {
|
|
39373
39373
|
const Oe = b(Y) || Y.parentNode, qe = x(Y) || Y.childNodes;
|
|
39374
39374
|
if (qe && Oe) {
|
|
39375
39375
|
const ze = qe.length;
|
|
39376
|
-
for (let
|
|
39377
|
-
const it = y(qe[
|
|
39376
|
+
for (let Ze = ze - 1; Ze >= 0; --Ze) {
|
|
39377
|
+
const it = y(qe[Ze], !0);
|
|
39378
39378
|
it.__removalCount = (Y.__removalCount || 0) + 1, Oe.insertBefore(it, T(Y));
|
|
39379
39379
|
}
|
|
39380
39380
|
}
|
|
39381
39381
|
}
|
|
39382
39382
|
return Be(Y), !0;
|
|
39383
39383
|
}
|
|
39384
|
-
return Y instanceof l && !rt(Y) || (
|
|
39384
|
+
return Y instanceof l && !rt(Y) || (Te === "noscript" || Te === "noembed" || Te === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, Y.innerHTML) ? (Be(Y), !0) : (oe && Y.nodeType === NODE_TYPE.text && (fe = Y.textContent, arrayForEach([L, g, w], (Oe) => {
|
|
39385
39385
|
fe = stringReplace(fe, Oe, " ");
|
|
39386
39386
|
}), Y.textContent !== fe && (arrayPush(t.removed, {
|
|
39387
39387
|
element: Y.cloneNode()
|
|
39388
39388
|
}), Y.textContent = fe)), Ye(R.afterSanitizeElements, Y, null), !1);
|
|
39389
|
-
}, et = function(Y, fe,
|
|
39390
|
-
if (
|
|
39389
|
+
}, et = function(Y, fe, Te) {
|
|
39390
|
+
if (xe && (fe === "id" || fe === "name") && (Te in n || Te in $e))
|
|
39391
39391
|
return !1;
|
|
39392
|
-
if (!(
|
|
39393
|
-
if (!(
|
|
39394
|
-
if (!G[fe] ||
|
|
39392
|
+
if (!(J && !K[fe] && regExpTest(O, fe))) {
|
|
39393
|
+
if (!(X && regExpTest(N, fe))) {
|
|
39394
|
+
if (!G[fe] || K[fe]) {
|
|
39395
39395
|
if (
|
|
39396
39396
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
39397
39397
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
39398
39398
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
39399
39399
|
!(tt(Y) && (z.tagNameCheck instanceof RegExp && regExpTest(z.tagNameCheck, Y) || z.tagNameCheck instanceof Function && z.tagNameCheck(Y)) && (z.attributeNameCheck instanceof RegExp && regExpTest(z.attributeNameCheck, fe) || z.attributeNameCheck instanceof Function && z.attributeNameCheck(fe)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
39400
39400
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
39401
|
-
fe === "is" && z.allowCustomizedBuiltInElements && (z.tagNameCheck instanceof RegExp && regExpTest(z.tagNameCheck,
|
|
39401
|
+
fe === "is" && z.allowCustomizedBuiltInElements && (z.tagNameCheck instanceof RegExp && regExpTest(z.tagNameCheck, Te) || z.tagNameCheck instanceof Function && z.tagNameCheck(Te)))
|
|
39402
39402
|
) return !1;
|
|
39403
39403
|
} else if (!Re[fe]) {
|
|
39404
|
-
if (!regExpTest(U, stringReplace(
|
|
39405
|
-
if (!((fe === "src" || fe === "xlink:href" || fe === "href") && Y !== "script" && stringIndexOf(
|
|
39406
|
-
if (!(
|
|
39407
|
-
if (
|
|
39404
|
+
if (!regExpTest(U, stringReplace(Te, B, ""))) {
|
|
39405
|
+
if (!((fe === "src" || fe === "xlink:href" || fe === "href") && Y !== "script" && stringIndexOf(Te, "data:") === 0 && le[Y])) {
|
|
39406
|
+
if (!(ee && !regExpTest(F, stringReplace(Te, B, "")))) {
|
|
39407
|
+
if (Te)
|
|
39408
39408
|
return !1;
|
|
39409
39409
|
}
|
|
39410
39410
|
}
|
|
@@ -39422,7 +39422,7 @@ function createDOMPurify() {
|
|
|
39422
39422
|
} = Y;
|
|
39423
39423
|
if (!fe || ke(Y))
|
|
39424
39424
|
return;
|
|
39425
|
-
const
|
|
39425
|
+
const Te = {
|
|
39426
39426
|
attrName: "",
|
|
39427
39427
|
attrValue: "",
|
|
39428
39428
|
keepAttr: !0,
|
|
@@ -39433,26 +39433,26 @@ function createDOMPurify() {
|
|
|
39433
39433
|
for (; Oe--; ) {
|
|
39434
39434
|
const qe = fe[Oe], {
|
|
39435
39435
|
name: ze,
|
|
39436
|
-
namespaceURI:
|
|
39436
|
+
namespaceURI: Ze,
|
|
39437
39437
|
value: it
|
|
39438
|
-
} = qe, ot =
|
|
39438
|
+
} = qe, ot = Pe(ze);
|
|
39439
39439
|
let Xe = ze === "value" ? it : stringTrim(it);
|
|
39440
|
-
if (
|
|
39441
|
-
|
|
39440
|
+
if (Te.attrName = ot, Te.attrValue = Xe, Te.keepAttr = !0, Te.forceKeepAttr = void 0, Ye(R.uponSanitizeAttribute, Y, Te), Xe = Te.attrValue, pe && (ot === "id" || ot === "name") && (Je(ze, Y), Xe = Ce + Xe), Q && regExpTest(/((--!?|])>)|<\/(style|title)/i, Xe)) {
|
|
39441
|
+
Je(ze, Y);
|
|
39442
39442
|
continue;
|
|
39443
39443
|
}
|
|
39444
|
-
if (
|
|
39444
|
+
if (Te.forceKeepAttr || (Je(ze, Y), !Te.keepAttr))
|
|
39445
39445
|
continue;
|
|
39446
|
-
if (!
|
|
39447
|
-
|
|
39446
|
+
if (!te && regExpTest(/\/>/i, Xe)) {
|
|
39447
|
+
Je(ze, Y);
|
|
39448
39448
|
continue;
|
|
39449
39449
|
}
|
|
39450
39450
|
oe && arrayForEach([L, g, w], (ct) => {
|
|
39451
39451
|
Xe = stringReplace(Xe, ct, " ");
|
|
39452
39452
|
});
|
|
39453
|
-
const st =
|
|
39453
|
+
const st = Pe(Y.nodeName);
|
|
39454
39454
|
if (et(st, ot, Xe)) {
|
|
39455
|
-
if (S && typeof m == "object" && typeof m.getAttributeType == "function" && !
|
|
39455
|
+
if (S && typeof m == "object" && typeof m.getAttributeType == "function" && !Ze)
|
|
39456
39456
|
switch (m.getAttributeType(st, ot)) {
|
|
39457
39457
|
case "TrustedHTML": {
|
|
39458
39458
|
Xe = S.createHTML(Xe);
|
|
@@ -39464,7 +39464,7 @@ function createDOMPurify() {
|
|
|
39464
39464
|
}
|
|
39465
39465
|
}
|
|
39466
39466
|
try {
|
|
39467
|
-
|
|
39467
|
+
Ze ? Y.setAttributeNS(Ze, ze, Xe) : Y.setAttribute(ze, Xe), ke(Y) ? Be(Y) : arrayPop(t.removed);
|
|
39468
39468
|
} catch {
|
|
39469
39469
|
}
|
|
39470
39470
|
}
|
|
@@ -39472,14 +39472,14 @@ function createDOMPurify() {
|
|
|
39472
39472
|
Ye(R.afterSanitizeAttributes, Y, null);
|
|
39473
39473
|
}, Me = function ye(Y) {
|
|
39474
39474
|
let fe = null;
|
|
39475
|
-
const
|
|
39476
|
-
for (Ye(R.beforeSanitizeShadowDOM, Y, null); fe =
|
|
39475
|
+
const Te = at(Y);
|
|
39476
|
+
for (Ye(R.beforeSanitizeShadowDOM, Y, null); fe = Te.nextNode(); )
|
|
39477
39477
|
Ye(R.uponSanitizeShadowNode, fe, null), Ve(fe), nt(fe), fe.content instanceof o && ye(fe.content);
|
|
39478
39478
|
Ye(R.afterSanitizeShadowDOM, Y, null);
|
|
39479
39479
|
};
|
|
39480
39480
|
return t.sanitize = function(ye) {
|
|
39481
|
-
let Y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, fe = null,
|
|
39482
|
-
if (
|
|
39481
|
+
let Y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, fe = null, Te = null, Oe = null, qe = null;
|
|
39482
|
+
if (ne = !ye, ne && (ye = "<!-->"), typeof ye != "string" && !Qe(ye))
|
|
39483
39483
|
if (typeof ye.toString == "function") {
|
|
39484
39484
|
if (ye = ye.toString(), typeof ye != "string")
|
|
39485
39485
|
throw typeErrorCreate("dirty is not a string, aborting");
|
|
@@ -39487,14 +39487,14 @@ function createDOMPurify() {
|
|
|
39487
39487
|
throw typeErrorCreate("toString is not a function");
|
|
39488
39488
|
if (!t.isSupported)
|
|
39489
39489
|
return ye;
|
|
39490
|
-
if (
|
|
39490
|
+
if (ue || Ke(Y), t.removed = [], typeof ye == "string" && (W = !1), W) {
|
|
39491
39491
|
if (ye.nodeName) {
|
|
39492
|
-
const it =
|
|
39492
|
+
const it = Pe(ye.nodeName);
|
|
39493
39493
|
if (!k[it] || H[it])
|
|
39494
39494
|
throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
|
|
39495
39495
|
}
|
|
39496
39496
|
} else if (ye instanceof c)
|
|
39497
|
-
fe = je("<!---->"),
|
|
39497
|
+
fe = je("<!---->"), Te = fe.ownerDocument.importNode(ye, !0), Te.nodeType === NODE_TYPE.element && Te.nodeName === "BODY" || Te.nodeName === "HTML" ? fe = Te : fe.appendChild(Te);
|
|
39498
39498
|
else {
|
|
39499
39499
|
if (!_e && !oe && !he && // eslint-disable-next-line unicorn/prefer-includes
|
|
39500
39500
|
ye.indexOf("<") === -1)
|
|
@@ -39502,34 +39502,34 @@ function createDOMPurify() {
|
|
|
39502
39502
|
if (fe = je(ye), !fe)
|
|
39503
39503
|
return _e ? null : re ? E : "";
|
|
39504
39504
|
}
|
|
39505
|
-
fe &&
|
|
39505
|
+
fe && se && Be(fe.firstChild);
|
|
39506
39506
|
const ze = at(W ? ye : fe);
|
|
39507
39507
|
for (; Oe = ze.nextNode(); )
|
|
39508
39508
|
Ve(Oe), nt(Oe), Oe.content instanceof o && Me(Oe.content);
|
|
39509
39509
|
if (W)
|
|
39510
39510
|
return ye;
|
|
39511
39511
|
if (_e) {
|
|
39512
|
-
if (
|
|
39512
|
+
if (me)
|
|
39513
39513
|
for (qe = P.call(fe.ownerDocument); fe.firstChild; )
|
|
39514
39514
|
qe.appendChild(fe.firstChild);
|
|
39515
39515
|
else
|
|
39516
39516
|
qe = fe;
|
|
39517
39517
|
return (G.shadowroot || G.shadowrootmode) && (qe = M.call(i, qe, !0)), qe;
|
|
39518
39518
|
}
|
|
39519
|
-
let
|
|
39520
|
-
return he && k["!doctype"] && fe.ownerDocument && fe.ownerDocument.doctype && fe.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, fe.ownerDocument.doctype.name) && (
|
|
39521
|
-
` +
|
|
39522
|
-
|
|
39523
|
-
}), S && re ? S.createHTML(
|
|
39519
|
+
let Ze = he ? fe.outerHTML : fe.innerHTML;
|
|
39520
|
+
return he && k["!doctype"] && fe.ownerDocument && fe.ownerDocument.doctype && fe.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, fe.ownerDocument.doctype.name) && (Ze = "<!DOCTYPE " + fe.ownerDocument.doctype.name + `>
|
|
39521
|
+
` + Ze), oe && arrayForEach([L, g, w], (it) => {
|
|
39522
|
+
Ze = stringReplace(Ze, it, " ");
|
|
39523
|
+
}), S && re ? S.createHTML(Ze) : Ze;
|
|
39524
39524
|
}, t.setConfig = function() {
|
|
39525
39525
|
let ye = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
39526
|
-
Ke(ye),
|
|
39526
|
+
Ke(ye), ue = !0;
|
|
39527
39527
|
}, t.clearConfig = function() {
|
|
39528
|
-
|
|
39528
|
+
Ae = null, ue = !1;
|
|
39529
39529
|
}, t.isValidAttribute = function(ye, Y, fe) {
|
|
39530
|
-
|
|
39531
|
-
const
|
|
39532
|
-
return et(
|
|
39530
|
+
Ae || Ke({});
|
|
39531
|
+
const Te = Pe(ye), Oe = Pe(Y);
|
|
39532
|
+
return et(Te, Oe, fe);
|
|
39533
39533
|
}, t.addHook = function(ye, Y) {
|
|
39534
39534
|
typeof Y == "function" && arrayPush(R[ye], Y);
|
|
39535
39535
|
}, t.removeHook = function(ye, Y) {
|
|
@@ -70399,7 +70399,7 @@ function pickModel(e, t, n, i, r, o, s) {
|
|
|
70399
70399
|
for (let $ = 0; $ < k; $ += 3) {
|
|
70400
70400
|
const G = M[$], q = M[$ + 1], z = M[$ + 2];
|
|
70401
70401
|
for (const H of T) {
|
|
70402
|
-
const
|
|
70402
|
+
const K = getVertexPosition(
|
|
70403
70403
|
R,
|
|
70404
70404
|
G,
|
|
70405
70405
|
V,
|
|
@@ -70410,7 +70410,7 @@ function pickModel(e, t, n, i, r, o, s) {
|
|
|
70410
70410
|
r,
|
|
70411
70411
|
o,
|
|
70412
70412
|
scratchV0$2
|
|
70413
|
-
),
|
|
70413
|
+
), X = getVertexPosition(
|
|
70414
70414
|
R,
|
|
70415
70415
|
q,
|
|
70416
70416
|
V,
|
|
@@ -70421,7 +70421,7 @@ function pickModel(e, t, n, i, r, o, s) {
|
|
|
70421
70421
|
r,
|
|
70422
70422
|
o,
|
|
70423
70423
|
scratchV1$2
|
|
70424
|
-
),
|
|
70424
|
+
), J = getVertexPosition(
|
|
70425
70425
|
R,
|
|
70426
70426
|
z,
|
|
70427
70427
|
V,
|
|
@@ -70432,14 +70432,14 @@ function pickModel(e, t, n, i, r, o, s) {
|
|
|
70432
70432
|
r,
|
|
70433
70433
|
o,
|
|
70434
70434
|
scratchV2$1
|
|
70435
|
-
),
|
|
70435
|
+
), ee = IntersectionTests.rayTriangleParametric(
|
|
70436
70436
|
t,
|
|
70437
|
-
Q,
|
|
70438
|
-
ne,
|
|
70439
70437
|
K,
|
|
70438
|
+
X,
|
|
70439
|
+
J,
|
|
70440
70440
|
defaultValue(e.backFaceCulling, !0)
|
|
70441
70441
|
);
|
|
70442
|
-
defined(
|
|
70442
|
+
defined(ee) && ee < c && ee >= 0 && (c = ee);
|
|
70443
70443
|
}
|
|
70444
70444
|
}
|
|
70445
70445
|
}
|
|
@@ -79207,13 +79207,13 @@ function createVertexArrays(e, t, n) {
|
|
|
79207
79207
|
];
|
|
79208
79208
|
let G, q, z, H;
|
|
79209
79209
|
_ === SceneMode$1.SCENE3D ? (q = e._positionBuffer, G = "vertexBuffer", z = emptyVertexBuffer, H = "value") : _ === SceneMode$1.SCENE2D || _ === SceneMode$1.COLUMBUS_VIEW ? (q = emptyVertexBuffer, G = "value", z = e._positionBuffer, H = "vertexBuffer") : (q = D, G = "vertexBuffer", z = e._positionBuffer, H = "vertexBuffer"), $[0][G] = q, $[1][G] = q, $[2][H] = z, $[3][H] = z, $[4][G] = q, $[5][G] = q, $[6][H] = z, $[7][H] = z, $[8][G] = q, $[9][G] = q, $[10][H] = z, $[11][H] = z;
|
|
79210
|
-
const
|
|
79210
|
+
const K = new VertexArray({
|
|
79211
79211
|
context: t,
|
|
79212
79212
|
attributes: $,
|
|
79213
79213
|
indexBuffer: w
|
|
79214
79214
|
});
|
|
79215
79215
|
e._vertexArrays.push({
|
|
79216
|
-
va:
|
|
79216
|
+
va: K,
|
|
79217
79217
|
buckets: d[L]
|
|
79218
79218
|
});
|
|
79219
79219
|
}
|
|
@@ -89240,71 +89240,71 @@ function combine$1(e, t, n) {
|
|
|
89240
89240
|
), k += 3, p = 0; p < r.length; p++) {
|
|
89241
89241
|
let H;
|
|
89242
89242
|
d = r[p];
|
|
89243
|
-
const
|
|
89244
|
-
let
|
|
89245
|
-
if (g = Cartesian3.fromArray(c, k, g), defined(
|
|
89246
|
-
for (addNormals(A, g, w, void 0, P, t), P -= 3,
|
|
89247
|
-
|
|
89243
|
+
const K = d.leftPositions, X = d.rightPositions;
|
|
89244
|
+
let J, ee, te = cartesian6, oe = cartesian3$1, Q = cartesian4;
|
|
89245
|
+
if (g = Cartesian3.fromArray(c, k, g), defined(K)) {
|
|
89246
|
+
for (addNormals(A, g, w, void 0, P, t), P -= 3, J = L, ee = R, H = 0; H < K.length / 3; H++)
|
|
89247
|
+
te = Cartesian3.fromArray(K, H * 3, te), B[V++] = J, B[V++] = ee - H - 1, B[V++] = ee - H, CorridorGeometryLibrary.addAttribute(
|
|
89248
89248
|
x,
|
|
89249
|
-
|
|
89249
|
+
te,
|
|
89250
89250
|
void 0,
|
|
89251
89251
|
P
|
|
89252
89252
|
), oe = Cartesian3.fromArray(
|
|
89253
89253
|
x,
|
|
89254
|
-
(
|
|
89254
|
+
(ee - H - 1) * 3,
|
|
89255
89255
|
oe
|
|
89256
|
-
),
|
|
89257
|
-
Cartesian3.subtract(oe,
|
|
89256
|
+
), Q = Cartesian3.fromArray(x, J * 3, Q), w = Cartesian3.normalize(
|
|
89257
|
+
Cartesian3.subtract(oe, Q, w),
|
|
89258
89258
|
w
|
|
89259
89259
|
), addNormals(A, g, w, void 0, P, t), P -= 3;
|
|
89260
|
-
|
|
89260
|
+
te = Cartesian3.fromArray(
|
|
89261
89261
|
x,
|
|
89262
|
-
|
|
89263
|
-
|
|
89262
|
+
J * 3,
|
|
89263
|
+
te
|
|
89264
89264
|
), oe = Cartesian3.subtract(
|
|
89265
|
-
Cartesian3.fromArray(x,
|
|
89266
|
-
|
|
89265
|
+
Cartesian3.fromArray(x, ee * 3, oe),
|
|
89266
|
+
te,
|
|
89267
89267
|
oe
|
|
89268
|
-
),
|
|
89269
|
-
Cartesian3.fromArray(x, (
|
|
89270
|
-
|
|
89271
|
-
|
|
89268
|
+
), Q = Cartesian3.subtract(
|
|
89269
|
+
Cartesian3.fromArray(x, (ee - H) * 3, Q),
|
|
89270
|
+
te,
|
|
89271
|
+
Q
|
|
89272
89272
|
), w = Cartesian3.normalize(
|
|
89273
|
-
Cartesian3.add(oe,
|
|
89273
|
+
Cartesian3.add(oe, Q, w),
|
|
89274
89274
|
w
|
|
89275
89275
|
), addNormals(A, g, w, D, void 0, t), D += 3;
|
|
89276
89276
|
} else {
|
|
89277
|
-
for (addNormals(A, g, w, D, void 0, t), D += 3,
|
|
89278
|
-
|
|
89277
|
+
for (addNormals(A, g, w, D, void 0, t), D += 3, J = R, ee = L, H = 0; H < X.length / 3; H++)
|
|
89278
|
+
te = Cartesian3.fromArray(X, H * 3, te), B[V++] = J, B[V++] = ee + H, B[V++] = ee + H + 1, CorridorGeometryLibrary.addAttribute(
|
|
89279
89279
|
x,
|
|
89280
|
-
|
|
89280
|
+
te,
|
|
89281
89281
|
D
|
|
89282
89282
|
), oe = Cartesian3.fromArray(
|
|
89283
89283
|
x,
|
|
89284
|
-
|
|
89284
|
+
J * 3,
|
|
89285
89285
|
oe
|
|
89286
|
-
),
|
|
89286
|
+
), Q = Cartesian3.fromArray(
|
|
89287
89287
|
x,
|
|
89288
|
-
(
|
|
89289
|
-
|
|
89288
|
+
(ee + H) * 3,
|
|
89289
|
+
Q
|
|
89290
89290
|
), w = Cartesian3.normalize(
|
|
89291
|
-
Cartesian3.subtract(oe,
|
|
89291
|
+
Cartesian3.subtract(oe, Q, w),
|
|
89292
89292
|
w
|
|
89293
89293
|
), addNormals(A, g, w, D, void 0, t), D += 3;
|
|
89294
|
-
|
|
89294
|
+
te = Cartesian3.fromArray(
|
|
89295
89295
|
x,
|
|
89296
|
-
|
|
89297
|
-
|
|
89296
|
+
J * 3,
|
|
89297
|
+
te
|
|
89298
89298
|
), oe = Cartesian3.subtract(
|
|
89299
|
-
Cartesian3.fromArray(x, (
|
|
89300
|
-
|
|
89299
|
+
Cartesian3.fromArray(x, (ee + H) * 3, oe),
|
|
89300
|
+
te,
|
|
89301
89301
|
oe
|
|
89302
|
-
),
|
|
89303
|
-
Cartesian3.fromArray(x,
|
|
89304
|
-
|
|
89305
|
-
|
|
89302
|
+
), Q = Cartesian3.subtract(
|
|
89303
|
+
Cartesian3.fromArray(x, ee * 3, Q),
|
|
89304
|
+
te,
|
|
89305
|
+
Q
|
|
89306
89306
|
), w = Cartesian3.normalize(
|
|
89307
|
-
Cartesian3.negate(Cartesian3.add(
|
|
89307
|
+
Cartesian3.negate(Cartesian3.add(Q, oe, w), w),
|
|
89308
89308
|
w
|
|
89309
89309
|
), addNormals(A, g, w, void 0, P, t), P -= 3;
|
|
89310
89310
|
}
|
|
@@ -89346,30 +89346,30 @@ function combine$1(e, t, n) {
|
|
|
89346
89346
|
values: x
|
|
89347
89347
|
}), t.st) {
|
|
89348
89348
|
const H = new Float32Array(T / 3 * 2);
|
|
89349
|
-
let
|
|
89349
|
+
let K, X, J = 0;
|
|
89350
89350
|
if (y) {
|
|
89351
89351
|
f /= 3, h /= 3;
|
|
89352
|
-
const
|
|
89353
|
-
|
|
89354
|
-
let
|
|
89352
|
+
const ee = Math.PI / (C + 1);
|
|
89353
|
+
X = 1 / (f - C + 1), K = 1 / (h - C + 1);
|
|
89354
|
+
let te;
|
|
89355
89355
|
const oe = C / 2;
|
|
89356
89356
|
for (p = oe + 1; p < C + 1; p++)
|
|
89357
|
-
|
|
89357
|
+
te = CesiumMath.PI_OVER_TWO + ee * p, H[J++] = K * (1 + Math.cos(te)), H[J++] = 0.5 * (1 + Math.sin(te));
|
|
89358
89358
|
for (p = 1; p < h - C + 1; p++)
|
|
89359
|
-
H[
|
|
89359
|
+
H[J++] = p * K, H[J++] = 0;
|
|
89360
89360
|
for (p = C; p > oe; p--)
|
|
89361
|
-
|
|
89361
|
+
te = CesiumMath.PI_OVER_TWO - p * ee, H[J++] = 1 - K * (1 + Math.cos(te)), H[J++] = 0.5 * (1 + Math.sin(te));
|
|
89362
89362
|
for (p = oe; p > 0; p--)
|
|
89363
|
-
|
|
89363
|
+
te = CesiumMath.PI_OVER_TWO - ee * p, H[J++] = 1 - X * (1 + Math.cos(te)), H[J++] = 0.5 * (1 + Math.sin(te));
|
|
89364
89364
|
for (p = f - C; p > 0; p--)
|
|
89365
|
-
H[
|
|
89365
|
+
H[J++] = p * X, H[J++] = 1;
|
|
89366
89366
|
for (p = 1; p < oe + 1; p++)
|
|
89367
|
-
|
|
89367
|
+
te = CesiumMath.PI_OVER_TWO + ee * p, H[J++] = X * (1 + Math.cos(te)), H[J++] = 0.5 * (1 + Math.sin(te));
|
|
89368
89368
|
} else {
|
|
89369
|
-
for (f /= 3, h /= 3,
|
|
89370
|
-
H[
|
|
89369
|
+
for (f /= 3, h /= 3, X = 1 / (f - 1), K = 1 / (h - 1), p = 0; p < h; p++)
|
|
89370
|
+
H[J++] = p * K, H[J++] = 0;
|
|
89371
89371
|
for (p = f; p > 0; p--)
|
|
89372
|
-
H[
|
|
89372
|
+
H[J++] = (p - 1) * X, H[J++] = 1;
|
|
89373
89373
|
}
|
|
89374
89374
|
l.st = new GeometryAttribute({
|
|
89375
89375
|
componentDatatype: ComponentDatatype$1.FLOAT,
|
|
@@ -91632,7 +91632,7 @@ const ARRAY_TYPES = [
|
|
|
91632
91632
|
Uint32Array,
|
|
91633
91633
|
Float32Array,
|
|
91634
91634
|
Float64Array
|
|
91635
|
-
], VERSION = 1, HEADER_SIZE = 8;
|
|
91635
|
+
], VERSION = 1, HEADER_SIZE$1 = 8;
|
|
91636
91636
|
class KDBush {
|
|
91637
91637
|
/**
|
|
91638
91638
|
* Creates an index from raw `ArrayBuffer` data.
|
|
@@ -91666,7 +91666,7 @@ class KDBush {
|
|
|
91666
91666
|
const o = ARRAY_TYPES.indexOf(this.ArrayType), s = t * 2 * this.ArrayType.BYTES_PER_ELEMENT, c = t * this.IndexArrayType.BYTES_PER_ELEMENT, l = (8 - c % 8) % 8;
|
|
91667
91667
|
if (o < 0)
|
|
91668
91668
|
throw new Error(`Unexpected typed array class: ${i}.`);
|
|
91669
|
-
r && r instanceof ArrayBuffer ? (this.data = r, this.ids = new this.IndexArrayType(this.data, HEADER_SIZE, t), this.coords = new this.ArrayType(this.data, HEADER_SIZE + c + l, t * 2), this._pos = t * 2, this._finished = !0) : (this.data = new ArrayBuffer(HEADER_SIZE + s + c + l), this.ids = new this.IndexArrayType(this.data, HEADER_SIZE, t), this.coords = new this.ArrayType(this.data, HEADER_SIZE + c + l, t * 2), this._pos = 0, this._finished = !1, new Uint8Array(this.data, 0, 2).set([219, (VERSION << 4) + o]), new Uint16Array(this.data, 2, 1)[0] = n, new Uint32Array(this.data, 4, 1)[0] = t);
|
|
91669
|
+
r && r instanceof ArrayBuffer ? (this.data = r, this.ids = new this.IndexArrayType(this.data, HEADER_SIZE$1, t), this.coords = new this.ArrayType(this.data, HEADER_SIZE$1 + c + l, t * 2), this._pos = t * 2, this._finished = !0) : (this.data = new ArrayBuffer(HEADER_SIZE$1 + s + c + l), this.ids = new this.IndexArrayType(this.data, HEADER_SIZE$1, t), this.coords = new this.ArrayType(this.data, HEADER_SIZE$1 + c + l, t * 2), this._pos = 0, this._finished = !1, new Uint8Array(this.data, 0, 2).set([219, (VERSION << 4) + o]), new Uint16Array(this.data, 2, 1)[0] = n, new Uint32Array(this.data, 4, 1)[0] = t);
|
|
91670
91670
|
}
|
|
91671
91671
|
/**
|
|
91672
91672
|
* Add a point to the index.
|
|
@@ -99987,9 +99987,9 @@ EllipsoidGeometry.createGeometry = function(e) {
|
|
|
99987
99987
|
for (G = f * C, q = (f + 1) * C, h = 1; h < C - 2; h++)
|
|
99988
99988
|
g[p++] = q + h, g[p++] = q + h + 1, g[p++] = G + h + 1, g[p++] = q + h, g[p++] = G + h + 1, g[p++] = G + h;
|
|
99989
99989
|
if (b) {
|
|
99990
|
-
const
|
|
99990
|
+
const se = y * C;
|
|
99991
99991
|
for (f = 1; f < y - 2; f++)
|
|
99992
|
-
for (G =
|
|
99992
|
+
for (G = se + f * C, q = se + (f + 1) * C, h = 1; h < C - 2; h++)
|
|
99993
99993
|
g[p++] = q + h, g[p++] = G + h, g[p++] = G + h + 1, g[p++] = q + h, g[p++] = G + h + 1, g[p++] = q + h + 1;
|
|
99994
99994
|
}
|
|
99995
99995
|
let z, H;
|
|
@@ -100007,61 +100007,61 @@ EllipsoidGeometry.createGeometry = function(e) {
|
|
|
100007
100007
|
for (f = 1; f < y - 2; f++)
|
|
100008
100008
|
H = C * y + C * (f + 1) - 1, z = C * (f + 1) - 1, g[p++] = z + C, g[p++] = H, g[p++] = z, g[p++] = z + C, g[p++] = H + C, g[p++] = H;
|
|
100009
100009
|
}
|
|
100010
|
-
const
|
|
100011
|
-
c.position && (
|
|
100010
|
+
const K = new GeometryAttributes();
|
|
100011
|
+
c.position && (K.position = new GeometryAttribute({
|
|
100012
100012
|
componentDatatype: ComponentDatatype$1.DOUBLE,
|
|
100013
100013
|
componentsPerAttribute: 3,
|
|
100014
100014
|
values: P
|
|
100015
100015
|
}));
|
|
100016
|
-
let
|
|
100016
|
+
let X = 0, J = 0, ee = 0, te = 0;
|
|
100017
100017
|
const oe = D / 2;
|
|
100018
|
-
let
|
|
100019
|
-
const he = Ellipsoid.fromCartesian3(t),
|
|
100018
|
+
let Q;
|
|
100019
|
+
const he = Ellipsoid.fromCartesian3(t), ue = Ellipsoid.fromCartesian3(n);
|
|
100020
100020
|
if (c.st || c.normal || c.tangent || c.bitangent) {
|
|
100021
100021
|
for (f = 0; f < D; f++) {
|
|
100022
|
-
|
|
100023
|
-
const
|
|
100022
|
+
Q = I[f] ? ue : he;
|
|
100023
|
+
const se = Cartesian3.fromArray(P, f * 3, scratchPosition$7), _e = Q.geodeticSurfaceNormal(se, scratchNormal$4);
|
|
100024
100024
|
if (M[f] && Cartesian3.negate(_e, _e), c.st) {
|
|
100025
|
-
const
|
|
100026
|
-
F[
|
|
100027
|
-
}
|
|
100028
|
-
if (c.normal && (w[
|
|
100029
|
-
const
|
|
100030
|
-
let re = 0,
|
|
100031
|
-
if (I[f] && (re = oe), !S && f >= re && f < re + C * 2 ?
|
|
100032
|
-
const pe = Cartesian3.cross(_e,
|
|
100033
|
-
Cartesian3.normalize(pe, pe), N[
|
|
100025
|
+
const me = Cartesian2.negate(_e, scratchNormalST);
|
|
100026
|
+
F[X++] = Math.atan2(me.y, me.x) / CesiumMath.TWO_PI + 0.5, F[X++] = Math.asin(_e.z) / Math.PI + 0.5;
|
|
100027
|
+
}
|
|
100028
|
+
if (c.normal && (w[J++] = _e.x, w[J++] = _e.y, w[J++] = _e.z), c.tangent || c.bitangent) {
|
|
100029
|
+
const me = scratchTangent$2;
|
|
100030
|
+
let re = 0, xe;
|
|
100031
|
+
if (I[f] && (re = oe), !S && f >= re && f < re + C * 2 ? xe = Cartesian3.UNIT_X : xe = Cartesian3.UNIT_Z, Cartesian3.cross(xe, _e, me), Cartesian3.normalize(me, me), c.tangent && (O[ee++] = me.x, O[ee++] = me.y, O[ee++] = me.z), c.bitangent) {
|
|
100032
|
+
const pe = Cartesian3.cross(_e, me, scratchBitangent$2);
|
|
100033
|
+
Cartesian3.normalize(pe, pe), N[te++] = pe.x, N[te++] = pe.y, N[te++] = pe.z;
|
|
100034
100034
|
}
|
|
100035
100035
|
}
|
|
100036
100036
|
}
|
|
100037
|
-
c.st && (
|
|
100037
|
+
c.st && (K.st = new GeometryAttribute({
|
|
100038
100038
|
componentDatatype: ComponentDatatype$1.FLOAT,
|
|
100039
100039
|
componentsPerAttribute: 2,
|
|
100040
100040
|
values: F
|
|
100041
|
-
})), c.normal && (
|
|
100041
|
+
})), c.normal && (K.normal = new GeometryAttribute({
|
|
100042
100042
|
componentDatatype: ComponentDatatype$1.FLOAT,
|
|
100043
100043
|
componentsPerAttribute: 3,
|
|
100044
100044
|
values: w
|
|
100045
|
-
})), c.tangent && (
|
|
100045
|
+
})), c.tangent && (K.tangent = new GeometryAttribute({
|
|
100046
100046
|
componentDatatype: ComponentDatatype$1.FLOAT,
|
|
100047
100047
|
componentsPerAttribute: 3,
|
|
100048
100048
|
values: O
|
|
100049
|
-
})), c.bitangent && (
|
|
100049
|
+
})), c.bitangent && (K.bitangent = new GeometryAttribute({
|
|
100050
100050
|
componentDatatype: ComponentDatatype$1.FLOAT,
|
|
100051
100051
|
componentsPerAttribute: 3,
|
|
100052
100052
|
values: N
|
|
100053
100053
|
}));
|
|
100054
100054
|
}
|
|
100055
100055
|
if (defined(e._offsetAttribute)) {
|
|
100056
|
-
const
|
|
100057
|
-
|
|
100056
|
+
const se = P.length, _e = e._offsetAttribute === GeometryOffsetAttribute$1.NONE ? 0 : 1, me = new Uint8Array(se / 3).fill(_e);
|
|
100057
|
+
K.applyOffset = new GeometryAttribute({
|
|
100058
100058
|
componentDatatype: ComponentDatatype$1.UNSIGNED_BYTE,
|
|
100059
100059
|
componentsPerAttribute: 1,
|
|
100060
|
-
values:
|
|
100060
|
+
values: me
|
|
100061
100061
|
});
|
|
100062
100062
|
}
|
|
100063
100063
|
return new Geometry({
|
|
100064
|
-
attributes:
|
|
100064
|
+
attributes: K,
|
|
100065
100065
|
indices: g,
|
|
100066
100066
|
primitiveType: PrimitiveType$1.TRIANGLES,
|
|
100067
100067
|
boundingSphere: BoundingSphere.fromEllipsoid(he),
|
|
@@ -102068,11 +102068,11 @@ function constructExtrudedRectangle(e, t) {
|
|
|
102068
102068
|
const P = defined(i);
|
|
102069
102069
|
if (P) {
|
|
102070
102070
|
const re = m / 3 * 2;
|
|
102071
|
-
let
|
|
102072
|
-
i === GeometryOffsetAttribute$1.TOP ?
|
|
102071
|
+
let xe = new Uint8Array(re);
|
|
102072
|
+
i === GeometryOffsetAttribute$1.TOP ? xe = xe.fill(1, 0, re / 2) : (D = i === GeometryOffsetAttribute$1.NONE ? 0 : 1, xe = xe.fill(D)), h.attributes.applyOffset = new GeometryAttribute({
|
|
102073
102073
|
componentDatatype: ComponentDatatype$1.UNSIGNED_BYTE,
|
|
102074
102074
|
componentsPerAttribute: 1,
|
|
102075
|
-
values:
|
|
102075
|
+
values: xe
|
|
102076
102076
|
});
|
|
102077
102077
|
}
|
|
102078
102078
|
if (r.tangent) {
|
|
@@ -102102,93 +102102,93 @@ function constructExtrudedRectangle(e, t) {
|
|
|
102102
102102
|
let G = P ? new Uint8Array(U) : void 0, q = r.st ? new Float32Array(U * 2) : void 0;
|
|
102103
102103
|
const z = i === GeometryOffsetAttribute$1.TOP;
|
|
102104
102104
|
P && !z && (D = i === GeometryOffsetAttribute$1.ALL ? 1 : 0, G = G.fill(D));
|
|
102105
|
-
let H = 0,
|
|
102106
|
-
const
|
|
102107
|
-
let
|
|
102108
|
-
for (f = 0; f <
|
|
102109
|
-
|
|
102105
|
+
let H = 0, K = 0, X = 0, J = 0;
|
|
102106
|
+
const ee = d * O;
|
|
102107
|
+
let te;
|
|
102108
|
+
for (f = 0; f < ee; f += d)
|
|
102109
|
+
te = f * 3, k = addWallPositions(
|
|
102110
102110
|
k,
|
|
102111
102111
|
H,
|
|
102112
|
-
|
|
102112
|
+
te,
|
|
102113
102113
|
p,
|
|
102114
102114
|
C
|
|
102115
102115
|
), H += 6, r.st && (q = addWallTextureCoordinates(
|
|
102116
102116
|
q,
|
|
102117
|
-
|
|
102117
|
+
K,
|
|
102118
102118
|
f * 2,
|
|
102119
102119
|
E
|
|
102120
|
-
),
|
|
102120
|
+
), K += 4), n && (X += 3, $[X++] = A[te], $[X++] = A[te + 1], $[X++] = A[te + 2]), z && (G[J++] = 1, J += 1);
|
|
102121
102121
|
if (w) {
|
|
102122
|
-
const re = g ?
|
|
102123
|
-
for (
|
|
102122
|
+
const re = g ? ee + 1 : ee;
|
|
102123
|
+
for (te = re * 3, f = 0; f < 2; f++)
|
|
102124
102124
|
k = addWallPositions(
|
|
102125
102125
|
k,
|
|
102126
102126
|
H,
|
|
102127
|
-
|
|
102127
|
+
te,
|
|
102128
102128
|
p,
|
|
102129
102129
|
C
|
|
102130
102130
|
), H += 6, r.st && (q = addWallTextureCoordinates(
|
|
102131
102131
|
q,
|
|
102132
|
-
|
|
102132
|
+
K,
|
|
102133
102133
|
re * 2,
|
|
102134
102134
|
E
|
|
102135
|
-
),
|
|
102135
|
+
), K += 4), n && (X += 3, $[X++] = A[te], $[X++] = A[te + 1], $[X++] = A[te + 2]), z && (G[J++] = 1, J += 1);
|
|
102136
102136
|
} else
|
|
102137
|
-
for (f =
|
|
102138
|
-
|
|
102137
|
+
for (f = ee - d; f < ee; f++)
|
|
102138
|
+
te = f * 3, k = addWallPositions(
|
|
102139
102139
|
k,
|
|
102140
102140
|
H,
|
|
102141
|
-
|
|
102141
|
+
te,
|
|
102142
102142
|
p,
|
|
102143
102143
|
C
|
|
102144
102144
|
), H += 6, r.st && (q = addWallTextureCoordinates(
|
|
102145
102145
|
q,
|
|
102146
|
-
|
|
102146
|
+
K,
|
|
102147
102147
|
f * 2,
|
|
102148
102148
|
E
|
|
102149
|
-
),
|
|
102150
|
-
for (f =
|
|
102151
|
-
|
|
102149
|
+
), K += 4), n && (X += 3, $[X++] = A[te], $[X++] = A[te + 1], $[X++] = A[te + 2]), z && (G[J++] = 1, J += 1);
|
|
102150
|
+
for (f = ee - 1; f > 0; f -= d)
|
|
102151
|
+
te = f * 3, k = addWallPositions(
|
|
102152
102152
|
k,
|
|
102153
102153
|
H,
|
|
102154
|
-
|
|
102154
|
+
te,
|
|
102155
102155
|
p,
|
|
102156
102156
|
C
|
|
102157
102157
|
), H += 6, r.st && (q = addWallTextureCoordinates(
|
|
102158
102158
|
q,
|
|
102159
|
-
|
|
102159
|
+
K,
|
|
102160
102160
|
f * 2,
|
|
102161
102161
|
E
|
|
102162
|
-
),
|
|
102162
|
+
), K += 4), n && (X += 3, $[X++] = A[te], $[X++] = A[te + 1], $[X++] = A[te + 2]), z && (G[J++] = 1, J += 1);
|
|
102163
102163
|
if (g) {
|
|
102164
|
-
const re =
|
|
102165
|
-
for (
|
|
102164
|
+
const re = ee;
|
|
102165
|
+
for (te = re * 3, f = 0; f < 2; f++)
|
|
102166
102166
|
k = addWallPositions(
|
|
102167
102167
|
k,
|
|
102168
102168
|
H,
|
|
102169
|
-
|
|
102169
|
+
te,
|
|
102170
102170
|
p,
|
|
102171
102171
|
C
|
|
102172
102172
|
), H += 6, r.st && (q = addWallTextureCoordinates(
|
|
102173
102173
|
q,
|
|
102174
|
-
|
|
102174
|
+
K,
|
|
102175
102175
|
re * 2,
|
|
102176
102176
|
E
|
|
102177
|
-
),
|
|
102177
|
+
), K += 4), n && (X += 3, $[X++] = A[te], $[X++] = A[te + 1], $[X++] = A[te + 2]), z && (G[J++] = 1, J += 1);
|
|
102178
102178
|
} else
|
|
102179
102179
|
for (f = d - 1; f >= 0; f--)
|
|
102180
|
-
|
|
102180
|
+
te = f * 3, k = addWallPositions(
|
|
102181
102181
|
k,
|
|
102182
102182
|
H,
|
|
102183
|
-
|
|
102183
|
+
te,
|
|
102184
102184
|
p,
|
|
102185
102185
|
C
|
|
102186
102186
|
), H += 6, r.st && (q = addWallTextureCoordinates(
|
|
102187
102187
|
q,
|
|
102188
|
-
|
|
102188
|
+
K,
|
|
102189
102189
|
f * 2,
|
|
102190
102190
|
E
|
|
102191
|
-
),
|
|
102191
|
+
), K += 4), n && (X += 3, $[X++] = A[te], $[X++] = A[te + 1], $[X++] = A[te + 2]), z && (G[J++] = 1, J += 1);
|
|
102192
102192
|
let oe = calculateAttributesWall(k, r, c);
|
|
102193
102193
|
r.st && (oe.attributes.st = new GeometryAttribute({
|
|
102194
102194
|
componentDatatype: ComponentDatatype$1.FLOAT,
|
|
@@ -102203,19 +102203,19 @@ function constructExtrudedRectangle(e, t) {
|
|
|
102203
102203
|
componentsPerAttribute: 1,
|
|
102204
102204
|
values: G
|
|
102205
102205
|
}));
|
|
102206
|
-
const
|
|
102206
|
+
const Q = IndexDatatype$1.createTypedArray(
|
|
102207
102207
|
U,
|
|
102208
102208
|
F * 6
|
|
102209
102209
|
);
|
|
102210
|
-
let he,
|
|
102210
|
+
let he, ue, se, _e;
|
|
102211
102211
|
m = k.length / 3;
|
|
102212
|
-
let
|
|
102212
|
+
let me = 0;
|
|
102213
102213
|
for (f = 0; f < m - 1; f += 2) {
|
|
102214
102214
|
he = f, _e = (he + 2) % m;
|
|
102215
|
-
const re = Cartesian3.fromArray(k, he * 3, v1Scratch),
|
|
102216
|
-
Cartesian3.equalsEpsilon(re,
|
|
102215
|
+
const re = Cartesian3.fromArray(k, he * 3, v1Scratch), xe = Cartesian3.fromArray(k, _e * 3, v2Scratch);
|
|
102216
|
+
Cartesian3.equalsEpsilon(re, xe, CesiumMath.EPSILON10) || (ue = (he + 1) % m, se = (ue + 2) % m, Q[me++] = he, Q[me++] = ue, Q[me++] = _e, Q[me++] = _e, Q[me++] = ue, Q[me++] = se);
|
|
102217
102217
|
}
|
|
102218
|
-
return oe.indices =
|
|
102218
|
+
return oe.indices = Q, oe = GeometryPipeline.combineInstances([
|
|
102219
102219
|
new GeometryInstance({
|
|
102220
102220
|
geometry: h
|
|
102221
102221
|
}),
|
|
@@ -106008,8 +106008,8 @@ PolylineGeometry.createGeometry = function(e) {
|
|
|
106008
106008
|
G,
|
|
106009
106009
|
z,
|
|
106010
106010
|
q
|
|
106011
|
-
),
|
|
106012
|
-
for (d = 0; d <
|
|
106011
|
+
), K = H.length;
|
|
106012
|
+
for (d = 0; d < K; ++d)
|
|
106013
106013
|
V[U++] = H[d];
|
|
106014
106014
|
} else
|
|
106015
106015
|
for (d = 0; d < q; ++d)
|
|
@@ -108586,21 +108586,21 @@ function parseMatches(e, t) {
|
|
|
108586
108586
|
H(_, p);
|
|
108587
108587
|
break;
|
|
108588
108588
|
case 26:
|
|
108589
|
-
|
|
108589
|
+
K(_, p);
|
|
108590
108590
|
break;
|
|
108591
108591
|
case 27:
|
|
108592
|
-
|
|
108592
|
+
X(_, p);
|
|
108593
108593
|
break;
|
|
108594
108594
|
// Hashtag states
|
|
108595
108595
|
case 28:
|
|
108596
|
-
|
|
108596
|
+
J(_, p);
|
|
108597
108597
|
break;
|
|
108598
108598
|
case 29:
|
|
108599
|
-
|
|
108599
|
+
ee(_, p);
|
|
108600
108600
|
break;
|
|
108601
108601
|
// Mention states
|
|
108602
108602
|
case 30:
|
|
108603
|
-
|
|
108603
|
+
te(_, p);
|
|
108604
108604
|
break;
|
|
108605
108605
|
case 31:
|
|
108606
108606
|
oe(_, p);
|
|
@@ -108610,31 +108610,31 @@ function parseMatches(e, t) {
|
|
|
108610
108610
|
he(_, p);
|
|
108611
108611
|
break;
|
|
108612
108612
|
case 33:
|
|
108613
|
-
|
|
108613
|
+
ue(_, p);
|
|
108614
108614
|
break;
|
|
108615
108615
|
case 34:
|
|
108616
|
-
|
|
108616
|
+
se(_, p);
|
|
108617
108617
|
break;
|
|
108618
108618
|
case 35:
|
|
108619
108619
|
_e(_, p);
|
|
108620
108620
|
break;
|
|
108621
108621
|
case 36:
|
|
108622
|
-
|
|
108622
|
+
me(_, p);
|
|
108623
108623
|
break;
|
|
108624
108624
|
case 37:
|
|
108625
|
-
|
|
108625
|
+
Q(_, p);
|
|
108626
108626
|
break;
|
|
108627
108627
|
case 38:
|
|
108628
108628
|
re(_, p);
|
|
108629
108629
|
break;
|
|
108630
108630
|
case 39:
|
|
108631
|
-
|
|
108631
|
+
xe(_, p);
|
|
108632
108632
|
break;
|
|
108633
108633
|
case 40:
|
|
108634
108634
|
pe(_, p);
|
|
108635
108635
|
break;
|
|
108636
108636
|
case 41:
|
|
108637
|
-
|
|
108637
|
+
Ce(_, p);
|
|
108638
108638
|
break;
|
|
108639
108639
|
default:
|
|
108640
108640
|
assertNever(_.state);
|
|
@@ -108643,7 +108643,7 @@ function parseMatches(e, t) {
|
|
|
108643
108643
|
}
|
|
108644
108644
|
for (var y = f.length - 1; y >= 0; y--)
|
|
108645
108645
|
f.forEach(function(W) {
|
|
108646
|
-
return
|
|
108646
|
+
return be(W);
|
|
108647
108647
|
});
|
|
108648
108648
|
return l;
|
|
108649
108649
|
function C(W) {
|
|
@@ -108719,7 +108719,7 @@ function parseMatches(e, t) {
|
|
|
108719
108719
|
))) : remove$1(f, W);
|
|
108720
108720
|
}
|
|
108721
108721
|
function S(W, j) {
|
|
108722
|
-
j === "/" ? W.state = 4 : isPathChar(j) ? (W.state = 10, W.acceptStateReached = !0) :
|
|
108722
|
+
j === "/" ? W.state = 4 : isPathChar(j) ? (W.state = 10, W.acceptStateReached = !0) : be(W);
|
|
108723
108723
|
}
|
|
108724
108724
|
function E(W, j) {
|
|
108725
108725
|
j === "/" ? W.state = 10 : isDomainLabelStartChar(j) ? (W.state = 5, W.acceptStateReached = !0) : remove$1(f, W);
|
|
@@ -108731,28 +108731,28 @@ function parseMatches(e, t) {
|
|
|
108731
108731
|
isDomainLabelStartChar(j) ? W.state = 5 : remove$1(f, W);
|
|
108732
108732
|
}
|
|
108733
108733
|
function P(W, j) {
|
|
108734
|
-
j === "." ? W.state = 7 : j === "-" ? W.state = 6 : j === ":" ? W.state = 8 : isUrlSuffixStartChar(j) ? W.state = 10 : isDomainLabelChar(j) ||
|
|
108734
|
+
j === "." ? W.state = 7 : j === "-" ? W.state = 6 : j === ":" ? W.state = 8 : isUrlSuffixStartChar(j) ? W.state = 10 : isDomainLabelChar(j) || be(W);
|
|
108735
108735
|
}
|
|
108736
108736
|
function I(W, j) {
|
|
108737
|
-
j === "-" || (j === "." ?
|
|
108737
|
+
j === "-" || (j === "." ? be(W) : isDomainLabelStartChar(j) ? W.state = 5 : be(W));
|
|
108738
108738
|
}
|
|
108739
108739
|
function M(W, j) {
|
|
108740
|
-
j === "." ?
|
|
108740
|
+
j === "." ? be(W) : isDomainLabelStartChar(j) ? (W.state = 5, W.acceptStateReached = !0) : be(W);
|
|
108741
108741
|
}
|
|
108742
108742
|
function R(W, j) {
|
|
108743
|
-
j === "." ? W.state = 14 : j === ":" ? W.state = 8 : digitRe.test(j) || (isUrlSuffixStartChar(j) ? W.state = 10 : alphaNumericAndMarksRe.test(j) ? remove$1(f, W) :
|
|
108743
|
+
j === "." ? W.state = 14 : j === ":" ? W.state = 8 : digitRe.test(j) || (isUrlSuffixStartChar(j) ? W.state = 10 : alphaNumericAndMarksRe.test(j) ? remove$1(f, W) : be(W));
|
|
108744
108744
|
}
|
|
108745
108745
|
function L(W, j) {
|
|
108746
|
-
digitRe.test(j) ? (W.octetsEncountered++, W.octetsEncountered === 4 && (W.acceptStateReached = !0), W.state = 13) :
|
|
108746
|
+
digitRe.test(j) ? (W.octetsEncountered++, W.octetsEncountered === 4 && (W.acceptStateReached = !0), W.state = 13) : be(W);
|
|
108747
108747
|
}
|
|
108748
108748
|
function g(W, j) {
|
|
108749
|
-
digitRe.test(j) ? W.state = 9 :
|
|
108749
|
+
digitRe.test(j) ? W.state = 9 : be(W);
|
|
108750
108750
|
}
|
|
108751
108751
|
function w(W, j) {
|
|
108752
|
-
digitRe.test(j) || (isUrlSuffixStartChar(j) ? W.state = 10 :
|
|
108752
|
+
digitRe.test(j) || (isUrlSuffixStartChar(j) ? W.state = 10 : be(W));
|
|
108753
108753
|
}
|
|
108754
108754
|
function O(W, j) {
|
|
108755
|
-
isPathChar(j) ||
|
|
108755
|
+
isPathChar(j) || be(W);
|
|
108756
108756
|
}
|
|
108757
108757
|
function N(W, j) {
|
|
108758
108758
|
j.toLowerCase() === "a" ? W.state = 16 : G(W, j);
|
|
@@ -108785,87 +108785,87 @@ function parseMatches(e, t) {
|
|
|
108785
108785
|
isDomainLabelStartChar(j) ? W.state = 25 : remove$1(f, W);
|
|
108786
108786
|
}
|
|
108787
108787
|
function H(W, j) {
|
|
108788
|
-
j === "." ? W.state = 27 : j === "-" ? W.state = 26 : isDomainLabelChar(j) ||
|
|
108788
|
+
j === "." ? W.state = 27 : j === "-" ? W.state = 26 : isDomainLabelChar(j) || be(W);
|
|
108789
108789
|
}
|
|
108790
|
-
function
|
|
108791
|
-
j === "-" || j === "." ?
|
|
108790
|
+
function K(W, j) {
|
|
108791
|
+
j === "-" || j === "." ? be(W) : isDomainLabelChar(j) ? W.state = 25 : be(W);
|
|
108792
108792
|
}
|
|
108793
|
-
function
|
|
108794
|
-
j === "." || j === "-" ?
|
|
108793
|
+
function X(W, j) {
|
|
108794
|
+
j === "." || j === "-" ? be(W) : isDomainLabelStartChar(j) ? (W.state = 25, W.acceptStateReached = !0) : be(W);
|
|
108795
108795
|
}
|
|
108796
|
-
function
|
|
108796
|
+
function J(W, j) {
|
|
108797
108797
|
isHashtagTextChar(j) ? (W.state = 29, W.acceptStateReached = !0) : remove$1(f, W);
|
|
108798
108798
|
}
|
|
108799
|
-
function Z(W, j) {
|
|
108800
|
-
isHashtagTextChar(j) || xe(W);
|
|
108801
|
-
}
|
|
108802
108799
|
function ee(W, j) {
|
|
108800
|
+
isHashtagTextChar(j) || be(W);
|
|
108801
|
+
}
|
|
108802
|
+
function te(W, j) {
|
|
108803
108803
|
isMentionTextChar(j) ? (W.state = 31, W.acceptStateReached = !0) : remove$1(f, W);
|
|
108804
108804
|
}
|
|
108805
108805
|
function oe(W, j) {
|
|
108806
|
-
isMentionTextChar(j) || (alphaNumericAndMarksRe.test(j) ? remove$1(f, W) :
|
|
108806
|
+
isMentionTextChar(j) || (alphaNumericAndMarksRe.test(j) ? remove$1(f, W) : be(W));
|
|
108807
108807
|
}
|
|
108808
|
-
function
|
|
108808
|
+
function Q(W, j) {
|
|
108809
108809
|
digitRe.test(j) ? W.state = 38 : (remove$1(f, W), C(j));
|
|
108810
108810
|
}
|
|
108811
108811
|
function he(W, j) {
|
|
108812
108812
|
digitRe.test(j) ? W.state = 33 : remove$1(f, W), C(j);
|
|
108813
108813
|
}
|
|
108814
|
-
function
|
|
108814
|
+
function ue(W, j) {
|
|
108815
108815
|
digitRe.test(j) ? W.state = 34 : remove$1(f, W);
|
|
108816
108816
|
}
|
|
108817
|
-
function
|
|
108817
|
+
function se(W, j) {
|
|
108818
108818
|
digitRe.test(j) ? W.state = 35 : remove$1(f, W);
|
|
108819
108819
|
}
|
|
108820
108820
|
function _e(W, j) {
|
|
108821
108821
|
j === ")" ? W.state = 36 : remove$1(f, W);
|
|
108822
108822
|
}
|
|
108823
|
-
function
|
|
108823
|
+
function me(W, j) {
|
|
108824
108824
|
digitRe.test(j) ? W.state = 38 : isPhoneNumberSeparatorChar(j) ? W.state = 39 : remove$1(f, W);
|
|
108825
108825
|
}
|
|
108826
108826
|
function re(W, j) {
|
|
108827
|
-
W.acceptStateReached = !0, isPhoneNumberControlChar(j) ? W.state = 40 : j === "#" ? W.state = 41 : digitRe.test(j) || (j === "(" ? W.state = 32 : isPhoneNumberSeparatorChar(j) ? W.state = 39 : (
|
|
108827
|
+
W.acceptStateReached = !0, isPhoneNumberControlChar(j) ? W.state = 40 : j === "#" ? W.state = 41 : digitRe.test(j) || (j === "(" ? W.state = 32 : isPhoneNumberSeparatorChar(j) ? W.state = 39 : (be(W), isSchemeStartChar(j) && f.push(createSchemeUrlStateMachine(
|
|
108828
108828
|
h,
|
|
108829
108829
|
0
|
|
108830
108830
|
/* SchemeChar */
|
|
108831
108831
|
))));
|
|
108832
108832
|
}
|
|
108833
|
-
function
|
|
108834
|
-
digitRe.test(j) ? W.state = 38 : j === "(" ? W.state = 32 : (
|
|
108833
|
+
function xe(W, j) {
|
|
108834
|
+
digitRe.test(j) ? W.state = 38 : j === "(" ? W.state = 32 : (be(W), C(j));
|
|
108835
108835
|
}
|
|
108836
108836
|
function pe(W, j) {
|
|
108837
|
-
isPhoneNumberControlChar(j) || (j === "#" ? W.state = 41 : digitRe.test(j) ? W.state = 38 :
|
|
108837
|
+
isPhoneNumberControlChar(j) || (j === "#" ? W.state = 41 : digitRe.test(j) ? W.state = 38 : be(W));
|
|
108838
108838
|
}
|
|
108839
|
-
function
|
|
108840
|
-
isPhoneNumberControlChar(j) ? W.state = 40 : digitRe.test(j) ? remove$1(f, W) :
|
|
108839
|
+
function Ce(W, j) {
|
|
108840
|
+
isPhoneNumberControlChar(j) ? W.state = 40 : digitRe.test(j) ? remove$1(f, W) : be(W);
|
|
108841
108841
|
}
|
|
108842
|
-
function
|
|
108842
|
+
function be(W) {
|
|
108843
108843
|
if (remove$1(f, W), !!W.acceptStateReached) {
|
|
108844
|
-
var j = W.startIdx,
|
|
108845
|
-
if (
|
|
108846
|
-
var
|
|
108847
|
-
if (
|
|
108844
|
+
var j = W.startIdx, ce = e.slice(W.startIdx, h);
|
|
108845
|
+
if (ce = excludeUnbalancedTrailingBracesAndPunctuation(ce), W.type === "url") {
|
|
108846
|
+
var Ee = e.charAt(W.startIdx - 1);
|
|
108847
|
+
if (Ee === "@")
|
|
108848
108848
|
return;
|
|
108849
108849
|
var le = W.matchType;
|
|
108850
108850
|
if (le === "scheme") {
|
|
108851
|
-
var De = httpSchemeRe.exec(
|
|
108852
|
-
if (De && (j = j + De.index,
|
|
108851
|
+
var De = httpSchemeRe.exec(ce);
|
|
108852
|
+
if (De && (j = j + De.index, ce = ce.slice(De.index)), !isValidSchemeUrl(ce))
|
|
108853
108853
|
return;
|
|
108854
108854
|
} else if (le === "tld") {
|
|
108855
|
-
if (!isValidTldMatch(
|
|
108855
|
+
if (!isValidTldMatch(ce))
|
|
108856
108856
|
return;
|
|
108857
108857
|
} else if (le === "ipV4") {
|
|
108858
|
-
if (!isValidIpV4Address(
|
|
108858
|
+
if (!isValidIpV4Address(ce))
|
|
108859
108859
|
return;
|
|
108860
108860
|
} else
|
|
108861
108861
|
assertNever(le);
|
|
108862
108862
|
l.push(new UrlMatch({
|
|
108863
108863
|
tagBuilder: n,
|
|
108864
|
-
matchedText:
|
|
108864
|
+
matchedText: ce,
|
|
108865
108865
|
offset: j,
|
|
108866
108866
|
urlMatchType: le,
|
|
108867
|
-
url:
|
|
108868
|
-
protocolRelativeMatch:
|
|
108867
|
+
url: ce,
|
|
108868
|
+
protocolRelativeMatch: ce.slice(0, 2) === "//",
|
|
108869
108869
|
// TODO: Do these settings need to be passed to the match,
|
|
108870
108870
|
// or should we handle them here in UrlMatcher?
|
|
108871
108871
|
stripPrefix: i,
|
|
@@ -108873,38 +108873,38 @@ function parseMatches(e, t) {
|
|
|
108873
108873
|
decodePercentEncoding: o
|
|
108874
108874
|
}));
|
|
108875
108875
|
} else if (W.type === "email")
|
|
108876
|
-
isValidEmail(
|
|
108876
|
+
isValidEmail(ce) && l.push(new EmailMatch({
|
|
108877
108877
|
tagBuilder: n,
|
|
108878
|
-
matchedText:
|
|
108878
|
+
matchedText: ce,
|
|
108879
108879
|
offset: j,
|
|
108880
|
-
email:
|
|
108880
|
+
email: ce.replace(mailtoSchemePrefixRe, "")
|
|
108881
108881
|
}));
|
|
108882
108882
|
else if (W.type === "hashtag")
|
|
108883
|
-
isValidHashtag(
|
|
108883
|
+
isValidHashtag(ce) && l.push(new HashtagMatch({
|
|
108884
108884
|
tagBuilder: n,
|
|
108885
|
-
matchedText:
|
|
108885
|
+
matchedText: ce,
|
|
108886
108886
|
offset: j,
|
|
108887
108887
|
serviceName: s,
|
|
108888
|
-
hashtag:
|
|
108888
|
+
hashtag: ce.slice(1)
|
|
108889
108889
|
}));
|
|
108890
108890
|
else if (W.type === "mention")
|
|
108891
|
-
isValidMention(
|
|
108891
|
+
isValidMention(ce, c) && l.push(new MentionMatch({
|
|
108892
108892
|
tagBuilder: n,
|
|
108893
|
-
matchedText:
|
|
108893
|
+
matchedText: ce,
|
|
108894
108894
|
offset: j,
|
|
108895
108895
|
serviceName: c,
|
|
108896
|
-
mention:
|
|
108896
|
+
mention: ce.slice(1)
|
|
108897
108897
|
// strip off the '@' character at the beginning
|
|
108898
108898
|
}));
|
|
108899
108899
|
else if (W.type === "phone") {
|
|
108900
|
-
if (
|
|
108901
|
-
var Re =
|
|
108900
|
+
if (ce = ce.replace(/ +$/g, ""), isValidPhoneNumber(ce)) {
|
|
108901
|
+
var Re = ce.replace(/[^0-9,;#]/g, "");
|
|
108902
108902
|
l.push(new PhoneMatch({
|
|
108903
108903
|
tagBuilder: n,
|
|
108904
|
-
matchedText:
|
|
108904
|
+
matchedText: ce,
|
|
108905
108905
|
offset: j,
|
|
108906
108906
|
number: Re,
|
|
108907
|
-
plusSign:
|
|
108907
|
+
plusSign: ce.charAt(0) === "+"
|
|
108908
108908
|
}));
|
|
108909
108909
|
}
|
|
108910
108910
|
} else
|
|
@@ -110327,190 +110327,190 @@ function Deflate() {
|
|
|
110327
110327
|
e.depth = [];
|
|
110328
110328
|
let k, $, G, q, z, H;
|
|
110329
110329
|
e.bl_count = [], e.heap = [], O = [], N = [], F = [];
|
|
110330
|
-
function
|
|
110330
|
+
function K() {
|
|
110331
110331
|
d = 2 * o, h[m - 1] = 0;
|
|
110332
|
-
for (let
|
|
110333
|
-
h[
|
|
110332
|
+
for (let Z = 0; Z < m - 1; Z++)
|
|
110333
|
+
h[Z] = 0;
|
|
110334
110334
|
M = config_table[R].max_lazy, g = config_table[R].good_length, w = config_table[R].nice_length, I = config_table[R].max_chain, E = 0, T = 0, D = 0, x = P = MIN_MATCH - 1, S = 0, p = 0;
|
|
110335
110335
|
}
|
|
110336
|
-
function
|
|
110337
|
-
let
|
|
110338
|
-
for (
|
|
110339
|
-
O[
|
|
110340
|
-
for (
|
|
110341
|
-
N[
|
|
110342
|
-
for (
|
|
110343
|
-
F[
|
|
110336
|
+
function X() {
|
|
110337
|
+
let Z;
|
|
110338
|
+
for (Z = 0; Z < L_CODES; Z++)
|
|
110339
|
+
O[Z * 2] = 0;
|
|
110340
|
+
for (Z = 0; Z < D_CODES; Z++)
|
|
110341
|
+
N[Z * 2] = 0;
|
|
110342
|
+
for (Z = 0; Z < BL_CODES; Z++)
|
|
110343
|
+
F[Z * 2] = 0;
|
|
110344
110344
|
O[END_BLOCK * 2] = 1, e.opt_len = e.static_len = 0, $ = G = 0;
|
|
110345
110345
|
}
|
|
110346
|
-
function
|
|
110347
|
-
B.dyn_tree = O, B.stat_desc = StaticTree.static_l_desc, V.dyn_tree = N, V.stat_desc = StaticTree.static_d_desc, U.dyn_tree = F, U.stat_desc = StaticTree.static_bl_desc, z = 0, H = 0, q = 8,
|
|
110348
|
-
}
|
|
110349
|
-
e.pqdownheap = function(
|
|
110350
|
-
const
|
|
110351
|
-
let
|
|
110352
|
-
for (;
|
|
110353
|
-
|
|
110354
|
-
|
|
110346
|
+
function J() {
|
|
110347
|
+
B.dyn_tree = O, B.stat_desc = StaticTree.static_l_desc, V.dyn_tree = N, V.stat_desc = StaticTree.static_d_desc, U.dyn_tree = F, U.stat_desc = StaticTree.static_bl_desc, z = 0, H = 0, q = 8, X();
|
|
110348
|
+
}
|
|
110349
|
+
e.pqdownheap = function(Z, ae) {
|
|
110350
|
+
const ne = e.heap, ie = ne[ae];
|
|
110351
|
+
let de = ae << 1;
|
|
110352
|
+
for (; de <= e.heap_len && (de < e.heap_len && smaller(Z, ne[de + 1], ne[de], e.depth) && de++, !smaller(Z, ie, ne[de], e.depth)); )
|
|
110353
|
+
ne[ae] = ne[de], ae = de, de <<= 1;
|
|
110354
|
+
ne[ae] = ie;
|
|
110355
110355
|
};
|
|
110356
|
-
function Z
|
|
110357
|
-
let
|
|
110358
|
-
|
|
110356
|
+
function ee(Z, ae) {
|
|
110357
|
+
let ne = -1, ie, de = Z[0 * 2 + 1], ge = 0, Se = 7, Ie = 4;
|
|
110358
|
+
de === 0 && (Se = 138, Ie = 3), Z[(ae + 1) * 2 + 1] = 65535;
|
|
110359
110359
|
for (let we = 0; we <= ae; we++)
|
|
110360
|
-
ie =
|
|
110360
|
+
ie = de, de = Z[(we + 1) * 2 + 1], !(++ge < Se && ie == de) && (ge < Ie ? F[ie * 2] += ge : ie !== 0 ? (ie != ne && F[ie * 2]++, F[REP_3_6 * 2]++) : ge <= 10 ? F[REPZ_3_10 * 2]++ : F[REPZ_11_138 * 2]++, ge = 0, ne = ie, de === 0 ? (Se = 138, Ie = 3) : ie == de ? (Se = 6, Ie = 3) : (Se = 7, Ie = 4));
|
|
110361
110361
|
}
|
|
110362
|
-
function
|
|
110363
|
-
let
|
|
110364
|
-
for (
|
|
110362
|
+
function te() {
|
|
110363
|
+
let Z;
|
|
110364
|
+
for (ee(O, B.max_code), ee(N, V.max_code), U.build_tree(e), Z = BL_CODES - 1; Z >= 3 && F[Tree.bl_order[Z] * 2 + 1] === 0; Z--)
|
|
110365
110365
|
;
|
|
110366
|
-
return e.opt_len += 3 * (
|
|
110366
|
+
return e.opt_len += 3 * (Z + 1) + 5 + 5 + 4, Z;
|
|
110367
110367
|
}
|
|
110368
|
-
function oe(
|
|
110369
|
-
e.pending_buf[e.pending++] =
|
|
110368
|
+
function oe(Z) {
|
|
110369
|
+
e.pending_buf[e.pending++] = Z;
|
|
110370
110370
|
}
|
|
110371
|
-
function
|
|
110372
|
-
oe(
|
|
110371
|
+
function Q(Z) {
|
|
110372
|
+
oe(Z & 255), oe(Z >>> 8 & 255);
|
|
110373
110373
|
}
|
|
110374
|
-
function he(
|
|
110375
|
-
oe(
|
|
110374
|
+
function he(Z) {
|
|
110375
|
+
oe(Z >> 8 & 255), oe(Z & 255 & 255);
|
|
110376
110376
|
}
|
|
110377
|
-
function
|
|
110378
|
-
let
|
|
110377
|
+
function ue(Z, ae) {
|
|
110378
|
+
let ne;
|
|
110379
110379
|
const ie = ae;
|
|
110380
|
-
H > Buf_size - ie ? (
|
|
110380
|
+
H > Buf_size - ie ? (ne = Z, z |= ne << H & 65535, Q(z), z = ne >>> Buf_size - H, H += ie - Buf_size) : (z |= Z << H & 65535, H += ie);
|
|
110381
110381
|
}
|
|
110382
|
-
function
|
|
110383
|
-
const
|
|
110384
|
-
|
|
110382
|
+
function se(Z, ae) {
|
|
110383
|
+
const ne = Z * 2;
|
|
110384
|
+
ue(ae[ne] & 65535, ae[ne + 1] & 65535);
|
|
110385
110385
|
}
|
|
110386
|
-
function _e(
|
|
110387
|
-
let
|
|
110388
|
-
for (
|
|
110389
|
-
if (
|
|
110390
|
-
if (
|
|
110386
|
+
function _e(Z, ae) {
|
|
110387
|
+
let ne, ie = -1, de, ge = Z[0 * 2 + 1], Se = 0, Ie = 7, we = 4;
|
|
110388
|
+
for (ge === 0 && (Ie = 138, we = 3), ne = 0; ne <= ae; ne++)
|
|
110389
|
+
if (de = ge, ge = Z[(ne + 1) * 2 + 1], !(++Se < Ie && de == ge)) {
|
|
110390
|
+
if (Se < we)
|
|
110391
110391
|
do
|
|
110392
|
-
|
|
110393
|
-
while (--
|
|
110394
|
-
else
|
|
110395
|
-
|
|
110392
|
+
se(de, F);
|
|
110393
|
+
while (--Se !== 0);
|
|
110394
|
+
else de !== 0 ? (de != ie && (se(de, F), Se--), se(REP_3_6, F), ue(Se - 3, 2)) : Se <= 10 ? (se(REPZ_3_10, F), ue(Se - 3, 3)) : (se(REPZ_11_138, F), ue(Se - 11, 7));
|
|
110395
|
+
Se = 0, ie = de, ge === 0 ? (Ie = 138, we = 3) : de == ge ? (Ie = 6, we = 3) : (Ie = 7, we = 4);
|
|
110396
110396
|
}
|
|
110397
110397
|
}
|
|
110398
|
-
function
|
|
110398
|
+
function me(Z, ae, ne) {
|
|
110399
110399
|
let ie;
|
|
110400
|
-
for (
|
|
110401
|
-
|
|
110402
|
-
_e(O,
|
|
110400
|
+
for (ue(Z - 257, 5), ue(ae - 1, 5), ue(ne - 4, 4), ie = 0; ie < ne; ie++)
|
|
110401
|
+
ue(F[Tree.bl_order[ie] * 2 + 1], 3);
|
|
110402
|
+
_e(O, Z - 1), _e(N, ae - 1);
|
|
110403
110403
|
}
|
|
110404
110404
|
function re() {
|
|
110405
|
-
H == 16 ? (
|
|
110406
|
-
}
|
|
110407
|
-
function Se() {
|
|
110408
|
-
de(STATIC_TREES << 1, 3), ce(END_BLOCK, StaticTree.static_ltree), re(), 1 + q + 10 - H < 9 && (de(STATIC_TREES << 1, 3), ce(END_BLOCK, StaticTree.static_ltree), re()), q = 7;
|
|
110405
|
+
H == 16 ? (Q(z), z = 0, H = 0) : H >= 8 && (oe(z & 255), z >>>= 8, H -= 8);
|
|
110409
110406
|
}
|
|
110410
|
-
function
|
|
110411
|
-
|
|
110412
|
-
|
|
110413
|
-
|
|
110414
|
-
|
|
110415
|
-
|
|
110407
|
+
function xe() {
|
|
110408
|
+
ue(STATIC_TREES << 1, 3), se(END_BLOCK, StaticTree.static_ltree), re(), 1 + q + 10 - H < 9 && (ue(STATIC_TREES << 1, 3), se(END_BLOCK, StaticTree.static_ltree), re()), q = 7;
|
|
110409
|
+
}
|
|
110410
|
+
function pe(Z, ae) {
|
|
110411
|
+
let ne, ie, de;
|
|
110412
|
+
if (e.dist_buf[$] = Z, e.lc_buf[$] = ae & 255, $++, Z === 0 ? O[ae * 2]++ : (G++, Z--, O[(Tree._length_code[ae] + LITERALS + 1) * 2]++, N[Tree.d_code(Z) * 2]++), ($ & 8191) === 0 && R > 2) {
|
|
110413
|
+
for (ne = $ * 8, ie = E - T, de = 0; de < D_CODES; de++)
|
|
110414
|
+
ne += N[de * 2] * (5 + Tree.extra_dbits[de]);
|
|
110415
|
+
if (ne >>>= 3, G < Math.floor($ / 2) && ne < Math.floor(ie / 2))
|
|
110416
110416
|
return !0;
|
|
110417
110417
|
}
|
|
110418
110418
|
return $ == k - 1;
|
|
110419
110419
|
}
|
|
110420
|
-
function
|
|
110421
|
-
let
|
|
110420
|
+
function Ce(Z, ae) {
|
|
110421
|
+
let ne, ie, de = 0, ge, Se;
|
|
110422
110422
|
if ($ !== 0)
|
|
110423
110423
|
do
|
|
110424
|
-
|
|
110425
|
-
while (
|
|
110426
|
-
|
|
110424
|
+
ne = e.dist_buf[de], ie = e.lc_buf[de], de++, ne === 0 ? se(ie, Z) : (ge = Tree._length_code[ie], se(ge + LITERALS + 1, Z), Se = Tree.extra_lbits[ge], Se !== 0 && (ie -= Tree.base_length[ge], ue(ie, Se)), ne--, ge = Tree.d_code(ne), se(ge, ae), Se = Tree.extra_dbits[ge], Se !== 0 && (ne -= Tree.base_dist[ge], ue(ne, Se)));
|
|
110425
|
+
while (de < $);
|
|
110426
|
+
se(END_BLOCK, Z), q = Z[END_BLOCK * 2 + 1];
|
|
110427
110427
|
}
|
|
110428
|
-
function
|
|
110429
|
-
H > 8 ?
|
|
110428
|
+
function be() {
|
|
110429
|
+
H > 8 ? Q(z) : H > 0 && oe(z & 255), z = 0, H = 0;
|
|
110430
110430
|
}
|
|
110431
|
-
function W(
|
|
110432
|
-
|
|
110431
|
+
function W(Z, ae, ne) {
|
|
110432
|
+
be(), q = 8, Q(ae), Q(~ae), e.pending_buf.set(l.subarray(Z, Z + ae), e.pending), e.pending += ae;
|
|
110433
110433
|
}
|
|
110434
|
-
function j(
|
|
110435
|
-
|
|
110434
|
+
function j(Z, ae, ne) {
|
|
110435
|
+
ue((STORED_BLOCK << 1) + (ne ? 1 : 0), 3), W(Z, ae);
|
|
110436
110436
|
}
|
|
110437
|
-
function
|
|
110438
|
-
let ie,
|
|
110439
|
-
R > 0 ? (B.build_tree(e), V.build_tree(e),
|
|
110437
|
+
function ce(Z, ae, ne) {
|
|
110438
|
+
let ie, de, ge = 0;
|
|
110439
|
+
R > 0 ? (B.build_tree(e), V.build_tree(e), ge = te(), ie = e.opt_len + 3 + 7 >>> 3, de = e.static_len + 3 + 7 >>> 3, de <= ie && (ie = de)) : ie = de = ae + 5, ae + 4 <= ie && Z != -1 ? j(Z, ae, ne) : de == ie ? (ue((STATIC_TREES << 1) + (ne ? 1 : 0), 3), Ce(StaticTree.static_ltree, StaticTree.static_dtree)) : (ue((DYN_TREES << 1) + (ne ? 1 : 0), 3), me(B.max_code + 1, V.max_code + 1, ge + 1), Ce(O, N)), X(), ne && be();
|
|
110440
110440
|
}
|
|
110441
|
-
function
|
|
110442
|
-
|
|
110441
|
+
function Ee(Z) {
|
|
110442
|
+
ce(T >= 0 ? T : -1, E - T, Z), T = E, t.flush_pending();
|
|
110443
110443
|
}
|
|
110444
110444
|
function le() {
|
|
110445
|
-
let
|
|
110445
|
+
let Z, ae, ne, ie;
|
|
110446
110446
|
do {
|
|
110447
110447
|
if (ie = d - D - E, ie === 0 && E === 0 && D === 0)
|
|
110448
110448
|
ie = o;
|
|
110449
110449
|
else if (ie == -1)
|
|
110450
110450
|
ie--;
|
|
110451
110451
|
else if (E >= o + o - MIN_LOOKAHEAD) {
|
|
110452
|
-
l.set(l.subarray(o, o + o), 0), A -= o, E -= o, T -= o,
|
|
110452
|
+
l.set(l.subarray(o, o + o), 0), A -= o, E -= o, T -= o, Z = m, ne = Z;
|
|
110453
110453
|
do
|
|
110454
|
-
ae = h[--
|
|
110455
|
-
while (--
|
|
110456
|
-
|
|
110454
|
+
ae = h[--ne] & 65535, h[ne] = ae >= o ? ae - o : 0;
|
|
110455
|
+
while (--Z !== 0);
|
|
110456
|
+
Z = o, ne = Z;
|
|
110457
110457
|
do
|
|
110458
|
-
ae = f[--
|
|
110459
|
-
while (--
|
|
110458
|
+
ae = f[--ne] & 65535, f[ne] = ae >= o ? ae - o : 0;
|
|
110459
|
+
while (--Z !== 0);
|
|
110460
110460
|
ie += o;
|
|
110461
110461
|
}
|
|
110462
110462
|
if (t.avail_in === 0)
|
|
110463
110463
|
return;
|
|
110464
|
-
|
|
110464
|
+
Z = t.read_buf(l, E + D, ie), D += Z, D >= MIN_MATCH && (p = l[E] & 255, p = (p << C ^ l[E + 1] & 255) & y);
|
|
110465
110465
|
} while (D < MIN_LOOKAHEAD && t.avail_in !== 0);
|
|
110466
110466
|
}
|
|
110467
|
-
function De(
|
|
110468
|
-
let ae = 65535,
|
|
110467
|
+
function De(Z) {
|
|
110468
|
+
let ae = 65535, ne;
|
|
110469
110469
|
for (ae > i - 5 && (ae = i - 5); ; ) {
|
|
110470
110470
|
if (D <= 1) {
|
|
110471
|
-
if (le(), D === 0 &&
|
|
110471
|
+
if (le(), D === 0 && Z == Z_NO_FLUSH$1)
|
|
110472
110472
|
return NeedMore;
|
|
110473
110473
|
if (D === 0)
|
|
110474
110474
|
break;
|
|
110475
110475
|
}
|
|
110476
|
-
if (E += D, D = 0,
|
|
110476
|
+
if (E += D, D = 0, ne = T + ae, (E === 0 || E >= ne) && (D = E - ne, E = ne, Ee(!1), t.avail_out === 0) || E - T >= o - MIN_LOOKAHEAD && (Ee(!1), t.avail_out === 0))
|
|
110477
110477
|
return NeedMore;
|
|
110478
110478
|
}
|
|
110479
|
-
return
|
|
110479
|
+
return Ee(Z == Z_FINISH$1), t.avail_out === 0 ? Z == Z_FINISH$1 ? FinishStarted : NeedMore : Z == Z_FINISH$1 ? FinishDone : BlockDone;
|
|
110480
110480
|
}
|
|
110481
|
-
function Re(
|
|
110482
|
-
let ae = I,
|
|
110483
|
-
const
|
|
110481
|
+
function Re(Z) {
|
|
110482
|
+
let ae = I, ne = E, ie, de, ge = P;
|
|
110483
|
+
const Se = E > o - MIN_LOOKAHEAD ? E - (o - MIN_LOOKAHEAD) : 0;
|
|
110484
110484
|
let Ie = w;
|
|
110485
110485
|
const we = c, He = E + MAX_MATCH;
|
|
110486
|
-
let We = l[
|
|
110486
|
+
let We = l[ne + ge - 1], Pe = l[ne + ge];
|
|
110487
110487
|
P >= g && (ae >>= 2), Ie > D && (Ie = D);
|
|
110488
110488
|
do
|
|
110489
|
-
if (ie =
|
|
110490
|
-
|
|
110489
|
+
if (ie = Z, !(l[ie + ge] != Pe || l[ie + ge - 1] != We || l[ie] != l[ne] || l[++ie] != l[ne + 1])) {
|
|
110490
|
+
ne += 2, ie++;
|
|
110491
110491
|
do
|
|
110492
110492
|
;
|
|
110493
|
-
while (l[++
|
|
110494
|
-
if (
|
|
110495
|
-
if (A =
|
|
110493
|
+
while (l[++ne] == l[++ie] && l[++ne] == l[++ie] && l[++ne] == l[++ie] && l[++ne] == l[++ie] && l[++ne] == l[++ie] && l[++ne] == l[++ie] && l[++ne] == l[++ie] && l[++ne] == l[++ie] && ne < He);
|
|
110494
|
+
if (de = MAX_MATCH - (He - ne), ne = He - MAX_MATCH, de > ge) {
|
|
110495
|
+
if (A = Z, ge = de, de >= Ie)
|
|
110496
110496
|
break;
|
|
110497
|
-
We = l[
|
|
110497
|
+
We = l[ne + ge - 1], Pe = l[ne + ge];
|
|
110498
110498
|
}
|
|
110499
110499
|
}
|
|
110500
|
-
while ((
|
|
110501
|
-
return
|
|
110500
|
+
while ((Z = f[Z & we] & 65535) > Se && --ae !== 0);
|
|
110501
|
+
return ge <= D ? ge : D;
|
|
110502
110502
|
}
|
|
110503
|
-
function Ge(
|
|
110504
|
-
let ae = 0,
|
|
110503
|
+
function Ge(Z) {
|
|
110504
|
+
let ae = 0, ne;
|
|
110505
110505
|
for (; ; ) {
|
|
110506
110506
|
if (D < MIN_LOOKAHEAD) {
|
|
110507
|
-
if (le(), D < MIN_LOOKAHEAD &&
|
|
110507
|
+
if (le(), D < MIN_LOOKAHEAD && Z == Z_NO_FLUSH$1)
|
|
110508
110508
|
return NeedMore;
|
|
110509
110509
|
if (D === 0)
|
|
110510
110510
|
break;
|
|
110511
110511
|
}
|
|
110512
110512
|
if (D >= MIN_MATCH && (p = (p << C ^ l[E + (MIN_MATCH - 1)] & 255) & y, ae = h[p] & 65535, f[E & c] = h[p], h[p] = E), ae !== 0 && (E - ae & 65535) <= o - MIN_LOOKAHEAD && L != Z_HUFFMAN_ONLY && (x = Re(ae)), x >= MIN_MATCH)
|
|
110513
|
-
if (
|
|
110513
|
+
if (ne = pe(E - A, x - MIN_MATCH), D -= x, x <= M && D >= MIN_MATCH) {
|
|
110514
110514
|
x--;
|
|
110515
110515
|
do
|
|
110516
110516
|
E++, p = (p << C ^ l[E + (MIN_MATCH - 1)] & 255) & y, ae = h[p] & 65535, f[E & c] = h[p], h[p] = E;
|
|
@@ -110519,90 +110519,90 @@ function Deflate() {
|
|
|
110519
110519
|
} else
|
|
110520
110520
|
E += x, x = 0, p = l[E] & 255, p = (p << C ^ l[E + 1] & 255) & y;
|
|
110521
110521
|
else
|
|
110522
|
-
|
|
110523
|
-
if (
|
|
110522
|
+
ne = pe(0, l[E] & 255), D--, E++;
|
|
110523
|
+
if (ne && (Ee(!1), t.avail_out === 0))
|
|
110524
110524
|
return NeedMore;
|
|
110525
110525
|
}
|
|
110526
|
-
return
|
|
110526
|
+
return Ee(Z == Z_FINISH$1), t.avail_out === 0 ? Z == Z_FINISH$1 ? FinishStarted : NeedMore : Z == Z_FINISH$1 ? FinishDone : BlockDone;
|
|
110527
110527
|
}
|
|
110528
|
-
function Le(
|
|
110529
|
-
let ae = 0,
|
|
110528
|
+
function Le(Z) {
|
|
110529
|
+
let ae = 0, ne, ie;
|
|
110530
110530
|
for (; ; ) {
|
|
110531
110531
|
if (D < MIN_LOOKAHEAD) {
|
|
110532
|
-
if (le(), D < MIN_LOOKAHEAD &&
|
|
110532
|
+
if (le(), D < MIN_LOOKAHEAD && Z == Z_NO_FLUSH$1)
|
|
110533
110533
|
return NeedMore;
|
|
110534
110534
|
if (D === 0)
|
|
110535
110535
|
break;
|
|
110536
110536
|
}
|
|
110537
110537
|
if (D >= MIN_MATCH && (p = (p << C ^ l[E + (MIN_MATCH - 1)] & 255) & y, ae = h[p] & 65535, f[E & c] = h[p], h[p] = E), P = x, b = A, x = MIN_MATCH - 1, ae !== 0 && P < M && (E - ae & 65535) <= o - MIN_LOOKAHEAD && (L != Z_HUFFMAN_ONLY && (x = Re(ae)), x <= 5 && (L == Z_FILTERED || x == MIN_MATCH && E - A > 4096) && (x = MIN_MATCH - 1)), P >= MIN_MATCH && x <= P) {
|
|
110538
|
-
ie = E + D - MIN_MATCH,
|
|
110538
|
+
ie = E + D - MIN_MATCH, ne = pe(E - 1 - b, P - MIN_MATCH), D -= P - 1, P -= 2;
|
|
110539
110539
|
do
|
|
110540
110540
|
++E <= ie && (p = (p << C ^ l[E + (MIN_MATCH - 1)] & 255) & y, ae = h[p] & 65535, f[E & c] = h[p], h[p] = E);
|
|
110541
110541
|
while (--P !== 0);
|
|
110542
|
-
if (S = 0, x = MIN_MATCH - 1, E++,
|
|
110542
|
+
if (S = 0, x = MIN_MATCH - 1, E++, ne && (Ee(!1), t.avail_out === 0))
|
|
110543
110543
|
return NeedMore;
|
|
110544
110544
|
} else if (S !== 0) {
|
|
110545
|
-
if (
|
|
110545
|
+
if (ne = pe(0, l[E - 1] & 255), ne && Ee(!1), E++, D--, t.avail_out === 0)
|
|
110546
110546
|
return NeedMore;
|
|
110547
110547
|
} else
|
|
110548
110548
|
S = 1, E++, D--;
|
|
110549
110549
|
}
|
|
110550
|
-
return S !== 0 && (
|
|
110550
|
+
return S !== 0 && (ne = pe(0, l[E - 1] & 255), S = 0), Ee(Z == Z_FINISH$1), t.avail_out === 0 ? Z == Z_FINISH$1 ? FinishStarted : NeedMore : Z == Z_FINISH$1 ? FinishDone : BlockDone;
|
|
110551
110551
|
}
|
|
110552
|
-
function Ue(
|
|
110553
|
-
return
|
|
110552
|
+
function Ue(Z) {
|
|
110553
|
+
return Z.total_in = Z.total_out = 0, Z.msg = null, e.pending = 0, e.pending_out = 0, n = BUSY_STATE, r = Z_NO_FLUSH$1, J(), K(), Z_OK$1;
|
|
110554
110554
|
}
|
|
110555
|
-
e.deflateInit = function(
|
|
110556
|
-
return ie || (ie = Z_DEFLATED$1),
|
|
110555
|
+
e.deflateInit = function(Z, ae, ne, ie, de, ge) {
|
|
110556
|
+
return ie || (ie = Z_DEFLATED$1), de || (de = DEF_MEM_LEVEL), ge || (ge = Z_DEFAULT_STRATEGY), Z.msg = null, ae == Z_DEFAULT_COMPRESSION && (ae = 6), de < 1 || de > MAX_MEM_LEVEL || ie != Z_DEFLATED$1 || ne < 9 || ne > 15 || ae < 0 || ae > 9 || ge < 0 || ge > Z_HUFFMAN_ONLY ? Z_STREAM_ERROR$1 : (Z.dstate = e, s = ne, o = 1 << s, c = o - 1, _ = de + 7, m = 1 << _, y = m - 1, C = Math.floor((_ + MIN_MATCH - 1) / MIN_MATCH), l = new Uint8Array(o * 2), f = [], h = [], k = 1 << de + 6, e.pending_buf = new Uint8Array(k * 4), i = k * 4, e.dist_buf = new Uint16Array(k), e.lc_buf = new Uint8Array(k), R = ae, L = ge, Ue(Z));
|
|
110557
110557
|
}, e.deflateEnd = function() {
|
|
110558
110558
|
return n != INIT_STATE && n != BUSY_STATE && n != FINISH_STATE ? Z_STREAM_ERROR$1 : (e.lc_buf = null, e.dist_buf = null, e.pending_buf = null, h = null, f = null, l = null, e.dstate = null, n == BUSY_STATE ? Z_DATA_ERROR$1 : Z_OK$1);
|
|
110559
|
-
}, e.deflateParams = function(
|
|
110559
|
+
}, e.deflateParams = function(Z, ae, ne) {
|
|
110560
110560
|
let ie = Z_OK$1;
|
|
110561
|
-
return ae == Z_DEFAULT_COMPRESSION && (ae = 6), ae < 0 || ae > 9 ||
|
|
110562
|
-
}, e.deflateSetDictionary = function(
|
|
110563
|
-
let ie =
|
|
110561
|
+
return ae == Z_DEFAULT_COMPRESSION && (ae = 6), ae < 0 || ae > 9 || ne < 0 || ne > Z_HUFFMAN_ONLY ? Z_STREAM_ERROR$1 : (config_table[R].func != config_table[ae].func && Z.total_in !== 0 && (ie = Z.deflate(Z_PARTIAL_FLUSH)), R != ae && (R = ae, M = config_table[R].max_lazy, g = config_table[R].good_length, w = config_table[R].nice_length, I = config_table[R].max_chain), L = ne, ie);
|
|
110562
|
+
}, e.deflateSetDictionary = function(Z, ae, ne) {
|
|
110563
|
+
let ie = ne, de, ge = 0;
|
|
110564
110564
|
if (!ae || n != INIT_STATE)
|
|
110565
110565
|
return Z_STREAM_ERROR$1;
|
|
110566
110566
|
if (ie < MIN_MATCH)
|
|
110567
110567
|
return Z_OK$1;
|
|
110568
|
-
for (ie > o - MIN_LOOKAHEAD && (ie = o - MIN_LOOKAHEAD,
|
|
110569
|
-
p = (p << C ^ l[
|
|
110568
|
+
for (ie > o - MIN_LOOKAHEAD && (ie = o - MIN_LOOKAHEAD, ge = ne - ie), l.set(ae.subarray(ge, ge + ie), 0), E = ie, T = ie, p = l[0] & 255, p = (p << C ^ l[1] & 255) & y, de = 0; de <= ie - MIN_MATCH; de++)
|
|
110569
|
+
p = (p << C ^ l[de + (MIN_MATCH - 1)] & 255) & y, f[de & c] = h[p], h[p] = de;
|
|
110570
110570
|
return Z_OK$1;
|
|
110571
|
-
}, e.deflate = function(
|
|
110572
|
-
let
|
|
110571
|
+
}, e.deflate = function(Z, ae) {
|
|
110572
|
+
let ne, ie, de, ge, Se;
|
|
110573
110573
|
if (ae > Z_FINISH$1 || ae < 0)
|
|
110574
110574
|
return Z_STREAM_ERROR$1;
|
|
110575
|
-
if (!
|
|
110576
|
-
return
|
|
110577
|
-
if (
|
|
110578
|
-
return
|
|
110579
|
-
if (t =
|
|
110575
|
+
if (!Z.next_out || !Z.next_in && Z.avail_in !== 0 || n == FINISH_STATE && ae != Z_FINISH$1)
|
|
110576
|
+
return Z.msg = z_errmsg[Z_NEED_DICT$1 - Z_STREAM_ERROR$1], Z_STREAM_ERROR$1;
|
|
110577
|
+
if (Z.avail_out === 0)
|
|
110578
|
+
return Z.msg = z_errmsg[Z_NEED_DICT$1 - Z_BUF_ERROR$1], Z_BUF_ERROR$1;
|
|
110579
|
+
if (t = Z, ge = r, r = ae, n == INIT_STATE && (ie = Z_DEFLATED$1 + (s - 8 << 4) << 8, de = (R - 1 & 255) >> 1, de > 3 && (de = 3), ie |= de << 6, E !== 0 && (ie |= PRESET_DICT$1), ie += 31 - ie % 31, n = BUSY_STATE, he(ie)), e.pending !== 0) {
|
|
110580
110580
|
if (t.flush_pending(), t.avail_out === 0)
|
|
110581
110581
|
return r = -1, Z_OK$1;
|
|
110582
|
-
} else if (t.avail_in === 0 && ae <=
|
|
110582
|
+
} else if (t.avail_in === 0 && ae <= ge && ae != Z_FINISH$1)
|
|
110583
110583
|
return t.msg = z_errmsg[Z_NEED_DICT$1 - Z_BUF_ERROR$1], Z_BUF_ERROR$1;
|
|
110584
110584
|
if (n == FINISH_STATE && t.avail_in !== 0)
|
|
110585
|
-
return
|
|
110585
|
+
return Z.msg = z_errmsg[Z_NEED_DICT$1 - Z_BUF_ERROR$1], Z_BUF_ERROR$1;
|
|
110586
110586
|
if (t.avail_in !== 0 || D !== 0 || ae != Z_NO_FLUSH$1 && n != FINISH_STATE) {
|
|
110587
|
-
switch (
|
|
110587
|
+
switch (Se = -1, config_table[R].func) {
|
|
110588
110588
|
case STORED$1:
|
|
110589
|
-
|
|
110589
|
+
Se = De(ae);
|
|
110590
110590
|
break;
|
|
110591
110591
|
case FAST:
|
|
110592
|
-
|
|
110592
|
+
Se = Ge(ae);
|
|
110593
110593
|
break;
|
|
110594
110594
|
case SLOW:
|
|
110595
|
-
|
|
110595
|
+
Se = Le(ae);
|
|
110596
110596
|
break;
|
|
110597
110597
|
}
|
|
110598
|
-
if ((
|
|
110598
|
+
if ((Se == FinishStarted || Se == FinishDone) && (n = FINISH_STATE), Se == NeedMore || Se == FinishStarted)
|
|
110599
110599
|
return t.avail_out === 0 && (r = -1), Z_OK$1;
|
|
110600
|
-
if (
|
|
110600
|
+
if (Se == BlockDone) {
|
|
110601
110601
|
if (ae == Z_PARTIAL_FLUSH)
|
|
110602
|
-
|
|
110602
|
+
xe();
|
|
110603
110603
|
else if (j(0, 0, !1), ae == Z_FULL_FLUSH)
|
|
110604
|
-
for (
|
|
110605
|
-
h[
|
|
110604
|
+
for (ne = 0; ne < m; ne++)
|
|
110605
|
+
h[ne] = 0;
|
|
110606
110606
|
if (t.flush_pending(), t.avail_out === 0)
|
|
110607
110607
|
return r = -1, Z_OK$1;
|
|
110608
110608
|
}
|
|
@@ -113066,7 +113066,7 @@ function ZipInflate(e) {
|
|
|
113066
113066
|
n.inflateEnd();
|
|
113067
113067
|
};
|
|
113068
113068
|
}
|
|
113069
|
-
const MAX_32_BITS = 4294967295, MAX_16_BITS = 65535, COMPRESSION_METHOD_DEFLATE = 8, COMPRESSION_METHOD_STORE = 0, COMPRESSION_METHOD_AES = 99, LOCAL_FILE_HEADER_SIGNATURE = 67324752, SPLIT_ZIP_FILE_SIGNATURE = 134695760, DATA_DESCRIPTOR_RECORD_SIGNATURE = SPLIT_ZIP_FILE_SIGNATURE, CENTRAL_FILE_HEADER_SIGNATURE = 33639248, END_OF_CENTRAL_DIR_SIGNATURE = 101010256, ZIP64_END_OF_CENTRAL_DIR_SIGNATURE = 101075792, ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIGNATURE = 117853008, END_OF_CENTRAL_DIR_LENGTH = 22, ZIP64_END_OF_CENTRAL_DIR_LOCATOR_LENGTH = 20, ZIP64_END_OF_CENTRAL_DIR_LENGTH = 56, ZIP64_END_OF_CENTRAL_DIR_TOTAL_LENGTH = END_OF_CENTRAL_DIR_LENGTH + ZIP64_END_OF_CENTRAL_DIR_LOCATOR_LENGTH + ZIP64_END_OF_CENTRAL_DIR_LENGTH, EXTRAFIELD_TYPE_ZIP64 = 1, EXTRAFIELD_TYPE_AES = 39169, EXTRAFIELD_TYPE_NTFS = 10, EXTRAFIELD_TYPE_NTFS_TAG1 = 1, EXTRAFIELD_TYPE_EXTENDED_TIMESTAMP = 21589, EXTRAFIELD_TYPE_UNICODE_PATH = 28789, EXTRAFIELD_TYPE_UNICODE_COMMENT = 25461, EXTRAFIELD_TYPE_USDZ = 6534, BITFLAG_ENCRYPTED = 1, BITFLAG_LEVEL = 6, BITFLAG_DATA_DESCRIPTOR = 8, BITFLAG_LANG_ENCODING_FLAG = 2048, FILE_ATTR_MSDOS_DIR_MASK = 16, VERSION_DEFLATE = 20, VERSION_ZIP64 = 45, VERSION_AES = 51, DIRECTORY_SIGNATURE = "/", MAX_DATE = new Date(2107, 11, 31), MIN_DATE = new Date(1980, 0, 1), UNDEFINED_VALUE = void 0, UNDEFINED_TYPE = "undefined", FUNCTION_TYPE = "function";
|
|
113069
|
+
const MAX_32_BITS = 4294967295, MAX_16_BITS = 65535, COMPRESSION_METHOD_DEFLATE = 8, COMPRESSION_METHOD_DEFLATE_64 = 9, COMPRESSION_METHOD_STORE = 0, COMPRESSION_METHOD_AES = 99, LOCAL_FILE_HEADER_SIGNATURE = 67324752, SPLIT_ZIP_FILE_SIGNATURE = 134695760, DATA_DESCRIPTOR_RECORD_SIGNATURE = SPLIT_ZIP_FILE_SIGNATURE, CENTRAL_FILE_HEADER_SIGNATURE = 33639248, END_OF_CENTRAL_DIR_SIGNATURE = 101010256, ZIP64_END_OF_CENTRAL_DIR_SIGNATURE = 101075792, ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIGNATURE = 117853008, END_OF_CENTRAL_DIR_LENGTH = 22, ZIP64_END_OF_CENTRAL_DIR_LOCATOR_LENGTH = 20, ZIP64_END_OF_CENTRAL_DIR_LENGTH = 56, ZIP64_END_OF_CENTRAL_DIR_TOTAL_LENGTH = END_OF_CENTRAL_DIR_LENGTH + ZIP64_END_OF_CENTRAL_DIR_LOCATOR_LENGTH + ZIP64_END_OF_CENTRAL_DIR_LENGTH, EXTRAFIELD_TYPE_ZIP64 = 1, EXTRAFIELD_TYPE_AES = 39169, EXTRAFIELD_TYPE_NTFS = 10, EXTRAFIELD_TYPE_NTFS_TAG1 = 1, EXTRAFIELD_TYPE_EXTENDED_TIMESTAMP = 21589, EXTRAFIELD_TYPE_UNICODE_PATH = 28789, EXTRAFIELD_TYPE_UNICODE_COMMENT = 25461, EXTRAFIELD_TYPE_USDZ = 6534, BITFLAG_ENCRYPTED = 1, BITFLAG_LEVEL = 6, BITFLAG_LEVEL_MAX_MASK = 2, BITFLAG_LEVEL_FAST_MASK = 4, BITFLAG_LEVEL_SUPER_FAST_MASK = 6, BITFLAG_DATA_DESCRIPTOR = 8, BITFLAG_LANG_ENCODING_FLAG = 2048, FILE_ATTR_MSDOS_DIR_MASK = 16, FILE_ATTR_UNIX_TYPE_MASK = 61440, FILE_ATTR_UNIX_TYPE_DIR = 16384, FILE_ATTR_UNIX_EXECUTABLE_MASK = 73, FILE_ATTR_UNIX_DEFAULT_MASK = 420, VERSION_DEFLATE = 20, VERSION_ZIP64 = 45, VERSION_AES = 51, DIRECTORY_SIGNATURE = "/", HEADER_SIZE = 26, HEADER_OFFSET_SIGNATURE = 10, HEADER_OFFSET_COMPRESSED_SIZE = 14, HEADER_OFFSET_UNCOMPRESSED_SIZE = 18, MAX_DATE = new Date(2107, 11, 31), MIN_DATE = new Date(1980, 0, 1), UNDEFINED_VALUE = void 0, UNDEFINED_TYPE = "undefined", FUNCTION_TYPE = "function";
|
|
113070
113070
|
class StreamAdapter {
|
|
113071
113071
|
constructor(t) {
|
|
113072
113072
|
return class extends TransformStream {
|
|
@@ -113879,33 +113879,32 @@ class CodecStream extends TransformStream {
|
|
|
113879
113879
|
super({});
|
|
113880
113880
|
const i = this, { codecType: r } = t;
|
|
113881
113881
|
let o;
|
|
113882
|
-
r.startsWith(CODEC_DEFLATE) ? o = DeflateStream : r.startsWith(CODEC_INFLATE) && (o = InflateStream);
|
|
113883
|
-
let s = 0
|
|
113884
|
-
const
|
|
113885
|
-
transform(
|
|
113886
|
-
|
|
113882
|
+
r.startsWith(CODEC_DEFLATE) ? o = DeflateStream : r.startsWith(CODEC_INFLATE) && (o = InflateStream), i.outputSize = 0;
|
|
113883
|
+
let s = 0;
|
|
113884
|
+
const c = new o(t, n), l = super.readable, d = new TransformStream({
|
|
113885
|
+
transform(h, p) {
|
|
113886
|
+
h && h.length && (s += h.length, p.enqueue(h));
|
|
113887
113887
|
},
|
|
113888
113888
|
flush() {
|
|
113889
113889
|
Object.assign(i, {
|
|
113890
|
-
inputSize:
|
|
113890
|
+
inputSize: s
|
|
113891
113891
|
});
|
|
113892
113892
|
}
|
|
113893
|
-
}),
|
|
113894
|
-
transform(
|
|
113895
|
-
|
|
113893
|
+
}), f = new TransformStream({
|
|
113894
|
+
transform(h, p) {
|
|
113895
|
+
h && h.length && (p.enqueue(h), i.outputSize += h.length);
|
|
113896
113896
|
},
|
|
113897
113897
|
flush() {
|
|
113898
|
-
const { signature:
|
|
113898
|
+
const { signature: h } = c;
|
|
113899
113899
|
Object.assign(i, {
|
|
113900
|
-
signature:
|
|
113901
|
-
|
|
113902
|
-
inputSize: c
|
|
113900
|
+
signature: h,
|
|
113901
|
+
inputSize: s
|
|
113903
113902
|
});
|
|
113904
113903
|
}
|
|
113905
113904
|
});
|
|
113906
113905
|
Object.defineProperty(i, "readable", {
|
|
113907
113906
|
get() {
|
|
113908
|
-
return
|
|
113907
|
+
return l.pipeThrough(d).pipeThrough(c).pipeThrough(f);
|
|
113909
113908
|
}
|
|
113910
113909
|
});
|
|
113911
113910
|
}
|
|
@@ -113934,7 +113933,7 @@ class CodecWorker {
|
|
|
113934
113933
|
const { signal: h } = s;
|
|
113935
113934
|
return Object.assign(t, {
|
|
113936
113935
|
busy: !0,
|
|
113937
|
-
readable: n.pipeThrough(new ChunkStream(o.chunkSize)).pipeThrough(new ProgressWatcherStream(
|
|
113936
|
+
readable: n.pipeThrough(new ChunkStream(o.chunkSize)).pipeThrough(new ProgressWatcherStream(s), { signal: h }),
|
|
113938
113937
|
writable: i,
|
|
113939
113938
|
options: Object.assign({}, r),
|
|
113940
113939
|
scripts: d,
|
|
@@ -113953,17 +113952,17 @@ class CodecWorker {
|
|
|
113953
113952
|
}
|
|
113954
113953
|
}
|
|
113955
113954
|
class ProgressWatcherStream extends TransformStream {
|
|
113956
|
-
constructor(
|
|
113957
|
-
let
|
|
113955
|
+
constructor({ onstart: t, onprogress: n, size: i, onend: r }) {
|
|
113956
|
+
let o = 0;
|
|
113958
113957
|
super({
|
|
113959
113958
|
async start() {
|
|
113960
|
-
|
|
113959
|
+
t && await callHandler(t, i);
|
|
113961
113960
|
},
|
|
113962
|
-
async transform(
|
|
113963
|
-
|
|
113961
|
+
async transform(s, c) {
|
|
113962
|
+
o += s.length, n && await callHandler(n, o, i), c.enqueue(s);
|
|
113964
113963
|
},
|
|
113965
113964
|
async flush() {
|
|
113966
|
-
|
|
113965
|
+
r && await callHandler(r, o);
|
|
113967
113966
|
}
|
|
113968
113967
|
});
|
|
113969
113968
|
}
|
|
@@ -113998,9 +113997,9 @@ function createWebWorkerInterface(e, t) {
|
|
|
113998
113997
|
return e.interface;
|
|
113999
113998
|
}
|
|
114000
113999
|
async function runWorker$1({ options: e, readable: t, writable: n, onTaskFinished: i }, r) {
|
|
114000
|
+
let o;
|
|
114001
114001
|
try {
|
|
114002
|
-
|
|
114003
|
-
await t.pipeThrough(o).pipeTo(n, { preventClose: !0, preventAbort: !0 });
|
|
114002
|
+
o = new CodecStream(e, r), await t.pipeThrough(o).pipeTo(n, { preventClose: !0, preventAbort: !0 });
|
|
114004
114003
|
const {
|
|
114005
114004
|
signature: s,
|
|
114006
114005
|
inputSize: c,
|
|
@@ -114011,6 +114010,8 @@ async function runWorker$1({ options: e, readable: t, writable: n, onTaskFinishe
|
|
|
114011
114010
|
inputSize: c,
|
|
114012
114011
|
outputSize: l
|
|
114013
114012
|
};
|
|
114013
|
+
} catch (s) {
|
|
114014
|
+
throw o && (s.outputSize = o.outputSize), s;
|
|
114014
114015
|
} finally {
|
|
114015
114016
|
i();
|
|
114016
114017
|
}
|
|
@@ -114080,8 +114081,7 @@ function getWebWorker(e, t, n) {
|
|
|
114080
114081
|
}
|
|
114081
114082
|
function sendMessage(e, { worker: t, writer: n, onTaskFinished: i, transferStreams: r }) {
|
|
114082
114083
|
try {
|
|
114083
|
-
|
|
114084
|
-
const l = [];
|
|
114084
|
+
const { value: o, readable: s, writable: c } = e, l = [];
|
|
114085
114085
|
if (o && (o.byteLength < o.buffer.byteLength ? e.value = o.buffer.slice(0, o.byteLength) : e.value = o.buffer, l.push(e.value)), r && transferStreamsSupported ? (s && l.push(s), c && l.push(c)) : e.readable = e.writable = null, l.length)
|
|
114086
114086
|
try {
|
|
114087
114087
|
return t.postMessage(e, l), !0;
|
|
@@ -114098,8 +114098,8 @@ async function onMessage({ data: e }, t) {
|
|
|
114098
114098
|
const { type: n, value: i, messageId: r, result: o, error: s } = e, { reader: c, writer: l, resolveResult: d, rejectResult: f, onTaskFinished: h } = t;
|
|
114099
114099
|
try {
|
|
114100
114100
|
if (s) {
|
|
114101
|
-
const { message: m, stack: _, code: y, name: C } = s,
|
|
114102
|
-
Object.assign(
|
|
114101
|
+
const { message: m, stack: _, code: y, name: C, outputSize: T } = s, x = new Error(m);
|
|
114102
|
+
Object.assign(x, { stack: _, code: y, name: C, outputSize: T }), p(x);
|
|
114103
114103
|
} else {
|
|
114104
114104
|
if (n == MESSAGE_PULL) {
|
|
114105
114105
|
const { value: m, done: _ } = await c.read();
|
|
@@ -114153,7 +114153,7 @@ function clearTerminateTimeout(e) {
|
|
|
114153
114153
|
const { terminateTimeout: t } = e;
|
|
114154
114154
|
t && (clearTimeout(t), e.terminateTimeout = null);
|
|
114155
114155
|
}
|
|
114156
|
-
const ERR_ITERATOR_COMPLETED_TOO_SOON = "Writer iterator completed too soon", CONTENT_TYPE_TEXT_PLAIN = "text/plain", HTTP_HEADER_CONTENT_TYPE = "Content-Type", DEFAULT_CHUNK_SIZE = 64 * 1024, PROPERTY_NAME_WRITABLE = "writable";
|
|
114156
|
+
const ERR_ITERATOR_COMPLETED_TOO_SOON = "Writer iterator completed too soon", ERR_WRITER_NOT_INITIALIZED = "Writer not initialized", CONTENT_TYPE_TEXT_PLAIN = "text/plain", HTTP_HEADER_CONTENT_TYPE = "Content-Type", DEFAULT_CHUNK_SIZE = 64 * 1024, PROPERTY_NAME_WRITABLE = "writable";
|
|
114157
114157
|
class Stream {
|
|
114158
114158
|
constructor() {
|
|
114159
114159
|
this.size = 0;
|
|
@@ -114169,8 +114169,8 @@ class Reader extends Stream {
|
|
|
114169
114169
|
this.chunkOffset = 0;
|
|
114170
114170
|
},
|
|
114171
114171
|
async pull(r) {
|
|
114172
|
-
const { offset: o = 0, size: s, diskNumberStart: c } = i, { chunkOffset: l } = this;
|
|
114173
|
-
r.enqueue(
|
|
114172
|
+
const { offset: o = 0, size: s, diskNumberStart: c } = i, { chunkOffset: l } = this, d = s === UNDEFINED_VALUE ? n : Math.min(n, s - l), f = await readUint8Array(t, o + l, d, c);
|
|
114173
|
+
r.enqueue(f), l + n > s || s === UNDEFINED_VALUE && !f.length && d ? r.close() : this.chunkOffset += n;
|
|
114174
114174
|
}
|
|
114175
114175
|
});
|
|
114176
114176
|
return i;
|
|
@@ -114181,6 +114181,8 @@ class Writer extends Stream {
|
|
|
114181
114181
|
super();
|
|
114182
114182
|
const t = this, n = new WritableStream({
|
|
114183
114183
|
write(i) {
|
|
114184
|
+
if (!t.initialized)
|
|
114185
|
+
throw new Error(ERR_WRITER_NOT_INITIALIZED);
|
|
114184
114186
|
return t.writeUint8Array(i);
|
|
114185
114187
|
}
|
|
114186
114188
|
});
|
|
@@ -114286,15 +114288,23 @@ class SplitDataReader extends Reader {
|
|
|
114286
114288
|
let s, c = i;
|
|
114287
114289
|
c == -1 && (c = o.length - 1);
|
|
114288
114290
|
let l = t;
|
|
114289
|
-
for (; l >= o[c].size; )
|
|
114291
|
+
for (; o[c] && l >= o[c].size; )
|
|
114290
114292
|
l -= o[c].size, c++;
|
|
114291
|
-
const d = o[c]
|
|
114292
|
-
if (
|
|
114293
|
-
|
|
114294
|
-
|
|
114295
|
-
|
|
114296
|
-
|
|
114297
|
-
|
|
114293
|
+
const d = o[c];
|
|
114294
|
+
if (d) {
|
|
114295
|
+
const f = d.size;
|
|
114296
|
+
if (l + n <= f)
|
|
114297
|
+
s = await readUint8Array(d, l, n);
|
|
114298
|
+
else {
|
|
114299
|
+
const h = f - l;
|
|
114300
|
+
s = new Uint8Array(n);
|
|
114301
|
+
const p = await readUint8Array(d, l, h);
|
|
114302
|
+
s.set(p, 0);
|
|
114303
|
+
const m = await r.readUint8Array(t + h, n - h, i);
|
|
114304
|
+
s.set(m, h), p.length + m.length < n && (s = s.subarray(0, p.length + m.length));
|
|
114305
|
+
}
|
|
114306
|
+
} else
|
|
114307
|
+
s = new Uint8Array();
|
|
114298
114308
|
return r.lastDiskNumber = Math.max(c, r.lastDiskNumber), s;
|
|
114299
114309
|
}
|
|
114300
114310
|
}
|
|
@@ -114314,7 +114324,7 @@ class SplitDataWriter extends Stream {
|
|
|
114314
114324
|
async write(f) {
|
|
114315
114325
|
const { availableSize: h } = i;
|
|
114316
114326
|
if (s)
|
|
114317
|
-
f.length >= h ? (await l(f.
|
|
114327
|
+
f.length >= h ? (await l(f.subarray(0, h)), await d(), i.diskOffset += r.size, i.diskNumber++, s = null, await this.write(f.subarray(h))) : await l(f);
|
|
114318
114328
|
else {
|
|
114319
114329
|
const { value: p, done: m } = await t.next();
|
|
114320
114330
|
if (m && !p)
|
|
@@ -114336,33 +114346,35 @@ class SplitDataWriter extends Stream {
|
|
|
114336
114346
|
h && (await s.ready, await s.write(f), r.size += h, i.size += h, i.availableSize -= h);
|
|
114337
114347
|
}
|
|
114338
114348
|
async function d() {
|
|
114339
|
-
|
|
114349
|
+
await s.close();
|
|
114340
114350
|
}
|
|
114341
114351
|
}
|
|
114342
114352
|
}
|
|
114353
|
+
class GenericReader {
|
|
114354
|
+
constructor(t) {
|
|
114355
|
+
return Array.isArray(t) && (t = new SplitDataReader(t)), t instanceof ReadableStream && (t = {
|
|
114356
|
+
readable: t
|
|
114357
|
+
}), t;
|
|
114358
|
+
}
|
|
114359
|
+
}
|
|
114360
|
+
class GenericWriter {
|
|
114361
|
+
constructor(t) {
|
|
114362
|
+
return t.writable === UNDEFINED_VALUE && typeof t.next == FUNCTION_TYPE && (t = new SplitDataWriter(t)), t instanceof WritableStream && (t = {
|
|
114363
|
+
writable: t
|
|
114364
|
+
}), t.size === UNDEFINED_VALUE && (t.size = 0), t instanceof SplitDataWriter || Object.assign(t, {
|
|
114365
|
+
diskNumber: 0,
|
|
114366
|
+
diskOffset: 0,
|
|
114367
|
+
availableSize: 1 / 0,
|
|
114368
|
+
maxSize: 1 / 0
|
|
114369
|
+
}), t;
|
|
114370
|
+
}
|
|
114371
|
+
}
|
|
114343
114372
|
async function initStream(e, t) {
|
|
114344
114373
|
if (e.init && !e.initialized)
|
|
114345
114374
|
await e.init(t);
|
|
114346
114375
|
else
|
|
114347
114376
|
return Promise.resolve();
|
|
114348
114377
|
}
|
|
114349
|
-
function initReader(e) {
|
|
114350
|
-
return Array.isArray(e) && (e = new SplitDataReader(e)), e instanceof ReadableStream && (e = {
|
|
114351
|
-
readable: e
|
|
114352
|
-
}), e;
|
|
114353
|
-
}
|
|
114354
|
-
function initWriter(e) {
|
|
114355
|
-
e.writable === UNDEFINED_VALUE && typeof e.next == FUNCTION_TYPE && (e = new SplitDataWriter(e)), e instanceof WritableStream && (e = {
|
|
114356
|
-
writable: e
|
|
114357
|
-
});
|
|
114358
|
-
const { writable: t } = e;
|
|
114359
|
-
return t.size === UNDEFINED_VALUE && (t.size = 0), e instanceof SplitDataWriter || Object.assign(e, {
|
|
114360
|
-
diskNumber: 0,
|
|
114361
|
-
diskOffset: 0,
|
|
114362
|
-
availableSize: 1 / 0,
|
|
114363
|
-
maxSize: 1 / 0
|
|
114364
|
-
}), e;
|
|
114365
|
-
}
|
|
114366
114378
|
function readUint8Array(e, t, n, i) {
|
|
114367
114379
|
return e.readUint8Array(t, n, i);
|
|
114368
114380
|
}
|
|
@@ -114379,7 +114391,7 @@ function decodeCP437(e) {
|
|
|
114379
114391
|
function decodeText(e, t) {
|
|
114380
114392
|
return t && t.trim().toLowerCase() == "cp437" ? decodeCP437(e) : new TextDecoder(t).decode(e);
|
|
114381
114393
|
}
|
|
114382
|
-
const PROPERTY_NAME_FILENAME = "filename", PROPERTY_NAME_RAW_FILENAME = "rawFilename", PROPERTY_NAME_COMMENT = "comment", PROPERTY_NAME_RAW_COMMENT = "rawComment", PROPERTY_NAME_UNCOMPPRESSED_SIZE = "uncompressedSize", PROPERTY_NAME_COMPPRESSED_SIZE = "compressedSize", PROPERTY_NAME_OFFSET = "offset", PROPERTY_NAME_DISK_NUMBER_START = "diskNumberStart", PROPERTY_NAME_LAST_MODIFICATION_DATE = "lastModDate", PROPERTY_NAME_RAW_LAST_MODIFICATION_DATE = "rawLastModDate", PROPERTY_NAME_LAST_ACCESS_DATE = "lastAccessDate", PROPERTY_NAME_RAW_LAST_ACCESS_DATE = "rawLastAccessDate", PROPERTY_NAME_CREATION_DATE = "creationDate", PROPERTY_NAME_RAW_CREATION_DATE = "rawCreationDate", PROPERTY_NAME_INTERNAL_FILE_ATTRIBUTE = "internalFileAttribute", PROPERTY_NAME_EXTERNAL_FILE_ATTRIBUTE = "externalFileAttribute", PROPERTY_NAME_MS_DOS_COMPATIBLE = "msDosCompatible", PROPERTY_NAME_ZIP64 = "zip64", PROPERTY_NAMES = [
|
|
114394
|
+
const PROPERTY_NAME_FILENAME = "filename", PROPERTY_NAME_RAW_FILENAME = "rawFilename", PROPERTY_NAME_COMMENT = "comment", PROPERTY_NAME_RAW_COMMENT = "rawComment", PROPERTY_NAME_UNCOMPPRESSED_SIZE = "uncompressedSize", PROPERTY_NAME_COMPPRESSED_SIZE = "compressedSize", PROPERTY_NAME_OFFSET = "offset", PROPERTY_NAME_DISK_NUMBER_START = "diskNumberStart", PROPERTY_NAME_LAST_MODIFICATION_DATE = "lastModDate", PROPERTY_NAME_RAW_LAST_MODIFICATION_DATE = "rawLastModDate", PROPERTY_NAME_LAST_ACCESS_DATE = "lastAccessDate", PROPERTY_NAME_RAW_LAST_ACCESS_DATE = "rawLastAccessDate", PROPERTY_NAME_CREATION_DATE = "creationDate", PROPERTY_NAME_RAW_CREATION_DATE = "rawCreationDate", PROPERTY_NAME_INTERNAL_FILE_ATTRIBUTE = "internalFileAttribute", PROPERTY_NAME_INTERNAL_FILE_ATTRIBUTES = "internalFileAttributes", PROPERTY_NAME_EXTERNAL_FILE_ATTRIBUTE = "externalFileAttribute", PROPERTY_NAME_EXTERNAL_FILE_ATTRIBUTES = "externalFileAttributes", PROPERTY_NAME_MS_DOS_COMPATIBLE = "msDosCompatible", PROPERTY_NAME_ZIP64 = "zip64", PROPERTY_NAME_ENCRYPTED = "encrypted", PROPERTY_NAME_VERSION = "version", PROPERTY_NAME_VERSION_MADE_BY = "versionMadeBy", PROPERTY_NAME_ZIPCRYPTO = "zipCrypto", PROPERTY_NAME_DIRECTORY = "directory", PROPERTY_NAME_EXECUTABLE = "executable", PROPERTY_NAMES = [
|
|
114383
114395
|
PROPERTY_NAME_FILENAME,
|
|
114384
114396
|
PROPERTY_NAME_RAW_FILENAME,
|
|
114385
114397
|
PROPERTY_NAME_COMPPRESSED_SIZE,
|
|
@@ -114394,18 +114406,22 @@ const PROPERTY_NAME_FILENAME = "filename", PROPERTY_NAME_RAW_FILENAME = "rawFile
|
|
|
114394
114406
|
PROPERTY_NAME_DISK_NUMBER_START,
|
|
114395
114407
|
PROPERTY_NAME_DISK_NUMBER_START,
|
|
114396
114408
|
PROPERTY_NAME_INTERNAL_FILE_ATTRIBUTE,
|
|
114409
|
+
PROPERTY_NAME_INTERNAL_FILE_ATTRIBUTES,
|
|
114397
114410
|
PROPERTY_NAME_EXTERNAL_FILE_ATTRIBUTE,
|
|
114411
|
+
PROPERTY_NAME_EXTERNAL_FILE_ATTRIBUTES,
|
|
114398
114412
|
PROPERTY_NAME_MS_DOS_COMPATIBLE,
|
|
114399
114413
|
PROPERTY_NAME_ZIP64,
|
|
114400
|
-
|
|
114414
|
+
PROPERTY_NAME_ENCRYPTED,
|
|
114415
|
+
PROPERTY_NAME_VERSION,
|
|
114416
|
+
PROPERTY_NAME_VERSION_MADE_BY,
|
|
114417
|
+
PROPERTY_NAME_ZIPCRYPTO,
|
|
114418
|
+
PROPERTY_NAME_DIRECTORY,
|
|
114419
|
+
PROPERTY_NAME_EXECUTABLE,
|
|
114401
114420
|
"bitFlag",
|
|
114402
|
-
"encrypted",
|
|
114403
114421
|
"signature",
|
|
114404
114422
|
"filenameUTF8",
|
|
114405
114423
|
"commentUTF8",
|
|
114406
114424
|
"compressionMethod",
|
|
114407
|
-
"version",
|
|
114408
|
-
"versionMadeBy",
|
|
114409
114425
|
"extraField",
|
|
114410
114426
|
"rawExtraField",
|
|
114411
114427
|
"extraFieldZip64",
|
|
@@ -114438,7 +114454,7 @@ const ERR_BAD_FORMAT = "File format is not recognized", ERR_EOCDR_NOT_FOUND = "E
|
|
|
114438
114454
|
class ZipReader {
|
|
114439
114455
|
constructor(t, n = {}) {
|
|
114440
114456
|
Object.assign(this, {
|
|
114441
|
-
reader:
|
|
114457
|
+
reader: new GenericReader(t),
|
|
114442
114458
|
options: n,
|
|
114443
114459
|
config: getConfiguration()
|
|
114444
114460
|
});
|
|
@@ -114497,42 +114513,49 @@ class ZipReader {
|
|
|
114497
114513
|
if (getUint32(S, x) != CENTRAL_FILE_HEADER_SIGNATURE)
|
|
114498
114514
|
throw new Error(ERR_CENTRAL_DIRECTORY_NOT_FOUND);
|
|
114499
114515
|
readCommonHeader(R, S, x + 6);
|
|
114500
|
-
const L = !!R.bitFlag.languageEncodingFlag, g = x + 46, w = g + R.filenameLength, O = w + R.extraFieldLength, N = getUint16(S, x + 4), F =
|
|
114516
|
+
const L = !!R.bitFlag.languageEncodingFlag, g = x + 46, w = g + R.filenameLength, O = w + R.extraFieldLength, N = getUint16(S, x + 4), F = N >> 8 == 0, B = N >> 8 == 3, V = b.subarray(g, w), U = getUint16(S, x + 32), k = O + U, $ = b.subarray(O, k), G = L, q = L, z = getUint32(S, x + 38), H = F && (getUint8(S, x + 38) & FILE_ATTR_MSDOS_DIR_MASK) == FILE_ATTR_MSDOS_DIR_MASK || B && (z >> 16 & FILE_ATTR_UNIX_TYPE_MASK) == FILE_ATTR_UNIX_TYPE_DIR || V.length && V[V.length - 1] == DIRECTORY_SIGNATURE.charCodeAt(0), K = B && (z >> 16 & FILE_ATTR_UNIX_EXECUTABLE_MASK) != 0, X = getUint32(S, x + 42) + C;
|
|
114501
114517
|
Object.assign(R, {
|
|
114502
114518
|
versionMadeBy: N,
|
|
114503
114519
|
msDosCompatible: F,
|
|
114504
114520
|
compressedSize: 0,
|
|
114505
114521
|
uncompressedSize: 0,
|
|
114506
|
-
commentLength:
|
|
114507
|
-
directory:
|
|
114508
|
-
offset:
|
|
114522
|
+
commentLength: U,
|
|
114523
|
+
directory: H,
|
|
114524
|
+
offset: X,
|
|
114509
114525
|
diskNumberStart: getUint16(S, x + 34),
|
|
114510
|
-
|
|
114511
|
-
|
|
114512
|
-
rawFilename:
|
|
114513
|
-
filenameUTF8:
|
|
114514
|
-
commentUTF8:
|
|
114515
|
-
rawExtraField: b.subarray(w, O)
|
|
114516
|
-
|
|
114517
|
-
|
|
114518
|
-
|
|
114519
|
-
|
|
114520
|
-
|
|
114521
|
-
|
|
114522
|
-
|
|
114523
|
-
|
|
114524
|
-
|
|
114525
|
-
|
|
114526
|
-
|
|
114527
|
-
|
|
114528
|
-
|
|
114529
|
-
|
|
114530
|
-
|
|
114526
|
+
internalFileAttributes: getUint16(S, x + 36),
|
|
114527
|
+
externalFileAttributes: z,
|
|
114528
|
+
rawFilename: V,
|
|
114529
|
+
filenameUTF8: G,
|
|
114530
|
+
commentUTF8: q,
|
|
114531
|
+
rawExtraField: b.subarray(w, O),
|
|
114532
|
+
executable: K
|
|
114533
|
+
}), R.internalFileAttribute = R.internalFileAttributes, R.externalFileAttribute = R.externalFileAttributes;
|
|
114534
|
+
const J = getOptionValue$1(n, t, "decodeText") || decodeText, ee = G ? CHARSET_UTF8 : A || CHARSET_CP437, te = q ? CHARSET_UTF8 : D || CHARSET_CP437;
|
|
114535
|
+
let oe = J(V, ee);
|
|
114536
|
+
oe === UNDEFINED_VALUE && (oe = decodeText(V, ee));
|
|
114537
|
+
let Q = J($, te);
|
|
114538
|
+
Q === UNDEFINED_VALUE && (Q = decodeText($, te)), Object.assign(R, {
|
|
114539
|
+
rawComment: $,
|
|
114540
|
+
filename: oe,
|
|
114541
|
+
comment: Q,
|
|
114542
|
+
directory: H || oe.endsWith(DIRECTORY_SIGNATURE)
|
|
114543
|
+
}), T = Math.max(X, T), readCommonFooter(R, R, S, x + 6), R.zipCrypto = R.encrypted && !R.extraFieldAES;
|
|
114544
|
+
const he = new Entry(R);
|
|
114545
|
+
he.getData = (se, _e) => R.getData(se, he, _e), he.arrayBuffer = async (se) => {
|
|
114546
|
+
const _e = new TransformStream(), [me] = await Promise.all([
|
|
114547
|
+
new Response(_e.readable).arrayBuffer(),
|
|
114548
|
+
R.getData(_e, he, se)
|
|
114549
|
+
]);
|
|
114550
|
+
return me;
|
|
114551
|
+
}, x = k;
|
|
114552
|
+
const { onprogress: ue } = t;
|
|
114553
|
+
if (ue)
|
|
114531
114554
|
try {
|
|
114532
|
-
await
|
|
114555
|
+
await ue(M + 1, y, new Entry(R));
|
|
114533
114556
|
} catch {
|
|
114534
114557
|
}
|
|
114535
|
-
yield
|
|
114558
|
+
yield he;
|
|
114536
114559
|
}
|
|
114537
114560
|
const P = getOptionValue$1(n, t, "extractPrependedData"), I = getOptionValue$1(n, t, "extractAppendedData");
|
|
114538
114561
|
return P && (n.prependedData = T > 0 ? await readUint8Array(i, 0, T) : new Uint8Array()), n.comment = f ? await readUint8Array(i, d + END_OF_CENTRAL_DIR_LENGTH, f) : new Uint8Array(), I && (n.appendedData = h < i.size ? await readUint8Array(i, h, i.size - h) : new Uint8Array()), !0;
|
|
@@ -114567,64 +114590,64 @@ class ZipEntry {
|
|
|
114567
114590
|
rawLastModDate: m,
|
|
114568
114591
|
uncompressedSize: _,
|
|
114569
114592
|
compressedSize: y
|
|
114570
|
-
} = r, C = n.localDirectory = {}, T = await readUint8Array(o, s,
|
|
114571
|
-
let
|
|
114572
|
-
|
|
114593
|
+
} = r, C = n.localDirectory = {}, T = HEADER_SIZE + 4, x = await readUint8Array(o, s, T + 4, c), b = getDataView$1(x);
|
|
114594
|
+
let S = getOptionValue$1(r, i, "password"), E = getOptionValue$1(r, i, "rawPassword");
|
|
114595
|
+
const A = getOptionValue$1(r, i, "passThrough");
|
|
114596
|
+
if (S = S && S.length && S, E = E && E.length && E, l && l.originalCompressionMethod != COMPRESSION_METHOD_AES)
|
|
114573
114597
|
throw new Error(ERR_UNSUPPORTED_COMPRESSION);
|
|
114574
|
-
if (d != COMPRESSION_METHOD_STORE && d != COMPRESSION_METHOD_DEFLATE)
|
|
114598
|
+
if (d != COMPRESSION_METHOD_STORE && d != COMPRESSION_METHOD_DEFLATE && !A)
|
|
114575
114599
|
throw new Error(ERR_UNSUPPORTED_COMPRESSION);
|
|
114576
|
-
if (getUint32(
|
|
114600
|
+
if (getUint32(b, 0) != LOCAL_FILE_HEADER_SIGNATURE)
|
|
114577
114601
|
throw new Error(ERR_LOCAL_FILE_HEADER_NOT_FOUND);
|
|
114578
|
-
readCommonHeader(C,
|
|
114602
|
+
readCommonHeader(C, b, 4), C.rawExtraField = C.extraFieldLength ? await readUint8Array(o, s + T + C.filenameLength, C.extraFieldLength, c) : new Uint8Array(), readCommonFooter(r, C, b, 4, !0), Object.assign(n, {
|
|
114579
114603
|
lastAccessDate: C.lastAccessDate,
|
|
114580
114604
|
creationDate: C.creationDate
|
|
114581
114605
|
});
|
|
114582
|
-
const
|
|
114583
|
-
if (
|
|
114584
|
-
if (!
|
|
114606
|
+
const D = r.encrypted && C.encrypted && !A, P = D && !l;
|
|
114607
|
+
if (A || (n.zipCrypto = P), D) {
|
|
114608
|
+
if (!P && l.strength === UNDEFINED_VALUE)
|
|
114585
114609
|
throw new Error(ERR_UNSUPPORTED_ENCRYPTION);
|
|
114586
|
-
if (!
|
|
114610
|
+
if (!S && !E)
|
|
114587
114611
|
throw new Error(ERR_ENCRYPTED);
|
|
114588
114612
|
}
|
|
114589
|
-
const
|
|
114590
|
-
Object.assign(
|
|
114613
|
+
const I = s + T + C.filenameLength + C.extraFieldLength, M = y, R = o.readable;
|
|
114614
|
+
Object.assign(R, {
|
|
114591
114615
|
diskNumberStart: c,
|
|
114592
|
-
offset:
|
|
114593
|
-
size:
|
|
114616
|
+
offset: I,
|
|
114617
|
+
size: M
|
|
114594
114618
|
});
|
|
114595
|
-
const
|
|
114596
|
-
|
|
114597
|
-
const { writable:
|
|
114619
|
+
const L = getOptionValue$1(r, i, "signal"), g = getOptionValue$1(r, i, "checkPasswordOnly");
|
|
114620
|
+
g && (t = new WritableStream()), t = new GenericWriter(t), await initStream(t, A ? y : _);
|
|
114621
|
+
const { writable: w } = t, { onstart: O, onprogress: N, onend: F } = i, B = {
|
|
114598
114622
|
options: {
|
|
114599
114623
|
codecType: CODEC_INFLATE,
|
|
114600
|
-
password:
|
|
114601
|
-
rawPassword:
|
|
114602
|
-
zipCrypto:
|
|
114624
|
+
password: S,
|
|
114625
|
+
rawPassword: E,
|
|
114626
|
+
zipCrypto: P,
|
|
114603
114627
|
encryptionStrength: l && l.strength,
|
|
114604
|
-
signed: getOptionValue$1(r, i, "checkSignature"),
|
|
114605
|
-
passwordVerification:
|
|
114628
|
+
signed: getOptionValue$1(r, i, "checkSignature") && !A,
|
|
114629
|
+
passwordVerification: P && (h.dataDescriptor ? m >>> 8 & 255 : p >>> 24 & 255),
|
|
114606
114630
|
signature: p,
|
|
114607
|
-
compressed: d != 0,
|
|
114608
|
-
encrypted:
|
|
114631
|
+
compressed: d != 0 && !A,
|
|
114632
|
+
encrypted: r.encrypted && !A,
|
|
114609
114633
|
useWebWorkers: getOptionValue$1(r, i, "useWebWorkers"),
|
|
114610
114634
|
useCompressionStream: getOptionValue$1(r, i, "useCompressionStream"),
|
|
114611
114635
|
transferStreams: getOptionValue$1(r, i, "transferStreams"),
|
|
114612
|
-
checkPasswordOnly:
|
|
114636
|
+
checkPasswordOnly: g
|
|
114613
114637
|
},
|
|
114614
114638
|
config: f,
|
|
114615
|
-
streamOptions: { signal:
|
|
114639
|
+
streamOptions: { signal: L, size: M, onstart: O, onprogress: N, onend: F }
|
|
114616
114640
|
};
|
|
114617
|
-
let F = 0;
|
|
114618
114641
|
try {
|
|
114619
|
-
|
|
114620
|
-
|
|
114621
|
-
|
|
114622
|
-
|
|
114642
|
+
const { outputSize: V } = await runWorker({ readable: R, writable: w }, B);
|
|
114643
|
+
t.size += V;
|
|
114644
|
+
} catch (V) {
|
|
114645
|
+
if (V.outputSize !== UNDEFINED_VALUE && (t.size += V.outputSize), !g || V.message != ERR_ABORT_CHECK_PASSWORD)
|
|
114646
|
+
throw V;
|
|
114623
114647
|
} finally {
|
|
114624
|
-
|
|
114625
|
-
L.size += F, !B && !L.locked && await L.getWriter().close();
|
|
114648
|
+
!getOptionValue$1(r, i, "preventClose") && !w.locked && await w.getWriter().close();
|
|
114626
114649
|
}
|
|
114627
|
-
return
|
|
114650
|
+
return g ? UNDEFINED_VALUE : t.getData ? t.getData() : w;
|
|
114628
114651
|
}
|
|
114629
114652
|
}
|
|
114630
114653
|
function readCommonHeader(e, t, n) {
|
|
@@ -114643,7 +114666,7 @@ function readCommonHeader(e, t, n) {
|
|
|
114643
114666
|
extraFieldLength: getUint16(t, n + 24)
|
|
114644
114667
|
});
|
|
114645
114668
|
}
|
|
114646
|
-
|
|
114669
|
+
function readCommonFooter(e, t, n, i, r) {
|
|
114647
114670
|
const { rawExtraField: o } = t, s = t.extraField = /* @__PURE__ */ new Map(), c = getDataView$1(new Uint8Array(o));
|
|
114648
114671
|
let l = 0;
|
|
114649
114672
|
try {
|
|
@@ -114658,16 +114681,16 @@ async function readCommonFooter(e, t, n, i, r) {
|
|
|
114658
114681
|
}
|
|
114659
114682
|
const d = getUint16(n, i + 4);
|
|
114660
114683
|
Object.assign(t, {
|
|
114661
|
-
signature: getUint32(n, i +
|
|
114662
|
-
|
|
114663
|
-
|
|
114684
|
+
signature: getUint32(n, i + HEADER_OFFSET_SIGNATURE),
|
|
114685
|
+
compressedSize: getUint32(n, i + HEADER_OFFSET_COMPRESSED_SIZE),
|
|
114686
|
+
uncompressedSize: getUint32(n, i + HEADER_OFFSET_UNCOMPRESSED_SIZE)
|
|
114664
114687
|
});
|
|
114665
114688
|
const f = s.get(EXTRAFIELD_TYPE_ZIP64);
|
|
114666
114689
|
f && (readExtraFieldZip64(f, t), t.extraFieldZip64 = f);
|
|
114667
114690
|
const h = s.get(EXTRAFIELD_TYPE_UNICODE_PATH);
|
|
114668
|
-
h && (
|
|
114691
|
+
h && (readExtraFieldUnicode(h, PROPERTY_NAME_FILENAME, PROPERTY_NAME_RAW_FILENAME, t, e), t.extraFieldUnicodePath = h);
|
|
114669
114692
|
const p = s.get(EXTRAFIELD_TYPE_UNICODE_COMMENT);
|
|
114670
|
-
p && (
|
|
114693
|
+
p && (readExtraFieldUnicode(p, PROPERTY_NAME_COMMENT, PROPERTY_NAME_RAW_COMMENT, t, e), t.extraFieldUnicodeComment = p);
|
|
114671
114694
|
const m = s.get(EXTRAFIELD_TYPE_AES);
|
|
114672
114695
|
m ? (readExtraFieldAES(m, t, d), t.extraFieldAES = m) : t.compressionMethod = d;
|
|
114673
114696
|
const _ = s.get(EXTRAFIELD_TYPE_NTFS);
|
|
@@ -114689,7 +114712,7 @@ function readExtraFieldZip64(e, t) {
|
|
|
114689
114712
|
throw new Error(ERR_EXTRAFIELD_ZIP64_NOT_FOUND);
|
|
114690
114713
|
}
|
|
114691
114714
|
}
|
|
114692
|
-
|
|
114715
|
+
function readExtraFieldUnicode(e, t, n, i, r) {
|
|
114693
114716
|
const o = getDataView$1(e.data), s = new Crc32();
|
|
114694
114717
|
s.append(r[n]);
|
|
114695
114718
|
const c = getDataView$1(new Uint8Array(4));
|
|
@@ -114795,12 +114818,12 @@ function setUint32$1(e, t, n) {
|
|
|
114795
114818
|
function getDataView$1(e) {
|
|
114796
114819
|
return new DataView(e.buffer);
|
|
114797
114820
|
}
|
|
114798
|
-
const ERR_DUPLICATED_NAME = "File already exists", ERR_INVALID_COMMENT = "Zip file comment exceeds 64KB", ERR_INVALID_ENTRY_COMMENT = "File entry comment exceeds 64KB", ERR_INVALID_ENTRY_NAME = "File entry name exceeds 64KB", ERR_INVALID_VERSION = "Version exceeds 65535", ERR_INVALID_ENCRYPTION_STRENGTH = "The strength must equal 1, 2, or 3", ERR_INVALID_EXTRAFIELD_TYPE = "Extra field type exceeds 65535", ERR_INVALID_EXTRAFIELD_DATA = "Extra field data exceeds 64KB", ERR_UNSUPPORTED_FORMAT = "Zip64 is not supported (make sure 'keepOrder' is set to 'true')", EXTRAFIELD_DATA_AES = new Uint8Array([7, 0, 2, 0, 65, 69, 3, 0, 0]);
|
|
114821
|
+
const ERR_DUPLICATED_NAME = "File already exists", ERR_INVALID_COMMENT = "Zip file comment exceeds 64KB", ERR_INVALID_ENTRY_COMMENT = "File entry comment exceeds 64KB", ERR_INVALID_ENTRY_NAME = "File entry name exceeds 64KB", ERR_INVALID_VERSION = "Version exceeds 65535", ERR_INVALID_ENCRYPTION_STRENGTH = "The strength must equal 1, 2, or 3", ERR_INVALID_EXTRAFIELD_TYPE = "Extra field type exceeds 65535", ERR_INVALID_EXTRAFIELD_DATA = "Extra field data exceeds 64KB", ERR_UNSUPPORTED_FORMAT = "Zip64 is not supported (make sure 'keepOrder' is set to 'true')", ERR_UNDEFINED_UNCOMPRESSED_SIZE = "Undefined uncompressed size", ERR_ZIP_NOT_EMPTY = "Zip file not empty", EXTRAFIELD_DATA_AES = new Uint8Array([7, 0, 2, 0, 65, 69, 3, 0, 0]);
|
|
114799
114822
|
let workers = 0;
|
|
114800
114823
|
const pendingEntries = [];
|
|
114801
114824
|
class ZipWriter {
|
|
114802
114825
|
constructor(t, n = {}) {
|
|
114803
|
-
t =
|
|
114826
|
+
t = new GenericWriter(t);
|
|
114804
114827
|
const i = t.availableSize !== UNDEFINED_VALUE && t.availableSize > 0 && t.availableSize !== 1 / 0 && t.maxSize !== UNDEFINED_VALUE && t.maxSize > 0 && t.maxSize !== 1 / 0;
|
|
114805
114828
|
Object.assign(this, {
|
|
114806
114829
|
writer: t,
|
|
@@ -114809,12 +114832,74 @@ class ZipWriter {
|
|
|
114809
114832
|
config: getConfiguration(),
|
|
114810
114833
|
files: /* @__PURE__ */ new Map(),
|
|
114811
114834
|
filenames: /* @__PURE__ */ new Set(),
|
|
114812
|
-
offset: t.writable.size,
|
|
114835
|
+
offset: n.offset === UNDEFINED_VALUE ? t.size || t.writable.size || 0 : n.offset,
|
|
114813
114836
|
pendingEntriesSize: 0,
|
|
114814
114837
|
pendingAddFileCalls: /* @__PURE__ */ new Set(),
|
|
114815
114838
|
bufferedWrites: 0
|
|
114816
114839
|
});
|
|
114817
114840
|
}
|
|
114841
|
+
async prependZip(t) {
|
|
114842
|
+
if (this.filenames.size)
|
|
114843
|
+
throw new Error(ERR_ZIP_NOT_EMPTY);
|
|
114844
|
+
t = new GenericReader(t);
|
|
114845
|
+
const n = new ZipReader(t.readable), i = await n.getEntries();
|
|
114846
|
+
await n.close(), await t.readable.pipeTo(this.writer.writable, { preventClose: !0, preventAbort: !0 }), this.writer.size = this.offset = t.size, this.filenames = new Set(i.map((r) => r.filename)), this.files = new Map(i.map((r) => {
|
|
114847
|
+
const {
|
|
114848
|
+
version: o,
|
|
114849
|
+
compressionMethod: s,
|
|
114850
|
+
lastModDate: c,
|
|
114851
|
+
lastAccessDate: l,
|
|
114852
|
+
creationDate: d,
|
|
114853
|
+
rawFilename: f,
|
|
114854
|
+
bitFlag: h,
|
|
114855
|
+
encrypted: p,
|
|
114856
|
+
uncompressedSize: m,
|
|
114857
|
+
compressedSize: _,
|
|
114858
|
+
diskOffset: y,
|
|
114859
|
+
diskNumber: C,
|
|
114860
|
+
zip64: T
|
|
114861
|
+
} = r;
|
|
114862
|
+
let {
|
|
114863
|
+
rawExtraFieldZip64: x,
|
|
114864
|
+
rawExtraFieldAES: b,
|
|
114865
|
+
rawExtraFieldExtendedTimestamp: S,
|
|
114866
|
+
rawExtraFieldNTFS: E,
|
|
114867
|
+
rawExtraField: A
|
|
114868
|
+
} = r;
|
|
114869
|
+
const { level: D, languageEncodingFlag: P, dataDescriptor: I } = h;
|
|
114870
|
+
x = x || new Uint8Array(), b = b || new Uint8Array(), S = S || new Uint8Array(), E = E || new Uint8Array(), A = A || new Uint8Array();
|
|
114871
|
+
const M = getLength(x, b, S, E, A), R = T && m > MAX_32_BITS, L = T && _ > MAX_32_BITS, {
|
|
114872
|
+
headerArray: g,
|
|
114873
|
+
headerView: w
|
|
114874
|
+
} = getHeaderArrayData({
|
|
114875
|
+
version: o,
|
|
114876
|
+
bitFlag: getBitFlag(D, P, I, p, s),
|
|
114877
|
+
compressionMethod: s,
|
|
114878
|
+
uncompressedSize: m,
|
|
114879
|
+
compressedSize: _,
|
|
114880
|
+
lastModDate: c,
|
|
114881
|
+
rawFilename: f,
|
|
114882
|
+
zip64CompressedSize: L,
|
|
114883
|
+
zip64UncompressedSize: R,
|
|
114884
|
+
extraFieldLength: M
|
|
114885
|
+
});
|
|
114886
|
+
return Object.assign(r, {
|
|
114887
|
+
zip64UncompressedSize: R,
|
|
114888
|
+
zip64CompressedSize: L,
|
|
114889
|
+
zip64Offset: T && this.offset - y > MAX_32_BITS,
|
|
114890
|
+
zip64DiskNumberStart: T && C > MAX_16_BITS,
|
|
114891
|
+
rawExtraFieldZip64: x,
|
|
114892
|
+
rawExtraFieldAES: b,
|
|
114893
|
+
rawExtraFieldExtendedTimestamp: S,
|
|
114894
|
+
rawExtraFieldNTFS: E,
|
|
114895
|
+
rawExtraField: A,
|
|
114896
|
+
extendedTimestamp: S.length > 0 || E.length > 0,
|
|
114897
|
+
extraFieldExtendedTimestampFlag: 1 + (l ? 2 : 0) + (d ? 4 : 0),
|
|
114898
|
+
headerArray: g,
|
|
114899
|
+
headerView: w
|
|
114900
|
+
}), [r.filename, r];
|
|
114901
|
+
}));
|
|
114902
|
+
}
|
|
114818
114903
|
async add(t = "", n, i = {}) {
|
|
114819
114904
|
const r = this, {
|
|
114820
114905
|
pendingAddFileCalls: o,
|
|
@@ -114834,6 +114919,15 @@ class ZipWriter {
|
|
|
114834
114919
|
l ? l() : workers--;
|
|
114835
114920
|
}
|
|
114836
114921
|
}
|
|
114922
|
+
remove(t) {
|
|
114923
|
+
const { filenames: n, files: i } = this;
|
|
114924
|
+
if (typeof t == "string" && (t = i.get(t)), t && t.filename !== UNDEFINED_VALUE) {
|
|
114925
|
+
const { filename: r } = t;
|
|
114926
|
+
if (n.has(r) && i.has(r))
|
|
114927
|
+
return n.delete(r), i.delete(r), !0;
|
|
114928
|
+
}
|
|
114929
|
+
return !1;
|
|
114930
|
+
}
|
|
114837
114931
|
async close(t = new Uint8Array(), n = {}) {
|
|
114838
114932
|
const i = this, { pendingAddFileCalls: r, writer: o } = this, { writable: s } = o;
|
|
114839
114933
|
for (; r.size; )
|
|
@@ -114842,86 +114936,110 @@ class ZipWriter {
|
|
|
114842
114936
|
}
|
|
114843
114937
|
}
|
|
114844
114938
|
async function addFile(e, t, n, i) {
|
|
114845
|
-
t = t.trim()
|
|
114846
|
-
const r = getOptionValue(e, i,
|
|
114847
|
-
|
|
114848
|
-
|
|
114939
|
+
t = t.trim();
|
|
114940
|
+
const r = getOptionValue(e, i, PROPERTY_NAME_MS_DOS_COMPATIBLE), o = getOptionValue(e, i, PROPERTY_NAME_VERSION_MADE_BY, r ? 20 : 768), s = getOptionValue(e, i, PROPERTY_NAME_EXECUTABLE);
|
|
114941
|
+
if (o > MAX_16_BITS)
|
|
114942
|
+
throw new Error(ERR_INVALID_VERSION);
|
|
114943
|
+
let c = getOptionValue(e, i, PROPERTY_NAME_EXTERNAL_FILE_ATTRIBUTES, 0);
|
|
114944
|
+
c === 0 && (c = getOptionValue(e, i, PROPERTY_NAME_EXTERNAL_FILE_ATTRIBUTE, 0)), !i.directory && t.endsWith(DIRECTORY_SIGNATURE) && (i.directory = !0), getOptionValue(e, i, PROPERTY_NAME_DIRECTORY) ? (t.endsWith(DIRECTORY_SIGNATURE) || (t += DIRECTORY_SIGNATURE), c === 0 && (c = FILE_ATTR_MSDOS_DIR_MASK, r || (c |= (FILE_ATTR_UNIX_TYPE_DIR | FILE_ATTR_UNIX_EXECUTABLE_MASK | FILE_ATTR_UNIX_DEFAULT_MASK) << 16))) : !r && c === 0 && (s ? c = (FILE_ATTR_UNIX_EXECUTABLE_MASK | FILE_ATTR_UNIX_DEFAULT_MASK) << 16 : c = FILE_ATTR_UNIX_DEFAULT_MASK << 16);
|
|
114945
|
+
const d = getOptionValue(e, i, "encodeText", encodeText);
|
|
114946
|
+
let f = d(t);
|
|
114947
|
+
if (f === UNDEFINED_VALUE && (f = encodeText(t)), getLength(f) > MAX_16_BITS)
|
|
114849
114948
|
throw new Error(ERR_INVALID_ENTRY_NAME);
|
|
114850
|
-
const
|
|
114851
|
-
let
|
|
114852
|
-
if (
|
|
114949
|
+
const h = i.comment || "";
|
|
114950
|
+
let p = d(h);
|
|
114951
|
+
if (p === UNDEFINED_VALUE && (p = encodeText(h)), getLength(p) > MAX_16_BITS)
|
|
114853
114952
|
throw new Error(ERR_INVALID_ENTRY_COMMENT);
|
|
114854
|
-
const
|
|
114855
|
-
if (
|
|
114953
|
+
const m = getOptionValue(e, i, PROPERTY_NAME_VERSION, VERSION_DEFLATE);
|
|
114954
|
+
if (m > MAX_16_BITS)
|
|
114856
114955
|
throw new Error(ERR_INVALID_VERSION);
|
|
114857
|
-
const
|
|
114858
|
-
|
|
114859
|
-
|
|
114860
|
-
const
|
|
114861
|
-
let
|
|
114862
|
-
|
|
114956
|
+
const _ = getOptionValue(e, i, PROPERTY_NAME_LAST_MODIFICATION_DATE, /* @__PURE__ */ new Date()), y = getOptionValue(e, i, PROPERTY_NAME_LAST_ACCESS_DATE), C = getOptionValue(e, i, PROPERTY_NAME_CREATION_DATE);
|
|
114957
|
+
let T = getOptionValue(e, i, PROPERTY_NAME_INTERNAL_FILE_ATTRIBUTES, 0);
|
|
114958
|
+
T === 0 && (T = getOptionValue(e, i, PROPERTY_NAME_INTERNAL_FILE_ATTRIBUTE, 0));
|
|
114959
|
+
const x = getOptionValue(e, i, "passThrough");
|
|
114960
|
+
let b, S;
|
|
114961
|
+
x || (b = getOptionValue(e, i, "password"), S = getOptionValue(e, i, "rawPassword"));
|
|
114962
|
+
const E = getOptionValue(e, i, "encryptionStrength", 3), A = getOptionValue(e, i, PROPERTY_NAME_ZIPCRYPTO), D = getOptionValue(e, i, "extendedTimestamp", !0), P = getOptionValue(e, i, "keepOrder", !0), I = getOptionValue(e, i, "level"), M = getOptionValue(e, i, "useWebWorkers"), R = getOptionValue(e, i, "bufferedWrite"), L = getOptionValue(e, i, "dataDescriptorSignature", !1), g = getOptionValue(e, i, "signal"), w = getOptionValue(e, i, "useUnicodeFileNames", !0), O = getOptionValue(e, i, "useCompressionStream"), N = getOptionValue(e, i, "compressionMethod");
|
|
114963
|
+
let F = getOptionValue(e, i, "dataDescriptor");
|
|
114964
|
+
R && F === UNDEFINED_VALUE && (F = !1), (F === UNDEFINED_VALUE || A) && (F = !0);
|
|
114965
|
+
let B = getOptionValue(e, i, PROPERTY_NAME_ZIP64);
|
|
114966
|
+
if (!A && (b !== UNDEFINED_VALUE || S !== UNDEFINED_VALUE) && !(E >= 1 && E <= 3))
|
|
114863
114967
|
throw new Error(ERR_INVALID_ENCRYPTION_STRENGTH);
|
|
114864
|
-
let
|
|
114865
|
-
const { extraField:
|
|
114866
|
-
if (
|
|
114867
|
-
let
|
|
114868
|
-
|
|
114869
|
-
if (
|
|
114968
|
+
let V = new Uint8Array();
|
|
114969
|
+
const { extraField: U } = i;
|
|
114970
|
+
if (U) {
|
|
114971
|
+
let re = 0, xe = 0;
|
|
114972
|
+
U.forEach((pe) => re += 4 + getLength(pe)), V = new Uint8Array(re), U.forEach((pe, Ce) => {
|
|
114973
|
+
if (Ce > MAX_16_BITS)
|
|
114870
114974
|
throw new Error(ERR_INVALID_EXTRAFIELD_TYPE);
|
|
114871
|
-
if (getLength(
|
|
114975
|
+
if (getLength(pe) > MAX_16_BITS)
|
|
114872
114976
|
throw new Error(ERR_INVALID_EXTRAFIELD_DATA);
|
|
114873
|
-
arraySet(
|
|
114977
|
+
arraySet(V, new Uint16Array([Ce]), xe), arraySet(V, new Uint16Array([getLength(pe)]), xe + 2), arraySet(V, pe, xe + 4), xe += 4 + getLength(pe);
|
|
114874
114978
|
});
|
|
114875
114979
|
}
|
|
114876
|
-
let
|
|
114877
|
-
|
|
114878
|
-
|
|
114879
|
-
const
|
|
114880
|
-
|
|
114881
|
-
|
|
114980
|
+
let k = 0, $ = 0, G = 0;
|
|
114981
|
+
if (x && ({ uncompressedSize: G } = i, G === UNDEFINED_VALUE))
|
|
114982
|
+
throw new Error(ERR_UNDEFINED_UNCOMPRESSED_SIZE);
|
|
114983
|
+
const q = B === !0;
|
|
114984
|
+
n && (n = new GenericReader(n), await initStream(n), x ? (i.uncompressedSize = G, k = getMaximumCompressedSize(G)) : n.size === UNDEFINED_VALUE ? (F = !0, (B || B === UNDEFINED_VALUE) && (B = !0, G = k = MAX_32_BITS + 1)) : (i.uncompressedSize = G = n.size, k = getMaximumCompressedSize(G)));
|
|
114985
|
+
const { diskOffset: z, diskNumber: H, maxSize: K } = e.writer, X = q || G > MAX_32_BITS, J = q || k > MAX_32_BITS, ee = q || e.offset + e.pendingEntriesSize - z > MAX_32_BITS, oe = getOptionValue(e, i, "supportZip64SplitFile", !0) && q || H + Math.ceil(e.pendingEntriesSize / K) > MAX_16_BITS;
|
|
114986
|
+
if (ee || X || J || oe) {
|
|
114987
|
+
if (B === !1 || !P)
|
|
114882
114988
|
throw new Error(ERR_UNSUPPORTED_FORMAT);
|
|
114883
|
-
|
|
114884
|
-
}
|
|
114885
|
-
|
|
114886
|
-
|
|
114887
|
-
|
|
114888
|
-
|
|
114889
|
-
|
|
114890
|
-
|
|
114891
|
-
|
|
114892
|
-
|
|
114893
|
-
|
|
114894
|
-
|
|
114895
|
-
|
|
114896
|
-
|
|
114897
|
-
|
|
114898
|
-
|
|
114899
|
-
|
|
114900
|
-
|
|
114901
|
-
|
|
114902
|
-
|
|
114903
|
-
|
|
114904
|
-
|
|
114905
|
-
|
|
114906
|
-
|
|
114907
|
-
|
|
114908
|
-
|
|
114909
|
-
|
|
114910
|
-
|
|
114911
|
-
|
|
114912
|
-
|
|
114913
|
-
|
|
114914
|
-
|
|
114989
|
+
B = !0;
|
|
114990
|
+
}
|
|
114991
|
+
B = B || !1;
|
|
114992
|
+
const Q = getOptionValue(e, i, PROPERTY_NAME_ENCRYPTED), { signature: he } = i;
|
|
114993
|
+
i = Object.assign({}, i, {
|
|
114994
|
+
rawFilename: f,
|
|
114995
|
+
rawComment: p,
|
|
114996
|
+
version: m,
|
|
114997
|
+
versionMadeBy: o,
|
|
114998
|
+
lastModDate: _,
|
|
114999
|
+
lastAccessDate: y,
|
|
115000
|
+
creationDate: C,
|
|
115001
|
+
rawExtraField: V,
|
|
115002
|
+
zip64: B,
|
|
115003
|
+
zip64UncompressedSize: X,
|
|
115004
|
+
zip64CompressedSize: J,
|
|
115005
|
+
zip64Offset: ee,
|
|
115006
|
+
zip64DiskNumberStart: oe,
|
|
115007
|
+
password: b,
|
|
115008
|
+
rawPassword: S,
|
|
115009
|
+
level: !O && e.config.CompressionStream === UNDEFINED_VALUE && e.config.CompressionStreamNative === UNDEFINED_VALUE ? 0 : I,
|
|
115010
|
+
useWebWorkers: M,
|
|
115011
|
+
encryptionStrength: E,
|
|
115012
|
+
extendedTimestamp: D,
|
|
115013
|
+
zipCrypto: A,
|
|
115014
|
+
bufferedWrite: R,
|
|
115015
|
+
keepOrder: P,
|
|
115016
|
+
useUnicodeFileNames: w,
|
|
115017
|
+
dataDescriptor: F,
|
|
115018
|
+
dataDescriptorSignature: L,
|
|
115019
|
+
signal: g,
|
|
115020
|
+
msDosCompatible: r,
|
|
115021
|
+
internalFileAttribute: T,
|
|
115022
|
+
internalFileAttributes: T,
|
|
115023
|
+
externalFileAttribute: c,
|
|
115024
|
+
externalFileAttributes: c,
|
|
115025
|
+
useCompressionStream: O,
|
|
115026
|
+
passThrough: x,
|
|
115027
|
+
encrypted: !!(b && getLength(b) || S && getLength(S)) || x && Q,
|
|
115028
|
+
signature: he,
|
|
115029
|
+
compressionMethod: N,
|
|
115030
|
+
uncompressedSize: G,
|
|
115031
|
+
offset: e.offset - z,
|
|
115032
|
+
diskNumberStart: H
|
|
114915
115033
|
});
|
|
114916
|
-
const
|
|
114917
|
-
|
|
114918
|
-
let
|
|
115034
|
+
const ue = getHeaderInfo(i), se = getDataDescriptorInfo(i), _e = getLength(ue.localHeaderArray, se.dataDescriptorArray);
|
|
115035
|
+
$ = _e + k, e.options.usdz && ($ += $ + 64), e.pendingEntriesSize += $;
|
|
115036
|
+
let me;
|
|
114919
115037
|
try {
|
|
114920
|
-
|
|
115038
|
+
me = await getFileEntry(e, t, n, { headerInfo: ue, dataDescriptorInfo: se, metadataSize: _e }, i);
|
|
114921
115039
|
} finally {
|
|
114922
|
-
e.pendingEntriesSize -=
|
|
115040
|
+
e.pendingEntriesSize -= $;
|
|
114923
115041
|
}
|
|
114924
|
-
return Object.assign(
|
|
115042
|
+
return Object.assign(me, { name: t, comment: h, extraField: U }), new Entry(me);
|
|
114925
115043
|
}
|
|
114926
115044
|
async function getFileEntry(e, t, n, i, r) {
|
|
114927
115045
|
const {
|
|
@@ -114938,24 +115056,28 @@ async function getFileEntry(e, t, n, i, r) {
|
|
|
114938
115056
|
o.set(t, m);
|
|
114939
115057
|
try {
|
|
114940
115058
|
let P;
|
|
114941
|
-
c && (P = p && p.lock, E()), (r.bufferedWrite || e.writerLocked || e.bufferedWrites && c || !l) && !h ? (b = new TransformStream(),
|
|
114942
|
-
const { writable: I } = s;
|
|
114943
|
-
let { diskOffset: M } = s;
|
|
115059
|
+
c && (P = p && p.lock, E()), (r.bufferedWrite || e.writerLocked || e.bufferedWrites && c || !l) && !h ? (b = new TransformStream(), b.size = 0, _ = !0, e.bufferedWrites++, await initStream(s)) : (b = s, await A()), await initStream(b);
|
|
115060
|
+
const { writable: I, diskOffset: M } = s;
|
|
114944
115061
|
if (e.addSplitZipSignature) {
|
|
114945
115062
|
delete e.addSplitZipSignature;
|
|
114946
|
-
const
|
|
114947
|
-
setUint32(
|
|
114948
|
-
}
|
|
114949
|
-
h && appendExtraFieldUSDZ(i, e.offset - M)
|
|
114950
|
-
const {
|
|
114951
|
-
|
|
114952
|
-
|
|
114953
|
-
|
|
114954
|
-
|
|
114955
|
-
}
|
|
114956
|
-
|
|
114957
|
-
|
|
114958
|
-
|
|
115063
|
+
const O = new Uint8Array(4), N = getDataView(O);
|
|
115064
|
+
setUint32(N, 0, SPLIT_ZIP_FILE_SIGNATURE), await writeData(s, O), e.offset += 4;
|
|
115065
|
+
}
|
|
115066
|
+
h && appendExtraFieldUSDZ(i, e.offset - M);
|
|
115067
|
+
const {
|
|
115068
|
+
localHeaderView: R,
|
|
115069
|
+
localHeaderArray: L
|
|
115070
|
+
} = f;
|
|
115071
|
+
_ || (await P, await D(I));
|
|
115072
|
+
const { diskNumber: g } = s;
|
|
115073
|
+
x = !0, m.diskNumberStart = g, _ ? S = new Response(b.readable).blob() : await writeData(b, L), m = await createFileEntry(n, b, m, i, e.config, r);
|
|
115074
|
+
const { zip64: w } = m;
|
|
115075
|
+
if (x = !1, o.set(t, m), m.filename = t, _) {
|
|
115076
|
+
const [O] = await Promise.all([S, b.writable.getWriter().close(), P]);
|
|
115077
|
+
await A(), T = !0, m.diskNumberStart = s.diskNumber, m.offset = e.offset - s.diskOffset, w && updateZip64ExtraField(m), updateLocalHeader(m, R), await D(I), await writeData(s, L), await O.stream().pipeTo(I, { preventClose: !0, preventAbort: !0, signal: d }), s.size += b.size, T = !1;
|
|
115078
|
+
} else
|
|
115079
|
+
m.offset = e.offset - M, w && updateZip64ExtraField(m);
|
|
115080
|
+
if (m.offset > MAX_32_BITS && !w)
|
|
114959
115081
|
throw new Error(ERR_UNSUPPORTED_FORMAT);
|
|
114960
115082
|
return e.offset += m.size, m;
|
|
114961
115083
|
} catch (P) {
|
|
@@ -114965,7 +115087,7 @@ async function getFileEntry(e, t, n, i, r) {
|
|
|
114965
115087
|
P.corruptedEntry = !0;
|
|
114966
115088
|
} catch {
|
|
114967
115089
|
}
|
|
114968
|
-
_ ? e.offset += b.
|
|
115090
|
+
_ ? e.offset += b.size : e.offset = b.size;
|
|
114969
115091
|
}
|
|
114970
115092
|
throw o.delete(t), P;
|
|
114971
115093
|
} finally {
|
|
@@ -114991,125 +115113,134 @@ async function createFileEntry(e, t, { diskNumberStart: n, lock: i }, r, o, s) {
|
|
|
114991
115113
|
dataDescriptorInfo: l,
|
|
114992
115114
|
metadataSize: d
|
|
114993
115115
|
} = r, {
|
|
114994
|
-
|
|
114995
|
-
|
|
115116
|
+
headerArray: f,
|
|
115117
|
+
headerView: h,
|
|
114996
115118
|
lastModDate: p,
|
|
114997
115119
|
rawLastModDate: m,
|
|
114998
115120
|
encrypted: _,
|
|
114999
115121
|
compressed: y,
|
|
115000
115122
|
version: C,
|
|
115001
115123
|
compressionMethod: T,
|
|
115002
|
-
|
|
115003
|
-
|
|
115004
|
-
|
|
115005
|
-
|
|
115006
|
-
|
|
115007
|
-
|
|
115008
|
-
|
|
115009
|
-
|
|
115010
|
-
|
|
115011
|
-
|
|
115012
|
-
|
|
115013
|
-
|
|
115014
|
-
|
|
115015
|
-
|
|
115016
|
-
|
|
115017
|
-
|
|
115018
|
-
|
|
115019
|
-
|
|
115020
|
-
|
|
115021
|
-
|
|
115022
|
-
|
|
115023
|
-
|
|
115024
|
-
|
|
115025
|
-
|
|
115026
|
-
|
|
115027
|
-
|
|
115028
|
-
|
|
115029
|
-
|
|
115030
|
-
|
|
115031
|
-
|
|
115032
|
-
|
|
115033
|
-
|
|
115034
|
-
|
|
115035
|
-
|
|
115124
|
+
rawExtraFieldZip64: x,
|
|
115125
|
+
localExtraFieldZip64Length: b,
|
|
115126
|
+
rawExtraFieldExtendedTimestamp: S,
|
|
115127
|
+
extraFieldExtendedTimestampFlag: E,
|
|
115128
|
+
rawExtraFieldNTFS: A,
|
|
115129
|
+
rawExtraFieldAES: D
|
|
115130
|
+
} = c, { dataDescriptorArray: P } = l, {
|
|
115131
|
+
rawFilename: I,
|
|
115132
|
+
lastAccessDate: M,
|
|
115133
|
+
creationDate: R,
|
|
115134
|
+
password: L,
|
|
115135
|
+
rawPassword: g,
|
|
115136
|
+
level: w,
|
|
115137
|
+
zip64: O,
|
|
115138
|
+
zip64UncompressedSize: N,
|
|
115139
|
+
zip64CompressedSize: F,
|
|
115140
|
+
zip64Offset: B,
|
|
115141
|
+
zip64DiskNumberStart: V,
|
|
115142
|
+
zipCrypto: U,
|
|
115143
|
+
dataDescriptor: k,
|
|
115144
|
+
directory: $,
|
|
115145
|
+
executable: G,
|
|
115146
|
+
versionMadeBy: q,
|
|
115147
|
+
rawComment: z,
|
|
115148
|
+
rawExtraField: H,
|
|
115149
|
+
useWebWorkers: K,
|
|
115150
|
+
onstart: X,
|
|
115151
|
+
onprogress: J,
|
|
115152
|
+
onend: ee,
|
|
115153
|
+
signal: te,
|
|
115154
|
+
encryptionStrength: oe,
|
|
115155
|
+
extendedTimestamp: Q,
|
|
115156
|
+
msDosCompatible: he,
|
|
115157
|
+
internalFileAttributes: ue,
|
|
115158
|
+
externalFileAttributes: se,
|
|
115159
|
+
useCompressionStream: _e,
|
|
115160
|
+
passThrough: me
|
|
115161
|
+
} = s, re = {
|
|
115036
115162
|
lock: i,
|
|
115037
|
-
versionMadeBy:
|
|
115038
|
-
zip64:
|
|
115039
|
-
directory:
|
|
115163
|
+
versionMadeBy: q,
|
|
115164
|
+
zip64: O,
|
|
115165
|
+
directory: !!$,
|
|
115166
|
+
executable: !!G,
|
|
115040
115167
|
filenameUTF8: !0,
|
|
115041
|
-
rawFilename:
|
|
115168
|
+
rawFilename: I,
|
|
115042
115169
|
commentUTF8: !0,
|
|
115043
|
-
rawComment:
|
|
115044
|
-
|
|
115045
|
-
|
|
115046
|
-
|
|
115047
|
-
|
|
115048
|
-
|
|
115049
|
-
|
|
115050
|
-
|
|
115051
|
-
|
|
115170
|
+
rawComment: z,
|
|
115171
|
+
rawExtraFieldZip64: x,
|
|
115172
|
+
localExtraFieldZip64Length: b,
|
|
115173
|
+
rawExtraFieldExtendedTimestamp: S,
|
|
115174
|
+
rawExtraFieldNTFS: A,
|
|
115175
|
+
rawExtraFieldAES: D,
|
|
115176
|
+
rawExtraField: H,
|
|
115177
|
+
extendedTimestamp: Q,
|
|
115178
|
+
msDosCompatible: he,
|
|
115179
|
+
internalFileAttributes: ue,
|
|
115180
|
+
externalFileAttributes: se,
|
|
115052
115181
|
diskNumberStart: n
|
|
115053
115182
|
};
|
|
115054
|
-
let
|
|
115055
|
-
|
|
115183
|
+
let {
|
|
115184
|
+
signature: xe,
|
|
115185
|
+
uncompressedSize: pe
|
|
115186
|
+
} = s, Ce = 0;
|
|
115187
|
+
me || (pe = 0);
|
|
115188
|
+
const { writable: be } = t;
|
|
115056
115189
|
if (e) {
|
|
115057
|
-
e.chunkSize = getChunkSize(o)
|
|
115058
|
-
const
|
|
115190
|
+
e.chunkSize = getChunkSize(o);
|
|
115191
|
+
const W = e.readable, j = e.size, ce = {
|
|
115059
115192
|
options: {
|
|
115060
115193
|
codecType: CODEC_DEFLATE,
|
|
115061
|
-
level:
|
|
115062
|
-
rawPassword:
|
|
115063
|
-
password:
|
|
115064
|
-
encryptionStrength:
|
|
115065
|
-
zipCrypto: _ &&
|
|
115066
|
-
passwordVerification: _ &&
|
|
115067
|
-
signed: !
|
|
115068
|
-
compressed: y,
|
|
115069
|
-
encrypted: _,
|
|
115070
|
-
useWebWorkers:
|
|
115071
|
-
useCompressionStream:
|
|
115194
|
+
level: w,
|
|
115195
|
+
rawPassword: g,
|
|
115196
|
+
password: L,
|
|
115197
|
+
encryptionStrength: oe,
|
|
115198
|
+
zipCrypto: _ && U,
|
|
115199
|
+
passwordVerification: _ && U && m >> 8 & 255,
|
|
115200
|
+
signed: !me,
|
|
115201
|
+
compressed: y && !me,
|
|
115202
|
+
encrypted: _ && !me,
|
|
115203
|
+
useWebWorkers: K,
|
|
115204
|
+
useCompressionStream: _e,
|
|
115072
115205
|
transferStreams: !1
|
|
115073
115206
|
},
|
|
115074
115207
|
config: o,
|
|
115075
|
-
streamOptions: { signal:
|
|
115076
|
-
}
|
|
115077
|
-
|
|
115078
|
-
|
|
115079
|
-
|
|
115080
|
-
|
|
115081
|
-
|
|
115082
|
-
|
|
115083
|
-
|
|
115084
|
-
} else
|
|
115085
|
-
Se = new Uint8Array();
|
|
115208
|
+
streamOptions: { signal: te, size: j, onstart: X, onprogress: J, onend: ee }
|
|
115209
|
+
};
|
|
115210
|
+
try {
|
|
115211
|
+
const Ee = await runWorker({ readable: W, writable: be }, ce);
|
|
115212
|
+
Ce = Ee.outputSize, t.size += Ce, me || (pe = Ee.inputSize, xe = Ee.signature);
|
|
115213
|
+
} catch (Ee) {
|
|
115214
|
+
throw Ee.outputSize !== UNDEFINED_VALUE && (t.size += Ee.outputSize), Ee;
|
|
115215
|
+
}
|
|
115216
|
+
}
|
|
115086
115217
|
return setEntryInfo({
|
|
115087
|
-
signature:
|
|
115088
|
-
|
|
115089
|
-
|
|
115090
|
-
uncompressedSize: _e,
|
|
115218
|
+
signature: xe,
|
|
115219
|
+
compressedSize: Ce,
|
|
115220
|
+
uncompressedSize: pe,
|
|
115091
115221
|
headerInfo: c,
|
|
115092
115222
|
dataDescriptorInfo: l
|
|
115093
|
-
}, s),
|
|
115094
|
-
uncompressedSize:
|
|
115095
|
-
compressedSize:
|
|
115223
|
+
}, s), k && await writeData(t, P), Object.assign(re, {
|
|
115224
|
+
uncompressedSize: pe,
|
|
115225
|
+
compressedSize: Ce,
|
|
115096
115226
|
lastModDate: p,
|
|
115097
115227
|
rawLastModDate: m,
|
|
115098
|
-
creationDate:
|
|
115099
|
-
lastAccessDate:
|
|
115228
|
+
creationDate: R,
|
|
115229
|
+
lastAccessDate: M,
|
|
115100
115230
|
encrypted: _,
|
|
115101
|
-
|
|
115231
|
+
zipCrypto: U,
|
|
115232
|
+
size: d + Ce,
|
|
115102
115233
|
compressionMethod: T,
|
|
115103
115234
|
version: C,
|
|
115104
|
-
headerArray:
|
|
115105
|
-
|
|
115106
|
-
|
|
115107
|
-
extraFieldExtendedTimestampFlag:
|
|
115108
|
-
zip64UncompressedSize:
|
|
115109
|
-
zip64CompressedSize:
|
|
115110
|
-
zip64Offset:
|
|
115111
|
-
zip64DiskNumberStart:
|
|
115112
|
-
}),
|
|
115235
|
+
headerArray: f,
|
|
115236
|
+
headerView: h,
|
|
115237
|
+
signature: xe,
|
|
115238
|
+
extraFieldExtendedTimestampFlag: E,
|
|
115239
|
+
zip64UncompressedSize: N,
|
|
115240
|
+
zip64CompressedSize: F,
|
|
115241
|
+
zip64Offset: B,
|
|
115242
|
+
zip64DiskNumberStart: V
|
|
115243
|
+
}), re;
|
|
115113
115244
|
}
|
|
115114
115245
|
function getHeaderInfo(e) {
|
|
115115
115246
|
const {
|
|
@@ -115117,69 +115248,99 @@ function getHeaderInfo(e) {
|
|
|
115117
115248
|
lastModDate: n,
|
|
115118
115249
|
lastAccessDate: i,
|
|
115119
115250
|
creationDate: r,
|
|
115120
|
-
|
|
115121
|
-
|
|
115122
|
-
|
|
115123
|
-
|
|
115124
|
-
|
|
115125
|
-
|
|
115126
|
-
|
|
115127
|
-
|
|
115128
|
-
|
|
115129
|
-
|
|
115130
|
-
|
|
115131
|
-
|
|
115132
|
-
|
|
115133
|
-
x
|
|
115134
|
-
|
|
115135
|
-
|
|
115251
|
+
level: o,
|
|
115252
|
+
zip64: s,
|
|
115253
|
+
zipCrypto: c,
|
|
115254
|
+
useUnicodeFileNames: l,
|
|
115255
|
+
dataDescriptor: d,
|
|
115256
|
+
directory: f,
|
|
115257
|
+
rawExtraField: h,
|
|
115258
|
+
encryptionStrength: p,
|
|
115259
|
+
extendedTimestamp: m,
|
|
115260
|
+
passThrough: _,
|
|
115261
|
+
encrypted: y,
|
|
115262
|
+
zip64UncompressedSize: C,
|
|
115263
|
+
zip64CompressedSize: T,
|
|
115264
|
+
zip64Offset: x,
|
|
115265
|
+
zip64DiskNumberStart: b,
|
|
115266
|
+
uncompressedSize: S,
|
|
115267
|
+
offset: E,
|
|
115268
|
+
diskNumberStart: A
|
|
115269
|
+
} = e;
|
|
115270
|
+
let { version: D, compressionMethod: P } = e;
|
|
115271
|
+
const I = !f && (o > 0 || o === UNDEFINED_VALUE && P !== 0);
|
|
115272
|
+
let M;
|
|
115273
|
+
const R = _ || !I, L = s && (e.bufferedWrite || !C && !T || R);
|
|
115274
|
+
if (s) {
|
|
115275
|
+
let z = 4;
|
|
115276
|
+
C && (z += 8), T && (z += 8), x && (z += 8), b && (z += 4), M = new Uint8Array(z);
|
|
115277
|
+
const H = getDataView(M);
|
|
115278
|
+
if (setUint16(H, 0, EXTRAFIELD_TYPE_ZIP64), setUint16(H, 2, getLength(M) - 4), L) {
|
|
115279
|
+
const K = getDataView(M);
|
|
115280
|
+
let X = 4;
|
|
115281
|
+
C && (setBigUint64(K, X, BigInt(S)), X += 8), T && R && (setBigUint64(K, X, BigInt(S)), X += 8), x && (setBigUint64(K, X, BigInt(E)), X += 8), b && (setUint32(K, X, A), X += 4);
|
|
115282
|
+
}
|
|
115136
115283
|
} else
|
|
115137
|
-
|
|
115138
|
-
let
|
|
115139
|
-
if (
|
|
115140
|
-
|
|
115141
|
-
const
|
|
115142
|
-
setUint16(
|
|
115143
|
-
|
|
115144
|
-
|
|
115284
|
+
M = new Uint8Array();
|
|
115285
|
+
let g;
|
|
115286
|
+
if (y && !c) {
|
|
115287
|
+
g = new Uint8Array(getLength(EXTRAFIELD_DATA_AES) + 2);
|
|
115288
|
+
const z = getDataView(g);
|
|
115289
|
+
setUint16(z, 0, EXTRAFIELD_TYPE_AES), arraySet(g, EXTRAFIELD_DATA_AES, 2), setUint8(z, 8, p);
|
|
115290
|
+
} else
|
|
115291
|
+
g = new Uint8Array();
|
|
115292
|
+
let w, O, N;
|
|
115293
|
+
if (m) {
|
|
115294
|
+
O = new Uint8Array(9 + (i ? 4 : 0) + (r ? 4 : 0));
|
|
115295
|
+
const z = getDataView(O);
|
|
115296
|
+
setUint16(z, 0, EXTRAFIELD_TYPE_EXTENDED_TIMESTAMP), setUint16(z, 2, getLength(O) - 4), N = 1 + (i ? 2 : 0) + (r ? 4 : 0), setUint8(z, 4, N);
|
|
115297
|
+
let H = 5;
|
|
115298
|
+
setUint32(z, H, Math.floor(n.getTime() / 1e3)), H += 4, i && (setUint32(z, H, Math.floor(i.getTime() / 1e3)), H += 4), r && setUint32(z, H, Math.floor(r.getTime() / 1e3));
|
|
115145
115299
|
try {
|
|
115146
|
-
|
|
115147
|
-
const
|
|
115148
|
-
setUint16(
|
|
115300
|
+
w = new Uint8Array(36);
|
|
115301
|
+
const K = getDataView(w), X = getTimeNTFS(n);
|
|
115302
|
+
setUint16(K, 0, EXTRAFIELD_TYPE_NTFS), setUint16(K, 2, 32), setUint16(K, 8, EXTRAFIELD_TYPE_NTFS_TAG1), setUint16(K, 10, 24), setBigUint64(K, 12, X), setBigUint64(K, 20, getTimeNTFS(i) || X), setBigUint64(K, 28, getTimeNTFS(r) || X);
|
|
115149
115303
|
} catch {
|
|
115150
|
-
|
|
115304
|
+
w = new Uint8Array();
|
|
115151
115305
|
}
|
|
115152
115306
|
} else
|
|
115153
|
-
|
|
115154
|
-
|
|
115155
|
-
|
|
115156
|
-
|
|
115157
|
-
|
|
115158
|
-
|
|
115159
|
-
|
|
115160
|
-
|
|
115161
|
-
|
|
115162
|
-
|
|
115163
|
-
|
|
115164
|
-
|
|
115165
|
-
|
|
115166
|
-
|
|
115167
|
-
|
|
115168
|
-
|
|
115169
|
-
|
|
115170
|
-
|
|
115171
|
-
|
|
115307
|
+
w = O = new Uint8Array();
|
|
115308
|
+
P === UNDEFINED_VALUE && (P = I ? COMPRESSION_METHOD_DEFLATE : COMPRESSION_METHOD_STORE), s && (D = D > VERSION_ZIP64 ? D : VERSION_ZIP64), y && !c && (D = D > VERSION_AES ? D : VERSION_AES, g[9] = P, P = COMPRESSION_METHOD_AES);
|
|
115309
|
+
const F = L ? getLength(M) : 0, B = F + getLength(g, O, w, h), {
|
|
115310
|
+
headerArray: V,
|
|
115311
|
+
headerView: U,
|
|
115312
|
+
rawLastModDate: k
|
|
115313
|
+
} = getHeaderArrayData({
|
|
115314
|
+
version: D,
|
|
115315
|
+
bitFlag: getBitFlag(o, l, d, y, P),
|
|
115316
|
+
compressionMethod: P,
|
|
115317
|
+
uncompressedSize: S,
|
|
115318
|
+
lastModDate: n < MIN_DATE ? MIN_DATE : n > MAX_DATE ? MAX_DATE : n,
|
|
115319
|
+
rawFilename: t,
|
|
115320
|
+
zip64CompressedSize: T,
|
|
115321
|
+
zip64UncompressedSize: C,
|
|
115322
|
+
extraFieldLength: B
|
|
115323
|
+
});
|
|
115324
|
+
let $ = HEADER_SIZE + 4;
|
|
115325
|
+
const G = new Uint8Array($ + getLength(t) + B), q = getDataView(G);
|
|
115326
|
+
return setUint32(q, 0, LOCAL_FILE_HEADER_SIGNATURE), arraySet(G, V, 4), arraySet(G, t, $), $ += getLength(t), L && arraySet(G, M, $), $ += F, arraySet(G, g, $), $ += getLength(g), arraySet(G, O, $), $ += getLength(O), arraySet(G, w, $), $ += getLength(w), arraySet(G, h, $), {
|
|
115327
|
+
localHeaderArray: G,
|
|
115328
|
+
localHeaderView: q,
|
|
115329
|
+
headerArray: V,
|
|
115330
|
+
headerView: U,
|
|
115172
115331
|
lastModDate: n,
|
|
115173
|
-
rawLastModDate:
|
|
115174
|
-
encrypted:
|
|
115175
|
-
compressed:
|
|
115176
|
-
version:
|
|
115177
|
-
compressionMethod:
|
|
115178
|
-
extraFieldExtendedTimestampFlag:
|
|
115179
|
-
|
|
115180
|
-
|
|
115181
|
-
|
|
115182
|
-
|
|
115332
|
+
rawLastModDate: k,
|
|
115333
|
+
encrypted: y,
|
|
115334
|
+
compressed: I,
|
|
115335
|
+
version: D,
|
|
115336
|
+
compressionMethod: P,
|
|
115337
|
+
extraFieldExtendedTimestampFlag: N,
|
|
115338
|
+
rawExtraFieldZip64: M,
|
|
115339
|
+
localExtraFieldZip64Length: F,
|
|
115340
|
+
rawExtraFieldExtendedTimestamp: O,
|
|
115341
|
+
rawExtraFieldNTFS: w,
|
|
115342
|
+
rawExtraFieldAES: g,
|
|
115343
|
+
extraFieldLength: B
|
|
115183
115344
|
};
|
|
115184
115345
|
}
|
|
115185
115346
|
function appendExtraFieldUSDZ(e, t) {
|
|
@@ -115191,155 +115352,167 @@ function appendExtraFieldUSDZ(e, t) {
|
|
|
115191
115352
|
const d = i;
|
|
115192
115353
|
n.localHeaderArray = i = new Uint8Array(getLength(d) + s), arraySet(i, d), arraySet(i, c, getLength(d)), o = getDataView(i), setUint16(o, 28, r + s), e.metadataSize += s;
|
|
115193
115354
|
}
|
|
115194
|
-
function getDataDescriptorInfo(
|
|
115195
|
-
|
|
115196
|
-
|
|
115197
|
-
|
|
115198
|
-
|
|
115199
|
-
|
|
115200
|
-
|
|
115201
|
-
|
|
115202
|
-
|
|
115203
|
-
|
|
115204
|
-
dataDescriptorOffset: s
|
|
115355
|
+
function getDataDescriptorInfo({
|
|
115356
|
+
zip64: e,
|
|
115357
|
+
dataDescriptor: t,
|
|
115358
|
+
dataDescriptorSignature: n
|
|
115359
|
+
}) {
|
|
115360
|
+
let i = new Uint8Array(), r, o = 0;
|
|
115361
|
+
return t && (i = new Uint8Array(e ? n ? 24 : 20 : n ? 16 : 12), r = getDataView(i), n && (o = 4, setUint32(r, 0, DATA_DESCRIPTOR_RECORD_SIGNATURE))), {
|
|
115362
|
+
dataDescriptorArray: i,
|
|
115363
|
+
dataDescriptorView: r,
|
|
115364
|
+
dataDescriptorOffset: o
|
|
115205
115365
|
};
|
|
115206
115366
|
}
|
|
115207
|
-
function setEntryInfo(
|
|
115367
|
+
function setEntryInfo({
|
|
115368
|
+
signature: e,
|
|
115369
|
+
compressedSize: t,
|
|
115370
|
+
uncompressedSize: n,
|
|
115371
|
+
headerInfo: i,
|
|
115372
|
+
dataDescriptorInfo: r
|
|
115373
|
+
}, {
|
|
115374
|
+
zip64: o,
|
|
115375
|
+
zipCrypto: s,
|
|
115376
|
+
dataDescriptor: c
|
|
115377
|
+
}) {
|
|
115208
115378
|
const {
|
|
115209
|
-
signature: n,
|
|
115210
|
-
rawExtraFieldZip64: i,
|
|
115211
|
-
compressedSize: r,
|
|
115212
|
-
uncompressedSize: o,
|
|
115213
|
-
headerInfo: s,
|
|
115214
|
-
dataDescriptorInfo: c
|
|
115215
|
-
} = e, {
|
|
115216
115379
|
headerView: l,
|
|
115217
115380
|
encrypted: d
|
|
115218
|
-
} =
|
|
115381
|
+
} = i, {
|
|
115219
115382
|
dataDescriptorView: f,
|
|
115220
115383
|
dataDescriptorOffset: h
|
|
115221
|
-
} =
|
|
115222
|
-
|
|
115223
|
-
|
|
115224
|
-
|
|
115225
|
-
|
|
115226
|
-
|
|
115227
|
-
|
|
115228
|
-
|
|
115229
|
-
|
|
115230
|
-
|
|
115231
|
-
|
|
115232
|
-
|
|
115233
|
-
|
|
115234
|
-
|
|
115235
|
-
|
|
115236
|
-
|
|
115237
|
-
|
|
115238
|
-
|
|
115239
|
-
|
|
115240
|
-
|
|
115241
|
-
|
|
115242
|
-
|
|
115243
|
-
|
|
115384
|
+
} = r;
|
|
115385
|
+
(!d || s) && e !== UNDEFINED_VALUE && (setUint32(l, HEADER_OFFSET_SIGNATURE, e), c && setUint32(f, h, e)), o ? c && (setBigUint64(f, h + 4, BigInt(t)), setBigUint64(f, h + 12, BigInt(n))) : (setUint32(l, HEADER_OFFSET_COMPRESSED_SIZE, t), setUint32(l, HEADER_OFFSET_UNCOMPRESSED_SIZE, n), c && (setUint32(f, h + 4, t), setUint32(f, h + 8, n)));
|
|
115386
|
+
}
|
|
115387
|
+
function updateLocalHeader({
|
|
115388
|
+
rawFilename: e,
|
|
115389
|
+
dataDescriptor: t,
|
|
115390
|
+
encrypted: n,
|
|
115391
|
+
zip64: i,
|
|
115392
|
+
localExtraFieldZip64Length: r,
|
|
115393
|
+
signature: o,
|
|
115394
|
+
compressedSize: s,
|
|
115395
|
+
uncompressedSize: c,
|
|
115396
|
+
offset: l,
|
|
115397
|
+
diskNumberStart: d,
|
|
115398
|
+
zip64UncompressedSize: f,
|
|
115399
|
+
zip64CompressedSize: h,
|
|
115400
|
+
zip64Offset: p,
|
|
115401
|
+
zip64DiskNumberStart: m
|
|
115402
|
+
}, _) {
|
|
115403
|
+
if (t || (n || setUint32(_, HEADER_OFFSET_SIGNATURE + 4, o), i || (setUint32(_, HEADER_OFFSET_COMPRESSED_SIZE + 4, s), setUint32(_, HEADER_OFFSET_UNCOMPRESSED_SIZE + 4, c))), i && r) {
|
|
115404
|
+
let y = HEADER_SIZE + 4 + getLength(e) + 4;
|
|
115405
|
+
f && (setBigUint64(_, y, BigInt(c)), y += 8), h && (setBigUint64(_, y, BigInt(s)), y += 8), p && (setBigUint64(_, y, BigInt(l)), y += 8), m && setUint32(_, y, d);
|
|
115406
|
+
}
|
|
115407
|
+
}
|
|
115408
|
+
function updateZip64ExtraField({
|
|
115409
|
+
compressedSize: e,
|
|
115410
|
+
uncompressedSize: t,
|
|
115411
|
+
offset: n,
|
|
115412
|
+
diskNumberStart: i,
|
|
115413
|
+
zip64UncompressedSize: r,
|
|
115414
|
+
zip64CompressedSize: o,
|
|
115415
|
+
zip64Offset: s,
|
|
115416
|
+
zip64DiskNumberStart: c,
|
|
115417
|
+
rawExtraFieldZip64: l
|
|
115418
|
+
}) {
|
|
115419
|
+
const d = getDataView(l);
|
|
115244
115420
|
let f = 4;
|
|
115245
|
-
|
|
115421
|
+
r && (setBigUint64(d, f, BigInt(t)), f += 8), o && (setBigUint64(d, f, BigInt(e)), f += 8), s && (setBigUint64(d, f, BigInt(n)), f += 8), c && setUint32(d, f, i);
|
|
115246
115422
|
}
|
|
115247
115423
|
async function closeFile(e, t, n) {
|
|
115248
|
-
const { files: i, writer: r } = e, { diskOffset: o
|
|
115249
|
-
let { diskNumber:
|
|
115250
|
-
for (const [,
|
|
115424
|
+
const { files: i, writer: r } = e, { diskOffset: o } = r;
|
|
115425
|
+
let { diskNumber: s } = r, c = 0, l = 0, d = e.offset - o, f = i.size;
|
|
115426
|
+
for (const [, S] of i) {
|
|
115251
115427
|
const {
|
|
115252
|
-
rawFilename:
|
|
115253
|
-
rawExtraFieldZip64:
|
|
115254
|
-
rawExtraFieldAES:
|
|
115255
|
-
rawComment:
|
|
115256
|
-
rawExtraFieldNTFS:
|
|
115257
|
-
rawExtraField:
|
|
115258
|
-
extendedTimestamp:
|
|
115259
|
-
extraFieldExtendedTimestampFlag:
|
|
115260
|
-
lastModDate:
|
|
115261
|
-
} =
|
|
115262
|
-
let
|
|
115263
|
-
if (
|
|
115264
|
-
|
|
115265
|
-
const
|
|
115266
|
-
setUint16(
|
|
115428
|
+
rawFilename: E,
|
|
115429
|
+
rawExtraFieldZip64: A,
|
|
115430
|
+
rawExtraFieldAES: D,
|
|
115431
|
+
rawComment: P,
|
|
115432
|
+
rawExtraFieldNTFS: I,
|
|
115433
|
+
rawExtraField: M,
|
|
115434
|
+
extendedTimestamp: R,
|
|
115435
|
+
extraFieldExtendedTimestampFlag: L,
|
|
115436
|
+
lastModDate: g
|
|
115437
|
+
} = S;
|
|
115438
|
+
let w;
|
|
115439
|
+
if (R) {
|
|
115440
|
+
w = new Uint8Array(9);
|
|
115441
|
+
const O = getDataView(w);
|
|
115442
|
+
setUint16(O, 0, EXTRAFIELD_TYPE_EXTENDED_TIMESTAMP), setUint16(O, 2, 5), setUint8(O, 4, L), setUint32(O, 5, Math.floor(g.getTime() / 1e3));
|
|
115267
115443
|
} else
|
|
115268
|
-
|
|
115269
|
-
|
|
115444
|
+
w = new Uint8Array();
|
|
115445
|
+
S.rawExtraFieldExtendedTimestamp = w, l += 46 + getLength(
|
|
115446
|
+
E,
|
|
115447
|
+
P,
|
|
115270
115448
|
A,
|
|
115271
|
-
I,
|
|
115272
115449
|
D,
|
|
115273
|
-
|
|
115274
|
-
|
|
115275
|
-
|
|
115276
|
-
R
|
|
115450
|
+
I,
|
|
115451
|
+
w,
|
|
115452
|
+
M
|
|
115277
115453
|
);
|
|
115278
115454
|
}
|
|
115279
|
-
const
|
|
115455
|
+
const h = new Uint8Array(l), p = getDataView(h);
|
|
115280
115456
|
await initStream(r);
|
|
115281
|
-
let
|
|
115282
|
-
for (const [
|
|
115457
|
+
let m = 0;
|
|
115458
|
+
for (const [S, E] of Array.from(i.values()).entries()) {
|
|
115283
115459
|
const {
|
|
115284
|
-
offset:
|
|
115285
|
-
rawFilename:
|
|
115286
|
-
rawExtraFieldZip64:
|
|
115287
|
-
rawExtraFieldAES:
|
|
115288
|
-
|
|
115289
|
-
rawExtraFieldNTFS:
|
|
115290
|
-
rawExtraField:
|
|
115291
|
-
rawComment:
|
|
115292
|
-
versionMadeBy:
|
|
115293
|
-
headerArray:
|
|
115294
|
-
|
|
115295
|
-
zip64:
|
|
115296
|
-
zip64UncompressedSize:
|
|
115297
|
-
zip64CompressedSize:
|
|
115298
|
-
zip64DiskNumberStart:
|
|
115299
|
-
zip64Offset:
|
|
115300
|
-
|
|
115301
|
-
|
|
115302
|
-
|
|
115303
|
-
|
|
115304
|
-
|
|
115305
|
-
|
|
115306
|
-
|
|
115307
|
-
|
|
115308
|
-
|
|
115309
|
-
V || setUint32(Z, 18, Q), U || setUint32(Z, 14, ne), arraySet(p, N, l + 6), setUint16(m, l + 30, K), setUint16(m, l + 32, getLength(w)), setUint16(m, l + 34, B && k ? MAX_16_BITS : H), setUint16(m, l + 36, q), z ? setUint32(m, l + 38, z) : F && G && setUint8(m, l + 38, FILE_ATTR_MSDOS_DIR_MASK), setUint32(m, l + 42, B && $ ? MAX_32_BITS : D), arraySet(p, P, l + 46), arraySet(p, I, l + 46 + getLength(P)), arraySet(p, M, l + 46 + getLength(P, I)), arraySet(p, R, l + 46 + getLength(P, I, M)), arraySet(p, L, l + 46 + getLength(P, I, M, R)), arraySet(p, g, l + 46 + getLength(P, I, M, R, L)), arraySet(p, w, l + 46 + getLength(P) + K);
|
|
115310
|
-
const ee = 46 + getLength(P, w) + K;
|
|
115311
|
-
if (l - _ > r.availableSize && (r.availableSize = 0, await writeData(s, p.slice(_, l)), _ = l), l += ee, n.onprogress)
|
|
115460
|
+
offset: A,
|
|
115461
|
+
rawFilename: D,
|
|
115462
|
+
rawExtraFieldZip64: P,
|
|
115463
|
+
rawExtraFieldAES: I,
|
|
115464
|
+
rawExtraFieldExtendedTimestamp: M,
|
|
115465
|
+
rawExtraFieldNTFS: R,
|
|
115466
|
+
rawExtraField: L,
|
|
115467
|
+
rawComment: g,
|
|
115468
|
+
versionMadeBy: w,
|
|
115469
|
+
headerArray: O,
|
|
115470
|
+
headerView: N,
|
|
115471
|
+
zip64: F,
|
|
115472
|
+
zip64UncompressedSize: B,
|
|
115473
|
+
zip64CompressedSize: V,
|
|
115474
|
+
zip64DiskNumberStart: U,
|
|
115475
|
+
zip64Offset: k,
|
|
115476
|
+
internalFileAttributes: $,
|
|
115477
|
+
externalFileAttributes: G,
|
|
115478
|
+
diskNumberStart: q,
|
|
115479
|
+
uncompressedSize: z,
|
|
115480
|
+
compressedSize: H
|
|
115481
|
+
} = E, K = getLength(P, I, M, R, L);
|
|
115482
|
+
setUint32(p, c, CENTRAL_FILE_HEADER_SIGNATURE), setUint16(p, c + 4, w), B || setUint32(N, HEADER_OFFSET_UNCOMPRESSED_SIZE, z), V || setUint32(N, HEADER_OFFSET_COMPRESSED_SIZE, H), arraySet(h, O, c + 6);
|
|
115483
|
+
let X = c + HEADER_SIZE + 4;
|
|
115484
|
+
if (setUint16(p, X, K), X += 2, setUint16(p, X, getLength(g)), X += 2, setUint16(p, X, F && U ? MAX_16_BITS : q), X += 2, setUint16(p, X, $), X += 2, G && setUint32(p, X, G), X += 4, setUint32(p, X, F && k ? MAX_32_BITS : A), X += 4, arraySet(h, D, X), X += getLength(D), arraySet(h, P, X), X += getLength(P), arraySet(h, I, X), X += getLength(I), arraySet(h, M, X), X += getLength(M), arraySet(h, R, X), X += getLength(R), arraySet(h, L, X), X += getLength(L), arraySet(h, g, X), c - m > r.availableSize && (r.availableSize = 0, await writeData(r, h.slice(m, c)), m = c), c = X, n.onprogress)
|
|
115312
115485
|
try {
|
|
115313
|
-
await n.onprogress(
|
|
115486
|
+
await n.onprogress(S + 1, i.size, new Entry(E));
|
|
115314
115487
|
} catch {
|
|
115315
115488
|
}
|
|
115316
115489
|
}
|
|
115317
|
-
await writeData(
|
|
115318
|
-
let
|
|
115319
|
-
const { availableSize:
|
|
115320
|
-
|
|
115321
|
-
let
|
|
115322
|
-
if (
|
|
115323
|
-
if (
|
|
115490
|
+
await writeData(r, m ? h.slice(m) : h);
|
|
115491
|
+
let _ = r.diskNumber;
|
|
115492
|
+
const { availableSize: y } = r;
|
|
115493
|
+
y < END_OF_CENTRAL_DIR_LENGTH && _++;
|
|
115494
|
+
let C = getOptionValue(e, n, PROPERTY_NAME_ZIP64);
|
|
115495
|
+
if (d > MAX_32_BITS || l > MAX_32_BITS || f > MAX_16_BITS || _ > MAX_16_BITS) {
|
|
115496
|
+
if (C === !1)
|
|
115324
115497
|
throw new Error(ERR_UNSUPPORTED_FORMAT);
|
|
115325
|
-
|
|
115326
|
-
}
|
|
115327
|
-
const
|
|
115328
|
-
|
|
115329
|
-
const
|
|
115330
|
-
if (
|
|
115331
|
-
if (
|
|
115332
|
-
setUint16(
|
|
115498
|
+
C = !0;
|
|
115499
|
+
}
|
|
115500
|
+
const T = new Uint8Array(C ? ZIP64_END_OF_CENTRAL_DIR_TOTAL_LENGTH : END_OF_CENTRAL_DIR_LENGTH), x = getDataView(T);
|
|
115501
|
+
c = 0, C && (setUint32(x, 0, ZIP64_END_OF_CENTRAL_DIR_SIGNATURE), setBigUint64(x, 4, BigInt(44)), setUint16(x, 12, 45), setUint16(x, 14, 45), setUint32(x, 16, _), setUint32(x, 20, s), setBigUint64(x, 24, BigInt(f)), setBigUint64(x, 32, BigInt(f)), setBigUint64(x, 40, BigInt(l)), setBigUint64(x, 48, BigInt(d)), setUint32(x, 56, ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIGNATURE), setBigUint64(x, 64, BigInt(d) + BigInt(l)), setUint32(x, 72, _ + 1), getOptionValue(e, n, "supportZip64SplitFile", !0) && (_ = MAX_16_BITS, s = MAX_16_BITS), f = MAX_16_BITS, d = MAX_32_BITS, l = MAX_32_BITS, c += ZIP64_END_OF_CENTRAL_DIR_LENGTH + ZIP64_END_OF_CENTRAL_DIR_LOCATOR_LENGTH), setUint32(x, c, END_OF_CENTRAL_DIR_SIGNATURE), setUint16(x, c + 4, _), setUint16(x, c + 6, s), setUint16(x, c + 8, f), setUint16(x, c + 10, f), setUint32(x, c + 12, l), setUint32(x, c + 16, d);
|
|
115502
|
+
const b = getLength(t);
|
|
115503
|
+
if (b)
|
|
115504
|
+
if (b <= MAX_16_BITS)
|
|
115505
|
+
setUint16(x, c + 20, b);
|
|
115333
115506
|
else
|
|
115334
115507
|
throw new Error(ERR_INVALID_COMMENT);
|
|
115335
|
-
await writeData(
|
|
115508
|
+
await writeData(r, T), b && await writeData(r, t);
|
|
115336
115509
|
}
|
|
115337
115510
|
async function writeData(e, t) {
|
|
115338
|
-
const n = e.getWriter();
|
|
115511
|
+
const { writable: n } = e, i = n.getWriter();
|
|
115339
115512
|
try {
|
|
115340
|
-
await
|
|
115513
|
+
await i.ready, e.size += getLength(t), await i.write(t);
|
|
115341
115514
|
} finally {
|
|
115342
|
-
|
|
115515
|
+
i.releaseLock();
|
|
115343
115516
|
}
|
|
115344
115517
|
}
|
|
115345
115518
|
function getTimeNTFS(e) {
|
|
@@ -115375,6 +115548,33 @@ function getLength(...e) {
|
|
|
115375
115548
|
let t = 0;
|
|
115376
115549
|
return e.forEach((n) => n && (t += n.length)), t;
|
|
115377
115550
|
}
|
|
115551
|
+
function getHeaderArrayData({
|
|
115552
|
+
version: e,
|
|
115553
|
+
bitFlag: t,
|
|
115554
|
+
compressionMethod: n,
|
|
115555
|
+
uncompressedSize: i,
|
|
115556
|
+
compressedSize: r,
|
|
115557
|
+
lastModDate: o,
|
|
115558
|
+
rawFilename: s,
|
|
115559
|
+
zip64CompressedSize: c,
|
|
115560
|
+
zip64UncompressedSize: l,
|
|
115561
|
+
extraFieldLength: d
|
|
115562
|
+
}) {
|
|
115563
|
+
const f = new Uint8Array(HEADER_SIZE), h = getDataView(f);
|
|
115564
|
+
setUint16(h, 0, e), setUint16(h, 2, t), setUint16(h, 4, n);
|
|
115565
|
+
const p = new Uint32Array(1), m = getDataView(p);
|
|
115566
|
+
setUint16(m, 0, (o.getHours() << 6 | o.getMinutes()) << 5 | o.getSeconds() / 2), setUint16(m, 2, (o.getFullYear() - 1980 << 4 | o.getMonth() + 1) << 5 | o.getDate());
|
|
115567
|
+
const _ = p[0];
|
|
115568
|
+
return setUint32(h, 6, _), (c || r !== UNDEFINED_VALUE) && setUint32(h, HEADER_OFFSET_COMPRESSED_SIZE, c ? MAX_32_BITS : r), (l || i !== UNDEFINED_VALUE) && setUint32(h, HEADER_OFFSET_UNCOMPRESSED_SIZE, l ? MAX_32_BITS : i), setUint16(h, 22, getLength(s)), setUint16(h, 24, d), {
|
|
115569
|
+
headerArray: f,
|
|
115570
|
+
headerView: h,
|
|
115571
|
+
rawLastModDate: _
|
|
115572
|
+
};
|
|
115573
|
+
}
|
|
115574
|
+
function getBitFlag(e, t, n, i, r) {
|
|
115575
|
+
let o = 0;
|
|
115576
|
+
return t && (o = o | BITFLAG_LANG_ENCODING_FLAG), n && (o = o | BITFLAG_DATA_DESCRIPTOR), (r == COMPRESSION_METHOD_DEFLATE || r == COMPRESSION_METHOD_DEFLATE_64) && (e >= 0 && e <= 3 && (o = o | BITFLAG_LEVEL_SUPER_FAST_MASK), e > 3 && e <= 5 && (o = o | BITFLAG_LEVEL_FAST_MASK), e == 9 && (o = o | BITFLAG_LEVEL_MAX_MASK)), i && (o = o | BITFLAG_ENCRYPTED), o;
|
|
115577
|
+
}
|
|
115378
115578
|
configure({ Deflate: ZipDeflate, Inflate: ZipInflate });
|
|
115379
115579
|
function getElement(e) {
|
|
115380
115580
|
return typeof e == "string" && (e = document.getElementById(e)), e;
|
|
@@ -119208,41 +119408,41 @@ HeightmapTessellator.computeVertices = function(e) {
|
|
|
119208
119408
|
let U = Rectangle.computeWidth(C), k = Rectangle.computeHeight(C);
|
|
119209
119409
|
const $ = U / (d - 1), G = k / (f - 1);
|
|
119210
119410
|
m || (U *= y, k *= y);
|
|
119211
|
-
const q = _.radiiSquared, z = q.x, H = q.y,
|
|
119212
|
-
let
|
|
119213
|
-
const
|
|
119411
|
+
const q = _.radiiSquared, z = q.x, H = q.y, K = q.z;
|
|
119412
|
+
let X = 65536, J = -65536;
|
|
119413
|
+
const ee = Transforms.eastNorthUpToFixedFrame(
|
|
119214
119414
|
A,
|
|
119215
119415
|
_
|
|
119216
|
-
),
|
|
119217
|
-
let oe,
|
|
119416
|
+
), te = Matrix4.inverseTransformation(ee, matrix4Scratch);
|
|
119417
|
+
let oe, Q;
|
|
119218
119418
|
P && (oe = WebMercatorProjection.geodeticLatitudeToMercatorAngle(
|
|
119219
119419
|
b
|
|
119220
|
-
),
|
|
119420
|
+
), Q = 1 / (WebMercatorProjection.geodeticLatitudeToMercatorAngle(E) - oe));
|
|
119221
119421
|
const he = minimumScratch;
|
|
119222
119422
|
he.x = Number.POSITIVE_INFINITY, he.y = Number.POSITIVE_INFINITY, he.z = Number.POSITIVE_INFINITY;
|
|
119223
|
-
const
|
|
119224
|
-
|
|
119225
|
-
let
|
|
119226
|
-
const _e = d * f,
|
|
119227
|
-
let j = 0,
|
|
119228
|
-
p && (--j, ++
|
|
119423
|
+
const ue = maximumScratch;
|
|
119424
|
+
ue.x = Number.NEGATIVE_INFINITY, ue.y = Number.NEGATIVE_INFINITY, ue.z = Number.NEGATIVE_INFINITY;
|
|
119425
|
+
let se = Number.POSITIVE_INFINITY;
|
|
119426
|
+
const _e = d * f, me = h > 0 ? d * 2 + f * 2 : 0, re = _e + me, xe = new Array(re), pe = new Array(re), Ce = new Array(re), be = P ? new Array(re) : [], W = L ? new Array(re) : [];
|
|
119427
|
+
let j = 0, ce = f, Ee = 0, le = d;
|
|
119428
|
+
p && (--j, ++ce, --Ee, ++le);
|
|
119229
119429
|
const De = 1e-5;
|
|
119230
|
-
for (let ie = j; ie <
|
|
119231
|
-
let
|
|
119232
|
-
|
|
119233
|
-
let
|
|
119234
|
-
m ?
|
|
119235
|
-
let
|
|
119236
|
-
|
|
119237
|
-
const Ie = ie === j, we = ie ===
|
|
119238
|
-
h > 0 && (Ie ?
|
|
119239
|
-
const He = t(
|
|
119240
|
-
let
|
|
119241
|
-
P && (
|
|
119242
|
-
for (let $e =
|
|
119430
|
+
for (let ie = j; ie < ce; ++ie) {
|
|
119431
|
+
let de = ie;
|
|
119432
|
+
de < 0 && (de = 0), de >= f && (de = f - 1);
|
|
119433
|
+
let ge = C.north - G * de;
|
|
119434
|
+
m ? ge = c(ge) : ge = s - 2 * r(o(-ge * y));
|
|
119435
|
+
let Se = (ge - b) / (E - b);
|
|
119436
|
+
Se = CesiumMath.clamp(Se, 0, 1);
|
|
119437
|
+
const Ie = ie === j, we = ie === ce - 1;
|
|
119438
|
+
h > 0 && (Ie ? ge += De * k : we && (ge -= De * k));
|
|
119439
|
+
const He = t(ge), We = n(ge), Pe = K * We;
|
|
119440
|
+
let Ae;
|
|
119441
|
+
P && (Ae = (WebMercatorProjection.geodeticLatitudeToMercatorAngle(ge) - oe) * Q);
|
|
119442
|
+
for (let $e = Ee; $e < le; ++$e) {
|
|
119243
119443
|
let Fe = $e;
|
|
119244
119444
|
Fe < 0 && (Fe = 0), Fe >= d && (Fe = d - 1);
|
|
119245
|
-
const Ke =
|
|
119445
|
+
const Ke = de * (d * F) + Fe * F;
|
|
119246
119446
|
let ve;
|
|
119247
119447
|
if (N === 1)
|
|
119248
119448
|
ve = l[Ke];
|
|
@@ -119256,67 +119456,67 @@ HeightmapTessellator.computeVertices = function(e) {
|
|
|
119256
119456
|
for (Me = N - 1; Me >= 0; --Me)
|
|
119257
119457
|
ve = ve * B + l[Ke + Me];
|
|
119258
119458
|
}
|
|
119259
|
-
ve = ve * w + O,
|
|
119459
|
+
ve = ve * w + O, J = Math.max(J, ve), X = Math.min(X, ve);
|
|
119260
119460
|
let Ne = C.west + $ * Fe;
|
|
119261
119461
|
m ? Ne = c(Ne) : Ne = Ne * y;
|
|
119262
119462
|
let rt = (Ne - x) / (S - x);
|
|
119263
119463
|
rt = CesiumMath.clamp(rt, 0, 1);
|
|
119264
|
-
let Be =
|
|
119464
|
+
let Be = de * d + Fe;
|
|
119265
119465
|
if (h > 0) {
|
|
119266
|
-
const Me = $e ===
|
|
119466
|
+
const Me = $e === Ee, ye = $e === le - 1, Y = Ie || we || Me || ye;
|
|
119267
119467
|
if ((Ie || we) && (Me || ye))
|
|
119268
119468
|
continue;
|
|
119269
|
-
Y && (ve -= h, Me ? (Be = _e + (f -
|
|
119469
|
+
Y && (ve -= h, Me ? (Be = _e + (f - de - 1), Ne -= De * U) : we ? Be = _e + f + (d - Fe - 1) : ye ? (Be = _e + f + d + de, Ne += De * U) : Ie && (Be = _e + f + d + f + Fe));
|
|
119270
119470
|
}
|
|
119271
|
-
const
|
|
119272
|
-
nt.x = Ve +
|
|
119471
|
+
const Je = He * t(Ne), je = He * n(Ne), at = z * Je, ke = H * je, Ye = 1 / i(at * Je + ke * je + Pe * We), Ve = at * Ye, et = ke * Ye, tt = Pe * Ye, nt = new Cartesian3();
|
|
119472
|
+
nt.x = Ve + Je * ve, nt.y = et + je * ve, nt.z = tt + We * ve, Matrix4.multiplyByPoint(te, nt, cartesian3Scratch), Cartesian3.minimumByComponent(cartesian3Scratch, he, he), Cartesian3.maximumByComponent(cartesian3Scratch, ue, ue), se = Math.min(se, ve), xe[Be] = nt, Ce[Be] = new Cartesian2(rt, Se), pe[Be] = ve, P && (be[Be] = Ae), L && (W[Be] = _.geodeticSurfaceNormal(
|
|
119273
119473
|
nt
|
|
119274
119474
|
));
|
|
119275
119475
|
}
|
|
119276
119476
|
}
|
|
119277
|
-
const Re = BoundingSphere.fromPoints(
|
|
119477
|
+
const Re = BoundingSphere.fromPoints(xe);
|
|
119278
119478
|
let Ge;
|
|
119279
119479
|
defined(T) && (Ge = OrientedBoundingBox.fromRectangle(
|
|
119280
119480
|
T,
|
|
119281
|
-
|
|
119282
|
-
|
|
119481
|
+
X,
|
|
119482
|
+
J,
|
|
119283
119483
|
_
|
|
119284
119484
|
));
|
|
119285
119485
|
let Le;
|
|
119286
119486
|
D && (Le = new EllipsoidalOccluder(_).computeHorizonCullingPointPossiblyUnderEllipsoid(
|
|
119287
119487
|
A,
|
|
119288
|
-
|
|
119289
|
-
|
|
119488
|
+
xe,
|
|
119489
|
+
X
|
|
119290
119490
|
));
|
|
119291
|
-
const Ue = new AxisAlignedBoundingBox(he,
|
|
119491
|
+
const Ue = new AxisAlignedBoundingBox(he, ue, A), Z = new TerrainEncoding(
|
|
119292
119492
|
A,
|
|
119293
119493
|
Ue,
|
|
119294
|
-
|
|
119295
|
-
|
|
119296
|
-
|
|
119494
|
+
se,
|
|
119495
|
+
J,
|
|
119496
|
+
ee,
|
|
119297
119497
|
!1,
|
|
119298
119498
|
P,
|
|
119299
119499
|
L,
|
|
119300
119500
|
I,
|
|
119301
119501
|
M
|
|
119302
|
-
), ae = new Float32Array(re *
|
|
119303
|
-
let
|
|
119502
|
+
), ae = new Float32Array(re * Z.stride);
|
|
119503
|
+
let ne = 0;
|
|
119304
119504
|
for (let ie = 0; ie < re; ++ie)
|
|
119305
|
-
|
|
119505
|
+
ne = Z.encode(
|
|
119306
119506
|
ae,
|
|
119307
|
-
|
|
119308
|
-
|
|
119309
|
-
|
|
119507
|
+
ne,
|
|
119508
|
+
xe[ie],
|
|
119509
|
+
Ce[ie],
|
|
119310
119510
|
pe[ie],
|
|
119311
119511
|
void 0,
|
|
119312
|
-
|
|
119512
|
+
be[ie],
|
|
119313
119513
|
W[ie]
|
|
119314
119514
|
);
|
|
119315
119515
|
return {
|
|
119316
119516
|
vertices: ae,
|
|
119317
|
-
maximumHeight:
|
|
119318
|
-
minimumHeight:
|
|
119319
|
-
encoding:
|
|
119517
|
+
maximumHeight: J,
|
|
119518
|
+
minimumHeight: X,
|
|
119519
|
+
encoding: Z,
|
|
119320
119520
|
boundingSphere3D: Re,
|
|
119321
119521
|
orientedBoundingBox: Ge,
|
|
119322
119522
|
occludeePointInScaledSpace: Le
|
|
@@ -121494,9 +121694,9 @@ function createQuantizedMeshTerrainData(e, t, n, i, r, o) {
|
|
|
121494
121694
|
c += L * C;
|
|
121495
121695
|
let w = 0;
|
|
121496
121696
|
const O = g.length;
|
|
121497
|
-
for (let
|
|
121498
|
-
const
|
|
121499
|
-
g[
|
|
121697
|
+
for (let J = 0; J < O; ++J) {
|
|
121698
|
+
const ee = g[J];
|
|
121699
|
+
g[J] = w - ee, ee === 0 && ++w;
|
|
121500
121700
|
}
|
|
121501
121701
|
const N = T.getUint32(c, !0);
|
|
121502
121702
|
c += Uint32Array.BYTES_PER_ELEMENT;
|
|
@@ -121536,38 +121736,38 @@ function createQuantizedMeshTerrainData(e, t, n, i, r, o) {
|
|
|
121536
121736
|
c += $ * y;
|
|
121537
121737
|
let q, z;
|
|
121538
121738
|
for (; c < T.byteLength; ) {
|
|
121539
|
-
const
|
|
121739
|
+
const J = T.getUint8(c, !0);
|
|
121540
121740
|
c += Uint8Array.BYTES_PER_ELEMENT;
|
|
121541
|
-
const
|
|
121542
|
-
if (c += Uint32Array.BYTES_PER_ELEMENT,
|
|
121741
|
+
const ee = T.getUint32(c, s);
|
|
121742
|
+
if (c += Uint32Array.BYTES_PER_ELEMENT, J === QuantizedMeshExtensionIds.OCT_VERTEX_NORMALS && e._requestVertexNormals)
|
|
121543
121743
|
q = new Uint8Array(t, c, D * 2);
|
|
121544
|
-
else if (
|
|
121545
|
-
z = new Uint8Array(t, c,
|
|
121546
|
-
else if (
|
|
121547
|
-
const
|
|
121548
|
-
if (
|
|
121549
|
-
const
|
|
121744
|
+
else if (J === QuantizedMeshExtensionIds.WATER_MASK && e._requestWaterMask)
|
|
121745
|
+
z = new Uint8Array(t, c, ee);
|
|
121746
|
+
else if (J === QuantizedMeshExtensionIds.METADATA && e._requestMetadata) {
|
|
121747
|
+
const te = T.getUint32(c, !0);
|
|
121748
|
+
if (te > 0) {
|
|
121749
|
+
const Q = getJsonFromTypedArray(
|
|
121550
121750
|
new Uint8Array(t),
|
|
121551
121751
|
c + Uint32Array.BYTES_PER_ELEMENT,
|
|
121552
|
-
|
|
121752
|
+
te
|
|
121553
121753
|
).available;
|
|
121554
|
-
if (defined(
|
|
121555
|
-
for (let he = 0; he <
|
|
121556
|
-
const
|
|
121557
|
-
|
|
121754
|
+
if (defined(Q))
|
|
121755
|
+
for (let he = 0; he < Q.length; ++he) {
|
|
121756
|
+
const ue = n + he + 1, se = Q[he], _e = e._tilingScheme.getNumberOfYTilesAtLevel(
|
|
121757
|
+
ue
|
|
121558
121758
|
);
|
|
121559
|
-
for (let
|
|
121560
|
-
const re =
|
|
121759
|
+
for (let me = 0; me < se.length; ++me) {
|
|
121760
|
+
const re = se[me], xe = _e - re.endY - 1, pe = _e - re.startY - 1;
|
|
121561
121761
|
e.availability.addAvailableTileRange(
|
|
121562
|
-
|
|
121762
|
+
ue,
|
|
121563
121763
|
re.startX,
|
|
121564
|
-
|
|
121764
|
+
xe,
|
|
121565
121765
|
re.endX,
|
|
121566
121766
|
pe
|
|
121567
121767
|
), o.availability.addAvailableTileRange(
|
|
121568
|
-
|
|
121768
|
+
ue,
|
|
121569
121769
|
re.startX,
|
|
121570
|
-
|
|
121770
|
+
xe,
|
|
121571
121771
|
re.endX,
|
|
121572
121772
|
pe
|
|
121573
121773
|
);
|
|
@@ -121576,10 +121776,10 @@ function createQuantizedMeshTerrainData(e, t, n, i, r, o) {
|
|
|
121576
121776
|
}
|
|
121577
121777
|
o.availabilityTilesLoaded.addAvailableTileRange(n, i, r, i, r);
|
|
121578
121778
|
}
|
|
121579
|
-
c +=
|
|
121779
|
+
c += ee;
|
|
121580
121780
|
}
|
|
121581
|
-
const H = e.getLevelMaximumGeometricError(n) * 5,
|
|
121582
|
-
|
|
121781
|
+
const H = e.getLevelMaximumGeometricError(n) * 5, K = e._tilingScheme.tileXYToRectangle(i, r, n), X = OrientedBoundingBox.fromRectangle(
|
|
121782
|
+
K,
|
|
121583
121783
|
b,
|
|
121584
121784
|
S,
|
|
121585
121785
|
e._tilingScheme.ellipsoid
|
|
@@ -121589,7 +121789,7 @@ function createQuantizedMeshTerrainData(e, t, n, i, r, o) {
|
|
|
121589
121789
|
minimumHeight: b,
|
|
121590
121790
|
maximumHeight: S,
|
|
121591
121791
|
boundingSphere: E,
|
|
121592
|
-
orientedBoundingBox:
|
|
121792
|
+
orientedBoundingBox: X,
|
|
121593
121793
|
horizonOcclusionPoint: A,
|
|
121594
121794
|
quantizedVertices: P,
|
|
121595
121795
|
encodedNormals: q,
|
|
@@ -124700,8 +124900,8 @@ const Iau2000Orientation = {}, TdtMinusTai = 32.184, J2000d = 2451545, c1 = -0.0
|
|
|
124700
124900
|
let dateTT = new JulianDate();
|
|
124701
124901
|
Iau2000Orientation.ComputeMoon = function(e, t) {
|
|
124702
124902
|
defined(e) || (e = JulianDate.now()), dateTT = JulianDate.addSeconds(e, TdtMinusTai, dateTT);
|
|
124703
|
-
const n = JulianDate.totalDays(dateTT) - J2000d, i = n / TimeConstants$1.DAYS_PER_JULIAN_CENTURY, r = (125.045 + c1 * n) * CesiumMath.RADIANS_PER_DEGREE, o = (250.089 + c2 * n) * CesiumMath.RADIANS_PER_DEGREE, s = (260.008 + c3 * n) * CesiumMath.RADIANS_PER_DEGREE, c = (176.625 + c4 * n) * CesiumMath.RADIANS_PER_DEGREE, l = (357.529 + c5 * n) * CesiumMath.RADIANS_PER_DEGREE, d = (311.589 + c6 * n) * CesiumMath.RADIANS_PER_DEGREE, f = (134.963 + c7 * n) * CesiumMath.RADIANS_PER_DEGREE, h = (276.617 + c8 * n) * CesiumMath.RADIANS_PER_DEGREE, p = (34.226 + c9 * n) * CesiumMath.RADIANS_PER_DEGREE, m = (15.134 + c10 * n) * CesiumMath.RADIANS_PER_DEGREE, _ = (119.743 + c11 * n) * CesiumMath.RADIANS_PER_DEGREE, y = (239.961 + c12 * n) * CesiumMath.RADIANS_PER_DEGREE, C = (25.053 + c13 * n) * CesiumMath.RADIANS_PER_DEGREE, T = Math.sin(r), x = Math.sin(o), b = Math.sin(s), S = Math.sin(c), E = Math.sin(l), A = Math.sin(d), D = Math.sin(f), P = Math.sin(h), I = Math.sin(p), M = Math.sin(m), R = Math.sin(_), L = Math.sin(y), g = Math.sin(C), w = Math.cos(r), O = Math.cos(o), N = Math.cos(s), F = Math.cos(c), B = Math.cos(l), V = Math.cos(d), U = Math.cos(f), k = Math.cos(h), $ = Math.cos(p), G = Math.cos(m), q = Math.cos(_), z = Math.cos(y), H = Math.cos(C),
|
|
124704
|
-
return defined(t) || (t = new IauOrientationParameters()), t.rightAscension =
|
|
124903
|
+
const n = JulianDate.totalDays(dateTT) - J2000d, i = n / TimeConstants$1.DAYS_PER_JULIAN_CENTURY, r = (125.045 + c1 * n) * CesiumMath.RADIANS_PER_DEGREE, o = (250.089 + c2 * n) * CesiumMath.RADIANS_PER_DEGREE, s = (260.008 + c3 * n) * CesiumMath.RADIANS_PER_DEGREE, c = (176.625 + c4 * n) * CesiumMath.RADIANS_PER_DEGREE, l = (357.529 + c5 * n) * CesiumMath.RADIANS_PER_DEGREE, d = (311.589 + c6 * n) * CesiumMath.RADIANS_PER_DEGREE, f = (134.963 + c7 * n) * CesiumMath.RADIANS_PER_DEGREE, h = (276.617 + c8 * n) * CesiumMath.RADIANS_PER_DEGREE, p = (34.226 + c9 * n) * CesiumMath.RADIANS_PER_DEGREE, m = (15.134 + c10 * n) * CesiumMath.RADIANS_PER_DEGREE, _ = (119.743 + c11 * n) * CesiumMath.RADIANS_PER_DEGREE, y = (239.961 + c12 * n) * CesiumMath.RADIANS_PER_DEGREE, C = (25.053 + c13 * n) * CesiumMath.RADIANS_PER_DEGREE, T = Math.sin(r), x = Math.sin(o), b = Math.sin(s), S = Math.sin(c), E = Math.sin(l), A = Math.sin(d), D = Math.sin(f), P = Math.sin(h), I = Math.sin(p), M = Math.sin(m), R = Math.sin(_), L = Math.sin(y), g = Math.sin(C), w = Math.cos(r), O = Math.cos(o), N = Math.cos(s), F = Math.cos(c), B = Math.cos(l), V = Math.cos(d), U = Math.cos(f), k = Math.cos(h), $ = Math.cos(p), G = Math.cos(m), q = Math.cos(_), z = Math.cos(y), H = Math.cos(C), K = (269.9949 + 31e-4 * i - 3.8787 * T - 0.1204 * x + 0.07 * b - 0.0172 * S + 72e-4 * A - 52e-4 * M + 43e-4 * g) * CesiumMath.RADIANS_PER_DEGREE, X = (66.5392 + 0.013 * i + 1.5419 * w + 0.0239 * O - 0.0278 * N + 68e-4 * F - 29e-4 * V + 9e-4 * U + 8e-4 * G - 9e-4 * H) * CesiumMath.RADIANS_PER_DEGREE, J = (38.3213 + 13.17635815 * n - 14e-13 * n * n + 3.561 * T + 0.1208 * x - 0.0642 * b + 0.0158 * S + 0.0252 * E - 66e-4 * A - 47e-4 * D - 46e-4 * P + 28e-4 * I + 52e-4 * M + 4e-3 * R + 19e-4 * L - 44e-4 * g) * CesiumMath.RADIANS_PER_DEGREE, ee = (13.17635815 - 14e-13 * (2 * n) + 3.561 * w * c1 + 0.1208 * O * c2 - 0.0642 * N * c3 + 0.0158 * F * c4 + 0.0252 * B * c5 - 66e-4 * V * c6 - 47e-4 * U * c7 - 46e-4 * k * c8 + 28e-4 * $ * c9 + 52e-4 * G * c10 + 4e-3 * q * c11 + 19e-4 * z * c12 - 44e-4 * H * c13) / 86400 * CesiumMath.RADIANS_PER_DEGREE;
|
|
124904
|
+
return defined(t) || (t = new IauOrientationParameters()), t.rightAscension = K, t.declination = X, t.rotation = J, t.rotationRate = ee, t;
|
|
124705
124905
|
};
|
|
124706
124906
|
function IauOrientationAxes(e) {
|
|
124707
124907
|
(!defined(e) || typeof e != "function") && (e = Iau2000Orientation.ComputeMoon), this._computeFunction = e;
|
|
@@ -132740,75 +132940,75 @@ VoxelCylinderShape.prototype.update = function(e, t, n, i, r) {
|
|
|
132740
132940
|
this.orientedBoundingBox,
|
|
132741
132941
|
this.boundingSphere
|
|
132742
132942
|
);
|
|
132743
|
-
const k = C === o && T === s, $ = A === c && D === l, G = g < L, q = g - L + G * h, z = q > p + y && q < h - y, H = q < p - y,
|
|
132943
|
+
const k = C === o && T === s, $ = A === c && D === l, G = g < L, q = g - L + G * h, z = q > p + y && q < h - y, H = q < p - y, K = q >= p - y && q <= p + y, X = z || H || K, J = CesiumMath.equalsEpsilon(
|
|
132744
132944
|
L,
|
|
132745
132945
|
d,
|
|
132746
132946
|
void 0,
|
|
132747
132947
|
_
|
|
132748
|
-
),
|
|
132948
|
+
), ee = CesiumMath.equalsEpsilon(
|
|
132749
132949
|
g,
|
|
132750
132950
|
f,
|
|
132751
132951
|
void 0,
|
|
132752
132952
|
_
|
|
132753
|
-
),
|
|
132953
|
+
), te = S === o, oe = F < N, Q = F - N + oe * h, he = Q >= p - y && Q < h - y, ue = Q > y && Q < p - y, se = Q <= y, _e = he || ue || se, { shaderUniforms: me, shaderDefines: re } = this;
|
|
132754
132954
|
for (const pe in re)
|
|
132755
132955
|
re.hasOwnProperty(pe) && (re[pe] = void 0);
|
|
132756
|
-
let
|
|
132757
|
-
if (re.CYLINDER_INTERSECTION_INDEX_RADIUS_MAX =
|
|
132956
|
+
let xe = 0;
|
|
132957
|
+
if (re.CYLINDER_INTERSECTION_INDEX_RADIUS_MAX = xe, xe += 1, te || (re.CYLINDER_HAS_RENDER_BOUNDS_RADIUS_MIN = !0, re.CYLINDER_INTERSECTION_INDEX_RADIUS_MIN = xe, xe += 1), me.cylinderRenderRadiusMinMax = Cartesian2.fromElements(
|
|
132758
132958
|
S,
|
|
132759
132959
|
E,
|
|
132760
|
-
|
|
132960
|
+
me.cylinderRenderRadiusMinMax
|
|
132761
132961
|
), S === E && (re.CYLINDER_HAS_RENDER_BOUNDS_RADIUS_FLAT = !0), !k) {
|
|
132762
132962
|
re.CYLINDER_HAS_SHAPE_BOUNDS_RADIUS = !0;
|
|
132763
132963
|
const pe = T - C;
|
|
132764
|
-
let
|
|
132765
|
-
pe !== 0 && (
|
|
132766
|
-
|
|
132767
|
-
|
|
132768
|
-
|
|
132964
|
+
let Ce = 0, be = 1;
|
|
132965
|
+
pe !== 0 && (Ce = 1 / pe, be = -C / pe), me.cylinderUvToShapeUvRadius = Cartesian2.fromElements(
|
|
132966
|
+
Ce,
|
|
132967
|
+
be,
|
|
132968
|
+
me.cylinderUvToShapeUvRadius
|
|
132769
132969
|
);
|
|
132770
132970
|
}
|
|
132771
132971
|
if (!$) {
|
|
132772
132972
|
re.CYLINDER_HAS_SHAPE_BOUNDS_HEIGHT = !0;
|
|
132773
132973
|
const pe = D - A;
|
|
132774
|
-
let
|
|
132775
|
-
pe !== 0 && (
|
|
132776
|
-
|
|
132777
|
-
|
|
132778
|
-
|
|
132974
|
+
let Ce = 0, be = 1;
|
|
132975
|
+
pe !== 0 && (Ce = 2 / pe, be = -(A + 1) / pe), me.cylinderUvToShapeUvHeight = Cartesian2.fromElements(
|
|
132976
|
+
Ce,
|
|
132977
|
+
be,
|
|
132978
|
+
me.cylinderUvToShapeUvHeight
|
|
132779
132979
|
);
|
|
132780
132980
|
}
|
|
132781
|
-
if (
|
|
132981
|
+
if (me.cylinderRenderHeightMinMax = Cartesian2.fromElements(
|
|
132782
132982
|
M,
|
|
132783
132983
|
R,
|
|
132784
|
-
|
|
132785
|
-
), G && (re.CYLINDER_HAS_SHAPE_BOUNDS_ANGLE_MIN_MAX_REVERSED = !0), _e && (re.CYLINDER_HAS_RENDER_BOUNDS_ANGLE = !0, re.CYLINDER_INTERSECTION_INDEX_ANGLE =
|
|
132984
|
+
me.cylinderRenderHeightMinMax
|
|
132985
|
+
), G && (re.CYLINDER_HAS_SHAPE_BOUNDS_ANGLE_MIN_MAX_REVERSED = !0), _e && (re.CYLINDER_HAS_RENDER_BOUNDS_ANGLE = !0, re.CYLINDER_INTERSECTION_INDEX_ANGLE = xe, he ? (re.CYLINDER_HAS_RENDER_BOUNDS_ANGLE_RANGE_UNDER_HALF = !0, xe += 1) : ue ? (re.CYLINDER_HAS_RENDER_BOUNDS_ANGLE_RANGE_OVER_HALF = !0, xe += 2) : se && (re.CYLINDER_HAS_RENDER_BOUNDS_ANGLE_RANGE_EQUAL_ZERO = !0, xe += 2), me.cylinderRenderAngleMinMax = Cartesian2.fromElements(
|
|
132786
132986
|
N,
|
|
132787
132987
|
F,
|
|
132788
|
-
|
|
132789
|
-
)),
|
|
132790
|
-
re.CYLINDER_HAS_SHAPE_BOUNDS_ANGLE = !0,
|
|
132791
|
-
const pe = (L - d) / h,
|
|
132792
|
-
if (
|
|
132988
|
+
me.cylinderRenderAngleMinMax
|
|
132989
|
+
)), X) {
|
|
132990
|
+
re.CYLINDER_HAS_SHAPE_BOUNDS_ANGLE = !0, J && (re.CYLINDER_HAS_SHAPE_BOUNDS_ANGLE_MIN_DISCONTINUITY = !0), ee && (re.CYLINDER_HAS_SHAPE_BOUNDS_ANGLE_MAX_DISCONTINUITY = !0);
|
|
132991
|
+
const pe = (L - d) / h, Ce = (g - d) / h, be = 1 - q / h;
|
|
132992
|
+
if (me.cylinderShapeUvAngleMinMax = Cartesian2.fromElements(
|
|
132793
132993
|
pe,
|
|
132794
|
-
|
|
132795
|
-
|
|
132796
|
-
),
|
|
132797
|
-
|
|
132994
|
+
Ce,
|
|
132995
|
+
me.cylinderShapeUvAngleMinMax
|
|
132996
|
+
), me.cylinderShapeUvAngleRangeZeroMid = (Ce + 0.5 * be) % 1, q <= y)
|
|
132997
|
+
me.cylinderUvToShapeUvAngle = Cartesian2.fromElements(
|
|
132798
132998
|
0,
|
|
132799
132999
|
1,
|
|
132800
|
-
|
|
133000
|
+
me.cylinderUvToShapeUvAngle
|
|
132801
133001
|
);
|
|
132802
133002
|
else {
|
|
132803
133003
|
const W = h / q, j = -(L - d) / q;
|
|
132804
|
-
|
|
133004
|
+
me.cylinderUvToShapeUvAngle = Cartesian2.fromElements(
|
|
132805
133005
|
W,
|
|
132806
133006
|
j,
|
|
132807
|
-
|
|
133007
|
+
me.cylinderUvToShapeUvAngle
|
|
132808
133008
|
);
|
|
132809
133009
|
}
|
|
132810
133010
|
}
|
|
132811
|
-
return this.shaderMaximumIntersectionsLength =
|
|
133011
|
+
return this.shaderMaximumIntersectionsLength = xe, !0;
|
|
132812
133012
|
};
|
|
132813
133013
|
VoxelCylinderShape.prototype.computeOrientedBoundingBoxForTile = function(e, t, n, i, r) {
|
|
132814
133014
|
const o = this._minimumRadius, s = this._maximumRadius, c = this._minimumHeight, l = this._maximumHeight, d = this._minimumAngle, f = this._maximumAngle, h = 1 / Math.pow(2, e), p = CesiumMath.lerp(
|
|
@@ -132915,8 +133115,8 @@ function getCylinderChunkObb(e, t, n, i, r, o, s, c) {
|
|
|
132915
133115
|
b[S++] = r, b[S++] = o, b[S++] = x, T > CesiumMath.PI && (b[S++] = x - CesiumMath.PI_OVER_TWO, b[S++] = x + CesiumMath.PI_OVER_TWO);
|
|
132916
133116
|
let E = 1, A = 1, D = -1, P = -1;
|
|
132917
133117
|
for (let G = 0; G < S; ++G) {
|
|
132918
|
-
const q = b[G] - x, z = Math.cos(q), H = Math.sin(q),
|
|
132919
|
-
E = Math.min(E,
|
|
133118
|
+
const q = b[G] - x, z = Math.cos(q), H = Math.sin(q), K = z * e, X = H * e, J = z * t, ee = H * t;
|
|
133119
|
+
E = Math.min(E, K), A = Math.min(A, X), E = Math.min(E, J), A = Math.min(A, ee), D = Math.max(D, K), P = Math.max(P, X), D = Math.max(D, J), P = Math.max(P, ee);
|
|
132920
133120
|
}
|
|
132921
133121
|
const I = D - E, M = P - A, R = i - n, L = (E + D) * 0.5, g = (A + P) * 0.5, w = (n + i) * 0.5, O = Cartesian3.fromElements(
|
|
132922
133122
|
L,
|
|
@@ -133078,18 +133278,18 @@ VoxelEllipsoidShape.prototype.update = function(e, t, n, i, r) {
|
|
|
133078
133278
|
this.orientedBoundingBox,
|
|
133079
133279
|
this.boundingSphere
|
|
133080
133280
|
);
|
|
133081
|
-
const P = s.x - o.x, I = 0.5 * P, M = b.x < x.x, R = b.x - x.x + M * P, L = R <= d, g = R >= I - d && R < P - d, w = R > d && R < I - d, O = L || g || w, N = y.x < _.x, F = y.x - _.x + N * P, B = F > I + d && F < P - d, V = F >= I - d && F <= I + d, U = F < I - d, k = B || V || U, $ = b.y < -h, G = b.y >= -h && b.y <= +h, q = b.y > +h && b.y < s.y - f, z = $ || G || q, H = x.y > o.y + f && x.y < -h,
|
|
133082
|
-
for (const le in
|
|
133083
|
-
|
|
133281
|
+
const P = s.x - o.x, I = 0.5 * P, M = b.x < x.x, R = b.x - x.x + M * P, L = R <= d, g = R >= I - d && R < P - d, w = R > d && R < I - d, O = L || g || w, N = y.x < _.x, F = y.x - _.x + N * P, B = F > I + d && F < P - d, V = F >= I - d && F <= I + d, U = F < I - d, k = B || V || U, $ = b.y < -h, G = b.y >= -h && b.y <= +h, q = b.y > +h && b.y < s.y - f, z = $ || G || q, H = x.y > o.y + f && x.y < -h, K = x.y >= -h && x.y <= +h, X = x.y > +h, J = H || K || X, ee = z || J, te = y.y - _.y, oe = y.y < -h, Q = y.y >= -h && y.y <= +h, he = y.y > +h && y.y < s.y - f, ue = oe || Q || he, se = _.y > o.y + f && _.y < -h, _e = _.y >= -h && _.y <= +h, me = _.y > +h, xe = ue || (se || _e || me), { shaderUniforms: pe, shaderDefines: Ce } = this;
|
|
133282
|
+
for (const le in Ce)
|
|
133283
|
+
Ce.hasOwnProperty(le) && (Ce[le] = void 0);
|
|
133084
133284
|
pe.ellipsoidRadiiUv = Cartesian3.divideByScalar(
|
|
133085
133285
|
S,
|
|
133086
133286
|
E,
|
|
133087
133287
|
pe.ellipsoidRadiiUv
|
|
133088
133288
|
);
|
|
133089
|
-
const { x:
|
|
133289
|
+
const { x: be, z: W } = pe.ellipsoidRadiiUv, j = W / be;
|
|
133090
133290
|
pe.eccentricitySquared = 1 - j * j, pe.evoluteScale = Cartesian2.fromElements(
|
|
133091
|
-
(
|
|
133092
|
-
(W * W -
|
|
133291
|
+
(be * be - W * W) / be,
|
|
133292
|
+
(W * W - be * be) / W,
|
|
133093
133293
|
pe.evoluteScale
|
|
133094
133294
|
), pe.ellipsoidInverseRadiiSquaredUv = Cartesian3.divideComponents(
|
|
133095
133295
|
Cartesian3.ONE,
|
|
@@ -133100,19 +133300,19 @@ VoxelEllipsoidShape.prototype.update = function(e, t, n, i, r) {
|
|
|
133100
133300
|
),
|
|
133101
133301
|
pe.ellipsoidInverseRadiiSquaredUv
|
|
133102
133302
|
);
|
|
133103
|
-
let
|
|
133104
|
-
|
|
133303
|
+
let ce = 0;
|
|
133304
|
+
Ce.ELLIPSOID_INTERSECTION_INDEX_HEIGHT_MAX = ce, ce += 1, Ce.ELLIPSOID_INTERSECTION_INDEX_HEIGHT_MIN = ce, ce += 1, pe.clipMinMaxHeight = Cartesian2.fromElements(
|
|
133105
133305
|
(x.z - y.z) / E,
|
|
133106
133306
|
(b.z - y.z) / E,
|
|
133107
133307
|
pe.clipMinMaxHeight
|
|
133108
133308
|
);
|
|
133109
|
-
const
|
|
133110
|
-
if (pe.ellipsoidInverseHeightDifferenceUv = 1 /
|
|
133309
|
+
const Ee = (y.z - _.z) / E;
|
|
133310
|
+
if (pe.ellipsoidInverseHeightDifferenceUv = 1 / Ee, _.z === y.z && (pe.ellipsoidInverseHeightDifferenceUv = 0), O && (Ce.ELLIPSOID_HAS_RENDER_BOUNDS_LONGITUDE = !0, Ce.ELLIPSOID_INTERSECTION_INDEX_LONGITUDE = ce, g ? (Ce.ELLIPSOID_HAS_RENDER_BOUNDS_LONGITUDE_RANGE_UNDER_HALF = !0, ce += 1) : w ? (Ce.ELLIPSOID_HAS_RENDER_BOUNDS_LONGITUDE_RANGE_OVER_HALF = !0, ce += 2) : L && (Ce.ELLIPSOID_HAS_RENDER_BOUNDS_LONGITUDE_RANGE_EQUAL_ZERO = !0, ce += 2), pe.ellipsoidRenderLongitudeMinMax = Cartesian2.fromElements(
|
|
133111
133311
|
x.x,
|
|
133112
133312
|
b.x,
|
|
133113
133313
|
pe.ellipsoidRenderLongitudeMinMax
|
|
133114
133314
|
)), k)
|
|
133115
|
-
if (
|
|
133315
|
+
if (Ce.ELLIPSOID_HAS_SHAPE_BOUNDS_LONGITUDE = !0, y.x < _.x && (Ce.ELLIPSOID_HAS_SHAPE_BOUNDS_LONGITUDE_MIN_MAX_REVERSED = !0), F <= d)
|
|
133116
133316
|
pe.ellipsoidUvToShapeUvLongitude = Cartesian2.fromElements(
|
|
133117
133317
|
0,
|
|
133118
133318
|
1,
|
|
@@ -133138,35 +133338,35 @@ VoxelEllipsoidShape.prototype.update = function(e, t, n, i, r) {
|
|
|
133138
133338
|
void 0,
|
|
133139
133339
|
l
|
|
133140
133340
|
);
|
|
133141
|
-
le && (
|
|
133142
|
-
const Re = (_.x - o.x) / P, Ge = (y.x - o.x) / P, Le = (b.x - o.x) / P, Ue = 1 - R / P,
|
|
133341
|
+
le && (Ce.ELLIPSOID_HAS_RENDER_BOUNDS_LONGITUDE_MIN_DISCONTINUITY = !0), De && (Ce.ELLIPSOID_HAS_RENDER_BOUNDS_LONGITUDE_MAX_DISCONTINUITY = !0);
|
|
133342
|
+
const Re = (_.x - o.x) / P, Ge = (y.x - o.x) / P, Le = (b.x - o.x) / P, Ue = 1 - R / P, Z = (Le + 0.5 * Ue) % 1;
|
|
133143
133343
|
pe.ellipsoidShapeUvLongitudeMinMaxMid = Cartesian3.fromElements(
|
|
133144
133344
|
Re,
|
|
133145
133345
|
Ge,
|
|
133146
|
-
|
|
133346
|
+
Z,
|
|
133147
133347
|
pe.ellipsoidShapeUvLongitudeMinMaxMid
|
|
133148
133348
|
);
|
|
133149
133349
|
}
|
|
133150
|
-
if (
|
|
133350
|
+
if (ee && (J && (Ce.ELLIPSOID_HAS_RENDER_BOUNDS_LATITUDE_MIN = !0, Ce.ELLIPSOID_INTERSECTION_INDEX_LATITUDE_MIN = ce, H ? (Ce.ELLIPSOID_HAS_RENDER_BOUNDS_LATITUDE_MIN_UNDER_HALF = !0, ce += 1) : K ? (Ce.ELLIPSOID_HAS_RENDER_BOUNDS_LATITUDE_MIN_EQUAL_HALF = !0, ce += 1) : X && (Ce.ELLIPSOID_HAS_RENDER_BOUNDS_LATITUDE_MIN_OVER_HALF = !0, ce += 2)), z && (Ce.ELLIPSOID_HAS_RENDER_BOUNDS_LATITUDE_MAX = !0, Ce.ELLIPSOID_INTERSECTION_INDEX_LATITUDE_MAX = ce, $ ? (Ce.ELLIPSOID_HAS_RENDER_BOUNDS_LATITUDE_MAX_UNDER_HALF = !0, ce += 2) : G ? (Ce.ELLIPSOID_HAS_RENDER_BOUNDS_LATITUDE_MAX_EQUAL_HALF = !0, ce += 1) : q && (Ce.ELLIPSOID_HAS_RENDER_BOUNDS_LATITUDE_MAX_OVER_HALF = !0, ce += 1)), pe.ellipsoidRenderLatitudeSinMinMax = Cartesian2.fromElements(
|
|
133151
133351
|
Math.sin(x.y),
|
|
133152
133352
|
Math.sin(b.y),
|
|
133153
133353
|
pe.ellipsoidRenderLatitudeSinMinMax
|
|
133154
|
-
)),
|
|
133155
|
-
if (
|
|
133354
|
+
)), xe)
|
|
133355
|
+
if (Ce.ELLIPSOID_HAS_SHAPE_BOUNDS_LATITUDE = !0, te < f)
|
|
133156
133356
|
pe.ellipsoidUvToShapeUvLatitude = Cartesian2.fromElements(
|
|
133157
133357
|
0,
|
|
133158
133358
|
1,
|
|
133159
133359
|
pe.ellipsoidUvToShapeUvLatitude
|
|
133160
133360
|
);
|
|
133161
133361
|
else {
|
|
133162
|
-
const De = (s.y - o.y) /
|
|
133362
|
+
const De = (s.y - o.y) / te, Re = (o.y - _.y) / te;
|
|
133163
133363
|
pe.ellipsoidUvToShapeUvLatitude = Cartesian2.fromElements(
|
|
133164
133364
|
De,
|
|
133165
133365
|
Re,
|
|
133166
133366
|
pe.ellipsoidUvToShapeUvLatitude
|
|
133167
133367
|
);
|
|
133168
133368
|
}
|
|
133169
|
-
return this.shaderMaximumIntersectionsLength =
|
|
133369
|
+
return this.shaderMaximumIntersectionsLength = ce, !0;
|
|
133170
133370
|
};
|
|
133171
133371
|
const scratchRectangle$1 = new Rectangle();
|
|
133172
133372
|
VoxelEllipsoidShape.prototype.computeOrientedBoundingBoxForTile = function(e, t, n, i, r) {
|
|
@@ -138001,30 +138201,30 @@ GlobeSurfaceShaderSet.prototype.getShaderProgram = function(e) {
|
|
|
138001
138201
|
G.quantization === TerrainQuantization$1.BITS12 && (U = 1, k = "QUANTIZATION_BITS12");
|
|
138002
138202
|
let z = 0, H = "";
|
|
138003
138203
|
R && (z = 1, H = "TILE_LIMIT_RECTANGLE");
|
|
138004
|
-
let
|
|
138005
|
-
L && (
|
|
138006
|
-
const
|
|
138007
|
-
let
|
|
138008
|
-
defined(P) && P.length > 0 && (
|
|
138204
|
+
let K = 0, X = "";
|
|
138205
|
+
L && (K = 1, X = "APPLY_IMAGERY_CUTOUT");
|
|
138206
|
+
const J = t.mode, ee = J | r << 2 | o << 3 | s << 4 | c << 5 | l << 6 | d << 7 | p << 8 | m << 9 | _ << 10 | y << 11 | C << 12 | T << 13 | x << 14 | b << 15 | S << 16 | E << 17 | A << 18 | U << 19 | h << 20 | D << 21 | I << 22 | z << 23 | K << 24 | g << 25 | w << 26 | O << 27 | N << 28 | F << 29 | B << 30 | V << 31 | f << 32;
|
|
138207
|
+
let te = 0;
|
|
138208
|
+
defined(P) && P.length > 0 && (te = D ? P.clippingPlanesState : 0);
|
|
138009
138209
|
let oe = 0;
|
|
138010
138210
|
defined(M) && M.length > 0 && (oe = I ? M.clippingPolygonsState : 0);
|
|
138011
|
-
let
|
|
138012
|
-
if (defined(
|
|
138013
|
-
return
|
|
138211
|
+
let Q = n.surfaceShader;
|
|
138212
|
+
if (defined(Q) && Q.numberOfDayTextures === i && Q.flags === ee && Q.material === this.material && Q.clippingShaderState === te && Q.clippingPolygonShaderState === oe)
|
|
138213
|
+
return Q.shaderProgram;
|
|
138014
138214
|
let he = this._shadersByTexturesFlags[i];
|
|
138015
|
-
if (defined(he) || (he = this._shadersByTexturesFlags[i] = []),
|
|
138016
|
-
const
|
|
138017
|
-
|
|
138215
|
+
if (defined(he) || (he = this._shadersByTexturesFlags[i] = []), Q = he[ee], !defined(Q) || Q.material !== this.material || Q.clippingShaderState !== te || Q.clippingPolygonShaderState !== oe) {
|
|
138216
|
+
const ue = this.baseVertexShaderSource.clone(), se = this.baseFragmentShaderSource.clone();
|
|
138217
|
+
te !== 0 && se.sources.unshift(
|
|
138018
138218
|
getClippingFunction(P, t.context)
|
|
138019
|
-
), oe !== 0 && (
|
|
138219
|
+
), oe !== 0 && (se.sources.unshift(getPolygonClippingFunction(t.context)), ue.sources.unshift(getUnpackClippingFunction(t.context))), ue.defines.push(k), se.defines.push(
|
|
138020
138220
|
`TEXTURE_UNITS ${i}`,
|
|
138021
138221
|
H,
|
|
138022
|
-
|
|
138023
|
-
), r &&
|
|
138222
|
+
X
|
|
138223
|
+
), r && se.defines.push("APPLY_BRIGHTNESS"), o && se.defines.push("APPLY_CONTRAST"), s && se.defines.push("APPLY_HUE"), c && se.defines.push("APPLY_SATURATION"), l && se.defines.push("APPLY_GAMMA"), d && se.defines.push("APPLY_ALPHA"), f && se.defines.push("APPLY_DAY_NIGHT_ALPHA"), p && se.defines.push("HAS_WATER_MASK"), m && (se.defines.push("SHOW_REFLECTIVE_OCEAN"), ue.defines.push("SHOW_REFLECTIVE_OCEAN")), _ && se.defines.push("SHOW_OCEAN_WAVES"), O && se.defines.push("APPLY_COLOR_TO_ALPHA"), B && (ue.defines.push("UNDERGROUND_COLOR"), se.defines.push("UNDERGROUND_COLOR")), V && (ue.defines.push("TRANSLUCENT"), se.defines.push("TRANSLUCENT")), y && (S ? (ue.defines.push("ENABLE_VERTEX_LIGHTING"), se.defines.push("ENABLE_VERTEX_LIGHTING")) : (ue.defines.push("ENABLE_DAYNIGHT_SHADING"), se.defines.push("ENABLE_DAYNIGHT_SHADING"))), typeof globalThis < "u" && globalThis.useVcsCustomShading && se.defines.push("USE_VCS_CUSTOM_SHADING"), C && (ue.defines.push("DYNAMIC_ATMOSPHERE_LIGHTING"), se.defines.push("DYNAMIC_ATMOSPHERE_LIGHTING"), T && (ue.defines.push("DYNAMIC_ATMOSPHERE_LIGHTING_FROM_SUN"), se.defines.push("DYNAMIC_ATMOSPHERE_LIGHTING_FROM_SUN"))), x && (ue.defines.push("GROUND_ATMOSPHERE"), se.defines.push("GROUND_ATMOSPHERE"), b && (ue.defines.push("PER_FRAGMENT_GROUND_ATMOSPHERE"), se.defines.push("PER_FRAGMENT_GROUND_ATMOSPHERE"))), ue.defines.push("INCLUDE_WEB_MERCATOR_Y"), se.defines.push("INCLUDE_WEB_MERCATOR_Y"), A && (ue.defines.push("FOG"), se.defines.push("FOG")), h && se.defines.push("APPLY_SPLIT"), D && se.defines.push("ENABLE_CLIPPING_PLANES"), I && (se.defines.push("ENABLE_CLIPPING_POLYGONS"), ue.defines.push("ENABLE_CLIPPING_POLYGONS"), M.inverse && se.defines.push("CLIPPING_INVERSE"), se.defines.push(
|
|
138024
138224
|
`CLIPPING_POLYGON_REGIONS_LENGTH ${M.extentsCount}`
|
|
138025
|
-
),
|
|
138225
|
+
), ue.defines.push(
|
|
138026
138226
|
`CLIPPING_POLYGON_REGIONS_LENGTH ${M.extentsCount}`
|
|
138027
|
-
)), g &&
|
|
138227
|
+
)), g && se.defines.push("COLOR_CORRECT"), w && se.defines.push("HIGHLIGHT_FILL_TILE"), N && ue.defines.push("GEODETIC_SURFACE_NORMALS"), F && ue.defines.push("EXAGGERATION");
|
|
138028
138228
|
let _e = ` vec4 computeDayColor(vec4 initialColor, vec3 textureCoordinates, float nightBlend)
|
|
138029
138229
|
{
|
|
138030
138230
|
vec4 color = initialColor;
|
|
@@ -138056,23 +138256,23 @@ ${r ? `u_dayTextureBrightness[${re}]` : "0.0"},
|
|
|
138056
138256
|
`, L && (_e += ` color = czm_branchFreeTernary(texelUnclipped, cutoutAndColorResult, color);
|
|
138057
138257
|
`);
|
|
138058
138258
|
_e += ` return color;
|
|
138059
|
-
}`,
|
|
138060
|
-
const
|
|
138259
|
+
}`, se.sources.push(_e), ue.sources.push(getPositionMode(J)), ue.sources.push(get2DYPositionFraction(E));
|
|
138260
|
+
const me = ShaderProgram.fromCache({
|
|
138061
138261
|
context: t.context,
|
|
138062
|
-
vertexShaderSource:
|
|
138063
|
-
fragmentShaderSource:
|
|
138262
|
+
vertexShaderSource: ue,
|
|
138263
|
+
fragmentShaderSource: se,
|
|
138064
138264
|
attributeLocations: G.getAttributeLocations()
|
|
138065
138265
|
});
|
|
138066
|
-
|
|
138266
|
+
Q = he[ee] = new GlobeSurfaceShader(
|
|
138067
138267
|
i,
|
|
138068
|
-
Z,
|
|
138069
|
-
this.material,
|
|
138070
|
-
ge,
|
|
138071
138268
|
ee,
|
|
138269
|
+
this.material,
|
|
138270
|
+
me,
|
|
138271
|
+
te,
|
|
138072
138272
|
oe
|
|
138073
138273
|
);
|
|
138074
138274
|
}
|
|
138075
|
-
return n.surfaceShader =
|
|
138275
|
+
return n.surfaceShader = Q, Q.shaderProgram;
|
|
138076
138276
|
};
|
|
138077
138277
|
GlobeSurfaceShaderSet.prototype.destroy = function() {
|
|
138078
138278
|
let e, t;
|
|
@@ -142428,78 +142628,78 @@ function createFillMesh(e, t, n, i) {
|
|
|
142428
142628
|
TileEdge.SOUTH,
|
|
142429
142629
|
V
|
|
142430
142630
|
), b = V.minimumHeight, S = V.maximumHeight;
|
|
142431
|
-
const
|
|
142631
|
+
const K = OrientedBoundingBox.fromRectangle(
|
|
142432
142632
|
s,
|
|
142433
142633
|
b,
|
|
142434
142634
|
S,
|
|
142435
142635
|
n.tilingScheme.ellipsoid
|
|
142436
|
-
),
|
|
142636
|
+
), X = WebMercatorProjection.geodeticLatitudeToMercatorAngle(
|
|
142437
142637
|
s.south
|
|
142438
|
-
),
|
|
142638
|
+
), J = 1 / (WebMercatorProjection.geodeticLatitudeToMercatorAngle(s.north) - X), ee = (WebMercatorProjection.geodeticLatitudeToMercatorAngle(
|
|
142439
142639
|
w.latitude
|
|
142440
|
-
) -
|
|
142640
|
+
) - X) * J, te = f.geodeticSurfaceNormalCartographic(
|
|
142441
142641
|
cartographicScratch,
|
|
142442
142642
|
normalScratch
|
|
142443
142643
|
), oe = AttributeCompression.octEncode(
|
|
142444
|
-
|
|
142644
|
+
te,
|
|
142445
142645
|
octEncodedNormalScratch
|
|
142446
|
-
),
|
|
142646
|
+
), Q = $;
|
|
142447
142647
|
N.encode(
|
|
142448
142648
|
k,
|
|
142449
142649
|
$ * U,
|
|
142450
|
-
|
|
142650
|
+
K.center,
|
|
142451
142651
|
Cartesian2.fromElements(0.5, 0.5, uvScratch),
|
|
142452
142652
|
E,
|
|
142453
142653
|
oe,
|
|
142454
|
-
|
|
142455
|
-
|
|
142654
|
+
ee,
|
|
142655
|
+
te
|
|
142456
142656
|
), ++$;
|
|
142457
|
-
const he = $,
|
|
142657
|
+
const he = $, ue = he < 256 ? 1 : 2, se = (he - 1) * 3, _e = se * ue, me = (k.length - he * U) * Float32Array.BYTES_PER_ELEMENT;
|
|
142458
142658
|
let re;
|
|
142459
|
-
if (
|
|
142659
|
+
if (me >= _e) {
|
|
142460
142660
|
const j = he * U * Float32Array.BYTES_PER_ELEMENT;
|
|
142461
|
-
re = he < 256 ? new Uint8Array(k.buffer, j,
|
|
142661
|
+
re = he < 256 ? new Uint8Array(k.buffer, j, se) : new Uint16Array(k.buffer, j, se);
|
|
142462
142662
|
} else
|
|
142463
|
-
re = he < 256 ? new Uint8Array(
|
|
142663
|
+
re = he < 256 ? new Uint8Array(se) : new Uint16Array(se);
|
|
142464
142664
|
k = new Float32Array(k.buffer, 0, he * U);
|
|
142465
|
-
let
|
|
142665
|
+
let xe = 0;
|
|
142466
142666
|
for (A = 0; A < he - 2; ++A)
|
|
142467
|
-
re[
|
|
142468
|
-
re[
|
|
142667
|
+
re[xe++] = Q, re[xe++] = A, re[xe++] = A + 1;
|
|
142668
|
+
re[xe++] = Q, re[xe++] = A, re[xe++] = 0;
|
|
142469
142669
|
const pe = [];
|
|
142470
142670
|
for (A = q; A >= G; --A)
|
|
142471
142671
|
pe.push(A);
|
|
142472
|
-
const
|
|
142672
|
+
const Ce = [];
|
|
142473
142673
|
for (A = z; A >= q; --A)
|
|
142474
|
-
|
|
142475
|
-
const
|
|
142674
|
+
Ce.push(A);
|
|
142675
|
+
const be = [];
|
|
142476
142676
|
for (A = H; A >= z; --A)
|
|
142477
|
-
|
|
142677
|
+
be.push(A);
|
|
142478
142678
|
const W = [];
|
|
142479
|
-
for (W.push(0), A =
|
|
142679
|
+
for (W.push(0), A = Q - 1; A >= H; --A)
|
|
142480
142680
|
W.push(A);
|
|
142481
142681
|
o.mesh = new TerrainMesh(
|
|
142482
142682
|
N.center,
|
|
142483
142683
|
k,
|
|
142484
142684
|
re,
|
|
142485
|
-
|
|
142685
|
+
se,
|
|
142486
142686
|
he,
|
|
142487
142687
|
b,
|
|
142488
142688
|
S,
|
|
142489
|
-
BoundingSphere.fromOrientedBoundingBox(
|
|
142689
|
+
BoundingSphere.fromOrientedBoundingBox(K),
|
|
142490
142690
|
computeOccludeePoint$1(
|
|
142491
142691
|
e,
|
|
142492
|
-
|
|
142692
|
+
K.center,
|
|
142493
142693
|
s,
|
|
142494
142694
|
b,
|
|
142495
142695
|
S
|
|
142496
142696
|
),
|
|
142497
142697
|
N.stride,
|
|
142498
|
-
|
|
142698
|
+
K,
|
|
142499
142699
|
N,
|
|
142500
142700
|
pe,
|
|
142501
|
-
|
|
142502
|
-
|
|
142701
|
+
Ce,
|
|
142702
|
+
be,
|
|
142503
142703
|
W
|
|
142504
142704
|
);
|
|
142505
142705
|
}
|
|
@@ -143972,8 +144172,8 @@ function addDrawCommandsForTile(e, t, n) {
|
|
|
143972
144172
|
const r = n.creditDisplay, o = i.terrainData;
|
|
143973
144173
|
if (defined(o) && defined(o.credits)) {
|
|
143974
144174
|
const j = o.credits;
|
|
143975
|
-
for (let
|
|
143976
|
-
r.addCreditToNextFrame(j[
|
|
144175
|
+
for (let ce = 0, Ee = j.length; ce < Ee; ++ce)
|
|
144176
|
+
r.addCreditToNextFrame(j[ce]);
|
|
143977
144177
|
}
|
|
143978
144178
|
let s = ContextLimits.maximumTextureImageUnits, c = i.waterMaskTexture, l = i.waterMaskTranslationAndScale;
|
|
143979
144179
|
!defined(c) && defined(i.fill) && (c = i.fill.waterMaskTexture, l = i.fill.waterMaskTranslationAndScale);
|
|
@@ -143986,54 +144186,54 @@ function addDrawCommandsForTile(e, t, n) {
|
|
|
143986
144186
|
), T = isUndergroundVisible(e, n) && n.mode === SceneMode$1.SCENE3D && y.alpha > 0 && (C.nearValue > 0 || C.farValue > 0), x = e.lambertDiffuseMultiplier, b = e.vertexShadowDarkness, S = e.hasWaterMask && defined(c), E = S && e.showWaterEffect, A = e.oceanNormalMap, D = E && defined(A), P = e.terrainProvider, I = defined(P) && e.terrainProvider.hasVertexNormals, M = n.fog.enabled && n.fog.renderable && !d, R = e.showGroundAtmosphere && n.mode === SceneMode$1.SCENE3D, L = ShadowMode$1.castShadows(e.shadows) && !h, g = ShadowMode$1.receiveShadows(e.shadows) && !h, w = e.hueShift, O = e.saturationShift, N = e.brightnessShift;
|
|
143987
144187
|
let F = !(CesiumMath.equalsEpsilon(w, 0, CesiumMath.EPSILON7) && CesiumMath.equalsEpsilon(O, 0, CesiumMath.EPSILON7) && CesiumMath.equalsEpsilon(N, 0, CesiumMath.EPSILON7)), B = !1;
|
|
143988
144188
|
if (R) {
|
|
143989
|
-
const j = Cartesian3.magnitude(n.camera.positionWC),
|
|
143990
|
-
B = j >
|
|
144189
|
+
const j = Cartesian3.magnitude(n.camera.positionWC), ce = e.nightFadeOutDistance;
|
|
144190
|
+
B = j > ce;
|
|
143991
144191
|
}
|
|
143992
144192
|
S && --s, D && --s, defined(n.shadowState) && n.shadowState.shadowsEnabled && --s, defined(e.clippingPlanes) && e.clippingPlanes.enabled && --s, defined(e.clippingPolygons) && e.clippingPolygons.enabled && (--s, --s), s -= f.numberOfTextureUniforms;
|
|
143993
144193
|
const V = i.renderedMesh;
|
|
143994
144194
|
let U = V.center;
|
|
143995
|
-
const k = V.encoding, $ = i.tileBoundingRegion, G = n.verticalExaggeration, q = n.verticalExaggerationRelativeHeight, z = G !== 1, H = k.hasGeodeticSurfaceNormals,
|
|
143996
|
-
let
|
|
144195
|
+
const k = V.encoding, $ = i.tileBoundingRegion, G = n.verticalExaggeration, q = n.verticalExaggerationRelativeHeight, z = G !== 1, H = k.hasGeodeticSurfaceNormals, K = tileRectangleScratch;
|
|
144196
|
+
let X = 0, J = 0, ee = 0, te = 0, oe = !1;
|
|
143997
144197
|
if (n.mode !== SceneMode$1.SCENE3D) {
|
|
143998
|
-
const j = n.mapProjection,
|
|
144198
|
+
const j = n.mapProjection, ce = j.project(
|
|
143999
144199
|
Rectangle.southwest(t.rectangle),
|
|
144000
144200
|
southwestScratch
|
|
144001
|
-
),
|
|
144201
|
+
), Ee = j.project(
|
|
144002
144202
|
Rectangle.northeast(t.rectangle),
|
|
144003
144203
|
northeastScratch
|
|
144004
144204
|
);
|
|
144005
|
-
if (
|
|
144006
|
-
const le = 1 / (Math.pow(2, 12) - 1) * 0.5, De = (
|
|
144007
|
-
|
|
144205
|
+
if (K.x = ce.x, K.y = ce.y, K.z = Ee.x, K.w = Ee.y, n.mode !== SceneMode$1.MORPHING && (U = rtcScratch, U.x = 0, U.y = (K.z + K.x) * 0.5, U.z = (K.w + K.y) * 0.5, K.x -= U.y, K.y -= U.z, K.z -= U.y, K.w -= U.z), n.mode === SceneMode$1.SCENE2D && k.quantization === TerrainQuantization$1.BITS12) {
|
|
144206
|
+
const le = 1 / (Math.pow(2, 12) - 1) * 0.5, De = (K.z - K.x) * le, Re = (K.w - K.y) * le;
|
|
144207
|
+
K.x -= De, K.y -= Re, K.z += De, K.w += Re;
|
|
144008
144208
|
}
|
|
144009
|
-
j instanceof WebMercatorProjection && (
|
|
144010
|
-
|
|
144011
|
-
),
|
|
144209
|
+
j instanceof WebMercatorProjection && (X = t.rectangle.south, J = t.rectangle.north, ee = WebMercatorProjection.geodeticLatitudeToMercatorAngle(
|
|
144210
|
+
X
|
|
144211
|
+
), te = 1 / (WebMercatorProjection.geodeticLatitudeToMercatorAngle(J) - ee), oe = !0);
|
|
144012
144212
|
}
|
|
144013
|
-
const
|
|
144014
|
-
|
|
144213
|
+
const Q = surfaceShaderSetOptionsScratch;
|
|
144214
|
+
Q.frameState = n, Q.surfaceTile = i, Q.hasWaterMask = S, Q.showReflectiveOcean = E, Q.showOceanWaves = D, Q.enableLighting = e.enableLighting, Q.dynamicAtmosphereLighting = e.dynamicAtmosphereLighting, Q.dynamicAtmosphereLightingFromSun = e.dynamicAtmosphereLightingFromSun, Q.showGroundAtmosphere = R, Q.atmosphereLightIntensity = e.atmosphereLightIntensity, Q.atmosphereRayleighCoefficient = e.atmosphereRayleighCoefficient, Q.atmosphereMieCoefficient = e.atmosphereMieCoefficient, Q.atmosphereRayleighScaleHeight = e.atmosphereRayleighScaleHeight, Q.atmosphereMieScaleHeight = e.atmosphereMieScaleHeight, Q.atmosphereMieAnisotropy = e.atmosphereMieAnisotropy, Q.perFragmentGroundAtmosphere = B, Q.hasVertexNormals = I, Q.useWebMercatorProjection = oe, Q.clippedByBoundaries = i.clippedByBoundaries, Q.hasGeodeticSurfaceNormals = H, Q.hasExaggeration = z;
|
|
144015
144215
|
const he = i.imagery;
|
|
144016
|
-
let
|
|
144017
|
-
const
|
|
144018
|
-
let pe = re,
|
|
144019
|
-
const
|
|
144216
|
+
let ue = 0;
|
|
144217
|
+
const se = he.length, _e = e.showSkirts && !d && !h, me = e.backFaceCulling && !d && !h, re = me ? e._renderState : e._disableCullingRenderState, xe = me ? e._blendRenderState : e._disableCullingBlendRenderState;
|
|
144218
|
+
let pe = re, Ce = e._firstPassInitialColor;
|
|
144219
|
+
const be = n.context;
|
|
144020
144220
|
if (defined(e._debug.boundingSphereTile) || debugDestroyPrimitive(), e._materialUniformMap !== e.materialUniformMap) {
|
|
144021
144221
|
e._materialUniformMap = e.materialUniformMap;
|
|
144022
144222
|
const j = e._drawCommands.length;
|
|
144023
|
-
for (let
|
|
144024
|
-
e._uniformMaps[
|
|
144223
|
+
for (let ce = 0; ce < j; ++ce)
|
|
144224
|
+
e._uniformMaps[ce] = createTileUniformMap(
|
|
144025
144225
|
n,
|
|
144026
144226
|
e
|
|
144027
144227
|
);
|
|
144028
144228
|
}
|
|
144029
144229
|
do {
|
|
144030
|
-
let j = 0,
|
|
144031
|
-
if (e._drawCommands.length <= e._usedDrawCommands ? (
|
|
144230
|
+
let j = 0, ce, Ee;
|
|
144231
|
+
if (e._drawCommands.length <= e._usedDrawCommands ? (ce = new DrawCommand(), ce.owner = t, ce.cull = !1, ce.boundingVolume = new BoundingSphere(), ce.orientedBoundingBox = void 0, Ee = createTileUniformMap(n, e), e._drawCommands.push(ce), e._uniformMaps.push(Ee)) : (ce = e._drawCommands[e._usedDrawCommands], Ee = e._uniformMaps[e._usedDrawCommands]), ce.owner = t, ++e._usedDrawCommands, t === e._debug.boundingSphereTile) {
|
|
144032
144232
|
const ke = $.boundingVolume, Qe = $.boundingSphere;
|
|
144033
144233
|
defined(ke) ? getDebugOrientedBoundingBox(ke, Color.RED).update(n) : defined(Qe) && getDebugBoundingSphere(Qe, Color.RED).update(n);
|
|
144034
144234
|
}
|
|
144035
|
-
const le =
|
|
144036
|
-
Cartesian4.clone(
|
|
144235
|
+
const le = Ee.properties;
|
|
144236
|
+
Cartesian4.clone(Ce, le.initialColor), le.oceanNormalMap = A, le.lightingFadeDistance.x = e.lightingFadeOutDistance, le.lightingFadeDistance.y = e.lightingFadeInDistance, le.nightFadeDistance.x = e.nightFadeOutDistance, le.nightFadeDistance.y = e.nightFadeInDistance, le.atmosphereLightIntensity = e.atmosphereLightIntensity, le.atmosphereRayleighCoefficient = e.atmosphereRayleighCoefficient, le.atmosphereMieCoefficient = e.atmosphereMieCoefficient, le.atmosphereRayleighScaleHeight = e.atmosphereRayleighScaleHeight, le.atmosphereMieScaleHeight = e.atmosphereMieScaleHeight, le.atmosphereMieAnisotropy = e.atmosphereMieAnisotropy, le.zoomedOutOceanSpecularIntensity = e.zoomedOutOceanSpecularIntensity;
|
|
144037
144237
|
const De = d ? m : p, Re = d ? p : m;
|
|
144038
144238
|
defined(De) && (Cartesian4.fromElements(
|
|
144039
144239
|
De.near,
|
|
@@ -144058,11 +144258,11 @@ function addDrawCommandsForTile(e, t, n) {
|
|
|
144058
144258
|
Ge && Color.clone(
|
|
144059
144259
|
e.fillHighlightColor,
|
|
144060
144260
|
le.fillHighlightColor
|
|
144061
|
-
), le.verticalExaggerationAndRelativeHeight.x = G, le.verticalExaggerationAndRelativeHeight.y = q, le.center3D = V.center, Cartesian3.clone(U, le.rtc), Cartesian4.clone(
|
|
144261
|
+
), le.verticalExaggerationAndRelativeHeight.x = G, le.verticalExaggerationAndRelativeHeight.y = q, le.center3D = V.center, Cartesian3.clone(U, le.rtc), Cartesian4.clone(K, le.tileRectangle), le.southAndNorthLatitude.x = X, le.southAndNorthLatitude.y = J, le.southMercatorYAndOneOverHeight.x = ee, le.southMercatorYAndOneOverHeight.y = te;
|
|
144062
144262
|
const Le = localizedCartographicLimitRectangleScratch, Ue = clipRectangleAntimeridian(
|
|
144063
144263
|
t.rectangle,
|
|
144064
144264
|
e.cartographicLimitRectangle
|
|
144065
|
-
),
|
|
144265
|
+
), Z = localizedTranslucencyRectangleScratch, ae = clipRectangleAntimeridian(
|
|
144066
144266
|
t.rectangle,
|
|
144067
144267
|
_
|
|
144068
144268
|
);
|
|
@@ -144072,37 +144272,37 @@ function addDrawCommandsForTile(e, t, n) {
|
|
|
144072
144272
|
N,
|
|
144073
144273
|
le.hsbShift
|
|
144074
144274
|
);
|
|
144075
|
-
const
|
|
144076
|
-
Le.x = (Ue.west -
|
|
144275
|
+
const ne = t.rectangle, ie = 1 / ne.width, de = 1 / ne.height;
|
|
144276
|
+
Le.x = (Ue.west - ne.west) * ie, Le.y = (Ue.south - ne.south) * de, Le.z = (Ue.east - ne.west) * ie, Le.w = (Ue.north - ne.south) * de, Cartesian4.clone(
|
|
144077
144277
|
Le,
|
|
144078
144278
|
le.localizedCartographicLimitRectangle
|
|
144079
|
-
),
|
|
144080
|
-
|
|
144279
|
+
), Z.x = (ae.west - ne.west) * ie, Z.y = (ae.south - ne.south) * de, Z.z = (ae.east - ne.west) * ie, Z.w = (ae.north - ne.south) * de, Cartesian4.clone(
|
|
144280
|
+
Z,
|
|
144081
144281
|
le.localizedTranslucencyRectangle
|
|
144082
144282
|
);
|
|
144083
|
-
const
|
|
144084
|
-
F = F && (
|
|
144085
|
-
let
|
|
144086
|
-
for (; j < s &&
|
|
144087
|
-
const ke = he[
|
|
144088
|
-
if (++
|
|
144283
|
+
const ge = M && CesiumMath.fog(t._distance, n.fog.density) > CesiumMath.EPSILON3;
|
|
144284
|
+
F = F && (ge || R);
|
|
144285
|
+
let Se = !1, Ie = !1, we = !1, He = !1, We = !1, Pe = !1, Ae = !1, $e = !1, Fe = !1, Ke = !1;
|
|
144286
|
+
for (; j < s && ue < se; ) {
|
|
144287
|
+
const ke = he[ue], Qe = ke.readyImagery;
|
|
144288
|
+
if (++ue, !defined(Qe) || Qe.imageryLayer.alpha === 0)
|
|
144089
144289
|
continue;
|
|
144090
144290
|
const Ye = ke.useWebMercatorT ? Qe.textureWebMercator : Qe.texture, Ve = Qe.imageryLayer;
|
|
144091
144291
|
defined(ke.textureTranslationAndScale) || (ke.textureTranslationAndScale = Ve._calculateTextureTranslationAndScale(
|
|
144092
144292
|
t,
|
|
144093
144293
|
ke
|
|
144094
|
-
)), le.dayTextures[j] = Ye, le.dayTextureTranslationAndScale[j] = ke.textureTranslationAndScale, le.dayTextureTexCoordsRectangle[j] = ke.textureCoordinateRectangle, le.dayTextureUseWebMercatorT[j] = ke.useWebMercatorT, le.dayTextureAlpha[j] = Ve.alpha,
|
|
144294
|
+
)), le.dayTextures[j] = Ye, le.dayTextureTranslationAndScale[j] = ke.textureTranslationAndScale, le.dayTextureTexCoordsRectangle[j] = ke.textureCoordinateRectangle, le.dayTextureUseWebMercatorT[j] = ke.useWebMercatorT, le.dayTextureAlpha[j] = Ve.alpha, Pe = Pe || le.dayTextureAlpha[j] !== 1, le.dayTextureNightAlpha[j] = Ve.nightAlpha, Ae = Ae || le.dayTextureNightAlpha[j] !== 1, le.dayTextureDayAlpha[j] = Ve.dayAlpha, Ae = Ae || le.dayTextureDayAlpha[j] !== 1, le.dayTextureBrightness[j] = Ve.brightness, Se = Se || le.dayTextureBrightness[j] !== ImageryLayer.DEFAULT_BRIGHTNESS, le.dayTextureContrast[j] = Ve.contrast, Ie = Ie || le.dayTextureContrast[j] !== ImageryLayer.DEFAULT_CONTRAST, le.dayTextureHue[j] = Ve.hue, we = we || le.dayTextureHue[j] !== ImageryLayer.DEFAULT_HUE, le.dayTextureSaturation[j] = Ve.saturation, He = He || le.dayTextureSaturation[j] !== ImageryLayer.DEFAULT_SATURATION, le.dayTextureOneOverGamma[j] = 1 / Ve.gamma, We = We || le.dayTextureOneOverGamma[j] !== 1 / ImageryLayer.DEFAULT_GAMMA, le.dayTextureSplit[j] = Ve.splitDirection, $e = $e || le.dayTextureSplit[j] !== 0;
|
|
144095
144295
|
let et = le.dayTextureCutoutRectangles[j];
|
|
144096
144296
|
if (defined(et) || (et = le.dayTextureCutoutRectangles[j] = new Cartesian4()), Cartesian4.clone(Cartesian4.ZERO, et), defined(Ve.cutoutRectangle)) {
|
|
144097
144297
|
const Me = clipRectangleAntimeridian(
|
|
144098
|
-
|
|
144298
|
+
ne,
|
|
144099
144299
|
Ve.cutoutRectangle
|
|
144100
144300
|
), ye = Rectangle.simpleIntersection(
|
|
144101
144301
|
Me,
|
|
144102
|
-
|
|
144302
|
+
ne,
|
|
144103
144303
|
rectangleIntersectionScratch
|
|
144104
144304
|
);
|
|
144105
|
-
Fe = defined(ye) || Fe, et.x = (Me.west -
|
|
144305
|
+
Fe = defined(ye) || Fe, et.x = (Me.west - ne.west) * ie, et.y = (Me.south - ne.south) * de, et.z = (Me.east - ne.west) * ie, et.w = (Me.north - ne.south) * de;
|
|
144106
144306
|
}
|
|
144107
144307
|
let tt = le.colorsToAlpha[j];
|
|
144108
144308
|
defined(tt) || (tt = le.colorsToAlpha[j] = new Cartesian4());
|
|
@@ -144129,13 +144329,13 @@ function addDrawCommandsForTile(e, t, n) {
|
|
|
144129
144329
|
le.clippingPlanesEdgeColor
|
|
144130
144330
|
), le.clippingPlanesEdgeWidth = ve.edgeWidth);
|
|
144131
144331
|
const rt = e._clippingPolygons, Be = defined(rt) && rt.enabled && t.isClipped;
|
|
144132
|
-
|
|
144133
|
-
let
|
|
144134
|
-
_e || (
|
|
144135
|
-
|
|
144136
|
-
),
|
|
144137
|
-
let je =
|
|
144138
|
-
const at =
|
|
144332
|
+
Q.numberOfDayTextures = j, Q.applyBrightness = Se, Q.applyContrast = Ie, Q.applyHue = we, Q.applySaturation = He, Q.applyGamma = We, Q.applyAlpha = Pe, Q.applyDayNightAlpha = Ae, Q.applySplit = $e, Q.enableFog = ge, Q.enableClippingPlanes = Ne, Q.clippingPlanes = ve, Q.enableClippingPolygons = Be, Q.clippingPolygons = rt, Q.hasImageryLayerCutout = Fe, Q.colorCorrect = F, Q.highlightFillTile = Ge, Q.colorToAlpha = Ke, Q.showUndergroundColor = T, Q.translucent = h;
|
|
144333
|
+
let Je = i.renderedMesh.indices.length;
|
|
144334
|
+
_e || (Je = i.renderedMesh.indexCountWithoutSkirts), ce.shaderProgram = e._surfaceShaderSet.getShaderProgram(
|
|
144335
|
+
Q
|
|
144336
|
+
), ce.castShadows = L, ce.receiveShadows = g, ce.renderState = pe, ce.primitiveType = PrimitiveType$1.TRIANGLES, ce.vertexArray = i.vertexArray || i.fill.vertexArray, ce.count = Je, ce.uniformMap = Ee, ce.pass = Pass$1.GLOBE, e._debug.wireframe && (createWireframeVertexArrayIfNecessary(be, e, t), defined(i.wireframeVertexArray) && (ce.vertexArray = i.wireframeVertexArray, ce.primitiveType = PrimitiveType$1.LINES, ce.count = Je * 2));
|
|
144337
|
+
let je = ce.boundingVolume;
|
|
144338
|
+
const at = ce.orientedBoundingBox;
|
|
144139
144339
|
n.mode !== SceneMode$1.SCENE3D ? (BoundingSphere.fromRectangleWithHeights2D(
|
|
144140
144340
|
t.rectangle,
|
|
144141
144341
|
n.mapProjection,
|
|
@@ -144151,14 +144351,14 @@ function addDrawCommandsForTile(e, t, n) {
|
|
|
144151
144351
|
$.boundingSphere,
|
|
144152
144352
|
je,
|
|
144153
144353
|
je
|
|
144154
|
-
))) : (
|
|
144354
|
+
))) : (ce.boundingVolume = BoundingSphere.clone(
|
|
144155
144355
|
$.boundingSphere,
|
|
144156
144356
|
je
|
|
144157
|
-
),
|
|
144357
|
+
), ce.orientedBoundingBox = OrientedBoundingBox.clone(
|
|
144158
144358
|
$.boundingVolume,
|
|
144159
144359
|
at
|
|
144160
|
-
)),
|
|
144161
|
-
} while (
|
|
144360
|
+
)), ce.dirty = !0, h && f.updateDerivedCommands(ce, n), pushCommand(ce, n), pe = xe, Ce = otherPassesInitialColor;
|
|
144361
|
+
} while (ue < se);
|
|
144162
144362
|
}
|
|
144163
144363
|
function GlobeTranslucency() {
|
|
144164
144364
|
this._enabled = !1, this._frontFaceAlpha = 1, this._frontFaceAlphaByDistance = void 0, this._backFaceAlpha = 1, this._backFaceAlphaByDistance = void 0, this._rectangle = Rectangle.clone(Rectangle.MAX_VALUE);
|
|
@@ -149256,11 +149456,11 @@ var LercDecode = { exports: {} };
|
|
|
149256
149456
|
readTiles: function(d, f, h) {
|
|
149257
149457
|
var p = f.headerInfo, m = p.width, _ = p.height, y = p.microBlockSize, C = p.imageType, T = s.getDataTypeSize(C), x = Math.ceil(m / y), b = Math.ceil(_ / y);
|
|
149258
149458
|
f.pixels.numBlocksY = b, f.pixels.numBlocksX = x, f.pixels.ptr = 0;
|
|
149259
|
-
var S = 0, E = 0, A = 0, D = 0, P = 0, I = 0, M = 0, R = 0, L = 0, g = 0, w = 0, O = 0, N = 0, F = 0, B = 0, V = 0, U, k, $, G, q, z, H = new h(y * y),
|
|
149459
|
+
var S = 0, E = 0, A = 0, D = 0, P = 0, I = 0, M = 0, R = 0, L = 0, g = 0, w = 0, O = 0, N = 0, F = 0, B = 0, V = 0, U, k, $, G, q, z, H = new h(y * y), K = _ % y || y, X = m % y || y, J, ee, te = p.numDims, oe, Q = f.pixels.resultMask, he = f.pixels.resultPixels;
|
|
149260
149460
|
for (A = 0; A < b; A++)
|
|
149261
|
-
for (P = A !== b - 1 ? y :
|
|
149262
|
-
for (I = D !== x - 1 ? y :
|
|
149263
|
-
if (
|
|
149461
|
+
for (P = A !== b - 1 ? y : K, D = 0; D < x; D++)
|
|
149462
|
+
for (I = D !== x - 1 ? y : X, w = A * m * y + D * y, O = m - I, oe = 0; oe < te; oe++) {
|
|
149463
|
+
if (te > 1 && (he = new h(f.pixels.resultPixels.buffer, m * _ * oe * T, m * _)), M = d.byteLength - f.ptr, U = new DataView(d, f.ptr, Math.min(10, M)), k = {}, V = 0, R = U.getUint8(0), V++, L = R >> 6 & 255, g = R >> 2 & 15, g !== (D * y >> 3 & 15))
|
|
149264
149464
|
throw "integrity issue";
|
|
149265
149465
|
if (z = R & 3, z > 3)
|
|
149266
149466
|
throw f.ptr += V, "Invalid block encoding (" + z + ")";
|
|
@@ -149268,10 +149468,10 @@ var LercDecode = { exports: {} };
|
|
|
149268
149468
|
f.counter.constant++, f.ptr += V;
|
|
149269
149469
|
continue;
|
|
149270
149470
|
} else if (z === 0) {
|
|
149271
|
-
if (f.counter.uncompressed++, f.ptr += V, N = P * I * T, F = d.byteLength - f.ptr, N = N < F ? N : F, $ = new ArrayBuffer(N % T === 0 ? N : N + T - N % T), G = new Uint8Array($), G.set(new Uint8Array(d, f.ptr, N)), q = new h($), B = 0,
|
|
149471
|
+
if (f.counter.uncompressed++, f.ptr += V, N = P * I * T, F = d.byteLength - f.ptr, N = N < F ? N : F, $ = new ArrayBuffer(N % T === 0 ? N : N + T - N % T), G = new Uint8Array($), G.set(new Uint8Array(d, f.ptr, N)), q = new h($), B = 0, Q)
|
|
149272
149472
|
for (S = 0; S < P; S++) {
|
|
149273
149473
|
for (E = 0; E < I; E++)
|
|
149274
|
-
|
|
149474
|
+
Q[w] && (he[w] = q[B++]), w++;
|
|
149275
149475
|
w += O;
|
|
149276
149476
|
}
|
|
149277
149477
|
else
|
|
@@ -149281,23 +149481,23 @@ var LercDecode = { exports: {} };
|
|
|
149281
149481
|
w += O;
|
|
149282
149482
|
}
|
|
149283
149483
|
f.ptr += B * T;
|
|
149284
|
-
} else if (
|
|
149285
|
-
if (f.ptr += V, f.counter.constantoffset++,
|
|
149484
|
+
} else if (J = s.getDataTypeUsed(C, L), ee = s.getOnePixel(k, V, J, U), V += s.getDataTypeSize(J), z === 3)
|
|
149485
|
+
if (f.ptr += V, f.counter.constantoffset++, Q)
|
|
149286
149486
|
for (S = 0; S < P; S++) {
|
|
149287
149487
|
for (E = 0; E < I; E++)
|
|
149288
|
-
|
|
149488
|
+
Q[w] && (he[w] = ee), w++;
|
|
149289
149489
|
w += O;
|
|
149290
149490
|
}
|
|
149291
149491
|
else
|
|
149292
149492
|
for (S = 0; S < P; S++) {
|
|
149293
149493
|
for (E = 0; E < I; E++)
|
|
149294
|
-
he[w++] =
|
|
149494
|
+
he[w++] = ee;
|
|
149295
149495
|
w += O;
|
|
149296
149496
|
}
|
|
149297
|
-
else if (f.ptr += V, s.decodeBits(d, f, H,
|
|
149497
|
+
else if (f.ptr += V, s.decodeBits(d, f, H, ee, oe), V = 0, Q)
|
|
149298
149498
|
for (S = 0; S < P; S++) {
|
|
149299
149499
|
for (E = 0; E < I; E++)
|
|
149300
|
-
|
|
149500
|
+
Q[w] && (he[w] = H[V++]), w++;
|
|
149301
149501
|
w += O;
|
|
149302
149502
|
}
|
|
149303
149503
|
else
|
|
@@ -154727,22 +154927,22 @@ function createShaders(e, t, n) {
|
|
|
154727
154927
|
for (r in L)
|
|
154728
154928
|
L.hasOwnProperty(r) && (o = L[r], M[r] = `czm_3dtiles_property_${o.location}`, R[o.location] = o);
|
|
154729
154929
|
if (c) {
|
|
154730
|
-
const
|
|
154930
|
+
const J = {
|
|
154731
154931
|
translucent: !1
|
|
154732
|
-
},
|
|
154932
|
+
}, ee = "(vec3 czm_3dtiles_builtin_property_POSITION, vec3 czm_3dtiles_builtin_property_POSITION_ABSOLUTE, vec4 czm_3dtiles_builtin_property_COLOR, vec3 czm_3dtiles_builtin_property_NORMAL)";
|
|
154733
154933
|
A = n.getColorShaderFunction(
|
|
154734
|
-
`getColorFromStyle${
|
|
154934
|
+
`getColorFromStyle${ee}`,
|
|
154735
154935
|
M,
|
|
154736
|
-
|
|
154936
|
+
J
|
|
154737
154937
|
), D = n.getShowShaderFunction(
|
|
154738
|
-
`getShowFromStyle${
|
|
154938
|
+
`getShowFromStyle${ee}`,
|
|
154739
154939
|
M,
|
|
154740
|
-
|
|
154940
|
+
J
|
|
154741
154941
|
), P = n.getPointSizeShaderFunction(
|
|
154742
|
-
`getPointSizeFromStyle${
|
|
154942
|
+
`getPointSizeFromStyle${ee}`,
|
|
154743
154943
|
M,
|
|
154744
|
-
|
|
154745
|
-
), defined(A) &&
|
|
154944
|
+
J
|
|
154945
|
+
), defined(A) && J.translucent && (I = !0);
|
|
154746
154946
|
}
|
|
154747
154947
|
e._styleTranslucent = I;
|
|
154748
154948
|
const g = defined(A), w = defined(D), O = defined(P), N = e.isClipped, F = [], B = [];
|
|
@@ -154755,24 +154955,24 @@ function createShaders(e, t, n) {
|
|
|
154755
154955
|
for (r in L)
|
|
154756
154956
|
if (L.hasOwnProperty(r)) {
|
|
154757
154957
|
o = L[r];
|
|
154758
|
-
const
|
|
154958
|
+
const J = F.indexOf(o.location) >= 0, ee = getVertexAttribute(
|
|
154759
154959
|
b,
|
|
154760
154960
|
o.location
|
|
154761
154961
|
);
|
|
154762
|
-
|
|
154962
|
+
ee.enabled = J;
|
|
154763
154963
|
}
|
|
154764
154964
|
const k = _ && (!g || V);
|
|
154765
154965
|
if (_) {
|
|
154766
|
-
const
|
|
154767
|
-
|
|
154966
|
+
const J = getVertexAttribute(b, colorLocation);
|
|
154967
|
+
J.enabled = k;
|
|
154768
154968
|
}
|
|
154769
154969
|
const $ = y && (x || T || U);
|
|
154770
154970
|
if (y) {
|
|
154771
|
-
const
|
|
154971
|
+
const J = getVertexAttribute(
|
|
154772
154972
|
b,
|
|
154773
154973
|
normalLocation
|
|
154774
154974
|
);
|
|
154775
|
-
|
|
154975
|
+
J.enabled = $;
|
|
154776
154976
|
}
|
|
154777
154977
|
const G = {
|
|
154778
154978
|
a_position: positionLocation
|
|
@@ -154781,12 +154981,12 @@ function createShaders(e, t, n) {
|
|
|
154781
154981
|
let q = "";
|
|
154782
154982
|
const z = F.length;
|
|
154783
154983
|
for (i = 0; i < z; ++i) {
|
|
154784
|
-
const
|
|
154785
|
-
o = R[
|
|
154786
|
-
const
|
|
154984
|
+
const J = F[i];
|
|
154985
|
+
o = R[J];
|
|
154986
|
+
const ee = o.componentCount, te = `czm_3dtiles_property_${J}`;
|
|
154787
154987
|
let oe;
|
|
154788
|
-
|
|
154789
|
-
`, G[
|
|
154988
|
+
ee === 1 ? oe = "float" : oe = `vec${ee}`, q += `in ${oe} ${te};
|
|
154989
|
+
`, G[te] = o.location;
|
|
154790
154990
|
}
|
|
154791
154991
|
createUniformMap$1(e, t);
|
|
154792
154992
|
let H = `in vec3 a_position;
|
|
@@ -154857,31 +155057,31 @@ const float NORMALIZE_5 = 1.0 / 32.0;
|
|
|
154857
155057
|
gl_PointSize *= float(show);
|
|
154858
155058
|
`), H += `}
|
|
154859
155059
|
`;
|
|
154860
|
-
let
|
|
155060
|
+
let K = `in vec4 v_color;
|
|
154861
155061
|
`;
|
|
154862
|
-
N && (
|
|
155062
|
+
N && (K += `uniform highp sampler2D u_clippingPlanes;
|
|
154863
155063
|
uniform mat4 u_clippingPlanesMatrix;
|
|
154864
155064
|
uniform vec4 u_clippingPlanesEdgeStyle;
|
|
154865
|
-
`,
|
|
154866
|
-
`,
|
|
154867
|
-
`),
|
|
155065
|
+
`, K += `
|
|
155066
|
+
`, K += getClippingFunction(S, s), K += `
|
|
155067
|
+
`), K += `void main()
|
|
154868
155068
|
{
|
|
154869
155069
|
out_FragColor = czm_gammaCorrect(v_color);
|
|
154870
|
-
`, N && (
|
|
155070
|
+
`, N && (K += getClipAndStyleCode(
|
|
154871
155071
|
"u_clippingPlanes",
|
|
154872
155072
|
"u_clippingPlanesMatrix",
|
|
154873
155073
|
"u_clippingPlanesEdgeStyle"
|
|
154874
|
-
)),
|
|
154875
|
-
`, e.splitDirection !== SplitDirection$1.NONE && (
|
|
154876
|
-
const
|
|
154877
|
-
defined(
|
|
155074
|
+
)), K += `}
|
|
155075
|
+
`, e.splitDirection !== SplitDirection$1.NONE && (K = Splitter.modifyFragmentShader(K)), defined(e._vertexShaderLoaded) && (H = e._vertexShaderLoaded(H)), defined(e._fragmentShaderLoaded) && (K = e._fragmentShaderLoaded(K));
|
|
155076
|
+
const X = e._drawCommand;
|
|
155077
|
+
defined(X.shaderProgram) && X.shaderProgram.destroy(), X.shaderProgram = ShaderProgram.fromCache({
|
|
154878
155078
|
context: s,
|
|
154879
155079
|
vertexShaderSource: H,
|
|
154880
|
-
fragmentShaderSource:
|
|
155080
|
+
fragmentShaderSource: K,
|
|
154881
155081
|
attributeLocations: G
|
|
154882
155082
|
});
|
|
154883
155083
|
try {
|
|
154884
|
-
|
|
155084
|
+
X.shaderProgram._bind();
|
|
154885
155085
|
} catch {
|
|
154886
155086
|
throw new RuntimeError(
|
|
154887
155087
|
"Error generating style shader: this may be caused by a type mismatch, index out-of-bounds, or other syntax error."
|
|
@@ -159318,11 +159518,11 @@ function handleZoom(e, t, n, i, r, o) {
|
|
|
159318
159518
|
-1,
|
|
159319
159519
|
1
|
|
159320
159520
|
)
|
|
159321
|
-
),
|
|
159322
|
-
Cartesian3.normalize(L,
|
|
159323
|
-
let
|
|
159324
|
-
|
|
159325
|
-
Cartesian3.cross(
|
|
159521
|
+
), K = z - H + U, X = scratchCameraUpNormal;
|
|
159522
|
+
Cartesian3.normalize(L, X);
|
|
159523
|
+
let J = scratchCameraRightNormal;
|
|
159524
|
+
J = Cartesian3.cross(B, X, J), J = Cartesian3.normalize(J, J), Cartesian3.normalize(
|
|
159525
|
+
Cartesian3.cross(X, J, scratchCartesian),
|
|
159326
159526
|
N
|
|
159327
159527
|
), Cartesian3.multiplyByScalar(
|
|
159328
159528
|
Cartesian3.normalize(O, scratchCartesian),
|
|
@@ -159333,45 +159533,45 @@ function handleZoom(e, t, n, i, r, o) {
|
|
|
159333
159533
|
G,
|
|
159334
159534
|
L
|
|
159335
159535
|
);
|
|
159336
|
-
const
|
|
159536
|
+
const ee = scratchPan;
|
|
159337
159537
|
Cartesian3.multiplyByScalar(
|
|
159338
159538
|
Cartesian3.add(
|
|
159339
159539
|
Cartesian3.multiplyByScalar(
|
|
159340
|
-
|
|
159341
|
-
Math.cos(
|
|
159540
|
+
X,
|
|
159541
|
+
Math.cos(K) - 1,
|
|
159342
159542
|
scratchCartesianTwo
|
|
159343
159543
|
),
|
|
159344
159544
|
Cartesian3.multiplyByScalar(
|
|
159345
159545
|
N,
|
|
159346
|
-
Math.sin(
|
|
159546
|
+
Math.sin(K),
|
|
159347
159547
|
scratchCartesianThree
|
|
159348
159548
|
),
|
|
159349
159549
|
scratchCartesian
|
|
159350
159550
|
),
|
|
159351
159551
|
G,
|
|
159352
|
-
|
|
159353
|
-
), Cartesian3.add(L,
|
|
159354
|
-
Cartesian3.cross(
|
|
159552
|
+
ee
|
|
159553
|
+
), Cartesian3.add(L, ee, L), Cartesian3.normalize(O, X), Cartesian3.normalize(
|
|
159554
|
+
Cartesian3.cross(X, J, scratchCartesian),
|
|
159355
159555
|
N
|
|
159356
159556
|
);
|
|
159357
|
-
const
|
|
159557
|
+
const te = scratchCenterMovement;
|
|
159358
159558
|
Cartesian3.multiplyByScalar(
|
|
159359
159559
|
Cartesian3.add(
|
|
159360
159560
|
Cartesian3.multiplyByScalar(
|
|
159361
|
-
|
|
159362
|
-
Math.cos(
|
|
159561
|
+
X,
|
|
159562
|
+
Math.cos(K) - 1,
|
|
159363
159563
|
scratchCartesianTwo
|
|
159364
159564
|
),
|
|
159365
159565
|
Cartesian3.multiplyByScalar(
|
|
159366
159566
|
N,
|
|
159367
|
-
Math.sin(
|
|
159567
|
+
Math.sin(K),
|
|
159368
159568
|
scratchCartesianThree
|
|
159369
159569
|
),
|
|
159370
159570
|
scratchCartesian
|
|
159371
159571
|
),
|
|
159372
159572
|
Cartesian3.magnitude(O),
|
|
159373
|
-
|
|
159374
|
-
), Cartesian3.add(O,
|
|
159573
|
+
te
|
|
159574
|
+
), Cartesian3.add(O, te, O), Cartesian3.clone(L, C.position), Cartesian3.normalize(
|
|
159375
159575
|
Cartesian3.subtract(O, L, scratchCartesian),
|
|
159376
159576
|
C.direction
|
|
159377
159577
|
), Cartesian3.clone(C.direction, C.direction), Cartesian3.cross(C.direction, C.up, C.right), Cartesian3.cross(C.right, C.direction, C.up), C.setView(scratchZoomViewOptions);
|