@idmwx/idmui-gl4 1.7.5 → 1.7.7

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,9 +3,9 @@ var Ka = (t, e, o) => e in t ? $a(t, e, { enumerable: !0, configurable: !0, writ
3
3
  var de = (t, e, o) => (Ka(t, typeof e != "symbol" ? e + "" : e, o), o);
4
4
  import Se from "axios";
5
5
  import { useTheme as ze } from "vuetify";
6
- import { openBlock as y, createElementBlock as S, resolveComponent as x, createBlock as R, withCtx as f, createVNode as p, withModifiers as je, createElementVNode as s, createCommentVNode as D, normalizeClass as Ne, toDisplayString as m, createTextVNode as K, Fragment as be, renderList as we, withDirectives as Ue, vShow as We, mergeProps as B, normalizeStyle as ie } from "vue";
7
- import ve from "mapbox-gl";
8
- import M from "moment";
6
+ import { openBlock as y, createElementBlock as M, resolveComponent as x, createBlock as R, withCtx as f, createVNode as p, withModifiers as je, createElementVNode as s, createCommentVNode as D, normalizeClass as Ne, toDisplayString as m, createTextVNode as K, Fragment as be, renderList as we, withDirectives as Ue, vShow as We, mergeProps as B, normalizeStyle as ie } from "vue";
7
+ import xe from "mapbox-gl";
8
+ import S from "moment";
9
9
  import { LngLatHelper as X, TropicalHelper as Va, LaneHelper as Ge } from "@idm-plugin/geo";
10
10
  import { Meteo2Assist as Co, TidesAssist as Ya } from "@idm-plugin/meteo";
11
11
  import * as So from "echarts";
@@ -113,7 +113,7 @@ const Y = (t, e) => {
113
113
  }
114
114
  };
115
115
  function oi(t, e, o, i, a, r) {
116
- return y(), S("div");
116
+ return y(), M("div");
117
117
  }
118
118
  const ai = /* @__PURE__ */ Y(ti, [["render", oi]]), ii = {
119
119
  name: "IdmGmdssArea",
@@ -240,7 +240,7 @@ const ai = /* @__PURE__ */ Y(ti, [["render", oi]]), ii = {
240
240
  }
241
241
  };
242
242
  function ri(t, e, o, i, a, r) {
243
- return y(), S("div");
243
+ return y(), M("div");
244
244
  }
245
245
  const si = /* @__PURE__ */ Y(ii, [["render", ri]]), li = {
246
246
  name: "IdmEcaZone",
@@ -336,7 +336,7 @@ const si = /* @__PURE__ */ Y(ii, [["render", ri]]), li = {
336
336
  }
337
337
  };
338
338
  function ni(t, e, o, i, a, r) {
339
- return y(), S("div");
339
+ return y(), M("div");
340
340
  }
341
341
  const ci = /* @__PURE__ */ Y(li, [["render", ni]]);
342
342
  const mi = {
@@ -389,7 +389,7 @@ const mi = {
389
389
  const l = (n = document.getElementById("idm-gl4-zone-info")) == null ? void 0 : n.cloneNode(!0), c = (u = l == null ? void 0 : l.children[1]) == null ? void 0 : u.children[0];
390
390
  c && (c.onclick = () => {
391
391
  this.handleRemoveMarker();
392
- }), this.marker = new ve.Marker(l).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([230, 0]).addTo(this.map);
392
+ }), this.marker = new xe.Marker(l).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([230, 0]).addTo(this.map);
393
393
  }));
394
394
  },
395
395
  handleRender() {
@@ -1370,13 +1370,13 @@ const ui = {
1370
1370
  let c = {
1371
1371
  index: l,
1372
1372
  dateTimeList: [],
1373
- label: M().utcOffset(e).add(l, "days").format("MM-DD ddd"),
1374
- startTime: M().utcOffset(e).add(l, "days").set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(),
1375
- dateTime: M().utcOffset(e).add(l, "days").format()
1373
+ label: S().utcOffset(e).add(l, "days").format("MM-DD ddd"),
1374
+ startTime: S().utcOffset(e).add(l, "days").set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(),
1375
+ dateTime: S().utcOffset(e).add(l, "days").format()
1376
1376
  };
1377
1377
  for (let n = 0; n < 4; n++)
1378
1378
  c.dateTimeList.push(
1379
- M(c.startTime).utcOffset(e).add(n * this.interval, "hours").utc().format()
1379
+ S(c.startTime).utcOffset(e).add(n * this.interval, "hours").utc().format()
1380
1380
  );
1381
1381
  t.push(c);
1382
1382
  }
@@ -1387,7 +1387,7 @@ const ui = {
1387
1387
  if (!t || !e || e.lng === null || e.lng === void 0 || isNaN(e.lng) || e.lat === null || e.lat === void 0 || isNaN(e.lat))
1388
1388
  return "-";
1389
1389
  const i = e != null && e.lng && (e != null && e.lat) ? X.guessTimeZoneOffset(e == null ? void 0 : e.lng, e == null ? void 0 : e.lat) : 0;
1390
- return M(t).utcOffset(i).format(o);
1390
+ return S(t).utcOffset(i).format(o);
1391
1391
  };
1392
1392
  },
