@reearth/core 0.0.7-alpha.56 → 0.0.7-alpha.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.js +451 -448
- package/dist/core.umd.cjs +30 -30
- package/package.json +1 -1
- package/src/engines/Cesium/Feature/Marker/index.tsx +3 -0
package/dist/core.js
CHANGED
|
@@ -26044,13 +26044,13 @@ xS.exports.default = f9;
|
|
|
26044
26044
|
function CS(e, t) {
|
|
26045
26045
|
var n = {}, i = [];
|
|
26046
26046
|
if (e.type === "LineString" && (e = Gl(e)), t.type === "LineString" && (t = Gl(t)), e.type === "Feature" && t.type === "Feature" && e.geometry !== null && t.geometry !== null && e.geometry.type === "LineString" && t.geometry.type === "LineString" && e.geometry.coordinates.length === 2 && t.geometry.coordinates.length === 2) {
|
|
26047
|
-
var r =
|
|
26047
|
+
var r = eI(e, t);
|
|
26048
26048
|
return r && i.push(r), Cy(i);
|
|
26049
26049
|
}
|
|
26050
26050
|
var o = xS.exports();
|
|
26051
26051
|
return o.load(QR(t)), KR(QR(e), function(s) {
|
|
26052
26052
|
KR(o.search(s), function(a) {
|
|
26053
|
-
var c =
|
|
26053
|
+
var c = eI(s, a);
|
|
26054
26054
|
if (c) {
|
|
26055
26055
|
var l = op(c).join(",");
|
|
26056
26056
|
n[l] || (n[l] = !0, i.push(c));
|
|
@@ -26058,7 +26058,7 @@ function CS(e, t) {
|
|
|
26058
26058
|
});
|
|
26059
26059
|
}), Cy(i);
|
|
26060
26060
|
}
|
|
26061
|
-
function
|
|
26061
|
+
function eI(e, t) {
|
|
26062
26062
|
var n = op(e), i = op(t);
|
|
26063
26063
|
if (n.length !== 2)
|
|
26064
26064
|
throw new Error("<intersects> line1 must only contain 2 coordinates");
|
|
@@ -26118,7 +26118,7 @@ function Ere(e, t) {
|
|
|
26118
26118
|
case "Point":
|
|
26119
26119
|
return !Ire(e.coordinates, t.coordinates);
|
|
26120
26120
|
case "LineString":
|
|
26121
|
-
return !
|
|
26121
|
+
return !tI(t, e);
|
|
26122
26122
|
case "Polygon":
|
|
26123
26123
|
return !sp(e, t);
|
|
26124
26124
|
}
|
|
@@ -26126,11 +26126,11 @@ function Ere(e, t) {
|
|
|
26126
26126
|
case "LineString":
|
|
26127
26127
|
switch (t.type) {
|
|
26128
26128
|
case "Point":
|
|
26129
|
-
return !
|
|
26129
|
+
return !tI(e, t);
|
|
26130
26130
|
case "LineString":
|
|
26131
26131
|
return !Tre(e, t);
|
|
26132
26132
|
case "Polygon":
|
|
26133
|
-
return !
|
|
26133
|
+
return !nI(t, e);
|
|
26134
26134
|
}
|
|
26135
26135
|
break;
|
|
26136
26136
|
case "Polygon":
|
|
@@ -26138,14 +26138,14 @@ function Ere(e, t) {
|
|
|
26138
26138
|
case "Point":
|
|
26139
26139
|
return !sp(t, e);
|
|
26140
26140
|
case "LineString":
|
|
26141
|
-
return !
|
|
26141
|
+
return !nI(e, t);
|
|
26142
26142
|
case "Polygon":
|
|
26143
26143
|
return !Cre(t, e);
|
|
26144
26144
|
}
|
|
26145
26145
|
}
|
|
26146
26146
|
return !1;
|
|
26147
26147
|
}
|
|
26148
|
-
function
|
|
26148
|
+
function tI(e, t) {
|
|
26149
26149
|
for (var n = 0; n < e.coordinates.length - 1; n++)
|
|
26150
26150
|
if (Rre(e.coordinates[n], e.coordinates[n + 1], t.coordinates))
|
|
26151
26151
|
return !0;
|
|
@@ -26155,7 +26155,7 @@ function Tre(e, t) {
|
|
|
26155
26155
|
var n = CS(e, t);
|
|
26156
26156
|
return n.features.length > 0;
|
|
26157
26157
|
}
|
|
26158
|
-
function
|
|
26158
|
+
function nI(e, t) {
|
|
26159
26159
|
for (var n = 0, i = t.coordinates; n < i.length; n++) {
|
|
26160
26160
|
var r = i[n];
|
|
26161
26161
|
if (sp(r, e))
|
|
@@ -26185,7 +26185,7 @@ function Rre(e, t, n) {
|
|
|
26185
26185
|
function Ire(e, t) {
|
|
26186
26186
|
return e[0] === t[0] && e[1] === t[1];
|
|
26187
26187
|
}
|
|
26188
|
-
function
|
|
26188
|
+
function iI(e, t) {
|
|
26189
26189
|
var n = !1;
|
|
26190
26190
|
return rp(e, function(i) {
|
|
26191
26191
|
rp(t, function(r) {
|
|
@@ -26549,7 +26549,7 @@ class nr {
|
|
|
26549
26549
|
type: "Point",
|
|
26550
26550
|
coordinates: [t.lng, t.lat]
|
|
26551
26551
|
}, r = this.alt, o = qd({ ...this.zfxy, f: this.zfxy.f + 1 });
|
|
26552
|
-
return
|
|
26552
|
+
return iI(n, i) && (typeof t.alt < "u" ? t.alt >= r && t.alt < o : !0);
|
|
26553
26553
|
}
|
|
26554
26554
|
/** Calculates the polygon of this Space and returns a 2D GeoJSON Polygon. */
|
|
26555
26555
|
toGeoJSON() {
|
|
@@ -26607,7 +26607,7 @@ class nr {
|
|
|
26607
26607
|
for (let d = a; d <= l; d++)
|
|
26608
26608
|
for (let f = c; f <= u; f++) {
|
|
26609
26609
|
const p = new nr({ x: d, y: f, z: i, f: 0 });
|
|
26610
|
-
|
|
26610
|
+
iI(t, p.toGeoJSON()) && h.push(p);
|
|
26611
26611
|
}
|
|
26612
26612
|
return h;
|
|
26613
26613
|
}
|
|
@@ -27299,7 +27299,7 @@ const coe = {
|
|
|
27299
27299
|
modifier: ya.SHIFT
|
|
27300
27300
|
}
|
|
27301
27301
|
]
|
|
27302
|
-
}, uoe = "__reearth_layer_id", hoe = 50,
|
|
27302
|
+
}, uoe = "__reearth_layer_id", hoe = 50, rI = { engine: {}, lightbox: [], screen: [] }, doe = (e, t, n, i = "none", r = !1, o = "rgba(0, 0, 0, 0.7)", s = 3, a = 0, c = 0) => {
|
|
27303
27303
|
const l = document.createElement("canvas"), u = l.getContext("2d");
|
|
27304
27304
|
if (!(!e || !u))
|
|
27305
27305
|
return u.save(), l.width = t + s * 2, l.height = n + s * 2, u.shadowBlur = s, u.shadowOffsetX = a, u.shadowOffsetY = c, u.globalCompositeOperation = "source-over", u.clearRect(0, 0, l.width, l.height), u.drawImage(e, (l.width - t) / 2, (l.height - n) / 2, t, n), i === "circle" ? (u.fillStyle = "black", u.globalCompositeOperation = "destination-in", u.arc(l.width / 2, l.height / 2, Math.min(t, n) / 2, 0, 2 * Math.PI), u.fill(), r && (u.shadowColor = o, u.globalCompositeOperation = "destination-over", u.fillStyle = "black", u.arc(l.width / 2, l.height / 2, Math.min(t, n) / 2, 0, 2 * Math.PI), u.fill())) : r && (u.shadowColor = o, u.globalCompositeOperation = "destination-over", u.fillStyle = "black", u.rect((l.width - t) / 2, (l.height - n) / 2, t, n), u.fill()), u.restore(), l.toDataURL();
|
|
@@ -27354,7 +27354,7 @@ const coe = {
|
|
|
27354
27354
|
}, v9 = (e) => {
|
|
27355
27355
|
const t = new xc();
|
|
27356
27356
|
return e.positionWC.clone(t.origin), e.directionWC.clone(t.direction), t;
|
|
27357
|
-
},
|
|
27357
|
+
}, oI = (e, t, n) => {
|
|
27358
27358
|
let i;
|
|
27359
27359
|
const { camera: r, globe: o } = e;
|
|
27360
27360
|
if (t instanceof Ct) {
|
|
@@ -27365,7 +27365,7 @@ const coe = {
|
|
|
27365
27365
|
}, poe = (e) => {
|
|
27366
27366
|
const t = v9(e.camera);
|
|
27367
27367
|
return e.globe.pick(t, e);
|
|
27368
|
-
},
|
|
27368
|
+
}, sI = (e, t) => {
|
|
27369
27369
|
const n = yn.fromCartesian(e, t.globe.ellipsoid);
|
|
27370
27370
|
return {
|
|
27371
27371
|
lng: gt.toDegrees(n.longitude),
|
|
@@ -27437,7 +27437,7 @@ const coe = {
|
|
|
27437
27437
|
const n = new ye(), i = e.getPickRay(e.positionWC);
|
|
27438
27438
|
if (i)
|
|
27439
27439
|
return i.origin = e.positionWC, i.direction = e.directionWC, t.globe.pick(i, t, n);
|
|
27440
|
-
},
|
|
27440
|
+
}, aI = ({ viewer: e, relativeAmount: t }, n) => {
|
|
27441
27441
|
const { camera: i, scene: r } = e;
|
|
27442
27442
|
if (r.mode !== Ro.SCENE3D) {
|
|
27443
27443
|
const d = Io(e);
|
|
@@ -27702,9 +27702,9 @@ function Aoe(e, t, n, i = !1) {
|
|
|
27702
27702
|
}
|
|
27703
27703
|
}
|
|
27704
27704
|
function E9(e) {
|
|
27705
|
-
if (!e) return
|
|
27705
|
+
if (!e) return rI;
|
|
27706
27706
|
const t = e.creditDisplay;
|
|
27707
|
-
if (!t) return
|
|
27707
|
+
if (!t) return rI;
|
|
27708
27708
|
const { lightboxCredits: n, screenCredits: i } = t?._currentFrameCredits || {}, r = t._currentCesiumCredit;
|
|
27709
27709
|
return {
|
|
27710
27710
|
engine: {
|
|
@@ -27894,10 +27894,10 @@ C.typeOf.number.equals = function(e, t, n, i) {
|
|
|
27894
27894
|
`${e} must be equal to ${t}, the actual values are ${n} and ${i}`
|
|
27895
27895
|
);
|
|
27896
27896
|
};
|
|
27897
|
-
var K1,
|
|
27897
|
+
var K1, cI;
|
|
27898
27898
|
function Doe() {
|
|
27899
|
-
if (
|
|
27900
|
-
|
|
27899
|
+
if (cI) return K1;
|
|
27900
|
+
cI = 1;
|
|
27901
27901
|
var e = function(t) {
|
|
27902
27902
|
t == null && (t = (/* @__PURE__ */ new Date()).getTime()), this.N = 624, this.M = 397, this.MATRIX_A = 2567483615, this.UPPER_MASK = 2147483648, this.LOWER_MASK = 2147483647, this.mt = new Array(this.N), this.mti = this.N + 1, t.constructor == Array ? this.init_by_array(t, t.length) : this.init_seed(t);
|
|
27903
27903
|
};
|
|
@@ -28316,9 +28316,9 @@ b.negate = function(e, t) {
|
|
|
28316
28316
|
b.abs = function(e, t) {
|
|
28317
28317
|
return C.typeOf.object("cartesian", e), C.typeOf.object("result", t), t.x = Math.abs(e.x), t.y = Math.abs(e.y), t.z = Math.abs(e.z), t;
|
|
28318
28318
|
};
|
|
28319
|
-
const
|
|
28319
|
+
const lI = new b();
|
|
28320
28320
|
b.lerp = function(e, t, n, i) {
|
|
28321
|
-
return C.typeOf.object("start", e), C.typeOf.object("end", t), C.typeOf.number("t", n), C.typeOf.object("result", i), b.multiplyByScalar(t, n,
|
|
28321
|
+
return C.typeOf.object("start", e), C.typeOf.object("end", t), C.typeOf.number("t", n), C.typeOf.object("result", i), b.multiplyByScalar(t, n, lI), i = b.multiplyByScalar(e, 1 - n, i), b.add(lI, i, i);
|
|
28322
28322
|
};
|
|
28323
28323
|
const sm = new b(), J1 = new b();
|
|
28324
28324
|
b.angleBetween = function(e, t) {
|
|
@@ -28601,9 +28601,9 @@ be.negate = function(e, t) {
|
|
|
28601
28601
|
be.abs = function(e, t) {
|
|
28602
28602
|
return C.typeOf.object("cartesian", e), C.typeOf.object("result", t), t.x = Math.abs(e.x), t.y = Math.abs(e.y), t.z = Math.abs(e.z), t.w = Math.abs(e.w), t;
|
|
28603
28603
|
};
|
|
28604
|
-
const
|
|
28604
|
+
const uI = new be();
|
|
28605
28605
|
be.lerp = function(e, t, n, i) {
|
|
28606
|
-
return C.typeOf.object("start", e), C.typeOf.object("end", t), C.typeOf.number("t", n), C.typeOf.object("result", i), be.multiplyByScalar(t, n,
|
|
28606
|
+
return C.typeOf.object("start", e), C.typeOf.object("end", t), C.typeOf.number("t", n), C.typeOf.object("result", i), be.multiplyByScalar(t, n, uI), i = be.multiplyByScalar(e, 1 - n, i), be.add(uI, i, i);
|
|
28607
28607
|
};
|
|
28608
28608
|
const Boe = new be();
|
|
28609
28609
|
be.mostOrthogonalAxis = function(e, t) {
|
|
@@ -28871,9 +28871,9 @@ te.getScale = function(e, t) {
|
|
|
28871
28871
|
b.fromElements(e[6], e[7], e[8], Q1)
|
|
28872
28872
|
), t;
|
|
28873
28873
|
};
|
|
28874
|
-
const
|
|
28874
|
+
const hI = new b();
|
|
28875
28875
|
te.getMaximumScale = function(e) {
|
|
28876
|
-
return te.getScale(e,
|
|
28876
|
+
return te.getScale(e, hI), b.maximumComponent(hI);
|
|
28877
28877
|
};
|
|
28878
28878
|
const Joe = new b();
|
|
28879
28879
|
te.setRotation = function(e, t, n) {
|
|
@@ -28955,7 +28955,7 @@ function ese(e, t) {
|
|
|
28955
28955
|
}
|
|
28956
28956
|
return t = te.clone(te.IDENTITY, t), t[te.getElementIndex(a, a)] = t[te.getElementIndex(c, c)] = o, t[te.getElementIndex(c, a)] = s, t[te.getElementIndex(a, c)] = -s, t;
|
|
28957
28957
|
}
|
|
28958
|
-
const am = new te(),
|
|
28958
|
+
const am = new te(), dI = new te();
|
|
28959
28959
|
te.computeEigenDecomposition = function(e, t) {
|
|
28960
28960
|
C.typeOf.object("matrix", e);
|
|
28961
28961
|
const n = U.EPSILON20, i = 10;
|
|
@@ -28966,7 +28966,7 @@ te.computeEigenDecomposition = function(e, t) {
|
|
|
28966
28966
|
t.unitary
|
|
28967
28967
|
), a = t.diagonal = te.clone(e, t.diagonal), c = n * qoe(a);
|
|
28968
28968
|
for (; o < i && $oe(a) > c; )
|
|
28969
|
-
ese(a, am), te.transpose(am,
|
|
28969
|
+
ese(a, am), te.transpose(am, dI), te.multiply(a, am, a), te.multiply(dI, a, a), te.multiply(s, am, s), ++r > 2 && (++o, r = 0);
|
|
28970
28970
|
return t;
|
|
28971
28971
|
};
|
|
28972
28972
|
te.abs = function(e, t) {
|
|
@@ -29349,9 +29349,9 @@ ie.getScale = function(e, t) {
|
|
|
29349
29349
|
b.fromElements(e[8], e[9], e[10], q1)
|
|
29350
29350
|
), t;
|
|
29351
29351
|
};
|
|
29352
|
-
const
|
|
29352
|
+
const fI = new b();
|
|
29353
29353
|
ie.getMaximumScale = function(e) {
|
|
29354
|
-
return ie.getScale(e,
|
|
29354
|
+
return ie.getScale(e, fI), b.maximumComponent(fI);
|
|
29355
29355
|
};
|
|
29356
29356
|
const rse = new b();
|
|
29357
29357
|
ie.setRotation = function(e, t, n) {
|
|
@@ -32982,14 +32982,14 @@ le.negate = function(e, t) {
|
|
|
32982
32982
|
le.abs = function(e, t) {
|
|
32983
32983
|
return C.typeOf.object("cartesian", e), C.typeOf.object("result", t), t.x = Math.abs(e.x), t.y = Math.abs(e.y), t;
|
|
32984
32984
|
};
|
|
32985
|
-
const
|
|
32985
|
+
const pI = new le();
|
|
32986
32986
|
le.lerp = function(e, t, n, i) {
|
|
32987
|
-
return C.typeOf.object("start", e), C.typeOf.object("end", t), C.typeOf.number("t", n), C.typeOf.object("result", i), le.multiplyByScalar(t, n,
|
|
32987
|
+
return C.typeOf.object("start", e), C.typeOf.object("end", t), C.typeOf.number("t", n), C.typeOf.object("result", i), le.multiplyByScalar(t, n, pI), i = le.multiplyByScalar(e, 1 - n, i), le.add(pI, i, i);
|
|
32988
32988
|
};
|
|
32989
|
-
const
|
|
32989
|
+
const mI = new le(), gI = new le();
|
|
32990
32990
|
le.angleBetween = function(e, t) {
|
|
32991
|
-
return C.typeOf.object("left", e), C.typeOf.object("right", t), le.normalize(e,
|
|
32992
|
-
le.dot(
|
|
32991
|
+
return C.typeOf.object("left", e), C.typeOf.object("right", t), le.normalize(e, mI), le.normalize(t, gI), U.acosClamped(
|
|
32992
|
+
le.dot(mI, gI)
|
|
32993
32993
|
);
|
|
32994
32994
|
};
|
|
32995
32995
|
const Mse = new le();
|
|
@@ -33420,7 +33420,7 @@ const Use = [
|
|
|
33420
33420
|
0.066671344308684,
|
|
33421
33421
|
0
|
|
33422
33422
|
];
|
|
33423
|
-
function
|
|
33423
|
+
function yI(e, t, n) {
|
|
33424
33424
|
C.typeOf.number("a", e), C.typeOf.number("b", t), C.typeOf.func("func", n);
|
|
33425
33425
|
const i = 0.5 * (t + e), r = 0.5 * (t - e);
|
|
33426
33426
|
let o = 0;
|
|
@@ -33438,9 +33438,9 @@ st.prototype.surfaceArea = function(e) {
|
|
|
33438
33438
|
for (; n < t; )
|
|
33439
33439
|
n += U.TWO_PI;
|
|
33440
33440
|
const o = this._radiiSquared, s = o.x, a = o.y, c = o.z, l = s * a;
|
|
33441
|
-
return
|
|
33441
|
+
return yI(i, r, function(u) {
|
|
33442
33442
|
const h = Math.cos(u), d = Math.sin(u);
|
|
33443
|
-
return Math.cos(u) *
|
|
33443
|
+
return Math.cos(u) * yI(t, n, function(f) {
|
|
33444
33444
|
const p = Math.cos(f), m = Math.sin(f);
|
|
33445
33445
|
return Math.sqrt(
|
|
33446
33446
|
l * d * d + c * (a * p * p + s * m * m) * h * h
|
|
@@ -33523,7 +33523,7 @@ function t2(e) {
|
|
|
33523
33523
|
throw new F("year is required and must be a number.");
|
|
33524
33524
|
return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
|
|
33525
33525
|
}
|
|
33526
|
-
const
|
|
33526
|
+
const bI = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
33527
33527
|
function FS(e, t, n, i, r, o, s, a) {
|
|
33528
33528
|
e = e ?? 1, t = t ?? 1, n = n ?? 1, i = i ?? 0, r = r ?? 0, o = o ?? 0, s = s ?? 0, a = a ?? !1, m(), _(), this.year = e, this.month = t, this.day = n, this.hour = i, this.minute = r, this.second = o, this.millisecond = s, this.isLeapSecond = a;
|
|
33529
33529
|
function m() {
|
|
@@ -33542,7 +33542,7 @@ function FS(e, t, n, i, r, o, s, a) {
|
|
|
33542
33542
|
);
|
|
33543
33543
|
}
|
|
33544
33544
|
function _() {
|
|
33545
|
-
const y = t === 2 && t2(e) ?
|
|
33545
|
+
const y = t === 2 && t2(e) ? bI[t - 1] + 1 : bI[t - 1];
|
|
33546
33546
|
if (n > y)
|
|
33547
33547
|
throw new F("Month and Day represents invalid date");
|
|
33548
33548
|
}
|
|
@@ -33653,7 +33653,7 @@ function Db(e) {
|
|
|
33653
33653
|
e
|
|
33654
33654
|
) > i && (n--, i = t[n].offset), Fe.addSeconds(e, i, e);
|
|
33655
33655
|
}
|
|
33656
|
-
function
|
|
33656
|
+
function vI(e, t) {
|
|
33657
33657
|
_h.julianDate = e;
|
|
33658
33658
|
const n = Fe.leapSeconds;
|
|
33659
33659
|
let i = d0(
|
|
@@ -33831,8 +33831,8 @@ const gm = new Fe(0, 0, Nt.TAI);
|
|
|
33831
33831
|
Fe.toGregorianDate = function(e, t) {
|
|
33832
33832
|
if (!w(e))
|
|
33833
33833
|
throw new F("julianDate is required.");
|
|
33834
|
-
let n = !1, i =
|
|
33835
|
-
w(i) || (Fe.addSeconds(e, -1, gm), i =
|
|
33834
|
+
let n = !1, i = vI(e, gm);
|
|
33835
|
+
w(i) || (Fe.addSeconds(e, -1, gm), i = vI(gm, gm), n = !0);
|
|
33836
33836
|
let r = i.dayNumber;
|
|
33837
33837
|
const o = i.secondsOfDay;
|
|
33838
33838
|
o >= 43200 && (r += 1);
|
|
@@ -34069,9 +34069,9 @@ Fe.leapSeconds = [
|
|
|
34069
34069
|
// January 1, 2017 00:00:00 UTC
|
|
34070
34070
|
];
|
|
34071
34071
|
var xg = { exports: {} }, nf = { exports: {} };
|
|
34072
|
-
var eae = nf.exports,
|
|
34072
|
+
var eae = nf.exports, _I;
|
|
34073
34073
|
function tae() {
|
|
34074
|
-
return
|
|
34074
|
+
return _I || (_I = 1, (function(e, t) {
|
|
34075
34075
|
(function(n) {
|
|
34076
34076
|
var i = t && !t.nodeType && t, r = e && !e.nodeType && e, o = typeof gl == "object" && gl;
|
|
34077
34077
|
(o.global === o || o.window === o || o.self === o) && (n = o);
|
|
@@ -34191,9 +34191,9 @@ function tae() {
|
|
|
34191
34191
|
})(nf, nf.exports)), nf.exports;
|
|
34192
34192
|
}
|
|
34193
34193
|
var Sg = { exports: {} };
|
|
34194
|
-
var nae = Sg.exports,
|
|
34194
|
+
var nae = Sg.exports, wI;
|
|
34195
34195
|
function iae() {
|
|
34196
|
-
return
|
|
34196
|
+
return wI || (wI = 1, (function(e) {
|
|
34197
34197
|
(function(t, n) {
|
|
34198
34198
|
e.exports ? e.exports = n() : t.IPv6 = n(t);
|
|
34199
34199
|
})(nae, function(t) {
|
|
@@ -34233,9 +34233,9 @@ function iae() {
|
|
|
34233
34233
|
})(Sg)), Sg.exports;
|
|
34234
34234
|
}
|
|
34235
34235
|
var Eg = { exports: {} };
|
|
34236
|
-
var rae = Eg.exports,
|
|
34236
|
+
var rae = Eg.exports, xI;
|
|
34237
34237
|
function oae() {
|
|
34238
|
-
return
|
|
34238
|
+
return xI || (xI = 1, (function(e) {
|
|
34239
34239
|
(function(t, n) {
|
|
34240
34240
|
e.exports ? e.exports = n() : t.SecondLevelDomains = n(t);
|
|
34241
34241
|
})(rae, function(t) {
|
|
@@ -34431,9 +34431,9 @@ function oae() {
|
|
|
34431
34431
|
});
|
|
34432
34432
|
})(Eg)), Eg.exports;
|
|
34433
34433
|
}
|
|
34434
|
-
var sae = xg.exports,
|
|
34434
|
+
var sae = xg.exports, SI;
|
|
34435
34435
|
function aae() {
|
|
34436
|
-
return
|
|
34436
|
+
return SI || (SI = 1, (function(e) {
|
|
34437
34437
|
(function(t, n) {
|
|
34438
34438
|
e.exports ? e.exports = n(tae(), iae(), oae()) : t.URI = n(t.punycode, t.IPv6, t.SecondLevelDomains, t);
|
|
34439
34439
|
})(sae, function(t, n, i, r) {
|
|
@@ -35408,11 +35408,11 @@ function hae(e) {
|
|
|
35408
35408
|
let n = t.path(), i = n.lastIndexOf("/");
|
|
35409
35409
|
return i !== -1 && (n = n.substr(i + 1)), i = n.lastIndexOf("."), i === -1 ? n = "" : n = n.substr(i + 1), n;
|
|
35410
35410
|
}
|
|
35411
|
-
const
|
|
35412
|
-
function
|
|
35411
|
+
const EI = {};
|
|
35412
|
+
function TI(e, t, n) {
|
|
35413
35413
|
w(t) || (t = e.width), w(n) || (n = e.height);
|
|
35414
|
-
let i =
|
|
35415
|
-
w(i) || (i = {},
|
|
35414
|
+
let i = EI[t];
|
|
35415
|
+
w(i) || (i = {}, EI[t] = i);
|
|
35416
35416
|
let r = i[n];
|
|
35417
35417
|
if (!w(r)) {
|
|
35418
35418
|
const o = document.createElement("canvas");
|
|
@@ -36039,7 +36039,7 @@ Ne.supportsImageBitmapOptions = function() {
|
|
|
36039
36039
|
createImageBitmap(t)
|
|
36040
36040
|
]);
|
|
36041
36041
|
}).then(function(t) {
|
|
36042
|
-
const n =
|
|
36042
|
+
const n = TI(t[0]), i = TI(t[1]);
|
|
36043
36043
|
return n[1] !== i[1];
|
|
36044
36044
|
}).catch(function() {
|
|
36045
36045
|
return !1;
|
|
@@ -36466,7 +36466,7 @@ function Tg(e, t) {
|
|
|
36466
36466
|
const n = decodeURIComponent(t);
|
|
36467
36467
|
return e ? atob(n) : n;
|
|
36468
36468
|
}
|
|
36469
|
-
function
|
|
36469
|
+
function CI(e, t) {
|
|
36470
36470
|
const n = Tg(e, t), i = new ArrayBuffer(n.length), r = new Uint8Array(i);
|
|
36471
36471
|
for (let o = 0; o < n.length; o++)
|
|
36472
36472
|
r[o] = n.charCodeAt(o);
|
|
@@ -36481,9 +36481,9 @@ function Pae(e, t) {
|
|
|
36481
36481
|
case "text":
|
|
36482
36482
|
return Tg(i, r);
|
|
36483
36483
|
case "arraybuffer":
|
|
36484
|
-
return
|
|
36484
|
+
return CI(i, r);
|
|
36485
36485
|
case "blob":
|
|
36486
|
-
return o =
|
|
36486
|
+
return o = CI(i, r), new Blob([o], {
|
|
36487
36487
|
type: n
|
|
36488
36488
|
});
|
|
36489
36489
|
case "document":
|
|
@@ -36735,7 +36735,7 @@ Ne.DEFAULT = Object.freeze(
|
|
|
36735
36735
|
})
|
|
36736
36736
|
);
|
|
36737
36737
|
function up(e) {
|
|
36738
|
-
e = e ?? We.EMPTY_OBJECT, this._dates = void 0, this._samples = void 0, this._dateColumn = -1, this._xPoleWanderRadiansColumn = -1, this._yPoleWanderRadiansColumn = -1, this._ut1MinusUtcSecondsColumn = -1, this._xCelestialPoleOffsetRadiansColumn = -1, this._yCelestialPoleOffsetRadiansColumn = -1, this._taiMinusUtcSecondsColumn = -1, this._columnCount = 0, this._lastIndex = -1, this._addNewLeapSeconds = e.addNewLeapSeconds ?? !0, w(e.data) ?
|
|
36738
|
+
e = e ?? We.EMPTY_OBJECT, this._dates = void 0, this._samples = void 0, this._dateColumn = -1, this._xPoleWanderRadiansColumn = -1, this._yPoleWanderRadiansColumn = -1, this._ut1MinusUtcSecondsColumn = -1, this._xCelestialPoleOffsetRadiansColumn = -1, this._yCelestialPoleOffsetRadiansColumn = -1, this._taiMinusUtcSecondsColumn = -1, this._columnCount = 0, this._lastIndex = -1, this._addNewLeapSeconds = e.addNewLeapSeconds ?? !0, w(e.data) ? RI(this, e.data) : RI(this, {
|
|
36739
36739
|
columnNames: [
|
|
36740
36740
|
"dateIso8601",
|
|
36741
36741
|
"modifiedJulianDateUtc",
|
|
@@ -36784,15 +36784,15 @@ up.prototype.compute = function(e, t) {
|
|
|
36784
36784
|
e
|
|
36785
36785
|
), u = !w(c), h = u || Fe.greaterThanOrEquals(c, e);
|
|
36786
36786
|
if (l && h)
|
|
36787
|
-
return r = i, !u && c.equals(e) && ++r, o = r + 1,
|
|
36787
|
+
return r = i, !u && c.equals(e) && ++r, o = r + 1, MI(this, n, this._samples, e, r, o, t), t;
|
|
36788
36788
|
}
|
|
36789
36789
|
let s = d0(n, e, Fe.compare, this._dateColumn);
|
|
36790
|
-
return s >= 0 ? (s < n.length - 1 && n[s + 1].equals(e) && ++s, r = s, o = s) : (o = ~s, r = o - 1, r < 0 && (r = 0)), this._lastIndex = r,
|
|
36790
|
+
return s >= 0 ? (s < n.length - 1 && n[s + 1].equals(e) && ++s, r = s, o = s) : (o = ~s, r = o - 1, r < 0 && (r = 0)), this._lastIndex = r, MI(this, n, this._samples, e, r, o, t), t;
|
|
36791
36791
|
};
|
|
36792
36792
|
function Vae(e, t) {
|
|
36793
36793
|
return Fe.compare(e.julianDate, t);
|
|
36794
36794
|
}
|
|
36795
|
-
function
|
|
36795
|
+
function RI(e, t) {
|
|
36796
36796
|
if (!w(t.columnNames))
|
|
36797
36797
|
throw new $n(
|
|
36798
36798
|
"Error in loaded EOP data: The columnNames property is required."
|
|
@@ -36832,22 +36832,22 @@ function R3(e, t) {
|
|
|
36832
36832
|
}
|
|
36833
36833
|
}
|
|
36834
36834
|
}
|
|
36835
|
-
function
|
|
36835
|
+
function II(e, t, n, i, r) {
|
|
36836
36836
|
const o = n * i;
|
|
36837
36837
|
r.xPoleWander = t[o + e._xPoleWanderRadiansColumn], r.yPoleWander = t[o + e._yPoleWanderRadiansColumn], r.xPoleOffset = t[o + e._xCelestialPoleOffsetRadiansColumn], r.yPoleOffset = t[o + e._yCelestialPoleOffsetRadiansColumn], r.ut1MinusUtc = t[o + e._ut1MinusUtcSecondsColumn];
|
|
36838
36838
|
}
|
|
36839
36839
|
function xd(e, t, n) {
|
|
36840
36840
|
return t + e * (n - t);
|
|
36841
36841
|
}
|
|
36842
|
-
function
|
|
36842
|
+
function MI(e, t, n, i, r, o, s) {
|
|
36843
36843
|
const a = e._columnCount;
|
|
36844
36844
|
if (o > t.length - 1)
|
|
36845
36845
|
return s.xPoleWander = 0, s.yPoleWander = 0, s.xPoleOffset = 0, s.yPoleOffset = 0, s.ut1MinusUtc = 0, s;
|
|
36846
36846
|
const c = t[r], l = t[o];
|
|
36847
36847
|
if (c.equals(l) || i.equals(c))
|
|
36848
|
-
return
|
|
36848
|
+
return II(e, n, r, a, s), s;
|
|
36849
36849
|
if (i.equals(l))
|
|
36850
|
-
return
|
|
36850
|
+
return II(e, n, o, a, s), s;
|
|
36851
36851
|
const u = Fe.secondsDifference(i, c) / Fe.secondsDifference(l, c), h = r * a, d = o * a;
|
|
36852
36852
|
let f = n[h + e._ut1MinusUtcSecondsColumn], p = n[d + e._ut1MinusUtcSecondsColumn];
|
|
36853
36853
|
const m = p - f;
|
|
@@ -37115,28 +37115,28 @@ Ie.fromRotationMatrix = function(e, t) {
|
|
|
37115
37115
|
}
|
|
37116
37116
|
return w(t) ? (t.x = i, t.y = r, t.z = o, t.w = s, t) : new Ie(i, r, o, s);
|
|
37117
37117
|
};
|
|
37118
|
-
const
|
|
37119
|
-
let
|
|
37118
|
+
const PI = new Ie();
|
|
37119
|
+
let LI = new Ie(), rv = new Ie(), OI = new Ie();
|
|
37120
37120
|
Ie.fromHeadingPitchRoll = function(e, t) {
|
|
37121
|
-
return C.typeOf.object("headingPitchRoll", e),
|
|
37121
|
+
return C.typeOf.object("headingPitchRoll", e), OI = Ie.fromAxisAngle(
|
|
37122
37122
|
b.UNIT_X,
|
|
37123
37123
|
e.roll,
|
|
37124
|
-
|
|
37124
|
+
PI
|
|
37125
37125
|
), rv = Ie.fromAxisAngle(
|
|
37126
37126
|
b.UNIT_Y,
|
|
37127
37127
|
-e.pitch,
|
|
37128
37128
|
t
|
|
37129
37129
|
), t = Ie.multiply(
|
|
37130
37130
|
rv,
|
|
37131
|
-
|
|
37131
|
+
OI,
|
|
37132
37132
|
rv
|
|
37133
|
-
),
|
|
37133
|
+
), LI = Ie.fromAxisAngle(
|
|
37134
37134
|
b.UNIT_Z,
|
|
37135
37135
|
-e.heading,
|
|
37136
|
-
|
|
37137
|
-
), Ie.multiply(
|
|
37136
|
+
PI
|
|
37137
|
+
), Ie.multiply(LI, t, t);
|
|
37138
37138
|
};
|
|
37139
|
-
const vm = new b(), ov = new b(), qo = new Ie(),
|
|
37139
|
+
const vm = new b(), ov = new b(), qo = new Ie(), VI = new Ie(), _m = new Ie();
|
|
37140
37140
|
Ie.packedLength = 4;
|
|
37141
37141
|
Ie.pack = function(e, t, n) {
|
|
37142
37142
|
return C.typeOf.object("value", e), C.defined("array", t), n = n ?? 0, t[n++] = e.x, t[n++] = e.y, t[n++] = e.z, t[n] = e.w, t;
|
|
@@ -37178,13 +37178,13 @@ Ie.convertPackedArrayForInterpolation = function(e, t, n, i) {
|
|
|
37178
37178
|
Ie.unpackInterpolationResult = function(e, t, n, i, r) {
|
|
37179
37179
|
w(r) || (r = new Ie()), b.fromArray(e, 0, ov);
|
|
37180
37180
|
const o = b.magnitude(ov);
|
|
37181
|
-
return Ie.unpack(t, i * 4,
|
|
37181
|
+
return Ie.unpack(t, i * 4, VI), o === 0 ? Ie.clone(Ie.IDENTITY, qo) : Ie.fromAxisAngle(
|
|
37182
37182
|
ov,
|
|
37183
37183
|
o,
|
|
37184
37184
|
qo
|
|
37185
37185
|
), Ie.multiply(
|
|
37186
37186
|
qo,
|
|
37187
|
-
|
|
37187
|
+
VI,
|
|
37188
37188
|
r
|
|
37189
37189
|
);
|
|
37190
37190
|
};
|
|
@@ -37254,11 +37254,11 @@ let sv = new Ie();
|
|
|
37254
37254
|
Ie.lerp = function(e, t, n, i) {
|
|
37255
37255
|
return C.typeOf.object("start", e), C.typeOf.object("end", t), C.typeOf.number("t", n), C.typeOf.object("result", i), sv = Ie.multiplyByScalar(t, n, sv), i = Ie.multiplyByScalar(e, 1 - n, i), Ie.add(sv, i, i);
|
|
37256
37256
|
};
|
|
37257
|
-
let
|
|
37257
|
+
let GI = new Ie(), av = new Ie(), cv = new Ie();
|
|
37258
37258
|
Ie.slerp = function(e, t, n, i) {
|
|
37259
37259
|
C.typeOf.object("start", e), C.typeOf.object("end", t), C.typeOf.number("t", n), C.typeOf.object("result", i);
|
|
37260
37260
|
let r = Ie.dot(e, t), o = t;
|
|
37261
|
-
if (r < 0 && (r = -r, o =
|
|
37261
|
+
if (r < 0 && (r = -r, o = GI = Ie.negate(t, GI)), 1 - r < U.EPSILON6)
|
|
37262
37262
|
return Ie.lerp(e, o, n, i);
|
|
37263
37263
|
const s = Math.acos(r);
|
|
37264
37264
|
return av = Ie.multiplyByScalar(
|
|
@@ -37510,15 +37510,15 @@ St.headingPitchRollQuaternion = function(e, t, n, i, r) {
|
|
|
37510
37510
|
), s = ie.getMatrix3(o, Yae);
|
|
37511
37511
|
return Ie.fromRotationMatrix(s, r);
|
|
37512
37512
|
};
|
|
37513
|
-
const Hae = new b(1, 1, 1), jae = new b(),
|
|
37513
|
+
const Hae = new b(1, 1, 1), jae = new b(), FI = new ie(), Kae = new ie(), Jae = new te(), Qae = new Ie();
|
|
37514
37514
|
St.fixedFrameToHeadingPitchRoll = function(e, t, n, i) {
|
|
37515
37515
|
C.defined("transform", e), t = t ?? st.default, n = n ?? St.eastNorthUpToFixedFrame, w(i) || (i = new Gi());
|
|
37516
37516
|
const r = ie.getTranslation(e, jae);
|
|
37517
37517
|
if (b.equals(r, b.ZERO))
|
|
37518
37518
|
return i.heading = 0, i.pitch = 0, i.roll = 0, i;
|
|
37519
37519
|
let o = ie.inverseTransformation(
|
|
37520
|
-
n(r, t,
|
|
37521
|
-
|
|
37520
|
+
n(r, t, FI),
|
|
37521
|
+
FI
|
|
37522
37522
|
), s = ie.setScale(e, Hae, Kae);
|
|
37523
37523
|
s = ie.setTranslation(
|
|
37524
37524
|
s,
|
|
@@ -38012,11 +38012,11 @@ xn.fromPoints = function(e, t) {
|
|
|
38012
38012
|
}
|
|
38013
38013
|
return t.x = i, t.y = r, t.width = o - i, t.height = s - r, t;
|
|
38014
38014
|
};
|
|
38015
|
-
const
|
|
38015
|
+
const AI = new ps(), Ece = new Ce(), Tce = new Ce();
|
|
38016
38016
|
xn.fromRectangle = function(e, t, n) {
|
|
38017
38017
|
if (w(n) || (n = new xn()), !w(e))
|
|
38018
38018
|
return n.x = 0, n.y = 0, n.width = 0, n.height = 0, n;
|
|
38019
|
-
|
|
38019
|
+
AI._ellipsoid = st.default, t = t ?? AI;
|
|
38020
38020
|
const i = t.project(
|
|
38021
38021
|
Ke.southwest(e, Ece)
|
|
38022
38022
|
), r = t.project(
|
|
@@ -39499,7 +39499,7 @@ const Cg = {
|
|
|
39499
39499
|
Cg.validate = function(e) {
|
|
39500
39500
|
return e === Cg.CLOCKWISE || e === Cg.COUNTER_CLOCKWISE;
|
|
39501
39501
|
};
|
|
39502
|
-
const
|
|
39502
|
+
const NI = Object.freeze(Cg);
|
|
39503
39503
|
function eF(e) {
|
|
39504
39504
|
if (typeof e != "object" || e === null)
|
|
39505
39505
|
return e;
|
|
@@ -39509,7 +39509,7 @@ function eF(e) {
|
|
|
39509
39509
|
t = n[i], e.hasOwnProperty(t) && t !== "_applyFunctions" && (e[t] = eF(e[t]));
|
|
39510
39510
|
return Object.freeze(e);
|
|
39511
39511
|
}
|
|
39512
|
-
function
|
|
39512
|
+
function zI(e) {
|
|
39513
39513
|
return e === J.FUNC_ADD || e === J.FUNC_SUBTRACT || e === J.FUNC_REVERSE_SUBTRACT || e === J.MIN || e === J.MAX;
|
|
39514
39514
|
}
|
|
39515
39515
|
function Em(e) {
|
|
@@ -39521,7 +39521,7 @@ function Cce(e) {
|
|
|
39521
39521
|
function Rce(e) {
|
|
39522
39522
|
return e === J.NEVER || e === J.LESS || e === J.EQUAL || e === J.LEQUAL || e === J.GREATER || e === J.NOTEQUAL || e === J.GEQUAL || e === J.ALWAYS;
|
|
39523
39523
|
}
|
|
39524
|
-
function
|
|
39524
|
+
function ZI(e) {
|
|
39525
39525
|
return e === J.NEVER || e === J.LESS || e === J.EQUAL || e === J.LEQUAL || e === J.GREATER || e === J.NOTEQUAL || e === J.GEQUAL || e === J.ALWAYS;
|
|
39526
39526
|
}
|
|
39527
39527
|
function yu(e) {
|
|
@@ -39529,7 +39529,7 @@ function yu(e) {
|
|
|
39529
39529
|
}
|
|
39530
39530
|
function En(e) {
|
|
39531
39531
|
const t = e ?? We.EMPTY_OBJECT, n = t.cull ?? We.EMPTY_OBJECT, i = t.polygonOffset ?? We.EMPTY_OBJECT, r = t.scissorTest ?? We.EMPTY_OBJECT, o = r.rectangle ?? We.EMPTY_OBJECT, s = t.depthRange ?? We.EMPTY_OBJECT, a = t.depthTest ?? We.EMPTY_OBJECT, c = t.colorMask ?? We.EMPTY_OBJECT, l = t.blending ?? We.EMPTY_OBJECT, u = l.color ?? We.EMPTY_OBJECT, h = t.stencilTest ?? We.EMPTY_OBJECT, d = h.frontOperation ?? We.EMPTY_OBJECT, f = h.backOperation ?? We.EMPTY_OBJECT, p = t.sampleCoverage ?? We.EMPTY_OBJECT, m = t.viewport;
|
|
39532
|
-
if (this.frontFace = t.frontFace ??
|
|
39532
|
+
if (this.frontFace = t.frontFace ?? NI.COUNTER_CLOCKWISE, this.cull = {
|
|
39533
39533
|
enabled: n.enabled ?? !1,
|
|
39534
39534
|
face: n.face ?? J.BACK
|
|
39535
39535
|
}, this.lineWidth = t.lineWidth ?? 1, this.polygonOffset = {
|
|
@@ -39594,7 +39594,7 @@ function En(e) {
|
|
|
39594
39594
|
throw new F(
|
|
39595
39595
|
"renderState.lineWidth is out of range. Check minimumAliasedLineWidth and maximumAliasedLineWidth."
|
|
39596
39596
|
);
|
|
39597
|
-
if (!
|
|
39597
|
+
if (!NI.validate(this.frontFace))
|
|
39598
39598
|
throw new F("Invalid renderState.frontFace.");
|
|
39599
39599
|
if (!Cce(this.cull.face))
|
|
39600
39600
|
throw new F("Invalid renderState.cull.face.");
|
|
@@ -39620,9 +39620,9 @@ function En(e) {
|
|
|
39620
39620
|
throw new F(
|
|
39621
39621
|
"renderState.blending.color components must be greater than or equal to zero and less than or equal to one."
|
|
39622
39622
|
);
|
|
39623
|
-
if (!
|
|
39623
|
+
if (!zI(this.blending.equationRgb))
|
|
39624
39624
|
throw new F("Invalid renderState.blending.equationRgb.");
|
|
39625
|
-
if (!
|
|
39625
|
+
if (!zI(this.blending.equationAlpha))
|
|
39626
39626
|
throw new F("Invalid renderState.blending.equationAlpha.");
|
|
39627
39627
|
if (!Em(this.blending.functionSourceRgb))
|
|
39628
39628
|
throw new F("Invalid renderState.blending.functionSourceRgb.");
|
|
@@ -39638,9 +39638,9 @@ function En(e) {
|
|
|
39638
39638
|
throw new F(
|
|
39639
39639
|
"Invalid renderState.blending.functionDestinationAlpha."
|
|
39640
39640
|
);
|
|
39641
|
-
if (!
|
|
39641
|
+
if (!ZI(this.stencilTest.frontFunction))
|
|
39642
39642
|
throw new F("Invalid renderState.stencilTest.frontFunction.");
|
|
39643
|
-
if (!
|
|
39643
|
+
if (!ZI(this.stencilTest.backFunction))
|
|
39644
39644
|
throw new F("Invalid renderState.stencilTest.backFunction.");
|
|
39645
39645
|
if (!yu(this.stencilTest.frontOperation.fail))
|
|
39646
39646
|
throw new F(
|
|
@@ -39981,17 +39981,17 @@ He.setUniformScale = function(e, t, n) {
|
|
|
39981
39981
|
const i = He.getScale(e, Vce), r = t / i.x, o = t / i.y;
|
|
39982
39982
|
return n[0] = e[0] * r, n[1] = e[1] * r, n[2] = e[2] * o, n[3] = e[3] * o, n;
|
|
39983
39983
|
};
|
|
39984
|
-
const
|
|
39984
|
+
const XI = new le();
|
|
39985
39985
|
He.getScale = function(e, t) {
|
|
39986
39986
|
return C.typeOf.object("matrix", e), C.typeOf.object("result", t), t.x = le.magnitude(
|
|
39987
|
-
le.fromElements(e[0], e[1],
|
|
39987
|
+
le.fromElements(e[0], e[1], XI)
|
|
39988
39988
|
), t.y = le.magnitude(
|
|
39989
|
-
le.fromElements(e[2], e[3],
|
|
39989
|
+
le.fromElements(e[2], e[3], XI)
|
|
39990
39990
|
), t;
|
|
39991
39991
|
};
|
|
39992
|
-
const
|
|
39992
|
+
const UI = new le();
|
|
39993
39993
|
He.getMaximumScale = function(e) {
|
|
39994
|
-
return He.getScale(e,
|
|
39994
|
+
return He.getScale(e, UI), le.maximumComponent(UI);
|
|
39995
39995
|
};
|
|
39996
39996
|
const Gce = new le();
|
|
39997
39997
|
He.setRotation = function(e, t, n) {
|
|
@@ -40516,7 +40516,7 @@ Object.defineProperties(cr.prototype, {
|
|
|
40516
40516
|
}
|
|
40517
40517
|
}
|
|
40518
40518
|
});
|
|
40519
|
-
function
|
|
40519
|
+
function DI(e) {
|
|
40520
40520
|
const t = [], n = e.match(/uniform.*?(?![^{]*})(?=[=\[;])/g);
|
|
40521
40521
|
if (w(n)) {
|
|
40522
40522
|
const i = n.length;
|
|
@@ -40531,7 +40531,7 @@ function Dce(e, t) {
|
|
|
40531
40531
|
const n = {};
|
|
40532
40532
|
if (!Pt.highpFloatSupported || !Pt.highpIntSupported) {
|
|
40533
40533
|
let i, r, o, s;
|
|
40534
|
-
const a =
|
|
40534
|
+
const a = DI(e), c = DI(t), l = a.length, u = c.length;
|
|
40535
40535
|
for (i = 0; i < l; i++)
|
|
40536
40536
|
for (r = 0; r < u; r++)
|
|
40537
40537
|
if (a[i] === c[r]) {
|
|
@@ -40963,7 +40963,7 @@ Dn.computeNumberOfVertices = function(e) {
|
|
|
40963
40963
|
}
|
|
40964
40964
|
return t;
|
|
40965
40965
|
};
|
|
40966
|
-
const Kce = new Ce(), Jce = new b(),
|
|
40966
|
+
const Kce = new Ce(), Jce = new b(), WI = new ie(), Qce = [
|
|
40967
40967
|
new Ce(),
|
|
40968
40968
|
new Ce(),
|
|
40969
40969
|
new Ce()
|
|
@@ -40984,10 +40984,10 @@ Dn._textureCoordinateRotationPoints = function(e, t, n, i) {
|
|
|
40984
40984
|
), a = St.eastNorthUpToFixedFrame(
|
|
40985
40985
|
s,
|
|
40986
40986
|
n,
|
|
40987
|
-
|
|
40987
|
+
WI
|
|
40988
40988
|
), c = ie.inverse(
|
|
40989
40989
|
a,
|
|
40990
|
-
|
|
40990
|
+
WI
|
|
40991
40991
|
), l = qce, u = Qce;
|
|
40992
40992
|
u[0].longitude = i.west, u[0].latitude = i.south, u[1].longitude = i.west, u[1].latitude = i.north, u[2].longitude = i.east, u[2].latitude = i.south;
|
|
40993
40993
|
let h = ele;
|
|
@@ -41417,7 +41417,7 @@ Ge.fromPoints = function(e, t) {
|
|
|
41417
41417
|
}
|
|
41418
41418
|
return x < L ? (b.clone(y, t.center), t.radius = x) : (b.clone(M, t.center), t.radius = L), t;
|
|
41419
41419
|
};
|
|
41420
|
-
const
|
|
41420
|
+
const kI = new ps(), hle = new b(), dle = new b(), mv = new Ce(), gv = new Ce();
|
|
41421
41421
|
Ge.fromRectangle2D = function(e, t, n) {
|
|
41422
41422
|
return Ge.fromRectangleWithHeights2D(
|
|
41423
41423
|
e,
|
|
@@ -41430,7 +41430,7 @@ Ge.fromRectangle2D = function(e, t, n) {
|
|
|
41430
41430
|
Ge.fromRectangleWithHeights2D = function(e, t, n, i, r) {
|
|
41431
41431
|
if (w(r) || (r = new Ge()), !w(e))
|
|
41432
41432
|
return r.center = b.clone(b.ZERO, r.center), r.radius = 0, r;
|
|
41433
|
-
|
|
41433
|
+
kI._ellipsoid = st.default, t = t ?? kI, Ke.southwest(e, mv), mv.height = n, Ke.northeast(e, gv), gv.height = i;
|
|
41434
41434
|
const o = t.project(
|
|
41435
41435
|
mv,
|
|
41436
41436
|
hle
|
|
@@ -41693,17 +41693,17 @@ Ge.computePlaneDistances = function(e, t, n, i) {
|
|
|
41693
41693
|
), o = b.dot(n, r);
|
|
41694
41694
|
return i.start = o - e.radius, i.stop = o + e.radius, i;
|
|
41695
41695
|
};
|
|
41696
|
-
const
|
|
41696
|
+
const BI = new b(), Tle = new b(), Cle = new b(), Rle = new b(), Ile = new b(), Mle = new Ce(), UF = new Array(8);
|
|
41697
41697
|
for (let e = 0; e < 8; ++e)
|
|
41698
41698
|
UF[e] = new b();
|
|
41699
|
-
const
|
|
41699
|
+
const YI = new ps();
|
|
41700
41700
|
Ge.projectTo2D = function(e, t, n) {
|
|
41701
|
-
C.typeOf.object("sphere", e),
|
|
41701
|
+
C.typeOf.object("sphere", e), YI._ellipsoid = st.default, t = t ?? YI;
|
|
41702
41702
|
const i = t.ellipsoid;
|
|
41703
41703
|
let r = e.center;
|
|
41704
41704
|
const o = e.radius;
|
|
41705
41705
|
let s;
|
|
41706
|
-
b.equals(r, b.ZERO) ? s = b.clone(b.UNIT_X,
|
|
41706
|
+
b.equals(r, b.ZERO) ? s = b.clone(b.UNIT_X, BI) : s = i.geodeticSurfaceNormal(r, BI);
|
|
41707
41707
|
const a = b.cross(
|
|
41708
41708
|
b.UNIT_Z,
|
|
41709
41709
|
s,
|
|
@@ -41871,7 +41871,7 @@ kr.pack = function(e, t, n) {
|
|
|
41871
41871
|
n + 2 * b.packedLength
|
|
41872
41872
|
), t[n + 2 * b.packedLength + Bt.packedLength] = e._offsetAttribute ?? -1, t;
|
|
41873
41873
|
};
|
|
41874
|
-
const DF = new b(), WF = new b(), kF = new Bt(),
|
|
41874
|
+
const DF = new b(), WF = new b(), kF = new Bt(), HI = {
|
|
41875
41875
|
minimum: DF,
|
|
41876
41876
|
maximum: WF,
|
|
41877
41877
|
vertexFormat: kF,
|
|
@@ -41888,7 +41888,7 @@ kr.unpack = function(e, t, n) {
|
|
|
41888
41888
|
t + 2 * b.packedLength,
|
|
41889
41889
|
kF
|
|
41890
41890
|
), s = e[t + 2 * b.packedLength + Bt.packedLength];
|
|
41891
|
-
return w(n) ? (n._minimum = b.clone(i, n._minimum), n._maximum = b.clone(r, n._maximum), n._vertexFormat = Bt.clone(o, n._vertexFormat), n._offsetAttribute = s === -1 ? void 0 : s, n) : (
|
|
41891
|
+
return w(n) ? (n._minimum = b.clone(i, n._minimum), n._maximum = b.clone(r, n._maximum), n._vertexFormat = Bt.clone(o, n._vertexFormat), n._offsetAttribute = s === -1 ? void 0 : s, n) : (HI.offsetAttribute = s === -1 ? void 0 : s, new kr(HI));
|
|
41892
41892
|
};
|
|
41893
41893
|
kr.createGeometry = function(e) {
|
|
41894
41894
|
const t = e._minimum, n = e._maximum, i = e._vertexFormat;
|
|
@@ -42097,7 +42097,7 @@ jt.getGlslType = function(e) {
|
|
|
42097
42097
|
throw new F("attributeType is not a valid value.");
|
|
42098
42098
|
}
|
|
42099
42099
|
};
|
|
42100
|
-
const BF = Object.freeze(jt),
|
|
42100
|
+
const BF = Object.freeze(jt), jI = 1 / 256, KI = 256, Wt = {};
|
|
42101
42101
|
Wt.octEncodeInRange = function(e, t, n) {
|
|
42102
42102
|
C.defined("vector", e), C.defined("result", n);
|
|
42103
42103
|
const i = b.magnitudeSquared(e);
|
|
@@ -42112,12 +42112,12 @@ Wt.octEncodeInRange = function(e, t, n) {
|
|
|
42112
42112
|
Wt.octEncode = function(e, t) {
|
|
42113
42113
|
return Wt.octEncodeInRange(e, 255, t);
|
|
42114
42114
|
};
|
|
42115
|
-
const Ed = new le(),
|
|
42115
|
+
const Ed = new le(), JI = new Uint8Array(1);
|
|
42116
42116
|
function Tm(e) {
|
|
42117
|
-
return
|
|
42117
|
+
return JI[0] = e, JI[0];
|
|
42118
42118
|
}
|
|
42119
42119
|
Wt.octEncodeToCartesian4 = function(e, t) {
|
|
42120
|
-
return Wt.octEncodeInRange(e, 65535, Ed), t.x = Tm(Ed.x *
|
|
42120
|
+
return Wt.octEncodeInRange(e, 65535, Ed), t.x = Tm(Ed.x * jI), t.y = Tm(Ed.x), t.z = Tm(Ed.y * jI), t.w = Tm(Ed.y), t;
|
|
42121
42121
|
};
|
|
42122
42122
|
Wt.octDecodeInRange = function(e, t, n, i) {
|
|
42123
42123
|
if (C.defined("result", i), e < 0 || e > n || t < 0 || t > n)
|
|
@@ -42140,7 +42140,7 @@ Wt.octDecodeFromCartesian4 = function(e, t) {
|
|
|
42140
42140
|
throw new F(
|
|
42141
42141
|
"x, y, z, and w must be unsigned normalized integers between 0 and 255"
|
|
42142
42142
|
);
|
|
42143
|
-
const s = n *
|
|
42143
|
+
const s = n * KI + i, a = r * KI + o;
|
|
42144
42144
|
return Wt.octDecodeInRange(s, a, 65535, t);
|
|
42145
42145
|
};
|
|
42146
42146
|
Wt.octPackFloat = function(e) {
|
|
@@ -42258,7 +42258,7 @@ Wt.decodeRGB565 = function(e, t) {
|
|
|
42258
42258
|
}
|
|
42259
42259
|
return t;
|
|
42260
42260
|
};
|
|
42261
|
-
const
|
|
42261
|
+
const QI = new b(), qI = new b(), $I = new b();
|
|
42262
42262
|
function Ole(e, t, n, i, r) {
|
|
42263
42263
|
C.defined("point", e), C.defined("p0", t), C.defined("p1", n), C.defined("p2", i), w(r) || (r = new b());
|
|
42264
42264
|
let o, s, a, c, l, u, h, d;
|
|
@@ -42269,7 +42269,7 @@ function Ole(e, t, n, i, r) {
|
|
|
42269
42269
|
return b.clone(b.UNIT_Y, r);
|
|
42270
42270
|
if (b.equalsEpsilon(e, i, U.EPSILON14))
|
|
42271
42271
|
return b.clone(b.UNIT_Z, r);
|
|
42272
|
-
o = b.subtract(n, t,
|
|
42272
|
+
o = b.subtract(n, t, QI), s = b.subtract(i, t, qI), a = b.subtract(e, t, $I), c = b.dot(o, o), l = b.dot(o, s), u = b.dot(o, a), h = b.dot(s, s), d = b.dot(s, a);
|
|
42273
42273
|
} else {
|
|
42274
42274
|
if (le.equalsEpsilon(e, t, U.EPSILON14))
|
|
42275
42275
|
return b.clone(b.UNIT_X, r);
|
|
@@ -42277,7 +42277,7 @@ function Ole(e, t, n, i, r) {
|
|
|
42277
42277
|
return b.clone(b.UNIT_Y, r);
|
|
42278
42278
|
if (le.equalsEpsilon(e, i, U.EPSILON14))
|
|
42279
42279
|
return b.clone(b.UNIT_Z, r);
|
|
42280
|
-
o = le.subtract(n, t,
|
|
42280
|
+
o = le.subtract(n, t, QI), s = le.subtract(i, t, qI), a = le.subtract(e, t, $I), c = le.dot(o, o), l = le.dot(o, s), u = le.dot(o, a), h = le.dot(s, s), d = le.dot(s, a);
|
|
42281
42281
|
}
|
|
42282
42282
|
r.y = h * u - l * d, r.z = c * d - l * u;
|
|
42283
42283
|
const f = c * h - l * l;
|
|
@@ -42320,7 +42320,7 @@ as.computeDiscriminant = function(e, t, n) {
|
|
|
42320
42320
|
throw new F("c is a required number.");
|
|
42321
42321
|
return t * t - 4 * e * n;
|
|
42322
42322
|
};
|
|
42323
|
-
function
|
|
42323
|
+
function e3(e, t, n) {
|
|
42324
42324
|
const i = e + t;
|
|
42325
42325
|
return U.sign(e) !== U.sign(t) && Math.abs(i / Math.max(Math.abs(e), Math.abs(t))) < n ? 0 : i;
|
|
42326
42326
|
}
|
|
@@ -42348,10 +42348,10 @@ as.computeRealRoots = function(e, t, n) {
|
|
|
42348
42348
|
return [-u, u];
|
|
42349
42349
|
} else if (n === 0)
|
|
42350
42350
|
return i = -t / e, i < 0 ? [i, 0] : [0, i];
|
|
42351
|
-
const r = t * t, o = 4 * e * n, s =
|
|
42351
|
+
const r = t * t, o = 4 * e * n, s = e3(r, -o, U.EPSILON14);
|
|
42352
42352
|
if (s < 0)
|
|
42353
42353
|
return [];
|
|
42354
|
-
const a = -0.5 *
|
|
42354
|
+
const a = -0.5 * e3(
|
|
42355
42355
|
t,
|
|
42356
42356
|
U.sign(t) * Math.sqrt(s),
|
|
42357
42357
|
U.EPSILON14
|
|
@@ -42570,7 +42570,7 @@ Ut.rayPlane = function(e, t, n) {
|
|
|
42570
42570
|
if (!(a < 0))
|
|
42571
42571
|
return n = b.multiplyByScalar(r, a, n), b.add(i, n, n);
|
|
42572
42572
|
};
|
|
42573
|
-
const Vle = new b(), Gle = new b(), YF = new b(),
|
|
42573
|
+
const Vle = new b(), Gle = new b(), YF = new b(), t3 = new b(), n3 = new b();
|
|
42574
42574
|
Ut.rayTriangleParametric = function(e, t, n, i, r) {
|
|
42575
42575
|
if (!w(e))
|
|
42576
42576
|
throw new F("ray is required.");
|
|
@@ -42584,14 +42584,14 @@ Ut.rayTriangleParametric = function(e, t, n, i, r) {
|
|
|
42584
42584
|
const o = e.origin, s = e.direction, a = b.subtract(n, t, Vle), c = b.subtract(i, t, Gle), l = b.cross(s, c, YF), u = b.dot(a, l);
|
|
42585
42585
|
let h, d, f, p, m;
|
|
42586
42586
|
if (r) {
|
|
42587
|
-
if (u < U.EPSILON6 || (h = b.subtract(o, t,
|
|
42587
|
+
if (u < U.EPSILON6 || (h = b.subtract(o, t, t3), f = b.dot(h, l), f < 0 || f > u) || (d = b.cross(h, a, n3), p = b.dot(s, d), p < 0 || f + p > u))
|
|
42588
42588
|
return;
|
|
42589
42589
|
m = b.dot(c, d) / u;
|
|
42590
42590
|
} else {
|
|
42591
42591
|
if (Math.abs(u) < U.EPSILON6)
|
|
42592
42592
|
return;
|
|
42593
42593
|
const _ = 1 / u;
|
|
42594
|
-
if (h = b.subtract(o, t,
|
|
42594
|
+
if (h = b.subtract(o, t, t3), f = b.dot(h, l) * _, f < 0 || f > 1 || (d = b.cross(h, a, n3), p = b.dot(s, d) * _, p < 0 || f + p > 1))
|
|
42595
42595
|
return;
|
|
42596
42596
|
m = b.dot(c, d) * _;
|
|
42597
42597
|
}
|
|
@@ -42803,7 +42803,7 @@ Ut.quadraticVectorExpression = function(e, t, n, i, r) {
|
|
|
42803
42803
|
}
|
|
42804
42804
|
return f;
|
|
42805
42805
|
};
|
|
42806
|
-
const xv = new b(),
|
|
42806
|
+
const xv = new b(), i3 = new b(), r3 = new b(), Cm = new b(), kle = new b(), Ble = new te(), Yle = new te(), Hle = new te(), jle = new te(), Kle = new te(), o3 = new te(), s3 = new te(), a3 = new b(), Jle = new b(), Qle = new Ce();
|
|
42807
42807
|
Ut.grazingAltitudeLocation = function(e, t) {
|
|
42808
42808
|
if (!w(e))
|
|
42809
42809
|
throw new F("ray is required.");
|
|
@@ -42819,23 +42819,23 @@ Ut.grazingAltitudeLocation = function(e, t) {
|
|
|
42819
42819
|
i,
|
|
42820
42820
|
xv
|
|
42821
42821
|
), s = b.normalize(o, o), a = b.mostOrthogonalAxis(o, Cm), c = b.normalize(
|
|
42822
|
-
b.cross(a, s,
|
|
42823
|
-
|
|
42822
|
+
b.cross(a, s, i3),
|
|
42823
|
+
i3
|
|
42824
42824
|
), l = b.normalize(
|
|
42825
|
-
b.cross(s, c,
|
|
42826
|
-
|
|
42825
|
+
b.cross(s, c, r3),
|
|
42826
|
+
r3
|
|
42827
42827
|
), u = Ble;
|
|
42828
42828
|
u[0] = s.x, u[1] = s.y, u[2] = s.z, u[3] = c.x, u[4] = c.y, u[5] = c.z, u[6] = l.x, u[7] = l.y, u[8] = l.z;
|
|
42829
42829
|
const h = te.transpose(u, Yle), d = te.fromScale(t.radii, Hle), f = te.fromScale(t.oneOverRadii, jle), p = Kle;
|
|
42830
42830
|
p[0] = 0, p[1] = -i.z, p[2] = i.y, p[3] = i.z, p[4] = 0, p[5] = -i.x, p[6] = -i.y, p[7] = i.x, p[8] = 0;
|
|
42831
42831
|
const m = te.multiply(
|
|
42832
|
-
te.multiply(h, f,
|
|
42832
|
+
te.multiply(h, f, o3),
|
|
42833
42833
|
p,
|
|
42834
|
-
|
|
42834
|
+
o3
|
|
42835
42835
|
), _ = te.multiply(
|
|
42836
|
-
te.multiply(m, d,
|
|
42836
|
+
te.multiply(m, d, s3),
|
|
42837
42837
|
u,
|
|
42838
|
-
|
|
42838
|
+
s3
|
|
42839
42839
|
), y = te.multiplyByVector(m, n, kle), v = Ut.quadraticVectorExpression(
|
|
42840
42840
|
_,
|
|
42841
42841
|
b.negate(y, xv),
|
|
@@ -42850,8 +42850,8 @@ Ut.grazingAltitudeLocation = function(e, t) {
|
|
|
42850
42850
|
for (let P = 0; P < R; ++P) {
|
|
42851
42851
|
x = te.multiplyByVector(
|
|
42852
42852
|
d,
|
|
42853
|
-
te.multiplyByVector(u, v[P],
|
|
42854
|
-
|
|
42853
|
+
te.multiplyByVector(u, v[P], a3),
|
|
42854
|
+
a3
|
|
42855
42855
|
);
|
|
42856
42856
|
const A = b.normalize(
|
|
42857
42857
|
b.subtract(x, n, Cm),
|
|
@@ -43374,7 +43374,7 @@ an.reorderForPostVertexCache = function(e, t) {
|
|
|
43374
43374
|
}
|
|
43375
43375
|
return e;
|
|
43376
43376
|
};
|
|
43377
|
-
function
|
|
43377
|
+
function c3(e) {
|
|
43378
43378
|
const t = {};
|
|
43379
43379
|
for (const n in e)
|
|
43380
43380
|
if (e.hasOwnProperty(n) && w(e[n]) && w(e[n].values)) {
|
|
@@ -43407,7 +43407,7 @@ an.fitToUnsignedShortIndices = function(e) {
|
|
|
43407
43407
|
);
|
|
43408
43408
|
const t = [], n = Dn.computeNumberOfVertices(e);
|
|
43409
43409
|
if (w(e.indices) && n >= U.SIXTY_FOUR_KILOBYTES) {
|
|
43410
|
-
let i = [], r = [], o = 0, s =
|
|
43410
|
+
let i = [], r = [], o = 0, s = c3(e.attributes);
|
|
43411
43411
|
const a = e.indices, c = a.length;
|
|
43412
43412
|
let l;
|
|
43413
43413
|
e.primitiveType === pn.TRIANGLES ? l = 3 : e.primitiveType === pn.LINES ? l = 2 : e.primitiveType === pn.POINTS && (l = 1);
|
|
@@ -43425,7 +43425,7 @@ an.fitToUnsignedShortIndices = function(e) {
|
|
|
43425
43425
|
boundingSphere: e.boundingSphere,
|
|
43426
43426
|
boundingSphereCV: e.boundingSphereCV
|
|
43427
43427
|
})
|
|
43428
|
-
), i = [], r = [], o = 0, s =
|
|
43428
|
+
), i = [], r = [], o = 0, s = c3(e.attributes));
|
|
43429
43429
|
}
|
|
43430
43430
|
r.length !== 0 && t.push(
|
|
43431
43431
|
new Dn({
|
|
@@ -43440,7 +43440,7 @@ an.fitToUnsignedShortIndices = function(e) {
|
|
|
43440
43440
|
t.push(e);
|
|
43441
43441
|
return t;
|
|
43442
43442
|
};
|
|
43443
|
-
const
|
|
43443
|
+
const l3 = new b(), cue = new Ce();
|
|
43444
43444
|
an.projectTo2D = function(e, t, n, i, r) {
|
|
43445
43445
|
if (!w(e))
|
|
43446
43446
|
throw new F("geometry is required.");
|
|
@@ -43466,7 +43466,7 @@ an.projectTo2D = function(e, t, n, i, r) {
|
|
|
43466
43466
|
const h = b.fromArray(
|
|
43467
43467
|
a,
|
|
43468
43468
|
u,
|
|
43469
|
-
|
|
43469
|
+
l3
|
|
43470
43470
|
), d = s.cartesianToCartographic(
|
|
43471
43471
|
h,
|
|
43472
43472
|
cue
|
|
@@ -43477,7 +43477,7 @@ an.projectTo2D = function(e, t, n, i, r) {
|
|
|
43477
43477
|
);
|
|
43478
43478
|
const f = r.project(
|
|
43479
43479
|
d,
|
|
43480
|
-
|
|
43480
|
+
l3
|
|
43481
43481
|
);
|
|
43482
43482
|
c[l++] = f.x, c[l++] = f.y, c[l++] = f.z;
|
|
43483
43483
|
}
|
|
@@ -43734,7 +43734,7 @@ an.computeNormal = function(e) {
|
|
|
43734
43734
|
values: f
|
|
43735
43735
|
}), e;
|
|
43736
43736
|
};
|
|
43737
|
-
const hue = new b(),
|
|
43737
|
+
const hue = new b(), u3 = new b(), due = new b();
|
|
43738
43738
|
an.computeTangentAndBitangent = function(e) {
|
|
43739
43739
|
if (!w(e))
|
|
43740
43740
|
throw new F("geometry is required.");
|
|
@@ -43772,7 +43772,7 @@ an.computeTangentAndBitangent = function(e) {
|
|
|
43772
43772
|
for (l = 0; l < s; l++) {
|
|
43773
43773
|
u = l * 3, h = u + 1, d = u + 2;
|
|
43774
43774
|
const m = b.fromArray(r, u, hue), _ = b.fromArray(c, u, due), y = b.dot(m, _);
|
|
43775
|
-
b.multiplyByScalar(m, y,
|
|
43775
|
+
b.multiplyByScalar(m, y, u3), b.normalize(b.subtract(_, u3, _), _), f[u] = _.x, f[h] = _.y, f[d] = _.z, b.normalize(b.cross(m, _, _), _), p[u] = _.x, p[h] = _.y, p[d] = _.z;
|
|
43776
43776
|
}
|
|
43777
43777
|
return e.attributes.tangent = new Gn({
|
|
43778
43778
|
componentDatatype: et.FLOAT,
|
|
@@ -43784,7 +43784,7 @@ an.computeTangentAndBitangent = function(e) {
|
|
|
43784
43784
|
values: p
|
|
43785
43785
|
}), e;
|
|
43786
43786
|
};
|
|
43787
|
-
const Rd = new le(), Ho = new b(),
|
|
43787
|
+
const Rd = new le(), Ho = new b(), h3 = new b(), d3 = new b();
|
|
43788
43788
|
let Mm = new le();
|
|
43789
43789
|
an.compressVertices = function(e) {
|
|
43790
43790
|
if (!w(e))
|
|
@@ -43826,10 +43826,10 @@ an.compressVertices = function(e) {
|
|
|
43826
43826
|
for (n = 0; n < i; ++n) {
|
|
43827
43827
|
a && (le.fromArray(f, n * 2, Rd), T[R++] = Wt.compressTextureCoordinates(Rd));
|
|
43828
43828
|
const M = n * 3;
|
|
43829
|
-
s && w(p) && w(m) ? (b.fromArray(d, M, Ho), b.fromArray(p, M,
|
|
43829
|
+
s && w(p) && w(m) ? (b.fromArray(d, M, Ho), b.fromArray(p, M, h3), b.fromArray(m, M, d3), Wt.octPack(
|
|
43830
43830
|
Ho,
|
|
43831
|
-
|
|
43832
|
-
|
|
43831
|
+
h3,
|
|
43832
|
+
d3,
|
|
43833
43833
|
Rd
|
|
43834
43834
|
), T[R++] = Rd.x, T[R++] = Rd.y) : (s && (b.fromArray(d, M, Ho), T[R++] = Wt.octEncodeFloat(Ho)), u && (b.fromArray(p, M, Ho), T[R++] = Wt.octEncodeFloat(Ho)), h && (b.fromArray(m, M, Ho), T[R++] = Wt.octEncodeFloat(Ho)));
|
|
43835
43835
|
}
|
|
@@ -43960,14 +43960,14 @@ function _ue(e, t, n) {
|
|
|
43960
43960
|
const a = s < 0;
|
|
43961
43961
|
sc(e, a), sc(t, a), sc(n, a);
|
|
43962
43962
|
}
|
|
43963
|
-
const
|
|
43963
|
+
const f3 = new b();
|
|
43964
43964
|
function uo(e, t, n, i) {
|
|
43965
43965
|
b.add(
|
|
43966
43966
|
e,
|
|
43967
43967
|
b.multiplyByScalar(
|
|
43968
|
-
b.subtract(t, e,
|
|
43968
|
+
b.subtract(t, e, f3),
|
|
43969
43969
|
e.y / (e.y - t.y),
|
|
43970
|
-
|
|
43970
|
+
f3
|
|
43971
43971
|
),
|
|
43972
43972
|
n
|
|
43973
43973
|
), b.clone(n, i), sc(n, !0), sc(i, !1);
|
|
@@ -43988,7 +43988,7 @@ function wue(e, t, n) {
|
|
|
43988
43988
|
const c = Rv.positions;
|
|
43989
43989
|
return c[0] = e, c[1] = t, c[2] = n, c.length = 3, (s === 1 || s === 2) && (c[3] = tl, c[4] = nl, c[5] = il, c[6] = rl, c.length = 7), Rv;
|
|
43990
43990
|
}
|
|
43991
|
-
function
|
|
43991
|
+
function p3(e, t) {
|
|
43992
43992
|
const n = e.attributes;
|
|
43993
43993
|
if (n.position.values.length === 0)
|
|
43994
43994
|
return;
|
|
@@ -44028,7 +44028,7 @@ function Eh(e) {
|
|
|
44028
44028
|
}
|
|
44029
44029
|
function oE(e, t, n) {
|
|
44030
44030
|
const i = w(e.geometry.boundingSphere);
|
|
44031
|
-
t =
|
|
44031
|
+
t = p3(t, i), n = p3(n, i), w(n) && !w(t) ? e.geometry = n : !w(n) && w(t) ? e.geometry = t : (e.westHemisphereGeometry = t, e.eastHemisphereGeometry = n, e.geometry = void 0);
|
|
44032
44032
|
}
|
|
44033
44033
|
function sE(e, t) {
|
|
44034
44034
|
const n = new e(), i = new e(), r = new e();
|
|
@@ -44201,7 +44201,7 @@ const Cue = {
|
|
|
44201
44201
|
extrudeDirection: !0,
|
|
44202
44202
|
applyOffset: !0
|
|
44203
44203
|
};
|
|
44204
|
-
function
|
|
44204
|
+
function m3(e) {
|
|
44205
44205
|
const t = e.geometry, n = t.attributes, i = n.position.values, r = w(n.normal) ? n.normal.values : void 0, o = w(n.bitangent) ? n.bitangent.values : void 0, s = w(n.tangent) ? n.tangent.values : void 0, a = w(n.st) ? n.st.values : void 0, c = w(n.extrudeDirection) ? n.extrudeDirection.values : void 0, l = w(n.applyOffset) ? n.applyOffset.values : void 0, u = t.indices, h = [];
|
|
44206
44206
|
for (const L in n)
|
|
44207
44207
|
n.hasOwnProperty(L) && !Cue[L] && w(n[L]) && h.push(L);
|
|
@@ -44331,7 +44331,7 @@ function _u(e, t, n, i, r, o, s) {
|
|
|
44331
44331
|
const a = b.fromArray(i, e * 3, Pf);
|
|
44332
44332
|
b.equalsEpsilon(a, n, U.EPSILON10) ? o.applyOffset.values[r] = s[e] : o.applyOffset.values[r] = s[t];
|
|
44333
44333
|
}
|
|
44334
|
-
function
|
|
44334
|
+
function g3(e) {
|
|
44335
44335
|
const t = e.geometry, n = t.attributes, i = n.position.values, r = w(n.applyOffset) ? n.applyOffset.values : void 0, o = t.indices, s = Eh(t), a = Eh(t);
|
|
44336
44336
|
let c;
|
|
44337
44337
|
const l = o.length, u = [];
|
|
@@ -44460,8 +44460,8 @@ function gI(e) {
|
|
|
44460
44460
|
}
|
|
44461
44461
|
oE(e, a, s);
|
|
44462
44462
|
}
|
|
44463
|
-
const
|
|
44464
|
-
function
|
|
44463
|
+
const y3 = new le(), Mue = new le(), JF = new b(), QF = new b(), p2 = new b(), Pue = new b(), Lue = new b(), Oue = new b(), b3 = new be();
|
|
44464
|
+
function v3(e) {
|
|
44465
44465
|
const t = e.attributes, n = t.position.values, i = t.prevPosition.values, r = t.nextPosition.values, o = n.length;
|
|
44466
44466
|
for (let s = 0; s < o; s += 3) {
|
|
44467
44467
|
const a = b.unpack(n, s, JF);
|
|
@@ -44582,7 +44582,7 @@ function Gue(e) {
|
|
|
44582
44582
|
const N = le.fromArray(
|
|
44583
44583
|
s,
|
|
44584
44584
|
_ * 2,
|
|
44585
|
-
|
|
44585
|
+
y3
|
|
44586
44586
|
), I = Math.abs(N.y);
|
|
44587
44587
|
T.expandAndWidth.values.push(-1, I, 1, I), T.expandAndWidth.values.push(-1, -I, 1, -I), M.expandAndWidth.values.push(-1, I, 1, I), M.expandAndWidth.values.push(-1, -I, 1, -I);
|
|
44588
44588
|
let S = b.magnitudeSquared(
|
|
@@ -44591,14 +44591,14 @@ function Gue(e) {
|
|
|
44591
44591
|
if (S /= b.magnitudeSquared(
|
|
44592
44592
|
b.subtract(x, v, p2)
|
|
44593
44593
|
), w(c)) {
|
|
44594
|
-
const g = be.fromArray(c, _ * 4,
|
|
44594
|
+
const g = be.fromArray(c, _ * 4, b3), E = be.fromArray(c, y * 4, b3), V = U.lerp(g.x, E.x, S), z = U.lerp(g.y, E.y, S), D = U.lerp(g.z, E.z, S), B = U.lerp(g.w, E.w, S);
|
|
44595
44595
|
for (d = _ * 4; d < _ * 4 + 8; ++d)
|
|
44596
44596
|
T.color.values.push(c[d]);
|
|
44597
44597
|
for (T.color.values.push(V, z, D, B), T.color.values.push(V, z, D, B), M.color.values.push(V, z, D, B), M.color.values.push(V, z, D, B), d = y * 4; d < y * 4 + 8; ++d)
|
|
44598
44598
|
M.color.values.push(c[d]);
|
|
44599
44599
|
}
|
|
44600
44600
|
if (w(a)) {
|
|
44601
|
-
const g = le.fromArray(a, _ * 2,
|
|
44601
|
+
const g = le.fromArray(a, _ * 2, y3), E = le.fromArray(
|
|
44602
44602
|
a,
|
|
44603
44603
|
(h + 3) * 2,
|
|
44604
44604
|
Mue
|
|
@@ -44621,7 +44621,7 @@ function Gue(e) {
|
|
|
44621
44621
|
f = P.position.values.length / 3 - 4, A.push(f, f + 2, f + 1), A.push(f + 1, f + 2, f + 3);
|
|
44622
44622
|
}
|
|
44623
44623
|
}
|
|
44624
|
-
p && (
|
|
44624
|
+
p && (v3(u), v3(l)), oE(e, u, l);
|
|
44625
44625
|
}
|
|
44626
44626
|
an.splitLongitude = function(e) {
|
|
44627
44627
|
if (!w(e))
|
|
@@ -44635,14 +44635,14 @@ an.splitLongitude = function(e) {
|
|
|
44635
44635
|
Gue(e);
|
|
44636
44636
|
break;
|
|
44637
44637
|
case rf.TRIANGLES:
|
|
44638
|
-
|
|
44638
|
+
m3(e);
|
|
44639
44639
|
break;
|
|
44640
44640
|
case rf.LINES:
|
|
44641
|
-
|
|
44641
|
+
g3(e);
|
|
44642
44642
|
break;
|
|
44643
44643
|
}
|
|
44644
44644
|
else
|
|
44645
|
-
vue(t), t.primitiveType === pn.TRIANGLES ?
|
|
44645
|
+
vue(t), t.primitiveType === pn.TRIANGLES ? m3(e) : t.primitiveType === pn.LINES && g3(e);
|
|
44646
44646
|
return e;
|
|
44647
44647
|
};
|
|
44648
44648
|
function m0(e, t, n, i, r, o, s, a, c, l, u) {
|
|
@@ -45107,7 +45107,7 @@ function Ys(e) {
|
|
|
45107
45107
|
let d;
|
|
45108
45108
|
t.vertexArrayObject && (d = t.glCreateVertexArray(), t.glBindVertexArray(d), qF(n, s, r), t.glBindVertexArray(null)), this._numberOfVertices = a, this._hasInstancedAttributes = c, this._hasConstantAttributes = l, this._context = t, this._gl = n, this._vao = d, this._attributes = s, this._indexBuffer = r;
|
|
45109
45109
|
}
|
|
45110
|
-
function
|
|
45110
|
+
function _3(e) {
|
|
45111
45111
|
return e.values.length / e.componentsPerAttribute;
|
|
45112
45112
|
}
|
|
45113
45113
|
function Aue(e) {
|
|
@@ -45124,8 +45124,8 @@ function Nue(e) {
|
|
|
45124
45124
|
let o;
|
|
45125
45125
|
const s = r.length;
|
|
45126
45126
|
if (s > 0)
|
|
45127
|
-
for (o =
|
|
45128
|
-
const l =
|
|
45127
|
+
for (o = _3(e[r[0]]), t = 1; t < s; ++t) {
|
|
45128
|
+
const l = _3(
|
|
45129
45129
|
e[r[t]]
|
|
45130
45130
|
);
|
|
45131
45131
|
if (l !== o)
|
|
@@ -52437,7 +52437,7 @@ function Pv(e, t, n, i) {
|
|
|
52437
52437
|
}
|
|
52438
52438
|
}
|
|
52439
52439
|
}
|
|
52440
|
-
function
|
|
52440
|
+
function w3(e, t) {
|
|
52441
52441
|
let n = `fabric: property name '${e}' is not valid. It should be `;
|
|
52442
52442
|
for (let i = 0; i < t.length; i++) {
|
|
52443
52443
|
const r = `'${t[i]}'`;
|
|
@@ -52469,10 +52469,10 @@ function hpe(e) {
|
|
|
52469
52469
|
throw new F(
|
|
52470
52470
|
"fabric: cannot have source and components in the same template."
|
|
52471
52471
|
);
|
|
52472
|
-
Pv(t, lpe,
|
|
52472
|
+
Pv(t, lpe, w3, !0), Pv(
|
|
52473
52473
|
r,
|
|
52474
52474
|
upe,
|
|
52475
|
-
|
|
52475
|
+
w3,
|
|
52476
52476
|
!0
|
|
52477
52477
|
);
|
|
52478
52478
|
const o = [];
|
|
@@ -52513,7 +52513,7 @@ function fpe(e) {
|
|
|
52513
52513
|
`;
|
|
52514
52514
|
}
|
|
52515
52515
|
}
|
|
52516
|
-
const
|
|
52516
|
+
const x3 = {
|
|
52517
52517
|
mat2: He,
|
|
52518
52518
|
mat3: te,
|
|
52519
52519
|
mat4: ie
|
|
@@ -52671,9 +52671,9 @@ function mA(e, t) {
|
|
|
52671
52671
|
pA(e, t)
|
|
52672
52672
|
);
|
|
52673
52673
|
else if (o.indexOf("mat") !== -1) {
|
|
52674
|
-
const l = new
|
|
52674
|
+
const l = new x3[o]();
|
|
52675
52675
|
e._uniforms[c] = function() {
|
|
52676
|
-
return
|
|
52676
|
+
return x3[o].fromColumnMajorArray(
|
|
52677
52677
|
e.uniforms[t],
|
|
52678
52678
|
l
|
|
52679
52679
|
);
|
|
@@ -53450,7 +53450,7 @@ Uc.prototype.positionToTileXY = function(e, t, n) {
|
|
|
53450
53450
|
let u = (i.north - e.latitude) / a | 0;
|
|
53451
53451
|
return u >= o && (u = o - 1), w(n) ? (n.x = l, n.y = u, n) : new le(l, u);
|
|
53452
53452
|
};
|
|
53453
|
-
const
|
|
53453
|
+
const S3 = new b(), E3 = new b(), T3 = new Ce(), Lv = new b(), Tpe = new b(), C3 = new Ge(), Cpe = new Uc(), Id = [
|
|
53454
53454
|
new Ce(),
|
|
53455
53455
|
new Ce(),
|
|
53456
53456
|
new Ce(),
|
|
@@ -53475,14 +53475,14 @@ Kt.getMinimumMaximumHeights = function(e, t) {
|
|
|
53475
53475
|
if (w(n)) {
|
|
53476
53476
|
const o = `${n.level}-${n.x}-${n.y}`, s = Kt._terrainHeights[o];
|
|
53477
53477
|
w(s) && (i = s[0], r = s[1]), t.cartographicToCartesian(
|
|
53478
|
-
Ke.northeast(e,
|
|
53479
|
-
|
|
53478
|
+
Ke.northeast(e, T3),
|
|
53479
|
+
S3
|
|
53480
53480
|
), t.cartographicToCartesian(
|
|
53481
|
-
Ke.southwest(e,
|
|
53482
|
-
|
|
53481
|
+
Ke.southwest(e, T3),
|
|
53482
|
+
E3
|
|
53483
53483
|
), b.midpoint(
|
|
53484
|
-
|
|
53485
|
-
|
|
53484
|
+
E3,
|
|
53485
|
+
S3,
|
|
53486
53486
|
Lv
|
|
53487
53487
|
);
|
|
53488
53488
|
const a = t.scaleToGeodeticSurface(
|
|
@@ -53523,8 +53523,8 @@ Kt.getBoundingSphere = function(e, t) {
|
|
|
53523
53523
|
e,
|
|
53524
53524
|
t,
|
|
53525
53525
|
i,
|
|
53526
|
-
|
|
53527
|
-
), Ge.union(r,
|
|
53526
|
+
C3
|
|
53527
|
+
), Ge.union(r, C3, r);
|
|
53528
53528
|
};
|
|
53529
53529
|
function yA(e) {
|
|
53530
53530
|
Ce.fromRadians(
|
|
@@ -53860,7 +53860,7 @@ Zt.fromPoints = function(e, t) {
|
|
|
53860
53860
|
return A.x = x - M, A.y = T - L, A.z = R - G, b.multiplyByScalar(A, 0.5, A), te.multiplyByScale(t.halfAxes, A, t.halfAxes), t;
|
|
53861
53861
|
};
|
|
53862
53862
|
const vA = new b(), Npe = new b();
|
|
53863
|
-
function
|
|
53863
|
+
function R3(e, t, n, i, r, o, s, a, c, l, u) {
|
|
53864
53864
|
if (!w(r) || !w(o) || !w(s) || !w(a) || !w(c) || !w(l))
|
|
53865
53865
|
throw new F(
|
|
53866
53866
|
"all extents (minimum/maximum X/Y/Z) are required."
|
|
@@ -53875,7 +53875,7 @@ function RI(e, t, n, i, r, o, s, a, c, l, u) {
|
|
|
53875
53875
|
const p = u.center;
|
|
53876
53876
|
return d = te.multiplyByVector(h, d, d), b.add(e, d, p), te.multiplyByScale(h, f, h), u;
|
|
53877
53877
|
}
|
|
53878
|
-
const
|
|
53878
|
+
const I3 = new Ce(), zpe = new b(), Zpe = new Ce(), Xpe = new Ce(), Upe = new Ce(), Dpe = new Ce(), Wpe = new Ce(), kpe = new b(), M3 = new b(), Bpe = new b(), P3 = new b(), Ype = new b(), Hpe = new le(), jpe = new le(), Kpe = new le(), Jpe = new le(), Qpe = new le(), qpe = new b(), $pe = new b(), e0e = new b(), t0e = new b(), n0e = new le(), i0e = new b(), r0e = new b(), o0e = new b(), s0e = new kt(b.UNIT_X, 0);
|
|
53879
53879
|
Zt.fromRectangle = function(e, t, n, i, r) {
|
|
53880
53880
|
if (!w(e))
|
|
53881
53881
|
throw new F("rectangle is required");
|
|
@@ -53896,7 +53896,7 @@ Zt.fromRectangle = function(e, t, n, i, r) {
|
|
|
53896
53896
|
if (e.width <= U.PI) {
|
|
53897
53897
|
const L = Ke.center(
|
|
53898
53898
|
e,
|
|
53899
|
-
|
|
53899
|
+
I3
|
|
53900
53900
|
), G = i.cartographicToCartesian(
|
|
53901
53901
|
L,
|
|
53902
53902
|
zpe
|
|
@@ -53933,7 +53933,7 @@ Zt.fromRectangle = function(e, t, n, i, r) {
|
|
|
53933
53933
|
);
|
|
53934
53934
|
let D = i.cartographicToCartesian(
|
|
53935
53935
|
S,
|
|
53936
|
-
|
|
53936
|
+
M3
|
|
53937
53937
|
);
|
|
53938
53938
|
const B = i.cartographicToCartesian(
|
|
53939
53939
|
g,
|
|
@@ -53941,7 +53941,7 @@ Zt.fromRectangle = function(e, t, n, i, r) {
|
|
|
53941
53941
|
);
|
|
53942
53942
|
let W = i.cartographicToCartesian(
|
|
53943
53943
|
E,
|
|
53944
|
-
|
|
53944
|
+
P3
|
|
53945
53945
|
);
|
|
53946
53946
|
const O = i.cartographicToCartesian(
|
|
53947
53947
|
V,
|
|
@@ -53968,14 +53968,14 @@ Zt.fromRectangle = function(e, t, n, i, r) {
|
|
|
53968
53968
|
Q.x
|
|
53969
53969
|
), s = -o, c = Math.max(Y.y, Z.y), a = Math.min(Q.y, ce.y), S.height = E.height = t, D = i.cartographicToCartesian(
|
|
53970
53970
|
S,
|
|
53971
|
-
|
|
53971
|
+
M3
|
|
53972
53972
|
), W = i.cartographicToCartesian(
|
|
53973
53973
|
E,
|
|
53974
|
-
|
|
53974
|
+
P3
|
|
53975
53975
|
), l = Math.min(
|
|
53976
53976
|
kt.getPointDistance(h, D),
|
|
53977
53977
|
kt.getPointDistance(h, W)
|
|
53978
|
-
), u = n,
|
|
53978
|
+
), u = n, R3(
|
|
53979
53979
|
P.origin,
|
|
53980
53980
|
P.xAxis,
|
|
53981
53981
|
P.yAxis,
|
|
@@ -53991,7 +53991,7 @@ Zt.fromRectangle = function(e, t, n, i, r) {
|
|
|
53991
53991
|
}
|
|
53992
53992
|
const d = e.south > 0, f = e.north < 0, p = d ? e.south : f ? e.north : 0, m = Ke.center(
|
|
53993
53993
|
e,
|
|
53994
|
-
|
|
53994
|
+
I3
|
|
53995
53995
|
).longitude, _ = b.fromRadians(
|
|
53996
53996
|
m,
|
|
53997
53997
|
p,
|
|
@@ -54040,7 +54040,7 @@ Zt.fromRectangle = function(e, t, n, i, r) {
|
|
|
54040
54040
|
i,
|
|
54041
54041
|
o0e
|
|
54042
54042
|
);
|
|
54043
|
-
return l = kt.getPointDistance(h, M), u = 0,
|
|
54043
|
+
return l = kt.getPointDistance(h, M), u = 0, R3(
|
|
54044
54044
|
_,
|
|
54045
54045
|
T,
|
|
54046
54046
|
x,
|
|
@@ -54079,7 +54079,7 @@ Zt.intersectPlane = function(e, t) {
|
|
|
54079
54079
|
), l = b.dot(i, n) + t.distance;
|
|
54080
54080
|
return l <= -c ? fi.OUTSIDE : l >= c ? fi.INSIDE : fi.INTERSECTING;
|
|
54081
54081
|
};
|
|
54082
|
-
const _A = new b(), wA = new b(), xA = new b(), a0e = new b(),
|
|
54082
|
+
const _A = new b(), wA = new b(), xA = new b(), a0e = new b(), L3 = new b(), c0e = new b();
|
|
54083
54083
|
Zt.distanceSquaredTo = function(e, t) {
|
|
54084
54084
|
if (!w(e))
|
|
54085
54085
|
throw new F("box is required.");
|
|
@@ -54094,11 +54094,11 @@ Zt.distanceSquaredTo = function(e, t) {
|
|
|
54094
54094
|
let p, m, _;
|
|
54095
54095
|
if (f === 1) {
|
|
54096
54096
|
let T = r;
|
|
54097
|
-
p = o, m = s, h ? d || (T = s, m = r) : (T = o, p = r), _ = b.cross(p, m,
|
|
54097
|
+
p = o, m = s, h ? d || (T = s, m = r) : (T = o, p = r), _ = b.cross(p, m, L3), T === r ? r = _ : T === o ? o = _ : T === s && (s = _);
|
|
54098
54098
|
} else if (f === 2) {
|
|
54099
54099
|
p = r, h ? p = o : d && (p = s);
|
|
54100
54100
|
let T = b.UNIT_Y;
|
|
54101
|
-
T.equalsEpsilon(p, U.EPSILON3) && (T = b.UNIT_X), m = b.cross(p, T, a0e), b.normalize(m, m), _ = b.cross(p, m,
|
|
54101
|
+
T.equalsEpsilon(p, U.EPSILON3) && (T = b.UNIT_X), m = b.cross(p, T, a0e), b.normalize(m, m), _ = b.cross(p, m, L3), b.normalize(_, _), p === r ? (o = m, s = _) : p === o ? (s = m, r = _) : p === s && (r = m, o = _);
|
|
54102
54102
|
} else f === 3 && (r = b.UNIT_X, o = b.UNIT_Y, s = b.UNIT_Z);
|
|
54103
54103
|
const y = c0e;
|
|
54104
54104
|
y.x = b.dot(n, r), y.y = b.dot(n, o), y.z = b.dot(n, s);
|
|
@@ -54515,7 +54515,7 @@ function T0e(e, t, n) {
|
|
|
54515
54515
|
let i = be.packFloat(e.x, of);
|
|
54516
54516
|
be.pack(i, t, n), i = be.packFloat(e.y, i), be.pack(i, t, n + 4), i = be.packFloat(e.z, i), be.pack(i, t, n + 8), i = be.packFloat(e.w, i), be.pack(i, t, n + 12);
|
|
54517
54517
|
}
|
|
54518
|
-
const
|
|
54518
|
+
const O3 = new be();
|
|
54519
54519
|
za.prototype.getBatchedAttribute = function(e, t, n) {
|
|
54520
54520
|
if (e < 0 || e >= this._numberOfInstances)
|
|
54521
54521
|
throw new F("instanceIndex is out of range.");
|
|
@@ -54526,11 +54526,11 @@ za.prototype.getBatchedAttribute = function(e, t, n) {
|
|
|
54526
54526
|
this._packFloats && i[t].componentDatatype !== dt.UNSIGNED_BYTE ? a = E0e(
|
|
54527
54527
|
this._batchValues,
|
|
54528
54528
|
s,
|
|
54529
|
-
|
|
54529
|
+
O3
|
|
54530
54530
|
) : a = be.unpack(
|
|
54531
54531
|
this._batchValues,
|
|
54532
54532
|
s,
|
|
54533
|
-
|
|
54533
|
+
O3
|
|
54534
54534
|
);
|
|
54535
54535
|
const c = TA(i, t);
|
|
54536
54536
|
return w(c.fromCartesian4) ? c.fromCartesian4(a, n) : w(c.clone) ? c.clone(a, n) : a.x;
|
|
@@ -55096,7 +55096,7 @@ hs.unpackCombineGeometryParameters = function(e) {
|
|
|
55096
55096
|
createPickOffsets: e.createPickOffsets
|
|
55097
55097
|
};
|
|
55098
55098
|
};
|
|
55099
|
-
function
|
|
55099
|
+
function V3(e) {
|
|
55100
55100
|
const t = e.length, n = 1 + (Ge.packedLength + 1) * t, i = new Float32Array(n);
|
|
55101
55101
|
let r = 0;
|
|
55102
55102
|
i[r++] = t;
|
|
@@ -55106,7 +55106,7 @@ function VI(e) {
|
|
|
55106
55106
|
}
|
|
55107
55107
|
return i;
|
|
55108
55108
|
}
|
|
55109
|
-
function
|
|
55109
|
+
function G3(e) {
|
|
55110
55110
|
const t = new Array(e[0]);
|
|
55111
55111
|
let n = 0, i = 1;
|
|
55112
55112
|
for (; i < e.length; )
|
|
@@ -55115,7 +55115,7 @@ function GI(e) {
|
|
|
55115
55115
|
}
|
|
55116
55116
|
hs.packCombineGeometryResults = function(e, t) {
|
|
55117
55117
|
w(e.geometries) && Z0e(e.geometries, t);
|
|
55118
|
-
const n =
|
|
55118
|
+
const n = V3(e.boundingSpheres), i = V3(
|
|
55119
55119
|
e.boundingSpheresCV
|
|
55120
55120
|
);
|
|
55121
55121
|
return t.push(
|
|
@@ -55138,8 +55138,8 @@ hs.unpackCombineGeometryResults = function(e) {
|
|
|
55138
55138
|
modelMatrix: e.modelMatrix,
|
|
55139
55139
|
pickOffsets: e.pickOffsets,
|
|
55140
55140
|
offsetInstanceExtend: e.offsetInstanceExtend,
|
|
55141
|
-
boundingSpheres:
|
|
55142
|
-
boundingSpheresCV:
|
|
55141
|
+
boundingSpheres: G3(e.boundingSpheres),
|
|
55142
|
+
boundingSpheresCV: G3(e.boundingSpheresCV)
|
|
55143
55143
|
};
|
|
55144
55144
|
};
|
|
55145
55145
|
const W0e = {
|
|
@@ -55649,7 +55649,7 @@ Ft._updateColorAttribute = function(e, t, n) {
|
|
|
55649
55649
|
"$1czm_batchTable_color(batchId)$2"
|
|
55650
55650
|
), i;
|
|
55651
55651
|
};
|
|
55652
|
-
function
|
|
55652
|
+
function F3(e) {
|
|
55653
55653
|
return `${zt.replaceMain(e, "czm_non_pick_main")}
|
|
55654
55654
|
out vec4 v_pickColor;
|
|
55655
55655
|
void main()
|
|
@@ -55658,7 +55658,7 @@ void main()
|
|
|
55658
55658
|
v_pickColor = czm_batchTable_pickColor(batchId);
|
|
55659
55659
|
}`;
|
|
55660
55660
|
}
|
|
55661
|
-
function
|
|
55661
|
+
function A3(e) {
|
|
55662
55662
|
return `in vec4 v_pickColor;
|
|
55663
55663
|
${e}`;
|
|
55664
55664
|
}
|
|
@@ -55743,7 +55743,7 @@ Ft._appendDistanceDisplayConditionToShader = function(e, t, n) {
|
|
|
55743
55743
|
}`, `${i}
|
|
55744
55744
|
${r}`;
|
|
55745
55745
|
};
|
|
55746
|
-
function
|
|
55746
|
+
function N3(e, t) {
|
|
55747
55747
|
if (!e.compressVertices)
|
|
55748
55748
|
return t;
|
|
55749
55749
|
const n = t.search(/in\s+vec3\s+normal;/g) !== -1, i = t.search(/in\s+vec2\s+st;/g) !== -1;
|
|
@@ -55806,7 +55806,7 @@ function $0e(e) {
|
|
|
55806
55806
|
}
|
|
55807
55807
|
`, t;
|
|
55808
55808
|
}
|
|
55809
|
-
function
|
|
55809
|
+
function z3(e, t) {
|
|
55810
55810
|
const n = e.vertexAttributes;
|
|
55811
55811
|
for (const i in n)
|
|
55812
55812
|
if (n.hasOwnProperty(i) && !w(t[i]))
|
|
@@ -55981,7 +55981,7 @@ function rme(e, t) {
|
|
|
55981
55981
|
!0
|
|
55982
55982
|
), e._recomputeBoundingSpheres = !1;
|
|
55983
55983
|
}
|
|
55984
|
-
const
|
|
55984
|
+
const Z3 = new Fn(), IA = new Ce(), MA = new b(), PA = new Ge();
|
|
55985
55985
|
function ome(e, t) {
|
|
55986
55986
|
if (!w(
|
|
55987
55987
|
e._batchTableAttributeIndices.distanceDisplayCondition
|
|
@@ -56001,7 +56001,7 @@ function ome(e, t) {
|
|
|
56001
56001
|
const y = m.center, v = m.radius;
|
|
56002
56002
|
let x = Fn.fromCartesian(
|
|
56003
56003
|
y,
|
|
56004
|
-
|
|
56004
|
+
Z3
|
|
56005
56005
|
);
|
|
56006
56006
|
if (h.setBatchedAttribute(p, r, x.high), h.setBatchedAttribute(p, o, x.low), !t.scene3DOnly) {
|
|
56007
56007
|
const T = u.cartesianToCartographic(
|
|
@@ -56013,7 +56013,7 @@ function ome(e, t) {
|
|
|
56013
56013
|
);
|
|
56014
56014
|
x = Fn.fromCartesian(
|
|
56015
56015
|
R,
|
|
56016
|
-
|
|
56016
|
+
Z3
|
|
56017
56017
|
), h.setBatchedAttribute(p, s, x.high), h.setBatchedAttribute(p, a, x.low);
|
|
56018
56018
|
}
|
|
56019
56019
|
h.setBatchedAttribute(p, c, v);
|
|
@@ -56021,7 +56021,7 @@ function ome(e, t) {
|
|
|
56021
56021
|
e._batchTableBoundingSpheresUpdated = !0;
|
|
56022
56022
|
}
|
|
56023
56023
|
const Av = new b(), sme = new b();
|
|
56024
|
-
function
|
|
56024
|
+
function X3(e, t) {
|
|
56025
56025
|
if (!w(e._batchTableAttributeIndices.offset) || e._batchTableOffsetsUpdated || t.scene3DOnly)
|
|
56026
56026
|
return;
|
|
56027
56027
|
const i = e._batchTableOffsetAttribute2DIndex, r = t.mapProjection, o = r.ellipsoid, s = e._batchTable, a = e._instanceBoundingSpheres, c = a.length;
|
|
@@ -56110,30 +56110,30 @@ function lme(e, t, n) {
|
|
|
56110
56110
|
e,
|
|
56111
56111
|
o,
|
|
56112
56112
|
t.scene3DOnly
|
|
56113
|
-
), o =
|
|
56113
|
+
), o = F3(o), o = Ft._updateColorAttribute(e, o, !1), o = N3(e, o), o = Ft._modifyShaderPosition(e, o, t.scene3DOnly);
|
|
56114
56114
|
let s = n.getFragmentShaderSource();
|
|
56115
|
-
s =
|
|
56115
|
+
s = A3(s), e._sp = cr.replaceCache({
|
|
56116
56116
|
context: i,
|
|
56117
56117
|
shaderProgram: e._sp,
|
|
56118
56118
|
vertexShaderSource: o,
|
|
56119
56119
|
fragmentShaderSource: s,
|
|
56120
56120
|
attributeLocations: r
|
|
56121
|
-
}),
|
|
56121
|
+
}), z3(e._sp, r), w(e._depthFailAppearance) && (o = e._batchTable.getVertexShaderCallback()(
|
|
56122
56122
|
e._depthFailAppearance.vertexShaderSource
|
|
56123
56123
|
), o = Ft._appendShowToShader(e, o), o = Ft._appendDistanceDisplayConditionToShader(
|
|
56124
56124
|
e,
|
|
56125
56125
|
o,
|
|
56126
56126
|
t.scene3DOnly
|
|
56127
|
-
), o =
|
|
56127
|
+
), o = F3(o), o = Ft._updateColorAttribute(e, o, !0), o = N3(e, o), o = Ft._modifyShaderPosition(e, o, t.scene3DOnly), o = q0e(o), s = e._depthFailAppearance.getFragmentShaderSource(), s = A3(s), s = $0e(s), e._spDepthFail = cr.replaceCache({
|
|
56128
56128
|
context: i,
|
|
56129
56129
|
shaderProgram: e._spDepthFail,
|
|
56130
56130
|
vertexShaderSource: o,
|
|
56131
56131
|
fragmentShaderSource: s,
|
|
56132
56132
|
attributeLocations: r
|
|
56133
|
-
}),
|
|
56133
|
+
}), z3(e._spDepthFail, r));
|
|
56134
56134
|
}
|
|
56135
|
-
const Pd = new ie(),
|
|
56136
|
-
function
|
|
56135
|
+
const Pd = new ie(), U3 = new b();
|
|
56136
|
+
function D3(e, t, n, i) {
|
|
56137
56137
|
const r = w(n) ? n._uniforms : void 0, o = {}, s = t.uniforms;
|
|
56138
56138
|
if (w(s)) {
|
|
56139
56139
|
for (const c in s)
|
|
@@ -56158,18 +56158,18 @@ function DI(e, t, n, i) {
|
|
|
56158
56158
|
), ie.multiplyByPoint(
|
|
56159
56159
|
Pd,
|
|
56160
56160
|
e.rtcCenter,
|
|
56161
|
-
|
|
56161
|
+
U3
|
|
56162
56162
|
), ie.setTranslation(
|
|
56163
56163
|
Pd,
|
|
56164
|
-
|
|
56164
|
+
U3,
|
|
56165
56165
|
Pd
|
|
56166
56166
|
), Pd;
|
|
56167
56167
|
}), a;
|
|
56168
56168
|
}
|
|
56169
56169
|
function ume(e, t, n, i, r, o, s, a) {
|
|
56170
|
-
const c =
|
|
56170
|
+
const c = D3(e, t, n, a);
|
|
56171
56171
|
let l;
|
|
56172
|
-
w(e._depthFailAppearance) && (l =
|
|
56172
|
+
w(e._depthFailAppearance) && (l = D3(
|
|
56173
56173
|
e,
|
|
56174
56174
|
e._depthFailAppearance,
|
|
56175
56175
|
e._depthFailAppearance.material,
|
|
@@ -56262,9 +56262,9 @@ Ft.prototype.update = function(e) {
|
|
|
56262
56262
|
);
|
|
56263
56263
|
this._batchTable.update(e);
|
|
56264
56264
|
}
|
|
56265
|
-
if (this._state !== li.COMPLETE && this._state !== li.COMBINED && (this.asynchronous ? nme(this, e) : ime(this, e)), this._state === li.COMBINED && (ome(this, e),
|
|
56265
|
+
if (this._state !== li.COMPLETE && this._state !== li.COMBINED && (this.asynchronous ? nme(this, e) : ime(this, e)), this._state === li.COMBINED && (ome(this, e), X3(this, e), ame(this, e)), !this.show || this._state !== li.COMPLETE)
|
|
56266
56266
|
return;
|
|
56267
|
-
this._batchTableOffsetsUpdated ||
|
|
56267
|
+
this._batchTableOffsetsUpdated || X3(this, e), this._recomputeBoundingSpheres && rme(this, e);
|
|
56268
56268
|
const n = this.appearance, i = n.material;
|
|
56269
56269
|
let r = !1, o = !1;
|
|
56270
56270
|
this._appearance !== n ? (this._appearance = n, this._material = i, r = !0, o = !0) : this._material !== i && (this._material = i, o = !0);
|
|
@@ -56652,37 +56652,37 @@ Hi.prototype.createPickVertexShader = function(e, t, n, i) {
|
|
|
56652
56652
|
this._projectionExtentDefines
|
|
56653
56653
|
);
|
|
56654
56654
|
};
|
|
56655
|
-
const
|
|
56655
|
+
const W3 = new b(), k3 = new Ce(), B3 = {
|
|
56656
56656
|
high: 0,
|
|
56657
56657
|
low: 0
|
|
56658
56658
|
};
|
|
56659
56659
|
function VA(e, t, n, i, r, o, s, a) {
|
|
56660
56660
|
const c = i.slice();
|
|
56661
56661
|
if (a.eastMostYhighDefine === "") {
|
|
56662
|
-
const l =
|
|
56662
|
+
const l = k3;
|
|
56663
56663
|
l.longitude = U.PI, l.latitude = 0, l.height = 0;
|
|
56664
56664
|
const u = s.project(
|
|
56665
56665
|
l,
|
|
56666
|
-
|
|
56666
|
+
W3
|
|
56667
56667
|
);
|
|
56668
56668
|
let h = Fn.encode(
|
|
56669
56669
|
u.x,
|
|
56670
|
-
|
|
56670
|
+
B3
|
|
56671
56671
|
);
|
|
56672
56672
|
a.eastMostYhighDefine = `EAST_MOST_X_HIGH ${h.high.toFixed(
|
|
56673
56673
|
`${h.high}`.length + 1
|
|
56674
56674
|
)}`, a.eastMostYlowDefine = `EAST_MOST_X_LOW ${h.low.toFixed(
|
|
56675
56675
|
`${h.low}`.length + 1
|
|
56676
56676
|
)}`;
|
|
56677
|
-
const d =
|
|
56677
|
+
const d = k3;
|
|
56678
56678
|
d.longitude = -U.PI, d.latitude = 0, d.height = 0;
|
|
56679
56679
|
const f = s.project(
|
|
56680
56680
|
d,
|
|
56681
|
-
|
|
56681
|
+
W3
|
|
56682
56682
|
);
|
|
56683
56683
|
h = Fn.encode(
|
|
56684
56684
|
f.x,
|
|
56685
|
-
|
|
56685
|
+
B3
|
|
56686
56686
|
), a.westMostYhighDefine = `WEST_MOST_X_HIGH ${h.high.toFixed(
|
|
56687
56687
|
`${h.high}`.length + 1
|
|
56688
56688
|
)}`, a.westMostYlowDefine = `WEST_MOST_X_LOW ${h.low.toFixed(
|
|
@@ -56765,7 +56765,7 @@ Object.defineProperties(m2.prototype, {
|
|
|
56765
56765
|
}
|
|
56766
56766
|
}
|
|
56767
56767
|
});
|
|
56768
|
-
function
|
|
56768
|
+
function Y3(e, t, n) {
|
|
56769
56769
|
return Math.abs(
|
|
56770
56770
|
(t.y - e.y) * n.x - (t.x - e.x) * n.y + t.x * e.y - t.y * e.x
|
|
56771
56771
|
) / le.distance(t, e);
|
|
@@ -56796,7 +56796,7 @@ function GA(e, t) {
|
|
|
56796
56796
|
normalize: !1,
|
|
56797
56797
|
value: [r.x, r.y, o.x, o.y]
|
|
56798
56798
|
});
|
|
56799
|
-
const s = 1 /
|
|
56799
|
+
const s = 1 / Y3(i, r, o), a = 1 / Y3(i, o, r);
|
|
56800
56800
|
e.uvMinAndExtents = new is({
|
|
56801
56801
|
componentDatatype: et.FLOAT,
|
|
56802
56802
|
componentsPerAttribute: 4,
|
|
@@ -56826,7 +56826,7 @@ function NA(e, t, n) {
|
|
|
56826
56826
|
value: c
|
|
56827
56827
|
});
|
|
56828
56828
|
}
|
|
56829
|
-
const xme = new ie(), Sme = new ie(),
|
|
56829
|
+
const xme = new ie(), Sme = new ie(), H3 = new b(), Eme = new Ce(), Tme = [
|
|
56830
56830
|
new Ce(),
|
|
56831
56831
|
new Ce(),
|
|
56832
56832
|
new Ce(),
|
|
@@ -56845,7 +56845,7 @@ function Cme(e, t, n, i, r, o) {
|
|
|
56845
56845
|
const a = Ce.toCartesian(
|
|
56846
56846
|
s,
|
|
56847
56847
|
t,
|
|
56848
|
-
|
|
56848
|
+
H3
|
|
56849
56849
|
), c = St.eastNorthUpToFixedFrame(
|
|
56850
56850
|
a,
|
|
56851
56851
|
t,
|
|
@@ -56860,7 +56860,7 @@ function Cme(e, t, n, i, r, o) {
|
|
|
56860
56860
|
const P = Ce.toCartesian(
|
|
56861
56861
|
p[G],
|
|
56862
56862
|
t,
|
|
56863
|
-
|
|
56863
|
+
H3
|
|
56864
56864
|
);
|
|
56865
56865
|
ie.multiplyByPoint(l, P, P), P.z = 0, y = Math.min(y, P.x), v = Math.max(v, P.x), x = Math.min(x, P.y), T = Math.max(T, P.y);
|
|
56866
56866
|
}
|
|
@@ -56915,7 +56915,7 @@ Hi.getPlanarTextureCoordinateAttributes = function(e, t, n, i, r) {
|
|
|
56915
56915
|
}), NA(e, i, c), c;
|
|
56916
56916
|
};
|
|
56917
56917
|
const Pme = new b();
|
|
56918
|
-
function
|
|
56918
|
+
function j3(e, t, n, i) {
|
|
56919
56919
|
const r = FA;
|
|
56920
56920
|
r.latitude = e, r.longitude = t, r.height = 0;
|
|
56921
56921
|
const o = Ce.toCartesian(
|
|
@@ -56930,24 +56930,24 @@ function jI(e, t, n, i) {
|
|
|
56930
56930
|
);
|
|
56931
56931
|
return i.x = a, i.y = c, i;
|
|
56932
56932
|
}
|
|
56933
|
-
const
|
|
56933
|
+
const K3 = new le();
|
|
56934
56934
|
Hi.getSphericalExtentGeometryInstanceAttributes = function(e, t, n, i) {
|
|
56935
56935
|
C.typeOf.object("boundingRectangle", e), C.defined(
|
|
56936
56936
|
"textureCoordinateRotationPoints",
|
|
56937
56937
|
t
|
|
56938
56938
|
), C.typeOf.object("ellipsoid", n), C.typeOf.object("projection", i);
|
|
56939
|
-
const r =
|
|
56939
|
+
const r = j3(
|
|
56940
56940
|
e.south,
|
|
56941
56941
|
e.west,
|
|
56942
56942
|
n,
|
|
56943
|
-
|
|
56943
|
+
K3
|
|
56944
56944
|
);
|
|
56945
56945
|
let o = r.x, s = r.y;
|
|
56946
|
-
const a =
|
|
56946
|
+
const a = j3(
|
|
56947
56947
|
e.north,
|
|
56948
56948
|
e.east,
|
|
56949
56949
|
n,
|
|
56950
|
-
|
|
56950
|
+
K3
|
|
56951
56951
|
);
|
|
56952
56952
|
let c = a.x, l = a.y, u = 0;
|
|
56953
56953
|
s > l && (u = U.PI - s, s = -U.PI, l += u), o -= U.EPSILON5, s -= U.EPSILON5, c += U.EPSILON5, l += U.EPSILON5;
|
|
@@ -57592,13 +57592,13 @@ function Zme(e, t) {
|
|
|
57592
57592
|
function Xme(e, t, n, i, r, o, s) {
|
|
57593
57593
|
zme(e, o), Zme(e, s);
|
|
57594
57594
|
}
|
|
57595
|
-
function
|
|
57595
|
+
function J3(e, t) {
|
|
57596
57596
|
return Math.floor(e % t / 2);
|
|
57597
57597
|
}
|
|
57598
57598
|
function Nv(e, t, n, i, r, o) {
|
|
57599
57599
|
e.modelMatrix = n, e.boundingVolume = r, e.cull = i, e.debugShowBoundingVolume = o, t.commandList.push(e);
|
|
57600
57600
|
}
|
|
57601
|
-
function
|
|
57601
|
+
function Q3(e, t, n, i, r) {
|
|
57602
57602
|
e.modelMatrix = n, e.boundingVolume = r, e.cull = i, t.commandList.push(e);
|
|
57603
57603
|
}
|
|
57604
57604
|
function Ume(e, t, n, i, r, o, s, a) {
|
|
@@ -57611,7 +57611,7 @@ function Ume(e, t, n, i, r, o, s, a) {
|
|
|
57611
57611
|
if (f.render) {
|
|
57612
57612
|
const y = n.length;
|
|
57613
57613
|
for (p = 0; p < y; ++p)
|
|
57614
|
-
m = l[
|
|
57614
|
+
m = l[J3(p, y)], h && (_ = n[p], Nv(
|
|
57615
57615
|
_,
|
|
57616
57616
|
t,
|
|
57617
57617
|
r,
|
|
@@ -57642,14 +57642,14 @@ function Ume(e, t, n, i, r, o, s, a) {
|
|
|
57642
57642
|
if (f.pick) {
|
|
57643
57643
|
const y = i.length, v = c._pickOffsets;
|
|
57644
57644
|
for (p = 0; p < y; ++p) {
|
|
57645
|
-
const x = v[
|
|
57646
|
-
m = l[x.index], h && (_ = i[p],
|
|
57645
|
+
const x = v[J3(p, y)];
|
|
57646
|
+
m = l[x.index], h && (_ = i[p], Q3(
|
|
57647
57647
|
_,
|
|
57648
57648
|
t,
|
|
57649
57649
|
r,
|
|
57650
57650
|
o,
|
|
57651
57651
|
m
|
|
57652
|
-
)), d && (_ = i[p].derivedCommands.tileset,
|
|
57652
|
+
)), d && (_ = i[p].derivedCommands.tileset, Q3(
|
|
57653
57653
|
_,
|
|
57654
57654
|
t,
|
|
57655
57655
|
r,
|
|
@@ -57927,13 +57927,13 @@ Object.defineProperties(Br.prototype, {
|
|
|
57927
57927
|
}
|
|
57928
57928
|
});
|
|
57929
57929
|
Br.isSupported = Dc.isSupported;
|
|
57930
|
-
function
|
|
57930
|
+
function q3(e) {
|
|
57931
57931
|
return function(t, n) {
|
|
57932
57932
|
const i = n.maximumRadius, r = i / Math.cos(t * 0.5) - i;
|
|
57933
57933
|
return e._maxHeight + r;
|
|
57934
57934
|
};
|
|
57935
57935
|
}
|
|
57936
|
-
function $
|
|
57936
|
+
function $3(e) {
|
|
57937
57937
|
return function(t, n) {
|
|
57938
57938
|
return e._minHeight;
|
|
57939
57939
|
};
|
|
@@ -58151,8 +58151,8 @@ Br.prototype.update = function(e) {
|
|
|
58151
58151
|
l[u] = new Uy({
|
|
58152
58152
|
geometry: s.createShadowVolume(
|
|
58153
58153
|
o,
|
|
58154
|
-
$
|
|
58155
|
-
|
|
58154
|
+
$3(this),
|
|
58155
|
+
q3(this)
|
|
58156
58156
|
),
|
|
58157
58157
|
attributes: m,
|
|
58158
58158
|
id: r.id
|
|
@@ -58163,8 +58163,8 @@ Br.prototype.update = function(e) {
|
|
|
58163
58163
|
r = a[u], o = r.geometry, s = o.constructor, l[u] = new Uy({
|
|
58164
58164
|
geometry: s.createShadowVolume(
|
|
58165
58165
|
o,
|
|
58166
|
-
$
|
|
58167
|
-
|
|
58166
|
+
$3(this),
|
|
58167
|
+
q3(this)
|
|
58168
58168
|
),
|
|
58169
58169
|
attributes: r.attributes,
|
|
58170
58170
|
id: r.id
|
|
@@ -73405,7 +73405,8 @@ function dxe({ property: e, id: t, isVisible: n, geometry: i, layer: r, feature:
|
|
|
73405
73405
|
outlineColor: ee,
|
|
73406
73406
|
outlineWidth: p,
|
|
73407
73407
|
heightReference: va(O),
|
|
73408
|
-
distanceDisplayCondition: je
|
|
73408
|
+
distanceDisplayCondition: je,
|
|
73409
|
+
disableDepthTestDistance: Number.POSITIVE_INFINITY
|
|
73409
73410
|
}
|
|
73410
73411
|
) : /* @__PURE__ */ ae.jsx(
|
|
73411
73412
|
qG,
|
|
@@ -73418,7 +73419,8 @@ function dxe({ property: e, id: t, isVisible: n, geometry: i, layer: r, feature:
|
|
|
73418
73419
|
distanceDisplayCondition: je,
|
|
73419
73420
|
sizeInMeters: P,
|
|
73420
73421
|
pixelOffset: X,
|
|
73421
|
-
eyeOffset: ge
|
|
73422
|
+
eyeOffset: ge,
|
|
73423
|
+
disableDepthTestDistance: Number.POSITIVE_INFINITY
|
|
73422
73424
|
}
|
|
73423
73425
|
),
|
|
73424
73426
|
m && /* @__PURE__ */ ae.jsx(
|
|
@@ -73434,7 +73436,8 @@ function dxe({ property: e, id: t, isVisible: n, geometry: i, layer: r, feature:
|
|
|
73434
73436
|
backgroundColor: Pe,
|
|
73435
73437
|
backgroundPadding: Te,
|
|
73436
73438
|
heightReference: va(O),
|
|
73437
|
-
distanceDisplayCondition: je
|
|
73439
|
+
distanceDisplayCondition: je,
|
|
73440
|
+
disableDepthTestDistance: Number.POSITIVE_INFINITY
|
|
73438
73441
|
}
|
|
73439
73442
|
)
|
|
73440
73443
|
]
|
|
@@ -75889,9 +75892,9 @@ const KRe = new he(), JRe = new he(), QRe = new he(), qRe = new he(
|
|
|
75889
75892
|
1 / (6378137 * 6378137),
|
|
75890
75893
|
1 / (6378137 * 6378137),
|
|
75891
75894
|
1 / (6356752314245179e-9 * 6356752314245179e-9)
|
|
75892
|
-
),
|
|
75895
|
+
), eIe = ot.EPSILON1;
|
|
75893
75896
|
Sn.fromCartesian = function(e, t, n) {
|
|
75894
|
-
const i = Le(t) ? t.oneOverRadii : qRe, r = Le(t) ? t.oneOverRadiiSquared : $Re, o = Le(t) ? t._centerToleranceSquared :
|
|
75897
|
+
const i = Le(t) ? t.oneOverRadii : qRe, r = Le(t) ? t.oneOverRadiiSquared : $Re, o = Le(t) ? t._centerToleranceSquared : eIe, s = U4(
|
|
75895
75898
|
e,
|
|
75896
75899
|
i,
|
|
75897
75900
|
r,
|
|
@@ -76088,9 +76091,9 @@ Xt.prototype.geodeticSurfaceNormal = function(e, t) {
|
|
|
76088
76091
|
t
|
|
76089
76092
|
), he.normalize(t, t);
|
|
76090
76093
|
};
|
|
76091
|
-
const
|
|
76094
|
+
const tIe = new he(), nIe = new he();
|
|
76092
76095
|
Xt.prototype.cartographicToCartesian = function(e, t) {
|
|
76093
|
-
const n =
|
|
76096
|
+
const n = tIe, i = nIe;
|
|
76094
76097
|
this.geodeticSurfaceNormalCartographic(e, n), he.multiplyComponents(this._radiiSquared, n, i);
|
|
76095
76098
|
const r = Math.sqrt(he.dot(n, i));
|
|
76096
76099
|
return he.divideByScalar(i, r, i), he.multiplyByScalar(n, e.height, n), Le(t) || (t = new he()), he.add(i, n, t);
|
|
@@ -76103,12 +76106,12 @@ Xt.prototype.cartographicArrayToCartesianArray = function(e, t) {
|
|
|
76103
76106
|
t[i] = this.cartographicToCartesian(e[i], t[i]);
|
|
76104
76107
|
return t;
|
|
76105
76108
|
};
|
|
76106
|
-
const
|
|
76109
|
+
const iIe = new he(), rIe = new he(), oIe = new he();
|
|
76107
76110
|
Xt.prototype.cartesianToCartographic = function(e, t) {
|
|
76108
|
-
const n = this.scaleToGeodeticSurface(e,
|
|
76111
|
+
const n = this.scaleToGeodeticSurface(e, rIe);
|
|
76109
76112
|
if (!Le(n))
|
|
76110
76113
|
return;
|
|
76111
|
-
const i = this.geodeticSurfaceNormal(n,
|
|
76114
|
+
const i = this.geodeticSurfaceNormal(n, iIe), r = he.subtract(e, n, oIe), o = Math.atan2(i.y, i.x), s = Math.asin(i.z), a = ot.sign(he.dot(r, e)) * he.magnitude(r);
|
|
76112
76115
|
return Le(t) ? (t.longitude = o, t.latitude = s, t.height = a, t) : new Sn(o, s, a);
|
|
76113
76116
|
};
|
|
76114
76117
|
Xt.prototype.cartesianArrayToCartographicArray = function(e, t) {
|
|
@@ -76161,14 +76164,14 @@ Xt.prototype.getSurfaceNormalIntersectionWithZAxis = function(e, t, n) {
|
|
|
76161
76164
|
if (Le(n) || (n = new he()), n.x = 0, n.y = 0, n.z = e.z * (1 - i), !(Math.abs(n.z) >= this._radii.z - t))
|
|
76162
76165
|
return n;
|
|
76163
76166
|
};
|
|
76164
|
-
const
|
|
76167
|
+
const sIe = [
|
|
76165
76168
|
0.14887433898163,
|
|
76166
76169
|
0.43339539412925,
|
|
76167
76170
|
0.67940956829902,
|
|
76168
76171
|
0.86506336668898,
|
|
76169
76172
|
0.97390652851717,
|
|
76170
76173
|
0
|
|
76171
|
-
],
|
|
76174
|
+
], aIe = [
|
|
76172
76175
|
0.29552422471475,
|
|
76173
76176
|
0.26926671930999,
|
|
76174
76177
|
0.21908636251598,
|
|
@@ -76181,8 +76184,8 @@ function nP(e, t, n) {
|
|
|
76181
76184
|
const i = 0.5 * (t + e), r = 0.5 * (t - e);
|
|
76182
76185
|
let o = 0;
|
|
76183
76186
|
for (let s = 0; s < 5; s++) {
|
|
76184
|
-
const a = r *
|
|
76185
|
-
o +=
|
|
76187
|
+
const a = r * sIe[s];
|
|
76188
|
+
o += aIe[s] * (n(i + a) + n(i - a));
|
|
76186
76189
|
}
|
|
76187
76190
|
return o *= r, o;
|
|
76188
76191
|
}
|
|
@@ -76380,11 +76383,11 @@ yt.contains = function(e, t) {
|
|
|
76380
76383
|
let o = e.east;
|
|
76381
76384
|
return o < r && (o += ot.TWO_PI, n < 0 && (n += ot.TWO_PI)), (n > r || ot.equalsEpsilon(n, r, ot.EPSILON14)) && (n < o || ot.equalsEpsilon(n, o, ot.EPSILON14)) && i >= e.south && i <= e.north;
|
|
76382
76385
|
};
|
|
76383
|
-
const
|
|
76386
|
+
const cIe = new Sn();
|
|
76384
76387
|
yt.subsample = function(e, t, n, i) {
|
|
76385
76388
|
oe.typeOf.object("rectangle", e), t = ft(t, Xt.WGS84), n = ft(n, 0), Le(i) || (i = []);
|
|
76386
76389
|
let r = 0;
|
|
76387
|
-
const o = e.north, s = e.south, a = e.east, c = e.west, l =
|
|
76390
|
+
const o = e.north, s = e.south, a = e.east, c = e.west, l = cIe;
|
|
76388
76391
|
l.height = n, l.longitude = c, l.latitude = o, i[r] = t.cartographicToCartesian(l, i[r]), r++, l.longitude = a, i[r] = t.cartographicToCartesian(l, i[r]), r++, l.latitude = s, i[r] = t.cartographicToCartesian(l, i[r]), r++, l.longitude = c, i[r] = t.cartographicToCartesian(l, i[r]), r++, o < 0 ? l.latitude = o : s > 0 ? l.latitude = s : l.latitude = 0;
|
|
76389
76392
|
for (let u = 1; u < 8; ++u)
|
|
76390
76393
|
l.longitude = -Math.PI + u * ot.PI_OVER_TWO, yt.contains(e, l) && (i[r] = t.cartographicToCartesian(l, i[r]), r++);
|
|
@@ -76452,7 +76455,7 @@ Zr.prototype.unproject = function(e, t) {
|
|
|
76452
76455
|
), o = e.z;
|
|
76453
76456
|
return Le(t) ? (t.longitude = i, t.latitude = r, t.height = o, t) : new Sn(i, r, o);
|
|
76454
76457
|
};
|
|
76455
|
-
class
|
|
76458
|
+
class lIe {
|
|
76456
76459
|
/**
|
|
76457
76460
|
* @callback HookCallback
|
|
76458
76461
|
* @this {*|Jsep} this
|
|
@@ -76495,7 +76498,7 @@ class l3e {
|
|
|
76495
76498
|
});
|
|
76496
76499
|
}
|
|
76497
76500
|
}
|
|
76498
|
-
class
|
|
76501
|
+
class uIe {
|
|
76499
76502
|
constructor(t) {
|
|
76500
76503
|
this.jsep = t, this.registered = {};
|
|
76501
76504
|
}
|
|
@@ -77051,10 +77054,10 @@ class Se {
|
|
|
77051
77054
|
};
|
|
77052
77055
|
}
|
|
77053
77056
|
}
|
|
77054
|
-
const
|
|
77057
|
+
const hIe = new lIe();
|
|
77055
77058
|
Object.assign(Se, {
|
|
77056
|
-
hooks:
|
|
77057
|
-
plugins: new
|
|
77059
|
+
hooks: hIe,
|
|
77060
|
+
plugins: new uIe(Se),
|
|
77058
77061
|
// Node Types
|
|
77059
77062
|
// ----------
|
|
77060
77063
|
// This is the full set of types that any JSEP node can be.
|
|
@@ -77148,13 +77151,13 @@ Object.assign(Se, {
|
|
|
77148
77151
|
});
|
|
77149
77152
|
Se.max_unop_len = Se.getMaxKeyLen(Se.unary_ops);
|
|
77150
77153
|
Se.max_binop_len = Se.getMaxKeyLen(Se.binary_ops);
|
|
77151
|
-
const _c = (e) => new Se(e).parse(),
|
|
77152
|
-
|
|
77154
|
+
const _c = (e) => new Se(e).parse(), dIe = Object.getOwnPropertyNames(Se);
|
|
77155
|
+
dIe.forEach((e) => {
|
|
77153
77156
|
_c[e] === void 0 && e !== "prototype" && (_c[e] = Se[e]);
|
|
77154
77157
|
});
|
|
77155
77158
|
_c.Jsep = Se;
|
|
77156
|
-
const
|
|
77157
|
-
var
|
|
77159
|
+
const fIe = "ConditionalExpression";
|
|
77160
|
+
var pIe = {
|
|
77158
77161
|
name: "ternary",
|
|
77159
77162
|
init(e) {
|
|
77160
77163
|
e.hooks.add("after-expression", function(t) {
|
|
@@ -77165,7 +77168,7 @@ var p3e = {
|
|
|
77165
77168
|
this.index++;
|
|
77166
77169
|
const r = this.gobbleExpression();
|
|
77167
77170
|
if (r || this.throwError("Expected expression"), t.node = {
|
|
77168
|
-
type:
|
|
77171
|
+
type: fIe,
|
|
77169
77172
|
test: n,
|
|
77170
77173
|
consequent: i,
|
|
77171
77174
|
alternate: r
|
|
@@ -77181,7 +77184,7 @@ var p3e = {
|
|
|
77181
77184
|
});
|
|
77182
77185
|
}
|
|
77183
77186
|
};
|
|
77184
|
-
_c.plugins.register(
|
|
77187
|
+
_c.plugins.register(pIe);
|
|
77185
77188
|
function Hc(e) {
|
|
77186
77189
|
if (e = ft(e, ft.EMPTY_OBJECT), this._ellipsoid = ft(e.ellipsoid, Xt.WGS84), this._numberOfLevelZeroTilesX = ft(
|
|
77187
77190
|
e.numberOfLevelZeroTilesX,
|
|
@@ -77516,14 +77519,14 @@ lh.prototype = {
|
|
|
77516
77519
|
lh.convert = function(e) {
|
|
77517
77520
|
return e instanceof lh ? e : Array.isArray(e) ? new lh(e[0], e[1]) : e;
|
|
77518
77521
|
};
|
|
77519
|
-
var
|
|
77522
|
+
var mIe = Qb, W4 = Oh;
|
|
77520
77523
|
function Oh(e, t, n, i, r) {
|
|
77521
|
-
this.properties = {}, this.extent = n, this.type = 0, this._pbf = e, this._geometry = -1, this._keys = i, this._values = r, e.readFields(
|
|
77524
|
+
this.properties = {}, this.extent = n, this.type = 0, this._pbf = e, this._geometry = -1, this._keys = i, this._values = r, e.readFields(gIe, this, t);
|
|
77522
77525
|
}
|
|
77523
|
-
function
|
|
77524
|
-
e == 1 ? t.id = n.readVarint() : e == 2 ?
|
|
77526
|
+
function gIe(e, t, n) {
|
|
77527
|
+
e == 1 ? t.id = n.readVarint() : e == 2 ? yIe(n, t) : e == 3 ? t.type = n.readVarint() : e == 4 && (t._geometry = n.pos);
|
|
77525
77528
|
}
|
|
77526
|
-
function
|
|
77529
|
+
function yIe(e, t) {
|
|
77527
77530
|
for (var n = e.readVarint() + e.pos; e.pos < n; ) {
|
|
77528
77531
|
var i = t._keys[e.readVarint()], r = t._values[e.readVarint()];
|
|
77529
77532
|
t.properties[i] = r;
|
|
@@ -77539,7 +77542,7 @@ Oh.prototype.loadGeometry = function() {
|
|
|
77539
77542
|
n = c & 7, i = c >> 3;
|
|
77540
77543
|
}
|
|
77541
77544
|
if (i--, n === 1 || n === 2)
|
|
77542
|
-
r += e.readSVarint(), o += e.readSVarint(), n === 1 && (a && s.push(a), a = []), a.push(new
|
|
77545
|
+
r += e.readSVarint(), o += e.readSVarint(), n === 1 && (a && s.push(a), a = []), a.push(new mIe(r, o));
|
|
77543
77546
|
else if (n === 7)
|
|
77544
77547
|
a && a.push(a[0].clone());
|
|
77545
77548
|
else
|
|
@@ -77585,7 +77588,7 @@ Oh.prototype.toGeoJSON = function(e, t, n) {
|
|
|
77585
77588
|
u(s[c]);
|
|
77586
77589
|
break;
|
|
77587
77590
|
case 3:
|
|
77588
|
-
for (s =
|
|
77591
|
+
for (s = bIe(s), c = 0; c < s.length; c++)
|
|
77589
77592
|
for (l = 0; l < s[c].length; l++)
|
|
77590
77593
|
u(s[c][l]);
|
|
77591
77594
|
break;
|
|
@@ -77601,29 +77604,29 @@ Oh.prototype.toGeoJSON = function(e, t, n) {
|
|
|
77601
77604
|
};
|
|
77602
77605
|
return "id" in this && (d.id = this.id), d;
|
|
77603
77606
|
};
|
|
77604
|
-
function
|
|
77607
|
+
function bIe(e) {
|
|
77605
77608
|
var t = e.length;
|
|
77606
77609
|
if (t <= 1)
|
|
77607
77610
|
return [e];
|
|
77608
77611
|
for (var n = [], i, r, o = 0; o < t; o++) {
|
|
77609
|
-
var s =
|
|
77612
|
+
var s = vIe(e[o]);
|
|
77610
77613
|
s !== 0 && (r === void 0 && (r = s < 0), r === s < 0 ? (i && n.push(i), i = [e[o]]) : i.push(e[o]));
|
|
77611
77614
|
}
|
|
77612
77615
|
return i && n.push(i), n;
|
|
77613
77616
|
}
|
|
77614
|
-
function
|
|
77617
|
+
function vIe(e) {
|
|
77615
77618
|
for (var t = 0, n = 0, i = e.length, r = i - 1, o, s; n < i; r = n++)
|
|
77616
77619
|
o = e[n], s = e[r], t += (s.x - o.x) * (o.y + s.y);
|
|
77617
77620
|
return t;
|
|
77618
77621
|
}
|
|
77619
|
-
var
|
|
77622
|
+
var _Ie = W4, wIe = k4;
|
|
77620
77623
|
function k4(e, t) {
|
|
77621
|
-
this.version = 1, this.name = null, this.extent = 4096, this.length = 0, this._pbf = e, this._keys = [], this._values = [], this._features = [], e.readFields(
|
|
77624
|
+
this.version = 1, this.name = null, this.extent = 4096, this.length = 0, this._pbf = e, this._keys = [], this._values = [], this._features = [], e.readFields(xIe, this, t), this.length = this._features.length;
|
|
77622
77625
|
}
|
|
77623
|
-
function
|
|
77624
|
-
e === 15 ? t.version = n.readVarint() : e === 1 ? t.name = n.readString() : e === 5 ? t.extent = n.readVarint() : e === 2 ? t._features.push(n.pos) : e === 3 ? t._keys.push(n.readString()) : e === 4 && t._values.push(
|
|
77626
|
+
function xIe(e, t, n) {
|
|
77627
|
+
e === 15 ? t.version = n.readVarint() : e === 1 ? t.name = n.readString() : e === 5 ? t.extent = n.readVarint() : e === 2 ? t._features.push(n.pos) : e === 3 ? t._keys.push(n.readString()) : e === 4 && t._values.push(SIe(n));
|
|
77625
77628
|
}
|
|
77626
|
-
function
|
|
77629
|
+
function SIe(e) {
|
|
77627
77630
|
for (var t = null, n = e.readVarint() + e.pos; e.pos < n; ) {
|
|
77628
77631
|
var i = e.readVarint() >> 3;
|
|
77629
77632
|
t = i === 1 ? e.readString() : i === 2 ? e.readFloat() : i === 3 ? e.readDouble() : i === 4 ? e.readVarint64() : i === 5 ? e.readVarint() : i === 6 ? e.readSVarint() : i === 7 ? e.readBoolean() : null;
|
|
@@ -77635,19 +77638,19 @@ k4.prototype.feature = function(e) {
|
|
|
77635
77638
|
throw new Error("feature index out of bounds");
|
|
77636
77639
|
this._pbf.pos = this._features[e];
|
|
77637
77640
|
var t = this._pbf.readVarint() + this._pbf.pos;
|
|
77638
|
-
return new
|
|
77641
|
+
return new _Ie(this._pbf, t, this.extent, this._keys, this._values);
|
|
77639
77642
|
};
|
|
77640
|
-
var
|
|
77641
|
-
function
|
|
77642
|
-
this.layers = e.readFields(
|
|
77643
|
+
var EIe = wIe, TIe = CIe;
|
|
77644
|
+
function CIe(e, t) {
|
|
77645
|
+
this.layers = e.readFields(RIe, {}, t);
|
|
77643
77646
|
}
|
|
77644
|
-
function
|
|
77647
|
+
function RIe(e, t, n) {
|
|
77645
77648
|
if (e === 3) {
|
|
77646
|
-
var i = new
|
|
77649
|
+
var i = new EIe(n, n.readVarint() + n.pos);
|
|
77647
77650
|
i.length && (t[i.name] = i);
|
|
77648
77651
|
}
|
|
77649
77652
|
}
|
|
77650
|
-
var
|
|
77653
|
+
var IIe = TIe, da = W4, AE = {};
|
|
77651
77654
|
AE.read = function(e, t, n, i, r) {
|
|
77652
77655
|
var o, s, a = r * 8 - i - 1, c = (1 << a) - 1, l = c >> 1, u = -7, h = n ? r - 1 : 0, d = n ? -1 : 1, f = e[t + h];
|
|
77653
77656
|
for (h += d, o = f & (1 << -u) - 1, f >>= -u, u += a; u > 0; o = o * 256 + e[t + h], h += d, u -= 8)
|
|
@@ -77671,7 +77674,7 @@ AE.write = function(e, t, n, i, r, o) {
|
|
|
77671
77674
|
;
|
|
77672
77675
|
e[n + f - p] |= m * 128;
|
|
77673
77676
|
};
|
|
77674
|
-
var
|
|
77677
|
+
var MIe = nn, $m = AE;
|
|
77675
77678
|
function nn(e) {
|
|
77676
77679
|
this.buf = ArrayBuffer.isView && ArrayBuffer.isView(e) ? e : new Uint8Array(e || 0), this.pos = 0, this.type = 0, this.length = this.buf.length;
|
|
77677
77680
|
}
|
|
@@ -77679,7 +77682,7 @@ nn.Varint = 0;
|
|
|
77679
77682
|
nn.Fixed64 = 1;
|
|
77680
77683
|
nn.Bytes = 2;
|
|
77681
77684
|
nn.Fixed32 = 5;
|
|
77682
|
-
var U2 = 65536 * 65536, iP = 1 / U2,
|
|
77685
|
+
var U2 = 65536 * 65536, iP = 1 / U2, PIe = 12, B4 = typeof TextDecoder > "u" ? null : new TextDecoder("utf8");
|
|
77683
77686
|
nn.prototype = {
|
|
77684
77687
|
destroy: function() {
|
|
77685
77688
|
this.buf = null;
|
|
@@ -77722,7 +77725,7 @@ nn.prototype = {
|
|
|
77722
77725
|
},
|
|
77723
77726
|
readVarint: function(e) {
|
|
77724
77727
|
var t = this.buf, n, i;
|
|
77725
|
-
return i = t[this.pos++], n = i & 127, i < 128 || (i = t[this.pos++], n |= (i & 127) << 7, i < 128) || (i = t[this.pos++], n |= (i & 127) << 14, i < 128) || (i = t[this.pos++], n |= (i & 127) << 21, i < 128) ? n : (i = t[this.pos], n |= (i & 15) << 28,
|
|
77728
|
+
return i = t[this.pos++], n = i & 127, i < 128 || (i = t[this.pos++], n |= (i & 127) << 7, i < 128) || (i = t[this.pos++], n |= (i & 127) << 14, i < 128) || (i = t[this.pos++], n |= (i & 127) << 21, i < 128) ? n : (i = t[this.pos], n |= (i & 15) << 28, LIe(n, e, this));
|
|
77726
77729
|
},
|
|
77727
77730
|
readVarint64: function() {
|
|
77728
77731
|
return this.readVarint(!0);
|
|
@@ -77736,7 +77739,7 @@ nn.prototype = {
|
|
|
77736
77739
|
},
|
|
77737
77740
|
readString: function() {
|
|
77738
77741
|
var e = this.readVarint() + this.pos, t = this.pos;
|
|
77739
|
-
return this.pos = e, e - t >=
|
|
77742
|
+
return this.pos = e, e - t >= PIe && B4 ? YIe(this.buf, t, e) : BIe(this.buf, t, e);
|
|
77740
77743
|
},
|
|
77741
77744
|
readBytes: function() {
|
|
77742
77745
|
var e = this.readVarint() + this.pos, t = this.buf.subarray(this.pos, e);
|
|
@@ -77858,7 +77861,7 @@ nn.prototype = {
|
|
|
77858
77861
|
},
|
|
77859
77862
|
writeVarint: function(e) {
|
|
77860
77863
|
if (e = +e || 0, e > 268435455 || e < 0) {
|
|
77861
|
-
|
|
77864
|
+
VIe(e, this);
|
|
77862
77865
|
return;
|
|
77863
77866
|
}
|
|
77864
77867
|
this.realloc(4), this.buf[this.pos++] = e & 127 | (e > 127 ? 128 : 0), !(e <= 127) && (this.buf[this.pos++] = (e >>>= 7) & 127 | (e > 127 ? 128 : 0), !(e <= 127) && (this.buf[this.pos++] = (e >>>= 7) & 127 | (e > 127 ? 128 : 0), !(e <= 127) && (this.buf[this.pos++] = e >>> 7 & 127)));
|
|
@@ -77872,7 +77875,7 @@ nn.prototype = {
|
|
|
77872
77875
|
writeString: function(e) {
|
|
77873
77876
|
e = String(e), this.realloc(e.length * 4), this.pos++;
|
|
77874
77877
|
var t = this.pos;
|
|
77875
|
-
this.pos =
|
|
77878
|
+
this.pos = HIe(this.buf, e, this.pos);
|
|
77876
77879
|
var n = this.pos - t;
|
|
77877
77880
|
n >= 128 && rP(t, n, this), this.pos = t - 1, this.writeVarint(n), this.pos += n;
|
|
77878
77881
|
},
|
|
@@ -77899,31 +77902,31 @@ nn.prototype = {
|
|
|
77899
77902
|
this.writeTag(e, nn.Bytes), this.writeRawMessage(t, n);
|
|
77900
77903
|
},
|
|
77901
77904
|
writePackedVarint: function(e, t) {
|
|
77902
|
-
t.length && this.writeMessage(e,
|
|
77905
|
+
t.length && this.writeMessage(e, AIe, t);
|
|
77903
77906
|
},
|
|
77904
77907
|
writePackedSVarint: function(e, t) {
|
|
77905
|
-
t.length && this.writeMessage(e,
|
|
77908
|
+
t.length && this.writeMessage(e, NIe, t);
|
|
77906
77909
|
},
|
|
77907
77910
|
writePackedBoolean: function(e, t) {
|
|
77908
|
-
t.length && this.writeMessage(e,
|
|
77911
|
+
t.length && this.writeMessage(e, XIe, t);
|
|
77909
77912
|
},
|
|
77910
77913
|
writePackedFloat: function(e, t) {
|
|
77911
|
-
t.length && this.writeMessage(e,
|
|
77914
|
+
t.length && this.writeMessage(e, zIe, t);
|
|
77912
77915
|
},
|
|
77913
77916
|
writePackedDouble: function(e, t) {
|
|
77914
|
-
t.length && this.writeMessage(e,
|
|
77917
|
+
t.length && this.writeMessage(e, ZIe, t);
|
|
77915
77918
|
},
|
|
77916
77919
|
writePackedFixed32: function(e, t) {
|
|
77917
|
-
t.length && this.writeMessage(e,
|
|
77920
|
+
t.length && this.writeMessage(e, UIe, t);
|
|
77918
77921
|
},
|
|
77919
77922
|
writePackedSFixed32: function(e, t) {
|
|
77920
|
-
t.length && this.writeMessage(e,
|
|
77923
|
+
t.length && this.writeMessage(e, DIe, t);
|
|
77921
77924
|
},
|
|
77922
77925
|
writePackedFixed64: function(e, t) {
|
|
77923
|
-
t.length && this.writeMessage(e,
|
|
77926
|
+
t.length && this.writeMessage(e, WIe, t);
|
|
77924
77927
|
},
|
|
77925
77928
|
writePackedSFixed64: function(e, t) {
|
|
77926
|
-
t.length && this.writeMessage(e,
|
|
77929
|
+
t.length && this.writeMessage(e, kIe, t);
|
|
77927
77930
|
},
|
|
77928
77931
|
writeBytesField: function(e, t) {
|
|
77929
77932
|
this.writeTag(e, nn.Bytes), this.writeBytes(t);
|
|
@@ -77959,28 +77962,28 @@ nn.prototype = {
|
|
|
77959
77962
|
this.writeVarintField(e, !!t);
|
|
77960
77963
|
}
|
|
77961
77964
|
};
|
|
77962
|
-
function
|
|
77965
|
+
function LIe(e, t, n) {
|
|
77963
77966
|
var i = n.buf, r, o;
|
|
77964
77967
|
if (o = i[n.pos++], r = (o & 112) >> 4, o < 128 || (o = i[n.pos++], r |= (o & 127) << 3, o < 128) || (o = i[n.pos++], r |= (o & 127) << 10, o < 128) || (o = i[n.pos++], r |= (o & 127) << 17, o < 128) || (o = i[n.pos++], r |= (o & 127) << 24, o < 128) || (o = i[n.pos++], r |= (o & 1) << 31, o < 128))
|
|
77965
|
-
return
|
|
77968
|
+
return OIe(e, r, t);
|
|
77966
77969
|
throw new Error("Expected varint not more than 10 bytes");
|
|
77967
77970
|
}
|
|
77968
77971
|
function ca(e) {
|
|
77969
77972
|
return e.type === nn.Bytes ? e.readVarint() + e.pos : e.pos + 1;
|
|
77970
77973
|
}
|
|
77971
|
-
function
|
|
77974
|
+
function OIe(e, t, n) {
|
|
77972
77975
|
return n ? t * 4294967296 + (e >>> 0) : (t >>> 0) * 4294967296 + (e >>> 0);
|
|
77973
77976
|
}
|
|
77974
|
-
function
|
|
77977
|
+
function VIe(e, t) {
|
|
77975
77978
|
var n, i;
|
|
77976
77979
|
if (e >= 0 ? (n = e % 4294967296 | 0, i = e / 4294967296 | 0) : (n = ~(-e % 4294967296), i = ~(-e / 4294967296), n ^ 4294967295 ? n = n + 1 | 0 : (n = 0, i = i + 1 | 0)), e >= 18446744073709552e3 || e < -18446744073709552e3)
|
|
77977
77980
|
throw new Error("Given varint doesn't fit into 10 bytes");
|
|
77978
|
-
t.realloc(10),
|
|
77981
|
+
t.realloc(10), GIe(n, i, t), FIe(i, t);
|
|
77979
77982
|
}
|
|
77980
|
-
function
|
|
77983
|
+
function GIe(e, t, n) {
|
|
77981
77984
|
n.buf[n.pos++] = e & 127 | 128, e >>>= 7, n.buf[n.pos++] = e & 127 | 128, e >>>= 7, n.buf[n.pos++] = e & 127 | 128, e >>>= 7, n.buf[n.pos++] = e & 127 | 128, e >>>= 7, n.buf[n.pos] = e & 127;
|
|
77982
77985
|
}
|
|
77983
|
-
function
|
|
77986
|
+
function FIe(e, t) {
|
|
77984
77987
|
var n = (e & 7) << 4;
|
|
77985
77988
|
t.buf[t.pos++] |= n | ((e >>>= 3) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127)))));
|
|
77986
77989
|
}
|
|
@@ -77990,39 +77993,39 @@ function rP(e, t, n) {
|
|
|
77990
77993
|
for (var r = n.pos - 1; r >= e; r--)
|
|
77991
77994
|
n.buf[r + i] = n.buf[r];
|
|
77992
77995
|
}
|
|
77993
|
-
function
|
|
77996
|
+
function AIe(e, t) {
|
|
77994
77997
|
for (var n = 0; n < e.length; n++)
|
|
77995
77998
|
t.writeVarint(e[n]);
|
|
77996
77999
|
}
|
|
77997
|
-
function
|
|
78000
|
+
function NIe(e, t) {
|
|
77998
78001
|
for (var n = 0; n < e.length; n++)
|
|
77999
78002
|
t.writeSVarint(e[n]);
|
|
78000
78003
|
}
|
|
78001
|
-
function
|
|
78004
|
+
function zIe(e, t) {
|
|
78002
78005
|
for (var n = 0; n < e.length; n++)
|
|
78003
78006
|
t.writeFloat(e[n]);
|
|
78004
78007
|
}
|
|
78005
|
-
function
|
|
78008
|
+
function ZIe(e, t) {
|
|
78006
78009
|
for (var n = 0; n < e.length; n++)
|
|
78007
78010
|
t.writeDouble(e[n]);
|
|
78008
78011
|
}
|
|
78009
|
-
function
|
|
78012
|
+
function XIe(e, t) {
|
|
78010
78013
|
for (var n = 0; n < e.length; n++)
|
|
78011
78014
|
t.writeBoolean(e[n]);
|
|
78012
78015
|
}
|
|
78013
|
-
function
|
|
78016
|
+
function UIe(e, t) {
|
|
78014
78017
|
for (var n = 0; n < e.length; n++)
|
|
78015
78018
|
t.writeFixed32(e[n]);
|
|
78016
78019
|
}
|
|
78017
|
-
function
|
|
78020
|
+
function DIe(e, t) {
|
|
78018
78021
|
for (var n = 0; n < e.length; n++)
|
|
78019
78022
|
t.writeSFixed32(e[n]);
|
|
78020
78023
|
}
|
|
78021
|
-
function
|
|
78024
|
+
function WIe(e, t) {
|
|
78022
78025
|
for (var n = 0; n < e.length; n++)
|
|
78023
78026
|
t.writeFixed64(e[n]);
|
|
78024
78027
|
}
|
|
78025
|
-
function
|
|
78028
|
+
function kIe(e, t) {
|
|
78026
78029
|
for (var n = 0; n < e.length; n++)
|
|
78027
78030
|
t.writeSFixed64(e[n]);
|
|
78028
78031
|
}
|
|
@@ -78035,7 +78038,7 @@ function Tu(e, t, n) {
|
|
|
78035
78038
|
function oP(e, t) {
|
|
78036
78039
|
return (e[t] | e[t + 1] << 8 | e[t + 2] << 16) + (e[t + 3] << 24);
|
|
78037
78040
|
}
|
|
78038
|
-
function
|
|
78041
|
+
function BIe(e, t, n) {
|
|
78039
78042
|
for (var i = "", r = t; r < n; ) {
|
|
78040
78043
|
var o = e[r], s = null, a = o > 239 ? 4 : o > 223 ? 3 : o > 191 ? 2 : 1;
|
|
78041
78044
|
if (r + a > n)
|
|
@@ -78045,10 +78048,10 @@ function B3e(e, t, n) {
|
|
|
78045
78048
|
}
|
|
78046
78049
|
return i;
|
|
78047
78050
|
}
|
|
78048
|
-
function
|
|
78051
|
+
function YIe(e, t, n) {
|
|
78049
78052
|
return B4.decode(e.subarray(t, n));
|
|
78050
78053
|
}
|
|
78051
|
-
function
|
|
78054
|
+
function HIe(e, t, n) {
|
|
78052
78055
|
for (var i = 0, r, o; i < t.length; i++) {
|
|
78053
78056
|
if (r = t.charCodeAt(i), r > 55295 && r < 57344)
|
|
78054
78057
|
if (o)
|
|
@@ -78067,42 +78070,42 @@ function H3e(e, t, n) {
|
|
|
78067
78070
|
}
|
|
78068
78071
|
return n;
|
|
78069
78072
|
}
|
|
78070
|
-
function
|
|
78073
|
+
function jIe(e) {
|
|
78071
78074
|
return Object.keys(e);
|
|
78072
78075
|
}
|
|
78073
78076
|
function er(e, t) {
|
|
78074
78077
|
return e ?? t;
|
|
78075
78078
|
}
|
|
78076
|
-
const
|
|
78077
|
-
function
|
|
78079
|
+
const KIe = new Qb(0, 0);
|
|
78080
|
+
function JIe(e, t, n) {
|
|
78078
78081
|
return e.length === 0 || e[0].length === 0 ? !1 : e[0][0].distSqr(t) <= n ** 2;
|
|
78079
78082
|
}
|
|
78080
|
-
function
|
|
78083
|
+
function QIe(e, t, n) {
|
|
78081
78084
|
if (e.length === 0)
|
|
78082
78085
|
return !1;
|
|
78083
78086
|
const i = e[0], r = n / 2;
|
|
78084
78087
|
for (let o = 0; o < i.length - 1; o++) {
|
|
78085
78088
|
const s = i[o], a = i[o + 1];
|
|
78086
|
-
if (
|
|
78089
|
+
if (qIe(s, a, t, r, KIe))
|
|
78087
78090
|
return !0;
|
|
78088
78091
|
}
|
|
78089
78092
|
return !1;
|
|
78090
78093
|
}
|
|
78091
|
-
function
|
|
78094
|
+
function qIe(e, t, n, i, r = new Qb(0, 0)) {
|
|
78092
78095
|
const o = e.distSqr(t);
|
|
78093
78096
|
if (o === 0)
|
|
78094
78097
|
return !1;
|
|
78095
78098
|
const s = ((n.x - e.x) * (t.x - e.x) + (n.y - e.y) * (t.y - e.y)) / o, a = Math.max(0, Math.min(1, s)), c = r;
|
|
78096
78099
|
return c.x = e.x + a * (t.x - e.x), c.y = e.y + a * (t.y - e.y), n.distSqr(c) <= i ** 2;
|
|
78097
78100
|
}
|
|
78098
|
-
const $
|
|
78101
|
+
const $Ie = (e) => {
|
|
78099
78102
|
let t = 0;
|
|
78100
78103
|
for (let n = 0; n < e.length; n++) {
|
|
78101
78104
|
const i = e.charCodeAt(n);
|
|
78102
78105
|
t = (t << 5) - t + i, t &= t;
|
|
78103
78106
|
}
|
|
78104
78107
|
return t.toString(16);
|
|
78105
|
-
},
|
|
78108
|
+
}, e3e = {
|
|
78106
78109
|
marker: 1,
|
|
78107
78110
|
polyline: 1,
|
|
78108
78111
|
polygon: 1,
|
|
@@ -78117,9 +78120,9 @@ const $3e = (e) => {
|
|
|
78117
78120
|
heatMap: 1,
|
|
78118
78121
|
frustum: 1,
|
|
78119
78122
|
transition: 1
|
|
78120
|
-
},
|
|
78123
|
+
}, t3e = jIe(e3e);
|
|
78121
78124
|
var vt = /* @__PURE__ */ ((e) => (e[e.VARIABLE = 0] = "VARIABLE", e[e.UNARY = 1] = "UNARY", e[e.BINARY = 2] = "BINARY", e[e.TERNARY = 3] = "TERNARY", e[e.CONDITIONAL = 4] = "CONDITIONAL", e[e.MEMBER = 5] = "MEMBER", e[e.FUNCTION_CALL = 6] = "FUNCTION_CALL", e[e.ARRAY = 7] = "ARRAY", e[e.REGEX = 8] = "REGEX", e[e.VARIABLE_IN_STRING = 9] = "VARIABLE_IN_STRING", e[e.LITERAL_NULL = 10] = "LITERAL_NULL", e[e.LITERAL_BOOLEAN = 11] = "LITERAL_BOOLEAN", e[e.LITERAL_NUMBER = 12] = "LITERAL_NUMBER", e[e.LITERAL_STRING = 13] = "LITERAL_STRING", e[e.LITERAL_COLOR = 14] = "LITERAL_COLOR", e[e.LITERAL_VECTOR = 15] = "LITERAL_VECTOR", e[e.LITERAL_REGEX = 16] = "LITERAL_REGEX", e[e.LITERAL_UNDEFINED = 17] = "LITERAL_UNDEFINED", e[e.BUILTIN_VARIABLE = 18] = "BUILTIN_VARIABLE", e))(vt || {});
|
|
78122
|
-
const
|
|
78125
|
+
const n3e = ["!", "-", "+"], i3e = [
|
|
78123
78126
|
"+",
|
|
78124
78127
|
"-",
|
|
78125
78128
|
"*",
|
|
@@ -78137,7 +78140,7 @@ const nIe = ["!", "-", "+"], iIe = [
|
|
|
78137
78140
|
"=~",
|
|
78138
78141
|
"==",
|
|
78139
78142
|
"!="
|
|
78140
|
-
],
|
|
78143
|
+
], r3e = /\\/g, o3e = "@#%", s3e = /@#%/g, a3e = /^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])?$/i, c3e = /^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})?$/i, sP = {
|
|
78141
78144
|
ALICEBLUE: "#F0F8FF",
|
|
78142
78145
|
ANTIQUEWHITE: "#FAEBD7",
|
|
78143
78146
|
AQUA: "#00FFFF",
|
|
@@ -78285,7 +78288,7 @@ const nIe = ["!", "-", "+"], iIe = [
|
|
|
78285
78288
|
YELLOW: "#FFFF00",
|
|
78286
78289
|
YELLOWGREEN: "#9ACD32"
|
|
78287
78290
|
};
|
|
78288
|
-
function
|
|
78291
|
+
function l3e(e) {
|
|
78289
78292
|
const t = NE[e];
|
|
78290
78293
|
return function(n) {
|
|
78291
78294
|
const i = this._left.evaluate(n), r = this._right.evaluate(n);
|
|
@@ -78297,7 +78300,7 @@ const NE = {
|
|
|
78297
78300
|
pow: Ad(Math.pow, !1),
|
|
78298
78301
|
min: Ad(Math.min, !0),
|
|
78299
78302
|
max: Ad(Math.max, !0),
|
|
78300
|
-
startsWith: Ad(
|
|
78303
|
+
startsWith: Ad(u3e, !1)
|
|
78301
78304
|
};
|
|
78302
78305
|
function Ad(e, t) {
|
|
78303
78306
|
return function(n, i, r) {
|
|
@@ -78308,10 +78311,10 @@ function Ad(e, t) {
|
|
|
78308
78311
|
);
|
|
78309
78312
|
};
|
|
78310
78313
|
}
|
|
78311
|
-
function
|
|
78314
|
+
function u3e(e, t) {
|
|
78312
78315
|
return e.startsWith(t);
|
|
78313
78316
|
}
|
|
78314
|
-
function
|
|
78317
|
+
function h3e(e) {
|
|
78315
78318
|
const t = zE[e];
|
|
78316
78319
|
return function(n) {
|
|
78317
78320
|
const i = this._left.evaluate(n);
|
|
@@ -78333,10 +78336,10 @@ const zE = {
|
|
|
78333
78336
|
floor: Mi(Math.floor),
|
|
78334
78337
|
ceil: Mi(Math.ceil),
|
|
78335
78338
|
round: Mi(Math.round),
|
|
78336
|
-
exp2: Mi(
|
|
78339
|
+
exp2: Mi(f3e),
|
|
78337
78340
|
log: Mi(Math.log),
|
|
78338
|
-
log2: Mi(
|
|
78339
|
-
fract: Mi(
|
|
78341
|
+
log2: Mi(p3e),
|
|
78342
|
+
fract: Mi(d3e)
|
|
78340
78343
|
};
|
|
78341
78344
|
function Mi(e) {
|
|
78342
78345
|
return function(t, n) {
|
|
@@ -78347,16 +78350,16 @@ function Mi(e) {
|
|
|
78347
78350
|
);
|
|
78348
78351
|
};
|
|
78349
78352
|
}
|
|
78350
|
-
function
|
|
78353
|
+
function d3e(e) {
|
|
78351
78354
|
return e - Math.floor(e);
|
|
78352
78355
|
}
|
|
78353
|
-
function
|
|
78356
|
+
function f3e(e) {
|
|
78354
78357
|
return Math.pow(2, e);
|
|
78355
78358
|
}
|
|
78356
|
-
function
|
|
78359
|
+
function p3e(e) {
|
|
78357
78360
|
return gt.log2(e);
|
|
78358
78361
|
}
|
|
78359
|
-
const
|
|
78362
|
+
const m3e = /^rgba?\(\s*([0-9.]+%?)\s*,\s*([0-9.]+%?)\s*,\s*([0-9.]+%?)(?:\s*,\s*([0-9.]+))?\s*\)$/i, g3e = /^hsla?\(\s*([0-9.]+)\s*,\s*([0-9.]+%)\s*,\s*([0-9.]+%)(?:\s*,\s*([0-9.]+))?\s*\)$/i;
|
|
78360
78363
|
class Vn {
|
|
78361
78364
|
constructor(t, n, i, r) {
|
|
78362
78365
|
at(this, "red"), at(this, "green"), at(this, "blue"), at(this, "alpha"), this.red = er(t, 1), this.green = er(n, 1), this.blue = er(i, 1), this.alpha = er(r, 1);
|
|
@@ -78369,23 +78372,23 @@ class Vn {
|
|
|
78369
78372
|
}
|
|
78370
78373
|
static fromCssColorString(t) {
|
|
78371
78374
|
t = t.replace(/\s/g, "");
|
|
78372
|
-
const n =
|
|
78375
|
+
const n = y3e(t);
|
|
78373
78376
|
if (typeof n < "u")
|
|
78374
78377
|
return n;
|
|
78375
|
-
let i =
|
|
78378
|
+
let i = a3e.exec(t);
|
|
78376
78379
|
if (i !== null) {
|
|
78377
78380
|
const r = new Vn();
|
|
78378
78381
|
return r.red = parseInt(i[1], 16) / 15, r.green = parseInt(i[2], 16) / 15, r.blue = parseInt(i[3], 16) / 15, r.alpha = parseInt(er(i[4], "f"), 16) / 15, r;
|
|
78379
78382
|
}
|
|
78380
|
-
if (i =
|
|
78383
|
+
if (i = c3e.exec(t), i !== null) {
|
|
78381
78384
|
const r = new Vn();
|
|
78382
78385
|
return r.red = parseInt(i[1], 16) / 255, r.green = parseInt(i[2], 16) / 255, r.blue = parseInt(i[3], 16) / 255, r.alpha = parseInt(er(i[4], "ff"), 16) / 255, r;
|
|
78383
78386
|
}
|
|
78384
|
-
if (i =
|
|
78387
|
+
if (i = m3e.exec(t), i !== null) {
|
|
78385
78388
|
const r = new Vn();
|
|
78386
78389
|
return r.red = parseFloat(i[1]) / (i[1].substr(-1) === "%" ? 100 : 255), r.green = parseFloat(i[2]) / (i[2].substr(-1) === "%" ? 100 : 255), r.blue = parseFloat(i[3]) / (i[3].substr(-1) === "%" ? 100 : 255), r.alpha = parseFloat(er(i[4], "1.0")), r;
|
|
78387
78390
|
}
|
|
78388
|
-
if (i =
|
|
78391
|
+
if (i = g3e.exec(t), i !== null)
|
|
78389
78392
|
return Vn.fromHsl(
|
|
78390
78393
|
parseFloat(i[1]) / 360,
|
|
78391
78394
|
parseFloat(i[2]) / 100,
|
|
@@ -78422,7 +78425,7 @@ class Vn {
|
|
|
78422
78425
|
return t = this.byteToFloat(er(t, 255)), n = Vn.byteToFloat(er(n, 255)), i = Vn.byteToFloat(er(i, 255)), r = Vn.byteToFloat(er(r, 255)), new Vn(t, n, i, r);
|
|
78423
78426
|
}
|
|
78424
78427
|
}
|
|
78425
|
-
function
|
|
78428
|
+
function y3e(e) {
|
|
78426
78429
|
if (e = e.toUpperCase(), sP[e])
|
|
78427
78430
|
return Vn.fromCssColorString(sP[e]);
|
|
78428
78431
|
if (e === "TRANSPARENT")
|
|
@@ -78471,7 +78474,7 @@ class Lt {
|
|
|
78471
78474
|
this.evaluate = this._evaluateStringConversion;
|
|
78472
78475
|
break;
|
|
78473
78476
|
default:
|
|
78474
|
-
typeof zE[n] < "u" && (this.evaluate =
|
|
78477
|
+
typeof zE[n] < "u" && (this.evaluate = h3e(n));
|
|
78475
78478
|
break;
|
|
78476
78479
|
}
|
|
78477
78480
|
break;
|
|
@@ -78523,7 +78526,7 @@ class Lt {
|
|
|
78523
78526
|
this.evaluate = this._evaluateNotEquals;
|
|
78524
78527
|
break;
|
|
78525
78528
|
default:
|
|
78526
|
-
typeof NE[n] < "u" && (this.evaluate =
|
|
78529
|
+
typeof NE[n] < "u" && (this.evaluate = l3e(n));
|
|
78527
78530
|
break;
|
|
78528
78531
|
}
|
|
78529
78532
|
break;
|
|
@@ -78712,7 +78715,7 @@ class Lt {
|
|
|
78712
78715
|
return !!this._left.evaluate(t);
|
|
78713
78716
|
}
|
|
78714
78717
|
_evaluateNumberConversion(t) {
|
|
78715
|
-
const n =
|
|
78718
|
+
const n = b3e(this._left.evaluate(t));
|
|
78716
78719
|
return Number(n);
|
|
78717
78720
|
}
|
|
78718
78721
|
_evaluateStringConversion(t) {
|
|
@@ -78787,7 +78790,7 @@ class Lt {
|
|
|
78787
78790
|
return po(n) && !po(i) ? !n.includes(i) : po(i) && !po(n) ? !i.includes(n) : (po(i) && po(n) && console.error("NotEquals left and right both can't be array at the same time"), n != i);
|
|
78788
78791
|
}
|
|
78789
78792
|
}
|
|
78790
|
-
function
|
|
78793
|
+
function b3e(e) {
|
|
78791
78794
|
if (typeof e != "string")
|
|
78792
78795
|
return e;
|
|
78793
78796
|
const t = ["%"];
|
|
@@ -78802,8 +78805,8 @@ function aP(e) {
|
|
|
78802
78805
|
function po(e) {
|
|
78803
78806
|
return Array.isArray(e);
|
|
78804
78807
|
}
|
|
78805
|
-
function
|
|
78806
|
-
return t = Yp(t),
|
|
78808
|
+
function v3e(e, t, n) {
|
|
78809
|
+
return t = Yp(t), C3e(e, ZE() ? Reflect.construct(t, n || [], Yp(e).constructor) : t.apply(e, n));
|
|
78807
78810
|
}
|
|
78808
78811
|
function Y4(e, t, n) {
|
|
78809
78812
|
if (ZE())
|
|
@@ -78823,7 +78826,7 @@ function ZE() {
|
|
|
78823
78826
|
return !!e;
|
|
78824
78827
|
})();
|
|
78825
78828
|
}
|
|
78826
|
-
function
|
|
78829
|
+
function _3e(e, t) {
|
|
78827
78830
|
if (typeof e != "object" || !e)
|
|
78828
78831
|
return e;
|
|
78829
78832
|
var n = e[Symbol.toPrimitive];
|
|
@@ -78835,8 +78838,8 @@ function _Ie(e, t) {
|
|
|
78835
78838
|
}
|
|
78836
78839
|
return String(e);
|
|
78837
78840
|
}
|
|
78838
|
-
function
|
|
78839
|
-
var t =
|
|
78841
|
+
function w3e(e) {
|
|
78842
|
+
var t = _3e(e, "string");
|
|
78840
78843
|
return typeof t == "symbol" ? t : String(t);
|
|
78841
78844
|
}
|
|
78842
78845
|
function Ns(e) {
|
|
@@ -78850,18 +78853,18 @@ function H4(e, t) {
|
|
|
78850
78853
|
if (!(e instanceof t))
|
|
78851
78854
|
throw new TypeError("Cannot call a class as a function");
|
|
78852
78855
|
}
|
|
78853
|
-
function
|
|
78856
|
+
function x3e(e, t) {
|
|
78854
78857
|
for (var n = 0; n < t.length; n++) {
|
|
78855
78858
|
var i = t[n];
|
|
78856
|
-
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(e,
|
|
78859
|
+
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(e, w3e(i.key), i);
|
|
78857
78860
|
}
|
|
78858
78861
|
}
|
|
78859
78862
|
function j4(e, t, n) {
|
|
78860
|
-
return t &&
|
|
78863
|
+
return t && x3e(e.prototype, t), Object.defineProperty(e, "prototype", {
|
|
78861
78864
|
writable: !1
|
|
78862
78865
|
}), e;
|
|
78863
78866
|
}
|
|
78864
|
-
function
|
|
78867
|
+
function S3e(e, t) {
|
|
78865
78868
|
if (typeof t != "function" && t !== null)
|
|
78866
78869
|
throw new TypeError("Super expression must either be null or a function");
|
|
78867
78870
|
e.prototype = Object.create(t && t.prototype, {
|
|
@@ -78884,7 +78887,7 @@ function Hp(e, t) {
|
|
|
78884
78887
|
return n.__proto__ = i, n;
|
|
78885
78888
|
}, Hp(e, t);
|
|
78886
78889
|
}
|
|
78887
|
-
function
|
|
78890
|
+
function E3e(e) {
|
|
78888
78891
|
try {
|
|
78889
78892
|
return Function.toString.call(e).indexOf("[native code]") !== -1;
|
|
78890
78893
|
} catch {
|
|
@@ -78894,7 +78897,7 @@ function EIe(e) {
|
|
|
78894
78897
|
function D2(e) {
|
|
78895
78898
|
var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
78896
78899
|
return D2 = function(n) {
|
|
78897
|
-
if (n === null || !
|
|
78900
|
+
if (n === null || !E3e(n))
|
|
78898
78901
|
return n;
|
|
78899
78902
|
if (typeof n != "function")
|
|
78900
78903
|
throw new TypeError("Super expression must either be null or a function");
|
|
@@ -78916,26 +78919,26 @@ function D2(e) {
|
|
|
78916
78919
|
}), Hp(i, n);
|
|
78917
78920
|
}, D2(e);
|
|
78918
78921
|
}
|
|
78919
|
-
function
|
|
78922
|
+
function T3e(e) {
|
|
78920
78923
|
if (e === void 0)
|
|
78921
78924
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
78922
78925
|
return e;
|
|
78923
78926
|
}
|
|
78924
|
-
function
|
|
78927
|
+
function C3e(e, t) {
|
|
78925
78928
|
if (t && (typeof t == "object" || typeof t == "function"))
|
|
78926
78929
|
return t;
|
|
78927
78930
|
if (t !== void 0)
|
|
78928
78931
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
78929
|
-
return
|
|
78932
|
+
return T3e(e);
|
|
78930
78933
|
}
|
|
78931
|
-
function
|
|
78932
|
-
return
|
|
78934
|
+
function R3e(e) {
|
|
78935
|
+
return I3e(e) || M3e(e) || K4(e) || P3e();
|
|
78933
78936
|
}
|
|
78934
|
-
function
|
|
78937
|
+
function I3e(e) {
|
|
78935
78938
|
if (Array.isArray(e))
|
|
78936
78939
|
return W2(e);
|
|
78937
78940
|
}
|
|
78938
|
-
function
|
|
78941
|
+
function M3e(e) {
|
|
78939
78942
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null)
|
|
78940
78943
|
return Array.from(e);
|
|
78941
78944
|
}
|
|
@@ -78956,11 +78959,11 @@ function W2(e, t) {
|
|
|
78956
78959
|
i[n] = e[n];
|
|
78957
78960
|
return i;
|
|
78958
78961
|
}
|
|
78959
|
-
function
|
|
78962
|
+
function P3e() {
|
|
78960
78963
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
78961
78964
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
78962
78965
|
}
|
|
78963
|
-
function
|
|
78966
|
+
function L3e(e, t) {
|
|
78964
78967
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
78965
78968
|
if (!n) {
|
|
78966
78969
|
if (Array.isArray(e) || (n = K4(e)) || t) {
|
|
@@ -79015,11 +79018,11 @@ function ec(e, t) {
|
|
|
79015
79018
|
function k2(e, t) {
|
|
79016
79019
|
return t = t.slice(), t.unshift(e), t;
|
|
79017
79020
|
}
|
|
79018
|
-
var
|
|
79019
|
-
|
|
79021
|
+
var O3e = /* @__PURE__ */ (function(e) {
|
|
79022
|
+
S3e(t, e);
|
|
79020
79023
|
function t(n) {
|
|
79021
79024
|
var i;
|
|
79022
|
-
return H4(this, t), i =
|
|
79025
|
+
return H4(this, t), i = v3e(this, t, ['JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)']), i.avoidNew = !0, i.value = n, i.name = "NewError", i;
|
|
79023
79026
|
}
|
|
79024
79027
|
return j4(t);
|
|
79025
79028
|
})(/* @__PURE__ */ D2(Error));
|
|
@@ -79043,7 +79046,7 @@ function _n(e, t, n, i, r) {
|
|
|
79043
79046
|
o ? "json" in e && (s.json = e.json) : s.json = n;
|
|
79044
79047
|
var a = this.evaluate(s);
|
|
79045
79048
|
if (!a || Ns(a) !== "object")
|
|
79046
|
-
throw new
|
|
79049
|
+
throw new O3e(a);
|
|
79047
79050
|
return a;
|
|
79048
79051
|
}
|
|
79049
79052
|
}
|
|
@@ -79199,7 +79202,7 @@ _n.prototype._trace = function(e, t, n, i, r, o, s, a) {
|
|
|
79199
79202
|
var v = u.slice(1);
|
|
79200
79203
|
f(this._trace(h, t[v], ec(n, v), t, v, o, s, !0));
|
|
79201
79204
|
} else if (u.includes(",")) {
|
|
79202
|
-
var x = u.split(","), T =
|
|
79205
|
+
var x = u.split(","), T = L3e(x), R;
|
|
79203
79206
|
try {
|
|
79204
79207
|
for (T.s(); !(R = T.n()).done; ) {
|
|
79205
79208
|
var M = R.value;
|
|
@@ -79292,12 +79295,12 @@ _n.toPathArray = function(e) {
|
|
|
79292
79295
|
});
|
|
79293
79296
|
return t[e] = r, t[e].concat();
|
|
79294
79297
|
};
|
|
79295
|
-
var
|
|
79298
|
+
var V3e = function(e, t, n) {
|
|
79296
79299
|
for (var i = e.length, r = 0; r < i; r++) {
|
|
79297
79300
|
var o = e[r];
|
|
79298
79301
|
n(o) && t.push(e.splice(r--, 1)[0]);
|
|
79299
79302
|
}
|
|
79300
|
-
},
|
|
79303
|
+
}, G3e = /* @__PURE__ */ (function() {
|
|
79301
79304
|
function e(t) {
|
|
79302
79305
|
H4(this, e), this.code = t;
|
|
79303
79306
|
}
|
|
@@ -79305,7 +79308,7 @@ var VIe = function(e, t, n) {
|
|
|
79305
79308
|
key: "runInNewContext",
|
|
79306
79309
|
value: function(t) {
|
|
79307
79310
|
var n = this.code, i = Object.keys(t), r = [];
|
|
79308
|
-
|
|
79311
|
+
V3e(i, r, function(l) {
|
|
79309
79312
|
return typeof t[l] == "function";
|
|
79310
79313
|
});
|
|
79311
79314
|
var o = i.map(function(l) {
|
|
@@ -79316,14 +79319,14 @@ var VIe = function(e, t, n) {
|
|
|
79316
79319
|
}, "");
|
|
79317
79320
|
n = s + n, !/(["'])use strict\1/.test(n) && !i.includes("arguments") && (n = "var arguments = undefined;" + n), n = n.replace(/;[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*$/, "");
|
|
79318
79321
|
var a = n.lastIndexOf(";"), c = a > -1 ? n.slice(0, a + 1) + " return " + n.slice(a + 1) : " return " + n;
|
|
79319
|
-
return Y4(Function, i.concat([c])).apply(void 0,
|
|
79322
|
+
return Y4(Function, i.concat([c])).apply(void 0, R3e(o));
|
|
79320
79323
|
}
|
|
79321
79324
|
}]), e;
|
|
79322
79325
|
})();
|
|
79323
79326
|
_n.prototype.vm = {
|
|
79324
|
-
Script:
|
|
79327
|
+
Script: G3e
|
|
79325
79328
|
};
|
|
79326
|
-
const
|
|
79329
|
+
const F3e = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", A3e = (e) => Array.from(window.crypto.getRandomValues(new Uint8Array(e))).map((t) => F3e[t % e]).join("").toLowerCase(), J4 = (e) => {
|
|
79327
79330
|
if (typeof e != "object" || e === null)
|
|
79328
79331
|
return e;
|
|
79329
79332
|
for (const t in e)
|
|
@@ -79337,18 +79340,18 @@ const FIe = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", AI
|
|
|
79337
79340
|
typeof e[t] == "object" && (e[t] = J4(e[t]));
|
|
79338
79341
|
return e;
|
|
79339
79342
|
}, XE = "czm_";
|
|
79340
|
-
function
|
|
79343
|
+
function N3e(e, t) {
|
|
79341
79344
|
let n = e, i = "";
|
|
79342
79345
|
const r = [];
|
|
79343
79346
|
let o = n.indexOf("${");
|
|
79344
79347
|
const s = typeof t < "u", a = {}, c = /^\$./;
|
|
79345
79348
|
for (; o >= 0; )
|
|
79346
|
-
if (
|
|
79347
|
-
const l =
|
|
79349
|
+
if (z3e(n, o)) {
|
|
79350
|
+
const l = Z3e(n, o);
|
|
79348
79351
|
i += n.slice(0, l + 1), n = n.slice(l + 1), o = n.indexOf("${");
|
|
79349
79352
|
} else {
|
|
79350
79353
|
i += n.slice(0, o);
|
|
79351
|
-
const l =
|
|
79354
|
+
const l = X3e(n, o), u = n.slice(o + 2, l);
|
|
79352
79355
|
if (c.test(u)) {
|
|
79353
79356
|
if (!s)
|
|
79354
79357
|
return [i, []];
|
|
@@ -79360,7 +79363,7 @@ function NIe(e, t) {
|
|
|
79360
79363
|
return [i, []];
|
|
79361
79364
|
}
|
|
79362
79365
|
if (h.length !== 0) {
|
|
79363
|
-
const d =
|
|
79366
|
+
const d = A3e(10);
|
|
79364
79367
|
r.push({
|
|
79365
79368
|
literalName: d,
|
|
79366
79369
|
literalValue: h[0]
|
|
@@ -79368,22 +79371,22 @@ function NIe(e, t) {
|
|
|
79368
79371
|
} else
|
|
79369
79372
|
return ["false", []];
|
|
79370
79373
|
} else {
|
|
79371
|
-
const h =
|
|
79374
|
+
const h = U3e(u);
|
|
79372
79375
|
i += `${XE}${h}`;
|
|
79373
79376
|
}
|
|
79374
79377
|
n = n.slice(l + 1), o = n.indexOf("${");
|
|
79375
79378
|
}
|
|
79376
79379
|
return i += n, [i, r];
|
|
79377
79380
|
}
|
|
79378
|
-
function
|
|
79381
|
+
function z3e(e, t) {
|
|
79379
79382
|
const n = e.indexOf("'"), i = e.indexOf('"');
|
|
79380
79383
|
return n >= 0 && n < t ? e.indexOf("'", n + 1) >= t : i >= 0 && i < t ? e.indexOf('"', i + 1) >= t : !1;
|
|
79381
79384
|
}
|
|
79382
|
-
function
|
|
79385
|
+
function Z3e(e, t) {
|
|
79383
79386
|
const n = e.indexOf("'"), i = e.indexOf('"');
|
|
79384
79387
|
return n >= 0 && n < t ? e.indexOf("'", n + 1) : i >= 0 && i < t ? e.indexOf('"', i + 1) : -1;
|
|
79385
79388
|
}
|
|
79386
|
-
function
|
|
79389
|
+
function X3e(e, t) {
|
|
79387
79390
|
const n = e.indexOf("}", t);
|
|
79388
79391
|
if (n < 0)
|
|
79389
79392
|
throw new Error("replaceVariable: Unmatched {.");
|
|
@@ -79397,22 +79400,22 @@ const ol = (e) => `$reearth_${e}_$`, B2 = {
|
|
|
79397
79400
|
"(": ol("opened_parentheses"),
|
|
79398
79401
|
")": ol("closed_parentheses"),
|
|
79399
79402
|
"-": ol("hyphen")
|
|
79400
|
-
},
|
|
79403
|
+
}, U3e = (e) => {
|
|
79401
79404
|
const t = e.replace(/-/g, B2["-"]);
|
|
79402
79405
|
return /(\]|\)|\})[^[.]+$/.test(t) ? Object.entries(B2).reduce((n, [i, r]) => n.replaceAll(i, r), t) : t;
|
|
79403
|
-
},
|
|
79406
|
+
}, D3e = (e) => Object.entries(B2).reduce((t, [n, i]) => t.replaceAll(i, n), e), W3e = new Set(n3e), cP = new Set(i3e);
|
|
79404
79407
|
function on(e, t) {
|
|
79405
79408
|
let n = new Error("failed to parse");
|
|
79406
79409
|
const i = t.type;
|
|
79407
79410
|
if (i === "Literal")
|
|
79408
|
-
n =
|
|
79411
|
+
n = k3e(t);
|
|
79409
79412
|
else if (i === "CallExpression")
|
|
79410
|
-
n =
|
|
79413
|
+
n = Y3e(e, t);
|
|
79411
79414
|
else if (i === "Identifier")
|
|
79412
|
-
n =
|
|
79415
|
+
n = H3e(t);
|
|
79413
79416
|
else if (i === "UnaryExpression") {
|
|
79414
79417
|
const r = t.operator, o = on(e, t.argument);
|
|
79415
|
-
if (
|
|
79418
|
+
if (W3e.has(r))
|
|
79416
79419
|
n = new Lt(vt.UNARY, r, o);
|
|
79417
79420
|
else
|
|
79418
79421
|
throw new Error(`Unexpected operator "${r}".`);
|
|
@@ -79429,7 +79432,7 @@ function on(e, t) {
|
|
|
79429
79432
|
const r = on(e, t.test), o = on(e, t.consequent), s = on(e, t.alternate);
|
|
79430
79433
|
n = new Lt(vt.CONDITIONAL, "?", o, s, r);
|
|
79431
79434
|
} else if (i === "MemberExpression")
|
|
79432
|
-
n =
|
|
79435
|
+
n = J3e(e, t);
|
|
79433
79436
|
else if (i === "ArrayExpression") {
|
|
79434
79437
|
const r = [];
|
|
79435
79438
|
for (let o = 0; o < t.elements.length; o++)
|
|
@@ -79439,7 +79442,7 @@ function on(e, t) {
|
|
|
79439
79442
|
throw i === "Compound" ? new Error("Provide exactly one expression.") : new Error("Cannot parse expression.");
|
|
79440
79443
|
return n;
|
|
79441
79444
|
}
|
|
79442
|
-
function
|
|
79445
|
+
function k3e(e) {
|
|
79443
79446
|
const t = typeof e.value;
|
|
79444
79447
|
if (e.value === null)
|
|
79445
79448
|
return new Lt(vt.LITERAL_NULL, null);
|
|
@@ -79448,13 +79451,13 @@ function kIe(e) {
|
|
|
79448
79451
|
if (t === "number")
|
|
79449
79452
|
return new Lt(vt.LITERAL_NUMBER, e.value);
|
|
79450
79453
|
if (t === "string")
|
|
79451
|
-
return e.value.indexOf("${") >= 0 ? new Lt(vt.VARIABLE_IN_STRING, e.value) : new Lt(vt.LITERAL_STRING,
|
|
79454
|
+
return e.value.indexOf("${") >= 0 ? new Lt(vt.VARIABLE_IN_STRING, e.value) : new Lt(vt.LITERAL_STRING, B3e(e.value));
|
|
79452
79455
|
throw new Error(`${e} is not a function.`);
|
|
79453
79456
|
}
|
|
79454
|
-
function
|
|
79455
|
-
return e.replace(
|
|
79457
|
+
function B3e(e) {
|
|
79458
|
+
return e.replace(s3e, "\\");
|
|
79456
79459
|
}
|
|
79457
|
-
function
|
|
79460
|
+
function Y3e(e, t) {
|
|
79458
79461
|
const n = t.arguments, i = n.length;
|
|
79459
79462
|
if (t.callee.type === "MemberExpression") {
|
|
79460
79463
|
const o = t.callee.property.name, s = t.callee.object;
|
|
@@ -79533,10 +79536,10 @@ function YIe(e, t) {
|
|
|
79533
79536
|
}
|
|
79534
79537
|
throw new Error(`Unexpected function call "${r}".`);
|
|
79535
79538
|
}
|
|
79536
|
-
function
|
|
79539
|
+
function H3e(e) {
|
|
79537
79540
|
const t = e.name;
|
|
79538
|
-
if (
|
|
79539
|
-
const n =
|
|
79541
|
+
if (Q3e(t)) {
|
|
79542
|
+
const n = q3e(t);
|
|
79540
79543
|
return n.substring(0, 8) === "tiles3d_" ? new Lt(vt.BUILTIN_VARIABLE, n) : new Lt(vt.VARIABLE, n);
|
|
79541
79544
|
} else {
|
|
79542
79545
|
if (t === "NaN")
|
|
@@ -79548,7 +79551,7 @@ function HIe(e) {
|
|
|
79548
79551
|
}
|
|
79549
79552
|
throw new Error(`${t} is not defined.`);
|
|
79550
79553
|
}
|
|
79551
|
-
function
|
|
79554
|
+
function j3e(e) {
|
|
79552
79555
|
const t = e.property.name;
|
|
79553
79556
|
if (t === "PI")
|
|
79554
79557
|
return new Lt(vt.LITERAL_NUMBER, Math.PI);
|
|
@@ -79556,26 +79559,26 @@ function jIe(e) {
|
|
|
79556
79559
|
return new Lt(vt.LITERAL_NUMBER, Math.E);
|
|
79557
79560
|
throw new Error(`${t} Math Constant is not supported at the moment`);
|
|
79558
79561
|
}
|
|
79559
|
-
function
|
|
79562
|
+
function K3e(e) {
|
|
79560
79563
|
const t = e.property.name;
|
|
79561
79564
|
if (t === "POSITIVE_INFINITY")
|
|
79562
79565
|
return new Lt(vt.LITERAL_NUMBER, Number.POSITIVE_INFINITY);
|
|
79563
79566
|
throw new Error(`${t} Number Constant is not supported at the moment`);
|
|
79564
79567
|
}
|
|
79565
|
-
function
|
|
79568
|
+
function J3e(e, t) {
|
|
79566
79569
|
if (t.object.name === "Math")
|
|
79567
|
-
return
|
|
79570
|
+
return j3e(t);
|
|
79568
79571
|
if (t.object.name === "Number")
|
|
79569
|
-
return
|
|
79572
|
+
return K3e(t);
|
|
79570
79573
|
let n;
|
|
79571
79574
|
const i = on(e, t.object);
|
|
79572
79575
|
return t.computed ? (n = on(e, t.property), new Lt(vt.MEMBER, "brackets", i, n)) : (n = new Lt(vt.LITERAL_STRING, t.property.name), new Lt(vt.MEMBER, "dot", i, n));
|
|
79573
79576
|
}
|
|
79574
|
-
function
|
|
79577
|
+
function Q3e(e) {
|
|
79575
79578
|
return e.substring(0, 4) === XE;
|
|
79576
79579
|
}
|
|
79577
|
-
function
|
|
79578
|
-
return
|
|
79580
|
+
function q3e(e) {
|
|
79581
|
+
return D3e(e).substring(4);
|
|
79579
79582
|
}
|
|
79580
79583
|
const lP = /* @__PURE__ */ new Map(), uP = /* @__PURE__ */ new Map(), hP = /* @__PURE__ */ new Map(), dP = /* @__PURE__ */ new Map();
|
|
79581
79584
|
class rb {
|
|
@@ -79584,13 +79587,13 @@ class rb {
|
|
|
79584
79587
|
var r;
|
|
79585
79588
|
this._feature = n;
|
|
79586
79589
|
let o = [];
|
|
79587
|
-
t = $
|
|
79590
|
+
t = $3e(t, i);
|
|
79588
79591
|
const s = uP.get(t);
|
|
79589
79592
|
if (s)
|
|
79590
79593
|
[t, o] = s;
|
|
79591
79594
|
else {
|
|
79592
79595
|
const c = t;
|
|
79593
|
-
[t, o] =
|
|
79596
|
+
[t, o] = N3e(
|
|
79594
79597
|
eMe(t),
|
|
79595
79598
|
(r = this._feature) == null ? void 0 : r.properties
|
|
79596
79599
|
), t.includes(XE) && uP.set(c, [t, o]);
|
|
@@ -79616,7 +79619,7 @@ class rb {
|
|
|
79616
79619
|
return this._runtimeAst.evaluate(this._feature);
|
|
79617
79620
|
}
|
|
79618
79621
|
}
|
|
79619
|
-
function $
|
|
79622
|
+
function $3e(e, t) {
|
|
79620
79623
|
if (typeof t > "u")
|
|
79621
79624
|
return e;
|
|
79622
79625
|
const n = JSON.stringify(Object.entries(t).sort()), i = e + n, r = dP.get(i);
|
|
@@ -79631,7 +79634,7 @@ function $Ie(e, t) {
|
|
|
79631
79634
|
return dP.set(i, s), s;
|
|
79632
79635
|
}
|
|
79633
79636
|
function eMe(e) {
|
|
79634
|
-
return e.replace(
|
|
79637
|
+
return e.replace(r3e, o3e);
|
|
79635
79638
|
}
|
|
79636
79639
|
let tMe = class {
|
|
79637
79640
|
constructor(t, n, i) {
|
|
@@ -79669,7 +79672,7 @@ class nMe {
|
|
|
79669
79672
|
}
|
|
79670
79673
|
}
|
|
79671
79674
|
const iMe = (e, t, n) => {
|
|
79672
|
-
const i = XRe(e,
|
|
79675
|
+
const i = XRe(e, t3e), r = cMe(e, t);
|
|
79673
79676
|
return {
|
|
79674
79677
|
...r,
|
|
79675
79678
|
...rMe(i, e, r),
|
|
@@ -79766,7 +79769,7 @@ const lMe = (e, t, n) => {
|
|
|
79766
79769
|
const n = [t.x, t.y, t.level, ...e.flatMap((i) => i.map((r) => [r.x, r.y]))].join(
|
|
79767
79770
|
":"
|
|
79768
79771
|
);
|
|
79769
|
-
return $
|
|
79772
|
+
return $Ie(n);
|
|
79770
79773
|
}, hMe = (e, t, n, i) => {
|
|
79771
79774
|
const r = t.loadGeometry(), [o, s] = (() => {
|
|
79772
79775
|
if (i === "polygon")
|
|
@@ -80798,11 +80801,11 @@ class vMe {
|
|
|
80798
80801
|
), p = new Qb(f.x, f.y);
|
|
80799
80802
|
for (let m = 0; m < r.length; m++) {
|
|
80800
80803
|
const _ = r.feature(m);
|
|
80801
|
-
if (da.types[_.type] === "Polygon" && yMe(_.loadGeometry(), p) || da.types[_.type] === "LineString" &&
|
|
80804
|
+
if (da.types[_.type] === "Polygon" && yMe(_.loadGeometry(), p) || da.types[_.type] === "LineString" && QIe(
|
|
80802
80805
|
_.loadGeometry(),
|
|
80803
80806
|
p,
|
|
80804
80807
|
bP(this._pickLineWidth, _, t) * d
|
|
80805
|
-
) || da.types[_.type] === "Point" &&
|
|
80808
|
+
) || da.types[_.type] === "Point" && JIe(
|
|
80806
80809
|
_.loadGeometry(),
|
|
80807
80810
|
p,
|
|
80808
80811
|
bP(this._pickPointRadius, _, t) * d
|
|
@@ -80838,7 +80841,7 @@ const _Me = async (e) => {
|
|
|
80838
80841
|
} catch {
|
|
80839
80842
|
return;
|
|
80840
80843
|
}
|
|
80841
|
-
}, wMe = 5, xMe = 5, SMe = (e) => new
|
|
80844
|
+
}, wMe = 5, xMe = 5, SMe = (e) => new IIe(new MIe(e)), EMe = async (e) => {
|
|
80842
80845
|
if (!e) {
|
|
80843
80846
|
console.error("fetch request failed because request url is undefined");
|
|
80844
80847
|
return;
|
|
@@ -85503,7 +85506,7 @@ function FLe(e, t) {
|
|
|
85503
85506
|
if (!(!c || c.isDestroyed()))
|
|
85504
85507
|
try {
|
|
85505
85508
|
let l, u, h;
|
|
85506
|
-
return s && (u = poe(c.scene), u && (l =
|
|
85509
|
+
return s && (u = poe(c.scene), u && (l = sI(u, c.scene))), l || (u = new Ue.Cartesian3(), oI(c.scene, u), l = sI(u, c.scene)), a && u && c.scene.camera.frustum instanceof Ue.PerspectiveFrustum && c.scene.camera.frustum.fov !== void 0 && (h = Ue.Cartesian3.distance(c.scene.camera.positionWC, u) * Math.tan(c.scene.camera.frustum.fov / 2)), {
|
|
85507
85510
|
center: l,
|
|
85508
85511
|
viewSize: h
|
|
85509
85512
|
};
|
|
@@ -85760,7 +85763,7 @@ function FLe(e, t) {
|
|
|
85760
85763
|
rotateOnCenter: (s) => {
|
|
85761
85764
|
const a = t.current?.cesiumElement;
|
|
85762
85765
|
if (!a || a.isDestroyed()) return;
|
|
85763
|
-
const c = a.scene, l =
|
|
85766
|
+
const c = a.scene, l = oI(c, new Ue.Cartesian3());
|
|
85764
85767
|
l && c.camera.rotate(l, s);
|
|
85765
85768
|
},
|
|
85766
85769
|
overrideScreenSpaceController: (s) => {
|
|
@@ -85813,11 +85816,11 @@ function FLe(e, t) {
|
|
|
85813
85816
|
},
|
|
85814
85817
|
zoomIn: (s, a) => {
|
|
85815
85818
|
const c = t.current?.cesiumElement;
|
|
85816
|
-
!c || c.isDestroyed() ||
|
|
85819
|
+
!c || c.isDestroyed() || aI({ viewer: c, relativeAmount: 1 / s }, a);
|
|
85817
85820
|
},
|
|
85818
85821
|
zoomOut: (s, a) => {
|
|
85819
85822
|
const c = t.current?.cesiumElement;
|
|
85820
|
-
!c || c.isDestroyed() ||
|
|
85823
|
+
!c || c.isDestroyed() || aI({ viewer: c, relativeAmount: s }, a);
|
|
85821
85824
|
},
|
|
85822
85825
|
orbit: (s) => {
|
|
85823
85826
|
const a = t.current?.cesiumElement;
|
|
@@ -93669,7 +93672,7 @@ function CAe({ error: e, resetErrorBoundary: t }) {
|
|
|
93669
93672
|
/* @__PURE__ */ ae.jsx("p", { children: /* @__PURE__ */ ae.jsx("button", { style: { color: "#fff" }, onClick: t, children: "Retry" }) })
|
|
93670
93673
|
] });
|
|
93671
93674
|
}
|
|
93672
|
-
const RAe = "0.0.7-alpha.
|
|
93675
|
+
const RAe = "0.0.7-alpha.57", IAe = ({ viewerProperty: e }) => {
|
|
93673
93676
|
const t = pe(e);
|
|
93674
93677
|
t.current = e;
|
|
93675
93678
|
const n = fe(
|