@idmui/spot 0.5.3 → 0.5.4

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
@@ -3,23 +3,23 @@ import W from "moment-timezone";
3
3
  import { ArrowRightBold as Ze, Calendar as Ve, Search as _e } from "@element-plus/icons-vue";
4
4
  import { LngLatHelper as Se } from "@idm-plugin/geo";
5
5
  import * as xe from "echarts";
6
- import { markRaw as $e, resolveComponent as Ce, openBlock as n, createElementBlock as A, createElementVNode as s, createVNode as Ie, withCtx as Me, Fragment as me, renderList as ue, createBlock as Ge, normalizeClass as we, toDisplayString as w, createTextVNode as ne, createCommentVNode as Ee, withDirectives as Fe, vShow as Oe, normalizeStyle as ve } from "vue";
7
- import ke from "axios";
8
- class Le {
6
+ import { markRaw as $e, resolveComponent as Ie, openBlock as n, createElementBlock as A, createElementVNode as s, createVNode as be, withCtx as Le, Fragment as me, renderList as ue, createBlock as Ge, normalizeClass as we, toDisplayString as p, createTextVNode as ne, createCommentVNode as Qe, withDirectives as Fe, vShow as Oe, normalizeStyle as Ce } from "vue";
7
+ import ze from "axios";
8
+ class ke {
9
9
  static pickHourly(e, a) {
10
- var r, t, h, f, b, z, Q, G, O, U, F, ae, ie, le, S, R, J, q, Z, V, _, $, ee, te, se, c, N, k, L, m, P, C, I, y, de, ge, Ae, g, pe, x, Y, E, he, T, l, X, v, re, j, d;
11
- const u = typeof a == "string" ? M(a) : a, K = e == null ? void 0 : e.weather, D = e == null ? void 0 : e.marine, De = M((t = (r = K == null ? void 0 : K[0]) == null ? void 0 : r.hourly) == null ? void 0 : t.date).utc(), H = De.clone().add((b = (f = (h = K == null ? void 0 : K[0]) == null ? void 0 : h.hourly) == null ? void 0 : f.time) == null ? void 0 : b.at(0), "h"), oe = De.clone().add((G = (Q = (z = K == null ? void 0 : K[0]) == null ? void 0 : z.hourly) == null ? void 0 : Q.time) == null ? void 0 : G.at(-1), "h"), fe = [];
10
+ var r, t, h, f, b, k, Q, G, O, U, F, ae, ie, le, S, R, J, q, Z, V, _, $, ee, te, se, c, N, z, L, m, P, C, I, y, de, ge, Ae, g, pe, x, Y, E, he, T, l, X, v, re, j, d;
11
+ const u = typeof a == "string" ? M(a) : a, K = e == null ? void 0 : e.weather, D = e == null ? void 0 : e.marine, De = M((t = (r = K == null ? void 0 : K[0]) == null ? void 0 : r.hourly) == null ? void 0 : t.date).utc(), H = De.clone().add((b = (f = (h = K == null ? void 0 : K[0]) == null ? void 0 : h.hourly) == null ? void 0 : f.time) == null ? void 0 : b.at(0), "h"), oe = De.clone().add((G = (Q = (k = K == null ? void 0 : K[0]) == null ? void 0 : k.hourly) == null ? void 0 : Q.time) == null ? void 0 : G.at(-1), "h"), fe = [];
12
12
  if (u.isBetween(H, oe, "millisecond", "[]")) {
13
13
  const B = u.utc().diff(H, "h", !1);
14
- let i, p;
14
+ let i, w;
15
15
  if (K) {
16
- let Qe = 0, ze = 0;
16
+ let ve = 0, Me = 0;
17
17
  for (const ce of K) {
18
18
  const ye = ce.hourly;
19
- for (let be = B - (B - 1) % 3; be <= B; be++)
20
- Qe += (O = ye.precipitation) == null ? void 0 : O.at(be);
21
- for (let be = B - (B - 1) % 6; be <= B; be++)
22
- ze += (U = ye.precipitation) == null ? void 0 : U.at(be);
19
+ for (let Ee = B - (B - 1) % 3; Ee <= B; Ee++)
20
+ ve += (O = ye.precipitation) == null ? void 0 : O.at(Ee);
21
+ for (let Ee = B - (B - 1) % 6; Ee <= B; Ee++)
22
+ Me += (U = ye.precipitation) == null ? void 0 : U.at(Ee);
23
23
  i = {
24
24
  temp: (F = ye.temperature_2m) == null ? void 0 : F.at(B),
25
25
  apparentTemp: (ae = ye.apparent_temperature) == null ? void 0 : ae.at(B),
@@ -28,8 +28,8 @@ class Le {
28
28
  precip: {
29
29
  probability: (S = ye.precipitation_probability) == null ? void 0 : S.at(B),
30
30
  sum: (R = ye.precipitation) == null ? void 0 : R.at(B),
31
- sum3Hours: Math.round(Qe * 100) / 100,
32
- sum6Hours: Math.round(ze * 100) / 100
31
+ sum3Hours: Math.round(ve * 100) / 100,
32
+ sum6Hours: Math.round(Me * 100) / 100
33
33
  },
34
34
  pmsl: (J = ye.pressure_msl) == null ? void 0 : J.at(B),
35
35
  psurf: (q = ye.surface_pressure) == null ? void 0 : q.at(B),
@@ -53,13 +53,13 @@ class Le {
53
53
  }
54
54
  }
55
55
  if (D) {
56
- let Qe = 0;
57
- for (const ze of D) {
58
- const ce = ze.hourly;
59
- p = {
56
+ let ve = 0;
57
+ for (const Me of D) {
58
+ const ce = Me.hourly;
59
+ w = {
60
60
  wave: {
61
61
  sig: {
62
- height: (k = ce.wave_height) == null ? void 0 : k.at(B),
62
+ height: (z = ce.wave_height) == null ? void 0 : z.at(B),
63
63
  degree: (L = ce.wave_direction) == null ? void 0 : L.at(B),
64
64
  bearing: ((m = ce.wave_direction) == null ? void 0 : m.at(B)) !== null ? (((P = ce.wave_direction) == null ? void 0 : P.at(B)) + 180) % 360 : null,
65
65
  period: (C = ce.wave_period) == null ? void 0 : C.at(B)
@@ -87,14 +87,14 @@ class Le {
87
87
  },
88
88
  sst: (j = ce.sea_surface_temperature) == null ? void 0 : j.at(B),
89
89
  height: (d = ce.sea_level_height_msl) == null ? void 0 : d.at(B)
90
- }, p.wave = this.parseWave(p.wave), p.current.direction = this.degree2Direction(p.current.degree), Object.assign(fe[Qe], p), Qe++;
90
+ }, w.wave = this.parseWave(w.wave), w.current.direction = this.degree2Direction(w.current.degree), Object.assign(fe[ve], w), ve++;
91
91
  }
92
92
  }
93
93
  }
94
94
  return fe;
95
95
  }
96
96
  static toLegacy(e) {
97
- var a, r, t, h, f, b, z, Q, G, O;
97
+ var a, r, t, h, f, b, k, Q, G, O;
98
98
  return {
99
99
  wind: (a = e == null ? void 0 : e.weather) == null ? void 0 : a.wind,
100
100
  visibility: (r = e == null ? void 0 : e.weather) == null ? void 0 : r.visibility,
@@ -103,7 +103,7 @@ class Le {
103
103
  gusts: {
104
104
  kts: (b = (f = e == null ? void 0 : e.weather) == null ? void 0 : f.wind) == null ? void 0 : b.gusts
105
105
  },
106
- precip: (z = e == null ? void 0 : e.weather) == null ? void 0 : z.precip,
106
+ precip: (k = e == null ? void 0 : e.weather) == null ? void 0 : k.precip,
107
107
  code: (Q = e == null ? void 0 : e.weather) == null ? void 0 : Q.code,
108
108
  name: (G = e == null ? void 0 : e.weather) == null ? void 0 : G.name,
109
109
  url: (O = e == null ? void 0 : e.weather) == null ? void 0 : O.url,
@@ -116,8 +116,8 @@ class Le {
116
116
  };
117
117
  }
118
118
  static pickDaily(e, a) {
119
- var r, t, h, f, b, z, Q, G, O, U, F, ae, ie, le, S, R, J, q, Z, V, _, $, ee, te, se, c, N, k, L, m, P, C, I, y, de, ge, Ae, g, pe, x, Y, E, he, T;
120
- const l = typeof a == "string" ? M(a) : a, X = e == null ? void 0 : e.weather, v = e == null ? void 0 : e.marine, re = M((h = (t = (r = X == null ? void 0 : X[0]) == null ? void 0 : r.daily) == null ? void 0 : t.time) == null ? void 0 : h.at(0)), j = M((z = (b = (f = X == null ? void 0 : X[0]) == null ? void 0 : f.daily) == null ? void 0 : b.time) == null ? void 0 : z.at(-1)), d = [];
119
+ var r, t, h, f, b, k, Q, G, O, U, F, ae, ie, le, S, R, J, q, Z, V, _, $, ee, te, se, c, N, z, L, m, P, C, I, y, de, ge, Ae, g, pe, x, Y, E, he, T;
120
+ const l = typeof a == "string" ? M(a) : a, X = e == null ? void 0 : e.weather, v = e == null ? void 0 : e.marine, re = M((h = (t = (r = X == null ? void 0 : X[0]) == null ? void 0 : r.daily) == null ? void 0 : t.time) == null ? void 0 : h.at(0)), j = M((k = (b = (f = X == null ? void 0 : X[0]) == null ? void 0 : f.daily) == null ? void 0 : b.time) == null ? void 0 : k.at(-1)), d = [];
121
121
  if (l.isBetween(re, j, "millisecond", "[]")) {
122
122
  let u, K;
123
123
  const D = l.diff(re, "d", !1);
@@ -170,7 +170,7 @@ class Le {
170
170
  K = {
171
171
  wave: {
172
172
  sig: {
173
- height: (k = oe.wave_height_max) == null ? void 0 : k.at(D),
173
+ height: (z = oe.wave_height_max) == null ? void 0 : z.at(D),
174
174
  degree: (L = oe.wave_direction_dominant) == null ? void 0 : L.at(D),
175
175
  period: (m = oe.wave_period_max) == null ? void 0 : m.at(D),
176
176
  bearing: ((P = oe.wave_direction_dominant) == null ? void 0 : P.at(D)) !== null ? (((C = oe.wave_direction_dominant) == null ? void 0 : C.at(D)) + 180) % 360 : null
@@ -762,7 +762,7 @@ const et = (o, e) => {
762
762
  const e = o.replaceAll(",", ",");
763
763
  if (!e)
764
764
  return !1;
765
- const a = await ke.get(`${this.gateway}/api/arc/ports/suggest?n=${e}`, {
765
+ const a = await ze.get(`${this.gateway}/api/arc/ports/suggest?n=${e}`, {
766
766
  headers: {
767
767
  Authorization: this.token
768
768
  }
@@ -793,16 +793,16 @@ const et = (o, e) => {
793
793
  async fetchMyFollows() {
794
794
  var e, a, r;
795
795
  this.followList = [];
796
- const o = await ke.get(`${this.gateway}/api/rsv/follows`, {
796
+ const o = await ze.get(`${this.gateway}/api/rsv/follows`, {
797
797
  headers: {
798
798
  Authorization: this.token
799
799
  },
800
800
  params: { b: 2, pn: 1, ps: 1e4 }
801
801
  });
802
802
  ((e = o == null ? void 0 : o.data) == null ? void 0 : e.code) === 0 && ((r = (a = o.data) == null ? void 0 : a.data) == null || r.rows.forEach((t) => {
803
- var f, b, z, Q, G, O, U, F;
803
+ var f, b, k, Q, G, O, U, F;
804
804
  const h = {};
805
- h.followId = t.id, h.remark = t.remark, h.name = ((f = t.port) == null ? void 0 : f.name) || this.computeLat((b = t == null ? void 0 : t.coordinate) == null ? void 0 : b.lat) + ", " + this.computeLng((z = t == null ? void 0 : t.coordinate) == null ? void 0 : z.lng), h.nameRemark = h.remark ? `${h.name} ( ${h.remark} )` : h.name, h.portId = (Q = t.port) == null ? void 0 : Q.id, h.lat = ((G = t.port) == null ? void 0 : G.lat) || ((O = t == null ? void 0 : t.coordinate) == null ? void 0 : O.lat), h.lng = ((U = t.port) == null ? void 0 : U.lng) || ((F = t == null ? void 0 : t.coordinate) == null ? void 0 : F.lng), this.followList.push(h);
805
+ h.followId = t.id, h.remark = t.remark, h.name = ((f = t.port) == null ? void 0 : f.name) || this.computeLat((b = t == null ? void 0 : t.coordinate) == null ? void 0 : b.lat) + ", " + this.computeLng((k = t == null ? void 0 : t.coordinate) == null ? void 0 : k.lng), h.nameRemark = h.remark ? `${h.name} ( ${h.remark} )` : h.name, h.portId = (Q = t.port) == null ? void 0 : Q.id, h.lat = ((G = t.port) == null ? void 0 : G.lat) || ((O = t == null ? void 0 : t.coordinate) == null ? void 0 : O.lat), h.lng = ((U = t.port) == null ? void 0 : U.lng) || ((F = t == null ? void 0 : t.coordinate) == null ? void 0 : F.lng), this.followList.push(h);
806
806
  }), this.followItem = this.followList.find((t) => {
807
807
  var h, f;
808
808
  return t.followId && ((h = this.position) == null ? void 0 : h.followId) && t.followId === ((f = this.position) == null ? void 0 : f.followId);
@@ -810,7 +810,7 @@ const et = (o, e) => {
810
810
  },
811
811
  handleClickFollow() {
812
812
  if (this.followItem)
813
- ke.delete(`${this.gateway}/api/rsv/follows/${this.position.followId}`, {
813
+ ze.delete(`${this.gateway}/api/rsv/follows/${this.position.followId}`, {
814
814
  headers: {
815
815
  Authorization: this.token
816
816
  }
@@ -825,7 +825,7 @@ const et = (o, e) => {
825
825
  lat: this.position.portId ? void 0 : this.position.lat,
826
826
  remark: this.followRemark
827
827
  };
828
- ke.post(`${this.gateway}/api/rsv/follows`, o, {
828
+ ze.post(`${this.gateway}/api/rsv/follows`, o, {
829
829
  headers: {
830
830
  Authorization: this.token
831
831
  }
@@ -836,7 +836,7 @@ const et = (o, e) => {
836
836
  }
837
837
  },
838
838
  async fetchForecastMeteo(o) {
839
- var r, t, h, f, b, z, Q;
839
+ var r, t, h, f, b, k, Q;
840
840
  if (this.meteoData = void 0, !this.token)
841
841
  return !1;
842
842
  this.loading = {
@@ -851,17 +851,17 @@ const et = (o, e) => {
851
851
  lat: this.position.lat,
852
852
  lng: this.position.lng,
853
853
  forecastDays: o || 7
854
- }, a = await ke.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, e, {
854
+ }, a = await ze.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, e, {
855
855
  headers: {
856
856
  Authorization: this.token
857
857
  }
858
858
  });
859
859
  (a == null ? void 0 : a.data.code) === 0 && (this.meteoData = {
860
860
  ...a == null ? void 0 : a.data.data
861
- }, this.etime = (r = a == null ? void 0 : a.data) == null ? void 0 : r.etime, this.positionGmt = (f = (h = (t = this.meteoData) == null ? void 0 : t.weather) == null ? void 0 : h[0]) == null ? void 0 : f.timezone, this.positionOffset = (Q = (z = (b = this.meteoData) == null ? void 0 : b.weather) == null ? void 0 : z[0]) == null ? void 0 : Q.offset, this.issuedDate = M(this.etime).utc().format("MMM-DD/HHmm[Z], YYYY"));
861
+ }, this.etime = (r = a == null ? void 0 : a.data) == null ? void 0 : r.etime, this.positionGmt = (f = (h = (t = this.meteoData) == null ? void 0 : t.weather) == null ? void 0 : h[0]) == null ? void 0 : f.timezone, this.positionOffset = (Q = (k = (b = this.meteoData) == null ? void 0 : b.weather) == null ? void 0 : k[0]) == null ? void 0 : Q.offset, this.issuedDate = M(this.etime).utc().format("MMM-DD/HHmm[Z], YYYY"));
862
862
  },
863
863
  async fetchHistoryMeteo(o) {
864
- var t, h, f, b, z, Q, G;
864
+ var t, h, f, b, k, Q, G;
865
865
  if (this.meteoData = void 0, !this.token)
866
866
  return !1;
867
867
  this.loading.meteogramEchart = !0, this.loading.hourlyTable = !0;
@@ -870,12 +870,12 @@ const et = (o, e) => {
870
870
  lng: this.position.lng,
871
871
  datetime: e,
872
872
  forecastDays: o
873
- }, r = await ke.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, a, {
873
+ }, r = await ze.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, a, {
874
874
  headers: {
875
875
  Authorization: this.token
876
876
  }
877
877
  });
878
- (r == null ? void 0 : r.data.code) === 0 && (this.meteoData = r == null ? void 0 : r.data.data, this.meteoData.showDateSelect = !1, this.etime = (t = r == null ? void 0 : r.data) == null ? void 0 : t.etime, this.positionGmt = (b = (f = (h = this.meteoData) == null ? void 0 : h.weather) == null ? void 0 : f[0]) == null ? void 0 : b.timezone, this.positionOffset = (G = (Q = (z = this.meteoData) == null ? void 0 : z.weather) == null ? void 0 : Q[0]) == null ? void 0 : G.offset, this.issuedDate = M(this.etime).utc().format("MMM-DD/HHmm[Z], YYYY"));
878
+ (r == null ? void 0 : r.data.code) === 0 && (this.meteoData = r == null ? void 0 : r.data.data, this.meteoData.showDateSelect = !1, this.etime = (t = r == null ? void 0 : r.data) == null ? void 0 : t.etime, this.positionGmt = (b = (f = (h = this.meteoData) == null ? void 0 : h.weather) == null ? void 0 : f[0]) == null ? void 0 : b.timezone, this.positionOffset = (G = (Q = (k = this.meteoData) == null ? void 0 : k.weather) == null ? void 0 : Q[0]) == null ? void 0 : G.offset, this.issuedDate = M(this.etime).utc().format("MMM-DD/HHmm[Z], YYYY"));
879
879
  },
880
880
  async handleRender() {
881
881
  if (this.disposeEcharts(), this.menuIndex === 1) {
@@ -927,7 +927,7 @@ const et = (o, e) => {
927
927
  };
928
928
  },
929
929
  initWeatherEchart() {
930
- const o = [], e = [], a = [], r = [], t = [], h = [], f = [], b = [], z = [], Q = [], G = {}, O = "data:image/svg+xml;base64," + window.btoa(
930
+ const o = [], e = [], a = [], r = [], t = [], h = [], f = [], b = [], k = [], Q = [], G = {}, O = "data:image/svg+xml;base64," + window.btoa(
931
931
  unescape(
932
932
  encodeURIComponent(
933
933
  '<svg t="1740385441519" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="10951" width="200" height="200"><path d="M512 804.83593751A276.87183211 276.87183211 0 0 1 235.12816789 527.9641054Q235.12816789 375.21005376 512 13.82031251q276.87183211 361.30792288 276.87183211 514.14379289a276.87183211 276.87183211 0 0 1-276.87183211 276.87183211zM294.4461577 527.9641054a217.47202472 217.47202472 0 0 0 217.5538423 217.55384231 19.79993605 19.79993605 0 1 0 0-39.51805453 177.9539702 177.9539702 0 0 1-177.9539702-178.03578778 19.79993605 19.79993605 0 0 0-39.5998721 0z" fill="#0c73a8" p-id="10952"></path></svg>'
@@ -941,16 +941,16 @@ const et = (o, e) => {
941
941
  )
942
942
  ), F = new Image(64, 64);
943
943
  F.src = U, F.onload = () => {
944
- var J, q, Z, V, _, $, ee, te, se, c, N, k, L;
944
+ var J, q, Z, V, _, $, ee, te, se, c, N, z, L;
945
945
  this.loading.weatherEchart = !1;
946
946
  for (let m = 0; m < 7; m++) {
947
947
  const P = M(this.pickedDate).clone().add(m, "d").format();
948
948
  o.push(W(P).tz(this.positionGmt).format("yyyy-MM-DD")), e.push(this.computeMMMDDLT(P)), a.push(m === 0 ? "Today" : this.computeWeekLT(P));
949
- const C = ((J = Le.pickDaily(this.meteoData, P)) == null ? void 0 : J[0]) || {};
950
- r.push(this.roundPrecision((Z = (q = C.weather) == null ? void 0 : q.temp) == null ? void 0 : Z.min, 0)), t.push(this.roundPrecision((_ = (V = C.weather) == null ? void 0 : V.temp) == null ? void 0 : _.max, 0)), b.push(this.roundPrecision((ee = ($ = C.weather) == null ? void 0 : $.wind) == null ? void 0 : ee.kts, 1) ?? "- kts"), Q.push(this.roundPrecision((se = (te = C.weather) == null ? void 0 : te.precip) == null ? void 0 : se.sum, 1) ?? "- mm"), h.push({ symbol: "image://" + ((c = C.weather) == null ? void 0 : c.url) }), f.push((N = C.weather) == null ? void 0 : N.name), z.push((L = (k = C.weather) == null ? void 0 : k.wind) == null ? void 0 : L.bearing);
949
+ const C = ((J = ke.pickDaily(this.meteoData, P)) == null ? void 0 : J[0]) || {};
950
+ r.push(this.roundPrecision((Z = (q = C.weather) == null ? void 0 : q.temp) == null ? void 0 : Z.min, 0)), t.push(this.roundPrecision((_ = (V = C.weather) == null ? void 0 : V.temp) == null ? void 0 : _.max, 0)), b.push(this.roundPrecision((ee = ($ = C.weather) == null ? void 0 : $.wind) == null ? void 0 : ee.kts, 1) ?? "- kts"), Q.push(this.roundPrecision((se = (te = C.weather) == null ? void 0 : te.precip) == null ? void 0 : se.sum, 1) ?? "- mm"), h.push({ symbol: "image://" + ((c = C.weather) == null ? void 0 : c.url) }), f.push((N = C.weather) == null ? void 0 : N.name), k.push((L = (z = C.weather) == null ? void 0 : z.wind) == null ? void 0 : L.bearing);
951
951
  const I = document.createElement("canvas"), y = I.getContext("2d");
952
952
  I.width = F.width, I.height = F.height;
953
- const ge = z[m] * (Math.PI / 180);
953
+ const ge = k[m] * (Math.PI / 180);
954
954
  y.translate(I.width / 2, I.height / 2), y.rotate(ge), y.translate(-F.width / 2, -F.height / 2), y.drawImage(F, 0, 0, 64, 64);
955
955
  const Ae = I.toDataURL();
956
956
  G[`WindIcon${m}`] = {
@@ -1316,14 +1316,14 @@ const et = (o, e) => {
1316
1316
  )
1317
1317
  ), t = new Image(64, 64);
1318
1318
  t.src = r, t.onload = () => {
1319
- var f, b, z, Q, G, O, U, F, ae, ie, le, S, R, J, q, Z, V, _, $, ee, te, se, c, N, k, L, m, P, C, I, y, de, ge, Ae, g, pe, x, Y, E, he, T;
1319
+ var f, b, k, Q, G, O, U, F, ae, ie, le, S, R, J, q, Z, V, _, $, ee, te, se, c, N, z, L, m, P, C, I, y, de, ge, Ae, g, pe, x, Y, E, he, T;
1320
1320
  this.loading.meteogramEchart = !1;
1321
1321
  const h = W(this.etime).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format();
1322
1322
  for (let l = 0; l < 7 * 24; l++) {
1323
1323
  const X = M(h).clone().add(l, "h").format();
1324
1324
  (f = this.meteogramData) == null || f.dates.push(X);
1325
- const v = ((b = Le.pickHourly(o, X)) == null ? void 0 : b[0]) || {};
1326
- if (l % 12 === 0 && l % 24 !== 0 ? (z = this.meteogramData) == null || z.xDates.push(W(X).tz(this.positionGmt).format("MMM-DD")) : (Q = this.meteogramData) == null || Q.xDates.push(""), l % 3 === 0 ? (G = this.meteogramData) == null || G.hours.push(this.computeHourLT(X)) : (O = this.meteogramData) == null || O.hours.push(""), (F = this.meteogramData) == null || F.temperaturesX.push([X, this.roundPrecision((U = v == null ? void 0 : v.weather) == null ? void 0 : U.temp, 0)]), (ie = this.meteogramData) == null || ie.temperaturesY.push(this.roundPrecision((ae = v == null ? void 0 : v.weather) == null ? void 0 : ae.temp, 0)), (R = this.meteogramData) == null || R.precip.push(this.roundPrecision((S = (le = v == null ? void 0 : v.weather) == null ? void 0 : le.precip) == null ? void 0 : S.sum, 1)), (Z = this.meteogramData) == null || Z.windspeed.push(this.roundPrecision((q = (J = v.weather) == null ? void 0 : J.wind) == null ? void 0 : q.kts, 1)), ($ = this.meteogramData) == null || $.windGusts.push(this.roundPrecision((_ = (V = v == null ? void 0 : v.weather) == null ? void 0 : V.wind) == null ? void 0 : _.gusts, 1)), (se = this.meteogramData) == null || se.sigWaveHeight.push(this.roundPrecision((te = (ee = v == null ? void 0 : v.wave) == null ? void 0 : ee.sig) == null ? void 0 : te.height)), (k = this.meteogramData) == null || k.swellHeight.push(this.roundPrecision((N = (c = v == null ? void 0 : v.wave) == null ? void 0 : c.swell) == null ? void 0 : N.height)), l % 6 === 0 ? ((m = this.meteogramData) == null || m.weatherIcons.push({ symbol: "image://" + ((L = v.weather) == null ? void 0 : L.url), symbolSize: 30 }), (C = this.meteogramData) == null || C.weatherNames.push((P = v.weather) == null ? void 0 : P.name)) : ((y = this.meteogramData) == null || y.weatherIcons.push({ symbol: "image://" + ((I = v.weather) == null ? void 0 : I.url), symbolSize: 0 }), (de = this.meteogramData) == null || de.weatherNames.push("")), l % 3 === 0 ? (g = this.meteogramData) == null || g.windDir.push((Ae = (ge = v.weather) == null ? void 0 : ge.wind) == null ? void 0 : Ae.bearing) : (pe = this.meteogramData) == null || pe.windDir.push(void 0), l % 3 === 0) {
1325
+ const v = ((b = ke.pickHourly(o, X)) == null ? void 0 : b[0]) || {};
1326
+ if (l % 12 === 0 && l % 24 !== 0 ? (k = this.meteogramData) == null || k.xDates.push(W(X).tz(this.positionGmt).format("MMM-DD")) : (Q = this.meteogramData) == null || Q.xDates.push(""), l % 3 === 0 ? (G = this.meteogramData) == null || G.hours.push(this.computeHourLT(X)) : (O = this.meteogramData) == null || O.hours.push(""), (F = this.meteogramData) == null || F.temperaturesX.push([X, this.roundPrecision((U = v == null ? void 0 : v.weather) == null ? void 0 : U.temp, 0)]), (ie = this.meteogramData) == null || ie.temperaturesY.push(this.roundPrecision((ae = v == null ? void 0 : v.weather) == null ? void 0 : ae.temp, 0)), (R = this.meteogramData) == null || R.precip.push(this.roundPrecision((S = (le = v == null ? void 0 : v.weather) == null ? void 0 : le.precip) == null ? void 0 : S.sum, 1)), (Z = this.meteogramData) == null || Z.windspeed.push(this.roundPrecision((q = (J = v.weather) == null ? void 0 : J.wind) == null ? void 0 : q.kts, 1)), ($ = this.meteogramData) == null || $.windGusts.push(this.roundPrecision((_ = (V = v == null ? void 0 : v.weather) == null ? void 0 : V.wind) == null ? void 0 : _.gusts, 1)), (se = this.meteogramData) == null || se.sigWaveHeight.push(this.roundPrecision((te = (ee = v == null ? void 0 : v.wave) == null ? void 0 : ee.sig) == null ? void 0 : te.height)), (z = this.meteogramData) == null || z.swellHeight.push(this.roundPrecision((N = (c = v == null ? void 0 : v.wave) == null ? void 0 : c.swell) == null ? void 0 : N.height)), l % 6 === 0 ? ((m = this.meteogramData) == null || m.weatherIcons.push({ symbol: "image://" + ((L = v.weather) == null ? void 0 : L.url), symbolSize: 30 }), (C = this.meteogramData) == null || C.weatherNames.push((P = v.weather) == null ? void 0 : P.name)) : ((y = this.meteogramData) == null || y.weatherIcons.push({ symbol: "image://" + ((I = v.weather) == null ? void 0 : I.url), symbolSize: 0 }), (de = this.meteogramData) == null || de.weatherNames.push("")), l % 3 === 0 ? (g = this.meteogramData) == null || g.windDir.push((Ae = (ge = v.weather) == null ? void 0 : ge.wind) == null ? void 0 : Ae.bearing) : (pe = this.meteogramData) == null || pe.windDir.push(void 0), l % 3 === 0) {
1327
1327
  const re = document.createElement("canvas"), j = re.getContext("2d");
1328
1328
  re.width = t.width, re.height = t.height;
1329
1329
  const u = ((x = this.meteogramData) == null ? void 0 : x.windDir[l]) * (Math.PI / 180);
@@ -1375,14 +1375,14 @@ const et = (o, e) => {
1375
1375
  )
1376
1376
  ), b = new Image(64, 64);
1377
1377
  b.src = f, b.onload = () => {
1378
- var Q, G, O, U, F, ae, ie, le, S, R, J, q, Z, V, _, $, ee, te, se, c, N, k, L, m, P, C, I, y, de, ge, Ae, g, pe, x, Y, E, he, T, l, X, v, re;
1378
+ var Q, G, O, U, F, ae, ie, le, S, R, J, q, Z, V, _, $, ee, te, se, c, N, z, L, m, P, C, I, y, de, ge, Ae, g, pe, x, Y, E, he, T, l, X, v, re;
1379
1379
  this.loading.meteogramEchart = !1;
1380
- const z = W(t).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format();
1380
+ const k = W(t).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format();
1381
1381
  for (let j = 0; j < r * 24; j++) {
1382
- const d = M(z).clone().add(j, "h").format();
1382
+ const d = M(k).clone().add(j, "h").format();
1383
1383
  (Q = this.meteogramData) == null || Q.dates.push(d);
1384
- const u = ((G = Le.pickHourly(o, d)) == null ? void 0 : G[0]) || {};
1385
- if ((U = this.meteogramData) == null || U.temperaturesY.push(this.roundPrecision((O = u == null ? void 0 : u.weather) == null ? void 0 : O.temp, 0)), (ie = this.meteogramData) == null || ie.windspeed.push(this.roundPrecision((ae = (F = u.weather) == null ? void 0 : F.wind) == null ? void 0 : ae.kts, 1)), (R = this.meteogramData) == null || R.windGusts.push(this.roundPrecision((S = (le = u == null ? void 0 : u.weather) == null ? void 0 : le.wind) == null ? void 0 : S.gusts, 1)), (Z = this.meteogramData) == null || Z.sigWaveHeight.push(this.roundPrecision((q = (J = u == null ? void 0 : u.wave) == null ? void 0 : J.sig) == null ? void 0 : q.height)), ($ = this.meteogramData) == null || $.swellHeight.push(this.roundPrecision((_ = (V = u == null ? void 0 : u.wave) == null ? void 0 : V.swell) == null ? void 0 : _.height)), j % 3 === 0 ? ((se = this.meteogramData) == null || se.precip.push(this.roundPrecision((te = (ee = u == null ? void 0 : u.weather) == null ? void 0 : ee.precip) == null ? void 0 : te.sum3Hours, 1)), (N = this.meteogramData) == null || N.temperaturesX.push([d, this.roundPrecision((c = u == null ? void 0 : u.weather) == null ? void 0 : c.temp, 0)])) : (k = this.meteogramData) == null || k.precip.push(null), j % 12 === 0 && j % 24 !== 0 ? (L = this.meteogramData) == null || L.xDates.push(W(d).tz(this.positionGmt).format("MMM-DD")) : (m = this.meteogramData) == null || m.xDates.push(""), j % 6 === 0 ? (P = this.meteogramData) == null || P.hours.push(this.computeHourLT(d)) : (C = this.meteogramData) == null || C.hours.push(""), j % 12 === 0 ? ((y = this.meteogramData) == null || y.weatherIcons.push({ symbol: "image://" + ((I = u.weather) == null ? void 0 : I.url), symbolSize: 30 }), (ge = this.meteogramData) == null || ge.weatherNames.push((de = u.weather) == null ? void 0 : de.name)) : ((g = this.meteogramData) == null || g.weatherIcons.push({ symbol: "image://" + ((Ae = u.weather) == null ? void 0 : Ae.url), symbolSize: 0 }), (pe = this.meteogramData) == null || pe.weatherNames.push("")), j % 6 === 0 ? (E = this.meteogramData) == null || E.windDir.push((Y = (x = u.weather) == null ? void 0 : x.wind) == null ? void 0 : Y.bearing) : (he = this.meteogramData) == null || he.windDir.push(void 0), j % 6 === 0) {
1384
+ const u = ((G = ke.pickHourly(o, d)) == null ? void 0 : G[0]) || {};
1385
+ if ((U = this.meteogramData) == null || U.temperaturesY.push(this.roundPrecision((O = u == null ? void 0 : u.weather) == null ? void 0 : O.temp, 0)), (ie = this.meteogramData) == null || ie.windspeed.push(this.roundPrecision((ae = (F = u.weather) == null ? void 0 : F.wind) == null ? void 0 : ae.kts, 1)), (R = this.meteogramData) == null || R.windGusts.push(this.roundPrecision((S = (le = u == null ? void 0 : u.weather) == null ? void 0 : le.wind) == null ? void 0 : S.gusts, 1)), (Z = this.meteogramData) == null || Z.sigWaveHeight.push(this.roundPrecision((q = (J = u == null ? void 0 : u.wave) == null ? void 0 : J.sig) == null ? void 0 : q.height)), ($ = this.meteogramData) == null || $.swellHeight.push(this.roundPrecision((_ = (V = u == null ? void 0 : u.wave) == null ? void 0 : V.swell) == null ? void 0 : _.height)), j % 3 === 0 ? ((se = this.meteogramData) == null || se.precip.push(this.roundPrecision((te = (ee = u == null ? void 0 : u.weather) == null ? void 0 : ee.precip) == null ? void 0 : te.sum3Hours, 1)), (N = this.meteogramData) == null || N.temperaturesX.push([d, this.roundPrecision((c = u == null ? void 0 : u.weather) == null ? void 0 : c.temp, 0)])) : (z = this.meteogramData) == null || z.precip.push(null), j % 12 === 0 && j % 24 !== 0 ? (L = this.meteogramData) == null || L.xDates.push(W(d).tz(this.positionGmt).format("MMM-DD")) : (m = this.meteogramData) == null || m.xDates.push(""), j % 6 === 0 ? (P = this.meteogramData) == null || P.hours.push(this.computeHourLT(d)) : (C = this.meteogramData) == null || C.hours.push(""), j % 12 === 0 ? ((y = this.meteogramData) == null || y.weatherIcons.push({ symbol: "image://" + ((I = u.weather) == null ? void 0 : I.url), symbolSize: 30 }), (ge = this.meteogramData) == null || ge.weatherNames.push((de = u.weather) == null ? void 0 : de.name)) : ((g = this.meteogramData) == null || g.weatherIcons.push({ symbol: "image://" + ((Ae = u.weather) == null ? void 0 : Ae.url), symbolSize: 0 }), (pe = this.meteogramData) == null || pe.weatherNames.push("")), j % 6 === 0 ? (E = this.meteogramData) == null || E.windDir.push((Y = (x = u.weather) == null ? void 0 : x.wind) == null ? void 0 : Y.bearing) : (he = this.meteogramData) == null || he.windDir.push(void 0), j % 6 === 0) {
1386
1386
  const K = document.createElement("canvas"), D = K.getContext("2d");
1387
1387
  K.width = b.width, K.height = b.height;
1388
1388
  const H = ((T = this.meteogramData) == null ? void 0 : T.windDir[j]) * (Math.PI / 180);
@@ -1406,7 +1406,7 @@ const et = (o, e) => {
1406
1406
  };
1407
1407
  },
1408
1408
  initMeteogramEchart(o) {
1409
- var ae, ie, le, S, R, J, q, Z, V, _, $, ee, te, se, c, N, k, L, m, P, C, I, y, de, ge, Ae, g, pe, x, Y, E, he, T, l, X, v, re, j;
1409
+ var ae, ie, le, S, R, J, q, Z, V, _, $, ee, te, se, c, N, z, L, m, P, C, I, y, de, ge, Ae, g, pe, x, Y, E, he, T, l, X, v, re, j;
1410
1410
  const e = xe.init(document.getElementById("weather-icons")), a = {
1411
1411
  grid: {
1412
1412
  show: !0,
@@ -1481,8 +1481,8 @@ const et = (o, e) => {
1481
1481
  ]
1482
1482
  };
1483
1483
  e.setOption(a);
1484
- let r = Math.max(...this.meteogramData.temperaturesY.filter((d) => typeof d == "number" && !isNaN(d))), t = Math.min(...this.meteogramData.temperaturesY.filter((d) => typeof d == "number" && !isNaN(d))) > 0 ? 0 : Math.min(...this.meteogramData.temperaturesY.filter((d) => typeof d == "number" && !isNaN(d))), h = Math.floor(t / 5) * 5, f = Math.ceil(r / 5) * 5, b = Math.ceil((f - h) / 5), z = "", Q = [];
1485
- o === 7 ? (z = "Precip.1h ( mm ) ", Q = [
1484
+ let r = Math.max(...this.meteogramData.temperaturesY.filter((d) => typeof d == "number" && !isNaN(d))), t = Math.min(...this.meteogramData.temperaturesY.filter((d) => typeof d == "number" && !isNaN(d))) > 0 ? 0 : Math.min(...this.meteogramData.temperaturesY.filter((d) => typeof d == "number" && !isNaN(d))), h = Math.floor(t / 5) * 5, f = Math.ceil(r / 5) * 5, b = Math.ceil((f - h) / 5), k = "", Q = [];
1485
+ o === 7 ? (k = "Precip.1h ( mm ) ", Q = [
1486
1486
  {
1487
1487
  gte: 50,
1488
1488
  color: "rgba(197, 5, 58, 1)",
@@ -1511,7 +1511,7 @@ const et = (o, e) => {
1511
1511
  color: "rgba(172, 210, 255, 1)",
1512
1512
  label: "Light, <2mm"
1513
1513
  }
1514
- ]) : (z = "Precip.3h ( mm ) ", Q = [
1514
+ ]) : (k = "Precip.3h ( mm ) ", Q = [
1515
1515
  {
1516
1516
  gte: 100,
1517
1517
  color: "rgba(197, 5, 58, 1)",
@@ -1567,24 +1567,24 @@ const et = (o, e) => {
1567
1567
  show: !0,
1568
1568
  position: "right",
1569
1569
  formatter: (d) => {
1570
- var K, D, De, H, oe, fe, B, i, p, Qe, ze, ce, ye, Pe, Ne, Te, be, Ye, je, Ke, Ue, Re, Xe, We, Je, qe;
1571
- const u = (K = d == null ? void 0 : d[0]) == null ? void 0 : K.dataIndex;
1570
+ var K, D, De, H, oe, fe, B, i, w, ve, Me, ce, ye, Pe, Ne, Te, Ee, Ye, je, Ke, Ue, Re, Xe, We, Je, qe;
1571
+ const u = (K = d == null ? void 0 : d.find((Be) => Be.seriesType === "bar")) == null ? void 0 : K.dataIndex;
1572
1572
  if (d.find((Be) => Be.seriesType === "scatter"))
1573
1573
  return !1;
1574
1574
  {
1575
1575
  let Be = "";
1576
1576
  return o === 7 ? (((D = d[1]) == null ? void 0 : D.value) < 2 ? Be = "rgba(172, 210, 255, 1)" : ((De = d[1]) == null ? void 0 : De.value) <= 3.9 ? Be = "rgba(3, 248, 103, 1)" : ((H = d[1]) == null ? void 0 : H.value) <= 7.9 ? Be = "rgba(190, 226, 2, 18)" : ((oe = d[1]) == null ? void 0 : oe.value) <= 19.9 ? Be = "rgba(248, 1, 1, 1)" : ((fe = d[1]) == null ? void 0 : fe.value) >= 20 ? Be = "rgba(197, 5, 58, 1)" : Be = "rgba(172, 210, 255, 1)", `<div style="font-size: 13px;"><strong>${W((B = this.meteogramData) == null ? void 0 : B.dates[u]).tz(this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
1577
1577
  <div style="display: ${(i = this.meteogramData) != null && i.weatherNames[u] ? "block" : "none"}; font-size: 13px;">
1578
- <span>Weather : </span><strong>${(p = this.meteogramData) == null ? void 0 : p.weatherNames[u]}</strong>
1578
+ <span>Weather : </span><strong>${(w = this.meteogramData) == null ? void 0 : w.weatherNames[u]}</strong>
1579
1579
  </div>
1580
1580
  <div style="font-size: 13px;">
1581
1581
  <span style="display:inline-block; height: 10px;width: 10px;border-radius: 50%;background-color: #FF9500;}"></span>
1582
- <span>Temperature : </span><strong>${(ze = (Qe = d[0]) == null ? void 0 : Qe.value) == null ? void 0 : ze[1]}</strong><span style="padding-left: 3px;">℃</span>
1582
+ <span>Temperature : </span><strong>${(Me = (ve = d[0]) == null ? void 0 : ve.value) == null ? void 0 : Me[1]}</strong><span style="padding-left: 3px;">℃</span>
1583
1583
  </div>
1584
1584
  <div style="font-size: 13px;">
1585
1585
  <span style="display:inline-block; height: 10px;width: 10px;border-radius: 50%;background: ${Be};"></span>
1586
1586
  <span>Precip.1h : </span><strong>${(ce = d[1]) == null ? void 0 : ce.value}</strong><span style="padding-left: 3px;">mm</span>
1587
- </div>`) : o === 14 ? (((ye = d[1]) == null ? void 0 : ye.value) < 5 ? Be = "rgba(172, 210, 255, 1)" : ((Pe = d[1]) == null ? void 0 : Pe.value) <= 9.9 ? Be = "rgba(3, 248, 103, 1)" : ((Ne = d[1]) == null ? void 0 : Ne.value) <= 24.9 ? Be = "rgba(190, 226, 2, 18)" : ((Te = d[1]) == null ? void 0 : Te.value) <= 49.9 ? Be = "rgba(248, 1, 1, 1)" : ((be = d[1]) == null ? void 0 : be.value) > 50 ? Be = "rgba(197, 5, 58, 1)" : Be = "rgba(172, 210, 255, 1)", `<div style="font-size: 13px;"
1587
+ </div>`) : o === 14 ? (((ye = d[1]) == null ? void 0 : ye.value) < 5 ? Be = "rgba(172, 210, 255, 1)" : ((Pe = d[1]) == null ? void 0 : Pe.value) <= 9.9 ? Be = "rgba(3, 248, 103, 1)" : ((Ne = d[1]) == null ? void 0 : Ne.value) <= 24.9 ? Be = "rgba(190, 226, 2, 18)" : ((Te = d[1]) == null ? void 0 : Te.value) <= 49.9 ? Be = "rgba(248, 1, 1, 1)" : ((Ee = d[1]) == null ? void 0 : Ee.value) > 50 ? Be = "rgba(197, 5, 58, 1)" : Be = "rgba(172, 210, 255, 1)", `<div style="font-size: 13px;"
1588
1588
  <strong>${W((Ye = this.meteogramData) == null ? void 0 : Ye.dates[u]).tz(this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong>
1589
1589
  </div>
1590
1590
  <div style="display: ${(je = this.meteogramData) != null && je.weatherNames[u] ? "block" : "none"}; font-size: 13px;">
@@ -1721,7 +1721,7 @@ const et = (o, e) => {
1721
1721
  },
1722
1722
  {
1723
1723
  left: (N = this.meteogramData) == null ? void 0 : N.offset,
1724
- right: (k = this.meteogramData) == null ? void 0 : k.offset,
1724
+ right: (z = this.meteogramData) == null ? void 0 : z.offset,
1725
1725
  type: "category",
1726
1726
  show: !1,
1727
1727
  axisLine: {
@@ -1768,7 +1768,7 @@ const et = (o, e) => {
1768
1768
  {
1769
1769
  position: "right",
1770
1770
  type: "value",
1771
- name: z,
1771
+ name: k,
1772
1772
  min: 0,
1773
1773
  max: Math.ceil((Math.max(...this.meteogramData.precip.filter((d) => typeof d == "number" && !isNaN(d))) + 1) / 5) * 5,
1774
1774
  interval: Math.ceil((Math.max(...this.meteogramData.precip.filter((d) => typeof d == "number" && !isNaN(d))) + 1) / 5),
@@ -1892,24 +1892,24 @@ const et = (o, e) => {
1892
1892
  show: !0,
1893
1893
  position: "right",
1894
1894
  formatter: (d) => {
1895
- var K, D, De, H, oe, fe;
1895
+ var K, D, De, H, oe, fe, B, i, w, ve;
1896
1896
  const u = (K = d == null ? void 0 : d[0]) == null ? void 0 : K.dataIndex;
1897
- return d.find((B) => B.seriesType === "scatter") ? !1 : `<div style="font-size: 13px;"><strong>${W((D = this.meteogramData) == null ? void 0 : D.dates[u]).tz(this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
1898
- <div style="font-size: 13px;">
1897
+ return d.find((Me) => Me.seriesType === "scatter") ? !1 : `<div style="font-size: 13px;"><strong>${W((D = this.meteogramData) == null ? void 0 : D.dates[u]).tz(this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
1898
+ <div style="font-size: 13px;display: ${isNaN((De = d[0]) == null ? void 0 : De.value) ? "none" : "block"}">
1899
1899
  <span style="display:inline-block; height: 10px;width: 10px;border-radius: 50%;background-color: #60c43e;}"></span>
1900
- <span>Wind Speed : </span><strong>${(De = d[0]) == null ? void 0 : De.value}</strong><span style="padding-left: 3px;">kts</span>
1900
+ <span>Wind Speed : </span><strong>${(H = d[0]) == null ? void 0 : H.value}</strong><span style="padding-left: 3px;">kts</span>
1901
1901
  </div>
1902
- <div style="font-size: 13px;">
1902
+ <div style="font-size: 13px;display: ${isNaN((oe = d[2]) == null ? void 0 : oe.value) ? "none" : "block"}">
1903
1903
  <span style="display:inline-block; height: 10px;width: 10px;border-radius: 50%;background-color: #4ba229;}"></span>
1904
- <span>Wind Gusts : </span><strong>${(H = d[2]) == null ? void 0 : H.value}</strong><span style="padding-left: 3px;">kts</span>
1904
+ <span>Wind Gusts : </span><strong>${(fe = d[2]) == null ? void 0 : fe.value}</strong><span style="padding-left: 3px;">kts</span>
1905
1905
  </div>
1906
- <div style="font-size: 13px;">
1906
+ <div style="font-size: 13px;display: ${isNaN((B = d[3]) == null ? void 0 : B.value) ? "none" : "block"}">
1907
1907
  <span style="display:inline-block; height: 10px;width: 10px;border-radius: 50%;background-color: #21baa3;"></span>
1908
- <span>Swell Height : </span><strong>${(oe = d[3]) == null ? void 0 : oe.value}</strong><span style="padding-left: 3px;">m</span>
1908
+ <span>Swell Height : </span><strong>${(i = d[3]) == null ? void 0 : i.value}</strong><span style="padding-left: 3px;">m</span>
1909
1909
  </div>
1910
- <div style="font-size: 13px;">
1910
+ <div style="font-size: 13px;display: ${isNaN((w = d[4]) == null ? void 0 : w.value) ? "none" : "block"}">
1911
1911
  <span style="display:inline-block; height: 10px;width: 10px;border-radius: 50%;background-color: #049f9c;}"></span>
1912
- <span>Sig.Wave Height : </span><strong>${(fe = d[4]) == null ? void 0 : fe.value}</strong><span style="padding-left: 3px;">m</span>
1912
+ <span>Sig.Wave Height : </span><strong>${(ve = d[4]) == null ? void 0 : ve.value}</strong><span style="padding-left: 3px;">m</span>
1913
1913
  </div>
1914
1914
  `;
1915
1915
  }
@@ -2191,7 +2191,7 @@ const et = (o, e) => {
2191
2191
  });
2192
2192
  },
2193
2193
  async fetchSeasonalData() {
2194
- var t, h, f, b, z, Q, G, O, U, F, ae, ie, le, S, R, J, q, Z, V, _, $, ee, te, se, c, N, k, L, m, P, C;
2194
+ var t, h, f, b, k, Q, G, O, U, F, ae, ie, le, S, R, J, q, Z, V, _, $, ee, te, se, c, N, z, L, m, P, C;
2195
2195
  if (!this.token)
2196
2196
  return !1;
2197
2197
  this.loading.seasonalEchart = !0, this.seasonalData = {
@@ -2221,24 +2221,24 @@ const et = (o, e) => {
2221
2221
  startDate: W().tz(this.positionGmt).set({ year: e.year(), month: e.month(), date: 1, hour: 0, minute: 0, second: 0 }).format(),
2222
2222
  endDate: W().tz(this.positionGmt).set({ year: e.year(), month: e.month() + 1, date: 1, hour: 0, minute: 0, second: 0 }).format(),
2223
2223
  pastYear: 1
2224
- }, r = await ke.post(`${this.gateway}/api/arc/meteo2/spot/seasonal`, a, {
2224
+ }, r = await ze.post(`${this.gateway}/api/arc/meteo2/spot/seasonal`, a, {
2225
2225
  headers: {
2226
2226
  Authorization: this.token
2227
2227
  }
2228
2228
  });
2229
2229
  if ((r == null ? void 0 : r.data.code) === 0) {
2230
- this.etime = (t = r == null ? void 0 : r.data) == null ? void 0 : t.etime, this.positionGmt = (b = (f = (h = this.meteoData) == null ? void 0 : h.weather) == null ? void 0 : f[0]) == null ? void 0 : b.timezone, this.positionOffset = (G = (Q = (z = this.meteoData) == null ? void 0 : z.weather) == null ? void 0 : Q[0]) == null ? void 0 : G.offset, this.issuedDate = M(this.etime).utc().format("MMM-DD/HHmm[Z], YYYY");
2230
+ this.etime = (t = r == null ? void 0 : r.data) == null ? void 0 : t.etime, this.positionGmt = (b = (f = (h = this.meteoData) == null ? void 0 : h.weather) == null ? void 0 : f[0]) == null ? void 0 : b.timezone, this.positionOffset = (G = (Q = (k = this.meteoData) == null ? void 0 : k.weather) == null ? void 0 : Q[0]) == null ? void 0 : G.offset, this.issuedDate = M(this.etime).utc().format("MMM-DD/HHmm[Z], YYYY");
2231
2231
  let I = (O = r == null ? void 0 : r.data.data) == null ? void 0 : O.seasonal, y = W(this.etime).tz(this.positionGmt).set({ year: e.year(), month: e.month(), date: 1, hour: 0, minute: 0, second: 0 }).format();
2232
2232
  const de = M(a.endDate).diff(M(a.startDate), "day", !0);
2233
2233
  for (let x = 0; x < de; x++) {
2234
- const Y = M(y).clone().add(x, "d").format(), E = ((U = Le.pickDaily(I, Y)) == null ? void 0 : U[0]) || {};
2234
+ const Y = M(y).clone().add(x, "d").format(), E = ((U = ke.pickDaily(I, Y)) == null ? void 0 : U[0]) || {};
2235
2235
  (F = this.seasonalData) == null || F.dates.push(W(Y).tz(this.positionGmt).format("MMM-DD")), (ae = this.seasonalData) == null || ae.xDates.push(W(Y).tz(this.positionGmt).format("DD")), (S = this.seasonalData) == null || S.highTemp.push(this.roundPrecision((le = (ie = E == null ? void 0 : E.weather) == null ? void 0 : ie.temp) == null ? void 0 : le.max, 0)), (q = this.seasonalData) == null || q.lowTemp.push(this.roundPrecision((J = (R = E == null ? void 0 : E.weather) == null ? void 0 : R.temp) == null ? void 0 : J.min, 0)), (_ = this.seasonalData) == null || _.windSpeed.push(this.roundPrecision((V = (Z = E.weather) == null ? void 0 : Z.wind) == null ? void 0 : V.kts, 1)), (te = this.seasonalData) == null || te.windDirection.push((ee = ($ = E.weather) == null ? void 0 : $.wind) == null ? void 0 : ee.direction), (N = this.seasonalData) == null || N.precip.push(this.roundPrecision((c = (se = E == null ? void 0 : E.weather) == null ? void 0 : se.precip) == null ? void 0 : c.sum, 1));
2236
2236
  }
2237
- (((L = (k = r == null ? void 0 : r.data.data) == null ? void 0 : k.past) == null ? void 0 : L.reverse()) || []).forEach((x, Y) => {
2237
+ (((L = (z = r == null ? void 0 : r.data.data) == null ? void 0 : z.past) == null ? void 0 : L.reverse()) || []).forEach((x, Y) => {
2238
2238
  var E, he, T, l, X, v, re, j, d, u, K, D, De;
2239
2239
  y = W(this.etime).tz(this.positionGmt).set({ year: e.year() - (Y + 1), month: e.month(), date: 1, hour: 0, minute: 0, second: 0 }).format();
2240
2240
  for (let H = 0; H < de; H++) {
2241
- const oe = M(y).clone().add(H, "d").format(), fe = ((E = Le.pickDaily(x, oe)) == null ? void 0 : E[0]) || {};
2241
+ const oe = M(y).clone().add(H, "d").format(), fe = ((E = ke.pickDaily(x, oe)) == null ? void 0 : E[0]) || {};
2242
2242
  (l = this.seasonalData) == null || l.lastYearHighTemp.push(this.roundPrecision((T = (he = fe == null ? void 0 : fe.weather) == null ? void 0 : he.temp) == null ? void 0 : T.max, 0)), (re = this.seasonalData) == null || re.lastYearLowTemp.push(this.roundPrecision((v = (X = fe == null ? void 0 : fe.weather) == null ? void 0 : X.temp) == null ? void 0 : v.min, 0)), (u = this.seasonalData) == null || u.lastYearWindSpeed.push(this.roundPrecision((d = (j = fe.weather) == null ? void 0 : j.wind) == null ? void 0 : d.kts, 1)), (De = this.seasonalData) == null || De.lastYearPrecip.push(this.roundPrecision((D = (K = fe == null ? void 0 : fe.weather) == null ? void 0 : K.precip) == null ? void 0 : D.sum, 1));
2243
2243
  }
2244
2244
  }), this.seasonalData.offset = 4 + 0.5 / ((P = (m = this.seasonalData) == null ? void 0 : m.dates) == null ? void 0 : P.length) * 92 + "%", this.seasonalData.minHighTemp = Math.min(...this.seasonalData.highTemp.filter((x) => typeof x == "number" && !isNaN(x))), this.seasonalData.maxHighTemp = Math.max(...this.seasonalData.highTemp.filter((x) => typeof x == "number" && !isNaN(x))), this.seasonalData.minLowTemp = Math.min(...this.seasonalData.lowTemp.filter((x) => typeof x == "number" && !isNaN(x))), this.seasonalData.maxLowTemp = Math.max(...this.seasonalData.lowTemp.filter((x) => typeof x == "number" && !isNaN(x)));
@@ -2296,8 +2296,8 @@ const et = (o, e) => {
2296
2296
  show: !0,
2297
2297
  position: "right",
2298
2298
  formatter: (c) => {
2299
- var k, L, m, P, C, I;
2300
- const N = (k = c == null ? void 0 : c[0]) == null ? void 0 : k.dataIndex;
2299
+ var z, L, m, P, C, I;
2300
+ const N = (z = c == null ? void 0 : c[0]) == null ? void 0 : z.dataIndex;
2301
2301
  return c.find((y) => y.seriesType === "scatter") ? !1 : `<div style="font-size: 13px;"><strong>${(L = this.seasonalData) == null ? void 0 : L.dates[N]}</strong></div>
2302
2302
  <div style="font-size: 13px;">
2303
2303
  <span style="display:inline-block; height: 10px;width: 10px;border-radius: 50%;background-color: #FF9500;}"></span>
@@ -2439,8 +2439,8 @@ const et = (o, e) => {
2439
2439
  image: (() => {
2440
2440
  const N = document.createElementNS("http://www.w3.org/2000/svg", "svg");
2441
2441
  N.setAttribute("width", "10"), N.setAttribute("height", "5"), N.setAttribute("viewBox", "0 0 10 5");
2442
- const k = document.createElementNS("http://www.w3.org/2000/svg", "rect");
2443
- k.setAttribute("x", "0"), k.setAttribute("y", "0"), k.setAttribute("width", "10"), k.setAttribute("height", "5"), k.setAttribute("fill", c), N.appendChild(k);
2442
+ const z = document.createElementNS("http://www.w3.org/2000/svg", "rect");
2443
+ z.setAttribute("x", "0"), z.setAttribute("y", "0"), z.setAttribute("width", "10"), z.setAttribute("height", "5"), z.setAttribute("fill", c), N.appendChild(z);
2444
2444
  const L = document.createElementNS("http://www.w3.org/2000/svg", "line");
2445
2445
  L.setAttribute("x1", "0"), L.setAttribute("y1", "0"), L.setAttribute("x2", "10"), L.setAttribute("y2", "5"), L.setAttribute("stroke", "#fff"), L.setAttribute("stroke-width", "1"), N.appendChild(L);
2446
2446
  const m = new XMLSerializer().serializeToString(N), P = new Blob([m], { type: "image/svg+xml;charset=utf-8" });
@@ -2478,8 +2478,8 @@ const et = (o, e) => {
2478
2478
  show: !0,
2479
2479
  position: "right",
2480
2480
  formatter: (c) => {
2481
- var k, L, m, P, C, I, y, de, ge, Ae, g, pe, x, Y, E, he;
2482
- const N = (k = c == null ? void 0 : c[0]) == null ? void 0 : k.dataIndex;
2481
+ var z, L, m, P, C, I, y, de, ge, Ae, g, pe, x, Y, E, he;
2482
+ const N = (z = c == null ? void 0 : c[0]) == null ? void 0 : z.dataIndex;
2483
2483
  if (c.find((T) => T.seriesType === "scatter"))
2484
2484
  return !1;
2485
2485
  {
@@ -2748,7 +2748,7 @@ const et = (o, e) => {
2748
2748
  document.getElementById("weather-chart") && xe.dispose(document.getElementById("weather-chart")), document.getElementById("weather-icons") && xe.dispose(document.getElementById("weather-icons")), document.getElementById("weather-condition") && xe.dispose(document.getElementById("weather-condition")), document.getElementById("wave-swell") && xe.dispose(document.getElementById("wave-swell")), document.getElementById("temperature-echart") && xe.dispose(document.getElementById("temperature-echart")), document.getElementById("wind-precip-echart") && xe.dispose(document.getElementById("wind-precip-echart"));
2749
2749
  },
2750
2750
  initHoursTableData() {
2751
- var o, e, a, r, t, h, f, b, z, Q, G, O, U, F, ae, ie, le, S, R, J, q, Z, V, _, $, ee, te, se, c, N, k, L, m, P;
2751
+ var o, e, a, r, t, h, f, b, k, Q, G, O, U, F, ae, ie, le, S, R, J, q, Z, V, _, $, ee, te, se, c, N, z, L, m, P;
2752
2752
  this.hoursTableData = {
2753
2753
  hours: [],
2754
2754
  utcHours: [],
@@ -2778,8 +2778,8 @@ const et = (o, e) => {
2778
2778
  for (let C = 0; C < 24; C++) {
2779
2779
  const I = M(this.pickedDate).clone().add(C, "h").format();
2780
2780
  this.hoursTableData.hours.push(I);
2781
- const y = ((o = Le.pickHourly(this.meteoData, I)) == null ? void 0 : o[0]) || {};
2782
- this.hoursTableData.weatherUrls.push((e = y.weather) == null ? void 0 : e.url), this.hoursTableData.weatherNames.push(((a = y.weather) == null ? void 0 : a.name) ?? "-"), this.hoursTableData.temp.push(this.roundPrecision((r = y.weather) == null ? void 0 : r.temp, 0) ?? "-"), this.hoursTableData.precipProbability.push(this.roundPrecision((h = (t = y.weather) == null ? void 0 : t.precip) == null ? void 0 : h.probability, 1) ?? "-"), this.hoursTableData.precip1h.push(this.roundPrecision((b = (f = y.weather) == null ? void 0 : f.precip) == null ? void 0 : b.sum, 1) ?? "-"), this.hoursTableData.visibility.push(this.roundPrecision((z = y.weather) == null ? void 0 : z.visibility, 0) ?? "-"), this.hoursTableData.humidity.push(this.roundPrecision((Q = y.weather) == null ? void 0 : Q.rh, 0) ?? "-"), this.hoursTableData.windSpeed.push(this.roundPrecision((O = (G = y.weather) == null ? void 0 : G.wind) == null ? void 0 : O.kts, 1)), this.hoursTableData.windDir.push((F = (U = y.weather) == null ? void 0 : U.wind) == null ? void 0 : F.bearing), this.hoursTableData.windGust.push(this.roundPrecision((ie = (ae = y.weather) == null ? void 0 : ae.wind) == null ? void 0 : ie.gusts, 1) ?? "-"), this.hoursTableData.sigwaveHeight.push(this.roundPrecision((S = (le = y.wave) == null ? void 0 : le.sig) == null ? void 0 : S.height, 1) ?? "-"), this.hoursTableData.sigwaveDir.push((J = (R = y.wave) == null ? void 0 : R.sig) == null ? void 0 : J.bearing), this.hoursTableData.windwaveHeight.push(this.roundPrecision((Z = (q = y.wave) == null ? void 0 : q.wd) == null ? void 0 : Z.height, 1) ?? "-"), this.hoursTableData.windwaveDir.push((_ = (V = y.wave) == null ? void 0 : V.wd) == null ? void 0 : _.bearing), this.hoursTableData.windwavePeriod.push(this.roundPrecision((ee = ($ = y.wave) == null ? void 0 : $.wd) == null ? void 0 : ee.period, 1) ?? "-"), this.hoursTableData.swellHeight.push(this.roundPrecision((se = (te = y.wave) == null ? void 0 : te.swell) == null ? void 0 : se.height, 1) ?? "-"), this.hoursTableData.swellDir.push((N = (c = y.wave) == null ? void 0 : c.swell) == null ? void 0 : N.bearing), this.hoursTableData.swellPeriod.push(this.roundPrecision((L = (k = y.wave) == null ? void 0 : k.swell) == null ? void 0 : L.period, 1) ?? "-"), this.hoursTableData.currentSpeed.push(this.roundPrecision((m = y.current) == null ? void 0 : m.speed, 1) ?? "-"), this.hoursTableData.currentDir.push((P = y.current) == null ? void 0 : P.bearing), this.hoursTableData.seaLevel.push(this.roundPrecision(y.height, 1) ?? "-"), this.hoursTableData.seaTemp.push(this.roundPrecision(y.sst, 0) ?? "-");
2781
+ const y = ((o = ke.pickHourly(this.meteoData, I)) == null ? void 0 : o[0]) || {};
2782
+ this.hoursTableData.weatherUrls.push((e = y.weather) == null ? void 0 : e.url), this.hoursTableData.weatherNames.push(((a = y.weather) == null ? void 0 : a.name) ?? "-"), this.hoursTableData.temp.push(this.roundPrecision((r = y.weather) == null ? void 0 : r.temp, 0) ?? "-"), this.hoursTableData.precipProbability.push(this.roundPrecision((h = (t = y.weather) == null ? void 0 : t.precip) == null ? void 0 : h.probability, 1) ?? "-"), this.hoursTableData.precip1h.push(this.roundPrecision((b = (f = y.weather) == null ? void 0 : f.precip) == null ? void 0 : b.sum, 1) ?? "-"), this.hoursTableData.visibility.push(this.roundPrecision((k = y.weather) == null ? void 0 : k.visibility, 0) ?? "-"), this.hoursTableData.humidity.push(this.roundPrecision((Q = y.weather) == null ? void 0 : Q.rh, 0) ?? "-"), this.hoursTableData.windSpeed.push(this.roundPrecision((O = (G = y.weather) == null ? void 0 : G.wind) == null ? void 0 : O.kts, 1)), this.hoursTableData.windDir.push((F = (U = y.weather) == null ? void 0 : U.wind) == null ? void 0 : F.bearing), this.hoursTableData.windGust.push(this.roundPrecision((ie = (ae = y.weather) == null ? void 0 : ae.wind) == null ? void 0 : ie.gusts, 1) ?? "-"), this.hoursTableData.sigwaveHeight.push(this.roundPrecision((S = (le = y.wave) == null ? void 0 : le.sig) == null ? void 0 : S.height, 1) ?? "-"), this.hoursTableData.sigwaveDir.push((J = (R = y.wave) == null ? void 0 : R.sig) == null ? void 0 : J.bearing), this.hoursTableData.windwaveHeight.push(this.roundPrecision((Z = (q = y.wave) == null ? void 0 : q.wd) == null ? void 0 : Z.height, 1) ?? "-"), this.hoursTableData.windwaveDir.push((_ = (V = y.wave) == null ? void 0 : V.wd) == null ? void 0 : _.bearing), this.hoursTableData.windwavePeriod.push(this.roundPrecision((ee = ($ = y.wave) == null ? void 0 : $.wd) == null ? void 0 : ee.period, 1) ?? "-"), this.hoursTableData.swellHeight.push(this.roundPrecision((se = (te = y.wave) == null ? void 0 : te.swell) == null ? void 0 : se.height, 1) ?? "-"), this.hoursTableData.swellDir.push((N = (c = y.wave) == null ? void 0 : c.swell) == null ? void 0 : N.bearing), this.hoursTableData.swellPeriod.push(this.roundPrecision((L = (z = y.wave) == null ? void 0 : z.swell) == null ? void 0 : L.period, 1) ?? "-"), this.hoursTableData.currentSpeed.push(this.roundPrecision((m = y.current) == null ? void 0 : m.speed, 1) ?? "-"), this.hoursTableData.currentDir.push((P = y.current) == null ? void 0 : P.bearing), this.hoursTableData.seaLevel.push(this.roundPrecision(y.height, 1) ?? "-"), this.hoursTableData.seaTemp.push(this.roundPrecision(y.sst, 0) ?? "-");
2783
2783
  }
2784
2784
  this.loading.hoursTable = !1;
2785
2785
  },
@@ -2787,11 +2787,11 @@ const et = (o, e) => {
2787
2787
  this.position = {}, this.meteoData = {}, this.followItem = void 0, xe && document.getElementById("weather-chart") && xe.dispose(document.getElementById("weather-chart"));
2788
2788
  },
2789
2789
  initDaysTableData() {
2790
- var e, a, r, t, h, f, b, z, Q, G, O, U, F, ae, ie, le, S, R, J, q, Z, V, _, $, ee, te, se, c, N, k, L, m, P, C, I, y, de;
2790
+ var e, a, r, t, h, f, b, k, Q, G, O, U, F, ae, ie, le, S, R, J, q, Z, V, _, $, ee, te, se, c, N, z, L, m, P, C, I, y, de;
2791
2791
  this.daysTableData = [];
2792
2792
  const o = W(this.etime).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format();
2793
2793
  for (let ge = 0; ge < 14; ge++) {
2794
- const Ae = M(o).clone().add(ge, "d").format(), g = ((e = Le.pickDaily(this.meteoData, Ae)) == null ? void 0 : e[0]) || {};
2794
+ const Ae = M(o).clone().add(ge, "d").format(), g = ((e = ke.pickDaily(this.meteoData, Ae)) == null ? void 0 : e[0]) || {};
2795
2795
  this.daysTableData.push({
2796
2796
  localWeek: this.computeWeekLT(Ae),
2797
2797
  localDate: this.computeMMMDDLT(Ae),
@@ -2799,7 +2799,7 @@ const et = (o, e) => {
2799
2799
  minTemp: this.roundPrecision((t = (r = g == null ? void 0 : g.weather) == null ? void 0 : r.temp) == null ? void 0 : t.min, 0) ?? "-",
2800
2800
  maxTemp: this.roundPrecision((f = (h = g == null ? void 0 : g.weather) == null ? void 0 : h.temp) == null ? void 0 : f.max, 0) ?? "-",
2801
2801
  weatherName: (b = g == null ? void 0 : g.weather) == null ? void 0 : b.name,
2802
- precipSum: this.roundPrecision((Q = (z = g == null ? void 0 : g.weather) == null ? void 0 : z.precip) == null ? void 0 : Q.sum, 1) ?? "-",
2802
+ precipSum: this.roundPrecision((Q = (k = g == null ? void 0 : g.weather) == null ? void 0 : k.precip) == null ? void 0 : Q.sum, 1) ?? "-",
2803
2803
  precipRainSum: this.roundPrecision((O = (G = g == null ? void 0 : g.weather) == null ? void 0 : G.precip) == null ? void 0 : O.rainSum, 1) ?? "-",
2804
2804
  precipSnowfallSum: this.roundPrecision((F = (U = g == null ? void 0 : g.weather) == null ? void 0 : U.precip) == null ? void 0 : F.snowfallSum, 1) ?? "-",
2805
2805
  windSpeedMax: this.roundPrecision((ie = (ae = g == null ? void 0 : g.weather) == null ? void 0 : ae.wind) == null ? void 0 : ie.kts, 1) ?? "-",
@@ -2810,7 +2810,7 @@ const et = (o, e) => {
2810
2810
  windWaveDir: (ee = ($ = g == null ? void 0 : g.wave) == null ? void 0 : $.wd) == null ? void 0 : ee.bearing,
2811
2811
  swellWaveHeight: this.roundPrecision((se = (te = g == null ? void 0 : g.wave) == null ? void 0 : te.swell) == null ? void 0 : se.height, 1) ?? "-",
2812
2812
  swellWavePeriod: this.roundPrecision((N = (c = g == null ? void 0 : g.wave) == null ? void 0 : c.swell) == null ? void 0 : N.period, 1) ?? "-",
2813
- swellWaveDir: (L = (k = g == null ? void 0 : g.wave) == null ? void 0 : k.swell) == null ? void 0 : L.bearing,
2813
+ swellWaveDir: (L = (z = g == null ? void 0 : g.wave) == null ? void 0 : z.swell) == null ? void 0 : L.bearing,
2814
2814
  sigWaveHeight: this.roundPrecision((P = (m = g == null ? void 0 : g.wave) == null ? void 0 : m.sig) == null ? void 0 : P.height, 1) ?? "-",
2815
2815
  sigWavePeriod: this.roundPrecision((I = (C = g == null ? void 0 : g.wave) == null ? void 0 : C.sig) == null ? void 0 : I.period, 1) ?? "-",
2816
2816
  sigWaveDir: (de = (y = g == null ? void 0 : g.wave) == null ? void 0 : y.sig) == null ? void 0 : de.bearing
@@ -2819,13 +2819,13 @@ const et = (o, e) => {
2819
2819
  this.loading.daysTable = !1;
2820
2820
  },
2821
2821
  initHourlyTableData(o, e, a, r) {
2822
- var b, z, Q, G, O, U, F, ae, ie, le, S, R, J, q, Z, V, _, $, ee, te, se, c, N, k, L, m, P, C, I, y, de, ge, Ae, g, pe, x, Y;
2822
+ var b, k, Q, G, O, U, F, ae, ie, le, S, R, J, q, Z, V, _, $, ee, te, se, c, N, z, L, m, P, C, I, y, de, ge, Ae, g, pe, x, Y;
2823
2823
  this.hourlyTableData = [];
2824
2824
  const t = e || 14, h = a || this.etime, f = W(h).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format();
2825
2825
  for (let E = 0; E < t * 24; E++) {
2826
2826
  let he, T;
2827
2827
  if (E % 3 === 0 && (T = 3), r ? E % 3 === 0 && (he = M(f).clone().add(E, "h").format()) : E < 3 * 24 ? he = M(f).clone().add(E, "h").format() : E < 7 * 24 ? E % 3 === 0 && (he = M(f).clone().add(E, "h").format()) : E % 6 === 0 && (he = M(f).clone().add(E, "h").format()), he) {
2828
- const l = ((b = Le.pickHourly(o, he)) == null ? void 0 : b[0]) || {}, X = T === 6 ? this.roundPrecision((Q = (z = l == null ? void 0 : l.weather) == null ? void 0 : z.precip) == null ? void 0 : Q.sum6Hours, 1) : T === 3 ? this.roundPrecision((O = (G = l == null ? void 0 : l.weather) == null ? void 0 : G.precip) == null ? void 0 : O.sum3Hours, 1) : "-";
2828
+ const l = ((b = ke.pickHourly(o, he)) == null ? void 0 : b[0]) || {}, X = T === 6 ? this.roundPrecision((Q = (k = l == null ? void 0 : l.weather) == null ? void 0 : k.precip) == null ? void 0 : Q.sum6Hours, 1) : T === 3 ? this.roundPrecision((O = (G = l == null ? void 0 : l.weather) == null ? void 0 : G.precip) == null ? void 0 : O.sum3Hours, 1) : "-";
2829
2829
  this.hourlyTableData.push({
2830
2830
  localDate: this.computeMMMDDHHmmLT(he),
2831
2831
  temp: this.roundPrecision((U = l == null ? void 0 : l.weather) == null ? void 0 : U.temp, 0) ?? "-",
@@ -2839,7 +2839,7 @@ const et = (o, e) => {
2839
2839
  windWaveHeight: this.roundPrecision((ee = ($ = l == null ? void 0 : l.wave) == null ? void 0 : $.wd) == null ? void 0 : ee.height, 1) ?? "-",
2840
2840
  windWavePeriod: this.roundPrecision((se = (te = l == null ? void 0 : l.wave) == null ? void 0 : te.wd) == null ? void 0 : se.period, 1) ?? "-",
2841
2841
  windWaveDir: (N = (c = l == null ? void 0 : l.wave) == null ? void 0 : c.wd) == null ? void 0 : N.direction,
2842
- windWaveBearing: (L = (k = l == null ? void 0 : l.wave) == null ? void 0 : k.wd) == null ? void 0 : L.bearing,
2842
+ windWaveBearing: (L = (z = l == null ? void 0 : l.wave) == null ? void 0 : z.wd) == null ? void 0 : L.bearing,
2843
2843
  sigWaveHeight: this.roundPrecision((P = (m = l == null ? void 0 : l.wave) == null ? void 0 : m.sig) == null ? void 0 : P.height, 1) ?? "-",
2844
2844
  sigWavePeriod: this.roundPrecision((I = (C = l == null ? void 0 : l.wave) == null ? void 0 : C.sig) == null ? void 0 : I.period, 1) ?? "-",
2845
2845
  sigWaveDir: (de = (y = l == null ? void 0 : l.wave) == null ? void 0 : y.sig) == null ? void 0 : de.direction,
@@ -2909,7 +2909,7 @@ const et = (o, e) => {
2909
2909
  }, It = {
2910
2910
  key: 0,
2911
2911
  class: "card"
2912
- }, bt = { class: "date" }, Et = { class: "basic-table" }, Qt = { class: "day" }, Mt = { class: "hour" }, Lt = { class: "icon" }, zt = ["src"], kt = { class: "text" }, Ht = { class: "text" }, Pt = { class: "text" }, Nt = { class: "text" }, Tt = { class: "text" }, Gt = { class: "text" }, St = { key: 1 }, Ft = { class: "text" }, Ot = { class: "text" }, Yt = { class: "wave-current-table" }, jt = { class: "text" }, Kt = { class: "text" }, Ut = { key: 1 }, Rt = { class: "text" }, Xt = { class: "text" }, Wt = { class: "text" }, Jt = { key: 1 }, qt = { class: "text" }, Zt = { class: "text" }, Vt = { class: "text" }, _t = { key: 1 }, $t = { class: "text" }, es = { class: "sea-table" }, ts = { class: "text" }, ss = { class: "text" }, as = {
2912
+ }, bt = { class: "date" }, Et = { class: "basic-table" }, Qt = { class: "day" }, Mt = { class: "hour" }, Lt = { class: "icon" }, kt = ["src"], zt = { class: "text" }, Ht = { class: "text" }, Pt = { class: "text" }, Nt = { class: "text" }, Tt = { class: "text" }, Gt = { class: "text" }, St = { key: 1 }, Ft = { class: "text" }, Ot = { class: "text" }, Yt = { class: "wave-current-table" }, jt = { class: "text" }, Kt = { class: "text" }, Ut = { key: 1 }, Rt = { class: "text" }, Xt = { class: "text" }, Wt = { class: "text" }, Jt = { key: 1 }, qt = { class: "text" }, Zt = { class: "text" }, Vt = { class: "text" }, _t = { key: 1 }, $t = { class: "text" }, es = { class: "sea-table" }, ts = { class: "text" }, ss = { class: "text" }, as = {
2913
2913
  key: 1,
2914
2914
  class: "card card-loading flex-center"
2915
2915
  }, is = {
@@ -2990,11 +2990,11 @@ const et = (o, e) => {
2990
2990
  rowspan: "1",
2991
2991
  colspan: "1",
2992
2992
  class: "border"
2993
- }, zs = {
2993
+ }, ks = {
2994
2994
  rowspan: "1",
2995
2995
  colspan: "1",
2996
2996
  class: "border"
2997
- }, ks = {
2997
+ }, zs = {
2998
2998
  rowspan: "1",
2999
2999
  colspan: "1",
3000
3000
  class: "border"
@@ -3093,14 +3093,14 @@ const et = (o, e) => {
3093
3093
  key: 1,
3094
3094
  class: "text"
3095
3095
  }, La = { class: "info-box-item flex-center" };
3096
- function za(o, e, a, r, t, h) {
3097
- var S, R, J, q, Z, V, _, $, ee, te, se, c, N, k, L, m, P, C, I, y, de, ge, Ae, g, pe, x, Y, E, he, T, l, X, v, re, j, d, u, K, D, De, H, oe, fe, B;
3098
- const f = Ce("ElOption"), b = Ce("ElSelect"), z = Ce("ElTooltip"), Q = Ce("Calendar"), G = Ce("el-icon"), O = Ce("ArrowRightBold"), U = Ce("ElIcon"), F = Ce("el-date-picker"), ae = Ce("ElInput"), ie = Ce("ElButton"), le = Ce("ElDialog");
3096
+ function ka(o, e, a, r, t, h) {
3097
+ var S, R, J, q, Z, V, _, $, ee, te, se, c, N, z, L, m, P, C, I, y, de, ge, Ae, g, pe, x, Y, E, he, T, l, X, v, re, j, d, u, K, D, De, H, oe, fe, B;
3098
+ const f = Ie("ElOption"), b = Ie("ElSelect"), k = Ie("ElTooltip"), Q = Ie("Calendar"), G = Ie("el-icon"), O = Ie("ArrowRightBold"), U = Ie("ElIcon"), F = Ie("el-date-picker"), ae = Ie("ElInput"), ie = Ie("ElButton"), le = Ie("ElDialog");
3099
3099
  return n(), A("div", st, [
3100
3100
  s("div", at, [
3101
3101
  s("div", it, [
3102
3102
  s("div", ot, [
3103
- Ie(b, {
3103
+ be(b, {
3104
3104
  modelValue: t.searchName,
3105
3105
  "onUpdate:modelValue": e[0] || (e[0] = (i) => t.searchName = i),
3106
3106
  filterable: "",
@@ -3115,7 +3115,7 @@ function za(o, e, a, r, t, h) {
3115
3115
  onBlur: e[1] || (e[1] = (i) => t.placeholder = "search for port name or coordinates"),
3116
3116
  onChange: h.handleSearch
3117
3117
  }, {
3118
- default: Me(() => [
3118
+ default: Le(() => [
3119
3119
  (n(!0), A(me, null, ue(t.positionList, (i) => (n(), Ge(f, {
3120
3120
  key: i.name,
3121
3121
  label: i.nameRemark,
@@ -3148,21 +3148,21 @@ function za(o, e, a, r, t, h) {
3148
3148
  s("div", rt, [
3149
3149
  s("div", lt, [
3150
3150
  s("div", null, [
3151
- s("div", At, w(t.menuIndex === 4 ? "Seasonal" : "") + " Weather forecast for " + w(((S = t.position) == null ? void 0 : S.name) || "-") + " ( UTC" + w(t.positionOffset) + " )", 1),
3151
+ s("div", At, p(t.menuIndex === 4 ? "Seasonal" : "") + " Weather forecast for " + p(((S = t.position) == null ? void 0 : S.name) || "-") + " ( UTC" + p(t.positionOffset) + " )", 1),
3152
3152
  s("div", ht, [
3153
- ne(" At " + w((R = t.position) != null && R.portId ? "port" : "coordinates"), 1),
3154
- (J = t.position) != null && J.portId ? (n(), A("span", dt, ", " + w(h.computeLat(t.position.lat)) + ", " + w(h.computeLng(t.position.lng)), 1)) : Ee("", !0),
3155
- ne(", issued " + w(t.issuedDate), 1)
3153
+ ne(" At " + p((R = t.position) != null && R.portId ? "port" : "coordinates"), 1),
3154
+ (J = t.position) != null && J.portId ? (n(), A("span", dt, ", " + p(h.computeLat(t.position.lat)) + ", " + p(h.computeLng(t.position.lng)), 1)) : Qe("", !0),
3155
+ ne(", issued " + p(t.issuedDate), 1)
3156
3156
  ])
3157
3157
  ]),
3158
3158
  s("div", gt, [
3159
- Ie(z, {
3159
+ be(k, {
3160
3160
  placement: "left",
3161
3161
  effect: "light",
3162
3162
  content: t.followItem ? "Remove the Port/Coordinate from My Follows" : "Add the Port/Coordinate to My Follows",
3163
3163
  "show-after": 1e3
3164
3164
  }, {
3165
- default: Me(() => [
3165
+ default: Le(() => [
3166
3166
  t.followItem ? (n(), A("span", {
3167
3167
  key: 0,
3168
3168
  class: "iconfont icon active",
@@ -3187,19 +3187,19 @@ function za(o, e, a, r, t, h) {
3187
3187
  style: { cursor: "pointer" },
3188
3188
  onClick: e[8] || (e[8] = (i) => t.meteoData.showDateSelect = !t.meteoData.showDateSelect)
3189
3189
  }, [
3190
- Ie(G, {
3190
+ be(G, {
3191
3191
  size: "16",
3192
3192
  style: { "margin-right": "10px" }
3193
3193
  }, {
3194
- default: Me(() => [
3195
- Ie(Q)
3194
+ default: Le(() => [
3195
+ be(Q)
3196
3196
  ]),
3197
3197
  _: 1
3198
3198
  }),
3199
- s("span", mt, w(h.computeMMMDDyyyyLT(t.dateRangeZ[0])) + " ~ " + w(h.computeMMMDDyyyyLT(t.dateRangeZ[1])), 1),
3200
- Ie(U, { size: "16" }, {
3201
- default: Me(() => [
3202
- Ie(O)
3199
+ s("span", mt, p(h.computeMMMDDyyyyLT(t.dateRangeZ[0])) + " ~ " + p(h.computeMMMDDyyyyLT(t.dateRangeZ[1])), 1),
3200
+ be(U, { size: "16" }, {
3201
+ default: Le(() => [
3202
+ be(O)
3203
3203
  ]),
3204
3204
  _: 1
3205
3205
  })
@@ -3207,7 +3207,7 @@ function za(o, e, a, r, t, h) {
3207
3207
  [Oe, t.menuIndex === 1]
3208
3208
  ]),
3209
3209
  Fe(s("div", ut, [
3210
- Ie(F, {
3210
+ be(F, {
3211
3211
  modelValue: t.dateRange,
3212
3212
  "onUpdate:modelValue": e[9] || (e[9] = (i) => t.dateRange = i),
3213
3213
  type: "daterange",
@@ -3232,7 +3232,7 @@ function za(o, e, a, r, t, h) {
3232
3232
  src: He
3233
3233
  }, null, -1)
3234
3234
  ]))) : (n(), A("div", Dt, "No Data"))
3235
- ])) : Ee("", !0),
3235
+ ])) : Qe("", !0),
3236
3236
  t.menuIndex === 2 ? (n(), A("div", yt, [
3237
3237
  ($ = t.position) != null && $.name && a.token && !((ee = t.loading) != null && ee.weatherEchart) ? (n(), A("div", Bt)) : (te = t.loading) != null && te.weatherEchart ? (n(), A("div", xt, e[19] || (e[19] = [
3238
3238
  s("img", {
@@ -3240,10 +3240,10 @@ function za(o, e, a, r, t, h) {
3240
3240
  src: He
3241
3241
  }, null, -1)
3242
3242
  ]))) : (n(), A("div", vt, "No Data"))
3243
- ])) : Ee("", !0),
3243
+ ])) : Qe("", !0),
3244
3244
  t.menuIndex === 2 ? (n(), A("div", Ct, [
3245
3245
  (se = t.position) != null && se.name && a.token && !((c = t.loading) != null && c.hoursTable) ? (n(), A("div", It, [
3246
- s("div", bt, w(t.pickedWeek) + " " + w(h.computeMMMDDLT(t.pickedDate)), 1),
3246
+ s("div", bt, p(t.pickedWeek) + " " + p(h.computeMMMDDLT(t.pickedDate)), 1),
3247
3247
  s("table", Et, [
3248
3248
  s("tr", Qt, [
3249
3249
  e[20] || (e[20] = s("th", {
@@ -3254,12 +3254,12 @@ function za(o, e, a, r, t, h) {
3254
3254
  ne("Local time"),
3255
3255
  s("span", { class: "unit" }, "(LT)")
3256
3256
  ], -1)),
3257
- (n(!0), A(me, null, ue(t.hoursTableData.hours, (i, p) => (n(), A("th", {
3258
- key: `${i}${p}hoursLT`,
3257
+ (n(!0), A(me, null, ue(t.hoursTableData.hours, (i, w) => (n(), A("th", {
3258
+ key: `${i}${w}hoursLT`,
3259
3259
  rowspan: "1",
3260
3260
  colspan: "1",
3261
- class: we(t.activeIndex === p ? "active" : "")
3262
- }, w(h.computeHourLT(i)), 3))), 128))
3261
+ class: we(t.activeIndex === w ? "active" : "")
3262
+ }, p(h.computeHourLT(i)), 3))), 128))
3263
3263
  ]),
3264
3264
  s("tr", Mt, [
3265
3265
  e[21] || (e[21] = s("th", {
@@ -3270,12 +3270,12 @@ function za(o, e, a, r, t, h) {
3270
3270
  ne("UTC"),
3271
3271
  s("span", { class: "unit" })
3272
3272
  ], -1)),
3273
- (n(!0), A(me, null, ue(t.hoursTableData.hours, (i, p) => (n(), A("th", {
3274
- key: `${i}${p}hoursLZ`,
3273
+ (n(!0), A(me, null, ue(t.hoursTableData.hours, (i, w) => (n(), A("th", {
3274
+ key: `${i}${w}hoursLZ`,
3275
3275
  rowspan: "1",
3276
3276
  colspan: "1",
3277
- class: we(t.activeIndex === p ? "active" : "")
3278
- }, w(h.computeHourZ(i)), 3))), 128))
3277
+ class: we(t.activeIndex === w ? "active" : "")
3278
+ }, p(h.computeHourZ(i)), 3))), 128))
3279
3279
  ]),
3280
3280
  s("tr", Lt, [
3281
3281
  e[22] || (e[22] = s("td", {
@@ -3286,30 +3286,30 @@ function za(o, e, a, r, t, h) {
3286
3286
  ne("Weather"),
3287
3287
  s("span", { class: "unit" })
3288
3288
  ], -1)),
3289
- (n(!0), A(me, null, ue(t.hoursTableData.weatherUrls, (i, p) => (n(), A("td", {
3290
- key: `${i}${p}weatherUrls-weatherNames`,
3289
+ (n(!0), A(me, null, ue(t.hoursTableData.weatherUrls, (i, w) => (n(), A("td", {
3290
+ key: `${i}${w}weatherUrls-weatherNames`,
3291
3291
  rowspan: "1",
3292
3292
  colspan: "1",
3293
- class: we(t.activeIndex === p ? "active" : "")
3293
+ class: we(t.activeIndex === w ? "active" : "")
3294
3294
  }, [
3295
- Ie(z, {
3295
+ be(k, {
3296
3296
  placement: "top",
3297
3297
  effect: "light",
3298
- content: t.hoursTableData.weatherNames[p],
3298
+ content: t.hoursTableData.weatherNames[w],
3299
3299
  "show-after": 500
3300
3300
  }, {
3301
- default: Me(() => [
3301
+ default: Le(() => [
3302
3302
  i ? (n(), A("img", {
3303
3303
  key: 0,
3304
3304
  class: "iconfont weather-icon",
3305
3305
  src: i
3306
- }, null, 8, zt)) : Ee("", !0)
3306
+ }, null, 8, kt)) : Qe("", !0)
3307
3307
  ]),
3308
3308
  _: 2
3309
3309
  }, 1032, ["content"])
3310
3310
  ], 2))), 128))
3311
3311
  ]),
3312
- s("tr", kt, [
3312
+ s("tr", zt, [
3313
3313
  e[23] || (e[23] = s("td", {
3314
3314
  rowspan: "1",
3315
3315
  colspan: "1",
@@ -3318,12 +3318,12 @@ function za(o, e, a, r, t, h) {
3318
3318
  ne("Temperature"),
3319
3319
  s("span", { class: "unit" }, "°C")
3320
3320
  ], -1)),
3321
- (n(!0), A(me, null, ue(t.hoursTableData.temp, (i, p) => (n(), A("td", {
3322
- key: `${i}${p}temp`,
3321
+ (n(!0), A(me, null, ue(t.hoursTableData.temp, (i, w) => (n(), A("td", {
3322
+ key: `${i}${w}temp`,
3323
3323
  rowspan: "1",
3324
3324
  colspan: "1",
3325
- class: we(t.activeIndex === p ? "active" : "")
3326
- }, w(i), 3))), 128))
3325
+ class: we(t.activeIndex === w ? "active" : "")
3326
+ }, p(i), 3))), 128))
3327
3327
  ]),
3328
3328
  s("tr", Ht, [
3329
3329
  e[24] || (e[24] = s("td", {
@@ -3334,12 +3334,12 @@ function za(o, e, a, r, t, h) {
3334
3334
  ne("Precipitation Probability"),
3335
3335
  s("span", { class: "unit" }, "%")
3336
3336
  ], -1)),
3337
- (n(!0), A(me, null, ue(t.hoursTableData.precipProbability, (i, p) => (n(), A("td", {
3338
- key: `${i}${p}precipProbability`,
3337
+ (n(!0), A(me, null, ue(t.hoursTableData.precipProbability, (i, w) => (n(), A("td", {
3338
+ key: `${i}${w}precipProbability`,
3339
3339
  rowspan: "1",
3340
3340
  colspan: "1",
3341
- class: we(t.activeIndex === p ? "active" : "")
3342
- }, w(i), 3))), 128))
3341
+ class: we(t.activeIndex === w ? "active" : "")
3342
+ }, p(i), 3))), 128))
3343
3343
  ]),
3344
3344
  s("tr", Pt, [
3345
3345
  e[25] || (e[25] = s("td", {
@@ -3350,12 +3350,12 @@ function za(o, e, a, r, t, h) {
3350
3350
  ne("Precipitation 1h"),
3351
3351
  s("span", { class: "unit" }, "mm")
3352
3352
  ], -1)),
3353
- (n(!0), A(me, null, ue(t.hoursTableData.precip1h, (i, p) => (n(), A("td", {
3354
- key: `${i}${p}precip1h`,
3353
+ (n(!0), A(me, null, ue(t.hoursTableData.precip1h, (i, w) => (n(), A("td", {
3354
+ key: `${i}${w}precip1h`,
3355
3355
  rowspan: "1",
3356
3356
  colspan: "1",
3357
- class: we(t.activeIndex === p ? "active" : "")
3358
- }, w(i), 3))), 128))
3357
+ class: we(t.activeIndex === w ? "active" : "")
3358
+ }, p(i), 3))), 128))
3359
3359
  ]),
3360
3360
  s("tr", Nt, [
3361
3361
  e[26] || (e[26] = s("td", {
@@ -3366,12 +3366,12 @@ function za(o, e, a, r, t, h) {
3366
3366
  ne("Visibility"),
3367
3367
  s("span", { class: "unit" }, "nm")
3368
3368
  ], -1)),
3369
- (n(!0), A(me, null, ue(t.hoursTableData.visibility, (i, p) => (n(), A("td", {
3370
- key: `${i}${p}visibility`,
3369
+ (n(!0), A(me, null, ue(t.hoursTableData.visibility, (i, w) => (n(), A("td", {
3370
+ key: `${i}${w}visibility`,
3371
3371
  rowspan: "1",
3372
3372
  colspan: "1",
3373
- class: we(t.activeIndex === p ? "active" : "")
3374
- }, w(i), 3))), 128))
3373
+ class: we(t.activeIndex === w ? "active" : "")
3374
+ }, p(i), 3))), 128))
3375
3375
  ]),
3376
3376
  s("tr", Tt, [
3377
3377
  e[27] || (e[27] = s("td", {
@@ -3382,12 +3382,12 @@ function za(o, e, a, r, t, h) {
3382
3382
  ne("Relative Humidity"),
3383
3383
  s("span", { class: "unit" }, "%")
3384
3384
  ], -1)),
3385
- (n(!0), A(me, null, ue(t.hoursTableData.humidity, (i, p) => (n(), A("td", {
3386
- key: `${i}${p}humidity`,
3385
+ (n(!0), A(me, null, ue(t.hoursTableData.humidity, (i, w) => (n(), A("td", {
3386
+ key: `${i}${w}humidity`,
3387
3387
  rowspan: "1",
3388
3388
  colspan: "1",
3389
- class: we(t.activeIndex === p ? "active" : "")
3390
- }, w(i), 3))), 128))
3389
+ class: we(t.activeIndex === w ? "active" : "")
3390
+ }, p(i), 3))), 128))
3391
3391
  ]),
3392
3392
  s("tr", Gt, [
3393
3393
  e[28] || (e[28] = s("td", {
@@ -3398,16 +3398,16 @@ function za(o, e, a, r, t, h) {
3398
3398
  ne("Wind direction"),
3399
3399
  s("span", { class: "unit" })
3400
3400
  ], -1)),
3401
- (n(!0), A(me, null, ue(t.hoursTableData.windDir, (i, p) => (n(), A("td", {
3402
- key: `${i}${p}windDir`,
3401
+ (n(!0), A(me, null, ue(t.hoursTableData.windDir, (i, w) => (n(), A("td", {
3402
+ key: `${i}${w}windDir`,
3403
3403
  rowspan: "1",
3404
3404
  colspan: "1",
3405
- class: we(t.activeIndex === p ? "active" : "")
3405
+ class: we(t.activeIndex === w ? "active" : "")
3406
3406
  }, [
3407
3407
  isNaN(i) ? (n(), A("span", St, "-")) : (n(), A("span", {
3408
3408
  key: 0,
3409
3409
  class: "iconfont icon",
3410
- style: ve({ display: "inline-block", transform: `rotate(${i}deg)` })
3410
+ style: Ce({ display: "inline-block", transform: `rotate(${i}deg)` })
3411
3411
  }, "", 4))
3412
3412
  ], 2))), 128))
3413
3413
  ]),
@@ -3420,12 +3420,12 @@ function za(o, e, a, r, t, h) {
3420
3420
  ne("Wind speed"),
3421
3421
  s("span", { class: "unit" }, "kts")
3422
3422
  ], -1)),
3423
- (n(!0), A(me, null, ue(t.hoursTableData.windSpeed, (i, p) => (n(), A("td", {
3424
- key: `${i}${p}windSpeed`,
3423
+ (n(!0), A(me, null, ue(t.hoursTableData.windSpeed, (i, w) => (n(), A("td", {
3424
+ key: `${i}${w}windSpeed`,
3425
3425
  rowspan: "1",
3426
3426
  colspan: "1",
3427
- class: we(t.activeIndex === p ? "active" : "")
3428
- }, w(i), 3))), 128))
3427
+ class: we(t.activeIndex === w ? "active" : "")
3428
+ }, p(i), 3))), 128))
3429
3429
  ]),
3430
3430
  s("tr", Ot, [
3431
3431
  e[30] || (e[30] = s("td", {
@@ -3436,12 +3436,12 @@ function za(o, e, a, r, t, h) {
3436
3436
  ne("Wind gust"),
3437
3437
  s("span", { class: "unit" }, "kts")
3438
3438
  ], -1)),
3439
- (n(!0), A(me, null, ue(t.hoursTableData.windGust, (i, p) => (n(), A("td", {
3440
- key: `${i}${p}windGust`,
3439
+ (n(!0), A(me, null, ue(t.hoursTableData.windGust, (i, w) => (n(), A("td", {
3440
+ key: `${i}${w}windGust`,
3441
3441
  rowspan: "1",
3442
3442
  colspan: "1",
3443
- class: we(t.activeIndex === p ? "active" : "")
3444
- }, w(i), 3))), 128))
3443
+ class: we(t.activeIndex === w ? "active" : "")
3444
+ }, p(i), 3))), 128))
3445
3445
  ])
3446
3446
  ]),
3447
3447
  e[42] || (e[42] = s("div", { style: { "text-align": "center", padding: "3px" } }, null, -1)),
@@ -3455,12 +3455,12 @@ function za(o, e, a, r, t, h) {
3455
3455
  ne("Wind wave height"),
3456
3456
  s("span", { class: "unit" }, "m")
3457
3457
  ], -1)),
3458
- (n(!0), A(me, null, ue(t.hoursTableData.windwaveHeight, (i, p) => (n(), A("td", {
3459
- key: `${i}${p}windwaveHeight`,
3458
+ (n(!0), A(me, null, ue(t.hoursTableData.windwaveHeight, (i, w) => (n(), A("td", {
3459
+ key: `${i}${w}windwaveHeight`,
3460
3460
  rowspan: "1",
3461
3461
  colspan: "1",
3462
- class: we(t.activeIndex === p ? "active" : "")
3463
- }, w(i), 3))), 128))
3462
+ class: we(t.activeIndex === w ? "active" : "")
3463
+ }, p(i), 3))), 128))
3464
3464
  ]),
3465
3465
  s("tr", Kt, [
3466
3466
  e[32] || (e[32] = s("td", {
@@ -3471,16 +3471,16 @@ function za(o, e, a, r, t, h) {
3471
3471
  ne("Wind wave direction"),
3472
3472
  s("span", { class: "unit" })
3473
3473
  ], -1)),
3474
- (n(!0), A(me, null, ue(t.hoursTableData.windwaveDir, (i, p) => (n(), A("td", {
3475
- key: `${i}${p}windwaveDir`,
3474
+ (n(!0), A(me, null, ue(t.hoursTableData.windwaveDir, (i, w) => (n(), A("td", {
3475
+ key: `${i}${w}windwaveDir`,
3476
3476
  rowspan: "1",
3477
3477
  colspan: "1",
3478
- class: we(t.activeIndex === p ? "active" : "")
3478
+ class: we(t.activeIndex === w ? "active" : "")
3479
3479
  }, [
3480
3480
  isNaN(i) ? (n(), A("span", Ut, "-")) : (n(), A("span", {
3481
3481
  key: 0,
3482
3482
  class: "iconfont icon",
3483
- style: ve({ display: "inline-block", transform: `rotate(${i}deg)` })
3483
+ style: Ce({ display: "inline-block", transform: `rotate(${i}deg)` })
3484
3484
  }, "", 4))
3485
3485
  ], 2))), 128))
3486
3486
  ]),
@@ -3493,12 +3493,12 @@ function za(o, e, a, r, t, h) {
3493
3493
  ne("Wind wave period"),
3494
3494
  s("span", { class: "unit" }, "s")
3495
3495
  ], -1)),
3496
- (n(!0), A(me, null, ue(t.hoursTableData.windwavePeriod, (i, p) => (n(), A("td", {
3497
- key: `${i}${p}windwavePeriod`,
3496
+ (n(!0), A(me, null, ue(t.hoursTableData.windwavePeriod, (i, w) => (n(), A("td", {
3497
+ key: `${i}${w}windwavePeriod`,
3498
3498
  rowspan: "1",
3499
3499
  colspan: "1",
3500
- class: we(t.activeIndex === p ? "active" : "")
3501
- }, w(i), 3))), 128))
3500
+ class: we(t.activeIndex === w ? "active" : "")
3501
+ }, p(i), 3))), 128))
3502
3502
  ]),
3503
3503
  s("tr", Xt, [
3504
3504
  e[34] || (e[34] = s("td", {
@@ -3509,12 +3509,12 @@ function za(o, e, a, r, t, h) {
3509
3509
  ne("Swell height"),
3510
3510
  s("span", { class: "unit" }, "m")
3511
3511
  ], -1)),
3512
- (n(!0), A(me, null, ue(t.hoursTableData.swellHeight, (i, p) => (n(), A("td", {
3513
- key: `${i}${p}swellHeight`,
3512
+ (n(!0), A(me, null, ue(t.hoursTableData.swellHeight, (i, w) => (n(), A("td", {
3513
+ key: `${i}${w}swellHeight`,
3514
3514
  rowspan: "1",
3515
3515
  colspan: "1",
3516
- class: we(t.activeIndex === p ? "active" : "")
3517
- }, w(i), 3))), 128))
3516
+ class: we(t.activeIndex === w ? "active" : "")
3517
+ }, p(i), 3))), 128))
3518
3518
  ]),
3519
3519
  s("tr", Wt, [
3520
3520
  e[35] || (e[35] = s("td", {
@@ -3525,16 +3525,16 @@ function za(o, e, a, r, t, h) {
3525
3525
  ne("Swell direction"),
3526
3526
  s("span", { class: "unit" })
3527
3527
  ], -1)),
3528
- (n(!0), A(me, null, ue(t.hoursTableData.swellDir, (i, p) => (n(), A("td", {
3529
- key: `${i}${p}swellDir`,
3528
+ (n(!0), A(me, null, ue(t.hoursTableData.swellDir, (i, w) => (n(), A("td", {
3529
+ key: `${i}${w}swellDir`,
3530
3530
  rowspan: "1",
3531
3531
  colspan: "1",
3532
- class: we(t.activeIndex === p ? "active" : "")
3532
+ class: we(t.activeIndex === w ? "active" : "")
3533
3533
  }, [
3534
3534
  isNaN(i) ? (n(), A("span", Jt, "-")) : (n(), A("span", {
3535
3535
  key: 0,
3536
3536
  class: "iconfont icon",
3537
- style: ve({ display: "inline-block", transform: `rotate(${i}deg)` })
3537
+ style: Ce({ display: "inline-block", transform: `rotate(${i}deg)` })
3538
3538
  }, "", 4))
3539
3539
  ], 2))), 128))
3540
3540
  ]),
@@ -3547,12 +3547,12 @@ function za(o, e, a, r, t, h) {
3547
3547
  ne("Swell period"),
3548
3548
  s("span", { class: "unit" }, "s")
3549
3549
  ], -1)),
3550
- (n(!0), A(me, null, ue(t.hoursTableData.swellPeriod, (i, p) => (n(), A("td", {
3551
- key: `${i}${p}swellPeriod`,
3550
+ (n(!0), A(me, null, ue(t.hoursTableData.swellPeriod, (i, w) => (n(), A("td", {
3551
+ key: `${i}${w}swellPeriod`,
3552
3552
  rowspan: "1",
3553
3553
  colspan: "1",
3554
- class: we(t.activeIndex === p ? "active" : "")
3555
- }, w(i), 3))), 128))
3554
+ class: we(t.activeIndex === w ? "active" : "")
3555
+ }, p(i), 3))), 128))
3556
3556
  ]),
3557
3557
  s("tr", Zt, [
3558
3558
  e[37] || (e[37] = s("td", {
@@ -3563,12 +3563,12 @@ function za(o, e, a, r, t, h) {
3563
3563
  ne("Sig wave height"),
3564
3564
  s("span", { class: "unit" }, "m")
3565
3565
  ], -1)),
3566
- (n(!0), A(me, null, ue(t.hoursTableData.sigwaveHeight, (i, p) => (n(), A("td", {
3567
- key: `${i}${p}sigwaveHeight`,
3566
+ (n(!0), A(me, null, ue(t.hoursTableData.sigwaveHeight, (i, w) => (n(), A("td", {
3567
+ key: `${i}${w}sigwaveHeight`,
3568
3568
  rowspan: "1",
3569
3569
  colspan: "1",
3570
- class: we(t.activeIndex === p ? "active" : "")
3571
- }, w(i), 3))), 128))
3570
+ class: we(t.activeIndex === w ? "active" : "")
3571
+ }, p(i), 3))), 128))
3572
3572
  ]),
3573
3573
  s("tr", Vt, [
3574
3574
  e[38] || (e[38] = s("td", {
@@ -3579,16 +3579,16 @@ function za(o, e, a, r, t, h) {
3579
3579
  ne("Current direction"),
3580
3580
  s("span", { class: "unit" })
3581
3581
  ], -1)),
3582
- (n(!0), A(me, null, ue(t.hoursTableData.currentDir, (i, p) => (n(), A("td", {
3583
- key: `${i}${p}currentDir`,
3582
+ (n(!0), A(me, null, ue(t.hoursTableData.currentDir, (i, w) => (n(), A("td", {
3583
+ key: `${i}${w}currentDir`,
3584
3584
  rowspan: "1",
3585
3585
  colspan: "1",
3586
- class: we(t.activeIndex === p ? "active" : "")
3586
+ class: we(t.activeIndex === w ? "active" : "")
3587
3587
  }, [
3588
3588
  isNaN(i) ? (n(), A("span", _t, "-")) : (n(), A("span", {
3589
3589
  key: 0,
3590
3590
  class: "iconfont icon",
3591
- style: ve({ display: "inline-block", transform: `rotate(${i}deg)` })
3591
+ style: Ce({ display: "inline-block", transform: `rotate(${i}deg)` })
3592
3592
  }, "", 4))
3593
3593
  ], 2))), 128))
3594
3594
  ]),
@@ -3601,12 +3601,12 @@ function za(o, e, a, r, t, h) {
3601
3601
  ne("Current speed"),
3602
3602
  s("span", { class: "unit" }, "kts")
3603
3603
  ], -1)),
3604
- (n(!0), A(me, null, ue(t.hoursTableData.currentSpeed, (i, p) => (n(), A("td", {
3605
- key: `${i}${p}currentSpeed`,
3604
+ (n(!0), A(me, null, ue(t.hoursTableData.currentSpeed, (i, w) => (n(), A("td", {
3605
+ key: `${i}${w}currentSpeed`,
3606
3606
  rowspan: "1",
3607
3607
  colspan: "1",
3608
- class: we(t.activeIndex === p ? "active" : "")
3609
- }, w(i), 3))), 128))
3608
+ class: we(t.activeIndex === w ? "active" : "")
3609
+ }, p(i), 3))), 128))
3610
3610
  ])
3611
3611
  ]),
3612
3612
  e[43] || (e[43] = s("div", { style: { "text-align": "center", padding: "3px" } }, null, -1)),
@@ -3620,12 +3620,12 @@ function za(o, e, a, r, t, h) {
3620
3620
  ne("Sea level height"),
3621
3621
  s("span", { class: "unit" }, "m")
3622
3622
  ], -1)),
3623
- (n(!0), A(me, null, ue(t.hoursTableData.seaLevel, (i, p) => (n(), A("td", {
3624
- key: `${i}${p}seaLevel`,
3623
+ (n(!0), A(me, null, ue(t.hoursTableData.seaLevel, (i, w) => (n(), A("td", {
3624
+ key: `${i}${w}seaLevel`,
3625
3625
  rowspan: "1",
3626
3626
  colspan: "1",
3627
- class: we(t.activeIndex === p ? "active" : "")
3628
- }, w(i), 3))), 128))
3627
+ class: we(t.activeIndex === w ? "active" : "")
3628
+ }, p(i), 3))), 128))
3629
3629
  ]),
3630
3630
  s("tr", ss, [
3631
3631
  e[41] || (e[41] = s("td", {
@@ -3636,12 +3636,12 @@ function za(o, e, a, r, t, h) {
3636
3636
  ne("Sea surface temperature"),
3637
3637
  s("span", { class: "unit" }, "°C")
3638
3638
  ], -1)),
3639
- (n(!0), A(me, null, ue(t.hoursTableData.seaTemp, (i, p) => (n(), A("td", {
3640
- key: `${i}${p}seaTemp`,
3639
+ (n(!0), A(me, null, ue(t.hoursTableData.seaTemp, (i, w) => (n(), A("td", {
3640
+ key: `${i}${w}seaTemp`,
3641
3641
  rowspan: "1",
3642
3642
  colspan: "1",
3643
- class: we(t.activeIndex === p ? "active" : "")
3644
- }, w(i), 3))), 128))
3643
+ class: we(t.activeIndex === w ? "active" : "")
3644
+ }, p(i), 3))), 128))
3645
3645
  ])
3646
3646
  ])
3647
3647
  ])) : (N = t.loading) != null && N.hoursTable ? (n(), A("div", as, e[44] || (e[44] = [
@@ -3650,9 +3650,9 @@ function za(o, e, a, r, t, h) {
3650
3650
  src: He
3651
3651
  }, null, -1)
3652
3652
  ]))) : (n(), A("div", is, "No Data"))
3653
- ])) : Ee("", !0),
3653
+ ])) : Qe("", !0),
3654
3654
  t.menuIndex === 3 ? (n(), A("div", os, [
3655
- (k = t.position) != null && k.name && a.token && !((L = t.loading) != null && L.daysTable) ? (n(), A("div", ns, [
3655
+ (z = t.position) != null && z.name && a.token && !((L = t.loading) != null && L.daysTable) ? (n(), A("div", ns, [
3656
3656
  e[56] || (e[56] = s("div", { class: "date" }, "Daily Forecast", -1)),
3657
3657
  s("table", rs, [
3658
3658
  e[54] || (e[54] = s("tr", { class: "day tr-title" }, [
@@ -3754,8 +3754,8 @@ function za(o, e, a, r, t, h) {
3754
3754
  class: "text border-bottom"
3755
3755
  }, [
3756
3756
  s("td", ls, [
3757
- s("div", null, w(i.localWeek), 1),
3758
- s("div", null, w(i.localDate), 1)
3757
+ s("div", null, p(i.localWeek), 1),
3758
+ s("div", null, p(i.localDate), 1)
3759
3759
  ]),
3760
3760
  s("td", As, [
3761
3761
  i.weatherUrl ? (n(), A("img", {
@@ -3763,63 +3763,63 @@ function za(o, e, a, r, t, h) {
3763
3763
  class: "iconfont weather-icon",
3764
3764
  style: { width: "34px", height: "34px" },
3765
3765
  src: i.weatherUrl
3766
- }, null, 8, hs)) : Ee("", !0)
3766
+ }, null, 8, hs)) : Qe("", !0)
3767
3767
  ]),
3768
- s("td", ds, w(i.weatherName), 1),
3768
+ s("td", ds, p(i.weatherName), 1),
3769
3769
  s("td", gs, [
3770
- ne(w(i.minTemp) + " / " + w(i.maxTemp), 1),
3770
+ ne(p(i.minTemp) + " / " + p(i.maxTemp), 1),
3771
3771
  e[45] || (e[45] = s("span", { class: "unit" }, "°C", -1))
3772
3772
  ]),
3773
3773
  s("td", cs, [
3774
- ne(w(i.precipSum), 1),
3774
+ ne(p(i.precipSum), 1),
3775
3775
  e[46] || (e[46] = s("span", { class: "unit" }, "mm", -1))
3776
3776
  ]),
3777
3777
  s("td", ws, [
3778
- ne(w(i.precipRainSum), 1),
3778
+ ne(p(i.precipRainSum), 1),
3779
3779
  e[47] || (e[47] = s("span", { class: "unit" }, "mm", -1))
3780
3780
  ]),
3781
3781
  s("td", ps, [
3782
- ne(w(i.precipSnowfallSum), 1),
3782
+ ne(p(i.precipSnowfallSum), 1),
3783
3783
  e[48] || (e[48] = s("span", { class: "unit" }, "mm", -1))
3784
3784
  ]),
3785
3785
  s("td", ms, [
3786
- s("span", null, w(i.windSpeedMax), 1),
3786
+ s("span", null, p(i.windSpeedMax), 1),
3787
3787
  e[49] || (e[49] = s("span", { class: "unit" }, "kts", -1)),
3788
3788
  !isNaN(i.windSpeedDir) && !isNaN(i.windSpeedMax) ? (n(), A("span", {
3789
3789
  key: 0,
3790
3790
  class: "iconfont icon",
3791
- style: ve({ display: "inline-block", transform: `rotate(${i.windSpeedDir}deg)` })
3791
+ style: Ce({ display: "inline-block", transform: `rotate(${i.windSpeedDir}deg)` })
3792
3792
  }, "", 4)) : (n(), A("span", us, "-"))
3793
3793
  ]),
3794
3794
  s("td", fs, [
3795
- s("span", null, w(i.gustSpeedMax), 1),
3795
+ s("span", null, p(i.gustSpeedMax), 1),
3796
3796
  e[50] || (e[50] = s("span", { class: "unit" }, "kts", -1))
3797
3797
  ]),
3798
3798
  s("td", Ds, [
3799
- s("span", null, w(i.windWaveHeight), 1),
3799
+ s("span", null, p(i.windWaveHeight), 1),
3800
3800
  e[51] || (e[51] = s("span", { class: "unit" }, "m", -1)),
3801
3801
  !isNaN(i.windWaveDir) && !isNaN(i.windWaveHeight) ? (n(), A("span", {
3802
3802
  key: 0,
3803
3803
  class: "iconfont icon",
3804
- style: ve({ display: "inline-block", transform: `rotate(${i.windWaveDir}deg)` })
3804
+ style: Ce({ display: "inline-block", transform: `rotate(${i.windWaveDir}deg)` })
3805
3805
  }, "", 4)) : (n(), A("span", ys, "-"))
3806
3806
  ]),
3807
3807
  s("td", Bs, [
3808
- s("span", null, w(i.swellWaveHeight), 1),
3808
+ s("span", null, p(i.swellWaveHeight), 1),
3809
3809
  e[52] || (e[52] = s("span", { class: "unit" }, "m", -1)),
3810
3810
  !isNaN(i.swellWaveDir) && !isNaN(i.swellWaveHeight) ? (n(), A("span", {
3811
3811
  key: 0,
3812
3812
  class: "iconfont icon",
3813
- style: ve({ display: "inline-block", transform: `rotate(${i.swellWaveDir}deg)` })
3813
+ style: Ce({ display: "inline-block", transform: `rotate(${i.swellWaveDir}deg)` })
3814
3814
  }, "", 4)) : (n(), A("span", xs, "-"))
3815
3815
  ]),
3816
3816
  s("td", vs, [
3817
- s("span", null, w(i.sigWaveHeight), 1),
3817
+ s("span", null, p(i.sigWaveHeight), 1),
3818
3818
  e[53] || (e[53] = s("span", { class: "unit" }, "m", -1)),
3819
3819
  !isNaN(i.sigWaveDir) && !isNaN(i.sigWaveHeight) ? (n(), A("span", {
3820
3820
  key: 0,
3821
3821
  class: "iconfont icon",
3822
- style: ve({ display: "inline-block", transform: `rotate(${i.sigWaveDir}deg)` })
3822
+ style: Ce({ display: "inline-block", transform: `rotate(${i.sigWaveDir}deg)` })
3823
3823
  }, "", 4)) : (n(), A("span", Cs, "-"))
3824
3824
  ])
3825
3825
  ]))), 128))
@@ -3830,7 +3830,7 @@ function za(o, e, a, r, t, h) {
3830
3830
  src: He
3831
3831
  }, null, -1)
3832
3832
  ]))) : (n(), A("div", bs, "No Data"))
3833
- ])) : Ee("", !0),
3833
+ ])) : Qe("", !0),
3834
3834
  t.menuIndex === 1 || t.menuIndex === 3 ? (n(), A("div", Es, [
3835
3835
  (P = t.position) != null && P.name && a.token && !((C = t.loading) != null && C.hourlyTable) ? (n(), A("div", Qs, [
3836
3836
  e[60] || (e[60] = s("div", { class: "date" }, "Hourly Forecast", -1)),
@@ -3981,55 +3981,55 @@ function za(o, e, a, r, t, h) {
3981
3981
  class: "text border-bottom"
3982
3982
  }, [
3983
3983
  s("td", Ls, [
3984
- s("div", null, w(i.localDate), 1)
3984
+ s("div", null, p(i.localDate), 1)
3985
3985
  ]),
3986
- s("td", zs, [
3987
- s("div", null, w(i.temp), 1)
3986
+ s("td", ks, [
3987
+ s("div", null, p(i.temp), 1)
3988
3988
  ]),
3989
- s("td", ks, w(i.precipSum), 1),
3990
- s("td", Hs, w(i.visibility), 1),
3989
+ s("td", zs, p(i.precipSum), 1),
3990
+ s("td", Hs, p(i.visibility), 1),
3991
3991
  s("td", Ps, [
3992
- ne(w(i.windDir) + " ", 1),
3992
+ ne(p(i.windDir) + " ", 1),
3993
3993
  !isNaN(i.windBearing) && i.windDir ? (n(), A("span", {
3994
3994
  key: 0,
3995
3995
  class: "iconfont icon",
3996
- style: ve({ display: "inline-block", transform: `rotate(${i.windBearing}deg)` })
3996
+ style: Ce({ display: "inline-block", transform: `rotate(${i.windBearing}deg)` })
3997
3997
  }, "", 4)) : (n(), A("span", Ns, "-"))
3998
3998
  ]),
3999
- s("td", Ts, w(i.windSpeed), 1),
4000
- s("td", Gs, w(i.windBF), 1),
4001
- s("td", Ss, w(i.windGusts), 1),
3999
+ s("td", Ts, p(i.windSpeed), 1),
4000
+ s("td", Gs, p(i.windBF), 1),
4001
+ s("td", Ss, p(i.windGusts), 1),
4002
4002
  s("td", Fs, [
4003
- ne(w(i.windWaveDir) + " ", 1),
4003
+ ne(p(i.windWaveDir) + " ", 1),
4004
4004
  !isNaN(i.windWaveBearing) && i.windWaveDir ? (n(), A("span", {
4005
4005
  key: 0,
4006
4006
  class: "iconfont icon",
4007
- style: ve({ display: "inline-block", transform: `rotate(${i.windWaveBearing}deg)` })
4007
+ style: Ce({ display: "inline-block", transform: `rotate(${i.windWaveBearing}deg)` })
4008
4008
  }, "", 4)) : (n(), A("span", Os, "-"))
4009
4009
  ]),
4010
- s("td", Ys, w(i.windWaveHeight), 1),
4011
- s("td", js, w(i.windWavePeriod), 1),
4010
+ s("td", Ys, p(i.windWaveHeight), 1),
4011
+ s("td", js, p(i.windWavePeriod), 1),
4012
4012
  s("td", Ks, [
4013
- ne(w(i.sigWaveDir) + " ", 1),
4013
+ ne(p(i.sigWaveDir) + " ", 1),
4014
4014
  !isNaN(i.sigWaveBearing) && i.sigWaveDir ? (n(), A("span", {
4015
4015
  key: 0,
4016
4016
  class: "iconfont icon",
4017
- style: ve({ display: "inline-block", transform: `rotate(${i.sigWaveBearing}deg)` })
4017
+ style: Ce({ display: "inline-block", transform: `rotate(${i.sigWaveBearing}deg)` })
4018
4018
  }, "", 4)) : (n(), A("span", Us, "-"))
4019
4019
  ]),
4020
- s("td", Rs, w(i.sigWaveHeight), 1),
4021
- s("td", Xs, w(i.sigWavePeriod), 1),
4020
+ s("td", Rs, p(i.sigWaveHeight), 1),
4021
+ s("td", Xs, p(i.sigWavePeriod), 1),
4022
4022
  s("td", Ws, [
4023
- ne(w(i.currentDir) + " ", 1),
4023
+ ne(p(i.currentDir) + " ", 1),
4024
4024
  !isNaN(i.currentBearing) && i.currentDir ? (n(), A("span", {
4025
4025
  key: 0,
4026
4026
  class: "iconfont icon",
4027
- style: ve({ display: "inline-block", transform: `rotate(${i.currentBearing}deg)` })
4027
+ style: Ce({ display: "inline-block", transform: `rotate(${i.currentBearing}deg)` })
4028
4028
  }, "", 4)) : (n(), A("span", Js, "-"))
4029
4029
  ]),
4030
- s("td", qs, w(i.currentSpd), 1),
4031
- s("td", Zs, w(i.seaLevel), 1),
4032
- s("td", Vs, w(i.seaSurfaceTemp), 1)
4030
+ s("td", qs, p(i.currentSpd), 1),
4031
+ s("td", Zs, p(i.seaLevel), 1),
4032
+ s("td", Vs, p(i.seaSurfaceTemp), 1)
4033
4033
  ]))), 128))
4034
4034
  ])
4035
4035
  ])) : (I = t.loading) != null && I.hourlyTable ? (n(), A("div", _s, e[61] || (e[61] = [
@@ -4038,7 +4038,7 @@ function za(o, e, a, r, t, h) {
4038
4038
  src: He
4039
4039
  }, null, -1)
4040
4040
  ]))) : (n(), A("div", $s, "No Data"))
4041
- ])) : Ee("", !0),
4041
+ ])) : Qe("", !0),
4042
4042
  t.menuIndex === 4 ? (n(), A("div", ea, [
4043
4043
  (y = t.position) != null && y.name && a.token && !((de = t.loading) != null && de.seasonalEchart) ? (n(), A("div", ta, [
4044
4044
  s("div", sa, [
@@ -4047,11 +4047,11 @@ function za(o, e, a, r, t, h) {
4047
4047
  class: "title flex-start",
4048
4048
  onClick: e[10] || (e[10] = (i) => t.seasonalData.showMonths = !t.seasonalData.showMonths)
4049
4049
  }, [
4050
- s("div", aa, w((g = (Ae = (ge = t.currentMonth) == null ? void 0 : ge.month) == null ? void 0 : Ae.split("-")) == null ? void 0 : g[0]) + " " + w((Y = (x = (pe = t.currentMonth) == null ? void 0 : pe.month) == null ? void 0 : x.split("-")) == null ? void 0 : Y[1]), 1),
4050
+ s("div", aa, p((g = (Ae = (ge = t.currentMonth) == null ? void 0 : ge.month) == null ? void 0 : Ae.split("-")) == null ? void 0 : g[0]) + " " + p((Y = (x = (pe = t.currentMonth) == null ? void 0 : pe.month) == null ? void 0 : x.split("-")) == null ? void 0 : Y[1]), 1),
4051
4051
  s("div", ia, [
4052
- Ie(U, null, {
4053
- default: Me(() => [
4054
- Ie(O)
4052
+ be(U, null, {
4053
+ default: Le(() => [
4054
+ be(O)
4055
4055
  ]),
4056
4056
  _: 1
4057
4057
  })
@@ -4059,12 +4059,12 @@ function za(o, e, a, r, t, h) {
4059
4059
  Fe(s("div", oa, [
4060
4060
  s("div", na, [
4061
4061
  (n(!0), A(me, null, ue(t.monthsOptions, (i) => {
4062
- var p;
4062
+ var w;
4063
4063
  return n(), A("div", {
4064
4064
  key: i,
4065
- class: we(["month-option", ((p = t.currentMonth) == null ? void 0 : p.month) === i.month ? "active" : ""]),
4066
- onClick: (Qe) => h.handleSelectMonth(i)
4067
- }, w(i.month), 11, ra);
4065
+ class: we(["month-option", ((w = t.currentMonth) == null ? void 0 : w.month) === i.month ? "active" : ""]),
4066
+ onClick: (ve) => h.handleSelectMonth(i)
4067
+ }, p(i.month), 11, ra);
4068
4068
  }), 128))
4069
4069
  ])
4070
4070
  ], 512), [
@@ -4075,22 +4075,22 @@ function za(o, e, a, r, t, h) {
4075
4075
  e[63] || (e[63] = s("div", { id: "wind-precip-echart" }, null, -1))
4076
4076
  ]),
4077
4077
  s("div", la, [
4078
- s("div", Aa, w((E = t.currentMonth) == null ? void 0 : E.month) + " Summary", 1),
4078
+ s("div", Aa, p((E = t.currentMonth) == null ? void 0 : E.month) + " Summary", 1),
4079
4079
  e[64] || (e[64] = s("div", { class: "label" }, "Temperature", -1)),
4080
- s("div", ha, "Avg High Temp: " + w(t.seasonalData.minHighTemp) + " to " + w(t.seasonalData.maxHighTemp) + " °C", 1),
4081
- s("div", da, "Avg Low Temp: " + w(t.seasonalData.minLowTemp) + " to " + w(t.seasonalData.maxLowTemp) + " °C", 1),
4082
- s("div", ga, "Hottest Day: " + w(t.seasonalData.hottestDay), 1),
4083
- s("div", ca, "Coldest Day: " + w(t.seasonalData.coldestDay), 1),
4080
+ s("div", ha, "Avg High Temp: " + p(t.seasonalData.minHighTemp) + " to " + p(t.seasonalData.maxHighTemp) + " °C", 1),
4081
+ s("div", da, "Avg Low Temp: " + p(t.seasonalData.minLowTemp) + " to " + p(t.seasonalData.maxLowTemp) + " °C", 1),
4082
+ s("div", ga, "Hottest Day: " + p(t.seasonalData.hottestDay), 1),
4083
+ s("div", ca, "Coldest Day: " + p(t.seasonalData.coldestDay), 1),
4084
4084
  e[65] || (e[65] = s("div", { class: "label" }, "Precipitation", -1)),
4085
- s("div", wa, "Light (<10mm): " + w((l = (T = (he = t.seasonalData) == null ? void 0 : he.precip) == null ? void 0 : T.filter((i) => i < 10)) == null ? void 0 : l.length) + " days", 1),
4086
- s("div", pa, "Moderate (<=24.9mm): " + w((re = (v = (X = t.seasonalData) == null ? void 0 : X.precip) == null ? void 0 : v.filter((i) => i >= 10 && i < 24.9)) == null ? void 0 : re.length) + " days", 1),
4087
- s("div", ma, "Heavy (<=49.9mm): " + w((u = (d = (j = t.seasonalData) == null ? void 0 : j.precip) == null ? void 0 : d.filter((i) => i >= 24.9 && i < 49.9)) == null ? void 0 : u.length) + " days", 1),
4088
- s("div", ua, "Rainstorm (<=99.9mm): " + w((De = (D = (K = t.seasonalData) == null ? void 0 : K.precip) == null ? void 0 : D.filter((i) => i >= 49.9 && i < 99.9)) == null ? void 0 : De.length) + " days", 1),
4089
- s("div", fa, "Heavy Rainstorm (>=100mm): " + w((fe = (oe = (H = t.seasonalData) == null ? void 0 : H.precip) == null ? void 0 : oe.filter((i) => i >= 100)) == null ? void 0 : fe.length) + " days", 1),
4085
+ s("div", wa, "Light (<10mm): " + p((l = (T = (he = t.seasonalData) == null ? void 0 : he.precip) == null ? void 0 : T.filter((i) => i < 10)) == null ? void 0 : l.length) + " days", 1),
4086
+ s("div", pa, "Moderate (<=24.9mm): " + p((re = (v = (X = t.seasonalData) == null ? void 0 : X.precip) == null ? void 0 : v.filter((i) => i >= 10 && i < 24.9)) == null ? void 0 : re.length) + " days", 1),
4087
+ s("div", ma, "Heavy (<=49.9mm): " + p((u = (d = (j = t.seasonalData) == null ? void 0 : j.precip) == null ? void 0 : d.filter((i) => i >= 24.9 && i < 49.9)) == null ? void 0 : u.length) + " days", 1),
4088
+ s("div", ua, "Rainstorm (<=99.9mm): " + p((De = (D = (K = t.seasonalData) == null ? void 0 : K.precip) == null ? void 0 : D.filter((i) => i >= 49.9 && i < 99.9)) == null ? void 0 : De.length) + " days", 1),
4089
+ s("div", fa, "Heavy Rainstorm (>=100mm): " + p((fe = (oe = (H = t.seasonalData) == null ? void 0 : H.precip) == null ? void 0 : oe.filter((i) => i >= 100)) == null ? void 0 : fe.length) + " days", 1),
4090
4090
  e[66] || (e[66] = s("div", { class: "label" }, "Wind", -1)),
4091
- s("div", Da, "Mean Wind: " + w(h.roundPrecision(t.seasonalData.meanWind, 1)) + " kts", 1),
4092
- s("div", ya, "Windiest Day: " + w(t.seasonalData.windiestDay) + " ( " + w(t.seasonalData.maxWindSpeed) + "kts )", 1),
4093
- s("div", Ba, "Dominant Wind Dir: " + w(t.seasonalData.dominantWind), 1)
4091
+ s("div", Da, "Mean Wind: " + p(h.roundPrecision(t.seasonalData.meanWind, 1)) + " kts", 1),
4092
+ s("div", ya, "Windiest Day: " + p(t.seasonalData.windiestDay) + " ( " + p(t.seasonalData.maxWindSpeed) + "kts )", 1),
4093
+ s("div", Ba, "Dominant Wind Dir: " + p(t.seasonalData.dominantWind), 1)
4094
4094
  ])
4095
4095
  ])) : (B = t.loading) != null && B.seasonalEchart ? (n(), A("div", xa, e[67] || (e[67] = [
4096
4096
  s("img", {
@@ -4098,9 +4098,9 @@ function za(o, e, a, r, t, h) {
4098
4098
  src: He
4099
4099
  }, null, -1)
4100
4100
  ]))) : (n(), A("div", va, "No Data"))
4101
- ])) : Ee("", !0)
4101
+ ])) : Qe("", !0)
4102
4102
  ]),
4103
- Ie(le, {
4103
+ be(le, {
4104
4104
  modelValue: t.showFollowDialog,
4105
4105
  "onUpdate:modelValue": e[13] || (e[13] = (i) => t.showFollowDialog = i),
4106
4106
  title: t.followDialogTitle,
@@ -4111,7 +4111,7 @@ function za(o, e, a, r, t, h) {
4111
4111
  class: "follow-dialog",
4112
4112
  "close-on-click-modal": !1
4113
4113
  }, {
4114
- default: Me(() => [
4114
+ default: Le(() => [
4115
4115
  s("div", null, [
4116
4116
  s("div", {
4117
4117
  class: "iconfont close-btn",
@@ -4119,15 +4119,15 @@ function za(o, e, a, r, t, h) {
4119
4119
  }, ""),
4120
4120
  t.position.portId ? (n(), A("div", Ca, [
4121
4121
  e[68] || (e[68] = s("span", { class: "label" }, "Port:", -1)),
4122
- s("span", Ia, w(t.position.name), 1)
4123
- ])) : Ee("", !0),
4122
+ s("span", Ia, p(t.position.name), 1)
4123
+ ])) : Qe("", !0),
4124
4124
  s("div", ba, [
4125
4125
  e[69] || (e[69] = s("span", { class: "label" }, "Postion:", -1)),
4126
- s("span", Ea, w(this.computeLat(this.position.lat) + ", " + this.computeLng(this.position.lng)), 1)
4126
+ s("span", Ea, p(this.computeLat(this.position.lat) + ", " + this.computeLng(this.position.lng)), 1)
4127
4127
  ]),
4128
4128
  s("div", Qa, [
4129
4129
  e[70] || (e[70] = s("span", { class: "label" }, "Remark:", -1)),
4130
- t.followItem ? (n(), A("span", Ma, w(t.position.remark || "-"), 1)) : (n(), Ge(ae, {
4130
+ t.followItem ? (n(), A("span", Ma, p(t.position.remark || "-"), 1)) : (n(), Ge(ae, {
4131
4131
  key: 0,
4132
4132
  modelValue: t.followRemark,
4133
4133
  "onUpdate:modelValue": e[12] || (e[12] = (i) => t.followRemark = i),
@@ -4141,7 +4141,7 @@ function za(o, e, a, r, t, h) {
4141
4141
  plain: "",
4142
4142
  onClick: h.handleClickFollow
4143
4143
  }, {
4144
- default: Me(() => e[71] || (e[71] = [
4144
+ default: Le(() => e[71] || (e[71] = [
4145
4145
  ne("Remove")
4146
4146
  ])),
4147
4147
  _: 1
@@ -4150,7 +4150,7 @@ function za(o, e, a, r, t, h) {
4150
4150
  type: "primary",
4151
4151
  onClick: h.handleClickFollow
4152
4152
  }, {
4153
- default: Me(() => e[72] || (e[72] = [
4153
+ default: Le(() => e[72] || (e[72] = [
4154
4154
  ne("Confirm")
4155
4155
  ])),
4156
4156
  _: 1
@@ -4162,12 +4162,12 @@ function za(o, e, a, r, t, h) {
4162
4162
  }, 8, ["modelValue", "title"])
4163
4163
  ]);
4164
4164
  }
4165
- const ka = /* @__PURE__ */ et(tt, [["render", za], ["__scopeId", "data-v-97811ea5"]]), Fa = {
4165
+ const za = /* @__PURE__ */ et(tt, [["render", ka], ["__scopeId", "data-v-b0b68ba8"]]), Fa = {
4166
4166
  install(o) {
4167
- o.component("SpotReport", ka);
4167
+ o.component("SpotReport", za);
4168
4168
  }
4169
4169
  };
4170
4170
  export {
4171
- ka as SpotReport,
4171
+ za as SpotReport,
4172
4172
  Fa as SpotReportPlugin
4173
4173
  };