@u-gis/ue 3.0.7-beta.1 → 3.0.7

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.
@@ -1,11 +1,11 @@
1
- var Si = Object.defineProperty;
2
- var Ti = (a, e, t) => e in a ? Si(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
- var h = (a, e, t) => Ti(a, typeof e != "symbol" ? e + "" : e, t);
4
- import { ESViewer as Ie, ESSceneObject as D, PickedResult as ze, PickedInfo as xi, ViewerCustomInteraction as si, getGeoBoundingSphereFromPositions as Ri, EngineObject as J, ES3DTileset as oi, ESVisualObject as it, ESImageryLayer as V, ESTerrainLayer as ki, ESAlarm as Li, ESApertureEffect as Di, ESGeoPolygon as Pi, ESAreaMeasurement as O, ESBlastParticleSystem as Bi, ESBoxClipping as $i, ESCameraView as _i, ESCameraVisibleRange as Mi, ESCar as Wi, ESClassification as st, ESClippingPlane as Ai, ESDataMesh as z, ESDatasmithRuntimeModel as Ui, ESDirectionMeasurement as Ni, ESDistanceMeasurement as ke, ESLocalPolygon as zi, ESDynamicWater as bi, ESEntityCluster as Hi, ESExcavate as Ji, ESFireParticleSystem as Gi, ESForestTileset as U, ESGeoDiv as be, ESImageLabel as ai, ESGeoJson as Ki, ESGeoLineString as Xi, ESGeoRectangle as Zi, ESGeoWater as Qi, rpToap as Ce, ESGltfModel as Yi, ESHeightMeasurement as qi, ESHuman as Vi, ESLevelRuntimeModel as Oi, ESLocalCircle as ji, ESLocalPolygonZ as tn, ESLocalRectangle as en, ESLocalSkyBox as rn, ESLocationMeasurement as nn, ESPipeFence as sn, ESPipeline as on, ESPipeserTileset as an, ESPit as dn, ESPoi2D as ln, ESPoi3D as cn, ESPoiTileset as un, ESPolygonFence as hn, ESPolygonFlattenedPlane as pn, ESPolygonWithHole as fn, ESRtsTileset as vn, ESSeparateFoliage as gn, addTreesCallFunc as wn, removeAllTreesCallFunc as yn, updateTreeParamsCallFunc as mn, cutDownTreesCallFunc as Cn, growthSimulationCallFunc as Fn, ESSubmergingAnalysis as In, ESSunshineAnalysis as En, ESSurfaceAreaMeasurement as Sn, ESTextLabel as Tn, ESUEWidget as xn, ESUnrealActor as Rn, ESVideoFusion as kn, ESViewShed as Ln, ESVisibilityAnalysis as Dn, ESVolumeMeasurement as Pn, ESWidget as Bn, ESHumanPoi as $n, ESNavigator as j, ESCustomDiv as di, ESPath as _n, ESViewerStatusBar as W, ESGaussianSplatting as Mn, ESRtsFeatureEditing as Wn, SceneObjectPickedInfo as An, ESMsTileset as Un, ESGeoExtrudedPolygon as me, ESStaticMesh as Nn } from "@u-gis/core";
5
- import { reactArrayWithUndefined as zn, HasOwner as bn, Destroyable as m, createGuid as P, Event as E, createAnimateFrame as li, createInterval as Ee, react as _, createNextAnimateFrameEvent as R, ObjResettingWithEvent as T, createProcessingFromAsyncFunc as Se, sleep as Hn, extendClassProps as Jn, reactJson as $e, track as F, bind as L } from "xbsj-base";
6
- import { Logger as ci, Config as ui, TextParameters as Gn, Flags as rt, NumericParameters as hi, PixelStreaming as pi } from "@epicgames-ps/lib-pixelstreamingfrontend-ue5.4";
7
- import Kn from "html2canvas";
8
- const Xn = {
1
+ var Ei = Object.defineProperty;
2
+ var Si = (l, e, t) => e in l ? Ei(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t;
3
+ var h = (l, e, t) => Si(l, typeof e != "symbol" ? e + "" : e, t);
4
+ import { ESViewer as Ie, ESSceneObject as P, PickedResult as Ne, PickedInfo as Ti, ViewerCustomInteraction as ni, getGeoBoundingSphereFromPositions as xi, EngineObject as b, ES3DTileset as si, ESVisualObject as it, ESImageryLayer as V, ESTerrainLayer as Ri, ESAlarm as ki, ESApertureEffect as Li, ESGeoPolygon as Pi, ESAreaMeasurement as O, ESBlastParticleSystem as Bi, ESBoxClipping as Di, ESCameraView as Mi, ESCameraVisibleRange as $i, ESCar as Wi, ESClassification as st, ESClippingPlane as Ai, ESDataMesh as z, ESDatasmithRuntimeModel as _i, ESDirectionMeasurement as Ui, ESDistanceMeasurement as ke, ESLocalPolygon as Ni, ESDynamicWater as zi, ESEntityCluster as Hi, ESExcavate as Ji, ESFireParticleSystem as bi, ESForestTileset as U, ESGeoDiv as ze, ESImageLabel as oi, ESGeoJson as Gi, ESGeoLineString as Ki, ESGeoRectangle as Xi, ESGeoWater as Qi, rpToap as Ce, ESGltfModel as Yi, ESHeightMeasurement as qi, ESHuman as Zi, ESLevelRuntimeModel as Vi, ESLocalCircle as Oi, ESLocalPolygonZ as ji, ESLocalRectangle as tn, ESLocalSkyBox as en, ESLocationMeasurement as rn, ESPipeFence as nn, ESPipeline as sn, ESPipeserTileset as on, ESPit as an, ESPoi2D as ln, ESPoi3D as dn, ESPoiTileset as cn, ESPolygonFence as un, ESPolygonFlattenedPlane as hn, ESPolygonWithHole as pn, ESRtsTileset as vn, ESSeparateFoliage as fn, addTreesCallFunc as gn, removeAllTreesCallFunc as wn, updateTreeParamsCallFunc as yn, cutDownTreesCallFunc as mn, growthSimulationCallFunc as Cn, ESSubmergingAnalysis as Fn, ESSunshineAnalysis as In, ESSurfaceAreaMeasurement as En, ESTextLabel as Sn, ESUEWidget as Tn, ESUnrealActor as xn, ESVideoFusion as Rn, ESViewShed as kn, ESVisibilityAnalysis as Ln, ESVolumeMeasurement as Pn, ESWidget as Bn, ESHumanPoi as Dn, ESNavigator as j, ESCustomDiv as ai, ESPath as Mn, ESViewerStatusBar as A, ESGaussianSplatting as $n, ESRtsFeatureEditing as Wn, SceneObjectPickedInfo as An, ESMsTileset as _n, ESGeoExtrudedPolygon as me, ESStaticMesh as Un } from "@u-gis/core";
5
+ import { reactArrayWithUndefined as Nn, HasOwner as zn, Destroyable as m, createGuid as B, Event as E, createAnimateFrame as li, createInterval as Ee, react as $, createNextAnimateFrameEvent as R, ObjResettingWithEvent as T, createProcessingFromAsyncFunc as Se, sleep as Hn, extendClassProps as Jn, reactJson as De, track as F, bind as L } from "xbsj-base";
6
+ import { Logger as di, Config as ci, TextParameters as bn, Flags as rt, NumericParameters as ui, PixelStreaming as hi } from "@epicgames-ps/lib-pixelstreamingfrontend-ue5.4";
7
+ import Gn from "html2canvas";
8
+ const Kn = {
9
9
  ...Ie.defaults,
10
10
  geoReferenceOrigin: void 0,
11
11
  keepWorldOriginNearCamera: !1,
@@ -17,14 +17,14 @@ const Xn = {
17
17
  emissiveIntensity: 1,
18
18
  statusUpdateInterval: 0.5,
19
19
  baseUrl: window.location.href ?? ""
20
- }, fi = () => ({
20
+ }, pi = () => ({
21
21
  ...Ie.createCommonProps(),
22
22
  //语音模式
23
23
  apiKey: "",
24
24
  apiUrl: "",
25
25
  secretKey: "",
26
26
  speechVoiceMode: "",
27
- geoReferenceOrigin: zn(void 0),
27
+ geoReferenceOrigin: Nn(void 0),
28
28
  //地理参考原点
29
29
  keepWorldOriginNearCamera: void 0,
30
30
  //地理参考的保持世界原点开关
@@ -45,18 +45,18 @@ const Xn = {
45
45
  //基础路径
46
46
  });
47
47
  function Te() {
48
- const a = fi(), e = [];
49
- return Object.keys(a).forEach((t) => {
48
+ const l = pi(), e = [];
49
+ return Object.keys(l).forEach((t) => {
50
50
  e.push(t);
51
51
  }), e;
52
52
  }
53
- function _e(a) {
54
- const { defaults: e } = H, t = Te(), r = {};
53
+ function Me(l) {
54
+ const { defaults: e } = J, t = Te(), r = {};
55
55
  return t.forEach((i) => {
56
- r[i] = a[i] ?? e[i];
56
+ r[i] = l[i] ?? e[i];
57
57
  }), r;
58
58
  }
59
- const Zn = {
59
+ const Xn = {
60
60
  Response: 1
61
61
  }, Fe = {
62
62
  /*
@@ -66,7 +66,7 @@ const Zn = {
66
66
  UIInteraction: 50,
67
67
  MouseWheel: 75
68
68
  };
69
- class Qn extends bn {
69
+ class Qn extends zn {
70
70
  constructor(t, r) {
71
71
  super(t);
72
72
  // private _responseEvent = this.disposeVar(new XEvent<[string]>());
@@ -82,15 +82,15 @@ class Qn extends bn {
82
82
  if (this.isDestroyed())
83
83
  return;
84
84
  let n = i.target.result, s = new Uint32Array(n), o = 0;
85
- if (s[0] === Zn.Response) {
85
+ if (s[0] === Xn.Response) {
86
86
  o += 4;
87
87
  let u = s[o / 4];
88
88
  o += 4;
89
- for (let l = 0; l < u; l++) {
90
- let f = s[o / 4];
89
+ for (let d = 0; d < u; d++) {
90
+ let v = s[o / 4];
91
91
  o += 4;
92
- let v = new TextDecoder("utf-8").decode(n.slice(o, o + f));
93
- o += f, this._processResponseFn(v);
92
+ let f = new TextDecoder("utf-8").decode(n.slice(o, o + v));
93
+ o += v, this._processResponseFn(f);
94
94
  }
95
95
  }
96
96
  }, r.readAsArrayBuffer(t.data);
@@ -143,7 +143,7 @@ class Qn extends bn {
143
143
  }
144
144
  window.g_emitDescriptor_maxBytes = 3e4;
145
145
  let Yn = -1;
146
- ci.SetLoggerVerbosity(1);
146
+ di.SetLoggerVerbosity(1);
147
147
  class qn extends m {
148
148
  constructor(t, r) {
149
149
  super();
@@ -157,18 +157,18 @@ class qn extends m {
157
157
  return t;
158
158
  })());
159
159
  h(this, "_pixelStream", (() => {
160
- const t = new ui({
160
+ const t = new ci({
161
161
  initialSettings: {
162
162
  AutoPlayVideo: !0,
163
163
  AutoConnect: !0,
164
164
  StartVideoMuted: !0,
165
165
  WaitForStreamer: !0,
166
166
  SuppressBrowserKeys: !1,
167
- [Gn.SignallingServerUrl]: this._url
167
+ [bn.SignallingServerUrl]: this._url
168
168
  }
169
169
  });
170
- t.setFlagEnabled(rt.BrowserSendOffer, !1), t.setFlagEnabled(rt.HoveringMouseMode, !0), t.setFlagEnabled(rt.MatchViewportResolution, !0), t.setNumericSetting(hi.MaxReconnectAttempts, 0);
171
- const r = new pi(t, { videoElementParent: this._options.createUI ? void 0 : this.container });
170
+ t.setFlagEnabled(rt.BrowserSendOffer, !1), t.setFlagEnabled(rt.HoveringMouseMode, !0), t.setFlagEnabled(rt.MatchViewportResolution, !0), t.setNumericSetting(ui.MaxReconnectAttempts, 0);
171
+ const r = new hi(t, { videoElementParent: this._options.createUI ? void 0 : this.container });
172
172
  return this.d(() => {
173
173
  !this.isDestroyed() && r.disconnect();
174
174
  }), r;
@@ -257,7 +257,7 @@ class qn extends m {
257
257
  }
258
258
  // 发送UI interface
259
259
  emitUIInteraction(t, r) {
260
- typeof r == "function" && (t.callid = P(), this.uiInteractionCallbacks.set(t.callid, r)), this.pixelStream.emitUIInteraction(t);
260
+ typeof r == "function" && (t.callid = B(), this.uiInteractionCallbacks.set(t.callid, r)), this.pixelStream.emitUIInteraction(t);
261
261
  }
262
262
  get webRtcController() {
263
263
  return this.pixelStream._webRtcController;
@@ -269,7 +269,7 @@ class qn extends m {
269
269
  }
270
270
  // 发送UI interface
271
271
  emitUIInteractionForBigData(t, r) {
272
- typeof r == "function" && (t.callid = P(), this.uiInteractionCallbacks.set(t.callid, r));
272
+ typeof r == "function" && (t.callid = B(), this.uiInteractionCallbacks.set(t.callid, r));
273
273
  const i = JSON.stringify(t), n = window.g_emitDescriptor_maxBytes, s = i.length, o = ++Yn;
274
274
  if (this.esMsgWsWrapper) {
275
275
  if (s < n) {
@@ -277,8 +277,8 @@ class qn extends m {
277
277
  return;
278
278
  }
279
279
  const u = Math.ceil(s / n) | 0;
280
- [...new Array(u).keys()].map((f) => i.slice(f * n, (f + 1) * n)).forEach((f, v) => {
281
- this.esMsgWsWrapper && this.esMsgWsWrapper.emitDescriptorWithString(Fe.UIInteraction, `${o}-${v}/${u}-` + f);
280
+ [...new Array(u).keys()].map((v) => i.slice(v * n, (v + 1) * n)).forEach((v, f) => {
281
+ this.esMsgWsWrapper && this.esMsgWsWrapper.emitDescriptorWithString(Fe.UIInteraction, `${o}-${f}/${u}-` + v);
282
282
  });
283
283
  }
284
284
  }
@@ -306,7 +306,7 @@ class qn extends m {
306
306
  console.log(`resizeUEVideo emitCommand ${t} ${r} begin`), this.emitCommand(i);
307
307
  }
308
308
  }
309
- class Vn extends m {
309
+ class Zn extends m {
310
310
  constructor(t, r, i) {
311
311
  super();
312
312
  h(this, "_instance", this.disposeVar(new qn(this._container, { url: this._wsuri, esmsgWsUri: this._esmsgWsUri })));
@@ -367,8 +367,8 @@ class Vn extends m {
367
367
  this._instance.resizeUEVideo(t, r);
368
368
  }
369
369
  }
370
- const ge = async (a, e, t, r, i, n = "default") => {
371
- const s = await a.callUeFunc({
370
+ const ge = async (l, e, t, r, i, n = "default") => {
371
+ const s = await l.callUeFunc({
372
372
  f: "flyTo",
373
373
  p: { id: e, duration: t, flyToParam: r, position: i, flyMode: n }
374
374
  });
@@ -377,11 +377,11 @@ const ge = async (a, e, t, r, i, n = "default") => {
377
377
  return;
378
378
  }
379
379
  return s.re;
380
- }, vi = async (a, e) => {
381
- const t = await a.callUeFunc({ f: "destroy", p: { id: e } });
380
+ }, vi = async (l, e) => {
381
+ const t = await l.callUeFunc({ f: "destroy", p: { id: e } });
382
382
  return t.error && console.error(t.error), t;
383
- }, we = (a, e) => {
384
- a.callUeFunc({
383
+ }, we = (l, e) => {
384
+ l.callUeFunc({
385
385
  f: "calcFlyToParam",
386
386
  p: { id: e }
387
387
  }).then((t) => {
@@ -389,8 +389,8 @@ const ge = async (a, e, t, r, i, n = "default") => {
389
389
  }).catch((t) => {
390
390
  console.error("calcFlyToParam:", t);
391
391
  });
392
- }, On = (a, e) => {
393
- a.callUeFunc({
392
+ }, Vn = (l, e) => {
393
+ l.callUeFunc({
394
394
  f: "refreshTileset",
395
395
  p: { id: e }
396
396
  }).then((t) => {
@@ -398,8 +398,8 @@ const ge = async (a, e, t, r, i, n = "default") => {
398
398
  }).catch((t) => {
399
399
  console.error("refreshTileset:", t);
400
400
  });
401
- }, xe = async (a, e, t, r, i, n = "default") => {
402
- const s = await a.callUeFunc({
401
+ }, xe = async (l, e, t, r, i, n = "default") => {
402
+ const s = await l.callUeFunc({
403
403
  f: "flyIn",
404
404
  p: { id: e, position: t, rotation: r, duration: i, flyMode: n }
405
405
  });
@@ -408,12 +408,12 @@ const ge = async (a, e, t, r, i, n = "default") => {
408
408
  return;
409
409
  }
410
410
  return s.re;
411
- }, jn = async (a, e) => {
412
- if (!a) {
411
+ }, On = async (l, e) => {
412
+ if (!l) {
413
413
  console.warn("DefaultCameraFlyIn: viewer is undefined");
414
414
  return;
415
415
  }
416
- const t = await a.callUeFunc({
416
+ const t = await l.callUeFunc({
417
417
  f: "DefaultCameraFlyIn",
418
418
  p: { Duration: e ?? 1 }
419
419
  });
@@ -422,12 +422,12 @@ const ge = async (a, e, t, r, i, n = "default") => {
422
422
  return;
423
423
  }
424
424
  return t;
425
- }, ts = async (a) => {
426
- if (!a) {
425
+ }, jn = async (l) => {
426
+ if (!l) {
427
427
  console.warn("StartVoice:viewer is undefined");
428
428
  return;
429
429
  }
430
- const e = await a.callUeFunc({
430
+ const e = await l.callUeFunc({
431
431
  f: "StartVoice",
432
432
  p: {}
433
433
  });
@@ -436,12 +436,12 @@ const ge = async (a, e, t, r, i, n = "default") => {
436
436
  return;
437
437
  }
438
438
  return e;
439
- }, es = async (a) => {
440
- if (!a) {
439
+ }, ts = async (l) => {
440
+ if (!l) {
441
441
  console.warn("StopVoice:viewer is undefined");
442
442
  return;
443
443
  }
444
- const e = await a.callUeFunc({
444
+ const e = await l.callUeFunc({
445
445
  f: "StopVoice",
446
446
  p: {}
447
447
  });
@@ -450,12 +450,12 @@ const ge = async (a, e, t, r, i, n = "default") => {
450
450
  return;
451
451
  }
452
452
  return e;
453
- }, rs = async (a, e) => {
454
- if (!a) {
453
+ }, es = async (l, e) => {
454
+ if (!l) {
455
455
  console.warn("mountPakFiles:viewer is undefined");
456
456
  return;
457
457
  }
458
- const t = await a.callUeFunc({
458
+ const t = await l.callUeFunc({
459
459
  f: "MountPakFiles",
460
460
  p: { json: e }
461
461
  });
@@ -464,12 +464,12 @@ const ge = async (a, e, t, r, i, n = "default") => {
464
464
  return;
465
465
  }
466
466
  return t;
467
- }, is = async (a) => {
468
- if (!a) {
467
+ }, rs = async (l) => {
468
+ if (!l) {
469
469
  console.warn("generateMemReport:viewer is undefined");
470
470
  return;
471
471
  }
472
- const e = await a.callUeFunc({
472
+ const e = await l.callUeFunc({
473
473
  f: "GenerateMemReport",
474
474
  p: {}
475
475
  });
@@ -478,14 +478,14 @@ const ge = async (a, e, t, r, i, n = "default") => {
478
478
  return;
479
479
  }
480
480
  return e;
481
- }, gi = async (a, e) => {
482
- const t = await a.callUeFunc({
481
+ }, fi = async (l, e) => {
482
+ const t = await l.callUeFunc({
483
483
  f: "resetWithCurrentCamera",
484
484
  p: { id: e }
485
485
  });
486
486
  return t.error && console.error("resetWithCurrentCamera:", t.error), t;
487
- }, Me = (a, e, t, r, i) => {
488
- a.callUeFunc({
487
+ }, $e = (l, e, t, r, i) => {
488
+ l.callUeFunc({
489
489
  f: "smoothMoveWithRotation",
490
490
  p: {
491
491
  id: e,
@@ -498,8 +498,8 @@ const ge = async (a, e, t, r, i, n = "default") => {
498
498
  }).catch((n) => {
499
499
  console.error("smoothMoveWithRotation:", n);
500
500
  });
501
- }, We = (a, e, t, r, i, n) => {
502
- a.callUeFunc({
501
+ }, We = (l, e, t, r, i, n) => {
502
+ l.callUeFunc({
503
503
  f: "smoothMoveOnGround",
504
504
  p: { id: e, Lon: t, Lat: r, Ground: i, Time: n }
505
505
  }).then((s) => {
@@ -507,8 +507,8 @@ const ge = async (a, e, t, r, i, n = "default") => {
507
507
  }).catch((s) => {
508
508
  console.error("smoothMoveOnGround:", s);
509
509
  });
510
- }, Ae = (a, e, t, r, i, n, s) => {
511
- a.callUeFunc({
510
+ }, Ae = (l, e, t, r, i, n, s) => {
511
+ l.callUeFunc({
512
512
  f: "smoothMoveWithRotationOnGround",
513
513
  p: {
514
514
  id: e,
@@ -523,8 +523,8 @@ const ge = async (a, e, t, r, i, n = "default") => {
523
523
  }).catch((o) => {
524
524
  console.error("smoothMoveWithRotationOnGround:", o);
525
525
  });
526
- }, ns = (a, e, t) => {
527
- a.callUeFunc({
526
+ }, is = (l, e, t) => {
527
+ l.callUeFunc({
528
528
  f: "HighlightFeature",
529
529
  p: { id: e, HlId: t }
530
530
  }).then((r) => {
@@ -532,8 +532,8 @@ const ge = async (a, e, t, r, i, n = "default") => {
532
532
  }).catch((r) => {
533
533
  console.error("HighlightFeature:", r);
534
534
  });
535
- }, ss = (a, e, t, r) => {
536
- a.callUeFunc({
535
+ }, ns = (l, e, t, r) => {
536
+ l.callUeFunc({
537
537
  f: "HighlightFeatureAndFlyTo",
538
538
  p: { id: e, HlId: t, Duration: r }
539
539
  }).then((i) => {
@@ -541,8 +541,8 @@ const ge = async (a, e, t, r, i, n = "default") => {
541
541
  }).catch((i) => {
542
542
  console.error("HighlightFeatureAndFlyTo:", i);
543
543
  });
544
- }, os = (a, e, t) => {
545
- a.callUeFunc({
544
+ }, ss = (l, e, t) => {
545
+ l.callUeFunc({
546
546
  f: "SetLayerVisible",
547
547
  p: { id: e, LayerJson: t }
548
548
  }).then((r) => {
@@ -550,8 +550,8 @@ const ge = async (a, e, t, r, i, n = "default") => {
550
550
  }).catch((r) => {
551
551
  console.error("SetLayerVisible:", r);
552
552
  });
553
- }, as = (a, e, t) => {
554
- a.callUeFunc({
553
+ }, os = (l, e, t) => {
554
+ l.callUeFunc({
555
555
  f: "SetLayerColor",
556
556
  p: { id: e, LayerJson: t }
557
557
  }).then((r) => {
@@ -559,8 +559,8 @@ const ge = async (a, e, t, r, i, n = "default") => {
559
559
  }).catch((r) => {
560
560
  console.error("SetLayerColor:", r);
561
561
  });
562
- }, Ue = (a, e, t, r) => {
563
- a.callUeFunc({
562
+ }, _e = (l, e, t, r) => {
563
+ l.callUeFunc({
564
564
  f: "smoothMove",
565
565
  p: {
566
566
  id: e,
@@ -572,8 +572,8 @@ const ge = async (a, e, t, r, i, n = "default") => {
572
572
  }).catch((i) => {
573
573
  console.error("smoothMove:", i);
574
574
  });
575
- }, wi = (a, e, t, r) => {
576
- a.callUeFunc({
575
+ }, gi = (l, e, t, r) => {
576
+ l.callUeFunc({
577
577
  f: "callFunction",
578
578
  p: {
579
579
  id: e,
@@ -585,8 +585,8 @@ const ge = async (a, e, t, r, i, n = "default") => {
585
585
  }).catch((i) => {
586
586
  console.error("callFunction:", i), console.error(`id: ${e} fn: ${t} param: ${r}`);
587
587
  });
588
- }, ds = (a, e, t, r) => {
589
- a.callUeFunc({
588
+ }, as = (l, e, t, r) => {
589
+ l.callUeFunc({
590
590
  f: "SetNodePosition",
591
591
  p: {
592
592
  id: e,
@@ -598,8 +598,8 @@ const ge = async (a, e, t, r, i, n = "default") => {
598
598
  }).catch((i) => {
599
599
  console.error("SetNodePosition:", i);
600
600
  });
601
- }, ls = (a, e, t, r) => {
602
- a.callUeFunc({
601
+ }, ls = (l, e, t, r) => {
602
+ l.callUeFunc({
603
603
  f: "SetNodeRotation",
604
604
  p: {
605
605
  id: e,
@@ -611,8 +611,8 @@ const ge = async (a, e, t, r, i, n = "default") => {
611
611
  }).catch((i) => {
612
612
  console.error("SetNodeRotation:", i);
613
613
  });
614
- }, cs = (a, e, t, r) => {
615
- a.callUeFunc({
614
+ }, ds = (l, e, t, r) => {
615
+ l.callUeFunc({
616
616
  f: "SetNodeScale",
617
617
  p: {
618
618
  id: e,
@@ -624,8 +624,8 @@ const ge = async (a, e, t, r, i, n = "default") => {
624
624
  }).catch((i) => {
625
625
  console.error("SetNodeScale:", i);
626
626
  });
627
- }, b = async (a, e) => {
628
- const t = await a.callUeFunc({
627
+ }, H = async (l, e) => {
628
+ const t = await l.callUeFunc({
629
629
  f: "ChangeNavigationMode",
630
630
  p: e
631
631
  });
@@ -634,8 +634,8 @@ const ge = async (a, e, t, r, i, n = "default") => {
634
634
  return;
635
635
  }
636
636
  return t;
637
- }, us = async (a, e) => {
638
- const t = await a.callUeFunc({
637
+ }, cs = async (l, e) => {
638
+ const t = await l.callUeFunc({
639
639
  f: "setGlobalProperty",
640
640
  p: e
641
641
  });
@@ -644,8 +644,8 @@ const ge = async (a, e, t, r, i, n = "default") => {
644
644
  return;
645
645
  }
646
646
  return t;
647
- }, hs = async (a) => {
648
- const e = await a.callUeFunc({
647
+ }, us = async (l) => {
648
+ const e = await l.callUeFunc({
649
649
  f: "Quit",
650
650
  p: void 0
651
651
  });
@@ -654,9 +654,9 @@ const ge = async (a, e, t, r, i, n = "default") => {
654
654
  return;
655
655
  }
656
656
  return e;
657
- }, ps = async (a, e, t, r) => {
657
+ }, hs = async (l, e, t, r) => {
658
658
  console.log("pickCallFunc", e, t, r);
659
- const i = await a.callUeFunc({
659
+ const i = await l.callUeFunc({
660
660
  f: "pick",
661
661
  p: { screenPosition: e, parentInfo: r }
662
662
  });
@@ -665,10 +665,10 @@ const ge = async (a, e, t, r, i, n = "default") => {
665
665
  return;
666
666
  }
667
667
  let n = i.re.id;
668
- const s = n ? D.getSceneObject(n) : void 0;
669
- return s && Reflect.has(s, "allowPicking") && Reflect.has(s, "pickedEvent") && (s.allowPicking ?? !1) && s.pickedEvent.emit({ attachedInfo: t }), s && Reflect.has(s, "allowPicking") && !s.allowPicking ? new ze() : new ze(i.re, s, i.re.features, i.re.add, t);
670
- }, fs = async (a, e) => {
671
- const t = await a.callUeFunc({
668
+ const s = n ? P.getSceneObject(n) : void 0;
669
+ return s && Reflect.has(s, "allowPicking") && Reflect.has(s, "pickedEvent") && (s.allowPicking ?? !1) && s.pickedEvent.emit({ attachedInfo: t }), s && Reflect.has(s, "allowPicking") && !s.allowPicking ? new Ne() : new Ne(i.re, s, i.re.features, i.re.add, t);
670
+ }, ps = async (l, e) => {
671
+ const t = await l.callUeFunc({
672
672
  f: "pickPosition",
673
673
  p: { screenPosition: e }
674
674
  });
@@ -678,8 +678,8 @@ const ge = async (a, e, t, r, i, n = "default") => {
678
678
  }
679
679
  const { position: r } = t.re;
680
680
  return r;
681
- }, vs = async (a, e, t, r = "ECC_Visibility") => {
682
- const i = await a.callUeFunc({
681
+ }, vs = async (l, e, t, r = "ECC_Visibility") => {
682
+ const i = await l.callUeFunc({
683
683
  f: "GetHeightByLonLat",
684
684
  p: { Lon: e, Lat: t, Channel: r }
685
685
  });
@@ -688,8 +688,8 @@ const ge = async (a, e, t, r, i, n = "default") => {
688
688
  return;
689
689
  }
690
690
  return i.re;
691
- }, gs = async (a, e, t = "ECC_Visibility") => {
692
- const r = await a.callUeFunc({
691
+ }, fs = async (l, e, t = "ECC_Visibility") => {
692
+ const r = await l.callUeFunc({
693
693
  f: "GetHeightsByLonLats",
694
694
  p: { LonLats: e, Channel: t }
695
695
  });
@@ -703,8 +703,8 @@ const ge = async (a, e, t, r, i, n = "default") => {
703
703
  } catch {
704
704
  return;
705
705
  }
706
- }, ws = async (a, e = 64, t = 64) => {
707
- const r = await a.callUeFunc({
706
+ }, gs = async (l, e = 64, t = 64) => {
707
+ const r = await l.callUeFunc({
708
708
  f: "capture",
709
709
  p: { resx: e, resy: t }
710
710
  });
@@ -713,8 +713,8 @@ const ge = async (a, e, t, r, i, n = "default") => {
713
713
  return;
714
714
  }
715
715
  return r.re.image;
716
- }, ys = async (a, e, t = [64, 64]) => {
717
- const r = await a.callUeFunc({
716
+ }, ws = async (l, e, t = [64, 64]) => {
717
+ const r = await l.callUeFunc({
718
718
  f: "partialCapture",
719
719
  p: {
720
720
  startPos: e,
@@ -726,14 +726,14 @@ const ge = async (a, e, t, r, i, n = "default") => {
726
726
  return;
727
727
  }
728
728
  return r.re.image;
729
- }, ms = async (a, e) => {
730
- const t = await a.callUeFunc({
729
+ }, ys = async (l, e) => {
730
+ const t = await l.callUeFunc({
731
731
  f: "LonLatAltToScreenPosition",
732
732
  p: { LonLatAlt: e }
733
733
  });
734
734
  return t.error && console.warn(t.error), t.re;
735
- }, Cs = async (a, e) => {
736
- const t = await a.callUeFunc({
735
+ }, ms = async (l, e) => {
736
+ const t = await l.callUeFunc({
737
737
  f: "UEPositionToLonLatAlt",
738
738
  p: { UEPosition: e }
739
739
  });
@@ -742,8 +742,8 @@ const ge = async (a, e, t, r, i, n = "default") => {
742
742
  return;
743
743
  }
744
744
  return [...t.re.LonLatAlt];
745
- }, Fs = async (a, e) => {
746
- const t = await a.callUeFunc({
745
+ }, Cs = async (l, e) => {
746
+ const t = await l.callUeFunc({
747
747
  f: "GetAllSocketNamesByActorTag",
748
748
  p: { ActorTag: e }
749
749
  });
@@ -752,8 +752,8 @@ const ge = async (a, e, t, r, i, n = "default") => {
752
752
  return;
753
753
  }
754
754
  return [...t.re.socketNames];
755
- }, Is = async (a) => {
756
- const e = await a.callUeFunc({
755
+ }, Fs = async (l) => {
756
+ const e = await l.callUeFunc({
757
757
  f: "GetVersion",
758
758
  p: void 0
759
759
  });
@@ -762,8 +762,8 @@ const ge = async (a, e, t, r, i, n = "default") => {
762
762
  return;
763
763
  }
764
764
  return e.re.version;
765
- }, Es = async (a, e) => {
766
- const t = await a.callUeFunc({
765
+ }, Is = async (l, e) => {
766
+ const t = await l.callUeFunc({
767
767
  f: "GetBoundSphere",
768
768
  p: { id: e }
769
769
  });
@@ -772,8 +772,8 @@ const ge = async (a, e, t, r, i, n = "default") => {
772
772
  return;
773
773
  }
774
774
  return t.re;
775
- }, Ss = async (a, e) => {
776
- const t = await a.callUeFunc({
775
+ }, Es = async (l, e) => {
776
+ const t = await l.callUeFunc({
777
777
  f: "GetBoundSphereWithChildren",
778
778
  p: { id: e }
779
779
  });
@@ -782,8 +782,8 @@ const ge = async (a, e, t, r, i, n = "default") => {
782
782
  return;
783
783
  }
784
784
  return t.re;
785
- }, Ts = async (a, e) => {
786
- const t = await a.callUeFunc({
785
+ }, Ss = async (l, e) => {
786
+ const t = await l.callUeFunc({
787
787
  f: "GetStrokeMaterialParamInfo",
788
788
  p: { id: e }
789
789
  });
@@ -792,8 +792,8 @@ const ge = async (a, e, t, r, i, n = "default") => {
792
792
  return;
793
793
  }
794
794
  return t.re;
795
- }, xs = async (a, e) => {
796
- const t = await a.callUeFunc({
795
+ }, Ts = async (l, e) => {
796
+ const t = await l.callUeFunc({
797
797
  f: "GetFillMaterialParamInfo",
798
798
  p: { id: e }
799
799
  });
@@ -802,8 +802,8 @@ const ge = async (a, e, t, r, i, n = "default") => {
802
802
  return;
803
803
  }
804
804
  return t.re;
805
- }, Rs = async (a, e) => {
806
- const t = await a.callUeFunc({
805
+ }, xs = async (l, e) => {
806
+ const t = await l.callUeFunc({
807
807
  f: "getGlobalProperty",
808
808
  p: { props: e }
809
809
  });
@@ -812,8 +812,8 @@ const ge = async (a, e, t, r, i, n = "default") => {
812
812
  return;
813
813
  }
814
814
  return t.re;
815
- }, ks = async (a, e) => {
816
- const t = await a.callUeFunc({
815
+ }, Rs = async (l, e) => {
816
+ const t = await l.callUeFunc({
817
817
  f: "GetObjectByInfo",
818
818
  p: { info: e }
819
819
  });
@@ -822,63 +822,63 @@ const ge = async (a, e, t, r, i, n = "default") => {
822
822
  return;
823
823
  }
824
824
  return t.re;
825
- }, Ls = async (a, e, t) => await a.callUeFunc({
825
+ }, ks = async (l, e, t) => await l.callUeFunc({
826
826
  f: "BindActorByTag",
827
827
  p: { ID: e, ActorTag: t }
828
- }), Ds = async (a) => await a.callUeFunc({
828
+ }), Ls = async (l) => await l.callUeFunc({
829
829
  f: "RestoreOriginalScene",
830
830
  p: void 0
831
- }), Ps = async (a, e) => await a.callUeFunc({
831
+ }), Ps = async (l, e) => await l.callUeFunc({
832
832
  f: "UnBindActorByID",
833
833
  p: { ID: e }
834
- }), Bs = async (a, e) => await a.callUeFunc({
834
+ }), Bs = async (l, e) => await l.callUeFunc({
835
835
  f: "UnBindActorByTag",
836
836
  p: { ActorTag: e }
837
- }), $s = async (a, e, t) => await a.callUeFunc({
837
+ }), Ds = async (l, e, t) => await l.callUeFunc({
838
838
  f: "CreateActorByClass",
839
839
  p: { ID: e, ActorClass: t }
840
- }), _s = async function(a, e, t) {
841
- return await a.callUeFunc({
840
+ }), Ms = async function(l, e, t) {
841
+ return await l.callUeFunc({
842
842
  f: "Bind3DTilesetByTag",
843
843
  p: { ID: e, ActorTag: t }
844
844
  });
845
- }, Ms = async function(a, e) {
846
- return await a.callUeFunc({
845
+ }, $s = async function(l, e) {
846
+ return await l.callUeFunc({
847
847
  f: "UnBind3DTilesetByTag",
848
848
  p: { ActorTag: e }
849
849
  });
850
- }, Ws = async function(a, e) {
851
- return await a.callUeFunc({
850
+ }, Ws = async function(l, e) {
851
+ return await l.callUeFunc({
852
852
  f: "UnBind3DTilesetById",
853
853
  p: { ID: e }
854
854
  });
855
- }, As = async function(a, e, t, r) {
856
- return await a.callUeFunc({
855
+ }, As = async function(l, e, t, r) {
856
+ return await l.callUeFunc({
857
857
  f: "BindImageryByTag",
858
858
  p: { ID: e, ActorTag: t, ComponentTag: r }
859
859
  });
860
- }, Us = async function(a, e, t) {
861
- return await a.callUeFunc({
860
+ }, _s = async function(l, e, t) {
861
+ return await l.callUeFunc({
862
862
  f: "UnBindImageryByTag",
863
863
  p: { ActorTag: e, ComponentTag: t }
864
864
  });
865
- }, Ns = async function(a, e) {
866
- return await a.callUeFunc({
865
+ }, Us = async function(l, e) {
866
+ return await l.callUeFunc({
867
867
  f: "UnBindImageryById",
868
868
  p: { ID: e }
869
869
  });
870
- }, zs = async function(a, e, t, r) {
871
- return await a.callUeFunc({
870
+ }, Ns = async function(l, e, t, r) {
871
+ return await l.callUeFunc({
872
872
  f: "GetIdByComponentNameAndHitItem",
873
873
  p: { id: e, ComponentName: t, HitItem: r }
874
874
  });
875
- }, bs = async function(a, e = "ECC_Visibility") {
876
- return await a.callUeFunc({
875
+ }, zs = async function(l, e = "ECC_Visibility") {
876
+ return await l.callUeFunc({
877
877
  f: "GetCameraRelativeHeight",
878
878
  p: { Channel: e }
879
879
  });
880
- }, Hs = async function(a, e, t, r) {
881
- const i = await a.callUeFunc({
880
+ }, Hs = async function(l, e, t, r) {
881
+ const i = await l.callUeFunc({
882
882
  f: "SaveStringToFile",
883
883
  p: {
884
884
  String: e,
@@ -887,8 +887,8 @@ const ge = async (a, e, t, r, i, n = "default") => {
887
887
  }
888
888
  });
889
889
  return i.error !== "" && console.warn("SaveStringToFile: ", i.error), i;
890
- }, Js = async function(a, e, t = !0) {
891
- const r = await a.callUeFunc({
890
+ }, Js = async function(l, e, t = !0) {
891
+ const r = await l.callUeFunc({
892
892
  f: "HighlightActorByTag",
893
893
  p: {
894
894
  ActorTag: e,
@@ -896,14 +896,14 @@ const ge = async (a, e, t, r, i, n = "default") => {
896
896
  }
897
897
  });
898
898
  return r.error !== "" && console.warn("HighlightActorByTag: ", r.error), r;
899
- }, Gs = async function(a, e) {
900
- const t = await a.callUeFunc({
899
+ }, bs = async function(l, e) {
900
+ const t = await l.callUeFunc({
901
901
  f: "SendCustomMessage",
902
902
  p: { Message: e }
903
903
  });
904
904
  return t.error !== "" && console.warn("SendCustomMessage: ", t.error), t;
905
- }, Ks = async function(a) {
906
- const e = await a.callUeFunc({
905
+ }, Gs = async function(l) {
906
+ const e = await l.callUeFunc({
907
907
  f: "GetStatus",
908
908
  p: void 0
909
909
  });
@@ -912,8 +912,8 @@ const ge = async (a, e, t, r, i, n = "default") => {
912
912
  return;
913
913
  }
914
914
  return e.re;
915
- }, Xs = async (a, e, t, r, i = !0) => {
916
- const n = await a.callUeFunc({
915
+ }, Ks = async (l, e, t, r, i = !0) => {
916
+ const n = await l.callUeFunc({
917
917
  f: "startEditing",
918
918
  p: {
919
919
  sceneObjectID: e,
@@ -927,8 +927,8 @@ const ge = async (a, e, t, r, i, n = "default") => {
927
927
  return;
928
928
  }
929
929
  return n;
930
- }, Zs = async (a) => {
931
- const e = await a.callUeFunc({
930
+ }, Xs = async (l) => {
931
+ const e = await l.callUeFunc({
932
932
  f: "stopEditing",
933
933
  p: void 0
934
934
  });
@@ -937,8 +937,8 @@ const ge = async (a, e, t, r, i, n = "default") => {
937
937
  return;
938
938
  }
939
939
  return e;
940
- }, Qs = async (a, e, t) => {
941
- const r = await a.callUeFunc({
940
+ }, Qs = async (l, e, t) => {
941
+ const r = await l.callUeFunc({
942
942
  f: "moveObjects",
943
943
  p: {
944
944
  sceneObjectIDs: e,
@@ -950,8 +950,8 @@ const ge = async (a, e, t, r, i, n = "default") => {
950
950
  return;
951
951
  }
952
952
  return r;
953
- }, Ys = async (a) => {
954
- const e = await a.callUeFunc({
953
+ }, Ys = async (l) => {
954
+ const e = await l.callUeFunc({
955
955
  f: "GetTilesetMaterialIDList",
956
956
  p: void 0
957
957
  });
@@ -963,7 +963,7 @@ const ge = async (a, e, t, r, i, n = "default") => {
963
963
  };
964
964
  class Re extends m {
965
965
  }
966
- class Io extends xi {
966
+ class Fo extends Ti {
967
967
  constructor(e, t, r) {
968
968
  super(t), this.uePickResult = e, this.tilesetPickInfo = r;
969
969
  }
@@ -981,12 +981,12 @@ class qs extends Re {
981
981
  // private _closeEvent = this.dv(new Event<[string]>());
982
982
  // get closeEvent() { return this._closeEvent; }
983
983
  h(this, "_readyEvent", this.dv(new E()));
984
- h(this, "_esmsgwsopen", this.dv(_(!1)));
985
- h(this, "_videoinited", this.dv(_(!1)));
986
- h(this, "_webRtcConnected", this.dv(_(!1)));
984
+ h(this, "_esmsgwsopen", this.dv($(!1)));
985
+ h(this, "_videoinited", this.dv($(!1)));
986
+ h(this, "_webRtcConnected", this.dv($(!1)));
987
987
  this._ueViewer = n, console.log("CSTMPSViewer init ! 以官方像素流 + 独立通信的模式启动!");
988
988
  const s = this._ueViewer;
989
- this._esueViewerWrapper = this.dv(new Vn(t, r, i));
989
+ this._esueViewerWrapper = this.dv(new Zn(t, r, i));
990
990
  const o = this._esueViewerWrapper;
991
991
  {
992
992
  const p = () => o.debug = s.debug ?? !1;
@@ -1043,10 +1043,10 @@ class qs extends Re {
1043
1043
  g && (this._waitingUeFuncIdAndResultCallbacks.delete(c.fid), g.resultCallback(c.r));
1044
1044
  }
1045
1045
  }));
1046
- let l = 0;
1047
- const f = (p) => {
1046
+ let d = 0;
1047
+ const v = (p) => {
1048
1048
  const c = {
1049
- n: l++,
1049
+ n: d++,
1050
1050
  tt: Date.now(),
1051
1051
  t: "c",
1052
1052
  fs: p
@@ -1060,7 +1060,7 @@ class qs extends Re {
1060
1060
  ), console.groupEnd()), this._esueViewerWrapper.emitUIInteractionForBigData(c, () => {
1061
1061
  this._waitingUeCalls.delete(c);
1062
1062
  });
1063
- }, v = () => {
1063
+ }, f = () => {
1064
1064
  if (!u || this._ueFuncWithIdAndResultCallbacks.length === 0) return;
1065
1065
  const p = this._ueFuncWithIdAndResultCallbacks.map(([c]) => c);
1066
1066
  for (const [c, g] of this._ueFuncWithIdAndResultCallbacks)
@@ -1075,11 +1075,11 @@ class qs extends Re {
1075
1075
  if (C.push(k), ++y, S + x > c || C.length >= 20)
1076
1076
  break;
1077
1077
  } while (y < w);
1078
- C.length > 0 && (s.debug && console.log(`传送${C.length}条消息...`), f([...C]), C.length = 0, S = 0);
1078
+ C.length > 0 && (s.debug && console.log(`传送${C.length}条消息...`), v([...C]), C.length = 0, S = 0);
1079
1079
  } while (y < w);
1080
1080
  }
1081
1081
  };
1082
- this.dv(Ee()).start(v, 50), this.d(() => console.log("UeCloudViewer正在销毁..."));
1082
+ this.dv(Ee()).start(f, 50), this.d(() => console.log("UeCloudViewer正在销毁..."));
1083
1083
  }
1084
1084
  get esueViewerWrapper() {
1085
1085
  return this._esueViewerWrapper;
@@ -1122,13 +1122,13 @@ class qs extends Re {
1122
1122
  }
1123
1123
  callUeFunc(t) {
1124
1124
  return new Promise((r) => {
1125
- const n = { fid: P(), ...t };
1125
+ const n = { fid: B(), ...t };
1126
1126
  this._ueFuncWithIdAndResultCallbacks.push([n, { timeStamp: Date.now(), ueFunc: t, resultCallback: r }]);
1127
1127
  });
1128
1128
  }
1129
1129
  disposableOnUeEvent(t, r) {
1130
1130
  (this._ueViewer.debug ?? !1) && console.log(`disposableOnUeEvent from UeCloudViewer, type:${t}`);
1131
- const i = P();
1131
+ const i = B();
1132
1132
  this.callUeFunc({
1133
1133
  f: "addEventListener",
1134
1134
  p: {
@@ -1151,28 +1151,28 @@ class qs extends Re {
1151
1151
  };
1152
1152
  }
1153
1153
  }
1154
- function Vs(a) {
1154
+ function Zs(l) {
1155
1155
  let e = "";
1156
- const t = new Uint8Array(a), r = t.length;
1156
+ const t = new Uint8Array(l), r = t.length;
1157
1157
  for (let i = 0; i < r; i++)
1158
1158
  e += String.fromCharCode(t[i]);
1159
1159
  return btoa(e);
1160
1160
  }
1161
- const Os = (a) => {
1161
+ const Vs = (l) => {
1162
1162
  const e = {
1163
1163
  type: "input",
1164
- inputdata: Vs(a)
1164
+ inputdata: Zs(l)
1165
1165
  };
1166
1166
  return JSON.stringify(e);
1167
1167
  };
1168
- function js(a) {
1169
- return typeof a == "string" ? document.getElementById(a) : a;
1168
+ function Os(l) {
1169
+ return typeof l == "string" ? document.getElementById(l) : l;
1170
1170
  }
1171
1171
  window.g_emitDescriptor_maxBytes = 3e4;
1172
1172
  console.log("全局可设置消息体最大字节, window.g_emitDescriptor_maxBytes 默认 30000 。");
1173
- let to = -1;
1174
- ci.SetLoggerVerbosity(1);
1175
- class eo extends m {
1173
+ let js = -1;
1174
+ di.SetLoggerVerbosity(1);
1175
+ class to extends m {
1176
1176
  constructor(t, r) {
1177
1177
  super();
1178
1178
  h(this, "debug", !1);
@@ -1183,7 +1183,7 @@ class eo extends m {
1183
1183
  //发送时记录消息,回调函数中对应消息后再删除
1184
1184
  h(this, "uiInteractionCallbacks", /* @__PURE__ */ new Map());
1185
1185
  this._container = t, this._option = r;
1186
- const i = new ui({
1186
+ const i = new ci({
1187
1187
  initialSettings: {
1188
1188
  HoveringMouse: !0,
1189
1189
  AutoPlayVideo: !0,
@@ -1195,19 +1195,19 @@ class eo extends m {
1195
1195
  },
1196
1196
  useUrlParams: !0
1197
1197
  });
1198
- i.setFlagEnabled(rt.BrowserSendOffer, !1), i.setFlagEnabled(rt.HoveringMouseMode, !0), i.setFlagEnabled(rt.MatchViewportResolution, !0), i.setNumericSetting(hi.MaxReconnectAttempts, 0), this._pixelStream = new pi(i, { videoElementParent: this.container });
1198
+ i.setFlagEnabled(rt.BrowserSendOffer, !1), i.setFlagEnabled(rt.HoveringMouseMode, !0), i.setFlagEnabled(rt.MatchViewportResolution, !0), i.setNumericSetting(ui.MaxReconnectAttempts, 0), this._pixelStream = new hi(i, { videoElementParent: this.container });
1199
1199
  {
1200
1200
  const n = this.pixelStream.webSocketController.webSocket, s = this._pixelStream._webRtcController.sendMessageController.dataChannelSender.sendData;
1201
1201
  this._pixelStream._webRtcController.sendMessageController.dataChannelSender.constructor.prototype.sendData = function(o) {
1202
- n ? n.send(Os(o)) : s.call(this, o);
1202
+ n ? n.send(Vs(o)) : s.call(this, o);
1203
1203
  };
1204
1204
  }
1205
1205
  {
1206
1206
  const n = (s) => {
1207
1207
  const o = this._pixelStream._webRtcController.mouseController;
1208
1208
  setTimeout(() => {
1209
- const u = o.coordinateConverter.normalizeAndQuantizeUnsigned(s.offsetX, s.offsetY), f = o.toStreamerMessagesProvider.toStreamerHandlers.get("MouseUp");
1210
- f && f([s.button, u.x, u.y]), s.preventDefault();
1209
+ const u = o.coordinateConverter.normalizeAndQuantizeUnsigned(s.offsetX, s.offsetY), v = o.toStreamerMessagesProvider.toStreamerHandlers.get("MouseUp");
1210
+ v && v([s.button, u.x, u.y]), s.preventDefault();
1211
1211
  });
1212
1212
  };
1213
1213
  this.container.addEventListener("dblclick", n), this.d(() => {
@@ -1244,7 +1244,7 @@ class eo extends m {
1244
1244
  return this._ueevent;
1245
1245
  }
1246
1246
  get container() {
1247
- return js(this._container);
1247
+ return Os(this._container);
1248
1248
  }
1249
1249
  get pixelStream() {
1250
1250
  return this._pixelStream;
@@ -1271,21 +1271,21 @@ class eo extends m {
1271
1271
  }
1272
1272
  //大数据拆分
1273
1273
  emitUIInteractionForBigData(t, r) {
1274
- typeof r == "function" && (t.callid = P(), this.uiInteractionCallbacks.set(t.callid, r));
1275
- const i = JSON.stringify(t), n = window.g_emitDescriptor_maxBytes ?? 3e4, s = i.length, o = ++to;
1274
+ typeof r == "function" && (t.callid = B(), this.uiInteractionCallbacks.set(t.callid, r));
1275
+ const i = JSON.stringify(t), n = window.g_emitDescriptor_maxBytes ?? 3e4, s = i.length, o = ++js;
1276
1276
  if (s < n) {
1277
- const f = {
1277
+ const v = {
1278
1278
  type: "earthsdk",
1279
1279
  time: (/* @__PURE__ */ new Date()).getTime(),
1280
1280
  params: `${o}-0/1-` + i
1281
1281
  };
1282
- this.sendData(JSON.stringify(f));
1282
+ this.sendData(JSON.stringify(v));
1283
1283
  return;
1284
1284
  }
1285
1285
  const u = Math.ceil(s / n) | 0;
1286
- [...new Array(u).keys()].map((f) => i.slice(f * n, (f + 1) * n)).forEach((f, v) => {
1287
- const d = { type: "earthsdk", time: (/* @__PURE__ */ new Date()).getTime(), params: `${o}-${v}/${u}-` + f };
1288
- this.sendData(JSON.stringify(d));
1286
+ [...new Array(u).keys()].map((v) => i.slice(v * n, (v + 1) * n)).forEach((v, f) => {
1287
+ const a = { type: "earthsdk", time: (/* @__PURE__ */ new Date()).getTime(), params: `${o}-${f}/${u}-` + v };
1288
+ this.sendData(JSON.stringify(a));
1289
1289
  });
1290
1290
  }
1291
1291
  sendData(t) {
@@ -1325,12 +1325,12 @@ class eo extends m {
1325
1325
  console.log(`resizeUEVideo emitCommand ${t} ${r} begin`), this.emitCommand(i);
1326
1326
  }
1327
1327
  }
1328
- class ro extends m {
1328
+ class eo extends m {
1329
1329
  constructor(t, r, i) {
1330
1330
  super();
1331
1331
  h(this, "_instance");
1332
1332
  h(this, "_event", this.dv(new E()));
1333
- this._container = t, this._wsuri = r, this._esmsgWsUri = i, this._instance = this.dv(new eo(this._container, { ws: this._wsuri })), this.d(this._instance.connected.don((n) => {
1333
+ this._container = t, this._wsuri = r, this._esmsgWsUri = i, this._instance = this.dv(new to(this._container, { ws: this._wsuri })), this.d(this._instance.connected.don((n) => {
1334
1334
  this._event.emit(n, n), console.log(`%c[EarthSDK] ${n}`, "background: #a6ec99; color: black");
1335
1335
  })), this.d(this._instance.error.don((n) => {
1336
1336
  this._event.emit("errorEvent", n), console.log(`%c[EarthSDK] ${n}`, "background: red; color: black");
@@ -1369,12 +1369,12 @@ class ro extends m {
1369
1369
  this._instance.resizeUEVideo(t, r);
1370
1370
  }
1371
1371
  }
1372
- class io extends Re {
1372
+ class ro extends Re {
1373
1373
  constructor(t, r, i, n) {
1374
1374
  super();
1375
- h(this, "_videoInitialized", this.dv(_(!1)));
1376
- h(this, "_webRtcConnected", this.dv(_(!1)));
1377
- h(this, "_webSocketOpen", this.dv(_(!1)));
1375
+ h(this, "_videoInitialized", this.dv($(!1)));
1376
+ h(this, "_webRtcConnected", this.dv($(!1)));
1377
+ h(this, "_webSocketOpen", this.dv($(!1)));
1378
1378
  h(this, "_ue5ViewerWrapper");
1379
1379
  h(this, "_ueFuncResultWithIdsEvent", this.dv(new E()));
1380
1380
  h(this, "_ueFuncWithIdAndResultCallbacks", []);
@@ -1384,40 +1384,40 @@ class io extends Re {
1384
1384
  h(this, "_errorEvent", this.dv(new E()));
1385
1385
  h(this, "_readyEvent", this.dv(new E()));
1386
1386
  this._ueViewer = n, console.log("INNPSViewer init ! 以内置信令服务器模式启动!");
1387
- const s = this._ueViewer, o = this.dv(new ro(t, r, i));
1387
+ const s = this._ueViewer, o = this.dv(new eo(t, r, i));
1388
1388
  this._ue5ViewerWrapper = o;
1389
1389
  {
1390
- const d = () => o.debug = s.debug ?? !1;
1391
- d(), this.d(s.debugChanged.don(d));
1390
+ const a = () => o.debug = s.debug ?? !1;
1391
+ a(), this.d(s.debugChanged.don(a));
1392
1392
  }
1393
1393
  {
1394
- let d = !1;
1394
+ let a = !1;
1395
1395
  const p = this.dv(R(
1396
1396
  this._videoInitialized.changed,
1397
1397
  this._webRtcConnected.changed,
1398
1398
  this._webSocketOpen.changed
1399
1399
  ));
1400
1400
  this.d(p.don(() => {
1401
- if (d) return;
1401
+ if (a) return;
1402
1402
  const c = this._ue5ViewerWrapper.instance.webSocketReady;
1403
1403
  if (this.videoInitialized && this.webRtcConnected && c) {
1404
- this._ue5ViewerWrapper.instance.emitUIInteraction(), this._readyEvent.emit(), d = !0, console.log("%c[EarthSDK videoInitialized && webRtcConnected && webSocketReady]", "background: #a6ec99; color: black");
1404
+ this._ue5ViewerWrapper.instance.emitUIInteraction(), this._readyEvent.emit(), a = !0, console.log("%c[EarthSDK videoInitialized && webRtcConnected && webSocketReady]", "background: #a6ec99; color: black");
1405
1405
  const g = { eventType: "init", params: {} };
1406
1406
  this._ue5ViewerWrapper.emitUIInteractionForBigData(g);
1407
1407
  } else
1408
- console.warn("webSocketReady", c), d = !1;
1408
+ console.warn("webSocketReady", c), a = !1;
1409
1409
  }));
1410
1410
  }
1411
- this.d(o.event.don((d, p) => {
1412
- if (d === "errorEvent")
1411
+ this.d(o.event.don((a, p) => {
1412
+ if (a === "errorEvent")
1413
1413
  this._errorEvent.emit(p);
1414
- else if (d === "videoInitialized")
1414
+ else if (a === "videoInitialized")
1415
1415
  this._videoInitialized.value = !0;
1416
- else if (d === "webRtcConnected")
1416
+ else if (a === "webRtcConnected")
1417
1417
  this._webRtcConnected.value = !0;
1418
- else if (d === "webSocketOpen")
1418
+ else if (a === "webSocketOpen")
1419
1419
  this._webSocketOpen.value = !0;
1420
- else if (d === "ueevent") {
1420
+ else if (a === "ueevent") {
1421
1421
  const c = JSON.parse(p);
1422
1422
  if (c.t === "cr") {
1423
1423
  const g = c;
@@ -1428,9 +1428,9 @@ class io extends Re {
1428
1428
  }
1429
1429
  }));
1430
1430
  {
1431
- const d = this.dv(li());
1431
+ const a = this.dv(li());
1432
1432
  let p, c, g;
1433
- d.start(() => {
1433
+ a.start(() => {
1434
1434
  if (p !== t.offsetWidth || c !== t.offsetHeight || g !== s.resolutionScale) {
1435
1435
  if (p = t.offsetWidth, c = t.offsetHeight, p === void 0 || c === void 0 || !Number.isFinite(p) || !Number.isFinite(c) || p < 0 || c < 0) {
1436
1436
  console.warn(`lastWidth === undefined || lastHeight === undefined || !Number.isFinite(lastWidth) || !Number.isFinite(lastHeight) || lastWidth < 0 || lastHeight < 0 ${p} ${c}`);
@@ -1440,19 +1440,19 @@ class io extends Re {
1440
1440
  }
1441
1441
  });
1442
1442
  }
1443
- this.d(this._ueFuncResultWithIdsEvent.don((d) => {
1444
- for (const p of d) {
1443
+ this.d(this._ueFuncResultWithIdsEvent.don((a) => {
1444
+ for (const p of a) {
1445
1445
  const c = this._waitingUeFuncIdAndResultCallbacks.get(p.fid);
1446
1446
  c && (this._waitingUeFuncIdAndResultCallbacks.delete(p.fid), c.resultCallback(p.r));
1447
1447
  }
1448
1448
  }));
1449
1449
  let u = 0;
1450
- const l = (d) => {
1450
+ const d = (a) => {
1451
1451
  const p = {
1452
1452
  n: u++,
1453
1453
  tt: Date.now(),
1454
1454
  t: "c",
1455
- fs: d
1455
+ fs: a
1456
1456
  };
1457
1457
  this._waitingUeCalls.add(p), s.debug && (console.group(
1458
1458
  "%cxe2 => ue",
@@ -1463,7 +1463,7 @@ class io extends Re {
1463
1463
  ), console.groupEnd()), this._ue5ViewerWrapper.emitUIInteractionForBigData(p, () => {
1464
1464
  this._waitingUeCalls.delete(p);
1465
1465
  });
1466
- }, f = () => {
1466
+ }, v = () => {
1467
1467
  if (!this._ue5ViewerWrapper.instance.webSocketReady || this._ueFuncWithIdAndResultCallbacks.length === 0) return;
1468
1468
  const p = this._ueFuncWithIdAndResultCallbacks.map(([c]) => c);
1469
1469
  for (const [c, g] of this._ueFuncWithIdAndResultCallbacks)
@@ -1478,11 +1478,11 @@ class io extends Re {
1478
1478
  if (C.push(k), ++y, S + x > c || C.length >= 20)
1479
1479
  break;
1480
1480
  } while (y < w);
1481
- C.length > 0 && (s.debug && console.log(`传送${C.length}条消息...`), l([...C]), C.length = 0, S = 0);
1481
+ C.length > 0 && (s.debug && console.log(`传送${C.length}条消息...`), d([...C]), C.length = 0, S = 0);
1482
1482
  } while (y < w);
1483
1483
  }
1484
1484
  };
1485
- this.dv(Ee()).start(f, 50), this.d(() => console.log("UeCloudViewer正在销毁..."));
1485
+ this.dv(Ee()).start(v, 50), this.d(() => console.log("UeCloudViewer正在销毁..."));
1486
1486
  }
1487
1487
  get videoInitialized() {
1488
1488
  return this._videoInitialized.value;
@@ -1507,12 +1507,12 @@ class io extends Re {
1507
1507
  }
1508
1508
  callUeFunc(t) {
1509
1509
  return new Promise((r) => {
1510
- const n = { fid: P(), ...t };
1510
+ const n = { fid: B(), ...t };
1511
1511
  this._ueFuncWithIdAndResultCallbacks.push([n, { timeStamp: Date.now(), ueFunc: t, resultCallback: r }]);
1512
1512
  });
1513
1513
  }
1514
1514
  disposableOnUeEvent(t, r) {
1515
- const i = P();
1515
+ const i = B();
1516
1516
  this.callUeFunc({
1517
1517
  f: "addEventListener",
1518
1518
  p: {
@@ -1535,7 +1535,7 @@ class io extends Re {
1535
1535
  };
1536
1536
  }
1537
1537
  }
1538
- class no extends m {
1538
+ class io extends m {
1539
1539
  /**
1540
1540
  * Creates an instance of DLViewer.
1541
1541
  * @param {HTMLDivElement} container
@@ -1555,15 +1555,15 @@ class no extends m {
1555
1555
  this._vIframe = o, o.style.cssText = "width: 100%; height: 100%; margin: 0; padding: 0; border: none; outline: none;", t.appendChild(o), this.d(() => {
1556
1556
  o && t.removeChild(o);
1557
1557
  });
1558
- const u = D.getStrFromEnv(i + `/web/${r}.html`);
1558
+ const u = P.getStrFromEnv(i + `/web/${r}.html`);
1559
1559
  o.src = u, o.onload = () => {
1560
- const l = o.contentWindow;
1561
- if (!l) {
1560
+ const d = o.contentWindow;
1561
+ if (!d) {
1562
1562
  console.error("iframeWindow is null");
1563
1563
  return;
1564
1564
  }
1565
- console.log("iwindow.Module", l.Module), l.Module.onRuntimeInitialized = () => {
1566
- this._onRuntimeInitialized.emit(), s.setStatus("Created"), s.setStatusLog("创建成功"), l.Module.UE4_resizeCanvas(), l.console.log("创建成功__________________________________________");
1565
+ console.log("iwindow.Module", d.Module), d.Module.onRuntimeInitialized = () => {
1566
+ this._onRuntimeInitialized.emit(), s.setStatus("Created"), s.setStatusLog("创建成功"), d.Module.UE4_resizeCanvas(), d.console.log("创建成功__________________________________________");
1567
1567
  };
1568
1568
  };
1569
1569
  }
@@ -1575,47 +1575,47 @@ class no extends m {
1575
1575
  return this._vIframe;
1576
1576
  }
1577
1577
  }
1578
- const He = typeof TextDecoder < "u" ? new TextDecoder() : void 0, so = (a, e = 0, t = NaN) => {
1578
+ const He = typeof TextDecoder < "u" ? new TextDecoder() : void 0, no = (l, e = 0, t = NaN) => {
1579
1579
  const r = e + t;
1580
1580
  let i = e;
1581
- for (; a[i] && !(i >= r); ) ++i;
1582
- if (i - e > 16 && a.buffer && He)
1583
- return He.decode(a.subarray(e, i));
1581
+ for (; l[i] && !(i >= r); ) ++i;
1582
+ if (i - e > 16 && l.buffer && He)
1583
+ return He.decode(l.subarray(e, i));
1584
1584
  let n = "";
1585
1585
  for (; e < i; ) {
1586
- var s = a[e++];
1586
+ var s = l[e++];
1587
1587
  if (!(s & 128)) {
1588
1588
  n += String.fromCharCode(s);
1589
1589
  continue;
1590
1590
  }
1591
- var o = a[e++] & 63;
1591
+ var o = l[e++] & 63;
1592
1592
  if ((s & 224) == 192) {
1593
1593
  n += String.fromCharCode((s & 31) << 6 | o);
1594
1594
  continue;
1595
1595
  }
1596
- var u = a[e++] & 63;
1597
- if ((s & 240) == 224 ? s = (s & 15) << 12 | o << 6 | u : ((s & 248) != 240 && console.warn("Invalid UTF-8 leading byte encountered when deserializing a UTF-8 string in wasm memory to a JS string!"), s = (s & 7) << 18 | o << 12 | u << 6 | a[e++] & 63), s < 65536)
1596
+ var u = l[e++] & 63;
1597
+ if ((s & 240) == 224 ? s = (s & 15) << 12 | o << 6 | u : ((s & 248) != 240 && console.warn("Invalid UTF-8 leading byte encountered when deserializing a UTF-8 string in wasm memory to a JS string!"), s = (s & 7) << 18 | o << 12 | u << 6 | l[e++] & 63), s < 65536)
1598
1598
  n += String.fromCharCode(s);
1599
1599
  else {
1600
- var l = s - 65536;
1601
- n += String.fromCharCode(55296 | l >> 10, 56320 | l & 1023);
1600
+ var d = s - 65536;
1601
+ n += String.fromCharCode(55296 | d >> 10, 56320 | d & 1023);
1602
1602
  }
1603
1603
  }
1604
1604
  return n;
1605
1605
  };
1606
- class oo extends m {
1606
+ class so extends m {
1607
1607
  constructor(e, t, r) {
1608
1608
  super();
1609
1609
  {
1610
1610
  const i = () => {
1611
- const u = _e(t);
1611
+ const u = Me(t);
1612
1612
  t.setGlobalProperty(u);
1613
1613
  };
1614
1614
  i();
1615
1615
  const n = Te(), s = [];
1616
1616
  n.forEach((u) => {
1617
- const l = t[u + "Changed"];
1618
- s.push(l);
1617
+ const d = t[u + "Changed"];
1618
+ s.push(d);
1619
1619
  });
1620
1620
  const o = this.dv(R(...s));
1621
1621
  this.d(o.don(i));
@@ -1630,7 +1630,7 @@ class oo extends m {
1630
1630
  } catch (n) {
1631
1631
  console.error("ueViewer propChanged:" + n);
1632
1632
  }
1633
- })), t.useCustomInteraction = !1, this.dv(new si(t, e)), this.dv(new T(t.statusUpdateIntervalChanged, (i) => {
1633
+ })), t.useCustomInteraction = !1, this.dv(new ni(t, e)), this.dv(new T(t.statusUpdateIntervalChanged, (i) => {
1634
1634
  if ((t.statusUpdateInterval ?? 0.5) === 0) return;
1635
1635
  const s = new m();
1636
1636
  return s.d(r.disposableOnUeEvent("statusUpdate", (o) => {
@@ -1675,8 +1675,8 @@ class oo extends m {
1675
1675
  }));
1676
1676
  }
1677
1677
  }
1678
- let ao = -1;
1679
- class lo extends Re {
1678
+ let oo = -1;
1679
+ class ao extends Re {
1680
1680
  /**
1681
1681
  * Creates an instance of H5Viewer.
1682
1682
  * @param {HTMLDivElement} container
@@ -1694,21 +1694,21 @@ class lo extends Re {
1694
1694
  h(this, "_waitingUeCalls", /* @__PURE__ */ new Map());
1695
1695
  h(this, "_ueEvent", this.dv(new E()));
1696
1696
  this._ueViewer = n;
1697
- const s = this._ueViewer, o = this.dv(new no(t, r, i, s));
1698
- let u = !1, l = null;
1697
+ const s = this._ueViewer, o = this.dv(new io(t, r, i, s));
1698
+ let u = !1, d = null;
1699
1699
  this.d(o.onRuntimeInitialized.don(() => {
1700
1700
  var p;
1701
1701
  if (u = !0, (p = o == null ? void 0 : o.vIframe) != null && p.contentWindow) {
1702
- l = o.vIframe.contentWindow;
1702
+ d = o.vIframe.contentWindow;
1703
1703
  const c = o.vIframe.contentWindow.document.getElementById("mainarea");
1704
- c ? this.dv(new oo(c, s, this)) : console.error("h5Container is null");
1704
+ c ? this.dv(new so(c, s, this)) : console.error("h5Container is null");
1705
1705
  } else {
1706
1706
  console.error("iframeWindow is null");
1707
1707
  return;
1708
1708
  }
1709
- l.UE_JSHTML5Communication ? l.UE_JSHTML5Communication.UESendMessageToJS = (c) => {
1709
+ d.UE_JSHTML5Communication ? d.UE_JSHTML5Communication.UESendMessageToJS = (c) => {
1710
1710
  try {
1711
- const g = so(l.HEAPU8, c), w = JSON.parse(g);
1711
+ const g = no(d.HEAPU8, c), w = JSON.parse(g);
1712
1712
  if (s.debug && (console.group(
1713
1713
  "%cUE => JS",
1714
1714
  " background-color:#006EFF;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"
@@ -1732,12 +1732,12 @@ class lo extends Re {
1732
1732
  g && (this._waitingUeFuncIdAndResultCallbacks.delete(c.fid), g(c.r));
1733
1733
  }
1734
1734
  }));
1735
- let f = 0;
1736
- const v = () => {
1737
- if (!u || !l || !l.UE_JSHTML5Communication || !l.UE_JSHTML5Communication.JSSendMessageToUE || this._ueFuncWithIdAndResultCallbacks.length === 0) return;
1738
- const p = this._ueFuncWithIdAndResultCallbacks.map(([x]) => x), c = { n: f++, tt: Date.now(), t: "c", fs: p, callid: P() };
1739
- for (const [x, A] of this._ueFuncWithIdAndResultCallbacks)
1740
- this._waitingUeFuncIdAndResultCallbacks.set(x.fid, A);
1735
+ let v = 0;
1736
+ const f = () => {
1737
+ if (!u || !d || !d.UE_JSHTML5Communication || !d.UE_JSHTML5Communication.JSSendMessageToUE || this._ueFuncWithIdAndResultCallbacks.length === 0) return;
1738
+ const p = this._ueFuncWithIdAndResultCallbacks.map(([x]) => x), c = { n: v++, tt: Date.now(), t: "c", fs: p, callid: B() };
1739
+ for (const [x, _] of this._ueFuncWithIdAndResultCallbacks)
1740
+ this._waitingUeFuncIdAndResultCallbacks.set(x.fid, _);
1741
1741
  this._ueFuncWithIdAndResultCallbacks.length = 0, this._waitingUeCalls.set(c.callid, c), s.debug && (console.group(
1742
1742
  "%cxe2 => ue",
1743
1743
  " background-color:green;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"
@@ -1745,19 +1745,19 @@ class lo extends Re {
1745
1745
  `%c${JSON.stringify(c, void 0, "")}`,
1746
1746
  " border:1px dashed green;border-radius:5px;padding:10px;line-height:25px;color:green;"
1747
1747
  ), console.groupEnd());
1748
- const g = JSON.stringify(c), w = window.g_emitDescriptor_maxBytes ?? 3e4, y = g.length, S = ++ao;
1748
+ const g = JSON.stringify(c), w = window.g_emitDescriptor_maxBytes ?? 3e4, y = g.length, S = ++oo;
1749
1749
  if (y < w) {
1750
1750
  const x = `${S}-0/1-` + g;
1751
- l.UE_JSHTML5Communication.JSSendMessageToUE(x);
1751
+ d.UE_JSHTML5Communication.JSSendMessageToUE(x);
1752
1752
  return;
1753
1753
  }
1754
1754
  const C = Math.ceil(y / w) | 0;
1755
- [...new Array(C).keys()].map((x) => g.slice(x * w, (x + 1) * w)).forEach((x, A) => {
1756
- const ye = `${S}-${A}/${C}-` + x;
1757
- l.UE_JSHTML5Communication.JSSendMessageToUE(ye);
1755
+ [...new Array(C).keys()].map((x) => g.slice(x * w, (x + 1) * w)).forEach((x, _) => {
1756
+ const ye = `${S}-${_}/${C}-` + x;
1757
+ d.UE_JSHTML5Communication.JSSendMessageToUE(ye);
1758
1758
  });
1759
1759
  };
1760
- this.dv(Ee()).start(v, 50);
1760
+ this.dv(Ee()).start(f, 50);
1761
1761
  }
1762
1762
  processResponse(t) {
1763
1763
  if (this._ueViewer.debug ?? !1)
@@ -1776,12 +1776,12 @@ class lo extends Re {
1776
1776
  }
1777
1777
  callUeFunc(t) {
1778
1778
  return new Promise((r) => {
1779
- const n = { fid: P(), ...t };
1779
+ const n = { fid: B(), ...t };
1780
1780
  this._ueFuncWithIdAndResultCallbacks.push([n, r]);
1781
1781
  });
1782
1782
  }
1783
1783
  disposableOnUeEvent(t, r) {
1784
- const i = P();
1784
+ const i = B();
1785
1785
  this.callUeFunc({
1786
1786
  f: "addEventListener",
1787
1787
  p: {
@@ -1804,8 +1804,8 @@ class lo extends Re {
1804
1804
  };
1805
1805
  }
1806
1806
  }
1807
- let co = -1;
1808
- class uo extends Re {
1807
+ let lo = -1;
1808
+ class co extends Re {
1809
1809
  constructor(t, r) {
1810
1810
  super();
1811
1811
  h(this, "_ueFuncResultWithIdsEvent", this.dv(new E()));
@@ -1820,58 +1820,58 @@ class uo extends Re {
1820
1820
  eventType: "init",
1821
1821
  params: {}
1822
1822
  };
1823
- window.ue.es.oncommand(JSON.stringify(s)), n = !0, window.calljs = (f, v) => {
1824
- if (i.debug && console.log(`calljs eventName:${f} eventDetailStr:${v}`), f === "ueevent" || f === "commanFinish")
1823
+ window.ue.es.oncommand(JSON.stringify(s)), n = !0, window.calljs = (v, f) => {
1824
+ if (i.debug && console.log(`calljs eventName:${v} eventDetailStr:${f}`), v === "ueevent" || v === "commanFinish")
1825
1825
  try {
1826
- const d = JSON.parse(v);
1827
- if (d.t === "cr") {
1828
- const p = d;
1826
+ const a = JSON.parse(f);
1827
+ if (a.t === "cr") {
1828
+ const p = a;
1829
1829
  if (p.frs && this._ueFuncResultWithIdsEvent.emit(p.frs), p.ers)
1830
1830
  for (let c of p.ers)
1831
1831
  this._ueEvent.emit(c);
1832
1832
  }
1833
- } catch (d) {
1834
- console.error(d);
1833
+ } catch (a) {
1834
+ console.error(a);
1835
1835
  }
1836
- }, this.dispose(this._ueFuncResultWithIdsEvent.disposableOn((f) => {
1837
- for (const v of f) {
1838
- const d = this._waitingUeFuncIdAndResultCallbacks.get(v.fid);
1839
- d && (this._waitingUeFuncIdAndResultCallbacks.delete(v.fid), d(v.r));
1836
+ }, this.dispose(this._ueFuncResultWithIdsEvent.disposableOn((v) => {
1837
+ for (const f of v) {
1838
+ const a = this._waitingUeFuncIdAndResultCallbacks.get(f.fid);
1839
+ a && (this._waitingUeFuncIdAndResultCallbacks.delete(f.fid), a(f.r));
1840
1840
  }
1841
1841
  }));
1842
1842
  let o = 0;
1843
1843
  const u = () => {
1844
1844
  if (!n || this._ueFuncWithIdAndResultCallbacks.length === 0) return;
1845
- const f = this._ueFuncWithIdAndResultCallbacks.map(([p]) => p), v = {
1845
+ const v = this._ueFuncWithIdAndResultCallbacks.map(([p]) => p), f = {
1846
1846
  n: o++,
1847
1847
  tt: Date.now(),
1848
1848
  t: "c",
1849
- fs: f
1849
+ fs: v
1850
1850
  };
1851
1851
  for (const [p, c] of this._ueFuncWithIdAndResultCallbacks)
1852
1852
  this._waitingUeFuncIdAndResultCallbacks.set(p.fid, c);
1853
- this._ueFuncWithIdAndResultCallbacks.length = 0, this._waitingUeCalls.add(v), i.debug && (console.group(
1853
+ this._ueFuncWithIdAndResultCallbacks.length = 0, this._waitingUeCalls.add(f), i.debug && (console.group(
1854
1854
  "%cxe2 => ue",
1855
1855
  " background-color:green;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"
1856
1856
  ), console.log(
1857
- `%c${JSON.stringify(v, void 0, "")}`,
1857
+ `%c${JSON.stringify(f, void 0, "")}`,
1858
1858
  " border:1px dashed green;border-radius:5px;padding:10px;line-height:25px;color:green;"
1859
1859
  ), console.groupEnd());
1860
- const d = ++co;
1861
- window.ue.es.oncommand(`${d}-0/1-` + JSON.stringify(v)).then(() => {
1862
- this._waitingUeCalls.delete(v);
1860
+ const a = ++lo;
1861
+ window.ue.es.oncommand(`${a}-0/1-` + JSON.stringify(f)).then(() => {
1862
+ this._waitingUeCalls.delete(f);
1863
1863
  });
1864
1864
  };
1865
1865
  this.dv(Ee()).start(u, 50);
1866
1866
  }
1867
1867
  callUeFunc(t) {
1868
1868
  return new Promise((r) => {
1869
- const n = { fid: P(), ...t };
1869
+ const n = { fid: B(), ...t };
1870
1870
  this._ueFuncWithIdAndResultCallbacks.push([n, r]);
1871
1871
  });
1872
1872
  }
1873
1873
  disposableOnUeEvent(t, r) {
1874
- const i = P();
1874
+ const i = B();
1875
1875
  this.callUeFunc({
1876
1876
  f: "addEventListener",
1877
1877
  p: {
@@ -1894,12 +1894,12 @@ class uo extends Re {
1894
1894
  };
1895
1895
  }
1896
1896
  }
1897
- class ho extends m {
1897
+ class uo extends m {
1898
1898
  constructor(e, t) {
1899
1899
  super();
1900
1900
  {
1901
1901
  const r = () => {
1902
- const o = _e(e);
1902
+ const o = Me(e);
1903
1903
  e.setGlobalProperty(o);
1904
1904
  };
1905
1905
  r();
@@ -1966,19 +1966,19 @@ class ho extends m {
1966
1966
  }));
1967
1967
  }
1968
1968
  }
1969
- class po extends m {
1969
+ class ho extends m {
1970
1970
  constructor(e, t, r) {
1971
1971
  super();
1972
1972
  {
1973
1973
  const n = () => {
1974
- const l = _e(t);
1975
- t.setGlobalProperty(l);
1974
+ const d = Me(t);
1975
+ t.setGlobalProperty(d);
1976
1976
  };
1977
1977
  n();
1978
1978
  const s = Te(), o = [];
1979
- s.forEach((l) => {
1980
- const f = t[l + "Changed"];
1981
- o.push(f);
1979
+ s.forEach((d) => {
1980
+ const v = t[d + "Changed"];
1981
+ o.push(v);
1982
1982
  });
1983
1983
  const u = this.dv(R(...o));
1984
1984
  this.d(u.don(n));
@@ -1999,20 +1999,20 @@ class po extends m {
1999
1999
  i && e && e.removeChild(i);
2000
2000
  });
2001
2001
  {
2002
- const n = (l, f) => {
2003
- window.ue.esinput.setinterceptevent(f), l.preventDefault();
2004
- }, s = (l) => {
2005
- n(l, !1);
2006
- }, o = (l) => {
2007
- n(l, !0);
2008
- }, u = (l) => {
2009
- n(l, !1);
2002
+ const n = (d, v) => {
2003
+ window.ue.esinput.setinterceptevent(v), d.preventDefault();
2004
+ }, s = (d) => {
2005
+ n(d, !1);
2006
+ }, o = (d) => {
2007
+ n(d, !0);
2008
+ }, u = (d) => {
2009
+ n(d, !1);
2010
2010
  };
2011
2011
  i.addEventListener("mouseenter", s), i.addEventListener("mouseleave", o), i.addEventListener("mousemove", u), this.d(() => {
2012
2012
  i.removeEventListener("mouseenter", s), i.removeEventListener("mouseleave", o), i.removeEventListener("mousemove", u);
2013
2013
  });
2014
2014
  }
2015
- t.useCustomInteraction = !1, this.dv(new si(t, i, void 0, !0)), this.dv(new T(t.statusUpdateIntervalChanged, (n) => {
2015
+ t.useCustomInteraction = !1, this.dv(new ni(t, i, void 0, !0)), this.dv(new T(t.statusUpdateIntervalChanged, (n) => {
2016
2016
  if ((t.statusUpdateInterval ?? 0.5) === 0) return;
2017
2017
  const o = new m();
2018
2018
  return o.d(r.disposableOnUeEvent("statusUpdate", (u) => {
@@ -2057,19 +2057,19 @@ class po extends m {
2057
2057
  }));
2058
2058
  }
2059
2059
  }
2060
- class fo extends m {
2060
+ class po extends m {
2061
2061
  constructor(t, r, i) {
2062
2062
  super();
2063
2063
  h(this, "_reconnectEvent", this.dv(new E()));
2064
- const n = (u, l) => u.hasOwnProperty(l);
2064
+ const n = (u, d) => u.hasOwnProperty(d);
2065
2065
  let s = 0, o;
2066
2066
  if (this.d(() => {
2067
2067
  o && clearTimeout(o);
2068
2068
  }), window.ue && window.ue.es)
2069
2069
  if (window.ue.esinput) {
2070
2070
  i.setStatus("Creating"), console.log("存在(window.ue && window.ue.es && window.ue.esinput 需要适配新版ESWebView 鼠标穿透), 开始创建UeFalseCloudViewer..."), i.setStatusLog("开始创建本地视口...");
2071
- const u = this.dv(new uo(t, i));
2072
- this.d(() => i.viewer = void 0), i.viewer = u, i.setStatus("Created"), i.setStatusLog("本地视口创建成功!"), this.dv(new po(t, i, u));
2071
+ const u = this.dv(new co(t, i));
2072
+ this.d(() => i.viewer = void 0), i.viewer = u, i.setStatus("Created"), i.setStatusLog("本地视口创建成功!"), this.dv(new ho(t, i, u));
2073
2073
  } else
2074
2074
  i.setStatus("Error"), i.setStatusLog("请升级 ESWebView !");
2075
2075
  else if (n(r.options, "ws") || n(r.options, "uri") && n(r.options, "app")) {
@@ -2078,53 +2078,53 @@ class fo extends m {
2078
2078
  this.d(() => {
2079
2079
  i.setStatus("Raw"), i.setStatusLog(""), t && u && t.removeChild(u) && (u = void 0);
2080
2080
  });
2081
- const l = this.dv(Se(async (f) => {
2081
+ const d = this.dv(Se(async (v) => {
2082
2082
  i.viewer && !i.viewer.isDestroyed() && i.viewer.destroy(), i.viewer = void 0, u && t.removeChild(u) && (u = void 0), u = document.createElement("div"), u.setAttribute("earthsdk3-ue", "earthsdk3-ue-videoContainer"), u.style.cssText = "position:relative; height: 100%;width:100%;", t.appendChild(u);
2083
- let v, d, p;
2083
+ let f, a, p;
2084
2084
  if (n(r.options, "ws")) {
2085
2085
  const { ws: y, esmsg: S, uselnternalSignallingServer: C } = r.options;
2086
- v = y, d = S, p = C ?? !1;
2086
+ f = y, a = S, p = C ?? !1;
2087
2087
  }
2088
2088
  if (n(r.options, "uri") && n(r.options, "app")) {
2089
2089
  const { offsetWidth: y, offsetHeight: S } = u;
2090
2090
  let { uri: C, app: k, token: x } = r.options;
2091
2091
  C.endsWith("/") || (C += "/");
2092
- const A = x ? `?essstoken=${x}` : "", ye = `/${k}/${y ?? 1920}/${S ?? 1080}` + A;
2092
+ const _ = x ? `?essstoken=${x}` : "", ye = `/${k}/${y ?? 1920}/${S ?? 1080}` + _;
2093
2093
  console.log(`请求信令服务器: ${C}instance${ye}`);
2094
- const mi = await f.promise(fetch(`${C}instance${ye}`, { method: "GET" })), q = await f.promise(mi.json());
2095
- if (q && q.status !== "ok") {
2096
- i.setStatus("Error"), i.setStatusLog(`信令服务器请求失败 ${q.status}`), this._reconnectEvent.emit(void 0);
2094
+ const yi = await v.promise(fetch(`${C}instance${ye}`, { method: "GET" })), Z = await v.promise(yi.json());
2095
+ if (Z && Z.status !== "ok") {
2096
+ i.setStatus("Error"), i.setStatusLog(`信令服务器请求失败 ${Z.status}`), this._reconnectEvent.emit(void 0);
2097
2097
  return;
2098
2098
  } else {
2099
- console.log(`信令服务器请求成功! ${JSON.stringify(q, void 0, " ")}`), await Hn(5e3);
2100
- const { server: Ci, esmsg: Fi, instanceId: Ii, useInternalSignallingServer: Ei } = q;
2101
- if (!Ii) {
2099
+ console.log(`信令服务器请求成功! ${JSON.stringify(Z, void 0, " ")}`), await Hn(5e3);
2100
+ const { server: mi, esmsg: Ci, instanceId: Fi, useInternalSignallingServer: Ii } = Z;
2101
+ if (!Fi) {
2102
2102
  i.setStatus("Error"), i.setStatusLog("检查信令服务器版本,返回数据错误! "), console.log("信令服务器返回数据错误!不包含instanceId!请升级到 ESSS V3.0+ 版本!"), this._reconnectEvent.emit(void 0);
2103
2103
  return;
2104
2104
  }
2105
- v = Ci, d = Fi, p = Ei ?? !1, i.esssResponse = q;
2105
+ f = mi, a = Ci, p = Ii ?? !1, i.esssResponse = Z;
2106
2106
  }
2107
2107
  }
2108
- const c = this.dv(p ? new io(u, v, d, i) : new qs(u, v, d, i));
2108
+ const c = this.dv(p ? new ro(u, f, a, i) : new qs(u, f, a, i));
2109
2109
  this.d(() => i.viewer = void 0), this.d(c.errorEvent.don((y) => {
2110
2110
  const S = `[${y}]:像素流连接错误!`;
2111
2111
  i.setStatus("Error"), i.setStatusLog(S), this._reconnectEvent.emit(c);
2112
- })), await f.promise(new Promise((y) => this.d(c.readyEvent.donce(y)))), i.setStatus("Created"), i.setStatusLog("云渲染视口创建成功!"), s = 0, o && clearTimeout(o), o = void 0;
2112
+ })), await v.promise(new Promise((y) => this.d(c.readyEvent.donce(y)))), i.setStatus("Created"), i.setStatusLog("云渲染视口创建成功!"), s = 0, o && clearTimeout(o), o = void 0;
2113
2113
  const { offsetWidth: g, offsetHeight: w } = u;
2114
- c.resize(g * window.devicePixelRatio, w * window.devicePixelRatio), i.viewer = c, this.d(() => i.viewer = void 0), this.dv(new ho(i, c));
2114
+ c.resize(g * window.devicePixelRatio, w * window.devicePixelRatio), i.viewer = c, this.d(() => i.viewer = void 0), this.dv(new uo(i, c));
2115
2115
  }));
2116
- l.start(), this.d(this._reconnectEvent.don((f) => {
2117
- o === void 0 && (f && !f.isDestroyed() && f.destroy(), i.viewer && !i.viewer.isDestroyed() && i.viewer.destroy(), i.viewer = void 0, i.autoReconnect && (i.setStatus("Reconnecting"), i.setStatusLog("正在尝试重新连接..."), s = s + 5e3 > 3e4 ? 3e4 : s + 5e3, console.warn(`间隔:${s / 1e3}s,正在尝试重新连接...`), o = window.setTimeout(() => {
2118
- l.restart();
2116
+ d.start(), this.d(this._reconnectEvent.don((v) => {
2117
+ o === void 0 && (v && !v.isDestroyed() && v.destroy(), i.viewer && !i.viewer.isDestroyed() && i.viewer.destroy(), i.viewer = void 0, i.autoReconnect && (i.setStatus("Reconnecting"), i.setStatusLog("正在尝试重新连接..."), s = s + 5e3 > 3e4 ? 3e4 : s + 5e3, console.warn(`间隔:${s / 1e3}s,正在尝试重新连接...`), o = window.setTimeout(() => {
2118
+ d.restart();
2119
2119
  }, s)));
2120
- })), this.d(l.errorEvent.don((f) => {
2121
- i.setStatus("Error"), i.setStatusLog("云渲染视口创建失败!"), console.warn("云渲染视口创建失败!", f), this._reconnectEvent.emit(void 0);
2120
+ })), this.d(d.errorEvent.don((v) => {
2121
+ i.setStatus("Error"), i.setStatusLog("云渲染视口创建失败!"), console.warn("云渲染视口创建失败!", v), this._reconnectEvent.emit(void 0);
2122
2122
  }));
2123
2123
  } else if (n(r.options, "project")) {
2124
- const u = r, l = u.options.project, f = u.options.baseUrl;
2124
+ const u = r, d = u.options.project, v = u.options.baseUrl;
2125
2125
  i.setStatus("Creating"), i.setStatusLog("下载编译中...");
2126
- const v = this.dv(new lo(t, l, f, i));
2127
- i.viewer = v, this.d(() => i.viewer = void 0);
2126
+ const f = this.dv(new ao(t, d, v, i));
2127
+ i.viewer = f, this.d(() => i.viewer = void 0);
2128
2128
  } else
2129
2129
  i.setStatus("Error"), i.setStatusLog("视口创建失败!"), console.warn("视口创建失败: 参数错误!");
2130
2130
  }
@@ -2132,7 +2132,7 @@ class fo extends m {
2132
2132
  const G = class G extends Ie {
2133
2133
  constructor(t) {
2134
2134
  super(t);
2135
- h(this, "_viewer", this.dv(_(void 0)));
2135
+ h(this, "_viewer", this.dv($(void 0)));
2136
2136
  h(this, "_esssResponse");
2137
2137
  h(this, "_speechRecognition", this.dv(new E()));
2138
2138
  h(this, "_propChanged", this.dv(new E()));
@@ -2151,7 +2151,7 @@ const G = class G extends Ie {
2151
2151
  this.viewerChanged.emit(this.viewer);
2152
2152
  })), this.dv(new T(this.subContainerChanged, () => {
2153
2153
  if (this.setStatus("Raw"), this.setStatusLog(""), !!this.subContainer)
2154
- return new fo(this.subContainer, r, this);
2154
+ return new po(this.subContainer, r, this);
2155
2155
  }));
2156
2156
  }
2157
2157
  get defaultProps() {
@@ -2194,14 +2194,14 @@ const G = class G extends Ie {
2194
2194
  console.warn("UEPositionToLonLatAlt: viewer is undefined");
2195
2195
  return;
2196
2196
  }
2197
- return await Cs(this.viewer, t);
2197
+ return await ms(this.viewer, t);
2198
2198
  }
2199
2199
  async changeNavigationMode(t) {
2200
2200
  if (!this.viewer) {
2201
2201
  console.warn("ChangeNavigationMode: viewer is undefined");
2202
2202
  return;
2203
2203
  }
2204
- const r = await b(this.viewer, t);
2204
+ const r = await H(this.viewer, t);
2205
2205
  return r && !r.error && (this._navigationMode.value = t.mode), r;
2206
2206
  }
2207
2207
  async resetWithCurrentCamera(t) {
@@ -2209,112 +2209,112 @@ const G = class G extends Ie {
2209
2209
  console.warn("resetWithCurrentCamera: viewer is undefined");
2210
2210
  return;
2211
2211
  }
2212
- return await gi(this.viewer, t);
2212
+ return await fi(this.viewer, t);
2213
2213
  }
2214
2214
  async getAllSocketNamesByActorTag(t) {
2215
2215
  if (!this.viewer) {
2216
2216
  console.warn("GetAllSocketNamesByActorTag: viewer is undefined");
2217
2217
  return;
2218
2218
  }
2219
- return await Fs(this.viewer, t);
2219
+ return await Cs(this.viewer, t);
2220
2220
  }
2221
2221
  async getBoundSphere(t) {
2222
2222
  if (!this.viewer) {
2223
2223
  console.warn("getBoundSphere: viewer is undefined");
2224
2224
  return;
2225
2225
  }
2226
- return await Es(this.viewer, t);
2226
+ return await Is(this.viewer, t);
2227
2227
  }
2228
2228
  async getBoundSphereWithChildren(t) {
2229
2229
  if (!this.viewer) {
2230
2230
  console.warn("getBoundSphereWithChildren: viewer is undefined");
2231
2231
  return;
2232
2232
  }
2233
- return await Ss(this.viewer, t);
2233
+ return await Es(this.viewer, t);
2234
2234
  }
2235
2235
  async getStrokeMaterialParamInfo(t) {
2236
2236
  if (!this.viewer) {
2237
2237
  console.warn("GetStrokeMaterialParamInfo: viewer is undefined");
2238
2238
  return;
2239
2239
  }
2240
- return await Ts(this.viewer, t);
2240
+ return await Ss(this.viewer, t);
2241
2241
  }
2242
2242
  async getFillMaterialParamInfo(t) {
2243
2243
  if (!this.viewer) {
2244
2244
  console.warn("getFillMaterialParamInfo: viewer is undefined");
2245
2245
  return;
2246
2246
  }
2247
- return await xs(this.viewer, t);
2247
+ return await Ts(this.viewer, t);
2248
2248
  }
2249
2249
  async getGlobalProperty(t) {
2250
2250
  if (!this.viewer) {
2251
2251
  console.warn("getGlobalProperty: viewer is undefined");
2252
2252
  return;
2253
2253
  }
2254
- return await Rs(this.viewer, t);
2254
+ return await xs(this.viewer, t);
2255
2255
  }
2256
2256
  async getObjectByInfo(t) {
2257
2257
  if (!this.viewer) {
2258
2258
  console.warn("GetObjectByInfo: viewer is undefined");
2259
2259
  return;
2260
2260
  }
2261
- return await ks(this.viewer, t);
2261
+ return await Rs(this.viewer, t);
2262
2262
  }
2263
2263
  async defaultCameraFlyIn(t = 1) {
2264
2264
  if (!this.viewer) {
2265
2265
  console.warn("DefaultCameraFlyIn: viewer is undefined");
2266
2266
  return;
2267
2267
  }
2268
- return await jn(this.viewer, t);
2268
+ return await On(this.viewer, t);
2269
2269
  }
2270
2270
  async startVoice() {
2271
2271
  if (!this.viewer) {
2272
2272
  console.warn("startVoice:viewer is undefined");
2273
2273
  return;
2274
2274
  }
2275
- return await ts(this.viewer);
2275
+ return await jn(this.viewer);
2276
2276
  }
2277
2277
  async stopVoice() {
2278
2278
  if (!this.viewer) {
2279
2279
  console.warn("startVoice:viewer is undefined");
2280
2280
  return;
2281
2281
  }
2282
- return await es(this.viewer);
2282
+ return await ts(this.viewer);
2283
2283
  }
2284
2284
  async mountPakFiles(t) {
2285
2285
  if (!this.viewer) {
2286
2286
  console.warn("mountPakFiles:viewer is undefined");
2287
2287
  return;
2288
2288
  }
2289
- return await rs(this.viewer, t);
2289
+ return await es(this.viewer, t);
2290
2290
  }
2291
2291
  async generateMemReport() {
2292
2292
  if (!this.viewer) {
2293
2293
  console.warn("generateMemReport:viewer is undefined");
2294
2294
  return;
2295
2295
  }
2296
- return await is(this.viewer);
2296
+ return await rs(this.viewer);
2297
2297
  }
2298
2298
  async quit() {
2299
2299
  if (!this.viewer) {
2300
2300
  console.warn("Quit: viewer is undefined");
2301
2301
  return;
2302
2302
  }
2303
- return await hs(this.viewer);
2303
+ return await us(this.viewer);
2304
2304
  }
2305
2305
  async bindActorByTag(t, r) {
2306
2306
  if (!this.viewer) {
2307
2307
  console.warn("BindActorByTag: viewer is undefined");
2308
2308
  return;
2309
2309
  }
2310
- return await Ls(this.viewer, t, r);
2310
+ return await ks(this.viewer, t, r);
2311
2311
  }
2312
2312
  async restoreOriginalScene() {
2313
2313
  if (!this.viewer) {
2314
2314
  console.warn("RestoreOriginalScene: viewer is undefined");
2315
2315
  return;
2316
2316
  }
2317
- return await Ds(this.viewer);
2317
+ return await Ls(this.viewer);
2318
2318
  }
2319
2319
  async unBindActorByID(t) {
2320
2320
  if (!this.viewer) {
@@ -2335,21 +2335,21 @@ const G = class G extends Ie {
2335
2335
  console.warn("CreateActorByClass: viewer is undefined");
2336
2336
  return;
2337
2337
  }
2338
- return await $s(this.viewer, t, r);
2338
+ return await Ds(this.viewer, t, r);
2339
2339
  }
2340
2340
  async bind3DTilesetByTag(t, r) {
2341
2341
  if (!this.viewer) {
2342
2342
  console.warn("Bind3DTilesetByTag: viewer is undefined");
2343
2343
  return;
2344
2344
  }
2345
- return await _s(this.viewer, t, r);
2345
+ return await Ms(this.viewer, t, r);
2346
2346
  }
2347
2347
  async unBind3DTilesetByTag(t) {
2348
2348
  if (!this.viewer) {
2349
2349
  console.warn("UnBind3DTilesetByTag: viewer is undefined");
2350
2350
  return;
2351
2351
  }
2352
- return await Ms(this.viewer, t);
2352
+ return await $s(this.viewer, t);
2353
2353
  }
2354
2354
  async unBind3DTilesetById(t) {
2355
2355
  if (!this.viewer) {
@@ -2370,21 +2370,21 @@ const G = class G extends Ie {
2370
2370
  console.warn("UnBindImageryByTag: viewer is undefined");
2371
2371
  return;
2372
2372
  }
2373
- return await Us(this.viewer, t, r);
2373
+ return await _s(this.viewer, t, r);
2374
2374
  }
2375
2375
  async unBindImageryById(t) {
2376
2376
  if (!this.viewer) {
2377
2377
  console.warn("UnBindImageryById: viewer is undefined");
2378
2378
  return;
2379
2379
  }
2380
- return await Ns(this.viewer, t);
2380
+ return await Us(this.viewer, t);
2381
2381
  }
2382
2382
  async getIdByComponentNameAndHitItem(t, r, i) {
2383
2383
  if (!this.viewer) {
2384
2384
  console.warn("GetIdByComponentNameAndHitItem: viewer is undefined");
2385
2385
  return;
2386
2386
  }
2387
- return await zs(this.viewer, t, r, i);
2387
+ return await Ns(this.viewer, t, r, i);
2388
2388
  }
2389
2389
  /**
2390
2390
  * @returns Promise(高度)
@@ -2396,7 +2396,7 @@ const G = class G extends Ie {
2396
2396
  console.warn("GetCameraRelativeHeight: viewer is undefined");
2397
2397
  return;
2398
2398
  }
2399
- return await bs(this.viewer, t);
2399
+ return await zs(this.viewer, t);
2400
2400
  }
2401
2401
  /**
2402
2402
  * 保存str到指定目录下
@@ -2422,14 +2422,14 @@ const G = class G extends Ie {
2422
2422
  console.warn("SendCustomMessage: viewer is undefined");
2423
2423
  return;
2424
2424
  }
2425
- return await Gs(this.viewer, t);
2425
+ return await bs(this.viewer, t);
2426
2426
  }
2427
2427
  async getStatus() {
2428
2428
  if (!this.viewer) {
2429
2429
  console.warn("GetStatus:viewer is undefined");
2430
2430
  return;
2431
2431
  }
2432
- return await Ks(this.viewer);
2432
+ return await Gs(this.viewer);
2433
2433
  }
2434
2434
  /**
2435
2435
  * 获取场景中可替换的材质列表
@@ -2447,10 +2447,10 @@ const G = class G extends Ie {
2447
2447
  if (!this.viewer) return;
2448
2448
  let n = t;
2449
2449
  if (t && window.ue && this.container) {
2450
- const [s, o] = t, { left: u, top: l } = this.container.getBoundingClientRect();
2451
- n = [u + s, l + o];
2450
+ const [s, o] = t, { left: u, top: d } = this.container.getBoundingClientRect();
2451
+ n = [u + s, d + o];
2452
2452
  }
2453
- return await ps(this.viewer, n, r, i);
2453
+ return await hs(this.viewer, n, r, i);
2454
2454
  }
2455
2455
  async pickPosition(t) {
2456
2456
  if (!this.viewer) return;
@@ -2459,7 +2459,7 @@ const G = class G extends Ie {
2459
2459
  const [i, n] = t, { left: s, top: o } = this.container.getBoundingClientRect();
2460
2460
  r = [s + i, o + n];
2461
2461
  }
2462
- return await fs(this.viewer, r);
2462
+ return await ps(this.viewer, r);
2463
2463
  }
2464
2464
  async flyIn(t, r = [0, 0, 0], i = 1, n = "default") {
2465
2465
  if (!this.viewer) return;
@@ -2479,9 +2479,9 @@ const G = class G extends Ie {
2479
2479
  [t[0], t[3], 0],
2480
2480
  [t[2], t[3], 0],
2481
2481
  [t[2], t[1], 0]
2482
- ], s = Ri(n);
2482
+ ], s = xi(n);
2483
2483
  if (!s) return;
2484
- const { center: o, radius: u } = s, l = {
2484
+ const { center: o, radius: u } = s, d = {
2485
2485
  distance: r ?? u,
2486
2486
  heading: 0,
2487
2487
  pitch: -90,
@@ -2489,7 +2489,7 @@ const G = class G extends Ie {
2489
2489
  hDelta: 0,
2490
2490
  pDelta: 0
2491
2491
  };
2492
- this.flyTo(l, o);
2492
+ this.flyTo(d, o);
2493
2493
  }
2494
2494
  /**
2495
2495
  * @description 获取当前相机信息
@@ -2513,7 +2513,7 @@ const G = class G extends Ie {
2513
2513
  */
2514
2514
  async changeToWalk(t, r = 4.2) {
2515
2515
  if (!this.viewer) return;
2516
- const i = { mode: "Walk", position: t, jumpZVelocity: r }, n = await b(this.viewer, i);
2516
+ const i = { mode: "Walk", position: t, jumpZVelocity: r }, n = await H(this.viewer, i);
2517
2517
  return n && !n.error && (this._navigationMode.value = i.mode), n;
2518
2518
  }
2519
2519
  /**
@@ -2522,7 +2522,7 @@ const G = class G extends Ie {
2522
2522
  */
2523
2523
  async changeToMap() {
2524
2524
  if (!this.viewer) return;
2525
- const t = { mode: "Map" }, r = await b(this.viewer, t);
2525
+ const t = { mode: "Map" }, r = await H(this.viewer, t);
2526
2526
  return r && !r.error && (this._navigationMode.value = t.mode), r;
2527
2527
  }
2528
2528
  /**
@@ -2534,7 +2534,7 @@ const G = class G extends Ie {
2534
2534
  */
2535
2535
  async changeToRotateGlobe(t = 38, r = 1e7, i = 60) {
2536
2536
  if (!this.viewer) return;
2537
- const n = { mode: "RotateGlobe", latitude: t, height: r, cycleTime: i }, s = await b(this.viewer, n);
2537
+ const n = { mode: "RotateGlobe", latitude: t, height: r, cycleTime: i }, s = await H(this.viewer, n);
2538
2538
  return s && !s.error && (this._navigationMode.value = n.mode), s;
2539
2539
  }
2540
2540
  /**
@@ -2549,8 +2549,8 @@ const G = class G extends Ie {
2549
2549
  */
2550
2550
  async changeToLine(t, r = 10, i = 10, n = !0, s = 10, o = "auto") {
2551
2551
  if (!this.viewer) return;
2552
- const u = { mode: "Line", geoLineStringId: t, speed: r, heightOffset: i, loop: n, turnRateDPS: s, lineMode: o }, l = await b(this.viewer, u);
2553
- return l && !l.error && (this._navigationMode.value = u.mode), l;
2552
+ const u = { mode: "Line", geoLineStringId: t, speed: r, heightOffset: i, loop: n, turnRateDPS: s, lineMode: o }, d = await H(this.viewer, u);
2553
+ return d && !d.error && (this._navigationMode.value = u.mode), d;
2554
2554
  }
2555
2555
  /**
2556
2556
  * 切换导航模式为“UserDefined” 仅UE支持。
@@ -2559,7 +2559,7 @@ const G = class G extends Ie {
2559
2559
  */
2560
2560
  async changeToUserDefined(t) {
2561
2561
  if (!this.viewer) return;
2562
- const r = { mode: "UserDefined", userDefinedPawn: t }, i = await b(this.viewer, r);
2562
+ const r = { mode: "UserDefined", userDefinedPawn: t }, i = await H(this.viewer, r);
2563
2563
  return i && !i.error && (this._navigationMode.value = r.mode), i;
2564
2564
  }
2565
2565
  /**
@@ -2579,7 +2579,7 @@ const G = class G extends Ie {
2579
2579
  orbitPeriod: i,
2580
2580
  heading: n,
2581
2581
  pitch: s
2582
- }, u = await b(this.viewer, o);
2582
+ }, u = await H(this.viewer, o);
2583
2583
  return u && !u.error && (this._navigationMode.value = o.mode), u;
2584
2584
  }
2585
2585
  /**
@@ -2591,7 +2591,7 @@ const G = class G extends Ie {
2591
2591
  */
2592
2592
  async changeToFollow(t, r = 0, i = 0, n = -30, s = !0) {
2593
2593
  if (!this.viewer) return;
2594
- const o = { mode: "Follow", objectId: t, distance: r, heading: i, pitch: n, relativeRotation: s }, u = await b(this.viewer, o);
2594
+ const o = { mode: "Follow", objectId: t, distance: r, heading: i, pitch: n, relativeRotation: s }, u = await H(this.viewer, o);
2595
2595
  return u && !u.error && (this._navigationMode.value = o.mode), u;
2596
2596
  }
2597
2597
  getFPS() {
@@ -2600,7 +2600,7 @@ const G = class G extends Ie {
2600
2600
  async getVersion() {
2601
2601
  const t = window.g_XE3CopyRights ?? {};
2602
2602
  if (!this.viewer) return t;
2603
- const r = await Is(this.viewer);
2603
+ const r = await Fs(this.viewer);
2604
2604
  return t.esforue = r, t;
2605
2605
  }
2606
2606
  async getHeightByLonLat(t, r, i = "ECC_Visibility") {
@@ -2609,42 +2609,42 @@ const G = class G extends Ie {
2609
2609
  return n && n.height !== void 0 ? n.height : null;
2610
2610
  }
2611
2611
  async getHeightsByLonLats(t, r = "ECC_Visibility") {
2612
- return this.viewer ? await gs(this.viewer, t, r) : void 0;
2612
+ return this.viewer ? await fs(this.viewer, t, r) : void 0;
2613
2613
  }
2614
2614
  async capture(t = 64, r = 64) {
2615
- return this.viewer ? await ws(this.viewer, t, r) : void 0;
2615
+ return this.viewer ? await gs(this.viewer, t, r) : void 0;
2616
2616
  }
2617
2617
  async partialCapture(t, r = [64, 64]) {
2618
2618
  if (!this.viewer) {
2619
2619
  console.warn("partialCapture:viewer is undefined");
2620
2620
  return;
2621
2621
  }
2622
- return await ys(this.viewer, t, r);
2622
+ return await ws(this.viewer, t, r);
2623
2623
  }
2624
2624
  async lonLatAltToScreenPosition(t) {
2625
2625
  if (!this.viewer) return;
2626
- const r = await ms(this.viewer, t);
2626
+ const r = await ys(this.viewer, t);
2627
2627
  return r && [r.X, r.Y];
2628
2628
  }
2629
2629
  //------------------------------抽象函数实现
2630
2630
  async setGlobalProperty(t) {
2631
2631
  if (this.viewer)
2632
- return await us(this.viewer, t);
2632
+ return await cs(this.viewer, t);
2633
2633
  }
2634
2634
  async startEditing(t, r, i) {
2635
2635
  i = Object.assign({ useKeyToSwitch: !0, callSource: "outer" }, i);
2636
2636
  const n = t.combinationClass ? t.getMainClass() : t;
2637
2637
  if (!n || !this.viewer || r == null) return;
2638
2638
  const s = Array.isArray(r) ? [...r] : [r];
2639
- return n.editingID = `${i.callSource}_${P()}`, await Xs(this.viewer, n.id, n.editingID, s, i.useKeyToSwitch);
2639
+ return n.editingID = `${i.callSource}_${B()}`, await Ks(this.viewer, n.id, n.editingID, s, i.useKeyToSwitch);
2640
2640
  }
2641
2641
  async stopEditing() {
2642
2642
  if (this.viewer)
2643
- return await Zs(this.viewer);
2643
+ return await Xs(this.viewer);
2644
2644
  }
2645
2645
  async moveObjects(t) {
2646
2646
  if (!this.viewer) return;
2647
- const r = [], i = P();
2647
+ const r = [], i = B();
2648
2648
  for (let n = 0; n < t.length; n++) {
2649
2649
  const s = t[n], o = s.combinationClass ? s.getMainClass() : s;
2650
2650
  o.editingID = i, o && r.push(o.id);
@@ -2658,17 +2658,17 @@ const G = class G extends Ie {
2658
2658
  ];
2659
2659
  }
2660
2660
  };
2661
- h(G, "type", G.register("ESUeViewer", G)), h(G, "defaults", { ...Xn });
2662
- let H = G;
2663
- ((a) => {
2664
- a.createDefaultProps = () => ({
2661
+ h(G, "type", G.register("ESUeViewer", G)), h(G, "defaults", { ...Kn });
2662
+ let J = G;
2663
+ ((l) => {
2664
+ l.createDefaultProps = () => ({
2665
2665
  ...Ie.createDefaultProps(),
2666
2666
  /**
2667
2667
  * 新增UE属性步骤!!
2668
2668
  * 1. createReactProps 中定义属性
2669
2669
  * 2. reactPropDefaults 中定义默认值
2670
2670
  */
2671
- ...fi(),
2671
+ ...pi(),
2672
2672
  //分辨率缩放比例
2673
2673
  resolutionScale: 1,
2674
2674
  autoReconnect: !1,
@@ -2678,34 +2678,34 @@ let H = G;
2678
2678
  speechRecognitionListening: void 0,
2679
2679
  customMessageListening: void 0
2680
2680
  });
2681
- })(H || (H = {}));
2682
- Jn(H.prototype, H.createDefaultProps);
2683
- class nt extends J {
2681
+ })(J || (J = {}));
2682
+ Jn(J.prototype, J.createDefaultProps);
2683
+ class nt extends b {
2684
2684
  constructor(e, t) {
2685
2685
  super(e, t);
2686
2686
  const r = t.viewer;
2687
2687
  if (r && (e.combinationClass || this.d(this.createdEvent.don(() => {
2688
- const i = this.constructor.propValFuncs, n = e.defaultProps, s = Object.keys(n).filter((d) => i[d] !== null);
2688
+ const i = this.constructor.propValFuncs, n = e.defaultProps, s = Object.keys(n).filter((a) => i[a] !== null);
2689
2689
  s.push(...this.constructor.forceUeUpdateProps);
2690
- const o = e.constructor.defaults, u = { val: {} }, l = [];
2691
- for (let d of s) {
2692
- const p = d + "Changed", c = e[p];
2693
- l.push(c);
2694
- const g = i[d];
2690
+ const o = e.constructor.defaults, u = { val: {} }, d = [];
2691
+ for (let a of s) {
2692
+ const p = a + "Changed", c = e[p];
2693
+ d.push(c);
2694
+ const g = i[a];
2695
2695
  if (g === null)
2696
2696
  throw console.error("vf === null error"), new Error("vf === null error");
2697
2697
  const w = () => {
2698
- const y = e[d] ?? o[d];
2698
+ const y = e[a] ?? o[a];
2699
2699
  let S = g ? g(y, this, t, e) : y;
2700
2700
  if (S === void 0) {
2701
- console.warn(`UE自动更新的属性,不应该为undefined! 属性名:${d} 对象名:${e.name} 对象id: ${e.id}`);
2701
+ console.warn(`UE自动更新的属性,不应该为undefined! 属性名:${a} 对象名:${e.name} 对象id: ${e.id}`);
2702
2702
  return;
2703
2703
  }
2704
- u.val[d] = S;
2704
+ u.val[a] = S;
2705
2705
  };
2706
2706
  w(), this.d(c.don(w));
2707
2707
  }
2708
- const f = () => {
2708
+ const v = () => {
2709
2709
  r.callUeFunc({
2710
2710
  f: "update",
2711
2711
  p: {
@@ -2713,8 +2713,8 @@ class nt extends J {
2713
2713
  ...u.val
2714
2714
  }
2715
2715
  }), u.val = {};
2716
- }, v = this.dv(R(...l));
2717
- this.d(v.don(f)), this.d(e.createdEvent.don(f)), this.d(e.flushEvent.don(() => v.flush()));
2716
+ }, f = this.dv(R(...d));
2717
+ this.d(f.don(v)), this.d(e.createdEvent.don(v)), this.d(e.flushEvent.don(() => f.flush()));
2718
2718
  })), !e.combinationClass)) {
2719
2719
  let i = !1;
2720
2720
  this.d(() => {
@@ -2740,7 +2740,7 @@ h(nt, "propValFuncs", {
2740
2740
  updateFuncStr: null,
2741
2741
  toDestroyFuncStr: null
2742
2742
  }), h(nt, "forceUeUpdateProps", []);
2743
- class B extends nt {
2743
+ class D extends nt {
2744
2744
  constructor(e, t) {
2745
2745
  super(e, t);
2746
2746
  const r = t.viewer;
@@ -2764,7 +2764,7 @@ class B extends nt {
2764
2764
  })));
2765
2765
  }
2766
2766
  }
2767
- class I extends B {
2767
+ class I extends D {
2768
2768
  constructor(e, t) {
2769
2769
  super(e, t);
2770
2770
  const r = t.viewer;
@@ -2785,46 +2785,46 @@ class I extends B {
2785
2785
  ));
2786
2786
  this.d(n.don(() => {
2787
2787
  setTimeout(i, 0);
2788
- })), this.d(e.smoothMoveEvent.don((u, l) => {
2789
- Ue(r, e.id, u, l);
2790
- })), this.d(e.smoothMoveWithRotationEvent.don((u, l, f) => {
2791
- Me(r, e.id, u, l, f);
2792
- })), this.d(e.smoothMoveOnGroundEvent.don((u, l, f, v) => {
2793
- We(r, e.id, u, l, v, f);
2794
- })), this.d(e.smoothMoveWithRotationOnGroundEvent.don((u, l, f, v, d) => {
2795
- Ae(r, e.id, u, l, f, v, d);
2796
- })), this.d(e.smoothMoveKeepPitchEvent.don(async (u, l) => {
2797
- const f = await r.callUeFunc({
2788
+ })), this.d(e.smoothMoveEvent.don((u, d) => {
2789
+ _e(r, e.id, u, d);
2790
+ })), this.d(e.smoothMoveWithRotationEvent.don((u, d, v) => {
2791
+ $e(r, e.id, u, d, v);
2792
+ })), this.d(e.smoothMoveOnGroundEvent.don((u, d, v, f) => {
2793
+ We(r, e.id, u, d, f, v);
2794
+ })), this.d(e.smoothMoveWithRotationOnGroundEvent.don((u, d, v, f, a) => {
2795
+ Ae(r, e.id, u, d, v, f, a);
2796
+ })), this.d(e.smoothMoveKeepPitchEvent.don(async (u, d) => {
2797
+ const v = await r.callUeFunc({
2798
2798
  f: "SmoothMoveKeepPitch",
2799
2799
  p: {
2800
2800
  id: e.id,
2801
2801
  Destination: u,
2802
- Time: l
2802
+ Time: d
2803
2803
  }
2804
2804
  });
2805
- f.error && console.error("SmoothMoveKeepPitch:", f.error);
2805
+ v.error && console.error("SmoothMoveKeepPitch:", v.error);
2806
2806
  })), this.d(e.automaticLandingEvent.don((u) => {
2807
- const l = [e.position[0], e.position[1]];
2808
- t.getHeightByLonLat(e.position[0], e.position[1], "Visibility").then((f) => {
2809
- f !== null && (e.position = [...l, f], e.collision = u);
2807
+ const d = [e.position[0], e.position[1]];
2808
+ t.getHeightByLonLat(e.position[0], e.position[1], "Visibility").then((v) => {
2809
+ v !== null && (e.position = [...d, v], e.collision = u);
2810
2810
  });
2811
2811
  }));
2812
- const s = async (u, l, f, v) => {
2813
- const { viewer: d } = u;
2814
- if (!d) {
2812
+ const s = async (u, d, v, f) => {
2813
+ const { viewer: a } = u;
2814
+ if (!a) {
2815
2815
  console.error("SmoothMoveRelatively: ueViewer.viewer is undefined");
2816
2816
  return;
2817
2817
  }
2818
- const p = await d.callUeFunc({
2818
+ const p = await a.callUeFunc({
2819
2819
  f: "SmoothMoveRelatively",
2820
- p: { id: l, RelativePosition: f, Time: v }
2820
+ p: { id: d, RelativePosition: v, Time: f }
2821
2821
  });
2822
2822
  return p.error && console.error("SmoothMoveRelatively:", p.error), p;
2823
2823
  };
2824
- this.d(e.smoothMoveRelativelyEvent.don((u, l) => {
2825
- s(t, e.id, u, l);
2824
+ this.d(e.smoothMoveRelativelyEvent.don((u, d) => {
2825
+ s(t, e.id, u, d);
2826
2826
  }));
2827
- const o = async (u, l, f, v, d) => {
2827
+ const o = async (u, d, v, f, a) => {
2828
2828
  const { viewer: p } = u;
2829
2829
  if (!p) {
2830
2830
  console.error("SmoothMoveRelativelyWithRotation: ueViewer.viewer is undefined");
@@ -2832,16 +2832,16 @@ class I extends B {
2832
2832
  }
2833
2833
  const c = await p.callUeFunc({
2834
2834
  f: "SmoothMoveRelativelyWithRotation",
2835
- p: { id: l, RelativePosition: f, NewRotation: v, Time: d }
2835
+ p: { id: d, RelativePosition: v, NewRotation: f, Time: a }
2836
2836
  });
2837
2837
  return c.error && console.error("SmoothMoveRelativelyWithRotation:", c.error), c;
2838
2838
  };
2839
- this.d(e.smoothMoveRelativelyWithRotationEvent.don((u, l, f) => {
2840
- o(t, e.id, u, l, f);
2839
+ this.d(e.smoothMoveRelativelyWithRotationEvent.don((u, d, v) => {
2840
+ o(t, e.id, u, d, v);
2841
2841
  }));
2842
2842
  }
2843
2843
  }
2844
- class $ extends B {
2844
+ class M extends D {
2845
2845
  constructor(e, t) {
2846
2846
  super(e, t);
2847
2847
  const r = t.viewer;
@@ -2863,8 +2863,8 @@ class $ extends B {
2863
2863
  }));
2864
2864
  }
2865
2865
  }
2866
- h($, "propValFuncs", {
2867
- ...B.propValFuncs,
2866
+ h(M, "propValFuncs", {
2867
+ ...D.propValFuncs,
2868
2868
  pointStyle: (e) => ({
2869
2869
  ...e,
2870
2870
  materialParams: JSON.stringify(e.materialParams ?? {})
@@ -2887,12 +2887,12 @@ class N extends I {
2887
2887
  }));
2888
2888
  }
2889
2889
  }
2890
- class yi extends I {
2890
+ class wi extends I {
2891
2891
  constructor(e, t) {
2892
2892
  super(e, t), t.viewer;
2893
2893
  }
2894
2894
  }
2895
- h(yi, "propValFuncs", {
2895
+ h(wi, "propValFuncs", {
2896
2896
  ...I.propValFuncs,
2897
2897
  pointStyle: (e) => ({
2898
2898
  ...e,
@@ -2907,13 +2907,13 @@ h(yi, "propValFuncs", {
2907
2907
  materialParams: JSON.stringify(e.materialParams ?? {})
2908
2908
  })
2909
2909
  });
2910
- class Ne extends yi {
2910
+ class Ue extends wi {
2911
2911
  constructor(e, t) {
2912
2912
  super(e, t), t.viewer;
2913
2913
  }
2914
2914
  }
2915
- const Je = (a) => {
2916
- switch (a) {
2915
+ const Je = (l) => {
2916
+ switch (l) {
2917
2917
  case 0:
2918
2918
  return "成功绑定";
2919
2919
  case 1:
@@ -2925,11 +2925,11 @@ const Je = (a) => {
2925
2925
  default:
2926
2926
  return "未知错误";
2927
2927
  }
2928
- }, ot = class ot extends J {
2928
+ }, ot = class ot extends b {
2929
2929
  constructor(t, r) {
2930
2930
  super(t, r);
2931
- h(this, "_styleColor", this.dv(_([])));
2932
- h(this, "_styleVisable", this.dv(_([])));
2931
+ h(this, "_styleColor", this.dv($([])));
2932
+ h(this, "_styleVisable", this.dv($([])));
2933
2933
  const i = r.viewer;
2934
2934
  if (!i) {
2935
2935
  console.warn("UeES3DTileset: viewer is undefined!");
@@ -2981,65 +2981,65 @@ const Je = (a) => {
2981
2981
  t.materialOverrideMapChanged
2982
2982
  ));
2983
2983
  o(), this.d(u.don(o)), Reflect.has(t, "colorMode") && this.d(t.colorModeChanged.don(() => o()));
2984
- const l = this.dv(_(void 0));
2984
+ const d = this.dv($(void 0));
2985
2985
  {
2986
- const v = this.dv(R(
2986
+ const f = this.dv(R(
2987
2987
  t.actorTagChanged,
2988
2988
  t.urlChanged
2989
- )), d = () => {
2990
- t.actorTag ? l.value = {
2989
+ )), a = () => {
2990
+ t.actorTag ? d.value = {
2991
2991
  type: "ActorTag",
2992
2992
  actorTag: t.actorTag
2993
- } : t.url ? l.value = {
2993
+ } : t.url ? d.value = {
2994
2994
  type: "CreatedUrl",
2995
2995
  url: t.url
2996
- } : l.value = void 0, t.editing = !1;
2996
+ } : d.value = void 0, t.editing = !1;
2997
2997
  };
2998
- d(), this.d(v.don(d));
2998
+ a(), this.d(f.don(a));
2999
2999
  }
3000
- const f = async () => {
3001
- const { id: v } = t;
3000
+ const v = async () => {
3001
+ const { id: f } = t;
3002
3002
  if (n !== void 0) {
3003
3003
  n = void 0;
3004
3004
  try {
3005
- const d = await r.unBind3DTilesetById(v);
3006
- if (!d) return;
3007
- if (d.error !== "") {
3008
- console.warn(`UeES3DTileset UnBind3DTilesetById: ${d.error}`);
3005
+ const a = await r.unBind3DTilesetById(f);
3006
+ if (!a) return;
3007
+ if (a.error !== "") {
3008
+ console.warn(`UeES3DTileset UnBind3DTilesetById: ${a.error}`);
3009
3009
  return;
3010
3010
  }
3011
- } catch (d) {
3012
- console.warn(`UeES3DTileset UnBind3DTilesetById: ${d}`);
3011
+ } catch (a) {
3012
+ console.warn(`UeES3DTileset UnBind3DTilesetById: ${a}`);
3013
3013
  return;
3014
3014
  }
3015
3015
  }
3016
3016
  if (s !== void 0) {
3017
3017
  s = void 0;
3018
3018
  try {
3019
- const d = await i.callUeFunc({ f: "destroy", p: { id: v } });
3020
- if (!d) return;
3021
- if (d.error !== "") {
3022
- console.warn(`UeES3DTileset Destroy: ${d.error}`);
3019
+ const a = await i.callUeFunc({ f: "destroy", p: { id: f } });
3020
+ if (!a) return;
3021
+ if (a.error !== "") {
3022
+ console.warn(`UeES3DTileset Destroy: ${a.error}`);
3023
3023
  return;
3024
3024
  }
3025
- } catch (d) {
3026
- console.warn(`UeES3DTileset Destroy: ${d}`);
3025
+ } catch (a) {
3026
+ console.warn(`UeES3DTileset Destroy: ${a}`);
3027
3027
  return;
3028
3028
  }
3029
3029
  }
3030
3030
  };
3031
3031
  this.d(() => {
3032
- f();
3032
+ v();
3033
3033
  });
3034
3034
  {
3035
- const v = this.dv(Se(async (p) => {
3036
- if (l.value === void 0) {
3037
- await p.promise(f());
3035
+ const f = this.dv(Se(async (p) => {
3036
+ if (d.value === void 0) {
3037
+ await p.promise(v());
3038
3038
  return;
3039
3039
  }
3040
- if (l.value.type === "ActorTag") {
3041
- const { actorTag: c } = l.value;
3042
- if (n !== c && await p.promise(f()), n !== void 0 || c === void 0) return;
3040
+ if (d.value.type === "ActorTag") {
3041
+ const { actorTag: c } = d.value;
3042
+ if (n !== c && await p.promise(v()), n !== void 0 || c === void 0) return;
3043
3043
  try {
3044
3044
  n = c;
3045
3045
  const g = await p.promise(r.bind3DTilesetByTag(t.id, c));
@@ -3059,9 +3059,9 @@ const Je = (a) => {
3059
3059
  console.warn(`UeES3DTileset Bind3DTilesetByTag: ${g}`);
3060
3060
  return;
3061
3061
  }
3062
- } else if (l.value.type === "CreatedUrl") {
3063
- const { url: c } = l.value;
3064
- if (c !== s && await f(), s !== void 0 || c === void 0) return;
3062
+ } else if (d.value.type === "CreatedUrl") {
3063
+ const { url: c } = d.value;
3064
+ if (c !== s && await v(), s !== void 0 || c === void 0) return;
3065
3065
  try {
3066
3066
  s = c;
3067
3067
  const g = await p.promise(i.callUeFunc({
@@ -3082,36 +3082,36 @@ const Je = (a) => {
3082
3082
  }
3083
3083
  }
3084
3084
  await p.promise(o());
3085
- })), d = async () => {
3086
- v.restart();
3085
+ })), a = async () => {
3086
+ f.restart();
3087
3087
  };
3088
- d(), this.d(l.changed.don(d));
3088
+ a(), this.d(d.changed.don(a));
3089
3089
  }
3090
3090
  this.d(t.refreshTilesetEvent.don(() => {
3091
- On(i, t.id);
3092
- })), this.d(t.flyToEvent.don(async (v, d) => {
3091
+ Vn(i, t.id);
3092
+ })), this.d(t.flyToEvent.don(async (f, a) => {
3093
3093
  if (!n && !s) return;
3094
- const p = await ge(i, t.id, v);
3094
+ const p = await ge(i, t.id, f);
3095
3095
  let c = "over";
3096
- p === void 0 ? c = "error" : p.endType === 0 ? c = "over" : p.endType === 1 && (c = "cancelled"), t.flyOverEvent.emit(d, c, r);
3096
+ p === void 0 ? c = "error" : p.endType === 0 ? c = "over" : p.endType === 1 && (c = "cancelled"), t.flyOverEvent.emit(a, c, r);
3097
3097
  })), this.d(t.calcFlyToParamEvent.don(() => {
3098
3098
  !n && !s || we(i, t.id);
3099
3099
  })), this.d(t.calcFlyInParamEvent.don(async () => {
3100
3100
  if (!n && !s || !r.actived) return;
3101
- const v = await r.getCurrentCameraInfo();
3102
- if (!v) return;
3103
- const { position: d, rotation: p } = v;
3104
- t.flyInParam = { position: d, rotation: p, flyDuration: 1 };
3105
- })), this.d(r.propChanged.don((v) => {
3106
- !n && !s || v.objId === t.id && Object.keys(v.props).forEach((d) => {
3107
- const p = v.props[d] === null ? void 0 : v.props[d];
3108
- t[d] = p;
3101
+ const f = await r.getCurrentCameraInfo();
3102
+ if (!f) return;
3103
+ const { position: a, rotation: p } = f;
3104
+ t.flyInParam = { position: a, rotation: p, flyDuration: 1 };
3105
+ })), this.d(r.propChanged.don((f) => {
3106
+ !n && !s || f.objId === t.id && Object.keys(f.props).forEach((a) => {
3107
+ const p = f.props[a] === null ? void 0 : f.props[a];
3108
+ t[a] = p;
3109
3109
  });
3110
- })), this.d(r.objectEvent.don((v) => {
3111
- !n && !s || v.id !== t.id || v.type !== "3DTilesetReady" || t.tilesetReady.emit(v.p);
3110
+ })), this.d(r.objectEvent.don((f) => {
3111
+ !n && !s || f.id !== t.id || f.type !== "3DTilesetReady" || t.tilesetReady.emit(f.p);
3112
3112
  }));
3113
3113
  {
3114
- const v = async (g, w) => {
3114
+ const f = async (g, w) => {
3115
3115
  if (!n && !s) return;
3116
3116
  const y = await i.callUeFunc({
3117
3117
  f: "SetFeatureColor",
@@ -3121,7 +3121,7 @@ const Je = (a) => {
3121
3121
  console.warn(`UeES3DTileset SetFeatureColor: ${y.error}`);
3122
3122
  return;
3123
3123
  }
3124
- }, d = async (g, w) => {
3124
+ }, a = async (g, w) => {
3125
3125
  if (!n && !s) return;
3126
3126
  const y = await i.callUeFunc({
3127
3127
  f: "SetFeatureVisable",
@@ -3154,10 +3154,10 @@ const Je = (a) => {
3154
3154
  };
3155
3155
  this.d(t.setFeatureColorEvent.don((g, w) => {
3156
3156
  const y = [...this.styleColor, ...w];
3157
- this.styleColor = [...y], v(g, y);
3157
+ this.styleColor = [...y], f(g, y);
3158
3158
  })), this.d(t.setFeatureVisableEvent.don((g, w) => {
3159
3159
  const y = [...this.styleVisable, ...w];
3160
- this.styleVisable = [...y], d(g, y);
3160
+ this.styleVisable = [...y], a(g, y);
3161
3161
  })), this.d(t.resetFeatureStyleEvent.don(() => {
3162
3162
  p(), this.styleColor = [], this.styleVisable = [];
3163
3163
  })), this.d(t.setFeatureStyleEvent.don((g) => {
@@ -3165,43 +3165,43 @@ const Je = (a) => {
3165
3165
  }));
3166
3166
  }
3167
3167
  {
3168
- const v = async () => {
3168
+ const f = async () => {
3169
3169
  if (!n && !s) {
3170
3170
  t._featureTableResultEvent.emit(void 0);
3171
3171
  return;
3172
3172
  }
3173
3173
  try {
3174
- const d = await i.callUeFunc({
3174
+ const a = await i.callUeFunc({
3175
3175
  f: "GetFeatureTable",
3176
3176
  p: { id: t.id }
3177
3177
  });
3178
- d.error !== "" && console.warn(`UeES3DTileset GetFeatureTable: ${d.error}`), t._featureTableResultEvent.emit(d.re.table);
3179
- } catch (d) {
3180
- console.warn(`UeES3DTileset GetFeatureTable: ${d}`), t._featureTableResultEvent.emit(void 0);
3178
+ a.error !== "" && console.warn(`UeES3DTileset GetFeatureTable: ${a.error}`), t._featureTableResultEvent.emit(a.re.table);
3179
+ } catch (a) {
3180
+ console.warn(`UeES3DTileset GetFeatureTable: ${a}`), t._featureTableResultEvent.emit(void 0);
3181
3181
  }
3182
3182
  };
3183
3183
  this.d(t.getFeatureTableEvent.don(() => {
3184
- v();
3184
+ f();
3185
3185
  }));
3186
3186
  }
3187
3187
  {
3188
- const v = async () => {
3188
+ const f = async () => {
3189
3189
  if (!n && !s) {
3190
3190
  t.getMaterialNameListEvent.emit(void 0);
3191
3191
  return;
3192
3192
  }
3193
3193
  try {
3194
- const d = await i.callUeFunc({
3194
+ const a = await i.callUeFunc({
3195
3195
  f: "GetMaterialNameList",
3196
3196
  p: { id: t.id }
3197
3197
  });
3198
- d.error !== "" && console.warn(`UeES3DTileset GetMaterialNameList: ${d.error}`), t.getMaterialNameListEvent.emit(d.re.materialNameList);
3199
- } catch (d) {
3200
- console.warn(`UeES3DTileset GetMaterialNameList: ${d}`), t.getMaterialNameListEvent.emit(void 0);
3198
+ a.error !== "" && console.warn(`UeES3DTileset GetMaterialNameList: ${a.error}`), t.getMaterialNameListEvent.emit(a.re.materialNameList);
3199
+ } catch (a) {
3200
+ console.warn(`UeES3DTileset GetMaterialNameList: ${a}`), t.getMaterialNameListEvent.emit(void 0);
3201
3201
  }
3202
3202
  };
3203
- this.ad(t.getMaterialNameListEvent.don((d) => {
3204
- d == "start" && v();
3203
+ this.ad(t.getMaterialNameListEvent.don((a) => {
3204
+ a == "start" && f();
3205
3205
  }));
3206
3206
  }
3207
3207
  }
@@ -3218,10 +3218,10 @@ const Je = (a) => {
3218
3218
  this._styleVisable.value = t;
3219
3219
  }
3220
3220
  };
3221
- h(ot, "type", ot.register("ESUeViewer", oi.type, ot));
3222
- let De = ot;
3223
- const Ge = (a) => {
3224
- switch (a) {
3221
+ h(ot, "type", ot.register("ESUeViewer", si.type, ot));
3222
+ let Le = ot;
3223
+ const be = (l) => {
3224
+ switch (l) {
3225
3225
  case 0:
3226
3226
  return "成功绑定";
3227
3227
  case 1:
@@ -3235,7 +3235,7 @@ const Ge = (a) => {
3235
3235
  default:
3236
3236
  return "未知错误";
3237
3237
  }
3238
- }, at = class at extends J {
3238
+ }, at = class at extends b {
3239
3239
  constructor(e, t) {
3240
3240
  super(e, t);
3241
3241
  const r = t.viewer;
@@ -3244,17 +3244,17 @@ const Ge = (a) => {
3244
3244
  return;
3245
3245
  }
3246
3246
  let i, n;
3247
- const s = this.dv(_(void 0)), o = this.ad($e(""));
3247
+ const s = this.dv($(void 0)), o = this.ad(De(""));
3248
3248
  {
3249
- const v = () => {
3249
+ const f = () => {
3250
3250
  if (typeof e.url == "string")
3251
- o.value = D.context.getStrFromEnv(e.url);
3251
+ o.value = P.context.getStrFromEnv(e.url);
3252
3252
  else {
3253
- const d = e.url;
3254
- d.url = D.context.getStrFromEnv(d.url), o.value = d;
3253
+ const a = e.url;
3254
+ a.url = P.context.getStrFromEnv(a.url), o.value = a;
3255
3255
  }
3256
3256
  };
3257
- v(), this.ad(e.urlChanged.don(v));
3257
+ f(), this.ad(e.urlChanged.don(f));
3258
3258
  }
3259
3259
  const u = async () => {
3260
3260
  !i && !n || await r.callUeFunc({
@@ -3276,7 +3276,7 @@ const Ge = (a) => {
3276
3276
  opacity: e.opacity ?? V.defaults.opacity
3277
3277
  }
3278
3278
  });
3279
- }, l = this.dv(R(
3279
+ }, d = this.dv(R(
3280
3280
  e.showChanged,
3281
3281
  o.changed,
3282
3282
  e.flyToParamChanged,
@@ -3291,50 +3291,50 @@ const Ge = (a) => {
3291
3291
  e.targetIDChanged,
3292
3292
  e.opacityChanged
3293
3293
  ));
3294
- this.d(l.don(u));
3295
- const f = async () => {
3296
- const { id: v } = e;
3294
+ this.d(d.don(u));
3295
+ const v = async () => {
3296
+ const { id: f } = e;
3297
3297
  if (i !== void 0) {
3298
3298
  i = void 0;
3299
3299
  try {
3300
- const d = await t.unBindImageryById(v);
3301
- if (!d) return;
3302
- if (d.error !== "") {
3303
- console.warn(`UeESImageryLayer UnImageryByID: ${d.error}`);
3300
+ const a = await t.unBindImageryById(f);
3301
+ if (!a) return;
3302
+ if (a.error !== "") {
3303
+ console.warn(`UeESImageryLayer UnImageryByID: ${a.error}`);
3304
3304
  return;
3305
3305
  }
3306
- } catch (d) {
3307
- console.warn(`UeESImageryLayer UnImageryByID promise: ${d}`);
3306
+ } catch (a) {
3307
+ console.warn(`UeESImageryLayer UnImageryByID promise: ${a}`);
3308
3308
  return;
3309
3309
  }
3310
3310
  }
3311
3311
  if (n !== void 0) {
3312
3312
  n = void 0;
3313
3313
  try {
3314
- const d = await r.callUeFunc({ f: "destroy", p: { id: v, test: "UeESImageryLayer" } });
3315
- if (!d) return;
3316
- if (d.error !== "") {
3317
- console.warn(`UeESImageryLayer Destroy: ${d.error}`);
3314
+ const a = await r.callUeFunc({ f: "destroy", p: { id: f, test: "UeESImageryLayer" } });
3315
+ if (!a) return;
3316
+ if (a.error !== "") {
3317
+ console.warn(`UeESImageryLayer Destroy: ${a.error}`);
3318
3318
  return;
3319
3319
  }
3320
- } catch (d) {
3321
- console.warn(`UeESImageryLayer Destroy promise: ${d}`);
3320
+ } catch (a) {
3321
+ console.warn(`UeESImageryLayer Destroy promise: ${a}`);
3322
3322
  return;
3323
3323
  }
3324
3324
  }
3325
3325
  };
3326
3326
  this.d(() => {
3327
- f();
3327
+ v();
3328
3328
  });
3329
3329
  {
3330
- const v = this.dv(Se(async (p) => {
3330
+ const f = this.dv(Se(async (p) => {
3331
3331
  if (s.value === void 0) {
3332
- await p.promise(f());
3332
+ await p.promise(v());
3333
3333
  return;
3334
3334
  }
3335
3335
  if (s.value.type === "ActorTag") {
3336
3336
  const { actorTag: c, componentTag: g } = s.value;
3337
- if (i !== c && await p.promise(f()), i !== void 0 || c === void 0) return;
3337
+ if (i !== c && await p.promise(v()), i !== void 0 || c === void 0) return;
3338
3338
  try {
3339
3339
  i = c;
3340
3340
  const w = await p.promise(t.bindImageryByTag(e.id, c, g));
@@ -3345,9 +3345,9 @@ const Ge = (a) => {
3345
3345
  }
3346
3346
  if (w.re.type !== 0)
3347
3347
  if (w.re.type === 1)
3348
- console.warn(`ESImageryLayer BindImageryByTag: ${Ge(w.re.type)}`);
3348
+ console.warn(`ESImageryLayer BindImageryByTag: ${be(w.re.type)}`);
3349
3349
  else {
3350
- console.warn(`ESImageryLayer BindImageryByTag: ${Ge(w.re.type)}`);
3350
+ console.warn(`ESImageryLayer BindImageryByTag: ${be(w.re.type)}`);
3351
3351
  return;
3352
3352
  }
3353
3353
  } catch (w) {
@@ -3356,7 +3356,7 @@ const Ge = (a) => {
3356
3356
  }
3357
3357
  } else if (s.value.type === "CreatedUrl") {
3358
3358
  const { url: c } = s.value;
3359
- if (c !== n && await p.promise(f()), n !== void 0 || c === void 0) return;
3359
+ if (c !== n && await p.promise(v()), n !== void 0 || c === void 0) return;
3360
3360
  try {
3361
3361
  n = c;
3362
3362
  const g = await p.promise(r.callUeFunc({
@@ -3377,17 +3377,17 @@ const Ge = (a) => {
3377
3377
  }
3378
3378
  }
3379
3379
  await p.promise(u());
3380
- })), d = async () => {
3381
- v.restart();
3380
+ })), a = async () => {
3381
+ f.restart();
3382
3382
  };
3383
- d(), this.d(s.changed.don(d));
3383
+ a(), this.d(s.changed.don(a));
3384
3384
  }
3385
3385
  {
3386
- const v = this.dv(R(
3386
+ const f = this.dv(R(
3387
3387
  e.actorTagChanged,
3388
3388
  o.changed,
3389
3389
  e.componentTagChanged
3390
- )), d = () => {
3390
+ )), a = () => {
3391
3391
  e.actorTag && e.componentTag ? s.value = {
3392
3392
  type: "ActorTag",
3393
3393
  actorTag: e.actorTag,
@@ -3397,38 +3397,38 @@ const Ge = (a) => {
3397
3397
  url: o.value
3398
3398
  } : s.value = void 0;
3399
3399
  };
3400
- d(), this.d(v.don(d));
3400
+ a(), this.d(f.don(a));
3401
3401
  }
3402
- this.d(e.flyToEvent.don(async (v, d) => {
3402
+ this.d(e.flyToEvent.don(async (f, a) => {
3403
3403
  if (!i && !n) return;
3404
- const p = await ge(r, e.id, v);
3404
+ const p = await ge(r, e.id, f);
3405
3405
  let c = "over";
3406
- p === void 0 ? c = "error" : p.endType === 0 ? c = "over" : p.endType === 1 && (c = "cancelled"), e.flyOverEvent.emit(d, c, t);
3407
- })), this.d(e.flyInEvent.don(async (v, d) => {
3406
+ p === void 0 ? c = "error" : p.endType === 0 ? c = "over" : p.endType === 1 && (c = "cancelled"), e.flyOverEvent.emit(a, c, t);
3407
+ })), this.d(e.flyInEvent.don(async (f, a) => {
3408
3408
  var g, w;
3409
3409
  if (!i && !n) return;
3410
- const p = await xe(r, e.id, (g = e.flyInParam) == null ? void 0 : g.position, (w = e.flyInParam) == null ? void 0 : w.rotation, v ?? 1);
3410
+ const p = await xe(r, e.id, (g = e.flyInParam) == null ? void 0 : g.position, (w = e.flyInParam) == null ? void 0 : w.rotation, f ?? 1);
3411
3411
  let c = "over";
3412
- p === void 0 ? c = "error" : p.endType === 0 ? c = "over" : p.endType === 1 && (c = "cancelled"), e.flyOverEvent.emit(d, c, t);
3412
+ p === void 0 ? c = "error" : p.endType === 0 ? c = "over" : p.endType === 1 && (c = "cancelled"), e.flyOverEvent.emit(a, c, t);
3413
3413
  })), this.d(e.calcFlyToParamEvent.don(() => {
3414
3414
  !i && !n || we(r, e.id);
3415
3415
  })), this.d(e.calcFlyInParamEvent.don(async () => {
3416
3416
  if (!t.actived) return;
3417
- const v = await t.getCurrentCameraInfo();
3418
- if (!v) return;
3419
- const { position: d, rotation: p } = v;
3420
- e.flyInParam = { position: d, rotation: p, flyDuration: 1 };
3421
- })), this.d(t.propChanged.don((v) => {
3422
- !i && !n || v.objId === e.id && Object.keys(v.props).forEach((d) => {
3423
- const p = v.props[d] === null ? void 0 : v.props[d];
3424
- e[d] = p;
3417
+ const f = await t.getCurrentCameraInfo();
3418
+ if (!f) return;
3419
+ const { position: a, rotation: p } = f;
3420
+ e.flyInParam = { position: a, rotation: p, flyDuration: 1 };
3421
+ })), this.d(t.propChanged.don((f) => {
3422
+ !i && !n || f.objId === e.id && Object.keys(f.props).forEach((a) => {
3423
+ const p = f.props[a] === null ? void 0 : f.props[a];
3424
+ e[a] = p;
3425
3425
  });
3426
3426
  }));
3427
3427
  }
3428
3428
  };
3429
3429
  h(at, "type", at.register("ESUeViewer", V.type, at));
3430
- let Ke = at;
3431
- const K = class K extends B {
3430
+ let Ge = at;
3431
+ const K = class K extends D {
3432
3432
  constructor(e, t) {
3433
3433
  if (super(e, t), !t.viewer) {
3434
3434
  console.warn("viewer is undefined!");
@@ -3436,17 +3436,17 @@ const K = class K extends B {
3436
3436
  }
3437
3437
  }
3438
3438
  };
3439
- h(K, "type", K.register("ESUeViewer", ki.type, K)), h(K, "forceUeUpdateProps", [
3440
- ...B.forceUeUpdateProps,
3439
+ h(K, "type", K.register("ESUeViewer", Ri.type, K)), h(K, "forceUeUpdateProps", [
3440
+ ...D.forceUeUpdateProps,
3441
3441
  "url"
3442
3442
  ]), h(K, "propValFuncs", {
3443
- ...B.propValFuncs,
3444
- url: (e) => typeof e == "string" ? D.context.getStrFromEnv(e) : (e.url = D.context.getStrFromEnv(e.url), e),
3443
+ ...D.propValFuncs,
3444
+ url: (e) => typeof e == "string" ? P.context.getStrFromEnv(e) : (e.url = P.context.getStrFromEnv(e.url), e),
3445
3445
  czmMaxzoom: null,
3446
3446
  czmMinzoom: null
3447
3447
  });
3448
- let Xe = K;
3449
- const dt = class dt extends I {
3448
+ let Ke = K;
3449
+ const lt = class lt extends I {
3450
3450
  constructor(e, t) {
3451
3451
  if (super(e, t), !t.viewer) {
3452
3452
  console.warn("viewer is undefined!");
@@ -3454,9 +3454,9 @@ const dt = class dt extends I {
3454
3454
  }
3455
3455
  }
3456
3456
  };
3457
- h(dt, "type", dt.register("ESUeViewer", Li.type, dt));
3458
- let Ze = dt;
3459
- const lt = class lt extends I {
3457
+ h(lt, "type", lt.register("ESUeViewer", ki.type, lt));
3458
+ let Xe = lt;
3459
+ const dt = class dt extends I {
3460
3460
  constructor(e, t) {
3461
3461
  if (super(e, t), !t.viewer) {
3462
3462
  console.warn("viewer is undefined!");
@@ -3464,9 +3464,9 @@ const lt = class lt extends I {
3464
3464
  }
3465
3465
  }
3466
3466
  };
3467
- h(lt, "type", lt.register("ESUeViewer", Di.type, lt));
3468
- let Qe = lt;
3469
- const ct = class ct extends $ {
3467
+ h(dt, "type", dt.register("ESUeViewer", Li.type, dt));
3468
+ let Qe = dt;
3469
+ const ct = class ct extends M {
3470
3470
  constructor(e, t) {
3471
3471
  if (super(e, t), !t.viewer) {
3472
3472
  console.warn("viewer is undefined!");
@@ -3475,8 +3475,8 @@ const ct = class ct extends $ {
3475
3475
  }
3476
3476
  };
3477
3477
  h(ct, "type", ct.register("ESUeViewer", Pi.type, ct));
3478
- let M = ct;
3479
- const ut = class ut extends M {
3478
+ let W = ct;
3479
+ const ut = class ut extends W {
3480
3480
  constructor(e, t) {
3481
3481
  super(e, t);
3482
3482
  const r = t.viewer;
@@ -3528,9 +3528,9 @@ const pt = class pt extends I {
3528
3528
  }
3529
3529
  }
3530
3530
  };
3531
- h(pt, "type", pt.register("ESUeViewer", $i.type, pt));
3532
- let Ve = pt;
3533
- const ft = class ft extends I {
3531
+ h(pt, "type", pt.register("ESUeViewer", Di.type, pt));
3532
+ let Ze = pt;
3533
+ const vt = class vt extends I {
3534
3534
  constructor(e, t) {
3535
3535
  super(e, t);
3536
3536
  const r = t.viewer;
@@ -3539,10 +3539,10 @@ const ft = class ft extends I {
3539
3539
  return;
3540
3540
  }
3541
3541
  this.dispose(e.flyInEvent.don((i, n, s = "default") => {
3542
- const { id: o, duration: u, position: l, rotation: f } = e;
3543
- xe(r, o, l, f, u ?? i, s);
3542
+ const { id: o, duration: u, position: d, rotation: v } = e;
3543
+ xe(r, o, d, v, u ?? i, s);
3544
3544
  })), this.dispose(e.resetWithCurrentCameraEvent.don(() => {
3545
- gi(r, e.id);
3545
+ fi(r, e.id);
3546
3546
  })), this.dispose(e.captureEvent.don((i, n) => {
3547
3547
  t.capture(i, n).then((o) => {
3548
3548
  o && (e.thumbnail = o);
@@ -3550,9 +3550,9 @@ const ft = class ft extends I {
3550
3550
  }));
3551
3551
  }
3552
3552
  };
3553
- h(ft, "type", ft.register("ESUeViewer", _i.type, ft));
3554
- let Oe = ft;
3555
- const vt = class vt extends I {
3553
+ h(vt, "type", vt.register("ESUeViewer", Mi.type, vt));
3554
+ let Ve = vt;
3555
+ const ft = class ft extends I {
3556
3556
  constructor(e, t) {
3557
3557
  if (super(e, t), !t.viewer) {
3558
3558
  console.warn("viewer is undefined!");
@@ -3560,8 +3560,8 @@ const vt = class vt extends I {
3560
3560
  }
3561
3561
  }
3562
3562
  };
3563
- h(vt, "type", vt.register("ESUeViewer", Mi.type, vt));
3564
- let je = vt;
3563
+ h(ft, "type", ft.register("ESUeViewer", $i.type, ft));
3564
+ let Oe = ft;
3565
3565
  const gt = class gt extends I {
3566
3566
  constructor(e, t) {
3567
3567
  if (super(e, t), !t.viewer) {
@@ -3571,8 +3571,8 @@ const gt = class gt extends I {
3571
3571
  }
3572
3572
  };
3573
3573
  h(gt, "type", gt.register("ESUeViewer", Wi.type, gt));
3574
- let tr = gt;
3575
- const wt = class wt extends $ {
3574
+ let je = gt;
3575
+ const wt = class wt extends M {
3576
3576
  constructor(e, t) {
3577
3577
  super(e, t);
3578
3578
  const r = t.viewer;
@@ -3603,7 +3603,7 @@ const wt = class wt extends $ {
3603
3603
  }
3604
3604
  };
3605
3605
  h(wt, "type", wt.register("ESUeViewer", st.type, wt));
3606
- let er = wt;
3606
+ let tr = wt;
3607
3607
  const yt = class yt extends I {
3608
3608
  constructor(e, t) {
3609
3609
  if (super(e, t), !t.viewer) {
@@ -3613,7 +3613,7 @@ const yt = class yt extends I {
3613
3613
  }
3614
3614
  };
3615
3615
  h(yt, "type", yt.register("ESUeViewer", Ai.type, yt));
3616
- let rr = yt;
3616
+ let er = yt;
3617
3617
  const mt = class mt extends I {
3618
3618
  constructor(e, t) {
3619
3619
  super(e, t);
@@ -3622,14 +3622,14 @@ const mt = class mt extends I {
3622
3622
  console.warn("viewer is undefined!");
3623
3623
  return;
3624
3624
  }
3625
- const i = this.ad($e(""));
3625
+ const i = this.ad(De(""));
3626
3626
  {
3627
3627
  const o = () => {
3628
3628
  if (typeof e.url == "string")
3629
- i.value = D.context.getStrFromEnv(e.url ?? z.defaults.url);
3629
+ i.value = P.context.getStrFromEnv(e.url ?? z.defaults.url);
3630
3630
  else {
3631
3631
  const u = e.url;
3632
- u.url = D.context.getStrFromEnv(u.url ?? z.defaults.url), i.value = u;
3632
+ u.url = P.context.getStrFromEnv(u.url ?? z.defaults.url), i.value = u;
3633
3633
  }
3634
3634
  };
3635
3635
  o(), this.ad(e.urlChanged.don(o));
@@ -3658,7 +3658,7 @@ const mt = class mt extends I {
3658
3658
  }
3659
3659
  };
3660
3660
  h(mt, "type", mt.register("ESUeViewer", z.type, mt));
3661
- let ir = mt;
3661
+ let rr = mt;
3662
3662
  const Ct = class Ct extends I {
3663
3663
  constructor(e, t) {
3664
3664
  if (super(e, t), !t.viewer) {
@@ -3667,9 +3667,9 @@ const Ct = class Ct extends I {
3667
3667
  }
3668
3668
  }
3669
3669
  };
3670
- h(Ct, "type", Ct.register("ESUeViewer", Ui.type, Ct));
3671
- let nr = Ct;
3672
- const Ft = class Ft extends $ {
3670
+ h(Ct, "type", Ct.register("ESUeViewer", _i.type, Ct));
3671
+ let ir = Ct;
3672
+ const Ft = class Ft extends M {
3673
3673
  constructor(e, t) {
3674
3674
  if (super(e, t), !t.viewer) {
3675
3675
  console.warn("viewer is undefined!");
@@ -3677,9 +3677,9 @@ const Ft = class Ft extends $ {
3677
3677
  }
3678
3678
  }
3679
3679
  };
3680
- h(Ft, "type", Ft.register("ESUeViewer", Ni.type, Ft));
3681
- let sr = Ft;
3682
- const It = class It extends $ {
3680
+ h(Ft, "type", Ft.register("ESUeViewer", Ui.type, Ft));
3681
+ let nr = Ft;
3682
+ const It = class It extends M {
3683
3683
  constructor(e, t) {
3684
3684
  super(e, t);
3685
3685
  const r = t.viewer;
@@ -3708,8 +3708,8 @@ const It = class It extends $ {
3708
3708
  }
3709
3709
  };
3710
3710
  h(It, "type", It.register("ESUeViewer", ke.type, It));
3711
- let or = It;
3712
- const Et = class Et extends Ne {
3711
+ let sr = It;
3712
+ const Et = class Et extends Ue {
3713
3713
  constructor(e, t) {
3714
3714
  if (super(e, t), !t.viewer) {
3715
3715
  console.warn("viewer is undefined!");
@@ -3717,7 +3717,7 @@ const Et = class Et extends Ne {
3717
3717
  }
3718
3718
  }
3719
3719
  };
3720
- h(Et, "type", Et.register("ESUeViewer", zi.type, Et));
3720
+ h(Et, "type", Et.register("ESUeViewer", Ni.type, Et));
3721
3721
  let Pe = Et;
3722
3722
  const St = class St extends Pe {
3723
3723
  constructor(e, t) {
@@ -3727,9 +3727,9 @@ const St = class St extends Pe {
3727
3727
  }
3728
3728
  }
3729
3729
  };
3730
- h(St, "type", St.register("ESUeViewer", bi.type, St));
3731
- let ar = St;
3732
- const Tt = class Tt extends B {
3730
+ h(St, "type", St.register("ESUeViewer", zi.type, St));
3731
+ let or = St;
3732
+ const Tt = class Tt extends D {
3733
3733
  constructor(e, t) {
3734
3734
  if (super(e, t), !t.viewer) {
3735
3735
  console.warn("viewer is undefined!");
@@ -3743,8 +3743,8 @@ const Tt = class Tt extends B {
3743
3743
  }
3744
3744
  };
3745
3745
  h(Tt, "type", Tt.register("ESUeViewer", Hi.type, Tt));
3746
- let dr = Tt;
3747
- const xt = class xt extends M {
3746
+ let ar = Tt;
3747
+ const xt = class xt extends W {
3748
3748
  constructor(e, t) {
3749
3749
  if (super(e, t), !t.viewer) {
3750
3750
  console.warn("viewer is undefined!");
@@ -3762,9 +3762,9 @@ const Rt = class Rt extends I {
3762
3762
  }
3763
3763
  }
3764
3764
  };
3765
- h(Rt, "type", Rt.register("ESUeViewer", Gi.type, Rt));
3766
- let cr = Rt;
3767
- const kt = class kt extends B {
3765
+ h(Rt, "type", Rt.register("ESUeViewer", bi.type, Rt));
3766
+ let dr = Rt;
3767
+ const kt = class kt extends D {
3768
3768
  constructor(e, t) {
3769
3769
  super(e, t);
3770
3770
  const r = t.viewer;
@@ -3772,14 +3772,14 @@ const kt = class kt extends B {
3772
3772
  console.warn("viewer is undefined!");
3773
3773
  return;
3774
3774
  }
3775
- const i = this.ad($e(""));
3775
+ const i = this.ad(De(""));
3776
3776
  {
3777
3777
  const o = () => {
3778
3778
  if (typeof e.url == "string")
3779
- i.value = D.context.getStrFromEnv(e.url);
3779
+ i.value = P.context.getStrFromEnv(e.url);
3780
3780
  else {
3781
3781
  const u = e.url;
3782
- u.url = D.context.getStrFromEnv(u.url), i.value = u;
3782
+ u.url = P.context.getStrFromEnv(u.url), i.value = u;
3783
3783
  }
3784
3784
  };
3785
3785
  o(), this.ad(e.urlChanged.don(o));
@@ -3813,11 +3813,11 @@ const kt = class kt extends B {
3813
3813
  }
3814
3814
  };
3815
3815
  h(kt, "type", kt.register("ESUeViewer", U.type, kt));
3816
- let ur = kt;
3817
- const Lt = class Lt extends J {
3816
+ let cr = kt;
3817
+ const Lt = class Lt extends b {
3818
3818
  constructor(t, r) {
3819
3819
  super(t, r);
3820
- h(this, "_imageLabel", this.dv(new ai(`${this.sceneObject.id}_ESImageLabel`)));
3820
+ h(this, "_imageLabel", this.dv(new oi(`${this.sceneObject.id}_ESImageLabel`)));
3821
3821
  h(this, "_hasClassDivAndPos", {});
3822
3822
  const i = r.viewer;
3823
3823
  if (!i) {
@@ -3832,38 +3832,38 @@ const Lt = class Lt extends J {
3832
3832
  if (!i) return;
3833
3833
  if (!t.instanceClass)
3834
3834
  throw new Error("!sceneObject.instanceClass");
3835
- const l = document.createElement("div"), f = this.dv(new t.instanceClass(l, t, r))._container;
3836
- if (f.style.opacity = t.opacity.toString() ?? be.defaults.opacity, f.style.position = "fixed", f.style.zIndex = "-1", f.style.top = "0px", !document.body.contains(f)) {
3837
- document.body.appendChild(f);
3838
- let d = f ? f.querySelectorAll("*[class]") : [];
3839
- for (let p = 0; p < d.length; p++) {
3840
- const c = d[p];
3841
- var v = c.getBoundingClientRect();
3835
+ const d = document.createElement("div"), v = this.dv(new t.instanceClass(d, t, r))._container;
3836
+ if (v.style.opacity = t.opacity.toString() ?? ze.defaults.opacity, v.style.position = "fixed", v.style.zIndex = "-1", v.style.top = "0px", !document.body.contains(v)) {
3837
+ document.body.appendChild(v);
3838
+ let a = v ? v.querySelectorAll("*[class]") : [];
3839
+ for (let p = 0; p < a.length; p++) {
3840
+ const c = a[p];
3841
+ var f = c.getBoundingClientRect();
3842
3842
  this._hasClassDivAndPos[c.className] = [
3843
3843
  c.offsetLeft,
3844
3844
  c.offsetTop,
3845
- c.offsetLeft + v.width,
3846
- c.offsetTop + v.height
3845
+ c.offsetLeft + f.width,
3846
+ c.offsetTop + f.height
3847
3847
  ];
3848
3848
  }
3849
3849
  }
3850
- Kn(f, {
3850
+ Gn(v, {
3851
3851
  backgroundColor: null,
3852
3852
  allowTaint: !0,
3853
3853
  useCORS: !0,
3854
- width: f.offsetWidth,
3855
- height: f.offsetHeight,
3854
+ width: v.offsetWidth,
3855
+ height: v.offsetHeight,
3856
3856
  scale: 1
3857
- }).then((d) => {
3858
- document.body.contains(f) && document.body.removeChild(f), n.url = d.toDataURL(), n.show = t.show;
3857
+ }).then((a) => {
3858
+ document.body.contains(v) && document.body.removeChild(v), n.url = a.toDataURL(), n.show = t.show;
3859
3859
  }).catch(() => {
3860
- document.body.contains(f) && document.body.removeChild(f);
3860
+ document.body.contains(v) && document.body.removeChild(v);
3861
3861
  });
3862
3862
  }, o = () => {
3863
3863
  try {
3864
3864
  t.instanceClass ? s() : (n.url = "", n.show = !1);
3865
- } catch (l) {
3866
- console.error(l);
3865
+ } catch (d) {
3866
+ console.error(d);
3867
3867
  }
3868
3868
  };
3869
3869
  o();
@@ -3887,12 +3887,12 @@ const Lt = class Lt extends J {
3887
3887
  if (s.objId !== this._imageLabel.id) return;
3888
3888
  const { type: o, add: u } = s;
3889
3889
  if (o === "leftClick") {
3890
- const l = Object.keys(this._hasClassDivAndPos);
3891
- for (let f = 0; f < l.length; f++) {
3892
- const v = l[f];
3893
- let d = this._hasClassDivAndPos[v];
3894
- if (u && u.mouseRelativePos && u.mouseRelativePos[0] >= d[0] && u.mouseRelativePos[0] <= d[2] && u.mouseRelativePos[1] >= d[1] && u.mouseRelativePos[1] <= d[3]) {
3895
- u.className = v;
3890
+ const d = Object.keys(this._hasClassDivAndPos);
3891
+ for (let v = 0; v < d.length; v++) {
3892
+ const f = d[v];
3893
+ let a = this._hasClassDivAndPos[f];
3894
+ if (u && u.mouseRelativePos && u.mouseRelativePos[0] >= a[0] && u.mouseRelativePos[0] <= a[2] && u.mouseRelativePos[1] >= a[1] && u.mouseRelativePos[1] <= a[3]) {
3895
+ u.className = f;
3896
3896
  break;
3897
3897
  }
3898
3898
  }
@@ -3906,13 +3906,13 @@ const Lt = class Lt extends J {
3906
3906
  const { position: o, rotation: u } = s;
3907
3907
  t.flyInParam = { position: o, rotation: u, flyDuration: 1 };
3908
3908
  })), this.d(t.smoothMoveEvent.don((s, o) => {
3909
- Ue(i, n.id, s, o);
3909
+ _e(i, n.id, s, o);
3910
3910
  })), this.d(t.smoothMoveWithRotationEvent.don((s, o, u) => {
3911
- Me(i, n.id, s, o, u);
3912
- })), this.d(t.smoothMoveOnGroundEvent.don((s, o, u, l) => {
3913
- We(i, n.id, s, o, l, u);
3914
- })), this.d(t.smoothMoveWithRotationOnGroundEvent.don((s, o, u, l, f) => {
3915
- Ae(i, n.id, s, o, u, l, f);
3911
+ $e(i, n.id, s, o, u);
3912
+ })), this.d(t.smoothMoveOnGroundEvent.don((s, o, u, d) => {
3913
+ We(i, n.id, s, o, d, u);
3914
+ })), this.d(t.smoothMoveWithRotationOnGroundEvent.don((s, o, u, d, v) => {
3915
+ Ae(i, n.id, s, o, u, d, v);
3916
3916
  })), this.d(t.flyToEvent.don((s, o) => {
3917
3917
  n.flyTo(s);
3918
3918
  })), this.d(t.flyInEvent.don((s) => {
@@ -3920,9 +3920,9 @@ const Lt = class Lt extends J {
3920
3920
  }));
3921
3921
  }
3922
3922
  };
3923
- h(Lt, "type", Lt.register("ESUeViewer", be.type, Lt));
3924
- let hr = Lt;
3925
- const Dt = class Dt extends B {
3923
+ h(Lt, "type", Lt.register("ESUeViewer", ze.type, Lt));
3924
+ let ur = Lt;
3925
+ const Pt = class Pt extends D {
3926
3926
  constructor(e, t) {
3927
3927
  super(e, t);
3928
3928
  const r = t.viewer;
@@ -3952,9 +3952,9 @@ const Dt = class Dt extends B {
3952
3952
  }));
3953
3953
  }
3954
3954
  };
3955
- h(Dt, "type", Dt.register("ESUeViewer", Ki.type, Dt));
3956
- let pr = Dt;
3957
- const Pt = class Pt extends $ {
3955
+ h(Pt, "type", Pt.register("ESUeViewer", Gi.type, Pt));
3956
+ let hr = Pt;
3957
+ const Bt = class Bt extends M {
3958
3958
  constructor(e, t) {
3959
3959
  if (super(e, t), !t.viewer) {
3960
3960
  console.warn("viewer is undefined!");
@@ -3962,9 +3962,9 @@ const Pt = class Pt extends $ {
3962
3962
  }
3963
3963
  }
3964
3964
  };
3965
- h(Pt, "type", Pt.register("ESUeViewer", Xi.type, Pt));
3966
- let Be = Pt;
3967
- const Bt = class Bt extends $ {
3965
+ h(Bt, "type", Bt.register("ESUeViewer", Ki.type, Bt));
3966
+ let Be = Bt;
3967
+ const Dt = class Dt extends M {
3968
3968
  constructor(e, t) {
3969
3969
  if (super(e, t), !t.viewer) {
3970
3970
  console.warn("viewer is undefined!");
@@ -3972,9 +3972,9 @@ const Bt = class Bt extends $ {
3972
3972
  }
3973
3973
  }
3974
3974
  };
3975
- h(Bt, "type", Bt.register("ESUeViewer", Zi.type, Bt));
3976
- let fr = Bt;
3977
- const $t = class $t extends M {
3975
+ h(Dt, "type", Dt.register("ESUeViewer", Xi.type, Dt));
3976
+ let pr = Dt;
3977
+ const Mt = class Mt extends W {
3978
3978
  constructor(e, t) {
3979
3979
  if (super(e, t), !t.viewer) {
3980
3980
  console.warn("viewer is undefined!");
@@ -3982,8 +3982,8 @@ const $t = class $t extends M {
3982
3982
  }
3983
3983
  }
3984
3984
  };
3985
- h($t, "type", $t.register("ESUeViewer", Qi.type, $t));
3986
- let vr = $t;
3985
+ h(Mt, "type", Mt.register("ESUeViewer", Qi.type, Mt));
3986
+ let vr = Mt;
3987
3987
  const X = class X extends I {
3988
3988
  constructor(e, t) {
3989
3989
  super(e, t);
@@ -3993,11 +3993,11 @@ const X = class X extends I {
3993
3993
  return;
3994
3994
  }
3995
3995
  this.d(e.setNodePositionEvent.don((i, n) => {
3996
- ds(r, e.id, i, n);
3996
+ as(r, e.id, i, n);
3997
3997
  })), this.d(e.setNodeRotationEvent.don((i, n) => {
3998
3998
  ls(r, e.id, i, n);
3999
3999
  })), this.d(e.setNodeScaleEvent.don((i, n) => {
4000
- cs(r, e.id, i, n);
4000
+ ds(r, e.id, i, n);
4001
4001
  }));
4002
4002
  }
4003
4003
  };
@@ -4006,14 +4006,14 @@ h(X, "forceUeUpdateProps", [
4006
4006
  "url"
4007
4007
  ]), h(X, "propValFuncs", {
4008
4008
  ...I.propValFuncs,
4009
- url: (e) => typeof e == "string" ? D.context.getStrFromEnv(Ce(e)) : (e.url = D.context.getStrFromEnv(Ce(e.url)), e),
4009
+ url: (e) => typeof e == "string" ? P.context.getStrFromEnv(Ce(e)) : (e.url = P.context.getStrFromEnv(Ce(e.url)), e),
4010
4010
  czmMaximumScale: null,
4011
4011
  czmMinimumPixelSize: null,
4012
4012
  czmNativeScale: null,
4013
4013
  czmColor: null
4014
4014
  }), h(X, "type", X.register("ESUeViewer", Yi.type, X));
4015
- let gr = X;
4016
- const _t = class _t extends $ {
4015
+ let fr = X;
4016
+ const $t = class $t extends M {
4017
4017
  constructor(e, t) {
4018
4018
  if (super(e, t), !t.viewer) {
4019
4019
  console.warn("viewer is undefined!");
@@ -4021,25 +4021,25 @@ const _t = class _t extends $ {
4021
4021
  }
4022
4022
  }
4023
4023
  };
4024
- h(_t, "type", _t.register("ESUeViewer", qi.type, _t));
4025
- let wr = _t;
4026
- const Mt = class Mt extends I {
4024
+ h($t, "type", $t.register("ESUeViewer", qi.type, $t));
4025
+ let gr = $t;
4026
+ const Wt = class Wt extends I {
4027
4027
  constructor(e, t) {
4028
4028
  if (super(e, t), !t.viewer) {
4029
4029
  console.warn("viewer is undefined!");
4030
4030
  return;
4031
4031
  }
4032
- const i = async (s, o, u, l) => {
4033
- const { viewer: f } = s;
4034
- if (!f) {
4032
+ const i = async (s, o, u, d) => {
4033
+ const { viewer: v } = s;
4034
+ if (!v) {
4035
4035
  console.error("AIMoveTo: ueViewer.viewer is undefined");
4036
4036
  return;
4037
4037
  }
4038
- const v = await f.callUeFunc({
4038
+ const f = await v.callUeFunc({
4039
4039
  f: "AIMoveTo",
4040
- p: { id: o, Destination: u, Time: l }
4040
+ p: { id: o, Destination: u, Time: d }
4041
4041
  });
4042
- return v.error && console.error("AIMoveTo:", v.error), v;
4042
+ return f.error && console.error("AIMoveTo:", f.error), f;
4043
4043
  };
4044
4044
  this.d(e.aiMoveToEvent.don((s, o) => {
4045
4045
  i(t, e.id, s, o);
@@ -4050,20 +4050,20 @@ const Mt = class Mt extends I {
4050
4050
  console.error("StopAIMove: ueViewer.viewer is undefined");
4051
4051
  return;
4052
4052
  }
4053
- const l = await u.callUeFunc({
4053
+ const d = await u.callUeFunc({
4054
4054
  f: "StopAIMove",
4055
4055
  p: { id: o }
4056
4056
  });
4057
- return l.error && console.error("StopAIMove:", l.error), l;
4057
+ return d.error && console.error("StopAIMove:", d.error), d;
4058
4058
  };
4059
4059
  this.d(e.stopAIMoveEvent.don(() => {
4060
4060
  n(t, e.id);
4061
4061
  }));
4062
4062
  }
4063
4063
  };
4064
- h(Mt, "type", Mt.register("ESUeViewer", Vi.type, Mt));
4065
- let yr = Mt;
4066
- const Z = class Z extends N {
4064
+ h(Wt, "type", Wt.register("ESUeViewer", Zi.type, Wt));
4065
+ let wr = Wt;
4066
+ const Q = class Q extends N {
4067
4067
  constructor(e, t) {
4068
4068
  if (super(e, t), !t.viewer) {
4069
4069
  console.warn("viewer is undefined!");
@@ -4072,15 +4072,15 @@ const Z = class Z extends N {
4072
4072
  e.anchor = [0.5, 1];
4073
4073
  }
4074
4074
  };
4075
- h(Z, "type", Z.register("ESUeViewer", ai.type, Z)), h(Z, "forceUeUpdateProps", [
4075
+ h(Q, "type", Q.register("ESUeViewer", oi.type, Q)), h(Q, "forceUeUpdateProps", [
4076
4076
  ...N.forceUeUpdateProps,
4077
4077
  "url"
4078
- ]), h(Z, "propValFuncs", {
4078
+ ]), h(Q, "propValFuncs", {
4079
4079
  ...N.propValFuncs,
4080
- url: (e) => typeof e == "string" ? D.context.getStrFromEnv(Ce(e)) : (e.url = D.context.getStrFromEnv(Ce(e.url)), e)
4080
+ url: (e) => typeof e == "string" ? P.context.getStrFromEnv(Ce(e)) : (e.url = P.context.getStrFromEnv(Ce(e.url)), e)
4081
4081
  });
4082
- let mr = Z;
4083
- const Wt = class Wt extends I {
4082
+ let yr = Q;
4083
+ const At = class At extends I {
4084
4084
  constructor(e, t) {
4085
4085
  if (super(e, t), !t.viewer) {
4086
4086
  console.warn("viewer is undefined!");
@@ -4088,9 +4088,9 @@ const Wt = class Wt extends I {
4088
4088
  }
4089
4089
  }
4090
4090
  };
4091
- h(Wt, "type", Wt.register("ESUeViewer", Oi.type, Wt));
4092
- let Cr = Wt;
4093
- const At = class At extends Ne {
4091
+ h(At, "type", At.register("ESUeViewer", Vi.type, At));
4092
+ let mr = At;
4093
+ const _t = class _t extends Ue {
4094
4094
  constructor(e, t) {
4095
4095
  if (super(e, t), !t.viewer) {
4096
4096
  console.warn("viewer is undefined!");
@@ -4098,9 +4098,9 @@ const At = class At extends Ne {
4098
4098
  }
4099
4099
  }
4100
4100
  };
4101
- h(At, "type", At.register("ESUeViewer", ji.type, At));
4102
- let Fr = At;
4103
- const Ut = class Ut extends B {
4101
+ h(_t, "type", _t.register("ESUeViewer", Oi.type, _t));
4102
+ let Cr = _t;
4103
+ const Ut = class Ut extends D {
4104
4104
  constructor(e, t) {
4105
4105
  if (super(e, t), !t.viewer) {
4106
4106
  console.warn("viewer is undefined!");
@@ -4108,9 +4108,9 @@ const Ut = class Ut extends B {
4108
4108
  }
4109
4109
  }
4110
4110
  };
4111
- h(Ut, "type", Ut.register("ESUeViewer", tn.type, Ut));
4112
- let Ir = Ut;
4113
- const Nt = class Nt extends Ne {
4111
+ h(Ut, "type", Ut.register("ESUeViewer", ji.type, Ut));
4112
+ let Fr = Ut;
4113
+ const Nt = class Nt extends Ue {
4114
4114
  constructor(e, t) {
4115
4115
  if (super(e, t), !t.viewer) {
4116
4116
  console.warn("viewer is undefined!");
@@ -4118,8 +4118,8 @@ const Nt = class Nt extends Ne {
4118
4118
  }
4119
4119
  }
4120
4120
  };
4121
- h(Nt, "type", Nt.register("ESUeViewer", en.type, Nt));
4122
- let Er = Nt;
4121
+ h(Nt, "type", Nt.register("ESUeViewer", tn.type, Nt));
4122
+ let Ir = Nt;
4123
4123
  const zt = class zt extends I {
4124
4124
  constructor(e, t) {
4125
4125
  if (super(e, t), !t.viewer) {
@@ -4128,9 +4128,9 @@ const zt = class zt extends I {
4128
4128
  }
4129
4129
  }
4130
4130
  };
4131
- h(zt, "type", zt.register("ESUeViewer", rn.type, zt));
4132
- let Sr = zt;
4133
- const bt = class bt extends I {
4131
+ h(zt, "type", zt.register("ESUeViewer", en.type, zt));
4132
+ let Er = zt;
4133
+ const Ht = class Ht extends I {
4134
4134
  constructor(e, t) {
4135
4135
  if (super(e, t), !t.viewer) {
4136
4136
  console.warn("viewer is undefined!");
@@ -4138,9 +4138,9 @@ const bt = class bt extends I {
4138
4138
  }
4139
4139
  }
4140
4140
  };
4141
- h(bt, "type", bt.register("ESUeViewer", nn.type, bt));
4142
- let Tr = bt;
4143
- const Ht = class Ht extends $ {
4141
+ h(Ht, "type", Ht.register("ESUeViewer", rn.type, Ht));
4142
+ let Sr = Ht;
4143
+ const Jt = class Jt extends M {
4144
4144
  constructor(e, t) {
4145
4145
  if (super(e, t), !t.viewer) {
4146
4146
  console.warn("viewer is undefined!");
@@ -4148,9 +4148,9 @@ const Ht = class Ht extends $ {
4148
4148
  }
4149
4149
  }
4150
4150
  };
4151
- h(Ht, "type", Ht.register("ESUeViewer", sn.type, Ht));
4152
- let xr = Ht;
4153
- const Jt = class Jt extends Be {
4151
+ h(Jt, "type", Jt.register("ESUeViewer", nn.type, Jt));
4152
+ let Tr = Jt;
4153
+ const bt = class bt extends Be {
4154
4154
  constructor(e, t) {
4155
4155
  if (super(e, t), !t.viewer) {
4156
4156
  console.warn("viewer is undefined!");
@@ -4158,9 +4158,9 @@ const Jt = class Jt extends Be {
4158
4158
  }
4159
4159
  }
4160
4160
  };
4161
- h(Jt, "type", Jt.register("ESUeViewer", on.type, Jt));
4162
- let Rr = Jt;
4163
- const Gt = class Gt extends De {
4161
+ h(bt, "type", bt.register("ESUeViewer", sn.type, bt));
4162
+ let xr = bt;
4163
+ const Gt = class Gt extends Le {
4164
4164
  constructor(e, t) {
4165
4165
  super(e, t);
4166
4166
  const r = t.viewer;
@@ -4170,22 +4170,22 @@ const Gt = class Gt extends De {
4170
4170
  }
4171
4171
  this.d(e.highlightFeatureEvent.don((i) => {
4172
4172
  const n = typeof i == "number" ? i.toString() : i;
4173
- ns(r, e.id, n);
4173
+ is(r, e.id, n);
4174
4174
  })), this.d(e.highlightFeatureAndFlyToEvent.don((i, n, s, o) => {
4175
4175
  const u = typeof i == "number" ? i.toString() : i;
4176
- ss(r, e.id, u, o ?? 1);
4176
+ ns(r, e.id, u, o ?? 1);
4177
4177
  })), this.d(e.setLayerVisibleEvent.don((i, n) => {
4178
4178
  let s = "";
4179
- typeof n != "string" ? s = JSON.stringify(n) : s = n, os(r, e.id, s);
4179
+ typeof n != "string" ? s = JSON.stringify(n) : s = n, ss(r, e.id, s);
4180
4180
  })), this.d(e.setLayerColorEvent.don((i, n) => {
4181
4181
  let s = "";
4182
- typeof n != "string" ? s = JSON.stringify(n) : s = n, as(r, e.id, s);
4182
+ typeof n != "string" ? s = JSON.stringify(n) : s = n, os(r, e.id, s);
4183
4183
  }));
4184
4184
  }
4185
4185
  };
4186
- h(Gt, "type", Gt.register("ESUeViewer", an.type, Gt));
4187
- let kr = Gt;
4188
- const Kt = class Kt extends M {
4186
+ h(Gt, "type", Gt.register("ESUeViewer", on.type, Gt));
4187
+ let Rr = Gt;
4188
+ const Kt = class Kt extends W {
4189
4189
  constructor(e, t) {
4190
4190
  if (super(e, t), !t.viewer) {
4191
4191
  console.warn("viewer is undefined!");
@@ -4193,8 +4193,8 @@ const Kt = class Kt extends M {
4193
4193
  }
4194
4194
  }
4195
4195
  };
4196
- h(Kt, "type", Kt.register("ESUeViewer", dn.type, Kt));
4197
- let Lr = Kt;
4196
+ h(Kt, "type", Kt.register("ESUeViewer", an.type, Kt));
4197
+ let kr = Kt;
4198
4198
  const Xt = class Xt extends N {
4199
4199
  constructor(e, t) {
4200
4200
  super(e, t);
@@ -4217,8 +4217,8 @@ const Xt = class Xt extends N {
4217
4217
  }
4218
4218
  };
4219
4219
  h(Xt, "type", Xt.register("ESUeViewer", ln.type, Xt));
4220
- let Dr = Xt;
4221
- const Zt = class Zt extends I {
4220
+ let Lr = Xt;
4221
+ const Qt = class Qt extends I {
4222
4222
  constructor(e, t) {
4223
4223
  if (super(e, t), !t.viewer) {
4224
4224
  console.warn("viewer is undefined!");
@@ -4226,9 +4226,9 @@ const Zt = class Zt extends I {
4226
4226
  }
4227
4227
  }
4228
4228
  };
4229
- h(Zt, "type", Zt.register("ESUeViewer", cn.type, Zt));
4230
- let Pr = Zt;
4231
- const Q = class Q extends B {
4229
+ h(Qt, "type", Qt.register("ESUeViewer", dn.type, Qt));
4230
+ let Pr = Qt;
4231
+ const Y = class Y extends D {
4232
4232
  constructor(e, t) {
4233
4233
  if (super(e, t), !t.viewer) {
4234
4234
  console.warn("viewer is undefined!");
@@ -4236,15 +4236,15 @@ const Q = class Q extends B {
4236
4236
  }
4237
4237
  }
4238
4238
  };
4239
- h(Q, "type", Q.register("ESUeViewer", un.type, Q)), h(Q, "forceUeUpdateProps", [
4240
- ...B.forceUeUpdateProps,
4239
+ h(Y, "type", Y.register("ESUeViewer", cn.type, Y)), h(Y, "forceUeUpdateProps", [
4240
+ ...D.forceUeUpdateProps,
4241
4241
  "url"
4242
- ]), h(Q, "propValFuncs", {
4243
- ...B.propValFuncs,
4244
- url: (e) => typeof e == "string" ? D.context.getStrFromEnv(e) : (e.url = D.context.getStrFromEnv(e.url), e)
4242
+ ]), h(Y, "propValFuncs", {
4243
+ ...D.propValFuncs,
4244
+ url: (e) => typeof e == "string" ? P.context.getStrFromEnv(e) : (e.url = P.context.getStrFromEnv(e.url), e)
4245
4245
  });
4246
- let Br = Q;
4247
- const Qt = class Qt extends $ {
4246
+ let Br = Y;
4247
+ const Yt = class Yt extends M {
4248
4248
  constructor(e, t) {
4249
4249
  if (super(e, t), !t.viewer) {
4250
4250
  console.warn("viewer is undefined!");
@@ -4252,9 +4252,9 @@ const Qt = class Qt extends $ {
4252
4252
  }
4253
4253
  }
4254
4254
  };
4255
- h(Qt, "type", Qt.register("ESUeViewer", hn.type, Qt));
4256
- let $r = Qt;
4257
- const Yt = class Yt extends M {
4255
+ h(Yt, "type", Yt.register("ESUeViewer", un.type, Yt));
4256
+ let Dr = Yt;
4257
+ const qt = class qt extends W {
4258
4258
  constructor(e, t) {
4259
4259
  if (super(e, t), !t.viewer) {
4260
4260
  console.warn("viewer is undefined!");
@@ -4262,9 +4262,9 @@ const Yt = class Yt extends M {
4262
4262
  }
4263
4263
  }
4264
4264
  };
4265
- h(Yt, "type", Yt.register("ESUeViewer", pn.type, Yt));
4266
- let _r = Yt;
4267
- const qt = class qt extends M {
4265
+ h(qt, "type", qt.register("ESUeViewer", hn.type, qt));
4266
+ let Mr = qt;
4267
+ const Zt = class Zt extends W {
4268
4268
  constructor(e, t) {
4269
4269
  if (super(e, t), !t.viewer) {
4270
4270
  console.warn("viewer is undefined!");
@@ -4272,8 +4272,8 @@ const qt = class qt extends M {
4272
4272
  }
4273
4273
  }
4274
4274
  };
4275
- h(qt, "type", qt.register("ESUeViewer", fn.type, qt));
4276
- let Mr = qt;
4275
+ h(Zt, "type", Zt.register("ESUeViewer", pn.type, Zt));
4276
+ let $r = Zt;
4277
4277
  const Vt = class Vt extends nt {
4278
4278
  constructor(e, t) {
4279
4279
  if (super(e, t), !t.viewer) {
@@ -4293,23 +4293,23 @@ const Vt = class Vt extends nt {
4293
4293
  let u = [255, 255, 255, 1];
4294
4294
  if (o.startsWith("#")) {
4295
4295
  if (o.length === 4) {
4296
- let l = parseInt(o[1] + o[1], 16), f = parseInt(o[2] + o[2], 16), v = parseInt(o[3] + o[3], 16);
4297
- u = [l, f, v, 1];
4296
+ let d = parseInt(o[1] + o[1], 16), v = parseInt(o[2] + o[2], 16), f = parseInt(o[3] + o[3], 16);
4297
+ u = [d, v, f, 1];
4298
4298
  } else if (o.length === 7) {
4299
- let l = parseInt(o.substring(1, 3), 16), f = parseInt(o.substring(3, 5), 16), v = parseInt(o.substring(5, 7), 16);
4300
- u = [l, f, v, 1];
4299
+ let d = parseInt(o.substring(1, 3), 16), v = parseInt(o.substring(3, 5), 16), f = parseInt(o.substring(5, 7), 16);
4300
+ u = [d, v, f, 1];
4301
4301
  }
4302
4302
  } else if (o.startsWith("rgba")) {
4303
- let l = o.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)$/);
4304
- if (l) {
4305
- let f = parseInt(l[1]), v = parseInt(l[2]), d = parseInt(l[3]), p = parseFloat(l[4]);
4306
- u = [f, v, d, p];
4303
+ let d = o.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)$/);
4304
+ if (d) {
4305
+ let v = parseInt(d[1]), f = parseInt(d[2]), a = parseInt(d[3]), p = parseFloat(d[4]);
4306
+ u = [v, f, a, p];
4307
4307
  }
4308
4308
  } else if (o.startsWith("rgb")) {
4309
- let l = o.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/);
4310
- if (l) {
4311
- let f = parseInt(l[1]), v = parseInt(l[2]), d = parseInt(l[3]);
4312
- u = [f, v, d, 1];
4309
+ let d = o.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/);
4310
+ if (d) {
4311
+ let v = parseInt(d[1]), f = parseInt(d[2]), a = parseInt(d[3]);
4312
+ u = [v, f, a, 1];
4313
4313
  }
4314
4314
  } else
4315
4315
  console.error("color类型只能为#rrggbb、#rgb、rgba(r,g,b,a)、rgb(r,g,b)");
@@ -4318,19 +4318,19 @@ const Vt = class Vt extends nt {
4318
4318
  const o = e.layerConfig;
4319
4319
  if (!o) return;
4320
4320
  const u = [];
4321
- o.forEach((l) => {
4321
+ o.forEach((d) => {
4322
4322
  u.push({
4323
4323
  condition: [{
4324
4324
  field: "layer",
4325
4325
  op: "==",
4326
- value: l.layer
4326
+ value: d.layer
4327
4327
  }, {
4328
4328
  field: "dataset",
4329
4329
  op: "==",
4330
- value: l.dataset
4330
+ value: d.dataset
4331
4331
  }],
4332
- color: i(l.value.color ?? "rgb(255,255,255)"),
4333
- show: l.value.visible
4332
+ color: i(d.value.color ?? "rgb(255,255,255)"),
4333
+ show: d.value.visible
4334
4334
  });
4335
4335
  }), e.setFeatureStyle(u);
4336
4336
  };
@@ -4347,26 +4347,26 @@ const Vt = class Vt extends nt {
4347
4347
  };
4348
4348
  h(Vt, "type", Vt.register("ESUeViewer", vn.type, Vt));
4349
4349
  let Wr = Vt;
4350
- const Ot = class Ot extends B {
4350
+ const Ot = class Ot extends D {
4351
4351
  constructor(e, t) {
4352
4352
  if (super(e, t), !t.viewer) {
4353
4353
  console.warn("viewer is undefined!");
4354
4354
  return;
4355
4355
  }
4356
4356
  this.d(e.addTreesEvent.don((i) => {
4357
- wn(t, e.id, i);
4357
+ gn(t, e.id, i);
4358
4358
  })), this.d(e.removeAllTreesEvent.don(() => {
4359
- yn(t, e.id);
4359
+ wn(t, e.id);
4360
4360
  })), this.d(e.updateTreeParamsEvent.don((i) => {
4361
- mn(t, e.id, i);
4361
+ yn(t, e.id, i);
4362
4362
  })), this.d(e.cutDownTreesEvent.don((i, n) => {
4363
- Cn(t, e.id, i, n);
4363
+ mn(t, e.id, i, n);
4364
4364
  })), this.d(e.growthSimulationEvent.don((i, n, s) => {
4365
- Fn(t, e.id, i, n, s);
4365
+ Cn(t, e.id, i, n, s);
4366
4366
  }));
4367
4367
  }
4368
4368
  };
4369
- h(Ot, "type", Ot.register("ESUeViewer", gn.type, Ot));
4369
+ h(Ot, "type", Ot.register("ESUeViewer", fn.type, Ot));
4370
4370
  let Ar = Ot;
4371
4371
  const jt = class jt extends I {
4372
4372
  constructor(e, t) {
@@ -4376,9 +4376,9 @@ const jt = class jt extends I {
4376
4376
  }
4377
4377
  }
4378
4378
  };
4379
- h(jt, "type", jt.register("ESUeViewer", In.type, jt));
4380
- let Ur = jt;
4381
- const te = class te extends M {
4379
+ h(jt, "type", jt.register("ESUeViewer", Fn.type, jt));
4380
+ let _r = jt;
4381
+ const te = class te extends W {
4382
4382
  constructor(e, t) {
4383
4383
  super(e, t);
4384
4384
  const r = t.viewer;
@@ -4403,9 +4403,9 @@ const te = class te extends M {
4403
4403
  }));
4404
4404
  }
4405
4405
  };
4406
- h(te, "type", te.register("ESUeViewer", En.type, te));
4407
- let Nr = te;
4408
- const ee = class ee extends M {
4406
+ h(te, "type", te.register("ESUeViewer", In.type, te));
4407
+ let Ur = te;
4408
+ const ee = class ee extends W {
4409
4409
  constructor(e, t) {
4410
4410
  super(e, t);
4411
4411
  const r = t.viewer;
@@ -4423,8 +4423,8 @@ const ee = class ee extends M {
4423
4423
  }));
4424
4424
  }
4425
4425
  };
4426
- h(ee, "type", ee.register("ESUeViewer", Sn.type, ee));
4427
- let zr = ee;
4426
+ h(ee, "type", ee.register("ESUeViewer", En.type, ee));
4427
+ let Nr = ee;
4428
4428
  const re = class re extends N {
4429
4429
  constructor(e, t) {
4430
4430
  if (super(e, t), !t.viewer) {
@@ -4433,8 +4433,8 @@ const re = class re extends N {
4433
4433
  }
4434
4434
  }
4435
4435
  };
4436
- h(re, "type", re.register("ESUeViewer", Tn.type, re));
4437
- let br = re;
4436
+ h(re, "type", re.register("ESUeViewer", Sn.type, re));
4437
+ let zr = re;
4438
4438
  const tt = class tt extends N {
4439
4439
  constructor(e, t) {
4440
4440
  super(e, t);
@@ -4444,17 +4444,17 @@ const tt = class tt extends N {
4444
4444
  return;
4445
4445
  }
4446
4446
  this.d(e.callFunctionEvent.don((i, n) => {
4447
- wi(r, e.id, i, n);
4447
+ gi(r, e.id, i, n);
4448
4448
  }));
4449
4449
  }
4450
4450
  };
4451
- h(tt, "type", tt.register("ESUeViewer", xn.type, tt)), h(tt, "propValFuncs", {
4451
+ h(tt, "type", tt.register("ESUeViewer", Tn.type, tt)), h(tt, "propValFuncs", {
4452
4452
  ...N.propValFuncs,
4453
4453
  info: (e) => JSON.stringify(e ?? {})
4454
4454
  });
4455
4455
  let Hr = tt;
4456
- const Jr = (a) => {
4457
- switch (a) {
4456
+ const Jr = (l) => {
4457
+ switch (l) {
4458
4458
  case 0:
4459
4459
  return "成功绑定";
4460
4460
  case 1:
@@ -4468,8 +4468,8 @@ const Jr = (a) => {
4468
4468
  default:
4469
4469
  return "未知错误";
4470
4470
  }
4471
- }, vo = (a) => {
4472
- switch (a) {
4471
+ }, vo = (l) => {
4472
+ switch (l) {
4473
4473
  case 0:
4474
4474
  return "创建成功";
4475
4475
  case 1:
@@ -4479,7 +4479,7 @@ const Jr = (a) => {
4479
4479
  default:
4480
4480
  return "未知错误";
4481
4481
  }
4482
- }, ie = class ie extends J {
4482
+ }, ie = class ie extends b {
4483
4483
  constructor(e, t) {
4484
4484
  super(e, t);
4485
4485
  const r = t.viewer;
@@ -4491,7 +4491,7 @@ const Jr = (a) => {
4491
4491
  vi(r, e.id);
4492
4492
  });
4493
4493
  const i = async () => {
4494
- l() || await r.callUeFunc({
4494
+ d() || await r.callUeFunc({
4495
4495
  f: "update",
4496
4496
  p: {
4497
4497
  id: e.id,
@@ -4523,49 +4523,49 @@ const Jr = (a) => {
4523
4523
  this.d(n.don(i)), this.d(e.flushEvent.don(() => n.flush()));
4524
4524
  let s, o;
4525
4525
  const u = async () => {
4526
- l() || (await r.callUeFunc({
4526
+ d() || (await r.callUeFunc({
4527
4527
  f: "update",
4528
4528
  p: {
4529
4529
  id: e.id,
4530
4530
  position: e.position
4531
4531
  }
4532
4532
  }), (t.debug ?? !1) && console.log(`updatePostion:${e.position},actorTag:${e.actorTag},actorClass:${e.actorClass}`));
4533
- }, l = () => !s && !o ? (console.warn(`${e.id} 未绑定ActorTag或未创建ActorClass!`), !0) : !1, f = async () => {
4534
- const { id: d } = e, p = await t.unBindActorByID(d);
4533
+ }, d = () => !s && !o ? (console.warn(`${e.id} 未绑定ActorTag或未创建ActorClass!`), !0) : !1, v = async () => {
4534
+ const { id: a } = e, p = await t.unBindActorByID(a);
4535
4535
  p && p.error !== "" && console.warn(`${e.id} UeESUnrealActor UnBindActorByID: ${p.error}`), s = void 0;
4536
- const c = await r.callUeFunc({ f: "destroy", p: { id: d } });
4536
+ const c = await r.callUeFunc({ f: "destroy", p: { id: a } });
4537
4537
  if (c && c.error !== "") {
4538
4538
  console.warn(`${e.id} UeESUnrealActor DestroyActorByID: ${c.error}`);
4539
4539
  return;
4540
4540
  }
4541
4541
  o = void 0;
4542
- }, v = this.dv(_({
4542
+ }, f = this.dv($({
4543
4543
  type: "ActorClass",
4544
4544
  actorClass: "default"
4545
4545
  }));
4546
4546
  {
4547
- const d = this.dv(R(
4547
+ const a = this.dv(R(
4548
4548
  e.actorClassChanged,
4549
4549
  e.actorTagChanged
4550
4550
  // sceneObject.positionChanged,
4551
4551
  )), p = async () => {
4552
- e.actorTag !== "" ? v.value = {
4552
+ e.actorTag !== "" ? f.value = {
4553
4553
  type: "ActorTag",
4554
4554
  actorTag: e.actorTag
4555
4555
  // position: sceneObject.position,
4556
- } : v.value = {
4556
+ } : f.value = {
4557
4557
  type: "ActorClass",
4558
4558
  actorClass: e.actorClass === "" ? "default" : e.actorClass
4559
4559
  // position: sceneObject.position,
4560
4560
  };
4561
4561
  };
4562
- p(), this.d(d.don(p)), this.d(e.flushEvent.don(() => d.flush()));
4562
+ p(), this.d(a.don(p)), this.d(e.flushEvent.don(() => a.flush()));
4563
4563
  }
4564
4564
  {
4565
- const d = this.dv(Se(async (c) => {
4566
- if (await c.promise(f()), v.value.type === "ActorTag") {
4567
- const { actorTag: g } = v.value;
4568
- await c.promise(f());
4565
+ const a = this.dv(Se(async (c) => {
4566
+ if (await c.promise(v()), f.value.type === "ActorTag") {
4567
+ const { actorTag: g } = f.value;
4568
+ await c.promise(v());
4569
4569
  try {
4570
4570
  e.lastActorStatus = "null";
4571
4571
  const w = await c.promise(t.bindActorByTag(e.id, g));
@@ -4586,8 +4586,8 @@ const Jr = (a) => {
4586
4586
  console.warn(`${e.id} UeESUnrealActor BindActorByTag catch error:${g}, ${w}`);
4587
4587
  return;
4588
4588
  }
4589
- } else if (v.value.type === "ActorClass") {
4590
- const { actorClass: g } = v.value;
4589
+ } else if (f.value.type === "ActorClass") {
4590
+ const { actorClass: g } = f.value;
4591
4591
  try {
4592
4592
  const w = await c.promise(t.createActorByClass(e.id, g));
4593
4593
  if (!w) return;
@@ -4608,49 +4608,49 @@ const Jr = (a) => {
4608
4608
  }
4609
4609
  await c.promise(i()), await c.promise(u());
4610
4610
  })), p = async () => {
4611
- d.restart();
4611
+ a.restart();
4612
4612
  };
4613
- p(), this.d(v.changed.don(p));
4614
- }
4615
- this.d(e.positionChanged.don(u)), this.d(e.callFunctionEvent.don((d, p) => {
4616
- l() || wi(r, e.id, d, p);
4617
- })), this.d(e.smoothMoveEvent.don((d, p) => {
4618
- l() || Ue(r, e.id, d, p);
4619
- })), this.d(e.smoothMoveWithRotationEvent.don((d, p, c) => {
4620
- l() || Me(r, e.id, d, p, c);
4621
- })), this.d(e.smoothMoveOnGroundEvent.don((d, p, c, g) => {
4622
- l() || We(r, e.id, d, p, g, c);
4623
- })), this.d(e.smoothMoveWithRotationOnGroundEvent.don((d, p, c, g, w) => {
4624
- l() || Ae(r, e.id, d, p, c, g, w);
4625
- })), this.d(e.automaticLandingEvent.don((d) => {
4626
- if (l()) return;
4613
+ p(), this.d(f.changed.don(p));
4614
+ }
4615
+ this.d(e.positionChanged.don(u)), this.d(e.callFunctionEvent.don((a, p) => {
4616
+ d() || gi(r, e.id, a, p);
4617
+ })), this.d(e.smoothMoveEvent.don((a, p) => {
4618
+ d() || _e(r, e.id, a, p);
4619
+ })), this.d(e.smoothMoveWithRotationEvent.don((a, p, c) => {
4620
+ d() || $e(r, e.id, a, p, c);
4621
+ })), this.d(e.smoothMoveOnGroundEvent.don((a, p, c, g) => {
4622
+ d() || We(r, e.id, a, p, g, c);
4623
+ })), this.d(e.smoothMoveWithRotationOnGroundEvent.don((a, p, c, g, w) => {
4624
+ d() || Ae(r, e.id, a, p, c, g, w);
4625
+ })), this.d(e.automaticLandingEvent.don((a) => {
4626
+ if (d()) return;
4627
4627
  const p = [e.position[0], e.position[1]];
4628
4628
  t.getHeightByLonLat(e.position[0], e.position[1], "Visibility").then((c) => {
4629
- c !== null && (e.position = [...p, c], e.collision = d);
4629
+ c !== null && (e.position = [...p, c], e.collision = a);
4630
4630
  });
4631
- })), this.d(e.flyToEvent.don(async (d, p) => {
4632
- if (l()) return;
4633
- const c = await ge(r, e.id, d);
4631
+ })), this.d(e.flyToEvent.don(async (a, p) => {
4632
+ if (d()) return;
4633
+ const c = await ge(r, e.id, a);
4634
4634
  let g = "over";
4635
4635
  c === void 0 ? g = "error" : c.endType === 0 ? g = "over" : c.endType === 1 && (g = "cancelled"), e.flyOverEvent.emit(p, g, t);
4636
4636
  })), this.d(e.calcFlyToParamEvent.don(() => {
4637
- l() || we(r, e.id);
4637
+ d() || we(r, e.id);
4638
4638
  })), this.d(e.calcFlyInParamEvent.don(async () => {
4639
4639
  if (!t.actived) return;
4640
- const d = await t.getCurrentCameraInfo();
4641
- if (!d) return;
4642
- const { position: p, rotation: c } = d;
4640
+ const a = await t.getCurrentCameraInfo();
4641
+ if (!a) return;
4642
+ const { position: p, rotation: c } = a;
4643
4643
  e.flyInParam = { position: p, rotation: c, flyDuration: 1 };
4644
- })), this.d(t.propChanged.don((d) => {
4645
- l() || d.objId === e.id && Object.keys(d.props).forEach((p) => {
4646
- const c = d.props[p] === null ? void 0 : d.props[p];
4644
+ })), this.d(t.propChanged.don((a) => {
4645
+ d() || a.objId === e.id && Object.keys(a.props).forEach((p) => {
4646
+ const c = a.props[p] === null ? void 0 : a.props[p];
4647
4647
  e[p] = c;
4648
4648
  });
4649
4649
  }));
4650
4650
  }
4651
4651
  };
4652
- h(ie, "type", ie.register("ESUeViewer", Rn.type, ie));
4653
- let Gr = ie;
4652
+ h(ie, "type", ie.register("ESUeViewer", xn.type, ie));
4653
+ let br = ie;
4654
4654
  const ne = class ne extends I {
4655
4655
  constructor(e, t) {
4656
4656
  if (super(e, t), !t.viewer) {
@@ -4659,8 +4659,8 @@ const ne = class ne extends I {
4659
4659
  }
4660
4660
  }
4661
4661
  };
4662
- h(ne, "type", ne.register("ESUeViewer", kn.type, ne));
4663
- let Kr = ne;
4662
+ h(ne, "type", ne.register("ESUeViewer", Rn.type, ne));
4663
+ let Gr = ne;
4664
4664
  const se = class se extends I {
4665
4665
  constructor(e, t) {
4666
4666
  if (super(e, t), !t.viewer) {
@@ -4669,9 +4669,9 @@ const se = class se extends I {
4669
4669
  }
4670
4670
  }
4671
4671
  };
4672
- h(se, "type", se.register("ESUeViewer", Ln.type, se));
4673
- let Xr = se;
4674
- const oe = class oe extends $ {
4672
+ h(se, "type", se.register("ESUeViewer", kn.type, se));
4673
+ let Kr = se;
4674
+ const oe = class oe extends M {
4675
4675
  constructor(e, t) {
4676
4676
  if (super(e, t), !t.viewer) {
4677
4677
  console.warn("viewer is underfined!");
@@ -4679,9 +4679,9 @@ const oe = class oe extends $ {
4679
4679
  }
4680
4680
  }
4681
4681
  };
4682
- h(oe, "type", oe.register("ESUeViewer", Dn.type, oe));
4683
- let Zr = oe;
4684
- const ae = class ae extends M {
4682
+ h(oe, "type", oe.register("ESUeViewer", Ln.type, oe));
4683
+ let Xr = oe;
4684
+ const ae = class ae extends W {
4685
4685
  constructor(e, t) {
4686
4686
  super(e, t);
4687
4687
  const r = t.viewer;
@@ -4721,7 +4721,7 @@ h(et, "type", et.register("ESUeViewer", Bn.type, et)), h(et, "propValFuncs", {
4721
4721
  info: (e) => JSON.stringify(e ?? {})
4722
4722
  });
4723
4723
  let Yr = et;
4724
- const de = class de extends J {
4724
+ const le = class le extends b {
4725
4725
  constructor(e, t) {
4726
4726
  if (super(e, t), !t.viewer) {
4727
4727
  console.warn("viewer is undefined!");
@@ -4734,74 +4734,74 @@ const de = class de extends J {
4734
4734
  });
4735
4735
  }
4736
4736
  };
4737
- h(de, "type", de.register("ESUeViewer", $n.type, de));
4738
- let qr = de;
4739
- D.context.getStrFromEnv(j.defaults.imgUrl);
4740
- const le = class le extends J {
4737
+ h(le, "type", le.register("ESUeViewer", Dn.type, le));
4738
+ let qr = le;
4739
+ P.context.getStrFromEnv(j.defaults.imgUrl);
4740
+ const de = class de extends b {
4741
4741
  constructor(e, t) {
4742
4742
  if (super(e, t), !t.viewer) {
4743
4743
  console.warn("viewer is undefined!");
4744
4744
  return;
4745
4745
  }
4746
- const i = this.disposeVar(new di());
4746
+ const i = this.disposeVar(new ai());
4747
4747
  t.add(i), this.dispose(() => t.delete(i)), this.dispose(F([i, "show"], [e, "show"])), i.instanceClass = class extends m {
4748
4748
  // subContainer是外部视口的div容器,可以在这里创建自己需要的DOM元素
4749
4749
  // customDiv指向当前的CustomDiv场景对象
4750
4750
  // viewer指定当前的视口
4751
4751
  constructor(s, o, u) {
4752
4752
  super(), this._subContainer = s;
4753
- const l = document.createElement("div");
4754
- this._subContainer.appendChild(l), this.dispose(() => this._subContainer.removeChild(l));
4753
+ const d = document.createElement("div");
4754
+ this._subContainer.appendChild(d), this.dispose(() => this._subContainer.removeChild(d));
4755
4755
  {
4756
- const d = async () => {
4756
+ const a = async () => {
4757
4757
  const p = await t.getCurrentCameraInfo(), c = p == null ? void 0 : p.position, w = [...p == null ? void 0 : p.rotation];
4758
4758
  w[0] = 360, t.flyIn(c, w);
4759
4759
  };
4760
- l.addEventListener("click", d), l.style.cursor = "pointer", this.dispose(() => l.removeEventListener("click", d));
4760
+ d.addEventListener("click", a), d.style.cursor = "pointer", this.dispose(() => d.removeEventListener("click", a));
4761
4761
  }
4762
4762
  {
4763
- const d = () => {
4764
- l.style.width = `${e.cssSize ? e.cssSize : j.defaults.cssSize}px`, l.style.height = `${e.cssSize ? e.cssSize : j.defaults.cssSize}px`;
4763
+ const a = () => {
4764
+ d.style.width = `${e.cssSize ? e.cssSize : j.defaults.cssSize}px`, d.style.height = `${e.cssSize ? e.cssSize : j.defaults.cssSize}px`;
4765
4765
  };
4766
- d(), e.dispose(e.cssSizeChanged.disposableOn(d));
4766
+ a(), e.dispose(e.cssSizeChanged.disposableOn(a));
4767
4767
  }
4768
- l.style.position = "fixed";
4768
+ d.style.position = "fixed";
4769
4769
  {
4770
- const d = () => {
4771
- l.style.top = `${e.cssPosition ? e.cssPosition[0] : j.defaults.cssPosition[0]}px`, l.style.right = `${e.cssPosition ? e.cssPosition[1] : j.defaults.cssPosition[1]}px`;
4770
+ const a = () => {
4771
+ d.style.top = `${e.cssPosition ? e.cssPosition[0] : j.defaults.cssPosition[0]}px`, d.style.right = `${e.cssPosition ? e.cssPosition[1] : j.defaults.cssPosition[1]}px`;
4772
4772
  };
4773
- d(), e.dispose(e.cssPositionChanged.disposableOn(d));
4773
+ a(), e.dispose(e.cssPositionChanged.disposableOn(a));
4774
4774
  }
4775
- l.style.transition = " right 0.4s linear", l.style.cursor = "pointer";
4776
- const f = document.createElement("div");
4777
- l.appendChild(f), this.dispose(() => l.removeChild(f)), f.style.width = "100%", f.style.height = "100%", f.style.position = "relative";
4778
- const v = document.createElement("img");
4779
- f.appendChild(v), this.dispose(() => f.removeChild(v)), v.style.width = "100%", v.style.height = "100%", v.style.border = "none";
4775
+ d.style.transition = " right 0.4s linear", d.style.cursor = "pointer";
4776
+ const v = document.createElement("div");
4777
+ d.appendChild(v), this.dispose(() => d.removeChild(v)), v.style.width = "100%", v.style.height = "100%", v.style.position = "relative";
4778
+ const f = document.createElement("img");
4779
+ v.appendChild(f), this.dispose(() => v.removeChild(f)), f.style.width = "100%", f.style.height = "100%", f.style.border = "none";
4780
4780
  {
4781
- const d = () => v.src = e.imgUrl;
4782
- d(), e.dispose(e.imgUrlChanged.disposableOn(d));
4781
+ const a = () => f.src = e.imgUrl;
4782
+ a(), e.dispose(e.imgUrlChanged.disposableOn(a));
4783
4783
  }
4784
4784
  {
4785
- const d = () => {
4785
+ const a = () => {
4786
4786
  const w = -t.getCurrentCameraInfo().rotation[0];
4787
- v.style.transform = `rotate(${w}deg)`;
4787
+ f.style.transform = `rotate(${w}deg)`;
4788
4788
  };
4789
4789
  let p;
4790
4790
  const c = async () => {
4791
- d(), e.show ? (l.style.display = "block", p = setInterval(() => {
4792
- d();
4793
- }, 1e3)) : (l.style.display = "none", clearInterval(p));
4791
+ a(), e.show ? (d.style.display = "block", p = setInterval(() => {
4792
+ a();
4793
+ }, 1e3)) : (d.style.display = "none", clearInterval(p));
4794
4794
  };
4795
4795
  this.dispose(e.showChanged.disposableOn(c)), c(), this.dispose(() => clearInterval(p));
4796
4796
  }
4797
- v.style.transformOrigin = "50% 50%";
4797
+ f.style.transformOrigin = "50% 50%";
4798
4798
  }
4799
4799
  };
4800
4800
  }
4801
4801
  };
4802
- h(le, "type", le.register("ESUeViewer", j.type, le));
4803
- let Vr = le;
4804
- const Y = class Y extends $ {
4802
+ h(de, "type", de.register("ESUeViewer", j.type, de));
4803
+ let Zr = de;
4804
+ const q = class q extends M {
4805
4805
  constructor(e, t) {
4806
4806
  super(e, t);
4807
4807
  const r = t.viewer;
@@ -4824,58 +4824,58 @@ const Y = class Y extends $ {
4824
4824
  }
4825
4825
  }
4826
4826
  };
4827
- h(Y, "type", Y.register("ESUeViewer", _n.type, Y)), h(Y, "forceUeUpdateProps", [
4828
- ...$.forceUeUpdateProps
4829
- ]), h(Y, "propValFuncs", {
4830
- ...$.propValFuncs,
4827
+ h(q, "type", q.register("ESUeViewer", Mn.type, q)), h(q, "forceUeUpdateProps", [
4828
+ ...M.forceUeUpdateProps
4829
+ ]), h(q, "propValFuncs", {
4830
+ ...M.propValFuncs,
4831
4831
  materialMode: null
4832
4832
  });
4833
- let Or = Y;
4834
- async function go(a) {
4835
- navigator.clipboard.writeText(a).then(function() {
4833
+ let Vr = q;
4834
+ async function fo(l) {
4835
+ navigator.clipboard.writeText(l).then(function() {
4836
4836
  console.log("复制成功");
4837
4837
  }, function(e) {
4838
4838
  console.log("复制失败");
4839
4839
  });
4840
4840
  }
4841
- const ce = class ce extends J {
4841
+ const ce = class ce extends b {
4842
4842
  constructor(e, t) {
4843
4843
  if (super(e, t), !t.viewer) {
4844
4844
  console.warn("viewer is undefined!");
4845
4845
  return;
4846
4846
  }
4847
- const i = this.disposeVar(new di());
4847
+ const i = this.disposeVar(new ai());
4848
4848
  t.add(i), this.dispose(() => t.delete(i)), i.instanceClass = class extends m {
4849
4849
  constructor(s, o, u) {
4850
- if (super(), this._subContainer = s, !u || !(u instanceof H)) return;
4851
- const l = document.createElement("div");
4852
- this._subContainer.appendChild(l), this.dispose(() => this._subContainer.removeChild(l)), l.style.width = "100%", l.style.position = "absolute", l.style.height = `${W.defaults.height}px`, l.style.left = "0", l.style.bottom = "0", l.style.color = "#fff", l.style.padding = "0 20px 0 0", l.style.boxSizing = "border-box", l.style.lineHeight = `${W.defaults.height}px`, l.style.zIndex = "100", l.style.alignContent = "center", l.style.justifyContent = "space-between";
4853
- const f = document.createElement("span");
4854
- l.appendChild(f), this.dispose(() => l.removeChild(f));
4850
+ if (super(), this._subContainer = s, !u || !(u instanceof J)) return;
4851
+ const d = document.createElement("div");
4852
+ this._subContainer.appendChild(d), this.dispose(() => this._subContainer.removeChild(d)), d.style.width = "100%", d.style.position = "absolute", d.style.height = `${A.defaults.height}px`, d.style.left = "0", d.style.bottom = "0", d.style.color = "#fff", d.style.padding = "0 20px 0 0", d.style.boxSizing = "border-box", d.style.lineHeight = `${A.defaults.height}px`, d.style.zIndex = "100", d.style.alignContent = "center", d.style.justifyContent = "space-between";
4855
4853
  const v = document.createElement("span");
4856
- f.appendChild(v), this.dispose(() => f.removeChild(v));
4857
- const d = document.createElement("span");
4858
- f.appendChild(d), d.addEventListener("dblclick", function() {
4859
- let c = d.innerHTML;
4860
- c.startsWith("鼠标位置") && (c = c.slice(5)), go(c);
4861
- }), d.style.cursor = "pointer", this.dispose(() => f.removeChild(d));
4854
+ d.appendChild(v), this.dispose(() => d.removeChild(v));
4855
+ const f = document.createElement("span");
4856
+ v.appendChild(f), this.dispose(() => v.removeChild(f));
4857
+ const a = document.createElement("span");
4858
+ v.appendChild(a), a.addEventListener("dblclick", function() {
4859
+ let c = a.innerHTML;
4860
+ c.startsWith("鼠标位置") && (c = c.slice(5)), fo(c);
4861
+ }), a.style.cursor = "pointer", this.dispose(() => v.removeChild(a));
4862
4862
  const p = document.createElement("span");
4863
- l.appendChild(p), this.dispose(() => l.removeChild(p));
4863
+ d.appendChild(p), this.dispose(() => d.removeChild(p));
4864
4864
  {
4865
4865
  const c = () => {
4866
- l.style.height = (e.height ?? W.defaults.height) + "px", l.style.lineHeight = (e.height ?? W.defaults.height) + "px";
4866
+ d.style.height = (e.height ?? A.defaults.height) + "px", d.style.lineHeight = (e.height ?? A.defaults.height) + "px";
4867
4867
  };
4868
4868
  this.dispose(e.heightChanged.disposableOn(c)), c();
4869
4869
  }
4870
4870
  {
4871
4871
  const c = () => {
4872
- l.style.fontSize = (e.fontSize ?? W.defaults.fontSize) + "px";
4872
+ d.style.fontSize = (e.fontSize ?? A.defaults.fontSize) + "px";
4873
4873
  };
4874
4874
  this.dispose(e.fontSizeChanged.disposableOn(c)), c();
4875
4875
  }
4876
4876
  {
4877
4877
  const c = () => {
4878
- e.bgColor ? l.style.background = `rgba(${e.bgColor[0] * 255},${e.bgColor[1] * 255},${e.bgColor[2] * 255},${e.bgColor[3]})` : l.style.background = `rgba(${W.defaults.bgColor[0]},${W.defaults.bgColor[1]},${W.defaults.bgColor[2]},${W.defaults.bgColor[3]})`;
4878
+ e.bgColor ? d.style.background = `rgba(${e.bgColor[0] * 255},${e.bgColor[1] * 255},${e.bgColor[2] * 255},${e.bgColor[3]})` : d.style.background = `rgba(${A.defaults.bgColor[0]},${A.defaults.bgColor[1]},${A.defaults.bgColor[2]},${A.defaults.bgColor[3]})`;
4879
4879
  };
4880
4880
  this.dispose(e.bgColorChanged.disposableOn(c)), c();
4881
4881
  }
@@ -4887,17 +4887,17 @@ const ce = class ce extends J {
4887
4887
  {
4888
4888
  const c = () => {
4889
4889
  let y = "", S = "";
4890
- y += `帧率:${u.getFPS().toFixed(0)}FPS`, v.innerText = y;
4890
+ y += `帧率:${u.getFPS().toFixed(0)}FPS`, f.innerText = y;
4891
4891
  const C = t.getCurrentCameraInfo();
4892
- y += ` 经度: ${C.position[0].toFixed(5)}° 纬度: ${C.position[1].toFixed(5)}° 高度: ${C.position[2].toFixed(2)}米 偏航角: ${C.rotation[0].toFixed(2)}° 俯仰角: ${C.rotation[1].toFixed(2)}° 翻滚角:${C.rotation[2].toFixed(2)}° `, v.innerText = y, t.pick().then((k) => {
4892
+ y += ` 经度: ${C.position[0].toFixed(5)}° 纬度: ${C.position[1].toFixed(5)}° 高度: ${C.position[2].toFixed(2)}米 偏航角: ${C.rotation[0].toFixed(2)}° 俯仰角: ${C.rotation[1].toFixed(2)}° 翻滚角:${C.rotation[2].toFixed(2)}° `, f.innerText = y, t.pick().then((k) => {
4893
4893
  if (k) {
4894
4894
  const { pickResult: x } = k;
4895
4895
  if (x && x.position) {
4896
- const { position: A } = x;
4897
- S += `鼠标位置:${A[0].toFixed(5)}° ${A[1].toFixed(5)}° ${A[2].toFixed(2)}m`;
4896
+ const { position: _ } = x;
4897
+ S += `鼠标位置:${_[0].toFixed(5)}° ${_[1].toFixed(5)}° ${_[2].toFixed(2)}m`;
4898
4898
  } else
4899
4899
  S += "暂时无法获取鼠标位置...";
4900
- d.innerText = S;
4900
+ a.innerText = S;
4901
4901
  }
4902
4902
  }).catch((k) => {
4903
4903
  console.log(k);
@@ -4905,9 +4905,9 @@ const ce = class ce extends J {
4905
4905
  };
4906
4906
  let g;
4907
4907
  const w = async () => {
4908
- c(), e.show ? (l.style.display = "flex", g = setInterval(() => {
4908
+ c(), e.show ? (d.style.display = "flex", g = setInterval(() => {
4909
4909
  c();
4910
- }, 1e3)) : (l.style.display = "none", clearInterval(g));
4910
+ }, 1e3)) : (d.style.display = "none", clearInterval(g));
4911
4911
  };
4912
4912
  this.dispose(e.showChanged.disposableOn(w)), w(), this.dispose(() => clearInterval(g));
4913
4913
  }
@@ -4915,8 +4915,8 @@ const ce = class ce extends J {
4915
4915
  };
4916
4916
  }
4917
4917
  };
4918
- h(ce, "type", ce.register("ESUeViewer", W.type, ce));
4919
- let jr = ce;
4918
+ h(ce, "type", ce.register("ESUeViewer", A.type, ce));
4919
+ let Or = ce;
4920
4920
  const ue = class ue extends I {
4921
4921
  constructor(e, t) {
4922
4922
  if (super(e, t), !t.viewer) {
@@ -4925,12 +4925,12 @@ const ue = class ue extends I {
4925
4925
  }
4926
4926
  }
4927
4927
  };
4928
- h(ue, "type", ue.register("ESUeViewer", Mn.type, ue));
4929
- let ti = ue;
4928
+ h(ue, "type", ue.register("ESUeViewer", $n.type, ue));
4929
+ let jr = ue;
4930
4930
  const he = class he extends nt {
4931
4931
  constructor(t, r) {
4932
4932
  super(t, r);
4933
- h(this, "_es3DTileset", this.dv(new oi(`${this.sceneObject.id}_ES3DTileset`)));
4933
+ h(this, "_es3DTileset", this.dv(new si(`${this.sceneObject.id}_ES3DTileset`)));
4934
4934
  if (!r.viewer) {
4935
4935
  console.warn("viewer is undefined!");
4936
4936
  return;
@@ -4986,7 +4986,7 @@ const he = class he extends nt {
4986
4986
  }
4987
4987
  };
4988
4988
  h(he, "type", he.register("ESUeViewer", Wn.type, he));
4989
- let ei = he;
4989
+ let ti = he;
4990
4990
  const pe = class pe extends nt {
4991
4991
  constructor(e, t) {
4992
4992
  if (super(e, t), !t.viewer) {
@@ -4995,9 +4995,9 @@ const pe = class pe extends nt {
4995
4995
  }
4996
4996
  }
4997
4997
  };
4998
- h(pe, "type", pe.register("ESUeViewer", Un.type, pe));
4999
- let ri = pe;
5000
- const fe = class fe extends M {
4998
+ h(pe, "type", pe.register("ESUeViewer", _n.type, pe));
4999
+ let ei = pe;
5000
+ const ve = class ve extends W {
5001
5001
  constructor(e, t) {
5002
5002
  super(e, t);
5003
5003
  const r = t.viewer;
@@ -5023,9 +5023,9 @@ const fe = class fe extends M {
5023
5023
  this.dispose(n.disposableOn(i)), this.dispose(e.createdEvent.disposableOn(i));
5024
5024
  }
5025
5025
  };
5026
- h(fe, "type", fe.register("ESUeViewer", me.type, fe));
5027
- let ii = fe;
5028
- const ve = class ve extends I {
5026
+ h(ve, "type", ve.register("ESUeViewer", me.type, ve));
5027
+ let ri = ve;
5028
+ const fe = class fe extends I {
5029
5029
  constructor(e, t) {
5030
5030
  if (super(e, t), !t.viewer) {
5031
5031
  console.warn("viewer is undefined!");
@@ -5033,221 +5033,151 @@ const ve = class ve extends I {
5033
5033
  }
5034
5034
  }
5035
5035
  };
5036
- h(ve, "type", ve.register("ESUeViewer", Nn.type, ve));
5037
- let ni = ve, Le;
5038
- try {
5039
- const a = "@u-gis/ue", e = "3.0.7-beta.1", t = "2025-05-21T10:39:13.000Z", r = "北京西部世界科技有限公司", i = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", n = "117e212fa2bb7ff08f74ad36621c968d0c66a151", o = ((Date.now() - 1747823953e3) / 36e5).toFixed(1), u = `%c🌏 ${a}%c ${e}.${n.slice(0, 8)}.${t} (距今${o}个小时)
5040
- %c${i ? i + `
5041
- ` : ""}当前网站正在使用${a},此软件版权归${r}所有
5042
- `;
5043
- Le = Object.freeze({
5044
- // @ts-ignore
5045
- get owner() {
5046
- return "北京西部世界科技有限公司";
5047
- },
5048
- // @ts-ignore
5049
- get ownerlink() {
5050
- },
5051
- // @ts-ignore
5052
- get gituri() {
5053
- return GITURI_ && GITURI_.replace("${commitId}", "117e212fa2bb7ff08f74ad36621c968d0c66a151");
5054
- },
5055
- // @ts-ignore
5056
- get info() {
5057
- return u;
5058
- },
5059
- // @ts-ignore
5060
- get date() {
5061
- return "2025-05-21T10:39:13.000Z";
5062
- },
5063
- // @ts-ignore
5064
- get author() {
5065
- return "suplyang";
5066
- },
5067
- // @ts-ignore
5068
- get version() {
5069
- return "3.0.7-beta.1";
5070
- },
5071
- // @ts-ignore
5072
- get name() {
5073
- return "@u-gis/ue";
5074
- },
5075
- // @ts-ignore
5076
- get commitId() {
5077
- return "117e212fa2bb7ff08f74ad36621c968d0c66a151";
5078
- },
5079
- print(l = !1) {
5080
- !l && window._xe2_no_copy_print || console.info(
5081
- this.info,
5082
- `
5083
- font-size: 18px;
5084
- font-weight: 1000;
5085
- line-height: 1;
5086
- color: rgb(0, 120, 215);
5087
- padding-top: 20px;
5088
- padding-bottom: 10px;
5089
- `,
5090
- `
5091
- font-size: 10px;
5092
- font-weight: 1000;
5093
- color: rgb(0, 120, 215);
5094
- `,
5095
- `
5096
- font-size: 10px;
5097
- line-height: 1.5;
5098
- color: rgb(0, 120, 215);
5099
- padding-bottom: 2px;
5100
- padding-left: 35px;
5101
- `
5102
- );
5103
- }
5104
- }), window.g_XE3CopyRights = window.g_XE3CopyRights || {}, window.g_XE3CopyRights[a] = Le, window.g_earthsdk_copyright_print = window.g_earthsdk_copyright_print ?? !0, window.g_earthsdk_copyright_print && Le.print();
5105
- } catch {
5106
- }
5036
+ h(fe, "type", fe.register("ESUeViewer", Un.type, fe));
5037
+ let ii = fe;
5107
5038
  export {
5108
- H as ESUeViewer,
5109
- ss as HighlightFeatureAndFlyToCallFunc,
5110
- ns as HighlightFeatureCallFunc,
5111
- as as SetLayerColorCallFunc,
5112
- os as SetLayerVisibleCallFunc,
5039
+ J as ESUeViewer,
5040
+ ns as HighlightFeatureAndFlyToCallFunc,
5041
+ is as HighlightFeatureCallFunc,
5042
+ os as SetLayerColorCallFunc,
5043
+ ss as SetLayerVisibleCallFunc,
5113
5044
  Re as UeCloudViewerBase,
5114
- De as UeES3DTileset,
5115
- Ze as UeESAlarm,
5045
+ Le as UeES3DTileset,
5046
+ Xe as UeESAlarm,
5116
5047
  Qe as UeESApertureEffect,
5117
5048
  Ye as UeESAreaMeasurement,
5118
5049
  qe as UeESBlastParticleSystem,
5119
- Ve as UeESBoxClipping,
5120
- Oe as UeESCameraView,
5121
- je as UeESCameraVisibleRange,
5122
- tr as UeESCar,
5123
- er as UeESClassification,
5124
- rr as UeESClippingPlane,
5125
- ir as UeESDataMesh,
5126
- nr as UeESDatasmithRuntimeModel,
5127
- sr as UeESDirectionMeasurement,
5128
- or as UeESDistanceMeasurement,
5129
- ar as UeESDynamicWater,
5130
- dr as UeESEntityCluster,
5050
+ Ze as UeESBoxClipping,
5051
+ Ve as UeESCameraView,
5052
+ Oe as UeESCameraVisibleRange,
5053
+ je as UeESCar,
5054
+ tr as UeESClassification,
5055
+ er as UeESClippingPlane,
5056
+ rr as UeESDataMesh,
5057
+ ir as UeESDatasmithRuntimeModel,
5058
+ nr as UeESDirectionMeasurement,
5059
+ sr as UeESDistanceMeasurement,
5060
+ or as UeESDynamicWater,
5061
+ ar as UeESEntityCluster,
5131
5062
  lr as UeESExcavate,
5132
- cr as UeESFireParticleSystem,
5133
- ur as UeESForestTileset,
5134
- ti as UeESGaussianSplatting,
5135
- hr as UeESGeoDiv,
5136
- ii as UeESGeoExtrudedPolygon,
5137
- pr as UeESGeoJson,
5063
+ dr as UeESFireParticleSystem,
5064
+ cr as UeESForestTileset,
5065
+ jr as UeESGaussianSplatting,
5066
+ ur as UeESGeoDiv,
5067
+ ri as UeESGeoExtrudedPolygon,
5068
+ hr as UeESGeoJson,
5138
5069
  Be as UeESGeoLineString,
5139
- M as UeESGeoPolygon,
5140
- fr as UeESGeoRectangle,
5141
- $ as UeESGeoVector,
5070
+ W as UeESGeoPolygon,
5071
+ pr as UeESGeoRectangle,
5072
+ M as UeESGeoVector,
5142
5073
  vr as UeESGeoWater,
5143
- gr as UeESGltfModel,
5144
- wr as UeESHeightMeasurement,
5145
- yr as UeESHuman,
5074
+ fr as UeESGltfModel,
5075
+ gr as UeESHeightMeasurement,
5076
+ wr as UeESHuman,
5146
5077
  qr as UeESHumanPoi,
5147
- mr as UeESImageLabel,
5148
- Ke as UeESImageryLayer,
5078
+ yr as UeESImageLabel,
5079
+ Ge as UeESImageryLayer,
5149
5080
  N as UeESLabel,
5150
- Cr as UeESLevelRuntimeModel,
5151
- Fr as UeESLocalCircle,
5081
+ mr as UeESLevelRuntimeModel,
5082
+ Cr as UeESLocalCircle,
5152
5083
  Pe as UeESLocalPolygon,
5153
- Ir as UeESLocalPolygonZ,
5154
- Er as UeESLocalRectangle,
5155
- Sr as UeESLocalSkyBox,
5156
- yi as UeESLocalVector,
5157
- Ne as UeESLocalVector2D,
5158
- Tr as UeESLocationMeasurement,
5159
- ri as UeESMsTileset,
5160
- Vr as UeESNavigator,
5084
+ Fr as UeESLocalPolygonZ,
5085
+ Ir as UeESLocalRectangle,
5086
+ Er as UeESLocalSkyBox,
5087
+ wi as UeESLocalVector,
5088
+ Ue as UeESLocalVector2D,
5089
+ Sr as UeESLocationMeasurement,
5090
+ ei as UeESMsTileset,
5091
+ Zr as UeESNavigator,
5161
5092
  I as UeESObjectWithLocation,
5162
- Or as UeESPath,
5163
- xr as UeESPipeFence,
5164
- Rr as UeESPipeline,
5165
- kr as UeESPipeserTileset,
5166
- Lr as UeESPit,
5167
- Dr as UeESPoi2D,
5093
+ Vr as UeESPath,
5094
+ Tr as UeESPipeFence,
5095
+ xr as UeESPipeline,
5096
+ Rr as UeESPipeserTileset,
5097
+ kr as UeESPit,
5098
+ Lr as UeESPoi2D,
5168
5099
  Pr as UeESPoi3D,
5169
5100
  Br as UeESPoiTileset,
5170
- $r as UeESPolygonFence,
5171
- _r as UeESPolygonFlattenedPlane,
5172
- Mr as UeESPolygonWithHole,
5173
- ei as UeESRtsFeatureEditing,
5101
+ Dr as UeESPolygonFence,
5102
+ Mr as UeESPolygonFlattenedPlane,
5103
+ $r as UeESPolygonWithHole,
5104
+ ti as UeESRtsFeatureEditing,
5174
5105
  Wr as UeESRtsTileset,
5175
5106
  nt as UeESSceneObject,
5176
5107
  Ar as UeESSeparateFoliage,
5177
- ni as UeESStaticMesh,
5178
- Ur as UeESSubmergingAnalysis,
5179
- Nr as UeESSunshineAnalysis,
5180
- zr as UeESSurfaceAreaMeasurement,
5181
- Xe as UeESTerrainLayer,
5182
- br as UeESTextLabel,
5108
+ ii as UeESStaticMesh,
5109
+ _r as UeESSubmergingAnalysis,
5110
+ Ur as UeESSunshineAnalysis,
5111
+ Nr as UeESSurfaceAreaMeasurement,
5112
+ Ke as UeESTerrainLayer,
5113
+ zr as UeESTextLabel,
5183
5114
  Hr as UeESUEWidget,
5184
- Gr as UeESUnrealActor,
5185
- Kr as UeESVideoFusion,
5186
- Xr as UeESViewShed,
5187
- jr as UeESViewerStatusBar,
5188
- Zr as UeESVisibilityAnalysis,
5189
- B as UeESVisualObject,
5115
+ br as UeESUnrealActor,
5116
+ Gr as UeESVideoFusion,
5117
+ Kr as UeESViewShed,
5118
+ Or as UeESViewerStatusBar,
5119
+ Xr as UeESVisibilityAnalysis,
5120
+ D as UeESVisualObject,
5190
5121
  Qr as UeESVolumeMeasurement,
5191
5122
  Yr as UeESWidget,
5192
- Io as UePickedInfo,
5193
- _s as bind3DTilesetByTagCallFunc,
5194
- Ls as bindActorByTagCallFunc,
5123
+ Fo as UePickedInfo,
5124
+ Ms as bind3DTilesetByTagCallFunc,
5125
+ ks as bindActorByTagCallFunc,
5195
5126
  As as bindImageryByTagCallFunc,
5196
5127
  we as calcFlyToParamCallFunc,
5197
- wi as callFunctionCallFunc,
5198
- ws as captureCallFunc,
5199
- b as changeNavigationModeCallFunc,
5200
- Le as copyright,
5201
- $s as createActorByClassCallFunc,
5128
+ gi as callFunctionCallFunc,
5129
+ gs as captureCallFunc,
5130
+ H as changeNavigationModeCallFunc,
5131
+ Ds as createActorByClassCallFunc,
5202
5132
  vi as destroyCallFunc,
5203
5133
  xe as flyInCallFunc,
5204
- jn as flyInDefaultCameraCallFunc,
5134
+ On as flyInDefaultCameraCallFunc,
5205
5135
  ge as flyToCallFunc,
5206
- is as generateMemReportCallFunc,
5207
- Fs as getAllSocketNamesByActorTagCallFunc,
5208
- Es as getBoundSphereCallFunc,
5209
- Ss as getBoundSphereWithChildrenCallFunc,
5210
- bs as getCameraRelativeHeightCallFunc,
5211
- xs as getFillMaterialParamInfoCallFunc,
5212
- Rs as getGlobalPropertyCallFunc,
5136
+ rs as generateMemReportCallFunc,
5137
+ Cs as getAllSocketNamesByActorTagCallFunc,
5138
+ Is as getBoundSphereCallFunc,
5139
+ Es as getBoundSphereWithChildrenCallFunc,
5140
+ zs as getCameraRelativeHeightCallFunc,
5141
+ Ts as getFillMaterialParamInfoCallFunc,
5142
+ xs as getGlobalPropertyCallFunc,
5213
5143
  vs as getHeightByLonLatCallFunc,
5214
- gs as getHeightByLonLatsCallFunc,
5215
- zs as getIdByComponentNameAndHitItemCallFunc,
5216
- ms as getLonLatAltToScreenPositionCallFunc,
5217
- ks as getObjectByInfoCallFunc,
5218
- Ks as getStatusCallFunc,
5219
- Ts as getStrokeMaterialParamInfoCallFunc,
5144
+ fs as getHeightByLonLatsCallFunc,
5145
+ Ns as getIdByComponentNameAndHitItemCallFunc,
5146
+ ys as getLonLatAltToScreenPositionCallFunc,
5147
+ Rs as getObjectByInfoCallFunc,
5148
+ Gs as getStatusCallFunc,
5149
+ Ss as getStrokeMaterialParamInfoCallFunc,
5220
5150
  Ys as getTilesetMaterialIDListCallFunc,
5221
- Is as getVersionCallFunc,
5151
+ Fs as getVersionCallFunc,
5222
5152
  Js as highlightActorByTagCallFunc,
5223
- rs as mountPakFiles,
5153
+ es as mountPakFiles,
5224
5154
  Qs as moveObjectsCallFunc,
5225
- ys as partialCaptureCallFunc,
5226
- ps as pickCallFunc,
5227
- fs as pickPositionCallFunc,
5228
- hs as quitCallFunc,
5229
- On as refreshTilesetCallFunc,
5230
- gi as resetWithCurrentCameraCallFunc,
5231
- Ds as restoreOriginalSceneCallFunc,
5155
+ ws as partialCaptureCallFunc,
5156
+ hs as pickCallFunc,
5157
+ ps as pickPositionCallFunc,
5158
+ us as quitCallFunc,
5159
+ Vn as refreshTilesetCallFunc,
5160
+ fi as resetWithCurrentCameraCallFunc,
5161
+ Ls as restoreOriginalSceneCallFunc,
5232
5162
  Hs as saveStringToFileCallFunc,
5233
- Gs as sendCustomMessageCallFunc,
5234
- us as setGlobalPropertyCallFunc,
5235
- ds as setNodePositionCallFunc,
5163
+ bs as sendCustomMessageCallFunc,
5164
+ cs as setGlobalPropertyCallFunc,
5165
+ as as setNodePositionCallFunc,
5236
5166
  ls as setNodeRotationCallFunc,
5237
- cs as setNodeScaleCallFunc,
5238
- Ue as smoothMoveCallFunc,
5167
+ ds as setNodeScaleCallFunc,
5168
+ _e as smoothMoveCallFunc,
5239
5169
  We as smoothMoveOnGroundCallFunc,
5240
- Me as smoothMoveWithRotationCallFunc,
5170
+ $e as smoothMoveWithRotationCallFunc,
5241
5171
  Ae as smoothMoveWithRotationOnGroundCallFunc,
5242
- Xs as startEditingCallFunc,
5243
- ts as startVoiceCallFunc,
5244
- Zs as stopEditingCallFunc,
5245
- es as stopVoiceCallFunc,
5246
- Cs as uePositionToLonLatAltCallFunc,
5172
+ Ks as startEditingCallFunc,
5173
+ jn as startVoiceCallFunc,
5174
+ Xs as stopEditingCallFunc,
5175
+ ts as stopVoiceCallFunc,
5176
+ ms as uePositionToLonLatAltCallFunc,
5247
5177
  Ws as unBind3DTilesetByIdCallFunc,
5248
- Ms as unBind3DTilesetByTagCallFunc,
5178
+ $s as unBind3DTilesetByTagCallFunc,
5249
5179
  Ps as unBindActorByIDCallFunc,
5250
5180
  Bs as unBindActorByTagCallFunc,
5251
- Ns as unBindImageryByIdCallFunc,
5252
- Us as unBindImageryByTagCallFunc
5181
+ Us as unBindImageryByIdCallFunc,
5182
+ _s as unBindImageryByTagCallFunc
5253
5183
  };