@idmwx/idmui-gl3 6.5.2 → 6.5.5

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
@@ -4,11 +4,11 @@ var se = (a, e, t) => (ut(a, typeof e != "symbol" ? e + "" : e, t), t);
4
4
  import { LayerHelper as $e, CompanyHelper as Ve } from "@idm-plugin/tag";
5
5
  import ie from "moment";
6
6
  import Ne from "axios";
7
- import { resolveComponent as R, openBlock as u, createElementBlock as g, createElementVNode as o, normalizeStyle as ce, createVNode as O, withCtx as Me, normalizeClass as te, Fragment as ee, renderList as ae, toDisplayString as k, createCommentVNode as q, createBlock as gt, createTextVNode as fe, withDirectives as Oe, createStaticVNode as yt, vShow as Fe, defineComponent as ft, withModifiers as Ze, mergeProps as K } from "vue";
8
- import * as Q from "@turf/turf";
7
+ import { resolveComponent as R, openBlock as u, createElementBlock as g, createElementVNode as o, normalizeStyle as de, createVNode as O, withCtx as Me, normalizeClass as te, Fragment as ee, renderList as ae, toDisplayString as k, createCommentVNode as q, createBlock as gt, createTextVNode as fe, withDirectives as Oe, createStaticVNode as yt, vShow as Fe, defineComponent as ft, withModifiers as Ze, mergeProps as K } from "vue";
8
+ import * as H from "@turf/turf";
9
9
  import At from "@mapbox/sphericalmercator";
10
10
  import Re from "mapbox-gl";
11
- import { TropicalHelper as ct, LngLatHelper as he, LaneHelper as We } from "@idm-plugin/geo";
11
+ import { TropicalHelper as ct, LngLatHelper as ce, LaneHelper as We } from "@idm-plugin/geo";
12
12
  import { TidesAssist as et, Meteo2Assist as Ke } from "@idm-plugin/meteo";
13
13
  import Xe from "moment-timezone";
