@reearth/core 0.0.7-alpha.70 → 0.0.7-alpha.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/core.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as gy from "react";
2
- import ea, { forwardRef as no, useRef as de, useCallback as se, useImperativeHandle as Ka, useState as ot, useEffect as Ie, useMemo as he, useReducer as lW, useDebugValue as uW, useContext as wi, createContext as Qo, useLayoutEffect as Ur, memo as Fi, Component as $G, createElement as cp, Suspense as hW, useId as dW, Fragment as eO, useInsertionEffect as tO } from "react";
2
+ import ea, { forwardRef as no, useRef as de, useCallback as se, useImperativeHandle as Ka, useState as ot, useEffect as Re, useMemo as he, useReducer as lW, useDebugValue as uW, useContext as wi, createContext as Qo, useLayoutEffect as Ur, memo as Fi, Component as $G, createElement as cp, Suspense as hW, useId as dW, Fragment as eO, useInsertionEffect as tO } from "react";
3
3
  import * as De from "cesium";
4
4
  import { Color as rn, Math as yt, Event as f2, ImageryLayer as Fb, PolylineGraphics as fW, BoxGraphics as pW, PlaneGraphics as mW, Viewer as gW, ScreenSpaceEventHandler as td, Fog as eC, Sun as tC, Moon as nC, ScreenSpaceEventType as zt, SceneMode as Go, Primitive as mm, GeoJsonDataSource as yW, CzmlDataSource as bW, KmlDataSource as _W, BillboardGraphics as nO, ModelGraphics as vW, EllipseGraphics as wW, EllipsoidGraphics as xW, PolygonGraphics as SW, PointGraphics as iO, LabelGraphics as TW, CustomDataSource as EW, Cesium3DTileset as Mh, BillboardCollection as CW, Cesium3DTilesetGraphics as RW, Cesium3DTilesTerrainProvider as iC, CesiumWidget as IW, ClassificationPrimitive as MW, CloudCollection as LW, CorridorGraphics as PW, CylinderGraphics as GW, Entity as Wr, Google2DImageryProvider as rC, GroundPolylinePrimitive as OW, GroundPrimitive as nd, LabelCollection as rO, Model as vs, ParticleSystem as VW, PathGraphics as FW, PointPrimitiveCollection as AW, PolylineCollection as zW, PolylineVolumeGraphics as NW, PostProcessStage as lp, PostProcessStageComposite as Ff, RectangleGraphics as XW, TimeDynamicPointCloud as ZW, WallGraphics as kW, PostProcessStageLibrary as qc, ClassificationType as fh, HeightReference as Sg, Rectangle as kc, EntityCluster as WW, HorizontalOrigin as Pa, VerticalOrigin as Ic, Cartesian3 as pe, ClockRange as w1, JulianDate as wn, ClockStep as p2, KeyboardEventModifier as Ga, CameraEventType as vr, Cartographic as vn, EllipsoidTerrainProvider as yy, sampleTerrainMostDetailed as UW, IntersectionTests as by, Ray as zc, PerspectiveFrustum as ms, OrthographicOffCenterFrustum as DW, Matrix4 as Zn, BoundingSphere as jx, HeadingPitchRange as BW, Cartesian2 as It, Plane as Po, Quaternion as Oa, Matrix3 as Mc, ColorBlendMode as x1, ShadowMode as jm, Cesium3DTileColorBlendMode as S1, CesiumTerrainProvider as T1, IonResource as _y, UrlTemplateImageryProvider as Af, OpenStreetMapImageryProvider as oC, IonImageryProvider as xd, IonWorldImageryStyle as E1, DiscardEmptyTileImagePolicy as YW, TextureMinificationFilter as HW, TextureMagnificationFilter as jW, SceneTransforms as KW, DistanceDisplayCondition as oO, WebMercatorTilingScheme as sO, Cesium3DTileFeature as ta, Cesium3DTilePointFeature as gm, PropertyBag as JW, TimeIntervalCollection as QW, TimeInterval as qW, Iso8601 as $W, CallbackProperty as Bi, ColorMaterialProperty as eU, ArcType as up, ImageryLayerFeatureInfo as aO, Axis as ph, HeadingPitchRoll as Xl, Transforms as Lh, TranslationRotationScale as cO, PolylineDashMaterialProperty as lO, PerInstanceColorAppearance as tU, Material as Ab, VertexFormat as nU, GeometryAttribute as iU, ComponentDatatype as rU, FrustumGeometry as sC, GeometryInstance as uO, PolygonGeometry as oU, EllipsoidSurfaceAppearance as aC, Intersect as sU, CustomShader as hO, CustomShaderTranslucencyMode as dO, LightingModel as fO, CustomShaderMode as pO, ImageBasedLighting as mO, EasingFunction as C1, PolygonHierarchy as m2, Credit as aU, WindingOrder as g2, TileMapServiceImageryProvider as cU, WebMapServiceImageryProvider as lU, ClippingPlane as zf, ClippingPlaneCollection as cC, Cesium3DTileStyle as gO, createGooglePhotorealistic3DTileset as uU, Camera as hU, EllipsoidGeodesic as lC, PerspectiveOffCenterFrustum as dU, BoundingRectangle as vy, Ellipsoid as Tg, SunLight as fU, DirectionalLight as pU, PostProcessStageSampleMode as uC } from "cesium";
5
5
  import "react-dom";
@@ -751,7 +751,7 @@ function zU(e, t, n, i) {
751
751
  }
