@idmwx/idmui-gl3 4.7.7 → 4.7.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -456,7 +456,7 @@ function T1(z, M, b, O, p, o) {
456
456
  return l(), f("div", {
457
457
  key: a.key,
458
458
  class: J(["layer flex-between", o.computeLayerClass(a, p.activeOtherLayers)]),
459
- onClick: (L) => o.handleOtherLayerPick(a)
459
+ onClick: (R) => o.handleOtherLayerPick(a)
460
460
  }, [
461
461
  c("div", N1, [
462
462
  c("div", B1, [
@@ -700,8 +700,8 @@ class E0 {
700
700
  * @param [lb.x, lb.y, rt.x, rt.y]
701
701
  */
702
702
  getBoundPixel() {
703
- const M = this.map.getBounds(), b = this.map.getZoom() + 1, O = [M._ne.lng, M._ne.lat], p = [M._sw.lng, M._sw.lat], [o, e] = this.convertNLng(O[0]), [t, q] = this.convertNLng(p[0]), [r, a] = this.mercator.px([o, O[1]], b), [i, L] = this.mercator.px([t, p[1]], b), n = Math.round(this.mercator.size * Math.pow(2, b) * (e + q));
704
- return [i, L, r + n, a];
703
+ const M = this.map.getBounds(), b = this.map.getZoom() + 1, O = [M._ne.lng, M._ne.lat], p = [M._sw.lng, M._sw.lat], [o, e] = this.convertNLng(O[0]), [t, q] = this.convertNLng(p[0]), [r, a] = this.mercator.px([o, O[1]], b), [i, R] = this.mercator.px([t, p[1]], b), n = Math.round(this.mercator.size * Math.pow(2, b) * (e + q));
704
+ return [i, R, r + n, a];
705
705
  }
706
706
  /**
707
707
  * [视窗边界像素宽度]
@@ -872,14 +872,14 @@ class T0 {
872
872
  if (b && O) {
873
873
  M.resize(), b == null || b.viewport(0, 0, (q = b == null ? void 0 : b.canvas) == null ? void 0 : q.width, (r = b == null ? void 0 : b.canvas) == null ? void 0 : r.height), b.clearColor(0, 0, 0, 0), b.clear(b.COLOR_BUFFER_BIT | b.DEPTH_BUFFER_BIT);
874
874
  try {
875
- const a = b.getUniformLocation(O, "u_resolution"), i = b.getUniformLocation(O, "u_image"), L = b.getUniformLocation(O, "u_color");
876
- if (b.useProgram(O), b.uniform2f(a, b.canvas.width * M.ratio, b.canvas.height * M.ratio), b.activeTexture(b.TEXTURE0), b.bindTexture(b.TEXTURE_2D, p), b.uniform1i(i, 0), b.activeTexture(b.TEXTURE1), b.bindTexture(b.TEXTURE_2D, o), b.uniform1i(L, 1), t != null && t.uvRange && (t != null && t.sRange)) {
877
- const d = b.getUniformLocation(O, "u_range_u_v"), m = b.getUniformLocation(O, "u_range_s");
878
- b.uniform2f(d, t.uvRange[0], t.uvRange[1]), b.uniform2f(m, t.sRange[0], t.sRange[1]);
875
+ const a = b.getUniformLocation(O, "u_resolution"), i = b.getUniformLocation(O, "u_image"), R = b.getUniformLocation(O, "u_color");
876
+ if (b.useProgram(O), b.uniform2f(a, b.canvas.width * M.ratio, b.canvas.height * M.ratio), b.activeTexture(b.TEXTURE0), b.bindTexture(b.TEXTURE_2D, p), b.uniform1i(i, 0), b.activeTexture(b.TEXTURE1), b.bindTexture(b.TEXTURE_2D, o), b.uniform1i(R, 1), t != null && t.uvRange && (t != null && t.sRange)) {
877
+ const d = b.getUniformLocation(O, "u_range_u_v"), N = b.getUniformLocation(O, "u_range_s");
878
+ b.uniform2f(d, t.uvRange[0], t.uvRange[1]), b.uniform2f(N, t.sRange[0], t.sRange[1]);
879
879
  }
880
- const n = M.getBoundPixel(), h = M.map.getZoom() + 1, u = M.getWorldCopy(n, h);
881
- for (const d of u) {
882
- const m = (d[0] - n[0]) * M.ratio, R = (d[1] - n[3]) * M.ratio, g = d[2] * M.ratio, [x, y, j, B] = [m, g + m, R, g + R], C = new Float32Array([x, j, y, j, x, B, x, B, y, j, y, B]);
880
+ const n = M.getBoundPixel(), m = M.map.getZoom() + 1, L = M.getWorldCopy(n, m);
881
+ for (const d of L) {
882
+ const N = (d[0] - n[0]) * M.ratio, h = (d[1] - n[3]) * M.ratio, X = d[2] * M.ratio, [x, g, j, y] = [N, X + N, h, X + h], C = new Float32Array([x, j, g, j, x, y, x, y, g, j, g, y]);
883
883
  b.bindBuffer(b.ARRAY_BUFFER, e), b.bufferData(b.ARRAY_BUFFER, C, b.STATIC_DRAW), b.drawArrays(b.TRIANGLES, 0, 6);
884
884
  }
885
885
  } catch (a) {
@@ -3819,21 +3819,21 @@ const A2 = {
3819
3819
  var r;
3820
3820
  let e = 0, t;
3821
3821
  const q = z.filter((a) => {
3822
- var i, L;
3823
- return ((L = (i = a.properties) == null ? void 0 : i.category) == null ? void 0 : L.split("-")[0]) === o;
3822
+ var i, R;
3823
+ return ((R = (i = a.properties) == null ? void 0 : i.category) == null ? void 0 : R.split("-")[0]) === o;
3824
3824
  });
3825
3825
  (r = q.filter((a) => {
3826
- var i, L;
3827
- return ((i = a.geometry) == null ? void 0 : i.type) === "LineString" && ((L = a.properties) == null ? void 0 : L.type) === "forecast";
3826
+ var i, R;
3827
+ return ((i = a.geometry) == null ? void 0 : i.type) === "LineString" && ((R = a.properties) == null ? void 0 : R.type) === "forecast";
3828
3828
  })[0]) == null || r.properties.model, q.forEach((a, i) => {
3829
- var L, n, h, u, d, m;
3830
- ((L = a.geometry) == null ? void 0 : L.type) === "Point" && ((n = a.properties) == null ? void 0 : n.type) === "history" && (e = i, t = t === void 0 ? i : t), ((h = a.geometry) == null ? void 0 : h.type) === "Point" && ((u = a.properties) == null ? void 0 : u.type) === "forecast" && t === void 0 && (t = i), ((d = a.geometry) == null ? void 0 : d.type) === "LineString" && ((m = a.properties) == null || m.type);
3829
+ var R, n, m, L, d, N;
3830
+ ((R = a.geometry) == null ? void 0 : R.type) === "Point" && ((n = a.properties) == null ? void 0 : n.type) === "history" && (e = i, t = t === void 0 ? i : t), ((m = a.geometry) == null ? void 0 : m.type) === "Point" && ((L = a.properties) == null ? void 0 : L.type) === "forecast" && t === void 0 && (t = i), ((d = a.geometry) == null ? void 0 : d.type) === "LineString" && ((N = a.properties) == null || N.type);
3831
3831
  }), q.map((a, i) => {
3832
- var L, n, h, u, d, m, R;
3833
- if (((L = a.geometry) == null ? void 0 : L.type) === "LineString" && ((n = a.properties) == null || n.type), ((h = a.geometry) == null ? void 0 : h.type) === "Point" && ((u = a.properties) == null ? void 0 : u.type) === "forecast" && (a.properties.name = o, a.properties.format = F(a.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((d = a.geometry) == null ? void 0 : d.type) === "Point" && ((m = a.properties) == null ? void 0 : m.type) === "history") {
3832
+ var R, n, m, L, d, N, h;
3833
+ if (((R = a.geometry) == null ? void 0 : R.type) === "LineString" && ((n = a.properties) == null || n.type), ((m = a.geometry) == null ? void 0 : m.type) === "Point" && ((L = a.properties) == null ? void 0 : L.type) === "forecast" && (a.properties.name = o, a.properties.format = F(a.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((d = a.geometry) == null ? void 0 : d.type) === "Point" && ((N = a.properties) == null ? void 0 : N.type) === "history") {
3834
3834
  a.properties.format = F(a.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
3835
- const g = F((R = a.properties) == null ? void 0 : R.date).utc().format("HHmm") === F().utc().hour(Math.floor(M / 6) * 6).minute("00").format("HHmm");
3836
- a.properties.showHistoryLabel = g || i === e, a.properties.showNameLabel = i === e, a.properties.name = o;
3835
+ const X = F((h = a.properties) == null ? void 0 : h.date).utc().format("HHmm") === F().utc().hour(Math.floor(M / 6) * 6).minute("00").format("HHmm");
3836
+ a.properties.showHistoryLabel = X || i === e, a.properties.showNameLabel = i === e, a.properties.name = o;
3837
3837
  }
3838
3838
  return a;
3839
3839
  });
@@ -3878,8 +3878,8 @@ const A2 = {
3878
3878
  else {
3879
3879
  if (this.tropicals) {
3880
3880
  const i = (/* @__PURE__ */ new Date()).valueOf();
3881
- let L = 0, n = 0;
3882
- (z = this.map) != null && z.getSource(this.source) ? ((b = this.map) == null || b.getSource(this.source).setData((M = this.tropicals) != null && M.active ? this.tropicals.data : this.empty), n = (/* @__PURE__ */ new Date()).valueOf() - (i + L), console.log("[tropicals] update elapsed: ", n, ", total: ", L += n)) : (this.map.addSource(this.source, {
3881
+ let R = 0, n = 0;
3882
+ (z = this.map) != null && z.getSource(this.source) ? ((b = this.map) == null || b.getSource(this.source).setData((M = this.tropicals) != null && M.active ? this.tropicals.data : this.empty), n = (/* @__PURE__ */ new Date()).valueOf() - (i + R), console.log("[tropicals] update elapsed: ", n, ", total: ", R += n)) : (this.map.addSource(this.source, {
3883
3883
  type: "geojson",
3884
3884
  data: (O = this.tropicals) != null && O.active ? (p = this.tropicals) == null ? void 0 : p.data : this.empty
3885
3885
  }), this.map.addLayer({
@@ -3976,7 +3976,7 @@ const A2 = {
3976
3976
  ],
3977
3977
  "text-halo-width": 4
3978
3978
  }
3979
- }), n = (/* @__PURE__ */ new Date()).valueOf() - (i + L), console.log("[tropical] add elapsed: ", n, ", total: ", L += n)), (o = this.map) != null && o.getSource(this.clusterSource) ? ((t = this.map) == null || t.getSource(this.clusterSource).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), n = (/* @__PURE__ */ new Date()).valueOf() - (i + L), console.log("[tropical] update elapsed: ", n, ", total: ", L += n)) : (this.map.addSource(this.clusterSource, {
3979
+ }), n = (/* @__PURE__ */ new Date()).valueOf() - (i + R), console.log("[tropical] add elapsed: ", n, ", total: ", R += n)), (o = this.map) != null && o.getSource(this.clusterSource) ? ((t = this.map) == null || t.getSource(this.clusterSource).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), n = (/* @__PURE__ */ new Date()).valueOf() - (i + R), console.log("[tropical] update elapsed: ", n, ", total: ", R += n)) : (this.map.addSource(this.clusterSource, {
3980
3980
  type: "geojson",
3981
3981
  data: (q = this.tropicals) != null && q.active ? (r = this.tropicals) == null ? void 0 : r.data : this.empty
3982
3982
  // cluster: true,
@@ -4093,7 +4093,7 @@ const A2 = {
4093
4093
  "text-halo-color": "#0033ff",
4094
4094
  "text-halo-width": 4
4095
4095
  }
4096
- }), n = (/* @__PURE__ */ new Date()).valueOf() - (i + L), console.log("[tropical] add elapsed: ", n, ", total: ", L += n));
4096
+ }), n = (/* @__PURE__ */ new Date()).valueOf() - (i + R), console.log("[tropical] add elapsed: ", n, ", total: ", R += n));
4097
4097
  }
4098
4098
  this.handleDrawCircle();
4099
4099
  const a = I0.interpolate(this.tropicals, 1);
@@ -4105,7 +4105,7 @@ const A2 = {
4105
4105
  this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (z = this.interpolateMarkers) == null || z.forEach((M) => M == null ? void 0 : M.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource));
4106
4106
  },
4107
4107
  handleDateChange() {
4108
- var z, M, b, O, p, o, e, t, q, r, a, i, L, n, h, u, d, m, R, g, x, y, j, B, C, Z, Y, a0, s0, l0, q0, W0, z0, f0, u0, r0;
4108
+ var z, M, b, O, p, o, e, t, q, r, a, i, R, n, m, L, d, N, h, X, x, g, j, y, C, Z, Y, a0, s0, l0, q0, W0, z0, f0, u0, r0;
4109
4109
  if ((z = this.interpolateMarkers) == null || z.forEach((i0) => i0 == null ? void 0 : i0.remove()), this.circleSourceData.features = [], (M = this.interpolateData) != null && M.length && this.tropicals.active) {
4110
4110
  const i0 = F(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), n0 = this.interpolateData.filter((P) => P.properties.date === i0.format() && !P.properties.disabled), L0 = this.handleComputePolygons(n0), d0 = w.featureCollection([...n0]);
4111
4111
  L0.forEach((P) => {
@@ -4127,7 +4127,7 @@ const A2 = {
4127
4127
  for (const P of n0)
4128
4128
  if (!P.properties.disabled) {
4129
4129
  let H = "#f44336";
4130
- ((t = (e = P.properties) == null ? void 0 : e.wind) == null ? void 0 : t.spd) < 17.2 || !((r = (q = P.properties) == null ? void 0 : q.wind) != null && r.spd) ? H = "#03f869" : ((i = (a = P.properties) == null ? void 0 : a.wind) == null ? void 0 : i.spd) >= 17.2 && ((n = (L = P.properties) == null ? void 0 : L.wind) == null ? void 0 : n.spd) < 24.5 ? H = "#f2f202" : ((u = (h = P.properties) == null ? void 0 : h.wind) == null ? void 0 : u.spd) >= 24.5 && ((m = (d = P.properties) == null ? void 0 : d.wind) == null ? void 0 : m.spd) < 32.7 ? H = "#ff9100" : ((g = (R = P.properties) == null ? void 0 : R.wind) == null ? void 0 : g.spd) >= 32.7 && ((y = (x = P.properties) == null ? void 0 : x.wind) == null ? void 0 : y.spd) < 41.5 ? H = "#f44336" : ((B = (j = P.properties) == null ? void 0 : j.wind) == null ? void 0 : B.spd) >= 41.5 && ((Z = (C = P.properties) == null ? void 0 : C.wind) == null ? void 0 : Z.spd) < 51 ? H = "#f903d0" : ((a0 = (Y = P.properties) == null ? void 0 : Y.wind) == null ? void 0 : a0.spd) >= 51 ? H = "#8702f9" : H = "#f44336";
4130
+ ((t = (e = P.properties) == null ? void 0 : e.wind) == null ? void 0 : t.spd) < 17.2 || !((r = (q = P.properties) == null ? void 0 : q.wind) != null && r.spd) ? H = "#03f869" : ((i = (a = P.properties) == null ? void 0 : a.wind) == null ? void 0 : i.spd) >= 17.2 && ((n = (R = P.properties) == null ? void 0 : R.wind) == null ? void 0 : n.spd) < 24.5 ? H = "#f2f202" : ((L = (m = P.properties) == null ? void 0 : m.wind) == null ? void 0 : L.spd) >= 24.5 && ((N = (d = P.properties) == null ? void 0 : d.wind) == null ? void 0 : N.spd) < 32.7 ? H = "#ff9100" : ((X = (h = P.properties) == null ? void 0 : h.wind) == null ? void 0 : X.spd) >= 32.7 && ((g = (x = P.properties) == null ? void 0 : x.wind) == null ? void 0 : g.spd) < 41.5 ? H = "#f44336" : ((y = (j = P.properties) == null ? void 0 : j.wind) == null ? void 0 : y.spd) >= 41.5 && ((Z = (C = P.properties) == null ? void 0 : C.wind) == null ? void 0 : Z.spd) < 51 ? H = "#f903d0" : ((a0 = (Y = P.properties) == null ? void 0 : Y.wind) == null ? void 0 : a0.spd) >= 51 ? H = "#8702f9" : H = "#f44336";
4131
4131
  const e0 = `<svg t="1719918955501"
4132
4132
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
4133
4133
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -4142,9 +4142,9 @@ const A2 = {
4142
4142
  <path
4143
4143
  d="M420.66666667 959.17a16.08 16.08 0 0 1-15.91-13.49A15.89 15.89 0 0 1 415.50666667 928c1.49-0.55 38.88-14.76 72.79-65.52A354.55 354.55 0 0 1 162.66666667 509.17a450.14 450.14 0 0 1 450.5-450.5 16.07 16.07 0 0 1 15.91 13.48 15.88 15.88 0 0 1-10.75 17.66c-1.58 0.58-39.13 14.9-73.07 65.95A354.22 354.22 0 0 1 871.66666667 509.17a16 16 0 0 1-0.52 4.05A450.14 450.14 0 0 1 420.66666667 959.17zM554.80666667 94.72C351.57666667 123.2 194.66666667 298.21 194.66666667 509.17c0 177.08 144.06 321.74 321.13 322.48a16 16 0 0 1 14.07 23.49c-16.11 30.42-34.27 52.37-50.85 68C682.25666667 894.63 839.16666667 719.63 839.16666667 508.67a15.94 15.94 0 0 1 0.47-3.86C837.30666667 329.33 693.82666667 187 517.80666667 186.67A16 16 0 0 1 503.66666667 163.21c16.21-30.69 34.47-52.79 51.14-68.49z"
4144
4144
  fill="#ffffff" p-id="18386"></path>
4145
- </svg>`, X = document.createElement("div");
4146
- X.className = "hurricane-hourly-marker", X.innerHTML = `<div class="${P.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${e0}</div>`;
4147
- const o0 = new m0.Marker(X).setLngLat(P.geometry.coordinates).addTo(this.map);
4145
+ </svg>`, u = document.createElement("div");
4146
+ u.className = "hurricane-hourly-marker", u.innerHTML = `<div class="${P.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${e0}</div>`;
4147
+ const o0 = new m0.Marker(u).setLngLat(P.geometry.coordinates).addTo(this.map);
4148
4148
  if (this.interpolateMarkers.push(o0), (s0 = P.properties) != null && s0.showCircle) {
4149
4149
  const N0 = { radius: 100, coordinates: P.geometry.coordinates }, B0 = { radius: 200, coordinates: P.geometry.coordinates }, g0 = { radius: 500, coordinates: P.geometry.coordinates };
4150
4150
  (l0 = this.circleSourceData) == null || l0.features.push(
@@ -4161,28 +4161,28 @@ const A2 = {
4161
4161
  (u0 = this.map) != null && u0.getSource(this.interpolateSource) && ((r0 = this.map) == null || r0.getSource(this.interpolateSource).setData(this.empty));
4162
4162
  },
4163
4163
  handleClick(z) {
4164
- var o, e, t, q, r, a, i, L;
4164
+ var o, e, t, q, r, a, i, R;
4165
4165
  const M = z.features[0], b = (e = (o = this.tropicals) == null ? void 0 : o.data) == null ? void 0 : e.features.filter(
4166
4166
  (n) => {
4167
- var h;
4168
- return n.geometry.type === "LineString" && n.properties.type === "forecast" && n.properties.name === ((h = M == null ? void 0 : M.properties) == null ? void 0 : h.name);
4167
+ var m;
4168
+ return n.geometry.type === "LineString" && n.properties.type === "forecast" && n.properties.name === ((m = M == null ? void 0 : M.properties) == null ? void 0 : m.name);
4169
4169
  }
4170
4170
  );
4171
- b.sort((n, h) => {
4172
- var u, d, m, R;
4173
- return ((u = n.properties) == null ? void 0 : u.model) === "cma" ? -1 : ((d = n.properties) == null ? void 0 : d.model) === "jma" ? ((m = h.properties) == null ? void 0 : m.model) === "cma" ? 1 : -1 : n.properties.model === "ecmwf" ? ["jma", "cma"].includes((R = h.properties) == null ? void 0 : R.model) ? 1 : -1 : 0;
4171
+ b.sort((n, m) => {
4172
+ var L, d, N, h;
4173
+ return ((L = n.properties) == null ? void 0 : L.model) === "cma" ? -1 : ((d = n.properties) == null ? void 0 : d.model) === "jma" ? ((N = m.properties) == null ? void 0 : N.model) === "cma" ? 1 : -1 : n.properties.model === "ecmwf" ? ["jma", "cma"].includes((h = m.properties) == null ? void 0 : h.model) ? 1 : -1 : 0;
4174
4174
  });
4175
4175
  const O = (q = (t = this.tropicals) == null ? void 0 : t.data) == null ? void 0 : q.features.filter(
4176
4176
  (n) => {
4177
- var h;
4178
- return n.geometry.type === "LineString" && n.properties.type === "history" && n.properties.name === ((h = M == null ? void 0 : M.properties) == null ? void 0 : h.name);
4177
+ var m;
4178
+ return n.geometry.type === "LineString" && n.properties.type === "history" && n.properties.name === ((m = M == null ? void 0 : M.properties) == null ? void 0 : m.name);
4179
4179
  }
4180
4180
  );
4181
4181
  this.activeTropicals = {
4182
4182
  name: (r = M == null ? void 0 : M.properties) == null ? void 0 : r.name,
4183
4183
  forecasts: b.map((n) => n.properties),
4184
4184
  history: (a = O[0]) == null ? void 0 : a.properties,
4185
- showCircle: (L = (i = b[0]) == null ? void 0 : i.properties) == null ? void 0 : L.showCircle
4185
+ showCircle: (R = (i = b[0]) == null ? void 0 : i.properties) == null ? void 0 : R.showCircle
4186
4186
  }, this.showTropicals = !0;
4187
4187
  const p = document.getElementById("active-tropical");
4188
4188
  this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([z.lngLat.lng, z.lngLat.lat]) : this.activeTropicalsMarker = new m0.Marker(p).setLngLat([z.lngLat.lng, z.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
@@ -4287,49 +4287,49 @@ const A2 = {
4287
4287
  style: { "justify-content": "flex-start" }
4288
4288
  }, L2 = { class: "forecast-models" }, R2 = ["onClick"], h2 = { class: "more" };
4289
4289
  function m2(z, M, b, O, p, o) {
4290
- var e, t, q, r, a, i, L, n, h, u, d, m, R, g, x;
4290
+ var e, t, q, r, a, i, R, n, m, L, d, N, h, X, x;
4291
4291
  return X0((l(), f("div", t2, [
4292
4292
  c("div", a2, [
4293
4293
  c("div", {
4294
4294
  class: "iconfont close-btn",
4295
- onClick: M[0] || (M[0] = (y) => p.showTropicals = !1)
4295
+ onClick: M[0] || (M[0] = (g) => p.showTropicals = !1)
4296
4296
  }, ""),
4297
4297
  c("div", q2, [
4298
4298
  (t = (e = p.activeTropicals) == null ? void 0 : e.history) != null && t.level ? (l(), f("span", i2, _((r = (q = p.activeTropicals) == null ? void 0 : q.history) == null ? void 0 : r.level) + " , ", 1)) : U("", !0),
4299
4299
  b0(_((a = p.activeTropicals) == null ? void 0 : a.name), 1)
4300
4300
  ]),
4301
- c("div", r2, " Last update: " + _(o.computeTime(((L = (i = p.activeTropicals) == null ? void 0 : i.history) == null ? void 0 : L.updated) || ((u = (h = (n = p.activeTropicals) == null ? void 0 : n.forecasts) == null ? void 0 : h.filter((y) => !y.disabled)[0]) == null ? void 0 : u.date))), 1)
4301
+ c("div", r2, " Last update: " + _(o.computeTime(((R = (i = p.activeTropicals) == null ? void 0 : i.history) == null ? void 0 : R.updated) || ((L = (m = (n = p.activeTropicals) == null ? void 0 : n.forecasts) == null ? void 0 : m.filter((g) => !g.disabled)[0]) == null ? void 0 : L.date))), 1)
4302
4302
  ]),
4303
4303
  c("div", n2, [
4304
4304
  c("div", d2, [
4305
4305
  c("div", W2, [
4306
4306
  c("div", s2, [
4307
4307
  M[2] || (M[2] = c("label", null, "Wind speed : ", -1)),
4308
- c("span", null, _(((m = (d = p.activeTropicals) == null ? void 0 : d.history) == null ? void 0 : m.kts) || "-") + "[kts]", 1)
4308
+ c("span", null, _(((N = (d = p.activeTropicals) == null ? void 0 : d.history) == null ? void 0 : N.kts) || "-") + "[kts]", 1)
4309
4309
  ]),
4310
4310
  c("div", l2, [
4311
4311
  M[3] || (M[3] = c("label", null, "Pressure : ", -1)),
4312
- c("span", null, _(((g = (R = p.activeTropicals) == null ? void 0 : R.history) == null ? void 0 : g.pressure) || "-") + "[hPa]", 1)
4312
+ c("span", null, _(((X = (h = p.activeTropicals) == null ? void 0 : h.history) == null ? void 0 : X.pressure) || "-") + "[hPa]", 1)
4313
4313
  ])
4314
4314
  ]),
4315
4315
  c("div", f2, [
4316
4316
  c("div", u2, [
4317
4317
  M[4] || (M[4] = c("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
4318
4318
  c("div", L2, [
4319
- (l(!0), f(K, null, $((x = p.activeTropicals) == null ? void 0 : x.forecasts, (y, j) => {
4320
- var B, C, Z, Y;
4319
+ (l(!0), f(K, null, $((x = p.activeTropicals) == null ? void 0 : x.forecasts, (g, j) => {
4320
+ var y, C, Z, Y;
4321
4321
  return l(), f("div", {
4322
4322
  key: j,
4323
4323
  class: J([
4324
4324
  "model",
4325
- y.disabled ? "" : "active",
4326
- j > 0 && j < ((C = (B = p.activeTropicals) == null ? void 0 : B.forecasts) == null ? void 0 : C.length) - 1 && ((Y = (Z = p.activeTropicals) == null ? void 0 : Z.forecasts) == null ? void 0 : Y.length) > 2 ? "center-child" : ""
4325
+ g.disabled ? "" : "active",
4326
+ j > 0 && j < ((C = (y = p.activeTropicals) == null ? void 0 : y.forecasts) == null ? void 0 : C.length) - 1 && ((Y = (Z = p.activeTropicals) == null ? void 0 : Z.forecasts) == null ? void 0 : Y.length) > 2 ? "center-child" : ""
4327
4327
  ]),
4328
- onClick: (a0) => o.handleForecastToggle(y)
4328
+ onClick: (a0) => o.handleForecastToggle(g)
4329
4329
  }, [
4330
4330
  c("span", {
4331
- class: J(y.model)
4332
- }, _(y.model), 3)
4331
+ class: J(g.model)
4332
+ }, _(g.model), 3)
4333
4333
  ], 10, R2);
4334
4334
  }), 128))
4335
4335
  ])
@@ -4340,7 +4340,7 @@ function m2(z, M, b, O, p, o) {
4340
4340
  c("div", h2, [
4341
4341
  c("div", {
4342
4342
  class: "button",
4343
- onClick: M[1] || (M[1] = (y) => o.handleStrikeProbability(p.activeTropicals))
4343
+ onClick: M[1] || (M[1] = (g) => o.handleStrikeProbability(p.activeTropicals))
4344
4344
  }, "Strike Probability >>")
4345
4345
  ])
4346
4346
  ])
@@ -4975,46 +4975,46 @@ var U0 = { exports: {} }, F0 = { exports: {} };
4975
4975
  (!M || typeof M.version != "string") && e0("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");
4976
4976
  var r = M.version.split("."), a = +r[0], i = +r[1];
4977
4977
  (a < 2 || a === 2 && i < 6) && e0("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js " + M.version + ". See momentjs.com");
4978
- function L(A) {
4978
+ function R(A) {
4979
4979
  return A > 96 ? A - 87 : A > 64 ? A - 29 : A - 48;
4980
4980
  }
4981
4981
  function n(A) {
4982
- var W = 0, s = A.split("."), N = s[0], v = s[1] || "", E = 1, Q, k = 0, G = 1;
4983
- for (A.charCodeAt(0) === 45 && (W = 1, G = -1), W; W < N.length; W++)
4984
- Q = L(N.charCodeAt(W)), k = 60 * k + Q;
4982
+ var W = 0, s = A.split("."), B = s[0], v = s[1] || "", E = 1, Q, k = 0, G = 1;
4983
+ for (A.charCodeAt(0) === 45 && (W = 1, G = -1), W; W < B.length; W++)
4984
+ Q = R(B.charCodeAt(W)), k = 60 * k + Q;
4985
4985
  for (W = 0; W < v.length; W++)
4986
- E = E / 60, Q = L(v.charCodeAt(W)), k += Q * E;
4986
+ E = E / 60, Q = R(v.charCodeAt(W)), k += Q * E;
4987
4987
  return k * G;
4988
4988
  }
4989
- function h(A) {
4989
+ function m(A) {
4990
4990
  for (var W = 0; W < A.length; W++)
4991
4991
  A[W] = n(A[W]);
4992
4992
  }
4993
- function u(A, W) {
4993
+ function L(A, W) {
4994
4994
  for (var s = 0; s < W; s++)
4995
4995
  A[s] = Math.round((A[s - 1] || 0) + A[s] * 6e4);
4996
4996
  A[W - 1] = 1 / 0;
4997
4997
  }
4998
4998
  function d(A, W) {
4999
- var s = [], N;
5000
- for (N = 0; N < W.length; N++)
5001
- s[N] = A[W[N]];
4999
+ var s = [], B;
5000
+ for (B = 0; B < W.length; B++)
5001
+ s[B] = A[W[B]];
5002
5002
  return s;
5003
5003
  }
5004
- function m(A) {
5005
- var W = A.split("|"), s = W[2].split(" "), N = W[3].split(""), v = W[4].split(" ");
5006
- return h(s), h(N), h(v), u(v, N.length), {
5004
+ function N(A) {
5005
+ var W = A.split("|"), s = W[2].split(" "), B = W[3].split(""), v = W[4].split(" ");
5006
+ return m(s), m(B), m(v), L(v, B.length), {
5007
5007
  name: W[0],
5008
- abbrs: d(W[1].split(" "), N),
5009
- offsets: d(s, N),
5008
+ abbrs: d(W[1].split(" "), B),
5009
+ offsets: d(s, B),
5010
5010
  untils: v,
5011
5011
  population: W[5] | 0
5012
5012
  };
5013
5013
  }
5014
- function R(A) {
5015
- A && this._set(m(A));
5014
+ function h(A) {
5015
+ A && this._set(N(A));
5016
5016
  }
5017
- function g(A, W) {
5017
+ function X(A, W) {
5018
5018
  var s = W.length;
5019
5019
  if (A < W[0])
5020
5020
  return 0;
@@ -5022,18 +5022,18 @@ var U0 = { exports: {} }, F0 = { exports: {} };
5022
5022
  return s - 1;
5023
5023
  if (A >= W[s - 1])
5024
5024
  return -1;
5025
- for (var N, v = 0, E = s - 1; E - v > 1; )
5026
- N = Math.floor((v + E) / 2), W[N] <= A ? v = N : E = N;
5025
+ for (var B, v = 0, E = s - 1; E - v > 1; )
5026
+ B = Math.floor((v + E) / 2), W[B] <= A ? v = B : E = B;
5027
5027
  return E;
5028
5028
  }
5029
- R.prototype = {
5029
+ h.prototype = {
5030
5030
  _set: function(A) {
5031
5031
  this.name = A.name, this.abbrs = A.abbrs, this.untils = A.untils, this.offsets = A.offsets, this.population = A.population;
5032
5032
  },
5033
5033
  _index: function(A) {
5034
- var W = +A, s = this.untils, N;
5035
- if (N = g(W, s), N >= 0)
5036
- return N;
5034
+ var W = +A, s = this.untils, B;
5035
+ if (B = X(W, s), B >= 0)
5036
+ return B;
5037
5037
  },
5038
5038
  countries: function() {
5039
5039
  var A = this.name;
@@ -5042,9 +5042,9 @@ var U0 = { exports: {} }, F0 = { exports: {} };
5042
5042
  });
5043
5043
  },
5044
5044
  parse: function(A) {
5045
- var W = +A, s = this.offsets, N = this.untils, v = N.length - 1, E, Q, k, G;
5045
+ var W = +A, s = this.offsets, B = this.untils, v = B.length - 1, E, Q, k, G;
5046
5046
  for (G = 0; G < v; G++)
5047
- if (E = s[G], Q = s[G + 1], k = s[G && G - 1], E < Q && X.moveAmbiguousForward ? E = Q : E > k && X.moveInvalidForward && (E = k), W < N[G] - E * 6e4)
5047
+ if (E = s[G], Q = s[G + 1], k = s[G && G - 1], E < Q && u.moveAmbiguousForward ? E = Q : E > k && u.moveInvalidForward && (E = k), W < B[G] - E * 6e4)
5048
5048
  return s[G];
5049
5049
  return s[v];
5050
5050
  },
@@ -5061,7 +5061,7 @@ var U0 = { exports: {} }, F0 = { exports: {} };
5061
5061
  function x(A, W) {
5062
5062
  this.name = A, this.zones = W;
5063
5063
  }
5064
- function y(A) {
5064
+ function g(A) {
5065
5065
  var W = A.toTimeString(), s = W.match(/\([a-z ]+\)/i);
5066
5066
  s && s[0] ? (s = s[0].match(/[A-Z]/g), s = s ? s.join("") : void 0) : (s = W.match(/[A-Z]{3,5}/g), s = s ? s[0] : void 0), s === "GMT" && (s = void 0), this.at = +A, this.abbr = s, this.offset = A.getTimezoneOffset();
5067
5067
  }
@@ -5071,29 +5071,29 @@ var U0 = { exports: {} }, F0 = { exports: {} };
5071
5071
  j.prototype.scoreOffsetAt = function(A) {
5072
5072
  this.offsetScore += Math.abs(this.zone.utcOffset(A.at) - A.offset), this.zone.abbr(A.at).replace(/[^A-Z]/g, "") !== A.abbr && this.abbrScore++;
5073
5073
  };
5074
- function B(A, W) {
5075
- for (var s, N; N = ((W.at - A.at) / 12e4 | 0) * 6e4; )
5076
- s = new y(new Date(A.at + N)), s.offset === A.offset ? A = s : W = s;
5074
+ function y(A, W) {
5075
+ for (var s, B; B = ((W.at - A.at) / 12e4 | 0) * 6e4; )
5076
+ s = new g(new Date(A.at + B)), s.offset === A.offset ? A = s : W = s;
5077
5077
  return A;
5078
5078
  }
5079
5079
  function C() {
5080
- var A = (/* @__PURE__ */ new Date()).getFullYear() - 2, W = new y(new Date(A, 0, 1)), s = W.offset, N = [W], v, E, Q, k;
5080
+ var A = (/* @__PURE__ */ new Date()).getFullYear() - 2, W = new g(new Date(A, 0, 1)), s = W.offset, B = [W], v, E, Q, k;
5081
5081
  for (k = 1; k < 48; k++)
5082
- Q = new Date(A, k, 1).getTimezoneOffset(), Q !== s && (E = new y(new Date(A, k, 1)), v = B(W, E), N.push(v), N.push(new y(new Date(v.at + 6e4))), W = E, s = Q);
5082
+ Q = new Date(A, k, 1).getTimezoneOffset(), Q !== s && (E = new g(new Date(A, k, 1)), v = y(W, E), B.push(v), B.push(new g(new Date(v.at + 6e4))), W = E, s = Q);
5083
5083
  for (k = 0; k < 4; k++)
5084
- N.push(new y(new Date(A + k, 0, 1))), N.push(new y(new Date(A + k, 6, 1)));
5085
- return N;
5084
+ B.push(new g(new Date(A + k, 0, 1))), B.push(new g(new Date(A + k, 6, 1)));
5085
+ return B;
5086
5086
  }
5087
5087
  function Z(A, W) {
5088
5088
  return A.offsetScore !== W.offsetScore ? A.offsetScore - W.offsetScore : A.abbrScore !== W.abbrScore ? A.abbrScore - W.abbrScore : A.zone.population !== W.zone.population ? W.zone.population - A.zone.population : W.zone.name.localeCompare(A.zone.name);
5089
5089
  }
5090
5090
  function Y(A, W) {
5091
- var s, N;
5092
- for (h(W), s = 0; s < W.length; s++)
5093
- N = W[s], t[N] = t[N] || {}, t[N][A] = !0;
5091
+ var s, B;
5092
+ for (m(W), s = 0; s < W.length; s++)
5093
+ B = W[s], t[B] = t[B] || {}, t[B][A] = !0;
5094
5094
  }
5095
5095
  function a0(A) {
5096
- var W = A.length, s = {}, N = [], v = {}, E, Q, k, G;
5096
+ var W = A.length, s = {}, B = [], v = {}, E, Q, k, G;
5097
5097
  for (E = 0; E < W; E++)
5098
5098
  if (k = A[E].offset, !v.hasOwnProperty(k)) {
5099
5099
  G = t[k] || {};
@@ -5102,8 +5102,8 @@ var U0 = { exports: {} }, F0 = { exports: {} };
5102
5102
  v[k] = !0;
5103
5103
  }
5104
5104
  for (E in s)
5105
- s.hasOwnProperty(E) && N.push(e[E]);
5106
- return N;
5105
+ s.hasOwnProperty(E) && B.push(e[E]);
5106
+ return B;
5107
5107
  }
5108
5108
  function s0() {
5109
5109
  try {
@@ -5116,9 +5116,9 @@ var U0 = { exports: {} }, F0 = { exports: {} };
5116
5116
  }
5117
5117
  } catch {
5118
5118
  }
5119
- var s = C(), N = s.length, v = a0(s), E = [], Q, k, G;
5119
+ var s = C(), B = s.length, v = a0(s), E = [], Q, k, G;
5120
5120
  for (k = 0; k < v.length; k++) {
5121
- for (Q = new j(z0(v[k])), G = 0; G < N; G++)
5121
+ for (Q = new j(z0(v[k])), G = 0; G < B; G++)
5122
5122
  Q.scoreOffsetAt(s[G]);
5123
5123
  E.push(Q);
5124
5124
  }
@@ -5131,14 +5131,14 @@ var U0 = { exports: {} }, F0 = { exports: {} };
5131
5131
  return (A || "").toLowerCase().replace(/\//g, "_");
5132
5132
  }
5133
5133
  function W0(A) {
5134
- var W, s, N, v;
5134
+ var W, s, B, v;
5135
5135
  for (typeof A == "string" && (A = [A]), W = 0; W < A.length; W++)
5136
- N = A[W].split("|"), s = N[0], v = q0(s), O[v] = A[W], e[v] = s, Y(v, N[2].split(" "));
5136
+ B = A[W].split("|"), s = B[0], v = q0(s), O[v] = A[W], e[v] = s, Y(v, B[2].split(" "));
5137
5137
  }
5138
5138
  function z0(A, W) {
5139
5139
  A = q0(A);
5140
- var s = O[A], N;
5141
- return s instanceof R ? s : typeof s == "string" ? (s = new R(s), O[A] = s, s) : p[A] && W !== z0 && (N = z0(p[A], z0)) ? (s = O[A] = new R(), s._set(N), s.name = e[A], s) : null;
5140
+ var s = O[A], B;
5141
+ return s instanceof h ? s : typeof s == "string" ? (s = new h(s), O[A] = s, s) : p[A] && W !== z0 && (B = z0(p[A], z0)) ? (s = O[A] = new h(), s._set(B), s.name = e[A], s) : null;
5142
5142
  }
5143
5143
  function f0() {
5144
5144
  var A, W = [];
@@ -5150,17 +5150,17 @@ var U0 = { exports: {} }, F0 = { exports: {} };
5150
5150
  return Object.keys(o);
5151
5151
  }
5152
5152
  function r0(A) {
5153
- var W, s, N, v;
5153
+ var W, s, B, v;
5154
5154
  for (typeof A == "string" && (A = [A]), W = 0; W < A.length; W++)
5155
- s = A[W].split("|"), N = q0(s[0]), v = q0(s[1]), p[N] = v, e[N] = s[0], p[v] = N, e[v] = s[1];
5155
+ s = A[W].split("|"), B = q0(s[0]), v = q0(s[1]), p[B] = v, e[B] = s[0], p[v] = B, e[v] = s[1];
5156
5156
  }
5157
5157
  function i0(A) {
5158
- var W, s, N, v;
5158
+ var W, s, B, v;
5159
5159
  if (!(!A || !A.length))
5160
5160
  for (W = 0; W < A.length; W++)
5161
- v = A[W].split("|"), s = v[0].toUpperCase(), N = v[1].split(" "), o[s] = new x(
5161
+ v = A[W].split("|"), s = v[0].toUpperCase(), B = v[1].split(" "), o[s] = new x(
5162
5162
  s,
5163
- N
5163
+ B
5164
5164
  );
5165
5165
  }
5166
5166
  function n0(A) {
@@ -5170,16 +5170,16 @@ var U0 = { exports: {} }, F0 = { exports: {} };
5170
5170
  if (A = n0(A), !A)
5171
5171
  return null;
5172
5172
  var s = A.zones.sort();
5173
- return W ? s.map(function(N) {
5174
- var v = z0(N);
5173
+ return W ? s.map(function(B) {
5174
+ var v = z0(B);
5175
5175
  return {
5176
- name: N,
5176
+ name: B,
5177
5177
  offset: v.utcOffset(/* @__PURE__ */ new Date())
5178
5178
  };
5179
5179
  }) : s;
5180
5180
  }
5181
5181
  function d0(A) {
5182
- W0(A.zones), r0(A.links), i0(A.countries), X.dataVersion = A.version;
5182
+ W0(A.zones), r0(A.links), i0(A.countries), u.dataVersion = A.version;
5183
5183
  }
5184
5184
  function P(A) {
5185
5185
  return P.didShowError || (P.didShowError = !0, e0("moment.tz.zoneExists('" + A + "') has been deprecated in favor of !moment.tz.zone('" + A + "')")), !!z0(A);
@@ -5191,20 +5191,20 @@ var U0 = { exports: {} }, F0 = { exports: {} };
5191
5191
  function e0(A) {
5192
5192
  typeof console < "u" && typeof console.error == "function" && console.error(A);
5193
5193
  }
5194
- function X(A) {
5195
- var W = Array.prototype.slice.call(arguments, 0, -1), s = arguments[arguments.length - 1], N = M.utc.apply(null, W), v;
5196
- return !M.isMoment(A) && H(N) && (v = z0(s)) && N.add(v.parse(N), "minutes"), N.tz(s), N;
5194
+ function u(A) {
5195
+ var W = Array.prototype.slice.call(arguments, 0, -1), s = arguments[arguments.length - 1], B = M.utc.apply(null, W), v;
5196
+ return !M.isMoment(A) && H(B) && (v = z0(s)) && B.add(v.parse(B), "minutes"), B.tz(s), B;
5197
5197
  }
5198
- X.version = b, X.dataVersion = "", X._zones = O, X._links = p, X._names = e, X._countries = o, X.add = W0, X.link = r0, X.load = d0, X.zone = z0, X.zoneExists = P, X.guess = l0, X.names = f0, X.Zone = R, X.unpack = m, X.unpackBase60 = n, X.needsOffset = H, X.moveInvalidForward = !0, X.moveAmbiguousForward = !1, X.countries = u0, X.zonesForCountry = L0;
5198
+ u.version = b, u.dataVersion = "", u._zones = O, u._links = p, u._names = e, u._countries = o, u.add = W0, u.link = r0, u.load = d0, u.zone = z0, u.zoneExists = P, u.guess = l0, u.names = f0, u.Zone = h, u.unpack = N, u.unpackBase60 = n, u.needsOffset = H, u.moveInvalidForward = !0, u.moveAmbiguousForward = !1, u.countries = u0, u.zonesForCountry = L0;
5199
5199
  var o0 = M.fn;
5200
- M.tz = X, M.defaultZone = null, M.updateOffset = function(A, W) {
5201
- var s = M.defaultZone, N;
5200
+ M.tz = u, M.defaultZone = null, M.updateOffset = function(A, W) {
5201
+ var s = M.defaultZone, B;
5202
5202
  if (A._z === void 0 && (s && H(A) && !A._isUTC && A.isValid() && (A._d = M.utc(A._a)._d, A.utc().add(s.parse(A), "minutes")), A._z = s), A._z)
5203
- if (N = A._z.utcOffset(A), Math.abs(N) < 16 && (N = N / 60), A.utcOffset !== void 0) {
5203
+ if (B = A._z.utcOffset(A), Math.abs(B) < 16 && (B = B / 60), A.utcOffset !== void 0) {
5204
5204
  var v = A._z;
5205
- A.utcOffset(-N, W), A._z = v;
5205
+ A.utcOffset(-B, W), A._z = v;
5206
5206
  } else
5207
- A.zone(N, W);
5207
+ A.zone(B, W);
5208
5208
  }, o0.tz = function(A, W) {
5209
5209
  if (A) {
5210
5210
  if (typeof A != "string")
@@ -6251,8 +6251,8 @@ const pM = {
6251
6251
  }), (o == null ? void 0 : o.data.code) === 0 && (this.historyMeteoData = o == null ? void 0 : o.data.data));
6252
6252
  },
6253
6253
  initTableData(z) {
6254
- var b, O, p, o, e, t, q, r, a, i, L, n, h, u, d, m, R, g, x, y, j, B, C, Z, Y, a0, s0, l0, q0, W0, z0, f0, u0, r0, i0, n0, L0, d0, P;
6255
- this.clearTable(), this.currentHourData = ((b = D0.pickHourly(z, this.ts ? F(this.ts) : F())) == null ? void 0 : b[0]) || {}, this.positionGmt = (p = (O = z.weather) == null ? void 0 : O[0]) == null ? void 0 : p.timezone, this.localDate = _0(this.ts).tz(this.positionGmt).format("MMM-DD/HHmm[LT]");
6254
+ var b, O, p, o, e, t, q, r, a, i, R, n, m, L, d, N, h, X, x, g, j, y, C, Z, Y, a0, s0, l0, q0, W0, z0, f0, u0, r0, i0, n0, L0, d0, P;
6255
+ this.clearTable(), this.currentHourData = ((b = D0.pickHourly(z, this.ts ? F(this.ts) : F())) == null ? void 0 : b[0]) || {}, this.positionGmt = (p = (O = z == null ? void 0 : z.weather) == null ? void 0 : O[0]) == null ? void 0 : p.timezone, this.localDate = _0(this.ts).tz(this.positionGmt).format("MMM-DD/HHmm[LT]");
6256
6256
  const M = document.getElementById("meteoMainBox");
6257
6257
  if (((o = this.currentHourData.weather) == null ? void 0 : o.code) === 0 && ((e = this.currentHourData.weather) == null ? void 0 : e.isDay) === 0)
6258
6258
  M.className = "main-box night-bg";
@@ -6263,8 +6263,8 @@ const pM = {
6263
6263
  for (let H = 0; H < 8; H++) {
6264
6264
  const e0 = _0(this.ts).tz(this.positionGmt).add(3 * H, "h").format();
6265
6265
  this.tableData.hours.push(e0);
6266
- const X = ((q = D0.pickHourly(z, e0)) == null ? void 0 : q[0]) || {};
6267
- this.tableData.weatherUrls.push((r = X.weather) == null ? void 0 : r.url), this.tableData.weatherNames.push(((a = X.weather) == null ? void 0 : a.name) ?? "-"), this.tableData.temp.push(this.roundPrecision((i = X.weather) == null ? void 0 : i.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((n = (L = X.weather) == null ? void 0 : L.precip) == null ? void 0 : n.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((u = (h = X.weather) == null ? void 0 : h.precip) == null ? void 0 : u.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((d = X.weather) == null ? void 0 : d.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((R = (m = X.weather) == null ? void 0 : m.wind) == null ? void 0 : R.kts, 1) ?? "-"), this.tableData.windDir.push((x = (g = X.weather) == null ? void 0 : g.wind) == null ? void 0 : x.bearing), this.tableData.windGust.push(this.roundPrecision((j = (y = X.weather) == null ? void 0 : y.wind) == null ? void 0 : j.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((C = (B = X.wave) == null ? void 0 : B.sig) == null ? void 0 : C.height, 1) ?? "-"), this.tableData.sigwaveDir.push((Y = (Z = X.wave) == null ? void 0 : Z.sig) == null ? void 0 : Y.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((s0 = (a0 = X.wave) == null ? void 0 : a0.wd) == null ? void 0 : s0.height, 1) ?? "-"), this.tableData.windwaveDir.push((q0 = (l0 = X.wave) == null ? void 0 : l0.wd) == null ? void 0 : q0.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((z0 = (W0 = X.wave) == null ? void 0 : W0.wd) == null ? void 0 : z0.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((u0 = (f0 = X.wave) == null ? void 0 : f0.swell) == null ? void 0 : u0.height, 1) ?? "-"), this.tableData.swellDir.push((i0 = (r0 = X.wave) == null ? void 0 : r0.swell) == null ? void 0 : i0.bearing), this.tableData.swellPeriod.push(this.roundPrecision((L0 = (n0 = X.wave) == null ? void 0 : n0.swell) == null ? void 0 : L0.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((d0 = X.current) == null ? void 0 : d0.speed, 1) ?? "-"), this.tableData.currentDir.push((P = X.current) == null ? void 0 : P.bearing), this.tableData.seaLevel.push(this.roundPrecision(X.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(X.sst, 0) ?? "-");
6266
+ const u = ((q = D0.pickHourly(z, e0)) == null ? void 0 : q[0]) || {};
6267
+ this.tableData.weatherUrls.push((r = u == null ? void 0 : u.weather) == null ? void 0 : r.url), this.tableData.weatherNames.push(((a = u == null ? void 0 : u.weather) == null ? void 0 : a.name) ?? "-"), this.tableData.temp.push(this.roundPrecision((i = u == null ? void 0 : u.weather) == null ? void 0 : i.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((n = (R = u == null ? void 0 : u.weather) == null ? void 0 : R.precip) == null ? void 0 : n.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((L = (m = u == null ? void 0 : u.weather) == null ? void 0 : m.precip) == null ? void 0 : L.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((d = u == null ? void 0 : u.weather) == null ? void 0 : d.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((h = (N = u == null ? void 0 : u.weather) == null ? void 0 : N.wind) == null ? void 0 : h.kts, 1) ?? "-"), this.tableData.windDir.push((x = (X = u == null ? void 0 : u.weather) == null ? void 0 : X.wind) == null ? void 0 : x.bearing), this.tableData.windGust.push(this.roundPrecision((j = (g = u == null ? void 0 : u.weather) == null ? void 0 : g.wind) == null ? void 0 : j.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((C = (y = u == null ? void 0 : u.wave) == null ? void 0 : y.sig) == null ? void 0 : C.height, 1) ?? "-"), this.tableData.sigwaveDir.push((Y = (Z = u == null ? void 0 : u.wave) == null ? void 0 : Z.sig) == null ? void 0 : Y.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((s0 = (a0 = u == null ? void 0 : u.wave) == null ? void 0 : a0.wd) == null ? void 0 : s0.height, 1) ?? "-"), this.tableData.windwaveDir.push((q0 = (l0 = u == null ? void 0 : u.wave) == null ? void 0 : l0.wd) == null ? void 0 : q0.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((z0 = (W0 = u == null ? void 0 : u.wave) == null ? void 0 : W0.wd) == null ? void 0 : z0.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((u0 = (f0 = u == null ? void 0 : u.wave) == null ? void 0 : f0.swell) == null ? void 0 : u0.height, 1) ?? "-"), this.tableData.swellDir.push((i0 = (r0 = u == null ? void 0 : u.wave) == null ? void 0 : r0.swell) == null ? void 0 : i0.bearing), this.tableData.swellPeriod.push(this.roundPrecision((L0 = (n0 = u == null ? void 0 : u.wave) == null ? void 0 : n0.swell) == null ? void 0 : L0.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((d0 = u == null ? void 0 : u.current) == null ? void 0 : d0.speed, 1) ?? "-"), this.tableData.currentDir.push((P = u == null ? void 0 : u.current) == null ? void 0 : P.bearing), this.tableData.seaLevel.push(this.roundPrecision(u == null ? void 0 : u.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(u == null ? void 0 : u.sst, 0) ?? "-");
6268
6268
  }
6269
6269
  },
6270
6270
  clearTable() {
@@ -6334,7 +6334,7 @@ const pM = {
6334
6334
  style: { "margin-right": "5px" }
6335
6335
  }, nM = { class: "temp" }, dM = { class: "des info" }, WM = { class: "flex-start" }, sM = { class: "flex-start" }, lM = { class: "flex-start" }, fM = { class: "date flex-col-center-end" }, uM = { class: "" }, LM = { class: "" }, RM = { class: "detail-box" }, hM = { class: "menu-header flex-start" }, mM = { class: "basic-table" }, NM = { class: "hour" }, BM = { class: "hour" }, yM = { class: "icon" }, gM = ["src"], XM = { class: "text" }, vM = { class: "text" }, TM = { class: "text" }, wM = { class: "text" }, CM = { class: "wave-current-table" }, _M = { class: "hour" }, xM = { class: "hour" }, SM = { class: "icon" }, EM = ["src"], PM = { class: "text" }, kM = { class: "text" }, DM = { class: "text" }, IM = { class: "text" }, jM = { class: "sea-table" }, UM = { class: "hour" }, FM = { class: "hour" }, HM = { class: "icon" }, GM = ["src"], VM = { class: "text" }, KM = { class: "text" };
6336
6336
  function JM(z, M, b, O, p, o) {
6337
- var r, a, i, L, n, h, u, d, m, R, g, x, y, j;
6337
+ var r, a, i, R, n, m, L, d, N, h, X, x, g, j;
6338
6338
  const e = S("LocationFilled"), t = S("ElIcon"), q = S("ElTooltip");
6339
6339
  return l(), f("div", null, [
6340
6340
  X0(c("div", OM, [
@@ -6351,7 +6351,7 @@ function JM(z, M, b, O, p, o) {
6351
6351
  ]),
6352
6352
  c("div", {
6353
6353
  class: "iconfont close",
6354
- onClick: M[0] || (M[0] = (B) => p.showMeteo = !1)
6354
+ onClick: M[0] || (M[0] = (y) => p.showMeteo = !1)
6355
6355
  }, "")
6356
6356
  ]),
6357
6357
  c("div", tM, [
@@ -6360,13 +6360,13 @@ function JM(z, M, b, O, p, o) {
6360
6360
  T(q, {
6361
6361
  placement: "top",
6362
6362
  effect: "light",
6363
- content: (L = (i = p.currentHourData) == null ? void 0 : i.weather) == null ? void 0 : L.name,
6363
+ content: (R = (i = p.currentHourData) == null ? void 0 : i.weather) == null ? void 0 : R.name,
6364
6364
  "show-after": 1e3
6365
6365
  }, {
6366
6366
  default: c0(() => {
6367
- var B, C, Z, Y;
6367
+ var y, C, Z, Y;
6368
6368
  return [
6369
- (C = (B = p.currentHourData) == null ? void 0 : B.weather) != null && C.url ? (l(), f("img", {
6369
+ (C = (y = p.currentHourData) == null ? void 0 : y.weather) != null && C.url ? (l(), f("img", {
6370
6370
  key: 0,
6371
6371
  class: "iconfont icon",
6372
6372
  style: { "margin-right": "5px" },
@@ -6378,22 +6378,22 @@ function JM(z, M, b, O, p, o) {
6378
6378
  }, 8, ["content"]),
6379
6379
  c("div", nM, [
6380
6380
  c("div", null, [
6381
- b0(_(o.roundPrecision((h = (n = p.currentHourData) == null ? void 0 : n.weather) == null ? void 0 : h.temp, 0)), 1),
6381
+ b0(_(o.roundPrecision((m = (n = p.currentHourData) == null ? void 0 : n.weather) == null ? void 0 : m.temp, 0)), 1),
6382
6382
  M[4] || (M[4] = c("span", { style: { "font-size": "14px" } }, "°C", -1))
6383
6383
  ])
6384
6384
  ]),
6385
6385
  c("div", dM, [
6386
6386
  c("div", WM, [
6387
6387
  M[5] || (M[5] = c("label", null, "Precip : ", -1)),
6388
- c("span", null, _(o.roundPrecision((m = (d = (u = p.currentHourData) == null ? void 0 : u.weather) == null ? void 0 : d.precip) == null ? void 0 : m.sum, 0)) + " mm", 1)
6388
+ c("span", null, _(o.roundPrecision((N = (d = (L = p.currentHourData) == null ? void 0 : L.weather) == null ? void 0 : d.precip) == null ? void 0 : N.sum, 0)) + " mm", 1)
6389
6389
  ]),
6390
6390
  c("div", sM, [
6391
6391
  M[6] || (M[6] = c("label", null, "Visibility : ", -1)),
6392
- c("span", null, _(o.roundPrecision((g = (R = p.currentHourData) == null ? void 0 : R.weather) == null ? void 0 : g.visibility, 0)) + " nm", 1)
6392
+ c("span", null, _(o.roundPrecision((X = (h = p.currentHourData) == null ? void 0 : h.weather) == null ? void 0 : X.visibility, 0)) + " nm", 1)
6393
6393
  ]),
6394
6394
  c("div", lM, [
6395
6395
  M[7] || (M[7] = c("label", null, "Wind : ", -1)),
6396
- c("span", null, _(o.roundPrecision((j = (y = (x = p.currentHourData) == null ? void 0 : x.weather) == null ? void 0 : y.wind) == null ? void 0 : j.kts, 1)) + " kts", 1)
6396
+ c("span", null, _(o.roundPrecision((j = (g = (x = p.currentHourData) == null ? void 0 : x.weather) == null ? void 0 : g.wind) == null ? void 0 : j.kts, 1)) + " kts", 1)
6397
6397
  ])
6398
6398
  ])
6399
6399
  ]),
@@ -6406,15 +6406,15 @@ function JM(z, M, b, O, p, o) {
6406
6406
  c("div", hM, [
6407
6407
  c("div", {
6408
6408
  class: J(["menu-item", p.activeIndex === 1 ? "active" : ""]),
6409
- onClick: M[1] || (M[1] = C0((B) => o.handleSelectTab(1), ["prevent"]))
6409
+ onClick: M[1] || (M[1] = C0((y) => o.handleSelectTab(1), ["prevent"]))
6410
6410
  }, "Basis", 2),
6411
6411
  c("div", {
6412
6412
  class: J(["menu-item", p.activeIndex === 2 ? "active" : ""]),
6413
- onClick: M[2] || (M[2] = C0((B) => o.handleSelectTab(2), ["prevent"]))
6413
+ onClick: M[2] || (M[2] = C0((y) => o.handleSelectTab(2), ["prevent"]))
6414
6414
  }, "Wave & Current", 2),
6415
6415
  c("div", {
6416
6416
  class: J(["menu-item", p.activeIndex === 3 ? "active" : ""]),
6417
- onClick: M[3] || (M[3] = C0((B) => o.handleSelectTab(3), ["prevent"]))
6417
+ onClick: M[3] || (M[3] = C0((y) => o.handleSelectTab(3), ["prevent"]))
6418
6418
  }, "Sea Surface", 2)
6419
6419
  ]),
6420
6420
  X0(c("table", mM, [
@@ -6427,11 +6427,11 @@ function JM(z, M, b, O, p, o) {
6427
6427
  b0("Hours"),
6428
6428
  c("span", { class: "unit" }, "(LT)")
6429
6429
  ], -1)),
6430
- (l(!0), f(K, null, $(p.tableData.hours, (B) => (l(), f("th", {
6430
+ (l(!0), f(K, null, $(p.tableData.hours, (y) => (l(), f("th", {
6431
6431
  rowspan: "1",
6432
6432
  colspan: "1",
6433
6433
  key: Math.random()
6434
- }, _(o.computeHourL(B)), 1))), 128))
6434
+ }, _(o.computeHourL(y)), 1))), 128))
6435
6435
  ]),
6436
6436
  c("tr", BM, [
6437
6437
  M[9] || (M[9] = c("th", {
@@ -6442,11 +6442,11 @@ function JM(z, M, b, O, p, o) {
6442
6442
  b0("UTC"),
6443
6443
  c("span", { class: "unit" })
6444
6444
  ], -1)),
6445
- (l(!0), f(K, null, $(p.tableData.hours, (B) => (l(), f("th", {
6445
+ (l(!0), f(K, null, $(p.tableData.hours, (y) => (l(), f("th", {
6446
6446
  rowspan: "1",
6447
6447
  colspan: "1",
6448
6448
  key: Math.random()
6449
- }, _(o.computeHourZ(B)), 1))), 128))
6449
+ }, _(o.computeHourZ(y)), 1))), 128))
6450
6450
  ]),
6451
6451
  c("tr", yM, [
6452
6452
  M[10] || (M[10] = c("th", {
@@ -6454,7 +6454,7 @@ function JM(z, M, b, O, p, o) {
6454
6454
  colspan: "1",
6455
6455
  class: "tr-title"
6456
6456
  }, null, -1)),
6457
- (l(!0), f(K, null, $(p.tableData.weatherUrls, (B, C) => (l(), f("th", {
6457
+ (l(!0), f(K, null, $(p.tableData.weatherUrls, (y, C) => (l(), f("th", {
6458
6458
  rowspan: "1",
6459
6459
  colspan: "1",
6460
6460
  key: Math.random()
@@ -6466,10 +6466,10 @@ function JM(z, M, b, O, p, o) {
6466
6466
  "show-after": 500
6467
6467
  }, {
6468
6468
  default: c0(() => [
6469
- B ? (l(), f("img", {
6469
+ y ? (l(), f("img", {
6470
6470
  key: 0,
6471
6471
  class: "iconfont weather-icon",
6472
- src: B
6472
+ src: y
6473
6473
  }, null, 8, gM)) : U("", !0)
6474
6474
  ]),
6475
6475
  _: 2
@@ -6485,11 +6485,11 @@ function JM(z, M, b, O, p, o) {
6485
6485
  b0("Temp"),
6486
6486
  c("span", { class: "unit" }, "°C")
6487
6487
  ], -1)),
6488
- (l(!0), f(K, null, $(p.tableData.temp, (B) => (l(), f("td", {
6488
+ (l(!0), f(K, null, $(p.tableData.temp, (y) => (l(), f("td", {
6489
6489
  rowspan: "1",
6490
6490
  colspan: "1",
6491
6491
  key: Math.random()
6492
- }, _(B), 1))), 128))
6492
+ }, _(y), 1))), 128))
6493
6493
  ]),
6494
6494
  c("tr", vM, [
6495
6495
  M[12] || (M[12] = c("td", {
@@ -6500,11 +6500,11 @@ function JM(z, M, b, O, p, o) {
6500
6500
  b0("Precip"),
6501
6501
  c("span", { class: "unit" }, "mm")
6502
6502
  ], -1)),
6503
- (l(!0), f(K, null, $(p.tableData.precip1h, (B) => (l(), f("td", {
6503
+ (l(!0), f(K, null, $(p.tableData.precip1h, (y) => (l(), f("td", {
6504
6504
  rowspan: "1",
6505
6505
  colspan: "1",
6506
6506
  key: Math.random()
6507
- }, _(B), 1))), 128))
6507
+ }, _(y), 1))), 128))
6508
6508
  ]),
6509
6509
  c("tr", TM, [
6510
6510
  M[13] || (M[13] = c("td", {
@@ -6515,11 +6515,11 @@ function JM(z, M, b, O, p, o) {
6515
6515
  b0("Visibility"),
6516
6516
  c("span", { class: "unit" }, "nm")
6517
6517
  ], -1)),
6518
- (l(!0), f(K, null, $(p.tableData.visibility, (B) => (l(), f("td", {
6518
+ (l(!0), f(K, null, $(p.tableData.visibility, (y) => (l(), f("td", {
6519
6519
  rowspan: "1",
6520
6520
  colspan: "1",
6521
6521
  key: Math.random()
6522
- }, _(B), 1))), 128))
6522
+ }, _(y), 1))), 128))
6523
6523
  ]),
6524
6524
  c("tr", wM, [
6525
6525
  M[14] || (M[14] = c("td", {
@@ -6530,7 +6530,7 @@ function JM(z, M, b, O, p, o) {
6530
6530
  b0("Wind"),
6531
6531
  c("span", { class: "unit" }, "kts")
6532
6532
  ], -1)),
6533
- (l(!0), f(K, null, $(p.tableData.windSpeed, (B, C) => (l(), f("td", {
6533
+ (l(!0), f(K, null, $(p.tableData.windSpeed, (y, C) => (l(), f("td", {
6534
6534
  rowspan: "1",
6535
6535
  colspan: "1",
6536
6536
  key: Math.random()
@@ -6540,7 +6540,7 @@ function JM(z, M, b, O, p, o) {
6540
6540
  class: "iconfont icon blue",
6541
6541
  style: p0({ display: "inline-block", transform: `rotate(${p.tableData.windDir[C]}deg)` })
6542
6542
  }, "", 4)),
6543
- c("span", null, _(B), 1)
6543
+ c("span", null, _(y), 1)
6544
6544
  ]))), 128))
6545
6545
  ])
6546
6546
  ], 512), [
@@ -6556,11 +6556,11 @@ function JM(z, M, b, O, p, o) {
6556
6556
  b0("Hours"),
6557
6557
  c("span", { class: "unit" }, "(LT)")
6558
6558
  ], -1)),
6559
- (l(!0), f(K, null, $(p.tableData.hours, (B) => (l(), f("th", {
6559
+ (l(!0), f(K, null, $(p.tableData.hours, (y) => (l(), f("th", {
6560
6560
  rowspan: "1",
6561
6561
  colspan: "1",
6562
6562
  key: Math.random()
6563
- }, _(o.computeHourL(B)), 1))), 128))
6563
+ }, _(o.computeHourL(y)), 1))), 128))
6564
6564
  ]),
6565
6565
  c("tr", xM, [
6566
6566
  M[16] || (M[16] = c("th", {
@@ -6571,18 +6571,18 @@ function JM(z, M, b, O, p, o) {
6571
6571
  b0("UTC"),
6572
6572
  c("span", { class: "unit" })
6573
6573
  ], -1)),
6574
- (l(!0), f(K, null, $(p.tableData.hours, (B) => (l(), f("th", {
6574
+ (l(!0), f(K, null, $(p.tableData.hours, (y) => (l(), f("th", {
6575
6575
  rowspan: "1",
6576
6576
  colspan: "1",
6577
6577
  key: Math.random()
6578
- }, _(o.computeHourZ(B)), 1))), 128))
6578
+ }, _(o.computeHourZ(y)), 1))), 128))
6579
6579
  ]),
6580
6580
  c("tr", SM, [
6581
6581
  M[17] || (M[17] = c("th", {
6582
6582
  rowspan: "1",
6583
6583
  colspan: "1"
6584
6584
  }, null, -1)),
6585
- (l(!0), f(K, null, $(p.tableData.weatherUrls, (B, C) => (l(), f("th", {
6585
+ (l(!0), f(K, null, $(p.tableData.weatherUrls, (y, C) => (l(), f("th", {
6586
6586
  rowspan: "1",
6587
6587
  colspan: "1",
6588
6588
  key: Math.random()
@@ -6594,10 +6594,10 @@ function JM(z, M, b, O, p, o) {
6594
6594
  "show-after": 500
6595
6595
  }, {
6596
6596
  default: c0(() => [
6597
- B ? (l(), f("img", {
6597
+ y ? (l(), f("img", {
6598
6598
  key: 0,
6599
6599
  class: "iconfont weather-icon",
6600
- src: B
6600
+ src: y
6601
6601
  }, null, 8, EM)) : U("", !0)
6602
6602
  ]),
6603
6603
  _: 2
@@ -6613,7 +6613,7 @@ function JM(z, M, b, O, p, o) {
6613
6613
  b0("Sig Wave"),
6614
6614
  c("span", { class: "unit" }, "m")
6615
6615
  ], -1)),
6616
- (l(!0), f(K, null, $(p.tableData.sigwaveHeight, (B, C) => (l(), f("td", {
6616
+ (l(!0), f(K, null, $(p.tableData.sigwaveHeight, (y, C) => (l(), f("td", {
6617
6617
  rowspan: "1",
6618
6618
  colspan: "1",
6619
6619
  key: Math.random()
@@ -6623,7 +6623,7 @@ function JM(z, M, b, O, p, o) {
6623
6623
  class: "iconfont icon blue",
6624
6624
  style: p0({ display: "inline-block", transform: `rotate(${p.tableData.sigwaveDir[C]}deg)` })
6625
6625
  }, "", 4)),
6626
- c("span", null, _(B), 1)
6626
+ c("span", null, _(y), 1)
6627
6627
  ]))), 128))
6628
6628
  ]),
6629
6629
  c("tr", kM, [
@@ -6635,7 +6635,7 @@ function JM(z, M, b, O, p, o) {
6635
6635
  b0("Wind Wave"),
6636
6636
  c("span", { class: "unit" }, "m")
6637
6637
  ], -1)),
6638
- (l(!0), f(K, null, $(p.tableData.windwaveHeight, (B, C) => (l(), f("td", {
6638
+ (l(!0), f(K, null, $(p.tableData.windwaveHeight, (y, C) => (l(), f("td", {
6639
6639
  rowspan: "1",
6640
6640
  colspan: "1",
6641
6641
  key: Math.random()
@@ -6645,7 +6645,7 @@ function JM(z, M, b, O, p, o) {
6645
6645
  class: "iconfont icon orange",
6646
6646
  style: p0({ display: "inline-block", transform: `rotate(${p.tableData.sigwaveDir[C]}deg)` })
6647
6647
  }, "", 4)),
6648
- c("span", null, _(B), 1)
6648
+ c("span", null, _(y), 1)
6649
6649
  ]))), 128))
6650
6650
  ]),
6651
6651
  c("tr", DM, [
@@ -6657,7 +6657,7 @@ function JM(z, M, b, O, p, o) {
6657
6657
  b0("Swell"),
6658
6658
  c("span", { class: "unit" }, "m")
6659
6659
  ], -1)),
6660
- (l(!0), f(K, null, $(p.tableData.swellHeight, (B, C) => (l(), f("td", {
6660
+ (l(!0), f(K, null, $(p.tableData.swellHeight, (y, C) => (l(), f("td", {
6661
6661
  rowspan: "1",
6662
6662
  colspan: "1",
6663
6663
  key: Math.random()
@@ -6667,7 +6667,7 @@ function JM(z, M, b, O, p, o) {
6667
6667
  class: "iconfont icon orange",
6668
6668
  style: p0({ display: "inline-block", transform: `rotate(${p.tableData.swellDir[C]}deg)` })
6669
6669
  }, "", 4)),
6670
- c("span", null, _(B), 1)
6670
+ c("span", null, _(y), 1)
6671
6671
  ]))), 128))
6672
6672
  ]),
6673
6673
  c("tr", IM, [
@@ -6679,7 +6679,7 @@ function JM(z, M, b, O, p, o) {
6679
6679
  b0("Current"),
6680
6680
  c("span", { class: "unit" }, "kts")
6681
6681
  ], -1)),
6682
- (l(!0), f(K, null, $(p.tableData.currentSpeed, (B, C) => (l(), f("td", {
6682
+ (l(!0), f(K, null, $(p.tableData.currentSpeed, (y, C) => (l(), f("td", {
6683
6683
  rowspan: "1",
6684
6684
  colspan: "1",
6685
6685
  key: Math.random()
@@ -6690,7 +6690,7 @@ function JM(z, M, b, O, p, o) {
6690
6690
  id: "meteoGrayIcon",
6691
6691
  style: p0({ display: "inline-block", transform: `rotate(${p.tableData.currentDir[C]}deg)` })
6692
6692
  }, "", 4)),
6693
- c("span", null, _(B), 1)
6693
+ c("span", null, _(y), 1)
6694
6694
  ]))), 128))
6695
6695
  ])
6696
6696
  ], 512), [
@@ -6706,11 +6706,11 @@ function JM(z, M, b, O, p, o) {
6706
6706
  b0("Hours"),
6707
6707
  c("span", { class: "unit" }, "(LT)")
6708
6708
  ], -1)),
6709
- (l(!0), f(K, null, $(p.tableData.hours, (B) => (l(), f("th", {
6709
+ (l(!0), f(K, null, $(p.tableData.hours, (y) => (l(), f("th", {
6710
6710
  rowspan: "1",
6711
6711
  colspan: "1",
6712
6712
  key: Math.random()
6713
- }, _(o.computeHourL(B)), 1))), 128))
6713
+ }, _(o.computeHourL(y)), 1))), 128))
6714
6714
  ]),
6715
6715
  c("tr", FM, [
6716
6716
  M[23] || (M[23] = c("th", {
@@ -6721,11 +6721,11 @@ function JM(z, M, b, O, p, o) {
6721
6721
  b0("UTC"),
6722
6722
  c("span", { class: "unit" })
6723
6723
  ], -1)),
6724
- (l(!0), f(K, null, $(p.tableData.hours, (B) => (l(), f("th", {
6724
+ (l(!0), f(K, null, $(p.tableData.hours, (y) => (l(), f("th", {
6725
6725
  rowspan: "1",
6726
6726
  colspan: "1",
6727
6727
  key: Math.random()
6728
- }, _(o.computeHourZ(B)), 1))), 128))
6728
+ }, _(o.computeHourZ(y)), 1))), 128))
6729
6729
  ]),
6730
6730
  c("tr", HM, [
6731
6731
  M[24] || (M[24] = c("th", {
@@ -6733,7 +6733,7 @@ function JM(z, M, b, O, p, o) {
6733
6733
  colspan: "1",
6734
6734
  class: "tr-title"
6735
6735
  }, null, -1)),
6736
- (l(!0), f(K, null, $(p.tableData.weatherUrls, (B, C) => (l(), f("th", {
6736
+ (l(!0), f(K, null, $(p.tableData.weatherUrls, (y, C) => (l(), f("th", {
6737
6737
  rowspan: "1",
6738
6738
  colspan: "1",
6739
6739
  key: Math.random()
@@ -6745,10 +6745,10 @@ function JM(z, M, b, O, p, o) {
6745
6745
  "show-after": 500
6746
6746
  }, {
6747
6747
  default: c0(() => [
6748
- B ? (l(), f("img", {
6748
+ y ? (l(), f("img", {
6749
6749
  key: 0,
6750
6750
  class: "iconfont weather-icon",
6751
- src: B
6751
+ src: y
6752
6752
  }, null, 8, GM)) : U("", !0)
6753
6753
  ]),
6754
6754
  _: 2
@@ -6764,11 +6764,11 @@ function JM(z, M, b, O, p, o) {
6764
6764
  b0("SeaLevel"),
6765
6765
  c("span", { class: "unit" }, "m")
6766
6766
  ], -1)),
6767
- (l(!0), f(K, null, $(p.tableData.seaLevel, (B) => (l(), f("td", {
6767
+ (l(!0), f(K, null, $(p.tableData.seaLevel, (y) => (l(), f("td", {
6768
6768
  rowspan: "1",
6769
6769
  colspan: "1",
6770
6770
  key: Math.random()
6771
- }, _(B), 1))), 128))
6771
+ }, _(y), 1))), 128))
6772
6772
  ]),
6773
6773
  c("tr", KM, [
6774
6774
  M[26] || (M[26] = c("td", {
@@ -6779,11 +6779,11 @@ function JM(z, M, b, O, p, o) {
6779
6779
  b0("SeaTemp"),
6780
6780
  c("span", { class: "unit" }, "°C")
6781
6781
  ], -1)),
6782
- (l(!0), f(K, null, $(p.tableData.seaTemp, (B) => (l(), f("td", {
6782
+ (l(!0), f(K, null, $(p.tableData.seaTemp, (y) => (l(), f("td", {
6783
6783
  rowspan: "1",
6784
6784
  colspan: "1",
6785
6785
  key: Math.random()
6786
- }, _(B), 1))), 128))
6786
+ }, _(y), 1))), 128))
6787
6787
  ])
6788
6788
  ], 512), [
6789
6789
  [v0, p.activeIndex === 3]
@@ -6799,7 +6799,7 @@ function JM(z, M, b, O, p, o) {
6799
6799
  ])
6800
6800
  ]);
6801
6801
  }
6802
- const QM = /* @__PURE__ */ D(pM, [["render", JM], ["__scopeId", "data-v-51904a9d"]]), $M = {
6802
+ const QM = /* @__PURE__ */ D(pM, [["render", JM], ["__scopeId", "data-v-35b7107b"]]), $M = {
6803
6803
  name: "IdmWarZone",
6804
6804
  props: {
6805
6805
  map: {
@@ -8087,24 +8087,24 @@ const H0 = /* @__PURE__ */ D(xb, [["render", Sb], ["__scopeId", "data-v-ad66a24c
8087
8087
  var b, O, p, o, e, t, q, r, a, i;
8088
8088
  const M = (O = (b = z.target) == null ? void 0 : b._element) == null ? void 0 : O.id;
8089
8089
  if ((M == null ? void 0 : M.split("-").length) === 2) {
8090
- const L = this.geojson.filter((d) => d.id === M.split("-")[0])[0];
8091
- this.pointMarkers[L.id].filter((d) => {
8092
- var m;
8093
- return ((m = d._element) == null ? void 0 : m.id) === M;
8090
+ const R = this.geojson.filter((d) => d.id === M.split("-")[0])[0];
8091
+ this.pointMarkers[R.id].filter((d) => {
8092
+ var N;
8093
+ return ((N = d._element) == null ? void 0 : N.id) === M;
8094
8094
  })[0].setLngLat([(o = (p = z.target) == null ? void 0 : p._lngLat) == null ? void 0 : o.lng, (t = (e = z.target) == null ? void 0 : e._lngLat) == null ? void 0 : t.lat]);
8095
- let h;
8096
- L.features.forEach((d, m) => {
8095
+ let m;
8096
+ R.features.forEach((d, N) => {
8097
8097
  if (d.geometry.type === "Point" && d.properties.id == M.split("-")[1]) {
8098
- h = m;
8098
+ m = N;
8099
8099
  return;
8100
8100
  }
8101
8101
  });
8102
- const u = L.features.filter((d) => d.geometry.type === "Point");
8102
+ const L = R.features.filter((d) => d.geometry.type === "Point");
8103
8103
  this.handleTmpPointUpdate(
8104
- L,
8105
- u[h - 1],
8106
- { lng: (r = (q = z.target) == null ? void 0 : q._lngLat) == null ? void 0 : r.lng, lat: (i = (a = z.target) == null ? void 0 : a._lngLat) == null ? void 0 : i.lat, properties: u[h].properties },
8107
- h === u.length - 1 ? void 0 : u[h + 1]
8104
+ R,
8105
+ L[m - 1],
8106
+ { lng: (r = (q = z.target) == null ? void 0 : q._lngLat) == null ? void 0 : r.lng, lat: (i = (a = z.target) == null ? void 0 : a._lngLat) == null ? void 0 : i.lat, properties: L[m].properties },
8107
+ m === L.length - 1 ? void 0 : L[m + 1]
8108
8108
  );
8109
8109
  }
8110
8110
  },
@@ -8112,13 +8112,13 @@ const H0 = /* @__PURE__ */ D(xb, [["render", Sb], ["__scopeId", "data-v-ad66a24c
8112
8112
  var b, O, p, o, e, t, q, r, a, i;
8113
8113
  const M = (O = (b = z.target) == null ? void 0 : b._element) == null ? void 0 : O.id;
8114
8114
  if ((M == null ? void 0 : M.split("-").length) === 2) {
8115
- const L = this.geojson.filter((u) => u.id === M.split("-")[0])[0];
8116
- this.pointMarkers[L.id].filter((u) => {
8115
+ const R = this.geojson.filter((L) => L.id === M.split("-")[0])[0];
8116
+ this.pointMarkers[R.id].filter((L) => {
8117
8117
  var d;
8118
- return ((d = u._element) == null ? void 0 : d.id) === M;
8118
+ return ((d = L._element) == null ? void 0 : d.id) === M;
8119
8119
  })[0].setLngLat([(o = (p = z.target) == null ? void 0 : p._lngLat) == null ? void 0 : o.lng, (t = (e = z.target) == null ? void 0 : e._lngLat) == null ? void 0 : t.lat]);
8120
- const h = L.features.filter((u) => u.geometry.type === "Point" && u.properties.id == M.split("-")[1])[0];
8121
- h.geometry.coordinates = [(r = (q = z.target) == null ? void 0 : q._lngLat) == null ? void 0 : r.lng, (i = (a = z.target) == null ? void 0 : a._lngLat) == null ? void 0 : i.lat], L.features = L.features.filter((u) => u.geometry.type === "Point"), this.handlePointUpdate(L);
8120
+ const m = R.features.filter((L) => L.geometry.type === "Point" && L.properties.id == M.split("-")[1])[0];
8121
+ m.geometry.coordinates = [(r = (q = z.target) == null ? void 0 : q._lngLat) == null ? void 0 : r.lng, (i = (a = z.target) == null ? void 0 : a._lngLat) == null ? void 0 : i.lat], R.features = R.features.filter((L) => L.geometry.type === "Point"), this.handlePointUpdate(R);
8122
8122
  }
8123
8123
  },
8124
8124
  handleContextmenu(z) {
@@ -8167,9 +8167,9 @@ const H0 = /* @__PURE__ */ D(xb, [["render", Sb], ["__scopeId", "data-v-ad66a24c
8167
8167
  for (let p = 1; p < M.length; p++) {
8168
8168
  const o = M[p - 1], e = M[p], t = o.properties, q = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, r = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, a = R0.calculateDistance(q, r, t.mode === "RL", 2), i = R0.calculateBearing(q, r, t.mode === "RL", 2);
8169
8169
  b = M0.roundPrecision(b + a, 2);
8170
- let L;
8171
- t.mode === "RL" ? L = M0.convertToMonotonicLng([q, r]) : L = M0.convertToMonotonicLng(R0.interpolateCoordinates(q, r, 200));
8172
- const n = w.lineString(L.map((h) => [h.lng, h.lat]));
8170
+ let R;
8171
+ t.mode === "RL" ? R = M0.convertToMonotonicLng([q, r]) : R = M0.convertToMonotonicLng(R0.interpolateCoordinates(q, r, 200));
8172
+ const n = w.lineString(R.map((m) => [m.lng, m.lat]));
8173
8173
  n.properties.dist = a, n.properties.bearing = i, n.properties.total = b, O.push(n);
8174
8174
  }
8175
8175
  M.push(...O), z.total = b;
@@ -8184,16 +8184,16 @@ const H0 = /* @__PURE__ */ D(xb, [["render", Sb], ["__scopeId", "data-v-ad66a24c
8184
8184
  o = R0.calculateDistance(r, a, q.mode === "RL", 2), e = R0.calculateBearing(r, a, q.mode === "RL", 2);
8185
8185
  let i;
8186
8186
  q.mode === "RL" ? i = M0.convertToMonotonicLng([r, a]) : i = M0.convertToMonotonicLng(R0.interpolateCoordinates(r, a, 200));
8187
- const L = w.lineString(i.map((n) => [n.lng, n.lat]));
8188
- L.properties.dist = o, L.properties.bearing = e, p.features.push(L);
8187
+ const R = w.lineString(i.map((n) => [n.lng, n.lat]));
8188
+ R.properties.dist = o, R.properties.bearing = e, p.features.push(R);
8189
8189
  }
8190
8190
  if (O) {
8191
8191
  const q = b.properties, r = b, a = { lng: O.geometry.coordinates[0], lat: O.geometry.coordinates[1] };
8192
8192
  o = R0.calculateDistance(r, a, q.mode === "RL", 2), e = R0.calculateBearing(r, a, q.mode === "RL", 2);
8193
8193
  let i;
8194
8194
  q.mode === "RL" ? i = M0.convertToMonotonicLng([r, a]) : i = M0.convertToMonotonicLng(R0.interpolateCoordinates(r, a, 200));
8195
- const L = w.lineString(i.map((n) => [n.lng, n.lat]));
8196
- L.properties.dist = o, L.properties.bearing = e, p.features.push(L);
8195
+ const R = w.lineString(i.map((n) => [n.lng, n.lat]));
8196
+ R.properties.dist = o, R.properties.bearing = e, p.features.push(R);
8197
8197
  }
8198
8198
  this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(p) : this.map.addSource(this.tmpSource, {
8199
8199
  type: "geojson",
@@ -8305,11 +8305,11 @@ const H0 = /* @__PURE__ */ D(xb, [["render", Sb], ["__scopeId", "data-v-ad66a24c
8305
8305
  }
8306
8306
  },
8307
8307
  handleClear(z, M = !0) {
8308
- var o, e, t, q, r, a, i, L, n;
8308
+ var o, e, t, q, r, a, i, R, n;
8309
8309
  const b = `${z.id}-${this.source}`, O = `${z.id}-${this.layer}`, p = `${z.id}-${this.labelLayer}`;
8310
- (o = this.map) != null && o.getLayer(O) && this.map.removeLayer(O), (e = this.map) != null && e.getLayer(p) && this.map.removeLayer(p), (t = this.map) != null && t.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (q = this.map) != null && q.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (r = this.closeMarkers[z.id]) == null || r.remove(), this.closeMarkers[z.id] = void 0, (a = this.pointMarkers[z.id]) == null || a.forEach((h) => {
8311
- h == null || h.remove();
8312
- }), this.pointMarkers[z.id] = [], (i = this.tipMarker) == null || i.remove(), this.tipMarker = void 0, M && ((L = this.map) != null && L.getSource(b)) && this.map.removeSource(b), M && ((n = this.map) != null && n.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
8310
+ (o = this.map) != null && o.getLayer(O) && this.map.removeLayer(O), (e = this.map) != null && e.getLayer(p) && this.map.removeLayer(p), (t = this.map) != null && t.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (q = this.map) != null && q.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (r = this.closeMarkers[z.id]) == null || r.remove(), this.closeMarkers[z.id] = void 0, (a = this.pointMarkers[z.id]) == null || a.forEach((m) => {
8311
+ m == null || m.remove();
8312
+ }), this.pointMarkers[z.id] = [], (i = this.tipMarker) == null || i.remove(), this.tipMarker = void 0, M && ((R = this.map) != null && R.getSource(b)) && this.map.removeSource(b), M && ((n = this.map) != null && n.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
8313
8313
  }
8314
8314
  }
8315
8315
  };
@@ -8521,10 +8521,10 @@ const Hb = {
8521
8521
  },
8522
8522
  activeWeatherLayers: {
8523
8523
  handler() {
8524
- var z, M, b, O, p, o, e, t, q, r, a, i, L, n, h, u, d, m;
8524
+ var z, M, b, O, p, o, e, t, q, r, a, i, R, n, m, L, d, N;
8525
8525
  if (!this.map)
8526
8526
  return !1;
8527
- this.activeWeatherLayers.length > 0 ? ((M = (z = this.map) == null ? void 0 : z.getLayer(this.enc)) == null || M.setLayoutProperty("visibility", "none"), (O = (b = this.map) == null ? void 0 : b.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || O.setLayoutProperty("visibility", "visible"), (o = this.map) != null && o.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((e = this.map) != null && e.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((q = this.map) == null || q.moveLayer((t = this.viewport) == null ? void 0 : t.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (a = this.map) != null && a.getLayer((r = this.viewport) == null ? void 0 : r.particleLayer) && ((i = this.map) != null && i.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((n = this.map) == null || n.moveLayer((L = this.viewport) == null ? void 0 : L.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : ((u = (h = this.map) == null ? void 0 : h.getLayer(this.enc)) == null || u.setLayoutProperty("visibility", "visible"), (m = (d = this.map) == null ? void 0 : d.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || m.setLayoutProperty("visibility", "none")), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
8527
+ this.activeWeatherLayers.length > 0 ? ((M = (z = this.map) == null ? void 0 : z.getLayer(this.enc)) == null || M.setLayoutProperty("visibility", "none"), (O = (b = this.map) == null ? void 0 : b.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || O.setLayoutProperty("visibility", "visible"), (o = this.map) != null && o.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((e = this.map) != null && e.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((q = this.map) == null || q.moveLayer((t = this.viewport) == null ? void 0 : t.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (a = this.map) != null && a.getLayer((r = this.viewport) == null ? void 0 : r.particleLayer) && ((i = this.map) != null && i.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((n = this.map) == null || n.moveLayer((R = this.viewport) == null ? void 0 : R.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : ((L = (m = this.map) == null ? void 0 : m.getLayer(this.enc)) == null || L.setLayoutProperty("visibility", "visible"), (N = (d = this.map) == null ? void 0 : d.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || N.setLayoutProperty("visibility", "none")), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
8528
8528
  },
8529
8529
  immediate: !0
8530
8530
  },
@@ -8580,54 +8580,54 @@ const Hb = {
8580
8580
  const M = (/* @__PURE__ */ new Date()).valueOf();
8581
8581
  let b = 0, O = 0;
8582
8582
  if (this.map) {
8583
- const L = ((p = this.map) == null ? void 0 : p.getZoom()) + 1, n = (o = this.map) == null ? void 0 : o.getBounds(), h = `${n._sw.lng},${n._sw.lat},${n._ne.lng},${n._ne.lat}`;
8583
+ const R = ((p = this.map) == null ? void 0 : p.getZoom()) + 1, n = (o = this.map) == null ? void 0 : o.getBounds(), m = `${n._sw.lng},${n._sw.lat},${n._ne.lng},${n._ne.lat}`;
8584
8584
  if (this.particleFactor) {
8585
- const u = x0.WEATHER_LAYERS.find((d) => {
8586
- var m;
8587
- return ((m = d.peer) == null ? void 0 : m.weight) === this.particleFactor.weight;
8585
+ const L = x0.WEATHER_LAYERS.find((d) => {
8586
+ var N;
8587
+ return ((N = d.peer) == null ? void 0 : N.weight) === this.particleFactor.weight;
8588
8588
  });
8589
- this.particleFactor.particle ? this.weatherWeight = this.weatherWeight & u.weight ? this.weatherWeight : this.weatherWeight + u.weight : this.weatherWeight = this.weatherWeight & u.weight ? this.weatherWeight - u.weight : this.weatherWeight;
8589
+ this.particleFactor.particle ? this.weatherWeight = this.weatherWeight & L.weight ? this.weatherWeight : this.weatherWeight + L.weight : this.weatherWeight = this.weatherWeight & L.weight ? this.weatherWeight - L.weight : this.weatherWeight;
8590
8590
  }
8591
8591
  if (this.weatherWeight > 0) {
8592
- let u = this.weatherWeight, d;
8593
- if (z.tropicals || this.weatherWeight & 256 && (d = this.weatherLayers.tropicals, d && (u -= 256, d.version = Math.random() + 1)), u > 0) {
8594
- const m = await h0.get(`${this.gateway}/api/arc/weather/layers/links?l=${u}&v=${this.source}&z=${L}&bbox=${h}&t=${this.ts}`, {
8592
+ let L = this.weatherWeight, d;
8593
+ if (z.tropicals || this.weatherWeight & 256 && (d = this.weatherLayers.tropicals, d && (L -= 256, d.version = Math.random() + 1)), L > 0) {
8594
+ const N = await h0.get(`${this.gateway}/api/arc/weather/layers/links?l=${L}&v=${this.source}&z=${R}&bbox=${m}&t=${this.ts}`, {
8595
8595
  headers: {
8596
8596
  Authorization: this.token || this.defaultMeteoToken
8597
8597
  }
8598
8598
  });
8599
- if (O = (/* @__PURE__ */ new Date()).valueOf() - (M + b), console.log("weather links elapsed: ", O, ", total: ", b += O), ((e = m == null ? void 0 : m.data) == null ? void 0 : e.code) === 0) {
8600
- const R = (t = m == null ? void 0 : m.data) == null ? void 0 : t.data, g = [];
8601
- for (const y in R)
8602
- y === "ice-edge" && (R[y] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), y !== "tropicals" && g.push(
8603
- h0.get(R[y], {
8599
+ if (O = (/* @__PURE__ */ new Date()).valueOf() - (M + b), console.log("weather links elapsed: ", O, ", total: ", b += O), ((e = N == null ? void 0 : N.data) == null ? void 0 : e.code) === 0) {
8600
+ const h = (t = N == null ? void 0 : N.data) == null ? void 0 : t.data, X = [];
8601
+ for (const g in h)
8602
+ g === "ice-edge" && (h[g] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), g !== "tropicals" && X.push(
8603
+ h0.get(h[g], {
8604
8604
  headers: {
8605
8605
  Authorization: this.token || this.defaultMeteoToken,
8606
- key: y
8606
+ key: g
8607
8607
  },
8608
- responseType: /\.(jpg|png)$/.test(R[y]) ? "blob" : "json"
8608
+ responseType: /\.(jpg|png)$/.test(h[g]) ? "blob" : "json"
8609
8609
  }).catch((j) => {
8610
- console.log(`[${y}] fetch layer error: ${j}`);
8610
+ console.log(`[${g}] fetch layer error: ${j}`);
8611
8611
  })
8612
8612
  );
8613
- const x = await Promise.all(g);
8614
- this.weatherLayers = {}, x.map((y) => {
8613
+ const x = await Promise.all(X);
8614
+ this.weatherLayers = {}, x.map((g) => {
8615
8615
  var C, Z, Y, a0;
8616
- const j = ((C = y == null ? void 0 : y.data) == null ? void 0 : C.data) || (y == null ? void 0 : y.data), B = (Y = (Z = y == null ? void 0 : y.config) == null ? void 0 : Z.headers) == null ? void 0 : Y.key;
8617
- B && j && (this.weatherLayers[B] = {
8616
+ const j = ((C = g == null ? void 0 : g.data) == null ? void 0 : C.data) || (g == null ? void 0 : g.data), y = (Y = (Z = g == null ? void 0 : g.config) == null ? void 0 : Z.headers) == null ? void 0 : Y.key;
8617
+ y && j && (this.weatherLayers[y] = {
8618
8618
  raw: j,
8619
- type: ((a0 = y == null ? void 0 : y.config) == null ? void 0 : a0.responseType) === "blob" ? "image" : "json",
8619
+ type: ((a0 = g == null ? void 0 : g.config) == null ? void 0 : a0.responseType) === "blob" ? "image" : "json",
8620
8620
  etime: this.ts
8621
8621
  });
8622
- }), R.tropicals && h0.get(R.tropicals, {
8622
+ }), h.tropicals && h0.get(h.tropicals, {
8623
8623
  headers: {
8624
8624
  Authorization: this.token || this.defaultMeteoToken,
8625
8625
  key: "tropicals"
8626
8626
  }
8627
- }).then((y) => {
8627
+ }).then((g) => {
8628
8628
  var C, Z, Y;
8629
- const j = I0.convert2Geojson(((C = y == null ? void 0 : y.data) == null ? void 0 : C.data) || (y == null ? void 0 : y.data)), B = (Y = (Z = y == null ? void 0 : y.config) == null ? void 0 : Z.headers) == null ? void 0 : Y.key;
8630
- this.weatherLayers[B] = {
8629
+ const j = I0.convert2Geojson(((C = g == null ? void 0 : g.data) == null ? void 0 : C.data) || (g == null ? void 0 : g.data)), y = (Y = (Z = g == null ? void 0 : g.config) == null ? void 0 : Z.headers) == null ? void 0 : Y.key;
8630
+ this.weatherLayers[y] = {
8631
8631
  data: j,
8632
8632
  active: !0,
8633
8633
  cached: !1,
@@ -8638,20 +8638,20 @@ const Hb = {
8638
8638
  });
8639
8639
  }
8640
8640
  if (O = (/* @__PURE__ */ new Date()).valueOf() - (M + b), console.log("weather layers elapsed: ", O, ", total: ", b += O), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
8641
- const R = (q = this.weatherLayers["swell-direction"]) == null ? void 0 : q.raw, g = (r = this.weatherLayers["swell-height"]) == null ? void 0 : r.raw;
8641
+ const h = (q = this.weatherLayers["swell-direction"]) == null ? void 0 : q.raw, X = (r = this.weatherLayers["swell-height"]) == null ? void 0 : r.raw;
8642
8642
  delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
8643
8643
  type: "json",
8644
- direction: R,
8645
- height: { raw: g },
8644
+ direction: h,
8645
+ height: { raw: X },
8646
8646
  etime: this.ts
8647
8647
  };
8648
8648
  }
8649
8649
  if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
8650
- const R = (a = this.weatherLayers["current-direction"]) == null ? void 0 : a.raw, g = (i = this.weatherLayers["current-speed"]) == null ? void 0 : i.raw;
8650
+ const h = (a = this.weatherLayers["current-direction"]) == null ? void 0 : a.raw, X = (i = this.weatherLayers["current-speed"]) == null ? void 0 : i.raw;
8651
8651
  delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
8652
8652
  type: "json",
8653
- direction: R,
8654
- speed: { raw: g },
8653
+ direction: h,
8654
+ speed: { raw: X },
8655
8655
  etime: this.ts
8656
8656
  };
8657
8657
  }
@@ -8688,9 +8688,9 @@ const Hb = {
8688
8688
  );
8689
8689
  const a = await Promise.all(r);
8690
8690
  this.otherLayers = { enc: e }, a.map((i) => {
8691
- var h, u, d;
8692
- const L = ((h = i == null ? void 0 : i.data) == null ? void 0 : h.data) || (i == null ? void 0 : i.data), n = (d = (u = i == null ? void 0 : i.config) == null ? void 0 : u.headers) == null ? void 0 : d.key;
8693
- this.otherLayers[n] = L;
8691
+ var m, L, d;
8692
+ const R = ((m = i == null ? void 0 : i.data) == null ? void 0 : m.data) || (i == null ? void 0 : i.data), n = (d = (L = i == null ? void 0 : i.config) == null ? void 0 : L.headers) == null ? void 0 : d.key;
8693
+ this.otherLayers[n] = R;
8694
8694
  });
8695
8695
  }
8696
8696
  } else if (z.dayNight && o & 1024) {
@@ -8711,9 +8711,9 @@ const Hb = {
8711
8711
  })
8712
8712
  );
8713
8713
  (await Promise.all(r)).map((i) => {
8714
- var h, u, d;
8715
- const L = ((h = i == null ? void 0 : i.data) == null ? void 0 : h.data) || (i == null ? void 0 : i.data), n = (d = (u = i == null ? void 0 : i.config) == null ? void 0 : u.headers) == null ? void 0 : d.key;
8716
- this.otherLayers[n] = L;
8714
+ var m, L, d;
8715
+ const R = ((m = i == null ? void 0 : i.data) == null ? void 0 : m.data) || (i == null ? void 0 : i.data), n = (d = (L = i == null ? void 0 : i.config) == null ? void 0 : L.headers) == null ? void 0 : d.key;
8716
+ this.otherLayers[n] = R;
8717
8717
  });
8718
8718
  }
8719
8719
  }
@@ -8768,36 +8768,36 @@ const Hb = {
8768
8768
  );
8769
8769
  },
8770
8770
  handleDragEndWithZoom4Json() {
8771
- var r, a, i, L;
8771
+ var r, a, i, R;
8772
8772
  const z = (/* @__PURE__ */ new Date()).valueOf();
8773
8773
  let M = 0, b = 0;
8774
8774
  const O = (r = this.map) == null ? void 0 : r.getBounds(), p = this.map.getZoom(), o = M0.convertToStdLng(O._sw.lng), e = M0.convertToStdLng(O._ne.lng), t = Math.floor(O._sw.lat), q = Math.ceil(O._ne.lat);
8775
8775
  for (const n in this.weatherLayers)
8776
8776
  if (this.weatherLayers[n].active && this.weatherLayers[n].type === "json") {
8777
8777
  this.weatherLayers[n].active = !1, this.weatherLayers[n].version = Math.random() + 1;
8778
- let h = [];
8778
+ let m = [];
8779
8779
  if (["swell", "current"].includes(n)) {
8780
- const u = ((a = this.weatherLayers[n]) == null ? void 0 : a.direction) || {};
8781
- for (const d in u)
8780
+ const L = ((a = this.weatherLayers[n]) == null ? void 0 : a.direction) || {};
8781
+ for (const d in L)
8782
8782
  if (d > t && d < q && (!(p <= this.zoom) || d % (p < this.zoom / 2 ? 5 : 3) === 0)) {
8783
- const m = u[d].lng;
8784
- o > e ? m.forEach((R, g) => {
8783
+ const N = L[d].lng;
8784
+ o > e ? N.forEach((h, X) => {
8785
8785
  var x;
8786
- if ((R >= o && R <= 180 || R >= -180 && R <= e) && (!(p <= this.zoom) || R % (p < this.zoom / 2 ? 5 : 3) === 0)) {
8787
- const y = w.point([R, d], {
8788
- val: u[d].val[g],
8789
- spd: (x = u[d].spd) == null ? void 0 : x[g]
8786
+ if ((h >= o && h <= 180 || h >= -180 && h <= e) && (!(p <= this.zoom) || h % (p < this.zoom / 2 ? 5 : 3) === 0)) {
8787
+ const g = w.point([h, d], {
8788
+ val: L[d].val[X],
8789
+ spd: (x = L[d].spd) == null ? void 0 : x[X]
8790
8790
  });
8791
- h.push(y);
8791
+ m.push(g);
8792
8792
  }
8793
- }) : m.forEach((R, g) => {
8793
+ }) : N.forEach((h, X) => {
8794
8794
  var x;
8795
- if (R >= o && R <= e && (!(p <= this.zoom) || R % (p < this.zoom / 2 ? 5 : 3) === 0)) {
8796
- const y = w.point([R, d], {
8797
- val: u[d].val[g],
8798
- spd: (x = u[d].spd) == null ? void 0 : x[g]
8795
+ if (h >= o && h <= e && (!(p <= this.zoom) || h % (p < this.zoom / 2 ? 5 : 3) === 0)) {
8796
+ const g = w.point([h, d], {
8797
+ val: L[d].val[X],
8798
+ spd: (x = L[d].spd) == null ? void 0 : x[X]
8799
8799
  });
8800
- h.push(y);
8800
+ m.push(g);
8801
8801
  }
8802
8802
  });
8803
8803
  }
@@ -8805,21 +8805,21 @@ const Hb = {
8805
8805
  const d = this.weatherLayers[n].height;
8806
8806
  if (d) {
8807
8807
  if (!d.data) {
8808
- const m = [];
8809
- for (const R in (i = d.raw) == null ? void 0 : i.LineString) {
8810
- const g = d.raw.LineString[R];
8811
- for (const x of g)
8812
- m.push(
8808
+ const N = [];
8809
+ for (const h in (i = d.raw) == null ? void 0 : i.LineString) {
8810
+ const X = d.raw.LineString[h];
8811
+ for (const x of X)
8812
+ N.push(
8813
8813
  w.lineString(x, {
8814
- val: Number(R)
8814
+ val: Number(h)
8815
8815
  })
8816
8816
  );
8817
- d.data = w.featureCollection(m);
8817
+ d.data = w.featureCollection(N);
8818
8818
  }
8819
8819
  }
8820
8820
  if (d.data) {
8821
- const m = this.handleBboxClip(d.data, O);
8822
- h = h.concat(m);
8821
+ const N = this.handleBboxClip(d.data, O);
8822
+ m = m.concat(N);
8823
8823
  }
8824
8824
  b = (/* @__PURE__ */ new Date()).valueOf() - (z + M), console.log("height elapsed: ", b, ", total: ", M += b);
8825
8825
  }
@@ -8828,126 +8828,126 @@ const Hb = {
8828
8828
  const d = this.weatherLayers[n].speed;
8829
8829
  if (d) {
8830
8830
  if (!d.data) {
8831
- const R = [];
8832
- for (const g in (L = d.raw) == null ? void 0 : L.Polygon) {
8833
- const x = d.raw.Polygon[g];
8834
- for (const y of x)
8835
- R.push(
8836
- w.polygon(y, {
8837
- val: Number(g)
8831
+ const h = [];
8832
+ for (const X in (R = d.raw) == null ? void 0 : R.Polygon) {
8833
+ const x = d.raw.Polygon[X];
8834
+ for (const g of x)
8835
+ h.push(
8836
+ w.polygon(g, {
8837
+ val: Number(X)
8838
8838
  })
8839
8839
  );
8840
8840
  }
8841
- d.data = w.featureCollection(R);
8841
+ d.data = w.featureCollection(h);
8842
8842
  }
8843
- const m = p < this.zoom ? d.data.features.filter((R) => R.properties.val > 0.5) : d.data.features;
8844
- h = h.concat(m), b = (/* @__PURE__ */ new Date()).valueOf() - (z + M), console.log("speed elapsed: ", b, ", total: ", M += b);
8843
+ const N = p < this.zoom ? d.data.features.filter((h) => h.properties.val > 0.5) : d.data.features;
8844
+ m = m.concat(N), b = (/* @__PURE__ */ new Date()).valueOf() - (z + M), console.log("speed elapsed: ", b, ", total: ", M += b);
8845
8845
  }
8846
8846
  }
8847
8847
  } else if (n === "wind") {
8848
- const u = this.weatherLayers.wind.raw;
8849
- for (const d in u)
8848
+ const L = this.weatherLayers.wind.raw;
8849
+ for (const d in L)
8850
8850
  if (d > t && d < q && (!(p <= this.zoom) || d % (p < this.zoom / 2 ? 5 : 3) === 0)) {
8851
- const m = u[d].lng;
8852
- o > e ? m.forEach((R, g) => {
8853
- if ((R >= o && R <= 180 || R >= -180 && R <= e) && (!(p <= this.zoom) || R % (p < this.zoom / 2 ? 5 : 3) === 0)) {
8854
- const x = w.point([R, d], {
8855
- val: u[d].val[g],
8856
- spd: u[d].spd[g]
8851
+ const N = L[d].lng;
8852
+ o > e ? N.forEach((h, X) => {
8853
+ if ((h >= o && h <= 180 || h >= -180 && h <= e) && (!(p <= this.zoom) || h % (p < this.zoom / 2 ? 5 : 3) === 0)) {
8854
+ const x = w.point([h, d], {
8855
+ val: L[d].val[X],
8856
+ spd: L[d].spd[X]
8857
8857
  });
8858
- h.push(x);
8858
+ m.push(x);
8859
8859
  }
8860
- }) : m.forEach((R, g) => {
8861
- if (R >= o && R <= e && (!(p <= this.zoom) || R % (p < this.zoom / 2 ? 5 : 3) === 0)) {
8862
- const x = w.point([R, d], {
8863
- val: u[d].val[g],
8864
- spd: u[d].spd[g]
8860
+ }) : N.forEach((h, X) => {
8861
+ if (h >= o && h <= e && (!(p <= this.zoom) || h % (p < this.zoom / 2 ? 5 : 3) === 0)) {
8862
+ const x = w.point([h, d], {
8863
+ val: L[d].val[X],
8864
+ spd: L[d].spd[X]
8865
8865
  });
8866
- h.push(x);
8866
+ m.push(x);
8867
8867
  }
8868
8868
  });
8869
8869
  }
8870
8870
  b = (/* @__PURE__ */ new Date()).valueOf() - (z + M), console.log("wind barb elapsed: ", b, ", total: ", M += b);
8871
8871
  } else if (n === "sig-wave-height") {
8872
8872
  if (this.weatherLayers[n].data)
8873
- h = this.weatherLayers[n].data;
8873
+ m = this.weatherLayers[n].data;
8874
8874
  else {
8875
- const u = this.weatherLayers[n].raw;
8876
- if (u) {
8875
+ const L = this.weatherLayers[n].raw;
8876
+ if (L) {
8877
8877
  const d = [];
8878
- for (const m in u.Polygon) {
8879
- const R = u.Polygon[m];
8880
- for (const g of R)
8878
+ for (const N in L.Polygon) {
8879
+ const h = L.Polygon[N];
8880
+ for (const X of h)
8881
8881
  d.push(
8882
- w.polygon(g, {
8883
- val: Number(m)
8882
+ w.polygon(X, {
8883
+ val: Number(N)
8884
8884
  })
8885
8885
  );
8886
8886
  }
8887
- for (const m in u.Point) {
8888
- const R = u.Point[m];
8889
- for (const g of R)
8887
+ for (const N in L.Point) {
8888
+ const h = L.Point[N];
8889
+ for (const X of h)
8890
8890
  d.push(
8891
- ...w.points(g, {
8892
- val: Number(m)
8891
+ ...w.points(X, {
8892
+ val: Number(N)
8893
8893
  }).features
8894
8894
  );
8895
8895
  }
8896
- h = h.concat(d);
8896
+ m = m.concat(d);
8897
8897
  }
8898
8898
  }
8899
8899
  b = (/* @__PURE__ */ new Date()).valueOf() - (z + M), console.log("sigWave elapsed: ", b, ", total: ", M += b);
8900
8900
  } else if (n === "prmsl") {
8901
8901
  if (this.weatherLayers[n].data)
8902
- h = this.weatherLayers[n].data;
8902
+ m = this.weatherLayers[n].data;
8903
8903
  else {
8904
- const u = this.weatherLayers[n].raw;
8905
- if (u) {
8904
+ const L = this.weatherLayers[n].raw;
8905
+ if (L) {
8906
8906
  const d = [];
8907
- for (const m in u.LineString) {
8908
- const R = u.LineString[m];
8909
- for (const g of R)
8907
+ for (const N in L.LineString) {
8908
+ const h = L.LineString[N];
8909
+ for (const X of h)
8910
8910
  d.push(
8911
- w.lineString(g, {
8912
- val: Number(m)
8911
+ w.lineString(X, {
8912
+ val: Number(N)
8913
8913
  })
8914
8914
  );
8915
8915
  }
8916
- for (const m in u.Point)
8917
- u.Point[m].lng.forEach((R, g) => {
8918
- R = M0.convertToStdLng(R), d.push(
8919
- w.point([R, m], {
8920
- val: u.Point[m].val[g],
8921
- type: u.Point[m].type[g]
8916
+ for (const N in L.Point)
8917
+ L.Point[N].lng.forEach((h, X) => {
8918
+ h = M0.convertToStdLng(h), d.push(
8919
+ w.point([h, N], {
8920
+ val: L.Point[N].val[X],
8921
+ type: L.Point[N].type[X]
8922
8922
  })
8923
8923
  );
8924
8924
  });
8925
- h = h.concat(d);
8925
+ m = m.concat(d);
8926
8926
  }
8927
8927
  }
8928
8928
  b = (/* @__PURE__ */ new Date()).valueOf() - (z + M), console.log("prmsl elapsed: ", b, ", total: ", M += b);
8929
8929
  } else if (n === "arctic" || n === "iceberg") {
8930
8930
  if (this.weatherLayers[n].data)
8931
- h = this.weatherLayers[n].data;
8931
+ m = this.weatherLayers[n].data;
8932
8932
  else {
8933
- const u = this.weatherLayers[n].raw;
8934
- if (u) {
8933
+ const L = this.weatherLayers[n].raw;
8934
+ if (L) {
8935
8935
  const d = [];
8936
- for (const m in u.LineString) {
8937
- const R = u.LineString[m];
8938
- for (const g of R)
8936
+ for (const N in L.LineString) {
8937
+ const h = L.LineString[N];
8938
+ for (const X of h)
8939
8939
  d.push(
8940
- w.lineString(g, {
8941
- val: Number(m)
8940
+ w.lineString(X, {
8941
+ val: Number(N)
8942
8942
  })
8943
8943
  );
8944
8944
  }
8945
- h = h.concat(d);
8945
+ m = m.concat(d);
8946
8946
  }
8947
8947
  }
8948
8948
  b = (/* @__PURE__ */ new Date()).valueOf() - (z + M);
8949
8949
  }
8950
- console.log(n, " elapsed: ", b, ", total: ", M += b), h.length && (this.weatherLayers[n].data = w.featureCollection(h)), this.weatherLayers[n].active = !0, this.weatherLayers[n].version = Math.random() + 1;
8950
+ console.log(n, " elapsed: ", b, ", total: ", M += b), m.length && (this.weatherLayers[n].data = w.featureCollection(m)), this.weatherLayers[n].active = !0, this.weatherLayers[n].version = Math.random() + 1;
8951
8951
  }
8952
8952
  },
8953
8953
  handleDragEndWithZoom4Image() {
@@ -8980,8 +8980,8 @@ const Hb = {
8980
8980
  this.handleBeforeLayerToggle();
8981
8981
  },
8982
8982
  handleBeforeLayerToggle() {
8983
- var z, M, b, O, p, o, e, t, q, r, a, i, L;
8984
- (z = this.map) != null && z.getLayer(this.beforeLayer) && ((M = this.activeWeatherLayers) != null && M.length || (b = this.otherLayers) != null && b["war-zones"] || (O = this.otherLayers) != null && O["gmdss-areas"] || (p = this.otherLayers) != null && p["load-lines"] || (o = this.otherLayers) != null && o["high-risk-area"] || (e = this.otherLayers) != null && e["time-zones"] || (t = this.otherLayers) != null && t.pirates || (q = this.otherLayers) != null && q.ports || (r = this.otherLayers) != null && r.enc || (a = this.otherLayers) != null && a["voluntary-reporting-area"] || (i = this.otherLayers) != null && i["eca-zones"] || (L = this.otherLayers) != null && L["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
8983
+ var z, M, b, O, p, o, e, t, q, r, a, i, R;
8984
+ (z = this.map) != null && z.getLayer(this.beforeLayer) && ((M = this.activeWeatherLayers) != null && M.length || (b = this.otherLayers) != null && b["war-zones"] || (O = this.otherLayers) != null && O["gmdss-areas"] || (p = this.otherLayers) != null && p["load-lines"] || (o = this.otherLayers) != null && o["high-risk-area"] || (e = this.otherLayers) != null && e["time-zones"] || (t = this.otherLayers) != null && t.pirates || (q = this.otherLayers) != null && q.ports || (r = this.otherLayers) != null && r.enc || (a = this.otherLayers) != null && a["voluntary-reporting-area"] || (i = this.otherLayers) != null && i["eca-zones"] || (R = this.otherLayers) != null && R["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
8985
8985
  },
8986
8986
  handleDateChange(z = { tropicals: !1 }) {
8987
8987
  this.fetchWeatherLayers(z), this.fetchOtherLayers({ dayNight: !0 });
@@ -9015,8 +9015,8 @@ const Hb = {
9015
9015
  }
9016
9016
  },
9017
9017
  handle3dToggle(z) {
9018
- var M, b, O, p, o, e, t, q, r, a, i, L, n, h, u, d, m, R, g, x;
9019
- z ? (this.map.setProjection("globe"), this.mapProjection = "globe", (b = this.map) != null && b.getLayer((M = this.viewport) == null ? void 0 : M.rampColorLayer) && ((O = this.map) != null && O.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.particleLayer) && ((q = this.map) != null && q.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((a = this.map) == null || a.moveLayer((r = this.viewport) == null ? void 0 : r.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("zoomend", this.handleDragEndWithZoom4Json), this.map.off("dragend", this.handleDragEndWithZoom4Json), this.map.off("move", this.handleDragEndWithZoom4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.handleDragEndWithZoom4Image(), this.handleDragEndWithZoom4Json(), (L = this.map) != null && L.getLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer) && ((n = this.map) != null && n.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((u = this.map) == null || u.moveLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (m = this.map) != null && m.getLayer((d = this.viewport) == null ? void 0 : d.particleLayer) && ((R = this.map) != null && R.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((x = this.map) == null || x.moveLayer((g = this.viewport) == null ? void 0 : g.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
9018
+ var M, b, O, p, o, e, t, q, r, a, i, R, n, m, L, d, N, h, X, x;
9019
+ z ? (this.map.setProjection("globe"), this.mapProjection = "globe", (b = this.map) != null && b.getLayer((M = this.viewport) == null ? void 0 : M.rampColorLayer) && ((O = this.map) != null && O.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.particleLayer) && ((q = this.map) != null && q.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((a = this.map) == null || a.moveLayer((r = this.viewport) == null ? void 0 : r.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("zoomend", this.handleDragEndWithZoom4Json), this.map.off("dragend", this.handleDragEndWithZoom4Json), this.map.off("move", this.handleDragEndWithZoom4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.handleDragEndWithZoom4Image(), this.handleDragEndWithZoom4Json(), (R = this.map) != null && R.getLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer) && ((n = this.map) != null && n.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((L = this.map) == null || L.moveLayer((m = this.viewport) == null ? void 0 : m.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (N = this.map) != null && N.getLayer((d = this.viewport) == null ? void 0 : d.particleLayer) && ((h = this.map) != null && h.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((x = this.map) == null || x.moveLayer((X = this.viewport) == null ? void 0 : X.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
9020
9020
  },
9021
9021
  handleParticle(z) {
9022
9022
  this.particleFactor = z, this.weatherLayers[z.key] && (this.weatherLayers[z.key].particle = z.particle), this.activeWeatherLayers.map((O) => {
@@ -9039,8 +9039,8 @@ const Hb = {
9039
9039
  className: "map-gl-home"
9040
9040
  };
9041
9041
  function Vb(z, M, b, O, p, o) {
9042
- var r0, i0, n0, L0, d0, P, H, e0, X, o0, N0, B0, g0, y0, A, W, s, N, v, E, Q, k, G, w0, P0, k0;
9043
- const e = S("IdmGlLayer"), t = S("IdmENC"), q = S("IdmSigWave"), r = S("IdmSwell"), a = S("IdmPrmsl"), i = S("IdmIceberg"), L = S("IdmTropicals"), n = S("IdmCurrents"), h = S("IdmCurrentParticle"), u = S("IdmWindBarb"), d = S("IdmWindParticle"), m = S("IdmPrecip3h"), R = S("IdmVisibility"), g = S("IdmWaterTemp"), x = S("IdmTemp"), y = S("IdmArctic"), j = S("IdmWarZone"), B = S("IdmGmdssArea"), C = S("IdmEcaZone"), Z = S("IdmAlertZone"), Y = S("IdmPort"), a0 = S("IdmLoadLine"), s0 = S("IdmTimezone"), l0 = S("IdmVRA"), q0 = S("IdmSpecialArea"), W0 = S("IdmTerminator"), z0 = S("IdmLatLng"), f0 = S("IdmMeasure"), u0 = S("IdmPoint");
9042
+ var r0, i0, n0, L0, d0, P, H, e0, u, o0, N0, B0, g0, y0, A, W, s, B, v, E, Q, k, G, w0, P0, k0;
9043
+ const e = S("IdmGlLayer"), t = S("IdmENC"), q = S("IdmSigWave"), r = S("IdmSwell"), a = S("IdmPrmsl"), i = S("IdmIceberg"), R = S("IdmTropicals"), n = S("IdmCurrents"), m = S("IdmCurrentParticle"), L = S("IdmWindBarb"), d = S("IdmWindParticle"), N = S("IdmPrecip3h"), h = S("IdmVisibility"), X = S("IdmWaterTemp"), x = S("IdmTemp"), g = S("IdmArctic"), j = S("IdmWarZone"), y = S("IdmGmdssArea"), C = S("IdmEcaZone"), Z = S("IdmAlertZone"), Y = S("IdmPort"), a0 = S("IdmLoadLine"), s0 = S("IdmTimezone"), l0 = S("IdmVRA"), q0 = S("IdmSpecialArea"), W0 = S("IdmTerminator"), z0 = S("IdmLatLng"), f0 = S("IdmMeasure"), u0 = S("IdmPoint");
9044
9044
  return b.map ? (l(), f("div", Gb, [
9045
9045
  T(e, I({
9046
9046
  ref: "layer",
@@ -9095,7 +9095,7 @@ function Vb(z, M, b, O, p, o) {
9095
9095
  iceberg: (d0 = p.weatherLayers) == null ? void 0 : d0.iceberg,
9096
9096
  "before-layer": b.beforeLayer
9097
9097
  }, z.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
9098
- T(L, I({
9098
+ T(R, I({
9099
9099
  map: b.map,
9100
9100
  date: b.ts,
9101
9101
  tropicals: (P = p.weatherLayers) == null ? void 0 : P.tropicals,
@@ -9115,17 +9115,17 @@ function Vb(z, M, b, O, p, o) {
9115
9115
  onParticle: o.handleParticle,
9116
9116
  onHandleToggleVersion: o.handleToggleVersion
9117
9117
  }), null, 16, ["map", "map-projection", "current", "before-layer", "showCurrentIsoband", "showCurrentParticle", "margin-bottom", "toggle-version", "weather-layers", "onParticle", "onHandleToggleVersion"]),
9118
- T(h, I({
9118
+ T(m, I({
9119
9119
  viewport: p.viewport,
9120
9120
  factor: (e0 = p.weatherLayers) == null ? void 0 : e0["current-particle"],
9121
9121
  "before-layer": b.beforeLayer,
9122
9122
  "toggle-version": b.toggleVersion
9123
9123
  }, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
9124
- T(u, I({
9124
+ T(L, I({
9125
9125
  ref: "windBarb",
9126
9126
  map: b.map,
9127
9127
  "map-projection": p.mapProjection,
9128
- wind: (X = p.weatherLayers) == null ? void 0 : X.wind,
9128
+ wind: (u = p.weatherLayers) == null ? void 0 : u.wind,
9129
9129
  current: (o0 = p.weatherLayers) == null ? void 0 : o0.current,
9130
9130
  "before-layer": b.beforeLayer,
9131
9131
  "margin-bottom": p.showRampColor ? "56px" : "30px",
@@ -9142,19 +9142,19 @@ function Vb(z, M, b, O, p, o) {
9142
9142
  "before-layer": b.beforeLayer,
9143
9143
  "toggle-version": b.toggleVersion
9144
9144
  }, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
9145
- T(m, I({
9145
+ T(N, I({
9146
9146
  viewport: p.viewport,
9147
9147
  factor: (B0 = p.weatherLayers) == null ? void 0 : B0.precip3h,
9148
9148
  "before-layer": b.beforeLayer,
9149
9149
  "toggle-version": b.toggleVersion
9150
9150
  }, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
9151
- T(R, I({
9151
+ T(h, I({
9152
9152
  viewport: p.viewport,
9153
9153
  factor: (g0 = p.weatherLayers) == null ? void 0 : g0.visibility,
9154
9154
  "before-layer": b.beforeLayer,
9155
9155
  "toggle-version": b.toggleVersion
9156
9156
  }, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
9157
- T(g, I({
9157
+ T(X, I({
9158
9158
  viewport: p.viewport,
9159
9159
  factor: (y0 = p.weatherLayers) == null ? void 0 : y0["water-temp"],
9160
9160
  "before-layer": b.beforeLayer,
@@ -9166,7 +9166,7 @@ function Vb(z, M, b, O, p, o) {
9166
9166
  "before-layer": b.beforeLayer,
9167
9167
  "toggle-version": b.toggleVersion
9168
9168
  }, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
9169
- T(y, I({
9169
+ T(g, I({
9170
9170
  viewport: p.viewport,
9171
9171
  factor: (W = p.weatherLayers) == null ? void 0 : W.arctic,
9172
9172
  "before-layer": b.beforeLayer,
@@ -9177,9 +9177,9 @@ function Vb(z, M, b, O, p, o) {
9177
9177
  zone: (s = p.otherLayers) == null ? void 0 : s["war-zones"],
9178
9178
  "before-layer": b.beforeLayer
9179
9179
  }, z.$attrs), null, 16, ["map", "zone", "before-layer"]),
9180
- T(B, I({
9180
+ T(y, I({
9181
9181
  map: b.map,
9182
- area: (N = p.otherLayers) == null ? void 0 : N["gmdss-areas"],
9182
+ area: (B = p.otherLayers) == null ? void 0 : B["gmdss-areas"],
9183
9183
  "before-layer": b.beforeLayer
9184
9184
  }, z.$attrs), null, 16, ["map", "area", "before-layer"]),
9185
9185
  T(C, I({