leiting-bim 2.1.198 → 2.2.1

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.
@@ -4377,7 +4377,7 @@ const ko = {
4377
4377
  })();
4378
4378
  wm(lo);
4379
4379
  const jA = "E84#E3C4!8C4&A1";
4380
- async function Ut(i) {
4380
+ async function Dt(i) {
4381
4381
  try {
4382
4382
  const e = await fetch(i);
4383
4383
  if (!e.ok)
@@ -4592,7 +4592,7 @@ class ju {
4592
4592
  if (t.length > 0) {
4593
4593
  const a = t[0], l = `${a.outPutPath}${a.dbName}/config.zip`;
4594
4594
  try {
4595
- const r = await Ut(l);
4595
+ const r = await Dt(l);
4596
4596
  r && typeof r == "object" && this.events.emit("configureLoaded", r);
4597
4597
  } catch {
4598
4598
  }
@@ -4606,17 +4606,17 @@ class ju {
4606
4606
  "loadingStatus",
4607
4607
  `正在加载第 ${n}/${s} 个模型: 加载${a.modelName}构件信息`
4608
4608
  );
4609
- let c = e.loadTreeNodeDetails ? await Ut(`${r}${e.loadTreeNodeDetailsUrl}`) : !1;
4609
+ let c = e.loadTreeNodeDetails ? await Dt(`${r}${e.loadTreeNodeDetailsUrl}`) : !1;
4610
4610
  e.loadTree = !1, e.loadTree && this.events.emit(
4611
4611
  "loadingStatus",
4612
4612
  `正在加载第 ${n}/${s} 个模型: 加载${a.modelName}目录树`
4613
4613
  );
4614
- const u = e.loadTree ? await Ut(`${r}${e.loadTreeUrl}`) : !1;
4614
+ const u = e.loadTree ? await Dt(`${r}${e.loadTreeUrl}`) : !1;
4615
4615
  this.events.emit(
4616
4616
  "loadingStatus",
4617
4617
  `正在加载第 ${n}/${s} 个模型: 加载${a.modelName}模型数据`
4618
4618
  );
4619
- const d = e.boxRegionUrl ? await Ut(`${r}${e.boxRegionUrl}`) : !1, f = e.batchIDInfoUrl ? await Ut(`${r}${e.batchIDInfoUrl}`) : !1;
4619
+ const d = e.boxRegionUrl ? await Dt(`${r}${e.boxRegionUrl}`) : !1, f = e.batchIDInfoUrl ? await Dt(`${r}${e.batchIDInfoUrl}`) : !1;
4620
4620
  f && (c || (c = f));
4621
4621
  const h = await this.loadTilesetWithZipSupport(
4622
4622
  l,
@@ -4655,7 +4655,7 @@ class ju {
4655
4655
  v.box = { min: m, max: y, center: C };
4656
4656
  }
4657
4657
  if (!a.formData) {
4658
- const m = await Ut(
4658
+ const m = await Dt(
4659
4659
  `${a.outPutPath}${a.dbName}${e.regionUrl}`
4660
4660
  );
4661
4661
  if (m)
@@ -4739,28 +4739,26 @@ class ju {
4739
4739
  `正在加载第 ${o}/${e.length} 个模型: 加载${a.modelName}`
4740
4740
  );
4741
4741
  try {
4742
- const { outPutPath: l, dbName: r, modelId: c } = a, d = `${/^https?:\/\//i.test(l) ? l : `${window.location.origin}${l}`}${r}/tileset.json`, f = await s.Cesium3DTileset.fromUrl(d, {
4742
+ const { outPutPath: l, dbName: r, modelId: c } = a, u = /^(https?|atom):\/\//i.test(l) ? l : `${window.location.origin}${l}`, d = `${u}${r}/tileset.json`, f = await s.Cesium3DTileset.fromUrl(d, {
4743
4743
  maximumScreenSpaceError: 16,
4744
4744
  preferLeaves: !0,
4745
4745
  cullWithChildrenBounds: !0,
4746
4746
  ...t?.tilesetOptions
4747
4747
  });
4748
4748
  if (f.colorBlendMode = this.cesium.Cesium3DTileColorBlendMode.REPLACE, this.viewer.scene.primitives.add(f), await f.readyPromise, this.mapTileset[`${c}`] = f, this.hasLoaded3dTiles[`${c}`] = (this.hasLoaded3dTiles[`${c}`] || 0) + 1, this.mapRecordModelId[`${c}`] = !0, !a?.formData) {
4749
- const h = f.root.computedTransform;
4750
- if (h) {
4751
- const g = s.Matrix4.fromColumnMajorArray(h), v = s.Matrix4.getTranslation(
4752
- g,
4753
- new s.Cartesian3()
4754
- ), m = s.Ellipsoid.WGS84.cartesianToCartographic(v), y = s.Math.toDegrees(m.longitude), C = s.Math.toDegrees(m.latitude), x = m.height;
4749
+ const h = await Dt(
4750
+ `${u}${r}${this.options.regionUrl}`
4751
+ );
4752
+ if (h)
4755
4753
  a.formData = {
4756
4754
  modelId: a.modelId.toString(),
4757
- longitude: y,
4758
- latitude: C,
4755
+ longitude: h.Longitude ?? h.longitude,
4756
+ latitude: h.Latitude ?? h.latitude,
4759
4757
  distance: 1e-5,
4760
4758
  rotation: 0,
4761
- totalRotation: 0,
4759
+ totalRotation: h.DAngle ?? h.totalRotation ?? 0,
4762
4760
  heightDistance: 1,
4763
- height: x,
4761
+ height: h.MinHeight ?? h.height ?? 0,
4764
4762
  lonlat: 1e-5,
4765
4763
  modelOptions: [
4766
4764
  {
@@ -4768,12 +4766,40 @@ class ju {
4768
4766
  label: a.modelName
4769
4767
  }
4770
4768
  ],
4771
- X: 0,
4772
- Y: 0,
4773
- Z: 0
4769
+ X: h?.X || 0,
4770
+ Y: h?.Y || 0,
4771
+ Z: h?.Z || 0
4774
4772
  };
4775
- } else
4776
- console.warn(`OSGB模型 ${c} 无法获取初始位置信息`);
4773
+ else {
4774
+ const g = f.root.computedTransform;
4775
+ if (g) {
4776
+ const v = s.Matrix4.fromColumnMajorArray(g), m = s.Matrix4.getTranslation(
4777
+ v,
4778
+ new s.Cartesian3()
4779
+ ), y = s.Ellipsoid.WGS84.cartesianToCartographic(m), C = s.Math.toDegrees(y.longitude), x = s.Math.toDegrees(y.latitude), P = y.height;
4780
+ a.formData = {
4781
+ modelId: a.modelId.toString(),
4782
+ longitude: C,
4783
+ latitude: x,
4784
+ distance: 1e-5,
4785
+ rotation: 0,
4786
+ totalRotation: 0,
4787
+ heightDistance: 1,
4788
+ height: P,
4789
+ lonlat: 1e-5,
4790
+ modelOptions: [
4791
+ {
4792
+ value: a.modelId.toString(),
4793
+ label: a.modelName
4794
+ }
4795
+ ],
4796
+ X: 0,
4797
+ Y: 0,
4798
+ Z: 0
4799
+ };
4800
+ } else
4801
+ console.warn(`OSGB模型 ${c} 无法获取初始位置信息`);
4802
+ }
4777
4803
  }
4778
4804
  a.formData && (a.formData.heightDistance = a.formData.heightDistance ?? 1), f.leiting = {
4779
4805
  versionId: `${f?.asset?.tilesetVersion ?? c}`,
@@ -4861,7 +4887,7 @@ class ju {
4861
4887
  }
4862
4888
  // 获取 tileset.json 所在目录
4863
4889
  getBaseUrlPath(e) {
4864
- const t = /^https?:\/\//i.test(e) ? e : `${window.location.origin}${e}`, s = t.lastIndexOf("/");
4890
+ const t = /^(https?|atom):\/\//i.test(e) ? e : `${window.location.origin}${e}`, s = t.lastIndexOf("/");
4865
4891
  return s === -1 ? "." : t.substr(0, s);
4866
4892
  }
4867
4893
  // 优先尝试 tileset.zip,否则回退 tileset.json
@@ -4869,11 +4895,11 @@ class ju {
4869
4895
  try {
4870
4896
  const o = encodeURI(`${this.getBaseUrlPath(e)}/tileset.zip`);
4871
4897
  if ((await fetch(o, { method: "HEAD" })).status === 200) {
4872
- const r = await Ut(o);
4898
+ const r = await Dt(o);
4873
4899
  if (r) {
4874
4900
  r?.asset?.watermark && this.watermarkEnabled && zu(r.asset.watermark, this.viewer?.container);
4875
4901
  const c = this.getBaseUrlPath(e), u = (h) => {
4876
- !h || typeof h != "object" || (typeof h.uri == "string" && !/^(data:|https?:\/\/)/i.test(h.uri) && (h.uri = encodeURI(`${c}/${h.uri.replace(/^\.?\//, "")}`)), Object.values(h).forEach((g) => {
4902
+ !h || typeof h != "object" || (typeof h.uri == "string" && !/^(data:|https?:|atom:)\/\//i.test(h.uri) && (h.uri = encodeURI(`${c}/${h.uri.replace(/^\.?\//, "")}`)), Object.values(h).forEach((g) => {
4877
4903
  if (Array.isArray(g)) {
4878
4904
  g.forEach((v) => u(v));
4879
4905
  return;
@@ -4922,7 +4948,7 @@ class ju {
4922
4948
  this.lazyLoadingCount++, this.events.emit("loadingStatus", `正在加载 ${s} 目录树...`);
4923
4949
  try {
4924
4950
  if (n) {
4925
- const a = await Ut(n);
4951
+ const a = await Dt(n);
4926
4952
  if (On(a) && a[0].name && (a[0].name = s), a)
4927
4953
  return t.leiting.tree = a, a;
4928
4954
  }
@@ -4971,7 +4997,7 @@ class ju {
4971
4997
  if (!s) return null;
4972
4998
  this.lazyLoadingCount++, this.events.emit("loadingStatus", `正在加载 ${n} 构件详情...`);
4973
4999
  try {
4974
- const o = await Ut(s);
5000
+ const o = await Dt(s);
4975
5001
  if (o)
4976
5002
  return o.batchIdEIDInfos || (o.batchIdEIDInfos = t.leiting.node.batchIdEIDInfos), t.leiting.node = o, o;
4977
5003
  } catch (o) {
@@ -4991,7 +5017,7 @@ class ju {
4991
5017
  if (!s) return null;
4992
5018
  this.lazyLoadingCount++, this.events.emit("loadingStatus", `正在加载 ${n} 构件详情...`);
4993
5019
  try {
4994
- const o = await Ut(s);
5020
+ const o = await Dt(s);
4995
5021
  if (o)
4996
5022
  return o.batchIdEIDInfos || (o.batchIdEIDInfos = t.leiting.node.batchIdEIDInfos), t.leiting.node = o, o;
4997
5023
  } catch (o) {
@@ -7075,7 +7101,7 @@ class av {
7075
7101
  const a = await this.loadModelFile(n);
7076
7102
  if (a) {
7077
7103
  const l = (u) => {
7078
- !u || typeof u != "object" || (typeof u.uri == "string" && !/^(data:|https?:\/\/)/i.test(u.uri) && (u.uri = encodeURI(`${s}/${u.uri.replace(/^\.?\//, "")}`)), Object.values(u).forEach((d) => {
7104
+ !u || typeof u != "object" || (typeof u.uri == "string" && !/^(data:|https?:|atom:)\/\//i.test(u.uri) && (u.uri = encodeURI(`${s}/${u.uri.replace(/^\.?\//, "")}`)), Object.values(u).forEach((d) => {
7079
7105
  if (Array.isArray(d)) {
7080
7106
  d.forEach((f) => l(f));
7081
7107
  return;
@@ -7103,7 +7129,7 @@ class av {
7103
7129
  if (this.renderGenAll !== s) return;
7104
7130
  const o = this.renderGenByModel[n.modelId] || 0;
7105
7131
  if ((this.renderGenByModel[n.modelId] || 0) !== o || ~this.dxfModelsList.findIndex((c) => c.modelId === n.modelId)) return;
7106
- /^https?:\/\//i.test(n.outPutPath) || (n.outPutPath = `${window.location.origin}${n.outPutPath}`);
7132
+ /^(https?|atom):\/\//i.test(n.outPutPath) || (n.outPutPath = `${window.location.origin}${n.outPutPath}`);
7107
7133
  const l = `${n.outPutPath}${n.dbName}/tileset.json`, r = { ...this.options, ...t };
7108
7134
  try {
7109
7135
  const c = `${n.outPutPath}${n.dbName}/layerInfo.zip`, u = await this.loadModelFile(c);
@@ -7759,12 +7785,12 @@ function Wi(i, e) {
7759
7785
  }
7760
7786
  }
7761
7787
  var Ev = 0.017453292519943295;
7762
- function _t(i) {
7788
+ function kt(i) {
7763
7789
  return i * Ev;
7764
7790
  }
7765
7791
  function Ju(i) {
7766
7792
  const e = (i.projName || "").toLowerCase().replace(/_/g, " ");
7767
- !i.long0 && i.longc && (e === "albers conic equal area" || e === "lambert azimuthal equal area") && (i.long0 = i.longc), !i.lat_ts && i.lat1 && (e === "stereographic south pole" || e === "polar stereographic (variant b)") ? (i.lat0 = _t(i.lat1 > 0 ? 90 : -90), i.lat_ts = i.lat1, delete i.lat1) : !i.lat_ts && i.lat0 && (e === "polar stereographic" || e === "polar stereographic (variant a)") && (i.lat_ts = i.lat0, i.lat0 = _t(i.lat0 > 0 ? 90 : -90), delete i.lat1);
7793
+ !i.long0 && i.longc && (e === "albers conic equal area" || e === "lambert azimuthal equal area") && (i.long0 = i.longc), !i.lat_ts && i.lat1 && (e === "stereographic south pole" || e === "polar stereographic (variant b)") ? (i.lat0 = kt(i.lat1 > 0 ? 90 : -90), i.lat_ts = i.lat1, delete i.lat1) : !i.lat_ts && i.lat0 && (e === "polar stereographic" || e === "polar stereographic (variant a)") && (i.lat_ts = i.lat0, i.lat0 = kt(i.lat0 > 0 ? 90 : -90), delete i.lat1);
7768
7794
  }
7769
7795
  function xl(i) {
7770
7796
  let e = { units: null, to_meter: void 0 };
@@ -7872,7 +7898,7 @@ function Sv(i) {
7872
7898
  }
7873
7899
  i.UNIT && (i.units = i.UNIT.name.toLowerCase(), i.units === "metre" && (i.units = "meter"), i.UNIT.convert && (i.type === "GEOGCS" ? i.DATUM && i.DATUM.SPHEROID && (i.to_meter = i.UNIT.convert * i.DATUM.SPHEROID.a) : i.to_meter = i.UNIT.convert));
7874
7900
  var a = i.GEOGCS;
7875
- i.type === "GEOGCS" && (a = i), a && (a.DATUM ? i.datumCode = a.DATUM.name.toLowerCase() : i.datumCode = a.name.toLowerCase(), i.datumCode.slice(0, 2) === "d_" && (i.datumCode = i.datumCode.slice(2)), i.datumCode === "new_zealand_1949" && (i.datumCode = "nzgd49"), (i.datumCode === "wgs_1984" || i.datumCode === "world_geodetic_system_1984") && (i.PROJECTION === "Mercator_Auxiliary_Sphere" && (i.sphere = !0), i.datumCode = "wgs84"), i.datumCode === "belge_1972" && (i.datumCode = "rnb72"), a.DATUM && a.DATUM.SPHEROID && (i.ellps = a.DATUM.SPHEROID.name.replace("_19", "").replace(/[Cc]larke\_18/, "clrk"), i.ellps.toLowerCase().slice(0, 13) === "international" && (i.ellps = "intl"), i.a = a.DATUM.SPHEROID.a, i.rf = parseFloat(a.DATUM.SPHEROID.rf, 10)), a.DATUM && a.DATUM.TOWGS84 && (i.datum_params = a.DATUM.TOWGS84), ~i.datumCode.indexOf("osgb_1936") && (i.datumCode = "osgb36"), ~i.datumCode.indexOf("osni_1952") && (i.datumCode = "osni52"), (~i.datumCode.indexOf("tm65") || ~i.datumCode.indexOf("geodetic_datum_of_1965")) && (i.datumCode = "ire65"), i.datumCode === "ch1903+" && (i.datumCode = "ch1903"), ~i.datumCode.indexOf("israel") && (i.datumCode = "isr93")), i.b && !isFinite(i.b) && (i.b = i.a), i.rectified_grid_angle && (i.rectified_grid_angle = _t(i.rectified_grid_angle));
7901
+ i.type === "GEOGCS" && (a = i), a && (a.DATUM ? i.datumCode = a.DATUM.name.toLowerCase() : i.datumCode = a.name.toLowerCase(), i.datumCode.slice(0, 2) === "d_" && (i.datumCode = i.datumCode.slice(2)), i.datumCode === "new_zealand_1949" && (i.datumCode = "nzgd49"), (i.datumCode === "wgs_1984" || i.datumCode === "world_geodetic_system_1984") && (i.PROJECTION === "Mercator_Auxiliary_Sphere" && (i.sphere = !0), i.datumCode = "wgs84"), i.datumCode === "belge_1972" && (i.datumCode = "rnb72"), a.DATUM && a.DATUM.SPHEROID && (i.ellps = a.DATUM.SPHEROID.name.replace("_19", "").replace(/[Cc]larke\_18/, "clrk"), i.ellps.toLowerCase().slice(0, 13) === "international" && (i.ellps = "intl"), i.a = a.DATUM.SPHEROID.a, i.rf = parseFloat(a.DATUM.SPHEROID.rf, 10)), a.DATUM && a.DATUM.TOWGS84 && (i.datum_params = a.DATUM.TOWGS84), ~i.datumCode.indexOf("osgb_1936") && (i.datumCode = "osgb36"), ~i.datumCode.indexOf("osni_1952") && (i.datumCode = "osni52"), (~i.datumCode.indexOf("tm65") || ~i.datumCode.indexOf("geodetic_datum_of_1965")) && (i.datumCode = "ire65"), i.datumCode === "ch1903+" && (i.datumCode = "ch1903"), ~i.datumCode.indexOf("israel") && (i.datumCode = "isr93")), i.b && !isFinite(i.b) && (i.b = i.a), i.rectified_grid_angle && (i.rectified_grid_angle = kt(i.rectified_grid_angle));
7876
7902
  function l(u) {
7877
7903
  var d = i.to_meter || 1;
7878
7904
  return u * d;
@@ -7901,19 +7927,19 @@ function Sv(i) {
7901
7927
  ["k0", "scale_factor"],
7902
7928
  ["latitude_of_center", "Latitude_Of_Center"],
7903
7929
  ["latitude_of_center", "Latitude_of_center"],
7904
- ["lat0", "latitude_of_center", _t],
7930
+ ["lat0", "latitude_of_center", kt],
7905
7931
  ["longitude_of_center", "Longitude_Of_Center"],
7906
7932
  ["longitude_of_center", "Longitude_of_center"],
7907
- ["longc", "longitude_of_center", _t],
7933
+ ["longc", "longitude_of_center", kt],
7908
7934
  ["x0", "false_easting", l],
7909
7935
  ["y0", "false_northing", l],
7910
- ["long0", "central_meridian", _t],
7911
- ["lat0", "latitude_of_origin", _t],
7912
- ["lat0", "standard_parallel_1", _t],
7913
- ["lat1", "standard_parallel_1", _t],
7914
- ["lat2", "standard_parallel_2", _t],
7936
+ ["long0", "central_meridian", kt],
7937
+ ["lat0", "latitude_of_origin", kt],
7938
+ ["lat0", "standard_parallel_1", kt],
7939
+ ["lat1", "standard_parallel_1", kt],
7940
+ ["lat2", "standard_parallel_2", kt],
7915
7941
  ["azimuth", "Azimuth"],
7916
- ["alpha", "azimuth", _t],
7942
+ ["alpha", "azimuth", kt],
7917
7943
  ["srsCode", "name"]
7918
7944
  ];
7919
7945
  c.forEach(r), Ju(i);
@@ -8022,7 +8048,7 @@ function qs(i) {
8022
8048
  function se(i, e) {
8023
8049
  return e || Math.abs(i) <= Ve ? i : i - qs(i) * Qs;
8024
8050
  }
8025
- function kt(i, e, t) {
8051
+ function Rt(i, e, t) {
8026
8052
  var s = i * t, n = 0.5 * i;
8027
8053
  return s = Math.pow((1 - s) / (1 + s), n), Math.tan(0.5 * (K - e)) / s;
8028
8054
  }
@@ -8046,7 +8072,7 @@ function Fv(i) {
8046
8072
  if (this.sphere)
8047
8073
  s = this.x0 + this.a * this.k0 * se(e - this.long0, this.over), n = this.y0 + this.a * this.k0 * Math.log(Math.tan(Me + 0.5 * t));
8048
8074
  else {
8049
- var o = Math.sin(t), a = kt(this.e, t, o);
8075
+ var o = Math.sin(t), a = Rt(this.e, t, o);
8050
8076
  s = this.x0 + this.a * this.k0 * se(e - this.long0, this.over), n = this.y0 - this.a * this.k0 * Math.log(a);
8051
8077
  }
8052
8078
  return i.x = s, i.y = n, i;
@@ -10546,11 +10572,11 @@ function Ka(i, e, t) {
10546
10572
  return e *= t, Math.tan(0.5 * (K + i)) * Math.pow((1 - e) / (1 + e), 0.5 * t);
10547
10573
  }
10548
10574
  function l1() {
10549
- this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.lat0 = this.lat0 || 0, this.long0 = this.long0 || 0, this.coslat0 = Math.cos(this.lat0), this.sinlat0 = Math.sin(this.lat0), this.sphere ? this.k0 === 1 && !isNaN(this.lat_ts) && Math.abs(this.coslat0) <= Z && (this.k0 = 0.5 * (1 + qs(this.lat0) * Math.sin(this.lat_ts))) : (Math.abs(this.coslat0) <= Z && (this.lat0 > 0 ? this.con = 1 : this.con = -1), this.cons = Math.sqrt(Math.pow(1 + this.e, 1 + this.e) * Math.pow(1 - this.e, 1 - this.e)), this.k0 === 1 && !isNaN(this.lat_ts) && Math.abs(this.coslat0) <= Z && Math.abs(Math.cos(this.lat_ts)) > Z && (this.k0 = 0.5 * this.cons * jt(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)) / kt(this.e, this.con * this.lat_ts, this.con * Math.sin(this.lat_ts))), this.ms1 = jt(this.e, this.sinlat0, this.coslat0), this.X0 = 2 * Math.atan(Ka(this.lat0, this.sinlat0, this.e)) - K, this.cosX0 = Math.cos(this.X0), this.sinX0 = Math.sin(this.X0));
10575
+ this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.lat0 = this.lat0 || 0, this.long0 = this.long0 || 0, this.coslat0 = Math.cos(this.lat0), this.sinlat0 = Math.sin(this.lat0), this.sphere ? this.k0 === 1 && !isNaN(this.lat_ts) && Math.abs(this.coslat0) <= Z && (this.k0 = 0.5 * (1 + qs(this.lat0) * Math.sin(this.lat_ts))) : (Math.abs(this.coslat0) <= Z && (this.lat0 > 0 ? this.con = 1 : this.con = -1), this.cons = Math.sqrt(Math.pow(1 + this.e, 1 + this.e) * Math.pow(1 - this.e, 1 - this.e)), this.k0 === 1 && !isNaN(this.lat_ts) && Math.abs(this.coslat0) <= Z && Math.abs(Math.cos(this.lat_ts)) > Z && (this.k0 = 0.5 * this.cons * jt(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)) / Rt(this.e, this.con * this.lat_ts, this.con * Math.sin(this.lat_ts))), this.ms1 = jt(this.e, this.sinlat0, this.coslat0), this.X0 = 2 * Math.atan(Ka(this.lat0, this.sinlat0, this.e)) - K, this.cosX0 = Math.cos(this.X0), this.sinX0 = Math.sin(this.X0));
10550
10576
  }
10551
10577
  function c1(i) {
10552
10578
  var e = i.x, t = i.y, s = Math.sin(t), n = Math.cos(t), o, a, l, r, c, u, d = se(e - this.long0, this.over);
10553
- return Math.abs(Math.abs(e - this.long0) - Math.PI) <= Z && Math.abs(t + this.lat0) <= Z ? (i.x = NaN, i.y = NaN, i) : this.sphere ? (o = 2 * this.k0 / (1 + this.sinlat0 * s + this.coslat0 * n * Math.cos(d)), i.x = this.a * o * n * Math.sin(d) + this.x0, i.y = this.a * o * (this.coslat0 * s - this.sinlat0 * n * Math.cos(d)) + this.y0, i) : (a = 2 * Math.atan(Ka(t, s, this.e)) - K, r = Math.cos(a), l = Math.sin(a), Math.abs(this.coslat0) <= Z ? (c = kt(this.e, t * this.con, this.con * s), u = 2 * this.a * this.k0 * c / this.cons, i.x = this.x0 + u * Math.sin(e - this.long0), i.y = this.y0 - this.con * u * Math.cos(e - this.long0), i) : (Math.abs(this.sinlat0) < Z ? (o = 2 * this.a * this.k0 / (1 + r * Math.cos(d)), i.y = o * l) : (o = 2 * this.a * this.k0 * this.ms1 / (this.cosX0 * (1 + this.sinX0 * l + this.cosX0 * r * Math.cos(d))), i.y = o * (this.cosX0 * l - this.sinX0 * r * Math.cos(d)) + this.y0), i.x = o * r * Math.sin(d) + this.x0, i));
10579
+ return Math.abs(Math.abs(e - this.long0) - Math.PI) <= Z && Math.abs(t + this.lat0) <= Z ? (i.x = NaN, i.y = NaN, i) : this.sphere ? (o = 2 * this.k0 / (1 + this.sinlat0 * s + this.coslat0 * n * Math.cos(d)), i.x = this.a * o * n * Math.sin(d) + this.x0, i.y = this.a * o * (this.coslat0 * s - this.sinlat0 * n * Math.cos(d)) + this.y0, i) : (a = 2 * Math.atan(Ka(t, s, this.e)) - K, r = Math.cos(a), l = Math.sin(a), Math.abs(this.coslat0) <= Z ? (c = Rt(this.e, t * this.con, this.con * s), u = 2 * this.a * this.k0 * c / this.cons, i.x = this.x0 + u * Math.sin(e - this.long0), i.y = this.y0 - this.con * u * Math.cos(e - this.long0), i) : (Math.abs(this.sinlat0) < Z ? (o = 2 * this.a * this.k0 / (1 + r * Math.cos(d)), i.y = o * l) : (o = 2 * this.a * this.k0 * this.ms1 / (this.cosX0 * (1 + this.sinX0 * l + this.cosX0 * r * Math.cos(d))), i.y = o * (this.cosX0 * l - this.sinX0 * r * Math.cos(d)) + this.y0), i.x = o * r * Math.sin(d) + this.x0, i));
10554
10580
  }
10555
10581
  function u1(i) {
10556
10582
  i.x -= this.x0, i.y -= this.y0;
@@ -10617,12 +10643,12 @@ function y1() {
10617
10643
  else if (h = this.long1, v = this.lat1, g = this.long2, m = this.lat2, Math.abs(v - m) <= zi || (i = Math.abs(v)) <= zi || Math.abs(i - K) <= zi || Math.abs(Math.abs(this.lat0) - K) <= zi || Math.abs(Math.abs(m) - K) <= zi)
10618
10644
  throw new Error();
10619
10645
  var P = 1 - this.es;
10620
- e = Math.sqrt(P), Math.abs(this.lat0) > Z ? (l = Math.sin(this.lat0), t = Math.cos(this.lat0), i = 1 - this.es * l * l, this.B = t * t, this.B = Math.sqrt(1 + this.es * this.B * this.B / P), this.A = this.B * this.k0 * e / i, s = this.B * e / (t * Math.sqrt(i)), n = s * s - 1, n <= 0 ? n = 0 : (n = Math.sqrt(n), this.lat0 < 0 && (n = -n)), this.E = n += s, this.E *= Math.pow(kt(this.e, this.lat0, l), this.B)) : (this.B = 1 / e, this.A = this.k0, this.E = s = n = 1), C || x ? (C ? (d = Math.asin(Math.sin(y) / s), x || (u = y)) : (d = u, y = Math.asin(s * Math.sin(d))), this.lam0 = f - Math.asin(0.5 * (n - 1 / n) * Math.tan(d)) / this.B) : (o = Math.pow(kt(this.e, v, Math.sin(v)), this.B), a = Math.pow(kt(this.e, m, Math.sin(m)), this.B), n = this.E / o, r = (a - o) / (a + o), c = this.E * this.E, c = (c - a * o) / (c + a * o), i = h - g, i < -Math.PI ? g -= Qs : i > Math.PI && (g += Qs), this.lam0 = se(0.5 * (h + g) - Math.atan(c * Math.tan(0.5 * this.B * (h - g)) / r) / this.B, this.over), d = Math.atan(2 * Math.sin(this.B * se(h - this.lam0, this.over)) / (n - 1 / n)), u = y = Math.asin(s * Math.sin(d))), this.singam = Math.sin(d), this.cosgam = Math.cos(d), this.sinrot = Math.sin(u), this.cosrot = Math.cos(u), this.rB = 1 / this.B, this.ArB = this.A * this.rB, this.BrA = 1 / this.ArB, this.no_off ? this.u_0 = 0 : (this.u_0 = Math.abs(this.ArB * Math.atan(Math.sqrt(s * s - 1) / Math.cos(y))), this.lat0 < 0 && (this.u_0 = -this.u_0)), n = 0.5 * d, this.v_pole_n = this.ArB * Math.log(Math.tan(Me - n)), this.v_pole_s = this.ArB * Math.log(Math.tan(Me + n));
10646
+ e = Math.sqrt(P), Math.abs(this.lat0) > Z ? (l = Math.sin(this.lat0), t = Math.cos(this.lat0), i = 1 - this.es * l * l, this.B = t * t, this.B = Math.sqrt(1 + this.es * this.B * this.B / P), this.A = this.B * this.k0 * e / i, s = this.B * e / (t * Math.sqrt(i)), n = s * s - 1, n <= 0 ? n = 0 : (n = Math.sqrt(n), this.lat0 < 0 && (n = -n)), this.E = n += s, this.E *= Math.pow(Rt(this.e, this.lat0, l), this.B)) : (this.B = 1 / e, this.A = this.k0, this.E = s = n = 1), C || x ? (C ? (d = Math.asin(Math.sin(y) / s), x || (u = y)) : (d = u, y = Math.asin(s * Math.sin(d))), this.lam0 = f - Math.asin(0.5 * (n - 1 / n) * Math.tan(d)) / this.B) : (o = Math.pow(Rt(this.e, v, Math.sin(v)), this.B), a = Math.pow(Rt(this.e, m, Math.sin(m)), this.B), n = this.E / o, r = (a - o) / (a + o), c = this.E * this.E, c = (c - a * o) / (c + a * o), i = h - g, i < -Math.PI ? g -= Qs : i > Math.PI && (g += Qs), this.lam0 = se(0.5 * (h + g) - Math.atan(c * Math.tan(0.5 * this.B * (h - g)) / r) / this.B, this.over), d = Math.atan(2 * Math.sin(this.B * se(h - this.lam0, this.over)) / (n - 1 / n)), u = y = Math.asin(s * Math.sin(d))), this.singam = Math.sin(d), this.cosgam = Math.cos(d), this.sinrot = Math.sin(u), this.cosrot = Math.cos(u), this.rB = 1 / this.B, this.ArB = this.A * this.rB, this.BrA = 1 / this.ArB, this.no_off ? this.u_0 = 0 : (this.u_0 = Math.abs(this.ArB * Math.atan(Math.sqrt(s * s - 1) / Math.cos(y))), this.lat0 < 0 && (this.u_0 = -this.u_0)), n = 0.5 * d, this.v_pole_n = this.ArB * Math.log(Math.tan(Me - n)), this.v_pole_s = this.ArB * Math.log(Math.tan(Me + n));
10621
10647
  }
10622
10648
  function C1(i) {
10623
10649
  var e = {}, t, s, n, o, a, l, r, c;
10624
10650
  if (i.x = i.x - this.lam0, Math.abs(Math.abs(i.y) - K) > Z) {
10625
- if (a = this.E / Math.pow(kt(this.e, i.y, Math.sin(i.y)), this.B), l = 1 / a, t = 0.5 * (a - l), s = 0.5 * (a + l), o = Math.sin(this.B * i.x), n = (t * this.singam - o * this.cosgam) / s, Math.abs(Math.abs(n) - 1) < Z)
10651
+ if (a = this.E / Math.pow(Rt(this.e, i.y, Math.sin(i.y)), this.B), l = 1 / a, t = 0.5 * (a - l), s = 0.5 * (a + l), o = Math.sin(this.B * i.x), n = (t * this.singam - o * this.cosgam) / s, Math.abs(Math.abs(n) - 1) < Z)
10626
10652
  throw new Error();
10627
10653
  c = 0.5 * this.ArB * Math.log((1 - n) / (1 + n)), l = Math.cos(this.B * i.x), Math.abs(l) < zi ? r = this.A * i.x : r = this.ArB * Math.atan2(t * this.cosgam + o * this.singam, l);
10628
10654
  } else
@@ -10651,7 +10677,7 @@ function x1() {
10651
10677
  if (this.lat2 || (this.lat2 = this.lat1), this.k0 || (this.k0 = 1), this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, !(Math.abs(this.lat1 + this.lat2) < Z)) {
10652
10678
  var i = this.b / this.a;
10653
10679
  this.e = Math.sqrt(1 - i * i);
10654
- var e = Math.sin(this.lat1), t = Math.cos(this.lat1), s = jt(this.e, e, t), n = kt(this.e, this.lat1, e), o = Math.sin(this.lat2), a = Math.cos(this.lat2), l = jt(this.e, o, a), r = kt(this.e, this.lat2, o), c = Math.abs(Math.abs(this.lat0) - K) < Z ? 0 : kt(this.e, this.lat0, Math.sin(this.lat0));
10680
+ var e = Math.sin(this.lat1), t = Math.cos(this.lat1), s = jt(this.e, e, t), n = Rt(this.e, this.lat1, e), o = Math.sin(this.lat2), a = Math.cos(this.lat2), l = jt(this.e, o, a), r = Rt(this.e, this.lat2, o), c = Math.abs(Math.abs(this.lat0) - K) < Z ? 0 : Rt(this.e, this.lat0, Math.sin(this.lat0));
10655
10681
  Math.abs(this.lat1 - this.lat2) > Z ? this.ns = Math.log(s / l) / Math.log(n / r) : this.ns = e, isNaN(this.ns) && (this.ns = e), this.f0 = s / (this.ns * Math.pow(n, this.ns)), this.rh = this.a * this.f0 * Math.pow(c, this.ns), this.title || (this.title = "Lambert Conformal Conic");
10656
10682
  }
10657
10683
  }
@@ -10660,7 +10686,7 @@ function I1(i) {
10660
10686
  Math.abs(2 * Math.abs(t) - Math.PI) <= Z && (t = qs(t) * (K - 2 * Z));
10661
10687
  var s = Math.abs(Math.abs(t) - K), n, o;
10662
10688
  if (s > Z)
10663
- n = kt(this.e, t, Math.sin(t)), o = this.a * this.f0 * Math.pow(n, this.ns);
10689
+ n = Rt(this.e, t, Math.sin(t)), o = this.a * this.f0 * Math.pow(n, this.ns);
10664
10690
  else {
10665
10691
  if (s = t * this.ns, s <= 0)
10666
10692
  return null;
@@ -11909,7 +11935,7 @@ class hw {
11909
11935
  let t = window?.VectorTileLayer || window?.CesiumVectorTileGL?.VectorTileLayer || this.cesium?.VectorTileLayer;
11910
11936
  if (!t)
11911
11937
  try {
11912
- const n = await import("./index-CippYUXQ.js"), o = n?.VectorTileLayer || n?.CesiumVectorTileGL?.VectorTileLayer || n?.default?.VectorTileLayer || n?.default;
11938
+ const n = await import("./index-bLUs2ltu.js"), o = n?.VectorTileLayer || n?.CesiumVectorTileGL?.VectorTileLayer || n?.default?.VectorTileLayer || n?.default;
11913
11939
  if (o)
11914
11940
  window.VectorTileLayer = o, n?.CesiumVectorTileGL && (window.CesiumVectorTileGL = n.CesiumVectorTileGL), t = o;
11915
11941
  else {
@@ -11997,13 +12023,13 @@ class hw {
11997
12023
  let t = window?.VectorTileLayer || window?.CesiumVectorTileGL?.VectorTileLayer || this.cesium?.VectorTileLayer;
11998
12024
  if (!t)
11999
12025
  try {
12000
- const r = await import("./index-CippYUXQ.js"), c = r?.VectorTileLayer || r?.CesiumVectorTileGL?.VectorTileLayer || r?.default?.VectorTileLayer || r?.default;
12026
+ const r = await import("./index-bLUs2ltu.js"), c = r?.VectorTileLayer || r?.CesiumVectorTileGL?.VectorTileLayer || r?.default?.VectorTileLayer || r?.default;
12001
12027
  c && (window.VectorTileLayer = c, r?.CesiumVectorTileGL && (window.CesiumVectorTileGL = r.CesiumVectorTileGL), t = c);
12002
12028
  } catch {
12003
12029
  }
12004
12030
  if (!(window?.CesiumVectorTileGL?.VectorTileset || window?.VectorTileset))
12005
12031
  try {
12006
- const r = await import("./index-CippYUXQ.js"), c = r?.VectorTileset || r?.CesiumVectorTileGL?.VectorTileset || r?.default?.VectorTileset;
12032
+ const r = await import("./index-bLUs2ltu.js"), c = r?.VectorTileset || r?.CesiumVectorTileGL?.VectorTileset || r?.default?.VectorTileset;
12007
12033
  c && (window.VectorTileset = c);
12008
12034
  } catch {
12009
12035
  }
@@ -12749,7 +12775,7 @@ class hw {
12749
12775
  };
12750
12776
  for (const o of e) {
12751
12777
  if (this.gisCadModelsList.find((h) => h.modelId === o.modelId)) continue;
12752
- /^https?:\/\//i.test(o.outPutPath) || (o.outPutPath = `${window.location.origin}${o.outPutPath}`);
12778
+ /^(https?|atom):\/\//i.test(o.outPutPath) || (o.outPutPath = `${window.location.origin}${o.outPutPath}`);
12753
12779
  const r = `${o.outPutPath.endsWith("/") ? o.outPutPath : `${o.outPutPath}/`}${o.dbName}/region.zip`, c = await this.loadModelFile(r);
12754
12780
  c && typeof c == "object" && (["longitude", "latitude", "scale", "totalRotation", "height"].some((v) => c[v] !== void 0) && (o.formData = {
12755
12781
  ...o.formData || {},
@@ -14718,7 +14744,7 @@ function Yl(i, e) {
14718
14744
  i || yh(e);
14719
14745
  }
14720
14746
  const Ce = { fail: yh, argument: Yl, assert: Yl }, zl = 32768, jl = 2147483648, as = {}, ie = {}, me = {};
14721
- function Ft(i) {
14747
+ function Ot(i) {
14722
14748
  return function() {
14723
14749
  return i;
14724
14750
  };
@@ -14726,11 +14752,11 @@ function Ft(i) {
14726
14752
  ie.BYTE = function(i) {
14727
14753
  return Ce.argument(i >= 0 && i <= 255, "Byte value should be between 0 and 255."), [i];
14728
14754
  };
14729
- me.BYTE = Ft(1);
14755
+ me.BYTE = Ot(1);
14730
14756
  ie.CHAR = function(i) {
14731
14757
  return [i.charCodeAt(0)];
14732
14758
  };
14733
- me.CHAR = Ft(1);
14759
+ me.CHAR = Ot(1);
14734
14760
  ie.CHARARRAY = function(i) {
14735
14761
  const e = [];
14736
14762
  for (let t = 0; t < i.length; t += 1)
@@ -14743,23 +14769,23 @@ me.CHARARRAY = function(i) {
14743
14769
  ie.USHORT = function(i) {
14744
14770
  return [i >> 8 & 255, i & 255];
14745
14771
  };
14746
- me.USHORT = Ft(2);
14772
+ me.USHORT = Ot(2);
14747
14773
  ie.SHORT = function(i) {
14748
14774
  return i >= zl && (i = -(2 * zl - i)), [i >> 8 & 255, i & 255];
14749
14775
  };
14750
- me.SHORT = Ft(2);
14776
+ me.SHORT = Ot(2);
14751
14777
  ie.UINT24 = function(i) {
14752
14778
  return [i >> 16 & 255, i >> 8 & 255, i & 255];
14753
14779
  };
14754
- me.UINT24 = Ft(3);
14780
+ me.UINT24 = Ot(3);
14755
14781
  ie.ULONG = function(i) {
14756
14782
  return [i >> 24 & 255, i >> 16 & 255, i >> 8 & 255, i & 255];
14757
14783
  };
14758
- me.ULONG = Ft(4);
14784
+ me.ULONG = Ot(4);
14759
14785
  ie.LONG = function(i) {
14760
14786
  return i >= jl && (i = -(2 * jl - i)), [i >> 24 & 255, i >> 16 & 255, i >> 8 & 255, i & 255];
14761
14787
  };
14762
- me.LONG = Ft(4);
14788
+ me.LONG = Ot(4);
14763
14789
  ie.FIXED = ie.ULONG;
14764
14790
  me.FIXED = me.ULONG;
14765
14791
  ie.FWORD = ie.SHORT;
@@ -14769,7 +14795,7 @@ me.UFWORD = me.USHORT;
14769
14795
  ie.LONGDATETIME = function(i) {
14770
14796
  return [0, 0, 0, 0, i >> 24 & 255, i >> 16 & 255, i >> 8 & 255, i & 255];
14771
14797
  };
14772
- me.LONGDATETIME = Ft(8);
14798
+ me.LONGDATETIME = Ot(8);
14773
14799
  ie.TAG = function(i) {
14774
14800
  return Ce.argument(i.length === 4, "Tag should be exactly 4 ASCII characters."), [
14775
14801
  i.charCodeAt(0),
@@ -14778,7 +14804,7 @@ ie.TAG = function(i) {
14778
14804
  i.charCodeAt(3)
14779
14805
  ];
14780
14806
  };
14781
- me.TAG = Ft(4);
14807
+ me.TAG = Ot(4);
14782
14808
  ie.Card8 = ie.BYTE;
14783
14809
  me.Card8 = me.BYTE;
14784
14810
  ie.Card16 = ie.USHORT;
@@ -14796,11 +14822,11 @@ me.NUMBER = function(i) {
14796
14822
  ie.NUMBER16 = function(i) {
14797
14823
  return [28, i >> 8 & 255, i & 255];
14798
14824
  };
14799
- me.NUMBER16 = Ft(3);
14825
+ me.NUMBER16 = Ot(3);
14800
14826
  ie.NUMBER32 = function(i) {
14801
14827
  return [29, i >> 24 & 255, i >> 16 & 255, i >> 8 & 255, i & 255];
14802
14828
  };
14803
- me.NUMBER32 = Ft(5);
14829
+ me.NUMBER32 = Ot(5);
14804
14830
  ie.REAL = function(i) {
14805
14831
  let e = i.toString();
14806
14832
  const t = /\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(e);
@@ -18975,8 +19001,8 @@ function TE() {
18975
19001
  { name: "maxMemType1", type: "ULONG", value: 0 }
18976
19002
  ]);
18977
19003
  }
18978
- const Yh = { parse: BE, make: TE }, Rt = new Array(9);
18979
- Rt[1] = function() {
19004
+ const Yh = { parse: BE, make: TE }, Lt = new Array(9);
19005
+ Lt[1] = function() {
18980
19006
  const e = this.offset + this.relativeOffset, t = this.parseUShort();
18981
19007
  if (t === 1)
18982
19008
  return {
@@ -18992,7 +19018,7 @@ Rt[1] = function() {
18992
19018
  };
18993
19019
  Ce.assert(!1, "0x" + e.toString(16) + ": lookup type 1 format must be 1 or 2.");
18994
19020
  };
18995
- Rt[2] = function() {
19021
+ Lt[2] = function() {
18996
19022
  const e = this.parseUShort();
18997
19023
  return Ce.argument(e === 1, "GSUB Multiple Substitution Subtable identifier-format must be 1"), {
18998
19024
  substFormat: e,
@@ -19000,7 +19026,7 @@ Rt[2] = function() {
19000
19026
  sequences: this.parseListOfLists()
19001
19027
  };
19002
19028
  };
19003
- Rt[3] = function() {
19029
+ Lt[3] = function() {
19004
19030
  const e = this.parseUShort();
19005
19031
  return Ce.argument(e === 1, "GSUB Alternate Substitution Subtable identifier-format must be 1"), {
19006
19032
  substFormat: e,
@@ -19008,7 +19034,7 @@ Rt[3] = function() {
19008
19034
  alternateSets: this.parseListOfLists()
19009
19035
  };
19010
19036
  };
19011
- Rt[4] = function() {
19037
+ Lt[4] = function() {
19012
19038
  const e = this.parseUShort();
19013
19039
  return Ce.argument(e === 1, "GSUB ligature table identifier-format must be 1"), {
19014
19040
  substFormat: e,
@@ -19025,7 +19051,7 @@ const ss = {
19025
19051
  sequenceIndex: z.uShort,
19026
19052
  lookupListIndex: z.uShort
19027
19053
  };
19028
- Rt[5] = function() {
19054
+ Lt[5] = function() {
19029
19055
  const e = this.offset + this.relativeOffset, t = this.parseUShort();
19030
19056
  if (t === 1)
19031
19057
  return {
@@ -19062,7 +19088,7 @@ Rt[5] = function() {
19062
19088
  }
19063
19089
  Ce.assert(!1, "0x" + e.toString(16) + ": lookup type 5 format must be 1, 2 or 3.");
19064
19090
  };
19065
- Rt[6] = function() {
19091
+ Lt[6] = function() {
19066
19092
  const e = this.offset + this.relativeOffset, t = this.parseUShort();
19067
19093
  if (t === 1)
19068
19094
  return {
@@ -19103,17 +19129,17 @@ Rt[6] = function() {
19103
19129
  };
19104
19130
  Ce.assert(!1, "0x" + e.toString(16) + ": lookup type 6 format must be 1, 2 or 3.");
19105
19131
  };
19106
- Rt[7] = function() {
19132
+ Lt[7] = function() {
19107
19133
  const e = this.parseUShort();
19108
19134
  Ce.argument(e === 1, "GSUB Extension Substitution subtable identifier-format must be 1");
19109
19135
  const t = this.parseUShort(), s = new z(this.data, this.offset + this.parseULong());
19110
19136
  return {
19111
19137
  substFormat: 1,
19112
19138
  lookupType: t,
19113
- extension: Rt[t].call(s)
19139
+ extension: Lt[t].call(s)
19114
19140
  };
19115
19141
  };
19116
- Rt[8] = function() {
19142
+ Lt[8] = function() {
19117
19143
  const e = this.parseUShort();
19118
19144
  return Ce.argument(e === 1, "GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1"), {
19119
19145
  substFormat: e,
@@ -19130,12 +19156,12 @@ function PE(i, e) {
19130
19156
  version: s,
19131
19157
  scripts: t.parseScriptList(),
19132
19158
  features: t.parseFeatureList(),
19133
- lookups: t.parseLookupList(Rt)
19159
+ lookups: t.parseLookupList(Lt)
19134
19160
  } : {
19135
19161
  version: s,
19136
19162
  scripts: t.parseScriptList(),
19137
19163
  features: t.parseFeatureList(),
19138
- lookups: t.parseLookupList(Rt),
19164
+ lookups: t.parseLookupList(Lt),
19139
19165
  variations: t.parseFeatureVariationsList()
19140
19166
  };
19141
19167
  }
@@ -19669,7 +19695,7 @@ sn.prototype.getKerningTables = function(i, e) {
19669
19695
  if (this.font.tables.gpos)
19670
19696
  return this.getLookupTables(i, e, "kern", 2);
19671
19697
  };
19672
- function Ot(i) {
19698
+ function Gt(i) {
19673
19699
  tn.call(this, i, "gsub");
19674
19700
  }
19675
19701
  function OE(i, e) {
@@ -19691,8 +19717,8 @@ function Vh(i, e, t) {
19691
19717
  if (t)
19692
19718
  return s.push(t), t;
19693
19719
  }
19694
- Ot.prototype = tn.prototype;
19695
- Ot.prototype.createDefaultTable = function() {
19720
+ Gt.prototype = tn.prototype;
19721
+ Gt.prototype.createDefaultTable = function() {
19696
19722
  return {
19697
19723
  version: 1,
19698
19724
  scripts: [{
@@ -19706,7 +19732,7 @@ Ot.prototype.createDefaultTable = function() {
19706
19732
  lookups: []
19707
19733
  };
19708
19734
  };
19709
- Ot.prototype.getSingle = function(i, e, t) {
19735
+ Gt.prototype.getSingle = function(i, e, t) {
19710
19736
  const s = [], n = this.getLookupTables(e, t, i, 1);
19711
19737
  for (let o = 0; o < n.length; o++) {
19712
19738
  const a = n[o].subtables;
@@ -19728,7 +19754,7 @@ Ot.prototype.getSingle = function(i, e, t) {
19728
19754
  }
19729
19755
  return s;
19730
19756
  };
19731
- Ot.prototype.getAlternates = function(i, e, t) {
19757
+ Gt.prototype.getAlternates = function(i, e, t) {
19732
19758
  const s = [], n = this.getLookupTables(e, t, i, 3);
19733
19759
  for (let o = 0; o < n.length; o++) {
19734
19760
  const a = n[o].subtables;
@@ -19740,7 +19766,7 @@ Ot.prototype.getAlternates = function(i, e, t) {
19740
19766
  }
19741
19767
  return s;
19742
19768
  };
19743
- Ot.prototype.getLigatures = function(i, e, t) {
19769
+ Gt.prototype.getLigatures = function(i, e, t) {
19744
19770
  const s = [], n = this.getLookupTables(e, t, i, 4);
19745
19771
  for (let o = 0; o < n.length; o++) {
19746
19772
  const a = n[o].subtables;
@@ -19760,7 +19786,7 @@ Ot.prototype.getLigatures = function(i, e, t) {
19760
19786
  }
19761
19787
  return s;
19762
19788
  };
19763
- Ot.prototype.addSingle = function(i, e, t, s) {
19789
+ Gt.prototype.addSingle = function(i, e, t, s) {
19764
19790
  const n = this.getLookupTables(t, s, i, 1, !0)[0], o = Vh(n, 2, {
19765
19791
  // lookup type 1 subtable, format 2, coverage format 1
19766
19792
  substFormat: 2,
@@ -19772,7 +19798,7 @@ Ot.prototype.addSingle = function(i, e, t, s) {
19772
19798
  let l = this.binSearch(o.coverage.glyphs, a);
19773
19799
  l < 0 && (l = -1 - l, o.coverage.glyphs.splice(l, 0, a), o.substitute.splice(l, 0, 0)), o.substitute[l] = e.by;
19774
19800
  };
19775
- Ot.prototype.addAlternate = function(i, e, t, s) {
19801
+ Gt.prototype.addAlternate = function(i, e, t, s) {
19776
19802
  const n = this.getLookupTables(t, s, i, 3, !0)[0], o = Vh(n, 1, {
19777
19803
  // lookup type 3 subtable, format 1, coverage format 1
19778
19804
  substFormat: 1,
@@ -19784,7 +19810,7 @@ Ot.prototype.addAlternate = function(i, e, t, s) {
19784
19810
  let l = this.binSearch(o.coverage.glyphs, a);
19785
19811
  l < 0 && (l = -1 - l, o.coverage.glyphs.splice(l, 0, a), o.alternateSets.splice(l, 0, 0)), o.alternateSets[l] = e.by;
19786
19812
  };
19787
- Ot.prototype.addLigature = function(i, e, t, s) {
19813
+ Gt.prototype.addLigature = function(i, e, t, s) {
19788
19814
  const n = this.getLookupTables(t, s, i, 4, !0)[0];
19789
19815
  let o = n.subtables[0];
19790
19816
  o || (o = {
@@ -19807,7 +19833,7 @@ Ot.prototype.addLigature = function(i, e, t, s) {
19807
19833
  } else
19808
19834
  c = -1 - c, o.coverage.glyphs.splice(c, 0, a), o.ligatureSets.splice(c, 0, [r]);
19809
19835
  };
19810
- Ot.prototype.getFeature = function(i, e, t) {
19836
+ Gt.prototype.getFeature = function(i, e, t) {
19811
19837
  if (/ss\d\d/.test(i))
19812
19838
  return this.getSingle(i, e, t);
19813
19839
  switch (i) {
@@ -19820,7 +19846,7 @@ Ot.prototype.getFeature = function(i, e, t) {
19820
19846
  return this.getLigatures(i, e, t);
19821
19847
  }
19822
19848
  };
19823
- Ot.prototype.add = function(i, e, t, s) {
19849
+ Gt.prototype.add = function(i, e, t, s) {
19824
19850
  if (/ss\d\d/.test(i))
19825
19851
  return this.addSingle(i, e, t, s);
19826
19852
  switch (i) {
@@ -21555,7 +21581,7 @@ function ke(i) {
21555
21581
  usWeightClass: i.weightClass || this.usWeightClasses.MEDIUM,
21556
21582
  usWidthClass: i.widthClass || this.usWidthClasses.MEDIUM,
21557
21583
  fsSelection: i.fsSelection || this.fsSelectionValues.REGULAR
21558
- } }), this.supported = !0, this.glyphs = new is.GlyphSet(this, i.glyphs || []), this.encoding = new wh(this), this.position = new sn(this), this.substitution = new Ot(this), this.tables = this.tables || {}, Object.defineProperty(this, "hinting", {
21584
+ } }), this.supported = !0, this.glyphs = new is.GlyphSet(this, i.glyphs || []), this.encoding = new wh(this), this.position = new sn(this), this.substitution = new Gt(this), this.tables = this.tables || {}, Object.defineProperty(this, "hinting", {
21559
21585
  get: function() {
21560
21586
  if (this._hinting) return this._hinting;
21561
21587
  if (this.outlinesFormat === "truetype")
@@ -21840,8 +21866,8 @@ function S2(i, e, t) {
21840
21866
  d.push(x2(i, f + h * c, u, t));
21841
21867
  return { axes: u, instances: d };
21842
21868
  }
21843
- const M2 = { make: I2, parse: S2 }, Lt = new Array(10);
21844
- Lt[1] = function() {
21869
+ const M2 = { make: I2, parse: S2 }, Ft = new Array(10);
21870
+ Ft[1] = function() {
21845
21871
  const e = this.offset + this.relativeOffset, t = this.parseUShort();
21846
21872
  if (t === 1)
21847
21873
  return {
@@ -21857,7 +21883,7 @@ Lt[1] = function() {
21857
21883
  };
21858
21884
  Ce.assert(!1, "0x" + e.toString(16) + ": GPOS lookup type 1 format must be 1 or 2.");
21859
21885
  };
21860
- Lt[2] = function() {
21886
+ Ft[2] = function() {
21861
21887
  const e = this.offset + this.relativeOffset, t = this.parseUShort();
21862
21888
  Ce.assert(t === 1 || t === 2, "0x" + e.toString(16) + ": GPOS lookup type 2 format must be 1 or 2.");
21863
21889
  const s = this.parsePointer(z.coverage), n = this.parseUShort(), o = this.parseUShort();
@@ -21897,25 +21923,25 @@ Lt[2] = function() {
21897
21923
  };
21898
21924
  }
21899
21925
  };
21900
- Lt[3] = function() {
21926
+ Ft[3] = function() {
21901
21927
  return { error: "GPOS Lookup 3 not supported" };
21902
21928
  };
21903
- Lt[4] = function() {
21929
+ Ft[4] = function() {
21904
21930
  return { error: "GPOS Lookup 4 not supported" };
21905
21931
  };
21906
- Lt[5] = function() {
21932
+ Ft[5] = function() {
21907
21933
  return { error: "GPOS Lookup 5 not supported" };
21908
21934
  };
21909
- Lt[6] = function() {
21935
+ Ft[6] = function() {
21910
21936
  return { error: "GPOS Lookup 6 not supported" };
21911
21937
  };
21912
- Lt[7] = function() {
21938
+ Ft[7] = function() {
21913
21939
  return { error: "GPOS Lookup 7 not supported" };
21914
21940
  };
21915
- Lt[8] = function() {
21941
+ Ft[8] = function() {
21916
21942
  return { error: "GPOS Lookup 8 not supported" };
21917
21943
  };
21918
- Lt[9] = function() {
21944
+ Ft[9] = function() {
21919
21945
  return { error: "GPOS Lookup 9 not supported" };
21920
21946
  };
21921
21947
  function B2(i, e) {
@@ -21925,12 +21951,12 @@ function B2(i, e) {
21925
21951
  version: s,
21926
21952
  scripts: t.parseScriptList(),
21927
21953
  features: t.parseFeatureList(),
21928
- lookups: t.parseLookupList(Lt)
21954
+ lookups: t.parseLookupList(Ft)
21929
21955
  } : {
21930
21956
  version: s,
21931
21957
  scripts: t.parseScriptList(),
21932
21958
  features: t.parseFeatureList(),
21933
- lookups: t.parseLookupList(Lt),
21959
+ lookups: t.parseLookupList(Ft),
21934
21960
  variations: t.parseFeatureVariationsList()
21935
21961
  };
21936
21962
  }
@@ -29369,7 +29395,7 @@ function cd() {
29369
29395
  })(Tn)), Tn.exports;
29370
29396
  }
29371
29397
  var EM = cd();
29372
- const Dt = /* @__PURE__ */ ds(EM);
29398
+ const _t = /* @__PURE__ */ ds(EM);
29373
29399
  var Pn = { exports: {} }, xM = Pn.exports, Bc;
29374
29400
  function IM() {
29375
29401
  return Bc || (Bc = 1, (function(i, e) {
@@ -29685,7 +29711,7 @@ const QM = /* @__PURE__ */ ds(NM), HM = { class: "setting-panel" }, YM = { class
29685
29711
  },
29686
29712
  emits: ["update:visible", "update:open", "close"],
29687
29713
  setup(i, { emit: e }) {
29688
- Dt.locale("zh-cn"), Dt.extend(TM), Dt.extend(kM), Dt.extend(OM), Dt.extend(QM);
29714
+ _t.locale("zh-cn"), _t.extend(TM), _t.extend(kM), _t.extend(OM), _t.extend(QM);
29689
29715
  const t = Lc, s = Br.Group, n = Br, o = Pa, a = Xi, l = ns, r = ns.Option, c = Hd, u = i, d = e, f = Ne("leitingMethods"), h = fe({
29690
29716
  get: () => u.open !== void 0 ? u.open : u.visible,
29691
29717
  set: (w) => {
@@ -29720,7 +29746,7 @@ const QM = /* @__PURE__ */ ds(NM), HM = { class: "setting-panel" }, YM = { class
29720
29746
  // 默认较亮,实现"阴影处变亮"的效果
29721
29747
  environmentMap: !1,
29722
29748
  ambientOcclusion: !1,
29723
- time: Dt("2025-06-22 10:00"),
29749
+ time: _t("2025-06-22 10:00"),
29724
29750
  // 默认固定时间
29725
29751
  brightness: 1,
29726
29752
  contrast: 1,
@@ -29731,7 +29757,7 @@ const QM = /* @__PURE__ */ ds(NM), HM = { class: "setting-panel" }, YM = { class
29731
29757
  habit: 0
29732
29758
  // 0: default, 1: custom
29733
29759
  }), x = (w) => {
29734
- w && (w.globe !== void 0 && (v.globe = w.globe), w.terrain !== void 0 && (v.terrain = w.terrain), w.depthTest !== void 0 && (v.depthTest = w.depthTest), w.mapProvider !== void 0 && (m.provider = w.mapProvider), w.tiandituLayerType !== void 0 && (m.tianditu.layerType = w.tiandituLayerType), w.tiandituShowLabel !== void 0 && (m.tianditu.showLabel = w.tiandituShowLabel), w.arcgisUrl !== void 0 && (m.arcgis.url = w.arcgisUrl), w.shadows !== void 0 && (y.shadows = w.shadows), w.shadowDarkness !== void 0 && (y.shadowDarkness = w.shadowDarkness), w.environmentMap !== void 0 && (y.environmentMap = w.environmentMap), w.ambientOcclusion !== void 0 && (y.ambientOcclusion = w.ambientOcclusion), w.time !== void 0 && (typeof w.time == "number" ? y.time = Dt().startOf("day").add(w.time, "hour") : y.time = Dt(w.time)), w.brightness !== void 0 && (y.brightness = w.brightness), w.contrast !== void 0 && (y.contrast = w.contrast), w.saturation !== void 0 && (y.saturation = w.saturation), w.backgroundColor !== void 0 && (y.backgroundColor = w.backgroundColor), w.collision !== void 0 && (C.collision = w.collision), w.mouseHabit !== void 0 && (C.habit = w.mouseHabit));
29760
+ w && (w.globe !== void 0 && (v.globe = w.globe), w.terrain !== void 0 && (v.terrain = w.terrain), w.depthTest !== void 0 && (v.depthTest = w.depthTest), w.mapProvider !== void 0 && (m.provider = w.mapProvider), w.tiandituLayerType !== void 0 && (m.tianditu.layerType = w.tiandituLayerType), w.tiandituShowLabel !== void 0 && (m.tianditu.showLabel = w.tiandituShowLabel), w.arcgisUrl !== void 0 && (m.arcgis.url = w.arcgisUrl), w.shadows !== void 0 && (y.shadows = w.shadows), w.shadowDarkness !== void 0 && (y.shadowDarkness = w.shadowDarkness), w.environmentMap !== void 0 && (y.environmentMap = w.environmentMap), w.ambientOcclusion !== void 0 && (y.ambientOcclusion = w.ambientOcclusion), w.time !== void 0 && (typeof w.time == "number" ? y.time = _t().startOf("day").add(w.time, "hour") : y.time = _t(w.time)), w.brightness !== void 0 && (y.brightness = w.brightness), w.contrast !== void 0 && (y.contrast = w.contrast), w.saturation !== void 0 && (y.saturation = w.saturation), w.backgroundColor !== void 0 && (y.backgroundColor = w.backgroundColor), w.collision !== void 0 && (C.collision = w.collision), w.mouseHabit !== void 0 && (C.habit = w.mouseHabit));
29735
29761
  };
29736
29762
  te(() => u.initialConfig, (w) => {
29737
29763
  x(w);
@@ -29773,7 +29799,7 @@ const QM = /* @__PURE__ */ ds(NM), HM = { class: "setting-panel" }, YM = { class
29773
29799
  shadowDarkness: y.shadowDarkness,
29774
29800
  environmentMap: y.environmentMap,
29775
29801
  ambientOcclusion: y.ambientOcclusion,
29776
- time: Dt.isDayjs(y.time) ? y.time.format("YYYY-MM-DD HH:mm") : y.time,
29802
+ time: _t.isDayjs(y.time) ? y.time.format("YYYY-MM-DD HH:mm") : y.time,
29777
29803
  brightness: y.brightness,
29778
29804
  contrast: y.contrast,
29779
29805
  saturation: y.saturation,
@@ -29784,7 +29810,7 @@ const QM = /* @__PURE__ */ ds(NM), HM = { class: "setting-panel" }, YM = { class
29784
29810
  }), w.setConfigure = (b) => {
29785
29811
  x(b);
29786
29812
  }, w.setBackgroundColor && y.backgroundColor && w.setBackgroundColor(y.backgroundColor), w.setGlobeEnvironmentVisible && w.setGlobeEnvironmentVisible(v.globe), w.setShadowsEnable && w.setShadowsEnable(y.shadows), w.setShadowDarkness && w.setShadowDarkness(y.shadowDarkness), w.setEnvironmentMapEnable && w.setEnvironmentMapEnable(y.environmentMap), w.setAmbientOcclusion && w.setAmbientOcclusion(y.ambientOcclusion), w.setTime) {
29787
- const b = Dt.isDayjs(y.time) ? y.time.toDate() : /* @__PURE__ */ new Date();
29813
+ const b = _t.isDayjs(y.time) ? y.time.toDate() : /* @__PURE__ */ new Date();
29788
29814
  w.setTime(b);
29789
29815
  }
29790
29816
  w.setModelBrightness && w.setModelBrightness(y.brightness), w.setCollisionDetection && w.setCollisionDetection(C.collision), w.setMouseHabit && w.setMouseHabit(C.habit), w.changeBaseMap && m.baseMap && w.changeBaseMap(m.baseMap, {
@@ -29807,7 +29833,7 @@ const QM = /* @__PURE__ */ ds(NM), HM = { class: "setting-panel" }, YM = { class
29807
29833
  te(() => v.globe, (w) => f.value?.setGlobeEnvironmentVisible?.(w)), te(() => v.terrain, (w) => f.value?.setTerrainEnable?.(w)), te(() => m.baseMap, (w) => {
29808
29834
  f.value?.changeBaseMap?.(w, { token: u.tiandituToken });
29809
29835
  }), te(() => y.shadows, (w) => f.value?.setShadowsEnable?.(w)), te(() => y.shadowDarkness, (w) => f.value?.setShadowDarkness?.(w)), te(() => y.environmentMap, (w) => f.value?.setEnvironmentMapEnable?.(w)), te(() => y.ambientOcclusion, (w) => f.value?.setAmbientOcclusion?.(w)), te(() => y.time, (w) => {
29810
- const b = Dt.isDayjs(w) ? w.toDate() : /* @__PURE__ */ new Date();
29836
+ const b = _t.isDayjs(w) ? w.toDate() : /* @__PURE__ */ new Date();
29811
29837
  f.value?.setTime?.(b);
29812
29838
  }), te(() => [y.brightness, y.contrast, y.saturation], ([w, b, I]) => {
29813
29839
  const k = f.value;
@@ -34266,7 +34292,7 @@ const x3 = ["onClick", "onTouchend"], I3 = { class: "menu-label" }, S3 = {
34266
34292
  mouseHabit: bd,
34267
34293
  heightBasedZoom: wd,
34268
34294
  mode: cr,
34269
- ...Gt
34295
+ ...Ut
34270
34296
  } = ae || {}, Ed = d.showMenu !== void 0 ? d.showMenu : ft !== void 0 ? ft : !0;
34271
34297
  G.value = Ed;
34272
34298
  const at = (de, je, Pt) => de !== void 0 ? de : je !== void 0 ? je : Pt, ur = at(d.globe, Ai, !1), hr = at(d.terrain, Zt, !1), dr = at(d.depthTest, po, !1), fr = at(d.mapProvider, ud, "tianditu"), gr = at(d.tiandituLayerType, hd, "img_w"), pr = at(d.tiandituShowLabel, dd, !1), mr = at(d.arcgisUrl, fd, "https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"), Ar = at(d.shadows, gd, !1), vr = at(d.environmentMap, pd, !1), yr = at(d.ambientOcclusion, md, !1), Cr = at(d.time, Ad, void 0), br = at(d.brightness, vd, 1), ln = d.mode || cr || "3d";
@@ -34301,7 +34327,7 @@ const x3 = ["onClick", "onTouchend"], I3 = { class: "menu-label" }, S3 = {
34301
34327
  onLoadingStatus: (de) => {
34302
34328
  de ? be.loading(de, "", n.value) : be.close();
34303
34329
  },
34304
- ...Gt,
34330
+ ...Ut,
34305
34331
  tilesLoad3dTiles: async (de) => {
34306
34332
  let je = de.leiting?.tree;
34307
34333
  const Pt = de.leiting?.model?.modelId;
@@ -34319,10 +34345,10 @@ const x3 = ["onClick", "onTouchend"], I3 = { class: "menu-label" }, S3 = {
34319
34345
  brightness: mo,
34320
34346
  contrast: Ao,
34321
34347
  saturation: Vt
34322
- }), Gt.tilesLoad3dTiles?.(de);
34348
+ }), Ut.tilesLoad3dTiles?.(de);
34323
34349
  },
34324
34350
  mountAll3Dtiles: (de) => {
34325
- d.mountAll3Dtiles && d.mountAll3Dtiles(de), Gt.mountAll3Dtiles?.(de);
34351
+ d.mountAll3Dtiles && d.mountAll3Dtiles(de), Ut.mountAll3Dtiles?.(de);
34326
34352
  },
34327
34353
  updateModels: (de) => {
34328
34354
  if (Array.isArray(de))
@@ -34338,27 +34364,27 @@ const x3 = ["onClick", "onTouchend"], I3 = { class: "menu-label" }, S3 = {
34338
34364
  const je = d.brightness !== void 0 ? d.brightness : r.value.brightness;
34339
34365
  je !== void 0 && fs.methods.setModelBrightness(je);
34340
34366
  }
34341
- d.mountAllCad && d.mountAllCad(de), Gt.mountAllCad?.(de);
34367
+ d.mountAllCad && d.mountAllCad(de), Ut.mountAllCad?.(de);
34342
34368
  },
34343
34369
  saveRegion: (de) => {
34344
- d.saveRegion && d.saveRegion(de), Gt.saveRegion?.(de);
34370
+ d.saveRegion && d.saveRegion(de), Ut.saveRegion?.(de);
34345
34371
  },
34346
34372
  saveCadRegion: (de) => {
34347
- d.saveCadRegion && d.saveCadRegion(de), Gt.saveCadRegion?.(de);
34373
+ d.saveCadRegion && d.saveCadRegion(de), Ut.saveCadRegion?.(de);
34348
34374
  },
34349
34375
  saveCadCalibration: (de) => {
34350
- d.saveCadCalibration && d.saveCadCalibration(de), Gt.saveCadCalibration?.(de);
34376
+ d.saveCadCalibration && d.saveCadCalibration(de), Ut.saveCadCalibration?.(de);
34351
34377
  },
34352
34378
  selectionChange: (de) => {
34353
- d.selectionChange && d.selectionChange(de), Gt.selectionChange?.(de);
34379
+ d.selectionChange && d.selectionChange(de), Ut.selectionChange?.(de);
34354
34380
  },
34355
34381
  onSearchComponent: (de) => {
34356
- d.searchComponent && d.searchComponent(de), Gt.searchComponent?.(de);
34382
+ d.searchComponent && d.searchComponent(de), Ut.searchComponent?.(de);
34357
34383
  }
34358
34384
  },
34359
34385
  viewerOptions: d.viewerOptions,
34360
34386
  options: {
34361
- ...Gt,
34387
+ ...Ut,
34362
34388
  mode: ln,
34363
34389
  playerUrl: d.playerUrl,
34364
34390
  playerModelName: d.playerModelName,