@idmwx/idmui-gl4 1.2.7 → 1.2.9

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
@@ -1,16 +1,16 @@
1
1
  var Xo = Object.defineProperty;
2
2
  var $o = (t, e, a) => e in t ? Xo(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
3
- var me = (t, e, a) => ($o(t, typeof e != "symbol" ? e + "" : e, a), a);
3
+ var de = (t, e, a) => ($o(t, typeof e != "symbol" ? e + "" : e, a), a);
4
4
  import Se from "axios";
5
5
  import { useTheme as ze } from "vuetify";
6
- import { openBlock as b, createElementBlock as S, resolveComponent as x, createBlock as A, withCtx as u, createVNode as d, withModifiers as qe, createElementVNode as l, createCommentVNode as D, normalizeClass as He, toDisplayString as h, createTextVNode as j, Fragment as be, renderList as we, withDirectives as Ue, vShow as We, mergeProps as B, normalizeStyle as ie } from "vue";
6
+ import { openBlock as b, createElementBlock as S, resolveComponent as x, createBlock as A, withCtx as u, createVNode as d, withModifiers as qe, createElementVNode as l, createCommentVNode as D, normalizeClass as He, toDisplayString as h, createTextVNode as j, Fragment as be, renderList as we, withDirectives as Ue, vShow as We, mergeProps as O, normalizeStyle as ie } from "vue";
7
7
  import ve from "mapbox-gl";
8
8
  import { LngLatHelper as $, TropicalHelper as Vo, LaneHelper as Fe } from "@idm-plugin/geo";
9
9
  import M from "moment";
10
10
  import { Meteo2Assist as oa, TidesAssist as qo } from "@idm-plugin/meteo";
11
11
  import * as ra from "echarts";
12
- import * as H from "@turf/turf";
13
- import { LayerHelper as ia, CompanyHelper as Qo } from "@idm-plugin/tag-nop";
12
+ import * as U from "@turf/turf";
13
+ import { LayerHelper as ia, CompanyHelper as Qo } from "@idm-plugin/tag2";
14
14
  import Jo from "@mapbox/sphericalmercator";
15
15
  import { LayerHelper as ei } from "@idm-plugin/tag";
16
16
  const q = (t, e) => {
@@ -1485,10 +1485,10 @@ const ui = {
1485
1485
  { label: "Swell", key: "weather.swell", unit: "m" },
1486
1486
  { label: "Current", key: "weather.current", unit: "kts" }
1487
1487
  ], (a = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || a.dateTimeList.forEach((i, o) => {
1488
- var c, n, g, p, f, w, v, y, k, T, R, I, P, _, z, C, L, O, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe, Le, Pe;
1488
+ var c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q, re, he, pe, ne, X, oe, ue, ce, F, me, xe, Le, Pe;
1489
1489
  let r = {};
1490
1490
  const s = ((c = oa.pickHourly(t, M(i))) == null ? void 0 : c[0]) || {};
1491
- r.utc = s.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = s.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((g = s == null ? void 0 : s.weather) == null ? void 0 : g.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((f = (p = s == null ? void 0 : s.weather) == null ? void 0 : p.precip) == null ? void 0 : f.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((v = (w = s == null ? void 0 : s.weather) == null ? void 0 : w.precip) == null ? void 0 : v.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((y = s == null ? void 0 : s.weather) == null ? void 0 : y.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (k = s == null ? void 0 : s.weather) == null ? void 0 : k.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (I = (R = s == null ? void 0 : s.weather) == null ? void 0 : R.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((_ = (P = s == null ? void 0 : s.weather) == null ? void 0 : P.wind) == null ? void 0 : _.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((C = (z = s == null ? void 0 : s.weather) == null ? void 0 : z.wind) == null ? void 0 : C.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((O = (L = s == null ? void 0 : s.wave) == null ? void 0 : L.sig) == null ? void 0 : O.height, 1) ?? "-", r.sigwaveDir = (Y = (G = s == null ? void 0 : s.wave) == null ? void 0 : G.sig) == null ? void 0 : Y.direction, r.sigwavePeriod = this.computeRoundPrecision((V = (K = s == null ? void 0 : s.wave) == null ? void 0 : K.sig) == null ? void 0 : V.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((ee = (J = s == null ? void 0 : s.wave) == null ? void 0 : J.wd) == null ? void 0 : ee.height, 1) ?? "-", r.windwaveDir = (re = (Q = s == null ? void 0 : s.wave) == null ? void 0 : Q.wd) == null ? void 0 : re.direction, r.windwavePeriod = this.computeRoundPrecision((pe = (de = s == null ? void 0 : s.wave) == null ? void 0 : de.wd) == null ? void 0 : pe.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((X = (se = s == null ? void 0 : s.wave) == null ? void 0 : se.swell) == null ? void 0 : X.height, 1) ?? "-", r.swellDir = (ue = (oe = s == null ? void 0 : s.wave) == null ? void 0 : oe.swell) == null ? void 0 : ue.direction, r.swellPeriod = this.computeRoundPrecision((F = (ne = s == null ? void 0 : s.wave) == null ? void 0 : ne.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((ce = s == null ? void 0 : s.current) == null ? void 0 : ce.speed, 1) ?? "-", r.currentDir = (xe = s == null ? void 0 : s.current) == null ? void 0 : xe.direction, r.currentSpeed = this.computeRoundPrecision((Le = s == null ? void 0 : s.current) == null ? void 0 : Le.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(s == null ? void 0 : s.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(s == null ? void 0 : s.sst, 0) ?? "-", r.weatherUrls = (Pe = s == null ? void 0 : s.weather) == null ? void 0 : Pe.url, this.tableData[0][`value${o}`] = o * this.interval > 10 ? o * this.interval : "0" + o * this.interval, this.tableData[1][`value${o}`] = r.weatherUrl, this.tableData[2][`value${o}`] = r.temp, this.tableData[3][`value${o}`] = r.precip1h, this.tableData[4][`value${o}`] = r.visibility, this.tableData[5][`value${o}`] = r.windSpeed, this.tableData[6][`value${o}`] = r.sigwaveHeight, this.tableData[7][`value${o}`] = r.swellHeight, this.tableData[8][`value${o}`] = r.currentSpeed;
1491
+ r.utc = s.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = s.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((g = s == null ? void 0 : s.weather) == null ? void 0 : g.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((f = (p = s == null ? void 0 : s.weather) == null ? void 0 : p.precip) == null ? void 0 : f.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((v = (w = s == null ? void 0 : s.weather) == null ? void 0 : w.precip) == null ? void 0 : v.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((y = s == null ? void 0 : s.weather) == null ? void 0 : y.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (C = s == null ? void 0 : s.weather) == null ? void 0 : C.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (I = (B = s == null ? void 0 : s.weather) == null ? void 0 : B.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((_ = (L = s == null ? void 0 : s.weather) == null ? void 0 : L.wind) == null ? void 0 : _.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((P = (k = s == null ? void 0 : s.weather) == null ? void 0 : k.wind) == null ? void 0 : P.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((R = (z = s == null ? void 0 : s.wave) == null ? void 0 : z.sig) == null ? void 0 : R.height, 1) ?? "-", r.sigwaveDir = (Y = (G = s == null ? void 0 : s.wave) == null ? void 0 : G.sig) == null ? void 0 : Y.direction, r.sigwavePeriod = this.computeRoundPrecision((V = (K = s == null ? void 0 : s.wave) == null ? void 0 : K.sig) == null ? void 0 : V.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((ee = (J = s == null ? void 0 : s.wave) == null ? void 0 : J.wd) == null ? void 0 : ee.height, 1) ?? "-", r.windwaveDir = (re = (Q = s == null ? void 0 : s.wave) == null ? void 0 : Q.wd) == null ? void 0 : re.direction, r.windwavePeriod = this.computeRoundPrecision((pe = (he = s == null ? void 0 : s.wave) == null ? void 0 : he.wd) == null ? void 0 : pe.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((X = (ne = s == null ? void 0 : s.wave) == null ? void 0 : ne.swell) == null ? void 0 : X.height, 1) ?? "-", r.swellDir = (ue = (oe = s == null ? void 0 : s.wave) == null ? void 0 : oe.swell) == null ? void 0 : ue.direction, r.swellPeriod = this.computeRoundPrecision((F = (ce = s == null ? void 0 : s.wave) == null ? void 0 : ce.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((me = s == null ? void 0 : s.current) == null ? void 0 : me.speed, 1) ?? "-", r.currentDir = (xe = s == null ? void 0 : s.current) == null ? void 0 : xe.direction, r.currentSpeed = this.computeRoundPrecision((Le = s == null ? void 0 : s.current) == null ? void 0 : Le.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(s == null ? void 0 : s.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(s == null ? void 0 : s.sst, 0) ?? "-", r.weatherUrls = (Pe = s == null ? void 0 : s.weather) == null ? void 0 : Pe.url, this.tableData[0][`value${o}`] = o * this.interval > 10 ? o * this.interval : "0" + o * this.interval, this.tableData[1][`value${o}`] = r.weatherUrl, this.tableData[2][`value${o}`] = r.temp, this.tableData[3][`value${o}`] = r.precip1h, this.tableData[4][`value${o}`] = r.visibility, this.tableData[5][`value${o}`] = r.windSpeed, this.tableData[6][`value${o}`] = r.sigwaveHeight, this.tableData[7][`value${o}`] = r.swellHeight, this.tableData[8][`value${o}`] = r.currentSpeed;
1492
1492
  });
1493
1493
  },
1494
1494
  handleTide() {
@@ -1680,15 +1680,15 @@ function yr(t, e, a, i, o, r) {
1680
1680
  return [
1681
1681
  d(c, { class: "w-100" }, {
1682
1682
  default: u(() => {
1683
- var y, k, T, R, I;
1683
+ var y, C, T, B, I;
1684
1684
  return [
1685
1685
  l("div", gi, [
1686
1686
  l("div", fi, [
1687
1687
  l("div", {
1688
- class: He(["fi mr-2 rounded elevation-4", `fi-${(y = a.port) != null && y.cntLoCode ? (T = (k = a.port) == null ? void 0 : k.cntLoCode) == null ? void 0 : T.toLowerCase() : "xx"}`]),
1688
+ class: He(["fi mr-2 rounded elevation-4", `fi-${(y = a.port) != null && y.cntLoCode ? (T = (C = a.port) == null ? void 0 : C.cntLoCode) == null ? void 0 : T.toLowerCase() : "xx"}`]),
1689
1689
  style: { width: "36px", height: "24px" }
1690
1690
  }, null, 2),
1691
- l("div", null, h((R = a.port) == null ? void 0 : R.name), 1)
1691
+ l("div", null, h((B = a.port) == null ? void 0 : B.name), 1)
1692
1692
  ]),
1693
1693
  d(s, {
1694
1694
  icon: "",
@@ -1718,8 +1718,8 @@ function yr(t, e, a, i, o, r) {
1718
1718
  d(n, { class: "w-100" }),
1719
1719
  l("div", bi, [
1720
1720
  a.followList.some((y) => {
1721
- var k;
1722
- return ((k = y.port) == null ? void 0 : k.id) === a.portId;
1721
+ var C;
1722
+ return ((C = y.port) == null ? void 0 : C.id) === a.portId;
1723
1723
  }) ? (b(), A(s, {
1724
1724
  key: 0,
1725
1725
  class: "text-none text-body-1 rounded flex-1-1-0",
@@ -1909,9 +1909,9 @@ function yr(t, e, a, i, o, r) {
1909
1909
  l("th", hr, h(t.$t("time.time")) + " ( LT ) ", 1),
1910
1910
  l("th", pr, h(t.$t("tide.height")) + " ( m )", 1)
1911
1911
  ]),
1912
- (b(!0), S(be, null, we(o.tideTableData, (y, k) => {
1912
+ (b(!0), S(be, null, we(o.tideTableData, (y, C) => {
1913
1913
  var T;
1914
- return b(), S("tr", { key: k }, [
1914
+ return b(), S("tr", { key: C }, [
1915
1915
  l("td", ur, h(t.$t(`tide.${(T = y == null ? void 0 : y.type) == null ? void 0 : T.toLowerCase()}`)) + " " + h(t.$t("tide.tide")), 1),
1916
1916
  l("td", gr, h(r.computeLocalTime(y == null ? void 0 : y.date, a.port, "MM-DD HH:mm")), 1),
1917
1917
  l("td", fr, h((y == null ? void 0 : y.height) ?? "-") + " m", 1)
@@ -2063,7 +2063,7 @@ function _r(t, e, a, i, o, r) {
2063
2063
  }, 512), [
2064
2064
  [We, o.showInfo]
2065
2065
  ]),
2066
- o.showDetail ? (b(), A(n, B({
2066
+ o.showDetail ? (b(), A(n, O({
2067
2067
  key: 0,
2068
2068
  portId: o.portId,
2069
2069
  port: o.port,
@@ -3049,9 +3049,9 @@ function Tl(t, e, a, i, o, r) {
3049
3049
  l("th", zl, h(t.$t("tide.height")) + " ( m )", 1)
3050
3050
  ]),
3051
3051
  (b(!0), S(be, null, we(o.tideTableData, (v, y) => {
3052
- var k;
3052
+ var C;
3053
3053
  return b(), S("tr", { key: y }, [
3054
- l("td", Ll, h(t.$t(`tide.${(k = v == null ? void 0 : v.type) == null ? void 0 : k.toLowerCase()}`)) + " " + h(t.$t("tide.tide")), 1),
3054
+ l("td", Ll, h(t.$t(`tide.${(C = v == null ? void 0 : v.type) == null ? void 0 : C.toLowerCase()}`)) + " " + h(t.$t("tide.tide")), 1),
3055
3055
  l("td", Pl, h(r.computeLocalTime(v == null ? void 0 : v.date, a.station, "MM-DD HH:mm")), 1),
3056
3056
  l("td", Cl, h((v == null ? void 0 : v.height) ?? "-") + " m", 1)
3057
3057
  ]);
@@ -3167,7 +3167,7 @@ function Ol(t, e, a, i, o, r) {
3167
3167
  }, 512), [
3168
3168
  [We, o.showInfo]
3169
3169
  ]),
3170
- o.showDetail ? (b(), A(n, B({
3170
+ o.showDetail ? (b(), A(n, O({
3171
3171
  key: 0,
3172
3172
  station: o.station,
3173
3173
  onClose: r.handleCloseDetail
@@ -3327,7 +3327,7 @@ const Fl = {
3327
3327
  handleZoomEnd() {
3328
3328
  var e;
3329
3329
  const t = this.handleComputeLatLngs();
3330
- (e = this.map) == null || e.getSource(this.source).setData(H.featureCollection(t));
3330
+ (e = this.map) == null || e.getSource(this.source).setData(U.featureCollection(t));
3331
3331
  },
3332
3332
  handleRender() {
3333
3333
  if (this.handleClear(), this.map) {
@@ -4331,7 +4331,7 @@ function Zl(t, e, a, i, o, r) {
4331
4331
  }, 512), [
4332
4332
  [We, o.showInfo]
4333
4333
  ]),
4334
- o.showDetail ? (b(), A(n, B({
4334
+ o.showDetail ? (b(), A(n, O({
4335
4335
  key: 0,
4336
4336
  portId: o.portId,
4337
4337
  port: o.port,
@@ -5442,7 +5442,7 @@ const es = {
5442
5442
  if (t) {
5443
5443
  const i = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], o = await Se.get(`${i}/api/arc/other/layers/links?l=${t}&t=${this.realTime}`, {
5444
5444
  headers: {
5445
- Authorization: this.token || this.defaultMeteoToken
5445
+ Authorization: this.defaultMeteoToken
5446
5446
  }
5447
5447
  });
5448
5448
  if (((e = o == null ? void 0 : o.data) == null ? void 0 : e.code) === 0) {
@@ -5451,7 +5451,7 @@ const es = {
5451
5451
  s.push(
5452
5452
  Se.get(r[n], {
5453
5453
  headers: {
5454
- Authorization: this.token || this.defaultMeteoToken,
5454
+ Authorization: this.defaultMeteoToken,
5455
5455
  key: n
5456
5456
  }
5457
5457
  })
@@ -5468,7 +5468,7 @@ const es = {
5468
5468
  var a, i;
5469
5469
  const t = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], e = await Se.get(`${t}/api/arc/other/layers/links?l=1024&t=${this.realTime}`, {
5470
5470
  headers: {
5471
- Authorization: this.token || this.defaultMeteoToken
5471
+ Authorization: this.defaultMeteoToken
5472
5472
  }
5473
5473
  });
5474
5474
  ((a = e == null ? void 0 : e.data) == null ? void 0 : a.code) === 0 && (this.otherLayers["day-night"] = ((i = e == null ? void 0 : e.data) == null ? void 0 : i.data) || (e == null ? void 0 : e.data));
@@ -5496,8 +5496,8 @@ const es = {
5496
5496
  class: "border rounded-sm"
5497
5497
  }, ds = { class: "text-body-2 text-center pt-1" };
5498
5498
  function hs(t, e, a, i, o, r) {
5499
- var Q, re, de, pe, se, X, oe, ue, ne;
5500
- const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VCardItem"), p = x("VCheckbox"), f = x("VCardText"), w = x("VCard"), v = x("IdmLatLng"), y = x("IdmTerminator"), k = x("IdmTimezone"), T = x("IdmPort"), R = x("IdmAlertZone"), I = x("IdmTideStations"), P = x("IdmEcaZone"), _ = x("IdmWarZone"), z = x("IdmGmdssArea"), C = x("IdmLoadLine"), L = x("IdmWorldMarine"), O = x("IdmVRA"), G = x("IdmSpecialArea"), Y = x("IdmWorld12nm"), K = x("IdmChinaRoute"), V = x("IdmIceAreas"), J = x("IdmFollowPort"), ee = x("IdmFollowPosition");
5499
+ var Q, re, he, pe, ne, X, oe, ue, ce;
5500
+ const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VCardItem"), p = x("VCheckbox"), f = x("VCardText"), w = x("VCard"), v = x("IdmLatLng"), y = x("IdmTerminator"), C = x("IdmTimezone"), T = x("IdmPort"), B = x("IdmAlertZone"), I = x("IdmTideStations"), L = x("IdmEcaZone"), _ = x("IdmWarZone"), k = x("IdmGmdssArea"), P = x("IdmLoadLine"), z = x("IdmWorldMarine"), R = x("IdmVRA"), G = x("IdmSpecialArea"), Y = x("IdmWorld12nm"), K = x("IdmChinaRoute"), V = x("IdmIceAreas"), J = x("IdmFollowPort"), ee = x("IdmFollowPosition");
5501
5501
  return b(), S("div", ts, [
5502
5502
  l("div", {
5503
5503
  class: "menu-bar-box transition px-1 rounded",
@@ -5508,7 +5508,7 @@ function hs(t, e, a, i, o, r) {
5508
5508
  location: "left"
5509
5509
  }, {
5510
5510
  activator: u(({ props: F }) => [
5511
- d(s, B(F, {
5511
+ d(s, O(F, {
5512
5512
  "min-width": "32",
5513
5513
  width: "32",
5514
5514
  height: "32",
@@ -5571,7 +5571,7 @@ function hs(t, e, a, i, o, r) {
5571
5571
  (b(!0), S(be, null, we(o.mapFeathers, (F) => (b(), S("div", {
5572
5572
  key: F.value,
5573
5573
  class: "mb-2 feather-item",
5574
- onClick: (ce) => r.handleToggleMapFeather(F)
5574
+ onClick: (me) => r.handleToggleMapFeather(F)
5575
5575
  }, [
5576
5576
  l("div", {
5577
5577
  class: He([o.mapFeather === F.value ? "active" : "", "img-box"])
@@ -5584,7 +5584,7 @@ function hs(t, e, a, i, o, r) {
5584
5584
  (b(!0), S(be, null, we(o.tagLayers.filter((F) => ["graticule", "day-night", "time-zones"].includes(F.key)), (F) => (b(), A(p, {
5585
5585
  key: F.key,
5586
5586
  modelValue: o.checkList,
5587
- "onUpdate:modelValue": e[0] || (e[0] = (ce) => o.checkList = ce),
5587
+ "onUpdate:modelValue": e[0] || (e[0] = (me) => o.checkList = me),
5588
5588
  value: F.key,
5589
5589
  label: t.$t(`layer.${F.locale}`),
5590
5590
  color: "primary",
@@ -5623,7 +5623,7 @@ function hs(t, e, a, i, o, r) {
5623
5623
  (b(!0), S(be, null, we(o.tagLayers.filter((F) => ["ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (b(), A(p, {
5624
5624
  key: F.key,
5625
5625
  modelValue: o.checkList,
5626
- "onUpdate:modelValue": e[1] || (e[1] = (ce) => o.checkList = ce),
5626
+ "onUpdate:modelValue": e[1] || (e[1] = (me) => o.checkList = me),
5627
5627
  value: F.key,
5628
5628
  label: t.$t(`layer.${F.locale}`),
5629
5629
  color: "primary",
@@ -5662,7 +5662,7 @@ function hs(t, e, a, i, o, r) {
5662
5662
  (b(!0), S(be, null, we(o.tagLayers.filter((F) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (b(), A(p, {
5663
5663
  key: F.key,
5664
5664
  modelValue: o.checkList,
5665
- "onUpdate:modelValue": e[2] || (e[2] = (ce) => o.checkList = ce),
5665
+ "onUpdate:modelValue": e[2] || (e[2] = (me) => o.checkList = me),
5666
5666
  value: F.key,
5667
5667
  label: t.$t(`layer.${F.locale}`),
5668
5668
  color: "primary",
@@ -5728,33 +5728,33 @@ function hs(t, e, a, i, o, r) {
5728
5728
  })
5729
5729
  ])
5730
5730
  ], 6),
5731
- a.map ? (b(), A(v, B({
5731
+ a.map ? (b(), A(v, O({
5732
5732
  key: 0,
5733
5733
  map: a.map,
5734
5734
  "menu-toggle": a.menuToggle,
5735
5735
  show: o.checkList.includes("graticule")
5736
5736
  }, t.$attrs), null, 16, ["map", "menu-toggle", "show"])) : D("", !0),
5737
- a.map ? (b(), A(y, B({
5737
+ a.map ? (b(), A(y, O({
5738
5738
  key: 1,
5739
5739
  map: a.map,
5740
5740
  area: (Q = o.otherLayers) == null ? void 0 : Q["day-night"]
5741
5741
  }, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
5742
- a.map ? (b(), A(k, B({
5742
+ a.map ? (b(), A(C, O({
5743
5743
  key: 2,
5744
5744
  map: a.map,
5745
5745
  zone: (re = o.otherLayers) == null ? void 0 : re["time-zones"]
5746
5746
  }, t.$attrs), null, 16, ["map", "zone"])) : D("", !0),
5747
- a.map ? (b(), A(T, B({
5747
+ a.map ? (b(), A(T, O({
5748
5748
  key: 3,
5749
5749
  ref: "idmPorts",
5750
5750
  map: a.map,
5751
- ports: (de = o.otherLayers) == null ? void 0 : de.ports,
5751
+ ports: (he = o.otherLayers) == null ? void 0 : he.ports,
5752
5752
  gateway: a.gateway,
5753
5753
  token: a.token,
5754
5754
  "forecast-model": a.forecastModel,
5755
5755
  realTime: a.realTime
5756
5756
  }, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "ports", "gateway", "token", "forecast-model", "realTime"])) : D("", !0),
5757
- a.map ? (b(), A(R, B({
5757
+ a.map ? (b(), A(B, O({
5758
5758
  key: 4,
5759
5759
  map: a.map,
5760
5760
  zone: (pe = o.otherLayers) == null ? void 0 : pe["alert-zones"]
@@ -5762,7 +5762,7 @@ function hs(t, e, a, i, o, r) {
5762
5762
  "before-layer": "empty-layer-3",
5763
5763
  theme: a.theme
5764
5764
  }), null, 16, ["map", "zone", "theme"])) : D("", !0),
5765
- a.map ? (b(), A(I, B({
5765
+ a.map ? (b(), A(I, O({
5766
5766
  key: 5,
5767
5767
  ref: "idmIideStation",
5768
5768
  map: a.map,
@@ -5774,60 +5774,60 @@ function hs(t, e, a, i, o, r) {
5774
5774
  forecastModel: a.forecastModel,
5775
5775
  "before-layer": "empty-layer-3"
5776
5776
  }, t.$attrs), null, 16, ["map", "gateway", "token", "show", "theme", "realTime", "forecastModel"])) : D("", !0),
5777
- a.map ? (b(), A(P, B({
5777
+ a.map ? (b(), A(L, O({
5778
5778
  key: 6,
5779
5779
  map: a.map,
5780
- zone: (se = o.otherLayers) == null ? void 0 : se["eca-zones"]
5780
+ zone: (ne = o.otherLayers) == null ? void 0 : ne["eca-zones"]
5781
5781
  }, t.$attrs), null, 16, ["map", "zone"])) : D("", !0),
5782
- a.map ? (b(), A(_, B({
5782
+ a.map ? (b(), A(_, O({
5783
5783
  key: 7,
5784
5784
  map: a.map,
5785
5785
  zone: (X = o.otherLayers) == null ? void 0 : X["war-zones"]
5786
5786
  }, t.$attrs), null, 16, ["map", "zone"])) : D("", !0),
5787
- a.map ? (b(), A(z, B({
5787
+ a.map ? (b(), A(k, O({
5788
5788
  key: 8,
5789
5789
  map: a.map,
5790
5790
  area: (oe = o.otherLayers) == null ? void 0 : oe["gmdss-areas"]
5791
5791
  }, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
5792
- a.map ? (b(), A(C, B({
5792
+ a.map ? (b(), A(P, O({
5793
5793
  key: 9,
5794
5794
  map: a.map,
5795
5795
  show: o.checkList.includes("load-lines")
5796
5796
  }, t.$attrs), null, 16, ["map", "show"])) : D("", !0),
5797
- a.map ? (b(), A(L, B({
5797
+ a.map ? (b(), A(z, O({
5798
5798
  key: 10,
5799
5799
  map: a.map,
5800
5800
  token: a.token,
5801
5801
  show: o.checkList.includes("worldMarine")
5802
5802
  }, t.$attrs), null, 16, ["map", "token", "show"])) : D("", !0),
5803
- a.map ? (b(), A(O, B({
5803
+ a.map ? (b(), A(R, O({
5804
5804
  key: 11,
5805
5805
  map: a.map,
5806
5806
  area: (ue = o.otherLayers) == null ? void 0 : ue["voluntary-reporting-area"]
5807
5807
  }, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
5808
- a.map ? (b(), A(G, B({
5808
+ a.map ? (b(), A(G, O({
5809
5809
  key: 12,
5810
5810
  map: a.map,
5811
- area: (ne = o.otherLayers) == null ? void 0 : ne["special-area"]
5811
+ area: (ce = o.otherLayers) == null ? void 0 : ce["special-area"]
5812
5812
  }, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
5813
- a.map ? (b(), A(Y, B({
5813
+ a.map ? (b(), A(Y, O({
5814
5814
  key: 13,
5815
5815
  map: a.map,
5816
5816
  token: a.token,
5817
5817
  show: o.checkList.includes("world12nm")
5818
5818
  }, t.$attrs), null, 16, ["map", "token", "show"])) : D("", !0),
5819
- a.map ? (b(), A(K, B({
5819
+ a.map ? (b(), A(K, O({
5820
5820
  key: 14,
5821
5821
  map: a.map,
5822
5822
  token: a.token,
5823
5823
  show: o.checkList.includes("chinaRoute")
5824
5824
  }, t.$attrs), null, 16, ["map", "token", "show"])) : D("", !0),
5825
- a.map ? (b(), A(V, B({
5825
+ a.map ? (b(), A(V, O({
5826
5826
  key: 15,
5827
5827
  map: a.map,
5828
5828
  show: o.checkList.includes("ice-areas")
5829
5829
  }, t.$attrs), null, 16, ["map", "show"])) : D("", !0),
5830
- a.map ? (b(), A(J, B({
5830
+ a.map ? (b(), A(J, O({
5831
5831
  key: 16,
5832
5832
  ref: "idmFollowPort",
5833
5833
  map: a.map,
@@ -5837,7 +5837,7 @@ function hs(t, e, a, i, o, r) {
5837
5837
  "forecast-model": a.forecastModel,
5838
5838
  realTime: a.realTime
5839
5839
  }, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "show", "gateway", "token", "forecast-model", "realTime"])) : D("", !0),
5840
- a.map ? (b(), A(ee, B({
5840
+ a.map ? (b(), A(ee, O({
5841
5841
  key: 17,
5842
5842
  ref: "idmFollowPosition",
5843
5843
  map: a.map,
@@ -5850,15 +5850,15 @@ function hs(t, e, a, i, o, r) {
5850
5850
  const ps = /* @__PURE__ */ q(es, [["render", hs]]);
5851
5851
  class sa {
5852
5852
  constructor(e) {
5853
- me(this, "map");
5854
- me(this, "mercator");
5855
- me(this, "rampColorLayer");
5856
- me(this, "rampColorSource");
5857
- me(this, "particleLayer");
5858
- me(this, "particleSource");
5859
- me(this, "rampColorCanvas");
5860
- me(this, "particleCanvas");
5861
- me(this, "ratio");
5853
+ de(this, "map");
5854
+ de(this, "mercator");
5855
+ de(this, "rampColorLayer");
5856
+ de(this, "rampColorSource");
5857
+ de(this, "particleLayer");
5858
+ de(this, "particleSource");
5859
+ de(this, "rampColorCanvas");
5860
+ de(this, "particleCanvas");
5861
+ de(this, "ratio");
5862
5862
  this.map = e, this.mercator = new Jo(), this.rampColorLayer = "ramp-color-layer", this.rampColorSource = "ramp-color-source", this.particleLayer = "particle-layer", this.particleSource = "particle-source", this.rampColorCanvas = document.createElement("canvas"), this.particleCanvas = document.createElement("canvas"), this.ratio = window.devicePixelRatio;
5863
5863
  }
5864
5864
  /**
@@ -5894,11 +5894,11 @@ class sa {
5894
5894
  * @param [lb.x, lb.y, rt.x, rt.y]
5895
5895
  */
5896
5896
  getBoundPixel() {
5897
- var y, k;
5897
+ var y, C;
5898
5898
  const e = (y = this.map) == null ? void 0 : y.getBounds();
5899
5899
  if (!e)
5900
5900
  return [];
5901
- const a = ((k = this.map) == null ? void 0 : k.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], o = [e._sw.lng, e._sw.lat], [r, s] = this.convertNLng(i[0]), [c, n] = this.convertNLng(o[0]), [g, p] = this.mercator.px([r, i[1]], a), [f, w] = this.mercator.px([c, o[1]], a), v = Math.round(this.mercator.size * Math.pow(2, a) * (s + n));
5901
+ const a = ((C = this.map) == null ? void 0 : C.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], o = [e._sw.lng, e._sw.lat], [r, s] = this.convertNLng(i[0]), [c, n] = this.convertNLng(o[0]), [g, p] = this.mercator.px([r, i[1]], a), [f, w] = this.mercator.px([c, o[1]], a), v = Math.round(this.mercator.size * Math.pow(2, a) * (s + n));
5902
5902
  return [f, w, g + v, p];
5903
5903
  }
5904
5904
  /**
@@ -5938,7 +5938,7 @@ class sa {
5938
5938
  a !== i && this.map.setLayoutProperty(this.particleLayer, "visibility", i);
5939
5939
  }
5940
5940
  }
5941
- class je {
5941
+ class Ne {
5942
5942
  /**
5943
5943
  * 创建着色器
5944
5944
  * @see https://webglfundamentals.org/webgl/lessons/zh_cn/webgl-shaders-and-glsl.html
@@ -6084,8 +6084,8 @@ class je {
6084
6084
  p.resolution && a.uniform2f(p.resolution, a.canvas.width * e.ratio, a.canvas.height * e.ratio), a.activeTexture(a.TEXTURE0), a.bindTexture(a.TEXTURE_2D, o), p.image && a.uniform1i(p.image, 0), a.activeTexture(a.TEXTURE1), a.bindTexture(a.TEXTURE_2D, r), p.color && a.uniform1i(p.color, 1), c != null && c.uvRange && (c != null && c.sRange) && (p.uvRange && a.uniform2f(p.uvRange, c.uvRange[0], c.uvRange[1]), p.sRange && a.uniform2f(p.sRange, c.sRange[0], c.sRange[1])), p.scale && a.uniform1f(p.scale, (c == null ? void 0 : c.scale) || 1);
6085
6085
  const f = e.getBoundPixel(), w = e.map.getZoom() + 1, v = e.getWorldCopy(f, w);
6086
6086
  for (const y of v) {
6087
- const k = (y[0] - f[0]) * e.ratio, T = (y[1] - f[3]) * e.ratio, R = y[2] * e.ratio, [I, P, _, z] = [k, R + k, T, R + T], C = new Float32Array([I, _, P, _, I, z, I, z, P, _, P, z]);
6088
- a.bindBuffer(a.ARRAY_BUFFER, s), a.bufferData(a.ARRAY_BUFFER, C, a.STATIC_DRAW), a.drawArrays(a.TRIANGLES, 0, 6);
6087
+ const C = (y[0] - f[0]) * e.ratio, T = (y[1] - f[3]) * e.ratio, B = y[2] * e.ratio, [I, L, _, k] = [C, B + C, T, B + T], P = new Float32Array([I, _, L, _, I, k, I, k, L, _, L, k]);
6088
+ a.bindBuffer(a.ARRAY_BUFFER, s), a.bufferData(a.ARRAY_BUFFER, P, a.STATIC_DRAW), a.drawArrays(a.TRIANGLES, 0, 6);
6089
6089
  }
6090
6090
  } catch (p) {
6091
6091
  console.log(`render failed...${p}`);
@@ -6133,10 +6133,10 @@ class je {
6133
6133
  });
6134
6134
  }
6135
6135
  }
6136
- class he {
6136
+ class se {
6137
6137
  }
6138
6138
  // 顶点渲染
6139
- me(he, "vertexSchema", `
6139
+ de(se, "vertexSchema", `
6140
6140
  //canvas 坐标系上的坐标 (x, y)
6141
6141
  attribute vec2 a_position; //像素坐标
6142
6142
  attribute vec2 a_texCoord; //纹理坐标
@@ -6151,7 +6151,7 @@ me(he, "vertexSchema", `
6151
6151
  gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
6152
6152
  v_texCoord = a_texCoord;
6153
6153
  }`), // 类如风、流等u v双变量片元渲染
6154
- me(he, "uvFragmentSchema", `
6154
+ de(se, "uvFragmentSchema", `
6155
6155
  precision mediump float;
6156
6156
  uniform sampler2D u_image;
6157
6157
  uniform vec2 u_range_u_v;
@@ -6171,7 +6171,7 @@ me(he, "uvFragmentSchema", `
6171
6171
 
6172
6172
  gl_FragColor = color;
6173
6173
  }`), // 类如浪、气压等单变量片元渲染
6174
- me(he, "fragmentSchema", `
6174
+ de(se, "fragmentSchema", `
6175
6175
  precision mediump float;
6176
6176
  uniform sampler2D u_image; // 灰度
6177
6177
  uniform sampler2D u_color; // 色值映射
@@ -6184,7 +6184,7 @@ me(he, "fragmentSchema", `
6184
6184
  }`);
6185
6185
  class ke {
6186
6186
  }
6187
- me(ke, "vertexSchema", `
6187
+ de(ke, "vertexSchema", `
6188
6188
  precision mediump float;
6189
6189
 
6190
6190
  attribute float a_index; // 索引
@@ -6208,7 +6208,7 @@ me(ke, "vertexSchema", `
6208
6208
  gl_PointSize = 1.0;
6209
6209
  // gl_PointSize = u_point;
6210
6210
  gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
6211
- }`), me(ke, "fragmentSchema", `
6211
+ }`), de(ke, "fragmentSchema", `
6212
6212
  precision mediump float;
6213
6213
 
6214
6214
  uniform sampler2D u_factor;
@@ -6230,7 +6230,7 @@ me(ke, "vertexSchema", `
6230
6230
 
6231
6231
  float f = 1.0 - uv.b;
6232
6232
  gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
6233
- }`), me(ke, "quadVertSchema", `
6233
+ }`), de(ke, "quadVertSchema", `
6234
6234
  precision mediump float;
6235
6235
 
6236
6236
  attribute vec2 a_pos;
@@ -6240,7 +6240,7 @@ me(ke, "vertexSchema", `
6240
6240
  void main() {
6241
6241
  v_tex_pos = a_pos;
6242
6242
  gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
6243
- }`), me(ke, "screenFragmentSchema", `
6243
+ }`), de(ke, "screenFragmentSchema", `
6244
6244
  precision mediump float;
6245
6245
 
6246
6246
  uniform sampler2D u_screen;
@@ -6252,7 +6252,7 @@ me(ke, "vertexSchema", `
6252
6252
  vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
6253
6253
  // a hack to guarantee opacity fade out even with a value close to 1.0
6254
6254
  gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
6255
- }`), me(ke, "updateFragmentSchema", `
6255
+ }`), de(ke, "updateFragmentSchema", `
6256
6256
  precision mediump float;
6257
6257
 
6258
6258
  uniform sampler2D u_particles;
@@ -6387,7 +6387,7 @@ const us = {
6387
6387
  showCaption: !1,
6388
6388
  source: "wind-barb-source",
6389
6389
  barbs: [0, 2, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105],
6390
- empty: H.featureCollection([]),
6390
+ empty: U.featureCollection([]),
6391
6391
  right: 10,
6392
6392
  bottom: 125,
6393
6393
  windBarbLoaded: !1,
@@ -6513,7 +6513,7 @@ const bs = {
6513
6513
  texture: void 0,
6514
6514
  rampColor: void 0,
6515
6515
  aPositionBuffer: void 0,
6516
- webgl: new je(),
6516
+ webgl: new Ne(),
6517
6517
  etime: void 0,
6518
6518
  wrapper: void 0,
6519
6519
  animation: void 0,
@@ -6599,7 +6599,7 @@ const bs = {
6599
6599
  [1, "rgb(91, 136, 161)"]
6600
6600
  ];
6601
6601
  this.rampColor = this.webgl.setup(this.context, t);
6602
- const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, he.vertexSchema, he.uvFragmentSchema);
6602
+ const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, se.vertexSchema, se.uvFragmentSchema);
6603
6603
  this.program = e, this.aPositionBuffer = a;
6604
6604
  }
6605
6605
  this.handleParticleSetup();
@@ -6706,7 +6706,7 @@ const vs = /* @__PURE__ */ q(bs, [["render", xs]]), _s = {
6706
6706
  directionLayer: "current-direction-layer",
6707
6707
  speedLayer: "current-speed-layer",
6708
6708
  speedLabelLayer: "current-speed-label-layer",
6709
- empty: H.featureCollection([])
6709
+ empty: U.featureCollection([])
6710
6710
  };
6711
6711
  },
6712
6712
  computed: {
@@ -6853,7 +6853,7 @@ const Ls = {
6853
6853
  texture: void 0,
6854
6854
  rampColor: void 0,
6855
6855
  aPositionBuffer: void 0,
6856
- webgl: new je(),
6856
+ webgl: new Ne(),
6857
6857
  etime: void 0,
6858
6858
  wrapper: void 0,
6859
6859
  animation: void 0,
@@ -6931,7 +6931,7 @@ const Ls = {
6931
6931
  [1, "rgb(195,194,194)"]
6932
6932
  ];
6933
6933
  this.rampColor = this.webgl.setup(this.context, t);
6934
- const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, he.vertexSchema, he.uvFragmentSchema);
6934
+ const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, se.vertexSchema, se.uvFragmentSchema);
6935
6935
  this.program = e, this.aPositionBuffer = a;
6936
6936
  }
6937
6937
  this.handleParticleSetup();
@@ -7012,7 +7012,7 @@ function Cs(t, e, a, i, o, r) {
7012
7012
  }
7013
7013
  const Ts = /* @__PURE__ */ q(Ls, [["render", Cs]]);
7014
7014
  const Ss = {
7015
- name: "IdmTemp",
7015
+ name: "IdmSigWave",
7016
7016
  props: {
7017
7017
  factor: {
7018
7018
  type: Object
@@ -7035,7 +7035,7 @@ const Ss = {
7035
7035
  texture: void 0,
7036
7036
  rampColor: void 0,
7037
7037
  aPositionBuffer: void 0,
7038
- webgl: new je(),
7038
+ webgl: new Ne(),
7039
7039
  etime: void 0,
7040
7040
  right: 10
7041
7041
  };
@@ -7103,7 +7103,7 @@ const Ss = {
7103
7103
  //13
7104
7104
  ];
7105
7105
  this.rampColor = this.webgl.setup(this.context, t);
7106
- const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, he.vertexSchema, he.fragmentSchema);
7106
+ const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
7107
7107
  this.program = e, this.aPositionBuffer = a;
7108
7108
  }
7109
7109
  },
@@ -7134,8 +7134,8 @@ function Ms(t, e, a, i, o, r) {
7134
7134
  ]), 4)
7135
7135
  ])) : D("", !0);
7136
7136
  }
7137
- const As = /* @__PURE__ */ q(Ss, [["render", Ms], ["__scopeId", "data-v-6d3e12de"]]), Ds = {
7138
- name: "IdmSigWave",
7137
+ const As = /* @__PURE__ */ q(Ss, [["render", Ms], ["__scopeId", "data-v-c069e9e6"]]), Ds = {
7138
+ name: "IdmSigWaveHeight",
7139
7139
  props: {
7140
7140
  map: {
7141
7141
  type: Object
@@ -7158,7 +7158,7 @@ const As = /* @__PURE__ */ q(Ss, [["render", Ms], ["__scopeId", "data-v-6d3e12de
7158
7158
  source: "sig-wave-height-source",
7159
7159
  heightLayer: "sig-wave-height-layer",
7160
7160
  heightLabelLayer: "sig-wave-height-label-layer",
7161
- empty: H.featureCollection([])
7161
+ empty: U.featureCollection([])
7162
7162
  };
7163
7163
  },
7164
7164
  watch: {
@@ -7282,157 +7282,131 @@ const As = /* @__PURE__ */ q(Ss, [["render", Ms], ["__scopeId", "data-v-6d3e12de
7282
7282
  function Rs(t, e, a, i, o, r) {
7283
7283
  return null;
7284
7284
  }
7285
- const Os = /* @__PURE__ */ q(Ds, [["render", Rs]]), Bs = {
7285
+ const Os = /* @__PURE__ */ q(Ds, [["render", Rs]]);
7286
+ const Bs = {
7286
7287
  name: "IdmSwell",
7287
7288
  props: {
7288
- map: {
7289
+ factor: {
7289
7290
  type: Object
7290
7291
  },
7291
- swell: {
7292
+ viewport: {
7292
7293
  type: Object
7293
7294
  },
7294
- beforeLayer: {
7295
- type: String
7295
+ bottom: {
7296
+ type: String,
7297
+ default: "70px"
7296
7298
  },
7297
- activeWeatherLayers: {
7298
- type: Array
7299
+ menuToggle: {
7300
+ type: Object
7299
7301
  }
7300
7302
  },
7301
7303
  data() {
7302
7304
  return {
7303
- source: "swell-source",
7304
- directionLayer: "swell-direction-layer",
7305
- heightLayer: "swell-height-layer",
7306
- heightLabelLayer: "swell-height-label-layer",
7307
- empty: H.featureCollection([])
7305
+ program: void 0,
7306
+ context: void 0,
7307
+ texture: void 0,
7308
+ rampColor: void 0,
7309
+ aPositionBuffer: void 0,
7310
+ webgl: new Ne(),
7311
+ etime: void 0,
7312
+ right: 10
7308
7313
  };
7309
7314
  },
7310
7315
  watch: {
7311
- "swell.version": {
7316
+ "factor.version": {
7312
7317
  handler() {
7313
7318
  var t;
7314
- (t = this.swell) != null && t.active ? this.handleRender() : this.handleClear();
7319
+ (t = this.factor) != null && t.active ? this.handleRender() : this.handleClear();
7315
7320
  },
7316
7321
  deep: !0
7322
+ },
7323
+ "menuToggle.v": {
7324
+ handler() {
7325
+ var t;
7326
+ this.right = (((t = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : t.clientWidth) || 0) + 10;
7327
+ },
7328
+ immediate: !0
7317
7329
  }
7318
7330
  },
7319
7331
  methods: {
7320
7332
  handleRender() {
7321
- var t, e;
7322
- if (this.swell) {
7323
- const a = (/* @__PURE__ */ new Date()).valueOf();
7324
- let i = 0, o = 0, r = this.empty;
7325
- if (this.swell.active && (r = this.swell.data), (t = this.map) != null && t.getSource(this.source))
7326
- (e = this.map) == null || e.getSource(this.source).setData(r), o = (/* @__PURE__ */ new Date()).valueOf() - (a + i), console.log("[swell] update elapsed: ", o, ", total: ", i += o);
7327
- else {
7328
- this.map.addSource(this.source, { type: "geojson", data: r }), this.map.addLayer(
7329
- {
7330
- id: this.heightLayer,
7331
- type: "line",
7332
- source: this.source,
7333
- filter: ["==", "$type", "LineString"],
7334
- paint: {
7335
- "line-opacity": 1,
7336
- "line-width": 1,
7337
- "line-color": [
7338
- "match",
7339
- ["get", "val"],
7340
- 2,
7341
- "rgba(255,255,0,0.9)",
7342
- 3,
7343
- "rgba(255,149,0,0.9)",
7344
- 4,
7345
- "rgba(244,67,54,0.9)",
7346
- 5,
7347
- "rgba(162,2,31,0.9)",
7348
- 6,
7349
- "rgba(162,2,31,0.9)",
7350
- "rgba(162,2,31,0.9)"
7351
- ]
7352
- }
7353
- },
7354
- this.beforeLayer
7355
- ), this.map.addLayer({
7356
- id: this.heightLabelLayer,
7357
- type: "symbol",
7358
- source: this.source,
7359
- filter: ["==", "$type", "LineString"],
7360
- layout: {
7361
- "symbol-placement": "line",
7362
- "text-rotation-alignment": "viewport",
7363
- "text-field": "{val}m",
7364
- "text-size": 11
7365
- },
7366
- paint: {
7367
- "text-color": ["step", ["get", "val"], "black", 4, "white", 5, "white", 6, "white"],
7368
- "text-halo-color": [
7369
- "match",
7370
- ["get", "val"],
7371
- 2,
7372
- "rgba(255,255,0,0.7)",
7373
- 3,
7374
- "rgba(255,149,0,0.7)",
7375
- 4,
7376
- "rgba(244,67,54,0.7)",
7377
- 5,
7378
- "rgba(162,13,2,0.7)",
7379
- 6,
7380
- "rgba(162,13,2,0.7)",
7381
- "rgba(162,13,2,0.7)"
7382
- ],
7383
- "text-halo-width": 2
7384
- }
7385
- }, this.beforeLayer);
7386
- const s = new Image(72, 72);
7387
- let c = '<svg t="1752721890391" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="12518" width="200" height="200"><path d="M481.386772 959.514313 481.386772 334.713224c-56.000432 37.288255-92.523253 55.876612-142.312216 57.787124 85.834924-84.884272 130.528845-195.161888 172.552961-328.434218 40.259936 133.272329 89.39296 238.731196 172.622546 328.434218-54.105269-5.729491-86.780459-21.201881-146.338926-58.965973l0 625.979938L481.386772 959.514313z" p-id="12519" fill="#ffffff"></path></svg>', n = "data:image/svg+xml;base64," + window.btoa(unescape(encodeURIComponent(c)));
7388
- s.src = n, s.onload = () => {
7389
- this.map.hasImage("swellDirIconWhite") || this.map.addImage("swellDirIconWhite", s), this.map.addLayer(
7390
- {
7391
- id: this.directionLayer,
7392
- type: "symbol",
7393
- source: this.source,
7394
- filter: ["==", "$type", "Point"],
7395
- layout: {
7396
- "symbol-placement": "point",
7397
- "icon-image": "swellDirIconWhite",
7398
- "icon-size": {
7399
- base: 1,
7400
- stops: [
7401
- [2, 0.32],
7402
- [6, 0.5]
7403
- ]
7404
- },
7405
- "icon-offset": [0, -20],
7406
- "icon-allow-overlap": !0,
7407
- "icon-rotation-alignment": "map",
7408
- "icon-rotate": {
7409
- property: "val",
7410
- stops: [
7411
- [0, 180],
7412
- [360, 540]
7413
- ]
7414
- }
7415
- },
7416
- paint: {
7417
- "icon-opacity": 1
7418
- }
7419
- },
7420
- this.beforeLayer
7421
- );
7422
- }, o = (/* @__PURE__ */ new Date()).valueOf() - (a + i), console.log("[swell] add elapsed: ", o, ", total: ", i += o);
7423
- }
7333
+ if (this.factor) {
7334
+ const t = (/* @__PURE__ */ new Date()).valueOf();
7335
+ let e = 0, a = 0;
7336
+ this.handleDraw(), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("[sig-wave] add elapsed: ", a, ", total: ", e += a);
7424
7337
  }
7425
7338
  },
7426
7339
  handleClear() {
7427
- var t, e, a;
7428
- ((t = this.activeWeatherLayers) == null ? void 0 : t.length) === 0 && (e = this.map) != null && e.getLayer("country-boundaries") && ((a = this.map) == null || a.setLayoutProperty("country-boundaries", "visibility", "none")), this.map.getLayer(this.heightLayer) && this.map.removeLayer(this.heightLayer), this.map.getLayer(this.heightLabelLayer) && this.map.removeLayer(this.heightLabelLayer), this.map.getLayer(this.directionLayer) && this.map.removeLayer(this.directionLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
7340
+ this.context = void 0, this.etime = void 0, this.viewport.toggle(!1);
7341
+ },
7342
+ handleSetup() {
7343
+ if (!this.context) {
7344
+ this.context = this.viewport.rampColorCanvas.getContext("webgl");
7345
+ const t = [
7346
+ [0, "rgb(50, 158, 186)"],
7347
+ // 0
7348
+ [10 / 255, "rgb(50, 158, 186)"],
7349
+ // 0.5
7350
+ [20 / 255, "rgb(48, 128, 164)"],
7351
+ // 1
7352
+ [30 / 255, "rgb(48, 99, 142)"],
7353
+ // 1.5
7354
+ [40 / 255, "rgb(57, 61, 143)"],
7355
+ // 2
7356
+ [50 / 255, "rgb(179, 86, 189)"],
7357
+ // 2.5
7358
+ [60 / 255, "rgb(154, 45, 123)"],
7359
+ // 3
7360
+ [80 / 255, "rgb(134, 48, 48)"],
7361
+ // 4
7362
+ // [100 / 255, '#f77800'], // 5
7363
+ [120 / 255, "rgb(194, 77, 91)"],
7364
+ // 6
7365
+ // [140 / 255, '#e06128'], // 7
7366
+ [150 / 255, "rgb(192, 118, 105)"],
7367
+ // 7.5
7368
+ // [160 / 255, '#dc5132'], // 8
7369
+ [180 / 255, "rgb(192, 163, 157)"],
7370
+ // 9
7371
+ // [200 / 255, '#cd3a46'],// 10
7372
+ // [220 / 255, '#be2c50'], // 11
7373
+ // [240 / 255, '#b41a5a'], // 12
7374
+ [1, "rgb(192, 163, 157)"]
7375
+ //13
7376
+ ];
7377
+ this.rampColor = this.webgl.setup(this.context, t);
7378
+ const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
7379
+ this.program = e, this.aPositionBuffer = a;
7380
+ }
7381
+ },
7382
+ async handleDraw() {
7383
+ if (this.handleSetup(), this.etime !== this.factor.etime) {
7384
+ this.etime = this.factor.etime;
7385
+ const t = await this.webgl.loadImg(this.factor.raw);
7386
+ this.texture = this.webgl.createTexture(this.context, this.context.NEAREST, this.context.LINEAR, this.context.CLAMP_TO_EDGE, t);
7387
+ }
7388
+ this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
7429
7389
  }
7430
7390
  }
7431
- };
7432
- function Es(t, e, a, i, o, r) {
7433
- return b(), S("div");
7391
+ }, Es = { key: 0 };
7392
+ function Ns(t, e, a, i, o, r) {
7393
+ var s;
7394
+ return (s = a.factor) != null && s.active ? (b(), S("div", Es, [
7395
+ l("div", {
7396
+ class: "legend-bars-gl4 swell",
7397
+ style: ie({ right: o.right + "px" })
7398
+ }, e[0] || (e[0] = [
7399
+ l("span", null, "m", -1),
7400
+ l("span", null, "0.5", -1),
7401
+ l("span", null, "1", -1),
7402
+ l("span", null, "1.5", -1),
7403
+ l("span", null, "2", -1),
7404
+ l("span", null, "6", -1),
7405
+ l("span", null, "9", -1)
7406
+ ]), 4)
7407
+ ])) : D("", !0);
7434
7408
  }
7435
- const Ns = /* @__PURE__ */ q(Bs, [["render", Es]]), js = {
7409
+ const js = /* @__PURE__ */ q(Bs, [["render", Ns], ["__scopeId", "data-v-214b2a9a"]]), Fs = {
7436
7410
  name: "IdmPrmsl",
7437
7411
  props: {
7438
7412
  map: {
@@ -7462,7 +7436,7 @@ const Ns = /* @__PURE__ */ q(Bs, [["render", Es]]), js = {
7462
7436
  layer: "prmsl-layer",
7463
7437
  labelLayer: "prmsl-label-layer",
7464
7438
  pointLabelLayer: "prmsl-point-label-layer",
7465
- empty: H.featureCollection([])
7439
+ empty: U.featureCollection([])
7466
7440
  };
7467
7441
  },
7468
7442
  watch: {
@@ -7577,14 +7551,14 @@ const Ns = /* @__PURE__ */ q(Bs, [["render", Es]]), js = {
7577
7551
  this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.labelLayer) && this.map.removeLayer(this.labelLayer), this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
7578
7552
  }
7579
7553
  }
7580
- }, Fs = {
7554
+ }, Hs = {
7581
7555
  key: 0,
7582
7556
  class: "legend-tip-btn-gl4"
7583
7557
  };
7584
- function Hs(t, e, a, i, o, r) {
7558
+ function Us(t, e, a, i, o, r) {
7585
7559
  var n;
7586
7560
  const s = x("VBtn"), c = x("VTooltip");
7587
- return (n = a.prmsl) != null && n.active ? (b(), S("div", Fs, [
7561
+ return (n = a.prmsl) != null && n.active ? (b(), S("div", Hs, [
7588
7562
  l("div", {
7589
7563
  class: "menu-bar-box pa-1 rounded",
7590
7564
  style: ie({ right: o.right + "px" })
@@ -7594,7 +7568,7 @@ function Hs(t, e, a, i, o, r) {
7594
7568
  location: "left"
7595
7569
  }, {
7596
7570
  activator: u(({ props: g }) => [
7597
- d(s, B(g, {
7571
+ d(s, O(g, {
7598
7572
  "min-width": "32",
7599
7573
  width: "32",
7600
7574
  height: "32",
@@ -7614,8 +7588,8 @@ function Hs(t, e, a, i, o, r) {
7614
7588
  ], 4)
7615
7589
  ])) : D("", !0);
7616
7590
  }
7617
- const Us = /* @__PURE__ */ q(js, [["render", Hs]]);
7618
- const Ws = {
7591
+ const Ws = /* @__PURE__ */ q(Fs, [["render", Us]]);
7592
+ const Gs = {
7619
7593
  name: "IdmIceEdge",
7620
7594
  props: {
7621
7595
  factor: {
@@ -7639,7 +7613,7 @@ const Ws = {
7639
7613
  texture: void 0,
7640
7614
  rampColor: void 0,
7641
7615
  aPositionBuffer: void 0,
7642
- webgl: new je(),
7616
+ webgl: new Ne(),
7643
7617
  etime: void 0,
7644
7618
  right: 10
7645
7619
  };
@@ -7699,7 +7673,7 @@ const Ws = {
7699
7673
  // 100%
7700
7674
  ];
7701
7675
  this.rampColor = this.webgl.setup(this.context, t);
7702
- const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, he.vertexSchema, he.fragmentSchema);
7676
+ const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
7703
7677
  this.program = e, this.aPositionBuffer = a;
7704
7678
  }
7705
7679
  },
@@ -7712,10 +7686,10 @@ const Ws = {
7712
7686
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
7713
7687
  }
7714
7688
  }
7715
- }, Gs = { key: 0 };
7716
- function Vs(t, e, a, i, o, r) {
7689
+ }, Vs = { key: 0 };
7690
+ function Zs(t, e, a, i, o, r) {
7717
7691
  var s;
7718
- return (s = a.factor) != null && s.active ? (b(), S("div", Gs, [
7692
+ return (s = a.factor) != null && s.active ? (b(), S("div", Vs, [
7719
7693
  l("div", {
7720
7694
  class: "legend-bars-gl4 ice-edge",
7721
7695
  style: ie({ right: o.right + "px" })
@@ -7735,8 +7709,8 @@ function Vs(t, e, a, i, o, r) {
7735
7709
  ]), 4)
7736
7710
  ])) : D("", !0);
7737
7711
  }
7738
- const Zs = /* @__PURE__ */ q(Ws, [["render", Vs]]);
7739
- const qs = {
7712
+ const qs = /* @__PURE__ */ q(Gs, [["render", Zs]]);
7713
+ const Ys = {
7740
7714
  name: "IdmCover",
7741
7715
  props: {
7742
7716
  factor: {
@@ -7760,7 +7734,7 @@ const qs = {
7760
7734
  texture: void 0,
7761
7735
  rampColor: void 0,
7762
7736
  aPositionBuffer: void 0,
7763
- webgl: new je(),
7737
+ webgl: new Ne(),
7764
7738
  etime: void 0,
7765
7739
  right: 10
7766
7740
  };
@@ -7811,7 +7785,7 @@ const qs = {
7811
7785
  // 100%
7812
7786
  ];
7813
7787
  this.rampColor = this.webgl.setup(this.context, t);
7814
- const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, he.vertexSchema, he.fragmentSchema);
7788
+ const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
7815
7789
  this.program = e, this.aPositionBuffer = a;
7816
7790
  }
7817
7791
  },
@@ -7824,10 +7798,10 @@ const qs = {
7824
7798
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
7825
7799
  }
7826
7800
  }
7827
- }, Ys = { key: 0 };
7828
- function Ks(t, e, a, i, o, r) {
7801
+ }, Ks = { key: 0 };
7802
+ function Xs(t, e, a, i, o, r) {
7829
7803
  var s;
7830
- return (s = a.factor) != null && s.active ? (b(), S("div", Ys, [
7804
+ return (s = a.factor) != null && s.active ? (b(), S("div", Ks, [
7831
7805
  l("div", {
7832
7806
  class: "legend-bars-gl4 ice-cover",
7833
7807
  style: ie({ right: o.right + "px" })
@@ -7841,8 +7815,8 @@ function Ks(t, e, a, i, o, r) {
7841
7815
  ]), 4)
7842
7816
  ])) : D("", !0);
7843
7817
  }
7844
- const Xs = /* @__PURE__ */ q(qs, [["render", Ks], ["__scopeId", "data-v-34dc758b"]]);
7845
- const $s = {
7818
+ const $s = /* @__PURE__ */ q(Ys, [["render", Xs], ["__scopeId", "data-v-34dc758b"]]);
7819
+ const Qs = {
7846
7820
  name: "IdmThickness",
7847
7821
  props: {
7848
7822
  factor: {
@@ -7866,7 +7840,7 @@ const $s = {
7866
7840
  texture: void 0,
7867
7841
  rampColor: void 0,
7868
7842
  aPositionBuffer: void 0,
7869
- webgl: new je(),
7843
+ webgl: new Ne(),
7870
7844
  etime: void 0,
7871
7845
  right: 10
7872
7846
  };
@@ -7925,7 +7899,7 @@ const $s = {
7925
7899
  // 4m
7926
7900
  ];
7927
7901
  this.rampColor = this.webgl.setup(this.context, t);
7928
- const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, he.vertexSchema, he.fragmentSchema);
7902
+ const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
7929
7903
  this.program = e, this.aPositionBuffer = a;
7930
7904
  }
7931
7905
  },
@@ -7938,10 +7912,10 @@ const $s = {
7938
7912
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
7939
7913
  }
7940
7914
  }
7941
- }, Qs = { key: 0 };
7942
- function Js(t, e, a, i, o, r) {
7915
+ }, Js = { key: 0 };
7916
+ function en(t, e, a, i, o, r) {
7943
7917
  var s;
7944
- return (s = a.factor) != null && s.active ? (b(), S("div", Qs, [
7918
+ return (s = a.factor) != null && s.active ? (b(), S("div", Js, [
7945
7919
  l("div", {
7946
7920
  class: "legend-bars-gl4 ice-thickness",
7947
7921
  style: ie({ right: o.right + "px" })
@@ -7956,8 +7930,8 @@ function Js(t, e, a, i, o, r) {
7956
7930
  ]), 4)
7957
7931
  ])) : D("", !0);
7958
7932
  }
7959
- const en = /* @__PURE__ */ q($s, [["render", Js]]);
7960
- const tn = {
7933
+ const tn = /* @__PURE__ */ q(Qs, [["render", en]]);
7934
+ const an = {
7961
7935
  name: "IdmPrecip3h",
7962
7936
  props: {
7963
7937
  factor: {
@@ -7985,7 +7959,7 @@ const tn = {
7985
7959
  texture: void 0,
7986
7960
  rampColor: void 0,
7987
7961
  aPositionBuffer: void 0,
7988
- webgl: new je(),
7962
+ webgl: new Ne(),
7989
7963
  etime: void 0,
7990
7964
  right: 10
7991
7965
  };
@@ -8041,7 +8015,7 @@ const tn = {
8041
8015
  [1, "rgba(197,5,58,0.8)"]
8042
8016
  ];
8043
8017
  this.rampColor = this.webgl.setup(this.context, t);
8044
- const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, he.vertexSchema, he.fragmentSchema);
8018
+ const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
8045
8019
  this.program = e, this.aPositionBuffer = a;
8046
8020
  }
8047
8021
  },
@@ -8054,10 +8028,10 @@ const tn = {
8054
8028
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
8055
8029
  }
8056
8030
  }
8057
- }, an = { key: 0 };
8058
- function on(t, e, a, i, o, r) {
8031
+ }, on = { key: 0 };
8032
+ function rn(t, e, a, i, o, r) {
8059
8033
  var s;
8060
- return (s = a.factor) != null && s.active ? (b(), S("div", an, [
8034
+ return (s = a.factor) != null && s.active ? (b(), S("div", on, [
8061
8035
  l("div", {
8062
8036
  class: "legend-bars-gl4 precip3h",
8063
8037
  style: ie({ right: o.right + "px" })
@@ -8073,8 +8047,8 @@ function on(t, e, a, i, o, r) {
8073
8047
  ]), 4)
8074
8048
  ])) : D("", !0);
8075
8049
  }
8076
- const rn = /* @__PURE__ */ q(tn, [["render", on]]);
8077
- const ln = {
8050
+ const ln = /* @__PURE__ */ q(an, [["render", rn]]);
8051
+ const sn = {
8078
8052
  name: "IdmVisibility",
8079
8053
  props: {
8080
8054
  factor: {
@@ -8099,7 +8073,7 @@ const ln = {
8099
8073
  texture: void 0,
8100
8074
  rampColor: void 0,
8101
8075
  aPositionBuffer: void 0,
8102
- webgl: new je(),
8076
+ webgl: new Ne(),
8103
8077
  etime: void 0
8104
8078
  };
8105
8079
  },
@@ -8148,7 +8122,7 @@ const ln = {
8148
8122
  [1, "rgba(144,144,144,0)"]
8149
8123
  ];
8150
8124
  this.rampColor = this.webgl.setup(this.context, t);
8151
- const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, he.vertexSchema, he.fragmentSchema);
8125
+ const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
8152
8126
  this.program = e, this.aPositionBuffer = a;
8153
8127
  }
8154
8128
  },
@@ -8161,10 +8135,10 @@ const ln = {
8161
8135
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
8162
8136
  }
8163
8137
  }
8164
- }, sn = { key: 0 };
8165
- function nn(t, e, a, i, o, r) {
8138
+ }, nn = { key: 0 };
8139
+ function cn(t, e, a, i, o, r) {
8166
8140
  var s;
8167
- return (s = a.factor) != null && s.active ? (b(), S("div", sn, [
8141
+ return (s = a.factor) != null && s.active ? (b(), S("div", nn, [
8168
8142
  l("div", {
8169
8143
  class: "legend-bars-gl4 visibility",
8170
8144
  style: ie({ right: o.right + "px" })
@@ -8178,8 +8152,8 @@ function nn(t, e, a, i, o, r) {
8178
8152
  ]), 4)
8179
8153
  ])) : D("", !0);
8180
8154
  }
8181
- const cn = /* @__PURE__ */ q(ln, [["render", nn]]);
8182
- const mn = {
8155
+ const mn = /* @__PURE__ */ q(sn, [["render", cn]]);
8156
+ const dn = {
8183
8157
  name: "IdmWaterTemp",
8184
8158
  props: {
8185
8159
  factor: {
@@ -8199,7 +8173,7 @@ const mn = {
8199
8173
  texture: void 0,
8200
8174
  rampColor: void 0,
8201
8175
  aPositionBuffer: void 0,
8202
- webgl: new je(),
8176
+ webgl: new Ne(),
8203
8177
  etime: void 0,
8204
8178
  right: 10
8205
8179
  };
@@ -8256,7 +8230,7 @@ const mn = {
8256
8230
  //
8257
8231
  ];
8258
8232
  this.rampColor = this.webgl.setup(this.context, t);
8259
- const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, he.vertexSchema, he.fragmentSchema);
8233
+ const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
8260
8234
  this.program = e, this.aPositionBuffer = a;
8261
8235
  }
8262
8236
  },
@@ -8269,10 +8243,10 @@ const mn = {
8269
8243
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
8270
8244
  }
8271
8245
  }
8272
- }, dn = { key: 0 };
8273
- function hn(t, e, a, i, o, r) {
8246
+ }, hn = { key: 0 };
8247
+ function pn(t, e, a, i, o, r) {
8274
8248
  var s;
8275
- return (s = a.factor) != null && s.active ? (b(), S("div", dn, [
8249
+ return (s = a.factor) != null && s.active ? (b(), S("div", hn, [
8276
8250
  l("div", {
8277
8251
  class: "legend-bars-gl4 water-temp",
8278
8252
  style: ie({ right: o.right + "px" })
@@ -8286,8 +8260,8 @@ function hn(t, e, a, i, o, r) {
8286
8260
  ]), 4)
8287
8261
  ])) : D("", !0);
8288
8262
  }
8289
- const pn = /* @__PURE__ */ q(mn, [["render", hn]]);
8290
- const un = {
8263
+ const un = /* @__PURE__ */ q(dn, [["render", pn]]);
8264
+ const gn = {
8291
8265
  name: "IdmTemp",
8292
8266
  props: {
8293
8267
  factor: {
@@ -8315,7 +8289,7 @@ const un = {
8315
8289
  texture: void 0,
8316
8290
  rampColor: void 0,
8317
8291
  aPositionBuffer: void 0,
8318
- webgl: new je(),
8292
+ webgl: new Ne(),
8319
8293
  etime: void 0,
8320
8294
  right: 10
8321
8295
  };
@@ -8375,7 +8349,7 @@ const un = {
8375
8349
  [1, "rgb(138, 43, 10)"]
8376
8350
  ];
8377
8351
  this.rampColor = this.webgl.setup(this.context, t);
8378
- const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, he.vertexSchema, he.fragmentSchema);
8352
+ const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
8379
8353
  this.program = e, this.aPositionBuffer = a;
8380
8354
  }
8381
8355
  },
@@ -8388,10 +8362,10 @@ const un = {
8388
8362
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
8389
8363
  }
8390
8364
  }
8391
- }, gn = { key: 0 };
8392
- function fn(t, e, a, i, o, r) {
8365
+ }, fn = { key: 0 };
8366
+ function yn(t, e, a, i, o, r) {
8393
8367
  var s;
8394
- return (s = a.factor) != null && s.active ? (b(), S("div", gn, [
8368
+ return (s = a.factor) != null && s.active ? (b(), S("div", fn, [
8395
8369
  l("div", {
8396
8370
  class: "legend-bars-gl4 temp",
8397
8371
  style: ie({ right: o.right + "px" })
@@ -8407,8 +8381,8 @@ function fn(t, e, a, i, o, r) {
8407
8381
  ]), 4)
8408
8382
  ])) : D("", !0);
8409
8383
  }
8410
- const yn = /* @__PURE__ */ q(un, [["render", fn]]);
8411
- const bn = {
8384
+ const bn = /* @__PURE__ */ q(gn, [["render", yn]]);
8385
+ const wn = {
8412
8386
  name: "IdmGlLayer",
8413
8387
  components: {
8414
8388
  IdmWindBarb: ys,
@@ -8417,15 +8391,15 @@ const bn = {
8417
8391
  IdmCurrentParticle: Ts,
8418
8392
  IdmWave: As,
8419
8393
  IdmSigWaveHeight: Os,
8420
- IdmSwell: Ns,
8421
- IdmPrmsl: Us,
8422
- IdmIceEdge: Zs,
8423
- IdmIceCover: Xs,
8424
- IdmIceThickness: en,
8425
- IdmPrecip3h: rn,
8426
- IdmVisibility: cn,
8427
- IdmWaterTemp: pn,
8428
- IdmTemp: yn
8394
+ IdmSwell: js,
8395
+ IdmPrmsl: Ws,
8396
+ IdmIceEdge: qs,
8397
+ IdmIceCover: $s,
8398
+ IdmIceThickness: tn,
8399
+ IdmPrecip3h: ln,
8400
+ IdmVisibility: mn,
8401
+ IdmWaterTemp: un,
8402
+ IdmTemp: bn
8429
8403
  },
8430
8404
  props: {
8431
8405
  isLogin: {
@@ -8478,11 +8452,13 @@ const bn = {
8478
8452
  right: 10,
8479
8453
  toggle: !1,
8480
8454
  autoActive: !0,
8455
+ weatherWeight: 0,
8481
8456
  allLayers: [...ia.WEATHER_LAYERS],
8482
8457
  tagLayers: [...ia.WEATHER_LAYERS.filter((t) => !t.hide)],
8483
8458
  checkList: [],
8484
8459
  renderKey: "",
8485
8460
  iceToggleValue: void 0,
8461
+ waveToggleValue: void 0,
8486
8462
  weatherLayers: {},
8487
8463
  activeWeatherLayers: [],
8488
8464
  cache: {
@@ -8570,7 +8546,7 @@ const bn = {
8570
8546
  },
8571
8547
  map: {
8572
8548
  handler() {
8573
- this.map && (this.map.on("move", this.handleMove4Weather), this.viewport = new sa(this.map), this.handleRampColorInitial(), this.handleWeatherLayerChange(), this.$emit("weatherCheckList", this.checkList));
8549
+ this.map && (this.fetchCache(), this.map.on("move", this.handleMove4Weather), this.viewport = new sa(this.map), this.handleRampColorInitial());
8574
8550
  },
8575
8551
  immediate: !0
8576
8552
  },
@@ -8604,6 +8580,11 @@ const bn = {
8604
8580
  t && (this.checkList = ["ice-forecast", this.iceToggleValue]);
8605
8581
  }
8606
8582
  },
8583
+ waveToggleValue: {
8584
+ handler(t) {
8585
+ t && (this.checkList = ["wave-group", this.waveToggleValue]);
8586
+ }
8587
+ },
8607
8588
  showWindParticle: {
8608
8589
  handler(t) {
8609
8590
  let e = "wind-particle";
@@ -8624,7 +8605,6 @@ const bn = {
8624
8605
  }
8625
8606
  },
8626
8607
  mounted() {
8627
- this.fetchCache(), this.fetchWeatherLayers();
8628
8608
  },
8629
8609
  methods: {
8630
8610
  arraysEqual(t, e) {
@@ -8636,10 +8616,11 @@ const bn = {
8636
8616
  return !0;
8637
8617
  },
8638
8618
  fetchCache() {
8619
+ var a, i;
8639
8620
  const t = localStorage.getItem(this.cache.versionKey);
8640
8621
  this.cache.v !== t && (localStorage.removeItem(this.cache.autoActiveKey), localStorage.removeItem(this.cache.checkListKey), localStorage.setItem(this.cache.versionKey, this.cache.v));
8641
8622
  let e = localStorage.getItem(this.cache.autoActiveKey);
8642
- this.autoActive = e !== "false", localStorage.setItem(this.cache.autoActiveKey, this.autoActive), e = localStorage.getItem(this.cache.checkListKey), this.checkList = JSON.parse(e || "['wind', 'sig-wave-height']"), this.checkList.find((a) => this.rendersKeys.includes(a)) && (this.renderKey = this.checkList.find((a) => this.rendersKeys.includes(a))), localStorage.setItem(this.cache.checkListKey, JSON.stringify(this.checkList));
8623
+ this.autoActive = e !== "false", localStorage.setItem(this.cache.autoActiveKey, this.autoActive), e = localStorage.getItem(this.cache.checkListKey), this.waveToggleValue = (a = JSON.parse(e)) != null && a.some((o) => o === "swell") ? "swell" : void 0, this.iceToggleValue = (i = JSON.parse(e)) != null && i.some((o) => o === "ice-thickness") ? "ice-thickness" : void 0, this.checkList = JSON.parse(e || JSON.stringify(["wind", "sig-wave-height"])), this.checkList.find((o) => this.rendersKeys.includes(o)) && (this.renderKey = this.checkList.find((o) => this.rendersKeys.includes(o))), localStorage.setItem(this.cache.checkListKey, JSON.stringify(this.checkList));
8643
8624
  },
8644
8625
  handleMenuToggle() {
8645
8626
  this.$emit("menuToggle", "weatherLayers");
@@ -8652,13 +8633,13 @@ const bn = {
8652
8633
  if (this.arraysEqual(t, e))
8653
8634
  return !1;
8654
8635
  const a = [...new Set(t)], i = a == null ? void 0 : a.filter((r) => !(e != null && e.includes(r)))[0], o = e == null ? void 0 : e.filter((r) => !(a != null && a.includes(r)))[0];
8655
- i && (i === "ice-cover" || i === "ice-thickness" || i === "ice-forecast" ? (this.checkList = ["ice-forecast", this.iceToggleValue || "ice-cover"], this.iceToggleValue = this.iceToggleValue || "ice-cover") : this.rendersKeys.includes(i) ? this.checkList = [i] : (this.checkList = a.filter((r) => !this.rendersKeys.includes(r)), this.renderKey = void 0)), o && (o === "ice-forecast" ? (this.checkList = a.filter((r) => !["ice-cover", "ice-thickness", "ice-forecast"].includes(r)), this.iceToggleValue = void 0) : this.checkList = a), this.checkList.includes("wind-particle") && (this.showWindParticle = !0), this.checkList.includes("current-particle") && (this.showCurrentParticle = !0), localStorage.setItem(this.cache.checkListKey, JSON.stringify(a)), this.activeWeatherLayers = this.autoActive ? this.allLayers.filter((r) => a.includes(r.key)) : [], this.handleWeatherLayerChange();
8636
+ i && (i === "ice-cover" || i === "ice-thickness" || i === "ice-forecast" ? (this.checkList = ["ice-forecast", this.iceToggleValue || "ice-cover"], this.iceToggleValue = this.iceToggleValue || "ice-cover") : i === "wave-group" || i === "swell" || i === "sig-wave" ? (this.checkList = ["wave-group", this.waveToggleValue || "sig-wave"], this.waveToggleValue = this.waveToggleValue || "sig-wave") : this.rendersKeys.includes(i) ? this.checkList = [i] : (this.checkList = a.filter((r) => !this.rendersKeys.includes(r)), this.renderKey = void 0)), o && (o === "ice-forecast" ? (this.checkList = a.filter((r) => !["ice-cover", "ice-thickness", "ice-forecast"].includes(r)), this.iceToggleValue = void 0) : o === "wave-group" ? (this.checkList = a.filter((r) => !["wave-group", "sig-wave", "swell"].includes(r)), this.waveToggleValue = void 0) : this.checkList = a), this.checkList.includes("wind-particle") && (this.showWindParticle = !0), this.checkList.includes("current-particle") && (this.showCurrentParticle = !0), localStorage.setItem(this.cache.checkListKey, JSON.stringify(a)), this.activeWeatherLayers = this.autoActive ? this.allLayers.filter((r) => a.includes(r.key)) : [], this.handleWeatherLayerChange();
8656
8637
  },
8657
8638
  async fetchModels() {
8658
8639
  this.models = {};
8659
8640
  const t = await Se.get(`${this.gateway}/api/arc/meteo2/models2`, {
8660
8641
  headers: {
8661
- Authorization: this.token || this.defaultMeteoToken
8642
+ Authorization: this.defaultMeteoToken
8662
8643
  }
8663
8644
  });
8664
8645
  (t == null ? void 0 : t.data.code) === 0 && (this.models = t == null ? void 0 : t.data.data);
@@ -8668,65 +8649,65 @@ const bn = {
8668
8649
  const e = (/* @__PURE__ */ new Date()).valueOf();
8669
8650
  let a = 0, i = 0;
8670
8651
  if (this.map) {
8671
- const v = ((o = this.map) == null ? void 0 : o.getZoom()) + 1, y = (r = this.map) == null ? void 0 : r.getBounds(), k = `${y._sw.lng},${y._sw.lat},${y._ne.lng},${y._ne.lat}`;
8652
+ const v = ((o = this.map) == null ? void 0 : o.getZoom()) + 1, y = (r = this.map) == null ? void 0 : r.getBounds(), C = `${y._sw.lng},${y._sw.lat},${y._ne.lng},${y._ne.lat}`;
8672
8653
  if (this.particleFactor && ((s = this.$refs.layer) != null && s.autoActive)) {
8673
- const T = ia.WEATHER_LAYERS.find((R) => {
8654
+ const T = ia.WEATHER_LAYERS.find((B) => {
8674
8655
  var I;
8675
- return ((I = R.peer) == null ? void 0 : I.weight) === this.particleFactor.weight;
8656
+ return ((I = B.peer) == null ? void 0 : I.weight) === this.particleFactor.weight;
8676
8657
  });
8677
8658
  this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight & T.weight ? this.weatherWeight : this.weatherWeight + T.weight : this.weatherWeight = this.weatherWeight & T.weight ? this.weatherWeight - T.weight : this.weatherWeight;
8678
8659
  }
8679
8660
  if (this.weatherWeight > 0) {
8680
8661
  let T = this.weatherWeight;
8681
8662
  if (T > 0) {
8682
- const R = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], I = await Se.get(
8683
- `${R}/api/arc/weather/layers2/links?l=${T}&v=${this.forecastModel}&z=${v}&bbox=${k}&t=${this.realTime}`,
8663
+ const B = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], I = await Se.get(
8664
+ `${B}/api/arc/weather/layers2/links?l=${T}&v=${this.forecastModel}&z=${v}&bbox=${C}&t=${this.realTime}`,
8684
8665
  {
8685
8666
  headers: {
8686
- Authorization: this.token || this.defaultMeteoToken
8667
+ Authorization: this.defaultMeteoToken
8687
8668
  }
8688
8669
  }
8689
8670
  );
8690
8671
  if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + a), console.log("weather links elapsed: ", i, ", total: ", a += i), ((c = I == null ? void 0 : I.data) == null ? void 0 : c.code) === 0) {
8691
- const P = (n = I == null ? void 0 : I.data) == null ? void 0 : n.data, _ = [];
8692
- for (const C in P)
8672
+ const L = (n = I == null ? void 0 : I.data) == null ? void 0 : n.data, _ = [];
8673
+ for (const P in L)
8693
8674
  _.push(
8694
- Se.get(P[C], {
8675
+ Se.get(L[P], {
8695
8676
  headers: {
8696
- Authorization: this.token || this.defaultMeteoToken,
8697
- key: C
8677
+ Authorization: this.defaultMeteoToken,
8678
+ key: P
8698
8679
  },
8699
- responseType: /\.(jpg|png)$/.test(P[C]) ? "blob" : "json"
8700
- }).catch((L) => {
8701
- console.log(`[${C}] fetch layer error: ${L}`);
8680
+ responseType: /\.(jpg|png)$/.test(L[P]) ? "blob" : "json"
8681
+ }).catch((z) => {
8682
+ console.log(`[${P}] fetch layer error: ${z}`);
8702
8683
  })
8703
8684
  );
8704
- const z = await Promise.all(_);
8705
- this.weatherLayers = {}, z.map((C) => {
8685
+ const k = await Promise.all(_);
8686
+ this.weatherLayers = {}, k.map((P) => {
8706
8687
  var G, Y, K, V;
8707
- const L = ((G = C == null ? void 0 : C.data) == null ? void 0 : G.data) || (C == null ? void 0 : C.data);
8708
- let O = (K = (Y = C == null ? void 0 : C.config) == null ? void 0 : Y.headers) == null ? void 0 : K.key;
8709
- O && L && (this.weatherLayers[O] = {
8710
- raw: L,
8711
- type: ((V = C == null ? void 0 : C.config) == null ? void 0 : V.responseType) === "blob" ? "image" : "json",
8688
+ const z = ((G = P == null ? void 0 : P.data) == null ? void 0 : G.data) || (P == null ? void 0 : P.data);
8689
+ let R = (K = (Y = P == null ? void 0 : P.config) == null ? void 0 : Y.headers) == null ? void 0 : K.key;
8690
+ R && z && (this.weatherLayers[R] = {
8691
+ raw: z,
8692
+ type: ((V = P == null ? void 0 : P.config) == null ? void 0 : V.responseType) === "blob" ? "image" : "json",
8712
8693
  etime: I.data.etime
8713
8694
  });
8714
8695
  });
8715
8696
  }
8716
8697
  if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + a), console.log("weather layers elapsed: ", i, ", total: ", a += i), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
8717
- const P = (g = this.weatherLayers["swell-direction"]) == null ? void 0 : g.raw, _ = (p = this.weatherLayers["swell-height"]) == null ? void 0 : p.raw;
8698
+ const L = (g = this.weatherLayers["swell-direction"]) == null ? void 0 : g.raw, _ = (p = this.weatherLayers["swell-height"]) == null ? void 0 : p.raw;
8718
8699
  delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
8719
8700
  type: "json",
8720
- direction: P,
8701
+ direction: L,
8721
8702
  height: { raw: _ },
8722
8703
  etime: I.data.etime
8723
8704
  };
8724
8705
  }
8725
8706
  if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
8726
- const P = (f = this.weatherLayers["current-direction"]) == null ? void 0 : f.raw, _ = (w = this.weatherLayers["current-speed"]) == null ? void 0 : w.raw;
8707
+ const L = (f = this.weatherLayers["current-direction"]) == null ? void 0 : f.raw, _ = (w = this.weatherLayers["current-speed"]) == null ? void 0 : w.raw;
8727
8708
  delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
8728
8709
  type: "json",
8729
- direction: P,
8710
+ direction: L,
8730
8711
  speed: { raw: _ },
8731
8712
  etime: I.data.etime
8732
8713
  };
@@ -8784,51 +8765,51 @@ const bn = {
8784
8765
  );
8785
8766
  },
8786
8767
  handleDrawWeather4Json() {
8787
- var g, p, f, w, v, y, k;
8768
+ var g, p, f, w, v, y, C;
8788
8769
  const t = (/* @__PURE__ */ new Date()).valueOf();
8789
8770
  let e = 0, a = 0;
8790
8771
  const i = (g = this.map) == null ? void 0 : g.getBounds(), o = (p = this.map) == null ? void 0 : p.getZoom(), r = $.convertToStdLng(i._sw.lng), s = $.convertToStdLng(i._ne.lng), c = Math.floor(i._sw.lat), n = Math.ceil(i._ne.lat);
8791
8772
  for (const T in this.weatherLayers) {
8792
- let R = !1;
8773
+ let B = !1;
8793
8774
  if (this.weatherLayers[T].active && this.weatherLayers[T].type === "json") {
8794
8775
  let I = [];
8795
8776
  if (T === "swell") {
8796
- R = !0;
8797
- const P = ((f = this.weatherLayers[T]) == null ? void 0 : f.direction) || {};
8798
- for (const z in P)
8799
- if (z > c && z < n && (!(o <= this.zoom) || z % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8800
- const C = P[z].lng;
8801
- r > s ? C.forEach((L, O) => {
8777
+ B = !0;
8778
+ const L = ((f = this.weatherLayers[T]) == null ? void 0 : f.direction) || {};
8779
+ for (const k in L)
8780
+ if (k > c && k < n && (!(o <= this.zoom) || k % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8781
+ const P = L[k].lng;
8782
+ r > s ? P.forEach((z, R) => {
8802
8783
  var G, Y, K, V, J, ee;
8803
8784
  if (o < 2) {
8804
- if ((L >= 0 && L <= 360 || L >= -360 && L <= 0) && L % 10 === 0) {
8805
- const Q = H.point([L, z], {
8806
- val: ((G = P[z].val) == null ? void 0 : G[O]) || ((Y = P[z].dir) == null ? void 0 : Y[O]),
8807
- spd: (K = P[z].spd) == null ? void 0 : K[O]
8785
+ if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
8786
+ const Q = U.point([z, k], {
8787
+ val: ((G = L[k].val) == null ? void 0 : G[R]) || ((Y = L[k].dir) == null ? void 0 : Y[R]),
8788
+ spd: (K = L[k].spd) == null ? void 0 : K[R]
8808
8789
  });
8809
8790
  I.push(Q);
8810
8791
  }
8811
- } else if ((L >= r && L <= 180 || L >= -180 && L <= s) && (!(o <= this.zoom) || L % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8812
- const Q = H.point([L, z], {
8813
- val: ((V = P[z].val) == null ? void 0 : V[O]) || ((J = P[z].dir) == null ? void 0 : J[O]),
8814
- spd: (ee = P[z].spd) == null ? void 0 : ee[O]
8792
+ } else if ((z >= r && z <= 180 || z >= -180 && z <= s) && (!(o <= this.zoom) || z % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8793
+ const Q = U.point([z, k], {
8794
+ val: ((V = L[k].val) == null ? void 0 : V[R]) || ((J = L[k].dir) == null ? void 0 : J[R]),
8795
+ spd: (ee = L[k].spd) == null ? void 0 : ee[R]
8815
8796
  });
8816
8797
  I.push(Q);
8817
8798
  }
8818
- }) : C.forEach((L, O) => {
8799
+ }) : P.forEach((z, R) => {
8819
8800
  var G, Y, K, V, J, ee;
8820
8801
  if (r < 2) {
8821
- if ((L >= 0 && L <= 360 || L >= -360 && L <= 0) && L % 10 === 0) {
8822
- const Q = H.point([L, z], {
8823
- val: ((G = P[z].val) == null ? void 0 : G[O]) || ((Y = P[z].dir) == null ? void 0 : Y[O]),
8824
- spd: (K = P[z].spd) == null ? void 0 : K[O]
8802
+ if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
8803
+ const Q = U.point([z, k], {
8804
+ val: ((G = L[k].val) == null ? void 0 : G[R]) || ((Y = L[k].dir) == null ? void 0 : Y[R]),
8805
+ spd: (K = L[k].spd) == null ? void 0 : K[R]
8825
8806
  });
8826
8807
  I.push(Q);
8827
8808
  }
8828
- } else if (L >= r && L <= s && (!(o <= this.zoom) || L % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8829
- const Q = H.point([L, z], {
8830
- val: ((V = P[z].val) == null ? void 0 : V[O]) || ((J = P[z].dir) == null ? void 0 : J[O]),
8831
- spd: (ee = P[z].spd) == null ? void 0 : ee[O]
8809
+ } else if (z >= r && z <= s && (!(o <= this.zoom) || z % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8810
+ const Q = U.point([z, k], {
8811
+ val: ((V = L[k].val) == null ? void 0 : V[R]) || ((J = L[k].dir) == null ? void 0 : J[R]),
8812
+ spd: (ee = L[k].spd) == null ? void 0 : ee[R]
8832
8813
  });
8833
8814
  I.push(Q);
8834
8815
  }
@@ -8838,61 +8819,61 @@ const bn = {
8838
8819
  const _ = this.weatherLayers[T].height;
8839
8820
  if (_) {
8840
8821
  if (!_.data) {
8841
- const z = [];
8842
- for (const C in (w = _.raw) == null ? void 0 : w.LineString) {
8843
- const L = _.raw.LineString[C];
8844
- for (const O of L)
8845
- z.push(
8846
- H.lineString(O, {
8847
- val: Number(C)
8822
+ const k = [];
8823
+ for (const P in (w = _.raw) == null ? void 0 : w.LineString) {
8824
+ const z = _.raw.LineString[P];
8825
+ for (const R of z)
8826
+ k.push(
8827
+ U.lineString(R, {
8828
+ val: Number(P)
8848
8829
  })
8849
8830
  );
8850
- _.data = H.featureCollection(z);
8831
+ _.data = U.featureCollection(k);
8851
8832
  }
8852
8833
  }
8853
8834
  if (_.data) {
8854
- const z = this.handleBboxClip(_.data, i);
8855
- I = I.concat(z);
8835
+ const k = this.handleBboxClip(_.data, i);
8836
+ I = I.concat(k);
8856
8837
  }
8857
8838
  a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", a, ", total: ", e += a);
8858
8839
  }
8859
8840
  } else if (T === "current") {
8860
- R = !0;
8861
- const P = ((v = this.weatherLayers[T]) == null ? void 0 : v.direction) || {};
8862
- for (const z in P)
8863
- if (z > c && z < n && (!(o <= this.zoom) || z % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8864
- const C = P[z].lng;
8865
- r > s ? C.forEach((L, O) => {
8841
+ B = !0;
8842
+ const L = ((v = this.weatherLayers[T]) == null ? void 0 : v.direction) || {};
8843
+ for (const k in L)
8844
+ if (k > c && k < n && (!(o <= this.zoom) || k % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8845
+ const P = L[k].lng;
8846
+ r > s ? P.forEach((z, R) => {
8866
8847
  var G, Y, K, V, J, ee;
8867
8848
  if (o < 2) {
8868
- if ((L >= 0 && L <= 360 || L >= -360 && L <= 0) && L % 10 === 0) {
8869
- const Q = H.point([L, z], {
8870
- val: ((G = P[z].val) == null ? void 0 : G[O]) || ((Y = P[z].dir) == null ? void 0 : Y[O]),
8871
- spd: (K = P[z].spd) == null ? void 0 : K[O]
8849
+ if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
8850
+ const Q = U.point([z, k], {
8851
+ val: ((G = L[k].val) == null ? void 0 : G[R]) || ((Y = L[k].dir) == null ? void 0 : Y[R]),
8852
+ spd: (K = L[k].spd) == null ? void 0 : K[R]
8872
8853
  });
8873
8854
  I.push(Q);
8874
8855
  }
8875
- } else if ((L >= r && L <= 180 || L >= -180 && L <= s) && (!(o <= this.zoom) || L % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8876
- const Q = H.point([L, z], {
8877
- val: ((V = P[z].val) == null ? void 0 : V[O]) || ((J = P[z].dir) == null ? void 0 : J[O]),
8878
- spd: (ee = P[z].spd) == null ? void 0 : ee[O]
8856
+ } else if ((z >= r && z <= 180 || z >= -180 && z <= s) && (!(o <= this.zoom) || z % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8857
+ const Q = U.point([z, k], {
8858
+ val: ((V = L[k].val) == null ? void 0 : V[R]) || ((J = L[k].dir) == null ? void 0 : J[R]),
8859
+ spd: (ee = L[k].spd) == null ? void 0 : ee[R]
8879
8860
  });
8880
8861
  I.push(Q);
8881
8862
  }
8882
- }) : C.forEach((L, O) => {
8863
+ }) : P.forEach((z, R) => {
8883
8864
  var G, Y, K, V, J, ee;
8884
8865
  if (r < 2) {
8885
- if ((L >= 0 && L <= 360 || L >= -360 && L <= 0) && L % 10 === 0) {
8886
- const Q = H.point([L, z], {
8887
- val: ((G = P[z].val) == null ? void 0 : G[O]) || ((Y = P[z].dir) == null ? void 0 : Y[O]),
8888
- spd: (K = P[z].spd) == null ? void 0 : K[O]
8866
+ if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
8867
+ const Q = U.point([z, k], {
8868
+ val: ((G = L[k].val) == null ? void 0 : G[R]) || ((Y = L[k].dir) == null ? void 0 : Y[R]),
8869
+ spd: (K = L[k].spd) == null ? void 0 : K[R]
8889
8870
  });
8890
8871
  I.push(Q);
8891
8872
  }
8892
- } else if (L >= r && L <= s && (!(o <= this.zoom) || L % (o < this.zoom / 2 ? 5 : 3) === 0)) {
8893
- const Q = H.point([L, z], {
8894
- val: ((V = P[z].val) == null ? void 0 : V[O]) || ((J = P[z].dir) == null ? void 0 : J[O]),
8895
- spd: (ee = P[z].spd) == null ? void 0 : ee[O]
8873
+ } else if (z >= r && z <= s && (!(o <= this.zoom) || z % (o < this.zoom / 2 ? 5 : 3) === 0)) {
8874
+ const Q = U.point([z, k], {
8875
+ val: ((V = L[k].val) == null ? void 0 : V[R]) || ((J = L[k].dir) == null ? void 0 : J[R]),
8876
+ spd: (ee = L[k].spd) == null ? void 0 : ee[R]
8896
8877
  });
8897
8878
  I.push(Q);
8898
8879
  }
@@ -8902,58 +8883,58 @@ const bn = {
8902
8883
  const _ = this.weatherLayers[T].speed;
8903
8884
  if (_) {
8904
8885
  if (!_.data) {
8905
- const C = [];
8906
- for (const L in (y = _.raw) == null ? void 0 : y.Polygon) {
8907
- const O = _.raw.Polygon[L];
8908
- for (const G of O)
8909
- C.push(
8910
- H.polygon(G, {
8911
- val: Number(L)
8886
+ const P = [];
8887
+ for (const z in (y = _.raw) == null ? void 0 : y.Polygon) {
8888
+ const R = _.raw.Polygon[z];
8889
+ for (const G of R)
8890
+ P.push(
8891
+ U.polygon(G, {
8892
+ val: Number(z)
8912
8893
  })
8913
8894
  );
8914
8895
  }
8915
- _.data = H.featureCollection(C);
8896
+ _.data = U.featureCollection(P);
8916
8897
  }
8917
- const z = o < this.zoom ? _.data.features.filter((C) => C.properties.val > 0.5) : _.data.features;
8918
- I = I.concat(z), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", a, ", total: ", e += a);
8898
+ const k = o < this.zoom ? _.data.features.filter((P) => P.properties.val > 0.5) : _.data.features;
8899
+ I = I.concat(k), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", a, ", total: ", e += a);
8919
8900
  }
8920
8901
  } else if (T === "wind") {
8921
- R = !0;
8922
- const P = this.weatherLayers.wind.raw;
8923
- for (const _ in P)
8902
+ B = !0;
8903
+ const L = this.weatherLayers.wind.raw;
8904
+ for (const _ in L)
8924
8905
  if (_ > c && _ < n && (!(o <= this.zoom) || _ % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8925
- const z = P[_].lng;
8926
- r > s ? z.forEach((C, L) => {
8927
- var O, G, Y, K;
8906
+ const k = L[_].lng;
8907
+ r > s ? k.forEach((P, z) => {
8908
+ var R, G, Y, K;
8928
8909
  if (o < 2) {
8929
- if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
8930
- const V = H.point([C, _], {
8931
- dir: ((O = P[_].val) == null ? void 0 : O[L]) || ((G = P[_].dir) == null ? void 0 : G[L]),
8932
- spd: P[_].spd[L]
8910
+ if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
8911
+ const V = U.point([P, _], {
8912
+ dir: ((R = L[_].val) == null ? void 0 : R[z]) || ((G = L[_].dir) == null ? void 0 : G[z]),
8913
+ spd: L[_].spd[z]
8933
8914
  });
8934
8915
  I.push(V);
8935
8916
  }
8936
- } else if ((C >= r && C <= 180 || C >= -180 && C <= s) && (!(o <= this.zoom) || C % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8937
- const V = H.point([C, _], {
8938
- dir: ((Y = P[_].val) == null ? void 0 : Y[L]) || ((K = P[_].dir) == null ? void 0 : K[L]),
8939
- spd: P[_].spd[L]
8917
+ } else if ((P >= r && P <= 180 || P >= -180 && P <= s) && (!(o <= this.zoom) || P % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8918
+ const V = U.point([P, _], {
8919
+ dir: ((Y = L[_].val) == null ? void 0 : Y[z]) || ((K = L[_].dir) == null ? void 0 : K[z]),
8920
+ spd: L[_].spd[z]
8940
8921
  });
8941
8922
  I.push(V);
8942
8923
  }
8943
- }) : z.forEach((C, L) => {
8944
- var O, G, Y, K;
8924
+ }) : k.forEach((P, z) => {
8925
+ var R, G, Y, K;
8945
8926
  if (o < 2) {
8946
- if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
8947
- const V = H.point([C, _], {
8948
- dir: ((O = P[_].val) == null ? void 0 : O[L]) || ((G = P[_].dir) == null ? void 0 : G[L]),
8949
- spd: P[_].spd[L]
8927
+ if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
8928
+ const V = U.point([P, _], {
8929
+ dir: ((R = L[_].val) == null ? void 0 : R[z]) || ((G = L[_].dir) == null ? void 0 : G[z]),
8930
+ spd: L[_].spd[z]
8950
8931
  });
8951
8932
  I.push(V);
8952
8933
  }
8953
- } else if (C >= r && C <= s && (!(o <= this.zoom) || C % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8954
- const V = H.point([C, _], {
8955
- dir: ((Y = P[_].val) == null ? void 0 : Y[L]) || ((K = P[_].dir) == null ? void 0 : K[L]),
8956
- spd: P[_].spd[L]
8934
+ } else if (P >= r && P <= s && (!(o <= this.zoom) || P % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8935
+ const V = U.point([P, _], {
8936
+ dir: ((Y = L[_].val) == null ? void 0 : Y[z]) || ((K = L[_].dir) == null ? void 0 : K[z]),
8937
+ spd: L[_].spd[z]
8957
8938
  });
8958
8939
  I.push(V);
8959
8940
  }
@@ -8964,34 +8945,34 @@ const bn = {
8964
8945
  if (this.weatherLayers[T].data)
8965
8946
  I = this.weatherLayers[T].data;
8966
8947
  else {
8967
- R = !0;
8968
- const P = this.weatherLayers[T].raw;
8969
- if (P) {
8948
+ B = !0;
8949
+ const L = this.weatherLayers[T].raw;
8950
+ if (L) {
8970
8951
  const _ = [];
8971
- for (const z in P.Polygon) {
8972
- const C = P.Polygon[z];
8973
- for (const L of C)
8952
+ for (const k in L.Polygon) {
8953
+ const P = L.Polygon[k];
8954
+ for (const z of P)
8974
8955
  _.push(
8975
- H.polygon(L, {
8976
- val: Number(z)
8956
+ U.polygon(z, {
8957
+ val: Number(k)
8977
8958
  })
8978
8959
  );
8979
8960
  }
8980
- for (const z in P.MultiPolygon) {
8981
- const C = P.MultiPolygon[z];
8982
- for (const L of C)
8961
+ for (const k in L.MultiPolygon) {
8962
+ const P = L.MultiPolygon[k];
8963
+ for (const z of P)
8983
8964
  _.push(
8984
- H.multiPolygon(L, {
8985
- val: Number(z)
8965
+ U.multiPolygon(z, {
8966
+ val: Number(k)
8986
8967
  })
8987
8968
  );
8988
8969
  }
8989
- for (const z in P.Point) {
8990
- const C = P.Point[z];
8991
- for (let L = 0; L < ((k = C.lng) == null ? void 0 : k.length); L++)
8970
+ for (const k in L.Point) {
8971
+ const P = L.Point[k];
8972
+ for (let z = 0; z < ((C = P.lng) == null ? void 0 : C.length); z++)
8992
8973
  _.push(
8993
- H.point([C.lng[L], z], {
8994
- val: Number(C.val[L])
8974
+ U.point([P.lng[z], k], {
8975
+ val: Number(P.val[z])
8995
8976
  })
8996
8977
  );
8997
8978
  }
@@ -9003,25 +8984,25 @@ const bn = {
9003
8984
  if (this.weatherLayers[T].data)
9004
8985
  I = this.weatherLayers[T].data;
9005
8986
  else {
9006
- R = !0;
9007
- const P = this.weatherLayers[T].raw;
9008
- if (P) {
8987
+ B = !0;
8988
+ const L = this.weatherLayers[T].raw;
8989
+ if (L) {
9009
8990
  const _ = [];
9010
- for (const z in P.LineString) {
9011
- const C = P.LineString[z];
9012
- for (const L of C)
8991
+ for (const k in L.LineString) {
8992
+ const P = L.LineString[k];
8993
+ for (const z of P)
9013
8994
  _.push(
9014
- H.lineString(L, {
9015
- val: Number(z)
8995
+ U.lineString(z, {
8996
+ val: Number(k)
9016
8997
  })
9017
8998
  );
9018
8999
  }
9019
- for (const z in P.Point)
9020
- P.Point[z].lng.forEach((C, L) => {
9021
- C = $.convertToStdLng(C), _.push(
9022
- H.point([C, z], {
9023
- val: P.Point[z].val[L],
9024
- type: P.Point[z].type[L]
9000
+ for (const k in L.Point)
9001
+ L.Point[k].lng.forEach((P, z) => {
9002
+ P = $.convertToStdLng(P), _.push(
9003
+ U.point([P, k], {
9004
+ val: L.Point[k].val[z],
9005
+ type: L.Point[k].type[z]
9025
9006
  })
9026
9007
  );
9027
9008
  });
@@ -9030,7 +9011,7 @@ const bn = {
9030
9011
  }
9031
9012
  a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", a, ", total: ", e += a);
9032
9013
  }
9033
- I.length && (this.weatherLayers[T].data = H.featureCollection(I)), R && (this.weatherLayers[T].version = Math.random() + 1);
9014
+ I.length && (this.weatherLayers[T].data = U.featureCollection(I)), B && (this.weatherLayers[T].version = Math.random() + 1);
9034
9015
  }
9035
9016
  }
9036
9017
  },
@@ -9044,10 +9025,10 @@ const bn = {
9044
9025
  return t.features.forEach((r) => {
9045
9026
  if (r.geometry.type !== "Point")
9046
9027
  if (i > o) {
9047
- let s = [i, e._sw.lat, 180, e._ne.lat], c = H.bboxClip(r, s);
9048
- c.geometry.coordinates.length && a.push(c), s = [-180, e._sw.lat, o, e._ne.lat], c = H.bboxClip(r, s), c.geometry.coordinates.length && a.push(c);
9028
+ let s = [i, e._sw.lat, 180, e._ne.lat], c = U.bboxClip(r, s);
9029
+ c.geometry.coordinates.length && a.push(c), s = [-180, e._sw.lat, o, e._ne.lat], c = U.bboxClip(r, s), c.geometry.coordinates.length && a.push(c);
9049
9030
  } else {
9050
- const s = [i, e._sw.lat, o, e._ne.lat], c = H.bboxClip(r, s);
9031
+ const s = [i, e._sw.lat, o, e._ne.lat], c = U.bboxClip(r, s);
9051
9032
  c.geometry.coordinates.length && a.push(c);
9052
9033
  }
9053
9034
  else
@@ -9055,26 +9036,26 @@ const bn = {
9055
9036
  }), a;
9056
9037
  }
9057
9038
  }
9058
- }, wn = { class: "idm-gl4-meteo-layers" }, xn = {
9039
+ }, xn = { class: "idm-gl4-meteo-layers" }, vn = {
9059
9040
  key: 0,
9060
9041
  class: "legend-tip-btn-gl4"
9061
- }, vn = { class: "d-flex flex-row justify-center align-center" }, _n = { class: "text-caption" }, kn = { class: "d-flex flex-row justify-center align-center" }, zn = {
9042
+ }, _n = { class: "d-flex flex-row justify-center align-center" }, kn = { class: "text-caption" }, zn = { class: "d-flex flex-row justify-center align-center" }, Ln = {
9062
9043
  key: 0,
9063
9044
  style: { width: "24px", height: "12px", border: "1px solid rgba(var(--v-border-color), var(--v-border-opacity))" }
9064
- }, Ln = { class: "text-caption px-2" }, Pn = { class: "d-flex flex-row justify-start align-center" }, Cn = {
9045
+ }, Pn = { class: "text-caption px-2" }, Cn = { class: "d-flex flex-row justify-start align-center" }, Tn = {
9065
9046
  class: "d-flex flex-row justify-center align-center",
9066
9047
  style: { width: "40px" }
9067
- }, Tn = { class: "text-caption px-2" }, Sn = { class: "header-box d-flex justify-space-between align-center pl-4 pr-4" }, In = { class: "d-flex justify-start align-center ga-3" }, Mn = { class: "text-h5 font-weight-medium" }, An = {
9048
+ }, Sn = { class: "text-caption px-2" }, In = { class: "header-box d-flex justify-space-between align-center pl-4 pr-4" }, Mn = { class: "d-flex justify-start align-center ga-3" }, An = { class: "text-h5 font-weight-medium" }, Dn = {
9068
9049
  key: 0,
9069
9050
  class: "d-flex justify-start align-center ga-4 pl-6"
9070
- }, Dn = {
9051
+ }, Rn = {
9071
9052
  key: 1,
9072
9053
  class: "d-flex justify-start align-center ga-4 pl-6"
9073
- }, Rn = { class: "text-body-1 py-2" }, On = { class: "text-body-1 font-weight-medium" }, Bn = { class: "text-body-2 text-label" }, En = { class: "text-body-2 text-label mb-3" }, Nn = { class: "text-body-1 font-weight-medium" }, jn = { class: "text-body-2 text-label" }, Fn = { class: "text-body-2 text-label mb-3" }, Hn = { class: "text-body-1 py-2" }, Un = { class: "text-body-1 font-weight-medium" }, Wn = { class: "text-body-2 text-label" }, Gn = { class: "text-body-2 text-label mb-3" }, Vn = { class: "text-body-1 font-weight-medium" }, Zn = { class: "text-body-2 text-label" }, qn = { class: "text-body-2 text-label mb-3" }, Yn = { class: "text-body-1 py-2" }, Kn = { class: "text-body-1 font-weight-medium" }, Xn = { class: "text-body-2 text-label" }, $n = { class: "text-body-2 text-label mb-3" };
9074
- function Qn(t, e, a, i, o, r) {
9075
- var pe, se, X, oe, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e;
9076
- const s = x("VBtn"), c = x("VTooltip"), n = x("VCol"), g = x("VRow"), p = x("VCardText"), f = x("VDivider"), w = x("VCard"), v = x("VSwitch"), y = x("VCardTitle"), k = x("VCardItem"), T = x("VCheckbox"), R = x("VRadio"), I = x("VBtnToggle"), P = x("IdmWindBarb"), _ = x("IdmSigWaveHeight"), z = x("IdmCurrentDirection"), C = x("IdmPrmsl"), L = x("IdmWindParticle"), O = x("IdmCurrentParticle"), G = x("IdmWave"), Y = x("IdmSwell"), K = x("IdmIceEdge"), V = x("IdmIceCover"), J = x("IdmIceThickness"), ee = x("IdmPrecip3h"), Q = x("IdmVisibility"), re = x("IdmWaterTemp"), de = x("IdmTemp");
9077
- return b(), S("div", wn, [
9054
+ }, On = { class: "text-body-1 py-2" }, Bn = { class: "text-body-1 font-weight-medium" }, En = { class: "text-body-2 text-label" }, Nn = { class: "text-body-2 text-label mb-3" }, jn = { class: "text-body-1 font-weight-medium" }, Fn = { class: "text-body-2 text-label" }, Hn = { class: "text-body-2 text-label mb-3" }, Un = { class: "text-body-1 py-2" }, Wn = { class: "text-body-1 font-weight-medium" }, Gn = { class: "text-body-2 text-label" }, Vn = { class: "text-body-2 text-label mb-3" }, Zn = { class: "text-body-1 font-weight-medium" }, qn = { class: "text-body-2 text-label" }, Yn = { class: "text-body-2 text-label mb-3" }, Kn = { class: "text-body-1 py-2" }, Xn = { class: "text-body-1 font-weight-medium" }, $n = { class: "text-body-2 text-label" }, Qn = { class: "text-body-2 text-label mb-3" };
9055
+ function Jn(t, e, a, i, o, r) {
9056
+ var pe, ne, X, oe, ue, ce, F, me, xe, Le, Pe, Ae, De, Re, _e;
9057
+ const s = x("VBtn"), c = x("VTooltip"), n = x("VCol"), g = x("VRow"), p = x("VCardText"), f = x("VDivider"), w = x("VCard"), v = x("VSwitch"), y = x("VCardTitle"), C = x("VCardItem"), T = x("VCheckbox"), B = x("VRadio"), I = x("VBtnToggle"), L = x("IdmWindBarb"), _ = x("IdmSigWaveHeight"), k = x("IdmCurrentDirection"), P = x("IdmPrmsl"), z = x("IdmWindParticle"), R = x("IdmCurrentParticle"), G = x("IdmWave"), Y = x("IdmSwell"), K = x("IdmIceEdge"), V = x("IdmIceCover"), J = x("IdmIceThickness"), ee = x("IdmPrecip3h"), Q = x("IdmVisibility"), re = x("IdmWaterTemp"), he = x("IdmTemp");
9058
+ return b(), S("div", xn, [
9078
9059
  l("div", {
9079
9060
  class: "menu-bar-box transition pa-1",
9080
9061
  style: ie({ top: a.top + 94 + "px", right: o.right + "px" })
@@ -9083,25 +9064,25 @@ function Qn(t, e, a, i, o, r) {
9083
9064
  text: t.$t("weather.weatherLayers"),
9084
9065
  location: "left"
9085
9066
  }, {
9086
- activator: u(({ props: U }) => [
9087
- d(s, B(U, {
9067
+ activator: u(({ props: H }) => [
9068
+ d(s, O(H, {
9088
9069
  "min-width": "32",
9089
9070
  width: "32",
9090
9071
  height: "32",
9091
9072
  class: ["text-none pa-0", o.toggle ? "bg-primary active-border" : ""],
9092
9073
  onClick: r.handleMenuToggle
9093
9074
  }), {
9094
- default: u(() => e[7] || (e[7] = [
9075
+ default: u(() => e[8] || (e[8] = [
9095
9076
  l("i", { class: "iconfont icon-Weather text-h4" }, null, -1)
9096
9077
  ])),
9097
9078
  _: 2,
9098
- __: [7]
9079
+ __: [8]
9099
9080
  }, 1040, ["class", "onClick"])
9100
9081
  ]),
9101
9082
  _: 1
9102
9083
  }, 8, ["text"])
9103
9084
  ], 4),
9104
- r.showTipMenu ? (b(), S("div", xn, [
9085
+ r.showTipMenu ? (b(), S("div", vn, [
9105
9086
  l("div", {
9106
9087
  class: "menu-bar-box pa-1 rounded",
9107
9088
  style: ie({ right: o.right + "px" })
@@ -9110,19 +9091,19 @@ function Qn(t, e, a, i, o, r) {
9110
9091
  text: "Legend",
9111
9092
  location: "left"
9112
9093
  }, {
9113
- activator: u(({ props: U }) => [
9114
- d(s, B(U, {
9094
+ activator: u(({ props: H }) => [
9095
+ d(s, O(H, {
9115
9096
  "min-width": "32",
9116
9097
  width: "32",
9117
9098
  height: "32",
9118
9099
  class: ["text-none pa-0", o.legendToggle ? "bg-primary active-border" : ""],
9119
- onClick: e[0] || (e[0] = (ae) => o.legendToggle = !o.legendToggle)
9100
+ onClick: e[0] || (e[0] = (te) => o.legendToggle = !o.legendToggle)
9120
9101
  }), {
9121
- default: u(() => e[8] || (e[8] = [
9102
+ default: u(() => e[9] || (e[9] = [
9122
9103
  l("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
9123
9104
  ])),
9124
9105
  _: 2,
9125
- __: [8]
9106
+ __: [9]
9126
9107
  }, 1040, ["class"])
9127
9108
  ]),
9128
9109
  _: 1
@@ -9138,21 +9119,21 @@ function Qn(t, e, a, i, o, r) {
9138
9119
  default: u(() => [
9139
9120
  d(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
9140
9121
  default: u(() => [
9141
- e[9] || (e[9] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wind Level", -1)),
9122
+ e[10] || (e[10] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wind Level", -1)),
9142
9123
  d(g, { class: "ma-0 ml-n1 text-body-2" }, {
9143
9124
  default: u(() => [
9144
- (b(!0), S(be, null, we(o.legend.barbs, (U, ae) => (b(), A(n, {
9145
- key: U,
9125
+ (b(!0), S(be, null, we(o.legend.barbs, (H, te) => (b(), A(n, {
9126
+ key: H,
9146
9127
  cols: "6",
9147
9128
  class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
9148
9129
  }, {
9149
9130
  default: u(() => [
9150
- l("div", vn, [
9131
+ l("div", _n, [
9151
9132
  l("i", {
9152
- class: He(["iconfont", r.barbsIconName[ae]]),
9133
+ class: He(["iconfont", r.barbsIconName[te]]),
9153
9134
  style: ie({ color: a.theme === "dark" ? "#fff" : "#000" })
9154
9135
  }, null, 6),
9155
- l("span", _n, h(Number(U) < 10 ? `00${U}kts` : Number(U) < 100 ? `0${U}kts` : `${U}kts`), 1)
9136
+ l("span", kn, h(Number(H) < 10 ? `00${H}kts` : Number(H) < 100 ? `0${H}kts` : `${H}kts`), 1)
9156
9137
  ])
9157
9138
  ]),
9158
9139
  _: 2
@@ -9162,29 +9143,29 @@ function Qn(t, e, a, i, o, r) {
9162
9143
  })
9163
9144
  ]),
9164
9145
  _: 1,
9165
- __: [9]
9146
+ __: [10]
9166
9147
  }),
9167
9148
  d(f, { vertical: "" }),
9168
9149
  d(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
9169
9150
  default: u(() => [
9170
- e[10] || (e[10] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wave Height", -1)),
9151
+ e[11] || (e[11] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wave Height", -1)),
9171
9152
  d(g, {
9172
9153
  class: "ma-0 ml-1",
9173
9154
  style: { width: "100px" }
9174
9155
  }, {
9175
9156
  default: u(() => [
9176
- (b(!0), S(be, null, we(o.legend.sigWaveHeight, (U, ae) => (b(), A(n, {
9177
- key: ae,
9157
+ (b(!0), S(be, null, we(o.legend.sigWaveHeight, (H, te) => (b(), A(n, {
9158
+ key: te,
9178
9159
  cols: "12",
9179
9160
  class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
9180
9161
  }, {
9181
9162
  default: u(() => [
9182
- l("div", kn, [
9183
- ae === 0 ? (b(), S("div", zn)) : (b(), S("div", {
9163
+ l("div", zn, [
9164
+ te === 0 ? (b(), S("div", Ln)) : (b(), S("div", {
9184
9165
  key: 1,
9185
- style: ie({ width: "24px", height: "12px", background: U.color })
9166
+ style: ie({ width: "24px", height: "12px", background: H.color })
9186
9167
  }, null, 4)),
9187
- l("div", Ln, h(U.label), 1)
9168
+ l("div", Pn, h(H.label), 1)
9188
9169
  ])
9189
9170
  ]),
9190
9171
  _: 2
@@ -9194,31 +9175,31 @@ function Qn(t, e, a, i, o, r) {
9194
9175
  })
9195
9176
  ]),
9196
9177
  _: 1,
9197
- __: [10]
9178
+ __: [11]
9198
9179
  }),
9199
9180
  d(f, { vertical: "" }),
9200
9181
  d(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
9201
9182
  default: u(() => [
9202
- e[11] || (e[11] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Current", -1)),
9183
+ e[12] || (e[12] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Current", -1)),
9203
9184
  d(g, {
9204
9185
  class: "ma-0 ml-n5",
9205
9186
  style: { width: "110px" }
9206
9187
  }, {
9207
9188
  default: u(() => [
9208
- (b(!0), S(be, null, we(o.legend.current, (U, ae) => (b(), A(n, {
9209
- key: ae,
9189
+ (b(!0), S(be, null, we(o.legend.current, (H, te) => (b(), A(n, {
9190
+ key: te,
9210
9191
  cols: "12",
9211
9192
  class: "d-flex flex-row justify-center align-center py-1 px-0 ma-0"
9212
9193
  }, {
9213
9194
  default: u(() => [
9214
- l("div", Pn, [
9215
- l("div", Cn, [
9195
+ l("div", Cn, [
9196
+ l("div", Tn, [
9216
9197
  l("i", {
9217
9198
  class: "iconfont icon-a-direction-arrow opacity-80",
9218
- style: ie({ fontSize: 40 * U.size + "px" })
9199
+ style: ie({ fontSize: 40 * H.size + "px" })
9219
9200
  }, null, 4)
9220
9201
  ]),
9221
- l("div", Tn, h(U.label), 1)
9202
+ l("div", Sn, h(H.label), 1)
9222
9203
  ])
9223
9204
  ]),
9224
9205
  _: 2
@@ -9228,7 +9209,7 @@ function Qn(t, e, a, i, o, r) {
9228
9209
  })
9229
9210
  ]),
9230
9211
  _: 1,
9231
- __: [11]
9212
+ __: [12]
9232
9213
  })
9233
9214
  ]),
9234
9215
  _: 1
@@ -9238,12 +9219,12 @@ function Qn(t, e, a, i, o, r) {
9238
9219
  class: He(["available-layers transition flex-center", o.toggle ? "right-bar" : ""]),
9239
9220
  style: ie({ top: a.top + "px", right: o.toggle ? "0px" : "-280px" })
9240
9221
  }, [
9241
- l("div", Sn, [
9242
- l("div", In, [
9243
- l("div", Mn, h(t.$t("weather.weather")), 1),
9222
+ l("div", In, [
9223
+ l("div", Mn, [
9224
+ l("div", An, h(t.$t("weather.weather")), 1),
9244
9225
  d(v, {
9245
9226
  modelValue: o.autoActive,
9246
- "onUpdate:modelValue": e[1] || (e[1] = (U) => o.autoActive = U),
9227
+ "onUpdate:modelValue": e[1] || (e[1] = (H) => o.autoActive = H),
9247
9228
  class: "small-switch",
9248
9229
  color: "primary",
9249
9230
  inset: "",
@@ -9257,11 +9238,11 @@ function Qn(t, e, a, i, o, r) {
9257
9238
  class: "mr-n2",
9258
9239
  onClick: r.handleMenuToggle
9259
9240
  }, {
9260
- default: u(() => e[12] || (e[12] = [
9241
+ default: u(() => e[13] || (e[13] = [
9261
9242
  l("i", { class: "iconfont icon-close text-label text-h4" }, null, -1)
9262
9243
  ])),
9263
9244
  _: 1,
9264
- __: [12]
9245
+ __: [13]
9265
9246
  }, 8, ["onClick"])
9266
9247
  ]),
9267
9248
  l("div", {
@@ -9272,7 +9253,7 @@ function Qn(t, e, a, i, o, r) {
9272
9253
  elevation: "0"
9273
9254
  }, {
9274
9255
  default: u(() => [
9275
- d(k, { class: "border-b-thin" }, {
9256
+ d(C, { class: "border-b-thin" }, {
9276
9257
  default: u(() => [
9277
9258
  d(y, {
9278
9259
  class: "text-subtitle-1 font-weight-medium",
@@ -9288,12 +9269,12 @@ function Qn(t, e, a, i, o, r) {
9288
9269
  }),
9289
9270
  d(p, { class: "py-2" }, {
9290
9271
  default: u(() => [
9291
- (b(!0), S(be, null, we(o.tagLayers.filter((U) => U.overlays), (U) => (b(), A(T, {
9292
- key: U.key,
9272
+ (b(!0), S(be, null, we(o.tagLayers.filter((H) => H.overlays), (H) => (b(), A(T, {
9273
+ key: H.key,
9293
9274
  modelValue: o.checkList,
9294
- "onUpdate:modelValue": e[2] || (e[2] = (ae) => o.checkList = ae),
9295
- value: U.key,
9296
- label: t.$t(`weather.${U.locale}`),
9275
+ "onUpdate:modelValue": e[2] || (e[2] = (te) => o.checkList = te),
9276
+ value: H.key,
9277
+ label: t.$t(`weather.${H.locale}`),
9297
9278
  disabled: !o.autoActive,
9298
9279
  color: "primary",
9299
9280
  density: "compact",
@@ -9312,7 +9293,7 @@ function Qn(t, e, a, i, o, r) {
9312
9293
  elevation: "0"
9313
9294
  }, {
9314
9295
  default: u(() => [
9315
- d(k, { class: "border-b-thin" }, {
9296
+ d(C, { class: "border-b-thin" }, {
9316
9297
  default: u(() => [
9317
9298
  d(y, {
9318
9299
  class: "text-subtitle-1 font-weight-medium",
@@ -9328,27 +9309,27 @@ function Qn(t, e, a, i, o, r) {
9328
9309
  }),
9329
9310
  d(p, { class: "py-2" }, {
9330
9311
  default: u(() => [
9331
- (b(!0), S(be, null, we(o.tagLayers.filter((U) => !U.overlays && U.key !== "ice-thickness"), (U) => (b(), S(be, {
9332
- key: U.key
9312
+ (b(!0), S(be, null, we(o.tagLayers.filter((H) => !H.overlays && H.key !== "ice-thickness" && H.key !== "swell"), (H) => (b(), S(be, {
9313
+ key: H.key
9333
9314
  }, [
9334
- d(R, {
9315
+ d(B, {
9335
9316
  modelValue: o.renderKey,
9336
- "onUpdate:modelValue": e[3] || (e[3] = (ae) => o.renderKey = ae),
9337
- label: t.$t(`weather.${U.locale}`),
9338
- value: U.key,
9317
+ "onUpdate:modelValue": e[3] || (e[3] = (te) => o.renderKey = te),
9318
+ label: t.$t(`weather.${H.locale}`),
9319
+ value: H.key,
9339
9320
  disabled: !o.autoActive,
9340
9321
  color: "primary",
9341
9322
  density: "compact",
9342
9323
  style: { height: "36px" },
9343
9324
  class: "text-body-2 py-1",
9344
9325
  "hide-details": "",
9345
- onClick: (ae) => o.renderKey = o.renderKey === U.key ? "" : U.key
9326
+ onClick: (te) => o.renderKey = o.renderKey === H.key ? "" : H.key
9346
9327
  }, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
9347
- o.renderKey === "wind-particle" && U.key === "wind-particle" ? (b(), S("div", An, [
9328
+ o.renderKey === "wind-particle" && H.key === "wind-particle" ? (b(), S("div", Dn, [
9348
9329
  l("span", null, h(t.$t("weather.particleAnimatiom")), 1),
9349
9330
  d(v, {
9350
9331
  modelValue: o.showWindParticle,
9351
- "onUpdate:modelValue": e[4] || (e[4] = (ae) => o.showWindParticle = ae),
9332
+ "onUpdate:modelValue": e[4] || (e[4] = (te) => o.showWindParticle = te),
9352
9333
  label: "",
9353
9334
  class: "small-switch",
9354
9335
  color: "primary",
@@ -9358,11 +9339,11 @@ function Qn(t, e, a, i, o, r) {
9358
9339
  "hide-details": ""
9359
9340
  }, null, 8, ["modelValue"])
9360
9341
  ])) : D("", !0),
9361
- o.renderKey === "current-particle" && U.key === "current-particle" ? (b(), S("div", Dn, [
9342
+ o.renderKey === "current-particle" && H.key === "current-particle" ? (b(), S("div", Rn, [
9362
9343
  l("span", null, h(t.$t("weather.particleAnimatiom")), 1),
9363
9344
  d(v, {
9364
9345
  modelValue: o.showCurrentParticle,
9365
- "onUpdate:modelValue": e[5] || (e[5] = (ae) => o.showCurrentParticle = ae),
9346
+ "onUpdate:modelValue": e[5] || (e[5] = (te) => o.showCurrentParticle = te),
9366
9347
  label: "",
9367
9348
  class: "small-switch",
9368
9349
  color: "primary",
@@ -9372,11 +9353,54 @@ function Qn(t, e, a, i, o, r) {
9372
9353
  "hide-details": ""
9373
9354
  }, null, 8, ["modelValue"])
9374
9355
  ])) : D("", !0),
9375
- o.renderKey === "ice-forecast" && U.key === "ice-forecast" ? (b(), A(I, {
9356
+ o.renderKey === "wave-group" && H.key === "wave-group" ? (b(), A(I, {
9376
9357
  key: 2,
9358
+ modelValue: o.waveToggleValue,
9359
+ "onUpdate:modelValue": e[6] || (e[6] = (te) => o.waveToggleValue = te),
9360
+ class: "w-100 pl-7 rounded",
9361
+ rounded: "0",
9362
+ height: "30",
9363
+ density: "compact",
9364
+ group: "",
9365
+ disabled: !o.autoActive
9366
+ }, {
9367
+ default: u(() => [
9368
+ d(s, {
9369
+ density: "compact",
9370
+ height: "30",
9371
+ value: "sig-wave",
9372
+ class: "w-50 text-none px-2 text-body-1",
9373
+ color: o.waveToggleValue === "sig-wave" ? "primary" : "",
9374
+ "base-color": "grey-lighten-1",
9375
+ disabled: !o.autoActive
9376
+ }, {
9377
+ default: u(() => [
9378
+ j(h(t.$t("weather.significant")), 1)
9379
+ ]),
9380
+ _: 1
9381
+ }, 8, ["color", "disabled"]),
9382
+ d(s, {
9383
+ density: "compact",
9384
+ height: "30",
9385
+ class: "w-50 text-none px-2 text-body-1",
9386
+ color: o.waveToggleValue === "swell" ? "primary" : "",
9387
+ "base-color": "grey-lighten-1",
9388
+ disabled: !o.autoActive,
9389
+ value: "swell"
9390
+ }, {
9391
+ default: u(() => [
9392
+ j(h(t.$t("weather.swell")), 1)
9393
+ ]),
9394
+ _: 1
9395
+ }, 8, ["color", "disabled"])
9396
+ ]),
9397
+ _: 1
9398
+ }, 8, ["modelValue", "disabled"])) : D("", !0),
9399
+ o.renderKey === "ice-forecast" && H.key === "ice-forecast" ? (b(), A(I, {
9400
+ key: 3,
9377
9401
  modelValue: o.iceToggleValue,
9378
- "onUpdate:modelValue": e[6] || (e[6] = (ae) => o.iceToggleValue = ae),
9379
- class: "ml-7",
9402
+ "onUpdate:modelValue": e[7] || (e[7] = (te) => o.iceToggleValue = te),
9403
+ class: "w-100 pl-7 rounded",
9380
9404
  rounded: "0",
9381
9405
  height: "30",
9382
9406
  density: "compact",
@@ -9388,7 +9412,7 @@ function Qn(t, e, a, i, o, r) {
9388
9412
  density: "compact",
9389
9413
  height: "30",
9390
9414
  value: "ice-cover",
9391
- class: "text-none px-2",
9415
+ class: "w-50 text-none px-2 text-body-1",
9392
9416
  color: o.iceToggleValue === "ice-cover" ? "primary" : "",
9393
9417
  "base-color": "grey-lighten-1",
9394
9418
  disabled: !o.autoActive
@@ -9401,7 +9425,7 @@ function Qn(t, e, a, i, o, r) {
9401
9425
  d(s, {
9402
9426
  density: "compact",
9403
9427
  height: "30",
9404
- class: "text-none px-2",
9428
+ class: "w-50 text-none px-2 text-body-1",
9405
9429
  color: o.iceToggleValue === "ice-thickness" ? "primary" : "",
9406
9430
  "base-color": "grey-lighten-1",
9407
9431
  disabled: !o.autoActive,
@@ -9427,7 +9451,7 @@ function Qn(t, e, a, i, o, r) {
9427
9451
  elevation: "0"
9428
9452
  }, {
9429
9453
  default: u(() => [
9430
- d(k, { class: "border-b-thin" }, {
9454
+ d(C, { class: "border-b-thin" }, {
9431
9455
  default: u(() => [
9432
9456
  d(y, {
9433
9457
  class: "text-subtitle-1 font-weight-medium",
@@ -9443,28 +9467,28 @@ function Qn(t, e, a, i, o, r) {
9443
9467
  }),
9444
9468
  d(p, { class: "" }, {
9445
9469
  default: u(() => {
9446
- var U, ae, Ne, Ie, ge, fe, W, Ce, te, le, Oe, N, ye, Me, Be, Ee, E, Z, Ge, Ve, Ze, Te, Ye, Ke, Xe, $e, Qe, Je, et, tt, at, ot, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, It, Mt, At, Dt, Rt, Ot, Bt, Et, Nt, jt, Ft, Ht, Ut, Wt, Gt, Vt, Zt, qt, Yt, Kt, Xt, Qt, Jt, ea;
9470
+ var H, te, je, Ie, ge, fe, W, Ce, ae, le, Oe, N, ye, Me, Be, Ee, E, Z, Ge, Ve, Ze, Te, Ye, Ke, Xe, $e, Qe, Je, et, tt, at, ot, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, It, Mt, At, Dt, Rt, Ot, Bt, Et, Nt, jt, Ft, Ht, Ut, Wt, Gt, Vt, Zt, qt, Yt, Kt, Xt, Qt, Jt, ea;
9447
9471
  return [
9448
- l("div", Rn, h(t.$t("weather.atmospheric")), 1),
9449
- l("div", On, h((Ne = (ae = (U = o.models) == null ? void 0 : U.weather) == null ? void 0 : ae.NOAA) == null ? void 0 : Ne.source) + " " + h((fe = (ge = (Ie = o.models) == null ? void 0 : Ie.weather) == null ? void 0 : ge.NOAA) == null ? void 0 : fe.spatialResolution) + h(t.$t("units.km")) + " " + h((le = (te = (Ce = (W = o.models) == null ? void 0 : W.weather) == null ? void 0 : Ce.NOAA) == null ? void 0 : te.meta) == null ? void 0 : le.days) + h(t.$t("units.days")), 1),
9450
- l("div", Bn, h(t.$t("weather.source")) + ": NOAA", 1),
9451
- l("div", En, h(t.$t("weather.lastUpdate")) + ": " + h(r.computeDateZ((Me = (ye = (N = (Oe = o.models) == null ? void 0 : Oe.weather) == null ? void 0 : N.NOAA) == null ? void 0 : ye.meta) == null ? void 0 : Me.initialisationTime)), 1),
9452
- l("div", Nn, h((E = (Ee = (Be = o.models) == null ? void 0 : Be.weather) == null ? void 0 : Ee.ECMWF) == null ? void 0 : E.source) + " " + h((Ve = (Ge = (Z = o.models) == null ? void 0 : Z.weather) == null ? void 0 : Ge.ECMWF) == null ? void 0 : Ve.spatialResolution) + h(t.$t("units.km")) + " " + h((Ke = (Ye = (Te = (Ze = o.models) == null ? void 0 : Ze.weather) == null ? void 0 : Te.ECMWF) == null ? void 0 : Ye.meta) == null ? void 0 : Ke.days) + h(t.$t("units.days")), 1),
9453
- l("div", jn, h(t.$t("weather.source")) + ": ECMWF", 1),
9454
- l("div", Fn, h(t.$t("weather.lastUpdate")) + ": " + h(r.computeDateZ((Je = (Qe = ($e = (Xe = o.models) == null ? void 0 : Xe.weather) == null ? void 0 : $e.ECMWF) == null ? void 0 : Qe.meta) == null ? void 0 : Je.initialisationTime)), 1),
9472
+ l("div", On, h(t.$t("weather.atmospheric")), 1),
9473
+ l("div", Bn, h((je = (te = (H = o.models) == null ? void 0 : H.weather) == null ? void 0 : te.NOAA) == null ? void 0 : je.source) + " " + h((fe = (ge = (Ie = o.models) == null ? void 0 : Ie.weather) == null ? void 0 : ge.NOAA) == null ? void 0 : fe.spatialResolution) + h(t.$t("units.km")) + " " + h((le = (ae = (Ce = (W = o.models) == null ? void 0 : W.weather) == null ? void 0 : Ce.NOAA) == null ? void 0 : ae.meta) == null ? void 0 : le.days) + h(t.$t("units.days")), 1),
9474
+ l("div", En, h(t.$t("weather.source")) + ": NOAA", 1),
9475
+ l("div", Nn, h(t.$t("weather.lastUpdate")) + ": " + h(r.computeDateZ((Me = (ye = (N = (Oe = o.models) == null ? void 0 : Oe.weather) == null ? void 0 : N.NOAA) == null ? void 0 : ye.meta) == null ? void 0 : Me.initialisationTime)), 1),
9476
+ l("div", jn, h((E = (Ee = (Be = o.models) == null ? void 0 : Be.weather) == null ? void 0 : Ee.ECMWF) == null ? void 0 : E.source) + " " + h((Ve = (Ge = (Z = o.models) == null ? void 0 : Z.weather) == null ? void 0 : Ge.ECMWF) == null ? void 0 : Ve.spatialResolution) + h(t.$t("units.km")) + " " + h((Ke = (Ye = (Te = (Ze = o.models) == null ? void 0 : Ze.weather) == null ? void 0 : Te.ECMWF) == null ? void 0 : Ye.meta) == null ? void 0 : Ke.days) + h(t.$t("units.days")), 1),
9477
+ l("div", Fn, h(t.$t("weather.source")) + ": ECMWF", 1),
9478
+ l("div", Hn, h(t.$t("weather.lastUpdate")) + ": " + h(r.computeDateZ((Je = (Qe = ($e = (Xe = o.models) == null ? void 0 : Xe.weather) == null ? void 0 : $e.ECMWF) == null ? void 0 : Qe.meta) == null ? void 0 : Je.initialisationTime)), 1),
9455
9479
  d(f),
9456
- l("div", Hn, h(t.$t("weather.wave")), 1),
9457
- l("div", Un, h((ot = (at = (tt = (et = o.models) == null ? void 0 : et.marine) == null ? void 0 : tt.wave) == null ? void 0 : at.NOAA) == null ? void 0 : ot.source) + " " + h((st = (lt = (rt = (it = o.models) == null ? void 0 : it.marine) == null ? void 0 : rt.wave) == null ? void 0 : lt.NOAA) == null ? void 0 : st.spatialResolution) + h(t.$t("units.km")) + " " + h((ht = (dt = (mt = (ct = (nt = o.models) == null ? void 0 : nt.marine) == null ? void 0 : ct.wave) == null ? void 0 : mt.NOAA) == null ? void 0 : dt.meta) == null ? void 0 : ht.days) + h(t.$t("units.days")), 1),
9458
- l("div", Wn, h(t.$t("weather.source")) + ": NOAA", 1),
9459
- l("div", Gn, h(t.$t("weather.lastUpdate")) + ": " + h(r.computeDateZ((yt = (ft = (gt = (ut = (pt = o.models) == null ? void 0 : pt.marine) == null ? void 0 : ut.wave) == null ? void 0 : gt.NOAA) == null ? void 0 : ft.meta) == null ? void 0 : yt.initialisationTime)), 1),
9460
- l("div", Vn, h((vt = (xt = (wt = (bt = o.models) == null ? void 0 : bt.marine) == null ? void 0 : wt.wave) == null ? void 0 : xt.ECMWF) == null ? void 0 : vt.source) + " " + h((Lt = (zt = (kt = (_t = o.models) == null ? void 0 : _t.marine) == null ? void 0 : kt.wave) == null ? void 0 : zt.ECMWF) == null ? void 0 : Lt.spatialResolution) + h(t.$t("units.km")) + " " + h((It = (St = (Tt = (Ct = (Pt = o.models) == null ? void 0 : Pt.marine) == null ? void 0 : Ct.wave) == null ? void 0 : Tt.ECMWF) == null ? void 0 : St.meta) == null ? void 0 : It.days) + h(t.$t("units.days")), 1),
9461
- l("div", Zn, h(t.$t("weather.source")) + ": ECMWF", 1),
9462
- l("div", qn, h(t.$t("weather.lastUpdate")) + ": " + h(r.computeDateZ((Ot = (Rt = (Dt = (At = (Mt = o.models) == null ? void 0 : Mt.marine) == null ? void 0 : At.wave) == null ? void 0 : Dt.ECMWF) == null ? void 0 : Rt.meta) == null ? void 0 : Ot.initialisationTime)), 1),
9480
+ l("div", Un, h(t.$t("weather.wave")), 1),
9481
+ l("div", Wn, h((ot = (at = (tt = (et = o.models) == null ? void 0 : et.marine) == null ? void 0 : tt.wave) == null ? void 0 : at.NOAA) == null ? void 0 : ot.source) + " " + h((st = (lt = (rt = (it = o.models) == null ? void 0 : it.marine) == null ? void 0 : rt.wave) == null ? void 0 : lt.NOAA) == null ? void 0 : st.spatialResolution) + h(t.$t("units.km")) + " " + h((ht = (dt = (mt = (ct = (nt = o.models) == null ? void 0 : nt.marine) == null ? void 0 : ct.wave) == null ? void 0 : mt.NOAA) == null ? void 0 : dt.meta) == null ? void 0 : ht.days) + h(t.$t("units.days")), 1),
9482
+ l("div", Gn, h(t.$t("weather.source")) + ": NOAA", 1),
9483
+ l("div", Vn, h(t.$t("weather.lastUpdate")) + ": " + h(r.computeDateZ((yt = (ft = (gt = (ut = (pt = o.models) == null ? void 0 : pt.marine) == null ? void 0 : ut.wave) == null ? void 0 : gt.NOAA) == null ? void 0 : ft.meta) == null ? void 0 : yt.initialisationTime)), 1),
9484
+ l("div", Zn, h((vt = (xt = (wt = (bt = o.models) == null ? void 0 : bt.marine) == null ? void 0 : wt.wave) == null ? void 0 : xt.ECMWF) == null ? void 0 : vt.source) + " " + h((Lt = (zt = (kt = (_t = o.models) == null ? void 0 : _t.marine) == null ? void 0 : kt.wave) == null ? void 0 : zt.ECMWF) == null ? void 0 : Lt.spatialResolution) + h(t.$t("units.km")) + " " + h((It = (St = (Tt = (Ct = (Pt = o.models) == null ? void 0 : Pt.marine) == null ? void 0 : Ct.wave) == null ? void 0 : Tt.ECMWF) == null ? void 0 : St.meta) == null ? void 0 : It.days) + h(t.$t("units.days")), 1),
9485
+ l("div", qn, h(t.$t("weather.source")) + ": ECMWF", 1),
9486
+ l("div", Yn, h(t.$t("weather.lastUpdate")) + ": " + h(r.computeDateZ((Ot = (Rt = (Dt = (At = (Mt = o.models) == null ? void 0 : Mt.marine) == null ? void 0 : At.wave) == null ? void 0 : Dt.ECMWF) == null ? void 0 : Rt.meta) == null ? void 0 : Ot.initialisationTime)), 1),
9463
9487
  d(f),
9464
- l("div", Yn, h(t.$t("weather.currents")), 1),
9465
- l("div", Kn, h((jt = (Nt = (Et = (Bt = o.models) == null ? void 0 : Bt.marine) == null ? void 0 : Et.current) == null ? void 0 : Nt.ECMWF) == null ? void 0 : jt.source) + " " + h((Wt = (Ut = (Ht = (Ft = o.models) == null ? void 0 : Ft.marine) == null ? void 0 : Ht.current) == null ? void 0 : Ut.ECMWF) == null ? void 0 : Wt.spatialResolution) + h(t.$t("units.km")) + " " + h((Yt = (qt = (Zt = (Vt = (Gt = o.models) == null ? void 0 : Gt.marine) == null ? void 0 : Vt.current) == null ? void 0 : Zt.ECMWF) == null ? void 0 : qt.meta) == null ? void 0 : Yt.days) + h(t.$t("units.days")), 1),
9466
- l("div", Xn, h(t.$t("weather.source")) + ": ECMWF", 1),
9467
- l("div", $n, h(t.$t("weather.lastUpdate")) + ": " + h(r.computeDateZ((ea = (Jt = (Qt = (Xt = (Kt = o.models) == null ? void 0 : Kt.marine) == null ? void 0 : Xt.current) == null ? void 0 : Qt.ECMWF) == null ? void 0 : Jt.meta) == null ? void 0 : ea.initialisationTime)), 1)
9488
+ l("div", Kn, h(t.$t("weather.currents")), 1),
9489
+ l("div", Xn, h((jt = (Nt = (Et = (Bt = o.models) == null ? void 0 : Bt.marine) == null ? void 0 : Et.current) == null ? void 0 : Nt.ECMWF) == null ? void 0 : jt.source) + " " + h((Wt = (Ut = (Ht = (Ft = o.models) == null ? void 0 : Ft.marine) == null ? void 0 : Ht.current) == null ? void 0 : Ut.ECMWF) == null ? void 0 : Wt.spatialResolution) + h(t.$t("units.km")) + " " + h((Yt = (qt = (Zt = (Vt = (Gt = o.models) == null ? void 0 : Gt.marine) == null ? void 0 : Vt.current) == null ? void 0 : Zt.ECMWF) == null ? void 0 : qt.meta) == null ? void 0 : Yt.days) + h(t.$t("units.days")), 1),
9490
+ l("div", $n, h(t.$t("weather.source")) + ": ECMWF", 1),
9491
+ l("div", Qn, h(t.$t("weather.lastUpdate")) + ": " + h(r.computeDateZ((ea = (Jt = (Qt = (Xt = (Kt = o.models) == null ? void 0 : Kt.marine) == null ? void 0 : Xt.current) == null ? void 0 : Qt.ECMWF) == null ? void 0 : Jt.meta) == null ? void 0 : ea.initialisationTime)), 1)
9468
9492
  ];
9469
9493
  }),
9470
9494
  _: 1
@@ -9474,7 +9498,7 @@ function Qn(t, e, a, i, o, r) {
9474
9498
  })
9475
9499
  ], 2)
9476
9500
  ], 6),
9477
- a.map ? (b(), A(P, B({
9501
+ a.map ? (b(), A(L, O({
9478
9502
  key: 1,
9479
9503
  ref: "windBarb",
9480
9504
  map: a.map,
@@ -9483,15 +9507,15 @@ function Qn(t, e, a, i, o, r) {
9483
9507
  wind: (pe = o.weatherLayers) == null ? void 0 : pe.wind,
9484
9508
  "menu-toggle": a.menuToggle
9485
9509
  }, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : D("", !0),
9486
- a.map ? (b(), A(_, B({
9510
+ a.map ? (b(), A(_, O({
9487
9511
  key: 2,
9488
9512
  map: a.map,
9489
9513
  "before-layer": "empty-layer-2",
9490
- "sig-wave-height": (se = o.weatherLayers) == null ? void 0 : se["sig-wave-height"],
9514
+ "sig-wave-height": (ne = o.weatherLayers) == null ? void 0 : ne["sig-wave-height"],
9491
9515
  "menu-toggle": a.menuToggle,
9492
9516
  "active-weather-layers": o.activeWeatherLayers
9493
9517
  }, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : D("", !0),
9494
- a.map ? (b(), A(z, B({
9518
+ a.map ? (b(), A(k, O({
9495
9519
  key: 3,
9496
9520
  map: a.map,
9497
9521
  "map-feather": a.mapFeather,
@@ -9499,7 +9523,7 @@ function Qn(t, e, a, i, o, r) {
9499
9523
  current: (X = o.weatherLayers) == null ? void 0 : X.current,
9500
9524
  "menu-toggle": a.menuToggle
9501
9525
  }, t.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) : D("", !0),
9502
- a.map ? (b(), A(C, B({
9526
+ a.map ? (b(), A(P, O({
9503
9527
  key: 4,
9504
9528
  map: a.map,
9505
9529
  "before-layer": "empty-layer-2",
@@ -9507,68 +9531,68 @@ function Qn(t, e, a, i, o, r) {
9507
9531
  "menu-toggle": a.menuToggle,
9508
9532
  "active-weather-layers": o.activeWeatherLayers
9509
9533
  }, t.$attrs, { theme: a.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) : D("", !0),
9510
- a.map ? (b(), A(L, B({
9534
+ a.map ? (b(), A(z, O({
9511
9535
  key: 5,
9512
9536
  viewport: o.viewport,
9513
9537
  factor: (ue = o.weatherLayers) == null ? void 0 : ue["wind-particle"],
9514
9538
  "menu-toggle": a.menuToggle
9515
9539
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
9516
- a.map ? (b(), A(O, B({
9540
+ a.map ? (b(), A(R, O({
9517
9541
  key: 6,
9518
9542
  viewport: o.viewport,
9519
- factor: (ne = o.weatherLayers) == null ? void 0 : ne["current-particle"],
9543
+ factor: (ce = o.weatherLayers) == null ? void 0 : ce["current-particle"],
9520
9544
  "menu-toggle": a.menuToggle
9521
9545
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
9522
- a.map ? (b(), A(G, B({
9546
+ a.map ? (b(), A(G, O({
9523
9547
  key: 7,
9524
9548
  viewport: o.viewport,
9525
9549
  factor: (F = o.weatherLayers) == null ? void 0 : F["sig-wave"],
9526
9550
  "menu-toggle": a.menuToggle
9527
9551
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
9528
- a.map ? (b(), A(Y, B({
9552
+ a.map ? (b(), A(Y, O({
9529
9553
  key: 8,
9530
9554
  map: a.map,
9531
- swell: (ce = o.weatherLayers) == null ? void 0 : ce.swell,
9555
+ factor: (me = o.weatherLayers) == null ? void 0 : me.swell,
9532
9556
  "menu-toggle": a.menuToggle,
9533
9557
  "active-weather-layers": o.activeWeatherLayers
9534
- }, t.$attrs), null, 16, ["map", "swell", "menu-toggle", "active-weather-layers"])) : D("", !0),
9535
- a.map ? (b(), A(K, B({
9558
+ }, t.$attrs), null, 16, ["map", "factor", "menu-toggle", "active-weather-layers"])) : D("", !0),
9559
+ a.map ? (b(), A(K, O({
9536
9560
  key: 9,
9537
9561
  viewport: o.viewport,
9538
9562
  factor: (xe = o.weatherLayers) == null ? void 0 : xe["ice-edge"],
9539
9563
  "menu-toggle": a.menuToggle
9540
9564
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
9541
- a.map ? (b(), A(V, B({
9565
+ a.map ? (b(), A(V, O({
9542
9566
  key: 10,
9543
9567
  viewport: o.viewport,
9544
9568
  factor: (Le = o.weatherLayers) == null ? void 0 : Le["ice-cover"],
9545
9569
  "menu-toggle": a.menuToggle
9546
9570
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
9547
- a.map ? (b(), A(J, B({
9571
+ a.map ? (b(), A(J, O({
9548
9572
  key: 11,
9549
9573
  viewport: o.viewport,
9550
9574
  factor: (Pe = o.weatherLayers) == null ? void 0 : Pe["ice-thickness"],
9551
9575
  "menu-toggle": a.menuToggle
9552
9576
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
9553
- a.map ? (b(), A(ee, B({
9577
+ a.map ? (b(), A(ee, O({
9554
9578
  key: 12,
9555
9579
  viewport: o.viewport,
9556
9580
  factor: (Ae = o.weatherLayers) == null ? void 0 : Ae.precip3h,
9557
9581
  "menu-toggle": a.menuToggle
9558
9582
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
9559
- a.map ? (b(), A(Q, B({
9583
+ a.map ? (b(), A(Q, O({
9560
9584
  key: 13,
9561
9585
  viewport: o.viewport,
9562
9586
  factor: (De = o.weatherLayers) == null ? void 0 : De.visibility,
9563
9587
  "menu-toggle": a.menuToggle
9564
9588
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
9565
- a.map ? (b(), A(re, B({
9589
+ a.map ? (b(), A(re, O({
9566
9590
  key: 14,
9567
9591
  viewport: o.viewport,
9568
9592
  factor: (Re = o.weatherLayers) == null ? void 0 : Re["water-temp"],
9569
9593
  "menu-toggle": a.menuToggle
9570
9594
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
9571
- a.map ? (b(), A(de, B({
9595
+ a.map ? (b(), A(he, O({
9572
9596
  key: 15,
9573
9597
  viewport: o.viewport,
9574
9598
  factor: (_e = o.weatherLayers) == null ? void 0 : _e.temp,
@@ -9576,7 +9600,7 @@ function Qn(t, e, a, i, o, r) {
9576
9600
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0)
9577
9601
  ]);
9578
9602
  }
9579
- const Jn = /* @__PURE__ */ q(bn, [["render", Qn]]), ta = [
9603
+ const ec = /* @__PURE__ */ q(wn, [["render", Jn]]), ta = [
9580
9604
  {
9581
9605
  rank: 0,
9582
9606
  name: "Best Match",
@@ -9923,10 +9947,10 @@ class Zo {
9923
9947
  }), o;
9924
9948
  }
9925
9949
  static pickHourly(e, a) {
9926
- var i, o, r, s, c, n, g, p, f, w, v, y, k, T, R, I, P, _, z, C, L, O, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e, U, ae, Ne, Ie;
9927
- const ge = typeof a == "string" ? M(a) : a, fe = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, Ce = M((o = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : o.date).utc(), te = Ce.clone().add((c = (s = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"), le = Ce.clone().add((p = (g = (n = fe == null ? void 0 : fe[0]) == null ? void 0 : n.hourly) == null ? void 0 : g.time) == null ? void 0 : p.at(-1), "h"), Oe = [];
9928
- if (ge.isBetween(te, le, "millisecond", "[]")) {
9929
- const N = ge.utc().diff(te, "h", !1);
9950
+ var i, o, r, s, c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q, re, he, pe, ne, X, oe, ue, ce, F, me, xe, Le, Pe, Ae, De, Re, _e, H, te, je, Ie;
9951
+ const ge = typeof a == "string" ? M(a) : a, fe = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, Ce = M((o = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : o.date).utc(), ae = Ce.clone().add((c = (s = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"), le = Ce.clone().add((p = (g = (n = fe == null ? void 0 : fe[0]) == null ? void 0 : n.hourly) == null ? void 0 : g.time) == null ? void 0 : p.at(-1), "h"), Oe = [];
9952
+ if (ge.isBetween(ae, le, "millisecond", "[]")) {
9953
+ const N = ge.utc().diff(ae, "h", !1);
9930
9954
  let ye, Me;
9931
9955
  if (fe) {
9932
9956
  let Be = 0, Ee = 0;
@@ -9939,21 +9963,21 @@ class Zo {
9939
9963
  ye = {
9940
9964
  temp: (v = Z == null ? void 0 : Z.temperature_2m) == null ? void 0 : v.at(N),
9941
9965
  apparentTemp: (y = Z == null ? void 0 : Z.apparent_temperature) == null ? void 0 : y.at(N),
9942
- rh: (k = Z == null ? void 0 : Z.relative_humidity_2m) == null ? void 0 : k.at(N),
9966
+ rh: (C = Z == null ? void 0 : Z.relative_humidity_2m) == null ? void 0 : C.at(N),
9943
9967
  dp: (T = Z == null ? void 0 : Z.dew_point_2m) == null ? void 0 : T.at(N),
9944
9968
  precip: {
9945
- probability: (R = Z == null ? void 0 : Z.precipitation_probability) == null ? void 0 : R.at(N),
9969
+ probability: (B = Z == null ? void 0 : Z.precipitation_probability) == null ? void 0 : B.at(N),
9946
9970
  sum: (I = Z == null ? void 0 : Z.precipitation) == null ? void 0 : I.at(N),
9947
9971
  sum3Hours: Math.round(Be * 100) / 100,
9948
9972
  sum6Hours: Math.round(Ee * 100) / 100
9949
9973
  },
9950
- pmsl: (P = Z == null ? void 0 : Z.pressure_msl) == null ? void 0 : P.at(N),
9974
+ pmsl: (L = Z == null ? void 0 : Z.pressure_msl) == null ? void 0 : L.at(N),
9951
9975
  psurf: (_ = Z == null ? void 0 : Z.surface_pressure) == null ? void 0 : _.at(N),
9952
- code: (z = Z == null ? void 0 : Z.weather_code) == null ? void 0 : z.at(N),
9953
- visibility: this.m2nm((C = Z == null ? void 0 : Z.visibility) == null ? void 0 : C.at(N)),
9976
+ code: (k = Z == null ? void 0 : Z.weather_code) == null ? void 0 : k.at(N),
9977
+ visibility: this.m2nm((P = Z == null ? void 0 : Z.visibility) == null ? void 0 : P.at(N)),
9954
9978
  wind: {
9955
- speed: (L = Z == null ? void 0 : Z.wind_speed_10m) == null ? void 0 : L.at(N),
9956
- kts: (O = Z == null ? void 0 : Z.wind_speed_10m) == null ? void 0 : O.at(N),
9979
+ speed: (z = Z == null ? void 0 : Z.wind_speed_10m) == null ? void 0 : z.at(N),
9980
+ kts: (R = Z == null ? void 0 : Z.wind_speed_10m) == null ? void 0 : R.at(N),
9957
9981
  degree: (G = Z == null ? void 0 : Z.wind_direction_10m) == null ? void 0 : G.at(N),
9958
9982
  bearing: ((Y = Z == null ? void 0 : Z.wind_direction_10m) == null ? void 0 : Y.at(N)) !== null ? (((K = Z == null ? void 0 : Z.wind_direction_10m) == null ? void 0 : K.at(N)) + 180) % 360 : null,
9959
9983
  gusts: (V = Z == null ? void 0 : Z.wind_gusts_10m) == null ? void 0 : V.at(N)
@@ -9962,7 +9986,7 @@ class Zo {
9962
9986
  };
9963
9987
  const { name: Ge, url: Ve, bg: Ze } = this.parseWeatherCode(ye.code, ye.isDay);
9964
9988
  ye.name = Ge, ye.url = Ve, ye.bg = Ze, ye.wind.scale = this.beaufort(this.kts2ms(ye.wind.kts)), ye.wind.direction = this.degree2Direction(ye.wind.degree), Oe.push({
9965
- utc: te.add(N, "h").format(),
9989
+ utc: ae.add(N, "h").format(),
9966
9990
  model: E.model,
9967
9991
  weather: { ...ye }
9968
9992
  });
@@ -9977,18 +10001,18 @@ class Zo {
9977
10001
  sig: {
9978
10002
  height: (ee = E == null ? void 0 : E.wave_height) == null ? void 0 : ee.at(N),
9979
10003
  degree: (Q = E == null ? void 0 : E.wave_direction) == null ? void 0 : Q.at(N),
9980
- bearing: ((re = E == null ? void 0 : E.wave_direction) == null ? void 0 : re.at(N)) !== null ? (((de = E == null ? void 0 : E.wave_direction) == null ? void 0 : de.at(N)) + 180) % 360 : null,
10004
+ bearing: ((re = E == null ? void 0 : E.wave_direction) == null ? void 0 : re.at(N)) !== null ? (((he = E == null ? void 0 : E.wave_direction) == null ? void 0 : he.at(N)) + 180) % 360 : null,
9981
10005
  period: (pe = E == null ? void 0 : E.wave_period) == null ? void 0 : pe.at(N)
9982
10006
  },
9983
10007
  swell: {
9984
- height: (se = E == null ? void 0 : E.swell_wave_height) == null ? void 0 : se.at(N),
10008
+ height: (ne = E == null ? void 0 : E.swell_wave_height) == null ? void 0 : ne.at(N),
9985
10009
  degree: (X = E == null ? void 0 : E.swell_wave_direction) == null ? void 0 : X.at(N),
9986
10010
  bearing: ((oe = E == null ? void 0 : E.swell_wave_direction) == null ? void 0 : oe.at(N)) !== null ? (((ue = E == null ? void 0 : E.swell_wave_direction) == null ? void 0 : ue.at(N)) + 180) % 360 : null,
9987
- period: (ne = E == null ? void 0 : E.swell_wave_period) == null ? void 0 : ne.at(N),
10011
+ period: (ce = E == null ? void 0 : E.swell_wave_period) == null ? void 0 : ce.at(N),
9988
10012
  peakPeriod: (F = E == null ? void 0 : E.swell_wave_peak_period) == null ? void 0 : F.at(N)
9989
10013
  },
9990
10014
  wd: {
9991
- height: (ce = E == null ? void 0 : E.wind_wave_height) == null ? void 0 : ce.at(N),
10015
+ height: (me = E == null ? void 0 : E.wind_wave_height) == null ? void 0 : me.at(N),
9992
10016
  degree: (xe = E == null ? void 0 : E.wind_wave_direction) == null ? void 0 : xe.at(N),
9993
10017
  bearing: ((Le = E == null ? void 0 : E.wind_wave_direction) == null ? void 0 : Le.at(N)) !== null ? (((Pe = E == null ? void 0 : E.wind_wave_direction) == null ? void 0 : Pe.at(N)) + 180) % 360 : null,
9994
10018
  period: (Ae = E == null ? void 0 : E.wind_wave_period) == null ? void 0 : Ae.at(N),
@@ -9998,10 +10022,10 @@ class Zo {
9998
10022
  current: {
9999
10023
  speed: (Re = E == null ? void 0 : E.ocean_current_velocity) == null ? void 0 : Re.at(N),
10000
10024
  kts: (_e = E == null ? void 0 : E.ocean_current_velocity) == null ? void 0 : _e.at(N),
10001
- degree: (U = E == null ? void 0 : E.ocean_current_direction) == null ? void 0 : U.at(N),
10002
- bearing: ((ae = E == null ? void 0 : E.ocean_current_direction) == null ? void 0 : ae.at(N)) ?? null
10025
+ degree: (H = E == null ? void 0 : E.ocean_current_direction) == null ? void 0 : H.at(N),
10026
+ bearing: ((te = E == null ? void 0 : E.ocean_current_direction) == null ? void 0 : te.at(N)) ?? null
10003
10027
  },
10004
- sst: (Ne = E == null ? void 0 : E.sea_surface_temperature) == null ? void 0 : Ne.at(N),
10028
+ sst: (je = E == null ? void 0 : E.sea_surface_temperature) == null ? void 0 : je.at(N),
10005
10029
  height: (Ie = E == null ? void 0 : E.sea_level_height_msl) == null ? void 0 : Ie.at(N)
10006
10030
  }, Me.wave = this.parseWave(Me.wave, ye == null ? void 0 : ye.wind), Me.current.direction = this.degree2Direction(Me.current.degree), Object.assign(Oe[Be], Me), Be++;
10007
10031
  }
@@ -10032,75 +10056,75 @@ class Zo {
10032
10056
  };
10033
10057
  }
10034
10058
  static pickDaily(e, a) {
10035
- var i, o, r, s, c, n, g, p, f, w, v, y, k, T, R, I, P, _, z, C, L, O, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe, Le, Pe, Ae, De;
10036
- const Re = typeof a == "string" ? M(a) : a, _e = e == null ? void 0 : e.weather, U = e == null ? void 0 : e.marine, ae = M((r = (o = (i = _e == null ? void 0 : _e[0]) == null ? void 0 : i.daily) == null ? void 0 : o.time) == null ? void 0 : r.at(0)), Ne = M((n = (c = (s = _e == null ? void 0 : _e[0]) == null ? void 0 : s.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Ie = [];
10037
- if (Re.isBetween(ae, Ne, "millisecond", "[]")) {
10059
+ var i, o, r, s, c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q, re, he, pe, ne, X, oe, ue, ce, F, me, xe, Le, Pe, Ae, De;
10060
+ const Re = typeof a == "string" ? M(a) : a, _e = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, te = M((r = (o = (i = _e == null ? void 0 : _e[0]) == null ? void 0 : i.daily) == null ? void 0 : o.time) == null ? void 0 : r.at(0)), je = M((n = (c = (s = _e == null ? void 0 : _e[0]) == null ? void 0 : s.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Ie = [];
10061
+ if (Re.isBetween(te, je, "millisecond", "[]")) {
10038
10062
  let ge, fe;
10039
- const W = Re.diff(ae, "d", !1);
10063
+ const W = Re.diff(te, "d", !1);
10040
10064
  if (_e)
10041
10065
  for (const Ce of _e) {
10042
- const te = Ce.daily;
10066
+ const ae = Ce.daily;
10043
10067
  ge = {
10044
- code: (g = te.weather_code) == null ? void 0 : g.at(W),
10068
+ code: (g = ae.weather_code) == null ? void 0 : g.at(W),
10045
10069
  temp: {
10046
- max: (p = te.temperature_2m_max) == null ? void 0 : p.at(W),
10047
- min: (f = te.temperature_2m_min) == null ? void 0 : f.at(W),
10048
- mean: (w = te.temperature_2m_mean) == null ? void 0 : w.at(W)
10070
+ max: (p = ae.temperature_2m_max) == null ? void 0 : p.at(W),
10071
+ min: (f = ae.temperature_2m_min) == null ? void 0 : f.at(W),
10072
+ mean: (w = ae.temperature_2m_mean) == null ? void 0 : w.at(W)
10049
10073
  },
10050
10074
  apparentTemp: {
10051
- max: (v = te.apparent_temperature_max) == null ? void 0 : v.at(W),
10052
- min: (y = te.apparent_temperature_min) == null ? void 0 : y.at(W)
10075
+ max: (v = ae.apparent_temperature_max) == null ? void 0 : v.at(W),
10076
+ min: (y = ae.apparent_temperature_min) == null ? void 0 : y.at(W)
10053
10077
  },
10054
10078
  precip: {
10055
- sum: (k = te.precipitation_sum) == null ? void 0 : k.at(W),
10056
- rainSum: (T = te.rain_sum) == null ? void 0 : T.at(W),
10057
- snowfallSum: (R = te.snowfall_sum) == null ? void 0 : R.at(W),
10058
- showersSum: (I = te.showers_sum) == null ? void 0 : I.at(W),
10059
- hours: (P = te.precipitation_hours) == null ? void 0 : P.at(W),
10060
- probability: (_ = te.precipitation_probability_max) == null ? void 0 : _.at(W)
10079
+ sum: (C = ae.precipitation_sum) == null ? void 0 : C.at(W),
10080
+ rainSum: (T = ae.rain_sum) == null ? void 0 : T.at(W),
10081
+ snowfallSum: (B = ae.snowfall_sum) == null ? void 0 : B.at(W),
10082
+ showersSum: (I = ae.showers_sum) == null ? void 0 : I.at(W),
10083
+ hours: (L = ae.precipitation_hours) == null ? void 0 : L.at(W),
10084
+ probability: (_ = ae.precipitation_probability_max) == null ? void 0 : _.at(W)
10061
10085
  },
10062
10086
  rh: {
10063
- max: (z = te.relative_humidity_2m_max) == null ? void 0 : z.at(W),
10064
- min: (C = te.relative_humidity_2m_min) == null ? void 0 : C.at(W),
10065
- mean: (L = te.relative_humidity_2m_mean) == null ? void 0 : L.at(W)
10087
+ max: (k = ae.relative_humidity_2m_max) == null ? void 0 : k.at(W),
10088
+ min: (P = ae.relative_humidity_2m_min) == null ? void 0 : P.at(W),
10089
+ mean: (z = ae.relative_humidity_2m_mean) == null ? void 0 : z.at(W)
10066
10090
  },
10067
10091
  wind: {
10068
- speed: (O = te.wind_speed_10m_max) == null ? void 0 : O.at(W),
10069
- kts: (G = te.wind_speed_10m_max) == null ? void 0 : G.at(W),
10070
- degree: (Y = te.wind_direction_10m_dominant) == null ? void 0 : Y.at(W),
10071
- gusts: (K = te.wind_gusts_10m_max) == null ? void 0 : K.at(W),
10072
- bearing: ((V = te.wind_direction_10m_dominant) == null ? void 0 : V.at(W)) !== null ? (((J = te.wind_direction_10m_dominant) == null ? void 0 : J.at(W)) + 180) % 360 : null
10092
+ speed: (R = ae.wind_speed_10m_max) == null ? void 0 : R.at(W),
10093
+ kts: (G = ae.wind_speed_10m_max) == null ? void 0 : G.at(W),
10094
+ degree: (Y = ae.wind_direction_10m_dominant) == null ? void 0 : Y.at(W),
10095
+ gusts: (K = ae.wind_gusts_10m_max) == null ? void 0 : K.at(W),
10096
+ bearing: ((V = ae.wind_direction_10m_dominant) == null ? void 0 : V.at(W)) !== null ? (((J = ae.wind_direction_10m_dominant) == null ? void 0 : J.at(W)) + 180) % 360 : null
10073
10097
  }
10074
10098
  };
10075
10099
  const { name: le, url: Oe, bg: N } = this.parseWeatherCode(ge.code, !0);
10076
10100
  ge.name = le, ge.url = Oe, ge.bg = N, ge.wind.scale = this.beaufort(this.kts2ms(ge.wind.kts)), ge.wind.direction = this.degree2Direction(ge.wind.degree), Ie.push({
10077
- utc: ae.add(W, "d").utc().format(),
10101
+ utc: te.add(W, "d").utc().format(),
10078
10102
  model: Ce.model,
10079
10103
  weather: { ...ge }
10080
10104
  });
10081
10105
  }
10082
- if (U) {
10106
+ if (H) {
10083
10107
  let Ce = 0;
10084
- for (const te of U) {
10085
- const le = te.daily;
10108
+ for (const ae of H) {
10109
+ const le = ae.daily;
10086
10110
  fe = {
10087
10111
  wave: {
10088
10112
  sig: {
10089
10113
  height: (ee = le.wave_height_max) == null ? void 0 : ee.at(W),
10090
10114
  degree: (Q = le.wave_direction_dominant) == null ? void 0 : Q.at(W),
10091
10115
  period: (re = le.wave_period_max) == null ? void 0 : re.at(W),
10092
- bearing: ((de = le.wave_direction_dominant) == null ? void 0 : de.at(W)) !== null ? (((pe = le.wave_direction_dominant) == null ? void 0 : pe.at(W)) + 180) % 360 : null
10116
+ bearing: ((he = le.wave_direction_dominant) == null ? void 0 : he.at(W)) !== null ? (((pe = le.wave_direction_dominant) == null ? void 0 : pe.at(W)) + 180) % 360 : null
10093
10117
  },
10094
10118
  swell: {
10095
- height: (se = le.swell_wave_height_max) == null ? void 0 : se.at(W),
10119
+ height: (ne = le.swell_wave_height_max) == null ? void 0 : ne.at(W),
10096
10120
  degree: (X = le.swell_wave_direction_dominant) == null ? void 0 : X.at(W),
10097
10121
  period: (oe = le.swell_wave_period_max) == null ? void 0 : oe.at(W),
10098
10122
  peakPeriod: (ue = le.swell_wave_peak_period_max) == null ? void 0 : ue.at(W),
10099
10123
  // bearing: daily.swell_wave_direction_dominant?.at(day) !== null ? (daily.swell_wave_direction_dominant?.at(day) + 180) % 360 : null,
10100
- bearing: ((ne = le.swell_wave_direction_dominant) == null ? void 0 : ne.at(W)) !== null ? ((F = le.swell_wave_direction_dominant) == null ? void 0 : F.at(W)) % 360 : null
10124
+ bearing: ((ce = le.swell_wave_direction_dominant) == null ? void 0 : ce.at(W)) !== null ? ((F = le.swell_wave_direction_dominant) == null ? void 0 : F.at(W)) % 360 : null
10101
10125
  },
10102
10126
  wd: {
10103
- height: (ce = le.wind_wave_height_max) == null ? void 0 : ce.at(W),
10127
+ height: (me = le.wind_wave_height_max) == null ? void 0 : me.at(W),
10104
10128
  degree: (xe = le.wind_wave_direction_dominant) == null ? void 0 : xe.at(W),
10105
10129
  period: (Le = le.wind_wave_period_max) == null ? void 0 : Le.at(W),
10106
10130
  peakPeriod: (Pe = le.wind_wave_peak_period_max) == null ? void 0 : Pe.at(W),
@@ -10512,7 +10536,7 @@ class Zo {
10512
10536
  return isNaN(e) || e <= 0.1 ? a = "Calm" : e <= 0.5 ? a = "Smooth" : e <= 1.25 ? a = "Slight" : e <= 2.5 ? a = "Moderate" : e <= 4 ? a = "Rough" : e <= 6 ? a = "VeryRough" : e <= 9 ? a = "High" : e <= 14 ? a = "VeryHigh" : a = "Precipitous", a;
10513
10537
  }
10514
10538
  }
10515
- const ec = {
10539
+ const tc = {
10516
10540
  name: "IdmTropicals",
10517
10541
  props: {
10518
10542
  permission: {
@@ -10581,9 +10605,9 @@ const ec = {
10581
10605
  showTropicalsInfo: !1,
10582
10606
  activeTropicals: void 0,
10583
10607
  activeTropicalsMarker: void 0,
10584
- empty: H.featureCollection([]),
10608
+ empty: U.featureCollection([]),
10585
10609
  circleSource: "circle-source",
10586
- circleSourceData: H.featureCollection([]),
10610
+ circleSourceData: U.featureCollection([]),
10587
10611
  circleLayer: "tropical-circle-layer",
10588
10612
  showLegend: !1
10589
10613
  };
@@ -10638,7 +10662,7 @@ const ec = {
10638
10662
  },
10639
10663
  map: {
10640
10664
  handler() {
10641
- this.map ? (this.toggle = localStorage.getItem(this.tropicalCacheKey) === "true" || !1, localStorage.setItem(this.tropicalCacheKey, this.toggle), this.toggle && this.fetchTropicals()) : this.showTropicalsInfo = !1;
10665
+ this.map ? (this.toggle = localStorage.getItem(this.tropicalCacheKey) === "true" || !1, localStorage.setItem(this.tropicalCacheKey, this.toggle), this.toggle && this.fetchTropicals()) : this.handleClear();
10642
10666
  }
10643
10667
  },
10644
10668
  showTropicalsInfo: {
@@ -10663,7 +10687,7 @@ const ec = {
10663
10687
  methods: {
10664
10688
  handleMenuToggle() {
10665
10689
  var t, e, a;
10666
- this.toggle = !this.toggle, localStorage.setItem(this.tropicalCacheKey, this.toggle), this.toggle ? this.fetchTropicals() : (a = (e = (t = this.$parent) == null ? void 0 : t.$refs) == null ? void 0 : e.idmBottomBar) == null || a.handleToggle("tropical", !1);
10690
+ this.toggle = !this.toggle, localStorage.setItem(this.tropicalCacheKey, this.toggle), this.toggle ? this.fetchTropicals() : (this.handleClear(), (a = (e = (t = this.$parent) == null ? void 0 : t.$refs) == null ? void 0 : e.idmBottomBar) == null || a.handleToggle("tropical", !1));
10667
10691
  },
10668
10692
  async fetchTropicals() {
10669
10693
  var o, r, s;
@@ -10684,9 +10708,9 @@ const ec = {
10684
10708
  },
10685
10709
  responseType: /\.(jpg|png)$/.test(g.tropicals) ? "blob" : "json"
10686
10710
  }).then((p) => {
10687
- var v, y, k;
10711
+ var v, y, C;
10688
10712
  const f = Vo.convert2Geojson(((v = p == null ? void 0 : p.data) == null ? void 0 : v.data) || (p == null ? void 0 : p.data));
10689
- ((k = (y = p == null ? void 0 : p.config) == null ? void 0 : y.headers) == null ? void 0 : k.key) && f && (this.tropicals = {
10713
+ ((C = (y = p == null ? void 0 : p.config) == null ? void 0 : y.headers) == null ? void 0 : C.key) && f && (this.tropicals = {
10690
10714
  data: f,
10691
10715
  active: !0,
10692
10716
  cached: !0,
@@ -10937,18 +10961,18 @@ const ec = {
10937
10961
  this.interpolateData = JSON.parse(JSON.stringify(t)), this.handleDateChange();
10938
10962
  },
10939
10963
  handleClear() {
10940
- var t, e, a, i, o;
10941
- this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (t = this.interpolateMarkers) == null || t.forEach((r) => r == null ? void 0 : r.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource)), (e = this.map) == null || e.off("click", this.hoverLayers, this.handleClick), (a = this.map) == null || a.off("mousemove", this.hoverLayers, this.handleHover), (i = this.map) == null || i.off("mouseleave", this.hoverLayers, this.handleLeave), this.showTropicalsInfo = !1, (o = this.activeTropicalsMarker) == null || o.remove(), this.activeTropicalsMarker = void 0;
10964
+ var t, e, a, i;
10965
+ this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (t = this.interpolateMarkers) == null || t.forEach((o) => o == null ? void 0 : o.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource)), (e = this.map) == null || e.off("click", this.hoverLayers, this.handleClick), (a = this.map) == null || a.off("mousemove", this.hoverLayers, this.handleHover), (i = this.map) == null || i.off("mouseleave", this.hoverLayers, this.handleLeave), this.handleCloseInfoMarker();
10942
10966
  },
10943
10967
  handleDateChange() {
10944
- var t, e, a, i, o, r, s, c, n, g, p, f, w, v, y, k, T, R, I, P, _, z, C, L, O, G, Y, K, V, J, ee, Q;
10968
+ var t, e, a, i, o, r, s, c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q;
10945
10969
  if ((t = this.interpolateMarkers) == null || t.forEach((re) => re == null ? void 0 : re.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
10946
- const re = M(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), de = this.interpolateData.filter((X) => X.properties.date === (re == null ? void 0 : re.format()) && !X.properties.disabled), pe = this.handleComputePolygons(de), se = H.featureCollection([...de]);
10970
+ const re = M(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), he = this.interpolateData.filter((X) => X.properties.date === (re == null ? void 0 : re.format()) && !X.properties.disabled), pe = this.handleComputePolygons(he), ne = U.featureCollection([...he]);
10947
10971
  pe.forEach((X) => {
10948
- se.features.push(X);
10949
- }), (a = this.map) != null && a.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(se) : ((o = this.map) == null || o.addSource(this.interpolateSource, {
10972
+ ne.features.push(X);
10973
+ }), (a = this.map) != null && a.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(ne) : ((o = this.map) == null || o.addSource(this.interpolateSource, {
10950
10974
  type: "geojson",
10951
- data: se
10975
+ data: ne
10952
10976
  }), (r = this.map) == null || r.addLayer({
10953
10977
  id: this.interpolateLineLayer,
10954
10978
  type: "line",
@@ -10960,10 +10984,10 @@ const ec = {
10960
10984
  "line-width": 1
10961
10985
  }
10962
10986
  })), this.interpolateMarkers = [];
10963
- for (const X of de)
10987
+ for (const X of he)
10964
10988
  if (!X.properties.disabled) {
10965
10989
  let oe = "#f44336";
10966
- ((c = (s = X.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((g = (n = X.properties) == null ? void 0 : n.wind) != null && g.kts) ? oe = "#03f869" : ((f = (p = X.properties) == null ? void 0 : p.wind) == null ? void 0 : f.kts) >= 32 && ((v = (w = X.properties) == null ? void 0 : w.wind) == null ? void 0 : v.kts) < 47 ? oe = "#f2f202" : ((k = (y = X.properties) == null ? void 0 : y.wind) == null ? void 0 : k.kts) >= 47 && ((R = (T = X.properties) == null ? void 0 : T.wind) == null ? void 0 : R.kts) < 63 ? oe = "#ff9100" : ((P = (I = X.properties) == null ? void 0 : I.wind) == null ? void 0 : P.kts) >= 63 && ((z = (_ = X.properties) == null ? void 0 : _.wind) == null ? void 0 : z.kts) < 79 ? oe = "#f44336" : ((L = (C = X.properties) == null ? void 0 : C.wind) == null ? void 0 : L.kts) >= 79 && ((G = (O = X.properties) == null ? void 0 : O.wind) == null ? void 0 : G.kts) < 94 ? oe = "#f903d0" : ((K = (Y = X.properties) == null ? void 0 : Y.wind) == null ? void 0 : K.kts) >= 94 ? oe = "#8702f9" : oe = "#f44336";
10990
+ ((c = (s = X.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((g = (n = X.properties) == null ? void 0 : n.wind) != null && g.kts) ? oe = "#03f869" : ((f = (p = X.properties) == null ? void 0 : p.wind) == null ? void 0 : f.kts) >= 32 && ((v = (w = X.properties) == null ? void 0 : w.wind) == null ? void 0 : v.kts) < 47 ? oe = "#f2f202" : ((C = (y = X.properties) == null ? void 0 : y.wind) == null ? void 0 : C.kts) >= 47 && ((B = (T = X.properties) == null ? void 0 : T.wind) == null ? void 0 : B.kts) < 63 ? oe = "#ff9100" : ((L = (I = X.properties) == null ? void 0 : I.wind) == null ? void 0 : L.kts) >= 63 && ((k = (_ = X.properties) == null ? void 0 : _.wind) == null ? void 0 : k.kts) < 79 ? oe = "#f44336" : ((z = (P = X.properties) == null ? void 0 : P.wind) == null ? void 0 : z.kts) >= 79 && ((G = (R = X.properties) == null ? void 0 : R.wind) == null ? void 0 : G.kts) < 94 ? oe = "#f903d0" : ((K = (Y = X.properties) == null ? void 0 : Y.wind) == null ? void 0 : K.kts) >= 94 ? oe = "#8702f9" : oe = "#f44336";
10967
10991
  const ue = `<svg t="1719918955501"
10968
10992
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
10969
10993
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -10978,9 +11002,9 @@ const ec = {
10978
11002
  <path
10979
11003
  d="M420.66666667 959.17a16.08 16.08 0 0 1-15.91-13.49A15.89 15.89 0 0 1 415.50666667 928c1.49-0.55 38.88-14.76 72.79-65.52A354.55 354.55 0 0 1 162.66666667 509.17a450.14 450.14 0 0 1 450.5-450.5 16.07 16.07 0 0 1 15.91 13.48 15.88 15.88 0 0 1-10.75 17.66c-1.58 0.58-39.13 14.9-73.07 65.95A354.22 354.22 0 0 1 871.66666667 509.17a16 16 0 0 1-0.52 4.05A450.14 450.14 0 0 1 420.66666667 959.17zM554.80666667 94.72C351.57666667 123.2 194.66666667 298.21 194.66666667 509.17c0 177.08 144.06 321.74 321.13 322.48a16 16 0 0 1 14.07 23.49c-16.11 30.42-34.27 52.37-50.85 68C682.25666667 894.63 839.16666667 719.63 839.16666667 508.67a15.94 15.94 0 0 1 0.47-3.86C837.30666667 329.33 693.82666667 187 517.80666667 186.67A16 16 0 0 1 503.66666667 163.21c16.21-30.69 34.47-52.79 51.14-68.49z"
10980
11004
  fill="#ffffff" p-id="18386"></path>
10981
- </svg>`, ne = document.createElement("div");
10982
- ne.className = "idm-tropical-gl4-hourly-marker", ne.innerHTML = `<div class="${X.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${ue}</div>`;
10983
- const F = new ve.Marker(ne).setLngLat(X.geometry.coordinates).addTo(this.map);
11005
+ </svg>`, ce = document.createElement("div");
11006
+ ce.className = "idm-tropical-gl4-hourly-marker", ce.innerHTML = `<div class="${X.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${ue}</div>`;
11007
+ const F = new ve.Marker(ce).setLngLat(X.geometry.coordinates).addTo(this.map);
10984
11008
  this.interpolateMarkers.push(F), (J = (V = this.map) == null ? void 0 : V.getSource(this.circleSource)) == null || J.setData(this.circleSourceData);
10985
11009
  }
10986
11010
  } else
@@ -11009,6 +11033,12 @@ const ec = {
11009
11033
  this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]) : this.activeTropicalsMarker = new ve.Marker(w).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
11010
11034
  });
11011
11035
  },
11036
+ handleCloseInfoMarker() {
11037
+ this.showTropicalsInfo = !1, this.$nextTick(() => {
11038
+ var t;
11039
+ (t = this.activeTropicalsMarker) == null || t.remove(), this.activeTropicalsMarker = void 0;
11040
+ });
11041
+ },
11012
11042
  handleForecastToggle(t) {
11013
11043
  var i, o, r, s, c, n;
11014
11044
  t.disabled = !t.disabled;
@@ -11017,7 +11047,7 @@ const ec = {
11017
11047
  g.properties.category === e && (g.properties.disabled = t.disabled);
11018
11048
  }), this.interpolateData.forEach((g) => {
11019
11049
  g.properties.category === e && (g.properties.disabled = t.disabled);
11020
- }), (s = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || s.setData(H.featureCollection(a)), (n = (c = this.map) == null ? void 0 : c.getSource(this.clusterSource)) == null || n.setData(H.featureCollection(a)), this.handleDateChange();
11050
+ }), (s = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || s.setData(U.featureCollection(a)), (n = (c = this.map) == null ? void 0 : c.getSource(this.clusterSource)) == null || n.setData(U.featureCollection(a)), this.handleDateChange();
11021
11051
  },
11022
11052
  handleStrikeProbability(t) {
11023
11053
  this.$emit("tropicalProbability", t);
@@ -11074,22 +11104,22 @@ const ec = {
11074
11104
  let n;
11075
11105
  switch (s) {
11076
11106
  case "ne":
11077
- n = H.lineArc(t, c, 0, 90, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
11107
+ n = U.lineArc(t, c, 0, 90, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
11078
11108
  break;
11079
11109
  case "se":
11080
- n = H.lineArc(t, c, 90, 180, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
11110
+ n = U.lineArc(t, c, 90, 180, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
11081
11111
  break;
11082
11112
  case "sw":
11083
- n = H.lineArc(t, c, 180, 270, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
11113
+ n = U.lineArc(t, c, 180, 270, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
11084
11114
  break;
11085
11115
  case "nw":
11086
- n = H.lineArc(t, c, 270, 360, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
11116
+ n = U.lineArc(t, c, 270, 360, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
11087
11117
  break;
11088
11118
  }
11089
11119
  i.push(...(r = n == null ? void 0 : n.geometry) == null ? void 0 : r.coordinates);
11090
11120
  }
11091
- const o = H.lineString(i);
11092
- return H.lineToPolygon(o, { properties: a });
11121
+ const o = U.lineString(i);
11122
+ return U.lineToPolygon(o, { properties: a });
11093
11123
  },
11094
11124
  handleNotification(t) {
11095
11125
  this.$emit("tropicalNotification", t);
@@ -11101,23 +11131,23 @@ const ec = {
11101
11131
  this.map.getCanvas().style.cursor = "grab";
11102
11132
  }
11103
11133
  }
11104
- }, tc = { class: "idm-tropical-gl4" }, ac = {
11134
+ }, ac = { class: "idm-tropical-gl4" }, oc = {
11105
11135
  key: 0,
11106
11136
  id: "idm-tropical-gl4-info",
11107
11137
  class: "idm-tropical-gl4-info"
11108
- }, oc = { class: "pb-1" }, ic = { class: "text-h6 font-weight-600" }, rc = {
11138
+ }, ic = { class: "pb-1" }, rc = { class: "text-h6 font-weight-600" }, lc = {
11109
11139
  key: 0,
11110
11140
  class: "text-body-1 text-label"
11111
- }, lc = { class: "text-body-2" }, sc = { class: "text-label" }, nc = { class: "d-flex justify-space-between align-center" }, cc = { class: "w-60" }, mc = { class: "text-label pr-1" }, dc = { class: "flex-1-1-0" }, hc = { class: "text-label pr-1" }, pc = { class: "py-2 d-flex justify-space-between align-center" }, uc = { class: "w-60" }, gc = { class: "text-label pr-1" }, fc = { class: "flex-1-1-0" }, yc = { class: "text-label pr-1" }, bc = { class: "d-flex align-center flex-1-1-100 justify-space-between" }, wc = {
11141
+ }, sc = { class: "text-body-2" }, nc = { class: "text-label" }, cc = { class: "d-flex justify-space-between align-center" }, mc = { class: "w-60" }, dc = { class: "text-label pr-1" }, hc = { class: "flex-1-1-0" }, pc = { class: "text-label pr-1" }, uc = { class: "py-2 d-flex justify-space-between align-center" }, gc = { class: "w-60" }, fc = { class: "text-label pr-1" }, yc = { class: "flex-1-1-0" }, bc = { class: "text-label pr-1" }, wc = { class: "d-flex align-center flex-1-1-100 justify-space-between" }, xc = {
11112
11142
  class: "text-label pr-1",
11113
11143
  style: { width: "130px" }
11114
- }, xc = { class: "model-box flex-1-1-0 d-flex justify-end align-center flex-wrap ga-1 pa-1" }, vc = { class: "more" }, _c = {
11115
- class: "my-4",
11116
- style: { height: "80px" }
11117
- }, kc = { class: "pa-1 d-flex justify-space-between align-center" }, zc = { class: "pa-1 d-flex justify-space-between align-center" };
11118
- function Lc(t, e, a, i, o, r) {
11144
+ }, vc = { class: "model-box d-flex justify-end align-center flex-wrap ga-1 pa-1" }, _c = { class: "more" }, kc = {
11145
+ class: "my-3",
11146
+ style: { height: "80px", width: "100%" }
11147
+ }, zc = { class: "pa-1 d-flex justify-space-between align-center" }, Lc = { class: "pa-1 d-flex justify-space-between align-center" };
11148
+ function Pc(t, e, a, i, o, r) {
11119
11149
  const s = x("VBtn"), c = x("VTooltip"), n = x("VCardText"), g = x("VDivider"), p = x("VCardActions"), f = x("VCard");
11120
- return b(), S("div", tc, [
11150
+ return b(), S("div", ac, [
11121
11151
  l("div", {
11122
11152
  class: "menu-bar-box transition pa-1",
11123
11153
  style: ie({ top: a.top + 134 + "px", right: o.right + "px" })
@@ -11127,53 +11157,54 @@ function Lc(t, e, a, i, o, r) {
11127
11157
  location: "left"
11128
11158
  }, {
11129
11159
  activator: u(({ props: w }) => [
11130
- d(s, B(w, {
11160
+ d(s, O(w, {
11131
11161
  "min-width": "32",
11132
11162
  width: "32",
11133
11163
  height: "32",
11134
11164
  class: ["text-none pa-0", o.toggle ? "bg-primary active-border" : ""],
11135
11165
  onClick: r.handleMenuToggle
11136
11166
  }), {
11137
- default: u(() => e[4] || (e[4] = [
11167
+ default: u(() => e[3] || (e[3] = [
11138
11168
  l("i", { class: "iconfont icon-Tropical text-h4" }, null, -1)
11139
11169
  ])),
11140
11170
  _: 2,
11141
- __: [4]
11171
+ __: [3]
11142
11172
  }, 1040, ["class", "onClick"])
11143
11173
  ]),
11144
11174
  _: 1
11145
11175
  }, 8, ["text"])
11146
11176
  ], 4),
11147
- o.showTropicalsInfo && !t.$attrs.hideTropicalsLegend ? (b(), S("div", ac, [
11177
+ o.showTropicalsInfo && !t.$attrs.hideTropicalsLegend ? (b(), S("div", oc, [
11148
11178
  d(f, {
11149
- width: "400",
11150
- elevation: "16"
11179
+ "min-width": "400",
11180
+ elevation: "16",
11181
+ "max-width": "500"
11151
11182
  }, {
11152
11183
  default: u(() => [
11153
11184
  d(n, null, {
11154
11185
  default: u(() => {
11155
- var w, v, y, k, T, R, I, P, _, z;
11186
+ var w, v, y, C, T, B, I, L, _, k;
11156
11187
  return [
11157
- l("div", oc, [
11158
- l("span", ic, h((w = o.activeTropicals) == null ? void 0 : w.name), 1),
11159
- (y = (v = o.activeTropicals) == null ? void 0 : v.history) != null && y.level ? (b(), S("span", rc, ", " + h((T = (k = o.activeTropicals) == null ? void 0 : k.history) == null ? void 0 : T.level), 1)) : D("", !0)
11188
+ l("div", ic, [
11189
+ l("span", rc, h((w = o.activeTropicals) == null ? void 0 : w.name), 1),
11190
+ (y = (v = o.activeTropicals) == null ? void 0 : v.history) != null && y.level ? (b(), S("span", lc, ", " + h((T = (C = o.activeTropicals) == null ? void 0 : C.history) == null ? void 0 : T.level), 1)) : D("", !0)
11160
11191
  ]),
11161
11192
  d(s, {
11162
11193
  icon: "",
11163
11194
  density: "compact",
11164
11195
  variant: "plain",
11165
11196
  class: "close",
11166
- onClick: e[0] || (e[0] = (C) => o.showTropicalsInfo = !1)
11197
+ onClick: r.handleCloseInfoMarker
11167
11198
  }, {
11168
- default: u(() => e[5] || (e[5] = [
11199
+ default: u(() => e[4] || (e[4] = [
11169
11200
  l("i", { class: "iconfont icon-close text-label text-h4" }, null, -1)
11170
11201
  ])),
11171
11202
  _: 1,
11172
- __: [5]
11173
- }),
11174
- l("div", lc, [
11175
- l("span", sc, h(t.$t("actions.lastUpdate")) + ": ", 1),
11176
- l("span", null, h(r.computeTime(((I = (R = o.activeTropicals) == null ? void 0 : R.history) == null ? void 0 : I.updated) || ((z = (_ = (P = o.activeTropicals) == null ? void 0 : P.forecasts) == null ? void 0 : _.filter((C) => !C.disabled)[0]) == null ? void 0 : z.date))), 1)
11203
+ __: [4]
11204
+ }, 8, ["onClick"]),
11205
+ l("div", sc, [
11206
+ l("span", nc, h(t.$t("actions.lastUpdate")) + ": ", 1),
11207
+ l("span", null, h(r.computeTime(((I = (B = o.activeTropicals) == null ? void 0 : B.history) == null ? void 0 : I.updated) || ((k = (_ = (L = o.activeTropicals) == null ? void 0 : L.forecasts) == null ? void 0 : _.filter((P) => !P.disabled)[0]) == null ? void 0 : k.date))), 1)
11177
11208
  ])
11178
11209
  ];
11179
11210
  }),
@@ -11182,42 +11213,43 @@ function Lc(t, e, a, i, o, r) {
11182
11213
  d(g),
11183
11214
  d(n, { class: "text-body-1" }, {
11184
11215
  default: u(() => {
11185
- var w, v, y, k, T, R, I, P, _;
11216
+ var w, v, y, C, T, B, I, L, _;
11186
11217
  return [
11187
- l("div", nc, [
11188
- l("div", cc, [
11189
- l("label", mc, h(t.$t("weather.windSpeed")) + " : ", 1),
11218
+ l("div", cc, [
11219
+ l("div", mc, [
11220
+ l("label", dc, h(t.$t("weather.windSpeed")) + " : ", 1),
11190
11221
  l("span", null, h(((v = (w = o.activeTropicals) == null ? void 0 : w.history) == null ? void 0 : v.kts) || "-") + " kts", 1),
11191
- l("span", null, ", BF " + h(r.computeBF(((k = (y = o.activeTropicals) == null ? void 0 : y.history) == null ? void 0 : k.kts) || "-")), 1)
11222
+ l("span", null, ", BF " + h(r.computeBF(((C = (y = o.activeTropicals) == null ? void 0 : y.history) == null ? void 0 : C.kts) || "-")), 1)
11192
11223
  ]),
11193
- l("div", dc, [
11194
- l("label", hc, h(t.$t("tropical.pressure")) + " : ", 1),
11195
- l("span", null, h(((R = (T = o.activeTropicals) == null ? void 0 : T.history) == null ? void 0 : R.pressure) || "-") + " hPa", 1)
11224
+ l("div", hc, [
11225
+ l("label", pc, h(t.$t("tropical.pressure")) + " : ", 1),
11226
+ l("span", null, h(((B = (T = o.activeTropicals) == null ? void 0 : T.history) == null ? void 0 : B.pressure) || "-") + " hPa", 1)
11196
11227
  ])
11197
11228
  ]),
11198
- l("div", pc, [
11199
- l("div", uc, [
11200
- l("label", gc, h(t.$t("tropical.moveSpeed")) + " : ", 1),
11229
+ l("div", uc, [
11230
+ l("div", gc, [
11231
+ l("label", fc, h(t.$t("tropical.moveSpeed")) + " : ", 1),
11201
11232
  l("span", null, h(((I = r.computeMovement(o.activeTropicals)) == null ? void 0 : I.kts) || "-") + " kts", 1)
11202
11233
  ]),
11203
- l("div", fc, [
11204
- l("label", yc, h(t.$t("tropical.moveDir")) + " : ", 1),
11205
- l("span", null, h(((P = r.computeMovement(o.activeTropicals)) == null ? void 0 : P.deg) || "-") + "°", 1)
11234
+ l("div", yc, [
11235
+ l("label", bc, h(t.$t("tropical.moveDir")) + " : ", 1),
11236
+ l("span", null, h(((L = r.computeMovement(o.activeTropicals)) == null ? void 0 : L.deg) || "-") + "°", 1)
11206
11237
  ])
11207
11238
  ]),
11208
- l("div", bc, [
11209
- l("label", wc, h(t.$t("weather.forecastModels")) + " : ", 1),
11210
- l("div", xc, [
11211
- (b(!0), S(be, null, we((_ = o.activeTropicals) == null ? void 0 : _.forecasts, (z, C) => (b(), A(s, {
11212
- key: C,
11239
+ l("div", wc, [
11240
+ l("label", xc, h(t.$t("weather.forecastModels")) + " : ", 1),
11241
+ l("div", vc, [
11242
+ (b(!0), S(be, null, we((_ = o.activeTropicals) == null ? void 0 : _.forecasts, (k, P) => (b(), A(s, {
11243
+ key: P,
11213
11244
  density: "compact",
11214
- variant: z.disabled ? "outlined" : "flat",
11215
- color: z.disabled ? "" : "primary",
11216
- class: He(["model text-none text-body-1", z.disabled ? "" : "btn-border-2"]),
11217
- onClick: (L) => r.handleForecastToggle(z)
11245
+ variant: k.disabled ? "outlined" : "flat",
11246
+ color: k.disabled ? "" : "primary",
11247
+ "min-width": 30,
11248
+ class: He(["model text-none text-body-1 px-1", k.disabled ? "" : "btn-border-2"]),
11249
+ onClick: (z) => r.handleForecastToggle(k)
11218
11250
  }, {
11219
11251
  default: u(() => [
11220
- j(h(z.model), 1)
11252
+ j(h(k.model), 1)
11221
11253
  ]),
11222
11254
  _: 2
11223
11255
  }, 1032, ["variant", "color", "class", "onClick"]))), 128))
@@ -11236,9 +11268,9 @@ function Lc(t, e, a, i, o, r) {
11236
11268
  variant: "text",
11237
11269
  color: o.showLegend ? "primary" : "",
11238
11270
  class: "text-none text-body-1",
11239
- onClick: e[1] || (e[1] = (w) => o.showLegend = !o.showLegend)
11271
+ onClick: e[0] || (e[0] = (w) => o.showLegend = !o.showLegend)
11240
11272
  }, {
11241
- prepend: u(() => e[6] || (e[6] = [
11273
+ prepend: u(() => e[5] || (e[5] = [
11242
11274
  l("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
11243
11275
  ])),
11244
11276
  default: u(() => [
@@ -11246,13 +11278,13 @@ function Lc(t, e, a, i, o, r) {
11246
11278
  ]),
11247
11279
  _: 1
11248
11280
  }, 8, ["color"]),
11249
- l("div", vc, [
11281
+ l("div", _c, [
11250
11282
  a.permission & o.helper.LEVEL.Supper ? (b(), A(s, {
11251
11283
  key: 0,
11252
11284
  variant: "text",
11253
11285
  density: "compact",
11254
11286
  class: "text-none text-body-1",
11255
- onClick: e[2] || (e[2] = (w) => r.handleNotification(o.activeTropicals))
11287
+ onClick: e[1] || (e[1] = (w) => r.handleNotification(o.activeTropicals))
11256
11288
  }, {
11257
11289
  default: u(() => [
11258
11290
  j(h(t.$t("actions.notify")), 1)
@@ -11264,7 +11296,7 @@ function Lc(t, e, a, i, o, r) {
11264
11296
  density: "compact",
11265
11297
  "append-icon": "mdi-chevron-right",
11266
11298
  class: "text-none text-body-1",
11267
- onClick: e[3] || (e[3] = (w) => r.handleStrikeProbability(o.activeTropicals))
11299
+ onClick: e[2] || (e[2] = (w) => r.handleStrikeProbability(o.activeTropicals))
11268
11300
  }, {
11269
11301
  default: u(() => [
11270
11302
  j(h(t.$t("actions.viewReport")), 1)
@@ -11278,15 +11310,12 @@ function Lc(t, e, a, i, o, r) {
11278
11310
  ]),
11279
11311
  _: 1
11280
11312
  }),
11281
- l("div", _c, [
11282
- Ue(d(f, {
11283
- width: "400",
11284
- elevation: "16"
11285
- }, {
11313
+ l("div", kc, [
11314
+ Ue(d(f, { elevation: "16" }, {
11286
11315
  default: u(() => [
11287
11316
  d(n, null, {
11288
11317
  default: u(() => [
11289
- Ue(l("div", kc, e[7] || (e[7] = [
11318
+ Ue(l("div", zc, e[6] || (e[6] = [
11290
11319
  l("div", { class: "legend d-flex justify-start align-center" }, [
11291
11320
  l("div", { class: "icon td" }),
11292
11321
  l("div", { class: "label" }, "TD")
@@ -11314,7 +11343,7 @@ function Lc(t, e, a, i, o, r) {
11314
11343
  ]), 512), [
11315
11344
  [We, o.showLegend]
11316
11345
  ]),
11317
- Ue(l("div", zc, e[8] || (e[8] = [
11346
+ Ue(l("div", Lc, e[7] || (e[7] = [
11318
11347
  l("div", { class: "legend d-flex justify-start align-center" }, [
11319
11348
  l("div", { class: "icon history" }),
11320
11349
  l("div", { class: "label" }, "History")
@@ -11346,8 +11375,8 @@ function Lc(t, e, a, i, o, r) {
11346
11375
  ])) : D("", !0)
11347
11376
  ]);
11348
11377
  }
11349
- const Ko = /* @__PURE__ */ q(ec, [["render", Lc]]);
11350
- const Pc = {
11378
+ const Ko = /* @__PURE__ */ q(tc, [["render", Pc]]);
11379
+ const Cc = {
11351
11380
  name: "DateTimePicker",
11352
11381
  props: {
11353
11382
  locale: {
@@ -11488,19 +11517,19 @@ const Pc = {
11488
11517
  this.currentDate = t.clone().format("YYYY-MM-DD"), this.currentTime = t.clone().format("HH:00");
11489
11518
  }
11490
11519
  }
11491
- }, Cc = { class: "idm-gl4-timepicker" }, Tc = {
11520
+ }, Tc = { class: "idm-gl4-timepicker" }, Sc = {
11492
11521
  class: "pa-0",
11493
11522
  style: { width: "250px" }
11494
- }, Sc = {
11523
+ }, Ic = {
11495
11524
  class: "h-100 pa-0 d-flex flex-column justify-start align-center",
11496
11525
  style: { width: "100px" }
11497
- }, Ic = {
11526
+ }, Mc = {
11498
11527
  class: "d-flex justify-center align-center text-body-2",
11499
11528
  style: { height: "56px" }
11500
11529
  };
11501
- function Mc(t, e, a, i, o, r) {
11530
+ function Ac(t, e, a, i, o, r) {
11502
11531
  const s = x("VBtn"), c = x("VDatePicker"), n = x("VDivider"), g = x("VListItemTitle"), p = x("VListItem"), f = x("VList"), w = x("VCardText"), v = x("VCardActions"), y = x("VCard");
11503
- return b(), S("div", Cc, [
11532
+ return b(), S("div", Tc, [
11504
11533
  d(s, {
11505
11534
  text: "",
11506
11535
  height: "30",
@@ -11519,10 +11548,10 @@ function Mc(t, e, a, i, o, r) {
11519
11548
  default: u(() => [
11520
11549
  d(w, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
11521
11550
  default: u(() => [
11522
- l("div", Tc, [
11551
+ l("div", Sc, [
11523
11552
  d(c, {
11524
11553
  modelValue: o.currentDate,
11525
- "onUpdate:modelValue": e[0] || (e[0] = (k) => o.currentDate = k),
11554
+ "onUpdate:modelValue": e[0] || (e[0] = (C) => o.currentDate = C),
11526
11555
  min: o.dateRange[0],
11527
11556
  max: o.dateRange[1],
11528
11557
  "mode-icon": () => r.currentYear,
@@ -11538,15 +11567,15 @@ function Mc(t, e, a, i, o, r) {
11538
11567
  class: "h-100",
11539
11568
  vertical: ""
11540
11569
  }),
11541
- l("div", Sc, [
11542
- l("div", Ic, h(o.currentTime), 1),
11570
+ l("div", Ic, [
11571
+ l("div", Mc, h(o.currentTime), 1),
11543
11572
  d(f, { class: "pa-0 flex-1-1-0" }, {
11544
11573
  default: u(() => [
11545
- (b(!0), S(be, null, we(r.hourOptions, (k, T) => (b(), A(p, {
11574
+ (b(!0), S(be, null, we(r.hourOptions, (C, T) => (b(), A(p, {
11546
11575
  key: T,
11547
- value: k,
11576
+ value: C,
11548
11577
  color: "primary",
11549
- active: o.currentTime === k,
11578
+ active: o.currentTime === C,
11550
11579
  rounded: "",
11551
11580
  height: "26",
11552
11581
  "min-height": "26"
@@ -11554,10 +11583,10 @@ function Mc(t, e, a, i, o, r) {
11554
11583
  default: u(() => [
11555
11584
  d(g, {
11556
11585
  class: "text-body-2 text-center",
11557
- onClick: (R) => o.currentTime = k
11586
+ onClick: (B) => o.currentTime = C
11558
11587
  }, {
11559
11588
  default: u(() => [
11560
- j(h(k), 1)
11589
+ j(h(C), 1)
11561
11590
  ]),
11562
11591
  _: 2
11563
11592
  }, 1032, ["onClick"])
@@ -11610,8 +11639,8 @@ function Mc(t, e, a, i, o, r) {
11610
11639
  })) : D("", !0)
11611
11640
  ]);
11612
11641
  }
11613
- const na = /* @__PURE__ */ q(Pc, [["render", Mc]]);
11614
- const Ac = {
11642
+ const na = /* @__PURE__ */ q(Cc, [["render", Ac]]);
11643
+ const Dc = {
11615
11644
  name: "IdmPoint",
11616
11645
  components: {
11617
11646
  DateTimePicker: na
@@ -11745,7 +11774,7 @@ const Ac = {
11745
11774
  },
11746
11775
  toggle: {
11747
11776
  handler() {
11748
- this.toggle ? this.showForm = !0 : (this.handleCloseForm(), this.handleCloseMeteo()), this.map && this.handleBind();
11777
+ this.toggle ? this.showForm = !0 : (this.showForm = !1, this.showMeteo = !1), this.map && this.handleBind();
11749
11778
  },
11750
11779
  immediate: !0
11751
11780
  },
@@ -11783,13 +11812,12 @@ const Ac = {
11783
11812
  this.isLogin ? this.toggle = !this.toggle : this.$emit("login");
11784
11813
  },
11785
11814
  submitForm() {
11786
- var t;
11787
- this.showMeteo = !1, (t = this.positionMarker) == null || t.remove(), this.positionMarker = void 0, this.$refs.spotForm.validate().then(async (e) => {
11788
- var a;
11789
- if (e != null && e.valid) {
11815
+ this.handleCloseMeteo(), this.$refs.spotForm.validate().then(async (t) => {
11816
+ var e;
11817
+ if (t != null && t.valid) {
11790
11818
  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);
11791
- const i = M();
11792
- ((a = M(this.realTime)) == null ? void 0 : a.diff(i, "d", !0)) >= 0 ? await this.fetchMeteoData(this.form) : await this.fetchHistoryData(this.form);
11819
+ const a = M();
11820
+ ((e = M(this.realTime)) == null ? void 0 : e.diff(a, "d", !0)) >= 0 ? await this.fetchMeteoData(this.form) : await this.fetchHistoryData(this.form);
11793
11821
  }
11794
11822
  });
11795
11823
  },
@@ -11812,9 +11840,7 @@ const Ac = {
11812
11840
  this.showForm = !1, this.cancelForm(), this.toggle = !1;
11813
11841
  },
11814
11842
  async fetchMeteoData(t) {
11815
- this.loading = !0, this.showMeteo = !0, this.form.lng = t.lng, this.form.lat = t.lat;
11816
- debugger;
11817
- this.handleDrawInfoMarker([t.lng, t.lat]), this.meteoData = [];
11843
+ this.loading = !0, this.showMeteo = !0, this.form.lng = t.lng, this.form.lat = t.lat, this.handleDrawInfoMarker([t.lng, t.lat]), this.meteoData = [];
11818
11844
  const { weatherModels: e, marineModels: a } = oa.autoPickMeteoModel(t.forecastModel);
11819
11845
  let i = {
11820
11846
  lat: t.lat,
@@ -11828,7 +11854,7 @@ const Ac = {
11828
11854
  Authorization: this.token || this.defaultMeteoToken
11829
11855
  }
11830
11856
  });
11831
- (o == null ? void 0 : o.data.code) === 0 && (this.meteoData = o == null ? void 0 : o.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData), this.handleDrawInfoMarker([t.lng, t.lat])), this.loading = !1;
11857
+ (o == null ? void 0 : o.data.code) === 0 && (this.meteoData = o == null ? void 0 : o.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData)), this.loading = !1;
11832
11858
  },
11833
11859
  async fetchHistoryData(t) {
11834
11860
  this.loading = !0, this.showMeteo = !0, this.form.lng = t.lng, this.form.lat = t.lat, this.handleDrawInfoMarker([t.lng, t.lat]), this.meteoData = [];
@@ -11848,10 +11874,10 @@ const Ac = {
11848
11874
  (o == null ? void 0 : o.data.code) === 0 && (this.meteoData = o == null ? void 0 : o.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData), this.handleDrawInfoMarker([t.lng, t.lat])), this.loading = !1;
11849
11875
  },
11850
11876
  initTableData(t) {
11851
- var a, i, o, r, s, c, n, g, p, f, w, v, y, k, T, R, I, P, _, z, C, L, O, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe;
11877
+ var a, i, o, r, s, c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q, re, he, pe, ne, X, oe, ue, ce, F, me, xe;
11852
11878
  this.currentHourData = {}, this.positionGmt = (i = (a = t == null ? void 0 : t.weather) == null ? void 0 : a[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (o = t == null ? void 0 : t.weather) == null ? void 0 : o[0]) == null ? void 0 : r.offset;
11853
11879
  const e = ((s = oa.pickHourly(t, M(this.form.dateTime))) == null ? void 0 : s[0]) || {};
11854
- this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((f = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : f.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((y = (v = e == null ? void 0 : e.weather) == null ? void 0 : v.wind) == null ? void 0 : y.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (k = e == null ? void 0 : e.weather) == null ? void 0 : k.wind) == null ? void 0 : T.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((I = (R = e == null ? void 0 : e.weather) == null ? void 0 : R.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((_ = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : _.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((C = (z = e == null ? void 0 : e.wave) == null ? void 0 : z.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (O = (L = e == null ? void 0 : e.wave) == null ? void 0 : L.sig) == null ? void 0 : O.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((Y = (G = e == null ? void 0 : e.wave) == null ? void 0 : G.sig) == null ? void 0 : Y.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((V = (K = e == null ? void 0 : e.wave) == null ? void 0 : K.wd) == null ? void 0 : V.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((re = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : re.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((pe = (de = e == null ? void 0 : e.wave) == null ? void 0 : de.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = (X = (se = e == null ? void 0 : e.wave) == null ? void 0 : se.swell) == null ? void 0 : X.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((ue = (oe = e == null ? void 0 : e.wave) == null ? void 0 : oe.swell) == null ? void 0 : ue.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ne = e == null ? void 0 : e.current) == null ? void 0 : ne.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((ce = e == null ? void 0 : e.current) == null ? void 0 : ce.speed, 1) ?? "-", this.currentHourData.seaLevel = this.computeRoundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.computeRoundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (xe = e == null ? void 0 : e.weather) == null ? void 0 : xe.url;
11880
+ this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((f = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : f.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((y = (v = e == null ? void 0 : e.weather) == null ? void 0 : v.wind) == null ? void 0 : y.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (C = e == null ? void 0 : e.weather) == null ? void 0 : C.wind) == null ? void 0 : T.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((I = (B = e == null ? void 0 : e.weather) == null ? void 0 : B.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((_ = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : _.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((P = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : P.height, 1) ?? "-", this.currentHourData.sigwaveDir = (R = (z = e == null ? void 0 : e.wave) == null ? void 0 : z.sig) == null ? void 0 : R.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((Y = (G = e == null ? void 0 : e.wave) == null ? void 0 : G.sig) == null ? void 0 : Y.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((V = (K = e == null ? void 0 : e.wave) == null ? void 0 : K.wd) == null ? void 0 : V.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((re = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : re.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((pe = (he = e == null ? void 0 : e.wave) == null ? void 0 : he.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = (X = (ne = e == null ? void 0 : e.wave) == null ? void 0 : ne.swell) == null ? void 0 : X.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((ue = (oe = e == null ? void 0 : e.wave) == null ? void 0 : oe.swell) == null ? void 0 : ue.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ce = e == null ? void 0 : e.current) == null ? void 0 : ce.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;
11855
11881
  },
11856
11882
  handleBind() {
11857
11883
  var t, e;
@@ -11867,42 +11893,29 @@ const Ac = {
11867
11893
  return !1;
11868
11894
  },
11869
11895
  handleGetPosition(t) {
11870
- var e;
11871
- this.showMeteo = !1, (e = this.positionMarker) == null || e.remove(), this.positionMarker = void 0, this.form.latDegree = Number($.lat2pretty(t.lat).degree), this.form.latMinute = Number($.lat2pretty(t.lat).minute), this.form.latDirection = $.lat2pretty(t.lat).direction, this.form.lngDegree = Number($.lng2pretty(t.lng).degree), this.form.lngMinute = Number($.lng2pretty(t.lng).minute), this.form.lngDirection = $.lng2pretty(t.lng).direction;
11896
+ this.form.latDegree = Number($.lat2pretty(t.lat).degree), this.form.latMinute = Number($.lat2pretty(t.lat).minute), this.form.latDirection = $.lat2pretty(t.lat).direction, this.form.lngDegree = Number($.lng2pretty(t.lng).degree), this.form.lngMinute = Number($.lng2pretty(t.lng).minute), this.form.lngDirection = $.lng2pretty(t.lng).direction;
11872
11897
  },
11873
11898
  handleDrawInfoMarker(t) {
11874
11899
  t && (this.map.flyTo({
11875
11900
  center: t,
11876
11901
  duration: 300
11877
11902
  }), this.$nextTick(() => {
11878
- var c, n, g, p, f, w, v, y;
11879
- (c = this.positionMarker) == null || c.remove();
11880
- const e = (n = document.getElementById("idm-position-icon")) == null ? void 0 : n.cloneNode(!0);
11881
- this.positionMarker = new ve.Marker(e).setLngLat(t).setOffset([0, -13]).addTo(this.map), (g = this.meteoInfoMarker) == null || g.remove();
11882
- const a = (p = document.getElementById("idm-gl4-spot-meteo")) == null ? void 0 : p.cloneNode(!0), i = (f = a == null ? void 0 : a.children[1]) == null ? void 0 : f.children[1], o = (w = a == null ? void 0 : a.children[5]) == null ? void 0 : w.children[0], r = (v = a == null ? void 0 : a.children[5]) == null ? void 0 : v.children[0], s = (y = a == null ? void 0 : a.children[5]) == null ? void 0 : y.children[1];
11883
- i && (i.onclick = () => {
11884
- this.handleCloseMeteo();
11885
- }), o && !this.followList.some((k) => {
11886
- var T, R;
11887
- return ((T = k == null ? void 0 : k.coordinate) == null ? void 0 : T.lng) === this.form.lng && ((R = k == null ? void 0 : k.coordinate) == null ? void 0 : R.lat) === this.form.lat;
11888
- }) && (o.onclick = () => {
11889
- this.handleFollow();
11890
- }), r && this.followList.some((k) => {
11891
- var T, R;
11892
- return ((T = k == null ? void 0 : k.coordinate) == null ? void 0 : T.lng) === this.form.lng && ((R = k == null ? void 0 : k.coordinate) == null ? void 0 : R.lat) === this.form.lat;
11893
- }) && (r.onclick = () => {
11894
- this.handleCancelFollow();
11895
- }), s && (s.onclick = () => {
11896
- this.handleMeteoMore();
11897
- }), this.meteoInfoMarker = new ve.Marker(a).setLngLat(t).setOffset([0, -190]).addTo(this.map);
11903
+ var i, o, r;
11904
+ (i = this.positionMarker) == null || i.remove();
11905
+ const e = (o = document.getElementById("idm-position-icon")) == null ? void 0 : o.cloneNode(!0);
11906
+ this.positionMarker = new ve.Marker(e).setLngLat(t).setOffset([0, -13]).addTo(this.map);
11907
+ const a = document.getElementById("idm-gl4-spot-meteo");
11908
+ this.meteoInfoMarker ? (r = this.meteoInfoMarker) == null || r.setLngLat(t) : this.meteoInfoMarker = new ve.Marker(a).setLngLat(t).setOffset([0, -190]).addTo(this.map);
11898
11909
  }));
11899
11910
  },
11900
11911
  handleMeteoMore() {
11901
11912
  this.form.forecastModel = this.forecastModel, this.$emit("meteoMore", this.form);
11902
11913
  },
11903
11914
  handleCloseMeteo() {
11904
- var t, e;
11905
- this.showMeteo = !1, (t = this.positionMarker) == null || t.remove(), this.positionMarker = void 0, (e = this.meteoInfoMarker) == null || e.remove(), this.meteoInfoMarker = void 0, !this.showForm && !this.showMeteo && (this.toggle = !1);
11915
+ this.showMeteo = !1, this.$nextTick(() => {
11916
+ var t, e;
11917
+ (t = this.positionMarker) == null || t.remove(), this.positionMarker = void 0, (e = this.meteoInfoMarker) == null || e.remove(), this.meteoInfoMarker = void 0;
11918
+ });
11906
11919
  },
11907
11920
  handleFollow() {
11908
11921
  this.$emit("follow", this.form);
@@ -11916,26 +11929,26 @@ const Ac = {
11916
11929
  this.$emit("cancelFollow", t);
11917
11930
  }
11918
11931
  }
11919
- }, Dc = { class: "idm-gl4-spot" }, Rc = { class: "d-flex justify-start align-center" }, Oc = { class: "text-h6 font-weight-600 mx-2" }, Bc = { class: "d-flex justify-start align-center ga-1 mb-1" }, Ec = {
11932
+ }, Rc = { class: "idm-gl4-spot" }, Oc = { class: "d-flex justify-start align-center" }, Bc = { class: "text-h6 font-weight-600 mx-2" }, Ec = { class: "d-flex justify-start align-center ga-1 mb-1" }, Nc = {
11920
11933
  class: "multi-color-icon",
11921
11934
  "aria-hidden": "true"
11922
- }, Nc = ["xlink:href"], jc = { class: "d-flex justify-start align-center ga-1 mb-1" }, Fc = {
11935
+ }, jc = ["xlink:href"], Fc = { class: "d-flex justify-start align-center ga-1 mb-1" }, Hc = {
11923
11936
  class: "multi-color-icon",
11924
11937
  "aria-hidden": "true"
11925
- }, Hc = ["xlink:href"], Uc = { class: "d-flex justify-start align-center ga-1 mb-1" }, Wc = {
11938
+ }, Uc = ["xlink:href"], Wc = { class: "d-flex justify-start align-center ga-1 mb-1" }, Gc = {
11926
11939
  class: "multi-color-icon",
11927
11940
  "aria-hidden": "true"
11928
- }, Gc = ["xlink:href"], Vc = { class: "d-flex justify-start align-center ga-1 mb-1" }, Zc = {
11941
+ }, Vc = ["xlink:href"], Zc = { class: "d-flex justify-start align-center ga-1 mb-1" }, qc = {
11929
11942
  class: "multi-color-icon",
11930
11943
  "aria-hidden": "true"
11931
- }, qc = ["xlink:href"], Yc = { class: "d-flex justify-start align-center" }, Kc = { class: "mx-2" }, Xc = { id: "idm-position-icon" }, $c = {
11944
+ }, Yc = ["xlink:href"], Kc = { class: "d-flex justify-start align-center" }, Xc = { class: "mx-2" }, $c = { id: "idm-position-icon" }, Qc = {
11932
11945
  class: "multi-color-icon",
11933
11946
  style: { height: "26px", width: "26px" },
11934
11947
  "aria-hidden": "true"
11935
- }, Qc = ["xlink:href"];
11936
- function Jc(t, e, a, i, o, r) {
11937
- const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VDivider"), p = x("VTextField"), f = x("VCol"), w = x("VRow"), v = x("DateTimePicker"), y = x("VBtnToggle"), k = x("VCardActions"), T = x("VForm"), R = x("VCardText"), I = x("VCard"), P = x("VIcon");
11938
- return b(), S("div", Dc, [
11948
+ }, Jc = ["xlink:href"];
11949
+ function em(t, e, a, i, o, r) {
11950
+ const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VDivider"), p = x("VTextField"), f = x("VCol"), w = x("VRow"), v = x("DateTimePicker"), y = x("VBtnToggle"), C = x("VCardActions"), T = x("VForm"), B = x("VCardText"), I = x("VCard"), L = x("VIcon");
11951
+ return b(), S("div", Rc, [
11939
11952
  l("div", {
11940
11953
  class: "menu-bar-box transition pa-1",
11941
11954
  style: ie({ top: a.top + 174 + "px", right: o.right + "px" })
@@ -11945,7 +11958,7 @@ function Jc(t, e, a, i, o, r) {
11945
11958
  location: "left"
11946
11959
  }, {
11947
11960
  activator: u(({ props: _ }) => [
11948
- d(s, B(_, {
11961
+ d(s, O(_, {
11949
11962
  "min-width": "32",
11950
11963
  width: "32",
11951
11964
  height: "32",
@@ -11970,8 +11983,8 @@ function Jc(t, e, a, i, o, r) {
11970
11983
  default: u(() => [
11971
11984
  d(n, { class: "d-flex justify-space-between align-center" }, {
11972
11985
  default: u(() => [
11973
- l("div", Rc, [
11974
- l("div", Oc, h(t.$t("spot.spotWeather")), 1)
11986
+ l("div", Oc, [
11987
+ l("div", Bc, h(t.$t("spot.spotWeather")), 1)
11975
11988
  ]),
11976
11989
  d(s, {
11977
11990
  icon: "",
@@ -11990,7 +12003,7 @@ function Jc(t, e, a, i, o, r) {
11990
12003
  _: 1
11991
12004
  }),
11992
12005
  d(g),
11993
- d(R, { class: "text-body-1 py-1" }, {
12006
+ d(B, { class: "text-body-1 py-1" }, {
11994
12007
  default: u(() => [
11995
12008
  d(T, {
11996
12009
  ref: "spotForm",
@@ -11999,11 +12012,11 @@ function Jc(t, e, a, i, o, r) {
11999
12012
  onSubmit: qe(r.submitForm, ["prevent"])
12000
12013
  }, {
12001
12014
  default: u(() => [
12002
- l("div", Bc, [
12003
- (b(), S("svg", Ec, [
12015
+ l("div", Ec, [
12016
+ (b(), S("svg", Nc, [
12004
12017
  l("use", {
12005
12018
  "xlink:href": `#icon-lng-${a.theme}`
12006
- }, null, 8, Nc)
12019
+ }, null, 8, jc)
12007
12020
  ])),
12008
12021
  l("div", null, h(t.$t("spot.lng")), 1)
12009
12022
  ]),
@@ -12074,11 +12087,11 @@ function Jc(t, e, a, i, o, r) {
12074
12087
  ]),
12075
12088
  _: 1
12076
12089
  }),
12077
- l("div", jc, [
12078
- (b(), S("svg", Fc, [
12090
+ l("div", Fc, [
12091
+ (b(), S("svg", Hc, [
12079
12092
  l("use", {
12080
12093
  "xlink:href": `#icon-lng-${a.theme}`
12081
- }, null, 8, Hc)
12094
+ }, null, 8, Uc)
12082
12095
  ])),
12083
12096
  l("div", null, h(t.$t("spot.lat")), 1)
12084
12097
  ]),
@@ -12152,11 +12165,11 @@ function Jc(t, e, a, i, o, r) {
12152
12165
  ]),
12153
12166
  _: 1
12154
12167
  }),
12155
- l("div", Uc, [
12156
- (b(), S("svg", Wc, [
12168
+ l("div", Wc, [
12169
+ (b(), S("svg", Gc, [
12157
12170
  l("use", {
12158
12171
  "xlink:href": `#icon-date-time-${a.theme}`
12159
- }, null, 8, Gc)
12172
+ }, null, 8, Vc)
12160
12173
  ])),
12161
12174
  l("div", null, h(t.$t("spot.dateTime")), 1)
12162
12175
  ]),
@@ -12167,7 +12180,7 @@ function Jc(t, e, a, i, o, r) {
12167
12180
  class: "pa-0"
12168
12181
  }, {
12169
12182
  default: u(() => [
12170
- d(v, B({
12183
+ d(v, O({
12171
12184
  "date-time": o.form.dateTime,
12172
12185
  "time-zone": a.timeZone
12173
12186
  }, t.$attrs, {
@@ -12179,11 +12192,11 @@ function Jc(t, e, a, i, o, r) {
12179
12192
  ]),
12180
12193
  _: 1
12181
12194
  }),
12182
- l("div", Vc, [
12183
- (b(), S("svg", Zc, [
12195
+ l("div", Zc, [
12196
+ (b(), S("svg", qc, [
12184
12197
  l("use", {
12185
12198
  "xlink:href": `#icon-forecast-model-${a.theme}`
12186
- }, null, 8, qc)
12199
+ }, null, 8, Yc)
12187
12200
  ])),
12188
12201
  l("div", null, h(t.$t("weather.forecastModel")), 1)
12189
12202
  ]),
@@ -12242,7 +12255,7 @@ function Jc(t, e, a, i, o, r) {
12242
12255
  _: 1
12243
12256
  }),
12244
12257
  d(g),
12245
- d(k, { class: "d-flex justify-end align-center ga-4" }, {
12258
+ d(C, { class: "d-flex justify-end align-center ga-4" }, {
12246
12259
  default: u(() => [
12247
12260
  d(s, {
12248
12261
  size: "small",
@@ -12290,9 +12303,9 @@ function Jc(t, e, a, i, o, r) {
12290
12303
  default: u(() => [
12291
12304
  d(n, { class: "d-flex justify-space-between align-center" }, {
12292
12305
  default: u(() => [
12293
- l("div", Yc, [
12306
+ l("div", Kc, [
12294
12307
  e[16] || (e[16] = l("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
12295
- l("div", Kc, h(r.computePosition(o.form || o.currentHourData)), 1)
12308
+ l("div", Xc, h(r.computePosition(o.form || o.currentHourData)), 1)
12296
12309
  ]),
12297
12310
  d(s, {
12298
12311
  class: "mr-n2",
@@ -12314,7 +12327,7 @@ function Jc(t, e, a, i, o, r) {
12314
12327
  _: 1
12315
12328
  }),
12316
12329
  d(g),
12317
- d(R, { class: "text-body-1 ml-n8" }, {
12330
+ d(B, { class: "text-body-1 ml-n8" }, {
12318
12331
  default: u(() => [
12319
12332
  d(w, null, {
12320
12333
  default: u(() => [
@@ -12496,11 +12509,11 @@ function Jc(t, e, a, i, o, r) {
12496
12509
  _: 1
12497
12510
  }),
12498
12511
  d(g),
12499
- d(k, { class: "d-flex justify-space-between align-center" }, {
12512
+ d(C, { class: "d-flex justify-space-between align-center" }, {
12500
12513
  default: u(() => [
12501
12514
  a.followList.some((_) => {
12502
- var z, C;
12503
- return ((z = _ == null ? void 0 : _.coordinate) == null ? void 0 : z.lng) === o.form.lng && ((C = _ == null ? void 0 : _.coordinate) == null ? void 0 : C.lat) === o.form.lat;
12515
+ var k, P;
12516
+ return ((k = _ == null ? void 0 : _.coordinate) == null ? void 0 : k.lng) === o.form.lng && ((P = _ == null ? void 0 : _.coordinate) == null ? void 0 : P.lat) === o.form.lat;
12504
12517
  }) ? (b(), A(s, {
12505
12518
  key: 0,
12506
12519
  class: "text-none text-body-1",
@@ -12512,7 +12525,7 @@ function Jc(t, e, a, i, o, r) {
12512
12525
  onClick: qe(r.handleCancelFollow, ["stop"])
12513
12526
  }, {
12514
12527
  prepend: u(() => [
12515
- d(P, { color: "warning" })
12528
+ d(L, { color: "warning" })
12516
12529
  ]),
12517
12530
  default: u(() => [
12518
12531
  j(" " + h(t.$t("actions.unfollow")), 1)
@@ -12552,19 +12565,19 @@ function Jc(t, e, a, i, o, r) {
12552
12565
  ]),
12553
12566
  _: 1
12554
12567
  })) : D("", !0),
12555
- Ue(l("div", Xc, [
12556
- (b(), S("svg", $c, [
12568
+ Ue(l("div", $c, [
12569
+ (b(), S("svg", Qc, [
12557
12570
  l("use", {
12558
12571
  "xlink:href": `#icon-spot-${a.theme}`
12559
- }, null, 8, Qc)
12572
+ }, null, 8, Jc)
12560
12573
  ]))
12561
12574
  ], 512), [
12562
12575
  [We, o.showMeteo]
12563
12576
  ])
12564
12577
  ]);
12565
12578
  }
12566
- const em = /* @__PURE__ */ q(Ac, [["render", Jc]]);
12567
- const tm = {
12579
+ const tm = /* @__PURE__ */ q(Dc, [["render", em]]);
12580
+ const am = {
12568
12581
  name: "IdmMeasure",
12569
12582
  props: {
12570
12583
  map: {
@@ -12620,7 +12633,7 @@ const tm = {
12620
12633
  else {
12621
12634
  (t = this.map) == null || t.getCanvas().removeEventListener("keydown", this.handleKeydown), (e = this.map) == null || e.off("mousemove", this.handleMove), (a = this.map) == null || a.off("dblclick", this.handleDblClick), this.map;
12622
12635
  let i = this.geojson.find((o) => !o.closed);
12623
- i && this.handleClear(i, !0), this.geojson = this.geojson.filter((o) => !!o.closed), i = H.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(i);
12636
+ i && this.handleClear(i, !0), this.geojson = this.geojson.filter((o) => !!o.closed), i = U.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(i);
12624
12637
  }
12625
12638
  },
12626
12639
  immediate: !0
@@ -12659,22 +12672,22 @@ const tm = {
12659
12672
  if ((e == null ? void 0 : e.split("-").length) === 2) {
12660
12673
  const w = this.geojson.filter((T) => T.id === e.split("-")[0])[0];
12661
12674
  this.pointMarkers[w.id].filter((T) => {
12662
- var R;
12663
- return ((R = T._element) == null ? void 0 : R.id) === e;
12675
+ var B;
12676
+ return ((B = T._element) == null ? void 0 : B.id) === e;
12664
12677
  })[0].setLngLat([(r = (o = t.target) == null ? void 0 : o._lngLat) == null ? void 0 : r.lng, (c = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
12665
12678
  let y;
12666
- w.features.forEach((T, R) => {
12679
+ w.features.forEach((T, B) => {
12667
12680
  if (T.geometry.type === "Point" && T.properties.id === e.split("-")[1]) {
12668
- y = R;
12681
+ y = B;
12669
12682
  return;
12670
12683
  }
12671
12684
  });
12672
- const k = w.features.filter((T) => T.geometry.type === "Point");
12685
+ const C = w.features.filter((T) => T.geometry.type === "Point");
12673
12686
  this.handleTmpPointUpdate(
12674
12687
  w,
12675
- k[y - 1],
12676
- { lng: (g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, lat: (f = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : f.lat, properties: k[y].properties },
12677
- y === k.length - 1 ? void 0 : k[y + 1]
12688
+ C[y - 1],
12689
+ { lng: (g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, lat: (f = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : f.lat, properties: C[y].properties },
12690
+ y === C.length - 1 ? void 0 : C[y + 1]
12678
12691
  );
12679
12692
  }
12680
12693
  },
@@ -12682,13 +12695,13 @@ const tm = {
12682
12695
  var a, i, o, r, s, c, n, g, p, f;
12683
12696
  const e = (i = (a = t.target) == null ? void 0 : a._element) == null ? void 0 : i.id;
12684
12697
  if ((e == null ? void 0 : e.split("-").length) === 2) {
12685
- const w = this.geojson.filter((k) => k.id === e.split("-")[0])[0];
12686
- this.pointMarkers[w.id].filter((k) => {
12698
+ const w = this.geojson.filter((C) => C.id === e.split("-")[0])[0];
12699
+ this.pointMarkers[w.id].filter((C) => {
12687
12700
  var T;
12688
- return ((T = k._element) == null ? void 0 : T.id) === e;
12701
+ return ((T = C._element) == null ? void 0 : T.id) === e;
12689
12702
  })[0].setLngLat([(r = (o = t.target) == null ? void 0 : o._lngLat) == null ? void 0 : r.lng, (c = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
12690
- const y = w.features.filter((k) => k.geometry.type === "Point" && k.properties.id === e.split("-")[1])[0];
12691
- y.geometry.coordinates = [(g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, (f = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : f.lat], w.features = w.features.filter((k) => k.geometry.type === "Point"), this.handlePointUpdate(w);
12703
+ const y = w.features.filter((C) => C.geometry.type === "Point" && C.properties.id === e.split("-")[1])[0];
12704
+ y.geometry.coordinates = [(g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, (f = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : f.lat], w.features = w.features.filter((C) => C.geometry.type === "Point"), this.handlePointUpdate(w);
12692
12705
  }
12693
12706
  },
12694
12707
  handleContextmenu(t) {
@@ -12715,8 +12728,8 @@ const tm = {
12715
12728
  g.features = g.features.filter((p) => p.geometry.type === "Point" && p.properties.id !== n[1]), this.handlePointUpdate(g);
12716
12729
  } else if (e !== "marker-label" && this.toggle) {
12717
12730
  let n = this.geojson.at(-1);
12718
- n || (n = H.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(n)), n.features = n.features.filter((p) => p.geometry.type === "Point");
12719
- const g = H.feature(
12731
+ n || (n = U.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(n)), n.features = n.features.filter((p) => p.geometry.type === "Point");
12732
+ const g = U.feature(
12720
12733
  {
12721
12734
  type: "Point",
12722
12735
  coordinates: [t.lngLat.lng, t.lngLat.lat]
@@ -12740,7 +12753,7 @@ const tm = {
12740
12753
  a = $.roundPrecision(a + p, 4);
12741
12754
  let w;
12742
12755
  c.mode === "RL" ? w = $.convertToMonotonicLng([n, g]) : w = $.convertToMonotonicLng(Fe.interpolateCoordinates(n, g, 200));
12743
- const v = H.lineString(w.map((k) => [k.lng, k.lat]));
12756
+ const v = U.lineString(w.map((C) => [C.lng, C.lat]));
12744
12757
  v.properties.dist = p, v.properties.bearing = f, v.properties.total = a, v.properties.name = "Line " + this.currentLineIndex, i.push(v);
12745
12758
  const y = e[o];
12746
12759
  y.properties.totalDist = $.roundPrecision((c.totalDist ? c.totalDist : 0) + p, 4), y.properties.sumLabel = y.properties.totalDist + " nm";
@@ -12750,14 +12763,14 @@ const tm = {
12750
12763
  return this.handleRender(t), t;
12751
12764
  },
12752
12765
  handleTmpPointUpdate(t, e, a, i) {
12753
- const o = H.featureCollection([]);
12766
+ const o = U.featureCollection([]);
12754
12767
  let r, s;
12755
12768
  if (e) {
12756
12769
  const n = e.properties, g = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, p = { lng: a.lng, lat: a.lat };
12757
12770
  r = Fe.calculateDistance(g, p, n.mode === "RL", 4), s = Fe.calculateBearing(g, p, n.mode === "RL", 2);
12758
12771
  let f;
12759
12772
  n.mode === "RL" ? f = $.convertToMonotonicLng([g, p]) : f = $.convertToMonotonicLng(Fe.interpolateCoordinates(g, p, 200));
12760
- const w = H.lineString(f.map((v) => [v.lng, v.lat]));
12773
+ const w = U.lineString(f.map((v) => [v.lng, v.lat]));
12761
12774
  w.properties.dist = r, w.properties.bearing = s, o.features.push(w);
12762
12775
  }
12763
12776
  if (i) {
@@ -12765,7 +12778,7 @@ const tm = {
12765
12778
  r = Fe.calculateDistance(g, p, n.mode === "RL", 4), s = Fe.calculateBearing(g, p, n.mode === "RL", 2);
12766
12779
  let f;
12767
12780
  n.mode === "RL" ? f = $.convertToMonotonicLng([g, p]) : f = $.convertToMonotonicLng(Fe.interpolateCoordinates(g, p, 200));
12768
- const w = H.lineString(f.map((v) => [v.lng, v.lat]));
12781
+ const w = U.lineString(f.map((v) => [v.lng, v.lat]));
12769
12782
  w.properties.dist = r, w.properties.bearing = s, o.features.push(w);
12770
12783
  }
12771
12784
  this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(o) : this.map.addSource(this.tmpSource, {
@@ -12827,14 +12840,14 @@ const tm = {
12827
12840
  handleMove(t) {
12828
12841
  this.map.getCanvas().style.cursor = "crosshair";
12829
12842
  let e = this.geojson.at(-1);
12830
- e || (e = H.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
12843
+ e || (e = U.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
12831
12844
  const a = e.features.filter((i) => i.geometry.type === "Point");
12832
12845
  a != null && a.length && this.handleTmpPointUpdate(e, a.at(-1), { lng: t.lngLat.lng, lat: t.lngLat.lat });
12833
12846
  },
12834
12847
  handleDblClick(t) {
12835
12848
  t.preventDefault();
12836
12849
  let e = this.geojson.at(-1);
12837
- e.closed = !0, this.handleRender(e), e = H.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e), this.currentLineIndex++;
12850
+ e.closed = !0, this.handleRender(e), e = U.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e), this.currentLineIndex++;
12838
12851
  },
12839
12852
  handleRender(t) {
12840
12853
  var e;
@@ -12907,17 +12920,17 @@ const tm = {
12907
12920
  }
12908
12921
  },
12909
12922
  handleClear(t, e = !0) {
12910
- var s, c, n, g, p, f, w, v, y, k;
12923
+ var s, c, n, g, p, f, w, v, y, C;
12911
12924
  const a = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, o = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
12912
12925
  (s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(o) && this.map.removeLayer(o), (n = this.map) != null && n.getLayer(r) && this.map.removeLayer(r), (g = this.map) != null && g.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (p = this.map) != null && p.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (f = this.closeMarkers[t.id]) == null || f.remove(), this.closeMarkers[t.id] = void 0, (w = this.pointMarkers[t.id]) == null || w.forEach((T) => {
12913
12926
  T == null || T.remove();
12914
- }), this.pointMarkers[t.id] = [], (v = this.tipMarker) == null || v.remove(), this.tipMarker = void 0, e && ((y = this.map) != null && y.getSource(a)) && this.map.removeSource(a), e && ((k = this.map) != null && k.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
12927
+ }), this.pointMarkers[t.id] = [], (v = this.tipMarker) == null || v.remove(), this.tipMarker = void 0, e && ((y = this.map) != null && y.getSource(a)) && this.map.removeSource(a), e && ((C = this.map) != null && C.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
12915
12928
  }
12916
12929
  }
12917
- }, am = { class: "idm-gl4-measure" };
12918
- function om(t, e, a, i, o, r) {
12930
+ }, om = { class: "idm-gl4-measure" };
12931
+ function im(t, e, a, i, o, r) {
12919
12932
  const s = x("VBtn"), c = x("VTooltip");
12920
- return b(), S("div", am, [
12933
+ return b(), S("div", om, [
12921
12934
  l("div", {
12922
12935
  class: "menu-bar-box transition pa-1",
12923
12936
  style: ie({ top: a.top + 214 + "px", right: o.right + "px" })
@@ -12927,7 +12940,7 @@ function om(t, e, a, i, o, r) {
12927
12940
  location: "left"
12928
12941
  }, {
12929
12942
  activator: u(({ props: n }) => [
12930
- d(s, B(n, {
12943
+ d(s, O(n, {
12931
12944
  "min-width": "32",
12932
12945
  width: "32",
12933
12946
  height: "32",
@@ -12946,8 +12959,8 @@ function om(t, e, a, i, o, r) {
12946
12959
  ], 4)
12947
12960
  ]);
12948
12961
  }
12949
- const im = /* @__PURE__ */ q(tm, [["render", om]]);
12950
- const rm = {
12962
+ const rm = /* @__PURE__ */ q(am, [["render", im]]);
12963
+ const lm = {
12951
12964
  name: "IdmBottomBar",
12952
12965
  components: { DateTimePicker: na },
12953
12966
  props: {
@@ -13065,19 +13078,19 @@ const rm = {
13065
13078
  this.$parent.$refs.idmWeatherLayers.handleMenuToggle();
13066
13079
  }
13067
13080
  }
13068
- }, lm = { class: "idm-bottom-bar-gl4" }, sm = { class: "date-box d-flex ga-2 mr-2" }, nm = { class: "play-btns-box d-flex justify-center align-center cursor-pointer" }, cm = { class: "fast-weathers-box d-flex justify-center align-center ga-2 cursor-pointer" }, mm = { class: "model-box d-flex justify-center align-center ga-2 my-2" }, dm = {
13081
+ }, sm = { class: "idm-bottom-bar-gl4" }, nm = { class: "date-box d-flex ga-2 mr-2" }, cm = { class: "play-btns-box d-flex justify-center align-center cursor-pointer" }, mm = { class: "fast-weathers-box d-flex justify-center align-center ga-2 cursor-pointer" }, dm = { class: "model-box d-flex justify-center align-center ga-2 my-2" }, hm = {
13069
13082
  key: 0,
13070
13083
  class: "list d-flex flex-wrap pa-2 rounded ga-2"
13071
- }, hm = ["onClick"], pm = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, um = { class: "text-body-1" };
13072
- function gm(t, e, a, i, o, r) {
13084
+ }, pm = ["onClick"], um = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, gm = { class: "text-body-1" };
13085
+ function fm(t, e, a, i, o, r) {
13073
13086
  const s = x("DateTimePicker"), c = x("VListItemTitle"), n = x("VListItem"), g = x("VList"), p = x("VMenu"), f = x("VBtn"), w = x("VDivider"), v = x("VTooltip");
13074
- return b(), S("div", lm, [
13087
+ return b(), S("div", sm, [
13075
13088
  l("div", {
13076
13089
  class: "timeline-box px-2 d-flex justify-start align-center rounded",
13077
13090
  style: ie({ right: o.right + 146 + "px", bottom: Object.values(o.show).includes(!0) ? "10px" : "-100px" })
13078
13091
  }, [
13079
- l("div", sm, [
13080
- d(s, B({
13092
+ l("div", nm, [
13093
+ d(s, O({
13081
13094
  ref: "dateTimePicker",
13082
13095
  "date-time": o.currentDateTimeZ,
13083
13096
  "time-zone": o.timeZone,
@@ -13100,8 +13113,8 @@ function gm(t, e, a, i, o, r) {
13100
13113
  default: u(() => [
13101
13114
  d(g, { class: "pa-1" }, {
13102
13115
  default: u(() => [
13103
- (b(!0), S(be, null, we(o.intervalOptions, (y, k) => (b(), A(n, {
13104
- key: k,
13116
+ (b(!0), S(be, null, we(o.intervalOptions, (y, C) => (b(), A(n, {
13117
+ key: C,
13105
13118
  value: y,
13106
13119
  variant: o.intervalHour === y ? "tonal" : "text",
13107
13120
  color: "primary",
@@ -13139,7 +13152,7 @@ function gm(t, e, a, i, o, r) {
13139
13152
  class: "mx-2 my-3",
13140
13153
  style: { height: "16px" }
13141
13154
  }),
13142
- l("div", nm, [
13155
+ l("div", cm, [
13143
13156
  d(f, {
13144
13157
  icon: "",
13145
13158
  size: "small",
@@ -13212,22 +13225,22 @@ function gm(t, e, a, i, o, r) {
13212
13225
  class: "mx-2 my-3",
13213
13226
  style: { height: "16px" }
13214
13227
  }),
13215
- l("div", cm, [
13228
+ l("div", mm, [
13216
13229
  d(v, {
13217
13230
  text: t.$t("weather.windBarbs"),
13218
13231
  location: "top"
13219
13232
  }, {
13220
13233
  activator: u(({ props: y }) => {
13221
- var k, T;
13234
+ var C, T;
13222
13235
  return [
13223
- d(f, B(y, {
13236
+ d(f, O(y, {
13224
13237
  class: "pa-1 d-flex",
13225
- color: (k = a.weatherCheckList) != null && k.includes("wind") ? "primary" : "",
13238
+ color: (C = a.weatherCheckList) != null && C.includes("wind") ? "primary" : "",
13226
13239
  variant: (T = a.weatherCheckList) != null && T.includes("wind") ? "elevated" : "text",
13227
13240
  height: "24",
13228
13241
  width: "24",
13229
13242
  "min-width": "24",
13230
- onClick: e[3] || (e[3] = (R) => r.handleClickFastWeather("wind"))
13243
+ onClick: e[3] || (e[3] = (B) => r.handleClickFastWeather("wind"))
13231
13244
  }), {
13232
13245
  default: u(() => e[14] || (e[14] = [
13233
13246
  l("i", { class: "iconfont icon-a-WindLevel" }, null, -1)
@@ -13244,19 +13257,19 @@ function gm(t, e, a, i, o, r) {
13244
13257
  location: "top"
13245
13258
  }, {
13246
13259
  activator: u(({ props: y }) => {
13247
- var k, T;
13260
+ var C, T;
13248
13261
  return [
13249
- d(f, B(y, {
13262
+ d(f, O(y, {
13250
13263
  class: "pa-1 d-flex",
13251
- color: (k = a.weatherCheckList) != null && k.includes("sig-wave-height") ? "primary" : "",
13264
+ color: (C = a.weatherCheckList) != null && C.includes("sig-wave-height") ? "primary" : "",
13252
13265
  variant: (T = a.weatherCheckList) != null && T.includes("sig-wave-height") ? "elevated" : "text",
13253
13266
  height: "24",
13254
13267
  width: "24",
13255
13268
  "min-width": "24",
13256
- onClick: e[4] || (e[4] = (R) => r.handleClickFastWeather("sig-wave-height"))
13269
+ onClick: e[4] || (e[4] = (B) => r.handleClickFastWeather("sig-wave-height"))
13257
13270
  }), {
13258
13271
  default: u(() => [
13259
- l("i", B(y, { class: "iconfont icon-a-WaveHeight" }), null, 16)
13272
+ l("i", O(y, { class: "iconfont icon-a-WaveHeight" }), null, 16)
13260
13273
  ]),
13261
13274
  _: 2
13262
13275
  }, 1040, ["color", "variant"])
@@ -13269,19 +13282,19 @@ function gm(t, e, a, i, o, r) {
13269
13282
  location: "top"
13270
13283
  }, {
13271
13284
  activator: u(({ props: y }) => {
13272
- var k, T;
13285
+ var C, T;
13273
13286
  return [
13274
- d(f, B(y, {
13287
+ d(f, O(y, {
13275
13288
  class: "pa-1 d-flex",
13276
- color: (k = a.weatherCheckList) != null && k.includes("current-direction") ? "primary" : "",
13289
+ color: (C = a.weatherCheckList) != null && C.includes("current-direction") ? "primary" : "",
13277
13290
  variant: (T = a.weatherCheckList) != null && T.includes("current-direction") ? "elevated" : "text",
13278
13291
  height: "24",
13279
13292
  width: "24",
13280
13293
  "min-width": "24",
13281
- onClick: e[5] || (e[5] = (R) => r.handleClickFastWeather("current-direction"))
13294
+ onClick: e[5] || (e[5] = (B) => r.handleClickFastWeather("current-direction"))
13282
13295
  }), {
13283
13296
  default: u(() => [
13284
- l("i", B(y, { class: "iconfont icon-Current" }), null, 16)
13297
+ l("i", O(y, { class: "iconfont icon-Current" }), null, 16)
13285
13298
  ]),
13286
13299
  _: 2
13287
13300
  }, 1040, ["color", "variant"])
@@ -13294,7 +13307,7 @@ function gm(t, e, a, i, o, r) {
13294
13307
  location: "top"
13295
13308
  }, {
13296
13309
  activator: u(({ props: y }) => [
13297
- d(f, B(y, {
13310
+ d(f, O(y, {
13298
13311
  class: "pa-1 d-flex",
13299
13312
  variant: "text",
13300
13313
  height: "24",
@@ -13303,7 +13316,7 @@ function gm(t, e, a, i, o, r) {
13303
13316
  onClick: r.handleClickFastMore
13304
13317
  }), {
13305
13318
  default: u(() => [
13306
- l("i", B(y, { class: "iconfont icon-dots-align" }), null, 16)
13319
+ l("i", O(y, { class: "iconfont icon-dots-align" }), null, 16)
13307
13320
  ]),
13308
13321
  _: 2
13309
13322
  }, 1040, ["onClick"])
@@ -13316,7 +13329,7 @@ function gm(t, e, a, i, o, r) {
13316
13329
  class: "mx-2 mr-3 my-3",
13317
13330
  style: { height: "16px" }
13318
13331
  }),
13319
- l("div", mm, [
13332
+ l("div", dm, [
13320
13333
  d(f, {
13321
13334
  text: "",
13322
13335
  height: "30",
@@ -13349,14 +13362,14 @@ function gm(t, e, a, i, o, r) {
13349
13362
  class: "timezone-box d-flex flex-column justify-space-between align-end",
13350
13363
  style: ie({ right: o.right + "px" })
13351
13364
  }, [
13352
- o.showTimezone ? (b(), S("div", dm, [
13365
+ o.showTimezone ? (b(), S("div", hm, [
13353
13366
  (b(!0), S(be, null, we(o.offsets, (y) => (b(), S("div", {
13354
13367
  key: y,
13355
13368
  class: "item rounded text-body-2 hover-active",
13356
- onClick: (k) => o.timeZone = y
13357
- }, h(y < 0 ? y : "+" + y), 9, hm))), 128))
13369
+ onClick: (C) => o.timeZone = y
13370
+ }, h(y < 0 ? y : "+" + y), 9, pm))), 128))
13358
13371
  ])) : D("", !0),
13359
- l("div", pm, [
13372
+ l("div", um, [
13360
13373
  d(f, {
13361
13374
  text: "",
13362
13375
  variant: "flat",
@@ -13370,20 +13383,20 @@ function gm(t, e, a, i, o, r) {
13370
13383
  ]),
13371
13384
  _: 1
13372
13385
  }),
13373
- l("span", um, h(o.currentRealTime), 1)
13386
+ l("span", gm, h(o.currentRealTime), 1)
13374
13387
  ])
13375
13388
  ], 4)
13376
13389
  ]);
13377
13390
  }
13378
- const fm = /* @__PURE__ */ q(rm, [["render", gm]]), ym = {
13391
+ const ym = /* @__PURE__ */ q(lm, [["render", fm]]), bm = {
13379
13392
  name: "IdmGL4",
13380
13393
  components: {
13381
13394
  IdmOtherLayer: ps,
13382
- IdmWeatherLayer: Jn,
13395
+ IdmWeatherLayer: ec,
13383
13396
  IdmTropicals: Ko,
13384
- IdmMeasure: im,
13385
- IdmSpot: em,
13386
- IdmBottomBar: fm
13397
+ IdmMeasure: rm,
13398
+ IdmSpot: tm,
13399
+ IdmBottomBar: ym
13387
13400
  },
13388
13401
  props: {
13389
13402
  map: {
@@ -13434,14 +13447,14 @@ const fm = /* @__PURE__ */ q(rm, [["render", gm]]), ym = {
13434
13447
  }
13435
13448
  },
13436
13449
  methods: {}
13437
- }, bm = {
13450
+ }, wm = {
13438
13451
  ref: "mapHomeGl4",
13439
13452
  class: "map-gl4-home"
13440
13453
  };
13441
- function wm(t, e, a, i, o, r) {
13454
+ function xm(t, e, a, i, o, r) {
13442
13455
  const s = x("IdmOtherLayer"), c = x("IdmWeatherLayer"), n = x("IdmTropicals"), g = x("IdmMeasure"), p = x("IdmSpot"), f = x("IdmBottomBar");
13443
- return b(), S("div", bm, [
13444
- d(s, B({
13456
+ return b(), S("div", wm, [
13457
+ d(s, O({
13445
13458
  ref: "idmOtherLayers",
13446
13459
  token: a.token,
13447
13460
  "default-meteo-token": o.defaultMeteoToken,
@@ -13456,7 +13469,7 @@ function wm(t, e, a, i, o, r) {
13456
13469
  o.otherCheckList = w, o.layerVersion = o.layerVersion + 1;
13457
13470
  })
13458
13471
  }), null, 16, ["token", "default-meteo-token", "map", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
13459
- d(c, B({
13472
+ d(c, O({
13460
13473
  ref: "idmWeatherLayers",
13461
13474
  map: a.map,
13462
13475
  "before-layer": "empty-layer-2",
@@ -13474,7 +13487,7 @@ function wm(t, e, a, i, o, r) {
13474
13487
  o.weatherCheckList = w, o.layerVersion = o.layerVersion + 1;
13475
13488
  })
13476
13489
  }), null, 16, ["map", "token", "default-meteo-token", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
13477
- d(n, B({
13490
+ d(n, O({
13478
13491
  map: a.map,
13479
13492
  token: a.token,
13480
13493
  "default-meteo-token": o.defaultMeteoToken,
@@ -13485,11 +13498,11 @@ function wm(t, e, a, i, o, r) {
13485
13498
  "forecast-model": a.forecastModel,
13486
13499
  "map-feather": a.mapFeather
13487
13500
  }, t.$attrs), null, 16, ["map", "token", "default-meteo-token", "tropicals", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
13488
- d(g, B({
13501
+ d(g, O({
13489
13502
  map: a.map,
13490
13503
  "map-feather": a.mapFeather
13491
13504
  }, t.$attrs), null, 16, ["map", "map-feather"]),
13492
- d(p, B({
13505
+ d(p, O({
13493
13506
  ref: "idmSpot",
13494
13507
  map: a.map,
13495
13508
  token: a.token,
@@ -13497,7 +13510,7 @@ function wm(t, e, a, i, o, r) {
13497
13510
  "forecast-model": a.forecastModel,
13498
13511
  "map-feather": a.mapFeather
13499
13512
  }, t.$attrs), null, 16, ["map", "token", "gateway", "forecast-model", "map-feather"]),
13500
- d(f, B({
13513
+ d(f, O({
13501
13514
  ref: "idmBottomBar",
13502
13515
  "forecast-model": a.forecastModel,
13503
13516
  "weather-check-list": o.weatherCheckList,
@@ -13505,16 +13518,16 @@ function wm(t, e, a, i, o, r) {
13505
13518
  }, t.$attrs), null, 16, ["forecast-model", "weather-check-list", "map-feather"])
13506
13519
  ], 512);
13507
13520
  }
13508
- const xm = /* @__PURE__ */ q(ym, [["render", wm]]);
13509
- class vm {
13521
+ const vm = /* @__PURE__ */ q(bm, [["render", xm]]);
13522
+ class _m {
13510
13523
  constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
13511
- me(this, "originStyle");
13512
- me(this, "mapboxStyle");
13513
- me(this, "i4");
13514
- me(this, "hi");
13515
- me(this, "td");
13516
- me(this, "windy");
13517
- var a, i, o, r, s, c, n, g, p, f, w, v, y, k, T, R, I, P, _, z, C, L, O, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e, U, ae, Ne, Ie, ge, fe, W, Ce, te, le, Oe, N, ye, Me, Be, Ee, E, Z, Ge, Ve, Ze, Te, Ye, Ke, Xe, $e, Qe, Je, et, tt, at, ot, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, It, Mt, At, Dt, Rt, Ot, Bt, Et, Nt, jt, Ft, Ht, Ut, Wt, Gt, Vt, Zt, qt, Yt, Kt, Xt, Qt, Jt, ea, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ia, Ma, Aa, Da, Ra, Oa, Ba, Ea, Na, ja, Fa, Ha, Ua, Wa, Ga, Va, Za, qa, Ya, Ka, Xa, $a, Qa, Ja, eo, to, ao, oo, io, ro, lo, so, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, To, So, Io, Mo, Ao, Do, Ro, Oo, Bo, Eo, No, jo, Fo, Ho, Uo, Wo, Go;
13524
+ de(this, "originStyle");
13525
+ de(this, "mapboxStyle");
13526
+ de(this, "i4");
13527
+ de(this, "hi");
13528
+ de(this, "td");
13529
+ de(this, "windy");
13530
+ var a, i, o, r, s, c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q, re, he, pe, ne, X, oe, ue, ce, F, me, xe, Le, Pe, Ae, De, Re, _e, H, te, je, Ie, ge, fe, W, Ce, ae, le, Oe, N, ye, Me, Be, Ee, E, Z, Ge, Ve, Ze, Te, Ye, Ke, Xe, $e, Qe, Je, et, tt, at, ot, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, It, Mt, At, Dt, Rt, Ot, Bt, Et, Nt, jt, Ft, Ht, Ut, Wt, Gt, Vt, Zt, qt, Yt, Kt, Xt, Qt, Jt, ea, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ia, Ma, Aa, Da, Ra, Oa, Ba, Ea, Na, ja, Fa, Ha, Ua, Wa, Ga, Va, Za, qa, Ya, Ka, Xa, $a, Qa, Ja, eo, to, ao, oo, io, ro, lo, so, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, To, So, Io, Mo, Ao, Do, Ro, Oo, Bo, Eo, No, jo, Fo, Ho, Uo, Wo, Go;
13518
13531
  this.i4 = {
13519
13532
  source: {
13520
13533
  type: "raster",
@@ -32112,28 +32125,28 @@ class vm {
32112
32125
  (g = (n = this.originStyle) == null ? void 0 : n.light.layers) == null ? void 0 : g.find((m) => m.id === "ice-area-line"),
32113
32126
  (f = (p = this.originStyle) == null ? void 0 : p.light.layers) == null ? void 0 : f.find((m) => m.id === "loadlines-label"),
32114
32127
  (v = (w = this.originStyle) == null ? void 0 : w.light.layers) == null ? void 0 : v.find((m) => m.id === "loadlines-fill"),
32115
- (k = (y = this.originStyle) == null ? void 0 : y.light.layers) == null ? void 0 : k.find((m) => m.id === "empty-layer-0"),
32116
- (R = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : R.find((m) => m.id === "empty-layer-1"),
32117
- (P = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : P.find((m) => m.id === "country-boundaries"),
32118
- (z = (_ = this.originStyle) == null ? void 0 : _.light.layers) == null ? void 0 : z.find((m) => m.id === "water-outline"),
32119
- (L = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : L.find((m) => m.id === "water-outline2"),
32120
- (G = (O = this.originStyle) == null ? void 0 : O.light.layers) == null ? void 0 : G.find((m) => m.id === "empty-layer-2"),
32128
+ (C = (y = this.originStyle) == null ? void 0 : y.light.layers) == null ? void 0 : C.find((m) => m.id === "empty-layer-0"),
32129
+ (B = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : B.find((m) => m.id === "empty-layer-1"),
32130
+ (L = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : L.find((m) => m.id === "country-boundaries"),
32131
+ (k = (_ = this.originStyle) == null ? void 0 : _.light.layers) == null ? void 0 : k.find((m) => m.id === "water-outline"),
32132
+ (z = (P = this.originStyle) == null ? void 0 : P.light.layers) == null ? void 0 : z.find((m) => m.id === "water-outline2"),
32133
+ (G = (R = this.originStyle) == null ? void 0 : R.light.layers) == null ? void 0 : G.find((m) => m.id === "empty-layer-2"),
32121
32134
  (K = (Y = this.originStyle) == null ? void 0 : Y.light.layers) == null ? void 0 : K.find((m) => m.id === "water-line-label"),
32122
32135
  (J = (V = this.originStyle) == null ? void 0 : V.light.layers) == null ? void 0 : J.find((m) => m.id === "water-point-label"),
32123
32136
  (Q = (ee = this.originStyle) == null ? void 0 : ee.light.layers) == null ? void 0 : Q.find((m) => m.id === "world-12nm-v4-20231025"),
32124
- (de = (re = this.originStyle) == null ? void 0 : re.light.layers) == null ? void 0 : de.find((m) => m.id === "ne-10m-outline"),
32125
- (se = (pe = this.originStyle) == null ? void 0 : pe.light.layers) == null ? void 0 : se.find((m) => m.id === "ne-10m-label"),
32137
+ (he = (re = this.originStyle) == null ? void 0 : re.light.layers) == null ? void 0 : he.find((m) => m.id === "ne-10m-outline"),
32138
+ (ne = (pe = this.originStyle) == null ? void 0 : pe.light.layers) == null ? void 0 : ne.find((m) => m.id === "ne-10m-label"),
32126
32139
  (oe = (X = this.originStyle) == null ? void 0 : X.light.layers) == null ? void 0 : oe.find((m) => m.id === "china-route-line"),
32127
- (ne = (ue = this.originStyle) == null ? void 0 : ue.light.layers) == null ? void 0 : ne.find((m) => m.id === "china-route-fill"),
32128
- (ce = (F = this.originStyle) == null ? void 0 : F.light.layers) == null ? void 0 : ce.find((m) => m.id === "china-route-label"),
32140
+ (ce = (ue = this.originStyle) == null ? void 0 : ue.light.layers) == null ? void 0 : ce.find((m) => m.id === "china-route-fill"),
32141
+ (me = (F = this.originStyle) == null ? void 0 : F.light.layers) == null ? void 0 : me.find((m) => m.id === "china-route-label"),
32129
32142
  (Le = (xe = this.originStyle) == null ? void 0 : xe.light.layers) == null ? void 0 : Le.find((m) => m.id === "admin-0-boundary-bg"),
32130
32143
  (Ae = (Pe = this.originStyle) == null ? void 0 : Pe.light.layers) == null ? void 0 : Ae.find((m) => m.id === "admin-0-boundary"),
32131
32144
  (Re = (De = this.originStyle) == null ? void 0 : De.light.layers) == null ? void 0 : Re.find((m) => m.id === "admin-0-boundary-disputed"),
32132
- (U = (_e = this.originStyle) == null ? void 0 : _e.light.layers) == null ? void 0 : U.find((m) => m.id === "country-label"),
32133
- (Ne = (ae = this.originStyle) == null ? void 0 : ae.light.layers) == null ? void 0 : Ne.find((m) => m.id === "continent-label"),
32145
+ (H = (_e = this.originStyle) == null ? void 0 : _e.light.layers) == null ? void 0 : H.find((m) => m.id === "country-label"),
32146
+ (je = (te = this.originStyle) == null ? void 0 : te.light.layers) == null ? void 0 : je.find((m) => m.id === "continent-label"),
32134
32147
  (ge = (Ie = this.originStyle) == null ? void 0 : Ie.light.layers) == null ? void 0 : ge.find((m) => m.id === "tide-stations"),
32135
32148
  (W = (fe = this.originStyle) == null ? void 0 : fe.light.layers) == null ? void 0 : W.find((m) => m.id === "empty-layer-3"),
32136
- (te = (Ce = this.originStyle) == null ? void 0 : Ce.light.layers) == null ? void 0 : te.find((m) => m.id === "empty-layer-4")
32149
+ (ae = (Ce = this.originStyle) == null ? void 0 : Ce.light.layers) == null ? void 0 : ae.find((m) => m.id === "empty-layer-4")
32137
32150
  ]
32138
32151
  },
32139
32152
  dark: {
@@ -32281,7 +32294,7 @@ class vm {
32281
32294
  };
32282
32295
  }
32283
32296
  }
32284
- const _m = {
32297
+ const km = {
32285
32298
  name: "MapInitial",
32286
32299
  props: {
32287
32300
  token: {
@@ -32342,7 +32355,7 @@ const _m = {
32342
32355
  },
32343
32356
  methods: {
32344
32357
  async initOnlineMap() {
32345
- this.helper = new vm(this.token), ve.accessToken = "pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";
32358
+ this.helper = new _m(this.token), ve.accessToken = "pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";
32346
32359
  const t = new ve.Map({
32347
32360
  container: "map",
32348
32361
  // style: 'mapbox://styles/neatchenheng/cmd894dwn036m01rf7anc0k0d', //light
@@ -32382,16 +32395,16 @@ const _m = {
32382
32395
  this.zoom > 2 && (this.zoom = Math.floor(this.zoom) - 1, (t = this.map) == null || t.flyTo({ zoom: this.zoom, duration: 500 }));
32383
32396
  }
32384
32397
  }
32385
- }, km = { class: "mapbox-initial-gl4" }, zm = { class: "v-btn--variant-elevated rounded" }, Lm = { class: "zoom" }, Pm = { class: "position-absolute left-0 bottom-0 ma-2 my-1 text-body-2 text-label" };
32386
- function Cm(t, e, a, i, o, r) {
32398
+ }, zm = { class: "mapbox-initial-gl4" }, Lm = { class: "v-btn--variant-elevated rounded" }, Pm = { class: "zoom" }, Cm = { class: "position-absolute left-0 bottom-0 ma-2 my-1 text-body-2 text-label" };
32399
+ function Tm(t, e, a, i, o, r) {
32387
32400
  const s = x("VBtn");
32388
- return b(), S("div", km, [
32401
+ return b(), S("div", zm, [
32389
32402
  e[5] || (e[5] = l("div", { id: "map" }, null, -1)),
32390
32403
  l("div", {
32391
32404
  class: "menu-bar-box transition px-1 rounded d-flex flex-column",
32392
32405
  style: ie({ top: a.top + 268 + "px", right: o.right + "px" })
32393
32406
  }, [
32394
- l("div", zm, [
32407
+ l("div", Lm, [
32395
32408
  d(s, {
32396
32409
  "min-width": "32",
32397
32410
  width: "32",
@@ -32405,7 +32418,7 @@ function Cm(t, e, a, i, o, r) {
32405
32418
  _: 1,
32406
32419
  __: [0]
32407
32420
  }, 8, ["onClick"]),
32408
- l("div", Lm, h(o.zoom ? Math.floor(o.zoom) : 0), 1),
32421
+ l("div", Pm, h(o.zoom ? Math.floor(o.zoom) : 0), 1),
32409
32422
  d(s, {
32410
32423
  "min-width": "32",
32411
32424
  width: "32",
@@ -32421,7 +32434,7 @@ function Cm(t, e, a, i, o, r) {
32421
32434
  }, 8, ["onClick"])
32422
32435
  ])
32423
32436
  ], 4),
32424
- l("div", Pm, [
32437
+ l("div", Cm, [
32425
32438
  e[2] || (e[2] = l("span", null, "© 2023", -1)),
32426
32439
  l("span", null, "-" + h(r.computeYear), 1),
32427
32440
  e[3] || (e[3] = l("span", { class: "text-uppercase ma-2" }, "ormwx.com", -1)),
@@ -32433,21 +32446,21 @@ function Cm(t, e, a, i, o, r) {
32433
32446
  ])
32434
32447
  ]);
32435
32448
  }
32436
- const Tm = /* @__PURE__ */ q(_m, [["render", Cm]]), Fm = {
32449
+ const Sm = /* @__PURE__ */ q(km, [["render", Tm]]), Hm = {
32437
32450
  install(t) {
32438
- t.component("MapInitial", Tm), t.component("MapboxGL", xm), t.component("TropicalGL", Ko), t.component("LatLngGL", Yo), t.component("DateTimePicker", na), t.component("PortDetail", la);
32451
+ t.component("MapInitial", Sm), t.component("MapboxGL", vm), t.component("TropicalGL", Ko), t.component("LatLngGL", Yo), t.component("DateTimePicker", na), t.component("PortDetail", la);
32439
32452
  }
32440
32453
  };
32441
32454
  export {
32442
32455
  na as DateTimePicker,
32443
32456
  Yo as LatLngGL,
32444
- Tm as MapInitial,
32445
- xm as MapboxGL,
32446
- Fm as MapboxGLPlugin,
32457
+ Sm as MapInitial,
32458
+ vm as MapboxGL,
32459
+ Hm as MapboxGLPlugin,
32447
32460
  ke as ParticleSchema,
32448
32461
  la as PortDetail,
32449
32462
  Ko as TropicalGL,
32450
32463
  sa as Viewport,
32451
- je as WebGL,
32452
- he as WebGLSchema
32464
+ Ne as WebGL,
32465
+ se as WebGLSchema
32453
32466
  };