iflow-engine-base 3.9.20 → 3.9.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,46 +1,6 @@
1
- import { g as Ob, c as $L, E as lQ } from "./engine-2d-mQsokiAx.js";
1
+ import { g as Ob, c as $L, E as lQ } from "./engine-2d-DAiE1uAy.js";
2
2
  import { aX as Si, aY as uQ } from "./three-vendor-Dbcwwhki.js";
3
- import { l as hQ, L as dQ } from "./sdk-runtime-DLvF5IZ2.js";
4
- class fQ {
5
- listeners = /* @__PURE__ */ new Map();
6
- /**
7
- * 订阅指定事件。
8
- */
9
- on(t, n) {
10
- const i = String(t);
11
- this.listeners.has(i) || this.listeners.set(i, []), this.listeners.get(i).push(n);
12
- }
13
- /**
14
- * 取消订阅指定事件。
15
- */
16
- off(t, n) {
17
- const i = String(t), o = this.listeners.get(i);
18
- if (!o)
19
- return;
20
- const r = o.indexOf(n);
21
- r !== -1 && o.splice(r, 1), o.length === 0 && this.listeners.delete(i);
22
- }
23
- /**
24
- * 触发指定事件。
25
- * 使用数组副本,避免回调执行过程中修改订阅列表导致迭代异常。
26
- */
27
- trigger(t, n) {
28
- const i = String(t), o = this.listeners.get(i);
29
- if (!(!o || o.length === 0))
30
- for (const r of [...o])
31
- try {
32
- r(n);
33
- } catch (s) {
34
- console.error(`EventModuleGIS: event handler error for "${i}"`, s);
35
- }
36
- }
37
- /**
38
- * 清空所有事件订阅。
39
- */
40
- dispose() {
41
- this.listeners.clear();
42
- }
43
- }
3
+ import { l as hQ, L as dQ, r as fQ } from "./sdk-runtime-cY1Wn7o-.js";
44
4
  function l(e) {
45
5
  return e != null;
46
6
  }
