@vcmap/ui 6.1.0-rc.1 → 6.1.0-rc.3
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/config/base.config.json +6 -0
- package/config/clipping.config.json +384 -0
- package/config/cluster.config.json +106 -0
- package/config/concepts-show-case.config.json +4 -0
- package/config/projects.config.json +5 -2
- package/dist/assets/{cesium-11e5bbc6.js → cesium-87d5e72d.js} +438 -432
- package/dist/assets/cesium.js +1 -1
- package/dist/assets/{core-9d0cfec3.js → core-72f9f393.js} +4907 -4514
- package/dist/assets/core.js +1 -1
- package/dist/assets/{ol-0d0ebb27.js → ol-e468ba43.js} +23518 -22404
- package/dist/assets/ol.js +1 -1
- package/dist/assets/ui-73257b15.css +1 -0
- package/dist/assets/{ui-08446666.js → ui-73257b15.js} +13703 -12977
- package/dist/assets/ui.js +1 -1
- package/dist/assets/vue.js +1 -1
- package/dist/assets/{vuetify-67025c41.css → vuetify-2437380c.css} +2 -2
- package/dist/assets/{vuetify-67025c41.js → vuetify-2437380c.js} +8024 -7634
- package/dist/assets/vuetify.js +1 -1
- package/index.d.ts +40 -19
- package/index.js +36 -6
- package/lib/olLib.js +25 -3
- package/package.json +6 -6
- package/plugins/@vcmap-show-case/callback-tester/README.md +3 -0
- package/plugins/@vcmap-show-case/callback-tester/package.json +5 -0
- package/plugins/@vcmap-show-case/callback-tester/src/CallbackTester.vue +62 -0
- package/plugins/@vcmap-show-case/callback-tester/src/index.js +48 -0
- package/plugins/@vcmap-show-case/form-inputs-example/src/FormInputsExample.vue +1 -0
- package/src/actions/actionHelper.d.ts +1 -0
- package/src/actions/actionHelper.js +70 -19
- package/src/application/VcsApp.vue +83 -50
- package/src/application/VcsApp.vue.d.ts +28 -2
- package/src/application/VcsContainer.vue +5 -3
- package/src/application/VcsContainer.vue.d.ts +14 -0
- package/src/application/VcsNavbar.vue +10 -6
- package/src/application/VcsNavbar.vue.d.ts +2 -0
- package/src/application/VcsObliqueFooter.vue +9 -3
- package/src/application/VcsSplashScreen.vue +37 -0
- package/src/application/VcsSplashScreen.vue.d.ts +6 -0
- package/src/application/positionDisplayInteraction.js +1 -1
- package/src/callback/activateClippingPolygonCallback.d.ts +29 -0
- package/src/callback/activateClippingPolygonCallback.js +54 -0
- package/src/callback/closeSplashScreenCallback.d.ts +8 -0
- package/src/callback/closeSplashScreenCallback.js +33 -0
- package/src/callback/deactivateClippingPolygonCallback.d.ts +29 -0
- package/src/callback/deactivateClippingPolygonCallback.js +54 -0
- package/src/callback/openSplashScreenCallback.d.ts +8 -0
- package/src/callback/openSplashScreenCallback.js +35 -0
- package/src/callback/toggleNavbarButtonCallback.d.ts +36 -0
- package/src/callback/toggleNavbarButtonCallback.js +62 -0
- package/src/components/buttons/VcsActionButtonList.vue +6 -4
- package/src/components/buttons/VcsToolButton.vue +0 -1
- package/src/components/form-inputs-controls/VcsDatePicker.vue +7 -1
- package/src/components/form-inputs-controls/VcsDatePicker.vue.d.ts +9 -0
- package/src/components/form-inputs-controls/VcsSelect.vue +1 -1
- package/src/components/form-inputs-controls/VcsTextArea.vue +13 -8
- package/src/components/form-output/markdownHelper.d.ts +0 -25
- package/src/components/form-output/markdownHelper.js +1 -386
- package/src/components/import/VcsImportComponent.vue +2 -0
- package/src/components/lists/VcsGroupedList.vue +178 -0
- package/src/components/lists/VcsGroupedList.vue.d.ts +17 -0
- package/src/components/lists/VcsList.vue +144 -394
- package/src/components/lists/VcsList.vue.d.ts +38 -159
- package/src/components/lists/VcsTreeNode.vue +18 -11
- package/src/components/lists/VcsTreeview.vue +27 -20
- package/src/components/lists/VcsTreeview.vue.d.ts +18 -1
- package/src/components/lists/listHelper.d.ts +87 -0
- package/src/components/lists/listHelper.js +348 -0
- package/src/components/section/VcsFormSection.vue +7 -2
- package/src/components/section/VcsFormSection.vue.d.ts +9 -0
- package/src/components/tables/VcsDataTable.vue +14 -3
- package/src/components/tables/VcsDataTable.vue.d.ts +9 -0
- package/src/components/vector-properties/VcsVectorPropertiesComponent.vue.d.ts +1 -1
- package/src/contentTree/LayerTree.vue +2 -1
- package/src/contentTree/LayerTree.vue.d.ts +2 -0
- package/src/contentTree/contentTreeCollection.d.ts +1 -0
- package/src/contentTree/contentTreeCollection.js +7 -3
- package/src/contentTree/contentTreeItem.js +4 -2
- package/src/contentTree/groupContentTreeItem.js +5 -3
- package/src/featureInfo/ClusterFeatureComponent.vue +58 -0
- package/src/featureInfo/ClusterFeatureComponent.vue.d.ts +6 -0
- package/src/featureInfo/abstractFeatureInfoView.js +1 -2
- package/src/featureInfo/featureInfo.d.ts +87 -1
- package/src/featureInfo/featureInfo.js +342 -34
- package/src/featureInfo/featureInfoInteraction.js +18 -3
- package/src/featureInfo/iframeFeatureInfoView.js +1 -1
- package/src/featureInfo/markdownBalloonFeatureInfoView.js +2 -4
- package/src/featureInfo/markdownFeatureInfoView.js +1 -1
- package/src/i18n/de.d.ts +17 -4
- package/src/i18n/de.js +7 -0
- package/src/i18n/en.d.ts +17 -4
- package/src/i18n/en.js +7 -0
- package/src/legend/VcsLegend.vue +1 -1
- package/src/legend/legendHelper.d.ts +1 -1
- package/src/legend/legendHelper.js +52 -9
- package/src/localStorage.d.ts +21 -0
- package/src/localStorage.js +51 -0
- package/src/manager/collectionManager/CollectionComponent.vue +1 -1
- package/src/manager/collectionManager/CollectionComponentContent.vue +2 -3
- package/src/manager/collectionManager/CollectionComponentList.vue +2 -3
- package/src/manager/collectionManager/CollectionComponentStandalone.vue +1 -1
- package/src/manager/navbarManager.js +9 -4
- package/src/manager/toolbox/ToolboxManagerComponent.vue +14 -12
- package/src/manager/toolbox/ToolboxManagerComponent.vue.d.ts +13 -2
- package/src/manager/toolbox/toolboxManager.d.ts +5 -0
- package/src/manager/toolbox/toolboxManager.js +7 -1
- package/src/manager/window/WindowComponent.vue +10 -0
- package/src/manager/window/WindowComponent.vue.d.ts +1 -0
- package/src/manager/window/WindowManager.vue +14 -4
- package/src/manager/window/WindowManager.vue.d.ts +1 -0
- package/src/manager/window/windowHelper.d.ts +7 -3
- package/src/manager/window/windowHelper.js +30 -10
- package/src/navigation/MapNavigation.vue +5 -5
- package/src/navigation/MapNavigation.vue.d.ts +1 -1
- package/src/navigation/overviewMap.d.ts +7 -0
- package/src/navigation/overviewMap.js +18 -4
- package/src/pluginHelper.d.ts +7 -0
- package/src/pluginHelper.js +18 -4
- package/src/search/ResultItem.vue.d.ts +1 -1
- package/src/search/markText.d.ts +1 -1
- package/src/search/markText.js +4 -4
- package/src/search/search.js +1 -1
- package/src/state.d.ts +4 -2
- package/src/state.js +54 -31
- package/src/uiConfig.d.ts +36 -0
- package/src/uiConfig.js +17 -1
- package/src/vcsUiApp.js +7 -11
- package/dist/assets/ui-08446666.css +0 -1
- /package/dist/assets/{vue-2f81c7f8.js → vue-ff37ea23.js} +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, Q = i * R + c * L + h * g + y * w, ne = r * R + l * L + p * g + C * w, K = o * R + d * L + m * g + T * w, Z = s * R + f * L + _ * g + x * w, ee = i * O + c * N + h * F + y * B, oe = r * O + l * N + p * F + C * B, X = o * O + d * N + m * F + T * 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] = Q, n[9] = ne, n[10] = K, n[11] = Z, n[12] = ee, n[13] = oe, n[14] = X, n[15] =
|
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, Q = i * R + c * L + h * g + y * w, ne = r * R + l * L + p * g + C * w, K = o * R + d * L + m * g + T * w, Z = s * R + f * L + _ * g + x * w, ee = i * O + c * N + h * F + y * B, oe = r * O + l * N + p * F + C * B, X = 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] = Q, n[9] = ne, n[10] = K, n[11] = Z, n[12] = ee, n[13] = oe, n[14] = X, 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;
|
@@ -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, Q, ne, K, Z, ee, oe, X,
|
5832
|
+
var k = [], $ = U.length, G, q = 0, z = _, H = m, Q, ne, K, Z, ee, oe, X, he, de;
|
5833
5833
|
for (Q = U.lastIndexOf(y), Q < 0 && (Q = 0), ne = 0; ne < Q; ++ne)
|
5834
5834
|
U.charCodeAt(ne) >= 128 && P("not-basic"), k.push(U.charCodeAt(ne));
|
5835
5835
|
for (K = Q > 0 ? Q + 1 : 0; K < $; ) {
|
5836
|
-
for (Z = q, ee = 1, oe = l; K >= $ && P("invalid-input"), X = g(U.charCodeAt(K++)), (X >= l || X > E((c - q) / ee)) && P("overflow"), q += X * ee,
|
5837
|
-
de = l -
|
5836
|
+
for (Z = q, ee = 1, oe = l; K >= $ && P("invalid-input"), X = g(U.charCodeAt(K++)), (X >= l || X > E((c - q) / ee)) && P("overflow"), q += X * ee, he = oe <= H ? d : oe >= H + f ? f : oe - H, !(X < he); oe += l)
|
5837
|
+
de = l - he, ee > E(c / de) && P("overflow"), ee *= de;
|
5838
5838
|
G = k.length + 1, H = O(q - Z, G, Z == 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, Q, ne, K, Z, ee, oe = [], X,
|
5843
|
+
var k, $, G, q, z, H, Q, ne, K, Z, ee, oe = [], X, he, de, ce;
|
5844
5844
|
for (U = R(U), X = U.length, k = _, $ = 0, z = m, H = 0; H < X; ++H)
|
5845
5845
|
ee = U[H], ee < 128 && oe.push(A(ee));
|
5846
5846
|
for (G = q = oe.length, q && oe.push(y); G < X; ) {
|
5847
5847
|
for (Q = c, H = 0; H < X; ++H)
|
5848
5848
|
ee = U[H], ee >= k && ee < Q && (Q = ee);
|
5849
|
-
for (
|
5849
|
+
for (he = G + 1, Q - k > E((c - $) / he) && P("overflow"), $ += (Q - k) * he, k = Q, H = 0; H < X; ++H)
|
5850
5850
|
if (ee = U[H], ee < k && ++$ > c && P("overflow"), ee == k) {
|
5851
5851
|
for (ne = $, K = l; Z = K <= z ? d : K >= z + f ? f : K - z, !(ne < Z); K += l)
|
5852
5852
|
ce = ne - Z, de = l - Z, oe.push(
|
5853
5853
|
A(w(Z + ce % de, 0))
|
5854
5854
|
), ne = E(ce / de);
|
5855
|
-
oe.push(A(w(ne, 0))), z = O($,
|
5855
|
+
oe.push(A(w(ne, 0))), z = O($, he, G == q), $ = 0, ++G;
|
5856
5856
|
}
|
5857
5857
|
++$, ++k;
|
5858
5858
|
}
|
@@ -33694,7 +33694,7 @@ function generateGeometryAttributes(e, t, n, i, r, o, s) {
|
|
33694
33694
|
}
|
33695
33695
|
let H = 0, Q = 0, ne = 0;
|
33696
33696
|
for (c = 0; c < f; c++) {
|
33697
|
-
const X = Cartesian3.clone(G, segmentStartBottomScratch),
|
33697
|
+
const X = Cartesian3.clone(G, segmentStartBottomScratch), he = Cartesian3.clone(q, segmentStartTopScratch);
|
33698
33698
|
let de = Cartesian3.clone(
|
33699
33699
|
z,
|
33700
33700
|
segmentStartNormalScratch
|
@@ -33711,12 +33711,12 @@ function generateGeometryAttributes(e, t, n, i, r, o, s) {
|
|
33711
33711
|
l,
|
33712
33712
|
segmentEndNormalScratch
|
33713
33713
|
), $ = breakMiter(z, X, G, q), R.latitude = o[B], R.longitude = o[B + 1], L.latitude = o[B + 2], L.longitude = o[B + 3];
|
33714
|
-
let ce,
|
33714
|
+
let ce, _e, ge, re;
|
33715
33715
|
if (s) {
|
33716
|
-
const
|
33717
|
-
ce = t.project(R, segmentStart2DScratch),
|
33718
|
-
const
|
33719
|
-
|
33716
|
+
const Ee = nudgeCartographic(R, L);
|
33717
|
+
ce = t.project(R, segmentStart2DScratch), _e = t.project(L, segmentEnd2DScratch);
|
33718
|
+
const $e = direction(_e, ce, forwardOffset2DScratch);
|
33719
|
+
$e.y = Math.abs($e.y), ge = segmentStartNormal2DScratch, re = segmentEndNormal2DScratch, Ee === 0 || Cartesian3.dot($e, Cartesian3.UNIT_Y) > MITER_BREAK_SMALL ? (ge = projectNormal(
|
33720
33720
|
t,
|
33721
33721
|
R,
|
33722
33722
|
de,
|
@@ -33726,13 +33726,13 @@ function generateGeometryAttributes(e, t, n, i, r, o, s) {
|
|
33726
33726
|
t,
|
33727
33727
|
L,
|
33728
33728
|
z,
|
33729
|
-
|
33729
|
+
_e,
|
33730
33730
|
segmentEndNormal2DScratch
|
33731
|
-
)) :
|
33731
|
+
)) : Ee === 1 ? (re = projectNormal(
|
33732
33732
|
t,
|
33733
33733
|
L,
|
33734
33734
|
z,
|
33735
|
-
|
33735
|
+
_e,
|
33736
33736
|
segmentEndNormal2DScratch
|
33737
33737
|
), ge.x = 0, ge.y = CesiumMath.sign(
|
33738
33738
|
R.longitude - Math.abs(L.longitude)
|
@@ -33746,7 +33746,7 @@ function generateGeometryAttributes(e, t, n, i, r, o, s) {
|
|
33746
33746
|
R.longitude - L.longitude
|
33747
33747
|
), re.z = 0);
|
33748
33748
|
}
|
33749
|
-
const
|
33749
|
+
const Se = Cartesian3.distance(he, q), pe = EncodedCartesian3.fromCartesian(
|
33750
33750
|
X,
|
33751
33751
|
encodeScratch
|
33752
33752
|
), Te = Cartesian3.subtract(
|
@@ -33754,7 +33754,7 @@ function generateGeometryAttributes(e, t, n, i, r, o, s) {
|
|
33754
33754
|
X,
|
33755
33755
|
offsetScratch$a
|
33756
33756
|
), xe = Cartesian3.normalize(Te, rightScratch);
|
33757
|
-
let W = Cartesian3.subtract(
|
33757
|
+
let W = Cartesian3.subtract(he, X, startUpScratch);
|
33758
33758
|
W = Cartesian3.normalize(W, W);
|
33759
33759
|
let j = Cartesian3.cross(xe, W, rightScratch);
|
33760
33760
|
j = Cartesian3.normalize(j, j);
|
@@ -33772,78 +33772,78 @@ function generateGeometryAttributes(e, t, n, i, r, o, s) {
|
|
33772
33772
|
endPlaneNormalScratch
|
33773
33773
|
);
|
33774
33774
|
le = Cartesian3.normalize(le, le);
|
33775
|
-
const De =
|
33776
|
-
let
|
33775
|
+
const De = Se / N, Re = H / N;
|
33776
|
+
let Ge = 0, Le, Ue, J, ae = 0, te = 0;
|
33777
33777
|
if (s) {
|
33778
|
-
|
33778
|
+
Ge = Cartesian3.distance(ce, _e), Le = EncodedCartesian3.fromCartesian(
|
33779
33779
|
ce,
|
33780
33780
|
encodeScratch2D
|
33781
|
-
),
|
33782
|
-
|
33781
|
+
), Ue = Cartesian3.subtract(
|
33782
|
+
_e,
|
33783
33783
|
ce,
|
33784
33784
|
forwardOffset2DScratch
|
33785
|
-
), J = Cartesian3.normalize(
|
33786
|
-
const
|
33787
|
-
J.x = J.y, J.y = -
|
33785
|
+
), J = Cartesian3.normalize(Ue, right2DScratch);
|
33786
|
+
const Ee = J.x;
|
33787
|
+
J.x = J.y, J.y = -Ee, ae = Ge / M, te = Q / M;
|
33788
33788
|
}
|
33789
33789
|
for (F = 0; F < 8; F++) {
|
33790
|
-
const
|
33791
|
-
Cartesian3.pack(pe.high, C,
|
33790
|
+
const Ee = k + F * 4, $e = V + F * 2, Fe = Ee + 3, Ke = F < 4 ? 1 : -1, ve = F === 2 || F === 3 || F === 6 || F === 7 ? 1 : -1;
|
33791
|
+
Cartesian3.pack(pe.high, C, Ee), C[Fe] = Te.x, Cartesian3.pack(pe.low, T, Ee), T[Fe] = Te.y, Cartesian3.pack(
|
33792
33792
|
se,
|
33793
33793
|
x,
|
33794
|
-
|
33794
|
+
Ee
|
33795
33795
|
), x[Fe] = Te.z, Cartesian3.pack(
|
33796
33796
|
le,
|
33797
33797
|
b,
|
33798
|
-
|
33799
|
-
), b[Fe] = De *
|
33798
|
+
Ee
|
33799
|
+
), b[Fe] = De * Ke, Cartesian3.pack(
|
33800
33800
|
j,
|
33801
33801
|
S,
|
33802
|
-
|
33802
|
+
Ee
|
33803
33803
|
);
|
33804
|
-
let
|
33805
|
-
|
33804
|
+
let Ne = Re * ve;
|
33805
|
+
Ne === 0 && ve < 0 && (Ne = 9), S[Fe] = Ne, s && (E[Ee] = Le.high.x, E[Ee + 1] = Le.high.y, E[Ee + 2] = Le.low.x, E[Ee + 3] = Le.low.y, D[Ee] = -ge.y, D[Ee + 1] = ge.x, D[Ee + 2] = re.y, D[Ee + 3] = -re.x, A[Ee] = Ue.x, A[Ee + 1] = Ue.y, A[Ee + 2] = J.x, A[Ee + 3] = J.y, P[$e] = ae * Ke, Ne = te * ve, Ne === 0 && ve < 0 && (Ne = 9), P[$e + 1] = Ne);
|
33806
33806
|
}
|
33807
|
-
const ie = adjustHeightStartBottomScratch, ue = adjustHeightEndBottomScratch, me = adjustHeightStartTopScratch,
|
33807
|
+
const ie = adjustHeightStartBottomScratch, ue = adjustHeightEndBottomScratch, me = adjustHeightStartTopScratch, be = adjustHeightEndTopScratch, Ie = Rectangle.fromCartographicArray(
|
33808
33808
|
getHeightCartographics,
|
33809
33809
|
getHeightRectangleScratch
|
33810
|
-
),
|
33811
|
-
|
33810
|
+
), we = ApproximateTerrainHeights.getMinimumMaximumHeights(
|
33811
|
+
Ie,
|
33812
33812
|
d
|
33813
|
-
),
|
33814
|
-
ne += Math.abs(
|
33813
|
+
), He = we.minimumTerrainHeight, We = we.maximumTerrainHeight;
|
33814
|
+
ne += Math.abs(He), ne += Math.abs(We), adjustHeights(
|
33815
33815
|
X,
|
33816
|
-
|
33817
|
-
|
33816
|
+
he,
|
33817
|
+
He,
|
33818
33818
|
We,
|
33819
33819
|
ie,
|
33820
33820
|
me
|
33821
33821
|
), adjustHeights(
|
33822
33822
|
G,
|
33823
33823
|
q,
|
33824
|
-
|
33824
|
+
He,
|
33825
33825
|
We,
|
33826
33826
|
ue,
|
33827
|
-
|
33827
|
+
be
|
33828
33828
|
);
|
33829
|
-
let
|
33829
|
+
let Ae = Cartesian3.multiplyByScalar(
|
33830
33830
|
j,
|
33831
33831
|
CesiumMath.EPSILON5,
|
33832
33832
|
normalNudgeScratch
|
33833
33833
|
);
|
33834
33834
|
Cartesian3.add(
|
33835
33835
|
ie,
|
33836
|
-
|
33836
|
+
Ae,
|
33837
33837
|
ie
|
33838
|
-
), Cartesian3.add(ue,
|
33838
|
+
), Cartesian3.add(ue, Ae, ue), Cartesian3.add(me, Ae, me), Cartesian3.add(be, Ae, be), nudgeXZ(ie, ue), nudgeXZ(me, be), Cartesian3.pack(ie, y, U), Cartesian3.pack(ue, y, U + 3), Cartesian3.pack(be, y, U + 6), Cartesian3.pack(me, y, U + 9), Ae = Cartesian3.multiplyByScalar(
|
33839
33839
|
j,
|
33840
33840
|
-2 * CesiumMath.EPSILON5,
|
33841
33841
|
normalNudgeScratch
|
33842
33842
|
), Cartesian3.add(
|
33843
33843
|
ie,
|
33844
|
-
|
33844
|
+
Ae,
|
33845
33845
|
ie
|
33846
|
-
), Cartesian3.add(ue,
|
33846
|
+
), Cartesian3.add(ue, Ae, ue), Cartesian3.add(me, Ae, me), Cartesian3.add(be, Ae, be), nudgeXZ(ie, ue), nudgeXZ(me, be), Cartesian3.pack(
|
33847
33847
|
ie,
|
33848
33848
|
y,
|
33849
33849
|
U + 12
|
@@ -33851,7 +33851,7 @@ function generateGeometryAttributes(e, t, n, i, r, o, s) {
|
|
33851
33851
|
ue,
|
33852
33852
|
y,
|
33853
33853
|
U + 15
|
33854
|
-
), Cartesian3.pack(
|
33854
|
+
), Cartesian3.pack(be, y, U + 18), Cartesian3.pack(me, y, U + 21), B += 2, l += 3, V += 16, U += 24, k += 32, H += Se, Q += Ge;
|
33855
33855
|
}
|
33856
33856
|
l = 0;
|
33857
33857
|
let K = 0;
|
@@ -39021,7 +39021,7 @@ DynamicBoxGeometryUpdater.prototype._setOptions = function(e, t, n) {
|
|
39021
39021
|
r.dimensions
|
39022
39022
|
), r.offsetAttribute = i !== HeightReference$1.NONE ? GeometryOffsetAttribute$1.ALL : void 0;
|
39023
39023
|
};
|
39024
|
-
/*! @license DOMPurify 3.
|
39024
|
+
/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */
|
39025
39025
|
const {
|
39026
39026
|
entries,
|
39027
39027
|
setPrototypeOf,
|
@@ -39049,7 +39049,7 @@ apply || (apply = function(t, n, i) {
|
|
39049
39049
|
construct || (construct = function(t, n) {
|
39050
39050
|
return new t(...n);
|
39051
39051
|
});
|
39052
|
-
const arrayForEach = unapply(Array.prototype.forEach), arrayPop = unapply(Array.prototype.pop), arrayPush = unapply(Array.prototype.push), stringToLowerCase = unapply(String.prototype.toLowerCase), stringToString = unapply(String.prototype.toString), stringMatch = unapply(String.prototype.match), stringReplace = unapply(String.prototype.replace), stringIndexOf = unapply(String.prototype.indexOf), stringTrim = unapply(String.prototype.trim), objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty), regExpTest = unapply(RegExp.prototype.test), typeErrorCreate = unconstruct(TypeError);
|
39052
|
+
const arrayForEach = unapply(Array.prototype.forEach), arrayLastIndexOf = unapply(Array.prototype.lastIndexOf), arrayPop = unapply(Array.prototype.pop), arrayPush = unapply(Array.prototype.push), arraySplice = unapply(Array.prototype.splice), stringToLowerCase = unapply(String.prototype.toLowerCase), stringToString = unapply(String.prototype.toString), stringMatch = unapply(String.prototype.match), stringReplace = unapply(String.prototype.replace), stringIndexOf = unapply(String.prototype.indexOf), stringTrim = unapply(String.prototype.trim), objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty), regExpTest = unapply(RegExp.prototype.test), typeErrorCreate = unconstruct(TypeError);
|
39053
39053
|
function unapply(e) {
|
39054
39054
|
return function(t) {
|
39055
39055
|
for (var n = arguments.length, i = new Array(n > 1 ? n - 1 : 0), r = 1; r < n; r++)
|
@@ -39105,7 +39105,7 @@ function lookupGetter(e, t) {
|
|
39105
39105
|
}
|
39106
39106
|
return n;
|
39107
39107
|
}
|
39108
|
-
const html$1 = freeze(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), svg$1 = freeze(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), svgFilters = freeze(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), svgDisallowed = freeze(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), mathMl$1 = freeze(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), mathMlDisallowed = freeze(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), text = freeze(["#text"]), html = freeze(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), svg = freeze(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), mathMl = freeze(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), xml = freeze(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm), TMPLIT_EXPR = seal(
|
39108
|
+
const html$1 = freeze(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), svg$1 = freeze(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), svgFilters = freeze(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), svgDisallowed = freeze(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), mathMl$1 = freeze(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), mathMlDisallowed = freeze(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), text = freeze(["#text"]), html = freeze(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), svg = freeze(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), mathMl = freeze(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), xml = freeze(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm), TMPLIT_EXPR = seal(/\$\{[\w\W]*/gm), DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/), ARIA_ATTR = seal(/^aria-[\-\w]+$/), IS_ALLOWED_URI = seal(
|
39109
39109
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
39110
39110
|
// eslint-disable-line no-useless-escape
|
39111
39111
|
), IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i), ATTR_WHITESPACE = seal(
|
@@ -39114,16 +39114,16 @@ const html$1 = freeze(["a", "abbr", "acronym", "address", "area", "article", "as
|
|
39114
39114
|
), DOCTYPE_NAME = seal(/^html$/i), CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
39115
39115
|
var EXPRESSIONS = /* @__PURE__ */ Object.freeze({
|
39116
39116
|
__proto__: null,
|
39117
|
-
MUSTACHE_EXPR,
|
39118
|
-
ERB_EXPR,
|
39119
|
-
TMPLIT_EXPR,
|
39120
|
-
DATA_ATTR,
|
39121
39117
|
ARIA_ATTR,
|
39122
|
-
IS_ALLOWED_URI,
|
39123
|
-
IS_SCRIPT_OR_DATA,
|
39124
39118
|
ATTR_WHITESPACE,
|
39119
|
+
CUSTOM_ELEMENT,
|
39120
|
+
DATA_ATTR,
|
39125
39121
|
DOCTYPE_NAME,
|
39126
|
-
|
39122
|
+
ERB_EXPR,
|
39123
|
+
IS_ALLOWED_URI,
|
39124
|
+
IS_SCRIPT_OR_DATA,
|
39125
|
+
MUSTACHE_EXPR,
|
39126
|
+
TMPLIT_EXPR
|
39127
39127
|
});
|
39128
39128
|
const NODE_TYPE = {
|
39129
39129
|
element: 1,
|
@@ -39162,11 +39162,23 @@ const NODE_TYPE = {
|
|
39162
39162
|
} catch {
|
39163
39163
|
return console.warn("TrustedTypes policy " + o + " could not be created."), null;
|
39164
39164
|
}
|
39165
|
+
}, _createHooksMap = function() {
|
39166
|
+
return {
|
39167
|
+
afterSanitizeAttributes: [],
|
39168
|
+
afterSanitizeElements: [],
|
39169
|
+
afterSanitizeShadowDOM: [],
|
39170
|
+
beforeSanitizeAttributes: [],
|
39171
|
+
beforeSanitizeElements: [],
|
39172
|
+
beforeSanitizeShadowDOM: [],
|
39173
|
+
uponSanitizeAttribute: [],
|
39174
|
+
uponSanitizeElement: [],
|
39175
|
+
uponSanitizeShadowNode: []
|
39176
|
+
};
|
39165
39177
|
};
|
39166
39178
|
function createDOMPurify() {
|
39167
39179
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
|
39168
|
-
const t = (
|
39169
|
-
if (t.version = "3.
|
39180
|
+
const t = (ye) => createDOMPurify(ye);
|
39181
|
+
if (t.version = "3.2.4", t.removed = [], !e || !e.document || e.document.nodeType !== NODE_TYPE.document || !e.Element)
|
39170
39182
|
return t.isSupported = !1, t;
|
39171
39183
|
let {
|
39172
39184
|
document: n
|
@@ -39183,8 +39195,8 @@ function createDOMPurify() {
|
|
39183
39195
|
trustedTypes: m
|
39184
39196
|
} = e, _ = l.prototype, y = lookupGetter(_, "cloneNode"), C = lookupGetter(_, "remove"), T = lookupGetter(_, "nextSibling"), x = lookupGetter(_, "childNodes"), b = lookupGetter(_, "parentNode");
|
39185
39197
|
if (typeof s == "function") {
|
39186
|
-
const
|
39187
|
-
|
39198
|
+
const ye = n.createElement("template");
|
39199
|
+
ye.content && ye.content.ownerDocument && (n = ye.content.ownerDocument);
|
39188
39200
|
}
|
39189
39201
|
let S, E = "";
|
39190
39202
|
const {
|
@@ -39195,7 +39207,7 @@ function createDOMPurify() {
|
|
39195
39207
|
} = n, {
|
39196
39208
|
importNode: M
|
39197
39209
|
} = i;
|
39198
|
-
let R =
|
39210
|
+
let R = _createHooksMap();
|
39199
39211
|
t.isSupported = typeof entries == "function" && typeof b == "function" && A && A.createHTMLDocument !== void 0;
|
39200
39212
|
const {
|
39201
39213
|
MUSTACHE_EXPR: L,
|
@@ -39232,40 +39244,28 @@ function createDOMPurify() {
|
|
39232
39244
|
enumerable: !0,
|
39233
39245
|
value: !1
|
39234
39246
|
}
|
39235
|
-
})), H = null, Q = null, ne = !0, K = !0, Z = !1, ee = !0, oe = !1, X = !0,
|
39247
|
+
})), H = null, Q = null, ne = !0, K = !0, Z = !1, ee = !0, oe = !1, X = !0, he = !1, de = !1, ce = !1, _e = !1, ge = !1, re = !1, Se = !0, pe = !1;
|
39236
39248
|
const Te = "user-content-";
|
39237
39249
|
let xe = !0, W = !1, j = {}, se = null;
|
39238
39250
|
const Pe = 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"]);
|
39239
39251
|
let le = null;
|
39240
39252
|
const De = addToSet({}, ["audio", "video", "img", "source", "image", "track"]);
|
39241
|
-
let
|
39242
|
-
const
|
39253
|
+
let Re = null;
|
39254
|
+
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", J = "http://www.w3.org/1999/xhtml";
|
39243
39255
|
let ae = J, te = !1, ie = null;
|
39244
|
-
const ue = addToSet({}, [
|
39245
|
-
let me =
|
39246
|
-
const
|
39247
|
-
let
|
39248
|
-
const
|
39256
|
+
const ue = addToSet({}, [Le, Ue, J], stringToString);
|
39257
|
+
let me = addToSet({}, ["mi", "mo", "mn", "ms", "mtext"]), be = addToSet({}, ["annotation-xml"]);
|
39258
|
+
const Ie = addToSet({}, ["title", "style", "font", "a", "script"]);
|
39259
|
+
let we = null;
|
39260
|
+
const He = ["application/xhtml+xml", "text/html"], We = "text/html";
|
39261
|
+
let Ae = null, Ee = null;
|
39262
|
+
const $e = n.createElement("form"), Fe = function(Y) {
|
39249
39263
|
return Y instanceof RegExp || Y instanceof Function;
|
39250
|
-
},
|
39264
|
+
}, Ke = function() {
|
39251
39265
|
let Y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
39252
|
-
if (!(
|
39253
|
-
if ((!Y || typeof Y != "object") && (Y = {}), Y = clone(Y),
|
39254
|
-
|
39255
|
-
clone(He),
|
39256
|
-
// eslint-disable-line indent
|
39257
|
-
Y.ADD_URI_SAFE_ATTR,
|
39258
|
-
// eslint-disable-line indent
|
39259
|
-
Ee
|
39260
|
-
// eslint-disable-line indent
|
39261
|
-
) : He, le = objectHasOwnProperty(Y, "ADD_DATA_URI_TAGS") ? addToSet(
|
39262
|
-
clone(De),
|
39263
|
-
// eslint-disable-line indent
|
39264
|
-
Y.ADD_DATA_URI_TAGS,
|
39265
|
-
// eslint-disable-line indent
|
39266
|
-
Ee
|
39267
|
-
// eslint-disable-line indent
|
39268
|
-
) : De, se = objectHasOwnProperty(Y, "FORBID_CONTENTS") ? addToSet({}, Y.FORBID_CONTENTS, Ee) : Pe, H = objectHasOwnProperty(Y, "FORBID_TAGS") ? addToSet({}, Y.FORBID_TAGS, Ee) : {}, Q = objectHasOwnProperty(Y, "FORBID_ATTR") ? addToSet({}, Y.FORBID_ATTR, Ee) : {}, j = objectHasOwnProperty(Y, "USE_PROFILES") ? Y.USE_PROFILES : !1, ne = Y.ALLOW_ARIA_ATTR !== !1, K = Y.ALLOW_DATA_ATTR !== !1, Z = Y.ALLOW_UNKNOWN_PROTOCOLS || !1, ee = Y.ALLOW_SELF_CLOSE_IN_ATTR !== !1, oe = Y.SAFE_FOR_TEMPLATES || !1, X = Y.SAFE_FOR_XML !== !1, fe = Y.WHOLE_DOCUMENT || !1, ye = Y.RETURN_DOM || !1, ge = Y.RETURN_DOM_FRAGMENT || !1, re = Y.RETURN_TRUSTED_TYPE || !1, ce = Y.FORCE_BODY || !1, be = Y.SANITIZE_DOM !== !1, pe = Y.SANITIZE_NAMED_PROPS || !1, xe = Y.KEEP_CONTENT !== !1, W = Y.IN_PLACE || !1, U = Y.ALLOWED_URI_REGEXP || IS_ALLOWED_URI, ae = Y.NAMESPACE || J, z = Y.CUSTOM_ELEMENT_HANDLING || {}, Y.CUSTOM_ELEMENT_HANDLING && Ne(Y.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (z.tagNameCheck = Y.CUSTOM_ELEMENT_HANDLING.tagNameCheck), Y.CUSTOM_ELEMENT_HANDLING && Ne(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 && (K = !1), ge && (ye = !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, Ee)), Y.ADD_ATTR && (G === q && (G = clone(G)), addToSet(G, Y.ADD_ATTR, Ee)), Y.ADD_URI_SAFE_ATTR && addToSet(Me, Y.ADD_URI_SAFE_ATTR, Ee), Y.FORBID_CONTENTS && (se === Pe && (se = clone(se)), addToSet(se, Y.FORBID_CONTENTS, Ee)), xe && (k["#text"] = !0), fe && addToSet(k, ["html", "head", "body"]), k.table && (addToSet(k, ["tbody"]), delete H.tbody), Y.TRUSTED_TYPES_POLICY) {
|
39266
|
+
if (!(Ee && Ee === Y)) {
|
39267
|
+
if ((!Y || typeof Y != "object") && (Y = {}), Y = clone(Y), we = // eslint-disable-next-line unicorn/prefer-includes
|
39268
|
+
He.indexOf(Y.PARSER_MEDIA_TYPE) === -1 ? We : Y.PARSER_MEDIA_TYPE, Ae = we === "application/xhtml+xml" ? stringToString : stringToLowerCase, k = objectHasOwnProperty(Y, "ALLOWED_TAGS") ? addToSet({}, Y.ALLOWED_TAGS, Ae) : $, G = objectHasOwnProperty(Y, "ALLOWED_ATTR") ? addToSet({}, Y.ALLOWED_ATTR, Ae) : q, ie = objectHasOwnProperty(Y, "ALLOWED_NAMESPACES") ? addToSet({}, Y.ALLOWED_NAMESPACES, stringToString) : ue, Re = objectHasOwnProperty(Y, "ADD_URI_SAFE_ATTR") ? addToSet(clone(Ge), Y.ADD_URI_SAFE_ATTR, Ae) : Ge, le = objectHasOwnProperty(Y, "ADD_DATA_URI_TAGS") ? addToSet(clone(De), Y.ADD_DATA_URI_TAGS, Ae) : De, se = objectHasOwnProperty(Y, "FORBID_CONTENTS") ? addToSet({}, Y.FORBID_CONTENTS, Ae) : Pe, H = objectHasOwnProperty(Y, "FORBID_TAGS") ? addToSet({}, Y.FORBID_TAGS, Ae) : {}, Q = objectHasOwnProperty(Y, "FORBID_ATTR") ? addToSet({}, Y.FORBID_ATTR, Ae) : {}, j = objectHasOwnProperty(Y, "USE_PROFILES") ? Y.USE_PROFILES : !1, ne = Y.ALLOW_ARIA_ATTR !== !1, K = Y.ALLOW_DATA_ATTR !== !1, Z = Y.ALLOW_UNKNOWN_PROTOCOLS || !1, ee = Y.ALLOW_SELF_CLOSE_IN_ATTR !== !1, oe = Y.SAFE_FOR_TEMPLATES || !1, X = Y.SAFE_FOR_XML !== !1, he = Y.WHOLE_DOCUMENT || !1, _e = Y.RETURN_DOM || !1, ge = Y.RETURN_DOM_FRAGMENT || !1, re = Y.RETURN_TRUSTED_TYPE || !1, ce = Y.FORCE_BODY || !1, Se = Y.SANITIZE_DOM !== !1, pe = Y.SANITIZE_NAMED_PROPS || !1, xe = Y.KEEP_CONTENT !== !1, W = Y.IN_PLACE || !1, U = Y.ALLOWED_URI_REGEXP || IS_ALLOWED_URI, ae = Y.NAMESPACE || J, me = Y.MATHML_TEXT_INTEGRATION_POINTS || me, be = Y.HTML_INTEGRATION_POINTS || be, 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 && (K = !1), ge && (_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, Ae)), Y.ADD_ATTR && (G === q && (G = clone(G)), addToSet(G, Y.ADD_ATTR, Ae)), Y.ADD_URI_SAFE_ATTR && addToSet(Re, Y.ADD_URI_SAFE_ATTR, Ae), Y.FORBID_CONTENTS && (se === Pe && (se = clone(se)), addToSet(se, Y.FORBID_CONTENTS, Ae)), xe && (k["#text"] = !0), he && addToSet(k, ["html", "head", "body"]), k.table && (addToSet(k, ["tbody"]), delete H.tbody), Y.TRUSTED_TYPES_POLICY) {
|
39269
39269
|
if (typeof Y.TRUSTED_TYPES_POLICY.createHTML != "function")
|
39270
39270
|
throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
39271
39271
|
if (typeof Y.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
@@ -39273,16 +39273,16 @@ function createDOMPurify() {
|
|
39273
39273
|
S = Y.TRUSTED_TYPES_POLICY, E = S.createHTML("");
|
39274
39274
|
} else
|
39275
39275
|
S === void 0 && (S = _createTrustedTypesPolicy(m, r)), S !== null && typeof E == "string" && (E = S.createHTML(""));
|
39276
|
-
freeze && freeze(Y),
|
39276
|
+
freeze && freeze(Y), Ee = Y;
|
39277
39277
|
}
|
39278
|
-
},
|
39279
|
-
let
|
39280
|
-
(!
|
39278
|
+
}, ve = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]), Ne = addToSet({}, [...mathMl$1, ...mathMlDisallowed]), rt = function(Y) {
|
39279
|
+
let fe = b(Y);
|
39280
|
+
(!fe || !fe.tagName) && (fe = {
|
39281
39281
|
namespaceURI: ae,
|
39282
39282
|
tagName: "template"
|
39283
39283
|
});
|
39284
|
-
const Ce = stringToLowerCase(Y.tagName),
|
39285
|
-
return ie[Y.namespaceURI] ? Y.namespaceURI ===
|
39284
|
+
const Ce = stringToLowerCase(Y.tagName), Oe = stringToLowerCase(fe.tagName);
|
39285
|
+
return ie[Y.namespaceURI] ? Y.namespaceURI === Ue ? fe.namespaceURI === J ? Ce === "svg" : fe.namespaceURI === Le ? Ce === "svg" && (Oe === "annotation-xml" || me[Oe]) : !!ve[Ce] : Y.namespaceURI === Le ? fe.namespaceURI === J ? Ce === "math" : fe.namespaceURI === Ue ? Ce === "math" && be[Oe] : !!Ne[Ce] : Y.namespaceURI === J ? fe.namespaceURI === Ue && !be[Oe] || fe.namespaceURI === Le && !me[Oe] ? !1 : !Ne[Ce] && (Ie[Ce] || !ve[Ce]) : !!(we === "application/xhtml+xml" && ie[Y.namespaceURI]) : !1;
|
39286
39286
|
}, Be = function(Y) {
|
39287
39287
|
arrayPush(t.removed, {
|
39288
39288
|
element: Y
|
@@ -39292,53 +39292,53 @@ function createDOMPurify() {
|
|
39292
39292
|
} catch {
|
39293
39293
|
C(Y);
|
39294
39294
|
}
|
39295
|
-
}, Ze = function(Y,
|
39295
|
+
}, Ze = function(Y, fe) {
|
39296
39296
|
try {
|
39297
39297
|
arrayPush(t.removed, {
|
39298
|
-
attribute:
|
39299
|
-
from:
|
39298
|
+
attribute: fe.getAttributeNode(Y),
|
39299
|
+
from: fe
|
39300
39300
|
});
|
39301
39301
|
} catch {
|
39302
39302
|
arrayPush(t.removed, {
|
39303
39303
|
attribute: null,
|
39304
|
-
from:
|
39304
|
+
from: fe
|
39305
39305
|
});
|
39306
39306
|
}
|
39307
|
-
if (
|
39308
|
-
if (
|
39307
|
+
if (fe.removeAttribute(Y), Y === "is")
|
39308
|
+
if (_e || ge)
|
39309
39309
|
try {
|
39310
|
-
Be(
|
39310
|
+
Be(fe);
|
39311
39311
|
} catch {
|
39312
39312
|
}
|
39313
39313
|
else
|
39314
39314
|
try {
|
39315
|
-
|
39315
|
+
fe.setAttribute(Y, "");
|
39316
39316
|
} catch {
|
39317
39317
|
}
|
39318
39318
|
}, je = function(Y) {
|
39319
|
-
let
|
39319
|
+
let fe = null, Ce = null;
|
39320
39320
|
if (ce)
|
39321
39321
|
Y = "<remove></remove>" + Y;
|
39322
39322
|
else {
|
39323
|
-
const
|
39324
|
-
Ce =
|
39323
|
+
const ze = stringMatch(Y, /^[\r\n\t ]+/);
|
39324
|
+
Ce = ze && ze[0];
|
39325
39325
|
}
|
39326
|
-
|
39327
|
-
const
|
39326
|
+
we === "application/xhtml+xml" && ae === J && (Y = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + Y + "</body></html>");
|
39327
|
+
const Oe = S ? S.createHTML(Y) : Y;
|
39328
39328
|
if (ae === J)
|
39329
39329
|
try {
|
39330
|
-
|
39330
|
+
fe = new p().parseFromString(Oe, we);
|
39331
39331
|
} catch {
|
39332
39332
|
}
|
39333
|
-
if (!
|
39334
|
-
|
39333
|
+
if (!fe || !fe.documentElement) {
|
39334
|
+
fe = A.createDocument(ae, "template", null);
|
39335
39335
|
try {
|
39336
|
-
|
39336
|
+
fe.documentElement.innerHTML = te ? E : Oe;
|
39337
39337
|
} catch {
|
39338
39338
|
}
|
39339
39339
|
}
|
39340
|
-
const qe =
|
39341
|
-
return Y && Ce && qe.insertBefore(n.createTextNode(Ce), qe.childNodes[0] || null), ae === J ? I.call(
|
39340
|
+
const qe = fe.body || fe.documentElement;
|
39341
|
+
return Y && Ce && qe.insertBefore(n.createTextNode(Ce), qe.childNodes[0] || null), ae === J ? I.call(fe, he ? "html" : "body")[0] : he ? fe.documentElement : qe;
|
39342
39342
|
}, at = function(Y) {
|
39343
39343
|
return D.call(
|
39344
39344
|
Y.ownerDocument || Y,
|
@@ -39347,61 +39347,63 @@ function createDOMPurify() {
|
|
39347
39347
|
d.SHOW_ELEMENT | d.SHOW_COMMENT | d.SHOW_TEXT | d.SHOW_PROCESSING_INSTRUCTION | d.SHOW_CDATA_SECTION,
|
39348
39348
|
null
|
39349
39349
|
);
|
39350
|
-
},
|
39350
|
+
}, ke = function(Y) {
|
39351
39351
|
return Y instanceof h && (typeof Y.nodeName != "string" || typeof Y.textContent != "string" || typeof Y.removeChild != "function" || !(Y.attributes instanceof f) || typeof Y.removeAttribute != "function" || typeof Y.setAttribute != "function" || typeof Y.namespaceURI != "string" || typeof Y.insertBefore != "function" || typeof Y.hasChildNodes != "function");
|
39352
|
-
},
|
39352
|
+
}, Qe = function(Y) {
|
39353
39353
|
return typeof c == "function" && Y instanceof c;
|
39354
|
-
}
|
39355
|
-
|
39356
|
-
|
39354
|
+
};
|
39355
|
+
function Ye(ye, Y, fe) {
|
39356
|
+
arrayForEach(ye, (Ce) => {
|
39357
|
+
Ce.call(t, Y, fe, Ee);
|
39357
39358
|
});
|
39358
|
-
}
|
39359
|
-
|
39360
|
-
|
39359
|
+
}
|
39360
|
+
const Ve = function(Y) {
|
39361
|
+
let fe = null;
|
39362
|
+
if (Ye(R.beforeSanitizeElements, Y, null), ke(Y))
|
39361
39363
|
return Be(Y), !0;
|
39362
|
-
const Ce =
|
39363
|
-
if (Ye(
|
39364
|
+
const Ce = Ae(Y.nodeName);
|
39365
|
+
if (Ye(R.uponSanitizeElement, Y, {
|
39364
39366
|
tagName: Ce,
|
39365
39367
|
allowedTags: k
|
39366
|
-
}), Y.hasChildNodes() && !
|
39368
|
+
}), Y.hasChildNodes() && !Qe(Y.firstElementChild) && regExpTest(/<[/\w]/g, Y.innerHTML) && regExpTest(/<[/\w]/g, Y.textContent) || Y.nodeType === NODE_TYPE.progressingInstruction || X && Y.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, Y.data))
|
39367
39369
|
return Be(Y), !0;
|
39368
39370
|
if (!k[Ce] || H[Ce]) {
|
39369
39371
|
if (!H[Ce] && tt(Ce) && (z.tagNameCheck instanceof RegExp && regExpTest(z.tagNameCheck, Ce) || z.tagNameCheck instanceof Function && z.tagNameCheck(Ce)))
|
39370
39372
|
return !1;
|
39371
39373
|
if (xe && !se[Ce]) {
|
39372
|
-
const
|
39373
|
-
if (qe &&
|
39374
|
-
const
|
39375
|
-
for (let
|
39376
|
-
const it = y(qe[
|
39377
|
-
it.__removalCount = (Y.__removalCount || 0) + 1,
|
39374
|
+
const Oe = b(Y) || Y.parentNode, qe = x(Y) || Y.childNodes;
|
39375
|
+
if (qe && Oe) {
|
39376
|
+
const ze = qe.length;
|
39377
|
+
for (let Je = ze - 1; Je >= 0; --Je) {
|
39378
|
+
const it = y(qe[Je], !0);
|
39379
|
+
it.__removalCount = (Y.__removalCount || 0) + 1, Oe.insertBefore(it, T(Y));
|
39378
39380
|
}
|
39379
39381
|
}
|
39380
39382
|
}
|
39381
39383
|
return Be(Y), !0;
|
39382
39384
|
}
|
39383
|
-
return Y instanceof l && !rt(Y) || (Ce === "noscript" || Ce === "noembed" || Ce === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, Y.innerHTML) ? (Be(Y), !0) : (oe && Y.nodeType === NODE_TYPE.text && (
|
39384
|
-
|
39385
|
-
}), Y.textContent !==
|
39385
|
+
return Y instanceof l && !rt(Y) || (Ce === "noscript" || Ce === "noembed" || Ce === "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) => {
|
39386
|
+
fe = stringReplace(fe, Oe, " ");
|
39387
|
+
}), Y.textContent !== fe && (arrayPush(t.removed, {
|
39386
39388
|
element: Y.cloneNode()
|
39387
|
-
}), Y.textContent =
|
39388
|
-
}, et = function(Y,
|
39389
|
-
if (
|
39389
|
+
}), Y.textContent = fe)), Ye(R.afterSanitizeElements, Y, null), !1);
|
39390
|
+
}, et = function(Y, fe, Ce) {
|
39391
|
+
if (Se && (fe === "id" || fe === "name") && (Ce in n || Ce in $e))
|
39390
39392
|
return !1;
|
39391
|
-
if (!(K && !Q[
|
39392
|
-
if (!(ne && regExpTest(N,
|
39393
|
-
if (!G[
|
39393
|
+
if (!(K && !Q[fe] && regExpTest(O, fe))) {
|
39394
|
+
if (!(ne && regExpTest(N, fe))) {
|
39395
|
+
if (!G[fe] || Q[fe]) {
|
39394
39396
|
if (
|
39395
39397
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
39396
39398
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
39397
39399
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
39398
|
-
!(tt(Y) && (z.tagNameCheck instanceof RegExp && regExpTest(z.tagNameCheck, Y) || z.tagNameCheck instanceof Function && z.tagNameCheck(Y)) && (z.attributeNameCheck instanceof RegExp && regExpTest(z.attributeNameCheck,
|
39400
|
+
!(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
|
39399
39401
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
39400
|
-
|
39402
|
+
fe === "is" && z.allowCustomizedBuiltInElements && (z.tagNameCheck instanceof RegExp && regExpTest(z.tagNameCheck, Ce) || z.tagNameCheck instanceof Function && z.tagNameCheck(Ce)))
|
39401
39403
|
) return !1;
|
39402
|
-
} else if (!
|
39404
|
+
} else if (!Re[fe]) {
|
39403
39405
|
if (!regExpTest(U, stringReplace(Ce, B, ""))) {
|
39404
|
-
if (!((
|
39406
|
+
if (!((fe === "src" || fe === "xlink:href" || fe === "href") && Y !== "script" && stringIndexOf(Ce, "data:") === 0 && le[Y])) {
|
39405
39407
|
if (!(Z && !regExpTest(F, stringReplace(Ce, B, "")))) {
|
39406
39408
|
if (Ce)
|
39407
39409
|
return !1;
|
@@ -39415,42 +39417,43 @@ function createDOMPurify() {
|
|
39415
39417
|
}, tt = function(Y) {
|
39416
39418
|
return Y !== "annotation-xml" && stringMatch(Y, V);
|
39417
39419
|
}, nt = function(Y) {
|
39418
|
-
Ye(
|
39420
|
+
Ye(R.beforeSanitizeAttributes, Y, null);
|
39419
39421
|
const {
|
39420
|
-
attributes:
|
39422
|
+
attributes: fe
|
39421
39423
|
} = Y;
|
39422
|
-
if (!
|
39424
|
+
if (!fe || ke(Y))
|
39423
39425
|
return;
|
39424
39426
|
const Ce = {
|
39425
39427
|
attrName: "",
|
39426
39428
|
attrValue: "",
|
39427
39429
|
keepAttr: !0,
|
39428
|
-
allowedAttributes: G
|
39430
|
+
allowedAttributes: G,
|
39431
|
+
forceKeepAttr: void 0
|
39429
39432
|
};
|
39430
|
-
let
|
39431
|
-
for (;
|
39432
|
-
const qe =
|
39433
|
-
name:
|
39434
|
-
namespaceURI:
|
39433
|
+
let Oe = fe.length;
|
39434
|
+
for (; Oe--; ) {
|
39435
|
+
const qe = fe[Oe], {
|
39436
|
+
name: ze,
|
39437
|
+
namespaceURI: Je,
|
39435
39438
|
value: it
|
39436
|
-
} = qe, ot =
|
39437
|
-
let Xe =
|
39438
|
-
if (Ce.attrName = ot, Ce.attrValue = Xe, Ce.keepAttr = !0, Ce.forceKeepAttr = void 0, Ye(
|
39439
|
-
Ze(
|
39439
|
+
} = qe, ot = Ae(ze);
|
39440
|
+
let Xe = ze === "value" ? it : stringTrim(it);
|
39441
|
+
if (Ce.attrName = ot, Ce.attrValue = Xe, Ce.keepAttr = !0, Ce.forceKeepAttr = void 0, Ye(R.uponSanitizeAttribute, Y, Ce), Xe = Ce.attrValue, pe && (ot === "id" || ot === "name") && (Ze(ze, Y), Xe = Te + Xe), X && regExpTest(/((--!?|])>)|<\/(style|title)/i, Xe)) {
|
39442
|
+
Ze(ze, Y);
|
39440
39443
|
continue;
|
39441
39444
|
}
|
39442
|
-
if (Ce.forceKeepAttr || (Ze(
|
39445
|
+
if (Ce.forceKeepAttr || (Ze(ze, Y), !Ce.keepAttr))
|
39443
39446
|
continue;
|
39444
39447
|
if (!ee && regExpTest(/\/>/i, Xe)) {
|
39445
|
-
Ze(
|
39448
|
+
Ze(ze, Y);
|
39446
39449
|
continue;
|
39447
39450
|
}
|
39448
39451
|
oe && arrayForEach([L, g, w], (ct) => {
|
39449
39452
|
Xe = stringReplace(Xe, ct, " ");
|
39450
39453
|
});
|
39451
|
-
const st =
|
39454
|
+
const st = Ae(Y.nodeName);
|
39452
39455
|
if (et(st, ot, Xe)) {
|
39453
|
-
if (
|
39456
|
+
if (S && typeof m == "object" && typeof m.getAttributeType == "function" && !Je)
|
39454
39457
|
switch (m.getAttributeType(st, ot)) {
|
39455
39458
|
case "TrustedHTML": {
|
39456
39459
|
Xe = S.createHTML(Xe);
|
@@ -39462,81 +39465,84 @@ function createDOMPurify() {
|
|
39462
39465
|
}
|
39463
39466
|
}
|
39464
39467
|
try {
|
39465
|
-
|
39468
|
+
Je ? Y.setAttributeNS(Je, ze, Xe) : Y.setAttribute(ze, Xe), ke(Y) ? Be(Y) : arrayPop(t.removed);
|
39466
39469
|
} catch {
|
39467
39470
|
}
|
39468
39471
|
}
|
39469
39472
|
}
|
39470
|
-
Ye(
|
39471
|
-
},
|
39472
|
-
let
|
39473
|
+
Ye(R.afterSanitizeAttributes, Y, null);
|
39474
|
+
}, Me = function ye(Y) {
|
39475
|
+
let fe = null;
|
39473
39476
|
const Ce = at(Y);
|
39474
|
-
for (Ye(
|
39475
|
-
Ye(
|
39476
|
-
Ye(
|
39477
|
+
for (Ye(R.beforeSanitizeShadowDOM, Y, null); fe = Ce.nextNode(); )
|
39478
|
+
Ye(R.uponSanitizeShadowNode, fe, null), Ve(fe), nt(fe), fe.content instanceof o && ye(fe.content);
|
39479
|
+
Ye(R.afterSanitizeShadowDOM, Y, null);
|
39477
39480
|
};
|
39478
|
-
return t.sanitize = function(
|
39479
|
-
let Y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
|
39480
|
-
if (te = !
|
39481
|
-
if (typeof
|
39482
|
-
if (
|
39481
|
+
return t.sanitize = function(ye) {
|
39482
|
+
let Y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, fe = null, Ce = null, Oe = null, qe = null;
|
39483
|
+
if (te = !ye, te && (ye = "<!-->"), typeof ye != "string" && !Qe(ye))
|
39484
|
+
if (typeof ye.toString == "function") {
|
39485
|
+
if (ye = ye.toString(), typeof ye != "string")
|
39483
39486
|
throw typeErrorCreate("dirty is not a string, aborting");
|
39484
39487
|
} else
|
39485
39488
|
throw typeErrorCreate("toString is not a function");
|
39486
39489
|
if (!t.isSupported)
|
39487
|
-
return
|
39488
|
-
if (de ||
|
39489
|
-
if (
|
39490
|
-
const it =
|
39490
|
+
return ye;
|
39491
|
+
if (de || Ke(Y), t.removed = [], typeof ye == "string" && (W = !1), W) {
|
39492
|
+
if (ye.nodeName) {
|
39493
|
+
const it = Ae(ye.nodeName);
|
39491
39494
|
if (!k[it] || H[it])
|
39492
39495
|
throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
|
39493
39496
|
}
|
39494
|
-
} else if (
|
39495
|
-
|
39497
|
+
} else if (ye instanceof c)
|
39498
|
+
fe = je("<!---->"), Ce = fe.ownerDocument.importNode(ye, !0), Ce.nodeType === NODE_TYPE.element && Ce.nodeName === "BODY" || Ce.nodeName === "HTML" ? fe = Ce : fe.appendChild(Ce);
|
39496
39499
|
else {
|
39497
|
-
if (!
|
39498
|
-
|
39499
|
-
return S && re ? S.createHTML(
|
39500
|
-
if (
|
39501
|
-
return
|
39502
|
-
}
|
39503
|
-
|
39504
|
-
const
|
39505
|
-
for (;
|
39506
|
-
|
39500
|
+
if (!_e && !oe && !he && // eslint-disable-next-line unicorn/prefer-includes
|
39501
|
+
ye.indexOf("<") === -1)
|
39502
|
+
return S && re ? S.createHTML(ye) : ye;
|
39503
|
+
if (fe = je(ye), !fe)
|
39504
|
+
return _e ? null : re ? E : "";
|
39505
|
+
}
|
39506
|
+
fe && ce && Be(fe.firstChild);
|
39507
|
+
const ze = at(W ? ye : fe);
|
39508
|
+
for (; Oe = ze.nextNode(); )
|
39509
|
+
Ve(Oe), nt(Oe), Oe.content instanceof o && Me(Oe.content);
|
39507
39510
|
if (W)
|
39508
|
-
return
|
39509
|
-
if (
|
39511
|
+
return ye;
|
39512
|
+
if (_e) {
|
39510
39513
|
if (ge)
|
39511
|
-
for (qe = P.call(
|
39512
|
-
qe.appendChild(
|
39514
|
+
for (qe = P.call(fe.ownerDocument); fe.firstChild; )
|
39515
|
+
qe.appendChild(fe.firstChild);
|
39513
39516
|
else
|
39514
|
-
qe =
|
39517
|
+
qe = fe;
|
39515
39518
|
return (G.shadowroot || G.shadowrootmode) && (qe = M.call(i, qe, !0)), qe;
|
39516
39519
|
}
|
39517
|
-
let
|
39518
|
-
return
|
39519
|
-
` +
|
39520
|
-
|
39521
|
-
}), S && re ? S.createHTML(
|
39520
|
+
let Je = he ? fe.outerHTML : fe.innerHTML;
|
39521
|
+
return he && k["!doctype"] && fe.ownerDocument && fe.ownerDocument.doctype && fe.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, fe.ownerDocument.doctype.name) && (Je = "<!DOCTYPE " + fe.ownerDocument.doctype.name + `>
|
39522
|
+
` + Je), oe && arrayForEach([L, g, w], (it) => {
|
39523
|
+
Je = stringReplace(Je, it, " ");
|
39524
|
+
}), S && re ? S.createHTML(Je) : Je;
|
39522
39525
|
}, t.setConfig = function() {
|
39523
|
-
let
|
39524
|
-
|
39526
|
+
let ye = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
39527
|
+
Ke(ye), de = !0;
|
39525
39528
|
}, t.clearConfig = function() {
|
39526
|
-
|
39527
|
-
}, t.isValidAttribute = function(
|
39528
|
-
|
39529
|
-
const Ce =
|
39530
|
-
return et(Ce,
|
39531
|
-
}, t.addHook = function(
|
39532
|
-
typeof Y == "function" &&
|
39533
|
-
}, t.removeHook = function(
|
39534
|
-
if (
|
39535
|
-
|
39536
|
-
|
39537
|
-
|
39529
|
+
Ee = null, de = !1;
|
39530
|
+
}, t.isValidAttribute = function(ye, Y, fe) {
|
39531
|
+
Ee || Ke({});
|
39532
|
+
const Ce = Ae(ye), Oe = Ae(Y);
|
39533
|
+
return et(Ce, Oe, fe);
|
39534
|
+
}, t.addHook = function(ye, Y) {
|
39535
|
+
typeof Y == "function" && arrayPush(R[ye], Y);
|
39536
|
+
}, t.removeHook = function(ye, Y) {
|
39537
|
+
if (Y !== void 0) {
|
39538
|
+
const fe = arrayLastIndexOf(R[ye], Y);
|
39539
|
+
return fe === -1 ? void 0 : arraySplice(R[ye], fe, 1)[0];
|
39540
|
+
}
|
39541
|
+
return arrayPop(R[ye]);
|
39542
|
+
}, t.removeHooks = function(ye) {
|
39543
|
+
R[ye] = [];
|
39538
39544
|
}, t.removeAllHooks = function() {
|
39539
|
-
R =
|
39545
|
+
R = _createHooksMap();
|
39540
39546
|
}, t;
|
39541
39547
|
}
|
39542
39548
|
var purify = createDOMPurify();
|
@@ -100011,20 +100017,20 @@ EllipsoidGeometry.createGeometry = function(e) {
|
|
100011
100017
|
let ne = 0, K = 0, Z = 0, ee = 0;
|
100012
100018
|
const oe = D / 2;
|
100013
100019
|
let X;
|
100014
|
-
const
|
100020
|
+
const he = Ellipsoid.fromCartesian3(t), de = Ellipsoid.fromCartesian3(n);
|
100015
100021
|
if (c.st || c.normal || c.tangent || c.bitangent) {
|
100016
100022
|
for (f = 0; f < D; f++) {
|
100017
|
-
X = I[f] ? de :
|
100018
|
-
const ce = Cartesian3.fromArray(P, f * 3, scratchPosition$7),
|
100019
|
-
if (M[f] && Cartesian3.negate(
|
100020
|
-
const ge = Cartesian2.negate(
|
100021
|
-
F[ne++] = Math.atan2(ge.y, ge.x) / CesiumMath.TWO_PI + 0.5, F[ne++] = Math.asin(
|
100023
|
+
X = I[f] ? de : he;
|
100024
|
+
const ce = Cartesian3.fromArray(P, f * 3, scratchPosition$7), _e = X.geodeticSurfaceNormal(ce, scratchNormal$4);
|
100025
|
+
if (M[f] && Cartesian3.negate(_e, _e), c.st) {
|
100026
|
+
const ge = Cartesian2.negate(_e, scratchNormalST);
|
100027
|
+
F[ne++] = Math.atan2(ge.y, ge.x) / CesiumMath.TWO_PI + 0.5, F[ne++] = Math.asin(_e.z) / Math.PI + 0.5;
|
100022
100028
|
}
|
100023
|
-
if (c.normal && (w[K++] =
|
100029
|
+
if (c.normal && (w[K++] = _e.x, w[K++] = _e.y, w[K++] = _e.z), c.tangent || c.bitangent) {
|
100024
100030
|
const ge = scratchTangent$2;
|
100025
|
-
let re = 0,
|
100026
|
-
if (I[f] && (re = oe), !S && f >= re && f < re + C * 2 ?
|
100027
|
-
const pe = Cartesian3.cross(
|
100031
|
+
let re = 0, Se;
|
100032
|
+
if (I[f] && (re = oe), !S && f >= re && f < re + C * 2 ? Se = Cartesian3.UNIT_X : Se = Cartesian3.UNIT_Z, Cartesian3.cross(Se, _e, ge), Cartesian3.normalize(ge, ge), c.tangent && (O[Z++] = ge.x, O[Z++] = ge.y, O[Z++] = ge.z), c.bitangent) {
|
100033
|
+
const pe = Cartesian3.cross(_e, ge, scratchBitangent$2);
|
100028
100034
|
Cartesian3.normalize(pe, pe), N[ee++] = pe.x, N[ee++] = pe.y, N[ee++] = pe.z;
|
100029
100035
|
}
|
100030
100036
|
}
|
@@ -100048,7 +100054,7 @@ EllipsoidGeometry.createGeometry = function(e) {
|
|
100048
100054
|
}));
|
100049
100055
|
}
|
100050
100056
|
if (defined(e._offsetAttribute)) {
|
100051
|
-
const ce = P.length,
|
100057
|
+
const ce = P.length, _e = e._offsetAttribute === GeometryOffsetAttribute$1.NONE ? 0 : 1, ge = new Uint8Array(ce / 3).fill(_e);
|
100052
100058
|
Q.applyOffset = new GeometryAttribute({
|
100053
100059
|
componentDatatype: ComponentDatatype$1.UNSIGNED_BYTE,
|
100054
100060
|
componentsPerAttribute: 1,
|
@@ -100059,7 +100065,7 @@ EllipsoidGeometry.createGeometry = function(e) {
|
|
100059
100065
|
attributes: Q,
|
100060
100066
|
indices: g,
|
100061
100067
|
primitiveType: PrimitiveType$1.TRIANGLES,
|
100062
|
-
boundingSphere: BoundingSphere.fromEllipsoid(
|
100068
|
+
boundingSphere: BoundingSphere.fromEllipsoid(he),
|
100063
100069
|
offsetAttribute: e._offsetAttribute
|
100064
100070
|
});
|
100065
100071
|
};
|
@@ -102063,11 +102069,11 @@ function constructExtrudedRectangle(e, t) {
|
|
102063
102069
|
const P = defined(i);
|
102064
102070
|
if (P) {
|
102065
102071
|
const re = m / 3 * 2;
|
102066
|
-
let
|
102067
|
-
i === GeometryOffsetAttribute$1.TOP ?
|
102072
|
+
let Se = new Uint8Array(re);
|
102073
|
+
i === GeometryOffsetAttribute$1.TOP ? Se = Se.fill(1, 0, re / 2) : (D = i === GeometryOffsetAttribute$1.NONE ? 0 : 1, Se = Se.fill(D)), h.attributes.applyOffset = new GeometryAttribute({
|
102068
102074
|
componentDatatype: ComponentDatatype$1.UNSIGNED_BYTE,
|
102069
102075
|
componentsPerAttribute: 1,
|
102070
|
-
values:
|
102076
|
+
values: Se
|
102071
102077
|
});
|
102072
102078
|
}
|
102073
102079
|
if (r.tangent) {
|
@@ -102202,13 +102208,13 @@ function constructExtrudedRectangle(e, t) {
|
|
102202
102208
|
U,
|
102203
102209
|
F * 6
|
102204
102210
|
);
|
102205
|
-
let
|
102211
|
+
let he, de, ce, _e;
|
102206
102212
|
m = k.length / 3;
|
102207
102213
|
let ge = 0;
|
102208
102214
|
for (f = 0; f < m - 1; f += 2) {
|
102209
|
-
|
102210
|
-
const re = Cartesian3.fromArray(k,
|
102211
|
-
Cartesian3.equalsEpsilon(re,
|
102215
|
+
he = f, _e = (he + 2) % m;
|
102216
|
+
const re = Cartesian3.fromArray(k, he * 3, v1Scratch), Se = Cartesian3.fromArray(k, _e * 3, v2Scratch);
|
102217
|
+
Cartesian3.equalsEpsilon(re, Se, CesiumMath.EPSILON10) || (de = (he + 1) % m, ce = (de + 2) % m, X[ge++] = he, X[ge++] = de, X[ge++] = _e, X[ge++] = _e, X[ge++] = de, X[ge++] = ce);
|
102212
102218
|
}
|
102213
102219
|
return oe.indices = X, oe = GeometryPipeline.combineInstances([
|
102214
102220
|
new GeometryInstance({
|
@@ -108597,7 +108603,7 @@ function parseMatches(e, t) {
|
|
108597
108603
|
oe(_, p);
|
108598
108604
|
break;
|
108599
108605
|
case 32:
|
108600
|
-
|
108606
|
+
he(_, p);
|
108601
108607
|
break;
|
108602
108608
|
case 33:
|
108603
108609
|
de(_, p);
|
@@ -108606,7 +108612,7 @@ function parseMatches(e, t) {
|
|
108606
108612
|
ce(_, p);
|
108607
108613
|
break;
|
108608
108614
|
case 35:
|
108609
|
-
|
108615
|
+
_e(_, p);
|
108610
108616
|
break;
|
108611
108617
|
case 36:
|
108612
108618
|
ge(_, p);
|
@@ -108618,7 +108624,7 @@ function parseMatches(e, t) {
|
|
108618
108624
|
re(_, p);
|
108619
108625
|
break;
|
108620
108626
|
case 39:
|
108621
|
-
|
108627
|
+
Se(_, p);
|
108622
108628
|
break;
|
108623
108629
|
case 40:
|
108624
108630
|
pe(_, p);
|
@@ -108798,7 +108804,7 @@ function parseMatches(e, t) {
|
|
108798
108804
|
function X(W, j) {
|
108799
108805
|
digitRe.test(j) ? W.state = 38 : (remove$1(f, W), C(j));
|
108800
108806
|
}
|
108801
|
-
function
|
108807
|
+
function he(W, j) {
|
108802
108808
|
digitRe.test(j) ? W.state = 33 : remove$1(f, W), C(j);
|
108803
108809
|
}
|
108804
108810
|
function de(W, j) {
|
@@ -108807,7 +108813,7 @@ function parseMatches(e, t) {
|
|
108807
108813
|
function ce(W, j) {
|
108808
108814
|
digitRe.test(j) ? W.state = 35 : remove$1(f, W);
|
108809
108815
|
}
|
108810
|
-
function
|
108816
|
+
function _e(W, j) {
|
108811
108817
|
j === ")" ? W.state = 36 : remove$1(f, W);
|
108812
108818
|
}
|
108813
108819
|
function ge(W, j) {
|
@@ -108820,7 +108826,7 @@ function parseMatches(e, t) {
|
|
108820
108826
|
/* SchemeChar */
|
108821
108827
|
))));
|
108822
108828
|
}
|
108823
|
-
function
|
108829
|
+
function Se(W, j) {
|
108824
108830
|
digitRe.test(j) ? W.state = 38 : j === "(" ? W.state = 32 : (xe(W), C(j));
|
108825
108831
|
}
|
108826
108832
|
function pe(W, j) {
|
@@ -108888,12 +108894,12 @@ function parseMatches(e, t) {
|
|
108888
108894
|
}));
|
108889
108895
|
else if (W.type === "phone") {
|
108890
108896
|
if (se = se.replace(/ +$/g, ""), isValidPhoneNumber(se)) {
|
108891
|
-
var
|
108897
|
+
var Re = se.replace(/[^0-9,;#]/g, "");
|
108892
108898
|
l.push(new PhoneMatch({
|
108893
108899
|
tagBuilder: n,
|
108894
108900
|
matchedText: se,
|
108895
108901
|
offset: j,
|
108896
|
-
number:
|
108902
|
+
number: Re,
|
108897
108903
|
plusSign: se.charAt(0) === "+"
|
108898
108904
|
}));
|
108899
108905
|
}
|
@@ -110344,10 +110350,10 @@ function Deflate() {
|
|
110344
110350
|
te[ae] = ie;
|
110345
110351
|
};
|
110346
110352
|
function Z(J, ae) {
|
110347
|
-
let te = -1, ie, ue = J[0 * 2 + 1], me = 0,
|
110348
|
-
ue === 0 && (
|
110349
|
-
for (let
|
110350
|
-
ie = ue, ue = J[(
|
110353
|
+
let te = -1, ie, ue = J[0 * 2 + 1], me = 0, be = 7, Ie = 4;
|
110354
|
+
ue === 0 && (be = 138, Ie = 3), J[(ae + 1) * 2 + 1] = 65535;
|
110355
|
+
for (let we = 0; we <= ae; we++)
|
110356
|
+
ie = ue, ue = J[(we + 1) * 2 + 1], !(++me < be && ie == ue) && (me < Ie ? F[ie * 2] += me : ie !== 0 ? (ie != te && F[ie * 2]++, F[REP_3_6 * 2]++) : me <= 10 ? F[REPZ_3_10 * 2]++ : F[REPZ_11_138 * 2]++, me = 0, te = ie, ue === 0 ? (be = 138, Ie = 3) : ie == ue ? (be = 6, Ie = 3) : (be = 7, Ie = 4));
|
110351
110357
|
}
|
110352
110358
|
function ee() {
|
110353
110359
|
let J;
|
@@ -110361,7 +110367,7 @@ function Deflate() {
|
|
110361
110367
|
function X(J) {
|
110362
110368
|
oe(J & 255), oe(J >>> 8 & 255);
|
110363
110369
|
}
|
110364
|
-
function
|
110370
|
+
function he(J) {
|
110365
110371
|
oe(J >> 8 & 255), oe(J & 255 & 255);
|
110366
110372
|
}
|
110367
110373
|
function de(J, ae) {
|
@@ -110373,28 +110379,28 @@ function Deflate() {
|
|
110373
110379
|
const te = J * 2;
|
110374
110380
|
de(ae[te] & 65535, ae[te + 1] & 65535);
|
110375
110381
|
}
|
110376
|
-
function
|
110377
|
-
let te, ie = -1, ue, me = J[0 * 2 + 1],
|
110378
|
-
for (me === 0 && (
|
110379
|
-
if (ue = me, me = J[(te + 1) * 2 + 1], !(++
|
110380
|
-
if (
|
110382
|
+
function _e(J, ae) {
|
110383
|
+
let te, ie = -1, ue, me = J[0 * 2 + 1], be = 0, Ie = 7, we = 4;
|
110384
|
+
for (me === 0 && (Ie = 138, we = 3), te = 0; te <= ae; te++)
|
110385
|
+
if (ue = me, me = J[(te + 1) * 2 + 1], !(++be < Ie && ue == me)) {
|
110386
|
+
if (be < we)
|
110381
110387
|
do
|
110382
110388
|
ce(ue, F);
|
110383
|
-
while (--
|
110384
|
-
else ue !== 0 ? (ue != ie && (ce(ue, F),
|
110385
|
-
|
110389
|
+
while (--be !== 0);
|
110390
|
+
else ue !== 0 ? (ue != ie && (ce(ue, F), be--), ce(REP_3_6, F), de(be - 3, 2)) : be <= 10 ? (ce(REPZ_3_10, F), de(be - 3, 3)) : (ce(REPZ_11_138, F), de(be - 11, 7));
|
110391
|
+
be = 0, ie = ue, me === 0 ? (Ie = 138, we = 3) : ue == me ? (Ie = 6, we = 3) : (Ie = 7, we = 4);
|
110386
110392
|
}
|
110387
110393
|
}
|
110388
110394
|
function ge(J, ae, te) {
|
110389
110395
|
let ie;
|
110390
110396
|
for (de(J - 257, 5), de(ae - 1, 5), de(te - 4, 4), ie = 0; ie < te; ie++)
|
110391
110397
|
de(F[Tree.bl_order[ie] * 2 + 1], 3);
|
110392
|
-
|
110398
|
+
_e(O, J - 1), _e(N, ae - 1);
|
110393
110399
|
}
|
110394
110400
|
function re() {
|
110395
110401
|
H == 16 ? (X(z), z = 0, H = 0) : H >= 8 && (oe(z & 255), z >>>= 8, H -= 8);
|
110396
110402
|
}
|
110397
|
-
function
|
110403
|
+
function Se() {
|
110398
110404
|
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;
|
110399
110405
|
}
|
110400
110406
|
function pe(J, ae) {
|
@@ -110408,10 +110414,10 @@ function Deflate() {
|
|
110408
110414
|
return $ == k - 1;
|
110409
110415
|
}
|
110410
110416
|
function Te(J, ae) {
|
110411
|
-
let te, ie, ue = 0, me,
|
110417
|
+
let te, ie, ue = 0, me, be;
|
110412
110418
|
if ($ !== 0)
|
110413
110419
|
do
|
110414
|
-
te = e.dist_buf[ue], ie = e.lc_buf[ue], ue++, te === 0 ? ce(ie, J) : (me = Tree._length_code[ie], ce(me + LITERALS + 1, J),
|
110420
|
+
te = e.dist_buf[ue], ie = e.lc_buf[ue], ue++, te === 0 ? ce(ie, J) : (me = Tree._length_code[ie], ce(me + LITERALS + 1, J), be = Tree.extra_lbits[me], be !== 0 && (ie -= Tree.base_length[me], de(ie, be)), te--, me = Tree.d_code(te), ce(me, ae), be = Tree.extra_dbits[me], be !== 0 && (te -= Tree.base_dist[me], de(te, be)));
|
110415
110421
|
while (ue < $);
|
110416
110422
|
ce(END_BLOCK, J), q = J[END_BLOCK * 2 + 1];
|
110417
110423
|
}
|
@@ -110468,29 +110474,29 @@ function Deflate() {
|
|
110468
110474
|
}
|
110469
110475
|
return Pe(J == Z_FINISH$1), t.avail_out === 0 ? J == Z_FINISH$1 ? FinishStarted : NeedMore : J == Z_FINISH$1 ? FinishDone : BlockDone;
|
110470
110476
|
}
|
110471
|
-
function
|
110477
|
+
function Re(J) {
|
110472
110478
|
let ae = I, te = E, ie, ue, me = P;
|
110473
|
-
const
|
110474
|
-
let
|
110475
|
-
const
|
110476
|
-
let We = l[te + me - 1],
|
110477
|
-
P >= g && (ae >>= 2),
|
110479
|
+
const be = E > o - MIN_LOOKAHEAD ? E - (o - MIN_LOOKAHEAD) : 0;
|
110480
|
+
let Ie = w;
|
110481
|
+
const we = c, He = E + MAX_MATCH;
|
110482
|
+
let We = l[te + me - 1], Ae = l[te + me];
|
110483
|
+
P >= g && (ae >>= 2), Ie > D && (Ie = D);
|
110478
110484
|
do
|
110479
|
-
if (ie = J, !(l[ie + me] !=
|
110485
|
+
if (ie = J, !(l[ie + me] != Ae || l[ie + me - 1] != We || l[ie] != l[te] || l[++ie] != l[te + 1])) {
|
110480
110486
|
te += 2, ie++;
|
110481
110487
|
do
|
110482
110488
|
;
|
110483
|
-
while (l[++te] == l[++ie] && l[++te] == l[++ie] && l[++te] == l[++ie] && l[++te] == l[++ie] && l[++te] == l[++ie] && l[++te] == l[++ie] && l[++te] == l[++ie] && l[++te] == l[++ie] && te <
|
110484
|
-
if (ue = MAX_MATCH - (
|
110485
|
-
if (A = J, me = ue, ue >=
|
110489
|
+
while (l[++te] == l[++ie] && l[++te] == l[++ie] && l[++te] == l[++ie] && l[++te] == l[++ie] && l[++te] == l[++ie] && l[++te] == l[++ie] && l[++te] == l[++ie] && l[++te] == l[++ie] && te < He);
|
110490
|
+
if (ue = MAX_MATCH - (He - te), te = He - MAX_MATCH, ue > me) {
|
110491
|
+
if (A = J, me = ue, ue >= Ie)
|
110486
110492
|
break;
|
110487
|
-
We = l[te + me - 1],
|
110493
|
+
We = l[te + me - 1], Ae = l[te + me];
|
110488
110494
|
}
|
110489
110495
|
}
|
110490
|
-
while ((J = f[J &
|
110496
|
+
while ((J = f[J & we] & 65535) > be && --ae !== 0);
|
110491
110497
|
return me <= D ? me : D;
|
110492
110498
|
}
|
110493
|
-
function
|
110499
|
+
function Ge(J) {
|
110494
110500
|
let ae = 0, te;
|
110495
110501
|
for (; ; ) {
|
110496
110502
|
if (D < MIN_LOOKAHEAD) {
|
@@ -110499,7 +110505,7 @@ function Deflate() {
|
|
110499
110505
|
if (D === 0)
|
110500
110506
|
break;
|
110501
110507
|
}
|
110502
|
-
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 =
|
110508
|
+
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)
|
110503
110509
|
if (te = pe(E - A, x - MIN_MATCH), D -= x, x <= M && D >= MIN_MATCH) {
|
110504
110510
|
x--;
|
110505
110511
|
do
|
@@ -110515,7 +110521,7 @@ function Deflate() {
|
|
110515
110521
|
}
|
110516
110522
|
return Pe(J == Z_FINISH$1), t.avail_out === 0 ? J == Z_FINISH$1 ? FinishStarted : NeedMore : J == Z_FINISH$1 ? FinishDone : BlockDone;
|
110517
110523
|
}
|
110518
|
-
function
|
110524
|
+
function Le(J) {
|
110519
110525
|
let ae = 0, te, ie;
|
110520
110526
|
for (; ; ) {
|
110521
110527
|
if (D < MIN_LOOKAHEAD) {
|
@@ -110524,7 +110530,7 @@ function Deflate() {
|
|
110524
110530
|
if (D === 0)
|
110525
110531
|
break;
|
110526
110532
|
}
|
110527
|
-
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 =
|
110533
|
+
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) {
|
110528
110534
|
ie = E + D - MIN_MATCH, te = pe(E - 1 - b, P - MIN_MATCH), D -= P - 1, P -= 2;
|
110529
110535
|
do
|
110530
110536
|
++E <= ie && (p = (p << C ^ l[E + (MIN_MATCH - 1)] & 255) & y, ae = h[p] & 65535, f[E & c] = h[p], h[p] = E);
|
@@ -110539,11 +110545,11 @@ function Deflate() {
|
|
110539
110545
|
}
|
110540
110546
|
return S !== 0 && (te = pe(0, l[E - 1] & 255), S = 0), Pe(J == Z_FINISH$1), t.avail_out === 0 ? J == Z_FINISH$1 ? FinishStarted : NeedMore : J == Z_FINISH$1 ? FinishDone : BlockDone;
|
110541
110547
|
}
|
110542
|
-
function
|
110548
|
+
function Ue(J) {
|
110543
110549
|
return J.total_in = J.total_out = 0, J.msg = null, e.pending = 0, e.pending_out = 0, n = BUSY_STATE, r = Z_NO_FLUSH$1, K(), Q(), Z_OK$1;
|
110544
110550
|
}
|
110545
110551
|
e.deflateInit = function(J, ae, te, ie, ue, me) {
|
110546
|
-
return ie || (ie = Z_DEFLATED$1), ue || (ue = DEF_MEM_LEVEL), me || (me = Z_DEFAULT_STRATEGY), J.msg = null, ae == Z_DEFAULT_COMPRESSION && (ae = 6), ue < 1 || ue > MAX_MEM_LEVEL || ie != Z_DEFLATED$1 || te < 9 || te > 15 || ae < 0 || ae > 9 || me < 0 || me > Z_HUFFMAN_ONLY ? Z_STREAM_ERROR$1 : (J.dstate = e, s = te, o = 1 << s, c = o - 1, _ = ue + 7, m = 1 << _, y = m - 1, C = Math.floor((_ + MIN_MATCH - 1) / MIN_MATCH), l = new Uint8Array(o * 2), f = [], h = [], k = 1 << ue + 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 = me,
|
110552
|
+
return ie || (ie = Z_DEFLATED$1), ue || (ue = DEF_MEM_LEVEL), me || (me = Z_DEFAULT_STRATEGY), J.msg = null, ae == Z_DEFAULT_COMPRESSION && (ae = 6), ue < 1 || ue > MAX_MEM_LEVEL || ie != Z_DEFLATED$1 || te < 9 || te > 15 || ae < 0 || ae > 9 || me < 0 || me > Z_HUFFMAN_ONLY ? Z_STREAM_ERROR$1 : (J.dstate = e, s = te, o = 1 << s, c = o - 1, _ = ue + 7, m = 1 << _, y = m - 1, C = Math.floor((_ + MIN_MATCH - 1) / MIN_MATCH), l = new Uint8Array(o * 2), f = [], h = [], k = 1 << ue + 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 = me, Ue(J));
|
110547
110553
|
}, e.deflateEnd = function() {
|
110548
110554
|
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);
|
110549
110555
|
}, e.deflateParams = function(J, ae, te) {
|
@@ -110559,14 +110565,14 @@ function Deflate() {
|
|
110559
110565
|
p = (p << C ^ l[ue + (MIN_MATCH - 1)] & 255) & y, f[ue & c] = h[p], h[p] = ue;
|
110560
110566
|
return Z_OK$1;
|
110561
110567
|
}, e.deflate = function(J, ae) {
|
110562
|
-
let te, ie, ue, me,
|
110568
|
+
let te, ie, ue, me, be;
|
110563
110569
|
if (ae > Z_FINISH$1 || ae < 0)
|
110564
110570
|
return Z_STREAM_ERROR$1;
|
110565
110571
|
if (!J.next_out || !J.next_in && J.avail_in !== 0 || n == FINISH_STATE && ae != Z_FINISH$1)
|
110566
110572
|
return J.msg = z_errmsg[Z_NEED_DICT$1 - Z_STREAM_ERROR$1], Z_STREAM_ERROR$1;
|
110567
110573
|
if (J.avail_out === 0)
|
110568
110574
|
return J.msg = z_errmsg[Z_NEED_DICT$1 - Z_BUF_ERROR$1], Z_BUF_ERROR$1;
|
110569
|
-
if (t = J, me = r, r = ae, n == INIT_STATE && (ie = Z_DEFLATED$1 + (s - 8 << 4) << 8, ue = (R - 1 & 255) >> 1, ue > 3 && (ue = 3), ie |= ue << 6, E !== 0 && (ie |= PRESET_DICT$1), ie += 31 - ie % 31, n = BUSY_STATE,
|
110575
|
+
if (t = J, me = r, r = ae, n == INIT_STATE && (ie = Z_DEFLATED$1 + (s - 8 << 4) << 8, ue = (R - 1 & 255) >> 1, ue > 3 && (ue = 3), ie |= ue << 6, E !== 0 && (ie |= PRESET_DICT$1), ie += 31 - ie % 31, n = BUSY_STATE, he(ie)), e.pending !== 0) {
|
110570
110576
|
if (t.flush_pending(), t.avail_out === 0)
|
110571
110577
|
return r = -1, Z_OK$1;
|
110572
110578
|
} else if (t.avail_in === 0 && ae <= me && ae != Z_FINISH$1)
|
@@ -110574,22 +110580,22 @@ function Deflate() {
|
|
110574
110580
|
if (n == FINISH_STATE && t.avail_in !== 0)
|
110575
110581
|
return J.msg = z_errmsg[Z_NEED_DICT$1 - Z_BUF_ERROR$1], Z_BUF_ERROR$1;
|
110576
110582
|
if (t.avail_in !== 0 || D !== 0 || ae != Z_NO_FLUSH$1 && n != FINISH_STATE) {
|
110577
|
-
switch (
|
110583
|
+
switch (be = -1, config_table[R].func) {
|
110578
110584
|
case STORED$1:
|
110579
|
-
|
110585
|
+
be = De(ae);
|
110580
110586
|
break;
|
110581
110587
|
case FAST:
|
110582
|
-
|
110588
|
+
be = Ge(ae);
|
110583
110589
|
break;
|
110584
110590
|
case SLOW:
|
110585
|
-
|
110591
|
+
be = Le(ae);
|
110586
110592
|
break;
|
110587
110593
|
}
|
110588
|
-
if ((
|
110594
|
+
if ((be == FinishStarted || be == FinishDone) && (n = FINISH_STATE), be == NeedMore || be == FinishStarted)
|
110589
110595
|
return t.avail_out === 0 && (r = -1), Z_OK$1;
|
110590
|
-
if (
|
110596
|
+
if (be == BlockDone) {
|
110591
110597
|
if (ae == Z_PARTIAL_FLUSH)
|
110592
|
-
|
110598
|
+
Se();
|
110593
110599
|
else if (j(0, 0, !1), ae == Z_FULL_FLUSH)
|
110594
110600
|
for (te = 0; te < m; te++)
|
110595
110601
|
h[te] = 0;
|
@@ -114499,7 +114505,7 @@ class ZipReader {
|
|
114499
114505
|
directory: q || K.endsWith(DIRECTORY_SIGNATURE)
|
114500
114506
|
}), T = Math.max(z, T), await readCommonFooter(R, R, S, x + 6);
|
114501
114507
|
const ee = new Entry(R);
|
114502
|
-
ee.getData = (X,
|
114508
|
+
ee.getData = (X, he) => R.getData(X, ee, he), x = U;
|
114503
114509
|
const { onprogress: oe } = t;
|
114504
114510
|
if (oe)
|
114505
114511
|
try {
|
@@ -114839,12 +114845,12 @@ async function addFile(e, t, n, i) {
|
|
114839
114845
|
const { extraField: O } = i;
|
114840
114846
|
if (O) {
|
114841
114847
|
let oe = 0, X = 0;
|
114842
|
-
O.forEach((
|
114848
|
+
O.forEach((he) => oe += 4 + getLength(he)), w = new Uint8Array(oe), O.forEach((he, de) => {
|
114843
114849
|
if (de > MAX_16_BITS)
|
114844
114850
|
throw new Error(ERR_INVALID_EXTRAFIELD_TYPE);
|
114845
|
-
if (getLength(
|
114851
|
+
if (getLength(he) > MAX_16_BITS)
|
114846
114852
|
throw new Error(ERR_INVALID_EXTRAFIELD_DATA);
|
114847
|
-
arraySet(w, new Uint16Array([de]), X), arraySet(w, new Uint16Array([getLength(
|
114853
|
+
arraySet(w, new Uint16Array([de]), X), arraySet(w, new Uint16Array([getLength(he)]), X + 2), arraySet(w, he, X + 4), X += 4 + getLength(he);
|
114848
114854
|
});
|
114849
114855
|
}
|
114850
114856
|
let N = 0, F = 0, B = 0;
|
@@ -115005,7 +115011,7 @@ async function createFileEntry(e, t, { diskNumberStart: n, lock: i }, r, o, s) {
|
|
115005
115011
|
msDosCompatible: ee,
|
115006
115012
|
internalFileAttribute: oe,
|
115007
115013
|
externalFileAttribute: X,
|
115008
|
-
useCompressionStream:
|
115014
|
+
useCompressionStream: he
|
115009
115015
|
} = s, de = {
|
115010
115016
|
lock: i,
|
115011
115017
|
versionMadeBy: k,
|
@@ -115025,7 +115031,7 @@ async function createFileEntry(e, t, { diskNumberStart: n, lock: i }, r, o, s) {
|
|
115025
115031
|
externalFileAttribute: X,
|
115026
115032
|
diskNumberStart: n
|
115027
115033
|
};
|
115028
|
-
let ce = 0,
|
115034
|
+
let ce = 0, _e = 0, ge;
|
115029
115035
|
const { writable: re } = t;
|
115030
115036
|
if (e) {
|
115031
115037
|
e.chunkSize = getChunkSize(o), await writeData(re, f);
|
@@ -115042,30 +115048,30 @@ async function createFileEntry(e, t, { diskNumberStart: n, lock: i }, r, o, s) {
|
|
115042
115048
|
compressed: y,
|
115043
115049
|
encrypted: _,
|
115044
115050
|
useWebWorkers: q,
|
115045
|
-
useCompressionStream:
|
115051
|
+
useCompressionStream: he,
|
115046
115052
|
transferStreams: !1
|
115047
115053
|
},
|
115048
115054
|
config: o,
|
115049
115055
|
streamOptions: { signal: ne, size: Te, onstart: z, onprogress: H, onend: Q }
|
115050
115056
|
}, W = await runWorker({ readable: pe, writable: re }, xe);
|
115051
|
-
|
115057
|
+
_e = W.inputSize, ce = W.outputSize, ge = W.signature, re.size += _e;
|
115052
115058
|
} else
|
115053
115059
|
await writeData(re, f);
|
115054
|
-
let
|
115060
|
+
let Se;
|
115055
115061
|
if (g) {
|
115056
115062
|
let pe = 4;
|
115057
|
-
w && (pe += 8), O && (pe += 8), N && (pe += 8), F && (pe += 4),
|
115063
|
+
w && (pe += 8), O && (pe += 8), N && (pe += 8), F && (pe += 4), Se = new Uint8Array(pe);
|
115058
115064
|
} else
|
115059
|
-
|
115065
|
+
Se = new Uint8Array();
|
115060
115066
|
return setEntryInfo({
|
115061
115067
|
signature: ge,
|
115062
|
-
rawExtraFieldZip64:
|
115068
|
+
rawExtraFieldZip64: Se,
|
115063
115069
|
compressedSize: ce,
|
115064
|
-
uncompressedSize:
|
115070
|
+
uncompressedSize: _e,
|
115065
115071
|
headerInfo: c,
|
115066
115072
|
dataDescriptorInfo: l
|
115067
115073
|
}, s), V && await writeData(re, A), Object.assign(de, {
|
115068
|
-
uncompressedSize:
|
115074
|
+
uncompressedSize: _e,
|
115069
115075
|
compressedSize: ce,
|
115070
115076
|
lastModDate: p,
|
115071
115077
|
rawLastModDate: m,
|
@@ -115077,7 +115083,7 @@ async function createFileEntry(e, t, { diskNumberStart: n, lock: i }, r, o, s) {
|
|
115077
115083
|
version: C,
|
115078
115084
|
headerArray: h,
|
115079
115085
|
signature: ge,
|
115080
|
-
rawExtraFieldZip64:
|
115086
|
+
rawExtraFieldZip64: Se,
|
115081
115087
|
extraFieldExtendedTimestampFlag: b,
|
115082
115088
|
zip64UncompressedSize: w,
|
115083
115089
|
zip64CompressedSize: O,
|
@@ -122198,12 +122204,12 @@ HeightmapTessellator.computeVertices = function(e) {
|
|
122198
122204
|
P && (oe = WebMercatorProjection.geodeticLatitudeToMercatorAngle(
|
122199
122205
|
b
|
122200
122206
|
), X = 1 / (WebMercatorProjection.geodeticLatitudeToMercatorAngle(E) - oe));
|
122201
|
-
const
|
122202
|
-
|
122207
|
+
const he = minimumScratch;
|
122208
|
+
he.x = Number.POSITIVE_INFINITY, he.y = Number.POSITIVE_INFINITY, he.z = Number.POSITIVE_INFINITY;
|
122203
122209
|
const de = maximumScratch;
|
122204
122210
|
de.x = Number.NEGATIVE_INFINITY, de.y = Number.NEGATIVE_INFINITY, de.z = Number.NEGATIVE_INFINITY;
|
122205
122211
|
let ce = Number.POSITIVE_INFINITY;
|
122206
|
-
const
|
122212
|
+
const _e = d * f, ge = h > 0 ? d * 2 + f * 2 : 0, re = _e + ge, Se = new Array(re), pe = new Array(re), Te = new Array(re), xe = P ? new Array(re) : [], W = L ? new Array(re) : [];
|
122207
122213
|
let j = 0, se = f, Pe = 0, le = d;
|
122208
122214
|
p && (--j, ++se, --Pe, ++le);
|
122209
122215
|
const De = 1e-5;
|
@@ -122212,65 +122218,65 @@ HeightmapTessellator.computeVertices = function(e) {
|
|
122212
122218
|
ue < 0 && (ue = 0), ue >= f && (ue = f - 1);
|
122213
122219
|
let me = C.north - G * ue;
|
122214
122220
|
m ? me = c(me) : me = s - 2 * r(o(-me * y));
|
122215
|
-
let
|
122216
|
-
|
122217
|
-
const
|
122218
|
-
h > 0 && (
|
122219
|
-
const
|
122220
|
-
let
|
122221
|
-
P && (
|
122222
|
-
for (let
|
122223
|
-
let Fe =
|
122221
|
+
let be = (me - b) / (E - b);
|
122222
|
+
be = CesiumMath.clamp(be, 0, 1);
|
122223
|
+
const Ie = ie === j, we = ie === se - 1;
|
122224
|
+
h > 0 && (Ie ? me += De * k : we && (me -= De * k));
|
122225
|
+
const He = t(me), We = n(me), Ae = Q * We;
|
122226
|
+
let Ee;
|
122227
|
+
P && (Ee = (WebMercatorProjection.geodeticLatitudeToMercatorAngle(me) - oe) * X);
|
122228
|
+
for (let $e = Pe; $e < le; ++$e) {
|
122229
|
+
let Fe = $e;
|
122224
122230
|
Fe < 0 && (Fe = 0), Fe >= d && (Fe = d - 1);
|
122225
|
-
const
|
122231
|
+
const Ke = ue * (d * F) + Fe * F;
|
122226
122232
|
let ve;
|
122227
122233
|
if (N === 1)
|
122228
|
-
ve = l[
|
122234
|
+
ve = l[Ke];
|
122229
122235
|
else {
|
122230
122236
|
ve = 0;
|
122231
|
-
let
|
122237
|
+
let Me;
|
122232
122238
|
if (V)
|
122233
|
-
for (
|
122234
|
-
ve = ve * B + l[
|
122239
|
+
for (Me = 0; Me < N; ++Me)
|
122240
|
+
ve = ve * B + l[Ke + Me];
|
122235
122241
|
else
|
122236
|
-
for (
|
122237
|
-
ve = ve * B + l[
|
122242
|
+
for (Me = N - 1; Me >= 0; --Me)
|
122243
|
+
ve = ve * B + l[Ke + Me];
|
122238
122244
|
}
|
122239
122245
|
ve = ve * w + O, K = Math.max(K, ve), ne = Math.min(ne, ve);
|
122240
|
-
let
|
122241
|
-
m ?
|
122242
|
-
let rt = (
|
122246
|
+
let Ne = C.west + $ * Fe;
|
122247
|
+
m ? Ne = c(Ne) : Ne = Ne * y;
|
122248
|
+
let rt = (Ne - x) / (S - x);
|
122243
122249
|
rt = CesiumMath.clamp(rt, 0, 1);
|
122244
122250
|
let Be = ue * d + Fe;
|
122245
122251
|
if (h > 0) {
|
122246
|
-
const
|
122247
|
-
if ((
|
122252
|
+
const Me = $e === Pe, ye = $e === le - 1, Y = Ie || we || Me || ye;
|
122253
|
+
if ((Ie || we) && (Me || ye))
|
122248
122254
|
continue;
|
122249
|
-
Y && (ve -= h,
|
122255
|
+
Y && (ve -= h, Me ? (Be = _e + (f - ue - 1), Ne -= De * U) : we ? Be = _e + f + (d - Fe - 1) : ye ? (Be = _e + f + d + ue, Ne += De * U) : Ie && (Be = _e + f + d + f + Fe));
|
122250
122256
|
}
|
122251
|
-
const Ze =
|
122252
|
-
nt.x =
|
122257
|
+
const Ze = He * t(Ne), je = He * n(Ne), at = z * Ze, ke = H * je, Ye = 1 / i(at * Ze + ke * je + Ae * We), Ve = at * Ye, et = ke * Ye, tt = Ae * Ye, nt = new Cartesian3();
|
122258
|
+
nt.x = Ve + Ze * ve, nt.y = et + je * ve, nt.z = tt + We * ve, Matrix4.multiplyByPoint(ee, nt, cartesian3Scratch), Cartesian3.minimumByComponent(cartesian3Scratch, he, he), Cartesian3.maximumByComponent(cartesian3Scratch, de, de), ce = Math.min(ce, ve), Se[Be] = nt, Te[Be] = new Cartesian2(rt, be), pe[Be] = ve, P && (xe[Be] = Ee), L && (W[Be] = _.geodeticSurfaceNormal(
|
122253
122259
|
nt
|
122254
122260
|
));
|
122255
122261
|
}
|
122256
122262
|
}
|
122257
|
-
const
|
122258
|
-
let
|
122259
|
-
defined(T) && (
|
122263
|
+
const Re = BoundingSphere.fromPoints(Se);
|
122264
|
+
let Ge;
|
122265
|
+
defined(T) && (Ge = OrientedBoundingBox.fromRectangle(
|
122260
122266
|
T,
|
122261
122267
|
ne,
|
122262
122268
|
K,
|
122263
122269
|
_
|
122264
122270
|
));
|
122265
|
-
let
|
122266
|
-
D && (
|
122271
|
+
let Le;
|
122272
|
+
D && (Le = new EllipsoidalOccluder(_).computeHorizonCullingPointPossiblyUnderEllipsoid(
|
122267
122273
|
A,
|
122268
|
-
|
122274
|
+
Se,
|
122269
122275
|
ne
|
122270
122276
|
));
|
122271
|
-
const
|
122277
|
+
const Ue = new AxisAlignedBoundingBox(he, de, A), J = new TerrainEncoding(
|
122272
122278
|
A,
|
122273
|
-
|
122279
|
+
Ue,
|
122274
122280
|
ce,
|
122275
122281
|
K,
|
122276
122282
|
Z,
|
@@ -122285,7 +122291,7 @@ HeightmapTessellator.computeVertices = function(e) {
|
|
122285
122291
|
te = J.encode(
|
122286
122292
|
ae,
|
122287
122293
|
te,
|
122288
|
-
|
122294
|
+
Se[ie],
|
122289
122295
|
Te[ie],
|
122290
122296
|
pe[ie],
|
122291
122297
|
void 0,
|
@@ -122297,9 +122303,9 @@ HeightmapTessellator.computeVertices = function(e) {
|
|
122297
122303
|
maximumHeight: K,
|
122298
122304
|
minimumHeight: ne,
|
122299
122305
|
encoding: J,
|
122300
|
-
boundingSphere3D:
|
122301
|
-
orientedBoundingBox:
|
122302
|
-
occludeePointInScaledSpace:
|
122306
|
+
boundingSphere3D: Re,
|
122307
|
+
orientedBoundingBox: Ge,
|
122308
|
+
occludeePointInScaledSpace: Le
|
122303
122309
|
};
|
122304
122310
|
};
|
122305
122311
|
function TerrainData() {
|
@@ -123126,8 +123132,8 @@ GlobeSurfaceShaderSet.prototype.getShaderProgram = function(e) {
|
|
123126
123132
|
let X = n.surfaceShader;
|
123127
123133
|
if (defined(X) && X.numberOfDayTextures === i && X.flags === Z && X.material === this.material && X.clippingShaderState === ee && X.clippingPolygonShaderState === oe)
|
123128
123134
|
return X.shaderProgram;
|
123129
|
-
let
|
123130
|
-
if (defined(
|
123135
|
+
let he = this._shadersByTexturesFlags[i];
|
123136
|
+
if (defined(he) || (he = this._shadersByTexturesFlags[i] = []), X = he[Z], !defined(X) || X.material !== this.material || X.clippingShaderState !== ee || X.clippingPolygonShaderState !== oe) {
|
123131
123137
|
const de = this.baseVertexShaderSource.clone(), ce = this.baseFragmentShaderSource.clone();
|
123132
123138
|
ee !== 0 && ce.sources.unshift(
|
123133
123139
|
getClippingFunction(P, t.context)
|
@@ -123140,19 +123146,19 @@ GlobeSurfaceShaderSet.prototype.getShaderProgram = function(e) {
|
|
123140
123146
|
), de.defines.push(
|
123141
123147
|
`CLIPPING_POLYGON_REGIONS_LENGTH ${M.extentsCount}`
|
123142
123148
|
)), g && ce.defines.push("COLOR_CORRECT"), w && ce.defines.push("HIGHLIGHT_FILL_TILE"), N && de.defines.push("GEODETIC_SURFACE_NORMALS"), F && de.defines.push("EXAGGERATION");
|
123143
|
-
let
|
123149
|
+
let _e = ` vec4 computeDayColor(vec4 initialColor, vec3 textureCoordinates, float nightBlend)
|
123144
123150
|
{
|
123145
123151
|
vec4 color = initialColor;
|
123146
123152
|
`;
|
123147
|
-
L && (
|
123153
|
+
L && (_e += ` vec4 cutoutAndColorResult;
|
123148
123154
|
bool texelUnclipped;
|
123149
123155
|
`);
|
123150
123156
|
for (let re = 0; re < i; ++re)
|
123151
|
-
L ?
|
123157
|
+
L ? _e += ` cutoutAndColorResult = u_dayTextureCutoutRectangles[${re}];
|
123152
123158
|
texelUnclipped = v_textureCoordinates.x < cutoutAndColorResult.x || cutoutAndColorResult.z < v_textureCoordinates.x || v_textureCoordinates.y < cutoutAndColorResult.y || cutoutAndColorResult.w < v_textureCoordinates.y;
|
123153
123159
|
cutoutAndColorResult = sampleAndBlend(
|
123154
|
-
` :
|
123155
|
-
`,
|
123160
|
+
` : _e += ` color = sampleAndBlend(
|
123161
|
+
`, _e += ` color,
|
123156
123162
|
u_dayTextures[${re}],
|
123157
123163
|
u_dayTextureUseWebMercatorT[${re}] ? textureCoordinates.xz : textureCoordinates.xy,
|
123158
123164
|
u_dayTextureTexCoordsRectangle[${re}],
|
@@ -123168,17 +123174,17 @@ ${r ? `u_dayTextureBrightness[${re}]` : "0.0"},
|
|
123168
123174
|
${h ? `u_dayTextureSplit[${re}]` : "0.0"},
|
123169
123175
|
${O ? `u_colorsToAlpha[${re}]` : "vec4(0.0)"},
|
123170
123176
|
nightBlend );
|
123171
|
-
`, L && (
|
123177
|
+
`, L && (_e += ` color = czm_branchFreeTernary(texelUnclipped, cutoutAndColorResult, color);
|
123172
123178
|
`);
|
123173
|
-
|
123174
|
-
}`, ce.sources.push(
|
123179
|
+
_e += ` return color;
|
123180
|
+
}`, ce.sources.push(_e), de.sources.push(getPositionMode(K)), de.sources.push(get2DYPositionFraction(E));
|
123175
123181
|
const ge = ShaderProgram.fromCache({
|
123176
123182
|
context: t.context,
|
123177
123183
|
vertexShaderSource: de,
|
123178
123184
|
fragmentShaderSource: ce,
|
123179
123185
|
attributeLocations: G.getAttributeLocations()
|
123180
123186
|
});
|
123181
|
-
X =
|
123187
|
+
X = he[Z] = new GlobeSurfaceShader(
|
123182
123188
|
i,
|
123183
123189
|
Z,
|
123184
123190
|
this.material,
|
@@ -129032,18 +129038,18 @@ function createFillMesh(e, t, n, i) {
|
|
129032
129038
|
Z,
|
129033
129039
|
ee
|
129034
129040
|
), ++$;
|
129035
|
-
const
|
129041
|
+
const he = $, de = he < 256 ? 1 : 2, ce = (he - 1) * 3, _e = ce * de, ge = (k.length - he * U) * Float32Array.BYTES_PER_ELEMENT;
|
129036
129042
|
let re;
|
129037
|
-
if (ge >=
|
129038
|
-
const j =
|
129039
|
-
re =
|
129043
|
+
if (ge >= _e) {
|
129044
|
+
const j = he * U * Float32Array.BYTES_PER_ELEMENT;
|
129045
|
+
re = he < 256 ? new Uint8Array(k.buffer, j, ce) : new Uint16Array(k.buffer, j, ce);
|
129040
129046
|
} else
|
129041
|
-
re =
|
129042
|
-
k = new Float32Array(k.buffer, 0,
|
129043
|
-
let
|
129044
|
-
for (A = 0; A <
|
129045
|
-
re[
|
129046
|
-
re[
|
129047
|
+
re = he < 256 ? new Uint8Array(ce) : new Uint16Array(ce);
|
129048
|
+
k = new Float32Array(k.buffer, 0, he * U);
|
129049
|
+
let Se = 0;
|
129050
|
+
for (A = 0; A < he - 2; ++A)
|
129051
|
+
re[Se++] = X, re[Se++] = A, re[Se++] = A + 1;
|
129052
|
+
re[Se++] = X, re[Se++] = A, re[Se++] = 0;
|
129047
129053
|
const pe = [];
|
129048
129054
|
for (A = q; A >= G; --A)
|
129049
129055
|
pe.push(A);
|
@@ -129061,7 +129067,7 @@ function createFillMesh(e, t, n, i) {
|
|
129061
129067
|
k,
|
129062
129068
|
re,
|
129063
129069
|
ce,
|
129064
|
-
|
129070
|
+
he,
|
129065
129071
|
b,
|
129066
129072
|
S,
|
129067
129073
|
BoundingSphere.fromOrientedBoundingBox(Q),
|
@@ -130581,8 +130587,8 @@ function addDrawCommandsForTile(e, t, n) {
|
|
130581
130587
|
northeastScratch
|
130582
130588
|
);
|
130583
130589
|
if (Q.x = se.x, Q.y = se.y, Q.z = Pe.x, Q.w = Pe.y, n.mode !== SceneMode$1.MORPHING && (U = rtcScratch, U.x = 0, U.y = (Q.z + Q.x) * 0.5, U.z = (Q.w + Q.y) * 0.5, Q.x -= U.y, Q.y -= U.z, Q.z -= U.y, Q.w -= U.z), n.mode === SceneMode$1.SCENE2D && k.quantization === TerrainQuantization$1.BITS12) {
|
130584
|
-
const le = 1 / (Math.pow(2, 12) - 1) * 0.5, De = (Q.z - Q.x) * le,
|
130585
|
-
Q.x -= De, Q.y -=
|
130590
|
+
const le = 1 / (Math.pow(2, 12) - 1) * 0.5, De = (Q.z - Q.x) * le, Re = (Q.w - Q.y) * le;
|
130591
|
+
Q.x -= De, Q.y -= Re, Q.z += De, Q.w += Re;
|
130586
130592
|
}
|
130587
130593
|
j instanceof WebMercatorProjection && (ne = t.rectangle.south, K = t.rectangle.north, Z = WebMercatorProjection.geodeticLatitudeToMercatorAngle(
|
130588
130594
|
ne
|
@@ -130590,9 +130596,9 @@ function addDrawCommandsForTile(e, t, n) {
|
|
130590
130596
|
}
|
130591
130597
|
const X = surfaceShaderSetOptionsScratch;
|
130592
130598
|
X.frameState = n, X.surfaceTile = i, X.hasWaterMask = S, X.showReflectiveOcean = E, X.showOceanWaves = D, X.enableLighting = e.enableLighting, X.dynamicAtmosphereLighting = e.dynamicAtmosphereLighting, X.dynamicAtmosphereLightingFromSun = e.dynamicAtmosphereLightingFromSun, X.showGroundAtmosphere = R, X.atmosphereLightIntensity = e.atmosphereLightIntensity, X.atmosphereRayleighCoefficient = e.atmosphereRayleighCoefficient, X.atmosphereMieCoefficient = e.atmosphereMieCoefficient, X.atmosphereRayleighScaleHeight = e.atmosphereRayleighScaleHeight, X.atmosphereMieScaleHeight = e.atmosphereMieScaleHeight, X.atmosphereMieAnisotropy = e.atmosphereMieAnisotropy, X.perFragmentGroundAtmosphere = B, X.hasVertexNormals = I, X.useWebMercatorProjection = oe, X.clippedByBoundaries = i.clippedByBoundaries, X.hasGeodeticSurfaceNormals = H, X.hasExaggeration = z;
|
130593
|
-
const
|
130599
|
+
const he = i.imagery;
|
130594
130600
|
let de = 0;
|
130595
|
-
const ce =
|
130601
|
+
const ce = he.length, _e = e.showSkirts && !d && !h, ge = e.backFaceCulling && !d && !h, re = ge ? e._renderState : e._disableCullingRenderState, Se = ge ? e._blendRenderState : e._disableCullingBlendRenderState;
|
130596
130602
|
let pe = re, Te = e._firstPassInitialColor;
|
130597
130603
|
const xe = n.context;
|
130598
130604
|
if (defined(e._debug.boundingSphereTile) || debugDestroyPrimitive(), e._materialUniformMap !== e.materialUniformMap) {
|
@@ -130607,12 +130613,12 @@ function addDrawCommandsForTile(e, t, n) {
|
|
130607
130613
|
do {
|
130608
130614
|
let j = 0, se, Pe;
|
130609
130615
|
if (e._drawCommands.length <= e._usedDrawCommands ? (se = new DrawCommand(), se.owner = t, se.cull = !1, se.boundingVolume = new BoundingSphere(), se.orientedBoundingBox = void 0, Pe = createTileUniformMap(n, e), e._drawCommands.push(se), e._uniformMaps.push(Pe)) : (se = e._drawCommands[e._usedDrawCommands], Pe = e._uniformMaps[e._usedDrawCommands]), se.owner = t, ++e._usedDrawCommands, t === e._debug.boundingSphereTile) {
|
130610
|
-
const
|
130611
|
-
defined(
|
130616
|
+
const ke = $.boundingVolume, Qe = $.boundingSphere;
|
130617
|
+
defined(ke) ? getDebugOrientedBoundingBox(ke, Color.RED).update(n) : defined(Qe) && getDebugBoundingSphere(Qe, Color.RED).update(n);
|
130612
130618
|
}
|
130613
130619
|
const le = Pe.properties;
|
130614
130620
|
Cartesian4.clone(Te, 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;
|
130615
|
-
const De = d ? m : p,
|
130621
|
+
const De = d ? m : p, Re = d ? p : m;
|
130616
130622
|
defined(De) && (Cartesian4.fromElements(
|
130617
130623
|
De.near,
|
130618
130624
|
De.nearValue,
|
@@ -130620,10 +130626,10 @@ function addDrawCommandsForTile(e, t, n) {
|
|
130620
130626
|
De.farValue,
|
130621
130627
|
le.frontFaceAlphaByDistance
|
130622
130628
|
), Cartesian4.fromElements(
|
130623
|
-
|
130624
|
-
|
130625
|
-
|
130626
|
-
|
130629
|
+
Re.near,
|
130630
|
+
Re.nearValue,
|
130631
|
+
Re.far,
|
130632
|
+
Re.farValue,
|
130627
130633
|
le.backFaceAlphaByDistance
|
130628
130634
|
)), Cartesian4.fromElements(
|
130629
130635
|
C.near,
|
@@ -130632,12 +130638,12 @@ function addDrawCommandsForTile(e, t, n) {
|
|
130632
130638
|
C.farValue,
|
130633
130639
|
le.undergroundColorAlphaByDistance
|
130634
130640
|
), Color.clone(y, le.undergroundColor), le.lambertDiffuseMultiplier = x, le.vertexShadowDarkness = b;
|
130635
|
-
const
|
130636
|
-
|
130641
|
+
const Ge = !defined(i.vertexArray) && defined(e.fillHighlightColor) && e.fillHighlightColor.alpha > 0;
|
130642
|
+
Ge && Color.clone(
|
130637
130643
|
e.fillHighlightColor,
|
130638
130644
|
le.fillHighlightColor
|
130639
130645
|
), le.verticalExaggerationAndRelativeHeight.x = G, le.verticalExaggerationAndRelativeHeight.y = q, le.center3D = V.center, Cartesian3.clone(U, le.rtc), Cartesian4.clone(Q, le.tileRectangle), le.southAndNorthLatitude.x = ne, le.southAndNorthLatitude.y = K, le.southMercatorYAndOneOverHeight.x = Z, le.southMercatorYAndOneOverHeight.y = ee;
|
130640
|
-
const
|
130646
|
+
const Le = localizedCartographicLimitRectangleScratch, Ue = clipRectangleAntimeridian(
|
130641
130647
|
t.rectangle,
|
130642
130648
|
e.cartographicLimitRectangle
|
130643
130649
|
), J = localizedTranslucencyRectangleScratch, ae = clipRectangleAntimeridian(
|
@@ -130651,8 +130657,8 @@ function addDrawCommandsForTile(e, t, n) {
|
|
130651
130657
|
le.hsbShift
|
130652
130658
|
);
|
130653
130659
|
const te = t.rectangle, ie = 1 / te.width, ue = 1 / te.height;
|
130654
|
-
|
130655
|
-
|
130660
|
+
Le.x = (Ue.west - te.west) * ie, Le.y = (Ue.south - te.south) * ue, Le.z = (Ue.east - te.west) * ie, Le.w = (Ue.north - te.south) * ue, Cartesian4.clone(
|
130661
|
+
Le,
|
130656
130662
|
le.localizedCartographicLimitRectangle
|
130657
130663
|
), J.x = (ae.west - te.west) * ie, J.y = (ae.south - te.south) * ue, J.z = (ae.east - te.west) * ie, J.w = (ae.north - te.south) * ue, Cartesian4.clone(
|
130658
130664
|
J,
|
@@ -130660,40 +130666,40 @@ function addDrawCommandsForTile(e, t, n) {
|
|
130660
130666
|
);
|
130661
130667
|
const me = M && CesiumMath.fog(t._distance, n.fog.density) > CesiumMath.EPSILON3;
|
130662
130668
|
F = F && (me || R);
|
130663
|
-
let
|
130669
|
+
let be = !1, Ie = !1, we = !1, He = !1, We = !1, Ae = !1, Ee = !1, $e = !1, Fe = !1, Ke = !1;
|
130664
130670
|
for (; j < s && de < ce; ) {
|
130665
|
-
const
|
130666
|
-
if (++de, !defined(
|
130671
|
+
const ke = he[de], Qe = ke.readyImagery;
|
130672
|
+
if (++de, !defined(Qe) || Qe.imageryLayer.alpha === 0)
|
130667
130673
|
continue;
|
130668
|
-
const Ye =
|
130669
|
-
defined(
|
130674
|
+
const Ye = ke.useWebMercatorT ? Qe.textureWebMercator : Qe.texture, Ve = Qe.imageryLayer;
|
130675
|
+
defined(ke.textureTranslationAndScale) || (ke.textureTranslationAndScale = Ve._calculateTextureTranslationAndScale(
|
130670
130676
|
t,
|
130671
|
-
|
130672
|
-
)), le.dayTextures[j] = Ye, le.dayTextureTranslationAndScale[j] =
|
130677
|
+
ke
|
130678
|
+
)), le.dayTextures[j] = Ye, le.dayTextureTranslationAndScale[j] = ke.textureTranslationAndScale, le.dayTextureTexCoordsRectangle[j] = ke.textureCoordinateRectangle, le.dayTextureUseWebMercatorT[j] = ke.useWebMercatorT, le.dayTextureAlpha[j] = Ve.alpha, Ae = Ae || le.dayTextureAlpha[j] !== 1, le.dayTextureNightAlpha[j] = Ve.nightAlpha, Ee = Ee || le.dayTextureNightAlpha[j] !== 1, le.dayTextureDayAlpha[j] = Ve.dayAlpha, Ee = Ee || le.dayTextureDayAlpha[j] !== 1, le.dayTextureBrightness[j] = Ve.brightness, be = be || 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;
|
130673
130679
|
let et = le.dayTextureCutoutRectangles[j];
|
130674
|
-
if (defined(et) || (et = le.dayTextureCutoutRectangles[j] = new Cartesian4()), Cartesian4.clone(Cartesian4.ZERO, et), defined(
|
130675
|
-
const
|
130680
|
+
if (defined(et) || (et = le.dayTextureCutoutRectangles[j] = new Cartesian4()), Cartesian4.clone(Cartesian4.ZERO, et), defined(Ve.cutoutRectangle)) {
|
130681
|
+
const Me = clipRectangleAntimeridian(
|
130676
130682
|
te,
|
130677
|
-
|
130678
|
-
),
|
130679
|
-
|
130683
|
+
Ve.cutoutRectangle
|
130684
|
+
), ye = Rectangle.simpleIntersection(
|
130685
|
+
Me,
|
130680
130686
|
te,
|
130681
130687
|
rectangleIntersectionScratch
|
130682
130688
|
);
|
130683
|
-
Fe = defined(
|
130689
|
+
Fe = defined(ye) || Fe, et.x = (Me.west - te.west) * ie, et.y = (Me.south - te.south) * ue, et.z = (Me.east - te.west) * ie, et.w = (Me.north - te.south) * ue;
|
130684
130690
|
}
|
130685
130691
|
let tt = le.colorsToAlpha[j];
|
130686
130692
|
defined(tt) || (tt = le.colorsToAlpha[j] = new Cartesian4());
|
130687
|
-
const nt = defined(
|
130688
|
-
if (
|
130689
|
-
const
|
130690
|
-
tt.x =
|
130693
|
+
const nt = defined(Ve.colorToAlpha) && Ve.colorToAlphaThreshold > 0;
|
130694
|
+
if (Ke = Ke || nt, nt) {
|
130695
|
+
const Me = Ve.colorToAlpha;
|
130696
|
+
tt.x = Me.red, tt.y = Me.green, tt.z = Me.blue, tt.w = Ve.colorToAlphaThreshold;
|
130691
130697
|
} else
|
130692
130698
|
tt.w = -1;
|
130693
|
-
if (defined(
|
130694
|
-
const
|
130695
|
-
for (let
|
130696
|
-
r.addCreditToNextFrame(
|
130699
|
+
if (defined(Qe.credits)) {
|
130700
|
+
const Me = Qe.credits;
|
130701
|
+
for (let ye = 0, Y = Me.length; ye < Y; ++ye)
|
130702
|
+
r.addCreditToNextFrame(Me[ye]);
|
130697
130703
|
}
|
130698
130704
|
++j;
|
130699
130705
|
}
|
@@ -130701,15 +130707,15 @@ function addDrawCommandsForTile(e, t, n) {
|
|
130701
130707
|
l,
|
130702
130708
|
le.waterMaskTranslationAndScale
|
130703
130709
|
), le.minMaxHeight.x = k.minimumHeight, le.minMaxHeight.y = k.maximumHeight, Matrix4.clone(k.matrix, le.scaleAndBias);
|
130704
|
-
const ve = e._clippingPlanes,
|
130705
|
-
|
130710
|
+
const ve = e._clippingPlanes, Ne = defined(ve) && ve.enabled && t.isClipped;
|
130711
|
+
Ne && (le.clippingPlanesEdgeColor = Color.clone(
|
130706
130712
|
ve.edgeColor,
|
130707
130713
|
le.clippingPlanesEdgeColor
|
130708
130714
|
), le.clippingPlanesEdgeWidth = ve.edgeWidth);
|
130709
130715
|
const rt = e._clippingPolygons, Be = defined(rt) && rt.enabled && t.isClipped;
|
130710
|
-
X.numberOfDayTextures = j, X.applyBrightness =
|
130716
|
+
X.numberOfDayTextures = j, X.applyBrightness = be, X.applyContrast = Ie, X.applyHue = we, X.applySaturation = He, X.applyGamma = We, X.applyAlpha = Ae, X.applyDayNightAlpha = Ee, X.applySplit = $e, X.enableFog = me, X.enableClippingPlanes = Ne, X.clippingPlanes = ve, X.enableClippingPolygons = Be, X.clippingPolygons = rt, X.hasImageryLayerCutout = Fe, X.colorCorrect = F, X.highlightFillTile = Ge, X.colorToAlpha = Ke, X.showUndergroundColor = T, X.translucent = h;
|
130711
130717
|
let Ze = i.renderedMesh.indices.length;
|
130712
|
-
|
130718
|
+
_e || (Ze = i.renderedMesh.indexCountWithoutSkirts), se.shaderProgram = e._surfaceShaderSet.getShaderProgram(
|
130713
130719
|
X
|
130714
130720
|
), se.castShadows = L, se.receiveShadows = g, se.renderState = pe, se.primitiveType = PrimitiveType$1.TRIANGLES, se.vertexArray = i.vertexArray || i.fill.vertexArray, se.count = Ze, se.uniformMap = Pe, se.pass = Pass$1.GLOBE, e._debug.wireframe && (createWireframeVertexArrayIfNecessary(xe, e, t), defined(i.wireframeVertexArray) && (se.vertexArray = i.wireframeVertexArray, se.primitiveType = PrimitiveType$1.LINES, se.count = Ze * 2));
|
130715
130721
|
let je = se.boundingVolume;
|
@@ -130735,7 +130741,7 @@ function addDrawCommandsForTile(e, t, n) {
|
|
130735
130741
|
), se.orientedBoundingBox = OrientedBoundingBox.clone(
|
130736
130742
|
$.boundingVolume,
|
130737
130743
|
at
|
130738
|
-
)), se.dirty = !0, h && f.updateDerivedCommands(se, n), pushCommand(se, n), pe =
|
130744
|
+
)), se.dirty = !0, h && f.updateDerivedCommands(se, n), pushCommand(se, n), pe = Se, Te = otherPassesInitialColor;
|
130739
130745
|
} while (de < ce);
|
130740
130746
|
}
|
130741
130747
|
function GlobeTranslucency() {
|
@@ -149213,11 +149219,11 @@ VoxelCylinderShape.prototype.update = function(e, t, n, i, r) {
|
|
149213
149219
|
f,
|
149214
149220
|
void 0,
|
149215
149221
|
_
|
149216
|
-
), ee = S === o, oe = F < N, X = F - N + oe * h,
|
149222
|
+
), ee = S === o, oe = F < N, X = F - N + oe * h, he = X >= p - y && X < h - y, de = X > y && X < p - y, ce = X <= y, _e = he || de || ce, { shaderUniforms: ge, shaderDefines: re } = this;
|
149217
149223
|
for (const pe in re)
|
149218
149224
|
re.hasOwnProperty(pe) && (re[pe] = void 0);
|
149219
|
-
let
|
149220
|
-
if (re.CYLINDER_INTERSECTION_INDEX_RADIUS_MAX =
|
149225
|
+
let Se = 0;
|
149226
|
+
if (re.CYLINDER_INTERSECTION_INDEX_RADIUS_MAX = Se, Se += 1, ee || (re.CYLINDER_HAS_RENDER_BOUNDS_RADIUS_MIN = !0, re.CYLINDER_INTERSECTION_INDEX_RADIUS_MIN = Se, Se += 1), ge.cylinderRenderRadiusMinMax = Cartesian2.fromElements(
|
149221
149227
|
S,
|
149222
149228
|
E,
|
149223
149229
|
ge.cylinderRenderRadiusMinMax
|
@@ -149245,7 +149251,7 @@ VoxelCylinderShape.prototype.update = function(e, t, n, i, r) {
|
|
149245
149251
|
M,
|
149246
149252
|
R,
|
149247
149253
|
ge.cylinderRenderHeightMinMax
|
149248
|
-
), G && (re.CYLINDER_HAS_SHAPE_BOUNDS_ANGLE_MIN_MAX_REVERSED = !0),
|
149254
|
+
), G && (re.CYLINDER_HAS_SHAPE_BOUNDS_ANGLE_MIN_MAX_REVERSED = !0), _e && (re.CYLINDER_HAS_RENDER_BOUNDS_ANGLE = !0, re.CYLINDER_INTERSECTION_INDEX_ANGLE = Se, he ? (re.CYLINDER_HAS_RENDER_BOUNDS_ANGLE_RANGE_UNDER_HALF = !0, Se += 1) : de ? (re.CYLINDER_HAS_RENDER_BOUNDS_ANGLE_RANGE_OVER_HALF = !0, Se += 2) : ce && (re.CYLINDER_HAS_RENDER_BOUNDS_ANGLE_RANGE_EQUAL_ZERO = !0, Se += 2), ge.cylinderRenderAngleMinMax = Cartesian2.fromElements(
|
149249
149255
|
N,
|
149250
149256
|
F,
|
149251
149257
|
ge.cylinderRenderAngleMinMax
|
@@ -149271,7 +149277,7 @@ VoxelCylinderShape.prototype.update = function(e, t, n, i, r) {
|
|
149271
149277
|
);
|
149272
149278
|
}
|
149273
149279
|
}
|
149274
|
-
return this.shaderMaximumIntersectionsLength =
|
149280
|
+
return this.shaderMaximumIntersectionsLength = Se, !0;
|
149275
149281
|
};
|
149276
149282
|
VoxelCylinderShape.prototype.computeOrientedBoundingBoxForTile = function(e, t, n, i, r) {
|
149277
149283
|
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(
|
@@ -149541,7 +149547,7 @@ VoxelEllipsoidShape.prototype.update = function(e, t, n, i, r) {
|
|
149541
149547
|
this.orientedBoundingBox,
|
149542
149548
|
this.boundingSphere
|
149543
149549
|
);
|
149544
|
-
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, Q = x.y >= -h && x.y <= +h, ne = x.y > +h, K = H || Q || ne, Z = z || K, ee = y.y - _.y, oe = y.y < -h, X = y.y >= -h && y.y <= +h,
|
149550
|
+
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, Q = x.y >= -h && x.y <= +h, ne = x.y > +h, K = H || Q || ne, Z = z || K, ee = y.y - _.y, oe = y.y < -h, X = y.y >= -h && y.y <= +h, he = y.y > +h && y.y < s.y - f, de = oe || X || he, ce = _.y > o.y + f && _.y < -h, _e = _.y >= -h && _.y <= +h, ge = _.y > +h, Se = de || (ce || _e || ge), { shaderUniforms: pe, shaderDefines: Te } = this;
|
149545
149551
|
for (const le in Te)
|
149546
149552
|
Te.hasOwnProperty(le) && (Te[le] = void 0);
|
149547
149553
|
pe.ellipsoidRadiiUv = Cartesian3.divideByScalar(
|
@@ -149582,10 +149588,10 @@ VoxelEllipsoidShape.prototype.update = function(e, t, n, i, r) {
|
|
149582
149588
|
pe.ellipsoidUvToShapeUvLongitude
|
149583
149589
|
);
|
149584
149590
|
else {
|
149585
|
-
const De = P / F,
|
149591
|
+
const De = P / F, Re = -(_.x - o.x) / F;
|
149586
149592
|
pe.ellipsoidUvToShapeUvLongitude = Cartesian2.fromElements(
|
149587
149593
|
De,
|
149588
|
-
|
149594
|
+
Re,
|
149589
149595
|
pe.ellipsoidUvToShapeUvLongitude
|
149590
149596
|
);
|
149591
149597
|
}
|
@@ -149602,10 +149608,10 @@ VoxelEllipsoidShape.prototype.update = function(e, t, n, i, r) {
|
|
149602
149608
|
l
|
149603
149609
|
);
|
149604
149610
|
le && (Te.ELLIPSOID_HAS_RENDER_BOUNDS_LONGITUDE_MIN_DISCONTINUITY = !0), De && (Te.ELLIPSOID_HAS_RENDER_BOUNDS_LONGITUDE_MAX_DISCONTINUITY = !0);
|
149605
|
-
const
|
149611
|
+
const Re = (_.x - o.x) / P, Ge = (y.x - o.x) / P, Le = (b.x - o.x) / P, Ue = 1 - R / P, J = (Le + 0.5 * Ue) % 1;
|
149606
149612
|
pe.ellipsoidShapeUvLongitudeMinMaxMid = Cartesian3.fromElements(
|
149607
|
-
|
149608
|
-
|
149613
|
+
Re,
|
149614
|
+
Ge,
|
149609
149615
|
J,
|
149610
149616
|
pe.ellipsoidShapeUvLongitudeMinMaxMid
|
149611
149617
|
);
|
@@ -149614,7 +149620,7 @@ VoxelEllipsoidShape.prototype.update = function(e, t, n, i, r) {
|
|
149614
149620
|
Math.sin(x.y),
|
149615
149621
|
Math.sin(b.y),
|
149616
149622
|
pe.ellipsoidRenderLatitudeSinMinMax
|
149617
|
-
)),
|
149623
|
+
)), Se)
|
149618
149624
|
if (Te.ELLIPSOID_HAS_SHAPE_BOUNDS_LATITUDE = !0, ee < f)
|
149619
149625
|
pe.ellipsoidUvToShapeUvLatitude = Cartesian2.fromElements(
|
149620
149626
|
0,
|
@@ -149622,10 +149628,10 @@ VoxelEllipsoidShape.prototype.update = function(e, t, n, i, r) {
|
|
149622
149628
|
pe.ellipsoidUvToShapeUvLatitude
|
149623
149629
|
);
|
149624
149630
|
else {
|
149625
|
-
const De = (s.y - o.y) / ee,
|
149631
|
+
const De = (s.y - o.y) / ee, Re = (o.y - _.y) / ee;
|
149626
149632
|
pe.ellipsoidUvToShapeUvLatitude = Cartesian2.fromElements(
|
149627
149633
|
De,
|
149628
|
-
|
149634
|
+
Re,
|
149629
149635
|
pe.ellipsoidUvToShapeUvLatitude
|
149630
149636
|
);
|
149631
149637
|
}
|
@@ -156120,22 +156126,22 @@ function createQuantizedMeshTerrainData(e, t, n, i, r, o) {
|
|
156120
156126
|
ee
|
156121
156127
|
).available;
|
156122
156128
|
if (defined(X))
|
156123
|
-
for (let
|
156124
|
-
const de = n +
|
156129
|
+
for (let he = 0; he < X.length; ++he) {
|
156130
|
+
const de = n + he + 1, ce = X[he], _e = e._tilingScheme.getNumberOfYTilesAtLevel(
|
156125
156131
|
de
|
156126
156132
|
);
|
156127
156133
|
for (let ge = 0; ge < ce.length; ++ge) {
|
156128
|
-
const re = ce[ge],
|
156134
|
+
const re = ce[ge], Se = _e - re.endY - 1, pe = _e - re.startY - 1;
|
156129
156135
|
e.availability.addAvailableTileRange(
|
156130
156136
|
de,
|
156131
156137
|
re.startX,
|
156132
|
-
|
156138
|
+
Se,
|
156133
156139
|
re.endX,
|
156134
156140
|
pe
|
156135
156141
|
), o.availability.addAvailableTileRange(
|
156136
156142
|
de,
|
156137
156143
|
re.startX,
|
156138
|
-
|
156144
|
+
Se,
|
156139
156145
|
re.endX,
|
156140
156146
|
pe
|
156141
156147
|
);
|
@@ -165403,11 +165409,11 @@ var LercDecode = { exports: {} };
|
|
165403
165409
|
readTiles: function(d, f, h) {
|
165404
165410
|
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);
|
165405
165411
|
f.pixels.numBlocksY = b, f.pixels.numBlocksX = x, f.pixels.ptr = 0;
|
165406
|
-
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), Q = _ % y || y, ne = m % y || y, K, Z, ee = p.numDims, oe, X = f.pixels.resultMask,
|
165412
|
+
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), Q = _ % y || y, ne = m % y || y, K, Z, ee = p.numDims, oe, X = f.pixels.resultMask, he = f.pixels.resultPixels;
|
165407
165413
|
for (A = 0; A < b; A++)
|
165408
165414
|
for (P = A !== b - 1 ? y : Q, D = 0; D < x; D++)
|
165409
165415
|
for (I = D !== x - 1 ? y : ne, w = A * m * y + D * y, O = m - I, oe = 0; oe < ee; oe++) {
|
165410
|
-
if (ee > 1 && (
|
165416
|
+
if (ee > 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))
|
165411
165417
|
throw "integrity issue";
|
165412
165418
|
if (z = R & 3, z > 3)
|
165413
165419
|
throw f.ptr += V, "Invalid block encoding (" + z + ")";
|
@@ -165418,13 +165424,13 @@ var LercDecode = { exports: {} };
|
|
165418
165424
|
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, X)
|
165419
165425
|
for (S = 0; S < P; S++) {
|
165420
165426
|
for (E = 0; E < I; E++)
|
165421
|
-
X[w] && (
|
165427
|
+
X[w] && (he[w] = q[B++]), w++;
|
165422
165428
|
w += O;
|
165423
165429
|
}
|
165424
165430
|
else
|
165425
165431
|
for (S = 0; S < P; S++) {
|
165426
165432
|
for (E = 0; E < I; E++)
|
165427
|
-
|
165433
|
+
he[w++] = q[B++];
|
165428
165434
|
w += O;
|
165429
165435
|
}
|
165430
165436
|
f.ptr += B * T;
|
@@ -165432,25 +165438,25 @@ var LercDecode = { exports: {} };
|
|
165432
165438
|
if (f.ptr += V, f.counter.constantoffset++, X)
|
165433
165439
|
for (S = 0; S < P; S++) {
|
165434
165440
|
for (E = 0; E < I; E++)
|
165435
|
-
X[w] && (
|
165441
|
+
X[w] && (he[w] = Z), w++;
|
165436
165442
|
w += O;
|
165437
165443
|
}
|
165438
165444
|
else
|
165439
165445
|
for (S = 0; S < P; S++) {
|
165440
165446
|
for (E = 0; E < I; E++)
|
165441
|
-
|
165447
|
+
he[w++] = Z;
|
165442
165448
|
w += O;
|
165443
165449
|
}
|
165444
165450
|
else if (f.ptr += V, s.decodeBits(d, f, H, Z, oe), V = 0, X)
|
165445
165451
|
for (S = 0; S < P; S++) {
|
165446
165452
|
for (E = 0; E < I; E++)
|
165447
|
-
X[w] && (
|
165453
|
+
X[w] && (he[w] = H[V++]), w++;
|
165448
165454
|
w += O;
|
165449
165455
|
}
|
165450
165456
|
else
|
165451
165457
|
for (S = 0; S < P; S++) {
|
165452
165458
|
for (E = 0; E < I; E++)
|
165453
|
-
|
165459
|
+
he[w++] = H[V++];
|
165454
165460
|
w += O;
|
165455
165461
|
}
|
165456
165462
|
}
|