752
752
  const NU = (e) => {
753
753
  const t = de(void 0), [n, i] = ot();
754
- return Ie(() => {
754
+ return Re(() => {
755
755
  if (!e) {
756
756
  i(void 0), t.current && (t.current.src = "");
757
757
  return;
@@ -833,13 +833,13 @@ const UU = (e = []) => {
833
833
  },
834
834
  [s, e.length]
835
835
  );
836
- return Ie(() => {
836
+ return Re(() => {
837
837
  if (o.current !== void 0 && (clearTimeout(o.current), o.current = void 0), t <= 0 || t >= e.length + 1) return;
838
838
  const c = e?.[t - 1], l = Array.isArray(c) ? c[r.current ? 1 : 0] : c;
839
839
  o.current = window.setTimeout(() => {
840
840
  o.current = void 0, s();
841
841
  }, l ?? 0);
842
- }, [s, e, t]), Ie(
842
+ }, [s, e, t]), Re(
843
843
  () => () => {
844
844
  o.current && (clearTimeout(o.current), o.current = void 0);
845
845
  },
@@ -946,7 +946,7 @@ function YU({
946
946
  timelineManagerRef: t
947
947
  }),
948
948
  [t]
949
- ), Ie(() => {
949
+ ), Re(() => {
950
950
  r && o.engine && o.layers && o.sketch && o.spatialId && r?.();
951
951
  }, [r, o]);
952
952
  const [f, p] = ot({}), m = se(
@@ -1471,7 +1471,7 @@ function Jx(e, t) {
1471
1471
  () => [r.get(e), r, e]
1472
1472
  );
1473
1473
  let l = o;
1474
- if ((s !== r || a !== e) && (c(), l = r.get(e)), Ie(() => {
1474
+ if ((s !== r || a !== e) && (c(), l = r.get(e)), Re(() => {
1475
1475
  const u = r.sub(e, () => {
1476
1476
  if (i)
1477
1477
  try {
@@ -16584,7 +16584,7 @@ function fte({
16584
16584
  return Ur(() => {
16585
16585
  const g = e?.type === "simple" ? e.data : void 0, v = co(g, "csv", "jsonProperties", "value");
16586
16586
  Sr(v, y.current) || !g?.url && !g?.value || (p(), y.current = v);
16587
- }, [e, p]), Ie(
16587
+ }, [e, p]), Re(
16588
16588
  () => () => {
16589
16589
  _O(() => {
16590
16590
  s?.originalFeatures.forEach((g) => {
@@ -16615,7 +16615,7 @@ function pte({
16615
16615
  selectedFeatureId: i
16616
16616
  }) {
16617
16617
  const r = e?.type === "simple" ? e.events?.select : void 0;
16618
- Ie(() => {
16618
+ Re(() => {
16619
16619
  if (!(!t || !r) && r.openUrl) {
16620
16620
  const o = r.openUrl.urlKey ? (i ? n?.features.find((s) => s.id === i)?.properties : n?.properties)?.[r.openUrl.urlKey] : r.openUrl.url;
16621
16621
  typeof o == "string" && o && window.open(o, "_blank", "noreferrer");
@@ -16817,7 +16817,7 @@ function Tte({
16817
16817
  [h]
16818
16818
  )
16819
16819
  ), V = de(G);
16820
- Ie(() => {
16820
+ Re(() => {
16821
16821
  V.current = G;
16822
16822
  }, [G]);
16823
16823
  const P = he(() => gC(
@@ -17069,7 +17069,7 @@ function Tte({
17069
17069
  j,
17070
17070
  le
17071
17071
  ]
17072
- ), Ie(() => {
17072
+ ), Re(() => {
17073
17073
  a?.();
17074
17074
  }, [a]);
17075
17075
  const Q = de([]);
@@ -17084,7 +17084,7 @@ function Tte({
17084
17084
  });
17085
17085
  const be = N.current.filter((q) => !$?.includes(q.id));
17086
17086
  N.current = be, u(be), Q.current = g;
17087
- }, [h, c, d, u, m, g]), Ie(() => {
17087
+ }, [h, c, d, u, m, g]), Re(() => {
17088
17088
  !r || r.current === wO || (r.current = uf);
17089
17089
  }, [M, l, f, r]), { atomMap: h, flattenedLayers: M, isHidden: y };
17090
17090
  }
@@ -19663,7 +19663,7 @@ function Bne(e, ...[t]) {
19663
19663
  }, [n]), o = Wne.useSyncExternalStore(r, i, i), s = "status" in o ? o : void 0;
19664
19664
  if (s?.status === "error")
19665
19665
  throw s.error;
19666
- return Ie(() => (n.start(), () => {
19666
+ return Re(() => (n.start(), () => {
19667
19667
  Une(n);
19668
19668
  }), [n]), [o, n.send, n];
19669
19669
  }
@@ -19674,7 +19674,7 @@ function iw(e, t, n) {
19674
19674
  const i = de(t);
19675
19675
  i.current = t;
19676
19676
  const r = de(n);
19677
- Ie(() => {
19677
+ Re(() => {
19678
19678
  if (typeof window > "u")
19679
19679
  return;
19680
19680
  const o = (a) => {
@@ -20722,7 +20722,7 @@ const Qne = ({
20722
20722
  ), F = se(() => {
20723
20723
  N.current?.();
20724
20724
  }, [N]), W = de(!1);
20725
- return Ie(() => {
20725
+ return Re(() => {
20726
20726
  W.current || !t.current || (W.current = !0, t.current?.onMouseDown(k), t.current?.onMouseMove(D), t.current?.onMouseUp(B), t.current?.onDoubleClick(K), t.current?.onRightClick(F));
20727
20727
  }, [t, k, D, B, K, F]), {};
20728
20728
  };
@@ -21044,7 +21044,7 @@ function tie({
21044
21044
  }
21045
21045
  }), iw("keyup", (je) => {
21046
21046
  S !== void 0 && je.code === "Space" && (o?.("sketch"), P(!1), Gr.current && (Gr.current = !1));
21047
- }), Ie(() => {
21047
+ }), Re(() => {
21048
21048
  S === void 0 && !p && (v({ type: "ABORT" }), ke.current?.(void 0));
21049
21049
  }, [S, p, v]);
21050
21050
  const Me = de(C);
@@ -21054,19 +21054,19 @@ function tie({
21054
21054
  const Ue = de(s);
21055
21055
  Ue.current = s;
21056
21056
  const Ye = de(i);
21057
- Ye.current = i, Ie(() => {
21057
+ Ye.current = i, Re(() => {
21058
21058
  (p || S) && Ye.current !== "sketch" && we.current?.("sketch");
21059
21059
  }, [S, p]);
21060
21060
  const Qe = de(ve);
21061
21061
  Qe.current = ve;
21062
21062
  const Wt = de(be);
21063
- Wt.current = be, Ie(() => {
21063
+ Wt.current = be, Re(() => {
21064
21064
  Ue.current?.(S, Me.current), Qe.current && Wt.current(), S === void 0 && we.current?.(
21065
21065
  Ye.current === "sketch" ? "default" : Ye.current
21066
21066
  );
21067
21067
  }, [S]);
21068
21068
  const Be = de(S);
21069
- Be.current = S, Ie(() => {
21069
+ Be.current = S, Re(() => {
21070
21070
  Gr.current || i !== "sketch" && Qe.current && Wt.current();
21071
21071
  }, [i, E]);
21072
21072
  const Ct = de([]), Yt = se((je) => {
@@ -21080,7 +21080,7 @@ function tie({
21080
21080
  () => !!g.context.catchedExtrudedPoint,
21081
21081
  [g.context.catchedExtrudedPoint]
21082
21082
  ), ti = de(!1);
21083
- Ie(() => {
21083
+ Re(() => {
21084
21084
  if (Ct.current.forEach((je) => {
21085
21085
  je(p);
21086
21086
  }), p) yn.current = p;
@@ -21143,7 +21143,7 @@ function tie({
21143
21143
  be,
21144
21144
  q
21145
21145
  ]
21146
- ), Ie(() => {
21146
+ ), Re(() => {
21147
21147
  y?.();
21148
21148
  }, [y]);
21149
21149
  const Rt = se(() => {
@@ -21182,11 +21182,11 @@ function tie({
21182
21182
  },
21183
21183
  [g.context.controlPoints, v, w]
21184
21184
  ), Gr = de(!1), Ki = de(g);
21185
- return Ki.current = g, Ie(() => window.addEventListener("keydown", (je) => {
21185
+ return Ki.current = g, Re(() => window.addEventListener("keydown", (je) => {
21186
21186
  je.code === "Space" && Ki.current.matches("editing") ? (Gr.current = !0, o?.("move")) : je.code === "Delete" && Ki.current.matches("editing") && gi.current();
21187
- }), [o]), Ie(() => window.addEventListener("keyup", (je) => {
21187
+ }), [o]), Re(() => window.addEventListener("keyup", (je) => {
21188
21188
  je.code === "Space" && Gr.current && (o?.("sketch"), Gr.current = !1);
21189
- }), [o]), Ie(() => {
21189
+ }), [o]), Re(() => {
21190
21190
  ve || we.current?.("default");
21191
21191
  }, [ve]), {
21192
21192
  state: g,
@@ -21767,7 +21767,7 @@ const die = ({
21767
21767
  }, []);
21768
21768
  return Ur(() => ((async () => (A.current && (await A.current, A.current = void 0), P.current = I()))(), () => {
21769
21769
  x(), A.current = w();
21770
- }), [I, w, x]), Ie(() => {
21770
+ }), [I, w, x]), Re(() => {
21771
21771
  (async () => {
21772
21772
  P.current && await P.current;
21773
21773
  const R = m3(h);
@@ -23689,7 +23689,7 @@ const Coe = [
23689
23689
  setCesiumPropsAfterCreate: !0
23690
23690
  }), sc = ({ action: e, modifier: t, type: n }) => {
23691
23691
  const i = si();
23692
- return Ie(() => {
23692
+ return Re(() => {
23693
23693
  if (!(!i.screenSpaceEventHandler || i.screenSpaceEventHandler.isDestroyed())) {
23694
23694
  if (e)
23695
23695
  return i.screenSpaceEventHandler.setInputAction(e, n, t), () => {
@@ -26344,13 +26344,13 @@ const dw = (e) => {
26344
26344
  const J = se(() => {
26345
26345
  j.current();
26346
26346
  }, []);
26347
- Ie(() => {
26347
+ Re(() => {
26348
26348
  D.current || !t.current || (D.current = !0, t.current.onMouseUp(K), t.current.onMouseMove(W), t.current.onRightClick(J));
26349
26349
  }, [t, K, W, J]);
26350
26350
  const ie = de(a);
26351
26351
  ie.current = a;
26352
26352
  const Ee = de(x);
26353
- Ee.current = x, Ie(() => {
26353
+ Ee.current = x, Re(() => {
26354
26354
  Oe.current || r !== "spatialId" && ie.current !== "idle" && Ee.current();
26355
26355
  }, [r]);
26356
26356
  const ve = de([]), Ne = se((me) => {
@@ -26366,16 +26366,16 @@ const dw = (e) => {
26366
26366
  [X, Ne, x]
26367
26367
  );
26368
26368
  const Oe = de(!1);
26369
- return Ie(() => {
26369
+ return Re(() => {
26370
26370
  const me = (ke) => {
26371
26371
  ke.code === "Space" && ie.current !== "idle" && (Oe.current = !0, o?.("move"));
26372
26372
  };
26373
26373
  return window.addEventListener("keydown", me), () => {
26374
26374
  window.removeEventListener("keydown", me);
26375
26375
  };
26376
- }, [o]), Ie(() => window.addEventListener("keyup", (me) => {
26376
+ }, [o]), Re(() => window.addEventListener("keyup", (me) => {
26377
26377
  me.code === "Space" && Oe.current && (Oe.current = !1, o?.("spatialId"));
26378
- }), [o]), Ie(() => {
26378
+ }), [o]), Re(() => {
26379
26379
  s?.();
26380
26380
  }, [s]), {
26381
26381
  spatialIdSpaces: l,
@@ -26734,7 +26734,7 @@ const r4 = Qo(void 0), PXe = () => {
26734
26734
  clusterLabels: !0,
26735
26735
  clusterPoints: !0
26736
26736
  }), []);
26737
- return Ie(() => {
26737
+ return Re(() => {
26738
26738
  const l = ea.Children.count(t) < i, u = c?.clusterEvent.addEventListener(
26739
26739
  (h, d) => {
26740
26740
  d.label.font = vO(r, { fontSize: 30 }), d.label.horizontalOrigin = r.textAlign === "right" ? Pa.LEFT : r.textAlign === "left" ? Pa.RIGHT : Pa.CENTER, d.label.verticalOrigin = Ic.CENTER, d.label.fillColor = rn.fromCssColorString(
@@ -27284,18 +27284,31 @@ function $ae({
27284
27284
  () => Cc(e?.globe?.baseColor),
27285
27285
  [e?.globe?.baseColor]
27286
27286
  ), o = de(null);
27287
- return Ie(() => {
27288
- let s = !1;
27289
- return i.then((a) => {
27290
- s || o.current !== a && (o.current = a, n?.());
27291
- }).catch((a) => {
27292
- s || console.warn("Terrain provider failed to load:", a);
27287
+ Re(() => {
27288
+ let a = !1;
27289
+ return i.then((c) => {
27290
+ if (a) return;
27291
+ const l = o.current?.cesiumElement;
27292
+ l && (l.terrainProvider = c);
27293
+ }).catch(() => {
27293
27294
  }), () => {
27294
- s = !0;
27295
+ a = !0;
27296
+ };
27297
+ }, [i]);
27298
+ const s = de(null);
27299
+ return Re(() => {
27300
+ let a = !1;
27301
+ return i.then((c) => {
27302
+ a || s.current !== c && (s.current = c, n?.());
27303
+ }).catch((c) => {
27304
+ a || console.warn("Terrain provider failed to load:", c);
27305
+ }), () => {
27306
+ a = !0;
27295
27307
  };
27296
27308
  }, [i, n]), /* @__PURE__ */ ae.jsx(
27297
27309
  _re,
27298
27310
  {
27311
+ ref: o,
27299
27312
  baseColor: r,
27300
27313
  enableLighting: !!e?.globe?.enableLighting,
27301
27314
  showGroundAtmosphere: e?.globe?.atmosphere?.enabled ?? !0,
@@ -29259,29 +29272,29 @@ function m4(e, t, n, i, r) {
29259
29272
  a * X
29260
29273
  );
29261
29274
  }
29262
- function Re(e, t, n) {
29275
+ function Ie(e, t, n) {
29263
29276
  this.longitude = e ?? 0, this.latitude = t ?? 0, this.height = n ?? 0;
29264
29277
  }
29265
- Re.fromRadians = function(e, t, n, i) {
29266
- return T.typeOf.number("longitude", e), T.typeOf.number("latitude", t), n = n ?? 0, _(i) ? (i.longitude = e, i.latitude = t, i.height = n, i) : new Re(e, t, n);
29278
+ Ie.fromRadians = function(e, t, n, i) {
29279
+ return T.typeOf.number("longitude", e), T.typeOf.number("latitude", t), n = n ?? 0, _(i) ? (i.longitude = e, i.latitude = t, i.height = n, i) : new Ie(e, t, n);
29267
29280
  };
29268
- Re.fromDegrees = function(e, t, n, i) {
29269
- return T.typeOf.number("longitude", e), T.typeOf.number("latitude", t), e = Z.toRadians(e), t = Z.toRadians(t), Re.fromRadians(e, t, n, i);
29281
+ Ie.fromDegrees = function(e, t, n, i) {
29282
+ return T.typeOf.number("longitude", e), T.typeOf.number("latitude", t), e = Z.toRadians(e), t = Z.toRadians(t), Ie.fromRadians(e, t, n, i);
29270
29283
  };
29271
29284
  const lce = new b(), uce = new b(), hce = new b();
29272
- Re._ellipsoidOneOverRadii = new b(
29285
+ Ie._ellipsoidOneOverRadii = new b(
29273
29286
  1 / 6378137,
29274
29287
  1 / 6378137,
29275
29288
  1 / 6356752314245179e-9
29276
29289
  );
29277
- Re._ellipsoidOneOverRadiiSquared = new b(
29290
+ Ie._ellipsoidOneOverRadiiSquared = new b(
29278
29291
  1 / (6378137 * 6378137),
29279
29292
  1 / (6378137 * 6378137),
29280
29293
  1 / (6356752314245179e-9 * 6356752314245179e-9)
29281
29294
  );
29282
- Re._ellipsoidCenterToleranceSquared = Z.EPSILON1;
29283
- Re.fromCartesian = function(e, t, n) {
29284
- const i = _(t) ? t.oneOverRadii : Re._ellipsoidOneOverRadii, r = _(t) ? t.oneOverRadiiSquared : Re._ellipsoidOneOverRadiiSquared, o = _(t) ? t._centerToleranceSquared : Re._ellipsoidCenterToleranceSquared, s = m4(
29295
+ Ie._ellipsoidCenterToleranceSquared = Z.EPSILON1;
29296
+ Ie.fromCartesian = function(e, t, n) {
29297
+ const i = _(t) ? t.oneOverRadii : Ie._ellipsoidOneOverRadii, r = _(t) ? t.oneOverRadiiSquared : Ie._ellipsoidOneOverRadiiSquared, o = _(t) ? t._centerToleranceSquared : Ie._ellipsoidCenterToleranceSquared, s = m4(
29285
29298
  e,
29286
29299
  i,
29287
29300
  r,
@@ -29297,9 +29310,9 @@ Re.fromCartesian = function(e, t, n) {
29297
29310
  );
29298
29311
  a = b.normalize(a, a);
29299
29312
  const c = b.subtract(e, s, hce), l = Math.atan2(a.y, a.x), u = Math.asin(a.z), h = Z.sign(b.dot(c, e)) * b.magnitude(c);
29300
- return _(n) ? (n.longitude = l, n.latitude = u, n.height = h, n) : new Re(l, u, h);
29313
+ return _(n) ? (n.longitude = l, n.latitude = u, n.height = h, n) : new Ie(l, u, h);
29301
29314
  };
29302
- Re.toCartesian = function(e, t, n) {
29315
+ Ie.toCartesian = function(e, t, n) {
29303
29316
  return T.defined("cartographic", e), b.fromRadians(
29304
29317
  e.longitude,
29305
29318
  e.latitude,
@@ -29308,31 +29321,31 @@ Re.toCartesian = function(e, t, n) {
29308
29321
  n
29309
29322
  );
29310
29323
  };
29311
- Re.clone = function(e, t) {
29324
+ Ie.clone = function(e, t) {
29312
29325
  if (_(e))
29313
- return _(t) ? (t.longitude = e.longitude, t.latitude = e.latitude, t.height = e.height, t) : new Re(
29326
+ return _(t) ? (t.longitude = e.longitude, t.latitude = e.latitude, t.height = e.height, t) : new Ie(
29314
29327
  e.longitude,
29315
29328
  e.latitude,
29316
29329
  e.height
29317
29330
  );
29318
29331
  };
29319
- Re.equals = function(e, t) {
29332
+ Ie.equals = function(e, t) {
29320
29333
  return e === t || _(e) && _(t) && e.longitude === t.longitude && e.latitude === t.latitude && e.height === t.height;
29321
29334
  };
29322
- Re.equalsEpsilon = function(e, t, n) {
29335
+ Ie.equalsEpsilon = function(e, t, n) {
29323
29336
  return n = n ?? 0, e === t || _(e) && _(t) && Math.abs(e.longitude - t.longitude) <= n && Math.abs(e.latitude - t.latitude) <= n && Math.abs(e.height - t.height) <= n;
29324
29337
  };
29325
- Re.ZERO = Object.freeze(new Re(0, 0, 0));
29326
- Re.prototype.clone = function(e) {
29327
- return Re.clone(this, e);
29338
+ Ie.ZERO = Object.freeze(new Ie(0, 0, 0));
29339
+ Ie.prototype.clone = function(e) {
29340
+ return Ie.clone(this, e);
29328
29341
  };
29329
- Re.prototype.equals = function(e) {
29330
- return Re.equals(this, e);
29342
+ Ie.prototype.equals = function(e) {
29343
+ return Ie.equals(this, e);
29331
29344
  };
29332
- Re.prototype.equalsEpsilon = function(e, t) {
29333
- return Re.equalsEpsilon(this, e, t);
29345
+ Ie.prototype.equalsEpsilon = function(e, t) {
29346
+ return Ie.equalsEpsilon(this, e, t);
29334
29347
  };
29335
- Re.prototype.toString = function() {
29348
+ Ie.prototype.toString = function() {
29336
29349
  return `(${this.longitude}, ${this.latitude}, ${this.height})`;
29337
29350
  };
29338
29351
  function g4(e, t, n, i) {
@@ -29473,7 +29486,7 @@ Object.defineProperties(at, {
29473
29486
  return at._default;
29474
29487
  },
29475
29488
  set: function(e) {
29476
- T.typeOf.object("value", e), at._default = e, b._ellipsoidRadiiSquared = e.radiiSquared, Re._ellipsoidOneOverRadii = e.oneOverRadii, Re._ellipsoidOneOverRadiiSquared = e.oneOverRadiiSquared, Re._ellipsoidCenterToleranceSquared = e._centerToleranceSquared;
29489
+ T.typeOf.object("value", e), at._default = e, b._ellipsoidRadiiSquared = e.radiiSquared, Ie._ellipsoidOneOverRadii = e.oneOverRadii, Ie._ellipsoidOneOverRadiiSquared = e.oneOverRadiiSquared, Ie._ellipsoidCenterToleranceSquared = e._centerToleranceSquared;
29477
29490
  }
29478
29491
  }
29479
29492
  });
@@ -29526,7 +29539,7 @@ at.prototype.cartesianToCartographic = function(e, t) {
29526
29539
  if (!_(n))
29527
29540
  return;
29528
29541
  const i = this.geodeticSurfaceNormal(n, pce), r = b.subtract(e, n, gce), o = Math.atan2(i.y, i.x), s = Math.asin(i.z), a = Z.sign(b.dot(r, e)) * b.magnitude(r);
29529
- return _(t) ? (t.longitude = o, t.latitude = s, t.height = a, t) : new Re(o, s, a);
29542
+ return _(t) ? (t.longitude = o, t.latitude = s, t.height = a, t) : new Ie(o, s, a);
29530
29543
  };
29531
29544
  at.prototype.cartesianArrayToCartographicArray = function(e, t) {
29532
29545
  T.defined("cartesians", e);
@@ -29664,7 +29677,7 @@ Cs.prototype.unproject = function(e, t) {
29664
29677
  if (!_(e))
29665
29678
  throw new O("cartesian is required");
29666
29679
  const n = this._oneOverSemimajorAxis, i = e.x * n, r = e.y * n, o = e.z;
29667
- return _(t) ? (t.longitude = i, t.latitude = r, t.height = o, t) : new Re(i, r, o);
29680
+ return _(t) ? (t.longitude = i, t.latitude = r, t.height = o, t) : new Ie(i, r, o);
29668
29681
  };
29669
29682
  const vce = {
29670
29683
  /**
@@ -35464,7 +35477,7 @@ St.SWIZZLE_3D_TO_2D_MATRIX = Object.freeze(
35464
35477
  1
35465
35478
  )
35466
35479
  );
35467
- const N4 = new Re(), Tw = new b(), xue = new b(), Sue = new te(), Ew = new re(), X4 = new re();
35480
+ const N4 = new Ie(), Tw = new b(), xue = new b(), Sue = new te(), Ew = new re(), X4 = new re();
35468
35481
  St.basisTo2D = function(e, t, n) {
35469
35482
  if (!_(e))
35470
35483
  throw new O("projection is required.");
@@ -35674,16 +35687,16 @@ et._validate = function(e) {
35674
35687
  T.typeOf.number.greaterThanOrEquals("east", r, -Math.PI), T.typeOf.number.lessThanOrEquals("east", r, Math.PI);
35675
35688
  };
35676
35689
  et.southwest = function(e, t) {
35677
- return T.typeOf.object("rectangle", e), _(t) ? (t.longitude = e.west, t.latitude = e.south, t.height = 0, t) : new Re(e.west, e.south);
35690
+ return T.typeOf.object("rectangle", e), _(t) ? (t.longitude = e.west, t.latitude = e.south, t.height = 0, t) : new Ie(e.west, e.south);
35678
35691
  };
35679
35692
  et.northwest = function(e, t) {
35680
- return T.typeOf.object("rectangle", e), _(t) ? (t.longitude = e.west, t.latitude = e.north, t.height = 0, t) : new Re(e.west, e.north);
35693
+ return T.typeOf.object("rectangle", e), _(t) ? (t.longitude = e.west, t.latitude = e.north, t.height = 0, t) : new Ie(e.west, e.north);
35681
35694
  };
35682
35695
  et.northeast = function(e, t) {
35683
- return T.typeOf.object("rectangle", e), _(t) ? (t.longitude = e.east, t.latitude = e.north, t.height = 0, t) : new Re(e.east, e.north);
35696
+ return T.typeOf.object("rectangle", e), _(t) ? (t.longitude = e.east, t.latitude = e.north, t.height = 0, t) : new Ie(e.east, e.north);
35684
35697
  };
35685
35698
  et.southeast = function(e, t) {
35686
- return T.typeOf.object("rectangle", e), _(t) ? (t.longitude = e.east, t.latitude = e.south, t.height = 0, t) : new Re(e.east, e.south);
35699
+ return T.typeOf.object("rectangle", e), _(t) ? (t.longitude = e.east, t.latitude = e.south, t.height = 0, t) : new Ie(e.east, e.south);
35687
35700
  };
35688
35701
  et.center = function(e, t) {
35689
35702
  T.typeOf.object("rectangle", e);
@@ -35691,7 +35704,7 @@ et.center = function(e, t) {
35691
35704
  const i = e.west;
35692
35705
  n < i && (n += Z.TWO_PI);
35693
35706
  const r = Z.negativePiToPi((i + n) * 0.5), o = (e.south + e.north) * 0.5;
35694
- return _(t) ? (t.longitude = r, t.latitude = o, t.height = 0, t) : new Re(r, o);
35707
+ return _(t) ? (t.longitude = r, t.latitude = o, t.height = 0, t) : new Ie(r, o);
35695
35708
  };
35696
35709
  et.intersection = function(e, t, n) {
35697
35710
  T.typeOf.object("rectangle", e), T.typeOf.object("otherRectangle", t);
@@ -35735,7 +35748,7 @@ et.contains = function(e, t) {
35735
35748
  let o = e.east;
35736
35749
  return o < r && (o += Z.TWO_PI, n < 0 && (n += Z.TWO_PI)), (n > r || Z.equalsEpsilon(n, r, Z.EPSILON14)) && (n < o || Z.equalsEpsilon(n, o, Z.EPSILON14)) && i >= e.south && i <= e.north;
35737
35750
  };
35738
- const Mue = new Re();
35751
+ const Mue = new Ie();
35739
35752
  et.subsample = function(e, t, n, i) {
35740
35753
  T.typeOf.object("rectangle", e), t = t ?? at.default, n = n ?? 0, _(i) || (i = []);
35741
35754
  let r = 0;
@@ -35785,7 +35798,7 @@ Sn.fromPoints = function(e, t) {
35785
35798
  }
35786
35799
  return t.x = i, t.y = r, t.width = o - i, t.height = s - r, t;
35787
35800
  };
35788
- const dI = new Cs(), Lue = new Re(), Pue = new Re();
35801
+ const dI = new Cs(), Lue = new Ie(), Pue = new Ie();
35789
35802
  Sn.fromRectangle = function(e, t, n) {
35790
35803
  if (_(n) || (n = new Sn()), !_(e))
35791
35804
  return n.x = 0, n.y = 0, n.width = 0, n.height = 0, n;
@@ -36439,7 +36452,7 @@ Ae.fromPoints = function(e, t) {
36439
36452
  }
36440
36453
  return S < G ? (b.clone(g, t.center), t.radius = S) : (b.clone(M, t.center), t.radius = G), t;
36441
36454
  };
36442
- const fI = new Cs(), Uue = new b(), Due = new b(), R_ = new Re(), I_ = new Re();
36455
+ const fI = new Cs(), Uue = new b(), Due = new b(), R_ = new Ie(), I_ = new Ie();
36443
36456
  Ae.fromRectangle2D = function(e, t, n) {
36444
36457
  return Ae.fromRectangleWithHeights2D(
36445
36458
  e,
@@ -36715,7 +36728,7 @@ Ae.computePlaneDistances = function(e, t, n, i) {
36715
36728
  ), o = b.dot(n, r);
36716
36729
  return i.start = o - e.radius, i.stop = o + e.radius, i;
36717
36730
  };
36718
- const pI = new b(), ihe = new b(), rhe = new b(), ohe = new b(), she = new b(), ahe = new Re(), Z4 = new Array(8);
36731
+ const pI = new b(), ihe = new b(), rhe = new b(), ohe = new b(), she = new b(), ahe = new Ie(), Z4 = new Array(8);
36719
36732
  for (let e = 0; e < 8; ++e)
36720
36733
  Z4[e] = new b();
36721
36734
  const mI = new Cs();
@@ -37864,10 +37877,10 @@ Un.computeNumberOfVertices = function(e) {
37864
37877
  }
37865
37878
  return t;
37866
37879
  };
37867
- const phe = new Re(), mhe = new b(), bI = new re(), ghe = [
37868
- new Re(),
37869
- new Re(),
37870
- new Re()
37880
+ const phe = new Ie(), mhe = new b(), bI = new re(), ghe = [
37881
+ new Ie(),
37882
+ new Ie(),
37883
+ new Ie()
37871
37884
  ], yhe = [
37872
37885
  new ye(),
37873
37886
  new ye(),
@@ -37878,7 +37891,7 @@ Un._textureCoordinateRotationPoints = function(e, t, n, i) {
37878
37891
  const o = et.center(
37879
37892
  i,
37880
37893
  phe
37881
- ), s = Re.toCartesian(
37894
+ ), s = Ie.toCartesian(
37882
37895
  o,
37883
37896
  n,
37884
37897
  mhe
@@ -37893,7 +37906,7 @@ Un._textureCoordinateRotationPoints = function(e, t, n, i) {
37893
37906
  u[0].longitude = i.west, u[0].latitude = i.south, u[1].longitude = i.west, u[1].latitude = i.north, u[2].longitude = i.east, u[2].latitude = i.south;
37894
37907
  let h = _he;
37895
37908
  for (r = 0; r < 3; r++)
37896
- Re.toCartesian(u[r], n, h), h = re.multiplyByPointAsVector(c, h, h), l[r].x = h.x, l[r].y = h.y;
37909
+ Ie.toCartesian(u[r], n, h), h = re.multiplyByPointAsVector(c, h, h), l[r].x = h.x, l[r].y = h.y;
37897
37910
  const d = Le.fromAxisAngle(
37898
37911
  b.UNIT_Z,
37899
37912
  -t,
@@ -39842,7 +39855,7 @@ Ht.quadraticVectorExpression = function(e, t, n, i, r) {
39842
39855
  }
39843
39856
  return f;
39844
39857
  };
39845
- const F_ = new b(), II = new b(), MI = new b(), N0 = new b(), jhe = new b(), Khe = new te(), Jhe = new te(), Qhe = new te(), qhe = new te(), $he = new te(), LI = new te(), PI = new te(), GI = new b(), ede = new b(), tde = new Re();
39858
+ const F_ = new b(), II = new b(), MI = new b(), N0 = new b(), jhe = new b(), Khe = new te(), Jhe = new te(), Qhe = new te(), qhe = new te(), $he = new te(), LI = new te(), PI = new te(), GI = new b(), ede = new b(), tde = new Ie();
39846
39859
  Ht.grazingAltitudeLocation = function(e, t) {
39847
39860
  if (!_(e))
39848
39861
  throw new O("ray is required.");
@@ -40479,7 +40492,7 @@ ln.fitToUnsignedShortIndices = function(e) {
40479
40492
  t.push(e);
40480
40493
  return t;
40481
40494
  };
40482
- const VI = new b(), dde = new Re();
40495
+ const VI = new b(), dde = new Ie();
40483
40496
  ln.projectTo2D = function(e, t, n, i, r) {
40484
40497
  if (!_(e))
40485
40498
  throw new O("geometry is required.");
@@ -46148,11 +46161,11 @@ tl.prototype.positionToTileXY = function(e, t, n) {
46148
46161
  let u = (i.north - e.latitude) / a | 0;
46149
46162
  return u >= o && (u = o - 1), _(n) ? (n.x = l, n.y = u, n) : new ye(l, u);
46150
46163
  };
46151
- const jI = new b(), KI = new b(), JI = new Re(), U_ = new b(), Gfe = new b(), QI = new Ae(), Ofe = new tl(), Dd = [
46152
- new Re(),
46153
- new Re(),
46154
- new Re(),
46155
- new Re()
46164
+ const jI = new b(), KI = new b(), JI = new Ie(), U_ = new b(), Gfe = new b(), QI = new Ae(), Ofe = new tl(), Dd = [
46165
+ new Ie(),
46166
+ new Ie(),
46167
+ new Ie(),
46168
+ new Ie()
46156
46169
  ], Bd = new ye(), qt = {};
46157
46170
  qt.initialize = function() {
46158
46171
  let e = qt._initPromise;
@@ -46225,22 +46238,22 @@ qt.getBoundingSphere = function(e, t) {
46225
46238
  ), Ae.union(r, QI, r);
46226
46239
  };
46227
46240
  function hF(e) {
46228
- Re.fromRadians(
46241
+ Ie.fromRadians(
46229
46242
  e.east,
46230
46243
  e.north,
46231
46244
  0,
46232
46245
  Dd[0]
46233
- ), Re.fromRadians(
46246
+ ), Ie.fromRadians(
46234
46247
  e.west,
46235
46248
  e.north,
46236
46249
  0,
46237
46250
  Dd[1]
46238
- ), Re.fromRadians(
46251
+ ), Ie.fromRadians(
46239
46252
  e.east,
46240
46253
  e.south,
46241
46254
  0,
46242
46255
  Dd[2]
46243
- ), Re.fromRadians(
46256
+ ), Ie.fromRadians(
46244
46257
  e.west,
46245
46258
  e.south,
46246
46259
  0,
@@ -46573,7 +46586,7 @@ function qI(e, t, n, i, r, o, s, a, c, l, u) {
46573
46586
  const p = u.center;
46574
46587
  return d = te.multiplyByVector(h, d, d), b.add(e, d, p), te.multiplyByScale(h, f, h), u;
46575
46588
  }
46576
- const $I = new Re(), Bfe = new b(), Yfe = new Re(), Hfe = new Re(), jfe = new Re(), Kfe = new Re(), Jfe = new Re(), Qfe = new b(), e5 = new b(), qfe = new b(), t5 = new b(), $fe = new b(), epe = new ye(), tpe = new ye(), npe = new ye(), ipe = new ye(), rpe = new ye(), ope = new b(), spe = new b(), ape = new b(), cpe = new b(), lpe = new ye(), upe = new b(), hpe = new b(), dpe = new b(), fpe = new jt(b.UNIT_X, 0);
46589
+ const $I = new Ie(), Bfe = new b(), Yfe = new Ie(), Hfe = new Ie(), jfe = new Ie(), Kfe = new Ie(), Jfe = new Ie(), Qfe = new b(), e5 = new b(), qfe = new b(), t5 = new b(), $fe = new b(), epe = new ye(), tpe = new ye(), npe = new ye(), ipe = new ye(), rpe = new ye(), ope = new b(), spe = new b(), ape = new b(), cpe = new b(), lpe = new ye(), upe = new b(), hpe = new b(), dpe = new b(), fpe = new jt(b.UNIT_X, 0);
46577
46590
  Dt.fromRectangle = function(e, t, n, i, r) {
46578
46591
  if (!_(e))
46579
46592
  throw new O("rectangle is required");
@@ -46600,27 +46613,27 @@ Dt.fromRectangle = function(e, t, n, i, r) {
46600
46613
  Bfe
46601
46614
  ), P = new ca(V, i);
46602
46615
  h = P.plane;
46603
- const A = G.longitude, X = e.south < 0 && e.north > 0 ? 0 : G.latitude, I = Re.fromRadians(
46616
+ const A = G.longitude, X = e.south < 0 && e.north > 0 ? 0 : G.latitude, I = Ie.fromRadians(
46604
46617
  A,
46605
46618
  e.north,
46606
46619
  n,
46607
46620
  Yfe
46608
- ), x = Re.fromRadians(
46621
+ ), x = Ie.fromRadians(
46609
46622
  e.west,
46610
46623
  e.north,
46611
46624
  n,
46612
46625
  Hfe
46613
- ), w = Re.fromRadians(
46626
+ ), w = Ie.fromRadians(
46614
46627
  e.west,
46615
46628
  X,
46616
46629
  n,
46617
46630
  jfe
46618
- ), R = Re.fromRadians(
46631
+ ), R = Ie.fromRadians(
46619
46632
  e.west,
46620
46633
  e.south,
46621
46634
  n,
46622
46635
  Kfe
46623
- ), N = Re.fromRadians(
46636
+ ), N = Ie.fromRadians(
46624
46637
  A,
46625
46638
  e.south,
46626
46639
  n,
@@ -46896,7 +46909,7 @@ Pp.getHeight = function(e, t, n) {
46896
46909
  throw new O("relativeHeight must be a finite number.");
46897
46910
  return (e - n) * t + n;
46898
46911
  };
46899
- const Spe = new Re();
46912
+ const Spe = new Ie();
46900
46913
  Pp.getPosition = function(e, t, n, i, r) {
46901
46914
  const o = t.cartesianToCartographic(
46902
46915
  e,
@@ -54977,7 +54990,7 @@ hr.prototype.unproject = function(e, t) {
54977
54990
  const n = this._oneOverSemimajorAxis, i = e.x * n, r = hr.mercatorAngleToGeodeticLatitude(
54978
54991
  e.y * n
54979
54992
  ), o = e.z;
54980
- return _(t) ? (t.longitude = i, t.latitude = r, t.height = o, t) : new Re(i, r, o);
54993
+ return _(t) ? (t.longitude = i, t.latitude = r, t.height = o, t) : new Ie(i, r, o);
54981
54994
  };
54982
54995
  function Bge(e, t, n) {
54983
54996
  let i = !n;
@@ -56274,7 +56287,7 @@ function mye(e, t) {
56274
56287
  !0
56275
56288
  ), e._recomputeBoundingSpheres = !1;
56276
56289
  }
56277
- const p5 = new zn(), dA = new Re(), fA = new b(), pA = new Ae();
56290
+ const p5 = new zn(), dA = new Ie(), fA = new b(), pA = new Ae();
56278
56291
  function gye(e, t) {
56279
56292
  if (!_(
56280
56293
  e._batchTableAttributeIndices.distanceDisplayCondition
@@ -56945,7 +56958,7 @@ Yi.prototype.createPickVertexShader = function(e, t, n, i) {
56945
56958
  this._projectionExtentDefines
56946
56959
  );
56947
56960
  };
56948
- const b5 = new b(), _5 = new Re(), v5 = {
56961
+ const b5 = new b(), _5 = new Ie(), v5 = {
56949
56962
  high: 0,
56950
56963
  low: 0
56951
56964
  };
@@ -57097,7 +57110,7 @@ function bA(e, t) {
57097
57110
  value: [i.x, i.y, s, a]
57098
57111
  });
57099
57112
  }
57100
- const _A = new Re(), vA = new b(), Pye = new b(), Gye = new b(), j0 = { high: 0, low: 0 };
57113
+ const _A = new Ie(), vA = new b(), Pye = new b(), Gye = new b(), j0 = { high: 0, low: 0 };
57101
57114
  function wA(e, t, n) {
57102
57115
  const i = _A;
57103
57116
  i.height = 0, i.longitude = e.west, i.latitude = e.south;
@@ -57119,15 +57132,15 @@ function wA(e, t, n) {
57119
57132
  value: c
57120
57133
  });
57121
57134
  }
57122
- const Oye = new re(), Vye = new re(), x5 = new b(), Fye = new Re(), Aye = [
57123
- new Re(),
57124
- new Re(),
57125
- new Re(),
57126
- new Re(),
57127
- new Re(),
57128
- new Re(),
57129
- new Re(),
57130
- new Re()
57135
+ const Oye = new re(), Vye = new re(), x5 = new b(), Fye = new Ie(), Aye = [
57136
+ new Ie(),
57137
+ new Ie(),
57138
+ new Ie(),
57139
+ new Ie(),
57140
+ new Ie(),
57141
+ new Ie(),
57142
+ new Ie(),
57143
+ new Ie()
57131
57144
  ];
57132
57145
  function zye(e, t, n, i, r, o) {
57133
57146
  const s = et.center(
@@ -57135,7 +57148,7 @@ function zye(e, t, n, i, r, o) {
57135
57148
  Fye
57136
57149
  );
57137
57150
  s.height = n;
57138
- const a = Re.toCartesian(
57151
+ const a = Ie.toCartesian(
57139
57152
  s,
57140
57153
  t,
57141
57154
  x5
@@ -57150,7 +57163,7 @@ function zye(e, t, n, i, r, o) {
57150
57163
  let g = Number.POSITIVE_INFINITY, v = Number.NEGATIVE_INFINITY, S = Number.POSITIVE_INFINITY, E = Number.NEGATIVE_INFINITY;
57151
57164
  for (let V = 0; V < 8; V++) {
57152
57165
  p[V].height = n;
57153
- const P = Re.toCartesian(
57166
+ const P = Ie.toCartesian(
57154
57167
  p[V],
57155
57168
  t,
57156
57169
  x5
@@ -57211,7 +57224,7 @@ const kye = new b();
57211
57224
  function S5(e, t, n, i) {
57212
57225
  const r = _A;
57213
57226
  r.latitude = e, r.longitude = t, r.height = 0;
57214
- const o = Re.toCartesian(
57227
+ const o = Ie.toCartesian(
57215
57228
  r,
57216
57229
  n,
57217
57230
  kye
@@ -58231,7 +58244,7 @@ function I5(e) {
58231
58244
  return e._minHeight;
58232
58245
  };
58233
58246
  }
58234
- const ebe = new b(), tbe = new b(), nbe = new b(), ibe = new Re(), rbe = new et();
58247
+ const ebe = new b(), tbe = new b(), nbe = new b(), ibe = new Ie(), rbe = new et();
58235
58248
  function Yg(e, t) {
58236
58249
  const n = e.mapProjection.ellipsoid;
58237
58250
  if (!_(t.attributes) || !_(t.attributes.position3DHigh))
@@ -58634,14 +58647,14 @@ function SA(e, t, n, i) {
58634
58647
  t.latitude,
58635
58648
  n.longitude,
58636
58649
  n.latitude
58637
- ), e._start = Re.clone(
58650
+ ), e._start = Ie.clone(
58638
58651
  t,
58639
58652
  e._start
58640
- ), e._end = Re.clone(n, e._end), e._start.height = 0, e._end.height = 0, dbe(e);
58653
+ ), e._end = Ie.clone(n, e._end), e._start.height = 0, e._end.height = 0, dbe(e);
58641
58654
  }
58642
58655
  function Vm(e, t, n) {
58643
58656
  const i = n ?? at.default;
58644
- this._ellipsoid = i, this._start = new Re(), this._end = new Re(), this._constants = {}, this._startHeading = void 0, this._endHeading = void 0, this._distance = void 0, this._uSquared = void 0, _(e) && _(t) && SA(this, e, t, i);
58657
+ this._ellipsoid = i, this._start = new Ie(), this._end = new Ie(), this._constants = {}, this._startHeading = void 0, this._endHeading = void 0, this._distance = void 0, this._uSquared = void 0, _(e) && _(t) && SA(this, e, t, i);
58645
58658
  }
58646
58659
  Object.defineProperties(Vm.prototype, {
58647
58660
  /**
@@ -58738,7 +58751,7 @@ Vm.prototype.interpolateUsingSurfaceDistance = function(e, t) {
58738
58751
  M,
58739
58752
  E
58740
58753
  );
58741
- return _(t) ? (t.longitude = this._start.longitude + A, t.latitude = S, t.height = 0, t) : new Re(this._start.longitude + A, S, 0);
58754
+ return _(t) ? (t.longitude = this._start.longitude + A, t.latitude = S, t.height = 0, t) : new Ie(this._start.longitude + A, S, 0);
58742
58755
  };
58743
58756
  function Fw(e, t, n) {
58744
58757
  if (e === 0)
@@ -58816,10 +58829,10 @@ function TA(e, t, n, i) {
58816
58829
  const s = i.maximumRadius, a = i.minimumRadius, c = s * s, l = a * a;
58817
58830
  e._ellipticitySquared = (c - l) / c, e._ellipticity = Math.sqrt(
58818
58831
  e._ellipticitySquared
58819
- ), e._start = Re.clone(
58832
+ ), e._start = Ie.clone(
58820
58833
  t,
58821
58834
  e._start
58822
- ), e._start.height = 0, e._end = Re.clone(n, e._end), e._end.height = 0, e._heading = ybe(
58835
+ ), e._start.height = 0, e._end = Ie.clone(n, e._end), e._end.height = 0, e._heading = ybe(
58823
58836
  e,
58824
58837
  t.longitude,
58825
58838
  t.latitude,
@@ -58837,7 +58850,7 @@ function TA(e, t, n, i) {
58837
58850
  }
58838
58851
  function EA(e, t, n, i, r, o) {
58839
58852
  if (n === 0)
58840
- return Re.clone(e, o);
58853
+ return Ie.clone(e, o);
58841
58854
  const s = r * r;
58842
58855
  let a, c, l;
58843
58856
  if (Math.abs(Z.PI_OVER_TWO - Math.abs(t)) > Z.EPSILON8) {
@@ -58859,11 +58872,11 @@ function EA(e, t, n, i, r, o) {
58859
58872
  }
58860
58873
  l = n / u, t > 0 ? a = Z.negativePiToPi(e.longitude + l) : a = Z.negativePiToPi(e.longitude - l);
58861
58874
  }
58862
- return _(o) ? (o.longitude = a, o.latitude = c, o.height = 0, o) : new Re(a, c, 0);
58875
+ return _(o) ? (o.longitude = a, o.latitude = c, o.height = 0, o) : new Ie(a, c, 0);
58863
58876
  }
58864
58877
  function ua(e, t, n) {
58865
58878
  const i = n ?? at.default;
58866
- this._ellipsoid = i, this._start = new Re(), this._end = new Re(), this._heading = void 0, this._distance = void 0, this._ellipticity = void 0, this._ellipticitySquared = void 0, _(e) && _(t) && TA(this, e, t, i);
58879
+ this._ellipsoid = i, this._start = new Ie(), this._end = new Ie(), this._heading = void 0, this._distance = void 0, this._ellipticity = void 0, this._ellipticitySquared = void 0, _(e) && _(t) && TA(this, e, t, i);
58867
58880
  }
58868
58881
  Object.defineProperties(ua.prototype, {
58869
58882
  /**
@@ -58968,7 +58981,7 @@ ua.prototype.findIntersectionWithLongitude = function(e, t) {
58968
58981
  Math.abs(e),
58969
58982
  Math.PI,
58970
58983
  Z.EPSILON14
58971
- ) && (e = Z.sign(o.longitude) * Math.PI), _(t) || (t = new Re()), Math.abs(Z.PI_OVER_TWO - r) <= Z.EPSILON8)
58984
+ ) && (e = Z.sign(o.longitude) * Math.PI), _(t) || (t = new Ie()), Math.abs(Z.PI_OVER_TWO - r) <= Z.EPSILON8)
58972
58985
  return t.longitude = e, t.latitude = o.latitude, t.height = 0, t;
58973
58986
  if (Z.equalsEpsilon(
58974
58987
  Math.abs(Z.PI_OVER_TWO - r),
@@ -59004,7 +59017,7 @@ ua.prototype.findIntersectionWithLatitude = function(e, t) {
59004
59017
  ))
59005
59018
  return;
59006
59019
  const o = Dh(n, r.latitude), s = Dh(n, e), a = Math.tan(i) * (s - o), c = Z.negativePiToPi(r.longitude + a);
59007
- return _(t) ? (t.longitude = c, t.latitude = e, t.height = 0, t) : new Re(c, e, 0);
59020
+ return _(t) ? (t.longitude = c, t.latitude = e, t.height = 0, t) : new Ie(c, e, 0);
59008
59021
  };
59009
59022
  const LT = [Cs, hr], vbe = LT.length, CA = Math.cos(Z.toRadians(30)), P5 = Math.cos(Z.toRadians(150)), RA = 0, IA = 1e3;
59010
59023
  function jc(e) {
@@ -59046,7 +59059,7 @@ function Aw(e, t, n, i, r) {
59046
59059
  const o = wr(i, e, 0, wbe), s = wr(i, e, n, G5), a = wr(i, t, 0, O5), c = Wa(s, o, G5), l = Wa(a, o, O5);
59047
59060
  return b.cross(l, c, r), b.normalize(r, r);
59048
59061
  }
59049
- const xbe = new Re(), Sbe = new b(), Tbe = new b(), Ebe = new b();
59062
+ const xbe = new Ie(), Sbe = new b(), Tbe = new b(), Ebe = new b();
59050
59063
  function tv(e, t, n, i, r, o, s, a, c, l, u) {
59051
59064
  if (r === 0)
59052
59065
  return;
@@ -59083,9 +59096,9 @@ function tv(e, t, n, i, r, o, s, a, c, l, u) {
59083
59096
  b.pack(f, a, v), b.pack(C, c, v), b.pack(M, l, v), u.push(E.latitude), u.push(E.longitude), v += 3, y += m;
59084
59097
  }
59085
59098
  }
59086
- const nv = new Re();
59099
+ const nv = new Ie();
59087
59100
  function wr(e, t, n, i) {
59088
- return Re.clone(t, nv), nv.height = n, Re.toCartesian(
59101
+ return Ie.clone(t, nv), nv.height = n, Ie.toCartesian(
59089
59102
  nv,
59090
59103
  e,
59091
59104
  i
@@ -59139,7 +59152,7 @@ function iv(e, t, n, i, r) {
59139
59152
  const c = b.cross(o, r, Ibe);
59140
59153
  return b.dot(a, c) < Mbe && (r = b.negate(r, r)), r;
59141
59154
  }
59142
- const eb = jt.fromPointNormal(b.ZERO, b.UNIT_Y), Pbe = new b(), Gbe = new b(), Obe = new b(), Vbe = new b(), Fbe = new b(), K0 = new b(), J0 = new Re(), F5 = new Re(), A5 = new Re();
59155
+ const eb = jt.fromPointNormal(b.ZERO, b.UNIT_Y), Pbe = new b(), Gbe = new b(), Obe = new b(), Vbe = new b(), Fbe = new b(), K0 = new b(), J0 = new Ie(), F5 = new Ie(), A5 = new Ie();
59143
59156
  jc.createGeometry = function(e) {
59144
59157
  const t = !e._scene3DOnly;
59145
59158
  let n = e.loop;
@@ -59186,7 +59199,7 @@ jc.createGeometry = function(e) {
59186
59199
  ), _(v) && !b.equalsEpsilon(v, f, Z.EPSILON7) && !b.equalsEpsilon(v, p, Z.EPSILON7) && C.push(b.clone(v)))));
59187
59200
  let M = C.length, G = new Array(M);
59188
59201
  for (u = 0; u < M; u++) {
59189
- const W = Re.fromCartesian(
59202
+ const W = Ie.fromCartesian(
59190
59203
  C[u],
59191
59204
  i
59192
59205
  );
@@ -59194,7 +59207,7 @@ jc.createGeometry = function(e) {
59194
59207
  }
59195
59208
  if (G = hbe(
59196
59209
  G,
59197
- Re.equalsEpsilon
59210
+ Ie.equalsEpsilon
59198
59211
  ), M = G.length, M < 2)
59199
59212
  return;
59200
59213
  const V = [], P = [], A = [], X = [];
@@ -59334,9 +59347,9 @@ function z5(e, t, n, i) {
59334
59347
  }
59335
59348
  return !1;
59336
59349
  }
59337
- const N5 = new Re(), Xbe = new b(), X5 = new b();
59350
+ const N5 = new Ie(), Xbe = new b(), X5 = new b();
59338
59351
  function wf(e, t, n, i, r) {
59339
- const o = Re.toCartesian(
59352
+ const o = Ie.toCartesian(
59340
59353
  t,
59341
59354
  e._ellipsoid,
59342
59355
  Xbe
@@ -59404,7 +59417,7 @@ function Wbe(e, t) {
59404
59417
  }
59405
59418
  return 0;
59406
59419
  }
59407
- const LA = new Re(), PA = new Re(), W5 = new b(), rv = new b(), U5 = new b(), D5 = new b(), Ube = new b(), B5 = new b(), Dbe = [
59420
+ const LA = new Ie(), PA = new Ie(), W5 = new b(), rv = new b(), U5 = new b(), D5 = new b(), Ube = new b(), B5 = new b(), Dbe = [
59408
59421
  LA,
59409
59422
  PA
59410
59423
  ], Bbe = new et(), Ybe = new b(), Hbe = new b(), jbe = new b(), Kbe = new b(), Jbe = new b(), Qbe = new b(), ov = new b(), sv = new b(), qbe = new b(), $be = new b(), e1e = new b(), Y5 = new b(), t1e = new b(), n1e = new b(), i1e = new zn(), r1e = new zn(), H5 = new b(), o1e = new b(), j5 = new b(), s1e = [new Ae(), new Ae()], GA = [
@@ -63690,7 +63703,7 @@ Jp.prototype.merge = function(e) {
63690
63703
  throw new O("source is required.");
63691
63704
  this.show = this.show ?? e.show, this.positions = this.positions ?? e.positions, this.minimumHeights = this.minimumHeights ?? e.minimumHeights, this.maximumHeights = this.maximumHeights ?? e.maximumHeights, this.granularity = this.granularity ?? e.granularity, this.fill = this.fill ?? e.fill, this.material = this.material ?? e.material, this.outline = this.outline ?? e.outline, this.outlineColor = this.outlineColor ?? e.outlineColor, this.outlineWidth = this.outlineWidth ?? e.outlineWidth, this.shadows = this.shadows ?? e.shadows, this.distanceDisplayCondition = this.distanceDisplayCondition ?? e.distanceDisplayCondition;
63692
63705
  };
63693
- const W1e = new Re(), zw = [];
63706
+ const W1e = new Ie(), zw = [];
63694
63707
  function U1e(e) {
63695
63708
  return new Ql(e);
63696
63709
  }
@@ -64452,7 +64465,7 @@ function Hd(e, t, n, i) {
64452
64465
  i
64453
64466
  );
64454
64467
  }
64455
- const q1e = new Re(
64468
+ const q1e = new Ie(
64456
64469
  Math.PI,
64457
64470
  Z.PI_OVER_TWO
64458
64471
  ), $1e = new b(), e_e = new b();
@@ -64539,7 +64552,7 @@ Di.worldToDrawingBufferCoordinates = function(e, t, n) {
64539
64552
  if (n = Di.worldToWindowCoordinates(e, t, n), !!_(n))
64540
64553
  return Di.transformWindowToDrawingBuffer(e, n, n);
64541
64554
  };
64542
- const va = new b(), t_e = new Re();
64555
+ const va = new b(), t_e = new Ie();
64543
64556
  Di.computeActualEllipsoidPosition = function(e, t, n) {
64544
64557
  const i = e.mode;
64545
64558
  if (i === Jn.SCENE3D)
@@ -68288,7 +68301,7 @@ function _2e({
68288
68301
  customProvider: n,
68289
68302
  presets: Uu
68290
68303
  }), h = de(/* @__PURE__ */ new Map());
68291
- return Ie(() => {
68304
+ return Re(() => {
68292
68305
  if (!r || !o) return;
68293
68306
  let d = !1;
68294
68307
  const f = new Set(l?.map((y) => y.id) || []);
@@ -68335,7 +68348,7 @@ function _2e({
68335
68348
  }), o.requestRender(), i?.(), () => {
68336
68349
  d = !0;
68337
68350
  };
68338
- }, [u, l, r, o, i]), Ie(() => {
68351
+ }, [u, l, r, o, i]), Re(() => {
68339
68352
  const d = h.current;
68340
68353
  return () => {
68341
68354
  !r || !o || o.isDestroyed() || (d.forEach(({ layer: f }) => {
@@ -68432,7 +68445,7 @@ const iN = (e, t, n) => {
68432
68445
  }, [e, !!n && n.unmountOnExit, s]), u = se(() => {
68433
68446
  r(e ? "entering" : "exiting"), o.current = setTimeout(l, t), s.current = Date.now() + t;
68434
68447
  }, [e, t, l, o, s]);
68435
- return Ie(() => {
68448
+ return Re(() => {
68436
68449
  if (e ? i === "entered" : i === "exited" || i === "unmounted") {
68437
68450
  s.current = void 0;
68438
68451
  return;
@@ -68452,12 +68465,12 @@ function x2e({
68452
68465
  mountOnEnter: !0,
68453
68466
  unmountOnExit: !0
68454
68467
  }), { type: l, image: u, imageScale: h } = t?.indicator ?? {}, [d, f, p] = JS({ image: u, imageSize: h });
68455
- return Ie(() => {
68468
+ return Re(() => {
68456
68469
  !l || l === "default" ? i?.selectionIndicator.viewModel.selectionIndicatorElement.removeAttribute("hidden") : i?.selectionIndicator.viewModel.selectionIndicatorElement.setAttribute(
68457
68470
  "hidden",
68458
68471
  "true"
68459
68472
  );
68460
- }, [l, i, i?.selectionIndicator]), Ie(() => {
68473
+ }, [l, i, i?.selectionIndicator]), Re(() => {
68461
68474
  if (!i) return;
68462
68475
  const m = () => {
68463
68476
  if (i.isDestroyed()) return;
@@ -69633,19 +69646,19 @@ function twe(e, t) {
69633
69646
  font: o?.fontSize != null && o.fontFamily != null ? `${o.fontSize * Bw}pt ${o.fontFamily}` : void 0
69634
69647
  };
69635
69648
  }
69636
- const nwe = new b(), iwe = new Re();
69649
+ const nwe = new b(), iwe = new Ie();
69637
69650
  function rwe(e, t, n, i, r, o, s, a = new b()) {
69638
69651
  let c = t.geom[0][0].x / r, l = t.geom[0][0].y / r;
69639
69652
  if (e.level === 17 && (c = c * 2 - e.x % 2, l = l * 2 - e.y % 2), c < 0 || c > 1 || l < 0 || l > 1)
69640
69653
  return;
69641
- const u = Re.fromRadians(
69654
+ const u = Ie.fromRadians(
69642
69655
  n.west + n.width * c,
69643
69656
  n.south + n.height * (1 - l),
69644
69657
  o,
69645
69658
  iwe
69646
69659
  );
69647
69660
  if (i?.some((h) => et.contains(h, u)) !== !0)
69648
- return Re.toCartesian(u, s, a);
69661
+ return Ie.toCartesian(u, s, a);
69649
69662
  }
69650
69663
  const UT = Fi(
69651
69664
  ({
@@ -69699,7 +69712,7 @@ const UT = Fi(
69699
69712
  E != null ? (S.position = E, S.show = !0) : S.show = !1;
69700
69713
  }), p?.requestRender());
69701
69714
  }, [e, t, i, u, h, p]), y = de(m);
69702
- return y.current = m, Ie(() => {
69715
+ return y.current = m, Re(() => {
69703
69716
  if (!p || !o)
69704
69717
  return;
69705
69718
  const g = [], v = d.map((E) => {
@@ -69731,7 +69744,7 @@ const UT = Fi(
69731
69744
  return () => {
69732
69745
  f.current = void 0, p.isDestroyed() || p?.postRender.addEventListener(S);
69733
69746
  };
69734
- }, [r, d, p, o, s, a]), Ie(() => {
69747
+ }, [r, d, p, o, s, a]), Re(() => {
69735
69748
  m();
69736
69749
  }, [m]), null;
69737
69750
  }
@@ -69754,7 +69767,7 @@ function owe(e, t) {
69754
69767
  }
69755
69768
  function lN(e) {
69756
69769
  const [t, n] = ot(), i = de(void 0);
69757
- return i.current == null && (i.current = e.create()), Ie(() => {
69770
+ return i.current == null && (i.current = e.create()), Re(() => {
69758
69771
  i.current == null && (i.current = e.create(), n(i.current));
69759
69772
  const r = i.current, o = owe(e, r);
69760
69773
  return () => {
@@ -69875,13 +69888,13 @@ const lwe = ({ imageryProvider: e, imageriesAtom: t, style: n, labelCollection:
69875
69888
  a(p);
69876
69889
  });
69877
69890
  const { labelCollection: c, scene: l } = si(), u = de(!1), h = he(() => c ?? (l ? new rO({ scene: l }) : void 0), [l, c]);
69878
- Ie(() => {
69891
+ Re(() => {
69879
69892
  !c && l && !u.current && (l.primitives.add(h), u.current = !0);
69880
69893
  }, [c, h, l]);
69881
69894
  const d = de(0);
69882
69895
  return $l((f) => {
69883
69896
  h && d.current !== h._labelsToUpdate.length && (f.requestRender(), d.current = h._labelsToUpdate.length);
69884
- }), Ie(() => () => {
69897
+ }), Re(() => () => {
69885
69898
  l?.isDestroyed() || l?.requestRender();
69886
69899
  }, [l]), /* @__PURE__ */ ae.jsxs(ae.Fragment, { children: [
69887
69900
  /* @__PURE__ */ ae.jsx(
@@ -69922,7 +69935,7 @@ const lwe = ({ imageryProvider: e, imageriesAtom: t, style: n, labelCollection:
69922
69935
  );
69923
69936
  uN.displayName = "LabelImageryLayers";
69924
69937
  function hwe({ onMount: e, onUnmount: t }) {
69925
- return Ie(() => (e?.(), () => t?.()), [e, t]), null;
69938
+ return Re(() => (e?.(), () => t?.()), [e, t]), null;
69926
69939
  }
69927
69940
  var dwe = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date, hN = /* @__PURE__ */ new Set(), Hw = typeof process == "object" && process ? process : {}, dN = (e, t, n, i) => {
69928
69941
  typeof Hw.emitWarning == "function" ? Hw.emitWarning(e, t, n, i) : console.error(`[${n}] ${t}: ${e}`);
@@ -70824,7 +70837,7 @@ const Mwe = {
70824
70837
  )
70825
70838
  )
70826
70839
  );
70827
- Ie(() => {
70840
+ Re(() => {
70828
70841
  d.current = i;
70829
70842
  }, [i]);
70830
70843
  const p = se(
@@ -70843,9 +70856,9 @@ const Mwe = {
70843
70856
  },
70844
70857
  [l, t, e]
70845
70858
  ), g = he(() => new td(u?.scene.canvas), [u]);
70846
- return Ie(() => {
70859
+ return Re(() => {
70847
70860
  g.setInputAction(p, zt.LEFT_DOWN), g.setInputAction(m, zt.MOUSE_MOVE), g.setInputAction(y, zt.LEFT_UP);
70848
- }, [g, p, m, y]), Ie(() => () => g.destroy(), [g]), {
70861
+ }, [g, p, m, y]), Re(() => () => g.destroy(), [g]), {
70849
70862
  cbp: h,
70850
70863
  outlineColor: f
70851
70864
  };
@@ -71169,7 +71182,7 @@ const kwe = ({
71169
71182
  E(j ?? 0), M.current = !1;
71170
71183
  }));
71171
71184
  }, [v, r, C]), { requestRender: V } = pi();
71172
- Ie(() => {
71185
+ Re(() => {
71173
71186
  VM(C, e, S, t, v), V?.(), G();
71174
71187
  }, [
71175
71188
  e,
@@ -71334,7 +71347,7 @@ const kwe = ({
71334
71347
  ), K = se(() => {
71335
71348
  r && (N.current = void 0, D.current = void 0, eh(r, !0));
71336
71349
  }, [r]);
71337
- Ie(() => {
71350
+ Re(() => {
71338
71351
  document.body.style.cursor = g || "default";
71339
71352
  }, [g]);
71340
71353
  const F = he(() => ol(n?.interval), [n?.interval]), W = he(
@@ -71393,7 +71406,7 @@ const kwe = ({
71393
71406
  !1
71394
71407
  )
71395
71408
  );
71396
- Ie(() => {
71409
+ Re(() => {
71397
71410
  y.current = i;
71398
71411
  }, [i]);
71399
71412
  const [v] = ot(
@@ -71437,16 +71450,16 @@ const kwe = ({
71437
71450
  },
71438
71451
  [h, t, d, f]
71439
71452
  );
71440
- Ie(() => {
71453
+ Re(() => {
71441
71454
  pe.clone(
71442
71455
  new pe(c?.width, c?.length, c?.height),
71443
71456
  v
71444
71457
  );
71445
71458
  }, [c, v]);
71446
71459
  const A = he(() => new td(p?.scene.canvas), [p]);
71447
- return Ie(() => {
71460
+ return Re(() => {
71448
71461
  A.setInputAction(G, zt.LEFT_DOWN), A.setInputAction(V, zt.MOUSE_MOVE), A.setInputAction(P, zt.LEFT_UP);
71449
- }, [A, G, V, P]), Ie(() => () => A.destroy(), [A]), {
71462
+ }, [A, G, V, P]), Re(() => () => A.destroy(), [A]), {
71450
71463
  entitiesPosition: m,
71451
71464
  pointOutlineColorCb: g,
71452
71465
  cesiumDimensionsCallbackProperty: S,
@@ -71596,7 +71609,7 @@ const kwe = ({
71596
71609
  !1
71597
71610
  )
71598
71611
  );
71599
- return Ie(() => {
71612
+ return Re(() => {
71600
71613
  l.current = t;
71601
71614
  }, [t]), {
71602
71615
  cbRef: o,
@@ -72014,7 +72027,7 @@ function ixe({ isVisible: e, property: t, geometry: n, layer: i, feature: r }) {
72014
72027
  }),
72015
72028
  [s]
72016
72029
  );
72017
- return Ie(() => {
72030
+ return Re(() => {
72018
72031
  !f.current || f.current.cesiumElement?.isDestroyed() || d?.();
72019
72032
  }), Ur(() => {
72020
72033
  !f.current || f.current.cesiumElement?.isDestroyed() || Ko(f.current.cesiumElement, {
@@ -74846,7 +74859,7 @@ const qN = Fi(
74846
74859
  }),
74847
74860
  id: e?.id
74848
74861
  })), [r, e?.id])[0];
74849
- return Ie(() => {
74862
+ return Re(() => {
74850
74863
  if (h?.isDestroyed())
74851
74864
  return;
74852
74865
  const y = (
@@ -74868,9 +74881,9 @@ const qN = Fi(
74868
74881
  featureId: t?.id,
74869
74882
  originalProperties: n
74870
74883
  });
74871
- }, [e?.id, t?.id, n]), Ie(() => {
74884
+ }, [e?.id, t?.id, n]), Re(() => {
74872
74885
  f.uniforms.image = i.image;
74873
- }, [i.image, f]), Object.assign(f.uniforms, co(i, ["width", "height"])), Ie(() => {
74886
+ }, [i.image, f]), Object.assign(f.uniforms, co(i, ["width", "height"])), Re(() => {
74874
74887
  f.uniforms.colorMap = o != null ? sm(o) : sm(TN);
74875
74888
  }, [o, f]), Object.assign(
74876
74889
  f.uniforms,
@@ -74932,16 +74945,16 @@ const FEe = Fi(function({ property: t, isVisible: n, layer: i, feature: r }) {
74932
74945
  N?.up || pe.ONE
74933
74946
  ).computeVisibility(E) !== sU.OUTSIDE;
74934
74947
  }, V = de(null);
74935
- Ie(() => {
74948
+ Re(() => {
74936
74949
  V.current && V.current.sendToBack();
74937
74950
  }, []), $l(() => {
74938
74951
  const N = G();
74939
74952
  N !== C && (M(N), v?.onLayerVisibility && i?.id && v.onLayerVisibility({ layerId: i.id }));
74940
- }), Ie(() => () => {
74953
+ }), Re(() => () => {
74941
74954
  g?.isDestroyed() || g?.requestRender();
74942
74955
  }, [g]);
74943
74956
  const [P, A] = ot(), X = t?.maxValue == null && t?.minValue == null;
74944
- Ie(() => {
74957
+ Re(() => {
74945
74958
  !C || !o || IEe(o, X).then((N) => {
74946
74959
  A(N);
74947
74960
  }).catch(() => {
@@ -75076,7 +75089,7 @@ function XEe({ property: e, id: t, isVisible: n, geometry: i, layer: r, feature:
75076
75089
  () => sl(e?.near, e?.far),
75077
75090
  [e?.near, e?.far]
75078
75091
  ), Qe = he(() => String(g), [g]);
75079
- return Ie(() => {
75092
+ return Re(() => {
75080
75093
  a?.();
75081
75094
  }), !Ne || !n || !c ? null : /* @__PURE__ */ ae.jsxs(ae.Fragment, { children: [
75082
75095
  Oe && /* @__PURE__ */ ae.jsx(
@@ -75314,9 +75327,9 @@ function WEe({
75314
75327
  const me = ve?.get(Oe);
75315
75328
  me instanceof vs && me.id && me.id.id === e && (me.imageBasedLighting = j, Ee.current = !1, ie?.());
75316
75329
  }
75317
- }), Ie(() => {
75330
+ }), Re(() => {
75318
75331
  j && (Ee.current = !0);
75319
- }, [j]), Ie(() => {
75332
+ }, [j]), Re(() => {
75320
75333
  ie?.();
75321
75334
  }), (c ? s : !s) || !t || !h || !N ? null : /* @__PURE__ */ ae.jsx(
75322
75335
  $r,
@@ -75376,7 +75389,7 @@ function jEe({ isSelected: e, camera: t }) {
75376
75389
  const l = de(!1);
75377
75390
  l.current = n?.reason === "storytelling";
75378
75391
  const u = de(void 0);
75379
- Ie(() => {
75392
+ Re(() => {
75380
75393
  if ((s ?? 0) > 1 && o === 1 && u.current)
75381
75394
  i?.(u.current, {
75382
75395
  duration: nX,
@@ -75400,7 +75413,7 @@ function jEe({ isSelected: e, camera: t }) {
75400
75413
  }
75401
75414
  );
75402
75415
  }
75403
- }, [i, r, o, s]), Ie(() => {
75416
+ }, [i, r, o, s]), Re(() => {
75404
75417
  if (!e && l.current) {
75405
75418
  const f = u.current?.fov ?? nL;
75406
75419
  i?.({ fov: f }, { duration: 0 });
@@ -75627,7 +75640,7 @@ function rCe({
75627
75640
  () => v !== void 0 ? { extrudedHeight: v } : void 0,
75628
75641
  [v]
75629
75642
  );
75630
- return Ie(() => {
75643
+ return Re(() => {
75631
75644
  c?.();
75632
75645
  }), !t || !a || !l ? null : /* @__PURE__ */ ae.jsxs(ae.Fragment, { children: [
75633
75646
  /* @__PURE__ */ ae.jsx(
@@ -75698,7 +75711,7 @@ function sCe({ id: e, isVisible: t, property: n, geometry: i, layer: r, feature:
75698
75711
  () => sl(n?.near, n?.far),
75699
75712
  [n?.near, n?.far]
75700
75713
  );
75701
- return Ie(() => {
75714
+ return Re(() => {
75702
75715
  c?.();
75703
75716
  }), !t || !a || !s ? null : /* @__PURE__ */ ae.jsx(
75704
75717
  $r,
@@ -85549,7 +85562,7 @@ let bx = yx;
85549
85562
  ct(bx, "maximumTasks", 50), ct(bx, "maximumTasksPerImagery", 6);
85550
85563
  const g1 = (e, t, n) => {
85551
85564
  const { hideIndicator: i } = n ?? {}, { viewer: r } = si(), o = n?.alpha;
85552
- Ie(() => {
85565
+ Re(() => {
85553
85566
  if (!e || !r) return;
85554
85567
  const s = r.imageryLayers, a = s.addImageryProvider(e);
85555
85568
  return Object.assign(a, {
@@ -85616,7 +85629,7 @@ const IOe = ({
85616
85629
  layer: n
85617
85630
  }) => {
85618
85631
  const { show: i = !0, minimumLevel: r, maximumLevel: o, credit: s } = t ?? {}, { type: a, url: c } = y1(n), [l, u] = ot();
85619
- Ie(() => {
85632
+ Re(() => {
85620
85633
  if (!e || !i || !c || a !== "tms") return;
85621
85634
  (async () => u(
85622
85635
  await cU.fromUrl(c, {
@@ -85990,11 +86003,11 @@ function NOe({
85990
86003
  () => l ? rn.fromCssColorString(l) : void 0,
85991
86004
  [l]
85992
86005
  );
85993
- return Ie(() => {
86006
+ return Re(() => {
85994
86007
  y && g.current.forEach((x) => {
85995
86008
  lP(x.raw, n, z2, y.clock.currentTime);
85996
86009
  });
85997
- }, [n, y]), Ie(
86010
+ }, [n, y]), Re(
85998
86011
  () => () => {
85999
86012
  _O(() => {
86000
86013
  r?.(Array.from(v.current.values()));
@@ -86066,7 +86079,7 @@ const XOe = {
86066
86079
  return t.current = e, t;
86067
86080
  }, uP = (e) => {
86068
86081
  const t = de(e), n = se(() => t.current, []);
86069
- return Ie(() => {
86082
+ return Re(() => {
86070
86083
  t.current = e;
86071
86084
  }, [e]), n;
86072
86085
  };
@@ -86167,11 +86180,11 @@ const DOe = [
86167
86180
  roll: h,
86168
86181
  disabledSelection: d
86169
86182
  } = e || {}, { viewer: f } = si(), p = de(!1), m = de(!1), y = de(void 0), [g, v] = ot(o);
86170
- Ie(() => {
86183
+ Re(() => {
86171
86184
  n && !g && v(o);
86172
86185
  }, [g, o, n]);
86173
86186
  const [S, E] = ot({ width: s, height: a, length: c, heading: l, pitch: u, roll: h });
86174
- Ie(() => {
86187
+ Re(() => {
86175
86188
  n && !S && E({ width: s, height: a, length: c, heading: l, pitch: u, roll: h });
86176
86189
  }, [S, s, a, c, l, u, h, n]);
86177
86190
  const [C, M] = ot({
@@ -86347,9 +86360,9 @@ const DOe = [
86347
86360
  },
86348
86361
  [t]
86349
86362
  ), k = he(() => new td(f?.scene.canvas), [f]);
86350
- Ie(() => {
86363
+ Re(() => {
86351
86364
  k.setInputAction(V, zt.LEFT_DOWN), k.setInputAction(R, zt.MOUSE_MOVE), k.setInputAction(P, zt.LEFT_UP);
86352
- }, [k, V, R, P]), Ie(
86365
+ }, [k, V, R, P]), Re(
86353
86366
  () => () => {
86354
86367
  requestAnimationFrame(() => {
86355
86368
  k.isDestroyed() || k.destroy();
@@ -86405,7 +86418,7 @@ const YOe = ({
86405
86418
  isTilesetReady: u
86406
86419
  }) => {
86407
86420
  const [h, d] = ot(0), f = he(() => i ?? 100, [i]), p = he(() => r ?? 10, [r]), [m, y] = ot(!1), { requestRender: g } = pi();
86408
- Ie(() => {
86421
+ Re(() => {
86409
86422
  (async () => {
86410
86423
  if (!a?.current || !u) return;
86411
86424
  if (!e || !t || t?.length < 2) {
@@ -86460,7 +86473,7 @@ const YOe = ({
86460
86473
  c,
86461
86474
  u,
86462
86475
  g
86463
- ]), Ie(() => {
86476
+ ]), Re(() => {
86464
86477
  l.unionClippingRegions = n === "outside";
86465
86478
  }, [l, n, e]);
86466
86479
  const v = he(
@@ -86605,7 +86618,7 @@ const YOe = ({
86605
86618
  y
86606
86619
  ]
86607
86620
  ), S = de(v);
86608
- S.current = v, Ie(
86621
+ S.current = v, Re(
86609
86622
  () => t.current?.tileLoad.addEventListener(
86610
86623
  (w) => S.current(w)
86611
86624
  ),
@@ -86619,16 +86632,16 @@ const YOe = ({
86619
86632
  },
86620
86633
  [n, o, l]
86621
86634
  ), C = de(E);
86622
- C.current = E, Ie(
86635
+ C.current = E, Re(
86623
86636
  () => t.current?.tileUnload.addEventListener(
86624
86637
  (w) => C.current(w)
86625
86638
  ),
86626
86639
  [t, u]
86627
- ), Ie(() => {
86640
+ ), Re(() => {
86628
86641
  f.current = i;
86629
86642
  }, [i]);
86630
86643
  const M = he(() => Bs(i)?.["3dtiles"], [i]), G = Pwe(M, tVe), V = l ? 0 : i?.layer._updateStyle, P = de(V), A = de(void 0);
86631
- Ie(() => {
86644
+ Re(() => {
86632
86645
  A.current = Date.now();
86633
86646
  }, [G, V]);
86634
86647
  const X = se(
@@ -86657,7 +86670,7 @@ const YOe = ({
86657
86670
  },
86658
86671
  [X, V]
86659
86672
  ), { requestRender: x } = pi();
86660
- Ie(() => {
86673
+ Re(() => {
86661
86674
  (async () => {
86662
86675
  const R = Date.now();
86663
86676
  await I(R), x?.();
@@ -86742,7 +86755,7 @@ const YOe = ({
86742
86755
  edgeColor: ri(v)
86743
86756
  })
86744
86757
  );
86745
- Ie(
86758
+ Re(
86746
86759
  () => () => {
86747
86760
  ue(
86748
86761
  new cC({
@@ -86782,7 +86795,7 @@ const YOe = ({
86782
86795
  const [Be] = ot(() => /* @__PURE__ */ new Map());
86783
86796
  Ur(() => {
86784
86797
  tt(!1), me(!1), Y.current !== le && (h.current = void 0, Y.current = void 0, z(!1)), Ue.records.clear(), Qe.current = [], Be.clear();
86785
- }, [le, Ue, Be]), Ie(() => {
86798
+ }, [le, Ue, Be]), Re(() => {
86786
86799
  !h.current || !Ne || !Oe || Object.assign(h.current, {
86787
86800
  onSelectFeature: (ut) => {
86788
86801
  const Rt = Lt(ut);
@@ -86817,7 +86830,7 @@ const YOe = ({
86817
86830
  },
86818
86831
  [B, u]
86819
86832
  );
86820
- Ie(() => {
86833
+ Re(() => {
86821
86834
  if (E?.draw) return;
86822
86835
  const ut = X || (A ? [A.lng, A.lat, A.height ?? 0] : void 0), Rt = pe.fromDegrees(ut?.[0] || 0, ut?.[1] || 0, ut?.[2] || 0);
86823
86836
  (async () => {
@@ -86850,11 +86863,11 @@ const YOe = ({
86850
86863
  Ct,
86851
86864
  E?.draw,
86852
86865
  Oe
86853
- ]), Ie(() => {
86866
+ ]), Re(() => {
86854
86867
  E?.draw || (q.enabled = N);
86855
- }, [q, N, E?.draw]), Ie(() => {
86868
+ }, [q, N, E?.draw]), Re(() => {
86856
86869
  E?.draw || (q.unionClippingRegions = k === "outside");
86857
- }, [q, k, E?.draw]), Ie(() => {
86870
+ }, [q, k, E?.draw]), Re(() => {
86858
86871
  E?.draw || (q.removeAll(), ce?.forEach(
86859
86872
  (ut) => q.add(
86860
86873
  new zf(
@@ -86863,7 +86876,7 @@ const YOe = ({
86863
86876
  )
86864
86877
  )
86865
86878
  ));
86866
- }, [ce, q, be, E?.draw]), Ie(() => {
86879
+ }, [ce, q, be, E?.draw]), Re(() => {
86867
86880
  if (!g) {
86868
86881
  F(void 0);
86869
86882
  return;
@@ -86877,7 +86890,7 @@ const YOe = ({
86877
86890
  const Rt = await ut.json(), gi = new gO(Rt);
86878
86891
  F(gi);
86879
86892
  })();
86880
- }, [g]), Ie(() => {
86893
+ }, [g]), Re(() => {
86881
86894
  K && h.current && Oe && (h.current.style = K);
86882
86895
  }, [K, Oe]);
86883
86896
  const Ri = he(() => j !== "google-photorealistic" || !n ? null : Ee === "reearth" ? ge || W || null : (async () => {
@@ -86926,9 +86939,9 @@ const YOe = ({
86926
86939
  },
86927
86940
  [le]
86928
86941
  );
86929
- return Ie(() => {
86942
+ return Re(() => {
86930
86943
  !ke || !rt || me(!0);
86931
- }, [ke, rt]), Ie(() => (f?.(), () => {
86944
+ }, [ke, rt]), Re(() => (f?.(), () => {
86932
86945
  f?.();
86933
86946
  }), [j, f]), {
86934
86947
  tilesetKey: le,
@@ -87087,11 +87100,11 @@ function hVe({
87087
87100
  ),
87088
87101
  [r?.type, r?.url, r?.layers, r?.provider, r?.serviceTokens?.googleMapApiKey]
87089
87102
  ), { requestRender: h } = pi();
87090
- Ie(() => {
87103
+ Re(() => {
87091
87104
  setTimeout(() => {
87092
87105
  h?.();
87093
87106
  }, 300);
87094
- }), Ie(() => () => h?.(), [h]);
87107
+ }), Re(() => () => h?.(), [h]);
87095
87108
  const d = (p, m) => {
87096
87109
  if (!aVe(p)) return null;
87097
87110
  const y = !!i.viewerProperty?.scene?.imageBasedLighting?.sphericalHarmonicCoefficients, g = !!i.viewerProperty?.scene?.imageBasedLighting?.specularEnvironmentMaps, v = e.layer.visible !== !1 && !t && !(n?.layerId === e.id && n?.feature?.id === m?.id), S = u + Qf(
@@ -87167,7 +87180,7 @@ function fVe(e, t, n) {
87167
87180
  cartesianArray: l
87168
87181
  };
87169
87182
  }, [n?.targetWidth, n?.targetLength, i]), [o, s] = ot();
87170
- return Ie(() => {
87183
+ return Re(() => {
87171
87184
  const a = e.current?.cesiumElement;
87172
87185
  if (!a || a.isDestroyed() || !n?.targetArea || !i) return;
87173
87186
  const c = new hU(a.scene);
@@ -87192,7 +87205,7 @@ function fVe(e, t, n) {
87192
87205
  d / 2 + u
87193
87206
  );
87194
87207
  s(p);
87195
- }, [e, n, i]), Ie(() => {
87208
+ }, [e, n, i]), Re(() => {
87196
87209
  const a = e?.current?.cesiumElement, c = Oo(e?.current?.cesiumElement);
87197
87210
  !a || a.isDestroyed() || !c || !n?.enabled || !r || a.camera.setView({
87198
87211
  destination: gVe(c, r),
@@ -87279,9 +87292,9 @@ const pVe = new lO({
87279
87292
  }, [c]), u = se(() => {
87280
87293
  c();
87281
87294
  }, [c]);
87282
- Ie(() => {
87295
+ Re(() => {
87283
87296
  n && !a.current.includes(n) && (r.flyTo(n, { duration: 0 }), a.current = []);
87284
- }, [n, r]), Ie(() => {
87297
+ }, [n, r]), Re(() => {
87285
87298
  if (!e.current?.cesiumElement) return;
87286
87299
  const v = !!(i & Dn.CAMERA_MOVE), S = !!(i & Dn.CAMERA_ZOOM), E = !!(i & Dn.CAMERA_TILT), C = !!(i & Dn.CAMERA_LOOK);
87287
87300
  e.current.cesiumElement.scene.screenSpaceCameraController.enableTranslate = v, e.current.cesiumElement.scene.screenSpaceCameraController.enableRotate = v, e.current.cesiumElement.scene.screenSpaceCameraController.enableLook = C, e.current.cesiumElement.scene.screenSpaceCameraController.enableTilt = E, e.current.cesiumElement.scene.screenSpaceCameraController.enableZoom = S;
@@ -87306,7 +87319,7 @@ const pVe = new lO({
87306
87319
  },
87307
87320
  [o]
87308
87321
  );
87309
- return Ie(() => {
87322
+ return Re(() => {
87310
87323
  const v = e.current?.cesiumElement;
87311
87324
  if (v)
87312
87325
  return v.scene.preRender.addEventListener(g);
@@ -87866,11 +87879,11 @@ function EP(e) {
87866
87879
  var t = e * Math.PI / 180;
87867
87880
  return Math.tan(t);
87868
87881
  }
87869
- const ru = new Re(), bg = new b(), Bv = new b();
87882
+ const ru = new Ie(), bg = new b(), Bv = new b();
87870
87883
  function e9e(e, t) {
87871
87884
  if (e.length === 1)
87872
87885
  try {
87873
- const n = Re.fromCartesian(
87886
+ const n = Ie.fromCartesian(
87874
87887
  e[0],
87875
87888
  t,
87876
87889
  ru
@@ -87889,7 +87902,7 @@ function t9e(e, t) {
87889
87902
  const n = b.distance(e[0], e[1]);
87890
87903
  if (n !== 0)
87891
87904
  try {
87892
- const i = Re.fromCartesian(
87905
+ const i = Ie.fromCartesian(
87893
87906
  e[0],
87894
87907
  t,
87895
87908
  ru
@@ -87910,7 +87923,7 @@ function n9e(e, t) {
87910
87923
  if (e.length === 2)
87911
87924
  return gS(
87912
87925
  e.map((h) => {
87913
- const d = Re.fromCartesian(
87926
+ const d = Ie.fromCartesian(
87914
87927
  h,
87915
87928
  t,
87916
87929
  ru
@@ -87932,7 +87945,7 @@ function n9e(e, t) {
87932
87945
  ), a = b.add(n, s, bg), c = b.add(i, s, Bv);
87933
87946
  return Wl([
87934
87947
  [n, i, c, a, n].map((u) => {
87935
- const h = Re.fromCartesian(
87948
+ const h = Ie.fromCartesian(
87936
87949
  u,
87937
87950
  t,
87938
87951
  ru
@@ -87952,7 +87965,7 @@ function i9e(e, t) {
87952
87965
  try {
87953
87966
  return gS(
87954
87967
  e.map((i) => {
87955
- const r = Re.fromCartesian(
87968
+ const r = Ie.fromCartesian(
87956
87969
  i,
87957
87970
  t,
87958
87971
  ru
@@ -87972,7 +87985,7 @@ function r9e(e, t) {
87972
87985
  try {
87973
87986
  return e.length === 2 ? gS(
87974
87987
  e.map((r) => {
87975
- const o = Re.fromCartesian(
87988
+ const o = Ie.fromCartesian(
87976
87989
  r,
87977
87990
  t,
87978
87991
  ru
@@ -87984,7 +87997,7 @@ function r9e(e, t) {
87984
87997
  })
87985
87998
  ).geometry : Wl([
87986
87999
  [...e, e[0]].map((i) => {
87987
- const r = Re.fromCartesian(
88000
+ const r = Ie.fromCartesian(
87988
88001
  i,
87989
88002
  t,
87990
88003
  ru
@@ -88698,17 +88711,17 @@ const s9e = ({
88698
88711
  const a = e.current?.cesiumElement;
88699
88712
  !t?.current || !a || a.isDestroyed() || (a.scene.requestRender(), t.current === uf && (t.current = _2));
88700
88713
  }, [e, t]), s = de(void 0);
88701
- Ie(() => {
88714
+ Re(() => {
88702
88715
  s.current = o;
88703
- }, [o]), Ie(() => {
88716
+ }, [o]), Re(() => {
88704
88717
  const a = e.current?.cesiumElement;
88705
88718
  if (!(!a || a.isDestroyed()))
88706
88719
  return a.scene.postUpdate.addEventListener(() => {
88707
88720
  s.current?.();
88708
88721
  });
88709
- }, [e]), Ie(() => {
88722
+ }, [e]), Re(() => {
88710
88723
  t && (t.current = uf);
88711
- }, [r, t]), Ie(() => {
88724
+ }, [r, t]), Re(() => {
88712
88725
  const a = e.current?.cesiumElement;
88713
88726
  !a || a.isDestroyed() || t && (t.current = n || i ? wO : t.current === uf ? uf : _2);
88714
88727
  }, [e, n, i, t]);
@@ -88846,7 +88859,7 @@ const p9e = ({
88846
88859
  },
88847
88860
  [e, i]
88848
88861
  ), s = de(void 0);
88849
- return Ie(() => {
88862
+ return Re(() => {
88850
88863
  const a = e.current?.cesiumElement;
88851
88864
  if (!(!a || a.isDestroyed()))
88852
88865
  return s.current = new xE(a, {
@@ -89163,17 +89176,17 @@ const E9e = ({
89163
89176
  ),
89164
89177
  []
89165
89178
  );
89166
- return Ie(() => {
89179
+ return Re(() => {
89167
89180
  if (!e.current?.cesiumElement || !a) return;
89168
89181
  const l = e.current.cesiumElement.scene.globe;
89169
89182
  return l.material = new Hv(), () => {
89170
89183
  l.material = void 0;
89171
89184
  };
89172
- }, [e, a]), Ie(() => {
89185
+ }, [e, a]), Re(() => {
89173
89186
  if (!e.current?.cesiumElement || !a) return;
89174
89187
  const l = e.current.cesiumElement.scene.globe;
89175
89188
  l.material instanceof Hv && (l.material.uniforms.minHeight = r ?? l.material.uniforms.minHeight, l.material.uniforms.maxHeight = i ?? l.material.uniforms.maxHeight, l.material.uniforms.logarithmic = o ?? l.material.uniforms.logarithmic);
89176
- }, [e, a, i, r, o]), Ie(() => {
89189
+ }, [e, a, i, r, o]), Re(() => {
89177
89190
  if (!e.current?.cesiumElement || !a || !s) return;
89178
89191
  const l = e.current.cesiumElement.scene.globe;
89179
89192
  l.material instanceof Hv && (l.material.uniforms.colorMap = sm(s));
@@ -89206,7 +89219,7 @@ const I9e = ({
89206
89219
  cesium: e,
89207
89220
  terrain: s
89208
89221
  });
89209
- Ie(() => {
89222
+ Re(() => {
89210
89223
  if (!e.current?.cesiumElement || !r) return;
89211
89224
  const m = e.current.cesiumElement.scene.globe;
89212
89225
  m.vertexShadowDarkness = n ?? m.vertexShadowDarkness;
@@ -89248,10 +89261,10 @@ const I9e = ({
89248
89261
  d,
89249
89262
  c
89250
89263
  ]);
89251
- Ie(() => {
89264
+ Re(() => {
89252
89265
  if (e.current?.cesiumElement)
89253
89266
  return e.current.cesiumElement.scene.postRender.addEventListener(p);
89254
- }, [e, p]), Ie(() => {
89267
+ }, [e, p]), Re(() => {
89255
89268
  if (!e.current?.cesiumElement || !l && !h) return;
89256
89269
  const m = e.current.cesiumElement.scene, y = m.globe;
89257
89270
  return f.current = !0, m.requestRender(), () => {
@@ -89333,7 +89346,7 @@ const I9e = ({
89333
89346
  onLayerSelectWithRectEnd: M,
89334
89347
  featureFlags: c
89335
89348
  });
89336
- Ie(() => {
89349
+ Re(() => {
89337
89350
  const q = I?.current?.cesiumElement?.shadowMap;
89338
89351
  if (!q) return;
89339
89352
  q.softShadows = t?.scene?.shadow?.shadowMap?.softShadows ?? !1, q.darkness = t?.scene?.shadow?.shadowMap?.darkness ?? 0.3, q.size = t?.scene?.shadow?.shadowMap?.size ?? 2048, q.maximumDistance = t?.scene?.shadow?.shadowMap?.maximumDistance ?? 5e3, q.fadingEnabled = !0, q.normalOffset = !0;
@@ -89367,7 +89380,7 @@ const I9e = ({
89367
89380
  t?.scene?.shadow?.shadowMap?.maximumDistance
89368
89381
  ]);
89369
89382
  const N = de(void 0), k = de(void 0);
89370
- Ie(() => {
89383
+ Re(() => {
89371
89384
  const q = I.current?.cesiumElement;
89372
89385
  if (!q || q.isDestroyed() || k.current === i?.featureId && i?.featureId !== void 0)
89373
89386
  return;
@@ -89598,12 +89611,12 @@ const I9e = ({
89598
89611
  i?.layerId
89599
89612
  ]
89600
89613
  );
89601
- Ie(() => {
89614
+ Re(() => {
89602
89615
  if (dVe())
89603
89616
  return pP(I.current?.cesiumElement), () => {
89604
89617
  pP(void 0);
89605
89618
  };
89606
- }, [I.current?.cesiumElement]), Ie(() => {
89619
+ }, [I.current?.cesiumElement]), Re(() => {
89607
89620
  const q = I.current?.cesiumElement;
89608
89621
  !q || q.isDestroyed() || q.scene.requestRender();
89609
89622
  });
@@ -89648,13 +89661,13 @@ const I9e = ({
89648
89661
  ie
89649
89662
  ]
89650
89663
  );
89651
- Ie(() => {
89664
+ Re(() => {
89652
89665
  const q = I.current?.cesiumElement?.scene.globe;
89653
89666
  if (q) {
89654
89667
  const ue = q._surface;
89655
89668
  ue && (ue.tileProvider._debug.wireframe = t?.debug?.showGlobeWireframe ?? !1);
89656
89669
  }
89657
- }, [t?.debug?.showGlobeWireframe]), Ie(() => {
89670
+ }, [t?.debug?.showGlobeWireframe]), Re(() => {
89658
89671
  n && l?.current?.commit({
89659
89672
  cmd: "SET_TIME",
89660
89673
  payload: {
@@ -90604,11 +90617,11 @@ function $9e(e, t) {
90604
90617
  const Um = Fi(
90605
90618
  no(({ entities: e, ...t }, n) => {
90606
90619
  const { viewer: i } = si(), r = i?.scene, o = i?.entities, s = e ?? o, [a, c] = ot(() => new po(t));
90607
- return Ie(() => {
90620
+ return Re(() => {
90608
90621
  c(new po(t));
90609
- }, [t.id]), Ie(() => (s?.add(a), () => {
90622
+ }, [t.id]), Re(() => (s?.add(a), () => {
90610
90623
  s?.remove(a), r?.requestRender();
90611
- }), [r, s, a]), Ie(() => $9e(n, a), [n, a]), Object.assign(a, Tc(t, "id")), r?.requestRender(), null;
90624
+ }), [r, s, a]), Re(() => $9e(n, a), [n, a]), Object.assign(a, Tc(t, "id")), r?.requestRender(), null;
90612
90625
  })
90613
90626
  ), e4e = {
90614
90627
  padding: "5px",
@@ -90621,7 +90634,7 @@ function vZ(e) {
90621
90634
  const t = de(null);
90622
90635
  return t.current === null && (t.current = e()), t.current;
90623
90636
  }
90624
- const t4e = typeof window < "u", n4e = t4e ? Ur : Ie, SE = /* @__PURE__ */ Qo(null);
90637
+ const t4e = typeof window < "u", n4e = t4e ? Ur : Re, SE = /* @__PURE__ */ Qo(null);
90625
90638
  function TE(e, t) {
90626
90639
  e.indexOf(t) === -1 && e.push(t);
90627
90640
  }
@@ -94412,7 +94425,7 @@ function zze(e = !0) {
94412
94425
  if (t === null)
94413
94426
  return [!0, null];
94414
94427
  const { isPresent: n, onExitComplete: i, register: r } = t, o = dW();
94415
- Ie(() => {
94428
+ Re(() => {
94416
94429
  if (e)
94417
94430
  return r(o);
94418
94431
  }, [e]);
@@ -94717,7 +94730,7 @@ function iNe(e, t, n, i, r, o) {
94717
94730
  const g = n[ck], v = de(!!g && typeof window < "u" && !window.MotionHandoffIsComplete?.(g) && window.MotionHasOptimisedAnimation?.(g));
94718
94731
  return n4e(() => {
94719
94732
  f.current = !0, p && (y.current = !0, window.MotionIsMounted = !0, p.updateFeatures(), p.scheduleRenderMicrotask(), v.current && p.animationState && p.animationState.animateChanges());
94720
- }), Ie(() => {
94733
+ }), Re(() => {
94721
94734
  p && (!v.current && p.animationState && p.animationState.animateChanges(), v.current && (queueMicrotask(() => {
94722
94735
  window.MotionHandoffMarkAsComplete?.(g);
94723
94736
  }), v.current = !1), p.enteringChildren = void 0);
@@ -95561,7 +95574,7 @@ function jG(e) {
95561
95574
  const t = vZ(() => ou(e)), { isStatic: n } = wi(JE);
95562
95575
  if (n) {
95563
95576
  const [, i] = ot(e);
95564
- Ie(() => t.on("change", i), []);
95577
+ Re(() => t.on("change", i), []);
95565
95578
  }
95566
95579
  return t;
95567
95580
  }
@@ -96391,7 +96404,7 @@ function cXe({ error: e, resetErrorBoundary: t }) {
96391
96404
  /* @__PURE__ */ ae.jsx("p", { children: /* @__PURE__ */ ae.jsx("button", { style: { color: "#fff" }, onClick: t, children: "Retry" }) })
96392
96405
  ] });
96393
96406
  }
96394
- const lXe = "0.0.7-alpha.70", uXe = ({ viewerProperty: e }) => {
96407
+ const lXe = "0.0.7-alpha.71", uXe = ({ viewerProperty: e }) => {
96395
96408
  const t = de(e);
96396
96409
  t.current = e;
96397
96410
  const n = he(
@@ -96405,7 +96418,7 @@ const lXe = "0.0.7-alpha.70", uXe = ({ viewerProperty: e }) => {
96405
96418
  }),
96406
96419
  []
96407
96420
  );
96408
- Ie(() => {
96421
+ Re(() => {
96409
96422
  window.reearth_core = n;
96410
96423
  }, [n]);
96411
96424
  }, hXe = 768, dXe = ({ wrapperRef: e }) => {
@@ -96415,7 +96428,7 @@ const lXe = "0.0.7-alpha.70", uXe = ({ viewerProperty: e }) => {
96415
96428
  isMobile: void 0,
96416
96429
  query: t
96417
96430
  });
96418
- return Ie(() => {
96431
+ return Re(() => {
96419
96432
  const r = new ResizeObserver((o) => {
96420
96433
  const [s] = o;
96421
96434
  let a, c;
@@ -96476,7 +96489,7 @@ function pXe({
96476
96489
  t || "default",
96477
96490
  s
96478
96491
  );
96479
- Ie(() => {
96492
+ Re(() => {
96480
96493
  X === "default" && h?.current?.engine?.setCursor("auto");
96481
96494
  }, [X]);
96482
96495
  const x = Kx[X ?? "default"], w = de(void 0), R = se((Be) => {
@@ -96526,7 +96539,7 @@ function pXe({
96526
96539
  },
96527
96540
  [l]
96528
96541
  );
96529
- Ie(() => {
96542
+ Re(() => {
96530
96543
  n && (h.current?.engine?.lookAtLayer(n), a?.(void 0));
96531
96544
  }, [n, a]);
96532
96545
  const [Me, we] = ot(!1), Ue = se(() => {
@@ -96620,7 +96633,7 @@ function qG(e, t) {
96620
96633
  },
96621
96634
  [t]
96622
96635
  );
96623
- return Ie(() => {
96636
+ return Re(() => {
96624
96637
  i(e);
96625
96638
  }, [e]), [n, r];
96626
96639
  }