@@ -177597,7 +177557,47 @@ ti.prototype.zoomTo = function(e, t) {
177597
177557
  ti.prototype.flyTo = function(e, t) {
177598
177558
  return this._cesiumWidget.flyTo(e, t);
177599
177559
  };
177600
- const J4 = "https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}", Q4 = 18, sZe = "/node_modules/cesium/Build/Cesium/", Sh = {
177560
+ class sZe {
177561
+ listeners = /* @__PURE__ */ new Map();
177562
+ /**
177563
+ * 订阅指定事件。
177564
+ */
177565
+ on(t, n) {
177566
+ const i = String(t);
177567
+ this.listeners.has(i) || this.listeners.set(i, []), this.listeners.get(i).push(n);
177568
+ }
177569
+ /**
177570
+ * 取消订阅指定事件。
177571
+ */
177572
+ off(t, n) {
177573
+ const i = String(t), o = this.listeners.get(i);
177574
+ if (!o)
177575
+ return;
177576
+ const r = o.indexOf(n);
177577
+ r !== -1 && o.splice(r, 1), o.length === 0 && this.listeners.delete(i);
177578
+ }
177579
+ /**
177580
+ * 触发指定事件。
177581
+ * 使用数组副本,避免回调执行过程中修改订阅列表导致迭代异常。
177582
+ */
177583
+ trigger(t, n) {
177584
+ const i = String(t), o = this.listeners.get(i);
177585
+ if (!(!o || o.length === 0))
177586
+ for (const r of [...o])
177587
+ try {
177588
+ r(n);
177589
+ } catch (s) {
177590
+ console.error(`EventModuleGIS: event handler error for "${i}"`, s);
177591
+ }
177592
+ }
177593
+ /**
177594
+ * 清空所有事件订阅。
177595
+ */
177596
+ dispose() {
177597
+ this.listeners.clear();
177598
+ }
177599
+ }
177600
+ const J4 = "https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}", Q4 = 18, aZe = "https://unpkg.com/cesium@1.141.0/Build/Cesium/", Sh = {
177601
177601
  longitude: 116.391,
177602
177602
  latitude: 39.907,
177603
177603
  height: 12e6,
@@ -177605,7 +177605,7 @@ const J4 = "https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery
177605
177605
  pitch: D.toRadians(-90),
177606
177606
  roll: 0
177607
177607
  };
177608
- class aZe {
177608
+ class cZe {
177609
177609
  viewer;
177610
177610
  container;
177611
177611
  initialView;
@@ -177657,11 +177657,11 @@ class aZe {
177657
177657
  }
177658
177658
  /**
177659
177659
  * 配置 Cesium 静态资源目录。
177660
- * Vite 开发环境未配置时会把 Assets/*.json 回退成 index.html,导致 JSON 解析失败。
177660
+ * 默认从 SDK 打包产物同级的 Cesium/ 目录解析,避免依赖业务项目的 /node_modules 路径。
177661
177661
  */
177662
177662
  configureCesiumBaseUrl(t) {
177663
177663
  const n = window;
177664
- n.CESIUM_BASE_URL = t ?? n.CESIUM_BASE_URL ?? sZe;
177664
+ n.CESIUM_BASE_URL = t ?? n.CESIUM_BASE_URL ?? aZe;
177665
177665
  }
177666
177666
  /**
177667
177667
  * 应用 SDK 层默认展示策略。
@@ -177782,7 +177782,7 @@ class aZe {
177782
177782
  }
177783
177783
  }
177784
177784
  var Xc = /* @__PURE__ */ ((e) => (e.Initialized = "gis:initialized", e.CameraChanged = "gis:camera-changed", e.ModelLoadStart = "gis:model-load-start", e.ModelLoaded = "gis:model-loaded", e.ModelLoadError = "gis:model-load-error", e.ModelRemoved = "gis:model-removed", e.RenderEffectChanged = "gis:render-effect-changed", e.ViewerError = "gis:viewer-error", e.Destroyed = "gis:destroyed", e))(Xc || {});
177785
- class cZe {
177785
+ class lZe {
177786
177786
  constructor(t) {
177787
177787
  this.viewer = t;
177788
177788
  }
@@ -177816,28 +177816,28 @@ class cZe {
177816
177816
  function EJ(e) {
177817
177817
  return !!(e.offset || e.rotation);
177818
177818
  }
177819
- function lZe(e) {
177819
+ function uZe(e) {
177820
177820
  return !!e.geographicOffset;
177821
177821
  }
177822
- function uZe(e, t, n) {
177822
+ function hZe(e, t, n) {
177823
177823
  let i = R.clone(e ?? R.IDENTITY, new R()), o = d.clone(t, new d());
177824
177824
  if (n.geographicOffset) {
177825
- const r = hZe(i, o, n.geographicOffset);
177825
+ const r = dZe(i, o, n.geographicOffset);
177826
177826
  if (!r)
177827
177827
  return;
177828
177828
  i = r.matrix, o = r.center;
177829
177829
  }
177830
177830
  if (n.offset) {
177831
- const r = SJ(n.offset), s = dZe(i, o, r);
177831
+ const r = SJ(n.offset), s = fZe(i, o, r);
177832
177832
  i = s.matrix, o = s.center;
177833
177833
  }
177834
177834
  if (n.rotation || Array.isArray(n.offset) && n.offset.length >= 6) {
177835
177835
  const r = IJ(n.rotation, n.offset, n.rotationUnit);
177836
- i = fZe(i, o, r);
177836
+ i = mZe(i, o, r);
177837
177837
  }
177838
177838
  return i;
177839
177839
  }
177840
- function hZe(e, t, n) {
177840
+ function dZe(e, t, n) {
177841
177841
  const i = Ae.fromCartesian(t);
177842
177842
  if (!i)
177843
177843
  return;
@@ -177851,7 +177851,7 @@ function hZe(e, t, n) {
177851
177851
  center: o
177852
177852
  };
177853
177853
  }
177854
- function dZe(e, t, n) {
177854
+ function fZe(e, t, n) {
177855
177855
  const i = R.fromTranslation(
177856
177856
  new d(n.east, n.north, n.up),
177857
177857
  new R()
@@ -177861,7 +177861,7 @@ function dZe(e, t, n) {
177861
177861
  center: R.multiplyByPoint(o, t, new d())
177862
177862
  };
177863
177863
  }
177864
- function fZe(e, t, n) {
177864
+ function mZe(e, t, n) {
177865
177865
  const i = new Wo(n.heading, n.pitch, n.roll), o = X.fromHeadingPitchRoll(i, new X()), r = R.fromRotationTranslation(
177866
177866
  o,
177867
177867
  d.ZERO,
@@ -177921,7 +177921,7 @@ function Ou(e) {
177921
177921
  const t = Number(e ?? 0);
177922
177922
  return Number.isFinite(t) ? t : 0;
177923
177923
  }
177924
- class mZe {
177924
+ class pZe {
177925
177925
  constructor(t) {
177926
177926
  this.viewer = t;
177927
177927
  }
@@ -178016,13 +178016,13 @@ class mZe {
178016
178016
  return CJ(o, n, t);
178017
178017
  }
178018
178018
  }
178019
- function pZe(e) {
178019
+ function gZe(e) {
178020
178020
  e("EPSG:4326", "+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"), e("EPSG:4269", "+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"), e("EPSG:3857", "+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs");
178021
178021
  for (var t = 1; t <= 60; ++t)
178022
178022
  e("EPSG:" + (32600 + t), "+proj=utm +zone=" + t + " +datum=WGS84 +units=m"), e("EPSG:" + (32700 + t), "+proj=utm +zone=" + t + " +south +datum=WGS84 +units=m");
178023
178023
  e("EPSG:5041", "+title=WGS 84 / UPS North (E,N) +proj=stere +lat_0=90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m"), e("EPSG:5042", "+title=WGS 84 / UPS South (E,N) +proj=stere +lat_0=-90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m"), e.WGS84 = e["EPSG:4326"], e["EPSG:3785"] = e["EPSG:3857"], e.GOOGLE = e["EPSG:3857"], e["EPSG:900913"] = e["EPSG:3857"], e["EPSG:102113"] = e["EPSG:3857"];
178024
178024
  }
178025
- var Bp = 1, kp = 2, Bg = 3, gZe = 4, UR = 5, Z4 = 6378137, _Ze = 6356752314e-3, eV = 0.0066943799901413165, By = 484813681109536e-20, rt = Math.PI / 2, AZe = 0.16666666666666666, yZe = 0.04722222222222222, bZe = 0.022156084656084655, Tt = 1e-10, Zo = 0.017453292519943295, Va = 57.29577951308232, Li = Math.PI / 4, wb = Math.PI * 2, _r = 3.14159265359, nc = {};
178025
+ var Bp = 1, kp = 2, Bg = 3, _Ze = 4, UR = 5, Z4 = 6378137, AZe = 6356752314e-3, eV = 0.0066943799901413165, By = 484813681109536e-20, rt = Math.PI / 2, yZe = 0.16666666666666666, bZe = 0.04722222222222222, xZe = 0.022156084656084655, Tt = 1e-10, Zo = 0.017453292519943295, Va = 57.29577951308232, Li = Math.PI / 4, wb = Math.PI * 2, _r = 3.14159265359, nc = {};
178026
178026
  nc.greenwich = 0;
178027
178027
  nc.lisbon = -9.131906111111;
178028
178028
  nc.paris = 2.337229166667;
@@ -178036,7 +178036,7 @@ nc.brussels = 4.367975;
178036
178036
  nc.stockholm = 18.058277777778;
178037
178037
  nc.athens = 23.7163375;
178038
178038
  nc.oslo = 10.722916666667;
178039
- const xZe = {
178039
+ const TZe = {
178040
178040
  mm: { to_meter: 1e-3 },
178041
178041
  cm: { to_meter: 0.01 },
178042
178042
  ft: { to_meter: 0.3048 },
@@ -178150,7 +178150,7 @@ function VR(e) {
178150
178150
  },
178151
178151
  units: function(a) {
178152
178152
  t.units = a;
178153
- var c = Nf(xZe, a);
178153
+ var c = Nf(TZe, a);
178154
178154
  c && (t.to_meter = c.to_meter);
178155
178155
  },
178156
178156
  from_greenwich: function(a) {
@@ -178348,12 +178348,12 @@ class PJ {
178348
178348
  return n;
178349
178349
  }
178350
178350
  }
178351
- class TZe extends PJ {
178351
+ class vZe extends PJ {
178352
178352
  static convert(t, n = {}) {
178353
178353
  return super.convert(t, n), n.coordinate_system && n.coordinate_system.subtype === "Cartesian" && delete n.coordinate_system, n.usage && delete n.usage, n;
178354
178354
  }
178355
178355
  }
178356
- class vZe extends PJ {
178356
+ class EZe extends PJ {
178357
178357
  static convert(t, n = {}) {
178358
178358
  super.convert(t, n);
178359
178359
  const i = t.find((r) => Array.isArray(r) && r[0] === "CS");
@@ -178369,17 +178369,17 @@ class vZe extends PJ {
178369
178369
  return n;
178370
178370
  }
178371
178371
  }
178372
- function EZe(e) {
178373
- return e.find((t) => Array.isArray(t) && t[0] === "USAGE") ? "2019" : (e.find((t) => Array.isArray(t) && t[0] === "CS") || e[0] === "BOUNDCRS" || e[0] === "PROJCRS" || e[0] === "GEOGCRS", "2015");
178374
- }
178375
178372
  function CZe(e) {
178376
- return (EZe(e) === "2019" ? vZe : TZe).convert(e);
178373
+ return e.find((t) => Array.isArray(t) && t[0] === "USAGE") ? "2019" : (e.find((t) => Array.isArray(t) && t[0] === "CS") || e[0] === "BOUNDCRS" || e[0] === "PROJCRS" || e[0] === "GEOGCRS", "2015");
178377
178374
  }
178378
178375
  function wZe(e) {
178376
+ return (CZe(e) === "2019" ? EZe : vZe).convert(e);
178377
+ }
178378
+ function SZe(e) {
178379
178379
  const t = e.toUpperCase();
178380
178380
  return t.includes("PROJCRS") || t.includes("GEOGCRS") || t.includes("BOUNDCRS") || t.includes("VERTCRS") || t.includes("LENGTHUNIT") || t.includes("ANGLEUNIT") || t.includes("SCALEUNIT") ? "WKT2" : (t.includes("PROJCS") || t.includes("GEOGCS") || t.includes("LOCAL_CS") || t.includes("VERT_CS") || t.includes("UNIT"), "WKT1");
178381
178381
  }
178382
- var Sb = 1, DJ = 2, OJ = 3, zC = 4, RJ = 5, OL = -1, SZe = /\s/, IZe = /[A-Za-z]/, PZe = /[A-Za-z84_]/, uS = /[,\]]/, MJ = /[\d\.E\-\+]/;
178382
+ var Sb = 1, DJ = 2, OJ = 3, zC = 4, RJ = 5, OL = -1, IZe = /\s/, PZe = /[A-Za-z]/, DZe = /[A-Za-z84_]/, uS = /[,\]]/, MJ = /[\d\.E\-\+]/;
178383
178383
  function _d(e) {
178384
178384
  if (typeof e != "string")
178385
178385
  throw new Error("not a string");
@@ -178388,7 +178388,7 @@ function _d(e) {
178388
178388
  _d.prototype.readCharicter = function() {
178389
178389
  var e = this.text[this.place++];
178390
178390
  if (this.state !== zC)
178391
- for (; SZe.test(e); ) {
178391
+ for (; IZe.test(e); ) {
178392
178392
  if (this.place >= this.text.length)
178393
178393
  return;
178394
178394
  e = this.text[this.place++];
@@ -178448,7 +178448,7 @@ _d.prototype.quoted = function(e) {
178448
178448
  this.word += e;
178449
178449
  };
178450
178450
  _d.prototype.keyword = function(e) {
178451
- if (PZe.test(e)) {
178451
+ if (DZe.test(e)) {
178452
178452
  this.word += e;
178453
178453
  return;
178454
178454
  }
@@ -178464,7 +178464,7 @@ _d.prototype.keyword = function(e) {
178464
178464
  throw new Error(`havn't handled "` + e + '" in keyword yet, index ' + this.place);
178465
178465
  };
178466
178466
  _d.prototype.neutral = function(e) {
178467
- if (IZe.test(e)) {
178467
+ if (PZe.test(e)) {
178468
178468
  this.word = e, this.state = DJ;
178469
178469
  return;
178470
178470
  }
@@ -178489,7 +178489,7 @@ _d.prototype.output = function() {
178489
178489
  return this.root;
178490
178490
  throw new Error('unable to parse string "' + this.text + '". State is ' + this.state);
178491
178491
  };
178492
- function DZe(e) {
178492
+ function OZe(e) {
178493
178493
  var t = new _d(e);
178494
178494
  return t.output();
178495
178495
  }
@@ -178579,9 +178579,9 @@ function dg(e, t) {
178579
178579
  return PD(t, n, e);
178580
178580
  }
178581
178581
  }
178582
- var OZe = 0.017453292519943295;
178582
+ var RZe = 0.017453292519943295;
178583
178583
  function Jc(e) {
178584
- return e * OZe;
178584
+ return e * RZe;
178585
178585
  }
178586
178586
  function NJ(e) {
178587
178587
  const t = (e.projName || "").toLowerCase().replace(/_/g, " ");
@@ -178660,7 +178660,7 @@ function jC(e, t = {}) {
178660
178660
  }
178661
178661
  }), t.latitude_of_false_origin !== void 0 && (t.lat0 = t.latitude_of_false_origin), t.longitude_of_false_origin !== void 0 && (t.long0 = t.longitude_of_false_origin), t.latitude_of_standard_parallel !== void 0 && (t.lat0 = t.latitude_of_standard_parallel, t.lat1 = t.latitude_of_standard_parallel), t.latitude_of_1st_standard_parallel !== void 0 && (t.lat1 = t.latitude_of_1st_standard_parallel), t.latitude_of_2nd_standard_parallel !== void 0 && (t.lat2 = t.latitude_of_2nd_standard_parallel), t.latitude_of_projection_centre !== void 0 && (t.lat0 = t.latitude_of_projection_centre), t.longitude_of_projection_centre !== void 0 && (t.longc = t.longitude_of_projection_centre), t.easting_at_false_origin !== void 0 && (t.x0 = t.easting_at_false_origin), t.northing_at_false_origin !== void 0 && (t.y0 = t.northing_at_false_origin), t.latitude_of_natural_origin !== void 0 && (t.lat0 = t.latitude_of_natural_origin), t.longitude_of_natural_origin !== void 0 && (t.long0 = t.longitude_of_natural_origin), t.longitude_of_origin !== void 0 && (t.long0 = t.longitude_of_origin), t.false_easting !== void 0 && (t.x0 = t.false_easting), t.easting_at_projection_centre && (t.x0 = t.easting_at_projection_centre), t.false_northing !== void 0 && (t.y0 = t.false_northing), t.northing_at_projection_centre && (t.y0 = t.northing_at_projection_centre), t.standard_parallel_1 !== void 0 && (t.lat1 = t.standard_parallel_1), t.standard_parallel_2 !== void 0 && (t.lat2 = t.standard_parallel_2), t.scale_factor_at_natural_origin !== void 0 && (t.k0 = t.scale_factor_at_natural_origin), t.scale_factor_at_projection_centre !== void 0 && (t.k0 = t.scale_factor_at_projection_centre), t.scale_factor_on_pseudo_standard_parallel !== void 0 && (t.k0 = t.scale_factor_on_pseudo_standard_parallel), t.azimuth !== void 0 && (t.alpha = t.azimuth), t.azimuth_at_projection_centre !== void 0 && (t.alpha = t.azimuth_at_projection_centre), t.angle_from_rectified_to_skew_grid && (t.rectified_grid_angle = t.angle_from_rectified_to_skew_grid), NJ(t), t);
178662
178662
  }
178663
- var RZe = [
178663
+ var MZe = [
178664
178664
  "PROJECTEDCRS",
178665
178665
  "PROJCRS",
178666
178666
  "GEOGCS",
@@ -178673,17 +178673,17 @@ var RZe = [
178673
178673
  "ENGCRS",
178674
178674
  "ENGINEERINGCRS"
178675
178675
  ];
178676
- function MZe(e, t) {
178676
+ function NZe(e, t) {
178677
178677
  var n = t[0], i = t[1];
178678
178678
  !(n in e) && i in e && (e[n] = e[i], t.length === 3 && (e[n] = t[2](e[n])));
178679
178679
  }
178680
178680
  function LJ(e) {
178681
178681
  for (var t = Object.keys(e), n = 0, i = t.length; n < i; ++n) {
178682
178682
  var o = t[n];
178683
- RZe.indexOf(o) !== -1 && NZe(e[o]), typeof e[o] == "object" && LJ(e[o]);
178683
+ MZe.indexOf(o) !== -1 && LZe(e[o]), typeof e[o] == "object" && LJ(e[o]);
178684
178684
  }
178685
178685
  }
178686
- function NZe(e) {
178686
+ function LZe(e) {
178687
178687
  if (e.AUTHORITY) {
178688
178688
  var t = Object.keys(e.AUTHORITY)[0];
178689
178689
  t && t in e.AUTHORITY && (e.title = t + ":" + e.AUTHORITY[t]);
@@ -178703,7 +178703,7 @@ function NZe(e) {
178703
178703
  return h * f;
178704
178704
  }
178705
178705
  var c = function(h) {
178706
- return MZe(e, h);
178706
+ return NZe(e, h);
178707
178707
  }, u = [
178708
178708
  ["standard_parallel_1", "Standard_Parallel_1"],
178709
178709
  ["standard_parallel_1", "Latitude of 1st standard parallel"],
@@ -178746,10 +178746,10 @@ function NZe(e) {
178746
178746
  function UC(e) {
178747
178747
  if (typeof e == "object")
178748
178748
  return jC(e);
178749
- const t = wZe(e);
178750
- var n = DZe(e);
178749
+ const t = SZe(e);
178750
+ var n = OZe(e);
178751
178751
  if (t === "WKT2") {
178752
- const r = CZe(n);
178752
+ const r = wZe(n);
178753
178753
  return jC(r);
178754
178754
  }
178755
178755
  var i = n[0], o = {};
@@ -178787,18 +178787,18 @@ function Cs(e) {
178787
178787
  return;
178788
178788
  }
178789
178789
  }
178790
- pZe(Cs);
178791
- function LZe(e) {
178790
+ gZe(Cs);
178791
+ function FZe(e) {
178792
178792
  return typeof e == "string";
178793
178793
  }
178794
- function FZe(e) {
178794
+ function BZe(e) {
178795
178795
  return e in Cs;
178796
178796
  }
178797
- function BZe(e) {
178797
+ function kZe(e) {
178798
178798
  return e.indexOf("+") !== 0 && e.indexOf("[") !== -1 || typeof e == "object" && !("srsCode" in e);
178799
178799
  }
178800
178800
  var rV = ["3857", "900913", "3785", "102113"];
178801
- function kZe(e) {
178801
+ function zZe(e) {
178802
178802
  if (e.title)
178803
178803
  return e.title.toLowerCase().indexOf("epsg:") === 0 && rV.indexOf(e.title.substr(5)) > -1;
178804
178804
  var t = Nf(e, "authority");
@@ -178807,26 +178807,26 @@ function kZe(e) {
178807
178807
  return n && rV.indexOf(n) > -1;
178808
178808
  }
178809
178809
  }
178810
- function zZe(e) {
178810
+ function jZe(e) {
178811
178811
  var t = Nf(e, "extension");
178812
178812
  if (t)
178813
178813
  return Nf(t, "proj4");
178814
178814
  }
178815
- function jZe(e) {
178815
+ function UZe(e) {
178816
178816
  return e[0] === "+";
178817
178817
  }
178818
- function UZe(e) {
178818
+ function VZe(e) {
178819
178819
  let t;
178820
- if (LZe(e))
178821
- if (FZe(e))
178820
+ if (FZe(e))
178821
+ if (BZe(e))
178822
178822
  t = Cs[e];
178823
- else if (BZe(e)) {
178823
+ else if (kZe(e)) {
178824
178824
  t = UC(e);
178825
- var n = zZe(t);
178825
+ var n = jZe(t);
178826
178826
  n && (t = VR(n));
178827
- } else jZe(e) && (t = VR(e));
178827
+ } else UZe(e) && (t = VR(e));
178828
178828
  else "projName" in e ? t = e : t = UC(e);
178829
- return t && kZe(t) ? Cs["EPSG:3857"] : t;
178829
+ return t && zZe(t) ? Cs["EPSG:3857"] : t;
178830
178830
  }
178831
178831
  function sV(e, t) {
178832
178832
  e = e || {};
@@ -178857,11 +178857,11 @@ function Ib(e, t) {
178857
178857
  return r;
178858
178858
  return -9999;
178859
178859
  }
178860
- function VZe() {
178860
+ function HZe() {
178861
178861
  var e = this.b / this.a;
178862
178862
  this.es = 1 - e * e, "x0" in this || (this.x0 = 0), "y0" in this || (this.y0 = 0), this.e = Math.sqrt(this.es), this.lat_ts ? this.sphere ? this.k0 = Math.cos(this.lat_ts) : this.k0 = Yu(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)) : this.k0 || (this.k ? this.k0 = this.k : this.k0 = 1);
178863
178863
  }
178864
- function HZe(e) {
178864
+ function GZe(e) {
178865
178865
  var t = e.x, n = e.y;
178866
178866
  if (n * Va > 90 && n * Va < -90 && t * Va > 180 && t * Va < -180)
178867
178867
  return null;
@@ -178876,7 +178876,7 @@ function HZe(e) {
178876
178876
  }
178877
178877
  return e.x = i, e.y = o, e;
178878
178878
  }
178879
- function GZe(e) {
178879
+ function qZe(e) {
178880
178880
  var t = e.x - this.x0, n = e.y - this.y0, i, o;
178881
178881
  if (this.sphere)
178882
178882
  o = rt - 2 * Math.atan(Math.exp(-n / (this.a * this.k0)));
@@ -178887,26 +178887,26 @@ function GZe(e) {
178887
178887
  }
178888
178888
  return i = wt(this.long0 + t / (this.a * this.k0), this.over), e.x = i, e.y = o, e;
178889
178889
  }
178890
- var qZe = ["Mercator", "Popular Visualisation Pseudo Mercator", "Mercator_1SP", "Mercator_Auxiliary_Sphere", "Mercator_Variant_A", "merc"];
178891
- const WZe = {
178892
- init: VZe,
178893
- forward: HZe,
178894
- inverse: GZe,
178895
- names: qZe
178890
+ var WZe = ["Mercator", "Popular Visualisation Pseudo Mercator", "Mercator_1SP", "Mercator_Auxiliary_Sphere", "Mercator_Variant_A", "merc"];
178891
+ const $Ze = {
178892
+ init: HZe,
178893
+ forward: GZe,
178894
+ inverse: qZe,
178895
+ names: WZe
178896
178896
  };
178897
- function $Ze() {
178897
+ function YZe() {
178898
178898
  }
178899
178899
  function aV(e) {
178900
178900
  return e;
178901
178901
  }
178902
178902
  var FJ = ["longlat", "identity"];
178903
- const YZe = {
178904
- init: $Ze,
178903
+ const XZe = {
178904
+ init: YZe,
178905
178905
  forward: aV,
178906
178906
  inverse: aV,
178907
178907
  names: FJ
178908
178908
  };
178909
- var XZe = [WZe, YZe], Hm = {}, fg = [];
178909
+ var KZe = [$Ze, XZe], Hm = {}, fg = [];
178910
178910
  function BJ(e, t) {
178911
178911
  var n = fg.length;
178912
178912
  return e.names ? (fg[n] = e, e.names.forEach(function(i) {
@@ -178916,20 +178916,20 @@ function BJ(e, t) {
178916
178916
  function kJ(e) {
178917
178917
  return e.replace(/[-\(\)\s]+/g, " ").trim().replace(/ /g, "_");
178918
178918
  }
178919
- function KZe(e) {
178919
+ function JZe(e) {
178920
178920
  if (!e)
178921
178921
  return !1;
178922
178922
  var t = e.toLowerCase();
178923
178923
  if (typeof Hm[t] < "u" && fg[Hm[t]] || (t = kJ(t), t in Hm && fg[Hm[t]]))
178924
178924
  return fg[Hm[t]];
178925
178925
  }
178926
- function JZe() {
178927
- XZe.forEach(BJ);
178926
+ function QZe() {
178927
+ KZe.forEach(BJ);
178928
178928
  }
178929
- const QZe = {
178930
- start: JZe,
178929
+ const ZZe = {
178930
+ start: QZe,
178931
178931
  add: BJ,
178932
- get: KZe
178932
+ get: JZe
178933
178933
  };
178934
178934
  var zJ = {
178935
178935
  MERIT: {
@@ -179154,10 +179154,10 @@ var zJ = {
179154
179154
  ellipseName: "Normal Sphere (r=6370997)"
179155
179155
  }
179156
179156
  };
179157
- const ZZe = zJ.WGS84;
179158
- function eet(e, t, n, i) {
179157
+ const eet = zJ.WGS84;
179158
+ function tet(e, t, n, i) {
179159
179159
  var o = e * e, r = t * t, s = (o - r) / o, a = 0;
179160
- i ? (e *= 1 - s * (AZe + s * (yZe + s * bZe)), o = e * e, s = 0) : a = Math.sqrt(s);
179160
+ i ? (e *= 1 - s * (yZe + s * (bZe + s * xZe)), o = e * e, s = 0) : a = Math.sqrt(s);
179161
179161
  var c = (o - r) / r;
179162
179162
  return {
179163
179163
  es: s,
@@ -179165,10 +179165,10 @@ function eet(e, t, n, i) {
179165
179165
  ep2: c
179166
179166
  };
179167
179167
  }
179168
- function tet(e, t, n, i, o) {
179168
+ function net(e, t, n, i, o) {
179169
179169
  if (!e) {
179170
179170
  var r = Nf(zJ, i);
179171
- r || (r = ZZe), e = r.a, t = r.b, n = r.rf;
179171
+ r || (r = eet), e = r.a, t = r.b, n = r.rf;
179172
179172
  }
179173
179173
  return n && !t && (t = (1 - 1 / n) * e), (n === 0 || Math.abs(e - t) < Tt) && (o = !0, t = e), {
179174
179174
  a: e,
@@ -180529,25 +180529,25 @@ var VE = {
180529
180529
  towgs84: "0,0,0"
180530
180530
  }
180531
180531
  };
180532
- for (var net in VE) {
180533
- var DD = VE[net];
180532
+ for (var iet in VE) {
180533
+ var DD = VE[iet];
180534
180534
  DD.datumName && (VE[DD.datumName] = DD);
180535
180535
  }
180536
- function iet(e, t, n, i, o, r, s) {
180536
+ function oet(e, t, n, i, o, r, s) {
180537
180537
  var a = {};
180538
- return a.datum_type = UR, t && (a.datum_type = gZe, a.datum_params = t.map(parseFloat), (a.datum_params[0] !== 0 || a.datum_params[1] !== 0 || a.datum_params[2] !== 0) && (a.datum_type = Bp), a.datum_params.length > 3 && (a.datum_params[3] !== 0 || a.datum_params[4] !== 0 || a.datum_params[5] !== 0 || a.datum_params[6] !== 0) && (a.datum_type = kp, a.datum_params[3] *= By, a.datum_params[4] *= By, a.datum_params[5] *= By, a.datum_params[6] = a.datum_params[6] / 1e6 + 1)), s && (a.datum_type = Bg, a.grids = s), a.a = n, a.b = i, a.es = o, a.ep2 = r, a;
180538
+ return a.datum_type = UR, t && (a.datum_type = _Ze, a.datum_params = t.map(parseFloat), (a.datum_params[0] !== 0 || a.datum_params[1] !== 0 || a.datum_params[2] !== 0) && (a.datum_type = Bp), a.datum_params.length > 3 && (a.datum_params[3] !== 0 || a.datum_params[4] !== 0 || a.datum_params[5] !== 0 || a.datum_params[6] !== 0) && (a.datum_type = kp, a.datum_params[3] *= By, a.datum_params[4] *= By, a.datum_params[5] *= By, a.datum_params[6] = a.datum_params[6] / 1e6 + 1)), s && (a.datum_type = Bg, a.grids = s), a.a = n, a.b = i, a.es = o, a.ep2 = r, a;
180539
180539
  }
180540
180540
  var RL = {};
180541
- function oet(e, t, n) {
180542
- return t instanceof ArrayBuffer ? ret(e, t, n) : { ready: set(e, t) };
180543
- }
180544
180541
  function ret(e, t, n) {
180542
+ return t instanceof ArrayBuffer ? set(e, t, n) : { ready: aet(e, t) };
180543
+ }
180544
+ function set(e, t, n) {
180545
180545
  var i = !0;
180546
180546
  n !== void 0 && n.includeErrorFields === !1 && (i = !1);
180547
- var o = new DataView(t), r = uet(o), s = het(o, r), a = det(o, s, r, i), c = { header: s, subgrids: a };
180547
+ var o = new DataView(t), r = het(o), s = det(o, r), a = fet(o, s, r, i), c = { header: s, subgrids: a };
180548
180548
  return RL[e] = c, c;
180549
180549
  }
180550
- async function set(e, t) {
180550
+ async function aet(e, t) {
180551
180551
  for (var n = [], i = await t.getImageCount(), o = i - 1; o >= 0; o--) {
180552
180552
  var r = await t.getImage(o), s = await r.readRasters(), a = s, c = [r.getWidth(), r.getHeight()], u = r.getBoundingBox().map(cV), h = typeof r.fileDirectory.getValue == "function" ? r.fileDirectory.getValue("ModelPixelScale") : (
180553
180553
  /** @type {any} */
@@ -180573,13 +180573,13 @@ async function set(e, t) {
180573
180573
  };
180574
180574
  return RL[e] = T, T;
180575
180575
  }
180576
- function aet(e) {
180576
+ function cet(e) {
180577
180577
  if (e === void 0)
180578
180578
  return null;
180579
180579
  var t = e.split(",");
180580
- return t.map(cet);
180580
+ return t.map(uet);
180581
180581
  }
180582
- function cet(e) {
180582
+ function uet(e) {
180583
180583
  if (e.length === 0)
180584
180584
  return null;
180585
180585
  var t = e[0] === "@";
@@ -180596,11 +180596,11 @@ function cV(e) {
180596
180596
  function cf(e) {
180597
180597
  return e / 3600 * Math.PI / 180;
180598
180598
  }
180599
- function uet(e) {
180599
+ function het(e) {
180600
180600
  var t = e.getInt32(8, !1);
180601
180601
  return t === 11 ? !1 : (t = e.getInt32(8, !0), t !== 11 && console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"), !0);
180602
180602
  }
180603
- function het(e, t) {
180603
+ function det(e, t) {
180604
180604
  return {
180605
180605
  nFields: e.getInt32(8, t),
180606
180606
  nSubgridFields: e.getInt32(24, t),
@@ -180615,9 +180615,9 @@ function het(e, t) {
180615
180615
  function HR(e, t, n) {
180616
180616
  return String.fromCharCode.apply(null, new Uint8Array(e.buffer.slice(t, n)));
180617
180617
  }
180618
- function det(e, t, n, i) {
180618
+ function fet(e, t, n, i) {
180619
180619
  for (var o = 176, r = [], s = 0; s < t.nSubgrids; s++) {
180620
- var a = met(e, o, n), c = pet(e, o, a, n, i), u = Math.round(
180620
+ var a = pet(e, o, n), c = get(e, o, a, n, i), u = Math.round(
180621
180621
  1 + (a.upperLongitude - a.lowerLongitude) / a.longitudeInterval
180622
180622
  ), h = Math.round(
180623
180623
  1 + (a.upperLatitude - a.lowerLatitude) / a.latitudeInterval
@@ -180627,19 +180627,19 @@ function det(e, t, n, i) {
180627
180627
  del: [cf(a.longitudeInterval), cf(a.latitudeInterval)],
180628
180628
  lim: [u, h],
180629
180629
  count: a.gridNodeCount,
180630
- cvs: fet(c)
180630
+ cvs: met(c)
180631
180631
  });
180632
180632
  var f = 16;
180633
180633
  i === !1 && (f = 8), o += 176 + a.gridNodeCount * f;
180634
180634
  }
180635
180635
  return r;
180636
180636
  }
180637
- function fet(e) {
180637
+ function met(e) {
180638
180638
  return e.map(function(t) {
180639
180639
  return [cf(t.longitudeShift), cf(t.latitudeShift)];
180640
180640
  });
180641
180641
  }
180642
- function met(e, t, n) {
180642
+ function pet(e, t, n) {
180643
180643
  return {
180644
180644
  name: HR(e, t + 8, t + 16).trim(),
180645
180645
  parent: HR(e, t + 24, t + 24 + 8).trim(),
@@ -180652,7 +180652,7 @@ function met(e, t, n) {
180652
180652
  gridNodeCount: e.getInt32(t + 168, n)
180653
180653
  };
180654
180654
  }
180655
- function pet(e, t, n, i, o) {
180655
+ function get(e, t, n, i, o) {
180656
180656
  var r = t + 176, s = 16;
180657
180657
  o === !1 && (s = 8);
180658
180658
  for (var a = [], c = 0; c < n.gridNodeCount; c++) {
@@ -180671,7 +180671,7 @@ function _l(e, t) {
180671
180671
  if (u)
180672
180672
  throw u;
180673
180673
  };
180674
- var n = UZe(e);
180674
+ var n = VZe(e);
180675
180675
  if (typeof n != "object") {
180676
180676
  t("Could not parse to valid json: " + e);
180677
180677
  return;
@@ -180686,7 +180686,7 @@ function _l(e, t) {
180686
180686
  o && (n.datum_params = n.datum_params || (o.towgs84 ? o.towgs84.split(",") : null), n.ellps = o.ellipse, n.datumName = o.datumName ? o.datumName : n.datumCode);
180687
180687
  }
180688
180688
  n.k0 = n.k0 || 1, n.axis = n.axis || "enu", n.ellps = n.ellps || "wgs84", n.lat1 = n.lat1 || n.lat0;
180689
- var r = tet(n.a, n.b, n.rf, n.ellps, n.sphere), s = eet(r.a, r.b, r.rf, n.R_A), a = aet(n.nadgrids), c = n.datum || iet(
180689
+ var r = net(n.a, n.b, n.rf, n.ellps, n.sphere), s = tet(r.a, r.b, r.rf, n.R_A), a = cet(n.nadgrids), c = n.datum || oet(
180690
180690
  n.datumCode,
180691
180691
  n.datum_params,
180692
180692
  r.a,
@@ -180697,9 +180697,9 @@ function _l(e, t) {
180697
180697
  );
180698
180698
  sV(this, n), sV(this, i), this.a = r.a, this.b = r.b, this.rf = r.rf, this.sphere = r.sphere, this.es = s.es, this.e = s.e, this.ep2 = s.ep2, this.datum = c, "init" in this && typeof this.init == "function" && this.init(), t(null, this);
180699
180699
  }
180700
- _l.projections = QZe;
180700
+ _l.projections = ZZe;
180701
180701
  _l.projections.start();
180702
- function get(e, t) {
180702
+ function _et(e, t) {
180703
180703
  return e.datum_type !== t.datum_type || e.a !== t.a || Math.abs(e.es - t.es) > 5e-11 ? !1 : e.datum_type === Bp ? e.datum_params[0] === t.datum_params[0] && e.datum_params[1] === t.datum_params[1] && e.datum_params[2] === t.datum_params[2] : e.datum_type === kp ? e.datum_params[0] === t.datum_params[0] && e.datum_params[1] === t.datum_params[1] && e.datum_params[2] === t.datum_params[2] && e.datum_params[3] === t.datum_params[3] && e.datum_params[4] === t.datum_params[4] && e.datum_params[5] === t.datum_params[5] && e.datum_params[6] === t.datum_params[6] : !0;
180704
180704
  }
180705
180705
  function jJ(e, t, n) {
@@ -180741,7 +180741,7 @@ function UJ(e, t, n, i) {
180741
180741
  z: F
180742
180742
  };
180743
180743
  }
180744
- function _et(e, t, n) {
180744
+ function Aet(e, t, n) {
180745
180745
  if (t === Bp)
180746
180746
  return {
180747
180747
  x: e.x + n[0],
@@ -180757,7 +180757,7 @@ function _et(e, t, n) {
180757
180757
  };
180758
180758
  }
180759
180759
  }
180760
- function Aet(e, t, n) {
180760
+ function yet(e, t, n) {
180761
180761
  if (t === Bp)
180762
180762
  return {
180763
180763
  x: e.x - n[0],
@@ -180776,8 +180776,8 @@ function Aet(e, t, n) {
180776
180776
  function iE(e) {
180777
180777
  return e === Bp || e === kp;
180778
180778
  }
180779
- function yet(e, t, n) {
180780
- if (get(e, t) || e.datum_type === UR || t.datum_type === UR)
180779
+ function bet(e, t, n) {
180780
+ if (_et(e, t) || e.datum_type === UR || t.datum_type === UR)
180781
180781
  return n;
180782
180782
  var i = e.a, o = e.es;
180783
180783
  if (e.datum_type === Bg) {
@@ -180787,9 +180787,9 @@ function yet(e, t, n) {
180787
180787
  i = Z4, o = eV;
180788
180788
  }
180789
180789
  var s = t.a, a = t.b, c = t.es;
180790
- if (t.datum_type === Bg && (s = Z4, a = _Ze, c = eV), o === c && i === s && !iE(e.datum_type) && !iE(t.datum_type))
180790
+ if (t.datum_type === Bg && (s = Z4, a = AZe, c = eV), o === c && i === s && !iE(e.datum_type) && !iE(t.datum_type))
180791
180791
  return n;
180792
- if (n = jJ(n, o, i), iE(e.datum_type) && (n = _et(n, e.datum_type, e.datum_params)), iE(t.datum_type) && (n = Aet(n, t.datum_type, t.datum_params)), n = UJ(n, c, s, a), t.datum_type === Bg) {
180792
+ if (n = jJ(n, o, i), iE(e.datum_type) && (n = Aet(n, e.datum_type, e.datum_params)), iE(t.datum_type) && (n = yet(n, t.datum_type, t.datum_params)), n = UJ(n, c, s, a), t.datum_type === Bg) {
180793
180793
  var u = lV(t, !0, n);
180794
180794
  if (u !== 0)
180795
180795
  return;
@@ -180814,13 +180814,13 @@ function lV(e, t, n) {
180814
180814
  }
180815
180815
  for (var c = a.grid.subgrids, u = 0, h = c.length; u < h; u++) {
180816
180816
  var f = c[u], m = (Math.abs(f.del[1]) + Math.abs(f.del[0])) / 1e4, _ = f.ll[0] - m, p = f.ll[1] - m, A = f.ll[0] + (f.lim[0] - 1) * f.del[0] + m, y = f.ll[1] + (f.lim[1] - 1) * f.del[1] + m;
180817
- if (!(p > i.y || _ > i.x || y < i.y || A < i.x) && (o = bet(i, t, f), !isNaN(o.x)))
180817
+ if (!(p > i.y || _ > i.x || y < i.y || A < i.x) && (o = xet(i, t, f), !isNaN(o.x)))
180818
180818
  break e;
180819
180819
  }
180820
180820
  }
180821
180821
  return isNaN(o.x) ? (console.log("Failed to find a grid shift table for location '" + -i.x * Va + " " + i.y * Va + " tried: '" + r + "'"), -1) : (n.x = -o.x, n.y = o.y, 0);
180822
180822
  }
180823
- function bet(e, t, n) {
180823
+ function xet(e, t, n) {
180824
180824
  var i = { x: Number.NaN, y: Number.NaN };
180825
180825
  if (isNaN(e.x))
180826
180826
  return i;
@@ -180861,7 +180861,7 @@ function uV(e, t) {
180861
180861
  return r.x = _ * a.x + m * c.x + p * h.x + f * u.x, r.y = _ * a.y + m * c.y + p * h.y + f * u.y, r;
180862
180862
  }
180863
180863
  var Gm = ["x", "y", "z"];
180864
- function xet(e, t) {
180864
+ function Tet(e, t) {
180865
180865
  const n = {};
180866
180866
  for (let i = 0, o = e.axis.length; i < o; i++) {
180867
180867
  if (i === 2 && t.z === void 0)
@@ -180892,7 +180892,7 @@ function xet(e, t) {
180892
180892
  }
180893
180893
  return n;
180894
180894
  }
180895
- function Tet(e, t) {
180895
+ function vet(e, t) {
180896
180896
  const n = (
180897
180897
  /** @type {import("./core").InterfaceCoordinates} */
180898
180898
  {}
@@ -180930,7 +180930,7 @@ function ML(e) {
180930
180930
  };
180931
180931
  return e.length > 2 && (t.z = e[2]), e.length > 3 && (t.m = e[3]), t;
180932
180932
  }
180933
- function vet(e) {
180933
+ function Eet(e) {
180934
180934
  hV(e.x), hV(e.y);
180935
180935
  }
180936
180936
  function hV(e) {
@@ -180942,12 +180942,12 @@ function hV(e) {
180942
180942
  if (typeof e != "number" || e !== e || !isFinite(e))
180943
180943
  throw new TypeError("coordinates must be finite numbers");
180944
180944
  }
180945
- function Eet(e, t) {
180945
+ function Cet(e, t) {
180946
180946
  return (e.datum.datum_type === Bp || e.datum.datum_type === kp || e.datum.datum_type === Bg) && t.datumCode !== "WGS84" || (t.datum.datum_type === Bp || t.datum.datum_type === kp || t.datum.datum_type === Bg) && e.datumCode !== "WGS84";
180947
180947
  }
180948
180948
  function VC(e, t, n, i) {
180949
180949
  var o, r = n.z !== void 0;
180950
- if (vet(n), e.datum && t.datum && Eet(e, t) && (o = new _l("WGS84"), n = VC(e, o, n, i), e = o), i && e.axis !== "enu" && (n = xet(e, n)), e.projName === "longlat")
180950
+ if (Eet(n), e.datum && t.datum && Cet(e, t) && (o = new _l("WGS84"), n = VC(e, o, n, i), e = o), i && e.axis !== "enu" && (n = Tet(e, n)), e.projName === "longlat")
180951
180951
  n = {
180952
180952
  x: n.x * Zo,
180953
180953
  y: n.y * Zo,
@@ -180959,7 +180959,7 @@ function VC(e, t, n, i) {
180959
180959
  z: n.z || 0
180960
180960
  }), n = e.inverse(n), !n)
180961
180961
  return;
180962
- if (e.from_greenwich && (n.x += e.from_greenwich), n = yet(e.datum, t.datum, n), !!n)
180962
+ if (e.from_greenwich && (n.x += e.from_greenwich), n = bet(e.datum, t.datum, n), !!n)
180963
180963
  return n = /** @type {import('./core').InterfaceCoordinates} */
180964
180964
  n, t.from_greenwich && (n = {
180965
180965
  x: n.x - t.from_greenwich,
@@ -180973,9 +180973,9 @@ function VC(e, t, n, i) {
180973
180973
  x: n.x / t.to_meter,
180974
180974
  y: n.y / t.to_meter,
180975
180975
  z: n.z || 0
180976
- })), i && t.axis !== "enu" ? Tet(t, n) : (n && !r && t.projName !== "geocent" && delete n.z, n);
180976
+ })), i && t.axis !== "enu" ? vet(t, n) : (n && !r && t.projName !== "geocent" && delete n.z, n);
180977
180977
  }
180978
- function Cet(e, t, n, i) {
180978
+ function wet(e, t, n, i) {
180979
180979
  var o;
180980
180980
  return Array.isArray(n) ? o = ML(n) : o = { x: n.x, y: n.y, z: n.z, m: n.m }, VC(e, t, o, i);
180981
180981
  }
@@ -181008,7 +181008,7 @@ function oE(e) {
181008
181008
  e
181009
181009
  );
181010
181010
  }
181011
- function wet(e, t, n) {
181011
+ function Iet(e, t, n) {
181012
181012
  var i, o, r = !1, s;
181013
181013
  return typeof t > "u" ? (o = oE(e), i = dV, r = !0) : (typeof /** @type {?} */
181014
181014
  t.x < "u" || Array.isArray(t)) && (n = /** @type {T} */
@@ -181038,18 +181038,18 @@ function wet(e, t, n) {
181038
181038
  }, r && (s.oProj = o), s);
181039
181039
  }
181040
181040
  var fV = 6, VJ = "AJSAJS", HJ = "AFAFAF", mg = 65, Fa = 73, Qc = 79, hy = 86, dy = 90;
181041
- const Iet = {
181041
+ const Pet = {
181042
181042
  forward: GJ,
181043
- inverse: Pet,
181043
+ inverse: Det,
181044
181044
  toPoint: qJ
181045
181045
  };
181046
181046
  function GJ(e, t) {
181047
- return t = t || 5, Ret(Det({
181047
+ return t = t || 5, Met(Oet({
181048
181048
  lat: e[1],
181049
181049
  lon: e[0]
181050
181050
  }), t);
181051
181051
  }
181052
- function Pet(e) {
181052
+ function Det(e) {
181053
181053
  var t = NL($J(e.toUpperCase()));
181054
181054
  return t.lat && t.lon ? [t.lon, t.lat, t.lon, t.lat] : [t.left, t.bottom, t.right, t.top];
181055
181055
  }
@@ -181063,7 +181063,7 @@ function RD(e) {
181063
181063
  function mV(e) {
181064
181064
  return 180 * (e / Math.PI);
181065
181065
  }
181066
- function Det(e) {
181066
+ function Oet(e) {
181067
181067
  var t = e.lat, n = e.lon, i = 6378137, o = 669438e-8, r = 0.9996, s, a, c, u, h, f, m, _ = RD(t), p = RD(n), A, y;
181068
181068
  y = Math.floor((n + 180) / 6) + 1, n === 180 && (y = 60), t >= 56 && t < 64 && n >= 3 && n < 12 && (y = 32), t >= 72 && t < 84 && (n >= 0 && n < 9 ? y = 31 : n >= 9 && n < 21 ? y = 33 : n >= 21 && n < 33 ? y = 35 : n >= 33 && n < 42 && (y = 37)), s = (y - 1) * 6 - 180 + 3, A = RD(s), a = o / (1 - o), c = i / Math.sqrt(1 - o * Math.sin(_) * Math.sin(_)), u = Math.tan(_) * Math.tan(_), h = a * Math.cos(_) * Math.cos(_), f = Math.cos(_) * (p - A), m = i * ((1 - o / 4 - 3 * o * o / 64 - 5 * o * o * o / 256) * _ - (3 * o / 8 + 3 * o * o / 32 + 45 * o * o * o / 1024) * Math.sin(2 * _) + (15 * o * o / 256 + 45 * o * o * o / 1024) * Math.sin(4 * _) - 35 * o * o * o / 3072 * Math.sin(6 * _));
181069
181069
  var x = r * c * (f + (1 - u + h) * f * f * f / 6 + (5 - 18 * u + u * u + 72 * h - 58 * a) * f * f * f * f * f / 120) + 5e5, T = r * (m + c * Math.tan(_) * (f * f / 2 + (5 - u + 9 * h + 4 * h * h) * f * f * f * f / 24 + (61 - 58 * u + u * u + 600 * h - 330 * a) * f * f * f * f * f * f / 720));
@@ -181071,7 +181071,7 @@ function Det(e) {
181071
181071
  northing: Math.round(T),
181072
181072
  easting: Math.round(x),
181073
181073
  zoneNumber: y,
181074
- zoneLetter: Oet(t)
181074
+ zoneLetter: Ret(t)
181075
181075
  };
181076
181076
  }
181077
181077
  function NL(e) {
@@ -181105,23 +181105,23 @@ function NL(e) {
181105
181105
  };
181106
181106
  return N;
181107
181107
  }
181108
- function Oet(e) {
181108
+ function Ret(e) {
181109
181109
  var t = "Z";
181110
181110
  return 84 >= e && e >= 72 ? t = "X" : 72 > e && e >= 64 ? t = "W" : 64 > e && e >= 56 ? t = "V" : 56 > e && e >= 48 ? t = "U" : 48 > e && e >= 40 ? t = "T" : 40 > e && e >= 32 ? t = "S" : 32 > e && e >= 24 ? t = "R" : 24 > e && e >= 16 ? t = "Q" : 16 > e && e >= 8 ? t = "P" : 8 > e && e >= 0 ? t = "N" : 0 > e && e >= -8 ? t = "M" : -8 > e && e >= -16 ? t = "L" : -16 > e && e >= -24 ? t = "K" : -24 > e && e >= -32 ? t = "J" : -32 > e && e >= -40 ? t = "H" : -40 > e && e >= -48 ? t = "G" : -48 > e && e >= -56 ? t = "F" : -56 > e && e >= -64 ? t = "E" : -64 > e && e >= -72 ? t = "D" : -72 > e && e >= -80 && (t = "C"), t;
181111
181111
  }
181112
- function Ret(e, t) {
181112
+ function Met(e, t) {
181113
181113
  var n = "00000" + e.easting, i = "00000" + e.northing;
181114
- return e.zoneNumber + e.zoneLetter + Met(e.easting, e.northing, e.zoneNumber) + n.substr(n.length - 5, t) + i.substr(i.length - 5, t);
181114
+ return e.zoneNumber + e.zoneLetter + Net(e.easting, e.northing, e.zoneNumber) + n.substr(n.length - 5, t) + i.substr(i.length - 5, t);
181115
181115
  }
181116
- function Met(e, t, n) {
181116
+ function Net(e, t, n) {
181117
181117
  var i = WJ(n), o = Math.floor(e / 1e5), r = Math.floor(t / 1e5) % 20;
181118
- return Net(o, r, i);
181118
+ return Let(o, r, i);
181119
181119
  }
181120
181120
  function WJ(e) {
181121
181121
  var t = e % fV;
181122
181122
  return t === 0 && (t = fV), t;
181123
181123
  }
181124
- function Net(e, t, n) {
181124
+ function Let(e, t, n) {
181125
181125
  var i = n - 1, o = VJ.charCodeAt(i), r = HJ.charCodeAt(i), s = o + e - 1, a = r + t, c = !1;
181126
181126
  s > dy && (s = s - dy + mg - 1, c = !0), (s === Fa || o < Fa && s > Fa || (s > Fa || o < Fa) && c) && s++, (s === Qc || o < Qc && s > Qc || (s > Qc || o < Qc) && c) && (s++, s === Fa && s++), s > dy && (s = s - dy + mg - 1), a > hy ? (a = a - hy + mg - 1, c = !0) : c = !1, (a === Fa || r < Fa && a > Fa || (a > Fa || r < Fa) && c) && a++, (a === Qc || r < Qc && a > Qc || (a > Qc || r < Qc) && c) && (a++, a === Fa && a++), a > hy && (a = a - hy + mg - 1);
181127
181127
  var u = String.fromCharCode(s) + String.fromCharCode(a);
@@ -181142,7 +181142,7 @@ function $J(e) {
181142
181142
  if (a <= "A" || a === "B" || a === "Y" || a >= "Z" || a === "I" || a === "O")
181143
181143
  throw "MGRSPoint zone letter " + a + " not handled: " + e;
181144
181144
  n = e.substring(r, r += 2);
181145
- for (var c = WJ(s), u = Let(n.charAt(0), c), h = Fet(n.charAt(1), c); h < Bet(a); )
181145
+ for (var c = WJ(s), u = Fet(n.charAt(0), c), h = Bet(n.charAt(1), c); h < ket(a); )
181146
181146
  h += 2e6;
181147
181147
  var f = t - r;
181148
181148
  if (f % 2 !== 0)
@@ -181159,7 +181159,7 @@ northing meters` + e;
181159
181159
  accuracy: A
181160
181160
  };
181161
181161
  }
181162
- function Let(e, t) {
181162
+ function Fet(e, t) {
181163
181163
  for (var n = VJ.charCodeAt(t - 1), i = 1e5, o = !1; n !== e.charCodeAt(0); ) {
181164
181164
  if (n++, n === Fa && n++, n === Qc && n++, n > dy) {
181165
181165
  if (o)
@@ -181170,7 +181170,7 @@ function Let(e, t) {
181170
181170
  }
181171
181171
  return i;
181172
181172
  }
181173
- function Fet(e, t) {
181173
+ function Bet(e, t) {
181174
181174
  if (e > "V")
181175
181175
  throw "MGRSPoint given invalid Northing " + e;
181176
181176
  for (var n = HJ.charCodeAt(t - 1), i = 0, o = !1; n !== e.charCodeAt(0); ) {
@@ -181183,7 +181183,7 @@ function Fet(e, t) {
181183
181183
  }
181184
181184
  return i;
181185
181185
  }
181186
- function Bet(e) {
181186
+ function ket(e) {
181187
181187
  var t;
181188
181188
  switch (e) {
181189
181189
  case "C":
@@ -181273,29 +181273,29 @@ c_.fromMGRS = function(e) {
181273
181273
  c_.prototype.toMGRS = function(e) {
181274
181274
  return GJ([this.x, this.y], e);
181275
181275
  };
181276
- var ket = 1, zet = 0.25, pV = 0.046875, gV = 0.01953125, _V = 0.01068115234375, jet = 0.75, Uet = 0.46875, Vet = 0.013020833333333334, Het = 0.007120768229166667, Get = 0.3645833333333333, qet = 0.005696614583333333, Wet = 0.3076171875;
181276
+ var zet = 1, jet = 0.25, pV = 0.046875, gV = 0.01953125, _V = 0.01068115234375, Uet = 0.75, Vet = 0.46875, Het = 0.013020833333333334, Get = 0.007120768229166667, qet = 0.3645833333333333, Wet = 0.005696614583333333, $et = 0.3076171875;
181277
181277
  function LL(e) {
181278
181278
  var t = [];
181279
- t[0] = ket - e * (zet + e * (pV + e * (gV + e * _V))), t[1] = e * (jet - e * (pV + e * (gV + e * _V)));
181279
+ t[0] = zet - e * (jet + e * (pV + e * (gV + e * _V))), t[1] = e * (Uet - e * (pV + e * (gV + e * _V)));
181280
181280
  var n = e * e;
181281
- return t[2] = n * (Uet - e * (Vet + e * Het)), n *= e, t[3] = n * (Get - e * qet), t[4] = n * e * Wet, t;
181281
+ return t[2] = n * (Vet - e * (Het + e * Get)), n *= e, t[3] = n * (qet - e * Wet), t[4] = n * e * $et, t;
181282
181282
  }
181283
181283
  function z_(e, t, n, i) {
181284
181284
  return n *= t, t *= t, i[0] * e - n * (i[1] + t * (i[2] + t * (i[3] + t * i[4])));
181285
181285
  }
181286
- var $et = 20;
181286
+ var Yet = 20;
181287
181287
  function FL(e, t, n) {
181288
- for (var i = 1 / (1 - t), o = e, r = $et; r; --r) {
181288
+ for (var i = 1 / (1 - t), o = e, r = Yet; r; --r) {
181289
181289
  var s = Math.sin(o), a = 1 - t * s * s;
181290
181290
  if (a = (z_(o, s, Math.cos(o), n) - e) * (a * Math.sqrt(a)) * i, o -= a, Math.abs(a) < Tt)
181291
181291
  return o;
181292
181292
  }
181293
181293
  return o;
181294
181294
  }
181295
- function Yet() {
181295
+ function Xet() {
181296
181296
  this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0, this.lat0 = this.lat0 !== void 0 ? this.lat0 : 0, this.es && (this.en = LL(this.es), this.ml0 = z_(this.lat0, Math.sin(this.lat0), Math.cos(this.lat0), this.en));
181297
181297
  }
181298
- function Xet(e) {
181298
+ function Ket(e) {
181299
181299
  var t = e.x, n = e.y, i = wt(t - this.long0, this.over), o, r, s, a = Math.sin(n), c = Math.cos(n);
181300
181300
  if (this.es) {
181301
181301
  var h = c * i, f = Math.pow(h, 2), m = this.ep2 * Math.pow(c, 2), _ = Math.pow(m, 2), p = Math.abs(c) > Tt ? Math.tan(n) : 0, A = Math.pow(p, 2), y = Math.pow(A, 2);
@@ -181316,7 +181316,7 @@ function Xet(e) {
181316
181316
  }
181317
181317
  return e.x = r, e.y = s, e;
181318
181318
  }
181319
- function Ket(e) {
181319
+ function Jet(e) {
181320
181320
  var t, n, i, o, r = (e.x - this.x0) * (1 / this.a), s = (e.y - this.y0) * (1 / this.a);
181321
181321
  if (this.es)
181322
181322
  if (t = this.ml0 + s / this.k0, n = FL(t, this.es, this.en), Math.abs(n) < rt) {
@@ -181332,12 +181332,12 @@ function Ket(e) {
181332
181332
  }
181333
181333
  return e.x = o, e.y = i, e;
181334
181334
  }
181335
- var Jet = ["Fast_Transverse_Mercator", "Fast Transverse Mercator"];
181335
+ var Qet = ["Fast_Transverse_Mercator", "Fast Transverse Mercator"];
181336
181336
  const HE = {
181337
- init: Yet,
181338
- forward: Xet,
181339
- inverse: Ket,
181340
- names: Jet
181337
+ init: Xet,
181338
+ forward: Ket,
181339
+ inverse: Jet,
181340
+ names: Qet
181341
181341
  };
181342
181342
  function YJ(e) {
181343
181343
  var t = Math.exp(e);
@@ -181348,53 +181348,53 @@ function ja(e, t) {
181348
181348
  var n = Math.max(e, t), i = Math.min(e, t) / (n || 1);
181349
181349
  return n * Math.sqrt(1 + Math.pow(i, 2));
181350
181350
  }
181351
- function Qet(e) {
181351
+ function Zet(e) {
181352
181352
  var t = 1 + e, n = t - 1;
181353
181353
  return n === 0 ? e : e * Math.log(t) / n;
181354
181354
  }
181355
- function Zet(e) {
181355
+ function ett(e) {
181356
181356
  var t = Math.abs(e);
181357
- return t = Qet(t * (1 + t / (ja(1, t) + 1))), e < 0 ? -t : t;
181357
+ return t = Zet(t * (1 + t / (ja(1, t) + 1))), e < 0 ? -t : t;
181358
181358
  }
181359
181359
  function BL(e, t) {
181360
181360
  for (var n = 2 * Math.cos(2 * t), i = e.length - 1, o = e[i], r = 0, s; --i >= 0; )
181361
181361
  s = -r + n * o + e[i], r = o, o = s;
181362
181362
  return t + s * Math.sin(2 * t);
181363
181363
  }
181364
- function ett(e, t) {
181364
+ function ttt(e, t) {
181365
181365
  for (var n = 2 * Math.cos(t), i = e.length - 1, o = e[i], r = 0, s; --i >= 0; )
181366
181366
  s = -r + n * o + e[i], r = o, o = s;
181367
181367
  return Math.sin(t) * s;
181368
181368
  }
181369
- function ttt(e) {
181369
+ function ntt(e) {
181370
181370
  var t = Math.exp(e);
181371
181371
  return t = (t + 1 / t) / 2, t;
181372
181372
  }
181373
181373
  function XJ(e, t, n) {
181374
- for (var i = Math.sin(t), o = Math.cos(t), r = YJ(n), s = ttt(n), a = 2 * o * s, c = -2 * i * r, u = e.length - 1, h = e[u], f = 0, m = 0, _ = 0, p, A; --u >= 0; )
181374
+ for (var i = Math.sin(t), o = Math.cos(t), r = YJ(n), s = ntt(n), a = 2 * o * s, c = -2 * i * r, u = e.length - 1, h = e[u], f = 0, m = 0, _ = 0, p, A; --u >= 0; )
181375
181375
  p = m, A = f, m = h, f = _, h = -p + a * m - c * f + e[u], _ = -A + c * m + a * f;
181376
181376
  return a = i * s, c = o * r, [a * h - c * _, a * _ + c * h];
181377
181377
  }
181378
- function ntt() {
181378
+ function itt() {
181379
181379
  if (!this.approx && (isNaN(this.es) || this.es <= 0))
181380
181380
  throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');
181381
181381
  this.approx && (HE.init.apply(this), this.forward = HE.forward, this.inverse = HE.inverse), this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0, this.lat0 = this.lat0 !== void 0 ? this.lat0 : 0, this.cgb = [], this.cbg = [], this.utg = [], this.gtu = [];
181382
181382
  var e = this.es / (1 + Math.sqrt(1 - this.es)), t = e / (2 - e), n = t;
181383
181383
  this.cgb[0] = t * (2 + t * (-2 / 3 + t * (-2 + t * (116 / 45 + t * (26 / 45 + t * (-2854 / 675)))))), this.cbg[0] = t * (-2 + t * (2 / 3 + t * (4 / 3 + t * (-82 / 45 + t * (32 / 45 + t * (4642 / 4725)))))), n = n * t, this.cgb[1] = n * (7 / 3 + t * (-8 / 5 + t * (-227 / 45 + t * (2704 / 315 + t * (2323 / 945))))), this.cbg[1] = n * (5 / 3 + t * (-16 / 15 + t * (-13 / 9 + t * (904 / 315 + t * (-1522 / 945))))), n = n * t, this.cgb[2] = n * (56 / 15 + t * (-136 / 35 + t * (-1262 / 105 + t * (73814 / 2835)))), this.cbg[2] = n * (-26 / 15 + t * (34 / 21 + t * (8 / 5 + t * (-12686 / 2835)))), n = n * t, this.cgb[3] = n * (4279 / 630 + t * (-332 / 35 + t * (-399572 / 14175))), this.cbg[3] = n * (1237 / 630 + t * (-12 / 5 + t * (-24832 / 14175))), n = n * t, this.cgb[4] = n * (4174 / 315 + t * (-144838 / 6237)), this.cbg[4] = n * (-734 / 315 + t * (109598 / 31185)), n = n * t, this.cgb[5] = n * (601676 / 22275), this.cbg[5] = n * (444337 / 155925), n = Math.pow(t, 2), this.Qn = this.k0 / (1 + t) * (1 + n * (1 / 4 + n * (1 / 64 + n / 256))), this.utg[0] = t * (-0.5 + t * (2 / 3 + t * (-37 / 96 + t * (1 / 360 + t * (81 / 512 + t * (-96199 / 604800)))))), this.gtu[0] = t * (0.5 + t * (-2 / 3 + t * (5 / 16 + t * (41 / 180 + t * (-127 / 288 + t * (7891 / 37800)))))), this.utg[1] = n * (-1 / 48 + t * (-1 / 15 + t * (437 / 1440 + t * (-46 / 105 + t * (1118711 / 3870720))))), this.gtu[1] = n * (13 / 48 + t * (-3 / 5 + t * (557 / 1440 + t * (281 / 630 + t * (-1983433 / 1935360))))), n = n * t, this.utg[2] = n * (-17 / 480 + t * (37 / 840 + t * (209 / 4480 + t * (-5569 / 90720)))), this.gtu[2] = n * (61 / 240 + t * (-103 / 140 + t * (15061 / 26880 + t * (167603 / 181440)))), n = n * t, this.utg[3] = n * (-4397 / 161280 + t * (11 / 504 + t * (830251 / 7257600))), this.gtu[3] = n * (49561 / 161280 + t * (-179 / 168 + t * (6601661 / 7257600))), n = n * t, this.utg[4] = n * (-4583 / 161280 + t * (108847 / 3991680)), this.gtu[4] = n * (34729 / 80640 + t * (-3418889 / 1995840)), n = n * t, this.utg[5] = n * (-20648693 / 638668800), this.gtu[5] = n * (212378941 / 319334400);
181384
181384
  var i = BL(this.cbg, this.lat0);
181385
- this.Zb = -this.Qn * (i + ett(this.gtu, 2 * i));
181385
+ this.Zb = -this.Qn * (i + ttt(this.gtu, 2 * i));
181386
181386
  }
181387
- function itt(e) {
181387
+ function ott(e) {
181388
181388
  var t = wt(e.x - this.long0, this.over), n = e.y;
181389
181389
  n = BL(this.cbg, n);
181390
181390
  var i = Math.sin(n), o = Math.cos(n), r = Math.sin(t), s = Math.cos(t);
181391
- n = Math.atan2(i, s * o), t = Math.atan2(r * o, ja(i, o * s)), t = Zet(Math.tan(t));
181391
+ n = Math.atan2(i, s * o), t = Math.atan2(r * o, ja(i, o * s)), t = ett(Math.tan(t));
181392
181392
  var a = XJ(this.gtu, 2 * n, 2 * t);
181393
181393
  n = n + a[0], t = t + a[1];
181394
181394
  var c, u;
181395
181395
  return Math.abs(t) <= 2.623395162778 ? (c = this.a * (this.Qn * t) + this.x0, u = this.a * (this.Qn * n + this.Zb) + this.y0) : (c = 1 / 0, u = 1 / 0), e.x = c, e.y = u, e;
181396
181396
  }
181397
- function ott(e) {
181397
+ function rtt(e) {
181398
181398
  var t = (e.x - this.x0) * (1 / this.a), n = (e.y - this.y0) * (1 / this.a);
181399
181399
  n = (n - this.Zb) / this.Qn, t = t / this.Qn;
181400
181400
  var i, o;
@@ -181407,14 +181407,14 @@ function ott(e) {
181407
181407
  i = 1 / 0, o = 1 / 0;
181408
181408
  return e.x = i, e.y = o, e;
181409
181409
  }
181410
- var rtt = ["Extended_Transverse_Mercator", "Extended Transverse Mercator", "etmerc", "Transverse_Mercator", "Transverse Mercator", "Gauss Kruger", "Gauss_Kruger", "tmerc"];
181410
+ var stt = ["Extended_Transverse_Mercator", "Extended Transverse Mercator", "etmerc", "Transverse_Mercator", "Transverse Mercator", "Gauss Kruger", "Gauss_Kruger", "tmerc"];
181411
181411
  const GE = {
181412
- init: ntt,
181413
- forward: itt,
181414
- inverse: ott,
181415
- names: rtt
181412
+ init: itt,
181413
+ forward: ott,
181414
+ inverse: rtt,
181415
+ names: stt
181416
181416
  };
181417
- function stt(e, t) {
181417
+ function att(e, t) {
181418
181418
  if (e === void 0) {
181419
181419
  if (e = Math.floor((wt(t) + Math.PI) * 30 / Math.PI) + 1, e < 0)
181420
181420
  return 0;
@@ -181423,49 +181423,49 @@ function stt(e, t) {
181423
181423
  }
181424
181424
  return e;
181425
181425
  }
181426
- var att = "etmerc";
181427
- function ctt() {
181428
- var e = stt(this.zone, this.long0);
181426
+ var ctt = "etmerc";
181427
+ function ltt() {
181428
+ var e = att(this.zone, this.long0);
181429
181429
  if (e === void 0)
181430
181430
  throw new Error("unknown utm zone");
181431
181431
  this.lat0 = 0, this.long0 = (6 * Math.abs(e) - 183) * Zo, this.x0 = 5e5, this.y0 = this.utmSouth ? 1e7 : 0, this.k0 = 0.9996, GE.init.apply(this), this.forward = GE.forward, this.inverse = GE.inverse;
181432
181432
  }
181433
- var ltt = ["Universal Transverse Mercator System", "utm"];
181434
- const utt = {
181435
- init: ctt,
181436
- names: ltt,
181437
- dependsOn: att
181433
+ var utt = ["Universal Transverse Mercator System", "utm"];
181434
+ const htt = {
181435
+ init: ltt,
181436
+ names: utt,
181437
+ dependsOn: ctt
181438
181438
  };
181439
181439
  function kL(e, t) {
181440
181440
  return Math.pow((1 - e) / (1 + e), t);
181441
181441
  }
181442
- var htt = 20;
181443
- function dtt() {
181442
+ var dtt = 20;
181443
+ function ftt() {
181444
181444
  var e = Math.sin(this.lat0), t = Math.cos(this.lat0);
181445
181445
  t *= t, this.rc = Math.sqrt(1 - this.es) / (1 - this.es * e * e), this.C = Math.sqrt(1 + this.es * t * t / (1 - this.es)), this.phic0 = Math.asin(e / this.C), this.ratexp = 0.5 * this.C * this.e, this.K = Math.tan(0.5 * this.phic0 + Li) / (Math.pow(Math.tan(0.5 * this.lat0 + Li), this.C) * kL(this.e * e, this.ratexp));
181446
181446
  }
181447
- function ftt(e) {
181447
+ function mtt(e) {
181448
181448
  var t = e.x, n = e.y;
181449
181449
  return e.y = 2 * Math.atan(this.K * Math.pow(Math.tan(0.5 * n + Li), this.C) * kL(this.e * Math.sin(n), this.ratexp)) - rt, e.x = this.C * t, e;
181450
181450
  }
181451
- function mtt(e) {
181452
- for (var t = 1e-14, n = e.x / this.C, i = e.y, o = Math.pow(Math.tan(0.5 * i + Li) / this.K, 1 / this.C), r = htt; r > 0 && (i = 2 * Math.atan(o * kL(this.e * Math.sin(e.y), -0.5 * this.e)) - rt, !(Math.abs(i - e.y) < t)); --r)
181451
+ function ptt(e) {
181452
+ for (var t = 1e-14, n = e.x / this.C, i = e.y, o = Math.pow(Math.tan(0.5 * i + Li) / this.K, 1 / this.C), r = dtt; r > 0 && (i = 2 * Math.atan(o * kL(this.e * Math.sin(e.y), -0.5 * this.e)) - rt, !(Math.abs(i - e.y) < t)); --r)
181453
181453
  e.y = i;
181454
181454
  return r ? (e.x = n, e.y = i, e) : null;
181455
181455
  }
181456
181456
  const zL = {
181457
- init: dtt,
181458
- forward: ftt,
181459
- inverse: mtt
181457
+ init: ftt,
181458
+ forward: mtt,
181459
+ inverse: ptt
181460
181460
  };
181461
- function ptt() {
181461
+ function gtt() {
181462
181462
  zL.init.apply(this), this.rc && (this.sinc0 = Math.sin(this.phic0), this.cosc0 = Math.cos(this.phic0), this.R2 = 2 * this.rc, this.title || (this.title = "Oblique Stereographic Alternative"));
181463
181463
  }
181464
- function gtt(e) {
181464
+ function _tt(e) {
181465
181465
  var t, n, i, o;
181466
181466
  return e.x = wt(e.x - this.long0, this.over), zL.forward.apply(this, [e]), t = Math.sin(e.y), n = Math.cos(e.y), i = Math.cos(e.x), o = this.k0 * this.R2 / (1 + this.sinc0 * t + this.cosc0 * n * i), e.x = o * n * Math.sin(e.x), e.y = o * (this.cosc0 * t - this.sinc0 * n * i), e.x = this.a * e.x + this.x0, e.y = this.a * e.y + this.y0, e;
181467
181467
  }
181468
- function _tt(e) {
181468
+ function Att(e) {
181469
181469
  var t, n, i, o, r;
181470
181470
  if (e.x = (e.x - this.x0) / this.a, e.y = (e.y - this.y0) / this.a, e.x /= this.k0, e.y /= this.k0, r = ja(e.x, e.y)) {
181471
181471
  var s = 2 * Math.atan2(r, this.R2);
@@ -181474,24 +181474,24 @@ function _tt(e) {
181474
181474
  o = this.phic0, i = 0;
181475
181475
  return e.x = i, e.y = o, zL.inverse.apply(this, [e]), e.x = wt(e.x + this.long0, this.over), e;
181476
181476
  }
181477
- var Att = ["Stereographic_North_Pole", "Oblique_Stereographic", "sterea", "Oblique Stereographic Alternative", "Double_Stereographic"];
181478
- const ytt = {
181479
- init: ptt,
181480
- forward: gtt,
181481
- inverse: _tt,
181482
- names: Att
181477
+ var ytt = ["Stereographic_North_Pole", "Oblique_Stereographic", "sterea", "Oblique Stereographic Alternative", "Double_Stereographic"];
181478
+ const btt = {
181479
+ init: gtt,
181480
+ forward: _tt,
181481
+ inverse: Att,
181482
+ names: ytt
181483
181483
  };
181484
181484
  function jL(e, t, n) {
181485
181485
  return t *= n, Math.tan(0.5 * (rt + e)) * Math.pow((1 - t) / (1 + t), 0.5 * n);
181486
181486
  }
181487
- function btt() {
181487
+ function xtt() {
181488
181488
  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) <= Tt && (this.k0 = 0.5 * (1 + Ex(this.lat0) * Math.sin(this.lat_ts))) : (Math.abs(this.coslat0) <= Tt && (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) <= Tt && Math.abs(Math.cos(this.lat_ts)) > Tt && (this.k0 = 0.5 * this.cons * Yu(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)) / nu(this.e, this.con * this.lat_ts, this.con * Math.sin(this.lat_ts))), this.ms1 = Yu(this.e, this.sinlat0, this.coslat0), this.X0 = 2 * Math.atan(jL(this.lat0, this.sinlat0, this.e)) - rt, this.cosX0 = Math.cos(this.X0), this.sinX0 = Math.sin(this.X0));
181489
181489
  }
181490
- function xtt(e) {
181490
+ function Ttt(e) {
181491
181491
  var t = e.x, n = e.y, i = Math.sin(n), o = Math.cos(n), r, s, a, c, u, h, f = wt(t - this.long0, this.over);
181492
181492
  return Math.abs(Math.abs(t - this.long0) - Math.PI) <= Tt && Math.abs(n + this.lat0) <= Tt ? (e.x = NaN, e.y = NaN, e) : this.sphere ? (r = 2 * this.k0 / (1 + this.sinlat0 * i + this.coslat0 * o * Math.cos(f)), e.x = this.a * r * o * Math.sin(f) + this.x0, e.y = this.a * r * (this.coslat0 * i - this.sinlat0 * o * Math.cos(f)) + this.y0, e) : (s = 2 * Math.atan(jL(n, i, this.e)) - rt, c = Math.cos(s), a = Math.sin(s), Math.abs(this.coslat0) <= Tt ? (u = nu(this.e, n * this.con, this.con * i), h = 2 * this.a * this.k0 * u / this.cons, e.x = this.x0 + h * Math.sin(t - this.long0), e.y = this.y0 - this.con * h * Math.cos(t - this.long0), e) : (Math.abs(this.sinlat0) < Tt ? (r = 2 * this.a * this.k0 / (1 + c * Math.cos(f)), e.y = r * a) : (r = 2 * this.a * this.k0 * this.ms1 / (this.cosX0 * (1 + this.sinX0 * a + this.cosX0 * c * Math.cos(f))), e.y = r * (this.cosX0 * a - this.sinX0 * c * Math.cos(f)) + this.y0), e.x = r * c * Math.sin(f) + this.x0, e));
181493
181493
  }
181494
- function Ttt(e) {
181494
+ function vtt(e) {
181495
181495
  e.x -= this.x0, e.y -= this.y0;
181496
181496
  var t, n, i, o, r, s = Math.sqrt(e.x * e.x + e.y * e.y);
181497
181497
  if (this.sphere) {
@@ -181505,15 +181505,15 @@ function Ttt(e) {
181505
181505
  o = 2 * Math.atan(s * this.cosX0 / (2 * this.a * this.k0 * this.ms1)), t = this.long0, s <= Tt ? r = this.X0 : (r = Math.asin(Math.cos(o) * this.sinX0 + e.y * Math.sin(o) * this.cosX0 / s), t = wt(this.long0 + Math.atan2(e.x * Math.sin(o), s * this.cosX0 * Math.cos(o) - e.y * this.sinX0 * Math.sin(o)), this.over)), n = -1 * Ib(this.e, Math.tan(0.5 * (rt + r)));
181506
181506
  return e.x = t, e.y = n, e;
181507
181507
  }
181508
- var vtt = ["stere", "Stereographic_South_Pole", "Polar_Stereographic_variant_A", "Polar_Stereographic_variant_B", "Polar_Stereographic"];
181509
- const Ett = {
181510
- init: btt,
181511
- forward: xtt,
181512
- inverse: Ttt,
181513
- names: vtt,
181508
+ var Ett = ["stere", "Stereographic_South_Pole", "Polar_Stereographic_variant_A", "Polar_Stereographic_variant_B", "Polar_Stereographic"];
181509
+ const Ctt = {
181510
+ init: xtt,
181511
+ forward: Ttt,
181512
+ inverse: vtt,
181513
+ names: Ett,
181514
181514
  ssfn_: jL
181515
181515
  };
181516
- function Ctt() {
181516
+ function wtt() {
181517
181517
  var e = this.lat0;
181518
181518
  this.lambda0 = this.long0;
181519
181519
  var t = Math.sin(e), n = this.a, i = this.rf, o = 1 / i, r = 2 * o - Math.pow(o, 2), s = this.e = Math.sqrt(r);
@@ -181521,11 +181521,11 @@ function Ctt() {
181521
181521
  var a = Math.log(Math.tan(Math.PI / 4 + this.b0 / 2)), c = Math.log(Math.tan(Math.PI / 4 + e / 2)), u = Math.log((1 + s * t) / (1 - s * t));
181522
181522
  this.K = a - this.alpha * c + this.alpha * s / 2 * u;
181523
181523
  }
181524
- function wtt(e) {
181524
+ function Stt(e) {
181525
181525
  var t = Math.log(Math.tan(Math.PI / 4 - e.y / 2)), n = this.e / 2 * Math.log((1 + this.e * Math.sin(e.y)) / (1 - this.e * Math.sin(e.y))), i = -this.alpha * (t + n) + this.K, o = 2 * (Math.atan(Math.exp(i)) - Math.PI / 4), r = this.alpha * (e.x - this.lambda0), s = Math.atan(Math.sin(r) / (Math.sin(this.b0) * Math.tan(o) + Math.cos(this.b0) * Math.cos(r))), a = Math.asin(Math.cos(this.b0) * Math.sin(o) - Math.sin(this.b0) * Math.cos(o) * Math.cos(r));
181526
181526
  return e.y = this.R / 2 * Math.log((1 + Math.sin(a)) / (1 - Math.sin(a))) + this.y0, e.x = this.R * s + this.x0, e;
181527
181527
  }
181528
- function Stt(e) {
181528
+ function Itt(e) {
181529
181529
  for (var t = e.x - this.x0, n = e.y - this.y0, i = t / this.R, o = 2 * (Math.atan(Math.exp(n / this.R)) - Math.PI / 4), r = Math.asin(Math.cos(this.b0) * Math.sin(o) + Math.sin(this.b0) * Math.cos(o) * Math.cos(i)), s = Math.atan(Math.sin(i) / (Math.cos(this.b0) * Math.cos(i) - Math.sin(this.b0) * Math.tan(o))), a = this.lambda0 + s / this.alpha, c = 0, u = r, h = -1e3, f = 0; Math.abs(u - h) > 1e-7; ) {
181530
181530
  if (++f > 20)
181531
181531
  return;
@@ -181533,21 +181533,21 @@ function Stt(e) {
181533
181533
  }
181534
181534
  return e.x = a, e.y = u, e;
181535
181535
  }
181536
- var Itt = ["somerc"];
181537
- const Ptt = {
181538
- init: Ctt,
181539
- forward: wtt,
181540
- inverse: Stt,
181541
- names: Itt
181536
+ var Ptt = ["somerc"];
181537
+ const Dtt = {
181538
+ init: wtt,
181539
+ forward: Stt,
181540
+ inverse: Itt,
181541
+ names: Ptt
181542
181542
  };
181543
181543
  var rg = 1e-7;
181544
- function Dtt(e) {
181544
+ function Ott(e) {
181545
181545
  var t = ["Hotine_Oblique_Mercator", "Hotine_Oblique_Mercator_variant_A", "Hotine_Oblique_Mercator_Azimuth_Natural_Origin"], n = typeof e.projName == "object" ? Object.keys(e.projName)[0] : e.projName;
181546
181546
  return "no_uoff" in e || "no_off" in e || t.indexOf(n) !== -1 || t.indexOf(kJ(n)) !== -1;
181547
181547
  }
181548
- function Ott() {
181548
+ function Rtt() {
181549
181549
  var e, t, n, i, o, r, s, a, c, u, h = 0, f, m = 0, _ = 0, p = 0, A = 0, y = 0, x = 0;
181550
- this.no_off = Dtt(this), this.no_rot = "no_rot" in this;
181550
+ this.no_off = Ott(this), this.no_rot = "no_rot" in this;
181551
181551
  var T = !1;
181552
181552
  "alpha" in this && (T = !0);
181553
181553
  var E = !1;
@@ -181558,7 +181558,7 @@ function Ott() {
181558
181558
  var v = 1 - this.es;
181559
181559
  t = Math.sqrt(v), Math.abs(this.lat0) > Tt ? (a = Math.sin(this.lat0), n = Math.cos(this.lat0), e = 1 - this.es * a * a, this.B = n * n, this.B = Math.sqrt(1 + this.es * this.B * this.B / v), this.A = this.B * this.k0 * t / e, i = this.B * t / (n * Math.sqrt(e)), o = i * i - 1, o <= 0 ? o = 0 : (o = Math.sqrt(o), this.lat0 < 0 && (o = -o)), this.E = o += i, this.E *= Math.pow(nu(this.e, this.lat0, a), this.B)) : (this.B = 1 / t, this.A = this.k0, this.E = i = o = 1), T || E ? (T ? (f = Math.asin(Math.sin(x) / i), E || (h = x)) : (f = h, x = Math.asin(i * Math.sin(f))), this.lam0 = m - Math.asin(0.5 * (o - 1 / o) * Math.tan(f)) / this.B) : (r = Math.pow(nu(this.e, A, Math.sin(A)), this.B), s = Math.pow(nu(this.e, y, Math.sin(y)), this.B), o = this.E / r, c = (s - r) / (s + r), u = this.E * this.E, u = (u - s * r) / (u + s * r), e = _ - p, e < -Math.PI ? p -= wb : e > Math.PI && (p += wb), this.lam0 = wt(0.5 * (_ + p) - Math.atan(u * Math.tan(0.5 * this.B * (_ - p)) / c) / this.B, this.over), f = Math.atan(2 * Math.sin(this.B * wt(_ - this.lam0, this.over)) / (o - 1 / o)), h = x = Math.asin(i * Math.sin(f))), this.singam = Math.sin(f), this.cosgam = Math.cos(f), this.sinrot = Math.sin(h), this.cosrot = Math.cos(h), 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(i * i - 1) / Math.cos(x))), this.lat0 < 0 && (this.u_0 = -this.u_0)), o = 0.5 * f, this.v_pole_n = this.ArB * Math.log(Math.tan(Li - o)), this.v_pole_s = this.ArB * Math.log(Math.tan(Li + o));
181560
181560
  }
181561
- function Rtt(e) {
181561
+ function Mtt(e) {
181562
181562
  var t = {}, n, i, o, r, s, a, c, u;
181563
181563
  if (e.x = e.x - this.lam0, Math.abs(Math.abs(e.y) - rt) > Tt) {
181564
181564
  if (s = this.E / Math.pow(nu(this.e, e.y, Math.sin(e.y)), this.B), a = 1 / s, n = 0.5 * (s - a), i = 0.5 * (s + a), r = Math.sin(this.B * e.x), o = (n * this.singam - r * this.cosgam) / i, Math.abs(Math.abs(o) - 1) < Tt)
@@ -181568,7 +181568,7 @@ function Rtt(e) {
181568
181568
  u = e.y > 0 ? this.v_pole_n : this.v_pole_s, c = this.ArB * e.y;
181569
181569
  return this.no_rot ? (t.x = c, t.y = u) : (c -= this.u_0, t.x = u * this.cosrot + c * this.sinrot, t.y = c * this.cosrot - u * this.sinrot), t.x = this.a * t.x + this.x0, t.y = this.a * t.y + this.y0, t;
181570
181570
  }
181571
- function Mtt(e) {
181571
+ function Ntt(e) {
181572
181572
  var t, n, i, o, r, s, a, c = {};
181573
181573
  if (e.x = (e.x - this.x0) * (1 / this.a), e.y = (e.y - this.y0) * (1 / this.a), this.no_rot ? (n = e.y, t = e.x) : (n = e.x * this.cosrot - e.y * this.sinrot, t = e.y * this.cosrot + e.x * this.sinrot + this.u_0), i = Math.exp(-this.BrA * n), o = 0.5 * (i - 1 / i), r = 0.5 * (i + 1 / i), s = Math.sin(this.BrA * t), a = (s * this.cosgam + o * this.singam) / r, Math.abs(Math.abs(a) - 1) < Tt)
181574
181574
  c.x = 0, c.y = a < 0 ? -rt : rt;
@@ -181579,14 +181579,14 @@ function Mtt(e) {
181579
181579
  }
181580
181580
  return c.x += this.lam0, c;
181581
181581
  }
181582
- var Ntt = ["Hotine_Oblique_Mercator", "Hotine Oblique Mercator", "Hotine_Oblique_Mercator_variant_A", "Hotine_Oblique_Mercator_Variant_B", "Hotine_Oblique_Mercator_Azimuth_Natural_Origin", "Hotine_Oblique_Mercator_Two_Point_Natural_Origin", "Hotine_Oblique_Mercator_Azimuth_Center", "Oblique_Mercator", "omerc"];
181583
- const Ltt = {
181584
- init: Ott,
181585
- forward: Rtt,
181586
- inverse: Mtt,
181587
- names: Ntt
181582
+ var Ltt = ["Hotine_Oblique_Mercator", "Hotine Oblique Mercator", "Hotine_Oblique_Mercator_variant_A", "Hotine_Oblique_Mercator_Variant_B", "Hotine_Oblique_Mercator_Azimuth_Natural_Origin", "Hotine_Oblique_Mercator_Two_Point_Natural_Origin", "Hotine_Oblique_Mercator_Azimuth_Center", "Oblique_Mercator", "omerc"];
181583
+ const Ftt = {
181584
+ init: Rtt,
181585
+ forward: Mtt,
181586
+ inverse: Ntt,
181587
+ names: Ltt
181588
181588
  };
181589
- function Ftt() {
181589
+ function Btt() {
181590
181590
  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) < Tt)) {
181591
181591
  var e = this.b / this.a;
181592
181592
  this.e = Math.sqrt(1 - e * e);
@@ -181594,7 +181594,7 @@ function Ftt() {
181594
181594
  Math.abs(this.lat1 - this.lat2) > Tt ? this.ns = Math.log(i / a) / Math.log(o / c) : this.ns = t, isNaN(this.ns) && (this.ns = t), this.f0 = i / (this.ns * Math.pow(o, this.ns)), this.rh = this.a * this.f0 * Math.pow(u, this.ns), this.title || (this.title = "Lambert Conformal Conic");
181595
181595
  }
181596
181596
  }
181597
- function Btt(e) {
181597
+ function ktt(e) {
181598
181598
  var t = e.x, n = e.y;
181599
181599
  Math.abs(2 * Math.abs(n) - Math.PI) <= Tt && (n = Ex(n) * (rt - 2 * Tt));
181600
181600
  var i = Math.abs(Math.abs(n) - rt), o, r;
@@ -181608,7 +181608,7 @@ function Btt(e) {
181608
181608
  var s = this.ns * wt(t - this.long0, this.over);
181609
181609
  return e.x = this.k0 * (r * Math.sin(s)) + this.x0, e.y = this.k0 * (this.rh - r * Math.cos(s)) + this.y0, e;
181610
181610
  }
181611
- function ktt(e) {
181611
+ function ztt(e) {
181612
181612
  var t, n, i, o, r, s = (e.x - this.x0) / this.k0, a = this.rh - (e.y - this.y0) / this.k0;
181613
181613
  this.ns > 0 ? (t = Math.sqrt(s * s + a * a), n = 1) : (t = -Math.sqrt(s * s + a * a), n = -1);
181614
181614
  var c = 0;
@@ -181619,7 +181619,7 @@ function ktt(e) {
181619
181619
  o = -rt;
181620
181620
  return r = wt(c / this.ns + this.long0, this.over), e.x = r, e.y = o, e;
181621
181621
  }
181622
- var ztt = [
181622
+ var jtt = [
181623
181623
  "Lambert Tangential Conformal Conic Projection",
181624
181624
  "Lambert_Conformal_Conic",
181625
181625
  "Lambert_Conformal_Conic_1SP",
@@ -181628,20 +181628,20 @@ var ztt = [
181628
181628
  "Lambert Conic Conformal (1SP)",
181629
181629
  "Lambert Conic Conformal (2SP)"
181630
181630
  ];
181631
- const jtt = {
181632
- init: Ftt,
181633
- forward: Btt,
181634
- inverse: ktt,
181635
- names: ztt
181631
+ const Utt = {
181632
+ init: Btt,
181633
+ forward: ktt,
181634
+ inverse: ztt,
181635
+ names: jtt
181636
181636
  };
181637
- function Utt() {
181637
+ function Vtt() {
181638
181638
  this.a = 6377397155e-3, this.es = 0.006674372230614, this.e = Math.sqrt(this.es), this.lat0 || (this.lat0 = 0.863937979737193), this.long0 || (this.long0 = 0.7417649320975901 - 0.308341501185665), this.k0 || (this.k0 = 0.9999), this.s45 = 0.785398163397448, this.s90 = 2 * this.s45, this.fi0 = this.lat0, this.e2 = this.es, this.e = Math.sqrt(this.e2), this.alfa = Math.sqrt(1 + this.e2 * Math.pow(Math.cos(this.fi0), 4) / (1 - this.e2)), this.uq = 1.04216856380474, this.u0 = Math.asin(Math.sin(this.fi0) / this.alfa), this.g = Math.pow((1 + this.e * Math.sin(this.fi0)) / (1 - this.e * Math.sin(this.fi0)), this.alfa * this.e / 2), this.k = Math.tan(this.u0 / 2 + this.s45) / Math.pow(Math.tan(this.fi0 / 2 + this.s45), this.alfa) * this.g, this.k1 = this.k0, this.n0 = this.a * Math.sqrt(1 - this.e2) / (1 - this.e2 * Math.pow(Math.sin(this.fi0), 2)), this.s0 = 1.37008346281555, this.n = Math.sin(this.s0), this.ro0 = this.k1 * this.n0 / Math.tan(this.s0), this.ad = this.s90 - this.uq;
181639
181639
  }
181640
- function Vtt(e) {
181640
+ function Htt(e) {
181641
181641
  var t, n, i, o, r, s, a, c = e.x, u = e.y, h = wt(c - this.long0, this.over);
181642
181642
  return t = Math.pow((1 + this.e * Math.sin(u)) / (1 - this.e * Math.sin(u)), this.alfa * this.e / 2), n = 2 * (Math.atan(this.k * Math.pow(Math.tan(u / 2 + this.s45), this.alfa) / t) - this.s45), i = -h * this.alfa, o = Math.asin(Math.cos(this.ad) * Math.sin(n) + Math.sin(this.ad) * Math.cos(n) * Math.cos(i)), r = Math.asin(Math.cos(n) * Math.sin(i) / Math.cos(o)), s = this.n * r, a = this.ro0 * Math.pow(Math.tan(this.s0 / 2 + this.s45), this.n) / Math.pow(Math.tan(o / 2 + this.s45), this.n), e.y = a * Math.cos(s) / 1, e.x = a * Math.sin(s) / 1, this.czech || (e.y *= -1, e.x *= -1), e;
181643
181643
  }
181644
- function Htt(e) {
181644
+ function Gtt(e) {
181645
181645
  var t, n, i, o, r, s, a, c, u = e.x;
181646
181646
  e.x = e.y, e.y = u, this.czech || (e.y *= -1, e.x *= -1), s = Math.sqrt(e.x * e.x + e.y * e.y), r = Math.atan2(e.y, e.x), o = r / Math.sin(this.s0), i = 2 * (Math.atan(Math.pow(this.ro0 / s, 1 / this.n) * Math.tan(this.s0 / 2 + this.s45)) - this.s45), t = Math.asin(Math.cos(this.ad) * Math.sin(i) - Math.sin(this.ad) * Math.cos(i) * Math.cos(o)), n = Math.asin(Math.cos(i) * Math.sin(o) / Math.cos(t)), e.x = this.long0 - n / this.alfa, a = t, c = 0;
181647
181647
  var h = 0;
@@ -181650,12 +181650,12 @@ function Htt(e) {
181650
181650
  while (c === 0 && h < 15);
181651
181651
  return h >= 15 ? null : e;
181652
181652
  }
181653
- var Gtt = ["Krovak", "Krovak Modified", "Krovak (North Orientated)", "Krovak Modified (North Orientated)", "krovak"];
181654
- const qtt = {
181655
- init: Utt,
181656
- forward: Vtt,
181657
- inverse: Htt,
181658
- names: Gtt
181653
+ var qtt = ["Krovak", "Krovak Modified", "Krovak (North Orientated)", "Krovak Modified (North Orientated)", "krovak"];
181654
+ const Wtt = {
181655
+ init: Vtt,
181656
+ forward: Htt,
181657
+ inverse: Gtt,
181658
+ names: qtt
181659
181659
  };
181660
181660
  function ba(e, t, n, i, o) {
181661
181661
  return e * o - t * Math.sin(2 * o) + n * Math.sin(4 * o) - i * Math.sin(6 * o);
@@ -181687,10 +181687,10 @@ function HC(e, t, n, i, o) {
181687
181687
  return r;
181688
181688
  return NaN;
181689
181689
  }
181690
- function Wtt() {
181690
+ function $tt() {
181691
181691
  this.sphere || (this.e0 = Cx(this.es), this.e1 = wx(this.es), this.e2 = Sx(this.es), this.e3 = Ix(this.es), this.ml0 = this.a * ba(this.e0, this.e1, this.e2, this.e3, this.lat0));
181692
181692
  }
181693
- function $tt(e) {
181693
+ function Ytt(e) {
181694
181694
  var t, n, i = e.x, o = e.y;
181695
181695
  if (i = wt(i - this.long0, this.over), this.sphere)
181696
181696
  t = this.a * Math.asin(Math.cos(o) * Math.sin(i)), n = this.a * (Math.atan2(Math.tan(o), Math.cos(i)) - this.lat0);
@@ -181700,7 +181700,7 @@ function $tt(e) {
181700
181700
  }
181701
181701
  return e.x = t + this.x0, e.y = n + this.y0, e;
181702
181702
  }
181703
- function Ytt(e) {
181703
+ function Xtt(e) {
181704
181704
  e.x -= this.x0, e.y -= this.y0;
181705
181705
  var t = e.x / this.a, n = e.y / this.a, i, o;
181706
181706
  if (this.sphere) {
@@ -181715,28 +181715,28 @@ function Ytt(e) {
181715
181715
  }
181716
181716
  return e.x = wt(o + this.long0, this.over), e.y = Qf(i), e;
181717
181717
  }
181718
- var Xtt = ["Cassini", "Cassini_Soldner", "cass"];
181719
- const Ktt = {
181720
- init: Wtt,
181721
- forward: $tt,
181722
- inverse: Ytt,
181723
- names: Xtt
181718
+ var Ktt = ["Cassini", "Cassini_Soldner", "cass"];
181719
+ const Jtt = {
181720
+ init: $tt,
181721
+ forward: Ytt,
181722
+ inverse: Xtt,
181723
+ names: Ktt
181724
181724
  };
181725
181725
  function ju(e, t) {
181726
181726
  var n;
181727
181727
  return e > 1e-7 ? (n = e * t, (1 - e * e) * (t / (1 - n * n) - 0.5 / e * Math.log((1 - n) / (1 + n)))) : 2 * t;
181728
181728
  }
181729
- var Jtt = 0.3333333333333333, Qtt = 0.17222222222222222, Ztt = 0.10257936507936508, ent = 0.06388888888888888, tnt = 0.0664021164021164, nnt = 0.016415012942191543;
181729
+ var Qtt = 0.3333333333333333, Ztt = 0.17222222222222222, ent = 0.10257936507936508, tnt = 0.06388888888888888, nnt = 0.0664021164021164, int = 0.016415012942191543;
181730
181730
  function KJ(e) {
181731
181731
  var t, n = [];
181732
- return n[0] = e * Jtt, t = e * e, n[0] += t * Qtt, n[1] = t * ent, t *= e, n[0] += t * Ztt, n[1] += t * tnt, n[2] = t * nnt, n;
181732
+ return n[0] = e * Qtt, t = e * e, n[0] += t * Ztt, n[1] = t * tnt, t *= e, n[0] += t * ent, n[1] += t * nnt, n[2] = t * int, n;
181733
181733
  }
181734
181734
  function JJ(e, t) {
181735
181735
  var n = e + e;
181736
181736
  return e + t[0] * Math.sin(n) + t[1] * Math.sin(n + n) + t[2] * Math.sin(n + n + n);
181737
181737
  }
181738
181738
  var GR = 1, qR = 2, WR = 3, qE = 4;
181739
- function int() {
181739
+ function ont() {
181740
181740
  var e = Math.abs(this.lat0);
181741
181741
  if (Math.abs(e - rt) < Tt ? this.mode = this.lat0 < 0 ? GR : qR : Math.abs(e) < Tt ? this.mode = WR : this.mode = qE, this.es > 0) {
181742
181742
  var t;
@@ -181757,7 +181757,7 @@ function int() {
181757
181757
  } else
181758
181758
  this.mode === qE && (this.sinph0 = Math.sin(this.lat0), this.cosph0 = Math.cos(this.lat0));
181759
181759
  }
181760
- function ont(e) {
181760
+ function rnt(e) {
181761
181761
  var t, n, i, o, r, s, a, c, u, h, f = e.x, m = e.y;
181762
181762
  if (f = wt(f - this.long0, this.over), this.sphere) {
181763
181763
  if (r = Math.sin(m), h = Math.cos(m), i = Math.cos(f), this.mode === this.OBLIQ || this.mode === this.EQUIT) {
@@ -181799,7 +181799,7 @@ function ont(e) {
181799
181799
  }
181800
181800
  return e.x = this.a * t + this.x0, e.y = this.a * n + this.y0, e;
181801
181801
  }
181802
- function rnt(e) {
181802
+ function snt(e) {
181803
181803
  e.x -= this.x0, e.y -= this.y0;
181804
181804
  var t = e.x / this.a, n = e.y / this.a, i, o, r, s, a, c, u;
181805
181805
  if (this.sphere) {
@@ -181835,12 +181835,12 @@ function rnt(e) {
181835
181835
  }
181836
181836
  return e.x = wt(this.long0 + i, this.over), e.y = o, e;
181837
181837
  }
181838
- var snt = ["Lambert Azimuthal Equal Area", "Lambert_Azimuthal_Equal_Area", "laea"];
181839
- const ant = {
181840
- init: int,
181841
- forward: ont,
181842
- inverse: rnt,
181843
- names: snt,
181838
+ var ant = ["Lambert Azimuthal Equal Area", "Lambert_Azimuthal_Equal_Area", "laea"];
181839
+ const cnt = {
181840
+ init: ont,
181841
+ forward: rnt,
181842
+ inverse: snt,
181843
+ names: ant,
181844
181844
  S_POLE: GR,
181845
181845
  N_POLE: qR,
181846
181846
  EQUIT: WR,
@@ -181849,20 +181849,20 @@ const ant = {
181849
181849
  function Lf(e) {
181850
181850
  return Math.abs(e) > 1 && (e = e > 1 ? 1 : -1), Math.asin(e);
181851
181851
  }
181852
- function cnt() {
181852
+ function lnt() {
181853
181853
  Math.abs(this.lat1 + this.lat2) < Tt || (this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e3 = Math.sqrt(this.es), this.sin_po = Math.sin(this.lat1), this.cos_po = Math.cos(this.lat1), this.t1 = this.sin_po, this.con = this.sin_po, this.ms1 = Yu(this.e3, this.sin_po, this.cos_po), this.qs1 = ju(this.e3, this.sin_po), this.sin_po = Math.sin(this.lat2), this.cos_po = Math.cos(this.lat2), this.t2 = this.sin_po, this.ms2 = Yu(this.e3, this.sin_po, this.cos_po), this.qs2 = ju(this.e3, this.sin_po), this.sin_po = Math.sin(this.lat0), this.cos_po = Math.cos(this.lat0), this.t3 = this.sin_po, this.qs0 = ju(this.e3, this.sin_po), Math.abs(this.lat1 - this.lat2) > Tt ? this.ns0 = (this.ms1 * this.ms1 - this.ms2 * this.ms2) / (this.qs2 - this.qs1) : this.ns0 = this.con, this.c = this.ms1 * this.ms1 + this.ns0 * this.qs1, this.rh = this.a * Math.sqrt(this.c - this.ns0 * this.qs0) / this.ns0);
181854
181854
  }
181855
- function lnt(e) {
181855
+ function unt(e) {
181856
181856
  var t = e.x, n = e.y;
181857
181857
  this.sin_phi = Math.sin(n), this.cos_phi = Math.cos(n);
181858
181858
  var i = ju(this.e3, this.sin_phi), o = this.a * Math.sqrt(this.c - this.ns0 * i) / this.ns0, r = this.ns0 * wt(t - this.long0, this.over), s = o * Math.sin(r) + this.x0, a = this.rh - o * Math.cos(r) + this.y0;
181859
181859
  return e.x = s, e.y = a, e;
181860
181860
  }
181861
- function unt(e) {
181861
+ function hnt(e) {
181862
181862
  var t, n, i, o, r, s;
181863
181863
  return e.x -= this.x0, e.y = this.rh - e.y + this.y0, this.ns0 >= 0 ? (t = Math.sqrt(e.x * e.x + e.y * e.y), i = 1) : (t = -Math.sqrt(e.x * e.x + e.y * e.y), i = -1), o = 0, t !== 0 && (o = Math.atan2(i * e.x, i * e.y)), i = t * this.ns0 / this.a, this.sphere ? s = Math.asin((this.c - i * i) / (2 * this.ns0)) : (n = (this.c - i * i) / this.ns0, s = this.phi1z(this.e3, n)), r = wt(o / this.ns0 + this.long0, this.over), e.x = r, e.y = s, e;
181864
181864
  }
181865
- function hnt(e, t) {
181865
+ function dnt(e, t) {
181866
181866
  var n, i, o, r, s, a = Lf(0.5 * t);
181867
181867
  if (e < Tt)
181868
181868
  return a;
@@ -181871,33 +181871,33 @@ function hnt(e, t) {
181871
181871
  return a;
181872
181872
  return null;
181873
181873
  }
181874
- var dnt = ["Albers_Conic_Equal_Area", "Albers_Equal_Area", "Albers", "aea"];
181875
- const fnt = {
181876
- init: cnt,
181877
- forward: lnt,
181878
- inverse: unt,
181879
- names: dnt,
181880
- phi1z: hnt
181874
+ var fnt = ["Albers_Conic_Equal_Area", "Albers_Equal_Area", "Albers", "aea"];
181875
+ const mnt = {
181876
+ init: lnt,
181877
+ forward: unt,
181878
+ inverse: hnt,
181879
+ names: fnt,
181880
+ phi1z: dnt
181881
181881
  };
181882
- function mnt() {
181882
+ function pnt() {
181883
181883
  this.sin_p14 = Math.sin(this.lat0), this.cos_p14 = Math.cos(this.lat0), this.infinity_dist = 1e3 * this.a, this.rc = 1;
181884
181884
  }
181885
- function pnt(e) {
181885
+ function gnt(e) {
181886
181886
  var t, n, i, o, r, s, a, c, u = e.x, h = e.y;
181887
181887
  return i = wt(u - this.long0, this.over), t = Math.sin(h), n = Math.cos(h), o = Math.cos(i), s = this.sin_p14 * t + this.cos_p14 * n * o, r = 1, s > 0 || Math.abs(s) <= Tt ? (a = this.x0 + this.a * r * n * Math.sin(i) / s, c = this.y0 + this.a * r * (this.cos_p14 * t - this.sin_p14 * n * o) / s) : (a = this.x0 + this.infinity_dist * n * Math.sin(i), c = this.y0 + this.infinity_dist * (this.cos_p14 * t - this.sin_p14 * n * o)), e.x = a, e.y = c, e;
181888
181888
  }
181889
- function gnt(e) {
181889
+ function _nt(e) {
181890
181890
  var t, n, i, o, r, s;
181891
181891
  return e.x = (e.x - this.x0) / this.a, e.y = (e.y - this.y0) / this.a, e.x /= this.k0, e.y /= this.k0, (t = Math.sqrt(e.x * e.x + e.y * e.y)) ? (o = Math.atan2(t, this.rc), n = Math.sin(o), i = Math.cos(o), s = Lf(i * this.sin_p14 + e.y * n * this.cos_p14 / t), r = Math.atan2(e.x * n, t * this.cos_p14 * i - e.y * this.sin_p14 * n), r = wt(this.long0 + r, this.over)) : (s = this.phic0, r = 0), e.x = r, e.y = s, e;
181892
181892
  }
181893
- var _nt = ["gnom"];
181894
- const Ant = {
181895
- init: mnt,
181896
- forward: pnt,
181897
- inverse: gnt,
181898
- names: _nt
181893
+ var Ant = ["gnom"];
181894
+ const ynt = {
181895
+ init: pnt,
181896
+ forward: gnt,
181897
+ inverse: _nt,
181898
+ names: Ant
181899
181899
  };
181900
- function ynt(e, t) {
181900
+ function bnt(e, t) {
181901
181901
  var n = 1 - (1 - e * e) / (2 * e) * Math.log((1 - e) / (1 + e));
181902
181902
  if (Math.abs(Math.abs(t) - n) < 1e-6)
181903
181903
  return t < 0 ? -1 * rt : rt;
@@ -181906,10 +181906,10 @@ function ynt(e, t) {
181906
181906
  return i;
181907
181907
  return NaN;
181908
181908
  }
181909
- function bnt() {
181909
+ function xnt() {
181910
181910
  this.sphere || (this.k0 = Yu(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)));
181911
181911
  }
181912
- function xnt(e) {
181912
+ function Tnt(e) {
181913
181913
  var t = e.x, n = e.y, i, o, r = wt(t - this.long0, this.over);
181914
181914
  if (this.sphere)
181915
181915
  i = this.x0 + this.a * r * Math.cos(this.lat_ts), o = this.y0 + this.a * Math.sin(n) / Math.cos(this.lat_ts);
@@ -181919,41 +181919,41 @@ function xnt(e) {
181919
181919
  }
181920
181920
  return e.x = i, e.y = o, e;
181921
181921
  }
181922
- function Tnt(e) {
181922
+ function vnt(e) {
181923
181923
  e.x -= this.x0, e.y -= this.y0;
181924
181924
  var t, n;
181925
- return this.sphere ? (t = wt(this.long0 + e.x / this.a / Math.cos(this.lat_ts), this.over), n = Math.asin(e.y / this.a * Math.cos(this.lat_ts))) : (n = ynt(this.e, 2 * e.y * this.k0 / this.a), t = wt(this.long0 + e.x / (this.a * this.k0), this.over)), e.x = t, e.y = n, e;
181925
+ return this.sphere ? (t = wt(this.long0 + e.x / this.a / Math.cos(this.lat_ts), this.over), n = Math.asin(e.y / this.a * Math.cos(this.lat_ts))) : (n = bnt(this.e, 2 * e.y * this.k0 / this.a), t = wt(this.long0 + e.x / (this.a * this.k0), this.over)), e.x = t, e.y = n, e;
181926
181926
  }
181927
- var vnt = ["cea"];
181928
- const Ent = {
181929
- init: bnt,
181930
- forward: xnt,
181931
- inverse: Tnt,
181932
- names: vnt
181927
+ var Ent = ["cea"];
181928
+ const Cnt = {
181929
+ init: xnt,
181930
+ forward: Tnt,
181931
+ inverse: vnt,
181932
+ names: Ent
181933
181933
  };
181934
- function Cnt() {
181934
+ function wnt() {
181935
181935
  this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.lat0 = this.lat0 || 0, this.long0 = this.long0 || 0, this.lat_ts = this.lat_ts || 0, this.title = this.title || "Equidistant Cylindrical (Plate Carre)", this.rc = Math.cos(this.lat_ts);
181936
181936
  }
181937
- function wnt(e) {
181937
+ function Snt(e) {
181938
181938
  var t = e.x, n = e.y, i = wt(t - this.long0, this.over), o = Qf(n - this.lat0);
181939
181939
  return e.x = this.x0 + this.a * i * this.rc, e.y = this.y0 + this.a * o, e;
181940
181940
  }
181941
- function Snt(e) {
181941
+ function Int(e) {
181942
181942
  var t = e.x, n = e.y;
181943
181943
  return e.x = wt(this.long0 + (t - this.x0) / (this.a * this.rc), this.over), e.y = Qf(this.lat0 + (n - this.y0) / this.a), e;
181944
181944
  }
181945
- var Int = ["Equirectangular", "Equidistant_Cylindrical", "Equidistant_Cylindrical_Spherical", "eqc"];
181946
- const Pnt = {
181947
- init: Cnt,
181948
- forward: wnt,
181949
- inverse: Snt,
181950
- names: Int
181945
+ var Pnt = ["Equirectangular", "Equidistant_Cylindrical", "Equidistant_Cylindrical_Spherical", "eqc"];
181946
+ const Dnt = {
181947
+ init: wnt,
181948
+ forward: Snt,
181949
+ inverse: Int,
181950
+ names: Pnt
181951
181951
  };
181952
181952
  var AV = 20;
181953
- function Dnt() {
181953
+ function Ont() {
181954
181954
  this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = Cx(this.es), this.e1 = wx(this.es), this.e2 = Sx(this.es), this.e3 = Ix(this.es), this.ml0 = this.a * ba(this.e0, this.e1, this.e2, this.e3, this.lat0);
181955
181955
  }
181956
- function Ont(e) {
181956
+ function Rnt(e) {
181957
181957
  var t = e.x, n = e.y, i, o, r, s = wt(t - this.long0, this.over);
181958
181958
  if (r = s * Math.sin(n), this.sphere)
181959
181959
  Math.abs(n) <= Tt ? (i = this.a * s, o = -1 * this.a * this.lat0) : (i = this.a * Math.sin(r) / Math.tan(n), o = this.a * (Qf(n - this.lat0) + (1 - Math.cos(r)) / Math.tan(n)));
@@ -181965,7 +181965,7 @@ function Ont(e) {
181965
181965
  }
181966
181966
  return e.x = i + this.x0, e.y = o + this.y0, e;
181967
181967
  }
181968
- function Rnt(e) {
181968
+ function Mnt(e) {
181969
181969
  var t, n, i, o, r, s, a, c, u;
181970
181970
  if (i = e.x - this.x0, o = e.y - this.y0, this.sphere)
181971
181971
  if (Math.abs(o + this.a * this.lat0) <= Tt)
@@ -181994,17 +181994,17 @@ function Rnt(e) {
181994
181994
  }
181995
181995
  return e.x = t, e.y = n, e;
181996
181996
  }
181997
- var Mnt = ["Polyconic", "American_Polyconic", "poly"];
181998
- const Nnt = {
181999
- init: Dnt,
182000
- forward: Ont,
182001
- inverse: Rnt,
182002
- names: Mnt
181997
+ var Nnt = ["Polyconic", "American_Polyconic", "poly"];
181998
+ const Lnt = {
181999
+ init: Ont,
182000
+ forward: Rnt,
182001
+ inverse: Mnt,
182002
+ names: Nnt
182003
182003
  };
182004
- function Lnt() {
182004
+ function Fnt() {
182005
182005
  this.A = [], this.A[1] = 0.6399175073, this.A[2] = -0.1358797613, this.A[3] = 0.063294409, this.A[4] = -0.02526853, this.A[5] = 0.0117879, this.A[6] = -55161e-7, this.A[7] = 26906e-7, this.A[8] = -1333e-6, this.A[9] = 67e-5, this.A[10] = -34e-5, this.B_re = [], this.B_im = [], this.B_re[1] = 0.7557853228, this.B_im[1] = 0, this.B_re[2] = 0.249204646, this.B_im[2] = 3371507e-9, this.B_re[3] = -1541739e-9, this.B_im[3] = 0.04105856, this.B_re[4] = -0.10162907, this.B_im[4] = 0.01727609, this.B_re[5] = -0.26623489, this.B_im[5] = -0.36249218, this.B_re[6] = -0.6870983, this.B_im[6] = -1.1651967, this.C_re = [], this.C_im = [], this.C_re[1] = 1.3231270439, this.C_im[1] = 0, this.C_re[2] = -0.577245789, this.C_im[2] = -7809598e-9, this.C_re[3] = 0.508307513, this.C_im[3] = -0.112208952, this.C_re[4] = -0.15094762, this.C_im[4] = 0.18200602, this.C_re[5] = 1.01418179, this.C_im[5] = 1.64497696, this.C_re[6] = 1.9660549, this.C_im[6] = 2.5127645, this.D = [], this.D[1] = 1.5627014243, this.D[2] = 0.5185406398, this.D[3] = -0.03333098, this.D[4] = -0.1052906, this.D[5] = -0.0368594, this.D[6] = 7317e-6, this.D[7] = 0.0122, this.D[8] = 394e-5, this.D[9] = -13e-4;
182006
182006
  }
182007
- function Fnt(e) {
182007
+ function Bnt(e) {
182008
182008
  var t, n = e.x, i = e.y, o = i - this.lat0, r = n - this.long0, s = o / By * 1e-5, a = r, c = 1, u = 0;
182009
182009
  for (t = 1; t <= 10; t++)
182010
182010
  c = c * s, u = u + this.A[t] * c;
@@ -182013,7 +182013,7 @@ function Fnt(e) {
182013
182013
  p = m * h - _ * f, A = _ * h + m * f, m = p, _ = A, y = y + this.B_re[t] * m - this.B_im[t] * _, x = x + this.B_im[t] * m + this.B_re[t] * _;
182014
182014
  return e.x = x * this.a + this.x0, e.y = y * this.a + this.y0, e;
182015
182015
  }
182016
- function Bnt(e) {
182016
+ function knt(e) {
182017
182017
  var t, n = e.x, i = e.y, o = n - this.x0, r = i - this.y0, s = r / this.a, a = o / this.a, c = 1, u = 0, h, f, m = 0, _ = 0;
182018
182018
  for (t = 1; t <= 6; t++)
182019
182019
  h = c * s - u * a, f = u * s + c * a, c = h, u = f, m = m + this.C_re[t] * c - this.C_im[t] * u, _ = _ + this.C_im[t] * c + this.C_re[t] * u;
@@ -182034,33 +182034,33 @@ function Bnt(e) {
182034
182034
  var I = this.lat0 + w * By * 1e5, g = this.long0 + F;
182035
182035
  return e.x = g, e.y = I, e;
182036
182036
  }
182037
- var knt = ["New_Zealand_Map_Grid", "nzmg"];
182038
- const znt = {
182039
- init: Lnt,
182040
- forward: Fnt,
182041
- inverse: Bnt,
182042
- names: knt
182037
+ var znt = ["New_Zealand_Map_Grid", "nzmg"];
182038
+ const jnt = {
182039
+ init: Fnt,
182040
+ forward: Bnt,
182041
+ inverse: knt,
182042
+ names: znt
182043
182043
  };
182044
- function jnt() {
182044
+ function Unt() {
182045
182045
  }
182046
- function Unt(e) {
182046
+ function Vnt(e) {
182047
182047
  var t = e.x, n = e.y, i = wt(t - this.long0, this.over), o = this.x0 + this.a * i, r = this.y0 + this.a * Math.log(Math.tan(Math.PI / 4 + n / 2.5)) * 1.25;
182048
182048
  return e.x = o, e.y = r, e;
182049
182049
  }
182050
- function Vnt(e) {
182050
+ function Hnt(e) {
182051
182051
  e.x -= this.x0, e.y -= this.y0;
182052
182052
  var t = wt(this.long0 + e.x / this.a, this.over), n = 2.5 * (Math.atan(Math.exp(0.8 * e.y / this.a)) - Math.PI / 4);
182053
182053
  return e.x = t, e.y = n, e;
182054
182054
  }
182055
- var Hnt = ["Miller_Cylindrical", "mill"];
182056
- const Gnt = {
182057
- init: jnt,
182058
- forward: Unt,
182059
- inverse: Vnt,
182060
- names: Hnt
182055
+ var Gnt = ["Miller_Cylindrical", "mill"];
182056
+ const qnt = {
182057
+ init: Unt,
182058
+ forward: Vnt,
182059
+ inverse: Hnt,
182060
+ names: Gnt
182061
182061
  };
182062
- var qnt = 20;
182063
- function Wnt() {
182062
+ var Wnt = 20;
182063
+ function $nt() {
182064
182064
  this.long0 = this.long0 || 0, this.sphere ? (this.n = 1, this.m = 0, this.es = 0, this.C_y = Math.sqrt((this.m + 1) / this.n), this.C_x = this.C_y / (this.m + 1)) : this.en = LL(this.es);
182065
182065
  }
182066
182066
  function QJ(e) {
@@ -182069,7 +182069,7 @@ function QJ(e) {
182069
182069
  if (!this.m)
182070
182070
  o = this.n !== 1 ? Math.asin(this.n * Math.sin(o)) : o;
182071
182071
  else
182072
- for (var r = this.n * Math.sin(o), s = qnt; s; --s) {
182072
+ for (var r = this.n * Math.sin(o), s = Wnt; s; --s) {
182073
182073
  var a = (this.m * o + Math.sin(o) - r) / (this.m + Math.cos(o));
182074
182074
  if (o -= a, Math.abs(a) < Tt)
182075
182075
  break;
@@ -182085,27 +182085,27 @@ function ZJ(e) {
182085
182085
  var t, n, i, o;
182086
182086
  return e.x -= this.x0, i = e.x / this.a, e.y -= this.y0, t = e.y / this.a, this.sphere ? (t /= this.C_y, i = i / (this.C_x * (this.m + Math.cos(t))), this.m ? t = Lf((this.m * t + Math.sin(t)) / this.n) : this.n !== 1 && (t = Lf(Math.sin(t) / this.n)), i = wt(i + this.long0, this.over), t = Qf(t)) : (t = FL(e.y / this.a, this.es, this.en), o = Math.abs(t), o < rt ? (o = Math.sin(t), n = this.long0 + e.x * Math.sqrt(1 - this.es * o * o) / (this.a * Math.cos(t)), i = wt(n, this.over)) : o - Tt < rt && (i = this.long0)), e.x = i, e.y = t, e;
182087
182087
  }
182088
- var $nt = ["Sinusoidal", "sinu"];
182089
- const Ynt = {
182090
- init: Wnt,
182088
+ var Ynt = ["Sinusoidal", "sinu"];
182089
+ const Xnt = {
182090
+ init: $nt,
182091
182091
  forward: QJ,
182092
182092
  inverse: ZJ,
182093
- names: $nt
182093
+ names: Ynt
182094
182094
  };
182095
- function Xnt() {
182095
+ function Knt() {
182096
182096
  this.sphere = !0, this.b = this.a, this.m = 1, this.n = 2.5707963267948966, this.es = 0, this.C_y = Math.sqrt((this.m + 1) / this.n), this.C_x = this.C_y / (this.m + 1);
182097
182097
  }
182098
- var Knt = QJ, Jnt = ZJ, Qnt = ["Eckert_VI", "eck6"];
182099
- const Znt = {
182100
- init: Xnt,
182101
- forward: Knt,
182102
- inverse: Jnt,
182103
- names: Qnt
182098
+ var Jnt = QJ, Qnt = ZJ, Znt = ["Eckert_VI", "eck6"];
182099
+ const eit = {
182100
+ init: Knt,
182101
+ forward: Jnt,
182102
+ inverse: Qnt,
182103
+ names: Znt
182104
182104
  };
182105
- function eit() {
182105
+ function tit() {
182106
182106
  this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0;
182107
182107
  }
182108
- function tit(e) {
182108
+ function nit(e) {
182109
182109
  for (var t = e.x, n = e.y, i = wt(t - this.long0, this.over), o = n, r = Math.PI * Math.sin(n); ; ) {
182110
182110
  var s = -(o + Math.sin(o) - r) / (1 + Math.cos(o));
182111
182111
  if (o += s, Math.abs(s) < Tt)
@@ -182115,7 +182115,7 @@ function tit(e) {
182115
182115
  var a = 0.900316316158 * this.a * i * Math.cos(o) + this.x0, c = 1.4142135623731 * this.a * Math.sin(o) + this.y0;
182116
182116
  return e.x = a, e.y = c, e;
182117
182117
  }
182118
- function nit(e) {
182118
+ function iit(e) {
182119
182119
  var t, n;
182120
182120
  e.x -= this.x0, e.y -= this.y0, n = e.y / (1.4142135623731 * this.a), Math.abs(n) > 0.999999999999 && (n = 0.999999999999), t = Math.asin(n);
182121
182121
  var i = wt(this.long0 + e.x / (0.900316316158 * this.a * Math.cos(t)), this.over);
@@ -182123,17 +182123,17 @@ function nit(e) {
182123
182123
  var o = Math.asin(n);
182124
182124
  return e.x = i, e.y = o, e;
182125
182125
  }
182126
- var iit = ["Mollweide", "moll"];
182127
- const oit = {
182128
- init: eit,
182129
- forward: tit,
182130
- inverse: nit,
182131
- names: iit
182126
+ var oit = ["Mollweide", "moll"];
182127
+ const rit = {
182128
+ init: tit,
182129
+ forward: nit,
182130
+ inverse: iit,
182131
+ names: oit
182132
182132
  };
182133
- function rit() {
182133
+ function sit() {
182134
182134
  Math.abs(this.lat1 + this.lat2) < Tt || (this.lat2 = this.lat2 || this.lat1, this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = Cx(this.es), this.e1 = wx(this.es), this.e2 = Sx(this.es), this.e3 = Ix(this.es), this.sin_phi = Math.sin(this.lat1), this.cos_phi = Math.cos(this.lat1), this.ms1 = Yu(this.e, this.sin_phi, this.cos_phi), this.ml1 = ba(this.e0, this.e1, this.e2, this.e3, this.lat1), Math.abs(this.lat1 - this.lat2) < Tt ? this.ns = this.sin_phi : (this.sin_phi = Math.sin(this.lat2), this.cos_phi = Math.cos(this.lat2), this.ms2 = Yu(this.e, this.sin_phi, this.cos_phi), this.ml2 = ba(this.e0, this.e1, this.e2, this.e3, this.lat2), this.ns = (this.ms1 - this.ms2) / (this.ml2 - this.ml1)), this.g = this.ml1 + this.ms1 / this.ns, this.ml0 = ba(this.e0, this.e1, this.e2, this.e3, this.lat0), this.rh = this.a * (this.g - this.ml0));
182135
182135
  }
182136
- function sit(e) {
182136
+ function ait(e) {
182137
182137
  var t = e.x, n = e.y, i;
182138
182138
  if (this.sphere)
182139
182139
  i = this.a * (this.g - n);
@@ -182144,7 +182144,7 @@ function sit(e) {
182144
182144
  var r = this.ns * wt(t - this.long0, this.over), s = this.x0 + i * Math.sin(r), a = this.y0 + this.rh - i * Math.cos(r);
182145
182145
  return e.x = s, e.y = a, e;
182146
182146
  }
182147
- function ait(e) {
182147
+ function cit(e) {
182148
182148
  e.x -= this.x0, e.y = this.rh - e.y + this.y0;
182149
182149
  var t, n, i, o;
182150
182150
  this.ns >= 0 ? (n = Math.sqrt(e.x * e.x + e.y * e.y), t = 1) : (n = -Math.sqrt(e.x * e.x + e.y * e.y), t = -1);
@@ -182154,17 +182154,17 @@ function ait(e) {
182154
182154
  var s = this.g - n / this.a;
182155
182155
  return i = HC(s, this.e0, this.e1, this.e2, this.e3), o = wt(this.long0 + r / this.ns, this.over), e.x = o, e.y = i, e;
182156
182156
  }
182157
- var cit = ["Equidistant_Conic", "eqdc"];
182158
- const lit = {
182159
- init: rit,
182160
- forward: sit,
182161
- inverse: ait,
182162
- names: cit
182157
+ var lit = ["Equidistant_Conic", "eqdc"];
182158
+ const uit = {
182159
+ init: sit,
182160
+ forward: ait,
182161
+ inverse: cit,
182162
+ names: lit
182163
182163
  };
182164
- function uit() {
182164
+ function hit() {
182165
182165
  this.R = this.a;
182166
182166
  }
182167
- function hit(e) {
182167
+ function dit(e) {
182168
182168
  var t = e.x, n = e.y, i = wt(t - this.long0, this.over), o, r;
182169
182169
  Math.abs(n) <= Tt && (o = this.x0 + this.R * i, r = this.y0);
182170
182170
  var s = Lf(2 * Math.abs(n / Math.PI));
@@ -182174,18 +182174,18 @@ function hit(e) {
182174
182174
  var y = c + f;
182175
182175
  return A = Math.PI * this.R * (_ * y - a * Math.sqrt((p + c) * (c + 1) - y * y)) / (p + c), n >= 0 ? r = this.y0 + A : r = this.y0 - A, e.x = o, e.y = r, e;
182176
182176
  }
182177
- function dit(e) {
182177
+ function fit(e) {
182178
182178
  var t, n, i, o, r, s, a, c, u, h, f, m, _;
182179
182179
  return e.x -= this.x0, e.y -= this.y0, f = Math.PI * this.R, i = e.x / f, o = e.y / f, r = i * i + o * o, s = -Math.abs(o) * (1 + r), a = s - 2 * o * o + i * i, c = -2 * s + 1 + 2 * o * o + r * r, _ = o * o / c + (2 * a * a * a / c / c / c - 9 * s * a / c / c) / 27, u = (s - a * a / 3 / c) / c, h = 2 * Math.sqrt(-u / 3), f = 3 * _ / u / h, Math.abs(f) > 1 && (f >= 0 ? f = 1 : f = -1), m = Math.acos(f) / 3, e.y >= 0 ? n = (-h * Math.cos(m + Math.PI / 3) - a / 3 / c) * Math.PI : n = -(-h * Math.cos(m + Math.PI / 3) - a / 3 / c) * Math.PI, Math.abs(i) < Tt ? t = this.long0 : t = wt(this.long0 + Math.PI * (r - 1 + Math.sqrt(1 + 2 * (i * i - o * o) + r * r)) / 2 / i, this.over), e.x = t, e.y = n, e;
182180
182180
  }
182181
- var fit = ["Van_der_Grinten_I", "VanDerGrinten", "Van_der_Grinten", "vandg"];
182182
- const mit = {
182183
- init: uit,
182184
- forward: hit,
182185
- inverse: dit,
182186
- names: fit
182181
+ var mit = ["Van_der_Grinten_I", "VanDerGrinten", "Van_der_Grinten", "vandg"];
182182
+ const pit = {
182183
+ init: hit,
182184
+ forward: dit,
182185
+ inverse: fit,
182186
+ names: mit
182187
182187
  };
182188
- function pit(e, t, n, i, o, r) {
182188
+ function git(e, t, n, i, o, r) {
182189
182189
  const s = i - t, a = Math.atan((1 - r) * Math.tan(e)), c = Math.atan((1 - r) * Math.tan(n)), u = Math.sin(a), h = Math.cos(a), f = Math.sin(c), m = Math.cos(c);
182190
182190
  let _ = s, p, A = 100, y, x, T, E, v, P, O, N, L, F, B, w, I, g;
182191
182191
  do {
@@ -182197,7 +182197,7 @@ function pit(e, t, n, i, o, r) {
182197
182197
  } while (Math.abs(_ - p) > 1e-12 && --A > 0);
182198
182198
  return A === 0 ? { azi1: NaN, s12: NaN } : (F = O * (o * o - o * (1 - r) * (o * (1 - r))) / (o * (1 - r) * (o * (1 - r))), B = 1 + F / 16384 * (4096 + F * (-768 + F * (320 - 175 * F))), w = F / 1024 * (256 + F * (-128 + F * (74 - 47 * F))), I = w * T * (N + w / 4 * (E * (-1 + 2 * N * N) - w / 6 * N * (-3 + 4 * T * T) * (-3 + 4 * N * N))), g = o * (1 - r) * B * (v - I), { azi1: Math.atan2(m * y, h * f - u * m * x), s12: g });
182199
182199
  }
182200
- function git(e, t, n, i, o, r) {
182200
+ function _it(e, t, n, i, o, r) {
182201
182201
  const s = Math.atan((1 - r) * Math.tan(e)), a = Math.sin(s), c = Math.cos(s), u = Math.sin(n), h = Math.cos(n), f = Math.atan2(a, c * h), m = c * u, _ = 1 - m * m, p = _ * (o * o - o * (1 - r) * (o * (1 - r))) / (o * (1 - r) * (o * (1 - r))), A = 1 + p / 16384 * (4096 + p * (-768 + p * (320 - 175 * p))), y = p / 1024 * (256 + p * (-128 + p * (74 - 47 * p)));
182202
182202
  let x = i / (o * (1 - r) * A), T, E = 100, v, P, O, N;
182203
182203
  do
@@ -182214,42 +182214,42 @@ function git(e, t, n, i, o, r) {
182214
182214
  ), w = r / 16 * _ * (4 + r * (4 - 3 * _)), I = B - (1 - w) * r * m * (x + w * P * (v + w * O * (-1 + 2 * v * v))), g = t + I;
182215
182215
  return { lat2: F, lon2: g };
182216
182216
  }
182217
- function _it() {
182217
+ function Ait() {
182218
182218
  this.sin_p12 = Math.sin(this.lat0), this.cos_p12 = Math.cos(this.lat0), this.f = this.es / (1 + Math.sqrt(1 - this.es));
182219
182219
  }
182220
- function Ait(e) {
182220
+ function yit(e) {
182221
182221
  var t = e.x, n = e.y, i = Math.sin(e.y), o = Math.cos(e.y), r = wt(t - this.long0, this.over), s, a, c, u, h, f, m, _, p, A, y;
182222
- return this.sphere ? Math.abs(this.sin_p12 - 1) <= Tt ? (e.x = this.x0 + this.a * (rt - n) * Math.sin(r), e.y = this.y0 - this.a * (rt - n) * Math.cos(r), e) : Math.abs(this.sin_p12 + 1) <= Tt ? (e.x = this.x0 + this.a * (rt + n) * Math.sin(r), e.y = this.y0 + this.a * (rt + n) * Math.cos(r), e) : (p = this.sin_p12 * i + this.cos_p12 * o * Math.cos(r), m = Math.acos(p), _ = m ? m / Math.sin(m) : 1, e.x = this.x0 + this.a * _ * o * Math.sin(r), e.y = this.y0 + this.a * _ * (this.cos_p12 * i - this.sin_p12 * o * Math.cos(r)), e) : (s = Cx(this.es), a = wx(this.es), c = Sx(this.es), u = Ix(this.es), Math.abs(this.sin_p12 - 1) <= Tt ? (h = this.a * ba(s, a, c, u, rt), f = this.a * ba(s, a, c, u, n), e.x = this.x0 + (h - f) * Math.sin(r), e.y = this.y0 - (h - f) * Math.cos(r), e) : Math.abs(this.sin_p12 + 1) <= Tt ? (h = this.a * ba(s, a, c, u, rt), f = this.a * ba(s, a, c, u, n), e.x = this.x0 + (h + f) * Math.sin(r), e.y = this.y0 + (h + f) * Math.cos(r), e) : Math.abs(t) < Tt && Math.abs(n - this.lat0) < Tt ? (e.x = e.y = 0, e) : (A = pit(this.lat0, this.long0, n, t, this.a, this.f), y = A.azi1, e.x = A.s12 * Math.sin(y), e.y = A.s12 * Math.cos(y), e));
182222
+ return this.sphere ? Math.abs(this.sin_p12 - 1) <= Tt ? (e.x = this.x0 + this.a * (rt - n) * Math.sin(r), e.y = this.y0 - this.a * (rt - n) * Math.cos(r), e) : Math.abs(this.sin_p12 + 1) <= Tt ? (e.x = this.x0 + this.a * (rt + n) * Math.sin(r), e.y = this.y0 + this.a * (rt + n) * Math.cos(r), e) : (p = this.sin_p12 * i + this.cos_p12 * o * Math.cos(r), m = Math.acos(p), _ = m ? m / Math.sin(m) : 1, e.x = this.x0 + this.a * _ * o * Math.sin(r), e.y = this.y0 + this.a * _ * (this.cos_p12 * i - this.sin_p12 * o * Math.cos(r)), e) : (s = Cx(this.es), a = wx(this.es), c = Sx(this.es), u = Ix(this.es), Math.abs(this.sin_p12 - 1) <= Tt ? (h = this.a * ba(s, a, c, u, rt), f = this.a * ba(s, a, c, u, n), e.x = this.x0 + (h - f) * Math.sin(r), e.y = this.y0 - (h - f) * Math.cos(r), e) : Math.abs(this.sin_p12 + 1) <= Tt ? (h = this.a * ba(s, a, c, u, rt), f = this.a * ba(s, a, c, u, n), e.x = this.x0 + (h + f) * Math.sin(r), e.y = this.y0 + (h + f) * Math.cos(r), e) : Math.abs(t) < Tt && Math.abs(n - this.lat0) < Tt ? (e.x = e.y = 0, e) : (A = git(this.lat0, this.long0, n, t, this.a, this.f), y = A.azi1, e.x = A.s12 * Math.sin(y), e.y = A.s12 * Math.cos(y), e));
182223
182223
  }
182224
- function yit(e) {
182224
+ function bit(e) {
182225
182225
  e.x -= this.x0, e.y -= this.y0;
182226
182226
  var t, n, i, o, r, s, a, c, u, h, f, m, _, p, A, y;
182227
- return this.sphere ? (t = Math.sqrt(e.x * e.x + e.y * e.y), t > 2 * rt * this.a ? void 0 : (n = t / this.a, i = Math.sin(n), o = Math.cos(n), r = this.long0, Math.abs(t) <= Tt ? s = this.lat0 : (s = Lf(o * this.sin_p12 + e.y * i * this.cos_p12 / t), a = Math.abs(this.lat0) - rt, Math.abs(a) <= Tt ? this.lat0 >= 0 ? r = wt(this.long0 + Math.atan2(e.x, -e.y), this.over) : r = wt(this.long0 - Math.atan2(-e.x, e.y), this.over) : r = wt(this.long0 + Math.atan2(e.x * i, t * this.cos_p12 * o - e.y * this.sin_p12 * i), this.over)), e.x = r, e.y = s, e)) : (c = Cx(this.es), u = wx(this.es), h = Sx(this.es), f = Ix(this.es), Math.abs(this.sin_p12 - 1) <= Tt ? (m = this.a * ba(c, u, h, f, rt), t = Math.sqrt(e.x * e.x + e.y * e.y), _ = m - t, s = HC(_ / this.a, c, u, h, f), r = wt(this.long0 + Math.atan2(e.x, -1 * e.y), this.over), e.x = r, e.y = s, e) : Math.abs(this.sin_p12 + 1) <= Tt ? (m = this.a * ba(c, u, h, f, rt), t = Math.sqrt(e.x * e.x + e.y * e.y), _ = t - m, s = HC(_ / this.a, c, u, h, f), r = wt(this.long0 + Math.atan2(e.x, e.y), this.over), e.x = r, e.y = s, e) : (p = Math.atan2(e.x, e.y), A = Math.sqrt(e.x * e.x + e.y * e.y), y = git(this.lat0, this.long0, p, A, this.a, this.f), e.x = y.lon2, e.y = y.lat2, e));
182227
+ return this.sphere ? (t = Math.sqrt(e.x * e.x + e.y * e.y), t > 2 * rt * this.a ? void 0 : (n = t / this.a, i = Math.sin(n), o = Math.cos(n), r = this.long0, Math.abs(t) <= Tt ? s = this.lat0 : (s = Lf(o * this.sin_p12 + e.y * i * this.cos_p12 / t), a = Math.abs(this.lat0) - rt, Math.abs(a) <= Tt ? this.lat0 >= 0 ? r = wt(this.long0 + Math.atan2(e.x, -e.y), this.over) : r = wt(this.long0 - Math.atan2(-e.x, e.y), this.over) : r = wt(this.long0 + Math.atan2(e.x * i, t * this.cos_p12 * o - e.y * this.sin_p12 * i), this.over)), e.x = r, e.y = s, e)) : (c = Cx(this.es), u = wx(this.es), h = Sx(this.es), f = Ix(this.es), Math.abs(this.sin_p12 - 1) <= Tt ? (m = this.a * ba(c, u, h, f, rt), t = Math.sqrt(e.x * e.x + e.y * e.y), _ = m - t, s = HC(_ / this.a, c, u, h, f), r = wt(this.long0 + Math.atan2(e.x, -1 * e.y), this.over), e.x = r, e.y = s, e) : Math.abs(this.sin_p12 + 1) <= Tt ? (m = this.a * ba(c, u, h, f, rt), t = Math.sqrt(e.x * e.x + e.y * e.y), _ = t - m, s = HC(_ / this.a, c, u, h, f), r = wt(this.long0 + Math.atan2(e.x, e.y), this.over), e.x = r, e.y = s, e) : (p = Math.atan2(e.x, e.y), A = Math.sqrt(e.x * e.x + e.y * e.y), y = _it(this.lat0, this.long0, p, A, this.a, this.f), e.x = y.lon2, e.y = y.lat2, e));
182228
182228
  }
182229
- var bit = ["Azimuthal_Equidistant", "aeqd"];
182230
- const xit = {
182231
- init: _it,
182232
- forward: Ait,
182233
- inverse: yit,
182234
- names: bit
182229
+ var xit = ["Azimuthal_Equidistant", "aeqd"];
182230
+ const Tit = {
182231
+ init: Ait,
182232
+ forward: yit,
182233
+ inverse: bit,
182234
+ names: xit
182235
182235
  };
182236
- function Tit() {
182236
+ function vit() {
182237
182237
  this.sin_p14 = Math.sin(this.lat0 || 0), this.cos_p14 = Math.cos(this.lat0 || 0);
182238
182238
  }
182239
- function vit(e) {
182239
+ function Eit(e) {
182240
182240
  var t, n, i, o, r, s, a, c, u = e.x, h = e.y;
182241
182241
  return i = wt(u - (this.long0 || 0), this.over), t = Math.sin(h), n = Math.cos(h), o = Math.cos(i), s = this.sin_p14 * t + this.cos_p14 * n * o, r = 1, (s > 0 || Math.abs(s) <= Tt) && (a = this.a * r * n * Math.sin(i), c = (this.y0 || 0) + this.a * r * (this.cos_p14 * t - this.sin_p14 * n * o)), e.x = a, e.y = c, e;
182242
182242
  }
182243
- function Eit(e) {
182243
+ function Cit(e) {
182244
182244
  var t, n, i, o, r, s, a, c, u;
182245
182245
  return e.x -= this.x0 || 0, e.y -= this.y0 || 0, t = Math.sqrt(e.x * e.x + e.y * e.y), n = Lf(t / this.a), i = Math.sin(n), o = Math.cos(n), c = this.long0 || 0, u = this.lat0 || 0, s = c, Math.abs(t) <= Tt ? (a = u, e.x = s, e.y = a, e) : (a = Lf(o * this.sin_p14 + e.y * i * this.cos_p14 / t), r = Math.abs(u) - rt, Math.abs(r) <= Tt ? (u >= 0 ? s = wt(c + Math.atan2(e.x, -e.y), this.over) : s = wt(c - Math.atan2(-e.x, e.y), this.over), e.x = s, e.y = a, e) : (s = wt(c + Math.atan2(e.x * i, t * this.cos_p14 * o - e.y * this.sin_p14 * i), this.over), e.x = s, e.y = a, e));
182246
182246
  }
182247
- var Cit = ["ortho"];
182248
- const wit = {
182249
- init: Tit,
182250
- forward: vit,
182251
- inverse: Eit,
182252
- names: Cit
182247
+ var wit = ["ortho"];
182248
+ const Sit = {
182249
+ init: vit,
182250
+ forward: Eit,
182251
+ inverse: Cit,
182252
+ names: wit
182253
182253
  };
182254
182254
  var Vo = {
182255
182255
  FRONT: 1,
@@ -182264,10 +182264,10 @@ var Vo = {
182264
182264
  AREA_2: 3,
182265
182265
  AREA_3: 4
182266
182266
  };
182267
- function Sit() {
182267
+ function Iit() {
182268
182268
  this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.lat0 = this.lat0 || 0, this.long0 = this.long0 || 0, this.lat_ts = this.lat_ts || 0, this.title = this.title || "Quadrilateralized Spherical Cube", this.lat0 >= rt - Li / 2 ? this.face = Vo.TOP : this.lat0 <= -(rt - Li / 2) ? this.face = Vo.BOTTOM : Math.abs(this.long0) <= Li ? this.face = Vo.FRONT : Math.abs(this.long0) <= rt + Li ? this.face = this.long0 > 0 ? Vo.RIGHT : Vo.LEFT : this.face = Vo.BACK, this.es !== 0 && (this.one_minus_f = 1 - (this.a - this.b) / this.a, this.one_minus_f_squared = this.one_minus_f * this.one_minus_f);
182269
182269
  }
182270
- function Iit(e) {
182270
+ function Pit(e) {
182271
182271
  var t = { x: 0, y: 0 }, n, i, o, r, s, a, c = { value: 0 };
182272
182272
  if (e.x -= this.long0, this.es !== 0 ? n = Math.atan(this.one_minus_f_squared * Math.tan(e.y)) : n = e.y, i = e.x, this.face === Vo.TOP)
182273
182273
  r = rt - n, i >= Li && i <= rt + Li ? (c.value = Fi.AREA_0, o = i - rt) : i > rt + Li || i <= -(rt + Li) ? (c.value = Fi.AREA_1, o = i > 0 ? i - _r : i + _r) : i > -(rt + Li) && i <= -Li ? (c.value = Fi.AREA_2, o = i + rt) : (c.value = Fi.AREA_3, o = i);
@@ -182279,7 +182279,7 @@ function Iit(e) {
182279
182279
  }
182280
182280
  return a = Math.atan(12 / _r * (o + Math.acos(Math.sin(o) * Math.cos(Li)) - rt)), s = Math.sqrt((1 - Math.cos(r)) / (Math.cos(a) * Math.cos(a)) / (1 - Math.cos(Math.atan(1 / Math.cos(o))))), c.value === Fi.AREA_1 ? a += rt : c.value === Fi.AREA_2 ? a += _r : c.value === Fi.AREA_3 && (a += 1.5 * _r), t.x = s * Math.cos(a), t.y = s * Math.sin(a), t.x = t.x * this.a + this.x0, t.y = t.y * this.a + this.y0, e.x = t.x, e.y = t.y, e;
182281
182281
  }
182282
- function Pit(e) {
182282
+ function Dit(e) {
182283
182283
  var t = { lam: 0, phi: 0 }, n, i, o, r, s, a, c, u, h, f = { value: 0 };
182284
182284
  if (e.x = (e.x - this.x0) / this.a, e.y = (e.y - this.y0) / this.a, i = Math.atan(Math.sqrt(e.x * e.x + e.y * e.y)), n = Math.atan2(e.y, e.x), e.x >= 0 && e.x >= Math.abs(e.y) ? f.value = Fi.AREA_0 : e.y >= 0 && e.y >= Math.abs(e.x) ? (f.value = Fi.AREA_1, n -= rt) : e.x < 0 && -e.x >= Math.abs(e.y) ? (f.value = Fi.AREA_2, n = n < 0 ? n + _r : n - _r) : (f.value = Fi.AREA_3, n += rt), h = _r / 12 * Math.tan(n), s = Math.sin(h) / (Math.cos(h) - 1 / Math.sqrt(2)), a = Math.atan(s), o = Math.cos(n), r = Math.tan(i), c = 1 - o * o * r * r * (1 - Math.cos(Math.atan(1 / Math.cos(a)))), c < -1 ? c = -1 : c > 1 && (c = 1), this.face === Vo.TOP)
182285
182285
  u = Math.acos(c), t.phi = rt - u, f.value === Fi.AREA_0 ? t.lam = a + rt : f.value === Fi.AREA_1 ? t.lam = a < 0 ? a + _r : a - _r : f.value === Fi.AREA_2 ? t.lam = a - rt : t.lam = a;
@@ -182303,12 +182303,12 @@ function kg(e, t) {
182303
182303
  var n = e + t;
182304
182304
  return n < -_r ? n += wb : n > +_r && (n -= wb), n;
182305
182305
  }
182306
- var Dit = ["Quadrilateralized Spherical Cube", "Quadrilateralized_Spherical_Cube", "qsc"];
182307
- const Oit = {
182308
- init: Sit,
182309
- forward: Iit,
182310
- inverse: Pit,
182311
- names: Dit
182306
+ var Oit = ["Quadrilateralized Spherical Cube", "Quadrilateralized_Spherical_Cube", "qsc"];
182307
+ const Rit = {
182308
+ init: Iit,
182309
+ forward: Pit,
182310
+ inverse: Dit,
182311
+ names: Oit
182312
182312
  };
182313
182313
  var $R = [
182314
182314
  [1, 22199e-21, -715515e-10, 31103e-10],
@@ -182350,12 +182350,12 @@ var $R = [
182350
182350
  [0.9394, 840947e-8, -192841e-9, -42106e-10],
182351
182351
  [0.9761, 616527e-8, -256e-6, -42106e-10],
182352
182352
  [1, 328947e-8, -319159e-9, -42106e-10]
182353
- ], eQ = 0.8487, tQ = 1.3523, nQ = Va / 5, Rit = 1 / nQ, pg = 18, GC = function(e, t) {
182353
+ ], eQ = 0.8487, tQ = 1.3523, nQ = Va / 5, Mit = 1 / nQ, pg = 18, GC = function(e, t) {
182354
182354
  return e[0] + t * (e[1] + t * (e[2] + t * e[3]));
182355
- }, Mit = function(e, t) {
182355
+ }, Nit = function(e, t) {
182356
182356
  return e[1] + t * (2 * e[2] + t * 3 * e[3]);
182357
182357
  };
182358
- function Nit(e, t, n, i) {
182358
+ function Lit(e, t, n, i) {
182359
182359
  for (var o = t; i; --i) {
182360
182360
  var r = e(o);
182361
182361
  if (o -= r, Math.abs(r) < n)
@@ -182363,19 +182363,19 @@ function Nit(e, t, n, i) {
182363
182363
  }
182364
182364
  return o;
182365
182365
  }
182366
- function Lit() {
182366
+ function Fit() {
182367
182367
  this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.long0 = this.long0 || 0, this.es = 0, this.title = this.title || "Robinson";
182368
182368
  }
182369
- function Fit(e) {
182369
+ function Bit(e) {
182370
182370
  var t = wt(e.x - this.long0, this.over), n = Math.abs(e.y), i = Math.floor(n * nQ);
182371
- i < 0 ? i = 0 : i >= pg && (i = pg - 1), n = Va * (n - Rit * i);
182371
+ i < 0 ? i = 0 : i >= pg && (i = pg - 1), n = Va * (n - Mit * i);
182372
182372
  var o = {
182373
182373
  x: GC($R[i], n) * t,
182374
182374
  y: GC(fy[i], n)
182375
182375
  };
182376
182376
  return e.y < 0 && (o.y = -o.y), o.x = o.x * this.a * eQ + this.x0, o.y = o.y * this.a * tQ + this.y0, o;
182377
182377
  }
182378
- function Bit(e) {
182378
+ function kit(e) {
182379
182379
  var t = {
182380
182380
  x: (e.x - this.x0) / (this.a * eQ),
182381
182381
  y: Math.abs(e.y - this.y0) / (this.a * tQ)
@@ -182392,36 +182392,36 @@ function Bit(e) {
182392
182392
  else
182393
182393
  break;
182394
182394
  var i = fy[n], o = 5 * (t.y - i[0]) / (fy[n + 1][0] - i[0]);
182395
- o = Nit(function(r) {
182396
- return (GC(i, r) - t.y) / Mit(i, r);
182395
+ o = Lit(function(r) {
182396
+ return (GC(i, r) - t.y) / Nit(i, r);
182397
182397
  }, o, Tt, 100), t.x /= GC($R[n], o), t.y = (5 * n + o) * Zo, e.y < 0 && (t.y = -t.y);
182398
182398
  }
182399
182399
  return t.x = wt(t.x + this.long0, this.over), t;
182400
182400
  }
182401
- var kit = ["Robinson", "robin"];
182402
- const zit = {
182403
- init: Lit,
182404
- forward: Fit,
182405
- inverse: Bit,
182406
- names: kit
182401
+ var zit = ["Robinson", "robin"];
182402
+ const jit = {
182403
+ init: Fit,
182404
+ forward: Bit,
182405
+ inverse: kit,
182406
+ names: zit
182407
182407
  };
182408
- function jit() {
182408
+ function Uit() {
182409
182409
  this.name = "geocent";
182410
182410
  }
182411
- function Uit(e) {
182411
+ function Vit(e) {
182412
182412
  var t = jJ(e, this.es, this.a);
182413
182413
  return t;
182414
182414
  }
182415
- function Vit(e) {
182415
+ function Hit(e) {
182416
182416
  var t = UJ(e, this.es, this.a, this.b);
182417
182417
  return t;
182418
182418
  }
182419
- var Hit = ["Geocentric", "geocentric", "geocent", "Geocent"];
182420
- const Git = {
182421
- init: jit,
182422
- forward: Uit,
182423
- inverse: Vit,
182424
- names: Hit
182419
+ var Git = ["Geocentric", "geocentric", "geocent", "Geocent"];
182420
+ const qit = {
182421
+ init: Uit,
182422
+ forward: Vit,
182423
+ inverse: Hit,
182424
+ names: Git
182425
182425
  };
182426
182426
  var Js = {
182427
182427
  N_POLE: 0,
@@ -182440,7 +182440,7 @@ var Js = {
182440
182440
  lat0: { def: 0, num: !0 }
182441
182441
  // default is Equator, conversion to rad is automatic
182442
182442
  };
182443
- function qit() {
182443
+ function Wit() {
182444
182444
  if (Object.keys(WA).forEach((function(n) {
182445
182445
  if (typeof this[n] > "u")
182446
182446
  this[n] = WA[n].def;
@@ -182456,7 +182456,7 @@ function qit() {
182456
182456
  var e = this.tilt, t = this.azi;
182457
182457
  this.cg = Math.cos(t), this.sg = Math.sin(t), this.cw = Math.cos(e), this.sw = Math.sin(e);
182458
182458
  }
182459
- function Wit(e) {
182459
+ function $it(e) {
182460
182460
  e.x -= this.long0;
182461
182461
  var t = Math.sin(e.y), n = Math.cos(e.y), i = Math.cos(e.x), o, r;
182462
182462
  switch (this.mode) {
@@ -182490,7 +182490,7 @@ function Wit(e) {
182490
182490
  var s, a;
182491
182491
  return s = r * this.cg + o * this.sg, a = 1 / (s * this.sw * this.h1 + this.cw), o = (o * this.cg - r * this.sg) * this.cw * a, r = s * a, e.x = o * this.a, e.y = r * this.a, e;
182492
182492
  }
182493
- function $it(e) {
182493
+ function Yit(e) {
182494
182494
  e.x /= this.a, e.y /= this.a;
182495
182495
  var t = { x: e.x, y: e.y }, n, i, o;
182496
182496
  o = 1 / (this.pn1 - e.y * this.sw), n = this.pn1 * e.x * o, i = this.pn1 * e.y * this.cw * o, e.x = n * this.cg + i * this.sg, e.y = i * this.cg - n * this.sg;
@@ -182517,14 +182517,14 @@ function $it(e) {
182517
182517
  }
182518
182518
  return e.x = t.x + this.long0, e.y = t.y, e;
182519
182519
  }
182520
- var Yit = ["Tilted_Perspective", "tpers"];
182521
- const Xit = {
182522
- init: qit,
182523
- forward: Wit,
182524
- inverse: $it,
182525
- names: Yit
182520
+ var Xit = ["Tilted_Perspective", "tpers"];
182521
+ const Kit = {
182522
+ init: Wit,
182523
+ forward: $it,
182524
+ inverse: Yit,
182525
+ names: Xit
182526
182526
  };
182527
- function Kit() {
182527
+ function Jit() {
182528
182528
  if (this.flip_axis = this.sweep === "x" ? 1 : 0, this.h = Number(this.h), this.radius_g_1 = this.h / this.a, this.radius_g_1 <= 0 || this.radius_g_1 > 1e10)
182529
182529
  throw new Error();
182530
182530
  if (this.radius_g = 1 + this.radius_g_1, this.C = this.radius_g * this.radius_g - 1, this.es !== 0) {
@@ -182534,7 +182534,7 @@ function Kit() {
182534
182534
  this.radius_p = 1, this.radius_p2 = 1, this.radius_p_inv2 = 1, this.shape = "sphere";
182535
182535
  this.title || (this.title = "Geostationary Satellite View");
182536
182536
  }
182537
- function Jit(e) {
182537
+ function Qit(e) {
182538
182538
  var t = e.x, n = e.y, i, o, r, s;
182539
182539
  if (t = t - this.long0, this.shape === "ellipse") {
182540
182540
  n = Math.atan(this.radius_p2 * Math.tan(n));
@@ -182545,7 +182545,7 @@ function Jit(e) {
182545
182545
  } else this.shape === "sphere" && (i = Math.cos(n), o = Math.cos(t) * i, r = Math.sin(t) * i, s = Math.sin(n), i = this.radius_g - o, this.flip_axis ? (e.x = this.radius_g_1 * Math.atan(r / ja(s, i)), e.y = this.radius_g_1 * Math.atan(s / i)) : (e.x = this.radius_g_1 * Math.atan(r / i), e.y = this.radius_g_1 * Math.atan(s / ja(r, i))));
182546
182546
  return e.x = e.x * this.a, e.y = e.y * this.a, e;
182547
182547
  }
182548
- function Qit(e) {
182548
+ function Zit(e) {
182549
182549
  var t = -1, n = 0, i = 0, o, r, s, a;
182550
182550
  if (e.x = e.x / this.a, e.y = e.y / this.a, this.shape === "ellipse") {
182551
182551
  this.flip_axis ? (i = Math.tan(e.y / this.radius_g_1), n = Math.tan(e.x / this.radius_g_1) * ja(1, i)) : (n = Math.tan(e.x / this.radius_g_1), i = Math.tan(e.y / this.radius_g_1) * ja(1, n));
@@ -182560,39 +182560,39 @@ function Qit(e) {
182560
182560
  }
182561
182561
  return e.x = e.x + this.long0, e;
182562
182562
  }
182563
- var Zit = ["Geostationary Satellite View", "Geostationary_Satellite", "geos"];
182564
- const eot = {
182565
- init: Kit,
182566
- forward: Jit,
182567
- inverse: Qit,
182568
- names: Zit
182563
+ var eot = ["Geostationary Satellite View", "Geostationary_Satellite", "geos"];
182564
+ const tot = {
182565
+ init: Jit,
182566
+ forward: Qit,
182567
+ inverse: Zit,
182568
+ names: eot
182569
182569
  };
182570
182570
  var ky = 1.340264, zy = -0.081106, jy = 893e-6, Uy = 3796e-6, qC = Math.sqrt(3) / 2;
182571
- function tot() {
182571
+ function not() {
182572
182572
  this.long0 = this.long0 !== void 0 ? this.long0 : 0, this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0, this.es !== 0 && (this.apa = KJ(this.es), this.qp = ju(this.e, 1), this.rqda = Math.sqrt(0.5 * this.qp));
182573
182573
  }
182574
- function not(e) {
182574
+ function iot(e) {
182575
182575
  var t = wt(e.x - this.long0, this.over), n = e.y, i = Math.sin(n);
182576
182576
  this.es !== 0 && (i = ju(this.e, i) / this.qp);
182577
182577
  var o = Math.asin(qC * i), r = o * o, s = r * r * r;
182578
182578
  return e.x = t * Math.cos(o) / (qC * (ky + 3 * zy * r + s * (7 * jy + 9 * Uy * r))), e.y = o * (ky + zy * r + s * (jy + Uy * r)), this.es !== 0 && (e.x *= this.rqda, e.y *= this.rqda), e.x = this.a * e.x + this.x0, e.y = this.a * e.y + this.y0, e;
182579
182579
  }
182580
- function iot(e) {
182580
+ function oot(e) {
182581
182581
  e.x = (e.x - this.x0) / this.a, e.y = (e.y - this.y0) / this.a, this.es !== 0 && (e.x /= this.rqda, e.y /= this.rqda);
182582
182582
  var t = 1e-9, n = 12, i = e.y, o, r, s, a, c, u;
182583
182583
  for (u = 0; u < n && (o = i * i, r = o * o * o, s = i * (ky + zy * o + r * (jy + Uy * o)) - e.y, a = ky + 3 * zy * o + r * (7 * jy + 9 * Uy * o), i -= c = s / a, !(Math.abs(c) < t)); ++u)
182584
182584
  ;
182585
182585
  return o = i * i, r = o * o * o, e.x = qC * e.x * (ky + 3 * zy * o + r * (7 * jy + 9 * Uy * o)) / Math.cos(i), e.y = Math.asin(Math.sin(i) / qC), this.es !== 0 && (e.y = JJ(e.y, this.apa)), e.x = wt(e.x + this.long0, this.over), e;
182586
182586
  }
182587
- var oot = ["eqearth", "Equal Earth", "Equal_Earth"];
182588
- const rot = {
182589
- init: tot,
182590
- forward: not,
182591
- inverse: iot,
182592
- names: oot
182587
+ var rot = ["eqearth", "Equal Earth", "Equal_Earth"];
182588
+ const sot = {
182589
+ init: not,
182590
+ forward: iot,
182591
+ inverse: oot,
182592
+ names: rot
182593
182593
  };
182594
182594
  var Pb = 1e-10;
182595
- function sot() {
182595
+ function aot() {
182596
182596
  var e;
182597
182597
  if (this.phi1 = this.lat1, Math.abs(this.phi1) < Pb)
182598
182598
  throw new Error();
@@ -182601,13 +182601,13 @@ function sot() {
182601
182601
  this.am1 = Math.sin(this.phi1),
182602
182602
  e = Math.cos(this.phi1),
182603
182603
  this.en
182604
- ), this.am1 = e / (Math.sqrt(1 - this.es * this.am1 * this.am1) * this.am1), this.inverse = cot, this.forward = aot) : (Math.abs(this.phi1) + Pb >= rt ? this.cphi1 = 0 : this.cphi1 = 1 / Math.tan(this.phi1), this.inverse = uot, this.forward = lot);
182604
+ ), this.am1 = e / (Math.sqrt(1 - this.es * this.am1 * this.am1) * this.am1), this.inverse = lot, this.forward = cot) : (Math.abs(this.phi1) + Pb >= rt ? this.cphi1 = 0 : this.cphi1 = 1 / Math.tan(this.phi1), this.inverse = hot, this.forward = uot);
182605
182605
  }
182606
- function aot(e) {
182606
+ function cot(e) {
182607
182607
  var t = wt(e.x - (this.long0 || 0), this.over), n = e.y, i, o, r;
182608
182608
  return i = this.am1 + this.m1 - z_(n, o = Math.sin(n), r = Math.cos(n), this.en), o = r * t / (i * Math.sqrt(1 - this.es * o * o)), e.x = i * Math.sin(o), e.y = this.am1 - i * Math.cos(o), e.x = this.a * e.x + (this.x0 || 0), e.y = this.a * e.y + (this.y0 || 0), e;
182609
182609
  }
182610
- function cot(e) {
182610
+ function lot(e) {
182611
182611
  e.x = (e.x - (this.x0 || 0)) / this.a, e.y = (e.y - (this.y0 || 0)) / this.a;
182612
182612
  var t, n, i, o;
182613
182613
  if (n = ja(e.x, e.y = this.am1 - e.y), o = FL(this.am1 + this.m1 - n, this.es, this.en), (t = Math.abs(o)) < rt)
@@ -182618,29 +182618,29 @@ function cot(e) {
182618
182618
  throw new Error();
182619
182619
  return e.x = wt(i + (this.long0 || 0), this.over), e.y = Qf(o), e;
182620
182620
  }
182621
- function lot(e) {
182621
+ function uot(e) {
182622
182622
  var t = wt(e.x - (this.long0 || 0), this.over), n = e.y, i, o;
182623
182623
  return o = this.cphi1 + this.phi1 - n, Math.abs(o) > Pb ? (e.x = o * Math.sin(i = t * Math.cos(n) / o), e.y = this.cphi1 - o * Math.cos(i)) : e.x = e.y = 0, e.x = this.a * e.x + (this.x0 || 0), e.y = this.a * e.y + (this.y0 || 0), e;
182624
182624
  }
182625
- function uot(e) {
182625
+ function hot(e) {
182626
182626
  e.x = (e.x - (this.x0 || 0)) / this.a, e.y = (e.y - (this.y0 || 0)) / this.a;
182627
182627
  var t, n, i = ja(e.x, e.y = this.cphi1 - e.y);
182628
182628
  if (n = this.cphi1 + this.phi1 - i, Math.abs(n) > rt)
182629
182629
  throw new Error();
182630
182630
  return Math.abs(Math.abs(n) - rt) <= Pb ? t = 0 : t = i * Math.atan2(e.x, e.y) / Math.cos(n), e.x = wt(t + (this.long0 || 0), this.over), e.y = Qf(n), e;
182631
182631
  }
182632
- var hot = ["bonne", "Bonne (Werner lat_1=90)"];
182633
- const dot = {
182634
- init: sot,
182635
- names: hot
182632
+ var dot = ["bonne", "Bonne (Werner lat_1=90)"];
182633
+ const fot = {
182634
+ init: aot,
182635
+ names: dot
182636
182636
  }, yV = {
182637
182637
  OBLIQUE: {
182638
- forward: _ot,
182639
- inverse: yot
182640
- },
182641
- TRANSVERSE: {
182642
182638
  forward: Aot,
182643
182639
  inverse: bot
182640
+ },
182641
+ TRANSVERSE: {
182642
+ forward: yot,
182643
+ inverse: xot
182644
182644
  }
182645
182645
  }, WC = {
182646
182646
  ROTATE: {
@@ -182659,7 +182659,7 @@ const dot = {
182659
182659
  o_lat_2: "oLat2"
182660
182660
  }
182661
182661
  };
182662
- function fot() {
182662
+ function mot() {
182663
182663
  if (this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.long0 = this.long0 || 0, this.title = this.title || "General Oblique Transformation", this.isIdentity = FJ.includes(this.o_proj), !this.o_proj)
182664
182664
  throw new Error("Missing parameter: o_proj");
182665
182665
  if (this.o_proj === "ob_tran")
@@ -182694,16 +182694,16 @@ function fot() {
182694
182694
  }
182695
182695
  if (!n)
182696
182696
  throw new Error("No valid parameters provided for ob_tran projection.");
182697
- const { lamp: r, phip: s } = got(this, n);
182697
+ const { lamp: r, phip: s } = _ot(this, n);
182698
182698
  this.lamp = r, Math.abs(s) > Tt ? (this.cphip = Math.cos(s), this.sphip = Math.sin(s), this.projectionType = yV.OBLIQUE) : this.projectionType = yV.TRANSVERSE;
182699
182699
  }
182700
- function mot(e) {
182700
+ function pot(e) {
182701
182701
  return this.projectionType.forward(this, e);
182702
182702
  }
182703
- function pot(e) {
182703
+ function got(e) {
182704
182704
  return this.projectionType.inverse(this, e);
182705
182705
  }
182706
- function got(e, t) {
182706
+ function _ot(e, t) {
182707
182707
  let n, i;
182708
182708
  if (t === WC.ROTATE) {
182709
182709
  let o = e.oLongC, r = e.oLatC, s = e.oAlpha;
@@ -182729,7 +182729,7 @@ function got(e, t) {
182729
182729
  }
182730
182730
  return { lamp: i, phip: n };
182731
182731
  }
182732
- function _ot(e, t) {
182732
+ function Aot(e, t) {
182733
182733
  let { x: n, y: i } = t;
182734
182734
  n = wt(n - e.long0, e.over);
182735
182735
  const o = Math.cos(n), r = Math.sin(i), s = Math.cos(i);
@@ -182744,7 +182744,7 @@ function _ot(e, t) {
182744
182744
  const a = e.obliqueProjection.forward(t);
182745
182745
  return e.isIdentity && (a.x *= Va, a.y *= Va), a;
182746
182746
  }
182747
- function Aot(e, t) {
182747
+ function yot(e, t) {
182748
182748
  let { x: n, y: i } = t;
182749
182749
  n = wt(n - e.long0, e.over);
182750
182750
  const o = Math.cos(i), r = Math.cos(n);
@@ -182757,7 +182757,7 @@ function Aot(e, t) {
182757
182757
  const s = e.obliqueProjection.forward(t);
182758
182758
  return e.isIdentity && (s.x *= Va, s.y *= Va), s;
182759
182759
  }
182760
- function yot(e, t) {
182760
+ function bot(e, t) {
182761
182761
  e.isIdentity && (t.x *= Zo, t.y *= Zo);
182762
182762
  const n = e.obliqueProjection.inverse(t);
182763
182763
  let { x: i, y: o } = n;
@@ -182773,7 +182773,7 @@ function yot(e, t) {
182773
182773
  }
182774
182774
  return t.x = wt(t.x + e.long0), t;
182775
182775
  }
182776
- function bot(e, t) {
182776
+ function xot(e, t) {
182777
182777
  e.isIdentity && (t.x *= Zo, t.y *= Zo);
182778
182778
  const n = e.obliqueProjection.inverse(t);
182779
182779
  let { x: i, y: o } = n;
@@ -182788,29 +182788,29 @@ function bot(e, t) {
182788
182788
  }
182789
182789
  return t.x = wt(t.x + e.long0), t;
182790
182790
  }
182791
- var xot = ["General Oblique Transformation", "General_Oblique_Transformation", "ob_tran"];
182792
- const Tot = {
182793
- init: fot,
182794
- forward: mot,
182795
- inverse: pot,
182796
- names: xot
182791
+ var Tot = ["General Oblique Transformation", "General_Oblique_Transformation", "ob_tran"];
182792
+ const vot = {
182793
+ init: mot,
182794
+ forward: pot,
182795
+ inverse: got,
182796
+ names: Tot
182797
182797
  };
182798
- function vot(e) {
182799
- e.Proj.projections.add(HE), e.Proj.projections.add(GE), e.Proj.projections.add(utt), e.Proj.projections.add(ytt), e.Proj.projections.add(Ett), e.Proj.projections.add(Ptt), e.Proj.projections.add(Ltt), e.Proj.projections.add(jtt), e.Proj.projections.add(qtt), e.Proj.projections.add(Ktt), e.Proj.projections.add(ant), e.Proj.projections.add(fnt), e.Proj.projections.add(Ant), e.Proj.projections.add(Ent), e.Proj.projections.add(Pnt), e.Proj.projections.add(Nnt), e.Proj.projections.add(znt), e.Proj.projections.add(Gnt), e.Proj.projections.add(Ynt), e.Proj.projections.add(Znt), e.Proj.projections.add(oit), e.Proj.projections.add(lit), e.Proj.projections.add(mit), e.Proj.projections.add(xit), e.Proj.projections.add(wit), e.Proj.projections.add(Oit), e.Proj.projections.add(zit), e.Proj.projections.add(Git), e.Proj.projections.add(Xit), e.Proj.projections.add(eot), e.Proj.projections.add(rot), e.Proj.projections.add(dot), e.Proj.projections.add(Tot);
182798
+ function Eot(e) {
182799
+ e.Proj.projections.add(HE), e.Proj.projections.add(GE), e.Proj.projections.add(htt), e.Proj.projections.add(btt), e.Proj.projections.add(Ctt), e.Proj.projections.add(Dtt), e.Proj.projections.add(Ftt), e.Proj.projections.add(Utt), e.Proj.projections.add(Wtt), e.Proj.projections.add(Jtt), e.Proj.projections.add(cnt), e.Proj.projections.add(mnt), e.Proj.projections.add(ynt), e.Proj.projections.add(Cnt), e.Proj.projections.add(Dnt), e.Proj.projections.add(Lnt), e.Proj.projections.add(jnt), e.Proj.projections.add(qnt), e.Proj.projections.add(Xnt), e.Proj.projections.add(eit), e.Proj.projections.add(rit), e.Proj.projections.add(uit), e.Proj.projections.add(pit), e.Proj.projections.add(Tit), e.Proj.projections.add(Sit), e.Proj.projections.add(Rit), e.Proj.projections.add(jit), e.Proj.projections.add(qit), e.Proj.projections.add(Kit), e.Proj.projections.add(tot), e.Proj.projections.add(sot), e.Proj.projections.add(fot), e.Proj.projections.add(vot);
182800
182800
  }
182801
- const hS = Object.assign(wet, {
182801
+ const hS = Object.assign(Iet, {
182802
182802
  defaultDatum: "WGS84",
182803
182803
  Proj: _l,
182804
182804
  WGS84: new _l("WGS84"),
182805
182805
  Point: c_,
182806
182806
  toPoint: ML,
182807
182807
  defs: Cs,
182808
- nadgrid: oet,
182809
- transform: Cet,
182810
- mgrs: Iet,
182808
+ nadgrid: ret,
182809
+ transform: wet,
182810
+ mgrs: Pet,
182811
182811
  version: "__VERSION__"
182812
182812
  });
182813
- vot(hS);
182813
+ Eot(hS);
182814
182814
  try {
182815
182815
  let e = () => new DecompressionStream("deflate-raw"), t = (n) => new Response(n);
182816
182816
  e(), iQ = (n) => t(t(n).body.pipeThrough(e())).arrayBuffer().then((i) => new Uint8Array(i));
@@ -182819,7 +182819,7 @@ try {
182819
182819
  var iQ, bV = new TextDecoder(), MD = (e) => {
182820
182820
  throw Error("but-unzip~" + e);
182821
182821
  };
182822
- function* Eot(e, t = iQ) {
182822
+ function* Cot(e, t = iQ) {
182823
182823
  let n = e.length - 21, i = n - 65536, o = new DataView(e.buffer, e.byteOffset), r = (c) => o.getUint16(c + n, 1), s = (c) => o.getUint32(c + n, 1), a = (c, u) => e.subarray(n += c, n += u);
182824
182824
  for (; n > i && (n = e.lastIndexOf(80, n - 1)) + 1 && (e[n + 1] - 75 || e[n + 2] - 5 || e[n + 3] - 6); ) ;
182825
182825
  for (n < 0 && MD(2), i = r(10), i - r(8) && MD(3), n = s(16); i--; ) {
@@ -182827,23 +182827,23 @@ function* Eot(e, t = iQ) {
182827
182827
  n = _, x = a(30 + r(26) + r(28), m), yield { filename: p, comment: A, read: () => c - 8 ? c ? MD(1) : x : t(x) }, n = y;
182828
182828
  }
182829
182829
  }
182830
- const Cot = /.+\.(shp|dbf|json|prj|cpg)$/i, wot = async (e) => {
182830
+ const wot = /.+\.(shp|dbf|json|prj|cpg)$/i, Sot = async (e) => {
182831
182831
  const t = {}, n = [];
182832
- for (const r of Eot(e))
182833
- Cot.test(r.filename) && n.push(Promise.resolve(r.read()).then((s) => t[r.filename] = s));
182832
+ for (const r of Cot(e))
182833
+ wot.test(r.filename) && n.push(Promise.resolve(r.read()).then((s) => t[r.filename] = s));
182834
182834
  await Promise.all(n);
182835
182835
  const i = {}, o = new TextDecoder();
182836
182836
  for (const [r, s] of Object.entries(t))
182837
182837
  r.slice(-3).toLowerCase() === "shp" || r.slice(-3).toLowerCase() === "dbf" ? i[r] = new DataView(s.buffer, s.byteOffset, s.byteLength) : i[r] = o.decode(s);
182838
182838
  return i;
182839
- }, Sot = globalThis.URL, Iot = (e, t) => {
182839
+ }, Iot = globalThis.URL, Pot = (e, t) => {
182840
182840
  if (!t)
182841
182841
  return e;
182842
- const n = new Sot(e);
182842
+ const n = new Iot(e);
182843
182843
  return n.pathname = `${n.pathname}.${t}`, n.href;
182844
182844
  };
182845
182845
  async function Db(e, t) {
182846
- const n = Iot(e, t), i = t === "prj" || t === "cpg";
182846
+ const n = Pot(e, t), i = t === "prj" || t === "cpg";
182847
182847
  try {
182848
182848
  const o = await fetch(n);
182849
182849
  if (o.status > 399)
@@ -182858,7 +182858,7 @@ async function Db(e, t) {
182858
182858
  throw o;
182859
182859
  }
182860
182860
  }
182861
- function Pot(e) {
182861
+ function Dot(e) {
182862
182862
  let t = 0, n = 1;
182863
182863
  const i = e.length;
182864
182864
  let o, r;
@@ -182878,7 +182878,7 @@ function xV(e, t) {
182878
182878
  function oQ(e, t = !1) {
182879
182879
  const n = [], i = [];
182880
182880
  for (const s of e) {
182881
- const a = Pot(s);
182881
+ const a = Dot(s);
182882
182882
  a.clockWise !== t ? n.push(a) : i.push(a);
182883
182883
  }
182884
182884
  const o = [];
@@ -183012,7 +183012,7 @@ const TV = {
183012
183012
  15: "parseZPolygon",
183013
183013
  18: "parseZMultiPoint"
183014
183014
  };
183015
- function Dot(e) {
183015
+ function Oot(e) {
183016
183016
  return e ? function(t, n) {
183017
183017
  const i = [t.getFloat64(n, !0), t.getFloat64(n + 8, !0)];
183018
183018
  return e.inverse(i);
@@ -183029,7 +183029,7 @@ vr.prototype.shpFuncs = function(e) {
183029
183029
  let t = this.headers.shpCode;
183030
183030
  if (t > 20 && (t -= 20), !(t in TV))
183031
183031
  throw new Error(`I don't know shp type "${t}"`);
183032
- this.parseFunc = this[TV[t]], this.parseCoord = Dot(e);
183032
+ this.parseFunc = this[TV[t]], this.parseCoord = Oot(e);
183033
183033
  };
183034
183034
  vr.prototype.getShpCode = function() {
183035
183035
  return this.parseHeader().shpCode;
@@ -183075,14 +183075,14 @@ vr.prototype.getRow = function(e) {
183075
183075
  function VL(e, t) {
183076
183076
  return new vr(e, t).rows;
183077
183077
  }
183078
- var Oot = /^(?:ANSI\s)?(\d+)$/m;
183078
+ var Rot = /^(?:ANSI\s)?(\d+)$/m;
183079
183079
  function rQ(e, t) {
183080
183080
  if (!e)
183081
183081
  return i;
183082
183082
  try {
183083
183083
  new TextDecoder(e.trim());
183084
183084
  } catch {
183085
- var n = Oot.exec(e);
183085
+ var n = Rot.exec(e);
183086
183086
  return n && !t ? rQ("windows-" + n[1], !0) : (e = void 0, i);
183087
183087
  }
183088
183088
  return i;
@@ -183093,11 +183093,11 @@ function rQ(e, t) {
183093
183093
  return s.replace(/\0/g, "").trim();
183094
183094
  }
183095
183095
  }
183096
- function Rot(e) {
183096
+ function Mot(e) {
183097
183097
  var t = {};
183098
183098
  return t.lastUpdated = new Date(e.getUint8(1) + 1900, e.getUint8(2), e.getUint8(3)), t.records = e.getUint32(4, !0), t.headerLen = e.getUint16(8, !0), t.recLen = e.getUint16(10, !0), t;
183099
183099
  }
183100
- function Mot(e, t, n) {
183100
+ function Not(e, t, n) {
183101
183101
  for (var i = [], o = 32; o < t && (i.push({
183102
183102
  name: n(new Uint8Array(e.buffer.slice(e.byteOffset + o, e.byteOffset + o + 11))),
183103
183103
  dataType: String.fromCharCode(e.getUint8(o + 11)),
@@ -183107,7 +183107,7 @@ function Mot(e, t, n) {
183107
183107
  o += 32;
183108
183108
  return i;
183109
183109
  }
183110
- function Not(e, t, n, i, o) {
183110
+ function Lot(e, t, n, i, o) {
183111
183111
  const r = new Uint8Array(e.buffer.slice(e.byteOffset + t, e.byteOffset + t + n));
183112
183112
  var s = o(r);
183113
183113
  switch (i) {
@@ -183123,17 +183123,17 @@ function Not(e, t, n, i, o) {
183123
183123
  return s;
183124
183124
  }
183125
183125
  }
183126
- function Lot(e, t, n, i) {
183126
+ function Fot(e, t, n, i) {
183127
183127
  for (var o = {}, r = 0, s = n.length, a, c; r < s; )
183128
- c = n[r], a = Not(e, t, c.len, c.dataType, i), t += c.len, typeof a < "u" && (o[c.name] = a), r++;
183128
+ c = n[r], a = Lot(e, t, c.len, c.dataType, i), t += c.len, typeof a < "u" && (o[c.name] = a), r++;
183129
183129
  return o;
183130
183130
  }
183131
183131
  function HL(e, t) {
183132
- for (var n = rQ(t), i = Rot(e), o = Mot(e, i.headerLen - 1, n), r = (o.length + 1 << 5) + 2, s = i.recLen, a = i.records, c = []; a; )
183133
- c.push(Lot(e, r, o, n)), r += s, a--;
183132
+ for (var n = rQ(t), i = Mot(e), o = Not(e, i.headerLen - 1, n), r = (o.length + 1 << 5) + 2, s = i.recLen, a = i.records, c = []; a; )
183133
+ c.push(Fot(e, r, o, n)), r += s, a--;
183134
183134
  return c;
183135
183135
  }
183136
- const Fot = globalThis.URL, Bot = (e) => {
183136
+ const Bot = globalThis.URL, kot = (e) => {
183137
183137
  if (!e)
183138
183138
  throw new Error("forgot to pass buffer");
183139
183139
  if (l_(e))
@@ -183141,12 +183141,12 @@ const Fot = globalThis.URL, Bot = (e) => {
183141
183141
  if (l_(e.buffer))
183142
183142
  return e.BYTES_PER_ELEMENT === 1 ? e : new Uint8Array(e.buffer, e.byteOffset, e.byteLength);
183143
183143
  throw new Error("invalid buffer like object");
183144
- }, kot = new TextDecoder(), sQ = (e) => {
183144
+ }, zot = new TextDecoder(), sQ = (e) => {
183145
183145
  if (e) {
183146
183146
  if (typeof e == "string")
183147
183147
  return e;
183148
183148
  if (l_(e) || ArrayBuffer.isView(e) || GL(e))
183149
- return kot.decode(e);
183149
+ return zot.decode(e);
183150
183150
  }
183151
183151
  }, aQ = (e) => {
183152
183152
  if (!e)
@@ -183179,8 +183179,8 @@ const qL = function([e, t]) {
183179
183179
  return n;
183180
183180
  }, cQ = async function(e, t) {
183181
183181
  let n;
183182
- e = Bot(e);
183183
- const i = await wot(e), o = [];
183182
+ e = kot(e);
183183
+ const i = await Sot(e), o = [];
183184
183184
  t = t || [];
183185
183185
  for (n in i)
183186
183186
  n.indexOf("__MACOSX") === -1 && (n.slice(-4).toLowerCase() === ".shp" ? (o.push(n.slice(0, -4)), i[n.slice(0, -3) + n.slice(-3).toLowerCase()] = i[n]) : n.slice(-4).toLowerCase() === ".prj" ? i[n.slice(0, -3) + n.slice(-3).toLowerCase()] = hS(i[n]) : n.slice(-5).toLowerCase() === ".json" || t.indexOf(n.split(".").pop()) > -1 ? o.push(n.slice(0, -3) + n.slice(-3).toLowerCase()) : (n.slice(-4).toLowerCase() === ".dbf" || n.slice(-4).toLowerCase() === ".cpg") && (i[n.slice(0, -3) + n.slice(-3).toLowerCase()] = i[n]));
@@ -183193,11 +183193,11 @@ const qL = function([e, t]) {
183193
183193
  });
183194
183194
  return r.length === 1 ? r[0] : r;
183195
183195
  };
183196
- async function zot(e, t) {
183196
+ async function jot(e, t) {
183197
183197
  const n = await Db(e);
183198
183198
  return cQ(n, t);
183199
183199
  }
183200
- const jot = async (e) => {
183200
+ const Uot = async (e) => {
183201
183201
  const t = await Promise.all([
183202
183202
  Db(e, "shp"),
183203
183203
  Db(e, "prj")
@@ -183209,35 +183209,35 @@ const jot = async (e) => {
183209
183209
  n = !1;
183210
183210
  }
183211
183211
  return VL(t[0], n);
183212
- }, Uot = async (e) => {
183212
+ }, Vot = async (e) => {
183213
183213
  const [t, n] = await Promise.all([
183214
183214
  Db(e, "dbf"),
183215
183215
  Db(e, "cpg")
183216
183216
  ]);
183217
183217
  if (t)
183218
183218
  return HL(t, n);
183219
- }, vV = (e, t) => new Fot(e, globalThis?.document?.location).pathname.slice(-4).toLowerCase() === t, Vot = ({ shp: e, dbf: t, cpg: n, prj: i }) => {
183219
+ }, vV = (e, t) => new Bot(e, globalThis?.document?.location).pathname.slice(-4).toLowerCase() === t, Hot = ({ shp: e, dbf: t, cpg: n, prj: i }) => {
183220
183220
  const o = [
183221
- Got(e, i)
183221
+ qot(e, i)
183222
183222
  ];
183223
- return t && o.push(qot(t, n)), qL(o);
183224
- }, Hot = async function(e, t) {
183223
+ return t && o.push(Wot(t, n)), qL(o);
183224
+ }, Got = async function(e, t) {
183225
183225
  if (typeof e != "string") {
183226
183226
  if (l_(e) || ArrayBuffer.isView(e) || GL(e))
183227
183227
  return cQ(e);
183228
183228
  if (e.shp)
183229
- return Vot(e);
183229
+ return Hot(e);
183230
183230
  throw new TypeError("must be a string, some sort of Buffer, or an object with at least a .shp property");
183231
183231
  }
183232
183232
  if (vV(e, ".zip"))
183233
- return zot(e, t);
183233
+ return jot(e, t);
183234
183234
  vV(e, ".shp") && (e = e.slice(0, -4));
183235
183235
  const n = await Promise.all([
183236
- jot(e),
183237
- Uot(e)
183236
+ Uot(e),
183237
+ Vot(e)
183238
183238
  ]);
183239
183239
  return qL(n);
183240
- }, Got = function(e, t) {
183240
+ }, qot = function(e, t) {
183241
183241
  if (e = aQ(e), t = sQ(t), typeof t == "string")
183242
183242
  try {
183243
183243
  t = hS(t);
@@ -183245,10 +183245,10 @@ const jot = async (e) => {
183245
183245
  t = !1;
183246
183246
  }
183247
183247
  return VL(e, t);
183248
- }, qot = function(e, t) {
183248
+ }, Wot = function(e, t) {
183249
183249
  return e = aQ(e), t = sQ(t), HL(e, t);
183250
183250
  };
183251
- class Wot {
183251
+ class $ot {
183252
183252
  constructor(t) {
183253
183253
  this.geoJsonLoader = t;
183254
183254
  }
@@ -183256,7 +183256,7 @@ class Wot {
183256
183256
  * 加载 SHP 数据。
183257
183257
  */
183258
183258
  async load(t, n) {
183259
- const i = await Hot(t.source);
183259
+ const i = await Got(t.source);
183260
183260
  return {
183261
183261
  ...await this.geoJsonLoader.load({
183262
183262
  id: t.id,
@@ -183275,7 +183275,7 @@ class Wot {
183275
183275
  };
183276
183276
  }
183277
183277
  }
183278
- class $ot {
183278
+ class Yot {
183279
183279
  constructor(t) {
183280
183280
  this.viewer = t;
183281
183281
  }
@@ -183598,9 +183598,9 @@ class $ot {
183598
183598
  return /^blob:\/\/\//i.test(t);
183599
183599
  }
183600
183600
  }
183601
- class Yot {
183601
+ class Xot {
183602
183602
  constructor(t) {
183603
- this.viewer = t, this.tiles3dLoader = new $ot(t), this.gltfLoader = new mZe(t), this.geoJsonLoader = new cZe(t), this.shpLoader = new Wot(this.geoJsonLoader);
183603
+ this.viewer = t, this.tiles3dLoader = new Yot(t), this.gltfLoader = new pZe(t), this.geoJsonLoader = new lZe(t), this.shpLoader = new $ot(this.geoJsonLoader);
183604
183604
  }
183605
183605
  tiles3dLoader;
183606
183606
  gltfLoader;
@@ -183655,9 +183655,9 @@ class Yot {
183655
183655
  const n = this.findTilesetByUrl(t.url);
183656
183656
  if (!n)
183657
183657
  return !1;
183658
- const i = lZe(t) || EJ(t), o = this.getCalibrationBase(n), r = t.matrix ? this.toCesiumMatrix(t.matrix) : R.clone(i ? o.matrix : n.modelMatrix ?? R.IDENTITY, new R()), s = i ? o.center : n.boundingSphere.center;
183658
+ const i = uZe(t) || EJ(t), o = this.getCalibrationBase(n), r = t.matrix ? this.toCesiumMatrix(t.matrix) : R.clone(i ? o.matrix : n.modelMatrix ?? R.IDENTITY, new R()), s = i ? o.center : n.boundingSphere.center;
183659
183659
  if (i) {
183660
- const a = uZe(r, s, t);
183660
+ const a = hZe(r, s, t);
183661
183661
  if (!a)
183662
183662
  return !1;
183663
183663
  n.modelMatrix = a;
@@ -183770,7 +183770,7 @@ class Yot {
183770
183770
  return R.fromArray(i);
183771
183771
  }
183772
183772
  }
183773
- class Xot {
183773
+ class Kot {
183774
183774
  constructor(t) {
183775
183775
  this.viewer = t;
183776
183776
  }
@@ -183826,7 +183826,7 @@ class Xot {
183826
183826
  i !== void 0 && (t[n] = i);
183827
183827
  }
183828
183828
  }
183829
- class Kot {
183829
+ class Jot {
183830
183830
  viewer;
183831
183831
  manager;
183832
183832
  postRenderHandler;
@@ -183915,7 +183915,7 @@ class Kot {
183915
183915
  return Number.isFinite(t.longitude) && Number.isFinite(t.latitude) ? d.fromDegrees(t.longitude, t.latitude, t.height ?? t.z ?? 0) : Number.isFinite(t.x) && Number.isFinite(t.y) && Number.isFinite(t.z) ? new d(t.x, t.y, t.z) : null;
183916
183916
  }
183917
183917
  }
183918
- class Jot {
183918
+ class Qot {
183919
183919
  constructor(t, n, i = !1) {
183920
183920
  this.viewer = t, this.container = n;
183921
183921
  const o = this.normalizeOptions(i);
@@ -184043,7 +184043,7 @@ class Jot {
184043
184043
  return n.className = "bim-engine-gis-performance-value", n.textContent = t, n;
184044
184044
  }
184045
184045
  }
184046
- class Qot {
184046
+ class Zot {
184047
184047
  engine;
184048
184048
  mainViewPort = null;
184049
184049
  constructor(t) {
@@ -184087,7 +184087,8 @@ class Qot {
184087
184087
  };
184088
184088
  }
184089
184089
  }
184090
- class wrt {
184090
+ class Srt {
184091
+ options;
184091
184092
  eventModule;
184092
184093
  viewerModule;
184093
184094
  modelManager;
@@ -184099,7 +184100,7 @@ class wrt {
184099
184100
  version = lQ;
184100
184101
  cameraChangedHandler;
184101
184102
  constructor(t) {
184102
- this.initialize(t);
184103
+ this.options = t, this.initialize(t);
184103
184104
  }
184104
184105
  /**
184105
184106
  * 初始化 GIS 引擎。
@@ -184110,11 +184111,11 @@ class wrt {
184110
184111
  throw new Error(`EngineKernelGIS: unsupported provider "${n}"`);
184111
184112
  const i = this.resolveContainer(t);
184112
184113
  try {
184113
- this.eventModule = new fQ(), this.viewerModule = new aZe(i, t), this.modelManager = new Yot(this.viewerModule.getViewer()), this.effectManager = new Xot(this.viewerModule.getViewer()), this.performanceMonitor = new Jot(
184114
+ this.eventModule = new sZe(), this.viewerModule = new cZe(i, t), this.modelManager = new Xot(this.viewerModule.getViewer()), this.effectManager = new Kot(this.viewerModule.getViewer()), this.performanceMonitor = new Qot(
184114
184115
  this.viewerModule.getViewer(),
184115
184116
  i,
184116
184117
  t.performanceMonitor ?? t.showStats ?? !1
184117
- ), this.viewCube = new Qot(this), this.label = new Kot(
184118
+ ), this.viewCube = new Zot(this), this.label = new Jot(
184118
184119
  this.viewerModule.getViewer(),
184119
184120
  i,
184120
184121
  (o, r) => this.eventModule.trigger(o, r)
@@ -184214,6 +184215,205 @@ class wrt {
184214
184215
  async loadGeoJson(t) {
184215
184216
  return this.loadModelWithEvents("geojson", t, () => this.modelManager.loadGeoJson(t));
184216
184217
  }
184218
+ /**
184219
+ * 通过 viewToken 解析 GIS 模型地址,并按返回格式复用现有 GIS 加载能力。
184220
+ */
184221
+ async loadModelByViewToken(t, n = {}) {
184222
+ const i = await fQ(
184223
+ this.options,
184224
+ t,
184225
+ "gis"
184226
+ );
184227
+ if (i.assetCategory === "gis_scene")
184228
+ return this.loadGisSceneByResolvedInfo(i, n);
184229
+ throw new Error(`EngineKernelGIS: unsupported GIS assetCategory "${i.assetCategory}" for viewToken loading`);
184230
+ }
184231
+ /**
184232
+ * GIS 场景本身没有单一模型 URL,resolve 返回的 info 会携带子模型清单与定位信息。
184233
+ */
184234
+ async loadGisSceneByResolvedInfo(t, n) {
184235
+ const o = this.parseResolvedGisSceneInfo(t.info)?.models?.filter((a) => this.hasResolvedSceneSource(a)) ?? [];
184236
+ if (o.length === 0)
184237
+ throw new Error("EngineKernelGIS: gis_scene info.models is empty or missing loadable source");
184238
+ let r = null;
184239
+ const s = o.length > 1;
184240
+ for (let a = 0; a < o.length; a += 1) {
184241
+ const c = o[a], u = await this.loadResolvedGisSceneModel(
184242
+ c,
184243
+ n,
184244
+ a,
184245
+ s
184246
+ );
184247
+ r || (r = u);
184248
+ }
184249
+ if (!r)
184250
+ throw new Error("EngineKernelGIS: failed to load any models from gis_scene info.models");
184251
+ return r;
184252
+ }
184253
+ /**
184254
+ * 只接受标准 GIS 场景 info 结构;旧数据缺失时继续走单模型 URL 回退逻辑。
184255
+ */
184256
+ parseResolvedGisSceneInfo(t) {
184257
+ return !t || typeof t != "object" || Array.isArray(t) ? null : t;
184258
+ }
184259
+ hasResolvedSceneSource(t) {
184260
+ return t ? typeof t.data == "string" || t.data && typeof t.data == "object" ? !0 : !!(t.viewUrl?.trim() || t.url?.trim() || t.source?.trim()) : !1;
184261
+ }
184262
+ async loadResolvedGisSceneModel(t, n, i, o) {
184263
+ const r = this.normalizeResolvedModelType(t), s = t.flyTo ?? (o ? i === 0 : n.flyTo ?? !0), a = this.toResolvedModelId(t, r, i), c = this.toResolvedModelName(t, a), u = t.show ?? n.show;
184264
+ if (r === "3dtiles") {
184265
+ const h = this.resolveSceneModelUrl(t), f = await this.load3DTiles({
184266
+ id: a,
184267
+ name: c,
184268
+ url: this.resolveTilesetSceneUrl(h),
184269
+ flyTo: s,
184270
+ show: u,
184271
+ keyBase64: t.keyBase64 ?? n.keyBase64,
184272
+ maximumScreenSpaceError: this.toFiniteNumber(t.maximumScreenSpaceError) ?? n.maximumScreenSpaceError,
184273
+ dynamicScreenSpaceError: typeof t.dynamicScreenSpaceError == "boolean" ? t.dynamicScreenSpaceError : n.dynamicScreenSpaceError,
184274
+ offset: t.offset ?? n.offset,
184275
+ rotation: this.normalizeSceneRotation(t.rotation) ?? n.rotation,
184276
+ rotationUnit: t.rotationUnit ?? n.rotationUnit,
184277
+ tilesetOptions: n.tilesetOptions
184278
+ });
184279
+ return this.applyResolvedSceneCalibration(f, t), f;
184280
+ }
184281
+ if (r === "glb" || r === "gltf") {
184282
+ const h = this.resolveSceneModelUrl(t), f = this.resolveResolvedModelPosition(t), m = {
184283
+ id: a,
184284
+ name: c,
184285
+ url: h,
184286
+ flyTo: s,
184287
+ show: u,
184288
+ offset: t.offset ?? n.offset,
184289
+ rotation: this.normalizeSceneRotation(t.rotation) ?? n.rotation,
184290
+ rotationUnit: t.rotationUnit ?? n.rotationUnit,
184291
+ scale: this.toFiniteNumber(t.scale),
184292
+ minimumPixelSize: this.toFiniteNumber(t.minimumPixelSize),
184293
+ maximumScale: this.toFiniteNumber(t.maximumScale)
184294
+ };
184295
+ return f && (m.position = f), r === "glb" ? this.loadGlb(m) : this.loadGltf(m);
184296
+ }
184297
+ if (r === "geojson") {
184298
+ const h = t.data ?? this.resolveSceneModelUrl(t);
184299
+ return this.loadGeoJson({
184300
+ id: a,
184301
+ name: c,
184302
+ data: h,
184303
+ sourceUri: t.sourceUri ?? (typeof h == "string" ? h : void 0),
184304
+ show: u,
184305
+ flyTo: s,
184306
+ clampToGround: t.clampToGround ?? !0,
184307
+ stroke: t.stroke ?? void 0,
184308
+ fill: t.fill ?? void 0,
184309
+ strokeWidth: this.toFiniteNumber(t.strokeWidth)
184310
+ });
184311
+ }
184312
+ if (r === "shp") {
184313
+ const h = t.source ?? this.resolveSceneModelUrl(t);
184314
+ return this.loadShp({
184315
+ id: a,
184316
+ name: c,
184317
+ source: h,
184318
+ sourceUri: t.sourceUri ?? (typeof h == "string" ? h : void 0),
184319
+ show: u,
184320
+ flyTo: s,
184321
+ clampToGround: t.clampToGround ?? !0,
184322
+ stroke: t.stroke ?? void 0,
184323
+ fill: t.fill ?? void 0,
184324
+ strokeWidth: this.toFiniteNumber(t.strokeWidth)
184325
+ });
184326
+ }
184327
+ throw new Error(`EngineKernelGIS: unsupported gis_scene modelType "${t.modelType ?? ""}"`);
184328
+ }
184329
+ applyResolvedSceneCalibration(t, n) {
184330
+ if (!t.source)
184331
+ return;
184332
+ const i = this.createResolvedSceneCalibrationOptions(t.source, n);
184333
+ i && this.applyCalibration(i);
184334
+ }
184335
+ createResolvedSceneCalibrationOptions(t, n) {
184336
+ const i = this.resolveResolvedModelPosition(n), o = this.normalizeSceneRotation(n.rotation), r = !!(i && Number.isFinite(i.longitude) && Number.isFinite(i.latitude)), s = !!n.offset, a = !!o, c = !!n.geographicOffset;
184337
+ if (!r && !s && !a && !c)
184338
+ return null;
184339
+ const u = {
184340
+ url: t,
184341
+ offset: n.offset ?? void 0,
184342
+ rotation: o ?? void 0,
184343
+ geographicOffset: n.geographicOffset ?? void 0,
184344
+ rotationUnit: n.rotationUnit ?? void 0
184345
+ };
184346
+ if (i) {
184347
+ const h = this.getTilesetCartographicBySource(t);
184348
+ h && (u.geographicOffset = {
184349
+ longitude: i.longitude - D.toDegrees(h.longitude),
184350
+ latitude: i.latitude - D.toDegrees(h.latitude),
184351
+ height: (i.height ?? 0) - h.height
184352
+ }, n.geographicOffset && (u.geographicOffset.longitude = (u.geographicOffset.longitude ?? 0) + (n.geographicOffset.longitude ?? 0), u.geographicOffset.latitude = (u.geographicOffset.latitude ?? 0) + (n.geographicOffset.latitude ?? 0), u.geographicOffset.height = (u.geographicOffset.height ?? 0) + (n.geographicOffset.height ?? 0)));
184353
+ }
184354
+ return u;
184355
+ }
184356
+ getTilesetCartographicBySource(t) {
184357
+ const i = this.modelManager.getModels().find((o) => o.source === t)?.primitive?.boundingSphere?.center;
184358
+ return i ? Ae.fromCartesian(i) : null;
184359
+ }
184360
+ normalizeResolvedModelType(t) {
184361
+ const n = String(t.modelType ?? "").trim().toLowerCase();
184362
+ if (n === "3dtiles" || n === "3d-tiles" || n === "tileset" || n === "tiles")
184363
+ return "3dtiles";
184364
+ if (n === "glb")
184365
+ return "glb";
184366
+ if (n === "gltf")
184367
+ return "gltf";
184368
+ if (n === "shp" || n === "shape" || n === "shapefile")
184369
+ return "shp";
184370
+ if (n === "geojson" || n === "json" || t.data && typeof t.data == "object")
184371
+ return "geojson";
184372
+ const i = `${t.viewUrl ?? t.url ?? t.source ?? ""}`.trim().toLowerCase();
184373
+ return /tileset\.json($|[?#])/.test(i) || /\/3dtiles($|[/?#])/.test(i) ? "3dtiles" : /\.geojson($|[?#])/.test(i) ? "geojson" : /\.(shp|zip)($|[?#])/.test(i) ? "shp" : /\.glb($|[?#])/.test(i) ? "glb" : /\.gltf($|[?#])/.test(i) ? "gltf" : "3dtiles";
184374
+ }
184375
+ resolveSceneModelUrl(t) {
184376
+ const n = t.viewUrl ?? t.url;
184377
+ if (!n?.trim())
184378
+ throw new Error(`EngineKernelGIS: gis_scene model "${t.name ?? t.id ?? ""}" missing viewUrl/url`);
184379
+ return n.trim();
184380
+ }
184381
+ resolveTilesetSceneUrl(t) {
184382
+ return /tileset\.json($|[?#])/i.test(t) ? t : `${t.replace(/\/+$/, "")}/3dtiles`;
184383
+ }
184384
+ resolveResolvedModelPosition(t) {
184385
+ const n = t.position ?? {}, i = this.toFiniteNumber(n.longitude ?? t.longitude), o = this.toFiniteNumber(n.latitude ?? t.latitude);
184386
+ if (!(!Number.isFinite(i) || !Number.isFinite(o)))
184387
+ return {
184388
+ longitude: i,
184389
+ latitude: o,
184390
+ height: this.toFiniteNumber(n.height ?? t.height),
184391
+ heading: this.toFiniteNumber(n.heading),
184392
+ pitch: this.toFiniteNumber(n.pitch),
184393
+ roll: this.toFiniteNumber(n.roll)
184394
+ };
184395
+ }
184396
+ normalizeSceneRotation(t) {
184397
+ if (t != null) {
184398
+ if (typeof t == "number")
184399
+ return { heading: t };
184400
+ if (Array.isArray(t) || typeof t == "object")
184401
+ return t;
184402
+ }
184403
+ }
184404
+ toResolvedModelId(t, n, i) {
184405
+ const o = t.id;
184406
+ return o != null && `${o}`.trim() ? `${o}`.trim() : `${n}-${i + 1}`;
184407
+ }
184408
+ toResolvedModelName(t, n) {
184409
+ return t.name?.trim() || n;
184410
+ }
184411
+ toFiniteNumber(t) {
184412
+ if (t == null || t === "")
184413
+ return;
184414
+ const n = Number(t);
184415
+ return Number.isFinite(n) ? n : void 0;
184416
+ }
184217
184417
  /**
184218
184418
  * 移除指定模型。
184219
184419
  */
@@ -184340,5 +184540,5 @@ class wrt {
184340
184540
  }
184341
184541
  }
184342
184542
  export {
184343
- wrt as EngineKernelGIS
184543
+ Srt as EngineKernelGIS
184344
184544
  };