1393
1393
  computeTimeOffset() {
@@ -1487,10 +1487,10 @@ const ui = {
1487
1487
  { label: "Swell", key: "weather.swell", unit: "m" },
1488
1488
  { label: "Current", key: "weather.current", unit: "kts" }
1489
1489
  ], (o = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || o.dateTimeList.forEach((i, a) => {
1490
- var c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee, J, $, ne, se, Q, ae, he, ce, pe, ge, F, me, xe, Le, Pe;
1490
+ var c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee, J, $, ne, se, Q, ae, he, ce, pe, ge, F, me, ve, Le, Pe;
1491
1491
  let r = {};
1492
- const l = ((c = Co.pickHourly(t, M(i))) == null ? void 0 : c[0]) || {};
1493
- r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = l.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((u = l == null ? void 0 : l.weather) == null ? void 0 : u.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((b = (h = l == null ? void 0 : l.weather) == null ? void 0 : h.precip) == null ? void 0 : b.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((_ = (w = l == null ? void 0 : l.weather) == null ? void 0 : w.precip) == null ? void 0 : _.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((g = l == null ? void 0 : l.weather) == null ? void 0 : g.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (P = l == null ? void 0 : l.weather) == null ? void 0 : P.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (I = (O = l == null ? void 0 : l.weather) == null ? void 0 : O.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((z = (L = l == null ? void 0 : l.weather) == null ? void 0 : L.wind) == null ? void 0 : z.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((C = (v = l == null ? void 0 : l.weather) == null ? void 0 : v.wind) == null ? void 0 : C.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((A = (k = l == null ? void 0 : l.wave) == null ? void 0 : k.sig) == null ? void 0 : A.height, 1) ?? "-", r.sigwaveDir = (V = (N = l == null ? void 0 : l.wave) == null ? void 0 : N.sig) == null ? void 0 : V.direction, r.sigwavePeriod = this.computeRoundPrecision((W = (Z = l == null ? void 0 : l.wave) == null ? void 0 : Z.sig) == null ? void 0 : W.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((J = (ee = l == null ? void 0 : l.wave) == null ? void 0 : ee.wd) == null ? void 0 : J.height, 1) ?? "-", r.windwaveDir = (ne = ($ = l == null ? void 0 : l.wave) == null ? void 0 : $.wd) == null ? void 0 : ne.direction, r.windwavePeriod = this.computeRoundPrecision((Q = (se = l == null ? void 0 : l.wave) == null ? void 0 : se.wd) == null ? void 0 : Q.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((he = (ae = l == null ? void 0 : l.wave) == null ? void 0 : ae.swell) == null ? void 0 : he.height, 1) ?? "-", r.swellDir = (pe = (ce = l == null ? void 0 : l.wave) == null ? void 0 : ce.swell) == null ? void 0 : pe.direction, r.swellPeriod = this.computeRoundPrecision((F = (ge = l == null ? void 0 : l.wave) == null ? void 0 : ge.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((me = l == null ? void 0 : l.current) == null ? void 0 : me.speed, 1) ?? "-", r.currentDir = (xe = l == null ? void 0 : l.current) == null ? void 0 : xe.direction, r.currentSpeed = this.computeRoundPrecision((Le = l == null ? void 0 : l.current) == null ? void 0 : Le.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(l == null ? void 0 : l.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(l == null ? void 0 : l.sst, 0) ?? "-", r.weatherUrls = (Pe = l == null ? void 0 : l.weather) == null ? void 0 : Pe.url, this.tableData[0][`value${a}`] = a * this.interval > 10 ? a * this.interval : "0" + a * this.interval, this.tableData[1][`value${a}`] = r.weatherUrl, this.tableData[2][`value${a}`] = r.temp, this.tableData[3][`value${a}`] = r.precip1h, this.tableData[4][`value${a}`] = r.visibility, this.tableData[5][`value${a}`] = r.windSpeed, this.tableData[6][`value${a}`] = r.sigwaveHeight, this.tableData[7][`value${a}`] = r.swellHeight, this.tableData[8][`value${a}`] = r.currentSpeed;
1492
+ const l = ((c = Co.pickHourly(t, S(i))) == null ? void 0 : c[0]) || {};
1493
+ r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = l.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((u = l == null ? void 0 : l.weather) == null ? void 0 : u.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((b = (h = l == null ? void 0 : l.weather) == null ? void 0 : h.precip) == null ? void 0 : b.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((_ = (w = l == null ? void 0 : l.weather) == null ? void 0 : w.precip) == null ? void 0 : _.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((g = l == null ? void 0 : l.weather) == null ? void 0 : g.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (P = l == null ? void 0 : l.weather) == null ? void 0 : P.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (I = (O = l == null ? void 0 : l.weather) == null ? void 0 : O.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((z = (L = l == null ? void 0 : l.weather) == null ? void 0 : L.wind) == null ? void 0 : z.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((C = (v = l == null ? void 0 : l.weather) == null ? void 0 : v.wind) == null ? void 0 : C.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((A = (k = l == null ? void 0 : l.wave) == null ? void 0 : k.sig) == null ? void 0 : A.height, 1) ?? "-", r.sigwaveDir = (V = (N = l == null ? void 0 : l.wave) == null ? void 0 : N.sig) == null ? void 0 : V.direction, r.sigwavePeriod = this.computeRoundPrecision((W = (Z = l == null ? void 0 : l.wave) == null ? void 0 : Z.sig) == null ? void 0 : W.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((J = (ee = l == null ? void 0 : l.wave) == null ? void 0 : ee.wd) == null ? void 0 : J.height, 1) ?? "-", r.windwaveDir = (ne = ($ = l == null ? void 0 : l.wave) == null ? void 0 : $.wd) == null ? void 0 : ne.direction, r.windwavePeriod = this.computeRoundPrecision((Q = (se = l == null ? void 0 : l.wave) == null ? void 0 : se.wd) == null ? void 0 : Q.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((he = (ae = l == null ? void 0 : l.wave) == null ? void 0 : ae.swell) == null ? void 0 : he.height, 1) ?? "-", r.swellDir = (pe = (ce = l == null ? void 0 : l.wave) == null ? void 0 : ce.swell) == null ? void 0 : pe.direction, r.swellPeriod = this.computeRoundPrecision((F = (ge = l == null ? void 0 : l.wave) == null ? void 0 : ge.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((me = l == null ? void 0 : l.current) == null ? void 0 : me.speed, 1) ?? "-", r.currentDir = (ve = l == null ? void 0 : l.current) == null ? void 0 : ve.direction, r.currentSpeed = this.computeRoundPrecision((Le = l == null ? void 0 : l.current) == null ? void 0 : Le.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(l == null ? void 0 : l.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(l == null ? void 0 : l.sst, 0) ?? "-", r.weatherUrls = (Pe = l == null ? void 0 : l.weather) == null ? void 0 : Pe.url, this.tableData[0][`value${a}`] = a * this.interval > 10 ? a * this.interval : "0" + a * this.interval, this.tableData[1][`value${a}`] = r.weatherUrl, this.tableData[2][`value${a}`] = r.temp, this.tableData[3][`value${a}`] = r.precip1h, this.tableData[4][`value${a}`] = r.visibility, this.tableData[5][`value${a}`] = r.windSpeed, this.tableData[6][`value${a}`] = r.sigwaveHeight, this.tableData[7][`value${a}`] = r.swellHeight, this.tableData[8][`value${a}`] = r.currentSpeed;
1494
1494
  });
1495
1495
  },
1496
1496
  handleTide() {
@@ -1769,7 +1769,7 @@ function yr(t, e, o, i, a, r) {
1769
1769
  s("div", xi, [
1770
1770
  s("div", vi, [
1771
1771
  s("div", _i, [
1772
- (y(), S("svg", ki, [
1772
+ (y(), M("svg", ki, [
1773
1773
  s("use", {
1774
1774
  "xlink:href": `#icon-title-${o.theme}`
1775
1775
  }, null, 8, zi)
@@ -1796,7 +1796,7 @@ function yr(t, e, o, i, a, r) {
1796
1796
  s("div", Oi, [
1797
1797
  s("div", Bi, [
1798
1798
  s("div", Ei, [
1799
- (y(), S("svg", ji, [
1799
+ (y(), M("svg", ji, [
1800
1800
  s("use", {
1801
1801
  "xlink:href": `#icon-title-${o.theme}`
1802
1802
  }, null, 8, Ni)
@@ -1817,7 +1817,7 @@ function yr(t, e, o, i, a, r) {
1817
1817
  rounded: "1"
1818
1818
  }, {
1819
1819
  default: f(() => [
1820
- (y(!0), S(be, null, we(r.dateList, (g) => (y(), R(l, {
1820
+ (y(!0), M(be, null, we(r.dateList, (g) => (y(), R(l, {
1821
1821
  class: "text-none text-body-1 rounded bg-none flex-1-1-0",
1822
1822
  density: "compact",
1823
1823
  color: "primary",
@@ -1834,40 +1834,40 @@ function yr(t, e, o, i, a, r) {
1834
1834
  }, 8, ["modelValue"]),
1835
1835
  s("table", Hi, [
1836
1836
  s("tbody", null, [
1837
- (y(!0), S(be, null, we(a.tableData, (g) => (y(), S("tr", {
1837
+ (y(!0), M(be, null, we(a.tableData, (g) => (y(), M("tr", {
1838
1838
  key: g.id
1839
1839
  }, [
1840
1840
  s("th", Gi, [
1841
1841
  K(m(t.$t(`${g.key}`)) + " ", 1),
1842
- g.unit ? (y(), S("span", Ui, " ( " + m(g.unit) + " )", 1)) : D("", !0)
1842
+ g.unit ? (y(), M("span", Ui, " ( " + m(g.unit) + " )", 1)) : D("", !0)
1843
1843
  ]),
1844
1844
  s("td", Wi, [
1845
- g.img ? (y(), S("img", {
1845
+ g.img ? (y(), M("img", {
1846
1846
  key: 0,
1847
1847
  src: g == null ? void 0 : g.value0,
1848
1848
  style: { height: "30px" }
1849
- }, null, 8, Vi)) : (y(), S("span", Zi, m((g == null ? void 0 : g.value0) ?? "-"), 1))
1849
+ }, null, 8, Vi)) : (y(), M("span", Zi, m((g == null ? void 0 : g.value0) ?? "-"), 1))
1850
1850
  ]),
1851
1851
  s("td", Yi, [
1852
- g.img ? (y(), S("img", {
1852
+ g.img ? (y(), M("img", {
1853
1853
  key: 0,
1854
1854
  src: g == null ? void 0 : g.value1,
1855
1855
  style: { height: "30px" }
1856
- }, null, 8, qi)) : (y(), S("span", Xi, m((g == null ? void 0 : g.value1) ?? "-"), 1))
1856
+ }, null, 8, qi)) : (y(), M("span", Xi, m((g == null ? void 0 : g.value1) ?? "-"), 1))
1857
1857
  ]),
1858
1858
  s("td", $i, [
1859
- g.img ? (y(), S("img", {
1859
+ g.img ? (y(), M("img", {
1860
1860
  key: 0,
1861
1861
  src: g == null ? void 0 : g.value2,
1862
1862
  style: { height: "30px" }
1863
- }, null, 8, Ki)) : (y(), S("span", Ji, m((g == null ? void 0 : g.value2) ?? "-"), 1))
1863
+ }, null, 8, Ki)) : (y(), M("span", Ji, m((g == null ? void 0 : g.value2) ?? "-"), 1))
1864
1864
  ]),
1865
1865
  s("td", Qi, [
1866
- g.img ? (y(), S("img", {
1866
+ g.img ? (y(), M("img", {
1867
1867
  key: 0,
1868
1868
  src: g == null ? void 0 : g.value3,
1869
1869
  style: { height: "30px" }
1870
- }, null, 8, er)) : (y(), S("span", tr, m((g == null ? void 0 : g.value3) ?? "-"), 1))
1870
+ }, null, 8, er)) : (y(), M("span", tr, m((g == null ? void 0 : g.value3) ?? "-"), 1))
1871
1871
  ])
1872
1872
  ]))), 128))
1873
1873
  ])
@@ -1877,7 +1877,7 @@ function yr(t, e, o, i, a, r) {
1877
1877
  s("div", or, [
1878
1878
  s("div", ar, [
1879
1879
  s("div", ir, [
1880
- (y(), S("svg", rr, [
1880
+ (y(), M("svg", rr, [
1881
1881
  s("use", {
1882
1882
  "xlink:href": `#icon-title-${o.theme}`
1883
1883
  }, null, 8, sr)
@@ -1902,7 +1902,7 @@ function yr(t, e, o, i, a, r) {
1902
1902
  }, null, 8, ["onClick"]))
1903
1903
  ])
1904
1904
  ]),
1905
- a.showTideDetail ? (y(), S("div", nr, [
1905
+ a.showTideDetail ? (y(), M("div", nr, [
1906
1906
  s("div", cr, null, 512),
1907
1907
  s("table", mr, [
1908
1908
  s("tbody", null, [
@@ -1911,9 +1911,9 @@ function yr(t, e, o, i, a, r) {
1911
1911
  s("th", hr, m(t.$t("time.time")) + " ( LT ) ", 1),
1912
1912
  s("th", pr, m(t.$t("tide.height")) + " ( m )", 1)
1913
1913
  ]),
1914
- (y(!0), S(be, null, we(a.tideTableData, (g, P) => {
1914
+ (y(!0), M(be, null, we(a.tideTableData, (g, P) => {
1915
1915
  var T;
1916
- return y(), S("tr", { key: P }, [
1916
+ return y(), M("tr", { key: P }, [
1917
1917
  s("td", ur, m(t.$t(`tide.${(T = g == null ? void 0 : g.type) == null ? void 0 : T.toLowerCase()}`)) + " " + m(t.$t("tide.tide")), 1),
1918
1918
  s("td", gr, m(r.computeLocalTime(g == null ? void 0 : g.date, o.port, "MM-DD HH:mm")), 1),
1919
1919
  s("td", fr, m((g == null ? void 0 : g.height) ?? "-") + " m", 1)
@@ -2025,7 +2025,7 @@ const br = {
2025
2025
  if (e.properties.id) {
2026
2026
  this.showInfo = !0, this.hoverPort = e.properties, (i = this.marker) == null || i.remove();
2027
2027
  const r = (a = document.getElementById("idmPortInfo")) == null ? void 0 : a.cloneNode(!0);
2028
- this.marker = new ve.Marker(r).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
2028
+ this.marker = new xe.Marker(r).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
2029
2029
  }
2030
2030
  },
2031
2031
  handleLeave() {
@@ -2039,7 +2039,7 @@ const br = {
2039
2039
  }, wr = { class: "port-box d-flex flex-column justify-center align-start ga-1" }, xr = { class: "d-flex justify-start align-center text-label" }, vr = { class: "d-flex justify-start align-center text-label" };
2040
2040
  function _r(t, e, o, i, a, r) {
2041
2041
  const l = x("VCardText"), c = x("VCard"), n = x("PortDetail");
2042
- return y(), S("div", null, [
2042
+ return y(), M("div", null, [
2043
2043
  Ue(p(c, {
2044
2044
  id: "idmPortInfo",
2045
2045
  ref: "idmPortInfo"
@@ -2117,7 +2117,7 @@ const kr = /* @__PURE__ */ Y(br, [["render", _r], ["__scopeId", "data-v-0c0f27d3
2117
2117
  }
2118
2118
  };
2119
2119
  function Lr(t, e, o, i, a, r) {
2120
- return y(), S("div");
2120
+ return y(), M("div");
2121
2121
  }
2122
2122
  const Pr = /* @__PURE__ */ Y(zr, [["render", Lr]]), Cr = {
2123
2123
  name: "IdmTimezone",
@@ -2140,9 +2140,18 @@ const Pr = /* @__PURE__ */ Y(zr, [["render", Lr]]), Cr = {
2140
2140
  source: "time-zone-source",
2141
2141
  zoneLayer: "time-zone-layer",
2142
2142
  zoneBorderLayer: "time-zone-border-layer",
2143
- zoneLabelLayer: "time-zone-label-layer"
2143
+ zoneLabelLayer: "time-zone-label-layer",
2144
+ marker: null
2144
2145
  };
2145
2146
  },
2147
+ computed: {
2148
+ timeZoneName() {
2149
+ return (t) => {
2150
+ var o;
2151
+ return (o = S.tz.names().filter((i) => S.tz(S(), i).utcOffset() === t * 60)) == null ? void 0 : o[0];
2152
+ };
2153
+ }
2154
+ },
2146
2155
  watch: {
2147
2156
  zone: {
2148
2157
  handler() {
@@ -2160,7 +2169,7 @@ const Pr = /* @__PURE__ */ Y(zr, [["render", Lr]]), Cr = {
2160
2169
  features: [],
2161
2170
  type: "FeatureCollection"
2162
2171
  };
2163
- t.features = (e = this.zone.features) == null ? void 0 : e.map((o) => (o.properties.opacity = 0, o.properties.textOpacity = 0, o.properties.lineOpacity = 0.3, o.properties.width = 1, o)), this.zone && (this.map.addSource(this.source, {
2172
+ t.features = (e = this.zone.features) == null ? void 0 : e.map((o) => (o.properties.opacity = 0, o.properties.lineOpacity = 0.2, o.properties.width = 1, o)), this.zone && (this.map.addSource(this.source, {
2164
2173
  type: "geojson",
2165
2174
  data: t
2166
2175
  }), this.map.addLayer(
@@ -2280,65 +2289,40 @@ const Pr = /* @__PURE__ */ Y(zr, [["render", Lr]]), Cr = {
2280
2289
  source: this.source,
2281
2290
  filter: ["==", "$type", "Polygon"],
2282
2291
  paint: {
2283
- "line-color": "rgba(255, 255, 255, 1)",
2292
+ "line-color": this.Theme.current.value.colors["on-surface"],
2284
2293
  "line-opacity": ["get", "lineOpacity"],
2285
2294
  "line-width": ["get", "width"]
2286
2295
  }
2287
2296
  },
2288
2297
  this.beforeLayer
2289
- ), this.map.addLayer(
2290
- {
2291
- id: this.zoneLabelLayer,
2292
- type: "symbol",
2293
- source: this.source,
2294
- filter: ["==", "$type", "Point"],
2295
- layout: {
2296
- "symbol-placement": "point",
2297
- "text-field": "UTC {offSet}",
2298
- "text-rotation-alignment": "viewport",
2299
- "text-size": 14,
2300
- "text-offset": [0, 1],
2301
- "text-font": ["DIN Pro Regular", "Arial Unicode MS Regular"]
2302
- },
2303
- paint: {
2304
- "text-color": this.Theme.current.value.colors["on-surface"],
2305
- "text-opacity": ["get", "textOpacity"]
2306
- }
2307
- },
2308
- this.beforeLayer
2309
2298
  ));
2310
2299
  },
2311
2300
  handleClear() {
2312
2301
  this.map.getLayer(this.zoneLayer) && this.map.removeLayer(this.zoneLayer), this.map.getLayer(this.zoneBorderLayer) && this.map.removeLayer(this.zoneBorderLayer), this.map.getLayer(this.zoneLabelLayer) && this.map.removeLayer(this.zoneLabelLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
2313
2302
  },
2314
2303
  handleHover(t) {
2315
- var e, o;
2304
+ var e, o, i;
2316
2305
  if (t.features.length) {
2317
- let i = {
2306
+ (e = this.marker) == null || e.remove();
2307
+ let a = {
2318
2308
  features: [],
2319
2309
  type: "FeatureCollection"
2320
2310
  };
2321
- i.features = (e = this.zone.features) == null ? void 0 : e.map((a) => {
2322
- const r = JSON.parse(JSON.stringify(a));
2323
- return r.properties.offSet === t.features[0].properties.offSet ? (r.properties.opacity = 0.25, r.properties.textOpacity = 1, r.properties.lineOpacity = 0.7, r.properties.width = 2) : (r.properties.opacity = 0, r.properties.textOpacity = 0, r.properties.lineOpacity = 0.3, r.properties.width = 1), r;
2324
- }), (o = this.map.getSource(this.source)) == null || o.setData(i);
2311
+ a.features = (o = this.zone.features) == null ? void 0 : o.map((l) => {
2312
+ const c = JSON.parse(JSON.stringify(l));
2313
+ return c.properties.offSet === t.features[0].properties.offSet ? (c.properties.opacity = 0.25, c.properties.lineOpacity = 0.7, c.properties.width = 2) : (c.properties.opacity = 0, c.properties.lineOpacity = 0.2, c.properties.width = 1), c;
2314
+ }), (i = this.map.getSource(this.source)) == null || i.setData(a);
2315
+ const r = document.createElement("div");
2316
+ r.className = "v-card--variant-elevated rounded px-2 py-1 text-body-1", r.innerHTML = `<div>UTC ${t.features[0].properties.offSet}:00</div>
2317
+ <div>${S.tz(S().format(), this.timeZoneName(t.features[0].properties.offSet)).format("MM-DD HH:mm")}`, this.marker = new xe.Marker(r).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -30]).addTo(this.map);
2325
2318
  }
2326
2319
  },
2327
2320
  handleLeave() {
2328
- var e, o;
2329
- let t = {
2330
- features: [],
2331
- type: "FeatureCollection"
2332
- };
2333
- t.features = (e = this.zone.features) == null ? void 0 : e.map((i) => {
2334
- const a = JSON.parse(JSON.stringify(i));
2335
- return a.properties.opacity = 0, a.properties.textOpacity = 0, a.properties.lineOpacity = 0.3, a.properties.width = 1, a;
2336
- }), (o = this.map.getSource(this.source)) == null || o.setData(t);
2337
2321
  }
2338
2322
  }
2339
2323
  };
2340
2324
  function Tr(t, e, o, i, a, r) {
2341
- return y(), S("div");
2325
+ return y(), M("div");
2342
2326
  }
2343
2327
  const Sr = /* @__PURE__ */ Y(Cr, [["render", Tr]]), Mr = {
2344
2328
  name: "IdmVoluntaryReportingArea",
@@ -2433,7 +2417,7 @@ const Sr = /* @__PURE__ */ Y(Cr, [["render", Tr]]), Mr = {
2433
2417
  }
2434
2418
  };
2435
2419
  function Ir(t, e, o, i, a, r) {
2436
- return y(), S("div");
2420
+ return y(), M("div");
2437
2421
  }
2438
2422
  const Dr = /* @__PURE__ */ Y(Mr, [["render", Ir]]), Ar = {
2439
2423
  name: "IdmSpecialArea",
@@ -2528,7 +2512,7 @@ const Dr = /* @__PURE__ */ Y(Mr, [["render", Ir]]), Ar = {
2528
2512
  }
2529
2513
  };
2530
2514
  function Rr(t, e, o, i, a, r) {
2531
- return y(), S("div");
2515
+ return y(), M("div");
2532
2516
  }
2533
2517
  const Or = /* @__PURE__ */ Y(Ar, [["render", Rr]]), Br = {
2534
2518
  name: "IdmTerminator",
@@ -2582,7 +2566,7 @@ const Or = /* @__PURE__ */ Y(Ar, [["render", Rr]]), Br = {
2582
2566
  }
2583
2567
  };
2584
2568
  function Er(t, e, o, i, a, r) {
2585
- return y(), S("div");
2569
+ return y(), M("div");
2586
2570
  }
2587
2571
  const jr = /* @__PURE__ */ Y(Br, [["render", Er]]), Nr = {
2588
2572
  name: "IdmWorld12nm",
@@ -2774,12 +2758,12 @@ const qr = {
2774
2758
  let c = {
2775
2759
  index: l,
2776
2760
  dateTimeList: [],
2777
- label: M().utcOffset(e).add(l, "days").format("MM-DD ddd"),
2778
- startTime: M().utcOffset(e).add(l, "days").set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(),
2779
- dateTime: M().utcOffset(e).add(l, "days").format()
2761
+ label: S().utcOffset(e).add(l, "days").format("MM-DD ddd"),
2762
+ startTime: S().utcOffset(e).add(l, "days").set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(),
2763
+ dateTime: S().utcOffset(e).add(l, "days").format()
2780
2764
  };
2781
2765
  for (let n = 0; n < 4; n++)
2782
- c.dateTimeList.push(M(c.startTime).utcOffset(e).add(n * 3, "hours").utc().format());
2766
+ c.dateTimeList.push(S(c.startTime).utcOffset(e).add(n * 3, "hours").utc().format());
2783
2767
  t.push(c);
2784
2768
  }
2785
2769
  return t;
@@ -2789,7 +2773,7 @@ const qr = {
2789
2773
  if (!t || !e || e.lng === null || e.lng === void 0 || isNaN(e.lng) || e.lat === null || e.lat === void 0 || isNaN(e.lat))
2790
2774
  return "-";
2791
2775
  const i = e != null && e.lng && (e != null && e.lat) ? X.guessTimeZoneOffset(e == null ? void 0 : e.lng, e == null ? void 0 : e.lat) : 0;
2792
- return M(t).utcOffset(i).format(o);
2776
+ return S(t).utcOffset(i).format(o);
2793
2777
  };
2794
2778
  },
2795
2779
  computeTimeOffset() {
@@ -3024,7 +3008,7 @@ function Ts(t, e, o, i, a, r) {
3024
3008
  s("div", Qr, [
3025
3009
  s("div", es, [
3026
3010
  s("div", ts, [
3027
- (y(), S("svg", os, [
3011
+ (y(), M("svg", os, [
3028
3012
  s("use", {
3029
3013
  "xlink:href": `#icon-title-${o.theme}`
3030
3014
  }, null, 8, as)
@@ -3051,7 +3035,7 @@ function Ts(t, e, o, i, a, r) {
3051
3035
  s("div", us, [
3052
3036
  s("div", gs, [
3053
3037
  s("div", fs, [
3054
- (y(), S("svg", ys, [
3038
+ (y(), M("svg", ys, [
3055
3039
  s("use", {
3056
3040
  "xlink:href": `#icon-title-${o.theme}`
3057
3041
  }, null, 8, bs)
@@ -3072,7 +3056,7 @@ function Ts(t, e, o, i, a, r) {
3072
3056
  rounded: "1"
3073
3057
  }, {
3074
3058
  default: f(() => [
3075
- (y(!0), S(be, null, we(r.dateList, (_) => (y(), R(l, {
3059
+ (y(!0), M(be, null, we(r.dateList, (_) => (y(), R(l, {
3076
3060
  class: "text-none text-body-1 rounded bg-none flex-1-1-0",
3077
3061
  density: "compact",
3078
3062
  color: "primary",
@@ -3095,9 +3079,9 @@ function Ts(t, e, o, i, a, r) {
3095
3079
  s("th", ks, m(t.$t("time.time")) + " ( LT )", 1),
3096
3080
  s("th", zs, m(t.$t("tide.height")) + " ( m )", 1)
3097
3081
  ]),
3098
- (y(!0), S(be, null, we(a.tideTableData, (_, g) => {
3082
+ (y(!0), M(be, null, we(a.tideTableData, (_, g) => {
3099
3083
  var P;
3100
- return y(), S("tr", { key: g }, [
3084
+ return y(), M("tr", { key: g }, [
3101
3085
  s("td", Ls, m(t.$t(`tide.${(P = _ == null ? void 0 : _.type) == null ? void 0 : P.toLowerCase()}`)) + " " + m(t.$t("tide.tide")), 1),
3102
3086
  s("td", Ps, m(r.computeLocalTime(_ == null ? void 0 : _.date, o.station, "MM-DD HH:mm")), 1),
3103
3087
  s("td", Cs, m((_ == null ? void 0 : _.height) ?? "-") + " m", 1)
@@ -3178,7 +3162,7 @@ const Ms = {
3178
3162
  if (e.properties) {
3179
3163
  this.showInfo = !0, this.hoverStation = e.properties, this.hoverStation.name = this.locale === "en" ? e.properties.Location_EN : e.properties.Location_CN, this.hoverStation.lng = e.geometry.coordinates[0], this.hoverStation.lat = e.geometry.coordinates[1], (o = this.marker) == null || o.remove();
3180
3164
  const a = (i = document.getElementById("idmTidalInfo")) == null ? void 0 : i.cloneNode(!0);
3181
- this.marker = new ve.Marker(a).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -60]).addTo(this.map);
3165
+ this.marker = new xe.Marker(a).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -60]).addTo(this.map);
3182
3166
  }
3183
3167
  },
3184
3168
  handleLeave() {
@@ -3192,7 +3176,7 @@ const Ms = {
3192
3176
  }, Is = { class: "station-box d-flex flex-column justify-center align-start ga-1" }, Ds = { class: "d-flex justify-start align-center" }, As = { class: "d-flex justify-start align-center" }, Rs = { class: "text-label" };
3193
3177
  function Os(t, e, o, i, a, r) {
3194
3178
  const l = x("v-card-text"), c = x("v-card"), n = x("TideDetail");
3195
- return y(), S("div", null, [
3179
+ return y(), M("div", null, [
3196
3180
  Ue(p(c, { id: "idmTidalInfo" }, {
3197
3181
  default: f(() => [
3198
3182
  p(l, { class: "pr-8 text-body-1" }, {
@@ -3432,7 +3416,7 @@ const Fs = {
3432
3416
  };
3433
3417
  function Hs(t, e, o, i, a, r) {
3434
3418
  var l, c, n;
3435
- return y(), S("div", {
3419
+ return y(), M("div", {
3436
3420
  class: "idm-lat-lng-tip-gl4 pa-2 text-caption text-right rounded",
3437
3421
  style: ie({ right: a.right + "px" })
3438
3422
  }, [
@@ -4340,7 +4324,7 @@ const Gs = {
4340
4324
  if (e.properties.id) {
4341
4325
  this.showInfo = !0, this.hoverPort = e.properties, (i = this.marker) == null || i.remove();
4342
4326
  const r = (a = document.getElementById("idmFollowPortInfo")) == null ? void 0 : a.cloneNode(!0);
4343
- this.marker = new ve.Marker(r).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
4327
+ this.marker = new xe.Marker(r).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
4344
4328
  }
4345
4329
  },
4346
4330
  handleLeave() {
@@ -4354,7 +4338,7 @@ const Gs = {
4354
4338
  }, Us = { class: "port-box d-flex flex-column justify-center align-start ga-1" }, Ws = { class: "d-flex justify-start align-center text-label" }, Vs = { class: "d-flex justify-start align-center text-label" };
4355
4339
  function Zs(t, e, o, i, a, r) {
4356
4340
  const l = x("v-card-text"), c = x("v-card"), n = x("PortDetail");
4357
- return y(), S("div", null, [
4341
+ return y(), M("div", null, [
4358
4342
  Ue(p(c, {
4359
4343
  id: "idmFollowPortInfo",
4360
4344
  ref: "idmFollowPortInfo"
@@ -4500,7 +4484,7 @@ const qs = {
4500
4484
  if (e.properties) {
4501
4485
  const b = e.properties;
4502
4486
  b.lng = e.geometry.coordinates[0], b.lat = e.geometry.coordinates[1];
4503
- const w = M(), _ = (o = M(this.realTime)) == null ? void 0 : o.diff(w, "d", !0), g = {
4487
+ const w = S(), _ = (o = S(this.realTime)) == null ? void 0 : o.diff(w, "d", !0), g = {
4504
4488
  lat: b.lat,
4505
4489
  lng: b.lng,
4506
4490
  datetime: this.realTime,
@@ -4516,7 +4500,7 @@ const qs = {
4516
4500
  if (e.properties.id) {
4517
4501
  this.showInfo = !0, this.position = e.properties, (o = this.marker) == null || o.remove();
4518
4502
  const i = document.getElementById("idmFollowPositionInfo").cloneNode(!0);
4519
- this.marker = new ve.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
4503
+ this.marker = new xe.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
4520
4504
  }
4521
4505
  },
4522
4506
  handleLeave() {
@@ -4542,7 +4526,7 @@ function Js(t, e, o, i, a, r) {
4542
4526
  s("div", $s, [
4543
4527
  s("span", null, m(r.computePosition(a.position)), 1)
4544
4528
  ]),
4545
- a.position.remark ? (y(), S("div", Ks, [
4529
+ a.position.remark ? (y(), M("div", Ks, [
4546
4530
  s("span", null, m(a.position.remark ?? "-"), 1)
4547
4531
  ])) : D("", !0)
4548
4532
  ])
@@ -4767,7 +4751,7 @@ const el = {
4767
4751
  function hl(t, e, o, i, a, r) {
4768
4752
  var $, ne, se, Q, ae, he, ce, pe, ge;
4769
4753
  const l = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), u = x("VCardItem"), h = x("VCheckbox"), b = x("VCardText"), w = x("VCard"), _ = x("IdmLatLng"), g = x("IdmTerminator"), P = x("IdmTimezone"), T = x("IdmPort"), O = x("IdmAlertZone"), I = x("IdmTideStations"), L = x("IdmEcaZone"), z = x("IdmWarZone"), v = x("IdmGmdssArea"), C = x("IdmLoadLine"), k = x("IdmWorldMarine"), A = x("IdmVRA"), N = x("IdmSpecialArea"), V = x("IdmWorld12nm"), Z = x("IdmChinaRoute"), W = x("IdmIceAreas"), ee = x("IdmFollowPort"), J = x("IdmFollowPosition");
4770
- return y(), S("div", tl, [
4754
+ return y(), M("div", tl, [
4771
4755
  s("div", {
4772
4756
  class: "menu-bar-box transition px-1 rounded",
4773
4757
  style: ie({ top: o.top + 10 + "px", right: a.right + "px" })
@@ -4837,7 +4821,7 @@ function hl(t, e, o, i, a, r) {
4837
4821
  p(b, { class: "pb-2" }, {
4838
4822
  default: f(() => [
4839
4823
  s("div", rl, [
4840
- (y(!0), S(be, null, we(a.mapFeathers, (F) => (y(), S("div", {
4824
+ (y(!0), M(be, null, we(a.mapFeathers, (F) => (y(), M("div", {
4841
4825
  key: F.value,
4842
4826
  class: "mb-2 feather-item",
4843
4827
  onClick: (me) => r.handleToggleMapFeather(F)
@@ -4845,12 +4829,12 @@ function hl(t, e, o, i, a, r) {
4845
4829
  s("div", {
4846
4830
  class: Ne([a.mapFeather === F.value ? "active" : "", "img-box"])
4847
4831
  }, [
4848
- F.value === "dark" ? (y(), S("img", ll)) : F.value === "nautical" ? (y(), S("img", nl)) : F.value === "satellite" ? (y(), S("img", cl)) : (y(), S("img", ml))
4832
+ F.value === "dark" ? (y(), M("img", ll)) : F.value === "nautical" ? (y(), M("img", nl)) : F.value === "satellite" ? (y(), M("img", cl)) : (y(), M("img", ml))
4849
4833
  ], 2),
4850
4834
  s("div", dl, m(t.$t(`layer.${F.locale}`)), 1)
4851
4835
  ], 8, sl))), 128))
4852
4836
  ]),
4853
- (y(!0), S(be, null, we(a.tagLayers.filter((F) => ["graticule", "day-night", "time-zones"].includes(F.key)), (F) => (y(), R(h, {
4837
+ (y(!0), M(be, null, we(a.tagLayers.filter((F) => ["graticule", "day-night", "time-zones"].includes(F.key)), (F) => (y(), R(h, {
4854
4838
  key: F.key,
4855
4839
  modelValue: a.checkList,
4856
4840
  "onUpdate:modelValue": e[0] || (e[0] = (me) => a.checkList = me),
@@ -4889,7 +4873,7 @@ function hl(t, e, o, i, a, r) {
4889
4873
  }),
4890
4874
  p(b, { class: "py-2" }, {
4891
4875
  default: f(() => [
4892
- (y(!0), S(be, null, we(a.tagLayers.filter((F) => ["ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (y(), R(h, {
4876
+ (y(!0), M(be, null, we(a.tagLayers.filter((F) => ["ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (y(), R(h, {
4893
4877
  key: F.key,
4894
4878
  modelValue: a.checkList,
4895
4879
  "onUpdate:modelValue": e[1] || (e[1] = (me) => a.checkList = me),
@@ -4928,7 +4912,7 @@ function hl(t, e, o, i, a, r) {
4928
4912
  }),
4929
4913
  p(b, { class: "py-2" }, {
4930
4914
  default: f(() => [
4931
- (y(!0), S(be, null, we(a.tagLayers.filter((F) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (y(), R(h, {
4915
+ (y(!0), M(be, null, we(a.tagLayers.filter((F) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (y(), R(h, {
4932
4916
  key: F.key,
4933
4917
  modelValue: a.checkList,
4934
4918
  "onUpdate:modelValue": e[2] || (e[2] = (me) => a.checkList = me),
@@ -5011,8 +4995,9 @@ function hl(t, e, o, i, a, r) {
5011
4995
  o.map ? (y(), R(P, B({
5012
4996
  key: 2,
5013
4997
  map: o.map,
5014
- zone: (ne = a.otherLayers) == null ? void 0 : ne["time-zones"]
5015
- }, t.$attrs, { beforeLayer: "empty-layer-2" }), null, 16, ["map", "zone"])) : D("", !0),
4998
+ zone: (ne = a.otherLayers) == null ? void 0 : ne["time-zones"],
4999
+ realTime: o.realTime
5000
+ }, t.$attrs, { beforeLayer: "empty-layer-3" }), null, 16, ["map", "zone", "realTime"])) : D("", !0),
5016
5001
  o.map ? (y(), R(T, B({
5017
5002
  key: 3,
5018
5003
  ref: "idmPorts",
@@ -5928,7 +5913,7 @@ const bl = {
5928
5913
  }, wl = { key: 0 };
5929
5914
  function xl(t, e, o, i, a, r) {
5930
5915
  var l;
5931
- return (l = o.factor) != null && l.active ? (y(), S("div", wl, [
5916
+ return (l = o.factor) != null && l.active ? (y(), M("div", wl, [
5932
5917
  s("div", {
5933
5918
  class: "legend-bars-gl4 wind",
5934
5919
  style: ie({ right: a.right + "px" })
@@ -6266,7 +6251,7 @@ const Ll = {
6266
6251
  }, Pl = { key: 0 };
6267
6252
  function Cl(t, e, o, i, a, r) {
6268
6253
  var l;
6269
- return (l = o.factor) != null && l.active ? (y(), S("div", Pl, [
6254
+ return (l = o.factor) != null && l.active ? (y(), M("div", Pl, [
6270
6255
  s("div", {
6271
6256
  class: "legend-bars-gl4 current",
6272
6257
  style: ie({ right: a.right + "px" })
@@ -6390,7 +6375,7 @@ const Sl = {
6390
6375
  }, Ml = { key: 0 };
6391
6376
  function Il(t, e, o, i, a, r) {
6392
6377
  var l;
6393
- return (l = o.factor) != null && l.active ? (y(), S("div", Ml, [
6378
+ return (l = o.factor) != null && l.active ? (y(), M("div", Ml, [
6394
6379
  s("div", {
6395
6380
  class: "legend-bars-gl4 sig-wave",
6396
6381
  style: ie({ right: a.right + "px" })
@@ -6662,7 +6647,7 @@ const Bl = {
6662
6647
  }, El = { key: 0 };
6663
6648
  function jl(t, e, o, i, a, r) {
6664
6649
  var l;
6665
- return (l = o.factor) != null && l.active ? (y(), S("div", El, [
6650
+ return (l = o.factor) != null && l.active ? (y(), M("div", El, [
6666
6651
  s("div", {
6667
6652
  class: "legend-bars-gl4 swell",
6668
6653
  style: ie({ right: a.right + "px" })
@@ -6829,7 +6814,7 @@ const Nl = /* @__PURE__ */ Y(Bl, [["render", jl], ["__scopeId", "data-v-d47b8b5c
6829
6814
  function Gl(t, e, o, i, a, r) {
6830
6815
  var n;
6831
6816
  const l = x("VBtn"), c = x("VTooltip");
6832
- return (n = o.prmsl) != null && n.active ? (y(), S("div", Hl, [
6817
+ return (n = o.prmsl) != null && n.active ? (y(), M("div", Hl, [
6833
6818
  s("div", {
6834
6819
  class: "menu-bar-box pa-1 rounded",
6835
6820
  style: ie({ right: a.right + "px" })
@@ -6961,7 +6946,7 @@ const Wl = {
6961
6946
  }, Vl = { key: 0 };
6962
6947
  function Zl(t, e, o, i, a, r) {
6963
6948
  var l;
6964
- return (l = o.factor) != null && l.active ? (y(), S("div", Vl, [
6949
+ return (l = o.factor) != null && l.active ? (y(), M("div", Vl, [
6965
6950
  s("div", {
6966
6951
  class: "legend-bars-gl4 ice-edge",
6967
6952
  style: ie({ right: a.right + "px" })
@@ -7074,7 +7059,7 @@ const ql = {
7074
7059
  }, Xl = { key: 0 };
7075
7060
  function $l(t, e, o, i, a, r) {
7076
7061
  var l;
7077
- return (l = o.factor) != null && l.active ? (y(), S("div", Xl, [
7062
+ return (l = o.factor) != null && l.active ? (y(), M("div", Xl, [
7078
7063
  s("div", {
7079
7064
  class: "legend-bars-gl4 ice-cover",
7080
7065
  style: ie({ right: a.right + "px" })
@@ -7188,7 +7173,7 @@ const Jl = {
7188
7173
  }, Ql = { key: 0 };
7189
7174
  function en(t, e, o, i, a, r) {
7190
7175
  var l;
7191
- return (l = o.factor) != null && l.active ? (y(), S("div", Ql, [
7176
+ return (l = o.factor) != null && l.active ? (y(), M("div", Ql, [
7192
7177
  s("div", {
7193
7178
  class: "legend-bars-gl4 ice-thickness",
7194
7179
  style: ie({ right: a.right + "px" })
@@ -7304,7 +7289,7 @@ const on = {
7304
7289
  }, an = { key: 0 };
7305
7290
  function rn(t, e, o, i, a, r) {
7306
7291
  var l;
7307
- return (l = o.factor) != null && l.active ? (y(), S("div", an, [
7292
+ return (l = o.factor) != null && l.active ? (y(), M("div", an, [
7308
7293
  s("div", {
7309
7294
  class: "legend-bars-gl4 precip3h",
7310
7295
  style: ie({ right: a.right + "px" })
@@ -7411,7 +7396,7 @@ const ln = {
7411
7396
  }, nn = { key: 0 };
7412
7397
  function cn(t, e, o, i, a, r) {
7413
7398
  var l;
7414
- return (l = o.factor) != null && l.active ? (y(), S("div", nn, [
7399
+ return (l = o.factor) != null && l.active ? (y(), M("div", nn, [
7415
7400
  s("div", {
7416
7401
  class: "legend-bars-gl4 visibility",
7417
7402
  style: ie({ right: a.right + "px" })
@@ -7519,7 +7504,7 @@ const dn = {
7519
7504
  }, hn = { key: 0 };
7520
7505
  function pn(t, e, o, i, a, r) {
7521
7506
  var l;
7522
- return (l = o.factor) != null && l.active ? (y(), S("div", hn, [
7507
+ return (l = o.factor) != null && l.active ? (y(), M("div", hn, [
7523
7508
  s("div", {
7524
7509
  class: "legend-bars-gl4 water-temp",
7525
7510
  style: ie({ right: a.right + "px" })
@@ -7638,7 +7623,7 @@ const gn = {
7638
7623
  }, fn = { key: 0 };
7639
7624
  function yn(t, e, o, i, a, r) {
7640
7625
  var l;
7641
- return (l = o.factor) != null && l.active ? (y(), S("div", fn, [
7626
+ return (l = o.factor) != null && l.active ? (y(), M("div", fn, [
7642
7627
  s("div", {
7643
7628
  class: "legend-bars-gl4 temp",
7644
7629
  style: ie({ right: a.right + "px" })
@@ -7778,7 +7763,7 @@ const wn = {
7778
7763
  return function(t) {
7779
7764
  var e;
7780
7765
  if (t) {
7781
- const o = M(t);
7766
+ const o = S(t);
7782
7767
  return `${(e = o == null ? void 0 : o.utc()) == null ? void 0 : e.format("MMM-DD/HHmm")}Z`;
7783
7768
  }
7784
7769
  return "-";
@@ -7786,7 +7771,7 @@ const wn = {
7786
7771
  },
7787
7772
  computeDateUpdate() {
7788
7773
  return function(t) {
7789
- return t ? M(t).fromNow() : "-";
7774
+ return t ? S(t).fromNow() : "-";
7790
7775
  };
7791
7776
  },
7792
7777
  overlaysKeys() {
@@ -7830,7 +7815,7 @@ const wn = {
7830
7815
  },
7831
7816
  realTime: {
7832
7817
  handler(t, e) {
7833
- t && e && M(t).utc().format("yyyy-MM-DD HH") !== M(e).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
7818
+ t && e && S(t).utc().format("yyyy-MM-DD HH") !== S(e).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
7834
7819
  this.fetchWeatherLayers();
7835
7820
  });
7836
7821
  },
@@ -8332,9 +8317,9 @@ const wn = {
8332
8317
  class: "d-flex justify-start align-center ga-4 pl-6"
8333
8318
  }, On = { class: "text-body-1 py-2" }, Bn = { class: "text-body-1 font-weight-medium" }, En = { class: "text-body-2 text-label" }, jn = { class: "text-body-2 text-label" }, Nn = { class: "text-body-2 text-label mb-3" }, Fn = { class: "text-body-1 font-weight-medium" }, Hn = { class: "text-body-2 text-label" }, Gn = { class: "text-body-2 text-label" }, Un = { class: "text-body-2 text-label mb-3" }, Wn = { class: "text-body-1 py-2" }, Vn = { class: "text-body-1 font-weight-medium" }, Zn = { class: "text-body-2 text-label" }, Yn = { class: "text-body-2 text-label" }, qn = { class: "text-body-2 text-label mb-3" }, Xn = { class: "text-body-1 font-weight-medium" }, $n = { class: "text-body-2 text-label" }, Kn = { class: "text-body-2 text-label" }, Jn = { class: "text-body-2 text-label mb-3" }, Qn = { class: "text-body-1 py-2" }, ec = { class: "text-body-1 font-weight-medium" }, tc = { class: "text-body-2 text-label" }, oc = { class: "text-body-2 text-label" }, ac = { class: "text-body-2 text-label mb-3" };
8334
8319
  function ic(t, e, o, i, a, r) {
8335
- var Q, ae, he, ce, pe, ge, F, me, xe, Le, Pe, De, Ae, Re, _e;
8320
+ var Q, ae, he, ce, pe, ge, F, me, ve, Le, Pe, De, Ae, Re, _e;
8336
8321
  const l = x("VBtn"), c = x("VTooltip"), n = x("VCol"), u = x("VRow"), h = x("VCardText"), b = x("VDivider"), w = x("VCard"), _ = x("VSwitch"), g = x("VCardTitle"), P = x("VCardItem"), T = x("VCheckbox"), O = x("VRadio"), I = x("VBtnToggle"), L = x("IdmWindBarb"), z = x("IdmSigWaveHeight"), v = x("IdmCurrentDirection"), C = x("IdmPrmsl"), k = x("IdmWindParticle"), A = x("IdmCurrentParticle"), N = x("IdmWave"), V = x("IdmSwell"), Z = x("IdmIceEdge"), W = x("IdmIceCover"), ee = x("IdmIceThickness"), J = x("IdmPrecip3h"), $ = x("IdmVisibility"), ne = x("IdmWaterTemp"), se = x("IdmTemp");
8337
- return y(), S("div", xn, [
8322
+ return y(), M("div", xn, [
8338
8323
  s("div", {
8339
8324
  class: "menu-bar-box transition pa-1",
8340
8325
  style: ie({ top: o.top + 94 + "px", right: a.right + "px" })
@@ -8361,7 +8346,7 @@ function ic(t, e, o, i, a, r) {
8361
8346
  _: 1
8362
8347
  }, 8, ["text"])
8363
8348
  ], 4),
8364
- r.showTipMenu ? (y(), S("div", vn, [
8349
+ r.showTipMenu ? (y(), M("div", vn, [
8365
8350
  s("div", {
8366
8351
  class: "menu-bar-box pa-1 rounded",
8367
8352
  style: ie({ right: a.right + "px" })
@@ -8401,7 +8386,7 @@ function ic(t, e, o, i, a, r) {
8401
8386
  e[10] || (e[10] = s("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wind Level", -1)),
8402
8387
  p(u, { class: "ma-0 ml-n1 text-body-2" }, {
8403
8388
  default: f(() => [
8404
- (y(!0), S(be, null, we(a.legend.barbs, (G, te) => (y(), R(n, {
8389
+ (y(!0), M(be, null, we(a.legend.barbs, (G, te) => (y(), R(n, {
8405
8390
  key: G,
8406
8391
  cols: "6",
8407
8392
  class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
@@ -8433,14 +8418,14 @@ function ic(t, e, o, i, a, r) {
8433
8418
  style: { width: "100px" }
8434
8419
  }, {
8435
8420
  default: f(() => [
8436
- (y(!0), S(be, null, we(a.legend.sigWaveHeight, (G, te) => (y(), R(n, {
8421
+ (y(!0), M(be, null, we(a.legend.sigWaveHeight, (G, te) => (y(), R(n, {
8437
8422
  key: te,
8438
8423
  cols: "12",
8439
8424
  class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
8440
8425
  }, {
8441
8426
  default: f(() => [
8442
8427
  s("div", zn, [
8443
- te === 0 ? (y(), S("div", Ln)) : (y(), S("div", {
8428
+ te === 0 ? (y(), M("div", Ln)) : (y(), M("div", {
8444
8429
  key: 1,
8445
8430
  style: ie({ width: "24px", height: "12px", background: G.color })
8446
8431
  }, null, 4)),
@@ -8465,7 +8450,7 @@ function ic(t, e, o, i, a, r) {
8465
8450
  style: { width: "110px" }
8466
8451
  }, {
8467
8452
  default: f(() => [
8468
- (y(!0), S(be, null, we(a.legend.current, (G, te) => (y(), R(n, {
8453
+ (y(!0), M(be, null, we(a.legend.current, (G, te) => (y(), R(n, {
8469
8454
  key: te,
8470
8455
  cols: "12",
8471
8456
  class: "d-flex flex-row justify-center align-center py-1 px-0 ma-0"
@@ -8549,7 +8534,7 @@ function ic(t, e, o, i, a, r) {
8549
8534
  }),
8550
8535
  p(h, { class: "py-2" }, {
8551
8536
  default: f(() => [
8552
- (y(!0), S(be, null, we(a.tagLayers.filter((G) => G.overlays), (G) => (y(), R(T, {
8537
+ (y(!0), M(be, null, we(a.tagLayers.filter((G) => G.overlays), (G) => (y(), R(T, {
8553
8538
  key: G.key,
8554
8539
  modelValue: a.checkList,
8555
8540
  "onUpdate:modelValue": e[2] || (e[2] = (te) => a.checkList = te),
@@ -8589,7 +8574,7 @@ function ic(t, e, o, i, a, r) {
8589
8574
  }),
8590
8575
  p(h, { class: "py-2" }, {
8591
8576
  default: f(() => [
8592
- (y(!0), S(be, null, we(a.tagLayers.filter((G) => !G.overlays), (G) => (y(), S(be, {
8577
+ (y(!0), M(be, null, we(a.tagLayers.filter((G) => !G.overlays), (G) => (y(), M(be, {
8593
8578
  key: G.key
8594
8579
  }, [
8595
8580
  p(O, {
@@ -8605,7 +8590,7 @@ function ic(t, e, o, i, a, r) {
8605
8590
  "hide-details": "",
8606
8591
  onClick: (te) => a.renderKey = a.renderKey === G.key ? "" : G.key
8607
8592
  }, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
8608
- a.renderKey === "wind-particle" && G.key === "wind-particle" ? (y(), S("div", An, [
8593
+ a.renderKey === "wind-particle" && G.key === "wind-particle" ? (y(), M("div", An, [
8609
8594
  s("span", null, m(t.$t("weather.particleAnimatiom")), 1),
8610
8595
  p(_, {
8611
8596
  modelValue: a.showWindParticle,
@@ -8620,7 +8605,7 @@ function ic(t, e, o, i, a, r) {
8620
8605
  "hide-details": ""
8621
8606
  }, null, 8, ["modelValue"])
8622
8607
  ])) : D("", !0),
8623
- a.renderKey === "current-particle" && G.key === "current-particle" ? (y(), S("div", Rn, [
8608
+ a.renderKey === "current-particle" && G.key === "current-particle" ? (y(), M("div", Rn, [
8624
8609
  s("span", null, m(t.$t("weather.particleAnimatiom")), 1),
8625
8610
  p(_, {
8626
8611
  modelValue: a.showCurrentParticle,
@@ -8847,7 +8832,7 @@ function ic(t, e, o, i, a, r) {
8847
8832
  o.map ? (y(), R(Z, B({
8848
8833
  key: 9,
8849
8834
  viewport: a.viewport,
8850
- factor: (xe = a.weatherLayers) == null ? void 0 : xe["ice-edge"],
8835
+ factor: (ve = a.weatherLayers) == null ? void 0 : ve["ice-edge"],
8851
8836
  "menu-toggle": o.menuToggle
8852
8837
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
8853
8838
  o.map ? (y(), R(W, B({
@@ -9235,8 +9220,8 @@ class Za {
9235
9220
  }), a;
9236
9221
  }
9237
9222
  static pickHourly(e, o) {
9238
- var i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee, J, $, ne, se, Q, ae, he, ce, pe, ge, F, me, xe, Le, Pe, De, Ae, Re, _e, G, te, He, Me;
9239
- const ue = typeof o == "string" ? M(o) : o, fe = e == null ? void 0 : e.weather, U = e == null ? void 0 : e.marine, Ce = M((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), oe = Ce.clone().add((c = (l = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : l.time) == null ? void 0 : c.at(0), "h"), re = Ce.clone().add((h = (u = (n = fe == null ? void 0 : fe[0]) == null ? void 0 : n.hourly) == null ? void 0 : u.time) == null ? void 0 : h.at(-1), "h"), Oe = [];
9223
+ var i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee, J, $, ne, se, Q, ae, he, ce, pe, ge, F, me, ve, Le, Pe, De, Ae, Re, _e, G, te, He, Me;
9224
+ const ue = typeof o == "string" ? S(o) : o, fe = e == null ? void 0 : e.weather, U = e == null ? void 0 : e.marine, Ce = S((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), oe = Ce.clone().add((c = (l = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : l.time) == null ? void 0 : c.at(0), "h"), re = Ce.clone().add((h = (u = (n = fe == null ? void 0 : fe[0]) == null ? void 0 : n.hourly) == null ? void 0 : u.time) == null ? void 0 : h.at(-1), "h"), Oe = [];
9240
9225
  if (ue.isBetween(oe, re, "millisecond", "[]")) {
9241
9226
  const j = ue.utc().diff(oe, "h", !1);
9242
9227
  let ye, Ie;
@@ -9301,7 +9286,7 @@ class Za {
9301
9286
  },
9302
9287
  wd: {
9303
9288
  height: (me = E == null ? void 0 : E.wind_wave_height) == null ? void 0 : me.at(j),
9304
- degree: (xe = E == null ? void 0 : E.wind_wave_direction) == null ? void 0 : xe.at(j),
9289
+ degree: (ve = E == null ? void 0 : E.wind_wave_direction) == null ? void 0 : ve.at(j),
9305
9290
  bearing: ((Le = E == null ? void 0 : E.wind_wave_direction) == null ? void 0 : Le.at(j)) !== null ? (((Pe = E == null ? void 0 : E.wind_wave_direction) == null ? void 0 : Pe.at(j)) + 180) % 360 : null,
9306
9291
  period: (De = E == null ? void 0 : E.wind_wave_period) == null ? void 0 : De.at(j),
9307
9292
  peakPeriod: (Ae = E == null ? void 0 : E.wind_wave_peak_period) == null ? void 0 : Ae.at(j)
@@ -9344,8 +9329,8 @@ class Za {
9344
9329
  };
9345
9330
  }
9346
9331
  static pickDaily(e, o) {
9347
- var i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee, J, $, ne, se, Q, ae, he, ce, pe, ge, F, me, xe, Le, Pe, De, Ae;
9348
- const Re = typeof o == "string" ? M(o) : o, _e = e == null ? void 0 : e.weather, G = e == null ? void 0 : e.marine, te = M((r = (a = (i = _e == null ? void 0 : _e[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), He = M((n = (c = (l = _e == null ? void 0 : _e[0]) == null ? void 0 : l.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Me = [];
9332
+ var i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee, J, $, ne, se, Q, ae, he, ce, pe, ge, F, me, ve, Le, Pe, De, Ae;
9333
+ const Re = typeof o == "string" ? S(o) : o, _e = e == null ? void 0 : e.weather, G = e == null ? void 0 : e.marine, te = S((r = (a = (i = _e == null ? void 0 : _e[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), He = S((n = (c = (l = _e == null ? void 0 : _e[0]) == null ? void 0 : l.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Me = [];
9349
9334
  if (Re.isBetween(te, He, "millisecond", "[]")) {
9350
9335
  let ue, fe;
9351
9336
  const U = Re.diff(te, "d", !1);
@@ -9413,7 +9398,7 @@ class Za {
9413
9398
  },
9414
9399
  wd: {
9415
9400
  height: (me = re.wind_wave_height_max) == null ? void 0 : me.at(U),
9416
- degree: (xe = re.wind_wave_direction_dominant) == null ? void 0 : xe.at(U),
9401
+ degree: (ve = re.wind_wave_direction_dominant) == null ? void 0 : ve.at(U),
9417
9402
  period: (Le = re.wind_wave_period_max) == null ? void 0 : Le.at(U),
9418
9403
  peakPeriod: (Pe = re.wind_wave_peak_period_max) == null ? void 0 : Pe.at(U),
9419
9404
  bearing: ((De = re.wind_wave_direction_dominant) == null ? void 0 : De.at(U)) !== null ? (((Ae = re.wind_wave_direction_dominant) == null ? void 0 : Ae.at(U)) + 180) % 360 : null
@@ -9928,7 +9913,7 @@ const sc = {
9928
9913
  computeTime() {
9929
9914
  return (t, e) => {
9930
9915
  if (t) {
9931
- const o = M(t).utcOffset(e), i = e < 0 ? e : "+" + e;
9916
+ const o = S(t).utcOffset(e), i = e < 0 ? e : "+" + e;
9932
9917
  return `${o == null ? void 0 : o.format("MMM-DD/HHmm")} ( UTC${i} ) ${o == null ? void 0 : o.fromNow()} `;
9933
9918
  }
9934
9919
  return "-";
@@ -9938,7 +9923,7 @@ const sc = {
9938
9923
  return (t, e, o = "MM-DD HH:mm") => {
9939
9924
  var i, a;
9940
9925
  if (t) {
9941
- const r = e || 0, l = (a = (i = M(t)) == null ? void 0 : i.utcOffset(r)) == null ? void 0 : a.format(o), c = `(UTC ${r >= 0 ? "+" : ""}${r})`;
9926
+ const r = e || 0, l = (a = (i = S(t)) == null ? void 0 : i.utcOffset(r)) == null ? void 0 : a.format(o), c = `(UTC ${r >= 0 ? "+" : ""}${r})`;
9942
9927
  return l + " " + c;
9943
9928
  }
9944
9929
  return "-";
@@ -10079,7 +10064,7 @@ const sc = {
10079
10064
  }
10080
10065
  i.properties.level = v;
10081
10066
  }
10082
- ((O = i.geometry) == null ? void 0 : O.type) === "Point" && ((I = i.properties) != null && I.important) && (i.properties.format = (z = (L = M(i.properties.date)) == null ? void 0 : L.utcOffset(this.timeZone)) == null ? void 0 : z.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`));
10067
+ ((O = i.geometry) == null ? void 0 : O.type) === "Point" && ((I = i.properties) != null && I.important) && (i.properties.format = (z = (L = S(i.properties.date)) == null ? void 0 : L.utcOffset(this.timeZone)) == null ? void 0 : z.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`));
10083
10068
  }), this.handleInit();
10084
10069
  },
10085
10070
  handleInit() {
@@ -10316,7 +10301,7 @@ const sc = {
10316
10301
  handleDateChange() {
10317
10302
  var t, e, o, i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee;
10318
10303
  if ((t = this.interpolateMarkers) == null || t.forEach((J) => J == null ? void 0 : J.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
10319
- const J = M(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), $ = this.interpolateData.filter((Q) => Q.properties.date === (J == null ? void 0 : J.format()) && !Q.properties.disabled), ne = this.handleComputePolygons($), se = H.featureCollection([...$]);
10304
+ const J = S(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), $ = this.interpolateData.filter((Q) => Q.properties.date === (J == null ? void 0 : J.format()) && !Q.properties.disabled), ne = this.handleComputePolygons($), se = H.featureCollection([...$]);
10320
10305
  ne.forEach((Q) => {
10321
10306
  se.features.push(Q);
10322
10307
  }), (o = this.map) != null && o.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(se) : ((a = this.map) == null || a.addSource(this.interpolateSource, {
@@ -10353,7 +10338,7 @@ const sc = {
10353
10338
  fill="#ffffff" p-id="18386"></path>
10354
10339
  </svg>`, ce = document.createElement("div");
10355
10340
  ce.className = "idm-tropical-gl4-hourly-marker", ce.innerHTML = `<div class="${Q.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${he}</div>`;
10356
- const pe = new ve.Marker(ce).setLngLat(Q.geometry.coordinates).addTo(this.map);
10341
+ const pe = new xe.Marker(ce).setLngLat(Q.geometry.coordinates).addTo(this.map);
10357
10342
  this.interpolateMarkers.push(pe);
10358
10343
  }
10359
10344
  } else
@@ -10380,7 +10365,7 @@ const sc = {
10380
10365
  showCircle: (w = (b = o[0]) == null ? void 0 : b.properties) == null ? void 0 : w.showCircle
10381
10366
  }, this.showTropicalsInfo = !0, this.$nextTick(() => {
10382
10367
  const _ = document.getElementById("idm-tropical-gl4-info");
10383
- this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]) : this.activeTropicalsMarker = new ve.Marker(_).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
10368
+ this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]) : this.activeTropicalsMarker = new xe.Marker(_).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
10384
10369
  });
10385
10370
  },
10386
10371
  handleCloseInfoMarker() {
@@ -10480,7 +10465,7 @@ const sc = {
10480
10465
  );
10481
10466
  this.hoverPoint && (this.hoverPoint.lng = o.geometry.coordinates[0], this.hoverPoint.lat = o.geometry.coordinates[1], this.hoverPoint.update = (c = (l = i == null ? void 0 : i[0]) == null ? void 0 : l.properties) == null ? void 0 : c.date, (n = this.hoverMarker) == null || n.remove(), this.showHoverPoint = !0, this.$nextTick(() => {
10482
10467
  const u = document.getElementById("tropicalHoverMarkerInfo").cloneNode(!0);
10483
- this.hoverMarker = new ve.Marker(u).setLngLat(o.geometry.coordinates).setOffset([160, 0]).addTo(this.map);
10468
+ this.hoverMarker = new xe.Marker(u).setLngLat(o.geometry.coordinates).setOffset([160, 0]).addTo(this.map);
10484
10469
  }));
10485
10470
  },
10486
10471
  handleLeave() {
@@ -10528,7 +10513,7 @@ const sc = {
10528
10513
  }, Jc = { class: "text-label pr-1" }, Qc = { class: "d-flex justify-start align-center" }, em = { class: "text-label pr-1" };
10529
10514
  function tm(t, e, o, i, a, r) {
10530
10515
  const l = x("VBtn"), c = x("VTooltip"), n = x("VCardText"), u = x("VDivider"), h = x("VCardActions"), b = x("VCard"), w = x("v-card-title"), _ = x("v-divider");
10531
- return y(), S("div", lc, [
10516
+ return y(), M("div", lc, [
10532
10517
  s("div", {
10533
10518
  class: "menu-bar-box transition pa-1",
10534
10519
  style: ie({ top: o.top + 134 + "px", right: a.right + "px" })
@@ -10555,7 +10540,7 @@ function tm(t, e, o, i, a, r) {
10555
10540
  _: 1
10556
10541
  }, 8, ["text"])
10557
10542
  ], 4),
10558
- a.showTropicalsInfo && !t.$attrs.hideTropicalsLegend ? (y(), S("div", nc, [
10543
+ a.showTropicalsInfo && !t.$attrs.hideTropicalsLegend ? (y(), M("div", nc, [
10559
10544
  p(b, {
10560
10545
  "min-width": "400",
10561
10546
  elevation: "16",
@@ -10568,7 +10553,7 @@ function tm(t, e, o, i, a, r) {
10568
10553
  return [
10569
10554
  s("div", cc, [
10570
10555
  s("span", mc, m(o.locale === "en" ? (g = a.activeTropicals) == null ? void 0 : g.name : (P = a.activeTropicals) == null ? void 0 : P.nameCn), 1),
10571
- (O = (T = a.activeTropicals) == null ? void 0 : T.history) != null && O.level ? (y(), S("span", dc, ", " + m((L = (I = a.activeTropicals) == null ? void 0 : I.history) == null ? void 0 : L.level), 1)) : D("", !0)
10556
+ (O = (T = a.activeTropicals) == null ? void 0 : T.history) != null && O.level ? (y(), M("span", dc, ", " + m((L = (I = a.activeTropicals) == null ? void 0 : I.history) == null ? void 0 : L.level), 1)) : D("", !0)
10572
10557
  ]),
10573
10558
  p(l, {
10574
10559
  icon: "",
@@ -10620,7 +10605,7 @@ function tm(t, e, o, i, a, r) {
10620
10605
  s("div", zc, [
10621
10606
  s("label", Lc, m(t.$t("weather.forecastModels")) + " : ", 1),
10622
10607
  s("div", Pc, [
10623
- (y(!0), S(be, null, we((C = a.activeTropicals) == null ? void 0 : C.forecasts, (k, A) => (y(), R(l, {
10608
+ (y(!0), M(be, null, we((C = a.activeTropicals) == null ? void 0 : C.forecasts, (k, A) => (y(), R(l, {
10624
10609
  key: A,
10625
10610
  density: "compact",
10626
10611
  variant: k.disabled ? "text" : "flat",
@@ -10778,27 +10763,27 @@ function tm(t, e, o, i, a, r) {
10778
10763
  var g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee, J, $, ne, se;
10779
10764
  return [
10780
10765
  s("div", Rc, [
10781
- ((g = a.hoverPoint) == null ? void 0 : g.type) === "forecast" ? (y(), S("div", Oc, [
10766
+ ((g = a.hoverPoint) == null ? void 0 : g.type) === "forecast" ? (y(), M("div", Oc, [
10782
10767
  s("label", Bc, m(t.$t("tropical.updated")) + " : ", 1),
10783
10768
  s("span", null, m(r.computeTzTime((P = a.hoverPoint) == null ? void 0 : P.update, o.timeZone)), 1)
10784
10769
  ])) : D("", !0),
10785
- ((T = a.hoverPoint) == null ? void 0 : T.type) === "forecast" ? (y(), S("div", Ec, [
10770
+ ((T = a.hoverPoint) == null ? void 0 : T.type) === "forecast" ? (y(), M("div", Ec, [
10786
10771
  s("label", jc, m(t.$t("tropical.forecast")) + " : ", 1),
10787
10772
  s("span", null, m(r.computeTzTime((O = a.hoverPoint) == null ? void 0 : O.date, o.timeZone)), 1)
10788
10773
  ])) : D("", !0),
10789
- ((I = a.hoverPoint) == null ? void 0 : I.type) === "history" ? (y(), S("div", Nc, [
10774
+ ((I = a.hoverPoint) == null ? void 0 : I.type) === "history" ? (y(), M("div", Nc, [
10790
10775
  s("label", Fc, m(t.$t("tropical.forecast")) + " : ", 1),
10791
10776
  s("span", null, m(r.computeTzTime((L = a.hoverPoint) == null ? void 0 : L.date, o.timeZone)), 1)
10792
10777
  ])) : D("", !0),
10793
- ((z = a.hoverPoint) == null ? void 0 : z.type) === "forecast" ? (y(), S("div", Hc, [
10778
+ ((z = a.hoverPoint) == null ? void 0 : z.type) === "forecast" ? (y(), M("div", Hc, [
10794
10779
  s("label", Gc, m(t.$t("tropical.model")) + " : ", 1),
10795
10780
  s("span", null, m(((v = a.hoverPoint) == null ? void 0 : v.model) ?? "-"), 1)
10796
10781
  ])) : D("", !0),
10797
- ((C = a.hoverPoint) == null ? void 0 : C.type) === "forecast" ? (y(), S("div", Uc, [
10782
+ ((C = a.hoverPoint) == null ? void 0 : C.type) === "forecast" ? (y(), M("div", Uc, [
10798
10783
  s("label", Wc, m(t.$t("weather.wind")) + " : ", 1),
10799
10784
  s("span", null, m(((A = JSON.parse((k = a.hoverPoint) == null ? void 0 : k.wind)) == null ? void 0 : A.kts) ?? "-") + " kts", 1)
10800
10785
  ])) : D("", !0),
10801
- ((N = a.hoverPoint) == null ? void 0 : N.type) === "history" ? (y(), S("div", Vc, [
10786
+ ((N = a.hoverPoint) == null ? void 0 : N.type) === "history" ? (y(), M("div", Vc, [
10802
10787
  s("label", Zc, m(t.$t("weather.wind")) + " : ", 1),
10803
10788
  s("span", null, m(((V = a.hoverPoint) == null ? void 0 : V.kts) ?? "-") + " kts", 1)
10804
10789
  ])) : D("", !0),
@@ -10806,11 +10791,11 @@ function tm(t, e, o, i, a, r) {
10806
10791
  s("label", qc, m(t.$t("weather.pressure")) + " : ", 1),
10807
10792
  s("span", null, m(((Z = a.hoverPoint) == null ? void 0 : Z.pressure) ?? "-") + " hPa", 1)
10808
10793
  ]),
10809
- ((W = a.hoverPoint) == null ? void 0 : W.type) === "history" ? (y(), S("div", Xc, [
10794
+ ((W = a.hoverPoint) == null ? void 0 : W.type) === "history" ? (y(), M("div", Xc, [
10810
10795
  s("label", $c, m(t.$t("tropical.moveSpeed")) + " : ", 1),
10811
10796
  s("span", null, m(((J = JSON.parse((ee = a.hoverPoint) == null ? void 0 : ee.movement)) == null ? void 0 : J.kts) ?? "-") + " kts", 1)
10812
10797
  ])) : D("", !0),
10813
- (($ = a.hoverPoint) == null ? void 0 : $.type) === "history" ? (y(), S("div", Kc, [
10798
+ (($ = a.hoverPoint) == null ? void 0 : $.type) === "history" ? (y(), M("div", Kc, [
10814
10799
  s("label", Jc, m(t.$t("tropical.moveDir")) + " : ", 1),
10815
10800
  s("span", null, m(((se = JSON.parse((ne = a.hoverPoint) == null ? void 0 : ne.movement)) == null ? void 0 : se.deg) ?? "-") + " °", 1)
10816
10801
  ])) : D("", !0),
@@ -10889,7 +10874,7 @@ const om = {
10889
10874
  },
10890
10875
  computed: {
10891
10876
  currentYear() {
10892
- return M(this.currentTimestamp).format("YYYY");
10877
+ return S(this.currentTimestamp).format("YYYY");
10893
10878
  },
10894
10879
  hourOptions() {
10895
10880
  const t = [];
@@ -10898,11 +10883,11 @@ const om = {
10898
10883
  return t.filter((e, o) => (o - this.timeZone) % this.intervalHour === 0);
10899
10884
  },
10900
10885
  timeZoneNames() {
10901
- return M.tz.names();
10886
+ return S.tz.names();
10902
10887
  },
10903
10888
  timeZoneName() {
10904
10889
  var t;
10905
- return (t = this.timeZoneNames.filter((e) => M.tz(M(), e).utcOffset() === this.timeZone * 60)) == null ? void 0 : t[0];
10890
+ return (t = this.timeZoneNames.filter((e) => S.tz(S(), e).utcOffset() === this.timeZone * 60)) == null ? void 0 : t[0];
10906
10891
  },
10907
10892
  utcTimeZoneName() {
10908
10893
  return "Africa/Abidjan";
@@ -10925,7 +10910,7 @@ const om = {
10925
10910
  },
10926
10911
  currentTimestamp: {
10927
10912
  handler() {
10928
- this.currentDateTimeZ = M(this.currentTimestamp).utc().format("yyyy-MM-DD HH:00[Z]"), this.$emit("dateTime", this.currentDateTimeZ), this.$emit("currentTimestamp", this.currentTimestamp), this.currentDateTime = `${M.tz(this.currentTimestamp, this.timeZoneName).clone().format("yyyy-MM-DD : HH:00")}`;
10913
+ this.currentDateTimeZ = S(this.currentTimestamp).utc().format("yyyy-MM-DD HH:00[Z]"), this.$emit("dateTime", this.currentDateTimeZ), this.$emit("currentTimestamp", this.currentTimestamp), this.currentDateTime = `${S.tz(this.currentTimestamp, this.timeZoneName).clone().format("yyyy-MM-DD : HH:00")}`;
10929
10914
  },
10930
10915
  immediate: !0
10931
10916
  },
@@ -10937,7 +10922,7 @@ const om = {
10937
10922
  },
10938
10923
  mounted() {
10939
10924
  this.timer = setInterval(() => {
10940
- this.currentRealTime = `${M.tz(M().unix() * 1e3, this.timeZoneName).clone().format("HH:mm")}`;
10925
+ this.currentRealTime = `${S.tz(S().unix() * 1e3, this.timeZoneName).clone().format("HH:mm")}`;
10941
10926
  }, 100), document.addEventListener("click", this.handleClickOutside);
10942
10927
  },
10943
10928
  unmounted() {
@@ -10949,35 +10934,35 @@ const om = {
10949
10934
  },
10950
10935
  handleResetDateTime(t) {
10951
10936
  var a;
10952
- const e = M(t).utc().date(), o = Math.ceil(M(t).utc().hour() / 3) * 3;
10953
- this.currentTimestamp = ((a = M(t)) == null ? void 0 : a.utc().set({ date: e, hour: o, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3;
10954
- const i = M.tz(this.currentTimestamp, this.timeZoneName).clone();
10955
- this.currentDate = i.clone().format("YYYY-MM-DD"), this.currentTime = i.clone().format("HH:00"), this.currentDateTime = `${M.tz(this.currentTimestamp, this.timeZoneName).clone().format("yyyy-MM-DD : HH:00")}`, this.currentRealTime = `${M.tz(M().unix() * 1e3, this.timeZoneName).clone().format("HH:mm")}`;
10937
+ const e = S(t).utc().date(), o = Math.ceil(S(t).utc().hour() / 3) * 3;
10938
+ this.currentTimestamp = ((a = S(t)) == null ? void 0 : a.utc().set({ date: e, hour: o, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3;
10939
+ const i = S.tz(this.currentTimestamp, this.timeZoneName).clone();
10940
+ this.currentDate = i.clone().format("YYYY-MM-DD"), this.currentTime = i.clone().format("HH:00"), this.currentDateTime = `${S.tz(this.currentTimestamp, this.timeZoneName).clone().format("yyyy-MM-DD : HH:00")}`, this.currentRealTime = `${S.tz(S().unix() * 1e3, this.timeZoneName).clone().format("HH:mm")}`;
10956
10941
  },
10957
10942
  handleResetMinMax() {
10958
10943
  var a, r, l, c, n;
10959
10944
  if (!this.dayAbout.h || !this.dayAbout.f)
10960
10945
  return;
10961
- const t = M().utc().date(), e = Math.ceil(M().utc().hour() / 3) * 3, o = ((a = M()) == null ? void 0 : a.utc().set({ date: t, hour: e, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, i = M.tz(o, this.timeZoneName).clone();
10962
- this.minDate = i.clone().add(this.dayAbout.h, "day").format("yyyy-MM-DD"), this.maxDate = i.clone().add(this.dayAbout.f, "day").format("yyyy-MM-DD"), this.minTimestamp = ((l = (r = M()) == null ? void 0 : r.utc()) == null ? void 0 : l.set({ date: t + this.dayAbout.h, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, this.maxTimestamp = ((n = (c = M()) == null ? void 0 : c.utc()) == null ? void 0 : n.set({ date: t + this.dayAbout.f, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, this.$emit("minTimestamp", this.minTimestamp), this.$emit("maxTimestamp", this.maxTimestamp);
10946
+ const t = S().utc().date(), e = Math.ceil(S().utc().hour() / 3) * 3, o = ((a = S()) == null ? void 0 : a.utc().set({ date: t, hour: e, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, i = S.tz(o, this.timeZoneName).clone();
10947
+ this.minDate = i.clone().add(this.dayAbout.h, "day").format("yyyy-MM-DD"), this.maxDate = i.clone().add(this.dayAbout.f, "day").format("yyyy-MM-DD"), this.minTimestamp = ((l = (r = S()) == null ? void 0 : r.utc()) == null ? void 0 : l.set({ date: t + this.dayAbout.h, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, this.maxTimestamp = ((n = (c = S()) == null ? void 0 : c.utc()) == null ? void 0 : n.set({ date: t + this.dayAbout.f, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, this.$emit("minTimestamp", this.minTimestamp), this.$emit("maxTimestamp", this.maxTimestamp);
10963
10948
  },
10964
10949
  handleOpenDatePicker() {
10965
10950
  this.showDatePicker = !this.showDatePicker, this.handleUpdateMonth();
10966
10951
  },
10967
10952
  handleUpdateMonth(t) {
10968
- const e = t || M.tz(this.currentTimestamp, this.timeZoneName).clone().month(), o = this.locale === "en" ? M.tz(this.currentTimestamp, this.timeZoneName).set({ month: e }).clone().format("MMM") : M.tz(this.currentTimestamp, this.timeZoneName).set({ month: e }).clone().format("M月");
10953
+ const e = t || S.tz(this.currentTimestamp, this.timeZoneName).clone().month(), o = this.locale === "en" ? S.tz(this.currentTimestamp, this.timeZoneName).set({ month: e }).clone().format("MMM") : S.tz(this.currentTimestamp, this.timeZoneName).set({ month: e }).clone().format("M月");
10969
10954
  this.$nextTick(() => {
10970
10955
  const i = document.querySelector(".v-date-picker-controls__month-btn");
10971
10956
  i.innerText = o;
10972
10957
  });
10973
10958
  },
10974
10959
  handleConfirmDate() {
10975
- const t = M(this.currentDate).format("yyyy-MM-DD"), e = this.currentTime, o = `${t} ${e}`, i = M.tz(o, "YYYY-MM-DD HH:00", this.timeZoneName).clone().tz(this.localTimeZoneName);
10960
+ const t = S(this.currentDate).format("yyyy-MM-DD"), e = this.currentTime, o = `${t} ${e}`, i = S.tz(o, "YYYY-MM-DD HH:00", this.timeZoneName).clone().tz(this.localTimeZoneName);
10976
10961
  this.currentTimestamp = i.unix() * 1e3, this.showDatePicker = !1;
10977
10962
  },
10978
10963
  handleCancelDate() {
10979
10964
  this.showDatePicker = !1;
10980
- const t = M.tz(this.currentTimestamp, this.timeZoneName).clone();
10965
+ const t = S.tz(this.currentTimestamp, this.timeZoneName).clone();
10981
10966
  this.currentDate = t.clone().format("YYYY-MM-DD"), this.currentTime = t.clone().format("HH:00");
10982
10967
  },
10983
10968
  handleClickOutside(t) {
@@ -11000,7 +10985,7 @@ const om = {
11000
10985
  };
11001
10986
  function lm(t, e, o, i, a, r) {
11002
10987
  const l = x("VBtn"), c = x("VDatePicker"), n = x("VDivider"), u = x("VListItemTitle"), h = x("VListItem"), b = x("VList"), w = x("VCardText"), _ = x("VCardActions"), g = x("VCard");
11003
- return y(), S("div", am, [
10988
+ return y(), M("div", am, [
11004
10989
  p(l, {
11005
10990
  text: "",
11006
10991
  height: o.height,
@@ -11043,7 +11028,7 @@ function lm(t, e, o, i, a, r) {
11043
11028
  s("div", sm, m(a.currentTime), 1),
11044
11029
  p(b, { class: "pa-0 flex-1-1-0" }, {
11045
11030
  default: f(() => [
11046
- (y(!0), S(be, null, we(r.hourOptions, (P, T) => (y(), R(h, {
11031
+ (y(!0), M(be, null, we(r.hourOptions, (P, T) => (y(), R(h, {
11047
11032
  key: T,
11048
11033
  value: P,
11049
11034
  color: "primary",
@@ -11208,20 +11193,20 @@ const nm = {
11208
11193
  },
11209
11194
  computed: {
11210
11195
  timeZoneNames() {
11211
- return M.tz.names();
11196
+ return S.tz.names();
11212
11197
  },
11213
11198
  timeZoneName() {
11214
11199
  var t;
11215
- return (t = this.timeZoneNames.filter((e) => M.tz(M(), e).utcOffset() === this.timeZone * 60)) == null ? void 0 : t[0];
11200
+ return (t = this.timeZoneNames.filter((e) => S.tz(S(), e).utcOffset() === this.timeZone * 60)) == null ? void 0 : t[0];
11216
11201
  },
11217
11202
  computedTzTime() {
11218
- return (t) => M.tz(M(t), this.timeZoneName).clone().format("YYYY-MM-DD HHmm") + " (UTC " + (this.timeZone >= 0 ? "+" : "") + this.timeZone + ")";
11203
+ return (t) => S.tz(S(t), this.timeZoneName).clone().format("YYYY-MM-DD HHmm") + " (UTC " + (this.timeZone >= 0 ? "+" : "") + this.timeZone + ")";
11219
11204
  },
11220
11205
  computedLocalTime() {
11221
11206
  return (t) => {
11222
11207
  var i, a, r;
11223
- const e = Number((i = this.positionOffset) == null ? void 0 : i.slice(1, 3)) * (+(((a = this.positionOffset) == null ? void 0 : a.slice(1)) === "+") ? 1 : -1), o = (r = this.timeZoneNames.filter((l) => M.tz(M(), l).utcOffset() === e * 60)) == null ? void 0 : r[0];
11224
- return t ? M.tz(M(t), o).clone().format("YYYY-MM-DD HHmm") + " (UTC " + (e >= 0 ? "+" : "") + e + ")" : "-";
11208
+ const e = Number((i = this.positionOffset) == null ? void 0 : i.slice(1, 3)) * (+(((a = this.positionOffset) == null ? void 0 : a.slice(1)) === "+") ? 1 : -1), o = (r = this.timeZoneNames.filter((l) => S.tz(S(), l).utcOffset() === e * 60)) == null ? void 0 : r[0];
11209
+ return t ? S.tz(S(t), o).clone().format("YYYY-MM-DD HHmm") + " (UTC " + (e >= 0 ? "+" : "") + e + ")" : "-";
11225
11210
  };
11226
11211
  },
11227
11212
  computePosition() {
@@ -11289,8 +11274,8 @@ const nm = {
11289
11274
  var e;
11290
11275
  if (t != null && t.valid) {
11291
11276
  this.form.lat = (Number(this.form.latDegree ?? 0) + Number(this.form.latMinute ?? 0) / 60) * (this.form.latDirection === "N" ? 1 : -1), this.form.lng = (Number(this.form.lngDegree ?? 0) + Number(this.form.lngMinute ?? 0) / 60) * (this.form.lngDirection === "E" ? 1 : -1);
11292
- const o = M();
11293
- ((e = M(this.realTime)) == null ? void 0 : e.diff(o, "d", !0)) >= 0 ? await this.fetchMeteoData(this.form) : await this.fetchHistoryData(this.form);
11277
+ const o = S();
11278
+ ((e = S(this.realTime)) == null ? void 0 : e.diff(o, "d", !0)) >= 0 ? await this.fetchMeteoData(this.form) : await this.fetchHistoryData(this.form);
11294
11279
  }
11295
11280
  });
11296
11281
  },
@@ -11318,7 +11303,7 @@ const nm = {
11318
11303
  let i = {
11319
11304
  lat: t.lat,
11320
11305
  lng: t.lng,
11321
- datetime: M(t.dateTime).utc().format(),
11306
+ datetime: S(t.dateTime).utc().format(),
11322
11307
  forecastDays: t.day ?? 7,
11323
11308
  weatherModels: e,
11324
11309
  marineModels: o
@@ -11338,7 +11323,7 @@ const nm = {
11338
11323
  const { weatherModels: e, marineModels: o } = Co.autoPickMeteoModel(t.forecastModel), i = {
11339
11324
  lat: t.lat,
11340
11325
  lng: t.lng,
11341
- datetime: M(t.dateTime).utc().format(),
11326
+ datetime: S(t.dateTime).utc().format(),
11342
11327
  forecastDays: 3,
11343
11328
  pastDays: 1,
11344
11329
  weatherModels: e,
@@ -11351,10 +11336,10 @@ const nm = {
11351
11336
  (a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.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;
11352
11337
  },
11353
11338
  initTableData(t) {
11354
- var o, i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee, J, $, ne, se, Q, ae, he, ce, pe, ge, F, me, xe;
11339
+ var o, i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee, J, $, ne, se, Q, ae, he, ce, pe, ge, F, me, ve;
11355
11340
  this.currentHourData = {}, this.positionGmt = (i = (o = t == null ? void 0 : t.weather) == null ? void 0 : o[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (a = t == null ? void 0 : t.weather) == null ? void 0 : a[0]) == null ? void 0 : r.offset;
11356
- const e = ((l = Co.pickHourly(t, M(this.form.dateTime))) == null ? void 0 : l[0]) || {};
11357
- 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((u = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : u.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((b = (h = e == null ? void 0 : e.weather) == null ? void 0 : h.precip) == null ? void 0 : b.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((g = (_ = e == null ? void 0 : e.weather) == null ? void 0 : _.wind) == null ? void 0 : g.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : T.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((I = (O = e == null ? void 0 : e.weather) == null ? void 0 : O.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((z = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : z.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((C = (v = e == null ? void 0 : e.wave) == null ? void 0 : v.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (A = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : A.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((V = (N = e == null ? void 0 : e.wave) == null ? void 0 : N.sig) == null ? void 0 : V.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((W = (Z = e == null ? void 0 : e.wave) == null ? void 0 : Z.wd) == null ? void 0 : W.height, 1) ?? "-", this.currentHourData.windwaveDir = (J = (ee = e == null ? void 0 : e.wave) == null ? void 0 : ee.wd) == null ? void 0 : J.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((ne = ($ = e == null ? void 0 : e.wave) == null ? void 0 : $.wd) == null ? void 0 : ne.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((Q = (se = e == null ? void 0 : e.wave) == null ? void 0 : se.swell) == null ? void 0 : Q.height, 1) ?? "-", this.currentHourData.swellDir = (he = (ae = e == null ? void 0 : e.wave) == null ? void 0 : ae.swell) == null ? void 0 : he.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((pe = (ce = e == null ? void 0 : e.wave) == null ? void 0 : ce.swell) == null ? void 0 : pe.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ge = e == null ? void 0 : e.current) == null ? void 0 : ge.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((me = e == null ? void 0 : e.current) == null ? void 0 : me.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;
11341
+ const e = ((l = Co.pickHourly(t, S(this.form.dateTime))) == null ? void 0 : l[0]) || {};
11342
+ 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((u = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : u.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((b = (h = e == null ? void 0 : e.weather) == null ? void 0 : h.precip) == null ? void 0 : b.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((g = (_ = e == null ? void 0 : e.weather) == null ? void 0 : _.wind) == null ? void 0 : g.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : T.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((I = (O = e == null ? void 0 : e.weather) == null ? void 0 : O.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((z = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : z.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((C = (v = e == null ? void 0 : e.wave) == null ? void 0 : v.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (A = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : A.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((V = (N = e == null ? void 0 : e.wave) == null ? void 0 : N.sig) == null ? void 0 : V.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((W = (Z = e == null ? void 0 : e.wave) == null ? void 0 : Z.wd) == null ? void 0 : W.height, 1) ?? "-", this.currentHourData.windwaveDir = (J = (ee = e == null ? void 0 : e.wave) == null ? void 0 : ee.wd) == null ? void 0 : J.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((ne = ($ = e == null ? void 0 : e.wave) == null ? void 0 : $.wd) == null ? void 0 : ne.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((Q = (se = e == null ? void 0 : e.wave) == null ? void 0 : se.swell) == null ? void 0 : Q.height, 1) ?? "-", this.currentHourData.swellDir = (he = (ae = e == null ? void 0 : e.wave) == null ? void 0 : ae.swell) == null ? void 0 : he.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((pe = (ce = e == null ? void 0 : e.wave) == null ? void 0 : ce.swell) == null ? void 0 : pe.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ge = e == null ? void 0 : e.current) == null ? void 0 : ge.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((me = e == null ? void 0 : e.current) == null ? void 0 : me.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 = (ve = e == null ? void 0 : e.weather) == null ? void 0 : ve.url;
11358
11343
  },
11359
11344
  handleBind() {
11360
11345
  var t, e;
@@ -11380,9 +11365,9 @@ const nm = {
11380
11365
  var i, a, r;
11381
11366
  (i = this.positionMarker) == null || i.remove();
11382
11367
  const e = (a = document.getElementById("idm-position-icon")) == null ? void 0 : a.cloneNode(!0);
11383
- this.positionMarker = new ve.Marker(e).setLngLat(t).setOffset([0, -15]).addTo(this.map);
11368
+ this.positionMarker = new xe.Marker(e).setLngLat(t).setOffset([0, -15]).addTo(this.map);
11384
11369
  const o = document.getElementById("idm-gl4-spot-meteo");
11385
- this.meteoInfoMarker ? (r = this.meteoInfoMarker) == null || r.setLngLat(t) : this.meteoInfoMarker = new ve.Marker(o).setLngLat(t).setOffset([0, -190]).addTo(this.map);
11370
+ this.meteoInfoMarker ? (r = this.meteoInfoMarker) == null || r.setLngLat(t) : this.meteoInfoMarker = new xe.Marker(o).setLngLat(t).setOffset([0, -190]).addTo(this.map);
11386
11371
  }));
11387
11372
  },
11388
11373
  handleMeteoMore() {
@@ -11464,7 +11449,7 @@ const nm = {
11464
11449
  }, qm = ["xlink:href"];
11465
11450
  function Xm(t, e, o, i, a, r) {
11466
11451
  const l = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), u = x("VDivider"), h = x("VTextField"), b = x("VCol"), w = x("VRow"), _ = x("DateTimePicker"), g = x("VBtnToggle"), P = x("VCardText"), T = x("VCardActions"), O = x("VForm"), I = x("VCard"), L = x("VIcon");
11467
- return y(), S("div", cm, [
11452
+ return y(), M("div", cm, [
11468
11453
  s("div", {
11469
11454
  class: "menu-bar-box transition pa-1",
11470
11455
  style: ie({ top: o.top + 174 + "px", right: a.right + "px" })
@@ -11529,7 +11514,7 @@ function Xm(t, e, o, i, a, r) {
11529
11514
  p(P, { class: "text-body-1 py-1" }, {
11530
11515
  default: f(() => [
11531
11516
  s("div", hm, [
11532
- (y(), S("svg", pm, [
11517
+ (y(), M("svg", pm, [
11533
11518
  s("use", {
11534
11519
  "xlink:href": `#icon-lng-${o.theme}`
11535
11520
  }, null, 8, um)
@@ -11606,7 +11591,7 @@ function Xm(t, e, o, i, a, r) {
11606
11591
  _: 1
11607
11592
  }),
11608
11593
  s("div", gm, [
11609
- (y(), S("svg", fm, [
11594
+ (y(), M("svg", fm, [
11610
11595
  s("use", {
11611
11596
  "xlink:href": `#icon-lng-${o.theme}`
11612
11597
  }, null, 8, ym)
@@ -11686,7 +11671,7 @@ function Xm(t, e, o, i, a, r) {
11686
11671
  _: 1
11687
11672
  }),
11688
11673
  s("div", bm, [
11689
- (y(), S("svg", wm, [
11674
+ (y(), M("svg", wm, [
11690
11675
  s("use", {
11691
11676
  "xlink:href": `#icon-date-time-${o.theme}`
11692
11677
  }, null, 8, xm)
@@ -11713,7 +11698,7 @@ function Xm(t, e, o, i, a, r) {
11713
11698
  _: 1
11714
11699
  }),
11715
11700
  s("div", vm, [
11716
- (y(), S("svg", _m, [
11701
+ (y(), M("svg", _m, [
11717
11702
  s("use", {
11718
11703
  "xlink:href": `#icon-forecast-model-${o.theme}`
11719
11704
  }, null, 8, km)
@@ -11948,7 +11933,7 @@ function Xm(t, e, o, i, a, r) {
11948
11933
  _: 1
11949
11934
  })) : D("", !0),
11950
11935
  Ue(s("div", Zm, [
11951
- (y(), S("svg", Ym, [
11936
+ (y(), M("svg", Ym, [
11952
11937
  s("use", {
11953
11938
  "xlink:href": `#icon-spot-${o.theme}`
11954
11939
  }, null, 8, qm)
@@ -12094,7 +12079,7 @@ const Km = {
12094
12079
  const c = this.geojson.filter((n) => n.id === e.split("-")[0])[0].features.filter((n) => n.geometry.type === "Point");
12095
12080
  if (c.length > 2 && c.filter((u) => u.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
12096
12081
  const u = document.createElement("div");
12097
- u.className = "idm-gl4-measure-contextmenu-marker", u.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new ve.Marker(u).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
12082
+ u.className = "idm-gl4-measure-contextmenu-marker", u.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new xe.Marker(u).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
12098
12083
  }
12099
12084
  }
12100
12085
  },
@@ -12216,7 +12201,7 @@ const Km = {
12216
12201
  this.tipMarker._element.innerHTML = c, this.tipMarker.setLngLat([o.lng, o.lat]);
12217
12202
  else {
12218
12203
  const n = document.createElement("div");
12219
- n.className = "idm-gl4-measure-tip-marker", n.innerHTML = c, this.tipMarker = new ve.Marker(n).setOffset([140, 0]).setLngLat([o.lng, o.lat]).addTo(this.map);
12204
+ n.className = "idm-gl4-measure-tip-marker", n.innerHTML = c, this.tipMarker = new xe.Marker(n).setOffset([140, 0]).setLngLat([o.lng, o.lat]).addTo(this.map);
12220
12205
  }
12221
12206
  },
12222
12207
  handleMove(t) {
@@ -12292,12 +12277,12 @@ const Km = {
12292
12277
  for (const c of l) {
12293
12278
  const n = document.createElement("div");
12294
12279
  n.id = `${t.id}-${c.properties.id}`, n.className = `${t.closed ? "idm-gl4-measure-marker closed" : "idm-gl4-measure-marker"}`, n.innerHTML = '<div class="marker-circle"></div>';
12295
- const u = new ve.Marker({ element: n, draggable: !0, contextmenu: !0 }).setLngLat(c.geometry.coordinates).addTo(this.map);
12280
+ const u = new xe.Marker({ element: n, draggable: !0, contextmenu: !0 }).setLngLat(c.geometry.coordinates).addTo(this.map);
12296
12281
  u.on("drag", this.handleDrag), u.on("dragend", this.handleDragEnd), this.pointMarkers[t.id] ? this.pointMarkers[t.id].push(u) : this.pointMarkers[t.id] = [u];
12297
12282
  }
12298
12283
  if (t.closed) {
12299
12284
  const c = l.at(-1), u = t.features.filter((b) => b.geometry.type === "LineString").at(-1), h = document.createElement("div");
12300
- h.className = "idm-gl4-measure-summary-marker", h.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${u.properties.name}</div>`, this.closeMarkers[t.id] = new ve.Marker(h).setOffset([0, -30]).setLngLat(c.geometry.coordinates).addTo(this.map);
12285
+ h.className = "idm-gl4-measure-summary-marker", h.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${u.properties.name}</div>`, this.closeMarkers[t.id] = new xe.Marker(h).setOffset([0, -30]).setLngLat(c.geometry.coordinates).addTo(this.map);
12301
12286
  }
12302
12287
  }
12303
12288
  },
@@ -12312,7 +12297,7 @@ const Km = {
12312
12297
  }, Jm = { class: "idm-gl4-measure" };
12313
12298
  function Qm(t, e, o, i, a, r) {
12314
12299
  const l = x("VBtn"), c = x("VTooltip");
12315
- return y(), S("div", Jm, [
12300
+ return y(), M("div", Jm, [
12316
12301
  s("div", {
12317
12302
  class: "menu-bar-box transition pa-1",
12318
12303
  style: ie({ top: o.top + 214 + "px", right: a.right + "px" })
@@ -12380,7 +12365,7 @@ const td = {
12380
12365
  //hour
12381
12366
  intervalOptions: [3, 6, 12, 24],
12382
12367
  showTimezone: !1,
12383
- timeZone: localStorage.getItem("idm-timeZone-gl4") ? Number(localStorage.getItem("idm-timeZone-gl4")) : M().utcOffset() / 60,
12368
+ timeZone: localStorage.getItem("idm-timeZone-gl4") ? Number(localStorage.getItem("idm-timeZone-gl4")) : S().utcOffset() / 60,
12384
12369
  offsets: [-12, -11, -10, -9, -8, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
12385
12370
  source: localStorage.getItem("forecastModelCacheGL4") === "undefined" ? "ECMWF" : localStorage.getItem("forecastModelCacheGL4")
12386
12371
  };
@@ -12412,7 +12397,7 @@ const td = {
12412
12397
  },
12413
12398
  currentTimestamp: {
12414
12399
  handler() {
12415
- this.currentDateTimeZ = M(this.currentTimestamp).utc().format("yyyy-MM-DD HH:00[Z]"), this.$emit("realTime", this.currentDateTimeZ), this.currentDateTime = `${M.tz(this.currentTimestamp, this.timeZoneName).clone().format("yyyy-MM-DD : HH:00")}`;
12400
+ this.currentDateTimeZ = S(this.currentTimestamp).utc().format("yyyy-MM-DD HH:00[Z]"), this.$emit("realTime", this.currentDateTimeZ), this.currentDateTime = `${S.tz(this.currentTimestamp, this.timeZoneName).clone().format("yyyy-MM-DD : HH:00")}`;
12416
12401
  },
12417
12402
  immediate: !0
12418
12403
  },
@@ -12473,7 +12458,7 @@ const td = {
12473
12458
  }, nd = ["onClick"], cd = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, md = { class: "text-body-1" };
12474
12459
  function dd(t, e, o, i, a, r) {
12475
12460
  const l = x("DateTimePicker"), c = x("VListItemTitle"), n = x("VListItem"), u = x("VList"), h = x("VMenu"), b = x("VBtn"), w = x("VDivider"), _ = x("VTooltip");
12476
- return y(), S("div", od, [
12461
+ return y(), M("div", od, [
12477
12462
  s("div", {
12478
12463
  class: "timeline-box px-2 d-flex justify-start align-center rounded",
12479
12464
  style: ie({ right: a.right + 146 + "px", bottom: Object.values(a.show).includes(!0) ? "10px" : "-100px" })
@@ -12503,7 +12488,7 @@ function dd(t, e, o, i, a, r) {
12503
12488
  default: f(() => [
12504
12489
  p(u, { class: "pa-1" }, {
12505
12490
  default: f(() => [
12506
- (y(!0), S(be, null, we(a.intervalOptions, (g, P) => (y(), R(n, {
12491
+ (y(!0), M(be, null, we(a.intervalOptions, (g, P) => (y(), R(n, {
12507
12492
  key: P,
12508
12493
  value: g,
12509
12494
  variant: a.intervalHour === g ? "tonal" : "text",
@@ -12752,8 +12737,8 @@ function dd(t, e, o, i, a, r) {
12752
12737
  class: "timezone-box d-flex flex-column justify-space-between align-end",
12753
12738
  style: ie({ right: a.right + "px" })
12754
12739
  }, [
12755
- a.showTimezone ? (y(), S("div", ld, [
12756
- (y(!0), S(be, null, we(a.offsets, (g) => (y(), S("div", {
12740
+ a.showTimezone ? (y(), M("div", ld, [
12741
+ (y(!0), M(be, null, we(a.offsets, (g) => (y(), M("div", {
12757
12742
  key: g,
12758
12743
  class: "item rounded text-body-2 hover-active",
12759
12744
  onClick: (P) => a.timeZone = g
@@ -12843,7 +12828,7 @@ const hd = /* @__PURE__ */ Y(td, [["render", dd]]), pd = {
12843
12828
  };
12844
12829
  function gd(t, e, o, i, a, r) {
12845
12830
  const l = x("IdmOtherLayer"), c = x("IdmWeatherLayer"), n = x("IdmTropicals"), u = x("IdmMeasure"), h = x("IdmSpot"), b = x("IdmBottomBar");
12846
- return y(), S("div", ud, [
12831
+ return y(), M("div", ud, [
12847
12832
  p(l, B({
12848
12833
  ref: "idmOtherLayers",
12849
12834
  token: o.token,
@@ -12917,7 +12902,7 @@ class yd {
12917
12902
  de(this, "hi");
12918
12903
  de(this, "td");
12919
12904
  de(this, "windy");
12920
- var o, i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee, J, $, ne, se, Q, ae, he, ce, pe, ge, F, me, xe, Le, Pe, De, Ae, Re, _e, G, te, He, Me, ue, fe, U, Ce, oe, re, Oe, j, ye, Ie, Be, Ee, E, q, Ve, Ze, Ye, Te, qe, Xe, $e, Ke, Je, Qe, et, tt, ot, at, it, rt, st, lt, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, Mt, It, Dt, At, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Gt, Ut, Wt, Vt, Zt, Yt, qt, Xt, Kt, Jt, Qt, eo, to, oo, ao, io, ro, so, lo, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Ao, Ro, Oo, Bo, Eo, jo, No, Fo, Ho, Go, Uo, Wo, Vo, Zo, Yo, qo, Xo, $o, Ko, Jo, Qo, ea, ta, oa, aa, ia, ra, sa, la, na, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ma, Ia, Da, Aa, Ra, Oa, Ba, Ea, ja, Na, Fa, Ha, Ga, Ua, Wa;
12905
+ var o, i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee, J, $, ne, se, Q, ae, he, ce, pe, ge, F, me, ve, Le, Pe, De, Ae, Re, _e, G, te, He, Me, ue, fe, U, Ce, oe, re, Oe, j, ye, Ie, Be, Ee, E, q, Ve, Ze, Ye, Te, qe, Xe, $e, Ke, Je, Qe, et, tt, ot, at, it, rt, st, lt, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, Mt, It, Dt, At, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Gt, Ut, Wt, Vt, Zt, Yt, qt, Xt, Kt, Jt, Qt, eo, to, oo, ao, io, ro, so, lo, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Ao, Ro, Oo, Bo, Eo, jo, No, Fo, Ho, Go, Uo, Wo, Vo, Zo, Yo, qo, Xo, $o, Ko, Jo, Qo, ea, ta, oa, aa, ia, ra, sa, la, na, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ma, Ia, Da, Aa, Ra, Oa, Ba, Ea, ja, Na, Fa, Ha, Ga, Ua, Wa;
12921
12906
  this.i4 = {
12922
12907
  source: {
12923
12908
  type: "raster",
@@ -31578,7 +31563,7 @@ class yd {
31578
31563
  (ce = (he = this.originStyle) == null ? void 0 : he.light.layers) == null ? void 0 : ce.find((d) => d.id === "china-route-line"),
31579
31564
  (ge = (pe = this.originStyle) == null ? void 0 : pe.light.layers) == null ? void 0 : ge.find((d) => d.id === "china-route-fill"),
31580
31565
  (me = (F = this.originStyle) == null ? void 0 : F.light.layers) == null ? void 0 : me.find((d) => d.id === "china-route-label"),
31581
- (Le = (xe = this.originStyle) == null ? void 0 : xe.light.layers) == null ? void 0 : Le.find((d) => d.id === "admin-0-boundary-bg"),
31566
+ (Le = (ve = this.originStyle) == null ? void 0 : ve.light.layers) == null ? void 0 : Le.find((d) => d.id === "admin-0-boundary-bg"),
31582
31567
  (De = (Pe = this.originStyle) == null ? void 0 : Pe.light.layers) == null ? void 0 : De.find((d) => d.id === "admin-0-boundary"),
31583
31568
  (Re = (Ae = this.originStyle) == null ? void 0 : Ae.light.layers) == null ? void 0 : Re.find((d) => d.id === "admin-0-boundary-disputed"),
31584
31569
  (G = (_e = this.originStyle) == null ? void 0 : _e.light.layers) == null ? void 0 : G.find((d) => d.id === "country-label"),
@@ -31835,8 +31820,8 @@ const bd = {
31835
31820
  },
31836
31821
  methods: {
31837
31822
  async initOnlineMap() {
31838
- this.helper = new yd(this.token), ve.accessToken = "pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";
31839
- const t = new ve.Map({
31823
+ this.helper = new yd(this.token), xe.accessToken = "pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";
31824
+ const t = new xe.Map({
31840
31825
  container: "map",
31841
31826
  // style: 'mapbox://styles/neatchenheng/cmd894dwn036m01rf7anc0k0d', //light
31842
31827
  // style: 'mapbox://styles/neatchenheng/cmdqwez32005b01re2w0k3zk4', // dark
@@ -31863,7 +31848,7 @@ const bd = {
31863
31848
  },
31864
31849
  addScaleControl() {
31865
31850
  var e;
31866
- this.map.addControl(new ve.ScaleControl({ maxWidth: 120, unit: "nautical" }), "bottom-left");
31851
+ this.map.addControl(new xe.ScaleControl({ maxWidth: 120, unit: "nautical" }), "bottom-left");
31867
31852
  const t = (e = document.getElementsByClassName("mapboxgl-ctrl-scale")) == null ? void 0 : e[0];
31868
31853
  t && (t.className = "mapboxgl-ctrl-scale " + this.mapFeather);
31869
31854
  },
@@ -31879,7 +31864,7 @@ const bd = {
31879
31864
  }, wd = { class: "mapbox-initial-gl4" }, xd = { class: "v-btn--variant-elevated rounded" }, vd = { class: "zoom" }, _d = { class: "position-absolute left-0 bottom-0 ma-2 my-1 text-caption text-label opacity-70" };
31880
31865
  function kd(t, e, o, i, a, r) {
31881
31866
  const l = x("VBtn");
31882
- return y(), S("div", wd, [
31867
+ return y(), M("div", wd, [
31883
31868
  e[5] || (e[5] = s("div", { id: "map" }, null, -1)),
31884
31869
  s("div", {
31885
31870
  class: "menu-bar-box transition px-1 rounded d-flex flex-column",
@@ -31976,14 +31961,14 @@ const Ld = {
31976
31961
  },
31977
31962
  computed: {
31978
31963
  currentYear() {
31979
- return M(this.dateRange[0]).format("YYYY");
31964
+ return S(this.dateRange[0]).format("YYYY");
31980
31965
  },
31981
31966
  timeZoneNames() {
31982
- return M.tz.names();
31967
+ return S.tz.names();
31983
31968
  },
31984
31969
  timeZoneName() {
31985
31970
  var t;
31986
- return (t = this.timeZoneNames.filter((e) => M.tz(M(), e).utcOffset() === this.timeZone * 60)) == null ? void 0 : t[0];
31971
+ return (t = this.timeZoneNames.filter((e) => S.tz(S(), e).utcOffset() === this.timeZone * 60)) == null ? void 0 : t[0];
31987
31972
  },
31988
31973
  utcTimeZoneName() {
31989
31974
  return "Africa/Abidjan";
@@ -31996,7 +31981,7 @@ const Ld = {
31996
31981
  var i, a;
31997
31982
  if (t) {
31998
31983
  const r = e || 0;
31999
- return (a = (i = M(t)) == null ? void 0 : i.utcOffset(r)) == null ? void 0 : a.format(o);
31984
+ return (a = (i = S(t)) == null ? void 0 : i.utcOffset(r)) == null ? void 0 : a.format(o);
32000
31985
  }
32001
31986
  return "-";
32002
31987
  };
@@ -32033,8 +32018,8 @@ const Ld = {
32033
32018
  handleResetDateRange() {
32034
32019
  var r, l, c;
32035
32020
  let t, e;
32036
- (r = this.defaultRange) != null && r.length ? (t = this.defaultRange[0], e = (l = M(M(this.defaultRange[1]).set({ hour: 23, minute: 59, second: 59, millisecond: 59 }))) == null ? void 0 : l.diff(M(this.defaultRange[0]).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }), "d", !0)) : e = this.defaultDays;
32037
- const o = M.tz(t, this.timeZoneName).clone(), i = [];
32021
+ (r = this.defaultRange) != null && r.length ? (t = this.defaultRange[0], e = (l = S(S(this.defaultRange[1]).set({ hour: 23, minute: 59, second: 59, millisecond: 59 }))) == null ? void 0 : l.diff(S(this.defaultRange[0]).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }), "d", !0)) : e = this.defaultDays;
32022
+ const o = S.tz(t, this.timeZoneName).clone(), i = [];
32038
32023
  if (e < 0)
32039
32024
  for (let n = e + 1; n <= 0; n++)
32040
32025
  i.push(o.clone().add(n, "days").format());
@@ -32043,23 +32028,23 @@ const Ld = {
32043
32028
  i.push(o.clone().add(n, "days").format());
32044
32029
  this.dateRange = i;
32045
32030
  const a = [this.dateRange[0], this.dateRange[((c = this.dateRange) == null ? void 0 : c.length) - 1]];
32046
- this.dateRangeStr = `${M.tz(a[0], this.timeZoneName).format("yyyy-MM-DD")} ~ ${M.tz(a[1], this.timeZoneName).format("yyyy-MM-DD")}`, this.$emit(
32031
+ this.dateRangeStr = `${S.tz(a[0], this.timeZoneName).format("yyyy-MM-DD")} ~ ${S.tz(a[1], this.timeZoneName).format("yyyy-MM-DD")}`, this.$emit(
32047
32032
  "dateRange",
32048
32033
  [
32049
- M.tz(a[0], this.timeZoneName).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(),
32050
- M.tz(a[1], this.timeZoneName).set({ hour: 23, minute: 59, second: 59, millisecond: 59 }).format()
32034
+ S.tz(a[0], this.timeZoneName).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(),
32035
+ S.tz(a[1], this.timeZoneName).set({ hour: 23, minute: 59, second: 59, millisecond: 59 }).format()
32051
32036
  ]
32052
32037
  );
32053
32038
  },
32054
32039
  handleResetMinMax() {
32055
- const t = M.tz(M().format(), this.timeZoneName).clone(), { h: e, f: o } = this.dayAbout;
32040
+ const t = S.tz(S().format(), this.timeZoneName).clone(), { h: e, f: o } = this.dayAbout;
32056
32041
  e != null && typeof Number(e) == "number" && !isNaN(e) && (this.minDate = t.clone().add(e, "day").format("yyyy-MM-DD")), o != null && typeof Number(o) == "number" && !isNaN(o) && (this.maxDate = t.clone().add(o, "day").format("yyyy-MM-DD"));
32057
32042
  },
32058
32043
  handleOpenDatePicker() {
32059
32044
  this.showDatePicker = !this.showDatePicker, this.handleUpdateMonth();
32060
32045
  },
32061
32046
  handleUpdateMonth(t) {
32062
- const e = t || M.tz(this.dateRange[0], this.timeZoneName).clone().month(), o = this.locale === "en" ? M.tz(this.dateRange[0], this.timeZoneName).set({ month: e }).clone().format("MMM") : M.tz(this.dateRange[0], this.timeZoneName).set({ month: e }).clone().format("M月");
32047
+ const e = t || S.tz(this.dateRange[0], this.timeZoneName).clone().month(), o = this.locale === "en" ? S.tz(this.dateRange[0], this.timeZoneName).set({ month: e }).clone().format("MMM") : S.tz(this.dateRange[0], this.timeZoneName).set({ month: e }).clone().format("M月");
32063
32048
  this.$nextTick(() => {
32064
32049
  const i = document.querySelector(".v-date-picker-controls__month-btn");
32065
32050
  i.innerText = o;
@@ -32068,11 +32053,11 @@ const Ld = {
32068
32053
  handleConfirmDate() {
32069
32054
  var e;
32070
32055
  const t = [this.dateRange[0], this.dateRange[((e = this.dateRange) == null ? void 0 : e.length) - 1]];
32071
- this.dateRangeStr = `${M(t[0]).format("yyyy-MM-DD")} ~ ${M(t[1]).format("yyyy-MM-DD")}`, this.$emit(
32056
+ this.dateRangeStr = `${S(t[0]).format("yyyy-MM-DD")} ~ ${S(t[1]).format("yyyy-MM-DD")}`, this.$emit(
32072
32057
  "dateRange",
32073
32058
  [
32074
- M.tz(t[0], this.timeZoneName).set({ year: M(t[0]).year(), month: M(t[0]).month(), date: M(t[0]).date(), hour: 0, minute: 0, second: 0, millisecond: 0 }).format(),
32075
- M.tz(t[1], this.timeZoneName).set({ year: M(t[1]).year(), month: M(t[1]).month(), date: M(t[1]).date(), hour: 23, minute: 59, second: 59, millisecond: 59 }).format()
32059
+ S.tz(t[0], this.timeZoneName).set({ year: S(t[0]).year(), month: S(t[0]).month(), date: S(t[0]).date(), hour: 0, minute: 0, second: 0, millisecond: 0 }).format(),
32060
+ S.tz(t[1], this.timeZoneName).set({ year: S(t[1]).year(), month: S(t[1]).month(), date: S(t[1]).date(), hour: 23, minute: 59, second: 59, millisecond: 59 }).format()
32076
32061
  ]
32077
32062
  ), this.showDatePicker = !1;
32078
32063
  },
@@ -32090,7 +32075,7 @@ const Ld = {
32090
32075
  }, Cd = { class: "pa-0" };
32091
32076
  function Td(t, e, o, i, a, r) {
32092
32077
  const l = x("VBtn"), c = x("VDatePicker"), n = x("VCardText"), u = x("VDivider"), h = x("VCardActions"), b = x("VCard");
32093
- return y(), S("div", Pd, [
32078
+ return y(), M("div", Pd, [
32094
32079
  p(l, {
32095
32080
  text: "",
32096
32081
  height: o.height,