earthsdk3-ue 3.6.0-beta.111 → 3.6.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,11 @@
1
- var Dr = Object.defineProperty;
2
- var Br = (l, e, t) => e in l ? Dr(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t;
3
- var v = (l, e, t) => Br(l, typeof e != "symbol" ? e + "" : e, t);
4
- import { ESViewer as Ee, reactArrayWithUndefined as hr, ESSceneObject as E, ESJPickedResult as Ae, Destroyable as m, HasOwner as _r, createGuid as _, Event as S, createAnimateFrame as He, createInterval as Se, react as W, createNextAnimateFrameEvent as P, ViewerCustomInteraction as pr, ObjResettingWithEvent as L, createProcessingFromAsyncFunc as Te, sleep as Mr, getGeoBoundingSphereFromPositions as $r, extendClassProps as Wr, EngineObject as G, ES3DTileset as me, ESImageryLayer as U, reactJson as be, ESTerrainLayer as Ar, ESAlarm as Ur, ESApertureEffect as Nr, ESGeoPolygon as zr, ESAreaMeasurement as O, ESBlastParticleSystem as Hr, ESBoxClipping as br, ESCameraView as Jr, ESCameraVisibleRange as Gr, ESCar as Kr, ESClassification as lt, ESClippingPlane as Xr, ESDataMesh as H, ESDatasmithRuntimeModel as Yr, ESDirectionMeasurement as Zr, ESDistanceMeasurement as Me, ESLocalPolygon as qr, ESDynamicWater as Qr, ESEntityCluster as Vr, ESExcavate as Or, ESFireParticleSystem as jr, ESForestTileset as N, ESGeoDiv as Ce, ESTextLabel as vr, bind as k, ESCustomDiv as Je, ESImageLabel as fr, track as F, PosFloatDiv as tn, ESGeoJson as en, ESGeoLineString as rn, ESGeoRectangle as nn, ESGeoWater as sn, rpToap as Fe, ESGltfModel as on, ESHeightMeasurement as an, ESHuman as dn, ESLevelRuntimeModel as ln, ESLocalCircle as cn, ESLocalPolygonZ as un, ESLocalRectangle as hn, ESLocalSkyBox as pn, ESLocationMeasurement as vn, ESPipeFence as fn, ESPipeline as gn, ESPipeserTileset as wn, ESPit as yn, ESPoi2D as mn, ESPoi3D as Cn, ESPoiTileset as Fn, ESPolygonFence as In, ESPolygonFlattenedPlane as En, ESPolygonWithHole as Sn, ESRtsTileset as Tn, ESSeparateFoliage as xn, addTreesCallFunc as Rn, removeAllTreesCallFunc as Ln, updateTreeParamsCallFunc as Pn, cutDownTreesCallFunc as kn, growthSimulationCallFunc as Dn, ESSubmergingAnalysis as Bn, ESSunshineAnalysis as _n, ESSurfaceAreaMeasurement as Mn, ESUEWidget as $n, ESUnrealActor as $e, ESVideoFusion as Wn, ESViewShed as An, ESVisibilityAnalysis as Un, ESVolumeMeasurement as Nn, ESWidget as zn, ESHumanPoi as Hn, ESNavigator as j, ESPath as bn, ESViewerStatusBar as A, ESGaussianSplatting as Jn, ESRtsFeatureEditing as Gn, ESMsTileset as Kn, ESGeoExtrudedPolygon as ye, ESStaticMesh as Xn, ESSkylineAnalysis as Yn } from "earthsdk3";
5
- import { Logger as gr, Config as wr, TextParameters as Zn, Flags as ot, NumericParameters as yr, PixelStreaming as mr } from "@epicgames-ps/lib-pixelstreamingfrontend-ue5.2";
6
- import qn from "html2canvas";
7
- const Qn = {
1
+ var Br = Object.defineProperty;
2
+ var _r = (d, e, t) => e in d ? Br(d, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[e] = t;
3
+ var v = (d, e, t) => _r(d, typeof e != "symbol" ? e + "" : e, t);
4
+ import { ESViewer as Ee, reactArrayWithUndefined as pr, ESSceneObject as I, ESJPickedResult as Ae, Destroyable as m, HasOwner as Mr, createGuid as M, Event as S, createAnimateFrame as be, createInterval as Se, react as W, createNextAnimateFrameEvent as L, ViewerCustomInteraction as vr, ObjResettingWithEvent as P, createProcessingFromAsyncFunc as Te, sleep as $r, getGeoBoundingSphereFromPositions as Wr, extendClassProps as Ar, EngineObject as G, ES3DTileset as me, ESImageryLayer as U, reactJson as He, ESTerrainLayer as Ur, ESAlarm as Nr, ESApertureEffect as zr, ESGeoPolygon as br, ESAreaMeasurement as j, ESBlastParticleSystem as Hr, ESBoxClipping as Jr, ESCameraView as Gr, ESCameraVisibleRange as Kr, ESCar as Xr, ESClassification as ct, ESClippingPlane as Yr, ESDataMesh as b, ESDatasmithRuntimeModel as Zr, ESDirectionMeasurement as qr, ESDistanceMeasurement as Me, ESLocalPolygon as Qr, ESDynamicWater as Vr, ESEntityCluster as Or, ESExcavate as jr, ESFireParticleSystem as tn, ESForestTileset as N, ESGeoDiv as Ce, ESTextLabel as gr, bind as k, ESCustomDiv as Je, ESImageLabel as fr, track as F, PosFloatDiv as en, ESGeoJson as rn, ESGeoLineString as nn, ESGeoRectangle as sn, ESGeoWater as on, rpToap as Fe, ESGltfModel as an, ESHeightMeasurement as ln, ESHuman as dn, ESLevelRuntimeModel as cn, ESLocalCircle as un, ESLocalPolygonZ as hn, ESLocalRectangle as pn, ESLocalSkyBox as vn, ESLocationMeasurement as gn, ESPipeFence as fn, ESPipeline as wn, ESPipeserTileset as yn, ESPit as mn, ESPoi2D as Cn, ESPoi3D as Fn, ESPoiTileset as In, ESPolygonFence as En, ESPolygonFlattenedPlane as Sn, ESPolygonWithHole as Tn, ESRtsTileset as xn, ESSeparateFoliage as Rn, addTreesCallFunc as Pn, removeAllTreesCallFunc as Ln, updateTreeParamsCallFunc as kn, cutDownTreesCallFunc as Dn, growthSimulationCallFunc as Bn, ESSubmergingAnalysis as _n, ESSunshineAnalysis as Mn, ESSurfaceAreaMeasurement as $n, ESUEWidget as Wn, ESUnrealActor as $e, ESVideoFusion as An, ESViewShed as Un, ESVisibilityAnalysis as Nn, ESVolumeMeasurement as zn, ESWidget as bn, ESHumanPoi as Hn, ESNavigator as tt, ESPath as Jn, ESViewerStatusBar as A, ESGaussianSplatting as Gn, ESRtsFeatureEditing as Kn, ESMsTileset as Xn, ESGeoExtrudedPolygon as ye, ESStaticMesh as Yn, ESSkylineAnalysis as Zn } from "earthsdk3";
5
+ import { Logger as wr, Config as yr, TextParameters as qn, Flags as at, NumericParameters as mr, PixelStreaming as Cr } from "@epicgames-ps/lib-pixelstreamingfrontend-ue5.2";
6
+ import Qn from "html2canvas";
7
+ var hr;
8
+ const Vn = {
8
9
  ...Ee.defaults,
9
10
  geoReferenceOrigin: void 0,
10
11
  keepWorldOriginNearCamera: !1,
@@ -15,17 +16,17 @@ const Qn = {
15
16
  brightness: 0,
16
17
  emissiveIntensity: 1,
17
18
  statusUpdateInterval: 0.5,
18
- baseUrl: window.location.href ?? "",
19
+ baseUrl: ((hr = globalThis == null ? void 0 : globalThis.location) == null ? void 0 : hr.href) ?? "",
19
20
  screenPercentage: -1,
20
21
  antiAliasingMethod: "default"
21
- }, Cr = () => ({
22
+ }, Fr = () => ({
22
23
  ...Ee.createCommonProps(),
23
24
  //语音模式
24
25
  apiKey: "",
25
26
  apiUrl: "",
26
27
  secretKey: "",
27
28
  speechVoiceMode: "",
28
- geoReferenceOrigin: hr(void 0),
29
+ geoReferenceOrigin: pr(void 0),
29
30
  //地理参考原点
30
31
  keepWorldOriginNearCamera: void 0,
31
32
  //地理参考的保持世界原点开关
@@ -50,19 +51,19 @@ const Qn = {
50
51
  //抗锯齿方法
51
52
  });
52
53
  function xe() {
53
- const l = Cr(), e = [];
54
- return Object.keys(l).forEach((t) => {
54
+ const d = Fr(), e = [];
55
+ return Object.keys(d).forEach((t) => {
55
56
  e.push(t);
56
57
  }), e;
57
58
  }
58
- function Ge(l) {
59
+ function Ge(d) {
59
60
  const { defaults: e } = J, t = xe(), i = {};
60
61
  return t.forEach((r) => {
61
- i[r] = l[r] ?? e[r];
62
+ i[r] = d[r] ?? e[r];
62
63
  }), i;
63
64
  }
64
- const we = async (l, e, t, i, r, n = "default") => {
65
- const s = await l.callUeFunc({
65
+ const we = async (d, e, t, i, r, n = "default") => {
66
+ const s = await d.callUeFunc({
66
67
  f: "flyTo",
67
68
  p: { id: e, duration: t, flyToParam: i, position: r, flyMode: n }
68
69
  });
@@ -71,11 +72,11 @@ const we = async (l, e, t, i, r, n = "default") => {
71
72
  return;
72
73
  }
73
74
  return s.re;
74
- }, Fr = async (l, e) => {
75
- const t = await l.callUeFunc({ f: "destroy", p: { id: e } });
75
+ }, Ir = async (d, e) => {
76
+ const t = await d.callUeFunc({ f: "destroy", p: { id: e } });
76
77
  return t.error && console.error(t.error), t;
77
- }, dt = (l, e) => {
78
- l.callUeFunc({
78
+ }, dt = (d, e) => {
79
+ d.callUeFunc({
79
80
  f: "calcFlyToParam",
80
81
  p: { id: e }
81
82
  }).then((t) => {
@@ -83,8 +84,8 @@ const we = async (l, e, t, i, r, n = "default") => {
83
84
  }).catch((t) => {
84
85
  console.error("calcFlyToParam:", t);
85
86
  });
86
- }, Vn = (l, e) => {
87
- l.callUeFunc({
87
+ }, On = (d, e) => {
88
+ d.callUeFunc({
88
89
  f: "refreshTileset",
89
90
  p: { id: e }
90
91
  }).then((t) => {
@@ -92,8 +93,8 @@ const we = async (l, e, t, i, r, n = "default") => {
92
93
  }).catch((t) => {
93
94
  console.error("refreshTileset:", t);
94
95
  });
95
- }, Re = async (l, e, t, i, r, n = "default") => {
96
- const s = await l.callUeFunc({
96
+ }, Re = async (d, e, t, i, r, n = "default") => {
97
+ const s = await d.callUeFunc({
97
98
  f: "flyIn",
98
99
  p: { id: e, position: t, rotation: i, duration: r, flyMode: n }
99
100
  });
@@ -102,12 +103,12 @@ const we = async (l, e, t, i, r, n = "default") => {
102
103
  return;
103
104
  }
104
105
  return s.re;
105
- }, On = async (l, e) => {
106
- if (!l) {
106
+ }, jn = async (d, e) => {
107
+ if (!d) {
107
108
  console.warn("DefaultCameraFlyIn: viewer is undefined");
108
109
  return;
109
110
  }
110
- const t = await l.callUeFunc({
111
+ const t = await d.callUeFunc({
111
112
  f: "DefaultCameraFlyIn",
112
113
  p: { Duration: e ?? 1 }
113
114
  });
@@ -116,12 +117,12 @@ const we = async (l, e, t, i, r, n = "default") => {
116
117
  return;
117
118
  }
118
119
  return t;
119
- }, jn = async (l) => {
120
- if (!l) {
120
+ }, ts = async (d) => {
121
+ if (!d) {
121
122
  console.warn("StartVoice:viewer is undefined");
122
123
  return;
123
124
  }
124
- const e = await l.callUeFunc({
125
+ const e = await d.callUeFunc({
125
126
  f: "StartVoice",
126
127
  p: {}
127
128
  });
@@ -130,12 +131,12 @@ const we = async (l, e, t, i, r, n = "default") => {
130
131
  return;
131
132
  }
132
133
  return e;
133
- }, ts = async (l) => {
134
- if (!l) {
134
+ }, es = async (d) => {
135
+ if (!d) {
135
136
  console.warn("StopVoice:viewer is undefined");
136
137
  return;
137
138
  }
138
- const e = await l.callUeFunc({
139
+ const e = await d.callUeFunc({
139
140
  f: "StopVoice",
140
141
  p: {}
141
142
  });
@@ -144,12 +145,12 @@ const we = async (l, e, t, i, r, n = "default") => {
144
145
  return;
145
146
  }
146
147
  return e;
147
- }, es = async (l, e) => {
148
- if (!l) {
148
+ }, is = async (d, e) => {
149
+ if (!d) {
149
150
  console.warn("mountPakFiles:viewer is undefined");
150
151
  return;
151
152
  }
152
- const t = await l.callUeFunc({
153
+ const t = await d.callUeFunc({
153
154
  f: "MountPakFiles",
154
155
  p: { json: e }
155
156
  });
@@ -158,12 +159,12 @@ const we = async (l, e, t, i, r, n = "default") => {
158
159
  return;
159
160
  }
160
161
  return t;
161
- }, is = async (l) => {
162
- if (!l) {
162
+ }, rs = async (d) => {
163
+ if (!d) {
163
164
  console.warn("generateMemReport:viewer is undefined");
164
165
  return;
165
166
  }
166
- const e = await l.callUeFunc({
167
+ const e = await d.callUeFunc({
167
168
  f: "GenerateMemReport",
168
169
  p: {}
169
170
  });
@@ -172,14 +173,14 @@ const we = async (l, e, t, i, r, n = "default") => {
172
173
  return;
173
174
  }
174
175
  return e;
175
- }, Ir = async (l, e) => {
176
- const t = await l.callUeFunc({
176
+ }, Er = async (d, e) => {
177
+ const t = await d.callUeFunc({
177
178
  f: "resetWithCurrentCamera",
178
179
  p: { id: e }
179
180
  });
180
181
  return t.error && console.error("resetWithCurrentCamera:", t.error), t;
181
- }, Le = (l, e, t, i, r) => {
182
- l.callUeFunc({
182
+ }, Pe = (d, e, t, i, r) => {
183
+ d.callUeFunc({
183
184
  f: "smoothMoveWithRotation",
184
185
  p: {
185
186
  id: e,
@@ -192,8 +193,8 @@ const we = async (l, e, t, i, r, n = "default") => {
192
193
  }).catch((n) => {
193
194
  console.error("smoothMoveWithRotation:", n);
194
195
  });
195
- }, Pe = (l, e, t, i, r, n) => {
196
- l.callUeFunc({
196
+ }, Le = (d, e, t, i, r, n) => {
197
+ d.callUeFunc({
197
198
  f: "smoothMoveOnGround",
198
199
  p: { id: e, Lon: t, Lat: i, Ground: r, Time: n }
199
200
  }).then((s) => {
@@ -201,8 +202,8 @@ const we = async (l, e, t, i, r, n = "default") => {
201
202
  }).catch((s) => {
202
203
  console.error("smoothMoveOnGround:", s);
203
204
  });
204
- }, ke = (l, e, t, i, r, n, s) => {
205
- l.callUeFunc({
205
+ }, ke = (d, e, t, i, r, n, s) => {
206
+ d.callUeFunc({
206
207
  f: "smoothMoveWithRotationOnGround",
207
208
  p: {
208
209
  id: e,
@@ -217,8 +218,8 @@ const we = async (l, e, t, i, r, n = "default") => {
217
218
  }).catch((o) => {
218
219
  console.error("smoothMoveWithRotationOnGround:", o);
219
220
  });
220
- }, rs = (l, e, t) => {
221
- l.callUeFunc({
221
+ }, ns = (d, e, t) => {
222
+ d.callUeFunc({
222
223
  f: "HighlightFeature",
223
224
  p: { id: e, HlId: t }
224
225
  }).then((i) => {
@@ -226,8 +227,8 @@ const we = async (l, e, t, i, r, n = "default") => {
226
227
  }).catch((i) => {
227
228
  console.error("HighlightFeature:", i);
228
229
  });
229
- }, ns = (l, e, t, i) => {
230
- l.callUeFunc({
230
+ }, ss = (d, e, t, i) => {
231
+ d.callUeFunc({
231
232
  f: "HighlightFeatureAndFlyTo",
232
233
  p: { id: e, HlId: t, Duration: i }
233
234
  }).then((r) => {
@@ -235,8 +236,8 @@ const we = async (l, e, t, i, r, n = "default") => {
235
236
  }).catch((r) => {
236
237
  console.error("HighlightFeatureAndFlyTo:", r);
237
238
  });
238
- }, ss = (l, e, t) => {
239
- l.callUeFunc({
239
+ }, os = (d, e, t) => {
240
+ d.callUeFunc({
240
241
  f: "SetLayerVisible",
241
242
  p: { id: e, LayerJson: t }
242
243
  }).then((i) => {
@@ -244,8 +245,8 @@ const we = async (l, e, t, i, r, n = "default") => {
244
245
  }).catch((i) => {
245
246
  console.error("SetLayerVisible:", i);
246
247
  });
247
- }, os = (l, e, t) => {
248
- l.callUeFunc({
248
+ }, as = (d, e, t) => {
249
+ d.callUeFunc({
249
250
  f: "SetLayerColor",
250
251
  p: { id: e, LayerJson: t }
251
252
  }).then((i) => {
@@ -253,8 +254,8 @@ const we = async (l, e, t, i, r, n = "default") => {
253
254
  }).catch((i) => {
254
255
  console.error("SetLayerColor:", i);
255
256
  });
256
- }, De = (l, e, t, i) => {
257
- l.callUeFunc({
257
+ }, De = (d, e, t, i) => {
258
+ d.callUeFunc({
258
259
  f: "smoothMove",
259
260
  p: {
260
261
  id: e,
@@ -266,14 +267,14 @@ const we = async (l, e, t, i, r, n = "default") => {
266
267
  }).catch((r) => {
267
268
  console.error("smoothMove:", r);
268
269
  });
269
- }, Er = async (l, e, t, i) => {
270
- const r = await l.callUeFunc({
270
+ }, Sr = async (d, e, t, i) => {
271
+ const r = await d.callUeFunc({
271
272
  f: "callFunction",
272
273
  p: { id: e, fn: t, p: i }
273
274
  });
274
275
  return r.error && (console.error("callFunction:", r.error), console.error(`id: ${e} fn: ${t} param: ${i}`)), r.re ?? void 0;
275
- }, as = (l, e, t, i) => {
276
- l.callUeFunc({
276
+ }, ls = (d, e, t, i) => {
277
+ d.callUeFunc({
277
278
  f: "SetNodePosition",
278
279
  p: {
279
280
  id: e,
@@ -285,8 +286,8 @@ const we = async (l, e, t, i, r, n = "default") => {
285
286
  }).catch((r) => {
286
287
  console.error("SetNodePosition:", r);
287
288
  });
288
- }, ds = (l, e, t, i) => {
289
- l.callUeFunc({
289
+ }, ds = (d, e, t, i) => {
290
+ d.callUeFunc({
290
291
  f: "SetNodeRotation",
291
292
  p: {
292
293
  id: e,
@@ -298,8 +299,8 @@ const we = async (l, e, t, i, r, n = "default") => {
298
299
  }).catch((r) => {
299
300
  console.error("SetNodeRotation:", r);
300
301
  });
301
- }, ls = (l, e, t, i) => {
302
- l.callUeFunc({
302
+ }, cs = (d, e, t, i) => {
303
+ d.callUeFunc({
303
304
  f: "SetNodeScale",
304
305
  p: {
305
306
  id: e,
@@ -311,15 +312,15 @@ const we = async (l, e, t, i, r, n = "default") => {
311
312
  }).catch((r) => {
312
313
  console.error("SetNodeScale:", r);
313
314
  });
314
- }, b = async (l, e) => {
315
+ }, H = async (d, e) => {
315
316
  if (e.mode == "Follow") {
316
- const i = E.getSceneObject(e.objectId);
317
+ const i = I.getSceneObject(e.objectId);
317
318
  e.objectId = i ? (i.components.main ?? i).id : e.objectId;
318
319
  } else if (e.mode == "Line") {
319
- const i = E.getSceneObject(e.geoLineStringId);
320
+ const i = I.getSceneObject(e.geoLineStringId);
320
321
  e.geoLineStringId = i ? (i.components.main ?? i).id : e.geoLineStringId;
321
322
  }
322
- const t = await l.callUeFunc({
323
+ const t = await d.callUeFunc({
323
324
  f: "ChangeNavigationMode",
324
325
  p: e
325
326
  });
@@ -328,8 +329,8 @@ const we = async (l, e, t, i, r, n = "default") => {
328
329
  return;
329
330
  }
330
331
  return t;
331
- }, cs = async (l, e) => {
332
- const t = await l.callUeFunc({
332
+ }, us = async (d, e) => {
333
+ const t = await d.callUeFunc({
333
334
  f: "setGlobalProperty",
334
335
  p: e
335
336
  });
@@ -338,8 +339,8 @@ const we = async (l, e, t, i, r, n = "default") => {
338
339
  return;
339
340
  }
340
341
  return t;
341
- }, us = async (l) => {
342
- const e = await l.callUeFunc({
342
+ }, hs = async (d) => {
343
+ const e = await d.callUeFunc({
343
344
  f: "Quit",
344
345
  p: void 0
345
346
  });
@@ -348,9 +349,9 @@ const we = async (l, e, t, i, r, n = "default") => {
348
349
  return;
349
350
  }
350
351
  return e;
351
- }, hs = async (l, e, t, i) => {
352
+ }, ps = async (d, e, t, i) => {
352
353
  console.log("pickCallFunc", e, t, i);
353
- const r = await l.callUeFunc({
354
+ const r = await d.callUeFunc({
354
355
  f: "pick",
355
356
  p: { screenPosition: e, parentInfo: i }
356
357
  });
@@ -358,10 +359,10 @@ const we = async (l, e, t, i, r, n = "default") => {
358
359
  console.error("pick:", r.error == "" ? "未获取到结果" : r.error);
359
360
  return;
360
361
  }
361
- let n = r.re.id, s, o = n ? E.getSceneObject(n) : void 0;
362
- return o && o.parentID && (o = E.getSceneObject(o.parentID)), s = new Ae(r.re, o, r.re.features, r.re.add, t, e), o && Reflect.has(o, "allowPicking") && Reflect.has(o, "pickedEvent") && (o.allowPicking ?? !1) && o.pickedEvent.emit(s), o && Reflect.has(o, "allowPicking") && !o.allowPicking ? new Ae() : s;
363
- }, ps = async (l, e) => {
364
- const t = await l.callUeFunc({
362
+ let n = r.re.id, s, o = n ? I.getSceneObject(n) : void 0;
363
+ return o && o.parentID && (o = I.getSceneObject(o.parentID)), s = new Ae(r.re, o, r.re.features, r.re.add, t, e), o && Reflect.has(o, "allowPicking") && Reflect.has(o, "pickedEvent") && (o.allowPicking ?? !1) && o.pickedEvent.emit(s), o && Reflect.has(o, "allowPicking") && !o.allowPicking ? new Ae() : s;
364
+ }, vs = async (d, e) => {
365
+ const t = await d.callUeFunc({
365
366
  f: "pickPosition",
366
367
  p: { screenPosition: e }
367
368
  });
@@ -371,8 +372,8 @@ const we = async (l, e, t, i, r, n = "default") => {
371
372
  }
372
373
  const { position: i } = t.re;
373
374
  return i;
374
- }, vs = async (l, e, t, i = "ECC_Visibility") => {
375
- const r = await l.callUeFunc({
375
+ }, gs = async (d, e, t, i = "ECC_Visibility") => {
376
+ const r = await d.callUeFunc({
376
377
  f: "GetHeightByLonLat",
377
378
  p: { Lon: e, Lat: t, Channel: i }
378
379
  });
@@ -381,8 +382,8 @@ const we = async (l, e, t, i, r, n = "default") => {
381
382
  return;
382
383
  }
383
384
  return r.re;
384
- }, fs = async (l, e, t = "ECC_Visibility") => {
385
- const i = await l.callUeFunc({
385
+ }, fs = async (d, e, t = "ECC_Visibility") => {
386
+ const i = await d.callUeFunc({
386
387
  f: "GetHeightsByLonLats",
387
388
  p: { LonLats: e, Channel: t }
388
389
  });
@@ -396,8 +397,8 @@ const we = async (l, e, t, i, r, n = "default") => {
396
397
  } catch {
397
398
  return;
398
399
  }
399
- }, gs = async (l, e = 64, t = 64) => {
400
- const i = await l.callUeFunc({
400
+ }, ws = async (d, e = 64, t = 64) => {
401
+ const i = await d.callUeFunc({
401
402
  f: "capture",
402
403
  p: { resx: e, resy: t }
403
404
  });
@@ -406,8 +407,8 @@ const we = async (l, e, t, i, r, n = "default") => {
406
407
  return;
407
408
  }
408
409
  return i.re.image;
409
- }, ws = async (l, e, t = [64, 64]) => {
410
- const i = await l.callUeFunc({
410
+ }, ys = async (d, e, t = [64, 64]) => {
411
+ const i = await d.callUeFunc({
411
412
  f: "partialCapture",
412
413
  p: {
413
414
  startPos: e,
@@ -419,14 +420,14 @@ const we = async (l, e, t, i, r, n = "default") => {
419
420
  return;
420
421
  }
421
422
  return i.re.image;
422
- }, ys = async (l, e) => {
423
- const t = await l.callUeFunc({
423
+ }, ms = async (d, e) => {
424
+ const t = await d.callUeFunc({
424
425
  f: "LonLatAltToScreenPosition",
425
426
  p: { LonLatAlt: e }
426
427
  });
427
428
  return t.error && console.warn(t.error), t.re;
428
- }, ms = async (l, e) => {
429
- const t = await l.callUeFunc({
429
+ }, Cs = async (d, e) => {
430
+ const t = await d.callUeFunc({
430
431
  f: "UEPositionToLonLatAlt",
431
432
  p: { UEPosition: e }
432
433
  });
@@ -435,8 +436,8 @@ const we = async (l, e, t, i, r, n = "default") => {
435
436
  return;
436
437
  }
437
438
  return [...t.re.LonLatAlt];
438
- }, Cs = async (l, e) => {
439
- const t = await l.callUeFunc({
439
+ }, Fs = async (d, e) => {
440
+ const t = await d.callUeFunc({
440
441
  f: "GetAllSocketNamesByActorTag",
441
442
  p: { ActorTag: e }
442
443
  });
@@ -445,8 +446,8 @@ const we = async (l, e, t, i, r, n = "default") => {
445
446
  return;
446
447
  }
447
448
  return [...t.re.socketNames];
448
- }, Fs = async (l) => {
449
- const e = await l.callUeFunc({
449
+ }, Is = async (d) => {
450
+ const e = await d.callUeFunc({
450
451
  f: "GetVersion",
451
452
  p: void 0
452
453
  });
@@ -455,8 +456,8 @@ const we = async (l, e, t, i, r, n = "default") => {
455
456
  return;
456
457
  }
457
458
  return e.re.version;
458
- }, Is = async (l, e) => {
459
- const t = await l.callUeFunc({
459
+ }, Es = async (d, e) => {
460
+ const t = await d.callUeFunc({
460
461
  f: "GetBoundSphere",
461
462
  p: { id: e }
462
463
  });
@@ -465,8 +466,8 @@ const we = async (l, e, t, i, r, n = "default") => {
465
466
  return;
466
467
  }
467
468
  return t.re;
468
- }, Es = async (l, e) => {
469
- const t = await l.callUeFunc({
469
+ }, Ss = async (d, e) => {
470
+ const t = await d.callUeFunc({
470
471
  f: "GetBoundSphereWithChildren",
471
472
  p: { id: e }
472
473
  });
@@ -475,8 +476,8 @@ const we = async (l, e, t, i, r, n = "default") => {
475
476
  return;
476
477
  }
477
478
  return t.re;
478
- }, Ss = async (l, e) => {
479
- const t = await l.callUeFunc({
479
+ }, Ts = async (d, e) => {
480
+ const t = await d.callUeFunc({
480
481
  f: "GetStrokeMaterialParamInfo",
481
482
  p: { id: e }
482
483
  });
@@ -485,8 +486,8 @@ const we = async (l, e, t, i, r, n = "default") => {
485
486
  return;
486
487
  }
487
488
  return t.re;
488
- }, Ts = async (l, e) => {
489
- const t = await l.callUeFunc({
489
+ }, xs = async (d, e) => {
490
+ const t = await d.callUeFunc({
490
491
  f: "GetFillMaterialParamInfo",
491
492
  p: { id: e }
492
493
  });
@@ -495,8 +496,8 @@ const we = async (l, e, t, i, r, n = "default") => {
495
496
  return;
496
497
  }
497
498
  return t.re;
498
- }, xs = async (l, e) => {
499
- const t = await l.callUeFunc({
499
+ }, Rs = async (d, e) => {
500
+ const t = await d.callUeFunc({
500
501
  f: "getGlobalProperty",
501
502
  p: { props: e }
502
503
  });
@@ -505,8 +506,8 @@ const we = async (l, e, t, i, r, n = "default") => {
505
506
  return;
506
507
  }
507
508
  return t.re;
508
- }, Rs = async (l, e) => {
509
- const t = await l.callUeFunc({
509
+ }, Ps = async (d, e) => {
510
+ const t = await d.callUeFunc({
510
511
  f: "GetObjectByInfo",
511
512
  p: { info: e }
512
513
  });
@@ -515,63 +516,63 @@ const we = async (l, e, t, i, r, n = "default") => {
515
516
  return;
516
517
  }
517
518
  return t.re;
518
- }, Ls = async (l, e, t) => await l.callUeFunc({
519
+ }, Ls = async (d, e, t) => await d.callUeFunc({
519
520
  f: "BindActorByTag",
520
521
  p: { ID: e, ActorTag: t }
521
- }), Ps = async (l) => await l.callUeFunc({
522
+ }), ks = async (d) => await d.callUeFunc({
522
523
  f: "RestoreOriginalScene",
523
524
  p: void 0
524
- }), ks = async (l, e) => await l.callUeFunc({
525
+ }), Ds = async (d, e) => await d.callUeFunc({
525
526
  f: "UnBindActorByID",
526
527
  p: { ID: e }
527
- }), Ds = async (l, e) => await l.callUeFunc({
528
+ }), Bs = async (d, e) => await d.callUeFunc({
528
529
  f: "UnBindActorByTag",
529
530
  p: { ActorTag: e }
530
- }), Bs = async (l, e, t) => await l.callUeFunc({
531
+ }), _s = async (d, e, t) => await d.callUeFunc({
531
532
  f: "CreateActorByClass",
532
533
  p: { ID: e, ActorClass: t }
533
- }), _s = async function(l, e, t) {
534
- return await l.callUeFunc({
534
+ }), Ms = async function(d, e, t) {
535
+ return await d.callUeFunc({
535
536
  f: "Bind3DTilesetByTag",
536
537
  p: { ID: e, ActorTag: t }
537
538
  });
538
- }, Ms = async function(l, e) {
539
- return await l.callUeFunc({
539
+ }, $s = async function(d, e) {
540
+ return await d.callUeFunc({
540
541
  f: "UnBind3DTilesetByTag",
541
542
  p: { ActorTag: e }
542
543
  });
543
- }, $s = async function(l, e) {
544
- return await l.callUeFunc({
544
+ }, Ws = async function(d, e) {
545
+ return await d.callUeFunc({
545
546
  f: "UnBind3DTilesetById",
546
547
  p: { ID: e }
547
548
  });
548
- }, Ws = async function(l, e, t, i) {
549
- return await l.callUeFunc({
549
+ }, As = async function(d, e, t, i) {
550
+ return await d.callUeFunc({
550
551
  f: "BindImageryByTag",
551
552
  p: { ID: e, ActorTag: t, ComponentTag: i }
552
553
  });
553
- }, As = async function(l, e, t) {
554
- return await l.callUeFunc({
554
+ }, Us = async function(d, e, t) {
555
+ return await d.callUeFunc({
555
556
  f: "UnBindImageryByTag",
556
557
  p: { ActorTag: e, ComponentTag: t }
557
558
  });
558
- }, Us = async function(l, e) {
559
- return await l.callUeFunc({
559
+ }, Ns = async function(d, e) {
560
+ return await d.callUeFunc({
560
561
  f: "UnBindImageryById",
561
562
  p: { ID: e }
562
563
  });
563
- }, Ns = async function(l, e, t, i) {
564
- return await l.callUeFunc({
564
+ }, zs = async function(d, e, t, i) {
565
+ return await d.callUeFunc({
565
566
  f: "GetIdByComponentNameAndHitItem",
566
567
  p: { id: e, ComponentName: t, HitItem: i }
567
568
  });
568
- }, zs = async function(l, e = "ECC_Visibility") {
569
- return await l.callUeFunc({
569
+ }, bs = async function(d, e = "ECC_Visibility") {
570
+ return await d.callUeFunc({
570
571
  f: "GetCameraRelativeHeight",
571
572
  p: { Channel: e }
572
573
  });
573
- }, Hs = async function(l, e, t, i) {
574
- const r = await l.callUeFunc({
574
+ }, Hs = async function(d, e, t, i) {
575
+ const r = await d.callUeFunc({
575
576
  f: "SaveStringToFile",
576
577
  p: {
577
578
  String: e,
@@ -580,8 +581,8 @@ const we = async (l, e, t, i, r, n = "default") => {
580
581
  }
581
582
  });
582
583
  return r.error !== "" && console.warn("SaveStringToFile: ", r.error), r;
583
- }, bs = async function(l, e, t = !0) {
584
- const i = await l.callUeFunc({
584
+ }, Js = async function(d, e, t = !0) {
585
+ const i = await d.callUeFunc({
585
586
  f: "HighlightActorByTag",
586
587
  p: {
587
588
  ActorTag: e,
@@ -589,14 +590,14 @@ const we = async (l, e, t, i, r, n = "default") => {
589
590
  }
590
591
  });
591
592
  return i.error !== "" && console.warn("HighlightActorByTag: ", i.error), i;
592
- }, Js = async function(l, e) {
593
- const t = await l.callUeFunc({
593
+ }, Gs = async function(d, e) {
594
+ const t = await d.callUeFunc({
594
595
  f: "SendCustomMessage",
595
596
  p: { Message: e }
596
597
  });
597
598
  return t.error !== "" && console.warn("SendCustomMessage: ", t.error), t;
598
- }, Gs = async function(l) {
599
- const e = await l.callUeFunc({
599
+ }, Ks = async function(d) {
600
+ const e = await d.callUeFunc({
600
601
  f: "GetStatus",
601
602
  p: void 0
602
603
  });
@@ -605,8 +606,8 @@ const we = async (l, e, t, i, r, n = "default") => {
605
606
  return;
606
607
  }
607
608
  return e.re;
608
- }, Ks = async (l, e, t, i, r = !0) => {
609
- const n = await l.callUeFunc({
609
+ }, Xs = async (d, e, t, i, r = !0) => {
610
+ const n = await d.callUeFunc({
610
611
  f: "startEditing",
611
612
  p: {
612
613
  sceneObjectID: e,
@@ -620,8 +621,8 @@ const we = async (l, e, t, i, r, n = "default") => {
620
621
  return;
621
622
  }
622
623
  return n;
623
- }, Xs = async (l) => {
624
- const e = await l.callUeFunc({
624
+ }, Ys = async (d) => {
625
+ const e = await d.callUeFunc({
625
626
  f: "stopEditing",
626
627
  p: void 0
627
628
  });
@@ -630,8 +631,8 @@ const we = async (l, e, t, i, r, n = "default") => {
630
631
  return;
631
632
  }
632
633
  return e;
633
- }, Ys = async (l, e, t) => {
634
- const i = await l.callUeFunc({
634
+ }, Zs = async (d, e, t) => {
635
+ const i = await d.callUeFunc({
635
636
  f: "moveObjects",
636
637
  p: {
637
638
  sceneObjectIDs: e,
@@ -643,8 +644,8 @@ const we = async (l, e, t, i, r, n = "default") => {
643
644
  return;
644
645
  }
645
646
  return i;
646
- }, Zs = async (l) => {
647
- const e = await l.callUeFunc({
647
+ }, qs = async (d) => {
648
+ const e = await d.callUeFunc({
648
649
  f: "GetTilesetMaterialIDList",
649
650
  p: void 0
650
651
  });
@@ -656,7 +657,7 @@ const we = async (l, e, t, i, r, n = "default") => {
656
657
  };
657
658
  class Be extends m {
658
659
  }
659
- const qs = {
660
+ const Qs = {
660
661
  Response: 1
661
662
  }, Ie = {
662
663
  /*
@@ -666,7 +667,7 @@ const qs = {
666
667
  UIInteraction: 50,
667
668
  MouseWheel: 75
668
669
  };
669
- class Qs extends _r {
670
+ class Vs extends Mr {
670
671
  constructor(t, i) {
671
672
  super(t);
672
673
  v(this, "_processResponseFn", (t) => this.esUeViewer.processResponse(t));
@@ -693,15 +694,15 @@ class Qs extends _r {
693
694
  if (this.isDestroyed())
694
695
  return;
695
696
  let n = r.target.result, s = new Uint32Array(n), o = 0;
696
- if (s[0] === qs.Response) {
697
+ if (s[0] === Qs.Response) {
697
698
  o += 4;
698
699
  let h = s[o / 4];
699
700
  o += 4;
700
701
  for (let a = 0; a < h; a++) {
701
- let g = s[o / 4];
702
+ let f = s[o / 4];
702
703
  o += 4;
703
- let p = new TextDecoder("utf-8").decode(n.slice(o, o + g));
704
- o += g, this._processResponseFn(p);
704
+ let p = new TextDecoder("utf-8").decode(n.slice(o, o + f));
705
+ o += f, this._processResponseFn(p);
705
706
  }
706
707
  }
707
708
  }, i.readAsArrayBuffer(t.data);
@@ -739,10 +740,10 @@ class Qs extends _r {
739
740
  this._inner && this._inner.close();
740
741
  }
741
742
  }
742
- window.g_emitDescriptor_maxBytes = 3e4;
743
- let Vs = -1;
744
- gr.SetLoggerVerbosity(1);
745
- class Os extends m {
743
+ globalThis.g_emitDescriptor_maxBytes = 3e4;
744
+ let Os = -1;
745
+ wr.SetLoggerVerbosity(1);
746
+ class js extends m {
746
747
  constructor(t, i) {
747
748
  super();
748
749
  v(this, "_eventTarget", new EventTarget());
@@ -779,7 +780,7 @@ class Os extends m {
779
780
  return this.eventTarget.dispatchEvent(t);
780
781
  }
781
782
  _initPixelStream(t, i) {
782
- const r = new wr({
783
+ const r = new yr({
783
784
  initialSettings: {
784
785
  AutoPlayVideo: !0,
785
786
  AutoConnect: !0,
@@ -787,16 +788,16 @@ class Os extends m {
787
788
  StartVideoMuted: !1,
788
789
  // WaitForStreamer: true,
789
790
  SuppressBrowserKeys: !1,
790
- [Zn.SignallingServerUrl]: i
791
+ [qn.SignallingServerUrl]: i
791
792
  }
792
793
  });
793
- return r.setFlagEnabled(ot.BrowserSendOffer, !1), r.setFlagEnabled(ot.HoveringMouseMode, !0), r.setFlagEnabled(ot.MatchViewportResolution, !0), r.setNumericSetting(yr.MaxReconnectAttempts, 0), new mr(r, { videoElementParent: t });
794
+ return r.setFlagEnabled(at.BrowserSendOffer, !1), r.setFlagEnabled(at.HoveringMouseMode, !0), r.setFlagEnabled(at.MatchViewportResolution, !0), r.setNumericSetting(mr.MaxReconnectAttempts, 0), new Cr(r, { videoElementParent: t });
794
795
  }
795
796
  get pixelStream() {
796
797
  return this._pixelStream;
797
798
  }
798
799
  _initEsMsgWsWrapper(t) {
799
- return t ? this.dv(new Qs(this, t)) : void 0;
800
+ return t ? this.dv(new Vs(this, t)) : void 0;
800
801
  }
801
802
  get esMsgWsWrapper() {
802
803
  return this._esMsgWsWrapper;
@@ -851,23 +852,23 @@ class Os extends m {
851
852
  }
852
853
  // 发送UI interface
853
854
  emitUIInteraction(t, i) {
854
- typeof i == "function" && (t.callid = _(), this.uiInteractionCallbacks.set(t.callid, i)), this.pixelStream.emitUIInteraction(t);
855
+ typeof i == "function" && (t.callid = M(), this.uiInteractionCallbacks.set(t.callid, i)), this.pixelStream.emitUIInteraction(t);
855
856
  }
856
857
  get webRtcController() {
857
858
  return this.pixelStream._webRtcController;
858
859
  }
859
860
  // 发送UI interface
860
861
  emitUIInteractionForBigData(t, i) {
861
- typeof i == "function" && (t.callid = _(), this.uiInteractionCallbacks.set(t.callid, i));
862
- const r = JSON.stringify(t), n = window.g_emitDescriptor_maxBytes, s = r.length, o = ++Vs;
862
+ typeof i == "function" && (t.callid = M(), this.uiInteractionCallbacks.set(t.callid, i));
863
+ const r = JSON.stringify(t), n = globalThis.g_emitDescriptor_maxBytes, s = r.length, o = ++Os;
863
864
  if (this.esMsgWsWrapper) {
864
865
  if (s < n) {
865
866
  this.esMsgWsWrapper.emitDescriptorWithString(Ie.UIInteraction, `${o}-0/1-` + r);
866
867
  return;
867
868
  }
868
869
  const h = Math.ceil(s / n) | 0;
869
- [...new Array(h).keys()].map((g) => r.slice(g * n, (g + 1) * n)).forEach((g, p) => {
870
- this.esMsgWsWrapper && this.esMsgWsWrapper.emitDescriptorWithString(Ie.UIInteraction, `${o}-${p}/${h}-` + g);
870
+ [...new Array(h).keys()].map((f) => r.slice(f * n, (f + 1) * n)).forEach((f, p) => {
871
+ this.esMsgWsWrapper && this.esMsgWsWrapper.emitDescriptorWithString(Ie.UIInteraction, `${o}-${p}/${h}-` + f);
871
872
  });
872
873
  }
873
874
  }
@@ -895,12 +896,12 @@ class Os extends m {
895
896
  console.log(`resizeUEVideo emitCommand ${t} ${i} begin`), this.emitCommand(r);
896
897
  }
897
898
  }
898
- class js extends m {
899
+ class to extends m {
899
900
  constructor(t, i, r) {
900
901
  super();
901
902
  v(this, "_instance");
902
903
  v(this, "_event", this.dv(new S()));
903
- this._container = t, this._wsuri = i, this._esmsgWsUri = r, this._instance = this.dv(new Os(this._container, { url: this._wsuri, esmsgWsUri: this._esmsgWsUri })), this.instanceInit();
904
+ this._container = t, this._wsuri = i, this._esmsgWsUri = r, this._instance = this.dv(new js(this._container, { url: this._wsuri, esmsgWsUri: this._esmsgWsUri })), this.instanceInit();
904
905
  }
905
906
  get webSocketReady() {
906
907
  return this._instance.esWebSocketReady;
@@ -959,7 +960,7 @@ class js extends m {
959
960
  this._instance.resizeUEVideo(t, i);
960
961
  }
961
962
  }
962
- class to extends Be {
963
+ class eo extends Be {
963
964
  constructor(t, i, r, n) {
964
965
  super();
965
966
  v(this, "_esueViewerWrapper");
@@ -977,7 +978,7 @@ class to extends Be {
977
978
  v(this, "_webRtcConnected", this.dv(W(!1)));
978
979
  this._ueViewer = n, console.log("CSTMPSViewer init ! 以官方像素流 + 独立通信的模式启动!");
979
980
  const s = this._ueViewer;
980
- this._esueViewerWrapper = this.dv(new js(t, i, r));
981
+ this._esueViewerWrapper = this.dv(new to(t, i, r));
981
982
  const o = this._esueViewerWrapper;
982
983
  {
983
984
  const u = () => o.debug = s.debug ?? !1;
@@ -990,8 +991,8 @@ class to extends Be {
990
991
  const c = o.webSocketReady;
991
992
  if (this.videoinited && this.webRtcConnected && c) {
992
993
  console.log("%c[EarthSDK: esmsgWebSocket && videoinited && webRtcConnected]", "background: #a6ec99; color: black");
993
- const f = { eventType: "init", params: {} };
994
- o.emitUIInteractionForBigData(f), this._readyEvent.emit(), h = !0;
994
+ const g = { eventType: "init", params: {} };
995
+ o.emitUIInteractionForBigData(g), this._readyEvent.emit(), h = !0;
995
996
  }
996
997
  };
997
998
  this.d(this.videoinitedChanged.don(() => {
@@ -1006,9 +1007,9 @@ class to extends Be {
1006
1007
  if (u === "error")
1007
1008
  this._errorEvent.emit(c);
1008
1009
  else if (u === "ueevent") {
1009
- const f = JSON.parse(c);
1010
- if (f.t === "cr") {
1011
- const w = f;
1010
+ const g = JSON.parse(c);
1011
+ if (g.t === "cr") {
1012
+ const w = g;
1012
1013
  if (w.frs && this._ueFuncResultWithIdsEvent.emit(w.frs), w.ers)
1013
1014
  for (let y of w.ers)
1014
1015
  this._ueEvent.emit(y);
@@ -1016,26 +1017,26 @@ class to extends Be {
1016
1017
  } else u === "webRtcConnected" ? this.webRtcConnected = !0 : u === "videoinited" ? this.videoinited = !0 : u === "esmsgwsopen" && (this.esmsgwsopen = !0);
1017
1018
  }));
1018
1019
  {
1019
- const u = this.dv(He());
1020
- let c, f;
1020
+ const u = this.dv(be());
1021
+ let c, g;
1021
1022
  u.start(() => {
1022
- if (c !== t.offsetWidth || f !== t.offsetHeight) {
1023
- if (c = t.offsetWidth, f = t.offsetHeight, c === void 0 || f === void 0 || !Number.isFinite(c) || !Number.isFinite(f) || c < 0 || f < 0) {
1024
- console.warn(`lastWidth === undefined || lastHeight === undefined || !Number.isFinite(lastWidth) || !Number.isFinite(lastHeight) || lastWidth < 0 || lastHeight < 0 ${c} ${f}`);
1023
+ if (c !== t.offsetWidth || g !== t.offsetHeight) {
1024
+ if (c = t.offsetWidth, g = t.offsetHeight, c === void 0 || g === void 0 || !Number.isFinite(c) || !Number.isFinite(g) || c < 0 || g < 0) {
1025
+ console.warn(`lastWidth === undefined || lastHeight === undefined || !Number.isFinite(lastWidth) || !Number.isFinite(lastHeight) || lastWidth < 0 || lastHeight < 0 ${c} ${g}`);
1025
1026
  return;
1026
1027
  }
1027
- o.resize(c, f), console.log(`resize: ${c} ${f}`);
1028
+ o.resize(c, g), console.log(`resize: ${c} ${g}`);
1028
1029
  }
1029
1030
  });
1030
1031
  }
1031
1032
  this.d(this._ueFuncResultWithIdsEvent.don((u) => {
1032
1033
  for (const c of u) {
1033
- const f = this._waitingUeFuncIdAndResultCallbacks.get(c.fid);
1034
- f && (this._waitingUeFuncIdAndResultCallbacks.delete(c.fid), f.resultCallback(c.r));
1034
+ const g = this._waitingUeFuncIdAndResultCallbacks.get(c.fid);
1035
+ g && (this._waitingUeFuncIdAndResultCallbacks.delete(c.fid), g.resultCallback(c.r));
1035
1036
  }
1036
1037
  }));
1037
1038
  let a = 0;
1038
- const g = (u) => {
1039
+ const f = (u) => {
1039
1040
  const c = {
1040
1041
  n: a++,
1041
1042
  tt: Date.now(),
@@ -1054,19 +1055,19 @@ class to extends Be {
1054
1055
  }, p = () => {
1055
1056
  if (!h || this._ueFuncWithIdAndResultCallbacks.length === 0) return;
1056
1057
  const u = this._ueFuncWithIdAndResultCallbacks.map(([c]) => c);
1057
- for (const [c, f] of this._ueFuncWithIdAndResultCallbacks)
1058
- this._waitingUeFuncIdAndResultCallbacks.set(c.fid, f);
1058
+ for (const [c, g] of this._ueFuncWithIdAndResultCallbacks)
1059
+ this._waitingUeFuncIdAndResultCallbacks.set(c.fid, g);
1059
1060
  this._ueFuncWithIdAndResultCallbacks.length = 0;
1060
1061
  {
1061
- const c = window.g_emitDescriptor_maxBytes, f = u.map((R) => ({ f: R, s: JSON.stringify(R).length }));
1062
- let w = f.length, y = 0, x = 0, C = [];
1062
+ const c = globalThis.g_emitDescriptor_maxBytes, g = u.map((R) => ({ f: R, s: JSON.stringify(R).length }));
1063
+ let w = g.length, y = 0, x = 0, C = [];
1063
1064
  do {
1064
1065
  do {
1065
- const { f: R, s: T } = f[y];
1066
+ const { f: R, s: T } = g[y];
1066
1067
  if (C.push(R), ++y, x + T > c || C.length >= 20)
1067
1068
  break;
1068
1069
  } while (y < w);
1069
- C.length > 0 && (s.debug && console.log(`传送${C.length}条消息...`), g([...C]), C.length = 0, x = 0);
1070
+ C.length > 0 && (s.debug && console.log(`传送${C.length}条消息...`), f([...C]), C.length = 0, x = 0);
1070
1071
  } while (y < w);
1071
1072
  }
1072
1073
  };
@@ -1113,13 +1114,13 @@ class to extends Be {
1113
1114
  }
1114
1115
  callUeFunc(t) {
1115
1116
  return new Promise((i) => {
1116
- const n = { fid: _(), ...t };
1117
+ const n = { fid: M(), ...t };
1117
1118
  this._ueFuncWithIdAndResultCallbacks.push([n, { timeStamp: Date.now(), ueFunc: t, resultCallback: i }]);
1118
1119
  });
1119
1120
  }
1120
1121
  disposableOnUeEvent(t, i) {
1121
1122
  (this._ueViewer.debug ?? !1) && console.log(`disposableOnUeEvent from UeCloudViewer, type:${t}`);
1122
- const r = _();
1123
+ const r = M();
1123
1124
  this.callUeFunc({
1124
1125
  f: "addEventListener",
1125
1126
  p: {
@@ -1142,28 +1143,27 @@ class to extends Be {
1142
1143
  };
1143
1144
  }
1144
1145
  }
1145
- function eo(l) {
1146
+ function io(d) {
1146
1147
  let e = "";
1147
- const t = new Uint8Array(l), i = t.length;
1148
+ const t = new Uint8Array(d), i = t.length;
1148
1149
  for (let r = 0; r < i; r++)
1149
1150
  e += String.fromCharCode(t[r]);
1150
1151
  return btoa(e);
1151
1152
  }
1152
- const io = (l) => {
1153
+ const ro = (d) => {
1153
1154
  const e = {
1154
1155
  type: "input",
1155
- inputdata: eo(l)
1156
+ inputdata: io(d)
1156
1157
  };
1157
1158
  return JSON.stringify(e);
1158
1159
  };
1159
- function ro(l) {
1160
- return typeof l == "string" ? document.getElementById(l) : l;
1160
+ function no(d) {
1161
+ return typeof d == "string" ? document.getElementById(d) : d;
1161
1162
  }
1162
- window.g_emitDescriptor_maxBytes = 3e4;
1163
- console.log("全局可设置消息体最大字节, window.g_emitDescriptor_maxBytes 默认 30000 。");
1164
- let no = -1;
1165
- gr.SetLoggerVerbosity(1);
1166
- class so extends m {
1163
+ globalThis.g_emitDescriptor_maxBytes = 3e4;
1164
+ let so = -1;
1165
+ wr.SetLoggerVerbosity(1);
1166
+ class oo extends m {
1167
1167
  constructor(t, i) {
1168
1168
  super();
1169
1169
  v(this, "debug", !1);
@@ -1174,7 +1174,7 @@ class so extends m {
1174
1174
  //发送时记录消息,回调函数中对应消息后再删除
1175
1175
  v(this, "uiInteractionCallbacks", /* @__PURE__ */ new Map());
1176
1176
  this._container = t, this._option = i;
1177
- const r = new wr({
1177
+ const r = new yr({
1178
1178
  initialSettings: {
1179
1179
  HoveringMouse: !0,
1180
1180
  AutoPlayVideo: !0,
@@ -1186,21 +1186,21 @@ class so extends m {
1186
1186
  },
1187
1187
  useUrlParams: !0
1188
1188
  });
1189
- r.setFlagEnabled(ot.BrowserSendOffer, !1), r.setFlagEnabled(ot.HoveringMouseMode, !0), r.setFlagEnabled(ot.MatchViewportResolution, !0), r.setNumericSetting(yr.MaxReconnectAttempts, 0), this._pixelStream = new mr(r, { videoElementParent: this.container }), this.d(() => {
1189
+ r.setFlagEnabled(at.BrowserSendOffer, !1), r.setFlagEnabled(at.HoveringMouseMode, !0), r.setFlagEnabled(at.MatchViewportResolution, !0), r.setNumericSetting(mr.MaxReconnectAttempts, 0), this._pixelStream = new Cr(r, { videoElementParent: this.container }), this.d(() => {
1190
1190
  this._pixelStream.disconnect();
1191
1191
  });
1192
1192
  {
1193
1193
  const n = this.pixelStream.webSocketController.webSocket, s = this._pixelStream._webRtcController.sendMessageController.dataChannelSender.sendData;
1194
1194
  this._pixelStream._webRtcController.sendMessageController.dataChannelSender.constructor.prototype.sendData = function(o) {
1195
- n ? n.send(io(o)) : s.call(this, o);
1195
+ n ? n.send(ro(o)) : s.call(this, o);
1196
1196
  };
1197
1197
  }
1198
1198
  {
1199
1199
  const n = (s) => {
1200
1200
  const o = this._pixelStream._webRtcController.mouseController;
1201
1201
  setTimeout(() => {
1202
- const h = o.coordinateConverter.normalizeAndQuantizeUnsigned(s.offsetX, s.offsetY), g = o.toStreamerMessagesProvider.toStreamerHandlers.get("MouseUp");
1203
- g && g([s.button, h.x, h.y]), s.preventDefault();
1202
+ const h = o.coordinateConverter.normalizeAndQuantizeUnsigned(s.offsetX, s.offsetY), f = o.toStreamerMessagesProvider.toStreamerHandlers.get("MouseUp");
1203
+ f && f([s.button, h.x, h.y]), s.preventDefault();
1204
1204
  });
1205
1205
  };
1206
1206
  this.container.addEventListener("dblclick", n), this.d(() => {
@@ -1237,7 +1237,7 @@ class so extends m {
1237
1237
  return this._ueevent;
1238
1238
  }
1239
1239
  get container() {
1240
- return ro(this._container);
1240
+ return no(this._container);
1241
1241
  }
1242
1242
  get pixelStream() {
1243
1243
  return this._pixelStream;
@@ -1264,21 +1264,21 @@ class so extends m {
1264
1264
  }
1265
1265
  //大数据拆分
1266
1266
  emitUIInteractionForBigData(t, i) {
1267
- typeof i == "function" && (t.callid = _(), this.uiInteractionCallbacks.set(t.callid, i));
1268
- const r = JSON.stringify(t), n = window.g_emitDescriptor_maxBytes ?? 3e4, s = r.length, o = ++no;
1267
+ typeof i == "function" && (t.callid = M(), this.uiInteractionCallbacks.set(t.callid, i));
1268
+ const r = JSON.stringify(t), n = globalThis.g_emitDescriptor_maxBytes ?? 3e4, s = r.length, o = ++so;
1269
1269
  if (s < n) {
1270
- const g = {
1270
+ const f = {
1271
1271
  type: "earthsdk",
1272
1272
  time: (/* @__PURE__ */ new Date()).getTime(),
1273
1273
  params: `${o}-0/1-` + r
1274
1274
  };
1275
- this.sendData(JSON.stringify(g));
1275
+ this.sendData(JSON.stringify(f));
1276
1276
  return;
1277
1277
  }
1278
1278
  const h = Math.ceil(s / n) | 0;
1279
- [...new Array(h).keys()].map((g) => r.slice(g * n, (g + 1) * n)).forEach((g, p) => {
1280
- const d = { type: "earthsdk", time: (/* @__PURE__ */ new Date()).getTime(), params: `${o}-${p}/${h}-` + g };
1281
- this.sendData(JSON.stringify(d));
1279
+ [...new Array(h).keys()].map((f) => r.slice(f * n, (f + 1) * n)).forEach((f, p) => {
1280
+ const l = { type: "earthsdk", time: (/* @__PURE__ */ new Date()).getTime(), params: `${o}-${p}/${h}-` + f };
1281
+ this.sendData(JSON.stringify(l));
1282
1282
  });
1283
1283
  }
1284
1284
  sendData(t) {
@@ -1318,12 +1318,12 @@ class so extends m {
1318
1318
  console.log(`resizeUEVideo emitCommand ${t} ${i} begin`), this.emitCommand(r);
1319
1319
  }
1320
1320
  }
1321
- class oo extends m {
1321
+ class ao extends m {
1322
1322
  constructor(t, i, r) {
1323
1323
  super();
1324
1324
  v(this, "_instance");
1325
1325
  v(this, "_event", this.dv(new S()));
1326
- this._container = t, this._wsuri = i, this._esmsgWsUri = r, this._instance = this.dv(new so(this._container, { ws: this._wsuri })), this.d(this._instance.connected.don((n) => {
1326
+ this._container = t, this._wsuri = i, this._esmsgWsUri = r, this._instance = this.dv(new oo(this._container, { ws: this._wsuri })), this.d(this._instance.connected.don((n) => {
1327
1327
  this._event.emit(n, n), console.log(`%c[EarthSDK] ${n}`, "background: #a6ec99; color: black");
1328
1328
  })), this.d(this._instance.error.don((n) => {
1329
1329
  this._event.emit("errorEvent", n), console.log(`%c[EarthSDK] ${n}`, "background: red; color: black");
@@ -1362,7 +1362,7 @@ class oo extends m {
1362
1362
  this._instance.resizeUEVideo(t, i);
1363
1363
  }
1364
1364
  }
1365
- class ao extends Be {
1365
+ class lo extends Be {
1366
1366
  constructor(t, i, r, n) {
1367
1367
  super();
1368
1368
  v(this, "_videoInitialized", this.dv(W(!1)));
@@ -1377,75 +1377,75 @@ class ao extends Be {
1377
1377
  v(this, "_errorEvent", this.dv(new S()));
1378
1378
  v(this, "_readyEvent", this.dv(new S()));
1379
1379
  this._ueViewer = n, console.log("INNPSViewer init ! 以内置信令服务器模式启动!");
1380
- const s = this._ueViewer, o = this.dv(new oo(t, i, r));
1380
+ const s = this._ueViewer, o = this.dv(new ao(t, i, r));
1381
1381
  this._ue5ViewerWrapper = o;
1382
1382
  {
1383
- const d = () => o.debug = s.debug ?? !1;
1384
- d(), this.d(s.debugChanged.don(d));
1383
+ const l = () => o.debug = s.debug ?? !1;
1384
+ l(), this.d(s.debugChanged.don(l));
1385
1385
  }
1386
1386
  {
1387
- let d = !1;
1388
- const u = this.dv(P(
1387
+ let l = !1;
1388
+ const u = this.dv(L(
1389
1389
  this._videoInitialized.changed,
1390
1390
  this._webRtcConnected.changed,
1391
1391
  this._webSocketOpen.changed
1392
1392
  ));
1393
1393
  this.d(u.don(() => {
1394
- if (d) return;
1394
+ if (l) return;
1395
1395
  const c = this._ue5ViewerWrapper.instance.webSocketReady;
1396
1396
  if (this.videoInitialized && this.webRtcConnected && c) {
1397
- this._ue5ViewerWrapper.instance.emitUIInteraction(), this._readyEvent.emit(), d = !0, console.log("%c[EarthSDK videoInitialized && webRtcConnected && webSocketReady]", "background: #a6ec99; color: black");
1398
- const f = { eventType: "init", params: {} };
1399
- this._ue5ViewerWrapper.emitUIInteractionForBigData(f);
1397
+ this._ue5ViewerWrapper.instance.emitUIInteraction(), this._readyEvent.emit(), l = !0, console.log("%c[EarthSDK videoInitialized && webRtcConnected && webSocketReady]", "background: #a6ec99; color: black");
1398
+ const g = { eventType: "init", params: {} };
1399
+ this._ue5ViewerWrapper.emitUIInteractionForBigData(g);
1400
1400
  } else
1401
- console.warn("webSocketReady", c), d = !1;
1401
+ console.warn("webSocketReady", c), l = !1;
1402
1402
  }));
1403
1403
  }
1404
- this.d(o.event.don((d, u) => {
1405
- if (d === "errorEvent")
1404
+ this.d(o.event.don((l, u) => {
1405
+ if (l === "errorEvent")
1406
1406
  this._errorEvent.emit(u);
1407
- else if (d === "videoInitialized")
1407
+ else if (l === "videoInitialized")
1408
1408
  this._videoInitialized.value = !0;
1409
- else if (d === "webRtcConnected")
1409
+ else if (l === "webRtcConnected")
1410
1410
  this._webRtcConnected.value = !0;
1411
- else if (d === "webSocketOpen")
1411
+ else if (l === "webSocketOpen")
1412
1412
  this._webSocketOpen.value = !0;
1413
- else if (d === "ueevent") {
1413
+ else if (l === "ueevent") {
1414
1414
  const c = JSON.parse(u);
1415
1415
  if (c.t === "cr") {
1416
- const f = c;
1417
- if (f.frs && this._ueFuncResultWithIdsEvent.emit(f.frs), f.ers)
1418
- for (let w of f.ers)
1416
+ const g = c;
1417
+ if (g.frs && this._ueFuncResultWithIdsEvent.emit(g.frs), g.ers)
1418
+ for (let w of g.ers)
1419
1419
  this._ueEvent.emit(w);
1420
1420
  }
1421
1421
  }
1422
1422
  }));
1423
1423
  {
1424
- const d = this.dv(He());
1425
- let u, c, f;
1426
- d.start(() => {
1427
- if (u !== t.offsetWidth || c !== t.offsetHeight || f !== s.resolutionScale) {
1424
+ const l = this.dv(be());
1425
+ let u, c, g;
1426
+ l.start(() => {
1427
+ if (u !== t.offsetWidth || c !== t.offsetHeight || g !== s.resolutionScale) {
1428
1428
  if (u = t.offsetWidth, c = t.offsetHeight, u === void 0 || c === void 0 || !Number.isFinite(u) || !Number.isFinite(c) || u < 0 || c < 0) {
1429
1429
  console.warn(`lastWidth === undefined || lastHeight === undefined || !Number.isFinite(lastWidth) || !Number.isFinite(lastHeight) || lastWidth < 0 || lastHeight < 0 ${u} ${c}`);
1430
1430
  return;
1431
1431
  }
1432
- f = s.resolutionScale, o.resize(u / f, c / f);
1432
+ g = s.resolutionScale, o.resize(u / g, c / g);
1433
1433
  }
1434
1434
  });
1435
1435
  }
1436
- this.d(this._ueFuncResultWithIdsEvent.don((d) => {
1437
- for (const u of d) {
1436
+ this.d(this._ueFuncResultWithIdsEvent.don((l) => {
1437
+ for (const u of l) {
1438
1438
  const c = this._waitingUeFuncIdAndResultCallbacks.get(u.fid);
1439
1439
  c && (this._waitingUeFuncIdAndResultCallbacks.delete(u.fid), c.resultCallback(u.r));
1440
1440
  }
1441
1441
  }));
1442
1442
  let h = 0;
1443
- const a = (d) => {
1443
+ const a = (l) => {
1444
1444
  const u = {
1445
1445
  n: h++,
1446
1446
  tt: Date.now(),
1447
1447
  t: "c",
1448
- fs: d
1448
+ fs: l
1449
1449
  };
1450
1450
  this._waitingUeCalls.add(u), s.debug && (console.group(
1451
1451
  "%cxe2 => ue",
@@ -1456,18 +1456,18 @@ class ao extends Be {
1456
1456
  ), console.groupEnd()), this._ue5ViewerWrapper.emitUIInteractionForBigData(u, () => {
1457
1457
  this._waitingUeCalls.delete(u);
1458
1458
  });
1459
- }, g = () => {
1459
+ }, f = () => {
1460
1460
  if (!this._ue5ViewerWrapper.instance.webSocketReady || this._ueFuncWithIdAndResultCallbacks.length === 0) return;
1461
1461
  const u = this._ueFuncWithIdAndResultCallbacks.map(([c]) => c);
1462
- for (const [c, f] of this._ueFuncWithIdAndResultCallbacks)
1463
- this._waitingUeFuncIdAndResultCallbacks.set(c.fid, f);
1462
+ for (const [c, g] of this._ueFuncWithIdAndResultCallbacks)
1463
+ this._waitingUeFuncIdAndResultCallbacks.set(c.fid, g);
1464
1464
  this._ueFuncWithIdAndResultCallbacks.length = 0;
1465
1465
  {
1466
- const c = window.g_emitDescriptor_maxBytes, f = u.map((R) => ({ f: R, s: JSON.stringify(R).length }));
1467
- let w = f.length, y = 0, x = 0, C = [];
1466
+ const c = globalThis.g_emitDescriptor_maxBytes, g = u.map((R) => ({ f: R, s: JSON.stringify(R).length }));
1467
+ let w = g.length, y = 0, x = 0, C = [];
1468
1468
  do {
1469
1469
  do {
1470
- const { f: R, s: T } = f[y];
1470
+ const { f: R, s: T } = g[y];
1471
1471
  if (C.push(R), ++y, x + T > c || C.length >= 20)
1472
1472
  break;
1473
1473
  } while (y < w);
@@ -1475,7 +1475,7 @@ class ao extends Be {
1475
1475
  } while (y < w);
1476
1476
  }
1477
1477
  };
1478
- this.dv(Se()).start(g, 50), this.d(() => console.log("UeCloudViewer正在销毁..."));
1478
+ this.dv(Se()).start(f, 50), this.d(() => console.log("UeCloudViewer正在销毁..."));
1479
1479
  }
1480
1480
  get videoInitialized() {
1481
1481
  return this._videoInitialized.value;
@@ -1500,12 +1500,12 @@ class ao extends Be {
1500
1500
  }
1501
1501
  callUeFunc(t) {
1502
1502
  return new Promise((i) => {
1503
- const n = { fid: _(), ...t };
1503
+ const n = { fid: M(), ...t };
1504
1504
  this._ueFuncWithIdAndResultCallbacks.push([n, { timeStamp: Date.now(), ueFunc: t, resultCallback: i }]);
1505
1505
  });
1506
1506
  }
1507
1507
  disposableOnUeEvent(t, i) {
1508
- const r = _();
1508
+ const r = M();
1509
1509
  this.callUeFunc({
1510
1510
  f: "addEventListener",
1511
1511
  p: {
@@ -1528,7 +1528,7 @@ class ao extends Be {
1528
1528
  };
1529
1529
  }
1530
1530
  }
1531
- class lo extends m {
1531
+ class co extends m {
1532
1532
  /**
1533
1533
  * Creates an instance of DLViewer.
1534
1534
  * @param {HTMLDivElement} container
@@ -1548,7 +1548,7 @@ class lo extends m {
1548
1548
  this._vIframe = o, o.style.cssText = "width: 100%; height: 100%; margin: 0; padding: 0; border: none; outline: none;", t.appendChild(o), this.d(() => {
1549
1549
  o && t.removeChild(o);
1550
1550
  });
1551
- const h = E.getStrFromEnv(r + `/web/${i}.html`);
1551
+ const h = I.getStrFromEnv(r + `/web/${i}.html`);
1552
1552
  o.src = h, o.onload = () => {
1553
1553
  const a = o.contentWindow;
1554
1554
  if (!a) {
@@ -1568,26 +1568,26 @@ class lo extends m {
1568
1568
  return this._vIframe;
1569
1569
  }
1570
1570
  }
1571
- const Ze = typeof TextDecoder < "u" ? new TextDecoder() : void 0, co = (l, e = 0, t = NaN) => {
1571
+ const Ze = typeof TextDecoder < "u" ? new TextDecoder() : void 0, uo = (d, e = 0, t = NaN) => {
1572
1572
  const i = e + t;
1573
1573
  let r = e;
1574
- for (; l[r] && !(r >= i); ) ++r;
1575
- if (r - e > 16 && l.buffer && Ze)
1576
- return Ze.decode(l.subarray(e, r));
1574
+ for (; d[r] && !(r >= i); ) ++r;
1575
+ if (r - e > 16 && d.buffer && Ze)
1576
+ return Ze.decode(d.subarray(e, r));
1577
1577
  let n = "";
1578
1578
  for (; e < r; ) {
1579
- var s = l[e++];
1579
+ var s = d[e++];
1580
1580
  if (!(s & 128)) {
1581
1581
  n += String.fromCharCode(s);
1582
1582
  continue;
1583
1583
  }
1584
- var o = l[e++] & 63;
1584
+ var o = d[e++] & 63;
1585
1585
  if ((s & 224) == 192) {
1586
1586
  n += String.fromCharCode((s & 31) << 6 | o);
1587
1587
  continue;
1588
1588
  }
1589
- var h = l[e++] & 63;
1590
- if ((s & 240) == 224 ? s = (s & 15) << 12 | o << 6 | h : ((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 | h << 6 | l[e++] & 63), s < 65536)
1589
+ var h = d[e++] & 63;
1590
+ if ((s & 240) == 224 ? s = (s & 15) << 12 | o << 6 | h : ((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 | h << 6 | d[e++] & 63), s < 65536)
1591
1591
  n += String.fromCharCode(s);
1592
1592
  else {
1593
1593
  var a = s - 65536;
@@ -1596,7 +1596,7 @@ const Ze = typeof TextDecoder < "u" ? new TextDecoder() : void 0, co = (l, e = 0
1596
1596
  }
1597
1597
  return n;
1598
1598
  };
1599
- class uo extends m {
1599
+ class ho extends m {
1600
1600
  constructor(e, t, i) {
1601
1601
  super();
1602
1602
  {
@@ -1610,7 +1610,7 @@ class uo extends m {
1610
1610
  const a = t[h + "Changed"];
1611
1611
  s.push(a);
1612
1612
  });
1613
- const o = this.dv(P(...s));
1613
+ const o = this.dv(L(...s));
1614
1614
  this.d(o.don(r));
1615
1615
  }
1616
1616
  this.d(t.propChanged.don((r) => {
@@ -1623,49 +1623,49 @@ class uo extends m {
1623
1623
  } catch (n) {
1624
1624
  console.error("ueViewer propChanged:" + n);
1625
1625
  }
1626
- })), t.useCustomInteraction = !1, this.dv(new pr(t, e)), this.dv(new L(t.statusUpdateIntervalChanged, (r) => {
1626
+ })), t.useCustomInteraction = !1, this.dv(new vr(t, e)), this.dv(new P(t.statusUpdateIntervalChanged, (r) => {
1627
1627
  if ((t.statusUpdateInterval ?? 0.5) === 0) return;
1628
1628
  const s = new m();
1629
1629
  return s.d(i.disposableOnUeEvent("statusUpdate", (o) => {
1630
1630
  t.statusUpdateEvent.emit(o);
1631
1631
  })), s;
1632
- })), this.dv(new L(t.propChangedListeningChanged, () => {
1632
+ })), this.dv(new P(t.propChangedListeningChanged, () => {
1633
1633
  if (!(t.propChangedListening ?? !0)) return;
1634
1634
  const n = new m();
1635
1635
  return n.d(i.disposableOnUeEvent("propChanged", (s) => {
1636
1636
  t.propChanged.emit(s);
1637
1637
  })), n;
1638
- })), this.dv(new L(t.objectEventListeningChanged, () => {
1638
+ })), this.dv(new P(t.objectEventListeningChanged, () => {
1639
1639
  if (!(t.objectEventListening ?? !0)) return;
1640
1640
  const n = new m();
1641
1641
  return n.d(i.disposableOnUeEvent("objectEvent", (s) => {
1642
1642
  t.objectEvent.emit(s);
1643
1643
  })), n;
1644
- })), this.dv(new L(t.widgetEventListeningChanged, () => {
1644
+ })), this.dv(new P(t.widgetEventListeningChanged, () => {
1645
1645
  if (!(t.widgetEventListening ?? !0)) return;
1646
1646
  const n = new m();
1647
1647
  return n.d(i.disposableOnUeEvent("widgetEvent", (s) => {
1648
1648
  t.widgetEvent.emit(s);
1649
1649
  })), n;
1650
- })), this.dv(new L(t.speechRecognitionListeningChanged, () => {
1650
+ })), this.dv(new P(t.speechRecognitionListeningChanged, () => {
1651
1651
  if (!(t.speechRecognitionListening ?? !0)) return;
1652
1652
  const n = new m();
1653
1653
  return n.d(i.disposableOnUeEvent("speechRecognition", (s) => {
1654
1654
  t.speechRecognition.emit(s);
1655
1655
  })), n;
1656
- })), this.dv(new L(t.customMessageListeningChanged, () => {
1656
+ })), this.dv(new P(t.customMessageListeningChanged, () => {
1657
1657
  if (!(t.customMessageListening ?? !0)) return;
1658
1658
  const n = new m();
1659
1659
  return n.d(i.disposableOnUeEvent("customMessage", (s) => {
1660
1660
  t.customMessage.emit(s);
1661
1661
  })), n;
1662
- })), this.dv(new L(t.editingEventListeningChanged, () => {
1662
+ })), this.dv(new P(t.editingEventListeningChanged, () => {
1663
1663
  if (!(t.editingEventListening ?? !0)) return;
1664
1664
  const n = new m();
1665
1665
  return n.d(i.disposableOnUeEvent("editingEvent", (s) => {
1666
1666
  s.objectIDs = s.objectIDs.map((o) => {
1667
1667
  var h;
1668
- return ((h = E.getSceneObjById(o)) == null ? void 0 : h.parentID) ?? o;
1668
+ return ((h = I.getSceneObjById(o)) == null ? void 0 : h.parentID) ?? o;
1669
1669
  }), t.editingEvent.emit(s);
1670
1670
  })), n;
1671
1671
  })), this.ad(i.disposableOnUeEvent("cameraChanged", () => {
@@ -1673,8 +1673,8 @@ class uo extends m {
1673
1673
  }));
1674
1674
  }
1675
1675
  }
1676
- let ho = -1;
1677
- class po extends Be {
1676
+ let po = -1;
1677
+ class vo extends Be {
1678
1678
  /**
1679
1679
  * Creates an instance of H5Viewer.
1680
1680
  * @param {HTMLDivElement} container
@@ -1692,21 +1692,21 @@ class po extends Be {
1692
1692
  v(this, "_waitingUeCalls", /* @__PURE__ */ new Map());
1693
1693
  v(this, "_ueEvent", this.dv(new S()));
1694
1694
  this._ueViewer = n;
1695
- const s = this._ueViewer, o = this.dv(new lo(t, i, r, s));
1695
+ const s = this._ueViewer, o = this.dv(new co(t, i, r, s));
1696
1696
  let h = !1, a = null;
1697
1697
  this.d(o.onRuntimeInitialized.don(() => {
1698
1698
  var u;
1699
1699
  if (h = !0, (u = o == null ? void 0 : o.vIframe) != null && u.contentWindow) {
1700
1700
  a = o.vIframe.contentWindow;
1701
1701
  const c = o.vIframe.contentWindow.document.getElementById("mainarea");
1702
- c ? this.dv(new uo(c, s, this)) : console.error("h5Container is null");
1702
+ c ? this.dv(new ho(c, s, this)) : console.error("h5Container is null");
1703
1703
  } else {
1704
1704
  console.error("iframeWindow is null");
1705
1705
  return;
1706
1706
  }
1707
1707
  a.UE_JSHTML5Communication ? a.UE_JSHTML5Communication.UESendMessageToJS = (c) => {
1708
1708
  try {
1709
- const f = co(a.HEAPU8, c), w = JSON.parse(f);
1709
+ const g = uo(a.HEAPU8, c), w = JSON.parse(g);
1710
1710
  if (s.debug && (console.group(
1711
1711
  "%cUE => JS",
1712
1712
  " background-color:#006EFF;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"
@@ -1720,22 +1720,22 @@ class po extends Be {
1720
1720
  this._ueEvent.emit(x);
1721
1721
  }
1722
1722
  w.callid && this._waitingUeCalls.has(w.callid) && (this._waitingUeCalls.delete(w.callid), console.log(`waitingUeCalls.delete:${w.callid} end`));
1723
- } catch (f) {
1724
- console.error("UE_JSHTML5Communication.UESendMessageToJS error:", f);
1723
+ } catch (g) {
1724
+ console.error("UE_JSHTML5Communication.UESendMessageToJS error:", g);
1725
1725
  }
1726
1726
  } : console.error("UE_JSHTML5Communication UESendMessageToJS not found");
1727
1727
  })), this.dispose(this._ueFuncResultWithIdsEvent.disposableOn((u) => {
1728
1728
  for (const c of u) {
1729
- const f = this._waitingUeFuncIdAndResultCallbacks.get(c.fid);
1730
- f && (this._waitingUeFuncIdAndResultCallbacks.delete(c.fid), f(c.r));
1729
+ const g = this._waitingUeFuncIdAndResultCallbacks.get(c.fid);
1730
+ g && (this._waitingUeFuncIdAndResultCallbacks.delete(c.fid), g(c.r));
1731
1731
  }
1732
1732
  }));
1733
- let g = 0;
1733
+ let f = 0;
1734
1734
  const p = () => {
1735
1735
  if (!h || !a || !a.UE_JSHTML5Communication || !a.UE_JSHTML5Communication.JSSendMessageToUE || this._ueFuncWithIdAndResultCallbacks.length === 0) return;
1736
- const u = this._ueFuncWithIdAndResultCallbacks.map(([T]) => T), c = { n: g++, tt: Date.now(), t: "c", fs: u, callid: _() };
1737
- for (const [T, B] of this._ueFuncWithIdAndResultCallbacks)
1738
- this._waitingUeFuncIdAndResultCallbacks.set(T.fid, B);
1736
+ const u = this._ueFuncWithIdAndResultCallbacks.map(([T]) => T), c = { n: f++, tt: Date.now(), t: "c", fs: u, callid: M() };
1737
+ for (const [T, _] of this._ueFuncWithIdAndResultCallbacks)
1738
+ this._waitingUeFuncIdAndResultCallbacks.set(T.fid, _);
1739
1739
  this._ueFuncWithIdAndResultCallbacks.length = 0, this._waitingUeCalls.set(c.callid, c), s.debug && (console.group(
1740
1740
  "%cxe2 => ue",
1741
1741
  " background-color:green;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"
@@ -1743,15 +1743,15 @@ class po extends Be {
1743
1743
  `%c${JSON.stringify(c, void 0, "")}`,
1744
1744
  " border:1px dashed green;border-radius:5px;padding:10px;line-height:25px;color:green;"
1745
1745
  ), console.groupEnd());
1746
- const f = JSON.stringify(c), w = window.g_emitDescriptor_maxBytes ?? 3e4, y = f.length, x = ++ho;
1746
+ const g = JSON.stringify(c), w = globalThis.g_emitDescriptor_maxBytes ?? 3e4, y = g.length, x = ++po;
1747
1747
  if (y < w) {
1748
- const T = `${x}-0/1-` + f;
1748
+ const T = `${x}-0/1-` + g;
1749
1749
  a.UE_JSHTML5Communication.JSSendMessageToUE(T);
1750
1750
  return;
1751
1751
  }
1752
1752
  const C = Math.ceil(y / w) | 0;
1753
- [...new Array(C).keys()].map((T) => f.slice(T * w, (T + 1) * w)).forEach((T, B) => {
1754
- const _e = `${x}-${B}/${C}-` + T;
1753
+ [...new Array(C).keys()].map((T) => g.slice(T * w, (T + 1) * w)).forEach((T, _) => {
1754
+ const _e = `${x}-${_}/${C}-` + T;
1755
1755
  a.UE_JSHTML5Communication.JSSendMessageToUE(_e);
1756
1756
  });
1757
1757
  };
@@ -1774,12 +1774,12 @@ class po extends Be {
1774
1774
  }
1775
1775
  callUeFunc(t) {
1776
1776
  return new Promise((i) => {
1777
- const n = { fid: _(), ...t };
1777
+ const n = { fid: M(), ...t };
1778
1778
  this._ueFuncWithIdAndResultCallbacks.push([n, i]);
1779
1779
  });
1780
1780
  }
1781
1781
  disposableOnUeEvent(t, i) {
1782
- const r = _();
1782
+ const r = M();
1783
1783
  this.callUeFunc({
1784
1784
  f: "addEventListener",
1785
1785
  p: {
@@ -1802,7 +1802,7 @@ class po extends Be {
1802
1802
  };
1803
1803
  }
1804
1804
  }
1805
- let vo = -1;
1805
+ let go = -1;
1806
1806
  class fo extends Be {
1807
1807
  constructor(t, i) {
1808
1808
  super();
@@ -1818,33 +1818,33 @@ class fo extends Be {
1818
1818
  eventType: "init",
1819
1819
  params: {}
1820
1820
  };
1821
- window.ue.es.oncommand(JSON.stringify(s)), n = !0, window.calljs = (g, p) => {
1822
- if (r.debug && console.log(`calljs eventName:${g} eventDetailStr:${p}`), g === "ueevent" || g === "commanFinish")
1821
+ globalThis.ue.es.oncommand(JSON.stringify(s)), n = !0, globalThis.calljs = (f, p) => {
1822
+ if (r.debug && console.log(`calljs eventName:${f} eventDetailStr:${p}`), f === "ueevent" || f === "commanFinish")
1823
1823
  try {
1824
- const d = JSON.parse(p);
1825
- if (d.t === "cr") {
1826
- const u = d;
1824
+ const l = JSON.parse(p);
1825
+ if (l.t === "cr") {
1826
+ const u = l;
1827
1827
  if (u.frs && this._ueFuncResultWithIdsEvent.emit(u.frs), u.ers)
1828
1828
  for (let c of u.ers)
1829
1829
  this._ueEvent.emit(c);
1830
1830
  }
1831
- } catch (d) {
1832
- console.error(d);
1831
+ } catch (l) {
1832
+ console.error(l);
1833
1833
  }
1834
- }, this.dispose(this._ueFuncResultWithIdsEvent.disposableOn((g) => {
1835
- for (const p of g) {
1836
- const d = this._waitingUeFuncIdAndResultCallbacks.get(p.fid);
1837
- d && (this._waitingUeFuncIdAndResultCallbacks.delete(p.fid), d(p.r));
1834
+ }, this.dispose(this._ueFuncResultWithIdsEvent.disposableOn((f) => {
1835
+ for (const p of f) {
1836
+ const l = this._waitingUeFuncIdAndResultCallbacks.get(p.fid);
1837
+ l && (this._waitingUeFuncIdAndResultCallbacks.delete(p.fid), l(p.r));
1838
1838
  }
1839
1839
  }));
1840
1840
  let o = 0;
1841
1841
  const h = () => {
1842
1842
  if (!n || this._ueFuncWithIdAndResultCallbacks.length === 0) return;
1843
- const g = this._ueFuncWithIdAndResultCallbacks.map(([u]) => u), p = {
1843
+ const f = this._ueFuncWithIdAndResultCallbacks.map(([u]) => u), p = {
1844
1844
  n: o++,
1845
1845
  tt: Date.now(),
1846
1846
  t: "c",
1847
- fs: g
1847
+ fs: f
1848
1848
  };
1849
1849
  for (const [u, c] of this._ueFuncWithIdAndResultCallbacks)
1850
1850
  this._waitingUeFuncIdAndResultCallbacks.set(u.fid, c);
@@ -1855,8 +1855,8 @@ class fo extends Be {
1855
1855
  `%c${JSON.stringify(p, void 0, "")}`,
1856
1856
  " border:1px dashed green;border-radius:5px;padding:10px;line-height:25px;color:green;"
1857
1857
  ), console.groupEnd());
1858
- const d = ++vo;
1859
- window.ue.es.oncommand(`${d}-0/1-` + JSON.stringify(p)).then(() => {
1858
+ const l = ++go;
1859
+ globalThis.ue.es.oncommand(`${l}-0/1-` + JSON.stringify(p)).then(() => {
1860
1860
  this._waitingUeCalls.delete(p);
1861
1861
  });
1862
1862
  };
@@ -1864,12 +1864,12 @@ class fo extends Be {
1864
1864
  }
1865
1865
  callUeFunc(t) {
1866
1866
  return new Promise((i) => {
1867
- const n = { fid: _(), ...t };
1867
+ const n = { fid: M(), ...t };
1868
1868
  this._ueFuncWithIdAndResultCallbacks.push([n, i]);
1869
1869
  });
1870
1870
  }
1871
1871
  disposableOnUeEvent(t, i) {
1872
- const r = _();
1872
+ const r = M();
1873
1873
  this.callUeFunc({
1874
1874
  f: "addEventListener",
1875
1875
  p: {
@@ -1892,7 +1892,7 @@ class fo extends Be {
1892
1892
  };
1893
1893
  }
1894
1894
  }
1895
- class go extends m {
1895
+ class wo extends m {
1896
1896
  constructor(e, t) {
1897
1897
  super();
1898
1898
  {
@@ -1906,7 +1906,7 @@ class go extends m {
1906
1906
  const h = e[o + "Changed"];
1907
1907
  n.push(h);
1908
1908
  });
1909
- const s = this.dv(P(...n));
1909
+ const s = this.dv(L(...n));
1910
1910
  this.d(s.don(i));
1911
1911
  }
1912
1912
  this.d(e.propChanged.don((i) => {
@@ -1919,49 +1919,49 @@ class go extends m {
1919
1919
  } catch (r) {
1920
1920
  console.error("ueViewer propChanged:" + r);
1921
1921
  }
1922
- })), this.dv(new L(e.statusUpdateIntervalChanged, (i) => {
1922
+ })), this.dv(new P(e.statusUpdateIntervalChanged, (i) => {
1923
1923
  if ((e.statusUpdateInterval ?? 0.5) === 0) return;
1924
1924
  const n = new m();
1925
1925
  return n.d(t.disposableOnUeEvent("statusUpdate", (s) => {
1926
1926
  e.statusUpdateEvent.emit(s);
1927
1927
  })), n;
1928
- })), this.dv(new L(e.propChangedListeningChanged, () => {
1928
+ })), this.dv(new P(e.propChangedListeningChanged, () => {
1929
1929
  if (!(e.propChangedListening ?? !0)) return;
1930
1930
  const r = new m();
1931
1931
  return r.d(t.disposableOnUeEvent("propChanged", (n) => {
1932
1932
  e.propChanged.emit(n);
1933
1933
  })), r;
1934
- })), this.dv(new L(e.objectEventListeningChanged, () => {
1934
+ })), this.dv(new P(e.objectEventListeningChanged, () => {
1935
1935
  if (!(e.objectEventListening ?? !0)) return;
1936
1936
  const r = new m();
1937
1937
  return r.d(t.disposableOnUeEvent("objectEvent", (n) => {
1938
1938
  e.objectEvent.emit(n);
1939
1939
  })), r;
1940
- })), this.dv(new L(e.widgetEventListeningChanged, () => {
1940
+ })), this.dv(new P(e.widgetEventListeningChanged, () => {
1941
1941
  if (!(e.widgetEventListening ?? !0)) return;
1942
1942
  const r = new m();
1943
1943
  return r.d(t.disposableOnUeEvent("widgetEvent", (n) => {
1944
1944
  e.widgetEvent.emit(n);
1945
1945
  })), r;
1946
- })), this.dv(new L(e.speechRecognitionListeningChanged, () => {
1946
+ })), this.dv(new P(e.speechRecognitionListeningChanged, () => {
1947
1947
  if (!(e.speechRecognitionListening ?? !0)) return;
1948
1948
  const r = new m();
1949
1949
  return r.d(t.disposableOnUeEvent("speechRecognition", (n) => {
1950
1950
  e.speechRecognition.emit(n);
1951
1951
  })), r;
1952
- })), this.dv(new L(e.customMessageListeningChanged, () => {
1952
+ })), this.dv(new P(e.customMessageListeningChanged, () => {
1953
1953
  if (!(e.customMessageListening ?? !0)) return;
1954
1954
  const r = new m();
1955
1955
  return r.d(t.disposableOnUeEvent("customMessage", (n) => {
1956
1956
  e.customMessage.emit(n);
1957
1957
  })), r;
1958
- })), this.dv(new L(e.editingEventListeningChanged, () => {
1958
+ })), this.dv(new P(e.editingEventListeningChanged, () => {
1959
1959
  if (!(e.editingEventListening ?? !0)) return;
1960
1960
  const r = new m();
1961
1961
  return r.d(t.disposableOnUeEvent("editingEvent", (n) => {
1962
1962
  n.objectIDs = n.objectIDs.map((s) => {
1963
1963
  var o;
1964
- return ((o = E.getSceneObjById(s)) == null ? void 0 : o.parentID) ?? s;
1964
+ return ((o = I.getSceneObjById(s)) == null ? void 0 : o.parentID) ?? s;
1965
1965
  }), e.editingEvent.emit(n);
1966
1966
  })), r;
1967
1967
  })), this.ad(t.disposableOnUeEvent("cameraChanged", () => {
@@ -1969,7 +1969,7 @@ class go extends m {
1969
1969
  }));
1970
1970
  }
1971
1971
  }
1972
- class wo extends m {
1972
+ class yo extends m {
1973
1973
  constructor(e, t, i) {
1974
1974
  super();
1975
1975
  {
@@ -1980,10 +1980,10 @@ class wo extends m {
1980
1980
  n();
1981
1981
  const s = xe(), o = [];
1982
1982
  s.forEach((a) => {
1983
- const g = t[a + "Changed"];
1984
- o.push(g);
1983
+ const f = t[a + "Changed"];
1984
+ o.push(f);
1985
1985
  });
1986
- const h = this.dv(P(...o));
1986
+ const h = this.dv(L(...o));
1987
1987
  this.d(h.don(n));
1988
1988
  }
1989
1989
  this.d(t.propChanged.don((n) => {
@@ -2002,8 +2002,8 @@ class wo extends m {
2002
2002
  r && e && e.removeChild(r);
2003
2003
  });
2004
2004
  {
2005
- const n = (a, g) => {
2006
- window.ue.esinput.setinterceptevent(g), a.preventDefault();
2005
+ const n = (a, f) => {
2006
+ globalThis.ue.esinput.setinterceptevent(f), a.preventDefault();
2007
2007
  }, s = (a) => {
2008
2008
  n(a, !1);
2009
2009
  }, o = (a) => {
@@ -2015,49 +2015,49 @@ class wo extends m {
2015
2015
  r.removeEventListener("mouseenter", s), r.removeEventListener("mouseleave", o), r.removeEventListener("mousemove", h);
2016
2016
  });
2017
2017
  }
2018
- t.useCustomInteraction = !1, this.dv(new pr(t, r)), this.dv(new L(t.statusUpdateIntervalChanged, (n) => {
2018
+ t.useCustomInteraction = !1, this.dv(new vr(t, r)), this.dv(new P(t.statusUpdateIntervalChanged, (n) => {
2019
2019
  if ((t.statusUpdateInterval ?? 0.5) === 0) return;
2020
2020
  const o = new m();
2021
2021
  return o.d(i.disposableOnUeEvent("statusUpdate", (h) => {
2022
2022
  t.statusUpdateEvent.emit(h);
2023
2023
  })), o;
2024
- })), this.dv(new L(t.propChangedListeningChanged, () => {
2024
+ })), this.dv(new P(t.propChangedListeningChanged, () => {
2025
2025
  if (!(t.propChangedListening ?? !0)) return;
2026
2026
  const s = new m();
2027
2027
  return s.d(i.disposableOnUeEvent("propChanged", (o) => {
2028
2028
  t.propChanged.emit(o);
2029
2029
  })), s;
2030
- })), this.dv(new L(t.objectEventListeningChanged, () => {
2030
+ })), this.dv(new P(t.objectEventListeningChanged, () => {
2031
2031
  if (!(t.objectEventListening ?? !0)) return;
2032
2032
  const s = new m();
2033
2033
  return s.d(i.disposableOnUeEvent("objectEvent", (o) => {
2034
2034
  t.objectEvent.emit(o);
2035
2035
  })), s;
2036
- })), this.dv(new L(t.widgetEventListeningChanged, () => {
2036
+ })), this.dv(new P(t.widgetEventListeningChanged, () => {
2037
2037
  if (!(t.widgetEventListening ?? !0)) return;
2038
2038
  const s = new m();
2039
2039
  return s.d(i.disposableOnUeEvent("widgetEvent", (o) => {
2040
2040
  t.widgetEvent.emit(o);
2041
2041
  })), s;
2042
- })), this.dv(new L(t.speechRecognitionListeningChanged, () => {
2042
+ })), this.dv(new P(t.speechRecognitionListeningChanged, () => {
2043
2043
  if (!(t.speechRecognitionListening ?? !0)) return;
2044
2044
  const s = new m();
2045
2045
  return s.d(i.disposableOnUeEvent("speechRecognition", (o) => {
2046
2046
  t.speechRecognition.emit(o);
2047
2047
  })), s;
2048
- })), this.dv(new L(t.customMessageListeningChanged, () => {
2048
+ })), this.dv(new P(t.customMessageListeningChanged, () => {
2049
2049
  if (!(t.customMessageListening ?? !0)) return;
2050
2050
  const s = new m();
2051
2051
  return s.d(i.disposableOnUeEvent("customMessage", (o) => {
2052
2052
  t.customMessage.emit(o);
2053
2053
  })), s;
2054
- })), this.dv(new L(t.editingEventListeningChanged, () => {
2054
+ })), this.dv(new P(t.editingEventListeningChanged, () => {
2055
2055
  if (!(t.editingEventListening ?? !0)) return;
2056
2056
  const s = new m();
2057
2057
  return s.d(i.disposableOnUeEvent("editingEvent", (o) => {
2058
2058
  o.objectIDs = o.objectIDs.map((h) => {
2059
2059
  var a;
2060
- return ((a = E.getSceneObjById(h)) == null ? void 0 : a.parentID) ?? h;
2060
+ return ((a = I.getSceneObjById(h)) == null ? void 0 : a.parentID) ?? h;
2061
2061
  }), t.editingEvent.emit(o);
2062
2062
  })), s;
2063
2063
  })), this.ad(i.disposableOnUeEvent("cameraChanged", () => {
@@ -2065,28 +2065,28 @@ class wo extends m {
2065
2065
  }));
2066
2066
  }
2067
2067
  }
2068
- class yo extends m {
2068
+ class mo extends m {
2069
2069
  constructor(t, i, r) {
2070
2070
  super();
2071
2071
  v(this, "_reconnectEvent", this.dv(new S()));
2072
- const n = (p, d) => p.hasOwnProperty(d);
2072
+ const n = (p, l) => p.hasOwnProperty(l);
2073
2073
  let s = 0, o;
2074
2074
  this.d(() => {
2075
2075
  o && clearTimeout(o);
2076
2076
  });
2077
- const a = new URLSearchParams(window.location.search).get("eswebview") === "true", g = () => {
2078
- if (window.ue.esinput) {
2077
+ const a = new URLSearchParams(globalThis.location.search).get("eswebview") === "true", f = () => {
2078
+ if (globalThis.ue.esinput) {
2079
2079
  r.setStatus("Creating"), console.log("存在(window.ue && window.ue.es && window.ue.esinput 需要适配新版ESWebView 鼠标穿透), 开始创建UeFalseCloudViewer..."), r.setStatusLog("开始创建本地视口...");
2080
2080
  const p = this.dv(new fo(t, r));
2081
- this.d(() => r.viewer = void 0), r.viewer = p, r.setStatus("Created"), r.setStatusLog("本地视口创建成功!"), this.dv(new wo(t, r, p));
2081
+ this.d(() => r.viewer = void 0), r.viewer = p, r.setStatus("Created"), r.setStatusLog("本地视口创建成功!"), this.dv(new yo(t, r, p));
2082
2082
  } else
2083
2083
  r.setStatus("Error"), r.setStatusLog("请升级 ESWebView !"), this.d(() => r.viewer = void 0), r.viewer = void 0;
2084
2084
  };
2085
- if (window.ue && window.ue.es)
2086
- g();
2085
+ if (globalThis.ue && globalThis.ue.es)
2086
+ f();
2087
2087
  else if (a) {
2088
2088
  const p = setInterval(() => {
2089
- window.ue && window.ue.es && (clearInterval(p), g());
2089
+ globalThis.ue && globalThis.ue.es && (clearInterval(p), f());
2090
2090
  }, 200);
2091
2091
  } else if (n(i.options, "ws") || n(i.options, "uri") && n(i.options, "app")) {
2092
2092
  r.setStatus("Creating"), r.setStatusLog("开始创建云渲染视口...");
@@ -2094,52 +2094,52 @@ class yo extends m {
2094
2094
  this.d(() => {
2095
2095
  r.setStatus("Raw"), r.setStatusLog(""), t && p && t.removeChild(p) && (p = void 0);
2096
2096
  });
2097
- const d = this.dv(Te(async (u) => {
2097
+ const l = this.dv(Te(async (u) => {
2098
2098
  r.viewer && !r.viewer.isDestroyed() && r.viewer.destroy(), r.viewer = void 0, p && t.removeChild(p) && (p = void 0), p = document.createElement("div"), p.setAttribute("earthsdk3-ue", "earthsdk3-ue-videoContainer"), p.style.cssText = "position:relative; height: 100%;width:100%;", t.appendChild(p);
2099
- let c, f, w;
2099
+ let c, g, w;
2100
2100
  if (n(i.options, "ws")) {
2101
- const { ws: R, esmsg: T, uselnternalSignallingServer: B } = i.options;
2102
- c = R, f = T, w = B ?? !1;
2101
+ const { ws: R, esmsg: T, uselnternalSignallingServer: _ } = i.options;
2102
+ c = R, g = T, w = _ ?? !1;
2103
2103
  }
2104
2104
  if (n(i.options, "uri") && n(i.options, "app")) {
2105
2105
  const { offsetWidth: R, offsetHeight: T } = p;
2106
- let { uri: B, app: _e, token: Xe } = i.options;
2107
- B.endsWith("/") || (B += "/");
2108
- const Tr = Xe ? `?essstoken=${Xe}` : "", Ye = `/${_e}/${R ?? 1920}/${T ?? 1080}` + Tr;
2109
- console.log(`请求信令服务器: ${B}instance${Ye}`);
2110
- const xr = await u.promise(fetch(`${B}instance${Ye}`, { method: "GET" })), V = await u.promise(xr.json());
2111
- if (V && V.status !== "ok") {
2112
- r.setStatus("Error"), r.setStatusLog(`信令服务器请求失败 ${V.status}`), this._reconnectEvent.emit(void 0);
2106
+ let { uri: _, app: _e, token: Xe } = i.options;
2107
+ _.endsWith("/") || (_ += "/");
2108
+ const xr = Xe ? `?essstoken=${Xe}` : "", Ye = `/${_e}/${R ?? 1920}/${T ?? 1080}` + xr;
2109
+ console.log(`请求信令服务器: ${_}instance${Ye}`);
2110
+ const Rr = await u.promise(fetch(`${_}instance${Ye}`, { method: "GET" })), O = await u.promise(Rr.json());
2111
+ if (O && O.status !== "ok") {
2112
+ r.setStatus("Error"), r.setStatusLog(`信令服务器请求失败 ${O.status}`), this._reconnectEvent.emit(void 0);
2113
2113
  return;
2114
2114
  } else {
2115
- console.log(`信令服务器请求成功! ${JSON.stringify(V, void 0, " ")}`), await Mr(2e3);
2116
- const { server: Rr, esmsg: Lr, instanceId: Pr, useInternalSignallingServer: kr } = V;
2117
- if (!Pr) {
2115
+ console.log(`信令服务器请求成功! ${JSON.stringify(O, void 0, " ")}`), await $r(2e3);
2116
+ const { server: Pr, esmsg: Lr, instanceId: kr, useInternalSignallingServer: Dr } = O;
2117
+ if (!kr) {
2118
2118
  r.setStatus("Error"), r.setStatusLog("检查信令服务器版本,返回数据错误! "), console.log("信令服务器返回数据错误!不包含instanceId!请升级到 ESSS V3.0+ 版本!"), this._reconnectEvent.emit(void 0);
2119
2119
  return;
2120
2120
  }
2121
- c = Rr, f = Lr, w = kr ?? !1, r.esssResponse = V;
2121
+ c = Pr, g = Lr, w = Dr ?? !1, r.esssResponse = O;
2122
2122
  }
2123
2123
  }
2124
- const y = this.dv(w ? new ao(p, c, f, r) : new to(p, c, f, r));
2124
+ const y = this.dv(w ? new lo(p, c, g, r) : new eo(p, c, g, r));
2125
2125
  this.d(() => r.viewer = void 0), this.d(y.errorEvent.don((R) => {
2126
2126
  const T = `[${R}]:像素流连接错误!`;
2127
2127
  r.setStatus("Error"), r.setStatusLog(T), this._reconnectEvent.emit(y);
2128
2128
  })), await u.promise(new Promise((R) => this.d(y.readyEvent.donce(R)))), r.setStatus("Created"), r.setStatusLog("云渲染视口创建成功!"), s = 0, o && clearTimeout(o), o = void 0;
2129
2129
  const { offsetWidth: x, offsetHeight: C } = p;
2130
- y.resize(x * window.devicePixelRatio, C * window.devicePixelRatio), r.viewer = y, this.d(() => r.viewer = void 0), this.dv(new go(r, y));
2130
+ y.resize(x * globalThis.devicePixelRatio, C * globalThis.devicePixelRatio), r.viewer = y, this.d(() => r.viewer = void 0), this.dv(new wo(r, y));
2131
2131
  }));
2132
- d.start(), this.d(this._reconnectEvent.don((u) => {
2133
- o === void 0 && (u && !u.isDestroyed() && u.destroy(), r.viewer && !r.viewer.isDestroyed() && r.viewer.destroy(), r.viewer = void 0, r.autoReconnect && (r.setStatus("Reconnecting"), r.setStatusLog("正在尝试重新连接..."), s = s + 5e3 > 3e4 ? 3e4 : s + 5e3, console.warn(`间隔:${s / 1e3}s,正在尝试重新连接...`), o = window.setTimeout(() => {
2134
- d.restart();
2132
+ l.start(), this.d(this._reconnectEvent.don((u) => {
2133
+ o === void 0 && (u && !u.isDestroyed() && u.destroy(), r.viewer && !r.viewer.isDestroyed() && r.viewer.destroy(), r.viewer = void 0, r.autoReconnect && (r.setStatus("Reconnecting"), r.setStatusLog("正在尝试重新连接..."), s = s + 5e3 > 3e4 ? 3e4 : s + 5e3, console.warn(`间隔:${s / 1e3}s,正在尝试重新连接...`), o = globalThis.setTimeout(() => {
2134
+ l.restart();
2135
2135
  }, s)));
2136
- })), this.d(d.errorEvent.don((u) => {
2136
+ })), this.d(l.errorEvent.don((u) => {
2137
2137
  r.setStatus("Error"), r.setStatusLog("云渲染视口创建失败!"), console.warn("云渲染视口创建失败!", u), this._reconnectEvent.emit(void 0);
2138
2138
  }));
2139
2139
  } else if (n(i.options, "project")) {
2140
- const p = i, d = p.options.project, u = p.options.baseUrl;
2140
+ const p = i, l = p.options.project, u = p.options.baseUrl;
2141
2141
  r.setStatus("Creating"), r.setStatusLog("下载编译中...");
2142
- const c = this.dv(new po(t, d, u, r));
2142
+ const c = this.dv(new vo(t, l, u, r));
2143
2143
  r.viewer = c, this.d(() => r.viewer = void 0);
2144
2144
  } else
2145
2145
  r.setStatus("Error"), r.setStatusLog("视口创建失败!"), console.warn("视口创建失败: 参数错误!");
@@ -2165,9 +2165,9 @@ const K = class K extends Ee {
2165
2165
  const i = t;
2166
2166
  this.d(this._viewer.changed.don(() => {
2167
2167
  this.viewerChanged.emit(this.viewer);
2168
- })), this.dv(new L(this.subContainerChanged, () => {
2168
+ })), this.dv(new P(this.subContainerChanged, () => {
2169
2169
  if (this.setStatus("Raw"), this.setStatusLog(""), !!this.subContainer)
2170
- return new yo(this.subContainer, i, this);
2170
+ return new mo(this.subContainer, i, this);
2171
2171
  }));
2172
2172
  }
2173
2173
  get defaultProps() {
@@ -2210,14 +2210,14 @@ const K = class K extends Ee {
2210
2210
  console.warn("UEPositionToLonLatAlt: viewer is undefined");
2211
2211
  return;
2212
2212
  }
2213
- return await ms(this.viewer, t);
2213
+ return await Cs(this.viewer, t);
2214
2214
  }
2215
2215
  async changeNavigationMode(t) {
2216
2216
  if (!this.viewer) {
2217
2217
  console.warn("ChangeNavigationMode: viewer is undefined");
2218
2218
  return;
2219
2219
  }
2220
- const i = await b(this.viewer, t);
2220
+ const i = await H(this.viewer, t);
2221
2221
  return i && !i.error && (this._navigationMode.value = t.mode), i;
2222
2222
  }
2223
2223
  async resetWithCurrentCamera(t) {
@@ -2225,98 +2225,98 @@ const K = class K extends Ee {
2225
2225
  console.warn("resetWithCurrentCamera: viewer is undefined");
2226
2226
  return;
2227
2227
  }
2228
- return await Ir(this.viewer, t);
2228
+ return await Er(this.viewer, t);
2229
2229
  }
2230
2230
  async getAllSocketNamesByActorTag(t) {
2231
2231
  if (!this.viewer) {
2232
2232
  console.warn("GetAllSocketNamesByActorTag: viewer is undefined");
2233
2233
  return;
2234
2234
  }
2235
- return await Cs(this.viewer, t);
2235
+ return await Fs(this.viewer, t);
2236
2236
  }
2237
2237
  async getBoundSphere(t) {
2238
2238
  if (!this.viewer) {
2239
2239
  console.warn("getBoundSphere: viewer is undefined");
2240
2240
  return;
2241
2241
  }
2242
- return await Is(this.viewer, t);
2242
+ return await Es(this.viewer, t);
2243
2243
  }
2244
2244
  async getBoundSphereWithChildren(t) {
2245
2245
  if (!this.viewer) {
2246
2246
  console.warn("getBoundSphereWithChildren: viewer is undefined");
2247
2247
  return;
2248
2248
  }
2249
- return await Es(this.viewer, t);
2249
+ return await Ss(this.viewer, t);
2250
2250
  }
2251
2251
  async getStrokeMaterialParamInfo(t) {
2252
2252
  if (!this.viewer) {
2253
2253
  console.warn("GetStrokeMaterialParamInfo: viewer is undefined");
2254
2254
  return;
2255
2255
  }
2256
- return await Ss(this.viewer, t);
2256
+ return await Ts(this.viewer, t);
2257
2257
  }
2258
2258
  async getFillMaterialParamInfo(t) {
2259
2259
  if (!this.viewer) {
2260
2260
  console.warn("getFillMaterialParamInfo: viewer is undefined");
2261
2261
  return;
2262
2262
  }
2263
- return await Ts(this.viewer, t);
2263
+ return await xs(this.viewer, t);
2264
2264
  }
2265
2265
  async getGlobalProperty(t) {
2266
2266
  if (!this.viewer) {
2267
2267
  console.warn("getGlobalProperty: viewer is undefined");
2268
2268
  return;
2269
2269
  }
2270
- return await xs(this.viewer, t);
2270
+ return await Rs(this.viewer, t);
2271
2271
  }
2272
2272
  async getObjectByInfo(t) {
2273
2273
  if (!this.viewer) {
2274
2274
  console.warn("GetObjectByInfo: viewer is undefined");
2275
2275
  return;
2276
2276
  }
2277
- return await Rs(this.viewer, t);
2277
+ return await Ps(this.viewer, t);
2278
2278
  }
2279
2279
  async defaultCameraFlyIn(t = 1) {
2280
2280
  if (!this.viewer) {
2281
2281
  console.warn("DefaultCameraFlyIn: viewer is undefined");
2282
2282
  return;
2283
2283
  }
2284
- return await On(this.viewer, t);
2284
+ return await jn(this.viewer, t);
2285
2285
  }
2286
2286
  async startVoice() {
2287
2287
  if (!this.viewer) {
2288
2288
  console.warn("startVoice:viewer is undefined");
2289
2289
  return;
2290
2290
  }
2291
- return await jn(this.viewer);
2291
+ return await ts(this.viewer);
2292
2292
  }
2293
2293
  async stopVoice() {
2294
2294
  if (!this.viewer) {
2295
2295
  console.warn("startVoice:viewer is undefined");
2296
2296
  return;
2297
2297
  }
2298
- return await ts(this.viewer);
2298
+ return await es(this.viewer);
2299
2299
  }
2300
2300
  async mountPakFiles(t) {
2301
2301
  if (!this.viewer) {
2302
2302
  console.warn("mountPakFiles:viewer is undefined");
2303
2303
  return;
2304
2304
  }
2305
- return await es(this.viewer, t);
2305
+ return await is(this.viewer, t);
2306
2306
  }
2307
2307
  async generateMemReport() {
2308
2308
  if (!this.viewer) {
2309
2309
  console.warn("generateMemReport:viewer is undefined");
2310
2310
  return;
2311
2311
  }
2312
- return await is(this.viewer);
2312
+ return await rs(this.viewer);
2313
2313
  }
2314
2314
  async quit() {
2315
2315
  if (!this.viewer) {
2316
2316
  console.warn("Quit: viewer is undefined");
2317
2317
  return;
2318
2318
  }
2319
- return await us(this.viewer);
2319
+ return await hs(this.viewer);
2320
2320
  }
2321
2321
  async bindActorByTag(t, i) {
2322
2322
  if (!this.viewer) {
@@ -2330,77 +2330,77 @@ const K = class K extends Ee {
2330
2330
  console.warn("RestoreOriginalScene: viewer is undefined");
2331
2331
  return;
2332
2332
  }
2333
- return await Ps(this.viewer);
2333
+ return await ks(this.viewer);
2334
2334
  }
2335
2335
  async unBindActorByID(t) {
2336
2336
  if (!this.viewer) {
2337
2337
  console.warn("UnBindActorByID: viewer is undefined");
2338
2338
  return;
2339
2339
  }
2340
- return await ks(this.viewer, t);
2340
+ return await Ds(this.viewer, t);
2341
2341
  }
2342
2342
  async unBindActorByTag(t) {
2343
2343
  if (!this.viewer) {
2344
2344
  console.warn("UnBindActorByTag: viewer is undefined");
2345
2345
  return;
2346
2346
  }
2347
- return await Ds(this.viewer, t);
2347
+ return await Bs(this.viewer, t);
2348
2348
  }
2349
2349
  async createActorByClass(t, i) {
2350
2350
  if (!this.viewer) {
2351
2351
  console.warn("CreateActorByClass: viewer is undefined");
2352
2352
  return;
2353
2353
  }
2354
- return await Bs(this.viewer, t, i);
2354
+ return await _s(this.viewer, t, i);
2355
2355
  }
2356
2356
  async bind3DTilesetByTag(t, i) {
2357
2357
  if (!this.viewer) {
2358
2358
  console.warn("Bind3DTilesetByTag: viewer is undefined");
2359
2359
  return;
2360
2360
  }
2361
- return await _s(this.viewer, t, i);
2361
+ return await Ms(this.viewer, t, i);
2362
2362
  }
2363
2363
  async unBind3DTilesetByTag(t) {
2364
2364
  if (!this.viewer) {
2365
2365
  console.warn("UnBind3DTilesetByTag: viewer is undefined");
2366
2366
  return;
2367
2367
  }
2368
- return await Ms(this.viewer, t);
2368
+ return await $s(this.viewer, t);
2369
2369
  }
2370
2370
  async unBind3DTilesetById(t) {
2371
2371
  if (!this.viewer) {
2372
2372
  console.warn("UnBind3DTilesetById: viewer is undefined");
2373
2373
  return;
2374
2374
  }
2375
- return await $s(this.viewer, t);
2375
+ return await Ws(this.viewer, t);
2376
2376
  }
2377
2377
  async bindImageryByTag(t, i, r) {
2378
2378
  if (!this.viewer) {
2379
2379
  console.warn("BindImageryByTag: viewer is undefined");
2380
2380
  return;
2381
2381
  }
2382
- return await Ws(this.viewer, t, i, r);
2382
+ return await As(this.viewer, t, i, r);
2383
2383
  }
2384
2384
  async unBindImageryByTag(t, i) {
2385
2385
  if (!this.viewer) {
2386
2386
  console.warn("UnBindImageryByTag: viewer is undefined");
2387
2387
  return;
2388
2388
  }
2389
- return await As(this.viewer, t, i);
2389
+ return await Us(this.viewer, t, i);
2390
2390
  }
2391
2391
  async unBindImageryById(t) {
2392
2392
  if (!this.viewer) {
2393
2393
  console.warn("UnBindImageryById: viewer is undefined");
2394
2394
  return;
2395
2395
  }
2396
- return await Us(this.viewer, t);
2396
+ return await Ns(this.viewer, t);
2397
2397
  }
2398
2398
  async getIdByComponentNameAndHitItem(t, i, r) {
2399
2399
  if (!this.viewer) {
2400
2400
  console.warn("GetIdByComponentNameAndHitItem: viewer is undefined");
2401
2401
  return;
2402
2402
  }
2403
- return await Ns(this.viewer, t, i, r);
2403
+ return await zs(this.viewer, t, i, r);
2404
2404
  }
2405
2405
  /**
2406
2406
  * @returns Promise(高度)
@@ -2412,7 +2412,7 @@ const K = class K extends Ee {
2412
2412
  console.warn("GetCameraRelativeHeight: viewer is undefined");
2413
2413
  return;
2414
2414
  }
2415
- return await zs(this.viewer, t);
2415
+ return await bs(this.viewer, t);
2416
2416
  }
2417
2417
  /**
2418
2418
  * 保存str到指定目录下
@@ -2431,21 +2431,21 @@ const K = class K extends Ee {
2431
2431
  console.warn("HighlightActorByTag: viewer is undefined");
2432
2432
  return;
2433
2433
  }
2434
- return await bs(this.viewer, t, i);
2434
+ return await Js(this.viewer, t, i);
2435
2435
  }
2436
2436
  async sendCustomMessage(t) {
2437
2437
  if (!this.viewer) {
2438
2438
  console.warn("SendCustomMessage: viewer is undefined");
2439
2439
  return;
2440
2440
  }
2441
- return await Js(this.viewer, t);
2441
+ return await Gs(this.viewer, t);
2442
2442
  }
2443
2443
  async getStatus() {
2444
2444
  if (!this.viewer) {
2445
2445
  console.warn("GetStatus:viewer is undefined");
2446
2446
  return;
2447
2447
  }
2448
- return await Gs(this.viewer);
2448
+ return await Ks(this.viewer);
2449
2449
  }
2450
2450
  /**
2451
2451
  * 获取场景中可替换的材质列表
@@ -2455,27 +2455,27 @@ const K = class K extends Ee {
2455
2455
  console.warn("GetTilesetMaterialIDList:viewer is undefined");
2456
2456
  return;
2457
2457
  }
2458
- return await Zs(this.viewer);
2458
+ return await qs(this.viewer);
2459
2459
  }
2460
2460
  //——————————————————————————————————————————
2461
2461
  //抽象函数实现------------------------------
2462
2462
  async pick(t, i, r) {
2463
2463
  if (!this.viewer) return;
2464
2464
  let n = t;
2465
- if (t && window.ue && this.container) {
2465
+ if (t && globalThis.ue && this.container) {
2466
2466
  const [s, o] = t, { x: h, y: a } = this.container.getBoundingClientRect();
2467
2467
  n = [h + s, a + o];
2468
2468
  }
2469
- return await hs(this.viewer, n, i, r);
2469
+ return await ps(this.viewer, n, i, r);
2470
2470
  }
2471
2471
  async pickPosition(t) {
2472
2472
  if (!this.viewer) return;
2473
2473
  let i = t;
2474
- if (t && window.ue && this.container) {
2474
+ if (t && globalThis.ue && this.container) {
2475
2475
  const [r, n] = t, { x: s, y: o } = this.container.getBoundingClientRect();
2476
2476
  i = [s + r, o + n];
2477
2477
  }
2478
- return await ps(this.viewer, i);
2478
+ return await vs(this.viewer, i);
2479
2479
  }
2480
2480
  async quickPickPosition(t) {
2481
2481
  return await this.pickPosition(t);
@@ -2501,7 +2501,7 @@ const K = class K extends Ee {
2501
2501
  [t[0], t[3], 0],
2502
2502
  [t[2], t[3], 0],
2503
2503
  [t[2], t[1], 0]
2504
- ], s = $r(n);
2504
+ ], s = Wr(n);
2505
2505
  if (!s) return;
2506
2506
  const { center: o, radius: h } = s, a = {
2507
2507
  distance: i ?? h,
@@ -2521,6 +2521,8 @@ const K = class K extends Ee {
2521
2521
  const { position: t, rotation: i } = this._statusInfo;
2522
2522
  return { position: t, rotation: i };
2523
2523
  }
2524
+ transformFlyParam(t, i) {
2525
+ }
2524
2526
  /**
2525
2527
  * @description 获取当前比例尺
2526
2528
  * @returns 比例尺
@@ -2535,7 +2537,7 @@ const K = class K extends Ee {
2535
2537
  */
2536
2538
  async changeToWalk(t, i = 4.2, r = 1.6) {
2537
2539
  if (!this.viewer) return;
2538
- const n = { mode: "Walk", position: t, jumpZVelocity: i, eyeHeight: r }, s = await b(this.viewer, n);
2540
+ const n = { mode: "Walk", position: t, jumpZVelocity: i, eyeHeight: r }, s = await H(this.viewer, n);
2539
2541
  return s && !s.error && (this._navigationMode.value = n.mode), s;
2540
2542
  }
2541
2543
  /**
@@ -2544,7 +2546,7 @@ const K = class K extends Ee {
2544
2546
  */
2545
2547
  async changeToMap() {
2546
2548
  if (!this.viewer) return;
2547
- const t = { mode: "Map" }, i = await b(this.viewer, t);
2549
+ const t = { mode: "Map" }, i = await H(this.viewer, t);
2548
2550
  return i && !i.error && (this._navigationMode.value = t.mode), i;
2549
2551
  }
2550
2552
  /**
@@ -2556,7 +2558,7 @@ const K = class K extends Ee {
2556
2558
  */
2557
2559
  async changeToRotateGlobe(t = 38, i = 1e7, r = 60) {
2558
2560
  if (!this.viewer) return;
2559
- const n = { mode: "RotateGlobe", latitude: t, height: i, cycleTime: r }, s = await b(this.viewer, n);
2561
+ const n = { mode: "RotateGlobe", latitude: t, height: i, cycleTime: r }, s = await H(this.viewer, n);
2560
2562
  return s && !s.error && (this._navigationMode.value = n.mode), s;
2561
2563
  }
2562
2564
  /**
@@ -2571,7 +2573,7 @@ const K = class K extends Ee {
2571
2573
  */
2572
2574
  async changeToLine(t, i = 10, r = 10, n = !0, s = 10, o = "auto") {
2573
2575
  if (!this.viewer) return;
2574
- const h = { mode: "Line", geoLineStringId: t, speed: i, heightOffset: r, loop: n, turnRateDPS: s, lineMode: o }, a = await b(this.viewer, h);
2576
+ const h = { mode: "Line", geoLineStringId: t, speed: i, heightOffset: r, loop: n, turnRateDPS: s, lineMode: o }, a = await H(this.viewer, h);
2575
2577
  return a && !a.error && (this._navigationMode.value = h.mode), a;
2576
2578
  }
2577
2579
  /**
@@ -2581,7 +2583,7 @@ const K = class K extends Ee {
2581
2583
  */
2582
2584
  async changeToUserDefined(t) {
2583
2585
  if (!this.viewer) return;
2584
- const i = { mode: "UserDefined", userDefinedPawn: t }, r = await b(this.viewer, i);
2586
+ const i = { mode: "UserDefined", userDefinedPawn: t }, r = await H(this.viewer, i);
2585
2587
  return r && !r.error && (this._navigationMode.value = i.mode), r;
2586
2588
  }
2587
2589
  /**
@@ -2601,7 +2603,7 @@ const K = class K extends Ee {
2601
2603
  orbitPeriod: r,
2602
2604
  heading: n,
2603
2605
  pitch: s
2604
- }, h = await b(this.viewer, o);
2606
+ }, h = await H(this.viewer, o);
2605
2607
  return h && !h.error && (this._navigationMode.value = o.mode), h;
2606
2608
  }
2607
2609
  /**
@@ -2613,79 +2615,79 @@ const K = class K extends Ee {
2613
2615
  */
2614
2616
  async changeToFollow(t, i = 0, r = 0, n = -30, s = !0) {
2615
2617
  if (!this.viewer) return;
2616
- const o = { mode: "Follow", objectId: t, distance: i, heading: r, pitch: n, relativeRotation: s }, h = await b(this.viewer, o);
2618
+ const o = { mode: "Follow", objectId: t, distance: i, heading: r, pitch: n, relativeRotation: s }, h = await H(this.viewer, o);
2617
2619
  return h && !h.error && (this._navigationMode.value = o.mode), h;
2618
2620
  }
2619
2621
  getFPS() {
2620
2622
  return this._statusInfo.fps;
2621
2623
  }
2622
2624
  async getVersion() {
2623
- const t = window.g_XE3CopyRights ?? {};
2625
+ const t = globalThis.g_XE3CopyRights ?? {};
2624
2626
  if (!this.viewer) return t;
2625
- const i = await Fs(this.viewer);
2627
+ const i = await Is(this.viewer);
2626
2628
  return t.esforue = i, t;
2627
2629
  }
2628
2630
  async getHeightByLonLat(t, i, r = "ECC_Visibility") {
2629
2631
  if (!this.viewer) return null;
2630
- const n = await vs(this.viewer, t, i, r);
2632
+ const n = await gs(this.viewer, t, i, r);
2631
2633
  return n && n.height !== void 0 ? n.height : null;
2632
2634
  }
2633
2635
  async getHeightsByLonLats(t, i = "ECC_Visibility") {
2634
2636
  return this.viewer ? await fs(this.viewer, t, i) : void 0;
2635
2637
  }
2636
2638
  async capture(t = 64, i = 64) {
2637
- return this.viewer ? await gs(this.viewer, t, i) : void 0;
2639
+ return this.viewer ? await ws(this.viewer, t, i) : void 0;
2638
2640
  }
2639
2641
  async partialCapture(t, i = [64, 64]) {
2640
2642
  if (!this.viewer) {
2641
2643
  console.warn("partialCapture:viewer is undefined");
2642
2644
  return;
2643
2645
  }
2644
- return await ws(this.viewer, t, i);
2646
+ return await ys(this.viewer, t, i);
2645
2647
  }
2646
2648
  async lonLatAltToScreenPosition(t) {
2647
2649
  if (!this.viewer) return;
2648
- const i = await ys(this.viewer, t);
2650
+ const i = await ms(this.viewer, t);
2649
2651
  return i && [i.X, i.Y];
2650
2652
  }
2651
2653
  //------------------------------抽象函数实现
2652
2654
  async setGlobalProperty(t) {
2653
2655
  if (this.viewer)
2654
- return await cs(this.viewer, t);
2656
+ return await us(this.viewer, t);
2655
2657
  }
2656
2658
  async startEditing(t, i, r) {
2657
2659
  r = Object.assign({ useKeyToSwitch: !0, callSource: "outer" }, r);
2658
2660
  const n = t.components.main ?? t;
2659
2661
  if (!n || !this.viewer || i == null) return;
2660
2662
  const s = Array.isArray(i) ? [...i] : [i];
2661
- return n.editingID = `${r.callSource}_${_()}`, await Ks(this.viewer, n.id, n.editingID, s, r.useKeyToSwitch);
2663
+ return n.editingID = `${r.callSource}_${M()}`, await Xs(this.viewer, n.id, n.editingID, s, r.useKeyToSwitch);
2662
2664
  }
2663
2665
  async stopEditing() {
2664
2666
  if (this.viewer)
2665
- return await Xs(this.viewer);
2667
+ return await Ys(this.viewer);
2666
2668
  }
2667
2669
  async moveObjects(t) {
2668
2670
  if (!this.viewer) return;
2669
- const i = [], r = _();
2671
+ const i = [], r = M();
2670
2672
  for (let n = 0; n < t.length; n++) {
2671
2673
  const s = t[n], o = s.components.main ?? s;
2672
2674
  o.editingID = r, o && i.push(o.id);
2673
2675
  }
2674
2676
  if (i.length !== 0)
2675
- return await Ys(this.viewer, i, r);
2677
+ return await Zs(this.viewer, i, r);
2676
2678
  }
2677
2679
  };
2678
- v(K, "type", K.register("ESUeViewer", K)), v(K, "defaults", { ...Qn });
2680
+ v(K, "type", K.register("ESUeViewer", K)), v(K, "defaults", { ...Vn });
2679
2681
  let J = K;
2680
- ((l) => {
2681
- l.createDefaultProps = () => ({
2682
+ ((d) => {
2683
+ d.createDefaultProps = () => ({
2682
2684
  ...Ee.createDefaultProps(),
2683
2685
  /**
2684
2686
  * 新增UE属性步骤!!
2685
2687
  * 1. createReactProps 中定义属性
2686
2688
  * 2. reactPropDefaults 中定义默认值
2687
2689
  */
2688
- ...Cr(),
2690
+ ...Fr(),
2689
2691
  //分辨率缩放比例
2690
2692
  resolutionScale: 1,
2691
2693
  autoReconnect: !1,
@@ -2696,8 +2698,8 @@ let J = K;
2696
2698
  customMessageListening: void 0
2697
2699
  });
2698
2700
  })(J || (J = {}));
2699
- Wr(J.prototype, J.createDefaultProps);
2700
- class at extends G {
2701
+ Ar(J.prototype, J.createDefaultProps);
2702
+ class lt extends G {
2701
2703
  constructor(e, t) {
2702
2704
  super(e, t);
2703
2705
  const i = t.viewer;
@@ -2706,10 +2708,10 @@ class at extends G {
2706
2708
  e.components.main || this.d(this.createdEvent.don(() => {
2707
2709
  const n = this.constructor.propValFuncs, s = e.defaultProps, o = Object.keys(s).filter((u) => n[u] !== null);
2708
2710
  o.push(...this.constructor.forceUeUpdateProps);
2709
- const h = e.constructor.defaults, a = { val: {} }, g = [];
2711
+ const h = e.constructor.defaults, a = { val: {} }, f = [];
2710
2712
  for (let u of o) {
2711
- const c = u + "Changed", f = e[c];
2712
- g.push(f);
2713
+ const c = u + "Changed", g = e[c];
2714
+ f.push(g);
2713
2715
  const w = n[u];
2714
2716
  if (w === null)
2715
2717
  throw console.error("vf === null error"), new Error("vf === null error");
@@ -2722,7 +2724,7 @@ class at extends G {
2722
2724
  }
2723
2725
  a.val[u] = C;
2724
2726
  };
2725
- y(), this.d(f.don(y));
2727
+ y(), this.d(g.don(y));
2726
2728
  }
2727
2729
  const p = () => {
2728
2730
  i.callUeFunc({
@@ -2732,10 +2734,10 @@ class at extends G {
2732
2734
  ...a.val
2733
2735
  }
2734
2736
  }), a.val = {};
2735
- }, d = this.dv(P(...g));
2736
- this.d(d.don(p)), this.d(r.changed.don(p)), this.d(e.flushEvent.don(() => d.flush()));
2737
+ }, l = this.dv(L(...f));
2738
+ this.d(l.don(p)), this.d(r.changed.don(p)), this.d(e.flushEvent.don(() => l.flush()));
2737
2739
  })), e.components.main || (this.d(() => {
2738
- r.value && Fr(i, e.id);
2740
+ r.value && Ir(i, e.id);
2739
2741
  }), i.callUeFunc({
2740
2742
  f: "create",
2741
2743
  p: {
@@ -2748,15 +2750,15 @@ class at extends G {
2748
2750
  }
2749
2751
  }
2750
2752
  // null 表示不设置,undefined表示不做任何转换
2751
- v(at, "propValFuncs", {
2753
+ v(lt, "propValFuncs", {
2752
2754
  ref: null,
2753
2755
  devTags: null,
2754
2756
  extras: null,
2755
2757
  execOnceFuncStr: null,
2756
2758
  updateFuncStr: null,
2757
2759
  toDestroyFuncStr: null
2758
- }), v(at, "forceUeUpdateProps", []);
2759
- class M extends at {
2760
+ }), v(lt, "forceUeUpdateProps", []);
2761
+ class D extends lt {
2760
2762
  constructor(e, t) {
2761
2763
  super(e, t);
2762
2764
  const i = t.viewer;
@@ -2780,7 +2782,7 @@ class M extends at {
2780
2782
  })));
2781
2783
  }
2782
2784
  }
2783
- class I extends M {
2785
+ class E extends D {
2784
2786
  constructor(e, t) {
2785
2787
  super(e, t);
2786
2788
  const i = t.viewer;
@@ -2794,7 +2796,7 @@ class I extends M {
2794
2796
  rotation: e.rotation
2795
2797
  }
2796
2798
  });
2797
- }, n = this.dv(P(
2799
+ }, n = this.dv(L(
2798
2800
  e.positionChanged,
2799
2801
  e.rotationChanged,
2800
2802
  e.editingChanged
@@ -2803,14 +2805,14 @@ class I extends M {
2803
2805
  setTimeout(r, 0);
2804
2806
  })), this.d(e.smoothMoveEvent.don((h, a) => {
2805
2807
  De(i, e.id, h, a);
2806
- })), this.d(e.smoothMoveWithRotationEvent.don((h, a, g) => {
2807
- Le(i, e.id, h, a, g);
2808
- })), this.d(e.smoothMoveOnGroundEvent.don((h, a, g, p) => {
2809
- Pe(i, e.id, h, a, p, g);
2810
- })), this.d(e.smoothMoveWithRotationOnGroundEvent.don((h, a, g, p, d) => {
2811
- ke(i, e.id, h, a, g, p, d);
2808
+ })), this.d(e.smoothMoveWithRotationEvent.don((h, a, f) => {
2809
+ Pe(i, e.id, h, a, f);
2810
+ })), this.d(e.smoothMoveOnGroundEvent.don((h, a, f, p) => {
2811
+ Le(i, e.id, h, a, p, f);
2812
+ })), this.d(e.smoothMoveWithRotationOnGroundEvent.don((h, a, f, p, l) => {
2813
+ ke(i, e.id, h, a, f, p, l);
2812
2814
  })), this.d(e.smoothMoveKeepPitchEvent.don(async (h, a) => {
2813
- const g = await i.callUeFunc({
2815
+ const f = await i.callUeFunc({
2814
2816
  f: "SmoothMoveKeepPitch",
2815
2817
  p: {
2816
2818
  id: e.id,
@@ -2818,29 +2820,29 @@ class I extends M {
2818
2820
  Time: a
2819
2821
  }
2820
2822
  });
2821
- g.error && console.error("SmoothMoveKeepPitch:", g.error);
2823
+ f.error && console.error("SmoothMoveKeepPitch:", f.error);
2822
2824
  })), this.d(e.automaticLandingEvent.don((h) => {
2823
2825
  const a = [e.position[0], e.position[1]];
2824
- t.getHeightByLonLat(e.position[0], e.position[1], "Visibility").then((g) => {
2825
- g !== null && (e.position = [...a, g], e.collision = h);
2826
+ t.getHeightByLonLat(e.position[0], e.position[1], "Visibility").then((f) => {
2827
+ f !== null && (e.position = [...a, f], e.collision = h);
2826
2828
  });
2827
2829
  }));
2828
- const s = async (h, a, g, p) => {
2829
- const { viewer: d } = h;
2830
- if (!d) {
2830
+ const s = async (h, a, f, p) => {
2831
+ const { viewer: l } = h;
2832
+ if (!l) {
2831
2833
  console.error("SmoothMoveRelatively: ueViewer.viewer is undefined");
2832
2834
  return;
2833
2835
  }
2834
- const u = await d.callUeFunc({
2836
+ const u = await l.callUeFunc({
2835
2837
  f: "SmoothMoveRelatively",
2836
- p: { id: a, RelativePosition: g, Time: p }
2838
+ p: { id: a, RelativePosition: f, Time: p }
2837
2839
  });
2838
2840
  return u.error && console.error("SmoothMoveRelatively:", u.error), u;
2839
2841
  };
2840
2842
  this.d(e.smoothMoveRelativelyEvent.don((h, a) => {
2841
2843
  s(t, e.id, h, a);
2842
2844
  }));
2843
- const o = async (h, a, g, p, d) => {
2845
+ const o = async (h, a, f, p, l) => {
2844
2846
  const { viewer: u } = h;
2845
2847
  if (!u) {
2846
2848
  console.error("SmoothMoveRelativelyWithRotation: ueViewer.viewer is undefined");
@@ -2848,16 +2850,16 @@ class I extends M {
2848
2850
  }
2849
2851
  const c = await u.callUeFunc({
2850
2852
  f: "SmoothMoveRelativelyWithRotation",
2851
- p: { id: a, RelativePosition: g, NewRotation: p, Time: d }
2853
+ p: { id: a, RelativePosition: f, NewRotation: p, Time: l }
2852
2854
  });
2853
2855
  return c.error && console.error("SmoothMoveRelativelyWithRotation:", c.error), c;
2854
2856
  };
2855
- this.d(e.smoothMoveRelativelyWithRotationEvent.don((h, a, g) => {
2856
- o(t, e.id, h, a, g);
2857
+ this.d(e.smoothMoveRelativelyWithRotationEvent.don((h, a, f) => {
2858
+ o(t, e.id, h, a, f);
2857
2859
  }));
2858
2860
  }
2859
2861
  }
2860
- class D extends M {
2862
+ class B extends D {
2861
2863
  constructor(e, t) {
2862
2864
  super(e, t);
2863
2865
  const i = t.viewer;
@@ -2870,7 +2872,7 @@ class D extends M {
2870
2872
  points: e.points
2871
2873
  }
2872
2874
  });
2873
- }, n = this.dv(P(
2875
+ }, n = this.dv(L(
2874
2876
  e.pointsChanged,
2875
2877
  e.editingChanged
2876
2878
  ));
@@ -2879,8 +2881,8 @@ class D extends M {
2879
2881
  }));
2880
2882
  }
2881
2883
  }
2882
- v(D, "propValFuncs", {
2883
- ...M.propValFuncs,
2884
+ v(B, "propValFuncs", {
2885
+ ...D.propValFuncs,
2884
2886
  pointStyle: (e) => ({
2885
2887
  ...e,
2886
2888
  materialParams: JSON.stringify(e.materialParams ?? {})
@@ -2894,7 +2896,7 @@ v(D, "propValFuncs", {
2894
2896
  materialParams: JSON.stringify(e.materialParams ?? {})
2895
2897
  })
2896
2898
  });
2897
- class z extends I {
2899
+ class z extends E {
2898
2900
  constructor(e, t) {
2899
2901
  super(e, t), t.viewer && this.d(t.widgetEvent.don((r) => {
2900
2902
  if (r.objId !== e.id) return;
@@ -2903,13 +2905,13 @@ class z extends I {
2903
2905
  }));
2904
2906
  }
2905
2907
  }
2906
- class Sr extends I {
2908
+ class Tr extends E {
2907
2909
  constructor(e, t) {
2908
2910
  super(e, t), t.viewer;
2909
2911
  }
2910
2912
  }
2911
- v(Sr, "propValFuncs", {
2912
- ...I.propValFuncs,
2913
+ v(Tr, "propValFuncs", {
2914
+ ...E.propValFuncs,
2913
2915
  pointStyle: (e) => ({
2914
2916
  ...e,
2915
2917
  materialParams: JSON.stringify(e.materialParams ?? {})
@@ -2923,13 +2925,13 @@ v(Sr, "propValFuncs", {
2923
2925
  materialParams: JSON.stringify(e.materialParams ?? {})
2924
2926
  })
2925
2927
  });
2926
- class Ke extends Sr {
2928
+ class Ke extends Tr {
2927
2929
  constructor(e, t) {
2928
2930
  super(e, t), t.viewer;
2929
2931
  }
2930
2932
  }
2931
- const qe = (l) => {
2932
- switch (l) {
2933
+ const qe = (d) => {
2934
+ switch (d) {
2933
2935
  case 0:
2934
2936
  return "成功绑定";
2935
2937
  case 1:
@@ -2941,7 +2943,7 @@ const qe = (l) => {
2941
2943
  default:
2942
2944
  return "未知错误";
2943
2945
  }
2944
- }, ct = class ct extends G {
2946
+ }, ut = class ut extends G {
2945
2947
  constructor(t, i) {
2946
2948
  super(t, i);
2947
2949
  v(this, "_styleColor", this.dv(W([])));
@@ -2978,7 +2980,7 @@ const qe = (l) => {
2978
2980
  materialOverrideMap: t.materialOverrideMap
2979
2981
  }
2980
2982
  });
2981
- }, h = this.dv(P(
2983
+ }, h = this.dv(L(
2982
2984
  t.urlChanged,
2983
2985
  t.showChanged,
2984
2986
  t.flyToParamChanged,
@@ -2999,10 +3001,10 @@ const qe = (l) => {
2999
3001
  o(), this.d(h.don(o)), Reflect.has(t, "colorMode") && this.d(t.colorModeChanged.don(() => o()));
3000
3002
  const a = this.dv(W(void 0));
3001
3003
  {
3002
- const p = this.dv(P(
3004
+ const p = this.dv(L(
3003
3005
  t.actorTagChanged,
3004
3006
  t.urlChanged
3005
- )), d = () => {
3007
+ )), l = () => {
3006
3008
  t.actorTag ? a.value = {
3007
3009
  type: "ActorTag",
3008
3010
  actorTag: t.actorTag
@@ -3011,137 +3013,137 @@ const qe = (l) => {
3011
3013
  url: t.url
3012
3014
  } : a.value = void 0, t.editing = !1;
3013
3015
  };
3014
- d(), this.d(p.don(d));
3016
+ l(), this.d(p.don(l));
3015
3017
  }
3016
- const g = async () => {
3018
+ const f = async () => {
3017
3019
  const { id: p } = t;
3018
3020
  if (n !== void 0) {
3019
3021
  n = void 0;
3020
3022
  try {
3021
- const d = await i.unBind3DTilesetById(p);
3022
- if (!d) return;
3023
- if (d.error !== "") {
3024
- console.warn(`UeES3DTileset UnBind3DTilesetById: ${d.error}`);
3023
+ const l = await i.unBind3DTilesetById(p);
3024
+ if (!l) return;
3025
+ if (l.error !== "") {
3026
+ console.warn(`UeES3DTileset UnBind3DTilesetById: ${l.error}`);
3025
3027
  return;
3026
3028
  }
3027
- } catch (d) {
3028
- console.warn(`UeES3DTileset UnBind3DTilesetById: ${d}`);
3029
+ } catch (l) {
3030
+ console.warn(`UeES3DTileset UnBind3DTilesetById: ${l}`);
3029
3031
  return;
3030
3032
  }
3031
3033
  }
3032
3034
  if (s !== void 0) {
3033
3035
  s = void 0;
3034
3036
  try {
3035
- const d = await r.callUeFunc({ f: "destroy", p: { id: p } });
3036
- if (!d) return;
3037
- if (d.error !== "") {
3038
- console.warn(`UeES3DTileset Destroy: ${d.error}`);
3037
+ const l = await r.callUeFunc({ f: "destroy", p: { id: p } });
3038
+ if (!l) return;
3039
+ if (l.error !== "") {
3040
+ console.warn(`UeES3DTileset Destroy: ${l.error}`);
3039
3041
  return;
3040
3042
  }
3041
- } catch (d) {
3042
- console.warn(`UeES3DTileset Destroy: ${d}`);
3043
+ } catch (l) {
3044
+ console.warn(`UeES3DTileset Destroy: ${l}`);
3043
3045
  return;
3044
3046
  }
3045
3047
  }
3046
3048
  };
3047
3049
  this.d(() => {
3048
- g();
3050
+ f();
3049
3051
  });
3050
3052
  {
3051
3053
  const p = this.dv(Te(async (u) => {
3052
3054
  if (a.value === void 0) {
3053
- await u.promise(g());
3055
+ await u.promise(f());
3054
3056
  return;
3055
3057
  }
3056
3058
  if (a.value.type === "ActorTag") {
3057
3059
  const { actorTag: c } = a.value;
3058
- if (n !== c && await u.promise(g()), n !== void 0 || c === void 0) return;
3060
+ if (n !== c && await u.promise(f()), n !== void 0 || c === void 0) return;
3059
3061
  try {
3060
3062
  n = c;
3061
- const f = await u.promise(i.bind3DTilesetByTag(t.id, c));
3062
- if (!f) return;
3063
- if (f.error !== "") {
3064
- console.warn(`UeES3DTileset Bind3DTilesetByTag: ${f.error}`);
3063
+ const g = await u.promise(i.bind3DTilesetByTag(t.id, c));
3064
+ if (!g) return;
3065
+ if (g.error !== "") {
3066
+ console.warn(`UeES3DTileset Bind3DTilesetByTag: ${g.error}`);
3065
3067
  return;
3066
3068
  }
3067
- if (f.re.type !== 0)
3068
- if (f.re.type === 1)
3069
- console.warn(`UeES3DTileset Bind3DTilesetByTag: ${qe(f.re.type)}`);
3069
+ if (g.re.type !== 0)
3070
+ if (g.re.type === 1)
3071
+ console.warn(`UeES3DTileset Bind3DTilesetByTag: ${qe(g.re.type)}`);
3070
3072
  else {
3071
- console.warn(`UeES3DTileset Bind3DTilesetByTag: ${qe(f.re.type)}`);
3073
+ console.warn(`UeES3DTileset Bind3DTilesetByTag: ${qe(g.re.type)}`);
3072
3074
  return;
3073
3075
  }
3074
- } catch (f) {
3075
- console.warn(`UeES3DTileset Bind3DTilesetByTag: ${f}`);
3076
+ } catch (g) {
3077
+ console.warn(`UeES3DTileset Bind3DTilesetByTag: ${g}`);
3076
3078
  return;
3077
3079
  }
3078
3080
  } else if (a.value.type === "CreatedUrl") {
3079
3081
  const { url: c } = a.value;
3080
- if (c !== s && await g(), s !== void 0 || c === void 0) return;
3082
+ if (c !== s && await f(), s !== void 0 || c === void 0) return;
3081
3083
  try {
3082
3084
  s = c;
3083
- const f = await u.promise(r.callUeFunc({
3085
+ const g = await u.promise(r.callUeFunc({
3084
3086
  f: "create",
3085
3087
  p: {
3086
3088
  type: t.typeName,
3087
3089
  id: t.id
3088
3090
  }
3089
3091
  }));
3090
- if (!f) return;
3091
- if (f.error !== "") {
3092
- console.warn(`UeES3DTileset create: ${f.error}`);
3092
+ if (!g) return;
3093
+ if (g.error !== "") {
3094
+ console.warn(`UeES3DTileset create: ${g.error}`);
3093
3095
  return;
3094
3096
  }
3095
- } catch (f) {
3096
- console.warn(`UeES3DTileset create: ${f}`);
3097
+ } catch (g) {
3098
+ console.warn(`UeES3DTileset create: ${g}`);
3097
3099
  return;
3098
3100
  }
3099
3101
  }
3100
3102
  await u.promise(o());
3101
- })), d = async () => {
3103
+ })), l = async () => {
3102
3104
  p.restart();
3103
3105
  };
3104
- d(), this.d(a.changed.don(d));
3106
+ l(), this.d(a.changed.don(l));
3105
3107
  }
3106
3108
  this.d(t.refreshTilesetEvent.don(() => {
3107
- Vn(r, t.id);
3108
- })), this.d(t.flyToEvent.don(async (p, d) => {
3109
+ On(r, t.id);
3110
+ })), this.d(t.flyToEvent.don(async (p, l) => {
3109
3111
  if (!n && !s) return;
3110
3112
  const u = await we(r, t.id, p);
3111
3113
  let c = "over";
3112
- u === void 0 ? c = "error" : u.endType === 0 ? c = "over" : u.endType === 1 && (c = "cancelled"), t.flyOverEvent.emit(d, c, i);
3114
+ u === void 0 ? c = "error" : u.endType === 0 ? c = "over" : u.endType === 1 && (c = "cancelled"), t.flyOverEvent.emit(l, c, i);
3113
3115
  })), this.d(t.calcFlyToParamEvent.don(() => {
3114
3116
  !n && !s || dt(r, t.id);
3115
3117
  })), this.d(t.calcFlyInParamEvent.don(async () => {
3116
3118
  if (!n && !s || !i.actived) return;
3117
3119
  const p = await i.getCurrentCameraInfo();
3118
3120
  if (!p) return;
3119
- const { position: d, rotation: u } = p;
3120
- t.flyInParam = { position: d, rotation: u, flyDuration: 1 };
3121
+ const { position: l, rotation: u } = p;
3122
+ t.flyInParam = { position: l, rotation: u, flyDuration: 1 };
3121
3123
  })), this.d(i.propChanged.don((p) => {
3122
- !n && !s || p.objId === t.id && Object.keys(p.props).forEach((d) => {
3123
- const u = p.props[d] === null ? void 0 : p.props[d];
3124
- t[d] = u;
3124
+ !n && !s || p.objId === t.id && Object.keys(p.props).forEach((l) => {
3125
+ const u = p.props[l] === null ? void 0 : p.props[l];
3126
+ t[l] = u;
3125
3127
  });
3126
3128
  })), this.d(i.objectEvent.don((p) => {
3127
3129
  !n && !s || p.id !== t.id || p.type !== "3DTilesetReady" || t.tilesetReady.emit(p.p);
3128
3130
  }));
3129
3131
  {
3130
- const p = async (f, w) => {
3132
+ const p = async (g, w) => {
3131
3133
  if (!n && !s) return;
3132
3134
  const y = await r.callUeFunc({
3133
3135
  f: "SetFeatureColor",
3134
- p: { id: t.id, featureName: f, json: w }
3136
+ p: { id: t.id, featureName: g, json: w }
3135
3137
  });
3136
3138
  if (y && y.error !== "") {
3137
3139
  console.warn(`UeES3DTileset SetFeatureColor: ${y.error}`);
3138
3140
  return;
3139
3141
  }
3140
- }, d = async (f, w) => {
3142
+ }, l = async (g, w) => {
3141
3143
  if (!n && !s) return;
3142
3144
  const y = await r.callUeFunc({
3143
3145
  f: "SetFeatureVisable",
3144
- p: { id: t.id, featureName: f, json: w }
3146
+ p: { id: t.id, featureName: g, json: w }
3145
3147
  });
3146
3148
  if (y && y.error !== "") {
3147
3149
  console.warn(`UeES3DTileset SetFeatureVisable: ${y.error}`);
@@ -3149,35 +3151,35 @@ const qe = (l) => {
3149
3151
  }
3150
3152
  }, u = async () => {
3151
3153
  if (!n && !s) return;
3152
- const f = await r.callUeFunc({
3154
+ const g = await r.callUeFunc({
3153
3155
  f: "ResetFeatureStyle",
3154
3156
  p: { id: t.id }
3155
3157
  });
3156
- if (f && f.error !== "") {
3157
- console.warn(`UeES3DTileset ResetFeatureStyle: ${f.error}`);
3158
+ if (g && g.error !== "") {
3159
+ console.warn(`UeES3DTileset ResetFeatureStyle: ${g.error}`);
3158
3160
  return;
3159
3161
  }
3160
- }, c = async (f) => {
3162
+ }, c = async (g) => {
3161
3163
  if (!n && !s) return;
3162
3164
  const w = await r.callUeFunc({
3163
3165
  f: "SetFeatureStyle",
3164
- p: { id: t.id, json: f }
3166
+ p: { id: t.id, json: g }
3165
3167
  });
3166
3168
  if (w && w.error !== "") {
3167
3169
  console.warn(`UeES3DTileset SetFeatureStyle: ${w.error}`);
3168
3170
  return;
3169
3171
  }
3170
3172
  };
3171
- this.d(t.setFeatureColorEvent.don((f, w) => {
3173
+ this.d(t.setFeatureColorEvent.don((g, w) => {
3172
3174
  const y = [...this.styleColor, ...w];
3173
- this.styleColor = [...y], p(f, y);
3174
- })), this.d(t.setFeatureVisableEvent.don((f, w) => {
3175
+ this.styleColor = [...y], p(g, y);
3176
+ })), this.d(t.setFeatureVisableEvent.don((g, w) => {
3175
3177
  const y = [...this.styleVisable, ...w];
3176
- this.styleVisable = [...y], d(f, y);
3178
+ this.styleVisable = [...y], l(g, y);
3177
3179
  })), this.d(t.resetFeatureStyleEvent.don(() => {
3178
3180
  u(), this.styleColor = [], this.styleVisable = [];
3179
- })), this.d(t.setFeatureStyleEvent.don((f) => {
3180
- c(f);
3181
+ })), this.d(t.setFeatureStyleEvent.don((g) => {
3182
+ c(g);
3181
3183
  }));
3182
3184
  }
3183
3185
  {
@@ -3187,13 +3189,13 @@ const qe = (l) => {
3187
3189
  return;
3188
3190
  }
3189
3191
  try {
3190
- const d = await r.callUeFunc({
3192
+ const l = await r.callUeFunc({
3191
3193
  f: "GetFeatureTable",
3192
3194
  p: { id: t.id }
3193
3195
  });
3194
- d.error !== "" && console.warn(`UeES3DTileset GetFeatureTable: ${d.error}`), t._featureTableResultEvent.emit(d.re.table);
3195
- } catch (d) {
3196
- console.warn(`UeES3DTileset GetFeatureTable: ${d}`), t._featureTableResultEvent.emit(void 0);
3196
+ l.error !== "" && console.warn(`UeES3DTileset GetFeatureTable: ${l.error}`), t._featureTableResultEvent.emit(l.re.table);
3197
+ } catch (l) {
3198
+ console.warn(`UeES3DTileset GetFeatureTable: ${l}`), t._featureTableResultEvent.emit(void 0);
3197
3199
  }
3198
3200
  };
3199
3201
  this.d(t.getFeatureTableEvent.don(() => {
@@ -3207,17 +3209,17 @@ const qe = (l) => {
3207
3209
  return;
3208
3210
  }
3209
3211
  try {
3210
- const d = await r.callUeFunc({
3212
+ const l = await r.callUeFunc({
3211
3213
  f: "GetMaterialNameList",
3212
3214
  p: { id: t.id }
3213
3215
  });
3214
- d.error !== "" && console.warn(`UeES3DTileset GetMaterialNameList: ${d.error}`), t.getMaterialNameListEvent.emit(d.re.materialNameList);
3215
- } catch (d) {
3216
- console.warn(`UeES3DTileset GetMaterialNameList: ${d}`), t.getMaterialNameListEvent.emit(void 0);
3216
+ l.error !== "" && console.warn(`UeES3DTileset GetMaterialNameList: ${l.error}`), t.getMaterialNameListEvent.emit(l.re.materialNameList);
3217
+ } catch (l) {
3218
+ console.warn(`UeES3DTileset GetMaterialNameList: ${l}`), t.getMaterialNameListEvent.emit(void 0);
3217
3219
  }
3218
3220
  };
3219
- this.ad(t.getMaterialNameListEvent.don((d) => {
3220
- d == "start" && p();
3221
+ this.ad(t.getMaterialNameListEvent.don((l) => {
3222
+ l == "start" && p();
3221
3223
  }));
3222
3224
  }
3223
3225
  }
@@ -3234,10 +3236,10 @@ const qe = (l) => {
3234
3236
  this._styleVisable.value = t;
3235
3237
  }
3236
3238
  };
3237
- v(ct, "type", ct.register("ESUeViewer", me.type, ct));
3238
- let Ue = ct;
3239
- const Qe = (l) => {
3240
- switch (l) {
3239
+ v(ut, "type", ut.register("ESUeViewer", me.type, ut));
3240
+ let Ue = ut;
3241
+ const Qe = (d) => {
3242
+ switch (d) {
3241
3243
  case 0:
3242
3244
  return "成功绑定";
3243
3245
  case 1:
@@ -3251,7 +3253,7 @@ const Qe = (l) => {
3251
3253
  default:
3252
3254
  return "未知错误";
3253
3255
  }
3254
- }, ut = class ut extends G {
3256
+ }, ht = class ht extends G {
3255
3257
  constructor(e, t) {
3256
3258
  super(e, t);
3257
3259
  const i = t.viewer;
@@ -3260,14 +3262,14 @@ const Qe = (l) => {
3260
3262
  return;
3261
3263
  }
3262
3264
  let r, n;
3263
- const s = this.dv(W(void 0)), o = this.ad(be(""));
3265
+ const s = this.dv(W(void 0)), o = this.ad(He(""));
3264
3266
  {
3265
3267
  const p = () => {
3266
3268
  if (typeof e.url == "string")
3267
- o.value = E.context.getStrFromEnv(e.url);
3269
+ o.value = I.context.getStrFromEnv(e.url);
3268
3270
  else {
3269
- const d = e.url;
3270
- d.url = E.context.getStrFromEnv(d.url), o.value = d;
3271
+ const l = e.url;
3272
+ l.url = I.context.getStrFromEnv(l.url), o.value = l;
3271
3273
  }
3272
3274
  };
3273
3275
  p(), this.ad(e.urlChanged.don(p));
@@ -3276,8 +3278,8 @@ const Qe = (l) => {
3276
3278
  if (!r && !n) return;
3277
3279
  let p = e.targetID ?? U.defaults.targetID;
3278
3280
  if (p && p != "") {
3279
- const d = E.getSceneObject(p);
3280
- p = d ? (d.components.main ?? d).id : p;
3281
+ const l = I.getSceneObject(p);
3282
+ p = l ? (l.components.main ?? l).id : p;
3281
3283
  }
3282
3284
  await i.callUeFunc({
3283
3285
  f: "update",
@@ -3299,7 +3301,7 @@ const Qe = (l) => {
3299
3301
  splitDirection: e.splitDirection ?? U.defaults.splitDirection
3300
3302
  }
3301
3303
  });
3302
- }, a = this.dv(P(
3304
+ }, a = this.dv(L(
3303
3305
  e.showChanged,
3304
3306
  o.changed,
3305
3307
  e.flyToParamChanged,
@@ -3316,52 +3318,52 @@ const Qe = (l) => {
3316
3318
  e.splitDirectionChanged
3317
3319
  ));
3318
3320
  this.d(a.don(h));
3319
- const g = async () => {
3321
+ const f = async () => {
3320
3322
  const { id: p } = e;
3321
3323
  if (r !== void 0) {
3322
3324
  r = void 0;
3323
3325
  try {
3324
- const d = await t.unBindImageryById(p);
3325
- if (!d) return;
3326
- if (d.error !== "") {
3327
- console.warn(`UeESImageryLayer UnImageryByID: ${d.error}`);
3326
+ const l = await t.unBindImageryById(p);
3327
+ if (!l) return;
3328
+ if (l.error !== "") {
3329
+ console.warn(`UeESImageryLayer UnImageryByID: ${l.error}`);
3328
3330
  return;
3329
3331
  }
3330
- } catch (d) {
3331
- console.warn(`UeESImageryLayer UnImageryByID promise: ${d}`);
3332
+ } catch (l) {
3333
+ console.warn(`UeESImageryLayer UnImageryByID promise: ${l}`);
3332
3334
  return;
3333
3335
  }
3334
3336
  }
3335
3337
  if (n !== void 0) {
3336
3338
  n = void 0;
3337
3339
  try {
3338
- const d = await i.callUeFunc({ f: "destroy", p: { id: p, test: "UeESImageryLayer" } });
3339
- if (!d) return;
3340
- if (d.error !== "") {
3341
- console.warn(`UeESImageryLayer Destroy: ${d.error}`);
3340
+ const l = await i.callUeFunc({ f: "destroy", p: { id: p, test: "UeESImageryLayer" } });
3341
+ if (!l) return;
3342
+ if (l.error !== "") {
3343
+ console.warn(`UeESImageryLayer Destroy: ${l.error}`);
3342
3344
  return;
3343
3345
  }
3344
- } catch (d) {
3345
- console.warn(`UeESImageryLayer Destroy promise: ${d}`);
3346
+ } catch (l) {
3347
+ console.warn(`UeESImageryLayer Destroy promise: ${l}`);
3346
3348
  return;
3347
3349
  }
3348
3350
  }
3349
3351
  };
3350
3352
  this.d(() => {
3351
- g();
3353
+ f();
3352
3354
  });
3353
3355
  {
3354
3356
  const p = this.dv(Te(async (u) => {
3355
3357
  if (s.value === void 0) {
3356
- await u.promise(g());
3358
+ await u.promise(f());
3357
3359
  return;
3358
3360
  }
3359
3361
  if (s.value.type === "ActorTag") {
3360
- const { actorTag: c, componentTag: f } = s.value;
3361
- if (r !== c && await u.promise(g()), r !== void 0 || c === void 0) return;
3362
+ const { actorTag: c, componentTag: g } = s.value;
3363
+ if (r !== c && await u.promise(f()), r !== void 0 || c === void 0) return;
3362
3364
  try {
3363
3365
  r = c;
3364
- const w = await u.promise(t.bindImageryByTag(e.id, c, f));
3366
+ const w = await u.promise(t.bindImageryByTag(e.id, c, g));
3365
3367
  if (!w) return;
3366
3368
  if (w.error !== "") {
3367
3369
  console.warn(`ESImageryLayer BindImageryByTag: ${w.error}`);
@@ -3380,19 +3382,19 @@ const Qe = (l) => {
3380
3382
  }
3381
3383
  } else if (s.value.type === "CreatedUrl") {
3382
3384
  const { url: c } = s.value;
3383
- if (c !== n && await u.promise(g()), n !== void 0 || c === void 0) return;
3385
+ if (c !== n && await u.promise(f()), n !== void 0 || c === void 0) return;
3384
3386
  try {
3385
3387
  n = c;
3386
- const f = await u.promise(i.callUeFunc({
3388
+ const g = await u.promise(i.callUeFunc({
3387
3389
  f: "create",
3388
3390
  p: {
3389
3391
  type: "ESImageryLayer",
3390
3392
  id: e.id
3391
3393
  }
3392
3394
  }));
3393
- if (!f) return;
3394
- if (f.error !== "") {
3395
- console.warn(`ESImageryLayer create: ${f.error}`);
3395
+ if (!g) return;
3396
+ if (g.error !== "") {
3397
+ console.warn(`ESImageryLayer create: ${g.error}`);
3396
3398
  return;
3397
3399
  }
3398
3400
  } catch {
@@ -3401,17 +3403,17 @@ const Qe = (l) => {
3401
3403
  }
3402
3404
  }
3403
3405
  await u.promise(h());
3404
- })), d = async () => {
3406
+ })), l = async () => {
3405
3407
  p.restart();
3406
3408
  };
3407
- d(), this.d(s.changed.don(d));
3409
+ l(), this.d(s.changed.don(l));
3408
3410
  }
3409
3411
  {
3410
- const p = this.dv(P(
3412
+ const p = this.dv(L(
3411
3413
  e.actorTagChanged,
3412
3414
  o.changed,
3413
3415
  e.componentTagChanged
3414
- )), d = () => {
3416
+ )), l = () => {
3415
3417
  e.actorTag && e.componentTag ? s.value = {
3416
3418
  type: "ActorTag",
3417
3419
  actorTag: e.actorTag,
@@ -3421,38 +3423,38 @@ const Qe = (l) => {
3421
3423
  url: o.value
3422
3424
  } : s.value = void 0;
3423
3425
  };
3424
- d(), this.d(p.don(d));
3426
+ l(), this.d(p.don(l));
3425
3427
  }
3426
- this.d(e.flyToEvent.don(async (p, d) => {
3428
+ this.d(e.flyToEvent.don(async (p, l) => {
3427
3429
  if (!r && !n) return;
3428
3430
  const u = await we(i, e.id, p);
3429
3431
  let c = "over";
3430
- u === void 0 ? c = "error" : u.endType === 0 ? c = "over" : u.endType === 1 && (c = "cancelled"), e.flyOverEvent.emit(d, c, t);
3431
- })), this.d(e.flyInEvent.don(async (p, d) => {
3432
- var f, w;
3432
+ u === void 0 ? c = "error" : u.endType === 0 ? c = "over" : u.endType === 1 && (c = "cancelled"), e.flyOverEvent.emit(l, c, t);
3433
+ })), this.d(e.flyInEvent.don(async (p, l) => {
3434
+ var g, w;
3433
3435
  if (!r && !n) return;
3434
- const u = await Re(i, e.id, (f = e.flyInParam) == null ? void 0 : f.position, (w = e.flyInParam) == null ? void 0 : w.rotation, p ?? 1);
3436
+ const u = await Re(i, e.id, (g = e.flyInParam) == null ? void 0 : g.position, (w = e.flyInParam) == null ? void 0 : w.rotation, p ?? 1);
3435
3437
  let c = "over";
3436
- u === void 0 ? c = "error" : u.endType === 0 ? c = "over" : u.endType === 1 && (c = "cancelled"), e.flyOverEvent.emit(d, c, t);
3438
+ u === void 0 ? c = "error" : u.endType === 0 ? c = "over" : u.endType === 1 && (c = "cancelled"), e.flyOverEvent.emit(l, c, t);
3437
3439
  })), this.d(e.calcFlyToParamEvent.don(() => {
3438
3440
  !r && !n || dt(i, e.id);
3439
3441
  })), this.d(e.calcFlyInParamEvent.don(async () => {
3440
3442
  if (!t.actived) return;
3441
3443
  const p = await t.getCurrentCameraInfo();
3442
3444
  if (!p) return;
3443
- const { position: d, rotation: u } = p;
3444
- e.flyInParam = { position: d, rotation: u, flyDuration: 1 };
3445
+ const { position: l, rotation: u } = p;
3446
+ e.flyInParam = { position: l, rotation: u, flyDuration: 1 };
3445
3447
  })), this.d(t.propChanged.don((p) => {
3446
- !r && !n || p.objId === e.id && Object.keys(p.props).forEach((d) => {
3447
- const u = p.props[d] === null ? void 0 : p.props[d];
3448
- e[d] = u;
3448
+ !r && !n || p.objId === e.id && Object.keys(p.props).forEach((l) => {
3449
+ const u = p.props[l] === null ? void 0 : p.props[l];
3450
+ e[l] = u;
3449
3451
  });
3450
3452
  }));
3451
3453
  }
3452
3454
  };
3453
- v(ut, "type", ut.register("ESUeViewer", U.type, ut));
3454
- let Ve = ut;
3455
- const X = class X extends M {
3455
+ v(ht, "type", ht.register("ESUeViewer", U.type, ht));
3456
+ let Ve = ht;
3457
+ const X = class X extends D {
3456
3458
  constructor(e, t) {
3457
3459
  if (super(e, t), !t.viewer) {
3458
3460
  console.warn("viewer is undefined!");
@@ -3460,17 +3462,17 @@ const X = class X extends M {
3460
3462
  }
3461
3463
  }
3462
3464
  };
3463
- v(X, "type", X.register("ESUeViewer", Ar.type, X)), v(X, "forceUeUpdateProps", [
3464
- ...M.forceUeUpdateProps,
3465
+ v(X, "type", X.register("ESUeViewer", Ur.type, X)), v(X, "forceUeUpdateProps", [
3466
+ ...D.forceUeUpdateProps,
3465
3467
  "url"
3466
3468
  ]), v(X, "propValFuncs", {
3467
- ...M.propValFuncs,
3468
- url: (e) => typeof e == "string" ? E.context.getStrFromEnv(e) : (e.url = E.context.getStrFromEnv(e.url), e),
3469
+ ...D.propValFuncs,
3470
+ url: (e) => typeof e == "string" ? I.context.getStrFromEnv(e) : (e.url = I.context.getStrFromEnv(e.url), e),
3469
3471
  czmMaxzoom: null,
3470
3472
  czmMinzoom: null
3471
3473
  });
3472
3474
  let Oe = X;
3473
- const ht = class ht extends I {
3475
+ const pt = class pt extends E {
3474
3476
  constructor(e, t) {
3475
3477
  if (super(e, t), !t.viewer) {
3476
3478
  console.warn("viewer is undefined!");
@@ -3478,9 +3480,9 @@ const ht = class ht extends I {
3478
3480
  }
3479
3481
  }
3480
3482
  };
3481
- v(ht, "type", ht.register("ESUeViewer", Ur.type, ht));
3482
- let je = ht;
3483
- const pt = class pt extends I {
3483
+ v(pt, "type", pt.register("ESUeViewer", Nr.type, pt));
3484
+ let je = pt;
3485
+ const vt = class vt extends E {
3484
3486
  constructor(e, t) {
3485
3487
  if (super(e, t), !t.viewer) {
3486
3488
  console.warn("viewer is undefined!");
@@ -3488,9 +3490,9 @@ const pt = class pt extends I {
3488
3490
  }
3489
3491
  }
3490
3492
  };
3491
- v(pt, "type", pt.register("ESUeViewer", Nr.type, pt));
3492
- let ti = pt;
3493
- const vt = class vt extends D {
3493
+ v(vt, "type", vt.register("ESUeViewer", zr.type, vt));
3494
+ let ti = vt;
3495
+ const gt = class gt extends B {
3494
3496
  constructor(e, t) {
3495
3497
  if (super(e, t), !t.viewer) {
3496
3498
  console.warn("viewer is undefined!");
@@ -3498,8 +3500,8 @@ const vt = class vt extends D {
3498
3500
  }
3499
3501
  }
3500
3502
  };
3501
- v(vt, "type", vt.register("ESUeViewer", zr.type, vt));
3502
- let $ = vt;
3503
+ v(gt, "type", gt.register("ESUeViewer", br.type, gt));
3504
+ let $ = gt;
3503
3505
  const ft = class ft extends $ {
3504
3506
  constructor(e, t) {
3505
3507
  super(e, t);
@@ -3509,22 +3511,22 @@ const ft = class ft extends $ {
3509
3511
  return;
3510
3512
  }
3511
3513
  const r = () => {
3512
- let s = O.defaults.fillStyle;
3514
+ let s = j.defaults.fillStyle;
3513
3515
  try {
3514
- s = { ...e.fillStyle ?? O.defaults.fillStyle };
3516
+ s = { ...e.fillStyle ?? j.defaults.fillStyle };
3515
3517
  } catch (o) {
3516
- console.error("ESAreaMeasurement fillStyle 属性类型错误!", o), s = { ...O.defaults.fillStyle };
3518
+ console.error("ESAreaMeasurement fillStyle 属性类型错误!", o), s = { ...j.defaults.fillStyle };
3517
3519
  }
3518
3520
  s.materialParams = JSON.stringify(s.materialParams), i.callUeFunc({
3519
3521
  f: "update",
3520
3522
  p: {
3521
3523
  id: e.id,
3522
- stroked: e.stroked ?? O.defaults.stroked,
3524
+ stroked: e.stroked ?? j.defaults.stroked,
3523
3525
  fillStyle: s,
3524
- filled: e.filled ?? O.defaults.filled
3526
+ filled: e.filled ?? j.defaults.filled
3525
3527
  }
3526
3528
  }), console.log(s);
3527
- }, n = this.dv(P(
3529
+ }, n = this.dv(L(
3528
3530
  e.fillStyleChanged,
3529
3531
  e.strokedChanged,
3530
3532
  e.filledChanged
@@ -3532,9 +3534,9 @@ const ft = class ft extends $ {
3532
3534
  this.d(n.don(r)), this.d(e.createdEvent.don(r));
3533
3535
  }
3534
3536
  };
3535
- v(ft, "type", ft.register("ESUeViewer", O.type, ft));
3537
+ v(ft, "type", ft.register("ESUeViewer", j.type, ft));
3536
3538
  let ei = ft;
3537
- const gt = class gt extends I {
3539
+ const wt = class wt extends E {
3538
3540
  constructor(e, t) {
3539
3541
  if (super(e, t), !t.viewer) {
3540
3542
  console.warn("viewer is undefined!");
@@ -3542,9 +3544,9 @@ const gt = class gt extends I {
3542
3544
  }
3543
3545
  }
3544
3546
  };
3545
- v(gt, "type", gt.register("ESUeViewer", Hr.type, gt));
3546
- let ii = gt;
3547
- const tt = class tt extends I {
3547
+ v(wt, "type", wt.register("ESUeViewer", Hr.type, wt));
3548
+ let ii = wt;
3549
+ const et = class et extends E {
3548
3550
  constructor(e, t) {
3549
3551
  if (super(e, t), !t.viewer) {
3550
3552
  console.warn("viewer is underfined!");
@@ -3552,17 +3554,17 @@ const tt = class tt extends I {
3552
3554
  }
3553
3555
  }
3554
3556
  };
3555
- v(tt, "type", tt.register("ESUeViewer", br.type, tt)), // null 表示不设置,undefined表示不做任何转换
3556
- v(tt, "propValFuncs", {
3557
- ...I.propValFuncs,
3557
+ v(et, "type", et.register("ESUeViewer", Jr.type, et)), // null 表示不设置,undefined表示不做任何转换
3558
+ v(et, "propValFuncs", {
3559
+ ...E.propValFuncs,
3558
3560
  targetID: (e) => {
3559
3561
  if (!e) return "";
3560
- const t = E.getSceneObject(e);
3562
+ const t = I.getSceneObject(e);
3561
3563
  return t ? (t.components.main ?? t).id : e;
3562
3564
  }
3563
3565
  });
3564
- let ri = tt;
3565
- const wt = class wt extends I {
3566
+ let ri = et;
3567
+ const yt = class yt extends E {
3566
3568
  constructor(e, t) {
3567
3569
  super(e, t);
3568
3570
  const i = t.viewer;
@@ -3571,10 +3573,10 @@ const wt = class wt extends I {
3571
3573
  return;
3572
3574
  }
3573
3575
  this.dispose(e.flyInEvent.don((r, n, s = "default") => {
3574
- const { id: o, duration: h, position: a, rotation: g } = e;
3575
- Re(i, o, a, g, h ?? r, s);
3576
+ const { id: o, duration: h, position: a, rotation: f } = e;
3577
+ Re(i, o, a, f, h ?? r, s);
3576
3578
  })), this.dispose(e.resetWithCurrentCameraEvent.don(() => {
3577
- Ir(i, e.id);
3579
+ Er(i, e.id);
3578
3580
  })), this.dispose(e.captureEvent.don((r, n) => {
3579
3581
  t.capture(r, n).then((o) => {
3580
3582
  o && (e.thumbnail = o);
@@ -3582,9 +3584,9 @@ const wt = class wt extends I {
3582
3584
  }));
3583
3585
  }
3584
3586
  };
3585
- v(wt, "type", wt.register("ESUeViewer", Jr.type, wt));
3586
- let ni = wt;
3587
- const yt = class yt extends I {
3587
+ v(yt, "type", yt.register("ESUeViewer", Gr.type, yt));
3588
+ let ni = yt;
3589
+ const mt = class mt extends E {
3588
3590
  constructor(e, t) {
3589
3591
  if (super(e, t), !t.viewer) {
3590
3592
  console.warn("viewer is undefined!");
@@ -3592,9 +3594,9 @@ const yt = class yt extends I {
3592
3594
  }
3593
3595
  }
3594
3596
  };
3595
- v(yt, "type", yt.register("ESUeViewer", Gr.type, yt));
3596
- let si = yt;
3597
- const mt = class mt extends I {
3597
+ v(mt, "type", mt.register("ESUeViewer", Kr.type, mt));
3598
+ let si = mt;
3599
+ const Ct = class Ct extends E {
3598
3600
  constructor(e, t) {
3599
3601
  if (super(e, t), !t.viewer) {
3600
3602
  console.warn("viewer is undefined!");
@@ -3602,9 +3604,9 @@ const mt = class mt extends I {
3602
3604
  }
3603
3605
  }
3604
3606
  };
3605
- v(mt, "type", mt.register("ESUeViewer", Kr.type, mt));
3606
- let oi = mt;
3607
- const Ct = class Ct extends D {
3607
+ v(Ct, "type", Ct.register("ESUeViewer", Xr.type, Ct));
3608
+ let oi = Ct;
3609
+ const Ft = class Ft extends B {
3608
3610
  constructor(e, t) {
3609
3611
  super(e, t);
3610
3612
  const i = t.viewer;
@@ -3613,30 +3615,30 @@ const Ct = class Ct extends D {
3613
3615
  return;
3614
3616
  }
3615
3617
  const r = () => {
3616
- let s = lt.defaults.fillStyle;
3618
+ let s = ct.defaults.fillStyle;
3617
3619
  try {
3618
- s = { ...e.fillStyle ?? lt.defaults.fillStyle };
3620
+ s = { ...e.fillStyle ?? ct.defaults.fillStyle };
3619
3621
  } catch (o) {
3620
- console.error("ESClassification fillStyle 属性类型错误!", o), s = { ...lt.defaults.fillStyle };
3622
+ console.error("ESClassification fillStyle 属性类型错误!", o), s = { ...ct.defaults.fillStyle };
3621
3623
  }
3622
3624
  s.materialParams = JSON.stringify(s.materialParams), i.callUeFunc({
3623
3625
  f: "update",
3624
3626
  p: {
3625
3627
  id: e.id,
3626
- filled: e.filled ?? lt.defaults.filled,
3628
+ filled: e.filled ?? ct.defaults.filled,
3627
3629
  fillStyle: s
3628
3630
  }
3629
3631
  });
3630
- }, n = this.dv(P(
3632
+ }, n = this.dv(L(
3631
3633
  e.fillStyleChanged,
3632
3634
  e.filledChanged
3633
3635
  ));
3634
3636
  this.d(n.don(r)), this.d(e.createdEvent.don(r));
3635
3637
  }
3636
3638
  };
3637
- v(Ct, "type", Ct.register("ESUeViewer", lt.type, Ct));
3638
- let ai = Ct;
3639
- const et = class et extends I {
3639
+ v(Ft, "type", Ft.register("ESUeViewer", ct.type, Ft));
3640
+ let ai = Ft;
3641
+ const it = class it extends E {
3640
3642
  constructor(e, t) {
3641
3643
  if (super(e, t), !t.viewer) {
3642
3644
  console.warn("viewer is underfined!");
@@ -3644,17 +3646,17 @@ const et = class et extends I {
3644
3646
  }
3645
3647
  }
3646
3648
  };
3647
- v(et, "type", et.register("ESUeViewer", Xr.type, et)), // null 表示不设置,undefined表示不做任何转换
3648
- v(et, "propValFuncs", {
3649
- ...I.propValFuncs,
3649
+ v(it, "type", it.register("ESUeViewer", Yr.type, it)), // null 表示不设置,undefined表示不做任何转换
3650
+ v(it, "propValFuncs", {
3651
+ ...E.propValFuncs,
3650
3652
  targetID: (e) => {
3651
3653
  if (!e) return "";
3652
- const t = E.getSceneObject(e);
3654
+ const t = I.getSceneObject(e);
3653
3655
  return t ? (t.components.main ?? t).id : e;
3654
3656
  }
3655
3657
  });
3656
- let di = et;
3657
- const Ft = class Ft extends I {
3658
+ let li = it;
3659
+ const It = class It extends E {
3658
3660
  constructor(e, t) {
3659
3661
  super(e, t);
3660
3662
  const i = t.viewer;
@@ -3662,32 +3664,32 @@ const Ft = class Ft extends I {
3662
3664
  console.warn("viewer is undefined!");
3663
3665
  return;
3664
3666
  }
3665
- const r = this.ad(be(""));
3667
+ const r = this.ad(He(""));
3666
3668
  {
3667
3669
  const o = () => {
3668
3670
  if (typeof e.url == "string")
3669
- r.value = E.context.getStrFromEnv(e.url ?? H.defaults.url);
3671
+ r.value = I.context.getStrFromEnv(e.url ?? b.defaults.url);
3670
3672
  else {
3671
3673
  const h = e.url;
3672
- h.url = E.context.getStrFromEnv(h.url ?? H.defaults.url), r.value = h;
3674
+ h.url = I.context.getStrFromEnv(h.url ?? b.defaults.url), r.value = h;
3673
3675
  }
3674
3676
  };
3675
3677
  o(), this.ad(e.urlChanged.don(o));
3676
3678
  }
3677
3679
  const n = () => {
3678
- const o = e.colorStops ?? H.defaults.colorStops;
3680
+ const o = e.colorStops ?? b.defaults.colorStops;
3679
3681
  i.callUeFunc({
3680
3682
  f: "update",
3681
3683
  p: {
3682
3684
  id: e.id,
3683
- url: r.value ?? H.defaults.url,
3684
- currentTime: e.currentTime ?? H.defaults.currentTime,
3685
- minPropValue: e.minPropValue ?? H.defaults.minPropValue,
3686
- maxPropValue: e.maxPropValue ?? H.defaults.maxPropValue,
3685
+ url: r.value ?? b.defaults.url,
3686
+ currentTime: e.currentTime ?? b.defaults.currentTime,
3687
+ minPropValue: e.minPropValue ?? b.defaults.minPropValue,
3688
+ maxPropValue: e.maxPropValue ?? b.defaults.maxPropValue,
3687
3689
  colorStops: JSON.stringify(o)
3688
3690
  }
3689
3691
  });
3690
- }, s = this.dv(P(
3692
+ }, s = this.dv(L(
3691
3693
  r.changed,
3692
3694
  e.currentTimeChanged,
3693
3695
  e.minPropValueChanged,
@@ -3697,9 +3699,9 @@ const Ft = class Ft extends I {
3697
3699
  this.d(s.don(n)), this.d(e.createdEvent.don(n));
3698
3700
  }
3699
3701
  };
3700
- v(Ft, "type", Ft.register("ESUeViewer", H.type, Ft));
3701
- let li = Ft;
3702
- const It = class It extends I {
3702
+ v(It, "type", It.register("ESUeViewer", b.type, It));
3703
+ let di = It;
3704
+ const Et = class Et extends E {
3703
3705
  constructor(e, t) {
3704
3706
  if (super(e, t), !t.viewer) {
3705
3707
  console.warn("viewer is undefined!");
@@ -3707,9 +3709,9 @@ const It = class It extends I {
3707
3709
  }
3708
3710
  }
3709
3711
  };
3710
- v(It, "type", It.register("ESUeViewer", Yr.type, It));
3711
- let ci = It;
3712
- const Et = class Et extends D {
3712
+ v(Et, "type", Et.register("ESUeViewer", Zr.type, Et));
3713
+ let ci = Et;
3714
+ const St = class St extends B {
3713
3715
  constructor(e, t) {
3714
3716
  if (super(e, t), !t.viewer) {
3715
3717
  console.warn("viewer is undefined!");
@@ -3717,9 +3719,9 @@ const Et = class Et extends D {
3717
3719
  }
3718
3720
  }
3719
3721
  };
3720
- v(Et, "type", Et.register("ESUeViewer", Zr.type, Et));
3721
- let ui = Et;
3722
- const St = class St extends D {
3722
+ v(St, "type", St.register("ESUeViewer", qr.type, St));
3723
+ let ui = St;
3724
+ const Tt = class Tt extends B {
3723
3725
  constructor(e, t) {
3724
3726
  super(e, t);
3725
3727
  const i = t.viewer;
@@ -3741,15 +3743,15 @@ const St = class St extends D {
3741
3743
  strokeStyle: s
3742
3744
  }
3743
3745
  });
3744
- }, n = this.dv(P(
3746
+ }, n = this.dv(L(
3745
3747
  e.strokeStyleChanged
3746
3748
  ));
3747
3749
  this.d(n.don(r)), this.d(e.createdEvent.don(r));
3748
3750
  }
3749
3751
  };
3750
- v(St, "type", St.register("ESUeViewer", Me.type, St));
3751
- let hi = St;
3752
- const Tt = class Tt extends Ke {
3752
+ v(Tt, "type", Tt.register("ESUeViewer", Me.type, Tt));
3753
+ let hi = Tt;
3754
+ const xt = class xt extends Ke {
3753
3755
  constructor(e, t) {
3754
3756
  if (super(e, t), !t.viewer) {
3755
3757
  console.warn("viewer is undefined!");
@@ -3757,9 +3759,9 @@ const Tt = class Tt extends Ke {
3757
3759
  }
3758
3760
  }
3759
3761
  };
3760
- v(Tt, "type", Tt.register("ESUeViewer", qr.type, Tt));
3761
- let Ne = Tt;
3762
- const xt = class xt extends Ne {
3762
+ v(xt, "type", xt.register("ESUeViewer", Qr.type, xt));
3763
+ let Ne = xt;
3764
+ const Rt = class Rt extends Ne {
3763
3765
  constructor(e, t) {
3764
3766
  if (super(e, t), !t.viewer) {
3765
3767
  console.warn("viewer is undefined!");
@@ -3767,9 +3769,9 @@ const xt = class xt extends Ne {
3767
3769
  }
3768
3770
  }
3769
3771
  };
3770
- v(xt, "type", xt.register("ESUeViewer", Qr.type, xt));
3771
- let pi = xt;
3772
- const Rt = class Rt extends M {
3772
+ v(Rt, "type", Rt.register("ESUeViewer", Vr.type, Rt));
3773
+ let pi = Rt;
3774
+ const Pt = class Pt extends D {
3773
3775
  constructor(e, t) {
3774
3776
  if (super(e, t), !t.viewer) {
3775
3777
  console.warn("viewer is undefined!");
@@ -3782,9 +3784,9 @@ const Rt = class Rt extends M {
3782
3784
  }));
3783
3785
  }
3784
3786
  };
3785
- v(Rt, "type", Rt.register("ESUeViewer", Vr.type, Rt));
3786
- let vi = Rt;
3787
- const it = class it extends $ {
3787
+ v(Pt, "type", Pt.register("ESUeViewer", Or.type, Pt));
3788
+ let vi = Pt;
3789
+ const rt = class rt extends $ {
3788
3790
  constructor(e, t) {
3789
3791
  if (super(e, t), !t.viewer) {
3790
3792
  console.warn("viewer is undefined!");
@@ -3792,16 +3794,16 @@ const it = class it extends $ {
3792
3794
  }
3793
3795
  }
3794
3796
  };
3795
- v(it, "type", it.register("ESUeViewer", Or.type, it)), v(it, "propValFuncs", {
3797
+ v(rt, "type", rt.register("ESUeViewer", jr.type, rt)), v(rt, "propValFuncs", {
3796
3798
  ...$.propValFuncs,
3797
3799
  targetID: (e) => {
3798
3800
  if (!e) return "";
3799
- const t = E.getSceneObject(e);
3801
+ const t = I.getSceneObject(e);
3800
3802
  return t ? (t.components.main ?? t).id : e;
3801
3803
  }
3802
3804
  });
3803
- let fi = it;
3804
- const Lt = class Lt extends I {
3805
+ let gi = rt;
3806
+ const Lt = class Lt extends E {
3805
3807
  constructor(e, t) {
3806
3808
  if (super(e, t), !t.viewer) {
3807
3809
  console.warn("viewer is undefined!");
@@ -3809,9 +3811,9 @@ const Lt = class Lt extends I {
3809
3811
  }
3810
3812
  }
3811
3813
  };
3812
- v(Lt, "type", Lt.register("ESUeViewer", jr.type, Lt));
3813
- let gi = Lt;
3814
- const Pt = class Pt extends M {
3814
+ v(Lt, "type", Lt.register("ESUeViewer", tn.type, Lt));
3815
+ let fi = Lt;
3816
+ const kt = class kt extends D {
3815
3817
  constructor(e, t) {
3816
3818
  super(e, t);
3817
3819
  const i = t.viewer;
@@ -3819,14 +3821,14 @@ const Pt = class Pt extends M {
3819
3821
  console.warn("viewer is undefined!");
3820
3822
  return;
3821
3823
  }
3822
- const r = this.ad(be(""));
3824
+ const r = this.ad(He(""));
3823
3825
  {
3824
3826
  const o = () => {
3825
3827
  if (typeof e.url == "string")
3826
- r.value = E.context.getStrFromEnv(e.url);
3828
+ r.value = I.context.getStrFromEnv(e.url);
3827
3829
  else {
3828
3830
  const h = e.url;
3829
- h.url = E.context.getStrFromEnv(h.url), r.value = h;
3831
+ h.url = I.context.getStrFromEnv(h.url), r.value = h;
3830
3832
  }
3831
3833
  };
3832
3834
  o(), this.ad(e.urlChanged.don(o));
@@ -3846,7 +3848,7 @@ const Pt = class Pt extends M {
3846
3848
  heightOffset: e.heightOffset ?? N.defaults.heightOffset
3847
3849
  }
3848
3850
  });
3849
- }, s = this.dv(P(
3851
+ }, s = this.dv(L(
3850
3852
  r.changed,
3851
3853
  e.treeTypesChanged,
3852
3854
  e.xiaoBanWidgetChanged,
@@ -3859,41 +3861,41 @@ const Pt = class Pt extends M {
3859
3861
  this.d(s.don(n)), this.d(e.createdEvent.don(n));
3860
3862
  }
3861
3863
  };
3862
- v(Pt, "type", Pt.register("ESUeViewer", N.type, Pt));
3863
- let wi = Pt;
3864
- const kt = class kt extends G {
3864
+ v(kt, "type", kt.register("ESUeViewer", N.type, kt));
3865
+ let wi = kt;
3866
+ const Dt = class Dt extends G {
3865
3867
  constructor(e, t) {
3866
- super(e, t), this.ad(new L(e.renderInUEChanged, () => e.renderInUE ? new Co(e, t) : new mo(e, t)));
3868
+ super(e, t), this.ad(new P(e.renderInUEChanged, () => e.renderInUE ? new Fo(e, t) : new Co(e, t)));
3867
3869
  }
3868
3870
  };
3869
- v(kt, "type", kt.register("ESUeViewer", Ce.type, kt));
3870
- let yi = kt;
3871
- class mo extends m {
3871
+ v(Dt, "type", Dt.register("ESUeViewer", Ce.type, Dt));
3872
+ let yi = Dt;
3873
+ class Co extends m {
3872
3874
  constructor(t, i) {
3873
3875
  super();
3874
- v(this, "_screenPosition", this.disposeVar(hr(void 0)));
3876
+ v(this, "_screenPosition", this.disposeVar(pr(void 0)));
3875
3877
  const r = i.viewer;
3876
3878
  if (!r) {
3877
3879
  console.warn("viewer is undefined!");
3878
3880
  return;
3879
3881
  }
3880
- const n = this.disposeVar(new vr());
3882
+ const n = this.disposeVar(new gr());
3881
3883
  n.parentID = t.id, t.components.disposableAdd(n, !0), n.show = !1, this.dispose(k([n, "position"], [t, "position"])), this.dispose(k([n, "rotation"], [t, "rotation"])), this.dispose(k([n, "flyToParam"], [t, "flyToParam"])), this.dispose(k([n, "flyInParam"], [t, "flyInParam"])), this.dispose(t.calcFlyToParamEvent.disposableOn(() => {
3882
3884
  dt(r, n.id);
3883
3885
  })), this.dispose(t.calcFlyInParamEvent.disposableOn(async () => {
3884
3886
  if (!i.actived) return;
3885
3887
  const h = await i.getCurrentCameraInfo();
3886
3888
  if (!h) return;
3887
- const { position: a, rotation: g } = h;
3888
- t.flyInParam = { position: a, rotation: g, flyDuration: 1 };
3889
+ const { position: a, rotation: f } = h;
3890
+ t.flyInParam = { position: a, rotation: f, flyDuration: 1 };
3889
3891
  })), this.dispose(t.smoothMoveEvent.disposableOn((h, a) => {
3890
3892
  De(r, n.id, h, a);
3891
- })), this.dispose(t.smoothMoveWithRotationEvent.disposableOn((h, a, g) => {
3892
- Le(r, n.id, h, a, g);
3893
- })), this.dispose(t.smoothMoveOnGroundEvent.disposableOn((h, a, g, p) => {
3894
- Pe(r, n.id, h, a, p, g);
3895
- })), this.dispose(t.smoothMoveWithRotationOnGroundEvent.disposableOn((h, a, g, p, d) => {
3896
- ke(r, n.id, h, a, g, p, d);
3893
+ })), this.dispose(t.smoothMoveWithRotationEvent.disposableOn((h, a, f) => {
3894
+ Pe(r, n.id, h, a, f);
3895
+ })), this.dispose(t.smoothMoveOnGroundEvent.disposableOn((h, a, f, p) => {
3896
+ Le(r, n.id, h, a, p, f);
3897
+ })), this.dispose(t.smoothMoveWithRotationOnGroundEvent.disposableOn((h, a, f, p, l) => {
3898
+ ke(r, n.id, h, a, f, p, l);
3897
3899
  })), this.dispose(t.flyToEvent.disposableOn((h, a) => {
3898
3900
  n.flyTo(h);
3899
3901
  })), this.dispose(t.flyInEvent.don((h) => {
@@ -3902,16 +3904,16 @@ class mo extends m {
3902
3904
  const s = this._screenPosition, o = this.disposeVar(new Je());
3903
3905
  o.parentID = t.id, i.add(o), this.dispose(() => i.delete(o)), this.dispose(k([o, "allowPicking"], [t, "allowPicking"]));
3904
3906
  {
3905
- const h = this.disposeVar(He()), a = () => {
3907
+ const h = this.disposeVar(be()), a = () => {
3906
3908
  t.show ? h.restart(void 0, async () => {
3907
3909
  if (!t.position) return;
3908
- const g = await i.lonLatAltToScreenPosition(t.position);
3910
+ const f = await i.lonLatAltToScreenPosition(t.position);
3909
3911
  if (!this.isDestroyed())
3910
- if (!g)
3912
+ if (!f)
3911
3913
  this._screenPosition.value = void 0;
3912
3914
  else {
3913
- const [p, d] = g;
3914
- p === -1 && d === -1 ? this._screenPosition.value = void 0 : this._screenPosition.value = [p, d];
3915
+ const [p, l] = f;
3916
+ p === -1 && l === -1 ? this._screenPosition.value = void 0 : this._screenPosition.value = [p, l];
3915
3917
  }
3916
3918
  }) : h.cancel();
3917
3919
  };
@@ -3919,11 +3921,11 @@ class mo extends m {
3919
3921
  }
3920
3922
  {
3921
3923
  const h = () => class extends m {
3922
- constructor(d, u, c) {
3923
- if (super(), this._subContainer = d, !c) return;
3924
+ constructor(l, u, c) {
3925
+ if (super(), this._subContainer = l, !c) return;
3924
3926
  if (!t.instanceClass)
3925
3927
  throw new Error("!sceneObject.instanceClass");
3926
- const f = new tn(), w = f.element;
3928
+ const g = new en(), w = g.element;
3927
3929
  this._subContainer.appendChild(w), this.dispose(() => this._subContainer.removeChild(w)), w.onclick = (y) => {
3928
3930
  (t.allowPicking ?? !1) && t.pickedEvent.emit(new Ae(
3929
3931
  { div: w, pointerEvent: y },
@@ -3943,10 +3945,10 @@ class mo extends m {
3943
3945
  {
3944
3946
  const y = () => {
3945
3947
  const C = t.show;
3946
- s.value && C ? (f.show = !0, f.winPos = [...s.value]) : (f.show = !1, f.winPos = [0, 0]);
3948
+ s.value && C ? (g.show = !0, g.winPos = [...s.value]) : (g.show = !1, g.winPos = [0, 0]);
3947
3949
  };
3948
3950
  y();
3949
- const x = this.disposeVar(P(
3951
+ const x = this.disposeVar(L(
3950
3952
  t.showChanged,
3951
3953
  s.changed
3952
3954
  ));
@@ -3955,17 +3957,17 @@ class mo extends m {
3955
3957
  {
3956
3958
  const y = () => {
3957
3959
  const [x, C] = t.anchor ?? Ce.defaults.anchor;
3958
- f.originRatioX = x, f.originRatioY = C;
3960
+ g.originRatioX = x, g.originRatioY = C;
3959
3961
  };
3960
3962
  y(), this.dispose(t.anchorChanged.disposableOn(y));
3961
3963
  }
3962
3964
  {
3963
3965
  const y = () => {
3964
- f.opacity = t.opacity ?? Ce.defaults.opacity;
3966
+ g.opacity = t.opacity ?? Ce.defaults.opacity;
3965
3967
  };
3966
3968
  y(), this.dispose(t.opacityChanged.disposableOn(y));
3967
3969
  }
3968
- this.disposeVar(new t.instanceClass(f.contentDiv, t, c));
3970
+ this.disposeVar(new t.instanceClass(g.contentDiv, t, c));
3969
3971
  }
3970
3972
  }, a = () => {
3971
3973
  try {
@@ -3975,7 +3977,7 @@ class mo extends m {
3975
3977
  }
3976
3978
  };
3977
3979
  a();
3978
- const g = this.dv(P(
3980
+ const f = this.dv(L(
3979
3981
  t.instanceClassChanged,
3980
3982
  t.opacityChanged,
3981
3983
  t.anchorChanged,
@@ -3983,7 +3985,7 @@ class mo extends m {
3983
3985
  t.showChanged,
3984
3986
  t.allowPickingChanged
3985
3987
  ));
3986
- this.d(g.don(a));
3988
+ this.d(f.don(a));
3987
3989
  }
3988
3990
  }
3989
3991
  get screenPosition() {
@@ -3996,7 +3998,7 @@ class mo extends m {
3996
3998
  this._screenPosition.value = t;
3997
3999
  }
3998
4000
  }
3999
- class Co extends m {
4001
+ class Fo extends m {
4000
4002
  constructor(t, i) {
4001
4003
  super();
4002
4004
  v(this, "_imageLabel");
@@ -4014,12 +4016,12 @@ class Co extends m {
4014
4016
  if (!r) return;
4015
4017
  if (!t.instanceClass)
4016
4018
  throw new Error("!sceneObject.instanceClass");
4017
- const a = document.createElement("div"), g = this.dv(new t.instanceClass(a, t, i))._container;
4018
- if (g.style.opacity = t.opacity.toString() ?? Ce.defaults.opacity, g.style.position = "fixed", g.style.zIndex = "-1", g.style.top = "0px", !document.body.contains(g)) {
4019
- document.body.appendChild(g);
4020
- let d = g ? g.querySelectorAll("*[class]") : [];
4021
- for (let u = 0; u < d.length; u++) {
4022
- const c = d[u];
4019
+ const a = document.createElement("div"), f = this.dv(new t.instanceClass(a, t, i))._container;
4020
+ if (f.style.opacity = t.opacity.toString() ?? Ce.defaults.opacity, f.style.position = "fixed", f.style.zIndex = "-1", f.style.top = "0px", !document.body.contains(f)) {
4021
+ document.body.appendChild(f);
4022
+ let l = f ? f.querySelectorAll("*[class]") : [];
4023
+ for (let u = 0; u < l.length; u++) {
4024
+ const c = l[u];
4023
4025
  var p = c.getBoundingClientRect();
4024
4026
  this._hasClassDivAndPos[c.className] = [
4025
4027
  c.offsetLeft,
@@ -4029,17 +4031,17 @@ class Co extends m {
4029
4031
  ];
4030
4032
  }
4031
4033
  }
4032
- qn(g, {
4034
+ Qn(f, {
4033
4035
  backgroundColor: null,
4034
4036
  allowTaint: !0,
4035
4037
  useCORS: !0,
4036
- width: g.offsetWidth,
4037
- height: g.offsetHeight,
4038
+ width: f.offsetWidth,
4039
+ height: f.offsetHeight,
4038
4040
  scale: 1
4039
- }).then((d) => {
4040
- document.body.contains(g) && document.body.removeChild(g), n.url = d.toDataURL(), n.show = t.show;
4041
+ }).then((l) => {
4042
+ document.body.contains(f) && document.body.removeChild(f), n.url = l.toDataURL(), n.show = t.show;
4041
4043
  }).catch(() => {
4042
- document.body.contains(g) && document.body.removeChild(g);
4044
+ document.body.contains(f) && document.body.removeChild(f);
4043
4045
  });
4044
4046
  }, o = () => {
4045
4047
  try {
@@ -4049,7 +4051,7 @@ class Co extends m {
4049
4051
  }
4050
4052
  };
4051
4053
  o();
4052
- const h = this.dv(P(
4054
+ const h = this.dv(L(
4053
4055
  t.instanceClassChanged,
4054
4056
  t.opacityChanged
4055
4057
  ));
@@ -4067,11 +4069,11 @@ class Co extends m {
4067
4069
  if (s.objId !== this._imageLabel.id) return;
4068
4070
  const { type: o, add: h } = s;
4069
4071
  if (o === "leftClick" && h) {
4070
- const a = (h == null ? void 0 : h.classNames) ?? [], g = Object.keys(this._hasClassDivAndPos);
4071
- for (let p = 0; p < g.length; p++) {
4072
- const d = g[p];
4073
- let u = this._hasClassDivAndPos[d];
4074
- h && h.mouseRelativePos && h.mouseRelativePos[0] >= u[0] && h.mouseRelativePos[0] <= u[2] && h.mouseRelativePos[1] >= u[1] && h.mouseRelativePos[1] <= u[3] && a.push(d);
4072
+ const a = (h == null ? void 0 : h.classNames) ?? [], f = Object.keys(this._hasClassDivAndPos);
4073
+ for (let p = 0; p < f.length; p++) {
4074
+ const l = f[p];
4075
+ let u = this._hasClassDivAndPos[l];
4076
+ h && h.mouseRelativePos && h.mouseRelativePos[0] >= u[0] && h.mouseRelativePos[0] <= u[2] && h.mouseRelativePos[1] >= u[1] && h.mouseRelativePos[1] <= u[3] && a.push(l);
4075
4077
  }
4076
4078
  h.classNames = a;
4077
4079
  }
@@ -4086,11 +4088,11 @@ class Co extends m {
4086
4088
  })), this.d(t.smoothMoveEvent.don((s, o) => {
4087
4089
  De(r, n.id, s, o);
4088
4090
  })), this.d(t.smoothMoveWithRotationEvent.don((s, o, h) => {
4089
- Le(r, n.id, s, o, h);
4091
+ Pe(r, n.id, s, o, h);
4090
4092
  })), this.d(t.smoothMoveOnGroundEvent.don((s, o, h, a) => {
4091
- Pe(r, n.id, s, o, a, h);
4092
- })), this.d(t.smoothMoveWithRotationOnGroundEvent.don((s, o, h, a, g) => {
4093
- ke(r, n.id, s, o, h, a, g);
4093
+ Le(r, n.id, s, o, a, h);
4094
+ })), this.d(t.smoothMoveWithRotationOnGroundEvent.don((s, o, h, a, f) => {
4095
+ ke(r, n.id, s, o, h, a, f);
4094
4096
  })), this.d(t.flyToEvent.don((s, o) => {
4095
4097
  n.flyTo(s);
4096
4098
  })), this.d(t.flyInEvent.don((s) => {
@@ -4098,7 +4100,7 @@ class Co extends m {
4098
4100
  }));
4099
4101
  }
4100
4102
  }
4101
- const Dt = class Dt extends M {
4103
+ const Y = class Y extends D {
4102
4104
  constructor(e, t) {
4103
4105
  super(e, t);
4104
4106
  const i = t.viewer;
@@ -4128,9 +4130,15 @@ const Dt = class Dt extends M {
4128
4130
  }));
4129
4131
  }
4130
4132
  };
4131
- v(Dt, "type", Dt.register("ESUeViewer", en.type, Dt));
4132
- let mi = Dt;
4133
- const Bt = class Bt extends D {
4133
+ v(Y, "type", Y.register("ESUeViewer", rn.type, Y)), v(Y, "forceUeUpdateProps", [
4134
+ ...D.forceUeUpdateProps,
4135
+ "url"
4136
+ ]), v(Y, "propValFuncs", {
4137
+ ...D.propValFuncs,
4138
+ url: (e) => typeof e == "string" ? I.context.getStrFromEnv(e) : e
4139
+ });
4140
+ let mi = Y;
4141
+ const Bt = class Bt extends B {
4134
4142
  constructor(e, t) {
4135
4143
  if (super(e, t), !t.viewer) {
4136
4144
  console.warn("viewer is undefined!");
@@ -4138,9 +4146,9 @@ const Bt = class Bt extends D {
4138
4146
  }
4139
4147
  }
4140
4148
  };
4141
- v(Bt, "type", Bt.register("ESUeViewer", rn.type, Bt));
4149
+ v(Bt, "type", Bt.register("ESUeViewer", nn.type, Bt));
4142
4150
  let ze = Bt;
4143
- const _t = class _t extends D {
4151
+ const _t = class _t extends B {
4144
4152
  constructor(e, t) {
4145
4153
  if (super(e, t), !t.viewer) {
4146
4154
  console.warn("viewer is undefined!");
@@ -4148,7 +4156,7 @@ const _t = class _t extends D {
4148
4156
  }
4149
4157
  }
4150
4158
  };
4151
- v(_t, "type", _t.register("ESUeViewer", nn.type, _t));
4159
+ v(_t, "type", _t.register("ESUeViewer", sn.type, _t));
4152
4160
  let Ci = _t;
4153
4161
  const Mt = class Mt extends $ {
4154
4162
  constructor(e, t) {
@@ -4158,9 +4166,9 @@ const Mt = class Mt extends $ {
4158
4166
  }
4159
4167
  }
4160
4168
  };
4161
- v(Mt, "type", Mt.register("ESUeViewer", sn.type, Mt));
4169
+ v(Mt, "type", Mt.register("ESUeViewer", on.type, Mt));
4162
4170
  let Fi = Mt;
4163
- const Y = class Y extends I {
4171
+ const Z = class Z extends E {
4164
4172
  constructor(e, t) {
4165
4173
  super(e, t);
4166
4174
  const i = t.viewer;
@@ -4169,27 +4177,27 @@ const Y = class Y extends I {
4169
4177
  return;
4170
4178
  }
4171
4179
  this.d(e.setNodePositionEvent.don((r, n) => {
4172
- as(i, e.id, r, n);
4180
+ ls(i, e.id, r, n);
4173
4181
  })), this.d(e.setNodeRotationEvent.don((r, n) => {
4174
4182
  ds(i, e.id, r, n);
4175
4183
  })), this.d(e.setNodeScaleEvent.don((r, n) => {
4176
- ls(i, e.id, r, n);
4184
+ cs(i, e.id, r, n);
4177
4185
  }));
4178
4186
  }
4179
4187
  };
4180
- v(Y, "forceUeUpdateProps", [
4181
- ...I.forceUeUpdateProps,
4188
+ v(Z, "forceUeUpdateProps", [
4189
+ ...E.forceUeUpdateProps,
4182
4190
  "url"
4183
- ]), v(Y, "propValFuncs", {
4184
- ...I.propValFuncs,
4185
- url: (e) => typeof e == "string" ? E.context.getStrFromEnv(Fe(e)) : (e.url = E.context.getStrFromEnv(Fe(e.url)), e),
4191
+ ]), v(Z, "propValFuncs", {
4192
+ ...E.propValFuncs,
4193
+ url: (e) => typeof e == "string" ? I.context.getStrFromEnv(Fe(e)) : (e.url = I.context.getStrFromEnv(Fe(e.url)), e),
4186
4194
  czmMaximumScale: null,
4187
4195
  czmMinimumPixelSize: null,
4188
4196
  czmNativeScale: null,
4189
4197
  czmColor: null
4190
- }), v(Y, "type", Y.register("ESUeViewer", on.type, Y));
4191
- let Ii = Y;
4192
- const $t = class $t extends D {
4198
+ }), v(Z, "type", Z.register("ESUeViewer", an.type, Z));
4199
+ let Ii = Z;
4200
+ const $t = class $t extends B {
4193
4201
  constructor(e, t) {
4194
4202
  if (super(e, t), !t.viewer) {
4195
4203
  console.warn("viewer is undefined!");
@@ -4197,21 +4205,21 @@ const $t = class $t extends D {
4197
4205
  }
4198
4206
  }
4199
4207
  };
4200
- v($t, "type", $t.register("ESUeViewer", an.type, $t));
4208
+ v($t, "type", $t.register("ESUeViewer", ln.type, $t));
4201
4209
  let Ei = $t;
4202
- const Wt = class Wt extends I {
4210
+ const Wt = class Wt extends E {
4203
4211
  constructor(e, t) {
4204
4212
  if (super(e, t), !t.viewer) {
4205
4213
  console.warn("viewer is undefined!");
4206
4214
  return;
4207
4215
  }
4208
4216
  const r = async (s, o, h, a) => {
4209
- const { viewer: g } = s;
4210
- if (!g) {
4217
+ const { viewer: f } = s;
4218
+ if (!f) {
4211
4219
  console.error("AIMoveTo: ueViewer.viewer is undefined");
4212
4220
  return;
4213
4221
  }
4214
- const p = await g.callUeFunc({
4222
+ const p = await f.callUeFunc({
4215
4223
  f: "AIMoveTo",
4216
4224
  p: { id: o, Destination: h, Time: a }
4217
4225
  });
@@ -4239,7 +4247,7 @@ const Wt = class Wt extends I {
4239
4247
  };
4240
4248
  v(Wt, "type", Wt.register("ESUeViewer", dn.type, Wt));
4241
4249
  let Si = Wt;
4242
- const Z = class Z extends z {
4250
+ const q = class q extends z {
4243
4251
  constructor(e, t) {
4244
4252
  if (super(e, t), !t.viewer) {
4245
4253
  console.warn("viewer is undefined!");
@@ -4248,15 +4256,15 @@ const Z = class Z extends z {
4248
4256
  e.anchor = [0.5, 1];
4249
4257
  }
4250
4258
  };
4251
- v(Z, "type", Z.register("ESUeViewer", fr.type, Z)), v(Z, "forceUeUpdateProps", [
4259
+ v(q, "type", q.register("ESUeViewer", fr.type, q)), v(q, "forceUeUpdateProps", [
4252
4260
  ...z.forceUeUpdateProps,
4253
4261
  "url"
4254
- ]), v(Z, "propValFuncs", {
4262
+ ]), v(q, "propValFuncs", {
4255
4263
  ...z.propValFuncs,
4256
- url: (e) => typeof e == "string" ? E.context.getStrFromEnv(Fe(e)) : (e.url = E.context.getStrFromEnv(Fe(e.url)), e)
4264
+ url: (e) => typeof e == "string" ? I.context.getStrFromEnv(Fe(e)) : (e.url = I.context.getStrFromEnv(Fe(e.url)), e)
4257
4265
  });
4258
- let Ti = Z;
4259
- const At = class At extends I {
4266
+ let Ti = q;
4267
+ const At = class At extends E {
4260
4268
  constructor(e, t) {
4261
4269
  if (super(e, t), !t.viewer) {
4262
4270
  console.warn("viewer is undefined!");
@@ -4264,7 +4272,7 @@ const At = class At extends I {
4264
4272
  }
4265
4273
  }
4266
4274
  };
4267
- v(At, "type", At.register("ESUeViewer", ln.type, At));
4275
+ v(At, "type", At.register("ESUeViewer", cn.type, At));
4268
4276
  let xi = At;
4269
4277
  const Ut = class Ut extends Ke {
4270
4278
  constructor(e, t) {
@@ -4274,9 +4282,9 @@ const Ut = class Ut extends Ke {
4274
4282
  }
4275
4283
  }
4276
4284
  };
4277
- v(Ut, "type", Ut.register("ESUeViewer", cn.type, Ut));
4285
+ v(Ut, "type", Ut.register("ESUeViewer", un.type, Ut));
4278
4286
  let Ri = Ut;
4279
- const Nt = class Nt extends M {
4287
+ const Nt = class Nt extends D {
4280
4288
  constructor(e, t) {
4281
4289
  if (super(e, t), !t.viewer) {
4282
4290
  console.warn("viewer is undefined!");
@@ -4284,8 +4292,8 @@ const Nt = class Nt extends M {
4284
4292
  }
4285
4293
  }
4286
4294
  };
4287
- v(Nt, "type", Nt.register("ESUeViewer", un.type, Nt));
4288
- let Li = Nt;
4295
+ v(Nt, "type", Nt.register("ESUeViewer", hn.type, Nt));
4296
+ let Pi = Nt;
4289
4297
  const zt = class zt extends Ke {
4290
4298
  constructor(e, t) {
4291
4299
  if (super(e, t), !t.viewer) {
@@ -4294,9 +4302,9 @@ const zt = class zt extends Ke {
4294
4302
  }
4295
4303
  }
4296
4304
  };
4297
- v(zt, "type", zt.register("ESUeViewer", hn.type, zt));
4298
- let Pi = zt;
4299
- const Ht = class Ht extends I {
4305
+ v(zt, "type", zt.register("ESUeViewer", pn.type, zt));
4306
+ let Li = zt;
4307
+ const bt = class bt extends E {
4300
4308
  constructor(e, t) {
4301
4309
  if (super(e, t), !t.viewer) {
4302
4310
  console.warn("viewer is undefined!");
@@ -4304,9 +4312,9 @@ const Ht = class Ht extends I {
4304
4312
  }
4305
4313
  }
4306
4314
  };
4307
- v(Ht, "type", Ht.register("ESUeViewer", pn.type, Ht));
4308
- let ki = Ht;
4309
- const bt = class bt extends I {
4315
+ v(bt, "type", bt.register("ESUeViewer", vn.type, bt));
4316
+ let ki = bt;
4317
+ const Ht = class Ht extends E {
4310
4318
  constructor(e, t) {
4311
4319
  if (super(e, t), !t.viewer) {
4312
4320
  console.warn("viewer is undefined!");
@@ -4314,9 +4322,9 @@ const bt = class bt extends I {
4314
4322
  }
4315
4323
  }
4316
4324
  };
4317
- v(bt, "type", bt.register("ESUeViewer", vn.type, bt));
4318
- let Di = bt;
4319
- const Jt = class Jt extends D {
4325
+ v(Ht, "type", Ht.register("ESUeViewer", gn.type, Ht));
4326
+ let Di = Ht;
4327
+ const Jt = class Jt extends B {
4320
4328
  constructor(e, t) {
4321
4329
  if (super(e, t), !t.viewer) {
4322
4330
  console.warn("viewer is undefined!");
@@ -4334,7 +4342,7 @@ const Gt = class Gt extends ze {
4334
4342
  }
4335
4343
  }
4336
4344
  };
4337
- v(Gt, "type", Gt.register("ESUeViewer", gn.type, Gt));
4345
+ v(Gt, "type", Gt.register("ESUeViewer", wn.type, Gt));
4338
4346
  let _i = Gt;
4339
4347
  const Kt = class Kt extends Ue {
4340
4348
  constructor(e, t) {
@@ -4346,20 +4354,20 @@ const Kt = class Kt extends Ue {
4346
4354
  }
4347
4355
  this.d(e.highlightFeatureEvent.don((r) => {
4348
4356
  const n = typeof r == "number" ? r.toString() : r;
4349
- rs(i, e.id, n);
4357
+ ns(i, e.id, n);
4350
4358
  })), this.d(e.highlightFeatureAndFlyToEvent.don((r, n, s, o) => {
4351
4359
  const h = typeof r == "number" ? r.toString() : r;
4352
- ns(i, e.id, h, o ?? 1);
4360
+ ss(i, e.id, h, o ?? 1);
4353
4361
  })), this.d(e.setLayerVisibleEvent.don((r, n) => {
4354
4362
  let s = "";
4355
- typeof n != "string" ? s = JSON.stringify(n) : s = n, ss(i, e.id, s);
4363
+ typeof n != "string" ? s = JSON.stringify(n) : s = n, os(i, e.id, s);
4356
4364
  })), this.d(e.setLayerColorEvent.don((r, n) => {
4357
4365
  let s = "";
4358
- typeof n != "string" ? s = JSON.stringify(n) : s = n, os(i, e.id, s);
4366
+ typeof n != "string" ? s = JSON.stringify(n) : s = n, as(i, e.id, s);
4359
4367
  }));
4360
4368
  }
4361
4369
  };
4362
- v(Kt, "type", Kt.register("ESUeViewer", wn.type, Kt));
4370
+ v(Kt, "type", Kt.register("ESUeViewer", yn.type, Kt));
4363
4371
  let Mi = Kt;
4364
4372
  const Xt = class Xt extends $ {
4365
4373
  constructor(e, t) {
@@ -4369,7 +4377,7 @@ const Xt = class Xt extends $ {
4369
4377
  }
4370
4378
  }
4371
4379
  };
4372
- v(Xt, "type", Xt.register("ESUeViewer", yn.type, Xt));
4380
+ v(Xt, "type", Xt.register("ESUeViewer", mn.type, Xt));
4373
4381
  let $i = Xt;
4374
4382
  const Yt = class Yt extends z {
4375
4383
  constructor(e, t) {
@@ -4392,9 +4400,9 @@ const Yt = class Yt extends z {
4392
4400
  }));
4393
4401
  }
4394
4402
  };
4395
- v(Yt, "type", Yt.register("ESUeViewer", mn.type, Yt));
4403
+ v(Yt, "type", Yt.register("ESUeViewer", Cn.type, Yt));
4396
4404
  let Wi = Yt;
4397
- const Zt = class Zt extends I {
4405
+ const Zt = class Zt extends E {
4398
4406
  constructor(e, t) {
4399
4407
  if (super(e, t), !t.viewer) {
4400
4408
  console.warn("viewer is undefined!");
@@ -4402,9 +4410,9 @@ const Zt = class Zt extends I {
4402
4410
  }
4403
4411
  }
4404
4412
  };
4405
- v(Zt, "type", Zt.register("ESUeViewer", Cn.type, Zt));
4413
+ v(Zt, "type", Zt.register("ESUeViewer", Fn.type, Zt));
4406
4414
  let Ai = Zt;
4407
- const q = class q extends M {
4415
+ const Q = class Q extends D {
4408
4416
  constructor(e, t) {
4409
4417
  if (super(e, t), !t.viewer) {
4410
4418
  console.warn("viewer is undefined!");
@@ -4412,15 +4420,15 @@ const q = class q extends M {
4412
4420
  }
4413
4421
  }
4414
4422
  };
4415
- v(q, "type", q.register("ESUeViewer", Fn.type, q)), v(q, "forceUeUpdateProps", [
4416
- ...M.forceUeUpdateProps,
4423
+ v(Q, "type", Q.register("ESUeViewer", In.type, Q)), v(Q, "forceUeUpdateProps", [
4424
+ ...D.forceUeUpdateProps,
4417
4425
  "url"
4418
- ]), v(q, "propValFuncs", {
4419
- ...M.propValFuncs,
4420
- url: (e) => typeof e == "string" ? E.context.getStrFromEnv(e) : (e.url = E.context.getStrFromEnv(e.url), e)
4426
+ ]), v(Q, "propValFuncs", {
4427
+ ...D.propValFuncs,
4428
+ url: (e) => typeof e == "string" ? I.context.getStrFromEnv(e) : (e.url = I.context.getStrFromEnv(e.url), e)
4421
4429
  });
4422
- let Ui = q;
4423
- const qt = class qt extends D {
4430
+ let Ui = Q;
4431
+ const qt = class qt extends B {
4424
4432
  constructor(e, t) {
4425
4433
  if (super(e, t), !t.viewer) {
4426
4434
  console.warn("viewer is undefined!");
@@ -4428,9 +4436,9 @@ const qt = class qt extends D {
4428
4436
  }
4429
4437
  }
4430
4438
  };
4431
- v(qt, "type", qt.register("ESUeViewer", In.type, qt));
4439
+ v(qt, "type", qt.register("ESUeViewer", En.type, qt));
4432
4440
  let Ni = qt;
4433
- const rt = class rt extends $ {
4441
+ const nt = class nt extends $ {
4434
4442
  constructor(e, t) {
4435
4443
  if (super(e, t), !t.viewer) {
4436
4444
  console.warn("viewer is undefined!");
@@ -4438,16 +4446,16 @@ const rt = class rt extends $ {
4438
4446
  }
4439
4447
  }
4440
4448
  };
4441
- v(rt, "type", rt.register("ESUeViewer", En.type, rt)), // null 表示不设置,undefined表示不做任何转换
4442
- v(rt, "propValFuncs", {
4449
+ v(nt, "type", nt.register("ESUeViewer", Sn.type, nt)), // null 表示不设置,undefined表示不做任何转换
4450
+ v(nt, "propValFuncs", {
4443
4451
  ...$.propValFuncs,
4444
4452
  targetID: (e) => {
4445
4453
  if (!e) return "";
4446
- const t = E.getSceneObject(e);
4454
+ const t = I.getSceneObject(e);
4447
4455
  return t ? (t.components.main ?? t).id : e;
4448
4456
  }
4449
4457
  });
4450
- let zi = rt;
4458
+ let zi = nt;
4451
4459
  const Qt = class Qt extends $ {
4452
4460
  constructor(e, t) {
4453
4461
  if (super(e, t), !t.viewer) {
@@ -4456,9 +4464,9 @@ const Qt = class Qt extends $ {
4456
4464
  }
4457
4465
  }
4458
4466
  };
4459
- v(Qt, "type", Qt.register("ESUeViewer", Sn.type, Qt));
4460
- let Hi = Qt;
4461
- const Vt = class Vt extends at {
4467
+ v(Qt, "type", Qt.register("ESUeViewer", Tn.type, Qt));
4468
+ let bi = Qt;
4469
+ const Vt = class Vt extends lt {
4462
4470
  constructor(e, t) {
4463
4471
  if (super(e, t), !t.viewer) {
4464
4472
  console.warn("viewer is undefined!");
@@ -4477,23 +4485,23 @@ const Vt = class Vt extends at {
4477
4485
  let h = [255, 255, 255, 1];
4478
4486
  if (o.startsWith("#")) {
4479
4487
  if (o.length === 4) {
4480
- let a = parseInt(o[1] + o[1], 16), g = parseInt(o[2] + o[2], 16), p = parseInt(o[3] + o[3], 16);
4481
- h = [a, g, p, 1];
4488
+ let a = parseInt(o[1] + o[1], 16), f = parseInt(o[2] + o[2], 16), p = parseInt(o[3] + o[3], 16);
4489
+ h = [a, f, p, 1];
4482
4490
  } else if (o.length === 7) {
4483
- let a = parseInt(o.substring(1, 3), 16), g = parseInt(o.substring(3, 5), 16), p = parseInt(o.substring(5, 7), 16);
4484
- h = [a, g, p, 1];
4491
+ let a = parseInt(o.substring(1, 3), 16), f = parseInt(o.substring(3, 5), 16), p = parseInt(o.substring(5, 7), 16);
4492
+ h = [a, f, p, 1];
4485
4493
  }
4486
4494
  } else if (o.startsWith("rgba")) {
4487
4495
  let a = o.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)$/);
4488
4496
  if (a) {
4489
- let g = parseInt(a[1]), p = parseInt(a[2]), d = parseInt(a[3]), u = parseFloat(a[4]);
4490
- h = [g, p, d, u];
4497
+ let f = parseInt(a[1]), p = parseInt(a[2]), l = parseInt(a[3]), u = parseFloat(a[4]);
4498
+ h = [f, p, l, u];
4491
4499
  }
4492
4500
  } else if (o.startsWith("rgb")) {
4493
4501
  let a = o.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/);
4494
4502
  if (a) {
4495
- let g = parseInt(a[1]), p = parseInt(a[2]), d = parseInt(a[3]);
4496
- h = [g, p, d, 1];
4503
+ let f = parseInt(a[1]), p = parseInt(a[2]), l = parseInt(a[3]);
4504
+ h = [f, p, l, 1];
4497
4505
  }
4498
4506
  } else
4499
4507
  console.error("color类型只能为#rrggbb、#rgb、rgba(r,g,b,a)、rgb(r,g,b)");
@@ -4527,7 +4535,7 @@ const Vt = class Vt extends at {
4527
4535
  }), e.setFeatureStyle(h);
4528
4536
  };
4529
4537
  n();
4530
- const s = this.dv(P(
4538
+ const s = this.dv(L(
4531
4539
  e.layerConfigChanged,
4532
4540
  e.colorBlendModeChanged
4533
4541
  ));
@@ -4537,30 +4545,30 @@ const Vt = class Vt extends at {
4537
4545
  }
4538
4546
  }
4539
4547
  };
4540
- v(Vt, "type", Vt.register("ESUeViewer", Tn.type, Vt));
4541
- let bi = Vt;
4542
- const Ot = class Ot extends M {
4548
+ v(Vt, "type", Vt.register("ESUeViewer", xn.type, Vt));
4549
+ let Hi = Vt;
4550
+ const Ot = class Ot extends D {
4543
4551
  constructor(e, t) {
4544
4552
  if (super(e, t), !t.viewer) {
4545
4553
  console.warn("viewer is undefined!");
4546
4554
  return;
4547
4555
  }
4548
4556
  this.d(e.addTreesEvent.don((r) => {
4549
- Rn(t, e.id, r);
4557
+ Pn(t, e.id, r);
4550
4558
  })), this.d(e.removeAllTreesEvent.don(() => {
4551
4559
  Ln(t, e.id);
4552
4560
  })), this.d(e.updateTreeParamsEvent.don((r) => {
4553
- Pn(t, e.id, r);
4561
+ kn(t, e.id, r);
4554
4562
  })), this.d(e.cutDownTreesEvent.don((r, n) => {
4555
- kn(t, e.id, r, n);
4563
+ Dn(t, e.id, r, n);
4556
4564
  })), this.d(e.growthSimulationEvent.don((r, n, s) => {
4557
- Dn(t, e.id, r, n, s);
4565
+ Bn(t, e.id, r, n, s);
4558
4566
  }));
4559
4567
  }
4560
4568
  };
4561
- v(Ot, "type", Ot.register("ESUeViewer", xn.type, Ot));
4569
+ v(Ot, "type", Ot.register("ESUeViewer", Rn.type, Ot));
4562
4570
  let Ji = Ot;
4563
- const jt = class jt extends I {
4571
+ const jt = class jt extends E {
4564
4572
  constructor(e, t) {
4565
4573
  if (super(e, t), !t.viewer) {
4566
4574
  console.warn("viewer is undefined!");
@@ -4568,7 +4576,7 @@ const jt = class jt extends I {
4568
4576
  }
4569
4577
  }
4570
4578
  };
4571
- v(jt, "type", jt.register("ESUeViewer", Bn.type, jt));
4579
+ v(jt, "type", jt.register("ESUeViewer", _n.type, jt));
4572
4580
  let Gi = jt;
4573
4581
  const te = class te extends $ {
4574
4582
  constructor(e, t) {
@@ -4595,7 +4603,7 @@ const te = class te extends $ {
4595
4603
  }));
4596
4604
  }
4597
4605
  };
4598
- v(te, "type", te.register("ESUeViewer", _n.type, te));
4606
+ v(te, "type", te.register("ESUeViewer", Mn.type, te));
4599
4607
  let Ki = te;
4600
4608
  const ee = class ee extends $ {
4601
4609
  constructor(e, t) {
@@ -4615,7 +4623,7 @@ const ee = class ee extends $ {
4615
4623
  }));
4616
4624
  }
4617
4625
  };
4618
- v(ee, "type", ee.register("ESUeViewer", Mn.type, ee));
4626
+ v(ee, "type", ee.register("ESUeViewer", $n.type, ee));
4619
4627
  let Xi = ee;
4620
4628
  const ie = class ie extends z {
4621
4629
  constructor(e, t) {
@@ -4625,9 +4633,9 @@ const ie = class ie extends z {
4625
4633
  }
4626
4634
  }
4627
4635
  };
4628
- v(ie, "type", ie.register("ESUeViewer", vr.type, ie));
4636
+ v(ie, "type", ie.register("ESUeViewer", gr.type, ie));
4629
4637
  let Yi = ie;
4630
- const nt = class nt extends z {
4638
+ const st = class st extends z {
4631
4639
  constructor(e, t) {
4632
4640
  super(e, t);
4633
4641
  const i = t.viewer;
@@ -4636,18 +4644,18 @@ const nt = class nt extends z {
4636
4644
  return;
4637
4645
  }
4638
4646
  this.d(e.callFunctionEvent.don(async (r, n) => {
4639
- const s = await Er(i, e.id, r, n);
4647
+ const s = await Sr(i, e.id, r, n);
4640
4648
  e.__callFunctionResultEvent.emit(s);
4641
4649
  }));
4642
4650
  }
4643
4651
  };
4644
- v(nt, "type", nt.register("ESUeViewer", $n.type, nt)), v(nt, "propValFuncs", {
4652
+ v(st, "type", st.register("ESUeViewer", Wn.type, st)), v(st, "propValFuncs", {
4645
4653
  ...z.propValFuncs,
4646
4654
  info: (e) => JSON.stringify(e ?? {})
4647
4655
  });
4648
- let Zi = nt;
4649
- const qi = (l) => {
4650
- switch (l) {
4656
+ let Zi = st;
4657
+ const qi = (d) => {
4658
+ switch (d) {
4651
4659
  case 0:
4652
4660
  return "成功绑定";
4653
4661
  case 1:
@@ -4661,8 +4669,8 @@ const qi = (l) => {
4661
4669
  default:
4662
4670
  return "未知错误";
4663
4671
  }
4664
- }, Fo = (l) => {
4665
- switch (l) {
4672
+ }, Io = (d) => {
4673
+ switch (d) {
4666
4674
  case 0:
4667
4675
  return "创建成功";
4668
4676
  case 1:
@@ -4681,7 +4689,7 @@ const qi = (l) => {
4681
4689
  return;
4682
4690
  }
4683
4691
  this.d(() => {
4684
- Fr(i, e.id);
4692
+ Ir(i, e.id);
4685
4693
  });
4686
4694
  const r = async () => {
4687
4695
  a() || await i.callUeFunc({
@@ -4700,7 +4708,7 @@ const qi = (l) => {
4700
4708
  maxVisibleDistance: e.maxVisibleDistance
4701
4709
  }
4702
4710
  });
4703
- }, n = this.dv(P(
4711
+ }, n = this.dv(L(
4704
4712
  e.showChanged,
4705
4713
  e.nameChanged,
4706
4714
  e.rotationChanged,
@@ -4723,10 +4731,10 @@ const qi = (l) => {
4723
4731
  position: e.position
4724
4732
  }
4725
4733
  }), (t.debug ?? !1) && console.log(`updatePostion:${e.position},actorTag:${e.actorTag},actorClass:${e.actorClass}`));
4726
- }, a = () => !s && !o ? (console.warn(`${e.id} 未绑定ActorTag或未创建ActorClass!`), !0) : !1, g = async () => {
4727
- const { id: d } = e, u = await t.unBindActorByID(d);
4734
+ }, a = () => !s && !o ? (console.warn(`${e.id} 未绑定ActorTag或未创建ActorClass!`), !0) : !1, f = async () => {
4735
+ const { id: l } = e, u = await t.unBindActorByID(l);
4728
4736
  u && u.error !== "" && console.warn(`${e.id} UeESUnrealActor UnBindActorByID: ${u.error}`), s = void 0;
4729
- const c = await i.callUeFunc({ f: "destroy", p: { id: d } });
4737
+ const c = await i.callUeFunc({ f: "destroy", p: { id: l } });
4730
4738
  if (c && c.error !== "") {
4731
4739
  console.warn(`${e.id} UeESUnrealActor DestroyActorByID: ${c.error}`);
4732
4740
  return;
@@ -4737,7 +4745,7 @@ const qi = (l) => {
4737
4745
  actorClass: "default"
4738
4746
  }));
4739
4747
  {
4740
- const d = this.dv(P(
4748
+ const l = this.dv(L(
4741
4749
  e.actorClassChanged,
4742
4750
  e.actorTagChanged
4743
4751
  // sceneObject.positionChanged,
@@ -4752,94 +4760,94 @@ const qi = (l) => {
4752
4760
  // position: sceneObject.position,
4753
4761
  };
4754
4762
  };
4755
- u(), this.d(d.don(u)), this.d(e.flushEvent.don(() => d.flush()));
4763
+ u(), this.d(l.don(u)), this.d(e.flushEvent.don(() => l.flush()));
4756
4764
  }
4757
4765
  {
4758
- const d = this.dv(Te(async (c) => {
4759
- if (await c.promise(g()), e.lastActorStatus = "null", p.value.type === "ActorTag") {
4760
- const { actorTag: f } = p.value;
4766
+ const l = this.dv(Te(async (c) => {
4767
+ if (await c.promise(f()), e.lastActorStatus = "null", p.value.type === "ActorTag") {
4768
+ const { actorTag: g } = p.value;
4761
4769
  try {
4762
- const w = await c.promise(t.bindActorByTag(e.id, f));
4770
+ const w = await c.promise(t.bindActorByTag(e.id, g));
4763
4771
  if (!w) return;
4764
4772
  if (w.error !== "") {
4765
- console.warn(`${e.id} UeESUnrealActor BindActorByTag:${f},${w.error}`);
4773
+ console.warn(`${e.id} UeESUnrealActor BindActorByTag:${g},${w.error}`);
4766
4774
  return;
4767
4775
  }
4768
4776
  if (w.re.type === 0)
4769
- e.lastActorStatus = "bound", s = f;
4777
+ e.lastActorStatus = "bound", s = g;
4770
4778
  else if (w.re.type === 1)
4771
- e.lastActorStatus = "bound", s = f, console.warn(`${e.id} UeESUnrealActor BindActorByTag:${f},${qi(w.re.type)}`);
4779
+ e.lastActorStatus = "bound", s = g, console.warn(`${e.id} UeESUnrealActor BindActorByTag:${g},${qi(w.re.type)}`);
4772
4780
  else {
4773
- s = void 0, console.warn(`${e.id} UeESUnrealActor BindActorByTag error:${f}, ${qi(w.re.type)}`);
4781
+ s = void 0, console.warn(`${e.id} UeESUnrealActor BindActorByTag error:${g}, ${qi(w.re.type)}`);
4774
4782
  return;
4775
4783
  }
4776
4784
  } catch (w) {
4777
- console.warn(`${e.id} UeESUnrealActor BindActorByTag catch error:${f}, ${w}`);
4785
+ console.warn(`${e.id} UeESUnrealActor BindActorByTag catch error:${g}, ${w}`);
4778
4786
  return;
4779
4787
  }
4780
4788
  } else if (p.value.type === "ActorClass") {
4781
- const { actorClass: f } = p.value;
4789
+ const { actorClass: g } = p.value;
4782
4790
  try {
4783
- const w = await c.promise(t.createActorByClass(e.id, f));
4791
+ const w = await c.promise(t.createActorByClass(e.id, g));
4784
4792
  if (!w) return;
4785
4793
  if (w.error !== "") {
4786
- console.warn(`${e.id} UeESUnrealActor CreateActorByClass error :${f}, ${w.error}`);
4794
+ console.warn(`${e.id} UeESUnrealActor CreateActorByClass error :${g}, ${w.error}`);
4787
4795
  return;
4788
4796
  }
4789
4797
  if (w.re.type === 0)
4790
- f !== "default" && (e.lastActorStatus = "created"), o = f;
4798
+ g !== "default" && (e.lastActorStatus = "created"), o = g;
4791
4799
  else {
4792
- console.warn(`${e.id} UeESUnrealActor CreateActorByClass error type :${f},${Fo(w.re.type)}`);
4800
+ console.warn(`${e.id} UeESUnrealActor CreateActorByClass error type :${g},${Io(w.re.type)}`);
4793
4801
  return;
4794
4802
  }
4795
4803
  } catch (w) {
4796
- console.warn(`${e.id} UeESUnrealActor CreateActorByClass error catch :${f}, ${JSON.stringify(w)}`);
4804
+ console.warn(`${e.id} UeESUnrealActor CreateActorByClass error catch :${g}, ${JSON.stringify(w)}`);
4797
4805
  return;
4798
4806
  }
4799
4807
  }
4800
4808
  await c.promise(r()), await c.promise(h());
4801
4809
  })), u = async () => {
4802
- d.restart();
4810
+ l.restart();
4803
4811
  };
4804
4812
  u(), this.d(p.changed.don(u));
4805
4813
  }
4806
- this.d(e.positionChanged.don(h)), this.d(e.callFunctionEvent.don(async (d, u) => {
4814
+ this.d(e.positionChanged.don(h)), this.d(e.callFunctionEvent.don(async (l, u) => {
4807
4815
  if (a()) {
4808
4816
  e.__callFunctionResultEvent.emit(void 0);
4809
4817
  return;
4810
4818
  }
4811
- const c = await Er(i, e.id, d, u);
4819
+ const c = await Sr(i, e.id, l, u);
4812
4820
  e.__callFunctionResultEvent.emit(c);
4813
- })), this.d(e.smoothMoveEvent.don((d, u) => {
4814
- a() || De(i, e.id, d, u);
4815
- })), this.d(e.smoothMoveWithRotationEvent.don((d, u, c) => {
4816
- a() || Le(i, e.id, d, u, c);
4817
- })), this.d(e.smoothMoveOnGroundEvent.don((d, u, c, f) => {
4818
- a() || Pe(i, e.id, d, u, f, c);
4819
- })), this.d(e.smoothMoveWithRotationOnGroundEvent.don((d, u, c, f, w) => {
4820
- a() || ke(i, e.id, d, u, c, f, w);
4821
- })), this.d(e.automaticLandingEvent.don((d) => {
4821
+ })), this.d(e.smoothMoveEvent.don((l, u) => {
4822
+ a() || De(i, e.id, l, u);
4823
+ })), this.d(e.smoothMoveWithRotationEvent.don((l, u, c) => {
4824
+ a() || Pe(i, e.id, l, u, c);
4825
+ })), this.d(e.smoothMoveOnGroundEvent.don((l, u, c, g) => {
4826
+ a() || Le(i, e.id, l, u, g, c);
4827
+ })), this.d(e.smoothMoveWithRotationOnGroundEvent.don((l, u, c, g, w) => {
4828
+ a() || ke(i, e.id, l, u, c, g, w);
4829
+ })), this.d(e.automaticLandingEvent.don((l) => {
4822
4830
  if (a()) return;
4823
4831
  const u = [e.position[0], e.position[1]];
4824
4832
  t.getHeightByLonLat(e.position[0], e.position[1], "Visibility").then((c) => {
4825
- c !== null && (e.position = [...u, c], e.collision = d);
4833
+ c !== null && (e.position = [...u, c], e.collision = l);
4826
4834
  });
4827
- })), this.d(e.flyToEvent.don(async (d, u) => {
4835
+ })), this.d(e.flyToEvent.don(async (l, u) => {
4828
4836
  if (a()) return;
4829
- const c = await we(i, e.id, d);
4830
- let f = "over";
4831
- c === void 0 ? f = "error" : c.endType === 0 ? f = "over" : c.endType === 1 && (f = "cancelled"), e.flyOverEvent.emit(u, f, t);
4837
+ const c = await we(i, e.id, l);
4838
+ let g = "over";
4839
+ c === void 0 ? g = "error" : c.endType === 0 ? g = "over" : c.endType === 1 && (g = "cancelled"), e.flyOverEvent.emit(u, g, t);
4832
4840
  })), this.d(e.calcFlyToParamEvent.don(() => {
4833
4841
  a() || dt(i, e.id);
4834
4842
  })), this.d(e.calcFlyInParamEvent.don(async () => {
4835
4843
  if (!t.actived) return;
4836
- const d = await t.getCurrentCameraInfo();
4837
- if (!d) return;
4838
- const { position: u, rotation: c } = d;
4844
+ const l = await t.getCurrentCameraInfo();
4845
+ if (!l) return;
4846
+ const { position: u, rotation: c } = l;
4839
4847
  e.flyInParam = { position: u, rotation: c, flyDuration: 1 };
4840
- })), this.d(t.propChanged.don((d) => {
4841
- a() || d.objId === e.id && Object.keys(d.props).forEach((u) => {
4842
- const c = d.props[u] === null ? void 0 : d.props[u];
4848
+ })), this.d(t.propChanged.don((l) => {
4849
+ a() || l.objId === e.id && Object.keys(l.props).forEach((u) => {
4850
+ const c = l.props[u] === null ? void 0 : l.props[u];
4843
4851
  e[u] = c;
4844
4852
  });
4845
4853
  }));
@@ -4847,7 +4855,7 @@ const qi = (l) => {
4847
4855
  };
4848
4856
  v(re, "type", re.register("ESUeViewer", $e.type, re));
4849
4857
  let Qi = re;
4850
- const ne = class ne extends I {
4858
+ const ne = class ne extends E {
4851
4859
  constructor(e, t) {
4852
4860
  if (super(e, t), !t.viewer) {
4853
4861
  console.warn("viewer is undefined!");
@@ -4855,9 +4863,9 @@ const ne = class ne extends I {
4855
4863
  }
4856
4864
  }
4857
4865
  };
4858
- v(ne, "type", ne.register("ESUeViewer", Wn.type, ne));
4866
+ v(ne, "type", ne.register("ESUeViewer", An.type, ne));
4859
4867
  let Vi = ne;
4860
- const se = class se extends I {
4868
+ const se = class se extends E {
4861
4869
  constructor(e, t) {
4862
4870
  if (super(e, t), !t.viewer) {
4863
4871
  console.warn("viewer is undefined!");
@@ -4865,9 +4873,9 @@ const se = class se extends I {
4865
4873
  }
4866
4874
  }
4867
4875
  };
4868
- v(se, "type", se.register("ESUeViewer", An.type, se));
4876
+ v(se, "type", se.register("ESUeViewer", Un.type, se));
4869
4877
  let Oi = se;
4870
- const oe = class oe extends D {
4878
+ const oe = class oe extends B {
4871
4879
  constructor(e, t) {
4872
4880
  if (super(e, t), !t.viewer) {
4873
4881
  console.warn("viewer is underfined!");
@@ -4875,7 +4883,7 @@ const oe = class oe extends D {
4875
4883
  }
4876
4884
  }
4877
4885
  };
4878
- v(oe, "type", oe.register("ESUeViewer", Un.type, oe));
4886
+ v(oe, "type", oe.register("ESUeViewer", Nn.type, oe));
4879
4887
  let ji = oe;
4880
4888
  const ae = class ae extends $ {
4881
4889
  constructor(e, t) {
@@ -4902,9 +4910,9 @@ const ae = class ae extends $ {
4902
4910
  }));
4903
4911
  }
4904
4912
  };
4905
- v(ae, "type", ae.register("ESUeViewer", Nn.type, ae));
4913
+ v(ae, "type", ae.register("ESUeViewer", zn.type, ae));
4906
4914
  let tr = ae;
4907
- const st = class st extends z {
4915
+ const ot = class ot extends z {
4908
4916
  constructor(e, t) {
4909
4917
  if (super(e, t), !t.viewer) {
4910
4918
  console.warn("viewer is undefined!");
@@ -4912,12 +4920,12 @@ const st = class st extends z {
4912
4920
  }
4913
4921
  }
4914
4922
  };
4915
- v(st, "type", st.register("ESUeViewer", zn.type, st)), v(st, "propValFuncs", {
4923
+ v(ot, "type", ot.register("ESUeViewer", bn.type, ot)), v(ot, "propValFuncs", {
4916
4924
  ...z.propValFuncs,
4917
4925
  info: (e) => JSON.stringify(e ?? {})
4918
4926
  });
4919
- let er = st;
4920
- const de = class de extends G {
4927
+ let er = ot;
4928
+ const le = class le extends G {
4921
4929
  constructor(e, t) {
4922
4930
  if (super(e, t), !t.viewer) {
4923
4931
  console.warn("viewer is undefined!");
@@ -4930,10 +4938,10 @@ const de = class de extends G {
4930
4938
  });
4931
4939
  }
4932
4940
  };
4933
- v(de, "type", de.register("ESUeViewer", Hn.type, de));
4934
- let ir = de;
4935
- E.context.getStrFromEnv(j.defaults.imgUrl);
4936
- const le = class le extends G {
4941
+ v(le, "type", le.register("ESUeViewer", Hn.type, le));
4942
+ let ir = le;
4943
+ I.context.getStrFromEnv(tt.defaults.imgUrl);
4944
+ const de = class de extends G {
4937
4945
  constructor(e, t) {
4938
4946
  if (super(e, t), !t.viewer) {
4939
4947
  console.warn("viewer is undefined!");
@@ -4949,43 +4957,43 @@ const le = class le extends G {
4949
4957
  const a = document.createElement("div");
4950
4958
  this._subContainer.appendChild(a), this.dispose(() => this._subContainer.removeChild(a));
4951
4959
  {
4952
- const d = async () => {
4960
+ const l = async () => {
4953
4961
  const u = await t.getCurrentCameraInfo(), c = u == null ? void 0 : u.position, w = [...u == null ? void 0 : u.rotation];
4954
4962
  w[0] = 360, t.flyIn(c, w);
4955
4963
  };
4956
- a.addEventListener("click", d), a.style.cursor = "pointer", this.dispose(() => a.removeEventListener("click", d));
4964
+ a.addEventListener("click", l), a.style.cursor = "pointer", this.dispose(() => a.removeEventListener("click", l));
4957
4965
  }
4958
4966
  {
4959
- const d = () => {
4960
- a.style.width = `${e.cssSize ? e.cssSize : j.defaults.cssSize}px`, a.style.height = `${e.cssSize ? e.cssSize : j.defaults.cssSize}px`;
4967
+ const l = () => {
4968
+ a.style.width = `${e.cssSize ? e.cssSize : tt.defaults.cssSize}px`, a.style.height = `${e.cssSize ? e.cssSize : tt.defaults.cssSize}px`;
4961
4969
  };
4962
- d(), e.dispose(e.cssSizeChanged.disposableOn(d));
4970
+ l(), e.dispose(e.cssSizeChanged.disposableOn(l));
4963
4971
  }
4964
4972
  a.style.position = "fixed";
4965
4973
  {
4966
- const d = () => {
4967
- a.style.top = `${e.cssPosition ? e.cssPosition[0] : j.defaults.cssPosition[0]}px`, a.style.right = `${e.cssPosition ? e.cssPosition[1] : j.defaults.cssPosition[1]}px`;
4974
+ const l = () => {
4975
+ a.style.top = `${e.cssPosition ? e.cssPosition[0] : tt.defaults.cssPosition[0]}px`, a.style.right = `${e.cssPosition ? e.cssPosition[1] : tt.defaults.cssPosition[1]}px`;
4968
4976
  };
4969
- d(), e.dispose(e.cssPositionChanged.disposableOn(d));
4977
+ l(), e.dispose(e.cssPositionChanged.disposableOn(l));
4970
4978
  }
4971
4979
  a.style.transition = " right 0.4s linear", a.style.cursor = "pointer";
4972
- const g = document.createElement("div");
4973
- a.appendChild(g), this.dispose(() => a.removeChild(g)), g.style.width = "100%", g.style.height = "100%", g.style.position = "relative";
4980
+ const f = document.createElement("div");
4981
+ a.appendChild(f), this.dispose(() => a.removeChild(f)), f.style.width = "100%", f.style.height = "100%", f.style.position = "relative";
4974
4982
  const p = document.createElement("img");
4975
- g.appendChild(p), this.dispose(() => g.removeChild(p)), p.style.width = "100%", p.style.height = "100%", p.style.border = "none";
4983
+ f.appendChild(p), this.dispose(() => f.removeChild(p)), p.style.width = "100%", p.style.height = "100%", p.style.border = "none";
4976
4984
  {
4977
- const d = () => p.src = e.imgUrl;
4978
- d(), e.dispose(e.imgUrlChanged.disposableOn(d));
4985
+ const l = () => p.src = e.imgUrl;
4986
+ l(), e.dispose(e.imgUrlChanged.disposableOn(l));
4979
4987
  }
4980
4988
  {
4981
- const d = () => {
4989
+ const l = () => {
4982
4990
  const w = -t.getCurrentCameraInfo().rotation[0];
4983
4991
  p.style.transform = `rotate(${w}deg)`;
4984
4992
  };
4985
4993
  let u;
4986
4994
  const c = async () => {
4987
- d(), e.show ? (a.style.display = "block", u = setInterval(() => {
4988
- d();
4995
+ l(), e.show ? (a.style.display = "block", u = setInterval(() => {
4996
+ l();
4989
4997
  }, 1e3)) : (a.style.display = "none", clearInterval(u));
4990
4998
  };
4991
4999
  this.dispose(e.showChanged.disposableOn(c)), c(), this.dispose(() => clearInterval(u));
@@ -4995,9 +5003,9 @@ const le = class le extends G {
4995
5003
  };
4996
5004
  }
4997
5005
  };
4998
- v(le, "type", le.register("ESUeViewer", j.type, le));
4999
- let rr = le;
5000
- const Q = class Q extends D {
5006
+ v(de, "type", de.register("ESUeViewer", tt.type, de));
5007
+ let rr = de;
5008
+ const V = class V extends B {
5001
5009
  constructor(e, t) {
5002
5010
  super(e, t);
5003
5011
  const i = t.viewer;
@@ -5019,14 +5027,14 @@ const Q = class Q extends D {
5019
5027
  }
5020
5028
  }
5021
5029
  };
5022
- v(Q, "type", Q.register("ESUeViewer", bn.type, Q)), v(Q, "forceUeUpdateProps", [
5023
- ...D.forceUeUpdateProps
5024
- ]), v(Q, "propValFuncs", {
5025
- ...D.propValFuncs
5030
+ v(V, "type", V.register("ESUeViewer", Jn.type, V)), v(V, "forceUeUpdateProps", [
5031
+ ...B.forceUeUpdateProps
5032
+ ]), v(V, "propValFuncs", {
5033
+ ...B.propValFuncs
5026
5034
  });
5027
- let nr = Q;
5028
- async function Io(l) {
5029
- navigator.clipboard.writeText(l).then(function() {
5035
+ let nr = V;
5036
+ async function Eo(d) {
5037
+ navigator.clipboard.writeText(d).then(function() {
5030
5038
  console.log("复制成功");
5031
5039
  }, function(e) {
5032
5040
  console.log("复制失败");
@@ -5044,15 +5052,15 @@ const ce = class ce extends G {
5044
5052
  if (super(), this._subContainer = s, !h || !(h instanceof J)) return;
5045
5053
  const a = document.createElement("div");
5046
5054
  this._subContainer.appendChild(a), this.dispose(() => this._subContainer.removeChild(a)), a.style.width = "100%", a.style.position = "absolute", a.style.height = `${A.defaults.height}px`, a.style.left = "0", a.style.bottom = "0", a.style.color = "#fff", a.style.padding = "0 20px 0 0", a.style.boxSizing = "border-box", a.style.lineHeight = `${A.defaults.height}px`, a.style.zIndex = "100", a.style.alignContent = "center", a.style.justifyContent = "space-between";
5047
- const g = document.createElement("span");
5048
- a.appendChild(g), this.dispose(() => a.removeChild(g));
5055
+ const f = document.createElement("span");
5056
+ a.appendChild(f), this.dispose(() => a.removeChild(f));
5049
5057
  const p = document.createElement("span");
5050
- g.appendChild(p), this.dispose(() => g.removeChild(p));
5051
- const d = document.createElement("span");
5052
- g.appendChild(d), d.addEventListener("dblclick", function() {
5053
- let c = d.innerHTML;
5054
- c.startsWith("鼠标位置") && (c = c.slice(5)), Io(c);
5055
- }), d.style.cursor = "pointer", this.dispose(() => g.removeChild(d));
5058
+ f.appendChild(p), this.dispose(() => f.removeChild(p));
5059
+ const l = document.createElement("span");
5060
+ f.appendChild(l), l.addEventListener("dblclick", function() {
5061
+ let c = l.innerHTML;
5062
+ c.startsWith("鼠标位置") && (c = c.slice(5)), Eo(c);
5063
+ }), l.style.cursor = "pointer", this.dispose(() => f.removeChild(l));
5056
5064
  const u = document.createElement("span");
5057
5065
  a.appendChild(u), this.dispose(() => a.removeChild(u));
5058
5066
  {
@@ -5087,23 +5095,23 @@ const ce = class ce extends G {
5087
5095
  if (R) {
5088
5096
  const { pickResult: T } = R;
5089
5097
  if (T && T.position) {
5090
- const { position: B } = T;
5091
- x += `鼠标位置:${B[0].toFixed(5)}° ${B[1].toFixed(5)}° ${B[2].toFixed(2)}m`;
5098
+ const { position: _ } = T;
5099
+ x += `鼠标位置:${_[0].toFixed(5)}° ${_[1].toFixed(5)}° ${_[2].toFixed(2)}m`;
5092
5100
  } else
5093
5101
  x += "暂时无法获取鼠标位置...";
5094
- d.innerText = x;
5102
+ l.innerText = x;
5095
5103
  }
5096
5104
  }).catch((R) => {
5097
5105
  console.log(R);
5098
5106
  });
5099
5107
  };
5100
- let f;
5108
+ let g;
5101
5109
  const w = async () => {
5102
- c(), e.show ? (a.style.display = "flex", f = setInterval(() => {
5110
+ c(), e.show ? (a.style.display = "flex", g = setInterval(() => {
5103
5111
  c();
5104
- }, 1e3)) : (a.style.display = "none", clearInterval(f));
5112
+ }, 1e3)) : (a.style.display = "none", clearInterval(g));
5105
5113
  };
5106
- this.dispose(e.showChanged.disposableOn(w)), w(), this.dispose(() => clearInterval(f));
5114
+ this.dispose(e.showChanged.disposableOn(w)), w(), this.dispose(() => clearInterval(g));
5107
5115
  }
5108
5116
  }
5109
5117
  };
@@ -5111,7 +5119,7 @@ const ce = class ce extends G {
5111
5119
  };
5112
5120
  v(ce, "type", ce.register("ESUeViewer", A.type, ce));
5113
5121
  let sr = ce;
5114
- const ue = class ue extends I {
5122
+ const ue = class ue extends E {
5115
5123
  constructor(e, t) {
5116
5124
  if (super(e, t), !t.viewer) {
5117
5125
  console.warn("viewer is undefined!");
@@ -5119,9 +5127,9 @@ const ue = class ue extends I {
5119
5127
  }
5120
5128
  }
5121
5129
  };
5122
- v(ue, "type", ue.register("ESUeViewer", Jn.type, ue));
5130
+ v(ue, "type", ue.register("ESUeViewer", Gn.type, ue));
5123
5131
  let or = ue;
5124
- const he = class he extends at {
5132
+ const he = class he extends lt {
5125
5133
  constructor(t, i) {
5126
5134
  super(t, i);
5127
5135
  v(this, "_es3DTileset", this.dv(new me()));
@@ -5179,9 +5187,9 @@ const he = class he extends at {
5179
5187
  return this._es3DTileset;
5180
5188
  }
5181
5189
  };
5182
- v(he, "type", he.register("ESUeViewer", Gn.type, he));
5190
+ v(he, "type", he.register("ESUeViewer", Kn.type, he));
5183
5191
  let ar = he;
5184
- const pe = class pe extends at {
5192
+ const pe = class pe extends lt {
5185
5193
  constructor(e, t) {
5186
5194
  if (super(e, t), !t.viewer) {
5187
5195
  console.warn("viewer is undefined!");
@@ -5189,8 +5197,8 @@ const pe = class pe extends at {
5189
5197
  }
5190
5198
  }
5191
5199
  };
5192
- v(pe, "type", pe.register("ESUeViewer", Kn.type, pe));
5193
- let dr = pe;
5200
+ v(pe, "type", pe.register("ESUeViewer", Xn.type, pe));
5201
+ let lr = pe;
5194
5202
  const ve = class ve extends $ {
5195
5203
  constructor(e, t) {
5196
5204
  super(e, t);
@@ -5209,7 +5217,7 @@ const ve = class ve extends $ {
5209
5217
  perPositionHeight: e.perPositionHeight ?? ye.defaults.perPositionHeight
5210
5218
  }
5211
5219
  });
5212
- }, n = this.disposeVar(P(
5220
+ }, n = this.disposeVar(L(
5213
5221
  e.heightChanged,
5214
5222
  e.extrudedHeightChanged,
5215
5223
  e.perPositionHeightChanged
@@ -5218,8 +5226,8 @@ const ve = class ve extends $ {
5218
5226
  }
5219
5227
  };
5220
5228
  v(ve, "type", ve.register("ESUeViewer", ye.type, ve));
5221
- let lr = ve;
5222
- const fe = class fe extends I {
5229
+ let dr = ve;
5230
+ const ge = class ge extends E {
5223
5231
  constructor(e, t) {
5224
5232
  if (super(e, t), !t.viewer) {
5225
5233
  console.warn("viewer is undefined!");
@@ -5227,9 +5235,9 @@ const fe = class fe extends I {
5227
5235
  }
5228
5236
  }
5229
5237
  };
5230
- v(fe, "type", fe.register("ESUeViewer", Xn.type, fe));
5231
- let cr = fe;
5232
- const ge = class ge extends D {
5238
+ v(ge, "type", ge.register("ESUeViewer", Yn.type, ge));
5239
+ let cr = ge;
5240
+ const fe = class fe extends B {
5233
5241
  constructor(e, t) {
5234
5242
  super(e, t);
5235
5243
  const i = t.viewer;
@@ -5254,12 +5262,12 @@ const ge = class ge extends D {
5254
5262
  }));
5255
5263
  }
5256
5264
  };
5257
- v(ge, "type", ge.register("ESUeViewer", Yn.type, ge));
5258
- let ur = ge, We;
5265
+ v(fe, "type", fe.register("ESUeViewer", Zn.type, fe));
5266
+ let ur = fe, We;
5259
5267
  try {
5260
- const l = "earthsdk3-ue", e = "3.6.0-beta.111", t = "2025-11-04T00:57:31.000Z", i = "北京西部世界科技有限公司", r = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", n = "e01e606acce477f3ffb79a237b21982a606516f4", o = ((Date.now() - 1762217851e3) / 36e5).toFixed(1), h = `%c🌏 ${l}%c ${e}.${n.slice(0, 8)}.${t} (距今${o}个小时)
5268
+ const d = "earthsdk3-ue", e = "3.6.0-beta.3", t = "2025-11-20T06:27:34.000Z", i = "北京西部世界科技有限公司", r = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", n = "00281e4709820d0afa9e74bfc1a9ec2635763d41", o = ((Date.now() - 1763620054e3) / 36e5).toFixed(1), h = `%c🌏 ${d}%c ${e}.${n.slice(0, 8)}.${t} (距今${o}个小时)
5261
5269
  %c${r ? r + `
5262
- ` : ""}当前网站正在使用${l},此软件版权归${i}所有
5270
+ ` : ""}当前网站正在使用${d},此软件版权归${i}所有
5263
5271
  `;
5264
5272
  We = Object.freeze({
5265
5273
  // @ts-ignore
@@ -5271,7 +5279,7 @@ try {
5271
5279
  },
5272
5280
  // @ts-ignore
5273
5281
  get gituri() {
5274
- return GITURI_ && GITURI_.replace("${commitId}", "e01e606acce477f3ffb79a237b21982a606516f4");
5282
+ return GITURI_ && GITURI_.replace("${commitId}", "00281e4709820d0afa9e74bfc1a9ec2635763d41");
5275
5283
  },
5276
5284
  // @ts-ignore
5277
5285
  get info() {
@@ -5279,7 +5287,7 @@ try {
5279
5287
  },
5280
5288
  // @ts-ignore
5281
5289
  get date() {
5282
- return "2025-11-04T00:57:31.000Z";
5290
+ return "2025-11-20T06:27:34.000Z";
5283
5291
  },
5284
5292
  // @ts-ignore
5285
5293
  get author() {
@@ -5287,7 +5295,7 @@ try {
5287
5295
  },
5288
5296
  // @ts-ignore
5289
5297
  get version() {
5290
- return "3.6.0-beta.111";
5298
+ return "3.6.0-beta.3";
5291
5299
  },
5292
5300
  // @ts-ignore
5293
5301
  get name() {
@@ -5295,10 +5303,10 @@ try {
5295
5303
  },
5296
5304
  // @ts-ignore
5297
5305
  get commitId() {
5298
- return "e01e606acce477f3ffb79a237b21982a606516f4";
5306
+ return "00281e4709820d0afa9e74bfc1a9ec2635763d41";
5299
5307
  },
5300
5308
  print(a = !1) {
5301
- !a && window._xe2_no_copy_print || console.info(
5309
+ !a && globalThis._xe2_no_copy_print || console.info(
5302
5310
  this.info,
5303
5311
  `
5304
5312
  font-size: 18px;
@@ -5322,17 +5330,17 @@ try {
5322
5330
  `
5323
5331
  );
5324
5332
  }
5325
- }), window.g_XE3CopyRights = window.g_XE3CopyRights || {}, window.g_XE3CopyRights[l] = We, window.g_earthsdk_copyright_print = window.g_earthsdk_copyright_print ?? !0, window.g_earthsdk_copyright_print && We.print();
5333
+ }), globalThis.g_XE3CopyRights = globalThis.g_XE3CopyRights || {}, globalThis.g_XE3CopyRights[d] = We, globalThis.g_earthsdk_copyright_print = globalThis.g_earthsdk_copyright_print ?? !0, globalThis.g_earthsdk_copyright_print && We.print();
5326
5334
  } catch {
5327
5335
  }
5328
5336
  export {
5329
5337
  J as ESUeViewer,
5330
- Co as GeoDivFromESImageLabel,
5331
- mo as GeoDivFromESTextLabel,
5332
- ns as HighlightFeatureAndFlyToCallFunc,
5333
- rs as HighlightFeatureCallFunc,
5334
- os as SetLayerColorCallFunc,
5335
- ss as SetLayerVisibleCallFunc,
5338
+ Fo as GeoDivFromESImageLabel,
5339
+ Co as GeoDivFromESTextLabel,
5340
+ ss as HighlightFeatureAndFlyToCallFunc,
5341
+ ns as HighlightFeatureCallFunc,
5342
+ as as SetLayerColorCallFunc,
5343
+ os as SetLayerVisibleCallFunc,
5336
5344
  Be as UeCloudViewerBase,
5337
5345
  Ue as UeES3DTileset,
5338
5346
  je as UeESAlarm,
@@ -5344,24 +5352,24 @@ export {
5344
5352
  si as UeESCameraVisibleRange,
5345
5353
  oi as UeESCar,
5346
5354
  ai as UeESClassification,
5347
- di as UeESClippingPlane,
5348
- li as UeESDataMesh,
5355
+ li as UeESClippingPlane,
5356
+ di as UeESDataMesh,
5349
5357
  ci as UeESDatasmithRuntimeModel,
5350
5358
  ui as UeESDirectionMeasurement,
5351
5359
  hi as UeESDistanceMeasurement,
5352
5360
  pi as UeESDynamicWater,
5353
5361
  vi as UeESEntityCluster,
5354
- fi as UeESExcavate,
5355
- gi as UeESFireParticleSystem,
5362
+ gi as UeESExcavate,
5363
+ fi as UeESFireParticleSystem,
5356
5364
  wi as UeESForestTileset,
5357
5365
  or as UeESGaussianSplatting,
5358
5366
  yi as UeESGeoDiv,
5359
- lr as UeESGeoExtrudedPolygon,
5367
+ dr as UeESGeoExtrudedPolygon,
5360
5368
  mi as UeESGeoJson,
5361
5369
  ze as UeESGeoLineString,
5362
5370
  $ as UeESGeoPolygon,
5363
5371
  Ci as UeESGeoRectangle,
5364
- D as UeESGeoVector,
5372
+ B as UeESGeoVector,
5365
5373
  Fi as UeESGeoWater,
5366
5374
  Ii as UeESGltfModel,
5367
5375
  Ei as UeESHeightMeasurement,
@@ -5373,15 +5381,15 @@ export {
5373
5381
  xi as UeESLevelRuntimeModel,
5374
5382
  Ri as UeESLocalCircle,
5375
5383
  Ne as UeESLocalPolygon,
5376
- Li as UeESLocalPolygonZ,
5377
- Pi as UeESLocalRectangle,
5384
+ Pi as UeESLocalPolygonZ,
5385
+ Li as UeESLocalRectangle,
5378
5386
  ki as UeESLocalSkyBox,
5379
- Sr as UeESLocalVector,
5387
+ Tr as UeESLocalVector,
5380
5388
  Ke as UeESLocalVector2D,
5381
5389
  Di as UeESLocationMeasurement,
5382
- dr as UeESMsTileset,
5390
+ lr as UeESMsTileset,
5383
5391
  rr as UeESNavigator,
5384
- I as UeESObjectWithLocation,
5392
+ E as UeESObjectWithLocation,
5385
5393
  nr as UeESPath,
5386
5394
  Bi as UeESPipeFence,
5387
5395
  _i as UeESPipeline,
@@ -5392,10 +5400,10 @@ export {
5392
5400
  Ui as UeESPoiTileset,
5393
5401
  Ni as UeESPolygonFence,
5394
5402
  zi as UeESPolygonFlattenedPlane,
5395
- Hi as UeESPolygonWithHole,
5403
+ bi as UeESPolygonWithHole,
5396
5404
  ar as UeESRtsFeatureEditing,
5397
- bi as UeESRtsTileset,
5398
- at as UeESSceneObject,
5405
+ Hi as UeESRtsTileset,
5406
+ lt as UeESSceneObject,
5399
5407
  Ji as UeESSeparateFoliage,
5400
5408
  ur as UeESSkylineAnalysis,
5401
5409
  cr as UeESStaticMesh,
@@ -5410,67 +5418,67 @@ export {
5410
5418
  Oi as UeESViewShed,
5411
5419
  sr as UeESViewerStatusBar,
5412
5420
  ji as UeESVisibilityAnalysis,
5413
- M as UeESVisualObject,
5421
+ D as UeESVisualObject,
5414
5422
  tr as UeESVolumeMeasurement,
5415
5423
  er as UeESWidget,
5416
- _s as bind3DTilesetByTagCallFunc,
5424
+ Ms as bind3DTilesetByTagCallFunc,
5417
5425
  Ls as bindActorByTagCallFunc,
5418
- Ws as bindImageryByTagCallFunc,
5426
+ As as bindImageryByTagCallFunc,
5419
5427
  dt as calcFlyToParamCallFunc,
5420
- Er as callFunctionCallFunc,
5421
- gs as captureCallFunc,
5422
- b as changeNavigationModeCallFunc,
5428
+ Sr as callFunctionCallFunc,
5429
+ ws as captureCallFunc,
5430
+ H as changeNavigationModeCallFunc,
5423
5431
  We as copyright,
5424
- Bs as createActorByClassCallFunc,
5425
- Fr as destroyCallFunc,
5432
+ _s as createActorByClassCallFunc,
5433
+ Ir as destroyCallFunc,
5426
5434
  Re as flyInCallFunc,
5427
- On as flyInDefaultCameraCallFunc,
5435
+ jn as flyInDefaultCameraCallFunc,
5428
5436
  we as flyToCallFunc,
5429
- is as generateMemReportCallFunc,
5430
- Cs as getAllSocketNamesByActorTagCallFunc,
5431
- Is as getBoundSphereCallFunc,
5432
- Es as getBoundSphereWithChildrenCallFunc,
5433
- zs as getCameraRelativeHeightCallFunc,
5434
- Ts as getFillMaterialParamInfoCallFunc,
5435
- xs as getGlobalPropertyCallFunc,
5436
- vs as getHeightByLonLatCallFunc,
5437
+ rs as generateMemReportCallFunc,
5438
+ Fs as getAllSocketNamesByActorTagCallFunc,
5439
+ Es as getBoundSphereCallFunc,
5440
+ Ss as getBoundSphereWithChildrenCallFunc,
5441
+ bs as getCameraRelativeHeightCallFunc,
5442
+ xs as getFillMaterialParamInfoCallFunc,
5443
+ Rs as getGlobalPropertyCallFunc,
5444
+ gs as getHeightByLonLatCallFunc,
5437
5445
  fs as getHeightByLonLatsCallFunc,
5438
- Ns as getIdByComponentNameAndHitItemCallFunc,
5439
- ys as getLonLatAltToScreenPositionCallFunc,
5440
- Rs as getObjectByInfoCallFunc,
5441
- Gs as getStatusCallFunc,
5442
- Ss as getStrokeMaterialParamInfoCallFunc,
5443
- Zs as getTilesetMaterialIDListCallFunc,
5444
- Fs as getVersionCallFunc,
5445
- bs as highlightActorByTagCallFunc,
5446
- es as mountPakFiles,
5447
- Ys as moveObjectsCallFunc,
5448
- ws as partialCaptureCallFunc,
5449
- hs as pickCallFunc,
5450
- ps as pickPositionCallFunc,
5451
- us as quitCallFunc,
5452
- Vn as refreshTilesetCallFunc,
5453
- Ir as resetWithCurrentCameraCallFunc,
5454
- Ps as restoreOriginalSceneCallFunc,
5446
+ zs as getIdByComponentNameAndHitItemCallFunc,
5447
+ ms as getLonLatAltToScreenPositionCallFunc,
5448
+ Ps as getObjectByInfoCallFunc,
5449
+ Ks as getStatusCallFunc,
5450
+ Ts as getStrokeMaterialParamInfoCallFunc,
5451
+ qs as getTilesetMaterialIDListCallFunc,
5452
+ Is as getVersionCallFunc,
5453
+ Js as highlightActorByTagCallFunc,
5454
+ is as mountPakFiles,
5455
+ Zs as moveObjectsCallFunc,
5456
+ ys as partialCaptureCallFunc,
5457
+ ps as pickCallFunc,
5458
+ vs as pickPositionCallFunc,
5459
+ hs as quitCallFunc,
5460
+ On as refreshTilesetCallFunc,
5461
+ Er as resetWithCurrentCameraCallFunc,
5462
+ ks as restoreOriginalSceneCallFunc,
5455
5463
  Hs as saveStringToFileCallFunc,
5456
- Js as sendCustomMessageCallFunc,
5457
- cs as setGlobalPropertyCallFunc,
5458
- as as setNodePositionCallFunc,
5464
+ Gs as sendCustomMessageCallFunc,
5465
+ us as setGlobalPropertyCallFunc,
5466
+ ls as setNodePositionCallFunc,
5459
5467
  ds as setNodeRotationCallFunc,
5460
- ls as setNodeScaleCallFunc,
5468
+ cs as setNodeScaleCallFunc,
5461
5469
  De as smoothMoveCallFunc,
5462
- Pe as smoothMoveOnGroundCallFunc,
5463
- Le as smoothMoveWithRotationCallFunc,
5470
+ Le as smoothMoveOnGroundCallFunc,
5471
+ Pe as smoothMoveWithRotationCallFunc,
5464
5472
  ke as smoothMoveWithRotationOnGroundCallFunc,
5465
- Ks as startEditingCallFunc,
5466
- jn as startVoiceCallFunc,
5467
- Xs as stopEditingCallFunc,
5468
- ts as stopVoiceCallFunc,
5469
- ms as uePositionToLonLatAltCallFunc,
5470
- $s as unBind3DTilesetByIdCallFunc,
5471
- Ms as unBind3DTilesetByTagCallFunc,
5472
- ks as unBindActorByIDCallFunc,
5473
- Ds as unBindActorByTagCallFunc,
5474
- Us as unBindImageryByIdCallFunc,
5475
- As as unBindImageryByTagCallFunc
5473
+ Xs as startEditingCallFunc,
5474
+ ts as startVoiceCallFunc,
5475
+ Ys as stopEditingCallFunc,
5476
+ es as stopVoiceCallFunc,
5477
+ Cs as uePositionToLonLatAltCallFunc,
5478
+ Ws as unBind3DTilesetByIdCallFunc,
5479
+ $s as unBind3DTilesetByTagCallFunc,
5480
+ Ds as unBindActorByIDCallFunc,
5481
+ Bs as unBindActorByTagCallFunc,
5482
+ Ns as unBindImageryByIdCallFunc,
5483
+ Us as unBindImageryByTagCallFunc
5476
5484
  };