@idmwx/idmui-gl4 1.2.7 → 1.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ var $o = (t, e, a) => e in t ? Xo(t, e, { enumerable: !0, configurable: !0, writ
3
3
  var me = (t, e, a) => ($o(t, typeof e != "symbol" ? e + "" : e, a), a);
4
4
  import Se from "axios";
5
5
  import { useTheme as ze } from "vuetify";
6
- import { openBlock as b, createElementBlock as S, resolveComponent as x, createBlock as A, withCtx as u, createVNode as d, withModifiers as qe, createElementVNode as l, createCommentVNode as D, normalizeClass as He, toDisplayString as h, createTextVNode as j, Fragment as be, renderList as we, withDirectives as Ue, vShow as We, mergeProps as B, normalizeStyle as ie } from "vue";
6
+ import { openBlock as b, createElementBlock as S, resolveComponent as x, createBlock as A, withCtx as u, createVNode as d, withModifiers as qe, createElementVNode as l, createCommentVNode as D, normalizeClass as He, toDisplayString as h, createTextVNode as j, Fragment as be, renderList as we, withDirectives as Ue, vShow as We, mergeProps as O, normalizeStyle as ie } from "vue";
7
7
  import ve from "mapbox-gl";
8
8
  import { LngLatHelper as $, TropicalHelper as Vo, LaneHelper as Fe } from "@idm-plugin/geo";
9
9
  import M from "moment";
@@ -1485,10 +1485,10 @@ const ui = {
1485
1485
  { label: "Swell", key: "weather.swell", unit: "m" },
1486
1486
  { label: "Current", key: "weather.current", unit: "kts" }
1487
1487
  ], (a = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || a.dateTimeList.forEach((i, o) => {
1488
- var c, n, g, p, f, w, v, y, k, T, R, I, P, _, z, C, L, O, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe, Le, Pe;
1488
+ var c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe, Le, Pe;
1489
1489
  let r = {};
1490
1490
  const s = ((c = oa.pickHourly(t, M(i))) == null ? void 0 : c[0]) || {};
1491
- r.utc = s.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = s.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((g = s == null ? void 0 : s.weather) == null ? void 0 : g.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((f = (p = s == null ? void 0 : s.weather) == null ? void 0 : p.precip) == null ? void 0 : f.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((v = (w = s == null ? void 0 : s.weather) == null ? void 0 : w.precip) == null ? void 0 : v.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((y = s == null ? void 0 : s.weather) == null ? void 0 : y.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (k = s == null ? void 0 : s.weather) == null ? void 0 : k.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (I = (R = s == null ? void 0 : s.weather) == null ? void 0 : R.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((_ = (P = s == null ? void 0 : s.weather) == null ? void 0 : P.wind) == null ? void 0 : _.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((C = (z = s == null ? void 0 : s.weather) == null ? void 0 : z.wind) == null ? void 0 : C.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((O = (L = s == null ? void 0 : s.wave) == null ? void 0 : L.sig) == null ? void 0 : O.height, 1) ?? "-", r.sigwaveDir = (Y = (G = s == null ? void 0 : s.wave) == null ? void 0 : G.sig) == null ? void 0 : Y.direction, r.sigwavePeriod = this.computeRoundPrecision((V = (K = s == null ? void 0 : s.wave) == null ? void 0 : K.sig) == null ? void 0 : V.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((ee = (J = s == null ? void 0 : s.wave) == null ? void 0 : J.wd) == null ? void 0 : ee.height, 1) ?? "-", r.windwaveDir = (re = (Q = s == null ? void 0 : s.wave) == null ? void 0 : Q.wd) == null ? void 0 : re.direction, r.windwavePeriod = this.computeRoundPrecision((pe = (de = s == null ? void 0 : s.wave) == null ? void 0 : de.wd) == null ? void 0 : pe.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((X = (se = s == null ? void 0 : s.wave) == null ? void 0 : se.swell) == null ? void 0 : X.height, 1) ?? "-", r.swellDir = (ue = (oe = s == null ? void 0 : s.wave) == null ? void 0 : oe.swell) == null ? void 0 : ue.direction, r.swellPeriod = this.computeRoundPrecision((F = (ne = s == null ? void 0 : s.wave) == null ? void 0 : ne.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((ce = s == null ? void 0 : s.current) == null ? void 0 : ce.speed, 1) ?? "-", r.currentDir = (xe = s == null ? void 0 : s.current) == null ? void 0 : xe.direction, r.currentSpeed = this.computeRoundPrecision((Le = s == null ? void 0 : s.current) == null ? void 0 : Le.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(s == null ? void 0 : s.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(s == null ? void 0 : s.sst, 0) ?? "-", r.weatherUrls = (Pe = s == null ? void 0 : s.weather) == null ? void 0 : Pe.url, this.tableData[0][`value${o}`] = o * this.interval > 10 ? o * this.interval : "0" + o * this.interval, this.tableData[1][`value${o}`] = r.weatherUrl, this.tableData[2][`value${o}`] = r.temp, this.tableData[3][`value${o}`] = r.precip1h, this.tableData[4][`value${o}`] = r.visibility, this.tableData[5][`value${o}`] = r.windSpeed, this.tableData[6][`value${o}`] = r.sigwaveHeight, this.tableData[7][`value${o}`] = r.swellHeight, this.tableData[8][`value${o}`] = r.currentSpeed;
1491
+ r.utc = s.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = s.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((g = s == null ? void 0 : s.weather) == null ? void 0 : g.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((f = (p = s == null ? void 0 : s.weather) == null ? void 0 : p.precip) == null ? void 0 : f.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((v = (w = s == null ? void 0 : s.weather) == null ? void 0 : w.precip) == null ? void 0 : v.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((y = s == null ? void 0 : s.weather) == null ? void 0 : y.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (C = s == null ? void 0 : s.weather) == null ? void 0 : C.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (I = (B = s == null ? void 0 : s.weather) == null ? void 0 : B.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((_ = (L = s == null ? void 0 : s.weather) == null ? void 0 : L.wind) == null ? void 0 : _.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((P = (k = s == null ? void 0 : s.weather) == null ? void 0 : k.wind) == null ? void 0 : P.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((R = (z = s == null ? void 0 : s.wave) == null ? void 0 : z.sig) == null ? void 0 : R.height, 1) ?? "-", r.sigwaveDir = (Y = (G = s == null ? void 0 : s.wave) == null ? void 0 : G.sig) == null ? void 0 : Y.direction, r.sigwavePeriod = this.computeRoundPrecision((V = (K = s == null ? void 0 : s.wave) == null ? void 0 : K.sig) == null ? void 0 : V.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((ee = (J = s == null ? void 0 : s.wave) == null ? void 0 : J.wd) == null ? void 0 : ee.height, 1) ?? "-", r.windwaveDir = (re = (Q = s == null ? void 0 : s.wave) == null ? void 0 : Q.wd) == null ? void 0 : re.direction, r.windwavePeriod = this.computeRoundPrecision((pe = (de = s == null ? void 0 : s.wave) == null ? void 0 : de.wd) == null ? void 0 : pe.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((X = (se = s == null ? void 0 : s.wave) == null ? void 0 : se.swell) == null ? void 0 : X.height, 1) ?? "-", r.swellDir = (ue = (oe = s == null ? void 0 : s.wave) == null ? void 0 : oe.swell) == null ? void 0 : ue.direction, r.swellPeriod = this.computeRoundPrecision((F = (ne = s == null ? void 0 : s.wave) == null ? void 0 : ne.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((ce = s == null ? void 0 : s.current) == null ? void 0 : ce.speed, 1) ?? "-", r.currentDir = (xe = s == null ? void 0 : s.current) == null ? void 0 : xe.direction, r.currentSpeed = this.computeRoundPrecision((Le = s == null ? void 0 : s.current) == null ? void 0 : Le.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(s == null ? void 0 : s.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(s == null ? void 0 : s.sst, 0) ?? "-", r.weatherUrls = (Pe = s == null ? void 0 : s.weather) == null ? void 0 : Pe.url, this.tableData[0][`value${o}`] = o * this.interval > 10 ? o * this.interval : "0" + o * this.interval, this.tableData[1][`value${o}`] = r.weatherUrl, this.tableData[2][`value${o}`] = r.temp, this.tableData[3][`value${o}`] = r.precip1h, this.tableData[4][`value${o}`] = r.visibility, this.tableData[5][`value${o}`] = r.windSpeed, this.tableData[6][`value${o}`] = r.sigwaveHeight, this.tableData[7][`value${o}`] = r.swellHeight, this.tableData[8][`value${o}`] = r.currentSpeed;
1492
1492
  });
1493
1493
  },
1494
1494
  handleTide() {
@@ -1680,15 +1680,15 @@ function yr(t, e, a, i, o, r) {
1680
1680
  return [
1681
1681
  d(c, { class: "w-100" }, {
1682
1682
  default: u(() => {
1683
- var y, k, T, R, I;
1683
+ var y, C, T, B, I;
1684
1684
  return [
1685
1685
  l("div", gi, [
1686
1686
  l("div", fi, [
1687
1687
  l("div", {
1688
- class: He(["fi mr-2 rounded elevation-4", `fi-${(y = a.port) != null && y.cntLoCode ? (T = (k = a.port) == null ? void 0 : k.cntLoCode) == null ? void 0 : T.toLowerCase() : "xx"}`]),
1688
+ class: He(["fi mr-2 rounded elevation-4", `fi-${(y = a.port) != null && y.cntLoCode ? (T = (C = a.port) == null ? void 0 : C.cntLoCode) == null ? void 0 : T.toLowerCase() : "xx"}`]),
1689
1689
  style: { width: "36px", height: "24px" }
1690
1690
  }, null, 2),
1691
- l("div", null, h((R = a.port) == null ? void 0 : R.name), 1)
1691
+ l("div", null, h((B = a.port) == null ? void 0 : B.name), 1)
1692
1692
  ]),
1693
1693
  d(s, {
1694
1694
  icon: "",
@@ -1718,8 +1718,8 @@ function yr(t, e, a, i, o, r) {
1718
1718
  d(n, { class: "w-100" }),
1719
1719
  l("div", bi, [
1720
1720
  a.followList.some((y) => {
1721
- var k;
1722
- return ((k = y.port) == null ? void 0 : k.id) === a.portId;
1721
+ var C;
1722
+ return ((C = y.port) == null ? void 0 : C.id) === a.portId;
1723
1723
  }) ? (b(), A(s, {
1724
1724
  key: 0,
1725
1725
  class: "text-none text-body-1 rounded flex-1-1-0",
@@ -1909,9 +1909,9 @@ function yr(t, e, a, i, o, r) {
1909
1909
  l("th", hr, h(t.$t("time.time")) + " ( LT ) ", 1),
1910
1910
  l("th", pr, h(t.$t("tide.height")) + " ( m )", 1)
1911
1911
  ]),
1912
- (b(!0), S(be, null, we(o.tideTableData, (y, k) => {
1912
+ (b(!0), S(be, null, we(o.tideTableData, (y, C) => {
1913
1913
  var T;
1914
- return b(), S("tr", { key: k }, [
1914
+ return b(), S("tr", { key: C }, [
1915
1915
  l("td", ur, h(t.$t(`tide.${(T = y == null ? void 0 : y.type) == null ? void 0 : T.toLowerCase()}`)) + " " + h(t.$t("tide.tide")), 1),
1916
1916
  l("td", gr, h(r.computeLocalTime(y == null ? void 0 : y.date, a.port, "MM-DD HH:mm")), 1),
1917
1917
  l("td", fr, h((y == null ? void 0 : y.height) ?? "-") + " m", 1)
@@ -2063,7 +2063,7 @@ function _r(t, e, a, i, o, r) {
2063
2063
  }, 512), [
2064
2064
  [We, o.showInfo]
2065
2065
  ]),
2066
- o.showDetail ? (b(), A(n, B({
2066
+ o.showDetail ? (b(), A(n, O({
2067
2067
  key: 0,
2068
2068
  portId: o.portId,
2069
2069
  port: o.port,
@@ -3049,9 +3049,9 @@ function Tl(t, e, a, i, o, r) {
3049
3049
  l("th", zl, h(t.$t("tide.height")) + " ( m )", 1)
3050
3050
  ]),
3051
3051
  (b(!0), S(be, null, we(o.tideTableData, (v, y) => {
3052
- var k;
3052
+ var C;
3053
3053
  return b(), S("tr", { key: y }, [
3054
- l("td", Ll, h(t.$t(`tide.${(k = v == null ? void 0 : v.type) == null ? void 0 : k.toLowerCase()}`)) + " " + h(t.$t("tide.tide")), 1),
3054
+ l("td", Ll, h(t.$t(`tide.${(C = v == null ? void 0 : v.type) == null ? void 0 : C.toLowerCase()}`)) + " " + h(t.$t("tide.tide")), 1),
3055
3055
  l("td", Pl, h(r.computeLocalTime(v == null ? void 0 : v.date, a.station, "MM-DD HH:mm")), 1),
3056
3056
  l("td", Cl, h((v == null ? void 0 : v.height) ?? "-") + " m", 1)
3057
3057
  ]);
@@ -3167,7 +3167,7 @@ function Ol(t, e, a, i, o, r) {
3167
3167
  }, 512), [
3168
3168
  [We, o.showInfo]
3169
3169
  ]),
3170
- o.showDetail ? (b(), A(n, B({
3170
+ o.showDetail ? (b(), A(n, O({
3171
3171
  key: 0,
3172
3172
  station: o.station,
3173
3173
  onClose: r.handleCloseDetail
@@ -4331,7 +4331,7 @@ function Zl(t, e, a, i, o, r) {
4331
4331
  }, 512), [
4332
4332
  [We, o.showInfo]
4333
4333
  ]),
4334
- o.showDetail ? (b(), A(n, B({
4334
+ o.showDetail ? (b(), A(n, O({
4335
4335
  key: 0,
4336
4336
  portId: o.portId,
4337
4337
  port: o.port,
@@ -5497,7 +5497,7 @@ const es = {
5497
5497
  }, ds = { class: "text-body-2 text-center pt-1" };
5498
5498
  function hs(t, e, a, i, o, r) {
5499
5499
  var Q, re, de, pe, se, X, oe, ue, ne;
5500
- const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VCardItem"), p = x("VCheckbox"), f = x("VCardText"), w = x("VCard"), v = x("IdmLatLng"), y = x("IdmTerminator"), k = x("IdmTimezone"), T = x("IdmPort"), R = x("IdmAlertZone"), I = x("IdmTideStations"), P = x("IdmEcaZone"), _ = x("IdmWarZone"), z = x("IdmGmdssArea"), C = x("IdmLoadLine"), L = x("IdmWorldMarine"), O = x("IdmVRA"), G = x("IdmSpecialArea"), Y = x("IdmWorld12nm"), K = x("IdmChinaRoute"), V = x("IdmIceAreas"), J = x("IdmFollowPort"), ee = x("IdmFollowPosition");
5500
+ const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VCardItem"), p = x("VCheckbox"), f = x("VCardText"), w = x("VCard"), v = x("IdmLatLng"), y = x("IdmTerminator"), C = x("IdmTimezone"), T = x("IdmPort"), B = x("IdmAlertZone"), I = x("IdmTideStations"), L = x("IdmEcaZone"), _ = x("IdmWarZone"), k = x("IdmGmdssArea"), P = x("IdmLoadLine"), z = x("IdmWorldMarine"), R = x("IdmVRA"), G = x("IdmSpecialArea"), Y = x("IdmWorld12nm"), K = x("IdmChinaRoute"), V = x("IdmIceAreas"), J = x("IdmFollowPort"), ee = x("IdmFollowPosition");
5501
5501
  return b(), S("div", ts, [
5502
5502
  l("div", {
5503
5503
  class: "menu-bar-box transition px-1 rounded",
@@ -5508,7 +5508,7 @@ function hs(t, e, a, i, o, r) {
5508
5508
  location: "left"
5509
5509
  }, {
5510
5510
  activator: u(({ props: F }) => [
5511
- d(s, B(F, {
5511
+ d(s, O(F, {
5512
5512
  "min-width": "32",
5513
5513
  width: "32",
5514
5514
  height: "32",
@@ -5728,23 +5728,23 @@ function hs(t, e, a, i, o, r) {
5728
5728
  })
5729
5729
  ])
5730
5730
  ], 6),
5731
- a.map ? (b(), A(v, B({
5731
+ a.map ? (b(), A(v, O({
5732
5732
  key: 0,
5733
5733
  map: a.map,
5734
5734
  "menu-toggle": a.menuToggle,
5735
5735
  show: o.checkList.includes("graticule")
5736
5736
  }, t.$attrs), null, 16, ["map", "menu-toggle", "show"])) : D("", !0),
5737
- a.map ? (b(), A(y, B({
5737
+ a.map ? (b(), A(y, O({
5738
5738
  key: 1,
5739
5739
  map: a.map,
5740
5740
  area: (Q = o.otherLayers) == null ? void 0 : Q["day-night"]
5741
5741
  }, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
5742
- a.map ? (b(), A(k, B({
5742
+ a.map ? (b(), A(C, O({
5743
5743
  key: 2,
5744
5744
  map: a.map,
5745
5745
  zone: (re = o.otherLayers) == null ? void 0 : re["time-zones"]
5746
5746
  }, t.$attrs), null, 16, ["map", "zone"])) : D("", !0),
5747
- a.map ? (b(), A(T, B({
5747
+ a.map ? (b(), A(T, O({
5748
5748
  key: 3,
5749
5749
  ref: "idmPorts",
5750
5750
  map: a.map,
@@ -5754,7 +5754,7 @@ function hs(t, e, a, i, o, r) {
5754
5754
  "forecast-model": a.forecastModel,
5755
5755
  realTime: a.realTime
5756
5756
  }, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "ports", "gateway", "token", "forecast-model", "realTime"])) : D("", !0),
5757
- a.map ? (b(), A(R, B({
5757
+ a.map ? (b(), A(B, O({
5758
5758
  key: 4,
5759
5759
  map: a.map,
5760
5760
  zone: (pe = o.otherLayers) == null ? void 0 : pe["alert-zones"]
@@ -5762,7 +5762,7 @@ function hs(t, e, a, i, o, r) {
5762
5762
  "before-layer": "empty-layer-3",
5763
5763
  theme: a.theme
5764
5764
  }), null, 16, ["map", "zone", "theme"])) : D("", !0),
5765
- a.map ? (b(), A(I, B({
5765
+ a.map ? (b(), A(I, O({
5766
5766
  key: 5,
5767
5767
  ref: "idmIideStation",
5768
5768
  map: a.map,
@@ -5774,60 +5774,60 @@ function hs(t, e, a, i, o, r) {
5774
5774
  forecastModel: a.forecastModel,
5775
5775
  "before-layer": "empty-layer-3"
5776
5776
  }, t.$attrs), null, 16, ["map", "gateway", "token", "show", "theme", "realTime", "forecastModel"])) : D("", !0),
5777
- a.map ? (b(), A(P, B({
5777
+ a.map ? (b(), A(L, O({
5778
5778
  key: 6,
5779
5779
  map: a.map,
5780
5780
  zone: (se = o.otherLayers) == null ? void 0 : se["eca-zones"]
5781
5781
  }, t.$attrs), null, 16, ["map", "zone"])) : D("", !0),
5782
- a.map ? (b(), A(_, B({
5782
+ a.map ? (b(), A(_, O({
5783
5783
  key: 7,
5784
5784
  map: a.map,
5785
5785
  zone: (X = o.otherLayers) == null ? void 0 : X["war-zones"]
5786
5786
  }, t.$attrs), null, 16, ["map", "zone"])) : D("", !0),
5787
- a.map ? (b(), A(z, B({
5787
+ a.map ? (b(), A(k, O({
5788
5788
  key: 8,
5789
5789
  map: a.map,
5790
5790
  area: (oe = o.otherLayers) == null ? void 0 : oe["gmdss-areas"]
5791
5791
  }, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
5792
- a.map ? (b(), A(C, B({
5792
+ a.map ? (b(), A(P, O({
5793
5793
  key: 9,
5794
5794
  map: a.map,
5795
5795
  show: o.checkList.includes("load-lines")
5796
5796
  }, t.$attrs), null, 16, ["map", "show"])) : D("", !0),
5797
- a.map ? (b(), A(L, B({
5797
+ a.map ? (b(), A(z, O({
5798
5798
  key: 10,
5799
5799
  map: a.map,
5800
5800
  token: a.token,
5801
5801
  show: o.checkList.includes("worldMarine")
5802
5802
  }, t.$attrs), null, 16, ["map", "token", "show"])) : D("", !0),
5803
- a.map ? (b(), A(O, B({
5803
+ a.map ? (b(), A(R, O({
5804
5804
  key: 11,
5805
5805
  map: a.map,
5806
5806
  area: (ue = o.otherLayers) == null ? void 0 : ue["voluntary-reporting-area"]
5807
5807
  }, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
5808
- a.map ? (b(), A(G, B({
5808
+ a.map ? (b(), A(G, O({
5809
5809
  key: 12,
5810
5810
  map: a.map,
5811
5811
  area: (ne = o.otherLayers) == null ? void 0 : ne["special-area"]
5812
5812
  }, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
5813
- a.map ? (b(), A(Y, B({
5813
+ a.map ? (b(), A(Y, O({
5814
5814
  key: 13,
5815
5815
  map: a.map,
5816
5816
  token: a.token,
5817
5817
  show: o.checkList.includes("world12nm")
5818
5818
  }, t.$attrs), null, 16, ["map", "token", "show"])) : D("", !0),
5819
- a.map ? (b(), A(K, B({
5819
+ a.map ? (b(), A(K, O({
5820
5820
  key: 14,
5821
5821
  map: a.map,
5822
5822
  token: a.token,
5823
5823
  show: o.checkList.includes("chinaRoute")
5824
5824
  }, t.$attrs), null, 16, ["map", "token", "show"])) : D("", !0),
5825
- a.map ? (b(), A(V, B({
5825
+ a.map ? (b(), A(V, O({
5826
5826
  key: 15,
5827
5827
  map: a.map,
5828
5828
  show: o.checkList.includes("ice-areas")
5829
5829
  }, t.$attrs), null, 16, ["map", "show"])) : D("", !0),
5830
- a.map ? (b(), A(J, B({
5830
+ a.map ? (b(), A(J, O({
5831
5831
  key: 16,
5832
5832
  ref: "idmFollowPort",
5833
5833
  map: a.map,
@@ -5837,7 +5837,7 @@ function hs(t, e, a, i, o, r) {
5837
5837
  "forecast-model": a.forecastModel,
5838
5838
  realTime: a.realTime
5839
5839
  }, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "show", "gateway", "token", "forecast-model", "realTime"])) : D("", !0),
5840
- a.map ? (b(), A(ee, B({
5840
+ a.map ? (b(), A(ee, O({
5841
5841
  key: 17,
5842
5842
  ref: "idmFollowPosition",
5843
5843
  map: a.map,
@@ -5894,11 +5894,11 @@ class sa {
5894
5894
  * @param [lb.x, lb.y, rt.x, rt.y]
5895
5895
  */
5896
5896
  getBoundPixel() {
5897
- var y, k;
5897
+ var y, C;
5898
5898
  const e = (y = this.map) == null ? void 0 : y.getBounds();
5899
5899
  if (!e)
5900
5900
  return [];
5901
- const a = ((k = this.map) == null ? void 0 : k.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], o = [e._sw.lng, e._sw.lat], [r, s] = this.convertNLng(i[0]), [c, n] = this.convertNLng(o[0]), [g, p] = this.mercator.px([r, i[1]], a), [f, w] = this.mercator.px([c, o[1]], a), v = Math.round(this.mercator.size * Math.pow(2, a) * (s + n));
5901
+ const a = ((C = this.map) == null ? void 0 : C.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], o = [e._sw.lng, e._sw.lat], [r, s] = this.convertNLng(i[0]), [c, n] = this.convertNLng(o[0]), [g, p] = this.mercator.px([r, i[1]], a), [f, w] = this.mercator.px([c, o[1]], a), v = Math.round(this.mercator.size * Math.pow(2, a) * (s + n));
5902
5902
  return [f, w, g + v, p];
5903
5903
  }
5904
5904
  /**
@@ -6084,8 +6084,8 @@ class je {
6084
6084
  p.resolution && a.uniform2f(p.resolution, a.canvas.width * e.ratio, a.canvas.height * e.ratio), a.activeTexture(a.TEXTURE0), a.bindTexture(a.TEXTURE_2D, o), p.image && a.uniform1i(p.image, 0), a.activeTexture(a.TEXTURE1), a.bindTexture(a.TEXTURE_2D, r), p.color && a.uniform1i(p.color, 1), c != null && c.uvRange && (c != null && c.sRange) && (p.uvRange && a.uniform2f(p.uvRange, c.uvRange[0], c.uvRange[1]), p.sRange && a.uniform2f(p.sRange, c.sRange[0], c.sRange[1])), p.scale && a.uniform1f(p.scale, (c == null ? void 0 : c.scale) || 1);
6085
6085
  const f = e.getBoundPixel(), w = e.map.getZoom() + 1, v = e.getWorldCopy(f, w);
6086
6086
  for (const y of v) {
6087
- const k = (y[0] - f[0]) * e.ratio, T = (y[1] - f[3]) * e.ratio, R = y[2] * e.ratio, [I, P, _, z] = [k, R + k, T, R + T], C = new Float32Array([I, _, P, _, I, z, I, z, P, _, P, z]);
6088
- a.bindBuffer(a.ARRAY_BUFFER, s), a.bufferData(a.ARRAY_BUFFER, C, a.STATIC_DRAW), a.drawArrays(a.TRIANGLES, 0, 6);
6087
+ const C = (y[0] - f[0]) * e.ratio, T = (y[1] - f[3]) * e.ratio, B = y[2] * e.ratio, [I, L, _, k] = [C, B + C, T, B + T], P = new Float32Array([I, _, L, _, I, k, I, k, L, _, L, k]);
6088
+ a.bindBuffer(a.ARRAY_BUFFER, s), a.bufferData(a.ARRAY_BUFFER, P, a.STATIC_DRAW), a.drawArrays(a.TRIANGLES, 0, 6);
6089
6089
  }
6090
6090
  } catch (p) {
6091
6091
  console.log(`render failed...${p}`);
@@ -7594,7 +7594,7 @@ function Hs(t, e, a, i, o, r) {
7594
7594
  location: "left"
7595
7595
  }, {
7596
7596
  activator: u(({ props: g }) => [
7597
- d(s, B(g, {
7597
+ d(s, O(g, {
7598
7598
  "min-width": "32",
7599
7599
  width: "32",
7600
7600
  height: "32",
@@ -8668,19 +8668,19 @@ const bn = {
8668
8668
  const e = (/* @__PURE__ */ new Date()).valueOf();
8669
8669
  let a = 0, i = 0;
8670
8670
  if (this.map) {
8671
- const v = ((o = this.map) == null ? void 0 : o.getZoom()) + 1, y = (r = this.map) == null ? void 0 : r.getBounds(), k = `${y._sw.lng},${y._sw.lat},${y._ne.lng},${y._ne.lat}`;
8671
+ const v = ((o = this.map) == null ? void 0 : o.getZoom()) + 1, y = (r = this.map) == null ? void 0 : r.getBounds(), C = `${y._sw.lng},${y._sw.lat},${y._ne.lng},${y._ne.lat}`;
8672
8672
  if (this.particleFactor && ((s = this.$refs.layer) != null && s.autoActive)) {
8673
- const T = ia.WEATHER_LAYERS.find((R) => {
8673
+ const T = ia.WEATHER_LAYERS.find((B) => {
8674
8674
  var I;
8675
- return ((I = R.peer) == null ? void 0 : I.weight) === this.particleFactor.weight;
8675
+ return ((I = B.peer) == null ? void 0 : I.weight) === this.particleFactor.weight;
8676
8676
  });
8677
8677
  this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight & T.weight ? this.weatherWeight : this.weatherWeight + T.weight : this.weatherWeight = this.weatherWeight & T.weight ? this.weatherWeight - T.weight : this.weatherWeight;
8678
8678
  }
8679
8679
  if (this.weatherWeight > 0) {
8680
8680
  let T = this.weatherWeight;
8681
8681
  if (T > 0) {
8682
- const R = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], I = await Se.get(
8683
- `${R}/api/arc/weather/layers2/links?l=${T}&v=${this.forecastModel}&z=${v}&bbox=${k}&t=${this.realTime}`,
8682
+ const B = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], I = await Se.get(
8683
+ `${B}/api/arc/weather/layers2/links?l=${T}&v=${this.forecastModel}&z=${v}&bbox=${C}&t=${this.realTime}`,
8684
8684
  {
8685
8685
  headers: {
8686
8686
  Authorization: this.token || this.defaultMeteoToken
@@ -8688,45 +8688,45 @@ const bn = {
8688
8688
  }
8689
8689
  );
8690
8690
  if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + a), console.log("weather links elapsed: ", i, ", total: ", a += i), ((c = I == null ? void 0 : I.data) == null ? void 0 : c.code) === 0) {
8691
- const P = (n = I == null ? void 0 : I.data) == null ? void 0 : n.data, _ = [];
8692
- for (const C in P)
8691
+ const L = (n = I == null ? void 0 : I.data) == null ? void 0 : n.data, _ = [];
8692
+ for (const P in L)
8693
8693
  _.push(
8694
- Se.get(P[C], {
8694
+ Se.get(L[P], {
8695
8695
  headers: {
8696
8696
  Authorization: this.token || this.defaultMeteoToken,
8697
- key: C
8697
+ key: P
8698
8698
  },
8699
- responseType: /\.(jpg|png)$/.test(P[C]) ? "blob" : "json"
8700
- }).catch((L) => {
8701
- console.log(`[${C}] fetch layer error: ${L}`);
8699
+ responseType: /\.(jpg|png)$/.test(L[P]) ? "blob" : "json"
8700
+ }).catch((z) => {
8701
+ console.log(`[${P}] fetch layer error: ${z}`);
8702
8702
  })
8703
8703
  );
8704
- const z = await Promise.all(_);
8705
- this.weatherLayers = {}, z.map((C) => {
8704
+ const k = await Promise.all(_);
8705
+ this.weatherLayers = {}, k.map((P) => {
8706
8706
  var G, Y, K, V;
8707
- const L = ((G = C == null ? void 0 : C.data) == null ? void 0 : G.data) || (C == null ? void 0 : C.data);
8708
- let O = (K = (Y = C == null ? void 0 : C.config) == null ? void 0 : Y.headers) == null ? void 0 : K.key;
8709
- O && L && (this.weatherLayers[O] = {
8710
- raw: L,
8711
- type: ((V = C == null ? void 0 : C.config) == null ? void 0 : V.responseType) === "blob" ? "image" : "json",
8707
+ const z = ((G = P == null ? void 0 : P.data) == null ? void 0 : G.data) || (P == null ? void 0 : P.data);
8708
+ let R = (K = (Y = P == null ? void 0 : P.config) == null ? void 0 : Y.headers) == null ? void 0 : K.key;
8709
+ R && z && (this.weatherLayers[R] = {
8710
+ raw: z,
8711
+ type: ((V = P == null ? void 0 : P.config) == null ? void 0 : V.responseType) === "blob" ? "image" : "json",
8712
8712
  etime: I.data.etime
8713
8713
  });
8714
8714
  });
8715
8715
  }
8716
8716
  if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + a), console.log("weather layers elapsed: ", i, ", total: ", a += i), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
8717
- const P = (g = this.weatherLayers["swell-direction"]) == null ? void 0 : g.raw, _ = (p = this.weatherLayers["swell-height"]) == null ? void 0 : p.raw;
8717
+ const L = (g = this.weatherLayers["swell-direction"]) == null ? void 0 : g.raw, _ = (p = this.weatherLayers["swell-height"]) == null ? void 0 : p.raw;
8718
8718
  delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
8719
8719
  type: "json",
8720
- direction: P,
8720
+ direction: L,
8721
8721
  height: { raw: _ },
8722
8722
  etime: I.data.etime
8723
8723
  };
8724
8724
  }
8725
8725
  if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
8726
- const P = (f = this.weatherLayers["current-direction"]) == null ? void 0 : f.raw, _ = (w = this.weatherLayers["current-speed"]) == null ? void 0 : w.raw;
8726
+ const L = (f = this.weatherLayers["current-direction"]) == null ? void 0 : f.raw, _ = (w = this.weatherLayers["current-speed"]) == null ? void 0 : w.raw;
8727
8727
  delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
8728
8728
  type: "json",
8729
- direction: P,
8729
+ direction: L,
8730
8730
  speed: { raw: _ },
8731
8731
  etime: I.data.etime
8732
8732
  };
@@ -8784,51 +8784,51 @@ const bn = {
8784
8784
  );
8785
8785
  },
8786
8786
  handleDrawWeather4Json() {
8787
- var g, p, f, w, v, y, k;
8787
+ var g, p, f, w, v, y, C;
8788
8788
  const t = (/* @__PURE__ */ new Date()).valueOf();
8789
8789
  let e = 0, a = 0;
8790
8790
  const i = (g = this.map) == null ? void 0 : g.getBounds(), o = (p = this.map) == null ? void 0 : p.getZoom(), r = $.convertToStdLng(i._sw.lng), s = $.convertToStdLng(i._ne.lng), c = Math.floor(i._sw.lat), n = Math.ceil(i._ne.lat);
8791
8791
  for (const T in this.weatherLayers) {
8792
- let R = !1;
8792
+ let B = !1;
8793
8793
  if (this.weatherLayers[T].active && this.weatherLayers[T].type === "json") {
8794
8794
  let I = [];
8795
8795
  if (T === "swell") {
8796
- R = !0;
8797
- const P = ((f = this.weatherLayers[T]) == null ? void 0 : f.direction) || {};
8798
- for (const z in P)
8799
- if (z > c && z < n && (!(o <= this.zoom) || z % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8800
- const C = P[z].lng;
8801
- r > s ? C.forEach((L, O) => {
8796
+ B = !0;
8797
+ const L = ((f = this.weatherLayers[T]) == null ? void 0 : f.direction) || {};
8798
+ for (const k in L)
8799
+ if (k > c && k < n && (!(o <= this.zoom) || k % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8800
+ const P = L[k].lng;
8801
+ r > s ? P.forEach((z, R) => {
8802
8802
  var G, Y, K, V, J, ee;
8803
8803
  if (o < 2) {
8804
- if ((L >= 0 && L <= 360 || L >= -360 && L <= 0) && L % 10 === 0) {
8805
- const Q = H.point([L, z], {
8806
- val: ((G = P[z].val) == null ? void 0 : G[O]) || ((Y = P[z].dir) == null ? void 0 : Y[O]),
8807
- spd: (K = P[z].spd) == null ? void 0 : K[O]
8804
+ if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
8805
+ const Q = H.point([z, k], {
8806
+ val: ((G = L[k].val) == null ? void 0 : G[R]) || ((Y = L[k].dir) == null ? void 0 : Y[R]),
8807
+ spd: (K = L[k].spd) == null ? void 0 : K[R]
8808
8808
  });
8809
8809
  I.push(Q);
8810
8810
  }
8811
- } else if ((L >= r && L <= 180 || L >= -180 && L <= s) && (!(o <= this.zoom) || L % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8812
- const Q = H.point([L, z], {
8813
- val: ((V = P[z].val) == null ? void 0 : V[O]) || ((J = P[z].dir) == null ? void 0 : J[O]),
8814
- spd: (ee = P[z].spd) == null ? void 0 : ee[O]
8811
+ } else if ((z >= r && z <= 180 || z >= -180 && z <= s) && (!(o <= this.zoom) || z % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8812
+ const Q = H.point([z, k], {
8813
+ val: ((V = L[k].val) == null ? void 0 : V[R]) || ((J = L[k].dir) == null ? void 0 : J[R]),
8814
+ spd: (ee = L[k].spd) == null ? void 0 : ee[R]
8815
8815
  });
8816
8816
  I.push(Q);
8817
8817
  }
8818
- }) : C.forEach((L, O) => {
8818
+ }) : P.forEach((z, R) => {
8819
8819
  var G, Y, K, V, J, ee;
8820
8820
  if (r < 2) {
8821
- if ((L >= 0 && L <= 360 || L >= -360 && L <= 0) && L % 10 === 0) {
8822
- const Q = H.point([L, z], {
8823
- val: ((G = P[z].val) == null ? void 0 : G[O]) || ((Y = P[z].dir) == null ? void 0 : Y[O]),
8824
- spd: (K = P[z].spd) == null ? void 0 : K[O]
8821
+ if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
8822
+ const Q = H.point([z, k], {
8823
+ val: ((G = L[k].val) == null ? void 0 : G[R]) || ((Y = L[k].dir) == null ? void 0 : Y[R]),
8824
+ spd: (K = L[k].spd) == null ? void 0 : K[R]
8825
8825
  });
8826
8826
  I.push(Q);
8827
8827
  }
8828
- } else if (L >= r && L <= s && (!(o <= this.zoom) || L % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8829
- const Q = H.point([L, z], {
8830
- val: ((V = P[z].val) == null ? void 0 : V[O]) || ((J = P[z].dir) == null ? void 0 : J[O]),
8831
- spd: (ee = P[z].spd) == null ? void 0 : ee[O]
8828
+ } else if (z >= r && z <= s && (!(o <= this.zoom) || z % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8829
+ const Q = H.point([z, k], {
8830
+ val: ((V = L[k].val) == null ? void 0 : V[R]) || ((J = L[k].dir) == null ? void 0 : J[R]),
8831
+ spd: (ee = L[k].spd) == null ? void 0 : ee[R]
8832
8832
  });
8833
8833
  I.push(Q);
8834
8834
  }
@@ -8838,61 +8838,61 @@ const bn = {
8838
8838
  const _ = this.weatherLayers[T].height;
8839
8839
  if (_) {
8840
8840
  if (!_.data) {
8841
- const z = [];
8842
- for (const C in (w = _.raw) == null ? void 0 : w.LineString) {
8843
- const L = _.raw.LineString[C];
8844
- for (const O of L)
8845
- z.push(
8846
- H.lineString(O, {
8847
- val: Number(C)
8841
+ const k = [];
8842
+ for (const P in (w = _.raw) == null ? void 0 : w.LineString) {
8843
+ const z = _.raw.LineString[P];
8844
+ for (const R of z)
8845
+ k.push(
8846
+ H.lineString(R, {
8847
+ val: Number(P)
8848
8848
  })
8849
8849
  );
8850
- _.data = H.featureCollection(z);
8850
+ _.data = H.featureCollection(k);
8851
8851
  }
8852
8852
  }
8853
8853
  if (_.data) {
8854
- const z = this.handleBboxClip(_.data, i);
8855
- I = I.concat(z);
8854
+ const k = this.handleBboxClip(_.data, i);
8855
+ I = I.concat(k);
8856
8856
  }
8857
8857
  a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", a, ", total: ", e += a);
8858
8858
  }
8859
8859
  } else if (T === "current") {
8860
- R = !0;
8861
- const P = ((v = this.weatherLayers[T]) == null ? void 0 : v.direction) || {};
8862
- for (const z in P)
8863
- if (z > c && z < n && (!(o <= this.zoom) || z % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8864
- const C = P[z].lng;
8865
- r > s ? C.forEach((L, O) => {
8860
+ B = !0;
8861
+ const L = ((v = this.weatherLayers[T]) == null ? void 0 : v.direction) || {};
8862
+ for (const k in L)
8863
+ if (k > c && k < n && (!(o <= this.zoom) || k % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8864
+ const P = L[k].lng;
8865
+ r > s ? P.forEach((z, R) => {
8866
8866
  var G, Y, K, V, J, ee;
8867
8867
  if (o < 2) {
8868
- if ((L >= 0 && L <= 360 || L >= -360 && L <= 0) && L % 10 === 0) {
8869
- const Q = H.point([L, z], {
8870
- val: ((G = P[z].val) == null ? void 0 : G[O]) || ((Y = P[z].dir) == null ? void 0 : Y[O]),
8871
- spd: (K = P[z].spd) == null ? void 0 : K[O]
8868
+ if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
8869
+ const Q = H.point([z, k], {
8870
+ val: ((G = L[k].val) == null ? void 0 : G[R]) || ((Y = L[k].dir) == null ? void 0 : Y[R]),
8871
+ spd: (K = L[k].spd) == null ? void 0 : K[R]
8872
8872
  });
8873
8873
  I.push(Q);
8874
8874
  }
8875
- } else if ((L >= r && L <= 180 || L >= -180 && L <= s) && (!(o <= this.zoom) || L % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8876
- const Q = H.point([L, z], {
8877
- val: ((V = P[z].val) == null ? void 0 : V[O]) || ((J = P[z].dir) == null ? void 0 : J[O]),
8878
- spd: (ee = P[z].spd) == null ? void 0 : ee[O]
8875
+ } else if ((z >= r && z <= 180 || z >= -180 && z <= s) && (!(o <= this.zoom) || z % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8876
+ const Q = H.point([z, k], {
8877
+ val: ((V = L[k].val) == null ? void 0 : V[R]) || ((J = L[k].dir) == null ? void 0 : J[R]),
8878
+ spd: (ee = L[k].spd) == null ? void 0 : ee[R]
8879
8879
  });
8880
8880
  I.push(Q);
8881
8881
  }
8882
- }) : C.forEach((L, O) => {
8882
+ }) : P.forEach((z, R) => {
8883
8883
  var G, Y, K, V, J, ee;
8884
8884
  if (r < 2) {
8885
- if ((L >= 0 && L <= 360 || L >= -360 && L <= 0) && L % 10 === 0) {
8886
- const Q = H.point([L, z], {
8887
- val: ((G = P[z].val) == null ? void 0 : G[O]) || ((Y = P[z].dir) == null ? void 0 : Y[O]),
8888
- spd: (K = P[z].spd) == null ? void 0 : K[O]
8885
+ if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
8886
+ const Q = H.point([z, k], {
8887
+ val: ((G = L[k].val) == null ? void 0 : G[R]) || ((Y = L[k].dir) == null ? void 0 : Y[R]),
8888
+ spd: (K = L[k].spd) == null ? void 0 : K[R]
8889
8889
  });
8890
8890
  I.push(Q);
8891
8891
  }
8892
- } else if (L >= r && L <= s && (!(o <= this.zoom) || L % (o < this.zoom / 2 ? 5 : 3) === 0)) {
8893
- const Q = H.point([L, z], {
8894
- val: ((V = P[z].val) == null ? void 0 : V[O]) || ((J = P[z].dir) == null ? void 0 : J[O]),
8895
- spd: (ee = P[z].spd) == null ? void 0 : ee[O]
8892
+ } else if (z >= r && z <= s && (!(o <= this.zoom) || z % (o < this.zoom / 2 ? 5 : 3) === 0)) {
8893
+ const Q = H.point([z, k], {
8894
+ val: ((V = L[k].val) == null ? void 0 : V[R]) || ((J = L[k].dir) == null ? void 0 : J[R]),
8895
+ spd: (ee = L[k].spd) == null ? void 0 : ee[R]
8896
8896
  });
8897
8897
  I.push(Q);
8898
8898
  }
@@ -8902,58 +8902,58 @@ const bn = {
8902
8902
  const _ = this.weatherLayers[T].speed;
8903
8903
  if (_) {
8904
8904
  if (!_.data) {
8905
- const C = [];
8906
- for (const L in (y = _.raw) == null ? void 0 : y.Polygon) {
8907
- const O = _.raw.Polygon[L];
8908
- for (const G of O)
8909
- C.push(
8905
+ const P = [];
8906
+ for (const z in (y = _.raw) == null ? void 0 : y.Polygon) {
8907
+ const R = _.raw.Polygon[z];
8908
+ for (const G of R)
8909
+ P.push(
8910
8910
  H.polygon(G, {
8911
- val: Number(L)
8911
+ val: Number(z)
8912
8912
  })
8913
8913
  );
8914
8914
  }
8915
- _.data = H.featureCollection(C);
8915
+ _.data = H.featureCollection(P);
8916
8916
  }
8917
- const z = o < this.zoom ? _.data.features.filter((C) => C.properties.val > 0.5) : _.data.features;
8918
- I = I.concat(z), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", a, ", total: ", e += a);
8917
+ const k = o < this.zoom ? _.data.features.filter((P) => P.properties.val > 0.5) : _.data.features;
8918
+ I = I.concat(k), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", a, ", total: ", e += a);
8919
8919
  }
8920
8920
  } else if (T === "wind") {
8921
- R = !0;
8922
- const P = this.weatherLayers.wind.raw;
8923
- for (const _ in P)
8921
+ B = !0;
8922
+ const L = this.weatherLayers.wind.raw;
8923
+ for (const _ in L)
8924
8924
  if (_ > c && _ < n && (!(o <= this.zoom) || _ % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8925
- const z = P[_].lng;
8926
- r > s ? z.forEach((C, L) => {
8927
- var O, G, Y, K;
8925
+ const k = L[_].lng;
8926
+ r > s ? k.forEach((P, z) => {
8927
+ var R, G, Y, K;
8928
8928
  if (o < 2) {
8929
- if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
8930
- const V = H.point([C, _], {
8931
- dir: ((O = P[_].val) == null ? void 0 : O[L]) || ((G = P[_].dir) == null ? void 0 : G[L]),
8932
- spd: P[_].spd[L]
8929
+ if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
8930
+ const V = H.point([P, _], {
8931
+ dir: ((R = L[_].val) == null ? void 0 : R[z]) || ((G = L[_].dir) == null ? void 0 : G[z]),
8932
+ spd: L[_].spd[z]
8933
8933
  });
8934
8934
  I.push(V);
8935
8935
  }
8936
- } else if ((C >= r && C <= 180 || C >= -180 && C <= s) && (!(o <= this.zoom) || C % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8937
- const V = H.point([C, _], {
8938
- dir: ((Y = P[_].val) == null ? void 0 : Y[L]) || ((K = P[_].dir) == null ? void 0 : K[L]),
8939
- spd: P[_].spd[L]
8936
+ } else if ((P >= r && P <= 180 || P >= -180 && P <= s) && (!(o <= this.zoom) || P % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8937
+ const V = H.point([P, _], {
8938
+ dir: ((Y = L[_].val) == null ? void 0 : Y[z]) || ((K = L[_].dir) == null ? void 0 : K[z]),
8939
+ spd: L[_].spd[z]
8940
8940
  });
8941
8941
  I.push(V);
8942
8942
  }
8943
- }) : z.forEach((C, L) => {
8944
- var O, G, Y, K;
8943
+ }) : k.forEach((P, z) => {
8944
+ var R, G, Y, K;
8945
8945
  if (o < 2) {
8946
- if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
8947
- const V = H.point([C, _], {
8948
- dir: ((O = P[_].val) == null ? void 0 : O[L]) || ((G = P[_].dir) == null ? void 0 : G[L]),
8949
- spd: P[_].spd[L]
8946
+ if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
8947
+ const V = H.point([P, _], {
8948
+ dir: ((R = L[_].val) == null ? void 0 : R[z]) || ((G = L[_].dir) == null ? void 0 : G[z]),
8949
+ spd: L[_].spd[z]
8950
8950
  });
8951
8951
  I.push(V);
8952
8952
  }
8953
- } else if (C >= r && C <= s && (!(o <= this.zoom) || C % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8954
- const V = H.point([C, _], {
8955
- dir: ((Y = P[_].val) == null ? void 0 : Y[L]) || ((K = P[_].dir) == null ? void 0 : K[L]),
8956
- spd: P[_].spd[L]
8953
+ } else if (P >= r && P <= s && (!(o <= this.zoom) || P % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8954
+ const V = H.point([P, _], {
8955
+ dir: ((Y = L[_].val) == null ? void 0 : Y[z]) || ((K = L[_].dir) == null ? void 0 : K[z]),
8956
+ spd: L[_].spd[z]
8957
8957
  });
8958
8958
  I.push(V);
8959
8959
  }
@@ -8964,34 +8964,34 @@ const bn = {
8964
8964
  if (this.weatherLayers[T].data)
8965
8965
  I = this.weatherLayers[T].data;
8966
8966
  else {
8967
- R = !0;
8968
- const P = this.weatherLayers[T].raw;
8969
- if (P) {
8967
+ B = !0;
8968
+ const L = this.weatherLayers[T].raw;
8969
+ if (L) {
8970
8970
  const _ = [];
8971
- for (const z in P.Polygon) {
8972
- const C = P.Polygon[z];
8973
- for (const L of C)
8971
+ for (const k in L.Polygon) {
8972
+ const P = L.Polygon[k];
8973
+ for (const z of P)
8974
8974
  _.push(
8975
- H.polygon(L, {
8976
- val: Number(z)
8975
+ H.polygon(z, {
8976
+ val: Number(k)
8977
8977
  })
8978
8978
  );
8979
8979
  }
8980
- for (const z in P.MultiPolygon) {
8981
- const C = P.MultiPolygon[z];
8982
- for (const L of C)
8980
+ for (const k in L.MultiPolygon) {
8981
+ const P = L.MultiPolygon[k];
8982
+ for (const z of P)
8983
8983
  _.push(
8984
- H.multiPolygon(L, {
8985
- val: Number(z)
8984
+ H.multiPolygon(z, {
8985
+ val: Number(k)
8986
8986
  })
8987
8987
  );
8988
8988
  }
8989
- for (const z in P.Point) {
8990
- const C = P.Point[z];
8991
- for (let L = 0; L < ((k = C.lng) == null ? void 0 : k.length); L++)
8989
+ for (const k in L.Point) {
8990
+ const P = L.Point[k];
8991
+ for (let z = 0; z < ((C = P.lng) == null ? void 0 : C.length); z++)
8992
8992
  _.push(
8993
- H.point([C.lng[L], z], {
8994
- val: Number(C.val[L])
8993
+ H.point([P.lng[z], k], {
8994
+ val: Number(P.val[z])
8995
8995
  })
8996
8996
  );
8997
8997
  }
@@ -9003,25 +9003,25 @@ const bn = {
9003
9003
  if (this.weatherLayers[T].data)
9004
9004
  I = this.weatherLayers[T].data;
9005
9005
  else {
9006
- R = !0;
9007
- const P = this.weatherLayers[T].raw;
9008
- if (P) {
9006
+ B = !0;
9007
+ const L = this.weatherLayers[T].raw;
9008
+ if (L) {
9009
9009
  const _ = [];
9010
- for (const z in P.LineString) {
9011
- const C = P.LineString[z];
9012
- for (const L of C)
9010
+ for (const k in L.LineString) {
9011
+ const P = L.LineString[k];
9012
+ for (const z of P)
9013
9013
  _.push(
9014
- H.lineString(L, {
9015
- val: Number(z)
9014
+ H.lineString(z, {
9015
+ val: Number(k)
9016
9016
  })
9017
9017
  );
9018
9018
  }
9019
- for (const z in P.Point)
9020
- P.Point[z].lng.forEach((C, L) => {
9021
- C = $.convertToStdLng(C), _.push(
9022
- H.point([C, z], {
9023
- val: P.Point[z].val[L],
9024
- type: P.Point[z].type[L]
9019
+ for (const k in L.Point)
9020
+ L.Point[k].lng.forEach((P, z) => {
9021
+ P = $.convertToStdLng(P), _.push(
9022
+ H.point([P, k], {
9023
+ val: L.Point[k].val[z],
9024
+ type: L.Point[k].type[z]
9025
9025
  })
9026
9026
  );
9027
9027
  });
@@ -9030,7 +9030,7 @@ const bn = {
9030
9030
  }
9031
9031
  a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", a, ", total: ", e += a);
9032
9032
  }
9033
- I.length && (this.weatherLayers[T].data = H.featureCollection(I)), R && (this.weatherLayers[T].version = Math.random() + 1);
9033
+ I.length && (this.weatherLayers[T].data = H.featureCollection(I)), B && (this.weatherLayers[T].version = Math.random() + 1);
9034
9034
  }
9035
9035
  }
9036
9036
  },
@@ -9073,7 +9073,7 @@ const bn = {
9073
9073
  }, Rn = { class: "text-body-1 py-2" }, On = { class: "text-body-1 font-weight-medium" }, Bn = { class: "text-body-2 text-label" }, En = { class: "text-body-2 text-label mb-3" }, Nn = { class: "text-body-1 font-weight-medium" }, jn = { class: "text-body-2 text-label" }, Fn = { class: "text-body-2 text-label mb-3" }, Hn = { class: "text-body-1 py-2" }, Un = { class: "text-body-1 font-weight-medium" }, Wn = { class: "text-body-2 text-label" }, Gn = { class: "text-body-2 text-label mb-3" }, Vn = { class: "text-body-1 font-weight-medium" }, Zn = { class: "text-body-2 text-label" }, qn = { class: "text-body-2 text-label mb-3" }, Yn = { class: "text-body-1 py-2" }, Kn = { class: "text-body-1 font-weight-medium" }, Xn = { class: "text-body-2 text-label" }, $n = { class: "text-body-2 text-label mb-3" };
9074
9074
  function Qn(t, e, a, i, o, r) {
9075
9075
  var pe, se, X, oe, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e;
9076
- const s = x("VBtn"), c = x("VTooltip"), n = x("VCol"), g = x("VRow"), p = x("VCardText"), f = x("VDivider"), w = x("VCard"), v = x("VSwitch"), y = x("VCardTitle"), k = x("VCardItem"), T = x("VCheckbox"), R = x("VRadio"), I = x("VBtnToggle"), P = x("IdmWindBarb"), _ = x("IdmSigWaveHeight"), z = x("IdmCurrentDirection"), C = x("IdmPrmsl"), L = x("IdmWindParticle"), O = x("IdmCurrentParticle"), G = x("IdmWave"), Y = x("IdmSwell"), K = x("IdmIceEdge"), V = x("IdmIceCover"), J = x("IdmIceThickness"), ee = x("IdmPrecip3h"), Q = x("IdmVisibility"), re = x("IdmWaterTemp"), de = x("IdmTemp");
9076
+ const s = x("VBtn"), c = x("VTooltip"), n = x("VCol"), g = x("VRow"), p = x("VCardText"), f = x("VDivider"), w = x("VCard"), v = x("VSwitch"), y = x("VCardTitle"), C = x("VCardItem"), T = x("VCheckbox"), B = x("VRadio"), I = x("VBtnToggle"), L = x("IdmWindBarb"), _ = x("IdmSigWaveHeight"), k = x("IdmCurrentDirection"), P = x("IdmPrmsl"), z = x("IdmWindParticle"), R = x("IdmCurrentParticle"), G = x("IdmWave"), Y = x("IdmSwell"), K = x("IdmIceEdge"), V = x("IdmIceCover"), J = x("IdmIceThickness"), ee = x("IdmPrecip3h"), Q = x("IdmVisibility"), re = x("IdmWaterTemp"), de = x("IdmTemp");
9077
9077
  return b(), S("div", wn, [
9078
9078
  l("div", {
9079
9079
  class: "menu-bar-box transition pa-1",
@@ -9084,7 +9084,7 @@ function Qn(t, e, a, i, o, r) {
9084
9084
  location: "left"
9085
9085
  }, {
9086
9086
  activator: u(({ props: U }) => [
9087
- d(s, B(U, {
9087
+ d(s, O(U, {
9088
9088
  "min-width": "32",
9089
9089
  width: "32",
9090
9090
  height: "32",
@@ -9111,7 +9111,7 @@ function Qn(t, e, a, i, o, r) {
9111
9111
  location: "left"
9112
9112
  }, {
9113
9113
  activator: u(({ props: U }) => [
9114
- d(s, B(U, {
9114
+ d(s, O(U, {
9115
9115
  "min-width": "32",
9116
9116
  width: "32",
9117
9117
  height: "32",
@@ -9272,7 +9272,7 @@ function Qn(t, e, a, i, o, r) {
9272
9272
  elevation: "0"
9273
9273
  }, {
9274
9274
  default: u(() => [
9275
- d(k, { class: "border-b-thin" }, {
9275
+ d(C, { class: "border-b-thin" }, {
9276
9276
  default: u(() => [
9277
9277
  d(y, {
9278
9278
  class: "text-subtitle-1 font-weight-medium",
@@ -9312,7 +9312,7 @@ function Qn(t, e, a, i, o, r) {
9312
9312
  elevation: "0"
9313
9313
  }, {
9314
9314
  default: u(() => [
9315
- d(k, { class: "border-b-thin" }, {
9315
+ d(C, { class: "border-b-thin" }, {
9316
9316
  default: u(() => [
9317
9317
  d(y, {
9318
9318
  class: "text-subtitle-1 font-weight-medium",
@@ -9331,7 +9331,7 @@ function Qn(t, e, a, i, o, r) {
9331
9331
  (b(!0), S(be, null, we(o.tagLayers.filter((U) => !U.overlays && U.key !== "ice-thickness"), (U) => (b(), S(be, {
9332
9332
  key: U.key
9333
9333
  }, [
9334
- d(R, {
9334
+ d(B, {
9335
9335
  modelValue: o.renderKey,
9336
9336
  "onUpdate:modelValue": e[3] || (e[3] = (ae) => o.renderKey = ae),
9337
9337
  label: t.$t(`weather.${U.locale}`),
@@ -9427,7 +9427,7 @@ function Qn(t, e, a, i, o, r) {
9427
9427
  elevation: "0"
9428
9428
  }, {
9429
9429
  default: u(() => [
9430
- d(k, { class: "border-b-thin" }, {
9430
+ d(C, { class: "border-b-thin" }, {
9431
9431
  default: u(() => [
9432
9432
  d(y, {
9433
9433
  class: "text-subtitle-1 font-weight-medium",
@@ -9474,7 +9474,7 @@ function Qn(t, e, a, i, o, r) {
9474
9474
  })
9475
9475
  ], 2)
9476
9476
  ], 6),
9477
- a.map ? (b(), A(P, B({
9477
+ a.map ? (b(), A(L, O({
9478
9478
  key: 1,
9479
9479
  ref: "windBarb",
9480
9480
  map: a.map,
@@ -9483,7 +9483,7 @@ function Qn(t, e, a, i, o, r) {
9483
9483
  wind: (pe = o.weatherLayers) == null ? void 0 : pe.wind,
9484
9484
  "menu-toggle": a.menuToggle
9485
9485
  }, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : D("", !0),
9486
- a.map ? (b(), A(_, B({
9486
+ a.map ? (b(), A(_, O({
9487
9487
  key: 2,
9488
9488
  map: a.map,
9489
9489
  "before-layer": "empty-layer-2",
@@ -9491,7 +9491,7 @@ function Qn(t, e, a, i, o, r) {
9491
9491
  "menu-toggle": a.menuToggle,
9492
9492
  "active-weather-layers": o.activeWeatherLayers
9493
9493
  }, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : D("", !0),
9494
- a.map ? (b(), A(z, B({
9494
+ a.map ? (b(), A(k, O({
9495
9495
  key: 3,
9496
9496
  map: a.map,
9497
9497
  "map-feather": a.mapFeather,
@@ -9499,7 +9499,7 @@ function Qn(t, e, a, i, o, r) {
9499
9499
  current: (X = o.weatherLayers) == null ? void 0 : X.current,
9500
9500
  "menu-toggle": a.menuToggle
9501
9501
  }, t.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) : D("", !0),
9502
- a.map ? (b(), A(C, B({
9502
+ a.map ? (b(), A(P, O({
9503
9503
  key: 4,
9504
9504
  map: a.map,
9505
9505
  "before-layer": "empty-layer-2",
@@ -9507,68 +9507,68 @@ function Qn(t, e, a, i, o, r) {
9507
9507
  "menu-toggle": a.menuToggle,
9508
9508
  "active-weather-layers": o.activeWeatherLayers
9509
9509
  }, t.$attrs, { theme: a.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) : D("", !0),
9510
- a.map ? (b(), A(L, B({
9510
+ a.map ? (b(), A(z, O({
9511
9511
  key: 5,
9512
9512
  viewport: o.viewport,
9513
9513
  factor: (ue = o.weatherLayers) == null ? void 0 : ue["wind-particle"],
9514
9514
  "menu-toggle": a.menuToggle
9515
9515
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
9516
- a.map ? (b(), A(O, B({
9516
+ a.map ? (b(), A(R, O({
9517
9517
  key: 6,
9518
9518
  viewport: o.viewport,
9519
9519
  factor: (ne = o.weatherLayers) == null ? void 0 : ne["current-particle"],
9520
9520
  "menu-toggle": a.menuToggle
9521
9521
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
9522
- a.map ? (b(), A(G, B({
9522
+ a.map ? (b(), A(G, O({
9523
9523
  key: 7,
9524
9524
  viewport: o.viewport,
9525
9525
  factor: (F = o.weatherLayers) == null ? void 0 : F["sig-wave"],
9526
9526
  "menu-toggle": a.menuToggle
9527
9527
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
9528
- a.map ? (b(), A(Y, B({
9528
+ a.map ? (b(), A(Y, O({
9529
9529
  key: 8,
9530
9530
  map: a.map,
9531
9531
  swell: (ce = o.weatherLayers) == null ? void 0 : ce.swell,
9532
9532
  "menu-toggle": a.menuToggle,
9533
9533
  "active-weather-layers": o.activeWeatherLayers
9534
9534
  }, t.$attrs), null, 16, ["map", "swell", "menu-toggle", "active-weather-layers"])) : D("", !0),
9535
- a.map ? (b(), A(K, B({
9535
+ a.map ? (b(), A(K, O({
9536
9536
  key: 9,
9537
9537
  viewport: o.viewport,
9538
9538
  factor: (xe = o.weatherLayers) == null ? void 0 : xe["ice-edge"],
9539
9539
  "menu-toggle": a.menuToggle
9540
9540
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
9541
- a.map ? (b(), A(V, B({
9541
+ a.map ? (b(), A(V, O({
9542
9542
  key: 10,
9543
9543
  viewport: o.viewport,
9544
9544
  factor: (Le = o.weatherLayers) == null ? void 0 : Le["ice-cover"],
9545
9545
  "menu-toggle": a.menuToggle
9546
9546
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
9547
- a.map ? (b(), A(J, B({
9547
+ a.map ? (b(), A(J, O({
9548
9548
  key: 11,
9549
9549
  viewport: o.viewport,
9550
9550
  factor: (Pe = o.weatherLayers) == null ? void 0 : Pe["ice-thickness"],
9551
9551
  "menu-toggle": a.menuToggle
9552
9552
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
9553
- a.map ? (b(), A(ee, B({
9553
+ a.map ? (b(), A(ee, O({
9554
9554
  key: 12,
9555
9555
  viewport: o.viewport,
9556
9556
  factor: (Ae = o.weatherLayers) == null ? void 0 : Ae.precip3h,
9557
9557
  "menu-toggle": a.menuToggle
9558
9558
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
9559
- a.map ? (b(), A(Q, B({
9559
+ a.map ? (b(), A(Q, O({
9560
9560
  key: 13,
9561
9561
  viewport: o.viewport,
9562
9562
  factor: (De = o.weatherLayers) == null ? void 0 : De.visibility,
9563
9563
  "menu-toggle": a.menuToggle
9564
9564
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
9565
- a.map ? (b(), A(re, B({
9565
+ a.map ? (b(), A(re, O({
9566
9566
  key: 14,
9567
9567
  viewport: o.viewport,
9568
9568
  factor: (Re = o.weatherLayers) == null ? void 0 : Re["water-temp"],
9569
9569
  "menu-toggle": a.menuToggle
9570
9570
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
9571
- a.map ? (b(), A(de, B({
9571
+ a.map ? (b(), A(de, O({
9572
9572
  key: 15,
9573
9573
  viewport: o.viewport,
9574
9574
  factor: (_e = o.weatherLayers) == null ? void 0 : _e.temp,
@@ -9923,7 +9923,7 @@ class Zo {
9923
9923
  }), o;
9924
9924
  }
9925
9925
  static pickHourly(e, a) {
9926
- var i, o, r, s, c, n, g, p, f, w, v, y, k, T, R, I, P, _, z, C, L, O, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e, U, ae, Ne, Ie;
9926
+ var i, o, r, s, c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e, U, ae, Ne, Ie;
9927
9927
  const ge = typeof a == "string" ? M(a) : a, fe = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, Ce = M((o = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : o.date).utc(), te = Ce.clone().add((c = (s = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"), le = Ce.clone().add((p = (g = (n = fe == null ? void 0 : fe[0]) == null ? void 0 : n.hourly) == null ? void 0 : g.time) == null ? void 0 : p.at(-1), "h"), Oe = [];
9928
9928
  if (ge.isBetween(te, le, "millisecond", "[]")) {
9929
9929
  const N = ge.utc().diff(te, "h", !1);
@@ -9939,21 +9939,21 @@ class Zo {
9939
9939
  ye = {
9940
9940
  temp: (v = Z == null ? void 0 : Z.temperature_2m) == null ? void 0 : v.at(N),
9941
9941
  apparentTemp: (y = Z == null ? void 0 : Z.apparent_temperature) == null ? void 0 : y.at(N),
9942
- rh: (k = Z == null ? void 0 : Z.relative_humidity_2m) == null ? void 0 : k.at(N),
9942
+ rh: (C = Z == null ? void 0 : Z.relative_humidity_2m) == null ? void 0 : C.at(N),
9943
9943
  dp: (T = Z == null ? void 0 : Z.dew_point_2m) == null ? void 0 : T.at(N),
9944
9944
  precip: {
9945
- probability: (R = Z == null ? void 0 : Z.precipitation_probability) == null ? void 0 : R.at(N),
9945
+ probability: (B = Z == null ? void 0 : Z.precipitation_probability) == null ? void 0 : B.at(N),
9946
9946
  sum: (I = Z == null ? void 0 : Z.precipitation) == null ? void 0 : I.at(N),
9947
9947
  sum3Hours: Math.round(Be * 100) / 100,
9948
9948
  sum6Hours: Math.round(Ee * 100) / 100
9949
9949
  },
9950
- pmsl: (P = Z == null ? void 0 : Z.pressure_msl) == null ? void 0 : P.at(N),
9950
+ pmsl: (L = Z == null ? void 0 : Z.pressure_msl) == null ? void 0 : L.at(N),
9951
9951
  psurf: (_ = Z == null ? void 0 : Z.surface_pressure) == null ? void 0 : _.at(N),
9952
- code: (z = Z == null ? void 0 : Z.weather_code) == null ? void 0 : z.at(N),
9953
- visibility: this.m2nm((C = Z == null ? void 0 : Z.visibility) == null ? void 0 : C.at(N)),
9952
+ code: (k = Z == null ? void 0 : Z.weather_code) == null ? void 0 : k.at(N),
9953
+ visibility: this.m2nm((P = Z == null ? void 0 : Z.visibility) == null ? void 0 : P.at(N)),
9954
9954
  wind: {
9955
- speed: (L = Z == null ? void 0 : Z.wind_speed_10m) == null ? void 0 : L.at(N),
9956
- kts: (O = Z == null ? void 0 : Z.wind_speed_10m) == null ? void 0 : O.at(N),
9955
+ speed: (z = Z == null ? void 0 : Z.wind_speed_10m) == null ? void 0 : z.at(N),
9956
+ kts: (R = Z == null ? void 0 : Z.wind_speed_10m) == null ? void 0 : R.at(N),
9957
9957
  degree: (G = Z == null ? void 0 : Z.wind_direction_10m) == null ? void 0 : G.at(N),
9958
9958
  bearing: ((Y = Z == null ? void 0 : Z.wind_direction_10m) == null ? void 0 : Y.at(N)) !== null ? (((K = Z == null ? void 0 : Z.wind_direction_10m) == null ? void 0 : K.at(N)) + 180) % 360 : null,
9959
9959
  gusts: (V = Z == null ? void 0 : Z.wind_gusts_10m) == null ? void 0 : V.at(N)
@@ -10032,7 +10032,7 @@ class Zo {
10032
10032
  };
10033
10033
  }
10034
10034
  static pickDaily(e, a) {
10035
- var i, o, r, s, c, n, g, p, f, w, v, y, k, T, R, I, P, _, z, C, L, O, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe, Le, Pe, Ae, De;
10035
+ var i, o, r, s, c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe, Le, Pe, Ae, De;
10036
10036
  const Re = typeof a == "string" ? M(a) : a, _e = e == null ? void 0 : e.weather, U = e == null ? void 0 : e.marine, ae = M((r = (o = (i = _e == null ? void 0 : _e[0]) == null ? void 0 : i.daily) == null ? void 0 : o.time) == null ? void 0 : r.at(0)), Ne = M((n = (c = (s = _e == null ? void 0 : _e[0]) == null ? void 0 : s.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Ie = [];
10037
10037
  if (Re.isBetween(ae, Ne, "millisecond", "[]")) {
10038
10038
  let ge, fe;
@@ -10052,20 +10052,20 @@ class Zo {
10052
10052
  min: (y = te.apparent_temperature_min) == null ? void 0 : y.at(W)
10053
10053
  },
10054
10054
  precip: {
10055
- sum: (k = te.precipitation_sum) == null ? void 0 : k.at(W),
10055
+ sum: (C = te.precipitation_sum) == null ? void 0 : C.at(W),
10056
10056
  rainSum: (T = te.rain_sum) == null ? void 0 : T.at(W),
10057
- snowfallSum: (R = te.snowfall_sum) == null ? void 0 : R.at(W),
10057
+ snowfallSum: (B = te.snowfall_sum) == null ? void 0 : B.at(W),
10058
10058
  showersSum: (I = te.showers_sum) == null ? void 0 : I.at(W),
10059
- hours: (P = te.precipitation_hours) == null ? void 0 : P.at(W),
10059
+ hours: (L = te.precipitation_hours) == null ? void 0 : L.at(W),
10060
10060
  probability: (_ = te.precipitation_probability_max) == null ? void 0 : _.at(W)
10061
10061
  },
10062
10062
  rh: {
10063
- max: (z = te.relative_humidity_2m_max) == null ? void 0 : z.at(W),
10064
- min: (C = te.relative_humidity_2m_min) == null ? void 0 : C.at(W),
10065
- mean: (L = te.relative_humidity_2m_mean) == null ? void 0 : L.at(W)
10063
+ max: (k = te.relative_humidity_2m_max) == null ? void 0 : k.at(W),
10064
+ min: (P = te.relative_humidity_2m_min) == null ? void 0 : P.at(W),
10065
+ mean: (z = te.relative_humidity_2m_mean) == null ? void 0 : z.at(W)
10066
10066
  },
10067
10067
  wind: {
10068
- speed: (O = te.wind_speed_10m_max) == null ? void 0 : O.at(W),
10068
+ speed: (R = te.wind_speed_10m_max) == null ? void 0 : R.at(W),
10069
10069
  kts: (G = te.wind_speed_10m_max) == null ? void 0 : G.at(W),
10070
10070
  degree: (Y = te.wind_direction_10m_dominant) == null ? void 0 : Y.at(W),
10071
10071
  gusts: (K = te.wind_gusts_10m_max) == null ? void 0 : K.at(W),
@@ -10663,7 +10663,7 @@ const ec = {
10663
10663
  methods: {
10664
10664
  handleMenuToggle() {
10665
10665
  var t, e, a;
10666
- this.toggle = !this.toggle, localStorage.setItem(this.tropicalCacheKey, this.toggle), this.toggle ? this.fetchTropicals() : (a = (e = (t = this.$parent) == null ? void 0 : t.$refs) == null ? void 0 : e.idmBottomBar) == null || a.handleToggle("tropical", !1);
10666
+ this.toggle = !this.toggle, localStorage.setItem(this.tropicalCacheKey, this.toggle), this.toggle ? this.fetchTropicals() : (this.handleClear(), (a = (e = (t = this.$parent) == null ? void 0 : t.$refs) == null ? void 0 : e.idmBottomBar) == null || a.handleToggle("tropical", !1));
10667
10667
  },
10668
10668
  async fetchTropicals() {
10669
10669
  var o, r, s;
@@ -10684,9 +10684,9 @@ const ec = {
10684
10684
  },
10685
10685
  responseType: /\.(jpg|png)$/.test(g.tropicals) ? "blob" : "json"
10686
10686
  }).then((p) => {
10687
- var v, y, k;
10687
+ var v, y, C;
10688
10688
  const f = Vo.convert2Geojson(((v = p == null ? void 0 : p.data) == null ? void 0 : v.data) || (p == null ? void 0 : p.data));
10689
- ((k = (y = p == null ? void 0 : p.config) == null ? void 0 : y.headers) == null ? void 0 : k.key) && f && (this.tropicals = {
10689
+ ((C = (y = p == null ? void 0 : p.config) == null ? void 0 : y.headers) == null ? void 0 : C.key) && f && (this.tropicals = {
10690
10690
  data: f,
10691
10691
  active: !0,
10692
10692
  cached: !0,
@@ -10941,7 +10941,7 @@ const ec = {
10941
10941
  this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (t = this.interpolateMarkers) == null || t.forEach((r) => r == null ? void 0 : r.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource)), (e = this.map) == null || e.off("click", this.hoverLayers, this.handleClick), (a = this.map) == null || a.off("mousemove", this.hoverLayers, this.handleHover), (i = this.map) == null || i.off("mouseleave", this.hoverLayers, this.handleLeave), this.showTropicalsInfo = !1, (o = this.activeTropicalsMarker) == null || o.remove(), this.activeTropicalsMarker = void 0;
10942
10942
  },
10943
10943
  handleDateChange() {
10944
- var t, e, a, i, o, r, s, c, n, g, p, f, w, v, y, k, T, R, I, P, _, z, C, L, O, G, Y, K, V, J, ee, Q;
10944
+ var t, e, a, i, o, r, s, c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q;
10945
10945
  if ((t = this.interpolateMarkers) == null || t.forEach((re) => re == null ? void 0 : re.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
10946
10946
  const re = M(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), de = this.interpolateData.filter((X) => X.properties.date === (re == null ? void 0 : re.format()) && !X.properties.disabled), pe = this.handleComputePolygons(de), se = H.featureCollection([...de]);
10947
10947
  pe.forEach((X) => {
@@ -10963,7 +10963,7 @@ const ec = {
10963
10963
  for (const X of de)
10964
10964
  if (!X.properties.disabled) {
10965
10965
  let oe = "#f44336";
10966
- ((c = (s = X.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((g = (n = X.properties) == null ? void 0 : n.wind) != null && g.kts) ? oe = "#03f869" : ((f = (p = X.properties) == null ? void 0 : p.wind) == null ? void 0 : f.kts) >= 32 && ((v = (w = X.properties) == null ? void 0 : w.wind) == null ? void 0 : v.kts) < 47 ? oe = "#f2f202" : ((k = (y = X.properties) == null ? void 0 : y.wind) == null ? void 0 : k.kts) >= 47 && ((R = (T = X.properties) == null ? void 0 : T.wind) == null ? void 0 : R.kts) < 63 ? oe = "#ff9100" : ((P = (I = X.properties) == null ? void 0 : I.wind) == null ? void 0 : P.kts) >= 63 && ((z = (_ = X.properties) == null ? void 0 : _.wind) == null ? void 0 : z.kts) < 79 ? oe = "#f44336" : ((L = (C = X.properties) == null ? void 0 : C.wind) == null ? void 0 : L.kts) >= 79 && ((G = (O = X.properties) == null ? void 0 : O.wind) == null ? void 0 : G.kts) < 94 ? oe = "#f903d0" : ((K = (Y = X.properties) == null ? void 0 : Y.wind) == null ? void 0 : K.kts) >= 94 ? oe = "#8702f9" : oe = "#f44336";
10966
+ ((c = (s = X.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((g = (n = X.properties) == null ? void 0 : n.wind) != null && g.kts) ? oe = "#03f869" : ((f = (p = X.properties) == null ? void 0 : p.wind) == null ? void 0 : f.kts) >= 32 && ((v = (w = X.properties) == null ? void 0 : w.wind) == null ? void 0 : v.kts) < 47 ? oe = "#f2f202" : ((C = (y = X.properties) == null ? void 0 : y.wind) == null ? void 0 : C.kts) >= 47 && ((B = (T = X.properties) == null ? void 0 : T.wind) == null ? void 0 : B.kts) < 63 ? oe = "#ff9100" : ((L = (I = X.properties) == null ? void 0 : I.wind) == null ? void 0 : L.kts) >= 63 && ((k = (_ = X.properties) == null ? void 0 : _.wind) == null ? void 0 : k.kts) < 79 ? oe = "#f44336" : ((z = (P = X.properties) == null ? void 0 : P.wind) == null ? void 0 : z.kts) >= 79 && ((G = (R = X.properties) == null ? void 0 : R.wind) == null ? void 0 : G.kts) < 94 ? oe = "#f903d0" : ((K = (Y = X.properties) == null ? void 0 : Y.wind) == null ? void 0 : K.kts) >= 94 ? oe = "#8702f9" : oe = "#f44336";
10967
10967
  const ue = `<svg t="1719918955501"
10968
10968
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
10969
10969
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -11127,7 +11127,7 @@ function Lc(t, e, a, i, o, r) {
11127
11127
  location: "left"
11128
11128
  }, {
11129
11129
  activator: u(({ props: w }) => [
11130
- d(s, B(w, {
11130
+ d(s, O(w, {
11131
11131
  "min-width": "32",
11132
11132
  width: "32",
11133
11133
  height: "32",
@@ -11152,18 +11152,18 @@ function Lc(t, e, a, i, o, r) {
11152
11152
  default: u(() => [
11153
11153
  d(n, null, {
11154
11154
  default: u(() => {
11155
- var w, v, y, k, T, R, I, P, _, z;
11155
+ var w, v, y, C, T, B, I, L, _, k;
11156
11156
  return [
11157
11157
  l("div", oc, [
11158
11158
  l("span", ic, h((w = o.activeTropicals) == null ? void 0 : w.name), 1),
11159
- (y = (v = o.activeTropicals) == null ? void 0 : v.history) != null && y.level ? (b(), S("span", rc, ", " + h((T = (k = o.activeTropicals) == null ? void 0 : k.history) == null ? void 0 : T.level), 1)) : D("", !0)
11159
+ (y = (v = o.activeTropicals) == null ? void 0 : v.history) != null && y.level ? (b(), S("span", rc, ", " + h((T = (C = o.activeTropicals) == null ? void 0 : C.history) == null ? void 0 : T.level), 1)) : D("", !0)
11160
11160
  ]),
11161
11161
  d(s, {
11162
11162
  icon: "",
11163
11163
  density: "compact",
11164
11164
  variant: "plain",
11165
11165
  class: "close",
11166
- onClick: e[0] || (e[0] = (C) => o.showTropicalsInfo = !1)
11166
+ onClick: e[0] || (e[0] = (P) => o.showTropicalsInfo = !1)
11167
11167
  }, {
11168
11168
  default: u(() => e[5] || (e[5] = [
11169
11169
  l("i", { class: "iconfont icon-close text-label text-h4" }, null, -1)
@@ -11173,7 +11173,7 @@ function Lc(t, e, a, i, o, r) {
11173
11173
  }),
11174
11174
  l("div", lc, [
11175
11175
  l("span", sc, h(t.$t("actions.lastUpdate")) + ": ", 1),
11176
- l("span", null, h(r.computeTime(((I = (R = o.activeTropicals) == null ? void 0 : R.history) == null ? void 0 : I.updated) || ((z = (_ = (P = o.activeTropicals) == null ? void 0 : P.forecasts) == null ? void 0 : _.filter((C) => !C.disabled)[0]) == null ? void 0 : z.date))), 1)
11176
+ l("span", null, h(r.computeTime(((I = (B = o.activeTropicals) == null ? void 0 : B.history) == null ? void 0 : I.updated) || ((k = (_ = (L = o.activeTropicals) == null ? void 0 : L.forecasts) == null ? void 0 : _.filter((P) => !P.disabled)[0]) == null ? void 0 : k.date))), 1)
11177
11177
  ])
11178
11178
  ];
11179
11179
  }),
@@ -11182,17 +11182,17 @@ function Lc(t, e, a, i, o, r) {
11182
11182
  d(g),
11183
11183
  d(n, { class: "text-body-1" }, {
11184
11184
  default: u(() => {
11185
- var w, v, y, k, T, R, I, P, _;
11185
+ var w, v, y, C, T, B, I, L, _;
11186
11186
  return [
11187
11187
  l("div", nc, [
11188
11188
  l("div", cc, [
11189
11189
  l("label", mc, h(t.$t("weather.windSpeed")) + " : ", 1),
11190
11190
  l("span", null, h(((v = (w = o.activeTropicals) == null ? void 0 : w.history) == null ? void 0 : v.kts) || "-") + " kts", 1),
11191
- l("span", null, ", BF " + h(r.computeBF(((k = (y = o.activeTropicals) == null ? void 0 : y.history) == null ? void 0 : k.kts) || "-")), 1)
11191
+ l("span", null, ", BF " + h(r.computeBF(((C = (y = o.activeTropicals) == null ? void 0 : y.history) == null ? void 0 : C.kts) || "-")), 1)
11192
11192
  ]),
11193
11193
  l("div", dc, [
11194
11194
  l("label", hc, h(t.$t("tropical.pressure")) + " : ", 1),
11195
- l("span", null, h(((R = (T = o.activeTropicals) == null ? void 0 : T.history) == null ? void 0 : R.pressure) || "-") + " hPa", 1)
11195
+ l("span", null, h(((B = (T = o.activeTropicals) == null ? void 0 : T.history) == null ? void 0 : B.pressure) || "-") + " hPa", 1)
11196
11196
  ])
11197
11197
  ]),
11198
11198
  l("div", pc, [
@@ -11202,22 +11202,22 @@ function Lc(t, e, a, i, o, r) {
11202
11202
  ]),
11203
11203
  l("div", fc, [
11204
11204
  l("label", yc, h(t.$t("tropical.moveDir")) + " : ", 1),
11205
- l("span", null, h(((P = r.computeMovement(o.activeTropicals)) == null ? void 0 : P.deg) || "-") + "°", 1)
11205
+ l("span", null, h(((L = r.computeMovement(o.activeTropicals)) == null ? void 0 : L.deg) || "-") + "°", 1)
11206
11206
  ])
11207
11207
  ]),
11208
11208
  l("div", bc, [
11209
11209
  l("label", wc, h(t.$t("weather.forecastModels")) + " : ", 1),
11210
11210
  l("div", xc, [
11211
- (b(!0), S(be, null, we((_ = o.activeTropicals) == null ? void 0 : _.forecasts, (z, C) => (b(), A(s, {
11212
- key: C,
11211
+ (b(!0), S(be, null, we((_ = o.activeTropicals) == null ? void 0 : _.forecasts, (k, P) => (b(), A(s, {
11212
+ key: P,
11213
11213
  density: "compact",
11214
- variant: z.disabled ? "outlined" : "flat",
11215
- color: z.disabled ? "" : "primary",
11216
- class: He(["model text-none text-body-1", z.disabled ? "" : "btn-border-2"]),
11217
- onClick: (L) => r.handleForecastToggle(z)
11214
+ variant: k.disabled ? "outlined" : "flat",
11215
+ color: k.disabled ? "" : "primary",
11216
+ class: He(["model text-none text-body-1", k.disabled ? "" : "btn-border-2"]),
11217
+ onClick: (z) => r.handleForecastToggle(k)
11218
11218
  }, {
11219
11219
  default: u(() => [
11220
- j(h(z.model), 1)
11220
+ j(h(k.model), 1)
11221
11221
  ]),
11222
11222
  _: 2
11223
11223
  }, 1032, ["variant", "color", "class", "onClick"]))), 128))
@@ -11522,7 +11522,7 @@ function Mc(t, e, a, i, o, r) {
11522
11522
  l("div", Tc, [
11523
11523
  d(c, {
11524
11524
  modelValue: o.currentDate,
11525
- "onUpdate:modelValue": e[0] || (e[0] = (k) => o.currentDate = k),
11525
+ "onUpdate:modelValue": e[0] || (e[0] = (C) => o.currentDate = C),
11526
11526
  min: o.dateRange[0],
11527
11527
  max: o.dateRange[1],
11528
11528
  "mode-icon": () => r.currentYear,
@@ -11542,11 +11542,11 @@ function Mc(t, e, a, i, o, r) {
11542
11542
  l("div", Ic, h(o.currentTime), 1),
11543
11543
  d(f, { class: "pa-0 flex-1-1-0" }, {
11544
11544
  default: u(() => [
11545
- (b(!0), S(be, null, we(r.hourOptions, (k, T) => (b(), A(p, {
11545
+ (b(!0), S(be, null, we(r.hourOptions, (C, T) => (b(), A(p, {
11546
11546
  key: T,
11547
- value: k,
11547
+ value: C,
11548
11548
  color: "primary",
11549
- active: o.currentTime === k,
11549
+ active: o.currentTime === C,
11550
11550
  rounded: "",
11551
11551
  height: "26",
11552
11552
  "min-height": "26"
@@ -11554,10 +11554,10 @@ function Mc(t, e, a, i, o, r) {
11554
11554
  default: u(() => [
11555
11555
  d(g, {
11556
11556
  class: "text-body-2 text-center",
11557
- onClick: (R) => o.currentTime = k
11557
+ onClick: (B) => o.currentTime = C
11558
11558
  }, {
11559
11559
  default: u(() => [
11560
- j(h(k), 1)
11560
+ j(h(C), 1)
11561
11561
  ]),
11562
11562
  _: 2
11563
11563
  }, 1032, ["onClick"])
@@ -11745,7 +11745,7 @@ const Ac = {
11745
11745
  },
11746
11746
  toggle: {
11747
11747
  handler() {
11748
- this.toggle ? this.showForm = !0 : (this.handleCloseForm(), this.handleCloseMeteo()), this.map && this.handleBind();
11748
+ this.toggle ? this.showForm = !0 : (this.showForm = !1, this.showMeteo = !1), this.map && this.handleBind();
11749
11749
  },
11750
11750
  immediate: !0
11751
11751
  },
@@ -11812,9 +11812,7 @@ const Ac = {
11812
11812
  this.showForm = !1, this.cancelForm(), this.toggle = !1;
11813
11813
  },
11814
11814
  async fetchMeteoData(t) {
11815
- this.loading = !0, this.showMeteo = !0, this.form.lng = t.lng, this.form.lat = t.lat;
11816
- debugger;
11817
- this.handleDrawInfoMarker([t.lng, t.lat]), this.meteoData = [];
11815
+ this.loading = !0, this.showMeteo = !0, this.form.lng = t.lng, this.form.lat = t.lat, this.handleDrawInfoMarker([t.lng, t.lat]), this.meteoData = [];
11818
11816
  const { weatherModels: e, marineModels: a } = oa.autoPickMeteoModel(t.forecastModel);
11819
11817
  let i = {
11820
11818
  lat: t.lat,
@@ -11828,7 +11826,7 @@ const Ac = {
11828
11826
  Authorization: this.token || this.defaultMeteoToken
11829
11827
  }
11830
11828
  });
11831
- (o == null ? void 0 : o.data.code) === 0 && (this.meteoData = o == null ? void 0 : o.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData), this.handleDrawInfoMarker([t.lng, t.lat])), this.loading = !1;
11829
+ (o == null ? void 0 : o.data.code) === 0 && (this.meteoData = o == null ? void 0 : o.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData)), this.loading = !1;
11832
11830
  },
11833
11831
  async fetchHistoryData(t) {
11834
11832
  this.loading = !0, this.showMeteo = !0, this.form.lng = t.lng, this.form.lat = t.lat, this.handleDrawInfoMarker([t.lng, t.lat]), this.meteoData = [];
@@ -11848,10 +11846,10 @@ const Ac = {
11848
11846
  (o == null ? void 0 : o.data.code) === 0 && (this.meteoData = o == null ? void 0 : o.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData), this.handleDrawInfoMarker([t.lng, t.lat])), this.loading = !1;
11849
11847
  },
11850
11848
  initTableData(t) {
11851
- var a, i, o, r, s, c, n, g, p, f, w, v, y, k, T, R, I, P, _, z, C, L, O, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe;
11849
+ var a, i, o, r, s, c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe;
11852
11850
  this.currentHourData = {}, this.positionGmt = (i = (a = t == null ? void 0 : t.weather) == null ? void 0 : a[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (o = t == null ? void 0 : t.weather) == null ? void 0 : o[0]) == null ? void 0 : r.offset;
11853
11851
  const e = ((s = oa.pickHourly(t, M(this.form.dateTime))) == null ? void 0 : s[0]) || {};
11854
- this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((f = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : f.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((y = (v = e == null ? void 0 : e.weather) == null ? void 0 : v.wind) == null ? void 0 : y.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (k = e == null ? void 0 : e.weather) == null ? void 0 : k.wind) == null ? void 0 : T.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((I = (R = e == null ? void 0 : e.weather) == null ? void 0 : R.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((_ = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : _.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((C = (z = e == null ? void 0 : e.wave) == null ? void 0 : z.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (O = (L = e == null ? void 0 : e.wave) == null ? void 0 : L.sig) == null ? void 0 : O.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((Y = (G = e == null ? void 0 : e.wave) == null ? void 0 : G.sig) == null ? void 0 : Y.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((V = (K = e == null ? void 0 : e.wave) == null ? void 0 : K.wd) == null ? void 0 : V.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((re = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : re.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((pe = (de = e == null ? void 0 : e.wave) == null ? void 0 : de.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = (X = (se = e == null ? void 0 : e.wave) == null ? void 0 : se.swell) == null ? void 0 : X.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((ue = (oe = e == null ? void 0 : e.wave) == null ? void 0 : oe.swell) == null ? void 0 : ue.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ne = e == null ? void 0 : e.current) == null ? void 0 : ne.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((ce = e == null ? void 0 : e.current) == null ? void 0 : ce.speed, 1) ?? "-", this.currentHourData.seaLevel = this.computeRoundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.computeRoundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (xe = e == null ? void 0 : e.weather) == null ? void 0 : xe.url;
11852
+ this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((f = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : f.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((y = (v = e == null ? void 0 : e.weather) == null ? void 0 : v.wind) == null ? void 0 : y.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (C = e == null ? void 0 : e.weather) == null ? void 0 : C.wind) == null ? void 0 : T.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((I = (B = e == null ? void 0 : e.weather) == null ? void 0 : B.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((_ = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : _.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((P = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : P.height, 1) ?? "-", this.currentHourData.sigwaveDir = (R = (z = e == null ? void 0 : e.wave) == null ? void 0 : z.sig) == null ? void 0 : R.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((Y = (G = e == null ? void 0 : e.wave) == null ? void 0 : G.sig) == null ? void 0 : Y.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((V = (K = e == null ? void 0 : e.wave) == null ? void 0 : K.wd) == null ? void 0 : V.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((re = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : re.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((pe = (de = e == null ? void 0 : e.wave) == null ? void 0 : de.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = (X = (se = e == null ? void 0 : e.wave) == null ? void 0 : se.swell) == null ? void 0 : X.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((ue = (oe = e == null ? void 0 : e.wave) == null ? void 0 : oe.swell) == null ? void 0 : ue.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ne = e == null ? void 0 : e.current) == null ? void 0 : ne.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((ce = e == null ? void 0 : e.current) == null ? void 0 : ce.speed, 1) ?? "-", this.currentHourData.seaLevel = this.computeRoundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.computeRoundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (xe = e == null ? void 0 : e.weather) == null ? void 0 : xe.url;
11855
11853
  },
11856
11854
  handleBind() {
11857
11855
  var t, e;
@@ -11867,42 +11865,29 @@ const Ac = {
11867
11865
  return !1;
11868
11866
  },
11869
11867
  handleGetPosition(t) {
11870
- var e;
11871
- this.showMeteo = !1, (e = this.positionMarker) == null || e.remove(), this.positionMarker = void 0, this.form.latDegree = Number($.lat2pretty(t.lat).degree), this.form.latMinute = Number($.lat2pretty(t.lat).minute), this.form.latDirection = $.lat2pretty(t.lat).direction, this.form.lngDegree = Number($.lng2pretty(t.lng).degree), this.form.lngMinute = Number($.lng2pretty(t.lng).minute), this.form.lngDirection = $.lng2pretty(t.lng).direction;
11868
+ this.handleCloseMeteo(), this.form.latDegree = Number($.lat2pretty(t.lat).degree), this.form.latMinute = Number($.lat2pretty(t.lat).minute), this.form.latDirection = $.lat2pretty(t.lat).direction, this.form.lngDegree = Number($.lng2pretty(t.lng).degree), this.form.lngMinute = Number($.lng2pretty(t.lng).minute), this.form.lngDirection = $.lng2pretty(t.lng).direction;
11872
11869
  },
11873
11870
  handleDrawInfoMarker(t) {
11874
11871
  t && (this.map.flyTo({
11875
11872
  center: t,
11876
11873
  duration: 300
11877
11874
  }), this.$nextTick(() => {
11878
- var c, n, g, p, f, w, v, y;
11879
- (c = this.positionMarker) == null || c.remove();
11880
- const e = (n = document.getElementById("idm-position-icon")) == null ? void 0 : n.cloneNode(!0);
11881
- this.positionMarker = new ve.Marker(e).setLngLat(t).setOffset([0, -13]).addTo(this.map), (g = this.meteoInfoMarker) == null || g.remove();
11882
- const a = (p = document.getElementById("idm-gl4-spot-meteo")) == null ? void 0 : p.cloneNode(!0), i = (f = a == null ? void 0 : a.children[1]) == null ? void 0 : f.children[1], o = (w = a == null ? void 0 : a.children[5]) == null ? void 0 : w.children[0], r = (v = a == null ? void 0 : a.children[5]) == null ? void 0 : v.children[0], s = (y = a == null ? void 0 : a.children[5]) == null ? void 0 : y.children[1];
11883
- i && (i.onclick = () => {
11884
- this.handleCloseMeteo();
11885
- }), o && !this.followList.some((k) => {
11886
- var T, R;
11887
- return ((T = k == null ? void 0 : k.coordinate) == null ? void 0 : T.lng) === this.form.lng && ((R = k == null ? void 0 : k.coordinate) == null ? void 0 : R.lat) === this.form.lat;
11888
- }) && (o.onclick = () => {
11889
- this.handleFollow();
11890
- }), r && this.followList.some((k) => {
11891
- var T, R;
11892
- return ((T = k == null ? void 0 : k.coordinate) == null ? void 0 : T.lng) === this.form.lng && ((R = k == null ? void 0 : k.coordinate) == null ? void 0 : R.lat) === this.form.lat;
11893
- }) && (r.onclick = () => {
11894
- this.handleCancelFollow();
11895
- }), s && (s.onclick = () => {
11896
- this.handleMeteoMore();
11897
- }), this.meteoInfoMarker = new ve.Marker(a).setLngLat(t).setOffset([0, -190]).addTo(this.map);
11875
+ var i, o, r;
11876
+ (i = this.positionMarker) == null || i.remove();
11877
+ const e = (o = document.getElementById("idm-position-icon")) == null ? void 0 : o.cloneNode(!0);
11878
+ this.positionMarker = new ve.Marker(e).setLngLat(t).setOffset([0, -13]).addTo(this.map);
11879
+ const a = document.getElementById("idm-gl4-spot-meteo");
11880
+ this.meteoInfoMarker ? (r = this.meteoInfoMarker) == null || r.setLngLat(t) : this.meteoInfoMarker = new ve.Marker(a).setLngLat(t).setOffset([0, -190]).addTo(this.map);
11898
11881
  }));
11899
11882
  },
11900
11883
  handleMeteoMore() {
11901
11884
  this.form.forecastModel = this.forecastModel, this.$emit("meteoMore", this.form);
11902
11885
  },
11903
11886
  handleCloseMeteo() {
11904
- var t, e;
11905
- this.showMeteo = !1, (t = this.positionMarker) == null || t.remove(), this.positionMarker = void 0, (e = this.meteoInfoMarker) == null || e.remove(), this.meteoInfoMarker = void 0, !this.showForm && !this.showMeteo && (this.toggle = !1);
11887
+ this.showMeteo = !1, this.$nextTick(() => {
11888
+ var t, e;
11889
+ (t = this.positionMarker) == null || t.remove(), this.positionMarker = void 0, (e = this.meteoInfoMarker) == null || e.remove(), this.meteoInfoMarker = void 0;
11890
+ });
11906
11891
  },
11907
11892
  handleFollow() {
11908
11893
  this.$emit("follow", this.form);
@@ -11934,7 +11919,7 @@ const Ac = {
11934
11919
  "aria-hidden": "true"
11935
11920
  }, Qc = ["xlink:href"];
11936
11921
  function Jc(t, e, a, i, o, r) {
11937
- const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VDivider"), p = x("VTextField"), f = x("VCol"), w = x("VRow"), v = x("DateTimePicker"), y = x("VBtnToggle"), k = x("VCardActions"), T = x("VForm"), R = x("VCardText"), I = x("VCard"), P = x("VIcon");
11922
+ const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VDivider"), p = x("VTextField"), f = x("VCol"), w = x("VRow"), v = x("DateTimePicker"), y = x("VBtnToggle"), C = x("VCardActions"), T = x("VForm"), B = x("VCardText"), I = x("VCard"), L = x("VIcon");
11938
11923
  return b(), S("div", Dc, [
11939
11924
  l("div", {
11940
11925
  class: "menu-bar-box transition pa-1",
@@ -11945,7 +11930,7 @@ function Jc(t, e, a, i, o, r) {
11945
11930
  location: "left"
11946
11931
  }, {
11947
11932
  activator: u(({ props: _ }) => [
11948
- d(s, B(_, {
11933
+ d(s, O(_, {
11949
11934
  "min-width": "32",
11950
11935
  width: "32",
11951
11936
  height: "32",
@@ -11990,7 +11975,7 @@ function Jc(t, e, a, i, o, r) {
11990
11975
  _: 1
11991
11976
  }),
11992
11977
  d(g),
11993
- d(R, { class: "text-body-1 py-1" }, {
11978
+ d(B, { class: "text-body-1 py-1" }, {
11994
11979
  default: u(() => [
11995
11980
  d(T, {
11996
11981
  ref: "spotForm",
@@ -12167,7 +12152,7 @@ function Jc(t, e, a, i, o, r) {
12167
12152
  class: "pa-0"
12168
12153
  }, {
12169
12154
  default: u(() => [
12170
- d(v, B({
12155
+ d(v, O({
12171
12156
  "date-time": o.form.dateTime,
12172
12157
  "time-zone": a.timeZone
12173
12158
  }, t.$attrs, {
@@ -12242,7 +12227,7 @@ function Jc(t, e, a, i, o, r) {
12242
12227
  _: 1
12243
12228
  }),
12244
12229
  d(g),
12245
- d(k, { class: "d-flex justify-end align-center ga-4" }, {
12230
+ d(C, { class: "d-flex justify-end align-center ga-4" }, {
12246
12231
  default: u(() => [
12247
12232
  d(s, {
12248
12233
  size: "small",
@@ -12314,7 +12299,7 @@ function Jc(t, e, a, i, o, r) {
12314
12299
  _: 1
12315
12300
  }),
12316
12301
  d(g),
12317
- d(R, { class: "text-body-1 ml-n8" }, {
12302
+ d(B, { class: "text-body-1 ml-n8" }, {
12318
12303
  default: u(() => [
12319
12304
  d(w, null, {
12320
12305
  default: u(() => [
@@ -12496,11 +12481,11 @@ function Jc(t, e, a, i, o, r) {
12496
12481
  _: 1
12497
12482
  }),
12498
12483
  d(g),
12499
- d(k, { class: "d-flex justify-space-between align-center" }, {
12484
+ d(C, { class: "d-flex justify-space-between align-center" }, {
12500
12485
  default: u(() => [
12501
12486
  a.followList.some((_) => {
12502
- var z, C;
12503
- return ((z = _ == null ? void 0 : _.coordinate) == null ? void 0 : z.lng) === o.form.lng && ((C = _ == null ? void 0 : _.coordinate) == null ? void 0 : C.lat) === o.form.lat;
12487
+ var k, P;
12488
+ return ((k = _ == null ? void 0 : _.coordinate) == null ? void 0 : k.lng) === o.form.lng && ((P = _ == null ? void 0 : _.coordinate) == null ? void 0 : P.lat) === o.form.lat;
12504
12489
  }) ? (b(), A(s, {
12505
12490
  key: 0,
12506
12491
  class: "text-none text-body-1",
@@ -12512,7 +12497,7 @@ function Jc(t, e, a, i, o, r) {
12512
12497
  onClick: qe(r.handleCancelFollow, ["stop"])
12513
12498
  }, {
12514
12499
  prepend: u(() => [
12515
- d(P, { color: "warning" })
12500
+ d(L, { color: "warning" })
12516
12501
  ]),
12517
12502
  default: u(() => [
12518
12503
  j(" " + h(t.$t("actions.unfollow")), 1)
@@ -12659,22 +12644,22 @@ const tm = {
12659
12644
  if ((e == null ? void 0 : e.split("-").length) === 2) {
12660
12645
  const w = this.geojson.filter((T) => T.id === e.split("-")[0])[0];
12661
12646
  this.pointMarkers[w.id].filter((T) => {
12662
- var R;
12663
- return ((R = T._element) == null ? void 0 : R.id) === e;
12647
+ var B;
12648
+ return ((B = T._element) == null ? void 0 : B.id) === e;
12664
12649
  })[0].setLngLat([(r = (o = t.target) == null ? void 0 : o._lngLat) == null ? void 0 : r.lng, (c = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
12665
12650
  let y;
12666
- w.features.forEach((T, R) => {
12651
+ w.features.forEach((T, B) => {
12667
12652
  if (T.geometry.type === "Point" && T.properties.id === e.split("-")[1]) {
12668
- y = R;
12653
+ y = B;
12669
12654
  return;
12670
12655
  }
12671
12656
  });
12672
- const k = w.features.filter((T) => T.geometry.type === "Point");
12657
+ const C = w.features.filter((T) => T.geometry.type === "Point");
12673
12658
  this.handleTmpPointUpdate(
12674
12659
  w,
12675
- k[y - 1],
12676
- { lng: (g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, lat: (f = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : f.lat, properties: k[y].properties },
12677
- y === k.length - 1 ? void 0 : k[y + 1]
12660
+ C[y - 1],
12661
+ { lng: (g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, lat: (f = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : f.lat, properties: C[y].properties },
12662
+ y === C.length - 1 ? void 0 : C[y + 1]
12678
12663
  );
12679
12664
  }
12680
12665
  },
@@ -12682,13 +12667,13 @@ const tm = {
12682
12667
  var a, i, o, r, s, c, n, g, p, f;
12683
12668
  const e = (i = (a = t.target) == null ? void 0 : a._element) == null ? void 0 : i.id;
12684
12669
  if ((e == null ? void 0 : e.split("-").length) === 2) {
12685
- const w = this.geojson.filter((k) => k.id === e.split("-")[0])[0];
12686
- this.pointMarkers[w.id].filter((k) => {
12670
+ const w = this.geojson.filter((C) => C.id === e.split("-")[0])[0];
12671
+ this.pointMarkers[w.id].filter((C) => {
12687
12672
  var T;
12688
- return ((T = k._element) == null ? void 0 : T.id) === e;
12673
+ return ((T = C._element) == null ? void 0 : T.id) === e;
12689
12674
  })[0].setLngLat([(r = (o = t.target) == null ? void 0 : o._lngLat) == null ? void 0 : r.lng, (c = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
12690
- const y = w.features.filter((k) => k.geometry.type === "Point" && k.properties.id === e.split("-")[1])[0];
12691
- y.geometry.coordinates = [(g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, (f = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : f.lat], w.features = w.features.filter((k) => k.geometry.type === "Point"), this.handlePointUpdate(w);
12675
+ const y = w.features.filter((C) => C.geometry.type === "Point" && C.properties.id === e.split("-")[1])[0];
12676
+ y.geometry.coordinates = [(g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, (f = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : f.lat], w.features = w.features.filter((C) => C.geometry.type === "Point"), this.handlePointUpdate(w);
12692
12677
  }
12693
12678
  },
12694
12679
  handleContextmenu(t) {
@@ -12740,7 +12725,7 @@ const tm = {
12740
12725
  a = $.roundPrecision(a + p, 4);
12741
12726
  let w;
12742
12727
  c.mode === "RL" ? w = $.convertToMonotonicLng([n, g]) : w = $.convertToMonotonicLng(Fe.interpolateCoordinates(n, g, 200));
12743
- const v = H.lineString(w.map((k) => [k.lng, k.lat]));
12728
+ const v = H.lineString(w.map((C) => [C.lng, C.lat]));
12744
12729
  v.properties.dist = p, v.properties.bearing = f, v.properties.total = a, v.properties.name = "Line " + this.currentLineIndex, i.push(v);
12745
12730
  const y = e[o];
12746
12731
  y.properties.totalDist = $.roundPrecision((c.totalDist ? c.totalDist : 0) + p, 4), y.properties.sumLabel = y.properties.totalDist + " nm";
@@ -12907,11 +12892,11 @@ const tm = {
12907
12892
  }
12908
12893
  },
12909
12894
  handleClear(t, e = !0) {
12910
- var s, c, n, g, p, f, w, v, y, k;
12895
+ var s, c, n, g, p, f, w, v, y, C;
12911
12896
  const a = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, o = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
12912
12897
  (s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(o) && this.map.removeLayer(o), (n = this.map) != null && n.getLayer(r) && this.map.removeLayer(r), (g = this.map) != null && g.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (p = this.map) != null && p.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (f = this.closeMarkers[t.id]) == null || f.remove(), this.closeMarkers[t.id] = void 0, (w = this.pointMarkers[t.id]) == null || w.forEach((T) => {
12913
12898
  T == null || T.remove();
12914
- }), this.pointMarkers[t.id] = [], (v = this.tipMarker) == null || v.remove(), this.tipMarker = void 0, e && ((y = this.map) != null && y.getSource(a)) && this.map.removeSource(a), e && ((k = this.map) != null && k.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
12899
+ }), this.pointMarkers[t.id] = [], (v = this.tipMarker) == null || v.remove(), this.tipMarker = void 0, e && ((y = this.map) != null && y.getSource(a)) && this.map.removeSource(a), e && ((C = this.map) != null && C.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
12915
12900
  }
12916
12901
  }
12917
12902
  }, am = { class: "idm-gl4-measure" };
@@ -12927,7 +12912,7 @@ function om(t, e, a, i, o, r) {
12927
12912
  location: "left"
12928
12913
  }, {
12929
12914
  activator: u(({ props: n }) => [
12930
- d(s, B(n, {
12915
+ d(s, O(n, {
12931
12916
  "min-width": "32",
12932
12917
  width: "32",
12933
12918
  height: "32",
@@ -13077,7 +13062,7 @@ function gm(t, e, a, i, o, r) {
13077
13062
  style: ie({ right: o.right + 146 + "px", bottom: Object.values(o.show).includes(!0) ? "10px" : "-100px" })
13078
13063
  }, [
13079
13064
  l("div", sm, [
13080
- d(s, B({
13065
+ d(s, O({
13081
13066
  ref: "dateTimePicker",
13082
13067
  "date-time": o.currentDateTimeZ,
13083
13068
  "time-zone": o.timeZone,
@@ -13100,8 +13085,8 @@ function gm(t, e, a, i, o, r) {
13100
13085
  default: u(() => [
13101
13086
  d(g, { class: "pa-1" }, {
13102
13087
  default: u(() => [
13103
- (b(!0), S(be, null, we(o.intervalOptions, (y, k) => (b(), A(n, {
13104
- key: k,
13088
+ (b(!0), S(be, null, we(o.intervalOptions, (y, C) => (b(), A(n, {
13089
+ key: C,
13105
13090
  value: y,
13106
13091
  variant: o.intervalHour === y ? "tonal" : "text",
13107
13092
  color: "primary",
@@ -13218,16 +13203,16 @@ function gm(t, e, a, i, o, r) {
13218
13203
  location: "top"
13219
13204
  }, {
13220
13205
  activator: u(({ props: y }) => {
13221
- var k, T;
13206
+ var C, T;
13222
13207
  return [
13223
- d(f, B(y, {
13208
+ d(f, O(y, {
13224
13209
  class: "pa-1 d-flex",
13225
- color: (k = a.weatherCheckList) != null && k.includes("wind") ? "primary" : "",
13210
+ color: (C = a.weatherCheckList) != null && C.includes("wind") ? "primary" : "",
13226
13211
  variant: (T = a.weatherCheckList) != null && T.includes("wind") ? "elevated" : "text",
13227
13212
  height: "24",
13228
13213
  width: "24",
13229
13214
  "min-width": "24",
13230
- onClick: e[3] || (e[3] = (R) => r.handleClickFastWeather("wind"))
13215
+ onClick: e[3] || (e[3] = (B) => r.handleClickFastWeather("wind"))
13231
13216
  }), {
13232
13217
  default: u(() => e[14] || (e[14] = [
13233
13218
  l("i", { class: "iconfont icon-a-WindLevel" }, null, -1)
@@ -13244,19 +13229,19 @@ function gm(t, e, a, i, o, r) {
13244
13229
  location: "top"
13245
13230
  }, {
13246
13231
  activator: u(({ props: y }) => {
13247
- var k, T;
13232
+ var C, T;
13248
13233
  return [
13249
- d(f, B(y, {
13234
+ d(f, O(y, {
13250
13235
  class: "pa-1 d-flex",
13251
- color: (k = a.weatherCheckList) != null && k.includes("sig-wave-height") ? "primary" : "",
13236
+ color: (C = a.weatherCheckList) != null && C.includes("sig-wave-height") ? "primary" : "",
13252
13237
  variant: (T = a.weatherCheckList) != null && T.includes("sig-wave-height") ? "elevated" : "text",
13253
13238
  height: "24",
13254
13239
  width: "24",
13255
13240
  "min-width": "24",
13256
- onClick: e[4] || (e[4] = (R) => r.handleClickFastWeather("sig-wave-height"))
13241
+ onClick: e[4] || (e[4] = (B) => r.handleClickFastWeather("sig-wave-height"))
13257
13242
  }), {
13258
13243
  default: u(() => [
13259
- l("i", B(y, { class: "iconfont icon-a-WaveHeight" }), null, 16)
13244
+ l("i", O(y, { class: "iconfont icon-a-WaveHeight" }), null, 16)
13260
13245
  ]),
13261
13246
  _: 2
13262
13247
  }, 1040, ["color", "variant"])
@@ -13269,19 +13254,19 @@ function gm(t, e, a, i, o, r) {
13269
13254
  location: "top"
13270
13255
  }, {
13271
13256
  activator: u(({ props: y }) => {
13272
- var k, T;
13257
+ var C, T;
13273
13258
  return [
13274
- d(f, B(y, {
13259
+ d(f, O(y, {
13275
13260
  class: "pa-1 d-flex",
13276
- color: (k = a.weatherCheckList) != null && k.includes("current-direction") ? "primary" : "",
13261
+ color: (C = a.weatherCheckList) != null && C.includes("current-direction") ? "primary" : "",
13277
13262
  variant: (T = a.weatherCheckList) != null && T.includes("current-direction") ? "elevated" : "text",
13278
13263
  height: "24",
13279
13264
  width: "24",
13280
13265
  "min-width": "24",
13281
- onClick: e[5] || (e[5] = (R) => r.handleClickFastWeather("current-direction"))
13266
+ onClick: e[5] || (e[5] = (B) => r.handleClickFastWeather("current-direction"))
13282
13267
  }), {
13283
13268
  default: u(() => [
13284
- l("i", B(y, { class: "iconfont icon-Current" }), null, 16)
13269
+ l("i", O(y, { class: "iconfont icon-Current" }), null, 16)
13285
13270
  ]),
13286
13271
  _: 2
13287
13272
  }, 1040, ["color", "variant"])
@@ -13294,7 +13279,7 @@ function gm(t, e, a, i, o, r) {
13294
13279
  location: "top"
13295
13280
  }, {
13296
13281
  activator: u(({ props: y }) => [
13297
- d(f, B(y, {
13282
+ d(f, O(y, {
13298
13283
  class: "pa-1 d-flex",
13299
13284
  variant: "text",
13300
13285
  height: "24",
@@ -13303,7 +13288,7 @@ function gm(t, e, a, i, o, r) {
13303
13288
  onClick: r.handleClickFastMore
13304
13289
  }), {
13305
13290
  default: u(() => [
13306
- l("i", B(y, { class: "iconfont icon-dots-align" }), null, 16)
13291
+ l("i", O(y, { class: "iconfont icon-dots-align" }), null, 16)
13307
13292
  ]),
13308
13293
  _: 2
13309
13294
  }, 1040, ["onClick"])
@@ -13353,7 +13338,7 @@ function gm(t, e, a, i, o, r) {
13353
13338
  (b(!0), S(be, null, we(o.offsets, (y) => (b(), S("div", {
13354
13339
  key: y,
13355
13340
  class: "item rounded text-body-2 hover-active",
13356
- onClick: (k) => o.timeZone = y
13341
+ onClick: (C) => o.timeZone = y
13357
13342
  }, h(y < 0 ? y : "+" + y), 9, hm))), 128))
13358
13343
  ])) : D("", !0),
13359
13344
  l("div", pm, [
@@ -13441,7 +13426,7 @@ const fm = /* @__PURE__ */ q(rm, [["render", gm]]), ym = {
13441
13426
  function wm(t, e, a, i, o, r) {
13442
13427
  const s = x("IdmOtherLayer"), c = x("IdmWeatherLayer"), n = x("IdmTropicals"), g = x("IdmMeasure"), p = x("IdmSpot"), f = x("IdmBottomBar");
13443
13428
  return b(), S("div", bm, [
13444
- d(s, B({
13429
+ d(s, O({
13445
13430
  ref: "idmOtherLayers",
13446
13431
  token: a.token,
13447
13432
  "default-meteo-token": o.defaultMeteoToken,
@@ -13456,7 +13441,7 @@ function wm(t, e, a, i, o, r) {
13456
13441
  o.otherCheckList = w, o.layerVersion = o.layerVersion + 1;
13457
13442
  })
13458
13443
  }), null, 16, ["token", "default-meteo-token", "map", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
13459
- d(c, B({
13444
+ d(c, O({
13460
13445
  ref: "idmWeatherLayers",
13461
13446
  map: a.map,
13462
13447
  "before-layer": "empty-layer-2",
@@ -13474,7 +13459,7 @@ function wm(t, e, a, i, o, r) {
13474
13459
  o.weatherCheckList = w, o.layerVersion = o.layerVersion + 1;
13475
13460
  })
13476
13461
  }), null, 16, ["map", "token", "default-meteo-token", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
13477
- d(n, B({
13462
+ d(n, O({
13478
13463
  map: a.map,
13479
13464
  token: a.token,
13480
13465
  "default-meteo-token": o.defaultMeteoToken,
@@ -13485,11 +13470,11 @@ function wm(t, e, a, i, o, r) {
13485
13470
  "forecast-model": a.forecastModel,
13486
13471
  "map-feather": a.mapFeather
13487
13472
  }, t.$attrs), null, 16, ["map", "token", "default-meteo-token", "tropicals", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
13488
- d(g, B({
13473
+ d(g, O({
13489
13474
  map: a.map,
13490
13475
  "map-feather": a.mapFeather
13491
13476
  }, t.$attrs), null, 16, ["map", "map-feather"]),
13492
- d(p, B({
13477
+ d(p, O({
13493
13478
  ref: "idmSpot",
13494
13479
  map: a.map,
13495
13480
  token: a.token,
@@ -13497,7 +13482,7 @@ function wm(t, e, a, i, o, r) {
13497
13482
  "forecast-model": a.forecastModel,
13498
13483
  "map-feather": a.mapFeather
13499
13484
  }, t.$attrs), null, 16, ["map", "token", "gateway", "forecast-model", "map-feather"]),
13500
- d(f, B({
13485
+ d(f, O({
13501
13486
  ref: "idmBottomBar",
13502
13487
  "forecast-model": a.forecastModel,
13503
13488
  "weather-check-list": o.weatherCheckList,
@@ -13514,7 +13499,7 @@ class vm {
13514
13499
  me(this, "hi");
13515
13500
  me(this, "td");
13516
13501
  me(this, "windy");
13517
- var a, i, o, r, s, c, n, g, p, f, w, v, y, k, T, R, I, P, _, z, C, L, O, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e, U, ae, Ne, Ie, ge, fe, W, Ce, te, le, Oe, N, ye, Me, Be, Ee, E, Z, Ge, Ve, Ze, Te, Ye, Ke, Xe, $e, Qe, Je, et, tt, at, ot, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, It, Mt, At, Dt, Rt, Ot, Bt, Et, Nt, jt, Ft, Ht, Ut, Wt, Gt, Vt, Zt, qt, Yt, Kt, Xt, Qt, Jt, ea, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ia, Ma, Aa, Da, Ra, Oa, Ba, Ea, Na, ja, Fa, Ha, Ua, Wa, Ga, Va, Za, qa, Ya, Ka, Xa, $a, Qa, Ja, eo, to, ao, oo, io, ro, lo, so, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, To, So, Io, Mo, Ao, Do, Ro, Oo, Bo, Eo, No, jo, Fo, Ho, Uo, Wo, Go;
13502
+ var a, i, o, r, s, c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e, U, ae, Ne, Ie, ge, fe, W, Ce, te, le, Oe, N, ye, Me, Be, Ee, E, Z, Ge, Ve, Ze, Te, Ye, Ke, Xe, $e, Qe, Je, et, tt, at, ot, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, It, Mt, At, Dt, Rt, Ot, Bt, Et, Nt, jt, Ft, Ht, Ut, Wt, Gt, Vt, Zt, qt, Yt, Kt, Xt, Qt, Jt, ea, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ia, Ma, Aa, Da, Ra, Oa, Ba, Ea, Na, ja, Fa, Ha, Ua, Wa, Ga, Va, Za, qa, Ya, Ka, Xa, $a, Qa, Ja, eo, to, ao, oo, io, ro, lo, so, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, To, So, Io, Mo, Ao, Do, Ro, Oo, Bo, Eo, No, jo, Fo, Ho, Uo, Wo, Go;
13518
13503
  this.i4 = {
13519
13504
  source: {
13520
13505
  type: "raster",
@@ -32112,12 +32097,12 @@ class vm {
32112
32097
  (g = (n = this.originStyle) == null ? void 0 : n.light.layers) == null ? void 0 : g.find((m) => m.id === "ice-area-line"),
32113
32098
  (f = (p = this.originStyle) == null ? void 0 : p.light.layers) == null ? void 0 : f.find((m) => m.id === "loadlines-label"),
32114
32099
  (v = (w = this.originStyle) == null ? void 0 : w.light.layers) == null ? void 0 : v.find((m) => m.id === "loadlines-fill"),
32115
- (k = (y = this.originStyle) == null ? void 0 : y.light.layers) == null ? void 0 : k.find((m) => m.id === "empty-layer-0"),
32116
- (R = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : R.find((m) => m.id === "empty-layer-1"),
32117
- (P = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : P.find((m) => m.id === "country-boundaries"),
32118
- (z = (_ = this.originStyle) == null ? void 0 : _.light.layers) == null ? void 0 : z.find((m) => m.id === "water-outline"),
32119
- (L = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : L.find((m) => m.id === "water-outline2"),
32120
- (G = (O = this.originStyle) == null ? void 0 : O.light.layers) == null ? void 0 : G.find((m) => m.id === "empty-layer-2"),
32100
+ (C = (y = this.originStyle) == null ? void 0 : y.light.layers) == null ? void 0 : C.find((m) => m.id === "empty-layer-0"),
32101
+ (B = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : B.find((m) => m.id === "empty-layer-1"),
32102
+ (L = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : L.find((m) => m.id === "country-boundaries"),
32103
+ (k = (_ = this.originStyle) == null ? void 0 : _.light.layers) == null ? void 0 : k.find((m) => m.id === "water-outline"),
32104
+ (z = (P = this.originStyle) == null ? void 0 : P.light.layers) == null ? void 0 : z.find((m) => m.id === "water-outline2"),
32105
+ (G = (R = this.originStyle) == null ? void 0 : R.light.layers) == null ? void 0 : G.find((m) => m.id === "empty-layer-2"),
32121
32106
  (K = (Y = this.originStyle) == null ? void 0 : Y.light.layers) == null ? void 0 : K.find((m) => m.id === "water-line-label"),
32122
32107
  (J = (V = this.originStyle) == null ? void 0 : V.light.layers) == null ? void 0 : J.find((m) => m.id === "water-point-label"),
32123
32108
  (Q = (ee = this.originStyle) == null ? void 0 : ee.light.layers) == null ? void 0 : Q.find((m) => m.id === "world-12nm-v4-20231025"),