earthsdk3-cesium 3.5.0-beta.19 → 3.5.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/earthsdk3-cesium.js
CHANGED
|
@@ -2,8 +2,8 @@ var D1 = Object.defineProperty;
|
|
|
2
2
|
var k1 = (t, i, e) => i in t ? D1(t, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[i] = e;
|
|
3
3
|
var m = (t, i, e) => k1(t, typeof i != "symbol" ? i + "" : i, e);
|
|
4
4
|
import * as h from "cesium";
|
|
5
|
-
import { Cartesian3 as Wo, Math as
|
|
6
|
-
import { createGuid as Ze, extendClassProps as ae, Destroyable as L, EngineObject as qi, Event as q, getReactFuncs as Mi, createNextAnimateFrameEvent as F, react as G, cartesianDistance as G1, ObjResettingWithEvent as he, geoRhumbDistance as
|
|
5
|
+
import { Cartesian3 as Wo, Math as ap, WebMercatorTilingScheme as F1, Rectangle as z1, Event as L1, Credit as O1, DefaultProxy as B1, defined as V1, Resource as fg, ImageryLayerFeatureInfo as N1, Frozen as U1 } from "cesium";
|
|
6
|
+
import { createGuid as Ze, extendClassProps as ae, Destroyable as L, EngineObject as qi, Event as q, getReactFuncs as Mi, createNextAnimateFrameEvent as F, react as G, cartesianDistance as G1, ObjResettingWithEvent as he, geoRhumbDistance as Od, geoRhumbHeading as hr, geoRhumbDestination as Ft, geoNearestPointOnLine as W1, getDomEventCurrentTargetPos as qt, geoDistance as Ti, ESSceneObject as oe, lbhToXyz as cr, xyzToLbh as nw, createProcessingFromAsyncFunc as Fe, step as fi, reactArrayWithUndefined as Q, getMinMaxCorner as mt, ESImageryLayer as _h, ESTerrainLayer as ga, ES3DTileset as vi, bind as M, geoHeading as wr, animateFrame as H1, geoDestination as $s, min as su, objsIterator as En, max as nu, getGeoBoundingSphereFromPositions as hf, pairToPromise as $1, Vector as di, ESGltfModel as jc, reactJsonWithUndefined as Ge, reactJson as Be, reactArray as j, track as C, reactDeepArrayWithUndefined as rw, defaultGetLocalFilePath as q1, ComplexImage as ru, czmPixelFormats as X1, HasOwner as Bd, reactPositionsSet as Gr, setExtProp as ed, getExtProp as cf, getMinMaxPosition as aw, PosFloatDiv as lw, DivPoi as hw, createNextMicroTaskEvent as Y1, Transition as Cr, CanvasPrimitivesContext as Z1, CanvasPoi as df, DomElementEvent as pc, PointerClick as cw, PointerHover as Q1, CanvasPrimitive as K1, fetchImage as J1, getColorHexStr as fc, getDrawRect as au, drawTextBlock as gg, imageToCanvas as j1, setCanvasUniformColor as eP, ESJPickedResult as dr, createTimeoutWithStartValues as mg, reactPositions as Qe, reactArrayCollectionWithUndefined as tP, Player as ic, ESPoi2D as it, ESWidget as dw, registerCreatedEventUpdate as Mt, debounce as iP, getDistancesFromPositions as ut, getDefaultValue as lu, ESPathImpl as uw, PlayerProperty as Vd, SmoothMoveController as oP, ESSceneObjectWithId as Di, ESClippingPlane as pw, ESGeoPolygon as Nd, nextAnimateFrame as Zt, ESPolygonFlattenedPlane as sP, registerEventUpdate as Ui, ESExcavate as oc, ESHole as Ud, ESBoxClipping as uf, defaultLocalFileServer as ma, ESAlarm as vg, ESApertureEffect as yg, createEventsCallFunc as $c, geoArea as nP, geoCenterOfMass as rP, ESAreaMeasurement as aP, ESBlastParticleSystem as lP, ESCameraView as hP, ESCameraVisibleRange as wg, ESCar as cP, ESCityBasePoint as dP, ESClassification as fw, ESCzml as uP, ESDataMesh as An, ColorStops as pP, sleep as gw, fetchArrayBuffer as hu, clampN180_180 as fP, clamp0_360 as gP, ESDirectionMeasurement as mP, inOrderRunning as vP, ESGeoLineString as mw, ESDistanceMeasurement as yP, ESFireParticleSystem as wP, ESVisualObject as td, GroupProperty as ye, EnumProperty as Ii, NumberProperty as ce, StringProperty as qs, Number4Property as ss, JsonProperty as $t, NumberSliderProperty as Cg, FunctionProperty as ur, EvalStringProperty as id, BooleanProperty as ue, LongStringProperty as CP, DateProperty as cu, ESLocalVector2D as _g, reactPosition2Ds as _P, Number2sProperty as PP, ColorProperty as Zn, DashPatternProperty as vw, ESLocalVector as Pg, Number3sProperty as xP, ESObjectWithLocation as xg, PositionProperty as SP, RotationProperty as bP, Number3Property as yw, ESGeoVector as Ri, ESJEditingMode as Ye, UriProperty as TP, Number2Property as EP, ESGeoDiv as AP, ESGeoDivTextPoi as MP, isJSON as ww, ESGeoJson as Cw, ESGeoRectangle as IP, ESHeightMeasurement as RP, ESHuman as Sg, ESImageLabel as DP, ESLocalSkyBox as bg, ESLocationMeasurement as Tg, ESParticleSystemPrimitive as kP, ESPoi3D as FP, ESSubmergingAnalysis as bs, ESTextLabel as zP, ESUEWidget as LP, ESUnrealActor as OP, ESVideoFusion as gc, ESViewShed as mc, ESLocalCircle as Eg, ESLocalPolygon as _w, ESLocalPolygonZ as Pw, ESLocalRectangle as BP, ESNavigator as Mn, ESCustomDiv as Gd, createAnimateFrameWithStartValues as pf, ESPath as VP, ESPolygonFence as xw, ESRectangle as NP, ESScale as ta, ESDynamicWater as Ho, ESEntityCluster as qc, ESGeoWater as mo, ESPipeFence as UP, ESPipeline as GP, equalsN3 as Wr, ESPipeserTileset as WP, ESPit as HP, ESPolygonWithHole as $P, clamp as lp, ESSunshineAnalysis as Sw, ESSurfaceAreaMeasurement as qP, ESViewerStatusBar as Zi, ESViewerStatusBarScale as Qi, ESVisibilityAnalysis as XP, ESVolumeMeasurement as YP, ESGeoExtrudedPolygon as vc, ESHumanPoi as ZP, ESRtsTileset as QP, ESRtsFeatureEditing as KP, ESMsTileset as JP, ESStaticMesh as jP, ESSkylineAnalysis as Ag, ESHeatMap as In, ESGeoPoints as ia, getEventFromPromise as ex, Processing as Ca, ObservableArray as tx, CursorInfo as ix, CursorFloatDiv as ox, createCancelablePromise as hp, createNextAnimateFrame as sx, ESViewer as cp, StringsProperty as nx } from "earthsdk3";
|
|
7
7
|
import ff from "html2canvas";
|
|
8
8
|
import * as rx from "mvt-basic-render";
|
|
9
9
|
import ax from "delaunator";
|
|
@@ -117,7 +117,7 @@ function dx(t, i) {
|
|
|
117
117
|
function ho(t, i) {
|
|
118
118
|
return i = i || new h.Cartesian3(), i.x = t[0], i.y = t[1], i.z = t[2], i;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function od(t, i) {
|
|
121
121
|
return i = i || [0, 0, 0], i[0] = t.x, i[1] = t.y, i[2] = t.z, i;
|
|
122
122
|
}
|
|
123
123
|
function bw(t, i) {
|
|
@@ -139,7 +139,7 @@ function DO(t, i) {
|
|
|
139
139
|
if (t instanceof h.Cartesian2)
|
|
140
140
|
return dx(t, i);
|
|
141
141
|
if (t instanceof h.Cartesian3)
|
|
142
|
-
return
|
|
142
|
+
return od(t, i);
|
|
143
143
|
if (t instanceof h.Cartesian4)
|
|
144
144
|
return ux(t, i);
|
|
145
145
|
throw new Error("fromCartesian error: should not be here!");
|
|
@@ -168,7 +168,7 @@ function px(t, i) {
|
|
|
168
168
|
function LO(t, i) {
|
|
169
169
|
return i = i || [0, 0, 0], i[0] = h.Math.toDegrees(t.heading + h.Math.PI_OVER_TWO), i[1] = h.Math.toDegrees(t.pitch), i[2] = h.Math.toDegrees(t.roll), i;
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function Wd(t, i) {
|
|
172
172
|
return i = i || new h.DistanceDisplayCondition(), i.near = t[0], i.far = t[1], i;
|
|
173
173
|
}
|
|
174
174
|
function OO(t, i) {
|
|
@@ -232,7 +232,7 @@ function Co(t) {
|
|
|
232
232
|
});
|
|
233
233
|
console.warn(`未能识别的类型tilingSchemaJson.type: ${t.type}`);
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function Hd(t, i) {
|
|
236
236
|
const { planes: e, enabled: o, modelMatrix: s, unionClippingRegions: n, edgeColor: r, edgeWidth: a } = t;
|
|
237
237
|
let l = s && h.Matrix4.fromArray(s);
|
|
238
238
|
return i && (l = l || h.Matrix4.clone(h.Matrix4.IDENTITY, new h.Matrix4()), h.Matrix4.multiply(i, l, l)), new h.ClippingPlaneCollection({
|
|
@@ -266,7 +266,7 @@ function mf(t) {
|
|
|
266
266
|
inverse: o
|
|
267
267
|
});
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function dp(t, i) {
|
|
270
270
|
return Tw(t, h.Cartesian3.UNIT_Y, h.Cartesian3.UNIT_Z, h.Cartesian3.UNIT_X, i);
|
|
271
271
|
}
|
|
272
272
|
function vx(t, i) {
|
|
@@ -305,7 +305,7 @@ function qe(t, i) {
|
|
|
305
305
|
h.Matrix4.multiply(h.Matrix4.fromRotationTranslation(n), o, o);
|
|
306
306
|
}
|
|
307
307
|
if (t.localRotation) {
|
|
308
|
-
const s =
|
|
308
|
+
const s = dp(t.localRotation), n = h.Matrix3.fromQuaternion(s);
|
|
309
309
|
h.Matrix4.multiply(h.Matrix4.fromRotationTranslation(n), o, o);
|
|
310
310
|
}
|
|
311
311
|
if (t.localPosition) {
|
|
@@ -325,7 +325,7 @@ function qe(t, i) {
|
|
|
325
325
|
h.Matrix4.multiply(a, o, o);
|
|
326
326
|
}
|
|
327
327
|
if (t.rotation) {
|
|
328
|
-
const s =
|
|
328
|
+
const s = dp(t.rotation), n = h.Matrix3.fromQuaternion(s);
|
|
329
329
|
h.Matrix4.multiply(h.Matrix4.fromRotationTranslation(n), o, o);
|
|
330
330
|
}
|
|
331
331
|
if (t.position) {
|
|
@@ -364,7 +364,7 @@ function _a(t, i) {
|
|
|
364
364
|
const { heading: e, pitch: o, roll: s } = t;
|
|
365
365
|
return i ? (i[0] = ls(e), i[1] = ls(o), i[2] = ls(s), i) : [e, o, s].map(ls);
|
|
366
366
|
}
|
|
367
|
-
class
|
|
367
|
+
class up extends L {
|
|
368
368
|
constructor(e) {
|
|
369
369
|
super();
|
|
370
370
|
m(this, "_originViewMatrix", new h.Matrix4());
|
|
@@ -494,7 +494,7 @@ function Qt(t, i = !1) {
|
|
|
494
494
|
return s;
|
|
495
495
|
}
|
|
496
496
|
function Pr(t, i, e, o) {
|
|
497
|
-
const s =
|
|
497
|
+
const s = Od(t, e), n = hr(t, e), r = Math.cos(n * Math.PI / 180) * Math.cos(i * Math.PI / 180) + Math.sin(n * Math.PI / 180) * Math.sin(i * Math.PI / 180);
|
|
498
498
|
return r > 0 ? Ft(t, s, i, o) : Ft(t, s, i + 180, o), [r > 0 ? s : -s, o];
|
|
499
499
|
}
|
|
500
500
|
function WO(t, i, e) {
|
|
@@ -516,16 +516,16 @@ function vf(t, i, e, o) {
|
|
|
516
516
|
if (a)
|
|
517
517
|
return h.IntersectionTests.rayPlane(a, r, o);
|
|
518
518
|
}
|
|
519
|
-
const
|
|
519
|
+
const du = new h.Cartesian3(), Mx = new h.Ray(), Ix = new h.Cartographic(), Rx = new h.Ellipsoid();
|
|
520
520
|
function Ph(t, i, e, o) {
|
|
521
521
|
const s = t.camera.getPickRay(i, Mx);
|
|
522
522
|
if (!s)
|
|
523
523
|
return;
|
|
524
|
-
const n = h.Cartesian3.fromElements(e, e, e,
|
|
524
|
+
const n = h.Cartesian3.fromElements(e, e, e, du), r = h.Cartesian3.add(n, h.Ellipsoid.WGS84.radii, du), a = h.Ellipsoid.fromCartesian3(r, Rx), l = h.IntersectionTests.rayEllipsoid(s, a);
|
|
525
525
|
if (l) {
|
|
526
526
|
const c = l.start > 0 ? l.start : l.stop;
|
|
527
527
|
if (c) {
|
|
528
|
-
const d = h.Ray.getPoint(s, c,
|
|
528
|
+
const d = h.Ray.getPoint(s, c, du), u = h.Cartographic.fromCartesian(d, void 0, Ix);
|
|
529
529
|
return o = o || new h.Cartographic(), o.longitude = u.longitude, o.latitude = u.latitude, o.height = e, o;
|
|
530
530
|
} else
|
|
531
531
|
return;
|
|
@@ -539,19 +539,19 @@ function Rg(t) {
|
|
|
539
539
|
const i = h.Ellipsoid.WGS84.minimumRadius;
|
|
540
540
|
return (t + i) / i;
|
|
541
541
|
}
|
|
542
|
-
const Dg = new h.Cartographic(), kg = new h.Cartesian3(), ei = [0, 0, 0], qo = [0, 0, 0],
|
|
542
|
+
const Dg = new h.Cartographic(), kg = new h.Cartesian3(), ei = [0, 0, 0], qo = [0, 0, 0], uu = new h.Cartesian2(), pu = new h.Cartesian3();
|
|
543
543
|
function Ew(t, i, e, o, s, n) {
|
|
544
|
-
s.constraintMode = "none", Rn([0, 0, 0], s.startDragPos), n = n || {}, oo(qt(t),
|
|
544
|
+
s.constraintMode = "none", Rn([0, 0, 0], s.startDragPos), n = n || {}, oo(qt(t), uu);
|
|
545
545
|
const r = e.position;
|
|
546
|
-
if (!ot(r,
|
|
546
|
+
if (!ot(r, pu))
|
|
547
547
|
return;
|
|
548
|
-
const a = ws(i,
|
|
549
|
-
if (a === void 0 || !vf(i,
|
|
548
|
+
const a = ws(i, pu, o);
|
|
549
|
+
if (a === void 0 || !vf(i, pu, uu, kg) || !ve(kg, ei))
|
|
550
550
|
return;
|
|
551
551
|
const l = Rg(ei[2]) * Ti(r, ei);
|
|
552
552
|
if (!n.z && l < a && Math.abs(r[2] - ei[2]) < e.dimensions[0] && ei[2] > r[2])
|
|
553
553
|
return s.constraintMode = "z", Rn(ei, s.startDragPos), !0;
|
|
554
|
-
if (!Ph(i,
|
|
554
|
+
if (!Ph(i, uu, r[2], Dg) || !_r(Dg, ei))
|
|
555
555
|
return;
|
|
556
556
|
const c = Rg(r[2]) * Ti(r, ei), d = e.dimensions[0];
|
|
557
557
|
if (!(c > 1.05 * d)) {
|
|
@@ -589,10 +589,10 @@ async function Dx(t, i, e, o) {
|
|
|
589
589
|
return l ? _r(l) : void 0;
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
|
-
let
|
|
592
|
+
let fu, gu;
|
|
593
593
|
function kx(t, i, e, o, s) {
|
|
594
|
-
s = s || new h.Cartesian3(),
|
|
595
|
-
const n = t.camera.getPickRay(o,
|
|
594
|
+
s = s || new h.Cartesian3(), fu = fu || new h.Ray(), gu = gu || new h.Plane(h.Cartesian3.UNIT_X, 0);
|
|
595
|
+
const n = t.camera.getPickRay(o, fu), r = h.Plane.fromPointNormal(i, e, gu);
|
|
596
596
|
return s = h.IntersectionTests.rayPlane(n, r, s), s;
|
|
597
597
|
}
|
|
598
598
|
function Fx(t) {
|
|
@@ -658,7 +658,7 @@ class yf extends L {
|
|
|
658
658
|
m(this, "_changedEvent", new q());
|
|
659
659
|
// valid: boolean, winPos: WinPosAndDepth
|
|
660
660
|
m(this, "_enabled", !0);
|
|
661
|
-
this._viewer = e, s = s || this.disposeVar(new
|
|
661
|
+
this._viewer = e, s = s || this.disposeVar(new up(this._viewer.scene)), this.dispose(s.changed.disposableOn(() => this._updateWinPos())), this.dispose(() => {
|
|
662
662
|
this._changedEvent.empty || console.warn("WinPosFromCartesian需要销毁,但是changed事件仍有监听,代码未必有错,但是说明代码不严谨。");
|
|
663
663
|
}), this.enabled = o;
|
|
664
664
|
}
|
|
@@ -708,7 +708,7 @@ function Gx(t, i, e, o) {
|
|
|
708
708
|
l = t[r], i(a, l, zg) ? (Es(c) || (c = t.slice(0, r), d = r - 1, u = 0), s && o.push(r)) : (Es(c) && (c.push(l), d = r, s && (u = o.length)), a = l);
|
|
709
709
|
return e && i(t[0], t[n - 1], zg) && (s && (Es(c) ? o.splice(u, 0, d) : o.push(n - 1)), Es(c) ? c.length -= 1 : c = t.slice(0, -1)), Es(c) ? c : t;
|
|
710
710
|
}
|
|
711
|
-
const Te = h.Cartesian3, $r = h.Cartographic, Ys = h.defined, Iw = h.DeveloperError, Rw = h.Ellipsoid, Wx = h.EllipsoidGeodesic, Dw = h.EllipsoidRhumbLine, Hx = h.IntersectionTests,
|
|
711
|
+
const Te = h.Cartesian3, $r = h.Cartographic, Ys = h.defined, Iw = h.DeveloperError, Rw = h.Ellipsoid, Wx = h.EllipsoidGeodesic, Dw = h.EllipsoidRhumbLine, Hx = h.IntersectionTests, pp = h.Math, qn = h.Matrix4, Fs = h.Plane, gt = {};
|
|
712
712
|
gt.numberOfPoints = function(t, i, e) {
|
|
713
713
|
const o = Te.distance(t, i);
|
|
714
714
|
return Math.ceil(o / e);
|
|
@@ -746,27 +746,27 @@ function kw(t, i, e) {
|
|
|
746
746
|
}
|
|
747
747
|
return o;
|
|
748
748
|
}
|
|
749
|
-
const
|
|
749
|
+
const $d = new $r(), sd = new $r(), us = new Te(), Cf = new Te(), Jx = new Te(), mu = new Wx();
|
|
750
750
|
let sa = new Dw();
|
|
751
751
|
function jx(t, i, e, o, s, n, r, a) {
|
|
752
|
-
const l = o.scaleToGeodeticSurface(t, Cf), c = o.scaleToGeodeticSurface(i, Jx), d = gt.numberOfPoints(t, i, e), u = o.cartesianToCartographic(l,
|
|
753
|
-
|
|
754
|
-
const g =
|
|
752
|
+
const l = o.scaleToGeodeticSurface(t, Cf), c = o.scaleToGeodeticSurface(i, Jx), d = gt.numberOfPoints(t, i, e), u = o.cartesianToCartographic(l, $d), p = o.cartesianToCartographic(c, sd), f = kw(d, s, n);
|
|
753
|
+
mu.setEndPoints(u, p);
|
|
754
|
+
const g = mu.surfaceDistance / d;
|
|
755
755
|
let v = a;
|
|
756
756
|
u.height = s;
|
|
757
757
|
let _ = o.cartographicToCartesian(u, us);
|
|
758
758
|
Te.pack(_, r, v), v += 3;
|
|
759
759
|
for (let P = 1; P < d; P++) {
|
|
760
|
-
const w =
|
|
760
|
+
const w = mu.interpolateUsingSurfaceDistance(
|
|
761
761
|
P * g,
|
|
762
|
-
|
|
762
|
+
sd
|
|
763
763
|
);
|
|
764
764
|
w.height = f[P], _ = o.cartographicToCartesian(w, us), Te.pack(_, r, v), v += 3;
|
|
765
765
|
}
|
|
766
766
|
return v;
|
|
767
767
|
}
|
|
768
768
|
function eS(t, i, e, o, s, n, r, a) {
|
|
769
|
-
const l = o.cartesianToCartographic(t,
|
|
769
|
+
const l = o.cartesianToCartographic(t, $d), c = o.cartesianToCartographic(i, sd), d = gt.numberOfPointsRhumbLine(
|
|
770
770
|
l,
|
|
771
771
|
c,
|
|
772
772
|
e
|
|
@@ -782,7 +782,7 @@ function eS(t, i, e, o, s, n, r, a) {
|
|
|
782
782
|
for (let v = 1; v < d; v++) {
|
|
783
783
|
const _ = sa.interpolateUsingSurfaceDistance(
|
|
784
784
|
v * p,
|
|
785
|
-
|
|
785
|
+
sd
|
|
786
786
|
);
|
|
787
787
|
_.height = u[v], g = o.cartographicToCartesian(_, us), Te.pack(g, r, f), f += 3;
|
|
788
788
|
}
|
|
@@ -877,8 +877,8 @@ gt.generateArc = function(t) {
|
|
|
877
877
|
}
|
|
878
878
|
let r = t.minDistance;
|
|
879
879
|
if (!Ys(r)) {
|
|
880
|
-
const v = t.granularity ??
|
|
881
|
-
r =
|
|
880
|
+
const v = t.granularity ?? pp.RADIANS_PER_DEGREE;
|
|
881
|
+
r = pp.chordLength(v, o.maximumRadius);
|
|
882
882
|
}
|
|
883
883
|
let a = 0, l;
|
|
884
884
|
for (l = 0; l < e - 1; l++)
|
|
@@ -903,7 +903,7 @@ gt.generateArc = function(t) {
|
|
|
903
903
|
);
|
|
904
904
|
}
|
|
905
905
|
wf.length = 0;
|
|
906
|
-
const p = i[e - 1], f = o.cartesianToCartographic(p,
|
|
906
|
+
const p = i[e - 1], f = o.cartesianToCartographic(p, $d);
|
|
907
907
|
f.height = n ? s[e - 1] : s;
|
|
908
908
|
const g = o.cartographicToCartesian(f, us);
|
|
909
909
|
return Te.pack(g, d, c - 3), d;
|
|
@@ -927,7 +927,7 @@ gt.generateRhumbArc = function(t) {
|
|
|
927
927
|
}
|
|
928
928
|
return [P.x, P.y, P.z];
|
|
929
929
|
}
|
|
930
|
-
const r = t.granularity ??
|
|
930
|
+
const r = t.granularity ?? pp.RADIANS_PER_DEGREE;
|
|
931
931
|
let a = 0, l, c = o.cartesianToCartographic(
|
|
932
932
|
i[0],
|
|
933
933
|
Bg
|
|
@@ -953,7 +953,7 @@ gt.generateRhumbArc = function(t) {
|
|
|
953
953
|
);
|
|
954
954
|
}
|
|
955
955
|
wf.length = 0;
|
|
956
|
-
const g = i[e - 1], v = o.cartesianToCartographic(g,
|
|
956
|
+
const g = i[e - 1], v = o.cartesianToCartographic(g, $d);
|
|
957
957
|
v.height = n ? s[e - 1] : s;
|
|
958
958
|
const _ = o.cartographicToCartesian(v, us);
|
|
959
959
|
return Te.pack(_, p, u - 3), p;
|
|
@@ -1044,7 +1044,7 @@ function Lw(t, i) {
|
|
|
1044
1044
|
}
|
|
1045
1045
|
if (s) {
|
|
1046
1046
|
const a = new h.Quaternion();
|
|
1047
|
-
r === "YForwardZUp" ?
|
|
1047
|
+
r === "YForwardZUp" ? dp(s, a) : r === "XForwardZUp" && vx(s, a);
|
|
1048
1048
|
const l = h.Matrix3.fromQuaternion(a);
|
|
1049
1049
|
h.Matrix4.multiply(e, h.Matrix4.fromRotationTranslation(l), e);
|
|
1050
1050
|
}
|
|
@@ -1079,7 +1079,7 @@ function pS(t) {
|
|
|
1079
1079
|
let i = [];
|
|
1080
1080
|
for (let e = 0; e < t.length - 2; e++) {
|
|
1081
1081
|
const o = Wo.fromDegrees(...t[e]), s = Wo.fromDegrees(...t[e + 1]), n = Wo.fromDegrees(...t[e + 2]), r = Wo.angleBetween(Wo.subtract(o, s, new Wo()), Wo.subtract(n, s, new Wo()));
|
|
1082
|
-
i.push(isNaN(r) ? 0 :
|
|
1082
|
+
i.push(isNaN(r) ? 0 : ap.toDegrees(r));
|
|
1083
1083
|
}
|
|
1084
1084
|
return i;
|
|
1085
1085
|
}
|
|
@@ -1373,7 +1373,7 @@ const mS = (t, i) => {
|
|
|
1373
1373
|
s != null && (Reflect.has(s, "baseColorFactor") && s.baseColorFactor && (o.material.metallicRoughness.baseColorFactor = bw(s.baseColorFactor)), Reflect.has(s, "alphaMode") && (o.material.alphaMode = s.alphaMode), Reflect.has(s, "doubleSided") && (o.material.doubleSided = s.doubleSided), Reflect.has(s, "unlit") && (o.material.unlit = s.unlit), Reflect.has(s, "emissiveFactor") && s.emissiveFactor && (o.material.emissiveFactor = ho(s.emissiveFactor)), Reflect.has(s, "metallicFactor") && (o.material.metallicRoughness.metallicFactor = s.metallicFactor), Reflect.has(s, "roughnessFactor") && (o.material.metallicRoughness.roughnessFactor = s.roughnessFactor), Reflect.has(s, "baseColorTexture") && s.baseColorTexture != null && (o.material.metallicRoughness.baseColorTexture ? (o.material.metallicRoughness.baseColorTexture.texture = s.baseColorTexture.texture, o.material.metallicRoughness.baseColorTexture.transform = s.baseColorTexture.transform) : e = !1), Reflect.has(s, "normalTexture") && o.material.metallicRoughness.baseColorTexture && (o.material.normalTexture = s.normalTexture), Reflect.has(s, "metallicRoughnessTexture") && (o.material.metallicRoughness.metallicRoughnessTexture = s.metallicRoughnessTexture));
|
|
1374
1374
|
}), e;
|
|
1375
1375
|
};
|
|
1376
|
-
function
|
|
1376
|
+
function nd(t, i) {
|
|
1377
1377
|
let e = !0;
|
|
1378
1378
|
if (i === "default")
|
|
1379
1379
|
t._resourcesLoaded = t._texturesLoaded = !1, t._loader._state = 2, t._loader._loadResourcesPromise = void 0;
|
|
@@ -1801,7 +1801,7 @@ function Pf(t) {
|
|
|
1801
1801
|
const e = i.href;
|
|
1802
1802
|
return i.remove(), e;
|
|
1803
1803
|
}
|
|
1804
|
-
function
|
|
1804
|
+
function rd(t, i = !1) {
|
|
1805
1805
|
const e = t < 0 ? "-" : "", o = Math.abs(t), s = o | 0, n = (o - s) * 60;
|
|
1806
1806
|
if (i)
|
|
1807
1807
|
return `${e}${s}°${n.toFixed(3)}′`;
|
|
@@ -1812,7 +1812,7 @@ function xf(t) {
|
|
|
1812
1812
|
return Math.abs(t) < 1e3 ? `${t.toFixed(2)} m` : `${(t / 1e3).toFixed(2)} km`;
|
|
1813
1813
|
}
|
|
1814
1814
|
function Gg(t, i = !1) {
|
|
1815
|
-
const e =
|
|
1815
|
+
const e = rd(t[0], i), o = rd(t[1], i), s = xf(t[2]);
|
|
1816
1816
|
return [e, o, s];
|
|
1817
1817
|
}
|
|
1818
1818
|
function ZO(t) {
|
|
@@ -1929,7 +1929,7 @@ function AS(t, i) {
|
|
|
1929
1929
|
}, t.indexTypedArray = new Uint16Array([0, 1, 2, 0, 2, 3]);
|
|
1930
1930
|
}
|
|
1931
1931
|
function MS(t) {
|
|
1932
|
-
const i =
|
|
1932
|
+
const i = su(En(t, ["0"])), e = su(En(t, ["1"])), o = su(En(t, ["2"])), s = nu(En(t, ["0"])), n = nu(En(t, ["1"])), r = nu(En(t, ["2"]));
|
|
1933
1933
|
return { minPos: [i, e, o], maxPos: [s, n, r] };
|
|
1934
1934
|
}
|
|
1935
1935
|
function Wg(t, i) {
|
|
@@ -1990,7 +1990,7 @@ function Hg(t, i, e, o) {
|
|
|
1990
1990
|
function IS(t) {
|
|
1991
1991
|
const [i, e, o] = Mi(t), s = G(void 0), n = () => {
|
|
1992
1992
|
const r = i();
|
|
1993
|
-
s.value = r &&
|
|
1993
|
+
s.value = r && hf(r);
|
|
1994
1994
|
};
|
|
1995
1995
|
return n(), s.dispose(o.disposableOn(n)), s;
|
|
1996
1996
|
}
|
|
@@ -2167,7 +2167,7 @@ async function Wi(t, i, e, o, s, n, r = !1) {
|
|
|
2167
2167
|
return i.flyOverEvent.emit(e, u ? "over" : u == null ? "error" : "cancelled", t), u ?? !1;
|
|
2168
2168
|
}
|
|
2169
2169
|
async function ge(t, i, e, o, s, n = !1) {
|
|
2170
|
-
const r =
|
|
2170
|
+
const r = hf(o);
|
|
2171
2171
|
if (r && r.center && r.radius && t.viewer) {
|
|
2172
2172
|
const a = Sf(t, r.radius), l = [...Yi];
|
|
2173
2173
|
n && (l[0] = i.rotation[0] - 90);
|
|
@@ -2582,7 +2582,7 @@ class XS extends L {
|
|
|
2582
2582
|
}
|
|
2583
2583
|
update() {
|
|
2584
2584
|
const { visibleAlpha: e, finalShow: o, finalSpecularEnvironmentMapsReact: s } = this.owner.owner.owner, n = this.owner.owner.owner, { primitive: r } = this, a = o;
|
|
2585
|
-
r.show = a, r.clampAnimations = n.clampAnimations ?? !0, r.shadows = Bt.shadowPropsMap[n.shadows ?? "DISABLED"], r.debugShowBoundingVolume = n.debugShowBoundingVolume ?? !1, r.debugWireframe = n.debugWireframe ?? !1, r.backFaceCulling = n.backFaceCulling ?? !0, r.heightReference = n.heightReference ? Bt.heightReferencePropsMap[n.heightReference] : Bt.heightReferencePropsMap.NONE, r.distanceDisplayCondition =
|
|
2585
|
+
r.show = a, r.clampAnimations = n.clampAnimations ?? !0, r.shadows = Bt.shadowPropsMap[n.shadows ?? "DISABLED"], r.debugShowBoundingVolume = n.debugShowBoundingVolume ?? !1, r.debugWireframe = n.debugWireframe ?? !1, r.backFaceCulling = n.backFaceCulling ?? !0, r.heightReference = n.heightReference ? Bt.heightReferencePropsMap[n.heightReference] : Bt.heightReferencePropsMap.NONE, r.distanceDisplayCondition = Wd(n.distanceDisplayCondition ?? [0, Number.MAX_VALUE]);
|
|
2586
2586
|
{
|
|
2587
2587
|
const c = n.color ?? [1, 1, 1, 1];
|
|
2588
2588
|
c[3] *= e;
|
|
@@ -2719,7 +2719,7 @@ class eb extends L {
|
|
|
2719
2719
|
let c = !0;
|
|
2720
2720
|
if (!this.nativePrimitive) return;
|
|
2721
2721
|
if (l == "default")
|
|
2722
|
-
c =
|
|
2722
|
+
c = nd(this.nativePrimitive.primitive, "default");
|
|
2723
2723
|
else {
|
|
2724
2724
|
if (!this.nativePrimitive) return;
|
|
2725
2725
|
const u = {};
|
|
@@ -2730,10 +2730,10 @@ class eb extends L {
|
|
|
2730
2730
|
const P = await Promise.allSettled([f, g, v]);
|
|
2731
2731
|
f = P[0].value, g = P[1].value, v = P[2].value, v != null && (u[p].metallicRoughnessTexture = v), f != null && (u[p].baseColorTexture = f), g != null && (u[p].normalTexture = g);
|
|
2732
2732
|
}
|
|
2733
|
-
c =
|
|
2733
|
+
c = nd(this.nativePrimitive.primitive, u);
|
|
2734
2734
|
}
|
|
2735
2735
|
const d = oe.getSceneObject(this._owner.owner.id);
|
|
2736
|
-
d && d instanceof
|
|
2736
|
+
d && d instanceof jc && d.setMaterialInfoEvent.emit({
|
|
2737
2737
|
type: c ? "success" : "warn",
|
|
2738
2738
|
message: c ? "完成" : "部分材质颜色纹理设置失败,请检查原始模型中材质是否具有baseColorTexture属性"
|
|
2739
2739
|
});
|
|
@@ -2765,7 +2765,7 @@ class eb extends L {
|
|
|
2765
2765
|
backFaceCulling: o.backFaceCulling,
|
|
2766
2766
|
showOutline: o.showOutline,
|
|
2767
2767
|
heightReference: o.heightReference && Bt.heightReferencePropsMap[o.heightReference],
|
|
2768
|
-
distanceDisplayCondition: o.distanceDisplayCondition &&
|
|
2768
|
+
distanceDisplayCondition: o.distanceDisplayCondition && Wd(o.distanceDisplayCondition),
|
|
2769
2769
|
color: _,
|
|
2770
2770
|
scene: f.scene,
|
|
2771
2771
|
colorBlendMode: o.colorBlendMode && Bt.colorBlendModeType[o.colorBlendMode],
|
|
@@ -2866,7 +2866,7 @@ class tb extends L {
|
|
|
2866
2866
|
return this._owner;
|
|
2867
2867
|
}
|
|
2868
2868
|
}
|
|
2869
|
-
const
|
|
2869
|
+
const vu = {
|
|
2870
2870
|
translationX: 0,
|
|
2871
2871
|
translationY: 0,
|
|
2872
2872
|
translationZ: 0,
|
|
@@ -3094,7 +3094,7 @@ const mu = {
|
|
|
3094
3094
|
}
|
|
3095
3095
|
setNodeTranslation(e, o) {
|
|
3096
3096
|
this.nodeTransformations || (this.nodeTransformations = {});
|
|
3097
|
-
const s = this.nodeTransformations[e] ?? { ...
|
|
3097
|
+
const s = this.nodeTransformations[e] ?? { ...vu };
|
|
3098
3098
|
if (o.length !== 3 || o.some((n) => !Number.isFinite(n))) {
|
|
3099
3099
|
console.error(`setNodeTranslation error: translation.length !== 3 || translation.some(e => !Number.isFinite(e)): ${e} ${o}`);
|
|
3100
3100
|
return;
|
|
@@ -3117,7 +3117,7 @@ const mu = {
|
|
|
3117
3117
|
}
|
|
3118
3118
|
setNodeRotation(e, o) {
|
|
3119
3119
|
this.nodeTransformations || (this.nodeTransformations = {});
|
|
3120
|
-
const s = this.nodeTransformations[e] ?? { ...
|
|
3120
|
+
const s = this.nodeTransformations[e] ?? { ...vu };
|
|
3121
3121
|
if (o.length !== 3 || o.some((n) => !Number.isFinite(n))) {
|
|
3122
3122
|
console.error(`setNodeTranslation error: rotation.length !== 3 || rotation.some(e => !Number.isFinite(e)) ${e} ${o}`);
|
|
3123
3123
|
return;
|
|
@@ -3140,7 +3140,7 @@ const mu = {
|
|
|
3140
3140
|
}
|
|
3141
3141
|
setNodeScale(e, o) {
|
|
3142
3142
|
this.nodeTransformations || (this.nodeTransformations = {});
|
|
3143
|
-
const s = this.nodeTransformations[e] ?? { ...
|
|
3143
|
+
const s = this.nodeTransformations[e] ?? { ...vu };
|
|
3144
3144
|
if (o.length !== 3 || o.some((n) => !Number.isFinite(n) || n < 0)) {
|
|
3145
3145
|
console.error(`setNodeTranslation error: scale.length !== 3 || scale.some(e => !Number.isFinite(e) || e < 0) ${e} ${o}`);
|
|
3146
3146
|
return;
|
|
@@ -3485,14 +3485,14 @@ class nb {
|
|
|
3485
3485
|
this._map.get(e).reset(), this._map.delete(e);
|
|
3486
3486
|
}
|
|
3487
3487
|
}
|
|
3488
|
-
const
|
|
3488
|
+
const yu = /* @__PURE__ */ new Map();
|
|
3489
3489
|
function rb(t) {
|
|
3490
|
-
return
|
|
3490
|
+
return yu.has(t) || yu.set(t, new nb(t)), yu.get(t);
|
|
3491
3491
|
}
|
|
3492
3492
|
const tr = class tr extends L {
|
|
3493
3493
|
constructor(e, o) {
|
|
3494
3494
|
super();
|
|
3495
|
-
m(this, "_complexImage", this.disposeVar(new
|
|
3495
|
+
m(this, "_complexImage", this.disposeVar(new ru()));
|
|
3496
3496
|
m(this, "_copyFromClipboardProcessing", this.disposeVar(Fe(async (e) => {
|
|
3497
3497
|
const o = await e.promise(navigator.clipboard.read());
|
|
3498
3498
|
if (o.length === 0) {
|
|
@@ -3574,7 +3574,7 @@ const tr = class tr extends L {
|
|
|
3574
3574
|
return this._id.changed;
|
|
3575
3575
|
}
|
|
3576
3576
|
};
|
|
3577
|
-
m(tr, "types",
|
|
3577
|
+
m(tr, "types", ru.types), m(tr, "suffixTypes", ru.suffixTypes), m(tr, "defaults", {
|
|
3578
3578
|
size: [256, 256],
|
|
3579
3579
|
uriType: "img",
|
|
3580
3580
|
czmPixelFormats: X1,
|
|
@@ -3598,7 +3598,7 @@ let Je = tr;
|
|
|
3598
3598
|
});
|
|
3599
3599
|
})(Je || (Je = {}));
|
|
3600
3600
|
ae(Je.prototype, Je.createDefaultProps);
|
|
3601
|
-
class ab extends
|
|
3601
|
+
class ab extends Bd {
|
|
3602
3602
|
constructor(e) {
|
|
3603
3603
|
super(e);
|
|
3604
3604
|
m(this, "_builtin", (() => {
|
|
@@ -3639,7 +3639,7 @@ const ir = class ir extends L {
|
|
|
3639
3639
|
this.scaleByDistanceChanged,
|
|
3640
3640
|
this.translucencyByDistanceChanged
|
|
3641
3641
|
)), l = () => {
|
|
3642
|
-
!r || !n || (r.show = (this.show ?? !0) && !!this.position, this.position && (r.position = ot(this.position)), r.pixelSize = this.pixelSize ?? 1, r.color = de(this.color ?? ir.defaults.color), this.distanceDisplayCondition && (r.distanceDisplayCondition =
|
|
3642
|
+
!r || !n || (r.show = (this.show ?? !0) && !!this.position, this.position && (r.position = ot(this.position)), r.pixelSize = this.pixelSize ?? 1, r.color = de(this.color ?? ir.defaults.color), this.distanceDisplayCondition && (r.distanceDisplayCondition = Wd(this.distanceDisplayCondition)), r.outlineColor = de(this.outlineColor ?? ir.defaults.outlineColor), r.outlineWidth = this.outlineWidth ?? ir.defaults.outlineWidth, this.scaleByDistance && (r.scaleByDistance = Xs(this.scaleByDistance)), this.translucencyByDistance && (r.translucencyByDistance = Xs(this.translucencyByDistance)));
|
|
3643
3643
|
};
|
|
3644
3644
|
l(), this.ad(a.don(l));
|
|
3645
3645
|
}
|
|
@@ -4591,7 +4591,7 @@ class Eh extends bb {
|
|
|
4591
4591
|
V[N] = b;
|
|
4592
4592
|
let Z;
|
|
4593
4593
|
const K = p && p[N] ? cf(p[N], "_originAttribute") : void 0;
|
|
4594
|
-
K && Ib(K, y) ? (Z = p[N], delete p[N], U[N] = Z) : K && K.typedArray !== y.typedArray && K.typedArray.byteLength === y.typedArray.byteLength && K.usage === y.usage ? (Z = p[N], Z.copyFromArrayView(y.typedArray), delete p[N], U[N] = Z,
|
|
4594
|
+
K && Ib(K, y) ? (Z = p[N], delete p[N], U[N] = Z) : K && K.typedArray !== y.typedArray && K.typedArray.byteLength === y.typedArray.byteLength && K.usage === y.usage ? (Z = p[N], Z.copyFromArrayView(y.typedArray), delete p[N], U[N] = Z, ed(U[N], "_originAttribute", y)) : (Z = h.Buffer.createVertexBuffer({ context: n, typedArray: R, usage: $ }), Z.vertexArrayDestroyable = !1, U[N] = Z, ed(U[N], "_originAttribute", y)), W.push({
|
|
4595
4595
|
index: b,
|
|
4596
4596
|
vertexBuffer: Z,
|
|
4597
4597
|
componentsPerAttribute: O,
|
|
@@ -5429,7 +5429,7 @@ class kb extends L {
|
|
|
5429
5429
|
m(this, "_moveEvent", this.disposeVar(new q()));
|
|
5430
5430
|
m(this, "_outEvent", this.disposeVar(new q()));
|
|
5431
5431
|
m(this, "_cameraChanged");
|
|
5432
|
-
this._viewer = e, this._useInnerInteraction = o, this._cameraChanged = new
|
|
5432
|
+
this._viewer = e, this._useInnerInteraction = o, this._cameraChanged = new up(this._viewer.scene);
|
|
5433
5433
|
const s = this._viewer.canvas.parentElement;
|
|
5434
5434
|
this._divContainer = s;
|
|
5435
5435
|
const n = document.createElement("div");
|
|
@@ -5441,7 +5441,7 @@ class kb extends L {
|
|
|
5441
5441
|
this._canvasPrimitivesContext.destroy();
|
|
5442
5442
|
}), n.appendChild(r.element);
|
|
5443
5443
|
{
|
|
5444
|
-
const u = new h.EllipsoidalOccluder(h.Ellipsoid.WGS84, new h.Cartesian3()), p = new
|
|
5444
|
+
const u = new h.EllipsoidalOccluder(h.Ellipsoid.WGS84, new h.Cartesian3()), p = new up(this._viewer.scene);
|
|
5445
5445
|
this.dispose(() => p.destroy());
|
|
5446
5446
|
const f = () => u.cameraPosition = this._viewer.camera.positionWC;
|
|
5447
5447
|
this.dispose(p.changed.disposableOn(f)), f();
|
|
@@ -5781,7 +5781,7 @@ class zb extends L {
|
|
|
5781
5781
|
function Lb(t, i) {
|
|
5782
5782
|
const [e, o, s] = i, n = `${e}-${o}-${s}`;
|
|
5783
5783
|
let r = cf(t, n);
|
|
5784
|
-
return r || (r = j1(t), eP(r, i),
|
|
5784
|
+
return r || (r = j1(t), eP(r, i), ed(t, n, r)), r;
|
|
5785
5785
|
}
|
|
5786
5786
|
class Ob extends df {
|
|
5787
5787
|
constructor(e, o, s = [32, 32], n = [0.5, 1, 0, 0], r = "#F00F") {
|
|
@@ -5900,10 +5900,10 @@ class Ob extends df {
|
|
|
5900
5900
|
draw(e) {
|
|
5901
5901
|
if (!this._show)
|
|
5902
5902
|
return;
|
|
5903
|
-
const [o, s] = this._winPos, n = this._size[0] * this.__scale[0], r = this._size[1] * this.__scale[1], { left: a, top: l, right: c, bottom: d } =
|
|
5903
|
+
const [o, s] = this._winPos, n = this._size[0] * this.__scale[0], r = this._size[1] * this.__scale[1], { left: a, top: l, right: c, bottom: d } = au([o, s], this._size, this.__scale, this._originRatioAndOffset), u = e.globalAlpha;
|
|
5904
5904
|
if (e.globalAlpha = this.opacity, this._image) {
|
|
5905
5905
|
if (this.selected) {
|
|
5906
|
-
const p = Lb(this._image, [1, 0, 0]), { left: f, top: g } =
|
|
5906
|
+
const p = Lb(this._image, [1, 0, 0]), { left: f, top: g } = au([o, s], [n + 6, r + 6], [1, 1], this._originRatioAndOffset);
|
|
5907
5907
|
e.drawImage(p, f, g, n + 6, r + 6);
|
|
5908
5908
|
}
|
|
5909
5909
|
e.drawImage(this._image, a, l, n, r);
|
|
@@ -5917,7 +5917,7 @@ class Ob extends df {
|
|
|
5917
5917
|
drawForPick(e, o) {
|
|
5918
5918
|
if (!this._show)
|
|
5919
5919
|
return;
|
|
5920
|
-
const [s, n] = this._winPos, r = o("default"), a = this._size[0] * this.__scale[0], l = this._size[1] * this.__scale[1], { left: c, top: d } =
|
|
5920
|
+
const [s, n] = this._winPos, r = o("default"), a = this._size[0] * this.__scale[0], l = this._size[1] * this.__scale[1], { left: c, top: d } = au([s, n], this._size, this.__scale, this._originRatioAndOffset);
|
|
5921
5921
|
e.fillStyle = r, e.fillRect(c, d, a, l);
|
|
5922
5922
|
}
|
|
5923
5923
|
}
|
|
@@ -6146,7 +6146,7 @@ class Ah extends L {
|
|
|
6146
6146
|
});
|
|
6147
6147
|
})(Ah || (Ah = {}));
|
|
6148
6148
|
ae(Ah.prototype, Ah.createDefaultProps);
|
|
6149
|
-
const
|
|
6149
|
+
const fp = `class MyDiv {
|
|
6150
6150
|
// container是Poi的div
|
|
6151
6151
|
// geoCustomDivPoi指向当前的GeoCustomDivPoi场景对象
|
|
6152
6152
|
// viewer指定当前的视口
|
|
@@ -6179,7 +6179,7 @@ const pp = `class MyDiv {
|
|
|
6179
6179
|
}
|
|
6180
6180
|
}`, Xg = `示例代码:
|
|
6181
6181
|
\`\`\`
|
|
6182
|
-
${
|
|
6182
|
+
${fp}
|
|
6183
6183
|
\`\`\`
|
|
6184
6184
|
`, Qw = `<div style="width: 300px; height: 50px; background: rgba(120, 120, 0, 0.7); color: white; font-size: 30px; line-height: 50px; border: 1px solid white;">Hello world!</div>
|
|
6185
6185
|
`, Bb = `示例代码:
|
|
@@ -6359,9 +6359,9 @@ class dt extends L {
|
|
|
6359
6359
|
return this._czmViewVisibleDistanceRangeControl.visibleAlphaChanged;
|
|
6360
6360
|
}
|
|
6361
6361
|
}
|
|
6362
|
-
m(dt, "defaulInstanceClassStr",
|
|
6362
|
+
m(dt, "defaulInstanceClassStr", fp), m(dt, "instanceClassStrReadMe", Xg), m(dt, "defaults", {
|
|
6363
6363
|
position: [116.39, 39.9, 0],
|
|
6364
|
-
instanceClassStr:
|
|
6364
|
+
instanceClassStr: fp,
|
|
6365
6365
|
instanceClassStrReadMe: Xg,
|
|
6366
6366
|
innerHTML: Qw,
|
|
6367
6367
|
innerHTMLReadMe: Bb,
|
|
@@ -6393,7 +6393,7 @@ class Vb extends L {
|
|
|
6393
6393
|
super(), this._container = i;
|
|
6394
6394
|
}
|
|
6395
6395
|
}
|
|
6396
|
-
const
|
|
6396
|
+
const Dd = class Dd extends L {
|
|
6397
6397
|
// get sPositionEditing() { return this._customDivPoi.sPositionEditing; }
|
|
6398
6398
|
constructor(e, o) {
|
|
6399
6399
|
super();
|
|
@@ -6425,7 +6425,7 @@ const Rd = class Rd extends L {
|
|
|
6425
6425
|
{
|
|
6426
6426
|
{
|
|
6427
6427
|
const f = () => {
|
|
6428
|
-
n.show = s.show ?? !0, u.style.pointerEvents = "all", s.width === void 0 ? u.style.width = "auto" : u.style.width = `${s.width}px`, s.height === void 0 ? u.style.height = "auto" : u.style.height = `${s.height}px`, s.text !== void 0 ? u.innerHTML = `${s.text.replace(/\n/g, "<br/>") ?? "请输入文字"}` : u.innerHTML = "请输入文字", u.style.fontSize = `${s.fontSize ?? 14}px`, u.style.fontFamily = `${s.fontFamily ??
|
|
6428
|
+
n.show = s.show ?? !0, u.style.pointerEvents = "all", s.width === void 0 ? u.style.width = "auto" : u.style.width = `${s.width}px`, s.height === void 0 ? u.style.height = "auto" : u.style.height = `${s.height}px`, s.text !== void 0 ? u.innerHTML = `${s.text.replace(/\n/g, "<br/>") ?? "请输入文字"}` : u.innerHTML = "请输入文字", u.style.fontSize = `${s.fontSize ?? 14}px`, u.style.fontFamily = `${s.fontFamily ?? Dd.defaults.fontFamily}`;
|
|
6429
6429
|
const v = s.borderRadius ?? [6, 6, 6, 6];
|
|
6430
6430
|
u.style.borderRadius = `${v[0]}px ${v[1]}px ${v[2]}px ${v[3]}px`;
|
|
6431
6431
|
const _ = s.color ?? [1, 1, 1, 1];
|
|
@@ -6522,7 +6522,7 @@ const Rd = class Rd extends L {
|
|
|
6522
6522
|
return this._customDivPoi;
|
|
6523
6523
|
}
|
|
6524
6524
|
};
|
|
6525
|
-
m(
|
|
6525
|
+
m(Dd, "defaults", {
|
|
6526
6526
|
width: 80,
|
|
6527
6527
|
height: 28,
|
|
6528
6528
|
text: "请输入文字",
|
|
@@ -6532,7 +6532,7 @@ m(Rd, "defaults", {
|
|
|
6532
6532
|
scale: [1, 1],
|
|
6533
6533
|
zOrder: 0
|
|
6534
6534
|
});
|
|
6535
|
-
let Ro =
|
|
6535
|
+
let Ro = Dd;
|
|
6536
6536
|
((t) => {
|
|
6537
6537
|
t.createDefaultProps = () => ({
|
|
6538
6538
|
show: !0,
|
|
@@ -7882,7 +7882,7 @@ class ks extends L {
|
|
|
7882
7882
|
return this._defaultAnchor.changed;
|
|
7883
7883
|
}
|
|
7884
7884
|
}
|
|
7885
|
-
class
|
|
7885
|
+
class gp extends L {
|
|
7886
7886
|
constructor(e, o, s, n, r = !0) {
|
|
7887
7887
|
super();
|
|
7888
7888
|
// 自定义div内容
|
|
@@ -9289,7 +9289,7 @@ class Rh extends L {
|
|
|
9289
9289
|
});
|
|
9290
9290
|
})(Rh || (Rh = {}));
|
|
9291
9291
|
ae(Rh.prototype, Rh.createDefaultProps);
|
|
9292
|
-
const
|
|
9292
|
+
const kd = class kd extends L {
|
|
9293
9293
|
constructor(e, o) {
|
|
9294
9294
|
super();
|
|
9295
9295
|
m(this, "_flyToEvent", this.disposeVar(new q()));
|
|
@@ -9299,7 +9299,7 @@ const Dd = class Dd extends L {
|
|
|
9299
9299
|
console.warn("viewer is undefined!");
|
|
9300
9300
|
return;
|
|
9301
9301
|
}
|
|
9302
|
-
const n = this.disposeVar(fo([this, "material"],
|
|
9302
|
+
const n = this.disposeVar(fo([this, "material"], kd.defaults.material)), r = () => {
|
|
9303
9303
|
this._primitive && (s.scene.primitives.remove(this._primitive), this._primitive = void 0);
|
|
9304
9304
|
};
|
|
9305
9305
|
this.dispose(r);
|
|
@@ -9370,13 +9370,13 @@ const Dd = class Dd extends L {
|
|
|
9370
9370
|
this._flyToEvent.emit(e);
|
|
9371
9371
|
}
|
|
9372
9372
|
};
|
|
9373
|
-
m(
|
|
9373
|
+
m(kd, "defaults", {
|
|
9374
9374
|
material: {
|
|
9375
9375
|
type: "Color",
|
|
9376
9376
|
color: [1, 1, 1, 0.5]
|
|
9377
9377
|
}
|
|
9378
9378
|
});
|
|
9379
|
-
let sn =
|
|
9379
|
+
let sn = kd;
|
|
9380
9380
|
((t) => {
|
|
9381
9381
|
t.createDefaultProps = () => ({
|
|
9382
9382
|
show: void 0,
|
|
@@ -10021,7 +10021,7 @@ m(br, "defaults", {
|
|
|
10021
10021
|
});
|
|
10022
10022
|
})(br || (br = {}));
|
|
10023
10023
|
ae(br.prototype, br.createDefaultProps);
|
|
10024
|
-
class
|
|
10024
|
+
class ad extends L {
|
|
10025
10025
|
constructor(e, o) {
|
|
10026
10026
|
super();
|
|
10027
10027
|
m(this, "_primitive");
|
|
@@ -10141,8 +10141,8 @@ class rd extends L {
|
|
|
10141
10141
|
baseWaterImage: Ge(void 0),
|
|
10142
10142
|
flowSpeed: 0
|
|
10143
10143
|
});
|
|
10144
|
-
})(
|
|
10145
|
-
ae(
|
|
10144
|
+
})(ad || (ad = {}));
|
|
10145
|
+
ae(ad.prototype, ad.createDefaultProps);
|
|
10146
10146
|
class Tr extends L {
|
|
10147
10147
|
constructor(e, o) {
|
|
10148
10148
|
super();
|
|
@@ -10332,7 +10332,7 @@ class Er extends L {
|
|
|
10332
10332
|
show: _.show ?? !0,
|
|
10333
10333
|
color: _.color && de(_.color),
|
|
10334
10334
|
disableDepthTestDistance: _.disableDepthTestDistance,
|
|
10335
|
-
distanceDisplayCondition: _.distanceDisplayCondition &&
|
|
10335
|
+
distanceDisplayCondition: _.distanceDisplayCondition && Wd(_.distanceDisplayCondition),
|
|
10336
10336
|
outlineColor: _.outlineColor && de(_.outlineColor),
|
|
10337
10337
|
outlineWidth: _.outlineWidth,
|
|
10338
10338
|
pixelSize: _.pixelSize,
|
|
@@ -10416,15 +10416,15 @@ class nT extends L {
|
|
|
10416
10416
|
throw new Error("!viewer");
|
|
10417
10417
|
const s = we.czmJulianDateToTimeStamp, n = we.getClockRange, r = we.getClockStep;
|
|
10418
10418
|
{
|
|
10419
|
-
const a = () => o.clockViewModel.startTime = h.JulianDate.fromDate(new Date(i.startTime ??
|
|
10419
|
+
const a = () => o.clockViewModel.startTime = h.JulianDate.fromDate(new Date(i.startTime ?? lu(we.defaults.startTime)));
|
|
10420
10420
|
a(), this.dispose(_o(o.clockViewModel, "startTime", (l) => i.startTime = s(l))), this.dispose(i.startTimeChanged.disposableOn(a));
|
|
10421
10421
|
}
|
|
10422
10422
|
{
|
|
10423
|
-
const a = () => o.clockViewModel.stopTime = h.JulianDate.fromDate(new Date(i.stopTime ??
|
|
10423
|
+
const a = () => o.clockViewModel.stopTime = h.JulianDate.fromDate(new Date(i.stopTime ?? lu(we.defaults.stopTime)));
|
|
10424
10424
|
a(), this.dispose(_o(o.clockViewModel, "stopTime", (l) => i.stopTime = s(l))), this.dispose(i.stopTimeChanged.disposableOn(a));
|
|
10425
10425
|
}
|
|
10426
10426
|
{
|
|
10427
|
-
const a = () => o.clockViewModel.currentTime = h.JulianDate.fromDate(new Date(i.currentTime ??
|
|
10427
|
+
const a = () => o.clockViewModel.currentTime = h.JulianDate.fromDate(new Date(i.currentTime ?? lu(we.defaults.currentTime)));
|
|
10428
10428
|
a(), this.dispose(_o(o.clockViewModel, "currentTime", (l) => i.currentTime = s(l))), this.dispose(i.currentTimeChanged.disposableOn(a));
|
|
10429
10429
|
}
|
|
10430
10430
|
{
|
|
@@ -10619,7 +10619,7 @@ x.typeOf.number.equals = function(t, i, e, o) {
|
|
|
10619
10619
|
);
|
|
10620
10620
|
};
|
|
10621
10621
|
var Qs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
10622
|
-
function
|
|
10622
|
+
function qd(t) {
|
|
10623
10623
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
10624
10624
|
}
|
|
10625
10625
|
function oC(t) {
|
|
@@ -10691,7 +10691,7 @@ Uo.prototype.random_long = function() {
|
|
|
10691
10691
|
return (t * 67108864 + i) * (1 / 9007199254740992);
|
|
10692
10692
|
};
|
|
10693
10693
|
var cT = Uo;
|
|
10694
|
-
const sC = /* @__PURE__ */
|
|
10694
|
+
const sC = /* @__PURE__ */ qd(cT), k = {};
|
|
10695
10695
|
k.EPSILON1 = 0.1;
|
|
10696
10696
|
k.EPSILON2 = 0.01;
|
|
10697
10697
|
k.EPSILON3 = 1e-3;
|
|
@@ -11024,12 +11024,12 @@ I.magnitudeSquared = function(t) {
|
|
|
11024
11024
|
I.magnitude = function(t) {
|
|
11025
11025
|
return Math.sqrt(I.magnitudeSquared(t));
|
|
11026
11026
|
};
|
|
11027
|
-
const
|
|
11027
|
+
const ld = new I();
|
|
11028
11028
|
I.distance = function(t, i) {
|
|
11029
|
-
return x.typeOf.object("left", t), x.typeOf.object("right", i), I.subtract(t, i,
|
|
11029
|
+
return x.typeOf.object("left", t), x.typeOf.object("right", i), I.subtract(t, i, ld), I.magnitude(ld);
|
|
11030
11030
|
};
|
|
11031
11031
|
I.distanceSquared = function(t, i) {
|
|
11032
|
-
return x.typeOf.object("left", t), x.typeOf.object("right", i), I.subtract(t, i,
|
|
11032
|
+
return x.typeOf.object("left", t), x.typeOf.object("right", i), I.subtract(t, i, ld), I.magnitudeSquared(ld);
|
|
11033
11033
|
};
|
|
11034
11034
|
I.normalize = function(t, i) {
|
|
11035
11035
|
x.typeOf.object("cartesian", t), x.typeOf.object("result", i);
|
|
@@ -11069,13 +11069,13 @@ const Zg = new I();
|
|
|
11069
11069
|
I.lerp = function(t, i, e, o) {
|
|
11070
11070
|
return x.typeOf.object("start", t), x.typeOf.object("end", i), x.typeOf.number("t", e), x.typeOf.object("result", o), I.multiplyByScalar(i, e, Zg), o = I.multiplyByScalar(t, 1 - e, o), I.add(Zg, o, o);
|
|
11071
11071
|
};
|
|
11072
|
-
const xc = new I(),
|
|
11072
|
+
const xc = new I(), wu = new I();
|
|
11073
11073
|
I.angleBetween = function(t, i) {
|
|
11074
|
-
x.typeOf.object("left", t), x.typeOf.object("right", i), I.normalize(t, xc), I.normalize(i,
|
|
11075
|
-
const e = I.dot(xc,
|
|
11074
|
+
x.typeOf.object("left", t), x.typeOf.object("right", i), I.normalize(t, xc), I.normalize(i, wu);
|
|
11075
|
+
const e = I.dot(xc, wu), o = I.magnitude(
|
|
11076
11076
|
I.cross(
|
|
11077
11077
|
xc,
|
|
11078
|
-
|
|
11078
|
+
wu,
|
|
11079
11079
|
xc
|
|
11080
11080
|
)
|
|
11081
11081
|
);
|
|
@@ -11415,12 +11415,12 @@ re.magnitudeSquared = function(t) {
|
|
|
11415
11415
|
re.magnitude = function(t) {
|
|
11416
11416
|
return Math.sqrt(re.magnitudeSquared(t));
|
|
11417
11417
|
};
|
|
11418
|
-
const
|
|
11418
|
+
const hd = new re();
|
|
11419
11419
|
re.distance = function(t, i) {
|
|
11420
|
-
return x.typeOf.object("left", t), x.typeOf.object("right", i), re.subtract(t, i,
|
|
11420
|
+
return x.typeOf.object("left", t), x.typeOf.object("right", i), re.subtract(t, i, hd), re.magnitude(hd);
|
|
11421
11421
|
};
|
|
11422
11422
|
re.distanceSquared = function(t, i) {
|
|
11423
|
-
return x.typeOf.object("left", t), x.typeOf.object("right", i), re.subtract(t, i,
|
|
11423
|
+
return x.typeOf.object("left", t), x.typeOf.object("right", i), re.subtract(t, i, hd), re.magnitudeSquared(hd);
|
|
11424
11424
|
};
|
|
11425
11425
|
re.normalize = function(t, i) {
|
|
11426
11426
|
x.typeOf.object("cartesian", t), x.typeOf.object("result", i);
|
|
@@ -12006,14 +12006,14 @@ X.setUniformScale = function(t, i, e) {
|
|
|
12006
12006
|
const o = X.getScale(t, ET), s = i / o.x, n = i / o.y, r = i / o.z;
|
|
12007
12007
|
return e[0] = t[0] * s, e[1] = t[1] * s, e[2] = t[2] * s, e[3] = t[3] * n, e[4] = t[4] * n, e[5] = t[5] * n, e[6] = t[6] * r, e[7] = t[7] * r, e[8] = t[8] * r, e;
|
|
12008
12008
|
};
|
|
12009
|
-
const
|
|
12009
|
+
const Cu = new I();
|
|
12010
12010
|
X.getScale = function(t, i) {
|
|
12011
12011
|
return x.typeOf.object("matrix", t), x.typeOf.object("result", i), i.x = I.magnitude(
|
|
12012
|
-
I.fromElements(t[0], t[1], t[2],
|
|
12012
|
+
I.fromElements(t[0], t[1], t[2], Cu)
|
|
12013
12013
|
), i.y = I.magnitude(
|
|
12014
|
-
I.fromElements(t[3], t[4], t[5],
|
|
12014
|
+
I.fromElements(t[3], t[4], t[5], Cu)
|
|
12015
12015
|
), i.z = I.magnitude(
|
|
12016
|
-
I.fromElements(t[6], t[7], t[8],
|
|
12016
|
+
I.fromElements(t[6], t[7], t[8], Cu)
|
|
12017
12017
|
), i;
|
|
12018
12018
|
};
|
|
12019
12019
|
const em = new I();
|
|
@@ -12073,11 +12073,11 @@ function IT(t) {
|
|
|
12073
12073
|
}
|
|
12074
12074
|
return Math.sqrt(i);
|
|
12075
12075
|
}
|
|
12076
|
-
const
|
|
12076
|
+
const mp = [1, 0, 0], vp = [2, 2, 1];
|
|
12077
12077
|
function RT(t) {
|
|
12078
12078
|
let i = 0;
|
|
12079
12079
|
for (let e = 0; e < 3; ++e) {
|
|
12080
|
-
const o = t[X.getElementIndex(
|
|
12080
|
+
const o = t[X.getElementIndex(vp[e], mp[e])];
|
|
12081
12081
|
i += 2 * o * o;
|
|
12082
12082
|
}
|
|
12083
12083
|
return Math.sqrt(i);
|
|
@@ -12087,12 +12087,12 @@ function DT(t, i) {
|
|
|
12087
12087
|
let o = 0, s = 1;
|
|
12088
12088
|
for (let c = 0; c < 3; ++c) {
|
|
12089
12089
|
const d = Math.abs(
|
|
12090
|
-
t[X.getElementIndex(
|
|
12090
|
+
t[X.getElementIndex(vp[c], mp[c])]
|
|
12091
12091
|
);
|
|
12092
12092
|
d > o && (s = c, o = d);
|
|
12093
12093
|
}
|
|
12094
12094
|
let n = 1, r = 0;
|
|
12095
|
-
const a =
|
|
12095
|
+
const a = mp[s], l = vp[s];
|
|
12096
12096
|
if (Math.abs(t[X.getElementIndex(l, a)]) > e) {
|
|
12097
12097
|
const c = t[X.getElementIndex(l, l)], d = t[X.getElementIndex(a, a)], u = t[X.getElementIndex(l, a)], p = (c - d) / 2 / u;
|
|
12098
12098
|
let f;
|
|
@@ -12260,12 +12260,12 @@ se.magnitudeSquared = function(t) {
|
|
|
12260
12260
|
se.magnitude = function(t) {
|
|
12261
12261
|
return Math.sqrt(se.magnitudeSquared(t));
|
|
12262
12262
|
};
|
|
12263
|
-
const
|
|
12263
|
+
const cd = new se();
|
|
12264
12264
|
se.distance = function(t, i) {
|
|
12265
|
-
return x.typeOf.object("left", t), x.typeOf.object("right", i), se.subtract(t, i,
|
|
12265
|
+
return x.typeOf.object("left", t), x.typeOf.object("right", i), se.subtract(t, i, cd), se.magnitude(cd);
|
|
12266
12266
|
};
|
|
12267
12267
|
se.distanceSquared = function(t, i) {
|
|
12268
|
-
return x.typeOf.object("left", t), x.typeOf.object("right", i), se.subtract(t, i,
|
|
12268
|
+
return x.typeOf.object("left", t), x.typeOf.object("right", i), se.subtract(t, i, cd), se.magnitudeSquared(cd);
|
|
12269
12269
|
};
|
|
12270
12270
|
se.normalize = function(t, i) {
|
|
12271
12271
|
x.typeOf.object("cartesian", t), x.typeOf.object("result", i);
|
|
@@ -12668,14 +12668,14 @@ Y.setUniformScale = function(t, i, e) {
|
|
|
12668
12668
|
const o = Y.getScale(t, BT), s = i / o.x, n = i / o.y, r = i / o.z;
|
|
12669
12669
|
return e[0] = t[0] * s, e[1] = t[1] * s, e[2] = t[2] * s, e[3] = t[3], e[4] = t[4] * n, e[5] = t[5] * n, e[6] = t[6] * n, e[7] = t[7], e[8] = t[8] * r, e[9] = t[9] * r, e[10] = t[10] * r, e[11] = t[11], e[12] = t[12], e[13] = t[13], e[14] = t[14], e[15] = t[15], e;
|
|
12670
12670
|
};
|
|
12671
|
-
const
|
|
12671
|
+
const _u = new I();
|
|
12672
12672
|
Y.getScale = function(t, i) {
|
|
12673
12673
|
return x.typeOf.object("matrix", t), x.typeOf.object("result", i), i.x = I.magnitude(
|
|
12674
|
-
I.fromElements(t[0], t[1], t[2],
|
|
12674
|
+
I.fromElements(t[0], t[1], t[2], _u)
|
|
12675
12675
|
), i.y = I.magnitude(
|
|
12676
|
-
I.fromElements(t[4], t[5], t[6],
|
|
12676
|
+
I.fromElements(t[4], t[5], t[6], _u)
|
|
12677
12677
|
), i.z = I.magnitude(
|
|
12678
|
-
I.fromElements(t[8], t[9], t[10],
|
|
12678
|
+
I.fromElements(t[8], t[9], t[10], _u)
|
|
12679
12679
|
), i;
|
|
12680
12680
|
};
|
|
12681
12681
|
const om = new I();
|
|
@@ -12915,7 +12915,7 @@ function sc(t, i, e) {
|
|
|
12915
12915
|
function Af(t, i, e, o, s) {
|
|
12916
12916
|
this.xPoleWander = t, this.yPoleWander = i, this.xPoleOffset = e, this.yPoleOffset = o, this.ut1MinusUtc = s;
|
|
12917
12917
|
}
|
|
12918
|
-
function
|
|
12918
|
+
function yp(t) {
|
|
12919
12919
|
if (t === null || isNaN(t))
|
|
12920
12920
|
throw new H("year is required and must be a number.");
|
|
12921
12921
|
return t % 4 === 0 && t % 100 !== 0 || t % 400 === 0;
|
|
@@ -12939,7 +12939,7 @@ function Mf(t, i, e, o, s, n, r, a) {
|
|
|
12939
12939
|
);
|
|
12940
12940
|
}
|
|
12941
12941
|
function _() {
|
|
12942
|
-
const P = i === 2 &&
|
|
12942
|
+
const P = i === 2 && yp(t) ? sm[i - 1] + 1 : sm[i - 1];
|
|
12943
12943
|
if (e > P)
|
|
12944
12944
|
throw new H("Month and Day represents invalid date");
|
|
12945
12945
|
}
|
|
@@ -13035,7 +13035,7 @@ function If(t, i) {
|
|
|
13035
13035
|
return ie.compare(t.julianDate, i.julianDate);
|
|
13036
13036
|
}
|
|
13037
13037
|
const Ar = new ze();
|
|
13038
|
-
function
|
|
13038
|
+
function Xd(t) {
|
|
13039
13039
|
Ar.julianDate = t;
|
|
13040
13040
|
const i = ie.leapSeconds;
|
|
13041
13041
|
let e = sc(
|
|
@@ -13098,7 +13098,7 @@ const YT = /^(\d{4})$/, ZT = /^(\d{4})-(\d{2})$/, QT = /^(\d{4})-?(\d{3})$/, KT
|
|
|
13098
13098
|
function ie(t, i, e) {
|
|
13099
13099
|
this.dayNumber = void 0, this.secondsOfDay = void 0, t = t ?? 0, i = i ?? 0, e = e ?? Se.UTC;
|
|
13100
13100
|
const o = t | 0;
|
|
13101
|
-
i = i + (t - o) * Ke.SECONDS_PER_DAY, Ps(o, i, this), e === Se.UTC &&
|
|
13101
|
+
i = i + (t - o) * Ke.SECONDS_PER_DAY, Ps(o, i, this), e === Se.UTC && Xd(this);
|
|
13102
13102
|
}
|
|
13103
13103
|
ie.fromGregorianDate = function(t, i) {
|
|
13104
13104
|
if (!(t instanceof Mf))
|
|
@@ -13112,7 +13112,7 @@ ie.fromGregorianDate = function(t, i) {
|
|
|
13112
13112
|
t.second,
|
|
13113
13113
|
t.millisecond
|
|
13114
13114
|
);
|
|
13115
|
-
return A(i) ? (Ps(e[0], e[1], i),
|
|
13115
|
+
return A(i) ? (Ps(e[0], e[1], i), Xd(i), i) : new ie(e[0], e[1], Se.UTC);
|
|
13116
13116
|
};
|
|
13117
13117
|
ie.fromDate = function(t, i) {
|
|
13118
13118
|
if (!(t instanceof Date) || isNaN(t.getTime()))
|
|
@@ -13126,7 +13126,7 @@ ie.fromDate = function(t, i) {
|
|
|
13126
13126
|
t.getUTCSeconds(),
|
|
13127
13127
|
t.getUTCMilliseconds()
|
|
13128
13128
|
);
|
|
13129
|
-
return A(i) ? (Ps(e[0], e[1], i),
|
|
13129
|
+
return A(i) ? (Ps(e[0], e[1], i), Xd(i), i) : new ie(e[0], e[1], Se.UTC);
|
|
13130
13130
|
};
|
|
13131
13131
|
ie.fromIso8601 = function(t, i) {
|
|
13132
13132
|
if (typeof t != "string")
|
|
@@ -13149,7 +13149,7 @@ ie.fromIso8601 = function(t, i) {
|
|
|
13149
13149
|
else {
|
|
13150
13150
|
let w;
|
|
13151
13151
|
if (e = d.match(QT), e !== null) {
|
|
13152
|
-
if (o = +e[1], w = +e[2], f =
|
|
13152
|
+
if (o = +e[1], w = +e[2], f = yp(o), w < 1 || f && w > 366 || !f && w > 365)
|
|
13153
13153
|
throw new H(Vi);
|
|
13154
13154
|
} else if (e = d.match(KT), e !== null) {
|
|
13155
13155
|
o = +e[1];
|
|
@@ -13162,7 +13162,7 @@ ie.fromIso8601 = function(t, i) {
|
|
|
13162
13162
|
throw new H(Vi);
|
|
13163
13163
|
p = new Date(Date.UTC(o, 0, 1)), p.setUTCDate(w), s = p.getUTCMonth() + 1, n = p.getUTCDate();
|
|
13164
13164
|
}
|
|
13165
|
-
if (f =
|
|
13165
|
+
if (f = yp(o), s < 1 || s > 12 || n < 1 || (s !== 2 || !f) && n > bc[s - 1] || f && s === 2 && n > Tc)
|
|
13166
13166
|
throw new H(Vi);
|
|
13167
13167
|
let v;
|
|
13168
13168
|
if (A(u)) {
|
|
@@ -13219,7 +13219,7 @@ ie.fromIso8601 = function(t, i) {
|
|
|
13219
13219
|
l,
|
|
13220
13220
|
c
|
|
13221
13221
|
);
|
|
13222
|
-
return A(i) ? (Ps(P[0], P[1], i),
|
|
13222
|
+
return A(i) ? (Ps(P[0], P[1], i), Xd(i)) : i = new ie(P[0], P[1], Se.UTC), _ && ie.addSeconds(i, 1, i), i;
|
|
13223
13223
|
};
|
|
13224
13224
|
ie.now = function(t) {
|
|
13225
13225
|
return ie.fromDate(/* @__PURE__ */ new Date(), t);
|
|
@@ -13528,7 +13528,7 @@ function iE() {
|
|
|
13528
13528
|
return N(te);
|
|
13529
13529
|
}
|
|
13530
13530
|
function $(K) {
|
|
13531
|
-
var te, le, _e, be, Ee, Oe, je, st, Ne, Pe, $e, ht = [], Ut, jt, Ss,
|
|
13531
|
+
var te, le, _e, be, Ee, Oe, je, st, Ne, Pe, $e, ht = [], Ut, jt, Ss, ou;
|
|
13532
13532
|
for (K = z(K), Ut = K.length, te = g, le = 0, Ee = f, Oe = 0; Oe < Ut; ++Oe)
|
|
13533
13533
|
$e = K[Oe], $e < 128 && ht.push(D($e));
|
|
13534
13534
|
for (_e = be = ht.length, be && ht.push(v); _e < Ut; ) {
|
|
@@ -13537,9 +13537,9 @@ function iE() {
|
|
|
13537
13537
|
for (jt = _e + 1, je - te > E((a - le) / jt) && V("overflow"), le += (je - te) * jt, te = je, Oe = 0; Oe < Ut; ++Oe)
|
|
13538
13538
|
if ($e = K[Oe], $e < te && ++le > a && V("overflow"), $e == te) {
|
|
13539
13539
|
for (st = le, Ne = l; Pe = Ne <= Ee ? c : Ne >= Ee + d ? d : Ne - Ee, !(st < Pe); Ne += l)
|
|
13540
|
-
|
|
13541
|
-
D(b(Pe +
|
|
13542
|
-
), st = E(
|
|
13540
|
+
ou = st - Pe, Ss = l - Pe, ht.push(
|
|
13541
|
+
D(b(Pe + ou % Ss, 0))
|
|
13542
|
+
), st = E(ou / Ss);
|
|
13543
13543
|
ht.push(D(b(st, 0))), Ee = R(le, jt, _e == be), le = 0, ++_e;
|
|
13544
13544
|
}
|
|
13545
13545
|
++le, ++te;
|
|
@@ -13589,7 +13589,7 @@ function iE() {
|
|
|
13589
13589
|
})(Qs);
|
|
13590
13590
|
}(va, va.exports)), va.exports;
|
|
13591
13591
|
}
|
|
13592
|
-
var
|
|
13592
|
+
var Pu = { exports: {} };
|
|
13593
13593
|
/*!
|
|
13594
13594
|
* URI.js - Mutating URLs
|
|
13595
13595
|
* IPv6 Support
|
|
@@ -13642,9 +13642,9 @@ function oE() {
|
|
|
13642
13642
|
noConflict: s
|
|
13643
13643
|
};
|
|
13644
13644
|
});
|
|
13645
|
-
}(
|
|
13645
|
+
}(Pu)), Pu.exports;
|
|
13646
13646
|
}
|
|
13647
|
-
var
|
|
13647
|
+
var xu = { exports: {} };
|
|
13648
13648
|
/*!
|
|
13649
13649
|
* URI.js - Mutating URLs
|
|
13650
13650
|
* Second Level Domain (SLD) Support
|
|
@@ -13854,7 +13854,7 @@ function sE() {
|
|
|
13854
13854
|
};
|
|
13855
13855
|
return o;
|
|
13856
13856
|
});
|
|
13857
|
-
}(
|
|
13857
|
+
}(xu)), xu.exports;
|
|
13858
13858
|
}
|
|
13859
13859
|
/*!
|
|
13860
13860
|
* URI.js - Mutating URLs
|
|
@@ -14770,7 +14770,7 @@ function sE() {
|
|
|
14770
14770
|
});
|
|
14771
14771
|
})(cC);
|
|
14772
14772
|
var nE = cC.exports;
|
|
14773
|
-
const Fo = /* @__PURE__ */
|
|
14773
|
+
const Fo = /* @__PURE__ */ qd(nE);
|
|
14774
14774
|
function rE(t) {
|
|
14775
14775
|
return (t.length === 0 || t[t.length - 1] !== "/") && (t = `${t}/`), t;
|
|
14776
14776
|
}
|
|
@@ -14856,7 +14856,7 @@ function dC(t) {
|
|
|
14856
14856
|
return x.typeOf.string("uri", t), hE.test(t);
|
|
14857
14857
|
}
|
|
14858
14858
|
let Ki;
|
|
14859
|
-
function
|
|
14859
|
+
function wp(t) {
|
|
14860
14860
|
A(Ki) || (Ki = document.createElement("a")), Ki.href = window.location.href;
|
|
14861
14861
|
const i = Ki.host, e = Ki.protocol;
|
|
14862
14862
|
return Ki.href = t, Ki.href = Ki.href, e !== Ki.protocol || i !== Ki.host;
|
|
@@ -14981,16 +14981,16 @@ const fE = {
|
|
|
14981
14981
|
*/
|
|
14982
14982
|
OTHER: 3
|
|
14983
14983
|
}, mE = Object.freeze(gE);
|
|
14984
|
-
function
|
|
14984
|
+
function dd(t) {
|
|
14985
14985
|
t = t ?? Go.EMPTY_OBJECT;
|
|
14986
14986
|
const i = t.throttleByServer ?? !1, e = t.throttle ?? !1;
|
|
14987
14987
|
this.url = t.url, this.requestFunction = t.requestFunction, this.cancelFunction = t.cancelFunction, this.priorityFunction = t.priorityFunction, this.priority = t.priority ?? 0, this.throttle = e, this.throttleByServer = i, this.type = t.type ?? mE.OTHER, this.serverKey = t.serverKey, this.state = lt.UNISSUED, this.deferred = void 0, this.cancelled = !1;
|
|
14988
14988
|
}
|
|
14989
|
-
|
|
14989
|
+
dd.prototype.cancel = function() {
|
|
14990
14990
|
this.cancelled = !0;
|
|
14991
14991
|
};
|
|
14992
|
-
|
|
14993
|
-
return A(t) ? (t.url = this.url, t.requestFunction = this.requestFunction, t.cancelFunction = this.cancelFunction, t.priorityFunction = this.priorityFunction, t.priority = this.priority, t.throttle = this.throttle, t.throttleByServer = this.throttleByServer, t.type = this.type, t.serverKey = this.serverKey, t.state = lt.UNISSUED, t.deferred = void 0, t.cancelled = !1, t) : new
|
|
14992
|
+
dd.prototype.clone = function(t) {
|
|
14993
|
+
return A(t) ? (t.url = this.url, t.requestFunction = this.requestFunction, t.cancelFunction = this.cancelFunction, t.priorityFunction = this.priorityFunction, t.priority = this.priority, t.throttle = this.throttle, t.throttleByServer = this.throttleByServer, t.type = this.type, t.serverKey = this.serverKey, t.state = lt.UNISSUED, t.deferred = void 0, t.cancelled = !1, t) : new dd(this);
|
|
14994
14994
|
};
|
|
14995
14995
|
function vE(t) {
|
|
14996
14996
|
const i = {};
|
|
@@ -15044,12 +15044,12 @@ function kf(t, i, e, o) {
|
|
|
15044
15044
|
}
|
|
15045
15045
|
Zr.prototype.removeEventListener = function(t, i) {
|
|
15046
15046
|
x.typeOf.func("listener", t);
|
|
15047
|
-
const e =
|
|
15047
|
+
const e = Cp(
|
|
15048
15048
|
this,
|
|
15049
15049
|
this._listeners,
|
|
15050
15050
|
t,
|
|
15051
15051
|
i
|
|
15052
|
-
), o =
|
|
15052
|
+
), o = Cp(
|
|
15053
15053
|
this,
|
|
15054
15054
|
this._toAdd,
|
|
15055
15055
|
t,
|
|
@@ -15057,7 +15057,7 @@ Zr.prototype.removeEventListener = function(t, i) {
|
|
|
15057
15057
|
), s = e || o;
|
|
15058
15058
|
return s && this._listenerCount--, s;
|
|
15059
15059
|
};
|
|
15060
|
-
function
|
|
15060
|
+
function Cp(t, i, e, o) {
|
|
15061
15061
|
const s = i.get(e);
|
|
15062
15062
|
if (!s || !s.has(o))
|
|
15063
15063
|
return !1;
|
|
@@ -15081,7 +15081,7 @@ Zr.prototype.raiseEvent = function() {
|
|
|
15081
15081
|
this._toAdd.clear();
|
|
15082
15082
|
for (const [t, i] of this._toRemove.entries())
|
|
15083
15083
|
for (const e of i)
|
|
15084
|
-
|
|
15084
|
+
Cp(this, this._listeners, t, e);
|
|
15085
15085
|
this._toRemove.clear();
|
|
15086
15086
|
};
|
|
15087
15087
|
function bn(t) {
|
|
@@ -15212,7 +15212,7 @@ Ot.maximumLength = gr;
|
|
|
15212
15212
|
Ot.reserve(gr);
|
|
15213
15213
|
const io = [];
|
|
15214
15214
|
let zo = {};
|
|
15215
|
-
const wE = typeof document < "u" ? new Fo(document.location.href) : new Fo(),
|
|
15215
|
+
const wE = typeof document < "u" ? new Fo(document.location.href) : new Fo(), Yd = new Zr();
|
|
15216
15216
|
function Ue() {
|
|
15217
15217
|
}
|
|
15218
15218
|
Ue.maximumRequests = 50;
|
|
@@ -15220,7 +15220,7 @@ Ue.maximumRequestsPerServer = 18;
|
|
|
15220
15220
|
Ue.requestsByServer = {};
|
|
15221
15221
|
Ue.throttleRequests = !0;
|
|
15222
15222
|
Ue.debugShowStatistics = !1;
|
|
15223
|
-
Ue.requestCompletedEvent =
|
|
15223
|
+
Ue.requestCompletedEvent = Yd;
|
|
15224
15224
|
Object.defineProperties(Ue, {
|
|
15225
15225
|
/**
|
|
15226
15226
|
* Returns the statistics used by the request scheduler.
|
|
@@ -15278,12 +15278,12 @@ function CE(t) {
|
|
|
15278
15278
|
if (t.state === lt.CANCELLED)
|
|
15279
15279
|
return;
|
|
15280
15280
|
const e = t.deferred;
|
|
15281
|
-
--Ie.numberOfActiveRequests, --zo[t.serverKey],
|
|
15281
|
+
--Ie.numberOfActiveRequests, --zo[t.serverKey], Yd.raiseEvent(), t.state = lt.RECEIVED, t.deferred = void 0, e.resolve(i);
|
|
15282
15282
|
};
|
|
15283
15283
|
}
|
|
15284
15284
|
function _E(t) {
|
|
15285
15285
|
return function(i) {
|
|
15286
|
-
t.state !== lt.CANCELLED && (++Ie.numberOfFailedRequests, --Ie.numberOfActiveRequests, --zo[t.serverKey],
|
|
15286
|
+
t.state !== lt.CANCELLED && (++Ie.numberOfFailedRequests, --Ie.numberOfActiveRequests, --zo[t.serverKey], Yd.raiseEvent(i), t.state = lt.FAILED, t.deferred.reject(i));
|
|
15287
15287
|
};
|
|
15288
15288
|
}
|
|
15289
15289
|
function gC(t) {
|
|
@@ -15342,7 +15342,7 @@ Ue.getServerKey = function(t) {
|
|
|
15342
15342
|
};
|
|
15343
15343
|
Ue.request = function(t) {
|
|
15344
15344
|
if (x.typeOf.object("request", t), x.typeOf.string("request.url", t.url), x.typeOf.func("request.requestFunction", t.requestFunction), uC(t.url) || dC(t.url))
|
|
15345
|
-
return
|
|
15345
|
+
return Yd.raiseEvent(), t.state = lt.RECEIVED, t.requestFunction();
|
|
15346
15346
|
if (++Ie.numberOfAttemptedRequests, A(t.serverKey) || (t.serverKey = Ue.getServerKey(t.url)), Ue.throttleRequests && t.throttleByServer && !Ue.serverHasOpenSlots(t.serverKey))
|
|
15347
15347
|
return;
|
|
15348
15348
|
if (!Ue.throttleRequests || !t.throttle)
|
|
@@ -15438,7 +15438,7 @@ const mC = function() {
|
|
|
15438
15438
|
function ne(t) {
|
|
15439
15439
|
t = t ?? Go.EMPTY_OBJECT, typeof t == "string" && (t = {
|
|
15440
15440
|
url: t
|
|
15441
|
-
}), x.typeOf.string("options.url", t.url), this._url = void 0, this._templateValues = so(t.templateValues, {}), this._queryParameters = so(t.queryParameters, {}), this.headers = so(t.headers, {}), this.request = t.request ?? new
|
|
15441
|
+
}), x.typeOf.string("options.url", t.url), this._url = void 0, this._templateValues = so(t.templateValues, {}), this._queryParameters = so(t.queryParameters, {}), this.headers = so(t.headers, {}), this.request = t.request ?? new dd(), this.proxy = t.proxy, this.retryCallback = t.retryCallback, this.retryAttempts = t.retryAttempts ?? 0, this._retryCount = 0, t.parseUrl ?? !0 ? this.parseUrl(t.url, !0, !0) : this._url = t.url, this._credits = t.credits;
|
|
15442
15442
|
}
|
|
15443
15443
|
function so(t, i) {
|
|
15444
15444
|
return A(t) ? fr(t) : i;
|
|
@@ -15575,7 +15575,7 @@ Object.defineProperties(ne.prototype, {
|
|
|
15575
15575
|
*/
|
|
15576
15576
|
isCrossOriginUrl: {
|
|
15577
15577
|
get: function() {
|
|
15578
|
-
return
|
|
15578
|
+
return wp(this._url);
|
|
15579
15579
|
}
|
|
15580
15580
|
},
|
|
15581
15581
|
/**
|
|
@@ -15605,12 +15605,12 @@ ne.prototype.toString = function() {
|
|
|
15605
15605
|
ne.prototype.parseUrl = function(t, i, e, o) {
|
|
15606
15606
|
let s = new Fo(t);
|
|
15607
15607
|
const n = SE(s.query());
|
|
15608
|
-
this._queryParameters = i ?
|
|
15608
|
+
this._queryParameters = i ? ud(n, this.queryParameters, e) : n, s.search(""), s.fragment(""), A(o) && s.scheme() === "" && (s = s.absoluteTo(kh(o))), this._url = s.toString();
|
|
15609
15609
|
};
|
|
15610
15610
|
function SE(t) {
|
|
15611
15611
|
return t.length === 0 ? {} : t.indexOf("=") === -1 ? { [t]: void 0 } : pE(t);
|
|
15612
15612
|
}
|
|
15613
|
-
function
|
|
15613
|
+
function ud(t, i, e) {
|
|
15614
15614
|
if (!e)
|
|
15615
15615
|
return cs(t, i);
|
|
15616
15616
|
const o = fr(t, !0);
|
|
@@ -15638,18 +15638,18 @@ function bE(t) {
|
|
|
15638
15638
|
return i.length === 0 ? "" : i.length === 1 && !A(t[i[0]]) ? `?${i[0]}` : `?${uE(t)}`;
|
|
15639
15639
|
}
|
|
15640
15640
|
ne.prototype.setQueryParameters = function(t, i) {
|
|
15641
|
-
i ? this._queryParameters =
|
|
15641
|
+
i ? this._queryParameters = ud(
|
|
15642
15642
|
this._queryParameters,
|
|
15643
15643
|
t,
|
|
15644
15644
|
!1
|
|
15645
|
-
) : this._queryParameters =
|
|
15645
|
+
) : this._queryParameters = ud(
|
|
15646
15646
|
t,
|
|
15647
15647
|
this._queryParameters,
|
|
15648
15648
|
!1
|
|
15649
15649
|
);
|
|
15650
15650
|
};
|
|
15651
15651
|
ne.prototype.appendQueryParameters = function(t) {
|
|
15652
|
-
this._queryParameters =
|
|
15652
|
+
this._queryParameters = ud(
|
|
15653
15653
|
t,
|
|
15654
15654
|
this._queryParameters,
|
|
15655
15655
|
!0
|
|
@@ -15721,7 +15721,7 @@ ne.prototype.fetchImage = function(t) {
|
|
|
15721
15721
|
t = t ?? Go.EMPTY_OBJECT;
|
|
15722
15722
|
const i = t.preferImageBitmap ?? !1, e = t.preferBlob ?? !1, o = t.flipY ?? !1, s = t.skipColorSpaceConversion ?? !1;
|
|
15723
15723
|
if (zf(this.request), !mC || this.isDataUri || this.isBlobUri || !this.hasHeaders && !e)
|
|
15724
|
-
return
|
|
15724
|
+
return _p({
|
|
15725
15725
|
resource: this,
|
|
15726
15726
|
flipY: o,
|
|
15727
15727
|
skipColorSpaceConversion: s,
|
|
@@ -15745,7 +15745,7 @@ ne.prototype.fetchImage = function(t) {
|
|
|
15745
15745
|
const u = window.URL.createObjectURL(d);
|
|
15746
15746
|
return l = new ne({
|
|
15747
15747
|
url: u
|
|
15748
|
-
}),
|
|
15748
|
+
}), _p({
|
|
15749
15749
|
resource: l,
|
|
15750
15750
|
flipY: o,
|
|
15751
15751
|
skipColorSpaceConversion: s,
|
|
@@ -15758,7 +15758,7 @@ ne.prototype.fetchImage = function(t) {
|
|
|
15758
15758
|
return A(l) && window.URL.revokeObjectURL(l.url), d.blob = c, Promise.reject(d);
|
|
15759
15759
|
});
|
|
15760
15760
|
};
|
|
15761
|
-
function
|
|
15761
|
+
function _p(t) {
|
|
15762
15762
|
const i = t.resource, e = t.flipY, o = t.skipColorSpaceConversion, s = t.preferImageBitmap, n = i.request;
|
|
15763
15763
|
n.url = i.url, n.requestFunction = function() {
|
|
15764
15764
|
let a = !1;
|
|
@@ -15777,7 +15777,7 @@ function Cp(t) {
|
|
|
15777
15777
|
if (A(r))
|
|
15778
15778
|
return r.catch(function(a) {
|
|
15779
15779
|
return n.state !== lt.FAILED ? Promise.reject(a) : i.retryOnError(a).then(function(l) {
|
|
15780
|
-
return l ? (n.state = lt.UNISSUED, n.deferred = void 0,
|
|
15780
|
+
return l ? (n.state = lt.UNISSUED, n.deferred = void 0, _p({
|
|
15781
15781
|
resource: i,
|
|
15782
15782
|
flipY: e,
|
|
15783
15783
|
skipColorSpaceConversion: o,
|
|
@@ -16449,27 +16449,27 @@ function Lf(t) {
|
|
|
16449
16449
|
this._work = new Array(i + 1), this._coef = new Array(i + 1);
|
|
16450
16450
|
}
|
|
16451
16451
|
const kE = new ie(0, 0, Se.TAI);
|
|
16452
|
-
function
|
|
16452
|
+
function Pp(t, i, e) {
|
|
16453
16453
|
const o = kE;
|
|
16454
16454
|
return o.dayNumber = i, o.secondsOfDay = e, ie.daysDifference(o, t._sampleZeroDateTT);
|
|
16455
16455
|
}
|
|
16456
16456
|
Lf.prototype.preload = function(t, i, e, o) {
|
|
16457
|
-
const s =
|
|
16457
|
+
const s = Pp(
|
|
16458
16458
|
this,
|
|
16459
16459
|
t,
|
|
16460
16460
|
i
|
|
16461
|
-
), n =
|
|
16461
|
+
), n = Pp(this, e, o);
|
|
16462
16462
|
let r = s / this._stepSizeDays - this._interpolationOrder / 2 | 0;
|
|
16463
16463
|
r < 0 && (r = 0);
|
|
16464
16464
|
let a = n / this._stepSizeDays - this._interpolationOrder / 2 | 0 + this._interpolationOrder;
|
|
16465
16465
|
a >= this._totalSamples && (a = this._totalSamples - 1);
|
|
16466
16466
|
const l = r / this._samplesPerXysFile | 0, c = a / this._samplesPerXysFile | 0, d = [];
|
|
16467
16467
|
for (let u = l; u <= c; ++u)
|
|
16468
|
-
d.push(
|
|
16468
|
+
d.push(xp(this, u));
|
|
16469
16469
|
return Promise.all(d);
|
|
16470
16470
|
};
|
|
16471
16471
|
Lf.prototype.computeXysRadians = function(t, i, e) {
|
|
16472
|
-
const o =
|
|
16472
|
+
const o = Pp(this, t, i);
|
|
16473
16473
|
if (o < 0)
|
|
16474
16474
|
return;
|
|
16475
16475
|
const s = o / this._stepSizeDays | 0;
|
|
@@ -16482,7 +16482,7 @@ Lf.prototype.computeXysRadians = function(t, i, e) {
|
|
|
16482
16482
|
a >= this._totalSamples && (a = this._totalSamples - 1, r = a - n, r < 0 && (r = 0));
|
|
16483
16483
|
let l = !1;
|
|
16484
16484
|
const c = this._samples;
|
|
16485
|
-
if (A(c[r * 3]) || (
|
|
16485
|
+
if (A(c[r * 3]) || (xp(this, r / this._samplesPerXysFile | 0), l = !0), A(c[a * 3]) || (xp(this, a / this._samplesPerXysFile | 0), l = !0), l)
|
|
16486
16486
|
return;
|
|
16487
16487
|
A(e) ? (e.x = 0, e.y = 0, e.s = 0) : e = new PC(0, 0, 0);
|
|
16488
16488
|
const d = o - r * this._stepSizeDays, u = this._work, p = this._denominators, f = this._coef, g = this._xTable;
|
|
@@ -16498,7 +16498,7 @@ Lf.prototype.computeXysRadians = function(t, i, e) {
|
|
|
16498
16498
|
}
|
|
16499
16499
|
return e;
|
|
16500
16500
|
};
|
|
16501
|
-
function
|
|
16501
|
+
function xp(t, i) {
|
|
16502
16502
|
if (t._chunkDownloadsInProgress[i])
|
|
16503
16503
|
return t._chunkDownloadsInProgress[i];
|
|
16504
16504
|
let e;
|
|
@@ -16628,7 +16628,7 @@ function ln(t) {
|
|
|
16628
16628
|
}
|
|
16629
16629
|
let Ic, xC;
|
|
16630
16630
|
function Of() {
|
|
16631
|
-
if (!A(Ic) && (Ic = !1, !
|
|
16631
|
+
if (!A(Ic) && (Ic = !1, !Zd())) {
|
|
16632
16632
|
const t = / Chrome\/([\.0-9]+)/.exec(Vt.userAgent);
|
|
16633
16633
|
t !== null && (Ic = !0, xC = ln(t[1]));
|
|
16634
16634
|
}
|
|
@@ -16639,7 +16639,7 @@ function FE() {
|
|
|
16639
16639
|
}
|
|
16640
16640
|
let Rc, SC;
|
|
16641
16641
|
function bC() {
|
|
16642
|
-
if (!A(Rc) && (Rc = !1, !Of() && !
|
|
16642
|
+
if (!A(Rc) && (Rc = !1, !Of() && !Zd() && / Safari\/[\.0-9]+/.test(Vt.userAgent))) {
|
|
16643
16643
|
const t = / Version\/([\.0-9]+)/.exec(Vt.userAgent);
|
|
16644
16644
|
t !== null && (Rc = !0, SC = ln(t[1]));
|
|
16645
16645
|
}
|
|
@@ -16648,34 +16648,34 @@ function bC() {
|
|
|
16648
16648
|
function zE() {
|
|
16649
16649
|
return bC() && SC;
|
|
16650
16650
|
}
|
|
16651
|
-
let Dc,
|
|
16651
|
+
let Dc, Sp;
|
|
16652
16652
|
function TC() {
|
|
16653
16653
|
if (!A(Dc)) {
|
|
16654
16654
|
Dc = !1;
|
|
16655
16655
|
const t = / AppleWebKit\/([\.0-9]+)(\+?)/.exec(Vt.userAgent);
|
|
16656
|
-
t !== null && (Dc = !0,
|
|
16656
|
+
t !== null && (Dc = !0, Sp = ln(t[1]), Sp.isNightly = !!t[2]);
|
|
16657
16657
|
}
|
|
16658
16658
|
return Dc;
|
|
16659
16659
|
}
|
|
16660
16660
|
function LE() {
|
|
16661
|
-
return TC() &&
|
|
16661
|
+
return TC() && Sp;
|
|
16662
16662
|
}
|
|
16663
|
-
let la,
|
|
16663
|
+
let la, bp;
|
|
16664
16664
|
function EC() {
|
|
16665
16665
|
if (!A(la)) {
|
|
16666
16666
|
la = !1;
|
|
16667
16667
|
let t;
|
|
16668
|
-
Vt.appName === "Microsoft Internet Explorer" ? (t = /MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(Vt.userAgent), t !== null && (la = !0,
|
|
16668
|
+
Vt.appName === "Microsoft Internet Explorer" ? (t = /MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(Vt.userAgent), t !== null && (la = !0, bp = ln(t[1]))) : Vt.appName === "Netscape" && (t = /Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(
|
|
16669
16669
|
Vt.userAgent
|
|
16670
|
-
), t !== null && (la = !0,
|
|
16670
|
+
), t !== null && (la = !0, bp = ln(t[1])));
|
|
16671
16671
|
}
|
|
16672
16672
|
return la;
|
|
16673
16673
|
}
|
|
16674
16674
|
function OE() {
|
|
16675
|
-
return EC() &&
|
|
16675
|
+
return EC() && bp;
|
|
16676
16676
|
}
|
|
16677
16677
|
let kc, AC;
|
|
16678
|
-
function
|
|
16678
|
+
function Zd() {
|
|
16679
16679
|
if (!A(kc)) {
|
|
16680
16680
|
kc = !1;
|
|
16681
16681
|
const t = / Edg\/([\.0-9]+)/.exec(Vt.userAgent);
|
|
@@ -16684,10 +16684,10 @@ function Yd() {
|
|
|
16684
16684
|
return kc;
|
|
16685
16685
|
}
|
|
16686
16686
|
function BE() {
|
|
16687
|
-
return
|
|
16687
|
+
return Zd() && AC;
|
|
16688
16688
|
}
|
|
16689
16689
|
let Fc, Bf;
|
|
16690
|
-
function
|
|
16690
|
+
function Qd() {
|
|
16691
16691
|
if (!A(Fc)) {
|
|
16692
16692
|
Fc = !1;
|
|
16693
16693
|
const t = /Firefox\/([\.0-9]+)/.exec(Vt.userAgent);
|
|
@@ -16695,20 +16695,20 @@ function Zd() {
|
|
|
16695
16695
|
}
|
|
16696
16696
|
return Fc;
|
|
16697
16697
|
}
|
|
16698
|
-
let
|
|
16698
|
+
let Su;
|
|
16699
16699
|
function VE() {
|
|
16700
|
-
return A(
|
|
16700
|
+
return A(Su) || (Su = /Windows/i.test(Vt.appVersion)), Su;
|
|
16701
16701
|
}
|
|
16702
|
-
let
|
|
16702
|
+
let bu;
|
|
16703
16703
|
function NE() {
|
|
16704
|
-
return A(
|
|
16704
|
+
return A(bu) || (bu = navigator.platform === "iPhone" || navigator.platform === "iPod" || navigator.platform === "iPad"), bu;
|
|
16705
16705
|
}
|
|
16706
16706
|
function UE() {
|
|
16707
|
-
return
|
|
16707
|
+
return Qd() && Bf;
|
|
16708
16708
|
}
|
|
16709
|
-
let
|
|
16709
|
+
let Tu;
|
|
16710
16710
|
function GE() {
|
|
16711
|
-
return A(
|
|
16711
|
+
return A(Tu) || (Tu = !Qd() && typeof PointerEvent < "u" && (!A(Vt.pointerEnabled) || Vt.pointerEnabled)), Tu;
|
|
16712
16712
|
}
|
|
16713
16713
|
let MC, zc;
|
|
16714
16714
|
function IC() {
|
|
@@ -16772,9 +16772,9 @@ const It = {
|
|
|
16772
16772
|
webkitVersion: LE,
|
|
16773
16773
|
isInternetExplorer: EC,
|
|
16774
16774
|
internetExplorerVersion: OE,
|
|
16775
|
-
isEdge:
|
|
16775
|
+
isEdge: Zd,
|
|
16776
16776
|
edgeVersion: BE,
|
|
16777
|
-
isFirefox:
|
|
16777
|
+
isFirefox: Qd,
|
|
16778
16778
|
firefoxVersion: UE,
|
|
16779
16779
|
isWindows: VE,
|
|
16780
16780
|
isIPadOrIOS: NE,
|
|
@@ -16813,7 +16813,7 @@ It.supportsWebgl2 = function(t) {
|
|
|
16813
16813
|
return x.defined("scene", t), t.context.webgl2;
|
|
16814
16814
|
};
|
|
16815
16815
|
It.supportsEsmWebWorkers = function() {
|
|
16816
|
-
return !
|
|
16816
|
+
return !Qd() || parseInt(Bf) >= 114;
|
|
16817
16817
|
};
|
|
16818
16818
|
function ee(t, i, e, o) {
|
|
16819
16819
|
this.x = t ?? 0, this.y = i ?? 0, this.z = e ?? 0, this.w = o ?? 0;
|
|
@@ -16847,27 +16847,27 @@ ee.fromRotationMatrix = function(t, i) {
|
|
|
16847
16847
|
return A(i) ? (i.x = o, i.y = s, i.z = n, i.w = r, i) : new ee(o, s, n, r);
|
|
16848
16848
|
};
|
|
16849
16849
|
const gm = new ee();
|
|
16850
|
-
let mm = new ee(),
|
|
16850
|
+
let mm = new ee(), Eu = new ee(), vm = new ee();
|
|
16851
16851
|
ee.fromHeadingPitchRoll = function(t, i) {
|
|
16852
16852
|
return x.typeOf.object("headingPitchRoll", t), vm = ee.fromAxisAngle(
|
|
16853
16853
|
I.UNIT_X,
|
|
16854
16854
|
t.roll,
|
|
16855
16855
|
gm
|
|
16856
|
-
),
|
|
16856
|
+
), Eu = ee.fromAxisAngle(
|
|
16857
16857
|
I.UNIT_Y,
|
|
16858
16858
|
-t.pitch,
|
|
16859
16859
|
i
|
|
16860
16860
|
), i = ee.multiply(
|
|
16861
|
-
|
|
16861
|
+
Eu,
|
|
16862
16862
|
vm,
|
|
16863
|
-
|
|
16863
|
+
Eu
|
|
16864
16864
|
), mm = ee.fromAxisAngle(
|
|
16865
16865
|
I.UNIT_Z,
|
|
16866
16866
|
-t.heading,
|
|
16867
16867
|
gm
|
|
16868
16868
|
), ee.multiply(mm, i, i);
|
|
16869
16869
|
};
|
|
16870
|
-
const Lc = new I(),
|
|
16870
|
+
const Lc = new I(), Au = new I(), Ni = new ee(), ym = new ee(), Oc = new ee();
|
|
16871
16871
|
ee.packedLength = 4;
|
|
16872
16872
|
ee.pack = function(t, i, e) {
|
|
16873
16873
|
return x.typeOf.object("value", t), x.defined("array", i), e = e ?? 0, i[e++] = t.x, i[e++] = t.y, i[e++] = t.z, i[e] = t.w, i;
|
|
@@ -16907,10 +16907,10 @@ ee.convertPackedArrayForInterpolation = function(t, i, e, o) {
|
|
|
16907
16907
|
}
|
|
16908
16908
|
};
|
|
16909
16909
|
ee.unpackInterpolationResult = function(t, i, e, o, s) {
|
|
16910
|
-
A(s) || (s = new ee()), I.fromArray(t, 0,
|
|
16911
|
-
const n = I.magnitude(
|
|
16910
|
+
A(s) || (s = new ee()), I.fromArray(t, 0, Au);
|
|
16911
|
+
const n = I.magnitude(Au);
|
|
16912
16912
|
return ee.unpack(i, o * 4, ym), n === 0 ? ee.clone(ee.IDENTITY, Ni) : ee.fromAxisAngle(
|
|
16913
|
-
|
|
16913
|
+
Au,
|
|
16914
16914
|
n,
|
|
16915
16915
|
Ni
|
|
16916
16916
|
), ee.multiply(
|
|
@@ -16981,26 +16981,26 @@ ee.computeAxis = function(t, i) {
|
|
|
16981
16981
|
ee.computeAngle = function(t) {
|
|
16982
16982
|
return x.typeOf.object("quaternion", t), Math.abs(t.w - 1) < k.EPSILON6 ? 0 : 2 * Math.acos(t.w);
|
|
16983
16983
|
};
|
|
16984
|
-
let
|
|
16984
|
+
let Mu = new ee();
|
|
16985
16985
|
ee.lerp = function(t, i, e, o) {
|
|
16986
|
-
return x.typeOf.object("start", t), x.typeOf.object("end", i), x.typeOf.number("t", e), x.typeOf.object("result", o),
|
|
16986
|
+
return x.typeOf.object("start", t), x.typeOf.object("end", i), x.typeOf.number("t", e), x.typeOf.object("result", o), Mu = ee.multiplyByScalar(i, e, Mu), o = ee.multiplyByScalar(t, 1 - e, o), ee.add(Mu, o, o);
|
|
16987
16987
|
};
|
|
16988
|
-
let wm = new ee(),
|
|
16988
|
+
let wm = new ee(), Iu = new ee(), Ru = new ee();
|
|
16989
16989
|
ee.slerp = function(t, i, e, o) {
|
|
16990
16990
|
x.typeOf.object("start", t), x.typeOf.object("end", i), x.typeOf.number("t", e), x.typeOf.object("result", o);
|
|
16991
16991
|
let s = ee.dot(t, i), n = i;
|
|
16992
16992
|
if (s < 0 && (s = -s, n = wm = ee.negate(i, wm)), 1 - s < k.EPSILON6)
|
|
16993
16993
|
return ee.lerp(t, n, e, o);
|
|
16994
16994
|
const r = Math.acos(s);
|
|
16995
|
-
return
|
|
16995
|
+
return Iu = ee.multiplyByScalar(
|
|
16996
16996
|
t,
|
|
16997
16997
|
Math.sin((1 - e) * r),
|
|
16998
|
-
|
|
16999
|
-
),
|
|
16998
|
+
Iu
|
|
16999
|
+
), Ru = ee.multiplyByScalar(
|
|
17000
17000
|
n,
|
|
17001
17001
|
Math.sin(e * r),
|
|
17002
|
-
|
|
17003
|
-
), o = ee.add(
|
|
17002
|
+
Ru
|
|
17003
|
+
), o = ee.add(Iu, Ru, o), ee.multiplyByScalar(o, 1 / Math.sin(r), o);
|
|
17004
17004
|
};
|
|
17005
17005
|
ee.log = function(t, i) {
|
|
17006
17006
|
x.typeOf.object("quaternion", t), x.typeOf.object("result", i);
|
|
@@ -17029,20 +17029,20 @@ ee.squad = function(t, i, e, o, s, n) {
|
|
|
17029
17029
|
const r = ee.slerp(t, i, s, Pa), a = ee.slerp(e, o, s, Kn);
|
|
17030
17030
|
return ee.slerp(r, a, 2 * s * (1 - s), n);
|
|
17031
17031
|
};
|
|
17032
|
-
const YE = new ee(), RC = 1.9011074535173003,
|
|
17032
|
+
const YE = new ee(), RC = 1.9011074535173003, pd = It.supportsTypedArrays() ? new Float32Array(8) : [], fd = It.supportsTypedArrays() ? new Float32Array(8) : [], vo = It.supportsTypedArrays() ? new Float32Array(8) : [], yo = It.supportsTypedArrays() ? new Float32Array(8) : [];
|
|
17033
17033
|
for (let t = 0; t < 7; ++t) {
|
|
17034
17034
|
const i = t + 1, e = 2 * i + 1;
|
|
17035
|
-
|
|
17035
|
+
pd[t] = 1 / (i * e), fd[t] = i / e;
|
|
17036
17036
|
}
|
|
17037
|
-
|
|
17038
|
-
|
|
17037
|
+
pd[7] = RC / (8 * 17);
|
|
17038
|
+
fd[7] = RC * 8 / 17;
|
|
17039
17039
|
ee.fastSlerp = function(t, i, e, o) {
|
|
17040
17040
|
x.typeOf.object("start", t), x.typeOf.object("end", i), x.typeOf.number("t", e), x.typeOf.object("result", o);
|
|
17041
17041
|
let s = ee.dot(t, i), n;
|
|
17042
17042
|
s >= 0 ? n = 1 : (n = -1, s = -s);
|
|
17043
17043
|
const r = s - 1, a = 1 - e, l = e * e, c = a * a;
|
|
17044
17044
|
for (let f = 7; f >= 0; --f)
|
|
17045
|
-
vo[f] = (
|
|
17045
|
+
vo[f] = (pd[f] * l - fd[f]) * r, yo[f] = (pd[f] * c - fd[f]) * r;
|
|
17046
17046
|
const d = n * e * (1 + vo[0] * (1 + vo[1] * (1 + vo[2] * (1 + vo[3] * (1 + vo[4] * (1 + vo[5] * (1 + vo[6] * (1 + vo[7])))))))), u = a * (1 + yo[0] * (1 + yo[1] * (1 + yo[2] * (1 + yo[3] * (1 + yo[4] * (1 + yo[5] * (1 + yo[6] * (1 + yo[7])))))))), p = ee.multiplyByScalar(
|
|
17047
17047
|
t,
|
|
17048
17048
|
u,
|
|
@@ -17075,7 +17075,7 @@ ee.prototype.equalsEpsilon = function(t, i) {
|
|
|
17075
17075
|
ee.prototype.toString = function() {
|
|
17076
17076
|
return `(${this.x}, ${this.y}, ${this.z}, ${this.w})`;
|
|
17077
17077
|
};
|
|
17078
|
-
const Ce = {},
|
|
17078
|
+
const Ce = {}, Du = {
|
|
17079
17079
|
up: {
|
|
17080
17080
|
south: "east",
|
|
17081
17081
|
north: "west",
|
|
@@ -17119,7 +17119,7 @@ const Ce = {}, Ru = {
|
|
|
17119
17119
|
south: [1, 0, 0],
|
|
17120
17120
|
west: [0, -1, 0],
|
|
17121
17121
|
down: [0, 0, -1]
|
|
17122
|
-
},
|
|
17122
|
+
}, ku = {}, ii = {
|
|
17123
17123
|
east: new I(),
|
|
17124
17124
|
north: new I(),
|
|
17125
17125
|
up: new I(),
|
|
@@ -17129,14 +17129,14 @@ const Ce = {}, Ru = {
|
|
|
17129
17129
|
};
|
|
17130
17130
|
let Yo = new I(), Zo = new I(), Qo = new I();
|
|
17131
17131
|
Ce.localFrameToFixedFrameGenerator = function(t, i) {
|
|
17132
|
-
if (!
|
|
17132
|
+
if (!Du.hasOwnProperty(t) || !Du[t].hasOwnProperty(i))
|
|
17133
17133
|
throw new H(
|
|
17134
17134
|
"firstAxis and secondAxis must be east, north, up, west, south or down."
|
|
17135
17135
|
);
|
|
17136
|
-
const e =
|
|
17136
|
+
const e = Du[t][i];
|
|
17137
17137
|
let o;
|
|
17138
17138
|
const s = t + i;
|
|
17139
|
-
return A(
|
|
17139
|
+
return A(ku[s]) ? o = ku[s] : (o = function(n, r, a) {
|
|
17140
17140
|
if (!A(n))
|
|
17141
17141
|
throw new H("origin is required.");
|
|
17142
17142
|
if (isNaN(n.x) || isNaN(n.y) || isNaN(n.z))
|
|
@@ -17200,7 +17200,7 @@ Ce.localFrameToFixedFrameGenerator = function(t, i) {
|
|
|
17200
17200
|
), Yo = ii[t], Zo = ii[i], Qo = ii[e];
|
|
17201
17201
|
}
|
|
17202
17202
|
return a[0] = Yo.x, a[1] = Yo.y, a[2] = Yo.z, a[3] = 0, a[4] = Zo.x, a[5] = Zo.y, a[6] = Zo.z, a[7] = 0, a[8] = Qo.x, a[9] = Qo.y, a[10] = Qo.z, a[11] = 0, a[12] = n.x, a[13] = n.y, a[14] = n.z, a[15] = 1, a;
|
|
17203
|
-
},
|
|
17203
|
+
}, ku[s] = o), o;
|
|
17204
17204
|
};
|
|
17205
17205
|
Ce.eastNorthUpToFixedFrame = Ce.localFrameToFixedFrameGenerator(
|
|
17206
17206
|
"east",
|
|
@@ -17298,9 +17298,9 @@ Ce.computeTemeToPseudoFixedMatrix = function(t, i) {
|
|
|
17298
17298
|
};
|
|
17299
17299
|
Ce.iau2006XysData = new Lf();
|
|
17300
17300
|
Ce.earthOrientationParameters = zh.NONE;
|
|
17301
|
-
const
|
|
17301
|
+
const Tp = 32.184, uA = 2451545;
|
|
17302
17302
|
Ce.preloadIcrfFixed = function(t) {
|
|
17303
|
-
const i = t.start.dayNumber, e = t.start.secondsOfDay +
|
|
17303
|
+
const i = t.start.dayNumber, e = t.start.secondsOfDay + Tp, o = t.stop.dayNumber, s = t.stop.secondsOfDay + Tp;
|
|
17304
17304
|
return Ce.iau2006XysData.preload(
|
|
17305
17305
|
i,
|
|
17306
17306
|
e,
|
|
@@ -17337,7 +17337,7 @@ const vA = new PC(0, 0, 0), yA = new Af(
|
|
|
17337
17337
|
0,
|
|
17338
17338
|
0,
|
|
17339
17339
|
0
|
|
17340
|
-
),
|
|
17340
|
+
), Fu = new X(), zu = new X();
|
|
17341
17341
|
Ce.computeFixedToIcrfMatrix = function(t, i) {
|
|
17342
17342
|
if (!A(t))
|
|
17343
17343
|
throw new H("date is required.");
|
|
@@ -17345,22 +17345,22 @@ Ce.computeFixedToIcrfMatrix = function(t, i) {
|
|
|
17345
17345
|
const e = Ce.earthOrientationParameters.compute(t, yA);
|
|
17346
17346
|
if (!A(e))
|
|
17347
17347
|
return;
|
|
17348
|
-
const o = t.dayNumber, s = t.secondsOfDay +
|
|
17348
|
+
const o = t.dayNumber, s = t.secondsOfDay + Tp, n = Ce.iau2006XysData.computeXysRadians(
|
|
17349
17349
|
o,
|
|
17350
17350
|
s,
|
|
17351
17351
|
vA
|
|
17352
17352
|
);
|
|
17353
17353
|
if (!A(n))
|
|
17354
17354
|
return;
|
|
17355
|
-
const r = n.x + e.xPoleOffset, a = n.y + e.yPoleOffset, l = 1 / (1 + Math.sqrt(1 - r * r - a * a)), c =
|
|
17355
|
+
const r = n.x + e.xPoleOffset, a = n.y + e.yPoleOffset, l = 1 / (1 + Math.sqrt(1 - r * r - a * a)), c = Fu;
|
|
17356
17356
|
c[0] = 1 - l * r * r, c[3] = -l * r * a, c[6] = r, c[1] = -l * r * a, c[4] = 1 - l * a * a, c[7] = a, c[2] = -r, c[5] = -a, c[8] = 1 - l * (r * r + a * a);
|
|
17357
|
-
const d = X.fromRotationZ(-n.s,
|
|
17357
|
+
const d = X.fromRotationZ(-n.s, zu), u = X.multiply(c, d, Fu), p = t.dayNumber, f = t.secondsOfDay - ie.computeTaiMinusUtc(t) + e.ut1MinusUtc, g = p - 2451545, v = f / Ke.SECONDS_PER_DAY;
|
|
17358
17358
|
let _ = 0.779057273264 + v + 0.00273781191135448 * (g + v);
|
|
17359
17359
|
_ = _ % 1 * k.TWO_PI;
|
|
17360
|
-
const P = X.fromRotationZ(_,
|
|
17360
|
+
const P = X.fromRotationZ(_, zu), w = X.multiply(u, P, Fu), S = Math.cos(e.xPoleWander), T = Math.cos(e.yPoleWander), E = Math.sin(e.xPoleWander), D = Math.sin(e.yPoleWander);
|
|
17361
17361
|
let B = o - uA + s / Ke.SECONDS_PER_DAY;
|
|
17362
17362
|
B /= 36525;
|
|
17363
|
-
const V = -47e-6 * B * k.RADIANS_PER_DEGREE / 3600, U = Math.cos(V), W = Math.sin(V), z =
|
|
17363
|
+
const V = -47e-6 * B * k.RADIANS_PER_DEGREE / 3600, U = Math.cos(V), W = Math.sin(V), z = zu;
|
|
17364
17364
|
return z[0] = S * U, z[1] = S * W, z[2] = E, z[3] = -T * W + D * E * U, z[4] = T * U + D * E * W, z[5] = -D * S, z[6] = -D * W - T * E * U, z[7] = D * U - T * E * W, z[8] = T * S, X.multiply(w, z, i);
|
|
17365
17365
|
};
|
|
17366
17366
|
const wA = new se();
|
|
@@ -17419,7 +17419,7 @@ const DC = new Y(
|
|
|
17419
17419
|
0,
|
|
17420
17420
|
0,
|
|
17421
17421
|
1
|
|
17422
|
-
), kC = new xe(),
|
|
17422
|
+
), kC = new xe(), Ep = new I(), xA = new I(), SA = new X(), Ap = new Y(), FC = new Y();
|
|
17423
17423
|
Ce.basisTo2D = function(t, i, e) {
|
|
17424
17424
|
if (!A(t))
|
|
17425
17425
|
throw new H("projection is required.");
|
|
@@ -17432,7 +17432,7 @@ Ce.basisTo2D = function(t, i, e) {
|
|
|
17432
17432
|
if (I.equals(o, I.ZERO))
|
|
17433
17433
|
n = I.clone(
|
|
17434
17434
|
I.ZERO,
|
|
17435
|
-
|
|
17435
|
+
Ep
|
|
17436
17436
|
);
|
|
17437
17437
|
else {
|
|
17438
17438
|
const d = s.cartesianToCartographic(
|
|
@@ -17441,7 +17441,7 @@ Ce.basisTo2D = function(t, i, e) {
|
|
|
17441
17441
|
);
|
|
17442
17442
|
n = t.project(
|
|
17443
17443
|
d,
|
|
17444
|
-
|
|
17444
|
+
Ep
|
|
17445
17445
|
), I.fromElements(
|
|
17446
17446
|
n.z,
|
|
17447
17447
|
n.x,
|
|
@@ -17452,7 +17452,7 @@ Ce.basisTo2D = function(t, i, e) {
|
|
|
17452
17452
|
const r = Ce.eastNorthUpToFixedFrame(
|
|
17453
17453
|
o,
|
|
17454
17454
|
s,
|
|
17455
|
-
|
|
17455
|
+
Ap
|
|
17456
17456
|
), a = Y.inverseTransformation(r, FC), l = Y.getMatrix3(i, SA), c = Y.multiplyByMatrix3(a, l, e);
|
|
17457
17457
|
return Y.multiply(DC, c, e), Y.setTranslation(e, n, e), e;
|
|
17458
17458
|
};
|
|
@@ -17466,13 +17466,13 @@ Ce.ellipsoidTo2DModelMatrix = function(t, i, e) {
|
|
|
17466
17466
|
const o = t.ellipsoid, s = Ce.eastNorthUpToFixedFrame(
|
|
17467
17467
|
i,
|
|
17468
17468
|
o,
|
|
17469
|
-
|
|
17469
|
+
Ap
|
|
17470
17470
|
), n = Y.inverseTransformation(s, FC), r = o.cartesianToCartographic(
|
|
17471
17471
|
i,
|
|
17472
17472
|
kC
|
|
17473
17473
|
), a = t.project(
|
|
17474
17474
|
r,
|
|
17475
|
-
|
|
17475
|
+
Ep
|
|
17476
17476
|
);
|
|
17477
17477
|
I.fromElements(
|
|
17478
17478
|
a.z,
|
|
@@ -17482,7 +17482,7 @@ Ce.ellipsoidTo2DModelMatrix = function(t, i, e) {
|
|
|
17482
17482
|
);
|
|
17483
17483
|
const l = Y.fromTranslation(
|
|
17484
17484
|
a,
|
|
17485
|
-
|
|
17485
|
+
Ap
|
|
17486
17486
|
);
|
|
17487
17487
|
return Y.multiply(DC, n, e), Y.multiply(l, e, e), e;
|
|
17488
17488
|
};
|
|
@@ -17557,9 +17557,9 @@ pe.fromCartesianArray = function(t, i, e) {
|
|
|
17557
17557
|
}
|
|
17558
17558
|
return s - o > r - n && (o = n, s = r, s > k.PI && (s = s - k.TWO_PI), o > k.PI && (o = o - k.TWO_PI)), A(e) ? (e.west = o, e.south = a, e.east = s, e.north = l, e) : new pe(o, a, s, l);
|
|
17559
17559
|
};
|
|
17560
|
-
const bA = new I(), TA = new I(), EA = new I(), AA = new I(), MA = new I(),
|
|
17561
|
-
for (let t = 0; t <
|
|
17562
|
-
|
|
17560
|
+
const bA = new I(), TA = new I(), EA = new I(), AA = new I(), MA = new I(), Mp = new Array(5);
|
|
17561
|
+
for (let t = 0; t < Mp.length; ++t)
|
|
17562
|
+
Mp[t] = new I();
|
|
17563
17563
|
pe.fromBoundingSphere = function(t, i, e) {
|
|
17564
17564
|
x.typeOf.object("boundingSphere", t);
|
|
17565
17565
|
const o = t.center, s = t.radius;
|
|
@@ -17581,7 +17581,7 @@ pe.fromBoundingSphere = function(t, i, e) {
|
|
|
17581
17581
|
EA
|
|
17582
17582
|
);
|
|
17583
17583
|
I.normalize(a, a), I.multiplyByScalar(a, s, a), I.multiplyByScalar(r, s, r);
|
|
17584
|
-
const l = I.negate(a, MA), c = I.negate(r, AA), d =
|
|
17584
|
+
const l = I.negate(a, MA), c = I.negate(r, AA), d = Mp;
|
|
17585
17585
|
let u = d[0];
|
|
17586
17586
|
return I.add(o, a, u), u = d[1], I.add(o, c, u), u = d[2], I.add(o, l, u), u = d[3], I.add(o, r, u), d[4] = o, pe.fromCartesianArray(d, i, e);
|
|
17587
17587
|
};
|
|
@@ -17796,8 +17796,8 @@ function zC() {
|
|
|
17796
17796
|
}
|
|
17797
17797
|
return Pt._canTransferArrayBuffer;
|
|
17798
17798
|
}
|
|
17799
|
-
const
|
|
17800
|
-
function
|
|
17799
|
+
const Ip = new Zr();
|
|
17800
|
+
function Lu(t) {
|
|
17801
17801
|
let i;
|
|
17802
17802
|
try {
|
|
17803
17803
|
i = new Blob([t], {
|
|
@@ -17812,24 +17812,24 @@ function zu(t) {
|
|
|
17812
17812
|
function Vf(t) {
|
|
17813
17813
|
const i = new Fo(t), e = i.scheme().length !== 0 && i.fragment().length === 0, o = t.replace(/\.js$/, ""), s = {};
|
|
17814
17814
|
let n, r;
|
|
17815
|
-
if (
|
|
17815
|
+
if (wp(t))
|
|
17816
17816
|
r = t;
|
|
17817
17817
|
else if (!e) {
|
|
17818
17818
|
const a = zi(
|
|
17819
17819
|
`${Pt._workerModulePrefix}/${o}.js`
|
|
17820
17820
|
);
|
|
17821
|
-
|
|
17821
|
+
wp(a) && (r = a);
|
|
17822
17822
|
}
|
|
17823
17823
|
if (r) {
|
|
17824
17824
|
const a = `import "${r}";`;
|
|
17825
|
-
return n =
|
|
17825
|
+
return n = Lu(a), s.type = "module", new Worker(n, s);
|
|
17826
17826
|
}
|
|
17827
17827
|
if (!e && typeof CESIUM_WORKERS < "u") {
|
|
17828
17828
|
const a = `
|
|
17829
|
-
importScripts("${
|
|
17829
|
+
importScripts("${Lu(CESIUM_WORKERS)}");
|
|
17830
17830
|
CesiumWorkers["${o}"]();
|
|
17831
17831
|
`;
|
|
17832
|
-
return n =
|
|
17832
|
+
return n = Lu(a), new Worker(n, s);
|
|
17833
17833
|
}
|
|
17834
17834
|
if (n = t, e || (n = zi(
|
|
17835
17835
|
`${Pt._workerModulePrefix + o}.js`
|
|
@@ -17866,9 +17866,9 @@ const FA = (t, i, e, o) => {
|
|
|
17866
17866
|
if (n.id === i) {
|
|
17867
17867
|
if (A(n.error)) {
|
|
17868
17868
|
let r = n.error;
|
|
17869
|
-
r.name === "RuntimeError" ? (r = new At(n.error.message), r.stack = n.error.stack) : r.name === "DeveloperError" ? (r = new H(n.error.message), r.stack = n.error.stack) : r.name === "Error" && (r = new Error(n.error.message), r.stack = n.error.stack),
|
|
17869
|
+
r.name === "RuntimeError" ? (r = new At(n.error.message), r.stack = n.error.stack) : r.name === "DeveloperError" ? (r = new H(n.error.message), r.stack = n.error.stack) : r.name === "Error" && (r = new Error(n.error.message), r.stack = n.error.stack), Ip.raiseEvent(r), o(r);
|
|
17870
17870
|
} else
|
|
17871
|
-
|
|
17871
|
+
Ip.raiseEvent(), e(n.result);
|
|
17872
17872
|
t.removeEventListener("message", s);
|
|
17873
17873
|
}
|
|
17874
17874
|
};
|
|
@@ -17938,7 +17938,7 @@ Pt.prototype.isDestroyed = function() {
|
|
|
17938
17938
|
Pt.prototype.destroy = function() {
|
|
17939
17939
|
return A(this._worker) && this._worker.terminate(), DA(this);
|
|
17940
17940
|
};
|
|
17941
|
-
Pt.taskCompletedEvent =
|
|
17941
|
+
Pt.taskCompletedEvent = Ip;
|
|
17942
17942
|
Pt._defaultWorkerModulePrefix = "Workers/";
|
|
17943
17943
|
Pt._workerModulePrefix = Pt._defaultWorkerModulePrefix;
|
|
17944
17944
|
Pt._canTransferArrayBuffer = void 0;
|
|
@@ -18235,20 +18235,20 @@ Kr.loadImage = function(t, i) {
|
|
|
18235
18235
|
flipY: !0
|
|
18236
18236
|
});
|
|
18237
18237
|
};
|
|
18238
|
-
var
|
|
18239
|
-
var o = +o, s = +s, n = o - 65e-4, r = s - 6e-3, a = Math.sqrt(n * n + r * r) - 2e-5 * Math.sin(r *
|
|
18238
|
+
var gd = 3.141592653589793 * 3e3 / 180, xt = 3.141592653589793, md = 6378245, vd = 0.006693421622965943, _m = function(o, s) {
|
|
18239
|
+
var o = +o, s = +s, n = o - 65e-4, r = s - 6e-3, a = Math.sqrt(n * n + r * r) - 2e-5 * Math.sin(r * gd), l = Math.atan2(r, n) - 3e-6 * Math.cos(n * gd), c = a * Math.cos(l), d = a * Math.sin(l);
|
|
18240
18240
|
return [c, d];
|
|
18241
18241
|
}, Pm = function(s, o) {
|
|
18242
|
-
var o = +o, s = +s, n = Math.sqrt(s * s + o * o) + 2e-5 * Math.sin(o *
|
|
18242
|
+
var o = +o, s = +s, n = Math.sqrt(s * s + o * o) + 2e-5 * Math.sin(o * gd), r = Math.atan2(o, s) + 3e-6 * Math.cos(s * gd), a = n * Math.cos(r) + 65e-4, l = n * Math.sin(r) + 6e-3;
|
|
18243
18243
|
return [a, l];
|
|
18244
18244
|
}, Nf = function(s, o) {
|
|
18245
18245
|
var o = +o, s = +s;
|
|
18246
18246
|
if (NC(s, o))
|
|
18247
18247
|
return [s, o];
|
|
18248
18248
|
var n = BC(s - 105, o - 35), r = VC(s - 105, o - 35), a = o / 180 * xt, l = Math.sin(a);
|
|
18249
|
-
l = 1 -
|
|
18249
|
+
l = 1 - vd * l * l;
|
|
18250
18250
|
var c = Math.sqrt(l);
|
|
18251
|
-
n = n * 180 / (
|
|
18251
|
+
n = n * 180 / (md * (1 - vd) / (l * c) * xt), r = r * 180 / (md / c * Math.cos(a) * xt);
|
|
18252
18252
|
var d = o + n, u = s + r;
|
|
18253
18253
|
return [u, d];
|
|
18254
18254
|
}, Uf = function(s, o) {
|
|
@@ -18256,9 +18256,9 @@ var fd = 3.141592653589793 * 3e3 / 180, xt = 3.141592653589793, gd = 6378245, md
|
|
|
18256
18256
|
if (NC(s, o))
|
|
18257
18257
|
return [s, o];
|
|
18258
18258
|
var n = BC(s - 105, o - 35), r = VC(s - 105, o - 35), a = o / 180 * xt, l = Math.sin(a);
|
|
18259
|
-
l = 1 -
|
|
18259
|
+
l = 1 - vd * l * l;
|
|
18260
18260
|
var c = Math.sqrt(l);
|
|
18261
|
-
n = n * 180 / (
|
|
18261
|
+
n = n * 180 / (md * (1 - vd) / (l * c) * xt), r = r * 180 / (md / c * Math.cos(a) * xt);
|
|
18262
18262
|
var d = o + n, u = s + r;
|
|
18263
18263
|
return [s * 2 - u, o * 2 - d];
|
|
18264
18264
|
}, BC = function(s, o) {
|
|
@@ -18454,14 +18454,14 @@ xs.prototype.positionToTileXY = function(t, i, e) {
|
|
|
18454
18454
|
}
|
|
18455
18455
|
}
|
|
18456
18456
|
};
|
|
18457
|
-
function
|
|
18457
|
+
function Kd(t) {
|
|
18458
18458
|
this._url = t.url || "http://online2.map.bdimg.com/onlinelabel/?qt=tile&styles=pl&x={x}&y={y}&z={z}", this._tileWidth = 256, this._tileHeight = 256, this._maximumLevel = 18, this._tilingScheme = new xs(t), this._credit = void 0, this._rectangle = this._tilingScheme.rectangle, this._ready = !0;
|
|
18459
18459
|
}
|
|
18460
18460
|
function NA(t, i, e, o) {
|
|
18461
18461
|
var s = t._url;
|
|
18462
18462
|
return s = s.replace("{x}", i).replace("{y}", -e).replace("{z}", o), s;
|
|
18463
18463
|
}
|
|
18464
|
-
Object.defineProperties(
|
|
18464
|
+
Object.defineProperties(Kd.prototype, {
|
|
18465
18465
|
url: {
|
|
18466
18466
|
get: function() {
|
|
18467
18467
|
return this._url;
|
|
@@ -18562,9 +18562,9 @@ Object.defineProperties(Qd.prototype, {
|
|
|
18562
18562
|
}
|
|
18563
18563
|
}
|
|
18564
18564
|
});
|
|
18565
|
-
|
|
18565
|
+
Kd.prototype.getTileCredits = function(t, i, e) {
|
|
18566
18566
|
};
|
|
18567
|
-
|
|
18567
|
+
Kd.prototype.requestImage = function(t, i, e) {
|
|
18568
18568
|
if (!this._ready)
|
|
18569
18569
|
throw new DeveloperError("requestImage must not be called before the imagery provider is ready.");
|
|
18570
18570
|
var o = NA(this, t, i, e);
|
|
@@ -18783,7 +18783,7 @@ class Wf {
|
|
|
18783
18783
|
return (r = this.requestImage(i, e, o, !1)) == null ? void 0 : r.then((a) => {
|
|
18784
18784
|
let l = this.mapboxRenderer.getVisibleSources(o);
|
|
18785
18785
|
l = this.sourceFilter ? this.sourceFilter(l) : l;
|
|
18786
|
-
const c = [], d =
|
|
18786
|
+
const c = [], d = ap.toDegrees(s), u = ap.toDegrees(n);
|
|
18787
18787
|
return l.forEach((p) => {
|
|
18788
18788
|
const f = new N1();
|
|
18789
18789
|
f.data = this.mapboxRenderer.queryRenderedFeatures({
|
|
@@ -19105,7 +19105,7 @@ async function qA(t, i) {
|
|
|
19105
19105
|
getFeatureInfoParameters: t.getFeatureInfoParameters
|
|
19106
19106
|
});
|
|
19107
19107
|
if (t.type === "BDImageryProvider")
|
|
19108
|
-
return new
|
|
19108
|
+
return new Kd({
|
|
19109
19109
|
url: t.url && Nc(t.url),
|
|
19110
19110
|
ellipsoid: t.ellipsoid && Re(t.ellipsoid),
|
|
19111
19111
|
wgs84: t.wgs84
|
|
@@ -19371,17 +19371,17 @@ m(hn, "defaults", {
|
|
|
19371
19371
|
});
|
|
19372
19372
|
})(hn || (hn = {}));
|
|
19373
19373
|
ae(hn.prototype, hn.createDefaultProps);
|
|
19374
|
-
const Hf = h.ApproximateTerrainHeights, QA = h.ComponentDatatype, Tt = h.defined, KA = h.destroyObject,
|
|
19375
|
-
let
|
|
19374
|
+
const Hf = h.ApproximateTerrainHeights, QA = h.ComponentDatatype, Tt = h.defined, KA = h.destroyObject, Rp = h.DeveloperError, JA = h.deprecationWarning, jA = h.GeometryInstance, eM = h.GeometryInstanceAttribute, tM = h.GroundPolylineGeometry, ca = h.DrawCommand, Sm = h.Pass, UC = h.RenderState, iM = h.ShaderProgram, da = h.ShaderSource;
|
|
19375
|
+
let Dp = h._shadersPolylineShadowVolumeFS;
|
|
19376
19376
|
const oM = h._shadersPolylineShadowVolumeMorphFS, sM = h._shadersPolylineShadowVolumeMorphVS;
|
|
19377
|
-
let
|
|
19378
|
-
const GC = h.BlendingState,
|
|
19379
|
-
|
|
19380
|
-
|
|
19377
|
+
let kp = h._shadersPolylineShadowVolumeVS;
|
|
19378
|
+
const GC = h.BlendingState, Fp = h.ClassificationType, nM = h.CullFace, WC = h.PolylineColorAppearance, rM = h.PolylineMaterialAppearance, Ko = h.Primitive, Jn = h.SceneMode, bm = h.StencilConstants, Tm = h.StencilFunction, Bn = h.StencilOperation;
|
|
19379
|
+
kp = kp.replace("width = width * max(0.0, czm_metersPerPixel(positionEC));", "");
|
|
19380
|
+
Dp = Dp.replace("float halfMaxWidth = v_startPlaneNormalEcAndHalfWidth.w * czm_metersPerPixel(eyeCoordinate);", "float halfMaxWidth = v_startPlaneNormalEcAndHalfWidth.w;");
|
|
19381
19381
|
function Lo(t) {
|
|
19382
19382
|
t = t ?? h.Frozen.EMPTY_OBJECT, this.geometryInstances = t.geometryInstances, this._hasPerInstanceColors = !0;
|
|
19383
19383
|
let i = t.appearance;
|
|
19384
|
-
Tt(i) || (i = new rM()), this.appearance = i, this.show = t.show ?? !0, this.classificationType = t.classificationType ??
|
|
19384
|
+
Tt(i) || (i = new rM()), this.appearance = i, this.show = t.show ?? !0, this.classificationType = t.classificationType ?? Fp.BOTH, this.debugShowBoundingVolume = t.debugShowBoundingVolume ?? !1, this._debugShowShadowVolume = t.debugShowShadowVolume ?? !1, this._primitiveOptions = {
|
|
19385
19385
|
geometryInstances: void 0,
|
|
19386
19386
|
appearance: void 0,
|
|
19387
19387
|
vertexCacheOptimize: !1,
|
|
@@ -19530,7 +19530,7 @@ Lo.initializeTerrainHeights = function() {
|
|
|
19530
19530
|
function aM(t, i, e) {
|
|
19531
19531
|
const o = i.context, s = t._primitive, n = s._attributeLocations;
|
|
19532
19532
|
let r = s._batchTable.getVertexShaderCallback()(
|
|
19533
|
-
|
|
19533
|
+
kp
|
|
19534
19534
|
);
|
|
19535
19535
|
r = Ko._appendShowToShader(s, r), r = Ko._appendDistanceDisplayConditionToShader(s, r), r = Ko._modifyShaderPosition(
|
|
19536
19536
|
t,
|
|
@@ -19549,7 +19549,7 @@ function aM(t, i, e) {
|
|
|
19549
19549
|
i.scene3DOnly
|
|
19550
19550
|
);
|
|
19551
19551
|
let l = s._batchTable.getVertexShaderCallback()(
|
|
19552
|
-
|
|
19552
|
+
Dp
|
|
19553
19553
|
);
|
|
19554
19554
|
const c = [
|
|
19555
19555
|
`GLOBE_MINIMUM_ALTITUDE ${i.mapProjection.ellipsoid.minimumRadius.toFixed(
|
|
@@ -19698,7 +19698,7 @@ function hM(t, i, e, o, s, n, r) {
|
|
|
19698
19698
|
Ko._updateBoundingVolumes(a, i, s);
|
|
19699
19699
|
let l;
|
|
19700
19700
|
i.mode === Jn.SCENE3D ? l = a._boundingSphereWC : i.mode === Jn.COLUMBUS_VIEW ? l = a._boundingSphereCV : i.mode === Jn.SCENE2D && Tt(a._boundingSphere2D) ? l = a._boundingSphere2D : Tt(a._boundingSphereMorph) && (l = a._boundingSphereMorph);
|
|
19701
|
-
const c = i.mode === Jn.MORPHING, d = t.classificationType, u = d !==
|
|
19701
|
+
const c = i.mode === Jn.MORPHING, d = t.classificationType, u = d !== Fp.CESIUM_3D_TILE, p = d !== Fp.TERRAIN && !c;
|
|
19702
19702
|
let f;
|
|
19703
19703
|
const g = i.passes;
|
|
19704
19704
|
if (g.render || g.pick && a.allowPicking) {
|
|
@@ -19730,7 +19730,7 @@ Lo.prototype.update = function(t) {
|
|
|
19730
19730
|
return;
|
|
19731
19731
|
if (!Hf.initialized) {
|
|
19732
19732
|
if (!this.asynchronous)
|
|
19733
|
-
throw new
|
|
19733
|
+
throw new Rp(
|
|
19734
19734
|
"For synchronous GroundPolylinePrimitives, you must call GroundPolylinePrimitives.initializeTerrainHeights() and wait for the returned promise to resolve."
|
|
19735
19735
|
);
|
|
19736
19736
|
Lo.initializeTerrainHeights();
|
|
@@ -19790,7 +19790,7 @@ Lo.prototype.update = function(t) {
|
|
|
19790
19790
|
}, this._primitive = new Ko(o);
|
|
19791
19791
|
}
|
|
19792
19792
|
if (this.appearance instanceof WC && !this._hasPerInstanceColors)
|
|
19793
|
-
throw new
|
|
19793
|
+
throw new Rp(
|
|
19794
19794
|
"All GeometryInstances must have color attributes to use PolylineColorAppearance with GroundPolylinePrimitive."
|
|
19795
19795
|
);
|
|
19796
19796
|
this._primitive.appearance = this.appearance, this._primitive.show = this.show, this._primitive.debugShowBoundingVolume = this.debugShowBoundingVolume, this._primitive.update(t), t.afterRender.push(() => {
|
|
@@ -19799,7 +19799,7 @@ Lo.prototype.update = function(t) {
|
|
|
19799
19799
|
};
|
|
19800
19800
|
Lo.prototype.getGeometryInstanceAttributes = function(t) {
|
|
19801
19801
|
if (!Tt(this._primitive))
|
|
19802
|
-
throw new
|
|
19802
|
+
throw new Rp(
|
|
19803
19803
|
"must call update before calling getGeometryInstanceAttributes"
|
|
19804
19804
|
);
|
|
19805
19805
|
return this._primitive.getGeometryInstanceAttributes(t);
|
|
@@ -19954,7 +19954,7 @@ class Lh extends L {
|
|
|
19954
19954
|
m(this, "_player");
|
|
19955
19955
|
m(this, "_flyToEvent", this.disposeVar(new q()));
|
|
19956
19956
|
m(this, "_currentDistance", this.disposeVar(G(0)));
|
|
19957
|
-
m(this, "_ratio", this.disposeVar(
|
|
19957
|
+
m(this, "_ratio", this.disposeVar(Vd.createPlayingRatio([this, "currentTime"], [this, "duration"])));
|
|
19958
19958
|
this._geoPath = this.disposeVar(new uw()), this._geoPolyline = this.disposeVar(new Ve(e)), this._geoCanvasPointPoi = this.disposeVar(new en(e)), this._player = this.disposeVar(new ic()), this._geoPolyline.show = !1, this.dispose(M([this._geoPolyline, "positions"], [this, "positions"])), this.dispose(C([this._geoPath, "currentTime"], [this, "currentDistance"])), this.dispose(C([this._geoPath, "leadTime"], [this, "leadTime"])), this.dispose(C([this._geoPath, "trailTime"], [this, "trailTime"])), this.dispose(C([this._geoPath, "show"], [this, "show"])), this.dispose(C([this._geoPath, "polylineShow"], [this, "polylineShow"])), this.dispose(C([this._geoPath, "currentPoiShow"], [this, "currentPoiShow"])), this.dispose(C([this._geoPath, "width"], [this, "width"])), this.dispose(C([this._geoPath, "ground"], [this, "ground"])), this.dispose(C([this._geoPath, "color"], [this, "color"])), this.dispose(C([this._geoPath, "hasDash"], [this, "hasDash"])), this.dispose(C([this._geoPath, "gapColor"], [this, "gapColor"])), this.dispose(C([this._geoPath, "dashLength"], [this, "dashLength"])), this.dispose(C([this._geoPath, "dashPattern"], [this, "dashPattern"])), this.dispose(C([this._geoPath, "hasArrow"], [this, "hasArrow"])), this.dispose(C([this._geoPath, "depthTest"], [this, "depthTest"])), this.dispose(C([this._geoPath, "arcType"], [this, "arcType"])), this.dispose(C([this._geoPath, "allowPicking"], [this, "allowPicking"]));
|
|
19959
19959
|
{
|
|
19960
19960
|
const o = () => {
|
|
@@ -20244,7 +20244,7 @@ class Kt extends Xi {
|
|
|
20244
20244
|
}
|
|
20245
20245
|
}
|
|
20246
20246
|
}
|
|
20247
|
-
class
|
|
20247
|
+
class Jd extends Me {
|
|
20248
20248
|
constructor(e, o) {
|
|
20249
20249
|
super(e, o);
|
|
20250
20250
|
m(this, "_lastHoverResult", this.disposeVar(G(void 0)));
|
|
@@ -20702,12 +20702,12 @@ function PM(t) {
|
|
|
20702
20702
|
});
|
|
20703
20703
|
});
|
|
20704
20704
|
}
|
|
20705
|
-
const
|
|
20705
|
+
const Fd = class Fd extends L {
|
|
20706
20706
|
constructor(i, e) {
|
|
20707
20707
|
super(), this._geoPolygonCanvas = i, this._geoPolygon = e;
|
|
20708
20708
|
{
|
|
20709
20709
|
const o = (r, a) => {
|
|
20710
|
-
const { canvas: l, canvasCtx: c, canvasWidth: d } = this._geoPolygonCanvas, { toMercatorPos: u } =
|
|
20710
|
+
const { canvas: l, canvasCtx: c, canvasWidth: d } = this._geoPolygonCanvas, { toMercatorPos: u } = Fd, p = u(r), f = u(a), g = f[0] - p[0], v = f[1] - p[1], _ = d > 8192 ? 8192 : d;
|
|
20711
20711
|
if (g <= 0) return;
|
|
20712
20712
|
const P = _ * v / g | 0;
|
|
20713
20713
|
if (P <= 0 || P > 8192) return;
|
|
@@ -20746,11 +20746,11 @@ const kd = class kd extends L {
|
|
|
20746
20746
|
}
|
|
20747
20747
|
}
|
|
20748
20748
|
};
|
|
20749
|
-
m(
|
|
20749
|
+
m(Fd, "toMercatorPos", function(i) {
|
|
20750
20750
|
const [e, o, s] = i;
|
|
20751
20751
|
return [e, o / Math.cos(o * Math.PI / 180), s];
|
|
20752
20752
|
});
|
|
20753
|
-
let
|
|
20753
|
+
let zp = Fd;
|
|
20754
20754
|
const Ia = class Ia extends L {
|
|
20755
20755
|
constructor(e, o) {
|
|
20756
20756
|
super();
|
|
@@ -20762,7 +20762,7 @@ const Ia = class Ia extends L {
|
|
|
20762
20762
|
m(this, "_canvasGeoInfo", this.disposeVar(Ge(void 0)));
|
|
20763
20763
|
this._geoPolygonWithId = this.disposeVar(new Di()), this.dispose(C([this._geoPolygonWithId, "id"], [this, "geoPolygonId"])), this.disposeVar(new he(this.geoPolygonWithId.sceneObjectChanged, () => {
|
|
20764
20764
|
const { sceneObject: s } = this.geoPolygonWithId;
|
|
20765
|
-
if (s && s instanceof
|
|
20765
|
+
if (s && s instanceof Nd)
|
|
20766
20766
|
return new Ia.PolygonCanvasResetting(this, s);
|
|
20767
20767
|
}));
|
|
20768
20768
|
}
|
|
@@ -20794,7 +20794,7 @@ const Ia = class Ia extends L {
|
|
|
20794
20794
|
return this._canvasGeoInfo.changed;
|
|
20795
20795
|
}
|
|
20796
20796
|
};
|
|
20797
|
-
m(Ia, "saveCanvasToClipboard", PM), m(Ia, "PolygonCanvasResetting",
|
|
20797
|
+
m(Ia, "saveCanvasToClipboard", PM), m(Ia, "PolygonCanvasResetting", zp);
|
|
20798
20798
|
let dn = Ia;
|
|
20799
20799
|
((t) => {
|
|
20800
20800
|
t.createDefaultProps = () => ({
|
|
@@ -21094,7 +21094,7 @@ class Bh extends L {
|
|
|
21094
21094
|
m(this, "_czmFlattendPlaneWithIdResetting");
|
|
21095
21095
|
o && (this._id.value = o);
|
|
21096
21096
|
{
|
|
21097
|
-
this._czmTexture = this.disposeVar(new Je(e, o)), this._polygon = this.disposeVar(new
|
|
21097
|
+
this._czmTexture = this.disposeVar(new Je(e, o)), this._polygon = this.disposeVar(new Nd(`${o}_polygon`)), e.add(this._polygon), this.ad(() => {
|
|
21098
21098
|
e.delete(this._polygon);
|
|
21099
21099
|
}), this.dispose(C([this._polygon, "allowPicking"], [this, "allowPicking"])), this.dispose(C([this._polygon, "points"], [this, "positions"])), this.dispose(C([this._polygon, "show"], [this, "show"])), this._polygonCanvas = this.disposeVar(new dn(e, o)), this._polygonCanvas.geoPolygonWithId.sceneObject = this._polygon;
|
|
21100
21100
|
const s = () => {
|
|
@@ -21256,7 +21256,7 @@ const Ra = class Ra extends Kt {
|
|
|
21256
21256
|
return n.actived ? s.flyInParam ? (super.flyIn(e, o), !0) : r != null && r.positions ? (ge(n, s, o, r.positions, e), !0) : !1 : !1;
|
|
21257
21257
|
}
|
|
21258
21258
|
};
|
|
21259
|
-
m(Ra, "type", Ra.register("ESCesiumViewer",
|
|
21259
|
+
m(Ra, "type", Ra.register("ESCesiumViewer", Nd.type, Ra));
|
|
21260
21260
|
let Li = Ra, EM = class extends L {
|
|
21261
21261
|
constructor(i, e) {
|
|
21262
21262
|
super(), this._czmESPolygonFlattenedPlane = i, this._eS3DTileset = e, this._eS3DTileset.flattenedPlaneEnabled = !0, this._czmESPolygonFlattenedPlane.polygonFlattenedPlane.czmFlattenedPlaneId = this._eS3DTileset.flattenedPlaneId, this.dispose(() => this._eS3DTileset.flattenedPlaneEnabled = !1);
|
|
@@ -21351,7 +21351,7 @@ class MM extends L {
|
|
|
21351
21351
|
const s = () => {
|
|
21352
21352
|
const r = h.Matrix4.inverseTransformation(i.clippingPlanesOriginMatrix, new h.Matrix4());
|
|
21353
21353
|
if (!i.clippingPlanes) {
|
|
21354
|
-
i.clippingPlanes =
|
|
21354
|
+
i.clippingPlanes = Hd(e.clippingPlanes ?? { enabled: !1 }, r);
|
|
21355
21355
|
return;
|
|
21356
21356
|
}
|
|
21357
21357
|
gf(i.clippingPlanes, e.clippingPlanes, r);
|
|
@@ -21379,7 +21379,7 @@ class IM extends L {
|
|
|
21379
21379
|
{
|
|
21380
21380
|
const n = () => {
|
|
21381
21381
|
if (!o.clippingPlanes) {
|
|
21382
|
-
o.clippingPlanes =
|
|
21382
|
+
o.clippingPlanes = Hd(s.clippingPlanes ?? { enabled: !1 });
|
|
21383
21383
|
return;
|
|
21384
21384
|
}
|
|
21385
21385
|
gf(o.clippingPlanes, s.clippingPlanes);
|
|
@@ -21591,7 +21591,7 @@ class OM extends L {
|
|
|
21591
21591
|
var _;
|
|
21592
21592
|
return (_ = n.viewer) == null ? void 0 : _.scene.postUpdate.addEventListener((P) => {
|
|
21593
21593
|
r._selectedTiles.length === c.length && c.every((w) => r._selectedTiles.includes(w)) || (c.splice(0, c.length, ...r._selectedTiles), r._selectedTiles.forEach((w) => {
|
|
21594
|
-
|
|
21594
|
+
nd(w.content._model, d);
|
|
21595
21595
|
}));
|
|
21596
21596
|
});
|
|
21597
21597
|
};
|
|
@@ -21600,7 +21600,7 @@ class OM extends L {
|
|
|
21600
21600
|
};
|
|
21601
21601
|
this.ad(g);
|
|
21602
21602
|
const v = (_, P) => {
|
|
21603
|
-
P == "default" ? _._contentState = h.Cesium3DTileContentState.UNLOADED : _.content && Reflect.has(_.content, "_model") && !
|
|
21603
|
+
P == "default" ? _._contentState = h.Cesium3DTileContentState.UNLOADED : _.content && Reflect.has(_.content, "_model") && !nd(_.content._model, P) && p && (p = !1), _.children && _.children.forEach((w) => {
|
|
21604
21604
|
v(w, P);
|
|
21605
21605
|
});
|
|
21606
21606
|
};
|
|
@@ -21751,7 +21751,7 @@ async function VM(t, i, e) {
|
|
|
21751
21751
|
customShader: e,
|
|
21752
21752
|
ellipsoid: Re(t.ellipsoid ?? ke.defaults.ellipsoid),
|
|
21753
21753
|
modelMatrix: t.modelMatrix && h.Matrix4.fromArray(t.modelMatrix),
|
|
21754
|
-
clippingPlanes: t.clippingPlanes &&
|
|
21754
|
+
clippingPlanes: t.clippingPlanes && Hd(t.clippingPlanes),
|
|
21755
21755
|
clippingPolygons: t.clippingPolygons && mf(t.clippingPolygons),
|
|
21756
21756
|
imageBasedLighting: t.imageBasedLighting && BM(t.imageBasedLighting),
|
|
21757
21757
|
splitDirection: h.SplitDirection[t.splitDirection ?? ke.defaults.splitDirection],
|
|
@@ -21842,7 +21842,7 @@ let GM = class extends L {
|
|
|
21842
21842
|
let a;
|
|
21843
21843
|
r instanceof oc && Mt(this, r, () => {
|
|
21844
21844
|
a = i.getEngineObject(r).czmPolygonClipping, a && s(a);
|
|
21845
|
-
}), r instanceof
|
|
21845
|
+
}), r instanceof Ud && Mt(this, r.excavate, () => {
|
|
21846
21846
|
a = i.getEngineObject(r.excavate).czmPolygonClipping, a && s(a);
|
|
21847
21847
|
});
|
|
21848
21848
|
};
|
|
@@ -21865,7 +21865,7 @@ let GM = class extends L {
|
|
|
21865
21865
|
const l = s[a], c = oe.getSceneObjById(l);
|
|
21866
21866
|
if (!c) return;
|
|
21867
21867
|
let d;
|
|
21868
|
-
if (c instanceof oc ? d = i.getEngineObject(c).czmPolygonClipping : c instanceof
|
|
21868
|
+
if (c instanceof oc ? d = i.getEngineObject(c).czmPolygonClipping : c instanceof Ud && (d = i.getEngineObject(c.excavate).czmPolygonClipping), !d) return;
|
|
21869
21869
|
d && d.positions && d.positions.length >= 3 && d.enabled && (r.polygons[a] = { positions: d.positions }, r.inverse = n ?? d.reverse);
|
|
21870
21870
|
}
|
|
21871
21871
|
o.clippingPolygons = r;
|
|
@@ -23970,7 +23970,7 @@ const Na = class Na extends Me {
|
|
|
23970
23970
|
};
|
|
23971
23971
|
m(Na, "type", Na.register("ESCesiumViewer", cP.type, Na));
|
|
23972
23972
|
let Nm = Na;
|
|
23973
|
-
const
|
|
23973
|
+
const Ou = {
|
|
23974
23974
|
depthTest: {
|
|
23975
23975
|
enabled: !0
|
|
23976
23976
|
},
|
|
@@ -24018,7 +24018,7 @@ const Lu = {
|
|
|
24018
24018
|
alpha += step(movingCircleD, d) * step(d, movingCircleD + .01);
|
|
24019
24019
|
out_FragColor = vec4(u_color.rgb, alpha);
|
|
24020
24020
|
}
|
|
24021
|
-
`, s.pass = "TRANSLUCENT", s.renderState =
|
|
24021
|
+
`, s.pass = "TRANSLUCENT", s.renderState = Ou, s.allowPickingDepth = !1;
|
|
24022
24022
|
const { cylinderCustomPrimitive: n } = this;
|
|
24023
24023
|
Wg(n, {
|
|
24024
24024
|
segments: 36,
|
|
@@ -24034,7 +24034,7 @@ const Lu = {
|
|
|
24034
24034
|
float alpha = pow(1.0 - v_st.t, powerRatio);
|
|
24035
24035
|
out_FragColor = vec4(u_color.rgb, alpha*u_color.a);
|
|
24036
24036
|
}
|
|
24037
|
-
`, n.pass = "TRANSLUCENT", n.renderState =
|
|
24037
|
+
`, n.pass = "TRANSLUCENT", n.renderState = Ou, n.allowPickingDepth = !1;
|
|
24038
24038
|
const { cylinderParticlesCustomPrimitive: r } = this;
|
|
24039
24039
|
Wg(r, {
|
|
24040
24040
|
segments: 36,
|
|
@@ -24056,7 +24056,7 @@ const Lu = {
|
|
|
24056
24056
|
out_FragColor = imageColor * u_color;
|
|
24057
24057
|
out_FragColor.a *= smoothstep(1., 0.8, v_st.t);
|
|
24058
24058
|
}
|
|
24059
|
-
`, r.pass = "TRANSLUCENT", r.renderState =
|
|
24059
|
+
`, r.pass = "TRANSLUCENT", r.renderState = Ou, r.allowPickingDepth = !1, this.dispose(C([s, "show"], [this, "show"])), this.dispose(C([n, "show"], [this, "show"])), this.dispose(C([r, "show"], [this, "show"])), this.dispose(C([s, "position"], [this, "position"])), this.dispose(C([n, "position"], [this, "position"])), this.dispose(C([r, "position"], [this, "position"])), this.dispose(C([s, "rotation"], [this, "rotation"])), this.dispose(C([n, "rotation"], [this, "rotation"])), this.dispose(C([r, "rotation"], [this, "rotation"])), this.dispose(C([s, "scale"], [this, "scale"])), this.dispose(C([n, "scale"], [this, "scale"])), this.dispose(C([r, "scale"], [this, "scale"]));
|
|
24060
24060
|
{
|
|
24061
24061
|
const a = { type: "image", uri: Ua.defaultParticlesImageUri }, l = () => {
|
|
24062
24062
|
s.uniformMap = { u_color: this.color ?? [1, 1, 0, 2] }, n.uniformMap = { u_color: this.color ?? [1, 1, 0, 2] }, r.uniformMap = { u_color: this.color ?? [1, 1, 0, 2], u_image: a };
|
|
@@ -24208,7 +24208,7 @@ m(fn, "defaults", {
|
|
|
24208
24208
|
});
|
|
24209
24209
|
})(fn || (fn = {}));
|
|
24210
24210
|
ae(fn.prototype, fn.createDefaultProps);
|
|
24211
|
-
class vI extends
|
|
24211
|
+
class vI extends Bd {
|
|
24212
24212
|
constructor(i, e) {
|
|
24213
24213
|
if (super(i), !e) throw new Error("!czmViewer");
|
|
24214
24214
|
const o = this.owner;
|
|
@@ -24659,12 +24659,12 @@ const $a = class $a extends qi {
|
|
|
24659
24659
|
m($a, "type", $a.register("ESCesiumViewer", uP.type, $a));
|
|
24660
24660
|
let Wm = $a;
|
|
24661
24661
|
async function _I(t, i) {
|
|
24662
|
-
const e =
|
|
24662
|
+
const e = hu(t + "index.bin"), o = hu(t + "vertex.bin"), s = [...new Array(i).keys()].map(
|
|
24663
24663
|
(u) => u.toString().padStart(6, "0")
|
|
24664
24664
|
).map(
|
|
24665
24665
|
(u) => `${t}bins/R2DC${u}.bin`
|
|
24666
24666
|
).map(
|
|
24667
|
-
(u) =>
|
|
24667
|
+
(u) => hu(u)
|
|
24668
24668
|
), n = await Promise.all([e, o, ...s]);
|
|
24669
24669
|
if (n.some((u) => u === void 0)) {
|
|
24670
24670
|
console.warn("有数据未能解析!");
|
|
@@ -24896,7 +24896,7 @@ const Bs = class Bs extends L {
|
|
|
24896
24896
|
// DECIMAL_DEGREE 度格式,dd.ddddd°
|
|
24897
24897
|
// DEGREES_DECIMAL_MINUTES 度分格式,dd°mm.mmm'
|
|
24898
24898
|
// SEXAGESIMAL_DEGREE 度分秒格式,dd°mm'ss"
|
|
24899
|
-
m(Bs, "defaultTextFunc_度格式", (e) => `${e.toFixed(5)}°`), m(Bs, "defaultTextFunc_度分格式", (e) => `${
|
|
24899
|
+
m(Bs, "defaultTextFunc_度格式", (e) => `${e.toFixed(5)}°`), m(Bs, "defaultTextFunc_度分格式", (e) => `${rd(e, !0)}`), m(Bs, "defaultTextFunc_度分秒格式", (e) => `${rd(e, !1)}`), m(Bs, "defaults", {
|
|
24900
24900
|
positions: []
|
|
24901
24901
|
});
|
|
24902
24902
|
let mn = Bs;
|
|
@@ -25344,7 +25344,7 @@ class Gh extends L {
|
|
|
25344
25344
|
m(this, "_player");
|
|
25345
25345
|
m(this, "_flyToEvent", this.disposeVar(new q()));
|
|
25346
25346
|
m(this, "_currentDistance", this.disposeVar(G(0)));
|
|
25347
|
-
m(this, "_ratio", this.disposeVar(
|
|
25347
|
+
m(this, "_ratio", this.disposeVar(Vd.createPlayingRatio([this, "currentTime"], [this, "duration"])));
|
|
25348
25348
|
this._geoPath = this.disposeVar(new uw()), this._geoPolyline = this.disposeVar(new Ve(e, o)), this._geoCanvasPointPoi = this.disposeVar(new en(e, o)), this._player = this.disposeVar(new ic()), this.dispose(M([this._geoPolyline, "positions"], [this, "positions"])), this.dispose(C([this._geoPolyline, "width"], [this, "width"])), this.dispose(C([this._geoPolyline, "ground"], [this, "ground"])), this.dispose(C([this._geoPolyline, "color"], [this, "color"])), this.dispose(C([this._geoPolyline, "hasDash"], [this, "hasDash"])), this.dispose(C([this._geoPolyline, "gapColor"], [this, "gapColor"])), this.dispose(C([this._geoPolyline, "dashLength"], [this, "dashLength"])), this.dispose(C([this._geoPolyline, "dashPattern"], [this, "dashPattern"])), this.dispose(C([this._geoPolyline, "hasArrow"], [this, "hasArrow"])), this.dispose(C([this._geoPolyline, "depthTest"], [this, "depthTest"])), this.dispose(C([this._geoPolyline, "arcType"], [this, "arcType"])), this.dispose(C([this._geoPolyline, "show"], [this, "show"])), this.dispose(C([this._geoPolyline, "show"], [this, "polylineShow"])), this.dispose(C([this._geoPolyline, "allowPicking"], [this, "allowPicking"])), this.dispose(C([this._geoPath, "currentTime"], [this, "currentDistance"])), this.dispose(C([this._geoPath, "leadTime"], [this, "leadTime"])), this.dispose(C([this._geoPath, "trailTime"], [this, "trailTime"])), this.dispose(C([this._geoPath, "show"], [this, "show"])), this.dispose(C([this._geoPath, "currentPoiShow"], [this, "currentPoiShow"]));
|
|
25349
25349
|
{
|
|
25350
25350
|
const s = () => {
|
|
@@ -25656,7 +25656,7 @@ class Wh extends L {
|
|
|
25656
25656
|
});
|
|
25657
25657
|
})(Wh || (Wh = {}));
|
|
25658
25658
|
ae(Wh.prototype, Wh.createDefaultProps);
|
|
25659
|
-
const bI = [["256", 256], ["512", 512], ["1024", 1024]], TI = [["LEFT", "LEFT"], ["NONE", "NONE"], ["RIGHT", "RIGHT"]], oi = class oi extends
|
|
25659
|
+
const bI = [["256", 256], ["512", 512], ["1024", 1024]], TI = [["LEFT", "LEFT"], ["NONE", "NONE"], ["RIGHT", "RIGHT"]], oi = class oi extends td {
|
|
25660
25660
|
constructor(e) {
|
|
25661
25661
|
super(e);
|
|
25662
25662
|
m(this, "_pickFeaturesEvent", this.dv(new q()));
|
|
@@ -25704,7 +25704,7 @@ const bI = [["256", 256], ["512", 512], ["1024", 1024]], TI = [["LEFT", "LEFT"],
|
|
|
25704
25704
|
}
|
|
25705
25705
|
};
|
|
25706
25706
|
m(oi, "createDefaultProps", () => ({
|
|
25707
|
-
...
|
|
25707
|
+
...td.createDefaultProps(),
|
|
25708
25708
|
// 属性配置
|
|
25709
25709
|
rectangle: Ge([-180, -90, 180, 90]),
|
|
25710
25710
|
url: Be(""),
|
|
@@ -25737,7 +25737,7 @@ m(oi, "createDefaultProps", () => ({
|
|
|
25737
25737
|
/** czm 伽马值 */
|
|
25738
25738
|
czmGamma: 1
|
|
25739
25739
|
})), m(oi, "type", oi.register("ESMVTLayer", oi, { chsName: "矢量瓦片图层", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "用于加载矢量瓦片图层。" }));
|
|
25740
|
-
let
|
|
25740
|
+
let Lp = oi;
|
|
25741
25741
|
const EI = (t) => {
|
|
25742
25742
|
const i = [
|
|
25743
25743
|
{ maxAlt: 25e7, level: 0 },
|
|
@@ -25795,7 +25795,7 @@ class II extends L {
|
|
|
25795
25795
|
}
|
|
25796
25796
|
}
|
|
25797
25797
|
}
|
|
25798
|
-
const sr = class sr extends
|
|
25798
|
+
const sr = class sr extends td {
|
|
25799
25799
|
constructor(e) {
|
|
25800
25800
|
super(e);
|
|
25801
25801
|
m(this, "_esImageryLayer", this.dv(new _h()));
|
|
@@ -25831,12 +25831,12 @@ const sr = class sr extends ed {
|
|
|
25831
25831
|
}
|
|
25832
25832
|
};
|
|
25833
25833
|
m(sr, "createDefaultProps", () => ({
|
|
25834
|
-
...
|
|
25834
|
+
...td.createDefaultProps(),
|
|
25835
25835
|
currentDate: "",
|
|
25836
25836
|
zIndex: 0,
|
|
25837
25837
|
rectangle: j([-180, -90, 180, 90])
|
|
25838
25838
|
})), m(sr, "type", sr.register("ESGeHistoryImagery", sr, { chsName: "谷歌历史影像", tags: ["ESObjects", "_ES_Impl_UE"], description: "ESGeHistoryImagery" }));
|
|
25839
|
-
let
|
|
25839
|
+
let Op = sr;
|
|
25840
25840
|
const jC = `async (dataSource, viewer) => {
|
|
25841
25841
|
viewer.clock.shouldAnimate = false;
|
|
25842
25842
|
const rider = dataSource.entities.getById("tour");
|
|
@@ -25897,7 +25897,7 @@ ${zI}
|
|
|
25897
25897
|
\`\`\`
|
|
25898
25898
|
${DI}
|
|
25899
25899
|
\`\`\`
|
|
25900
|
-
`,
|
|
25900
|
+
`, Bu = Date.now(), Wt = class Wt extends oe {
|
|
25901
25901
|
constructor(e) {
|
|
25902
25902
|
super(e);
|
|
25903
25903
|
m(this, "_flyToEvent", this.disposeVar(new q()));
|
|
@@ -25927,9 +25927,9 @@ ${DI}
|
|
|
25927
25927
|
new ue([this, "autoResetClock"], "自动设置时钟", Wt.defaults.autoResetClock),
|
|
25928
25928
|
new ue([this, "clockEnabled"], "启用", Wt.defaults.clockEnabled),
|
|
25929
25929
|
new ue([this, "shouldAnimate"], "是否启用动画", Wt.defaults.shouldAnimate),
|
|
25930
|
-
new
|
|
25931
|
-
new
|
|
25932
|
-
new
|
|
25930
|
+
new cu([this, "startTime"], "开始时间", Wt.defaults.startTime, !0),
|
|
25931
|
+
new cu([this, "stopTime"], "结束时间", Wt.defaults.stopTime),
|
|
25932
|
+
new cu([this, "currentTime"], "当前时间", Wt.defaults.currentTime, !0),
|
|
25933
25933
|
new ce([this, "multiplier"], "倍速", Wt.defaults.multiplier),
|
|
25934
25934
|
new Ii([this, "clockStep"], [["TICK_DEPENDENT", "TICK_DEPENDENT"], ["SYSTEM_CLOCK_MULTIPLIER", "SYSTEM_CLOCK_MULTIPLIER"], ["SYSTEM_CLOCK", "SYSTEM_CLOCK"]], "clockStep", Wt.defaults.clockStep),
|
|
25935
25935
|
new Ii([this, "clockRange"], [["UNBOUNDED", "UNBOUNDED"], ["CLAMPED", "CLAMPED"], ["LOOP_STOP", "LOOP_STOP"]], "clockRange", Wt.defaults.clockRange)
|
|
@@ -25944,7 +25944,7 @@ ${DI}
|
|
|
25944
25944
|
...e.more,
|
|
25945
25945
|
new ye([], "通用", "通用"),
|
|
25946
25946
|
new ur(["number"], (o) => this.flyTo(o), [1e3], "飞入"),
|
|
25947
|
-
new
|
|
25947
|
+
new id([this, "loadFuncStr"], "loadFnStr", jC, LI, !0),
|
|
25948
25948
|
new ur([], () => this.resetClock(), [], "根据当前加载的数据重设时钟")
|
|
25949
25949
|
]
|
|
25950
25950
|
};
|
|
@@ -25960,16 +25960,16 @@ m(Wt, "createDefaultProps", () => ({
|
|
|
25960
25960
|
data: void 0,
|
|
25961
25961
|
autoResetClock: !0,
|
|
25962
25962
|
clockEnabled: !1,
|
|
25963
|
-
startTime:
|
|
25964
|
-
stopTime:
|
|
25965
|
-
currentTime:
|
|
25963
|
+
startTime: Bu,
|
|
25964
|
+
stopTime: Bu + 24 * 60 * 60 * 1e3,
|
|
25965
|
+
currentTime: Bu,
|
|
25966
25966
|
multiplier: 1,
|
|
25967
25967
|
clockStep: "SYSTEM_CLOCK_MULTIPLIER",
|
|
25968
25968
|
clockRange: "UNBOUNDED",
|
|
25969
25969
|
shouldAnimate: !1,
|
|
25970
25970
|
clampToGround: !1
|
|
25971
25971
|
})), m(Wt, "type", Wt.register("ESKml", Wt, { chsName: "ESKml", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "Kml数据加载" }));
|
|
25972
|
-
let
|
|
25972
|
+
let Bp = Wt;
|
|
25973
25973
|
const nr = class nr extends _g {
|
|
25974
25974
|
constructor(i) {
|
|
25975
25975
|
super(i);
|
|
@@ -26010,7 +26010,7 @@ m(nr, "createDefaultProps", () => ({
|
|
|
26010
26010
|
//深度检测
|
|
26011
26011
|
stroked: !0
|
|
26012
26012
|
})), m(nr, "type", nr.register("ESLocalLineString", nr, { chsName: "局部2D坐标折线", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "ESLocalLineString" }));
|
|
26013
|
-
let
|
|
26013
|
+
let Vp = nr;
|
|
26014
26014
|
const rr = class rr extends Pg {
|
|
26015
26015
|
constructor(i) {
|
|
26016
26016
|
super(i);
|
|
@@ -26055,7 +26055,7 @@ m(rr, "createDefaultProps", () => ({
|
|
|
26055
26055
|
//深度检测
|
|
26056
26056
|
stroked: !0
|
|
26057
26057
|
})), m(rr, "type", rr.register("ESLocalLineStringZ", rr, { chsName: "局部坐标折线", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "ESLocalLineStringZ" }));
|
|
26058
|
-
let
|
|
26058
|
+
let yd = rr;
|
|
26059
26059
|
const Zm = `in vec3 position;
|
|
26060
26060
|
in vec3 normal;
|
|
26061
26061
|
in vec2 st;
|
|
@@ -26644,8 +26644,8 @@ export type IndexJsonType = {
|
|
|
26644
26644
|
new Ii([this, "pass"], NI, "渲染顺序", "TRANSLUCENT", !0),
|
|
26645
26645
|
new Ii([this, "primitiveType"], VI, "图元类型", "TRIANGLES", !0),
|
|
26646
26646
|
new $t([this, "renderState"], "渲染状态", Jm, UI, !0),
|
|
26647
|
-
new
|
|
26648
|
-
new
|
|
26647
|
+
new id([this, "vertexShaderSource"], "顶点着色器", Zm, WI, !0),
|
|
26648
|
+
new id([this, "fragmentShaderSource"], "片元着色器", Qm, HI, !0),
|
|
26649
26649
|
new $t([this, "uniformMap"], "一致性变量(uniform)", jm, $I, !0),
|
|
26650
26650
|
new $t([this, "attributesJson"], "顶点属性(attributes)", iv(ev), qI, !0),
|
|
26651
26651
|
new $t([this, "indexTypedArrayJson"], "索引(index)", ov(tv), XI, !0),
|
|
@@ -26720,7 +26720,7 @@ m(Ht, "createDefaultProps", () => ({
|
|
|
26720
26720
|
viewDistanceRange: Q(void 0),
|
|
26721
26721
|
viewDistanceDebug: !1
|
|
26722
26722
|
})), m(Ht, "type", Ht.register("ESCustomPrimitive", Ht, { chsName: "ES自定义图元", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "ES自定义图元" })), m(Ht, "defaultRenderState", Jm), m(Ht, "defaultVertexShaderSource", Zm), m(Ht, "defaultFragmentShaderSource", Qm), m(Ht, "defaultUniformMap", jm), m(Ht, "defaultBoundingVolume", Km), m(Ht, "defaultAttribute", ev), m(Ht, "defaultIndexTypedArray", tv), m(Ht, "getMinMaxPosition", aw);
|
|
26723
|
-
let
|
|
26723
|
+
let Np = Ht;
|
|
26724
26724
|
const So = class So extends Ri {
|
|
26725
26725
|
constructor(e) {
|
|
26726
26726
|
super(e);
|
|
@@ -26762,7 +26762,7 @@ const So = class So extends Ri {
|
|
|
26762
26762
|
new ce([this, "repeat"], "图像重复次数"),
|
|
26763
26763
|
new Ii([this, "bidirectional"], [["正向", 0], ["反向", 1], ["双向", 2], ["无", 3]], "运动方向", 0),
|
|
26764
26764
|
new ye([], "播放器", "播放器"),
|
|
26765
|
-
new
|
|
26765
|
+
new Vd([this, "playing"], [this, "ratio"], [this, "loop"], "播放器"),
|
|
26766
26766
|
new ue([this, "loop"], "是否循环"),
|
|
26767
26767
|
new ce([this.player, "currentTime"], "当前时间"),
|
|
26768
26768
|
new ce([this, "duration"], "过渡时间"),
|
|
@@ -26793,7 +26793,7 @@ m(So, "createDefaultProps", () => ({
|
|
|
26793
26793
|
Ye.LineStringAppend,
|
|
26794
26794
|
Ye.LineStringInsert
|
|
26795
26795
|
]);
|
|
26796
|
-
let
|
|
26796
|
+
let Up = So;
|
|
26797
26797
|
const Vs = class Vs extends Ri {
|
|
26798
26798
|
constructor(e) {
|
|
26799
26799
|
super(e);
|
|
@@ -26828,7 +26828,7 @@ m(Vs, "createDefaultProps", () => ({
|
|
|
26828
26828
|
Ye.LineStringAppend,
|
|
26829
26829
|
Ye.LineStringInsert
|
|
26830
26830
|
]);
|
|
26831
|
-
let
|
|
26831
|
+
let Gp = Vs;
|
|
26832
26832
|
const Ns = class Ns extends Ri {
|
|
26833
26833
|
constructor(e) {
|
|
26834
26834
|
super(e);
|
|
@@ -26870,7 +26870,7 @@ m(Ns, "createDefaultProps", () => ({
|
|
|
26870
26870
|
Ye.CircularAppend,
|
|
26871
26871
|
Ye.CircularInsert
|
|
26872
26872
|
]);
|
|
26873
|
-
let
|
|
26873
|
+
let wd = Ns;
|
|
26874
26874
|
const jo = class jo extends Ri {
|
|
26875
26875
|
constructor(e) {
|
|
26876
26876
|
super(e);
|
|
@@ -26933,7 +26933,7 @@ const jo = class jo extends Ri {
|
|
|
26933
26933
|
new ce([this, "leadTime"], "折线超前显示时长", 0),
|
|
26934
26934
|
new ce([this, "trailTime"], "折线滞后显示时长", 0),
|
|
26935
26935
|
new ye([], "播放器", "播放器"),
|
|
26936
|
-
new
|
|
26936
|
+
new Vd([this, "playing"], [this._geoPolylinePath, "ratio"], [this, "loop"], "播放器"),
|
|
26937
26937
|
new ue([this, "loop"], "是否循环"),
|
|
26938
26938
|
new ce([this, "currentTime"], "当前时间"),
|
|
26939
26939
|
new ce([this, "duration"], "过渡时间"),
|
|
@@ -26969,7 +26969,7 @@ m(jo, "createDefaultProps", () => ({
|
|
|
26969
26969
|
Ye.LineStringAppend,
|
|
26970
26970
|
Ye.LineStringInsert
|
|
26971
26971
|
]);
|
|
26972
|
-
let
|
|
26972
|
+
let Wp = jo;
|
|
26973
26973
|
const Ja = class Ja extends Xi {
|
|
26974
26974
|
constructor(e, o) {
|
|
26975
26975
|
super(e, o);
|
|
@@ -27027,7 +27027,7 @@ const Ja = class Ja extends Xi {
|
|
|
27027
27027
|
return n.actived ? s.flyInParam ? super.flyIn(e, o) : r.positions ? (ge(n, s, o, r.positions, e), !0) : !1 : !1;
|
|
27028
27028
|
}
|
|
27029
27029
|
};
|
|
27030
|
-
m(Ja, "type", Ja.register("ESCesiumViewer",
|
|
27030
|
+
m(Ja, "type", Ja.register("ESCesiumViewer", Wp.type, Ja));
|
|
27031
27031
|
let sv = Ja;
|
|
27032
27032
|
const ja = class ja extends Me {
|
|
27033
27033
|
constructor(e, o) {
|
|
@@ -27773,7 +27773,7 @@ const ol = class ol extends Kt {
|
|
|
27773
27773
|
}
|
|
27774
27774
|
{
|
|
27775
27775
|
const r = () => {
|
|
27776
|
-
n.color = e.filled ? e.fillColor :
|
|
27776
|
+
n.color = e.filled ? e.fillColor : wd.defaults.fillStyle.color;
|
|
27777
27777
|
};
|
|
27778
27778
|
r();
|
|
27779
27779
|
const a = this.disposeVar(F(
|
|
@@ -27796,7 +27796,7 @@ const ol = class ol extends Kt {
|
|
|
27796
27796
|
return n.actived ? s.flyInParam ? super.flyIn(e, o) : r.positions ? (ge(n, s, o, r.positions, e), !0) : !1 : !1;
|
|
27797
27797
|
}
|
|
27798
27798
|
};
|
|
27799
|
-
m(ol, "type", ol.register("ESCesiumViewer",
|
|
27799
|
+
m(ol, "type", ol.register("ESCesiumViewer", wd.type, ol));
|
|
27800
27800
|
let hv = ol;
|
|
27801
27801
|
const sl = class sl extends Me {
|
|
27802
27802
|
constructor(e, o) {
|
|
@@ -27810,11 +27810,12 @@ const sl = class sl extends Me {
|
|
|
27810
27810
|
this._czmModel = this.dv(new Nt(o, e.id));
|
|
27811
27811
|
const n = this._czmModel;
|
|
27812
27812
|
this.d(n.readyEvent.don((a) => {
|
|
27813
|
-
|
|
27814
|
-
|
|
27813
|
+
var l;
|
|
27814
|
+
n.activeAnimationsJson = (l = n.gltf.animations) == null ? void 0 : l.map((c, d) => ({
|
|
27815
|
+
index: d,
|
|
27815
27816
|
loop: "REPEAT",
|
|
27816
27817
|
animationTime: "(duration) => Date.now() / 1000 / duration * 2"
|
|
27817
|
-
}))
|
|
27818
|
+
})), e.czmModelReadyEvent.emit(a), e.readyEvent.emit(a);
|
|
27818
27819
|
})), this.ad(new _f(s, this._czmModel)), this.d(C([n, "show"], [e, "show"])), this.d(C([n, "color"], [e, "czmColor"])), this.d(C([n, "nativeMaximumScale"], [e, "czmMaximumScale"])), this.d(C([n, "nativeMinimumPixelSize"], [e, "czmMinimumPixelSize"])), this.d(M([n, "position"], [e, "position"])), this.d(C([n, "nativeScale"], [e, "czmNativeScale"])), this.d(C([n, "scale"], [e, "scale"])), this.ad(C([n, "imageBasedLightingFactor"], [e, "czmImageBasedLightingFactor"])), this.d(C([n, "environmentMapManager"], [e, "czmEnvironmentMapManager"]));
|
|
27819
27820
|
{
|
|
27820
27821
|
const a = (l) => {
|
|
@@ -27866,7 +27867,8 @@ const sl = class sl extends Me {
|
|
|
27866
27867
|
l(), this.d(a.don(l));
|
|
27867
27868
|
}
|
|
27868
27869
|
const r = () => {
|
|
27869
|
-
|
|
27870
|
+
var a;
|
|
27871
|
+
n.url = oe.context.getStrFromEnv(Pf(typeof e.url == "string" ? e.url : ((a = e.url) == null ? void 0 : a.url) ?? jc.defaults.url));
|
|
27870
27872
|
};
|
|
27871
27873
|
r(), this.d(e.urlChanged.don(r)), this.d(e.setNodePositionEvent.don((a, l) => {
|
|
27872
27874
|
n.setNodeTranslation(a, l);
|
|
@@ -27886,7 +27888,7 @@ const sl = class sl extends Me {
|
|
|
27886
27888
|
return n.actived ? s.flyToParam || s.flyInParam ? (super.flyTo(e, o), !0) : (r && wi(n, s, o, e, r, !0), !!r) : !1;
|
|
27887
27889
|
}
|
|
27888
27890
|
};
|
|
27889
|
-
m(sl, "type", sl.register("ESCesiumViewer",
|
|
27891
|
+
m(sl, "type", sl.register("ESCesiumViewer", jc.type, sl));
|
|
27890
27892
|
let cv = sl;
|
|
27891
27893
|
function dv(t, i) {
|
|
27892
27894
|
const e = t[0] - i[0], o = t[1] - i[1], s = t[2] - i[2];
|
|
@@ -27915,7 +27917,7 @@ class $h extends L {
|
|
|
27915
27917
|
const r = this._surfaceDistance.value = Ti(this.positions[0], this.positions[1]), a = this._height.value = this.positions[1][2] - this.positions[0][2];
|
|
27916
27918
|
this._distance.value = Math.sqrt(r * r + a * a);
|
|
27917
27919
|
} else if (this.arcType === "RHUMB") {
|
|
27918
|
-
const r = this._surfaceDistance.value =
|
|
27920
|
+
const r = this._surfaceDistance.value = Od(this.positions[0], this.positions[1]), a = this._height.value = this.positions[1][2] - this.positions[0][2];
|
|
27919
27921
|
this._distance.value = Math.sqrt(r * r + a * a);
|
|
27920
27922
|
} else if (this.arcType === "NONE") {
|
|
27921
27923
|
const r = cr(this.positions[0]), a = cr(this.positions[1]);
|
|
@@ -28088,7 +28090,7 @@ const nl = class nl extends Kt {
|
|
|
28088
28090
|
};
|
|
28089
28091
|
m(nl, "type", nl.register("ESCesiumViewer", RP.type, nl));
|
|
28090
28092
|
let uv = nl;
|
|
28091
|
-
const
|
|
28093
|
+
const Vu = {
|
|
28092
28094
|
czmAnimationsStand: [{
|
|
28093
28095
|
index: 0,
|
|
28094
28096
|
name: "Stand",
|
|
@@ -28161,7 +28163,7 @@ const Bu = {
|
|
|
28161
28163
|
n.activeAnimationsJson = void 0;
|
|
28162
28164
|
return;
|
|
28163
28165
|
}
|
|
28164
|
-
v === "walking" ? n.activeAnimationsJson =
|
|
28166
|
+
v === "walking" ? n.activeAnimationsJson = Vu.czmAnimationsWalk : v === "standing" ? n.activeAnimationsJson = Vu.czmAnimationsStand : v === "running" && (n.activeAnimationsJson = Vu.czmAnimationsRun);
|
|
28165
28167
|
};
|
|
28166
28168
|
f();
|
|
28167
28169
|
const g = this.ad(F(
|
|
@@ -28315,7 +28317,7 @@ class JI extends L {
|
|
|
28315
28317
|
return this._czmGeoImageModel;
|
|
28316
28318
|
}
|
|
28317
28319
|
}
|
|
28318
|
-
const al = class al extends
|
|
28320
|
+
const al = class al extends Jd {
|
|
28319
28321
|
constructor(e, o) {
|
|
28320
28322
|
super(e, o);
|
|
28321
28323
|
m(this, "_resetting");
|
|
@@ -28945,7 +28947,7 @@ const c2 = {
|
|
|
28945
28947
|
u = u.replace(/{{CustomContainer}}/g, `ESPoi2DCustomContainer${t}`), u = u.replace(/{{CustomImage}}/g, `ESPoi2DCustomImage${t}`), u = u.replace(/{{CustomTextContainer}}/g, `ESPoi2DCustomTextContainer${t}`), u = u.replace(/{{FONT_SIZE}}/g, e + "px"), u = u.replace(/{{IMAGE_SRC}}/g, oe.context.getStrFromEnv(o)), u = u.replace(/{{IMAGE_WIDTH}}/g, s[0] + "px"), u = u.replace(/{{IMAGE_HEIGHT}}/g, s[1] + "px"), u = u.replace(/{{TEXT}}/g, n), u = u.replace(/{{TEXT_BACKGROUND}}/g, oe.context.getStrFromEnv(r)), u = u.replace(/{{TEXT_BACKGROUND_COLOR}}/g, `rgb(${a.map((f) => f * 255).join(",")})`), u = u.replace(/{{TEXT_BACKGROUND_WIDTH}}/g, l[0] + "px"), u = u.replace(/{{TEXT_BACKGROUND_HEIGHT}}/g, l[1] + "px"), u = u.replace(/{{TEXT_COLOR}}/g, `rgb(${c.map((f) => f * 255).join(",")})`), u = u.replace(/{{TEXT_OFFSET_X}}/g, d[0] + "px"), u = u.replace(/{{TEXT_OFFSET_Y}}/g, d[1] + "px");
|
|
28946
28948
|
const p = document.createElement("div");
|
|
28947
28949
|
return p.innerHTML = u, [p.children[0].children[0], p.children[0].children[1]];
|
|
28948
|
-
}, rt = class rt extends
|
|
28950
|
+
}, rt = class rt extends Jd {
|
|
28949
28951
|
constructor(e, o) {
|
|
28950
28952
|
super(e, o);
|
|
28951
28953
|
m(this, "_widgetComponent");
|
|
@@ -28967,10 +28969,10 @@ const c2 = {
|
|
|
28967
28969
|
));
|
|
28968
28970
|
this.customWidgetComponent = this.disposeVar(new he(c, () => {
|
|
28969
28971
|
if (!(!l || e.mode != "Custom"))
|
|
28970
|
-
return e.screenRender ? new ks(e, o, l[1], !0, !1) : new
|
|
28972
|
+
return e.screenRender ? new ks(e, o, l[1], !0, !1) : new gp(e, o, l[1], !0, !1);
|
|
28971
28973
|
}, !1)), this.widgetComponent = this.disposeVar(new he(c, () => {
|
|
28972
28974
|
if (l)
|
|
28973
|
-
return e.screenRender ? new ks(e, o, l instanceof HTMLDivElement ? l : l[0], !0, !1) : new
|
|
28975
|
+
return e.screenRender ? new ks(e, o, l instanceof HTMLDivElement ? l : l[0], !0, !1) : new gp(e, o, l instanceof HTMLDivElement ? l : l[0], !0, !1);
|
|
28974
28976
|
}, !1)), this.widgetComponent.objChanged.don(() => {
|
|
28975
28977
|
e.minVisibleDistanceChanged.emit();
|
|
28976
28978
|
});
|
|
@@ -29783,7 +29785,7 @@ class y2 extends L {
|
|
|
29783
29785
|
return this._size.changed;
|
|
29784
29786
|
}
|
|
29785
29787
|
}
|
|
29786
|
-
const pl = class pl extends
|
|
29788
|
+
const pl = class pl extends Jd {
|
|
29787
29789
|
constructor(e, o) {
|
|
29788
29790
|
super(e, o);
|
|
29789
29791
|
m(this, "_event", this.disposeVar(F(this.sceneObject.screenRenderChanged, this.sceneObject.sizeByContentChanged, this.sceneObject.sizeChanged)));
|
|
@@ -31155,7 +31157,7 @@ const B2 = `
|
|
|
31155
31157
|
border-radius: 8px;
|
|
31156
31158
|
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
|
|
31157
31159
|
background-color: green;
|
|
31158
|
-
}`, yl = class yl extends
|
|
31160
|
+
}`, yl = class yl extends Jd {
|
|
31159
31161
|
constructor(e, o) {
|
|
31160
31162
|
super(e, o);
|
|
31161
31163
|
// 存储widget组件
|
|
@@ -31170,7 +31172,7 @@ const B2 = `
|
|
|
31170
31172
|
const l = this.dv(F(e.screenRenderChanged, e.infoChanged));
|
|
31171
31173
|
this.widgetTemp = this.disposeVar(new he(l, () => {
|
|
31172
31174
|
const c = O2(e, a, r);
|
|
31173
|
-
return e.screenRender ? new ks(e, o, c, Object.keys(e.info).length != 0) : new
|
|
31175
|
+
return e.screenRender ? new ks(e, o, c, Object.keys(e.info).length != 0) : new gp(e, o, c, Object.keys(e.info).length != 0);
|
|
31174
31176
|
}));
|
|
31175
31177
|
}
|
|
31176
31178
|
})();
|
|
@@ -31509,7 +31511,7 @@ const wl = class wl extends qi {
|
|
|
31509
31511
|
}));
|
|
31510
31512
|
}
|
|
31511
31513
|
};
|
|
31512
|
-
m(wl, "type", wl.register("ESCesiumViewer",
|
|
31514
|
+
m(wl, "type", wl.register("ESCesiumViewer", Bp.type, wl));
|
|
31513
31515
|
let Dv = wl;
|
|
31514
31516
|
const Cl = class Cl extends Me {
|
|
31515
31517
|
constructor(e, o) {
|
|
@@ -31611,7 +31613,7 @@ const _l = class _l extends Me {
|
|
|
31611
31613
|
constructor(e, o) {
|
|
31612
31614
|
super(e, o);
|
|
31613
31615
|
m(this, "_czmESLocalLineStringZ");
|
|
31614
|
-
if (this._czmESLocalLineStringZ = this.disposeVar(new
|
|
31616
|
+
if (this._czmESLocalLineStringZ = this.disposeVar(new yd(e.id)), !o.viewer) {
|
|
31615
31617
|
console.warn("viewer is undefined!");
|
|
31616
31618
|
return;
|
|
31617
31619
|
}
|
|
@@ -31654,7 +31656,7 @@ const _l = class _l extends Me {
|
|
|
31654
31656
|
return n.actived ? s.flyToParam || s.flyInParam ? super.flyTo(e, o) : (r.points && r.flyTo(e), !0) : !1;
|
|
31655
31657
|
}
|
|
31656
31658
|
};
|
|
31657
|
-
m(_l, "type", _l.register("ESCesiumViewer",
|
|
31659
|
+
m(_l, "type", _l.register("ESCesiumViewer", Vp.type, _l));
|
|
31658
31660
|
let Fv = _l;
|
|
31659
31661
|
const Pl = class Pl extends Me {
|
|
31660
31662
|
constructor(e, o) {
|
|
@@ -31717,7 +31719,7 @@ const Pl = class Pl extends Me {
|
|
|
31717
31719
|
return n.actived ? s.flyToParam || s.flyInParam ? super.flyTo(e, o) : r.positions ? (ge(n, s, o, r.positions, e), !0) : !1 : !1;
|
|
31718
31720
|
}
|
|
31719
31721
|
};
|
|
31720
|
-
m(Pl, "type", Pl.register("ESCesiumViewer",
|
|
31722
|
+
m(Pl, "type", Pl.register("ESCesiumViewer", yd.type, Pl));
|
|
31721
31723
|
let zv = Pl;
|
|
31722
31724
|
const xl = class xl extends $f {
|
|
31723
31725
|
constructor(e, o) {
|
|
@@ -31846,7 +31848,7 @@ const Tl = class Tl extends qi {
|
|
|
31846
31848
|
constructor(e, o) {
|
|
31847
31849
|
super(e, o);
|
|
31848
31850
|
m(this, "_customDiv");
|
|
31849
|
-
if (this._customDiv = this.disposeVar(new
|
|
31851
|
+
if (this._customDiv = this.disposeVar(new Gd(e.id)), !o.viewer) {
|
|
31850
31852
|
console.warn("viewer is undefined!");
|
|
31851
31853
|
return;
|
|
31852
31854
|
}
|
|
@@ -32103,7 +32105,7 @@ const Al = class Al extends Kt {
|
|
|
32103
32105
|
super(e, o);
|
|
32104
32106
|
m(this, "_czmPolygonFence");
|
|
32105
32107
|
m(this, "_czmPolygon");
|
|
32106
|
-
if (this._czmPolygonFence = this.disposeVar(new wn(o, e.id)), this._czmPolygon = this.dv(new
|
|
32108
|
+
if (this._czmPolygonFence = this.disposeVar(new wn(o, e.id)), this._czmPolygon = this.dv(new Nd()), !o.viewer) {
|
|
32107
32109
|
console.warn("viewer is undefined!");
|
|
32108
32110
|
return;
|
|
32109
32111
|
}
|
|
@@ -32443,13 +32445,13 @@ const Il = class Il extends Kt {
|
|
|
32443
32445
|
return n.actived ? s.flyInParam ? super.flyIn(e, o) : r.positions ? (ge(n, s, o, r.positions, e), !0) : !1 : !1;
|
|
32444
32446
|
}
|
|
32445
32447
|
};
|
|
32446
|
-
m(Il, "type", Il.register("ESCesiumViewer",
|
|
32448
|
+
m(Il, "type", Il.register("ESCesiumViewer", Gp.type, Il));
|
|
32447
32449
|
let Wv = Il;
|
|
32448
32450
|
const Rl = class Rl extends qi {
|
|
32449
32451
|
constructor(e, o) {
|
|
32450
32452
|
super(e, o);
|
|
32451
32453
|
m(this, "_customDiv");
|
|
32452
|
-
if (this._customDiv = this.disposeVar(new
|
|
32454
|
+
if (this._customDiv = this.disposeVar(new Gd(e.id)), !o.viewer) {
|
|
32453
32455
|
console.warn("viewer is undefined!");
|
|
32454
32456
|
return;
|
|
32455
32457
|
}
|
|
@@ -32541,7 +32543,7 @@ const Dl = class Dl extends Me {
|
|
|
32541
32543
|
return n.actived ? s.flyToParam || s.flyInParam ? super.flyTo(e, o) : (wi(n, s, o, e, r, !0), !0) : !1;
|
|
32542
32544
|
}
|
|
32543
32545
|
};
|
|
32544
|
-
m(Dl, "type", Dl.register("ESCesiumViewer",
|
|
32546
|
+
m(Dl, "type", Dl.register("ESCesiumViewer", Np.type, Dl));
|
|
32545
32547
|
let $v = Dl;
|
|
32546
32548
|
const kl = class kl extends $f {
|
|
32547
32549
|
constructor(e, o) {
|
|
@@ -32855,7 +32857,7 @@ const zl = class zl extends Xi {
|
|
|
32855
32857
|
return s.actived ? o.flyInParam ? super.flyIn(i, e) : (o.esImageryLayer.flyTo(i && i), o.flyOverEvent.emit(e, "over", s), !0) : !1;
|
|
32856
32858
|
}
|
|
32857
32859
|
};
|
|
32858
|
-
m(zl, "type", zl.register("ESCesiumViewer",
|
|
32860
|
+
m(zl, "type", zl.register("ESCesiumViewer", Op.type, zl));
|
|
32859
32861
|
let Yv = zl;
|
|
32860
32862
|
const Ll = class Ll extends Li {
|
|
32861
32863
|
constructor(e, o) {
|
|
@@ -32994,7 +32996,7 @@ const Ol = class Ol extends Xi {
|
|
|
32994
32996
|
return n.actived ? s.flyInParam ? super.flyIn(e, o) : (r.flyTo(e && e), s.flyOverEvent.emit(o, "over", n), !0) : !1;
|
|
32995
32997
|
}
|
|
32996
32998
|
};
|
|
32997
|
-
m(Ol, "type", Ol.register("ESCesiumViewer",
|
|
32999
|
+
m(Ol, "type", Ol.register("ESCesiumViewer", Lp.type, Ol));
|
|
32998
33000
|
let Qv = Ol;
|
|
32999
33001
|
class K2 extends L {
|
|
33000
33002
|
constructor(i, e) {
|
|
@@ -33475,7 +33477,7 @@ class J2 extends L {
|
|
|
33475
33477
|
return n;
|
|
33476
33478
|
}
|
|
33477
33479
|
}
|
|
33478
|
-
function
|
|
33480
|
+
function Hp(t, i, e = "children", o = "dragType") {
|
|
33479
33481
|
const s = [];
|
|
33480
33482
|
return t.forEach((n) => {
|
|
33481
33483
|
if (n[o] && n[o] === "layer") {
|
|
@@ -33487,7 +33489,7 @@ function Wp(t, i, e = "children", o = "dragType") {
|
|
|
33487
33489
|
i === "color" ? delete r.visable : delete r.color, s.push(r);
|
|
33488
33490
|
}
|
|
33489
33491
|
if (n[e] && n[e].length) {
|
|
33490
|
-
const r =
|
|
33492
|
+
const r = Hp(n[e], i, e, o);
|
|
33491
33493
|
r.length && s.push(...r);
|
|
33492
33494
|
}
|
|
33493
33495
|
}), s;
|
|
@@ -33502,7 +33504,7 @@ const Nl = class Nl extends Vh {
|
|
|
33502
33504
|
try {
|
|
33503
33505
|
let r = [];
|
|
33504
33506
|
typeof n == "string" ? r = JSON.parse(n) : r = n;
|
|
33505
|
-
const l =
|
|
33507
|
+
const l = Hp(r, "visable").map((c) => {
|
|
33506
33508
|
const d = typeof c.id == "string" ? `'${c.id}'` : `'${c.id.toString()}'`;
|
|
33507
33509
|
return [`\${${s}} === ` + d, c.visable.toString()];
|
|
33508
33510
|
});
|
|
@@ -33514,7 +33516,7 @@ const Nl = class Nl extends Vh {
|
|
|
33514
33516
|
try {
|
|
33515
33517
|
let r = [];
|
|
33516
33518
|
typeof n == "string" ? r = JSON.parse(n) : r = n;
|
|
33517
|
-
const l =
|
|
33519
|
+
const l = Hp(r, "color").map((c) => {
|
|
33518
33520
|
const d = typeof c.id == "string" ? `'${c.id}'` : `'${c.id.toString()}'`;
|
|
33519
33521
|
return [`\${${s}} === ` + d, c.color];
|
|
33520
33522
|
});
|
|
@@ -33911,7 +33913,7 @@ var Dt = 63710088e-1, qf = {
|
|
|
33911
33913
|
nauticalmiles: 1 / 1852,
|
|
33912
33914
|
radians: 1 / Dt,
|
|
33913
33915
|
yards: 1.0936133
|
|
33914
|
-
},
|
|
33916
|
+
}, $p = {
|
|
33915
33917
|
acres: 247105e-9,
|
|
33916
33918
|
centimeters: 1e4,
|
|
33917
33919
|
centimetres: 1e4,
|
|
@@ -33957,7 +33959,7 @@ function Et(t, i, e) {
|
|
|
33957
33959
|
throw new Error("coordinates must be an Array");
|
|
33958
33960
|
if (t.length < 2)
|
|
33959
33961
|
throw new Error("coordinates must be at least 2 numbers long");
|
|
33960
|
-
if (!
|
|
33962
|
+
if (!Cd(t[0]) || !Cd(t[1]))
|
|
33961
33963
|
throw new Error("coordinates must contain numbers");
|
|
33962
33964
|
var o = {
|
|
33963
33965
|
type: "Point",
|
|
@@ -34085,15 +34087,15 @@ function cR(t, i, e) {
|
|
|
34085
34087
|
function dR(t, i, e) {
|
|
34086
34088
|
if (i === void 0 && (i = "meters"), e === void 0 && (e = "kilometers"), !(t >= 0))
|
|
34087
34089
|
throw new Error("area must be a positive number");
|
|
34088
|
-
var o =
|
|
34090
|
+
var o = $p[i];
|
|
34089
34091
|
if (!o)
|
|
34090
34092
|
throw new Error("invalid original units");
|
|
34091
|
-
var s =
|
|
34093
|
+
var s = $p[e];
|
|
34092
34094
|
if (!s)
|
|
34093
34095
|
throw new Error("invalid final units");
|
|
34094
34096
|
return t / o * s;
|
|
34095
34097
|
}
|
|
34096
|
-
function
|
|
34098
|
+
function Cd(t) {
|
|
34097
34099
|
return !isNaN(t) && t !== null && !Array.isArray(t);
|
|
34098
34100
|
}
|
|
34099
34101
|
function Kf(t) {
|
|
@@ -34107,7 +34109,7 @@ function uR(t) {
|
|
|
34107
34109
|
if (t.length !== 4 && t.length !== 6)
|
|
34108
34110
|
throw new Error("bbox must be an Array of 4 or 6 numbers");
|
|
34109
34111
|
t.forEach(function(i) {
|
|
34110
|
-
if (!
|
|
34112
|
+
if (!Cd(i))
|
|
34111
34113
|
throw new Error("bbox must only contain numbers");
|
|
34112
34114
|
});
|
|
34113
34115
|
}
|
|
@@ -34119,7 +34121,7 @@ function pR(t) {
|
|
|
34119
34121
|
}
|
|
34120
34122
|
const fR = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
34121
34123
|
__proto__: null,
|
|
34122
|
-
areaFactors:
|
|
34124
|
+
areaFactors: $p,
|
|
34123
34125
|
bearingToAzimuth: hR,
|
|
34124
34126
|
convertArea: dR,
|
|
34125
34127
|
convertLength: cR,
|
|
@@ -34130,7 +34132,7 @@ const fR = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
34130
34132
|
featureCollection: li,
|
|
34131
34133
|
geometry: iR,
|
|
34132
34134
|
geometryCollection: rR,
|
|
34133
|
-
isNumber:
|
|
34135
|
+
isNumber: Cd,
|
|
34134
34136
|
isObject: Kf,
|
|
34135
34137
|
lengthToDegrees: lR,
|
|
34136
34138
|
lengthToRadians: Qf,
|
|
@@ -34150,7 +34152,7 @@ const fR = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
34150
34152
|
validateBBox: uR,
|
|
34151
34153
|
validateId: pR
|
|
34152
34154
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
34153
|
-
function
|
|
34155
|
+
function _d(t) {
|
|
34154
34156
|
if (!t)
|
|
34155
34157
|
throw new Error("coord is required");
|
|
34156
34158
|
if (!Array.isArray(t)) {
|
|
@@ -34194,7 +34196,7 @@ function mR(t, i) {
|
|
|
34194
34196
|
}
|
|
34195
34197
|
function po(t, i, e) {
|
|
34196
34198
|
e === void 0 && (e = {});
|
|
34197
|
-
var o =
|
|
34199
|
+
var o = _d(t), s = _d(i), n = ya(s[1] - o[1]), r = ya(s[0] - o[0]), a = ya(o[1]), l = ya(s[1]), c = Math.pow(Math.sin(n / 2), 2) + Math.pow(Math.sin(r / 2), 2) * Math.cos(a) * Math.cos(l);
|
|
34198
34200
|
return Zf(2 * Math.atan2(Math.sqrt(c), Math.sqrt(1 - c)), e.units);
|
|
34199
34201
|
}
|
|
34200
34202
|
function Tn(t, i, e) {
|
|
@@ -34876,9 +34878,9 @@ Br.createGeometry = function(t) {
|
|
|
34876
34878
|
geometryType: OR.POLYLINES
|
|
34877
34879
|
});
|
|
34878
34880
|
};
|
|
34879
|
-
var
|
|
34881
|
+
var Nu;
|
|
34880
34882
|
function UR() {
|
|
34881
|
-
return typeof
|
|
34883
|
+
return typeof Nu > "u" && (Nu = new h.EllipsoidGeodesic()), Nu;
|
|
34882
34884
|
}
|
|
34883
34885
|
function GR(t, i) {
|
|
34884
34886
|
var e = i / 3e7;
|
|
@@ -35047,7 +35049,7 @@ class XR extends L {
|
|
|
35047
35049
|
if (!o)
|
|
35048
35050
|
return u;
|
|
35049
35051
|
u.repeat = (p.repeat ?? 1) * o.repeat;
|
|
35050
|
-
const f = p.startTime ?? o.startTime, g = p.transmissionTime ?? o.transmissionTime ?? o.duration ?? Vo.defaults.duration, v = o.currentTime ?? Vo.defaults.currentTime, _ =
|
|
35052
|
+
const f = p.startTime ?? o.startTime, g = p.transmissionTime ?? o.transmissionTime ?? o.duration ?? Vo.defaults.duration, v = o.currentTime ?? Vo.defaults.currentTime, _ = lp((v - f) / g, 0, 1);
|
|
35051
35053
|
u.timeRatio = _ / u.repeat;
|
|
35052
35054
|
const P = p.color ?? o.color, w = p.bgColor ?? o.bgColor;
|
|
35053
35055
|
return u.color.splice(0, 4, ...P), u.bgColor.splice(0, 4, ...w), u.bidirectional = p.bidirectional ?? o.bidirectional, (o.routePathCallback && o.routePathCallback(u, c, d)) ?? u;
|
|
@@ -35400,7 +35402,7 @@ const Wl = class Wl extends Kt {
|
|
|
35400
35402
|
return n.actived ? s.flyInParam ? super.flyIn(e, o) : r.positions ? (ge(n, s, o, r.positions, e), !0) : !1 : !1;
|
|
35401
35403
|
}
|
|
35402
35404
|
};
|
|
35403
|
-
m(Wl, "type", Wl.register("ESCesiumViewer",
|
|
35405
|
+
m(Wl, "type", Wl.register("ESCesiumViewer", Up.type, Wl));
|
|
35404
35406
|
let r0 = Wl;
|
|
35405
35407
|
function Pn(t) {
|
|
35406
35408
|
var i = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
@@ -35626,7 +35628,7 @@ function Xt(t, i, e) {
|
|
|
35626
35628
|
throw new Error("point is required");
|
|
35627
35629
|
if (!i)
|
|
35628
35630
|
throw new Error("polygon is required");
|
|
35629
|
-
var o =
|
|
35631
|
+
var o = _d(t), s = uo(i), n = s.type, r = i.bbox, a = s.coordinates;
|
|
35630
35632
|
if (r && KR(o, r) === !1)
|
|
35631
35633
|
return !1;
|
|
35632
35634
|
n === "Polygon" && (a = [a]);
|
|
@@ -35729,19 +35731,19 @@ function l0(t, i) {
|
|
|
35729
35731
|
var o = mR(t), s = [];
|
|
35730
35732
|
switch (o) {
|
|
35731
35733
|
case "LineString":
|
|
35732
|
-
s =
|
|
35734
|
+
s = Uu(t);
|
|
35733
35735
|
break;
|
|
35734
35736
|
case "MultiLineString":
|
|
35735
35737
|
case "Polygon":
|
|
35736
35738
|
no(t).forEach(function(r) {
|
|
35737
|
-
s.push(
|
|
35739
|
+
s.push(Uu(r));
|
|
35738
35740
|
});
|
|
35739
35741
|
break;
|
|
35740
35742
|
case "MultiPolygon":
|
|
35741
35743
|
no(t).forEach(function(r) {
|
|
35742
35744
|
var a = [];
|
|
35743
35745
|
r.forEach(function(l) {
|
|
35744
|
-
a.push(
|
|
35746
|
+
a.push(Uu(l));
|
|
35745
35747
|
}), s.push(a);
|
|
35746
35748
|
});
|
|
35747
35749
|
break;
|
|
@@ -35762,7 +35764,7 @@ function l0(t, i) {
|
|
|
35762
35764
|
id: t.id
|
|
35763
35765
|
});
|
|
35764
35766
|
}
|
|
35765
|
-
function
|
|
35767
|
+
function Uu(t) {
|
|
35766
35768
|
var i = no(t);
|
|
35767
35769
|
if (i.length === 2 && !h0(i[0], i[1]))
|
|
35768
35770
|
return i;
|
|
@@ -36306,7 +36308,7 @@ function hD(t, i, e) {
|
|
|
36306
36308
|
}
|
|
36307
36309
|
), o;
|
|
36308
36310
|
}
|
|
36309
|
-
function
|
|
36311
|
+
function jd(t, i) {
|
|
36310
36312
|
tg(t, function(e, o, s, n, r) {
|
|
36311
36313
|
var a = e === null ? null : e.type;
|
|
36312
36314
|
switch (a) {
|
|
@@ -36344,7 +36346,7 @@ function Jd(t, i) {
|
|
|
36344
36346
|
}
|
|
36345
36347
|
function cD(t, i, e) {
|
|
36346
36348
|
var o = e;
|
|
36347
|
-
return
|
|
36349
|
+
return jd(
|
|
36348
36350
|
t,
|
|
36349
36351
|
function(s, n, r) {
|
|
36350
36352
|
n === 0 && r === 0 && e === void 0 ? o = s : o = i(
|
|
@@ -36357,7 +36359,7 @@ function cD(t, i, e) {
|
|
|
36357
36359
|
), o;
|
|
36358
36360
|
}
|
|
36359
36361
|
function P_(t, i) {
|
|
36360
|
-
|
|
36362
|
+
jd(t, function(e, o, s) {
|
|
36361
36363
|
var n = 0;
|
|
36362
36364
|
if (e.geometry) {
|
|
36363
36365
|
var r = e.geometry.type;
|
|
@@ -36408,7 +36410,7 @@ function dD(t, i, e) {
|
|
|
36408
36410
|
}
|
|
36409
36411
|
function x_(t, i) {
|
|
36410
36412
|
if (!t) throw new Error("geojson is required");
|
|
36411
|
-
|
|
36413
|
+
jd(t, function(e, o, s) {
|
|
36412
36414
|
if (e.geometry !== null) {
|
|
36413
36415
|
var n = e.geometry.type, r = e.geometry.coordinates;
|
|
36414
36416
|
switch (n) {
|
|
@@ -36560,7 +36562,7 @@ vt.featureEach = __;
|
|
|
36560
36562
|
vt.featureReduce = aD;
|
|
36561
36563
|
vt.findPoint = fD;
|
|
36562
36564
|
vt.findSegment = pD;
|
|
36563
|
-
vt.flattenEach =
|
|
36565
|
+
vt.flattenEach = jd;
|
|
36564
36566
|
vt.flattenReduce = cD;
|
|
36565
36567
|
vt.geomEach = tg;
|
|
36566
36568
|
vt.geomReduce = hD;
|
|
@@ -36574,14 +36576,14 @@ var ig = {};
|
|
|
36574
36576
|
const gD = /* @__PURE__ */ oC(TR);
|
|
36575
36577
|
Object.defineProperty(ig, "__esModule", { value: !0 });
|
|
36576
36578
|
var mD = gD;
|
|
36577
|
-
function
|
|
36579
|
+
function qp(t) {
|
|
36578
36580
|
var i = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
36579
36581
|
return mD.coordEach(t, function(e) {
|
|
36580
36582
|
i[0] > e[0] && (i[0] = e[0]), i[1] > e[1] && (i[1] = e[1]), i[2] < e[0] && (i[2] = e[0]), i[3] < e[1] && (i[3] = e[1]);
|
|
36581
36583
|
}), i;
|
|
36582
36584
|
}
|
|
36583
|
-
|
|
36584
|
-
ig.default =
|
|
36585
|
+
qp.default = qp;
|
|
36586
|
+
ig.default = qp;
|
|
36585
36587
|
var ji = QR, S_ = w_, b_ = vt, Un = ig.default, vD = b_.featureEach;
|
|
36586
36588
|
b_.coordEach;
|
|
36587
36589
|
S_.polygon;
|
|
@@ -36636,7 +36638,7 @@ function T_(t) {
|
|
|
36636
36638
|
eg.exports = T_;
|
|
36637
36639
|
eg.exports.default = T_;
|
|
36638
36640
|
var yD = eg.exports;
|
|
36639
|
-
const wD = /* @__PURE__ */
|
|
36641
|
+
const wD = /* @__PURE__ */ qd(yD);
|
|
36640
36642
|
function og(t, i) {
|
|
36641
36643
|
var e = {}, o = [];
|
|
36642
36644
|
if (t.type === "LineString" && (t = Ci(t)), i.type === "LineString" && (i = Ci(i)), t.type === "Feature" && i.type === "Feature" && t.geometry !== null && i.geometry !== null && t.geometry.type === "LineString" && i.geometry.type === "LineString" && t.geometry.coordinates.length === 2 && i.geometry.coordinates.length === 2) {
|
|
@@ -36670,9 +36672,9 @@ function p0(t, i) {
|
|
|
36670
36672
|
}
|
|
36671
36673
|
return null;
|
|
36672
36674
|
}
|
|
36673
|
-
function
|
|
36675
|
+
function Pd(t, i, e) {
|
|
36674
36676
|
e === void 0 && (e = {});
|
|
36675
|
-
for (var o =
|
|
36677
|
+
for (var o = _d(t), s = no(i), n = 0; n < s.length - 1; n++) {
|
|
36676
36678
|
var r = !1;
|
|
36677
36679
|
if (e.ignoreEndVertices && (n === 0 && (r = "start"), n === s.length - 2 && (r = "end"), n === 0 && n + 1 === s.length - 1 && (r = "both")), CD(s[n], s[n + 1], o, r, typeof e.epsilon > "u" ? null : e.epsilon))
|
|
36678
36680
|
return !0;
|
|
@@ -36704,7 +36706,7 @@ function _D(t, i) {
|
|
|
36704
36706
|
case "MultiPoint":
|
|
36705
36707
|
return PD(e, o);
|
|
36706
36708
|
case "LineString":
|
|
36707
|
-
return
|
|
36709
|
+
return Pd(e, o, { ignoreEndVertices: !0 });
|
|
36708
36710
|
case "Polygon":
|
|
36709
36711
|
case "MultiPolygon":
|
|
36710
36712
|
return Xt(e, o, { ignoreBoundary: !0 });
|
|
@@ -36765,9 +36767,9 @@ function xD(t, i) {
|
|
|
36765
36767
|
}
|
|
36766
36768
|
function SD(t, i) {
|
|
36767
36769
|
for (var e = !1, o = 0; o < t.coordinates.length; o++) {
|
|
36768
|
-
if (!
|
|
36770
|
+
if (!Pd(t.coordinates[o], i))
|
|
36769
36771
|
return !1;
|
|
36770
|
-
e || (e =
|
|
36772
|
+
e || (e = Pd(t.coordinates[o], i, { ignoreEndVertices: !0 }));
|
|
36771
36773
|
}
|
|
36772
36774
|
return e;
|
|
36773
36775
|
}
|
|
@@ -36785,7 +36787,7 @@ function bD(t, i) {
|
|
|
36785
36787
|
}
|
|
36786
36788
|
function TD(t, i) {
|
|
36787
36789
|
for (var e = 0; e < t.coordinates.length; e++)
|
|
36788
|
-
if (!
|
|
36790
|
+
if (!Pd(t.coordinates[e], i))
|
|
36789
36791
|
return !1;
|
|
36790
36792
|
return !0;
|
|
36791
36793
|
}
|
|
@@ -36834,7 +36836,7 @@ function M_(t, i, e) {
|
|
|
36834
36836
|
}
|
|
36835
36837
|
return li(o);
|
|
36836
36838
|
}
|
|
36837
|
-
function
|
|
36839
|
+
function Xp(t, i) {
|
|
36838
36840
|
i === void 0 && (i = {});
|
|
36839
36841
|
var e = uo(t);
|
|
36840
36842
|
switch (!i.properties && t.type === "Feature" && (i.properties = t.properties), e.type) {
|
|
@@ -36864,9 +36866,9 @@ function I_(t, i) {
|
|
|
36864
36866
|
var f0 = Object.prototype.toString, R_ = function(i) {
|
|
36865
36867
|
var e = f0.call(i), o = e === "[object Arguments]";
|
|
36866
36868
|
return o || (o = e !== "[object Array]" && i !== null && typeof i == "object" && typeof i.length == "number" && i.length >= 0 && f0.call(i.callee) === "[object Function]"), o;
|
|
36867
|
-
},
|
|
36869
|
+
}, Gu, g0;
|
|
36868
36870
|
function DD() {
|
|
36869
|
-
if (g0) return
|
|
36871
|
+
if (g0) return Gu;
|
|
36870
36872
|
g0 = 1;
|
|
36871
36873
|
var t;
|
|
36872
36874
|
if (!Object.keys) {
|
|
@@ -36950,7 +36952,7 @@ function DD() {
|
|
|
36950
36952
|
return w;
|
|
36951
36953
|
};
|
|
36952
36954
|
}
|
|
36953
|
-
return
|
|
36955
|
+
return Gu = t, Gu;
|
|
36954
36956
|
}
|
|
36955
36957
|
var kD = Array.prototype.slice, FD = R_, m0 = Object.keys, Zc = m0 ? function(i) {
|
|
36956
36958
|
return m0(i);
|
|
@@ -37014,14 +37016,14 @@ if (Kc)
|
|
|
37014
37016
|
} catch {
|
|
37015
37017
|
Kc = !1;
|
|
37016
37018
|
}
|
|
37017
|
-
var
|
|
37019
|
+
var eu = Kc, Wu, y0;
|
|
37018
37020
|
function QD() {
|
|
37019
|
-
if (y0) return
|
|
37021
|
+
if (y0) return Wu;
|
|
37020
37022
|
y0 = 1;
|
|
37021
37023
|
var t = typeof Symbol < "u" && Symbol, i = k_;
|
|
37022
|
-
return
|
|
37024
|
+
return Wu = function() {
|
|
37023
37025
|
return typeof t != "function" || typeof Symbol != "function" || typeof t("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : i();
|
|
37024
|
-
},
|
|
37026
|
+
}, Wu;
|
|
37025
37027
|
}
|
|
37026
37028
|
var O_ = typeof Reflect < "u" && Reflect.getPrototypeOf || null, KD = F_, B_ = KD.getPrototypeOf || null, JD = "Function.prototype.bind called on incompatible ", jD = Object.prototype.toString, e3 = Math.max, t3 = "[object Function]", w0 = function(i, e) {
|
|
37027
37029
|
for (var o = [], s = 0; s < i.length; s += 1)
|
|
@@ -37073,11 +37075,11 @@ try {
|
|
|
37073
37075
|
if (!t || typeof t != "object" || !("code" in t) || t.code !== "ERR_PROTO_ACCESS")
|
|
37074
37076
|
throw t;
|
|
37075
37077
|
}
|
|
37076
|
-
var
|
|
37078
|
+
var Hu = !!N_ && C0 && C0(
|
|
37077
37079
|
Object.prototype,
|
|
37078
37080
|
/** @type {keyof typeof Object.prototype} */
|
|
37079
37081
|
"__proto__"
|
|
37080
|
-
), U_ = Object, _0 = U_.getPrototypeOf, m3 =
|
|
37082
|
+
), U_ = Object, _0 = U_.getPrototypeOf, m3 = Hu && typeof Hu.get == "function" ? g3([Hu.get]) : typeof _0 == "function" ? (
|
|
37081
37083
|
/** @type {import('./get')} */
|
|
37082
37084
|
function(i) {
|
|
37083
37085
|
return _0(i == null ? i : U_(i));
|
|
@@ -37090,24 +37092,24 @@ var Wu = !!N_ && C0 && C0(
|
|
|
37090
37092
|
return x0(i);
|
|
37091
37093
|
} : S0 ? function(i) {
|
|
37092
37094
|
return S0(i);
|
|
37093
|
-
} : null, v3 = Function.prototype.call, y3 = Object.prototype.hasOwnProperty, w3 = lc, W_ = w3.call(v3, y3), Ae, C3 = F_, _3 = z_, P3 = LD, x3 = OD, S3 = BD, Vr = L_, vr = Jr, b3 = VD, T3 = ND, E3 = UD, A3 = GD, M3 = WD, I3 = HD, R3 = $D, D3 = YD, H_ = Function,
|
|
37095
|
+
} : null, v3 = Function.prototype.call, y3 = Object.prototype.hasOwnProperty, w3 = lc, W_ = w3.call(v3, y3), Ae, C3 = F_, _3 = z_, P3 = LD, x3 = OD, S3 = BD, Vr = L_, vr = Jr, b3 = VD, T3 = ND, E3 = UD, A3 = GD, M3 = WD, I3 = HD, R3 = $D, D3 = YD, H_ = Function, $u = function(t) {
|
|
37094
37096
|
try {
|
|
37095
37097
|
return H_('"use strict"; return (' + t + ").constructor;")();
|
|
37096
37098
|
} catch {
|
|
37097
37099
|
}
|
|
37098
|
-
}, qh = jr, k3 =
|
|
37100
|
+
}, qh = jr, k3 = eu, qu = function() {
|
|
37099
37101
|
throw new vr();
|
|
37100
37102
|
}, F3 = qh ? function() {
|
|
37101
37103
|
try {
|
|
37102
|
-
return arguments.callee,
|
|
37104
|
+
return arguments.callee, qu;
|
|
37103
37105
|
} catch {
|
|
37104
37106
|
try {
|
|
37105
37107
|
return qh(arguments, "callee").get;
|
|
37106
37108
|
} catch {
|
|
37107
|
-
return
|
|
37109
|
+
return qu;
|
|
37108
37110
|
}
|
|
37109
37111
|
}
|
|
37110
|
-
}() :
|
|
37112
|
+
}() : qu, Gn = QD()(), Ct = G_, z3 = B_, L3 = O_, $_ = rg, hc = ng, Yn = {}, O3 = typeof Uint8Array > "u" || !Ct ? Ae : Ct(Uint8Array), Js = {
|
|
37111
37113
|
__proto__: null,
|
|
37112
37114
|
"%AggregateError%": typeof AggregateError > "u" ? Ae : AggregateError,
|
|
37113
37115
|
"%Array%": Array,
|
|
@@ -37201,11 +37203,11 @@ if (Ct)
|
|
|
37201
37203
|
var V3 = function t(i) {
|
|
37202
37204
|
var e;
|
|
37203
37205
|
if (i === "%AsyncFunction%")
|
|
37204
|
-
e =
|
|
37206
|
+
e = $u("async function () {}");
|
|
37205
37207
|
else if (i === "%GeneratorFunction%")
|
|
37206
|
-
e =
|
|
37208
|
+
e = $u("function* () {}");
|
|
37207
37209
|
else if (i === "%AsyncGeneratorFunction%")
|
|
37208
|
-
e =
|
|
37210
|
+
e = $u("async function* () {}");
|
|
37209
37211
|
else if (i === "%AsyncGenerator%") {
|
|
37210
37212
|
var o = t("%AsyncGeneratorFunction%");
|
|
37211
37213
|
o && (e = o.prototype);
|
|
@@ -37267,8 +37269,8 @@ var V3 = function t(i) {
|
|
|
37267
37269
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
37268
37270
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
37269
37271
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
37270
|
-
}, cc = lc,
|
|
37271
|
-
var e =
|
|
37272
|
+
}, cc = lc, xd = W_, N3 = cc.call(hc, Array.prototype.concat), U3 = cc.call($_, Array.prototype.splice), T0 = cc.call(hc, String.prototype.replace), Sd = cc.call(hc, String.prototype.slice), G3 = cc.call(hc, RegExp.prototype.exec), W3 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, H3 = /\\(\\)?/g, $3 = function(i) {
|
|
37273
|
+
var e = Sd(i, 0, 1), o = Sd(i, -1);
|
|
37272
37274
|
if (e === "%" && o !== "%")
|
|
37273
37275
|
throw new Vr("invalid intrinsic syntax, expected closing `%`");
|
|
37274
37276
|
if (o === "%" && e !== "%")
|
|
@@ -37279,7 +37281,7 @@ var V3 = function t(i) {
|
|
|
37279
37281
|
}), s;
|
|
37280
37282
|
}, q3 = function(i, e) {
|
|
37281
37283
|
var o = i, s;
|
|
37282
|
-
if (
|
|
37284
|
+
if (xd(b0, o) && (s = b0[o], o = "%" + s[0] + "%"), xd(Js, o)) {
|
|
37283
37285
|
var n = Js[o];
|
|
37284
37286
|
if (n === Yn && (n = V3(o)), typeof n > "u" && !e)
|
|
37285
37287
|
throw new vr("intrinsic " + i + " exists, but is not available. Please file an issue!");
|
|
@@ -37300,10 +37302,10 @@ var V3 = function t(i) {
|
|
|
37300
37302
|
var o = $3(i), s = o.length > 0 ? o[0] : "", n = q3("%" + s + "%", e), r = n.name, a = n.value, l = !1, c = n.alias;
|
|
37301
37303
|
c && (s = c[0], U3(o, N3([0, 1], c)));
|
|
37302
37304
|
for (var d = 1, u = !0; d < o.length; d += 1) {
|
|
37303
|
-
var p = o[d], f =
|
|
37305
|
+
var p = o[d], f = Sd(p, 0, 1), g = Sd(p, -1);
|
|
37304
37306
|
if ((f === '"' || f === "'" || f === "`" || g === '"' || g === "'" || g === "`") && f !== g)
|
|
37305
37307
|
throw new Vr("property names with quotes must have matching quotes");
|
|
37306
|
-
if ((p === "constructor" || !u) && (l = !0), s += "." + p, r = "%" + s + "%",
|
|
37308
|
+
if ((p === "constructor" || !u) && (l = !0), s += "." + p, r = "%" + s + "%", xd(Js, r))
|
|
37307
37309
|
a = Js[r];
|
|
37308
37310
|
else if (a != null) {
|
|
37309
37311
|
if (!(p in a)) {
|
|
@@ -37315,7 +37317,7 @@ var V3 = function t(i) {
|
|
|
37315
37317
|
var v = qh(a, p);
|
|
37316
37318
|
u = !!v, u && "get" in v && !("originalValue" in v.get) ? a = v.get : a = a[p];
|
|
37317
37319
|
} else
|
|
37318
|
-
u =
|
|
37320
|
+
u = xd(a, p), a = a[p];
|
|
37319
37321
|
u && !l && (Js[r] = a);
|
|
37320
37322
|
}
|
|
37321
37323
|
}
|
|
@@ -37329,15 +37331,15 @@ var V3 = function t(i) {
|
|
|
37329
37331
|
/** @type {const} */
|
|
37330
37332
|
[o]
|
|
37331
37333
|
) : o;
|
|
37332
|
-
}, Y3 = sg(), Z3 = lg,
|
|
37333
|
-
return Y3 && i && typeof i == "object" && Symbol.toStringTag in i ? !1 :
|
|
37334
|
+
}, Y3 = sg(), Z3 = lg, Yp = Z3("Object.prototype.toString"), tu = function(i) {
|
|
37335
|
+
return Y3 && i && typeof i == "object" && Symbol.toStringTag in i ? !1 : Yp(i) === "[object Arguments]";
|
|
37334
37336
|
}, Z_ = function(i) {
|
|
37335
|
-
return
|
|
37337
|
+
return tu(i) ? !0 : i !== null && typeof i == "object" && "length" in i && typeof i.length == "number" && i.length >= 0 && Yp(i) !== "[object Array]" && "callee" in i && Yp(i.callee) === "[object Function]";
|
|
37336
37338
|
}, Q3 = function() {
|
|
37337
|
-
return
|
|
37339
|
+
return tu(arguments);
|
|
37338
37340
|
}();
|
|
37339
|
-
|
|
37340
|
-
var K3 = Q3 ?
|
|
37341
|
+
tu.isLegacyArguments = Z_;
|
|
37342
|
+
var K3 = Q3 ? tu : Z_, E0 = eu, J3 = L_, Wn = Jr, A0 = jr, hg = function(i, e, o) {
|
|
37341
37343
|
if (!i || typeof i != "object" && typeof i != "function")
|
|
37342
37344
|
throw new Wn("`obj` must be an object or a function`");
|
|
37343
37345
|
if (typeof e != "string" && typeof e != "symbol")
|
|
@@ -37362,14 +37364,14 @@ var K3 = Q3 ? eu : Z_, E0 = jd, J3 = L_, Wn = Jr, A0 = jr, hg = function(i, e, o
|
|
|
37362
37364
|
i[e] = o;
|
|
37363
37365
|
else
|
|
37364
37366
|
throw new J3("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
37365
|
-
},
|
|
37366
|
-
return !!
|
|
37367
|
+
}, Zp = eu, Q_ = function() {
|
|
37368
|
+
return !!Zp;
|
|
37367
37369
|
};
|
|
37368
37370
|
Q_.hasArrayLengthDefineBug = function() {
|
|
37369
|
-
if (!
|
|
37371
|
+
if (!Zp)
|
|
37370
37372
|
return null;
|
|
37371
37373
|
try {
|
|
37372
|
-
return
|
|
37374
|
+
return Zp([], "length", { value: 1 }).length !== 1;
|
|
37373
37375
|
} catch {
|
|
37374
37376
|
return !0;
|
|
37375
37377
|
}
|
|
@@ -37419,7 +37421,7 @@ var dc = J_, j_ = { exports: {} }, nk = q_, I0 = hg, rk = cg(), R0 = jr, D0 = Jr
|
|
|
37419
37421
|
return dk(hk, ck, arguments);
|
|
37420
37422
|
};
|
|
37421
37423
|
(function(t) {
|
|
37422
|
-
var i = lk, e =
|
|
37424
|
+
var i = lk, e = eu, o = ag, s = uk;
|
|
37423
37425
|
t.exports = function(r) {
|
|
37424
37426
|
var a = o(arguments), l = r.length - (arguments.length - 1);
|
|
37425
37427
|
return i(
|
|
@@ -37448,15 +37450,15 @@ vk(s1, {
|
|
|
37448
37450
|
implementation: wk,
|
|
37449
37451
|
shim: Ck
|
|
37450
37452
|
});
|
|
37451
|
-
var _k = s1, F0 = lg, Pk = sg(), xk = W_, Sk = jr,
|
|
37453
|
+
var _k = s1, F0 = lg, Pk = sg(), xk = W_, Sk = jr, Qp;
|
|
37452
37454
|
if (Pk) {
|
|
37453
|
-
var bk = F0("RegExp.prototype.exec"), z0 = {},
|
|
37455
|
+
var bk = F0("RegExp.prototype.exec"), z0 = {}, Xu = function() {
|
|
37454
37456
|
throw z0;
|
|
37455
37457
|
}, L0 = {
|
|
37456
|
-
toString:
|
|
37457
|
-
valueOf:
|
|
37458
|
+
toString: Xu,
|
|
37459
|
+
valueOf: Xu
|
|
37458
37460
|
};
|
|
37459
|
-
typeof Symbol.toPrimitive == "symbol" && (L0[Symbol.toPrimitive] =
|
|
37461
|
+
typeof Symbol.toPrimitive == "symbol" && (L0[Symbol.toPrimitive] = Xu), Qp = function(i) {
|
|
37460
37462
|
if (!i || typeof i != "object")
|
|
37461
37463
|
return !1;
|
|
37462
37464
|
var e = (
|
|
@@ -37482,11 +37484,11 @@ if (Pk) {
|
|
|
37482
37484
|
};
|
|
37483
37485
|
} else {
|
|
37484
37486
|
var Tk = F0("Object.prototype.toString"), Ek = "[object RegExp]";
|
|
37485
|
-
|
|
37487
|
+
Qp = function(i) {
|
|
37486
37488
|
return !i || typeof i != "object" && typeof i != "function" ? !1 : Tk(i) === Ek;
|
|
37487
37489
|
};
|
|
37488
37490
|
}
|
|
37489
|
-
var Ak =
|
|
37491
|
+
var Ak = Qp, Xh = function() {
|
|
37490
37492
|
return typeof (function() {
|
|
37491
37493
|
}).name == "string";
|
|
37492
37494
|
}, xa = Object.getOwnPropertyDescriptor;
|
|
@@ -37682,7 +37684,7 @@ function Z0(t, i) {
|
|
|
37682
37684
|
if (Xt(s, t))
|
|
37683
37685
|
return !0;
|
|
37684
37686
|
}
|
|
37685
|
-
var n = og(i,
|
|
37687
|
+
var n = og(i, Xp(t));
|
|
37686
37688
|
return n.features.length > 0;
|
|
37687
37689
|
}
|
|
37688
37690
|
function cF(t, i) {
|
|
@@ -37696,7 +37698,7 @@ function cF(t, i) {
|
|
|
37696
37698
|
if (Xt(a, t))
|
|
37697
37699
|
return !0;
|
|
37698
37700
|
}
|
|
37699
|
-
var l = og(
|
|
37701
|
+
var l = og(Xp(t), Xp(i));
|
|
37700
37702
|
return l.features.length > 0;
|
|
37701
37703
|
}
|
|
37702
37704
|
function dF(t, i, e) {
|
|
@@ -37800,7 +37802,7 @@ function fF(t, i) {
|
|
|
37800
37802
|
return pF(t, i, { strict: !0 });
|
|
37801
37803
|
}
|
|
37802
37804
|
var gF = go;
|
|
37803
|
-
const mF = /* @__PURE__ */
|
|
37805
|
+
const mF = /* @__PURE__ */ qd(gF);
|
|
37804
37806
|
function vF(t, i) {
|
|
37805
37807
|
var e = uo(t).type, o = uo(i).type;
|
|
37806
37808
|
if (e !== o)
|
|
@@ -37938,7 +37940,7 @@ function ns(t, i, e) {
|
|
|
37938
37940
|
}
|
|
37939
37941
|
return s.right = i.left, n.left = i.right, i.left = o.right, i.right = o.left, i;
|
|
37940
37942
|
}
|
|
37941
|
-
function
|
|
37943
|
+
function Yu(t, i, e, o) {
|
|
37942
37944
|
var s = new gs(t, i);
|
|
37943
37945
|
if (e === null)
|
|
37944
37946
|
return s.left = s.right = null, s;
|
|
@@ -37958,12 +37960,12 @@ function K0(t, i, e) {
|
|
|
37958
37960
|
function _F(t, i, e) {
|
|
37959
37961
|
return i === null ? t : (t === null || (i = ns(t.key, i, e), i.left = t), i);
|
|
37960
37962
|
}
|
|
37961
|
-
function
|
|
37963
|
+
function Kp(t, i, e, o, s) {
|
|
37962
37964
|
if (t) {
|
|
37963
37965
|
o("" + i + (e ? "└── " : "├── ") + s(t) + `
|
|
37964
37966
|
`);
|
|
37965
37967
|
var n = i + (e ? " " : "│ ");
|
|
37966
|
-
t.left &&
|
|
37968
|
+
t.left && Kp(t.left, n, !1, o, s), t.right && Kp(t.right, n, !0, o, s);
|
|
37967
37969
|
}
|
|
37968
37970
|
}
|
|
37969
37971
|
var dg = (
|
|
@@ -37973,7 +37975,7 @@ var dg = (
|
|
|
37973
37975
|
i === void 0 && (i = CF), this._root = null, this._size = 0, this._comparator = i;
|
|
37974
37976
|
}
|
|
37975
37977
|
return t.prototype.insert = function(i, e) {
|
|
37976
|
-
return this._size++, this._root =
|
|
37978
|
+
return this._size++, this._root = Yu(i, e, this._root, this._comparator);
|
|
37977
37979
|
}, t.prototype.add = function(i, e) {
|
|
37978
37980
|
var o = new gs(i, e);
|
|
37979
37981
|
this._root === null && (o.left = o.right = null, this._size++, this._root = o);
|
|
@@ -38102,11 +38104,11 @@ var dg = (
|
|
|
38102
38104
|
}, t.prototype.load = function(i, e, o) {
|
|
38103
38105
|
e === void 0 && (e = []), o === void 0 && (o = !1);
|
|
38104
38106
|
var s = i.length, n = this._comparator;
|
|
38105
|
-
if (o &&
|
|
38106
|
-
this._root =
|
|
38107
|
+
if (o && ef(i, e, 0, s - 1, n), this._root === null)
|
|
38108
|
+
this._root = Jp(i, e, 0, s), this._size = s;
|
|
38107
38109
|
else {
|
|
38108
38110
|
var r = SF(this.toList(), PF(i, e), n);
|
|
38109
|
-
s = this._size + s, this._root =
|
|
38111
|
+
s = this._size + s, this._root = jp({ head: r }, 0, s);
|
|
38110
38112
|
}
|
|
38111
38113
|
return this;
|
|
38112
38114
|
}, t.prototype.isEmpty = function() {
|
|
@@ -38128,12 +38130,12 @@ var dg = (
|
|
|
38128
38130
|
return String(o.key);
|
|
38129
38131
|
});
|
|
38130
38132
|
var e = [];
|
|
38131
|
-
return
|
|
38133
|
+
return Kp(this._root, "", !0, function(o) {
|
|
38132
38134
|
return e.push(o);
|
|
38133
38135
|
}, i), e.join("");
|
|
38134
38136
|
}, t.prototype.update = function(i, e, o) {
|
|
38135
38137
|
var s = this._comparator, n = K0(i, this._root, s), r = n.left, a = n.right;
|
|
38136
|
-
s(i, e) < 0 ? a =
|
|
38138
|
+
s(i, e) < 0 ? a = Yu(e, o, a, s) : r = Yu(e, o, r, s), this._root = _F(r, a, s);
|
|
38137
38139
|
}, t.prototype.split = function(i) {
|
|
38138
38140
|
return K0(i, this._root, this._comparator);
|
|
38139
38141
|
}, t.prototype[Symbol.iterator] = function() {
|
|
@@ -38162,11 +38164,11 @@ var dg = (
|
|
|
38162
38164
|
}, t;
|
|
38163
38165
|
}()
|
|
38164
38166
|
);
|
|
38165
|
-
function
|
|
38167
|
+
function Jp(t, i, e, o) {
|
|
38166
38168
|
var s = o - e;
|
|
38167
38169
|
if (s > 0) {
|
|
38168
38170
|
var n = e + Math.floor(s / 2), r = t[n], a = i[n], l = new gs(r, a);
|
|
38169
|
-
return l.left =
|
|
38171
|
+
return l.left = Jp(t, i, e, n), l.right = Jp(t, i, n + 1, o), l;
|
|
38170
38172
|
}
|
|
38171
38173
|
return null;
|
|
38172
38174
|
}
|
|
@@ -38180,11 +38182,11 @@ function xF(t) {
|
|
|
38180
38182
|
i ? (e.push(i), i = i.left) : e.length > 0 ? (i = n = n.next = e.pop(), i = i.right) : o = !0;
|
|
38181
38183
|
return n.next = null, s.next;
|
|
38182
38184
|
}
|
|
38183
|
-
function
|
|
38185
|
+
function jp(t, i, e) {
|
|
38184
38186
|
var o = e - i;
|
|
38185
38187
|
if (o > 0) {
|
|
38186
|
-
var s = i + Math.floor(o / 2), n =
|
|
38187
|
-
return r.left = n, t.head = t.head.next, r.right =
|
|
38188
|
+
var s = i + Math.floor(o / 2), n = jp(t, i, s), r = t.head;
|
|
38189
|
+
return r.left = n, t.head = t.head.next, r.right = jp(t, s + 1, e), r;
|
|
38188
38190
|
}
|
|
38189
38191
|
return null;
|
|
38190
38192
|
}
|
|
@@ -38193,7 +38195,7 @@ function SF(t, i, e) {
|
|
|
38193
38195
|
e(n.key, r.key) < 0 ? (s.next = n, n = n.next) : (s.next = r, r = r.next), s = s.next;
|
|
38194
38196
|
return n !== null ? s.next = n : r !== null && (s.next = r), o.next;
|
|
38195
38197
|
}
|
|
38196
|
-
function
|
|
38198
|
+
function ef(t, i, e, o, s) {
|
|
38197
38199
|
if (!(e >= o)) {
|
|
38198
38200
|
for (var n = t[e + o >> 1], r = e - 1, a = o + 1; ; ) {
|
|
38199
38201
|
do
|
|
@@ -38207,11 +38209,11 @@ function jp(t, i, e, o, s) {
|
|
|
38207
38209
|
var l = t[r];
|
|
38208
38210
|
t[r] = t[a], t[a] = l, l = i[r], i[r] = i[a], i[a] = l;
|
|
38209
38211
|
}
|
|
38210
|
-
|
|
38212
|
+
ef(t, i, e, a, s), ef(t, i, a + 1, o, s);
|
|
38211
38213
|
}
|
|
38212
38214
|
}
|
|
38213
38215
|
const Mo = 11102230246251565e-32, Rt = 134217729, bF = (3 + 8 * Mo) * Mo;
|
|
38214
|
-
function
|
|
38216
|
+
function Zu(t, i, e, o, s) {
|
|
38215
38217
|
let n, r, a, l, c = i[0], d = o[0], u = 0, p = 0;
|
|
38216
38218
|
d > c == d > -c ? (n = c, c = i[++u]) : (n = d, d = o[++p]);
|
|
38217
38219
|
let f = 0;
|
|
@@ -38240,18 +38242,18 @@ function IF(t, i, e, o, s, n, r) {
|
|
|
38240
38242
|
let y = TF(4, Hn), b = AF * r;
|
|
38241
38243
|
if (y >= b || -y >= b || (u = t - U, a = t - (U + u) + (u - s), u = e - W, c = e - (W + u) + (u - s), u = i - z, l = i - (z + u) + (u - n), u = o - N, d = o - (N + u) + (u - n), a === 0 && l === 0 && c === 0 && d === 0) || (b = MF * r + bF * Math.abs(y), y += U * d + N * a - (z * c + W * l), y >= b || -y >= b)) return y;
|
|
38242
38244
|
T = a * N, p = Rt * a, f = p - (p - a), g = a - f, p = Rt * N, v = p - (p - N), _ = N - v, E = g * _ - (T - f * v - g * v - f * _), D = l * W, p = Rt * l, f = p - (p - l), g = l - f, p = Rt * W, v = p - (p - W), _ = W - v, B = g * _ - (D - f * v - g * v - f * _), P = E - B, u = E - P, Gt[0] = E - (P + u) + (u - B), w = T + P, u = w - T, S = T - (w - u) + (P - u), P = S - D, u = S - P, Gt[1] = S - (P + u) + (u - D), V = w + P, u = V - w, Gt[2] = w - (V - u) + (P - u), Gt[3] = V;
|
|
38243
|
-
const R =
|
|
38245
|
+
const R = Zu(4, Hn, 4, Gt, J0);
|
|
38244
38246
|
T = U * d, p = Rt * U, f = p - (p - U), g = U - f, p = Rt * d, v = p - (p - d), _ = d - v, E = g * _ - (T - f * v - g * v - f * _), D = z * c, p = Rt * z, f = p - (p - z), g = z - f, p = Rt * c, v = p - (p - c), _ = c - v, B = g * _ - (D - f * v - g * v - f * _), P = E - B, u = E - P, Gt[0] = E - (P + u) + (u - B), w = T + P, u = w - T, S = T - (w - u) + (P - u), P = S - D, u = S - P, Gt[1] = S - (P + u) + (u - D), V = w + P, u = V - w, Gt[2] = w - (V - u) + (P - u), Gt[3] = V;
|
|
38245
|
-
const O =
|
|
38247
|
+
const O = Zu(R, J0, 4, Gt, j0);
|
|
38246
38248
|
T = a * d, p = Rt * a, f = p - (p - a), g = a - f, p = Rt * d, v = p - (p - d), _ = d - v, E = g * _ - (T - f * v - g * v - f * _), D = l * c, p = Rt * l, f = p - (p - l), g = l - f, p = Rt * c, v = p - (p - c), _ = c - v, B = g * _ - (D - f * v - g * v - f * _), P = E - B, u = E - P, Gt[0] = E - (P + u) + (u - B), w = T + P, u = w - T, S = T - (w - u) + (P - u), P = S - D, u = S - P, Gt[1] = S - (P + u) + (u - D), V = w + P, u = V - w, Gt[2] = w - (V - u) + (P - u), Gt[3] = V;
|
|
38247
|
-
const $ =
|
|
38249
|
+
const $ = Zu(O, j0, 4, Gt, ey);
|
|
38248
38250
|
return ey[$ - 1];
|
|
38249
38251
|
}
|
|
38250
38252
|
function RF(t, i, e, o, s, n) {
|
|
38251
38253
|
const r = (i - n) * (e - s), a = (t - s) * (o - n), l = r - a, c = Math.abs(r + a);
|
|
38252
38254
|
return Math.abs(l) >= EF * c ? l : -IF(t, i, e, o, s, n, c);
|
|
38253
38255
|
}
|
|
38254
|
-
const fa = (t, i) => t.ll.x <= i.x && i.x <= t.ur.x && t.ll.y <= i.y && i.y <= t.ur.y,
|
|
38256
|
+
const fa = (t, i) => t.ll.x <= i.x && i.x <= t.ur.x && t.ll.y <= i.y && i.y <= t.ur.y, tf = (t, i) => {
|
|
38255
38257
|
if (i.ur.x < t.ll.x || t.ur.x < i.ll.x || i.ur.y < t.ll.y || t.ur.y < i.ll.y) return null;
|
|
38256
38258
|
const e = t.ll.x < i.ll.x ? i.ll.x : t.ll.x, o = t.ur.x < i.ur.x ? t.ur.x : i.ur.x, s = t.ll.y < i.ll.y ? i.ll.y : t.ll.y, n = t.ur.y < i.ur.y ? t.ur.y : i.ur.y;
|
|
38257
38259
|
return {
|
|
@@ -38309,7 +38311,7 @@ class iy {
|
|
|
38309
38311
|
const Yh = new kF(), Jc = (t, i) => t.x * i.y - t.y * i.x, u1 = (t, i) => t.x * i.x + t.y * i.y, oy = (t, i, e) => {
|
|
38310
38312
|
const o = RF(t.x, t.y, i.x, i.y, e.x, e.y);
|
|
38311
38313
|
return o > 0 ? -1 : o < 0 ? 1 : 0;
|
|
38312
|
-
},
|
|
38314
|
+
}, bd = (t) => Math.sqrt(u1(t, t)), FF = (t, i, e) => {
|
|
38313
38315
|
const o = {
|
|
38314
38316
|
x: i.x - t.x,
|
|
38315
38317
|
y: i.y - t.y
|
|
@@ -38317,7 +38319,7 @@ const Yh = new kF(), Jc = (t, i) => t.x * i.y - t.y * i.x, u1 = (t, i) => t.x *
|
|
|
38317
38319
|
x: e.x - t.x,
|
|
38318
38320
|
y: e.y - t.y
|
|
38319
38321
|
};
|
|
38320
|
-
return Jc(s, o) /
|
|
38322
|
+
return Jc(s, o) / bd(s) / bd(o);
|
|
38321
38323
|
}, zF = (t, i, e) => {
|
|
38322
38324
|
const o = {
|
|
38323
38325
|
x: i.x - t.x,
|
|
@@ -38326,7 +38328,7 @@ const Yh = new kF(), Jc = (t, i) => t.x * i.y - t.y * i.x, u1 = (t, i) => t.x *
|
|
|
38326
38328
|
x: e.x - t.x,
|
|
38327
38329
|
y: e.y - t.y
|
|
38328
38330
|
};
|
|
38329
|
-
return u1(s, o) /
|
|
38331
|
+
return u1(s, o) / bd(s) / bd(o);
|
|
38330
38332
|
}, sy = (t, i, e) => i.y === 0 ? null : {
|
|
38331
38333
|
x: t.x + i.x / i.y * (e - t.y),
|
|
38332
38334
|
y: e
|
|
@@ -38562,7 +38564,7 @@ class ds {
|
|
|
38562
38564
|
* Else, return null.
|
|
38563
38565
|
*/
|
|
38564
38566
|
getIntersection(i) {
|
|
38565
|
-
const e = this.bbox(), o = i.bbox(), s =
|
|
38567
|
+
const e = this.bbox(), o = i.bbox(), s = tf(e, o);
|
|
38566
38568
|
if (s === null) return null;
|
|
38567
38569
|
const n = this.leftSE.point, r = this.rightSE.point, a = i.leftSE.point, l = i.rightSE.point, c = fa(e, a) && this.comparePoint(a) === 0, d = fa(o, n) && i.comparePoint(n) === 0, u = fa(e, l) && this.comparePoint(l) === 0, p = fa(o, r) && i.comparePoint(r) === 0;
|
|
38568
38570
|
if (d && c)
|
|
@@ -38804,7 +38806,7 @@ class ay {
|
|
|
38804
38806
|
return i;
|
|
38805
38807
|
}
|
|
38806
38808
|
}
|
|
38807
|
-
class
|
|
38809
|
+
class Td {
|
|
38808
38810
|
/* Given the segments from the sweep line pass, compute & return a series
|
|
38809
38811
|
* of closed rings from all the segments marked to be part of the result */
|
|
38810
38812
|
static factory(i) {
|
|
@@ -38833,7 +38835,7 @@ class bd {
|
|
|
38833
38835
|
}
|
|
38834
38836
|
if (f !== null) {
|
|
38835
38837
|
const v = u.splice(f)[0], _ = c.splice(v.index);
|
|
38836
|
-
_.unshift(_[0].otherSE), e.push(new
|
|
38838
|
+
_.unshift(_[0].otherSE), e.push(new Td(_.reverse()));
|
|
38837
38839
|
continue;
|
|
38838
38840
|
}
|
|
38839
38841
|
u.push({
|
|
@@ -38844,7 +38846,7 @@ class bd {
|
|
|
38844
38846
|
l = p.sort(g)[0].otherSE;
|
|
38845
38847
|
break;
|
|
38846
38848
|
}
|
|
38847
|
-
e.push(new
|
|
38849
|
+
e.push(new Td(c));
|
|
38848
38850
|
}
|
|
38849
38851
|
return e;
|
|
38850
38852
|
}
|
|
@@ -39022,13 +39024,13 @@ class GF {
|
|
|
39022
39024
|
const u = s[0];
|
|
39023
39025
|
let p = 1;
|
|
39024
39026
|
for (; p < s.length; )
|
|
39025
|
-
|
|
39027
|
+
tf(s[p].bbox, u.bbox) !== null ? p++ : s.splice(p, 1);
|
|
39026
39028
|
}
|
|
39027
39029
|
if (Gi.type === "intersection")
|
|
39028
39030
|
for (let u = 0, p = s.length; u < p; u++) {
|
|
39029
39031
|
const f = s[u];
|
|
39030
39032
|
for (let g = u + 1, v = s.length; g < v; g++)
|
|
39031
|
-
if (
|
|
39033
|
+
if (tf(f.bbox, s[g].bbox) === null) return [];
|
|
39032
39034
|
}
|
|
39033
39035
|
const n = new dg(bi.compare);
|
|
39034
39036
|
for (let u = 0, p = s.length; u < p; u++) {
|
|
@@ -39057,7 +39059,7 @@ class GF {
|
|
|
39057
39059
|
a = n.size, l = n.pop();
|
|
39058
39060
|
}
|
|
39059
39061
|
Yh.reset();
|
|
39060
|
-
const c =
|
|
39062
|
+
const c = Td.factory(r.segments);
|
|
39061
39063
|
return new VF(c).getGeom();
|
|
39062
39064
|
}
|
|
39063
39065
|
}
|
|
@@ -39084,7 +39086,7 @@ var XF = {
|
|
|
39084
39086
|
xor: $F,
|
|
39085
39087
|
difference: qF
|
|
39086
39088
|
};
|
|
39087
|
-
function
|
|
39089
|
+
function Ed(t, i, e) {
|
|
39088
39090
|
e === void 0 && (e = {});
|
|
39089
39091
|
var o = uo(t), s = uo(i), n = XF.intersection(o.coordinates, s.coordinates);
|
|
39090
39092
|
return n.length === 0 ? null : n.length === 1 ? _t(n[0], e.properties) : Yf(n, e.properties);
|
|
@@ -39104,11 +39106,11 @@ function YF(t, i, e) {
|
|
|
39104
39106
|
var Z = O * S + s - B, K = $ * T + n + U;
|
|
39105
39107
|
if (J && (K -= _ / 2), e.triangles === !0)
|
|
39106
39108
|
QF([Z, K], u / 2, f / 2, JSON.parse(o), z, N).forEach(function(le) {
|
|
39107
|
-
e.mask ?
|
|
39109
|
+
e.mask ? Ed(e.mask, le) && R.push(le) : R.push(le);
|
|
39108
39110
|
});
|
|
39109
39111
|
else {
|
|
39110
39112
|
var te = ZF([Z, K], u / 2, f / 2, JSON.parse(o), z, N);
|
|
39111
|
-
e.mask ?
|
|
39113
|
+
e.mask ? Ed(e.mask, te) && R.push(te) : R.push(te);
|
|
39112
39114
|
}
|
|
39113
39115
|
}
|
|
39114
39116
|
}
|
|
@@ -39214,7 +39216,7 @@ function jF(t, i, e) {
|
|
|
39214
39216
|
[c + n, u],
|
|
39215
39217
|
[c, u + a]
|
|
39216
39218
|
]
|
|
39217
|
-
], e.properties)), e.mask ? (
|
|
39219
|
+
], e.properties)), e.mask ? (Ed(e.mask, p) && o.push(p), Ed(e.mask, f) && o.push(f)) : (o.push(p), o.push(f)), u += a, d++;
|
|
39218
39220
|
}
|
|
39219
39221
|
l++, c += n;
|
|
39220
39222
|
}
|
|
@@ -39276,7 +39278,7 @@ function iz(t, i) {
|
|
|
39276
39278
|
}
|
|
39277
39279
|
function oz(t) {
|
|
39278
39280
|
const i = h.JulianDate.fromDate(t), e = h.Simon1994PlanetaryPositions.computeSunPositionInEarthInertialFrame(i);
|
|
39279
|
-
return
|
|
39281
|
+
return od(e);
|
|
39280
39282
|
}
|
|
39281
39283
|
function sz(t, i, e) {
|
|
39282
39284
|
const o = t[0] + (i[0] - t[0]) * e, s = t[1] + (i[1] - t[1]) * e, n = t[2] + (i[2] - t[2]) * e, r = t[3] + (i[3] - t[3]) * e;
|
|
@@ -39471,13 +39473,13 @@ void main()
|
|
|
39471
39473
|
var W = hz(D);
|
|
39472
39474
|
const Z = Math.max(W.maxy - W.miny, W.maxx - W.minx);
|
|
39473
39475
|
var z = fz(U, W, c);
|
|
39474
|
-
const K = await
|
|
39476
|
+
const K = await Qu(z, w, S, g, s.scene, u, p, Z);
|
|
39475
39477
|
var N = gz(D, c);
|
|
39476
|
-
const te = await
|
|
39478
|
+
const te = await Qu(N, w, S, g, s.scene, u, p, Z);
|
|
39477
39479
|
V.push(...K.world_cartesian), B.push(...K.local), V.push(...te.world_cartesian), B.push(...te.local);
|
|
39478
39480
|
for (let le = 0; le < D.length; ++le) {
|
|
39479
39481
|
const _e = D[le];
|
|
39480
|
-
var y = await
|
|
39482
|
+
var y = await Qu([_e], w, S, g, s.scene, u, p, Z);
|
|
39481
39483
|
if (y.local.length > 0)
|
|
39482
39484
|
B.push(...y.local), V.push(...y.world_cartesian);
|
|
39483
39485
|
else {
|
|
@@ -39731,7 +39733,7 @@ function vz(t, i) {
|
|
|
39731
39733
|
var s = _t(o);
|
|
39732
39734
|
return Xt(e, s);
|
|
39733
39735
|
}
|
|
39734
|
-
async function
|
|
39736
|
+
async function Qu(t, i, e, o, s, n, r, a) {
|
|
39735
39737
|
var l = [];
|
|
39736
39738
|
t.forEach((S) => {
|
|
39737
39739
|
var T = S.clone();
|
|
@@ -39822,7 +39824,7 @@ const ql = class ql extends qi {
|
|
|
39822
39824
|
constructor(e, o) {
|
|
39823
39825
|
super(e, o);
|
|
39824
39826
|
m(this, "_customDiv");
|
|
39825
|
-
if (this._customDiv = this.disposeVar(new
|
|
39827
|
+
if (this._customDiv = this.disposeVar(new Gd(e.id)), !o.viewer) {
|
|
39826
39828
|
console.warn("viewer is undefined!");
|
|
39827
39829
|
return;
|
|
39828
39830
|
}
|
|
@@ -39901,7 +39903,7 @@ const Xl = class Xl extends qi {
|
|
|
39901
39903
|
constructor(e, o) {
|
|
39902
39904
|
super(e, o);
|
|
39903
39905
|
m(this, "_customDiv");
|
|
39904
|
-
if (this._customDiv = this.disposeVar(new
|
|
39906
|
+
if (this._customDiv = this.disposeVar(new Gd(e.id)), !o.viewer) {
|
|
39905
39907
|
console.warn("viewer is undefined!");
|
|
39906
39908
|
return;
|
|
39907
39909
|
}
|
|
@@ -41274,14 +41276,14 @@ m(mi, "defaults", {
|
|
|
41274
41276
|
});
|
|
41275
41277
|
})(mi || (mi = {}));
|
|
41276
41278
|
ae(mi.prototype, mi.createDefaultProps);
|
|
41277
|
-
function
|
|
41279
|
+
function Ku(t, i) {
|
|
41278
41280
|
const e = new Ve(t);
|
|
41279
41281
|
return e.hasArrow = !0, e.arcType = "RHUMB", e.width = 10, e.color = i, e;
|
|
41280
41282
|
}
|
|
41281
41283
|
const xi = class xi extends L {
|
|
41282
41284
|
constructor(i) {
|
|
41283
41285
|
if (super(), !i.viewer) return;
|
|
41284
|
-
const e = this.disposeVar(
|
|
41286
|
+
const e = this.disposeVar(Ku(i, xi.defaults.xAxisColor)), o = this.disposeVar(Ku(i, xi.defaults.yAxisColor)), s = this.disposeVar(Ku(i, xi.defaults.zAxisColor));
|
|
41285
41287
|
{
|
|
41286
41288
|
const n = () => {
|
|
41287
41289
|
e.show = this.xAxisShow && this.show, o.show = this.yAxisShow && this.show, s.show = this.zAxisShow && this.show;
|
|
@@ -41619,7 +41621,7 @@ const is = class is extends mi {
|
|
|
41619
41621
|
if (e.incrementDisabledInputStack(), T.disposer.dispose(() => {
|
|
41620
41622
|
e.decrementDisabledInputStack();
|
|
41621
41623
|
}), ["xy", "x", "y"].includes(this._opInfo.constraintMode.value)) {
|
|
41622
|
-
const E = hr(this._opInfo.draggingStartPosition.value, this._opInfo.originPosition.value), D =
|
|
41624
|
+
const E = hr(this._opInfo.draggingStartPosition.value, this._opInfo.originPosition.value), D = Od(this._opInfo.draggingStartPosition.value, this._opInfo.originPosition.value);
|
|
41623
41625
|
c.restart(void 0, E, D), T.disposer.dispose(() => c.cancel());
|
|
41624
41626
|
} else this._opInfo.constraintMode.value === "z" ? (d.restart(), T.disposer.dispose(() => d.cancel())) : this._opInfo.constraintMode.value === "zAxis" ? (u.restart(), T.disposer.dispose(() => u.cancel())) : console.warn(`pickingInfo.constraintMode error! ${this._opInfo.constraintMode.value}`);
|
|
41625
41627
|
await fi(T, (E) => new Promise((D, B) => {
|
|
@@ -41669,7 +41671,7 @@ ae(vs.prototype, vs.createDefaultProps);
|
|
|
41669
41671
|
function Ay(t, i, e) {
|
|
41670
41672
|
t.xAxisColor = [1, 0, 0, 0.99], t.yAxisColor = [0, 1, 0, 0.99], t.zAxisColor = [0, 0, 1, 0.99], i === "x" ? t.xAxisColor = e ? [1, 1, 0, 0.8] : [1, 1, 0, 0.99] : i === "y" ? t.yAxisColor = e ? [1, 1, 0, 0.8] : [1, 1, 0, 0.99] : i === "z" ? t.zAxisColor = e ? [1, 1, 0, 0.8] : [1, 1, 0, 0.99] : i === "xy" && (t.xAxisColor = e ? [1, 1, 0, 0.8] : [1, 1, 0, 0.99], t.yAxisColor = e ? [1, 1, 0, 0.8] : [1, 1, 0, 0.99]);
|
|
41671
41673
|
}
|
|
41672
|
-
class ug extends
|
|
41674
|
+
class ug extends Bd {
|
|
41673
41675
|
constructor(e) {
|
|
41674
41676
|
super(e);
|
|
41675
41677
|
m(this, "_valid", !1);
|
|
@@ -42032,7 +42034,7 @@ void main()
|
|
|
42032
42034
|
}
|
|
42033
42035
|
}, Xe, t);
|
|
42034
42036
|
}
|
|
42035
|
-
class zz extends
|
|
42037
|
+
class zz extends Bd {
|
|
42036
42038
|
constructor(i) {
|
|
42037
42039
|
super(i);
|
|
42038
42040
|
const { czmViewer: e } = this.owner;
|
|
@@ -42069,7 +42071,7 @@ class zz extends Od {
|
|
|
42069
42071
|
h.Cartesian3.normalize(p, p);
|
|
42070
42072
|
const f = h.Cartesian3.subtract(u, this.owner.cartesian, new h.Cartesian3());
|
|
42071
42073
|
if (h.Cartesian3.normalize(f, f), !d.normal || !d.origin) return;
|
|
42072
|
-
const g =
|
|
42074
|
+
const g = Ju(p, f, d.normal), v = Ju(d.origin, p, d.normal), _ = Ju(d.origin, f, d.normal);
|
|
42073
42075
|
{
|
|
42074
42076
|
const P = [...this.owner.selfRotation];
|
|
42075
42077
|
P[ao.rotationNum[c]] = o.startRotation + g, this.owner.selfRotation = P, s.circleStartRotation = v, s.circleEndRotation = _;
|
|
@@ -42114,7 +42116,7 @@ class zz extends Od {
|
|
|
42114
42116
|
return this._pickPlane(c, o, "heading", a, s), this._pickPlane(c, o, "pitch", a, s), this._pickPlane(c, o, "roll", a, s), c;
|
|
42115
42117
|
}
|
|
42116
42118
|
}
|
|
42117
|
-
function
|
|
42119
|
+
function Ju(t, i, e) {
|
|
42118
42120
|
const o = h.Cartesian3.cross(i, t, new h.Cartesian3());
|
|
42119
42121
|
if (o.equals(h.Cartesian3.ZERO)) return 0;
|
|
42120
42122
|
h.Cartesian3.normalize(o, o);
|
|
@@ -42457,7 +42459,7 @@ class ys extends mi {
|
|
|
42457
42459
|
}));
|
|
42458
42460
|
}), this._opInfo.step.value = !1, await fi(p, async (f) => {
|
|
42459
42461
|
if (e.incrementDisabledInputStack(), f.disposer.dispose(() => e.decrementDisabledInputStack()), ["x", "y"].includes(this._opInfo.constraintMode.value)) {
|
|
42460
|
-
const g = hr(this._opInfo.draggingStartPosition.value, this._opInfo.originPosition.value), v =
|
|
42462
|
+
const g = hr(this._opInfo.draggingStartPosition.value, this._opInfo.originPosition.value), v = Od(this._opInfo.draggingStartPosition.value, this._opInfo.originPosition.value);
|
|
42461
42463
|
n.restart(void 0, g, v), f.disposer.dispose(() => n.cancel());
|
|
42462
42464
|
} else this._opInfo.constraintMode.value === "z" && (r.restart(), f.disposer.dispose(() => r.cancel()));
|
|
42463
42465
|
await fi(f, (g) => new Promise((v, _) => {
|
|
@@ -42826,7 +42828,7 @@ class Uz extends pt {
|
|
|
42826
42828
|
super(i), this.loop = !0;
|
|
42827
42829
|
}
|
|
42828
42830
|
}
|
|
42829
|
-
class
|
|
42831
|
+
class Ad extends g1 {
|
|
42830
42832
|
constructor(i, e) {
|
|
42831
42833
|
super(i, e);
|
|
42832
42834
|
{
|
|
@@ -42872,7 +42874,7 @@ class Ed extends g1 {
|
|
|
42872
42874
|
if (n === -1) return;
|
|
42873
42875
|
const r = o.position ? [...o.position] : void 0;
|
|
42874
42876
|
r && (r[2] += i.czmViewer.editingHeightOffset ?? 0);
|
|
42875
|
-
let a = new
|
|
42877
|
+
let a = new Ad(i, r);
|
|
42876
42878
|
i.editingPoints.splice(n + 1, 0, a), i.modify(a);
|
|
42877
42879
|
}));
|
|
42878
42880
|
}
|
|
@@ -42925,7 +42927,7 @@ class Le extends Oi {
|
|
|
42925
42927
|
const p = Mw(l, u);
|
|
42926
42928
|
if (!p) return;
|
|
42927
42929
|
p && (p[2] += this.czmViewer.editingHeightOffset ?? 0);
|
|
42928
|
-
let f = new
|
|
42930
|
+
let f = new Ad(this, p);
|
|
42929
42931
|
this.editingPoints.splice(r, 0, f), await s(n, r);
|
|
42930
42932
|
}
|
|
42931
42933
|
};
|
|
@@ -42943,7 +42945,7 @@ class Le extends Oi {
|
|
|
42943
42945
|
}
|
|
42944
42946
|
resetPositions(e) {
|
|
42945
42947
|
if (!super.resetPositions(e)) return !0;
|
|
42946
|
-
const o = e ? e.map((s) => new
|
|
42948
|
+
const o = e ? e.map((s) => new Ad(this, s)) : [];
|
|
42947
42949
|
return this.editingPoints.splice(0, this.editingPoints.length, ...o), !0;
|
|
42948
42950
|
}
|
|
42949
42951
|
get overEvent() {
|
|
@@ -43351,7 +43353,7 @@ const lh = class lh extends Jt {
|
|
|
43351
43353
|
}
|
|
43352
43354
|
};
|
|
43353
43355
|
m(lh, "type", lh.registerEditing("ESCesiumViewer", Ye.Translation, lh));
|
|
43354
|
-
let
|
|
43356
|
+
let of = lh;
|
|
43355
43357
|
const hh = class hh extends Jt {
|
|
43356
43358
|
constructor(i, e) {
|
|
43357
43359
|
super(i, e, !0);
|
|
@@ -43672,7 +43674,7 @@ const yt = class yt extends L {
|
|
|
43672
43674
|
}
|
|
43673
43675
|
};
|
|
43674
43676
|
m(yt, "KEY_ESCAPE", "Escape"), m(yt, "KEY_SPACE", "Space"), m(yt, "MOUSE_LEFT", 0), m(yt, "esEditModeInstance");
|
|
43675
|
-
let
|
|
43677
|
+
let sf = yt;
|
|
43676
43678
|
function Qz() {
|
|
43677
43679
|
const t = Fe(async (i, e, o, s) => {
|
|
43678
43680
|
e.editingEvent.emit({ objectIDs: o.map((l) => l.parentID), editingID: s, type: "start" });
|
|
@@ -43684,7 +43686,7 @@ function Qz() {
|
|
|
43684
43686
|
l.code == "Escape" && n();
|
|
43685
43687
|
};
|
|
43686
43688
|
i.disposer.ad(e.keyDownEvent.don(r));
|
|
43687
|
-
const a = new
|
|
43689
|
+
const a = new of(o, e);
|
|
43688
43690
|
i.disposer.ad(() => {
|
|
43689
43691
|
!a.isDestroyed() && a.destroy();
|
|
43690
43692
|
}), await i.promise(new Promise((l) => {
|
|
@@ -43745,7 +43747,7 @@ class eL extends L {
|
|
|
43745
43747
|
let a;
|
|
43746
43748
|
r instanceof oc ? Mt(this, r, () => {
|
|
43747
43749
|
a = i.getEngineObject(r).czmPolygonClipping, o(a);
|
|
43748
|
-
}) : r instanceof
|
|
43750
|
+
}) : r instanceof Ud && Mt(this, r.excavate, () => {
|
|
43749
43751
|
a = i.getEngineObject(r.excavate).czmPolygonClipping, o(a);
|
|
43750
43752
|
});
|
|
43751
43753
|
}
|
|
@@ -43765,7 +43767,7 @@ class tL extends L {
|
|
|
43765
43767
|
const a = o[r], l = oe.getSceneObjById(a);
|
|
43766
43768
|
if (!l) return;
|
|
43767
43769
|
let c;
|
|
43768
|
-
if (l instanceof oc ? c = i.getEngineObject(l).czmPolygonClipping : l instanceof
|
|
43770
|
+
if (l instanceof oc ? c = i.getEngineObject(l).czmPolygonClipping : l instanceof Ud && (c = i.getEngineObject(l.excavate).czmPolygonClipping), !c) return;
|
|
43769
43771
|
c && c.positions && c.positions.length >= 3 && c.enabled && (n.polygons[r] = { positions: c.positions }, n.inverse = s ?? c.reverse);
|
|
43770
43772
|
}
|
|
43771
43773
|
this._czmViewer.sceneGlobeClippingPolygons = n;
|
|
@@ -43978,9 +43980,9 @@ function hL(t) {
|
|
|
43978
43980
|
function cL() {
|
|
43979
43981
|
return h.VERSION.split(".").map((i) => parseInt(i));
|
|
43980
43982
|
}
|
|
43981
|
-
let
|
|
43983
|
+
let ju;
|
|
43982
43984
|
function dL() {
|
|
43983
|
-
return
|
|
43985
|
+
return ju || (ju = cL()), ju;
|
|
43984
43986
|
}
|
|
43985
43987
|
function uL() {
|
|
43986
43988
|
const t = dL();
|
|
@@ -44212,7 +44214,7 @@ const Ch = class Ch extends L {
|
|
|
44212
44214
|
};
|
|
44213
44215
|
//@ts-ignore
|
|
44214
44216
|
m(Ch, "oldUpdate", h.ParticleSystem.prototype.update);
|
|
44215
|
-
let
|
|
44217
|
+
let nf = Ch;
|
|
44216
44218
|
function EL() {
|
|
44217
44219
|
if (h.ParticleSystem.prototype.timeStamp !== void 0) {
|
|
44218
44220
|
console.warn("fixParticleSystem已经执行过!");
|
|
@@ -44338,8 +44340,8 @@ const rs = {
|
|
|
44338
44340
|
MetallicRoughness: XL,
|
|
44339
44341
|
SpecularGlossiness: YL,
|
|
44340
44342
|
Specular: ZL,
|
|
44341
|
-
Anisotropy:
|
|
44342
|
-
Clearcoat:
|
|
44343
|
+
Anisotropy: ep,
|
|
44344
|
+
Clearcoat: tp,
|
|
44343
44345
|
Material: QL
|
|
44344
44346
|
//@ts-ignore
|
|
44345
44347
|
} = h.ModelComponents;
|
|
@@ -44352,7 +44354,7 @@ function KL() {
|
|
|
44352
44354
|
})), h.defined(this._processError)) {
|
|
44353
44355
|
this._state = rs.FAILED;
|
|
44354
44356
|
const s = this._processError;
|
|
44355
|
-
this._processError = void 0,
|
|
44357
|
+
this._processError = void 0, ip(this, s);
|
|
44356
44358
|
}
|
|
44357
44359
|
const i = this._textureErrors.pop();
|
|
44358
44360
|
if (h.defined(i)) {
|
|
@@ -44365,13 +44367,13 @@ function KL() {
|
|
|
44365
44367
|
try {
|
|
44366
44368
|
e = this._process(t);
|
|
44367
44369
|
} catch (s) {
|
|
44368
|
-
this._state = rs.FAILED,
|
|
44370
|
+
this._state = rs.FAILED, ip(this, s);
|
|
44369
44371
|
}
|
|
44370
44372
|
let o = !1;
|
|
44371
44373
|
try {
|
|
44372
44374
|
o = this._processTextures(t);
|
|
44373
44375
|
} catch (s) {
|
|
44374
|
-
this._textureState = rs.FAILED,
|
|
44376
|
+
this._textureState = rs.FAILED, ip(this, s);
|
|
44375
44377
|
}
|
|
44376
44378
|
return this._incrementallyLoadTextures ? e : e && o;
|
|
44377
44379
|
};
|
|
@@ -44627,7 +44629,7 @@ function n4(t, i, e) {
|
|
|
44627
44629
|
void 0
|
|
44628
44630
|
)), l.diffuseFactor = gi(h.Cartesian4, n), l.specularFactor = gi(h.Cartesian3, r), l.glossinessFactor = a, l;
|
|
44629
44631
|
}
|
|
44630
|
-
function
|
|
44632
|
+
function ip(t, i) {
|
|
44631
44633
|
throw t.unload(), t.getError("Failed to load glTF", i);
|
|
44632
44634
|
}
|
|
44633
44635
|
function r4(t, i) {
|
|
@@ -44718,7 +44720,7 @@ function u4(t, i, e) {
|
|
|
44718
44720
|
}
|
|
44719
44721
|
function p4(t, i) {
|
|
44720
44722
|
const e = i.indices, o = t.gltfJson.accessors[e];
|
|
44721
|
-
return
|
|
44723
|
+
return Md(t, o, !1);
|
|
44722
44724
|
}
|
|
44723
44725
|
const f4 = {
|
|
44724
44726
|
gltfSemantic: void 0,
|
|
@@ -44917,10 +44919,10 @@ function x4(t, i, e) {
|
|
|
44917
44919
|
}
|
|
44918
44920
|
function S4(t, i, e) {
|
|
44919
44921
|
const {
|
|
44920
|
-
anisotropyStrength: o =
|
|
44921
|
-
anisotropyRotation: s =
|
|
44922
|
+
anisotropyStrength: o = ep.DEFAULT_ANISOTROPY_STRENGTH,
|
|
44923
|
+
anisotropyRotation: s = ep.DEFAULT_ANISOTROPY_ROTATION,
|
|
44922
44924
|
anisotropyTexture: n
|
|
44923
|
-
} = i, r = new
|
|
44925
|
+
} = i, r = new ep();
|
|
44924
44926
|
return h.defined(n) && (r.anisotropyTexture = Yt(
|
|
44925
44927
|
t,
|
|
44926
44928
|
n,
|
|
@@ -44930,12 +44932,12 @@ function S4(t, i, e) {
|
|
|
44930
44932
|
}
|
|
44931
44933
|
function b4(t, i, e) {
|
|
44932
44934
|
const {
|
|
44933
|
-
clearcoatFactor: o =
|
|
44935
|
+
clearcoatFactor: o = tp.DEFAULT_CLEARCOAT_FACTOR,
|
|
44934
44936
|
clearcoatTexture: s,
|
|
44935
|
-
clearcoatRoughnessFactor: n =
|
|
44937
|
+
clearcoatRoughnessFactor: n = tp.DEFAULT_CLEARCOAT_ROUGHNESS_FACTOR,
|
|
44936
44938
|
clearcoatRoughnessTexture: r,
|
|
44937
44939
|
clearcoatNormalTexture: a
|
|
44938
|
-
} = i, l = new
|
|
44940
|
+
} = i, l = new tp();
|
|
44939
44941
|
return h.defined(s) && (l.clearcoatTexture = Yt(
|
|
44940
44942
|
t,
|
|
44941
44943
|
s,
|
|
@@ -44990,7 +44992,7 @@ function T4(t, i, e) {
|
|
|
44990
44992
|
const n = i.inverseBindMatrices;
|
|
44991
44993
|
if (h.defined(n)) {
|
|
44992
44994
|
const r = t.gltfJson.accessors[n];
|
|
44993
|
-
o.inverseBindMatrices =
|
|
44995
|
+
o.inverseBindMatrices = Md(t, r, void 0);
|
|
44994
44996
|
} else
|
|
44995
44997
|
o.inverseBindMatrices = new Array(s.length).fill(
|
|
44996
44998
|
h.Matrix4.IDENTITY
|
|
@@ -45070,7 +45072,7 @@ function D4(t, i, e, o) {
|
|
|
45070
45072
|
), i.featureIds.push(p);
|
|
45071
45073
|
}
|
|
45072
45074
|
}
|
|
45073
|
-
function
|
|
45075
|
+
function Md(t, i, e) {
|
|
45074
45076
|
const o = new Array(i.count), s = i.bufferView;
|
|
45075
45077
|
if (h.defined(s)) {
|
|
45076
45078
|
const n = B4(t, s), r = N4(
|
|
@@ -45190,12 +45192,12 @@ function z4(t, i, e, o, s, n) {
|
|
|
45190
45192
|
}
|
|
45191
45193
|
function L4(t, i) {
|
|
45192
45194
|
const e = new BL(), o = t.gltfJson.accessors, s = o[i.input];
|
|
45193
|
-
e.input =
|
|
45195
|
+
e.input = Md(t, s, void 0);
|
|
45194
45196
|
const n = i.interpolation;
|
|
45195
45197
|
e.interpolation = //@ts-ignore
|
|
45196
45198
|
h.InterpolationType[n] ?? h.InterpolationType.LINEAR;
|
|
45197
45199
|
const r = o[i.output];
|
|
45198
|
-
return e.output =
|
|
45200
|
+
return e.output = Md(t, r, !0), e;
|
|
45199
45201
|
}
|
|
45200
45202
|
function O4(t, i, e) {
|
|
45201
45203
|
const o = new NL(), s = t.sampler;
|
|
@@ -45536,7 +45538,7 @@ class t5 extends L {
|
|
|
45536
45538
|
e.setStatus("Creating"), e.setStatusLog("正在创建Cesium视口...");
|
|
45537
45539
|
const c = sL;
|
|
45538
45540
|
await a.promise(e5());
|
|
45539
|
-
const d = await a.promise(
|
|
45541
|
+
const d = await a.promise(hp(c(l, s)));
|
|
45540
45542
|
d.scene._xbsjOriginSkyAtmosphere = d.scene.skyAtmosphere, d.scene._xbsjOriginSkyBox = d.scene.skyBox, d.scene.renderError.removeEventListener(d.cesiumWidget._onRenderError), d.clockViewModel.currentTime = h.JulianDate.fromDate(new Date(e.currentTime)), this.dispose(e.currentTimeChanged.disposableOn(() => {
|
|
45541
45543
|
if (e.currentTime === void 0) return;
|
|
45542
45544
|
const u = h.JulianDate.fromDate(new Date(e.currentTime));
|
|
@@ -45873,13 +45875,13 @@ class c5 extends L {
|
|
|
45873
45875
|
S = v.id instanceof h.Entity ? {
|
|
45874
45876
|
name: v.id.label.text.getValue(U),
|
|
45875
45877
|
properties: (D = v.id.properties) == null ? void 0 : D.getValue(U),
|
|
45876
|
-
coordinates:
|
|
45878
|
+
coordinates: od(v.id.position.getValue(U))
|
|
45877
45879
|
} : (B = v.id) == null ? void 0 : B.map((W) => {
|
|
45878
45880
|
var z;
|
|
45879
45881
|
return {
|
|
45880
45882
|
name: W.id,
|
|
45881
45883
|
properties: (z = W.properties) == null ? void 0 : z.getValue(U),
|
|
45882
|
-
coordinates:
|
|
45884
|
+
coordinates: od(W.position.getValue(U))
|
|
45883
45885
|
};
|
|
45884
45886
|
});
|
|
45885
45887
|
} else if (w instanceof Cw) {
|
|
@@ -45898,7 +45900,7 @@ class c5 extends L {
|
|
|
45898
45900
|
coordinates: N,
|
|
45899
45901
|
properties: z
|
|
45900
45902
|
};
|
|
45901
|
-
} else if (w instanceof
|
|
45903
|
+
} else if (w instanceof jc) {
|
|
45902
45904
|
let U;
|
|
45903
45905
|
Reflect.has(v, "featureId") ? U = v.featureId : Reflect.has(v, "instanceId") && (U = v.instanceId), U && (v.id = v.primitive.structuralMetadata.getPropertyTable(0).getProperty(v.instanceId, "id"));
|
|
45904
45906
|
}
|
|
@@ -45980,10 +45982,10 @@ class u5 extends L {
|
|
|
45980
45982
|
const c = o.disposeVar(Fe(async (d) => {
|
|
45981
45983
|
if (r.pickingManager && a.value)
|
|
45982
45984
|
if (this.quickPickPosition) {
|
|
45983
|
-
const u = await d.promise(
|
|
45985
|
+
const u = await d.promise(hp(r.pickingManager.quickPickPosition(a.value)));
|
|
45984
45986
|
this._cursorPosition.value = u;
|
|
45985
45987
|
} else {
|
|
45986
|
-
const u = await d.promise(
|
|
45988
|
+
const u = await d.promise(hp(r.pickingManager.pickPosition(a.value)));
|
|
45987
45989
|
this._cursorPosition.value = u;
|
|
45988
45990
|
}
|
|
45989
45991
|
}));
|
|
@@ -46013,7 +46015,7 @@ function Bi(t) {
|
|
|
46013
46015
|
return cf(t, "_viewerExtensions");
|
|
46014
46016
|
}
|
|
46015
46017
|
function Hy(t, i) {
|
|
46016
|
-
|
|
46018
|
+
ed(t, "_viewerExtensions", i);
|
|
46017
46019
|
}
|
|
46018
46020
|
class p5 extends L {
|
|
46019
46021
|
constructor(e, o) {
|
|
@@ -46148,7 +46150,7 @@ class f5 extends L {
|
|
|
46148
46150
|
s[n[r]] = !0;
|
|
46149
46151
|
}
|
|
46150
46152
|
}
|
|
46151
|
-
class
|
|
46153
|
+
class Id extends L {
|
|
46152
46154
|
constructor(e) {
|
|
46153
46155
|
super();
|
|
46154
46156
|
m(this, "_currentKeyIds", /* @__PURE__ */ new Set());
|
|
@@ -46171,14 +46173,14 @@ class Md extends L {
|
|
|
46171
46173
|
const { keyboardCameraController: o } = this._keyboardCameraControllerRunning;
|
|
46172
46174
|
{
|
|
46173
46175
|
const s = (n) => {
|
|
46174
|
-
const r =
|
|
46176
|
+
const r = Id.getKeyId(n);
|
|
46175
46177
|
this._currentKeyIds.has(r) || (this._currentKeyIds.add(r), this._currentKeyIdsChanged.emit());
|
|
46176
46178
|
};
|
|
46177
46179
|
this.d(o.keyDownEvent.don(s));
|
|
46178
46180
|
}
|
|
46179
46181
|
{
|
|
46180
46182
|
const s = (n) => {
|
|
46181
|
-
const r =
|
|
46183
|
+
const r = Id.getKeyId(n);
|
|
46182
46184
|
this._currentKeyIds.has(r) && (this._currentKeyIds.delete(r), this._currentKeyIdsChanged.emit());
|
|
46183
46185
|
};
|
|
46184
46186
|
this.d(o.keyUpEvent.don(s));
|
|
@@ -46214,7 +46216,7 @@ class g5 extends L {
|
|
|
46214
46216
|
super();
|
|
46215
46217
|
m(this, "_keyStatus");
|
|
46216
46218
|
m(this, "_cameraOp");
|
|
46217
|
-
this._keyboardCameraController = e, this._keyStatus = this.dv(new
|
|
46219
|
+
this._keyboardCameraController = e, this._keyStatus = this.dv(new Id(this)), this._cameraOp = this.dv(new f5(this));
|
|
46218
46220
|
}
|
|
46219
46221
|
get keyboardCameraController() {
|
|
46220
46222
|
return this._keyboardCameraController;
|
|
@@ -46226,11 +46228,11 @@ class g5 extends L {
|
|
|
46226
46228
|
return this._cameraOp;
|
|
46227
46229
|
}
|
|
46228
46230
|
}
|
|
46229
|
-
const
|
|
46231
|
+
const zd = class zd extends L {
|
|
46230
46232
|
constructor(e) {
|
|
46231
46233
|
super();
|
|
46232
46234
|
m(this, "_enabled", this.dv(G(!1)));
|
|
46233
|
-
m(this, "_keyStatusMap", this.dv(G(
|
|
46235
|
+
m(this, "_keyStatusMap", this.dv(G(zd.defaultKeyStatusMap)));
|
|
46234
46236
|
/**
|
|
46235
46237
|
* 米/毫秒
|
|
46236
46238
|
*/
|
|
@@ -46315,7 +46317,7 @@ const Fd = class Fd extends L {
|
|
|
46315
46317
|
this._abortEvent.emit();
|
|
46316
46318
|
}
|
|
46317
46319
|
};
|
|
46318
|
-
m(
|
|
46320
|
+
m(zd, "defaultKeyStatusMap", {
|
|
46319
46321
|
ShiftLeft: "WithCamera",
|
|
46320
46322
|
ShiftRight: "WithCamera",
|
|
46321
46323
|
KeyW: "MoveForward",
|
|
@@ -46330,7 +46332,7 @@ m(Fd, "defaultKeyStatusMap", {
|
|
|
46330
46332
|
KeyF: "SpeedDown",
|
|
46331
46333
|
KeyQ: "SwitchAlwaysWithCamera"
|
|
46332
46334
|
});
|
|
46333
|
-
let
|
|
46335
|
+
let Rd = zd;
|
|
46334
46336
|
function m5(t, i) {
|
|
46335
46337
|
t.lookRight(h.Math.toRadians(i.movementX) * 0.1), t.lookDown(h.Math.toRadians(i.movementY) * 0.1);
|
|
46336
46338
|
const e = t.pitch, o = h.Math.clamp(e, -h.Math.PI_OVER_TWO, h.Math.PI_OVER_TWO);
|
|
@@ -46356,14 +46358,14 @@ class v5 extends L {
|
|
|
46356
46358
|
}
|
|
46357
46359
|
}
|
|
46358
46360
|
}
|
|
46359
|
-
const
|
|
46361
|
+
const Ld = class Ld extends L {
|
|
46360
46362
|
constructor(e) {
|
|
46361
46363
|
super();
|
|
46362
46364
|
m(this, "_mouseMoving", this.dv(new v5(this.firstPersonController, this.mouseCameraController)));
|
|
46363
46365
|
this._mouseCameraController = e;
|
|
46364
46366
|
const { viewer: o } = this.firstPersonController;
|
|
46365
46367
|
this.mouseCameraController.enableViewerOriginInputs(!1), this.dispose(() => this.mouseCameraController.enableViewerOriginInputs(!0)), Element.prototype.setPointerCapture = () => {
|
|
46366
|
-
}, this.dispose(() => Element.prototype.setPointerCapture =
|
|
46368
|
+
}, this.dispose(() => Element.prototype.setPointerCapture = Ld.origin_setPointerCapture);
|
|
46367
46369
|
const s = o.canvas;
|
|
46368
46370
|
s.requestPointerLock(), this.dispose(() => document.exitPointerLock());
|
|
46369
46371
|
{
|
|
@@ -46389,8 +46391,8 @@ const zd = class zd extends L {
|
|
|
46389
46391
|
return this._mouseMoving;
|
|
46390
46392
|
}
|
|
46391
46393
|
};
|
|
46392
|
-
m(
|
|
46393
|
-
let
|
|
46394
|
+
m(Ld, "origin_setPointerCapture", Element.prototype.setPointerCapture);
|
|
46395
|
+
let rf = Ld;
|
|
46394
46396
|
class y5 extends L {
|
|
46395
46397
|
constructor(e) {
|
|
46396
46398
|
super();
|
|
@@ -46400,7 +46402,7 @@ class y5 extends L {
|
|
|
46400
46402
|
});
|
|
46401
46403
|
m(this, "_mouseResetting", this.dv(new he(this.enabledChanged, () => {
|
|
46402
46404
|
if (this.enabled)
|
|
46403
|
-
return new
|
|
46405
|
+
return new rf(this);
|
|
46404
46406
|
})));
|
|
46405
46407
|
this._firstPersonController = e;
|
|
46406
46408
|
}
|
|
@@ -46425,7 +46427,7 @@ class w5 extends L {
|
|
|
46425
46427
|
super();
|
|
46426
46428
|
m(this, "viewer");
|
|
46427
46429
|
m(this, "_mouseCameraController", this.dv(new y5(this)));
|
|
46428
|
-
m(this, "_keyboardCameraController", this.dv(new
|
|
46430
|
+
m(this, "_keyboardCameraController", this.dv(new Rd(this)));
|
|
46429
46431
|
if (this._viewer = e, !this._viewer.viewer) throw new Error("Cesium.Viewer不存在!");
|
|
46430
46432
|
this.viewer = this._viewer.viewer;
|
|
46431
46433
|
}
|
|
@@ -46460,7 +46462,7 @@ class w5 extends L {
|
|
|
46460
46462
|
function Zy(t) {
|
|
46461
46463
|
t.removeInputAction(h.ScreenSpaceEventType.LEFT_DOWN), t.removeInputAction(h.ScreenSpaceEventType.RIGHT_DOWN), t.removeInputAction(h.ScreenSpaceEventType.MIDDLE_DOWN), t.removeInputAction(h.ScreenSpaceEventType.MOUSE_MOVE), t.removeInputAction(h.ScreenSpaceEventType.LEFT_UP), t.removeInputAction(h.ScreenSpaceEventType.RIGHT_UP), t.removeInputAction(h.ScreenSpaceEventType.MIDDLE_UP);
|
|
46462
46464
|
}
|
|
46463
|
-
function
|
|
46465
|
+
function op(t, i, e, o = void 0) {
|
|
46464
46466
|
const n = t.camera, r = new h.Cartesian2();
|
|
46465
46467
|
r.x = i.startPosition.x, r.y = 0;
|
|
46466
46468
|
const a = new h.Cartesian2();
|
|
@@ -47200,7 +47202,7 @@ class M5 extends L {
|
|
|
47200
47202
|
const s = () => this._firstPersonController.keyboardCameraController.abort();
|
|
47201
47203
|
o.addEventListener("blur", s, !1), this.d(() => o.removeEventListener("blur", s, !1));
|
|
47202
47204
|
}
|
|
47203
|
-
this._firstPersonController.keyboardEnabled = !1, this._firstPersonController.mouseEnabled = !1, this._firstPersonController.keyboardCameraController.speed = 6e-3, this._firstPersonController.keyboardCameraController.rotateSpeed = 0.05, this._firstPersonController.keyboardCameraController.alwaysWithCamera = !1, this._firstPersonController.keyboardCameraController.keyStatusMap =
|
|
47205
|
+
this._firstPersonController.keyboardEnabled = !1, this._firstPersonController.mouseEnabled = !1, this._firstPersonController.keyboardCameraController.speed = 6e-3, this._firstPersonController.keyboardCameraController.rotateSpeed = 0.05, this._firstPersonController.keyboardCameraController.alwaysWithCamera = !1, this._firstPersonController.keyboardCameraController.keyStatusMap = Rd.defaultKeyStatusMap, this.d(this._firstPersonController.keyboardEnabledChanged.don(() => {
|
|
47204
47206
|
var o;
|
|
47205
47207
|
(o = this._viewer.subContainer) == null || o.focus();
|
|
47206
47208
|
}));
|
|
@@ -47281,19 +47283,19 @@ class M5 extends L {
|
|
|
47281
47283
|
s && Zy(s);
|
|
47282
47284
|
}), e == "Walk" || e == "RotateGlobe" ? (n.lookEventTypes = void 0, n.rotateEventTypes = void 0, n.tiltEventTypes = void 0, n.zoomEventTypes = void 0, n.translateEventTypes = void 0, s && e == "Walk" && (s.setInputAction((r) => {
|
|
47283
47285
|
s.setInputAction((a) => {
|
|
47284
|
-
|
|
47286
|
+
op(o.scene, a, n);
|
|
47285
47287
|
}, h.ScreenSpaceEventType.MOUSE_MOVE), s.setInputAction((a) => {
|
|
47286
47288
|
s.removeInputAction(h.ScreenSpaceEventType.MOUSE_MOVE), s.removeInputAction(h.ScreenSpaceEventType.LEFT_UP);
|
|
47287
47289
|
}, h.ScreenSpaceEventType.LEFT_UP);
|
|
47288
47290
|
}, h.ScreenSpaceEventType.LEFT_DOWN), s.setInputAction((r) => {
|
|
47289
47291
|
s.setInputAction((a) => {
|
|
47290
|
-
|
|
47292
|
+
op(o.scene, a, n);
|
|
47291
47293
|
}, h.ScreenSpaceEventType.MOUSE_MOVE), s.setInputAction((a) => {
|
|
47292
47294
|
s.removeInputAction(h.ScreenSpaceEventType.MOUSE_MOVE), s.removeInputAction(h.ScreenSpaceEventType.RIGHT_UP);
|
|
47293
47295
|
}, h.ScreenSpaceEventType.RIGHT_UP);
|
|
47294
47296
|
}, h.ScreenSpaceEventType.RIGHT_DOWN), s.setInputAction((r) => {
|
|
47295
47297
|
s.setInputAction((a) => {
|
|
47296
|
-
|
|
47298
|
+
op(o.scene, a, n);
|
|
47297
47299
|
}, h.ScreenSpaceEventType.MOUSE_MOVE), s.setInputAction((a) => {
|
|
47298
47300
|
s.removeInputAction(h.ScreenSpaceEventType.MOUSE_MOVE), s.removeInputAction(h.ScreenSpaceEventType.MIDDLE_UP);
|
|
47299
47301
|
}, h.ScreenSpaceEventType.MIDDLE_UP);
|
|
@@ -48373,15 +48375,15 @@ class V5 extends L {
|
|
|
48373
48375
|
}
|
|
48374
48376
|
}
|
|
48375
48377
|
}
|
|
48376
|
-
const
|
|
48377
|
-
function
|
|
48378
|
+
const af = h.BoundingRectangle, N5 = h.Color, as = h.defined, U5 = h.destroyObject, Qy = h.DeveloperError, G5 = h.RenderState, W5 = h.ShaderSource, H5 = h._shadersViewportQuadFS, $5 = h.BlendingState, Ky = h.Material;
|
|
48379
|
+
function iu(t) {
|
|
48378
48380
|
this.show = !0;
|
|
48379
48381
|
let i;
|
|
48380
|
-
as(i) || (i = new
|
|
48382
|
+
as(i) || (i = new af()), this.rectangle = af.clone(i), as(t) || (t = Ky.fromType(Ky.ColorType, {
|
|
48381
48383
|
color: new N5(1, 1, 1, 1)
|
|
48382
48384
|
})), this.material = t, this._material = void 0, this._overlayCommand = void 0, this._rs = void 0;
|
|
48383
48385
|
}
|
|
48384
|
-
|
|
48386
|
+
iu.prototype.update = function(t) {
|
|
48385
48387
|
if (this.show) {
|
|
48386
48388
|
if (!as(this.material))
|
|
48387
48389
|
throw new Qy("this.material must be defined.");
|
|
@@ -48389,7 +48391,7 @@ tu.prototype.update = function(t) {
|
|
|
48389
48391
|
throw new Qy("this.rectangle must be defined.");
|
|
48390
48392
|
this.rectangle.width = t.context.drawingBufferWidth, this.rectangle.height = t.context.drawingBufferHeight;
|
|
48391
48393
|
var i = this._rs;
|
|
48392
|
-
(!as(i) || !
|
|
48394
|
+
(!as(i) || !af.equals(i.viewport, this.rectangle)) && (this._rs = G5.fromCache({
|
|
48393
48395
|
blending: $5.ALPHA_BLEND,
|
|
48394
48396
|
viewport: this.rectangle
|
|
48395
48397
|
}), this._overlayCommand && (this._overlayCommand.renderState = this._rs));
|
|
@@ -48412,10 +48414,10 @@ tu.prototype.update = function(t) {
|
|
|
48412
48414
|
return this._overlayCommand;
|
|
48413
48415
|
}
|
|
48414
48416
|
};
|
|
48415
|
-
|
|
48417
|
+
iu.prototype.isDestroyed = function() {
|
|
48416
48418
|
return !1;
|
|
48417
48419
|
};
|
|
48418
|
-
|
|
48420
|
+
iu.prototype.destroy = function() {
|
|
48419
48421
|
return as(this._overlayCommand) && (this._overlayCommand.shaderProgram = this._overlayCommand.shaderProgram && this._overlayCommand.shaderProgram.destroy()), U5(this);
|
|
48420
48422
|
};
|
|
48421
48423
|
function Jy(t) {
|
|
@@ -48577,7 +48579,7 @@ Object.defineProperties(ea.prototype, {
|
|
|
48577
48579
|
ea.prototype.setDynamicLighting = function(t) {
|
|
48578
48580
|
this._radiiAndDynamicAtmosphereColor.z = t;
|
|
48579
48581
|
};
|
|
48580
|
-
const
|
|
48582
|
+
const sp = new To();
|
|
48581
48583
|
ea.prototype.update = function(t, i) {
|
|
48582
48584
|
if (!this.show)
|
|
48583
48585
|
return;
|
|
@@ -48607,15 +48609,15 @@ ea.prototype.update = function(t, i) {
|
|
|
48607
48609
|
const n = To.fromRotationTranslation(
|
|
48608
48610
|
t.context.uniformState.inverseViewRotation,
|
|
48609
48611
|
Jo.ZERO,
|
|
48610
|
-
|
|
48612
|
+
sp
|
|
48611
48613
|
), r = To.multiplyTransformation(
|
|
48612
48614
|
n,
|
|
48613
48615
|
oO.Y_UP_TO_Z_UP,
|
|
48614
|
-
|
|
48616
|
+
sp
|
|
48615
48617
|
), a = To.multiply(
|
|
48616
48618
|
this._scaleMatrix,
|
|
48617
48619
|
r,
|
|
48618
|
-
|
|
48620
|
+
sp
|
|
48619
48621
|
);
|
|
48620
48622
|
To.clone(a, this._modelMatrix);
|
|
48621
48623
|
const l = t.context, c = hO(this), d = t.globeTranslucencyState.translucent, u = this.perFragmentAtmosphere || d || !wo(i) || !i.show, p = this._command;
|
|
@@ -48796,16 +48798,16 @@ const lr = class lr extends L {
|
|
|
48796
48798
|
p("splitPosition", (g) => s.scene.splitPosition = g), p("resolutionScale", (g) => s.resolutionScale = g), p("msaaSamples", (g) => s.scene.msaaSamples = g), f("shadows", (g) => s.shadows = g), p("scenePpsfxaaEnabled", (g) => a.postProcessStages.fxaa.enabled = g), f("scenePpsAmbientOcclusionEnabled", (g) => a.postProcessStages.ambientOcclusion.enabled = g), f("scenePpsAmbientOcclusionAmbientOcclusionOnly", (g) => a.postProcessStages.ambientOcclusion.uniforms.ambientOcclusionOnly = g), f("scenePpsAmbientOcclusionIntensity", (g) => a.postProcessStages.ambientOcclusion.uniforms.intensity = g), f("scenePpsAmbientOcclusionBias", (g) => a.postProcessStages.ambientOcclusion.uniforms.bias = g), f("scenePpsAmbientOcclusionLengthCap", (g) => a.postProcessStages.ambientOcclusion.uniforms.lengthCap = g), f("scenePpsAmbientOcclusionStepSize", (g) => a.postProcessStages.ambientOcclusion.uniforms.stepSize = g), f("scenePpsAmbientOcclusionBlurStepSize", (g) => a.postProcessStages.ambientOcclusion.uniforms.blurStepSize = g), f("scenePpsBloomEnabled", (g) => a.postProcessStages.bloom.enabled = g), f("scenePpsBloomGlowOnly", (g) => a.postProcessStages.bloom.uniforms.glowOnly = g), f("scenePpsBloomContrast", (g) => a.postProcessStages.bloom.uniforms.contrast = g), f("scenePpsBloomBrightness", (g) => a.postProcessStages.bloom.uniforms.brightness = g), f("scenePpsBloomDelta", (g) => a.postProcessStages.bloom.uniforms.delta = g), f("scenePpsBloomSigma", (g) => a.postProcessStages.bloom.uniforms.sigma = g), f("scenePpsBloomStepSize", (g) => a.postProcessStages.bloom.uniforms.stepSize = g), p("globeShow", (g) => a.globe.show = g), p("depthTestAgainstTerrain", (g) => {
|
|
48797
48799
|
a.globe.depthTestAgainstTerrain = g;
|
|
48798
48800
|
}), a.globe.translucency.enabled = !0, p("terrainOpacity", (g) => {
|
|
48799
|
-
a.globe.translucency.frontFaceAlpha = a.globe.translucency.backFaceAlpha =
|
|
48801
|
+
a.globe.translucency.frontFaceAlpha = a.globe.translucency.backFaceAlpha = lp(g, 0, 1);
|
|
48800
48802
|
}), p("sceneGlobeShadows", (g) => a.globe.shadows = h.ShadowMode[g]), f("sceneGlobeTerrainExaggeration", (g) => a.globe.terrainExaggeration = g), f("sceneGlobeTerrainExaggerationRelativeHeight", (g) => a.globe.terrainExaggerationRelativeHeight = g), f("sceneGlobeVerticalExaggeration", (g) => a.globe.verticalExaggeration = g), f("sceneGlobeVerticalExaggerationRelativeHeight", (g) => a.globe.verticalExaggerationRelativeHeight = g), f("sceneGlobeBackFaceCulling", (g) => a.globe.backFaceCulling = g), f("sceneGlobeShowSkirts", (g) => a.globe.showSkirts = g), f("sceneGlobeShowWaterEffect", (g) => a.globe.showWaterEffect = g), f("sceneGlobeBaseColor", (g) => a.globe.baseColor = de(g)), f("sceneGlobeCartographicLimitRectangle", (g) => a.globe.cartographicLimitRectangle = at(g)), f("sceneGlobeClippingPlanes", (g) => {
|
|
48801
48803
|
if (!a.globe.clippingPlanes) {
|
|
48802
|
-
a.globe.clippingPlanes =
|
|
48804
|
+
a.globe.clippingPlanes = Hd(g ?? { enabled: !1 });
|
|
48803
48805
|
return;
|
|
48804
48806
|
}
|
|
48805
48807
|
gf(a.globe.clippingPlanes, g);
|
|
48806
48808
|
}), f("sceneGlobeClippingPolygons", (g) => {
|
|
48807
48809
|
a.globe.clippingPolygons = g ? mf(g) : void 0;
|
|
48808
|
-
}), p("sceneSunGlowFactor", (g) => a.sun && (a.sun.glowFactor = g)), p("moon", (g) => a.moon && (a.moon.show = g)), p("sceneMoonOnlySunLighting", (g) => a.moon && (a.moon.onlySunLighting = g)), p("sceneMoonTextureUrl", (g) => a.moon && (a.moon.textureUrl = oe.context.getStrFromEnv(g))), f("sceneSkyBoxShow", (g) => a._xbsjOriginSkyBox.show = g), p("sceneSkyBoxSources", (g) => a._xbsjOriginSkyBox.sources = g && Jy(g)), f("atmosphere", (g) => s.scene._xbsjOriginSkyAtmosphere.show = g), f("sceneBackgroundColor", (g) => s.scene.backgroundColor = de(g)), p("sceneFogEnabled", (g) => a.fog.enabled = g), p("sceneFogDensity", (g) => a.fog.density = g), p("sceneFogScreenSpaceErrorFactor", (g) => a.fog.screenSpaceErrorFactor = g), p("sceneFogMinimumBrightness", (g) => a.fog.minimumBrightness = g), p("sceneDebugShowFramesPerSecond", (g) => a.debugShowFramesPerSecond = g), p("sceneDebugShowCommands", (g) => a.debugShowCommands = g), p("sceneDebugShowFrustums", (g) => a.debugShowFrustums = g), p("sceneDebugShowFrustumPlanes", (g) => a.debugShowFrustumPlanes = g), p("sceneDebugShowDepthFrustum", (g) => a.debugShowDepthFrustum = g), p("sceneGlobeUndergroundColor", (g) => c.undergroundColor = de(g)), p("sceneGlobeUndergroundColorAlphaByDistance", (g) => c.undergroundColorAlphaByDistance = Xs(g)), p("sceneGlobeTranslucencyBackFaceAlphaByDistance", (g) => c.translucency.backFaceAlphaByDistance = g && Xs(g)), f("sceneGlobeTranslucencyFrontFaceAlphaByDistance", (g) => c.translucency.frontFaceAlphaByDistance = g && Xs(g)), p("sceneGlobeTranslucencyRectangle", (g) => c.translucency.rectangle = at(g)), p("sceneSplitPosition", (g) => a.splitPosition =
|
|
48810
|
+
}), p("sceneSunGlowFactor", (g) => a.sun && (a.sun.glowFactor = g)), p("moon", (g) => a.moon && (a.moon.show = g)), p("sceneMoonOnlySunLighting", (g) => a.moon && (a.moon.onlySunLighting = g)), p("sceneMoonTextureUrl", (g) => a.moon && (a.moon.textureUrl = oe.context.getStrFromEnv(g))), f("sceneSkyBoxShow", (g) => a._xbsjOriginSkyBox.show = g), p("sceneSkyBoxSources", (g) => a._xbsjOriginSkyBox.sources = g && Jy(g)), f("atmosphere", (g) => s.scene._xbsjOriginSkyAtmosphere.show = g), f("sceneBackgroundColor", (g) => s.scene.backgroundColor = de(g)), p("sceneFogEnabled", (g) => a.fog.enabled = g), p("sceneFogDensity", (g) => a.fog.density = g), p("sceneFogScreenSpaceErrorFactor", (g) => a.fog.screenSpaceErrorFactor = g), p("sceneFogMinimumBrightness", (g) => a.fog.minimumBrightness = g), p("sceneDebugShowFramesPerSecond", (g) => a.debugShowFramesPerSecond = g), p("sceneDebugShowCommands", (g) => a.debugShowCommands = g), p("sceneDebugShowFrustums", (g) => a.debugShowFrustums = g), p("sceneDebugShowFrustumPlanes", (g) => a.debugShowFrustumPlanes = g), p("sceneDebugShowDepthFrustum", (g) => a.debugShowDepthFrustum = g), p("sceneGlobeUndergroundColor", (g) => c.undergroundColor = de(g)), p("sceneGlobeUndergroundColorAlphaByDistance", (g) => c.undergroundColorAlphaByDistance = Xs(g)), p("sceneGlobeTranslucencyBackFaceAlphaByDistance", (g) => c.translucency.backFaceAlphaByDistance = g && Xs(g)), f("sceneGlobeTranslucencyFrontFaceAlphaByDistance", (g) => c.translucency.frontFaceAlphaByDistance = g && Xs(g)), p("sceneGlobeTranslucencyRectangle", (g) => c.translucency.rectangle = at(g)), p("sceneSplitPosition", (g) => a.splitPosition = lp(g, 0, 1)), p("sceneSsccEnableCollisionDetection", (g) => a.screenSpaceCameraController.enableCollisionDetection = g), p("sceneSsccZoomFactor", (g) => a.screenSpaceCameraController._zoomFactor = g);
|
|
48809
48811
|
{
|
|
48810
48812
|
const g = () => {
|
|
48811
48813
|
s.cesiumInspector && (s.cesiumInspector.container.style.display = n.showCesiumInspector ?? !1 ? "block" : "none");
|
|
@@ -48823,7 +48825,7 @@ const lr = class lr extends L {
|
|
|
48823
48825
|
}
|
|
48824
48826
|
this.ad(new he(n.particleGlobalControlChanged, () => {
|
|
48825
48827
|
if (!n.particleGlobalControl)
|
|
48826
|
-
return new
|
|
48828
|
+
return new nf();
|
|
48827
48829
|
}));
|
|
48828
48830
|
}
|
|
48829
48831
|
}
|
|
@@ -48844,7 +48846,7 @@ const lr = class lr extends L {
|
|
|
48844
48846
|
m(lr, "BackGroundResetting", class extends L {
|
|
48845
48847
|
constructor(o, s) {
|
|
48846
48848
|
super(), this._czmViewer = o, this._viewer = s;
|
|
48847
|
-
const n = new
|
|
48849
|
+
const n = new iu();
|
|
48848
48850
|
n.material = h.Material.fromType("Image");
|
|
48849
48851
|
const r = this._viewer;
|
|
48850
48852
|
r.scene.skyBox = n, this.dispose(() => r.scene.skyBox = r.scene._xbsjOriginSkyBox);
|
|
@@ -48886,7 +48888,7 @@ m(lr, "LocalSkyBoxResetting", class extends L {
|
|
|
48886
48888
|
return this._skyAtmosphere;
|
|
48887
48889
|
}
|
|
48888
48890
|
});
|
|
48889
|
-
let
|
|
48891
|
+
let lf = lr;
|
|
48890
48892
|
function cO(t, i, e, o, s) {
|
|
48891
48893
|
var n = h.Cartesian3.subtract(t, e, new h.Cartesian3()), r = h.Cartesian3.dot(n, i);
|
|
48892
48894
|
if (!(r <= 0))
|
|
@@ -48910,15 +48912,15 @@ const uO = h.Ellipsoid.WGS84.maximumRadius * 2 * Math.PI / 512;
|
|
|
48910
48912
|
function pO(t) {
|
|
48911
48913
|
return -Math.log2(t / uO);
|
|
48912
48914
|
}
|
|
48913
|
-
var
|
|
48915
|
+
var np = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8];
|
|
48914
48916
|
function fO(t) {
|
|
48915
48917
|
const i = t | 0;
|
|
48916
48918
|
if (i < 1 || i > 1e8) return;
|
|
48917
48919
|
let e = -1;
|
|
48918
|
-
for (; i >=
|
|
48920
|
+
for (; i >= np[++e]; )
|
|
48919
48921
|
;
|
|
48920
|
-
const o = i /
|
|
48921
|
-
return [o *
|
|
48922
|
+
const o = i / np[e - 1] | 0;
|
|
48923
|
+
return [o * np[e - 1], o, e];
|
|
48922
48924
|
}
|
|
48923
48925
|
class gO extends L {
|
|
48924
48926
|
constructor() {
|
|
@@ -49455,7 +49457,7 @@ function bO() {
|
|
|
49455
49457
|
const o = window.prompt(e, t);
|
|
49456
49458
|
o && window.open(o, "_blank");
|
|
49457
49459
|
}
|
|
49458
|
-
const wt = class wt extends
|
|
49460
|
+
const wt = class wt extends cp {
|
|
49459
49461
|
constructor(e) {
|
|
49460
49462
|
super(e);
|
|
49461
49463
|
/**
|
|
@@ -49468,7 +49470,7 @@ const wt = class wt extends hp {
|
|
|
49468
49470
|
m(this, "pickCustomAttachedInfo");
|
|
49469
49471
|
m(this, "_fps", this.dv(G(0)));
|
|
49470
49472
|
m(this, "_notSupportEditingCount", this.disposeVar(G(0)));
|
|
49471
|
-
m(this, "_editingSystem",
|
|
49473
|
+
m(this, "_editingSystem", sf);
|
|
49472
49474
|
m(this, "_moveObjectsProcess", this.ad(Qz()));
|
|
49473
49475
|
if (e.type !== "ESCesiumViewer") throw new Error("option.type must be ESCesiumViewer");
|
|
49474
49476
|
this.ad(new Jz(this)), this.ad(new jz(this)), this.dv(new he(this.viewerChanged, () => {
|
|
@@ -49476,7 +49478,7 @@ const wt = class wt extends hp {
|
|
|
49476
49478
|
return new oL(this);
|
|
49477
49479
|
})), this._viewerLegend = this.dv(new mO(this)), this._viewerInstance = this.dv(new he(this.viewerChanged, () => {
|
|
49478
49480
|
if (this.viewer)
|
|
49479
|
-
return new
|
|
49481
|
+
return new lf(this, this.viewer);
|
|
49480
49482
|
})), this.d(this.viewerChanged.don((s) => {
|
|
49481
49483
|
this.viewer && (this.viewer.scene.globe.baseColor = de([1, 1, 1, 1]));
|
|
49482
49484
|
}));
|
|
@@ -49592,7 +49594,7 @@ const wt = class wt extends hp {
|
|
|
49592
49594
|
[e[0], e[3], 0],
|
|
49593
49595
|
[e[2], e[3], 0],
|
|
49594
49596
|
[e[2], e[1], 0]
|
|
49595
|
-
], r =
|
|
49597
|
+
], r = hf(n);
|
|
49596
49598
|
if (!r) return;
|
|
49597
49599
|
const { center: a, radius: l } = r, c = {
|
|
49598
49600
|
position: a,
|
|
@@ -49734,7 +49736,7 @@ const wt = class wt extends hp {
|
|
|
49734
49736
|
more: [
|
|
49735
49737
|
...e.more,
|
|
49736
49738
|
new ye([], "通用", "通用"),
|
|
49737
|
-
new
|
|
49739
|
+
new id([this, "createCesiumViewerFuncStr"], "CesiumViewer创建函数", SO, xO, !0),
|
|
49738
49740
|
new ur([], () => wt.getCesiumIonToken(), [], "获取官方token"),
|
|
49739
49741
|
new ur([], () => this.setCurrentDefaultAccessToken(), [], "重置为当前使用的Cesium版本的token"),
|
|
49740
49742
|
new ur([], () => this.setLatestDefaultAccessToken(), [], "最新token", "重置为当前Cesium官方的最新token"),
|
|
@@ -49839,7 +49841,7 @@ const wt = class wt extends hp {
|
|
|
49839
49841
|
}
|
|
49840
49842
|
};
|
|
49841
49843
|
m(wt, "type", wt.register("ESCesiumViewer", wt)), m(wt, "getCesiumIonToken", bO), m(wt, "currentDefaultAccessToken", h.Ion.defaultAccessToken), m(wt, "latestDefaultAccessToken"), m(wt, "ObjectsToExcludeWrapper", iL), m(wt, "defaults", {
|
|
49842
|
-
...
|
|
49844
|
+
...cp.defaults,
|
|
49843
49845
|
flashLighting: !1,
|
|
49844
49846
|
resolutionScale: 1,
|
|
49845
49847
|
msaaSamples: 4,
|
|
@@ -49896,18 +49898,18 @@ m(wt, "type", wt.register("ESCesiumViewer", wt)), m(wt, "getCesiumIonToken", bO)
|
|
|
49896
49898
|
let We = wt;
|
|
49897
49899
|
((t) => {
|
|
49898
49900
|
t.createDefaultProps = () => ({
|
|
49899
|
-
...
|
|
49901
|
+
...cp.createDefaultProps(),
|
|
49900
49902
|
...PO()
|
|
49901
49903
|
});
|
|
49902
49904
|
})(We || (We = {}));
|
|
49903
49905
|
ae(We.prototype, We.createDefaultProps);
|
|
49904
|
-
let
|
|
49906
|
+
let rp;
|
|
49905
49907
|
try {
|
|
49906
|
-
const t = "earthsdk3-cesium", i = "3.5.0-beta.
|
|
49908
|
+
const t = "earthsdk3-cesium", i = "3.5.0-beta.20", e = "2025-10-23T10:01:13.000Z", o = "北京西部世界科技有限公司", s = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", n = "d1e7c72f07f84b9908276e9d5e2728f3852f06c6", a = ((Date.now() - 1761213673e3) / 36e5).toFixed(1), l = `%c🌏 ${t}%c ${i}.${n.slice(0, 8)}.${e} (距今${a}个小时)
|
|
49907
49909
|
%c${s ? s + `
|
|
49908
49910
|
` : ""}当前网站正在使用${t},此软件版权归${o}所有
|
|
49909
49911
|
`;
|
|
49910
|
-
|
|
49912
|
+
rp = Object.freeze({
|
|
49911
49913
|
// @ts-ignore
|
|
49912
49914
|
get owner() {
|
|
49913
49915
|
return "北京西部世界科技有限公司";
|
|
@@ -49917,7 +49919,7 @@ try {
|
|
|
49917
49919
|
},
|
|
49918
49920
|
// @ts-ignore
|
|
49919
49921
|
get gituri() {
|
|
49920
|
-
return GITURI_ && GITURI_.replace("${commitId}", "
|
|
49922
|
+
return GITURI_ && GITURI_.replace("${commitId}", "d1e7c72f07f84b9908276e9d5e2728f3852f06c6");
|
|
49921
49923
|
},
|
|
49922
49924
|
// @ts-ignore
|
|
49923
49925
|
get info() {
|
|
@@ -49925,7 +49927,7 @@ try {
|
|
|
49925
49927
|
},
|
|
49926
49928
|
// @ts-ignore
|
|
49927
49929
|
get date() {
|
|
49928
|
-
return "2025-10-
|
|
49930
|
+
return "2025-10-23T10:01:13.000Z";
|
|
49929
49931
|
},
|
|
49930
49932
|
// @ts-ignore
|
|
49931
49933
|
get author() {
|
|
@@ -49933,7 +49935,7 @@ try {
|
|
|
49933
49935
|
},
|
|
49934
49936
|
// @ts-ignore
|
|
49935
49937
|
get version() {
|
|
49936
|
-
return "3.5.0-beta.
|
|
49938
|
+
return "3.5.0-beta.20";
|
|
49937
49939
|
},
|
|
49938
49940
|
// @ts-ignore
|
|
49939
49941
|
get name() {
|
|
@@ -49941,7 +49943,7 @@ try {
|
|
|
49941
49943
|
},
|
|
49942
49944
|
// @ts-ignore
|
|
49943
49945
|
get commitId() {
|
|
49944
|
-
return "
|
|
49946
|
+
return "d1e7c72f07f84b9908276e9d5e2728f3852f06c6";
|
|
49945
49947
|
},
|
|
49946
49948
|
print() {
|
|
49947
49949
|
console.info(
|
|
@@ -49968,7 +49970,7 @@ try {
|
|
|
49968
49970
|
`
|
|
49969
49971
|
);
|
|
49970
49972
|
}
|
|
49971
|
-
}), window.g_XE3CopyRights = window.g_XE3CopyRights || {}, window.g_XE3CopyRights[t] =
|
|
49973
|
+
}), window.g_XE3CopyRights = window.g_XE3CopyRights || {}, window.g_XE3CopyRights[t] = rp, window.g_earthsdk_copyright_print = window.g_earthsdk_copyright_print ?? !0, window.g_earthsdk_copyright_print && rp.print();
|
|
49972
49974
|
} catch {
|
|
49973
49975
|
}
|
|
49974
49976
|
hx();
|
|
@@ -49984,7 +49986,7 @@ export {
|
|
|
49984
49986
|
jO as CursorFloatDiv,
|
|
49985
49987
|
eB as CursorInfo,
|
|
49986
49988
|
ke as Czm3DTiles,
|
|
49987
|
-
|
|
49989
|
+
up as CzmCameraChanged,
|
|
49988
49990
|
tB as CzmCanvasAndDivSwitchPoi,
|
|
49989
49991
|
Yw as CzmCanvasPoi,
|
|
49990
49992
|
br as CzmCircle,
|
|
@@ -50038,7 +50040,7 @@ export {
|
|
|
50038
50040
|
fv as CzmESImageLabel,
|
|
50039
50041
|
gv as CzmESImageryLayer,
|
|
50040
50042
|
Dv as CzmESKml,
|
|
50041
|
-
|
|
50043
|
+
Jd as CzmESLabel,
|
|
50042
50044
|
kv as CzmESLocalCircle,
|
|
50043
50045
|
Fv as CzmESLocalLineString,
|
|
50044
50046
|
zv as CzmESLocalLineStringZ,
|
|
@@ -50115,22 +50117,22 @@ export {
|
|
|
50115
50117
|
ci as CzmView,
|
|
50116
50118
|
Hr as CzmViewDistanceRangeControl,
|
|
50117
50119
|
Tr as CzmWater,
|
|
50118
|
-
|
|
50120
|
+
ad as CzmWaterPrimitive,
|
|
50119
50121
|
Qh as DoublePointsAppendEditing,
|
|
50120
50122
|
Dy as DoublePointsAppendEditingWrapper,
|
|
50121
50123
|
Ur as DoublePointsModifyEditing,
|
|
50122
50124
|
ky as DoublePointsModifyEditingWrapper,
|
|
50123
50125
|
We as ESCesiumViewer,
|
|
50124
|
-
|
|
50125
|
-
|
|
50126
|
-
|
|
50127
|
-
|
|
50128
|
-
|
|
50129
|
-
|
|
50130
|
-
|
|
50131
|
-
|
|
50132
|
-
|
|
50133
|
-
|
|
50126
|
+
Np as ESCustomPrimitive,
|
|
50127
|
+
Op as ESGeHistoryImagery,
|
|
50128
|
+
Wp as ESGeoBezierPath,
|
|
50129
|
+
wd as ESGeoSmoothPolygon,
|
|
50130
|
+
Bp as ESKml,
|
|
50131
|
+
Vp as ESLocalLineString,
|
|
50132
|
+
yd as ESLocalLineStringZ,
|
|
50133
|
+
Lp as ESMVTLayer,
|
|
50134
|
+
Gp as ESRoad,
|
|
50135
|
+
Up as ESSignalTransmission,
|
|
50134
50136
|
Io as GeoCanvasImagePoi,
|
|
50135
50137
|
Ah as GeoCanvasMenuPoi,
|
|
50136
50138
|
ps as GeoCanvasPoi,
|
|
@@ -50170,18 +50172,18 @@ export {
|
|
|
50170
50172
|
YA as ToGCJ02WebMercatorTilingScheme,
|
|
50171
50173
|
ZA as ToWGS84WebMercatorTilingScheme,
|
|
50172
50174
|
vs as TranslationEditing,
|
|
50173
|
-
|
|
50175
|
+
of as TranslationEditingWrapper,
|
|
50174
50176
|
p5 as ViewerExtensions,
|
|
50175
50177
|
Kh as VisibilityAppendEditing,
|
|
50176
50178
|
Ny as VisibilityAppendEditingWrapper,
|
|
50177
50179
|
Jh as VisibilityModifyEditing,
|
|
50178
50180
|
Uy as VisibilityModifyEditingWrapper,
|
|
50179
50181
|
ks as Widget2D,
|
|
50180
|
-
|
|
50182
|
+
gp as Widget3D,
|
|
50181
50183
|
yf as WinPosFromCartesian,
|
|
50182
50184
|
Lo as XbsjGroundPolylinePrimitive,
|
|
50183
|
-
|
|
50184
|
-
|
|
50185
|
+
sf as _ESEditModeInstance,
|
|
50186
|
+
rd as angleToHumanStr,
|
|
50185
50187
|
ZO as areaToHumanStr,
|
|
50186
50188
|
bt as bindNorthRotation,
|
|
50187
50189
|
NS as capture,
|
|
@@ -50189,8 +50191,8 @@ export {
|
|
|
50189
50191
|
Cz as computeCutPoint,
|
|
50190
50192
|
qe as computeCzmModelMatrix,
|
|
50191
50193
|
Ew as computePickingInfoWithCoordinates,
|
|
50192
|
-
|
|
50193
|
-
|
|
50194
|
+
rp as copyright,
|
|
50195
|
+
Hd as createClippingPlaneCollection,
|
|
50194
50196
|
mf as createClippingPolygonCollection,
|
|
50195
50197
|
IS as createGeoBoudingSphereReactFromPositions,
|
|
50196
50198
|
WO as createHelperLine,
|
|
@@ -50216,7 +50218,7 @@ export {
|
|
|
50216
50218
|
wi as flyWithPrimitive,
|
|
50217
50219
|
DO as fromCartesian,
|
|
50218
50220
|
dx as fromCartesian2,
|
|
50219
|
-
|
|
50221
|
+
od as fromCartesian3,
|
|
50220
50222
|
ux as fromCartesian4,
|
|
50221
50223
|
_r as fromCartographic,
|
|
50222
50224
|
FO as fromColor,
|
|
@@ -50256,7 +50258,7 @@ export {
|
|
|
50256
50258
|
Ow as getPolygonPointsFromHierarchy,
|
|
50257
50259
|
Tw as getQuaternion,
|
|
50258
50260
|
vx as getQuaternionWithXForwardZUp,
|
|
50259
|
-
|
|
50261
|
+
dp as getQuaternionWithYForwardZUp,
|
|
50260
50262
|
Si as getResource,
|
|
50261
50263
|
ws as getSceneScaleForScreenPixelSize,
|
|
50262
50264
|
rb as getSharedTexturePool,
|
|
@@ -50287,7 +50289,7 @@ export {
|
|
|
50287
50289
|
Pf as rpToap,
|
|
50288
50290
|
gf as setClippingPlaneCollection,
|
|
50289
50291
|
Wg as setCylinderGeometry,
|
|
50290
|
-
|
|
50292
|
+
nd as setModelMaterial,
|
|
50291
50293
|
AS as setRectangleGeometry,
|
|
50292
50294
|
Hy as setViewerExtensions,
|
|
50293
50295
|
oo as toCartesian,
|
|
@@ -50297,7 +50299,7 @@ export {
|
|
|
50297
50299
|
kO as toCartographic,
|
|
50298
50300
|
Uw as toCoefficients,
|
|
50299
50301
|
de as toColor,
|
|
50300
|
-
|
|
50302
|
+
Wd as toDistanceDisplayCondition,
|
|
50301
50303
|
Re as toEllipsoid,
|
|
50302
50304
|
px as toHeadingPitchRoll,
|
|
50303
50305
|
Xs as toNearFarScalar,
|