14
14
  const Y = (a, e) => {
@@ -305,7 +305,7 @@ function aa(a, e, t, r, i, s) {
305
305
  return u(), g("div", vt, [
306
306
  o("div", {
307
307
  class: "menu-bar-box",
308
- style: ce({ top: t.top + 10 + "px", right: i.right + "px" })
308
+ style: de({ top: t.top + 10 + "px", right: i.right + "px" })
309
309
  }, [
310
310
  o("div", bt, [
311
311
  O(n, {
@@ -328,7 +328,7 @@ function aa(a, e, t, r, i, s) {
328
328
  ], 4),
329
329
  o("div", {
330
330
  class: "menu-bar-box",
331
- style: ce({ top: t.top + 160 + "px", right: i.right + "px" })
331
+ style: de({ top: t.top + 160 + "px", right: i.right + "px" })
332
332
  }, [
333
333
  o("div", Lt, [
334
334
  O(n, {
@@ -400,7 +400,7 @@ function aa(a, e, t, r, i, s) {
400
400
  s.hasCollectedLayers ? (u(), g("div", {
401
401
  key: 0,
402
402
  class: "active-layers",
403
- style: ce({ right: i.right + "px", bottom: "100px" })
403
+ style: de({ right: i.right + "px", bottom: "100px" })
404
404
  }, [
405
405
  o("div", Ct, [
406
406
  e[22] || (e[22] = o("div", { style: { margin: "2px 5px" } }, "Weather Layers", -1)),
@@ -448,7 +448,7 @@ function aa(a, e, t, r, i, s) {
448
448
  ], 4)) : q("", !0),
449
449
  o("div", {
450
450
  class: "available-layers flex-center",
451
- style: ce({ top: t.top + "px", right: t.layerToggle ? "0px" : "-240px" })
451
+ style: de({ top: t.top + "px", right: t.layerToggle ? "0px" : "-240px" })
452
452
  }, [
453
453
  o("div", {
454
454
  class: te(["list-box", t.layerToggle ? "right-bar" : ""])
@@ -562,11 +562,11 @@ function aa(a, e, t, r, i, s) {
562
562
  value: h.name
563
563
  }, {
564
564
  default: Me(() => {
565
- var L, x, E, A, I, _;
565
+ var L, E, B, y, I, x;
566
566
  return [
567
567
  fe(k(h.name) + " ", 1),
568
568
  p !== 0 ? (u(), g("span", $t, k(h.resolution) + "km " + k(h.length) + "days", 1)) : q("", !0),
569
- p === 0 ? (u(), g("div", ea, "Provides the best forecast")) : (E = (x = (L = h == null ? void 0 : h.update) == null ? void 0 : L.default) == null ? void 0 : x.meta) != null && E.initialisationTime ? (u(), g("div", ta, "Update: " + k(s.computeDateZ((_ = (I = (A = h == null ? void 0 : h.update) == null ? void 0 : A.default) == null ? void 0 : I.meta) == null ? void 0 : _.initialisationTime)), 1)) : q("", !0)
569
+ p === 0 ? (u(), g("div", ea, "Provides the best forecast")) : (B = (E = (L = h == null ? void 0 : h.update) == null ? void 0 : L.default) == null ? void 0 : E.meta) != null && B.initialisationTime ? (u(), g("div", ta, "Update: " + k(s.computeDateZ((x = (I = (y = h == null ? void 0 : h.update) == null ? void 0 : y.default) == null ? void 0 : I.meta) == null ? void 0 : x.initialisationTime)), 1)) : q("", !0)
570
570
  ];
571
571
  }),
572
572
  _: 2
@@ -622,7 +622,7 @@ const ra = {
622
622
  return {
623
623
  source: "wind-barb-source",
624
624
  barbs: [0, 2, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105],
625
- empty: Q.featureCollection([]),
625
+ empty: H.featureCollection([]),
626
626
  right: 10,
627
627
  bottom: 125,
628
628
  windBarbLoaded: !1
@@ -775,8 +775,8 @@ class tt {
775
775
  * @param [lb.x, lb.y, rt.x, rt.y]
776
776
  */
777
777
  getBoundPixel() {
778
- const e = this.map.getBounds(), t = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [s, n] = this.convertNLng(r[0]), [l, c] = this.convertNLng(i[0]), [d, h] = this.mercator.px([s, r[1]], t), [p, L] = this.mercator.px([l, i[1]], t), x = Math.round(this.mercator.size * Math.pow(2, t) * (n + c));
779
- return [p, L, d + x, h];
778
+ const e = this.map.getBounds(), t = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [s, n] = this.convertNLng(r[0]), [l, c] = this.convertNLng(i[0]), [d, h] = this.mercator.px([s, r[1]], t), [p, L] = this.mercator.px([l, i[1]], t), E = Math.round(this.mercator.size * Math.pow(2, t) * (n + c));
779
+ return [p, L, d + E, h];
780
780
  }
781
781
  /**
782
782
  * [视窗边界像素宽度]
@@ -957,10 +957,10 @@ class je {
957
957
  sRange: t.getUniformLocation(r, "u_range_s")
958
958
  };
959
959
  h.resolution && t.uniform2f(h.resolution, t.canvas.width * e.ratio, t.canvas.height * e.ratio), t.activeTexture(t.TEXTURE0), t.bindTexture(t.TEXTURE_2D, i), h.image && t.uniform1i(h.image, 0), t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, s), h.color && t.uniform1i(h.color, 1), l != null && l.uvRange && (l != null && l.sRange) && (h.uvRange && t.uniform2f(h.uvRange, l.uvRange[0], l.uvRange[1]), h.sRange && t.uniform2f(h.sRange, l.sRange[0], l.sRange[1])), h.scale && t.uniform1f(h.scale, (l == null ? void 0 : l.scale) || 1);
960
- const p = e.getBoundPixel(), L = e.map.getZoom() + 1, x = e.getWorldCopy(p, L);
961
- for (const E of x) {
962
- const A = (E[0] - p[0]) * e.ratio, I = (E[1] - p[3]) * e.ratio, _ = E[2] * e.ratio, [y, v, m, b] = [A, _ + A, I, _ + I], f = new Float32Array([y, m, v, m, y, b, y, b, v, m, v, b]);
963
- t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER, f, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
960
+ const p = e.getBoundPixel(), L = e.map.getZoom() + 1, E = e.getWorldCopy(p, L);
961
+ for (const B of E) {
962
+ const y = (B[0] - p[0]) * e.ratio, I = (B[1] - p[3]) * e.ratio, x = B[2] * e.ratio, [f, v, m, b] = [y, x + y, I, x + I], A = new Float32Array([f, m, v, m, f, b, f, b, v, m, v, b]);
963
+ t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER, A, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
964
964
  }
965
965
  } catch (h) {
966
966
  console.log(`render failed...${h}`);
@@ -3264,7 +3264,7 @@ function ca(a, e, t, r, i, s) {
3264
3264
  return (n = t.factor) != null && n.active ? (u(), g("div", ha, [
3265
3265
  o("div", {
3266
3266
  class: "legend-bars flex-center",
3267
- style: ce([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
3267
+ style: de([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
3268
3268
  }, e[0] || (e[0] = [
3269
3269
  o("span", null, "kts", -1),
3270
3270
  o("span", null, "0", -1),
@@ -3319,7 +3319,7 @@ const pa = {
3319
3319
  directionLayer: "current-direction-layer",
3320
3320
  speedLayer: "current-speed-layer",
3321
3321
  speedLabelLayer: "current-speed-label-layer",
3322
- empty: Q.featureCollection([]),
3322
+ empty: H.featureCollection([]),
3323
3323
  right: 10,
3324
3324
  bottom: 95
3325
3325
  };
@@ -3597,7 +3597,7 @@ function fa(a, e, t, r, i, s) {
3597
3597
  return (n = t.factor) != null && n.active ? (u(), g("div", ya, [
3598
3598
  o("div", {
3599
3599
  class: "legend-bars flex-center",
3600
- style: ce([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
3600
+ style: de([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
3601
3601
  }, e[0] || (e[0] = [
3602
3602
  o("span", null, "kts", -1),
3603
3603
  o("span", null, "0", -1),
@@ -3721,7 +3721,7 @@ function ba(a, e, t, r, i, s) {
3721
3721
  return (n = t.factor) != null && n.active ? (u(), g("div", va, [
3722
3722
  o("div", {
3723
3723
  class: "legend-bars flex-center",
3724
- style: ce([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
3724
+ style: de([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
3725
3725
  }, e[0] || (e[0] = [
3726
3726
  o("span", null, "m", -1),
3727
3727
  o("span", null, "0.5", -1),
@@ -3754,7 +3754,7 @@ const La = /* @__PURE__ */ Y(wa, [["render", ba], ["__scopeId", "data-v-52aea06f
3754
3754
  source: "sig-wave-height-source",
3755
3755
  heightLayer: "sig-wave-height-layer",
3756
3756
  heightLabelLayer: "sig-wave-height-label-layer",
3757
- empty: Q.featureCollection([])
3757
+ empty: H.featureCollection([])
3758
3758
  };
3759
3759
  },
3760
3760
  watch: {
@@ -3886,7 +3886,7 @@ const _a = /* @__PURE__ */ Y(Ca, [["render", xa]]), Ba = {
3886
3886
  directionLayer: "swell-direction-layer",
3887
3887
  heightLayer: "swell-height-layer",
3888
3888
  heightLabelLayer: "swell-height-label-layer",
3889
- empty: Q.featureCollection([])
3889
+ empty: H.featureCollection([])
3890
3890
  };
3891
3891
  },
3892
3892
  watch: {
@@ -4047,7 +4047,7 @@ const Ea = /* @__PURE__ */ Y(Ba, [["render", Ia]]), ka = {
4047
4047
  layer: "prmsl-layer",
4048
4048
  labelLayer: "prmsl-label-layer",
4049
4049
  pointLabelLayer: "prmsl-point-label-layer",
4050
- empty: Q.featureCollection([])
4050
+ empty: H.featureCollection([])
4051
4051
  };
4052
4052
  },
4053
4053
  watch: {
@@ -4268,7 +4268,7 @@ function Sa(a, e, t, r, i, s) {
4268
4268
  return (n = t.factor) != null && n.active ? (u(), g("div", Ma, [
4269
4269
  o("div", {
4270
4270
  class: "legend-bars flex-center",
4271
- style: ce([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4271
+ style: de([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4272
4272
  }, e[0] || (e[0] = [
4273
4273
  o("span", null, null, -1),
4274
4274
  o("span", { style: { display: "inline-block", position: "relative", left: "-10px" } }, "%", -1),
@@ -4384,7 +4384,7 @@ function Na(a, e, t, r, i, s) {
4384
4384
  return (n = t.factor) != null && n.active ? (u(), g("div", Ha, [
4385
4385
  o("div", {
4386
4386
  class: "legend-bars flex-center",
4387
- style: ce([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4387
+ style: de([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4388
4388
  }, e[0] || (e[0] = [
4389
4389
  o("span", null, "%", -1),
4390
4390
  o("span", null, "20", -1),
@@ -4502,7 +4502,7 @@ function ja(a, e, t, r, i, s) {
4502
4502
  return (n = t.factor) != null && n.active ? (u(), g("div", Ra, [
4503
4503
  o("div", {
4504
4504
  class: "legend-bars flex-center",
4505
- style: ce([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4505
+ style: de([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4506
4506
  }, e[0] || (e[0] = [
4507
4507
  o("span", null, "m", -1),
4508
4508
  o("span", null, "0", -1),
@@ -4832,11 +4832,11 @@ class ht {
4832
4832
  const i = e.toLowerCase().split(","), s = [], n = [];
4833
4833
  for (const l of i) {
4834
4834
  let c = Je.find((h) => {
4835
- var p, L, x;
4836
- return ((p = h.models) == null ? void 0 : p.includes(l)) || ((L = h.alias) == null ? void 0 : L.toLowerCase()) === l || ((x = h.name) == null ? void 0 : x.toLowerCase()) === l;
4835
+ var p, L, E;
4836
+ return ((p = h.models) == null ? void 0 : p.includes(l)) || ((L = h.alias) == null ? void 0 : L.toLowerCase()) === l || ((E = h.name) == null ? void 0 : E.toLowerCase()) === l;
4837
4837
  }), d = qe.find((h) => {
4838
- var p, L, x;
4839
- return ((p = h.models) == null ? void 0 : p.includes(l)) || ((L = h.alias) == null ? void 0 : L.toLowerCase()) === l || ((x = h.name) == null ? void 0 : x.toLowerCase()) === l;
4838
+ var p, L, E;
4839
+ return ((p = h.models) == null ? void 0 : p.includes(l)) || ((L = h.alias) == null ? void 0 : L.toLowerCase()) === l || ((E = h.name) == null ? void 0 : E.toLowerCase()) === l;
4840
4840
  });
4841
4841
  c = c || Je.find((h) => {
4842
4842
  var p, L;
@@ -4861,8 +4861,8 @@ class ht {
4861
4861
  }), i;
4862
4862
  }
4863
4863
  static pickHourly(e, t) {
4864
- var r, i, s, n, l, c, d, h, p, L, x, E, A, I, _, y, v, m, b, f, w, z, D, N, H, j, U, W, de, re, pe, ve, me, be, ue, ge, G, Z, ne, le, Ae, Le, xe, B, Ee, Ce, ke, Be, Pe, _e;
4865
- const J = typeof t == "string" ? ie(t) : t, V = e == null ? void 0 : e.weather, S = e == null ? void 0 : e.marine, De = ie((i = (r = V == null ? void 0 : V[0]) == null ? void 0 : r.hourly) == null ? void 0 : i.date).utc(), X = De.clone().add((l = (n = (s = V == null ? void 0 : V[0]) == null ? void 0 : s.hourly) == null ? void 0 : n.time) == null ? void 0 : l.at(0), "h"), $ = De.clone().add((h = (d = (c = V == null ? void 0 : V[0]) == null ? void 0 : c.hourly) == null ? void 0 : d.time) == null ? void 0 : h.at(-1), "h"), Te = [];
4864
+ var r, i, s, n, l, c, d, h, p, L, E, B, y, I, x, f, v, m, b, A, w, z, D, S, N, j, U, W, ne, re, pe, ve, me, be, ue, ge, G, Z, le, he, Ae, Le, xe, _, Ee, Ce, ke, Be, Pe, _e;
4865
+ const J = typeof t == "string" ? ie(t) : t, V = e == null ? void 0 : e.weather, T = e == null ? void 0 : e.marine, De = ie((i = (r = V == null ? void 0 : V[0]) == null ? void 0 : r.hourly) == null ? void 0 : i.date).utc(), X = De.clone().add((l = (n = (s = V == null ? void 0 : V[0]) == null ? void 0 : s.hourly) == null ? void 0 : n.time) == null ? void 0 : l.at(0), "h"), $ = De.clone().add((h = (d = (c = V == null ? void 0 : V[0]) == null ? void 0 : c.hourly) == null ? void 0 : d.time) == null ? void 0 : h.at(-1), "h"), Te = [];
4866
4866
  if (J.isBetween(X, $, "millisecond", "[]")) {
4867
4867
  const M = J.utc().diff(X, "h", !1);
4868
4868
  let we, Se;
@@ -4875,25 +4875,25 @@ class ht {
4875
4875
  for (let ze = M - (M - 1) % 6; ze <= M; ze++)
4876
4876
  He += (L = F == null ? void 0 : F.precipitation) == null ? void 0 : L.at(ze);
4877
4877
  we = {
4878
- temp: (x = F == null ? void 0 : F.temperature_2m) == null ? void 0 : x.at(M),
4879
- apparentTemp: (E = F == null ? void 0 : F.apparent_temperature) == null ? void 0 : E.at(M),
4880
- rh: (A = F == null ? void 0 : F.relative_humidity_2m) == null ? void 0 : A.at(M),
4878
+ temp: (E = F == null ? void 0 : F.temperature_2m) == null ? void 0 : E.at(M),
4879
+ apparentTemp: (B = F == null ? void 0 : F.apparent_temperature) == null ? void 0 : B.at(M),
4880
+ rh: (y = F == null ? void 0 : F.relative_humidity_2m) == null ? void 0 : y.at(M),
4881
4881
  dp: (I = F == null ? void 0 : F.dew_point_2m) == null ? void 0 : I.at(M),
4882
4882
  precip: {
4883
- probability: (_ = F == null ? void 0 : F.precipitation_probability) == null ? void 0 : _.at(M),
4884
- sum: (y = F == null ? void 0 : F.precipitation) == null ? void 0 : y.at(M),
4883
+ probability: (x = F == null ? void 0 : F.precipitation_probability) == null ? void 0 : x.at(M),
4884
+ sum: (f = F == null ? void 0 : F.precipitation) == null ? void 0 : f.at(M),
4885
4885
  sum3Hours: Math.round(Qe * 100) / 100,
4886
4886
  sum6Hours: Math.round(He * 100) / 100
4887
4887
  },
4888
4888
  pmsl: (v = F == null ? void 0 : F.pressure_msl) == null ? void 0 : v.at(M),
4889
4889
  psurf: (m = F == null ? void 0 : F.surface_pressure) == null ? void 0 : m.at(M),
4890
4890
  code: (b = F == null ? void 0 : F.weather_code) == null ? void 0 : b.at(M),
4891
- visibility: this.m2nm((f = F == null ? void 0 : F.visibility) == null ? void 0 : f.at(M)),
4891
+ visibility: this.m2nm((A = F == null ? void 0 : F.visibility) == null ? void 0 : A.at(M)),
4892
4892
  wind: {
4893
4893
  speed: (w = F == null ? void 0 : F.wind_speed_10m) == null ? void 0 : w.at(M),
4894
4894
  kts: (z = F == null ? void 0 : F.wind_speed_10m) == null ? void 0 : z.at(M),
4895
4895
  degree: (D = F == null ? void 0 : F.wind_direction_10m) == null ? void 0 : D.at(M),
4896
- bearing: ((N = F == null ? void 0 : F.wind_direction_10m) == null ? void 0 : N.at(M)) !== null ? (((H = F == null ? void 0 : F.wind_direction_10m) == null ? void 0 : H.at(M)) + 180) % 360 : null,
4896
+ bearing: ((S = F == null ? void 0 : F.wind_direction_10m) == null ? void 0 : S.at(M)) !== null ? (((N = F == null ? void 0 : F.wind_direction_10m) == null ? void 0 : N.at(M)) + 180) % 360 : null,
4897
4897
  gusts: (j = F == null ? void 0 : F.wind_gusts_10m) == null ? void 0 : j.at(M)
4898
4898
  },
4899
4899
  isDay: (U = F == null ? void 0 : F.is_day) == null ? void 0 : U.at(M)
@@ -4906,15 +4906,15 @@ class ht {
4906
4906
  });
4907
4907
  }
4908
4908
  }
4909
- if (S) {
4909
+ if (T) {
4910
4910
  let Qe = 0;
4911
- for (const He of S) {
4911
+ for (const He of T) {
4912
4912
  const P = He == null ? void 0 : He.hourly;
4913
4913
  Se = {
4914
4914
  wave: {
4915
4915
  sig: {
4916
4916
  height: (W = P == null ? void 0 : P.wave_height) == null ? void 0 : W.at(M),
4917
- degree: (de = P == null ? void 0 : P.wave_direction) == null ? void 0 : de.at(M),
4917
+ degree: (ne = P == null ? void 0 : P.wave_direction) == null ? void 0 : ne.at(M),
4918
4918
  bearing: ((re = P == null ? void 0 : P.wave_direction) == null ? void 0 : re.at(M)) !== null ? (((pe = P == null ? void 0 : P.wave_direction) == null ? void 0 : pe.at(M)) + 180) % 360 : null,
4919
4919
  period: (ve = P == null ? void 0 : P.wave_period) == null ? void 0 : ve.at(M)
4920
4920
  },
@@ -4926,11 +4926,11 @@ class ht {
4926
4926
  peakPeriod: (Z = P == null ? void 0 : P.swell_wave_peak_period) == null ? void 0 : Z.at(M)
4927
4927
  },
4928
4928
  wd: {
4929
- height: (ne = P == null ? void 0 : P.wind_wave_height) == null ? void 0 : ne.at(M),
4930
- degree: (le = P == null ? void 0 : P.wind_wave_direction) == null ? void 0 : le.at(M),
4929
+ height: (le = P == null ? void 0 : P.wind_wave_height) == null ? void 0 : le.at(M),
4930
+ degree: (he = P == null ? void 0 : P.wind_wave_direction) == null ? void 0 : he.at(M),
4931
4931
  bearing: ((Ae = P == null ? void 0 : P.wind_wave_direction) == null ? void 0 : Ae.at(M)) !== null ? (((Le = P == null ? void 0 : P.wind_wave_direction) == null ? void 0 : Le.at(M)) + 180) % 360 : null,
4932
4932
  period: (xe = P == null ? void 0 : P.wind_wave_period) == null ? void 0 : xe.at(M),
4933
- peakPeriod: (B = P == null ? void 0 : P.wind_wave_peak_period) == null ? void 0 : B.at(M)
4933
+ peakPeriod: (_ = P == null ? void 0 : P.wind_wave_peak_period) == null ? void 0 : _.at(M)
4934
4934
  }
4935
4935
  },
4936
4936
  current: {
@@ -4970,49 +4970,49 @@ class ht {
4970
4970
  };
4971
4971
  }
4972
4972
  static pickDaily(e, t) {
4973
- var r, i, s, n, l, c, d, h, p, L, x, E, A, I, _, y, v, m, b, f, w, z, D, N, H, j, U, W, de, re, pe, ve, me, be, ue, ge, G, Z, ne, le, Ae, Le, xe, B;
4973
+ var r, i, s, n, l, c, d, h, p, L, E, B, y, I, x, f, v, m, b, A, w, z, D, S, N, j, U, W, ne, re, pe, ve, me, be, ue, ge, G, Z, le, he, Ae, Le, xe, _;
4974
4974
  const Ee = typeof t == "string" ? ie(t) : t, Ce = e == null ? void 0 : e.weather, ke = e == null ? void 0 : e.marine, Be = ie((s = (i = (r = Ce == null ? void 0 : Ce[0]) == null ? void 0 : r.daily) == null ? void 0 : i.time) == null ? void 0 : s.at(0)), Pe = ie((c = (l = (n = Ce == null ? void 0 : Ce[0]) == null ? void 0 : n.daily) == null ? void 0 : l.time) == null ? void 0 : c.at(-1)), _e = [];
4975
4975
  if (Ee.isBetween(Be, Pe, "millisecond", "[]")) {
4976
4976
  let J, V;
4977
- const S = Ee.diff(Be, "d", !1);
4977
+ const T = Ee.diff(Be, "d", !1);
4978
4978
  if (Ce)
4979
4979
  for (const De of Ce) {
4980
4980
  const X = De.daily;
4981
4981
  J = {
4982
- code: (d = X.weather_code) == null ? void 0 : d.at(S),
4982
+ code: (d = X.weather_code) == null ? void 0 : d.at(T),
4983
4983
  temp: {
4984
- max: (h = X.temperature_2m_max) == null ? void 0 : h.at(S),
4985
- min: (p = X.temperature_2m_min) == null ? void 0 : p.at(S),
4986
- mean: (L = X.temperature_2m_mean) == null ? void 0 : L.at(S)
4984
+ max: (h = X.temperature_2m_max) == null ? void 0 : h.at(T),
4985
+ min: (p = X.temperature_2m_min) == null ? void 0 : p.at(T),
4986
+ mean: (L = X.temperature_2m_mean) == null ? void 0 : L.at(T)
4987
4987
  },
4988
4988
  apparentTemp: {
4989
- max: (x = X.apparent_temperature_max) == null ? void 0 : x.at(S),
4990
- min: (E = X.apparent_temperature_min) == null ? void 0 : E.at(S)
4989
+ max: (E = X.apparent_temperature_max) == null ? void 0 : E.at(T),
4990
+ min: (B = X.apparent_temperature_min) == null ? void 0 : B.at(T)
4991
4991
  },
4992
4992
  precip: {
4993
- sum: (A = X.precipitation_sum) == null ? void 0 : A.at(S),
4994
- rainSum: (I = X.rain_sum) == null ? void 0 : I.at(S),
4995
- snowfallSum: (_ = X.snowfall_sum) == null ? void 0 : _.at(S),
4996
- showersSum: (y = X.showers_sum) == null ? void 0 : y.at(S),
4997
- hours: (v = X.precipitation_hours) == null ? void 0 : v.at(S),
4998
- probability: (m = X.precipitation_probability_max) == null ? void 0 : m.at(S)
4993
+ sum: (y = X.precipitation_sum) == null ? void 0 : y.at(T),
4994
+ rainSum: (I = X.rain_sum) == null ? void 0 : I.at(T),
4995
+ snowfallSum: (x = X.snowfall_sum) == null ? void 0 : x.at(T),
4996
+ showersSum: (f = X.showers_sum) == null ? void 0 : f.at(T),
4997
+ hours: (v = X.precipitation_hours) == null ? void 0 : v.at(T),
4998
+ probability: (m = X.precipitation_probability_max) == null ? void 0 : m.at(T)
4999
4999
  },
5000
5000
  rh: {
5001
- max: (b = X.relative_humidity_2m_max) == null ? void 0 : b.at(S),
5002
- min: (f = X.relative_humidity_2m_min) == null ? void 0 : f.at(S),
5003
- mean: (w = X.relative_humidity_2m_mean) == null ? void 0 : w.at(S)
5001
+ max: (b = X.relative_humidity_2m_max) == null ? void 0 : b.at(T),
5002
+ min: (A = X.relative_humidity_2m_min) == null ? void 0 : A.at(T),
5003
+ mean: (w = X.relative_humidity_2m_mean) == null ? void 0 : w.at(T)
5004
5004
  },
5005
5005
  wind: {
5006
- speed: (z = X.wind_speed_10m_max) == null ? void 0 : z.at(S),
5007
- kts: (D = X.wind_speed_10m_max) == null ? void 0 : D.at(S),
5008
- degree: (N = X.wind_direction_10m_dominant) == null ? void 0 : N.at(S),
5009
- gusts: (H = X.wind_gusts_10m_max) == null ? void 0 : H.at(S),
5010
- bearing: ((j = X.wind_direction_10m_dominant) == null ? void 0 : j.at(S)) !== null ? (((U = X.wind_direction_10m_dominant) == null ? void 0 : U.at(S)) + 180) % 360 : null
5006
+ speed: (z = X.wind_speed_10m_max) == null ? void 0 : z.at(T),
5007
+ kts: (D = X.wind_speed_10m_max) == null ? void 0 : D.at(T),
5008
+ degree: (S = X.wind_direction_10m_dominant) == null ? void 0 : S.at(T),
5009
+ gusts: (N = X.wind_gusts_10m_max) == null ? void 0 : N.at(T),
5010
+ bearing: ((j = X.wind_direction_10m_dominant) == null ? void 0 : j.at(T)) !== null ? (((U = X.wind_direction_10m_dominant) == null ? void 0 : U.at(T)) + 180) % 360 : null
5011
5011
  }
5012
5012
  };
5013
5013
  const { name: $, url: Te, bg: M } = this.parseWeatherCode(J.code, !0);
5014
5014
  J.name = $, J.url = Te, J.bg = M, J.wind.scale = this.beaufort(this.kts2ms(J.wind.kts)), J.wind.direction = this.degree2Direction(J.wind.degree), _e.push({
5015
- utc: Be.add(S, "d").utc().format(),
5015
+ utc: Be.add(T, "d").utc().format(),
5016
5016
  model: De.model,
5017
5017
  weather: { ...J }
5018
5018
  });
@@ -5024,25 +5024,25 @@ class ht {
5024
5024
  V = {
5025
5025
  wave: {
5026
5026
  sig: {
5027
- height: (W = $.wave_height_max) == null ? void 0 : W.at(S),
5028
- degree: (de = $.wave_direction_dominant) == null ? void 0 : de.at(S),
5029
- period: (re = $.wave_period_max) == null ? void 0 : re.at(S),
5030
- bearing: ((pe = $.wave_direction_dominant) == null ? void 0 : pe.at(S)) !== null ? (((ve = $.wave_direction_dominant) == null ? void 0 : ve.at(S)) + 180) % 360 : null
5027
+ height: (W = $.wave_height_max) == null ? void 0 : W.at(T),
5028
+ degree: (ne = $.wave_direction_dominant) == null ? void 0 : ne.at(T),
5029
+ period: (re = $.wave_period_max) == null ? void 0 : re.at(T),
5030
+ bearing: ((pe = $.wave_direction_dominant) == null ? void 0 : pe.at(T)) !== null ? (((ve = $.wave_direction_dominant) == null ? void 0 : ve.at(T)) + 180) % 360 : null
5031
5031
  },
5032
5032
  swell: {
5033
- height: (me = $.swell_wave_height_max) == null ? void 0 : me.at(S),
5034
- degree: (be = $.swell_wave_direction_dominant) == null ? void 0 : be.at(S),
5035
- period: (ue = $.swell_wave_period_max) == null ? void 0 : ue.at(S),
5036
- peakPeriod: (ge = $.swell_wave_peak_period_max) == null ? void 0 : ge.at(S),
5033
+ height: (me = $.swell_wave_height_max) == null ? void 0 : me.at(T),
5034
+ degree: (be = $.swell_wave_direction_dominant) == null ? void 0 : be.at(T),
5035
+ period: (ue = $.swell_wave_period_max) == null ? void 0 : ue.at(T),
5036
+ peakPeriod: (ge = $.swell_wave_peak_period_max) == null ? void 0 : ge.at(T),
5037
5037
  // bearing: daily.swell_wave_direction_dominant?.at(day) !== null ? (daily.swell_wave_direction_dominant?.at(day) + 180) % 360 : null,
5038
- bearing: ((G = $.swell_wave_direction_dominant) == null ? void 0 : G.at(S)) !== null ? ((Z = $.swell_wave_direction_dominant) == null ? void 0 : Z.at(S)) % 360 : null
5038
+ bearing: ((G = $.swell_wave_direction_dominant) == null ? void 0 : G.at(T)) !== null ? ((Z = $.swell_wave_direction_dominant) == null ? void 0 : Z.at(T)) % 360 : null
5039
5039
  },
5040
5040
  wd: {
5041
- height: (ne = $.wind_wave_height_max) == null ? void 0 : ne.at(S),
5042
- degree: (le = $.wind_wave_direction_dominant) == null ? void 0 : le.at(S),
5043
- period: (Ae = $.wind_wave_period_max) == null ? void 0 : Ae.at(S),
5044
- peakPeriod: (Le = $.wind_wave_peak_period_max) == null ? void 0 : Le.at(S),
5045
- bearing: ((xe = $.wind_wave_direction_dominant) == null ? void 0 : xe.at(S)) !== null ? (((B = $.wind_wave_direction_dominant) == null ? void 0 : B.at(S)) + 180) % 360 : null
5041
+ height: (le = $.wind_wave_height_max) == null ? void 0 : le.at(T),
5042
+ degree: (he = $.wind_wave_direction_dominant) == null ? void 0 : he.at(T),
5043
+ period: (Ae = $.wind_wave_period_max) == null ? void 0 : Ae.at(T),
5044
+ peakPeriod: (Le = $.wind_wave_peak_period_max) == null ? void 0 : Le.at(T),
5045
+ bearing: ((xe = $.wind_wave_direction_dominant) == null ? void 0 : xe.at(T)) !== null ? (((_ = $.wind_wave_direction_dominant) == null ? void 0 : _.at(T)) + 180) % 360 : null
5046
5046
  }
5047
5047
  }
5048
5048
  }, V.wave = this.parseWave(V.wave, J == null ? void 0 : J.wind), Object.assign(_e[De], V), De++;
@@ -5495,9 +5495,9 @@ const Ga = {
5495
5495
  showTropicals: !1,
5496
5496
  activeTropicals: void 0,
5497
5497
  activeTropicalsMarker: void 0,
5498
- empty: Q.featureCollection([]),
5498
+ empty: H.featureCollection([]),
5499
5499
  circleSource: "circle-source",
5500
- circleSourceData: Q.featureCollection([]),
5500
+ circleSourceData: H.featureCollection([]),
5501
5501
  circleLayer: "tropical-circle-layer",
5502
5502
  labelMarkers: []
5503
5503
  };
@@ -5598,9 +5598,9 @@ const Ga = {
5598
5598
  }, 500);
5599
5599
  else {
5600
5600
  if (this.tropicals) {
5601
- const E = (/* @__PURE__ */ new Date()).valueOf();
5602
- let A = 0, I = 0;
5603
- if ((a = this.map) != null && a.getSource(this.source) ? ((t = this.map) == null || t.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), I = (/* @__PURE__ */ new Date()).valueOf() - (E + A), console.log("[tropicals] update elapsed: ", I, ", total: ", A += I)) : (this.map.addSource(this.source, {
5601
+ const B = (/* @__PURE__ */ new Date()).valueOf();
5602
+ let y = 0, I = 0;
5603
+ if ((a = this.map) != null && a.getSource(this.source) ? ((t = this.map) == null || t.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), I = (/* @__PURE__ */ new Date()).valueOf() - (B + y), console.log("[tropicals] update elapsed: ", I, ", total: ", y += I)) : (this.map.addSource(this.source, {
5604
5604
  type: "geojson",
5605
5605
  data: (r = this.tropicals) != null && r.active ? (i = this.tropicals) == null ? void 0 : i.data : this.empty
5606
5606
  }), this.map.addLayer({
@@ -5697,8 +5697,8 @@ const Ga = {
5697
5697
  ],
5698
5698
  "text-halo-width": 4
5699
5699
  }
5700
- }), I = (/* @__PURE__ */ new Date()).valueOf() - (E + A), console.log("[tropical] add elapsed: ", I, ", total: ", A += I)), (s = this.map) != null && s.getSource(this.clusterSource))
5701
- (l = this.map) == null || l.getSource(this.clusterSource).setData((n = this.tropicals) != null && n.active ? this.tropicals.data : this.empty), I = (/* @__PURE__ */ new Date()).valueOf() - (E + A), console.log("[tropical] update elapsed: ", I, ", total: ", A += I);
5700
+ }), I = (/* @__PURE__ */ new Date()).valueOf() - (B + y), console.log("[tropical] add elapsed: ", I, ", total: ", y += I)), (s = this.map) != null && s.getSource(this.clusterSource))
5701
+ (l = this.map) == null || l.getSource(this.clusterSource).setData((n = this.tropicals) != null && n.active ? this.tropicals.data : this.empty), I = (/* @__PURE__ */ new Date()).valueOf() - (B + y), console.log("[tropical] update elapsed: ", I, ", total: ", y += I);
5702
5702
  else {
5703
5703
  if (this.map.addSource(this.clusterSource, {
5704
5704
  type: "geojson",
@@ -5741,28 +5741,29 @@ const Ga = {
5741
5741
  ]
5742
5742
  }
5743
5743
  }), this.fromTropicalReport) {
5744
- const _ = (h = this.tropicals.data.features) == null ? void 0 : h.filter((b) => b.geometry.type === "Point" && b.properties.type === "forecast");
5745
- let y = 0, v = 0, m = (L = (p = this.findClosestToNumber(_, "hour", 12)) == null ? void 0 : p.properties) == null ? void 0 : L.hour;
5746
- _.forEach((b, f) => {
5747
- var D, N, H, j, U, W, de, re, pe, ve, me, be, ue, ge, G, Z, ne, le, Ae, Le, xe, B, Ee, Ce, ke, Be, Pe;
5744
+ const x = (h = this.tropicals.data.features) == null ? void 0 : h.filter((b) => b.geometry.type === "Point" && b.properties.type === "forecast");
5745
+ let f = 0, v = 0, m = (L = (p = this.findClosestToNumber(x, "hour", 12)) == null ? void 0 : p.properties) == null ? void 0 : L.hour;
5746
+ x.forEach((b, A) => {
5747
+ var D, S, N, j, U, W, ne, re, pe, ve, me, be, ue, ge, G, Z, le, he, Ae, Le, xe, _, Ee, Ce, ke, Be, Pe;
5748
5748
  let w;
5749
- const z = this.findClosestToNumber(_, "hour", m + y * 24);
5750
- if (z && ((D = z == null ? void 0 : z.properties) == null ? void 0 : D.hour) === ((N = b.properties) == null ? void 0 : N.hour) && (w = z), w) {
5749
+ const z = this.findClosestToNumber(x, "hour", m + f * 24);
5750
+ if (z && ((D = z == null ? void 0 : z.properties) == null ? void 0 : D.hour) === ((S = b.properties) == null ? void 0 : S.hour) && (w = z), w) {
5751
5751
  let _e = 0, J = "tropical-marker-box", V = "tropical-marker-line";
5752
- J = ((U = (j = (H = w.properties) == null ? void 0 : H.wind) == null ? void 0 : j.en) == null ? void 0 : U.toUpperCase()) === "SUPER TY" ? J + " supper" : J + " normal", V = ((re = (de = (W = w.properties) == null ? void 0 : W.wind) == null ? void 0 : de.en) == null ? void 0 : re.toUpperCase()) === "SUPER TY" ? V + " supper" : V + " normal", ((ve = (pe = w.properties) == null ? void 0 : pe.movement) == null ? void 0 : ve.deg) >= 0 && ((be = (me = w.properties) == null ? void 0 : me.movement) == null ? void 0 : be.deg) <= 60 || ((ge = (ue = w.properties) == null ? void 0 : ue.movement) == null ? void 0 : ge.deg) >= 120 && ((Z = (G = w.properties) == null ? void 0 : G.movement) == null ? void 0 : Z.deg) <= 240 || ((le = (ne = w.properties) == null ? void 0 : ne.movement) == null ? void 0 : le.deg) >= 300 && ((Le = (Ae = w.properties) == null ? void 0 : Ae.movement) == null ? void 0 : Le.deg) <= 360 ? (_e = y % 2 === 0 ? [84, 0] : [-84, 0], J = y % 2 === 0 ? J + " right" : J + " left", V = y % 2 === 0 ? V + " vertical right" : V + " vertical left") : (_e = v % 2 === 0 ? [60, -40] : [60, 40], J = v % 2 === 0 ? J + " top" : J + " bottom", V = v % 2 === 0 ? V + " align top" : V + " align bottom", v = v + 1);
5753
- const S = document.createElement("div");
5754
- S.className = J, S.innerHTML = `
5752
+ J = ((U = (j = (N = w.properties) == null ? void 0 : N.wind) == null ? void 0 : j.en) == null ? void 0 : U.toUpperCase()) === "SUPER TY" ? J + " supper" : J + " normal", V = ((re = (ne = (W = w.properties) == null ? void 0 : W.wind) == null ? void 0 : ne.en) == null ? void 0 : re.toUpperCase()) === "SUPER TY" ? V + " supper" : V + " normal", ((ve = (pe = w.properties) == null ? void 0 : pe.movement) == null ? void 0 : ve.deg) >= 0 && ((be = (me = w.properties) == null ? void 0 : me.movement) == null ? void 0 : be.deg) <= 60 || ((ge = (ue = w.properties) == null ? void 0 : ue.movement) == null ? void 0 : ge.deg) >= 120 && ((Z = (G = w.properties) == null ? void 0 : G.movement) == null ? void 0 : Z.deg) <= 240 || ((he = (le = w.properties) == null ? void 0 : le.movement) == null ? void 0 : he.deg) >= 300 && ((Le = (Ae = w.properties) == null ? void 0 : Ae.movement) == null ? void 0 : Le.deg) <= 360 ? (_e = f % 2 === 0 ? [84, 0] : [-84, 0], J = f % 2 === 0 ? J + " right" : J + " left", V = f % 2 === 0 ? V + " vertical right" : V + " vertical left") : (_e = v % 2 === 0 ? [60, -40] : [60, 40], J = v % 2 === 0 ? J + " top" : J + " bottom", V = v % 2 === 0 ? V + " align top" : V + " align bottom", v = v + 1);
5753
+ const T = document.createElement("div");
5754
+ T.className = J, T.innerHTML = `
5755
5755
  <div style="">
5756
5756
  <span>${((xe = b.properties) == null ? void 0 : xe.format) || "-"}</span>
5757
- <span> [${((Ce = (Ee = (B = b.properties) == null ? void 0 : B.wind) == null ? void 0 : Ee.en) == null ? void 0 : Ce.toUpperCase()) || "-"}]</span>
5757
+ <span> [${((Ce = (Ee = (_ = b.properties) == null ? void 0 : _.wind) == null ? void 0 : Ee.en) == null ? void 0 : Ce.toUpperCase()) || "-"}]</span>
5758
5758
  </div>
5759
5759
  <div>
5760
5760
  <span>BF${((Be = (ke = b.properties) == null ? void 0 : ke.wind) == null ? void 0 : Be.bf) || "-"}</span> /
5761
5761
  <span>${((Pe = b.properties) == null ? void 0 : Pe.pressure) || "-"} hPa</span>
5762
5762
  </div>
5763
5763
  <div class="${V}"></div>
5764
- `, this.labelMarkers.push(new Re.Marker(S).setLngLat(b.geometry.coordinates).setOffset(_e).addTo(this.map)), y = y + 1;
5764
+ `, this.labelMarkers.push(new Re.Marker(T).setLngLat(b.geometry.coordinates).setOffset(_e).addTo(this.map));
5765
5765
  }
5766
+ f = f + 1;
5766
5767
  });
5767
5768
  } else
5768
5769
  this.map.addLayer({
@@ -5843,22 +5844,22 @@ const Ga = {
5843
5844
  "text-halo-color": "#0033ff",
5844
5845
  "text-halo-width": 4
5845
5846
  }
5846
- }), I = (/* @__PURE__ */ new Date()).valueOf() - (E + A), console.log("[tropical] add elapsed: ", I, ", total: ", A += I);
5847
+ }), I = (/* @__PURE__ */ new Date()).valueOf() - (B + y), console.log("[tropical] add elapsed: ", I, ", total: ", y += I);
5847
5848
  }
5848
5849
  }
5849
5850
  this.handleDrawCircle();
5850
- const x = ct.interpolate(this.tropicals, 1);
5851
- this.interpolateData = JSON.parse(JSON.stringify(x)), this.handleDateChange();
5851
+ const E = ct.interpolate(this.tropicals, 1);
5852
+ this.interpolateData = JSON.parse(JSON.stringify(E)), this.handleDateChange();
5852
5853
  }
5853
5854
  },
5854
5855
  findClosestToNumber(a, e, t) {
5855
5856
  var s, n;
5856
5857
  if (!a.length)
5857
5858
  return null;
5858
- let r = a[0], i = Math.abs(((s = r == null ? void 0 : r.properties) == null ? void 0 : s[e]) - t);
5859
+ let r = a == null ? void 0 : a[0], i = Math.abs(((s = r == null ? void 0 : r.properties) == null ? void 0 : s[e]) - t);
5859
5860
  for (let l = 1; l < a.length; l++) {
5860
5861
  const c = a[l], d = Math.abs(Number((n = c == null ? void 0 : c.properties) == null ? void 0 : n.hour) - t);
5861
- d < i && (i = d, r = c);
5862
+ d <= i && (i = d, r = c);
5862
5863
  }
5863
5864
  return r;
5864
5865
  },
@@ -5867,9 +5868,9 @@ const Ga = {
5867
5868
  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), (a = this.interpolateMarkers) == null || a.forEach((e) => e == null ? void 0 : e.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), this.labelMarkers.forEach((e) => e == null ? void 0 : e.remove()), this.labelMarkers = []);
5868
5869
  },
5869
5870
  handleDateChange() {
5870
- var a, e, t, r, i, s, n, l, c, d, h, p, L, x, E, A, I, _, y, v, m, b, f, w, z, D, N, H, j, U, W, de;
5871
+ var a, e, t, r, i, s, n, l, c, d, h, p, L, E, B, y, I, x, f, v, m, b, A, w, z, D, S, N, j, U, W, ne;
5871
5872
  if ((a = this.interpolateMarkers) == null || a.forEach((re) => re == null ? void 0 : re.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
5872
- const re = ie(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), pe = ie.utc().add(1, "hour").set({ minute: 0, second: 0, millisecond: 0 }), ve = re.isBefore(pe) && pe.diff(re, "h") < 2 ? pe.format() : re.format(), me = this.interpolateData.filter((G) => G.properties.date === ve && !G.properties.disabled), be = this.handleComputePolygons(me), ue = Q.featureCollection([...me]);
5873
+ const re = ie(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), pe = ie.utc().add(1, "hour").set({ minute: 0, second: 0, millisecond: 0 }), ve = re.isBefore(pe) && pe.diff(re, "h") < 2 ? pe.format() : re.format(), me = this.interpolateData.filter((G) => G.properties.date === ve && !G.properties.disabled), be = this.handleComputePolygons(me), ue = H.featureCollection([...me]);
5873
5874
  be.forEach((G) => {
5874
5875
  ue.features.push(G);
5875
5876
  }), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(ue) : ((i = this.map) == null || i.addSource(this.interpolateSource, {
@@ -5889,12 +5890,12 @@ const Ga = {
5889
5890
  const ge = [];
5890
5891
  for (const G of me)
5891
5892
  if (ge.some((Z) => {
5892
- var ne;
5893
- return Z.properties.name === ((ne = G.properties) == null ? void 0 : ne.name);
5893
+ var le;
5894
+ return Z.properties.name === ((le = G.properties) == null ? void 0 : le.name);
5894
5895
  }) || ge.push(G), !G.properties.disabled) {
5895
5896
  let Z = "#f44336";
5896
- ((l = (n = G.properties) == null ? void 0 : n.wind) == null ? void 0 : l.kts) < 32 || !((d = (c = G.properties) == null ? void 0 : c.wind) != null && d.kts) ? Z = "#03f869" : ((p = (h = G.properties) == null ? void 0 : h.wind) == null ? void 0 : p.kts) >= 32 && ((x = (L = G.properties) == null ? void 0 : L.wind) == null ? void 0 : x.kts) < 47 ? Z = "#f2f202" : ((A = (E = G.properties) == null ? void 0 : E.wind) == null ? void 0 : A.kts) >= 47 && ((_ = (I = G.properties) == null ? void 0 : I.wind) == null ? void 0 : _.kts) < 63 ? Z = "#ff9100" : ((v = (y = G.properties) == null ? void 0 : y.wind) == null ? void 0 : v.kts) >= 63 && ((b = (m = G.properties) == null ? void 0 : m.wind) == null ? void 0 : b.kts) < 79 ? Z = "#f44336" : ((w = (f = G.properties) == null ? void 0 : f.wind) == null ? void 0 : w.kts) >= 79 && ((D = (z = G.properties) == null ? void 0 : z.wind) == null ? void 0 : D.kts) < 94 ? Z = "#f903d0" : ((H = (N = G.properties) == null ? void 0 : N.wind) == null ? void 0 : H.kts) >= 94 ? Z = "#8702f9" : Z = "#f44336";
5897
- const ne = `<svg t="1719918955501"
5897
+ ((l = (n = G.properties) == null ? void 0 : n.wind) == null ? void 0 : l.kts) < 32 || !((d = (c = G.properties) == null ? void 0 : c.wind) != null && d.kts) ? Z = "#03f869" : ((p = (h = G.properties) == null ? void 0 : h.wind) == null ? void 0 : p.kts) >= 32 && ((E = (L = G.properties) == null ? void 0 : L.wind) == null ? void 0 : E.kts) < 47 ? Z = "#f2f202" : ((y = (B = G.properties) == null ? void 0 : B.wind) == null ? void 0 : y.kts) >= 47 && ((x = (I = G.properties) == null ? void 0 : I.wind) == null ? void 0 : x.kts) < 63 ? Z = "#ff9100" : ((v = (f = G.properties) == null ? void 0 : f.wind) == null ? void 0 : v.kts) >= 63 && ((b = (m = G.properties) == null ? void 0 : m.wind) == null ? void 0 : b.kts) < 79 ? Z = "#f44336" : ((w = (A = G.properties) == null ? void 0 : A.wind) == null ? void 0 : w.kts) >= 79 && ((D = (z = G.properties) == null ? void 0 : z.wind) == null ? void 0 : D.kts) < 94 ? Z = "#f903d0" : ((N = (S = G.properties) == null ? void 0 : S.wind) == null ? void 0 : N.kts) >= 94 ? Z = "#8702f9" : Z = "#f44336";
5898
+ const le = `<svg t="1719918955501"
5898
5899
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
5899
5900
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
5900
5901
  <path
@@ -5908,33 +5909,33 @@ const Ga = {
5908
5909
  <path
5909
5910
  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"
5910
5911
  fill="#ffffff" p-id="18386"></path>
5911
- </svg>`, le = document.createElement("div");
5912
- le.className = "hurricane-hourly-marker", le.innerHTML = `<div class="${G.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${ne}</div>`;
5913
- const Ae = new Re.Marker(le).setLngLat(G.geometry.coordinates).addTo(this.map);
5912
+ </svg>`, he = document.createElement("div");
5913
+ he.className = "hurricane-hourly-marker", he.innerHTML = `<div class="${G.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${le}</div>`;
5914
+ const Ae = new Re.Marker(he).setLngLat(G.geometry.coordinates).addTo(this.map);
5914
5915
  this.interpolateMarkers.push(Ae), (U = (j = this.map) == null ? void 0 : j.getSource(this.circleSource)) == null || U.setData(this.circleSourceData);
5915
5916
  }
5916
5917
  this.$emit("tropicalCenterPoints", ge);
5917
5918
  } else
5918
- (W = this.map) != null && W.getSource(this.interpolateSource) && ((de = this.map) == null || de.getSource(this.interpolateSource).setData(this.empty));
5919
+ (W = this.map) != null && W.getSource(this.interpolateSource) && ((ne = this.map) == null || ne.getSource(this.interpolateSource).setData(this.empty));
5919
5920
  },
5920
5921
  handleClick(a) {
5921
- var s, n, l, c, d, h, p, L;
5922
- const e = a.features[0], t = (n = (s = this.tropicals) == null ? void 0 : s.data) == null ? void 0 : n.features.filter(
5923
- (x) => {
5924
- var E;
5925
- return x.geometry.type === "LineString" && x.properties.type === "forecast" && x.properties.name === ((E = e == null ? void 0 : e.properties) == null ? void 0 : E.name);
5922
+ var s, n, l, c, d, h, p, L, E;
5923
+ const e = (s = a.features) == null ? void 0 : s[0], t = (l = (n = this.tropicals) == null ? void 0 : n.data) == null ? void 0 : l.features.filter(
5924
+ (B) => {
5925
+ var y;
5926
+ return B.geometry.type === "LineString" && B.properties.type === "forecast" && B.properties.name === ((y = e == null ? void 0 : e.properties) == null ? void 0 : y.name);
5926
5927
  }
5927
- ), r = (c = (l = this.tropicals) == null ? void 0 : l.data) == null ? void 0 : c.features.filter(
5928
- (x) => {
5929
- var E;
5930
- return x.geometry.type === "LineString" && x.properties.type === "history" && x.properties.name === ((E = e == null ? void 0 : e.properties) == null ? void 0 : E.name);
5928
+ ), r = (d = (c = this.tropicals) == null ? void 0 : c.data) == null ? void 0 : d.features.filter(
5929
+ (B) => {
5930
+ var y;
5931
+ return B.geometry.type === "LineString" && B.properties.type === "history" && B.properties.name === ((y = e == null ? void 0 : e.properties) == null ? void 0 : y.name);
5931
5932
  }
5932
5933
  );
5933
5934
  this.activeTropicals = {
5934
- name: (d = e == null ? void 0 : e.properties) == null ? void 0 : d.name,
5935
- forecasts: t.map((x) => x.properties),
5936
- history: (h = r[0]) == null ? void 0 : h.properties,
5937
- showCircle: (L = (p = t[0]) == null ? void 0 : p.properties) == null ? void 0 : L.showCircle
5935
+ name: (h = e == null ? void 0 : e.properties) == null ? void 0 : h.name,
5936
+ forecasts: t.map((B) => B.properties),
5937
+ history: (p = r == null ? void 0 : r[0]) == null ? void 0 : p.properties,
5938
+ showCircle: (E = (L = t == null ? void 0 : t[0]) == null ? void 0 : L.properties) == null ? void 0 : E.showCircle
5938
5939
  }, this.showTropicals = !0;
5939
5940
  const i = document.getElementById("idm-tropical-gl3");
5940
5941
  this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.activeTropicalsMarker = new Re.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
@@ -5947,7 +5948,7 @@ const Ga = {
5947
5948
  d.properties.category === e && (d.properties.disabled = a.disabled);
5948
5949
  }), this.interpolateData.forEach((d) => {
5949
5950
  d.properties.category === e && (d.properties.disabled = a.disabled);
5950
- }), (n = (s = this.map) == null ? void 0 : s.getSource(this.source)) == null || n.setData(Q.featureCollection(t)), (c = (l = this.map) == null ? void 0 : l.getSource(this.clusterSource)) == null || c.setData(Q.featureCollection(t)), this.handleDateChange();
5951
+ }), (n = (s = this.map) == null ? void 0 : s.getSource(this.source)) == null || n.setData(H.featureCollection(t)), (c = (l = this.map) == null ? void 0 : l.getSource(this.clusterSource)) == null || c.setData(H.featureCollection(t)), this.handleDateChange();
5951
5952
  },
5952
5953
  handleStrikeProbability(a) {
5953
5954
  this.$emit("tropicalProbability", a);
@@ -6007,22 +6008,22 @@ const Ga = {
6007
6008
  let c;
6008
6009
  switch (n) {
6009
6010
  case "ne":
6010
- c = Q.lineArc(a, l, 0, 90, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
6011
+ c = H.lineArc(a, l, 0, 90, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
6011
6012
  break;
6012
6013
  case "se":
6013
- c = Q.lineArc(a, l, 90, 180, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
6014
+ c = H.lineArc(a, l, 90, 180, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
6014
6015
  break;
6015
6016
  case "sw":
6016
- c = Q.lineArc(a, l, 180, 270, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
6017
+ c = H.lineArc(a, l, 180, 270, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
6017
6018
  break;
6018
6019
  case "nw":
6019
- c = Q.lineArc(a, l, 270, 360, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
6020
+ c = H.lineArc(a, l, 270, 360, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
6020
6021
  break;
6021
6022
  }
6022
6023
  r.push(...(s = c == null ? void 0 : c.geometry) == null ? void 0 : s.coordinates);
6023
6024
  }
6024
- const i = Q.lineString(r);
6025
- return Q.lineToPolygon(i, { properties: t });
6025
+ const i = H.lineString(r);
6026
+ return H.lineToPolygon(i, { properties: t });
6026
6027
  }
6027
6028
  }
6028
6029
  }, Ua = {
@@ -6048,60 +6049,60 @@ const Ga = {
6048
6049
  style: { "justify-content": "flex-start" }
6049
6050
  }, oi = { class: "forecast-models" }, ni = ["onClick"], li = { class: "more" };
6050
6051
  function hi(a, e, t, r, i, s) {
6051
- var n, l, c, d, h, p, L, x, E, A, I, _, y, v, m, b, f, w, z;
6052
+ var n, l, c, d, h, p, L, E, B, y, I, x, f, v, m, b, A, w, z, D;
6052
6053
  return Oe((u(), g("div", Ua, [
6053
6054
  o("div", Ya, [
6054
6055
  o("div", {
6055
6056
  class: "iconfont close-btn",
6056
- onClick: e[0] || (e[0] = (D) => i.showTropicals = !1)
6057
+ onClick: e[0] || (e[0] = (S) => i.showTropicals = !1)
6057
6058
  }, ""),
6058
6059
  o("div", Ka, [
6059
6060
  (l = (n = i.activeTropicals) == null ? void 0 : n.history) != null && l.level ? (u(), g("span", Xa, k((d = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : d.level) + " , ", 1)) : q("", !0),
6060
6061
  fe(k((h = i.activeTropicals) == null ? void 0 : h.name), 1)
6061
6062
  ]),
6062
- o("div", Ja, " Last update: " + k(s.computeTime(((L = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : L.updated) || ((A = (E = (x = i.activeTropicals) == null ? void 0 : x.forecasts) == null ? void 0 : E.filter((D) => !D.disabled)[0]) == null ? void 0 : A.date))), 1)
6063
+ o("div", Ja, " Last update: " + k(s.computeTime(((L = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : L.updated) || ((I = (y = (B = (E = i.activeTropicals) == null ? void 0 : E.forecasts) == null ? void 0 : B.filter((S) => !S.disabled)) == null ? void 0 : y[0]) == null ? void 0 : I.date))), 1)
6063
6064
  ]),
6064
6065
  o("div", qa, [
6065
6066
  o("div", Va, [
6066
6067
  o("div", Za, [
6067
6068
  o("div", $a, [
6068
6069
  e[3] || (e[3] = o("label", null, "Wind speed : ", -1)),
6069
- o("span", null, k(((_ = (I = i.activeTropicals) == null ? void 0 : I.history) == null ? void 0 : _.kts) || "-") + " [kts]", 1),
6070
- o("span", null, ", BF " + k(s.computeBF(((v = (y = i.activeTropicals) == null ? void 0 : y.history) == null ? void 0 : v.kts) || 0)), 1)
6070
+ o("span", null, k(((f = (x = i.activeTropicals) == null ? void 0 : x.history) == null ? void 0 : f.kts) || "-") + " [kts]", 1),
6071
+ o("span", null, ", BF " + k(s.computeBF(((m = (v = i.activeTropicals) == null ? void 0 : v.history) == null ? void 0 : m.kts) || 0)), 1)
6071
6072
  ]),
6072
6073
  o("div", ei, [
6073
6074
  e[4] || (e[4] = o("label", null, "Pressure : ", -1)),
6074
- o("span", null, k(((b = (m = i.activeTropicals) == null ? void 0 : m.history) == null ? void 0 : b.pressure) || "-") + " [hPa]", 1)
6075
+ o("span", null, k(((A = (b = i.activeTropicals) == null ? void 0 : b.history) == null ? void 0 : A.pressure) || "-") + " [hPa]", 1)
6075
6076
  ])
6076
6077
  ]),
6077
6078
  o("div", ti, [
6078
6079
  o("div", ai, [
6079
6080
  e[5] || (e[5] = o("label", null, "Move Speed: ", -1)),
6080
- o("span", null, k((f = s.computeMovement(i.activeTropicals)) == null ? void 0 : f.kts) + " [kts]", 1)
6081
+ o("span", null, k((w = s.computeMovement(i.activeTropicals)) == null ? void 0 : w.kts) + " [kts]", 1)
6081
6082
  ]),
6082
6083
  o("div", ii, [
6083
6084
  e[6] || (e[6] = o("label", null, "Move Dir: ", -1)),
6084
- o("span", null, k((w = s.computeMovement(i.activeTropicals)) == null ? void 0 : w.deg) + " [°]", 1)
6085
+ o("span", null, k((z = s.computeMovement(i.activeTropicals)) == null ? void 0 : z.deg) + " [°]", 1)
6085
6086
  ])
6086
6087
  ]),
6087
6088
  o("div", ri, [
6088
6089
  o("div", si, [
6089
6090
  e[7] || (e[7] = o("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
6090
6091
  o("div", oi, [
6091
- (u(!0), g(ee, null, ae((z = i.activeTropicals) == null ? void 0 : z.forecasts, (D, N) => {
6092
- var H, j, U, W;
6092
+ (u(!0), g(ee, null, ae((D = i.activeTropicals) == null ? void 0 : D.forecasts, (S, N) => {
6093
+ var j, U, W, ne;
6093
6094
  return u(), g("div", {
6094
6095
  key: N,
6095
6096
  class: te([
6096
6097
  "model",
6097
- D.disabled ? "" : "active",
6098
- N > 0 && N < ((j = (H = i.activeTropicals) == null ? void 0 : H.forecasts) == null ? void 0 : j.length) - 1 && ((W = (U = i.activeTropicals) == null ? void 0 : U.forecasts) == null ? void 0 : W.length) > 2 ? "center-child" : ""
6098
+ S.disabled ? "" : "active",
6099
+ N > 0 && N < ((U = (j = i.activeTropicals) == null ? void 0 : j.forecasts) == null ? void 0 : U.length) - 1 && ((ne = (W = i.activeTropicals) == null ? void 0 : W.forecasts) == null ? void 0 : ne.length) > 2 ? "center-child" : ""
6099
6100
  ]),
6100
- onClick: (de) => s.handleForecastToggle(D)
6101
+ onClick: (re) => s.handleForecastToggle(S)
6101
6102
  }, [
6102
6103
  o("span", {
6103
- class: te(D.model)
6104
- }, k(D.model), 3)
6104
+ class: te(S.model)
6105
+ }, k(S.model), 3)
6105
6106
  ], 10, ni);
6106
6107
  }), 128))
6107
6108
  ])
@@ -6114,11 +6115,11 @@ function hi(a, e, t, r, i, s) {
6114
6115
  key: 0,
6115
6116
  class: "button",
6116
6117
  style: { "margin-right": "10px" },
6117
- onClick: e[1] || (e[1] = (D) => s.handleNotification(i.activeTropicals))
6118
+ onClick: e[1] || (e[1] = (S) => s.handleNotification(i.activeTropicals))
6118
6119
  }, "Notify")) : q("", !0),
6119
6120
  o("div", {
6120
6121
  class: "button",
6121
- onClick: e[2] || (e[2] = (D) => s.handleStrikeProbability(i.activeTropicals))
6122
+ onClick: e[2] || (e[2] = (S) => s.handleStrikeProbability(i.activeTropicals))
6122
6123
  }, "Strike Probability >>")
6123
6124
  ])
6124
6125
  ])
@@ -6234,7 +6235,7 @@ function pi(a, e, t, r, i, s) {
6234
6235
  return (n = t.factor) != null && n.active ? (u(), g("div", di, [
6235
6236
  o("div", {
6236
6237
  class: "legend-bars flex-center",
6237
- style: ce([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
6238
+ style: de([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
6238
6239
  }, e[0] || (e[0] = [
6239
6240
  o("span", null, "mm", -1),
6240
6241
  o("span", null, "1.5", -1),
@@ -6348,7 +6349,7 @@ function yi(a, e, t, r, i, s) {
6348
6349
  return (n = t.factor) != null && n.active ? (u(), g("div", gi, [
6349
6350
  o("div", {
6350
6351
  class: "legend-bars flex-center",
6351
- style: ce([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
6352
+ style: de([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
6352
6353
  }, e[0] || (e[0] = [
6353
6354
  o("span", null, "nm", -1),
6354
6355
  o("span", null, "0", -1),
@@ -6468,7 +6469,7 @@ function vi(a, e, t, r, i, s) {
6468
6469
  return (n = t.factor) != null && n.active ? (u(), g("div", wi, [
6469
6470
  o("div", {
6470
6471
  class: "legend-bars flex-center",
6471
- style: ce([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
6472
+ style: de([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
6472
6473
  }, e[0] || (e[0] = [
6473
6474
  o("span", null, "°C", -1),
6474
6475
  o("span", null, "0", -1),
@@ -6591,7 +6592,7 @@ function xi(a, e, t, r, i, s) {
6591
6592
  return (n = t.factor) != null && n.active ? (u(), g("div", Ci, [
6592
6593
  o("div", {
6593
6594
  class: "legend-bars flex-center",
6594
- style: ce([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
6595
+ style: de([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
6595
6596
  }, e[0] || (e[0] = [
6596
6597
  o("span", null, "°C", -1),
6597
6598
  o("span", null, "-20", -1),
@@ -6767,17 +6768,17 @@ const ki = {
6767
6768
  },
6768
6769
  computeLat() {
6769
6770
  return function(a, e = 4) {
6770
- return he.lat2pretty(a, e).pretty;
6771
+ return ce.lat2pretty(a, e).pretty;
6771
6772
  };
6772
6773
  },
6773
6774
  computeLng() {
6774
6775
  return function(a, e = 4) {
6775
- return he.lng2pretty(a, e).pretty;
6776
+ return ce.lng2pretty(a, e).pretty;
6776
6777
  };
6777
6778
  },
6778
6779
  roundPrecision() {
6779
6780
  return function(a, e = 4) {
6780
- return isNaN(a) || a === null || a === void 0 ? "-" : he.roundPrecision(a, e);
6781
+ return isNaN(a) || a === null || a === void 0 ? "-" : ce.roundPrecision(a, e);
6781
6782
  };
6782
6783
  }
6783
6784
  },
@@ -6820,7 +6821,7 @@ const ki = {
6820
6821
  initTableData(a) {
6821
6822
  var e, t, r, i, s, n, l, c, d;
6822
6823
  this.clearTable(), this.positionGmt = (t = (e = a == null ? void 0 : a.weather) == null ? void 0 : e[0]) == null ? void 0 : t.timezone, this.positionOffset = (i = (r = a == null ? void 0 : a.weather) == null ? void 0 : r[0]) == null ? void 0 : i.offset, this.localDate = (n = (s = Xe(this.ts)) == null ? void 0 : s.tz(this.positionGmt)) == null ? void 0 : n.format("MMM-DD/HHmm[LT]"), this.currentHourData = (l = Ke.pickHourly(a, ie(this.ts))) == null ? void 0 : l[0], ((d = (c = this.currentHourData) == null ? void 0 : c.weather) == null ? void 0 : d.isDay) === 0 ? this.isDay = !1 : this.isDay = !0, this.$nextTick(() => {
6823
- var p, L, x, E, A, I, _, y, v, m, b, f, w, z, D, N, H, j, U, W, de, re, pe, ve, me, be, ue, ge, G, Z, ne, le, Ae;
6824
+ var p, L, E, B, y, I, x, f, v, m, b, A, w, z, D, S, N, j, U, W, ne, re, pe, ve, me, be, ue, ge, G, Z, le, he, Ae;
6824
6825
  if (!document.getElementById("meteoMainBox"))
6825
6826
  return !1;
6826
6827
  if (!this.currentHourData)
@@ -6828,8 +6829,8 @@ const ki = {
6828
6829
  for (let Le = 0; Le < 8; Le++) {
6829
6830
  const xe = Xe(this.ts).tz(this.positionGmt).add(3 * Le, "h").format();
6830
6831
  this.tableData.hours.push(xe);
6831
- const B = ((p = Ke.pickHourly(a, xe)) == null ? void 0 : p[0]) || {};
6832
- this.tableData.temp.push(this.roundPrecision((L = B == null ? void 0 : B.weather) == null ? void 0 : L.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((E = (x = B == null ? void 0 : B.weather) == null ? void 0 : x.precip) == null ? void 0 : E.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((I = (A = B == null ? void 0 : B.weather) == null ? void 0 : A.precip) == null ? void 0 : I.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((_ = B == null ? void 0 : B.weather) == null ? void 0 : _.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((v = (y = B == null ? void 0 : B.weather) == null ? void 0 : y.wind) == null ? void 0 : v.kts, 1) ?? "-"), this.tableData.windDir.push((b = (m = B == null ? void 0 : B.weather) == null ? void 0 : m.wind) == null ? void 0 : b.bearing), this.tableData.windGust.push(this.roundPrecision((w = (f = B == null ? void 0 : B.weather) == null ? void 0 : f.wind) == null ? void 0 : w.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((D = (z = B == null ? void 0 : B.wave) == null ? void 0 : z.sig) == null ? void 0 : D.height, 1) ?? "-"), this.tableData.sigwaveDir.push((H = (N = B == null ? void 0 : B.wave) == null ? void 0 : N.sig) == null ? void 0 : H.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((U = (j = B == null ? void 0 : B.wave) == null ? void 0 : j.wd) == null ? void 0 : U.height, 1) ?? "-"), this.tableData.windwaveDir.push((de = (W = B == null ? void 0 : B.wave) == null ? void 0 : W.wd) == null ? void 0 : de.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((pe = (re = B == null ? void 0 : B.wave) == null ? void 0 : re.wd) == null ? void 0 : pe.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((me = (ve = B == null ? void 0 : B.wave) == null ? void 0 : ve.swell) == null ? void 0 : me.height, 1) ?? "-"), this.tableData.swellDir.push((ue = (be = B == null ? void 0 : B.wave) == null ? void 0 : be.swell) == null ? void 0 : ue.bearing), this.tableData.swellPeriod.push(this.roundPrecision((G = (ge = B == null ? void 0 : B.wave) == null ? void 0 : ge.swell) == null ? void 0 : G.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((Z = B == null ? void 0 : B.current) == null ? void 0 : Z.speed, 1) ?? "-"), this.tableData.currentDir.push((ne = B == null ? void 0 : B.current) == null ? void 0 : ne.bearing), this.tableData.seaLevel.push(this.roundPrecision(B == null ? void 0 : B.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(B == null ? void 0 : B.sst, 0) ?? "-"), this.tableData.weatherUrls.push((le = B == null ? void 0 : B.weather) == null ? void 0 : le.url), this.tableData.weatherNames.push(((Ae = B == null ? void 0 : B.weather) == null ? void 0 : Ae.name) ?? "-");
6832
+ const _ = ((p = Ke.pickHourly(a, xe)) == null ? void 0 : p[0]) || {};
6833
+ this.tableData.temp.push(this.roundPrecision((L = _ == null ? void 0 : _.weather) == null ? void 0 : L.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((B = (E = _ == null ? void 0 : _.weather) == null ? void 0 : E.precip) == null ? void 0 : B.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((I = (y = _ == null ? void 0 : _.weather) == null ? void 0 : y.precip) == null ? void 0 : I.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((x = _ == null ? void 0 : _.weather) == null ? void 0 : x.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((v = (f = _ == null ? void 0 : _.weather) == null ? void 0 : f.wind) == null ? void 0 : v.kts, 1) ?? "-"), this.tableData.windDir.push((b = (m = _ == null ? void 0 : _.weather) == null ? void 0 : m.wind) == null ? void 0 : b.bearing), this.tableData.windGust.push(this.roundPrecision((w = (A = _ == null ? void 0 : _.weather) == null ? void 0 : A.wind) == null ? void 0 : w.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((D = (z = _ == null ? void 0 : _.wave) == null ? void 0 : z.sig) == null ? void 0 : D.height, 1) ?? "-"), this.tableData.sigwaveDir.push((N = (S = _ == null ? void 0 : _.wave) == null ? void 0 : S.sig) == null ? void 0 : N.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((U = (j = _ == null ? void 0 : _.wave) == null ? void 0 : j.wd) == null ? void 0 : U.height, 1) ?? "-"), this.tableData.windwaveDir.push((ne = (W = _ == null ? void 0 : _.wave) == null ? void 0 : W.wd) == null ? void 0 : ne.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((pe = (re = _ == null ? void 0 : _.wave) == null ? void 0 : re.wd) == null ? void 0 : pe.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((me = (ve = _ == null ? void 0 : _.wave) == null ? void 0 : ve.swell) == null ? void 0 : me.height, 1) ?? "-"), this.tableData.swellDir.push((ue = (be = _ == null ? void 0 : _.wave) == null ? void 0 : be.swell) == null ? void 0 : ue.bearing), this.tableData.swellPeriod.push(this.roundPrecision((G = (ge = _ == null ? void 0 : _.wave) == null ? void 0 : ge.swell) == null ? void 0 : G.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((Z = _ == null ? void 0 : _.current) == null ? void 0 : Z.speed, 1) ?? "-"), this.tableData.currentDir.push((le = _ == null ? void 0 : _.current) == null ? void 0 : le.bearing), this.tableData.seaLevel.push(this.roundPrecision(_ == null ? void 0 : _.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(_ == null ? void 0 : _.sst, 0) ?? "-"), this.tableData.weatherUrls.push((he = _ == null ? void 0 : _.weather) == null ? void 0 : he.url), this.tableData.weatherNames.push(((Ae = _ == null ? void 0 : _.weather) == null ? void 0 : Ae.name) ?? "-");
6833
6834
  }
6834
6835
  });
6835
6836
  },
@@ -6955,7 +6956,7 @@ const ki = {
6955
6956
  class: "main-box flex-center"
6956
6957
  };
6957
6958
  function Fr(a, e, t, r, i, s) {
6958
- var d, h, p, L, x, E, A, I, _, y, v, m, b, f, w, z, D, N, H, j, U, W, de, re, pe, ve, me, be, ue, ge, G, Z, ne, le, Ae, Le, xe, B, Ee, Ce, ke, Be, Pe, _e, J, V, S, De, X, $, Te, M, we, Se, Qe, He, P, F, Ge, Ue, Ye, ze, ye, at, it, rt, st, ot;
6959
+ var d, h, p, L, E, B, y, I, x, f, v, m, b, A, w, z, D, S, N, j, U, W, ne, re, pe, ve, me, be, ue, ge, G, Z, le, he, Ae, Le, xe, _, Ee, Ce, ke, Be, Pe, _e, J, V, T, De, X, $, Te, M, we, Se, Qe, He, P, F, Ge, Ue, Ye, ze, ye, at, it, rt, st, ot;
6959
6960
  const n = R("LocationFilled"), l = R("ElIcon"), c = R("ElTooltip");
6960
6961
  return Oe((u(), g("div", Di, [
6961
6962
  o("div", Pi, [
@@ -7004,9 +7005,9 @@ function Fr(a, e, t, r, i, s) {
7004
7005
  "show-after": 1e3
7005
7006
  }, {
7006
7007
  default: Me(() => {
7007
- var C, T, nt, lt;
7008
+ var C, Q, nt, lt;
7008
7009
  return [
7009
- (T = (C = i.currentHourData) == null ? void 0 : C.weather) != null && T.url ? (u(), g("img", {
7010
+ (Q = (C = i.currentHourData) == null ? void 0 : C.weather) != null && Q.url ? (u(), g("img", {
7010
7011
  key: 0,
7011
7012
  class: "iconfont icon",
7012
7013
  style: { "margin-right": "5px" },
@@ -7018,22 +7019,22 @@ function Fr(a, e, t, r, i, s) {
7018
7019
  }, 8, ["content"]),
7019
7020
  o("div", Fi, [
7020
7021
  o("div", null, [
7021
- fe(k(s.roundPrecision((E = (x = i.currentHourData) == null ? void 0 : x.weather) == null ? void 0 : E.temp, 0)), 1),
7022
+ fe(k(s.roundPrecision((B = (E = i.currentHourData) == null ? void 0 : E.weather) == null ? void 0 : B.temp, 0)), 1),
7022
7023
  e[9] || (e[9] = o("span", { style: { "font-size": "14px" } }, "°C", -1))
7023
7024
  ])
7024
7025
  ]),
7025
7026
  o("div", Ri, [
7026
7027
  o("div", ji, [
7027
7028
  e[10] || (e[10] = o("label", null, "Precip : ", -1)),
7028
- o("span", null, k(s.roundPrecision((_ = (I = (A = i.currentHourData) == null ? void 0 : A.weather) == null ? void 0 : I.precip) == null ? void 0 : _.sum, 0)) + " mm", 1)
7029
+ o("span", null, k(s.roundPrecision((x = (I = (y = i.currentHourData) == null ? void 0 : y.weather) == null ? void 0 : I.precip) == null ? void 0 : x.sum, 0)) + " mm", 1)
7029
7030
  ]),
7030
7031
  o("div", Wi, [
7031
7032
  e[11] || (e[11] = o("label", null, "Visibility : ", -1)),
7032
- o("span", null, k(s.roundPrecision((v = (y = i.currentHourData) == null ? void 0 : y.weather) == null ? void 0 : v.visibility, 0)) + " nm", 1)
7033
+ o("span", null, k(s.roundPrecision((v = (f = i.currentHourData) == null ? void 0 : f.weather) == null ? void 0 : v.visibility, 0)) + " nm", 1)
7033
7034
  ]),
7034
7035
  o("div", Gi, [
7035
7036
  e[12] || (e[12] = o("label", null, "Wind : ", -1)),
7036
- o("span", null, k(s.roundPrecision((f = (b = (m = i.currentHourData) == null ? void 0 : m.weather) == null ? void 0 : b.wind) == null ? void 0 : f.kts, 1)) + " kts", 1)
7037
+ o("span", null, k(s.roundPrecision((A = (b = (m = i.currentHourData) == null ? void 0 : m.weather) == null ? void 0 : b.wind) == null ? void 0 : A.kts, 1)) + " kts", 1)
7037
7038
  ])
7038
7039
  ])
7039
7040
  ]),
@@ -7098,15 +7099,15 @@ function Fr(a, e, t, r, i, s) {
7098
7099
  colspan: "1",
7099
7100
  class: "tr-title"
7100
7101
  }, null, -1)),
7101
- (u(!0), g(ee, null, ae(i.tableData.weatherUrls, (C, T) => (u(), g("th", {
7102
+ (u(!0), g(ee, null, ae(i.tableData.weatherUrls, (C, Q) => (u(), g("th", {
7102
7103
  rowspan: "1",
7103
7104
  colspan: "1",
7104
- key: `weatherUrls${T}${C}`
7105
+ key: `weatherUrls${Q}${C}`
7105
7106
  }, [
7106
7107
  O(c, {
7107
7108
  placement: "top",
7108
7109
  effect: "light",
7109
- content: i.tableData.weatherNames[T],
7110
+ content: i.tableData.weatherNames[Q],
7110
7111
  "show-after": 500
7111
7112
  }, {
7112
7113
  default: Me(() => [
@@ -7130,10 +7131,10 @@ function Fr(a, e, t, r, i, s) {
7130
7131
  fe("Temp"),
7131
7132
  o("span", { class: "unit" }, "°C")
7132
7133
  ], -1)),
7133
- (u(!0), g(ee, null, ae(i.tableData.temp, (C, T) => (u(), g("td", {
7134
+ (u(!0), g(ee, null, ae(i.tableData.temp, (C, Q) => (u(), g("td", {
7134
7135
  rowspan: "1",
7135
7136
  colspan: "1",
7136
- key: `weatherUrls${T}${C}`
7137
+ key: `weatherUrls${Q}${C}`
7137
7138
  }, k(C), 1))), 128))
7138
7139
  ]),
7139
7140
  o("tr", ar, [
@@ -7145,10 +7146,10 @@ function Fr(a, e, t, r, i, s) {
7145
7146
  fe("Precip"),
7146
7147
  o("span", { class: "unit" }, "mm")
7147
7148
  ], -1)),
7148
- (u(!0), g(ee, null, ae(i.tableData.precip1h, (C, T) => (u(), g("td", {
7149
+ (u(!0), g(ee, null, ae(i.tableData.precip1h, (C, Q) => (u(), g("td", {
7149
7150
  rowspan: "1",
7150
7151
  colspan: "1",
7151
- key: `precip1h${T}${C}`
7152
+ key: `precip1h${Q}${C}`
7152
7153
  }, k(C), 1))), 128))
7153
7154
  ]),
7154
7155
  o("tr", ir, [
@@ -7160,10 +7161,10 @@ function Fr(a, e, t, r, i, s) {
7160
7161
  fe("Visibility"),
7161
7162
  o("span", { class: "unit" }, "nm")
7162
7163
  ], -1)),
7163
- (u(!0), g(ee, null, ae(i.tableData.visibility, (C, T) => (u(), g("td", {
7164
+ (u(!0), g(ee, null, ae(i.tableData.visibility, (C, Q) => (u(), g("td", {
7164
7165
  rowspan: "1",
7165
7166
  colspan: "1",
7166
- key: `visibility${T}${C}`
7167
+ key: `visibility${Q}${C}`
7167
7168
  }, k(C), 1))), 128))
7168
7169
  ]),
7169
7170
  o("tr", rr, [
@@ -7175,10 +7176,10 @@ function Fr(a, e, t, r, i, s) {
7175
7176
  fe("Wind gust"),
7176
7177
  o("span", { class: "unit" }, "kts")
7177
7178
  ], -1)),
7178
- (u(!0), g(ee, null, ae(i.tableData.windGust, (C, T) => (u(), g("td", {
7179
+ (u(!0), g(ee, null, ae(i.tableData.windGust, (C, Q) => (u(), g("td", {
7179
7180
  rowspan: "1",
7180
7181
  colspan: "1",
7181
- key: `windGust${T}${C}`
7182
+ key: `windGust${Q}${C}`
7182
7183
  }, [
7183
7184
  o("span", null, k(C), 1)
7184
7185
  ]))), 128))
@@ -7196,10 +7197,10 @@ function Fr(a, e, t, r, i, s) {
7196
7197
  fe("Hours"),
7197
7198
  o("span", { class: "unit" }, "(LT)")
7198
7199
  ], -1)),
7199
- (u(!0), g(ee, null, ae(i.tableData.hours, (C, T) => (u(), g("th", {
7200
+ (u(!0), g(ee, null, ae(i.tableData.hours, (C, Q) => (u(), g("th", {
7200
7201
  rowspan: "1",
7201
7202
  colspan: "1",
7202
- key: `currenthoursL${T}${C}`
7203
+ key: `currenthoursL${Q}${C}`
7203
7204
  }, k(s.computeHourL(C)), 1))), 128))
7204
7205
  ]),
7205
7206
  o("tr", nr, [
@@ -7211,10 +7212,10 @@ function Fr(a, e, t, r, i, s) {
7211
7212
  fe("UTC"),
7212
7213
  o("span", { class: "unit" })
7213
7214
  ], -1)),
7214
- (u(!0), g(ee, null, ae(i.tableData.hours, (C, T) => (u(), g("th", {
7215
+ (u(!0), g(ee, null, ae(i.tableData.hours, (C, Q) => (u(), g("th", {
7215
7216
  rowspan: "1",
7216
7217
  colspan: "1",
7217
- key: `currenthoursZ${T}${C}`
7218
+ key: `currenthoursZ${Q}${C}`
7218
7219
  }, k(s.computeHourZ(C)), 1))), 128))
7219
7220
  ]),
7220
7221
  o("tr", lr, [
@@ -7226,15 +7227,15 @@ function Fr(a, e, t, r, i, s) {
7226
7227
  fe("Wind"),
7227
7228
  o("span", { class: "unit" }, "kts")
7228
7229
  ], -1)),
7229
- (u(!0), g(ee, null, ae(i.tableData.windSpeed, (C, T) => (u(), g("td", {
7230
+ (u(!0), g(ee, null, ae(i.tableData.windSpeed, (C, Q) => (u(), g("td", {
7230
7231
  rowspan: "1",
7231
7232
  colspan: "1",
7232
- key: `windSpeed${T}${C}`
7233
+ key: `windSpeed${Q}${C}`
7233
7234
  }, [
7234
- isNaN(i.tableData.windDir[T]) ? q("", !0) : (u(), g("span", {
7235
+ isNaN(i.tableData.windDir[Q]) ? q("", !0) : (u(), g("span", {
7235
7236
  key: 0,
7236
7237
  class: "iconfont icon wind",
7237
- style: ce({ display: "inline-block", transform: `rotate(${i.tableData.windDir[T]}deg)` })
7238
+ style: de({ display: "inline-block", transform: `rotate(${i.tableData.windDir[Q]}deg)` })
7238
7239
  }, "", 4)),
7239
7240
  o("span", null, k(C), 1)
7240
7241
  ]))), 128))
@@ -7248,15 +7249,15 @@ function Fr(a, e, t, r, i, s) {
7248
7249
  fe("Sig Wave"),
7249
7250
  o("span", { class: "unit" }, "m")
7250
7251
  ], -1)),
7251
- (u(!0), g(ee, null, ae(i.tableData.sigwaveHeight, (C, T) => (u(), g("td", {
7252
+ (u(!0), g(ee, null, ae(i.tableData.sigwaveHeight, (C, Q) => (u(), g("td", {
7252
7253
  rowspan: "1",
7253
7254
  colspan: "1",
7254
- key: `sigwaveHeight${T}${C}`
7255
+ key: `sigwaveHeight${Q}${C}`
7255
7256
  }, [
7256
- isNaN(i.tableData.sigwaveDir[T]) ? q("", !0) : (u(), g("span", {
7257
+ isNaN(i.tableData.sigwaveDir[Q]) ? q("", !0) : (u(), g("span", {
7257
7258
  key: 0,
7258
7259
  class: "iconfont icon sigwave",
7259
- style: ce({ display: "inline-block", transform: `rotate(${i.tableData.sigwaveDir[T]}deg)` })
7260
+ style: de({ display: "inline-block", transform: `rotate(${i.tableData.sigwaveDir[Q]}deg)` })
7260
7261
  }, "", 4)),
7261
7262
  o("span", null, k(C), 1)
7262
7263
  ]))), 128))
@@ -7270,15 +7271,15 @@ function Fr(a, e, t, r, i, s) {
7270
7271
  fe("Wind Wave"),
7271
7272
  o("span", { class: "unit" }, "m")
7272
7273
  ], -1)),
7273
- (u(!0), g(ee, null, ae(i.tableData.windwaveHeight, (C, T) => (u(), g("td", {
7274
+ (u(!0), g(ee, null, ae(i.tableData.windwaveHeight, (C, Q) => (u(), g("td", {
7274
7275
  rowspan: "1",
7275
7276
  colspan: "1",
7276
- key: `windwaveHeight${T}${C}`
7277
+ key: `windwaveHeight${Q}${C}`
7277
7278
  }, [
7278
- isNaN(i.tableData.sigwaveDir[T]) ? q("", !0) : (u(), g("span", {
7279
+ isNaN(i.tableData.sigwaveDir[Q]) ? q("", !0) : (u(), g("span", {
7279
7280
  key: 0,
7280
7281
  class: "iconfont icon windwave",
7281
- style: ce({ display: "inline-block", transform: `rotate(${i.tableData.windwaveDir[T]}deg)` })
7282
+ style: de({ display: "inline-block", transform: `rotate(${i.tableData.windwaveDir[Q]}deg)` })
7282
7283
  }, "", 4)),
7283
7284
  o("span", null, k(C), 1)
7284
7285
  ]))), 128))
@@ -7292,15 +7293,15 @@ function Fr(a, e, t, r, i, s) {
7292
7293
  fe("Swell"),
7293
7294
  o("span", { class: "unit" }, "m")
7294
7295
  ], -1)),
7295
- (u(!0), g(ee, null, ae(i.tableData.swellHeight, (C, T) => (u(), g("td", {
7296
+ (u(!0), g(ee, null, ae(i.tableData.swellHeight, (C, Q) => (u(), g("td", {
7296
7297
  rowspan: "1",
7297
7298
  colspan: "1",
7298
- key: `swellHeight${T}${C}`
7299
+ key: `swellHeight${Q}${C}`
7299
7300
  }, [
7300
- isNaN(i.tableData.swellDir[T]) ? q("", !0) : (u(), g("span", {
7301
+ isNaN(i.tableData.swellDir[Q]) ? q("", !0) : (u(), g("span", {
7301
7302
  key: 0,
7302
7303
  class: "iconfont icon swell",
7303
- style: ce({ display: "inline-block", transform: `rotate(${i.tableData.swellDir[T]}deg)` })
7304
+ style: de({ display: "inline-block", transform: `rotate(${i.tableData.swellDir[Q]}deg)` })
7304
7305
  }, "", 4)),
7305
7306
  o("span", null, k(C), 1)
7306
7307
  ]))), 128))
@@ -7314,16 +7315,16 @@ function Fr(a, e, t, r, i, s) {
7314
7315
  fe("Current"),
7315
7316
  o("span", { class: "unit" }, "kts")
7316
7317
  ], -1)),
7317
- (u(!0), g(ee, null, ae(i.tableData.currentSpeed, (C, T) => (u(), g("td", {
7318
+ (u(!0), g(ee, null, ae(i.tableData.currentSpeed, (C, Q) => (u(), g("td", {
7318
7319
  rowspan: "1",
7319
7320
  colspan: "1",
7320
- key: `currentSpeed${T}${C}`
7321
+ key: `currentSpeed${Q}${C}`
7321
7322
  }, [
7322
- isNaN(i.tableData.currentDir[T]) ? q("", !0) : (u(), g("span", {
7323
+ isNaN(i.tableData.currentDir[Q]) ? q("", !0) : (u(), g("span", {
7323
7324
  key: 0,
7324
7325
  class: "iconfont icon current",
7325
7326
  id: "meteoGrayIcon",
7326
- style: ce({ display: "inline-block", transform: `rotate(${i.tableData.currentDir[T]}deg)` })
7327
+ style: de({ display: "inline-block", transform: `rotate(${i.tableData.currentDir[Q]}deg)` })
7327
7328
  }, "", 4)),
7328
7329
  o("span", null, k(C), 1)
7329
7330
  ]))), 128))
@@ -7341,10 +7342,10 @@ function Fr(a, e, t, r, i, s) {
7341
7342
  fe("Hours"),
7342
7343
  o("span", { class: "unit" }, "(LT)")
7343
7344
  ], -1)),
7344
- (u(!0), g(ee, null, ae(i.tableData.hours, (C, T) => (u(), g("th", {
7345
+ (u(!0), g(ee, null, ae(i.tableData.hours, (C, Q) => (u(), g("th", {
7345
7346
  rowspan: "1",
7346
7347
  colspan: "1",
7347
- key: `seahoursL${T}${C}`
7348
+ key: `seahoursL${Q}${C}`
7348
7349
  }, k(s.computeHourL(C)), 1))), 128))
7349
7350
  ]),
7350
7351
  o("tr", gr, [
@@ -7356,10 +7357,10 @@ function Fr(a, e, t, r, i, s) {
7356
7357
  fe("UTC"),
7357
7358
  o("span", { class: "unit" })
7358
7359
  ], -1)),
7359
- (u(!0), g(ee, null, ae(i.tableData.hours, (C, T) => (u(), g("th", {
7360
+ (u(!0), g(ee, null, ae(i.tableData.hours, (C, Q) => (u(), g("th", {
7360
7361
  rowspan: "1",
7361
7362
  colspan: "1",
7362
- key: `seahoursZ${T}${C}`
7363
+ key: `seahoursZ${Q}${C}`
7363
7364
  }, k(s.computeHourZ(C)), 1))), 128))
7364
7365
  ]),
7365
7366
  o("tr", yr, [
@@ -7371,10 +7372,10 @@ function Fr(a, e, t, r, i, s) {
7371
7372
  fe("SeaLevel"),
7372
7373
  o("span", { class: "unit" }, "m")
7373
7374
  ], -1)),
7374
- (u(!0), g(ee, null, ae(i.tableData.seaLevel, (C, T) => (u(), g("td", {
7375
+ (u(!0), g(ee, null, ae(i.tableData.seaLevel, (C, Q) => (u(), g("td", {
7375
7376
  rowspan: "1",
7376
7377
  colspan: "1",
7377
- key: `SeaLevel${T}${C}`
7378
+ key: `SeaLevel${Q}${C}`
7378
7379
  }, k(C), 1))), 128))
7379
7380
  ]),
7380
7381
  o("tr", fr, [
@@ -7386,10 +7387,10 @@ function Fr(a, e, t, r, i, s) {
7386
7387
  fe("SeaTemp"),
7387
7388
  o("span", { class: "unit" }, "°C")
7388
7389
  ], -1)),
7389
- (u(!0), g(ee, null, ae(i.tableData.seaTemp, (C, T) => (u(), g("td", {
7390
+ (u(!0), g(ee, null, ae(i.tableData.seaTemp, (C, Q) => (u(), g("td", {
7390
7391
  rowspan: "1",
7391
7392
  colspan: "1",
7392
- key: `SeaTemp${T}${C}`
7393
+ key: `SeaTemp${Q}${C}`
7393
7394
  }, k(C), 1))), 128))
7394
7395
  ])
7395
7396
  ], 512), [
@@ -7400,24 +7401,24 @@ function Fr(a, e, t, r, i, s) {
7400
7401
  ]))) : q("", !0),
7401
7402
  Oe(o("table", wr, [
7402
7403
  o("tr", vr, [
7403
- (u(!0), g(ee, null, ae(i.tideTableData, (C, T) => (u(), g("th", {
7404
+ (u(!0), g(ee, null, ae(i.tideTableData, (C, Q) => (u(), g("th", {
7404
7405
  rowspan: "1",
7405
7406
  colspan: "1",
7406
- key: `Tide-tr-${T}${C}`
7407
+ key: `Tide-tr-${Q}${C}`
7407
7408
  }, k(C.type) + " Tide", 1))), 128))
7408
7409
  ]),
7409
7410
  o("tr", br, [
7410
- (u(!0), g(ee, null, ae(i.tideTableData, (C, T) => (u(), g("td", {
7411
+ (u(!0), g(ee, null, ae(i.tideTableData, (C, Q) => (u(), g("td", {
7411
7412
  rowspan: "1",
7412
7413
  colspan: "1",
7413
- key: `Tide-date-${T}${C}`
7414
+ key: `Tide-date-${Q}${C}`
7414
7415
  }, k(s.computeHourHmmLT(C == null ? void 0 : C.date)), 1))), 128))
7415
7416
  ]),
7416
7417
  o("tr", Lr, [
7417
- (u(!0), g(ee, null, ae(i.tideTableData, (C, T) => (u(), g("td", {
7418
+ (u(!0), g(ee, null, ae(i.tideTableData, (C, Q) => (u(), g("td", {
7418
7419
  rowspan: "1",
7419
7420
  colspan: "1",
7420
- key: `Tide-height-${T}${C}`
7421
+ key: `Tide-height-${Q}${C}`
7421
7422
  }, k(s.roundPrecision(C == null ? void 0 : C.height, 2)) + " m", 1))), 128))
7422
7423
  ]),
7423
7424
  e[32] || (e[32] = o("tr", { class: "tr-tide flex-center info" }, [
@@ -7435,21 +7436,21 @@ function Fr(a, e, t, r, i, s) {
7435
7436
  o("div", xr, [
7436
7437
  o("div", _r, [
7437
7438
  e[33] || (e[33] = o("div", null, "Wind", -1)),
7438
- o("div", null, k((H = (N = (D = i.currentHourData) == null ? void 0 : D.weather) == null ? void 0 : N.wind) == null ? void 0 : H.direction) + "/" + k(s.roundPrecision((W = (U = (j = i.currentHourData) == null ? void 0 : j.weather) == null ? void 0 : U.wind) == null ? void 0 : W.kts, 1)) + "kts/BF" + k((pe = (re = (de = i.currentHourData) == null ? void 0 : de.weather) == null ? void 0 : re.wind) == null ? void 0 : pe.scale) + "/" + k(s.roundPrecision((be = (me = (ve = i.currentHourData) == null ? void 0 : ve.weather) == null ? void 0 : me.wind) == null ? void 0 : be.gusts, 1)) + " kts", 1)
7439
+ o("div", null, k((N = (S = (D = i.currentHourData) == null ? void 0 : D.weather) == null ? void 0 : S.wind) == null ? void 0 : N.direction) + "/" + k(s.roundPrecision((W = (U = (j = i.currentHourData) == null ? void 0 : j.weather) == null ? void 0 : U.wind) == null ? void 0 : W.kts, 1)) + "kts/BF" + k((pe = (re = (ne = i.currentHourData) == null ? void 0 : ne.weather) == null ? void 0 : re.wind) == null ? void 0 : pe.scale) + "/" + k(s.roundPrecision((be = (me = (ve = i.currentHourData) == null ? void 0 : ve.weather) == null ? void 0 : me.wind) == null ? void 0 : be.gusts, 1)) + " kts", 1)
7439
7440
  ]),
7440
7441
  o("div", Br, [
7441
7442
  e[34] || (e[34] = o("div", null, "Sig wave", -1)),
7442
- o("div", null, k((G = (ge = (ue = i.currentHourData) == null ? void 0 : ue.wave) == null ? void 0 : ge.sig) == null ? void 0 : G.direction) + "/" + k(s.roundPrecision((le = (ne = (Z = i.currentHourData) == null ? void 0 : Z.wave) == null ? void 0 : ne.sig) == null ? void 0 : le.height, 1)) + "m/" + k(s.roundPrecision((xe = (Le = (Ae = i.currentHourData) == null ? void 0 : Ae.wave) == null ? void 0 : Le.sig) == null ? void 0 : xe.period, 1)) + "s", 1)
7443
+ o("div", null, k((G = (ge = (ue = i.currentHourData) == null ? void 0 : ue.wave) == null ? void 0 : ge.sig) == null ? void 0 : G.direction) + "/" + k(s.roundPrecision((he = (le = (Z = i.currentHourData) == null ? void 0 : Z.wave) == null ? void 0 : le.sig) == null ? void 0 : he.height, 1)) + "m/" + k(s.roundPrecision((xe = (Le = (Ae = i.currentHourData) == null ? void 0 : Ae.wave) == null ? void 0 : Le.sig) == null ? void 0 : xe.period, 1)) + "s", 1)
7443
7444
  ])
7444
7445
  ]),
7445
7446
  o("div", Ir, [
7446
7447
  o("div", Er, [
7447
7448
  e[35] || (e[35] = o("div", null, "Wind wave", -1)),
7448
- o("div", null, k((Ce = (Ee = (B = i.currentHourData) == null ? void 0 : B.wave) == null ? void 0 : Ee.wd) == null ? void 0 : Ce.direction) + "/" + k(s.roundPrecision((Pe = (Be = (ke = i.currentHourData) == null ? void 0 : ke.wave) == null ? void 0 : Be.wd) == null ? void 0 : Pe.height, 1)) + "m/" + k(s.roundPrecision((V = (J = (_e = i.currentHourData) == null ? void 0 : _e.wave) == null ? void 0 : J.wd) == null ? void 0 : V.period, 1)) + "s", 1)
7449
+ o("div", null, k((Ce = (Ee = (_ = i.currentHourData) == null ? void 0 : _.wave) == null ? void 0 : Ee.wd) == null ? void 0 : Ce.direction) + "/" + k(s.roundPrecision((Pe = (Be = (ke = i.currentHourData) == null ? void 0 : ke.wave) == null ? void 0 : Be.wd) == null ? void 0 : Pe.height, 1)) + "m/" + k(s.roundPrecision((V = (J = (_e = i.currentHourData) == null ? void 0 : _e.wave) == null ? void 0 : J.wd) == null ? void 0 : V.period, 1)) + "s", 1)
7449
7450
  ]),
7450
7451
  o("div", kr, [
7451
7452
  e[36] || (e[36] = o("div", null, "Swell", -1)),
7452
- o("div", null, k((X = (De = (S = i.currentHourData) == null ? void 0 : S.wave) == null ? void 0 : De.swell) == null ? void 0 : X.direction) + "/" + k(s.roundPrecision((M = (Te = ($ = i.currentHourData) == null ? void 0 : $.wave) == null ? void 0 : Te.swell) == null ? void 0 : M.height, 1)) + "m/" + k(s.roundPrecision((Qe = (Se = (we = i.currentHourData) == null ? void 0 : we.wave) == null ? void 0 : Se.swell) == null ? void 0 : Qe.period, 1)) + "s", 1)
7453
+ o("div", null, k((X = (De = (T = i.currentHourData) == null ? void 0 : T.wave) == null ? void 0 : De.swell) == null ? void 0 : X.direction) + "/" + k(s.roundPrecision((M = (Te = ($ = i.currentHourData) == null ? void 0 : $.wave) == null ? void 0 : Te.swell) == null ? void 0 : M.height, 1)) + "m/" + k(s.roundPrecision((Qe = (Se = (we = i.currentHourData) == null ? void 0 : we.wave) == null ? void 0 : Se.swell) == null ? void 0 : Qe.period, 1)) + "s", 1)
7453
7454
  ])
7454
7455
  ]),
7455
7456
  o("div", Dr, [
@@ -8003,12 +8004,12 @@ const as = {
8003
8004
  computed: {
8004
8005
  computeLat() {
8005
8006
  return function(a) {
8006
- return he.lat2pretty(a, 4).pretty;
8007
+ return ce.lat2pretty(a, 4).pretty;
8007
8008
  };
8008
8009
  },
8009
8010
  computeLng() {
8010
8011
  return function(a) {
8011
- return he.lng2pretty(a, 4).pretty;
8012
+ return ce.lng2pretty(a, 4).pretty;
8012
8013
  };
8013
8014
  }
8014
8015
  },
@@ -8480,7 +8481,7 @@ const vs = /* @__PURE__ */ Y(As, [["render", ws]]), bs = {
8480
8481
  methods: {
8481
8482
  handleRender() {
8482
8483
  this.map ? (this.handleClear(), this.area && (this.area.features.forEach((a) => {
8483
- a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) => he.convertToMonotonicLng2(e));
8484
+ a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) => ce.convertToMonotonicLng2(e));
8484
8485
  }), this.map.addSource(this.source, {
8485
8486
  type: "geojson",
8486
8487
  data: this.area
@@ -8660,7 +8661,7 @@ const Is = {
8660
8661
  this.show ? ((a = this.map) == null || a.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (e = this.map) == null || e.off("zoomend", this.handleZoomEnd));
8661
8662
  },
8662
8663
  handleMouseMove(a) {
8663
- const e = a.lngLat, t = he.lng2pretty(e.lng, 2), r = he.lat2pretty(e.lat, 2);
8664
+ const e = a.lngLat, t = ce.lng2pretty(e.lng, 2), r = ce.lat2pretty(e.lat, 2);
8664
8665
  this.lngLat = { lng: t, lat: r };
8665
8666
  },
8666
8667
  handleComputeLatLngs() {
@@ -8708,7 +8709,7 @@ const Is = {
8708
8709
  handleZoomEnd() {
8709
8710
  var e;
8710
8711
  const a = this.handleComputeLatLngs();
8711
- (e = this.map) == null || e.getSource(this.source).setData(Q.featureCollection(a));
8712
+ (e = this.map) == null || e.getSource(this.source).setData(H.featureCollection(a));
8712
8713
  },
8713
8714
  handleRender() {
8714
8715
  if (this.map) {
@@ -8761,7 +8762,7 @@ function Es(a, e, t, r, i, s) {
8761
8762
  return i.lngLat ? (u(), g("div", {
8762
8763
  key: 0,
8763
8764
  class: "lat-lng-tip",
8764
- style: ce({ right: i.right + "px", bottom: t.bottom })
8765
+ style: de({ right: i.right + "px", bottom: t.bottom })
8765
8766
  }, [
8766
8767
  o("span", null, k(i.lngLat.lat.pretty), 1),
8767
8768
  e[0] || (e[0] = o("span", null, ", ", -1)),
@@ -8803,7 +8804,7 @@ const pt = /* @__PURE__ */ Y(Is, [["render", Es], ["__scopeId", "data-v-747fb3c8
8803
8804
  else {
8804
8805
  (a = this.map) == null || a.getCanvas().removeEventListener("keydown", this.handleKeydown), (e = this.map) == null || e.off("mousemove", this.handleMove), (t = this.map) == null || t.off("dblclick", this.handleDblClick), this.map && (this.map.getCanvas().style.cursor = "grab");
8805
8806
  let r = this.geojson.find((i) => !i.closed);
8806
- r && this.handleClear(r, !0), this.geojson = this.geojson.filter((i) => !!i.closed), r = Q.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(r);
8807
+ r && this.handleClear(r, !0), this.geojson = this.geojson.filter((i) => !!i.closed), r = H.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(r);
8807
8808
  }
8808
8809
  },
8809
8810
  immediate: !0
@@ -8839,22 +8840,22 @@ const pt = /* @__PURE__ */ Y(Is, [["render", Es], ["__scopeId", "data-v-747fb3c8
8839
8840
  if ((e == null ? void 0 : e.split("-").length) === 2) {
8840
8841
  const L = this.geojson.filter((I) => I.id === e.split("-")[0])[0];
8841
8842
  this.pointMarkers[L.id].filter((I) => {
8842
- var _;
8843
- return ((_ = I._element) == null ? void 0 : _.id) === e;
8843
+ var x;
8844
+ return ((x = I._element) == null ? void 0 : x.id) === e;
8844
8845
  })[0].setLngLat([(s = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : s.lng, (l = (n = a.target) == null ? void 0 : n._lngLat) == null ? void 0 : l.lat]);
8845
- let E;
8846
- L.features.forEach((I, _) => {
8846
+ let B;
8847
+ L.features.forEach((I, x) => {
8847
8848
  if (I.geometry.type === "Point" && I.properties.id == e.split("-")[1]) {
8848
- E = _;
8849
+ B = x;
8849
8850
  return;
8850
8851
  }
8851
8852
  });
8852
- const A = L.features.filter((I) => I.geometry.type === "Point");
8853
+ const y = L.features.filter((I) => I.geometry.type === "Point");
8853
8854
  this.handleTmpPointUpdate(
8854
8855
  L,
8855
- A[E - 1],
8856
- { lng: (d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lng, lat: (p = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lat, properties: A[E].properties },
8857
- E === A.length - 1 ? void 0 : A[E + 1]
8856
+ y[B - 1],
8857
+ { lng: (d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lng, lat: (p = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lat, properties: y[B].properties },
8858
+ B === y.length - 1 ? void 0 : y[B + 1]
8858
8859
  );
8859
8860
  }
8860
8861
  },
@@ -8862,13 +8863,13 @@ const pt = /* @__PURE__ */ Y(Is, [["render", Es], ["__scopeId", "data-v-747fb3c8
8862
8863
  var t, r, i, s, n, l, c, d, h, p;
8863
8864
  const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
8864
8865
  if ((e == null ? void 0 : e.split("-").length) === 2) {
8865
- const L = this.geojson.filter((A) => A.id === e.split("-")[0])[0];
8866
- this.pointMarkers[L.id].filter((A) => {
8866
+ const L = this.geojson.filter((y) => y.id === e.split("-")[0])[0];
8867
+ this.pointMarkers[L.id].filter((y) => {
8867
8868
  var I;
8868
- return ((I = A._element) == null ? void 0 : I.id) === e;
8869
+ return ((I = y._element) == null ? void 0 : I.id) === e;
8869
8870
  })[0].setLngLat([(s = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : s.lng, (l = (n = a.target) == null ? void 0 : n._lngLat) == null ? void 0 : l.lat]);
8870
- const E = L.features.filter((A) => A.geometry.type === "Point" && A.properties.id == e.split("-")[1])[0];
8871
- E.geometry.coordinates = [(d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lng, (p = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lat], L.features = L.features.filter((A) => A.geometry.type === "Point"), this.handlePointUpdate(L);
8871
+ const B = L.features.filter((y) => y.geometry.type === "Point" && y.properties.id == e.split("-")[1])[0];
8872
+ B.geometry.coordinates = [(d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lng, (p = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lat], L.features = L.features.filter((y) => y.geometry.type === "Point"), this.handlePointUpdate(L);
8872
8873
  }
8873
8874
  },
8874
8875
  handleContextmenu(a) {
@@ -8895,8 +8896,8 @@ const pt = /* @__PURE__ */ Y(Is, [["render", Es], ["__scopeId", "data-v-747fb3c8
8895
8896
  d.features = d.features.filter((h) => h.geometry.type === "Point" && h.properties.id !== c[1]), this.handlePointUpdate(d);
8896
8897
  } else if (e !== "marker-label" && this.show) {
8897
8898
  let c = this.geojson.at(-1);
8898
- c || (c = Q.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(c)), c.features = c.features.filter((h) => h.geometry.type === "Point");
8899
- const d = Q.feature(
8899
+ c || (c = H.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(c)), c.features = c.features.filter((h) => h.geometry.type === "Point");
8900
+ const d = H.feature(
8900
8901
  {
8901
8902
  type: "Point",
8902
8903
  coordinates: [a.lngLat.lng, a.lngLat.lat]
@@ -8916,33 +8917,33 @@ const pt = /* @__PURE__ */ Y(Is, [["render", Es], ["__scopeId", "data-v-747fb3c8
8916
8917
  const r = [];
8917
8918
  for (let i = 1; i < e.length; i++) {
8918
8919
  const s = e[i - 1], n = e[i], l = s.properties, c = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, d = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, h = We.calculateDistance(c, d, l.mode === "RL", 4), p = We.calculateBearing(c, d, l.mode === "RL", 2);
8919
- t = he.roundPrecision(t + h, 2);
8920
+ t = ce.roundPrecision(t + h, 2);
8920
8921
  let L;
8921
- l.mode === "RL" ? L = he.convertToMonotonicLng([c, d]) : L = he.convertToMonotonicLng(We.interpolateCoordinates(c, d, 200));
8922
- const x = Q.lineString(L.map((E) => [E.lng, E.lat]));
8923
- x.properties.dist = h, x.properties.bearing = p, x.properties.total = t, r.push(x);
8922
+ l.mode === "RL" ? L = ce.convertToMonotonicLng([c, d]) : L = ce.convertToMonotonicLng(We.interpolateCoordinates(c, d, 200));
8923
+ const E = H.lineString(L.map((B) => [B.lng, B.lat]));
8924
+ E.properties.dist = h, E.properties.bearing = p, E.properties.total = t, r.push(E);
8924
8925
  }
8925
8926
  e.push(...r), a.total = t;
8926
8927
  }
8927
8928
  return this.handleRender(a), a;
8928
8929
  },
8929
8930
  handleTmpPointUpdate(a, e, t, r) {
8930
- const i = Q.featureCollection([]);
8931
+ const i = H.featureCollection([]);
8931
8932
  let s, n;
8932
8933
  if (e) {
8933
8934
  const c = e.properties, d = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, h = { lng: t.lng, lat: t.lat };
8934
8935
  s = We.calculateDistance(d, h, c.mode === "RL", 4), n = We.calculateBearing(d, h, c.mode === "RL", 2);
8935
8936
  let p;
8936
- c.mode === "RL" ? p = he.convertToMonotonicLng([d, h]) : p = he.convertToMonotonicLng(We.interpolateCoordinates(d, h, 200));
8937
- const L = Q.lineString(p.map((x) => [x.lng, x.lat]));
8937
+ c.mode === "RL" ? p = ce.convertToMonotonicLng([d, h]) : p = ce.convertToMonotonicLng(We.interpolateCoordinates(d, h, 200));
8938
+ const L = H.lineString(p.map((E) => [E.lng, E.lat]));
8938
8939
  L.properties.dist = s, L.properties.bearing = n, i.features.push(L);
8939
8940
  }
8940
8941
  if (r) {
8941
8942
  const c = t.properties, d = t, h = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
8942
8943
  s = We.calculateDistance(d, h, c.mode === "RL", 4), n = We.calculateBearing(d, h, c.mode === "RL", 2);
8943
8944
  let p;
8944
- c.mode === "RL" ? p = he.convertToMonotonicLng([d, h]) : p = he.convertToMonotonicLng(We.interpolateCoordinates(d, h, 200));
8945
- const L = Q.lineString(p.map((x) => [x.lng, x.lat]));
8945
+ c.mode === "RL" ? p = ce.convertToMonotonicLng([d, h]) : p = ce.convertToMonotonicLng(We.interpolateCoordinates(d, h, 200));
8946
+ const L = H.lineString(p.map((E) => [E.lng, E.lat]));
8946
8947
  L.properties.dist = s, L.properties.bearing = n, i.features.push(L);
8947
8948
  }
8948
8949
  this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(i) : this.map.addSource(this.tmpSource, {
@@ -8983,7 +8984,7 @@ const pt = /* @__PURE__ */ Y(Is, [["render", Es], ["__scopeId", "data-v-747fb3c8
8983
8984
  }
8984
8985
  });
8985
8986
  let l;
8986
- if (r ? l = '<div class="marker-label">Drag and drop</div>' : l = `<div class="marker-label">Total distance: <b>${he.roundPrecision((a.total ?? 0) + s, 1)}</b>nm, bearing: <b>${n}</b>°</div><div class="marker-label">${this.navigation === "RL" ? "RL" : "GC"} mode, using 'Shift' to switch</div><div class="marker-label">Double click to end</div>`, this.tipMarker)
8987
+ if (r ? l = '<div class="marker-label">Drag and drop</div>' : l = `<div class="marker-label">Total distance: <b>${ce.roundPrecision((a.total ?? 0) + s, 1)}</b>nm, bearing: <b>${n}</b>°</div><div class="marker-label">${this.navigation === "RL" ? "RL" : "GC"} mode, using 'Shift' to switch</div><div class="marker-label">Double click to end</div>`, this.tipMarker)
8987
8988
  this.tipMarker._element.innerHTML = l, this.tipMarker.setLngLat([t.lng, t.lat]);
8988
8989
  else {
8989
8990
  const c = document.createElement("div");
@@ -8993,14 +8994,14 @@ const pt = /* @__PURE__ */ Y(Is, [["render", Es], ["__scopeId", "data-v-747fb3c8
8993
8994
  handleMove(a) {
8994
8995
  this.map.getCanvas().style.cursor = "crosshair";
8995
8996
  let e = this.geojson.at(-1);
8996
- e || (e = Q.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
8997
+ e || (e = H.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
8997
8998
  const t = e.features.filter((r) => r.geometry.type === "Point");
8998
8999
  t != null && t.length && this.handleTmpPointUpdate(e, t.at(-1), { lng: a.lngLat.lng, lat: a.lngLat.lat });
8999
9000
  },
9000
9001
  handleDblClick(a) {
9001
9002
  a.preventDefault();
9002
9003
  let e = this.geojson.at(-1);
9003
- e.closed = !0, this.handleRender(e), e = Q.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e);
9004
+ e.closed = !0, this.handleRender(e), e = H.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e);
9004
9005
  },
9005
9006
  handleRender(a) {
9006
9007
  var e;
@@ -9055,11 +9056,11 @@ const pt = /* @__PURE__ */ Y(Is, [["render", Es], ["__scopeId", "data-v-747fb3c8
9055
9056
  }
9056
9057
  },
9057
9058
  handleClear(a, e = !0) {
9058
- var s, n, l, c, d, h, p, L, x;
9059
+ var s, n, l, c, d, h, p, L, E;
9059
9060
  const t = `${a.id}-${this.source}`, r = `${a.id}-${this.layer}`, i = `${a.id}-${this.labelLayer}`;
9060
- (s = this.map) != null && s.getLayer(r) && this.map.removeLayer(r), (n = this.map) != null && n.getLayer(i) && this.map.removeLayer(i), (l = this.map) != null && l.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (c = this.map) != null && c.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (d = this.closeMarkers[a.id]) == null || d.remove(), this.closeMarkers[a.id] = void 0, (h = this.pointMarkers[a.id]) == null || h.forEach((E) => {
9061
- E == null || E.remove();
9062
- }), this.pointMarkers[a.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((L = this.map) != null && L.getSource(t)) && this.map.removeSource(t), e && ((x = this.map) != null && x.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
9061
+ (s = this.map) != null && s.getLayer(r) && this.map.removeLayer(r), (n = this.map) != null && n.getLayer(i) && this.map.removeLayer(i), (l = this.map) != null && l.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (c = this.map) != null && c.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (d = this.closeMarkers[a.id]) == null || d.remove(), this.closeMarkers[a.id] = void 0, (h = this.pointMarkers[a.id]) == null || h.forEach((B) => {
9062
+ B == null || B.remove();
9063
+ }), this.pointMarkers[a.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((L = this.map) != null && L.getSource(t)) && this.map.removeSource(t), e && ((E = this.map) != null && E.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
9063
9064
  }
9064
9065
  }
9065
9066
  };
@@ -9128,7 +9129,7 @@ function Ts(a, e, t, r, i, s) {
9128
9129
  return t.enabled && t.permission & i.helper.LEVEL.Supper ? (u(), g("div", Ms, [
9129
9130
  o("div", {
9130
9131
  class: "menu-bar-box",
9131
- style: ce({ position: "absolute", right: i.right + "px", bottom: t.bottom })
9132
+ style: de({ position: "absolute", right: i.right + "px", bottom: t.bottom })
9132
9133
  }, [
9133
9134
  o("div", Ss, [
9134
9135
  O(n, {
@@ -9431,11 +9432,11 @@ const Ys = {
9431
9432
  },
9432
9433
  activeWeatherLayers: {
9433
9434
  handler() {
9434
- var t, r, i, s, n, l, c, d, h, p, L, x, E, A, I, _, y, v, m, b, f, w, z;
9435
+ var t, r, i, s, n, l, c, d, h, p, L, E, B, y, I, x, f, v, m, b, A, w, z;
9435
9436
  if (!this.map)
9436
9437
  return !1;
9437
9438
  const a = this.activeWeatherLayers.some((D) => D.key === "wind" && D.particle === !0 || D.key === "current" && D.particle === !0 || D.key === "ice-edge" || D.key === "ice-thickness" || D.key === "ice-cover" || D.key === "temp" || D.key === "water-temp"), e = this.activeWeatherLayers.some((D) => D.key === "visibility" || D.key === "precip3h");
9438
- this.activeWeatherLayers.length > 0 ? (!a && this.map.getZoom() > 3 && this.enc ? (r = (t = this.map) == null ? void 0 : t.getLayer(this.enc)) == null || r.setLayoutProperty("visibility", "visible") : ((s = (i = this.map) == null ? void 0 : i.getLayer("i4")) == null || s.setLayoutProperty("visibility", "none"), (l = (n = this.map) == null ? void 0 : n.getLayer("hi")) == null || l.setLayoutProperty("visibility", "none")), (d = (c = this.map) == null ? void 0 : c.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || d.setLayoutProperty("visibility", "visible"), (p = this.map) != null && p.getLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer) && ((L = this.map) != null && L.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((E = this.map) == null || E.moveLayer((x = this.viewport) == null ? void 0 : x.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), e && ((I = this.map) == null || I.moveLayer(this.helper.mapboxCustomer.layers.countryBoundary.id, (A = this.viewport) == null ? void 0 : A.rampColorLayer))) : ((y = (_ = this.map) == null ? void 0 : _.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || y.setLayoutProperty("visibility", "none"), this.enc && this.map.getZoom() > 3 ? (m = (v = this.map) == null ? void 0 : v.getLayer(this.enc)) == null || m.setLayoutProperty("visibility", "visible") : ((f = (b = this.map) == null ? void 0 : b.getLayer("i4")) == null || f.setLayoutProperty("visibility", "none"), (z = (w = this.map) == null ? void 0 : w.getLayer("hi")) == null || z.setLayoutProperty("visibility", "none"))), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
9439
+ this.activeWeatherLayers.length > 0 ? (!a && this.map.getZoom() > 3 && this.enc ? (r = (t = this.map) == null ? void 0 : t.getLayer(this.enc)) == null || r.setLayoutProperty("visibility", "visible") : ((s = (i = this.map) == null ? void 0 : i.getLayer("i4")) == null || s.setLayoutProperty("visibility", "none"), (l = (n = this.map) == null ? void 0 : n.getLayer("hi")) == null || l.setLayoutProperty("visibility", "none")), (d = (c = this.map) == null ? void 0 : c.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || d.setLayoutProperty("visibility", "visible"), (p = this.map) != null && p.getLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer) && ((L = this.map) != null && L.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((B = this.map) == null || B.moveLayer((E = this.viewport) == null ? void 0 : E.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), e && ((I = this.map) == null || I.moveLayer(this.helper.mapboxCustomer.layers.countryBoundary.id, (y = this.viewport) == null ? void 0 : y.rampColorLayer))) : ((f = (x = this.map) == null ? void 0 : x.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || f.setLayoutProperty("visibility", "none"), this.enc && this.map.getZoom() > 3 ? (m = (v = this.map) == null ? void 0 : v.getLayer(this.enc)) == null || m.setLayoutProperty("visibility", "visible") : ((A = (b = this.map) == null ? void 0 : b.getLayer("i4")) == null || A.setLayoutProperty("visibility", "none"), (z = (w = this.map) == null ? void 0 : w.getLayer("hi")) == null || z.setLayoutProperty("visibility", "none"))), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
9439
9440
  },
9440
9441
  immediate: !0
9441
9442
  },
@@ -9491,18 +9492,18 @@ const Ys = {
9491
9492
  const e = (/* @__PURE__ */ new Date()).valueOf();
9492
9493
  let t = 0, r = 0;
9493
9494
  if (this.map) {
9494
- const x = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, E = (s = this.map) == null ? void 0 : s.getBounds(), A = `${E._sw.lng},${E._sw.lat},${E._ne.lng},${E._ne.lat}`;
9495
+ const E = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, B = (s = this.map) == null ? void 0 : s.getBounds(), y = `${B._sw.lng},${B._sw.lat},${B._ne.lng},${B._ne.lat}`;
9495
9496
  if (this.particleFactor && ((n = this.$refs.layer) != null && n.autoActive)) {
9496
- const I = $e.WEATHER_LAYERS.find((_) => {
9497
- var y;
9498
- return ((y = _.peer) == null ? void 0 : y.weight) === this.particleFactor.weight;
9497
+ const I = $e.WEATHER_LAYERS.find((x) => {
9498
+ var f;
9499
+ return ((f = x.peer) == null ? void 0 : f.weight) === this.particleFactor.weight;
9499
9500
  });
9500
9501
  this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight & I.weight ? this.weatherWeight : this.weatherWeight + I.weight : this.weatherWeight = this.weatherWeight & I.weight ? this.weatherWeight - I.weight : this.weatherWeight;
9501
9502
  }
9502
9503
  if (this.weatherWeight > 0) {
9503
- let I = this.weatherWeight, _;
9504
- if (a.tropicals || this.weatherWeight & 256 && (_ = this.weatherLayers.tropicals, _ && (I -= 256, _.version = Math.random() + 1)), I > 0) {
9505
- const y = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], v = await Ne.get(`${y}/api/arc/weather/layers2/links?l=${I}&v=${this.source}&z=${x}&bbox=${A}&t=${this.ts}`, {
9504
+ let I = this.weatherWeight, x;
9505
+ if (a.tropicals || this.weatherWeight & 256 && (x = this.weatherLayers.tropicals, x && (I -= 256, x.version = Math.random() + 1)), I > 0) {
9506
+ const f = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], v = await Ne.get(`${f}/api/arc/weather/layers2/links?l=${I}&v=${this.source}&z=${E}&bbox=${y}&t=${this.ts}`, {
9506
9507
  headers: {
9507
9508
  Authorization: this.token || this.defaultMeteoToken
9508
9509
  }
@@ -9521,10 +9522,10 @@ const Ys = {
9521
9522
  console.log(`[${w}] fetch layer error: ${z}`);
9522
9523
  })
9523
9524
  );
9524
- const f = await Promise.all(b);
9525
- this.weatherLayers = {}, f.map((w) => {
9526
- var N, H, j, U;
9527
- const z = ((N = w == null ? void 0 : w.data) == null ? void 0 : N.data) || (w == null ? void 0 : w.data), D = (j = (H = w == null ? void 0 : w.config) == null ? void 0 : H.headers) == null ? void 0 : j.key;
9525
+ const A = await Promise.all(b);
9526
+ this.weatherLayers = {}, A.map((w) => {
9527
+ var S, N, j, U;
9528
+ const z = ((S = w == null ? void 0 : w.data) == null ? void 0 : S.data) || (w == null ? void 0 : w.data), D = (j = (N = w == null ? void 0 : w.config) == null ? void 0 : N.headers) == null ? void 0 : j.key;
9528
9529
  D && z && (this.weatherLayers[D] = {
9529
9530
  raw: z,
9530
9531
  type: ((U = w == null ? void 0 : w.config) == null ? void 0 : U.responseType) === "blob" ? "image" : "json",
@@ -9536,8 +9537,8 @@ const Ys = {
9536
9537
  key: "tropicals"
9537
9538
  }
9538
9539
  }).then((w) => {
9539
- var N, H, j;
9540
- const z = ct.convert2Geojson(((N = w == null ? void 0 : w.data) == null ? void 0 : N.data) || (w == null ? void 0 : w.data)), D = (j = (H = w == null ? void 0 : w.config) == null ? void 0 : H.headers) == null ? void 0 : j.key;
9540
+ var S, N, j;
9541
+ const z = ct.convert2Geojson(((S = w == null ? void 0 : w.data) == null ? void 0 : S.data) || (w == null ? void 0 : w.data)), D = (j = (N = w == null ? void 0 : w.config) == null ? void 0 : N.headers) == null ? void 0 : j.key;
9541
9542
  this.weatherLayers[D] = {
9542
9543
  data: z,
9543
9544
  active: !0,
@@ -9567,7 +9568,7 @@ const Ys = {
9567
9568
  };
9568
9569
  }
9569
9570
  }
9570
- _ && (_.etime = this.ts, _.cached = !0, this.weatherLayers.tropicals = _);
9571
+ x && (x.etime = this.ts, x.cached = !0, this.weatherLayers.tropicals = x);
9571
9572
  }
9572
9573
  this.handleWeatherLayerToggle(), this.handleDrawWeather4Json();
9573
9574
  }
@@ -9587,21 +9588,21 @@ const Ys = {
9587
9588
  }
9588
9589
  });
9589
9590
  if (((e = p == null ? void 0 : p.data) == null ? void 0 : e.code) === 0) {
9590
- const L = (t = p == null ? void 0 : p.data) == null ? void 0 : t.data, x = [];
9591
- for (const A in L)
9592
- x.push(
9593
- Ne.get(L[A], {
9591
+ const L = (t = p == null ? void 0 : p.data) == null ? void 0 : t.data, E = [];
9592
+ for (const y in L)
9593
+ E.push(
9594
+ Ne.get(L[y], {
9594
9595
  headers: {
9595
9596
  Authorization: this.token || this.defaultMeteoToken,
9596
- key: A
9597
+ key: y
9597
9598
  }
9598
9599
  })
9599
9600
  );
9600
- const E = await Promise.all(x);
9601
- this.otherLayers = { enc: n, world12nm: l, worldMarine: c, chinaRoute: d }, E.map((A) => {
9602
- var y, v, m;
9603
- const I = ((y = A == null ? void 0 : A.data) == null ? void 0 : y.data) || (A == null ? void 0 : A.data), _ = (m = (v = A == null ? void 0 : A.config) == null ? void 0 : v.headers) == null ? void 0 : m.key;
9604
- this.otherLayers[_] = I;
9601
+ const B = await Promise.all(E);
9602
+ this.otherLayers = { enc: n, world12nm: l, worldMarine: c, chinaRoute: d }, B.map((y) => {
9603
+ var f, v, m;
9604
+ const I = ((f = y == null ? void 0 : y.data) == null ? void 0 : f.data) || (y == null ? void 0 : y.data), x = (m = (v = y == null ? void 0 : y.config) == null ? void 0 : v.headers) == null ? void 0 : m.key;
9605
+ this.otherLayers[x] = I;
9605
9606
  });
9606
9607
  }
9607
9608
  } else if (a.dayNight && s & 1024) {
@@ -9611,20 +9612,20 @@ const Ys = {
9611
9612
  }
9612
9613
  });
9613
9614
  if (((r = p == null ? void 0 : p.data) == null ? void 0 : r.code) === 0) {
9614
- const L = (i = p == null ? void 0 : p.data) == null ? void 0 : i.data, x = [];
9615
- for (const A in L)
9616
- x.push(
9617
- Ne.get(L[A], {
9615
+ const L = (i = p == null ? void 0 : p.data) == null ? void 0 : i.data, E = [];
9616
+ for (const y in L)
9617
+ E.push(
9618
+ Ne.get(L[y], {
9618
9619
  headers: {
9619
9620
  Authorization: this.token || this.defaultMeteoToken,
9620
- key: A
9621
+ key: y
9621
9622
  }
9622
9623
  })
9623
9624
  );
9624
- (await Promise.all(x)).map((A) => {
9625
- var y, v, m;
9626
- const I = ((y = A == null ? void 0 : A.data) == null ? void 0 : y.data) || (A == null ? void 0 : A.data), _ = (m = (v = A == null ? void 0 : A.config) == null ? void 0 : v.headers) == null ? void 0 : m.key;
9627
- this.otherLayers[_] = I;
9625
+ (await Promise.all(E)).map((y) => {
9626
+ var f, v, m;
9627
+ const I = ((f = y == null ? void 0 : y.data) == null ? void 0 : f.data) || (y == null ? void 0 : y.data), x = (m = (v = y == null ? void 0 : y.config) == null ? void 0 : v.headers) == null ? void 0 : m.key;
9628
+ this.otherLayers[x] = I;
9628
9629
  });
9629
9630
  }
9630
9631
  }
@@ -9679,253 +9680,253 @@ const Ys = {
9679
9680
  );
9680
9681
  },
9681
9682
  handleDrawWeather4Json() {
9682
- var d, h, p, L, x, E;
9683
+ var d, h, p, L, E, B;
9683
9684
  const a = (/* @__PURE__ */ new Date()).valueOf();
9684
9685
  let e = 0, t = 0;
9685
- const r = (d = this.map) == null ? void 0 : d.getBounds(), i = this.map.getZoom(), s = he.convertToStdLng(r._sw.lng), n = he.convertToStdLng(r._ne.lng), l = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
9686
- for (const A in this.weatherLayers) {
9686
+ const r = (d = this.map) == null ? void 0 : d.getBounds(), i = this.map.getZoom(), s = ce.convertToStdLng(r._sw.lng), n = ce.convertToStdLng(r._ne.lng), l = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
9687
+ for (const y in this.weatherLayers) {
9687
9688
  let I = !1;
9688
- if (this.weatherLayers[A].active && this.weatherLayers[A].type === "json") {
9689
- let _ = [];
9690
- if (A === "swell") {
9689
+ if (this.weatherLayers[y].active && this.weatherLayers[y].type === "json") {
9690
+ let x = [];
9691
+ if (y === "swell") {
9691
9692
  I = !0;
9692
- const y = ((h = this.weatherLayers[A]) == null ? void 0 : h.direction) || {};
9693
- for (const m in y)
9693
+ const f = ((h = this.weatherLayers[y]) == null ? void 0 : h.direction) || {};
9694
+ for (const m in f)
9694
9695
  if (m > l && m < c && (!(i <= this.zoom) || m % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9695
- const b = y[m].lng;
9696
- s > n ? b.forEach((f, w) => {
9697
- var z, D, N, H, j, U;
9696
+ const b = f[m].lng;
9697
+ s > n ? b.forEach((A, w) => {
9698
+ var z, D, S, N, j, U;
9698
9699
  if (i < 2) {
9699
- if ((f >= 0 && f <= 360 || f >= -360 && f <= 0) && f % 10 === 0) {
9700
- const W = Q.point([f, m], {
9701
- val: ((z = y[m].val) == null ? void 0 : z[w]) || ((D = y[m].dir) == null ? void 0 : D[w]),
9702
- spd: (N = y[m].spd) == null ? void 0 : N[w]
9700
+ if ((A >= 0 && A <= 360 || A >= -360 && A <= 0) && A % 10 === 0) {
9701
+ const W = H.point([A, m], {
9702
+ val: ((z = f[m].val) == null ? void 0 : z[w]) || ((D = f[m].dir) == null ? void 0 : D[w]),
9703
+ spd: (S = f[m].spd) == null ? void 0 : S[w]
9703
9704
  });
9704
- _.push(W);
9705
+ x.push(W);
9705
9706
  }
9706
- } else if ((f >= s && f <= 180 || f >= -180 && f <= n) && (!(i <= this.zoom) || f % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9707
- const W = Q.point([f, m], {
9708
- val: ((H = y[m].val) == null ? void 0 : H[w]) || ((j = y[m].dir) == null ? void 0 : j[w]),
9709
- spd: (U = y[m].spd) == null ? void 0 : U[w]
9707
+ } else if ((A >= s && A <= 180 || A >= -180 && A <= n) && (!(i <= this.zoom) || A % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9708
+ const W = H.point([A, m], {
9709
+ val: ((N = f[m].val) == null ? void 0 : N[w]) || ((j = f[m].dir) == null ? void 0 : j[w]),
9710
+ spd: (U = f[m].spd) == null ? void 0 : U[w]
9710
9711
  });
9711
- _.push(W);
9712
+ x.push(W);
9712
9713
  }
9713
- }) : b.forEach((f, w) => {
9714
- var z, D, N, H, j, U;
9714
+ }) : b.forEach((A, w) => {
9715
+ var z, D, S, N, j, U;
9715
9716
  if (s < 2) {
9716
- if ((f >= 0 && f <= 360 || f >= -360 && f <= 0) && f % 10 === 0) {
9717
- const W = Q.point([f, m], {
9718
- val: ((z = y[m].val) == null ? void 0 : z[w]) || ((D = y[m].dir) == null ? void 0 : D[w]),
9719
- spd: (N = y[m].spd) == null ? void 0 : N[w]
9717
+ if ((A >= 0 && A <= 360 || A >= -360 && A <= 0) && A % 10 === 0) {
9718
+ const W = H.point([A, m], {
9719
+ val: ((z = f[m].val) == null ? void 0 : z[w]) || ((D = f[m].dir) == null ? void 0 : D[w]),
9720
+ spd: (S = f[m].spd) == null ? void 0 : S[w]
9720
9721
  });
9721
- _.push(W);
9722
+ x.push(W);
9722
9723
  }
9723
- } else if (f >= s && f <= n && (!(i <= this.zoom) || f % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9724
- const W = Q.point([f, m], {
9725
- val: ((H = y[m].val) == null ? void 0 : H[w]) || ((j = y[m].dir) == null ? void 0 : j[w]),
9726
- spd: (U = y[m].spd) == null ? void 0 : U[w]
9724
+ } else if (A >= s && A <= n && (!(i <= this.zoom) || A % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9725
+ const W = H.point([A, m], {
9726
+ val: ((N = f[m].val) == null ? void 0 : N[w]) || ((j = f[m].dir) == null ? void 0 : j[w]),
9727
+ spd: (U = f[m].spd) == null ? void 0 : U[w]
9727
9728
  });
9728
- _.push(W);
9729
+ x.push(W);
9729
9730
  }
9730
9731
  });
9731
9732
  }
9732
9733
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("swell direction elapsed: ", t, ", total: ", e += t);
9733
- const v = this.weatherLayers[A].height;
9734
+ const v = this.weatherLayers[y].height;
9734
9735
  if (v) {
9735
9736
  if (!v.data) {
9736
9737
  const m = [];
9737
9738
  for (const b in (p = v.raw) == null ? void 0 : p.LineString) {
9738
- const f = v.raw.LineString[b];
9739
- for (const w of f)
9739
+ const A = v.raw.LineString[b];
9740
+ for (const w of A)
9740
9741
  m.push(
9741
- Q.lineString(w, {
9742
+ H.lineString(w, {
9742
9743
  val: Number(b)
9743
9744
  })
9744
9745
  );
9745
- v.data = Q.featureCollection(m);
9746
+ v.data = H.featureCollection(m);
9746
9747
  }
9747
9748
  }
9748
9749
  if (v.data) {
9749
9750
  const m = this.handleBboxClip(v.data, r);
9750
- _ = _.concat(m);
9751
+ x = x.concat(m);
9751
9752
  }
9752
9753
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("swell height elapsed: ", t, ", total: ", e += t);
9753
9754
  }
9754
- } else if (A === "current" && this.showCurrentIsoband) {
9755
+ } else if (y === "current" && this.showCurrentIsoband) {
9755
9756
  I = !0;
9756
- const y = ((L = this.weatherLayers[A]) == null ? void 0 : L.direction) || {};
9757
- for (const m in y)
9757
+ const f = ((L = this.weatherLayers[y]) == null ? void 0 : L.direction) || {};
9758
+ for (const m in f)
9758
9759
  if (m > l && m < c && (!(i <= this.zoom) || m % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9759
- const b = y[m].lng;
9760
- s > n ? b.forEach((f, w) => {
9761
- var z, D, N, H, j, U;
9760
+ const b = f[m].lng;
9761
+ s > n ? b.forEach((A, w) => {
9762
+ var z, D, S, N, j, U;
9762
9763
  if (i < 2) {
9763
- if ((f >= 0 && f <= 360 || f >= -360 && f <= 0) && f % 10 === 0) {
9764
- const W = Q.point([f, m], {
9765
- val: ((z = y[m].val) == null ? void 0 : z[w]) || ((D = y[m].dir) == null ? void 0 : D[w]),
9766
- spd: (N = y[m].spd) == null ? void 0 : N[w]
9764
+ if ((A >= 0 && A <= 360 || A >= -360 && A <= 0) && A % 10 === 0) {
9765
+ const W = H.point([A, m], {
9766
+ val: ((z = f[m].val) == null ? void 0 : z[w]) || ((D = f[m].dir) == null ? void 0 : D[w]),
9767
+ spd: (S = f[m].spd) == null ? void 0 : S[w]
9767
9768
  });
9768
- _.push(W);
9769
+ x.push(W);
9769
9770
  }
9770
- } else if ((f >= s && f <= 180 || f >= -180 && f <= n) && (!(i <= this.zoom) || f % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9771
- const W = Q.point([f, m], {
9772
- val: ((H = y[m].val) == null ? void 0 : H[w]) || ((j = y[m].dir) == null ? void 0 : j[w]),
9773
- spd: (U = y[m].spd) == null ? void 0 : U[w]
9771
+ } else if ((A >= s && A <= 180 || A >= -180 && A <= n) && (!(i <= this.zoom) || A % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9772
+ const W = H.point([A, m], {
9773
+ val: ((N = f[m].val) == null ? void 0 : N[w]) || ((j = f[m].dir) == null ? void 0 : j[w]),
9774
+ spd: (U = f[m].spd) == null ? void 0 : U[w]
9774
9775
  });
9775
- _.push(W);
9776
+ x.push(W);
9776
9777
  }
9777
- }) : b.forEach((f, w) => {
9778
- var z, D, N, H, j, U;
9778
+ }) : b.forEach((A, w) => {
9779
+ var z, D, S, N, j, U;
9779
9780
  if (s < 2) {
9780
- if ((f >= 0 && f <= 360 || f >= -360 && f <= 0) && f % 10 === 0) {
9781
- const W = Q.point([f, m], {
9782
- val: ((z = y[m].val) == null ? void 0 : z[w]) || ((D = y[m].dir) == null ? void 0 : D[w]),
9783
- spd: (N = y[m].spd) == null ? void 0 : N[w]
9781
+ if ((A >= 0 && A <= 360 || A >= -360 && A <= 0) && A % 10 === 0) {
9782
+ const W = H.point([A, m], {
9783
+ val: ((z = f[m].val) == null ? void 0 : z[w]) || ((D = f[m].dir) == null ? void 0 : D[w]),
9784
+ spd: (S = f[m].spd) == null ? void 0 : S[w]
9784
9785
  });
9785
- _.push(W);
9786
+ x.push(W);
9786
9787
  }
9787
- } else if (f >= s && f <= n && (!(i <= this.zoom) || f % (i < this.zoom / 2 ? 5 : 3) === 0)) {
9788
- const W = Q.point([f, m], {
9789
- val: ((H = y[m].val) == null ? void 0 : H[w]) || ((j = y[m].dir) == null ? void 0 : j[w]),
9790
- spd: (U = y[m].spd) == null ? void 0 : U[w]
9788
+ } else if (A >= s && A <= n && (!(i <= this.zoom) || A % (i < this.zoom / 2 ? 5 : 3) === 0)) {
9789
+ const W = H.point([A, m], {
9790
+ val: ((N = f[m].val) == null ? void 0 : N[w]) || ((j = f[m].dir) == null ? void 0 : j[w]),
9791
+ spd: (U = f[m].spd) == null ? void 0 : U[w]
9791
9792
  });
9792
- _.push(W);
9793
+ x.push(W);
9793
9794
  }
9794
9795
  });
9795
9796
  }
9796
9797
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("current direction elapsed: ", t, ", total: ", e += t);
9797
- const v = this.weatherLayers[A].speed;
9798
+ const v = this.weatherLayers[y].speed;
9798
9799
  if (v) {
9799
9800
  if (!v.data) {
9800
9801
  const b = [];
9801
- for (const f in (x = v.raw) == null ? void 0 : x.Polygon) {
9802
- const w = v.raw.Polygon[f];
9802
+ for (const A in (E = v.raw) == null ? void 0 : E.Polygon) {
9803
+ const w = v.raw.Polygon[A];
9803
9804
  for (const z of w)
9804
9805
  b.push(
9805
- Q.polygon(z, {
9806
- val: Number(f)
9806
+ H.polygon(z, {
9807
+ val: Number(A)
9807
9808
  })
9808
9809
  );
9809
9810
  }
9810
- v.data = Q.featureCollection(b);
9811
+ v.data = H.featureCollection(b);
9811
9812
  }
9812
9813
  const m = i < this.zoom ? v.data.features.filter((b) => b.properties.val > 0.5) : v.data.features;
9813
- _ = _.concat(m), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("current speed elapsed: ", t, ", total: ", e += t);
9814
+ x = x.concat(m), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("current speed elapsed: ", t, ", total: ", e += t);
9814
9815
  }
9815
- } else if (A === "wind" && this.showWindFeather) {
9816
+ } else if (y === "wind" && this.showWindFeather) {
9816
9817
  I = !0;
9817
- const y = this.weatherLayers.wind.raw;
9818
- for (const v in y)
9818
+ const f = this.weatherLayers.wind.raw;
9819
+ for (const v in f)
9819
9820
  if (v > l && v < c && (!(i <= this.zoom) || v % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9820
- const m = y[v].lng;
9821
- s > n ? m.forEach((b, f) => {
9822
- var w, z, D, N;
9821
+ const m = f[v].lng;
9822
+ s > n ? m.forEach((b, A) => {
9823
+ var w, z, D, S;
9823
9824
  if (i < 2) {
9824
9825
  if ((b >= 0 && b <= 360 || b >= -360 && b <= 0) && b % 10 === 0) {
9825
- const H = Q.point([b, v], {
9826
- dir: ((w = y[v].val) == null ? void 0 : w[f]) || ((z = y[v].dir) == null ? void 0 : z[f]),
9827
- spd: y[v].spd[f]
9826
+ const N = H.point([b, v], {
9827
+ dir: ((w = f[v].val) == null ? void 0 : w[A]) || ((z = f[v].dir) == null ? void 0 : z[A]),
9828
+ spd: f[v].spd[A]
9828
9829
  });
9829
- _.push(H);
9830
+ x.push(N);
9830
9831
  }
9831
9832
  } else if ((b >= s && b <= 180 || b >= -180 && b <= n) && (!(i <= this.zoom) || b % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9832
- const H = Q.point([b, v], {
9833
- dir: ((D = y[v].val) == null ? void 0 : D[f]) || ((N = y[v].dir) == null ? void 0 : N[f]),
9834
- spd: y[v].spd[f]
9833
+ const N = H.point([b, v], {
9834
+ dir: ((D = f[v].val) == null ? void 0 : D[A]) || ((S = f[v].dir) == null ? void 0 : S[A]),
9835
+ spd: f[v].spd[A]
9835
9836
  });
9836
- _.push(H);
9837
+ x.push(N);
9837
9838
  }
9838
- }) : m.forEach((b, f) => {
9839
- var w, z, D, N;
9839
+ }) : m.forEach((b, A) => {
9840
+ var w, z, D, S;
9840
9841
  if (i < 2) {
9841
9842
  if ((b >= 0 && b <= 360 || b >= -360 && b <= 0) && b % 10 === 0) {
9842
- const H = Q.point([b, v], {
9843
- dir: ((w = y[v].val) == null ? void 0 : w[f]) || ((z = y[v].dir) == null ? void 0 : z[f]),
9844
- spd: y[v].spd[f]
9843
+ const N = H.point([b, v], {
9844
+ dir: ((w = f[v].val) == null ? void 0 : w[A]) || ((z = f[v].dir) == null ? void 0 : z[A]),
9845
+ spd: f[v].spd[A]
9845
9846
  });
9846
- _.push(H);
9847
+ x.push(N);
9847
9848
  }
9848
9849
  } else if (b >= s && b <= n && (!(i <= this.zoom) || b % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9849
- const H = Q.point([b, v], {
9850
- dir: ((D = y[v].val) == null ? void 0 : D[f]) || ((N = y[v].dir) == null ? void 0 : N[f]),
9851
- spd: y[v].spd[f]
9850
+ const N = H.point([b, v], {
9851
+ dir: ((D = f[v].val) == null ? void 0 : D[A]) || ((S = f[v].dir) == null ? void 0 : S[A]),
9852
+ spd: f[v].spd[A]
9852
9853
  });
9853
- _.push(H);
9854
+ x.push(N);
9854
9855
  }
9855
9856
  });
9856
9857
  }
9857
9858
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("wind barb elapsed: ", t, ", total: ", e += t);
9858
- } else if (A === "sig-wave-height") {
9859
- if (this.weatherLayers[A].data)
9860
- _ = this.weatherLayers[A].data;
9859
+ } else if (y === "sig-wave-height") {
9860
+ if (this.weatherLayers[y].data)
9861
+ x = this.weatherLayers[y].data;
9861
9862
  else {
9862
9863
  I = !0;
9863
- const y = this.weatherLayers[A].raw;
9864
- if (y) {
9864
+ const f = this.weatherLayers[y].raw;
9865
+ if (f) {
9865
9866
  const v = [];
9866
- for (const m in y.Polygon) {
9867
- const b = y.Polygon[m];
9868
- for (const f of b)
9867
+ for (const m in f.Polygon) {
9868
+ const b = f.Polygon[m];
9869
+ for (const A of b)
9869
9870
  v.push(
9870
- Q.polygon(f, {
9871
+ H.polygon(A, {
9871
9872
  val: Number(m)
9872
9873
  })
9873
9874
  );
9874
9875
  }
9875
- for (const m in y.MultiPolygon) {
9876
- const b = y.MultiPolygon[m];
9877
- for (const f of b)
9876
+ for (const m in f.MultiPolygon) {
9877
+ const b = f.MultiPolygon[m];
9878
+ for (const A of b)
9878
9879
  v.push(
9879
- Q.multiPolygon(f, {
9880
+ H.multiPolygon(A, {
9880
9881
  val: Number(m)
9881
9882
  })
9882
9883
  );
9883
9884
  }
9884
- for (const m in y.Point) {
9885
- const b = y.Point[m];
9886
- for (let f = 0; f < ((E = b.lng) == null ? void 0 : E.length); f++)
9885
+ for (const m in f.Point) {
9886
+ const b = f.Point[m];
9887
+ for (let A = 0; A < ((B = b.lng) == null ? void 0 : B.length); A++)
9887
9888
  v.push(
9888
- Q.point([b.lng[f], m], {
9889
- val: Number(b.val[f])
9889
+ H.point([b.lng[A], m], {
9890
+ val: Number(b.val[A])
9890
9891
  })
9891
9892
  );
9892
9893
  }
9893
- _ = _.concat(v);
9894
+ x = x.concat(v);
9894
9895
  }
9895
9896
  }
9896
9897
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("sigWave elapsed: ", t, ", total: ", e += t);
9897
- } else if (A === "prmsl") {
9898
- if (this.weatherLayers[A].data)
9899
- _ = this.weatherLayers[A].data;
9898
+ } else if (y === "prmsl") {
9899
+ if (this.weatherLayers[y].data)
9900
+ x = this.weatherLayers[y].data;
9900
9901
  else {
9901
9902
  I = !0;
9902
- const y = this.weatherLayers[A].raw;
9903
- if (y) {
9903
+ const f = this.weatherLayers[y].raw;
9904
+ if (f) {
9904
9905
  const v = [];
9905
- for (const m in y.LineString) {
9906
- const b = y.LineString[m];
9907
- for (const f of b)
9906
+ for (const m in f.LineString) {
9907
+ const b = f.LineString[m];
9908
+ for (const A of b)
9908
9909
  v.push(
9909
- Q.lineString(f, {
9910
+ H.lineString(A, {
9910
9911
  val: Number(m)
9911
9912
  })
9912
9913
  );
9913
9914
  }
9914
- for (const m in y.Point)
9915
- y.Point[m].lng.forEach((b, f) => {
9916
- b = he.convertToStdLng(b), v.push(
9917
- Q.point([b, m], {
9918
- val: y.Point[m].val[f],
9919
- type: y.Point[m].type[f]
9915
+ for (const m in f.Point)
9916
+ f.Point[m].lng.forEach((b, A) => {
9917
+ b = ce.convertToStdLng(b), v.push(
9918
+ H.point([b, m], {
9919
+ val: f.Point[m].val[A],
9920
+ type: f.Point[m].type[A]
9920
9921
  })
9921
9922
  );
9922
9923
  });
9923
- _ = _.concat(v);
9924
+ x = x.concat(v);
9924
9925
  }
9925
9926
  }
9926
9927
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("prmsl elapsed: ", t, ", total: ", e += t);
9927
9928
  }
9928
- _.length && (this.weatherLayers[A].data = Q.featureCollection(_)), I && (this.weatherLayers[A].version = Math.random() + 1);
9929
+ x.length && (this.weatherLayers[y].data = H.featureCollection(x)), I && (this.weatherLayers[y].version = Math.random() + 1);
9929
9930
  }
9930
9931
  }
9931
9932
  },
@@ -9936,14 +9937,14 @@ const Ys = {
9936
9937
  this.handleDrawWeather4Json(), !this.activeWeatherLayers.some((l) => l.key === "wind" && l.particle === !0 || l.key === "current" && l.particle === !0 || l.key === "ice-edge" || l.key === "ice-thickness" || l.key === "ice-cover" || l.key === "temp" || l.key === "water-temp") && this.map.getZoom() > 3 && this.enc ? (t = (e = this.map) == null ? void 0 : e.getLayer(this.enc)) == null || t.setLayoutProperty("visibility", "visible") : ((i = (r = this.map) == null ? void 0 : r.getLayer("i4")) == null || i.setLayoutProperty("visibility", "none"), (n = (s = this.map) == null ? void 0 : s.getLayer("hi")) == null || n.setLayoutProperty("visibility", "none"));
9937
9938
  },
9938
9939
  handleBboxClip(a, e) {
9939
- const t = [], r = he.convertToStdLng(e._sw.lng), i = he.convertToStdLng(e._ne.lng);
9940
+ const t = [], r = ce.convertToStdLng(e._sw.lng), i = ce.convertToStdLng(e._ne.lng);
9940
9941
  return a.features.forEach((s) => {
9941
9942
  if (s.geometry.type !== "Point")
9942
9943
  if (r > i) {
9943
- let n = [r, e._sw.lat, 180, e._ne.lat], l = Q.bboxClip(s, n);
9944
- l.geometry.coordinates.length && t.push(l), n = [-180, e._sw.lat, i, e._ne.lat], l = Q.bboxClip(s, n), l.geometry.coordinates.length && t.push(l);
9944
+ let n = [r, e._sw.lat, 180, e._ne.lat], l = H.bboxClip(s, n);
9945
+ l.geometry.coordinates.length && t.push(l), n = [-180, e._sw.lat, i, e._ne.lat], l = H.bboxClip(s, n), l.geometry.coordinates.length && t.push(l);
9945
9946
  } else {
9946
- const n = [r, e._sw.lat, i, e._ne.lat], l = Q.bboxClip(s, n);
9947
+ const n = [r, e._sw.lat, i, e._ne.lat], l = H.bboxClip(s, n);
9947
9948
  l.geometry.coordinates.length && t.push(l);
9948
9949
  }
9949
9950
  else
@@ -9961,8 +9962,8 @@ const Ys = {
9961
9962
  this.handleBeforeLayerToggle();
9962
9963
  },
9963
9964
  handleBeforeLayerToggle() {
9964
- var a, e, t, r, i, s, n, l, c, d, h, p, L, x, E, A;
9965
- (a = this.map) != null && a.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (t = this.otherLayers) != null && t["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (s = this.otherLayers) != null && s["high-risk-area"] || (n = this.otherLayers) != null && n["time-zones"] || (l = this.otherLayers) != null && l.pirates || (c = this.otherLayers) != null && c.ports || (d = this.otherLayers) != null && d.enc || (h = this.otherLayers) != null && h.world12nm || (p = this.otherLayers) != null && p.worldMarine || (L = this.otherLayers) != null && L.chinaRoute || (x = this.otherLayers) != null && x["voluntary-reporting-area"] || (E = this.otherLayers) != null && E["eca-zones"] || (A = this.otherLayers) != null && A["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
9965
+ var a, e, t, r, i, s, n, l, c, d, h, p, L, E, B, y;
9966
+ (a = this.map) != null && a.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (t = this.otherLayers) != null && t["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (s = this.otherLayers) != null && s["high-risk-area"] || (n = this.otherLayers) != null && n["time-zones"] || (l = this.otherLayers) != null && l.pirates || (c = this.otherLayers) != null && c.ports || (d = this.otherLayers) != null && d.enc || (h = this.otherLayers) != null && h.world12nm || (p = this.otherLayers) != null && p.worldMarine || (L = this.otherLayers) != null && L.chinaRoute || (E = this.otherLayers) != null && E["voluntary-reporting-area"] || (B = this.otherLayers) != null && B["eca-zones"] || (y = this.otherLayers) != null && y["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
9966
9967
  },
9967
9968
  handleDateChange(a = { tropicals: !1 }) {
9968
9969
  this.fetchWeatherLayers(a), this.fetchOtherLayers({ dayNight: !0 });
@@ -9996,8 +9997,8 @@ const Ys = {
9996
9997
  }
9997
9998
  },
9998
9999
  handle3dToggle(a) {
9999
- var e, t, r, i, s, n, l, c, d, h, p, L, x, E, A, I, _, y, v, m;
10000
- a ? (this.map.setProjection("globe"), this.mapProjection = "globe", (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((s = this.map) == null || s.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (l = this.map) != null && l.getLayer((n = this.viewport) == null ? void 0 : n.particleLayer) && ((c = this.map) != null && c.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((h = this.map) == null || h.moveLayer((d = this.viewport) == null ? void 0 : d.particleLayer, this.helper.mapboxCustomer.layers.water.id))) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", (L = this.map) != null && L.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((x = this.map) != null && x.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((A = this.map) == null || A.moveLayer((E = this.viewport) == null ? void 0 : E.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (_ = this.map) != null && _.getLayer((I = this.viewport) == null ? void 0 : I.particleLayer) && ((y = this.map) != null && y.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((m = this.map) == null || m.moveLayer((v = this.viewport) == null ? void 0 : v.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
10000
+ var e, t, r, i, s, n, l, c, d, h, p, L, E, B, y, I, x, f, v, m;
10001
+ a ? (this.map.setProjection("globe"), this.mapProjection = "globe", (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((s = this.map) == null || s.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (l = this.map) != null && l.getLayer((n = this.viewport) == null ? void 0 : n.particleLayer) && ((c = this.map) != null && c.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((h = this.map) == null || h.moveLayer((d = this.viewport) == null ? void 0 : d.particleLayer, this.helper.mapboxCustomer.layers.water.id))) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", (L = this.map) != null && L.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((E = this.map) != null && E.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((y = this.map) == null || y.moveLayer((B = this.viewport) == null ? void 0 : B.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (x = this.map) != null && x.getLayer((I = this.viewport) == null ? void 0 : I.particleLayer) && ((f = this.map) != null && f.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((m = this.map) == null || m.moveLayer((v = this.viewport) == null ? void 0 : v.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
10001
10002
  },
10002
10003
  handleParticle(a) {
10003
10004
  this.particleFactor = a, this.weatherLayers[a.key] && (this.weatherLayers[a.key].particle = a.particle), this.activeWeatherLayers.map((r) => {
@@ -10021,8 +10022,8 @@ const Ys = {
10021
10022
  class: "map-gl-home"
10022
10023
  };
10023
10024
  function Xs(a, e, t, r, i, s) {
10024
- var Z, ne, le, Ae, Le, xe, B, Ee, Ce, ke, Be, Pe, _e, J, V, S, De, X, $, Te, M, we, Se, Qe, He, P, F, Ge, Ue, Ye, ze;
10025
- const n = R("IdmGlLayer"), l = R("IdmENC"), c = R("IdmWorld12nm"), d = R("IdmWorldMarine"), h = R("IdmChinaRoute"), p = R("IdmSigWave"), L = R("IdmSigWaveHeight"), x = R("IdmSwell"), E = R("IdmPrmsl"), A = R("IdmIceEdge"), I = R("IdmIceCover"), _ = R("IdmIceThickness"), y = R("IdmTropicals"), v = R("IdmCurrents"), m = R("IdmCurrentParticle"), b = R("IdmWindBarb"), f = R("IdmWindParticle"), w = R("IdmPrecip3h"), z = R("IdmVisibility"), D = R("IdmWaterTemp"), N = R("IdmTemp"), H = R("IdmWarZone"), j = R("IdmGmdssArea"), U = R("IdmEcaZone"), W = R("IdmAlertZone"), de = R("IdmPort"), re = R("IdmLoadLine"), pe = R("IdmTimezone"), ve = R("IdmVRA"), me = R("IdmSpecialArea"), be = R("IdmTerminator"), ue = R("IdmLatLng"), ge = R("IdmMeasure"), G = R("IdmPoint");
10025
+ var Z, le, he, Ae, Le, xe, _, Ee, Ce, ke, Be, Pe, _e, J, V, T, De, X, $, Te, M, we, Se, Qe, He, P, F, Ge, Ue, Ye, ze;
10026
+ const n = R("IdmGlLayer"), l = R("IdmENC"), c = R("IdmWorld12nm"), d = R("IdmWorldMarine"), h = R("IdmChinaRoute"), p = R("IdmSigWave"), L = R("IdmSigWaveHeight"), E = R("IdmSwell"), B = R("IdmPrmsl"), y = R("IdmIceEdge"), I = R("IdmIceCover"), x = R("IdmIceThickness"), f = R("IdmTropicals"), v = R("IdmCurrents"), m = R("IdmCurrentParticle"), b = R("IdmWindBarb"), A = R("IdmWindParticle"), w = R("IdmPrecip3h"), z = R("IdmVisibility"), D = R("IdmWaterTemp"), S = R("IdmTemp"), N = R("IdmWarZone"), j = R("IdmGmdssArea"), U = R("IdmEcaZone"), W = R("IdmAlertZone"), ne = R("IdmPort"), re = R("IdmLoadLine"), pe = R("IdmTimezone"), ve = R("IdmVRA"), me = R("IdmSpecialArea"), be = R("IdmTerminator"), ue = R("IdmLatLng"), ge = R("IdmMeasure"), G = R("IdmPoint");
10026
10027
  return t.map ? (u(), g("div", Ks, [
10027
10028
  O(n, K({
10028
10029
  ref: "layer",
@@ -10067,13 +10068,13 @@ function Xs(a, e, t, r, i, s) {
10067
10068
  map: t.map,
10068
10069
  token: t.token,
10069
10070
  "weather-layers": i.weatherLayers,
10070
- enabled: (ne = i.otherLayers) == null ? void 0 : ne.world12nm
10071
+ enabled: (le = i.otherLayers) == null ? void 0 : le.world12nm
10071
10072
  }, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
10072
10073
  O(d, K({
10073
10074
  map: t.map,
10074
10075
  token: t.token,
10075
10076
  "weather-layers": i.weatherLayers,
10076
- enabled: (le = i.otherLayers) == null ? void 0 : le.worldMarine
10077
+ enabled: (he = i.otherLayers) == null ? void 0 : he.worldMarine
10077
10078
  }, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
10078
10079
  O(h, K({
10079
10080
  map: t.map,
@@ -10093,19 +10094,19 @@ function Xs(a, e, t, r, i, s) {
10093
10094
  "before-layer": t.beforeLayer,
10094
10095
  "active-weather-layers": i.activeWeatherLayers
10095
10096
  }, a.$attrs), null, 16, ["map", "sig-wave-height", "before-layer", "active-weather-layers"]),
10096
- O(x, K({
10097
+ O(E, K({
10097
10098
  map: t.map,
10098
- swell: (B = i.weatherLayers) == null ? void 0 : B.swell,
10099
+ swell: (_ = i.weatherLayers) == null ? void 0 : _.swell,
10099
10100
  "before-layer": t.beforeLayer,
10100
10101
  "active-weather-layers": i.activeWeatherLayers
10101
10102
  }, a.$attrs), null, 16, ["map", "swell", "before-layer", "active-weather-layers"]),
10102
- O(E, K({
10103
+ O(B, K({
10103
10104
  map: t.map,
10104
10105
  prmsl: (Ee = i.weatherLayers) == null ? void 0 : Ee.prmsl,
10105
10106
  "before-layer": t.beforeLayer,
10106
10107
  "active-weather-layers": i.activeWeatherLayers
10107
10108
  }, a.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
10108
- O(A, K({
10109
+ O(y, K({
10109
10110
  viewport: i.viewport,
10110
10111
  factor: (Ce = i.weatherLayers) == null ? void 0 : Ce["ice-edge"],
10111
10112
  "toggle-version": t.toggleVersion,
@@ -10117,13 +10118,13 @@ function Xs(a, e, t, r, i, s) {
10117
10118
  "toggle-version": t.toggleVersion,
10118
10119
  "before-layer": t.beforeLayer
10119
10120
  }, a.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
10120
- O(_, K({
10121
+ O(x, K({
10121
10122
  viewport: i.viewport,
10122
10123
  factor: (Be = i.weatherLayers) == null ? void 0 : Be["ice-thickness"],
10123
10124
  "toggle-version": t.toggleVersion,
10124
10125
  "before-layer": t.beforeLayer
10125
10126
  }, a.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
10126
- O(y, K({
10127
+ O(f, K({
10127
10128
  map: t.map,
10128
10129
  date: t.ts,
10129
10130
  tropicals: (Pe = i.weatherLayers) == null ? void 0 : Pe.tropicals,
@@ -10155,7 +10156,7 @@ function Xs(a, e, t, r, i, s) {
10155
10156
  map: t.map,
10156
10157
  "map-projection": i.mapProjection,
10157
10158
  wind: (V = i.weatherLayers) == null ? void 0 : V.wind,
10158
- current: (S = i.weatherLayers) == null ? void 0 : S.current,
10159
+ current: (T = i.weatherLayers) == null ? void 0 : T.current,
10159
10160
  "before-layer": t.beforeLayer,
10160
10161
  "margin-bottom": i.showRampColor ? "56px" : "30px",
10161
10162
  "show-wind-feather": i.showWindFeather,
@@ -10166,7 +10167,7 @@ function Xs(a, e, t, r, i, s) {
10166
10167
  "weather-layers": i.weatherLayers,
10167
10168
  onParticle: s.handleParticle
10168
10169
  }), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "show-wind-feather", "show-wind-particle", "toggle-partice-version", "toggle-version", "weather-layers", "onParticle"]),
10169
- O(f, K({
10170
+ O(A, K({
10170
10171
  viewport: i.viewport,
10171
10172
  factor: (De = i.weatherLayers) == null ? void 0 : De["wind-particle"],
10172
10173
  "before-layer": t.beforeLayer,
@@ -10190,13 +10191,13 @@ function Xs(a, e, t, r, i, s) {
10190
10191
  "before-layer": t.beforeLayer,
10191
10192
  "toggle-version": t.toggleVersion
10192
10193
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
10193
- O(N, K({
10194
+ O(S, K({
10194
10195
  viewport: i.viewport,
10195
10196
  factor: (M = i.weatherLayers) == null ? void 0 : M.temp,
10196
10197
  "before-layer": t.beforeLayer,
10197
10198
  "toggle-version": t.toggleVersion
10198
10199
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
10199
- O(H, K({
10200
+ O(N, K({
10200
10201
  map: t.map,
10201
10202
  zone: (we = i.otherLayers) == null ? void 0 : we["war-zones"],
10202
10203
  "before-layer": t.beforeLayer
@@ -10216,7 +10217,7 @@ function Xs(a, e, t, r, i, s) {
10216
10217
  zone: (He = i.otherLayers) == null ? void 0 : He["alert-zones"],
10217
10218
  "before-layer": t.beforeLayer
10218
10219
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
10219
- O(de, K({
10220
+ O(ne, K({
10220
10221
  map: t.map,
10221
10222
  port: (P = i.otherLayers) == null ? void 0 : P.ports,
10222
10223
  "before-layer": t.beforeLayer,